{"version":3,"file":"scripts.bundle.js","sources":["webpack:////home/cool/Music/personal_projects/Zmall/angbackuo/~/bootstrap/dist/js/bootstrap.js","webpack:////home/cool/Music/personal_projects/Zmall/angbackuo/~/jquery/dist/jquery.js","webpack:////home/cool/Music/personal_projects/Zmall/angbackuo/~/metismenu/dist/metisMenu.js","webpack:////home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/c3.js","webpack:////home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/chosen/chosen.jquery.js","webpack:////home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/clockpicker/clockpicker.js","webpack:////home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/d3.js","webpack:////home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/hammer.js","webpack:////home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/iCheck/icheck.min.js","webpack:////home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/jasny/jasny-bootstrap.min.js","webpack:////home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/touchspin/jquery.bootstrap-touchspin.min.js","webpack:////home/cool/Music/personal_projects/Zmall/angbackuo/public/vendor/pace/pace.min.js","webpack:////home/cool/Music/personal_projects/Zmall/angbackuo/~/sweetalert2/dist/sweetalert2.js","webpack:////home/cool/Music/personal_projects/Zmall/angbackuo/~/script-loader/addScript.js","webpack:////home/cool/Music/personal_projects/Zmall/angbackuo/~/bootstrap/dist/js/bootstrap.js?fc34","webpack:////home/cool/Music/personal_projects/Zmall/angbackuo/~/jquery/dist/jquery.js?3c68","webpack:////home/cool/Music/personal_projects/Zmall/angbackuo/~/metismenu/dist/metisMenu.js?7903","webpack:////home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/c3.js?69f7","webpack:////home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/chosen/chosen.jquery.js?acc4","webpack:////home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/clockpicker/clockpicker.js?ce94","webpack:////home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/d3.js?e062","webpack:////home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/hammer.js?2f46","webpack:////home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/iCheck/icheck.min.js?9547","webpack:////home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/jasny/jasny-bootstrap.min.js?9aa5","webpack:////home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/touchspin/jquery.bootstrap-touchspin.min.js?f7a2","webpack:////home/cool/Music/personal_projects/Zmall/angbackuo/public/vendor/pace/pace.min.js?6326","webpack:////home/cool/Music/personal_projects/Zmall/angbackuo/~/sweetalert2/dist/sweetalert2.js?4ea9"],"sourcesContent":["module.exports = \"/*!\\n * Bootstrap v3.3.7 (http://getbootstrap.com)\\n * Copyright 2011-2016 Twitter, Inc.\\n * Licensed under the MIT license\\n */\\n\\nif (typeof jQuery === 'undefined') {\\n  throw new Error('Bootstrap\\\\'s JavaScript requires jQuery')\\n}\\n\\n+function ($) {\\n  'use strict';\\n  var version = $.fn.jquery.split(' ')[0].split('.')\\n  if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1) || (version[0] > 3)) {\\n    throw new Error('Bootstrap\\\\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4')\\n  }\\n}(jQuery);\\n\\n/* ========================================================================\\n * Bootstrap: transition.js v3.3.7\\n * http://getbootstrap.com/javascript/#transitions\\n * ========================================================================\\n * Copyright 2011-2016 Twitter, Inc.\\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\\n * ======================================================================== */\\n\\n\\n+function ($) {\\n  'use strict';\\n\\n  // CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/)\\n  // ============================================================\\n\\n  function transitionEnd() {\\n    var el = document.createElement('bootstrap')\\n\\n    var transEndEventNames = {\\n      WebkitTransition : 'webkitTransitionEnd',\\n      MozTransition    : 'transitionend',\\n      OTransition      : 'oTransitionEnd otransitionend',\\n      transition       : 'transitionend'\\n    }\\n\\n    for (var name in transEndEventNames) {\\n      if (el.style[name] !== undefined) {\\n        return { end: transEndEventNames[name] }\\n      }\\n    }\\n\\n    return false // explicit for ie8 (  ._.)\\n  }\\n\\n  // http://blog.alexmaccaw.com/css-transitions\\n  $.fn.emulateTransitionEnd = function (duration) {\\n    var called = false\\n    var $el = this\\n    $(this).one('bsTransitionEnd', function () { called = true })\\n    var callback = function () { if (!called) $($el).trigger($.support.transition.end) }\\n    setTimeout(callback, duration)\\n    return this\\n  }\\n\\n  $(function () {\\n    $.support.transition = transitionEnd()\\n\\n    if (!$.support.transition) return\\n\\n    $.event.special.bsTransitionEnd = {\\n      bindType: $.support.transition.end,\\n      delegateType: $.support.transition.end,\\n      handle: function (e) {\\n        if ($(e.target).is(this)) return e.handleObj.handler.apply(this, arguments)\\n      }\\n    }\\n  })\\n\\n}(jQuery);\\n\\n/* ========================================================================\\n * Bootstrap: alert.js v3.3.7\\n * http://getbootstrap.com/javascript/#alerts\\n * ========================================================================\\n * Copyright 2011-2016 Twitter, Inc.\\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\\n * ======================================================================== */\\n\\n\\n+function ($) {\\n  'use strict';\\n\\n  // ALERT CLASS DEFINITION\\n  // ======================\\n\\n  var dismiss = '[data-dismiss=\\\"alert\\\"]'\\n  var Alert   = function (el) {\\n    $(el).on('click', dismiss, this.close)\\n  }\\n\\n  Alert.VERSION = '3.3.7'\\n\\n  Alert.TRANSITION_DURATION = 150\\n\\n  Alert.prototype.close = function (e) {\\n    var $this    = $(this)\\n    var selector = $this.attr('data-target')\\n\\n    if (!selector) {\\n      selector = $this.attr('href')\\n      selector = selector && selector.replace(/.*(?=#[^\\\\s]*$)/, '') // strip for ie7\\n    }\\n\\n    var $parent = $(selector === '#' ? [] : selector)\\n\\n    if (e) e.preventDefault()\\n\\n    if (!$parent.length) {\\n      $parent = $this.closest('.alert')\\n    }\\n\\n    $parent.trigger(e = $.Event('close.bs.alert'))\\n\\n    if (e.isDefaultPrevented()) return\\n\\n    $parent.removeClass('in')\\n\\n    function removeElement() {\\n      // detach from parent, fire event then clean up data\\n      $parent.detach().trigger('closed.bs.alert').remove()\\n    }\\n\\n    $.support.transition && $parent.hasClass('fade') ?\\n      $parent\\n        .one('bsTransitionEnd', removeElement)\\n        .emulateTransitionEnd(Alert.TRANSITION_DURATION) :\\n      removeElement()\\n  }\\n\\n\\n  // ALERT PLUGIN DEFINITION\\n  // =======================\\n\\n  function Plugin(option) {\\n    return this.each(function () {\\n      var $this = $(this)\\n      var data  = $this.data('bs.alert')\\n\\n      if (!data) $this.data('bs.alert', (data = new Alert(this)))\\n      if (typeof option == 'string') data[option].call($this)\\n    })\\n  }\\n\\n  var old = $.fn.alert\\n\\n  $.fn.alert             = Plugin\\n  $.fn.alert.Constructor = Alert\\n\\n\\n  // ALERT NO CONFLICT\\n  // =================\\n\\n  $.fn.alert.noConflict = function () {\\n    $.fn.alert = old\\n    return this\\n  }\\n\\n\\n  // ALERT DATA-API\\n  // ==============\\n\\n  $(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close)\\n\\n}(jQuery);\\n\\n/* ========================================================================\\n * Bootstrap: button.js v3.3.7\\n * http://getbootstrap.com/javascript/#buttons\\n * ========================================================================\\n * Copyright 2011-2016 Twitter, Inc.\\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\\n * ======================================================================== */\\n\\n\\n+function ($) {\\n  'use strict';\\n\\n  // BUTTON PUBLIC CLASS DEFINITION\\n  // ==============================\\n\\n  var Button = function (element, options) {\\n    this.$element  = $(element)\\n    this.options   = $.extend({}, Button.DEFAULTS, options)\\n    this.isLoading = false\\n  }\\n\\n  Button.VERSION  = '3.3.7'\\n\\n  Button.DEFAULTS = {\\n    loadingText: 'loading...'\\n  }\\n\\n  Button.prototype.setState = function (state) {\\n    var d    = 'disabled'\\n    var $el  = this.$element\\n    var val  = $el.is('input') ? 'val' : 'html'\\n    var data = $el.data()\\n\\n    state += 'Text'\\n\\n    if (data.resetText == null) $el.data('resetText', $el[val]())\\n\\n    // push to event loop to allow forms to submit\\n    setTimeout($.proxy(function () {\\n      $el[val](data[state] == null ? this.options[state] : data[state])\\n\\n      if (state == 'loadingText') {\\n        this.isLoading = true\\n        $el.addClass(d).attr(d, d).prop(d, true)\\n      } else if (this.isLoading) {\\n        this.isLoading = false\\n        $el.removeClass(d).removeAttr(d).prop(d, false)\\n      }\\n    }, this), 0)\\n  }\\n\\n  Button.prototype.toggle = function () {\\n    var changed = true\\n    var $parent = this.$element.closest('[data-toggle=\\\"buttons\\\"]')\\n\\n    if ($parent.length) {\\n      var $input = this.$element.find('input')\\n      if ($input.prop('type') == 'radio') {\\n        if ($input.prop('checked')) changed = false\\n        $parent.find('.active').removeClass('active')\\n        this.$element.addClass('active')\\n      } else if ($input.prop('type') == 'checkbox') {\\n        if (($input.prop('checked')) !== this.$element.hasClass('active')) changed = false\\n        this.$element.toggleClass('active')\\n      }\\n      $input.prop('checked', this.$element.hasClass('active'))\\n      if (changed) $input.trigger('change')\\n    } else {\\n      this.$element.attr('aria-pressed', !this.$element.hasClass('active'))\\n      this.$element.toggleClass('active')\\n    }\\n  }\\n\\n\\n  // BUTTON PLUGIN DEFINITION\\n  // ========================\\n\\n  function Plugin(option) {\\n    return this.each(function () {\\n      var $this   = $(this)\\n      var data    = $this.data('bs.button')\\n      var options = typeof option == 'object' && option\\n\\n      if (!data) $this.data('bs.button', (data = new Button(this, options)))\\n\\n      if (option == 'toggle') data.toggle()\\n      else if (option) data.setState(option)\\n    })\\n  }\\n\\n  var old = $.fn.button\\n\\n  $.fn.button             = Plugin\\n  $.fn.button.Constructor = Button\\n\\n\\n  // BUTTON NO CONFLICT\\n  // ==================\\n\\n  $.fn.button.noConflict = function () {\\n    $.fn.button = old\\n    return this\\n  }\\n\\n\\n  // BUTTON DATA-API\\n  // ===============\\n\\n  $(document)\\n    .on('click.bs.button.data-api', '[data-toggle^=\\\"button\\\"]', function (e) {\\n      var $btn = $(e.target).closest('.btn')\\n      Plugin.call($btn, 'toggle')\\n      if (!($(e.target).is('input[type=\\\"radio\\\"], input[type=\\\"checkbox\\\"]'))) {\\n        // Prevent double click on radios, and the double selections (so cancellation) on checkboxes\\n        e.preventDefault()\\n        // The target component still receive the focus\\n        if ($btn.is('input,button')) $btn.trigger('focus')\\n        else $btn.find('input:visible,button:visible').first().trigger('focus')\\n      }\\n    })\\n    .on('focus.bs.button.data-api blur.bs.button.data-api', '[data-toggle^=\\\"button\\\"]', function (e) {\\n      $(e.target).closest('.btn').toggleClass('focus', /^focus(in)?$/.test(e.type))\\n    })\\n\\n}(jQuery);\\n\\n/* ========================================================================\\n * Bootstrap: carousel.js v3.3.7\\n * http://getbootstrap.com/javascript/#carousel\\n * ========================================================================\\n * Copyright 2011-2016 Twitter, Inc.\\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\\n * ======================================================================== */\\n\\n\\n+function ($) {\\n  'use strict';\\n\\n  // CAROUSEL CLASS DEFINITION\\n  // =========================\\n\\n  var Carousel = function (element, options) {\\n    this.$element    = $(element)\\n    this.$indicators = this.$element.find('.carousel-indicators')\\n    this.options     = options\\n    this.paused      = null\\n    this.sliding     = null\\n    this.interval    = null\\n    this.$active     = null\\n    this.$items      = null\\n\\n    this.options.keyboard && this.$element.on('keydown.bs.carousel', $.proxy(this.keydown, this))\\n\\n    this.options.pause == 'hover' && !('ontouchstart' in document.documentElement) && this.$element\\n      .on('mouseenter.bs.carousel', $.proxy(this.pause, this))\\n      .on('mouseleave.bs.carousel', $.proxy(this.cycle, this))\\n  }\\n\\n  Carousel.VERSION  = '3.3.7'\\n\\n  Carousel.TRANSITION_DURATION = 600\\n\\n  Carousel.DEFAULTS = {\\n    interval: 5000,\\n    pause: 'hover',\\n    wrap: true,\\n    keyboard: true\\n  }\\n\\n  Carousel.prototype.keydown = function (e) {\\n    if (/input|textarea/i.test(e.target.tagName)) return\\n    switch (e.which) {\\n      case 37: this.prev(); break\\n      case 39: this.next(); break\\n      default: return\\n    }\\n\\n    e.preventDefault()\\n  }\\n\\n  Carousel.prototype.cycle = function (e) {\\n    e || (this.paused = false)\\n\\n    this.interval && clearInterval(this.interval)\\n\\n    this.options.interval\\n      && !this.paused\\n      && (this.interval = setInterval($.proxy(this.next, this), this.options.interval))\\n\\n    return this\\n  }\\n\\n  Carousel.prototype.getItemIndex = function (item) {\\n    this.$items = item.parent().children('.item')\\n    return this.$items.index(item || this.$active)\\n  }\\n\\n  Carousel.prototype.getItemForDirection = function (direction, active) {\\n    var activeIndex = this.getItemIndex(active)\\n    var willWrap = (direction == 'prev' && activeIndex === 0)\\n                || (direction == 'next' && activeIndex == (this.$items.length - 1))\\n    if (willWrap && !this.options.wrap) return active\\n    var delta = direction == 'prev' ? -1 : 1\\n    var itemIndex = (activeIndex + delta) % this.$items.length\\n    return this.$items.eq(itemIndex)\\n  }\\n\\n  Carousel.prototype.to = function (pos) {\\n    var that        = this\\n    var activeIndex = this.getItemIndex(this.$active = this.$element.find('.item.active'))\\n\\n    if (pos > (this.$items.length - 1) || pos < 0) return\\n\\n    if (this.sliding)       return this.$element.one('slid.bs.carousel', function () { that.to(pos) }) // yes, \\\"slid\\\"\\n    if (activeIndex == pos) return this.pause().cycle()\\n\\n    return this.slide(pos > activeIndex ? 'next' : 'prev', this.$items.eq(pos))\\n  }\\n\\n  Carousel.prototype.pause = function (e) {\\n    e || (this.paused = true)\\n\\n    if (this.$element.find('.next, .prev').length && $.support.transition) {\\n      this.$element.trigger($.support.transition.end)\\n      this.cycle(true)\\n    }\\n\\n    this.interval = clearInterval(this.interval)\\n\\n    return this\\n  }\\n\\n  Carousel.prototype.next = function () {\\n    if (this.sliding) return\\n    return this.slide('next')\\n  }\\n\\n  Carousel.prototype.prev = function () {\\n    if (this.sliding) return\\n    return this.slide('prev')\\n  }\\n\\n  Carousel.prototype.slide = function (type, next) {\\n    var $active   = this.$element.find('.item.active')\\n    var $next     = next || this.getItemForDirection(type, $active)\\n    var isCycling = this.interval\\n    var direction = type == 'next' ? 'left' : 'right'\\n    var that      = this\\n\\n    if ($next.hasClass('active')) return (this.sliding = false)\\n\\n    var relatedTarget = $next[0]\\n    var slideEvent = $.Event('slide.bs.carousel', {\\n      relatedTarget: relatedTarget,\\n      direction: direction\\n    })\\n    this.$element.trigger(slideEvent)\\n    if (slideEvent.isDefaultPrevented()) return\\n\\n    this.sliding = true\\n\\n    isCycling && this.pause()\\n\\n    if (this.$indicators.length) {\\n      this.$indicators.find('.active').removeClass('active')\\n      var $nextIndicator = $(this.$indicators.children()[this.getItemIndex($next)])\\n      $nextIndicator && $nextIndicator.addClass('active')\\n    }\\n\\n    var slidEvent = $.Event('slid.bs.carousel', { relatedTarget: relatedTarget, direction: direction }) // yes, \\\"slid\\\"\\n    if ($.support.transition && this.$element.hasClass('slide')) {\\n      $next.addClass(type)\\n      $next[0].offsetWidth // force reflow\\n      $active.addClass(direction)\\n      $next.addClass(direction)\\n      $active\\n        .one('bsTransitionEnd', function () {\\n          $next.removeClass([type, direction].join(' ')).addClass('active')\\n          $active.removeClass(['active', direction].join(' '))\\n          that.sliding = false\\n          setTimeout(function () {\\n            that.$element.trigger(slidEvent)\\n          }, 0)\\n        })\\n        .emulateTransitionEnd(Carousel.TRANSITION_DURATION)\\n    } else {\\n      $active.removeClass('active')\\n      $next.addClass('active')\\n      this.sliding = false\\n      this.$element.trigger(slidEvent)\\n    }\\n\\n    isCycling && this.cycle()\\n\\n    return this\\n  }\\n\\n\\n  // CAROUSEL PLUGIN DEFINITION\\n  // ==========================\\n\\n  function Plugin(option) {\\n    return this.each(function () {\\n      var $this   = $(this)\\n      var data    = $this.data('bs.carousel')\\n      var options = $.extend({}, Carousel.DEFAULTS, $this.data(), typeof option == 'object' && option)\\n      var action  = typeof option == 'string' ? option : options.slide\\n\\n      if (!data) $this.data('bs.carousel', (data = new Carousel(this, options)))\\n      if (typeof option == 'number') data.to(option)\\n      else if (action) data[action]()\\n      else if (options.interval) data.pause().cycle()\\n    })\\n  }\\n\\n  var old = $.fn.carousel\\n\\n  $.fn.carousel             = Plugin\\n  $.fn.carousel.Constructor = Carousel\\n\\n\\n  // CAROUSEL NO CONFLICT\\n  // ====================\\n\\n  $.fn.carousel.noConflict = function () {\\n    $.fn.carousel = old\\n    return this\\n  }\\n\\n\\n  // CAROUSEL DATA-API\\n  // =================\\n\\n  var clickHandler = function (e) {\\n    var href\\n    var $this   = $(this)\\n    var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\\\\s]+$)/, '')) // strip for ie7\\n    if (!$target.hasClass('carousel')) return\\n    var options = $.extend({}, $target.data(), $this.data())\\n    var slideIndex = $this.attr('data-slide-to')\\n    if (slideIndex) options.interval = false\\n\\n    Plugin.call($target, options)\\n\\n    if (slideIndex) {\\n      $target.data('bs.carousel').to(slideIndex)\\n    }\\n\\n    e.preventDefault()\\n  }\\n\\n  $(document)\\n    .on('click.bs.carousel.data-api', '[data-slide]', clickHandler)\\n    .on('click.bs.carousel.data-api', '[data-slide-to]', clickHandler)\\n\\n  $(window).on('load', function () {\\n    $('[data-ride=\\\"carousel\\\"]').each(function () {\\n      var $carousel = $(this)\\n      Plugin.call($carousel, $carousel.data())\\n    })\\n  })\\n\\n}(jQuery);\\n\\n/* ========================================================================\\n * Bootstrap: collapse.js v3.3.7\\n * http://getbootstrap.com/javascript/#collapse\\n * ========================================================================\\n * Copyright 2011-2016 Twitter, Inc.\\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\\n * ======================================================================== */\\n\\n/* jshint latedef: false */\\n\\n+function ($) {\\n  'use strict';\\n\\n  // COLLAPSE PUBLIC CLASS DEFINITION\\n  // ================================\\n\\n  var Collapse = function (element, options) {\\n    this.$element      = $(element)\\n    this.options       = $.extend({}, Collapse.DEFAULTS, options)\\n    this.$trigger      = $('[data-toggle=\\\"collapse\\\"][href=\\\"#' + element.id + '\\\"],' +\\n                           '[data-toggle=\\\"collapse\\\"][data-target=\\\"#' + element.id + '\\\"]')\\n    this.transitioning = null\\n\\n    if (this.options.parent) {\\n      this.$parent = this.getParent()\\n    } else {\\n      this.addAriaAndCollapsedClass(this.$element, this.$trigger)\\n    }\\n\\n    if (this.options.toggle) this.toggle()\\n  }\\n\\n  Collapse.VERSION  = '3.3.7'\\n\\n  Collapse.TRANSITION_DURATION = 350\\n\\n  Collapse.DEFAULTS = {\\n    toggle: true\\n  }\\n\\n  Collapse.prototype.dimension = function () {\\n    var hasWidth = this.$element.hasClass('width')\\n    return hasWidth ? 'width' : 'height'\\n  }\\n\\n  Collapse.prototype.show = function () {\\n    if (this.transitioning || this.$element.hasClass('in')) return\\n\\n    var activesData\\n    var actives = this.$parent && this.$parent.children('.panel').children('.in, .collapsing')\\n\\n    if (actives && actives.length) {\\n      activesData = actives.data('bs.collapse')\\n      if (activesData && activesData.transitioning) return\\n    }\\n\\n    var startEvent = $.Event('show.bs.collapse')\\n    this.$element.trigger(startEvent)\\n    if (startEvent.isDefaultPrevented()) return\\n\\n    if (actives && actives.length) {\\n      Plugin.call(actives, 'hide')\\n      activesData || actives.data('bs.collapse', null)\\n    }\\n\\n    var dimension = this.dimension()\\n\\n    this.$element\\n      .removeClass('collapse')\\n      .addClass('collapsing')[dimension](0)\\n      .attr('aria-expanded', true)\\n\\n    this.$trigger\\n      .removeClass('collapsed')\\n      .attr('aria-expanded', true)\\n\\n    this.transitioning = 1\\n\\n    var complete = function () {\\n      this.$element\\n        .removeClass('collapsing')\\n        .addClass('collapse in')[dimension]('')\\n      this.transitioning = 0\\n      this.$element\\n        .trigger('shown.bs.collapse')\\n    }\\n\\n    if (!$.support.transition) return complete.call(this)\\n\\n    var scrollSize = $.camelCase(['scroll', dimension].join('-'))\\n\\n    this.$element\\n      .one('bsTransitionEnd', $.proxy(complete, this))\\n      .emulateTransitionEnd(Collapse.TRANSITION_DURATION)[dimension](this.$element[0][scrollSize])\\n  }\\n\\n  Collapse.prototype.hide = function () {\\n    if (this.transitioning || !this.$element.hasClass('in')) return\\n\\n    var startEvent = $.Event('hide.bs.collapse')\\n    this.$element.trigger(startEvent)\\n    if (startEvent.isDefaultPrevented()) return\\n\\n    var dimension = this.dimension()\\n\\n    this.$element[dimension](this.$element[dimension]())[0].offsetHeight\\n\\n    this.$element\\n      .addClass('collapsing')\\n      .removeClass('collapse in')\\n      .attr('aria-expanded', false)\\n\\n    this.$trigger\\n      .addClass('collapsed')\\n      .attr('aria-expanded', false)\\n\\n    this.transitioning = 1\\n\\n    var complete = function () {\\n      this.transitioning = 0\\n      this.$element\\n        .removeClass('collapsing')\\n        .addClass('collapse')\\n        .trigger('hidden.bs.collapse')\\n    }\\n\\n    if (!$.support.transition) return complete.call(this)\\n\\n    this.$element\\n      [dimension](0)\\n      .one('bsTransitionEnd', $.proxy(complete, this))\\n      .emulateTransitionEnd(Collapse.TRANSITION_DURATION)\\n  }\\n\\n  Collapse.prototype.toggle = function () {\\n    this[this.$element.hasClass('in') ? 'hide' : 'show']()\\n  }\\n\\n  Collapse.prototype.getParent = function () {\\n    return $(this.options.parent)\\n      .find('[data-toggle=\\\"collapse\\\"][data-parent=\\\"' + this.options.parent + '\\\"]')\\n      .each($.proxy(function (i, element) {\\n        var $element = $(element)\\n        this.addAriaAndCollapsedClass(getTargetFromTrigger($element), $element)\\n      }, this))\\n      .end()\\n  }\\n\\n  Collapse.prototype.addAriaAndCollapsedClass = function ($element, $trigger) {\\n    var isOpen = $element.hasClass('in')\\n\\n    $element.attr('aria-expanded', isOpen)\\n    $trigger\\n      .toggleClass('collapsed', !isOpen)\\n      .attr('aria-expanded', isOpen)\\n  }\\n\\n  function getTargetFromTrigger($trigger) {\\n    var href\\n    var target = $trigger.attr('data-target')\\n      || (href = $trigger.attr('href')) && href.replace(/.*(?=#[^\\\\s]+$)/, '') // strip for ie7\\n\\n    return $(target)\\n  }\\n\\n\\n  // COLLAPSE PLUGIN DEFINITION\\n  // ==========================\\n\\n  function Plugin(option) {\\n    return this.each(function () {\\n      var $this   = $(this)\\n      var data    = $this.data('bs.collapse')\\n      var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option)\\n\\n      if (!data && options.toggle && /show|hide/.test(option)) options.toggle = false\\n      if (!data) $this.data('bs.collapse', (data = new Collapse(this, options)))\\n      if (typeof option == 'string') data[option]()\\n    })\\n  }\\n\\n  var old = $.fn.collapse\\n\\n  $.fn.collapse             = Plugin\\n  $.fn.collapse.Constructor = Collapse\\n\\n\\n  // COLLAPSE NO CONFLICT\\n  // ====================\\n\\n  $.fn.collapse.noConflict = function () {\\n    $.fn.collapse = old\\n    return this\\n  }\\n\\n\\n  // COLLAPSE DATA-API\\n  // =================\\n\\n  $(document).on('click.bs.collapse.data-api', '[data-toggle=\\\"collapse\\\"]', function (e) {\\n    var $this   = $(this)\\n\\n    if (!$this.attr('data-target')) e.preventDefault()\\n\\n    var $target = getTargetFromTrigger($this)\\n    var data    = $target.data('bs.collapse')\\n    var option  = data ? 'toggle' : $this.data()\\n\\n    Plugin.call($target, option)\\n  })\\n\\n}(jQuery);\\n\\n/* ========================================================================\\n * Bootstrap: dropdown.js v3.3.7\\n * http://getbootstrap.com/javascript/#dropdowns\\n * ========================================================================\\n * Copyright 2011-2016 Twitter, Inc.\\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\\n * ======================================================================== */\\n\\n\\n+function ($) {\\n  'use strict';\\n\\n  // DROPDOWN CLASS DEFINITION\\n  // =========================\\n\\n  var backdrop = '.dropdown-backdrop'\\n  var toggle   = '[data-toggle=\\\"dropdown\\\"]'\\n  var Dropdown = function (element) {\\n    $(element).on('click.bs.dropdown', this.toggle)\\n  }\\n\\n  Dropdown.VERSION = '3.3.7'\\n\\n  function getParent($this) {\\n    var selector = $this.attr('data-target')\\n\\n    if (!selector) {\\n      selector = $this.attr('href')\\n      selector = selector && /#[A-Za-z]/.test(selector) && selector.replace(/.*(?=#[^\\\\s]*$)/, '') // strip for ie7\\n    }\\n\\n    var $parent = selector && $(selector)\\n\\n    return $parent && $parent.length ? $parent : $this.parent()\\n  }\\n\\n  function clearMenus(e) {\\n    if (e && e.which === 3) return\\n    $(backdrop).remove()\\n    $(toggle).each(function () {\\n      var $this         = $(this)\\n      var $parent       = getParent($this)\\n      var relatedTarget = { relatedTarget: this }\\n\\n      if (!$parent.hasClass('open')) return\\n\\n      if (e && e.type == 'click' && /input|textarea/i.test(e.target.tagName) && $.contains($parent[0], e.target)) return\\n\\n      $parent.trigger(e = $.Event('hide.bs.dropdown', relatedTarget))\\n\\n      if (e.isDefaultPrevented()) return\\n\\n      $this.attr('aria-expanded', 'false')\\n      $parent.removeClass('open').trigger($.Event('hidden.bs.dropdown', relatedTarget))\\n    })\\n  }\\n\\n  Dropdown.prototype.toggle = function (e) {\\n    var $this = $(this)\\n\\n    if ($this.is('.disabled, :disabled')) return\\n\\n    var $parent  = getParent($this)\\n    var isActive = $parent.hasClass('open')\\n\\n    clearMenus()\\n\\n    if (!isActive) {\\n      if ('ontouchstart' in document.documentElement && !$parent.closest('.navbar-nav').length) {\\n        // if mobile we use a backdrop because click events don't delegate\\n        $(document.createElement('div'))\\n          .addClass('dropdown-backdrop')\\n          .insertAfter($(this))\\n          .on('click', clearMenus)\\n      }\\n\\n      var relatedTarget = { relatedTarget: this }\\n      $parent.trigger(e = $.Event('show.bs.dropdown', relatedTarget))\\n\\n      if (e.isDefaultPrevented()) return\\n\\n      $this\\n        .trigger('focus')\\n        .attr('aria-expanded', 'true')\\n\\n      $parent\\n        .toggleClass('open')\\n        .trigger($.Event('shown.bs.dropdown', relatedTarget))\\n    }\\n\\n    return false\\n  }\\n\\n  Dropdown.prototype.keydown = function (e) {\\n    if (!/(38|40|27|32)/.test(e.which) || /input|textarea/i.test(e.target.tagName)) return\\n\\n    var $this = $(this)\\n\\n    e.preventDefault()\\n    e.stopPropagation()\\n\\n    if ($this.is('.disabled, :disabled')) return\\n\\n    var $parent  = getParent($this)\\n    var isActive = $parent.hasClass('open')\\n\\n    if (!isActive && e.which != 27 || isActive && e.which == 27) {\\n      if (e.which == 27) $parent.find(toggle).trigger('focus')\\n      return $this.trigger('click')\\n    }\\n\\n    var desc = ' li:not(.disabled):visible a'\\n    var $items = $parent.find('.dropdown-menu' + desc)\\n\\n    if (!$items.length) return\\n\\n    var index = $items.index(e.target)\\n\\n    if (e.which == 38 && index > 0)                 index--         // up\\n    if (e.which == 40 && index < $items.length - 1) index++         // down\\n    if (!~index)                                    index = 0\\n\\n    $items.eq(index).trigger('focus')\\n  }\\n\\n\\n  // DROPDOWN PLUGIN DEFINITION\\n  // ==========================\\n\\n  function Plugin(option) {\\n    return this.each(function () {\\n      var $this = $(this)\\n      var data  = $this.data('bs.dropdown')\\n\\n      if (!data) $this.data('bs.dropdown', (data = new Dropdown(this)))\\n      if (typeof option == 'string') data[option].call($this)\\n    })\\n  }\\n\\n  var old = $.fn.dropdown\\n\\n  $.fn.dropdown             = Plugin\\n  $.fn.dropdown.Constructor = Dropdown\\n\\n\\n  // DROPDOWN NO CONFLICT\\n  // ====================\\n\\n  $.fn.dropdown.noConflict = function () {\\n    $.fn.dropdown = old\\n    return this\\n  }\\n\\n\\n  // APPLY TO STANDARD DROPDOWN ELEMENTS\\n  // ===================================\\n\\n  $(document)\\n    .on('click.bs.dropdown.data-api', clearMenus)\\n    .on('click.bs.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() })\\n    .on('click.bs.dropdown.data-api', toggle, Dropdown.prototype.toggle)\\n    .on('keydown.bs.dropdown.data-api', toggle, Dropdown.prototype.keydown)\\n    .on('keydown.bs.dropdown.data-api', '.dropdown-menu', Dropdown.prototype.keydown)\\n\\n}(jQuery);\\n\\n/* ========================================================================\\n * Bootstrap: modal.js v3.3.7\\n * http://getbootstrap.com/javascript/#modals\\n * ========================================================================\\n * Copyright 2011-2016 Twitter, Inc.\\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\\n * ======================================================================== */\\n\\n\\n+function ($) {\\n  'use strict';\\n\\n  // MODAL CLASS DEFINITION\\n  // ======================\\n\\n  var Modal = function (element, options) {\\n    this.options             = options\\n    this.$body               = $(document.body)\\n    this.$element            = $(element)\\n    this.$dialog             = this.$element.find('.modal-dialog')\\n    this.$backdrop           = null\\n    this.isShown             = null\\n    this.originalBodyPad     = null\\n    this.scrollbarWidth      = 0\\n    this.ignoreBackdropClick = false\\n\\n    if (this.options.remote) {\\n      this.$element\\n        .find('.modal-content')\\n        .load(this.options.remote, $.proxy(function () {\\n          this.$element.trigger('loaded.bs.modal')\\n        }, this))\\n    }\\n  }\\n\\n  Modal.VERSION  = '3.3.7'\\n\\n  Modal.TRANSITION_DURATION = 300\\n  Modal.BACKDROP_TRANSITION_DURATION = 150\\n\\n  Modal.DEFAULTS = {\\n    backdrop: true,\\n    keyboard: true,\\n    show: true\\n  }\\n\\n  Modal.prototype.toggle = function (_relatedTarget) {\\n    return this.isShown ? this.hide() : this.show(_relatedTarget)\\n  }\\n\\n  Modal.prototype.show = function (_relatedTarget) {\\n    var that = this\\n    var e    = $.Event('show.bs.modal', { relatedTarget: _relatedTarget })\\n\\n    this.$element.trigger(e)\\n\\n    if (this.isShown || e.isDefaultPrevented()) return\\n\\n    this.isShown = true\\n\\n    this.checkScrollbar()\\n    this.setScrollbar()\\n    this.$body.addClass('modal-open')\\n\\n    this.escape()\\n    this.resize()\\n\\n    this.$element.on('click.dismiss.bs.modal', '[data-dismiss=\\\"modal\\\"]', $.proxy(this.hide, this))\\n\\n    this.$dialog.on('mousedown.dismiss.bs.modal', function () {\\n      that.$element.one('mouseup.dismiss.bs.modal', function (e) {\\n        if ($(e.target).is(that.$element)) that.ignoreBackdropClick = true\\n      })\\n    })\\n\\n    this.backdrop(function () {\\n      var transition = $.support.transition && that.$element.hasClass('fade')\\n\\n      if (!that.$element.parent().length) {\\n        that.$element.appendTo(that.$body) // don't move modals dom position\\n      }\\n\\n      that.$element\\n        .show()\\n        .scrollTop(0)\\n\\n      that.adjustDialog()\\n\\n      if (transition) {\\n        that.$element[0].offsetWidth // force reflow\\n      }\\n\\n      that.$element.addClass('in')\\n\\n      that.enforceFocus()\\n\\n      var e = $.Event('shown.bs.modal', { relatedTarget: _relatedTarget })\\n\\n      transition ?\\n        that.$dialog // wait for modal to slide in\\n          .one('bsTransitionEnd', function () {\\n            that.$element.trigger('focus').trigger(e)\\n          })\\n          .emulateTransitionEnd(Modal.TRANSITION_DURATION) :\\n        that.$element.trigger('focus').trigger(e)\\n    })\\n  }\\n\\n  Modal.prototype.hide = function (e) {\\n    if (e) e.preventDefault()\\n\\n    e = $.Event('hide.bs.modal')\\n\\n    this.$element.trigger(e)\\n\\n    if (!this.isShown || e.isDefaultPrevented()) return\\n\\n    this.isShown = false\\n\\n    this.escape()\\n    this.resize()\\n\\n    $(document).off('focusin.bs.modal')\\n\\n    this.$element\\n      .removeClass('in')\\n      .off('click.dismiss.bs.modal')\\n      .off('mouseup.dismiss.bs.modal')\\n\\n    this.$dialog.off('mousedown.dismiss.bs.modal')\\n\\n    $.support.transition && this.$element.hasClass('fade') ?\\n      this.$element\\n        .one('bsTransitionEnd', $.proxy(this.hideModal, this))\\n        .emulateTransitionEnd(Modal.TRANSITION_DURATION) :\\n      this.hideModal()\\n  }\\n\\n  Modal.prototype.enforceFocus = function () {\\n    $(document)\\n      .off('focusin.bs.modal') // guard against infinite focus loop\\n      .on('focusin.bs.modal', $.proxy(function (e) {\\n        if (document !== e.target &&\\n            this.$element[0] !== e.target &&\\n            !this.$element.has(e.target).length) {\\n          this.$element.trigger('focus')\\n        }\\n      }, this))\\n  }\\n\\n  Modal.prototype.escape = function () {\\n    if (this.isShown && this.options.keyboard) {\\n      this.$element.on('keydown.dismiss.bs.modal', $.proxy(function (e) {\\n        e.which == 27 && this.hide()\\n      }, this))\\n    } else if (!this.isShown) {\\n      this.$element.off('keydown.dismiss.bs.modal')\\n    }\\n  }\\n\\n  Modal.prototype.resize = function () {\\n    if (this.isShown) {\\n      $(window).on('resize.bs.modal', $.proxy(this.handleUpdate, this))\\n    } else {\\n      $(window).off('resize.bs.modal')\\n    }\\n  }\\n\\n  Modal.prototype.hideModal = function () {\\n    var that = this\\n    this.$element.hide()\\n    this.backdrop(function () {\\n      that.$body.removeClass('modal-open')\\n      that.resetAdjustments()\\n      that.resetScrollbar()\\n      that.$element.trigger('hidden.bs.modal')\\n    })\\n  }\\n\\n  Modal.prototype.removeBackdrop = function () {\\n    this.$backdrop && this.$backdrop.remove()\\n    this.$backdrop = null\\n  }\\n\\n  Modal.prototype.backdrop = function (callback) {\\n    var that = this\\n    var animate = this.$element.hasClass('fade') ? 'fade' : ''\\n\\n    if (this.isShown && this.options.backdrop) {\\n      var doAnimate = $.support.transition && animate\\n\\n      this.$backdrop = $(document.createElement('div'))\\n        .addClass('modal-backdrop ' + animate)\\n        .appendTo(this.$body)\\n\\n      this.$element.on('click.dismiss.bs.modal', $.proxy(function (e) {\\n        if (this.ignoreBackdropClick) {\\n          this.ignoreBackdropClick = false\\n          return\\n        }\\n        if (e.target !== e.currentTarget) return\\n        this.options.backdrop == 'static'\\n          ? this.$element[0].focus()\\n          : this.hide()\\n      }, this))\\n\\n      if (doAnimate) this.$backdrop[0].offsetWidth // force reflow\\n\\n      this.$backdrop.addClass('in')\\n\\n      if (!callback) return\\n\\n      doAnimate ?\\n        this.$backdrop\\n          .one('bsTransitionEnd', callback)\\n          .emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION) :\\n        callback()\\n\\n    } else if (!this.isShown && this.$backdrop) {\\n      this.$backdrop.removeClass('in')\\n\\n      var callbackRemove = function () {\\n        that.removeBackdrop()\\n        callback && callback()\\n      }\\n      $.support.transition && this.$element.hasClass('fade') ?\\n        this.$backdrop\\n          .one('bsTransitionEnd', callbackRemove)\\n          .emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION) :\\n        callbackRemove()\\n\\n    } else if (callback) {\\n      callback()\\n    }\\n  }\\n\\n  // these following methods are used to handle overflowing modals\\n\\n  Modal.prototype.handleUpdate = function () {\\n    this.adjustDialog()\\n  }\\n\\n  Modal.prototype.adjustDialog = function () {\\n    var modalIsOverflowing = this.$element[0].scrollHeight > document.documentElement.clientHeight\\n\\n    this.$element.css({\\n      paddingLeft:  !this.bodyIsOverflowing && modalIsOverflowing ? this.scrollbarWidth : '',\\n      paddingRight: this.bodyIsOverflowing && !modalIsOverflowing ? this.scrollbarWidth : ''\\n    })\\n  }\\n\\n  Modal.prototype.resetAdjustments = function () {\\n    this.$element.css({\\n      paddingLeft: '',\\n      paddingRight: ''\\n    })\\n  }\\n\\n  Modal.prototype.checkScrollbar = function () {\\n    var fullWindowWidth = window.innerWidth\\n    if (!fullWindowWidth) { // workaround for missing window.innerWidth in IE8\\n      var documentElementRect = document.documentElement.getBoundingClientRect()\\n      fullWindowWidth = documentElementRect.right - Math.abs(documentElementRect.left)\\n    }\\n    this.bodyIsOverflowing = document.body.clientWidth < fullWindowWidth\\n    this.scrollbarWidth = this.measureScrollbar()\\n  }\\n\\n  Modal.prototype.setScrollbar = function () {\\n    var bodyPad = parseInt((this.$body.css('padding-right') || 0), 10)\\n    this.originalBodyPad = document.body.style.paddingRight || ''\\n    if (this.bodyIsOverflowing) this.$body.css('padding-right', bodyPad + this.scrollbarWidth)\\n  }\\n\\n  Modal.prototype.resetScrollbar = function () {\\n    this.$body.css('padding-right', this.originalBodyPad)\\n  }\\n\\n  Modal.prototype.measureScrollbar = function () { // thx walsh\\n    var scrollDiv = document.createElement('div')\\n    scrollDiv.className = 'modal-scrollbar-measure'\\n    this.$body.append(scrollDiv)\\n    var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth\\n    this.$body[0].removeChild(scrollDiv)\\n    return scrollbarWidth\\n  }\\n\\n\\n  // MODAL PLUGIN DEFINITION\\n  // =======================\\n\\n  function Plugin(option, _relatedTarget) {\\n    return this.each(function () {\\n      var $this   = $(this)\\n      var data    = $this.data('bs.modal')\\n      var options = $.extend({}, Modal.DEFAULTS, $this.data(), typeof option == 'object' && option)\\n\\n      if (!data) $this.data('bs.modal', (data = new Modal(this, options)))\\n      if (typeof option == 'string') data[option](_relatedTarget)\\n      else if (options.show) data.show(_relatedTarget)\\n    })\\n  }\\n\\n  var old = $.fn.modal\\n\\n  $.fn.modal             = Plugin\\n  $.fn.modal.Constructor = Modal\\n\\n\\n  // MODAL NO CONFLICT\\n  // =================\\n\\n  $.fn.modal.noConflict = function () {\\n    $.fn.modal = old\\n    return this\\n  }\\n\\n\\n  // MODAL DATA-API\\n  // ==============\\n\\n  $(document).on('click.bs.modal.data-api', '[data-toggle=\\\"modal\\\"]', function (e) {\\n    var $this   = $(this)\\n    var href    = $this.attr('href')\\n    var $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\\\\s]+$)/, ''))) // strip for ie7\\n    var option  = $target.data('bs.modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data())\\n\\n    if ($this.is('a')) e.preventDefault()\\n\\n    $target.one('show.bs.modal', function (showEvent) {\\n      if (showEvent.isDefaultPrevented()) return // only register focus restorer if modal will actually get shown\\n      $target.one('hidden.bs.modal', function () {\\n        $this.is(':visible') && $this.trigger('focus')\\n      })\\n    })\\n    Plugin.call($target, option, this)\\n  })\\n\\n}(jQuery);\\n\\n/* ========================================================================\\n * Bootstrap: tooltip.js v3.3.7\\n * http://getbootstrap.com/javascript/#tooltip\\n * Inspired by the original jQuery.tipsy by Jason Frame\\n * ========================================================================\\n * Copyright 2011-2016 Twitter, Inc.\\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\\n * ======================================================================== */\\n\\n\\n+function ($) {\\n  'use strict';\\n\\n  // TOOLTIP PUBLIC CLASS DEFINITION\\n  // ===============================\\n\\n  var Tooltip = function (element, options) {\\n    this.type       = null\\n    this.options    = null\\n    this.enabled    = null\\n    this.timeout    = null\\n    this.hoverState = null\\n    this.$element   = null\\n    this.inState    = null\\n\\n    this.init('tooltip', element, options)\\n  }\\n\\n  Tooltip.VERSION  = '3.3.7'\\n\\n  Tooltip.TRANSITION_DURATION = 150\\n\\n  Tooltip.DEFAULTS = {\\n    animation: true,\\n    placement: 'top',\\n    selector: false,\\n    template: '<div class=\\\"tooltip\\\" role=\\\"tooltip\\\"><div class=\\\"tooltip-arrow\\\"></div><div class=\\\"tooltip-inner\\\"></div></div>',\\n    trigger: 'hover focus',\\n    title: '',\\n    delay: 0,\\n    html: false,\\n    container: false,\\n    viewport: {\\n      selector: 'body',\\n      padding: 0\\n    }\\n  }\\n\\n  Tooltip.prototype.init = function (type, element, options) {\\n    this.enabled   = true\\n    this.type      = type\\n    this.$element  = $(element)\\n    this.options   = this.getOptions(options)\\n    this.$viewport = this.options.viewport && $($.isFunction(this.options.viewport) ? this.options.viewport.call(this, this.$element) : (this.options.viewport.selector || this.options.viewport))\\n    this.inState   = { click: false, hover: false, focus: false }\\n\\n    if (this.$element[0] instanceof document.constructor && !this.options.selector) {\\n      throw new Error('`selector` option must be specified when initializing ' + this.type + ' on the window.document object!')\\n    }\\n\\n    var triggers = this.options.trigger.split(' ')\\n\\n    for (var i = triggers.length; i--;) {\\n      var trigger = triggers[i]\\n\\n      if (trigger == 'click') {\\n        this.$element.on('click.' + this.type, this.options.selector, $.proxy(this.toggle, this))\\n      } else if (trigger != 'manual') {\\n        var eventIn  = trigger == 'hover' ? 'mouseenter' : 'focusin'\\n        var eventOut = trigger == 'hover' ? 'mouseleave' : 'focusout'\\n\\n        this.$element.on(eventIn  + '.' + this.type, this.options.selector, $.proxy(this.enter, this))\\n        this.$element.on(eventOut + '.' + this.type, this.options.selector, $.proxy(this.leave, this))\\n      }\\n    }\\n\\n    this.options.selector ?\\n      (this._options = $.extend({}, this.options, { trigger: 'manual', selector: '' })) :\\n      this.fixTitle()\\n  }\\n\\n  Tooltip.prototype.getDefaults = function () {\\n    return Tooltip.DEFAULTS\\n  }\\n\\n  Tooltip.prototype.getOptions = function (options) {\\n    options = $.extend({}, this.getDefaults(), this.$element.data(), options)\\n\\n    if (options.delay && typeof options.delay == 'number') {\\n      options.delay = {\\n        show: options.delay,\\n        hide: options.delay\\n      }\\n    }\\n\\n    return options\\n  }\\n\\n  Tooltip.prototype.getDelegateOptions = function () {\\n    var options  = {}\\n    var defaults = this.getDefaults()\\n\\n    this._options && $.each(this._options, function (key, value) {\\n      if (defaults[key] != value) options[key] = value\\n    })\\n\\n    return options\\n  }\\n\\n  Tooltip.prototype.enter = function (obj) {\\n    var self = obj instanceof this.constructor ?\\n      obj : $(obj.currentTarget).data('bs.' + this.type)\\n\\n    if (!self) {\\n      self = new this.constructor(obj.currentTarget, this.getDelegateOptions())\\n      $(obj.currentTarget).data('bs.' + this.type, self)\\n    }\\n\\n    if (obj instanceof $.Event) {\\n      self.inState[obj.type == 'focusin' ? 'focus' : 'hover'] = true\\n    }\\n\\n    if (self.tip().hasClass('in') || self.hoverState == 'in') {\\n      self.hoverState = 'in'\\n      return\\n    }\\n\\n    clearTimeout(self.timeout)\\n\\n    self.hoverState = 'in'\\n\\n    if (!self.options.delay || !self.options.delay.show) return self.show()\\n\\n    self.timeout = setTimeout(function () {\\n      if (self.hoverState == 'in') self.show()\\n    }, self.options.delay.show)\\n  }\\n\\n  Tooltip.prototype.isInStateTrue = function () {\\n    for (var key in this.inState) {\\n      if (this.inState[key]) return true\\n    }\\n\\n    return false\\n  }\\n\\n  Tooltip.prototype.leave = function (obj) {\\n    var self = obj instanceof this.constructor ?\\n      obj : $(obj.currentTarget).data('bs.' + this.type)\\n\\n    if (!self) {\\n      self = new this.constructor(obj.currentTarget, this.getDelegateOptions())\\n      $(obj.currentTarget).data('bs.' + this.type, self)\\n    }\\n\\n    if (obj instanceof $.Event) {\\n      self.inState[obj.type == 'focusout' ? 'focus' : 'hover'] = false\\n    }\\n\\n    if (self.isInStateTrue()) return\\n\\n    clearTimeout(self.timeout)\\n\\n    self.hoverState = 'out'\\n\\n    if (!self.options.delay || !self.options.delay.hide) return self.hide()\\n\\n    self.timeout = setTimeout(function () {\\n      if (self.hoverState == 'out') self.hide()\\n    }, self.options.delay.hide)\\n  }\\n\\n  Tooltip.prototype.show = function () {\\n    var e = $.Event('show.bs.' + this.type)\\n\\n    if (this.hasContent() && this.enabled) {\\n      this.$element.trigger(e)\\n\\n      var inDom = $.contains(this.$element[0].ownerDocument.documentElement, this.$element[0])\\n      if (e.isDefaultPrevented() || !inDom) return\\n      var that = this\\n\\n      var $tip = this.tip()\\n\\n      var tipId = this.getUID(this.type)\\n\\n      this.setContent()\\n      $tip.attr('id', tipId)\\n      this.$element.attr('aria-describedby', tipId)\\n\\n      if (this.options.animation) $tip.addClass('fade')\\n\\n      var placement = typeof this.options.placement == 'function' ?\\n        this.options.placement.call(this, $tip[0], this.$element[0]) :\\n        this.options.placement\\n\\n      var autoToken = /\\\\s?auto?\\\\s?/i\\n      var autoPlace = autoToken.test(placement)\\n      if (autoPlace) placement = placement.replace(autoToken, '') || 'top'\\n\\n      $tip\\n        .detach()\\n        .css({ top: 0, left: 0, display: 'block' })\\n        .addClass(placement)\\n        .data('bs.' + this.type, this)\\n\\n      this.options.container ? $tip.appendTo(this.options.container) : $tip.insertAfter(this.$element)\\n      this.$element.trigger('inserted.bs.' + this.type)\\n\\n      var pos          = this.getPosition()\\n      var actualWidth  = $tip[0].offsetWidth\\n      var actualHeight = $tip[0].offsetHeight\\n\\n      if (autoPlace) {\\n        var orgPlacement = placement\\n        var viewportDim = this.getPosition(this.$viewport)\\n\\n        placement = placement == 'bottom' && pos.bottom + actualHeight > viewportDim.bottom ? 'top'    :\\n                    placement == 'top'    && pos.top    - actualHeight < viewportDim.top    ? 'bottom' :\\n                    placement == 'right'  && pos.right  + actualWidth  > viewportDim.width  ? 'left'   :\\n                    placement == 'left'   && pos.left   - actualWidth  < viewportDim.left   ? 'right'  :\\n                    placement\\n\\n        $tip\\n          .removeClass(orgPlacement)\\n          .addClass(placement)\\n      }\\n\\n      var calculatedOffset = this.getCalculatedOffset(placement, pos, actualWidth, actualHeight)\\n\\n      this.applyPlacement(calculatedOffset, placement)\\n\\n      var complete = function () {\\n        var prevHoverState = that.hoverState\\n        that.$element.trigger('shown.bs.' + that.type)\\n        that.hoverState = null\\n\\n        if (prevHoverState == 'out') that.leave(that)\\n      }\\n\\n      $.support.transition && this.$tip.hasClass('fade') ?\\n        $tip\\n          .one('bsTransitionEnd', complete)\\n          .emulateTransitionEnd(Tooltip.TRANSITION_DURATION) :\\n        complete()\\n    }\\n  }\\n\\n  Tooltip.prototype.applyPlacement = function (offset, placement) {\\n    var $tip   = this.tip()\\n    var width  = $tip[0].offsetWidth\\n    var height = $tip[0].offsetHeight\\n\\n    // manually read margins because getBoundingClientRect includes difference\\n    var marginTop = parseInt($tip.css('margin-top'), 10)\\n    var marginLeft = parseInt($tip.css('margin-left'), 10)\\n\\n    // we must check for NaN for ie 8/9\\n    if (isNaN(marginTop))  marginTop  = 0\\n    if (isNaN(marginLeft)) marginLeft = 0\\n\\n    offset.top  += marginTop\\n    offset.left += marginLeft\\n\\n    // $.fn.offset doesn't round pixel values\\n    // so we use setOffset directly with our own function B-0\\n    $.offset.setOffset($tip[0], $.extend({\\n      using: function (props) {\\n        $tip.css({\\n          top: Math.round(props.top),\\n          left: Math.round(props.left)\\n        })\\n      }\\n    }, offset), 0)\\n\\n    $tip.addClass('in')\\n\\n    // check to see if placing tip in new offset caused the tip to resize itself\\n    var actualWidth  = $tip[0].offsetWidth\\n    var actualHeight = $tip[0].offsetHeight\\n\\n    if (placement == 'top' && actualHeight != height) {\\n      offset.top = offset.top + height - actualHeight\\n    }\\n\\n    var delta = this.getViewportAdjustedDelta(placement, offset, actualWidth, actualHeight)\\n\\n    if (delta.left) offset.left += delta.left\\n    else offset.top += delta.top\\n\\n    var isVertical          = /top|bottom/.test(placement)\\n    var arrowDelta          = isVertical ? delta.left * 2 - width + actualWidth : delta.top * 2 - height + actualHeight\\n    var arrowOffsetPosition = isVertical ? 'offsetWidth' : 'offsetHeight'\\n\\n    $tip.offset(offset)\\n    this.replaceArrow(arrowDelta, $tip[0][arrowOffsetPosition], isVertical)\\n  }\\n\\n  Tooltip.prototype.replaceArrow = function (delta, dimension, isVertical) {\\n    this.arrow()\\n      .css(isVertical ? 'left' : 'top', 50 * (1 - delta / dimension) + '%')\\n      .css(isVertical ? 'top' : 'left', '')\\n  }\\n\\n  Tooltip.prototype.setContent = function () {\\n    var $tip  = this.tip()\\n    var title = this.getTitle()\\n\\n    $tip.find('.tooltip-inner')[this.options.html ? 'html' : 'text'](title)\\n    $tip.removeClass('fade in top bottom left right')\\n  }\\n\\n  Tooltip.prototype.hide = function (callback) {\\n    var that = this\\n    var $tip = $(this.$tip)\\n    var e    = $.Event('hide.bs.' + this.type)\\n\\n    function complete() {\\n      if (that.hoverState != 'in') $tip.detach()\\n      if (that.$element) { // TODO: Check whether guarding this code with this `if` is really necessary.\\n        that.$element\\n          .removeAttr('aria-describedby')\\n          .trigger('hidden.bs.' + that.type)\\n      }\\n      callback && callback()\\n    }\\n\\n    this.$element.trigger(e)\\n\\n    if (e.isDefaultPrevented()) return\\n\\n    $tip.removeClass('in')\\n\\n    $.support.transition && $tip.hasClass('fade') ?\\n      $tip\\n        .one('bsTransitionEnd', complete)\\n        .emulateTransitionEnd(Tooltip.TRANSITION_DURATION) :\\n      complete()\\n\\n    this.hoverState = null\\n\\n    return this\\n  }\\n\\n  Tooltip.prototype.fixTitle = function () {\\n    var $e = this.$element\\n    if ($e.attr('title') || typeof $e.attr('data-original-title') != 'string') {\\n      $e.attr('data-original-title', $e.attr('title') || '').attr('title', '')\\n    }\\n  }\\n\\n  Tooltip.prototype.hasContent = function () {\\n    return this.getTitle()\\n  }\\n\\n  Tooltip.prototype.getPosition = function ($element) {\\n    $element   = $element || this.$element\\n\\n    var el     = $element[0]\\n    var isBody = el.tagName == 'BODY'\\n\\n    var elRect    = el.getBoundingClientRect()\\n    if (elRect.width == null) {\\n      // width and height are missing in IE8, so compute them manually; see https://github.com/twbs/bootstrap/issues/14093\\n      elRect = $.extend({}, elRect, { width: elRect.right - elRect.left, height: elRect.bottom - elRect.top })\\n    }\\n    var isSvg = window.SVGElement && el instanceof window.SVGElement\\n    // Avoid using $.offset() on SVGs since it gives incorrect results in jQuery 3.\\n    // See https://github.com/twbs/bootstrap/issues/20280\\n    var elOffset  = isBody ? { top: 0, left: 0 } : (isSvg ? null : $element.offset())\\n    var scroll    = { scroll: isBody ? document.documentElement.scrollTop || document.body.scrollTop : $element.scrollTop() }\\n    var outerDims = isBody ? { width: $(window).width(), height: $(window).height() } : null\\n\\n    return $.extend({}, elRect, scroll, outerDims, elOffset)\\n  }\\n\\n  Tooltip.prototype.getCalculatedOffset = function (placement, pos, actualWidth, actualHeight) {\\n    return placement == 'bottom' ? { top: pos.top + pos.height,   left: pos.left + pos.width / 2 - actualWidth / 2 } :\\n           placement == 'top'    ? { top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2 } :\\n           placement == 'left'   ? { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth } :\\n        /* placement == 'right' */ { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width }\\n\\n  }\\n\\n  Tooltip.prototype.getViewportAdjustedDelta = function (placement, pos, actualWidth, actualHeight) {\\n    var delta = { top: 0, left: 0 }\\n    if (!this.$viewport) return delta\\n\\n    var viewportPadding = this.options.viewport && this.options.viewport.padding || 0\\n    var viewportDimensions = this.getPosition(this.$viewport)\\n\\n    if (/right|left/.test(placement)) {\\n      var topEdgeOffset    = pos.top - viewportPadding - viewportDimensions.scroll\\n      var bottomEdgeOffset = pos.top + viewportPadding - viewportDimensions.scroll + actualHeight\\n      if (topEdgeOffset < viewportDimensions.top) { // top overflow\\n        delta.top = viewportDimensions.top - topEdgeOffset\\n      } else if (bottomEdgeOffset > viewportDimensions.top + viewportDimensions.height) { // bottom overflow\\n        delta.top = viewportDimensions.top + viewportDimensions.height - bottomEdgeOffset\\n      }\\n    } else {\\n      var leftEdgeOffset  = pos.left - viewportPadding\\n      var rightEdgeOffset = pos.left + viewportPadding + actualWidth\\n      if (leftEdgeOffset < viewportDimensions.left) { // left overflow\\n        delta.left = viewportDimensions.left - leftEdgeOffset\\n      } else if (rightEdgeOffset > viewportDimensions.right) { // right overflow\\n        delta.left = viewportDimensions.left + viewportDimensions.width - rightEdgeOffset\\n      }\\n    }\\n\\n    return delta\\n  }\\n\\n  Tooltip.prototype.getTitle = function () {\\n    var title\\n    var $e = this.$element\\n    var o  = this.options\\n\\n    title = $e.attr('data-original-title')\\n      || (typeof o.title == 'function' ? o.title.call($e[0]) :  o.title)\\n\\n    return title\\n  }\\n\\n  Tooltip.prototype.getUID = function (prefix) {\\n    do prefix += ~~(Math.random() * 1000000)\\n    while (document.getElementById(prefix))\\n    return prefix\\n  }\\n\\n  Tooltip.prototype.tip = function () {\\n    if (!this.$tip) {\\n      this.$tip = $(this.options.template)\\n      if (this.$tip.length != 1) {\\n        throw new Error(this.type + ' `template` option must consist of exactly 1 top-level element!')\\n      }\\n    }\\n    return this.$tip\\n  }\\n\\n  Tooltip.prototype.arrow = function () {\\n    return (this.$arrow = this.$arrow || this.tip().find('.tooltip-arrow'))\\n  }\\n\\n  Tooltip.prototype.enable = function () {\\n    this.enabled = true\\n  }\\n\\n  Tooltip.prototype.disable = function () {\\n    this.enabled = false\\n  }\\n\\n  Tooltip.prototype.toggleEnabled = function () {\\n    this.enabled = !this.enabled\\n  }\\n\\n  Tooltip.prototype.toggle = function (e) {\\n    var self = this\\n    if (e) {\\n      self = $(e.currentTarget).data('bs.' + this.type)\\n      if (!self) {\\n        self = new this.constructor(e.currentTarget, this.getDelegateOptions())\\n        $(e.currentTarget).data('bs.' + this.type, self)\\n      }\\n    }\\n\\n    if (e) {\\n      self.inState.click = !self.inState.click\\n      if (self.isInStateTrue()) self.enter(self)\\n      else self.leave(self)\\n    } else {\\n      self.tip().hasClass('in') ? self.leave(self) : self.enter(self)\\n    }\\n  }\\n\\n  Tooltip.prototype.destroy = function () {\\n    var that = this\\n    clearTimeout(this.timeout)\\n    this.hide(function () {\\n      that.$element.off('.' + that.type).removeData('bs.' + that.type)\\n      if (that.$tip) {\\n        that.$tip.detach()\\n      }\\n      that.$tip = null\\n      that.$arrow = null\\n      that.$viewport = null\\n      that.$element = null\\n    })\\n  }\\n\\n\\n  // TOOLTIP PLUGIN DEFINITION\\n  // =========================\\n\\n  function Plugin(option) {\\n    return this.each(function () {\\n      var $this   = $(this)\\n      var data    = $this.data('bs.tooltip')\\n      var options = typeof option == 'object' && option\\n\\n      if (!data && /destroy|hide/.test(option)) return\\n      if (!data) $this.data('bs.tooltip', (data = new Tooltip(this, options)))\\n      if (typeof option == 'string') data[option]()\\n    })\\n  }\\n\\n  var old = $.fn.tooltip\\n\\n  $.fn.tooltip             = Plugin\\n  $.fn.tooltip.Constructor = Tooltip\\n\\n\\n  // TOOLTIP NO CONFLICT\\n  // ===================\\n\\n  $.fn.tooltip.noConflict = function () {\\n    $.fn.tooltip = old\\n    return this\\n  }\\n\\n}(jQuery);\\n\\n/* ========================================================================\\n * Bootstrap: popover.js v3.3.7\\n * http://getbootstrap.com/javascript/#popovers\\n * ========================================================================\\n * Copyright 2011-2016 Twitter, Inc.\\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\\n * ======================================================================== */\\n\\n\\n+function ($) {\\n  'use strict';\\n\\n  // POPOVER PUBLIC CLASS DEFINITION\\n  // ===============================\\n\\n  var Popover = function (element, options) {\\n    this.init('popover', element, options)\\n  }\\n\\n  if (!$.fn.tooltip) throw new Error('Popover requires tooltip.js')\\n\\n  Popover.VERSION  = '3.3.7'\\n\\n  Popover.DEFAULTS = $.extend({}, $.fn.tooltip.Constructor.DEFAULTS, {\\n    placement: 'right',\\n    trigger: 'click',\\n    content: '',\\n    template: '<div class=\\\"popover\\\" role=\\\"tooltip\\\"><div class=\\\"arrow\\\"></div><h3 class=\\\"popover-title\\\"></h3><div class=\\\"popover-content\\\"></div></div>'\\n  })\\n\\n\\n  // NOTE: POPOVER EXTENDS tooltip.js\\n  // ================================\\n\\n  Popover.prototype = $.extend({}, $.fn.tooltip.Constructor.prototype)\\n\\n  Popover.prototype.constructor = Popover\\n\\n  Popover.prototype.getDefaults = function () {\\n    return Popover.DEFAULTS\\n  }\\n\\n  Popover.prototype.setContent = function () {\\n    var $tip    = this.tip()\\n    var title   = this.getTitle()\\n    var content = this.getContent()\\n\\n    $tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title)\\n    $tip.find('.popover-content').children().detach().end()[ // we use append for html objects to maintain js events\\n      this.options.html ? (typeof content == 'string' ? 'html' : 'append') : 'text'\\n    ](content)\\n\\n    $tip.removeClass('fade top bottom left right in')\\n\\n    // IE8 doesn't accept hiding via the `:empty` pseudo selector, we have to do\\n    // this manually by checking the contents.\\n    if (!$tip.find('.popover-title').html()) $tip.find('.popover-title').hide()\\n  }\\n\\n  Popover.prototype.hasContent = function () {\\n    return this.getTitle() || this.getContent()\\n  }\\n\\n  Popover.prototype.getContent = function () {\\n    var $e = this.$element\\n    var o  = this.options\\n\\n    return $e.attr('data-content')\\n      || (typeof o.content == 'function' ?\\n            o.content.call($e[0]) :\\n            o.content)\\n  }\\n\\n  Popover.prototype.arrow = function () {\\n    return (this.$arrow = this.$arrow || this.tip().find('.arrow'))\\n  }\\n\\n\\n  // POPOVER PLUGIN DEFINITION\\n  // =========================\\n\\n  function Plugin(option) {\\n    return this.each(function () {\\n      var $this   = $(this)\\n      var data    = $this.data('bs.popover')\\n      var options = typeof option == 'object' && option\\n\\n      if (!data && /destroy|hide/.test(option)) return\\n      if (!data) $this.data('bs.popover', (data = new Popover(this, options)))\\n      if (typeof option == 'string') data[option]()\\n    })\\n  }\\n\\n  var old = $.fn.popover\\n\\n  $.fn.popover             = Plugin\\n  $.fn.popover.Constructor = Popover\\n\\n\\n  // POPOVER NO CONFLICT\\n  // ===================\\n\\n  $.fn.popover.noConflict = function () {\\n    $.fn.popover = old\\n    return this\\n  }\\n\\n}(jQuery);\\n\\n/* ========================================================================\\n * Bootstrap: scrollspy.js v3.3.7\\n * http://getbootstrap.com/javascript/#scrollspy\\n * ========================================================================\\n * Copyright 2011-2016 Twitter, Inc.\\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\\n * ======================================================================== */\\n\\n\\n+function ($) {\\n  'use strict';\\n\\n  // SCROLLSPY CLASS DEFINITION\\n  // ==========================\\n\\n  function ScrollSpy(element, options) {\\n    this.$body          = $(document.body)\\n    this.$scrollElement = $(element).is(document.body) ? $(window) : $(element)\\n    this.options        = $.extend({}, ScrollSpy.DEFAULTS, options)\\n    this.selector       = (this.options.target || '') + ' .nav li > a'\\n    this.offsets        = []\\n    this.targets        = []\\n    this.activeTarget   = null\\n    this.scrollHeight   = 0\\n\\n    this.$scrollElement.on('scroll.bs.scrollspy', $.proxy(this.process, this))\\n    this.refresh()\\n    this.process()\\n  }\\n\\n  ScrollSpy.VERSION  = '3.3.7'\\n\\n  ScrollSpy.DEFAULTS = {\\n    offset: 10\\n  }\\n\\n  ScrollSpy.prototype.getScrollHeight = function () {\\n    return this.$scrollElement[0].scrollHeight || Math.max(this.$body[0].scrollHeight, document.documentElement.scrollHeight)\\n  }\\n\\n  ScrollSpy.prototype.refresh = function () {\\n    var that          = this\\n    var offsetMethod  = 'offset'\\n    var offsetBase    = 0\\n\\n    this.offsets      = []\\n    this.targets      = []\\n    this.scrollHeight = this.getScrollHeight()\\n\\n    if (!$.isWindow(this.$scrollElement[0])) {\\n      offsetMethod = 'position'\\n      offsetBase   = this.$scrollElement.scrollTop()\\n    }\\n\\n    this.$body\\n      .find(this.selector)\\n      .map(function () {\\n        var $el   = $(this)\\n        var href  = $el.data('target') || $el.attr('href')\\n        var $href = /^#./.test(href) && $(href)\\n\\n        return ($href\\n          && $href.length\\n          && $href.is(':visible')\\n          && [[$href[offsetMethod]().top + offsetBase, href]]) || null\\n      })\\n      .sort(function (a, b) { return a[0] - b[0] })\\n      .each(function () {\\n        that.offsets.push(this[0])\\n        that.targets.push(this[1])\\n      })\\n  }\\n\\n  ScrollSpy.prototype.process = function () {\\n    var scrollTop    = this.$scrollElement.scrollTop() + this.options.offset\\n    var scrollHeight = this.getScrollHeight()\\n    var maxScroll    = this.options.offset + scrollHeight - this.$scrollElement.height()\\n    var offsets      = this.offsets\\n    var targets      = this.targets\\n    var activeTarget = this.activeTarget\\n    var i\\n\\n    if (this.scrollHeight != scrollHeight) {\\n      this.refresh()\\n    }\\n\\n    if (scrollTop >= maxScroll) {\\n      return activeTarget != (i = targets[targets.length - 1]) && this.activate(i)\\n    }\\n\\n    if (activeTarget && scrollTop < offsets[0]) {\\n      this.activeTarget = null\\n      return this.clear()\\n    }\\n\\n    for (i = offsets.length; i--;) {\\n      activeTarget != targets[i]\\n        && scrollTop >= offsets[i]\\n        && (offsets[i + 1] === undefined || scrollTop < offsets[i + 1])\\n        && this.activate(targets[i])\\n    }\\n  }\\n\\n  ScrollSpy.prototype.activate = function (target) {\\n    this.activeTarget = target\\n\\n    this.clear()\\n\\n    var selector = this.selector +\\n      '[data-target=\\\"' + target + '\\\"],' +\\n      this.selector + '[href=\\\"' + target + '\\\"]'\\n\\n    var active = $(selector)\\n      .parents('li')\\n      .addClass('active')\\n\\n    if (active.parent('.dropdown-menu').length) {\\n      active = active\\n        .closest('li.dropdown')\\n        .addClass('active')\\n    }\\n\\n    active.trigger('activate.bs.scrollspy')\\n  }\\n\\n  ScrollSpy.prototype.clear = function () {\\n    $(this.selector)\\n      .parentsUntil(this.options.target, '.active')\\n      .removeClass('active')\\n  }\\n\\n\\n  // SCROLLSPY PLUGIN DEFINITION\\n  // ===========================\\n\\n  function Plugin(option) {\\n    return this.each(function () {\\n      var $this   = $(this)\\n      var data    = $this.data('bs.scrollspy')\\n      var options = typeof option == 'object' && option\\n\\n      if (!data) $this.data('bs.scrollspy', (data = new ScrollSpy(this, options)))\\n      if (typeof option == 'string') data[option]()\\n    })\\n  }\\n\\n  var old = $.fn.scrollspy\\n\\n  $.fn.scrollspy             = Plugin\\n  $.fn.scrollspy.Constructor = ScrollSpy\\n\\n\\n  // SCROLLSPY NO CONFLICT\\n  // =====================\\n\\n  $.fn.scrollspy.noConflict = function () {\\n    $.fn.scrollspy = old\\n    return this\\n  }\\n\\n\\n  // SCROLLSPY DATA-API\\n  // ==================\\n\\n  $(window).on('load.bs.scrollspy.data-api', function () {\\n    $('[data-spy=\\\"scroll\\\"]').each(function () {\\n      var $spy = $(this)\\n      Plugin.call($spy, $spy.data())\\n    })\\n  })\\n\\n}(jQuery);\\n\\n/* ========================================================================\\n * Bootstrap: tab.js v3.3.7\\n * http://getbootstrap.com/javascript/#tabs\\n * ========================================================================\\n * Copyright 2011-2016 Twitter, Inc.\\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\\n * ======================================================================== */\\n\\n\\n+function ($) {\\n  'use strict';\\n\\n  // TAB CLASS DEFINITION\\n  // ====================\\n\\n  var Tab = function (element) {\\n    // jscs:disable requireDollarBeforejQueryAssignment\\n    this.element = $(element)\\n    // jscs:enable requireDollarBeforejQueryAssignment\\n  }\\n\\n  Tab.VERSION = '3.3.7'\\n\\n  Tab.TRANSITION_DURATION = 150\\n\\n  Tab.prototype.show = function () {\\n    var $this    = this.element\\n    var $ul      = $this.closest('ul:not(.dropdown-menu)')\\n    var selector = $this.data('target')\\n\\n    if (!selector) {\\n      selector = $this.attr('href')\\n      selector = selector && selector.replace(/.*(?=#[^\\\\s]*$)/, '') // strip for ie7\\n    }\\n\\n    if ($this.parent('li').hasClass('active')) return\\n\\n    var $previous = $ul.find('.active:last a')\\n    var hideEvent = $.Event('hide.bs.tab', {\\n      relatedTarget: $this[0]\\n    })\\n    var showEvent = $.Event('show.bs.tab', {\\n      relatedTarget: $previous[0]\\n    })\\n\\n    $previous.trigger(hideEvent)\\n    $this.trigger(showEvent)\\n\\n    if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) return\\n\\n    var $target = $(selector)\\n\\n    this.activate($this.closest('li'), $ul)\\n    this.activate($target, $target.parent(), function () {\\n      $previous.trigger({\\n        type: 'hidden.bs.tab',\\n        relatedTarget: $this[0]\\n      })\\n      $this.trigger({\\n        type: 'shown.bs.tab',\\n        relatedTarget: $previous[0]\\n      })\\n    })\\n  }\\n\\n  Tab.prototype.activate = function (element, container, callback) {\\n    var $active    = container.find('> .active')\\n    var transition = callback\\n      && $.support.transition\\n      && ($active.length && $active.hasClass('fade') || !!container.find('> .fade').length)\\n\\n    function next() {\\n      $active\\n        .removeClass('active')\\n        .find('> .dropdown-menu > .active')\\n          .removeClass('active')\\n        .end()\\n        .find('[data-toggle=\\\"tab\\\"]')\\n          .attr('aria-expanded', false)\\n\\n      element\\n        .addClass('active')\\n        .find('[data-toggle=\\\"tab\\\"]')\\n          .attr('aria-expanded', true)\\n\\n      if (transition) {\\n        element[0].offsetWidth // reflow for transition\\n        element.addClass('in')\\n      } else {\\n        element.removeClass('fade')\\n      }\\n\\n      if (element.parent('.dropdown-menu').length) {\\n        element\\n          .closest('li.dropdown')\\n            .addClass('active')\\n          .end()\\n          .find('[data-toggle=\\\"tab\\\"]')\\n            .attr('aria-expanded', true)\\n      }\\n\\n      callback && callback()\\n    }\\n\\n    $active.length && transition ?\\n      $active\\n        .one('bsTransitionEnd', next)\\n        .emulateTransitionEnd(Tab.TRANSITION_DURATION) :\\n      next()\\n\\n    $active.removeClass('in')\\n  }\\n\\n\\n  // TAB PLUGIN DEFINITION\\n  // =====================\\n\\n  function Plugin(option) {\\n    return this.each(function () {\\n      var $this = $(this)\\n      var data  = $this.data('bs.tab')\\n\\n      if (!data) $this.data('bs.tab', (data = new Tab(this)))\\n      if (typeof option == 'string') data[option]()\\n    })\\n  }\\n\\n  var old = $.fn.tab\\n\\n  $.fn.tab             = Plugin\\n  $.fn.tab.Constructor = Tab\\n\\n\\n  // TAB NO CONFLICT\\n  // ===============\\n\\n  $.fn.tab.noConflict = function () {\\n    $.fn.tab = old\\n    return this\\n  }\\n\\n\\n  // TAB DATA-API\\n  // ============\\n\\n  var clickHandler = function (e) {\\n    e.preventDefault()\\n    Plugin.call($(this), 'show')\\n  }\\n\\n  $(document)\\n    .on('click.bs.tab.data-api', '[data-toggle=\\\"tab\\\"]', clickHandler)\\n    .on('click.bs.tab.data-api', '[data-toggle=\\\"pill\\\"]', clickHandler)\\n\\n}(jQuery);\\n\\n/* ========================================================================\\n * Bootstrap: affix.js v3.3.7\\n * http://getbootstrap.com/javascript/#affix\\n * ========================================================================\\n * Copyright 2011-2016 Twitter, Inc.\\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\\n * ======================================================================== */\\n\\n\\n+function ($) {\\n  'use strict';\\n\\n  // AFFIX CLASS DEFINITION\\n  // ======================\\n\\n  var Affix = function (element, options) {\\n    this.options = $.extend({}, Affix.DEFAULTS, options)\\n\\n    this.$target = $(this.options.target)\\n      .on('scroll.bs.affix.data-api', $.proxy(this.checkPosition, this))\\n      .on('click.bs.affix.data-api',  $.proxy(this.checkPositionWithEventLoop, this))\\n\\n    this.$element     = $(element)\\n    this.affixed      = null\\n    this.unpin        = null\\n    this.pinnedOffset = null\\n\\n    this.checkPosition()\\n  }\\n\\n  Affix.VERSION  = '3.3.7'\\n\\n  Affix.RESET    = 'affix affix-top affix-bottom'\\n\\n  Affix.DEFAULTS = {\\n    offset: 0,\\n    target: window\\n  }\\n\\n  Affix.prototype.getState = function (scrollHeight, height, offsetTop, offsetBottom) {\\n    var scrollTop    = this.$target.scrollTop()\\n    var position     = this.$element.offset()\\n    var targetHeight = this.$target.height()\\n\\n    if (offsetTop != null && this.affixed == 'top') return scrollTop < offsetTop ? 'top' : false\\n\\n    if (this.affixed == 'bottom') {\\n      if (offsetTop != null) return (scrollTop + this.unpin <= position.top) ? false : 'bottom'\\n      return (scrollTop + targetHeight <= scrollHeight - offsetBottom) ? false : 'bottom'\\n    }\\n\\n    var initializing   = this.affixed == null\\n    var colliderTop    = initializing ? scrollTop : position.top\\n    var colliderHeight = initializing ? targetHeight : height\\n\\n    if (offsetTop != null && scrollTop <= offsetTop) return 'top'\\n    if (offsetBottom != null && (colliderTop + colliderHeight >= scrollHeight - offsetBottom)) return 'bottom'\\n\\n    return false\\n  }\\n\\n  Affix.prototype.getPinnedOffset = function () {\\n    if (this.pinnedOffset) return this.pinnedOffset\\n    this.$element.removeClass(Affix.RESET).addClass('affix')\\n    var scrollTop = this.$target.scrollTop()\\n    var position  = this.$element.offset()\\n    return (this.pinnedOffset = position.top - scrollTop)\\n  }\\n\\n  Affix.prototype.checkPositionWithEventLoop = function () {\\n    setTimeout($.proxy(this.checkPosition, this), 1)\\n  }\\n\\n  Affix.prototype.checkPosition = function () {\\n    if (!this.$element.is(':visible')) return\\n\\n    var height       = this.$element.height()\\n    var offset       = this.options.offset\\n    var offsetTop    = offset.top\\n    var offsetBottom = offset.bottom\\n    var scrollHeight = Math.max($(document).height(), $(document.body).height())\\n\\n    if (typeof offset != 'object')         offsetBottom = offsetTop = offset\\n    if (typeof offsetTop == 'function')    offsetTop    = offset.top(this.$element)\\n    if (typeof offsetBottom == 'function') offsetBottom = offset.bottom(this.$element)\\n\\n    var affix = this.getState(scrollHeight, height, offsetTop, offsetBottom)\\n\\n    if (this.affixed != affix) {\\n      if (this.unpin != null) this.$element.css('top', '')\\n\\n      var affixType = 'affix' + (affix ? '-' + affix : '')\\n      var e         = $.Event(affixType + '.bs.affix')\\n\\n      this.$element.trigger(e)\\n\\n      if (e.isDefaultPrevented()) return\\n\\n      this.affixed = affix\\n      this.unpin = affix == 'bottom' ? this.getPinnedOffset() : null\\n\\n      this.$element\\n        .removeClass(Affix.RESET)\\n        .addClass(affixType)\\n        .trigger(affixType.replace('affix', 'affixed') + '.bs.affix')\\n    }\\n\\n    if (affix == 'bottom') {\\n      this.$element.offset({\\n        top: scrollHeight - height - offsetBottom\\n      })\\n    }\\n  }\\n\\n\\n  // AFFIX PLUGIN DEFINITION\\n  // =======================\\n\\n  function Plugin(option) {\\n    return this.each(function () {\\n      var $this   = $(this)\\n      var data    = $this.data('bs.affix')\\n      var options = typeof option == 'object' && option\\n\\n      if (!data) $this.data('bs.affix', (data = new Affix(this, options)))\\n      if (typeof option == 'string') data[option]()\\n    })\\n  }\\n\\n  var old = $.fn.affix\\n\\n  $.fn.affix             = Plugin\\n  $.fn.affix.Constructor = Affix\\n\\n\\n  // AFFIX NO CONFLICT\\n  // =================\\n\\n  $.fn.affix.noConflict = function () {\\n    $.fn.affix = old\\n    return this\\n  }\\n\\n\\n  // AFFIX DATA-API\\n  // ==============\\n\\n  $(window).on('load', function () {\\n    $('[data-spy=\\\"affix\\\"]').each(function () {\\n      var $spy = $(this)\\n      var data = $spy.data()\\n\\n      data.offset = data.offset || {}\\n\\n      if (data.offsetBottom != null) data.offset.bottom = data.offsetBottom\\n      if (data.offsetTop    != null) data.offset.top    = data.offsetTop\\n\\n      Plugin.call($spy, data)\\n    })\\n  })\\n\\n}(jQuery);\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// /home/cool/Music/personal_projects/Zmall/angbackuo/~/raw-loader!/home/cool/Music/personal_projects/Zmall/angbackuo/~/bootstrap/dist/js/bootstrap.js\n// module id = 1486\n// module chunks = 2","module.exports = \"/*!\\n * jQuery JavaScript Library v3.1.1\\n * https://jquery.com/\\n *\\n * Includes Sizzle.js\\n * https://sizzlejs.com/\\n *\\n * Copyright jQuery Foundation and other contributors\\n * Released under the MIT license\\n * https://jquery.org/license\\n *\\n * Date: 2016-09-22T22:30Z\\n */\\n( function( global, factory ) {\\n\\n\\t\\\"use strict\\\";\\n\\n\\tif ( typeof module === \\\"object\\\" && typeof module.exports === \\\"object\\\" ) {\\n\\n\\t\\t// For CommonJS and CommonJS-like environments where a proper `window`\\n\\t\\t// is present, execute the factory and get jQuery.\\n\\t\\t// For environments that do not have a `window` with a `document`\\n\\t\\t// (such as Node.js), expose a factory as module.exports.\\n\\t\\t// This accentuates the need for the creation of a real `window`.\\n\\t\\t// e.g. var jQuery = require(\\\"jquery\\\")(window);\\n\\t\\t// See ticket #14549 for more info.\\n\\t\\tmodule.exports = global.document ?\\n\\t\\t\\tfactory( global, true ) :\\n\\t\\t\\tfunction( w ) {\\n\\t\\t\\t\\tif ( !w.document ) {\\n\\t\\t\\t\\t\\tthrow new Error( \\\"jQuery requires a window with a document\\\" );\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\treturn factory( w );\\n\\t\\t\\t};\\n\\t} else {\\n\\t\\tfactory( global );\\n\\t}\\n\\n// Pass this if window is not defined yet\\n} )( typeof window !== \\\"undefined\\\" ? window : this, function( window, noGlobal ) {\\n\\n// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1\\n// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode\\n// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common\\n// enough that all such attempts are guarded in a try block.\\n\\\"use strict\\\";\\n\\nvar arr = [];\\n\\nvar document = window.document;\\n\\nvar getProto = Object.getPrototypeOf;\\n\\nvar slice = arr.slice;\\n\\nvar concat = arr.concat;\\n\\nvar push = arr.push;\\n\\nvar indexOf = arr.indexOf;\\n\\nvar class2type = {};\\n\\nvar toString = class2type.toString;\\n\\nvar hasOwn = class2type.hasOwnProperty;\\n\\nvar fnToString = hasOwn.toString;\\n\\nvar ObjectFunctionString = fnToString.call( Object );\\n\\nvar support = {};\\n\\n\\n\\n\\tfunction DOMEval( code, doc ) {\\n\\t\\tdoc = doc || document;\\n\\n\\t\\tvar script = doc.createElement( \\\"script\\\" );\\n\\n\\t\\tscript.text = code;\\n\\t\\tdoc.head.appendChild( script ).parentNode.removeChild( script );\\n\\t}\\n/* global Symbol */\\n// Defining this global in .eslintrc.json would create a danger of using the global\\n// unguarded in another place, it seems safer to define global only for this module\\n\\n\\n\\nvar\\n\\tversion = \\\"3.1.1\\\",\\n\\n\\t// Define a local copy of jQuery\\n\\tjQuery = function( selector, context ) {\\n\\n\\t\\t// The jQuery object is actually just the init constructor 'enhanced'\\n\\t\\t// Need init if jQuery is called (just allow error to be thrown if not included)\\n\\t\\treturn new jQuery.fn.init( selector, context );\\n\\t},\\n\\n\\t// Support: Android <=4.0 only\\n\\t// Make sure we trim BOM and NBSP\\n\\trtrim = /^[\\\\s\\\\uFEFF\\\\xA0]+|[\\\\s\\\\uFEFF\\\\xA0]+$/g,\\n\\n\\t// Matches dashed string for camelizing\\n\\trmsPrefix = /^-ms-/,\\n\\trdashAlpha = /-([a-z])/g,\\n\\n\\t// Used by jQuery.camelCase as callback to replace()\\n\\tfcamelCase = function( all, letter ) {\\n\\t\\treturn letter.toUpperCase();\\n\\t};\\n\\njQuery.fn = jQuery.prototype = {\\n\\n\\t// The current version of jQuery being used\\n\\tjquery: version,\\n\\n\\tconstructor: jQuery,\\n\\n\\t// The default length of a jQuery object is 0\\n\\tlength: 0,\\n\\n\\ttoArray: function() {\\n\\t\\treturn slice.call( this );\\n\\t},\\n\\n\\t// Get the Nth element in the matched element set OR\\n\\t// Get the whole matched element set as a clean array\\n\\tget: function( num ) {\\n\\n\\t\\t// Return all the elements in a clean array\\n\\t\\tif ( num == null ) {\\n\\t\\t\\treturn slice.call( this );\\n\\t\\t}\\n\\n\\t\\t// Return just the one element from the set\\n\\t\\treturn num < 0 ? this[ num + this.length ] : this[ num ];\\n\\t},\\n\\n\\t// Take an array of elements and push it onto the stack\\n\\t// (returning the new matched element set)\\n\\tpushStack: function( elems ) {\\n\\n\\t\\t// Build a new jQuery matched element set\\n\\t\\tvar ret = jQuery.merge( this.constructor(), elems );\\n\\n\\t\\t// Add the old object onto the stack (as a reference)\\n\\t\\tret.prevObject = this;\\n\\n\\t\\t// Return the newly-formed element set\\n\\t\\treturn ret;\\n\\t},\\n\\n\\t// Execute a callback for every element in the matched set.\\n\\teach: function( callback ) {\\n\\t\\treturn jQuery.each( this, callback );\\n\\t},\\n\\n\\tmap: function( callback ) {\\n\\t\\treturn this.pushStack( jQuery.map( this, function( elem, i ) {\\n\\t\\t\\treturn callback.call( elem, i, elem );\\n\\t\\t} ) );\\n\\t},\\n\\n\\tslice: function() {\\n\\t\\treturn this.pushStack( slice.apply( this, arguments ) );\\n\\t},\\n\\n\\tfirst: function() {\\n\\t\\treturn this.eq( 0 );\\n\\t},\\n\\n\\tlast: function() {\\n\\t\\treturn this.eq( -1 );\\n\\t},\\n\\n\\teq: function( i ) {\\n\\t\\tvar len = this.length,\\n\\t\\t\\tj = +i + ( i < 0 ? len : 0 );\\n\\t\\treturn this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );\\n\\t},\\n\\n\\tend: function() {\\n\\t\\treturn this.prevObject || this.constructor();\\n\\t},\\n\\n\\t// For internal use only.\\n\\t// Behaves like an Array's method, not like a jQuery method.\\n\\tpush: push,\\n\\tsort: arr.sort,\\n\\tsplice: arr.splice\\n};\\n\\njQuery.extend = jQuery.fn.extend = function() {\\n\\tvar options, name, src, copy, copyIsArray, clone,\\n\\t\\ttarget = arguments[ 0 ] || {},\\n\\t\\ti = 1,\\n\\t\\tlength = arguments.length,\\n\\t\\tdeep = false;\\n\\n\\t// Handle a deep copy situation\\n\\tif ( typeof target === \\\"boolean\\\" ) {\\n\\t\\tdeep = target;\\n\\n\\t\\t// Skip the boolean and the target\\n\\t\\ttarget = arguments[ i ] || {};\\n\\t\\ti++;\\n\\t}\\n\\n\\t// Handle case when target is a string or something (possible in deep copy)\\n\\tif ( typeof target !== \\\"object\\\" && !jQuery.isFunction( target ) ) {\\n\\t\\ttarget = {};\\n\\t}\\n\\n\\t// Extend jQuery itself if only one argument is passed\\n\\tif ( i === length ) {\\n\\t\\ttarget = this;\\n\\t\\ti--;\\n\\t}\\n\\n\\tfor ( ; i < length; i++ ) {\\n\\n\\t\\t// Only deal with non-null/undefined values\\n\\t\\tif ( ( options = arguments[ i ] ) != null ) {\\n\\n\\t\\t\\t// Extend the base object\\n\\t\\t\\tfor ( name in options ) {\\n\\t\\t\\t\\tsrc = target[ name ];\\n\\t\\t\\t\\tcopy = options[ name ];\\n\\n\\t\\t\\t\\t// Prevent never-ending loop\\n\\t\\t\\t\\tif ( target === copy ) {\\n\\t\\t\\t\\t\\tcontinue;\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t// Recurse if we're merging plain objects or arrays\\n\\t\\t\\t\\tif ( deep && copy && ( jQuery.isPlainObject( copy ) ||\\n\\t\\t\\t\\t\\t( copyIsArray = jQuery.isArray( copy ) ) ) ) {\\n\\n\\t\\t\\t\\t\\tif ( copyIsArray ) {\\n\\t\\t\\t\\t\\t\\tcopyIsArray = false;\\n\\t\\t\\t\\t\\t\\tclone = src && jQuery.isArray( src ) ? src : [];\\n\\n\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\tclone = src && jQuery.isPlainObject( src ) ? src : {};\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t// Never move original objects, clone them\\n\\t\\t\\t\\t\\ttarget[ name ] = jQuery.extend( deep, clone, copy );\\n\\n\\t\\t\\t\\t// Don't bring in undefined values\\n\\t\\t\\t\\t} else if ( copy !== undefined ) {\\n\\t\\t\\t\\t\\ttarget[ name ] = copy;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n\\n\\t// Return the modified object\\n\\treturn target;\\n};\\n\\njQuery.extend( {\\n\\n\\t// Unique for each copy of jQuery on the page\\n\\texpando: \\\"jQuery\\\" + ( version + Math.random() ).replace( /\\\\D/g, \\\"\\\" ),\\n\\n\\t// Assume jQuery is ready without the ready module\\n\\tisReady: true,\\n\\n\\terror: function( msg ) {\\n\\t\\tthrow new Error( msg );\\n\\t},\\n\\n\\tnoop: function() {},\\n\\n\\tisFunction: function( obj ) {\\n\\t\\treturn jQuery.type( obj ) === \\\"function\\\";\\n\\t},\\n\\n\\tisArray: Array.isArray,\\n\\n\\tisWindow: function( obj ) {\\n\\t\\treturn obj != null && obj === obj.window;\\n\\t},\\n\\n\\tisNumeric: function( obj ) {\\n\\n\\t\\t// As of jQuery 3.0, isNumeric is limited to\\n\\t\\t// strings and numbers (primitives or objects)\\n\\t\\t// that can be coerced to finite numbers (gh-2662)\\n\\t\\tvar type = jQuery.type( obj );\\n\\t\\treturn ( type === \\\"number\\\" || type === \\\"string\\\" ) &&\\n\\n\\t\\t\\t// parseFloat NaNs numeric-cast false positives (\\\"\\\")\\n\\t\\t\\t// ...but misinterprets leading-number strings, particularly hex literals (\\\"0x...\\\")\\n\\t\\t\\t// subtraction forces infinities to NaN\\n\\t\\t\\t!isNaN( obj - parseFloat( obj ) );\\n\\t},\\n\\n\\tisPlainObject: function( obj ) {\\n\\t\\tvar proto, Ctor;\\n\\n\\t\\t// Detect obvious negatives\\n\\t\\t// Use toString instead of jQuery.type to catch host objects\\n\\t\\tif ( !obj || toString.call( obj ) !== \\\"[object Object]\\\" ) {\\n\\t\\t\\treturn false;\\n\\t\\t}\\n\\n\\t\\tproto = getProto( obj );\\n\\n\\t\\t// Objects with no prototype (e.g., `Object.create( null )`) are plain\\n\\t\\tif ( !proto ) {\\n\\t\\t\\treturn true;\\n\\t\\t}\\n\\n\\t\\t// Objects with prototype are plain iff they were constructed by a global Object function\\n\\t\\tCtor = hasOwn.call( proto, \\\"constructor\\\" ) && proto.constructor;\\n\\t\\treturn typeof Ctor === \\\"function\\\" && fnToString.call( Ctor ) === ObjectFunctionString;\\n\\t},\\n\\n\\tisEmptyObject: function( obj ) {\\n\\n\\t\\t/* eslint-disable no-unused-vars */\\n\\t\\t// See https://github.com/eslint/eslint/issues/6125\\n\\t\\tvar name;\\n\\n\\t\\tfor ( name in obj ) {\\n\\t\\t\\treturn false;\\n\\t\\t}\\n\\t\\treturn true;\\n\\t},\\n\\n\\ttype: function( obj ) {\\n\\t\\tif ( obj == null ) {\\n\\t\\t\\treturn obj + \\\"\\\";\\n\\t\\t}\\n\\n\\t\\t// Support: Android <=2.3 only (functionish RegExp)\\n\\t\\treturn typeof obj === \\\"object\\\" || typeof obj === \\\"function\\\" ?\\n\\t\\t\\tclass2type[ toString.call( obj ) ] || \\\"object\\\" :\\n\\t\\t\\ttypeof obj;\\n\\t},\\n\\n\\t// Evaluates a script in a global context\\n\\tglobalEval: function( code ) {\\n\\t\\tDOMEval( code );\\n\\t},\\n\\n\\t// Convert dashed to camelCase; used by the css and data modules\\n\\t// Support: IE <=9 - 11, Edge 12 - 13\\n\\t// Microsoft forgot to hump their vendor prefix (#9572)\\n\\tcamelCase: function( string ) {\\n\\t\\treturn string.replace( rmsPrefix, \\\"ms-\\\" ).replace( rdashAlpha, fcamelCase );\\n\\t},\\n\\n\\tnodeName: function( elem, name ) {\\n\\t\\treturn elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();\\n\\t},\\n\\n\\teach: function( obj, callback ) {\\n\\t\\tvar length, i = 0;\\n\\n\\t\\tif ( isArrayLike( obj ) ) {\\n\\t\\t\\tlength = obj.length;\\n\\t\\t\\tfor ( ; i < length; i++ ) {\\n\\t\\t\\t\\tif ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t} else {\\n\\t\\t\\tfor ( i in obj ) {\\n\\t\\t\\t\\tif ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\treturn obj;\\n\\t},\\n\\n\\t// Support: Android <=4.0 only\\n\\ttrim: function( text ) {\\n\\t\\treturn text == null ?\\n\\t\\t\\t\\\"\\\" :\\n\\t\\t\\t( text + \\\"\\\" ).replace( rtrim, \\\"\\\" );\\n\\t},\\n\\n\\t// results is for internal usage only\\n\\tmakeArray: function( arr, results ) {\\n\\t\\tvar ret = results || [];\\n\\n\\t\\tif ( arr != null ) {\\n\\t\\t\\tif ( isArrayLike( Object( arr ) ) ) {\\n\\t\\t\\t\\tjQuery.merge( ret,\\n\\t\\t\\t\\t\\ttypeof arr === \\\"string\\\" ?\\n\\t\\t\\t\\t\\t[ arr ] : arr\\n\\t\\t\\t\\t);\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tpush.call( ret, arr );\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\treturn ret;\\n\\t},\\n\\n\\tinArray: function( elem, arr, i ) {\\n\\t\\treturn arr == null ? -1 : indexOf.call( arr, elem, i );\\n\\t},\\n\\n\\t// Support: Android <=4.0 only, PhantomJS 1 only\\n\\t// push.apply(_, arraylike) throws on ancient WebKit\\n\\tmerge: function( first, second ) {\\n\\t\\tvar len = +second.length,\\n\\t\\t\\tj = 0,\\n\\t\\t\\ti = first.length;\\n\\n\\t\\tfor ( ; j < len; j++ ) {\\n\\t\\t\\tfirst[ i++ ] = second[ j ];\\n\\t\\t}\\n\\n\\t\\tfirst.length = i;\\n\\n\\t\\treturn first;\\n\\t},\\n\\n\\tgrep: function( elems, callback, invert ) {\\n\\t\\tvar callbackInverse,\\n\\t\\t\\tmatches = [],\\n\\t\\t\\ti = 0,\\n\\t\\t\\tlength = elems.length,\\n\\t\\t\\tcallbackExpect = !invert;\\n\\n\\t\\t// Go through the array, only saving the items\\n\\t\\t// that pass the validator function\\n\\t\\tfor ( ; i < length; i++ ) {\\n\\t\\t\\tcallbackInverse = !callback( elems[ i ], i );\\n\\t\\t\\tif ( callbackInverse !== callbackExpect ) {\\n\\t\\t\\t\\tmatches.push( elems[ i ] );\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\treturn matches;\\n\\t},\\n\\n\\t// arg is for internal usage only\\n\\tmap: function( elems, callback, arg ) {\\n\\t\\tvar length, value,\\n\\t\\t\\ti = 0,\\n\\t\\t\\tret = [];\\n\\n\\t\\t// Go through the array, translating each of the items to their new values\\n\\t\\tif ( isArrayLike( elems ) ) {\\n\\t\\t\\tlength = elems.length;\\n\\t\\t\\tfor ( ; i < length; i++ ) {\\n\\t\\t\\t\\tvalue = callback( elems[ i ], i, arg );\\n\\n\\t\\t\\t\\tif ( value != null ) {\\n\\t\\t\\t\\t\\tret.push( value );\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\n\\t\\t// Go through every key on the object,\\n\\t\\t} else {\\n\\t\\t\\tfor ( i in elems ) {\\n\\t\\t\\t\\tvalue = callback( elems[ i ], i, arg );\\n\\n\\t\\t\\t\\tif ( value != null ) {\\n\\t\\t\\t\\t\\tret.push( value );\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\t// Flatten any nested arrays\\n\\t\\treturn concat.apply( [], ret );\\n\\t},\\n\\n\\t// A global GUID counter for objects\\n\\tguid: 1,\\n\\n\\t// Bind a function to a context, optionally partially applying any\\n\\t// arguments.\\n\\tproxy: function( fn, context ) {\\n\\t\\tvar tmp, args, proxy;\\n\\n\\t\\tif ( typeof context === \\\"string\\\" ) {\\n\\t\\t\\ttmp = fn[ context ];\\n\\t\\t\\tcontext = fn;\\n\\t\\t\\tfn = tmp;\\n\\t\\t}\\n\\n\\t\\t// Quick check to determine if target is callable, in the spec\\n\\t\\t// this throws a TypeError, but we will just return undefined.\\n\\t\\tif ( !jQuery.isFunction( fn ) ) {\\n\\t\\t\\treturn undefined;\\n\\t\\t}\\n\\n\\t\\t// Simulated bind\\n\\t\\targs = slice.call( arguments, 2 );\\n\\t\\tproxy = function() {\\n\\t\\t\\treturn fn.apply( context || this, args.concat( slice.call( arguments ) ) );\\n\\t\\t};\\n\\n\\t\\t// Set the guid of unique handler to the same of original handler, so it can be removed\\n\\t\\tproxy.guid = fn.guid = fn.guid || jQuery.guid++;\\n\\n\\t\\treturn proxy;\\n\\t},\\n\\n\\tnow: Date.now,\\n\\n\\t// jQuery.support is not used in Core but other projects attach their\\n\\t// properties to it so it needs to exist.\\n\\tsupport: support\\n} );\\n\\nif ( typeof Symbol === \\\"function\\\" ) {\\n\\tjQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];\\n}\\n\\n// Populate the class2type map\\njQuery.each( \\\"Boolean Number String Function Array Date RegExp Object Error Symbol\\\".split( \\\" \\\" ),\\nfunction( i, name ) {\\n\\tclass2type[ \\\"[object \\\" + name + \\\"]\\\" ] = name.toLowerCase();\\n} );\\n\\nfunction isArrayLike( obj ) {\\n\\n\\t// Support: real iOS 8.2 only (not reproducible in simulator)\\n\\t// `in` check used to prevent JIT error (gh-2145)\\n\\t// hasOwn isn't used here due to false negatives\\n\\t// regarding Nodelist length in IE\\n\\tvar length = !!obj && \\\"length\\\" in obj && obj.length,\\n\\t\\ttype = jQuery.type( obj );\\n\\n\\tif ( type === \\\"function\\\" || jQuery.isWindow( obj ) ) {\\n\\t\\treturn false;\\n\\t}\\n\\n\\treturn type === \\\"array\\\" || length === 0 ||\\n\\t\\ttypeof length === \\\"number\\\" && length > 0 && ( length - 1 ) in obj;\\n}\\nvar Sizzle =\\n/*!\\n * Sizzle CSS Selector Engine v2.3.3\\n * https://sizzlejs.com/\\n *\\n * Copyright jQuery Foundation and other contributors\\n * Released under the MIT license\\n * http://jquery.org/license\\n *\\n * Date: 2016-08-08\\n */\\n(function( window ) {\\n\\nvar i,\\n\\tsupport,\\n\\tExpr,\\n\\tgetText,\\n\\tisXML,\\n\\ttokenize,\\n\\tcompile,\\n\\tselect,\\n\\toutermostContext,\\n\\tsortInput,\\n\\thasDuplicate,\\n\\n\\t// Local document vars\\n\\tsetDocument,\\n\\tdocument,\\n\\tdocElem,\\n\\tdocumentIsHTML,\\n\\trbuggyQSA,\\n\\trbuggyMatches,\\n\\tmatches,\\n\\tcontains,\\n\\n\\t// Instance-specific data\\n\\texpando = \\\"sizzle\\\" + 1 * new Date(),\\n\\tpreferredDoc = window.document,\\n\\tdirruns = 0,\\n\\tdone = 0,\\n\\tclassCache = createCache(),\\n\\ttokenCache = createCache(),\\n\\tcompilerCache = createCache(),\\n\\tsortOrder = function( a, b ) {\\n\\t\\tif ( a === b ) {\\n\\t\\t\\thasDuplicate = true;\\n\\t\\t}\\n\\t\\treturn 0;\\n\\t},\\n\\n\\t// Instance methods\\n\\thasOwn = ({}).hasOwnProperty,\\n\\tarr = [],\\n\\tpop = arr.pop,\\n\\tpush_native = arr.push,\\n\\tpush = arr.push,\\n\\tslice = arr.slice,\\n\\t// Use a stripped-down indexOf as it's faster than native\\n\\t// https://jsperf.com/thor-indexof-vs-for/5\\n\\tindexOf = function( list, elem ) {\\n\\t\\tvar i = 0,\\n\\t\\t\\tlen = list.length;\\n\\t\\tfor ( ; i < len; i++ ) {\\n\\t\\t\\tif ( list[i] === elem ) {\\n\\t\\t\\t\\treturn i;\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\treturn -1;\\n\\t},\\n\\n\\tbooleans = \\\"checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped\\\",\\n\\n\\t// Regular expressions\\n\\n\\t// http://www.w3.org/TR/css3-selectors/#whitespace\\n\\twhitespace = \\\"[\\\\\\\\x20\\\\\\\\t\\\\\\\\r\\\\\\\\n\\\\\\\\f]\\\",\\n\\n\\t// http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier\\n\\tidentifier = \\\"(?:\\\\\\\\\\\\\\\\.|[\\\\\\\\w-]|[^\\\\0-\\\\\\\\xa0])+\\\",\\n\\n\\t// Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors\\n\\tattributes = \\\"\\\\\\\\[\\\" + whitespace + \\\"*(\\\" + identifier + \\\")(?:\\\" + whitespace +\\n\\t\\t// Operator (capture 2)\\n\\t\\t\\\"*([*^$|!~]?=)\\\" + whitespace +\\n\\t\\t// \\\"Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]\\\"\\n\\t\\t\\\"*(?:'((?:\\\\\\\\\\\\\\\\.|[^\\\\\\\\\\\\\\\\'])*)'|\\\\\\\"((?:\\\\\\\\\\\\\\\\.|[^\\\\\\\\\\\\\\\\\\\\\\\"])*)\\\\\\\"|(\\\" + identifier + \\\"))|)\\\" + whitespace +\\n\\t\\t\\\"*\\\\\\\\]\\\",\\n\\n\\tpseudos = \\\":(\\\" + identifier + \\\")(?:\\\\\\\\((\\\" +\\n\\t\\t// To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:\\n\\t\\t// 1. quoted (capture 3; capture 4 or capture 5)\\n\\t\\t\\\"('((?:\\\\\\\\\\\\\\\\.|[^\\\\\\\\\\\\\\\\'])*)'|\\\\\\\"((?:\\\\\\\\\\\\\\\\.|[^\\\\\\\\\\\\\\\\\\\\\\\"])*)\\\\\\\")|\\\" +\\n\\t\\t// 2. simple (capture 6)\\n\\t\\t\\\"((?:\\\\\\\\\\\\\\\\.|[^\\\\\\\\\\\\\\\\()[\\\\\\\\]]|\\\" + attributes + \\\")*)|\\\" +\\n\\t\\t// 3. anything else (capture 2)\\n\\t\\t\\\".*\\\" +\\n\\t\\t\\\")\\\\\\\\)|)\\\",\\n\\n\\t// Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter\\n\\trwhitespace = new RegExp( whitespace + \\\"+\\\", \\\"g\\\" ),\\n\\trtrim = new RegExp( \\\"^\\\" + whitespace + \\\"+|((?:^|[^\\\\\\\\\\\\\\\\])(?:\\\\\\\\\\\\\\\\.)*)\\\" + whitespace + \\\"+$\\\", \\\"g\\\" ),\\n\\n\\trcomma = new RegExp( \\\"^\\\" + whitespace + \\\"*,\\\" + whitespace + \\\"*\\\" ),\\n\\trcombinators = new RegExp( \\\"^\\\" + whitespace + \\\"*([>+~]|\\\" + whitespace + \\\")\\\" + whitespace + \\\"*\\\" ),\\n\\n\\trattributeQuotes = new RegExp( \\\"=\\\" + whitespace + \\\"*([^\\\\\\\\]'\\\\\\\"]*?)\\\" + whitespace + \\\"*\\\\\\\\]\\\", \\\"g\\\" ),\\n\\n\\trpseudo = new RegExp( pseudos ),\\n\\tridentifier = new RegExp( \\\"^\\\" + identifier + \\\"$\\\" ),\\n\\n\\tmatchExpr = {\\n\\t\\t\\\"ID\\\": new RegExp( \\\"^#(\\\" + identifier + \\\")\\\" ),\\n\\t\\t\\\"CLASS\\\": new RegExp( \\\"^\\\\\\\\.(\\\" + identifier + \\\")\\\" ),\\n\\t\\t\\\"TAG\\\": new RegExp( \\\"^(\\\" + identifier + \\\"|[*])\\\" ),\\n\\t\\t\\\"ATTR\\\": new RegExp( \\\"^\\\" + attributes ),\\n\\t\\t\\\"PSEUDO\\\": new RegExp( \\\"^\\\" + pseudos ),\\n\\t\\t\\\"CHILD\\\": new RegExp( \\\"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\\\\\(\\\" + whitespace +\\n\\t\\t\\t\\\"*(even|odd|(([+-]|)(\\\\\\\\d*)n|)\\\" + whitespace + \\\"*(?:([+-]|)\\\" + whitespace +\\n\\t\\t\\t\\\"*(\\\\\\\\d+)|))\\\" + whitespace + \\\"*\\\\\\\\)|)\\\", \\\"i\\\" ),\\n\\t\\t\\\"bool\\\": new RegExp( \\\"^(?:\\\" + booleans + \\\")$\\\", \\\"i\\\" ),\\n\\t\\t// For use in libraries implementing .is()\\n\\t\\t// We use this for POS matching in `select`\\n\\t\\t\\\"needsContext\\\": new RegExp( \\\"^\\\" + whitespace + \\\"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\\\\\\\(\\\" +\\n\\t\\t\\twhitespace + \\\"*((?:-\\\\\\\\d)?\\\\\\\\d*)\\\" + whitespace + \\\"*\\\\\\\\)|)(?=[^-]|$)\\\", \\\"i\\\" )\\n\\t},\\n\\n\\trinputs = /^(?:input|select|textarea|button)$/i,\\n\\trheader = /^h\\\\d$/i,\\n\\n\\trnative = /^[^{]+\\\\{\\\\s*\\\\[native \\\\w/,\\n\\n\\t// Easily-parseable/retrievable ID or TAG or CLASS selectors\\n\\trquickExpr = /^(?:#([\\\\w-]+)|(\\\\w+)|\\\\.([\\\\w-]+))$/,\\n\\n\\trsibling = /[+~]/,\\n\\n\\t// CSS escapes\\n\\t// http://www.w3.org/TR/CSS21/syndata.html#escaped-characters\\n\\trunescape = new RegExp( \\\"\\\\\\\\\\\\\\\\([\\\\\\\\da-f]{1,6}\\\" + whitespace + \\\"?|(\\\" + whitespace + \\\")|.)\\\", \\\"ig\\\" ),\\n\\tfunescape = function( _, escaped, escapedWhitespace ) {\\n\\t\\tvar high = \\\"0x\\\" + escaped - 0x10000;\\n\\t\\t// NaN means non-codepoint\\n\\t\\t// Support: Firefox<24\\n\\t\\t// Workaround erroneous numeric interpretation of +\\\"0x\\\"\\n\\t\\treturn high !== high || escapedWhitespace ?\\n\\t\\t\\tescaped :\\n\\t\\t\\thigh < 0 ?\\n\\t\\t\\t\\t// BMP codepoint\\n\\t\\t\\t\\tString.fromCharCode( high + 0x10000 ) :\\n\\t\\t\\t\\t// Supplemental Plane codepoint (surrogate pair)\\n\\t\\t\\t\\tString.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );\\n\\t},\\n\\n\\t// CSS string/identifier serialization\\n\\t// https://drafts.csswg.org/cssom/#common-serializing-idioms\\n\\trcssescape = /([\\\\0-\\\\x1f\\\\x7f]|^-?\\\\d)|^-$|[^\\\\0-\\\\x1f\\\\x7f-\\\\uFFFF\\\\w-]/g,\\n\\tfcssescape = function( ch, asCodePoint ) {\\n\\t\\tif ( asCodePoint ) {\\n\\n\\t\\t\\t// U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER\\n\\t\\t\\tif ( ch === \\\"\\\\0\\\" ) {\\n\\t\\t\\t\\treturn \\\"\\\\uFFFD\\\";\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Control characters and (dependent upon position) numbers get escaped as code points\\n\\t\\t\\treturn ch.slice( 0, -1 ) + \\\"\\\\\\\\\\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + \\\" \\\";\\n\\t\\t}\\n\\n\\t\\t// Other potentially-special ASCII characters get backslash-escaped\\n\\t\\treturn \\\"\\\\\\\\\\\" + ch;\\n\\t},\\n\\n\\t// Used for iframes\\n\\t// See setDocument()\\n\\t// Removing the function wrapper causes a \\\"Permission Denied\\\"\\n\\t// error in IE\\n\\tunloadHandler = function() {\\n\\t\\tsetDocument();\\n\\t},\\n\\n\\tdisabledAncestor = addCombinator(\\n\\t\\tfunction( elem ) {\\n\\t\\t\\treturn elem.disabled === true && (\\\"form\\\" in elem || \\\"label\\\" in elem);\\n\\t\\t},\\n\\t\\t{ dir: \\\"parentNode\\\", next: \\\"legend\\\" }\\n\\t);\\n\\n// Optimize for push.apply( _, NodeList )\\ntry {\\n\\tpush.apply(\\n\\t\\t(arr = slice.call( preferredDoc.childNodes )),\\n\\t\\tpreferredDoc.childNodes\\n\\t);\\n\\t// Support: Android<4.0\\n\\t// Detect silently failing push.apply\\n\\tarr[ preferredDoc.childNodes.length ].nodeType;\\n} catch ( e ) {\\n\\tpush = { apply: arr.length ?\\n\\n\\t\\t// Leverage slice if possible\\n\\t\\tfunction( target, els ) {\\n\\t\\t\\tpush_native.apply( target, slice.call(els) );\\n\\t\\t} :\\n\\n\\t\\t// Support: IE<9\\n\\t\\t// Otherwise append directly\\n\\t\\tfunction( target, els ) {\\n\\t\\t\\tvar j = target.length,\\n\\t\\t\\t\\ti = 0;\\n\\t\\t\\t// Can't trust NodeList.length\\n\\t\\t\\twhile ( (target[j++] = els[i++]) ) {}\\n\\t\\t\\ttarget.length = j - 1;\\n\\t\\t}\\n\\t};\\n}\\n\\nfunction Sizzle( selector, context, results, seed ) {\\n\\tvar m, i, elem, nid, match, groups, newSelector,\\n\\t\\tnewContext = context && context.ownerDocument,\\n\\n\\t\\t// nodeType defaults to 9, since context defaults to document\\n\\t\\tnodeType = context ? context.nodeType : 9;\\n\\n\\tresults = results || [];\\n\\n\\t// Return early from calls with invalid selector or context\\n\\tif ( typeof selector !== \\\"string\\\" || !selector ||\\n\\t\\tnodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {\\n\\n\\t\\treturn results;\\n\\t}\\n\\n\\t// Try to shortcut find operations (as opposed to filters) in HTML documents\\n\\tif ( !seed ) {\\n\\n\\t\\tif ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) {\\n\\t\\t\\tsetDocument( context );\\n\\t\\t}\\n\\t\\tcontext = context || document;\\n\\n\\t\\tif ( documentIsHTML ) {\\n\\n\\t\\t\\t// If the selector is sufficiently simple, try using a \\\"get*By*\\\" DOM method\\n\\t\\t\\t// (excepting DocumentFragment context, where the methods don't exist)\\n\\t\\t\\tif ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) {\\n\\n\\t\\t\\t\\t// ID selector\\n\\t\\t\\t\\tif ( (m = match[1]) ) {\\n\\n\\t\\t\\t\\t\\t// Document context\\n\\t\\t\\t\\t\\tif ( nodeType === 9 ) {\\n\\t\\t\\t\\t\\t\\tif ( (elem = context.getElementById( m )) ) {\\n\\n\\t\\t\\t\\t\\t\\t\\t// Support: IE, Opera, Webkit\\n\\t\\t\\t\\t\\t\\t\\t// TODO: identify versions\\n\\t\\t\\t\\t\\t\\t\\t// getElementById can match elements by name instead of ID\\n\\t\\t\\t\\t\\t\\t\\tif ( elem.id === m ) {\\n\\t\\t\\t\\t\\t\\t\\t\\tresults.push( elem );\\n\\t\\t\\t\\t\\t\\t\\t\\treturn results;\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\treturn results;\\n\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t// Element context\\n\\t\\t\\t\\t\\t} else {\\n\\n\\t\\t\\t\\t\\t\\t// Support: IE, Opera, Webkit\\n\\t\\t\\t\\t\\t\\t// TODO: identify versions\\n\\t\\t\\t\\t\\t\\t// getElementById can match elements by name instead of ID\\n\\t\\t\\t\\t\\t\\tif ( newContext && (elem = newContext.getElementById( m )) &&\\n\\t\\t\\t\\t\\t\\t\\tcontains( context, elem ) &&\\n\\t\\t\\t\\t\\t\\t\\telem.id === m ) {\\n\\n\\t\\t\\t\\t\\t\\t\\tresults.push( elem );\\n\\t\\t\\t\\t\\t\\t\\treturn results;\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t// Type selector\\n\\t\\t\\t\\t} else if ( match[2] ) {\\n\\t\\t\\t\\t\\tpush.apply( results, context.getElementsByTagName( selector ) );\\n\\t\\t\\t\\t\\treturn results;\\n\\n\\t\\t\\t\\t// Class selector\\n\\t\\t\\t\\t} else if ( (m = match[3]) && support.getElementsByClassName &&\\n\\t\\t\\t\\t\\tcontext.getElementsByClassName ) {\\n\\n\\t\\t\\t\\t\\tpush.apply( results, context.getElementsByClassName( m ) );\\n\\t\\t\\t\\t\\treturn results;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Take advantage of querySelectorAll\\n\\t\\t\\tif ( support.qsa &&\\n\\t\\t\\t\\t!compilerCache[ selector + \\\" \\\" ] &&\\n\\t\\t\\t\\t(!rbuggyQSA || !rbuggyQSA.test( selector )) ) {\\n\\n\\t\\t\\t\\tif ( nodeType !== 1 ) {\\n\\t\\t\\t\\t\\tnewContext = context;\\n\\t\\t\\t\\t\\tnewSelector = selector;\\n\\n\\t\\t\\t\\t// qSA looks outside Element context, which is not what we want\\n\\t\\t\\t\\t// Thanks to Andrew Dupont for this workaround technique\\n\\t\\t\\t\\t// Support: IE <=8\\n\\t\\t\\t\\t// Exclude object elements\\n\\t\\t\\t\\t} else if ( context.nodeName.toLowerCase() !== \\\"object\\\" ) {\\n\\n\\t\\t\\t\\t\\t// Capture the context ID, setting it first if necessary\\n\\t\\t\\t\\t\\tif ( (nid = context.getAttribute( \\\"id\\\" )) ) {\\n\\t\\t\\t\\t\\t\\tnid = nid.replace( rcssescape, fcssescape );\\n\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\tcontext.setAttribute( \\\"id\\\", (nid = expando) );\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t// Prefix every selector in the list\\n\\t\\t\\t\\t\\tgroups = tokenize( selector );\\n\\t\\t\\t\\t\\ti = groups.length;\\n\\t\\t\\t\\t\\twhile ( i-- ) {\\n\\t\\t\\t\\t\\t\\tgroups[i] = \\\"#\\\" + nid + \\\" \\\" + toSelector( groups[i] );\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\tnewSelector = groups.join( \\\",\\\" );\\n\\n\\t\\t\\t\\t\\t// Expand context for sibling selectors\\n\\t\\t\\t\\t\\tnewContext = rsibling.test( selector ) && testContext( context.parentNode ) ||\\n\\t\\t\\t\\t\\t\\tcontext;\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\tif ( newSelector ) {\\n\\t\\t\\t\\t\\ttry {\\n\\t\\t\\t\\t\\t\\tpush.apply( results,\\n\\t\\t\\t\\t\\t\\t\\tnewContext.querySelectorAll( newSelector )\\n\\t\\t\\t\\t\\t\\t);\\n\\t\\t\\t\\t\\t\\treturn results;\\n\\t\\t\\t\\t\\t} catch ( qsaError ) {\\n\\t\\t\\t\\t\\t} finally {\\n\\t\\t\\t\\t\\t\\tif ( nid === expando ) {\\n\\t\\t\\t\\t\\t\\t\\tcontext.removeAttribute( \\\"id\\\" );\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n\\n\\t// All others\\n\\treturn select( selector.replace( rtrim, \\\"$1\\\" ), context, results, seed );\\n}\\n\\n/**\\n * Create key-value caches of limited size\\n * @returns {function(string, object)} Returns the Object data after storing it on itself with\\n *\\tproperty name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)\\n *\\tdeleting the oldest entry\\n */\\nfunction createCache() {\\n\\tvar keys = [];\\n\\n\\tfunction cache( key, value ) {\\n\\t\\t// Use (key + \\\" \\\") to avoid collision with native prototype properties (see Issue #157)\\n\\t\\tif ( keys.push( key + \\\" \\\" ) > Expr.cacheLength ) {\\n\\t\\t\\t// Only keep the most recent entries\\n\\t\\t\\tdelete cache[ keys.shift() ];\\n\\t\\t}\\n\\t\\treturn (cache[ key + \\\" \\\" ] = value);\\n\\t}\\n\\treturn cache;\\n}\\n\\n/**\\n * Mark a function for special use by Sizzle\\n * @param {Function} fn The function to mark\\n */\\nfunction markFunction( fn ) {\\n\\tfn[ expando ] = true;\\n\\treturn fn;\\n}\\n\\n/**\\n * Support testing using an element\\n * @param {Function} fn Passed the created element and returns a boolean result\\n */\\nfunction assert( fn ) {\\n\\tvar el = document.createElement(\\\"fieldset\\\");\\n\\n\\ttry {\\n\\t\\treturn !!fn( el );\\n\\t} catch (e) {\\n\\t\\treturn false;\\n\\t} finally {\\n\\t\\t// Remove from its parent by default\\n\\t\\tif ( el.parentNode ) {\\n\\t\\t\\tel.parentNode.removeChild( el );\\n\\t\\t}\\n\\t\\t// release memory in IE\\n\\t\\tel = null;\\n\\t}\\n}\\n\\n/**\\n * Adds the same handler for all of the specified attrs\\n * @param {String} attrs Pipe-separated list of attributes\\n * @param {Function} handler The method that will be applied\\n */\\nfunction addHandle( attrs, handler ) {\\n\\tvar arr = attrs.split(\\\"|\\\"),\\n\\t\\ti = arr.length;\\n\\n\\twhile ( i-- ) {\\n\\t\\tExpr.attrHandle[ arr[i] ] = handler;\\n\\t}\\n}\\n\\n/**\\n * Checks document order of two siblings\\n * @param {Element} a\\n * @param {Element} b\\n * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b\\n */\\nfunction siblingCheck( a, b ) {\\n\\tvar cur = b && a,\\n\\t\\tdiff = cur && a.nodeType === 1 && b.nodeType === 1 &&\\n\\t\\t\\ta.sourceIndex - b.sourceIndex;\\n\\n\\t// Use IE sourceIndex if available on both nodes\\n\\tif ( diff ) {\\n\\t\\treturn diff;\\n\\t}\\n\\n\\t// Check if b follows a\\n\\tif ( cur ) {\\n\\t\\twhile ( (cur = cur.nextSibling) ) {\\n\\t\\t\\tif ( cur === b ) {\\n\\t\\t\\t\\treturn -1;\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n\\n\\treturn a ? 1 : -1;\\n}\\n\\n/**\\n * Returns a function to use in pseudos for input types\\n * @param {String} type\\n */\\nfunction createInputPseudo( type ) {\\n\\treturn function( elem ) {\\n\\t\\tvar name = elem.nodeName.toLowerCase();\\n\\t\\treturn name === \\\"input\\\" && elem.type === type;\\n\\t};\\n}\\n\\n/**\\n * Returns a function to use in pseudos for buttons\\n * @param {String} type\\n */\\nfunction createButtonPseudo( type ) {\\n\\treturn function( elem ) {\\n\\t\\tvar name = elem.nodeName.toLowerCase();\\n\\t\\treturn (name === \\\"input\\\" || name === \\\"button\\\") && elem.type === type;\\n\\t};\\n}\\n\\n/**\\n * Returns a function to use in pseudos for :enabled/:disabled\\n * @param {Boolean} disabled true for :disabled; false for :enabled\\n */\\nfunction createDisabledPseudo( disabled ) {\\n\\n\\t// Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable\\n\\treturn function( elem ) {\\n\\n\\t\\t// Only certain elements can match :enabled or :disabled\\n\\t\\t// https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled\\n\\t\\t// https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled\\n\\t\\tif ( \\\"form\\\" in elem ) {\\n\\n\\t\\t\\t// Check for inherited disabledness on relevant non-disabled elements:\\n\\t\\t\\t// * listed form-associated elements in a disabled fieldset\\n\\t\\t\\t//   https://html.spec.whatwg.org/multipage/forms.html#category-listed\\n\\t\\t\\t//   https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled\\n\\t\\t\\t// * option elements in a disabled optgroup\\n\\t\\t\\t//   https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled\\n\\t\\t\\t// All such elements have a \\\"form\\\" property.\\n\\t\\t\\tif ( elem.parentNode && elem.disabled === false ) {\\n\\n\\t\\t\\t\\t// Option elements defer to a parent optgroup if present\\n\\t\\t\\t\\tif ( \\\"label\\\" in elem ) {\\n\\t\\t\\t\\t\\tif ( \\\"label\\\" in elem.parentNode ) {\\n\\t\\t\\t\\t\\t\\treturn elem.parentNode.disabled === disabled;\\n\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\treturn elem.disabled === disabled;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t// Support: IE 6 - 11\\n\\t\\t\\t\\t// Use the isDisabled shortcut property to check for disabled fieldset ancestors\\n\\t\\t\\t\\treturn elem.isDisabled === disabled ||\\n\\n\\t\\t\\t\\t\\t// Where there is no isDisabled, check manually\\n\\t\\t\\t\\t\\t/* jshint -W018 */\\n\\t\\t\\t\\t\\telem.isDisabled !== !disabled &&\\n\\t\\t\\t\\t\\t\\tdisabledAncestor( elem ) === disabled;\\n\\t\\t\\t}\\n\\n\\t\\t\\treturn elem.disabled === disabled;\\n\\n\\t\\t// Try to winnow out elements that can't be disabled before trusting the disabled property.\\n\\t\\t// Some victims get caught in our net (label, legend, menu, track), but it shouldn't\\n\\t\\t// even exist on them, let alone have a boolean value.\\n\\t\\t} else if ( \\\"label\\\" in elem ) {\\n\\t\\t\\treturn elem.disabled === disabled;\\n\\t\\t}\\n\\n\\t\\t// Remaining elements are neither :enabled nor :disabled\\n\\t\\treturn false;\\n\\t};\\n}\\n\\n/**\\n * Returns a function to use in pseudos for positionals\\n * @param {Function} fn\\n */\\nfunction createPositionalPseudo( fn ) {\\n\\treturn markFunction(function( argument ) {\\n\\t\\targument = +argument;\\n\\t\\treturn markFunction(function( seed, matches ) {\\n\\t\\t\\tvar j,\\n\\t\\t\\t\\tmatchIndexes = fn( [], seed.length, argument ),\\n\\t\\t\\t\\ti = matchIndexes.length;\\n\\n\\t\\t\\t// Match elements found at the specified indexes\\n\\t\\t\\twhile ( i-- ) {\\n\\t\\t\\t\\tif ( seed[ (j = matchIndexes[i]) ] ) {\\n\\t\\t\\t\\t\\tseed[j] = !(matches[j] = seed[j]);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t});\\n\\t});\\n}\\n\\n/**\\n * Checks a node for validity as a Sizzle context\\n * @param {Element|Object=} context\\n * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value\\n */\\nfunction testContext( context ) {\\n\\treturn context && typeof context.getElementsByTagName !== \\\"undefined\\\" && context;\\n}\\n\\n// Expose support vars for convenience\\nsupport = Sizzle.support = {};\\n\\n/**\\n * Detects XML nodes\\n * @param {Element|Object} elem An element or a document\\n * @returns {Boolean} True iff elem is a non-HTML XML node\\n */\\nisXML = Sizzle.isXML = function( elem ) {\\n\\t// documentElement is verified for cases where it doesn't yet exist\\n\\t// (such as loading iframes in IE - #4833)\\n\\tvar documentElement = elem && (elem.ownerDocument || elem).documentElement;\\n\\treturn documentElement ? documentElement.nodeName !== \\\"HTML\\\" : false;\\n};\\n\\n/**\\n * Sets document-related variables once based on the current document\\n * @param {Element|Object} [doc] An element or document object to use to set the document\\n * @returns {Object} Returns the current document\\n */\\nsetDocument = Sizzle.setDocument = function( node ) {\\n\\tvar hasCompare, subWindow,\\n\\t\\tdoc = node ? node.ownerDocument || node : preferredDoc;\\n\\n\\t// Return early if doc is invalid or already selected\\n\\tif ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {\\n\\t\\treturn document;\\n\\t}\\n\\n\\t// Update global variables\\n\\tdocument = doc;\\n\\tdocElem = document.documentElement;\\n\\tdocumentIsHTML = !isXML( document );\\n\\n\\t// Support: IE 9-11, Edge\\n\\t// Accessing iframe documents after unload throws \\\"permission denied\\\" errors (jQuery #13936)\\n\\tif ( preferredDoc !== document &&\\n\\t\\t(subWindow = document.defaultView) && subWindow.top !== subWindow ) {\\n\\n\\t\\t// Support: IE 11, Edge\\n\\t\\tif ( subWindow.addEventListener ) {\\n\\t\\t\\tsubWindow.addEventListener( \\\"unload\\\", unloadHandler, false );\\n\\n\\t\\t// Support: IE 9 - 10 only\\n\\t\\t} else if ( subWindow.attachEvent ) {\\n\\t\\t\\tsubWindow.attachEvent( \\\"onunload\\\", unloadHandler );\\n\\t\\t}\\n\\t}\\n\\n\\t/* Attributes\\n\\t---------------------------------------------------------------------- */\\n\\n\\t// Support: IE<8\\n\\t// Verify that getAttribute really returns attributes and not properties\\n\\t// (excepting IE8 booleans)\\n\\tsupport.attributes = assert(function( el ) {\\n\\t\\tel.className = \\\"i\\\";\\n\\t\\treturn !el.getAttribute(\\\"className\\\");\\n\\t});\\n\\n\\t/* getElement(s)By*\\n\\t---------------------------------------------------------------------- */\\n\\n\\t// Check if getElementsByTagName(\\\"*\\\") returns only elements\\n\\tsupport.getElementsByTagName = assert(function( el ) {\\n\\t\\tel.appendChild( document.createComment(\\\"\\\") );\\n\\t\\treturn !el.getElementsByTagName(\\\"*\\\").length;\\n\\t});\\n\\n\\t// Support: IE<9\\n\\tsupport.getElementsByClassName = rnative.test( document.getElementsByClassName );\\n\\n\\t// Support: IE<10\\n\\t// Check if getElementById returns elements by name\\n\\t// The broken getElementById methods don't pick up programmatically-set names,\\n\\t// so use a roundabout getElementsByName test\\n\\tsupport.getById = assert(function( el ) {\\n\\t\\tdocElem.appendChild( el ).id = expando;\\n\\t\\treturn !document.getElementsByName || !document.getElementsByName( expando ).length;\\n\\t});\\n\\n\\t// ID filter and find\\n\\tif ( support.getById ) {\\n\\t\\tExpr.filter[\\\"ID\\\"] = function( id ) {\\n\\t\\t\\tvar attrId = id.replace( runescape, funescape );\\n\\t\\t\\treturn function( elem ) {\\n\\t\\t\\t\\treturn elem.getAttribute(\\\"id\\\") === attrId;\\n\\t\\t\\t};\\n\\t\\t};\\n\\t\\tExpr.find[\\\"ID\\\"] = function( id, context ) {\\n\\t\\t\\tif ( typeof context.getElementById !== \\\"undefined\\\" && documentIsHTML ) {\\n\\t\\t\\t\\tvar elem = context.getElementById( id );\\n\\t\\t\\t\\treturn elem ? [ elem ] : [];\\n\\t\\t\\t}\\n\\t\\t};\\n\\t} else {\\n\\t\\tExpr.filter[\\\"ID\\\"] =  function( id ) {\\n\\t\\t\\tvar attrId = id.replace( runescape, funescape );\\n\\t\\t\\treturn function( elem ) {\\n\\t\\t\\t\\tvar node = typeof elem.getAttributeNode !== \\\"undefined\\\" &&\\n\\t\\t\\t\\t\\telem.getAttributeNode(\\\"id\\\");\\n\\t\\t\\t\\treturn node && node.value === attrId;\\n\\t\\t\\t};\\n\\t\\t};\\n\\n\\t\\t// Support: IE 6 - 7 only\\n\\t\\t// getElementById is not reliable as a find shortcut\\n\\t\\tExpr.find[\\\"ID\\\"] = function( id, context ) {\\n\\t\\t\\tif ( typeof context.getElementById !== \\\"undefined\\\" && documentIsHTML ) {\\n\\t\\t\\t\\tvar node, i, elems,\\n\\t\\t\\t\\t\\telem = context.getElementById( id );\\n\\n\\t\\t\\t\\tif ( elem ) {\\n\\n\\t\\t\\t\\t\\t// Verify the id attribute\\n\\t\\t\\t\\t\\tnode = elem.getAttributeNode(\\\"id\\\");\\n\\t\\t\\t\\t\\tif ( node && node.value === id ) {\\n\\t\\t\\t\\t\\t\\treturn [ elem ];\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t// Fall back on getElementsByName\\n\\t\\t\\t\\t\\telems = context.getElementsByName( id );\\n\\t\\t\\t\\t\\ti = 0;\\n\\t\\t\\t\\t\\twhile ( (elem = elems[i++]) ) {\\n\\t\\t\\t\\t\\t\\tnode = elem.getAttributeNode(\\\"id\\\");\\n\\t\\t\\t\\t\\t\\tif ( node && node.value === id ) {\\n\\t\\t\\t\\t\\t\\t\\treturn [ elem ];\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\treturn [];\\n\\t\\t\\t}\\n\\t\\t};\\n\\t}\\n\\n\\t// Tag\\n\\tExpr.find[\\\"TAG\\\"] = support.getElementsByTagName ?\\n\\t\\tfunction( tag, context ) {\\n\\t\\t\\tif ( typeof context.getElementsByTagName !== \\\"undefined\\\" ) {\\n\\t\\t\\t\\treturn context.getElementsByTagName( tag );\\n\\n\\t\\t\\t// DocumentFragment nodes don't have gEBTN\\n\\t\\t\\t} else if ( support.qsa ) {\\n\\t\\t\\t\\treturn context.querySelectorAll( tag );\\n\\t\\t\\t}\\n\\t\\t} :\\n\\n\\t\\tfunction( tag, context ) {\\n\\t\\t\\tvar elem,\\n\\t\\t\\t\\ttmp = [],\\n\\t\\t\\t\\ti = 0,\\n\\t\\t\\t\\t// By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too\\n\\t\\t\\t\\tresults = context.getElementsByTagName( tag );\\n\\n\\t\\t\\t// Filter out possible comments\\n\\t\\t\\tif ( tag === \\\"*\\\" ) {\\n\\t\\t\\t\\twhile ( (elem = results[i++]) ) {\\n\\t\\t\\t\\t\\tif ( elem.nodeType === 1 ) {\\n\\t\\t\\t\\t\\t\\ttmp.push( elem );\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\treturn tmp;\\n\\t\\t\\t}\\n\\t\\t\\treturn results;\\n\\t\\t};\\n\\n\\t// Class\\n\\tExpr.find[\\\"CLASS\\\"] = support.getElementsByClassName && function( className, context ) {\\n\\t\\tif ( typeof context.getElementsByClassName !== \\\"undefined\\\" && documentIsHTML ) {\\n\\t\\t\\treturn context.getElementsByClassName( className );\\n\\t\\t}\\n\\t};\\n\\n\\t/* QSA/matchesSelector\\n\\t---------------------------------------------------------------------- */\\n\\n\\t// QSA and matchesSelector support\\n\\n\\t// matchesSelector(:active) reports false when true (IE9/Opera 11.5)\\n\\trbuggyMatches = [];\\n\\n\\t// qSa(:focus) reports false when true (Chrome 21)\\n\\t// We allow this because of a bug in IE8/9 that throws an error\\n\\t// whenever `document.activeElement` is accessed on an iframe\\n\\t// So, we allow :focus to pass through QSA all the time to avoid the IE error\\n\\t// See https://bugs.jquery.com/ticket/13378\\n\\trbuggyQSA = [];\\n\\n\\tif ( (support.qsa = rnative.test( document.querySelectorAll )) ) {\\n\\t\\t// Build QSA regex\\n\\t\\t// Regex strategy adopted from Diego Perini\\n\\t\\tassert(function( el ) {\\n\\t\\t\\t// Select is set to empty string on purpose\\n\\t\\t\\t// This is to test IE's treatment of not explicitly\\n\\t\\t\\t// setting a boolean content attribute,\\n\\t\\t\\t// since its presence should be enough\\n\\t\\t\\t// https://bugs.jquery.com/ticket/12359\\n\\t\\t\\tdocElem.appendChild( el ).innerHTML = \\\"<a id='\\\" + expando + \\\"'></a>\\\" +\\n\\t\\t\\t\\t\\\"<select id='\\\" + expando + \\\"-\\\\r\\\\\\\\' msallowcapture=''>\\\" +\\n\\t\\t\\t\\t\\\"<option selected=''></option></select>\\\";\\n\\n\\t\\t\\t// Support: IE8, Opera 11-12.16\\n\\t\\t\\t// Nothing should be selected when empty strings follow ^= or $= or *=\\n\\t\\t\\t// The test attribute must be unknown in Opera but \\\"safe\\\" for WinRT\\n\\t\\t\\t// https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section\\n\\t\\t\\tif ( el.querySelectorAll(\\\"[msallowcapture^='']\\\").length ) {\\n\\t\\t\\t\\trbuggyQSA.push( \\\"[*^$]=\\\" + whitespace + \\\"*(?:''|\\\\\\\"\\\\\\\")\\\" );\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Support: IE8\\n\\t\\t\\t// Boolean attributes and \\\"value\\\" are not treated correctly\\n\\t\\t\\tif ( !el.querySelectorAll(\\\"[selected]\\\").length ) {\\n\\t\\t\\t\\trbuggyQSA.push( \\\"\\\\\\\\[\\\" + whitespace + \\\"*(?:value|\\\" + booleans + \\\")\\\" );\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+\\n\\t\\t\\tif ( !el.querySelectorAll( \\\"[id~=\\\" + expando + \\\"-]\\\" ).length ) {\\n\\t\\t\\t\\trbuggyQSA.push(\\\"~=\\\");\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Webkit/Opera - :checked should return selected option elements\\n\\t\\t\\t// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked\\n\\t\\t\\t// IE8 throws error here and will not see later tests\\n\\t\\t\\tif ( !el.querySelectorAll(\\\":checked\\\").length ) {\\n\\t\\t\\t\\trbuggyQSA.push(\\\":checked\\\");\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Support: Safari 8+, iOS 8+\\n\\t\\t\\t// https://bugs.webkit.org/show_bug.cgi?id=136851\\n\\t\\t\\t// In-page `selector#id sibling-combinator selector` fails\\n\\t\\t\\tif ( !el.querySelectorAll( \\\"a#\\\" + expando + \\\"+*\\\" ).length ) {\\n\\t\\t\\t\\trbuggyQSA.push(\\\".#.+[+~]\\\");\\n\\t\\t\\t}\\n\\t\\t});\\n\\n\\t\\tassert(function( el ) {\\n\\t\\t\\tel.innerHTML = \\\"<a href='' disabled='disabled'></a>\\\" +\\n\\t\\t\\t\\t\\\"<select disabled='disabled'><option/></select>\\\";\\n\\n\\t\\t\\t// Support: Windows 8 Native Apps\\n\\t\\t\\t// The type and name attributes are restricted during .innerHTML assignment\\n\\t\\t\\tvar input = document.createElement(\\\"input\\\");\\n\\t\\t\\tinput.setAttribute( \\\"type\\\", \\\"hidden\\\" );\\n\\t\\t\\tel.appendChild( input ).setAttribute( \\\"name\\\", \\\"D\\\" );\\n\\n\\t\\t\\t// Support: IE8\\n\\t\\t\\t// Enforce case-sensitivity of name attribute\\n\\t\\t\\tif ( el.querySelectorAll(\\\"[name=d]\\\").length ) {\\n\\t\\t\\t\\trbuggyQSA.push( \\\"name\\\" + whitespace + \\\"*[*^$|!~]?=\\\" );\\n\\t\\t\\t}\\n\\n\\t\\t\\t// FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)\\n\\t\\t\\t// IE8 throws error here and will not see later tests\\n\\t\\t\\tif ( el.querySelectorAll(\\\":enabled\\\").length !== 2 ) {\\n\\t\\t\\t\\trbuggyQSA.push( \\\":enabled\\\", \\\":disabled\\\" );\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Support: IE9-11+\\n\\t\\t\\t// IE's :disabled selector does not pick up the children of disabled fieldsets\\n\\t\\t\\tdocElem.appendChild( el ).disabled = true;\\n\\t\\t\\tif ( el.querySelectorAll(\\\":disabled\\\").length !== 2 ) {\\n\\t\\t\\t\\trbuggyQSA.push( \\\":enabled\\\", \\\":disabled\\\" );\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Opera 10-11 does not throw on post-comma invalid pseudos\\n\\t\\t\\tel.querySelectorAll(\\\"*,:x\\\");\\n\\t\\t\\trbuggyQSA.push(\\\",.*:\\\");\\n\\t\\t});\\n\\t}\\n\\n\\tif ( (support.matchesSelector = rnative.test( (matches = docElem.matches ||\\n\\t\\tdocElem.webkitMatchesSelector ||\\n\\t\\tdocElem.mozMatchesSelector ||\\n\\t\\tdocElem.oMatchesSelector ||\\n\\t\\tdocElem.msMatchesSelector) )) ) {\\n\\n\\t\\tassert(function( el ) {\\n\\t\\t\\t// Check to see if it's possible to do matchesSelector\\n\\t\\t\\t// on a disconnected node (IE 9)\\n\\t\\t\\tsupport.disconnectedMatch = matches.call( el, \\\"*\\\" );\\n\\n\\t\\t\\t// This should fail with an exception\\n\\t\\t\\t// Gecko does not error, returns false instead\\n\\t\\t\\tmatches.call( el, \\\"[s!='']:x\\\" );\\n\\t\\t\\trbuggyMatches.push( \\\"!=\\\", pseudos );\\n\\t\\t});\\n\\t}\\n\\n\\trbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join(\\\"|\\\") );\\n\\trbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join(\\\"|\\\") );\\n\\n\\t/* Contains\\n\\t---------------------------------------------------------------------- */\\n\\thasCompare = rnative.test( docElem.compareDocumentPosition );\\n\\n\\t// Element contains another\\n\\t// Purposefully self-exclusive\\n\\t// As in, an element does not contain itself\\n\\tcontains = hasCompare || rnative.test( docElem.contains ) ?\\n\\t\\tfunction( a, b ) {\\n\\t\\t\\tvar adown = a.nodeType === 9 ? a.documentElement : a,\\n\\t\\t\\t\\tbup = b && b.parentNode;\\n\\t\\t\\treturn a === bup || !!( bup && bup.nodeType === 1 && (\\n\\t\\t\\t\\tadown.contains ?\\n\\t\\t\\t\\t\\tadown.contains( bup ) :\\n\\t\\t\\t\\t\\ta.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16\\n\\t\\t\\t));\\n\\t\\t} :\\n\\t\\tfunction( a, b ) {\\n\\t\\t\\tif ( b ) {\\n\\t\\t\\t\\twhile ( (b = b.parentNode) ) {\\n\\t\\t\\t\\t\\tif ( b === a ) {\\n\\t\\t\\t\\t\\t\\treturn true;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t\\treturn false;\\n\\t\\t};\\n\\n\\t/* Sorting\\n\\t---------------------------------------------------------------------- */\\n\\n\\t// Document order sorting\\n\\tsortOrder = hasCompare ?\\n\\tfunction( a, b ) {\\n\\n\\t\\t// Flag for duplicate removal\\n\\t\\tif ( a === b ) {\\n\\t\\t\\thasDuplicate = true;\\n\\t\\t\\treturn 0;\\n\\t\\t}\\n\\n\\t\\t// Sort on method existence if only one input has compareDocumentPosition\\n\\t\\tvar compare = !a.compareDocumentPosition - !b.compareDocumentPosition;\\n\\t\\tif ( compare ) {\\n\\t\\t\\treturn compare;\\n\\t\\t}\\n\\n\\t\\t// Calculate position if both inputs belong to the same document\\n\\t\\tcompare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?\\n\\t\\t\\ta.compareDocumentPosition( b ) :\\n\\n\\t\\t\\t// Otherwise we know they are disconnected\\n\\t\\t\\t1;\\n\\n\\t\\t// Disconnected nodes\\n\\t\\tif ( compare & 1 ||\\n\\t\\t\\t(!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) {\\n\\n\\t\\t\\t// Choose the first element that is related to our preferred document\\n\\t\\t\\tif ( a === document || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) {\\n\\t\\t\\t\\treturn -1;\\n\\t\\t\\t}\\n\\t\\t\\tif ( b === document || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) {\\n\\t\\t\\t\\treturn 1;\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Maintain original order\\n\\t\\t\\treturn sortInput ?\\n\\t\\t\\t\\t( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :\\n\\t\\t\\t\\t0;\\n\\t\\t}\\n\\n\\t\\treturn compare & 4 ? -1 : 1;\\n\\t} :\\n\\tfunction( a, b ) {\\n\\t\\t// Exit early if the nodes are identical\\n\\t\\tif ( a === b ) {\\n\\t\\t\\thasDuplicate = true;\\n\\t\\t\\treturn 0;\\n\\t\\t}\\n\\n\\t\\tvar cur,\\n\\t\\t\\ti = 0,\\n\\t\\t\\taup = a.parentNode,\\n\\t\\t\\tbup = b.parentNode,\\n\\t\\t\\tap = [ a ],\\n\\t\\t\\tbp = [ b ];\\n\\n\\t\\t// Parentless nodes are either documents or disconnected\\n\\t\\tif ( !aup || !bup ) {\\n\\t\\t\\treturn a === document ? -1 :\\n\\t\\t\\t\\tb === document ? 1 :\\n\\t\\t\\t\\taup ? -1 :\\n\\t\\t\\t\\tbup ? 1 :\\n\\t\\t\\t\\tsortInput ?\\n\\t\\t\\t\\t( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :\\n\\t\\t\\t\\t0;\\n\\n\\t\\t// If the nodes are siblings, we can do a quick check\\n\\t\\t} else if ( aup === bup ) {\\n\\t\\t\\treturn siblingCheck( a, b );\\n\\t\\t}\\n\\n\\t\\t// Otherwise we need full lists of their ancestors for comparison\\n\\t\\tcur = a;\\n\\t\\twhile ( (cur = cur.parentNode) ) {\\n\\t\\t\\tap.unshift( cur );\\n\\t\\t}\\n\\t\\tcur = b;\\n\\t\\twhile ( (cur = cur.parentNode) ) {\\n\\t\\t\\tbp.unshift( cur );\\n\\t\\t}\\n\\n\\t\\t// Walk down the tree looking for a discrepancy\\n\\t\\twhile ( ap[i] === bp[i] ) {\\n\\t\\t\\ti++;\\n\\t\\t}\\n\\n\\t\\treturn i ?\\n\\t\\t\\t// Do a sibling check if the nodes have a common ancestor\\n\\t\\t\\tsiblingCheck( ap[i], bp[i] ) :\\n\\n\\t\\t\\t// Otherwise nodes in our document sort first\\n\\t\\t\\tap[i] === preferredDoc ? -1 :\\n\\t\\t\\tbp[i] === preferredDoc ? 1 :\\n\\t\\t\\t0;\\n\\t};\\n\\n\\treturn document;\\n};\\n\\nSizzle.matches = function( expr, elements ) {\\n\\treturn Sizzle( expr, null, null, elements );\\n};\\n\\nSizzle.matchesSelector = function( elem, expr ) {\\n\\t// Set document vars if needed\\n\\tif ( ( elem.ownerDocument || elem ) !== document ) {\\n\\t\\tsetDocument( elem );\\n\\t}\\n\\n\\t// Make sure that attribute selectors are quoted\\n\\texpr = expr.replace( rattributeQuotes, \\\"='$1']\\\" );\\n\\n\\tif ( support.matchesSelector && documentIsHTML &&\\n\\t\\t!compilerCache[ expr + \\\" \\\" ] &&\\n\\t\\t( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&\\n\\t\\t( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {\\n\\n\\t\\ttry {\\n\\t\\t\\tvar ret = matches.call( elem, expr );\\n\\n\\t\\t\\t// IE 9's matchesSelector returns false on disconnected nodes\\n\\t\\t\\tif ( ret || support.disconnectedMatch ||\\n\\t\\t\\t\\t\\t// As well, disconnected nodes are said to be in a document\\n\\t\\t\\t\\t\\t// fragment in IE 9\\n\\t\\t\\t\\t\\telem.document && elem.document.nodeType !== 11 ) {\\n\\t\\t\\t\\treturn ret;\\n\\t\\t\\t}\\n\\t\\t} catch (e) {}\\n\\t}\\n\\n\\treturn Sizzle( expr, document, null, [ elem ] ).length > 0;\\n};\\n\\nSizzle.contains = function( context, elem ) {\\n\\t// Set document vars if needed\\n\\tif ( ( context.ownerDocument || context ) !== document ) {\\n\\t\\tsetDocument( context );\\n\\t}\\n\\treturn contains( context, elem );\\n};\\n\\nSizzle.attr = function( elem, name ) {\\n\\t// Set document vars if needed\\n\\tif ( ( elem.ownerDocument || elem ) !== document ) {\\n\\t\\tsetDocument( elem );\\n\\t}\\n\\n\\tvar fn = Expr.attrHandle[ name.toLowerCase() ],\\n\\t\\t// Don't get fooled by Object.prototype properties (jQuery #13807)\\n\\t\\tval = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?\\n\\t\\t\\tfn( elem, name, !documentIsHTML ) :\\n\\t\\t\\tundefined;\\n\\n\\treturn val !== undefined ?\\n\\t\\tval :\\n\\t\\tsupport.attributes || !documentIsHTML ?\\n\\t\\t\\telem.getAttribute( name ) :\\n\\t\\t\\t(val = elem.getAttributeNode(name)) && val.specified ?\\n\\t\\t\\t\\tval.value :\\n\\t\\t\\t\\tnull;\\n};\\n\\nSizzle.escape = function( sel ) {\\n\\treturn (sel + \\\"\\\").replace( rcssescape, fcssescape );\\n};\\n\\nSizzle.error = function( msg ) {\\n\\tthrow new Error( \\\"Syntax error, unrecognized expression: \\\" + msg );\\n};\\n\\n/**\\n * Document sorting and removing duplicates\\n * @param {ArrayLike} results\\n */\\nSizzle.uniqueSort = function( results ) {\\n\\tvar elem,\\n\\t\\tduplicates = [],\\n\\t\\tj = 0,\\n\\t\\ti = 0;\\n\\n\\t// Unless we *know* we can detect duplicates, assume their presence\\n\\thasDuplicate = !support.detectDuplicates;\\n\\tsortInput = !support.sortStable && results.slice( 0 );\\n\\tresults.sort( sortOrder );\\n\\n\\tif ( hasDuplicate ) {\\n\\t\\twhile ( (elem = results[i++]) ) {\\n\\t\\t\\tif ( elem === results[ i ] ) {\\n\\t\\t\\t\\tj = duplicates.push( i );\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\twhile ( j-- ) {\\n\\t\\t\\tresults.splice( duplicates[ j ], 1 );\\n\\t\\t}\\n\\t}\\n\\n\\t// Clear input after sorting to release objects\\n\\t// See https://github.com/jquery/sizzle/pull/225\\n\\tsortInput = null;\\n\\n\\treturn results;\\n};\\n\\n/**\\n * Utility function for retrieving the text value of an array of DOM nodes\\n * @param {Array|Element} elem\\n */\\ngetText = Sizzle.getText = function( elem ) {\\n\\tvar node,\\n\\t\\tret = \\\"\\\",\\n\\t\\ti = 0,\\n\\t\\tnodeType = elem.nodeType;\\n\\n\\tif ( !nodeType ) {\\n\\t\\t// If no nodeType, this is expected to be an array\\n\\t\\twhile ( (node = elem[i++]) ) {\\n\\t\\t\\t// Do not traverse comment nodes\\n\\t\\t\\tret += getText( node );\\n\\t\\t}\\n\\t} else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {\\n\\t\\t// Use textContent for elements\\n\\t\\t// innerText usage removed for consistency of new lines (jQuery #11153)\\n\\t\\tif ( typeof elem.textContent === \\\"string\\\" ) {\\n\\t\\t\\treturn elem.textContent;\\n\\t\\t} else {\\n\\t\\t\\t// Traverse its children\\n\\t\\t\\tfor ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {\\n\\t\\t\\t\\tret += getText( elem );\\n\\t\\t\\t}\\n\\t\\t}\\n\\t} else if ( nodeType === 3 || nodeType === 4 ) {\\n\\t\\treturn elem.nodeValue;\\n\\t}\\n\\t// Do not include comment or processing instruction nodes\\n\\n\\treturn ret;\\n};\\n\\nExpr = Sizzle.selectors = {\\n\\n\\t// Can be adjusted by the user\\n\\tcacheLength: 50,\\n\\n\\tcreatePseudo: markFunction,\\n\\n\\tmatch: matchExpr,\\n\\n\\tattrHandle: {},\\n\\n\\tfind: {},\\n\\n\\trelative: {\\n\\t\\t\\\">\\\": { dir: \\\"parentNode\\\", first: true },\\n\\t\\t\\\" \\\": { dir: \\\"parentNode\\\" },\\n\\t\\t\\\"+\\\": { dir: \\\"previousSibling\\\", first: true },\\n\\t\\t\\\"~\\\": { dir: \\\"previousSibling\\\" }\\n\\t},\\n\\n\\tpreFilter: {\\n\\t\\t\\\"ATTR\\\": function( match ) {\\n\\t\\t\\tmatch[1] = match[1].replace( runescape, funescape );\\n\\n\\t\\t\\t// Move the given value to match[3] whether quoted or unquoted\\n\\t\\t\\tmatch[3] = ( match[3] || match[4] || match[5] || \\\"\\\" ).replace( runescape, funescape );\\n\\n\\t\\t\\tif ( match[2] === \\\"~=\\\" ) {\\n\\t\\t\\t\\tmatch[3] = \\\" \\\" + match[3] + \\\" \\\";\\n\\t\\t\\t}\\n\\n\\t\\t\\treturn match.slice( 0, 4 );\\n\\t\\t},\\n\\n\\t\\t\\\"CHILD\\\": function( match ) {\\n\\t\\t\\t/* matches from matchExpr[\\\"CHILD\\\"]\\n\\t\\t\\t\\t1 type (only|nth|...)\\n\\t\\t\\t\\t2 what (child|of-type)\\n\\t\\t\\t\\t3 argument (even|odd|\\\\d*|\\\\d*n([+-]\\\\d+)?|...)\\n\\t\\t\\t\\t4 xn-component of xn+y argument ([+-]?\\\\d*n|)\\n\\t\\t\\t\\t5 sign of xn-component\\n\\t\\t\\t\\t6 x of xn-component\\n\\t\\t\\t\\t7 sign of y-component\\n\\t\\t\\t\\t8 y of y-component\\n\\t\\t\\t*/\\n\\t\\t\\tmatch[1] = match[1].toLowerCase();\\n\\n\\t\\t\\tif ( match[1].slice( 0, 3 ) === \\\"nth\\\" ) {\\n\\t\\t\\t\\t// nth-* requires argument\\n\\t\\t\\t\\tif ( !match[3] ) {\\n\\t\\t\\t\\t\\tSizzle.error( match[0] );\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t// numeric x and y parameters for Expr.filter.CHILD\\n\\t\\t\\t\\t// remember that false/true cast respectively to 0/1\\n\\t\\t\\t\\tmatch[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === \\\"even\\\" || match[3] === \\\"odd\\\" ) );\\n\\t\\t\\t\\tmatch[5] = +( ( match[7] + match[8] ) || match[3] === \\\"odd\\\" );\\n\\n\\t\\t\\t// other types prohibit arguments\\n\\t\\t\\t} else if ( match[3] ) {\\n\\t\\t\\t\\tSizzle.error( match[0] );\\n\\t\\t\\t}\\n\\n\\t\\t\\treturn match;\\n\\t\\t},\\n\\n\\t\\t\\\"PSEUDO\\\": function( match ) {\\n\\t\\t\\tvar excess,\\n\\t\\t\\t\\tunquoted = !match[6] && match[2];\\n\\n\\t\\t\\tif ( matchExpr[\\\"CHILD\\\"].test( match[0] ) ) {\\n\\t\\t\\t\\treturn null;\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Accept quoted arguments as-is\\n\\t\\t\\tif ( match[3] ) {\\n\\t\\t\\t\\tmatch[2] = match[4] || match[5] || \\\"\\\";\\n\\n\\t\\t\\t// Strip excess characters from unquoted arguments\\n\\t\\t\\t} else if ( unquoted && rpseudo.test( unquoted ) &&\\n\\t\\t\\t\\t// Get excess from tokenize (recursively)\\n\\t\\t\\t\\t(excess = tokenize( unquoted, true )) &&\\n\\t\\t\\t\\t// advance to the next closing parenthesis\\n\\t\\t\\t\\t(excess = unquoted.indexOf( \\\")\\\", unquoted.length - excess ) - unquoted.length) ) {\\n\\n\\t\\t\\t\\t// excess is a negative index\\n\\t\\t\\t\\tmatch[0] = match[0].slice( 0, excess );\\n\\t\\t\\t\\tmatch[2] = unquoted.slice( 0, excess );\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Return only captures needed by the pseudo filter method (type and argument)\\n\\t\\t\\treturn match.slice( 0, 3 );\\n\\t\\t}\\n\\t},\\n\\n\\tfilter: {\\n\\n\\t\\t\\\"TAG\\\": function( nodeNameSelector ) {\\n\\t\\t\\tvar nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();\\n\\t\\t\\treturn nodeNameSelector === \\\"*\\\" ?\\n\\t\\t\\t\\tfunction() { return true; } :\\n\\t\\t\\t\\tfunction( elem ) {\\n\\t\\t\\t\\t\\treturn elem.nodeName && elem.nodeName.toLowerCase() === nodeName;\\n\\t\\t\\t\\t};\\n\\t\\t},\\n\\n\\t\\t\\\"CLASS\\\": function( className ) {\\n\\t\\t\\tvar pattern = classCache[ className + \\\" \\\" ];\\n\\n\\t\\t\\treturn pattern ||\\n\\t\\t\\t\\t(pattern = new RegExp( \\\"(^|\\\" + whitespace + \\\")\\\" + className + \\\"(\\\" + whitespace + \\\"|$)\\\" )) &&\\n\\t\\t\\t\\tclassCache( className, function( elem ) {\\n\\t\\t\\t\\t\\treturn pattern.test( typeof elem.className === \\\"string\\\" && elem.className || typeof elem.getAttribute !== \\\"undefined\\\" && elem.getAttribute(\\\"class\\\") || \\\"\\\" );\\n\\t\\t\\t\\t});\\n\\t\\t},\\n\\n\\t\\t\\\"ATTR\\\": function( name, operator, check ) {\\n\\t\\t\\treturn function( elem ) {\\n\\t\\t\\t\\tvar result = Sizzle.attr( elem, name );\\n\\n\\t\\t\\t\\tif ( result == null ) {\\n\\t\\t\\t\\t\\treturn operator === \\\"!=\\\";\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tif ( !operator ) {\\n\\t\\t\\t\\t\\treturn true;\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\tresult += \\\"\\\";\\n\\n\\t\\t\\t\\treturn operator === \\\"=\\\" ? result === check :\\n\\t\\t\\t\\t\\toperator === \\\"!=\\\" ? result !== check :\\n\\t\\t\\t\\t\\toperator === \\\"^=\\\" ? check && result.indexOf( check ) === 0 :\\n\\t\\t\\t\\t\\toperator === \\\"*=\\\" ? check && result.indexOf( check ) > -1 :\\n\\t\\t\\t\\t\\toperator === \\\"$=\\\" ? check && result.slice( -check.length ) === check :\\n\\t\\t\\t\\t\\toperator === \\\"~=\\\" ? ( \\\" \\\" + result.replace( rwhitespace, \\\" \\\" ) + \\\" \\\" ).indexOf( check ) > -1 :\\n\\t\\t\\t\\t\\toperator === \\\"|=\\\" ? result === check || result.slice( 0, check.length + 1 ) === check + \\\"-\\\" :\\n\\t\\t\\t\\t\\tfalse;\\n\\t\\t\\t};\\n\\t\\t},\\n\\n\\t\\t\\\"CHILD\\\": function( type, what, argument, first, last ) {\\n\\t\\t\\tvar simple = type.slice( 0, 3 ) !== \\\"nth\\\",\\n\\t\\t\\t\\tforward = type.slice( -4 ) !== \\\"last\\\",\\n\\t\\t\\t\\tofType = what === \\\"of-type\\\";\\n\\n\\t\\t\\treturn first === 1 && last === 0 ?\\n\\n\\t\\t\\t\\t// Shortcut for :nth-*(n)\\n\\t\\t\\t\\tfunction( elem ) {\\n\\t\\t\\t\\t\\treturn !!elem.parentNode;\\n\\t\\t\\t\\t} :\\n\\n\\t\\t\\t\\tfunction( elem, context, xml ) {\\n\\t\\t\\t\\t\\tvar cache, uniqueCache, outerCache, node, nodeIndex, start,\\n\\t\\t\\t\\t\\t\\tdir = simple !== forward ? \\\"nextSibling\\\" : \\\"previousSibling\\\",\\n\\t\\t\\t\\t\\t\\tparent = elem.parentNode,\\n\\t\\t\\t\\t\\t\\tname = ofType && elem.nodeName.toLowerCase(),\\n\\t\\t\\t\\t\\t\\tuseCache = !xml && !ofType,\\n\\t\\t\\t\\t\\t\\tdiff = false;\\n\\n\\t\\t\\t\\t\\tif ( parent ) {\\n\\n\\t\\t\\t\\t\\t\\t// :(first|last|only)-(child|of-type)\\n\\t\\t\\t\\t\\t\\tif ( simple ) {\\n\\t\\t\\t\\t\\t\\t\\twhile ( dir ) {\\n\\t\\t\\t\\t\\t\\t\\t\\tnode = elem;\\n\\t\\t\\t\\t\\t\\t\\t\\twhile ( (node = node[ dir ]) ) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif ( ofType ?\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tnode.nodeName.toLowerCase() === name :\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tnode.nodeType === 1 ) {\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\treturn false;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t\\t// Reverse direction for :only-* (if we haven't yet done so)\\n\\t\\t\\t\\t\\t\\t\\t\\tstart = dir = type === \\\"only\\\" && !start && \\\"nextSibling\\\";\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\treturn true;\\n\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\tstart = [ forward ? parent.firstChild : parent.lastChild ];\\n\\n\\t\\t\\t\\t\\t\\t// non-xml :nth-child(...) stores cache data on `parent`\\n\\t\\t\\t\\t\\t\\tif ( forward && useCache ) {\\n\\n\\t\\t\\t\\t\\t\\t\\t// Seek `elem` from a previously-cached index\\n\\n\\t\\t\\t\\t\\t\\t\\t// ...in a gzip-friendly way\\n\\t\\t\\t\\t\\t\\t\\tnode = parent;\\n\\t\\t\\t\\t\\t\\t\\touterCache = node[ expando ] || (node[ expando ] = {});\\n\\n\\t\\t\\t\\t\\t\\t\\t// Support: IE <9 only\\n\\t\\t\\t\\t\\t\\t\\t// Defend against cloned attroperties (jQuery gh-1709)\\n\\t\\t\\t\\t\\t\\t\\tuniqueCache = outerCache[ node.uniqueID ] ||\\n\\t\\t\\t\\t\\t\\t\\t\\t(outerCache[ node.uniqueID ] = {});\\n\\n\\t\\t\\t\\t\\t\\t\\tcache = uniqueCache[ type ] || [];\\n\\t\\t\\t\\t\\t\\t\\tnodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];\\n\\t\\t\\t\\t\\t\\t\\tdiff = nodeIndex && cache[ 2 ];\\n\\t\\t\\t\\t\\t\\t\\tnode = nodeIndex && parent.childNodes[ nodeIndex ];\\n\\n\\t\\t\\t\\t\\t\\t\\twhile ( (node = ++nodeIndex && node && node[ dir ] ||\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t// Fallback to seeking `elem` from the start\\n\\t\\t\\t\\t\\t\\t\\t\\t(diff = nodeIndex = 0) || start.pop()) ) {\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t// When found, cache indexes on `parent` and break\\n\\t\\t\\t\\t\\t\\t\\t\\tif ( node.nodeType === 1 && ++diff && node === elem ) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tuniqueCache[ type ] = [ dirruns, nodeIndex, diff ];\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t// Use previously-cached element index if available\\n\\t\\t\\t\\t\\t\\t\\tif ( useCache ) {\\n\\t\\t\\t\\t\\t\\t\\t\\t// ...in a gzip-friendly way\\n\\t\\t\\t\\t\\t\\t\\t\\tnode = elem;\\n\\t\\t\\t\\t\\t\\t\\t\\touterCache = node[ expando ] || (node[ expando ] = {});\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t// Support: IE <9 only\\n\\t\\t\\t\\t\\t\\t\\t\\t// Defend against cloned attroperties (jQuery gh-1709)\\n\\t\\t\\t\\t\\t\\t\\t\\tuniqueCache = outerCache[ node.uniqueID ] ||\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t(outerCache[ node.uniqueID ] = {});\\n\\n\\t\\t\\t\\t\\t\\t\\t\\tcache = uniqueCache[ type ] || [];\\n\\t\\t\\t\\t\\t\\t\\t\\tnodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];\\n\\t\\t\\t\\t\\t\\t\\t\\tdiff = nodeIndex;\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t\\t// xml :nth-child(...)\\n\\t\\t\\t\\t\\t\\t\\t// or :nth-last-child(...) or :nth(-last)?-of-type(...)\\n\\t\\t\\t\\t\\t\\t\\tif ( diff === false ) {\\n\\t\\t\\t\\t\\t\\t\\t\\t// Use the same loop as above to seek `elem` from the start\\n\\t\\t\\t\\t\\t\\t\\t\\twhile ( (node = ++nodeIndex && node && node[ dir ] ||\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t(diff = nodeIndex = 0) || start.pop()) ) {\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif ( ( ofType ?\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tnode.nodeName.toLowerCase() === name :\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tnode.nodeType === 1 ) &&\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t++diff ) {\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// Cache the index of each encountered element\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tif ( useCache ) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\touterCache = node[ expando ] || (node[ expando ] = {});\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// Support: IE <9 only\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// Defend against cloned attroperties (jQuery gh-1709)\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tuniqueCache = outerCache[ node.uniqueID ] ||\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t(outerCache[ node.uniqueID ] = {});\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tuniqueCache[ type ] = [ dirruns, diff ];\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tif ( node === elem ) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t// Incorporate the offset, then check against cycle size\\n\\t\\t\\t\\t\\t\\tdiff -= last;\\n\\t\\t\\t\\t\\t\\treturn diff === first || ( diff % first === 0 && diff / first >= 0 );\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t};\\n\\t\\t},\\n\\n\\t\\t\\\"PSEUDO\\\": function( pseudo, argument ) {\\n\\t\\t\\t// pseudo-class names are case-insensitive\\n\\t\\t\\t// http://www.w3.org/TR/selectors/#pseudo-classes\\n\\t\\t\\t// Prioritize by case sensitivity in case custom pseudos are added with uppercase letters\\n\\t\\t\\t// Remember that setFilters inherits from pseudos\\n\\t\\t\\tvar args,\\n\\t\\t\\t\\tfn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||\\n\\t\\t\\t\\t\\tSizzle.error( \\\"unsupported pseudo: \\\" + pseudo );\\n\\n\\t\\t\\t// The user may use createPseudo to indicate that\\n\\t\\t\\t// arguments are needed to create the filter function\\n\\t\\t\\t// just as Sizzle does\\n\\t\\t\\tif ( fn[ expando ] ) {\\n\\t\\t\\t\\treturn fn( argument );\\n\\t\\t\\t}\\n\\n\\t\\t\\t// But maintain support for old signatures\\n\\t\\t\\tif ( fn.length > 1 ) {\\n\\t\\t\\t\\targs = [ pseudo, pseudo, \\\"\\\", argument ];\\n\\t\\t\\t\\treturn Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?\\n\\t\\t\\t\\t\\tmarkFunction(function( seed, matches ) {\\n\\t\\t\\t\\t\\t\\tvar idx,\\n\\t\\t\\t\\t\\t\\t\\tmatched = fn( seed, argument ),\\n\\t\\t\\t\\t\\t\\t\\ti = matched.length;\\n\\t\\t\\t\\t\\t\\twhile ( i-- ) {\\n\\t\\t\\t\\t\\t\\t\\tidx = indexOf( seed, matched[i] );\\n\\t\\t\\t\\t\\t\\t\\tseed[ idx ] = !( matches[ idx ] = matched[i] );\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}) :\\n\\t\\t\\t\\t\\tfunction( elem ) {\\n\\t\\t\\t\\t\\t\\treturn fn( elem, 0, args );\\n\\t\\t\\t\\t\\t};\\n\\t\\t\\t}\\n\\n\\t\\t\\treturn fn;\\n\\t\\t}\\n\\t},\\n\\n\\tpseudos: {\\n\\t\\t// Potentially complex pseudos\\n\\t\\t\\\"not\\\": markFunction(function( selector ) {\\n\\t\\t\\t// Trim the selector passed to compile\\n\\t\\t\\t// to avoid treating leading and trailing\\n\\t\\t\\t// spaces as combinators\\n\\t\\t\\tvar input = [],\\n\\t\\t\\t\\tresults = [],\\n\\t\\t\\t\\tmatcher = compile( selector.replace( rtrim, \\\"$1\\\" ) );\\n\\n\\t\\t\\treturn matcher[ expando ] ?\\n\\t\\t\\t\\tmarkFunction(function( seed, matches, context, xml ) {\\n\\t\\t\\t\\t\\tvar elem,\\n\\t\\t\\t\\t\\t\\tunmatched = matcher( seed, null, xml, [] ),\\n\\t\\t\\t\\t\\t\\ti = seed.length;\\n\\n\\t\\t\\t\\t\\t// Match elements unmatched by `matcher`\\n\\t\\t\\t\\t\\twhile ( i-- ) {\\n\\t\\t\\t\\t\\t\\tif ( (elem = unmatched[i]) ) {\\n\\t\\t\\t\\t\\t\\t\\tseed[i] = !(matches[i] = elem);\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}) :\\n\\t\\t\\t\\tfunction( elem, context, xml ) {\\n\\t\\t\\t\\t\\tinput[0] = elem;\\n\\t\\t\\t\\t\\tmatcher( input, null, xml, results );\\n\\t\\t\\t\\t\\t// Don't keep the element (issue #299)\\n\\t\\t\\t\\t\\tinput[0] = null;\\n\\t\\t\\t\\t\\treturn !results.pop();\\n\\t\\t\\t\\t};\\n\\t\\t}),\\n\\n\\t\\t\\\"has\\\": markFunction(function( selector ) {\\n\\t\\t\\treturn function( elem ) {\\n\\t\\t\\t\\treturn Sizzle( selector, elem ).length > 0;\\n\\t\\t\\t};\\n\\t\\t}),\\n\\n\\t\\t\\\"contains\\\": markFunction(function( text ) {\\n\\t\\t\\ttext = text.replace( runescape, funescape );\\n\\t\\t\\treturn function( elem ) {\\n\\t\\t\\t\\treturn ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;\\n\\t\\t\\t};\\n\\t\\t}),\\n\\n\\t\\t// \\\"Whether an element is represented by a :lang() selector\\n\\t\\t// is based solely on the element's language value\\n\\t\\t// being equal to the identifier C,\\n\\t\\t// or beginning with the identifier C immediately followed by \\\"-\\\".\\n\\t\\t// The matching of C against the element's language value is performed case-insensitively.\\n\\t\\t// The identifier C does not have to be a valid language name.\\\"\\n\\t\\t// http://www.w3.org/TR/selectors/#lang-pseudo\\n\\t\\t\\\"lang\\\": markFunction( function( lang ) {\\n\\t\\t\\t// lang value must be a valid identifier\\n\\t\\t\\tif ( !ridentifier.test(lang || \\\"\\\") ) {\\n\\t\\t\\t\\tSizzle.error( \\\"unsupported lang: \\\" + lang );\\n\\t\\t\\t}\\n\\t\\t\\tlang = lang.replace( runescape, funescape ).toLowerCase();\\n\\t\\t\\treturn function( elem ) {\\n\\t\\t\\t\\tvar elemLang;\\n\\t\\t\\t\\tdo {\\n\\t\\t\\t\\t\\tif ( (elemLang = documentIsHTML ?\\n\\t\\t\\t\\t\\t\\telem.lang :\\n\\t\\t\\t\\t\\t\\telem.getAttribute(\\\"xml:lang\\\") || elem.getAttribute(\\\"lang\\\")) ) {\\n\\n\\t\\t\\t\\t\\t\\telemLang = elemLang.toLowerCase();\\n\\t\\t\\t\\t\\t\\treturn elemLang === lang || elemLang.indexOf( lang + \\\"-\\\" ) === 0;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t} while ( (elem = elem.parentNode) && elem.nodeType === 1 );\\n\\t\\t\\t\\treturn false;\\n\\t\\t\\t};\\n\\t\\t}),\\n\\n\\t\\t// Miscellaneous\\n\\t\\t\\\"target\\\": function( elem ) {\\n\\t\\t\\tvar hash = window.location && window.location.hash;\\n\\t\\t\\treturn hash && hash.slice( 1 ) === elem.id;\\n\\t\\t},\\n\\n\\t\\t\\\"root\\\": function( elem ) {\\n\\t\\t\\treturn elem === docElem;\\n\\t\\t},\\n\\n\\t\\t\\\"focus\\\": function( elem ) {\\n\\t\\t\\treturn elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);\\n\\t\\t},\\n\\n\\t\\t// Boolean properties\\n\\t\\t\\\"enabled\\\": createDisabledPseudo( false ),\\n\\t\\t\\\"disabled\\\": createDisabledPseudo( true ),\\n\\n\\t\\t\\\"checked\\\": function( elem ) {\\n\\t\\t\\t// In CSS3, :checked should return both checked and selected elements\\n\\t\\t\\t// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked\\n\\t\\t\\tvar nodeName = elem.nodeName.toLowerCase();\\n\\t\\t\\treturn (nodeName === \\\"input\\\" && !!elem.checked) || (nodeName === \\\"option\\\" && !!elem.selected);\\n\\t\\t},\\n\\n\\t\\t\\\"selected\\\": function( elem ) {\\n\\t\\t\\t// Accessing this property makes selected-by-default\\n\\t\\t\\t// options in Safari work properly\\n\\t\\t\\tif ( elem.parentNode ) {\\n\\t\\t\\t\\telem.parentNode.selectedIndex;\\n\\t\\t\\t}\\n\\n\\t\\t\\treturn elem.selected === true;\\n\\t\\t},\\n\\n\\t\\t// Contents\\n\\t\\t\\\"empty\\\": function( elem ) {\\n\\t\\t\\t// http://www.w3.org/TR/selectors/#empty-pseudo\\n\\t\\t\\t// :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),\\n\\t\\t\\t//   but not by others (comment: 8; processing instruction: 7; etc.)\\n\\t\\t\\t// nodeType < 6 works because attributes (2) do not appear as children\\n\\t\\t\\tfor ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {\\n\\t\\t\\t\\tif ( elem.nodeType < 6 ) {\\n\\t\\t\\t\\t\\treturn false;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t\\treturn true;\\n\\t\\t},\\n\\n\\t\\t\\\"parent\\\": function( elem ) {\\n\\t\\t\\treturn !Expr.pseudos[\\\"empty\\\"]( elem );\\n\\t\\t},\\n\\n\\t\\t// Element/input types\\n\\t\\t\\\"header\\\": function( elem ) {\\n\\t\\t\\treturn rheader.test( elem.nodeName );\\n\\t\\t},\\n\\n\\t\\t\\\"input\\\": function( elem ) {\\n\\t\\t\\treturn rinputs.test( elem.nodeName );\\n\\t\\t},\\n\\n\\t\\t\\\"button\\\": function( elem ) {\\n\\t\\t\\tvar name = elem.nodeName.toLowerCase();\\n\\t\\t\\treturn name === \\\"input\\\" && elem.type === \\\"button\\\" || name === \\\"button\\\";\\n\\t\\t},\\n\\n\\t\\t\\\"text\\\": function( elem ) {\\n\\t\\t\\tvar attr;\\n\\t\\t\\treturn elem.nodeName.toLowerCase() === \\\"input\\\" &&\\n\\t\\t\\t\\telem.type === \\\"text\\\" &&\\n\\n\\t\\t\\t\\t// Support: IE<8\\n\\t\\t\\t\\t// New HTML5 attribute values (e.g., \\\"search\\\") appear with elem.type === \\\"text\\\"\\n\\t\\t\\t\\t( (attr = elem.getAttribute(\\\"type\\\")) == null || attr.toLowerCase() === \\\"text\\\" );\\n\\t\\t},\\n\\n\\t\\t// Position-in-collection\\n\\t\\t\\\"first\\\": createPositionalPseudo(function() {\\n\\t\\t\\treturn [ 0 ];\\n\\t\\t}),\\n\\n\\t\\t\\\"last\\\": createPositionalPseudo(function( matchIndexes, length ) {\\n\\t\\t\\treturn [ length - 1 ];\\n\\t\\t}),\\n\\n\\t\\t\\\"eq\\\": createPositionalPseudo(function( matchIndexes, length, argument ) {\\n\\t\\t\\treturn [ argument < 0 ? argument + length : argument ];\\n\\t\\t}),\\n\\n\\t\\t\\\"even\\\": createPositionalPseudo(function( matchIndexes, length ) {\\n\\t\\t\\tvar i = 0;\\n\\t\\t\\tfor ( ; i < length; i += 2 ) {\\n\\t\\t\\t\\tmatchIndexes.push( i );\\n\\t\\t\\t}\\n\\t\\t\\treturn matchIndexes;\\n\\t\\t}),\\n\\n\\t\\t\\\"odd\\\": createPositionalPseudo(function( matchIndexes, length ) {\\n\\t\\t\\tvar i = 1;\\n\\t\\t\\tfor ( ; i < length; i += 2 ) {\\n\\t\\t\\t\\tmatchIndexes.push( i );\\n\\t\\t\\t}\\n\\t\\t\\treturn matchIndexes;\\n\\t\\t}),\\n\\n\\t\\t\\\"lt\\\": createPositionalPseudo(function( matchIndexes, length, argument ) {\\n\\t\\t\\tvar i = argument < 0 ? argument + length : argument;\\n\\t\\t\\tfor ( ; --i >= 0; ) {\\n\\t\\t\\t\\tmatchIndexes.push( i );\\n\\t\\t\\t}\\n\\t\\t\\treturn matchIndexes;\\n\\t\\t}),\\n\\n\\t\\t\\\"gt\\\": createPositionalPseudo(function( matchIndexes, length, argument ) {\\n\\t\\t\\tvar i = argument < 0 ? argument + length : argument;\\n\\t\\t\\tfor ( ; ++i < length; ) {\\n\\t\\t\\t\\tmatchIndexes.push( i );\\n\\t\\t\\t}\\n\\t\\t\\treturn matchIndexes;\\n\\t\\t})\\n\\t}\\n};\\n\\nExpr.pseudos[\\\"nth\\\"] = Expr.pseudos[\\\"eq\\\"];\\n\\n// Add button/input type pseudos\\nfor ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {\\n\\tExpr.pseudos[ i ] = createInputPseudo( i );\\n}\\nfor ( i in { submit: true, reset: true } ) {\\n\\tExpr.pseudos[ i ] = createButtonPseudo( i );\\n}\\n\\n// Easy API for creating new setFilters\\nfunction setFilters() {}\\nsetFilters.prototype = Expr.filters = Expr.pseudos;\\nExpr.setFilters = new setFilters();\\n\\ntokenize = Sizzle.tokenize = function( selector, parseOnly ) {\\n\\tvar matched, match, tokens, type,\\n\\t\\tsoFar, groups, preFilters,\\n\\t\\tcached = tokenCache[ selector + \\\" \\\" ];\\n\\n\\tif ( cached ) {\\n\\t\\treturn parseOnly ? 0 : cached.slice( 0 );\\n\\t}\\n\\n\\tsoFar = selector;\\n\\tgroups = [];\\n\\tpreFilters = Expr.preFilter;\\n\\n\\twhile ( soFar ) {\\n\\n\\t\\t// Comma and first run\\n\\t\\tif ( !matched || (match = rcomma.exec( soFar )) ) {\\n\\t\\t\\tif ( match ) {\\n\\t\\t\\t\\t// Don't consume trailing commas as valid\\n\\t\\t\\t\\tsoFar = soFar.slice( match[0].length ) || soFar;\\n\\t\\t\\t}\\n\\t\\t\\tgroups.push( (tokens = []) );\\n\\t\\t}\\n\\n\\t\\tmatched = false;\\n\\n\\t\\t// Combinators\\n\\t\\tif ( (match = rcombinators.exec( soFar )) ) {\\n\\t\\t\\tmatched = match.shift();\\n\\t\\t\\ttokens.push({\\n\\t\\t\\t\\tvalue: matched,\\n\\t\\t\\t\\t// Cast descendant combinators to space\\n\\t\\t\\t\\ttype: match[0].replace( rtrim, \\\" \\\" )\\n\\t\\t\\t});\\n\\t\\t\\tsoFar = soFar.slice( matched.length );\\n\\t\\t}\\n\\n\\t\\t// Filters\\n\\t\\tfor ( type in Expr.filter ) {\\n\\t\\t\\tif ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||\\n\\t\\t\\t\\t(match = preFilters[ type ]( match ))) ) {\\n\\t\\t\\t\\tmatched = match.shift();\\n\\t\\t\\t\\ttokens.push({\\n\\t\\t\\t\\t\\tvalue: matched,\\n\\t\\t\\t\\t\\ttype: type,\\n\\t\\t\\t\\t\\tmatches: match\\n\\t\\t\\t\\t});\\n\\t\\t\\t\\tsoFar = soFar.slice( matched.length );\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\tif ( !matched ) {\\n\\t\\t\\tbreak;\\n\\t\\t}\\n\\t}\\n\\n\\t// Return the length of the invalid excess\\n\\t// if we're just parsing\\n\\t// Otherwise, throw an error or return tokens\\n\\treturn parseOnly ?\\n\\t\\tsoFar.length :\\n\\t\\tsoFar ?\\n\\t\\t\\tSizzle.error( selector ) :\\n\\t\\t\\t// Cache the tokens\\n\\t\\t\\ttokenCache( selector, groups ).slice( 0 );\\n};\\n\\nfunction toSelector( tokens ) {\\n\\tvar i = 0,\\n\\t\\tlen = tokens.length,\\n\\t\\tselector = \\\"\\\";\\n\\tfor ( ; i < len; i++ ) {\\n\\t\\tselector += tokens[i].value;\\n\\t}\\n\\treturn selector;\\n}\\n\\nfunction addCombinator( matcher, combinator, base ) {\\n\\tvar dir = combinator.dir,\\n\\t\\tskip = combinator.next,\\n\\t\\tkey = skip || dir,\\n\\t\\tcheckNonElements = base && key === \\\"parentNode\\\",\\n\\t\\tdoneName = done++;\\n\\n\\treturn combinator.first ?\\n\\t\\t// Check against closest ancestor/preceding element\\n\\t\\tfunction( elem, context, xml ) {\\n\\t\\t\\twhile ( (elem = elem[ dir ]) ) {\\n\\t\\t\\t\\tif ( elem.nodeType === 1 || checkNonElements ) {\\n\\t\\t\\t\\t\\treturn matcher( elem, context, xml );\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t\\treturn false;\\n\\t\\t} :\\n\\n\\t\\t// Check against all ancestor/preceding elements\\n\\t\\tfunction( elem, context, xml ) {\\n\\t\\t\\tvar oldCache, uniqueCache, outerCache,\\n\\t\\t\\t\\tnewCache = [ dirruns, doneName ];\\n\\n\\t\\t\\t// We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching\\n\\t\\t\\tif ( xml ) {\\n\\t\\t\\t\\twhile ( (elem = elem[ dir ]) ) {\\n\\t\\t\\t\\t\\tif ( elem.nodeType === 1 || checkNonElements ) {\\n\\t\\t\\t\\t\\t\\tif ( matcher( elem, context, xml ) ) {\\n\\t\\t\\t\\t\\t\\t\\treturn true;\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t} else {\\n\\t\\t\\t\\twhile ( (elem = elem[ dir ]) ) {\\n\\t\\t\\t\\t\\tif ( elem.nodeType === 1 || checkNonElements ) {\\n\\t\\t\\t\\t\\t\\touterCache = elem[ expando ] || (elem[ expando ] = {});\\n\\n\\t\\t\\t\\t\\t\\t// Support: IE <9 only\\n\\t\\t\\t\\t\\t\\t// Defend against cloned attroperties (jQuery gh-1709)\\n\\t\\t\\t\\t\\t\\tuniqueCache = outerCache[ elem.uniqueID ] || (outerCache[ elem.uniqueID ] = {});\\n\\n\\t\\t\\t\\t\\t\\tif ( skip && skip === elem.nodeName.toLowerCase() ) {\\n\\t\\t\\t\\t\\t\\t\\telem = elem[ dir ] || elem;\\n\\t\\t\\t\\t\\t\\t} else if ( (oldCache = uniqueCache[ key ]) &&\\n\\t\\t\\t\\t\\t\\t\\toldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {\\n\\n\\t\\t\\t\\t\\t\\t\\t// Assign to newCache so results back-propagate to previous elements\\n\\t\\t\\t\\t\\t\\t\\treturn (newCache[ 2 ] = oldCache[ 2 ]);\\n\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t// Reuse newcache so results back-propagate to previous elements\\n\\t\\t\\t\\t\\t\\t\\tuniqueCache[ key ] = newCache;\\n\\n\\t\\t\\t\\t\\t\\t\\t// A match means we're done; a fail means we have to keep checking\\n\\t\\t\\t\\t\\t\\t\\tif ( (newCache[ 2 ] = matcher( elem, context, xml )) ) {\\n\\t\\t\\t\\t\\t\\t\\t\\treturn true;\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t\\treturn false;\\n\\t\\t};\\n}\\n\\nfunction elementMatcher( matchers ) {\\n\\treturn matchers.length > 1 ?\\n\\t\\tfunction( elem, context, xml ) {\\n\\t\\t\\tvar i = matchers.length;\\n\\t\\t\\twhile ( i-- ) {\\n\\t\\t\\t\\tif ( !matchers[i]( elem, context, xml ) ) {\\n\\t\\t\\t\\t\\treturn false;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t\\treturn true;\\n\\t\\t} :\\n\\t\\tmatchers[0];\\n}\\n\\nfunction multipleContexts( selector, contexts, results ) {\\n\\tvar i = 0,\\n\\t\\tlen = contexts.length;\\n\\tfor ( ; i < len; i++ ) {\\n\\t\\tSizzle( selector, contexts[i], results );\\n\\t}\\n\\treturn results;\\n}\\n\\nfunction condense( unmatched, map, filter, context, xml ) {\\n\\tvar elem,\\n\\t\\tnewUnmatched = [],\\n\\t\\ti = 0,\\n\\t\\tlen = unmatched.length,\\n\\t\\tmapped = map != null;\\n\\n\\tfor ( ; i < len; i++ ) {\\n\\t\\tif ( (elem = unmatched[i]) ) {\\n\\t\\t\\tif ( !filter || filter( elem, context, xml ) ) {\\n\\t\\t\\t\\tnewUnmatched.push( elem );\\n\\t\\t\\t\\tif ( mapped ) {\\n\\t\\t\\t\\t\\tmap.push( i );\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n\\n\\treturn newUnmatched;\\n}\\n\\nfunction setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {\\n\\tif ( postFilter && !postFilter[ expando ] ) {\\n\\t\\tpostFilter = setMatcher( postFilter );\\n\\t}\\n\\tif ( postFinder && !postFinder[ expando ] ) {\\n\\t\\tpostFinder = setMatcher( postFinder, postSelector );\\n\\t}\\n\\treturn markFunction(function( seed, results, context, xml ) {\\n\\t\\tvar temp, i, elem,\\n\\t\\t\\tpreMap = [],\\n\\t\\t\\tpostMap = [],\\n\\t\\t\\tpreexisting = results.length,\\n\\n\\t\\t\\t// Get initial elements from seed or context\\n\\t\\t\\telems = seed || multipleContexts( selector || \\\"*\\\", context.nodeType ? [ context ] : context, [] ),\\n\\n\\t\\t\\t// Prefilter to get matcher input, preserving a map for seed-results synchronization\\n\\t\\t\\tmatcherIn = preFilter && ( seed || !selector ) ?\\n\\t\\t\\t\\tcondense( elems, preMap, preFilter, context, xml ) :\\n\\t\\t\\t\\telems,\\n\\n\\t\\t\\tmatcherOut = matcher ?\\n\\t\\t\\t\\t// If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,\\n\\t\\t\\t\\tpostFinder || ( seed ? preFilter : preexisting || postFilter ) ?\\n\\n\\t\\t\\t\\t\\t// ...intermediate processing is necessary\\n\\t\\t\\t\\t\\t[] :\\n\\n\\t\\t\\t\\t\\t// ...otherwise use results directly\\n\\t\\t\\t\\t\\tresults :\\n\\t\\t\\t\\tmatcherIn;\\n\\n\\t\\t// Find primary matches\\n\\t\\tif ( matcher ) {\\n\\t\\t\\tmatcher( matcherIn, matcherOut, context, xml );\\n\\t\\t}\\n\\n\\t\\t// Apply postFilter\\n\\t\\tif ( postFilter ) {\\n\\t\\t\\ttemp = condense( matcherOut, postMap );\\n\\t\\t\\tpostFilter( temp, [], context, xml );\\n\\n\\t\\t\\t// Un-match failing elements by moving them back to matcherIn\\n\\t\\t\\ti = temp.length;\\n\\t\\t\\twhile ( i-- ) {\\n\\t\\t\\t\\tif ( (elem = temp[i]) ) {\\n\\t\\t\\t\\t\\tmatcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\tif ( seed ) {\\n\\t\\t\\tif ( postFinder || preFilter ) {\\n\\t\\t\\t\\tif ( postFinder ) {\\n\\t\\t\\t\\t\\t// Get the final matcherOut by condensing this intermediate into postFinder contexts\\n\\t\\t\\t\\t\\ttemp = [];\\n\\t\\t\\t\\t\\ti = matcherOut.length;\\n\\t\\t\\t\\t\\twhile ( i-- ) {\\n\\t\\t\\t\\t\\t\\tif ( (elem = matcherOut[i]) ) {\\n\\t\\t\\t\\t\\t\\t\\t// Restore matcherIn since elem is not yet a final match\\n\\t\\t\\t\\t\\t\\t\\ttemp.push( (matcherIn[i] = elem) );\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\tpostFinder( null, (matcherOut = []), temp, xml );\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t// Move matched elements from seed to results to keep them synchronized\\n\\t\\t\\t\\ti = matcherOut.length;\\n\\t\\t\\t\\twhile ( i-- ) {\\n\\t\\t\\t\\t\\tif ( (elem = matcherOut[i]) &&\\n\\t\\t\\t\\t\\t\\t(temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) {\\n\\n\\t\\t\\t\\t\\t\\tseed[temp] = !(results[temp] = elem);\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\n\\t\\t// Add elements to results, through postFinder if defined\\n\\t\\t} else {\\n\\t\\t\\tmatcherOut = condense(\\n\\t\\t\\t\\tmatcherOut === results ?\\n\\t\\t\\t\\t\\tmatcherOut.splice( preexisting, matcherOut.length ) :\\n\\t\\t\\t\\t\\tmatcherOut\\n\\t\\t\\t);\\n\\t\\t\\tif ( postFinder ) {\\n\\t\\t\\t\\tpostFinder( null, results, matcherOut, xml );\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tpush.apply( results, matcherOut );\\n\\t\\t\\t}\\n\\t\\t}\\n\\t});\\n}\\n\\nfunction matcherFromTokens( tokens ) {\\n\\tvar checkContext, matcher, j,\\n\\t\\tlen = tokens.length,\\n\\t\\tleadingRelative = Expr.relative[ tokens[0].type ],\\n\\t\\timplicitRelative = leadingRelative || Expr.relative[\\\" \\\"],\\n\\t\\ti = leadingRelative ? 1 : 0,\\n\\n\\t\\t// The foundational matcher ensures that elements are reachable from top-level context(s)\\n\\t\\tmatchContext = addCombinator( function( elem ) {\\n\\t\\t\\treturn elem === checkContext;\\n\\t\\t}, implicitRelative, true ),\\n\\t\\tmatchAnyContext = addCombinator( function( elem ) {\\n\\t\\t\\treturn indexOf( checkContext, elem ) > -1;\\n\\t\\t}, implicitRelative, true ),\\n\\t\\tmatchers = [ function( elem, context, xml ) {\\n\\t\\t\\tvar ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || (\\n\\t\\t\\t\\t(checkContext = context).nodeType ?\\n\\t\\t\\t\\t\\tmatchContext( elem, context, xml ) :\\n\\t\\t\\t\\t\\tmatchAnyContext( elem, context, xml ) );\\n\\t\\t\\t// Avoid hanging onto element (issue #299)\\n\\t\\t\\tcheckContext = null;\\n\\t\\t\\treturn ret;\\n\\t\\t} ];\\n\\n\\tfor ( ; i < len; i++ ) {\\n\\t\\tif ( (matcher = Expr.relative[ tokens[i].type ]) ) {\\n\\t\\t\\tmatchers = [ addCombinator(elementMatcher( matchers ), matcher) ];\\n\\t\\t} else {\\n\\t\\t\\tmatcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches );\\n\\n\\t\\t\\t// Return special upon seeing a positional matcher\\n\\t\\t\\tif ( matcher[ expando ] ) {\\n\\t\\t\\t\\t// Find the next relative operator (if any) for proper handling\\n\\t\\t\\t\\tj = ++i;\\n\\t\\t\\t\\tfor ( ; j < len; j++ ) {\\n\\t\\t\\t\\t\\tif ( Expr.relative[ tokens[j].type ] ) {\\n\\t\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\treturn setMatcher(\\n\\t\\t\\t\\t\\ti > 1 && elementMatcher( matchers ),\\n\\t\\t\\t\\t\\ti > 1 && toSelector(\\n\\t\\t\\t\\t\\t\\t// If the preceding token was a descendant combinator, insert an implicit any-element `*`\\n\\t\\t\\t\\t\\t\\ttokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === \\\" \\\" ? \\\"*\\\" : \\\"\\\" })\\n\\t\\t\\t\\t\\t).replace( rtrim, \\\"$1\\\" ),\\n\\t\\t\\t\\t\\tmatcher,\\n\\t\\t\\t\\t\\ti < j && matcherFromTokens( tokens.slice( i, j ) ),\\n\\t\\t\\t\\t\\tj < len && matcherFromTokens( (tokens = tokens.slice( j )) ),\\n\\t\\t\\t\\t\\tj < len && toSelector( tokens )\\n\\t\\t\\t\\t);\\n\\t\\t\\t}\\n\\t\\t\\tmatchers.push( matcher );\\n\\t\\t}\\n\\t}\\n\\n\\treturn elementMatcher( matchers );\\n}\\n\\nfunction matcherFromGroupMatchers( elementMatchers, setMatchers ) {\\n\\tvar bySet = setMatchers.length > 0,\\n\\t\\tbyElement = elementMatchers.length > 0,\\n\\t\\tsuperMatcher = function( seed, context, xml, results, outermost ) {\\n\\t\\t\\tvar elem, j, matcher,\\n\\t\\t\\t\\tmatchedCount = 0,\\n\\t\\t\\t\\ti = \\\"0\\\",\\n\\t\\t\\t\\tunmatched = seed && [],\\n\\t\\t\\t\\tsetMatched = [],\\n\\t\\t\\t\\tcontextBackup = outermostContext,\\n\\t\\t\\t\\t// We must always have either seed elements or outermost context\\n\\t\\t\\t\\telems = seed || byElement && Expr.find[\\\"TAG\\\"]( \\\"*\\\", outermost ),\\n\\t\\t\\t\\t// Use integer dirruns iff this is the outermost matcher\\n\\t\\t\\t\\tdirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1),\\n\\t\\t\\t\\tlen = elems.length;\\n\\n\\t\\t\\tif ( outermost ) {\\n\\t\\t\\t\\toutermostContext = context === document || context || outermost;\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Add elements passing elementMatchers directly to results\\n\\t\\t\\t// Support: IE<9, Safari\\n\\t\\t\\t// Tolerate NodeList properties (IE: \\\"length\\\"; Safari: <number>) matching elements by id\\n\\t\\t\\tfor ( ; i !== len && (elem = elems[i]) != null; i++ ) {\\n\\t\\t\\t\\tif ( byElement && elem ) {\\n\\t\\t\\t\\t\\tj = 0;\\n\\t\\t\\t\\t\\tif ( !context && elem.ownerDocument !== document ) {\\n\\t\\t\\t\\t\\t\\tsetDocument( elem );\\n\\t\\t\\t\\t\\t\\txml = !documentIsHTML;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\twhile ( (matcher = elementMatchers[j++]) ) {\\n\\t\\t\\t\\t\\t\\tif ( matcher( elem, context || document, xml) ) {\\n\\t\\t\\t\\t\\t\\t\\tresults.push( elem );\\n\\t\\t\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\tif ( outermost ) {\\n\\t\\t\\t\\t\\t\\tdirruns = dirrunsUnique;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t// Track unmatched elements for set filters\\n\\t\\t\\t\\tif ( bySet ) {\\n\\t\\t\\t\\t\\t// They will have gone through all possible matchers\\n\\t\\t\\t\\t\\tif ( (elem = !matcher && elem) ) {\\n\\t\\t\\t\\t\\t\\tmatchedCount--;\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t// Lengthen the array for every element, matched or not\\n\\t\\t\\t\\t\\tif ( seed ) {\\n\\t\\t\\t\\t\\t\\tunmatched.push( elem );\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\n\\t\\t\\t// `i` is now the count of elements visited above, and adding it to `matchedCount`\\n\\t\\t\\t// makes the latter nonnegative.\\n\\t\\t\\tmatchedCount += i;\\n\\n\\t\\t\\t// Apply set filters to unmatched elements\\n\\t\\t\\t// NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount`\\n\\t\\t\\t// equals `i`), unless we didn't visit _any_ elements in the above loop because we have\\n\\t\\t\\t// no element matchers and no seed.\\n\\t\\t\\t// Incrementing an initially-string \\\"0\\\" `i` allows `i` to remain a string only in that\\n\\t\\t\\t// case, which will result in a \\\"00\\\" `matchedCount` that differs from `i` but is also\\n\\t\\t\\t// numerically zero.\\n\\t\\t\\tif ( bySet && i !== matchedCount ) {\\n\\t\\t\\t\\tj = 0;\\n\\t\\t\\t\\twhile ( (matcher = setMatchers[j++]) ) {\\n\\t\\t\\t\\t\\tmatcher( unmatched, setMatched, context, xml );\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\tif ( seed ) {\\n\\t\\t\\t\\t\\t// Reintegrate element matches to eliminate the need for sorting\\n\\t\\t\\t\\t\\tif ( matchedCount > 0 ) {\\n\\t\\t\\t\\t\\t\\twhile ( i-- ) {\\n\\t\\t\\t\\t\\t\\t\\tif ( !(unmatched[i] || setMatched[i]) ) {\\n\\t\\t\\t\\t\\t\\t\\t\\tsetMatched[i] = pop.call( results );\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t// Discard index placeholder values to get only actual matches\\n\\t\\t\\t\\t\\tsetMatched = condense( setMatched );\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t// Add matches to results\\n\\t\\t\\t\\tpush.apply( results, setMatched );\\n\\n\\t\\t\\t\\t// Seedless set matches succeeding multiple successful matchers stipulate sorting\\n\\t\\t\\t\\tif ( outermost && !seed && setMatched.length > 0 &&\\n\\t\\t\\t\\t\\t( matchedCount + setMatchers.length ) > 1 ) {\\n\\n\\t\\t\\t\\t\\tSizzle.uniqueSort( results );\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Override manipulation of globals by nested matchers\\n\\t\\t\\tif ( outermost ) {\\n\\t\\t\\t\\tdirruns = dirrunsUnique;\\n\\t\\t\\t\\toutermostContext = contextBackup;\\n\\t\\t\\t}\\n\\n\\t\\t\\treturn unmatched;\\n\\t\\t};\\n\\n\\treturn bySet ?\\n\\t\\tmarkFunction( superMatcher ) :\\n\\t\\tsuperMatcher;\\n}\\n\\ncompile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) {\\n\\tvar i,\\n\\t\\tsetMatchers = [],\\n\\t\\telementMatchers = [],\\n\\t\\tcached = compilerCache[ selector + \\\" \\\" ];\\n\\n\\tif ( !cached ) {\\n\\t\\t// Generate a function of recursive functions that can be used to check each element\\n\\t\\tif ( !match ) {\\n\\t\\t\\tmatch = tokenize( selector );\\n\\t\\t}\\n\\t\\ti = match.length;\\n\\t\\twhile ( i-- ) {\\n\\t\\t\\tcached = matcherFromTokens( match[i] );\\n\\t\\t\\tif ( cached[ expando ] ) {\\n\\t\\t\\t\\tsetMatchers.push( cached );\\n\\t\\t\\t} else {\\n\\t\\t\\t\\telementMatchers.push( cached );\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\t// Cache the compiled function\\n\\t\\tcached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );\\n\\n\\t\\t// Save selector and tokenization\\n\\t\\tcached.selector = selector;\\n\\t}\\n\\treturn cached;\\n};\\n\\n/**\\n * A low-level selection function that works with Sizzle's compiled\\n *  selector functions\\n * @param {String|Function} selector A selector or a pre-compiled\\n *  selector function built with Sizzle.compile\\n * @param {Element} context\\n * @param {Array} [results]\\n * @param {Array} [seed] A set of elements to match against\\n */\\nselect = Sizzle.select = function( selector, context, results, seed ) {\\n\\tvar i, tokens, token, type, find,\\n\\t\\tcompiled = typeof selector === \\\"function\\\" && selector,\\n\\t\\tmatch = !seed && tokenize( (selector = compiled.selector || selector) );\\n\\n\\tresults = results || [];\\n\\n\\t// Try to minimize operations if there is only one selector in the list and no seed\\n\\t// (the latter of which guarantees us context)\\n\\tif ( match.length === 1 ) {\\n\\n\\t\\t// Reduce context if the leading compound selector is an ID\\n\\t\\ttokens = match[0] = match[0].slice( 0 );\\n\\t\\tif ( tokens.length > 2 && (token = tokens[0]).type === \\\"ID\\\" &&\\n\\t\\t\\t\\tcontext.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[1].type ] ) {\\n\\n\\t\\t\\tcontext = ( Expr.find[\\\"ID\\\"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];\\n\\t\\t\\tif ( !context ) {\\n\\t\\t\\t\\treturn results;\\n\\n\\t\\t\\t// Precompiled matchers will still verify ancestry, so step up a level\\n\\t\\t\\t} else if ( compiled ) {\\n\\t\\t\\t\\tcontext = context.parentNode;\\n\\t\\t\\t}\\n\\n\\t\\t\\tselector = selector.slice( tokens.shift().value.length );\\n\\t\\t}\\n\\n\\t\\t// Fetch a seed set for right-to-left matching\\n\\t\\ti = matchExpr[\\\"needsContext\\\"].test( selector ) ? 0 : tokens.length;\\n\\t\\twhile ( i-- ) {\\n\\t\\t\\ttoken = tokens[i];\\n\\n\\t\\t\\t// Abort if we hit a combinator\\n\\t\\t\\tif ( Expr.relative[ (type = token.type) ] ) {\\n\\t\\t\\t\\tbreak;\\n\\t\\t\\t}\\n\\t\\t\\tif ( (find = Expr.find[ type ]) ) {\\n\\t\\t\\t\\t// Search, expanding context for leading sibling combinators\\n\\t\\t\\t\\tif ( (seed = find(\\n\\t\\t\\t\\t\\ttoken.matches[0].replace( runescape, funescape ),\\n\\t\\t\\t\\t\\trsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context\\n\\t\\t\\t\\t)) ) {\\n\\n\\t\\t\\t\\t\\t// If seed is empty or no tokens remain, we can return early\\n\\t\\t\\t\\t\\ttokens.splice( i, 1 );\\n\\t\\t\\t\\t\\tselector = seed.length && toSelector( tokens );\\n\\t\\t\\t\\t\\tif ( !selector ) {\\n\\t\\t\\t\\t\\t\\tpush.apply( results, seed );\\n\\t\\t\\t\\t\\t\\treturn results;\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n\\n\\t// Compile and execute a filtering function if one is not provided\\n\\t// Provide `match` to avoid retokenization if we modified the selector above\\n\\t( compiled || compile( selector, match ) )(\\n\\t\\tseed,\\n\\t\\tcontext,\\n\\t\\t!documentIsHTML,\\n\\t\\tresults,\\n\\t\\t!context || rsibling.test( selector ) && testContext( context.parentNode ) || context\\n\\t);\\n\\treturn results;\\n};\\n\\n// One-time assignments\\n\\n// Sort stability\\nsupport.sortStable = expando.split(\\\"\\\").sort( sortOrder ).join(\\\"\\\") === expando;\\n\\n// Support: Chrome 14-35+\\n// Always assume duplicates if they aren't passed to the comparison function\\nsupport.detectDuplicates = !!hasDuplicate;\\n\\n// Initialize against the default document\\nsetDocument();\\n\\n// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)\\n// Detached nodes confoundingly follow *each other*\\nsupport.sortDetached = assert(function( el ) {\\n\\t// Should return 1, but returns 4 (following)\\n\\treturn el.compareDocumentPosition( document.createElement(\\\"fieldset\\\") ) & 1;\\n});\\n\\n// Support: IE<8\\n// Prevent attribute/property \\\"interpolation\\\"\\n// https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx\\nif ( !assert(function( el ) {\\n\\tel.innerHTML = \\\"<a href='#'></a>\\\";\\n\\treturn el.firstChild.getAttribute(\\\"href\\\") === \\\"#\\\" ;\\n}) ) {\\n\\taddHandle( \\\"type|href|height|width\\\", function( elem, name, isXML ) {\\n\\t\\tif ( !isXML ) {\\n\\t\\t\\treturn elem.getAttribute( name, name.toLowerCase() === \\\"type\\\" ? 1 : 2 );\\n\\t\\t}\\n\\t});\\n}\\n\\n// Support: IE<9\\n// Use defaultValue in place of getAttribute(\\\"value\\\")\\nif ( !support.attributes || !assert(function( el ) {\\n\\tel.innerHTML = \\\"<input/>\\\";\\n\\tel.firstChild.setAttribute( \\\"value\\\", \\\"\\\" );\\n\\treturn el.firstChild.getAttribute( \\\"value\\\" ) === \\\"\\\";\\n}) ) {\\n\\taddHandle( \\\"value\\\", function( elem, name, isXML ) {\\n\\t\\tif ( !isXML && elem.nodeName.toLowerCase() === \\\"input\\\" ) {\\n\\t\\t\\treturn elem.defaultValue;\\n\\t\\t}\\n\\t});\\n}\\n\\n// Support: IE<9\\n// Use getAttributeNode to fetch booleans when getAttribute lies\\nif ( !assert(function( el ) {\\n\\treturn el.getAttribute(\\\"disabled\\\") == null;\\n}) ) {\\n\\taddHandle( booleans, function( elem, name, isXML ) {\\n\\t\\tvar val;\\n\\t\\tif ( !isXML ) {\\n\\t\\t\\treturn elem[ name ] === true ? name.toLowerCase() :\\n\\t\\t\\t\\t\\t(val = elem.getAttributeNode( name )) && val.specified ?\\n\\t\\t\\t\\t\\tval.value :\\n\\t\\t\\t\\tnull;\\n\\t\\t}\\n\\t});\\n}\\n\\nreturn Sizzle;\\n\\n})( window );\\n\\n\\n\\njQuery.find = Sizzle;\\njQuery.expr = Sizzle.selectors;\\n\\n// Deprecated\\njQuery.expr[ \\\":\\\" ] = jQuery.expr.pseudos;\\njQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;\\njQuery.text = Sizzle.getText;\\njQuery.isXMLDoc = Sizzle.isXML;\\njQuery.contains = Sizzle.contains;\\njQuery.escapeSelector = Sizzle.escape;\\n\\n\\n\\n\\nvar dir = function( elem, dir, until ) {\\n\\tvar matched = [],\\n\\t\\ttruncate = until !== undefined;\\n\\n\\twhile ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {\\n\\t\\tif ( elem.nodeType === 1 ) {\\n\\t\\t\\tif ( truncate && jQuery( elem ).is( until ) ) {\\n\\t\\t\\t\\tbreak;\\n\\t\\t\\t}\\n\\t\\t\\tmatched.push( elem );\\n\\t\\t}\\n\\t}\\n\\treturn matched;\\n};\\n\\n\\nvar siblings = function( n, elem ) {\\n\\tvar matched = [];\\n\\n\\tfor ( ; n; n = n.nextSibling ) {\\n\\t\\tif ( n.nodeType === 1 && n !== elem ) {\\n\\t\\t\\tmatched.push( n );\\n\\t\\t}\\n\\t}\\n\\n\\treturn matched;\\n};\\n\\n\\nvar rneedsContext = jQuery.expr.match.needsContext;\\n\\nvar rsingleTag = ( /^<([a-z][^\\\\/\\\\0>:\\\\x20\\\\t\\\\r\\\\n\\\\f]*)[\\\\x20\\\\t\\\\r\\\\n\\\\f]*\\\\/?>(?:<\\\\/\\\\1>|)$/i );\\n\\n\\n\\nvar risSimple = /^.[^:#\\\\[\\\\.,]*$/;\\n\\n// Implement the identical functionality for filter and not\\nfunction winnow( elements, qualifier, not ) {\\n\\tif ( jQuery.isFunction( qualifier ) ) {\\n\\t\\treturn jQuery.grep( elements, function( elem, i ) {\\n\\t\\t\\treturn !!qualifier.call( elem, i, elem ) !== not;\\n\\t\\t} );\\n\\t}\\n\\n\\t// Single element\\n\\tif ( qualifier.nodeType ) {\\n\\t\\treturn jQuery.grep( elements, function( elem ) {\\n\\t\\t\\treturn ( elem === qualifier ) !== not;\\n\\t\\t} );\\n\\t}\\n\\n\\t// Arraylike of elements (jQuery, arguments, Array)\\n\\tif ( typeof qualifier !== \\\"string\\\" ) {\\n\\t\\treturn jQuery.grep( elements, function( elem ) {\\n\\t\\t\\treturn ( indexOf.call( qualifier, elem ) > -1 ) !== not;\\n\\t\\t} );\\n\\t}\\n\\n\\t// Simple selector that can be filtered directly, removing non-Elements\\n\\tif ( risSimple.test( qualifier ) ) {\\n\\t\\treturn jQuery.filter( qualifier, elements, not );\\n\\t}\\n\\n\\t// Complex selector, compare the two sets, removing non-Elements\\n\\tqualifier = jQuery.filter( qualifier, elements );\\n\\treturn jQuery.grep( elements, function( elem ) {\\n\\t\\treturn ( indexOf.call( qualifier, elem ) > -1 ) !== not && elem.nodeType === 1;\\n\\t} );\\n}\\n\\njQuery.filter = function( expr, elems, not ) {\\n\\tvar elem = elems[ 0 ];\\n\\n\\tif ( not ) {\\n\\t\\texpr = \\\":not(\\\" + expr + \\\")\\\";\\n\\t}\\n\\n\\tif ( elems.length === 1 && elem.nodeType === 1 ) {\\n\\t\\treturn jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [];\\n\\t}\\n\\n\\treturn jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {\\n\\t\\treturn elem.nodeType === 1;\\n\\t} ) );\\n};\\n\\njQuery.fn.extend( {\\n\\tfind: function( selector ) {\\n\\t\\tvar i, ret,\\n\\t\\t\\tlen = this.length,\\n\\t\\t\\tself = this;\\n\\n\\t\\tif ( typeof selector !== \\\"string\\\" ) {\\n\\t\\t\\treturn this.pushStack( jQuery( selector ).filter( function() {\\n\\t\\t\\t\\tfor ( i = 0; i < len; i++ ) {\\n\\t\\t\\t\\t\\tif ( jQuery.contains( self[ i ], this ) ) {\\n\\t\\t\\t\\t\\t\\treturn true;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t} ) );\\n\\t\\t}\\n\\n\\t\\tret = this.pushStack( [] );\\n\\n\\t\\tfor ( i = 0; i < len; i++ ) {\\n\\t\\t\\tjQuery.find( selector, self[ i ], ret );\\n\\t\\t}\\n\\n\\t\\treturn len > 1 ? jQuery.uniqueSort( ret ) : ret;\\n\\t},\\n\\tfilter: function( selector ) {\\n\\t\\treturn this.pushStack( winnow( this, selector || [], false ) );\\n\\t},\\n\\tnot: function( selector ) {\\n\\t\\treturn this.pushStack( winnow( this, selector || [], true ) );\\n\\t},\\n\\tis: function( selector ) {\\n\\t\\treturn !!winnow(\\n\\t\\t\\tthis,\\n\\n\\t\\t\\t// If this is a positional/relative selector, check membership in the returned set\\n\\t\\t\\t// so $(\\\"p:first\\\").is(\\\"p:last\\\") won't return true for a doc with two \\\"p\\\".\\n\\t\\t\\ttypeof selector === \\\"string\\\" && rneedsContext.test( selector ) ?\\n\\t\\t\\t\\tjQuery( selector ) :\\n\\t\\t\\t\\tselector || [],\\n\\t\\t\\tfalse\\n\\t\\t).length;\\n\\t}\\n} );\\n\\n\\n// Initialize a jQuery object\\n\\n\\n// A central reference to the root jQuery(document)\\nvar rootjQuery,\\n\\n\\t// A simple way to check for HTML strings\\n\\t// Prioritize #id over <tag> to avoid XSS via location.hash (#9521)\\n\\t// Strict HTML recognition (#11290: must start with <)\\n\\t// Shortcut simple #id case for speed\\n\\trquickExpr = /^(?:\\\\s*(<[\\\\w\\\\W]+>)[^>]*|#([\\\\w-]+))$/,\\n\\n\\tinit = jQuery.fn.init = function( selector, context, root ) {\\n\\t\\tvar match, elem;\\n\\n\\t\\t// HANDLE: $(\\\"\\\"), $(null), $(undefined), $(false)\\n\\t\\tif ( !selector ) {\\n\\t\\t\\treturn this;\\n\\t\\t}\\n\\n\\t\\t// Method init() accepts an alternate rootjQuery\\n\\t\\t// so migrate can support jQuery.sub (gh-2101)\\n\\t\\troot = root || rootjQuery;\\n\\n\\t\\t// Handle HTML strings\\n\\t\\tif ( typeof selector === \\\"string\\\" ) {\\n\\t\\t\\tif ( selector[ 0 ] === \\\"<\\\" &&\\n\\t\\t\\t\\tselector[ selector.length - 1 ] === \\\">\\\" &&\\n\\t\\t\\t\\tselector.length >= 3 ) {\\n\\n\\t\\t\\t\\t// Assume that strings that start and end with <> are HTML and skip the regex check\\n\\t\\t\\t\\tmatch = [ null, selector, null ];\\n\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tmatch = rquickExpr.exec( selector );\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Match html or make sure no context is specified for #id\\n\\t\\t\\tif ( match && ( match[ 1 ] || !context ) ) {\\n\\n\\t\\t\\t\\t// HANDLE: $(html) -> $(array)\\n\\t\\t\\t\\tif ( match[ 1 ] ) {\\n\\t\\t\\t\\t\\tcontext = context instanceof jQuery ? context[ 0 ] : context;\\n\\n\\t\\t\\t\\t\\t// Option to run scripts is true for back-compat\\n\\t\\t\\t\\t\\t// Intentionally let the error be thrown if parseHTML is not present\\n\\t\\t\\t\\t\\tjQuery.merge( this, jQuery.parseHTML(\\n\\t\\t\\t\\t\\t\\tmatch[ 1 ],\\n\\t\\t\\t\\t\\t\\tcontext && context.nodeType ? context.ownerDocument || context : document,\\n\\t\\t\\t\\t\\t\\ttrue\\n\\t\\t\\t\\t\\t) );\\n\\n\\t\\t\\t\\t\\t// HANDLE: $(html, props)\\n\\t\\t\\t\\t\\tif ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) {\\n\\t\\t\\t\\t\\t\\tfor ( match in context ) {\\n\\n\\t\\t\\t\\t\\t\\t\\t// Properties of context are called as methods if possible\\n\\t\\t\\t\\t\\t\\t\\tif ( jQuery.isFunction( this[ match ] ) ) {\\n\\t\\t\\t\\t\\t\\t\\t\\tthis[ match ]( context[ match ] );\\n\\n\\t\\t\\t\\t\\t\\t\\t// ...and otherwise set as attributes\\n\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\tthis.attr( match, context[ match ] );\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\treturn this;\\n\\n\\t\\t\\t\\t// HANDLE: $(#id)\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\telem = document.getElementById( match[ 2 ] );\\n\\n\\t\\t\\t\\t\\tif ( elem ) {\\n\\n\\t\\t\\t\\t\\t\\t// Inject the element directly into the jQuery object\\n\\t\\t\\t\\t\\t\\tthis[ 0 ] = elem;\\n\\t\\t\\t\\t\\t\\tthis.length = 1;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\treturn this;\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t// HANDLE: $(expr, $(...))\\n\\t\\t\\t} else if ( !context || context.jquery ) {\\n\\t\\t\\t\\treturn ( context || root ).find( selector );\\n\\n\\t\\t\\t// HANDLE: $(expr, context)\\n\\t\\t\\t// (which is just equivalent to: $(context).find(expr)\\n\\t\\t\\t} else {\\n\\t\\t\\t\\treturn this.constructor( context ).find( selector );\\n\\t\\t\\t}\\n\\n\\t\\t// HANDLE: $(DOMElement)\\n\\t\\t} else if ( selector.nodeType ) {\\n\\t\\t\\tthis[ 0 ] = selector;\\n\\t\\t\\tthis.length = 1;\\n\\t\\t\\treturn this;\\n\\n\\t\\t// HANDLE: $(function)\\n\\t\\t// Shortcut for document ready\\n\\t\\t} else if ( jQuery.isFunction( selector ) ) {\\n\\t\\t\\treturn root.ready !== undefined ?\\n\\t\\t\\t\\troot.ready( selector ) :\\n\\n\\t\\t\\t\\t// Execute immediately if ready is not present\\n\\t\\t\\t\\tselector( jQuery );\\n\\t\\t}\\n\\n\\t\\treturn jQuery.makeArray( selector, this );\\n\\t};\\n\\n// Give the init function the jQuery prototype for later instantiation\\ninit.prototype = jQuery.fn;\\n\\n// Initialize central reference\\nrootjQuery = jQuery( document );\\n\\n\\nvar rparentsprev = /^(?:parents|prev(?:Until|All))/,\\n\\n\\t// Methods guaranteed to produce a unique set when starting from a unique set\\n\\tguaranteedUnique = {\\n\\t\\tchildren: true,\\n\\t\\tcontents: true,\\n\\t\\tnext: true,\\n\\t\\tprev: true\\n\\t};\\n\\njQuery.fn.extend( {\\n\\thas: function( target ) {\\n\\t\\tvar targets = jQuery( target, this ),\\n\\t\\t\\tl = targets.length;\\n\\n\\t\\treturn this.filter( function() {\\n\\t\\t\\tvar i = 0;\\n\\t\\t\\tfor ( ; i < l; i++ ) {\\n\\t\\t\\t\\tif ( jQuery.contains( this, targets[ i ] ) ) {\\n\\t\\t\\t\\t\\treturn true;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t} );\\n\\t},\\n\\n\\tclosest: function( selectors, context ) {\\n\\t\\tvar cur,\\n\\t\\t\\ti = 0,\\n\\t\\t\\tl = this.length,\\n\\t\\t\\tmatched = [],\\n\\t\\t\\ttargets = typeof selectors !== \\\"string\\\" && jQuery( selectors );\\n\\n\\t\\t// Positional selectors never match, since there's no _selection_ context\\n\\t\\tif ( !rneedsContext.test( selectors ) ) {\\n\\t\\t\\tfor ( ; i < l; i++ ) {\\n\\t\\t\\t\\tfor ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) {\\n\\n\\t\\t\\t\\t\\t// Always skip document fragments\\n\\t\\t\\t\\t\\tif ( cur.nodeType < 11 && ( targets ?\\n\\t\\t\\t\\t\\t\\ttargets.index( cur ) > -1 :\\n\\n\\t\\t\\t\\t\\t\\t// Don't pass non-elements to Sizzle\\n\\t\\t\\t\\t\\t\\tcur.nodeType === 1 &&\\n\\t\\t\\t\\t\\t\\t\\tjQuery.find.matchesSelector( cur, selectors ) ) ) {\\n\\n\\t\\t\\t\\t\\t\\tmatched.push( cur );\\n\\t\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\treturn this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched );\\n\\t},\\n\\n\\t// Determine the position of an element within the set\\n\\tindex: function( elem ) {\\n\\n\\t\\t// No argument, return index in parent\\n\\t\\tif ( !elem ) {\\n\\t\\t\\treturn ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1;\\n\\t\\t}\\n\\n\\t\\t// Index in selector\\n\\t\\tif ( typeof elem === \\\"string\\\" ) {\\n\\t\\t\\treturn indexOf.call( jQuery( elem ), this[ 0 ] );\\n\\t\\t}\\n\\n\\t\\t// Locate the position of the desired element\\n\\t\\treturn indexOf.call( this,\\n\\n\\t\\t\\t// If it receives a jQuery object, the first element is used\\n\\t\\t\\telem.jquery ? elem[ 0 ] : elem\\n\\t\\t);\\n\\t},\\n\\n\\tadd: function( selector, context ) {\\n\\t\\treturn this.pushStack(\\n\\t\\t\\tjQuery.uniqueSort(\\n\\t\\t\\t\\tjQuery.merge( this.get(), jQuery( selector, context ) )\\n\\t\\t\\t)\\n\\t\\t);\\n\\t},\\n\\n\\taddBack: function( selector ) {\\n\\t\\treturn this.add( selector == null ?\\n\\t\\t\\tthis.prevObject : this.prevObject.filter( selector )\\n\\t\\t);\\n\\t}\\n} );\\n\\nfunction sibling( cur, dir ) {\\n\\twhile ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {}\\n\\treturn cur;\\n}\\n\\njQuery.each( {\\n\\tparent: function( elem ) {\\n\\t\\tvar parent = elem.parentNode;\\n\\t\\treturn parent && parent.nodeType !== 11 ? parent : null;\\n\\t},\\n\\tparents: function( elem ) {\\n\\t\\treturn dir( elem, \\\"parentNode\\\" );\\n\\t},\\n\\tparentsUntil: function( elem, i, until ) {\\n\\t\\treturn dir( elem, \\\"parentNode\\\", until );\\n\\t},\\n\\tnext: function( elem ) {\\n\\t\\treturn sibling( elem, \\\"nextSibling\\\" );\\n\\t},\\n\\tprev: function( elem ) {\\n\\t\\treturn sibling( elem, \\\"previousSibling\\\" );\\n\\t},\\n\\tnextAll: function( elem ) {\\n\\t\\treturn dir( elem, \\\"nextSibling\\\" );\\n\\t},\\n\\tprevAll: function( elem ) {\\n\\t\\treturn dir( elem, \\\"previousSibling\\\" );\\n\\t},\\n\\tnextUntil: function( elem, i, until ) {\\n\\t\\treturn dir( elem, \\\"nextSibling\\\", until );\\n\\t},\\n\\tprevUntil: function( elem, i, until ) {\\n\\t\\treturn dir( elem, \\\"previousSibling\\\", until );\\n\\t},\\n\\tsiblings: function( elem ) {\\n\\t\\treturn siblings( ( elem.parentNode || {} ).firstChild, elem );\\n\\t},\\n\\tchildren: function( elem ) {\\n\\t\\treturn siblings( elem.firstChild );\\n\\t},\\n\\tcontents: function( elem ) {\\n\\t\\treturn elem.contentDocument || jQuery.merge( [], elem.childNodes );\\n\\t}\\n}, function( name, fn ) {\\n\\tjQuery.fn[ name ] = function( until, selector ) {\\n\\t\\tvar matched = jQuery.map( this, fn, until );\\n\\n\\t\\tif ( name.slice( -5 ) !== \\\"Until\\\" ) {\\n\\t\\t\\tselector = until;\\n\\t\\t}\\n\\n\\t\\tif ( selector && typeof selector === \\\"string\\\" ) {\\n\\t\\t\\tmatched = jQuery.filter( selector, matched );\\n\\t\\t}\\n\\n\\t\\tif ( this.length > 1 ) {\\n\\n\\t\\t\\t// Remove duplicates\\n\\t\\t\\tif ( !guaranteedUnique[ name ] ) {\\n\\t\\t\\t\\tjQuery.uniqueSort( matched );\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Reverse order for parents* and prev-derivatives\\n\\t\\t\\tif ( rparentsprev.test( name ) ) {\\n\\t\\t\\t\\tmatched.reverse();\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\treturn this.pushStack( matched );\\n\\t};\\n} );\\nvar rnothtmlwhite = ( /[^\\\\x20\\\\t\\\\r\\\\n\\\\f]+/g );\\n\\n\\n\\n// Convert String-formatted options into Object-formatted ones\\nfunction createOptions( options ) {\\n\\tvar object = {};\\n\\tjQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) {\\n\\t\\tobject[ flag ] = true;\\n\\t} );\\n\\treturn object;\\n}\\n\\n/*\\n * Create a callback list using the following parameters:\\n *\\n *\\toptions: an optional list of space-separated options that will change how\\n *\\t\\t\\tthe callback list behaves or a more traditional option object\\n *\\n * By default a callback list will act like an event callback list and can be\\n * \\\"fired\\\" multiple times.\\n *\\n * Possible options:\\n *\\n *\\tonce:\\t\\t\\twill ensure the callback list can only be fired once (like a Deferred)\\n *\\n *\\tmemory:\\t\\t\\twill keep track of previous values and will call any callback added\\n *\\t\\t\\t\\t\\tafter the list has been fired right away with the latest \\\"memorized\\\"\\n *\\t\\t\\t\\t\\tvalues (like a Deferred)\\n *\\n *\\tunique:\\t\\t\\twill ensure a callback can only be added once (no duplicate in the list)\\n *\\n *\\tstopOnFalse:\\tinterrupt callings when a callback returns false\\n *\\n */\\njQuery.Callbacks = function( options ) {\\n\\n\\t// Convert options from String-formatted to Object-formatted if needed\\n\\t// (we check in cache first)\\n\\toptions = typeof options === \\\"string\\\" ?\\n\\t\\tcreateOptions( options ) :\\n\\t\\tjQuery.extend( {}, options );\\n\\n\\tvar // Flag to know if list is currently firing\\n\\t\\tfiring,\\n\\n\\t\\t// Last fire value for non-forgettable lists\\n\\t\\tmemory,\\n\\n\\t\\t// Flag to know if list was already fired\\n\\t\\tfired,\\n\\n\\t\\t// Flag to prevent firing\\n\\t\\tlocked,\\n\\n\\t\\t// Actual callback list\\n\\t\\tlist = [],\\n\\n\\t\\t// Queue of execution data for repeatable lists\\n\\t\\tqueue = [],\\n\\n\\t\\t// Index of currently firing callback (modified by add/remove as needed)\\n\\t\\tfiringIndex = -1,\\n\\n\\t\\t// Fire callbacks\\n\\t\\tfire = function() {\\n\\n\\t\\t\\t// Enforce single-firing\\n\\t\\t\\tlocked = options.once;\\n\\n\\t\\t\\t// Execute callbacks for all pending executions,\\n\\t\\t\\t// respecting firingIndex overrides and runtime changes\\n\\t\\t\\tfired = firing = true;\\n\\t\\t\\tfor ( ; queue.length; firingIndex = -1 ) {\\n\\t\\t\\t\\tmemory = queue.shift();\\n\\t\\t\\t\\twhile ( ++firingIndex < list.length ) {\\n\\n\\t\\t\\t\\t\\t// Run callback and check for early termination\\n\\t\\t\\t\\t\\tif ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false &&\\n\\t\\t\\t\\t\\t\\toptions.stopOnFalse ) {\\n\\n\\t\\t\\t\\t\\t\\t// Jump to end and forget the data so .add doesn't re-fire\\n\\t\\t\\t\\t\\t\\tfiringIndex = list.length;\\n\\t\\t\\t\\t\\t\\tmemory = false;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Forget the data if we're done with it\\n\\t\\t\\tif ( !options.memory ) {\\n\\t\\t\\t\\tmemory = false;\\n\\t\\t\\t}\\n\\n\\t\\t\\tfiring = false;\\n\\n\\t\\t\\t// Clean up if we're done firing for good\\n\\t\\t\\tif ( locked ) {\\n\\n\\t\\t\\t\\t// Keep an empty list if we have data for future add calls\\n\\t\\t\\t\\tif ( memory ) {\\n\\t\\t\\t\\t\\tlist = [];\\n\\n\\t\\t\\t\\t// Otherwise, this object is spent\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\tlist = \\\"\\\";\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t},\\n\\n\\t\\t// Actual Callbacks object\\n\\t\\tself = {\\n\\n\\t\\t\\t// Add a callback or a collection of callbacks to the list\\n\\t\\t\\tadd: function() {\\n\\t\\t\\t\\tif ( list ) {\\n\\n\\t\\t\\t\\t\\t// If we have memory from a past run, we should fire after adding\\n\\t\\t\\t\\t\\tif ( memory && !firing ) {\\n\\t\\t\\t\\t\\t\\tfiringIndex = list.length - 1;\\n\\t\\t\\t\\t\\t\\tqueue.push( memory );\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t( function add( args ) {\\n\\t\\t\\t\\t\\t\\tjQuery.each( args, function( _, arg ) {\\n\\t\\t\\t\\t\\t\\t\\tif ( jQuery.isFunction( arg ) ) {\\n\\t\\t\\t\\t\\t\\t\\t\\tif ( !options.unique || !self.has( arg ) ) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tlist.push( arg );\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t} else if ( arg && arg.length && jQuery.type( arg ) !== \\\"string\\\" ) {\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t// Inspect recursively\\n\\t\\t\\t\\t\\t\\t\\t\\tadd( arg );\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t} );\\n\\t\\t\\t\\t\\t} )( arguments );\\n\\n\\t\\t\\t\\t\\tif ( memory && !firing ) {\\n\\t\\t\\t\\t\\t\\tfire();\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\treturn this;\\n\\t\\t\\t},\\n\\n\\t\\t\\t// Remove a callback from the list\\n\\t\\t\\tremove: function() {\\n\\t\\t\\t\\tjQuery.each( arguments, function( _, arg ) {\\n\\t\\t\\t\\t\\tvar index;\\n\\t\\t\\t\\t\\twhile ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {\\n\\t\\t\\t\\t\\t\\tlist.splice( index, 1 );\\n\\n\\t\\t\\t\\t\\t\\t// Handle firing indexes\\n\\t\\t\\t\\t\\t\\tif ( index <= firingIndex ) {\\n\\t\\t\\t\\t\\t\\t\\tfiringIndex--;\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t} );\\n\\t\\t\\t\\treturn this;\\n\\t\\t\\t},\\n\\n\\t\\t\\t// Check if a given callback is in the list.\\n\\t\\t\\t// If no argument is given, return whether or not list has callbacks attached.\\n\\t\\t\\thas: function( fn ) {\\n\\t\\t\\t\\treturn fn ?\\n\\t\\t\\t\\t\\tjQuery.inArray( fn, list ) > -1 :\\n\\t\\t\\t\\t\\tlist.length > 0;\\n\\t\\t\\t},\\n\\n\\t\\t\\t// Remove all callbacks from the list\\n\\t\\t\\tempty: function() {\\n\\t\\t\\t\\tif ( list ) {\\n\\t\\t\\t\\t\\tlist = [];\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\treturn this;\\n\\t\\t\\t},\\n\\n\\t\\t\\t// Disable .fire and .add\\n\\t\\t\\t// Abort any current/pending executions\\n\\t\\t\\t// Clear all callbacks and values\\n\\t\\t\\tdisable: function() {\\n\\t\\t\\t\\tlocked = queue = [];\\n\\t\\t\\t\\tlist = memory = \\\"\\\";\\n\\t\\t\\t\\treturn this;\\n\\t\\t\\t},\\n\\t\\t\\tdisabled: function() {\\n\\t\\t\\t\\treturn !list;\\n\\t\\t\\t},\\n\\n\\t\\t\\t// Disable .fire\\n\\t\\t\\t// Also disable .add unless we have memory (since it would have no effect)\\n\\t\\t\\t// Abort any pending executions\\n\\t\\t\\tlock: function() {\\n\\t\\t\\t\\tlocked = queue = [];\\n\\t\\t\\t\\tif ( !memory && !firing ) {\\n\\t\\t\\t\\t\\tlist = memory = \\\"\\\";\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\treturn this;\\n\\t\\t\\t},\\n\\t\\t\\tlocked: function() {\\n\\t\\t\\t\\treturn !!locked;\\n\\t\\t\\t},\\n\\n\\t\\t\\t// Call all callbacks with the given context and arguments\\n\\t\\t\\tfireWith: function( context, args ) {\\n\\t\\t\\t\\tif ( !locked ) {\\n\\t\\t\\t\\t\\targs = args || [];\\n\\t\\t\\t\\t\\targs = [ context, args.slice ? args.slice() : args ];\\n\\t\\t\\t\\t\\tqueue.push( args );\\n\\t\\t\\t\\t\\tif ( !firing ) {\\n\\t\\t\\t\\t\\t\\tfire();\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\treturn this;\\n\\t\\t\\t},\\n\\n\\t\\t\\t// Call all the callbacks with the given arguments\\n\\t\\t\\tfire: function() {\\n\\t\\t\\t\\tself.fireWith( this, arguments );\\n\\t\\t\\t\\treturn this;\\n\\t\\t\\t},\\n\\n\\t\\t\\t// To know if the callbacks have already been called at least once\\n\\t\\t\\tfired: function() {\\n\\t\\t\\t\\treturn !!fired;\\n\\t\\t\\t}\\n\\t\\t};\\n\\n\\treturn self;\\n};\\n\\n\\nfunction Identity( v ) {\\n\\treturn v;\\n}\\nfunction Thrower( ex ) {\\n\\tthrow ex;\\n}\\n\\nfunction adoptValue( value, resolve, reject ) {\\n\\tvar method;\\n\\n\\ttry {\\n\\n\\t\\t// Check for promise aspect first to privilege synchronous behavior\\n\\t\\tif ( value && jQuery.isFunction( ( method = value.promise ) ) ) {\\n\\t\\t\\tmethod.call( value ).done( resolve ).fail( reject );\\n\\n\\t\\t// Other thenables\\n\\t\\t} else if ( value && jQuery.isFunction( ( method = value.then ) ) ) {\\n\\t\\t\\tmethod.call( value, resolve, reject );\\n\\n\\t\\t// Other non-thenables\\n\\t\\t} else {\\n\\n\\t\\t\\t// Support: Android 4.0 only\\n\\t\\t\\t// Strict mode functions invoked without .call/.apply get global-object context\\n\\t\\t\\tresolve.call( undefined, value );\\n\\t\\t}\\n\\n\\t// For Promises/A+, convert exceptions into rejections\\n\\t// Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in\\n\\t// Deferred#then to conditionally suppress rejection.\\n\\t} catch ( value ) {\\n\\n\\t\\t// Support: Android 4.0 only\\n\\t\\t// Strict mode functions invoked without .call/.apply get global-object context\\n\\t\\treject.call( undefined, value );\\n\\t}\\n}\\n\\njQuery.extend( {\\n\\n\\tDeferred: function( func ) {\\n\\t\\tvar tuples = [\\n\\n\\t\\t\\t\\t// action, add listener, callbacks,\\n\\t\\t\\t\\t// ... .then handlers, argument index, [final state]\\n\\t\\t\\t\\t[ \\\"notify\\\", \\\"progress\\\", jQuery.Callbacks( \\\"memory\\\" ),\\n\\t\\t\\t\\t\\tjQuery.Callbacks( \\\"memory\\\" ), 2 ],\\n\\t\\t\\t\\t[ \\\"resolve\\\", \\\"done\\\", jQuery.Callbacks( \\\"once memory\\\" ),\\n\\t\\t\\t\\t\\tjQuery.Callbacks( \\\"once memory\\\" ), 0, \\\"resolved\\\" ],\\n\\t\\t\\t\\t[ \\\"reject\\\", \\\"fail\\\", jQuery.Callbacks( \\\"once memory\\\" ),\\n\\t\\t\\t\\t\\tjQuery.Callbacks( \\\"once memory\\\" ), 1, \\\"rejected\\\" ]\\n\\t\\t\\t],\\n\\t\\t\\tstate = \\\"pending\\\",\\n\\t\\t\\tpromise = {\\n\\t\\t\\t\\tstate: function() {\\n\\t\\t\\t\\t\\treturn state;\\n\\t\\t\\t\\t},\\n\\t\\t\\t\\talways: function() {\\n\\t\\t\\t\\t\\tdeferred.done( arguments ).fail( arguments );\\n\\t\\t\\t\\t\\treturn this;\\n\\t\\t\\t\\t},\\n\\t\\t\\t\\t\\\"catch\\\": function( fn ) {\\n\\t\\t\\t\\t\\treturn promise.then( null, fn );\\n\\t\\t\\t\\t},\\n\\n\\t\\t\\t\\t// Keep pipe for back-compat\\n\\t\\t\\t\\tpipe: function( /* fnDone, fnFail, fnProgress */ ) {\\n\\t\\t\\t\\t\\tvar fns = arguments;\\n\\n\\t\\t\\t\\t\\treturn jQuery.Deferred( function( newDefer ) {\\n\\t\\t\\t\\t\\t\\tjQuery.each( tuples, function( i, tuple ) {\\n\\n\\t\\t\\t\\t\\t\\t\\t// Map tuples (progress, done, fail) to arguments (done, fail, progress)\\n\\t\\t\\t\\t\\t\\t\\tvar fn = jQuery.isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ];\\n\\n\\t\\t\\t\\t\\t\\t\\t// deferred.progress(function() { bind to newDefer or newDefer.notify })\\n\\t\\t\\t\\t\\t\\t\\t// deferred.done(function() { bind to newDefer or newDefer.resolve })\\n\\t\\t\\t\\t\\t\\t\\t// deferred.fail(function() { bind to newDefer or newDefer.reject })\\n\\t\\t\\t\\t\\t\\t\\tdeferred[ tuple[ 1 ] ]( function() {\\n\\t\\t\\t\\t\\t\\t\\t\\tvar returned = fn && fn.apply( this, arguments );\\n\\t\\t\\t\\t\\t\\t\\t\\tif ( returned && jQuery.isFunction( returned.promise ) ) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\treturned.promise()\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t.progress( newDefer.notify )\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t.done( newDefer.resolve )\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t.fail( newDefer.reject );\\n\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tnewDefer[ tuple[ 0 ] + \\\"With\\\" ](\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tthis,\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tfn ? [ returned ] : arguments\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t);\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t} );\\n\\t\\t\\t\\t\\t\\t} );\\n\\t\\t\\t\\t\\t\\tfns = null;\\n\\t\\t\\t\\t\\t} ).promise();\\n\\t\\t\\t\\t},\\n\\t\\t\\t\\tthen: function( onFulfilled, onRejected, onProgress ) {\\n\\t\\t\\t\\t\\tvar maxDepth = 0;\\n\\t\\t\\t\\t\\tfunction resolve( depth, deferred, handler, special ) {\\n\\t\\t\\t\\t\\t\\treturn function() {\\n\\t\\t\\t\\t\\t\\t\\tvar that = this,\\n\\t\\t\\t\\t\\t\\t\\t\\targs = arguments,\\n\\t\\t\\t\\t\\t\\t\\t\\tmightThrow = function() {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tvar returned, then;\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t// Support: Promises/A+ section 2.3.3.3.3\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t// https://promisesaplus.com/#point-59\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t// Ignore double-resolution attempts\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif ( depth < maxDepth ) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\treturn;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\treturned = handler.apply( that, args );\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t// Support: Promises/A+ section 2.3.1\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t// https://promisesaplus.com/#point-48\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif ( returned === deferred.promise() ) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tthrow new TypeError( \\\"Thenable self-resolution\\\" );\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t// Support: Promises/A+ sections 2.3.3.1, 3.5\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t// https://promisesaplus.com/#point-54\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t// https://promisesaplus.com/#point-75\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t// Retrieve `then` only once\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tthen = returned &&\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// Support: Promises/A+ section 2.3.4\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// https://promisesaplus.com/#point-64\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// Only check objects and functions for thenability\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t( typeof returned === \\\"object\\\" ||\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\ttypeof returned === \\\"function\\\" ) &&\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\treturned.then;\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t// Handle a returned thenable\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif ( jQuery.isFunction( then ) ) {\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// Special processors (notify) just wait for resolution\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tif ( special ) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tthen.call(\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\treturned,\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tresolve( maxDepth, deferred, Identity, special ),\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tresolve( maxDepth, deferred, Thrower, special )\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t);\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// Normal processors (resolve) also hook into progress\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// ...and disregard older resolution values\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tmaxDepth++;\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tthen.call(\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\treturned,\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tresolve( maxDepth, deferred, Identity, special ),\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tresolve( maxDepth, deferred, Thrower, special ),\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tresolve( maxDepth, deferred, Identity,\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tdeferred.notifyWith )\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t// Handle all other returned values\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// Only substitute handlers pass on context\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// and multiple values (non-spec behavior)\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tif ( handler !== Identity ) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tthat = undefined;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\targs = [ returned ];\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// Process the value(s)\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// Default process is resolve\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t( special || deferred.resolveWith )( that, args );\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t\\t},\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t// Only normal processors (resolve) catch and reject exceptions\\n\\t\\t\\t\\t\\t\\t\\t\\tprocess = special ?\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tmightThrow :\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tfunction() {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\ttry {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tmightThrow();\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t} catch ( e ) {\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tif ( jQuery.Deferred.exceptionHook ) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjQuery.Deferred.exceptionHook( e,\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tprocess.stackTrace );\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// Support: Promises/A+ section 2.3.3.3.4.1\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// https://promisesaplus.com/#point-61\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// Ignore post-resolution exceptions\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tif ( depth + 1 >= maxDepth ) {\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// Only substitute handlers pass on context\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// and multiple values (non-spec behavior)\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tif ( handler !== Thrower ) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tthat = undefined;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\targs = [ e ];\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tdeferred.rejectWith( that, args );\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t};\\n\\n\\t\\t\\t\\t\\t\\t\\t// Support: Promises/A+ section 2.3.3.3.1\\n\\t\\t\\t\\t\\t\\t\\t// https://promisesaplus.com/#point-57\\n\\t\\t\\t\\t\\t\\t\\t// Re-resolve promises immediately to dodge false rejection from\\n\\t\\t\\t\\t\\t\\t\\t// subsequent errors\\n\\t\\t\\t\\t\\t\\t\\tif ( depth ) {\\n\\t\\t\\t\\t\\t\\t\\t\\tprocess();\\n\\t\\t\\t\\t\\t\\t\\t} else {\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t// Call an optional hook to record the stack, in case of exception\\n\\t\\t\\t\\t\\t\\t\\t\\t// since it's otherwise lost when execution goes async\\n\\t\\t\\t\\t\\t\\t\\t\\tif ( jQuery.Deferred.getStackHook ) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tprocess.stackTrace = jQuery.Deferred.getStackHook();\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t\\twindow.setTimeout( process );\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t};\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\treturn jQuery.Deferred( function( newDefer ) {\\n\\n\\t\\t\\t\\t\\t\\t// progress_handlers.add( ... )\\n\\t\\t\\t\\t\\t\\ttuples[ 0 ][ 3 ].add(\\n\\t\\t\\t\\t\\t\\t\\tresolve(\\n\\t\\t\\t\\t\\t\\t\\t\\t0,\\n\\t\\t\\t\\t\\t\\t\\t\\tnewDefer,\\n\\t\\t\\t\\t\\t\\t\\t\\tjQuery.isFunction( onProgress ) ?\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tonProgress :\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tIdentity,\\n\\t\\t\\t\\t\\t\\t\\t\\tnewDefer.notifyWith\\n\\t\\t\\t\\t\\t\\t\\t)\\n\\t\\t\\t\\t\\t\\t);\\n\\n\\t\\t\\t\\t\\t\\t// fulfilled_handlers.add( ... )\\n\\t\\t\\t\\t\\t\\ttuples[ 1 ][ 3 ].add(\\n\\t\\t\\t\\t\\t\\t\\tresolve(\\n\\t\\t\\t\\t\\t\\t\\t\\t0,\\n\\t\\t\\t\\t\\t\\t\\t\\tnewDefer,\\n\\t\\t\\t\\t\\t\\t\\t\\tjQuery.isFunction( onFulfilled ) ?\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tonFulfilled :\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tIdentity\\n\\t\\t\\t\\t\\t\\t\\t)\\n\\t\\t\\t\\t\\t\\t);\\n\\n\\t\\t\\t\\t\\t\\t// rejected_handlers.add( ... )\\n\\t\\t\\t\\t\\t\\ttuples[ 2 ][ 3 ].add(\\n\\t\\t\\t\\t\\t\\t\\tresolve(\\n\\t\\t\\t\\t\\t\\t\\t\\t0,\\n\\t\\t\\t\\t\\t\\t\\t\\tnewDefer,\\n\\t\\t\\t\\t\\t\\t\\t\\tjQuery.isFunction( onRejected ) ?\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tonRejected :\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tThrower\\n\\t\\t\\t\\t\\t\\t\\t)\\n\\t\\t\\t\\t\\t\\t);\\n\\t\\t\\t\\t\\t} ).promise();\\n\\t\\t\\t\\t},\\n\\n\\t\\t\\t\\t// Get a promise for this deferred\\n\\t\\t\\t\\t// If obj is provided, the promise aspect is added to the object\\n\\t\\t\\t\\tpromise: function( obj ) {\\n\\t\\t\\t\\t\\treturn obj != null ? jQuery.extend( obj, promise ) : promise;\\n\\t\\t\\t\\t}\\n\\t\\t\\t},\\n\\t\\t\\tdeferred = {};\\n\\n\\t\\t// Add list-specific methods\\n\\t\\tjQuery.each( tuples, function( i, tuple ) {\\n\\t\\t\\tvar list = tuple[ 2 ],\\n\\t\\t\\t\\tstateString = tuple[ 5 ];\\n\\n\\t\\t\\t// promise.progress = list.add\\n\\t\\t\\t// promise.done = list.add\\n\\t\\t\\t// promise.fail = list.add\\n\\t\\t\\tpromise[ tuple[ 1 ] ] = list.add;\\n\\n\\t\\t\\t// Handle state\\n\\t\\t\\tif ( stateString ) {\\n\\t\\t\\t\\tlist.add(\\n\\t\\t\\t\\t\\tfunction() {\\n\\n\\t\\t\\t\\t\\t\\t// state = \\\"resolved\\\" (i.e., fulfilled)\\n\\t\\t\\t\\t\\t\\t// state = \\\"rejected\\\"\\n\\t\\t\\t\\t\\t\\tstate = stateString;\\n\\t\\t\\t\\t\\t},\\n\\n\\t\\t\\t\\t\\t// rejected_callbacks.disable\\n\\t\\t\\t\\t\\t// fulfilled_callbacks.disable\\n\\t\\t\\t\\t\\ttuples[ 3 - i ][ 2 ].disable,\\n\\n\\t\\t\\t\\t\\t// progress_callbacks.lock\\n\\t\\t\\t\\t\\ttuples[ 0 ][ 2 ].lock\\n\\t\\t\\t\\t);\\n\\t\\t\\t}\\n\\n\\t\\t\\t// progress_handlers.fire\\n\\t\\t\\t// fulfilled_handlers.fire\\n\\t\\t\\t// rejected_handlers.fire\\n\\t\\t\\tlist.add( tuple[ 3 ].fire );\\n\\n\\t\\t\\t// deferred.notify = function() { deferred.notifyWith(...) }\\n\\t\\t\\t// deferred.resolve = function() { deferred.resolveWith(...) }\\n\\t\\t\\t// deferred.reject = function() { deferred.rejectWith(...) }\\n\\t\\t\\tdeferred[ tuple[ 0 ] ] = function() {\\n\\t\\t\\t\\tdeferred[ tuple[ 0 ] + \\\"With\\\" ]( this === deferred ? undefined : this, arguments );\\n\\t\\t\\t\\treturn this;\\n\\t\\t\\t};\\n\\n\\t\\t\\t// deferred.notifyWith = list.fireWith\\n\\t\\t\\t// deferred.resolveWith = list.fireWith\\n\\t\\t\\t// deferred.rejectWith = list.fireWith\\n\\t\\t\\tdeferred[ tuple[ 0 ] + \\\"With\\\" ] = list.fireWith;\\n\\t\\t} );\\n\\n\\t\\t// Make the deferred a promise\\n\\t\\tpromise.promise( deferred );\\n\\n\\t\\t// Call given func if any\\n\\t\\tif ( func ) {\\n\\t\\t\\tfunc.call( deferred, deferred );\\n\\t\\t}\\n\\n\\t\\t// All done!\\n\\t\\treturn deferred;\\n\\t},\\n\\n\\t// Deferred helper\\n\\twhen: function( singleValue ) {\\n\\t\\tvar\\n\\n\\t\\t\\t// count of uncompleted subordinates\\n\\t\\t\\tremaining = arguments.length,\\n\\n\\t\\t\\t// count of unprocessed arguments\\n\\t\\t\\ti = remaining,\\n\\n\\t\\t\\t// subordinate fulfillment data\\n\\t\\t\\tresolveContexts = Array( i ),\\n\\t\\t\\tresolveValues = slice.call( arguments ),\\n\\n\\t\\t\\t// the master Deferred\\n\\t\\t\\tmaster = jQuery.Deferred(),\\n\\n\\t\\t\\t// subordinate callback factory\\n\\t\\t\\tupdateFunc = function( i ) {\\n\\t\\t\\t\\treturn function( value ) {\\n\\t\\t\\t\\t\\tresolveContexts[ i ] = this;\\n\\t\\t\\t\\t\\tresolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;\\n\\t\\t\\t\\t\\tif ( !( --remaining ) ) {\\n\\t\\t\\t\\t\\t\\tmaster.resolveWith( resolveContexts, resolveValues );\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t};\\n\\t\\t\\t};\\n\\n\\t\\t// Single- and empty arguments are adopted like Promise.resolve\\n\\t\\tif ( remaining <= 1 ) {\\n\\t\\t\\tadoptValue( singleValue, master.done( updateFunc( i ) ).resolve, master.reject );\\n\\n\\t\\t\\t// Use .then() to unwrap secondary thenables (cf. gh-3000)\\n\\t\\t\\tif ( master.state() === \\\"pending\\\" ||\\n\\t\\t\\t\\tjQuery.isFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) {\\n\\n\\t\\t\\t\\treturn master.then();\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\t// Multiple arguments are aggregated like Promise.all array elements\\n\\t\\twhile ( i-- ) {\\n\\t\\t\\tadoptValue( resolveValues[ i ], updateFunc( i ), master.reject );\\n\\t\\t}\\n\\n\\t\\treturn master.promise();\\n\\t}\\n} );\\n\\n\\n// These usually indicate a programmer mistake during development,\\n// warn about them ASAP rather than swallowing them by default.\\nvar rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;\\n\\njQuery.Deferred.exceptionHook = function( error, stack ) {\\n\\n\\t// Support: IE 8 - 9 only\\n\\t// Console exists when dev tools are open, which can happen at any time\\n\\tif ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) {\\n\\t\\twindow.console.warn( \\\"jQuery.Deferred exception: \\\" + error.message, error.stack, stack );\\n\\t}\\n};\\n\\n\\n\\n\\njQuery.readyException = function( error ) {\\n\\twindow.setTimeout( function() {\\n\\t\\tthrow error;\\n\\t} );\\n};\\n\\n\\n\\n\\n// The deferred used on DOM ready\\nvar readyList = jQuery.Deferred();\\n\\njQuery.fn.ready = function( fn ) {\\n\\n\\treadyList\\n\\t\\t.then( fn )\\n\\n\\t\\t// Wrap jQuery.readyException in a function so that the lookup\\n\\t\\t// happens at the time of error handling instead of callback\\n\\t\\t// registration.\\n\\t\\t.catch( function( error ) {\\n\\t\\t\\tjQuery.readyException( error );\\n\\t\\t} );\\n\\n\\treturn this;\\n};\\n\\njQuery.extend( {\\n\\n\\t// Is the DOM ready to be used? Set to true once it occurs.\\n\\tisReady: false,\\n\\n\\t// A counter to track how many items to wait for before\\n\\t// the ready event fires. See #6781\\n\\treadyWait: 1,\\n\\n\\t// Hold (or release) the ready event\\n\\tholdReady: function( hold ) {\\n\\t\\tif ( hold ) {\\n\\t\\t\\tjQuery.readyWait++;\\n\\t\\t} else {\\n\\t\\t\\tjQuery.ready( true );\\n\\t\\t}\\n\\t},\\n\\n\\t// Handle when the DOM is ready\\n\\tready: function( wait ) {\\n\\n\\t\\t// Abort if there are pending holds or we're already ready\\n\\t\\tif ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\t// Remember that the DOM is ready\\n\\t\\tjQuery.isReady = true;\\n\\n\\t\\t// If a normal DOM Ready event fired, decrement, and wait if need be\\n\\t\\tif ( wait !== true && --jQuery.readyWait > 0 ) {\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\t// If there are functions bound, to execute\\n\\t\\treadyList.resolveWith( document, [ jQuery ] );\\n\\t}\\n} );\\n\\njQuery.ready.then = readyList.then;\\n\\n// The ready event handler and self cleanup method\\nfunction completed() {\\n\\tdocument.removeEventListener( \\\"DOMContentLoaded\\\", completed );\\n\\twindow.removeEventListener( \\\"load\\\", completed );\\n\\tjQuery.ready();\\n}\\n\\n// Catch cases where $(document).ready() is called\\n// after the browser event has already occurred.\\n// Support: IE <=9 - 10 only\\n// Older IE sometimes signals \\\"interactive\\\" too soon\\nif ( document.readyState === \\\"complete\\\" ||\\n\\t( document.readyState !== \\\"loading\\\" && !document.documentElement.doScroll ) ) {\\n\\n\\t// Handle it asynchronously to allow scripts the opportunity to delay ready\\n\\twindow.setTimeout( jQuery.ready );\\n\\n} else {\\n\\n\\t// Use the handy event callback\\n\\tdocument.addEventListener( \\\"DOMContentLoaded\\\", completed );\\n\\n\\t// A fallback to window.onload, that will always work\\n\\twindow.addEventListener( \\\"load\\\", completed );\\n}\\n\\n\\n\\n\\n// Multifunctional method to get and set values of a collection\\n// The value/s can optionally be executed if it's a function\\nvar access = function( elems, fn, key, value, chainable, emptyGet, raw ) {\\n\\tvar i = 0,\\n\\t\\tlen = elems.length,\\n\\t\\tbulk = key == null;\\n\\n\\t// Sets many values\\n\\tif ( jQuery.type( key ) === \\\"object\\\" ) {\\n\\t\\tchainable = true;\\n\\t\\tfor ( i in key ) {\\n\\t\\t\\taccess( elems, fn, i, key[ i ], true, emptyGet, raw );\\n\\t\\t}\\n\\n\\t// Sets one value\\n\\t} else if ( value !== undefined ) {\\n\\t\\tchainable = true;\\n\\n\\t\\tif ( !jQuery.isFunction( value ) ) {\\n\\t\\t\\traw = true;\\n\\t\\t}\\n\\n\\t\\tif ( bulk ) {\\n\\n\\t\\t\\t// Bulk operations run against the entire set\\n\\t\\t\\tif ( raw ) {\\n\\t\\t\\t\\tfn.call( elems, value );\\n\\t\\t\\t\\tfn = null;\\n\\n\\t\\t\\t// ...except when executing function values\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tbulk = fn;\\n\\t\\t\\t\\tfn = function( elem, key, value ) {\\n\\t\\t\\t\\t\\treturn bulk.call( jQuery( elem ), value );\\n\\t\\t\\t\\t};\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\tif ( fn ) {\\n\\t\\t\\tfor ( ; i < len; i++ ) {\\n\\t\\t\\t\\tfn(\\n\\t\\t\\t\\t\\telems[ i ], key, raw ?\\n\\t\\t\\t\\t\\tvalue :\\n\\t\\t\\t\\t\\tvalue.call( elems[ i ], i, fn( elems[ i ], key ) )\\n\\t\\t\\t\\t);\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n\\n\\tif ( chainable ) {\\n\\t\\treturn elems;\\n\\t}\\n\\n\\t// Gets\\n\\tif ( bulk ) {\\n\\t\\treturn fn.call( elems );\\n\\t}\\n\\n\\treturn len ? fn( elems[ 0 ], key ) : emptyGet;\\n};\\nvar acceptData = function( owner ) {\\n\\n\\t// Accepts only:\\n\\t//  - Node\\n\\t//    - Node.ELEMENT_NODE\\n\\t//    - Node.DOCUMENT_NODE\\n\\t//  - Object\\n\\t//    - Any\\n\\treturn owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );\\n};\\n\\n\\n\\n\\nfunction Data() {\\n\\tthis.expando = jQuery.expando + Data.uid++;\\n}\\n\\nData.uid = 1;\\n\\nData.prototype = {\\n\\n\\tcache: function( owner ) {\\n\\n\\t\\t// Check if the owner object already has a cache\\n\\t\\tvar value = owner[ this.expando ];\\n\\n\\t\\t// If not, create one\\n\\t\\tif ( !value ) {\\n\\t\\t\\tvalue = {};\\n\\n\\t\\t\\t// We can accept data for non-element nodes in modern browsers,\\n\\t\\t\\t// but we should not, see #8335.\\n\\t\\t\\t// Always return an empty object.\\n\\t\\t\\tif ( acceptData( owner ) ) {\\n\\n\\t\\t\\t\\t// If it is a node unlikely to be stringify-ed or looped over\\n\\t\\t\\t\\t// use plain assignment\\n\\t\\t\\t\\tif ( owner.nodeType ) {\\n\\t\\t\\t\\t\\towner[ this.expando ] = value;\\n\\n\\t\\t\\t\\t// Otherwise secure it in a non-enumerable property\\n\\t\\t\\t\\t// configurable must be true to allow the property to be\\n\\t\\t\\t\\t// deleted when data is removed\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\tObject.defineProperty( owner, this.expando, {\\n\\t\\t\\t\\t\\t\\tvalue: value,\\n\\t\\t\\t\\t\\t\\tconfigurable: true\\n\\t\\t\\t\\t\\t} );\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\treturn value;\\n\\t},\\n\\tset: function( owner, data, value ) {\\n\\t\\tvar prop,\\n\\t\\t\\tcache = this.cache( owner );\\n\\n\\t\\t// Handle: [ owner, key, value ] args\\n\\t\\t// Always use camelCase key (gh-2257)\\n\\t\\tif ( typeof data === \\\"string\\\" ) {\\n\\t\\t\\tcache[ jQuery.camelCase( data ) ] = value;\\n\\n\\t\\t// Handle: [ owner, { properties } ] args\\n\\t\\t} else {\\n\\n\\t\\t\\t// Copy the properties one-by-one to the cache object\\n\\t\\t\\tfor ( prop in data ) {\\n\\t\\t\\t\\tcache[ jQuery.camelCase( prop ) ] = data[ prop ];\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\treturn cache;\\n\\t},\\n\\tget: function( owner, key ) {\\n\\t\\treturn key === undefined ?\\n\\t\\t\\tthis.cache( owner ) :\\n\\n\\t\\t\\t// Always use camelCase key (gh-2257)\\n\\t\\t\\towner[ this.expando ] && owner[ this.expando ][ jQuery.camelCase( key ) ];\\n\\t},\\n\\taccess: function( owner, key, value ) {\\n\\n\\t\\t// In cases where either:\\n\\t\\t//\\n\\t\\t//   1. No key was specified\\n\\t\\t//   2. A string key was specified, but no value provided\\n\\t\\t//\\n\\t\\t// Take the \\\"read\\\" path and allow the get method to determine\\n\\t\\t// which value to return, respectively either:\\n\\t\\t//\\n\\t\\t//   1. The entire cache object\\n\\t\\t//   2. The data stored at the key\\n\\t\\t//\\n\\t\\tif ( key === undefined ||\\n\\t\\t\\t\\t( ( key && typeof key === \\\"string\\\" ) && value === undefined ) ) {\\n\\n\\t\\t\\treturn this.get( owner, key );\\n\\t\\t}\\n\\n\\t\\t// When the key is not a string, or both a key and value\\n\\t\\t// are specified, set or extend (existing objects) with either:\\n\\t\\t//\\n\\t\\t//   1. An object of properties\\n\\t\\t//   2. A key and value\\n\\t\\t//\\n\\t\\tthis.set( owner, key, value );\\n\\n\\t\\t// Since the \\\"set\\\" path can have two possible entry points\\n\\t\\t// return the expected data based on which path was taken[*]\\n\\t\\treturn value !== undefined ? value : key;\\n\\t},\\n\\tremove: function( owner, key ) {\\n\\t\\tvar i,\\n\\t\\t\\tcache = owner[ this.expando ];\\n\\n\\t\\tif ( cache === undefined ) {\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\tif ( key !== undefined ) {\\n\\n\\t\\t\\t// Support array or space separated string of keys\\n\\t\\t\\tif ( jQuery.isArray( key ) ) {\\n\\n\\t\\t\\t\\t// If key is an array of keys...\\n\\t\\t\\t\\t// We always set camelCase keys, so remove that.\\n\\t\\t\\t\\tkey = key.map( jQuery.camelCase );\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tkey = jQuery.camelCase( key );\\n\\n\\t\\t\\t\\t// If a key with the spaces exists, use it.\\n\\t\\t\\t\\t// Otherwise, create an array by matching non-whitespace\\n\\t\\t\\t\\tkey = key in cache ?\\n\\t\\t\\t\\t\\t[ key ] :\\n\\t\\t\\t\\t\\t( key.match( rnothtmlwhite ) || [] );\\n\\t\\t\\t}\\n\\n\\t\\t\\ti = key.length;\\n\\n\\t\\t\\twhile ( i-- ) {\\n\\t\\t\\t\\tdelete cache[ key[ i ] ];\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\t// Remove the expando if there's no more data\\n\\t\\tif ( key === undefined || jQuery.isEmptyObject( cache ) ) {\\n\\n\\t\\t\\t// Support: Chrome <=35 - 45\\n\\t\\t\\t// Webkit & Blink performance suffers when deleting properties\\n\\t\\t\\t// from DOM nodes, so set to undefined instead\\n\\t\\t\\t// https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted)\\n\\t\\t\\tif ( owner.nodeType ) {\\n\\t\\t\\t\\towner[ this.expando ] = undefined;\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tdelete owner[ this.expando ];\\n\\t\\t\\t}\\n\\t\\t}\\n\\t},\\n\\thasData: function( owner ) {\\n\\t\\tvar cache = owner[ this.expando ];\\n\\t\\treturn cache !== undefined && !jQuery.isEmptyObject( cache );\\n\\t}\\n};\\nvar dataPriv = new Data();\\n\\nvar dataUser = new Data();\\n\\n\\n\\n//\\tImplementation Summary\\n//\\n//\\t1. Enforce API surface and semantic compatibility with 1.9.x branch\\n//\\t2. Improve the module's maintainability by reducing the storage\\n//\\t\\tpaths to a single mechanism.\\n//\\t3. Use the same single mechanism to support \\\"private\\\" and \\\"user\\\" data.\\n//\\t4. _Never_ expose \\\"private\\\" data to user code (TODO: Drop _data, _removeData)\\n//\\t5. Avoid exposing implementation details on user objects (eg. expando properties)\\n//\\t6. Provide a clear path for implementation upgrade to WeakMap in 2014\\n\\nvar rbrace = /^(?:\\\\{[\\\\w\\\\W]*\\\\}|\\\\[[\\\\w\\\\W]*\\\\])$/,\\n\\trmultiDash = /[A-Z]/g;\\n\\nfunction getData( data ) {\\n\\tif ( data === \\\"true\\\" ) {\\n\\t\\treturn true;\\n\\t}\\n\\n\\tif ( data === \\\"false\\\" ) {\\n\\t\\treturn false;\\n\\t}\\n\\n\\tif ( data === \\\"null\\\" ) {\\n\\t\\treturn null;\\n\\t}\\n\\n\\t// Only convert to a number if it doesn't change the string\\n\\tif ( data === +data + \\\"\\\" ) {\\n\\t\\treturn +data;\\n\\t}\\n\\n\\tif ( rbrace.test( data ) ) {\\n\\t\\treturn JSON.parse( data );\\n\\t}\\n\\n\\treturn data;\\n}\\n\\nfunction dataAttr( elem, key, data ) {\\n\\tvar name;\\n\\n\\t// If nothing was found internally, try to fetch any\\n\\t// data from the HTML5 data-* attribute\\n\\tif ( data === undefined && elem.nodeType === 1 ) {\\n\\t\\tname = \\\"data-\\\" + key.replace( rmultiDash, \\\"-$&\\\" ).toLowerCase();\\n\\t\\tdata = elem.getAttribute( name );\\n\\n\\t\\tif ( typeof data === \\\"string\\\" ) {\\n\\t\\t\\ttry {\\n\\t\\t\\t\\tdata = getData( data );\\n\\t\\t\\t} catch ( e ) {}\\n\\n\\t\\t\\t// Make sure we set the data so it isn't changed later\\n\\t\\t\\tdataUser.set( elem, key, data );\\n\\t\\t} else {\\n\\t\\t\\tdata = undefined;\\n\\t\\t}\\n\\t}\\n\\treturn data;\\n}\\n\\njQuery.extend( {\\n\\thasData: function( elem ) {\\n\\t\\treturn dataUser.hasData( elem ) || dataPriv.hasData( elem );\\n\\t},\\n\\n\\tdata: function( elem, name, data ) {\\n\\t\\treturn dataUser.access( elem, name, data );\\n\\t},\\n\\n\\tremoveData: function( elem, name ) {\\n\\t\\tdataUser.remove( elem, name );\\n\\t},\\n\\n\\t// TODO: Now that all calls to _data and _removeData have been replaced\\n\\t// with direct calls to dataPriv methods, these can be deprecated.\\n\\t_data: function( elem, name, data ) {\\n\\t\\treturn dataPriv.access( elem, name, data );\\n\\t},\\n\\n\\t_removeData: function( elem, name ) {\\n\\t\\tdataPriv.remove( elem, name );\\n\\t}\\n} );\\n\\njQuery.fn.extend( {\\n\\tdata: function( key, value ) {\\n\\t\\tvar i, name, data,\\n\\t\\t\\telem = this[ 0 ],\\n\\t\\t\\tattrs = elem && elem.attributes;\\n\\n\\t\\t// Gets all values\\n\\t\\tif ( key === undefined ) {\\n\\t\\t\\tif ( this.length ) {\\n\\t\\t\\t\\tdata = dataUser.get( elem );\\n\\n\\t\\t\\t\\tif ( elem.nodeType === 1 && !dataPriv.get( elem, \\\"hasDataAttrs\\\" ) ) {\\n\\t\\t\\t\\t\\ti = attrs.length;\\n\\t\\t\\t\\t\\twhile ( i-- ) {\\n\\n\\t\\t\\t\\t\\t\\t// Support: IE 11 only\\n\\t\\t\\t\\t\\t\\t// The attrs elements can be null (#14894)\\n\\t\\t\\t\\t\\t\\tif ( attrs[ i ] ) {\\n\\t\\t\\t\\t\\t\\t\\tname = attrs[ i ].name;\\n\\t\\t\\t\\t\\t\\t\\tif ( name.indexOf( \\\"data-\\\" ) === 0 ) {\\n\\t\\t\\t\\t\\t\\t\\t\\tname = jQuery.camelCase( name.slice( 5 ) );\\n\\t\\t\\t\\t\\t\\t\\t\\tdataAttr( elem, name, data[ name ] );\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\tdataPriv.set( elem, \\\"hasDataAttrs\\\", true );\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\n\\t\\t\\treturn data;\\n\\t\\t}\\n\\n\\t\\t// Sets multiple values\\n\\t\\tif ( typeof key === \\\"object\\\" ) {\\n\\t\\t\\treturn this.each( function() {\\n\\t\\t\\t\\tdataUser.set( this, key );\\n\\t\\t\\t} );\\n\\t\\t}\\n\\n\\t\\treturn access( this, function( value ) {\\n\\t\\t\\tvar data;\\n\\n\\t\\t\\t// The calling jQuery object (element matches) is not empty\\n\\t\\t\\t// (and therefore has an element appears at this[ 0 ]) and the\\n\\t\\t\\t// `value` parameter was not undefined. An empty jQuery object\\n\\t\\t\\t// will result in `undefined` for elem = this[ 0 ] which will\\n\\t\\t\\t// throw an exception if an attempt to read a data cache is made.\\n\\t\\t\\tif ( elem && value === undefined ) {\\n\\n\\t\\t\\t\\t// Attempt to get data from the cache\\n\\t\\t\\t\\t// The key will always be camelCased in Data\\n\\t\\t\\t\\tdata = dataUser.get( elem, key );\\n\\t\\t\\t\\tif ( data !== undefined ) {\\n\\t\\t\\t\\t\\treturn data;\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t// Attempt to \\\"discover\\\" the data in\\n\\t\\t\\t\\t// HTML5 custom data-* attrs\\n\\t\\t\\t\\tdata = dataAttr( elem, key );\\n\\t\\t\\t\\tif ( data !== undefined ) {\\n\\t\\t\\t\\t\\treturn data;\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t// We tried really hard, but the data doesn't exist.\\n\\t\\t\\t\\treturn;\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Set the data...\\n\\t\\t\\tthis.each( function() {\\n\\n\\t\\t\\t\\t// We always store the camelCased key\\n\\t\\t\\t\\tdataUser.set( this, key, value );\\n\\t\\t\\t} );\\n\\t\\t}, null, value, arguments.length > 1, null, true );\\n\\t},\\n\\n\\tremoveData: function( key ) {\\n\\t\\treturn this.each( function() {\\n\\t\\t\\tdataUser.remove( this, key );\\n\\t\\t} );\\n\\t}\\n} );\\n\\n\\njQuery.extend( {\\n\\tqueue: function( elem, type, data ) {\\n\\t\\tvar queue;\\n\\n\\t\\tif ( elem ) {\\n\\t\\t\\ttype = ( type || \\\"fx\\\" ) + \\\"queue\\\";\\n\\t\\t\\tqueue = dataPriv.get( elem, type );\\n\\n\\t\\t\\t// Speed up dequeue by getting out quickly if this is just a lookup\\n\\t\\t\\tif ( data ) {\\n\\t\\t\\t\\tif ( !queue || jQuery.isArray( data ) ) {\\n\\t\\t\\t\\t\\tqueue = dataPriv.access( elem, type, jQuery.makeArray( data ) );\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\tqueue.push( data );\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t\\treturn queue || [];\\n\\t\\t}\\n\\t},\\n\\n\\tdequeue: function( elem, type ) {\\n\\t\\ttype = type || \\\"fx\\\";\\n\\n\\t\\tvar queue = jQuery.queue( elem, type ),\\n\\t\\t\\tstartLength = queue.length,\\n\\t\\t\\tfn = queue.shift(),\\n\\t\\t\\thooks = jQuery._queueHooks( elem, type ),\\n\\t\\t\\tnext = function() {\\n\\t\\t\\t\\tjQuery.dequeue( elem, type );\\n\\t\\t\\t};\\n\\n\\t\\t// If the fx queue is dequeued, always remove the progress sentinel\\n\\t\\tif ( fn === \\\"inprogress\\\" ) {\\n\\t\\t\\tfn = queue.shift();\\n\\t\\t\\tstartLength--;\\n\\t\\t}\\n\\n\\t\\tif ( fn ) {\\n\\n\\t\\t\\t// Add a progress sentinel to prevent the fx queue from being\\n\\t\\t\\t// automatically dequeued\\n\\t\\t\\tif ( type === \\\"fx\\\" ) {\\n\\t\\t\\t\\tqueue.unshift( \\\"inprogress\\\" );\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Clear up the last queue stop function\\n\\t\\t\\tdelete hooks.stop;\\n\\t\\t\\tfn.call( elem, next, hooks );\\n\\t\\t}\\n\\n\\t\\tif ( !startLength && hooks ) {\\n\\t\\t\\thooks.empty.fire();\\n\\t\\t}\\n\\t},\\n\\n\\t// Not public - generate a queueHooks object, or return the current one\\n\\t_queueHooks: function( elem, type ) {\\n\\t\\tvar key = type + \\\"queueHooks\\\";\\n\\t\\treturn dataPriv.get( elem, key ) || dataPriv.access( elem, key, {\\n\\t\\t\\tempty: jQuery.Callbacks( \\\"once memory\\\" ).add( function() {\\n\\t\\t\\t\\tdataPriv.remove( elem, [ type + \\\"queue\\\", key ] );\\n\\t\\t\\t} )\\n\\t\\t} );\\n\\t}\\n} );\\n\\njQuery.fn.extend( {\\n\\tqueue: function( type, data ) {\\n\\t\\tvar setter = 2;\\n\\n\\t\\tif ( typeof type !== \\\"string\\\" ) {\\n\\t\\t\\tdata = type;\\n\\t\\t\\ttype = \\\"fx\\\";\\n\\t\\t\\tsetter--;\\n\\t\\t}\\n\\n\\t\\tif ( arguments.length < setter ) {\\n\\t\\t\\treturn jQuery.queue( this[ 0 ], type );\\n\\t\\t}\\n\\n\\t\\treturn data === undefined ?\\n\\t\\t\\tthis :\\n\\t\\t\\tthis.each( function() {\\n\\t\\t\\t\\tvar queue = jQuery.queue( this, type, data );\\n\\n\\t\\t\\t\\t// Ensure a hooks for this queue\\n\\t\\t\\t\\tjQuery._queueHooks( this, type );\\n\\n\\t\\t\\t\\tif ( type === \\\"fx\\\" && queue[ 0 ] !== \\\"inprogress\\\" ) {\\n\\t\\t\\t\\t\\tjQuery.dequeue( this, type );\\n\\t\\t\\t\\t}\\n\\t\\t\\t} );\\n\\t},\\n\\tdequeue: function( type ) {\\n\\t\\treturn this.each( function() {\\n\\t\\t\\tjQuery.dequeue( this, type );\\n\\t\\t} );\\n\\t},\\n\\tclearQueue: function( type ) {\\n\\t\\treturn this.queue( type || \\\"fx\\\", [] );\\n\\t},\\n\\n\\t// Get a promise resolved when queues of a certain type\\n\\t// are emptied (fx is the type by default)\\n\\tpromise: function( type, obj ) {\\n\\t\\tvar tmp,\\n\\t\\t\\tcount = 1,\\n\\t\\t\\tdefer = jQuery.Deferred(),\\n\\t\\t\\telements = this,\\n\\t\\t\\ti = this.length,\\n\\t\\t\\tresolve = function() {\\n\\t\\t\\t\\tif ( !( --count ) ) {\\n\\t\\t\\t\\t\\tdefer.resolveWith( elements, [ elements ] );\\n\\t\\t\\t\\t}\\n\\t\\t\\t};\\n\\n\\t\\tif ( typeof type !== \\\"string\\\" ) {\\n\\t\\t\\tobj = type;\\n\\t\\t\\ttype = undefined;\\n\\t\\t}\\n\\t\\ttype = type || \\\"fx\\\";\\n\\n\\t\\twhile ( i-- ) {\\n\\t\\t\\ttmp = dataPriv.get( elements[ i ], type + \\\"queueHooks\\\" );\\n\\t\\t\\tif ( tmp && tmp.empty ) {\\n\\t\\t\\t\\tcount++;\\n\\t\\t\\t\\ttmp.empty.add( resolve );\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tresolve();\\n\\t\\treturn defer.promise( obj );\\n\\t}\\n} );\\nvar pnum = ( /[+-]?(?:\\\\d*\\\\.|)\\\\d+(?:[eE][+-]?\\\\d+|)/ ).source;\\n\\nvar rcssNum = new RegExp( \\\"^(?:([+-])=|)(\\\" + pnum + \\\")([a-z%]*)$\\\", \\\"i\\\" );\\n\\n\\nvar cssExpand = [ \\\"Top\\\", \\\"Right\\\", \\\"Bottom\\\", \\\"Left\\\" ];\\n\\nvar isHiddenWithinTree = function( elem, el ) {\\n\\n\\t\\t// isHiddenWithinTree might be called from jQuery#filter function;\\n\\t\\t// in that case, element will be second argument\\n\\t\\telem = el || elem;\\n\\n\\t\\t// Inline style trumps all\\n\\t\\treturn elem.style.display === \\\"none\\\" ||\\n\\t\\t\\telem.style.display === \\\"\\\" &&\\n\\n\\t\\t\\t// Otherwise, check computed style\\n\\t\\t\\t// Support: Firefox <=43 - 45\\n\\t\\t\\t// Disconnected elements can have computed display: none, so first confirm that elem is\\n\\t\\t\\t// in the document.\\n\\t\\t\\tjQuery.contains( elem.ownerDocument, elem ) &&\\n\\n\\t\\t\\tjQuery.css( elem, \\\"display\\\" ) === \\\"none\\\";\\n\\t};\\n\\nvar swap = function( elem, options, callback, args ) {\\n\\tvar ret, name,\\n\\t\\told = {};\\n\\n\\t// Remember the old values, and insert the new ones\\n\\tfor ( name in options ) {\\n\\t\\told[ name ] = elem.style[ name ];\\n\\t\\telem.style[ name ] = options[ name ];\\n\\t}\\n\\n\\tret = callback.apply( elem, args || [] );\\n\\n\\t// Revert the old values\\n\\tfor ( name in options ) {\\n\\t\\telem.style[ name ] = old[ name ];\\n\\t}\\n\\n\\treturn ret;\\n};\\n\\n\\n\\n\\nfunction adjustCSS( elem, prop, valueParts, tween ) {\\n\\tvar adjusted,\\n\\t\\tscale = 1,\\n\\t\\tmaxIterations = 20,\\n\\t\\tcurrentValue = tween ?\\n\\t\\t\\tfunction() {\\n\\t\\t\\t\\treturn tween.cur();\\n\\t\\t\\t} :\\n\\t\\t\\tfunction() {\\n\\t\\t\\t\\treturn jQuery.css( elem, prop, \\\"\\\" );\\n\\t\\t\\t},\\n\\t\\tinitial = currentValue(),\\n\\t\\tunit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? \\\"\\\" : \\\"px\\\" ),\\n\\n\\t\\t// Starting value computation is required for potential unit mismatches\\n\\t\\tinitialInUnit = ( jQuery.cssNumber[ prop ] || unit !== \\\"px\\\" && +initial ) &&\\n\\t\\t\\trcssNum.exec( jQuery.css( elem, prop ) );\\n\\n\\tif ( initialInUnit && initialInUnit[ 3 ] !== unit ) {\\n\\n\\t\\t// Trust units reported by jQuery.css\\n\\t\\tunit = unit || initialInUnit[ 3 ];\\n\\n\\t\\t// Make sure we update the tween properties later on\\n\\t\\tvalueParts = valueParts || [];\\n\\n\\t\\t// Iteratively approximate from a nonzero starting point\\n\\t\\tinitialInUnit = +initial || 1;\\n\\n\\t\\tdo {\\n\\n\\t\\t\\t// If previous iteration zeroed out, double until we get *something*.\\n\\t\\t\\t// Use string for doubling so we don't accidentally see scale as unchanged below\\n\\t\\t\\tscale = scale || \\\".5\\\";\\n\\n\\t\\t\\t// Adjust and apply\\n\\t\\t\\tinitialInUnit = initialInUnit / scale;\\n\\t\\t\\tjQuery.style( elem, prop, initialInUnit + unit );\\n\\n\\t\\t// Update scale, tolerating zero or NaN from tween.cur()\\n\\t\\t// Break the loop if scale is unchanged or perfect, or if we've just had enough.\\n\\t\\t} while (\\n\\t\\t\\tscale !== ( scale = currentValue() / initial ) && scale !== 1 && --maxIterations\\n\\t\\t);\\n\\t}\\n\\n\\tif ( valueParts ) {\\n\\t\\tinitialInUnit = +initialInUnit || +initial || 0;\\n\\n\\t\\t// Apply relative offset (+=/-=) if specified\\n\\t\\tadjusted = valueParts[ 1 ] ?\\n\\t\\t\\tinitialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] :\\n\\t\\t\\t+valueParts[ 2 ];\\n\\t\\tif ( tween ) {\\n\\t\\t\\ttween.unit = unit;\\n\\t\\t\\ttween.start = initialInUnit;\\n\\t\\t\\ttween.end = adjusted;\\n\\t\\t}\\n\\t}\\n\\treturn adjusted;\\n}\\n\\n\\nvar defaultDisplayMap = {};\\n\\nfunction getDefaultDisplay( elem ) {\\n\\tvar temp,\\n\\t\\tdoc = elem.ownerDocument,\\n\\t\\tnodeName = elem.nodeName,\\n\\t\\tdisplay = defaultDisplayMap[ nodeName ];\\n\\n\\tif ( display ) {\\n\\t\\treturn display;\\n\\t}\\n\\n\\ttemp = doc.body.appendChild( doc.createElement( nodeName ) );\\n\\tdisplay = jQuery.css( temp, \\\"display\\\" );\\n\\n\\ttemp.parentNode.removeChild( temp );\\n\\n\\tif ( display === \\\"none\\\" ) {\\n\\t\\tdisplay = \\\"block\\\";\\n\\t}\\n\\tdefaultDisplayMap[ nodeName ] = display;\\n\\n\\treturn display;\\n}\\n\\nfunction showHide( elements, show ) {\\n\\tvar display, elem,\\n\\t\\tvalues = [],\\n\\t\\tindex = 0,\\n\\t\\tlength = elements.length;\\n\\n\\t// Determine new display value for elements that need to change\\n\\tfor ( ; index < length; index++ ) {\\n\\t\\telem = elements[ index ];\\n\\t\\tif ( !elem.style ) {\\n\\t\\t\\tcontinue;\\n\\t\\t}\\n\\n\\t\\tdisplay = elem.style.display;\\n\\t\\tif ( show ) {\\n\\n\\t\\t\\t// Since we force visibility upon cascade-hidden elements, an immediate (and slow)\\n\\t\\t\\t// check is required in this first loop unless we have a nonempty display value (either\\n\\t\\t\\t// inline or about-to-be-restored)\\n\\t\\t\\tif ( display === \\\"none\\\" ) {\\n\\t\\t\\t\\tvalues[ index ] = dataPriv.get( elem, \\\"display\\\" ) || null;\\n\\t\\t\\t\\tif ( !values[ index ] ) {\\n\\t\\t\\t\\t\\telem.style.display = \\\"\\\";\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t\\tif ( elem.style.display === \\\"\\\" && isHiddenWithinTree( elem ) ) {\\n\\t\\t\\t\\tvalues[ index ] = getDefaultDisplay( elem );\\n\\t\\t\\t}\\n\\t\\t} else {\\n\\t\\t\\tif ( display !== \\\"none\\\" ) {\\n\\t\\t\\t\\tvalues[ index ] = \\\"none\\\";\\n\\n\\t\\t\\t\\t// Remember what we're overwriting\\n\\t\\t\\t\\tdataPriv.set( elem, \\\"display\\\", display );\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n\\n\\t// Set the display of the elements in a second loop to avoid constant reflow\\n\\tfor ( index = 0; index < length; index++ ) {\\n\\t\\tif ( values[ index ] != null ) {\\n\\t\\t\\telements[ index ].style.display = values[ index ];\\n\\t\\t}\\n\\t}\\n\\n\\treturn elements;\\n}\\n\\njQuery.fn.extend( {\\n\\tshow: function() {\\n\\t\\treturn showHide( this, true );\\n\\t},\\n\\thide: function() {\\n\\t\\treturn showHide( this );\\n\\t},\\n\\ttoggle: function( state ) {\\n\\t\\tif ( typeof state === \\\"boolean\\\" ) {\\n\\t\\t\\treturn state ? this.show() : this.hide();\\n\\t\\t}\\n\\n\\t\\treturn this.each( function() {\\n\\t\\t\\tif ( isHiddenWithinTree( this ) ) {\\n\\t\\t\\t\\tjQuery( this ).show();\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tjQuery( this ).hide();\\n\\t\\t\\t}\\n\\t\\t} );\\n\\t}\\n} );\\nvar rcheckableType = ( /^(?:checkbox|radio)$/i );\\n\\nvar rtagName = ( /<([a-z][^\\\\/\\\\0>\\\\x20\\\\t\\\\r\\\\n\\\\f]+)/i );\\n\\nvar rscriptType = ( /^$|\\\\/(?:java|ecma)script/i );\\n\\n\\n\\n// We have to close these tags to support XHTML (#13200)\\nvar wrapMap = {\\n\\n\\t// Support: IE <=9 only\\n\\toption: [ 1, \\\"<select multiple='multiple'>\\\", \\\"</select>\\\" ],\\n\\n\\t// XHTML parsers do not magically insert elements in the\\n\\t// same way that tag soup parsers do. So we cannot shorten\\n\\t// this by omitting <tbody> or other required elements.\\n\\tthead: [ 1, \\\"<table>\\\", \\\"</table>\\\" ],\\n\\tcol: [ 2, \\\"<table><colgroup>\\\", \\\"</colgroup></table>\\\" ],\\n\\ttr: [ 2, \\\"<table><tbody>\\\", \\\"</tbody></table>\\\" ],\\n\\ttd: [ 3, \\\"<table><tbody><tr>\\\", \\\"</tr></tbody></table>\\\" ],\\n\\n\\t_default: [ 0, \\\"\\\", \\\"\\\" ]\\n};\\n\\n// Support: IE <=9 only\\nwrapMap.optgroup = wrapMap.option;\\n\\nwrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;\\nwrapMap.th = wrapMap.td;\\n\\n\\nfunction getAll( context, tag ) {\\n\\n\\t// Support: IE <=9 - 11 only\\n\\t// Use typeof to avoid zero-argument method invocation on host objects (#15151)\\n\\tvar ret;\\n\\n\\tif ( typeof context.getElementsByTagName !== \\\"undefined\\\" ) {\\n\\t\\tret = context.getElementsByTagName( tag || \\\"*\\\" );\\n\\n\\t} else if ( typeof context.querySelectorAll !== \\\"undefined\\\" ) {\\n\\t\\tret = context.querySelectorAll( tag || \\\"*\\\" );\\n\\n\\t} else {\\n\\t\\tret = [];\\n\\t}\\n\\n\\tif ( tag === undefined || tag && jQuery.nodeName( context, tag ) ) {\\n\\t\\treturn jQuery.merge( [ context ], ret );\\n\\t}\\n\\n\\treturn ret;\\n}\\n\\n\\n// Mark scripts as having already been evaluated\\nfunction setGlobalEval( elems, refElements ) {\\n\\tvar i = 0,\\n\\t\\tl = elems.length;\\n\\n\\tfor ( ; i < l; i++ ) {\\n\\t\\tdataPriv.set(\\n\\t\\t\\telems[ i ],\\n\\t\\t\\t\\\"globalEval\\\",\\n\\t\\t\\t!refElements || dataPriv.get( refElements[ i ], \\\"globalEval\\\" )\\n\\t\\t);\\n\\t}\\n}\\n\\n\\nvar rhtml = /<|&#?\\\\w+;/;\\n\\nfunction buildFragment( elems, context, scripts, selection, ignored ) {\\n\\tvar elem, tmp, tag, wrap, contains, j,\\n\\t\\tfragment = context.createDocumentFragment(),\\n\\t\\tnodes = [],\\n\\t\\ti = 0,\\n\\t\\tl = elems.length;\\n\\n\\tfor ( ; i < l; i++ ) {\\n\\t\\telem = elems[ i ];\\n\\n\\t\\tif ( elem || elem === 0 ) {\\n\\n\\t\\t\\t// Add nodes directly\\n\\t\\t\\tif ( jQuery.type( elem ) === \\\"object\\\" ) {\\n\\n\\t\\t\\t\\t// Support: Android <=4.0 only, PhantomJS 1 only\\n\\t\\t\\t\\t// push.apply(_, arraylike) throws on ancient WebKit\\n\\t\\t\\t\\tjQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );\\n\\n\\t\\t\\t// Convert non-html into a text node\\n\\t\\t\\t} else if ( !rhtml.test( elem ) ) {\\n\\t\\t\\t\\tnodes.push( context.createTextNode( elem ) );\\n\\n\\t\\t\\t// Convert html into DOM nodes\\n\\t\\t\\t} else {\\n\\t\\t\\t\\ttmp = tmp || fragment.appendChild( context.createElement( \\\"div\\\" ) );\\n\\n\\t\\t\\t\\t// Deserialize a standard representation\\n\\t\\t\\t\\ttag = ( rtagName.exec( elem ) || [ \\\"\\\", \\\"\\\" ] )[ 1 ].toLowerCase();\\n\\t\\t\\t\\twrap = wrapMap[ tag ] || wrapMap._default;\\n\\t\\t\\t\\ttmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ];\\n\\n\\t\\t\\t\\t// Descend through wrappers to the right content\\n\\t\\t\\t\\tj = wrap[ 0 ];\\n\\t\\t\\t\\twhile ( j-- ) {\\n\\t\\t\\t\\t\\ttmp = tmp.lastChild;\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t// Support: Android <=4.0 only, PhantomJS 1 only\\n\\t\\t\\t\\t// push.apply(_, arraylike) throws on ancient WebKit\\n\\t\\t\\t\\tjQuery.merge( nodes, tmp.childNodes );\\n\\n\\t\\t\\t\\t// Remember the top-level container\\n\\t\\t\\t\\ttmp = fragment.firstChild;\\n\\n\\t\\t\\t\\t// Ensure the created nodes are orphaned (#12392)\\n\\t\\t\\t\\ttmp.textContent = \\\"\\\";\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n\\n\\t// Remove wrapper from fragment\\n\\tfragment.textContent = \\\"\\\";\\n\\n\\ti = 0;\\n\\twhile ( ( elem = nodes[ i++ ] ) ) {\\n\\n\\t\\t// Skip elements already in the context collection (trac-4087)\\n\\t\\tif ( selection && jQuery.inArray( elem, selection ) > -1 ) {\\n\\t\\t\\tif ( ignored ) {\\n\\t\\t\\t\\tignored.push( elem );\\n\\t\\t\\t}\\n\\t\\t\\tcontinue;\\n\\t\\t}\\n\\n\\t\\tcontains = jQuery.contains( elem.ownerDocument, elem );\\n\\n\\t\\t// Append to fragment\\n\\t\\ttmp = getAll( fragment.appendChild( elem ), \\\"script\\\" );\\n\\n\\t\\t// Preserve script evaluation history\\n\\t\\tif ( contains ) {\\n\\t\\t\\tsetGlobalEval( tmp );\\n\\t\\t}\\n\\n\\t\\t// Capture executables\\n\\t\\tif ( scripts ) {\\n\\t\\t\\tj = 0;\\n\\t\\t\\twhile ( ( elem = tmp[ j++ ] ) ) {\\n\\t\\t\\t\\tif ( rscriptType.test( elem.type || \\\"\\\" ) ) {\\n\\t\\t\\t\\t\\tscripts.push( elem );\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n\\n\\treturn fragment;\\n}\\n\\n\\n( function() {\\n\\tvar fragment = document.createDocumentFragment(),\\n\\t\\tdiv = fragment.appendChild( document.createElement( \\\"div\\\" ) ),\\n\\t\\tinput = document.createElement( \\\"input\\\" );\\n\\n\\t// Support: Android 4.0 - 4.3 only\\n\\t// Check state lost if the name is set (#11217)\\n\\t// Support: Windows Web Apps (WWA)\\n\\t// `name` and `type` must use .setAttribute for WWA (#14901)\\n\\tinput.setAttribute( \\\"type\\\", \\\"radio\\\" );\\n\\tinput.setAttribute( \\\"checked\\\", \\\"checked\\\" );\\n\\tinput.setAttribute( \\\"name\\\", \\\"t\\\" );\\n\\n\\tdiv.appendChild( input );\\n\\n\\t// Support: Android <=4.1 only\\n\\t// Older WebKit doesn't clone checked state correctly in fragments\\n\\tsupport.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;\\n\\n\\t// Support: IE <=11 only\\n\\t// Make sure textarea (and checkbox) defaultValue is properly cloned\\n\\tdiv.innerHTML = \\\"<textarea>x</textarea>\\\";\\n\\tsupport.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;\\n} )();\\nvar documentElement = document.documentElement;\\n\\n\\n\\nvar\\n\\trkeyEvent = /^key/,\\n\\trmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,\\n\\trtypenamespace = /^([^.]*)(?:\\\\.(.+)|)/;\\n\\nfunction returnTrue() {\\n\\treturn true;\\n}\\n\\nfunction returnFalse() {\\n\\treturn false;\\n}\\n\\n// Support: IE <=9 only\\n// See #13393 for more info\\nfunction safeActiveElement() {\\n\\ttry {\\n\\t\\treturn document.activeElement;\\n\\t} catch ( err ) { }\\n}\\n\\nfunction on( elem, types, selector, data, fn, one ) {\\n\\tvar origFn, type;\\n\\n\\t// Types can be a map of types/handlers\\n\\tif ( typeof types === \\\"object\\\" ) {\\n\\n\\t\\t// ( types-Object, selector, data )\\n\\t\\tif ( typeof selector !== \\\"string\\\" ) {\\n\\n\\t\\t\\t// ( types-Object, data )\\n\\t\\t\\tdata = data || selector;\\n\\t\\t\\tselector = undefined;\\n\\t\\t}\\n\\t\\tfor ( type in types ) {\\n\\t\\t\\ton( elem, type, selector, data, types[ type ], one );\\n\\t\\t}\\n\\t\\treturn elem;\\n\\t}\\n\\n\\tif ( data == null && fn == null ) {\\n\\n\\t\\t// ( types, fn )\\n\\t\\tfn = selector;\\n\\t\\tdata = selector = undefined;\\n\\t} else if ( fn == null ) {\\n\\t\\tif ( typeof selector === \\\"string\\\" ) {\\n\\n\\t\\t\\t// ( types, selector, fn )\\n\\t\\t\\tfn = data;\\n\\t\\t\\tdata = undefined;\\n\\t\\t} else {\\n\\n\\t\\t\\t// ( types, data, fn )\\n\\t\\t\\tfn = data;\\n\\t\\t\\tdata = selector;\\n\\t\\t\\tselector = undefined;\\n\\t\\t}\\n\\t}\\n\\tif ( fn === false ) {\\n\\t\\tfn = returnFalse;\\n\\t} else if ( !fn ) {\\n\\t\\treturn elem;\\n\\t}\\n\\n\\tif ( one === 1 ) {\\n\\t\\torigFn = fn;\\n\\t\\tfn = function( event ) {\\n\\n\\t\\t\\t// Can use an empty set, since event contains the info\\n\\t\\t\\tjQuery().off( event );\\n\\t\\t\\treturn origFn.apply( this, arguments );\\n\\t\\t};\\n\\n\\t\\t// Use same guid so caller can remove using origFn\\n\\t\\tfn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );\\n\\t}\\n\\treturn elem.each( function() {\\n\\t\\tjQuery.event.add( this, types, fn, data, selector );\\n\\t} );\\n}\\n\\n/*\\n * Helper functions for managing events -- not part of the public interface.\\n * Props to Dean Edwards' addEvent library for many of the ideas.\\n */\\njQuery.event = {\\n\\n\\tglobal: {},\\n\\n\\tadd: function( elem, types, handler, data, selector ) {\\n\\n\\t\\tvar handleObjIn, eventHandle, tmp,\\n\\t\\t\\tevents, t, handleObj,\\n\\t\\t\\tspecial, handlers, type, namespaces, origType,\\n\\t\\t\\telemData = dataPriv.get( elem );\\n\\n\\t\\t// Don't attach events to noData or text/comment nodes (but allow plain objects)\\n\\t\\tif ( !elemData ) {\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\t// Caller can pass in an object of custom data in lieu of the handler\\n\\t\\tif ( handler.handler ) {\\n\\t\\t\\thandleObjIn = handler;\\n\\t\\t\\thandler = handleObjIn.handler;\\n\\t\\t\\tselector = handleObjIn.selector;\\n\\t\\t}\\n\\n\\t\\t// Ensure that invalid selectors throw exceptions at attach time\\n\\t\\t// Evaluate against documentElement in case elem is a non-element node (e.g., document)\\n\\t\\tif ( selector ) {\\n\\t\\t\\tjQuery.find.matchesSelector( documentElement, selector );\\n\\t\\t}\\n\\n\\t\\t// Make sure that the handler has a unique ID, used to find/remove it later\\n\\t\\tif ( !handler.guid ) {\\n\\t\\t\\thandler.guid = jQuery.guid++;\\n\\t\\t}\\n\\n\\t\\t// Init the element's event structure and main handler, if this is the first\\n\\t\\tif ( !( events = elemData.events ) ) {\\n\\t\\t\\tevents = elemData.events = {};\\n\\t\\t}\\n\\t\\tif ( !( eventHandle = elemData.handle ) ) {\\n\\t\\t\\teventHandle = elemData.handle = function( e ) {\\n\\n\\t\\t\\t\\t// Discard the second event of a jQuery.event.trigger() and\\n\\t\\t\\t\\t// when an event is called after a page has unloaded\\n\\t\\t\\t\\treturn typeof jQuery !== \\\"undefined\\\" && jQuery.event.triggered !== e.type ?\\n\\t\\t\\t\\t\\tjQuery.event.dispatch.apply( elem, arguments ) : undefined;\\n\\t\\t\\t};\\n\\t\\t}\\n\\n\\t\\t// Handle multiple events separated by a space\\n\\t\\ttypes = ( types || \\\"\\\" ).match( rnothtmlwhite ) || [ \\\"\\\" ];\\n\\t\\tt = types.length;\\n\\t\\twhile ( t-- ) {\\n\\t\\t\\ttmp = rtypenamespace.exec( types[ t ] ) || [];\\n\\t\\t\\ttype = origType = tmp[ 1 ];\\n\\t\\t\\tnamespaces = ( tmp[ 2 ] || \\\"\\\" ).split( \\\".\\\" ).sort();\\n\\n\\t\\t\\t// There *must* be a type, no attaching namespace-only handlers\\n\\t\\t\\tif ( !type ) {\\n\\t\\t\\t\\tcontinue;\\n\\t\\t\\t}\\n\\n\\t\\t\\t// If event changes its type, use the special event handlers for the changed type\\n\\t\\t\\tspecial = jQuery.event.special[ type ] || {};\\n\\n\\t\\t\\t// If selector defined, determine special event api type, otherwise given type\\n\\t\\t\\ttype = ( selector ? special.delegateType : special.bindType ) || type;\\n\\n\\t\\t\\t// Update special based on newly reset type\\n\\t\\t\\tspecial = jQuery.event.special[ type ] || {};\\n\\n\\t\\t\\t// handleObj is passed to all event handlers\\n\\t\\t\\thandleObj = jQuery.extend( {\\n\\t\\t\\t\\ttype: type,\\n\\t\\t\\t\\torigType: origType,\\n\\t\\t\\t\\tdata: data,\\n\\t\\t\\t\\thandler: handler,\\n\\t\\t\\t\\tguid: handler.guid,\\n\\t\\t\\t\\tselector: selector,\\n\\t\\t\\t\\tneedsContext: selector && jQuery.expr.match.needsContext.test( selector ),\\n\\t\\t\\t\\tnamespace: namespaces.join( \\\".\\\" )\\n\\t\\t\\t}, handleObjIn );\\n\\n\\t\\t\\t// Init the event handler queue if we're the first\\n\\t\\t\\tif ( !( handlers = events[ type ] ) ) {\\n\\t\\t\\t\\thandlers = events[ type ] = [];\\n\\t\\t\\t\\thandlers.delegateCount = 0;\\n\\n\\t\\t\\t\\t// Only use addEventListener if the special events handler returns false\\n\\t\\t\\t\\tif ( !special.setup ||\\n\\t\\t\\t\\t\\tspecial.setup.call( elem, data, namespaces, eventHandle ) === false ) {\\n\\n\\t\\t\\t\\t\\tif ( elem.addEventListener ) {\\n\\t\\t\\t\\t\\t\\telem.addEventListener( type, eventHandle );\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\n\\t\\t\\tif ( special.add ) {\\n\\t\\t\\t\\tspecial.add.call( elem, handleObj );\\n\\n\\t\\t\\t\\tif ( !handleObj.handler.guid ) {\\n\\t\\t\\t\\t\\thandleObj.handler.guid = handler.guid;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Add to the element's handler list, delegates in front\\n\\t\\t\\tif ( selector ) {\\n\\t\\t\\t\\thandlers.splice( handlers.delegateCount++, 0, handleObj );\\n\\t\\t\\t} else {\\n\\t\\t\\t\\thandlers.push( handleObj );\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Keep track of which events have ever been used, for event optimization\\n\\t\\t\\tjQuery.event.global[ type ] = true;\\n\\t\\t}\\n\\n\\t},\\n\\n\\t// Detach an event or set of events from an element\\n\\tremove: function( elem, types, handler, selector, mappedTypes ) {\\n\\n\\t\\tvar j, origCount, tmp,\\n\\t\\t\\tevents, t, handleObj,\\n\\t\\t\\tspecial, handlers, type, namespaces, origType,\\n\\t\\t\\telemData = dataPriv.hasData( elem ) && dataPriv.get( elem );\\n\\n\\t\\tif ( !elemData || !( events = elemData.events ) ) {\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\t// Once for each type.namespace in types; type may be omitted\\n\\t\\ttypes = ( types || \\\"\\\" ).match( rnothtmlwhite ) || [ \\\"\\\" ];\\n\\t\\tt = types.length;\\n\\t\\twhile ( t-- ) {\\n\\t\\t\\ttmp = rtypenamespace.exec( types[ t ] ) || [];\\n\\t\\t\\ttype = origType = tmp[ 1 ];\\n\\t\\t\\tnamespaces = ( tmp[ 2 ] || \\\"\\\" ).split( \\\".\\\" ).sort();\\n\\n\\t\\t\\t// Unbind all events (on this namespace, if provided) for the element\\n\\t\\t\\tif ( !type ) {\\n\\t\\t\\t\\tfor ( type in events ) {\\n\\t\\t\\t\\t\\tjQuery.event.remove( elem, type + types[ t ], handler, selector, true );\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tcontinue;\\n\\t\\t\\t}\\n\\n\\t\\t\\tspecial = jQuery.event.special[ type ] || {};\\n\\t\\t\\ttype = ( selector ? special.delegateType : special.bindType ) || type;\\n\\t\\t\\thandlers = events[ type ] || [];\\n\\t\\t\\ttmp = tmp[ 2 ] &&\\n\\t\\t\\t\\tnew RegExp( \\\"(^|\\\\\\\\.)\\\" + namespaces.join( \\\"\\\\\\\\.(?:.*\\\\\\\\.|)\\\" ) + \\\"(\\\\\\\\.|$)\\\" );\\n\\n\\t\\t\\t// Remove matching events\\n\\t\\t\\torigCount = j = handlers.length;\\n\\t\\t\\twhile ( j-- ) {\\n\\t\\t\\t\\thandleObj = handlers[ j ];\\n\\n\\t\\t\\t\\tif ( ( mappedTypes || origType === handleObj.origType ) &&\\n\\t\\t\\t\\t\\t( !handler || handler.guid === handleObj.guid ) &&\\n\\t\\t\\t\\t\\t( !tmp || tmp.test( handleObj.namespace ) ) &&\\n\\t\\t\\t\\t\\t( !selector || selector === handleObj.selector ||\\n\\t\\t\\t\\t\\t\\tselector === \\\"**\\\" && handleObj.selector ) ) {\\n\\t\\t\\t\\t\\thandlers.splice( j, 1 );\\n\\n\\t\\t\\t\\t\\tif ( handleObj.selector ) {\\n\\t\\t\\t\\t\\t\\thandlers.delegateCount--;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\tif ( special.remove ) {\\n\\t\\t\\t\\t\\t\\tspecial.remove.call( elem, handleObj );\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Remove generic event handler if we removed something and no more handlers exist\\n\\t\\t\\t// (avoids potential for endless recursion during removal of special event handlers)\\n\\t\\t\\tif ( origCount && !handlers.length ) {\\n\\t\\t\\t\\tif ( !special.teardown ||\\n\\t\\t\\t\\t\\tspecial.teardown.call( elem, namespaces, elemData.handle ) === false ) {\\n\\n\\t\\t\\t\\t\\tjQuery.removeEvent( elem, type, elemData.handle );\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\tdelete events[ type ];\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\t// Remove data and the expando if it's no longer used\\n\\t\\tif ( jQuery.isEmptyObject( events ) ) {\\n\\t\\t\\tdataPriv.remove( elem, \\\"handle events\\\" );\\n\\t\\t}\\n\\t},\\n\\n\\tdispatch: function( nativeEvent ) {\\n\\n\\t\\t// Make a writable jQuery.Event from the native event object\\n\\t\\tvar event = jQuery.event.fix( nativeEvent );\\n\\n\\t\\tvar i, j, ret, matched, handleObj, handlerQueue,\\n\\t\\t\\targs = new Array( arguments.length ),\\n\\t\\t\\thandlers = ( dataPriv.get( this, \\\"events\\\" ) || {} )[ event.type ] || [],\\n\\t\\t\\tspecial = jQuery.event.special[ event.type ] || {};\\n\\n\\t\\t// Use the fix-ed jQuery.Event rather than the (read-only) native event\\n\\t\\targs[ 0 ] = event;\\n\\n\\t\\tfor ( i = 1; i < arguments.length; i++ ) {\\n\\t\\t\\targs[ i ] = arguments[ i ];\\n\\t\\t}\\n\\n\\t\\tevent.delegateTarget = this;\\n\\n\\t\\t// Call the preDispatch hook for the mapped type, and let it bail if desired\\n\\t\\tif ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\t// Determine handlers\\n\\t\\thandlerQueue = jQuery.event.handlers.call( this, event, handlers );\\n\\n\\t\\t// Run delegates first; they may want to stop propagation beneath us\\n\\t\\ti = 0;\\n\\t\\twhile ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) {\\n\\t\\t\\tevent.currentTarget = matched.elem;\\n\\n\\t\\t\\tj = 0;\\n\\t\\t\\twhile ( ( handleObj = matched.handlers[ j++ ] ) &&\\n\\t\\t\\t\\t!event.isImmediatePropagationStopped() ) {\\n\\n\\t\\t\\t\\t// Triggered event must either 1) have no namespace, or 2) have namespace(s)\\n\\t\\t\\t\\t// a subset or equal to those in the bound event (both can have no namespace).\\n\\t\\t\\t\\tif ( !event.rnamespace || event.rnamespace.test( handleObj.namespace ) ) {\\n\\n\\t\\t\\t\\t\\tevent.handleObj = handleObj;\\n\\t\\t\\t\\t\\tevent.data = handleObj.data;\\n\\n\\t\\t\\t\\t\\tret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle ||\\n\\t\\t\\t\\t\\t\\thandleObj.handler ).apply( matched.elem, args );\\n\\n\\t\\t\\t\\t\\tif ( ret !== undefined ) {\\n\\t\\t\\t\\t\\t\\tif ( ( event.result = ret ) === false ) {\\n\\t\\t\\t\\t\\t\\t\\tevent.preventDefault();\\n\\t\\t\\t\\t\\t\\t\\tevent.stopPropagation();\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\t// Call the postDispatch hook for the mapped type\\n\\t\\tif ( special.postDispatch ) {\\n\\t\\t\\tspecial.postDispatch.call( this, event );\\n\\t\\t}\\n\\n\\t\\treturn event.result;\\n\\t},\\n\\n\\thandlers: function( event, handlers ) {\\n\\t\\tvar i, handleObj, sel, matchedHandlers, matchedSelectors,\\n\\t\\t\\thandlerQueue = [],\\n\\t\\t\\tdelegateCount = handlers.delegateCount,\\n\\t\\t\\tcur = event.target;\\n\\n\\t\\t// Find delegate handlers\\n\\t\\tif ( delegateCount &&\\n\\n\\t\\t\\t// Support: IE <=9\\n\\t\\t\\t// Black-hole SVG <use> instance trees (trac-13180)\\n\\t\\t\\tcur.nodeType &&\\n\\n\\t\\t\\t// Support: Firefox <=42\\n\\t\\t\\t// Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861)\\n\\t\\t\\t// https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click\\n\\t\\t\\t// Support: IE 11 only\\n\\t\\t\\t// ...but not arrow key \\\"clicks\\\" of radio inputs, which can have `button` -1 (gh-2343)\\n\\t\\t\\t!( event.type === \\\"click\\\" && event.button >= 1 ) ) {\\n\\n\\t\\t\\tfor ( ; cur !== this; cur = cur.parentNode || this ) {\\n\\n\\t\\t\\t\\t// Don't check non-elements (#13208)\\n\\t\\t\\t\\t// Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)\\n\\t\\t\\t\\tif ( cur.nodeType === 1 && !( event.type === \\\"click\\\" && cur.disabled === true ) ) {\\n\\t\\t\\t\\t\\tmatchedHandlers = [];\\n\\t\\t\\t\\t\\tmatchedSelectors = {};\\n\\t\\t\\t\\t\\tfor ( i = 0; i < delegateCount; i++ ) {\\n\\t\\t\\t\\t\\t\\thandleObj = handlers[ i ];\\n\\n\\t\\t\\t\\t\\t\\t// Don't conflict with Object.prototype properties (#13203)\\n\\t\\t\\t\\t\\t\\tsel = handleObj.selector + \\\" \\\";\\n\\n\\t\\t\\t\\t\\t\\tif ( matchedSelectors[ sel ] === undefined ) {\\n\\t\\t\\t\\t\\t\\t\\tmatchedSelectors[ sel ] = handleObj.needsContext ?\\n\\t\\t\\t\\t\\t\\t\\t\\tjQuery( sel, this ).index( cur ) > -1 :\\n\\t\\t\\t\\t\\t\\t\\t\\tjQuery.find( sel, this, null, [ cur ] ).length;\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\tif ( matchedSelectors[ sel ] ) {\\n\\t\\t\\t\\t\\t\\t\\tmatchedHandlers.push( handleObj );\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\tif ( matchedHandlers.length ) {\\n\\t\\t\\t\\t\\t\\thandlerQueue.push( { elem: cur, handlers: matchedHandlers } );\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\t// Add the remaining (directly-bound) handlers\\n\\t\\tcur = this;\\n\\t\\tif ( delegateCount < handlers.length ) {\\n\\t\\t\\thandlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } );\\n\\t\\t}\\n\\n\\t\\treturn handlerQueue;\\n\\t},\\n\\n\\taddProp: function( name, hook ) {\\n\\t\\tObject.defineProperty( jQuery.Event.prototype, name, {\\n\\t\\t\\tenumerable: true,\\n\\t\\t\\tconfigurable: true,\\n\\n\\t\\t\\tget: jQuery.isFunction( hook ) ?\\n\\t\\t\\t\\tfunction() {\\n\\t\\t\\t\\t\\tif ( this.originalEvent ) {\\n\\t\\t\\t\\t\\t\\t\\treturn hook( this.originalEvent );\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t} :\\n\\t\\t\\t\\tfunction() {\\n\\t\\t\\t\\t\\tif ( this.originalEvent ) {\\n\\t\\t\\t\\t\\t\\t\\treturn this.originalEvent[ name ];\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t},\\n\\n\\t\\t\\tset: function( value ) {\\n\\t\\t\\t\\tObject.defineProperty( this, name, {\\n\\t\\t\\t\\t\\tenumerable: true,\\n\\t\\t\\t\\t\\tconfigurable: true,\\n\\t\\t\\t\\t\\twritable: true,\\n\\t\\t\\t\\t\\tvalue: value\\n\\t\\t\\t\\t} );\\n\\t\\t\\t}\\n\\t\\t} );\\n\\t},\\n\\n\\tfix: function( originalEvent ) {\\n\\t\\treturn originalEvent[ jQuery.expando ] ?\\n\\t\\t\\toriginalEvent :\\n\\t\\t\\tnew jQuery.Event( originalEvent );\\n\\t},\\n\\n\\tspecial: {\\n\\t\\tload: {\\n\\n\\t\\t\\t// Prevent triggered image.load events from bubbling to window.load\\n\\t\\t\\tnoBubble: true\\n\\t\\t},\\n\\t\\tfocus: {\\n\\n\\t\\t\\t// Fire native event if possible so blur/focus sequence is correct\\n\\t\\t\\ttrigger: function() {\\n\\t\\t\\t\\tif ( this !== safeActiveElement() && this.focus ) {\\n\\t\\t\\t\\t\\tthis.focus();\\n\\t\\t\\t\\t\\treturn false;\\n\\t\\t\\t\\t}\\n\\t\\t\\t},\\n\\t\\t\\tdelegateType: \\\"focusin\\\"\\n\\t\\t},\\n\\t\\tblur: {\\n\\t\\t\\ttrigger: function() {\\n\\t\\t\\t\\tif ( this === safeActiveElement() && this.blur ) {\\n\\t\\t\\t\\t\\tthis.blur();\\n\\t\\t\\t\\t\\treturn false;\\n\\t\\t\\t\\t}\\n\\t\\t\\t},\\n\\t\\t\\tdelegateType: \\\"focusout\\\"\\n\\t\\t},\\n\\t\\tclick: {\\n\\n\\t\\t\\t// For checkbox, fire native event so checked state will be right\\n\\t\\t\\ttrigger: function() {\\n\\t\\t\\t\\tif ( this.type === \\\"checkbox\\\" && this.click && jQuery.nodeName( this, \\\"input\\\" ) ) {\\n\\t\\t\\t\\t\\tthis.click();\\n\\t\\t\\t\\t\\treturn false;\\n\\t\\t\\t\\t}\\n\\t\\t\\t},\\n\\n\\t\\t\\t// For cross-browser consistency, don't fire native .click() on links\\n\\t\\t\\t_default: function( event ) {\\n\\t\\t\\t\\treturn jQuery.nodeName( event.target, \\\"a\\\" );\\n\\t\\t\\t}\\n\\t\\t},\\n\\n\\t\\tbeforeunload: {\\n\\t\\t\\tpostDispatch: function( event ) {\\n\\n\\t\\t\\t\\t// Support: Firefox 20+\\n\\t\\t\\t\\t// Firefox doesn't alert if the returnValue field is not set.\\n\\t\\t\\t\\tif ( event.result !== undefined && event.originalEvent ) {\\n\\t\\t\\t\\t\\tevent.originalEvent.returnValue = event.result;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n};\\n\\njQuery.removeEvent = function( elem, type, handle ) {\\n\\n\\t// This \\\"if\\\" is needed for plain objects\\n\\tif ( elem.removeEventListener ) {\\n\\t\\telem.removeEventListener( type, handle );\\n\\t}\\n};\\n\\njQuery.Event = function( src, props ) {\\n\\n\\t// Allow instantiation without the 'new' keyword\\n\\tif ( !( this instanceof jQuery.Event ) ) {\\n\\t\\treturn new jQuery.Event( src, props );\\n\\t}\\n\\n\\t// Event object\\n\\tif ( src && src.type ) {\\n\\t\\tthis.originalEvent = src;\\n\\t\\tthis.type = src.type;\\n\\n\\t\\t// Events bubbling up the document may have been marked as prevented\\n\\t\\t// by a handler lower down the tree; reflect the correct value.\\n\\t\\tthis.isDefaultPrevented = src.defaultPrevented ||\\n\\t\\t\\t\\tsrc.defaultPrevented === undefined &&\\n\\n\\t\\t\\t\\t// Support: Android <=2.3 only\\n\\t\\t\\t\\tsrc.returnValue === false ?\\n\\t\\t\\treturnTrue :\\n\\t\\t\\treturnFalse;\\n\\n\\t\\t// Create target properties\\n\\t\\t// Support: Safari <=6 - 7 only\\n\\t\\t// Target should not be a text node (#504, #13143)\\n\\t\\tthis.target = ( src.target && src.target.nodeType === 3 ) ?\\n\\t\\t\\tsrc.target.parentNode :\\n\\t\\t\\tsrc.target;\\n\\n\\t\\tthis.currentTarget = src.currentTarget;\\n\\t\\tthis.relatedTarget = src.relatedTarget;\\n\\n\\t// Event type\\n\\t} else {\\n\\t\\tthis.type = src;\\n\\t}\\n\\n\\t// Put explicitly provided properties onto the event object\\n\\tif ( props ) {\\n\\t\\tjQuery.extend( this, props );\\n\\t}\\n\\n\\t// Create a timestamp if incoming event doesn't have one\\n\\tthis.timeStamp = src && src.timeStamp || jQuery.now();\\n\\n\\t// Mark it as fixed\\n\\tthis[ jQuery.expando ] = true;\\n};\\n\\n// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding\\n// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html\\njQuery.Event.prototype = {\\n\\tconstructor: jQuery.Event,\\n\\tisDefaultPrevented: returnFalse,\\n\\tisPropagationStopped: returnFalse,\\n\\tisImmediatePropagationStopped: returnFalse,\\n\\tisSimulated: false,\\n\\n\\tpreventDefault: function() {\\n\\t\\tvar e = this.originalEvent;\\n\\n\\t\\tthis.isDefaultPrevented = returnTrue;\\n\\n\\t\\tif ( e && !this.isSimulated ) {\\n\\t\\t\\te.preventDefault();\\n\\t\\t}\\n\\t},\\n\\tstopPropagation: function() {\\n\\t\\tvar e = this.originalEvent;\\n\\n\\t\\tthis.isPropagationStopped = returnTrue;\\n\\n\\t\\tif ( e && !this.isSimulated ) {\\n\\t\\t\\te.stopPropagation();\\n\\t\\t}\\n\\t},\\n\\tstopImmediatePropagation: function() {\\n\\t\\tvar e = this.originalEvent;\\n\\n\\t\\tthis.isImmediatePropagationStopped = returnTrue;\\n\\n\\t\\tif ( e && !this.isSimulated ) {\\n\\t\\t\\te.stopImmediatePropagation();\\n\\t\\t}\\n\\n\\t\\tthis.stopPropagation();\\n\\t}\\n};\\n\\n// Includes all common event props including KeyEvent and MouseEvent specific props\\njQuery.each( {\\n\\taltKey: true,\\n\\tbubbles: true,\\n\\tcancelable: true,\\n\\tchangedTouches: true,\\n\\tctrlKey: true,\\n\\tdetail: true,\\n\\teventPhase: true,\\n\\tmetaKey: true,\\n\\tpageX: true,\\n\\tpageY: true,\\n\\tshiftKey: true,\\n\\tview: true,\\n\\t\\\"char\\\": true,\\n\\tcharCode: true,\\n\\tkey: true,\\n\\tkeyCode: true,\\n\\tbutton: true,\\n\\tbuttons: true,\\n\\tclientX: true,\\n\\tclientY: true,\\n\\toffsetX: true,\\n\\toffsetY: true,\\n\\tpointerId: true,\\n\\tpointerType: true,\\n\\tscreenX: true,\\n\\tscreenY: true,\\n\\ttargetTouches: true,\\n\\ttoElement: true,\\n\\ttouches: true,\\n\\n\\twhich: function( event ) {\\n\\t\\tvar button = event.button;\\n\\n\\t\\t// Add which for key events\\n\\t\\tif ( event.which == null && rkeyEvent.test( event.type ) ) {\\n\\t\\t\\treturn event.charCode != null ? event.charCode : event.keyCode;\\n\\t\\t}\\n\\n\\t\\t// Add which for click: 1 === left; 2 === middle; 3 === right\\n\\t\\tif ( !event.which && button !== undefined && rmouseEvent.test( event.type ) ) {\\n\\t\\t\\tif ( button & 1 ) {\\n\\t\\t\\t\\treturn 1;\\n\\t\\t\\t}\\n\\n\\t\\t\\tif ( button & 2 ) {\\n\\t\\t\\t\\treturn 3;\\n\\t\\t\\t}\\n\\n\\t\\t\\tif ( button & 4 ) {\\n\\t\\t\\t\\treturn 2;\\n\\t\\t\\t}\\n\\n\\t\\t\\treturn 0;\\n\\t\\t}\\n\\n\\t\\treturn event.which;\\n\\t}\\n}, jQuery.event.addProp );\\n\\n// Create mouseenter/leave events using mouseover/out and event-time checks\\n// so that event delegation works in jQuery.\\n// Do the same for pointerenter/pointerleave and pointerover/pointerout\\n//\\n// Support: Safari 7 only\\n// Safari sends mouseenter too often; see:\\n// https://bugs.chromium.org/p/chromium/issues/detail?id=470258\\n// for the description of the bug (it existed in older Chrome versions as well).\\njQuery.each( {\\n\\tmouseenter: \\\"mouseover\\\",\\n\\tmouseleave: \\\"mouseout\\\",\\n\\tpointerenter: \\\"pointerover\\\",\\n\\tpointerleave: \\\"pointerout\\\"\\n}, function( orig, fix ) {\\n\\tjQuery.event.special[ orig ] = {\\n\\t\\tdelegateType: fix,\\n\\t\\tbindType: fix,\\n\\n\\t\\thandle: function( event ) {\\n\\t\\t\\tvar ret,\\n\\t\\t\\t\\ttarget = this,\\n\\t\\t\\t\\trelated = event.relatedTarget,\\n\\t\\t\\t\\thandleObj = event.handleObj;\\n\\n\\t\\t\\t// For mouseenter/leave call the handler if related is outside the target.\\n\\t\\t\\t// NB: No relatedTarget if the mouse left/entered the browser window\\n\\t\\t\\tif ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) {\\n\\t\\t\\t\\tevent.type = handleObj.origType;\\n\\t\\t\\t\\tret = handleObj.handler.apply( this, arguments );\\n\\t\\t\\t\\tevent.type = fix;\\n\\t\\t\\t}\\n\\t\\t\\treturn ret;\\n\\t\\t}\\n\\t};\\n} );\\n\\njQuery.fn.extend( {\\n\\n\\ton: function( types, selector, data, fn ) {\\n\\t\\treturn on( this, types, selector, data, fn );\\n\\t},\\n\\tone: function( types, selector, data, fn ) {\\n\\t\\treturn on( this, types, selector, data, fn, 1 );\\n\\t},\\n\\toff: function( types, selector, fn ) {\\n\\t\\tvar handleObj, type;\\n\\t\\tif ( types && types.preventDefault && types.handleObj ) {\\n\\n\\t\\t\\t// ( event )  dispatched jQuery.Event\\n\\t\\t\\thandleObj = types.handleObj;\\n\\t\\t\\tjQuery( types.delegateTarget ).off(\\n\\t\\t\\t\\thandleObj.namespace ?\\n\\t\\t\\t\\t\\thandleObj.origType + \\\".\\\" + handleObj.namespace :\\n\\t\\t\\t\\t\\thandleObj.origType,\\n\\t\\t\\t\\thandleObj.selector,\\n\\t\\t\\t\\thandleObj.handler\\n\\t\\t\\t);\\n\\t\\t\\treturn this;\\n\\t\\t}\\n\\t\\tif ( typeof types === \\\"object\\\" ) {\\n\\n\\t\\t\\t// ( types-object [, selector] )\\n\\t\\t\\tfor ( type in types ) {\\n\\t\\t\\t\\tthis.off( type, selector, types[ type ] );\\n\\t\\t\\t}\\n\\t\\t\\treturn this;\\n\\t\\t}\\n\\t\\tif ( selector === false || typeof selector === \\\"function\\\" ) {\\n\\n\\t\\t\\t// ( types [, fn] )\\n\\t\\t\\tfn = selector;\\n\\t\\t\\tselector = undefined;\\n\\t\\t}\\n\\t\\tif ( fn === false ) {\\n\\t\\t\\tfn = returnFalse;\\n\\t\\t}\\n\\t\\treturn this.each( function() {\\n\\t\\t\\tjQuery.event.remove( this, types, fn, selector );\\n\\t\\t} );\\n\\t}\\n} );\\n\\n\\nvar\\n\\n\\t/* eslint-disable max-len */\\n\\n\\t// See https://github.com/eslint/eslint/issues/3229\\n\\trxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\\\\/\\\\0>\\\\x20\\\\t\\\\r\\\\n\\\\f]*)[^>]*)\\\\/>/gi,\\n\\n\\t/* eslint-enable */\\n\\n\\t// Support: IE <=10 - 11, Edge 12 - 13\\n\\t// In IE/Edge using regex groups here causes severe slowdowns.\\n\\t// See https://connect.microsoft.com/IE/feedback/details/1736512/\\n\\trnoInnerhtml = /<script|<style|<link/i,\\n\\n\\t// checked=\\\"checked\\\" or checked\\n\\trchecked = /checked\\\\s*(?:[^=]|=\\\\s*.checked.)/i,\\n\\trscriptTypeMasked = /^true\\\\/(.*)/,\\n\\trcleanScript = /^\\\\s*<!(?:\\\\[CDATA\\\\[|--)|(?:\\\\]\\\\]|--)>\\\\s*$/g;\\n\\nfunction manipulationTarget( elem, content ) {\\n\\tif ( jQuery.nodeName( elem, \\\"table\\\" ) &&\\n\\t\\tjQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, \\\"tr\\\" ) ) {\\n\\n\\t\\treturn elem.getElementsByTagName( \\\"tbody\\\" )[ 0 ] || elem;\\n\\t}\\n\\n\\treturn elem;\\n}\\n\\n// Replace/restore the type attribute of script elements for safe DOM manipulation\\nfunction disableScript( elem ) {\\n\\telem.type = ( elem.getAttribute( \\\"type\\\" ) !== null ) + \\\"/\\\" + elem.type;\\n\\treturn elem;\\n}\\nfunction restoreScript( elem ) {\\n\\tvar match = rscriptTypeMasked.exec( elem.type );\\n\\n\\tif ( match ) {\\n\\t\\telem.type = match[ 1 ];\\n\\t} else {\\n\\t\\telem.removeAttribute( \\\"type\\\" );\\n\\t}\\n\\n\\treturn elem;\\n}\\n\\nfunction cloneCopyEvent( src, dest ) {\\n\\tvar i, l, type, pdataOld, pdataCur, udataOld, udataCur, events;\\n\\n\\tif ( dest.nodeType !== 1 ) {\\n\\t\\treturn;\\n\\t}\\n\\n\\t// 1. Copy private data: events, handlers, etc.\\n\\tif ( dataPriv.hasData( src ) ) {\\n\\t\\tpdataOld = dataPriv.access( src );\\n\\t\\tpdataCur = dataPriv.set( dest, pdataOld );\\n\\t\\tevents = pdataOld.events;\\n\\n\\t\\tif ( events ) {\\n\\t\\t\\tdelete pdataCur.handle;\\n\\t\\t\\tpdataCur.events = {};\\n\\n\\t\\t\\tfor ( type in events ) {\\n\\t\\t\\t\\tfor ( i = 0, l = events[ type ].length; i < l; i++ ) {\\n\\t\\t\\t\\t\\tjQuery.event.add( dest, type, events[ type ][ i ] );\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n\\n\\t// 2. Copy user data\\n\\tif ( dataUser.hasData( src ) ) {\\n\\t\\tudataOld = dataUser.access( src );\\n\\t\\tudataCur = jQuery.extend( {}, udataOld );\\n\\n\\t\\tdataUser.set( dest, udataCur );\\n\\t}\\n}\\n\\n// Fix IE bugs, see support tests\\nfunction fixInput( src, dest ) {\\n\\tvar nodeName = dest.nodeName.toLowerCase();\\n\\n\\t// Fails to persist the checked state of a cloned checkbox or radio button.\\n\\tif ( nodeName === \\\"input\\\" && rcheckableType.test( src.type ) ) {\\n\\t\\tdest.checked = src.checked;\\n\\n\\t// Fails to return the selected option to the default selected state when cloning options\\n\\t} else if ( nodeName === \\\"input\\\" || nodeName === \\\"textarea\\\" ) {\\n\\t\\tdest.defaultValue = src.defaultValue;\\n\\t}\\n}\\n\\nfunction domManip( collection, args, callback, ignored ) {\\n\\n\\t// Flatten any nested arrays\\n\\targs = concat.apply( [], args );\\n\\n\\tvar fragment, first, scripts, hasScripts, node, doc,\\n\\t\\ti = 0,\\n\\t\\tl = collection.length,\\n\\t\\tiNoClone = l - 1,\\n\\t\\tvalue = args[ 0 ],\\n\\t\\tisFunction = jQuery.isFunction( value );\\n\\n\\t// We can't cloneNode fragments that contain checked, in WebKit\\n\\tif ( isFunction ||\\n\\t\\t\\t( l > 1 && typeof value === \\\"string\\\" &&\\n\\t\\t\\t\\t!support.checkClone && rchecked.test( value ) ) ) {\\n\\t\\treturn collection.each( function( index ) {\\n\\t\\t\\tvar self = collection.eq( index );\\n\\t\\t\\tif ( isFunction ) {\\n\\t\\t\\t\\targs[ 0 ] = value.call( this, index, self.html() );\\n\\t\\t\\t}\\n\\t\\t\\tdomManip( self, args, callback, ignored );\\n\\t\\t} );\\n\\t}\\n\\n\\tif ( l ) {\\n\\t\\tfragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored );\\n\\t\\tfirst = fragment.firstChild;\\n\\n\\t\\tif ( fragment.childNodes.length === 1 ) {\\n\\t\\t\\tfragment = first;\\n\\t\\t}\\n\\n\\t\\t// Require either new content or an interest in ignored elements to invoke the callback\\n\\t\\tif ( first || ignored ) {\\n\\t\\t\\tscripts = jQuery.map( getAll( fragment, \\\"script\\\" ), disableScript );\\n\\t\\t\\thasScripts = scripts.length;\\n\\n\\t\\t\\t// Use the original fragment for the last item\\n\\t\\t\\t// instead of the first because it can end up\\n\\t\\t\\t// being emptied incorrectly in certain situations (#8070).\\n\\t\\t\\tfor ( ; i < l; i++ ) {\\n\\t\\t\\t\\tnode = fragment;\\n\\n\\t\\t\\t\\tif ( i !== iNoClone ) {\\n\\t\\t\\t\\t\\tnode = jQuery.clone( node, true, true );\\n\\n\\t\\t\\t\\t\\t// Keep references to cloned scripts for later restoration\\n\\t\\t\\t\\t\\tif ( hasScripts ) {\\n\\n\\t\\t\\t\\t\\t\\t// Support: Android <=4.0 only, PhantomJS 1 only\\n\\t\\t\\t\\t\\t\\t// push.apply(_, arraylike) throws on ancient WebKit\\n\\t\\t\\t\\t\\t\\tjQuery.merge( scripts, getAll( node, \\\"script\\\" ) );\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\tcallback.call( collection[ i ], node, i );\\n\\t\\t\\t}\\n\\n\\t\\t\\tif ( hasScripts ) {\\n\\t\\t\\t\\tdoc = scripts[ scripts.length - 1 ].ownerDocument;\\n\\n\\t\\t\\t\\t// Reenable scripts\\n\\t\\t\\t\\tjQuery.map( scripts, restoreScript );\\n\\n\\t\\t\\t\\t// Evaluate executable scripts on first document insertion\\n\\t\\t\\t\\tfor ( i = 0; i < hasScripts; i++ ) {\\n\\t\\t\\t\\t\\tnode = scripts[ i ];\\n\\t\\t\\t\\t\\tif ( rscriptType.test( node.type || \\\"\\\" ) &&\\n\\t\\t\\t\\t\\t\\t!dataPriv.access( node, \\\"globalEval\\\" ) &&\\n\\t\\t\\t\\t\\t\\tjQuery.contains( doc, node ) ) {\\n\\n\\t\\t\\t\\t\\t\\tif ( node.src ) {\\n\\n\\t\\t\\t\\t\\t\\t\\t// Optional AJAX dependency, but won't run scripts if not present\\n\\t\\t\\t\\t\\t\\t\\tif ( jQuery._evalUrl ) {\\n\\t\\t\\t\\t\\t\\t\\t\\tjQuery._evalUrl( node.src );\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\tDOMEval( node.textContent.replace( rcleanScript, \\\"\\\" ), doc );\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n\\n\\treturn collection;\\n}\\n\\nfunction remove( elem, selector, keepData ) {\\n\\tvar node,\\n\\t\\tnodes = selector ? jQuery.filter( selector, elem ) : elem,\\n\\t\\ti = 0;\\n\\n\\tfor ( ; ( node = nodes[ i ] ) != null; i++ ) {\\n\\t\\tif ( !keepData && node.nodeType === 1 ) {\\n\\t\\t\\tjQuery.cleanData( getAll( node ) );\\n\\t\\t}\\n\\n\\t\\tif ( node.parentNode ) {\\n\\t\\t\\tif ( keepData && jQuery.contains( node.ownerDocument, node ) ) {\\n\\t\\t\\t\\tsetGlobalEval( getAll( node, \\\"script\\\" ) );\\n\\t\\t\\t}\\n\\t\\t\\tnode.parentNode.removeChild( node );\\n\\t\\t}\\n\\t}\\n\\n\\treturn elem;\\n}\\n\\njQuery.extend( {\\n\\thtmlPrefilter: function( html ) {\\n\\t\\treturn html.replace( rxhtmlTag, \\\"<$1></$2>\\\" );\\n\\t},\\n\\n\\tclone: function( elem, dataAndEvents, deepDataAndEvents ) {\\n\\t\\tvar i, l, srcElements, destElements,\\n\\t\\t\\tclone = elem.cloneNode( true ),\\n\\t\\t\\tinPage = jQuery.contains( elem.ownerDocument, elem );\\n\\n\\t\\t// Fix IE cloning issues\\n\\t\\tif ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) &&\\n\\t\\t\\t\\t!jQuery.isXMLDoc( elem ) ) {\\n\\n\\t\\t\\t// We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2\\n\\t\\t\\tdestElements = getAll( clone );\\n\\t\\t\\tsrcElements = getAll( elem );\\n\\n\\t\\t\\tfor ( i = 0, l = srcElements.length; i < l; i++ ) {\\n\\t\\t\\t\\tfixInput( srcElements[ i ], destElements[ i ] );\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\t// Copy the events from the original to the clone\\n\\t\\tif ( dataAndEvents ) {\\n\\t\\t\\tif ( deepDataAndEvents ) {\\n\\t\\t\\t\\tsrcElements = srcElements || getAll( elem );\\n\\t\\t\\t\\tdestElements = destElements || getAll( clone );\\n\\n\\t\\t\\t\\tfor ( i = 0, l = srcElements.length; i < l; i++ ) {\\n\\t\\t\\t\\t\\tcloneCopyEvent( srcElements[ i ], destElements[ i ] );\\n\\t\\t\\t\\t}\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tcloneCopyEvent( elem, clone );\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\t// Preserve script evaluation history\\n\\t\\tdestElements = getAll( clone, \\\"script\\\" );\\n\\t\\tif ( destElements.length > 0 ) {\\n\\t\\t\\tsetGlobalEval( destElements, !inPage && getAll( elem, \\\"script\\\" ) );\\n\\t\\t}\\n\\n\\t\\t// Return the cloned set\\n\\t\\treturn clone;\\n\\t},\\n\\n\\tcleanData: function( elems ) {\\n\\t\\tvar data, elem, type,\\n\\t\\t\\tspecial = jQuery.event.special,\\n\\t\\t\\ti = 0;\\n\\n\\t\\tfor ( ; ( elem = elems[ i ] ) !== undefined; i++ ) {\\n\\t\\t\\tif ( acceptData( elem ) ) {\\n\\t\\t\\t\\tif ( ( data = elem[ dataPriv.expando ] ) ) {\\n\\t\\t\\t\\t\\tif ( data.events ) {\\n\\t\\t\\t\\t\\t\\tfor ( type in data.events ) {\\n\\t\\t\\t\\t\\t\\t\\tif ( special[ type ] ) {\\n\\t\\t\\t\\t\\t\\t\\t\\tjQuery.event.remove( elem, type );\\n\\n\\t\\t\\t\\t\\t\\t\\t// This is a shortcut to avoid jQuery.event.remove's overhead\\n\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\tjQuery.removeEvent( elem, type, data.handle );\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t// Support: Chrome <=35 - 45+\\n\\t\\t\\t\\t\\t// Assign undefined instead of using delete, see Data#remove\\n\\t\\t\\t\\t\\telem[ dataPriv.expando ] = undefined;\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tif ( elem[ dataUser.expando ] ) {\\n\\n\\t\\t\\t\\t\\t// Support: Chrome <=35 - 45+\\n\\t\\t\\t\\t\\t// Assign undefined instead of using delete, see Data#remove\\n\\t\\t\\t\\t\\telem[ dataUser.expando ] = undefined;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n} );\\n\\njQuery.fn.extend( {\\n\\tdetach: function( selector ) {\\n\\t\\treturn remove( this, selector, true );\\n\\t},\\n\\n\\tremove: function( selector ) {\\n\\t\\treturn remove( this, selector );\\n\\t},\\n\\n\\ttext: function( value ) {\\n\\t\\treturn access( this, function( value ) {\\n\\t\\t\\treturn value === undefined ?\\n\\t\\t\\t\\tjQuery.text( this ) :\\n\\t\\t\\t\\tthis.empty().each( function() {\\n\\t\\t\\t\\t\\tif ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {\\n\\t\\t\\t\\t\\t\\tthis.textContent = value;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t} );\\n\\t\\t}, null, value, arguments.length );\\n\\t},\\n\\n\\tappend: function() {\\n\\t\\treturn domManip( this, arguments, function( elem ) {\\n\\t\\t\\tif ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {\\n\\t\\t\\t\\tvar target = manipulationTarget( this, elem );\\n\\t\\t\\t\\ttarget.appendChild( elem );\\n\\t\\t\\t}\\n\\t\\t} );\\n\\t},\\n\\n\\tprepend: function() {\\n\\t\\treturn domManip( this, arguments, function( elem ) {\\n\\t\\t\\tif ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {\\n\\t\\t\\t\\tvar target = manipulationTarget( this, elem );\\n\\t\\t\\t\\ttarget.insertBefore( elem, target.firstChild );\\n\\t\\t\\t}\\n\\t\\t} );\\n\\t},\\n\\n\\tbefore: function() {\\n\\t\\treturn domManip( this, arguments, function( elem ) {\\n\\t\\t\\tif ( this.parentNode ) {\\n\\t\\t\\t\\tthis.parentNode.insertBefore( elem, this );\\n\\t\\t\\t}\\n\\t\\t} );\\n\\t},\\n\\n\\tafter: function() {\\n\\t\\treturn domManip( this, arguments, function( elem ) {\\n\\t\\t\\tif ( this.parentNode ) {\\n\\t\\t\\t\\tthis.parentNode.insertBefore( elem, this.nextSibling );\\n\\t\\t\\t}\\n\\t\\t} );\\n\\t},\\n\\n\\tempty: function() {\\n\\t\\tvar elem,\\n\\t\\t\\ti = 0;\\n\\n\\t\\tfor ( ; ( elem = this[ i ] ) != null; i++ ) {\\n\\t\\t\\tif ( elem.nodeType === 1 ) {\\n\\n\\t\\t\\t\\t// Prevent memory leaks\\n\\t\\t\\t\\tjQuery.cleanData( getAll( elem, false ) );\\n\\n\\t\\t\\t\\t// Remove any remaining nodes\\n\\t\\t\\t\\telem.textContent = \\\"\\\";\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\treturn this;\\n\\t},\\n\\n\\tclone: function( dataAndEvents, deepDataAndEvents ) {\\n\\t\\tdataAndEvents = dataAndEvents == null ? false : dataAndEvents;\\n\\t\\tdeepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;\\n\\n\\t\\treturn this.map( function() {\\n\\t\\t\\treturn jQuery.clone( this, dataAndEvents, deepDataAndEvents );\\n\\t\\t} );\\n\\t},\\n\\n\\thtml: function( value ) {\\n\\t\\treturn access( this, function( value ) {\\n\\t\\t\\tvar elem = this[ 0 ] || {},\\n\\t\\t\\t\\ti = 0,\\n\\t\\t\\t\\tl = this.length;\\n\\n\\t\\t\\tif ( value === undefined && elem.nodeType === 1 ) {\\n\\t\\t\\t\\treturn elem.innerHTML;\\n\\t\\t\\t}\\n\\n\\t\\t\\t// See if we can take a shortcut and just use innerHTML\\n\\t\\t\\tif ( typeof value === \\\"string\\\" && !rnoInnerhtml.test( value ) &&\\n\\t\\t\\t\\t!wrapMap[ ( rtagName.exec( value ) || [ \\\"\\\", \\\"\\\" ] )[ 1 ].toLowerCase() ] ) {\\n\\n\\t\\t\\t\\tvalue = jQuery.htmlPrefilter( value );\\n\\n\\t\\t\\t\\ttry {\\n\\t\\t\\t\\t\\tfor ( ; i < l; i++ ) {\\n\\t\\t\\t\\t\\t\\telem = this[ i ] || {};\\n\\n\\t\\t\\t\\t\\t\\t// Remove element nodes and prevent memory leaks\\n\\t\\t\\t\\t\\t\\tif ( elem.nodeType === 1 ) {\\n\\t\\t\\t\\t\\t\\t\\tjQuery.cleanData( getAll( elem, false ) );\\n\\t\\t\\t\\t\\t\\t\\telem.innerHTML = value;\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\telem = 0;\\n\\n\\t\\t\\t\\t// If using innerHTML throws an exception, use the fallback method\\n\\t\\t\\t\\t} catch ( e ) {}\\n\\t\\t\\t}\\n\\n\\t\\t\\tif ( elem ) {\\n\\t\\t\\t\\tthis.empty().append( value );\\n\\t\\t\\t}\\n\\t\\t}, null, value, arguments.length );\\n\\t},\\n\\n\\treplaceWith: function() {\\n\\t\\tvar ignored = [];\\n\\n\\t\\t// Make the changes, replacing each non-ignored context element with the new content\\n\\t\\treturn domManip( this, arguments, function( elem ) {\\n\\t\\t\\tvar parent = this.parentNode;\\n\\n\\t\\t\\tif ( jQuery.inArray( this, ignored ) < 0 ) {\\n\\t\\t\\t\\tjQuery.cleanData( getAll( this ) );\\n\\t\\t\\t\\tif ( parent ) {\\n\\t\\t\\t\\t\\tparent.replaceChild( elem, this );\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\n\\t\\t// Force callback invocation\\n\\t\\t}, ignored );\\n\\t}\\n} );\\n\\njQuery.each( {\\n\\tappendTo: \\\"append\\\",\\n\\tprependTo: \\\"prepend\\\",\\n\\tinsertBefore: \\\"before\\\",\\n\\tinsertAfter: \\\"after\\\",\\n\\treplaceAll: \\\"replaceWith\\\"\\n}, function( name, original ) {\\n\\tjQuery.fn[ name ] = function( selector ) {\\n\\t\\tvar elems,\\n\\t\\t\\tret = [],\\n\\t\\t\\tinsert = jQuery( selector ),\\n\\t\\t\\tlast = insert.length - 1,\\n\\t\\t\\ti = 0;\\n\\n\\t\\tfor ( ; i <= last; i++ ) {\\n\\t\\t\\telems = i === last ? this : this.clone( true );\\n\\t\\t\\tjQuery( insert[ i ] )[ original ]( elems );\\n\\n\\t\\t\\t// Support: Android <=4.0 only, PhantomJS 1 only\\n\\t\\t\\t// .get() because push.apply(_, arraylike) throws on ancient WebKit\\n\\t\\t\\tpush.apply( ret, elems.get() );\\n\\t\\t}\\n\\n\\t\\treturn this.pushStack( ret );\\n\\t};\\n} );\\nvar rmargin = ( /^margin/ );\\n\\nvar rnumnonpx = new RegExp( \\\"^(\\\" + pnum + \\\")(?!px)[a-z%]+$\\\", \\\"i\\\" );\\n\\nvar getStyles = function( elem ) {\\n\\n\\t\\t// Support: IE <=11 only, Firefox <=30 (#15098, #14150)\\n\\t\\t// IE throws on elements created in popups\\n\\t\\t// FF meanwhile throws on frame elements through \\\"defaultView.getComputedStyle\\\"\\n\\t\\tvar view = elem.ownerDocument.defaultView;\\n\\n\\t\\tif ( !view || !view.opener ) {\\n\\t\\t\\tview = window;\\n\\t\\t}\\n\\n\\t\\treturn view.getComputedStyle( elem );\\n\\t};\\n\\n\\n\\n( function() {\\n\\n\\t// Executing both pixelPosition & boxSizingReliable tests require only one layout\\n\\t// so they're executed at the same time to save the second computation.\\n\\tfunction computeStyleTests() {\\n\\n\\t\\t// This is a singleton, we need to execute it only once\\n\\t\\tif ( !div ) {\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\tdiv.style.cssText =\\n\\t\\t\\t\\\"box-sizing:border-box;\\\" +\\n\\t\\t\\t\\\"position:relative;display:block;\\\" +\\n\\t\\t\\t\\\"margin:auto;border:1px;padding:1px;\\\" +\\n\\t\\t\\t\\\"top:1%;width:50%\\\";\\n\\t\\tdiv.innerHTML = \\\"\\\";\\n\\t\\tdocumentElement.appendChild( container );\\n\\n\\t\\tvar divStyle = window.getComputedStyle( div );\\n\\t\\tpixelPositionVal = divStyle.top !== \\\"1%\\\";\\n\\n\\t\\t// Support: Android 4.0 - 4.3 only, Firefox <=3 - 44\\n\\t\\treliableMarginLeftVal = divStyle.marginLeft === \\\"2px\\\";\\n\\t\\tboxSizingReliableVal = divStyle.width === \\\"4px\\\";\\n\\n\\t\\t// Support: Android 4.0 - 4.3 only\\n\\t\\t// Some styles come back with percentage values, even though they shouldn't\\n\\t\\tdiv.style.marginRight = \\\"50%\\\";\\n\\t\\tpixelMarginRightVal = divStyle.marginRight === \\\"4px\\\";\\n\\n\\t\\tdocumentElement.removeChild( container );\\n\\n\\t\\t// Nullify the div so it wouldn't be stored in the memory and\\n\\t\\t// it will also be a sign that checks already performed\\n\\t\\tdiv = null;\\n\\t}\\n\\n\\tvar pixelPositionVal, boxSizingReliableVal, pixelMarginRightVal, reliableMarginLeftVal,\\n\\t\\tcontainer = document.createElement( \\\"div\\\" ),\\n\\t\\tdiv = document.createElement( \\\"div\\\" );\\n\\n\\t// Finish early in limited (non-browser) environments\\n\\tif ( !div.style ) {\\n\\t\\treturn;\\n\\t}\\n\\n\\t// Support: IE <=9 - 11 only\\n\\t// Style of cloned element affects source element cloned (#8908)\\n\\tdiv.style.backgroundClip = \\\"content-box\\\";\\n\\tdiv.cloneNode( true ).style.backgroundClip = \\\"\\\";\\n\\tsupport.clearCloneStyle = div.style.backgroundClip === \\\"content-box\\\";\\n\\n\\tcontainer.style.cssText = \\\"border:0;width:8px;height:0;top:0;left:-9999px;\\\" +\\n\\t\\t\\\"padding:0;margin-top:1px;position:absolute\\\";\\n\\tcontainer.appendChild( div );\\n\\n\\tjQuery.extend( support, {\\n\\t\\tpixelPosition: function() {\\n\\t\\t\\tcomputeStyleTests();\\n\\t\\t\\treturn pixelPositionVal;\\n\\t\\t},\\n\\t\\tboxSizingReliable: function() {\\n\\t\\t\\tcomputeStyleTests();\\n\\t\\t\\treturn boxSizingReliableVal;\\n\\t\\t},\\n\\t\\tpixelMarginRight: function() {\\n\\t\\t\\tcomputeStyleTests();\\n\\t\\t\\treturn pixelMarginRightVal;\\n\\t\\t},\\n\\t\\treliableMarginLeft: function() {\\n\\t\\t\\tcomputeStyleTests();\\n\\t\\t\\treturn reliableMarginLeftVal;\\n\\t\\t}\\n\\t} );\\n} )();\\n\\n\\nfunction curCSS( elem, name, computed ) {\\n\\tvar width, minWidth, maxWidth, ret,\\n\\t\\tstyle = elem.style;\\n\\n\\tcomputed = computed || getStyles( elem );\\n\\n\\t// Support: IE <=9 only\\n\\t// getPropertyValue is only needed for .css('filter') (#12537)\\n\\tif ( computed ) {\\n\\t\\tret = computed.getPropertyValue( name ) || computed[ name ];\\n\\n\\t\\tif ( ret === \\\"\\\" && !jQuery.contains( elem.ownerDocument, elem ) ) {\\n\\t\\t\\tret = jQuery.style( elem, name );\\n\\t\\t}\\n\\n\\t\\t// A tribute to the \\\"awesome hack by Dean Edwards\\\"\\n\\t\\t// Android Browser returns percentage for some values,\\n\\t\\t// but width seems to be reliably pixels.\\n\\t\\t// This is against the CSSOM draft spec:\\n\\t\\t// https://drafts.csswg.org/cssom/#resolved-values\\n\\t\\tif ( !support.pixelMarginRight() && rnumnonpx.test( ret ) && rmargin.test( name ) ) {\\n\\n\\t\\t\\t// Remember the original values\\n\\t\\t\\twidth = style.width;\\n\\t\\t\\tminWidth = style.minWidth;\\n\\t\\t\\tmaxWidth = style.maxWidth;\\n\\n\\t\\t\\t// Put in the new values to get a computed value out\\n\\t\\t\\tstyle.minWidth = style.maxWidth = style.width = ret;\\n\\t\\t\\tret = computed.width;\\n\\n\\t\\t\\t// Revert the changed values\\n\\t\\t\\tstyle.width = width;\\n\\t\\t\\tstyle.minWidth = minWidth;\\n\\t\\t\\tstyle.maxWidth = maxWidth;\\n\\t\\t}\\n\\t}\\n\\n\\treturn ret !== undefined ?\\n\\n\\t\\t// Support: IE <=9 - 11 only\\n\\t\\t// IE returns zIndex value as an integer.\\n\\t\\tret + \\\"\\\" :\\n\\t\\tret;\\n}\\n\\n\\nfunction addGetHookIf( conditionFn, hookFn ) {\\n\\n\\t// Define the hook, we'll check on the first run if it's really needed.\\n\\treturn {\\n\\t\\tget: function() {\\n\\t\\t\\tif ( conditionFn() ) {\\n\\n\\t\\t\\t\\t// Hook not needed (or it's not possible to use it due\\n\\t\\t\\t\\t// to missing dependency), remove it.\\n\\t\\t\\t\\tdelete this.get;\\n\\t\\t\\t\\treturn;\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Hook needed; redefine it so that the support test is not executed again.\\n\\t\\t\\treturn ( this.get = hookFn ).apply( this, arguments );\\n\\t\\t}\\n\\t};\\n}\\n\\n\\nvar\\n\\n\\t// Swappable if display is none or starts with table\\n\\t// except \\\"table\\\", \\\"table-cell\\\", or \\\"table-caption\\\"\\n\\t// See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display\\n\\trdisplayswap = /^(none|table(?!-c[ea]).+)/,\\n\\tcssShow = { position: \\\"absolute\\\", visibility: \\\"hidden\\\", display: \\\"block\\\" },\\n\\tcssNormalTransform = {\\n\\t\\tletterSpacing: \\\"0\\\",\\n\\t\\tfontWeight: \\\"400\\\"\\n\\t},\\n\\n\\tcssPrefixes = [ \\\"Webkit\\\", \\\"Moz\\\", \\\"ms\\\" ],\\n\\temptyStyle = document.createElement( \\\"div\\\" ).style;\\n\\n// Return a css property mapped to a potentially vendor prefixed property\\nfunction vendorPropName( name ) {\\n\\n\\t// Shortcut for names that are not vendor prefixed\\n\\tif ( name in emptyStyle ) {\\n\\t\\treturn name;\\n\\t}\\n\\n\\t// Check for vendor prefixed names\\n\\tvar capName = name[ 0 ].toUpperCase() + name.slice( 1 ),\\n\\t\\ti = cssPrefixes.length;\\n\\n\\twhile ( i-- ) {\\n\\t\\tname = cssPrefixes[ i ] + capName;\\n\\t\\tif ( name in emptyStyle ) {\\n\\t\\t\\treturn name;\\n\\t\\t}\\n\\t}\\n}\\n\\nfunction setPositiveNumber( elem, value, subtract ) {\\n\\n\\t// Any relative (+/-) values have already been\\n\\t// normalized at this point\\n\\tvar matches = rcssNum.exec( value );\\n\\treturn matches ?\\n\\n\\t\\t// Guard against undefined \\\"subtract\\\", e.g., when used as in cssHooks\\n\\t\\tMath.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || \\\"px\\\" ) :\\n\\t\\tvalue;\\n}\\n\\nfunction augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {\\n\\tvar i,\\n\\t\\tval = 0;\\n\\n\\t// If we already have the right measurement, avoid augmentation\\n\\tif ( extra === ( isBorderBox ? \\\"border\\\" : \\\"content\\\" ) ) {\\n\\t\\ti = 4;\\n\\n\\t// Otherwise initialize for horizontal or vertical properties\\n\\t} else {\\n\\t\\ti = name === \\\"width\\\" ? 1 : 0;\\n\\t}\\n\\n\\tfor ( ; i < 4; i += 2 ) {\\n\\n\\t\\t// Both box models exclude margin, so add it if we want it\\n\\t\\tif ( extra === \\\"margin\\\" ) {\\n\\t\\t\\tval += jQuery.css( elem, extra + cssExpand[ i ], true, styles );\\n\\t\\t}\\n\\n\\t\\tif ( isBorderBox ) {\\n\\n\\t\\t\\t// border-box includes padding, so remove it if we want content\\n\\t\\t\\tif ( extra === \\\"content\\\" ) {\\n\\t\\t\\t\\tval -= jQuery.css( elem, \\\"padding\\\" + cssExpand[ i ], true, styles );\\n\\t\\t\\t}\\n\\n\\t\\t\\t// At this point, extra isn't border nor margin, so remove border\\n\\t\\t\\tif ( extra !== \\\"margin\\\" ) {\\n\\t\\t\\t\\tval -= jQuery.css( elem, \\\"border\\\" + cssExpand[ i ] + \\\"Width\\\", true, styles );\\n\\t\\t\\t}\\n\\t\\t} else {\\n\\n\\t\\t\\t// At this point, extra isn't content, so add padding\\n\\t\\t\\tval += jQuery.css( elem, \\\"padding\\\" + cssExpand[ i ], true, styles );\\n\\n\\t\\t\\t// At this point, extra isn't content nor padding, so add border\\n\\t\\t\\tif ( extra !== \\\"padding\\\" ) {\\n\\t\\t\\t\\tval += jQuery.css( elem, \\\"border\\\" + cssExpand[ i ] + \\\"Width\\\", true, styles );\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n\\n\\treturn val;\\n}\\n\\nfunction getWidthOrHeight( elem, name, extra ) {\\n\\n\\t// Start with offset property, which is equivalent to the border-box value\\n\\tvar val,\\n\\t\\tvalueIsBorderBox = true,\\n\\t\\tstyles = getStyles( elem ),\\n\\t\\tisBorderBox = jQuery.css( elem, \\\"boxSizing\\\", false, styles ) === \\\"border-box\\\";\\n\\n\\t// Support: IE <=11 only\\n\\t// Running getBoundingClientRect on a disconnected node\\n\\t// in IE throws an error.\\n\\tif ( elem.getClientRects().length ) {\\n\\t\\tval = elem.getBoundingClientRect()[ name ];\\n\\t}\\n\\n\\t// Some non-html elements return undefined for offsetWidth, so check for null/undefined\\n\\t// svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285\\n\\t// MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668\\n\\tif ( val <= 0 || val == null ) {\\n\\n\\t\\t// Fall back to computed then uncomputed css if necessary\\n\\t\\tval = curCSS( elem, name, styles );\\n\\t\\tif ( val < 0 || val == null ) {\\n\\t\\t\\tval = elem.style[ name ];\\n\\t\\t}\\n\\n\\t\\t// Computed unit is not pixels. Stop here and return.\\n\\t\\tif ( rnumnonpx.test( val ) ) {\\n\\t\\t\\treturn val;\\n\\t\\t}\\n\\n\\t\\t// Check for style in case a browser which returns unreliable values\\n\\t\\t// for getComputedStyle silently falls back to the reliable elem.style\\n\\t\\tvalueIsBorderBox = isBorderBox &&\\n\\t\\t\\t( support.boxSizingReliable() || val === elem.style[ name ] );\\n\\n\\t\\t// Normalize \\\"\\\", auto, and prepare for extra\\n\\t\\tval = parseFloat( val ) || 0;\\n\\t}\\n\\n\\t// Use the active box-sizing model to add/subtract irrelevant styles\\n\\treturn ( val +\\n\\t\\taugmentWidthOrHeight(\\n\\t\\t\\telem,\\n\\t\\t\\tname,\\n\\t\\t\\textra || ( isBorderBox ? \\\"border\\\" : \\\"content\\\" ),\\n\\t\\t\\tvalueIsBorderBox,\\n\\t\\t\\tstyles\\n\\t\\t)\\n\\t) + \\\"px\\\";\\n}\\n\\njQuery.extend( {\\n\\n\\t// Add in style property hooks for overriding the default\\n\\t// behavior of getting and setting a style property\\n\\tcssHooks: {\\n\\t\\topacity: {\\n\\t\\t\\tget: function( elem, computed ) {\\n\\t\\t\\t\\tif ( computed ) {\\n\\n\\t\\t\\t\\t\\t// We should always get a number back from opacity\\n\\t\\t\\t\\t\\tvar ret = curCSS( elem, \\\"opacity\\\" );\\n\\t\\t\\t\\t\\treturn ret === \\\"\\\" ? \\\"1\\\" : ret;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t},\\n\\n\\t// Don't automatically add \\\"px\\\" to these possibly-unitless properties\\n\\tcssNumber: {\\n\\t\\t\\\"animationIterationCount\\\": true,\\n\\t\\t\\\"columnCount\\\": true,\\n\\t\\t\\\"fillOpacity\\\": true,\\n\\t\\t\\\"flexGrow\\\": true,\\n\\t\\t\\\"flexShrink\\\": true,\\n\\t\\t\\\"fontWeight\\\": true,\\n\\t\\t\\\"lineHeight\\\": true,\\n\\t\\t\\\"opacity\\\": true,\\n\\t\\t\\\"order\\\": true,\\n\\t\\t\\\"orphans\\\": true,\\n\\t\\t\\\"widows\\\": true,\\n\\t\\t\\\"zIndex\\\": true,\\n\\t\\t\\\"zoom\\\": true\\n\\t},\\n\\n\\t// Add in properties whose names you wish to fix before\\n\\t// setting or getting the value\\n\\tcssProps: {\\n\\t\\t\\\"float\\\": \\\"cssFloat\\\"\\n\\t},\\n\\n\\t// Get and set the style property on a DOM Node\\n\\tstyle: function( elem, name, value, extra ) {\\n\\n\\t\\t// Don't set styles on text and comment nodes\\n\\t\\tif ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\t// Make sure that we're working with the right name\\n\\t\\tvar ret, type, hooks,\\n\\t\\t\\torigName = jQuery.camelCase( name ),\\n\\t\\t\\tstyle = elem.style;\\n\\n\\t\\tname = jQuery.cssProps[ origName ] ||\\n\\t\\t\\t( jQuery.cssProps[ origName ] = vendorPropName( origName ) || origName );\\n\\n\\t\\t// Gets hook for the prefixed version, then unprefixed version\\n\\t\\thooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];\\n\\n\\t\\t// Check if we're setting a value\\n\\t\\tif ( value !== undefined ) {\\n\\t\\t\\ttype = typeof value;\\n\\n\\t\\t\\t// Convert \\\"+=\\\" or \\\"-=\\\" to relative numbers (#7345)\\n\\t\\t\\tif ( type === \\\"string\\\" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) {\\n\\t\\t\\t\\tvalue = adjustCSS( elem, name, ret );\\n\\n\\t\\t\\t\\t// Fixes bug #9237\\n\\t\\t\\t\\ttype = \\\"number\\\";\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Make sure that null and NaN values aren't set (#7116)\\n\\t\\t\\tif ( value == null || value !== value ) {\\n\\t\\t\\t\\treturn;\\n\\t\\t\\t}\\n\\n\\t\\t\\t// If a number was passed in, add the unit (except for certain CSS properties)\\n\\t\\t\\tif ( type === \\\"number\\\" ) {\\n\\t\\t\\t\\tvalue += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? \\\"\\\" : \\\"px\\\" );\\n\\t\\t\\t}\\n\\n\\t\\t\\t// background-* props affect original clone's values\\n\\t\\t\\tif ( !support.clearCloneStyle && value === \\\"\\\" && name.indexOf( \\\"background\\\" ) === 0 ) {\\n\\t\\t\\t\\tstyle[ name ] = \\\"inherit\\\";\\n\\t\\t\\t}\\n\\n\\t\\t\\t// If a hook was provided, use that value, otherwise just set the specified value\\n\\t\\t\\tif ( !hooks || !( \\\"set\\\" in hooks ) ||\\n\\t\\t\\t\\t( value = hooks.set( elem, value, extra ) ) !== undefined ) {\\n\\n\\t\\t\\t\\tstyle[ name ] = value;\\n\\t\\t\\t}\\n\\n\\t\\t} else {\\n\\n\\t\\t\\t// If a hook was provided get the non-computed value from there\\n\\t\\t\\tif ( hooks && \\\"get\\\" in hooks &&\\n\\t\\t\\t\\t( ret = hooks.get( elem, false, extra ) ) !== undefined ) {\\n\\n\\t\\t\\t\\treturn ret;\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Otherwise just get the value from the style object\\n\\t\\t\\treturn style[ name ];\\n\\t\\t}\\n\\t},\\n\\n\\tcss: function( elem, name, extra, styles ) {\\n\\t\\tvar val, num, hooks,\\n\\t\\t\\torigName = jQuery.camelCase( name );\\n\\n\\t\\t// Make sure that we're working with the right name\\n\\t\\tname = jQuery.cssProps[ origName ] ||\\n\\t\\t\\t( jQuery.cssProps[ origName ] = vendorPropName( origName ) || origName );\\n\\n\\t\\t// Try prefixed name followed by the unprefixed name\\n\\t\\thooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];\\n\\n\\t\\t// If a hook was provided get the computed value from there\\n\\t\\tif ( hooks && \\\"get\\\" in hooks ) {\\n\\t\\t\\tval = hooks.get( elem, true, extra );\\n\\t\\t}\\n\\n\\t\\t// Otherwise, if a way to get the computed value exists, use that\\n\\t\\tif ( val === undefined ) {\\n\\t\\t\\tval = curCSS( elem, name, styles );\\n\\t\\t}\\n\\n\\t\\t// Convert \\\"normal\\\" to computed value\\n\\t\\tif ( val === \\\"normal\\\" && name in cssNormalTransform ) {\\n\\t\\t\\tval = cssNormalTransform[ name ];\\n\\t\\t}\\n\\n\\t\\t// Make numeric if forced or a qualifier was provided and val looks numeric\\n\\t\\tif ( extra === \\\"\\\" || extra ) {\\n\\t\\t\\tnum = parseFloat( val );\\n\\t\\t\\treturn extra === true || isFinite( num ) ? num || 0 : val;\\n\\t\\t}\\n\\t\\treturn val;\\n\\t}\\n} );\\n\\njQuery.each( [ \\\"height\\\", \\\"width\\\" ], function( i, name ) {\\n\\tjQuery.cssHooks[ name ] = {\\n\\t\\tget: function( elem, computed, extra ) {\\n\\t\\t\\tif ( computed ) {\\n\\n\\t\\t\\t\\t// Certain elements can have dimension info if we invisibly show them\\n\\t\\t\\t\\t// but it must have a current display style that would benefit\\n\\t\\t\\t\\treturn rdisplayswap.test( jQuery.css( elem, \\\"display\\\" ) ) &&\\n\\n\\t\\t\\t\\t\\t// Support: Safari 8+\\n\\t\\t\\t\\t\\t// Table columns in Safari have non-zero offsetWidth & zero\\n\\t\\t\\t\\t\\t// getBoundingClientRect().width unless display is changed.\\n\\t\\t\\t\\t\\t// Support: IE <=11 only\\n\\t\\t\\t\\t\\t// Running getBoundingClientRect on a disconnected node\\n\\t\\t\\t\\t\\t// in IE throws an error.\\n\\t\\t\\t\\t\\t( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ?\\n\\t\\t\\t\\t\\t\\tswap( elem, cssShow, function() {\\n\\t\\t\\t\\t\\t\\t\\treturn getWidthOrHeight( elem, name, extra );\\n\\t\\t\\t\\t\\t\\t} ) :\\n\\t\\t\\t\\t\\t\\tgetWidthOrHeight( elem, name, extra );\\n\\t\\t\\t}\\n\\t\\t},\\n\\n\\t\\tset: function( elem, value, extra ) {\\n\\t\\t\\tvar matches,\\n\\t\\t\\t\\tstyles = extra && getStyles( elem ),\\n\\t\\t\\t\\tsubtract = extra && augmentWidthOrHeight(\\n\\t\\t\\t\\t\\telem,\\n\\t\\t\\t\\t\\tname,\\n\\t\\t\\t\\t\\textra,\\n\\t\\t\\t\\t\\tjQuery.css( elem, \\\"boxSizing\\\", false, styles ) === \\\"border-box\\\",\\n\\t\\t\\t\\t\\tstyles\\n\\t\\t\\t\\t);\\n\\n\\t\\t\\t// Convert to pixels if value adjustment is needed\\n\\t\\t\\tif ( subtract && ( matches = rcssNum.exec( value ) ) &&\\n\\t\\t\\t\\t( matches[ 3 ] || \\\"px\\\" ) !== \\\"px\\\" ) {\\n\\n\\t\\t\\t\\telem.style[ name ] = value;\\n\\t\\t\\t\\tvalue = jQuery.css( elem, name );\\n\\t\\t\\t}\\n\\n\\t\\t\\treturn setPositiveNumber( elem, value, subtract );\\n\\t\\t}\\n\\t};\\n} );\\n\\njQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft,\\n\\tfunction( elem, computed ) {\\n\\t\\tif ( computed ) {\\n\\t\\t\\treturn ( parseFloat( curCSS( elem, \\\"marginLeft\\\" ) ) ||\\n\\t\\t\\t\\telem.getBoundingClientRect().left -\\n\\t\\t\\t\\t\\tswap( elem, { marginLeft: 0 }, function() {\\n\\t\\t\\t\\t\\t\\treturn elem.getBoundingClientRect().left;\\n\\t\\t\\t\\t\\t} )\\n\\t\\t\\t\\t) + \\\"px\\\";\\n\\t\\t}\\n\\t}\\n);\\n\\n// These hooks are used by animate to expand properties\\njQuery.each( {\\n\\tmargin: \\\"\\\",\\n\\tpadding: \\\"\\\",\\n\\tborder: \\\"Width\\\"\\n}, function( prefix, suffix ) {\\n\\tjQuery.cssHooks[ prefix + suffix ] = {\\n\\t\\texpand: function( value ) {\\n\\t\\t\\tvar i = 0,\\n\\t\\t\\t\\texpanded = {},\\n\\n\\t\\t\\t\\t// Assumes a single number if not a string\\n\\t\\t\\t\\tparts = typeof value === \\\"string\\\" ? value.split( \\\" \\\" ) : [ value ];\\n\\n\\t\\t\\tfor ( ; i < 4; i++ ) {\\n\\t\\t\\t\\texpanded[ prefix + cssExpand[ i ] + suffix ] =\\n\\t\\t\\t\\t\\tparts[ i ] || parts[ i - 2 ] || parts[ 0 ];\\n\\t\\t\\t}\\n\\n\\t\\t\\treturn expanded;\\n\\t\\t}\\n\\t};\\n\\n\\tif ( !rmargin.test( prefix ) ) {\\n\\t\\tjQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;\\n\\t}\\n} );\\n\\njQuery.fn.extend( {\\n\\tcss: function( name, value ) {\\n\\t\\treturn access( this, function( elem, name, value ) {\\n\\t\\t\\tvar styles, len,\\n\\t\\t\\t\\tmap = {},\\n\\t\\t\\t\\ti = 0;\\n\\n\\t\\t\\tif ( jQuery.isArray( name ) ) {\\n\\t\\t\\t\\tstyles = getStyles( elem );\\n\\t\\t\\t\\tlen = name.length;\\n\\n\\t\\t\\t\\tfor ( ; i < len; i++ ) {\\n\\t\\t\\t\\t\\tmap[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\treturn map;\\n\\t\\t\\t}\\n\\n\\t\\t\\treturn value !== undefined ?\\n\\t\\t\\t\\tjQuery.style( elem, name, value ) :\\n\\t\\t\\t\\tjQuery.css( elem, name );\\n\\t\\t}, name, value, arguments.length > 1 );\\n\\t}\\n} );\\n\\n\\nfunction Tween( elem, options, prop, end, easing ) {\\n\\treturn new Tween.prototype.init( elem, options, prop, end, easing );\\n}\\njQuery.Tween = Tween;\\n\\nTween.prototype = {\\n\\tconstructor: Tween,\\n\\tinit: function( elem, options, prop, end, easing, unit ) {\\n\\t\\tthis.elem = elem;\\n\\t\\tthis.prop = prop;\\n\\t\\tthis.easing = easing || jQuery.easing._default;\\n\\t\\tthis.options = options;\\n\\t\\tthis.start = this.now = this.cur();\\n\\t\\tthis.end = end;\\n\\t\\tthis.unit = unit || ( jQuery.cssNumber[ prop ] ? \\\"\\\" : \\\"px\\\" );\\n\\t},\\n\\tcur: function() {\\n\\t\\tvar hooks = Tween.propHooks[ this.prop ];\\n\\n\\t\\treturn hooks && hooks.get ?\\n\\t\\t\\thooks.get( this ) :\\n\\t\\t\\tTween.propHooks._default.get( this );\\n\\t},\\n\\trun: function( percent ) {\\n\\t\\tvar eased,\\n\\t\\t\\thooks = Tween.propHooks[ this.prop ];\\n\\n\\t\\tif ( this.options.duration ) {\\n\\t\\t\\tthis.pos = eased = jQuery.easing[ this.easing ](\\n\\t\\t\\t\\tpercent, this.options.duration * percent, 0, 1, this.options.duration\\n\\t\\t\\t);\\n\\t\\t} else {\\n\\t\\t\\tthis.pos = eased = percent;\\n\\t\\t}\\n\\t\\tthis.now = ( this.end - this.start ) * eased + this.start;\\n\\n\\t\\tif ( this.options.step ) {\\n\\t\\t\\tthis.options.step.call( this.elem, this.now, this );\\n\\t\\t}\\n\\n\\t\\tif ( hooks && hooks.set ) {\\n\\t\\t\\thooks.set( this );\\n\\t\\t} else {\\n\\t\\t\\tTween.propHooks._default.set( this );\\n\\t\\t}\\n\\t\\treturn this;\\n\\t}\\n};\\n\\nTween.prototype.init.prototype = Tween.prototype;\\n\\nTween.propHooks = {\\n\\t_default: {\\n\\t\\tget: function( tween ) {\\n\\t\\t\\tvar result;\\n\\n\\t\\t\\t// Use a property on the element directly when it is not a DOM element,\\n\\t\\t\\t// or when there is no matching style property that exists.\\n\\t\\t\\tif ( tween.elem.nodeType !== 1 ||\\n\\t\\t\\t\\ttween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) {\\n\\t\\t\\t\\treturn tween.elem[ tween.prop ];\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Passing an empty string as a 3rd parameter to .css will automatically\\n\\t\\t\\t// attempt a parseFloat and fallback to a string if the parse fails.\\n\\t\\t\\t// Simple values such as \\\"10px\\\" are parsed to Float;\\n\\t\\t\\t// complex values such as \\\"rotate(1rad)\\\" are returned as-is.\\n\\t\\t\\tresult = jQuery.css( tween.elem, tween.prop, \\\"\\\" );\\n\\n\\t\\t\\t// Empty strings, null, undefined and \\\"auto\\\" are converted to 0.\\n\\t\\t\\treturn !result || result === \\\"auto\\\" ? 0 : result;\\n\\t\\t},\\n\\t\\tset: function( tween ) {\\n\\n\\t\\t\\t// Use step hook for back compat.\\n\\t\\t\\t// Use cssHook if its there.\\n\\t\\t\\t// Use .style if available and use plain properties where available.\\n\\t\\t\\tif ( jQuery.fx.step[ tween.prop ] ) {\\n\\t\\t\\t\\tjQuery.fx.step[ tween.prop ]( tween );\\n\\t\\t\\t} else if ( tween.elem.nodeType === 1 &&\\n\\t\\t\\t\\t( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null ||\\n\\t\\t\\t\\t\\tjQuery.cssHooks[ tween.prop ] ) ) {\\n\\t\\t\\t\\tjQuery.style( tween.elem, tween.prop, tween.now + tween.unit );\\n\\t\\t\\t} else {\\n\\t\\t\\t\\ttween.elem[ tween.prop ] = tween.now;\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n};\\n\\n// Support: IE <=9 only\\n// Panic based approach to setting things on disconnected nodes\\nTween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {\\n\\tset: function( tween ) {\\n\\t\\tif ( tween.elem.nodeType && tween.elem.parentNode ) {\\n\\t\\t\\ttween.elem[ tween.prop ] = tween.now;\\n\\t\\t}\\n\\t}\\n};\\n\\njQuery.easing = {\\n\\tlinear: function( p ) {\\n\\t\\treturn p;\\n\\t},\\n\\tswing: function( p ) {\\n\\t\\treturn 0.5 - Math.cos( p * Math.PI ) / 2;\\n\\t},\\n\\t_default: \\\"swing\\\"\\n};\\n\\njQuery.fx = Tween.prototype.init;\\n\\n// Back compat <1.8 extension point\\njQuery.fx.step = {};\\n\\n\\n\\n\\nvar\\n\\tfxNow, timerId,\\n\\trfxtypes = /^(?:toggle|show|hide)$/,\\n\\trrun = /queueHooks$/;\\n\\nfunction raf() {\\n\\tif ( timerId ) {\\n\\t\\twindow.requestAnimationFrame( raf );\\n\\t\\tjQuery.fx.tick();\\n\\t}\\n}\\n\\n// Animations created synchronously will run synchronously\\nfunction createFxNow() {\\n\\twindow.setTimeout( function() {\\n\\t\\tfxNow = undefined;\\n\\t} );\\n\\treturn ( fxNow = jQuery.now() );\\n}\\n\\n// Generate parameters to create a standard animation\\nfunction genFx( type, includeWidth ) {\\n\\tvar which,\\n\\t\\ti = 0,\\n\\t\\tattrs = { height: type };\\n\\n\\t// If we include width, step value is 1 to do all cssExpand values,\\n\\t// otherwise step value is 2 to skip over Left and Right\\n\\tincludeWidth = includeWidth ? 1 : 0;\\n\\tfor ( ; i < 4; i += 2 - includeWidth ) {\\n\\t\\twhich = cssExpand[ i ];\\n\\t\\tattrs[ \\\"margin\\\" + which ] = attrs[ \\\"padding\\\" + which ] = type;\\n\\t}\\n\\n\\tif ( includeWidth ) {\\n\\t\\tattrs.opacity = attrs.width = type;\\n\\t}\\n\\n\\treturn attrs;\\n}\\n\\nfunction createTween( value, prop, animation ) {\\n\\tvar tween,\\n\\t\\tcollection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ \\\"*\\\" ] ),\\n\\t\\tindex = 0,\\n\\t\\tlength = collection.length;\\n\\tfor ( ; index < length; index++ ) {\\n\\t\\tif ( ( tween = collection[ index ].call( animation, prop, value ) ) ) {\\n\\n\\t\\t\\t// We're done with this property\\n\\t\\t\\treturn tween;\\n\\t\\t}\\n\\t}\\n}\\n\\nfunction defaultPrefilter( elem, props, opts ) {\\n\\tvar prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display,\\n\\t\\tisBox = \\\"width\\\" in props || \\\"height\\\" in props,\\n\\t\\tanim = this,\\n\\t\\torig = {},\\n\\t\\tstyle = elem.style,\\n\\t\\thidden = elem.nodeType && isHiddenWithinTree( elem ),\\n\\t\\tdataShow = dataPriv.get( elem, \\\"fxshow\\\" );\\n\\n\\t// Queue-skipping animations hijack the fx hooks\\n\\tif ( !opts.queue ) {\\n\\t\\thooks = jQuery._queueHooks( elem, \\\"fx\\\" );\\n\\t\\tif ( hooks.unqueued == null ) {\\n\\t\\t\\thooks.unqueued = 0;\\n\\t\\t\\toldfire = hooks.empty.fire;\\n\\t\\t\\thooks.empty.fire = function() {\\n\\t\\t\\t\\tif ( !hooks.unqueued ) {\\n\\t\\t\\t\\t\\toldfire();\\n\\t\\t\\t\\t}\\n\\t\\t\\t};\\n\\t\\t}\\n\\t\\thooks.unqueued++;\\n\\n\\t\\tanim.always( function() {\\n\\n\\t\\t\\t// Ensure the complete handler is called before this completes\\n\\t\\t\\tanim.always( function() {\\n\\t\\t\\t\\thooks.unqueued--;\\n\\t\\t\\t\\tif ( !jQuery.queue( elem, \\\"fx\\\" ).length ) {\\n\\t\\t\\t\\t\\thooks.empty.fire();\\n\\t\\t\\t\\t}\\n\\t\\t\\t} );\\n\\t\\t} );\\n\\t}\\n\\n\\t// Detect show/hide animations\\n\\tfor ( prop in props ) {\\n\\t\\tvalue = props[ prop ];\\n\\t\\tif ( rfxtypes.test( value ) ) {\\n\\t\\t\\tdelete props[ prop ];\\n\\t\\t\\ttoggle = toggle || value === \\\"toggle\\\";\\n\\t\\t\\tif ( value === ( hidden ? \\\"hide\\\" : \\\"show\\\" ) ) {\\n\\n\\t\\t\\t\\t// Pretend to be hidden if this is a \\\"show\\\" and\\n\\t\\t\\t\\t// there is still data from a stopped show/hide\\n\\t\\t\\t\\tif ( value === \\\"show\\\" && dataShow && dataShow[ prop ] !== undefined ) {\\n\\t\\t\\t\\t\\thidden = true;\\n\\n\\t\\t\\t\\t// Ignore all other no-op show/hide data\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\tcontinue;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t\\torig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );\\n\\t\\t}\\n\\t}\\n\\n\\t// Bail out if this is a no-op like .hide().hide()\\n\\tpropTween = !jQuery.isEmptyObject( props );\\n\\tif ( !propTween && jQuery.isEmptyObject( orig ) ) {\\n\\t\\treturn;\\n\\t}\\n\\n\\t// Restrict \\\"overflow\\\" and \\\"display\\\" styles during box animations\\n\\tif ( isBox && elem.nodeType === 1 ) {\\n\\n\\t\\t// Support: IE <=9 - 11, Edge 12 - 13\\n\\t\\t// Record all 3 overflow attributes because IE does not infer the shorthand\\n\\t\\t// from identically-valued overflowX and overflowY\\n\\t\\topts.overflow = [ style.overflow, style.overflowX, style.overflowY ];\\n\\n\\t\\t// Identify a display type, preferring old show/hide data over the CSS cascade\\n\\t\\trestoreDisplay = dataShow && dataShow.display;\\n\\t\\tif ( restoreDisplay == null ) {\\n\\t\\t\\trestoreDisplay = dataPriv.get( elem, \\\"display\\\" );\\n\\t\\t}\\n\\t\\tdisplay = jQuery.css( elem, \\\"display\\\" );\\n\\t\\tif ( display === \\\"none\\\" ) {\\n\\t\\t\\tif ( restoreDisplay ) {\\n\\t\\t\\t\\tdisplay = restoreDisplay;\\n\\t\\t\\t} else {\\n\\n\\t\\t\\t\\t// Get nonempty value(s) by temporarily forcing visibility\\n\\t\\t\\t\\tshowHide( [ elem ], true );\\n\\t\\t\\t\\trestoreDisplay = elem.style.display || restoreDisplay;\\n\\t\\t\\t\\tdisplay = jQuery.css( elem, \\\"display\\\" );\\n\\t\\t\\t\\tshowHide( [ elem ] );\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\t// Animate inline elements as inline-block\\n\\t\\tif ( display === \\\"inline\\\" || display === \\\"inline-block\\\" && restoreDisplay != null ) {\\n\\t\\t\\tif ( jQuery.css( elem, \\\"float\\\" ) === \\\"none\\\" ) {\\n\\n\\t\\t\\t\\t// Restore the original display value at the end of pure show/hide animations\\n\\t\\t\\t\\tif ( !propTween ) {\\n\\t\\t\\t\\t\\tanim.done( function() {\\n\\t\\t\\t\\t\\t\\tstyle.display = restoreDisplay;\\n\\t\\t\\t\\t\\t} );\\n\\t\\t\\t\\t\\tif ( restoreDisplay == null ) {\\n\\t\\t\\t\\t\\t\\tdisplay = style.display;\\n\\t\\t\\t\\t\\t\\trestoreDisplay = display === \\\"none\\\" ? \\\"\\\" : display;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tstyle.display = \\\"inline-block\\\";\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n\\n\\tif ( opts.overflow ) {\\n\\t\\tstyle.overflow = \\\"hidden\\\";\\n\\t\\tanim.always( function() {\\n\\t\\t\\tstyle.overflow = opts.overflow[ 0 ];\\n\\t\\t\\tstyle.overflowX = opts.overflow[ 1 ];\\n\\t\\t\\tstyle.overflowY = opts.overflow[ 2 ];\\n\\t\\t} );\\n\\t}\\n\\n\\t// Implement show/hide animations\\n\\tpropTween = false;\\n\\tfor ( prop in orig ) {\\n\\n\\t\\t// General show/hide setup for this element animation\\n\\t\\tif ( !propTween ) {\\n\\t\\t\\tif ( dataShow ) {\\n\\t\\t\\t\\tif ( \\\"hidden\\\" in dataShow ) {\\n\\t\\t\\t\\t\\thidden = dataShow.hidden;\\n\\t\\t\\t\\t}\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tdataShow = dataPriv.access( elem, \\\"fxshow\\\", { display: restoreDisplay } );\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Store hidden/visible for toggle so `.stop().toggle()` \\\"reverses\\\"\\n\\t\\t\\tif ( toggle ) {\\n\\t\\t\\t\\tdataShow.hidden = !hidden;\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Show elements before animating them\\n\\t\\t\\tif ( hidden ) {\\n\\t\\t\\t\\tshowHide( [ elem ], true );\\n\\t\\t\\t}\\n\\n\\t\\t\\t/* eslint-disable no-loop-func */\\n\\n\\t\\t\\tanim.done( function() {\\n\\n\\t\\t\\t/* eslint-enable no-loop-func */\\n\\n\\t\\t\\t\\t// The final step of a \\\"hide\\\" animation is actually hiding the element\\n\\t\\t\\t\\tif ( !hidden ) {\\n\\t\\t\\t\\t\\tshowHide( [ elem ] );\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tdataPriv.remove( elem, \\\"fxshow\\\" );\\n\\t\\t\\t\\tfor ( prop in orig ) {\\n\\t\\t\\t\\t\\tjQuery.style( elem, prop, orig[ prop ] );\\n\\t\\t\\t\\t}\\n\\t\\t\\t} );\\n\\t\\t}\\n\\n\\t\\t// Per-property setup\\n\\t\\tpropTween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );\\n\\t\\tif ( !( prop in dataShow ) ) {\\n\\t\\t\\tdataShow[ prop ] = propTween.start;\\n\\t\\t\\tif ( hidden ) {\\n\\t\\t\\t\\tpropTween.end = propTween.start;\\n\\t\\t\\t\\tpropTween.start = 0;\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n}\\n\\nfunction propFilter( props, specialEasing ) {\\n\\tvar index, name, easing, value, hooks;\\n\\n\\t// camelCase, specialEasing and expand cssHook pass\\n\\tfor ( index in props ) {\\n\\t\\tname = jQuery.camelCase( index );\\n\\t\\teasing = specialEasing[ name ];\\n\\t\\tvalue = props[ index ];\\n\\t\\tif ( jQuery.isArray( value ) ) {\\n\\t\\t\\teasing = value[ 1 ];\\n\\t\\t\\tvalue = props[ index ] = value[ 0 ];\\n\\t\\t}\\n\\n\\t\\tif ( index !== name ) {\\n\\t\\t\\tprops[ name ] = value;\\n\\t\\t\\tdelete props[ index ];\\n\\t\\t}\\n\\n\\t\\thooks = jQuery.cssHooks[ name ];\\n\\t\\tif ( hooks && \\\"expand\\\" in hooks ) {\\n\\t\\t\\tvalue = hooks.expand( value );\\n\\t\\t\\tdelete props[ name ];\\n\\n\\t\\t\\t// Not quite $.extend, this won't overwrite existing keys.\\n\\t\\t\\t// Reusing 'index' because we have the correct \\\"name\\\"\\n\\t\\t\\tfor ( index in value ) {\\n\\t\\t\\t\\tif ( !( index in props ) ) {\\n\\t\\t\\t\\t\\tprops[ index ] = value[ index ];\\n\\t\\t\\t\\t\\tspecialEasing[ index ] = easing;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t} else {\\n\\t\\t\\tspecialEasing[ name ] = easing;\\n\\t\\t}\\n\\t}\\n}\\n\\nfunction Animation( elem, properties, options ) {\\n\\tvar result,\\n\\t\\tstopped,\\n\\t\\tindex = 0,\\n\\t\\tlength = Animation.prefilters.length,\\n\\t\\tdeferred = jQuery.Deferred().always( function() {\\n\\n\\t\\t\\t// Don't match elem in the :animated selector\\n\\t\\t\\tdelete tick.elem;\\n\\t\\t} ),\\n\\t\\ttick = function() {\\n\\t\\t\\tif ( stopped ) {\\n\\t\\t\\t\\treturn false;\\n\\t\\t\\t}\\n\\t\\t\\tvar currentTime = fxNow || createFxNow(),\\n\\t\\t\\t\\tremaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),\\n\\n\\t\\t\\t\\t// Support: Android 2.3 only\\n\\t\\t\\t\\t// Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497)\\n\\t\\t\\t\\ttemp = remaining / animation.duration || 0,\\n\\t\\t\\t\\tpercent = 1 - temp,\\n\\t\\t\\t\\tindex = 0,\\n\\t\\t\\t\\tlength = animation.tweens.length;\\n\\n\\t\\t\\tfor ( ; index < length; index++ ) {\\n\\t\\t\\t\\tanimation.tweens[ index ].run( percent );\\n\\t\\t\\t}\\n\\n\\t\\t\\tdeferred.notifyWith( elem, [ animation, percent, remaining ] );\\n\\n\\t\\t\\tif ( percent < 1 && length ) {\\n\\t\\t\\t\\treturn remaining;\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tdeferred.resolveWith( elem, [ animation ] );\\n\\t\\t\\t\\treturn false;\\n\\t\\t\\t}\\n\\t\\t},\\n\\t\\tanimation = deferred.promise( {\\n\\t\\t\\telem: elem,\\n\\t\\t\\tprops: jQuery.extend( {}, properties ),\\n\\t\\t\\topts: jQuery.extend( true, {\\n\\t\\t\\t\\tspecialEasing: {},\\n\\t\\t\\t\\teasing: jQuery.easing._default\\n\\t\\t\\t}, options ),\\n\\t\\t\\toriginalProperties: properties,\\n\\t\\t\\toriginalOptions: options,\\n\\t\\t\\tstartTime: fxNow || createFxNow(),\\n\\t\\t\\tduration: options.duration,\\n\\t\\t\\ttweens: [],\\n\\t\\t\\tcreateTween: function( prop, end ) {\\n\\t\\t\\t\\tvar tween = jQuery.Tween( elem, animation.opts, prop, end,\\n\\t\\t\\t\\t\\t\\tanimation.opts.specialEasing[ prop ] || animation.opts.easing );\\n\\t\\t\\t\\tanimation.tweens.push( tween );\\n\\t\\t\\t\\treturn tween;\\n\\t\\t\\t},\\n\\t\\t\\tstop: function( gotoEnd ) {\\n\\t\\t\\t\\tvar index = 0,\\n\\n\\t\\t\\t\\t\\t// If we are going to the end, we want to run all the tweens\\n\\t\\t\\t\\t\\t// otherwise we skip this part\\n\\t\\t\\t\\t\\tlength = gotoEnd ? animation.tweens.length : 0;\\n\\t\\t\\t\\tif ( stopped ) {\\n\\t\\t\\t\\t\\treturn this;\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tstopped = true;\\n\\t\\t\\t\\tfor ( ; index < length; index++ ) {\\n\\t\\t\\t\\t\\tanimation.tweens[ index ].run( 1 );\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t// Resolve when we played the last frame; otherwise, reject\\n\\t\\t\\t\\tif ( gotoEnd ) {\\n\\t\\t\\t\\t\\tdeferred.notifyWith( elem, [ animation, 1, 0 ] );\\n\\t\\t\\t\\t\\tdeferred.resolveWith( elem, [ animation, gotoEnd ] );\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\tdeferred.rejectWith( elem, [ animation, gotoEnd ] );\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\treturn this;\\n\\t\\t\\t}\\n\\t\\t} ),\\n\\t\\tprops = animation.props;\\n\\n\\tpropFilter( props, animation.opts.specialEasing );\\n\\n\\tfor ( ; index < length; index++ ) {\\n\\t\\tresult = Animation.prefilters[ index ].call( animation, elem, props, animation.opts );\\n\\t\\tif ( result ) {\\n\\t\\t\\tif ( jQuery.isFunction( result.stop ) ) {\\n\\t\\t\\t\\tjQuery._queueHooks( animation.elem, animation.opts.queue ).stop =\\n\\t\\t\\t\\t\\tjQuery.proxy( result.stop, result );\\n\\t\\t\\t}\\n\\t\\t\\treturn result;\\n\\t\\t}\\n\\t}\\n\\n\\tjQuery.map( props, createTween, animation );\\n\\n\\tif ( jQuery.isFunction( animation.opts.start ) ) {\\n\\t\\tanimation.opts.start.call( elem, animation );\\n\\t}\\n\\n\\tjQuery.fx.timer(\\n\\t\\tjQuery.extend( tick, {\\n\\t\\t\\telem: elem,\\n\\t\\t\\tanim: animation,\\n\\t\\t\\tqueue: animation.opts.queue\\n\\t\\t} )\\n\\t);\\n\\n\\t// attach callbacks from options\\n\\treturn animation.progress( animation.opts.progress )\\n\\t\\t.done( animation.opts.done, animation.opts.complete )\\n\\t\\t.fail( animation.opts.fail )\\n\\t\\t.always( animation.opts.always );\\n}\\n\\njQuery.Animation = jQuery.extend( Animation, {\\n\\n\\ttweeners: {\\n\\t\\t\\\"*\\\": [ function( prop, value ) {\\n\\t\\t\\tvar tween = this.createTween( prop, value );\\n\\t\\t\\tadjustCSS( tween.elem, prop, rcssNum.exec( value ), tween );\\n\\t\\t\\treturn tween;\\n\\t\\t} ]\\n\\t},\\n\\n\\ttweener: function( props, callback ) {\\n\\t\\tif ( jQuery.isFunction( props ) ) {\\n\\t\\t\\tcallback = props;\\n\\t\\t\\tprops = [ \\\"*\\\" ];\\n\\t\\t} else {\\n\\t\\t\\tprops = props.match( rnothtmlwhite );\\n\\t\\t}\\n\\n\\t\\tvar prop,\\n\\t\\t\\tindex = 0,\\n\\t\\t\\tlength = props.length;\\n\\n\\t\\tfor ( ; index < length; index++ ) {\\n\\t\\t\\tprop = props[ index ];\\n\\t\\t\\tAnimation.tweeners[ prop ] = Animation.tweeners[ prop ] || [];\\n\\t\\t\\tAnimation.tweeners[ prop ].unshift( callback );\\n\\t\\t}\\n\\t},\\n\\n\\tprefilters: [ defaultPrefilter ],\\n\\n\\tprefilter: function( callback, prepend ) {\\n\\t\\tif ( prepend ) {\\n\\t\\t\\tAnimation.prefilters.unshift( callback );\\n\\t\\t} else {\\n\\t\\t\\tAnimation.prefilters.push( callback );\\n\\t\\t}\\n\\t}\\n} );\\n\\njQuery.speed = function( speed, easing, fn ) {\\n\\tvar opt = speed && typeof speed === \\\"object\\\" ? jQuery.extend( {}, speed ) : {\\n\\t\\tcomplete: fn || !fn && easing ||\\n\\t\\t\\tjQuery.isFunction( speed ) && speed,\\n\\t\\tduration: speed,\\n\\t\\teasing: fn && easing || easing && !jQuery.isFunction( easing ) && easing\\n\\t};\\n\\n\\t// Go to the end state if fx are off or if document is hidden\\n\\tif ( jQuery.fx.off || document.hidden ) {\\n\\t\\topt.duration = 0;\\n\\n\\t} else {\\n\\t\\tif ( typeof opt.duration !== \\\"number\\\" ) {\\n\\t\\t\\tif ( opt.duration in jQuery.fx.speeds ) {\\n\\t\\t\\t\\topt.duration = jQuery.fx.speeds[ opt.duration ];\\n\\n\\t\\t\\t} else {\\n\\t\\t\\t\\topt.duration = jQuery.fx.speeds._default;\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n\\n\\t// Normalize opt.queue - true/undefined/null -> \\\"fx\\\"\\n\\tif ( opt.queue == null || opt.queue === true ) {\\n\\t\\topt.queue = \\\"fx\\\";\\n\\t}\\n\\n\\t// Queueing\\n\\topt.old = opt.complete;\\n\\n\\topt.complete = function() {\\n\\t\\tif ( jQuery.isFunction( opt.old ) ) {\\n\\t\\t\\topt.old.call( this );\\n\\t\\t}\\n\\n\\t\\tif ( opt.queue ) {\\n\\t\\t\\tjQuery.dequeue( this, opt.queue );\\n\\t\\t}\\n\\t};\\n\\n\\treturn opt;\\n};\\n\\njQuery.fn.extend( {\\n\\tfadeTo: function( speed, to, easing, callback ) {\\n\\n\\t\\t// Show any hidden elements after setting opacity to 0\\n\\t\\treturn this.filter( isHiddenWithinTree ).css( \\\"opacity\\\", 0 ).show()\\n\\n\\t\\t\\t// Animate to the value specified\\n\\t\\t\\t.end().animate( { opacity: to }, speed, easing, callback );\\n\\t},\\n\\tanimate: function( prop, speed, easing, callback ) {\\n\\t\\tvar empty = jQuery.isEmptyObject( prop ),\\n\\t\\t\\toptall = jQuery.speed( speed, easing, callback ),\\n\\t\\t\\tdoAnimation = function() {\\n\\n\\t\\t\\t\\t// Operate on a copy of prop so per-property easing won't be lost\\n\\t\\t\\t\\tvar anim = Animation( this, jQuery.extend( {}, prop ), optall );\\n\\n\\t\\t\\t\\t// Empty animations, or finishing resolves immediately\\n\\t\\t\\t\\tif ( empty || dataPriv.get( this, \\\"finish\\\" ) ) {\\n\\t\\t\\t\\t\\tanim.stop( true );\\n\\t\\t\\t\\t}\\n\\t\\t\\t};\\n\\t\\t\\tdoAnimation.finish = doAnimation;\\n\\n\\t\\treturn empty || optall.queue === false ?\\n\\t\\t\\tthis.each( doAnimation ) :\\n\\t\\t\\tthis.queue( optall.queue, doAnimation );\\n\\t},\\n\\tstop: function( type, clearQueue, gotoEnd ) {\\n\\t\\tvar stopQueue = function( hooks ) {\\n\\t\\t\\tvar stop = hooks.stop;\\n\\t\\t\\tdelete hooks.stop;\\n\\t\\t\\tstop( gotoEnd );\\n\\t\\t};\\n\\n\\t\\tif ( typeof type !== \\\"string\\\" ) {\\n\\t\\t\\tgotoEnd = clearQueue;\\n\\t\\t\\tclearQueue = type;\\n\\t\\t\\ttype = undefined;\\n\\t\\t}\\n\\t\\tif ( clearQueue && type !== false ) {\\n\\t\\t\\tthis.queue( type || \\\"fx\\\", [] );\\n\\t\\t}\\n\\n\\t\\treturn this.each( function() {\\n\\t\\t\\tvar dequeue = true,\\n\\t\\t\\t\\tindex = type != null && type + \\\"queueHooks\\\",\\n\\t\\t\\t\\ttimers = jQuery.timers,\\n\\t\\t\\t\\tdata = dataPriv.get( this );\\n\\n\\t\\t\\tif ( index ) {\\n\\t\\t\\t\\tif ( data[ index ] && data[ index ].stop ) {\\n\\t\\t\\t\\t\\tstopQueue( data[ index ] );\\n\\t\\t\\t\\t}\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tfor ( index in data ) {\\n\\t\\t\\t\\t\\tif ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {\\n\\t\\t\\t\\t\\t\\tstopQueue( data[ index ] );\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\n\\t\\t\\tfor ( index = timers.length; index--; ) {\\n\\t\\t\\t\\tif ( timers[ index ].elem === this &&\\n\\t\\t\\t\\t\\t( type == null || timers[ index ].queue === type ) ) {\\n\\n\\t\\t\\t\\t\\ttimers[ index ].anim.stop( gotoEnd );\\n\\t\\t\\t\\t\\tdequeue = false;\\n\\t\\t\\t\\t\\ttimers.splice( index, 1 );\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Start the next in the queue if the last step wasn't forced.\\n\\t\\t\\t// Timers currently will call their complete callbacks, which\\n\\t\\t\\t// will dequeue but only if they were gotoEnd.\\n\\t\\t\\tif ( dequeue || !gotoEnd ) {\\n\\t\\t\\t\\tjQuery.dequeue( this, type );\\n\\t\\t\\t}\\n\\t\\t} );\\n\\t},\\n\\tfinish: function( type ) {\\n\\t\\tif ( type !== false ) {\\n\\t\\t\\ttype = type || \\\"fx\\\";\\n\\t\\t}\\n\\t\\treturn this.each( function() {\\n\\t\\t\\tvar index,\\n\\t\\t\\t\\tdata = dataPriv.get( this ),\\n\\t\\t\\t\\tqueue = data[ type + \\\"queue\\\" ],\\n\\t\\t\\t\\thooks = data[ type + \\\"queueHooks\\\" ],\\n\\t\\t\\t\\ttimers = jQuery.timers,\\n\\t\\t\\t\\tlength = queue ? queue.length : 0;\\n\\n\\t\\t\\t// Enable finishing flag on private data\\n\\t\\t\\tdata.finish = true;\\n\\n\\t\\t\\t// Empty the queue first\\n\\t\\t\\tjQuery.queue( this, type, [] );\\n\\n\\t\\t\\tif ( hooks && hooks.stop ) {\\n\\t\\t\\t\\thooks.stop.call( this, true );\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Look for any active animations, and finish them\\n\\t\\t\\tfor ( index = timers.length; index--; ) {\\n\\t\\t\\t\\tif ( timers[ index ].elem === this && timers[ index ].queue === type ) {\\n\\t\\t\\t\\t\\ttimers[ index ].anim.stop( true );\\n\\t\\t\\t\\t\\ttimers.splice( index, 1 );\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Look for any animations in the old queue and finish them\\n\\t\\t\\tfor ( index = 0; index < length; index++ ) {\\n\\t\\t\\t\\tif ( queue[ index ] && queue[ index ].finish ) {\\n\\t\\t\\t\\t\\tqueue[ index ].finish.call( this );\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Turn off finishing flag\\n\\t\\t\\tdelete data.finish;\\n\\t\\t} );\\n\\t}\\n} );\\n\\njQuery.each( [ \\\"toggle\\\", \\\"show\\\", \\\"hide\\\" ], function( i, name ) {\\n\\tvar cssFn = jQuery.fn[ name ];\\n\\tjQuery.fn[ name ] = function( speed, easing, callback ) {\\n\\t\\treturn speed == null || typeof speed === \\\"boolean\\\" ?\\n\\t\\t\\tcssFn.apply( this, arguments ) :\\n\\t\\t\\tthis.animate( genFx( name, true ), speed, easing, callback );\\n\\t};\\n} );\\n\\n// Generate shortcuts for custom animations\\njQuery.each( {\\n\\tslideDown: genFx( \\\"show\\\" ),\\n\\tslideUp: genFx( \\\"hide\\\" ),\\n\\tslideToggle: genFx( \\\"toggle\\\" ),\\n\\tfadeIn: { opacity: \\\"show\\\" },\\n\\tfadeOut: { opacity: \\\"hide\\\" },\\n\\tfadeToggle: { opacity: \\\"toggle\\\" }\\n}, function( name, props ) {\\n\\tjQuery.fn[ name ] = function( speed, easing, callback ) {\\n\\t\\treturn this.animate( props, speed, easing, callback );\\n\\t};\\n} );\\n\\njQuery.timers = [];\\njQuery.fx.tick = function() {\\n\\tvar timer,\\n\\t\\ti = 0,\\n\\t\\ttimers = jQuery.timers;\\n\\n\\tfxNow = jQuery.now();\\n\\n\\tfor ( ; i < timers.length; i++ ) {\\n\\t\\ttimer = timers[ i ];\\n\\n\\t\\t// Checks the timer has not already been removed\\n\\t\\tif ( !timer() && timers[ i ] === timer ) {\\n\\t\\t\\ttimers.splice( i--, 1 );\\n\\t\\t}\\n\\t}\\n\\n\\tif ( !timers.length ) {\\n\\t\\tjQuery.fx.stop();\\n\\t}\\n\\tfxNow = undefined;\\n};\\n\\njQuery.fx.timer = function( timer ) {\\n\\tjQuery.timers.push( timer );\\n\\tif ( timer() ) {\\n\\t\\tjQuery.fx.start();\\n\\t} else {\\n\\t\\tjQuery.timers.pop();\\n\\t}\\n};\\n\\njQuery.fx.interval = 13;\\njQuery.fx.start = function() {\\n\\tif ( !timerId ) {\\n\\t\\ttimerId = window.requestAnimationFrame ?\\n\\t\\t\\twindow.requestAnimationFrame( raf ) :\\n\\t\\t\\twindow.setInterval( jQuery.fx.tick, jQuery.fx.interval );\\n\\t}\\n};\\n\\njQuery.fx.stop = function() {\\n\\tif ( window.cancelAnimationFrame ) {\\n\\t\\twindow.cancelAnimationFrame( timerId );\\n\\t} else {\\n\\t\\twindow.clearInterval( timerId );\\n\\t}\\n\\n\\ttimerId = null;\\n};\\n\\njQuery.fx.speeds = {\\n\\tslow: 600,\\n\\tfast: 200,\\n\\n\\t// Default speed\\n\\t_default: 400\\n};\\n\\n\\n// Based off of the plugin by Clint Helfers, with permission.\\n// https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/\\njQuery.fn.delay = function( time, type ) {\\n\\ttime = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;\\n\\ttype = type || \\\"fx\\\";\\n\\n\\treturn this.queue( type, function( next, hooks ) {\\n\\t\\tvar timeout = window.setTimeout( next, time );\\n\\t\\thooks.stop = function() {\\n\\t\\t\\twindow.clearTimeout( timeout );\\n\\t\\t};\\n\\t} );\\n};\\n\\n\\n( function() {\\n\\tvar input = document.createElement( \\\"input\\\" ),\\n\\t\\tselect = document.createElement( \\\"select\\\" ),\\n\\t\\topt = select.appendChild( document.createElement( \\\"option\\\" ) );\\n\\n\\tinput.type = \\\"checkbox\\\";\\n\\n\\t// Support: Android <=4.3 only\\n\\t// Default value for a checkbox should be \\\"on\\\"\\n\\tsupport.checkOn = input.value !== \\\"\\\";\\n\\n\\t// Support: IE <=11 only\\n\\t// Must access selectedIndex to make default options select\\n\\tsupport.optSelected = opt.selected;\\n\\n\\t// Support: IE <=11 only\\n\\t// An input loses its value after becoming a radio\\n\\tinput = document.createElement( \\\"input\\\" );\\n\\tinput.value = \\\"t\\\";\\n\\tinput.type = \\\"radio\\\";\\n\\tsupport.radioValue = input.value === \\\"t\\\";\\n} )();\\n\\n\\nvar boolHook,\\n\\tattrHandle = jQuery.expr.attrHandle;\\n\\njQuery.fn.extend( {\\n\\tattr: function( name, value ) {\\n\\t\\treturn access( this, jQuery.attr, name, value, arguments.length > 1 );\\n\\t},\\n\\n\\tremoveAttr: function( name ) {\\n\\t\\treturn this.each( function() {\\n\\t\\t\\tjQuery.removeAttr( this, name );\\n\\t\\t} );\\n\\t}\\n} );\\n\\njQuery.extend( {\\n\\tattr: function( elem, name, value ) {\\n\\t\\tvar ret, hooks,\\n\\t\\t\\tnType = elem.nodeType;\\n\\n\\t\\t// Don't get/set attributes on text, comment and attribute nodes\\n\\t\\tif ( nType === 3 || nType === 8 || nType === 2 ) {\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\t// Fallback to prop when attributes are not supported\\n\\t\\tif ( typeof elem.getAttribute === \\\"undefined\\\" ) {\\n\\t\\t\\treturn jQuery.prop( elem, name, value );\\n\\t\\t}\\n\\n\\t\\t// Attribute hooks are determined by the lowercase version\\n\\t\\t// Grab necessary hook if one is defined\\n\\t\\tif ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {\\n\\t\\t\\thooks = jQuery.attrHooks[ name.toLowerCase() ] ||\\n\\t\\t\\t\\t( jQuery.expr.match.bool.test( name ) ? boolHook : undefined );\\n\\t\\t}\\n\\n\\t\\tif ( value !== undefined ) {\\n\\t\\t\\tif ( value === null ) {\\n\\t\\t\\t\\tjQuery.removeAttr( elem, name );\\n\\t\\t\\t\\treturn;\\n\\t\\t\\t}\\n\\n\\t\\t\\tif ( hooks && \\\"set\\\" in hooks &&\\n\\t\\t\\t\\t( ret = hooks.set( elem, value, name ) ) !== undefined ) {\\n\\t\\t\\t\\treturn ret;\\n\\t\\t\\t}\\n\\n\\t\\t\\telem.setAttribute( name, value + \\\"\\\" );\\n\\t\\t\\treturn value;\\n\\t\\t}\\n\\n\\t\\tif ( hooks && \\\"get\\\" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {\\n\\t\\t\\treturn ret;\\n\\t\\t}\\n\\n\\t\\tret = jQuery.find.attr( elem, name );\\n\\n\\t\\t// Non-existent attributes return null, we normalize to undefined\\n\\t\\treturn ret == null ? undefined : ret;\\n\\t},\\n\\n\\tattrHooks: {\\n\\t\\ttype: {\\n\\t\\t\\tset: function( elem, value ) {\\n\\t\\t\\t\\tif ( !support.radioValue && value === \\\"radio\\\" &&\\n\\t\\t\\t\\t\\tjQuery.nodeName( elem, \\\"input\\\" ) ) {\\n\\t\\t\\t\\t\\tvar val = elem.value;\\n\\t\\t\\t\\t\\telem.setAttribute( \\\"type\\\", value );\\n\\t\\t\\t\\t\\tif ( val ) {\\n\\t\\t\\t\\t\\t\\telem.value = val;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\treturn value;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t},\\n\\n\\tremoveAttr: function( elem, value ) {\\n\\t\\tvar name,\\n\\t\\t\\ti = 0,\\n\\n\\t\\t\\t// Attribute names can contain non-HTML whitespace characters\\n\\t\\t\\t// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\\n\\t\\t\\tattrNames = value && value.match( rnothtmlwhite );\\n\\n\\t\\tif ( attrNames && elem.nodeType === 1 ) {\\n\\t\\t\\twhile ( ( name = attrNames[ i++ ] ) ) {\\n\\t\\t\\t\\telem.removeAttribute( name );\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n} );\\n\\n// Hooks for boolean attributes\\nboolHook = {\\n\\tset: function( elem, value, name ) {\\n\\t\\tif ( value === false ) {\\n\\n\\t\\t\\t// Remove boolean attributes when set to false\\n\\t\\t\\tjQuery.removeAttr( elem, name );\\n\\t\\t} else {\\n\\t\\t\\telem.setAttribute( name, name );\\n\\t\\t}\\n\\t\\treturn name;\\n\\t}\\n};\\n\\njQuery.each( jQuery.expr.match.bool.source.match( /\\\\w+/g ), function( i, name ) {\\n\\tvar getter = attrHandle[ name ] || jQuery.find.attr;\\n\\n\\tattrHandle[ name ] = function( elem, name, isXML ) {\\n\\t\\tvar ret, handle,\\n\\t\\t\\tlowercaseName = name.toLowerCase();\\n\\n\\t\\tif ( !isXML ) {\\n\\n\\t\\t\\t// Avoid an infinite loop by temporarily removing this function from the getter\\n\\t\\t\\thandle = attrHandle[ lowercaseName ];\\n\\t\\t\\tattrHandle[ lowercaseName ] = ret;\\n\\t\\t\\tret = getter( elem, name, isXML ) != null ?\\n\\t\\t\\t\\tlowercaseName :\\n\\t\\t\\t\\tnull;\\n\\t\\t\\tattrHandle[ lowercaseName ] = handle;\\n\\t\\t}\\n\\t\\treturn ret;\\n\\t};\\n} );\\n\\n\\n\\n\\nvar rfocusable = /^(?:input|select|textarea|button)$/i,\\n\\trclickable = /^(?:a|area)$/i;\\n\\njQuery.fn.extend( {\\n\\tprop: function( name, value ) {\\n\\t\\treturn access( this, jQuery.prop, name, value, arguments.length > 1 );\\n\\t},\\n\\n\\tremoveProp: function( name ) {\\n\\t\\treturn this.each( function() {\\n\\t\\t\\tdelete this[ jQuery.propFix[ name ] || name ];\\n\\t\\t} );\\n\\t}\\n} );\\n\\njQuery.extend( {\\n\\tprop: function( elem, name, value ) {\\n\\t\\tvar ret, hooks,\\n\\t\\t\\tnType = elem.nodeType;\\n\\n\\t\\t// Don't get/set properties on text, comment and attribute nodes\\n\\t\\tif ( nType === 3 || nType === 8 || nType === 2 ) {\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\tif ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {\\n\\n\\t\\t\\t// Fix name and attach hooks\\n\\t\\t\\tname = jQuery.propFix[ name ] || name;\\n\\t\\t\\thooks = jQuery.propHooks[ name ];\\n\\t\\t}\\n\\n\\t\\tif ( value !== undefined ) {\\n\\t\\t\\tif ( hooks && \\\"set\\\" in hooks &&\\n\\t\\t\\t\\t( ret = hooks.set( elem, value, name ) ) !== undefined ) {\\n\\t\\t\\t\\treturn ret;\\n\\t\\t\\t}\\n\\n\\t\\t\\treturn ( elem[ name ] = value );\\n\\t\\t}\\n\\n\\t\\tif ( hooks && \\\"get\\\" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {\\n\\t\\t\\treturn ret;\\n\\t\\t}\\n\\n\\t\\treturn elem[ name ];\\n\\t},\\n\\n\\tpropHooks: {\\n\\t\\ttabIndex: {\\n\\t\\t\\tget: function( elem ) {\\n\\n\\t\\t\\t\\t// Support: IE <=9 - 11 only\\n\\t\\t\\t\\t// elem.tabIndex doesn't always return the\\n\\t\\t\\t\\t// correct value when it hasn't been explicitly set\\n\\t\\t\\t\\t// https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/\\n\\t\\t\\t\\t// Use proper attribute retrieval(#12072)\\n\\t\\t\\t\\tvar tabindex = jQuery.find.attr( elem, \\\"tabindex\\\" );\\n\\n\\t\\t\\t\\tif ( tabindex ) {\\n\\t\\t\\t\\t\\treturn parseInt( tabindex, 10 );\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\tif (\\n\\t\\t\\t\\t\\trfocusable.test( elem.nodeName ) ||\\n\\t\\t\\t\\t\\trclickable.test( elem.nodeName ) &&\\n\\t\\t\\t\\t\\telem.href\\n\\t\\t\\t\\t) {\\n\\t\\t\\t\\t\\treturn 0;\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\treturn -1;\\n\\t\\t\\t}\\n\\t\\t}\\n\\t},\\n\\n\\tpropFix: {\\n\\t\\t\\\"for\\\": \\\"htmlFor\\\",\\n\\t\\t\\\"class\\\": \\\"className\\\"\\n\\t}\\n} );\\n\\n// Support: IE <=11 only\\n// Accessing the selectedIndex property\\n// forces the browser to respect setting selected\\n// on the option\\n// The getter ensures a default option is selected\\n// when in an optgroup\\n// eslint rule \\\"no-unused-expressions\\\" is disabled for this code\\n// since it considers such accessions noop\\nif ( !support.optSelected ) {\\n\\tjQuery.propHooks.selected = {\\n\\t\\tget: function( elem ) {\\n\\n\\t\\t\\t/* eslint no-unused-expressions: \\\"off\\\" */\\n\\n\\t\\t\\tvar parent = elem.parentNode;\\n\\t\\t\\tif ( parent && parent.parentNode ) {\\n\\t\\t\\t\\tparent.parentNode.selectedIndex;\\n\\t\\t\\t}\\n\\t\\t\\treturn null;\\n\\t\\t},\\n\\t\\tset: function( elem ) {\\n\\n\\t\\t\\t/* eslint no-unused-expressions: \\\"off\\\" */\\n\\n\\t\\t\\tvar parent = elem.parentNode;\\n\\t\\t\\tif ( parent ) {\\n\\t\\t\\t\\tparent.selectedIndex;\\n\\n\\t\\t\\t\\tif ( parent.parentNode ) {\\n\\t\\t\\t\\t\\tparent.parentNode.selectedIndex;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t};\\n}\\n\\njQuery.each( [\\n\\t\\\"tabIndex\\\",\\n\\t\\\"readOnly\\\",\\n\\t\\\"maxLength\\\",\\n\\t\\\"cellSpacing\\\",\\n\\t\\\"cellPadding\\\",\\n\\t\\\"rowSpan\\\",\\n\\t\\\"colSpan\\\",\\n\\t\\\"useMap\\\",\\n\\t\\\"frameBorder\\\",\\n\\t\\\"contentEditable\\\"\\n], function() {\\n\\tjQuery.propFix[ this.toLowerCase() ] = this;\\n} );\\n\\n\\n\\n\\n\\t// Strip and collapse whitespace according to HTML spec\\n\\t// https://html.spec.whatwg.org/multipage/infrastructure.html#strip-and-collapse-whitespace\\n\\tfunction stripAndCollapse( value ) {\\n\\t\\tvar tokens = value.match( rnothtmlwhite ) || [];\\n\\t\\treturn tokens.join( \\\" \\\" );\\n\\t}\\n\\n\\nfunction getClass( elem ) {\\n\\treturn elem.getAttribute && elem.getAttribute( \\\"class\\\" ) || \\\"\\\";\\n}\\n\\njQuery.fn.extend( {\\n\\taddClass: function( value ) {\\n\\t\\tvar classes, elem, cur, curValue, clazz, j, finalValue,\\n\\t\\t\\ti = 0;\\n\\n\\t\\tif ( jQuery.isFunction( value ) ) {\\n\\t\\t\\treturn this.each( function( j ) {\\n\\t\\t\\t\\tjQuery( this ).addClass( value.call( this, j, getClass( this ) ) );\\n\\t\\t\\t} );\\n\\t\\t}\\n\\n\\t\\tif ( typeof value === \\\"string\\\" && value ) {\\n\\t\\t\\tclasses = value.match( rnothtmlwhite ) || [];\\n\\n\\t\\t\\twhile ( ( elem = this[ i++ ] ) ) {\\n\\t\\t\\t\\tcurValue = getClass( elem );\\n\\t\\t\\t\\tcur = elem.nodeType === 1 && ( \\\" \\\" + stripAndCollapse( curValue ) + \\\" \\\" );\\n\\n\\t\\t\\t\\tif ( cur ) {\\n\\t\\t\\t\\t\\tj = 0;\\n\\t\\t\\t\\t\\twhile ( ( clazz = classes[ j++ ] ) ) {\\n\\t\\t\\t\\t\\t\\tif ( cur.indexOf( \\\" \\\" + clazz + \\\" \\\" ) < 0 ) {\\n\\t\\t\\t\\t\\t\\t\\tcur += clazz + \\\" \\\";\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t// Only assign if different to avoid unneeded rendering.\\n\\t\\t\\t\\t\\tfinalValue = stripAndCollapse( cur );\\n\\t\\t\\t\\t\\tif ( curValue !== finalValue ) {\\n\\t\\t\\t\\t\\t\\telem.setAttribute( \\\"class\\\", finalValue );\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\treturn this;\\n\\t},\\n\\n\\tremoveClass: function( value ) {\\n\\t\\tvar classes, elem, cur, curValue, clazz, j, finalValue,\\n\\t\\t\\ti = 0;\\n\\n\\t\\tif ( jQuery.isFunction( value ) ) {\\n\\t\\t\\treturn this.each( function( j ) {\\n\\t\\t\\t\\tjQuery( this ).removeClass( value.call( this, j, getClass( this ) ) );\\n\\t\\t\\t} );\\n\\t\\t}\\n\\n\\t\\tif ( !arguments.length ) {\\n\\t\\t\\treturn this.attr( \\\"class\\\", \\\"\\\" );\\n\\t\\t}\\n\\n\\t\\tif ( typeof value === \\\"string\\\" && value ) {\\n\\t\\t\\tclasses = value.match( rnothtmlwhite ) || [];\\n\\n\\t\\t\\twhile ( ( elem = this[ i++ ] ) ) {\\n\\t\\t\\t\\tcurValue = getClass( elem );\\n\\n\\t\\t\\t\\t// This expression is here for better compressibility (see addClass)\\n\\t\\t\\t\\tcur = elem.nodeType === 1 && ( \\\" \\\" + stripAndCollapse( curValue ) + \\\" \\\" );\\n\\n\\t\\t\\t\\tif ( cur ) {\\n\\t\\t\\t\\t\\tj = 0;\\n\\t\\t\\t\\t\\twhile ( ( clazz = classes[ j++ ] ) ) {\\n\\n\\t\\t\\t\\t\\t\\t// Remove *all* instances\\n\\t\\t\\t\\t\\t\\twhile ( cur.indexOf( \\\" \\\" + clazz + \\\" \\\" ) > -1 ) {\\n\\t\\t\\t\\t\\t\\t\\tcur = cur.replace( \\\" \\\" + clazz + \\\" \\\", \\\" \\\" );\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t// Only assign if different to avoid unneeded rendering.\\n\\t\\t\\t\\t\\tfinalValue = stripAndCollapse( cur );\\n\\t\\t\\t\\t\\tif ( curValue !== finalValue ) {\\n\\t\\t\\t\\t\\t\\telem.setAttribute( \\\"class\\\", finalValue );\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\treturn this;\\n\\t},\\n\\n\\ttoggleClass: function( value, stateVal ) {\\n\\t\\tvar type = typeof value;\\n\\n\\t\\tif ( typeof stateVal === \\\"boolean\\\" && type === \\\"string\\\" ) {\\n\\t\\t\\treturn stateVal ? this.addClass( value ) : this.removeClass( value );\\n\\t\\t}\\n\\n\\t\\tif ( jQuery.isFunction( value ) ) {\\n\\t\\t\\treturn this.each( function( i ) {\\n\\t\\t\\t\\tjQuery( this ).toggleClass(\\n\\t\\t\\t\\t\\tvalue.call( this, i, getClass( this ), stateVal ),\\n\\t\\t\\t\\t\\tstateVal\\n\\t\\t\\t\\t);\\n\\t\\t\\t} );\\n\\t\\t}\\n\\n\\t\\treturn this.each( function() {\\n\\t\\t\\tvar className, i, self, classNames;\\n\\n\\t\\t\\tif ( type === \\\"string\\\" ) {\\n\\n\\t\\t\\t\\t// Toggle individual class names\\n\\t\\t\\t\\ti = 0;\\n\\t\\t\\t\\tself = jQuery( this );\\n\\t\\t\\t\\tclassNames = value.match( rnothtmlwhite ) || [];\\n\\n\\t\\t\\t\\twhile ( ( className = classNames[ i++ ] ) ) {\\n\\n\\t\\t\\t\\t\\t// Check each className given, space separated list\\n\\t\\t\\t\\t\\tif ( self.hasClass( className ) ) {\\n\\t\\t\\t\\t\\t\\tself.removeClass( className );\\n\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\tself.addClass( className );\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t// Toggle whole class name\\n\\t\\t\\t} else if ( value === undefined || type === \\\"boolean\\\" ) {\\n\\t\\t\\t\\tclassName = getClass( this );\\n\\t\\t\\t\\tif ( className ) {\\n\\n\\t\\t\\t\\t\\t// Store className if set\\n\\t\\t\\t\\t\\tdataPriv.set( this, \\\"__className__\\\", className );\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t// If the element has a class name or if we're passed `false`,\\n\\t\\t\\t\\t// then remove the whole classname (if there was one, the above saved it).\\n\\t\\t\\t\\t// Otherwise bring back whatever was previously saved (if anything),\\n\\t\\t\\t\\t// falling back to the empty string if nothing was stored.\\n\\t\\t\\t\\tif ( this.setAttribute ) {\\n\\t\\t\\t\\t\\tthis.setAttribute( \\\"class\\\",\\n\\t\\t\\t\\t\\t\\tclassName || value === false ?\\n\\t\\t\\t\\t\\t\\t\\\"\\\" :\\n\\t\\t\\t\\t\\t\\tdataPriv.get( this, \\\"__className__\\\" ) || \\\"\\\"\\n\\t\\t\\t\\t\\t);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t} );\\n\\t},\\n\\n\\thasClass: function( selector ) {\\n\\t\\tvar className, elem,\\n\\t\\t\\ti = 0;\\n\\n\\t\\tclassName = \\\" \\\" + selector + \\\" \\\";\\n\\t\\twhile ( ( elem = this[ i++ ] ) ) {\\n\\t\\t\\tif ( elem.nodeType === 1 &&\\n\\t\\t\\t\\t( \\\" \\\" + stripAndCollapse( getClass( elem ) ) + \\\" \\\" ).indexOf( className ) > -1 ) {\\n\\t\\t\\t\\t\\treturn true;\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\treturn false;\\n\\t}\\n} );\\n\\n\\n\\n\\nvar rreturn = /\\\\r/g;\\n\\njQuery.fn.extend( {\\n\\tval: function( value ) {\\n\\t\\tvar hooks, ret, isFunction,\\n\\t\\t\\telem = this[ 0 ];\\n\\n\\t\\tif ( !arguments.length ) {\\n\\t\\t\\tif ( elem ) {\\n\\t\\t\\t\\thooks = jQuery.valHooks[ elem.type ] ||\\n\\t\\t\\t\\t\\tjQuery.valHooks[ elem.nodeName.toLowerCase() ];\\n\\n\\t\\t\\t\\tif ( hooks &&\\n\\t\\t\\t\\t\\t\\\"get\\\" in hooks &&\\n\\t\\t\\t\\t\\t( ret = hooks.get( elem, \\\"value\\\" ) ) !== undefined\\n\\t\\t\\t\\t) {\\n\\t\\t\\t\\t\\treturn ret;\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\tret = elem.value;\\n\\n\\t\\t\\t\\t// Handle most common string cases\\n\\t\\t\\t\\tif ( typeof ret === \\\"string\\\" ) {\\n\\t\\t\\t\\t\\treturn ret.replace( rreturn, \\\"\\\" );\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t// Handle cases where value is null/undef or number\\n\\t\\t\\t\\treturn ret == null ? \\\"\\\" : ret;\\n\\t\\t\\t}\\n\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\tisFunction = jQuery.isFunction( value );\\n\\n\\t\\treturn this.each( function( i ) {\\n\\t\\t\\tvar val;\\n\\n\\t\\t\\tif ( this.nodeType !== 1 ) {\\n\\t\\t\\t\\treturn;\\n\\t\\t\\t}\\n\\n\\t\\t\\tif ( isFunction ) {\\n\\t\\t\\t\\tval = value.call( this, i, jQuery( this ).val() );\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tval = value;\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Treat null/undefined as \\\"\\\"; convert numbers to string\\n\\t\\t\\tif ( val == null ) {\\n\\t\\t\\t\\tval = \\\"\\\";\\n\\n\\t\\t\\t} else if ( typeof val === \\\"number\\\" ) {\\n\\t\\t\\t\\tval += \\\"\\\";\\n\\n\\t\\t\\t} else if ( jQuery.isArray( val ) ) {\\n\\t\\t\\t\\tval = jQuery.map( val, function( value ) {\\n\\t\\t\\t\\t\\treturn value == null ? \\\"\\\" : value + \\\"\\\";\\n\\t\\t\\t\\t} );\\n\\t\\t\\t}\\n\\n\\t\\t\\thooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];\\n\\n\\t\\t\\t// If set returns undefined, fall back to normal setting\\n\\t\\t\\tif ( !hooks || !( \\\"set\\\" in hooks ) || hooks.set( this, val, \\\"value\\\" ) === undefined ) {\\n\\t\\t\\t\\tthis.value = val;\\n\\t\\t\\t}\\n\\t\\t} );\\n\\t}\\n} );\\n\\njQuery.extend( {\\n\\tvalHooks: {\\n\\t\\toption: {\\n\\t\\t\\tget: function( elem ) {\\n\\n\\t\\t\\t\\tvar val = jQuery.find.attr( elem, \\\"value\\\" );\\n\\t\\t\\t\\treturn val != null ?\\n\\t\\t\\t\\t\\tval :\\n\\n\\t\\t\\t\\t\\t// Support: IE <=10 - 11 only\\n\\t\\t\\t\\t\\t// option.text throws exceptions (#14686, #14858)\\n\\t\\t\\t\\t\\t// Strip and collapse whitespace\\n\\t\\t\\t\\t\\t// https://html.spec.whatwg.org/#strip-and-collapse-whitespace\\n\\t\\t\\t\\t\\tstripAndCollapse( jQuery.text( elem ) );\\n\\t\\t\\t}\\n\\t\\t},\\n\\t\\tselect: {\\n\\t\\t\\tget: function( elem ) {\\n\\t\\t\\t\\tvar value, option, i,\\n\\t\\t\\t\\t\\toptions = elem.options,\\n\\t\\t\\t\\t\\tindex = elem.selectedIndex,\\n\\t\\t\\t\\t\\tone = elem.type === \\\"select-one\\\",\\n\\t\\t\\t\\t\\tvalues = one ? null : [],\\n\\t\\t\\t\\t\\tmax = one ? index + 1 : options.length;\\n\\n\\t\\t\\t\\tif ( index < 0 ) {\\n\\t\\t\\t\\t\\ti = max;\\n\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\ti = one ? index : 0;\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t// Loop through all the selected options\\n\\t\\t\\t\\tfor ( ; i < max; i++ ) {\\n\\t\\t\\t\\t\\toption = options[ i ];\\n\\n\\t\\t\\t\\t\\t// Support: IE <=9 only\\n\\t\\t\\t\\t\\t// IE8-9 doesn't update selected after form reset (#2551)\\n\\t\\t\\t\\t\\tif ( ( option.selected || i === index ) &&\\n\\n\\t\\t\\t\\t\\t\\t\\t// Don't return options that are disabled or in a disabled optgroup\\n\\t\\t\\t\\t\\t\\t\\t!option.disabled &&\\n\\t\\t\\t\\t\\t\\t\\t( !option.parentNode.disabled ||\\n\\t\\t\\t\\t\\t\\t\\t\\t!jQuery.nodeName( option.parentNode, \\\"optgroup\\\" ) ) ) {\\n\\n\\t\\t\\t\\t\\t\\t// Get the specific value for the option\\n\\t\\t\\t\\t\\t\\tvalue = jQuery( option ).val();\\n\\n\\t\\t\\t\\t\\t\\t// We don't need an array for one selects\\n\\t\\t\\t\\t\\t\\tif ( one ) {\\n\\t\\t\\t\\t\\t\\t\\treturn value;\\n\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t// Multi-Selects return an array\\n\\t\\t\\t\\t\\t\\tvalues.push( value );\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\treturn values;\\n\\t\\t\\t},\\n\\n\\t\\t\\tset: function( elem, value ) {\\n\\t\\t\\t\\tvar optionSet, option,\\n\\t\\t\\t\\t\\toptions = elem.options,\\n\\t\\t\\t\\t\\tvalues = jQuery.makeArray( value ),\\n\\t\\t\\t\\t\\ti = options.length;\\n\\n\\t\\t\\t\\twhile ( i-- ) {\\n\\t\\t\\t\\t\\toption = options[ i ];\\n\\n\\t\\t\\t\\t\\t/* eslint-disable no-cond-assign */\\n\\n\\t\\t\\t\\t\\tif ( option.selected =\\n\\t\\t\\t\\t\\t\\tjQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1\\n\\t\\t\\t\\t\\t) {\\n\\t\\t\\t\\t\\t\\toptionSet = true;\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t/* eslint-enable no-cond-assign */\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t// Force browsers to behave consistently when non-matching value is set\\n\\t\\t\\t\\tif ( !optionSet ) {\\n\\t\\t\\t\\t\\telem.selectedIndex = -1;\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\treturn values;\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n} );\\n\\n// Radios and checkboxes getter/setter\\njQuery.each( [ \\\"radio\\\", \\\"checkbox\\\" ], function() {\\n\\tjQuery.valHooks[ this ] = {\\n\\t\\tset: function( elem, value ) {\\n\\t\\t\\tif ( jQuery.isArray( value ) ) {\\n\\t\\t\\t\\treturn ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 );\\n\\t\\t\\t}\\n\\t\\t}\\n\\t};\\n\\tif ( !support.checkOn ) {\\n\\t\\tjQuery.valHooks[ this ].get = function( elem ) {\\n\\t\\t\\treturn elem.getAttribute( \\\"value\\\" ) === null ? \\\"on\\\" : elem.value;\\n\\t\\t};\\n\\t}\\n} );\\n\\n\\n\\n\\n// Return jQuery for attributes-only inclusion\\n\\n\\nvar rfocusMorph = /^(?:focusinfocus|focusoutblur)$/;\\n\\njQuery.extend( jQuery.event, {\\n\\n\\ttrigger: function( event, data, elem, onlyHandlers ) {\\n\\n\\t\\tvar i, cur, tmp, bubbleType, ontype, handle, special,\\n\\t\\t\\teventPath = [ elem || document ],\\n\\t\\t\\ttype = hasOwn.call( event, \\\"type\\\" ) ? event.type : event,\\n\\t\\t\\tnamespaces = hasOwn.call( event, \\\"namespace\\\" ) ? event.namespace.split( \\\".\\\" ) : [];\\n\\n\\t\\tcur = tmp = elem = elem || document;\\n\\n\\t\\t// Don't do events on text and comment nodes\\n\\t\\tif ( elem.nodeType === 3 || elem.nodeType === 8 ) {\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\t// focus/blur morphs to focusin/out; ensure we're not firing them right now\\n\\t\\tif ( rfocusMorph.test( type + jQuery.event.triggered ) ) {\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\tif ( type.indexOf( \\\".\\\" ) > -1 ) {\\n\\n\\t\\t\\t// Namespaced trigger; create a regexp to match event type in handle()\\n\\t\\t\\tnamespaces = type.split( \\\".\\\" );\\n\\t\\t\\ttype = namespaces.shift();\\n\\t\\t\\tnamespaces.sort();\\n\\t\\t}\\n\\t\\tontype = type.indexOf( \\\":\\\" ) < 0 && \\\"on\\\" + type;\\n\\n\\t\\t// Caller can pass in a jQuery.Event object, Object, or just an event type string\\n\\t\\tevent = event[ jQuery.expando ] ?\\n\\t\\t\\tevent :\\n\\t\\t\\tnew jQuery.Event( type, typeof event === \\\"object\\\" && event );\\n\\n\\t\\t// Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)\\n\\t\\tevent.isTrigger = onlyHandlers ? 2 : 3;\\n\\t\\tevent.namespace = namespaces.join( \\\".\\\" );\\n\\t\\tevent.rnamespace = event.namespace ?\\n\\t\\t\\tnew RegExp( \\\"(^|\\\\\\\\.)\\\" + namespaces.join( \\\"\\\\\\\\.(?:.*\\\\\\\\.|)\\\" ) + \\\"(\\\\\\\\.|$)\\\" ) :\\n\\t\\t\\tnull;\\n\\n\\t\\t// Clean up the event in case it is being reused\\n\\t\\tevent.result = undefined;\\n\\t\\tif ( !event.target ) {\\n\\t\\t\\tevent.target = elem;\\n\\t\\t}\\n\\n\\t\\t// Clone any incoming data and prepend the event, creating the handler arg list\\n\\t\\tdata = data == null ?\\n\\t\\t\\t[ event ] :\\n\\t\\t\\tjQuery.makeArray( data, [ event ] );\\n\\n\\t\\t// Allow special events to draw outside the lines\\n\\t\\tspecial = jQuery.event.special[ type ] || {};\\n\\t\\tif ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\t// Determine event propagation path in advance, per W3C events spec (#9951)\\n\\t\\t// Bubble up to document, then to window; watch for a global ownerDocument var (#9724)\\n\\t\\tif ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {\\n\\n\\t\\t\\tbubbleType = special.delegateType || type;\\n\\t\\t\\tif ( !rfocusMorph.test( bubbleType + type ) ) {\\n\\t\\t\\t\\tcur = cur.parentNode;\\n\\t\\t\\t}\\n\\t\\t\\tfor ( ; cur; cur = cur.parentNode ) {\\n\\t\\t\\t\\teventPath.push( cur );\\n\\t\\t\\t\\ttmp = cur;\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Only add window if we got to document (e.g., not plain obj or detached DOM)\\n\\t\\t\\tif ( tmp === ( elem.ownerDocument || document ) ) {\\n\\t\\t\\t\\teventPath.push( tmp.defaultView || tmp.parentWindow || window );\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\t// Fire handlers on the event path\\n\\t\\ti = 0;\\n\\t\\twhile ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) {\\n\\n\\t\\t\\tevent.type = i > 1 ?\\n\\t\\t\\t\\tbubbleType :\\n\\t\\t\\t\\tspecial.bindType || type;\\n\\n\\t\\t\\t// jQuery handler\\n\\t\\t\\thandle = ( dataPriv.get( cur, \\\"events\\\" ) || {} )[ event.type ] &&\\n\\t\\t\\t\\tdataPriv.get( cur, \\\"handle\\\" );\\n\\t\\t\\tif ( handle ) {\\n\\t\\t\\t\\thandle.apply( cur, data );\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Native handler\\n\\t\\t\\thandle = ontype && cur[ ontype ];\\n\\t\\t\\tif ( handle && handle.apply && acceptData( cur ) ) {\\n\\t\\t\\t\\tevent.result = handle.apply( cur, data );\\n\\t\\t\\t\\tif ( event.result === false ) {\\n\\t\\t\\t\\t\\tevent.preventDefault();\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tevent.type = type;\\n\\n\\t\\t// If nobody prevented the default action, do it now\\n\\t\\tif ( !onlyHandlers && !event.isDefaultPrevented() ) {\\n\\n\\t\\t\\tif ( ( !special._default ||\\n\\t\\t\\t\\tspecial._default.apply( eventPath.pop(), data ) === false ) &&\\n\\t\\t\\t\\tacceptData( elem ) ) {\\n\\n\\t\\t\\t\\t// Call a native DOM method on the target with the same name as the event.\\n\\t\\t\\t\\t// Don't do default actions on window, that's where global variables be (#6170)\\n\\t\\t\\t\\tif ( ontype && jQuery.isFunction( elem[ type ] ) && !jQuery.isWindow( elem ) ) {\\n\\n\\t\\t\\t\\t\\t// Don't re-trigger an onFOO event when we call its FOO() method\\n\\t\\t\\t\\t\\ttmp = elem[ ontype ];\\n\\n\\t\\t\\t\\t\\tif ( tmp ) {\\n\\t\\t\\t\\t\\t\\telem[ ontype ] = null;\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t// Prevent re-triggering of the same event, since we already bubbled it above\\n\\t\\t\\t\\t\\tjQuery.event.triggered = type;\\n\\t\\t\\t\\t\\telem[ type ]();\\n\\t\\t\\t\\t\\tjQuery.event.triggered = undefined;\\n\\n\\t\\t\\t\\t\\tif ( tmp ) {\\n\\t\\t\\t\\t\\t\\telem[ ontype ] = tmp;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\treturn event.result;\\n\\t},\\n\\n\\t// Piggyback on a donor event to simulate a different one\\n\\t// Used only for `focus(in | out)` events\\n\\tsimulate: function( type, elem, event ) {\\n\\t\\tvar e = jQuery.extend(\\n\\t\\t\\tnew jQuery.Event(),\\n\\t\\t\\tevent,\\n\\t\\t\\t{\\n\\t\\t\\t\\ttype: type,\\n\\t\\t\\t\\tisSimulated: true\\n\\t\\t\\t}\\n\\t\\t);\\n\\n\\t\\tjQuery.event.trigger( e, null, elem );\\n\\t}\\n\\n} );\\n\\njQuery.fn.extend( {\\n\\n\\ttrigger: function( type, data ) {\\n\\t\\treturn this.each( function() {\\n\\t\\t\\tjQuery.event.trigger( type, data, this );\\n\\t\\t} );\\n\\t},\\n\\ttriggerHandler: function( type, data ) {\\n\\t\\tvar elem = this[ 0 ];\\n\\t\\tif ( elem ) {\\n\\t\\t\\treturn jQuery.event.trigger( type, data, elem, true );\\n\\t\\t}\\n\\t}\\n} );\\n\\n\\njQuery.each( ( \\\"blur focus focusin focusout resize scroll click dblclick \\\" +\\n\\t\\\"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave \\\" +\\n\\t\\\"change select submit keydown keypress keyup contextmenu\\\" ).split( \\\" \\\" ),\\n\\tfunction( i, name ) {\\n\\n\\t// Handle event binding\\n\\tjQuery.fn[ name ] = function( data, fn ) {\\n\\t\\treturn arguments.length > 0 ?\\n\\t\\t\\tthis.on( name, null, data, fn ) :\\n\\t\\t\\tthis.trigger( name );\\n\\t};\\n} );\\n\\njQuery.fn.extend( {\\n\\thover: function( fnOver, fnOut ) {\\n\\t\\treturn this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );\\n\\t}\\n} );\\n\\n\\n\\n\\nsupport.focusin = \\\"onfocusin\\\" in window;\\n\\n\\n// Support: Firefox <=44\\n// Firefox doesn't have focus(in | out) events\\n// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787\\n//\\n// Support: Chrome <=48 - 49, Safari <=9.0 - 9.1\\n// focus(in | out) events fire after focus & blur events,\\n// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order\\n// Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857\\nif ( !support.focusin ) {\\n\\tjQuery.each( { focus: \\\"focusin\\\", blur: \\\"focusout\\\" }, function( orig, fix ) {\\n\\n\\t\\t// Attach a single capturing handler on the document while someone wants focusin/focusout\\n\\t\\tvar handler = function( event ) {\\n\\t\\t\\tjQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) );\\n\\t\\t};\\n\\n\\t\\tjQuery.event.special[ fix ] = {\\n\\t\\t\\tsetup: function() {\\n\\t\\t\\t\\tvar doc = this.ownerDocument || this,\\n\\t\\t\\t\\t\\tattaches = dataPriv.access( doc, fix );\\n\\n\\t\\t\\t\\tif ( !attaches ) {\\n\\t\\t\\t\\t\\tdoc.addEventListener( orig, handler, true );\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tdataPriv.access( doc, fix, ( attaches || 0 ) + 1 );\\n\\t\\t\\t},\\n\\t\\t\\tteardown: function() {\\n\\t\\t\\t\\tvar doc = this.ownerDocument || this,\\n\\t\\t\\t\\t\\tattaches = dataPriv.access( doc, fix ) - 1;\\n\\n\\t\\t\\t\\tif ( !attaches ) {\\n\\t\\t\\t\\t\\tdoc.removeEventListener( orig, handler, true );\\n\\t\\t\\t\\t\\tdataPriv.remove( doc, fix );\\n\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\tdataPriv.access( doc, fix, attaches );\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t};\\n\\t} );\\n}\\nvar location = window.location;\\n\\nvar nonce = jQuery.now();\\n\\nvar rquery = ( /\\\\?/ );\\n\\n\\n\\n// Cross-browser xml parsing\\njQuery.parseXML = function( data ) {\\n\\tvar xml;\\n\\tif ( !data || typeof data !== \\\"string\\\" ) {\\n\\t\\treturn null;\\n\\t}\\n\\n\\t// Support: IE 9 - 11 only\\n\\t// IE throws on parseFromString with invalid input.\\n\\ttry {\\n\\t\\txml = ( new window.DOMParser() ).parseFromString( data, \\\"text/xml\\\" );\\n\\t} catch ( e ) {\\n\\t\\txml = undefined;\\n\\t}\\n\\n\\tif ( !xml || xml.getElementsByTagName( \\\"parsererror\\\" ).length ) {\\n\\t\\tjQuery.error( \\\"Invalid XML: \\\" + data );\\n\\t}\\n\\treturn xml;\\n};\\n\\n\\nvar\\n\\trbracket = /\\\\[\\\\]$/,\\n\\trCRLF = /\\\\r?\\\\n/g,\\n\\trsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,\\n\\trsubmittable = /^(?:input|select|textarea|keygen)/i;\\n\\nfunction buildParams( prefix, obj, traditional, add ) {\\n\\tvar name;\\n\\n\\tif ( jQuery.isArray( obj ) ) {\\n\\n\\t\\t// Serialize array item.\\n\\t\\tjQuery.each( obj, function( i, v ) {\\n\\t\\t\\tif ( traditional || rbracket.test( prefix ) ) {\\n\\n\\t\\t\\t\\t// Treat each array item as a scalar.\\n\\t\\t\\t\\tadd( prefix, v );\\n\\n\\t\\t\\t} else {\\n\\n\\t\\t\\t\\t// Item is non-scalar (array or object), encode its numeric index.\\n\\t\\t\\t\\tbuildParams(\\n\\t\\t\\t\\t\\tprefix + \\\"[\\\" + ( typeof v === \\\"object\\\" && v != null ? i : \\\"\\\" ) + \\\"]\\\",\\n\\t\\t\\t\\t\\tv,\\n\\t\\t\\t\\t\\ttraditional,\\n\\t\\t\\t\\t\\tadd\\n\\t\\t\\t\\t);\\n\\t\\t\\t}\\n\\t\\t} );\\n\\n\\t} else if ( !traditional && jQuery.type( obj ) === \\\"object\\\" ) {\\n\\n\\t\\t// Serialize object item.\\n\\t\\tfor ( name in obj ) {\\n\\t\\t\\tbuildParams( prefix + \\\"[\\\" + name + \\\"]\\\", obj[ name ], traditional, add );\\n\\t\\t}\\n\\n\\t} else {\\n\\n\\t\\t// Serialize scalar item.\\n\\t\\tadd( prefix, obj );\\n\\t}\\n}\\n\\n// Serialize an array of form elements or a set of\\n// key/values into a query string\\njQuery.param = function( a, traditional ) {\\n\\tvar prefix,\\n\\t\\ts = [],\\n\\t\\tadd = function( key, valueOrFunction ) {\\n\\n\\t\\t\\t// If value is a function, invoke it and use its return value\\n\\t\\t\\tvar value = jQuery.isFunction( valueOrFunction ) ?\\n\\t\\t\\t\\tvalueOrFunction() :\\n\\t\\t\\t\\tvalueOrFunction;\\n\\n\\t\\t\\ts[ s.length ] = encodeURIComponent( key ) + \\\"=\\\" +\\n\\t\\t\\t\\tencodeURIComponent( value == null ? \\\"\\\" : value );\\n\\t\\t};\\n\\n\\t// If an array was passed in, assume that it is an array of form elements.\\n\\tif ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {\\n\\n\\t\\t// Serialize the form elements\\n\\t\\tjQuery.each( a, function() {\\n\\t\\t\\tadd( this.name, this.value );\\n\\t\\t} );\\n\\n\\t} else {\\n\\n\\t\\t// If traditional, encode the \\\"old\\\" way (the way 1.3.2 or older\\n\\t\\t// did it), otherwise encode params recursively.\\n\\t\\tfor ( prefix in a ) {\\n\\t\\t\\tbuildParams( prefix, a[ prefix ], traditional, add );\\n\\t\\t}\\n\\t}\\n\\n\\t// Return the resulting serialization\\n\\treturn s.join( \\\"&\\\" );\\n};\\n\\njQuery.fn.extend( {\\n\\tserialize: function() {\\n\\t\\treturn jQuery.param( this.serializeArray() );\\n\\t},\\n\\tserializeArray: function() {\\n\\t\\treturn this.map( function() {\\n\\n\\t\\t\\t// Can add propHook for \\\"elements\\\" to filter or add form elements\\n\\t\\t\\tvar elements = jQuery.prop( this, \\\"elements\\\" );\\n\\t\\t\\treturn elements ? jQuery.makeArray( elements ) : this;\\n\\t\\t} )\\n\\t\\t.filter( function() {\\n\\t\\t\\tvar type = this.type;\\n\\n\\t\\t\\t// Use .is( \\\":disabled\\\" ) so that fieldset[disabled] works\\n\\t\\t\\treturn this.name && !jQuery( this ).is( \\\":disabled\\\" ) &&\\n\\t\\t\\t\\trsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&\\n\\t\\t\\t\\t( this.checked || !rcheckableType.test( type ) );\\n\\t\\t} )\\n\\t\\t.map( function( i, elem ) {\\n\\t\\t\\tvar val = jQuery( this ).val();\\n\\n\\t\\t\\tif ( val == null ) {\\n\\t\\t\\t\\treturn null;\\n\\t\\t\\t}\\n\\n\\t\\t\\tif ( jQuery.isArray( val ) ) {\\n\\t\\t\\t\\treturn jQuery.map( val, function( val ) {\\n\\t\\t\\t\\t\\treturn { name: elem.name, value: val.replace( rCRLF, \\\"\\\\r\\\\n\\\" ) };\\n\\t\\t\\t\\t} );\\n\\t\\t\\t}\\n\\n\\t\\t\\treturn { name: elem.name, value: val.replace( rCRLF, \\\"\\\\r\\\\n\\\" ) };\\n\\t\\t} ).get();\\n\\t}\\n} );\\n\\n\\nvar\\n\\tr20 = /%20/g,\\n\\trhash = /#.*$/,\\n\\trantiCache = /([?&])_=[^&]*/,\\n\\trheaders = /^(.*?):[ \\\\t]*([^\\\\r\\\\n]*)$/mg,\\n\\n\\t// #7653, #8125, #8152: local protocol detection\\n\\trlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,\\n\\trnoContent = /^(?:GET|HEAD)$/,\\n\\trprotocol = /^\\\\/\\\\//,\\n\\n\\t/* Prefilters\\n\\t * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)\\n\\t * 2) These are called:\\n\\t *    - BEFORE asking for a transport\\n\\t *    - AFTER param serialization (s.data is a string if s.processData is true)\\n\\t * 3) key is the dataType\\n\\t * 4) the catchall symbol \\\"*\\\" can be used\\n\\t * 5) execution will start with transport dataType and THEN continue down to \\\"*\\\" if needed\\n\\t */\\n\\tprefilters = {},\\n\\n\\t/* Transports bindings\\n\\t * 1) key is the dataType\\n\\t * 2) the catchall symbol \\\"*\\\" can be used\\n\\t * 3) selection will start with transport dataType and THEN go to \\\"*\\\" if needed\\n\\t */\\n\\ttransports = {},\\n\\n\\t// Avoid comment-prolog char sequence (#10098); must appease lint and evade compression\\n\\tallTypes = \\\"*/\\\".concat( \\\"*\\\" ),\\n\\n\\t// Anchor tag for parsing the document origin\\n\\toriginAnchor = document.createElement( \\\"a\\\" );\\n\\toriginAnchor.href = location.href;\\n\\n// Base \\\"constructor\\\" for jQuery.ajaxPrefilter and jQuery.ajaxTransport\\nfunction addToPrefiltersOrTransports( structure ) {\\n\\n\\t// dataTypeExpression is optional and defaults to \\\"*\\\"\\n\\treturn function( dataTypeExpression, func ) {\\n\\n\\t\\tif ( typeof dataTypeExpression !== \\\"string\\\" ) {\\n\\t\\t\\tfunc = dataTypeExpression;\\n\\t\\t\\tdataTypeExpression = \\\"*\\\";\\n\\t\\t}\\n\\n\\t\\tvar dataType,\\n\\t\\t\\ti = 0,\\n\\t\\t\\tdataTypes = dataTypeExpression.toLowerCase().match( rnothtmlwhite ) || [];\\n\\n\\t\\tif ( jQuery.isFunction( func ) ) {\\n\\n\\t\\t\\t// For each dataType in the dataTypeExpression\\n\\t\\t\\twhile ( ( dataType = dataTypes[ i++ ] ) ) {\\n\\n\\t\\t\\t\\t// Prepend if requested\\n\\t\\t\\t\\tif ( dataType[ 0 ] === \\\"+\\\" ) {\\n\\t\\t\\t\\t\\tdataType = dataType.slice( 1 ) || \\\"*\\\";\\n\\t\\t\\t\\t\\t( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func );\\n\\n\\t\\t\\t\\t// Otherwise append\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t( structure[ dataType ] = structure[ dataType ] || [] ).push( func );\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t};\\n}\\n\\n// Base inspection function for prefilters and transports\\nfunction inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {\\n\\n\\tvar inspected = {},\\n\\t\\tseekingTransport = ( structure === transports );\\n\\n\\tfunction inspect( dataType ) {\\n\\t\\tvar selected;\\n\\t\\tinspected[ dataType ] = true;\\n\\t\\tjQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {\\n\\t\\t\\tvar dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );\\n\\t\\t\\tif ( typeof dataTypeOrTransport === \\\"string\\\" &&\\n\\t\\t\\t\\t!seekingTransport && !inspected[ dataTypeOrTransport ] ) {\\n\\n\\t\\t\\t\\toptions.dataTypes.unshift( dataTypeOrTransport );\\n\\t\\t\\t\\tinspect( dataTypeOrTransport );\\n\\t\\t\\t\\treturn false;\\n\\t\\t\\t} else if ( seekingTransport ) {\\n\\t\\t\\t\\treturn !( selected = dataTypeOrTransport );\\n\\t\\t\\t}\\n\\t\\t} );\\n\\t\\treturn selected;\\n\\t}\\n\\n\\treturn inspect( options.dataTypes[ 0 ] ) || !inspected[ \\\"*\\\" ] && inspect( \\\"*\\\" );\\n}\\n\\n// A special extend for ajax options\\n// that takes \\\"flat\\\" options (not to be deep extended)\\n// Fixes #9887\\nfunction ajaxExtend( target, src ) {\\n\\tvar key, deep,\\n\\t\\tflatOptions = jQuery.ajaxSettings.flatOptions || {};\\n\\n\\tfor ( key in src ) {\\n\\t\\tif ( src[ key ] !== undefined ) {\\n\\t\\t\\t( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];\\n\\t\\t}\\n\\t}\\n\\tif ( deep ) {\\n\\t\\tjQuery.extend( true, target, deep );\\n\\t}\\n\\n\\treturn target;\\n}\\n\\n/* Handles responses to an ajax request:\\n * - finds the right dataType (mediates between content-type and expected dataType)\\n * - returns the corresponding response\\n */\\nfunction ajaxHandleResponses( s, jqXHR, responses ) {\\n\\n\\tvar ct, type, finalDataType, firstDataType,\\n\\t\\tcontents = s.contents,\\n\\t\\tdataTypes = s.dataTypes;\\n\\n\\t// Remove auto dataType and get content-type in the process\\n\\twhile ( dataTypes[ 0 ] === \\\"*\\\" ) {\\n\\t\\tdataTypes.shift();\\n\\t\\tif ( ct === undefined ) {\\n\\t\\t\\tct = s.mimeType || jqXHR.getResponseHeader( \\\"Content-Type\\\" );\\n\\t\\t}\\n\\t}\\n\\n\\t// Check if we're dealing with a known content-type\\n\\tif ( ct ) {\\n\\t\\tfor ( type in contents ) {\\n\\t\\t\\tif ( contents[ type ] && contents[ type ].test( ct ) ) {\\n\\t\\t\\t\\tdataTypes.unshift( type );\\n\\t\\t\\t\\tbreak;\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n\\n\\t// Check to see if we have a response for the expected dataType\\n\\tif ( dataTypes[ 0 ] in responses ) {\\n\\t\\tfinalDataType = dataTypes[ 0 ];\\n\\t} else {\\n\\n\\t\\t// Try convertible dataTypes\\n\\t\\tfor ( type in responses ) {\\n\\t\\t\\tif ( !dataTypes[ 0 ] || s.converters[ type + \\\" \\\" + dataTypes[ 0 ] ] ) {\\n\\t\\t\\t\\tfinalDataType = type;\\n\\t\\t\\t\\tbreak;\\n\\t\\t\\t}\\n\\t\\t\\tif ( !firstDataType ) {\\n\\t\\t\\t\\tfirstDataType = type;\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\t// Or just use first one\\n\\t\\tfinalDataType = finalDataType || firstDataType;\\n\\t}\\n\\n\\t// If we found a dataType\\n\\t// We add the dataType to the list if needed\\n\\t// and return the corresponding response\\n\\tif ( finalDataType ) {\\n\\t\\tif ( finalDataType !== dataTypes[ 0 ] ) {\\n\\t\\t\\tdataTypes.unshift( finalDataType );\\n\\t\\t}\\n\\t\\treturn responses[ finalDataType ];\\n\\t}\\n}\\n\\n/* Chain conversions given the request and the original response\\n * Also sets the responseXXX fields on the jqXHR instance\\n */\\nfunction ajaxConvert( s, response, jqXHR, isSuccess ) {\\n\\tvar conv2, current, conv, tmp, prev,\\n\\t\\tconverters = {},\\n\\n\\t\\t// Work with a copy of dataTypes in case we need to modify it for conversion\\n\\t\\tdataTypes = s.dataTypes.slice();\\n\\n\\t// Create converters map with lowercased keys\\n\\tif ( dataTypes[ 1 ] ) {\\n\\t\\tfor ( conv in s.converters ) {\\n\\t\\t\\tconverters[ conv.toLowerCase() ] = s.converters[ conv ];\\n\\t\\t}\\n\\t}\\n\\n\\tcurrent = dataTypes.shift();\\n\\n\\t// Convert to each sequential dataType\\n\\twhile ( current ) {\\n\\n\\t\\tif ( s.responseFields[ current ] ) {\\n\\t\\t\\tjqXHR[ s.responseFields[ current ] ] = response;\\n\\t\\t}\\n\\n\\t\\t// Apply the dataFilter if provided\\n\\t\\tif ( !prev && isSuccess && s.dataFilter ) {\\n\\t\\t\\tresponse = s.dataFilter( response, s.dataType );\\n\\t\\t}\\n\\n\\t\\tprev = current;\\n\\t\\tcurrent = dataTypes.shift();\\n\\n\\t\\tif ( current ) {\\n\\n\\t\\t\\t// There's only work to do if current dataType is non-auto\\n\\t\\t\\tif ( current === \\\"*\\\" ) {\\n\\n\\t\\t\\t\\tcurrent = prev;\\n\\n\\t\\t\\t// Convert response if prev dataType is non-auto and differs from current\\n\\t\\t\\t} else if ( prev !== \\\"*\\\" && prev !== current ) {\\n\\n\\t\\t\\t\\t// Seek a direct converter\\n\\t\\t\\t\\tconv = converters[ prev + \\\" \\\" + current ] || converters[ \\\"* \\\" + current ];\\n\\n\\t\\t\\t\\t// If none found, seek a pair\\n\\t\\t\\t\\tif ( !conv ) {\\n\\t\\t\\t\\t\\tfor ( conv2 in converters ) {\\n\\n\\t\\t\\t\\t\\t\\t// If conv2 outputs current\\n\\t\\t\\t\\t\\t\\ttmp = conv2.split( \\\" \\\" );\\n\\t\\t\\t\\t\\t\\tif ( tmp[ 1 ] === current ) {\\n\\n\\t\\t\\t\\t\\t\\t\\t// If prev can be converted to accepted input\\n\\t\\t\\t\\t\\t\\t\\tconv = converters[ prev + \\\" \\\" + tmp[ 0 ] ] ||\\n\\t\\t\\t\\t\\t\\t\\t\\tconverters[ \\\"* \\\" + tmp[ 0 ] ];\\n\\t\\t\\t\\t\\t\\t\\tif ( conv ) {\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t// Condense equivalence converters\\n\\t\\t\\t\\t\\t\\t\\t\\tif ( conv === true ) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tconv = converters[ conv2 ];\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t// Otherwise, insert the intermediate dataType\\n\\t\\t\\t\\t\\t\\t\\t\\t} else if ( converters[ conv2 ] !== true ) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tcurrent = tmp[ 0 ];\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tdataTypes.unshift( tmp[ 1 ] );\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t// Apply converter (if not an equivalence)\\n\\t\\t\\t\\tif ( conv !== true ) {\\n\\n\\t\\t\\t\\t\\t// Unless errors are allowed to bubble, catch and return them\\n\\t\\t\\t\\t\\tif ( conv && s.throws ) {\\n\\t\\t\\t\\t\\t\\tresponse = conv( response );\\n\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\ttry {\\n\\t\\t\\t\\t\\t\\t\\tresponse = conv( response );\\n\\t\\t\\t\\t\\t\\t} catch ( e ) {\\n\\t\\t\\t\\t\\t\\t\\treturn {\\n\\t\\t\\t\\t\\t\\t\\t\\tstate: \\\"parsererror\\\",\\n\\t\\t\\t\\t\\t\\t\\t\\terror: conv ? e : \\\"No conversion from \\\" + prev + \\\" to \\\" + current\\n\\t\\t\\t\\t\\t\\t\\t};\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n\\n\\treturn { state: \\\"success\\\", data: response };\\n}\\n\\njQuery.extend( {\\n\\n\\t// Counter for holding the number of active queries\\n\\tactive: 0,\\n\\n\\t// Last-Modified header cache for next request\\n\\tlastModified: {},\\n\\tetag: {},\\n\\n\\tajaxSettings: {\\n\\t\\turl: location.href,\\n\\t\\ttype: \\\"GET\\\",\\n\\t\\tisLocal: rlocalProtocol.test( location.protocol ),\\n\\t\\tglobal: true,\\n\\t\\tprocessData: true,\\n\\t\\tasync: true,\\n\\t\\tcontentType: \\\"application/x-www-form-urlencoded; charset=UTF-8\\\",\\n\\n\\t\\t/*\\n\\t\\ttimeout: 0,\\n\\t\\tdata: null,\\n\\t\\tdataType: null,\\n\\t\\tusername: null,\\n\\t\\tpassword: null,\\n\\t\\tcache: null,\\n\\t\\tthrows: false,\\n\\t\\ttraditional: false,\\n\\t\\theaders: {},\\n\\t\\t*/\\n\\n\\t\\taccepts: {\\n\\t\\t\\t\\\"*\\\": allTypes,\\n\\t\\t\\ttext: \\\"text/plain\\\",\\n\\t\\t\\thtml: \\\"text/html\\\",\\n\\t\\t\\txml: \\\"application/xml, text/xml\\\",\\n\\t\\t\\tjson: \\\"application/json, text/javascript\\\"\\n\\t\\t},\\n\\n\\t\\tcontents: {\\n\\t\\t\\txml: /\\\\bxml\\\\b/,\\n\\t\\t\\thtml: /\\\\bhtml/,\\n\\t\\t\\tjson: /\\\\bjson\\\\b/\\n\\t\\t},\\n\\n\\t\\tresponseFields: {\\n\\t\\t\\txml: \\\"responseXML\\\",\\n\\t\\t\\ttext: \\\"responseText\\\",\\n\\t\\t\\tjson: \\\"responseJSON\\\"\\n\\t\\t},\\n\\n\\t\\t// Data converters\\n\\t\\t// Keys separate source (or catchall \\\"*\\\") and destination types with a single space\\n\\t\\tconverters: {\\n\\n\\t\\t\\t// Convert anything to text\\n\\t\\t\\t\\\"* text\\\": String,\\n\\n\\t\\t\\t// Text to html (true = no transformation)\\n\\t\\t\\t\\\"text html\\\": true,\\n\\n\\t\\t\\t// Evaluate text as a json expression\\n\\t\\t\\t\\\"text json\\\": JSON.parse,\\n\\n\\t\\t\\t// Parse text as xml\\n\\t\\t\\t\\\"text xml\\\": jQuery.parseXML\\n\\t\\t},\\n\\n\\t\\t// For options that shouldn't be deep extended:\\n\\t\\t// you can add your own custom options here if\\n\\t\\t// and when you create one that shouldn't be\\n\\t\\t// deep extended (see ajaxExtend)\\n\\t\\tflatOptions: {\\n\\t\\t\\turl: true,\\n\\t\\t\\tcontext: true\\n\\t\\t}\\n\\t},\\n\\n\\t// Creates a full fledged settings object into target\\n\\t// with both ajaxSettings and settings fields.\\n\\t// If target is omitted, writes into ajaxSettings.\\n\\tajaxSetup: function( target, settings ) {\\n\\t\\treturn settings ?\\n\\n\\t\\t\\t// Building a settings object\\n\\t\\t\\tajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :\\n\\n\\t\\t\\t// Extending ajaxSettings\\n\\t\\t\\tajaxExtend( jQuery.ajaxSettings, target );\\n\\t},\\n\\n\\tajaxPrefilter: addToPrefiltersOrTransports( prefilters ),\\n\\tajaxTransport: addToPrefiltersOrTransports( transports ),\\n\\n\\t// Main method\\n\\tajax: function( url, options ) {\\n\\n\\t\\t// If url is an object, simulate pre-1.5 signature\\n\\t\\tif ( typeof url === \\\"object\\\" ) {\\n\\t\\t\\toptions = url;\\n\\t\\t\\turl = undefined;\\n\\t\\t}\\n\\n\\t\\t// Force options to be an object\\n\\t\\toptions = options || {};\\n\\n\\t\\tvar transport,\\n\\n\\t\\t\\t// URL without anti-cache param\\n\\t\\t\\tcacheURL,\\n\\n\\t\\t\\t// Response headers\\n\\t\\t\\tresponseHeadersString,\\n\\t\\t\\tresponseHeaders,\\n\\n\\t\\t\\t// timeout handle\\n\\t\\t\\ttimeoutTimer,\\n\\n\\t\\t\\t// Url cleanup var\\n\\t\\t\\turlAnchor,\\n\\n\\t\\t\\t// Request state (becomes false upon send and true upon completion)\\n\\t\\t\\tcompleted,\\n\\n\\t\\t\\t// To know if global events are to be dispatched\\n\\t\\t\\tfireGlobals,\\n\\n\\t\\t\\t// Loop variable\\n\\t\\t\\ti,\\n\\n\\t\\t\\t// uncached part of the url\\n\\t\\t\\tuncached,\\n\\n\\t\\t\\t// Create the final options object\\n\\t\\t\\ts = jQuery.ajaxSetup( {}, options ),\\n\\n\\t\\t\\t// Callbacks context\\n\\t\\t\\tcallbackContext = s.context || s,\\n\\n\\t\\t\\t// Context for global events is callbackContext if it is a DOM node or jQuery collection\\n\\t\\t\\tglobalEventContext = s.context &&\\n\\t\\t\\t\\t( callbackContext.nodeType || callbackContext.jquery ) ?\\n\\t\\t\\t\\t\\tjQuery( callbackContext ) :\\n\\t\\t\\t\\t\\tjQuery.event,\\n\\n\\t\\t\\t// Deferreds\\n\\t\\t\\tdeferred = jQuery.Deferred(),\\n\\t\\t\\tcompleteDeferred = jQuery.Callbacks( \\\"once memory\\\" ),\\n\\n\\t\\t\\t// Status-dependent callbacks\\n\\t\\t\\tstatusCode = s.statusCode || {},\\n\\n\\t\\t\\t// Headers (they are sent all at once)\\n\\t\\t\\trequestHeaders = {},\\n\\t\\t\\trequestHeadersNames = {},\\n\\n\\t\\t\\t// Default abort message\\n\\t\\t\\tstrAbort = \\\"canceled\\\",\\n\\n\\t\\t\\t// Fake xhr\\n\\t\\t\\tjqXHR = {\\n\\t\\t\\t\\treadyState: 0,\\n\\n\\t\\t\\t\\t// Builds headers hashtable if needed\\n\\t\\t\\t\\tgetResponseHeader: function( key ) {\\n\\t\\t\\t\\t\\tvar match;\\n\\t\\t\\t\\t\\tif ( completed ) {\\n\\t\\t\\t\\t\\t\\tif ( !responseHeaders ) {\\n\\t\\t\\t\\t\\t\\t\\tresponseHeaders = {};\\n\\t\\t\\t\\t\\t\\t\\twhile ( ( match = rheaders.exec( responseHeadersString ) ) ) {\\n\\t\\t\\t\\t\\t\\t\\t\\tresponseHeaders[ match[ 1 ].toLowerCase() ] = match[ 2 ];\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\tmatch = responseHeaders[ key.toLowerCase() ];\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\treturn match == null ? null : match;\\n\\t\\t\\t\\t},\\n\\n\\t\\t\\t\\t// Raw string\\n\\t\\t\\t\\tgetAllResponseHeaders: function() {\\n\\t\\t\\t\\t\\treturn completed ? responseHeadersString : null;\\n\\t\\t\\t\\t},\\n\\n\\t\\t\\t\\t// Caches the header\\n\\t\\t\\t\\tsetRequestHeader: function( name, value ) {\\n\\t\\t\\t\\t\\tif ( completed == null ) {\\n\\t\\t\\t\\t\\t\\tname = requestHeadersNames[ name.toLowerCase() ] =\\n\\t\\t\\t\\t\\t\\t\\trequestHeadersNames[ name.toLowerCase() ] || name;\\n\\t\\t\\t\\t\\t\\trequestHeaders[ name ] = value;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\treturn this;\\n\\t\\t\\t\\t},\\n\\n\\t\\t\\t\\t// Overrides response content-type header\\n\\t\\t\\t\\toverrideMimeType: function( type ) {\\n\\t\\t\\t\\t\\tif ( completed == null ) {\\n\\t\\t\\t\\t\\t\\ts.mimeType = type;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\treturn this;\\n\\t\\t\\t\\t},\\n\\n\\t\\t\\t\\t// Status-dependent callbacks\\n\\t\\t\\t\\tstatusCode: function( map ) {\\n\\t\\t\\t\\t\\tvar code;\\n\\t\\t\\t\\t\\tif ( map ) {\\n\\t\\t\\t\\t\\t\\tif ( completed ) {\\n\\n\\t\\t\\t\\t\\t\\t\\t// Execute the appropriate callbacks\\n\\t\\t\\t\\t\\t\\t\\tjqXHR.always( map[ jqXHR.status ] );\\n\\t\\t\\t\\t\\t\\t} else {\\n\\n\\t\\t\\t\\t\\t\\t\\t// Lazy-add the new callbacks in a way that preserves old ones\\n\\t\\t\\t\\t\\t\\t\\tfor ( code in map ) {\\n\\t\\t\\t\\t\\t\\t\\t\\tstatusCode[ code ] = [ statusCode[ code ], map[ code ] ];\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\treturn this;\\n\\t\\t\\t\\t},\\n\\n\\t\\t\\t\\t// Cancel the request\\n\\t\\t\\t\\tabort: function( statusText ) {\\n\\t\\t\\t\\t\\tvar finalText = statusText || strAbort;\\n\\t\\t\\t\\t\\tif ( transport ) {\\n\\t\\t\\t\\t\\t\\ttransport.abort( finalText );\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\tdone( 0, finalText );\\n\\t\\t\\t\\t\\treturn this;\\n\\t\\t\\t\\t}\\n\\t\\t\\t};\\n\\n\\t\\t// Attach deferreds\\n\\t\\tdeferred.promise( jqXHR );\\n\\n\\t\\t// Add protocol if not provided (prefilters might expect it)\\n\\t\\t// Handle falsy url in the settings object (#10093: consistency with old signature)\\n\\t\\t// We also use the url parameter if available\\n\\t\\ts.url = ( ( url || s.url || location.href ) + \\\"\\\" )\\n\\t\\t\\t.replace( rprotocol, location.protocol + \\\"//\\\" );\\n\\n\\t\\t// Alias method option to type as per ticket #12004\\n\\t\\ts.type = options.method || options.type || s.method || s.type;\\n\\n\\t\\t// Extract dataTypes list\\n\\t\\ts.dataTypes = ( s.dataType || \\\"*\\\" ).toLowerCase().match( rnothtmlwhite ) || [ \\\"\\\" ];\\n\\n\\t\\t// A cross-domain request is in order when the origin doesn't match the current origin.\\n\\t\\tif ( s.crossDomain == null ) {\\n\\t\\t\\turlAnchor = document.createElement( \\\"a\\\" );\\n\\n\\t\\t\\t// Support: IE <=8 - 11, Edge 12 - 13\\n\\t\\t\\t// IE throws exception on accessing the href property if url is malformed,\\n\\t\\t\\t// e.g. http://example.com:80x/\\n\\t\\t\\ttry {\\n\\t\\t\\t\\turlAnchor.href = s.url;\\n\\n\\t\\t\\t\\t// Support: IE <=8 - 11 only\\n\\t\\t\\t\\t// Anchor's host property isn't correctly set when s.url is relative\\n\\t\\t\\t\\turlAnchor.href = urlAnchor.href;\\n\\t\\t\\t\\ts.crossDomain = originAnchor.protocol + \\\"//\\\" + originAnchor.host !==\\n\\t\\t\\t\\t\\turlAnchor.protocol + \\\"//\\\" + urlAnchor.host;\\n\\t\\t\\t} catch ( e ) {\\n\\n\\t\\t\\t\\t// If there is an error parsing the URL, assume it is crossDomain,\\n\\t\\t\\t\\t// it can be rejected by the transport if it is invalid\\n\\t\\t\\t\\ts.crossDomain = true;\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\t// Convert data if not already a string\\n\\t\\tif ( s.data && s.processData && typeof s.data !== \\\"string\\\" ) {\\n\\t\\t\\ts.data = jQuery.param( s.data, s.traditional );\\n\\t\\t}\\n\\n\\t\\t// Apply prefilters\\n\\t\\tinspectPrefiltersOrTransports( prefilters, s, options, jqXHR );\\n\\n\\t\\t// If request was aborted inside a prefilter, stop there\\n\\t\\tif ( completed ) {\\n\\t\\t\\treturn jqXHR;\\n\\t\\t}\\n\\n\\t\\t// We can fire global events as of now if asked to\\n\\t\\t// Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118)\\n\\t\\tfireGlobals = jQuery.event && s.global;\\n\\n\\t\\t// Watch for a new set of requests\\n\\t\\tif ( fireGlobals && jQuery.active++ === 0 ) {\\n\\t\\t\\tjQuery.event.trigger( \\\"ajaxStart\\\" );\\n\\t\\t}\\n\\n\\t\\t// Uppercase the type\\n\\t\\ts.type = s.type.toUpperCase();\\n\\n\\t\\t// Determine if request has content\\n\\t\\ts.hasContent = !rnoContent.test( s.type );\\n\\n\\t\\t// Save the URL in case we're toying with the If-Modified-Since\\n\\t\\t// and/or If-None-Match header later on\\n\\t\\t// Remove hash to simplify url manipulation\\n\\t\\tcacheURL = s.url.replace( rhash, \\\"\\\" );\\n\\n\\t\\t// More options handling for requests with no content\\n\\t\\tif ( !s.hasContent ) {\\n\\n\\t\\t\\t// Remember the hash so we can put it back\\n\\t\\t\\tuncached = s.url.slice( cacheURL.length );\\n\\n\\t\\t\\t// If data is available, append data to url\\n\\t\\t\\tif ( s.data ) {\\n\\t\\t\\t\\tcacheURL += ( rquery.test( cacheURL ) ? \\\"&\\\" : \\\"?\\\" ) + s.data;\\n\\n\\t\\t\\t\\t// #9682: remove data so that it's not used in an eventual retry\\n\\t\\t\\t\\tdelete s.data;\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Add or update anti-cache param if needed\\n\\t\\t\\tif ( s.cache === false ) {\\n\\t\\t\\t\\tcacheURL = cacheURL.replace( rantiCache, \\\"$1\\\" );\\n\\t\\t\\t\\tuncached = ( rquery.test( cacheURL ) ? \\\"&\\\" : \\\"?\\\" ) + \\\"_=\\\" + ( nonce++ ) + uncached;\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Put hash and anti-cache on the URL that will be requested (gh-1732)\\n\\t\\t\\ts.url = cacheURL + uncached;\\n\\n\\t\\t// Change '%20' to '+' if this is encoded form body content (gh-2658)\\n\\t\\t} else if ( s.data && s.processData &&\\n\\t\\t\\t( s.contentType || \\\"\\\" ).indexOf( \\\"application/x-www-form-urlencoded\\\" ) === 0 ) {\\n\\t\\t\\ts.data = s.data.replace( r20, \\\"+\\\" );\\n\\t\\t}\\n\\n\\t\\t// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.\\n\\t\\tif ( s.ifModified ) {\\n\\t\\t\\tif ( jQuery.lastModified[ cacheURL ] ) {\\n\\t\\t\\t\\tjqXHR.setRequestHeader( \\\"If-Modified-Since\\\", jQuery.lastModified[ cacheURL ] );\\n\\t\\t\\t}\\n\\t\\t\\tif ( jQuery.etag[ cacheURL ] ) {\\n\\t\\t\\t\\tjqXHR.setRequestHeader( \\\"If-None-Match\\\", jQuery.etag[ cacheURL ] );\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\t// Set the correct header, if data is being sent\\n\\t\\tif ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {\\n\\t\\t\\tjqXHR.setRequestHeader( \\\"Content-Type\\\", s.contentType );\\n\\t\\t}\\n\\n\\t\\t// Set the Accepts header for the server, depending on the dataType\\n\\t\\tjqXHR.setRequestHeader(\\n\\t\\t\\t\\\"Accept\\\",\\n\\t\\t\\ts.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ?\\n\\t\\t\\t\\ts.accepts[ s.dataTypes[ 0 ] ] +\\n\\t\\t\\t\\t\\t( s.dataTypes[ 0 ] !== \\\"*\\\" ? \\\", \\\" + allTypes + \\\"; q=0.01\\\" : \\\"\\\" ) :\\n\\t\\t\\t\\ts.accepts[ \\\"*\\\" ]\\n\\t\\t);\\n\\n\\t\\t// Check for headers option\\n\\t\\tfor ( i in s.headers ) {\\n\\t\\t\\tjqXHR.setRequestHeader( i, s.headers[ i ] );\\n\\t\\t}\\n\\n\\t\\t// Allow custom headers/mimetypes and early abort\\n\\t\\tif ( s.beforeSend &&\\n\\t\\t\\t( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) {\\n\\n\\t\\t\\t// Abort if not done already and return\\n\\t\\t\\treturn jqXHR.abort();\\n\\t\\t}\\n\\n\\t\\t// Aborting is no longer a cancellation\\n\\t\\tstrAbort = \\\"abort\\\";\\n\\n\\t\\t// Install callbacks on deferreds\\n\\t\\tcompleteDeferred.add( s.complete );\\n\\t\\tjqXHR.done( s.success );\\n\\t\\tjqXHR.fail( s.error );\\n\\n\\t\\t// Get transport\\n\\t\\ttransport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );\\n\\n\\t\\t// If no transport, we auto-abort\\n\\t\\tif ( !transport ) {\\n\\t\\t\\tdone( -1, \\\"No Transport\\\" );\\n\\t\\t} else {\\n\\t\\t\\tjqXHR.readyState = 1;\\n\\n\\t\\t\\t// Send global event\\n\\t\\t\\tif ( fireGlobals ) {\\n\\t\\t\\t\\tglobalEventContext.trigger( \\\"ajaxSend\\\", [ jqXHR, s ] );\\n\\t\\t\\t}\\n\\n\\t\\t\\t// If request was aborted inside ajaxSend, stop there\\n\\t\\t\\tif ( completed ) {\\n\\t\\t\\t\\treturn jqXHR;\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Timeout\\n\\t\\t\\tif ( s.async && s.timeout > 0 ) {\\n\\t\\t\\t\\ttimeoutTimer = window.setTimeout( function() {\\n\\t\\t\\t\\t\\tjqXHR.abort( \\\"timeout\\\" );\\n\\t\\t\\t\\t}, s.timeout );\\n\\t\\t\\t}\\n\\n\\t\\t\\ttry {\\n\\t\\t\\t\\tcompleted = false;\\n\\t\\t\\t\\ttransport.send( requestHeaders, done );\\n\\t\\t\\t} catch ( e ) {\\n\\n\\t\\t\\t\\t// Rethrow post-completion exceptions\\n\\t\\t\\t\\tif ( completed ) {\\n\\t\\t\\t\\t\\tthrow e;\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t// Propagate others as results\\n\\t\\t\\t\\tdone( -1, e );\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\t// Callback for when everything is done\\n\\t\\tfunction done( status, nativeStatusText, responses, headers ) {\\n\\t\\t\\tvar isSuccess, success, error, response, modified,\\n\\t\\t\\t\\tstatusText = nativeStatusText;\\n\\n\\t\\t\\t// Ignore repeat invocations\\n\\t\\t\\tif ( completed ) {\\n\\t\\t\\t\\treturn;\\n\\t\\t\\t}\\n\\n\\t\\t\\tcompleted = true;\\n\\n\\t\\t\\t// Clear timeout if it exists\\n\\t\\t\\tif ( timeoutTimer ) {\\n\\t\\t\\t\\twindow.clearTimeout( timeoutTimer );\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Dereference transport for early garbage collection\\n\\t\\t\\t// (no matter how long the jqXHR object will be used)\\n\\t\\t\\ttransport = undefined;\\n\\n\\t\\t\\t// Cache response headers\\n\\t\\t\\tresponseHeadersString = headers || \\\"\\\";\\n\\n\\t\\t\\t// Set readyState\\n\\t\\t\\tjqXHR.readyState = status > 0 ? 4 : 0;\\n\\n\\t\\t\\t// Determine if successful\\n\\t\\t\\tisSuccess = status >= 200 && status < 300 || status === 304;\\n\\n\\t\\t\\t// Get response data\\n\\t\\t\\tif ( responses ) {\\n\\t\\t\\t\\tresponse = ajaxHandleResponses( s, jqXHR, responses );\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Convert no matter what (that way responseXXX fields are always set)\\n\\t\\t\\tresponse = ajaxConvert( s, response, jqXHR, isSuccess );\\n\\n\\t\\t\\t// If successful, handle type chaining\\n\\t\\t\\tif ( isSuccess ) {\\n\\n\\t\\t\\t\\t// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.\\n\\t\\t\\t\\tif ( s.ifModified ) {\\n\\t\\t\\t\\t\\tmodified = jqXHR.getResponseHeader( \\\"Last-Modified\\\" );\\n\\t\\t\\t\\t\\tif ( modified ) {\\n\\t\\t\\t\\t\\t\\tjQuery.lastModified[ cacheURL ] = modified;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\tmodified = jqXHR.getResponseHeader( \\\"etag\\\" );\\n\\t\\t\\t\\t\\tif ( modified ) {\\n\\t\\t\\t\\t\\t\\tjQuery.etag[ cacheURL ] = modified;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t// if no content\\n\\t\\t\\t\\tif ( status === 204 || s.type === \\\"HEAD\\\" ) {\\n\\t\\t\\t\\t\\tstatusText = \\\"nocontent\\\";\\n\\n\\t\\t\\t\\t// if not modified\\n\\t\\t\\t\\t} else if ( status === 304 ) {\\n\\t\\t\\t\\t\\tstatusText = \\\"notmodified\\\";\\n\\n\\t\\t\\t\\t// If we have data, let's convert it\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\tstatusText = response.state;\\n\\t\\t\\t\\t\\tsuccess = response.data;\\n\\t\\t\\t\\t\\terror = response.error;\\n\\t\\t\\t\\t\\tisSuccess = !error;\\n\\t\\t\\t\\t}\\n\\t\\t\\t} else {\\n\\n\\t\\t\\t\\t// Extract error from statusText and normalize for non-aborts\\n\\t\\t\\t\\terror = statusText;\\n\\t\\t\\t\\tif ( status || !statusText ) {\\n\\t\\t\\t\\t\\tstatusText = \\\"error\\\";\\n\\t\\t\\t\\t\\tif ( status < 0 ) {\\n\\t\\t\\t\\t\\t\\tstatus = 0;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Set data for the fake xhr object\\n\\t\\t\\tjqXHR.status = status;\\n\\t\\t\\tjqXHR.statusText = ( nativeStatusText || statusText ) + \\\"\\\";\\n\\n\\t\\t\\t// Success/Error\\n\\t\\t\\tif ( isSuccess ) {\\n\\t\\t\\t\\tdeferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tdeferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Status-dependent callbacks\\n\\t\\t\\tjqXHR.statusCode( statusCode );\\n\\t\\t\\tstatusCode = undefined;\\n\\n\\t\\t\\tif ( fireGlobals ) {\\n\\t\\t\\t\\tglobalEventContext.trigger( isSuccess ? \\\"ajaxSuccess\\\" : \\\"ajaxError\\\",\\n\\t\\t\\t\\t\\t[ jqXHR, s, isSuccess ? success : error ] );\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Complete\\n\\t\\t\\tcompleteDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );\\n\\n\\t\\t\\tif ( fireGlobals ) {\\n\\t\\t\\t\\tglobalEventContext.trigger( \\\"ajaxComplete\\\", [ jqXHR, s ] );\\n\\n\\t\\t\\t\\t// Handle the global AJAX counter\\n\\t\\t\\t\\tif ( !( --jQuery.active ) ) {\\n\\t\\t\\t\\t\\tjQuery.event.trigger( \\\"ajaxStop\\\" );\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\treturn jqXHR;\\n\\t},\\n\\n\\tgetJSON: function( url, data, callback ) {\\n\\t\\treturn jQuery.get( url, data, callback, \\\"json\\\" );\\n\\t},\\n\\n\\tgetScript: function( url, callback ) {\\n\\t\\treturn jQuery.get( url, undefined, callback, \\\"script\\\" );\\n\\t}\\n} );\\n\\njQuery.each( [ \\\"get\\\", \\\"post\\\" ], function( i, method ) {\\n\\tjQuery[ method ] = function( url, data, callback, type ) {\\n\\n\\t\\t// Shift arguments if data argument was omitted\\n\\t\\tif ( jQuery.isFunction( data ) ) {\\n\\t\\t\\ttype = type || callback;\\n\\t\\t\\tcallback = data;\\n\\t\\t\\tdata = undefined;\\n\\t\\t}\\n\\n\\t\\t// The url can be an options object (which then must have .url)\\n\\t\\treturn jQuery.ajax( jQuery.extend( {\\n\\t\\t\\turl: url,\\n\\t\\t\\ttype: method,\\n\\t\\t\\tdataType: type,\\n\\t\\t\\tdata: data,\\n\\t\\t\\tsuccess: callback\\n\\t\\t}, jQuery.isPlainObject( url ) && url ) );\\n\\t};\\n} );\\n\\n\\njQuery._evalUrl = function( url ) {\\n\\treturn jQuery.ajax( {\\n\\t\\turl: url,\\n\\n\\t\\t// Make this explicit, since user can override this through ajaxSetup (#11264)\\n\\t\\ttype: \\\"GET\\\",\\n\\t\\tdataType: \\\"script\\\",\\n\\t\\tcache: true,\\n\\t\\tasync: false,\\n\\t\\tglobal: false,\\n\\t\\t\\\"throws\\\": true\\n\\t} );\\n};\\n\\n\\njQuery.fn.extend( {\\n\\twrapAll: function( html ) {\\n\\t\\tvar wrap;\\n\\n\\t\\tif ( this[ 0 ] ) {\\n\\t\\t\\tif ( jQuery.isFunction( html ) ) {\\n\\t\\t\\t\\thtml = html.call( this[ 0 ] );\\n\\t\\t\\t}\\n\\n\\t\\t\\t// The elements to wrap the target around\\n\\t\\t\\twrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true );\\n\\n\\t\\t\\tif ( this[ 0 ].parentNode ) {\\n\\t\\t\\t\\twrap.insertBefore( this[ 0 ] );\\n\\t\\t\\t}\\n\\n\\t\\t\\twrap.map( function() {\\n\\t\\t\\t\\tvar elem = this;\\n\\n\\t\\t\\t\\twhile ( elem.firstElementChild ) {\\n\\t\\t\\t\\t\\telem = elem.firstElementChild;\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\treturn elem;\\n\\t\\t\\t} ).append( this );\\n\\t\\t}\\n\\n\\t\\treturn this;\\n\\t},\\n\\n\\twrapInner: function( html ) {\\n\\t\\tif ( jQuery.isFunction( html ) ) {\\n\\t\\t\\treturn this.each( function( i ) {\\n\\t\\t\\t\\tjQuery( this ).wrapInner( html.call( this, i ) );\\n\\t\\t\\t} );\\n\\t\\t}\\n\\n\\t\\treturn this.each( function() {\\n\\t\\t\\tvar self = jQuery( this ),\\n\\t\\t\\t\\tcontents = self.contents();\\n\\n\\t\\t\\tif ( contents.length ) {\\n\\t\\t\\t\\tcontents.wrapAll( html );\\n\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tself.append( html );\\n\\t\\t\\t}\\n\\t\\t} );\\n\\t},\\n\\n\\twrap: function( html ) {\\n\\t\\tvar isFunction = jQuery.isFunction( html );\\n\\n\\t\\treturn this.each( function( i ) {\\n\\t\\t\\tjQuery( this ).wrapAll( isFunction ? html.call( this, i ) : html );\\n\\t\\t} );\\n\\t},\\n\\n\\tunwrap: function( selector ) {\\n\\t\\tthis.parent( selector ).not( \\\"body\\\" ).each( function() {\\n\\t\\t\\tjQuery( this ).replaceWith( this.childNodes );\\n\\t\\t} );\\n\\t\\treturn this;\\n\\t}\\n} );\\n\\n\\njQuery.expr.pseudos.hidden = function( elem ) {\\n\\treturn !jQuery.expr.pseudos.visible( elem );\\n};\\njQuery.expr.pseudos.visible = function( elem ) {\\n\\treturn !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length );\\n};\\n\\n\\n\\n\\njQuery.ajaxSettings.xhr = function() {\\n\\ttry {\\n\\t\\treturn new window.XMLHttpRequest();\\n\\t} catch ( e ) {}\\n};\\n\\nvar xhrSuccessStatus = {\\n\\n\\t\\t// File protocol always yields status code 0, assume 200\\n\\t\\t0: 200,\\n\\n\\t\\t// Support: IE <=9 only\\n\\t\\t// #1450: sometimes IE returns 1223 when it should be 204\\n\\t\\t1223: 204\\n\\t},\\n\\txhrSupported = jQuery.ajaxSettings.xhr();\\n\\nsupport.cors = !!xhrSupported && ( \\\"withCredentials\\\" in xhrSupported );\\nsupport.ajax = xhrSupported = !!xhrSupported;\\n\\njQuery.ajaxTransport( function( options ) {\\n\\tvar callback, errorCallback;\\n\\n\\t// Cross domain only allowed if supported through XMLHttpRequest\\n\\tif ( support.cors || xhrSupported && !options.crossDomain ) {\\n\\t\\treturn {\\n\\t\\t\\tsend: function( headers, complete ) {\\n\\t\\t\\t\\tvar i,\\n\\t\\t\\t\\t\\txhr = options.xhr();\\n\\n\\t\\t\\t\\txhr.open(\\n\\t\\t\\t\\t\\toptions.type,\\n\\t\\t\\t\\t\\toptions.url,\\n\\t\\t\\t\\t\\toptions.async,\\n\\t\\t\\t\\t\\toptions.username,\\n\\t\\t\\t\\t\\toptions.password\\n\\t\\t\\t\\t);\\n\\n\\t\\t\\t\\t// Apply custom fields if provided\\n\\t\\t\\t\\tif ( options.xhrFields ) {\\n\\t\\t\\t\\t\\tfor ( i in options.xhrFields ) {\\n\\t\\t\\t\\t\\t\\txhr[ i ] = options.xhrFields[ i ];\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t// Override mime type if needed\\n\\t\\t\\t\\tif ( options.mimeType && xhr.overrideMimeType ) {\\n\\t\\t\\t\\t\\txhr.overrideMimeType( options.mimeType );\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t// X-Requested-With header\\n\\t\\t\\t\\t// For cross-domain requests, seeing as conditions for a preflight are\\n\\t\\t\\t\\t// akin to a jigsaw puzzle, we simply never set it to be sure.\\n\\t\\t\\t\\t// (it can always be set on a per-request basis or even using ajaxSetup)\\n\\t\\t\\t\\t// For same-domain requests, won't change header if already provided.\\n\\t\\t\\t\\tif ( !options.crossDomain && !headers[ \\\"X-Requested-With\\\" ] ) {\\n\\t\\t\\t\\t\\theaders[ \\\"X-Requested-With\\\" ] = \\\"XMLHttpRequest\\\";\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t// Set headers\\n\\t\\t\\t\\tfor ( i in headers ) {\\n\\t\\t\\t\\t\\txhr.setRequestHeader( i, headers[ i ] );\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t// Callback\\n\\t\\t\\t\\tcallback = function( type ) {\\n\\t\\t\\t\\t\\treturn function() {\\n\\t\\t\\t\\t\\t\\tif ( callback ) {\\n\\t\\t\\t\\t\\t\\t\\tcallback = errorCallback = xhr.onload =\\n\\t\\t\\t\\t\\t\\t\\t\\txhr.onerror = xhr.onabort = xhr.onreadystatechange = null;\\n\\n\\t\\t\\t\\t\\t\\t\\tif ( type === \\\"abort\\\" ) {\\n\\t\\t\\t\\t\\t\\t\\t\\txhr.abort();\\n\\t\\t\\t\\t\\t\\t\\t} else if ( type === \\\"error\\\" ) {\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t// Support: IE <=9 only\\n\\t\\t\\t\\t\\t\\t\\t\\t// On a manual native abort, IE9 throws\\n\\t\\t\\t\\t\\t\\t\\t\\t// errors on any property access that is not readyState\\n\\t\\t\\t\\t\\t\\t\\t\\tif ( typeof xhr.status !== \\\"number\\\" ) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tcomplete( 0, \\\"error\\\" );\\n\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tcomplete(\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// File: protocol always yields status 0; see #8605, #14207\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\txhr.status,\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\txhr.statusText\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t);\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\tcomplete(\\n\\t\\t\\t\\t\\t\\t\\t\\t\\txhrSuccessStatus[ xhr.status ] || xhr.status,\\n\\t\\t\\t\\t\\t\\t\\t\\t\\txhr.statusText,\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t// Support: IE <=9 only\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t// IE9 has no XHR2 but throws on binary (trac-11426)\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t// For XHR2 non-text, let the caller handle it (gh-2498)\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t( xhr.responseType || \\\"text\\\" ) !== \\\"text\\\"  ||\\n\\t\\t\\t\\t\\t\\t\\t\\t\\ttypeof xhr.responseText !== \\\"string\\\" ?\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t{ binary: xhr.response } :\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t{ text: xhr.responseText },\\n\\t\\t\\t\\t\\t\\t\\t\\t\\txhr.getAllResponseHeaders()\\n\\t\\t\\t\\t\\t\\t\\t\\t);\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t};\\n\\t\\t\\t\\t};\\n\\n\\t\\t\\t\\t// Listen to events\\n\\t\\t\\t\\txhr.onload = callback();\\n\\t\\t\\t\\terrorCallback = xhr.onerror = callback( \\\"error\\\" );\\n\\n\\t\\t\\t\\t// Support: IE 9 only\\n\\t\\t\\t\\t// Use onreadystatechange to replace onabort\\n\\t\\t\\t\\t// to handle uncaught aborts\\n\\t\\t\\t\\tif ( xhr.onabort !== undefined ) {\\n\\t\\t\\t\\t\\txhr.onabort = errorCallback;\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\txhr.onreadystatechange = function() {\\n\\n\\t\\t\\t\\t\\t\\t// Check readyState before timeout as it changes\\n\\t\\t\\t\\t\\t\\tif ( xhr.readyState === 4 ) {\\n\\n\\t\\t\\t\\t\\t\\t\\t// Allow onerror to be called first,\\n\\t\\t\\t\\t\\t\\t\\t// but that will not handle a native abort\\n\\t\\t\\t\\t\\t\\t\\t// Also, save errorCallback to a variable\\n\\t\\t\\t\\t\\t\\t\\t// as xhr.onerror cannot be accessed\\n\\t\\t\\t\\t\\t\\t\\twindow.setTimeout( function() {\\n\\t\\t\\t\\t\\t\\t\\t\\tif ( callback ) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\terrorCallback();\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t} );\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t};\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t// Create the abort callback\\n\\t\\t\\t\\tcallback = callback( \\\"abort\\\" );\\n\\n\\t\\t\\t\\ttry {\\n\\n\\t\\t\\t\\t\\t// Do send the request (this may raise an exception)\\n\\t\\t\\t\\t\\txhr.send( options.hasContent && options.data || null );\\n\\t\\t\\t\\t} catch ( e ) {\\n\\n\\t\\t\\t\\t\\t// #14683: Only rethrow if this hasn't been notified as an error yet\\n\\t\\t\\t\\t\\tif ( callback ) {\\n\\t\\t\\t\\t\\t\\tthrow e;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t},\\n\\n\\t\\t\\tabort: function() {\\n\\t\\t\\t\\tif ( callback ) {\\n\\t\\t\\t\\t\\tcallback();\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t};\\n\\t}\\n} );\\n\\n\\n\\n\\n// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432)\\njQuery.ajaxPrefilter( function( s ) {\\n\\tif ( s.crossDomain ) {\\n\\t\\ts.contents.script = false;\\n\\t}\\n} );\\n\\n// Install script dataType\\njQuery.ajaxSetup( {\\n\\taccepts: {\\n\\t\\tscript: \\\"text/javascript, application/javascript, \\\" +\\n\\t\\t\\t\\\"application/ecmascript, application/x-ecmascript\\\"\\n\\t},\\n\\tcontents: {\\n\\t\\tscript: /\\\\b(?:java|ecma)script\\\\b/\\n\\t},\\n\\tconverters: {\\n\\t\\t\\\"text script\\\": function( text ) {\\n\\t\\t\\tjQuery.globalEval( text );\\n\\t\\t\\treturn text;\\n\\t\\t}\\n\\t}\\n} );\\n\\n// Handle cache's special case and crossDomain\\njQuery.ajaxPrefilter( \\\"script\\\", function( s ) {\\n\\tif ( s.cache === undefined ) {\\n\\t\\ts.cache = false;\\n\\t}\\n\\tif ( s.crossDomain ) {\\n\\t\\ts.type = \\\"GET\\\";\\n\\t}\\n} );\\n\\n// Bind script tag hack transport\\njQuery.ajaxTransport( \\\"script\\\", function( s ) {\\n\\n\\t// This transport only deals with cross domain requests\\n\\tif ( s.crossDomain ) {\\n\\t\\tvar script, callback;\\n\\t\\treturn {\\n\\t\\t\\tsend: function( _, complete ) {\\n\\t\\t\\t\\tscript = jQuery( \\\"<script>\\\" ).prop( {\\n\\t\\t\\t\\t\\tcharset: s.scriptCharset,\\n\\t\\t\\t\\t\\tsrc: s.url\\n\\t\\t\\t\\t} ).on(\\n\\t\\t\\t\\t\\t\\\"load error\\\",\\n\\t\\t\\t\\t\\tcallback = function( evt ) {\\n\\t\\t\\t\\t\\t\\tscript.remove();\\n\\t\\t\\t\\t\\t\\tcallback = null;\\n\\t\\t\\t\\t\\t\\tif ( evt ) {\\n\\t\\t\\t\\t\\t\\t\\tcomplete( evt.type === \\\"error\\\" ? 404 : 200, evt.type );\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t);\\n\\n\\t\\t\\t\\t// Use native DOM manipulation to avoid our domManip AJAX trickery\\n\\t\\t\\t\\tdocument.head.appendChild( script[ 0 ] );\\n\\t\\t\\t},\\n\\t\\t\\tabort: function() {\\n\\t\\t\\t\\tif ( callback ) {\\n\\t\\t\\t\\t\\tcallback();\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t};\\n\\t}\\n} );\\n\\n\\n\\n\\nvar oldCallbacks = [],\\n\\trjsonp = /(=)\\\\?(?=&|$)|\\\\?\\\\?/;\\n\\n// Default jsonp settings\\njQuery.ajaxSetup( {\\n\\tjsonp: \\\"callback\\\",\\n\\tjsonpCallback: function() {\\n\\t\\tvar callback = oldCallbacks.pop() || ( jQuery.expando + \\\"_\\\" + ( nonce++ ) );\\n\\t\\tthis[ callback ] = true;\\n\\t\\treturn callback;\\n\\t}\\n} );\\n\\n// Detect, normalize options and install callbacks for jsonp requests\\njQuery.ajaxPrefilter( \\\"json jsonp\\\", function( s, originalSettings, jqXHR ) {\\n\\n\\tvar callbackName, overwritten, responseContainer,\\n\\t\\tjsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?\\n\\t\\t\\t\\\"url\\\" :\\n\\t\\t\\ttypeof s.data === \\\"string\\\" &&\\n\\t\\t\\t\\t( s.contentType || \\\"\\\" )\\n\\t\\t\\t\\t\\t.indexOf( \\\"application/x-www-form-urlencoded\\\" ) === 0 &&\\n\\t\\t\\t\\trjsonp.test( s.data ) && \\\"data\\\"\\n\\t\\t);\\n\\n\\t// Handle iff the expected data type is \\\"jsonp\\\" or we have a parameter to set\\n\\tif ( jsonProp || s.dataTypes[ 0 ] === \\\"jsonp\\\" ) {\\n\\n\\t\\t// Get callback name, remembering preexisting value associated with it\\n\\t\\tcallbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ?\\n\\t\\t\\ts.jsonpCallback() :\\n\\t\\t\\ts.jsonpCallback;\\n\\n\\t\\t// Insert callback into url or form data\\n\\t\\tif ( jsonProp ) {\\n\\t\\t\\ts[ jsonProp ] = s[ jsonProp ].replace( rjsonp, \\\"$1\\\" + callbackName );\\n\\t\\t} else if ( s.jsonp !== false ) {\\n\\t\\t\\ts.url += ( rquery.test( s.url ) ? \\\"&\\\" : \\\"?\\\" ) + s.jsonp + \\\"=\\\" + callbackName;\\n\\t\\t}\\n\\n\\t\\t// Use data converter to retrieve json after script execution\\n\\t\\ts.converters[ \\\"script json\\\" ] = function() {\\n\\t\\t\\tif ( !responseContainer ) {\\n\\t\\t\\t\\tjQuery.error( callbackName + \\\" was not called\\\" );\\n\\t\\t\\t}\\n\\t\\t\\treturn responseContainer[ 0 ];\\n\\t\\t};\\n\\n\\t\\t// Force json dataType\\n\\t\\ts.dataTypes[ 0 ] = \\\"json\\\";\\n\\n\\t\\t// Install callback\\n\\t\\toverwritten = window[ callbackName ];\\n\\t\\twindow[ callbackName ] = function() {\\n\\t\\t\\tresponseContainer = arguments;\\n\\t\\t};\\n\\n\\t\\t// Clean-up function (fires after converters)\\n\\t\\tjqXHR.always( function() {\\n\\n\\t\\t\\t// If previous value didn't exist - remove it\\n\\t\\t\\tif ( overwritten === undefined ) {\\n\\t\\t\\t\\tjQuery( window ).removeProp( callbackName );\\n\\n\\t\\t\\t// Otherwise restore preexisting value\\n\\t\\t\\t} else {\\n\\t\\t\\t\\twindow[ callbackName ] = overwritten;\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Save back as free\\n\\t\\t\\tif ( s[ callbackName ] ) {\\n\\n\\t\\t\\t\\t// Make sure that re-using the options doesn't screw things around\\n\\t\\t\\t\\ts.jsonpCallback = originalSettings.jsonpCallback;\\n\\n\\t\\t\\t\\t// Save the callback name for future use\\n\\t\\t\\t\\toldCallbacks.push( callbackName );\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Call if it was a function and we have a response\\n\\t\\t\\tif ( responseContainer && jQuery.isFunction( overwritten ) ) {\\n\\t\\t\\t\\toverwritten( responseContainer[ 0 ] );\\n\\t\\t\\t}\\n\\n\\t\\t\\tresponseContainer = overwritten = undefined;\\n\\t\\t} );\\n\\n\\t\\t// Delegate to script\\n\\t\\treturn \\\"script\\\";\\n\\t}\\n} );\\n\\n\\n\\n\\n// Support: Safari 8 only\\n// In Safari 8 documents created via document.implementation.createHTMLDocument\\n// collapse sibling forms: the second one becomes a child of the first one.\\n// Because of that, this security measure has to be disabled in Safari 8.\\n// https://bugs.webkit.org/show_bug.cgi?id=137337\\nsupport.createHTMLDocument = ( function() {\\n\\tvar body = document.implementation.createHTMLDocument( \\\"\\\" ).body;\\n\\tbody.innerHTML = \\\"<form></form><form></form>\\\";\\n\\treturn body.childNodes.length === 2;\\n} )();\\n\\n\\n// Argument \\\"data\\\" should be string of html\\n// context (optional): If specified, the fragment will be created in this context,\\n// defaults to document\\n// keepScripts (optional): If true, will include scripts passed in the html string\\njQuery.parseHTML = function( data, context, keepScripts ) {\\n\\tif ( typeof data !== \\\"string\\\" ) {\\n\\t\\treturn [];\\n\\t}\\n\\tif ( typeof context === \\\"boolean\\\" ) {\\n\\t\\tkeepScripts = context;\\n\\t\\tcontext = false;\\n\\t}\\n\\n\\tvar base, parsed, scripts;\\n\\n\\tif ( !context ) {\\n\\n\\t\\t// Stop scripts or inline event handlers from being executed immediately\\n\\t\\t// by using document.implementation\\n\\t\\tif ( support.createHTMLDocument ) {\\n\\t\\t\\tcontext = document.implementation.createHTMLDocument( \\\"\\\" );\\n\\n\\t\\t\\t// Set the base href for the created document\\n\\t\\t\\t// so any parsed elements with URLs\\n\\t\\t\\t// are based on the document's URL (gh-2965)\\n\\t\\t\\tbase = context.createElement( \\\"base\\\" );\\n\\t\\t\\tbase.href = document.location.href;\\n\\t\\t\\tcontext.head.appendChild( base );\\n\\t\\t} else {\\n\\t\\t\\tcontext = document;\\n\\t\\t}\\n\\t}\\n\\n\\tparsed = rsingleTag.exec( data );\\n\\tscripts = !keepScripts && [];\\n\\n\\t// Single tag\\n\\tif ( parsed ) {\\n\\t\\treturn [ context.createElement( parsed[ 1 ] ) ];\\n\\t}\\n\\n\\tparsed = buildFragment( [ data ], context, scripts );\\n\\n\\tif ( scripts && scripts.length ) {\\n\\t\\tjQuery( scripts ).remove();\\n\\t}\\n\\n\\treturn jQuery.merge( [], parsed.childNodes );\\n};\\n\\n\\n/**\\n * Load a url into a page\\n */\\njQuery.fn.load = function( url, params, callback ) {\\n\\tvar selector, type, response,\\n\\t\\tself = this,\\n\\t\\toff = url.indexOf( \\\" \\\" );\\n\\n\\tif ( off > -1 ) {\\n\\t\\tselector = stripAndCollapse( url.slice( off ) );\\n\\t\\turl = url.slice( 0, off );\\n\\t}\\n\\n\\t// If it's a function\\n\\tif ( jQuery.isFunction( params ) ) {\\n\\n\\t\\t// We assume that it's the callback\\n\\t\\tcallback = params;\\n\\t\\tparams = undefined;\\n\\n\\t// Otherwise, build a param string\\n\\t} else if ( params && typeof params === \\\"object\\\" ) {\\n\\t\\ttype = \\\"POST\\\";\\n\\t}\\n\\n\\t// If we have elements to modify, make the request\\n\\tif ( self.length > 0 ) {\\n\\t\\tjQuery.ajax( {\\n\\t\\t\\turl: url,\\n\\n\\t\\t\\t// If \\\"type\\\" variable is undefined, then \\\"GET\\\" method will be used.\\n\\t\\t\\t// Make value of this field explicit since\\n\\t\\t\\t// user can override it through ajaxSetup method\\n\\t\\t\\ttype: type || \\\"GET\\\",\\n\\t\\t\\tdataType: \\\"html\\\",\\n\\t\\t\\tdata: params\\n\\t\\t} ).done( function( responseText ) {\\n\\n\\t\\t\\t// Save response for use in complete callback\\n\\t\\t\\tresponse = arguments;\\n\\n\\t\\t\\tself.html( selector ?\\n\\n\\t\\t\\t\\t// If a selector was specified, locate the right elements in a dummy div\\n\\t\\t\\t\\t// Exclude scripts to avoid IE 'Permission Denied' errors\\n\\t\\t\\t\\tjQuery( \\\"<div>\\\" ).append( jQuery.parseHTML( responseText ) ).find( selector ) :\\n\\n\\t\\t\\t\\t// Otherwise use the full result\\n\\t\\t\\t\\tresponseText );\\n\\n\\t\\t// If the request succeeds, this function gets \\\"data\\\", \\\"status\\\", \\\"jqXHR\\\"\\n\\t\\t// but they are ignored because response was set above.\\n\\t\\t// If it fails, this function gets \\\"jqXHR\\\", \\\"status\\\", \\\"error\\\"\\n\\t\\t} ).always( callback && function( jqXHR, status ) {\\n\\t\\t\\tself.each( function() {\\n\\t\\t\\t\\tcallback.apply( this, response || [ jqXHR.responseText, status, jqXHR ] );\\n\\t\\t\\t} );\\n\\t\\t} );\\n\\t}\\n\\n\\treturn this;\\n};\\n\\n\\n\\n\\n// Attach a bunch of functions for handling common AJAX events\\njQuery.each( [\\n\\t\\\"ajaxStart\\\",\\n\\t\\\"ajaxStop\\\",\\n\\t\\\"ajaxComplete\\\",\\n\\t\\\"ajaxError\\\",\\n\\t\\\"ajaxSuccess\\\",\\n\\t\\\"ajaxSend\\\"\\n], function( i, type ) {\\n\\tjQuery.fn[ type ] = function( fn ) {\\n\\t\\treturn this.on( type, fn );\\n\\t};\\n} );\\n\\n\\n\\n\\njQuery.expr.pseudos.animated = function( elem ) {\\n\\treturn jQuery.grep( jQuery.timers, function( fn ) {\\n\\t\\treturn elem === fn.elem;\\n\\t} ).length;\\n};\\n\\n\\n\\n\\n/**\\n * Gets a window from an element\\n */\\nfunction getWindow( elem ) {\\n\\treturn jQuery.isWindow( elem ) ? elem : elem.nodeType === 9 && elem.defaultView;\\n}\\n\\njQuery.offset = {\\n\\tsetOffset: function( elem, options, i ) {\\n\\t\\tvar curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,\\n\\t\\t\\tposition = jQuery.css( elem, \\\"position\\\" ),\\n\\t\\t\\tcurElem = jQuery( elem ),\\n\\t\\t\\tprops = {};\\n\\n\\t\\t// Set position first, in-case top/left are set even on static elem\\n\\t\\tif ( position === \\\"static\\\" ) {\\n\\t\\t\\telem.style.position = \\\"relative\\\";\\n\\t\\t}\\n\\n\\t\\tcurOffset = curElem.offset();\\n\\t\\tcurCSSTop = jQuery.css( elem, \\\"top\\\" );\\n\\t\\tcurCSSLeft = jQuery.css( elem, \\\"left\\\" );\\n\\t\\tcalculatePosition = ( position === \\\"absolute\\\" || position === \\\"fixed\\\" ) &&\\n\\t\\t\\t( curCSSTop + curCSSLeft ).indexOf( \\\"auto\\\" ) > -1;\\n\\n\\t\\t// Need to be able to calculate position if either\\n\\t\\t// top or left is auto and position is either absolute or fixed\\n\\t\\tif ( calculatePosition ) {\\n\\t\\t\\tcurPosition = curElem.position();\\n\\t\\t\\tcurTop = curPosition.top;\\n\\t\\t\\tcurLeft = curPosition.left;\\n\\n\\t\\t} else {\\n\\t\\t\\tcurTop = parseFloat( curCSSTop ) || 0;\\n\\t\\t\\tcurLeft = parseFloat( curCSSLeft ) || 0;\\n\\t\\t}\\n\\n\\t\\tif ( jQuery.isFunction( options ) ) {\\n\\n\\t\\t\\t// Use jQuery.extend here to allow modification of coordinates argument (gh-1848)\\n\\t\\t\\toptions = options.call( elem, i, jQuery.extend( {}, curOffset ) );\\n\\t\\t}\\n\\n\\t\\tif ( options.top != null ) {\\n\\t\\t\\tprops.top = ( options.top - curOffset.top ) + curTop;\\n\\t\\t}\\n\\t\\tif ( options.left != null ) {\\n\\t\\t\\tprops.left = ( options.left - curOffset.left ) + curLeft;\\n\\t\\t}\\n\\n\\t\\tif ( \\\"using\\\" in options ) {\\n\\t\\t\\toptions.using.call( elem, props );\\n\\n\\t\\t} else {\\n\\t\\t\\tcurElem.css( props );\\n\\t\\t}\\n\\t}\\n};\\n\\njQuery.fn.extend( {\\n\\toffset: function( options ) {\\n\\n\\t\\t// Preserve chaining for setter\\n\\t\\tif ( arguments.length ) {\\n\\t\\t\\treturn options === undefined ?\\n\\t\\t\\t\\tthis :\\n\\t\\t\\t\\tthis.each( function( i ) {\\n\\t\\t\\t\\t\\tjQuery.offset.setOffset( this, options, i );\\n\\t\\t\\t\\t} );\\n\\t\\t}\\n\\n\\t\\tvar docElem, win, rect, doc,\\n\\t\\t\\telem = this[ 0 ];\\n\\n\\t\\tif ( !elem ) {\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\t// Support: IE <=11 only\\n\\t\\t// Running getBoundingClientRect on a\\n\\t\\t// disconnected node in IE throws an error\\n\\t\\tif ( !elem.getClientRects().length ) {\\n\\t\\t\\treturn { top: 0, left: 0 };\\n\\t\\t}\\n\\n\\t\\trect = elem.getBoundingClientRect();\\n\\n\\t\\t// Make sure element is not hidden (display: none)\\n\\t\\tif ( rect.width || rect.height ) {\\n\\t\\t\\tdoc = elem.ownerDocument;\\n\\t\\t\\twin = getWindow( doc );\\n\\t\\t\\tdocElem = doc.documentElement;\\n\\n\\t\\t\\treturn {\\n\\t\\t\\t\\ttop: rect.top + win.pageYOffset - docElem.clientTop,\\n\\t\\t\\t\\tleft: rect.left + win.pageXOffset - docElem.clientLeft\\n\\t\\t\\t};\\n\\t\\t}\\n\\n\\t\\t// Return zeros for disconnected and hidden elements (gh-2310)\\n\\t\\treturn rect;\\n\\t},\\n\\n\\tposition: function() {\\n\\t\\tif ( !this[ 0 ] ) {\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\tvar offsetParent, offset,\\n\\t\\t\\telem = this[ 0 ],\\n\\t\\t\\tparentOffset = { top: 0, left: 0 };\\n\\n\\t\\t// Fixed elements are offset from window (parentOffset = {top:0, left: 0},\\n\\t\\t// because it is its only offset parent\\n\\t\\tif ( jQuery.css( elem, \\\"position\\\" ) === \\\"fixed\\\" ) {\\n\\n\\t\\t\\t// Assume getBoundingClientRect is there when computed position is fixed\\n\\t\\t\\toffset = elem.getBoundingClientRect();\\n\\n\\t\\t} else {\\n\\n\\t\\t\\t// Get *real* offsetParent\\n\\t\\t\\toffsetParent = this.offsetParent();\\n\\n\\t\\t\\t// Get correct offsets\\n\\t\\t\\toffset = this.offset();\\n\\t\\t\\tif ( !jQuery.nodeName( offsetParent[ 0 ], \\\"html\\\" ) ) {\\n\\t\\t\\t\\tparentOffset = offsetParent.offset();\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Add offsetParent borders\\n\\t\\t\\tparentOffset = {\\n\\t\\t\\t\\ttop: parentOffset.top + jQuery.css( offsetParent[ 0 ], \\\"borderTopWidth\\\", true ),\\n\\t\\t\\t\\tleft: parentOffset.left + jQuery.css( offsetParent[ 0 ], \\\"borderLeftWidth\\\", true )\\n\\t\\t\\t};\\n\\t\\t}\\n\\n\\t\\t// Subtract parent offsets and element margins\\n\\t\\treturn {\\n\\t\\t\\ttop: offset.top - parentOffset.top - jQuery.css( elem, \\\"marginTop\\\", true ),\\n\\t\\t\\tleft: offset.left - parentOffset.left - jQuery.css( elem, \\\"marginLeft\\\", true )\\n\\t\\t};\\n\\t},\\n\\n\\t// This method will return documentElement in the following cases:\\n\\t// 1) For the element inside the iframe without offsetParent, this method will return\\n\\t//    documentElement of the parent window\\n\\t// 2) For the hidden or detached element\\n\\t// 3) For body or html element, i.e. in case of the html node - it will return itself\\n\\t//\\n\\t// but those exceptions were never presented as a real life use-cases\\n\\t// and might be considered as more preferable results.\\n\\t//\\n\\t// This logic, however, is not guaranteed and can change at any point in the future\\n\\toffsetParent: function() {\\n\\t\\treturn this.map( function() {\\n\\t\\t\\tvar offsetParent = this.offsetParent;\\n\\n\\t\\t\\twhile ( offsetParent && jQuery.css( offsetParent, \\\"position\\\" ) === \\\"static\\\" ) {\\n\\t\\t\\t\\toffsetParent = offsetParent.offsetParent;\\n\\t\\t\\t}\\n\\n\\t\\t\\treturn offsetParent || documentElement;\\n\\t\\t} );\\n\\t}\\n} );\\n\\n// Create scrollLeft and scrollTop methods\\njQuery.each( { scrollLeft: \\\"pageXOffset\\\", scrollTop: \\\"pageYOffset\\\" }, function( method, prop ) {\\n\\tvar top = \\\"pageYOffset\\\" === prop;\\n\\n\\tjQuery.fn[ method ] = function( val ) {\\n\\t\\treturn access( this, function( elem, method, val ) {\\n\\t\\t\\tvar win = getWindow( elem );\\n\\n\\t\\t\\tif ( val === undefined ) {\\n\\t\\t\\t\\treturn win ? win[ prop ] : elem[ method ];\\n\\t\\t\\t}\\n\\n\\t\\t\\tif ( win ) {\\n\\t\\t\\t\\twin.scrollTo(\\n\\t\\t\\t\\t\\t!top ? val : win.pageXOffset,\\n\\t\\t\\t\\t\\ttop ? val : win.pageYOffset\\n\\t\\t\\t\\t);\\n\\n\\t\\t\\t} else {\\n\\t\\t\\t\\telem[ method ] = val;\\n\\t\\t\\t}\\n\\t\\t}, method, val, arguments.length );\\n\\t};\\n} );\\n\\n// Support: Safari <=7 - 9.1, Chrome <=37 - 49\\n// Add the top/left cssHooks using jQuery.fn.position\\n// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084\\n// Blink bug: https://bugs.chromium.org/p/chromium/issues/detail?id=589347\\n// getComputedStyle returns percent when specified for top/left/bottom/right;\\n// rather than make the css module depend on the offset module, just check for it here\\njQuery.each( [ \\\"top\\\", \\\"left\\\" ], function( i, prop ) {\\n\\tjQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,\\n\\t\\tfunction( elem, computed ) {\\n\\t\\t\\tif ( computed ) {\\n\\t\\t\\t\\tcomputed = curCSS( elem, prop );\\n\\n\\t\\t\\t\\t// If curCSS returns percentage, fallback to offset\\n\\t\\t\\t\\treturn rnumnonpx.test( computed ) ?\\n\\t\\t\\t\\t\\tjQuery( elem ).position()[ prop ] + \\\"px\\\" :\\n\\t\\t\\t\\t\\tcomputed;\\n\\t\\t\\t}\\n\\t\\t}\\n\\t);\\n} );\\n\\n\\n// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods\\njQuery.each( { Height: \\\"height\\\", Width: \\\"width\\\" }, function( name, type ) {\\n\\tjQuery.each( { padding: \\\"inner\\\" + name, content: type, \\\"\\\": \\\"outer\\\" + name },\\n\\t\\tfunction( defaultExtra, funcName ) {\\n\\n\\t\\t// Margin is only for outerHeight, outerWidth\\n\\t\\tjQuery.fn[ funcName ] = function( margin, value ) {\\n\\t\\t\\tvar chainable = arguments.length && ( defaultExtra || typeof margin !== \\\"boolean\\\" ),\\n\\t\\t\\t\\textra = defaultExtra || ( margin === true || value === true ? \\\"margin\\\" : \\\"border\\\" );\\n\\n\\t\\t\\treturn access( this, function( elem, type, value ) {\\n\\t\\t\\t\\tvar doc;\\n\\n\\t\\t\\t\\tif ( jQuery.isWindow( elem ) ) {\\n\\n\\t\\t\\t\\t\\t// $( window ).outerWidth/Height return w/h including scrollbars (gh-1729)\\n\\t\\t\\t\\t\\treturn funcName.indexOf( \\\"outer\\\" ) === 0 ?\\n\\t\\t\\t\\t\\t\\telem[ \\\"inner\\\" + name ] :\\n\\t\\t\\t\\t\\t\\telem.document.documentElement[ \\\"client\\\" + name ];\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t// Get document width or height\\n\\t\\t\\t\\tif ( elem.nodeType === 9 ) {\\n\\t\\t\\t\\t\\tdoc = elem.documentElement;\\n\\n\\t\\t\\t\\t\\t// Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height],\\n\\t\\t\\t\\t\\t// whichever is greatest\\n\\t\\t\\t\\t\\treturn Math.max(\\n\\t\\t\\t\\t\\t\\telem.body[ \\\"scroll\\\" + name ], doc[ \\\"scroll\\\" + name ],\\n\\t\\t\\t\\t\\t\\telem.body[ \\\"offset\\\" + name ], doc[ \\\"offset\\\" + name ],\\n\\t\\t\\t\\t\\t\\tdoc[ \\\"client\\\" + name ]\\n\\t\\t\\t\\t\\t);\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\treturn value === undefined ?\\n\\n\\t\\t\\t\\t\\t// Get width or height on the element, requesting but not forcing parseFloat\\n\\t\\t\\t\\t\\tjQuery.css( elem, type, extra ) :\\n\\n\\t\\t\\t\\t\\t// Set width or height on the element\\n\\t\\t\\t\\t\\tjQuery.style( elem, type, value, extra );\\n\\t\\t\\t}, type, chainable ? margin : undefined, chainable );\\n\\t\\t};\\n\\t} );\\n} );\\n\\n\\njQuery.fn.extend( {\\n\\n\\tbind: function( types, data, fn ) {\\n\\t\\treturn this.on( types, null, data, fn );\\n\\t},\\n\\tunbind: function( types, fn ) {\\n\\t\\treturn this.off( types, null, fn );\\n\\t},\\n\\n\\tdelegate: function( selector, types, data, fn ) {\\n\\t\\treturn this.on( types, selector, data, fn );\\n\\t},\\n\\tundelegate: function( selector, types, fn ) {\\n\\n\\t\\t// ( namespace ) or ( selector, types [, fn] )\\n\\t\\treturn arguments.length === 1 ?\\n\\t\\t\\tthis.off( selector, \\\"**\\\" ) :\\n\\t\\t\\tthis.off( types, selector || \\\"**\\\", fn );\\n\\t}\\n} );\\n\\njQuery.parseJSON = JSON.parse;\\n\\n\\n\\n\\n// Register as a named AMD module, since jQuery can be concatenated with other\\n// files that may use define, but not via a proper concatenation script that\\n// understands anonymous AMD modules. A named AMD is safest and most robust\\n// way to register. Lowercase jquery is used because AMD module names are\\n// derived from file names, and jQuery is normally delivered in a lowercase\\n// file name. Do this after creating the global so that if an AMD module wants\\n// to call noConflict to hide this version of jQuery, it will work.\\n\\n// Note that for maximum portability, libraries that are not jQuery should\\n// declare themselves as anonymous modules, and avoid setting a global if an\\n// AMD loader is present. jQuery is a special case. For more information, see\\n// https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon\\n\\nif ( typeof define === \\\"function\\\" && define.amd ) {\\n\\tdefine( \\\"jquery\\\", [], function() {\\n\\t\\treturn jQuery;\\n\\t} );\\n}\\n\\n\\n\\n\\nvar\\n\\n\\t// Map over jQuery in case of overwrite\\n\\t_jQuery = window.jQuery,\\n\\n\\t// Map over the $ in case of overwrite\\n\\t_$ = window.$;\\n\\njQuery.noConflict = function( deep ) {\\n\\tif ( window.$ === jQuery ) {\\n\\t\\twindow.$ = _$;\\n\\t}\\n\\n\\tif ( deep && window.jQuery === jQuery ) {\\n\\t\\twindow.jQuery = _jQuery;\\n\\t}\\n\\n\\treturn jQuery;\\n};\\n\\n// Expose jQuery and $ identifiers, even in AMD\\n// (#7102#comment:10, https://github.com/jquery/jquery/pull/557)\\n// and CommonJS for browser emulators (#13566)\\nif ( !noGlobal ) {\\n\\twindow.jQuery = window.$ = jQuery;\\n}\\n\\n\\n\\n\\n\\nreturn jQuery;\\n} );\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// /home/cool/Music/personal_projects/Zmall/angbackuo/~/raw-loader!/home/cool/Music/personal_projects/Zmall/angbackuo/~/jquery/dist/jquery.js\n// module id = 1487\n// module chunks = 2","module.exports = \"/*\\n * metismenu - v2.6.1\\n * A jQuery menu plugin\\n * https://github.com/onokumus/metisMenu#readme\\n *\\n * Made by Osman Nuri Okumuş <onokumus@gmail.com> (https://github.com/onokumus)\\n * Under MIT License\\n */\\n\\n(function (global, factory) {\\n  if (typeof define === \\\"function\\\" && define.amd) {\\n    define(['jquery'], factory);\\n  } else if (typeof exports !== \\\"undefined\\\") {\\n    factory(require('jquery'));\\n  } else {\\n    var mod = {\\n      exports: {}\\n    };\\n    factory(global.jquery);\\n    global.metisMenu = mod.exports;\\n  }\\n})(this, function (_jquery) {\\n  'use strict';\\n\\n  var _jquery2 = _interopRequireDefault(_jquery);\\n\\n  function _interopRequireDefault(obj) {\\n    return obj && obj.__esModule ? obj : {\\n      default: obj\\n    };\\n  }\\n\\n  var _typeof = typeof Symbol === \\\"function\\\" && typeof Symbol.iterator === \\\"symbol\\\" ? function (obj) {\\n    return typeof obj;\\n  } : function (obj) {\\n    return obj && typeof Symbol === \\\"function\\\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \\\"symbol\\\" : typeof obj;\\n  };\\n\\n  function _classCallCheck(instance, Constructor) {\\n    if (!(instance instanceof Constructor)) {\\n      throw new TypeError(\\\"Cannot call a class as a function\\\");\\n    }\\n  }\\n\\n  var _createClass = function () {\\n    function defineProperties(target, props) {\\n      for (var i = 0; i < props.length; i++) {\\n        var descriptor = props[i];\\n        descriptor.enumerable = descriptor.enumerable || false;\\n        descriptor.configurable = true;\\n        if (\\\"value\\\" in descriptor) descriptor.writable = true;\\n        Object.defineProperty(target, descriptor.key, descriptor);\\n      }\\n    }\\n\\n    return function (Constructor, protoProps, staticProps) {\\n      if (protoProps) defineProperties(Constructor.prototype, protoProps);\\n      if (staticProps) defineProperties(Constructor, staticProps);\\n      return Constructor;\\n    };\\n  }();\\n\\n  var MetisMenu = function ($) {\\n\\n    var NAME = 'metisMenu';\\n    var DATA_KEY = 'metisMenu';\\n    var EVENT_KEY = '.' + DATA_KEY;\\n    var DATA_API_KEY = '.data-api';\\n    var JQUERY_NO_CONFLICT = $.fn[NAME];\\n    var TRANSITION_DURATION = 350;\\n\\n    var Default = {\\n      toggle: true,\\n      doubleTapToGo: false,\\n      preventDefault: true,\\n      activeClass: 'active',\\n      collapseClass: 'collapse',\\n      collapseInClass: 'in',\\n      collapsingClass: 'collapsing'\\n    };\\n\\n    var Event = {\\n      SHOW: 'show' + EVENT_KEY,\\n      SHOWN: 'shown' + EVENT_KEY,\\n      HIDE: 'hide' + EVENT_KEY,\\n      HIDDEN: 'hidden' + EVENT_KEY,\\n      CLICK_DATA_API: 'click' + EVENT_KEY + DATA_API_KEY\\n    };\\n\\n    var transition = false;\\n\\n    var TransitionEndEvent = {\\n      WebkitTransition: 'webkitTransitionEnd',\\n      MozTransition: 'transitionend',\\n      OTransition: 'oTransitionEnd otransitionend',\\n      transition: 'transitionend'\\n    };\\n\\n    function getSpecialTransitionEndEvent() {\\n      return {\\n        bindType: transition.end,\\n        delegateType: transition.end,\\n        handle: function handle(event) {\\n          if ($(event.target).is(this)) {\\n            return event.handleObj.handler.apply(this, arguments);\\n          }\\n        }\\n      };\\n    }\\n\\n    function transitionEndTest() {\\n      if (window.QUnit) {\\n        return false;\\n      }\\n\\n      var el = document.createElement('mm');\\n\\n      for (var name in TransitionEndEvent) {\\n        if (el.style[name] !== undefined) {\\n          return {\\n            end: TransitionEndEvent[name]\\n          };\\n        }\\n      }\\n\\n      return false;\\n    }\\n\\n    function transitionEndEmulator(duration) {\\n      var _this2 = this;\\n\\n      var called = false;\\n\\n      $(this).one(Util.TRANSITION_END, function () {\\n        called = true;\\n      });\\n\\n      setTimeout(function () {\\n        if (!called) {\\n          Util.triggerTransitionEnd(_this2);\\n        }\\n      }, duration);\\n    }\\n\\n    function setTransitionEndSupport() {\\n      transition = transitionEndTest();\\n\\n      if (Util.supportsTransitionEnd()) {\\n        $.event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent();\\n      }\\n    }\\n\\n    var Util = {\\n      TRANSITION_END: 'mmTransitionEnd',\\n\\n      triggerTransitionEnd: function triggerTransitionEnd(element) {\\n        $(element).trigger(transition.end);\\n      },\\n      supportsTransitionEnd: function supportsTransitionEnd() {\\n        return Boolean(transition);\\n      }\\n    };\\n\\n    setTransitionEndSupport();\\n\\n    var MetisMenu = function () {\\n      function MetisMenu(element, config) {\\n        _classCallCheck(this, MetisMenu);\\n\\n        this._element = element;\\n        this._config = this._getConfig(config);\\n        this._transitioning = null;\\n\\n        this.init();\\n      }\\n\\n      _createClass(MetisMenu, [{\\n        key: 'init',\\n        value: function init() {\\n          var self = this;\\n          $(this._element).find('li.' + this._config.activeClass).has('ul').children('ul').attr('aria-expanded', true).addClass(this._config.collapseClass + ' ' + this._config.collapseInClass);\\n\\n          $(this._element).find('li').not('.' + this._config.activeClass).has('ul').children('ul').attr('aria-expanded', false).addClass(this._config.collapseClass);\\n\\n          //add the 'doubleTapToGo' class to active items if needed\\n          if (this._config.doubleTapToGo) {\\n            $(this._element).find('li.' + this._config.activeClass).has('ul').children('a').addClass('doubleTapToGo');\\n          }\\n          $(this._element).find('li').has('ul').children('a').on(Event.CLICK_DATA_API, function (e) {\\n            var _this = $(this);\\n            var _parent = _this.parent('li');\\n            var _siblings = _parent.siblings('li').children('a');\\n            var _list = _parent.children('ul');\\n            if (self._config.preventDefault) {\\n              e.preventDefault();\\n            }\\n            if (_this.attr('aria-disabled') === 'true') {\\n              return;\\n            }\\n            if (_parent.hasClass(self._config.activeClass) && !self._config.doubleTapToGo) {\\n              _this.attr('aria-expanded', false);\\n              self._hide(_list);\\n            } else {\\n              self._show(_list);\\n              _this.attr('aria-expanded', true);\\n              if (self._config.toggle) {\\n                _siblings.attr('aria-expanded', false);\\n              }\\n            }\\n\\n            if (self._config.onTransitionStart) {\\n              self._config.onTransitionStart(e);\\n            }\\n\\n            //Do we need to enable the double tap\\n            if (self._config.doubleTapToGo) {\\n              //if we hit a second time on the link and the href is valid, navigate to that url\\n              if (self._doubleTapToGo(_this) && _this.attr('href') !== '#' && _this.attr('href') !== '') {\\n                e.stopPropagation();\\n                document.location = _this.attr('href');\\n                return;\\n              }\\n            }\\n          });\\n        }\\n      }, {\\n        key: '_show',\\n        value: function _show(element) {\\n          if (this._transitioning || $(element).hasClass(this._config.collapsingClass)) {\\n            return;\\n          }\\n          var _this = this;\\n          var _el = $(element);\\n\\n          var startEvent = $.Event(Event.SHOW);\\n          _el.trigger(startEvent);\\n\\n          if (startEvent.isDefaultPrevented()) {\\n            return;\\n          }\\n\\n          _el.parent('li').addClass(this._config.activeClass);\\n\\n          if (this._config.toggle) {\\n            this._hide(_el.parent('li').siblings().children('ul.' + this._config.collapseInClass).attr('aria-expanded', false));\\n          }\\n\\n          _el.removeClass(this._config.collapseClass).addClass(this._config.collapsingClass).height(0);\\n\\n          this.setTransitioning(true);\\n\\n          var complete = function complete() {\\n\\n            _el.removeClass(_this._config.collapsingClass).addClass(_this._config.collapseClass + ' ' + _this._config.collapseInClass).height('').attr('aria-expanded', true);\\n\\n            _this.setTransitioning(false);\\n\\n            _el.trigger(Event.SHOWN);\\n          };\\n\\n          if (!Util.supportsTransitionEnd()) {\\n            complete();\\n            return;\\n          }\\n\\n          _el.height(_el[0].scrollHeight).one(Util.TRANSITION_END, complete);\\n\\n          transitionEndEmulator(TRANSITION_DURATION);\\n        }\\n      }, {\\n        key: '_hide',\\n        value: function _hide(element) {\\n\\n          if (this._transitioning || !$(element).hasClass(this._config.collapseInClass)) {\\n            return;\\n          }\\n          var _this = this;\\n          var _el = $(element);\\n\\n          var startEvent = $.Event(Event.HIDE);\\n          _el.trigger(startEvent);\\n\\n          if (startEvent.isDefaultPrevented()) {\\n            return;\\n          }\\n\\n          _el.parent('li').removeClass(this._config.activeClass);\\n          _el.height(_el.height())[0].offsetHeight;\\n\\n          _el.addClass(this._config.collapsingClass).removeClass(this._config.collapseClass).removeClass(this._config.collapseInClass);\\n\\n          this.setTransitioning(true);\\n\\n          var complete = function complete() {\\n            if (_this._transitioning && _this._config.onTransitionEnd) {\\n              _this._config.onTransitionEnd();\\n            }\\n\\n            _this.setTransitioning(false);\\n            _el.trigger(Event.HIDDEN);\\n\\n            _el.removeClass(_this._config.collapsingClass).addClass(_this._config.collapseClass).attr('aria-expanded', false);\\n          };\\n\\n          if (!Util.supportsTransitionEnd()) {\\n            complete();\\n            return;\\n          }\\n\\n          _el.height() == 0 || _el.css('display') == 'none' ? complete() : _el.height(0).one(Util.TRANSITION_END, complete);\\n\\n          transitionEndEmulator(TRANSITION_DURATION);\\n        }\\n      }, {\\n        key: '_doubleTapToGo',\\n        value: function _doubleTapToGo(element) {\\n          if (element.hasClass('doubleTapToGo')) {\\n            element.removeClass('doubleTapToGo');\\n            return true;\\n          }\\n          if (element.parent().children('ul').length) {\\n            $(this._element).find('.doubleTapToGo').removeClass('doubleTapToGo');\\n\\n            element.addClass('doubleTapToGo');\\n            return false;\\n          }\\n        }\\n      }, {\\n        key: 'setTransitioning',\\n        value: function setTransitioning(isTransitioning) {\\n          this._transitioning = isTransitioning;\\n        }\\n      }, {\\n        key: 'dispose',\\n        value: function dispose() {\\n          $.removeData(this._element, DATA_KEY);\\n\\n          $(this._element).find('li').has('ul').children('a').off('click');\\n\\n          this._transitioning = null;\\n          this._config = null;\\n          this._element = null;\\n        }\\n      }, {\\n        key: '_getConfig',\\n        value: function _getConfig(config) {\\n          config = $.extend({}, Default, config);\\n          return config;\\n        }\\n      }], [{\\n        key: '_jQueryInterface',\\n        value: function _jQueryInterface(config) {\\n          return this.each(function () {\\n            var $this = $(this);\\n            var data = $this.data(DATA_KEY);\\n            var _config = $.extend({}, Default, $this.data(), (typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object' && config);\\n\\n            if (!data && /dispose/.test(config)) {\\n              this.dispose();\\n            }\\n\\n            if (!data) {\\n              data = new MetisMenu(this, _config);\\n              $this.data(DATA_KEY, data);\\n            }\\n\\n            if (typeof config === 'string') {\\n              if (data[config] === undefined) {\\n                throw new Error('No method named \\\"' + config + '\\\"');\\n              }\\n              data[config]();\\n            }\\n          });\\n        }\\n      }]);\\n\\n      return MetisMenu;\\n    }();\\n\\n    /**\\n     * ------------------------------------------------------------------------\\n     * jQuery\\n     * ------------------------------------------------------------------------\\n     */\\n\\n    $.fn[NAME] = MetisMenu._jQueryInterface;\\n    $.fn[NAME].Constructor = MetisMenu;\\n    $.fn[NAME].noConflict = function () {\\n      $.fn[NAME] = JQUERY_NO_CONFLICT;\\n      return MetisMenu._jQueryInterface;\\n    };\\n    return MetisMenu;\\n  }(jQuery);\\n});\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// /home/cool/Music/personal_projects/Zmall/angbackuo/~/raw-loader!/home/cool/Music/personal_projects/Zmall/angbackuo/~/metismenu/dist/metisMenu.js\n// module id = 1488\n// module chunks = 2","module.exports = \"(function (global, factory) {\\n\\ttypeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\\n\\ttypeof define === 'function' && define.amd ? define(factory) :\\n\\t(global.c3 = factory());\\n}(this, (function () { 'use strict';\\n\\nvar CLASS = {\\n    target: 'c3-target',\\n    chart: 'c3-chart',\\n    chartLine: 'c3-chart-line',\\n    chartLines: 'c3-chart-lines',\\n    chartBar: 'c3-chart-bar',\\n    chartBars: 'c3-chart-bars',\\n    chartText: 'c3-chart-text',\\n    chartTexts: 'c3-chart-texts',\\n    chartArc: 'c3-chart-arc',\\n    chartArcs: 'c3-chart-arcs',\\n    chartArcsTitle: 'c3-chart-arcs-title',\\n    chartArcsBackground: 'c3-chart-arcs-background',\\n    chartArcsGaugeUnit: 'c3-chart-arcs-gauge-unit',\\n    chartArcsGaugeMax: 'c3-chart-arcs-gauge-max',\\n    chartArcsGaugeMin: 'c3-chart-arcs-gauge-min',\\n    selectedCircle: 'c3-selected-circle',\\n    selectedCircles: 'c3-selected-circles',\\n    eventRect: 'c3-event-rect',\\n    eventRects: 'c3-event-rects',\\n    eventRectsSingle: 'c3-event-rects-single',\\n    eventRectsMultiple: 'c3-event-rects-multiple',\\n    zoomRect: 'c3-zoom-rect',\\n    brush: 'c3-brush',\\n    focused: 'c3-focused',\\n    defocused: 'c3-defocused',\\n    region: 'c3-region',\\n    regions: 'c3-regions',\\n    title: 'c3-title',\\n    tooltipContainer: 'c3-tooltip-container',\\n    tooltip: 'c3-tooltip',\\n    tooltipName: 'c3-tooltip-name',\\n    shape: 'c3-shape',\\n    shapes: 'c3-shapes',\\n    line: 'c3-line',\\n    lines: 'c3-lines',\\n    bar: 'c3-bar',\\n    bars: 'c3-bars',\\n    circle: 'c3-circle',\\n    circles: 'c3-circles',\\n    arc: 'c3-arc',\\n    arcs: 'c3-arcs',\\n    area: 'c3-area',\\n    areas: 'c3-areas',\\n    empty: 'c3-empty',\\n    text: 'c3-text',\\n    texts: 'c3-texts',\\n    gaugeValue: 'c3-gauge-value',\\n    grid: 'c3-grid',\\n    gridLines: 'c3-grid-lines',\\n    xgrid: 'c3-xgrid',\\n    xgrids: 'c3-xgrids',\\n    xgridLine: 'c3-xgrid-line',\\n    xgridLines: 'c3-xgrid-lines',\\n    xgridFocus: 'c3-xgrid-focus',\\n    ygrid: 'c3-ygrid',\\n    ygrids: 'c3-ygrids',\\n    ygridLine: 'c3-ygrid-line',\\n    ygridLines: 'c3-ygrid-lines',\\n    axis: 'c3-axis',\\n    axisX: 'c3-axis-x',\\n    axisXLabel: 'c3-axis-x-label',\\n    axisY: 'c3-axis-y',\\n    axisYLabel: 'c3-axis-y-label',\\n    axisY2: 'c3-axis-y2',\\n    axisY2Label: 'c3-axis-y2-label',\\n    legendBackground: 'c3-legend-background',\\n    legendItem: 'c3-legend-item',\\n    legendItemEvent: 'c3-legend-item-event',\\n    legendItemTile: 'c3-legend-item-tile',\\n    legendItemHidden: 'c3-legend-item-hidden',\\n    legendItemFocused: 'c3-legend-item-focused',\\n    dragarea: 'c3-dragarea',\\n    EXPANDED: '_expanded_',\\n    SELECTED: '_selected_',\\n    INCLUDED: '_included_'\\n};\\n\\nvar _typeof = typeof Symbol === \\\"function\\\" && typeof Symbol.iterator === \\\"symbol\\\" ? function (obj) {\\n  return typeof obj;\\n} : function (obj) {\\n  return obj && typeof Symbol === \\\"function\\\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \\\"symbol\\\" : typeof obj;\\n};\\n\\nvar isValue = function isValue(v) {\\n    return v || v === 0;\\n};\\nvar isFunction = function isFunction(o) {\\n    return typeof o === 'function';\\n};\\nvar isArray = function isArray(o) {\\n    return Array.isArray(o);\\n};\\nvar isString = function isString(o) {\\n    return typeof o === 'string';\\n};\\nvar isUndefined = function isUndefined(v) {\\n    return typeof v === 'undefined';\\n};\\nvar isDefined = function isDefined(v) {\\n    return typeof v !== 'undefined';\\n};\\nvar ceil10 = function ceil10(v) {\\n    return Math.ceil(v / 10) * 10;\\n};\\nvar asHalfPixel = function asHalfPixel(n) {\\n    return Math.ceil(n) + 0.5;\\n};\\nvar diffDomain = function diffDomain(d) {\\n    return d[1] - d[0];\\n};\\nvar isEmpty = function isEmpty(o) {\\n    return typeof o === 'undefined' || o === null || isString(o) && o.length === 0 || (typeof o === 'undefined' ? 'undefined' : _typeof(o)) === 'object' && Object.keys(o).length === 0;\\n};\\nvar notEmpty = function notEmpty(o) {\\n    return !c3_chart_internal_fn.isEmpty(o);\\n};\\nvar getOption = function getOption(options, key, defaultValue) {\\n    return isDefined(options[key]) ? options[key] : defaultValue;\\n};\\nvar hasValue = function hasValue(dict, value) {\\n    var found = false;\\n    Object.keys(dict).forEach(function (key) {\\n        if (dict[key] === value) {\\n            found = true;\\n        }\\n    });\\n    return found;\\n};\\nvar sanitise = function sanitise(str) {\\n    return typeof str === 'string' ? str.replace(/</g, '&lt;').replace(/>/g, '&gt;') : str;\\n};\\nvar getPathBox = function getPathBox(path) {\\n    var box = path.getBoundingClientRect(),\\n        items = [path.pathSegList.getItem(0), path.pathSegList.getItem(1)],\\n        minX = items[0].x,\\n        minY = Math.min(items[0].y, items[1].y);\\n    return { x: minX, y: minY, width: box.width, height: box.height };\\n};\\n\\n// Features:\\n// 1. category axis\\n// 2. ceil values of translate/x/y to int for half pixel antialiasing\\n// 3. multiline tick text\\nvar tickTextCharSize;\\nfunction c3_axis(d3, params) {\\n    var scale = d3.scale.linear(),\\n        orient = \\\"bottom\\\",\\n        innerTickSize = 6,\\n        outerTickSize,\\n        tickPadding = 3,\\n        tickValues = null,\\n        tickFormat,\\n        tickArguments;\\n\\n    var tickOffset = 0,\\n        tickCulling = true,\\n        tickCentered;\\n\\n    params = params || {};\\n    outerTickSize = params.withOuterTick ? 6 : 0;\\n\\n    function axisX(selection, x) {\\n        selection.attr(\\\"transform\\\", function (d) {\\n            return \\\"translate(\\\" + Math.ceil(x(d) + tickOffset) + \\\", 0)\\\";\\n        });\\n    }\\n    function axisY(selection, y) {\\n        selection.attr(\\\"transform\\\", function (d) {\\n            return \\\"translate(0,\\\" + Math.ceil(y(d)) + \\\")\\\";\\n        });\\n    }\\n    function scaleExtent(domain) {\\n        var start = domain[0],\\n            stop = domain[domain.length - 1];\\n        return start < stop ? [start, stop] : [stop, start];\\n    }\\n    function generateTicks(scale) {\\n        var i,\\n            domain,\\n            ticks = [];\\n        if (scale.ticks) {\\n            return scale.ticks.apply(scale, tickArguments);\\n        }\\n        domain = scale.domain();\\n        for (i = Math.ceil(domain[0]); i < domain[1]; i++) {\\n            ticks.push(i);\\n        }\\n        if (ticks.length > 0 && ticks[0] > 0) {\\n            ticks.unshift(ticks[0] - (ticks[1] - ticks[0]));\\n        }\\n        return ticks;\\n    }\\n    function copyScale() {\\n        var newScale = scale.copy(),\\n            domain;\\n        if (params.isCategory) {\\n            domain = scale.domain();\\n            newScale.domain([domain[0], domain[1] - 1]);\\n        }\\n        return newScale;\\n    }\\n    function textFormatted(v) {\\n        var formatted = tickFormat ? tickFormat(v) : v;\\n        return typeof formatted !== 'undefined' ? formatted : '';\\n    }\\n    function getSizeFor1Char(tick) {\\n        if (tickTextCharSize) {\\n            return tickTextCharSize;\\n        }\\n        var size = {\\n            h: 11.5,\\n            w: 5.5\\n        };\\n        tick.select('text').text(textFormatted).each(function (d) {\\n            var box = this.getBoundingClientRect(),\\n                text = textFormatted(d),\\n                h = box.height,\\n                w = text ? box.width / text.length : undefined;\\n            if (h && w) {\\n                size.h = h;\\n                size.w = w;\\n            }\\n        }).text('');\\n        tickTextCharSize = size;\\n        return size;\\n    }\\n    function transitionise(selection) {\\n        return params.withoutTransition ? selection : d3.transition(selection);\\n    }\\n    function axis(g) {\\n        g.each(function () {\\n            var g = axis.g = d3.select(this);\\n\\n            var scale0 = this.__chart__ || scale,\\n                scale1 = this.__chart__ = copyScale();\\n\\n            var ticks = tickValues ? tickValues : generateTicks(scale1),\\n                tick = g.selectAll(\\\".tick\\\").data(ticks, scale1),\\n                tickEnter = tick.enter().insert(\\\"g\\\", \\\".domain\\\").attr(\\\"class\\\", \\\"tick\\\").style(\\\"opacity\\\", 1e-6),\\n\\n            // MEMO: No exit transition. The reason is this transition affects max tick width calculation because old tick will be included in the ticks.\\n            tickExit = tick.exit().remove(),\\n                tickUpdate = transitionise(tick).style(\\\"opacity\\\", 1),\\n                tickTransform,\\n                tickX,\\n                tickY;\\n\\n            var range = scale.rangeExtent ? scale.rangeExtent() : scaleExtent(scale.range()),\\n                path = g.selectAll(\\\".domain\\\").data([0]),\\n                pathUpdate = (path.enter().append(\\\"path\\\").attr(\\\"class\\\", \\\"domain\\\"), transitionise(path));\\n            tickEnter.append(\\\"line\\\");\\n            tickEnter.append(\\\"text\\\");\\n\\n            var lineEnter = tickEnter.select(\\\"line\\\"),\\n                lineUpdate = tickUpdate.select(\\\"line\\\"),\\n                textEnter = tickEnter.select(\\\"text\\\"),\\n                textUpdate = tickUpdate.select(\\\"text\\\");\\n\\n            if (params.isCategory) {\\n                tickOffset = Math.ceil((scale1(1) - scale1(0)) / 2);\\n                tickX = tickCentered ? 0 : tickOffset;\\n                tickY = tickCentered ? tickOffset : 0;\\n            } else {\\n                tickOffset = tickX = 0;\\n            }\\n\\n            var text,\\n                tspan,\\n                sizeFor1Char = getSizeFor1Char(g.select('.tick')),\\n                counts = [];\\n            var tickLength = Math.max(innerTickSize, 0) + tickPadding,\\n                isVertical = orient === 'left' || orient === 'right';\\n\\n            // this should be called only when category axis\\n            function splitTickText(d, maxWidth) {\\n                var tickText = textFormatted(d),\\n                    subtext,\\n                    spaceIndex,\\n                    textWidth,\\n                    splitted = [];\\n\\n                if (Object.prototype.toString.call(tickText) === \\\"[object Array]\\\") {\\n                    return tickText;\\n                }\\n\\n                if (!maxWidth || maxWidth <= 0) {\\n                    maxWidth = isVertical ? 95 : params.isCategory ? Math.ceil(scale1(ticks[1]) - scale1(ticks[0])) - 12 : 110;\\n                }\\n\\n                function split(splitted, text) {\\n                    spaceIndex = undefined;\\n                    for (var i = 1; i < text.length; i++) {\\n                        if (text.charAt(i) === ' ') {\\n                            spaceIndex = i;\\n                        }\\n                        subtext = text.substr(0, i + 1);\\n                        textWidth = sizeFor1Char.w * subtext.length;\\n                        // if text width gets over tick width, split by space index or crrent index\\n                        if (maxWidth < textWidth) {\\n                            return split(splitted.concat(text.substr(0, spaceIndex ? spaceIndex : i)), text.slice(spaceIndex ? spaceIndex + 1 : i));\\n                        }\\n                    }\\n                    return splitted.concat(text);\\n                }\\n\\n                return split(splitted, tickText + \\\"\\\");\\n            }\\n\\n            function tspanDy(d, i) {\\n                var dy = sizeFor1Char.h;\\n                if (i === 0) {\\n                    if (orient === 'left' || orient === 'right') {\\n                        dy = -((counts[d.index] - 1) * (sizeFor1Char.h / 2) - 3);\\n                    } else {\\n                        dy = \\\".71em\\\";\\n                    }\\n                }\\n                return dy;\\n            }\\n\\n            function tickSize(d) {\\n                var tickPosition = scale(d) + (tickCentered ? 0 : tickOffset);\\n                return range[0] < tickPosition && tickPosition < range[1] ? innerTickSize : 0;\\n            }\\n\\n            text = tick.select(\\\"text\\\");\\n            tspan = text.selectAll('tspan').data(function (d, i) {\\n                var splitted = params.tickMultiline ? splitTickText(d, params.tickWidth) : [].concat(textFormatted(d));\\n                counts[i] = splitted.length;\\n                return splitted.map(function (s) {\\n                    return { index: i, splitted: s };\\n                });\\n            });\\n            tspan.enter().append('tspan');\\n            tspan.exit().remove();\\n            tspan.text(function (d) {\\n                return d.splitted;\\n            });\\n\\n            var rotate = params.tickTextRotate;\\n\\n            function textAnchorForText(rotate) {\\n                if (!rotate) {\\n                    return 'middle';\\n                }\\n                return rotate > 0 ? \\\"start\\\" : \\\"end\\\";\\n            }\\n            function textTransform(rotate) {\\n                if (!rotate) {\\n                    return '';\\n                }\\n                return \\\"rotate(\\\" + rotate + \\\")\\\";\\n            }\\n            function dxForText(rotate) {\\n                if (!rotate) {\\n                    return 0;\\n                }\\n                return 8 * Math.sin(Math.PI * (rotate / 180));\\n            }\\n            function yForText(rotate) {\\n                if (!rotate) {\\n                    return tickLength;\\n                }\\n                return 11.5 - 2.5 * (rotate / 15) * (rotate > 0 ? 1 : -1);\\n            }\\n\\n            switch (orient) {\\n                case \\\"bottom\\\":\\n                    {\\n                        tickTransform = axisX;\\n                        lineEnter.attr(\\\"y2\\\", innerTickSize);\\n                        textEnter.attr(\\\"y\\\", tickLength);\\n                        lineUpdate.attr(\\\"x1\\\", tickX).attr(\\\"x2\\\", tickX).attr(\\\"y2\\\", tickSize);\\n                        textUpdate.attr(\\\"x\\\", 0).attr(\\\"y\\\", yForText(rotate)).style(\\\"text-anchor\\\", textAnchorForText(rotate)).attr(\\\"transform\\\", textTransform(rotate));\\n                        tspan.attr('x', 0).attr(\\\"dy\\\", tspanDy).attr('dx', dxForText(rotate));\\n                        pathUpdate.attr(\\\"d\\\", \\\"M\\\" + range[0] + \\\",\\\" + outerTickSize + \\\"V0H\\\" + range[1] + \\\"V\\\" + outerTickSize);\\n                        break;\\n                    }\\n                case \\\"top\\\":\\n                    {\\n                        // TODO: rotated tick text\\n                        tickTransform = axisX;\\n                        lineEnter.attr(\\\"y2\\\", -innerTickSize);\\n                        textEnter.attr(\\\"y\\\", -tickLength);\\n                        lineUpdate.attr(\\\"x2\\\", 0).attr(\\\"y2\\\", -innerTickSize);\\n                        textUpdate.attr(\\\"x\\\", 0).attr(\\\"y\\\", -tickLength);\\n                        text.style(\\\"text-anchor\\\", \\\"middle\\\");\\n                        tspan.attr('x', 0).attr(\\\"dy\\\", \\\"0em\\\");\\n                        pathUpdate.attr(\\\"d\\\", \\\"M\\\" + range[0] + \\\",\\\" + -outerTickSize + \\\"V0H\\\" + range[1] + \\\"V\\\" + -outerTickSize);\\n                        break;\\n                    }\\n                case \\\"left\\\":\\n                    {\\n                        tickTransform = axisY;\\n                        lineEnter.attr(\\\"x2\\\", -innerTickSize);\\n                        textEnter.attr(\\\"x\\\", -tickLength);\\n                        lineUpdate.attr(\\\"x2\\\", -innerTickSize).attr(\\\"y1\\\", tickY).attr(\\\"y2\\\", tickY);\\n                        textUpdate.attr(\\\"x\\\", -tickLength).attr(\\\"y\\\", tickOffset);\\n                        text.style(\\\"text-anchor\\\", \\\"end\\\");\\n                        tspan.attr('x', -tickLength).attr(\\\"dy\\\", tspanDy);\\n                        pathUpdate.attr(\\\"d\\\", \\\"M\\\" + -outerTickSize + \\\",\\\" + range[0] + \\\"H0V\\\" + range[1] + \\\"H\\\" + -outerTickSize);\\n                        break;\\n                    }\\n                case \\\"right\\\":\\n                    {\\n                        tickTransform = axisY;\\n                        lineEnter.attr(\\\"x2\\\", innerTickSize);\\n                        textEnter.attr(\\\"x\\\", tickLength);\\n                        lineUpdate.attr(\\\"x2\\\", innerTickSize).attr(\\\"y2\\\", 0);\\n                        textUpdate.attr(\\\"x\\\", tickLength).attr(\\\"y\\\", 0);\\n                        text.style(\\\"text-anchor\\\", \\\"start\\\");\\n                        tspan.attr('x', tickLength).attr(\\\"dy\\\", tspanDy);\\n                        pathUpdate.attr(\\\"d\\\", \\\"M\\\" + outerTickSize + \\\",\\\" + range[0] + \\\"H0V\\\" + range[1] + \\\"H\\\" + outerTickSize);\\n                        break;\\n                    }\\n            }\\n            if (scale1.rangeBand) {\\n                var x = scale1,\\n                    dx = x.rangeBand() / 2;\\n                scale0 = scale1 = function scale1(d) {\\n                    return x(d) + dx;\\n                };\\n            } else if (scale0.rangeBand) {\\n                scale0 = scale1;\\n            } else {\\n                tickExit.call(tickTransform, scale1);\\n            }\\n            tickEnter.call(tickTransform, scale0);\\n            tickUpdate.call(tickTransform, scale1);\\n        });\\n    }\\n    axis.scale = function (x) {\\n        if (!arguments.length) {\\n            return scale;\\n        }\\n        scale = x;\\n        return axis;\\n    };\\n    axis.orient = function (x) {\\n        if (!arguments.length) {\\n            return orient;\\n        }\\n        orient = x in { top: 1, right: 1, bottom: 1, left: 1 } ? x + \\\"\\\" : \\\"bottom\\\";\\n        return axis;\\n    };\\n    axis.tickFormat = function (format) {\\n        if (!arguments.length) {\\n            return tickFormat;\\n        }\\n        tickFormat = format;\\n        return axis;\\n    };\\n    axis.tickCentered = function (isCentered) {\\n        if (!arguments.length) {\\n            return tickCentered;\\n        }\\n        tickCentered = isCentered;\\n        return axis;\\n    };\\n    axis.tickOffset = function () {\\n        return tickOffset;\\n    };\\n    axis.tickInterval = function () {\\n        var interval, length;\\n        if (params.isCategory) {\\n            interval = tickOffset * 2;\\n        } else {\\n            length = axis.g.select('path.domain').node().getTotalLength() - outerTickSize * 2;\\n            interval = length / axis.g.selectAll('line').size();\\n        }\\n        return interval === Infinity ? 0 : interval;\\n    };\\n    axis.ticks = function () {\\n        if (!arguments.length) {\\n            return tickArguments;\\n        }\\n        tickArguments = arguments;\\n        return axis;\\n    };\\n    axis.tickCulling = function (culling) {\\n        if (!arguments.length) {\\n            return tickCulling;\\n        }\\n        tickCulling = culling;\\n        return axis;\\n    };\\n    axis.tickValues = function (x) {\\n        if (typeof x === 'function') {\\n            tickValues = function tickValues() {\\n                return x(scale.domain());\\n            };\\n        } else {\\n            if (!arguments.length) {\\n                return tickValues;\\n            }\\n            tickValues = x;\\n        }\\n        return axis;\\n    };\\n    return axis;\\n}\\n\\nfunction Axis(owner) {\\n    API.call(this, owner);\\n}\\n\\ninherit(API, Axis);\\n\\nAxis.prototype.init = function init() {\\n\\n    var $$ = this.owner,\\n        config = $$.config,\\n        main = $$.main;\\n    $$.axes.x = main.append(\\\"g\\\").attr(\\\"class\\\", CLASS.axis + ' ' + CLASS.axisX).attr(\\\"clip-path\\\", $$.clipPathForXAxis).attr(\\\"transform\\\", $$.getTranslate('x')).style(\\\"visibility\\\", config.axis_x_show ? 'visible' : 'hidden');\\n    $$.axes.x.append(\\\"text\\\").attr(\\\"class\\\", CLASS.axisXLabel).attr(\\\"transform\\\", config.axis_rotated ? \\\"rotate(-90)\\\" : \\\"\\\").style(\\\"text-anchor\\\", this.textAnchorForXAxisLabel.bind(this));\\n    $$.axes.y = main.append(\\\"g\\\").attr(\\\"class\\\", CLASS.axis + ' ' + CLASS.axisY).attr(\\\"clip-path\\\", config.axis_y_inner ? \\\"\\\" : $$.clipPathForYAxis).attr(\\\"transform\\\", $$.getTranslate('y')).style(\\\"visibility\\\", config.axis_y_show ? 'visible' : 'hidden');\\n    $$.axes.y.append(\\\"text\\\").attr(\\\"class\\\", CLASS.axisYLabel).attr(\\\"transform\\\", config.axis_rotated ? \\\"\\\" : \\\"rotate(-90)\\\").style(\\\"text-anchor\\\", this.textAnchorForYAxisLabel.bind(this));\\n\\n    $$.axes.y2 = main.append(\\\"g\\\").attr(\\\"class\\\", CLASS.axis + ' ' + CLASS.axisY2\\n    // clip-path?\\n    ).attr(\\\"transform\\\", $$.getTranslate('y2')).style(\\\"visibility\\\", config.axis_y2_show ? 'visible' : 'hidden');\\n    $$.axes.y2.append(\\\"text\\\").attr(\\\"class\\\", CLASS.axisY2Label).attr(\\\"transform\\\", config.axis_rotated ? \\\"\\\" : \\\"rotate(-90)\\\").style(\\\"text-anchor\\\", this.textAnchorForY2AxisLabel.bind(this));\\n};\\nAxis.prototype.getXAxis = function getXAxis(scale, orient, tickFormat, tickValues, withOuterTick, withoutTransition, withoutRotateTickText) {\\n    var $$ = this.owner,\\n        config = $$.config,\\n        axisParams = {\\n        isCategory: $$.isCategorized(),\\n        withOuterTick: withOuterTick,\\n        tickMultiline: config.axis_x_tick_multiline,\\n        tickWidth: config.axis_x_tick_width,\\n        tickTextRotate: withoutRotateTickText ? 0 : config.axis_x_tick_rotate,\\n        withoutTransition: withoutTransition\\n    },\\n        axis = c3_axis($$.d3, axisParams).scale(scale).orient(orient);\\n\\n    if ($$.isTimeSeries() && tickValues && typeof tickValues !== \\\"function\\\") {\\n        tickValues = tickValues.map(function (v) {\\n            return $$.parseDate(v);\\n        });\\n    }\\n\\n    // Set tick\\n    axis.tickFormat(tickFormat).tickValues(tickValues);\\n    if ($$.isCategorized()) {\\n        axis.tickCentered(config.axis_x_tick_centered);\\n        if (isEmpty(config.axis_x_tick_culling)) {\\n            config.axis_x_tick_culling = false;\\n        }\\n    }\\n\\n    return axis;\\n};\\nAxis.prototype.updateXAxisTickValues = function updateXAxisTickValues(targets, axis) {\\n    var $$ = this.owner,\\n        config = $$.config,\\n        tickValues;\\n    if (config.axis_x_tick_fit || config.axis_x_tick_count) {\\n        tickValues = this.generateTickValues($$.mapTargetsToUniqueXs(targets), config.axis_x_tick_count, $$.isTimeSeries());\\n    }\\n    if (axis) {\\n        axis.tickValues(tickValues);\\n    } else {\\n        $$.xAxis.tickValues(tickValues);\\n        $$.subXAxis.tickValues(tickValues);\\n    }\\n    return tickValues;\\n};\\nAxis.prototype.getYAxis = function getYAxis(scale, orient, tickFormat, tickValues, withOuterTick, withoutTransition, withoutRotateTickText) {\\n    var $$ = this.owner,\\n        config = $$.config,\\n        axisParams = {\\n        withOuterTick: withOuterTick,\\n        withoutTransition: withoutTransition,\\n        tickTextRotate: withoutRotateTickText ? 0 : config.axis_y_tick_rotate\\n    },\\n        axis = c3_axis($$.d3, axisParams).scale(scale).orient(orient).tickFormat(tickFormat);\\n    if ($$.isTimeSeriesY()) {\\n        axis.ticks($$.d3.time[config.axis_y_tick_time_value], config.axis_y_tick_time_interval);\\n    } else {\\n        axis.tickValues(tickValues);\\n    }\\n    return axis;\\n};\\nAxis.prototype.getId = function getId(id) {\\n    var config = this.owner.config;\\n    return id in config.data_axes ? config.data_axes[id] : 'y';\\n};\\nAxis.prototype.getXAxisTickFormat = function getXAxisTickFormat() {\\n    var $$ = this.owner,\\n        config = $$.config,\\n        format = $$.isTimeSeries() ? $$.defaultAxisTimeFormat : $$.isCategorized() ? $$.categoryName : function (v) {\\n        return v < 0 ? v.toFixed(0) : v;\\n    };\\n    if (config.axis_x_tick_format) {\\n        if (isFunction(config.axis_x_tick_format)) {\\n            format = config.axis_x_tick_format;\\n        } else if ($$.isTimeSeries()) {\\n            format = function format(date) {\\n                return date ? $$.axisTimeFormat(config.axis_x_tick_format)(date) : \\\"\\\";\\n            };\\n        }\\n    }\\n    return isFunction(format) ? function (v) {\\n        return format.call($$, v);\\n    } : format;\\n};\\nAxis.prototype.getTickValues = function getTickValues(tickValues, axis) {\\n    return tickValues ? tickValues : axis ? axis.tickValues() : undefined;\\n};\\nAxis.prototype.getXAxisTickValues = function getXAxisTickValues() {\\n    return this.getTickValues(this.owner.config.axis_x_tick_values, this.owner.xAxis);\\n};\\nAxis.prototype.getYAxisTickValues = function getYAxisTickValues() {\\n    return this.getTickValues(this.owner.config.axis_y_tick_values, this.owner.yAxis);\\n};\\nAxis.prototype.getY2AxisTickValues = function getY2AxisTickValues() {\\n    return this.getTickValues(this.owner.config.axis_y2_tick_values, this.owner.y2Axis);\\n};\\nAxis.prototype.getLabelOptionByAxisId = function getLabelOptionByAxisId(axisId) {\\n    var $$ = this.owner,\\n        config = $$.config,\\n        option;\\n    if (axisId === 'y') {\\n        option = config.axis_y_label;\\n    } else if (axisId === 'y2') {\\n        option = config.axis_y2_label;\\n    } else if (axisId === 'x') {\\n        option = config.axis_x_label;\\n    }\\n    return option;\\n};\\nAxis.prototype.getLabelText = function getLabelText(axisId) {\\n    var option = this.getLabelOptionByAxisId(axisId);\\n    return isString(option) ? option : option ? option.text : null;\\n};\\nAxis.prototype.setLabelText = function setLabelText(axisId, text) {\\n    var $$ = this.owner,\\n        config = $$.config,\\n        option = this.getLabelOptionByAxisId(axisId);\\n    if (isString(option)) {\\n        if (axisId === 'y') {\\n            config.axis_y_label = text;\\n        } else if (axisId === 'y2') {\\n            config.axis_y2_label = text;\\n        } else if (axisId === 'x') {\\n            config.axis_x_label = text;\\n        }\\n    } else if (option) {\\n        option.text = text;\\n    }\\n};\\nAxis.prototype.getLabelPosition = function getLabelPosition(axisId, defaultPosition) {\\n    var option = this.getLabelOptionByAxisId(axisId),\\n        position = option && (typeof option === 'undefined' ? 'undefined' : _typeof(option)) === 'object' && option.position ? option.position : defaultPosition;\\n    return {\\n        isInner: position.indexOf('inner') >= 0,\\n        isOuter: position.indexOf('outer') >= 0,\\n        isLeft: position.indexOf('left') >= 0,\\n        isCenter: position.indexOf('center') >= 0,\\n        isRight: position.indexOf('right') >= 0,\\n        isTop: position.indexOf('top') >= 0,\\n        isMiddle: position.indexOf('middle') >= 0,\\n        isBottom: position.indexOf('bottom') >= 0\\n    };\\n};\\nAxis.prototype.getXAxisLabelPosition = function getXAxisLabelPosition() {\\n    return this.getLabelPosition('x', this.owner.config.axis_rotated ? 'inner-top' : 'inner-right');\\n};\\nAxis.prototype.getYAxisLabelPosition = function getYAxisLabelPosition() {\\n    return this.getLabelPosition('y', this.owner.config.axis_rotated ? 'inner-right' : 'inner-top');\\n};\\nAxis.prototype.getY2AxisLabelPosition = function getY2AxisLabelPosition() {\\n    return this.getLabelPosition('y2', this.owner.config.axis_rotated ? 'inner-right' : 'inner-top');\\n};\\nAxis.prototype.getLabelPositionById = function getLabelPositionById(id) {\\n    return id === 'y2' ? this.getY2AxisLabelPosition() : id === 'y' ? this.getYAxisLabelPosition() : this.getXAxisLabelPosition();\\n};\\nAxis.prototype.textForXAxisLabel = function textForXAxisLabel() {\\n    return this.getLabelText('x');\\n};\\nAxis.prototype.textForYAxisLabel = function textForYAxisLabel() {\\n    return this.getLabelText('y');\\n};\\nAxis.prototype.textForY2AxisLabel = function textForY2AxisLabel() {\\n    return this.getLabelText('y2');\\n};\\nAxis.prototype.xForAxisLabel = function xForAxisLabel(forHorizontal, position) {\\n    var $$ = this.owner;\\n    if (forHorizontal) {\\n        return position.isLeft ? 0 : position.isCenter ? $$.width / 2 : $$.width;\\n    } else {\\n        return position.isBottom ? -$$.height : position.isMiddle ? -$$.height / 2 : 0;\\n    }\\n};\\nAxis.prototype.dxForAxisLabel = function dxForAxisLabel(forHorizontal, position) {\\n    if (forHorizontal) {\\n        return position.isLeft ? \\\"0.5em\\\" : position.isRight ? \\\"-0.5em\\\" : \\\"0\\\";\\n    } else {\\n        return position.isTop ? \\\"-0.5em\\\" : position.isBottom ? \\\"0.5em\\\" : \\\"0\\\";\\n    }\\n};\\nAxis.prototype.textAnchorForAxisLabel = function textAnchorForAxisLabel(forHorizontal, position) {\\n    if (forHorizontal) {\\n        return position.isLeft ? 'start' : position.isCenter ? 'middle' : 'end';\\n    } else {\\n        return position.isBottom ? 'start' : position.isMiddle ? 'middle' : 'end';\\n    }\\n};\\nAxis.prototype.xForXAxisLabel = function xForXAxisLabel() {\\n    return this.xForAxisLabel(!this.owner.config.axis_rotated, this.getXAxisLabelPosition());\\n};\\nAxis.prototype.xForYAxisLabel = function xForYAxisLabel() {\\n    return this.xForAxisLabel(this.owner.config.axis_rotated, this.getYAxisLabelPosition());\\n};\\nAxis.prototype.xForY2AxisLabel = function xForY2AxisLabel() {\\n    return this.xForAxisLabel(this.owner.config.axis_rotated, this.getY2AxisLabelPosition());\\n};\\nAxis.prototype.dxForXAxisLabel = function dxForXAxisLabel() {\\n    return this.dxForAxisLabel(!this.owner.config.axis_rotated, this.getXAxisLabelPosition());\\n};\\nAxis.prototype.dxForYAxisLabel = function dxForYAxisLabel() {\\n    return this.dxForAxisLabel(this.owner.config.axis_rotated, this.getYAxisLabelPosition());\\n};\\nAxis.prototype.dxForY2AxisLabel = function dxForY2AxisLabel() {\\n    return this.dxForAxisLabel(this.owner.config.axis_rotated, this.getY2AxisLabelPosition());\\n};\\nAxis.prototype.dyForXAxisLabel = function dyForXAxisLabel() {\\n    var $$ = this.owner,\\n        config = $$.config,\\n        position = this.getXAxisLabelPosition();\\n    if (config.axis_rotated) {\\n        return position.isInner ? \\\"1.2em\\\" : -25 - this.getMaxTickWidth('x');\\n    } else {\\n        return position.isInner ? \\\"-0.5em\\\" : config.axis_x_height ? config.axis_x_height - 10 : \\\"3em\\\";\\n    }\\n};\\nAxis.prototype.dyForYAxisLabel = function dyForYAxisLabel() {\\n    var $$ = this.owner,\\n        position = this.getYAxisLabelPosition();\\n    if ($$.config.axis_rotated) {\\n        return position.isInner ? \\\"-0.5em\\\" : \\\"3em\\\";\\n    } else {\\n        return position.isInner ? \\\"1.2em\\\" : -10 - ($$.config.axis_y_inner ? 0 : this.getMaxTickWidth('y') + 10);\\n    }\\n};\\nAxis.prototype.dyForY2AxisLabel = function dyForY2AxisLabel() {\\n    var $$ = this.owner,\\n        position = this.getY2AxisLabelPosition();\\n    if ($$.config.axis_rotated) {\\n        return position.isInner ? \\\"1.2em\\\" : \\\"-2.2em\\\";\\n    } else {\\n        return position.isInner ? \\\"-0.5em\\\" : 15 + ($$.config.axis_y2_inner ? 0 : this.getMaxTickWidth('y2') + 15);\\n    }\\n};\\nAxis.prototype.textAnchorForXAxisLabel = function textAnchorForXAxisLabel() {\\n    var $$ = this.owner;\\n    return this.textAnchorForAxisLabel(!$$.config.axis_rotated, this.getXAxisLabelPosition());\\n};\\nAxis.prototype.textAnchorForYAxisLabel = function textAnchorForYAxisLabel() {\\n    var $$ = this.owner;\\n    return this.textAnchorForAxisLabel($$.config.axis_rotated, this.getYAxisLabelPosition());\\n};\\nAxis.prototype.textAnchorForY2AxisLabel = function textAnchorForY2AxisLabel() {\\n    var $$ = this.owner;\\n    return this.textAnchorForAxisLabel($$.config.axis_rotated, this.getY2AxisLabelPosition());\\n};\\nAxis.prototype.getMaxTickWidth = function getMaxTickWidth(id, withoutRecompute) {\\n    var $$ = this.owner,\\n        config = $$.config,\\n        maxWidth = 0,\\n        targetsToShow,\\n        scale,\\n        axis,\\n        dummy,\\n        svg;\\n    if (withoutRecompute && $$.currentMaxTickWidths[id]) {\\n        return $$.currentMaxTickWidths[id];\\n    }\\n    if ($$.svg) {\\n        targetsToShow = $$.filterTargetsToShow($$.data.targets);\\n        if (id === 'y') {\\n            scale = $$.y.copy().domain($$.getYDomain(targetsToShow, 'y'));\\n            axis = this.getYAxis(scale, $$.yOrient, config.axis_y_tick_format, $$.yAxisTickValues, false, true, true);\\n        } else if (id === 'y2') {\\n            scale = $$.y2.copy().domain($$.getYDomain(targetsToShow, 'y2'));\\n            axis = this.getYAxis(scale, $$.y2Orient, config.axis_y2_tick_format, $$.y2AxisTickValues, false, true, true);\\n        } else {\\n            scale = $$.x.copy().domain($$.getXDomain(targetsToShow));\\n            axis = this.getXAxis(scale, $$.xOrient, $$.xAxisTickFormat, $$.xAxisTickValues, false, true, true);\\n            this.updateXAxisTickValues(targetsToShow, axis);\\n        }\\n        dummy = $$.d3.select('body').append('div').classed('c3', true);\\n        svg = dummy.append(\\\"svg\\\").style('visibility', 'hidden').style('position', 'fixed').style('top', 0).style('left', 0), svg.append('g').call(axis).each(function () {\\n            $$.d3.select(this).selectAll('text').each(function () {\\n                var box = this.getBoundingClientRect();\\n                if (maxWidth < box.width) {\\n                    maxWidth = box.width;\\n                }\\n            });\\n            dummy.remove();\\n        });\\n    }\\n    $$.currentMaxTickWidths[id] = maxWidth <= 0 ? $$.currentMaxTickWidths[id] : maxWidth;\\n    return $$.currentMaxTickWidths[id];\\n};\\n\\nAxis.prototype.updateLabels = function updateLabels(withTransition) {\\n    var $$ = this.owner;\\n    var axisXLabel = $$.main.select('.' + CLASS.axisX + ' .' + CLASS.axisXLabel),\\n        axisYLabel = $$.main.select('.' + CLASS.axisY + ' .' + CLASS.axisYLabel),\\n        axisY2Label = $$.main.select('.' + CLASS.axisY2 + ' .' + CLASS.axisY2Label);\\n    (withTransition ? axisXLabel.transition() : axisXLabel).attr(\\\"x\\\", this.xForXAxisLabel.bind(this)).attr(\\\"dx\\\", this.dxForXAxisLabel.bind(this)).attr(\\\"dy\\\", this.dyForXAxisLabel.bind(this)).text(this.textForXAxisLabel.bind(this));\\n    (withTransition ? axisYLabel.transition() : axisYLabel).attr(\\\"x\\\", this.xForYAxisLabel.bind(this)).attr(\\\"dx\\\", this.dxForYAxisLabel.bind(this)).attr(\\\"dy\\\", this.dyForYAxisLabel.bind(this)).text(this.textForYAxisLabel.bind(this));\\n    (withTransition ? axisY2Label.transition() : axisY2Label).attr(\\\"x\\\", this.xForY2AxisLabel.bind(this)).attr(\\\"dx\\\", this.dxForY2AxisLabel.bind(this)).attr(\\\"dy\\\", this.dyForY2AxisLabel.bind(this)).text(this.textForY2AxisLabel.bind(this));\\n};\\nAxis.prototype.getPadding = function getPadding(padding, key, defaultValue, domainLength) {\\n    var p = typeof padding === 'number' ? padding : padding[key];\\n    if (!isValue(p)) {\\n        return defaultValue;\\n    }\\n    if (padding.unit === 'ratio') {\\n        return padding[key] * domainLength;\\n    }\\n    // assume padding is pixels if unit is not specified\\n    return this.convertPixelsToAxisPadding(p, domainLength);\\n};\\nAxis.prototype.convertPixelsToAxisPadding = function convertPixelsToAxisPadding(pixels, domainLength) {\\n    var $$ = this.owner,\\n        length = $$.config.axis_rotated ? $$.width : $$.height;\\n    return domainLength * (pixels / length);\\n};\\nAxis.prototype.generateTickValues = function generateTickValues(values, tickCount, forTimeSeries) {\\n    var tickValues = values,\\n        targetCount,\\n        start,\\n        end,\\n        count,\\n        interval,\\n        i,\\n        tickValue;\\n    if (tickCount) {\\n        targetCount = isFunction(tickCount) ? tickCount() : tickCount;\\n        // compute ticks according to tickCount\\n        if (targetCount === 1) {\\n            tickValues = [values[0]];\\n        } else if (targetCount === 2) {\\n            tickValues = [values[0], values[values.length - 1]];\\n        } else if (targetCount > 2) {\\n            count = targetCount - 2;\\n            start = values[0];\\n            end = values[values.length - 1];\\n            interval = (end - start) / (count + 1);\\n            // re-construct unique values\\n            tickValues = [start];\\n            for (i = 0; i < count; i++) {\\n                tickValue = +start + interval * (i + 1);\\n                tickValues.push(forTimeSeries ? new Date(tickValue) : tickValue);\\n            }\\n            tickValues.push(end);\\n        }\\n    }\\n    if (!forTimeSeries) {\\n        tickValues = tickValues.sort(function (a, b) {\\n            return a - b;\\n        });\\n    }\\n    return tickValues;\\n};\\nAxis.prototype.generateTransitions = function generateTransitions(duration) {\\n    var $$ = this.owner,\\n        axes = $$.axes;\\n    return {\\n        axisX: duration ? axes.x.transition().duration(duration) : axes.x,\\n        axisY: duration ? axes.y.transition().duration(duration) : axes.y,\\n        axisY2: duration ? axes.y2.transition().duration(duration) : axes.y2,\\n        axisSubX: duration ? axes.subx.transition().duration(duration) : axes.subx\\n    };\\n};\\nAxis.prototype.redraw = function redraw(transitions, isHidden) {\\n    var $$ = this.owner;\\n    $$.axes.x.style(\\\"opacity\\\", isHidden ? 0 : 1);\\n    $$.axes.y.style(\\\"opacity\\\", isHidden ? 0 : 1);\\n    $$.axes.y2.style(\\\"opacity\\\", isHidden ? 0 : 1);\\n    $$.axes.subx.style(\\\"opacity\\\", isHidden ? 0 : 1);\\n    transitions.axisX.call($$.xAxis);\\n    transitions.axisY.call($$.yAxis);\\n    transitions.axisY2.call($$.y2Axis);\\n    transitions.axisSubX.call($$.subXAxis);\\n};\\n\\nvar c3$1 = { version: \\\"0.4.15\\\" };\\n\\nvar c3_chart_fn;\\nvar c3_chart_internal_fn;\\nvar c3_chart_internal_axis_fn;\\n\\nfunction API(owner) {\\n    this.owner = owner;\\n}\\n\\nfunction inherit(base, derived) {\\n\\n    if (Object.create) {\\n        derived.prototype = Object.create(base.prototype);\\n    } else {\\n        var f = function f() {};\\n        f.prototype = base.prototype;\\n        derived.prototype = new f();\\n    }\\n\\n    derived.prototype.constructor = derived;\\n\\n    return derived;\\n}\\n\\nfunction Chart(config) {\\n    var $$ = this.internal = new ChartInternal(this);\\n    $$.loadConfig(config);\\n\\n    $$.beforeInit(config);\\n    $$.init();\\n    $$.afterInit(config);\\n\\n    // bind \\\"this\\\" to nested API\\n    (function bindThis(fn, target, argThis) {\\n        Object.keys(fn).forEach(function (key) {\\n            target[key] = fn[key].bind(argThis);\\n            if (Object.keys(fn[key]).length > 0) {\\n                bindThis(fn[key], target[key], argThis);\\n            }\\n        });\\n    })(c3_chart_fn, this, this);\\n}\\n\\nfunction ChartInternal(api) {\\n    var $$ = this;\\n    $$.d3 = window.d3 ? window.d3 : typeof require !== 'undefined' ? require(\\\"d3\\\") : undefined;\\n    $$.api = api;\\n    $$.config = $$.getDefaultConfig();\\n    $$.data = {};\\n    $$.cache = {};\\n    $$.axes = {};\\n}\\n\\nc3$1.generate = function (config) {\\n    return new Chart(config);\\n};\\n\\nc3$1.chart = {\\n    fn: Chart.prototype,\\n    internal: {\\n        fn: ChartInternal.prototype,\\n        axis: {\\n            fn: Axis.prototype\\n        }\\n    }\\n};\\nc3_chart_fn = c3$1.chart.fn;\\nc3_chart_internal_fn = c3$1.chart.internal.fn;\\nc3_chart_internal_axis_fn = c3$1.chart.internal.axis.fn;\\n\\nc3_chart_internal_fn.beforeInit = function () {\\n    // can do something\\n};\\nc3_chart_internal_fn.afterInit = function () {\\n    // can do something\\n};\\nc3_chart_internal_fn.init = function () {\\n    var $$ = this,\\n        config = $$.config;\\n\\n    $$.initParams();\\n\\n    if (config.data_url) {\\n        $$.convertUrlToData(config.data_url, config.data_mimeType, config.data_headers, config.data_keys, $$.initWithData);\\n    } else if (config.data_json) {\\n        $$.initWithData($$.convertJsonToData(config.data_json, config.data_keys));\\n    } else if (config.data_rows) {\\n        $$.initWithData($$.convertRowsToData(config.data_rows));\\n    } else if (config.data_columns) {\\n        $$.initWithData($$.convertColumnsToData(config.data_columns));\\n    } else {\\n        throw Error('url or json or rows or columns is required.');\\n    }\\n};\\n\\nc3_chart_internal_fn.initParams = function () {\\n    var $$ = this,\\n        d3 = $$.d3,\\n        config = $$.config;\\n\\n    // MEMO: clipId needs to be unique because it conflicts when multiple charts exist\\n    $$.clipId = \\\"c3-\\\" + +new Date() + '-clip', $$.clipIdForXAxis = $$.clipId + '-xaxis', $$.clipIdForYAxis = $$.clipId + '-yaxis', $$.clipIdForGrid = $$.clipId + '-grid', $$.clipIdForSubchart = $$.clipId + '-subchart', $$.clipPath = $$.getClipPath($$.clipId), $$.clipPathForXAxis = $$.getClipPath($$.clipIdForXAxis), $$.clipPathForYAxis = $$.getClipPath($$.clipIdForYAxis);\\n    $$.clipPathForGrid = $$.getClipPath($$.clipIdForGrid), $$.clipPathForSubchart = $$.getClipPath($$.clipIdForSubchart), $$.dragStart = null;\\n    $$.dragging = false;\\n    $$.flowing = false;\\n    $$.cancelClick = false;\\n    $$.mouseover = false;\\n    $$.transiting = false;\\n\\n    $$.color = $$.generateColor();\\n    $$.levelColor = $$.generateLevelColor();\\n\\n    $$.dataTimeFormat = config.data_xLocaltime ? d3.time.format : d3.time.format.utc;\\n    $$.axisTimeFormat = config.axis_x_localtime ? d3.time.format : d3.time.format.utc;\\n    $$.defaultAxisTimeFormat = $$.axisTimeFormat.multi([[\\\".%L\\\", function (d) {\\n        return d.getMilliseconds();\\n    }], [\\\":%S\\\", function (d) {\\n        return d.getSeconds();\\n    }], [\\\"%I:%M\\\", function (d) {\\n        return d.getMinutes();\\n    }], [\\\"%I %p\\\", function (d) {\\n        return d.getHours();\\n    }], [\\\"%-m/%-d\\\", function (d) {\\n        return d.getDay() && d.getDate() !== 1;\\n    }], [\\\"%-m/%-d\\\", function (d) {\\n        return d.getDate() !== 1;\\n    }], [\\\"%-m/%-d\\\", function (d) {\\n        return d.getMonth();\\n    }], [\\\"%Y/%-m/%-d\\\", function () {\\n        return true;\\n    }]]);\\n\\n    $$.hiddenTargetIds = [];\\n    $$.hiddenLegendIds = [];\\n    $$.focusedTargetIds = [];\\n    $$.defocusedTargetIds = [];\\n\\n    $$.xOrient = config.axis_rotated ? \\\"left\\\" : \\\"bottom\\\";\\n    $$.yOrient = config.axis_rotated ? config.axis_y_inner ? \\\"top\\\" : \\\"bottom\\\" : config.axis_y_inner ? \\\"right\\\" : \\\"left\\\";\\n    $$.y2Orient = config.axis_rotated ? config.axis_y2_inner ? \\\"bottom\\\" : \\\"top\\\" : config.axis_y2_inner ? \\\"left\\\" : \\\"right\\\";\\n    $$.subXOrient = config.axis_rotated ? \\\"left\\\" : \\\"bottom\\\";\\n\\n    $$.isLegendRight = config.legend_position === 'right';\\n    $$.isLegendInset = config.legend_position === 'inset';\\n    $$.isLegendTop = config.legend_inset_anchor === 'top-left' || config.legend_inset_anchor === 'top-right';\\n    $$.isLegendLeft = config.legend_inset_anchor === 'top-left' || config.legend_inset_anchor === 'bottom-left';\\n    $$.legendStep = 0;\\n    $$.legendItemWidth = 0;\\n    $$.legendItemHeight = 0;\\n\\n    $$.currentMaxTickWidths = {\\n        x: 0,\\n        y: 0,\\n        y2: 0\\n    };\\n\\n    $$.rotated_padding_left = 30;\\n    $$.rotated_padding_right = config.axis_rotated && !config.axis_x_show ? 0 : 30;\\n    $$.rotated_padding_top = 5;\\n\\n    $$.withoutFadeIn = {};\\n\\n    $$.intervalForObserveInserted = undefined;\\n\\n    $$.axes.subx = d3.selectAll([]); // needs when excluding subchart.js\\n};\\n\\nc3_chart_internal_fn.initChartElements = function () {\\n    if (this.initBar) {\\n        this.initBar();\\n    }\\n    if (this.initLine) {\\n        this.initLine();\\n    }\\n    if (this.initArc) {\\n        this.initArc();\\n    }\\n    if (this.initGauge) {\\n        this.initGauge();\\n    }\\n    if (this.initText) {\\n        this.initText();\\n    }\\n};\\n\\nc3_chart_internal_fn.initWithData = function (data) {\\n    var $$ = this,\\n        d3 = $$.d3,\\n        config = $$.config;\\n    var defs,\\n        main,\\n        binding = true;\\n\\n    $$.axis = new Axis($$);\\n\\n    if ($$.initPie) {\\n        $$.initPie();\\n    }\\n    if ($$.initBrush) {\\n        $$.initBrush();\\n    }\\n    if ($$.initZoom) {\\n        $$.initZoom();\\n    }\\n\\n    if (!config.bindto) {\\n        $$.selectChart = d3.selectAll([]);\\n    } else if (typeof config.bindto.node === 'function') {\\n        $$.selectChart = config.bindto;\\n    } else {\\n        $$.selectChart = d3.select(config.bindto);\\n    }\\n    if ($$.selectChart.empty()) {\\n        $$.selectChart = d3.select(document.createElement('div')).style('opacity', 0);\\n        $$.observeInserted($$.selectChart);\\n        binding = false;\\n    }\\n    $$.selectChart.html(\\\"\\\").classed(\\\"c3\\\", true);\\n\\n    // Init data as targets\\n    $$.data.xs = {};\\n    $$.data.targets = $$.convertDataToTargets(data);\\n\\n    if (config.data_filter) {\\n        $$.data.targets = $$.data.targets.filter(config.data_filter);\\n    }\\n\\n    // Set targets to hide if needed\\n    if (config.data_hide) {\\n        $$.addHiddenTargetIds(config.data_hide === true ? $$.mapToIds($$.data.targets) : config.data_hide);\\n    }\\n    if (config.legend_hide) {\\n        $$.addHiddenLegendIds(config.legend_hide === true ? $$.mapToIds($$.data.targets) : config.legend_hide);\\n    }\\n\\n    // when gauge, hide legend // TODO: fix\\n    if ($$.hasType('gauge')) {\\n        config.legend_show = false;\\n    }\\n\\n    // Init sizes and scales\\n    $$.updateSizes();\\n    $$.updateScales();\\n\\n    // Set domains for each scale\\n    $$.x.domain(d3.extent($$.getXDomain($$.data.targets)));\\n    $$.y.domain($$.getYDomain($$.data.targets, 'y'));\\n    $$.y2.domain($$.getYDomain($$.data.targets, 'y2'));\\n    $$.subX.domain($$.x.domain());\\n    $$.subY.domain($$.y.domain());\\n    $$.subY2.domain($$.y2.domain());\\n\\n    // Save original x domain for zoom update\\n    $$.orgXDomain = $$.x.domain();\\n\\n    // Set initialized scales to brush and zoom\\n    if ($$.brush) {\\n        $$.brush.scale($$.subX);\\n    }\\n    if (config.zoom_enabled) {\\n        $$.zoom.scale($$.x);\\n    }\\n\\n    /*-- Basic Elements --*/\\n\\n    // Define svgs\\n    $$.svg = $$.selectChart.append(\\\"svg\\\").style(\\\"overflow\\\", \\\"hidden\\\").on('mouseenter', function () {\\n        return config.onmouseover.call($$);\\n    }).on('mouseleave', function () {\\n        return config.onmouseout.call($$);\\n    });\\n\\n    if ($$.config.svg_classname) {\\n        $$.svg.attr('class', $$.config.svg_classname);\\n    }\\n\\n    // Define defs\\n    defs = $$.svg.append(\\\"defs\\\");\\n    $$.clipChart = $$.appendClip(defs, $$.clipId);\\n    $$.clipXAxis = $$.appendClip(defs, $$.clipIdForXAxis);\\n    $$.clipYAxis = $$.appendClip(defs, $$.clipIdForYAxis);\\n    $$.clipGrid = $$.appendClip(defs, $$.clipIdForGrid);\\n    $$.clipSubchart = $$.appendClip(defs, $$.clipIdForSubchart);\\n    $$.updateSvgSize();\\n\\n    // Define regions\\n    main = $$.main = $$.svg.append(\\\"g\\\").attr(\\\"transform\\\", $$.getTranslate('main'));\\n\\n    if ($$.initSubchart) {\\n        $$.initSubchart();\\n    }\\n    if ($$.initTooltip) {\\n        $$.initTooltip();\\n    }\\n    if ($$.initLegend) {\\n        $$.initLegend();\\n    }\\n    if ($$.initTitle) {\\n        $$.initTitle();\\n    }\\n\\n    /*-- Main Region --*/\\n\\n    // text when empty\\n    main.append(\\\"text\\\").attr(\\\"class\\\", CLASS.text + ' ' + CLASS.empty).attr(\\\"text-anchor\\\", \\\"middle\\\" // horizontal centering of text at x position in all browsers.\\n    ).attr(\\\"dominant-baseline\\\", \\\"middle\\\"); // vertical centering of text at y position in all browsers, except IE.\\n\\n    // Regions\\n    $$.initRegion();\\n\\n    // Grids\\n    $$.initGrid();\\n\\n    // Define g for chart area\\n    main.append('g').attr(\\\"clip-path\\\", $$.clipPath).attr('class', CLASS.chart);\\n\\n    // Grid lines\\n    if (config.grid_lines_front) {\\n        $$.initGridLines();\\n    }\\n\\n    // Cover whole with rects for events\\n    $$.initEventRect();\\n\\n    // Define g for chart\\n    $$.initChartElements();\\n\\n    // if zoom privileged, insert rect to forefront\\n    // TODO: is this needed?\\n    main.insert('rect', config.zoom_privileged ? null : 'g.' + CLASS.regions).attr('class', CLASS.zoomRect).attr('width', $$.width).attr('height', $$.height).style('opacity', 0).on(\\\"dblclick.zoom\\\", null);\\n\\n    // Set default extent if defined\\n    if (config.axis_x_extent) {\\n        $$.brush.extent($$.getDefaultExtent());\\n    }\\n\\n    // Add Axis\\n    $$.axis.init();\\n\\n    // Set targets\\n    $$.updateTargets($$.data.targets);\\n\\n    // Draw with targets\\n    if (binding) {\\n        $$.updateDimension();\\n        $$.config.oninit.call($$);\\n        $$.redraw({\\n            withTransition: false,\\n            withTransform: true,\\n            withUpdateXDomain: true,\\n            withUpdateOrgXDomain: true,\\n            withTransitionForAxis: false\\n        });\\n    }\\n\\n    // Bind resize event\\n    $$.bindResize();\\n\\n    // export element of the chart\\n    $$.api.element = $$.selectChart.node();\\n};\\n\\nc3_chart_internal_fn.smoothLines = function (el, type) {\\n    var $$ = this;\\n    if (type === 'grid') {\\n        el.each(function () {\\n            var g = $$.d3.select(this),\\n                x1 = g.attr('x1'),\\n                x2 = g.attr('x2'),\\n                y1 = g.attr('y1'),\\n                y2 = g.attr('y2');\\n            g.attr({\\n                'x1': Math.ceil(x1),\\n                'x2': Math.ceil(x2),\\n                'y1': Math.ceil(y1),\\n                'y2': Math.ceil(y2)\\n            });\\n        });\\n    }\\n};\\n\\nc3_chart_internal_fn.updateSizes = function () {\\n    var $$ = this,\\n        config = $$.config;\\n    var legendHeight = $$.legend ? $$.getLegendHeight() : 0,\\n        legendWidth = $$.legend ? $$.getLegendWidth() : 0,\\n        legendHeightForBottom = $$.isLegendRight || $$.isLegendInset ? 0 : legendHeight,\\n        hasArc = $$.hasArcType(),\\n        xAxisHeight = config.axis_rotated || hasArc ? 0 : $$.getHorizontalAxisHeight('x'),\\n        subchartHeight = config.subchart_show && !hasArc ? config.subchart_size_height + xAxisHeight : 0;\\n\\n    $$.currentWidth = $$.getCurrentWidth();\\n    $$.currentHeight = $$.getCurrentHeight();\\n\\n    // for main\\n    $$.margin = config.axis_rotated ? {\\n        top: $$.getHorizontalAxisHeight('y2') + $$.getCurrentPaddingTop(),\\n        right: hasArc ? 0 : $$.getCurrentPaddingRight(),\\n        bottom: $$.getHorizontalAxisHeight('y') + legendHeightForBottom + $$.getCurrentPaddingBottom(),\\n        left: subchartHeight + (hasArc ? 0 : $$.getCurrentPaddingLeft())\\n    } : {\\n        top: 4 + $$.getCurrentPaddingTop(), // for top tick text\\n        right: hasArc ? 0 : $$.getCurrentPaddingRight(),\\n        bottom: xAxisHeight + subchartHeight + legendHeightForBottom + $$.getCurrentPaddingBottom(),\\n        left: hasArc ? 0 : $$.getCurrentPaddingLeft()\\n    };\\n\\n    // for subchart\\n    $$.margin2 = config.axis_rotated ? {\\n        top: $$.margin.top,\\n        right: NaN,\\n        bottom: 20 + legendHeightForBottom,\\n        left: $$.rotated_padding_left\\n    } : {\\n        top: $$.currentHeight - subchartHeight - legendHeightForBottom,\\n        right: NaN,\\n        bottom: xAxisHeight + legendHeightForBottom,\\n        left: $$.margin.left\\n    };\\n\\n    // for legend\\n    $$.margin3 = {\\n        top: 0,\\n        right: NaN,\\n        bottom: 0,\\n        left: 0\\n    };\\n    if ($$.updateSizeForLegend) {\\n        $$.updateSizeForLegend(legendHeight, legendWidth);\\n    }\\n\\n    $$.width = $$.currentWidth - $$.margin.left - $$.margin.right;\\n    $$.height = $$.currentHeight - $$.margin.top - $$.margin.bottom;\\n    if ($$.width < 0) {\\n        $$.width = 0;\\n    }\\n    if ($$.height < 0) {\\n        $$.height = 0;\\n    }\\n\\n    $$.width2 = config.axis_rotated ? $$.margin.left - $$.rotated_padding_left - $$.rotated_padding_right : $$.width;\\n    $$.height2 = config.axis_rotated ? $$.height : $$.currentHeight - $$.margin2.top - $$.margin2.bottom;\\n    if ($$.width2 < 0) {\\n        $$.width2 = 0;\\n    }\\n    if ($$.height2 < 0) {\\n        $$.height2 = 0;\\n    }\\n\\n    // for arc\\n    $$.arcWidth = $$.width - ($$.isLegendRight ? legendWidth + 10 : 0);\\n    $$.arcHeight = $$.height - ($$.isLegendRight ? 0 : 10);\\n    if ($$.hasType('gauge') && !config.gauge_fullCircle) {\\n        $$.arcHeight += $$.height - $$.getGaugeLabelHeight();\\n    }\\n    if ($$.updateRadius) {\\n        $$.updateRadius();\\n    }\\n\\n    if ($$.isLegendRight && hasArc) {\\n        $$.margin3.left = $$.arcWidth / 2 + $$.radiusExpanded * 1.1;\\n    }\\n};\\n\\nc3_chart_internal_fn.updateTargets = function (targets) {\\n    var $$ = this;\\n\\n    /*-- Main --*/\\n\\n    //-- Text --//\\n    $$.updateTargetsForText(targets);\\n\\n    //-- Bar --//\\n    $$.updateTargetsForBar(targets);\\n\\n    //-- Line --//\\n    $$.updateTargetsForLine(targets);\\n\\n    //-- Arc --//\\n    if ($$.hasArcType() && $$.updateTargetsForArc) {\\n        $$.updateTargetsForArc(targets);\\n    }\\n\\n    /*-- Sub --*/\\n\\n    if ($$.updateTargetsForSubchart) {\\n        $$.updateTargetsForSubchart(targets);\\n    }\\n\\n    // Fade-in each chart\\n    $$.showTargets();\\n};\\nc3_chart_internal_fn.showTargets = function () {\\n    var $$ = this;\\n    $$.svg.selectAll('.' + CLASS.target).filter(function (d) {\\n        return $$.isTargetToShow(d.id);\\n    }).transition().duration($$.config.transition_duration).style(\\\"opacity\\\", 1);\\n};\\n\\nc3_chart_internal_fn.redraw = function (options, transitions) {\\n    var $$ = this,\\n        main = $$.main,\\n        d3 = $$.d3,\\n        config = $$.config;\\n    var areaIndices = $$.getShapeIndices($$.isAreaType),\\n        barIndices = $$.getShapeIndices($$.isBarType),\\n        lineIndices = $$.getShapeIndices($$.isLineType);\\n    var withY, withSubchart, withTransition, withTransitionForExit, withTransitionForAxis, withTransform, withUpdateXDomain, withUpdateOrgXDomain, withTrimXDomain, withLegend, withEventRect, withDimension, withUpdateXAxis;\\n    var hideAxis = $$.hasArcType();\\n    var drawArea, drawBar, drawLine, xForText, yForText;\\n    var duration, durationForExit, durationForAxis;\\n    var waitForDraw, flow;\\n    var targetsToShow = $$.filterTargetsToShow($$.data.targets),\\n        tickValues,\\n        i,\\n        intervalForCulling,\\n        xDomainForZoom;\\n    var xv = $$.xv.bind($$),\\n        cx,\\n        cy;\\n\\n    options = options || {};\\n    withY = getOption(options, \\\"withY\\\", true);\\n    withSubchart = getOption(options, \\\"withSubchart\\\", true);\\n    withTransition = getOption(options, \\\"withTransition\\\", true);\\n    withTransform = getOption(options, \\\"withTransform\\\", false);\\n    withUpdateXDomain = getOption(options, \\\"withUpdateXDomain\\\", false);\\n    withUpdateOrgXDomain = getOption(options, \\\"withUpdateOrgXDomain\\\", false);\\n    withTrimXDomain = getOption(options, \\\"withTrimXDomain\\\", true);\\n    withUpdateXAxis = getOption(options, \\\"withUpdateXAxis\\\", withUpdateXDomain);\\n    withLegend = getOption(options, \\\"withLegend\\\", false);\\n    withEventRect = getOption(options, \\\"withEventRect\\\", true);\\n    withDimension = getOption(options, \\\"withDimension\\\", true);\\n    withTransitionForExit = getOption(options, \\\"withTransitionForExit\\\", withTransition);\\n    withTransitionForAxis = getOption(options, \\\"withTransitionForAxis\\\", withTransition);\\n\\n    duration = withTransition ? config.transition_duration : 0;\\n    durationForExit = withTransitionForExit ? duration : 0;\\n    durationForAxis = withTransitionForAxis ? duration : 0;\\n\\n    transitions = transitions || $$.axis.generateTransitions(durationForAxis);\\n\\n    // update legend and transform each g\\n    if (withLegend && config.legend_show) {\\n        $$.updateLegend($$.mapToIds($$.data.targets), options, transitions);\\n    } else if (withDimension) {\\n        // need to update dimension (e.g. axis.y.tick.values) because y tick values should change\\n        // no need to update axis in it because they will be updated in redraw()\\n        $$.updateDimension(true);\\n    }\\n\\n    // MEMO: needed for grids calculation\\n    if ($$.isCategorized() && targetsToShow.length === 0) {\\n        $$.x.domain([0, $$.axes.x.selectAll('.tick').size()]);\\n    }\\n\\n    if (targetsToShow.length) {\\n        $$.updateXDomain(targetsToShow, withUpdateXDomain, withUpdateOrgXDomain, withTrimXDomain);\\n        if (!config.axis_x_tick_values) {\\n            tickValues = $$.axis.updateXAxisTickValues(targetsToShow);\\n        }\\n    } else {\\n        $$.xAxis.tickValues([]);\\n        $$.subXAxis.tickValues([]);\\n    }\\n\\n    if (config.zoom_rescale && !options.flow) {\\n        xDomainForZoom = $$.x.orgDomain();\\n    }\\n\\n    $$.y.domain($$.getYDomain(targetsToShow, 'y', xDomainForZoom));\\n    $$.y2.domain($$.getYDomain(targetsToShow, 'y2', xDomainForZoom));\\n\\n    if (!config.axis_y_tick_values && config.axis_y_tick_count) {\\n        $$.yAxis.tickValues($$.axis.generateTickValues($$.y.domain(), config.axis_y_tick_count));\\n    }\\n    if (!config.axis_y2_tick_values && config.axis_y2_tick_count) {\\n        $$.y2Axis.tickValues($$.axis.generateTickValues($$.y2.domain(), config.axis_y2_tick_count));\\n    }\\n\\n    // axes\\n    $$.axis.redraw(transitions, hideAxis);\\n\\n    // Update axis label\\n    $$.axis.updateLabels(withTransition);\\n\\n    // show/hide if manual culling needed\\n    if ((withUpdateXDomain || withUpdateXAxis) && targetsToShow.length) {\\n        if (config.axis_x_tick_culling && tickValues) {\\n            for (i = 1; i < tickValues.length; i++) {\\n                if (tickValues.length / i < config.axis_x_tick_culling_max) {\\n                    intervalForCulling = i;\\n                    break;\\n                }\\n            }\\n            $$.svg.selectAll('.' + CLASS.axisX + ' .tick text').each(function (e) {\\n                var index = tickValues.indexOf(e);\\n                if (index >= 0) {\\n                    d3.select(this).style('display', index % intervalForCulling ? 'none' : 'block');\\n                }\\n            });\\n        } else {\\n            $$.svg.selectAll('.' + CLASS.axisX + ' .tick text').style('display', 'block');\\n        }\\n    }\\n\\n    // setup drawer - MEMO: these must be called after axis updated\\n    drawArea = $$.generateDrawArea ? $$.generateDrawArea(areaIndices, false) : undefined;\\n    drawBar = $$.generateDrawBar ? $$.generateDrawBar(barIndices) : undefined;\\n    drawLine = $$.generateDrawLine ? $$.generateDrawLine(lineIndices, false) : undefined;\\n    xForText = $$.generateXYForText(areaIndices, barIndices, lineIndices, true);\\n    yForText = $$.generateXYForText(areaIndices, barIndices, lineIndices, false);\\n\\n    // Update sub domain\\n    if (withY) {\\n        $$.subY.domain($$.getYDomain(targetsToShow, 'y'));\\n        $$.subY2.domain($$.getYDomain(targetsToShow, 'y2'));\\n    }\\n\\n    // xgrid focus\\n    $$.updateXgridFocus();\\n\\n    // Data empty label positioning and text.\\n    main.select(\\\"text.\\\" + CLASS.text + '.' + CLASS.empty).attr(\\\"x\\\", $$.width / 2).attr(\\\"y\\\", $$.height / 2).text(config.data_empty_label_text).transition().style('opacity', targetsToShow.length ? 0 : 1);\\n\\n    // grid\\n    $$.updateGrid(duration);\\n\\n    // rect for regions\\n    $$.updateRegion(duration);\\n\\n    // bars\\n    $$.updateBar(durationForExit);\\n\\n    // lines, areas and cricles\\n    $$.updateLine(durationForExit);\\n    $$.updateArea(durationForExit);\\n    $$.updateCircle();\\n\\n    // text\\n    if ($$.hasDataLabel()) {\\n        $$.updateText(durationForExit);\\n    }\\n\\n    // title\\n    if ($$.redrawTitle) {\\n        $$.redrawTitle();\\n    }\\n\\n    // arc\\n    if ($$.redrawArc) {\\n        $$.redrawArc(duration, durationForExit, withTransform);\\n    }\\n\\n    // subchart\\n    if ($$.redrawSubchart) {\\n        $$.redrawSubchart(withSubchart, transitions, duration, durationForExit, areaIndices, barIndices, lineIndices);\\n    }\\n\\n    // circles for select\\n    main.selectAll('.' + CLASS.selectedCircles).filter($$.isBarType.bind($$)).selectAll('circle').remove();\\n\\n    // event rects will redrawn when flow called\\n    if (config.interaction_enabled && !options.flow && withEventRect) {\\n        $$.redrawEventRect();\\n        if ($$.updateZoom) {\\n            $$.updateZoom();\\n        }\\n    }\\n\\n    // update circleY based on updated parameters\\n    $$.updateCircleY();\\n\\n    // generate circle x/y functions depending on updated params\\n    cx = ($$.config.axis_rotated ? $$.circleY : $$.circleX).bind($$);\\n    cy = ($$.config.axis_rotated ? $$.circleX : $$.circleY).bind($$);\\n\\n    if (options.flow) {\\n        flow = $$.generateFlow({\\n            targets: targetsToShow,\\n            flow: options.flow,\\n            duration: options.flow.duration,\\n            drawBar: drawBar,\\n            drawLine: drawLine,\\n            drawArea: drawArea,\\n            cx: cx,\\n            cy: cy,\\n            xv: xv,\\n            xForText: xForText,\\n            yForText: yForText\\n        });\\n    }\\n\\n    if ((duration || flow) && $$.isTabVisible()) {\\n        // Only use transition if tab visible. See #938.\\n        // transition should be derived from one transition\\n        d3.transition().duration(duration).each(function () {\\n            var transitionsToWait = [];\\n\\n            // redraw and gather transitions\\n            [$$.redrawBar(drawBar, true), $$.redrawLine(drawLine, true), $$.redrawArea(drawArea, true), $$.redrawCircle(cx, cy, true), $$.redrawText(xForText, yForText, options.flow, true), $$.redrawRegion(true), $$.redrawGrid(true)].forEach(function (transitions) {\\n                transitions.forEach(function (transition) {\\n                    transitionsToWait.push(transition);\\n                });\\n            });\\n\\n            // Wait for end of transitions to call flow and onrendered callback\\n            waitForDraw = $$.generateWait();\\n            transitionsToWait.forEach(function (t) {\\n                waitForDraw.add(t);\\n            });\\n        }).call(waitForDraw, function () {\\n            if (flow) {\\n                flow();\\n            }\\n            if (config.onrendered) {\\n                config.onrendered.call($$);\\n            }\\n        });\\n    } else {\\n        $$.redrawBar(drawBar);\\n        $$.redrawLine(drawLine);\\n        $$.redrawArea(drawArea);\\n        $$.redrawCircle(cx, cy);\\n        $$.redrawText(xForText, yForText, options.flow);\\n        $$.redrawRegion();\\n        $$.redrawGrid();\\n        if (config.onrendered) {\\n            config.onrendered.call($$);\\n        }\\n    }\\n\\n    // update fadein condition\\n    $$.mapToIds($$.data.targets).forEach(function (id) {\\n        $$.withoutFadeIn[id] = true;\\n    });\\n};\\n\\nc3_chart_internal_fn.updateAndRedraw = function (options) {\\n    var $$ = this,\\n        config = $$.config,\\n        transitions;\\n    options = options || {};\\n    // same with redraw\\n    options.withTransition = getOption(options, \\\"withTransition\\\", true);\\n    options.withTransform = getOption(options, \\\"withTransform\\\", false);\\n    options.withLegend = getOption(options, \\\"withLegend\\\", false);\\n    // NOT same with redraw\\n    options.withUpdateXDomain = true;\\n    options.withUpdateOrgXDomain = true;\\n    options.withTransitionForExit = false;\\n    options.withTransitionForTransform = getOption(options, \\\"withTransitionForTransform\\\", options.withTransition);\\n    // MEMO: this needs to be called before updateLegend and it means this ALWAYS needs to be called)\\n    $$.updateSizes();\\n    // MEMO: called in updateLegend in redraw if withLegend\\n    if (!(options.withLegend && config.legend_show)) {\\n        transitions = $$.axis.generateTransitions(options.withTransitionForAxis ? config.transition_duration : 0);\\n        // Update scales\\n        $$.updateScales();\\n        $$.updateSvgSize();\\n        // Update g positions\\n        $$.transformAll(options.withTransitionForTransform, transitions);\\n    }\\n    // Draw with new sizes & scales\\n    $$.redraw(options, transitions);\\n};\\nc3_chart_internal_fn.redrawWithoutRescale = function () {\\n    this.redraw({\\n        withY: false,\\n        withSubchart: false,\\n        withEventRect: false,\\n        withTransitionForAxis: false\\n    });\\n};\\n\\nc3_chart_internal_fn.isTimeSeries = function () {\\n    return this.config.axis_x_type === 'timeseries';\\n};\\nc3_chart_internal_fn.isCategorized = function () {\\n    return this.config.axis_x_type.indexOf('categor') >= 0;\\n};\\nc3_chart_internal_fn.isCustomX = function () {\\n    var $$ = this,\\n        config = $$.config;\\n    return !$$.isTimeSeries() && (config.data_x || notEmpty(config.data_xs));\\n};\\n\\nc3_chart_internal_fn.isTimeSeriesY = function () {\\n    return this.config.axis_y_type === 'timeseries';\\n};\\n\\nc3_chart_internal_fn.getTranslate = function (target) {\\n    var $$ = this,\\n        config = $$.config,\\n        x,\\n        y;\\n    if (target === 'main') {\\n        x = asHalfPixel($$.margin.left);\\n        y = asHalfPixel($$.margin.top);\\n    } else if (target === 'context') {\\n        x = asHalfPixel($$.margin2.left);\\n        y = asHalfPixel($$.margin2.top);\\n    } else if (target === 'legend') {\\n        x = $$.margin3.left;\\n        y = $$.margin3.top;\\n    } else if (target === 'x') {\\n        x = 0;\\n        y = config.axis_rotated ? 0 : $$.height;\\n    } else if (target === 'y') {\\n        x = 0;\\n        y = config.axis_rotated ? $$.height : 0;\\n    } else if (target === 'y2') {\\n        x = config.axis_rotated ? 0 : $$.width;\\n        y = config.axis_rotated ? 1 : 0;\\n    } else if (target === 'subx') {\\n        x = 0;\\n        y = config.axis_rotated ? 0 : $$.height2;\\n    } else if (target === 'arc') {\\n        x = $$.arcWidth / 2;\\n        y = $$.arcHeight / 2;\\n    }\\n    return \\\"translate(\\\" + x + \\\",\\\" + y + \\\")\\\";\\n};\\nc3_chart_internal_fn.initialOpacity = function (d) {\\n    return d.value !== null && this.withoutFadeIn[d.id] ? 1 : 0;\\n};\\nc3_chart_internal_fn.initialOpacityForCircle = function (d) {\\n    return d.value !== null && this.withoutFadeIn[d.id] ? this.opacityForCircle(d) : 0;\\n};\\nc3_chart_internal_fn.opacityForCircle = function (d) {\\n    var isPointShouldBeShown = isFunction(this.config.point_show) ? this.config.point_show(d) : this.config.point_show;\\n    var opacity = isPointShouldBeShown ? 1 : 0;\\n    return isValue(d.value) ? this.isScatterType(d) ? 0.5 : opacity : 0;\\n};\\nc3_chart_internal_fn.opacityForText = function () {\\n    return this.hasDataLabel() ? 1 : 0;\\n};\\nc3_chart_internal_fn.xx = function (d) {\\n    return d ? this.x(d.x) : null;\\n};\\nc3_chart_internal_fn.xv = function (d) {\\n    var $$ = this,\\n        value = d.value;\\n    if ($$.isTimeSeries()) {\\n        value = $$.parseDate(d.value);\\n    } else if ($$.isCategorized() && typeof d.value === 'string') {\\n        value = $$.config.axis_x_categories.indexOf(d.value);\\n    }\\n    return Math.ceil($$.x(value));\\n};\\nc3_chart_internal_fn.yv = function (d) {\\n    var $$ = this,\\n        yScale = d.axis && d.axis === 'y2' ? $$.y2 : $$.y;\\n    return Math.ceil(yScale(d.value));\\n};\\nc3_chart_internal_fn.subxx = function (d) {\\n    return d ? this.subX(d.x) : null;\\n};\\n\\nc3_chart_internal_fn.transformMain = function (withTransition, transitions) {\\n    var $$ = this,\\n        xAxis,\\n        yAxis,\\n        y2Axis;\\n    if (transitions && transitions.axisX) {\\n        xAxis = transitions.axisX;\\n    } else {\\n        xAxis = $$.main.select('.' + CLASS.axisX);\\n        if (withTransition) {\\n            xAxis = xAxis.transition();\\n        }\\n    }\\n    if (transitions && transitions.axisY) {\\n        yAxis = transitions.axisY;\\n    } else {\\n        yAxis = $$.main.select('.' + CLASS.axisY);\\n        if (withTransition) {\\n            yAxis = yAxis.transition();\\n        }\\n    }\\n    if (transitions && transitions.axisY2) {\\n        y2Axis = transitions.axisY2;\\n    } else {\\n        y2Axis = $$.main.select('.' + CLASS.axisY2);\\n        if (withTransition) {\\n            y2Axis = y2Axis.transition();\\n        }\\n    }\\n    (withTransition ? $$.main.transition() : $$.main).attr(\\\"transform\\\", $$.getTranslate('main'));\\n    xAxis.attr(\\\"transform\\\", $$.getTranslate('x'));\\n    yAxis.attr(\\\"transform\\\", $$.getTranslate('y'));\\n    y2Axis.attr(\\\"transform\\\", $$.getTranslate('y2'));\\n    $$.main.select('.' + CLASS.chartArcs).attr(\\\"transform\\\", $$.getTranslate('arc'));\\n};\\nc3_chart_internal_fn.transformAll = function (withTransition, transitions) {\\n    var $$ = this;\\n    $$.transformMain(withTransition, transitions);\\n    if ($$.config.subchart_show) {\\n        $$.transformContext(withTransition, transitions);\\n    }\\n    if ($$.legend) {\\n        $$.transformLegend(withTransition);\\n    }\\n};\\n\\nc3_chart_internal_fn.updateSvgSize = function () {\\n    var $$ = this,\\n        brush = $$.svg.select(\\\".c3-brush .background\\\");\\n    $$.svg.attr('width', $$.currentWidth).attr('height', $$.currentHeight);\\n    $$.svg.selectAll(['#' + $$.clipId, '#' + $$.clipIdForGrid]).select('rect').attr('width', $$.width).attr('height', $$.height);\\n    $$.svg.select('#' + $$.clipIdForXAxis).select('rect').attr('x', $$.getXAxisClipX.bind($$)).attr('y', $$.getXAxisClipY.bind($$)).attr('width', $$.getXAxisClipWidth.bind($$)).attr('height', $$.getXAxisClipHeight.bind($$));\\n    $$.svg.select('#' + $$.clipIdForYAxis).select('rect').attr('x', $$.getYAxisClipX.bind($$)).attr('y', $$.getYAxisClipY.bind($$)).attr('width', $$.getYAxisClipWidth.bind($$)).attr('height', $$.getYAxisClipHeight.bind($$));\\n    $$.svg.select('#' + $$.clipIdForSubchart).select('rect').attr('width', $$.width).attr('height', brush.size() ? brush.attr('height') : 0);\\n    $$.svg.select('.' + CLASS.zoomRect).attr('width', $$.width).attr('height', $$.height);\\n    // MEMO: parent div's height will be bigger than svg when <!DOCTYPE html>\\n    $$.selectChart.style('max-height', $$.currentHeight + \\\"px\\\");\\n};\\n\\nc3_chart_internal_fn.updateDimension = function (withoutAxis) {\\n    var $$ = this;\\n    if (!withoutAxis) {\\n        if ($$.config.axis_rotated) {\\n            $$.axes.x.call($$.xAxis);\\n            $$.axes.subx.call($$.subXAxis);\\n        } else {\\n            $$.axes.y.call($$.yAxis);\\n            $$.axes.y2.call($$.y2Axis);\\n        }\\n    }\\n    $$.updateSizes();\\n    $$.updateScales();\\n    $$.updateSvgSize();\\n    $$.transformAll(false);\\n};\\n\\nc3_chart_internal_fn.observeInserted = function (selection) {\\n    var $$ = this,\\n        observer;\\n    if (typeof MutationObserver === 'undefined') {\\n        window.console.error(\\\"MutationObserver not defined.\\\");\\n        return;\\n    }\\n    observer = new MutationObserver(function (mutations) {\\n        mutations.forEach(function (mutation) {\\n            if (mutation.type === 'childList' && mutation.previousSibling) {\\n                observer.disconnect();\\n                // need to wait for completion of load because size calculation requires the actual sizes determined after that completion\\n                $$.intervalForObserveInserted = window.setInterval(function () {\\n                    // parentNode will NOT be null when completed\\n                    if (selection.node().parentNode) {\\n                        window.clearInterval($$.intervalForObserveInserted);\\n                        $$.updateDimension();\\n                        if ($$.brush) {\\n                            $$.brush.update();\\n                        }\\n                        $$.config.oninit.call($$);\\n                        $$.redraw({\\n                            withTransform: true,\\n                            withUpdateXDomain: true,\\n                            withUpdateOrgXDomain: true,\\n                            withTransition: false,\\n                            withTransitionForTransform: false,\\n                            withLegend: true\\n                        });\\n                        selection.transition().style('opacity', 1);\\n                    }\\n                }, 10);\\n            }\\n        });\\n    });\\n    observer.observe(selection.node(), { attributes: true, childList: true, characterData: true });\\n};\\n\\nc3_chart_internal_fn.bindResize = function () {\\n    var $$ = this,\\n        config = $$.config;\\n\\n    $$.resizeFunction = $$.generateResize();\\n\\n    $$.resizeFunction.add(function () {\\n        config.onresize.call($$);\\n    });\\n    if (config.resize_auto) {\\n        $$.resizeFunction.add(function () {\\n            if ($$.resizeTimeout !== undefined) {\\n                window.clearTimeout($$.resizeTimeout);\\n            }\\n            $$.resizeTimeout = window.setTimeout(function () {\\n                delete $$.resizeTimeout;\\n                $$.api.flush();\\n            }, 100);\\n        });\\n    }\\n    $$.resizeFunction.add(function () {\\n        config.onresized.call($$);\\n    });\\n\\n    if (window.attachEvent) {\\n        window.attachEvent('onresize', $$.resizeFunction);\\n    } else if (window.addEventListener) {\\n        window.addEventListener('resize', $$.resizeFunction, false);\\n    } else {\\n        // fallback to this, if this is a very old browser\\n        var wrapper = window.onresize;\\n        if (!wrapper) {\\n            // create a wrapper that will call all charts\\n            wrapper = $$.generateResize();\\n        } else if (!wrapper.add || !wrapper.remove) {\\n            // there is already a handler registered, make sure we call it too\\n            wrapper = $$.generateResize();\\n            wrapper.add(window.onresize);\\n        }\\n        // add this graph to the wrapper, we will be removed if the user calls destroy\\n        wrapper.add($$.resizeFunction);\\n        window.onresize = wrapper;\\n    }\\n};\\n\\nc3_chart_internal_fn.generateResize = function () {\\n    var resizeFunctions = [];\\n    function callResizeFunctions() {\\n        resizeFunctions.forEach(function (f) {\\n            f();\\n        });\\n    }\\n    callResizeFunctions.add = function (f) {\\n        resizeFunctions.push(f);\\n    };\\n    callResizeFunctions.remove = function (f) {\\n        for (var i = 0; i < resizeFunctions.length; i++) {\\n            if (resizeFunctions[i] === f) {\\n                resizeFunctions.splice(i, 1);\\n                break;\\n            }\\n        }\\n    };\\n    return callResizeFunctions;\\n};\\n\\nc3_chart_internal_fn.endall = function (transition, callback) {\\n    var n = 0;\\n    transition.each(function () {\\n        ++n;\\n    }).each(\\\"end\\\", function () {\\n        if (! --n) {\\n            callback.apply(this, arguments);\\n        }\\n    });\\n};\\nc3_chart_internal_fn.generateWait = function () {\\n    var transitionsToWait = [],\\n        f = function f(transition, callback) {\\n        var timer = setInterval(function () {\\n            var done = 0;\\n            transitionsToWait.forEach(function (t) {\\n                if (t.empty()) {\\n                    done += 1;\\n                    return;\\n                }\\n                try {\\n                    t.transition();\\n                } catch (e) {\\n                    done += 1;\\n                }\\n            });\\n            if (done === transitionsToWait.length) {\\n                clearInterval(timer);\\n                if (callback) {\\n                    callback();\\n                }\\n            }\\n        }, 10);\\n    };\\n    f.add = function (transition) {\\n        transitionsToWait.push(transition);\\n    };\\n    return f;\\n};\\n\\nc3_chart_internal_fn.parseDate = function (date) {\\n    var $$ = this,\\n        parsedDate;\\n    if (date instanceof Date) {\\n        parsedDate = date;\\n    } else if (typeof date === 'string') {\\n        parsedDate = $$.dataTimeFormat($$.config.data_xFormat).parse(date);\\n    } else if ((typeof date === 'undefined' ? 'undefined' : _typeof(date)) === 'object') {\\n        parsedDate = new Date(+date);\\n    } else if (typeof date === 'number' && !isNaN(date)) {\\n        parsedDate = new Date(+date);\\n    }\\n    if (!parsedDate || isNaN(+parsedDate)) {\\n        window.console.error(\\\"Failed to parse x '\\\" + date + \\\"' to Date object\\\");\\n    }\\n    return parsedDate;\\n};\\n\\nc3_chart_internal_fn.isTabVisible = function () {\\n    var hidden;\\n    if (typeof document.hidden !== \\\"undefined\\\") {\\n        // Opera 12.10 and Firefox 18 and later support\\n        hidden = \\\"hidden\\\";\\n    } else if (typeof document.mozHidden !== \\\"undefined\\\") {\\n        hidden = \\\"mozHidden\\\";\\n    } else if (typeof document.msHidden !== \\\"undefined\\\") {\\n        hidden = \\\"msHidden\\\";\\n    } else if (typeof document.webkitHidden !== \\\"undefined\\\") {\\n        hidden = \\\"webkitHidden\\\";\\n    }\\n\\n    return document[hidden] ? false : true;\\n};\\n\\nc3_chart_internal_fn.isValue = isValue;\\nc3_chart_internal_fn.isFunction = isFunction;\\nc3_chart_internal_fn.isString = isString;\\nc3_chart_internal_fn.isUndefined = isUndefined;\\nc3_chart_internal_fn.isDefined = isDefined;\\nc3_chart_internal_fn.ceil10 = ceil10;\\nc3_chart_internal_fn.asHalfPixel = asHalfPixel;\\nc3_chart_internal_fn.diffDomain = diffDomain;\\nc3_chart_internal_fn.isEmpty = isEmpty;\\nc3_chart_internal_fn.notEmpty = notEmpty;\\nc3_chart_internal_fn.notEmpty = notEmpty;\\nc3_chart_internal_fn.getOption = getOption;\\nc3_chart_internal_fn.hasValue = hasValue;\\nc3_chart_internal_fn.sanitise = sanitise;\\nc3_chart_internal_fn.getPathBox = getPathBox;\\nc3_chart_internal_fn.CLASS = CLASS;\\n\\n/* jshint ignore:start */\\n\\n// PhantomJS doesn't have support for Function.prototype.bind, which has caused confusion. Use\\n// this polyfill to avoid the confusion.\\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind#Polyfill\\n\\nif (!Function.prototype.bind) {\\n    Function.prototype.bind = function (oThis) {\\n        if (typeof this !== 'function') {\\n            // closest thing possible to the ECMAScript 5\\n            // internal IsCallable function\\n            throw new TypeError('Function.prototype.bind - what is trying to be bound is not callable');\\n        }\\n\\n        var aArgs = Array.prototype.slice.call(arguments, 1),\\n            fToBind = this,\\n            fNOP = function fNOP() {},\\n            fBound = function fBound() {\\n            return fToBind.apply(this instanceof fNOP ? this : oThis, aArgs.concat(Array.prototype.slice.call(arguments)));\\n        };\\n\\n        fNOP.prototype = this.prototype;\\n        fBound.prototype = new fNOP();\\n\\n        return fBound;\\n    };\\n}\\n\\n// SVGPathSeg API polyfill\\n// https://github.com/progers/pathseg\\n//\\n// This is a drop-in replacement for the SVGPathSeg and SVGPathSegList APIs that were removed from\\n// SVG2 (https://lists.w3.org/Archives/Public/www-svg/2015Jun/0044.html), including the latest spec\\n// changes which were implemented in Firefox 43 and Chrome 46.\\n\\n(function () {\\n    \\\"use strict\\\";\\n\\n    if (!(\\\"SVGPathSeg\\\" in window)) {\\n        // Spec: http://www.w3.org/TR/SVG11/single-page.html#paths-InterfaceSVGPathSeg\\n        window.SVGPathSeg = function (type, typeAsLetter, owningPathSegList) {\\n            this.pathSegType = type;\\n            this.pathSegTypeAsLetter = typeAsLetter;\\n            this._owningPathSegList = owningPathSegList;\\n        };\\n\\n        window.SVGPathSeg.prototype.classname = \\\"SVGPathSeg\\\";\\n\\n        window.SVGPathSeg.PATHSEG_UNKNOWN = 0;\\n        window.SVGPathSeg.PATHSEG_CLOSEPATH = 1;\\n        window.SVGPathSeg.PATHSEG_MOVETO_ABS = 2;\\n        window.SVGPathSeg.PATHSEG_MOVETO_REL = 3;\\n        window.SVGPathSeg.PATHSEG_LINETO_ABS = 4;\\n        window.SVGPathSeg.PATHSEG_LINETO_REL = 5;\\n        window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS = 6;\\n        window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL = 7;\\n        window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS = 8;\\n        window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL = 9;\\n        window.SVGPathSeg.PATHSEG_ARC_ABS = 10;\\n        window.SVGPathSeg.PATHSEG_ARC_REL = 11;\\n        window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS = 12;\\n        window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL = 13;\\n        window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS = 14;\\n        window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL = 15;\\n        window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16;\\n        window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17;\\n        window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18;\\n        window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19;\\n\\n        // Notify owning PathSegList on any changes so they can be synchronized back to the path element.\\n        window.SVGPathSeg.prototype._segmentChanged = function () {\\n            if (this._owningPathSegList) this._owningPathSegList.segmentChanged(this);\\n        };\\n\\n        window.SVGPathSegClosePath = function (owningPathSegList) {\\n            window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CLOSEPATH, \\\"z\\\", owningPathSegList);\\n        };\\n        window.SVGPathSegClosePath.prototype = Object.create(window.SVGPathSeg.prototype);\\n        window.SVGPathSegClosePath.prototype.toString = function () {\\n            return \\\"[object SVGPathSegClosePath]\\\";\\n        };\\n        window.SVGPathSegClosePath.prototype._asPathString = function () {\\n            return this.pathSegTypeAsLetter;\\n        };\\n        window.SVGPathSegClosePath.prototype.clone = function () {\\n            return new window.SVGPathSegClosePath(undefined);\\n        };\\n\\n        window.SVGPathSegMovetoAbs = function (owningPathSegList, x, y) {\\n            window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_MOVETO_ABS, \\\"M\\\", owningPathSegList);\\n            this._x = x;\\n            this._y = y;\\n        };\\n        window.SVGPathSegMovetoAbs.prototype = Object.create(window.SVGPathSeg.prototype);\\n        window.SVGPathSegMovetoAbs.prototype.toString = function () {\\n            return \\\"[object SVGPathSegMovetoAbs]\\\";\\n        };\\n        window.SVGPathSegMovetoAbs.prototype._asPathString = function () {\\n            return this.pathSegTypeAsLetter + \\\" \\\" + this._x + \\\" \\\" + this._y;\\n        };\\n        window.SVGPathSegMovetoAbs.prototype.clone = function () {\\n            return new window.SVGPathSegMovetoAbs(undefined, this._x, this._y);\\n        };\\n        Object.defineProperty(window.SVGPathSegMovetoAbs.prototype, \\\"x\\\", { get: function get() {\\n                return this._x;\\n            }, set: function set(x) {\\n                this._x = x;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegMovetoAbs.prototype, \\\"y\\\", { get: function get() {\\n                return this._y;\\n            }, set: function set(y) {\\n                this._y = y;this._segmentChanged();\\n            }, enumerable: true });\\n\\n        window.SVGPathSegMovetoRel = function (owningPathSegList, x, y) {\\n            window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_MOVETO_REL, \\\"m\\\", owningPathSegList);\\n            this._x = x;\\n            this._y = y;\\n        };\\n        window.SVGPathSegMovetoRel.prototype = Object.create(window.SVGPathSeg.prototype);\\n        window.SVGPathSegMovetoRel.prototype.toString = function () {\\n            return \\\"[object SVGPathSegMovetoRel]\\\";\\n        };\\n        window.SVGPathSegMovetoRel.prototype._asPathString = function () {\\n            return this.pathSegTypeAsLetter + \\\" \\\" + this._x + \\\" \\\" + this._y;\\n        };\\n        window.SVGPathSegMovetoRel.prototype.clone = function () {\\n            return new window.SVGPathSegMovetoRel(undefined, this._x, this._y);\\n        };\\n        Object.defineProperty(window.SVGPathSegMovetoRel.prototype, \\\"x\\\", { get: function get() {\\n                return this._x;\\n            }, set: function set(x) {\\n                this._x = x;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegMovetoRel.prototype, \\\"y\\\", { get: function get() {\\n                return this._y;\\n            }, set: function set(y) {\\n                this._y = y;this._segmentChanged();\\n            }, enumerable: true });\\n\\n        window.SVGPathSegLinetoAbs = function (owningPathSegList, x, y) {\\n            window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_ABS, \\\"L\\\", owningPathSegList);\\n            this._x = x;\\n            this._y = y;\\n        };\\n        window.SVGPathSegLinetoAbs.prototype = Object.create(window.SVGPathSeg.prototype);\\n        window.SVGPathSegLinetoAbs.prototype.toString = function () {\\n            return \\\"[object SVGPathSegLinetoAbs]\\\";\\n        };\\n        window.SVGPathSegLinetoAbs.prototype._asPathString = function () {\\n            return this.pathSegTypeAsLetter + \\\" \\\" + this._x + \\\" \\\" + this._y;\\n        };\\n        window.SVGPathSegLinetoAbs.prototype.clone = function () {\\n            return new window.SVGPathSegLinetoAbs(undefined, this._x, this._y);\\n        };\\n        Object.defineProperty(window.SVGPathSegLinetoAbs.prototype, \\\"x\\\", { get: function get() {\\n                return this._x;\\n            }, set: function set(x) {\\n                this._x = x;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegLinetoAbs.prototype, \\\"y\\\", { get: function get() {\\n                return this._y;\\n            }, set: function set(y) {\\n                this._y = y;this._segmentChanged();\\n            }, enumerable: true });\\n\\n        window.SVGPathSegLinetoRel = function (owningPathSegList, x, y) {\\n            window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_REL, \\\"l\\\", owningPathSegList);\\n            this._x = x;\\n            this._y = y;\\n        };\\n        window.SVGPathSegLinetoRel.prototype = Object.create(window.SVGPathSeg.prototype);\\n        window.SVGPathSegLinetoRel.prototype.toString = function () {\\n            return \\\"[object SVGPathSegLinetoRel]\\\";\\n        };\\n        window.SVGPathSegLinetoRel.prototype._asPathString = function () {\\n            return this.pathSegTypeAsLetter + \\\" \\\" + this._x + \\\" \\\" + this._y;\\n        };\\n        window.SVGPathSegLinetoRel.prototype.clone = function () {\\n            return new window.SVGPathSegLinetoRel(undefined, this._x, this._y);\\n        };\\n        Object.defineProperty(window.SVGPathSegLinetoRel.prototype, \\\"x\\\", { get: function get() {\\n                return this._x;\\n            }, set: function set(x) {\\n                this._x = x;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegLinetoRel.prototype, \\\"y\\\", { get: function get() {\\n                return this._y;\\n            }, set: function set(y) {\\n                this._y = y;this._segmentChanged();\\n            }, enumerable: true });\\n\\n        window.SVGPathSegCurvetoCubicAbs = function (owningPathSegList, x, y, x1, y1, x2, y2) {\\n            window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS, \\\"C\\\", owningPathSegList);\\n            this._x = x;\\n            this._y = y;\\n            this._x1 = x1;\\n            this._y1 = y1;\\n            this._x2 = x2;\\n            this._y2 = y2;\\n        };\\n        window.SVGPathSegCurvetoCubicAbs.prototype = Object.create(window.SVGPathSeg.prototype);\\n        window.SVGPathSegCurvetoCubicAbs.prototype.toString = function () {\\n            return \\\"[object SVGPathSegCurvetoCubicAbs]\\\";\\n        };\\n        window.SVGPathSegCurvetoCubicAbs.prototype._asPathString = function () {\\n            return this.pathSegTypeAsLetter + \\\" \\\" + this._x1 + \\\" \\\" + this._y1 + \\\" \\\" + this._x2 + \\\" \\\" + this._y2 + \\\" \\\" + this._x + \\\" \\\" + this._y;\\n        };\\n        window.SVGPathSegCurvetoCubicAbs.prototype.clone = function () {\\n            return new window.SVGPathSegCurvetoCubicAbs(undefined, this._x, this._y, this._x1, this._y1, this._x2, this._y2);\\n        };\\n        Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, \\\"x\\\", { get: function get() {\\n                return this._x;\\n            }, set: function set(x) {\\n                this._x = x;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, \\\"y\\\", { get: function get() {\\n                return this._y;\\n            }, set: function set(y) {\\n                this._y = y;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, \\\"x1\\\", { get: function get() {\\n                return this._x1;\\n            }, set: function set(x1) {\\n                this._x1 = x1;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, \\\"y1\\\", { get: function get() {\\n                return this._y1;\\n            }, set: function set(y1) {\\n                this._y1 = y1;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, \\\"x2\\\", { get: function get() {\\n                return this._x2;\\n            }, set: function set(x2) {\\n                this._x2 = x2;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, \\\"y2\\\", { get: function get() {\\n                return this._y2;\\n            }, set: function set(y2) {\\n                this._y2 = y2;this._segmentChanged();\\n            }, enumerable: true });\\n\\n        window.SVGPathSegCurvetoCubicRel = function (owningPathSegList, x, y, x1, y1, x2, y2) {\\n            window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL, \\\"c\\\", owningPathSegList);\\n            this._x = x;\\n            this._y = y;\\n            this._x1 = x1;\\n            this._y1 = y1;\\n            this._x2 = x2;\\n            this._y2 = y2;\\n        };\\n        window.SVGPathSegCurvetoCubicRel.prototype = Object.create(window.SVGPathSeg.prototype);\\n        window.SVGPathSegCurvetoCubicRel.prototype.toString = function () {\\n            return \\\"[object SVGPathSegCurvetoCubicRel]\\\";\\n        };\\n        window.SVGPathSegCurvetoCubicRel.prototype._asPathString = function () {\\n            return this.pathSegTypeAsLetter + \\\" \\\" + this._x1 + \\\" \\\" + this._y1 + \\\" \\\" + this._x2 + \\\" \\\" + this._y2 + \\\" \\\" + this._x + \\\" \\\" + this._y;\\n        };\\n        window.SVGPathSegCurvetoCubicRel.prototype.clone = function () {\\n            return new window.SVGPathSegCurvetoCubicRel(undefined, this._x, this._y, this._x1, this._y1, this._x2, this._y2);\\n        };\\n        Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, \\\"x\\\", { get: function get() {\\n                return this._x;\\n            }, set: function set(x) {\\n                this._x = x;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, \\\"y\\\", { get: function get() {\\n                return this._y;\\n            }, set: function set(y) {\\n                this._y = y;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, \\\"x1\\\", { get: function get() {\\n                return this._x1;\\n            }, set: function set(x1) {\\n                this._x1 = x1;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, \\\"y1\\\", { get: function get() {\\n                return this._y1;\\n            }, set: function set(y1) {\\n                this._y1 = y1;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, \\\"x2\\\", { get: function get() {\\n                return this._x2;\\n            }, set: function set(x2) {\\n                this._x2 = x2;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, \\\"y2\\\", { get: function get() {\\n                return this._y2;\\n            }, set: function set(y2) {\\n                this._y2 = y2;this._segmentChanged();\\n            }, enumerable: true });\\n\\n        window.SVGPathSegCurvetoQuadraticAbs = function (owningPathSegList, x, y, x1, y1) {\\n            window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS, \\\"Q\\\", owningPathSegList);\\n            this._x = x;\\n            this._y = y;\\n            this._x1 = x1;\\n            this._y1 = y1;\\n        };\\n        window.SVGPathSegCurvetoQuadraticAbs.prototype = Object.create(window.SVGPathSeg.prototype);\\n        window.SVGPathSegCurvetoQuadraticAbs.prototype.toString = function () {\\n            return \\\"[object SVGPathSegCurvetoQuadraticAbs]\\\";\\n        };\\n        window.SVGPathSegCurvetoQuadraticAbs.prototype._asPathString = function () {\\n            return this.pathSegTypeAsLetter + \\\" \\\" + this._x1 + \\\" \\\" + this._y1 + \\\" \\\" + this._x + \\\" \\\" + this._y;\\n        };\\n        window.SVGPathSegCurvetoQuadraticAbs.prototype.clone = function () {\\n            return new window.SVGPathSegCurvetoQuadraticAbs(undefined, this._x, this._y, this._x1, this._y1);\\n        };\\n        Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype, \\\"x\\\", { get: function get() {\\n                return this._x;\\n            }, set: function set(x) {\\n                this._x = x;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype, \\\"y\\\", { get: function get() {\\n                return this._y;\\n            }, set: function set(y) {\\n                this._y = y;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype, \\\"x1\\\", { get: function get() {\\n                return this._x1;\\n            }, set: function set(x1) {\\n                this._x1 = x1;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype, \\\"y1\\\", { get: function get() {\\n                return this._y1;\\n            }, set: function set(y1) {\\n                this._y1 = y1;this._segmentChanged();\\n            }, enumerable: true });\\n\\n        window.SVGPathSegCurvetoQuadraticRel = function (owningPathSegList, x, y, x1, y1) {\\n            window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL, \\\"q\\\", owningPathSegList);\\n            this._x = x;\\n            this._y = y;\\n            this._x1 = x1;\\n            this._y1 = y1;\\n        };\\n        window.SVGPathSegCurvetoQuadraticRel.prototype = Object.create(window.SVGPathSeg.prototype);\\n        window.SVGPathSegCurvetoQuadraticRel.prototype.toString = function () {\\n            return \\\"[object SVGPathSegCurvetoQuadraticRel]\\\";\\n        };\\n        window.SVGPathSegCurvetoQuadraticRel.prototype._asPathString = function () {\\n            return this.pathSegTypeAsLetter + \\\" \\\" + this._x1 + \\\" \\\" + this._y1 + \\\" \\\" + this._x + \\\" \\\" + this._y;\\n        };\\n        window.SVGPathSegCurvetoQuadraticRel.prototype.clone = function () {\\n            return new window.SVGPathSegCurvetoQuadraticRel(undefined, this._x, this._y, this._x1, this._y1);\\n        };\\n        Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype, \\\"x\\\", { get: function get() {\\n                return this._x;\\n            }, set: function set(x) {\\n                this._x = x;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype, \\\"y\\\", { get: function get() {\\n                return this._y;\\n            }, set: function set(y) {\\n                this._y = y;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype, \\\"x1\\\", { get: function get() {\\n                return this._x1;\\n            }, set: function set(x1) {\\n                this._x1 = x1;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype, \\\"y1\\\", { get: function get() {\\n                return this._y1;\\n            }, set: function set(y1) {\\n                this._y1 = y1;this._segmentChanged();\\n            }, enumerable: true });\\n\\n        window.SVGPathSegArcAbs = function (owningPathSegList, x, y, r1, r2, angle, largeArcFlag, sweepFlag) {\\n            window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_ARC_ABS, \\\"A\\\", owningPathSegList);\\n            this._x = x;\\n            this._y = y;\\n            this._r1 = r1;\\n            this._r2 = r2;\\n            this._angle = angle;\\n            this._largeArcFlag = largeArcFlag;\\n            this._sweepFlag = sweepFlag;\\n        };\\n        window.SVGPathSegArcAbs.prototype = Object.create(window.SVGPathSeg.prototype);\\n        window.SVGPathSegArcAbs.prototype.toString = function () {\\n            return \\\"[object SVGPathSegArcAbs]\\\";\\n        };\\n        window.SVGPathSegArcAbs.prototype._asPathString = function () {\\n            return this.pathSegTypeAsLetter + \\\" \\\" + this._r1 + \\\" \\\" + this._r2 + \\\" \\\" + this._angle + \\\" \\\" + (this._largeArcFlag ? \\\"1\\\" : \\\"0\\\") + \\\" \\\" + (this._sweepFlag ? \\\"1\\\" : \\\"0\\\") + \\\" \\\" + this._x + \\\" \\\" + this._y;\\n        };\\n        window.SVGPathSegArcAbs.prototype.clone = function () {\\n            return new window.SVGPathSegArcAbs(undefined, this._x, this._y, this._r1, this._r2, this._angle, this._largeArcFlag, this._sweepFlag);\\n        };\\n        Object.defineProperty(window.SVGPathSegArcAbs.prototype, \\\"x\\\", { get: function get() {\\n                return this._x;\\n            }, set: function set(x) {\\n                this._x = x;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegArcAbs.prototype, \\\"y\\\", { get: function get() {\\n                return this._y;\\n            }, set: function set(y) {\\n                this._y = y;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegArcAbs.prototype, \\\"r1\\\", { get: function get() {\\n                return this._r1;\\n            }, set: function set(r1) {\\n                this._r1 = r1;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegArcAbs.prototype, \\\"r2\\\", { get: function get() {\\n                return this._r2;\\n            }, set: function set(r2) {\\n                this._r2 = r2;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegArcAbs.prototype, \\\"angle\\\", { get: function get() {\\n                return this._angle;\\n            }, set: function set(angle) {\\n                this._angle = angle;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegArcAbs.prototype, \\\"largeArcFlag\\\", { get: function get() {\\n                return this._largeArcFlag;\\n            }, set: function set(largeArcFlag) {\\n                this._largeArcFlag = largeArcFlag;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegArcAbs.prototype, \\\"sweepFlag\\\", { get: function get() {\\n                return this._sweepFlag;\\n            }, set: function set(sweepFlag) {\\n                this._sweepFlag = sweepFlag;this._segmentChanged();\\n            }, enumerable: true });\\n\\n        window.SVGPathSegArcRel = function (owningPathSegList, x, y, r1, r2, angle, largeArcFlag, sweepFlag) {\\n            window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_ARC_REL, \\\"a\\\", owningPathSegList);\\n            this._x = x;\\n            this._y = y;\\n            this._r1 = r1;\\n            this._r2 = r2;\\n            this._angle = angle;\\n            this._largeArcFlag = largeArcFlag;\\n            this._sweepFlag = sweepFlag;\\n        };\\n        window.SVGPathSegArcRel.prototype = Object.create(window.SVGPathSeg.prototype);\\n        window.SVGPathSegArcRel.prototype.toString = function () {\\n            return \\\"[object SVGPathSegArcRel]\\\";\\n        };\\n        window.SVGPathSegArcRel.prototype._asPathString = function () {\\n            return this.pathSegTypeAsLetter + \\\" \\\" + this._r1 + \\\" \\\" + this._r2 + \\\" \\\" + this._angle + \\\" \\\" + (this._largeArcFlag ? \\\"1\\\" : \\\"0\\\") + \\\" \\\" + (this._sweepFlag ? \\\"1\\\" : \\\"0\\\") + \\\" \\\" + this._x + \\\" \\\" + this._y;\\n        };\\n        window.SVGPathSegArcRel.prototype.clone = function () {\\n            return new window.SVGPathSegArcRel(undefined, this._x, this._y, this._r1, this._r2, this._angle, this._largeArcFlag, this._sweepFlag);\\n        };\\n        Object.defineProperty(window.SVGPathSegArcRel.prototype, \\\"x\\\", { get: function get() {\\n                return this._x;\\n            }, set: function set(x) {\\n                this._x = x;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegArcRel.prototype, \\\"y\\\", { get: function get() {\\n                return this._y;\\n            }, set: function set(y) {\\n                this._y = y;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegArcRel.prototype, \\\"r1\\\", { get: function get() {\\n                return this._r1;\\n            }, set: function set(r1) {\\n                this._r1 = r1;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegArcRel.prototype, \\\"r2\\\", { get: function get() {\\n                return this._r2;\\n            }, set: function set(r2) {\\n                this._r2 = r2;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegArcRel.prototype, \\\"angle\\\", { get: function get() {\\n                return this._angle;\\n            }, set: function set(angle) {\\n                this._angle = angle;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegArcRel.prototype, \\\"largeArcFlag\\\", { get: function get() {\\n                return this._largeArcFlag;\\n            }, set: function set(largeArcFlag) {\\n                this._largeArcFlag = largeArcFlag;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegArcRel.prototype, \\\"sweepFlag\\\", { get: function get() {\\n                return this._sweepFlag;\\n            }, set: function set(sweepFlag) {\\n                this._sweepFlag = sweepFlag;this._segmentChanged();\\n            }, enumerable: true });\\n\\n        window.SVGPathSegLinetoHorizontalAbs = function (owningPathSegList, x) {\\n            window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS, \\\"H\\\", owningPathSegList);\\n            this._x = x;\\n        };\\n        window.SVGPathSegLinetoHorizontalAbs.prototype = Object.create(window.SVGPathSeg.prototype);\\n        window.SVGPathSegLinetoHorizontalAbs.prototype.toString = function () {\\n            return \\\"[object SVGPathSegLinetoHorizontalAbs]\\\";\\n        };\\n        window.SVGPathSegLinetoHorizontalAbs.prototype._asPathString = function () {\\n            return this.pathSegTypeAsLetter + \\\" \\\" + this._x;\\n        };\\n        window.SVGPathSegLinetoHorizontalAbs.prototype.clone = function () {\\n            return new window.SVGPathSegLinetoHorizontalAbs(undefined, this._x);\\n        };\\n        Object.defineProperty(window.SVGPathSegLinetoHorizontalAbs.prototype, \\\"x\\\", { get: function get() {\\n                return this._x;\\n            }, set: function set(x) {\\n                this._x = x;this._segmentChanged();\\n            }, enumerable: true });\\n\\n        window.SVGPathSegLinetoHorizontalRel = function (owningPathSegList, x) {\\n            window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL, \\\"h\\\", owningPathSegList);\\n            this._x = x;\\n        };\\n        window.SVGPathSegLinetoHorizontalRel.prototype = Object.create(window.SVGPathSeg.prototype);\\n        window.SVGPathSegLinetoHorizontalRel.prototype.toString = function () {\\n            return \\\"[object SVGPathSegLinetoHorizontalRel]\\\";\\n        };\\n        window.SVGPathSegLinetoHorizontalRel.prototype._asPathString = function () {\\n            return this.pathSegTypeAsLetter + \\\" \\\" + this._x;\\n        };\\n        window.SVGPathSegLinetoHorizontalRel.prototype.clone = function () {\\n            return new window.SVGPathSegLinetoHorizontalRel(undefined, this._x);\\n        };\\n        Object.defineProperty(window.SVGPathSegLinetoHorizontalRel.prototype, \\\"x\\\", { get: function get() {\\n                return this._x;\\n            }, set: function set(x) {\\n                this._x = x;this._segmentChanged();\\n            }, enumerable: true });\\n\\n        window.SVGPathSegLinetoVerticalAbs = function (owningPathSegList, y) {\\n            window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS, \\\"V\\\", owningPathSegList);\\n            this._y = y;\\n        };\\n        window.SVGPathSegLinetoVerticalAbs.prototype = Object.create(window.SVGPathSeg.prototype);\\n        window.SVGPathSegLinetoVerticalAbs.prototype.toString = function () {\\n            return \\\"[object SVGPathSegLinetoVerticalAbs]\\\";\\n        };\\n        window.SVGPathSegLinetoVerticalAbs.prototype._asPathString = function () {\\n            return this.pathSegTypeAsLetter + \\\" \\\" + this._y;\\n        };\\n        window.SVGPathSegLinetoVerticalAbs.prototype.clone = function () {\\n            return new window.SVGPathSegLinetoVerticalAbs(undefined, this._y);\\n        };\\n        Object.defineProperty(window.SVGPathSegLinetoVerticalAbs.prototype, \\\"y\\\", { get: function get() {\\n                return this._y;\\n            }, set: function set(y) {\\n                this._y = y;this._segmentChanged();\\n            }, enumerable: true });\\n\\n        window.SVGPathSegLinetoVerticalRel = function (owningPathSegList, y) {\\n            window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL, \\\"v\\\", owningPathSegList);\\n            this._y = y;\\n        };\\n        window.SVGPathSegLinetoVerticalRel.prototype = Object.create(window.SVGPathSeg.prototype);\\n        window.SVGPathSegLinetoVerticalRel.prototype.toString = function () {\\n            return \\\"[object SVGPathSegLinetoVerticalRel]\\\";\\n        };\\n        window.SVGPathSegLinetoVerticalRel.prototype._asPathString = function () {\\n            return this.pathSegTypeAsLetter + \\\" \\\" + this._y;\\n        };\\n        window.SVGPathSegLinetoVerticalRel.prototype.clone = function () {\\n            return new window.SVGPathSegLinetoVerticalRel(undefined, this._y);\\n        };\\n        Object.defineProperty(window.SVGPathSegLinetoVerticalRel.prototype, \\\"y\\\", { get: function get() {\\n                return this._y;\\n            }, set: function set(y) {\\n                this._y = y;this._segmentChanged();\\n            }, enumerable: true });\\n\\n        window.SVGPathSegCurvetoCubicSmoothAbs = function (owningPathSegList, x, y, x2, y2) {\\n            window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS, \\\"S\\\", owningPathSegList);\\n            this._x = x;\\n            this._y = y;\\n            this._x2 = x2;\\n            this._y2 = y2;\\n        };\\n        window.SVGPathSegCurvetoCubicSmoothAbs.prototype = Object.create(window.SVGPathSeg.prototype);\\n        window.SVGPathSegCurvetoCubicSmoothAbs.prototype.toString = function () {\\n            return \\\"[object SVGPathSegCurvetoCubicSmoothAbs]\\\";\\n        };\\n        window.SVGPathSegCurvetoCubicSmoothAbs.prototype._asPathString = function () {\\n            return this.pathSegTypeAsLetter + \\\" \\\" + this._x2 + \\\" \\\" + this._y2 + \\\" \\\" + this._x + \\\" \\\" + this._y;\\n        };\\n        window.SVGPathSegCurvetoCubicSmoothAbs.prototype.clone = function () {\\n            return new window.SVGPathSegCurvetoCubicSmoothAbs(undefined, this._x, this._y, this._x2, this._y2);\\n        };\\n        Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype, \\\"x\\\", { get: function get() {\\n                return this._x;\\n            }, set: function set(x) {\\n                this._x = x;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype, \\\"y\\\", { get: function get() {\\n                return this._y;\\n            }, set: function set(y) {\\n                this._y = y;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype, \\\"x2\\\", { get: function get() {\\n                return this._x2;\\n            }, set: function set(x2) {\\n                this._x2 = x2;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype, \\\"y2\\\", { get: function get() {\\n                return this._y2;\\n            }, set: function set(y2) {\\n                this._y2 = y2;this._segmentChanged();\\n            }, enumerable: true });\\n\\n        window.SVGPathSegCurvetoCubicSmoothRel = function (owningPathSegList, x, y, x2, y2) {\\n            window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL, \\\"s\\\", owningPathSegList);\\n            this._x = x;\\n            this._y = y;\\n            this._x2 = x2;\\n            this._y2 = y2;\\n        };\\n        window.SVGPathSegCurvetoCubicSmoothRel.prototype = Object.create(window.SVGPathSeg.prototype);\\n        window.SVGPathSegCurvetoCubicSmoothRel.prototype.toString = function () {\\n            return \\\"[object SVGPathSegCurvetoCubicSmoothRel]\\\";\\n        };\\n        window.SVGPathSegCurvetoCubicSmoothRel.prototype._asPathString = function () {\\n            return this.pathSegTypeAsLetter + \\\" \\\" + this._x2 + \\\" \\\" + this._y2 + \\\" \\\" + this._x + \\\" \\\" + this._y;\\n        };\\n        window.SVGPathSegCurvetoCubicSmoothRel.prototype.clone = function () {\\n            return new window.SVGPathSegCurvetoCubicSmoothRel(undefined, this._x, this._y, this._x2, this._y2);\\n        };\\n        Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype, \\\"x\\\", { get: function get() {\\n                return this._x;\\n            }, set: function set(x) {\\n                this._x = x;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype, \\\"y\\\", { get: function get() {\\n                return this._y;\\n            }, set: function set(y) {\\n                this._y = y;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype, \\\"x2\\\", { get: function get() {\\n                return this._x2;\\n            }, set: function set(x2) {\\n                this._x2 = x2;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype, \\\"y2\\\", { get: function get() {\\n                return this._y2;\\n            }, set: function set(y2) {\\n                this._y2 = y2;this._segmentChanged();\\n            }, enumerable: true });\\n\\n        window.SVGPathSegCurvetoQuadraticSmoothAbs = function (owningPathSegList, x, y) {\\n            window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS, \\\"T\\\", owningPathSegList);\\n            this._x = x;\\n            this._y = y;\\n        };\\n        window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype = Object.create(window.SVGPathSeg.prototype);\\n        window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.toString = function () {\\n            return \\\"[object SVGPathSegCurvetoQuadraticSmoothAbs]\\\";\\n        };\\n        window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype._asPathString = function () {\\n            return this.pathSegTypeAsLetter + \\\" \\\" + this._x + \\\" \\\" + this._y;\\n        };\\n        window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.clone = function () {\\n            return new window.SVGPathSegCurvetoQuadraticSmoothAbs(undefined, this._x, this._y);\\n        };\\n        Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype, \\\"x\\\", { get: function get() {\\n                return this._x;\\n            }, set: function set(x) {\\n                this._x = x;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype, \\\"y\\\", { get: function get() {\\n                return this._y;\\n            }, set: function set(y) {\\n                this._y = y;this._segmentChanged();\\n            }, enumerable: true });\\n\\n        window.SVGPathSegCurvetoQuadraticSmoothRel = function (owningPathSegList, x, y) {\\n            window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL, \\\"t\\\", owningPathSegList);\\n            this._x = x;\\n            this._y = y;\\n        };\\n        window.SVGPathSegCurvetoQuadraticSmoothRel.prototype = Object.create(window.SVGPathSeg.prototype);\\n        window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.toString = function () {\\n            return \\\"[object SVGPathSegCurvetoQuadraticSmoothRel]\\\";\\n        };\\n        window.SVGPathSegCurvetoQuadraticSmoothRel.prototype._asPathString = function () {\\n            return this.pathSegTypeAsLetter + \\\" \\\" + this._x + \\\" \\\" + this._y;\\n        };\\n        window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.clone = function () {\\n            return new window.SVGPathSegCurvetoQuadraticSmoothRel(undefined, this._x, this._y);\\n        };\\n        Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype, \\\"x\\\", { get: function get() {\\n                return this._x;\\n            }, set: function set(x) {\\n                this._x = x;this._segmentChanged();\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype, \\\"y\\\", { get: function get() {\\n                return this._y;\\n            }, set: function set(y) {\\n                this._y = y;this._segmentChanged();\\n            }, enumerable: true });\\n\\n        // Add createSVGPathSeg* functions to window.SVGPathElement.\\n        // Spec: http://www.w3.org/TR/SVG11/single-page.html#paths-Interfacewindow.SVGPathElement.\\n        window.SVGPathElement.prototype.createSVGPathSegClosePath = function () {\\n            return new window.SVGPathSegClosePath(undefined);\\n        };\\n        window.SVGPathElement.prototype.createSVGPathSegMovetoAbs = function (x, y) {\\n            return new window.SVGPathSegMovetoAbs(undefined, x, y);\\n        };\\n        window.SVGPathElement.prototype.createSVGPathSegMovetoRel = function (x, y) {\\n            return new window.SVGPathSegMovetoRel(undefined, x, y);\\n        };\\n        window.SVGPathElement.prototype.createSVGPathSegLinetoAbs = function (x, y) {\\n            return new window.SVGPathSegLinetoAbs(undefined, x, y);\\n        };\\n        window.SVGPathElement.prototype.createSVGPathSegLinetoRel = function (x, y) {\\n            return new window.SVGPathSegLinetoRel(undefined, x, y);\\n        };\\n        window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs = function (x, y, x1, y1, x2, y2) {\\n            return new window.SVGPathSegCurvetoCubicAbs(undefined, x, y, x1, y1, x2, y2);\\n        };\\n        window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel = function (x, y, x1, y1, x2, y2) {\\n            return new window.SVGPathSegCurvetoCubicRel(undefined, x, y, x1, y1, x2, y2);\\n        };\\n        window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs = function (x, y, x1, y1) {\\n            return new window.SVGPathSegCurvetoQuadraticAbs(undefined, x, y, x1, y1);\\n        };\\n        window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel = function (x, y, x1, y1) {\\n            return new window.SVGPathSegCurvetoQuadraticRel(undefined, x, y, x1, y1);\\n        };\\n        window.SVGPathElement.prototype.createSVGPathSegArcAbs = function (x, y, r1, r2, angle, largeArcFlag, sweepFlag) {\\n            return new window.SVGPathSegArcAbs(undefined, x, y, r1, r2, angle, largeArcFlag, sweepFlag);\\n        };\\n        window.SVGPathElement.prototype.createSVGPathSegArcRel = function (x, y, r1, r2, angle, largeArcFlag, sweepFlag) {\\n            return new window.SVGPathSegArcRel(undefined, x, y, r1, r2, angle, largeArcFlag, sweepFlag);\\n        };\\n        window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs = function (x) {\\n            return new window.SVGPathSegLinetoHorizontalAbs(undefined, x);\\n        };\\n        window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel = function (x) {\\n            return new window.SVGPathSegLinetoHorizontalRel(undefined, x);\\n        };\\n        window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs = function (y) {\\n            return new window.SVGPathSegLinetoVerticalAbs(undefined, y);\\n        };\\n        window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel = function (y) {\\n            return new window.SVGPathSegLinetoVerticalRel(undefined, y);\\n        };\\n        window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs = function (x, y, x2, y2) {\\n            return new window.SVGPathSegCurvetoCubicSmoothAbs(undefined, x, y, x2, y2);\\n        };\\n        window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel = function (x, y, x2, y2) {\\n            return new window.SVGPathSegCurvetoCubicSmoothRel(undefined, x, y, x2, y2);\\n        };\\n        window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs = function (x, y) {\\n            return new window.SVGPathSegCurvetoQuadraticSmoothAbs(undefined, x, y);\\n        };\\n        window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel = function (x, y) {\\n            return new window.SVGPathSegCurvetoQuadraticSmoothRel(undefined, x, y);\\n        };\\n\\n        if (!(\\\"getPathSegAtLength\\\" in window.SVGPathElement.prototype)) {\\n            // Add getPathSegAtLength to SVGPathElement.\\n            // Spec: https://www.w3.org/TR/SVG11/single-page.html#paths-__svg__SVGPathElement__getPathSegAtLength\\n            // This polyfill requires SVGPathElement.getTotalLength to implement the distance-along-a-path algorithm.\\n            window.SVGPathElement.prototype.getPathSegAtLength = function (distance) {\\n                if (distance === undefined || !isFinite(distance)) throw \\\"Invalid arguments.\\\";\\n\\n                var measurementElement = document.createElementNS(\\\"http://www.w3.org/2000/svg\\\", \\\"path\\\");\\n                measurementElement.setAttribute(\\\"d\\\", this.getAttribute(\\\"d\\\"));\\n                var lastPathSegment = measurementElement.pathSegList.numberOfItems - 1;\\n\\n                // If the path is empty, return 0.\\n                if (lastPathSegment <= 0) return 0;\\n\\n                do {\\n                    measurementElement.pathSegList.removeItem(lastPathSegment);\\n                    if (distance > measurementElement.getTotalLength()) break;\\n                    lastPathSegment--;\\n                } while (lastPathSegment > 0);\\n                return lastPathSegment;\\n            };\\n        }\\n    }\\n\\n    if (!(\\\"SVGPathSegList\\\" in window)) {\\n        // Spec: http://www.w3.org/TR/SVG11/single-page.html#paths-InterfaceSVGPathSegList\\n        window.SVGPathSegList = function (pathElement) {\\n            this._pathElement = pathElement;\\n            this._list = this._parsePath(this._pathElement.getAttribute(\\\"d\\\"));\\n\\n            // Use a MutationObserver to catch changes to the path's \\\"d\\\" attribute.\\n            this._mutationObserverConfig = { \\\"attributes\\\": true, \\\"attributeFilter\\\": [\\\"d\\\"] };\\n            this._pathElementMutationObserver = new MutationObserver(this._updateListFromPathMutations.bind(this));\\n            this._pathElementMutationObserver.observe(this._pathElement, this._mutationObserverConfig);\\n        };\\n\\n        window.SVGPathSegList.prototype.classname = \\\"SVGPathSegList\\\";\\n\\n        Object.defineProperty(window.SVGPathSegList.prototype, \\\"numberOfItems\\\", {\\n            get: function get() {\\n                this._checkPathSynchronizedToList();\\n                return this._list.length;\\n            },\\n            enumerable: true\\n        });\\n\\n        // Add the pathSegList accessors to window.SVGPathElement.\\n        // Spec: http://www.w3.org/TR/SVG11/single-page.html#paths-InterfaceSVGAnimatedPathData\\n        Object.defineProperty(window.SVGPathElement.prototype, \\\"pathSegList\\\", {\\n            get: function get() {\\n                if (!this._pathSegList) this._pathSegList = new window.SVGPathSegList(this);\\n                return this._pathSegList;\\n            },\\n            enumerable: true\\n        });\\n        // FIXME: The following are not implemented and simply return window.SVGPathElement.pathSegList.\\n        Object.defineProperty(window.SVGPathElement.prototype, \\\"normalizedPathSegList\\\", { get: function get() {\\n                return this.pathSegList;\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathElement.prototype, \\\"animatedPathSegList\\\", { get: function get() {\\n                return this.pathSegList;\\n            }, enumerable: true });\\n        Object.defineProperty(window.SVGPathElement.prototype, \\\"animatedNormalizedPathSegList\\\", { get: function get() {\\n                return this.pathSegList;\\n            }, enumerable: true });\\n\\n        // Process any pending mutations to the path element and update the list as needed.\\n        // This should be the first call of all public functions and is needed because\\n        // MutationObservers are not synchronous so we can have pending asynchronous mutations.\\n        window.SVGPathSegList.prototype._checkPathSynchronizedToList = function () {\\n            this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords());\\n        };\\n\\n        window.SVGPathSegList.prototype._updateListFromPathMutations = function (mutationRecords) {\\n            if (!this._pathElement) return;\\n            var hasPathMutations = false;\\n            mutationRecords.forEach(function (record) {\\n                if (record.attributeName == \\\"d\\\") hasPathMutations = true;\\n            });\\n            if (hasPathMutations) this._list = this._parsePath(this._pathElement.getAttribute(\\\"d\\\"));\\n        };\\n\\n        // Serialize the list and update the path's 'd' attribute.\\n        window.SVGPathSegList.prototype._writeListToPath = function () {\\n            this._pathElementMutationObserver.disconnect();\\n            this._pathElement.setAttribute(\\\"d\\\", window.SVGPathSegList._pathSegArrayAsString(this._list));\\n            this._pathElementMutationObserver.observe(this._pathElement, this._mutationObserverConfig);\\n        };\\n\\n        // When a path segment changes the list needs to be synchronized back to the path element.\\n        window.SVGPathSegList.prototype.segmentChanged = function (pathSeg) {\\n            this._writeListToPath();\\n        };\\n\\n        window.SVGPathSegList.prototype.clear = function () {\\n            this._checkPathSynchronizedToList();\\n\\n            this._list.forEach(function (pathSeg) {\\n                pathSeg._owningPathSegList = null;\\n            });\\n            this._list = [];\\n            this._writeListToPath();\\n        };\\n\\n        window.SVGPathSegList.prototype.initialize = function (newItem) {\\n            this._checkPathSynchronizedToList();\\n\\n            this._list = [newItem];\\n            newItem._owningPathSegList = this;\\n            this._writeListToPath();\\n            return newItem;\\n        };\\n\\n        window.SVGPathSegList.prototype._checkValidIndex = function (index) {\\n            if (isNaN(index) || index < 0 || index >= this.numberOfItems) throw \\\"INDEX_SIZE_ERR\\\";\\n        };\\n\\n        window.SVGPathSegList.prototype.getItem = function (index) {\\n            this._checkPathSynchronizedToList();\\n\\n            this._checkValidIndex(index);\\n            return this._list[index];\\n        };\\n\\n        window.SVGPathSegList.prototype.insertItemBefore = function (newItem, index) {\\n            this._checkPathSynchronizedToList();\\n\\n            // Spec: If the index is greater than or equal to numberOfItems, then the new item is appended to the end of the list.\\n            if (index > this.numberOfItems) index = this.numberOfItems;\\n            if (newItem._owningPathSegList) {\\n                // SVG2 spec says to make a copy.\\n                newItem = newItem.clone();\\n            }\\n            this._list.splice(index, 0, newItem);\\n            newItem._owningPathSegList = this;\\n            this._writeListToPath();\\n            return newItem;\\n        };\\n\\n        window.SVGPathSegList.prototype.replaceItem = function (newItem, index) {\\n            this._checkPathSynchronizedToList();\\n\\n            if (newItem._owningPathSegList) {\\n                // SVG2 spec says to make a copy.\\n                newItem = newItem.clone();\\n            }\\n            this._checkValidIndex(index);\\n            this._list[index] = newItem;\\n            newItem._owningPathSegList = this;\\n            this._writeListToPath();\\n            return newItem;\\n        };\\n\\n        window.SVGPathSegList.prototype.removeItem = function (index) {\\n            this._checkPathSynchronizedToList();\\n\\n            this._checkValidIndex(index);\\n            var item = this._list[index];\\n            this._list.splice(index, 1);\\n            this._writeListToPath();\\n            return item;\\n        };\\n\\n        window.SVGPathSegList.prototype.appendItem = function (newItem) {\\n            this._checkPathSynchronizedToList();\\n\\n            if (newItem._owningPathSegList) {\\n                // SVG2 spec says to make a copy.\\n                newItem = newItem.clone();\\n            }\\n            this._list.push(newItem);\\n            newItem._owningPathSegList = this;\\n            // TODO: Optimize this to just append to the existing attribute.\\n            this._writeListToPath();\\n            return newItem;\\n        };\\n\\n        window.SVGPathSegList._pathSegArrayAsString = function (pathSegArray) {\\n            var string = \\\"\\\";\\n            var first = true;\\n            pathSegArray.forEach(function (pathSeg) {\\n                if (first) {\\n                    first = false;\\n                    string += pathSeg._asPathString();\\n                } else {\\n                    string += \\\" \\\" + pathSeg._asPathString();\\n                }\\n            });\\n            return string;\\n        };\\n\\n        // This closely follows SVGPathParser::parsePath from Source/core/svg/SVGPathParser.cpp.\\n        window.SVGPathSegList.prototype._parsePath = function (string) {\\n            if (!string || string.length == 0) return [];\\n\\n            var owningPathSegList = this;\\n\\n            var Builder = function Builder() {\\n                this.pathSegList = [];\\n            };\\n\\n            Builder.prototype.appendSegment = function (pathSeg) {\\n                this.pathSegList.push(pathSeg);\\n            };\\n\\n            var Source = function Source(string) {\\n                this._string = string;\\n                this._currentIndex = 0;\\n                this._endIndex = this._string.length;\\n                this._previousCommand = window.SVGPathSeg.PATHSEG_UNKNOWN;\\n\\n                this._skipOptionalSpaces();\\n            };\\n\\n            Source.prototype._isCurrentSpace = function () {\\n                var character = this._string[this._currentIndex];\\n                return character <= \\\" \\\" && (character == \\\" \\\" || character == \\\"\\\\n\\\" || character == \\\"\\\\t\\\" || character == \\\"\\\\r\\\" || character == \\\"\\\\f\\\");\\n            };\\n\\n            Source.prototype._skipOptionalSpaces = function () {\\n                while (this._currentIndex < this._endIndex && this._isCurrentSpace()) {\\n                    this._currentIndex++;\\n                }return this._currentIndex < this._endIndex;\\n            };\\n\\n            Source.prototype._skipOptionalSpacesOrDelimiter = function () {\\n                if (this._currentIndex < this._endIndex && !this._isCurrentSpace() && this._string.charAt(this._currentIndex) != \\\",\\\") return false;\\n                if (this._skipOptionalSpaces()) {\\n                    if (this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) == \\\",\\\") {\\n                        this._currentIndex++;\\n                        this._skipOptionalSpaces();\\n                    }\\n                }\\n                return this._currentIndex < this._endIndex;\\n            };\\n\\n            Source.prototype.hasMoreData = function () {\\n                return this._currentIndex < this._endIndex;\\n            };\\n\\n            Source.prototype.peekSegmentType = function () {\\n                var lookahead = this._string[this._currentIndex];\\n                return this._pathSegTypeFromChar(lookahead);\\n            };\\n\\n            Source.prototype._pathSegTypeFromChar = function (lookahead) {\\n                switch (lookahead) {\\n                    case \\\"Z\\\":\\n                    case \\\"z\\\":\\n                        return window.SVGPathSeg.PATHSEG_CLOSEPATH;\\n                    case \\\"M\\\":\\n                        return window.SVGPathSeg.PATHSEG_MOVETO_ABS;\\n                    case \\\"m\\\":\\n                        return window.SVGPathSeg.PATHSEG_MOVETO_REL;\\n                    case \\\"L\\\":\\n                        return window.SVGPathSeg.PATHSEG_LINETO_ABS;\\n                    case \\\"l\\\":\\n                        return window.SVGPathSeg.PATHSEG_LINETO_REL;\\n                    case \\\"C\\\":\\n                        return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS;\\n                    case \\\"c\\\":\\n                        return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL;\\n                    case \\\"Q\\\":\\n                        return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS;\\n                    case \\\"q\\\":\\n                        return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL;\\n                    case \\\"A\\\":\\n                        return window.SVGPathSeg.PATHSEG_ARC_ABS;\\n                    case \\\"a\\\":\\n                        return window.SVGPathSeg.PATHSEG_ARC_REL;\\n                    case \\\"H\\\":\\n                        return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS;\\n                    case \\\"h\\\":\\n                        return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL;\\n                    case \\\"V\\\":\\n                        return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS;\\n                    case \\\"v\\\":\\n                        return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL;\\n                    case \\\"S\\\":\\n                        return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS;\\n                    case \\\"s\\\":\\n                        return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL;\\n                    case \\\"T\\\":\\n                        return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS;\\n                    case \\\"t\\\":\\n                        return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL;\\n                    default:\\n                        return window.SVGPathSeg.PATHSEG_UNKNOWN;\\n                }\\n            };\\n\\n            Source.prototype._nextCommandHelper = function (lookahead, previousCommand) {\\n                // Check for remaining coordinates in the current command.\\n                if ((lookahead == \\\"+\\\" || lookahead == \\\"-\\\" || lookahead == \\\".\\\" || lookahead >= \\\"0\\\" && lookahead <= \\\"9\\\") && previousCommand != window.SVGPathSeg.PATHSEG_CLOSEPATH) {\\n                    if (previousCommand == window.SVGPathSeg.PATHSEG_MOVETO_ABS) return window.SVGPathSeg.PATHSEG_LINETO_ABS;\\n                    if (previousCommand == window.SVGPathSeg.PATHSEG_MOVETO_REL) return window.SVGPathSeg.PATHSEG_LINETO_REL;\\n                    return previousCommand;\\n                }\\n                return window.SVGPathSeg.PATHSEG_UNKNOWN;\\n            };\\n\\n            Source.prototype.initialCommandIsMoveTo = function () {\\n                // If the path is empty it is still valid, so return true.\\n                if (!this.hasMoreData()) return true;\\n                var command = this.peekSegmentType();\\n                // Path must start with moveTo.\\n                return command == window.SVGPathSeg.PATHSEG_MOVETO_ABS || command == window.SVGPathSeg.PATHSEG_MOVETO_REL;\\n            };\\n\\n            // Parse a number from an SVG path. This very closely follows genericParseNumber(...) from Source/core/svg/SVGParserUtilities.cpp.\\n            // Spec: http://www.w3.org/TR/SVG11/single-page.html#paths-PathDataBNF\\n            Source.prototype._parseNumber = function () {\\n                var exponent = 0;\\n                var integer = 0;\\n                var frac = 1;\\n                var decimal = 0;\\n                var sign = 1;\\n                var expsign = 1;\\n\\n                var startIndex = this._currentIndex;\\n\\n                this._skipOptionalSpaces();\\n\\n                // Read the sign.\\n                if (this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) == \\\"+\\\") this._currentIndex++;else if (this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) == \\\"-\\\") {\\n                    this._currentIndex++;\\n                    sign = -1;\\n                }\\n\\n                if (this._currentIndex == this._endIndex || (this._string.charAt(this._currentIndex) < \\\"0\\\" || this._string.charAt(this._currentIndex) > \\\"9\\\") && this._string.charAt(this._currentIndex) != \\\".\\\")\\n                    // The first character of a number must be one of [0-9+-.].\\n                    return undefined;\\n\\n                // Read the integer part, build right-to-left.\\n                var startIntPartIndex = this._currentIndex;\\n                while (this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) >= \\\"0\\\" && this._string.charAt(this._currentIndex) <= \\\"9\\\") {\\n                    this._currentIndex++;\\n                } // Advance to first non-digit.\\n\\n                if (this._currentIndex != startIntPartIndex) {\\n                    var scanIntPartIndex = this._currentIndex - 1;\\n                    var multiplier = 1;\\n                    while (scanIntPartIndex >= startIntPartIndex) {\\n                        integer += multiplier * (this._string.charAt(scanIntPartIndex--) - \\\"0\\\");\\n                        multiplier *= 10;\\n                    }\\n                }\\n\\n                // Read the decimals.\\n                if (this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) == \\\".\\\") {\\n                    this._currentIndex++;\\n\\n                    // There must be a least one digit following the .\\n                    if (this._currentIndex >= this._endIndex || this._string.charAt(this._currentIndex) < \\\"0\\\" || this._string.charAt(this._currentIndex) > \\\"9\\\") return undefined;\\n                    while (this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) >= \\\"0\\\" && this._string.charAt(this._currentIndex) <= \\\"9\\\") {\\n                        frac *= 10;\\n                        decimal += (this._string.charAt(this._currentIndex) - \\\"0\\\") / frac;\\n                        this._currentIndex += 1;\\n                    }\\n                }\\n\\n                // Read the exponent part.\\n                if (this._currentIndex != startIndex && this._currentIndex + 1 < this._endIndex && (this._string.charAt(this._currentIndex) == \\\"e\\\" || this._string.charAt(this._currentIndex) == \\\"E\\\") && this._string.charAt(this._currentIndex + 1) != \\\"x\\\" && this._string.charAt(this._currentIndex + 1) != \\\"m\\\") {\\n                    this._currentIndex++;\\n\\n                    // Read the sign of the exponent.\\n                    if (this._string.charAt(this._currentIndex) == \\\"+\\\") {\\n                        this._currentIndex++;\\n                    } else if (this._string.charAt(this._currentIndex) == \\\"-\\\") {\\n                        this._currentIndex++;\\n                        expsign = -1;\\n                    }\\n\\n                    // There must be an exponent.\\n                    if (this._currentIndex >= this._endIndex || this._string.charAt(this._currentIndex) < \\\"0\\\" || this._string.charAt(this._currentIndex) > \\\"9\\\") return undefined;\\n\\n                    while (this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) >= \\\"0\\\" && this._string.charAt(this._currentIndex) <= \\\"9\\\") {\\n                        exponent *= 10;\\n                        exponent += this._string.charAt(this._currentIndex) - \\\"0\\\";\\n                        this._currentIndex++;\\n                    }\\n                }\\n\\n                var number = integer + decimal;\\n                number *= sign;\\n\\n                if (exponent) number *= Math.pow(10, expsign * exponent);\\n\\n                if (startIndex == this._currentIndex) return undefined;\\n\\n                this._skipOptionalSpacesOrDelimiter();\\n\\n                return number;\\n            };\\n\\n            Source.prototype._parseArcFlag = function () {\\n                if (this._currentIndex >= this._endIndex) return undefined;\\n                var flag = false;\\n                var flagChar = this._string.charAt(this._currentIndex++);\\n                if (flagChar == \\\"0\\\") flag = false;else if (flagChar == \\\"1\\\") flag = true;else return undefined;\\n\\n                this._skipOptionalSpacesOrDelimiter();\\n                return flag;\\n            };\\n\\n            Source.prototype.parseSegment = function () {\\n                var lookahead = this._string[this._currentIndex];\\n                var command = this._pathSegTypeFromChar(lookahead);\\n                if (command == window.SVGPathSeg.PATHSEG_UNKNOWN) {\\n                    // Possibly an implicit command. Not allowed if this is the first command.\\n                    if (this._previousCommand == window.SVGPathSeg.PATHSEG_UNKNOWN) return null;\\n                    command = this._nextCommandHelper(lookahead, this._previousCommand);\\n                    if (command == window.SVGPathSeg.PATHSEG_UNKNOWN) return null;\\n                } else {\\n                    this._currentIndex++;\\n                }\\n\\n                this._previousCommand = command;\\n\\n                switch (command) {\\n                    case window.SVGPathSeg.PATHSEG_MOVETO_REL:\\n                        return new window.SVGPathSegMovetoRel(owningPathSegList, this._parseNumber(), this._parseNumber());\\n                    case window.SVGPathSeg.PATHSEG_MOVETO_ABS:\\n                        return new window.SVGPathSegMovetoAbs(owningPathSegList, this._parseNumber(), this._parseNumber());\\n                    case window.SVGPathSeg.PATHSEG_LINETO_REL:\\n                        return new window.SVGPathSegLinetoRel(owningPathSegList, this._parseNumber(), this._parseNumber());\\n                    case window.SVGPathSeg.PATHSEG_LINETO_ABS:\\n                        return new window.SVGPathSegLinetoAbs(owningPathSegList, this._parseNumber(), this._parseNumber());\\n                    case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:\\n                        return new window.SVGPathSegLinetoHorizontalRel(owningPathSegList, this._parseNumber());\\n                    case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:\\n                        return new window.SVGPathSegLinetoHorizontalAbs(owningPathSegList, this._parseNumber());\\n                    case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:\\n                        return new window.SVGPathSegLinetoVerticalRel(owningPathSegList, this._parseNumber());\\n                    case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:\\n                        return new window.SVGPathSegLinetoVerticalAbs(owningPathSegList, this._parseNumber());\\n                    case window.SVGPathSeg.PATHSEG_CLOSEPATH:\\n                        this._skipOptionalSpaces();\\n                        return new window.SVGPathSegClosePath(owningPathSegList);\\n                    case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:\\n                        var points = { x1: this._parseNumber(), y1: this._parseNumber(), x2: this._parseNumber(), y2: this._parseNumber(), x: this._parseNumber(), y: this._parseNumber() };\\n                        return new window.SVGPathSegCurvetoCubicRel(owningPathSegList, points.x, points.y, points.x1, points.y1, points.x2, points.y2);\\n                    case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:\\n                        var points = { x1: this._parseNumber(), y1: this._parseNumber(), x2: this._parseNumber(), y2: this._parseNumber(), x: this._parseNumber(), y: this._parseNumber() };\\n                        return new window.SVGPathSegCurvetoCubicAbs(owningPathSegList, points.x, points.y, points.x1, points.y1, points.x2, points.y2);\\n                    case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:\\n                        var points = { x2: this._parseNumber(), y2: this._parseNumber(), x: this._parseNumber(), y: this._parseNumber() };\\n                        return new window.SVGPathSegCurvetoCubicSmoothRel(owningPathSegList, points.x, points.y, points.x2, points.y2);\\n                    case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:\\n                        var points = { x2: this._parseNumber(), y2: this._parseNumber(), x: this._parseNumber(), y: this._parseNumber() };\\n                        return new window.SVGPathSegCurvetoCubicSmoothAbs(owningPathSegList, points.x, points.y, points.x2, points.y2);\\n                    case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:\\n                        var points = { x1: this._parseNumber(), y1: this._parseNumber(), x: this._parseNumber(), y: this._parseNumber() };\\n                        return new window.SVGPathSegCurvetoQuadraticRel(owningPathSegList, points.x, points.y, points.x1, points.y1);\\n                    case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:\\n                        var points = { x1: this._parseNumber(), y1: this._parseNumber(), x: this._parseNumber(), y: this._parseNumber() };\\n                        return new window.SVGPathSegCurvetoQuadraticAbs(owningPathSegList, points.x, points.y, points.x1, points.y1);\\n                    case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:\\n                        return new window.SVGPathSegCurvetoQuadraticSmoothRel(owningPathSegList, this._parseNumber(), this._parseNumber());\\n                    case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:\\n                        return new window.SVGPathSegCurvetoQuadraticSmoothAbs(owningPathSegList, this._parseNumber(), this._parseNumber());\\n                    case window.SVGPathSeg.PATHSEG_ARC_REL:\\n                        var points = { x1: this._parseNumber(), y1: this._parseNumber(), arcAngle: this._parseNumber(), arcLarge: this._parseArcFlag(), arcSweep: this._parseArcFlag(), x: this._parseNumber(), y: this._parseNumber() };\\n                        return new window.SVGPathSegArcRel(owningPathSegList, points.x, points.y, points.x1, points.y1, points.arcAngle, points.arcLarge, points.arcSweep);\\n                    case window.SVGPathSeg.PATHSEG_ARC_ABS:\\n                        var points = { x1: this._parseNumber(), y1: this._parseNumber(), arcAngle: this._parseNumber(), arcLarge: this._parseArcFlag(), arcSweep: this._parseArcFlag(), x: this._parseNumber(), y: this._parseNumber() };\\n                        return new window.SVGPathSegArcAbs(owningPathSegList, points.x, points.y, points.x1, points.y1, points.arcAngle, points.arcLarge, points.arcSweep);\\n                    default:\\n                        throw \\\"Unknown path seg type.\\\";\\n                }\\n            };\\n\\n            var builder = new Builder();\\n            var source = new Source(string);\\n\\n            if (!source.initialCommandIsMoveTo()) return [];\\n            while (source.hasMoreData()) {\\n                var pathSeg = source.parseSegment();\\n                if (!pathSeg) return [];\\n                builder.appendSegment(pathSeg);\\n            }\\n\\n            return builder.pathSegList;\\n        };\\n    }\\n})();\\n\\n/* jshint ignore:end */\\n\\nc3_chart_fn.axis = function () {};\\nc3_chart_fn.axis.labels = function (labels) {\\n    var $$ = this.internal;\\n    if (arguments.length) {\\n        Object.keys(labels).forEach(function (axisId) {\\n            $$.axis.setLabelText(axisId, labels[axisId]);\\n        });\\n        $$.axis.updateLabels();\\n    }\\n    // TODO: return some values?\\n};\\nc3_chart_fn.axis.max = function (max) {\\n    var $$ = this.internal,\\n        config = $$.config;\\n    if (arguments.length) {\\n        if ((typeof max === 'undefined' ? 'undefined' : _typeof(max)) === 'object') {\\n            if (isValue(max.x)) {\\n                config.axis_x_max = max.x;\\n            }\\n            if (isValue(max.y)) {\\n                config.axis_y_max = max.y;\\n            }\\n            if (isValue(max.y2)) {\\n                config.axis_y2_max = max.y2;\\n            }\\n        } else {\\n            config.axis_y_max = config.axis_y2_max = max;\\n        }\\n        $$.redraw({ withUpdateOrgXDomain: true, withUpdateXDomain: true });\\n    } else {\\n        return {\\n            x: config.axis_x_max,\\n            y: config.axis_y_max,\\n            y2: config.axis_y2_max\\n        };\\n    }\\n};\\nc3_chart_fn.axis.min = function (min) {\\n    var $$ = this.internal,\\n        config = $$.config;\\n    if (arguments.length) {\\n        if ((typeof min === 'undefined' ? 'undefined' : _typeof(min)) === 'object') {\\n            if (isValue(min.x)) {\\n                config.axis_x_min = min.x;\\n            }\\n            if (isValue(min.y)) {\\n                config.axis_y_min = min.y;\\n            }\\n            if (isValue(min.y2)) {\\n                config.axis_y2_min = min.y2;\\n            }\\n        } else {\\n            config.axis_y_min = config.axis_y2_min = min;\\n        }\\n        $$.redraw({ withUpdateOrgXDomain: true, withUpdateXDomain: true });\\n    } else {\\n        return {\\n            x: config.axis_x_min,\\n            y: config.axis_y_min,\\n            y2: config.axis_y2_min\\n        };\\n    }\\n};\\nc3_chart_fn.axis.range = function (range) {\\n    if (arguments.length) {\\n        if (isDefined(range.max)) {\\n            this.axis.max(range.max);\\n        }\\n        if (isDefined(range.min)) {\\n            this.axis.min(range.min);\\n        }\\n    } else {\\n        return {\\n            max: this.axis.max(),\\n            min: this.axis.min()\\n        };\\n    }\\n};\\n\\nc3_chart_fn.category = function (i, category) {\\n    var $$ = this.internal,\\n        config = $$.config;\\n    if (arguments.length > 1) {\\n        config.axis_x_categories[i] = category;\\n        $$.redraw();\\n    }\\n    return config.axis_x_categories[i];\\n};\\nc3_chart_fn.categories = function (categories) {\\n    var $$ = this.internal,\\n        config = $$.config;\\n    if (!arguments.length) {\\n        return config.axis_x_categories;\\n    }\\n    config.axis_x_categories = categories;\\n    $$.redraw();\\n    return config.axis_x_categories;\\n};\\n\\nc3_chart_fn.resize = function (size) {\\n    var $$ = this.internal,\\n        config = $$.config;\\n    config.size_width = size ? size.width : null;\\n    config.size_height = size ? size.height : null;\\n    this.flush();\\n};\\n\\nc3_chart_fn.flush = function () {\\n    var $$ = this.internal;\\n    $$.updateAndRedraw({ withLegend: true, withTransition: false, withTransitionForTransform: false });\\n};\\n\\nc3_chart_fn.destroy = function () {\\n    var $$ = this.internal;\\n\\n    window.clearInterval($$.intervalForObserveInserted);\\n\\n    if ($$.resizeTimeout !== undefined) {\\n        window.clearTimeout($$.resizeTimeout);\\n    }\\n\\n    if (window.detachEvent) {\\n        window.detachEvent('onresize', $$.resizeFunction);\\n    } else if (window.removeEventListener) {\\n        window.removeEventListener('resize', $$.resizeFunction);\\n    } else {\\n        var wrapper = window.onresize;\\n        // check if no one else removed our wrapper and remove our resizeFunction from it\\n        if (wrapper && wrapper.add && wrapper.remove) {\\n            wrapper.remove($$.resizeFunction);\\n        }\\n    }\\n\\n    $$.selectChart.classed('c3', false).html(\\\"\\\");\\n\\n    // MEMO: this is needed because the reference of some elements will not be released, then memory leak will happen.\\n    Object.keys($$).forEach(function (key) {\\n        $$[key] = null;\\n    });\\n\\n    return null;\\n};\\n\\n// TODO: fix\\nc3_chart_fn.color = function (id) {\\n    var $$ = this.internal;\\n    return $$.color(id); // more patterns\\n};\\n\\nc3_chart_fn.data = function (targetIds) {\\n    var targets = this.internal.data.targets;\\n    return typeof targetIds === 'undefined' ? targets : targets.filter(function (t) {\\n        return [].concat(targetIds).indexOf(t.id) >= 0;\\n    });\\n};\\nc3_chart_fn.data.shown = function (targetIds) {\\n    return this.internal.filterTargetsToShow(this.data(targetIds));\\n};\\nc3_chart_fn.data.values = function (targetId) {\\n    var targets,\\n        values = null;\\n    if (targetId) {\\n        targets = this.data(targetId);\\n        values = targets[0] ? targets[0].values.map(function (d) {\\n            return d.value;\\n        }) : null;\\n    }\\n    return values;\\n};\\nc3_chart_fn.data.names = function (names) {\\n    this.internal.clearLegendItemTextBoxCache();\\n    return this.internal.updateDataAttributes('names', names);\\n};\\nc3_chart_fn.data.colors = function (colors) {\\n    return this.internal.updateDataAttributes('colors', colors);\\n};\\nc3_chart_fn.data.axes = function (axes) {\\n    return this.internal.updateDataAttributes('axes', axes);\\n};\\n\\nc3_chart_fn.flow = function (args) {\\n    var $$ = this.internal,\\n        targets,\\n        data,\\n        notfoundIds = [],\\n        orgDataCount = $$.getMaxDataCount(),\\n        dataCount,\\n        domain,\\n        baseTarget,\\n        baseValue,\\n        length = 0,\\n        tail = 0,\\n        diff,\\n        to;\\n\\n    if (args.json) {\\n        data = $$.convertJsonToData(args.json, args.keys);\\n    } else if (args.rows) {\\n        data = $$.convertRowsToData(args.rows);\\n    } else if (args.columns) {\\n        data = $$.convertColumnsToData(args.columns);\\n    } else {\\n        return;\\n    }\\n    targets = $$.convertDataToTargets(data, true);\\n\\n    // Update/Add data\\n    $$.data.targets.forEach(function (t) {\\n        var found = false,\\n            i,\\n            j;\\n        for (i = 0; i < targets.length; i++) {\\n            if (t.id === targets[i].id) {\\n                found = true;\\n\\n                if (t.values[t.values.length - 1]) {\\n                    tail = t.values[t.values.length - 1].index + 1;\\n                }\\n                length = targets[i].values.length;\\n\\n                for (j = 0; j < length; j++) {\\n                    targets[i].values[j].index = tail + j;\\n                    if (!$$.isTimeSeries()) {\\n                        targets[i].values[j].x = tail + j;\\n                    }\\n                }\\n                t.values = t.values.concat(targets[i].values);\\n\\n                targets.splice(i, 1);\\n                break;\\n            }\\n        }\\n        if (!found) {\\n            notfoundIds.push(t.id);\\n        }\\n    });\\n\\n    // Append null for not found targets\\n    $$.data.targets.forEach(function (t) {\\n        var i, j;\\n        for (i = 0; i < notfoundIds.length; i++) {\\n            if (t.id === notfoundIds[i]) {\\n                tail = t.values[t.values.length - 1].index + 1;\\n                for (j = 0; j < length; j++) {\\n                    t.values.push({\\n                        id: t.id,\\n                        index: tail + j,\\n                        x: $$.isTimeSeries() ? $$.getOtherTargetX(tail + j) : tail + j,\\n                        value: null\\n                    });\\n                }\\n            }\\n        }\\n    });\\n\\n    // Generate null values for new target\\n    if ($$.data.targets.length) {\\n        targets.forEach(function (t) {\\n            var i,\\n                missing = [];\\n            for (i = $$.data.targets[0].values[0].index; i < tail; i++) {\\n                missing.push({\\n                    id: t.id,\\n                    index: i,\\n                    x: $$.isTimeSeries() ? $$.getOtherTargetX(i) : i,\\n                    value: null\\n                });\\n            }\\n            t.values.forEach(function (v) {\\n                v.index += tail;\\n                if (!$$.isTimeSeries()) {\\n                    v.x += tail;\\n                }\\n            });\\n            t.values = missing.concat(t.values);\\n        });\\n    }\\n    $$.data.targets = $$.data.targets.concat(targets); // add remained\\n\\n    // check data count because behavior needs to change when it's only one\\n    dataCount = $$.getMaxDataCount();\\n    baseTarget = $$.data.targets[0];\\n    baseValue = baseTarget.values[0];\\n\\n    // Update length to flow if needed\\n    if (isDefined(args.to)) {\\n        length = 0;\\n        to = $$.isTimeSeries() ? $$.parseDate(args.to) : args.to;\\n        baseTarget.values.forEach(function (v) {\\n            if (v.x < to) {\\n                length++;\\n            }\\n        });\\n    } else if (isDefined(args.length)) {\\n        length = args.length;\\n    }\\n\\n    // If only one data, update the domain to flow from left edge of the chart\\n    if (!orgDataCount) {\\n        if ($$.isTimeSeries()) {\\n            if (baseTarget.values.length > 1) {\\n                diff = baseTarget.values[baseTarget.values.length - 1].x - baseValue.x;\\n            } else {\\n                diff = baseValue.x - $$.getXDomain($$.data.targets)[0];\\n            }\\n        } else {\\n            diff = 1;\\n        }\\n        domain = [baseValue.x - diff, baseValue.x];\\n        $$.updateXDomain(null, true, true, false, domain);\\n    } else if (orgDataCount === 1) {\\n        if ($$.isTimeSeries()) {\\n            diff = (baseTarget.values[baseTarget.values.length - 1].x - baseValue.x) / 2;\\n            domain = [new Date(+baseValue.x - diff), new Date(+baseValue.x + diff)];\\n            $$.updateXDomain(null, true, true, false, domain);\\n        }\\n    }\\n\\n    // Set targets\\n    $$.updateTargets($$.data.targets);\\n\\n    // Redraw with new targets\\n    $$.redraw({\\n        flow: {\\n            index: baseValue.index,\\n            length: length,\\n            duration: isValue(args.duration) ? args.duration : $$.config.transition_duration,\\n            done: args.done,\\n            orgDataCount: orgDataCount\\n        },\\n        withLegend: true,\\n        withTransition: orgDataCount > 1,\\n        withTrimXDomain: false,\\n        withUpdateXAxis: true\\n    });\\n};\\n\\nc3_chart_internal_fn.generateFlow = function (args) {\\n    var $$ = this,\\n        config = $$.config,\\n        d3 = $$.d3;\\n\\n    return function () {\\n        var targets = args.targets,\\n            flow = args.flow,\\n            drawBar = args.drawBar,\\n            drawLine = args.drawLine,\\n            drawArea = args.drawArea,\\n            cx = args.cx,\\n            cy = args.cy,\\n            xv = args.xv,\\n            xForText = args.xForText,\\n            yForText = args.yForText,\\n            duration = args.duration;\\n\\n        var translateX,\\n            scaleX = 1,\\n            transform,\\n            flowIndex = flow.index,\\n            flowLength = flow.length,\\n            flowStart = $$.getValueOnIndex($$.data.targets[0].values, flowIndex),\\n            flowEnd = $$.getValueOnIndex($$.data.targets[0].values, flowIndex + flowLength),\\n            orgDomain = $$.x.domain(),\\n            domain,\\n            durationForFlow = flow.duration || duration,\\n            done = flow.done || function () {},\\n            wait = $$.generateWait();\\n\\n        var xgrid = $$.xgrid || d3.selectAll([]),\\n            xgridLines = $$.xgridLines || d3.selectAll([]),\\n            mainRegion = $$.mainRegion || d3.selectAll([]),\\n            mainText = $$.mainText || d3.selectAll([]),\\n            mainBar = $$.mainBar || d3.selectAll([]),\\n            mainLine = $$.mainLine || d3.selectAll([]),\\n            mainArea = $$.mainArea || d3.selectAll([]),\\n            mainCircle = $$.mainCircle || d3.selectAll([]);\\n\\n        // set flag\\n        $$.flowing = true;\\n\\n        // remove head data after rendered\\n        $$.data.targets.forEach(function (d) {\\n            d.values.splice(0, flowLength);\\n        });\\n\\n        // update x domain to generate axis elements for flow\\n        domain = $$.updateXDomain(targets, true, true);\\n        // update elements related to x scale\\n        if ($$.updateXGrid) {\\n            $$.updateXGrid(true);\\n        }\\n\\n        // generate transform to flow\\n        if (!flow.orgDataCount) {\\n            // if empty\\n            if ($$.data.targets[0].values.length !== 1) {\\n                translateX = $$.x(orgDomain[0]) - $$.x(domain[0]);\\n            } else {\\n                if ($$.isTimeSeries()) {\\n                    flowStart = $$.getValueOnIndex($$.data.targets[0].values, 0);\\n                    flowEnd = $$.getValueOnIndex($$.data.targets[0].values, $$.data.targets[0].values.length - 1);\\n                    translateX = $$.x(flowStart.x) - $$.x(flowEnd.x);\\n                } else {\\n                    translateX = diffDomain(domain) / 2;\\n                }\\n            }\\n        } else if (flow.orgDataCount === 1 || (flowStart && flowStart.x) === (flowEnd && flowEnd.x)) {\\n            translateX = $$.x(orgDomain[0]) - $$.x(domain[0]);\\n        } else {\\n            if ($$.isTimeSeries()) {\\n                translateX = $$.x(orgDomain[0]) - $$.x(domain[0]);\\n            } else {\\n                translateX = $$.x(flowStart.x) - $$.x(flowEnd.x);\\n            }\\n        }\\n        scaleX = diffDomain(orgDomain) / diffDomain(domain);\\n        transform = 'translate(' + translateX + ',0) scale(' + scaleX + ',1)';\\n\\n        $$.hideXGridFocus();\\n\\n        d3.transition().ease('linear').duration(durationForFlow).each(function () {\\n            wait.add($$.axes.x.transition().call($$.xAxis));\\n            wait.add(mainBar.transition().attr('transform', transform));\\n            wait.add(mainLine.transition().attr('transform', transform));\\n            wait.add(mainArea.transition().attr('transform', transform));\\n            wait.add(mainCircle.transition().attr('transform', transform));\\n            wait.add(mainText.transition().attr('transform', transform));\\n            wait.add(mainRegion.filter($$.isRegionOnX).transition().attr('transform', transform));\\n            wait.add(xgrid.transition().attr('transform', transform));\\n            wait.add(xgridLines.transition().attr('transform', transform));\\n        }).call(wait, function () {\\n            var i,\\n                shapes = [],\\n                texts = [],\\n                eventRects = [];\\n\\n            // remove flowed elements\\n            if (flowLength) {\\n                for (i = 0; i < flowLength; i++) {\\n                    shapes.push('.' + CLASS.shape + '-' + (flowIndex + i));\\n                    texts.push('.' + CLASS.text + '-' + (flowIndex + i));\\n                    eventRects.push('.' + CLASS.eventRect + '-' + (flowIndex + i));\\n                }\\n                $$.svg.selectAll('.' + CLASS.shapes).selectAll(shapes).remove();\\n                $$.svg.selectAll('.' + CLASS.texts).selectAll(texts).remove();\\n                $$.svg.selectAll('.' + CLASS.eventRects).selectAll(eventRects).remove();\\n                $$.svg.select('.' + CLASS.xgrid).remove();\\n            }\\n\\n            // draw again for removing flowed elements and reverting attr\\n            xgrid.attr('transform', null).attr($$.xgridAttr);\\n            xgridLines.attr('transform', null);\\n            xgridLines.select('line').attr(\\\"x1\\\", config.axis_rotated ? 0 : xv).attr(\\\"x2\\\", config.axis_rotated ? $$.width : xv);\\n            xgridLines.select('text').attr(\\\"x\\\", config.axis_rotated ? $$.width : 0).attr(\\\"y\\\", xv);\\n            mainBar.attr('transform', null).attr(\\\"d\\\", drawBar);\\n            mainLine.attr('transform', null).attr(\\\"d\\\", drawLine);\\n            mainArea.attr('transform', null).attr(\\\"d\\\", drawArea);\\n            mainCircle.attr('transform', null).attr(\\\"cx\\\", cx).attr(\\\"cy\\\", cy);\\n            mainText.attr('transform', null).attr('x', xForText).attr('y', yForText).style('fill-opacity', $$.opacityForText.bind($$));\\n            mainRegion.attr('transform', null);\\n            mainRegion.select('rect').filter($$.isRegionOnX).attr(\\\"x\\\", $$.regionX.bind($$)).attr(\\\"width\\\", $$.regionWidth.bind($$));\\n\\n            if (config.interaction_enabled) {\\n                $$.redrawEventRect();\\n            }\\n\\n            // callback for end of flow\\n            done();\\n\\n            $$.flowing = false;\\n        });\\n    };\\n};\\n\\nc3_chart_fn.focus = function (targetIds) {\\n    var $$ = this.internal,\\n        candidates;\\n\\n    targetIds = $$.mapToTargetIds(targetIds);\\n    candidates = $$.svg.selectAll($$.selectorTargets(targetIds.filter($$.isTargetToShow, $$))), this.revert();\\n    this.defocus();\\n    candidates.classed(CLASS.focused, true).classed(CLASS.defocused, false);\\n    if ($$.hasArcType()) {\\n        $$.expandArc(targetIds);\\n    }\\n    $$.toggleFocusLegend(targetIds, true);\\n\\n    $$.focusedTargetIds = targetIds;\\n    $$.defocusedTargetIds = $$.defocusedTargetIds.filter(function (id) {\\n        return targetIds.indexOf(id) < 0;\\n    });\\n};\\n\\nc3_chart_fn.defocus = function (targetIds) {\\n    var $$ = this.internal,\\n        candidates;\\n\\n    targetIds = $$.mapToTargetIds(targetIds);\\n    candidates = $$.svg.selectAll($$.selectorTargets(targetIds.filter($$.isTargetToShow, $$))), candidates.classed(CLASS.focused, false).classed(CLASS.defocused, true);\\n    if ($$.hasArcType()) {\\n        $$.unexpandArc(targetIds);\\n    }\\n    $$.toggleFocusLegend(targetIds, false);\\n\\n    $$.focusedTargetIds = $$.focusedTargetIds.filter(function (id) {\\n        return targetIds.indexOf(id) < 0;\\n    });\\n    $$.defocusedTargetIds = targetIds;\\n};\\n\\nc3_chart_fn.revert = function (targetIds) {\\n    var $$ = this.internal,\\n        candidates;\\n\\n    targetIds = $$.mapToTargetIds(targetIds);\\n    candidates = $$.svg.selectAll($$.selectorTargets(targetIds)); // should be for all targets\\n\\n    candidates.classed(CLASS.focused, false).classed(CLASS.defocused, false);\\n    if ($$.hasArcType()) {\\n        $$.unexpandArc(targetIds);\\n    }\\n    if ($$.config.legend_show) {\\n        $$.showLegend(targetIds.filter($$.isLegendToShow.bind($$)));\\n        $$.legend.selectAll($$.selectorLegends(targetIds)).filter(function () {\\n            return $$.d3.select(this).classed(CLASS.legendItemFocused);\\n        }).classed(CLASS.legendItemFocused, false);\\n    }\\n\\n    $$.focusedTargetIds = [];\\n    $$.defocusedTargetIds = [];\\n};\\n\\nc3_chart_fn.xgrids = function (grids) {\\n    var $$ = this.internal,\\n        config = $$.config;\\n    if (!grids) {\\n        return config.grid_x_lines;\\n    }\\n    config.grid_x_lines = grids;\\n    $$.redrawWithoutRescale();\\n    return config.grid_x_lines;\\n};\\nc3_chart_fn.xgrids.add = function (grids) {\\n    var $$ = this.internal;\\n    return this.xgrids($$.config.grid_x_lines.concat(grids ? grids : []));\\n};\\nc3_chart_fn.xgrids.remove = function (params) {\\n    // TODO: multiple\\n    var $$ = this.internal;\\n    $$.removeGridLines(params, true);\\n};\\n\\nc3_chart_fn.ygrids = function (grids) {\\n    var $$ = this.internal,\\n        config = $$.config;\\n    if (!grids) {\\n        return config.grid_y_lines;\\n    }\\n    config.grid_y_lines = grids;\\n    $$.redrawWithoutRescale();\\n    return config.grid_y_lines;\\n};\\nc3_chart_fn.ygrids.add = function (grids) {\\n    var $$ = this.internal;\\n    return this.ygrids($$.config.grid_y_lines.concat(grids ? grids : []));\\n};\\nc3_chart_fn.ygrids.remove = function (params) {\\n    // TODO: multiple\\n    var $$ = this.internal;\\n    $$.removeGridLines(params, false);\\n};\\n\\nc3_chart_fn.groups = function (groups) {\\n    var $$ = this.internal,\\n        config = $$.config;\\n    if (isUndefined(groups)) {\\n        return config.data_groups;\\n    }\\n    config.data_groups = groups;\\n    $$.redraw();\\n    return config.data_groups;\\n};\\n\\nc3_chart_fn.legend = function () {};\\nc3_chart_fn.legend.show = function (targetIds) {\\n    var $$ = this.internal;\\n    $$.showLegend($$.mapToTargetIds(targetIds));\\n    $$.updateAndRedraw({ withLegend: true });\\n};\\nc3_chart_fn.legend.hide = function (targetIds) {\\n    var $$ = this.internal;\\n    $$.hideLegend($$.mapToTargetIds(targetIds));\\n    $$.updateAndRedraw({ withLegend: true });\\n};\\n\\nc3_chart_fn.load = function (args) {\\n    var $$ = this.internal,\\n        config = $$.config;\\n    // update xs if specified\\n    if (args.xs) {\\n        $$.addXs(args.xs);\\n    }\\n    // update names if exists\\n    if ('names' in args) {\\n        c3_chart_fn.data.names.bind(this)(args.names);\\n    }\\n    // update classes if exists\\n    if ('classes' in args) {\\n        Object.keys(args.classes).forEach(function (id) {\\n            config.data_classes[id] = args.classes[id];\\n        });\\n    }\\n    // update categories if exists\\n    if ('categories' in args && $$.isCategorized()) {\\n        config.axis_x_categories = args.categories;\\n    }\\n    // update axes if exists\\n    if ('axes' in args) {\\n        Object.keys(args.axes).forEach(function (id) {\\n            config.data_axes[id] = args.axes[id];\\n        });\\n    }\\n    // update colors if exists\\n    if ('colors' in args) {\\n        Object.keys(args.colors).forEach(function (id) {\\n            config.data_colors[id] = args.colors[id];\\n        });\\n    }\\n    // use cache if exists\\n    if ('cacheIds' in args && $$.hasCaches(args.cacheIds)) {\\n        $$.load($$.getCaches(args.cacheIds), args.done);\\n        return;\\n    }\\n    // unload if needed\\n    if ('unload' in args) {\\n        // TODO: do not unload if target will load (included in url/rows/columns)\\n        $$.unload($$.mapToTargetIds(typeof args.unload === 'boolean' && args.unload ? null : args.unload), function () {\\n            $$.loadFromArgs(args);\\n        });\\n    } else {\\n        $$.loadFromArgs(args);\\n    }\\n};\\n\\nc3_chart_fn.unload = function (args) {\\n    var $$ = this.internal;\\n    args = args || {};\\n    if (args instanceof Array) {\\n        args = { ids: args };\\n    } else if (typeof args === 'string') {\\n        args = { ids: [args] };\\n    }\\n    $$.unload($$.mapToTargetIds(args.ids), function () {\\n        $$.redraw({ withUpdateOrgXDomain: true, withUpdateXDomain: true, withLegend: true });\\n        if (args.done) {\\n            args.done();\\n        }\\n    });\\n};\\n\\nc3_chart_fn.regions = function (regions) {\\n    var $$ = this.internal,\\n        config = $$.config;\\n    if (!regions) {\\n        return config.regions;\\n    }\\n    config.regions = regions;\\n    $$.redrawWithoutRescale();\\n    return config.regions;\\n};\\nc3_chart_fn.regions.add = function (regions) {\\n    var $$ = this.internal,\\n        config = $$.config;\\n    if (!regions) {\\n        return config.regions;\\n    }\\n    config.regions = config.regions.concat(regions);\\n    $$.redrawWithoutRescale();\\n    return config.regions;\\n};\\nc3_chart_fn.regions.remove = function (options) {\\n    var $$ = this.internal,\\n        config = $$.config,\\n        duration,\\n        classes,\\n        regions;\\n\\n    options = options || {};\\n    duration = $$.getOption(options, \\\"duration\\\", config.transition_duration);\\n    classes = $$.getOption(options, \\\"classes\\\", [CLASS.region]);\\n\\n    regions = $$.main.select('.' + CLASS.regions).selectAll(classes.map(function (c) {\\n        return '.' + c;\\n    }));\\n    (duration ? regions.transition().duration(duration) : regions).style('opacity', 0).remove();\\n\\n    config.regions = config.regions.filter(function (region) {\\n        var found = false;\\n        if (!region['class']) {\\n            return true;\\n        }\\n        region['class'].split(' ').forEach(function (c) {\\n            if (classes.indexOf(c) >= 0) {\\n                found = true;\\n            }\\n        });\\n        return !found;\\n    });\\n\\n    return config.regions;\\n};\\n\\nc3_chart_fn.selected = function (targetId) {\\n    var $$ = this.internal,\\n        d3 = $$.d3;\\n    return d3.merge($$.main.selectAll('.' + CLASS.shapes + $$.getTargetSelectorSuffix(targetId)).selectAll('.' + CLASS.shape).filter(function () {\\n        return d3.select(this).classed(CLASS.SELECTED);\\n    }).map(function (d) {\\n        return d.map(function (d) {\\n            var data = d.__data__;return data.data ? data.data : data;\\n        });\\n    }));\\n};\\nc3_chart_fn.select = function (ids, indices, resetOther) {\\n    var $$ = this.internal,\\n        d3 = $$.d3,\\n        config = $$.config;\\n    if (!config.data_selection_enabled) {\\n        return;\\n    }\\n    $$.main.selectAll('.' + CLASS.shapes).selectAll('.' + CLASS.shape).each(function (d, i) {\\n        var shape = d3.select(this),\\n            id = d.data ? d.data.id : d.id,\\n            toggle = $$.getToggle(this, d).bind($$),\\n            isTargetId = config.data_selection_grouped || !ids || ids.indexOf(id) >= 0,\\n            isTargetIndex = !indices || indices.indexOf(i) >= 0,\\n            isSelected = shape.classed(CLASS.SELECTED);\\n        // line/area selection not supported yet\\n        if (shape.classed(CLASS.line) || shape.classed(CLASS.area)) {\\n            return;\\n        }\\n        if (isTargetId && isTargetIndex) {\\n            if (config.data_selection_isselectable(d) && !isSelected) {\\n                toggle(true, shape.classed(CLASS.SELECTED, true), d, i);\\n            }\\n        } else if (isDefined(resetOther) && resetOther) {\\n            if (isSelected) {\\n                toggle(false, shape.classed(CLASS.SELECTED, false), d, i);\\n            }\\n        }\\n    });\\n};\\nc3_chart_fn.unselect = function (ids, indices) {\\n    var $$ = this.internal,\\n        d3 = $$.d3,\\n        config = $$.config;\\n    if (!config.data_selection_enabled) {\\n        return;\\n    }\\n    $$.main.selectAll('.' + CLASS.shapes).selectAll('.' + CLASS.shape).each(function (d, i) {\\n        var shape = d3.select(this),\\n            id = d.data ? d.data.id : d.id,\\n            toggle = $$.getToggle(this, d).bind($$),\\n            isTargetId = config.data_selection_grouped || !ids || ids.indexOf(id) >= 0,\\n            isTargetIndex = !indices || indices.indexOf(i) >= 0,\\n            isSelected = shape.classed(CLASS.SELECTED);\\n        // line/area selection not supported yet\\n        if (shape.classed(CLASS.line) || shape.classed(CLASS.area)) {\\n            return;\\n        }\\n        if (isTargetId && isTargetIndex) {\\n            if (config.data_selection_isselectable(d)) {\\n                if (isSelected) {\\n                    toggle(false, shape.classed(CLASS.SELECTED, false), d, i);\\n                }\\n            }\\n        }\\n    });\\n};\\n\\nc3_chart_fn.show = function (targetIds, options) {\\n    var $$ = this.internal,\\n        targets;\\n\\n    targetIds = $$.mapToTargetIds(targetIds);\\n    options = options || {};\\n\\n    $$.removeHiddenTargetIds(targetIds);\\n    targets = $$.svg.selectAll($$.selectorTargets(targetIds));\\n\\n    targets.transition().style('opacity', 1, 'important').call($$.endall, function () {\\n        targets.style('opacity', null).style('opacity', 1);\\n    });\\n\\n    if (options.withLegend) {\\n        $$.showLegend(targetIds);\\n    }\\n\\n    $$.redraw({ withUpdateOrgXDomain: true, withUpdateXDomain: true, withLegend: true });\\n};\\n\\nc3_chart_fn.hide = function (targetIds, options) {\\n    var $$ = this.internal,\\n        targets;\\n\\n    targetIds = $$.mapToTargetIds(targetIds);\\n    options = options || {};\\n\\n    $$.addHiddenTargetIds(targetIds);\\n    targets = $$.svg.selectAll($$.selectorTargets(targetIds));\\n\\n    targets.transition().style('opacity', 0, 'important').call($$.endall, function () {\\n        targets.style('opacity', null).style('opacity', 0);\\n    });\\n\\n    if (options.withLegend) {\\n        $$.hideLegend(targetIds);\\n    }\\n\\n    $$.redraw({ withUpdateOrgXDomain: true, withUpdateXDomain: true, withLegend: true });\\n};\\n\\nc3_chart_fn.toggle = function (targetIds, options) {\\n    var that = this,\\n        $$ = this.internal;\\n    $$.mapToTargetIds(targetIds).forEach(function (targetId) {\\n        $$.isTargetToShow(targetId) ? that.hide(targetId, options) : that.show(targetId, options);\\n    });\\n};\\n\\nc3_chart_fn.tooltip = function () {};\\nc3_chart_fn.tooltip.show = function (args) {\\n    var $$ = this.internal,\\n        index,\\n        mouse;\\n\\n    // determine mouse position on the chart\\n    if (args.mouse) {\\n        mouse = args.mouse;\\n    }\\n\\n    // determine focus data\\n    if (args.data) {\\n        if ($$.isMultipleX()) {\\n            // if multiple xs, target point will be determined by mouse\\n            mouse = [$$.x(args.data.x), $$.getYScale(args.data.id)(args.data.value)];\\n            index = null;\\n        } else {\\n            // TODO: when tooltip_grouped = false\\n            index = isValue(args.data.index) ? args.data.index : $$.getIndexByX(args.data.x);\\n        }\\n    } else if (typeof args.x !== 'undefined') {\\n        index = $$.getIndexByX(args.x);\\n    } else if (typeof args.index !== 'undefined') {\\n        index = args.index;\\n    }\\n\\n    // emulate mouse events to show\\n    $$.dispatchEvent('mouseover', index, mouse);\\n    $$.dispatchEvent('mousemove', index, mouse);\\n\\n    $$.config.tooltip_onshow.call($$, args.data);\\n};\\nc3_chart_fn.tooltip.hide = function () {\\n    // TODO: get target data by checking the state of focus\\n    this.internal.dispatchEvent('mouseout', 0);\\n\\n    this.internal.config.tooltip_onhide.call(this);\\n};\\n\\nc3_chart_fn.transform = function (type, targetIds) {\\n    var $$ = this.internal,\\n        options = ['pie', 'donut'].indexOf(type) >= 0 ? { withTransform: true } : null;\\n    $$.transformTo(targetIds, type, options);\\n};\\n\\nc3_chart_internal_fn.transformTo = function (targetIds, type, optionsForRedraw) {\\n    var $$ = this,\\n        withTransitionForAxis = !$$.hasArcType(),\\n        options = optionsForRedraw || { withTransitionForAxis: withTransitionForAxis };\\n    options.withTransitionForTransform = false;\\n    $$.transiting = false;\\n    $$.setTargetType(targetIds, type);\\n    $$.updateTargets($$.data.targets); // this is needed when transforming to arc\\n    $$.updateAndRedraw(options);\\n};\\n\\nc3_chart_fn.x = function (x) {\\n    var $$ = this.internal;\\n    if (arguments.length) {\\n        $$.updateTargetX($$.data.targets, x);\\n        $$.redraw({ withUpdateOrgXDomain: true, withUpdateXDomain: true });\\n    }\\n    return $$.data.xs;\\n};\\nc3_chart_fn.xs = function (xs) {\\n    var $$ = this.internal;\\n    if (arguments.length) {\\n        $$.updateTargetXs($$.data.targets, xs);\\n        $$.redraw({ withUpdateOrgXDomain: true, withUpdateXDomain: true });\\n    }\\n    return $$.data.xs;\\n};\\n\\nc3_chart_fn.zoom = function (domain) {\\n    var $$ = this.internal;\\n    if (domain) {\\n        if ($$.isTimeSeries()) {\\n            domain = domain.map(function (x) {\\n                return $$.parseDate(x);\\n            });\\n        }\\n        $$.brush.extent(domain);\\n        $$.redraw({ withUpdateXDomain: true, withY: $$.config.zoom_rescale });\\n        $$.config.zoom_onzoom.call(this, $$.x.orgDomain());\\n    }\\n    return $$.brush.extent();\\n};\\nc3_chart_fn.zoom.enable = function (enabled) {\\n    var $$ = this.internal;\\n    $$.config.zoom_enabled = enabled;\\n    $$.updateAndRedraw();\\n};\\nc3_chart_fn.unzoom = function () {\\n    var $$ = this.internal;\\n    $$.brush.clear().update();\\n    $$.redraw({ withUpdateXDomain: true });\\n};\\n\\nc3_chart_fn.zoom.max = function (max) {\\n    var $$ = this.internal,\\n        config = $$.config,\\n        d3 = $$.d3;\\n    if (max === 0 || max) {\\n        config.zoom_x_max = d3.max([$$.orgXDomain[1], max]);\\n    } else {\\n        return config.zoom_x_max;\\n    }\\n};\\n\\nc3_chart_fn.zoom.min = function (min) {\\n    var $$ = this.internal,\\n        config = $$.config,\\n        d3 = $$.d3;\\n    if (min === 0 || min) {\\n        config.zoom_x_min = d3.min([$$.orgXDomain[0], min]);\\n    } else {\\n        return config.zoom_x_min;\\n    }\\n};\\n\\nc3_chart_fn.zoom.range = function (range) {\\n    if (arguments.length) {\\n        if (isDefined(range.max)) {\\n            this.domain.max(range.max);\\n        }\\n        if (isDefined(range.min)) {\\n            this.domain.min(range.min);\\n        }\\n    } else {\\n        return {\\n            max: this.domain.max(),\\n            min: this.domain.min()\\n        };\\n    }\\n};\\n\\nc3_chart_internal_fn.initPie = function () {\\n    var $$ = this,\\n        d3 = $$.d3,\\n        config = $$.config;\\n    $$.pie = d3.layout.pie().value(function (d) {\\n        return d.values.reduce(function (a, b) {\\n            return a + b.value;\\n        }, 0);\\n    });\\n    if (!config.data_order) {\\n        $$.pie.sort(null);\\n    }\\n};\\n\\nc3_chart_internal_fn.updateRadius = function () {\\n    var $$ = this,\\n        config = $$.config,\\n        w = config.gauge_width || config.donut_width;\\n    $$.radiusExpanded = Math.min($$.arcWidth, $$.arcHeight) / 2;\\n    $$.radius = $$.radiusExpanded * 0.95;\\n    $$.innerRadiusRatio = w ? ($$.radius - w) / $$.radius : 0.6;\\n    $$.innerRadius = $$.hasType('donut') || $$.hasType('gauge') ? $$.radius * $$.innerRadiusRatio : 0;\\n};\\n\\nc3_chart_internal_fn.updateArc = function () {\\n    var $$ = this;\\n    $$.svgArc = $$.getSvgArc();\\n    $$.svgArcExpanded = $$.getSvgArcExpanded();\\n    $$.svgArcExpandedSub = $$.getSvgArcExpanded(0.98);\\n};\\n\\nc3_chart_internal_fn.updateAngle = function (d) {\\n    var $$ = this,\\n        config = $$.config,\\n        found = false,\\n        index = 0,\\n        gMin,\\n        gMax,\\n        gTic,\\n        gValue;\\n\\n    if (!config) {\\n        return null;\\n    }\\n\\n    $$.pie($$.filterTargetsToShow($$.data.targets)).forEach(function (t) {\\n        if (!found && t.data.id === d.data.id) {\\n            found = true;\\n            d = t;\\n            d.index = index;\\n        }\\n        index++;\\n    });\\n    if (isNaN(d.startAngle)) {\\n        d.startAngle = 0;\\n    }\\n    if (isNaN(d.endAngle)) {\\n        d.endAngle = d.startAngle;\\n    }\\n    if ($$.isGaugeType(d.data)) {\\n        gMin = config.gauge_min;\\n        gMax = config.gauge_max;\\n        gTic = Math.PI * (config.gauge_fullCircle ? 2 : 1) / (gMax - gMin);\\n        gValue = d.value < gMin ? 0 : d.value < gMax ? d.value - gMin : gMax - gMin;\\n        d.startAngle = config.gauge_startingAngle;\\n        d.endAngle = d.startAngle + gTic * gValue;\\n    }\\n    return found ? d : null;\\n};\\n\\nc3_chart_internal_fn.getSvgArc = function () {\\n    var $$ = this,\\n        arc = $$.d3.svg.arc().outerRadius($$.radius).innerRadius($$.innerRadius),\\n        newArc = function newArc(d, withoutUpdate) {\\n        var updated;\\n        if (withoutUpdate) {\\n            return arc(d);\\n        } // for interpolate\\n        updated = $$.updateAngle(d);\\n        return updated ? arc(updated) : \\\"M 0 0\\\";\\n    };\\n    // TODO: extends all function\\n    newArc.centroid = arc.centroid;\\n    return newArc;\\n};\\n\\nc3_chart_internal_fn.getSvgArcExpanded = function (rate) {\\n    var $$ = this,\\n        arc = $$.d3.svg.arc().outerRadius($$.radiusExpanded * (rate ? rate : 1)).innerRadius($$.innerRadius);\\n    return function (d) {\\n        var updated = $$.updateAngle(d);\\n        return updated ? arc(updated) : \\\"M 0 0\\\";\\n    };\\n};\\n\\nc3_chart_internal_fn.getArc = function (d, withoutUpdate, force) {\\n    return force || this.isArcType(d.data) ? this.svgArc(d, withoutUpdate) : \\\"M 0 0\\\";\\n};\\n\\nc3_chart_internal_fn.transformForArcLabel = function (d) {\\n    var $$ = this,\\n        config = $$.config,\\n        updated = $$.updateAngle(d),\\n        c,\\n        x,\\n        y,\\n        h,\\n        ratio,\\n        translate = \\\"\\\";\\n    if (updated && !$$.hasType('gauge')) {\\n        c = this.svgArc.centroid(updated);\\n        x = isNaN(c[0]) ? 0 : c[0];\\n        y = isNaN(c[1]) ? 0 : c[1];\\n        h = Math.sqrt(x * x + y * y);\\n        if ($$.hasType('donut') && config.donut_label_ratio) {\\n            ratio = isFunction(config.donut_label_ratio) ? config.donut_label_ratio(d, $$.radius, h) : config.donut_label_ratio;\\n        } else if ($$.hasType('pie') && config.pie_label_ratio) {\\n            ratio = isFunction(config.pie_label_ratio) ? config.pie_label_ratio(d, $$.radius, h) : config.pie_label_ratio;\\n        } else {\\n            ratio = $$.radius && h ? (36 / $$.radius > 0.375 ? 1.175 - 36 / $$.radius : 0.8) * $$.radius / h : 0;\\n        }\\n        translate = \\\"translate(\\\" + x * ratio + ',' + y * ratio + \\\")\\\";\\n    }\\n    return translate;\\n};\\n\\nc3_chart_internal_fn.getArcRatio = function (d) {\\n    var $$ = this,\\n        config = $$.config,\\n        whole = Math.PI * ($$.hasType('gauge') && !config.gauge_fullCircle ? 1 : 2);\\n    return d ? (d.endAngle - d.startAngle) / whole : null;\\n};\\n\\nc3_chart_internal_fn.convertToArcData = function (d) {\\n    return this.addName({\\n        id: d.data.id,\\n        value: d.value,\\n        ratio: this.getArcRatio(d),\\n        index: d.index\\n    });\\n};\\n\\nc3_chart_internal_fn.textForArcLabel = function (d) {\\n    var $$ = this,\\n        updated,\\n        value,\\n        ratio,\\n        id,\\n        format;\\n    if (!$$.shouldShowArcLabel()) {\\n        return \\\"\\\";\\n    }\\n    updated = $$.updateAngle(d);\\n    value = updated ? updated.value : null;\\n    ratio = $$.getArcRatio(updated);\\n    id = d.data.id;\\n    if (!$$.hasType('gauge') && !$$.meetsArcLabelThreshold(ratio)) {\\n        return \\\"\\\";\\n    }\\n    format = $$.getArcLabelFormat();\\n    return format ? format(value, ratio, id) : $$.defaultArcValueFormat(value, ratio);\\n};\\n\\nc3_chart_internal_fn.textForGaugeMinMax = function (value, isMax) {\\n    var $$ = this,\\n        format = $$.getGaugeLabelExtents();\\n\\n    return format ? format(value, isMax) : value;\\n};\\n\\nc3_chart_internal_fn.expandArc = function (targetIds) {\\n    var $$ = this,\\n        interval;\\n\\n    // MEMO: avoid to cancel transition\\n    if ($$.transiting) {\\n        interval = window.setInterval(function () {\\n            if (!$$.transiting) {\\n                window.clearInterval(interval);\\n                if ($$.legend.selectAll('.c3-legend-item-focused').size() > 0) {\\n                    $$.expandArc(targetIds);\\n                }\\n            }\\n        }, 10);\\n        return;\\n    }\\n\\n    targetIds = $$.mapToTargetIds(targetIds);\\n\\n    $$.svg.selectAll($$.selectorTargets(targetIds, '.' + CLASS.chartArc)).each(function (d) {\\n        if (!$$.shouldExpand(d.data.id)) {\\n            return;\\n        }\\n        $$.d3.select(this).selectAll('path').transition().duration($$.expandDuration(d.data.id)).attr(\\\"d\\\", $$.svgArcExpanded).transition().duration($$.expandDuration(d.data.id) * 2).attr(\\\"d\\\", $$.svgArcExpandedSub).each(function (d) {\\n            if ($$.isDonutType(d.data)) {\\n                // callback here\\n            }\\n        });\\n    });\\n};\\n\\nc3_chart_internal_fn.unexpandArc = function (targetIds) {\\n    var $$ = this;\\n\\n    if ($$.transiting) {\\n        return;\\n    }\\n\\n    targetIds = $$.mapToTargetIds(targetIds);\\n\\n    $$.svg.selectAll($$.selectorTargets(targetIds, '.' + CLASS.chartArc)).selectAll('path').transition().duration(function (d) {\\n        return $$.expandDuration(d.data.id);\\n    }).attr(\\\"d\\\", $$.svgArc);\\n    $$.svg.selectAll('.' + CLASS.arc);\\n};\\n\\nc3_chart_internal_fn.expandDuration = function (id) {\\n    var $$ = this,\\n        config = $$.config;\\n\\n    if ($$.isDonutType(id)) {\\n        return config.donut_expand_duration;\\n    } else if ($$.isGaugeType(id)) {\\n        return config.gauge_expand_duration;\\n    } else if ($$.isPieType(id)) {\\n        return config.pie_expand_duration;\\n    } else {\\n        return 50;\\n    }\\n};\\n\\nc3_chart_internal_fn.shouldExpand = function (id) {\\n    var $$ = this,\\n        config = $$.config;\\n    return $$.isDonutType(id) && config.donut_expand || $$.isGaugeType(id) && config.gauge_expand || $$.isPieType(id) && config.pie_expand;\\n};\\n\\nc3_chart_internal_fn.shouldShowArcLabel = function () {\\n    var $$ = this,\\n        config = $$.config,\\n        shouldShow = true;\\n    if ($$.hasType('donut')) {\\n        shouldShow = config.donut_label_show;\\n    } else if ($$.hasType('pie')) {\\n        shouldShow = config.pie_label_show;\\n    }\\n    // when gauge, always true\\n    return shouldShow;\\n};\\n\\nc3_chart_internal_fn.meetsArcLabelThreshold = function (ratio) {\\n    var $$ = this,\\n        config = $$.config,\\n        threshold = $$.hasType('donut') ? config.donut_label_threshold : config.pie_label_threshold;\\n    return ratio >= threshold;\\n};\\n\\nc3_chart_internal_fn.getArcLabelFormat = function () {\\n    var $$ = this,\\n        config = $$.config,\\n        format = config.pie_label_format;\\n    if ($$.hasType('gauge')) {\\n        format = config.gauge_label_format;\\n    } else if ($$.hasType('donut')) {\\n        format = config.donut_label_format;\\n    }\\n    return format;\\n};\\n\\nc3_chart_internal_fn.getGaugeLabelExtents = function () {\\n    var $$ = this,\\n        config = $$.config;\\n    return config.gauge_label_extents;\\n};\\n\\nc3_chart_internal_fn.getArcTitle = function () {\\n    var $$ = this;\\n    return $$.hasType('donut') ? $$.config.donut_title : \\\"\\\";\\n};\\n\\nc3_chart_internal_fn.updateTargetsForArc = function (targets) {\\n    var $$ = this,\\n        main = $$.main,\\n        mainPieUpdate,\\n        mainPieEnter,\\n        classChartArc = $$.classChartArc.bind($$),\\n        classArcs = $$.classArcs.bind($$),\\n        classFocus = $$.classFocus.bind($$);\\n    mainPieUpdate = main.select('.' + CLASS.chartArcs).selectAll('.' + CLASS.chartArc).data($$.pie(targets)).attr(\\\"class\\\", function (d) {\\n        return classChartArc(d) + classFocus(d.data);\\n    });\\n    mainPieEnter = mainPieUpdate.enter().append(\\\"g\\\").attr(\\\"class\\\", classChartArc);\\n    mainPieEnter.append('g').attr('class', classArcs);\\n    mainPieEnter.append(\\\"text\\\").attr(\\\"dy\\\", $$.hasType('gauge') ? \\\"-.1em\\\" : \\\".35em\\\").style(\\\"opacity\\\", 0).style(\\\"text-anchor\\\", \\\"middle\\\").style(\\\"pointer-events\\\", \\\"none\\\");\\n    // MEMO: can not keep same color..., but not bad to update color in redraw\\n    //mainPieUpdate.exit().remove();\\n};\\n\\nc3_chart_internal_fn.initArc = function () {\\n    var $$ = this;\\n    $$.arcs = $$.main.select('.' + CLASS.chart).append(\\\"g\\\").attr(\\\"class\\\", CLASS.chartArcs).attr(\\\"transform\\\", $$.getTranslate('arc'));\\n    $$.arcs.append('text').attr('class', CLASS.chartArcsTitle).style(\\\"text-anchor\\\", \\\"middle\\\").text($$.getArcTitle());\\n};\\n\\nc3_chart_internal_fn.redrawArc = function (duration, durationForExit, withTransform) {\\n    var $$ = this,\\n        d3 = $$.d3,\\n        config = $$.config,\\n        main = $$.main,\\n        mainArc;\\n    mainArc = main.selectAll('.' + CLASS.arcs).selectAll('.' + CLASS.arc).data($$.arcData.bind($$));\\n    mainArc.enter().append('path').attr(\\\"class\\\", $$.classArc.bind($$)).style(\\\"fill\\\", function (d) {\\n        return $$.color(d.data);\\n    }).style(\\\"cursor\\\", function (d) {\\n        return config.interaction_enabled && config.data_selection_isselectable(d) ? \\\"pointer\\\" : null;\\n    }).each(function (d) {\\n        if ($$.isGaugeType(d.data)) {\\n            d.startAngle = d.endAngle = config.gauge_startingAngle;\\n        }\\n        this._current = d;\\n    });\\n    mainArc.attr(\\\"transform\\\", function (d) {\\n        return !$$.isGaugeType(d.data) && withTransform ? \\\"scale(0)\\\" : \\\"\\\";\\n    }).on('mouseover', config.interaction_enabled ? function (d) {\\n        var updated, arcData;\\n        if ($$.transiting) {\\n            // skip while transiting\\n            return;\\n        }\\n        updated = $$.updateAngle(d);\\n        if (updated) {\\n            arcData = $$.convertToArcData(updated);\\n            // transitions\\n            $$.expandArc(updated.data.id);\\n            $$.api.focus(updated.data.id);\\n            $$.toggleFocusLegend(updated.data.id, true);\\n            $$.config.data_onmouseover(arcData, this);\\n        }\\n    } : null).on('mousemove', config.interaction_enabled ? function (d) {\\n        var updated = $$.updateAngle(d),\\n            arcData,\\n            selectedData;\\n        if (updated) {\\n            arcData = $$.convertToArcData(updated), selectedData = [arcData];\\n            $$.showTooltip(selectedData, this);\\n        }\\n    } : null).on('mouseout', config.interaction_enabled ? function (d) {\\n        var updated, arcData;\\n        if ($$.transiting) {\\n            // skip while transiting\\n            return;\\n        }\\n        updated = $$.updateAngle(d);\\n        if (updated) {\\n            arcData = $$.convertToArcData(updated);\\n            // transitions\\n            $$.unexpandArc(updated.data.id);\\n            $$.api.revert();\\n            $$.revertLegend();\\n            $$.hideTooltip();\\n            $$.config.data_onmouseout(arcData, this);\\n        }\\n    } : null).on('click', config.interaction_enabled ? function (d, i) {\\n        var updated = $$.updateAngle(d),\\n            arcData;\\n        if (updated) {\\n            arcData = $$.convertToArcData(updated);\\n            if ($$.toggleShape) {\\n                $$.toggleShape(this, arcData, i);\\n            }\\n            $$.config.data_onclick.call($$.api, arcData, this);\\n        }\\n    } : null).each(function () {\\n        $$.transiting = true;\\n    }).transition().duration(duration).attrTween(\\\"d\\\", function (d) {\\n        var updated = $$.updateAngle(d),\\n            interpolate;\\n        if (!updated) {\\n            return function () {\\n                return \\\"M 0 0\\\";\\n            };\\n        }\\n        //                if (this._current === d) {\\n        //                    this._current = {\\n        //                        startAngle: Math.PI*2,\\n        //                        endAngle: Math.PI*2,\\n        //                    };\\n        //                }\\n        if (isNaN(this._current.startAngle)) {\\n            this._current.startAngle = 0;\\n        }\\n        if (isNaN(this._current.endAngle)) {\\n            this._current.endAngle = this._current.startAngle;\\n        }\\n        interpolate = d3.interpolate(this._current, updated);\\n        this._current = interpolate(0);\\n        return function (t) {\\n            var interpolated = interpolate(t);\\n            interpolated.data = d.data; // data.id will be updated by interporator\\n            return $$.getArc(interpolated, true);\\n        };\\n    }).attr(\\\"transform\\\", withTransform ? \\\"scale(1)\\\" : \\\"\\\").style(\\\"fill\\\", function (d) {\\n        return $$.levelColor ? $$.levelColor(d.data.values[0].value) : $$.color(d.data.id);\\n    } // Where gauge reading color would receive customization.\\n    ).call($$.endall, function () {\\n        $$.transiting = false;\\n    });\\n    mainArc.exit().transition().duration(durationForExit).style('opacity', 0).remove();\\n    main.selectAll('.' + CLASS.chartArc).select('text').style(\\\"opacity\\\", 0).attr('class', function (d) {\\n        return $$.isGaugeType(d.data) ? CLASS.gaugeValue : '';\\n    }).text($$.textForArcLabel.bind($$)).attr(\\\"transform\\\", $$.transformForArcLabel.bind($$)).style('font-size', function (d) {\\n        return $$.isGaugeType(d.data) ? Math.round($$.radius / 5) + 'px' : '';\\n    }).transition().duration(duration).style(\\\"opacity\\\", function (d) {\\n        return $$.isTargetToShow(d.data.id) && $$.isArcType(d.data) ? 1 : 0;\\n    });\\n    main.select('.' + CLASS.chartArcsTitle).style(\\\"opacity\\\", $$.hasType('donut') || $$.hasType('gauge') ? 1 : 0);\\n\\n    if ($$.hasType('gauge')) {\\n        $$.arcs.select('.' + CLASS.chartArcsBackground).attr(\\\"d\\\", function () {\\n            var d = {\\n                data: [{ value: config.gauge_max }],\\n                startAngle: config.gauge_startingAngle,\\n                endAngle: -1 * config.gauge_startingAngle\\n            };\\n            return $$.getArc(d, true, true);\\n        });\\n        $$.arcs.select('.' + CLASS.chartArcsGaugeUnit).attr(\\\"dy\\\", \\\".75em\\\").text(config.gauge_label_show ? config.gauge_units : '');\\n        $$.arcs.select('.' + CLASS.chartArcsGaugeMin).attr(\\\"dx\\\", -1 * ($$.innerRadius + ($$.radius - $$.innerRadius) / (config.gauge_fullCircle ? 1 : 2)) + \\\"px\\\").attr(\\\"dy\\\", \\\"1.2em\\\").text(config.gauge_label_show ? $$.textForGaugeMinMax(config.gauge_min, false) : '');\\n        $$.arcs.select('.' + CLASS.chartArcsGaugeMax).attr(\\\"dx\\\", $$.innerRadius + ($$.radius - $$.innerRadius) / (config.gauge_fullCircle ? 1 : 2) + \\\"px\\\").attr(\\\"dy\\\", \\\"1.2em\\\").text(config.gauge_label_show ? $$.textForGaugeMinMax(config.gauge_max, true) : '');\\n    }\\n};\\nc3_chart_internal_fn.initGauge = function () {\\n    var arcs = this.arcs;\\n    if (this.hasType('gauge')) {\\n        arcs.append('path').attr(\\\"class\\\", CLASS.chartArcsBackground);\\n        arcs.append(\\\"text\\\").attr(\\\"class\\\", CLASS.chartArcsGaugeUnit).style(\\\"text-anchor\\\", \\\"middle\\\").style(\\\"pointer-events\\\", \\\"none\\\");\\n        arcs.append(\\\"text\\\").attr(\\\"class\\\", CLASS.chartArcsGaugeMin).style(\\\"text-anchor\\\", \\\"middle\\\").style(\\\"pointer-events\\\", \\\"none\\\");\\n        arcs.append(\\\"text\\\").attr(\\\"class\\\", CLASS.chartArcsGaugeMax).style(\\\"text-anchor\\\", \\\"middle\\\").style(\\\"pointer-events\\\", \\\"none\\\");\\n    }\\n};\\nc3_chart_internal_fn.getGaugeLabelHeight = function () {\\n    return this.config.gauge_label_show ? 20 : 0;\\n};\\n\\nc3_chart_internal_fn.hasCaches = function (ids) {\\n    for (var i = 0; i < ids.length; i++) {\\n        if (!(ids[i] in this.cache)) {\\n            return false;\\n        }\\n    }\\n    return true;\\n};\\nc3_chart_internal_fn.addCache = function (id, target) {\\n    this.cache[id] = this.cloneTarget(target);\\n};\\nc3_chart_internal_fn.getCaches = function (ids) {\\n    var targets = [],\\n        i;\\n    for (i = 0; i < ids.length; i++) {\\n        if (ids[i] in this.cache) {\\n            targets.push(this.cloneTarget(this.cache[ids[i]]));\\n        }\\n    }\\n    return targets;\\n};\\n\\nc3_chart_internal_fn.categoryName = function (i) {\\n    var config = this.config;\\n    return i < config.axis_x_categories.length ? config.axis_x_categories[i] : i;\\n};\\n\\nc3_chart_internal_fn.generateClass = function (prefix, targetId) {\\n    return \\\" \\\" + prefix + \\\" \\\" + prefix + this.getTargetSelectorSuffix(targetId);\\n};\\nc3_chart_internal_fn.classText = function (d) {\\n    return this.generateClass(CLASS.text, d.index);\\n};\\nc3_chart_internal_fn.classTexts = function (d) {\\n    return this.generateClass(CLASS.texts, d.id);\\n};\\nc3_chart_internal_fn.classShape = function (d) {\\n    return this.generateClass(CLASS.shape, d.index);\\n};\\nc3_chart_internal_fn.classShapes = function (d) {\\n    return this.generateClass(CLASS.shapes, d.id);\\n};\\nc3_chart_internal_fn.classLine = function (d) {\\n    return this.classShape(d) + this.generateClass(CLASS.line, d.id);\\n};\\nc3_chart_internal_fn.classLines = function (d) {\\n    return this.classShapes(d) + this.generateClass(CLASS.lines, d.id);\\n};\\nc3_chart_internal_fn.classCircle = function (d) {\\n    return this.classShape(d) + this.generateClass(CLASS.circle, d.index);\\n};\\nc3_chart_internal_fn.classCircles = function (d) {\\n    return this.classShapes(d) + this.generateClass(CLASS.circles, d.id);\\n};\\nc3_chart_internal_fn.classBar = function (d) {\\n    return this.classShape(d) + this.generateClass(CLASS.bar, d.index);\\n};\\nc3_chart_internal_fn.classBars = function (d) {\\n    return this.classShapes(d) + this.generateClass(CLASS.bars, d.id);\\n};\\nc3_chart_internal_fn.classArc = function (d) {\\n    return this.classShape(d.data) + this.generateClass(CLASS.arc, d.data.id);\\n};\\nc3_chart_internal_fn.classArcs = function (d) {\\n    return this.classShapes(d.data) + this.generateClass(CLASS.arcs, d.data.id);\\n};\\nc3_chart_internal_fn.classArea = function (d) {\\n    return this.classShape(d) + this.generateClass(CLASS.area, d.id);\\n};\\nc3_chart_internal_fn.classAreas = function (d) {\\n    return this.classShapes(d) + this.generateClass(CLASS.areas, d.id);\\n};\\nc3_chart_internal_fn.classRegion = function (d, i) {\\n    return this.generateClass(CLASS.region, i) + ' ' + ('class' in d ? d['class'] : '');\\n};\\nc3_chart_internal_fn.classEvent = function (d) {\\n    return this.generateClass(CLASS.eventRect, d.index);\\n};\\nc3_chart_internal_fn.classTarget = function (id) {\\n    var $$ = this;\\n    var additionalClassSuffix = $$.config.data_classes[id],\\n        additionalClass = '';\\n    if (additionalClassSuffix) {\\n        additionalClass = ' ' + CLASS.target + '-' + additionalClassSuffix;\\n    }\\n    return $$.generateClass(CLASS.target, id) + additionalClass;\\n};\\nc3_chart_internal_fn.classFocus = function (d) {\\n    return this.classFocused(d) + this.classDefocused(d);\\n};\\nc3_chart_internal_fn.classFocused = function (d) {\\n    return ' ' + (this.focusedTargetIds.indexOf(d.id) >= 0 ? CLASS.focused : '');\\n};\\nc3_chart_internal_fn.classDefocused = function (d) {\\n    return ' ' + (this.defocusedTargetIds.indexOf(d.id) >= 0 ? CLASS.defocused : '');\\n};\\nc3_chart_internal_fn.classChartText = function (d) {\\n    return CLASS.chartText + this.classTarget(d.id);\\n};\\nc3_chart_internal_fn.classChartLine = function (d) {\\n    return CLASS.chartLine + this.classTarget(d.id);\\n};\\nc3_chart_internal_fn.classChartBar = function (d) {\\n    return CLASS.chartBar + this.classTarget(d.id);\\n};\\nc3_chart_internal_fn.classChartArc = function (d) {\\n    return CLASS.chartArc + this.classTarget(d.data.id);\\n};\\nc3_chart_internal_fn.getTargetSelectorSuffix = function (targetId) {\\n    return targetId || targetId === 0 ? ('-' + targetId).replace(/[\\\\s?!@#$%^&*()_=+,.<>'\\\":;\\\\[\\\\]\\\\/|~`{}\\\\\\\\]/g, '-') : '';\\n};\\nc3_chart_internal_fn.selectorTarget = function (id, prefix) {\\n    return (prefix || '') + '.' + CLASS.target + this.getTargetSelectorSuffix(id);\\n};\\nc3_chart_internal_fn.selectorTargets = function (ids, prefix) {\\n    var $$ = this;\\n    ids = ids || [];\\n    return ids.length ? ids.map(function (id) {\\n        return $$.selectorTarget(id, prefix);\\n    }) : null;\\n};\\nc3_chart_internal_fn.selectorLegend = function (id) {\\n    return '.' + CLASS.legendItem + this.getTargetSelectorSuffix(id);\\n};\\nc3_chart_internal_fn.selectorLegends = function (ids) {\\n    var $$ = this;\\n    return ids && ids.length ? ids.map(function (id) {\\n        return $$.selectorLegend(id);\\n    }) : null;\\n};\\n\\nc3_chart_internal_fn.getClipPath = function (id) {\\n    var isIE9 = window.navigator.appVersion.toLowerCase().indexOf(\\\"msie 9.\\\") >= 0;\\n    return \\\"url(\\\" + (isIE9 ? \\\"\\\" : document.URL.split('#')[0]) + \\\"#\\\" + id + \\\")\\\";\\n};\\nc3_chart_internal_fn.appendClip = function (parent, id) {\\n    return parent.append(\\\"clipPath\\\").attr(\\\"id\\\", id).append(\\\"rect\\\");\\n};\\nc3_chart_internal_fn.getAxisClipX = function (forHorizontal) {\\n    // axis line width + padding for left\\n    var left = Math.max(30, this.margin.left);\\n    return forHorizontal ? -(1 + left) : -(left - 1);\\n};\\nc3_chart_internal_fn.getAxisClipY = function (forHorizontal) {\\n    return forHorizontal ? -20 : -this.margin.top;\\n};\\nc3_chart_internal_fn.getXAxisClipX = function () {\\n    var $$ = this;\\n    return $$.getAxisClipX(!$$.config.axis_rotated);\\n};\\nc3_chart_internal_fn.getXAxisClipY = function () {\\n    var $$ = this;\\n    return $$.getAxisClipY(!$$.config.axis_rotated);\\n};\\nc3_chart_internal_fn.getYAxisClipX = function () {\\n    var $$ = this;\\n    return $$.config.axis_y_inner ? -1 : $$.getAxisClipX($$.config.axis_rotated);\\n};\\nc3_chart_internal_fn.getYAxisClipY = function () {\\n    var $$ = this;\\n    return $$.getAxisClipY($$.config.axis_rotated);\\n};\\nc3_chart_internal_fn.getAxisClipWidth = function (forHorizontal) {\\n    var $$ = this,\\n        left = Math.max(30, $$.margin.left),\\n        right = Math.max(30, $$.margin.right);\\n    // width + axis line width + padding for left/right\\n    return forHorizontal ? $$.width + 2 + left + right : $$.margin.left + 20;\\n};\\nc3_chart_internal_fn.getAxisClipHeight = function (forHorizontal) {\\n    // less than 20 is not enough to show the axis label 'outer' without legend\\n    return (forHorizontal ? this.margin.bottom : this.margin.top + this.height) + 20;\\n};\\nc3_chart_internal_fn.getXAxisClipWidth = function () {\\n    var $$ = this;\\n    return $$.getAxisClipWidth(!$$.config.axis_rotated);\\n};\\nc3_chart_internal_fn.getXAxisClipHeight = function () {\\n    var $$ = this;\\n    return $$.getAxisClipHeight(!$$.config.axis_rotated);\\n};\\nc3_chart_internal_fn.getYAxisClipWidth = function () {\\n    var $$ = this;\\n    return $$.getAxisClipWidth($$.config.axis_rotated) + ($$.config.axis_y_inner ? 20 : 0);\\n};\\nc3_chart_internal_fn.getYAxisClipHeight = function () {\\n    var $$ = this;\\n    return $$.getAxisClipHeight($$.config.axis_rotated);\\n};\\n\\nc3_chart_internal_fn.generateColor = function () {\\n    var $$ = this,\\n        config = $$.config,\\n        d3 = $$.d3,\\n        colors = config.data_colors,\\n        pattern = notEmpty(config.color_pattern) ? config.color_pattern : d3.scale.category10().range(),\\n        callback = config.data_color,\\n        ids = [];\\n\\n    return function (d) {\\n        var id = d.id || d.data && d.data.id || d,\\n            color;\\n\\n        // if callback function is provided\\n        if (colors[id] instanceof Function) {\\n            color = colors[id](d);\\n        }\\n        // if specified, choose that color\\n        else if (colors[id]) {\\n                color = colors[id];\\n            }\\n            // if not specified, choose from pattern\\n            else {\\n                    if (ids.indexOf(id) < 0) {\\n                        ids.push(id);\\n                    }\\n                    color = pattern[ids.indexOf(id) % pattern.length];\\n                    colors[id] = color;\\n                }\\n        return callback instanceof Function ? callback(color, d) : color;\\n    };\\n};\\nc3_chart_internal_fn.generateLevelColor = function () {\\n    var $$ = this,\\n        config = $$.config,\\n        colors = config.color_pattern,\\n        threshold = config.color_threshold,\\n        asValue = threshold.unit === 'value',\\n        values = threshold.values && threshold.values.length ? threshold.values : [],\\n        max = threshold.max || 100;\\n    return notEmpty(config.color_threshold) ? function (value) {\\n        var i,\\n            v,\\n            color = colors[colors.length - 1];\\n        for (i = 0; i < values.length; i++) {\\n            v = asValue ? value : value * 100 / max;\\n            if (v < values[i]) {\\n                color = colors[i];\\n                break;\\n            }\\n        }\\n        return color;\\n    } : null;\\n};\\n\\nc3_chart_internal_fn.getDefaultConfig = function () {\\n    var config = {\\n        bindto: '#chart',\\n        svg_classname: undefined,\\n        size_width: undefined,\\n        size_height: undefined,\\n        padding_left: undefined,\\n        padding_right: undefined,\\n        padding_top: undefined,\\n        padding_bottom: undefined,\\n        resize_auto: true,\\n        zoom_enabled: false,\\n        zoom_extent: undefined,\\n        zoom_privileged: false,\\n        zoom_rescale: false,\\n        zoom_onzoom: function zoom_onzoom() {},\\n        zoom_onzoomstart: function zoom_onzoomstart() {},\\n        zoom_onzoomend: function zoom_onzoomend() {},\\n        zoom_x_min: undefined,\\n        zoom_x_max: undefined,\\n        interaction_brighten: true,\\n        interaction_enabled: true,\\n        onmouseover: function onmouseover() {},\\n        onmouseout: function onmouseout() {},\\n        onresize: function onresize() {},\\n        onresized: function onresized() {},\\n        oninit: function oninit() {},\\n        onrendered: function onrendered() {},\\n        transition_duration: 350,\\n        data_x: undefined,\\n        data_xs: {},\\n        data_xFormat: '%Y-%m-%d',\\n        data_xLocaltime: true,\\n        data_xSort: true,\\n        data_idConverter: function data_idConverter(id) {\\n            return id;\\n        },\\n        data_names: {},\\n        data_classes: {},\\n        data_groups: [],\\n        data_axes: {},\\n        data_type: undefined,\\n        data_types: {},\\n        data_labels: {},\\n        data_order: 'desc',\\n        data_regions: {},\\n        data_color: undefined,\\n        data_colors: {},\\n        data_hide: false,\\n        data_filter: undefined,\\n        data_selection_enabled: false,\\n        data_selection_grouped: false,\\n        data_selection_isselectable: function data_selection_isselectable() {\\n            return true;\\n        },\\n        data_selection_multiple: true,\\n        data_selection_draggable: false,\\n        data_onclick: function data_onclick() {},\\n        data_onmouseover: function data_onmouseover() {},\\n        data_onmouseout: function data_onmouseout() {},\\n        data_onselected: function data_onselected() {},\\n        data_onunselected: function data_onunselected() {},\\n        data_url: undefined,\\n        data_headers: undefined,\\n        data_json: undefined,\\n        data_rows: undefined,\\n        data_columns: undefined,\\n        data_mimeType: undefined,\\n        data_keys: undefined,\\n        // configuration for no plot-able data supplied.\\n        data_empty_label_text: \\\"\\\",\\n        // subchart\\n        subchart_show: false,\\n        subchart_size_height: 60,\\n        subchart_axis_x_show: true,\\n        subchart_onbrush: function subchart_onbrush() {},\\n        // color\\n        color_pattern: [],\\n        color_threshold: {},\\n        // legend\\n        legend_show: true,\\n        legend_hide: false,\\n        legend_position: 'right',\\n        legend_inset_anchor: 'top-right',\\n        legend_inset_x: 10,\\n        legend_inset_y: 0,\\n        legend_inset_step: undefined,\\n        legend_item_onclick: undefined,\\n        legend_item_onmouseover: undefined,\\n        legend_item_onmouseout: undefined,\\n        legend_equally: false,\\n        legend_padding: 0,\\n        legend_item_tile_width: 15,\\n        legend_item_tile_height: 15,\\n        // axis\\n        axis_rotated: false,\\n        axis_x_show: true,\\n        axis_x_type: 'indexed',\\n        axis_x_localtime: true,\\n        axis_x_categories: [],\\n        axis_x_tick_centered: false,\\n        axis_x_tick_format: undefined,\\n        axis_x_tick_culling: {},\\n        axis_x_tick_culling_max: 10,\\n        axis_x_tick_count: undefined,\\n        axis_x_tick_fit: true,\\n        axis_x_tick_values: null,\\n        axis_x_tick_rotate: 0,\\n        axis_x_tick_outer: true,\\n        axis_x_tick_multiline: true,\\n        axis_x_tick_width: null,\\n        axis_x_max: undefined,\\n        axis_x_min: undefined,\\n        axis_x_padding: {},\\n        axis_x_height: undefined,\\n        axis_x_extent: undefined,\\n        axis_x_label: {},\\n        axis_y_show: true,\\n        axis_y_type: undefined,\\n        axis_y_max: undefined,\\n        axis_y_min: undefined,\\n        axis_y_inverted: false,\\n        axis_y_center: undefined,\\n        axis_y_inner: undefined,\\n        axis_y_label: {},\\n        axis_y_tick_format: undefined,\\n        axis_y_tick_outer: true,\\n        axis_y_tick_values: null,\\n        axis_y_tick_rotate: 0,\\n        axis_y_tick_count: undefined,\\n        axis_y_tick_time_value: undefined,\\n        axis_y_tick_time_interval: undefined,\\n        axis_y_padding: {},\\n        axis_y_default: undefined,\\n        axis_y2_show: false,\\n        axis_y2_max: undefined,\\n        axis_y2_min: undefined,\\n        axis_y2_inverted: false,\\n        axis_y2_center: undefined,\\n        axis_y2_inner: undefined,\\n        axis_y2_label: {},\\n        axis_y2_tick_format: undefined,\\n        axis_y2_tick_outer: true,\\n        axis_y2_tick_values: null,\\n        axis_y2_tick_count: undefined,\\n        axis_y2_padding: {},\\n        axis_y2_default: undefined,\\n        // grid\\n        grid_x_show: false,\\n        grid_x_type: 'tick',\\n        grid_x_lines: [],\\n        grid_y_show: false,\\n        // not used\\n        // grid_y_type: 'tick',\\n        grid_y_lines: [],\\n        grid_y_ticks: 10,\\n        grid_focus_show: true,\\n        grid_lines_front: true,\\n        // point - point of each data\\n        point_show: true,\\n        point_r: 2.5,\\n        point_sensitivity: 10,\\n        point_focus_expand_enabled: true,\\n        point_focus_expand_r: undefined,\\n        point_select_r: undefined,\\n        // line\\n        line_connectNull: false,\\n        line_step_type: 'step',\\n        // bar\\n        bar_width: undefined,\\n        bar_width_ratio: 0.6,\\n        bar_width_max: undefined,\\n        bar_zerobased: true,\\n        // area\\n        area_zerobased: true,\\n        area_above: false,\\n        // pie\\n        pie_label_show: true,\\n        pie_label_format: undefined,\\n        pie_label_threshold: 0.05,\\n        pie_label_ratio: undefined,\\n        pie_expand: {},\\n        pie_expand_duration: 50,\\n        // gauge\\n        gauge_fullCircle: false,\\n        gauge_label_show: true,\\n        gauge_label_format: undefined,\\n        gauge_min: 0,\\n        gauge_max: 100,\\n        gauge_startingAngle: -1 * Math.PI / 2,\\n        gauge_label_extents: undefined,\\n        gauge_units: undefined,\\n        gauge_width: undefined,\\n        gauge_expand: {},\\n        gauge_expand_duration: 50,\\n        // donut\\n        donut_label_show: true,\\n        donut_label_format: undefined,\\n        donut_label_threshold: 0.05,\\n        donut_label_ratio: undefined,\\n        donut_width: undefined,\\n        donut_title: \\\"\\\",\\n        donut_expand: {},\\n        donut_expand_duration: 50,\\n        // spline\\n        spline_interpolation_type: 'cardinal',\\n        // region - region to change style\\n        regions: [],\\n        // tooltip - show when mouseover on each data\\n        tooltip_show: true,\\n        tooltip_grouped: true,\\n        tooltip_order: undefined,\\n        tooltip_format_title: undefined,\\n        tooltip_format_name: undefined,\\n        tooltip_format_value: undefined,\\n        tooltip_position: undefined,\\n        tooltip_contents: function tooltip_contents(d, defaultTitleFormat, defaultValueFormat, color) {\\n            return this.getTooltipContent ? this.getTooltipContent(d, defaultTitleFormat, defaultValueFormat, color) : '';\\n        },\\n        tooltip_init_show: false,\\n        tooltip_init_x: 0,\\n        tooltip_init_position: { top: '0px', left: '50px' },\\n        tooltip_onshow: function tooltip_onshow() {},\\n        tooltip_onhide: function tooltip_onhide() {},\\n        // title\\n        title_text: undefined,\\n        title_padding: {\\n            top: 0,\\n            right: 0,\\n            bottom: 0,\\n            left: 0\\n        },\\n        title_position: 'top-center'\\n    };\\n\\n    Object.keys(this.additionalConfig).forEach(function (key) {\\n        config[key] = this.additionalConfig[key];\\n    }, this);\\n\\n    return config;\\n};\\nc3_chart_internal_fn.additionalConfig = {};\\n\\nc3_chart_internal_fn.loadConfig = function (config) {\\n    var this_config = this.config,\\n        target,\\n        keys,\\n        read;\\n    function find() {\\n        var key = keys.shift();\\n        //        console.log(\\\"key =>\\\", key, \\\", target =>\\\", target);\\n        if (key && target && (typeof target === 'undefined' ? 'undefined' : _typeof(target)) === 'object' && key in target) {\\n            target = target[key];\\n            return find();\\n        } else if (!key) {\\n            return target;\\n        } else {\\n            return undefined;\\n        }\\n    }\\n    Object.keys(this_config).forEach(function (key) {\\n        target = config;\\n        keys = key.split('_');\\n        read = find();\\n        //        console.log(\\\"CONFIG : \\\", key, read);\\n        if (isDefined(read)) {\\n            this_config[key] = read;\\n        }\\n    });\\n};\\n\\nc3_chart_internal_fn.convertUrlToData = function (url, mimeType, headers, keys, done) {\\n    var $$ = this,\\n        type = mimeType ? mimeType : 'csv';\\n    var req = $$.d3.xhr(url);\\n    if (headers) {\\n        Object.keys(headers).forEach(function (header) {\\n            req.header(header, headers[header]);\\n        });\\n    }\\n    req.get(function (error, data) {\\n        var d;\\n        var dataResponse = data.response || data.responseText; // Fixes IE9 XHR issue; see #1345\\n        if (!data) {\\n            throw new Error(error.responseURL + ' ' + error.status + ' (' + error.statusText + ')');\\n        }\\n        if (type === 'json') {\\n            d = $$.convertJsonToData(JSON.parse(dataResponse), keys);\\n        } else if (type === 'tsv') {\\n            d = $$.convertTsvToData(dataResponse);\\n        } else {\\n            d = $$.convertCsvToData(dataResponse);\\n        }\\n        done.call($$, d);\\n    });\\n};\\nc3_chart_internal_fn.convertXsvToData = function (xsv, parser) {\\n    var rows = parser.parseRows(xsv),\\n        d;\\n    if (rows.length === 1) {\\n        d = [{}];\\n        rows[0].forEach(function (id) {\\n            d[0][id] = null;\\n        });\\n    } else {\\n        d = parser.parse(xsv);\\n    }\\n    return d;\\n};\\nc3_chart_internal_fn.convertCsvToData = function (csv) {\\n    return this.convertXsvToData(csv, this.d3.csv);\\n};\\nc3_chart_internal_fn.convertTsvToData = function (tsv) {\\n    return this.convertXsvToData(tsv, this.d3.tsv);\\n};\\nc3_chart_internal_fn.convertJsonToData = function (json, keys) {\\n    var $$ = this,\\n        new_rows = [],\\n        targetKeys,\\n        data;\\n    if (keys) {\\n        // when keys specified, json would be an array that includes objects\\n        if (keys.x) {\\n            targetKeys = keys.value.concat(keys.x);\\n            $$.config.data_x = keys.x;\\n        } else {\\n            targetKeys = keys.value;\\n        }\\n        new_rows.push(targetKeys);\\n        json.forEach(function (o) {\\n            var new_row = [];\\n            targetKeys.forEach(function (key) {\\n                // convert undefined to null because undefined data will be removed in convertDataToTargets()\\n                var v = $$.findValueInJson(o, key);\\n                if (isUndefined(v)) {\\n                    v = null;\\n                }\\n                new_row.push(v);\\n            });\\n            new_rows.push(new_row);\\n        });\\n        data = $$.convertRowsToData(new_rows);\\n    } else {\\n        Object.keys(json).forEach(function (key) {\\n            new_rows.push([key].concat(json[key]));\\n        });\\n        data = $$.convertColumnsToData(new_rows);\\n    }\\n    return data;\\n};\\nc3_chart_internal_fn.findValueInJson = function (object, path) {\\n    path = path.replace(/\\\\[(\\\\w+)\\\\]/g, '.$1'); // convert indexes to properties (replace [] with .)\\n    path = path.replace(/^\\\\./, ''); // strip a leading dot\\n    var pathArray = path.split('.');\\n    for (var i = 0; i < pathArray.length; ++i) {\\n        var k = pathArray[i];\\n        if (k in object) {\\n            object = object[k];\\n        } else {\\n            return;\\n        }\\n    }\\n    return object;\\n};\\n\\n/**\\n * Converts the rows to normalized data.\\n * @param {any[][]} rows The row data\\n * @return {Object[]}\\n */\\nc3_chart_internal_fn.convertRowsToData = function (rows) {\\n    var newRows = [];\\n    var keys = rows[0];\\n\\n    for (var i = 1; i < rows.length; i++) {\\n        var newRow = {};\\n        for (var j = 0; j < rows[i].length; j++) {\\n            if (isUndefined(rows[i][j])) {\\n                throw new Error(\\\"Source data is missing a component at (\\\" + i + \\\",\\\" + j + \\\")!\\\");\\n            }\\n            newRow[keys[j]] = rows[i][j];\\n        }\\n        newRows.push(newRow);\\n    }\\n    return newRows;\\n};\\n\\n/**\\n * Converts the columns to normalized data.\\n * @param {any[][]} columns The column data\\n * @return {Object[]}\\n */\\nc3_chart_internal_fn.convertColumnsToData = function (columns) {\\n    var newRows = [];\\n\\n    for (var i = 0; i < columns.length; i++) {\\n        var key = columns[i][0];\\n        for (var j = 1; j < columns[i].length; j++) {\\n            if (isUndefined(newRows[j - 1])) {\\n                newRows[j - 1] = {};\\n            }\\n            if (isUndefined(columns[i][j])) {\\n                throw new Error(\\\"Source data is missing a component at (\\\" + i + \\\",\\\" + j + \\\")!\\\");\\n            }\\n            newRows[j - 1][key] = columns[i][j];\\n        }\\n    }\\n\\n    return newRows;\\n};\\n\\nc3_chart_internal_fn.convertDataToTargets = function (data, appendXs) {\\n    var $$ = this,\\n        config = $$.config,\\n        ids = $$.d3.keys(data[0]).filter($$.isNotX, $$),\\n        xs = $$.d3.keys(data[0]).filter($$.isX, $$),\\n        targets;\\n\\n    // save x for update data by load when custom x and c3.x API\\n    ids.forEach(function (id) {\\n        var xKey = $$.getXKey(id);\\n\\n        if ($$.isCustomX() || $$.isTimeSeries()) {\\n            // if included in input data\\n            if (xs.indexOf(xKey) >= 0) {\\n                $$.data.xs[id] = (appendXs && $$.data.xs[id] ? $$.data.xs[id] : []).concat(data.map(function (d) {\\n                    return d[xKey];\\n                }).filter(isValue).map(function (rawX, i) {\\n                    return $$.generateTargetX(rawX, id, i);\\n                }));\\n            }\\n            // if not included in input data, find from preloaded data of other id's x\\n            else if (config.data_x) {\\n                    $$.data.xs[id] = $$.getOtherTargetXs();\\n                }\\n                // if not included in input data, find from preloaded data\\n                else if (notEmpty(config.data_xs)) {\\n                        $$.data.xs[id] = $$.getXValuesOfXKey(xKey, $$.data.targets);\\n                    }\\n            // MEMO: if no x included, use same x of current will be used\\n        } else {\\n            $$.data.xs[id] = data.map(function (d, i) {\\n                return i;\\n            });\\n        }\\n    });\\n\\n    // check x is defined\\n    ids.forEach(function (id) {\\n        if (!$$.data.xs[id]) {\\n            throw new Error('x is not defined for id = \\\"' + id + '\\\".');\\n        }\\n    });\\n\\n    // convert to target\\n    targets = ids.map(function (id, index) {\\n        var convertedId = config.data_idConverter(id);\\n        return {\\n            id: convertedId,\\n            id_org: id,\\n            values: data.map(function (d, i) {\\n                var xKey = $$.getXKey(id),\\n                    rawX = d[xKey],\\n                    value = d[id] !== null && !isNaN(d[id]) ? +d[id] : null,\\n                    x;\\n                // use x as categories if custom x and categorized\\n                if ($$.isCustomX() && $$.isCategorized() && !isUndefined(rawX)) {\\n                    if (index === 0 && i === 0) {\\n                        config.axis_x_categories = [];\\n                    }\\n                    x = config.axis_x_categories.indexOf(rawX);\\n                    if (x === -1) {\\n                        x = config.axis_x_categories.length;\\n                        config.axis_x_categories.push(rawX);\\n                    }\\n                } else {\\n                    x = $$.generateTargetX(rawX, id, i);\\n                }\\n                // mark as x = undefined if value is undefined and filter to remove after mapped\\n                if (isUndefined(d[id]) || $$.data.xs[id].length <= i) {\\n                    x = undefined;\\n                }\\n                return { x: x, value: value, id: convertedId };\\n            }).filter(function (v) {\\n                return isDefined(v.x);\\n            })\\n        };\\n    });\\n\\n    // finish targets\\n    targets.forEach(function (t) {\\n        var i;\\n        // sort values by its x\\n        if (config.data_xSort) {\\n            t.values = t.values.sort(function (v1, v2) {\\n                var x1 = v1.x || v1.x === 0 ? v1.x : Infinity,\\n                    x2 = v2.x || v2.x === 0 ? v2.x : Infinity;\\n                return x1 - x2;\\n            });\\n        }\\n        // indexing each value\\n        i = 0;\\n        t.values.forEach(function (v) {\\n            v.index = i++;\\n        });\\n        // this needs to be sorted because its index and value.index is identical\\n        $$.data.xs[t.id].sort(function (v1, v2) {\\n            return v1 - v2;\\n        });\\n    });\\n\\n    // cache information about values\\n    $$.hasNegativeValue = $$.hasNegativeValueInTargets(targets);\\n    $$.hasPositiveValue = $$.hasPositiveValueInTargets(targets);\\n\\n    // set target types\\n    if (config.data_type) {\\n        $$.setTargetType($$.mapToIds(targets).filter(function (id) {\\n            return !(id in config.data_types);\\n        }), config.data_type);\\n    }\\n\\n    // cache as original id keyed\\n    targets.forEach(function (d) {\\n        $$.addCache(d.id_org, d);\\n    });\\n\\n    return targets;\\n};\\n\\nc3_chart_internal_fn.isX = function (key) {\\n    var $$ = this,\\n        config = $$.config;\\n    return config.data_x && key === config.data_x || notEmpty(config.data_xs) && hasValue(config.data_xs, key);\\n};\\nc3_chart_internal_fn.isNotX = function (key) {\\n    return !this.isX(key);\\n};\\nc3_chart_internal_fn.getXKey = function (id) {\\n    var $$ = this,\\n        config = $$.config;\\n    return config.data_x ? config.data_x : notEmpty(config.data_xs) ? config.data_xs[id] : null;\\n};\\nc3_chart_internal_fn.getXValuesOfXKey = function (key, targets) {\\n    var $$ = this,\\n        xValues,\\n        ids = targets && notEmpty(targets) ? $$.mapToIds(targets) : [];\\n    ids.forEach(function (id) {\\n        if ($$.getXKey(id) === key) {\\n            xValues = $$.data.xs[id];\\n        }\\n    });\\n    return xValues;\\n};\\nc3_chart_internal_fn.getIndexByX = function (x) {\\n    var $$ = this,\\n        data = $$.filterByX($$.data.targets, x);\\n    return data.length ? data[0].index : null;\\n};\\nc3_chart_internal_fn.getXValue = function (id, i) {\\n    var $$ = this;\\n    return id in $$.data.xs && $$.data.xs[id] && isValue($$.data.xs[id][i]) ? $$.data.xs[id][i] : i;\\n};\\nc3_chart_internal_fn.getOtherTargetXs = function () {\\n    var $$ = this,\\n        idsForX = Object.keys($$.data.xs);\\n    return idsForX.length ? $$.data.xs[idsForX[0]] : null;\\n};\\nc3_chart_internal_fn.getOtherTargetX = function (index) {\\n    var xs = this.getOtherTargetXs();\\n    return xs && index < xs.length ? xs[index] : null;\\n};\\nc3_chart_internal_fn.addXs = function (xs) {\\n    var $$ = this;\\n    Object.keys(xs).forEach(function (id) {\\n        $$.config.data_xs[id] = xs[id];\\n    });\\n};\\nc3_chart_internal_fn.hasMultipleX = function (xs) {\\n    return this.d3.set(Object.keys(xs).map(function (id) {\\n        return xs[id];\\n    })).size() > 1;\\n};\\nc3_chart_internal_fn.isMultipleX = function () {\\n    return notEmpty(this.config.data_xs) || !this.config.data_xSort || this.hasType('scatter');\\n};\\nc3_chart_internal_fn.addName = function (data) {\\n    var $$ = this,\\n        name;\\n    if (data) {\\n        name = $$.config.data_names[data.id];\\n        data.name = name !== undefined ? name : data.id;\\n    }\\n    return data;\\n};\\nc3_chart_internal_fn.getValueOnIndex = function (values, index) {\\n    var valueOnIndex = values.filter(function (v) {\\n        return v.index === index;\\n    });\\n    return valueOnIndex.length ? valueOnIndex[0] : null;\\n};\\nc3_chart_internal_fn.updateTargetX = function (targets, x) {\\n    var $$ = this;\\n    targets.forEach(function (t) {\\n        t.values.forEach(function (v, i) {\\n            v.x = $$.generateTargetX(x[i], t.id, i);\\n        });\\n        $$.data.xs[t.id] = x;\\n    });\\n};\\nc3_chart_internal_fn.updateTargetXs = function (targets, xs) {\\n    var $$ = this;\\n    targets.forEach(function (t) {\\n        if (xs[t.id]) {\\n            $$.updateTargetX([t], xs[t.id]);\\n        }\\n    });\\n};\\nc3_chart_internal_fn.generateTargetX = function (rawX, id, index) {\\n    var $$ = this,\\n        x;\\n    if ($$.isTimeSeries()) {\\n        x = rawX ? $$.parseDate(rawX) : $$.parseDate($$.getXValue(id, index));\\n    } else if ($$.isCustomX() && !$$.isCategorized()) {\\n        x = isValue(rawX) ? +rawX : $$.getXValue(id, index);\\n    } else {\\n        x = index;\\n    }\\n    return x;\\n};\\nc3_chart_internal_fn.cloneTarget = function (target) {\\n    return {\\n        id: target.id,\\n        id_org: target.id_org,\\n        values: target.values.map(function (d) {\\n            return { x: d.x, value: d.value, id: d.id };\\n        })\\n    };\\n};\\nc3_chart_internal_fn.updateXs = function () {\\n    var $$ = this;\\n    if ($$.data.targets.length) {\\n        $$.xs = [];\\n        $$.data.targets[0].values.forEach(function (v) {\\n            $$.xs[v.index] = v.x;\\n        });\\n    }\\n};\\nc3_chart_internal_fn.getPrevX = function (i) {\\n    var x = this.xs[i - 1];\\n    return typeof x !== 'undefined' ? x : null;\\n};\\nc3_chart_internal_fn.getNextX = function (i) {\\n    var x = this.xs[i + 1];\\n    return typeof x !== 'undefined' ? x : null;\\n};\\nc3_chart_internal_fn.getMaxDataCount = function () {\\n    var $$ = this;\\n    return $$.d3.max($$.data.targets, function (t) {\\n        return t.values.length;\\n    });\\n};\\nc3_chart_internal_fn.getMaxDataCountTarget = function (targets) {\\n    var length = targets.length,\\n        max = 0,\\n        maxTarget;\\n    if (length > 1) {\\n        targets.forEach(function (t) {\\n            if (t.values.length > max) {\\n                maxTarget = t;\\n                max = t.values.length;\\n            }\\n        });\\n    } else {\\n        maxTarget = length ? targets[0] : null;\\n    }\\n    return maxTarget;\\n};\\nc3_chart_internal_fn.getEdgeX = function (targets) {\\n    var $$ = this;\\n    return !targets.length ? [0, 0] : [$$.d3.min(targets, function (t) {\\n        return t.values[0].x;\\n    }), $$.d3.max(targets, function (t) {\\n        return t.values[t.values.length - 1].x;\\n    })];\\n};\\nc3_chart_internal_fn.mapToIds = function (targets) {\\n    return targets.map(function (d) {\\n        return d.id;\\n    });\\n};\\nc3_chart_internal_fn.mapToTargetIds = function (ids) {\\n    var $$ = this;\\n    return ids ? [].concat(ids) : $$.mapToIds($$.data.targets);\\n};\\nc3_chart_internal_fn.hasTarget = function (targets, id) {\\n    var ids = this.mapToIds(targets),\\n        i;\\n    for (i = 0; i < ids.length; i++) {\\n        if (ids[i] === id) {\\n            return true;\\n        }\\n    }\\n    return false;\\n};\\nc3_chart_internal_fn.isTargetToShow = function (targetId) {\\n    return this.hiddenTargetIds.indexOf(targetId) < 0;\\n};\\nc3_chart_internal_fn.isLegendToShow = function (targetId) {\\n    return this.hiddenLegendIds.indexOf(targetId) < 0;\\n};\\nc3_chart_internal_fn.filterTargetsToShow = function (targets) {\\n    var $$ = this;\\n    return targets.filter(function (t) {\\n        return $$.isTargetToShow(t.id);\\n    });\\n};\\nc3_chart_internal_fn.mapTargetsToUniqueXs = function (targets) {\\n    var $$ = this;\\n    var xs = $$.d3.set($$.d3.merge(targets.map(function (t) {\\n        return t.values.map(function (v) {\\n            return +v.x;\\n        });\\n    }))).values();\\n    xs = $$.isTimeSeries() ? xs.map(function (x) {\\n        return new Date(+x);\\n    }) : xs.map(function (x) {\\n        return +x;\\n    });\\n    return xs.sort(function (a, b) {\\n        return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;\\n    });\\n};\\nc3_chart_internal_fn.addHiddenTargetIds = function (targetIds) {\\n    targetIds = targetIds instanceof Array ? targetIds : new Array(targetIds);\\n    for (var i = 0; i < targetIds.length; i++) {\\n        if (this.hiddenTargetIds.indexOf(targetIds[i]) < 0) {\\n            this.hiddenTargetIds = this.hiddenTargetIds.concat(targetIds[i]);\\n        }\\n    }\\n};\\nc3_chart_internal_fn.removeHiddenTargetIds = function (targetIds) {\\n    this.hiddenTargetIds = this.hiddenTargetIds.filter(function (id) {\\n        return targetIds.indexOf(id) < 0;\\n    });\\n};\\nc3_chart_internal_fn.addHiddenLegendIds = function (targetIds) {\\n    targetIds = targetIds instanceof Array ? targetIds : new Array(targetIds);\\n    for (var i = 0; i < targetIds.length; i++) {\\n        if (this.hiddenLegendIds.indexOf(targetIds[i]) < 0) {\\n            this.hiddenLegendIds = this.hiddenLegendIds.concat(targetIds[i]);\\n        }\\n    }\\n};\\nc3_chart_internal_fn.removeHiddenLegendIds = function (targetIds) {\\n    this.hiddenLegendIds = this.hiddenLegendIds.filter(function (id) {\\n        return targetIds.indexOf(id) < 0;\\n    });\\n};\\nc3_chart_internal_fn.getValuesAsIdKeyed = function (targets) {\\n    var ys = {};\\n    targets.forEach(function (t) {\\n        ys[t.id] = [];\\n        t.values.forEach(function (v) {\\n            ys[t.id].push(v.value);\\n        });\\n    });\\n    return ys;\\n};\\nc3_chart_internal_fn.checkValueInTargets = function (targets, checker) {\\n    var ids = Object.keys(targets),\\n        i,\\n        j,\\n        values;\\n    for (i = 0; i < ids.length; i++) {\\n        values = targets[ids[i]].values;\\n        for (j = 0; j < values.length; j++) {\\n            if (checker(values[j].value)) {\\n                return true;\\n            }\\n        }\\n    }\\n    return false;\\n};\\nc3_chart_internal_fn.hasNegativeValueInTargets = function (targets) {\\n    return this.checkValueInTargets(targets, function (v) {\\n        return v < 0;\\n    });\\n};\\nc3_chart_internal_fn.hasPositiveValueInTargets = function (targets) {\\n    return this.checkValueInTargets(targets, function (v) {\\n        return v > 0;\\n    });\\n};\\nc3_chart_internal_fn.isOrderDesc = function () {\\n    var config = this.config;\\n    return typeof config.data_order === 'string' && config.data_order.toLowerCase() === 'desc';\\n};\\nc3_chart_internal_fn.isOrderAsc = function () {\\n    var config = this.config;\\n    return typeof config.data_order === 'string' && config.data_order.toLowerCase() === 'asc';\\n};\\nc3_chart_internal_fn.orderTargets = function (targets) {\\n    var $$ = this,\\n        config = $$.config,\\n        orderAsc = $$.isOrderAsc(),\\n        orderDesc = $$.isOrderDesc();\\n    if (orderAsc || orderDesc) {\\n        targets.sort(function (t1, t2) {\\n            var reducer = function reducer(p, c) {\\n                return p + Math.abs(c.value);\\n            };\\n            var t1Sum = t1.values.reduce(reducer, 0),\\n                t2Sum = t2.values.reduce(reducer, 0);\\n            return orderAsc ? t2Sum - t1Sum : t1Sum - t2Sum;\\n        });\\n    } else if (isFunction(config.data_order)) {\\n        targets.sort(config.data_order);\\n    } else if (isArray(config.data_order)) {\\n        targets.sort(function (t1, t2) {\\n            return config.data_order.indexOf(t1.id) - config.data_order.indexOf(t2.id);\\n        });\\n    }\\n    return targets;\\n};\\nc3_chart_internal_fn.filterByX = function (targets, x) {\\n    return this.d3.merge(targets.map(function (t) {\\n        return t.values;\\n    })).filter(function (v) {\\n        return v.x - x === 0;\\n    });\\n};\\nc3_chart_internal_fn.filterRemoveNull = function (data) {\\n    return data.filter(function (d) {\\n        return isValue(d.value);\\n    });\\n};\\nc3_chart_internal_fn.filterByXDomain = function (targets, xDomain) {\\n    return targets.map(function (t) {\\n        return {\\n            id: t.id,\\n            id_org: t.id_org,\\n            values: t.values.filter(function (v) {\\n                return xDomain[0] <= v.x && v.x <= xDomain[1];\\n            })\\n        };\\n    });\\n};\\nc3_chart_internal_fn.hasDataLabel = function () {\\n    var config = this.config;\\n    if (typeof config.data_labels === 'boolean' && config.data_labels) {\\n        return true;\\n    } else if (_typeof(config.data_labels) === 'object' && notEmpty(config.data_labels)) {\\n        return true;\\n    }\\n    return false;\\n};\\nc3_chart_internal_fn.getDataLabelLength = function (min, max, key) {\\n    var $$ = this,\\n        lengths = [0, 0],\\n        paddingCoef = 1.3;\\n    $$.selectChart.select('svg').selectAll('.dummy').data([min, max]).enter().append('text').text(function (d) {\\n        return $$.dataLabelFormat(d.id)(d);\\n    }).each(function (d, i) {\\n        lengths[i] = this.getBoundingClientRect()[key] * paddingCoef;\\n    }).remove();\\n    return lengths;\\n};\\nc3_chart_internal_fn.isNoneArc = function (d) {\\n    return this.hasTarget(this.data.targets, d.id);\\n}, c3_chart_internal_fn.isArc = function (d) {\\n    return 'data' in d && this.hasTarget(this.data.targets, d.data.id);\\n};\\nc3_chart_internal_fn.findSameXOfValues = function (values, index) {\\n    var i,\\n        targetX = values[index].x,\\n        sames = [];\\n    for (i = index - 1; i >= 0; i--) {\\n        if (targetX !== values[i].x) {\\n            break;\\n        }\\n        sames.push(values[i]);\\n    }\\n    for (i = index; i < values.length; i++) {\\n        if (targetX !== values[i].x) {\\n            break;\\n        }\\n        sames.push(values[i]);\\n    }\\n    return sames;\\n};\\n\\nc3_chart_internal_fn.findClosestFromTargets = function (targets, pos) {\\n    var $$ = this,\\n        candidates;\\n\\n    // map to array of closest points of each target\\n    candidates = targets.map(function (target) {\\n        return $$.findClosest(target.values, pos);\\n    });\\n\\n    // decide closest point and return\\n    return $$.findClosest(candidates, pos);\\n};\\nc3_chart_internal_fn.findClosest = function (values, pos) {\\n    var $$ = this,\\n        minDist = $$.config.point_sensitivity,\\n        closest;\\n\\n    // find mouseovering bar\\n    values.filter(function (v) {\\n        return v && $$.isBarType(v.id);\\n    }).forEach(function (v) {\\n        var shape = $$.main.select('.' + CLASS.bars + $$.getTargetSelectorSuffix(v.id) + ' .' + CLASS.bar + '-' + v.index).node();\\n        if (!closest && $$.isWithinBar(shape)) {\\n            closest = v;\\n        }\\n    });\\n\\n    // find closest point from non-bar\\n    values.filter(function (v) {\\n        return v && !$$.isBarType(v.id);\\n    }).forEach(function (v) {\\n        var d = $$.dist(v, pos);\\n        if (d < minDist) {\\n            minDist = d;\\n            closest = v;\\n        }\\n    });\\n\\n    return closest;\\n};\\nc3_chart_internal_fn.dist = function (data, pos) {\\n    var $$ = this,\\n        config = $$.config,\\n        xIndex = config.axis_rotated ? 1 : 0,\\n        yIndex = config.axis_rotated ? 0 : 1,\\n        y = $$.circleY(data, data.index),\\n        x = $$.x(data.x);\\n    return Math.sqrt(Math.pow(x - pos[xIndex], 2) + Math.pow(y - pos[yIndex], 2));\\n};\\nc3_chart_internal_fn.convertValuesToStep = function (values) {\\n    var converted = [].concat(values),\\n        i;\\n\\n    if (!this.isCategorized()) {\\n        return values;\\n    }\\n\\n    for (i = values.length + 1; 0 < i; i--) {\\n        converted[i] = converted[i - 1];\\n    }\\n\\n    converted[0] = {\\n        x: converted[0].x - 1,\\n        value: converted[0].value,\\n        id: converted[0].id\\n    };\\n    converted[values.length + 1] = {\\n        x: converted[values.length].x + 1,\\n        value: converted[values.length].value,\\n        id: converted[values.length].id\\n    };\\n\\n    return converted;\\n};\\nc3_chart_internal_fn.updateDataAttributes = function (name, attrs) {\\n    var $$ = this,\\n        config = $$.config,\\n        current = config['data_' + name];\\n    if (typeof attrs === 'undefined') {\\n        return current;\\n    }\\n    Object.keys(attrs).forEach(function (id) {\\n        current[id] = attrs[id];\\n    });\\n    $$.redraw({ withLegend: true });\\n    return current;\\n};\\n\\nc3_chart_internal_fn.load = function (targets, args) {\\n    var $$ = this;\\n    if (targets) {\\n        // filter loading targets if needed\\n        if (args.filter) {\\n            targets = targets.filter(args.filter);\\n        }\\n        // set type if args.types || args.type specified\\n        if (args.type || args.types) {\\n            targets.forEach(function (t) {\\n                var type = args.types && args.types[t.id] ? args.types[t.id] : args.type;\\n                $$.setTargetType(t.id, type);\\n            });\\n        }\\n        // Update/Add data\\n        $$.data.targets.forEach(function (d) {\\n            for (var i = 0; i < targets.length; i++) {\\n                if (d.id === targets[i].id) {\\n                    d.values = targets[i].values;\\n                    targets.splice(i, 1);\\n                    break;\\n                }\\n            }\\n        });\\n        $$.data.targets = $$.data.targets.concat(targets); // add remained\\n    }\\n\\n    // Set targets\\n    $$.updateTargets($$.data.targets);\\n\\n    // Redraw with new targets\\n    $$.redraw({ withUpdateOrgXDomain: true, withUpdateXDomain: true, withLegend: true });\\n\\n    if (args.done) {\\n        args.done();\\n    }\\n};\\nc3_chart_internal_fn.loadFromArgs = function (args) {\\n    var $$ = this;\\n    if (args.data) {\\n        $$.load($$.convertDataToTargets(args.data), args);\\n    } else if (args.url) {\\n        $$.convertUrlToData(args.url, args.mimeType, args.headers, args.keys, function (data) {\\n            $$.load($$.convertDataToTargets(data), args);\\n        });\\n    } else if (args.json) {\\n        $$.load($$.convertDataToTargets($$.convertJsonToData(args.json, args.keys)), args);\\n    } else if (args.rows) {\\n        $$.load($$.convertDataToTargets($$.convertRowsToData(args.rows)), args);\\n    } else if (args.columns) {\\n        $$.load($$.convertDataToTargets($$.convertColumnsToData(args.columns)), args);\\n    } else {\\n        $$.load(null, args);\\n    }\\n};\\nc3_chart_internal_fn.unload = function (targetIds, done) {\\n    var $$ = this;\\n    if (!done) {\\n        done = function done() {};\\n    }\\n    // filter existing target\\n    targetIds = targetIds.filter(function (id) {\\n        return $$.hasTarget($$.data.targets, id);\\n    });\\n    // If no target, call done and return\\n    if (!targetIds || targetIds.length === 0) {\\n        done();\\n        return;\\n    }\\n    $$.svg.selectAll(targetIds.map(function (id) {\\n        return $$.selectorTarget(id);\\n    })).transition().style('opacity', 0).remove().call($$.endall, done);\\n    targetIds.forEach(function (id) {\\n        // Reset fadein for future load\\n        $$.withoutFadeIn[id] = false;\\n        // Remove target's elements\\n        if ($$.legend) {\\n            $$.legend.selectAll('.' + CLASS.legendItem + $$.getTargetSelectorSuffix(id)).remove();\\n        }\\n        // Remove target\\n        $$.data.targets = $$.data.targets.filter(function (t) {\\n            return t.id !== id;\\n        });\\n    });\\n};\\n\\nc3_chart_internal_fn.getYDomainMin = function (targets) {\\n    var $$ = this,\\n        config = $$.config,\\n        ids = $$.mapToIds(targets),\\n        ys = $$.getValuesAsIdKeyed(targets),\\n        j,\\n        k,\\n        baseId,\\n        idsInGroup,\\n        id,\\n        hasNegativeValue;\\n    if (config.data_groups.length > 0) {\\n        hasNegativeValue = $$.hasNegativeValueInTargets(targets);\\n        for (j = 0; j < config.data_groups.length; j++) {\\n            // Determine baseId\\n            idsInGroup = config.data_groups[j].filter(function (id) {\\n                return ids.indexOf(id) >= 0;\\n            });\\n            if (idsInGroup.length === 0) {\\n                continue;\\n            }\\n            baseId = idsInGroup[0];\\n            // Consider negative values\\n            if (hasNegativeValue && ys[baseId]) {\\n                ys[baseId].forEach(function (v, i) {\\n                    ys[baseId][i] = v < 0 ? v : 0;\\n                });\\n            }\\n            // Compute min\\n            for (k = 1; k < idsInGroup.length; k++) {\\n                id = idsInGroup[k];\\n                if (!ys[id]) {\\n                    continue;\\n                }\\n                ys[id].forEach(function (v, i) {\\n                    if ($$.axis.getId(id) === $$.axis.getId(baseId) && ys[baseId] && !(hasNegativeValue && +v > 0)) {\\n                        ys[baseId][i] += +v;\\n                    }\\n                });\\n            }\\n        }\\n    }\\n    return $$.d3.min(Object.keys(ys).map(function (key) {\\n        return $$.d3.min(ys[key]);\\n    }));\\n};\\nc3_chart_internal_fn.getYDomainMax = function (targets) {\\n    var $$ = this,\\n        config = $$.config,\\n        ids = $$.mapToIds(targets),\\n        ys = $$.getValuesAsIdKeyed(targets),\\n        j,\\n        k,\\n        baseId,\\n        idsInGroup,\\n        id,\\n        hasPositiveValue;\\n    if (config.data_groups.length > 0) {\\n        hasPositiveValue = $$.hasPositiveValueInTargets(targets);\\n        for (j = 0; j < config.data_groups.length; j++) {\\n            // Determine baseId\\n            idsInGroup = config.data_groups[j].filter(function (id) {\\n                return ids.indexOf(id) >= 0;\\n            });\\n            if (idsInGroup.length === 0) {\\n                continue;\\n            }\\n            baseId = idsInGroup[0];\\n            // Consider positive values\\n            if (hasPositiveValue && ys[baseId]) {\\n                ys[baseId].forEach(function (v, i) {\\n                    ys[baseId][i] = v > 0 ? v : 0;\\n                });\\n            }\\n            // Compute max\\n            for (k = 1; k < idsInGroup.length; k++) {\\n                id = idsInGroup[k];\\n                if (!ys[id]) {\\n                    continue;\\n                }\\n                ys[id].forEach(function (v, i) {\\n                    if ($$.axis.getId(id) === $$.axis.getId(baseId) && ys[baseId] && !(hasPositiveValue && +v < 0)) {\\n                        ys[baseId][i] += +v;\\n                    }\\n                });\\n            }\\n        }\\n    }\\n    return $$.d3.max(Object.keys(ys).map(function (key) {\\n        return $$.d3.max(ys[key]);\\n    }));\\n};\\nc3_chart_internal_fn.getYDomain = function (targets, axisId, xDomain) {\\n    var $$ = this,\\n        config = $$.config,\\n        targetsByAxisId = targets.filter(function (t) {\\n        return $$.axis.getId(t.id) === axisId;\\n    }),\\n        yTargets = xDomain ? $$.filterByXDomain(targetsByAxisId, xDomain) : targetsByAxisId,\\n        yMin = axisId === 'y2' ? config.axis_y2_min : config.axis_y_min,\\n        yMax = axisId === 'y2' ? config.axis_y2_max : config.axis_y_max,\\n        yDomainMin = $$.getYDomainMin(yTargets),\\n        yDomainMax = $$.getYDomainMax(yTargets),\\n        domain,\\n        domainLength,\\n        padding,\\n        padding_top,\\n        padding_bottom,\\n        center = axisId === 'y2' ? config.axis_y2_center : config.axis_y_center,\\n        yDomainAbs,\\n        lengths,\\n        diff,\\n        ratio,\\n        isAllPositive,\\n        isAllNegative,\\n        isZeroBased = $$.hasType('bar', yTargets) && config.bar_zerobased || $$.hasType('area', yTargets) && config.area_zerobased,\\n        isInverted = axisId === 'y2' ? config.axis_y2_inverted : config.axis_y_inverted,\\n        showHorizontalDataLabel = $$.hasDataLabel() && config.axis_rotated,\\n        showVerticalDataLabel = $$.hasDataLabel() && !config.axis_rotated;\\n\\n    // MEMO: avoid inverting domain unexpectedly\\n    yDomainMin = isValue(yMin) ? yMin : isValue(yMax) ? yDomainMin < yMax ? yDomainMin : yMax - 10 : yDomainMin;\\n    yDomainMax = isValue(yMax) ? yMax : isValue(yMin) ? yMin < yDomainMax ? yDomainMax : yMin + 10 : yDomainMax;\\n\\n    if (yTargets.length === 0) {\\n        // use current domain if target of axisId is none\\n        return axisId === 'y2' ? $$.y2.domain() : $$.y.domain();\\n    }\\n    if (isNaN(yDomainMin)) {\\n        // set minimum to zero when not number\\n        yDomainMin = 0;\\n    }\\n    if (isNaN(yDomainMax)) {\\n        // set maximum to have same value as yDomainMin\\n        yDomainMax = yDomainMin;\\n    }\\n    if (yDomainMin === yDomainMax) {\\n        yDomainMin < 0 ? yDomainMax = 0 : yDomainMin = 0;\\n    }\\n    isAllPositive = yDomainMin >= 0 && yDomainMax >= 0;\\n    isAllNegative = yDomainMin <= 0 && yDomainMax <= 0;\\n\\n    // Cancel zerobased if axis_*_min / axis_*_max specified\\n    if (isValue(yMin) && isAllPositive || isValue(yMax) && isAllNegative) {\\n        isZeroBased = false;\\n    }\\n\\n    // Bar/Area chart should be 0-based if all positive|negative\\n    if (isZeroBased) {\\n        if (isAllPositive) {\\n            yDomainMin = 0;\\n        }\\n        if (isAllNegative) {\\n            yDomainMax = 0;\\n        }\\n    }\\n\\n    domainLength = Math.abs(yDomainMax - yDomainMin);\\n    padding = padding_top = padding_bottom = domainLength * 0.1;\\n\\n    if (typeof center !== 'undefined') {\\n        yDomainAbs = Math.max(Math.abs(yDomainMin), Math.abs(yDomainMax));\\n        yDomainMax = center + yDomainAbs;\\n        yDomainMin = center - yDomainAbs;\\n    }\\n    // add padding for data label\\n    if (showHorizontalDataLabel) {\\n        lengths = $$.getDataLabelLength(yDomainMin, yDomainMax, 'width');\\n        diff = diffDomain($$.y.range());\\n        ratio = [lengths[0] / diff, lengths[1] / diff];\\n        padding_top += domainLength * (ratio[1] / (1 - ratio[0] - ratio[1]));\\n        padding_bottom += domainLength * (ratio[0] / (1 - ratio[0] - ratio[1]));\\n    } else if (showVerticalDataLabel) {\\n        lengths = $$.getDataLabelLength(yDomainMin, yDomainMax, 'height');\\n        padding_top += $$.axis.convertPixelsToAxisPadding(lengths[1], domainLength);\\n        padding_bottom += $$.axis.convertPixelsToAxisPadding(lengths[0], domainLength);\\n    }\\n    if (axisId === 'y' && notEmpty(config.axis_y_padding)) {\\n        padding_top = $$.axis.getPadding(config.axis_y_padding, 'top', padding_top, domainLength);\\n        padding_bottom = $$.axis.getPadding(config.axis_y_padding, 'bottom', padding_bottom, domainLength);\\n    }\\n    if (axisId === 'y2' && notEmpty(config.axis_y2_padding)) {\\n        padding_top = $$.axis.getPadding(config.axis_y2_padding, 'top', padding_top, domainLength);\\n        padding_bottom = $$.axis.getPadding(config.axis_y2_padding, 'bottom', padding_bottom, domainLength);\\n    }\\n    // Bar/Area chart should be 0-based if all positive|negative\\n    if (isZeroBased) {\\n        if (isAllPositive) {\\n            padding_bottom = yDomainMin;\\n        }\\n        if (isAllNegative) {\\n            padding_top = -yDomainMax;\\n        }\\n    }\\n    domain = [yDomainMin - padding_bottom, yDomainMax + padding_top];\\n    return isInverted ? domain.reverse() : domain;\\n};\\nc3_chart_internal_fn.getXDomainMin = function (targets) {\\n    var $$ = this,\\n        config = $$.config;\\n    return isDefined(config.axis_x_min) ? $$.isTimeSeries() ? this.parseDate(config.axis_x_min) : config.axis_x_min : $$.d3.min(targets, function (t) {\\n        return $$.d3.min(t.values, function (v) {\\n            return v.x;\\n        });\\n    });\\n};\\nc3_chart_internal_fn.getXDomainMax = function (targets) {\\n    var $$ = this,\\n        config = $$.config;\\n    return isDefined(config.axis_x_max) ? $$.isTimeSeries() ? this.parseDate(config.axis_x_max) : config.axis_x_max : $$.d3.max(targets, function (t) {\\n        return $$.d3.max(t.values, function (v) {\\n            return v.x;\\n        });\\n    });\\n};\\nc3_chart_internal_fn.getXDomainPadding = function (domain) {\\n    var $$ = this,\\n        config = $$.config,\\n        diff = domain[1] - domain[0],\\n        maxDataCount,\\n        padding,\\n        paddingLeft,\\n        paddingRight;\\n    if ($$.isCategorized()) {\\n        padding = 0;\\n    } else if ($$.hasType('bar')) {\\n        maxDataCount = $$.getMaxDataCount();\\n        padding = maxDataCount > 1 ? diff / (maxDataCount - 1) / 2 : 0.5;\\n    } else {\\n        padding = diff * 0.01;\\n    }\\n    if (_typeof(config.axis_x_padding) === 'object' && notEmpty(config.axis_x_padding)) {\\n        paddingLeft = isValue(config.axis_x_padding.left) ? config.axis_x_padding.left : padding;\\n        paddingRight = isValue(config.axis_x_padding.right) ? config.axis_x_padding.right : padding;\\n    } else if (typeof config.axis_x_padding === 'number') {\\n        paddingLeft = paddingRight = config.axis_x_padding;\\n    } else {\\n        paddingLeft = paddingRight = padding;\\n    }\\n    return { left: paddingLeft, right: paddingRight };\\n};\\nc3_chart_internal_fn.getXDomain = function (targets) {\\n    var $$ = this,\\n        xDomain = [$$.getXDomainMin(targets), $$.getXDomainMax(targets)],\\n        firstX = xDomain[0],\\n        lastX = xDomain[1],\\n        padding = $$.getXDomainPadding(xDomain),\\n        min = 0,\\n        max = 0;\\n    // show center of x domain if min and max are the same\\n    if (firstX - lastX === 0 && !$$.isCategorized()) {\\n        if ($$.isTimeSeries()) {\\n            firstX = new Date(firstX.getTime() * 0.5);\\n            lastX = new Date(lastX.getTime() * 1.5);\\n        } else {\\n            firstX = firstX === 0 ? 1 : firstX * 0.5;\\n            lastX = lastX === 0 ? -1 : lastX * 1.5;\\n        }\\n    }\\n    if (firstX || firstX === 0) {\\n        min = $$.isTimeSeries() ? new Date(firstX.getTime() - padding.left) : firstX - padding.left;\\n    }\\n    if (lastX || lastX === 0) {\\n        max = $$.isTimeSeries() ? new Date(lastX.getTime() + padding.right) : lastX + padding.right;\\n    }\\n    return [min, max];\\n};\\nc3_chart_internal_fn.updateXDomain = function (targets, withUpdateXDomain, withUpdateOrgXDomain, withTrim, domain) {\\n    var $$ = this,\\n        config = $$.config;\\n\\n    if (withUpdateOrgXDomain) {\\n        $$.x.domain(domain ? domain : $$.d3.extent($$.getXDomain(targets)));\\n        $$.orgXDomain = $$.x.domain();\\n        if (config.zoom_enabled) {\\n            $$.zoom.scale($$.x).updateScaleExtent();\\n        }\\n        $$.subX.domain($$.x.domain());\\n        if ($$.brush) {\\n            $$.brush.scale($$.subX);\\n        }\\n    }\\n    if (withUpdateXDomain) {\\n        $$.x.domain(domain ? domain : !$$.brush || $$.brush.empty() ? $$.orgXDomain : $$.brush.extent());\\n        if (config.zoom_enabled) {\\n            $$.zoom.scale($$.x).updateScaleExtent();\\n        }\\n    }\\n\\n    // Trim domain when too big by zoom mousemove event\\n    if (withTrim) {\\n        $$.x.domain($$.trimXDomain($$.x.orgDomain()));\\n    }\\n\\n    return $$.x.domain();\\n};\\nc3_chart_internal_fn.trimXDomain = function (domain) {\\n    var zoomDomain = this.getZoomDomain(),\\n        min = zoomDomain[0],\\n        max = zoomDomain[1];\\n    if (domain[0] <= min) {\\n        domain[1] = +domain[1] + (min - domain[0]);\\n        domain[0] = min;\\n    }\\n    if (max <= domain[1]) {\\n        domain[0] = +domain[0] - (domain[1] - max);\\n        domain[1] = max;\\n    }\\n    return domain;\\n};\\n\\nc3_chart_internal_fn.drag = function (mouse) {\\n    var $$ = this,\\n        config = $$.config,\\n        main = $$.main,\\n        d3 = $$.d3;\\n    var sx, sy, mx, my, minX, maxX, minY, maxY;\\n\\n    if ($$.hasArcType()) {\\n        return;\\n    }\\n    if (!config.data_selection_enabled) {\\n        return;\\n    } // do nothing if not selectable\\n    if (config.zoom_enabled && !$$.zoom.altDomain) {\\n        return;\\n    } // skip if zoomable because of conflict drag dehavior\\n    if (!config.data_selection_multiple) {\\n        return;\\n    } // skip when single selection because drag is used for multiple selection\\n\\n    sx = $$.dragStart[0];\\n    sy = $$.dragStart[1];\\n    mx = mouse[0];\\n    my = mouse[1];\\n    minX = Math.min(sx, mx);\\n    maxX = Math.max(sx, mx);\\n    minY = config.data_selection_grouped ? $$.margin.top : Math.min(sy, my);\\n    maxY = config.data_selection_grouped ? $$.height : Math.max(sy, my);\\n\\n    main.select('.' + CLASS.dragarea).attr('x', minX).attr('y', minY).attr('width', maxX - minX).attr('height', maxY - minY);\\n    // TODO: binary search when multiple xs\\n    main.selectAll('.' + CLASS.shapes).selectAll('.' + CLASS.shape).filter(function (d) {\\n        return config.data_selection_isselectable(d);\\n    }).each(function (d, i) {\\n        var shape = d3.select(this),\\n            isSelected = shape.classed(CLASS.SELECTED),\\n            isIncluded = shape.classed(CLASS.INCLUDED),\\n            _x,\\n            _y,\\n            _w,\\n            _h,\\n            toggle,\\n            isWithin = false,\\n            box;\\n        if (shape.classed(CLASS.circle)) {\\n            _x = shape.attr(\\\"cx\\\") * 1;\\n            _y = shape.attr(\\\"cy\\\") * 1;\\n            toggle = $$.togglePoint;\\n            isWithin = minX < _x && _x < maxX && minY < _y && _y < maxY;\\n        } else if (shape.classed(CLASS.bar)) {\\n            box = getPathBox(this);\\n            _x = box.x;\\n            _y = box.y;\\n            _w = box.width;\\n            _h = box.height;\\n            toggle = $$.togglePath;\\n            isWithin = !(maxX < _x || _x + _w < minX) && !(maxY < _y || _y + _h < minY);\\n        } else {\\n            // line/area selection not supported yet\\n            return;\\n        }\\n        if (isWithin ^ isIncluded) {\\n            shape.classed(CLASS.INCLUDED, !isIncluded);\\n            // TODO: included/unincluded callback here\\n            shape.classed(CLASS.SELECTED, !isSelected);\\n            toggle.call($$, !isSelected, shape, d, i);\\n        }\\n    });\\n};\\n\\nc3_chart_internal_fn.dragstart = function (mouse) {\\n    var $$ = this,\\n        config = $$.config;\\n    if ($$.hasArcType()) {\\n        return;\\n    }\\n    if (!config.data_selection_enabled) {\\n        return;\\n    } // do nothing if not selectable\\n    $$.dragStart = mouse;\\n    $$.main.select('.' + CLASS.chart).append('rect').attr('class', CLASS.dragarea).style('opacity', 0.1);\\n    $$.dragging = true;\\n};\\n\\nc3_chart_internal_fn.dragend = function () {\\n    var $$ = this,\\n        config = $$.config;\\n    if ($$.hasArcType()) {\\n        return;\\n    }\\n    if (!config.data_selection_enabled) {\\n        return;\\n    } // do nothing if not selectable\\n    $$.main.select('.' + CLASS.dragarea).transition().duration(100).style('opacity', 0).remove();\\n    $$.main.selectAll('.' + CLASS.shape).classed(CLASS.INCLUDED, false);\\n    $$.dragging = false;\\n};\\n\\nc3_chart_internal_fn.getYFormat = function (forArc) {\\n    var $$ = this,\\n        formatForY = forArc && !$$.hasType('gauge') ? $$.defaultArcValueFormat : $$.yFormat,\\n        formatForY2 = forArc && !$$.hasType('gauge') ? $$.defaultArcValueFormat : $$.y2Format;\\n    return function (v, ratio, id) {\\n        var format = $$.axis.getId(id) === 'y2' ? formatForY2 : formatForY;\\n        return format.call($$, v, ratio);\\n    };\\n};\\nc3_chart_internal_fn.yFormat = function (v) {\\n    var $$ = this,\\n        config = $$.config,\\n        format = config.axis_y_tick_format ? config.axis_y_tick_format : $$.defaultValueFormat;\\n    return format(v);\\n};\\nc3_chart_internal_fn.y2Format = function (v) {\\n    var $$ = this,\\n        config = $$.config,\\n        format = config.axis_y2_tick_format ? config.axis_y2_tick_format : $$.defaultValueFormat;\\n    return format(v);\\n};\\nc3_chart_internal_fn.defaultValueFormat = function (v) {\\n    return isValue(v) ? +v : \\\"\\\";\\n};\\nc3_chart_internal_fn.defaultArcValueFormat = function (v, ratio) {\\n    return (ratio * 100).toFixed(1) + '%';\\n};\\nc3_chart_internal_fn.dataLabelFormat = function (targetId) {\\n    var $$ = this,\\n        data_labels = $$.config.data_labels,\\n        format,\\n        defaultFormat = function defaultFormat(v) {\\n        return isValue(v) ? +v : \\\"\\\";\\n    };\\n    // find format according to axis id\\n    if (typeof data_labels.format === 'function') {\\n        format = data_labels.format;\\n    } else if (_typeof(data_labels.format) === 'object') {\\n        if (data_labels.format[targetId]) {\\n            format = data_labels.format[targetId] === true ? defaultFormat : data_labels.format[targetId];\\n        } else {\\n            format = function format() {\\n                return '';\\n            };\\n        }\\n    } else {\\n        format = defaultFormat;\\n    }\\n    return format;\\n};\\n\\nc3_chart_internal_fn.initGrid = function () {\\n    var $$ = this,\\n        config = $$.config,\\n        d3 = $$.d3;\\n    $$.grid = $$.main.append('g').attr(\\\"clip-path\\\", $$.clipPathForGrid).attr('class', CLASS.grid);\\n    if (config.grid_x_show) {\\n        $$.grid.append(\\\"g\\\").attr(\\\"class\\\", CLASS.xgrids);\\n    }\\n    if (config.grid_y_show) {\\n        $$.grid.append('g').attr('class', CLASS.ygrids);\\n    }\\n    if (config.grid_focus_show) {\\n        $$.grid.append('g').attr(\\\"class\\\", CLASS.xgridFocus).append('line').attr('class', CLASS.xgridFocus);\\n    }\\n    $$.xgrid = d3.selectAll([]);\\n    if (!config.grid_lines_front) {\\n        $$.initGridLines();\\n    }\\n};\\nc3_chart_internal_fn.initGridLines = function () {\\n    var $$ = this,\\n        d3 = $$.d3;\\n    $$.gridLines = $$.main.append('g').attr(\\\"clip-path\\\", $$.clipPathForGrid).attr('class', CLASS.grid + ' ' + CLASS.gridLines);\\n    $$.gridLines.append('g').attr(\\\"class\\\", CLASS.xgridLines);\\n    $$.gridLines.append('g').attr('class', CLASS.ygridLines);\\n    $$.xgridLines = d3.selectAll([]);\\n};\\nc3_chart_internal_fn.updateXGrid = function (withoutUpdate) {\\n    var $$ = this,\\n        config = $$.config,\\n        d3 = $$.d3,\\n        xgridData = $$.generateGridData(config.grid_x_type, $$.x),\\n        tickOffset = $$.isCategorized() ? $$.xAxis.tickOffset() : 0;\\n\\n    $$.xgridAttr = config.axis_rotated ? {\\n        'x1': 0,\\n        'x2': $$.width,\\n        'y1': function y1(d) {\\n            return $$.x(d) - tickOffset;\\n        },\\n        'y2': function y2(d) {\\n            return $$.x(d) - tickOffset;\\n        }\\n    } : {\\n        'x1': function x1(d) {\\n            return $$.x(d) + tickOffset;\\n        },\\n        'x2': function x2(d) {\\n            return $$.x(d) + tickOffset;\\n        },\\n        'y1': 0,\\n        'y2': $$.height\\n    };\\n\\n    $$.xgrid = $$.main.select('.' + CLASS.xgrids).selectAll('.' + CLASS.xgrid).data(xgridData);\\n    $$.xgrid.enter().append('line').attr(\\\"class\\\", CLASS.xgrid);\\n    if (!withoutUpdate) {\\n        $$.xgrid.attr($$.xgridAttr).style(\\\"opacity\\\", function () {\\n            return +d3.select(this).attr(config.axis_rotated ? 'y1' : 'x1') === (config.axis_rotated ? $$.height : 0) ? 0 : 1;\\n        });\\n    }\\n    $$.xgrid.exit().remove();\\n};\\n\\nc3_chart_internal_fn.updateYGrid = function () {\\n    var $$ = this,\\n        config = $$.config,\\n        gridValues = $$.yAxis.tickValues() || $$.y.ticks(config.grid_y_ticks);\\n    $$.ygrid = $$.main.select('.' + CLASS.ygrids).selectAll('.' + CLASS.ygrid).data(gridValues);\\n    $$.ygrid.enter().append('line').attr('class', CLASS.ygrid);\\n    $$.ygrid.attr(\\\"x1\\\", config.axis_rotated ? $$.y : 0).attr(\\\"x2\\\", config.axis_rotated ? $$.y : $$.width).attr(\\\"y1\\\", config.axis_rotated ? 0 : $$.y).attr(\\\"y2\\\", config.axis_rotated ? $$.height : $$.y);\\n    $$.ygrid.exit().remove();\\n    $$.smoothLines($$.ygrid, 'grid');\\n};\\n\\nc3_chart_internal_fn.gridTextAnchor = function (d) {\\n    return d.position ? d.position : \\\"end\\\";\\n};\\nc3_chart_internal_fn.gridTextDx = function (d) {\\n    return d.position === 'start' ? 4 : d.position === 'middle' ? 0 : -4;\\n};\\nc3_chart_internal_fn.xGridTextX = function (d) {\\n    return d.position === 'start' ? -this.height : d.position === 'middle' ? -this.height / 2 : 0;\\n};\\nc3_chart_internal_fn.yGridTextX = function (d) {\\n    return d.position === 'start' ? 0 : d.position === 'middle' ? this.width / 2 : this.width;\\n};\\nc3_chart_internal_fn.updateGrid = function (duration) {\\n    var $$ = this,\\n        main = $$.main,\\n        config = $$.config,\\n        xgridLine,\\n        ygridLine,\\n        yv;\\n\\n    // hide if arc type\\n    $$.grid.style('visibility', $$.hasArcType() ? 'hidden' : 'visible');\\n\\n    main.select('line.' + CLASS.xgridFocus).style(\\\"visibility\\\", \\\"hidden\\\");\\n    if (config.grid_x_show) {\\n        $$.updateXGrid();\\n    }\\n    $$.xgridLines = main.select('.' + CLASS.xgridLines).selectAll('.' + CLASS.xgridLine).data(config.grid_x_lines);\\n    // enter\\n    xgridLine = $$.xgridLines.enter().append('g').attr(\\\"class\\\", function (d) {\\n        return CLASS.xgridLine + (d['class'] ? ' ' + d['class'] : '');\\n    });\\n    xgridLine.append('line').style(\\\"opacity\\\", 0);\\n    xgridLine.append('text').attr(\\\"text-anchor\\\", $$.gridTextAnchor).attr(\\\"transform\\\", config.axis_rotated ? \\\"\\\" : \\\"rotate(-90)\\\").attr('dx', $$.gridTextDx).attr('dy', -5).style(\\\"opacity\\\", 0);\\n    // udpate\\n    // done in d3.transition() of the end of this function\\n    // exit\\n    $$.xgridLines.exit().transition().duration(duration).style(\\\"opacity\\\", 0).remove();\\n\\n    // Y-Grid\\n    if (config.grid_y_show) {\\n        $$.updateYGrid();\\n    }\\n    $$.ygridLines = main.select('.' + CLASS.ygridLines).selectAll('.' + CLASS.ygridLine).data(config.grid_y_lines);\\n    // enter\\n    ygridLine = $$.ygridLines.enter().append('g').attr(\\\"class\\\", function (d) {\\n        return CLASS.ygridLine + (d['class'] ? ' ' + d['class'] : '');\\n    });\\n    ygridLine.append('line').style(\\\"opacity\\\", 0);\\n    ygridLine.append('text').attr(\\\"text-anchor\\\", $$.gridTextAnchor).attr(\\\"transform\\\", config.axis_rotated ? \\\"rotate(-90)\\\" : \\\"\\\").attr('dx', $$.gridTextDx).attr('dy', -5).style(\\\"opacity\\\", 0);\\n    // update\\n    yv = $$.yv.bind($$);\\n    $$.ygridLines.select('line').transition().duration(duration).attr(\\\"x1\\\", config.axis_rotated ? yv : 0).attr(\\\"x2\\\", config.axis_rotated ? yv : $$.width).attr(\\\"y1\\\", config.axis_rotated ? 0 : yv).attr(\\\"y2\\\", config.axis_rotated ? $$.height : yv).style(\\\"opacity\\\", 1);\\n    $$.ygridLines.select('text').transition().duration(duration).attr(\\\"x\\\", config.axis_rotated ? $$.xGridTextX.bind($$) : $$.yGridTextX.bind($$)).attr(\\\"y\\\", yv).text(function (d) {\\n        return d.text;\\n    }).style(\\\"opacity\\\", 1);\\n    // exit\\n    $$.ygridLines.exit().transition().duration(duration).style(\\\"opacity\\\", 0).remove();\\n};\\nc3_chart_internal_fn.redrawGrid = function (withTransition) {\\n    var $$ = this,\\n        config = $$.config,\\n        xv = $$.xv.bind($$),\\n        lines = $$.xgridLines.select('line'),\\n        texts = $$.xgridLines.select('text');\\n    return [(withTransition ? lines.transition() : lines).attr(\\\"x1\\\", config.axis_rotated ? 0 : xv).attr(\\\"x2\\\", config.axis_rotated ? $$.width : xv).attr(\\\"y1\\\", config.axis_rotated ? xv : 0).attr(\\\"y2\\\", config.axis_rotated ? xv : $$.height).style(\\\"opacity\\\", 1), (withTransition ? texts.transition() : texts).attr(\\\"x\\\", config.axis_rotated ? $$.yGridTextX.bind($$) : $$.xGridTextX.bind($$)).attr(\\\"y\\\", xv).text(function (d) {\\n        return d.text;\\n    }).style(\\\"opacity\\\", 1)];\\n};\\nc3_chart_internal_fn.showXGridFocus = function (selectedData) {\\n    var $$ = this,\\n        config = $$.config,\\n        dataToShow = selectedData.filter(function (d) {\\n        return d && isValue(d.value);\\n    }),\\n        focusEl = $$.main.selectAll('line.' + CLASS.xgridFocus),\\n        xx = $$.xx.bind($$);\\n    if (!config.tooltip_show) {\\n        return;\\n    }\\n    // Hide when scatter plot exists\\n    if ($$.hasType('scatter') || $$.hasArcType()) {\\n        return;\\n    }\\n    focusEl.style(\\\"visibility\\\", \\\"visible\\\").data([dataToShow[0]]).attr(config.axis_rotated ? 'y1' : 'x1', xx).attr(config.axis_rotated ? 'y2' : 'x2', xx);\\n    $$.smoothLines(focusEl, 'grid');\\n};\\nc3_chart_internal_fn.hideXGridFocus = function () {\\n    this.main.select('line.' + CLASS.xgridFocus).style(\\\"visibility\\\", \\\"hidden\\\");\\n};\\nc3_chart_internal_fn.updateXgridFocus = function () {\\n    var $$ = this,\\n        config = $$.config;\\n    $$.main.select('line.' + CLASS.xgridFocus).attr(\\\"x1\\\", config.axis_rotated ? 0 : -10).attr(\\\"x2\\\", config.axis_rotated ? $$.width : -10).attr(\\\"y1\\\", config.axis_rotated ? -10 : 0).attr(\\\"y2\\\", config.axis_rotated ? -10 : $$.height);\\n};\\nc3_chart_internal_fn.generateGridData = function (type, scale) {\\n    var $$ = this,\\n        gridData = [],\\n        xDomain,\\n        firstYear,\\n        lastYear,\\n        i,\\n        tickNum = $$.main.select(\\\".\\\" + CLASS.axisX).selectAll('.tick').size();\\n    if (type === 'year') {\\n        xDomain = $$.getXDomain();\\n        firstYear = xDomain[0].getFullYear();\\n        lastYear = xDomain[1].getFullYear();\\n        for (i = firstYear; i <= lastYear; i++) {\\n            gridData.push(new Date(i + '-01-01 00:00:00'));\\n        }\\n    } else {\\n        gridData = scale.ticks(10);\\n        if (gridData.length > tickNum) {\\n            // use only int\\n            gridData = gridData.filter(function (d) {\\n                return (\\\"\\\" + d).indexOf('.') < 0;\\n            });\\n        }\\n    }\\n    return gridData;\\n};\\nc3_chart_internal_fn.getGridFilterToRemove = function (params) {\\n    return params ? function (line) {\\n        var found = false;\\n        [].concat(params).forEach(function (param) {\\n            if ('value' in param && line.value === param.value || 'class' in param && line['class'] === param['class']) {\\n                found = true;\\n            }\\n        });\\n        return found;\\n    } : function () {\\n        return true;\\n    };\\n};\\nc3_chart_internal_fn.removeGridLines = function (params, forX) {\\n    var $$ = this,\\n        config = $$.config,\\n        toRemove = $$.getGridFilterToRemove(params),\\n        toShow = function toShow(line) {\\n        return !toRemove(line);\\n    },\\n        classLines = forX ? CLASS.xgridLines : CLASS.ygridLines,\\n        classLine = forX ? CLASS.xgridLine : CLASS.ygridLine;\\n    $$.main.select('.' + classLines).selectAll('.' + classLine).filter(toRemove).transition().duration(config.transition_duration).style('opacity', 0).remove();\\n    if (forX) {\\n        config.grid_x_lines = config.grid_x_lines.filter(toShow);\\n    } else {\\n        config.grid_y_lines = config.grid_y_lines.filter(toShow);\\n    }\\n};\\n\\nc3_chart_internal_fn.initEventRect = function () {\\n    var $$ = this;\\n    $$.main.select('.' + CLASS.chart).append(\\\"g\\\").attr(\\\"class\\\", CLASS.eventRects).style('fill-opacity', 0);\\n};\\nc3_chart_internal_fn.redrawEventRect = function () {\\n    var $$ = this,\\n        config = $$.config,\\n        eventRectUpdate,\\n        maxDataCountTarget,\\n        isMultipleX = $$.isMultipleX();\\n\\n    // rects for mouseover\\n    var eventRects = $$.main.select('.' + CLASS.eventRects).style('cursor', config.zoom_enabled ? config.axis_rotated ? 'ns-resize' : 'ew-resize' : null).classed(CLASS.eventRectsMultiple, isMultipleX).classed(CLASS.eventRectsSingle, !isMultipleX);\\n\\n    // clear old rects\\n    eventRects.selectAll('.' + CLASS.eventRect).remove();\\n\\n    // open as public variable\\n    $$.eventRect = eventRects.selectAll('.' + CLASS.eventRect);\\n\\n    if (isMultipleX) {\\n        eventRectUpdate = $$.eventRect.data([0]);\\n        // enter : only one rect will be added\\n        $$.generateEventRectsForMultipleXs(eventRectUpdate.enter());\\n        // update\\n        $$.updateEventRect(eventRectUpdate);\\n        // exit : not needed because always only one rect exists\\n    } else {\\n        // Set data and update $$.eventRect\\n        maxDataCountTarget = $$.getMaxDataCountTarget($$.data.targets);\\n        eventRects.datum(maxDataCountTarget ? maxDataCountTarget.values : []);\\n        $$.eventRect = eventRects.selectAll('.' + CLASS.eventRect);\\n        eventRectUpdate = $$.eventRect.data(function (d) {\\n            return d;\\n        });\\n        // enter\\n        $$.generateEventRectsForSingleX(eventRectUpdate.enter());\\n        // update\\n        $$.updateEventRect(eventRectUpdate);\\n        // exit\\n        eventRectUpdate.exit().remove();\\n    }\\n};\\nc3_chart_internal_fn.updateEventRect = function (eventRectUpdate) {\\n    var $$ = this,\\n        config = $$.config,\\n        x,\\n        y,\\n        w,\\n        h,\\n        rectW,\\n        rectX;\\n\\n    // set update selection if null\\n    eventRectUpdate = eventRectUpdate || $$.eventRect.data(function (d) {\\n        return d;\\n    });\\n\\n    if ($$.isMultipleX()) {\\n        // TODO: rotated not supported yet\\n        x = 0;\\n        y = 0;\\n        w = $$.width;\\n        h = $$.height;\\n    } else {\\n        if (($$.isCustomX() || $$.isTimeSeries()) && !$$.isCategorized()) {\\n\\n            // update index for x that is used by prevX and nextX\\n            $$.updateXs();\\n\\n            rectW = function rectW(d) {\\n                var prevX = $$.getPrevX(d.index),\\n                    nextX = $$.getNextX(d.index);\\n\\n                // if there this is a single data point make the eventRect full width (or height)\\n                if (prevX === null && nextX === null) {\\n                    return config.axis_rotated ? $$.height : $$.width;\\n                }\\n\\n                if (prevX === null) {\\n                    prevX = $$.x.domain()[0];\\n                }\\n                if (nextX === null) {\\n                    nextX = $$.x.domain()[1];\\n                }\\n\\n                return Math.max(0, ($$.x(nextX) - $$.x(prevX)) / 2);\\n            };\\n            rectX = function rectX(d) {\\n                var prevX = $$.getPrevX(d.index),\\n                    nextX = $$.getNextX(d.index),\\n                    thisX = $$.data.xs[d.id][d.index];\\n\\n                // if there this is a single data point position the eventRect at 0\\n                if (prevX === null && nextX === null) {\\n                    return 0;\\n                }\\n\\n                if (prevX === null) {\\n                    prevX = $$.x.domain()[0];\\n                }\\n\\n                return ($$.x(thisX) + $$.x(prevX)) / 2;\\n            };\\n        } else {\\n            rectW = $$.getEventRectWidth();\\n            rectX = function rectX(d) {\\n                return $$.x(d.x) - rectW / 2;\\n            };\\n        }\\n        x = config.axis_rotated ? 0 : rectX;\\n        y = config.axis_rotated ? rectX : 0;\\n        w = config.axis_rotated ? $$.width : rectW;\\n        h = config.axis_rotated ? rectW : $$.height;\\n    }\\n\\n    eventRectUpdate.attr('class', $$.classEvent.bind($$)).attr(\\\"x\\\", x).attr(\\\"y\\\", y).attr(\\\"width\\\", w).attr(\\\"height\\\", h);\\n};\\nc3_chart_internal_fn.generateEventRectsForSingleX = function (eventRectEnter) {\\n    var $$ = this,\\n        d3 = $$.d3,\\n        config = $$.config;\\n    eventRectEnter.append(\\\"rect\\\").attr(\\\"class\\\", $$.classEvent.bind($$)).style(\\\"cursor\\\", config.data_selection_enabled && config.data_selection_grouped ? \\\"pointer\\\" : null).on('mouseover', function (d) {\\n        var index = d.index;\\n\\n        if ($$.dragging || $$.flowing) {\\n            return;\\n        } // do nothing while dragging/flowing\\n        if ($$.hasArcType()) {\\n            return;\\n        }\\n\\n        // Expand shapes for selection\\n        if (config.point_focus_expand_enabled) {\\n            $$.expandCircles(index, null, true);\\n        }\\n        $$.expandBars(index, null, true);\\n\\n        // Call event handler\\n        $$.main.selectAll('.' + CLASS.shape + '-' + index).each(function (d) {\\n            config.data_onmouseover.call($$.api, d);\\n        });\\n    }).on('mouseout', function (d) {\\n        var index = d.index;\\n        if (!$$.config) {\\n            return;\\n        } // chart is destroyed\\n        if ($$.hasArcType()) {\\n            return;\\n        }\\n        $$.hideXGridFocus();\\n        $$.hideTooltip();\\n        // Undo expanded shapes\\n        $$.unexpandCircles();\\n        $$.unexpandBars();\\n        // Call event handler\\n        $$.main.selectAll('.' + CLASS.shape + '-' + index).each(function (d) {\\n            config.data_onmouseout.call($$.api, d);\\n        });\\n    }).on('mousemove', function (d) {\\n        var selectedData,\\n            index = d.index,\\n            eventRect = $$.svg.select('.' + CLASS.eventRect + '-' + index);\\n\\n        if ($$.dragging || $$.flowing) {\\n            return;\\n        } // do nothing while dragging/flowing\\n        if ($$.hasArcType()) {\\n            return;\\n        }\\n\\n        if ($$.isStepType(d) && $$.config.line_step_type === 'step-after' && d3.mouse(this)[0] < $$.x($$.getXValue(d.id, index))) {\\n            index -= 1;\\n        }\\n\\n        // Show tooltip\\n        selectedData = $$.filterTargetsToShow($$.data.targets).map(function (t) {\\n            return $$.addName($$.getValueOnIndex(t.values, index));\\n        });\\n\\n        if (config.tooltip_grouped) {\\n            $$.showTooltip(selectedData, this);\\n            $$.showXGridFocus(selectedData);\\n        }\\n\\n        if (config.tooltip_grouped && (!config.data_selection_enabled || config.data_selection_grouped)) {\\n            return;\\n        }\\n\\n        $$.main.selectAll('.' + CLASS.shape + '-' + index).each(function () {\\n            d3.select(this).classed(CLASS.EXPANDED, true);\\n            if (config.data_selection_enabled) {\\n                eventRect.style('cursor', config.data_selection_grouped ? 'pointer' : null);\\n            }\\n            if (!config.tooltip_grouped) {\\n                $$.hideXGridFocus();\\n                $$.hideTooltip();\\n                if (!config.data_selection_grouped) {\\n                    $$.unexpandCircles(index);\\n                    $$.unexpandBars(index);\\n                }\\n            }\\n        }).filter(function (d) {\\n            return $$.isWithinShape(this, d);\\n        }).each(function (d) {\\n            if (config.data_selection_enabled && (config.data_selection_grouped || config.data_selection_isselectable(d))) {\\n                eventRect.style('cursor', 'pointer');\\n            }\\n            if (!config.tooltip_grouped) {\\n                $$.showTooltip([d], this);\\n                $$.showXGridFocus([d]);\\n                if (config.point_focus_expand_enabled) {\\n                    $$.expandCircles(index, d.id, true);\\n                }\\n                $$.expandBars(index, d.id, true);\\n            }\\n        });\\n    }).on('click', function (d) {\\n        var index = d.index;\\n        if ($$.hasArcType() || !$$.toggleShape) {\\n            return;\\n        }\\n        if ($$.cancelClick) {\\n            $$.cancelClick = false;\\n            return;\\n        }\\n        if ($$.isStepType(d) && config.line_step_type === 'step-after' && d3.mouse(this)[0] < $$.x($$.getXValue(d.id, index))) {\\n            index -= 1;\\n        }\\n        $$.main.selectAll('.' + CLASS.shape + '-' + index).each(function (d) {\\n            if (config.data_selection_grouped || $$.isWithinShape(this, d)) {\\n                $$.toggleShape(this, d, index);\\n                $$.config.data_onclick.call($$.api, d, this);\\n            }\\n        });\\n    }).call(config.data_selection_draggable && $$.drag ? d3.behavior.drag().origin(Object).on('drag', function () {\\n        $$.drag(d3.mouse(this));\\n    }).on('dragstart', function () {\\n        $$.dragstart(d3.mouse(this));\\n    }).on('dragend', function () {\\n        $$.dragend();\\n    }) : function () {});\\n};\\n\\nc3_chart_internal_fn.generateEventRectsForMultipleXs = function (eventRectEnter) {\\n    var $$ = this,\\n        d3 = $$.d3,\\n        config = $$.config;\\n\\n    function mouseout() {\\n        $$.svg.select('.' + CLASS.eventRect).style('cursor', null);\\n        $$.hideXGridFocus();\\n        $$.hideTooltip();\\n        $$.unexpandCircles();\\n        $$.unexpandBars();\\n    }\\n\\n    eventRectEnter.append('rect').attr('x', 0).attr('y', 0).attr('width', $$.width).attr('height', $$.height).attr('class', CLASS.eventRect).on('mouseout', function () {\\n        if (!$$.config) {\\n            return;\\n        } // chart is destroyed\\n        if ($$.hasArcType()) {\\n            return;\\n        }\\n        mouseout();\\n    }).on('mousemove', function () {\\n        var targetsToShow = $$.filterTargetsToShow($$.data.targets);\\n        var mouse, closest, sameXData, selectedData;\\n\\n        if ($$.dragging) {\\n            return;\\n        } // do nothing when dragging\\n        if ($$.hasArcType(targetsToShow)) {\\n            return;\\n        }\\n\\n        mouse = d3.mouse(this);\\n        closest = $$.findClosestFromTargets(targetsToShow, mouse);\\n\\n        if ($$.mouseover && (!closest || closest.id !== $$.mouseover.id)) {\\n            config.data_onmouseout.call($$.api, $$.mouseover);\\n            $$.mouseover = undefined;\\n        }\\n\\n        if (!closest) {\\n            mouseout();\\n            return;\\n        }\\n\\n        if ($$.isScatterType(closest) || !config.tooltip_grouped) {\\n            sameXData = [closest];\\n        } else {\\n            sameXData = $$.filterByX(targetsToShow, closest.x);\\n        }\\n\\n        // show tooltip when cursor is close to some point\\n        selectedData = sameXData.map(function (d) {\\n            return $$.addName(d);\\n        });\\n        $$.showTooltip(selectedData, this);\\n\\n        // expand points\\n        if (config.point_focus_expand_enabled) {\\n            $$.expandCircles(closest.index, closest.id, true);\\n        }\\n        $$.expandBars(closest.index, closest.id, true);\\n\\n        // Show xgrid focus line\\n        $$.showXGridFocus(selectedData);\\n\\n        // Show cursor as pointer if point is close to mouse position\\n        if ($$.isBarType(closest.id) || $$.dist(closest, mouse) < config.point_sensitivity) {\\n            $$.svg.select('.' + CLASS.eventRect).style('cursor', 'pointer');\\n            if (!$$.mouseover) {\\n                config.data_onmouseover.call($$.api, closest);\\n                $$.mouseover = closest;\\n            }\\n        }\\n    }).on('click', function () {\\n        var targetsToShow = $$.filterTargetsToShow($$.data.targets);\\n        var mouse, closest;\\n        if ($$.hasArcType(targetsToShow)) {\\n            return;\\n        }\\n\\n        mouse = d3.mouse(this);\\n        closest = $$.findClosestFromTargets(targetsToShow, mouse);\\n        if (!closest) {\\n            return;\\n        }\\n        // select if selection enabled\\n        if ($$.isBarType(closest.id) || $$.dist(closest, mouse) < config.point_sensitivity) {\\n            $$.main.selectAll('.' + CLASS.shapes + $$.getTargetSelectorSuffix(closest.id)).selectAll('.' + CLASS.shape + '-' + closest.index).each(function () {\\n                if (config.data_selection_grouped || $$.isWithinShape(this, closest)) {\\n                    $$.toggleShape(this, closest, closest.index);\\n                    $$.config.data_onclick.call($$.api, closest, this);\\n                }\\n            });\\n        }\\n    }).call(config.data_selection_draggable && $$.drag ? d3.behavior.drag().origin(Object).on('drag', function () {\\n        $$.drag(d3.mouse(this));\\n    }).on('dragstart', function () {\\n        $$.dragstart(d3.mouse(this));\\n    }).on('dragend', function () {\\n        $$.dragend();\\n    }) : function () {});\\n};\\nc3_chart_internal_fn.dispatchEvent = function (type, index, mouse) {\\n    var $$ = this,\\n        selector = '.' + CLASS.eventRect + (!$$.isMultipleX() ? '-' + index : ''),\\n        eventRect = $$.main.select(selector).node(),\\n        box = eventRect.getBoundingClientRect(),\\n        x = box.left + (mouse ? mouse[0] : 0),\\n        y = box.top + (mouse ? mouse[1] : 0),\\n        event = document.createEvent(\\\"MouseEvents\\\");\\n\\n    event.initMouseEvent(type, true, true, window, 0, x, y, x, y, false, false, false, false, 0, null);\\n    eventRect.dispatchEvent(event);\\n};\\n\\nc3_chart_internal_fn.initLegend = function () {\\n    var $$ = this;\\n    $$.legendItemTextBox = {};\\n    $$.legendHasRendered = false;\\n    $$.legend = $$.svg.append(\\\"g\\\").attr(\\\"transform\\\", $$.getTranslate('legend'));\\n    if (!$$.config.legend_show) {\\n        $$.legend.style('visibility', 'hidden');\\n        $$.hiddenLegendIds = $$.mapToIds($$.data.targets);\\n        return;\\n    }\\n    // MEMO: call here to update legend box and tranlate for all\\n    // MEMO: translate will be upated by this, so transform not needed in updateLegend()\\n    $$.updateLegendWithDefaults();\\n};\\nc3_chart_internal_fn.updateLegendWithDefaults = function () {\\n    var $$ = this;\\n    $$.updateLegend($$.mapToIds($$.data.targets), { withTransform: false, withTransitionForTransform: false, withTransition: false });\\n};\\nc3_chart_internal_fn.updateSizeForLegend = function (legendHeight, legendWidth) {\\n    var $$ = this,\\n        config = $$.config,\\n        insetLegendPosition = {\\n        top: $$.isLegendTop ? $$.getCurrentPaddingTop() + config.legend_inset_y + 5.5 : $$.currentHeight - legendHeight - $$.getCurrentPaddingBottom() - config.legend_inset_y,\\n        left: $$.isLegendLeft ? $$.getCurrentPaddingLeft() + config.legend_inset_x + 0.5 : $$.currentWidth - legendWidth - $$.getCurrentPaddingRight() - config.legend_inset_x + 0.5\\n    };\\n\\n    $$.margin3 = {\\n        top: $$.isLegendRight ? 0 : $$.isLegendInset ? insetLegendPosition.top : $$.currentHeight - legendHeight,\\n        right: NaN,\\n        bottom: 0,\\n        left: $$.isLegendRight ? $$.currentWidth - legendWidth : $$.isLegendInset ? insetLegendPosition.left : 0\\n    };\\n};\\nc3_chart_internal_fn.transformLegend = function (withTransition) {\\n    var $$ = this;\\n    (withTransition ? $$.legend.transition() : $$.legend).attr(\\\"transform\\\", $$.getTranslate('legend'));\\n};\\nc3_chart_internal_fn.updateLegendStep = function (step) {\\n    this.legendStep = step;\\n};\\nc3_chart_internal_fn.updateLegendItemWidth = function (w) {\\n    this.legendItemWidth = w;\\n};\\nc3_chart_internal_fn.updateLegendItemHeight = function (h) {\\n    this.legendItemHeight = h;\\n};\\nc3_chart_internal_fn.getLegendWidth = function () {\\n    var $$ = this;\\n    return $$.config.legend_show ? $$.isLegendRight || $$.isLegendInset ? $$.legendItemWidth * ($$.legendStep + 1) : $$.currentWidth : 0;\\n};\\nc3_chart_internal_fn.getLegendHeight = function () {\\n    var $$ = this,\\n        h = 0;\\n    if ($$.config.legend_show) {\\n        if ($$.isLegendRight) {\\n            h = $$.currentHeight;\\n        } else {\\n            h = Math.max(20, $$.legendItemHeight) * ($$.legendStep + 1);\\n        }\\n    }\\n    return h;\\n};\\nc3_chart_internal_fn.opacityForLegend = function (legendItem) {\\n    return legendItem.classed(CLASS.legendItemHidden) ? null : 1;\\n};\\nc3_chart_internal_fn.opacityForUnfocusedLegend = function (legendItem) {\\n    return legendItem.classed(CLASS.legendItemHidden) ? null : 0.3;\\n};\\nc3_chart_internal_fn.toggleFocusLegend = function (targetIds, focus) {\\n    var $$ = this;\\n    targetIds = $$.mapToTargetIds(targetIds);\\n    $$.legend.selectAll('.' + CLASS.legendItem).filter(function (id) {\\n        return targetIds.indexOf(id) >= 0;\\n    }).classed(CLASS.legendItemFocused, focus).transition().duration(100).style('opacity', function () {\\n        var opacity = focus ? $$.opacityForLegend : $$.opacityForUnfocusedLegend;\\n        return opacity.call($$, $$.d3.select(this));\\n    });\\n};\\nc3_chart_internal_fn.revertLegend = function () {\\n    var $$ = this,\\n        d3 = $$.d3;\\n    $$.legend.selectAll('.' + CLASS.legendItem).classed(CLASS.legendItemFocused, false).transition().duration(100).style('opacity', function () {\\n        return $$.opacityForLegend(d3.select(this));\\n    });\\n};\\nc3_chart_internal_fn.showLegend = function (targetIds) {\\n    var $$ = this,\\n        config = $$.config;\\n    if (!config.legend_show) {\\n        config.legend_show = true;\\n        $$.legend.style('visibility', 'visible');\\n        if (!$$.legendHasRendered) {\\n            $$.updateLegendWithDefaults();\\n        }\\n    }\\n    $$.removeHiddenLegendIds(targetIds);\\n    $$.legend.selectAll($$.selectorLegends(targetIds)).style('visibility', 'visible').transition().style('opacity', function () {\\n        return $$.opacityForLegend($$.d3.select(this));\\n    });\\n};\\nc3_chart_internal_fn.hideLegend = function (targetIds) {\\n    var $$ = this,\\n        config = $$.config;\\n    if (config.legend_show && isEmpty(targetIds)) {\\n        config.legend_show = false;\\n        $$.legend.style('visibility', 'hidden');\\n    }\\n    $$.addHiddenLegendIds(targetIds);\\n    $$.legend.selectAll($$.selectorLegends(targetIds)).style('opacity', 0).style('visibility', 'hidden');\\n};\\nc3_chart_internal_fn.clearLegendItemTextBoxCache = function () {\\n    this.legendItemTextBox = {};\\n};\\nc3_chart_internal_fn.updateLegend = function (targetIds, options, transitions) {\\n    var $$ = this,\\n        config = $$.config;\\n    var xForLegend, xForLegendText, xForLegendRect, yForLegend, yForLegendText, yForLegendRect, x1ForLegendTile, x2ForLegendTile, yForLegendTile;\\n    var paddingTop = 4,\\n        paddingRight = 10,\\n        maxWidth = 0,\\n        maxHeight = 0,\\n        posMin = 10,\\n        tileWidth = config.legend_item_tile_width + 5;\\n    var l,\\n        totalLength = 0,\\n        offsets = {},\\n        widths = {},\\n        heights = {},\\n        margins = [0],\\n        steps = {},\\n        step = 0;\\n    var withTransition, withTransitionForTransform;\\n    var texts, rects, tiles, background;\\n\\n    // Skip elements when their name is set to null\\n    targetIds = targetIds.filter(function (id) {\\n        return !isDefined(config.data_names[id]) || config.data_names[id] !== null;\\n    });\\n\\n    options = options || {};\\n    withTransition = getOption(options, \\\"withTransition\\\", true);\\n    withTransitionForTransform = getOption(options, \\\"withTransitionForTransform\\\", true);\\n\\n    function getTextBox(textElement, id) {\\n        if (!$$.legendItemTextBox[id]) {\\n            $$.legendItemTextBox[id] = $$.getTextRect(textElement.textContent, CLASS.legendItem, textElement);\\n        }\\n        return $$.legendItemTextBox[id];\\n    }\\n\\n    function updatePositions(textElement, id, index) {\\n        var reset = index === 0,\\n            isLast = index === targetIds.length - 1,\\n            box = getTextBox(textElement, id),\\n            itemWidth = box.width + tileWidth + (isLast && !($$.isLegendRight || $$.isLegendInset) ? 0 : paddingRight) + config.legend_padding,\\n            itemHeight = box.height + paddingTop,\\n            itemLength = $$.isLegendRight || $$.isLegendInset ? itemHeight : itemWidth,\\n            areaLength = $$.isLegendRight || $$.isLegendInset ? $$.getLegendHeight() : $$.getLegendWidth(),\\n            margin,\\n            maxLength;\\n\\n        // MEMO: care about condifion of step, totalLength\\n        function updateValues(id, withoutStep) {\\n            if (!withoutStep) {\\n                margin = (areaLength - totalLength - itemLength) / 2;\\n                if (margin < posMin) {\\n                    margin = (areaLength - itemLength) / 2;\\n                    totalLength = 0;\\n                    step++;\\n                }\\n            }\\n            steps[id] = step;\\n            margins[step] = $$.isLegendInset ? 10 : margin;\\n            offsets[id] = totalLength;\\n            totalLength += itemLength;\\n        }\\n\\n        if (reset) {\\n            totalLength = 0;\\n            step = 0;\\n            maxWidth = 0;\\n            maxHeight = 0;\\n        }\\n\\n        if (config.legend_show && !$$.isLegendToShow(id)) {\\n            widths[id] = heights[id] = steps[id] = offsets[id] = 0;\\n            return;\\n        }\\n\\n        widths[id] = itemWidth;\\n        heights[id] = itemHeight;\\n\\n        if (!maxWidth || itemWidth >= maxWidth) {\\n            maxWidth = itemWidth;\\n        }\\n        if (!maxHeight || itemHeight >= maxHeight) {\\n            maxHeight = itemHeight;\\n        }\\n        maxLength = $$.isLegendRight || $$.isLegendInset ? maxHeight : maxWidth;\\n\\n        if (config.legend_equally) {\\n            Object.keys(widths).forEach(function (id) {\\n                widths[id] = maxWidth;\\n            });\\n            Object.keys(heights).forEach(function (id) {\\n                heights[id] = maxHeight;\\n            });\\n            margin = (areaLength - maxLength * targetIds.length) / 2;\\n            if (margin < posMin) {\\n                totalLength = 0;\\n                step = 0;\\n                targetIds.forEach(function (id) {\\n                    updateValues(id);\\n                });\\n            } else {\\n                updateValues(id, true);\\n            }\\n        } else {\\n            updateValues(id);\\n        }\\n    }\\n\\n    if ($$.isLegendInset) {\\n        step = config.legend_inset_step ? config.legend_inset_step : targetIds.length;\\n        $$.updateLegendStep(step);\\n    }\\n\\n    if ($$.isLegendRight) {\\n        xForLegend = function xForLegend(id) {\\n            return maxWidth * steps[id];\\n        };\\n        yForLegend = function yForLegend(id) {\\n            return margins[steps[id]] + offsets[id];\\n        };\\n    } else if ($$.isLegendInset) {\\n        xForLegend = function xForLegend(id) {\\n            return maxWidth * steps[id] + 10;\\n        };\\n        yForLegend = function yForLegend(id) {\\n            return margins[steps[id]] + offsets[id];\\n        };\\n    } else {\\n        xForLegend = function xForLegend(id) {\\n            return margins[steps[id]] + offsets[id];\\n        };\\n        yForLegend = function yForLegend(id) {\\n            return maxHeight * steps[id];\\n        };\\n    }\\n    xForLegendText = function xForLegendText(id, i) {\\n        return xForLegend(id, i) + 4 + config.legend_item_tile_width;\\n    };\\n    yForLegendText = function yForLegendText(id, i) {\\n        return yForLegend(id, i) + 9;\\n    };\\n    xForLegendRect = function xForLegendRect(id, i) {\\n        return xForLegend(id, i);\\n    };\\n    yForLegendRect = function yForLegendRect(id, i) {\\n        return yForLegend(id, i) - 5;\\n    };\\n    x1ForLegendTile = function x1ForLegendTile(id, i) {\\n        return xForLegend(id, i) - 2;\\n    };\\n    x2ForLegendTile = function x2ForLegendTile(id, i) {\\n        return xForLegend(id, i) - 2 + config.legend_item_tile_width;\\n    };\\n    yForLegendTile = function yForLegendTile(id, i) {\\n        return yForLegend(id, i) + 4;\\n    };\\n\\n    // Define g for legend area\\n    l = $$.legend.selectAll('.' + CLASS.legendItem).data(targetIds).enter().append('g').attr('class', function (id) {\\n        return $$.generateClass(CLASS.legendItem, id);\\n    }).style('visibility', function (id) {\\n        return $$.isLegendToShow(id) ? 'visible' : 'hidden';\\n    }).style('cursor', 'pointer').on('click', function (id) {\\n        if (config.legend_item_onclick) {\\n            config.legend_item_onclick.call($$, id);\\n        } else {\\n            if ($$.d3.event.altKey) {\\n                $$.api.hide();\\n                $$.api.show(id);\\n            } else {\\n                $$.api.toggle(id);\\n                $$.isTargetToShow(id) ? $$.api.focus(id) : $$.api.revert();\\n            }\\n        }\\n    }).on('mouseover', function (id) {\\n        if (config.legend_item_onmouseover) {\\n            config.legend_item_onmouseover.call($$, id);\\n        } else {\\n            $$.d3.select(this).classed(CLASS.legendItemFocused, true);\\n            if (!$$.transiting && $$.isTargetToShow(id)) {\\n                $$.api.focus(id);\\n            }\\n        }\\n    }).on('mouseout', function (id) {\\n        if (config.legend_item_onmouseout) {\\n            config.legend_item_onmouseout.call($$, id);\\n        } else {\\n            $$.d3.select(this).classed(CLASS.legendItemFocused, false);\\n            $$.api.revert();\\n        }\\n    });\\n    l.append('text').text(function (id) {\\n        return isDefined(config.data_names[id]) ? config.data_names[id] : id;\\n    }).each(function (id, i) {\\n        updatePositions(this, id, i);\\n    }).style(\\\"pointer-events\\\", \\\"none\\\").attr('x', $$.isLegendRight || $$.isLegendInset ? xForLegendText : -200).attr('y', $$.isLegendRight || $$.isLegendInset ? -200 : yForLegendText);\\n    l.append('rect').attr(\\\"class\\\", CLASS.legendItemEvent).style('fill-opacity', 0).attr('x', $$.isLegendRight || $$.isLegendInset ? xForLegendRect : -200).attr('y', $$.isLegendRight || $$.isLegendInset ? -200 : yForLegendRect);\\n    l.append('line').attr('class', CLASS.legendItemTile).style('stroke', $$.color).style(\\\"pointer-events\\\", \\\"none\\\").attr('x1', $$.isLegendRight || $$.isLegendInset ? x1ForLegendTile : -200).attr('y1', $$.isLegendRight || $$.isLegendInset ? -200 : yForLegendTile).attr('x2', $$.isLegendRight || $$.isLegendInset ? x2ForLegendTile : -200).attr('y2', $$.isLegendRight || $$.isLegendInset ? -200 : yForLegendTile).attr('stroke-width', config.legend_item_tile_height);\\n\\n    // Set background for inset legend\\n    background = $$.legend.select('.' + CLASS.legendBackground + ' rect');\\n    if ($$.isLegendInset && maxWidth > 0 && background.size() === 0) {\\n        background = $$.legend.insert('g', '.' + CLASS.legendItem).attr(\\\"class\\\", CLASS.legendBackground).append('rect');\\n    }\\n\\n    texts = $$.legend.selectAll('text').data(targetIds).text(function (id) {\\n        return isDefined(config.data_names[id]) ? config.data_names[id] : id;\\n    } // MEMO: needed for update\\n    ).each(function (id, i) {\\n        updatePositions(this, id, i);\\n    });\\n    (withTransition ? texts.transition() : texts).attr('x', xForLegendText).attr('y', yForLegendText);\\n\\n    rects = $$.legend.selectAll('rect.' + CLASS.legendItemEvent).data(targetIds);\\n    (withTransition ? rects.transition() : rects).attr('width', function (id) {\\n        return widths[id];\\n    }).attr('height', function (id) {\\n        return heights[id];\\n    }).attr('x', xForLegendRect).attr('y', yForLegendRect);\\n\\n    tiles = $$.legend.selectAll('line.' + CLASS.legendItemTile).data(targetIds);\\n    (withTransition ? tiles.transition() : tiles).style('stroke', $$.color).attr('x1', x1ForLegendTile).attr('y1', yForLegendTile).attr('x2', x2ForLegendTile).attr('y2', yForLegendTile);\\n\\n    if (background) {\\n        (withTransition ? background.transition() : background).attr('height', $$.getLegendHeight() - 12).attr('width', maxWidth * (step + 1) + 10);\\n    }\\n\\n    // toggle legend state\\n    $$.legend.selectAll('.' + CLASS.legendItem).classed(CLASS.legendItemHidden, function (id) {\\n        return !$$.isTargetToShow(id);\\n    });\\n\\n    // Update all to reflect change of legend\\n    $$.updateLegendItemWidth(maxWidth);\\n    $$.updateLegendItemHeight(maxHeight);\\n    $$.updateLegendStep(step);\\n    // Update size and scale\\n    $$.updateSizes();\\n    $$.updateScales();\\n    $$.updateSvgSize();\\n    // Update g positions\\n    $$.transformAll(withTransitionForTransform, transitions);\\n    $$.legendHasRendered = true;\\n};\\n\\nc3_chart_internal_fn.initRegion = function () {\\n    var $$ = this;\\n    $$.region = $$.main.append('g').attr(\\\"clip-path\\\", $$.clipPath).attr(\\\"class\\\", CLASS.regions);\\n};\\nc3_chart_internal_fn.updateRegion = function (duration) {\\n    var $$ = this,\\n        config = $$.config;\\n\\n    // hide if arc type\\n    $$.region.style('visibility', $$.hasArcType() ? 'hidden' : 'visible');\\n\\n    $$.mainRegion = $$.main.select('.' + CLASS.regions).selectAll('.' + CLASS.region).data(config.regions);\\n    $$.mainRegion.enter().append('g').append('rect').style(\\\"fill-opacity\\\", 0);\\n    $$.mainRegion.attr('class', $$.classRegion.bind($$));\\n    $$.mainRegion.exit().transition().duration(duration).style(\\\"opacity\\\", 0).remove();\\n};\\nc3_chart_internal_fn.redrawRegion = function (withTransition) {\\n    var $$ = this,\\n        regions = $$.mainRegion.selectAll('rect').each(function () {\\n        // data is binded to g and it's not transferred to rect (child node) automatically,\\n        // then data of each rect has to be updated manually.\\n        // TODO: there should be more efficient way to solve this?\\n        var parentData = $$.d3.select(this.parentNode).datum();\\n        $$.d3.select(this).datum(parentData);\\n    }),\\n        x = $$.regionX.bind($$),\\n        y = $$.regionY.bind($$),\\n        w = $$.regionWidth.bind($$),\\n        h = $$.regionHeight.bind($$);\\n    return [(withTransition ? regions.transition() : regions).attr(\\\"x\\\", x).attr(\\\"y\\\", y).attr(\\\"width\\\", w).attr(\\\"height\\\", h).style(\\\"fill-opacity\\\", function (d) {\\n        return isValue(d.opacity) ? d.opacity : 0.1;\\n    })];\\n};\\nc3_chart_internal_fn.regionX = function (d) {\\n    var $$ = this,\\n        config = $$.config,\\n        xPos,\\n        yScale = d.axis === 'y' ? $$.y : $$.y2;\\n    if (d.axis === 'y' || d.axis === 'y2') {\\n        xPos = config.axis_rotated ? 'start' in d ? yScale(d.start) : 0 : 0;\\n    } else {\\n        xPos = config.axis_rotated ? 0 : 'start' in d ? $$.x($$.isTimeSeries() ? $$.parseDate(d.start) : d.start) : 0;\\n    }\\n    return xPos;\\n};\\nc3_chart_internal_fn.regionY = function (d) {\\n    var $$ = this,\\n        config = $$.config,\\n        yPos,\\n        yScale = d.axis === 'y' ? $$.y : $$.y2;\\n    if (d.axis === 'y' || d.axis === 'y2') {\\n        yPos = config.axis_rotated ? 0 : 'end' in d ? yScale(d.end) : 0;\\n    } else {\\n        yPos = config.axis_rotated ? 'start' in d ? $$.x($$.isTimeSeries() ? $$.parseDate(d.start) : d.start) : 0 : 0;\\n    }\\n    return yPos;\\n};\\nc3_chart_internal_fn.regionWidth = function (d) {\\n    var $$ = this,\\n        config = $$.config,\\n        start = $$.regionX(d),\\n        end,\\n        yScale = d.axis === 'y' ? $$.y : $$.y2;\\n    if (d.axis === 'y' || d.axis === 'y2') {\\n        end = config.axis_rotated ? 'end' in d ? yScale(d.end) : $$.width : $$.width;\\n    } else {\\n        end = config.axis_rotated ? $$.width : 'end' in d ? $$.x($$.isTimeSeries() ? $$.parseDate(d.end) : d.end) : $$.width;\\n    }\\n    return end < start ? 0 : end - start;\\n};\\nc3_chart_internal_fn.regionHeight = function (d) {\\n    var $$ = this,\\n        config = $$.config,\\n        start = this.regionY(d),\\n        end,\\n        yScale = d.axis === 'y' ? $$.y : $$.y2;\\n    if (d.axis === 'y' || d.axis === 'y2') {\\n        end = config.axis_rotated ? $$.height : 'start' in d ? yScale(d.start) : $$.height;\\n    } else {\\n        end = config.axis_rotated ? 'end' in d ? $$.x($$.isTimeSeries() ? $$.parseDate(d.end) : d.end) : $$.height : $$.height;\\n    }\\n    return end < start ? 0 : end - start;\\n};\\nc3_chart_internal_fn.isRegionOnX = function (d) {\\n    return !d.axis || d.axis === 'x';\\n};\\n\\nc3_chart_internal_fn.getScale = function (min, max, forTimeseries) {\\n    return (forTimeseries ? this.d3.time.scale() : this.d3.scale.linear()).range([min, max]);\\n};\\nc3_chart_internal_fn.getX = function (min, max, domain, offset) {\\n    var $$ = this,\\n        scale = $$.getScale(min, max, $$.isTimeSeries()),\\n        _scale = domain ? scale.domain(domain) : scale,\\n        key;\\n    // Define customized scale if categorized axis\\n    if ($$.isCategorized()) {\\n        offset = offset || function () {\\n            return 0;\\n        };\\n        scale = function scale(d, raw) {\\n            var v = _scale(d) + offset(d);\\n            return raw ? v : Math.ceil(v);\\n        };\\n    } else {\\n        scale = function scale(d, raw) {\\n            var v = _scale(d);\\n            return raw ? v : Math.ceil(v);\\n        };\\n    }\\n    // define functions\\n    for (key in _scale) {\\n        scale[key] = _scale[key];\\n    }\\n    scale.orgDomain = function () {\\n        return _scale.domain();\\n    };\\n    // define custom domain() for categorized axis\\n    if ($$.isCategorized()) {\\n        scale.domain = function (domain) {\\n            if (!arguments.length) {\\n                domain = this.orgDomain();\\n                return [domain[0], domain[1] + 1];\\n            }\\n            _scale.domain(domain);\\n            return scale;\\n        };\\n    }\\n    return scale;\\n};\\nc3_chart_internal_fn.getY = function (min, max, domain) {\\n    var scale = this.getScale(min, max, this.isTimeSeriesY());\\n    if (domain) {\\n        scale.domain(domain);\\n    }\\n    return scale;\\n};\\nc3_chart_internal_fn.getYScale = function (id) {\\n    return this.axis.getId(id) === 'y2' ? this.y2 : this.y;\\n};\\nc3_chart_internal_fn.getSubYScale = function (id) {\\n    return this.axis.getId(id) === 'y2' ? this.subY2 : this.subY;\\n};\\nc3_chart_internal_fn.updateScales = function () {\\n    var $$ = this,\\n        config = $$.config,\\n        forInit = !$$.x;\\n    // update edges\\n    $$.xMin = config.axis_rotated ? 1 : 0;\\n    $$.xMax = config.axis_rotated ? $$.height : $$.width;\\n    $$.yMin = config.axis_rotated ? 0 : $$.height;\\n    $$.yMax = config.axis_rotated ? $$.width : 1;\\n    $$.subXMin = $$.xMin;\\n    $$.subXMax = $$.xMax;\\n    $$.subYMin = config.axis_rotated ? 0 : $$.height2;\\n    $$.subYMax = config.axis_rotated ? $$.width2 : 1;\\n    // update scales\\n    $$.x = $$.getX($$.xMin, $$.xMax, forInit ? undefined : $$.x.orgDomain(), function () {\\n        return $$.xAxis.tickOffset();\\n    });\\n    $$.y = $$.getY($$.yMin, $$.yMax, forInit ? config.axis_y_default : $$.y.domain());\\n    $$.y2 = $$.getY($$.yMin, $$.yMax, forInit ? config.axis_y2_default : $$.y2.domain());\\n    $$.subX = $$.getX($$.xMin, $$.xMax, $$.orgXDomain, function (d) {\\n        return d % 1 ? 0 : $$.subXAxis.tickOffset();\\n    });\\n    $$.subY = $$.getY($$.subYMin, $$.subYMax, forInit ? config.axis_y_default : $$.subY.domain());\\n    $$.subY2 = $$.getY($$.subYMin, $$.subYMax, forInit ? config.axis_y2_default : $$.subY2.domain());\\n    // update axes\\n    $$.xAxisTickFormat = $$.axis.getXAxisTickFormat();\\n    $$.xAxisTickValues = $$.axis.getXAxisTickValues();\\n    $$.yAxisTickValues = $$.axis.getYAxisTickValues();\\n    $$.y2AxisTickValues = $$.axis.getY2AxisTickValues();\\n\\n    $$.xAxis = $$.axis.getXAxis($$.x, $$.xOrient, $$.xAxisTickFormat, $$.xAxisTickValues, config.axis_x_tick_outer);\\n    $$.subXAxis = $$.axis.getXAxis($$.subX, $$.subXOrient, $$.xAxisTickFormat, $$.xAxisTickValues, config.axis_x_tick_outer);\\n    $$.yAxis = $$.axis.getYAxis($$.y, $$.yOrient, config.axis_y_tick_format, $$.yAxisTickValues, config.axis_y_tick_outer);\\n    $$.y2Axis = $$.axis.getYAxis($$.y2, $$.y2Orient, config.axis_y2_tick_format, $$.y2AxisTickValues, config.axis_y2_tick_outer);\\n\\n    // Set initialized scales to brush and zoom\\n    if (!forInit) {\\n        if ($$.brush) {\\n            $$.brush.scale($$.subX);\\n        }\\n        if (config.zoom_enabled) {\\n            $$.zoom.scale($$.x);\\n        }\\n    }\\n    // update for arc\\n    if ($$.updateArc) {\\n        $$.updateArc();\\n    }\\n};\\n\\nc3_chart_internal_fn.selectPoint = function (target, d, i) {\\n    var $$ = this,\\n        config = $$.config,\\n        cx = (config.axis_rotated ? $$.circleY : $$.circleX).bind($$),\\n        cy = (config.axis_rotated ? $$.circleX : $$.circleY).bind($$),\\n        r = $$.pointSelectR.bind($$);\\n    config.data_onselected.call($$.api, d, target.node());\\n    // add selected-circle on low layer g\\n    $$.main.select('.' + CLASS.selectedCircles + $$.getTargetSelectorSuffix(d.id)).selectAll('.' + CLASS.selectedCircle + '-' + i).data([d]).enter().append('circle').attr(\\\"class\\\", function () {\\n        return $$.generateClass(CLASS.selectedCircle, i);\\n    }).attr(\\\"cx\\\", cx).attr(\\\"cy\\\", cy).attr(\\\"stroke\\\", function () {\\n        return $$.color(d);\\n    }).attr(\\\"r\\\", function (d) {\\n        return $$.pointSelectR(d) * 1.4;\\n    }).transition().duration(100).attr(\\\"r\\\", r);\\n};\\nc3_chart_internal_fn.unselectPoint = function (target, d, i) {\\n    var $$ = this;\\n    $$.config.data_onunselected.call($$.api, d, target.node());\\n    // remove selected-circle from low layer g\\n    $$.main.select('.' + CLASS.selectedCircles + $$.getTargetSelectorSuffix(d.id)).selectAll('.' + CLASS.selectedCircle + '-' + i).transition().duration(100).attr('r', 0).remove();\\n};\\nc3_chart_internal_fn.togglePoint = function (selected, target, d, i) {\\n    selected ? this.selectPoint(target, d, i) : this.unselectPoint(target, d, i);\\n};\\nc3_chart_internal_fn.selectPath = function (target, d) {\\n    var $$ = this;\\n    $$.config.data_onselected.call($$, d, target.node());\\n    if ($$.config.interaction_brighten) {\\n        target.transition().duration(100).style(\\\"fill\\\", function () {\\n            return $$.d3.rgb($$.color(d)).brighter(0.75);\\n        });\\n    }\\n};\\nc3_chart_internal_fn.unselectPath = function (target, d) {\\n    var $$ = this;\\n    $$.config.data_onunselected.call($$, d, target.node());\\n    if ($$.config.interaction_brighten) {\\n        target.transition().duration(100).style(\\\"fill\\\", function () {\\n            return $$.color(d);\\n        });\\n    }\\n};\\nc3_chart_internal_fn.togglePath = function (selected, target, d, i) {\\n    selected ? this.selectPath(target, d, i) : this.unselectPath(target, d, i);\\n};\\nc3_chart_internal_fn.getToggle = function (that, d) {\\n    var $$ = this,\\n        toggle;\\n    if (that.nodeName === 'circle') {\\n        if ($$.isStepType(d)) {\\n            // circle is hidden in step chart, so treat as within the click area\\n            toggle = function toggle() {}; // TODO: how to select step chart?\\n        } else {\\n            toggle = $$.togglePoint;\\n        }\\n    } else if (that.nodeName === 'path') {\\n        toggle = $$.togglePath;\\n    }\\n    return toggle;\\n};\\nc3_chart_internal_fn.toggleShape = function (that, d, i) {\\n    var $$ = this,\\n        d3 = $$.d3,\\n        config = $$.config,\\n        shape = d3.select(that),\\n        isSelected = shape.classed(CLASS.SELECTED),\\n        toggle = $$.getToggle(that, d).bind($$);\\n\\n    if (config.data_selection_enabled && config.data_selection_isselectable(d)) {\\n        if (!config.data_selection_multiple) {\\n            $$.main.selectAll('.' + CLASS.shapes + (config.data_selection_grouped ? $$.getTargetSelectorSuffix(d.id) : \\\"\\\")).selectAll('.' + CLASS.shape).each(function (d, i) {\\n                var shape = d3.select(this);\\n                if (shape.classed(CLASS.SELECTED)) {\\n                    toggle(false, shape.classed(CLASS.SELECTED, false), d, i);\\n                }\\n            });\\n        }\\n        shape.classed(CLASS.SELECTED, !isSelected);\\n        toggle(!isSelected, shape, d, i);\\n    }\\n};\\n\\nc3_chart_internal_fn.initBar = function () {\\n    var $$ = this;\\n    $$.main.select('.' + CLASS.chart).append(\\\"g\\\").attr(\\\"class\\\", CLASS.chartBars);\\n};\\nc3_chart_internal_fn.updateTargetsForBar = function (targets) {\\n    var $$ = this,\\n        config = $$.config,\\n        mainBarUpdate,\\n        mainBarEnter,\\n        classChartBar = $$.classChartBar.bind($$),\\n        classBars = $$.classBars.bind($$),\\n        classFocus = $$.classFocus.bind($$);\\n    mainBarUpdate = $$.main.select('.' + CLASS.chartBars).selectAll('.' + CLASS.chartBar).data(targets).attr('class', function (d) {\\n        return classChartBar(d) + classFocus(d);\\n    });\\n    mainBarEnter = mainBarUpdate.enter().append('g').attr('class', classChartBar).style(\\\"pointer-events\\\", \\\"none\\\");\\n    // Bars for each data\\n    mainBarEnter.append('g').attr(\\\"class\\\", classBars).style(\\\"cursor\\\", function (d) {\\n        return config.data_selection_isselectable(d) ? \\\"pointer\\\" : null;\\n    });\\n};\\nc3_chart_internal_fn.updateBar = function (durationForExit) {\\n    var $$ = this,\\n        barData = $$.barData.bind($$),\\n        classBar = $$.classBar.bind($$),\\n        initialOpacity = $$.initialOpacity.bind($$),\\n        color = function color(d) {\\n        return $$.color(d.id);\\n    };\\n    $$.mainBar = $$.main.selectAll('.' + CLASS.bars).selectAll('.' + CLASS.bar).data(barData);\\n    $$.mainBar.enter().append('path').attr(\\\"class\\\", classBar).style(\\\"stroke\\\", color).style(\\\"fill\\\", color);\\n    $$.mainBar.style(\\\"opacity\\\", initialOpacity);\\n    $$.mainBar.exit().transition().duration(durationForExit).remove();\\n};\\nc3_chart_internal_fn.redrawBar = function (drawBar, withTransition) {\\n    return [(withTransition ? this.mainBar.transition(Math.random().toString()) : this.mainBar).attr('d', drawBar).style(\\\"fill\\\", this.color).style(\\\"opacity\\\", 1)];\\n};\\nc3_chart_internal_fn.getBarW = function (axis, barTargetsNum) {\\n    var $$ = this,\\n        config = $$.config,\\n        w = typeof config.bar_width === 'number' ? config.bar_width : barTargetsNum ? axis.tickInterval() * config.bar_width_ratio / barTargetsNum : 0;\\n    return config.bar_width_max && w > config.bar_width_max ? config.bar_width_max : w;\\n};\\nc3_chart_internal_fn.getBars = function (i, id) {\\n    var $$ = this;\\n    return (id ? $$.main.selectAll('.' + CLASS.bars + $$.getTargetSelectorSuffix(id)) : $$.main).selectAll('.' + CLASS.bar + (isValue(i) ? '-' + i : ''));\\n};\\nc3_chart_internal_fn.expandBars = function (i, id, reset) {\\n    var $$ = this;\\n    if (reset) {\\n        $$.unexpandBars();\\n    }\\n    $$.getBars(i, id).classed(CLASS.EXPANDED, true);\\n};\\nc3_chart_internal_fn.unexpandBars = function (i) {\\n    var $$ = this;\\n    $$.getBars(i).classed(CLASS.EXPANDED, false);\\n};\\nc3_chart_internal_fn.generateDrawBar = function (barIndices, isSub) {\\n    var $$ = this,\\n        config = $$.config,\\n        getPoints = $$.generateGetBarPoints(barIndices, isSub);\\n    return function (d, i) {\\n        // 4 points that make a bar\\n        var points = getPoints(d, i);\\n\\n        // switch points if axis is rotated, not applicable for sub chart\\n        var indexX = config.axis_rotated ? 1 : 0;\\n        var indexY = config.axis_rotated ? 0 : 1;\\n\\n        var path = 'M ' + points[0][indexX] + ',' + points[0][indexY] + ' ' + 'L' + points[1][indexX] + ',' + points[1][indexY] + ' ' + 'L' + points[2][indexX] + ',' + points[2][indexY] + ' ' + 'L' + points[3][indexX] + ',' + points[3][indexY] + ' ' + 'z';\\n\\n        return path;\\n    };\\n};\\nc3_chart_internal_fn.generateGetBarPoints = function (barIndices, isSub) {\\n    var $$ = this,\\n        axis = isSub ? $$.subXAxis : $$.xAxis,\\n        barTargetsNum = barIndices.__max__ + 1,\\n        barW = $$.getBarW(axis, barTargetsNum),\\n        barX = $$.getShapeX(barW, barTargetsNum, barIndices, !!isSub),\\n        barY = $$.getShapeY(!!isSub),\\n        barOffset = $$.getShapeOffset($$.isBarType, barIndices, !!isSub),\\n        yScale = isSub ? $$.getSubYScale : $$.getYScale;\\n    return function (d, i) {\\n        var y0 = yScale.call($$, d.id)(0),\\n            offset = barOffset(d, i) || y0,\\n            // offset is for stacked bar chart\\n        posX = barX(d),\\n            posY = barY(d);\\n        // fix posY not to overflow opposite quadrant\\n        if ($$.config.axis_rotated) {\\n            if (0 < d.value && posY < y0 || d.value < 0 && y0 < posY) {\\n                posY = y0;\\n            }\\n        }\\n        // 4 points that make a bar\\n        return [[posX, offset], [posX, posY - (y0 - offset)], [posX + barW, posY - (y0 - offset)], [posX + barW, offset]];\\n    };\\n};\\nc3_chart_internal_fn.isWithinBar = function (that) {\\n    var mouse = this.d3.mouse(that),\\n        box = that.getBoundingClientRect(),\\n        seg0 = that.pathSegList.getItem(0),\\n        seg1 = that.pathSegList.getItem(1),\\n        x = Math.min(seg0.x, seg1.x),\\n        y = Math.min(seg0.y, seg1.y),\\n        w = box.width,\\n        h = box.height,\\n        offset = 2,\\n        sx = x - offset,\\n        ex = x + w + offset,\\n        sy = y + h + offset,\\n        ey = y - offset;\\n    return sx < mouse[0] && mouse[0] < ex && ey < mouse[1] && mouse[1] < sy;\\n};\\n\\nc3_chart_internal_fn.getShapeIndices = function (typeFilter) {\\n    var $$ = this,\\n        config = $$.config,\\n        indices = {},\\n        i = 0,\\n        j,\\n        k;\\n    $$.filterTargetsToShow($$.data.targets.filter(typeFilter, $$)).forEach(function (d) {\\n        for (j = 0; j < config.data_groups.length; j++) {\\n            if (config.data_groups[j].indexOf(d.id) < 0) {\\n                continue;\\n            }\\n            for (k = 0; k < config.data_groups[j].length; k++) {\\n                if (config.data_groups[j][k] in indices) {\\n                    indices[d.id] = indices[config.data_groups[j][k]];\\n                    break;\\n                }\\n            }\\n        }\\n        if (isUndefined(indices[d.id])) {\\n            indices[d.id] = i++;\\n        }\\n    });\\n    indices.__max__ = i - 1;\\n    return indices;\\n};\\nc3_chart_internal_fn.getShapeX = function (offset, targetsNum, indices, isSub) {\\n    var $$ = this,\\n        scale = isSub ? $$.subX : $$.x;\\n    return function (d) {\\n        var index = d.id in indices ? indices[d.id] : 0;\\n        return d.x || d.x === 0 ? scale(d.x) - offset * (targetsNum / 2 - index) : 0;\\n    };\\n};\\nc3_chart_internal_fn.getShapeY = function (isSub) {\\n    var $$ = this;\\n    return function (d) {\\n        var scale = isSub ? $$.getSubYScale(d.id) : $$.getYScale(d.id);\\n        return scale(d.value);\\n    };\\n};\\nc3_chart_internal_fn.getShapeOffset = function (typeFilter, indices, isSub) {\\n    var $$ = this,\\n        targets = $$.orderTargets($$.filterTargetsToShow($$.data.targets.filter(typeFilter, $$))),\\n        targetIds = targets.map(function (t) {\\n        return t.id;\\n    });\\n    return function (d, i) {\\n        var scale = isSub ? $$.getSubYScale(d.id) : $$.getYScale(d.id),\\n            y0 = scale(0),\\n            offset = y0;\\n        targets.forEach(function (t) {\\n            var values = $$.isStepType(d) ? $$.convertValuesToStep(t.values) : t.values;\\n            if (t.id === d.id || indices[t.id] !== indices[d.id]) {\\n                return;\\n            }\\n            if (targetIds.indexOf(t.id) < targetIds.indexOf(d.id)) {\\n                // check if the x values line up\\n                if (typeof values[i] === 'undefined' || +values[i].x !== +d.x) {\\n                    // \\\"+\\\" for timeseries\\n                    // if not, try to find the value that does line up\\n                    i = -1;\\n                    values.forEach(function (v, j) {\\n                        if (v.x === d.x) {\\n                            i = j;\\n                        }\\n                    });\\n                }\\n                if (i in values && values[i].value * d.value >= 0) {\\n                    offset += scale(values[i].value) - y0;\\n                }\\n            }\\n        });\\n        return offset;\\n    };\\n};\\nc3_chart_internal_fn.isWithinShape = function (that, d) {\\n    var $$ = this,\\n        shape = $$.d3.select(that),\\n        isWithin;\\n    if (!$$.isTargetToShow(d.id)) {\\n        isWithin = false;\\n    } else if (that.nodeName === 'circle') {\\n        isWithin = $$.isStepType(d) ? $$.isWithinStep(that, $$.getYScale(d.id)(d.value)) : $$.isWithinCircle(that, $$.pointSelectR(d) * 1.5);\\n    } else if (that.nodeName === 'path') {\\n        isWithin = shape.classed(CLASS.bar) ? $$.isWithinBar(that) : true;\\n    }\\n    return isWithin;\\n};\\n\\nc3_chart_internal_fn.getInterpolate = function (d) {\\n    var $$ = this,\\n        interpolation = $$.isInterpolationType($$.config.spline_interpolation_type) ? $$.config.spline_interpolation_type : 'cardinal';\\n    return $$.isSplineType(d) ? interpolation : $$.isStepType(d) ? $$.config.line_step_type : \\\"linear\\\";\\n};\\n\\nc3_chart_internal_fn.initLine = function () {\\n    var $$ = this;\\n    $$.main.select('.' + CLASS.chart).append(\\\"g\\\").attr(\\\"class\\\", CLASS.chartLines);\\n};\\nc3_chart_internal_fn.updateTargetsForLine = function (targets) {\\n    var $$ = this,\\n        config = $$.config,\\n        mainLineUpdate,\\n        mainLineEnter,\\n        classChartLine = $$.classChartLine.bind($$),\\n        classLines = $$.classLines.bind($$),\\n        classAreas = $$.classAreas.bind($$),\\n        classCircles = $$.classCircles.bind($$),\\n        classFocus = $$.classFocus.bind($$);\\n    mainLineUpdate = $$.main.select('.' + CLASS.chartLines).selectAll('.' + CLASS.chartLine).data(targets).attr('class', function (d) {\\n        return classChartLine(d) + classFocus(d);\\n    });\\n    mainLineEnter = mainLineUpdate.enter().append('g').attr('class', classChartLine).style('opacity', 0).style(\\\"pointer-events\\\", \\\"none\\\");\\n    // Lines for each data\\n    mainLineEnter.append('g').attr(\\\"class\\\", classLines);\\n    // Areas\\n    mainLineEnter.append('g').attr('class', classAreas);\\n    // Circles for each data point on lines\\n    mainLineEnter.append('g').attr(\\\"class\\\", function (d) {\\n        return $$.generateClass(CLASS.selectedCircles, d.id);\\n    });\\n    mainLineEnter.append('g').attr(\\\"class\\\", classCircles).style(\\\"cursor\\\", function (d) {\\n        return config.data_selection_isselectable(d) ? \\\"pointer\\\" : null;\\n    });\\n    // Update date for selected circles\\n    targets.forEach(function (t) {\\n        $$.main.selectAll('.' + CLASS.selectedCircles + $$.getTargetSelectorSuffix(t.id)).selectAll('.' + CLASS.selectedCircle).each(function (d) {\\n            d.value = t.values[d.index].value;\\n        });\\n    });\\n    // MEMO: can not keep same color...\\n    //mainLineUpdate.exit().remove();\\n};\\nc3_chart_internal_fn.updateLine = function (durationForExit) {\\n    var $$ = this;\\n    $$.mainLine = $$.main.selectAll('.' + CLASS.lines).selectAll('.' + CLASS.line).data($$.lineData.bind($$));\\n    $$.mainLine.enter().append('path').attr('class', $$.classLine.bind($$)).style(\\\"stroke\\\", $$.color);\\n    $$.mainLine.style(\\\"opacity\\\", $$.initialOpacity.bind($$)).style('shape-rendering', function (d) {\\n        return $$.isStepType(d) ? 'crispEdges' : '';\\n    }).attr('transform', null);\\n    $$.mainLine.exit().transition().duration(durationForExit).style('opacity', 0).remove();\\n};\\nc3_chart_internal_fn.redrawLine = function (drawLine, withTransition) {\\n    return [(withTransition ? this.mainLine.transition(Math.random().toString()) : this.mainLine).attr(\\\"d\\\", drawLine).style(\\\"stroke\\\", this.color).style(\\\"opacity\\\", 1)];\\n};\\nc3_chart_internal_fn.generateDrawLine = function (lineIndices, isSub) {\\n    var $$ = this,\\n        config = $$.config,\\n        line = $$.d3.svg.line(),\\n        getPoints = $$.generateGetLinePoints(lineIndices, isSub),\\n        yScaleGetter = isSub ? $$.getSubYScale : $$.getYScale,\\n        xValue = function xValue(d) {\\n        return (isSub ? $$.subxx : $$.xx).call($$, d);\\n    },\\n        yValue = function yValue(d, i) {\\n        return config.data_groups.length > 0 ? getPoints(d, i)[0][1] : yScaleGetter.call($$, d.id)(d.value);\\n    };\\n\\n    line = config.axis_rotated ? line.x(yValue).y(xValue) : line.x(xValue).y(yValue);\\n    if (!config.line_connectNull) {\\n        line = line.defined(function (d) {\\n            return d.value != null;\\n        });\\n    }\\n    return function (d) {\\n        var values = config.line_connectNull ? $$.filterRemoveNull(d.values) : d.values,\\n            x = isSub ? $$.x : $$.subX,\\n            y = yScaleGetter.call($$, d.id),\\n            x0 = 0,\\n            y0 = 0,\\n            path;\\n        if ($$.isLineType(d)) {\\n            if (config.data_regions[d.id]) {\\n                path = $$.lineWithRegions(values, x, y, config.data_regions[d.id]);\\n            } else {\\n                if ($$.isStepType(d)) {\\n                    values = $$.convertValuesToStep(values);\\n                }\\n                path = line.interpolate($$.getInterpolate(d))(values);\\n            }\\n        } else {\\n            if (values[0]) {\\n                x0 = x(values[0].x);\\n                y0 = y(values[0].value);\\n            }\\n            path = config.axis_rotated ? \\\"M \\\" + y0 + \\\" \\\" + x0 : \\\"M \\\" + x0 + \\\" \\\" + y0;\\n        }\\n        return path ? path : \\\"M 0 0\\\";\\n    };\\n};\\nc3_chart_internal_fn.generateGetLinePoints = function (lineIndices, isSub) {\\n    // partial duplication of generateGetBarPoints\\n    var $$ = this,\\n        config = $$.config,\\n        lineTargetsNum = lineIndices.__max__ + 1,\\n        x = $$.getShapeX(0, lineTargetsNum, lineIndices, !!isSub),\\n        y = $$.getShapeY(!!isSub),\\n        lineOffset = $$.getShapeOffset($$.isLineType, lineIndices, !!isSub),\\n        yScale = isSub ? $$.getSubYScale : $$.getYScale;\\n    return function (d, i) {\\n        var y0 = yScale.call($$, d.id)(0),\\n            offset = lineOffset(d, i) || y0,\\n            // offset is for stacked area chart\\n        posX = x(d),\\n            posY = y(d);\\n        // fix posY not to overflow opposite quadrant\\n        if (config.axis_rotated) {\\n            if (0 < d.value && posY < y0 || d.value < 0 && y0 < posY) {\\n                posY = y0;\\n            }\\n        }\\n        // 1 point that marks the line position\\n        return [[posX, posY - (y0 - offset)], [posX, posY - (y0 - offset)], // needed for compatibility\\n        [posX, posY - (y0 - offset)], // needed for compatibility\\n        [posX, posY - (y0 - offset)] // needed for compatibility\\n        ];\\n    };\\n};\\n\\nc3_chart_internal_fn.lineWithRegions = function (d, x, y, _regions) {\\n    var $$ = this,\\n        config = $$.config,\\n        prev = -1,\\n        i,\\n        j,\\n        s = \\\"M\\\",\\n        sWithRegion,\\n        xp,\\n        yp,\\n        dx,\\n        dy,\\n        dd,\\n        diff,\\n        diffx2,\\n        xOffset = $$.isCategorized() ? 0.5 : 0,\\n        xValue,\\n        yValue,\\n        regions = [];\\n\\n    function isWithinRegions(x, regions) {\\n        var i;\\n        for (i = 0; i < regions.length; i++) {\\n            if (regions[i].start < x && x <= regions[i].end) {\\n                return true;\\n            }\\n        }\\n        return false;\\n    }\\n\\n    // Check start/end of regions\\n    if (isDefined(_regions)) {\\n        for (i = 0; i < _regions.length; i++) {\\n            regions[i] = {};\\n            if (isUndefined(_regions[i].start)) {\\n                regions[i].start = d[0].x;\\n            } else {\\n                regions[i].start = $$.isTimeSeries() ? $$.parseDate(_regions[i].start) : _regions[i].start;\\n            }\\n            if (isUndefined(_regions[i].end)) {\\n                regions[i].end = d[d.length - 1].x;\\n            } else {\\n                regions[i].end = $$.isTimeSeries() ? $$.parseDate(_regions[i].end) : _regions[i].end;\\n            }\\n        }\\n    }\\n\\n    // Set scales\\n    xValue = config.axis_rotated ? function (d) {\\n        return y(d.value);\\n    } : function (d) {\\n        return x(d.x);\\n    };\\n    yValue = config.axis_rotated ? function (d) {\\n        return x(d.x);\\n    } : function (d) {\\n        return y(d.value);\\n    };\\n\\n    // Define svg generator function for region\\n    function generateM(points) {\\n        return 'M' + points[0][0] + ' ' + points[0][1] + ' ' + points[1][0] + ' ' + points[1][1];\\n    }\\n    if ($$.isTimeSeries()) {\\n        sWithRegion = function sWithRegion(d0, d1, j, diff) {\\n            var x0 = d0.x.getTime(),\\n                x_diff = d1.x - d0.x,\\n                xv0 = new Date(x0 + x_diff * j),\\n                xv1 = new Date(x0 + x_diff * (j + diff)),\\n                points;\\n            if (config.axis_rotated) {\\n                points = [[y(yp(j)), x(xv0)], [y(yp(j + diff)), x(xv1)]];\\n            } else {\\n                points = [[x(xv0), y(yp(j))], [x(xv1), y(yp(j + diff))]];\\n            }\\n            return generateM(points);\\n        };\\n    } else {\\n        sWithRegion = function sWithRegion(d0, d1, j, diff) {\\n            var points;\\n            if (config.axis_rotated) {\\n                points = [[y(yp(j), true), x(xp(j))], [y(yp(j + diff), true), x(xp(j + diff))]];\\n            } else {\\n                points = [[x(xp(j), true), y(yp(j))], [x(xp(j + diff), true), y(yp(j + diff))]];\\n            }\\n            return generateM(points);\\n        };\\n    }\\n\\n    // Generate\\n    for (i = 0; i < d.length; i++) {\\n\\n        // Draw as normal\\n        if (isUndefined(regions) || !isWithinRegions(d[i].x, regions)) {\\n            s += \\\" \\\" + xValue(d[i]) + \\\" \\\" + yValue(d[i]);\\n        }\\n        // Draw with region // TODO: Fix for horizotal charts\\n        else {\\n                xp = $$.getScale(d[i - 1].x + xOffset, d[i].x + xOffset, $$.isTimeSeries());\\n                yp = $$.getScale(d[i - 1].value, d[i].value);\\n\\n                dx = x(d[i].x) - x(d[i - 1].x);\\n                dy = y(d[i].value) - y(d[i - 1].value);\\n                dd = Math.sqrt(Math.pow(dx, 2) + Math.pow(dy, 2));\\n                diff = 2 / dd;\\n                diffx2 = diff * 2;\\n\\n                for (j = diff; j <= 1; j += diffx2) {\\n                    s += sWithRegion(d[i - 1], d[i], j, diff);\\n                }\\n            }\\n        prev = d[i].x;\\n    }\\n\\n    return s;\\n};\\n\\nc3_chart_internal_fn.updateArea = function (durationForExit) {\\n    var $$ = this,\\n        d3 = $$.d3;\\n    $$.mainArea = $$.main.selectAll('.' + CLASS.areas).selectAll('.' + CLASS.area).data($$.lineData.bind($$));\\n    $$.mainArea.enter().append('path').attr(\\\"class\\\", $$.classArea.bind($$)).style(\\\"fill\\\", $$.color).style(\\\"opacity\\\", function () {\\n        $$.orgAreaOpacity = +d3.select(this).style('opacity');return 0;\\n    });\\n    $$.mainArea.style(\\\"opacity\\\", $$.orgAreaOpacity);\\n    $$.mainArea.exit().transition().duration(durationForExit).style('opacity', 0).remove();\\n};\\nc3_chart_internal_fn.redrawArea = function (drawArea, withTransition) {\\n    return [(withTransition ? this.mainArea.transition(Math.random().toString()) : this.mainArea).attr(\\\"d\\\", drawArea).style(\\\"fill\\\", this.color).style(\\\"opacity\\\", this.orgAreaOpacity)];\\n};\\nc3_chart_internal_fn.generateDrawArea = function (areaIndices, isSub) {\\n    var $$ = this,\\n        config = $$.config,\\n        area = $$.d3.svg.area(),\\n        getPoints = $$.generateGetAreaPoints(areaIndices, isSub),\\n        yScaleGetter = isSub ? $$.getSubYScale : $$.getYScale,\\n        xValue = function xValue(d) {\\n        return (isSub ? $$.subxx : $$.xx).call($$, d);\\n    },\\n        value0 = function value0(d, i) {\\n        return config.data_groups.length > 0 ? getPoints(d, i)[0][1] : yScaleGetter.call($$, d.id)($$.getAreaBaseValue(d.id));\\n    },\\n        value1 = function value1(d, i) {\\n        return config.data_groups.length > 0 ? getPoints(d, i)[1][1] : yScaleGetter.call($$, d.id)(d.value);\\n    };\\n\\n    area = config.axis_rotated ? area.x0(value0).x1(value1).y(xValue) : area.x(xValue).y0(config.area_above ? 0 : value0).y1(value1);\\n    if (!config.line_connectNull) {\\n        area = area.defined(function (d) {\\n            return d.value !== null;\\n        });\\n    }\\n\\n    return function (d) {\\n        var values = config.line_connectNull ? $$.filterRemoveNull(d.values) : d.values,\\n            x0 = 0,\\n            y0 = 0,\\n            path;\\n        if ($$.isAreaType(d)) {\\n            if ($$.isStepType(d)) {\\n                values = $$.convertValuesToStep(values);\\n            }\\n            path = area.interpolate($$.getInterpolate(d))(values);\\n        } else {\\n            if (values[0]) {\\n                x0 = $$.x(values[0].x);\\n                y0 = $$.getYScale(d.id)(values[0].value);\\n            }\\n            path = config.axis_rotated ? \\\"M \\\" + y0 + \\\" \\\" + x0 : \\\"M \\\" + x0 + \\\" \\\" + y0;\\n        }\\n        return path ? path : \\\"M 0 0\\\";\\n    };\\n};\\nc3_chart_internal_fn.getAreaBaseValue = function () {\\n    return 0;\\n};\\nc3_chart_internal_fn.generateGetAreaPoints = function (areaIndices, isSub) {\\n    // partial duplication of generateGetBarPoints\\n    var $$ = this,\\n        config = $$.config,\\n        areaTargetsNum = areaIndices.__max__ + 1,\\n        x = $$.getShapeX(0, areaTargetsNum, areaIndices, !!isSub),\\n        y = $$.getShapeY(!!isSub),\\n        areaOffset = $$.getShapeOffset($$.isAreaType, areaIndices, !!isSub),\\n        yScale = isSub ? $$.getSubYScale : $$.getYScale;\\n    return function (d, i) {\\n        var y0 = yScale.call($$, d.id)(0),\\n            offset = areaOffset(d, i) || y0,\\n            // offset is for stacked area chart\\n        posX = x(d),\\n            posY = y(d);\\n        // fix posY not to overflow opposite quadrant\\n        if (config.axis_rotated) {\\n            if (0 < d.value && posY < y0 || d.value < 0 && y0 < posY) {\\n                posY = y0;\\n            }\\n        }\\n        // 1 point that marks the area position\\n        return [[posX, offset], [posX, posY - (y0 - offset)], [posX, posY - (y0 - offset)], // needed for compatibility\\n        [posX, offset] // needed for compatibility\\n        ];\\n    };\\n};\\n\\nc3_chart_internal_fn.updateCircle = function () {\\n    var $$ = this;\\n    $$.mainCircle = $$.main.selectAll('.' + CLASS.circles).selectAll('.' + CLASS.circle).data($$.lineOrScatterData.bind($$));\\n    $$.mainCircle.enter().append(\\\"circle\\\").attr(\\\"class\\\", $$.classCircle.bind($$)).attr(\\\"r\\\", $$.pointR.bind($$)).style(\\\"fill\\\", $$.color);\\n    $$.mainCircle.style(\\\"opacity\\\", $$.initialOpacityForCircle.bind($$));\\n    $$.mainCircle.exit().remove();\\n};\\nc3_chart_internal_fn.redrawCircle = function (cx, cy, withTransition) {\\n    var selectedCircles = this.main.selectAll('.' + CLASS.selectedCircle);\\n    return [(withTransition ? this.mainCircle.transition(Math.random().toString()) : this.mainCircle).style('opacity', this.opacityForCircle.bind(this)).style(\\\"fill\\\", this.color).attr(\\\"cx\\\", cx).attr(\\\"cy\\\", cy), (withTransition ? selectedCircles.transition(Math.random().toString()) : selectedCircles).attr(\\\"cx\\\", cx).attr(\\\"cy\\\", cy)];\\n};\\nc3_chart_internal_fn.circleX = function (d) {\\n    return d.x || d.x === 0 ? this.x(d.x) : null;\\n};\\nc3_chart_internal_fn.updateCircleY = function () {\\n    var $$ = this,\\n        lineIndices,\\n        getPoints;\\n    if ($$.config.data_groups.length > 0) {\\n        lineIndices = $$.getShapeIndices($$.isLineType), getPoints = $$.generateGetLinePoints(lineIndices);\\n        $$.circleY = function (d, i) {\\n            return getPoints(d, i)[0][1];\\n        };\\n    } else {\\n        $$.circleY = function (d) {\\n            return $$.getYScale(d.id)(d.value);\\n        };\\n    }\\n};\\nc3_chart_internal_fn.getCircles = function (i, id) {\\n    var $$ = this;\\n    return (id ? $$.main.selectAll('.' + CLASS.circles + $$.getTargetSelectorSuffix(id)) : $$.main).selectAll('.' + CLASS.circle + (isValue(i) ? '-' + i : ''));\\n};\\nc3_chart_internal_fn.expandCircles = function (i, id, reset) {\\n    var $$ = this,\\n        r = $$.pointExpandedR.bind($$);\\n    if (reset) {\\n        $$.unexpandCircles();\\n    }\\n    $$.getCircles(i, id).classed(CLASS.EXPANDED, true).attr('r', r);\\n};\\nc3_chart_internal_fn.unexpandCircles = function (i) {\\n    var $$ = this,\\n        r = $$.pointR.bind($$);\\n    $$.getCircles(i).filter(function () {\\n        return $$.d3.select(this).classed(CLASS.EXPANDED);\\n    }).classed(CLASS.EXPANDED, false).attr('r', r);\\n};\\nc3_chart_internal_fn.pointR = function (d) {\\n    var $$ = this,\\n        config = $$.config;\\n    return $$.isStepType(d) ? 0 : isFunction(config.point_r) ? config.point_r(d) : config.point_r;\\n};\\nc3_chart_internal_fn.pointExpandedR = function (d) {\\n    var $$ = this,\\n        config = $$.config;\\n    return config.point_focus_expand_enabled ? config.point_focus_expand_r ? config.point_focus_expand_r : $$.pointR(d) * 1.75 : $$.pointR(d);\\n};\\nc3_chart_internal_fn.pointSelectR = function (d) {\\n    var $$ = this,\\n        config = $$.config;\\n    return isFunction(config.point_select_r) ? config.point_select_r(d) : config.point_select_r ? config.point_select_r : $$.pointR(d) * 4;\\n};\\nc3_chart_internal_fn.isWithinCircle = function (that, r) {\\n    var d3 = this.d3,\\n        mouse = d3.mouse(that),\\n        d3_this = d3.select(that),\\n        cx = +d3_this.attr(\\\"cx\\\"),\\n        cy = +d3_this.attr(\\\"cy\\\");\\n    return Math.sqrt(Math.pow(cx - mouse[0], 2) + Math.pow(cy - mouse[1], 2)) < r;\\n};\\nc3_chart_internal_fn.isWithinStep = function (that, y) {\\n    return Math.abs(y - this.d3.mouse(that)[1]) < 30;\\n};\\n\\nc3_chart_internal_fn.getCurrentWidth = function () {\\n    var $$ = this,\\n        config = $$.config;\\n    return config.size_width ? config.size_width : $$.getParentWidth();\\n};\\nc3_chart_internal_fn.getCurrentHeight = function () {\\n    var $$ = this,\\n        config = $$.config,\\n        h = config.size_height ? config.size_height : $$.getParentHeight();\\n    return h > 0 ? h : 320 / ($$.hasType('gauge') && !config.gauge_fullCircle ? 2 : 1);\\n};\\nc3_chart_internal_fn.getCurrentPaddingTop = function () {\\n    var $$ = this,\\n        config = $$.config,\\n        padding = isValue(config.padding_top) ? config.padding_top : 0;\\n    if ($$.title && $$.title.node()) {\\n        padding += $$.getTitlePadding();\\n    }\\n    return padding;\\n};\\nc3_chart_internal_fn.getCurrentPaddingBottom = function () {\\n    var config = this.config;\\n    return isValue(config.padding_bottom) ? config.padding_bottom : 0;\\n};\\nc3_chart_internal_fn.getCurrentPaddingLeft = function (withoutRecompute) {\\n    var $$ = this,\\n        config = $$.config;\\n    if (isValue(config.padding_left)) {\\n        return config.padding_left;\\n    } else if (config.axis_rotated) {\\n        return !config.axis_x_show ? 1 : Math.max(ceil10($$.getAxisWidthByAxisId('x', withoutRecompute)), 40);\\n    } else if (!config.axis_y_show || config.axis_y_inner) {\\n        // && !config.axis_rotated\\n        return $$.axis.getYAxisLabelPosition().isOuter ? 30 : 1;\\n    } else {\\n        return ceil10($$.getAxisWidthByAxisId('y', withoutRecompute));\\n    }\\n};\\nc3_chart_internal_fn.getCurrentPaddingRight = function () {\\n    var $$ = this,\\n        config = $$.config,\\n        defaultPadding = 10,\\n        legendWidthOnRight = $$.isLegendRight ? $$.getLegendWidth() + 20 : 0;\\n    if (isValue(config.padding_right)) {\\n        return config.padding_right + 1; // 1 is needed not to hide tick line\\n    } else if (config.axis_rotated) {\\n        return defaultPadding + legendWidthOnRight;\\n    } else if (!config.axis_y2_show || config.axis_y2_inner) {\\n        // && !config.axis_rotated\\n        return 2 + legendWidthOnRight + ($$.axis.getY2AxisLabelPosition().isOuter ? 20 : 0);\\n    } else {\\n        return ceil10($$.getAxisWidthByAxisId('y2')) + legendWidthOnRight;\\n    }\\n};\\n\\nc3_chart_internal_fn.getParentRectValue = function (key) {\\n    var parent = this.selectChart.node(),\\n        v;\\n    while (parent && parent.tagName !== 'BODY') {\\n        try {\\n            v = parent.getBoundingClientRect()[key];\\n        } catch (e) {\\n            if (key === 'width') {\\n                // In IE in certain cases getBoundingClientRect\\n                // will cause an \\\"unspecified error\\\"\\n                v = parent.offsetWidth;\\n            }\\n        }\\n        if (v) {\\n            break;\\n        }\\n        parent = parent.parentNode;\\n    }\\n    return v;\\n};\\nc3_chart_internal_fn.getParentWidth = function () {\\n    return this.getParentRectValue('width');\\n};\\nc3_chart_internal_fn.getParentHeight = function () {\\n    var h = this.selectChart.style('height');\\n    return h.indexOf('px') > 0 ? +h.replace('px', '') : 0;\\n};\\n\\nc3_chart_internal_fn.getSvgLeft = function (withoutRecompute) {\\n    var $$ = this,\\n        config = $$.config,\\n        hasLeftAxisRect = config.axis_rotated || !config.axis_rotated && !config.axis_y_inner,\\n        leftAxisClass = config.axis_rotated ? CLASS.axisX : CLASS.axisY,\\n        leftAxis = $$.main.select('.' + leftAxisClass).node(),\\n        svgRect = leftAxis && hasLeftAxisRect ? leftAxis.getBoundingClientRect() : { right: 0 },\\n        chartRect = $$.selectChart.node().getBoundingClientRect(),\\n        hasArc = $$.hasArcType(),\\n        svgLeft = svgRect.right - chartRect.left - (hasArc ? 0 : $$.getCurrentPaddingLeft(withoutRecompute));\\n    return svgLeft > 0 ? svgLeft : 0;\\n};\\n\\nc3_chart_internal_fn.getAxisWidthByAxisId = function (id, withoutRecompute) {\\n    var $$ = this,\\n        position = $$.axis.getLabelPositionById(id);\\n    return $$.axis.getMaxTickWidth(id, withoutRecompute) + (position.isInner ? 20 : 40);\\n};\\nc3_chart_internal_fn.getHorizontalAxisHeight = function (axisId) {\\n    var $$ = this,\\n        config = $$.config,\\n        h = 30;\\n    if (axisId === 'x' && !config.axis_x_show) {\\n        return 8;\\n    }\\n    if (axisId === 'x' && config.axis_x_height) {\\n        return config.axis_x_height;\\n    }\\n    if (axisId === 'y' && !config.axis_y_show) {\\n        return config.legend_show && !$$.isLegendRight && !$$.isLegendInset ? 10 : 1;\\n    }\\n    if (axisId === 'y2' && !config.axis_y2_show) {\\n        return $$.rotated_padding_top;\\n    }\\n    // Calculate x axis height when tick rotated\\n    if (axisId === 'x' && !config.axis_rotated && config.axis_x_tick_rotate) {\\n        h = 30 + $$.axis.getMaxTickWidth(axisId) * Math.cos(Math.PI * (90 - config.axis_x_tick_rotate) / 180);\\n    }\\n    // Calculate y axis height when tick rotated\\n    if (axisId === 'y' && config.axis_rotated && config.axis_y_tick_rotate) {\\n        h = 30 + $$.axis.getMaxTickWidth(axisId) * Math.cos(Math.PI * (90 - config.axis_y_tick_rotate) / 180);\\n    }\\n    return h + ($$.axis.getLabelPositionById(axisId).isInner ? 0 : 10) + (axisId === 'y2' ? -10 : 0);\\n};\\n\\nc3_chart_internal_fn.getEventRectWidth = function () {\\n    return Math.max(0, this.xAxis.tickInterval());\\n};\\n\\nc3_chart_internal_fn.initBrush = function () {\\n    var $$ = this,\\n        d3 = $$.d3;\\n    $$.brush = d3.svg.brush().on(\\\"brush\\\", function () {\\n        $$.redrawForBrush();\\n    });\\n    $$.brush.update = function () {\\n        if ($$.context) {\\n            $$.context.select('.' + CLASS.brush).call(this);\\n        }\\n        return this;\\n    };\\n    $$.brush.scale = function (scale) {\\n        return $$.config.axis_rotated ? this.y(scale) : this.x(scale);\\n    };\\n};\\nc3_chart_internal_fn.initSubchart = function () {\\n    var $$ = this,\\n        config = $$.config,\\n        context = $$.context = $$.svg.append(\\\"g\\\").attr(\\\"transform\\\", $$.getTranslate('context')),\\n        visibility = config.subchart_show ? 'visible' : 'hidden';\\n\\n    context.style('visibility', visibility);\\n\\n    // Define g for chart area\\n    context.append('g').attr(\\\"clip-path\\\", $$.clipPathForSubchart).attr('class', CLASS.chart);\\n\\n    // Define g for bar chart area\\n    context.select('.' + CLASS.chart).append(\\\"g\\\").attr(\\\"class\\\", CLASS.chartBars);\\n\\n    // Define g for line chart area\\n    context.select('.' + CLASS.chart).append(\\\"g\\\").attr(\\\"class\\\", CLASS.chartLines);\\n\\n    // Add extent rect for Brush\\n    context.append(\\\"g\\\").attr(\\\"clip-path\\\", $$.clipPath).attr(\\\"class\\\", CLASS.brush).call($$.brush);\\n\\n    // ATTENTION: This must be called AFTER chart added\\n    // Add Axis\\n    $$.axes.subx = context.append(\\\"g\\\").attr(\\\"class\\\", CLASS.axisX).attr(\\\"transform\\\", $$.getTranslate('subx')).attr(\\\"clip-path\\\", config.axis_rotated ? \\\"\\\" : $$.clipPathForXAxis).style(\\\"visibility\\\", config.subchart_axis_x_show ? visibility : 'hidden');\\n};\\nc3_chart_internal_fn.updateTargetsForSubchart = function (targets) {\\n    var $$ = this,\\n        context = $$.context,\\n        config = $$.config,\\n        contextLineEnter,\\n        contextLineUpdate,\\n        contextBarEnter,\\n        contextBarUpdate,\\n        classChartBar = $$.classChartBar.bind($$),\\n        classBars = $$.classBars.bind($$),\\n        classChartLine = $$.classChartLine.bind($$),\\n        classLines = $$.classLines.bind($$),\\n        classAreas = $$.classAreas.bind($$);\\n\\n    if (config.subchart_show) {\\n        //-- Bar --//\\n        contextBarUpdate = context.select('.' + CLASS.chartBars).selectAll('.' + CLASS.chartBar).data(targets).attr('class', classChartBar);\\n        contextBarEnter = contextBarUpdate.enter().append('g').style('opacity', 0).attr('class', classChartBar);\\n        // Bars for each data\\n        contextBarEnter.append('g').attr(\\\"class\\\", classBars);\\n\\n        //-- Line --//\\n        contextLineUpdate = context.select('.' + CLASS.chartLines).selectAll('.' + CLASS.chartLine).data(targets).attr('class', classChartLine);\\n        contextLineEnter = contextLineUpdate.enter().append('g').style('opacity', 0).attr('class', classChartLine);\\n        // Lines for each data\\n        contextLineEnter.append(\\\"g\\\").attr(\\\"class\\\", classLines);\\n        // Area\\n        contextLineEnter.append(\\\"g\\\").attr(\\\"class\\\", classAreas);\\n\\n        //-- Brush --//\\n        context.selectAll('.' + CLASS.brush + ' rect').attr(config.axis_rotated ? \\\"width\\\" : \\\"height\\\", config.axis_rotated ? $$.width2 : $$.height2);\\n    }\\n};\\nc3_chart_internal_fn.updateBarForSubchart = function (durationForExit) {\\n    var $$ = this;\\n    $$.contextBar = $$.context.selectAll('.' + CLASS.bars).selectAll('.' + CLASS.bar).data($$.barData.bind($$));\\n    $$.contextBar.enter().append('path').attr(\\\"class\\\", $$.classBar.bind($$)).style(\\\"stroke\\\", 'none').style(\\\"fill\\\", $$.color);\\n    $$.contextBar.style(\\\"opacity\\\", $$.initialOpacity.bind($$));\\n    $$.contextBar.exit().transition().duration(durationForExit).style('opacity', 0).remove();\\n};\\nc3_chart_internal_fn.redrawBarForSubchart = function (drawBarOnSub, withTransition, duration) {\\n    (withTransition ? this.contextBar.transition(Math.random().toString()).duration(duration) : this.contextBar).attr('d', drawBarOnSub).style('opacity', 1);\\n};\\nc3_chart_internal_fn.updateLineForSubchart = function (durationForExit) {\\n    var $$ = this;\\n    $$.contextLine = $$.context.selectAll('.' + CLASS.lines).selectAll('.' + CLASS.line).data($$.lineData.bind($$));\\n    $$.contextLine.enter().append('path').attr('class', $$.classLine.bind($$)).style('stroke', $$.color);\\n    $$.contextLine.style(\\\"opacity\\\", $$.initialOpacity.bind($$));\\n    $$.contextLine.exit().transition().duration(durationForExit).style('opacity', 0).remove();\\n};\\nc3_chart_internal_fn.redrawLineForSubchart = function (drawLineOnSub, withTransition, duration) {\\n    (withTransition ? this.contextLine.transition(Math.random().toString()).duration(duration) : this.contextLine).attr(\\\"d\\\", drawLineOnSub).style('opacity', 1);\\n};\\nc3_chart_internal_fn.updateAreaForSubchart = function (durationForExit) {\\n    var $$ = this,\\n        d3 = $$.d3;\\n    $$.contextArea = $$.context.selectAll('.' + CLASS.areas).selectAll('.' + CLASS.area).data($$.lineData.bind($$));\\n    $$.contextArea.enter().append('path').attr(\\\"class\\\", $$.classArea.bind($$)).style(\\\"fill\\\", $$.color).style(\\\"opacity\\\", function () {\\n        $$.orgAreaOpacity = +d3.select(this).style('opacity');return 0;\\n    });\\n    $$.contextArea.style(\\\"opacity\\\", 0);\\n    $$.contextArea.exit().transition().duration(durationForExit).style('opacity', 0).remove();\\n};\\nc3_chart_internal_fn.redrawAreaForSubchart = function (drawAreaOnSub, withTransition, duration) {\\n    (withTransition ? this.contextArea.transition(Math.random().toString()).duration(duration) : this.contextArea).attr(\\\"d\\\", drawAreaOnSub).style(\\\"fill\\\", this.color).style(\\\"opacity\\\", this.orgAreaOpacity);\\n};\\nc3_chart_internal_fn.redrawSubchart = function (withSubchart, transitions, duration, durationForExit, areaIndices, barIndices, lineIndices) {\\n    var $$ = this,\\n        d3 = $$.d3,\\n        config = $$.config,\\n        drawAreaOnSub,\\n        drawBarOnSub,\\n        drawLineOnSub;\\n\\n    $$.context.style('visibility', config.subchart_show ? 'visible' : 'hidden');\\n\\n    // subchart\\n    if (config.subchart_show) {\\n        // reflect main chart to extent on subchart if zoomed\\n        if (d3.event && d3.event.type === 'zoom') {\\n            $$.brush.extent($$.x.orgDomain()).update();\\n        }\\n        // update subchart elements if needed\\n        if (withSubchart) {\\n\\n            // extent rect\\n            if (!$$.brush.empty()) {\\n                $$.brush.extent($$.x.orgDomain()).update();\\n            }\\n            // setup drawer - MEMO: this must be called after axis updated\\n            drawAreaOnSub = $$.generateDrawArea(areaIndices, true);\\n            drawBarOnSub = $$.generateDrawBar(barIndices, true);\\n            drawLineOnSub = $$.generateDrawLine(lineIndices, true);\\n\\n            $$.updateBarForSubchart(duration);\\n            $$.updateLineForSubchart(duration);\\n            $$.updateAreaForSubchart(duration);\\n\\n            $$.redrawBarForSubchart(drawBarOnSub, duration, duration);\\n            $$.redrawLineForSubchart(drawLineOnSub, duration, duration);\\n            $$.redrawAreaForSubchart(drawAreaOnSub, duration, duration);\\n        }\\n    }\\n};\\nc3_chart_internal_fn.redrawForBrush = function () {\\n    var $$ = this,\\n        x = $$.x;\\n    $$.redraw({\\n        withTransition: false,\\n        withY: $$.config.zoom_rescale,\\n        withSubchart: false,\\n        withUpdateXDomain: true,\\n        withDimension: false\\n    });\\n    $$.config.subchart_onbrush.call($$.api, x.orgDomain());\\n};\\nc3_chart_internal_fn.transformContext = function (withTransition, transitions) {\\n    var $$ = this,\\n        subXAxis;\\n    if (transitions && transitions.axisSubX) {\\n        subXAxis = transitions.axisSubX;\\n    } else {\\n        subXAxis = $$.context.select('.' + CLASS.axisX);\\n        if (withTransition) {\\n            subXAxis = subXAxis.transition();\\n        }\\n    }\\n    $$.context.attr(\\\"transform\\\", $$.getTranslate('context'));\\n    subXAxis.attr(\\\"transform\\\", $$.getTranslate('subx'));\\n};\\nc3_chart_internal_fn.getDefaultExtent = function () {\\n    var $$ = this,\\n        config = $$.config,\\n        extent = isFunction(config.axis_x_extent) ? config.axis_x_extent($$.getXDomain($$.data.targets)) : config.axis_x_extent;\\n    if ($$.isTimeSeries()) {\\n        extent = [$$.parseDate(extent[0]), $$.parseDate(extent[1])];\\n    }\\n    return extent;\\n};\\n\\nc3_chart_internal_fn.initText = function () {\\n    var $$ = this;\\n    $$.main.select('.' + CLASS.chart).append(\\\"g\\\").attr(\\\"class\\\", CLASS.chartTexts);\\n    $$.mainText = $$.d3.selectAll([]);\\n};\\nc3_chart_internal_fn.updateTargetsForText = function (targets) {\\n    var $$ = this,\\n        mainTextUpdate,\\n        mainTextEnter,\\n        classChartText = $$.classChartText.bind($$),\\n        classTexts = $$.classTexts.bind($$),\\n        classFocus = $$.classFocus.bind($$);\\n    mainTextUpdate = $$.main.select('.' + CLASS.chartTexts).selectAll('.' + CLASS.chartText).data(targets).attr('class', function (d) {\\n        return classChartText(d) + classFocus(d);\\n    });\\n    mainTextEnter = mainTextUpdate.enter().append('g').attr('class', classChartText).style('opacity', 0).style(\\\"pointer-events\\\", \\\"none\\\");\\n    mainTextEnter.append('g').attr('class', classTexts);\\n};\\nc3_chart_internal_fn.updateText = function (durationForExit) {\\n    var $$ = this,\\n        config = $$.config,\\n        barOrLineData = $$.barOrLineData.bind($$),\\n        classText = $$.classText.bind($$);\\n    $$.mainText = $$.main.selectAll('.' + CLASS.texts).selectAll('.' + CLASS.text).data(barOrLineData);\\n    $$.mainText.enter().append('text').attr(\\\"class\\\", classText).attr('text-anchor', function (d) {\\n        return config.axis_rotated ? d.value < 0 ? 'end' : 'start' : 'middle';\\n    }).style(\\\"stroke\\\", 'none').style(\\\"fill\\\", function (d) {\\n        return $$.color(d);\\n    }).style(\\\"fill-opacity\\\", 0);\\n    $$.mainText.text(function (d, i, j) {\\n        return $$.dataLabelFormat(d.id)(d.value, d.id, i, j);\\n    });\\n    $$.mainText.exit().transition().duration(durationForExit).style('fill-opacity', 0).remove();\\n};\\nc3_chart_internal_fn.redrawText = function (xForText, yForText, forFlow, withTransition) {\\n    return [(withTransition ? this.mainText.transition() : this.mainText).attr('x', xForText).attr('y', yForText).style(\\\"fill\\\", this.color).style(\\\"fill-opacity\\\", forFlow ? 0 : this.opacityForText.bind(this))];\\n};\\nc3_chart_internal_fn.getTextRect = function (text, cls, element) {\\n    var dummy = this.d3.select('body').append('div').classed('c3', true),\\n        svg = dummy.append(\\\"svg\\\").style('visibility', 'hidden').style('position', 'fixed').style('top', 0).style('left', 0),\\n        font = this.d3.select(element).style('font'),\\n        rect;\\n    svg.selectAll('.dummy').data([text]).enter().append('text').classed(cls ? cls : \\\"\\\", true).style('font', font).text(text).each(function () {\\n        rect = this.getBoundingClientRect();\\n    });\\n    dummy.remove();\\n    return rect;\\n};\\nc3_chart_internal_fn.generateXYForText = function (areaIndices, barIndices, lineIndices, forX) {\\n    var $$ = this,\\n        getAreaPoints = $$.generateGetAreaPoints(areaIndices, false),\\n        getBarPoints = $$.generateGetBarPoints(barIndices, false),\\n        getLinePoints = $$.generateGetLinePoints(lineIndices, false),\\n        getter = forX ? $$.getXForText : $$.getYForText;\\n    return function (d, i) {\\n        var getPoints = $$.isAreaType(d) ? getAreaPoints : $$.isBarType(d) ? getBarPoints : getLinePoints;\\n        return getter.call($$, getPoints(d, i), d, this);\\n    };\\n};\\nc3_chart_internal_fn.getXForText = function (points, d, textElement) {\\n    var $$ = this,\\n        box = textElement.getBoundingClientRect(),\\n        xPos,\\n        padding;\\n    if ($$.config.axis_rotated) {\\n        padding = $$.isBarType(d) ? 4 : 6;\\n        xPos = points[2][1] + padding * (d.value < 0 ? -1 : 1);\\n    } else {\\n        xPos = $$.hasType('bar') ? (points[2][0] + points[0][0]) / 2 : points[0][0];\\n    }\\n    // show labels regardless of the domain if value is null\\n    if (d.value === null) {\\n        if (xPos > $$.width) {\\n            xPos = $$.width - box.width;\\n        } else if (xPos < 0) {\\n            xPos = 4;\\n        }\\n    }\\n    return xPos;\\n};\\nc3_chart_internal_fn.getYForText = function (points, d, textElement) {\\n    var $$ = this,\\n        box = textElement.getBoundingClientRect(),\\n        yPos;\\n    if ($$.config.axis_rotated) {\\n        yPos = (points[0][0] + points[2][0] + box.height * 0.6) / 2;\\n    } else {\\n        yPos = points[2][1];\\n        if (d.value < 0 || d.value === 0 && !$$.hasPositiveValue) {\\n            yPos += box.height;\\n            if ($$.isBarType(d) && $$.isSafari()) {\\n                yPos -= 3;\\n            } else if (!$$.isBarType(d) && $$.isChrome()) {\\n                yPos += 3;\\n            }\\n        } else {\\n            yPos += $$.isBarType(d) ? -3 : -6;\\n        }\\n    }\\n    // show labels regardless of the domain if value is null\\n    if (d.value === null && !$$.config.axis_rotated) {\\n        if (yPos < box.height) {\\n            yPos = box.height;\\n        } else if (yPos > this.height) {\\n            yPos = this.height - 4;\\n        }\\n    }\\n    return yPos;\\n};\\n\\nc3_chart_internal_fn.initTitle = function () {\\n    var $$ = this;\\n    $$.title = $$.svg.append(\\\"text\\\").text($$.config.title_text).attr(\\\"class\\\", $$.CLASS.title);\\n};\\nc3_chart_internal_fn.redrawTitle = function () {\\n    var $$ = this;\\n    $$.title.attr(\\\"x\\\", $$.xForTitle.bind($$)).attr(\\\"y\\\", $$.yForTitle.bind($$));\\n};\\nc3_chart_internal_fn.xForTitle = function () {\\n    var $$ = this,\\n        config = $$.config,\\n        position = config.title_position || 'left',\\n        x;\\n    if (position.indexOf('right') >= 0) {\\n        x = $$.currentWidth - $$.getTextRect($$.title.node().textContent, $$.CLASS.title, $$.title.node()).width - config.title_padding.right;\\n    } else if (position.indexOf('center') >= 0) {\\n        x = ($$.currentWidth - $$.getTextRect($$.title.node().textContent, $$.CLASS.title, $$.title.node()).width) / 2;\\n    } else {\\n        // left\\n        x = config.title_padding.left;\\n    }\\n    return x;\\n};\\nc3_chart_internal_fn.yForTitle = function () {\\n    var $$ = this;\\n    return $$.config.title_padding.top + $$.getTextRect($$.title.node().textContent, $$.CLASS.title, $$.title.node()).height;\\n};\\nc3_chart_internal_fn.getTitlePadding = function () {\\n    var $$ = this;\\n    return $$.yForTitle() + $$.config.title_padding.bottom;\\n};\\n\\nc3_chart_internal_fn.initTooltip = function () {\\n    var $$ = this,\\n        config = $$.config,\\n        i;\\n    $$.tooltip = $$.selectChart.style(\\\"position\\\", \\\"relative\\\").append(\\\"div\\\").attr('class', CLASS.tooltipContainer).style(\\\"position\\\", \\\"absolute\\\").style(\\\"pointer-events\\\", \\\"none\\\").style(\\\"display\\\", \\\"none\\\");\\n    // Show tooltip if needed\\n    if (config.tooltip_init_show) {\\n        if ($$.isTimeSeries() && isString(config.tooltip_init_x)) {\\n            config.tooltip_init_x = $$.parseDate(config.tooltip_init_x);\\n            for (i = 0; i < $$.data.targets[0].values.length; i++) {\\n                if ($$.data.targets[0].values[i].x - config.tooltip_init_x === 0) {\\n                    break;\\n                }\\n            }\\n            config.tooltip_init_x = i;\\n        }\\n        $$.tooltip.html(config.tooltip_contents.call($$, $$.data.targets.map(function (d) {\\n            return $$.addName(d.values[config.tooltip_init_x]);\\n        }), $$.axis.getXAxisTickFormat(), $$.getYFormat($$.hasArcType()), $$.color));\\n        $$.tooltip.style(\\\"top\\\", config.tooltip_init_position.top).style(\\\"left\\\", config.tooltip_init_position.left).style(\\\"display\\\", \\\"block\\\");\\n    }\\n};\\nc3_chart_internal_fn.getTooltipSortFunction = function () {\\n    var $$ = this,\\n        config = $$.config;\\n\\n    if (config.data_groups.length === 0 || config.tooltip_order !== undefined) {\\n        // if data are not grouped or if an order is specified\\n        // for the tooltip values we sort them by their values\\n\\n        var order = config.tooltip_order;\\n        if (order === undefined) {\\n            order = config.data_order;\\n        }\\n\\n        var valueOf = function valueOf(obj) {\\n            return obj ? obj.value : null;\\n        };\\n\\n        // if data are not grouped, we sort them by their value\\n        if (isString(order) && order.toLowerCase() === 'asc') {\\n            return function (a, b) {\\n                return valueOf(a) - valueOf(b);\\n            };\\n        } else if (isString(order) && order.toLowerCase() === 'desc') {\\n            return function (a, b) {\\n                return valueOf(b) - valueOf(a);\\n            };\\n        } else if (isFunction(order)) {\\n\\n            // if the function is from data_order we need\\n            // to wrap the returned function in order to format\\n            // the sorted value to the expected format\\n\\n            var sortFunction = order;\\n\\n            if (config.tooltip_order === undefined) {\\n                sortFunction = function sortFunction(a, b) {\\n                    return order(a ? {\\n                        id: a.id,\\n                        values: [a]\\n                    } : null, b ? {\\n                        id: b.id,\\n                        values: [b]\\n                    } : null);\\n                };\\n            }\\n\\n            return sortFunction;\\n        } else if (isArray(order)) {\\n            return function (a, b) {\\n                return order.indexOf(a.id) - order.indexOf(b.id);\\n            };\\n        }\\n    } else {\\n        // if data are grouped, we follow the order of grouped targets\\n        var ids = $$.orderTargets($$.data.targets).map(function (i) {\\n            return i.id;\\n        });\\n\\n        // if it was either asc or desc we need to invert the order\\n        // returned by orderTargets\\n        if ($$.isOrderAsc() || $$.isOrderDesc()) {\\n            ids = ids.reverse();\\n        }\\n\\n        return function (a, b) {\\n            return ids.indexOf(a.id) - ids.indexOf(b.id);\\n        };\\n    }\\n};\\nc3_chart_internal_fn.getTooltipContent = function (d, defaultTitleFormat, defaultValueFormat, color) {\\n    var $$ = this,\\n        config = $$.config,\\n        titleFormat = config.tooltip_format_title || defaultTitleFormat,\\n        nameFormat = config.tooltip_format_name || function (name) {\\n        return name;\\n    },\\n        valueFormat = config.tooltip_format_value || defaultValueFormat,\\n        text,\\n        i,\\n        title,\\n        value,\\n        name,\\n        bgcolor;\\n\\n    var tooltipSortFunction = this.getTooltipSortFunction();\\n    if (tooltipSortFunction) {\\n        d.sort(tooltipSortFunction);\\n    }\\n\\n    for (i = 0; i < d.length; i++) {\\n        if (!(d[i] && (d[i].value || d[i].value === 0))) {\\n            continue;\\n        }\\n\\n        if (!text) {\\n            title = sanitise(titleFormat ? titleFormat(d[i].x) : d[i].x);\\n            text = \\\"<table class='\\\" + $$.CLASS.tooltip + \\\"'>\\\" + (title || title === 0 ? \\\"<tr><th colspan='2'>\\\" + title + \\\"</th></tr>\\\" : \\\"\\\");\\n        }\\n\\n        value = sanitise(valueFormat(d[i].value, d[i].ratio, d[i].id, d[i].index, d));\\n        if (value !== undefined) {\\n            // Skip elements when their name is set to null\\n            if (d[i].name === null) {\\n                continue;\\n            }\\n            name = sanitise(nameFormat(d[i].name, d[i].ratio, d[i].id, d[i].index));\\n            bgcolor = $$.levelColor ? $$.levelColor(d[i].value) : color(d[i].id);\\n\\n            text += \\\"<tr class='\\\" + $$.CLASS.tooltipName + \\\"-\\\" + $$.getTargetSelectorSuffix(d[i].id) + \\\"'>\\\";\\n            text += \\\"<td class='name'><span style='background-color:\\\" + bgcolor + \\\"'></span>\\\" + name + \\\"</td>\\\";\\n            text += \\\"<td class='value'>\\\" + value + \\\"</td>\\\";\\n            text += \\\"</tr>\\\";\\n        }\\n    }\\n    return text + \\\"</table>\\\";\\n};\\nc3_chart_internal_fn.tooltipPosition = function (dataToShow, tWidth, tHeight, element) {\\n    var $$ = this,\\n        config = $$.config,\\n        d3 = $$.d3;\\n    var svgLeft, tooltipLeft, tooltipRight, tooltipTop, chartRight;\\n    var forArc = $$.hasArcType(),\\n        mouse = d3.mouse(element);\\n    // Determin tooltip position\\n    if (forArc) {\\n        tooltipLeft = ($$.width - ($$.isLegendRight ? $$.getLegendWidth() : 0)) / 2 + mouse[0];\\n        tooltipTop = $$.height / 2 + mouse[1] + 20;\\n    } else {\\n        svgLeft = $$.getSvgLeft(true);\\n        if (config.axis_rotated) {\\n            tooltipLeft = svgLeft + mouse[0] + 100;\\n            tooltipRight = tooltipLeft + tWidth;\\n            chartRight = $$.currentWidth - $$.getCurrentPaddingRight();\\n            tooltipTop = $$.x(dataToShow[0].x) + 20;\\n        } else {\\n            tooltipLeft = svgLeft + $$.getCurrentPaddingLeft(true) + $$.x(dataToShow[0].x) + 20;\\n            tooltipRight = tooltipLeft + tWidth;\\n            chartRight = svgLeft + $$.currentWidth - $$.getCurrentPaddingRight();\\n            tooltipTop = mouse[1] + 15;\\n        }\\n\\n        if (tooltipRight > chartRight) {\\n            // 20 is needed for Firefox to keep tooltip width\\n            tooltipLeft -= tooltipRight - chartRight + 20;\\n        }\\n        if (tooltipTop + tHeight > $$.currentHeight) {\\n            tooltipTop -= tHeight + 30;\\n        }\\n    }\\n    if (tooltipTop < 0) {\\n        tooltipTop = 0;\\n    }\\n    return { top: tooltipTop, left: tooltipLeft };\\n};\\nc3_chart_internal_fn.showTooltip = function (selectedData, element) {\\n    var $$ = this,\\n        config = $$.config;\\n    var tWidth, tHeight, position;\\n    var forArc = $$.hasArcType(),\\n        dataToShow = selectedData.filter(function (d) {\\n        return d && isValue(d.value);\\n    }),\\n        positionFunction = config.tooltip_position || c3_chart_internal_fn.tooltipPosition;\\n    if (dataToShow.length === 0 || !config.tooltip_show) {\\n        return;\\n    }\\n    $$.tooltip.html(config.tooltip_contents.call($$, selectedData, $$.axis.getXAxisTickFormat(), $$.getYFormat(forArc), $$.color)).style(\\\"display\\\", \\\"block\\\");\\n\\n    // Get tooltip dimensions\\n    tWidth = $$.tooltip.property('offsetWidth');\\n    tHeight = $$.tooltip.property('offsetHeight');\\n\\n    position = positionFunction.call(this, dataToShow, tWidth, tHeight, element);\\n    // Set tooltip\\n    $$.tooltip.style(\\\"top\\\", position.top + \\\"px\\\").style(\\\"left\\\", position.left + 'px');\\n};\\nc3_chart_internal_fn.hideTooltip = function () {\\n    this.tooltip.style(\\\"display\\\", \\\"none\\\");\\n};\\n\\nc3_chart_internal_fn.setTargetType = function (targetIds, type) {\\n    var $$ = this,\\n        config = $$.config;\\n    $$.mapToTargetIds(targetIds).forEach(function (id) {\\n        $$.withoutFadeIn[id] = type === config.data_types[id];\\n        config.data_types[id] = type;\\n    });\\n    if (!targetIds) {\\n        config.data_type = type;\\n    }\\n};\\nc3_chart_internal_fn.hasType = function (type, targets) {\\n    var $$ = this,\\n        types = $$.config.data_types,\\n        has = false;\\n    targets = targets || $$.data.targets;\\n    if (targets && targets.length) {\\n        targets.forEach(function (target) {\\n            var t = types[target.id];\\n            if (t && t.indexOf(type) >= 0 || !t && type === 'line') {\\n                has = true;\\n            }\\n        });\\n    } else if (Object.keys(types).length) {\\n        Object.keys(types).forEach(function (id) {\\n            if (types[id] === type) {\\n                has = true;\\n            }\\n        });\\n    } else {\\n        has = $$.config.data_type === type;\\n    }\\n    return has;\\n};\\nc3_chart_internal_fn.hasArcType = function (targets) {\\n    return this.hasType('pie', targets) || this.hasType('donut', targets) || this.hasType('gauge', targets);\\n};\\nc3_chart_internal_fn.isLineType = function (d) {\\n    var config = this.config,\\n        id = isString(d) ? d : d.id;\\n    return !config.data_types[id] || ['line', 'spline', 'area', 'area-spline', 'step', 'area-step'].indexOf(config.data_types[id]) >= 0;\\n};\\nc3_chart_internal_fn.isStepType = function (d) {\\n    var id = isString(d) ? d : d.id;\\n    return ['step', 'area-step'].indexOf(this.config.data_types[id]) >= 0;\\n};\\nc3_chart_internal_fn.isSplineType = function (d) {\\n    var id = isString(d) ? d : d.id;\\n    return ['spline', 'area-spline'].indexOf(this.config.data_types[id]) >= 0;\\n};\\nc3_chart_internal_fn.isAreaType = function (d) {\\n    var id = isString(d) ? d : d.id;\\n    return ['area', 'area-spline', 'area-step'].indexOf(this.config.data_types[id]) >= 0;\\n};\\nc3_chart_internal_fn.isBarType = function (d) {\\n    var id = isString(d) ? d : d.id;\\n    return this.config.data_types[id] === 'bar';\\n};\\nc3_chart_internal_fn.isScatterType = function (d) {\\n    var id = isString(d) ? d : d.id;\\n    return this.config.data_types[id] === 'scatter';\\n};\\nc3_chart_internal_fn.isPieType = function (d) {\\n    var id = isString(d) ? d : d.id;\\n    return this.config.data_types[id] === 'pie';\\n};\\nc3_chart_internal_fn.isGaugeType = function (d) {\\n    var id = isString(d) ? d : d.id;\\n    return this.config.data_types[id] === 'gauge';\\n};\\nc3_chart_internal_fn.isDonutType = function (d) {\\n    var id = isString(d) ? d : d.id;\\n    return this.config.data_types[id] === 'donut';\\n};\\nc3_chart_internal_fn.isArcType = function (d) {\\n    return this.isPieType(d) || this.isDonutType(d) || this.isGaugeType(d);\\n};\\nc3_chart_internal_fn.lineData = function (d) {\\n    return this.isLineType(d) ? [d] : [];\\n};\\nc3_chart_internal_fn.arcData = function (d) {\\n    return this.isArcType(d.data) ? [d] : [];\\n};\\n/* not used\\n function scatterData(d) {\\n return isScatterType(d) ? d.values : [];\\n }\\n */\\nc3_chart_internal_fn.barData = function (d) {\\n    return this.isBarType(d) ? d.values : [];\\n};\\nc3_chart_internal_fn.lineOrScatterData = function (d) {\\n    return this.isLineType(d) || this.isScatterType(d) ? d.values : [];\\n};\\nc3_chart_internal_fn.barOrLineData = function (d) {\\n    return this.isBarType(d) || this.isLineType(d) ? d.values : [];\\n};\\nc3_chart_internal_fn.isInterpolationType = function (type) {\\n    return ['linear', 'linear-closed', 'basis', 'basis-open', 'basis-closed', 'bundle', 'cardinal', 'cardinal-open', 'cardinal-closed', 'monotone'].indexOf(type) >= 0;\\n};\\n\\nc3_chart_internal_fn.isSafari = function () {\\n    var ua = window.navigator.userAgent;\\n    return ua.indexOf('Safari') >= 0 && ua.indexOf('Chrome') < 0;\\n};\\nc3_chart_internal_fn.isChrome = function () {\\n    var ua = window.navigator.userAgent;\\n    return ua.indexOf('Chrome') >= 0;\\n};\\n\\nc3_chart_internal_fn.initZoom = function () {\\n    var $$ = this,\\n        d3 = $$.d3,\\n        config = $$.config,\\n        startEvent;\\n\\n    $$.zoom = d3.behavior.zoom().on(\\\"zoomstart\\\", function () {\\n        startEvent = d3.event.sourceEvent;\\n        $$.zoom.altDomain = d3.event.sourceEvent.altKey ? $$.x.orgDomain() : null;\\n        config.zoom_onzoomstart.call($$.api, d3.event.sourceEvent);\\n    }).on(\\\"zoom\\\", function () {\\n        $$.redrawForZoom.call($$);\\n    }).on('zoomend', function () {\\n        var event = d3.event.sourceEvent;\\n        // if click, do nothing. otherwise, click interaction will be canceled.\\n        if (event && startEvent.clientX === event.clientX && startEvent.clientY === event.clientY) {\\n            return;\\n        }\\n        $$.redrawEventRect();\\n        $$.updateZoom();\\n        config.zoom_onzoomend.call($$.api, $$.x.orgDomain());\\n    });\\n    $$.zoom.scale = function (scale) {\\n        return config.axis_rotated ? this.y(scale) : this.x(scale);\\n    };\\n    $$.zoom.orgScaleExtent = function () {\\n        var extent = config.zoom_extent ? config.zoom_extent : [1, 10];\\n        return [extent[0], Math.max($$.getMaxDataCount() / extent[1], extent[1])];\\n    };\\n    $$.zoom.updateScaleExtent = function () {\\n        var ratio = diffDomain($$.x.orgDomain()) / diffDomain($$.getZoomDomain()),\\n            extent = this.orgScaleExtent();\\n        this.scaleExtent([extent[0] * ratio, extent[1] * ratio]);\\n        return this;\\n    };\\n};\\nc3_chart_internal_fn.getZoomDomain = function () {\\n    var $$ = this,\\n        config = $$.config,\\n        d3 = $$.d3,\\n        min = d3.min([$$.orgXDomain[0], config.zoom_x_min]),\\n        max = d3.max([$$.orgXDomain[1], config.zoom_x_max]);\\n    return [min, max];\\n};\\nc3_chart_internal_fn.updateZoom = function () {\\n    var $$ = this,\\n        z = $$.config.zoom_enabled ? $$.zoom : function () {};\\n    $$.main.select('.' + CLASS.zoomRect).call(z).on(\\\"dblclick.zoom\\\", null);\\n    $$.main.selectAll('.' + CLASS.eventRect).call(z).on(\\\"dblclick.zoom\\\", null);\\n};\\nc3_chart_internal_fn.redrawForZoom = function () {\\n    var $$ = this,\\n        d3 = $$.d3,\\n        config = $$.config,\\n        zoom = $$.zoom,\\n        x = $$.x;\\n    if (!config.zoom_enabled) {\\n        return;\\n    }\\n    if ($$.filterTargetsToShow($$.data.targets).length === 0) {\\n        return;\\n    }\\n    if (d3.event.sourceEvent.type === 'mousemove' && zoom.altDomain) {\\n        x.domain(zoom.altDomain);\\n        zoom.scale(x).updateScaleExtent();\\n        return;\\n    }\\n    if ($$.isCategorized() && x.orgDomain()[0] === $$.orgXDomain[0]) {\\n        x.domain([$$.orgXDomain[0] - 1e-10, x.orgDomain()[1]]);\\n    }\\n    $$.redraw({\\n        withTransition: false,\\n        withY: config.zoom_rescale,\\n        withSubchart: false,\\n        withEventRect: false,\\n        withDimension: false\\n    });\\n    if (d3.event.sourceEvent.type === 'mousemove') {\\n        $$.cancelClick = true;\\n    }\\n    config.zoom_onzoom.call($$.api, x.orgDomain());\\n};\\n\\nreturn c3$1;\\n\\n})));\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// /home/cool/Music/personal_projects/Zmall/angbackuo/~/raw-loader!/home/cool/Music/personal_projects/Zmall/angbackuo/~/source-map-loader!/home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/c3.js\n// module id = 1498\n// module chunks = 2","module.exports = \"/*!\\n Chosen, a Select Box Enhancer for jQuery and Prototype\\n by Patrick Filler for Harvest, http://getharvest.com\\n\\n Version 1.1.0\\n Full source at https://github.com/harvesthq/chosen\\n Copyright (c) 2011 Harvest http://getharvest.com\\n\\n MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md\\n This file is generated by `grunt build`, do not edit it by hand.\\n */\\n\\n(function() {\\n    var $, AbstractChosen, Chosen, SelectParser, _ref,\\n        __hasProp = {}.hasOwnProperty,\\n        __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };\\n\\n    SelectParser = (function() {\\n        function SelectParser() {\\n            this.options_index = 0;\\n            this.parsed = [];\\n        }\\n\\n        SelectParser.prototype.add_node = function(child) {\\n            if (child.nodeName.toUpperCase() === \\\"OPTGROUP\\\") {\\n                return this.add_group(child);\\n            } else {\\n                return this.add_option(child);\\n            }\\n        };\\n\\n        SelectParser.prototype.add_group = function(group) {\\n            var group_position, option, _i, _len, _ref, _results;\\n            group_position = this.parsed.length;\\n            this.parsed.push({\\n                array_index: group_position,\\n                group: true,\\n                label: this.escapeExpression(group.label),\\n                children: 0,\\n                disabled: group.disabled\\n            });\\n            _ref = group.childNodes;\\n            _results = [];\\n            for (_i = 0, _len = _ref.length; _i < _len; _i++) {\\n                option = _ref[_i];\\n                _results.push(this.add_option(option, group_position, group.disabled));\\n            }\\n            return _results;\\n        };\\n\\n        SelectParser.prototype.add_option = function(option, group_position, group_disabled) {\\n            if (option.nodeName.toUpperCase() === \\\"OPTION\\\") {\\n                if (option.text !== \\\"\\\") {\\n                    if (group_position != null) {\\n                        this.parsed[group_position].children += 1;\\n                    }\\n                    this.parsed.push({\\n                        array_index: this.parsed.length,\\n                        options_index: this.options_index,\\n                        value: option.value,\\n                        text: option.text,\\n                        html: option.innerHTML,\\n                        selected: option.selected,\\n                        disabled: group_disabled === true ? group_disabled : option.disabled,\\n                        group_array_index: group_position,\\n                        classes: option.className,\\n                        style: option.style.cssText\\n                    });\\n                } else {\\n                    this.parsed.push({\\n                        array_index: this.parsed.length,\\n                        options_index: this.options_index,\\n                        empty: true\\n                    });\\n                }\\n                return this.options_index += 1;\\n            }\\n        };\\n\\n        SelectParser.prototype.escapeExpression = function(text) {\\n            var map, unsafe_chars;\\n            if ((text == null) || text === false) {\\n                return \\\"\\\";\\n            }\\n            if (!/[\\\\&\\\\<\\\\>\\\\\\\"\\\\'\\\\`]/.test(text)) {\\n                return text;\\n            }\\n            map = {\\n                \\\"<\\\": \\\"&lt;\\\",\\n                \\\">\\\": \\\"&gt;\\\",\\n                '\\\"': \\\"&quot;\\\",\\n                \\\"'\\\": \\\"&#x27;\\\",\\n                \\\"`\\\": \\\"&#x60;\\\"\\n            };\\n            unsafe_chars = /&(?!\\\\w+;)|[\\\\<\\\\>\\\\\\\"\\\\'\\\\`]/g;\\n            return text.replace(unsafe_chars, function(chr) {\\n                return map[chr] || \\\"&amp;\\\";\\n            });\\n        };\\n\\n        return SelectParser;\\n\\n    })();\\n\\n    SelectParser.select_to_array = function(select) {\\n        var child, parser, _i, _len, _ref;\\n        parser = new SelectParser();\\n        _ref = select.childNodes;\\n        for (_i = 0, _len = _ref.length; _i < _len; _i++) {\\n            child = _ref[_i];\\n            parser.add_node(child);\\n        }\\n        return parser.parsed;\\n    };\\n\\n    AbstractChosen = (function() {\\n        function AbstractChosen(form_field, options) {\\n            this.form_field = form_field;\\n            this.options = options != null ? options : {};\\n            if (!AbstractChosen.browser_is_supported()) {\\n                return;\\n            }\\n            this.is_multiple = this.form_field.multiple;\\n            this.set_default_text();\\n            this.set_default_values();\\n            this.setup();\\n            this.set_up_html();\\n            this.register_observers();\\n        }\\n\\n        AbstractChosen.prototype.set_default_values = function() {\\n            var _this = this;\\n            this.click_test_action = function(evt) {\\n                return _this.test_active_click(evt);\\n            };\\n            this.activate_action = function(evt) {\\n                return _this.activate_field(evt);\\n            };\\n            this.active_field = false;\\n            this.mouse_on_container = false;\\n            this.results_showing = false;\\n            this.result_highlighted = null;\\n            this.allow_single_deselect = (this.options.allow_single_deselect != null) && (this.form_field.options[0] != null) && this.form_field.options[0].text === \\\"\\\" ? this.options.allow_single_deselect : false;\\n            this.disable_search_threshold = this.options.disable_search_threshold || 0;\\n            this.disable_search = this.options.disable_search || false;\\n            this.enable_split_word_search = this.options.enable_split_word_search != null ? this.options.enable_split_word_search : true;\\n            this.group_search = this.options.group_search != null ? this.options.group_search : true;\\n            this.search_contains = this.options.search_contains || false;\\n            this.single_backstroke_delete = this.options.single_backstroke_delete != null ? this.options.single_backstroke_delete : true;\\n            this.max_selected_options = this.options.max_selected_options || Infinity;\\n            this.inherit_select_classes = this.options.inherit_select_classes || false;\\n            this.display_selected_options = this.options.display_selected_options != null ? this.options.display_selected_options : true;\\n            return this.display_disabled_options = this.options.display_disabled_options != null ? this.options.display_disabled_options : true;\\n        };\\n\\n        AbstractChosen.prototype.set_default_text = function() {\\n            if (this.form_field.getAttribute(\\\"data-placeholder\\\")) {\\n                this.default_text = this.form_field.getAttribute(\\\"data-placeholder\\\");\\n            } else if (this.is_multiple) {\\n                this.default_text = this.options.placeholder_text_multiple || this.options.placeholder_text || AbstractChosen.default_multiple_text;\\n            } else {\\n                this.default_text = this.options.placeholder_text_single || this.options.placeholder_text || AbstractChosen.default_single_text;\\n            }\\n            return this.results_none_found = this.form_field.getAttribute(\\\"data-no_results_text\\\") || this.options.no_results_text || AbstractChosen.default_no_result_text;\\n        };\\n\\n        AbstractChosen.prototype.mouse_enter = function() {\\n            return this.mouse_on_container = true;\\n        };\\n\\n        AbstractChosen.prototype.mouse_leave = function() {\\n            return this.mouse_on_container = false;\\n        };\\n\\n        AbstractChosen.prototype.input_focus = function(evt) {\\n            var _this = this;\\n            if (this.is_multiple) {\\n                if (!this.active_field) {\\n                    return setTimeout((function() {\\n                        return _this.container_mousedown();\\n                    }), 50);\\n                }\\n            } else {\\n                if (!this.active_field) {\\n                    return this.activate_field();\\n                }\\n            }\\n        };\\n\\n        AbstractChosen.prototype.input_blur = function(evt) {\\n            var _this = this;\\n            if (!this.mouse_on_container) {\\n                this.active_field = false;\\n                return setTimeout((function() {\\n                    return _this.blur_test();\\n                }), 100);\\n            }\\n        };\\n\\n        AbstractChosen.prototype.results_option_build = function(options) {\\n            var content, data, _i, _len, _ref;\\n            content = '';\\n            _ref = this.results_data;\\n            for (_i = 0, _len = _ref.length; _i < _len; _i++) {\\n                data = _ref[_i];\\n                if (data.group) {\\n                    content += this.result_add_group(data);\\n                } else {\\n                    content += this.result_add_option(data);\\n                }\\n                if (options != null ? options.first : void 0) {\\n                    if (data.selected && this.is_multiple) {\\n                        this.choice_build(data);\\n                    } else if (data.selected && !this.is_multiple) {\\n                        this.single_set_selected_text(data.text);\\n                    }\\n                }\\n            }\\n            return content;\\n        };\\n\\n        AbstractChosen.prototype.result_add_option = function(option) {\\n            var classes, option_el;\\n            if (!option.search_match) {\\n                return '';\\n            }\\n            if (!this.include_option_in_results(option)) {\\n                return '';\\n            }\\n            classes = [];\\n            if (!option.disabled && !(option.selected && this.is_multiple)) {\\n                classes.push(\\\"active-result\\\");\\n            }\\n            if (option.disabled && !(option.selected && this.is_multiple)) {\\n                classes.push(\\\"disabled-result\\\");\\n            }\\n            if (option.selected) {\\n                classes.push(\\\"result-selected\\\");\\n            }\\n            if (option.group_array_index != null) {\\n                classes.push(\\\"group-option\\\");\\n            }\\n            if (option.classes !== \\\"\\\") {\\n                classes.push(option.classes);\\n            }\\n            option_el = document.createElement(\\\"li\\\");\\n            option_el.className = classes.join(\\\" \\\");\\n            option_el.style.cssText = option.style;\\n            option_el.setAttribute(\\\"data-option-array-index\\\", option.array_index);\\n            option_el.innerHTML = option.search_text;\\n            return this.outerHTML(option_el);\\n        };\\n\\n        AbstractChosen.prototype.result_add_group = function(group) {\\n            var group_el;\\n            if (!(group.search_match || group.group_match)) {\\n                return '';\\n            }\\n            if (!(group.active_options > 0)) {\\n                return '';\\n            }\\n            group_el = document.createElement(\\\"li\\\");\\n            group_el.className = \\\"group-result\\\";\\n            group_el.innerHTML = group.search_text;\\n            return this.outerHTML(group_el);\\n        };\\n\\n        AbstractChosen.prototype.results_update_field = function() {\\n            this.set_default_text();\\n            if (!this.is_multiple) {\\n                this.results_reset_cleanup();\\n            }\\n            this.result_clear_highlight();\\n            this.results_build();\\n            if (this.results_showing) {\\n                return this.winnow_results();\\n            }\\n        };\\n\\n        AbstractChosen.prototype.reset_single_select_options = function() {\\n            var result, _i, _len, _ref, _results;\\n            _ref = this.results_data;\\n            _results = [];\\n            for (_i = 0, _len = _ref.length; _i < _len; _i++) {\\n                result = _ref[_i];\\n                if (result.selected) {\\n                    _results.push(result.selected = false);\\n                } else {\\n                    _results.push(void 0);\\n                }\\n            }\\n            return _results;\\n        };\\n\\n        AbstractChosen.prototype.results_toggle = function() {\\n            if (this.results_showing) {\\n                return this.results_hide();\\n            } else {\\n                return this.results_show();\\n            }\\n        };\\n\\n        AbstractChosen.prototype.results_search = function(evt) {\\n            if (this.results_showing) {\\n                return this.winnow_results();\\n            } else {\\n                return this.results_show();\\n            }\\n        };\\n\\n        AbstractChosen.prototype.winnow_results = function() {\\n            var escapedSearchText, option, regex, regexAnchor, results, results_group, searchText, startpos, text, zregex, _i, _len, _ref;\\n            this.no_results_clear();\\n            results = 0;\\n            searchText = this.get_search_text();\\n            escapedSearchText = searchText.replace(/[-[\\\\]{}()*+?.,\\\\\\\\^$|#\\\\s]/g, \\\"\\\\\\\\$&\\\");\\n            regexAnchor = this.search_contains ? \\\"\\\" : \\\"^\\\";\\n            regex = new RegExp(regexAnchor + escapedSearchText, 'i');\\n            zregex = new RegExp(escapedSearchText, 'i');\\n            _ref = this.results_data;\\n            for (_i = 0, _len = _ref.length; _i < _len; _i++) {\\n                option = _ref[_i];\\n                option.search_match = false;\\n                results_group = null;\\n                if (this.include_option_in_results(option)) {\\n                    if (option.group) {\\n                        option.group_match = false;\\n                        option.active_options = 0;\\n                    }\\n                    if ((option.group_array_index != null) && this.results_data[option.group_array_index]) {\\n                        results_group = this.results_data[option.group_array_index];\\n                        if (results_group.active_options === 0 && results_group.search_match) {\\n                            results += 1;\\n                        }\\n                        results_group.active_options += 1;\\n                    }\\n                    if (!(option.group && !this.group_search)) {\\n                        option.search_text = option.group ? option.label : option.html;\\n                        option.search_match = this.search_string_match(option.search_text, regex);\\n                        if (option.search_match && !option.group) {\\n                            results += 1;\\n                        }\\n                        if (option.search_match) {\\n                            if (searchText.length) {\\n                                startpos = option.search_text.search(zregex);\\n                                text = option.search_text.substr(0, startpos + searchText.length) + '</em>' + option.search_text.substr(startpos + searchText.length);\\n                                option.search_text = text.substr(0, startpos) + '<em>' + text.substr(startpos);\\n                            }\\n                            if (results_group != null) {\\n                                results_group.group_match = true;\\n                            }\\n                        } else if ((option.group_array_index != null) && this.results_data[option.group_array_index].search_match) {\\n                            option.search_match = true;\\n                        }\\n                    }\\n                }\\n            }\\n            this.result_clear_highlight();\\n            if (results < 1 && searchText.length) {\\n                this.update_results_content(\\\"\\\");\\n                return this.no_results(searchText);\\n            } else {\\n                this.update_results_content(this.results_option_build());\\n                return this.winnow_results_set_highlight();\\n            }\\n        };\\n\\n        AbstractChosen.prototype.search_string_match = function(search_string, regex) {\\n            var part, parts, _i, _len;\\n            if (regex.test(search_string)) {\\n                return true;\\n            } else if (this.enable_split_word_search && (search_string.indexOf(\\\" \\\") >= 0 || search_string.indexOf(\\\"[\\\") === 0)) {\\n                parts = search_string.replace(/\\\\[|\\\\]/g, \\\"\\\").split(\\\" \\\");\\n                if (parts.length) {\\n                    for (_i = 0, _len = parts.length; _i < _len; _i++) {\\n                        part = parts[_i];\\n                        if (regex.test(part)) {\\n                            return true;\\n                        }\\n                    }\\n                }\\n            }\\n        };\\n\\n        AbstractChosen.prototype.choices_count = function() {\\n            var option, _i, _len, _ref;\\n            if (this.selected_option_count != null) {\\n                return this.selected_option_count;\\n            }\\n            this.selected_option_count = 0;\\n            _ref = this.form_field.options;\\n            for (_i = 0, _len = _ref.length; _i < _len; _i++) {\\n                option = _ref[_i];\\n                if (option.selected) {\\n                    this.selected_option_count += 1;\\n                }\\n            }\\n            return this.selected_option_count;\\n        };\\n\\n        AbstractChosen.prototype.choices_click = function(evt) {\\n            evt.preventDefault();\\n            if (!(this.results_showing || this.is_disabled)) {\\n                return this.results_show();\\n            }\\n        };\\n\\n        AbstractChosen.prototype.keyup_checker = function(evt) {\\n            var stroke, _ref;\\n            stroke = (_ref = evt.which) != null ? _ref : evt.keyCode;\\n            this.search_field_scale();\\n            switch (stroke) {\\n                case 8:\\n                    if (this.is_multiple && this.backstroke_length < 1 && this.choices_count() > 0) {\\n                        return this.keydown_backstroke();\\n                    } else if (!this.pending_backstroke) {\\n                        this.result_clear_highlight();\\n                        return this.results_search();\\n                    }\\n                    break;\\n                case 13:\\n                    evt.preventDefault();\\n                    if (this.results_showing) {\\n                        return this.result_select(evt);\\n                    }\\n                    break;\\n                case 27:\\n                    if (this.results_showing) {\\n                        this.results_hide();\\n                    }\\n                    return true;\\n                case 9:\\n                case 38:\\n                case 40:\\n                case 16:\\n                case 91:\\n                case 17:\\n                    break;\\n                default:\\n                    return this.results_search();\\n            }\\n        };\\n\\n        AbstractChosen.prototype.clipboard_event_checker = function(evt) {\\n            var _this = this;\\n            return setTimeout((function() {\\n                return _this.results_search();\\n            }), 50);\\n        };\\n\\n        AbstractChosen.prototype.container_width = function() {\\n            if (this.options.width != null) {\\n                return this.options.width;\\n            } else {\\n                return \\\"\\\" + this.form_field.offsetWidth + \\\"px\\\";\\n            }\\n        };\\n\\n        AbstractChosen.prototype.include_option_in_results = function(option) {\\n            if (this.is_multiple && (!this.display_selected_options && option.selected)) {\\n                return false;\\n            }\\n            if (!this.display_disabled_options && option.disabled) {\\n                return false;\\n            }\\n            if (option.empty) {\\n                return false;\\n            }\\n            return true;\\n        };\\n\\n        AbstractChosen.prototype.search_results_touchstart = function(evt) {\\n            this.touch_started = true;\\n            return this.search_results_mouseover(evt);\\n        };\\n\\n        AbstractChosen.prototype.search_results_touchmove = function(evt) {\\n            this.touch_started = false;\\n            return this.search_results_mouseout(evt);\\n        };\\n\\n        AbstractChosen.prototype.search_results_touchend = function(evt) {\\n            if (this.touch_started) {\\n                return this.search_results_mouseup(evt);\\n            }\\n        };\\n\\n        AbstractChosen.prototype.outerHTML = function(element) {\\n            var tmp;\\n            if (element.outerHTML) {\\n                return element.outerHTML;\\n            }\\n            tmp = document.createElement(\\\"div\\\");\\n            tmp.appendChild(element);\\n            return tmp.innerHTML;\\n        };\\n\\n        AbstractChosen.browser_is_supported = function() {\\n            if (window.navigator.appName === \\\"Microsoft Internet Explorer\\\") {\\n                return document.documentMode >= 8;\\n            }\\n            if (/iP(od|hone)/i.test(window.navigator.userAgent)) {\\n                return true;\\n            }\\n            if (/Android/i.test(window.navigator.userAgent)) {\\n                if (/Mobile/i.test(window.navigator.userAgent)) {\\n                    return true;\\n                }\\n            }\\n            return true;\\n        };\\n\\n        AbstractChosen.default_multiple_text = \\\"Select Some Options\\\";\\n\\n        AbstractChosen.default_single_text = \\\"Select an Option\\\";\\n\\n        AbstractChosen.default_no_result_text = \\\"No results match\\\";\\n\\n        return AbstractChosen;\\n\\n    })();\\n\\n    $ = jQuery;\\n\\n    $.fn.extend({\\n        chosen: function(options) {\\n            if (!AbstractChosen.browser_is_supported()) {\\n                return this;\\n            }\\n            return this.each(function(input_field) {\\n                var $this, chosen;\\n                $this = $(this);\\n                chosen = $this.data('chosen');\\n                if (options === 'destroy' && chosen) {\\n                    chosen.destroy();\\n                } else if (!chosen) {\\n                    $this.data('chosen', new Chosen(this, options));\\n                }\\n            });\\n        }\\n    });\\n\\n    Chosen = (function(_super) {\\n        __extends(Chosen, _super);\\n\\n        function Chosen() {\\n            _ref = Chosen.__super__.constructor.apply(this, arguments);\\n            return _ref;\\n        }\\n\\n        Chosen.prototype.setup = function() {\\n            this.form_field_jq = $(this.form_field);\\n            this.current_selectedIndex = this.form_field.selectedIndex;\\n            return this.is_rtl = this.form_field_jq.hasClass(\\\"chosen-rtl\\\");\\n        };\\n\\n        Chosen.prototype.set_up_html = function() {\\n            var container_classes, container_props;\\n            container_classes = [\\\"chosen-container\\\"];\\n            container_classes.push(\\\"chosen-container-\\\" + (this.is_multiple ? \\\"multi\\\" : \\\"single\\\"));\\n            if (this.inherit_select_classes && this.form_field.className) {\\n                container_classes.push(this.form_field.className);\\n            }\\n            if (this.is_rtl) {\\n                container_classes.push(\\\"chosen-rtl\\\");\\n            }\\n            container_props = {\\n                'class': container_classes.join(' '),\\n                'style': \\\"width: 100%\\\",\\n                'title': this.form_field.title\\n            };\\n            if (this.form_field.id.length) {\\n                container_props.id = this.form_field.id.replace(/[^\\\\w]/g, '_') + \\\"_chosen\\\";\\n            }\\n            this.container = $(\\\"<div />\\\", container_props);\\n            if (this.is_multiple) {\\n                this.container.html('<ul class=\\\"chosen-choices\\\"><li class=\\\"search-field\\\"><input type=\\\"text\\\" value=\\\"' + this.default_text + '\\\" class=\\\"default\\\" autocomplete=\\\"off\\\" style=\\\"width:25px;\\\" /></li></ul><div class=\\\"chosen-drop\\\"><ul class=\\\"chosen-results\\\"></ul></div>');\\n            } else {\\n                this.container.html('<a class=\\\"chosen-single chosen-default\\\" tabindex=\\\"-1\\\"><span>' + this.default_text + '</span><div><b></b></div></a><div class=\\\"chosen-drop\\\"><div class=\\\"chosen-search\\\"><input type=\\\"text\\\" autocomplete=\\\"off\\\" /></div><ul class=\\\"chosen-results\\\"></ul></div>');\\n            }\\n            this.form_field_jq.hide().after(this.container);\\n            this.dropdown = this.container.find('div.chosen-drop').first();\\n            this.search_field = this.container.find('input').first();\\n            this.search_results = this.container.find('ul.chosen-results').first();\\n            this.search_field_scale();\\n            this.search_no_results = this.container.find('li.no-results').first();\\n            if (this.is_multiple) {\\n                this.search_choices = this.container.find('ul.chosen-choices').first();\\n                this.search_container = this.container.find('li.search-field').first();\\n            } else {\\n                this.search_container = this.container.find('div.chosen-search').first();\\n                this.selected_item = this.container.find('.chosen-single').first();\\n            }\\n            this.results_build();\\n            this.set_tab_index();\\n            this.set_label_behavior();\\n            return this.form_field_jq.trigger(\\\"chosen:ready\\\", {\\n                chosen: this\\n            });\\n        };\\n\\n        Chosen.prototype.register_observers = function() {\\n            var _this = this;\\n            this.container.bind('mousedown.chosen', function(evt) {\\n                _this.container_mousedown(evt);\\n            });\\n            this.container.bind('mouseup.chosen', function(evt) {\\n                _this.container_mouseup(evt);\\n            });\\n            this.container.bind('mouseenter.chosen', function(evt) {\\n                _this.mouse_enter(evt);\\n            });\\n            this.container.bind('mouseleave.chosen', function(evt) {\\n                _this.mouse_leave(evt);\\n            });\\n            this.search_results.bind('mouseup.chosen', function(evt) {\\n                _this.search_results_mouseup(evt);\\n            });\\n            this.search_results.bind('mouseover.chosen', function(evt) {\\n                _this.search_results_mouseover(evt);\\n            });\\n            this.search_results.bind('mouseout.chosen', function(evt) {\\n                _this.search_results_mouseout(evt);\\n            });\\n            this.search_results.bind('mousewheel.chosen DOMMouseScroll.chosen', function(evt) {\\n                _this.search_results_mousewheel(evt);\\n            });\\n            this.search_results.bind('touchstart.chosen', function(evt) {\\n                _this.search_results_touchstart(evt);\\n            });\\n            this.search_results.bind('touchmove.chosen', function(evt) {\\n                _this.search_results_touchmove(evt);\\n            });\\n            this.search_results.bind('touchend.chosen', function(evt) {\\n                _this.search_results_touchend(evt);\\n            });\\n            this.form_field_jq.bind(\\\"chosen:updated.chosen\\\", function(evt) {\\n                _this.results_update_field(evt);\\n            });\\n            this.form_field_jq.bind(\\\"chosen:activate.chosen\\\", function(evt) {\\n                _this.activate_field(evt);\\n            });\\n            this.form_field_jq.bind(\\\"chosen:open.chosen\\\", function(evt) {\\n                _this.container_mousedown(evt);\\n            });\\n            this.form_field_jq.bind(\\\"chosen:close.chosen\\\", function(evt) {\\n                _this.input_blur(evt);\\n            });\\n            this.search_field.bind('blur.chosen', function(evt) {\\n                _this.input_blur(evt);\\n            });\\n            this.search_field.bind('keyup.chosen', function(evt) {\\n                _this.keyup_checker(evt);\\n            });\\n            this.search_field.bind('keydown.chosen', function(evt) {\\n                _this.keydown_checker(evt);\\n            });\\n            this.search_field.bind('focus.chosen', function(evt) {\\n                _this.input_focus(evt);\\n            });\\n            this.search_field.bind('cut.chosen', function(evt) {\\n                _this.clipboard_event_checker(evt);\\n            });\\n            this.search_field.bind('paste.chosen', function(evt) {\\n                _this.clipboard_event_checker(evt);\\n            });\\n            if (this.is_multiple) {\\n                return this.search_choices.bind('click.chosen', function(evt) {\\n                    _this.choices_click(evt);\\n                });\\n            } else {\\n                return this.container.bind('click.chosen', function(evt) {\\n                    evt.preventDefault();\\n                });\\n            }\\n        };\\n\\n        Chosen.prototype.destroy = function() {\\n            $(this.container[0].ownerDocument).unbind(\\\"click.chosen\\\", this.click_test_action);\\n            if (this.search_field[0].tabIndex) {\\n                this.form_field_jq[0].tabIndex = this.search_field[0].tabIndex;\\n            }\\n            this.container.remove();\\n            this.form_field_jq.removeData('chosen');\\n            return this.form_field_jq.show();\\n        };\\n\\n        Chosen.prototype.search_field_disabled = function() {\\n            this.is_disabled = this.form_field_jq[0].disabled;\\n            if (this.is_disabled) {\\n                this.container.addClass('chosen-disabled');\\n                this.search_field[0].disabled = true;\\n                if (!this.is_multiple) {\\n                    this.selected_item.unbind(\\\"focus.chosen\\\", this.activate_action);\\n                }\\n                return this.close_field();\\n            } else {\\n                this.container.removeClass('chosen-disabled');\\n                this.search_field[0].disabled = false;\\n                if (!this.is_multiple) {\\n                    return this.selected_item.bind(\\\"focus.chosen\\\", this.activate_action);\\n                }\\n            }\\n        };\\n\\n        Chosen.prototype.container_mousedown = function(evt) {\\n            if (!this.is_disabled) {\\n                if (evt && evt.type === \\\"mousedown\\\" && !this.results_showing) {\\n                    evt.preventDefault();\\n                }\\n                if (!((evt != null) && ($(evt.target)).hasClass(\\\"search-choice-close\\\"))) {\\n                    if (!this.active_field) {\\n                        if (this.is_multiple) {\\n                            this.search_field.val(\\\"\\\");\\n                        }\\n                        $(this.container[0].ownerDocument).bind('click.chosen', this.click_test_action);\\n                        this.results_show();\\n                    } else if (!this.is_multiple && evt && (($(evt.target)[0] === this.selected_item[0]) || $(evt.target).parents(\\\"a.chosen-single\\\").length)) {\\n                        evt.preventDefault();\\n                        this.results_toggle();\\n                    }\\n                    return this.activate_field();\\n                }\\n            }\\n        };\\n\\n        Chosen.prototype.container_mouseup = function(evt) {\\n            if (evt.target.nodeName === \\\"ABBR\\\" && !this.is_disabled) {\\n                return this.results_reset(evt);\\n            }\\n        };\\n\\n        Chosen.prototype.search_results_mousewheel = function(evt) {\\n            var delta;\\n            if (evt.originalEvent) {\\n                delta = -evt.originalEvent.wheelDelta || evt.originalEvent.detail;\\n            }\\n            if (delta != null) {\\n                evt.preventDefault();\\n                if (evt.type === 'DOMMouseScroll') {\\n                    delta = delta * 40;\\n                }\\n                return this.search_results.scrollTop(delta + this.search_results.scrollTop());\\n            }\\n        };\\n\\n        Chosen.prototype.blur_test = function(evt) {\\n            if (!this.active_field && this.container.hasClass(\\\"chosen-container-active\\\")) {\\n                return this.close_field();\\n            }\\n        };\\n\\n        Chosen.prototype.close_field = function() {\\n            $(this.container[0].ownerDocument).unbind(\\\"click.chosen\\\", this.click_test_action);\\n            this.active_field = false;\\n            this.results_hide();\\n            this.container.removeClass(\\\"chosen-container-active\\\");\\n            this.clear_backstroke();\\n            this.show_search_field_default();\\n            return this.search_field_scale();\\n        };\\n\\n        Chosen.prototype.activate_field = function() {\\n            this.container.addClass(\\\"chosen-container-active\\\");\\n            this.active_field = true;\\n            this.search_field.val(this.search_field.val());\\n            return this.search_field.focus();\\n        };\\n\\n        Chosen.prototype.test_active_click = function(evt) {\\n            var active_container;\\n            active_container = $(evt.target).closest('.chosen-container');\\n            if (active_container.length && this.container[0] === active_container[0]) {\\n                return this.active_field = true;\\n            } else {\\n                return this.close_field();\\n            }\\n        };\\n\\n        Chosen.prototype.results_build = function() {\\n            this.parsing = true;\\n            this.selected_option_count = null;\\n            this.results_data = SelectParser.select_to_array(this.form_field);\\n            if (this.is_multiple) {\\n                this.search_choices.find(\\\"li.search-choice\\\").remove();\\n            } else if (!this.is_multiple) {\\n                this.single_set_selected_text();\\n                if (this.disable_search || this.form_field.options.length <= this.disable_search_threshold) {\\n                    this.search_field[0].readOnly = true;\\n                    this.container.addClass(\\\"chosen-container-single-nosearch\\\");\\n                } else {\\n                    this.search_field[0].readOnly = false;\\n                    this.container.removeClass(\\\"chosen-container-single-nosearch\\\");\\n                }\\n            }\\n            this.update_results_content(this.results_option_build({\\n                first: true\\n            }));\\n            this.search_field_disabled();\\n            this.show_search_field_default();\\n            this.search_field_scale();\\n            return this.parsing = false;\\n        };\\n\\n        Chosen.prototype.result_do_highlight = function(el) {\\n            var high_bottom, high_top, maxHeight, visible_bottom, visible_top;\\n            if (el.length) {\\n                this.result_clear_highlight();\\n                this.result_highlight = el;\\n                this.result_highlight.addClass(\\\"highlighted\\\");\\n                maxHeight = parseInt(this.search_results.css(\\\"maxHeight\\\"), 10);\\n                visible_top = this.search_results.scrollTop();\\n                visible_bottom = maxHeight + visible_top;\\n                high_top = this.result_highlight.position().top + this.search_results.scrollTop();\\n                high_bottom = high_top + this.result_highlight.outerHeight();\\n                if (high_bottom >= visible_bottom) {\\n                    return this.search_results.scrollTop((high_bottom - maxHeight) > 0 ? high_bottom - maxHeight : 0);\\n                } else if (high_top < visible_top) {\\n                    return this.search_results.scrollTop(high_top);\\n                }\\n            }\\n        };\\n\\n        Chosen.prototype.result_clear_highlight = function() {\\n            if (this.result_highlight) {\\n                this.result_highlight.removeClass(\\\"highlighted\\\");\\n            }\\n            return this.result_highlight = null;\\n        };\\n\\n        Chosen.prototype.results_show = function() {\\n            if (this.is_multiple && this.max_selected_options <= this.choices_count()) {\\n                this.form_field_jq.trigger(\\\"chosen:maxselected\\\", {\\n                    chosen: this\\n                });\\n                return false;\\n            }\\n            this.container.addClass(\\\"chosen-with-drop\\\");\\n            this.results_showing = true;\\n            this.search_field.focus();\\n            this.search_field.val(this.search_field.val());\\n            this.winnow_results();\\n            return this.form_field_jq.trigger(\\\"chosen:showing_dropdown\\\", {\\n                chosen: this\\n            });\\n        };\\n\\n        Chosen.prototype.update_results_content = function(content) {\\n            return this.search_results.html(content);\\n        };\\n\\n        Chosen.prototype.results_hide = function() {\\n            if (this.results_showing) {\\n                this.result_clear_highlight();\\n                this.container.removeClass(\\\"chosen-with-drop\\\");\\n                this.form_field_jq.trigger(\\\"chosen:hiding_dropdown\\\", {\\n                    chosen: this\\n                });\\n            }\\n            return this.results_showing = false;\\n        };\\n\\n        Chosen.prototype.set_tab_index = function(el) {\\n            var ti;\\n            if (this.form_field.tabIndex) {\\n                ti = this.form_field.tabIndex;\\n                this.form_field.tabIndex = -1;\\n                return this.search_field[0].tabIndex = ti;\\n            }\\n        };\\n\\n        Chosen.prototype.set_label_behavior = function() {\\n            var _this = this;\\n            this.form_field_label = this.form_field_jq.parents(\\\"label\\\");\\n            if (!this.form_field_label.length && this.form_field.id.length) {\\n                this.form_field_label = $(\\\"label[for='\\\" + this.form_field.id + \\\"']\\\");\\n            }\\n            if (this.form_field_label.length > 0) {\\n                return this.form_field_label.bind('click.chosen', function(evt) {\\n                    if (_this.is_multiple) {\\n                        return _this.container_mousedown(evt);\\n                    } else {\\n                        return _this.activate_field();\\n                    }\\n                });\\n            }\\n        };\\n\\n        Chosen.prototype.show_search_field_default = function() {\\n            if (this.is_multiple && this.choices_count() < 1 && !this.active_field) {\\n                this.search_field.val(this.default_text);\\n                return this.search_field.addClass(\\\"default\\\");\\n            } else {\\n                this.search_field.val(\\\"\\\");\\n                return this.search_field.removeClass(\\\"default\\\");\\n            }\\n        };\\n\\n        Chosen.prototype.search_results_mouseup = function(evt) {\\n            var target;\\n            target = $(evt.target).hasClass(\\\"active-result\\\") ? $(evt.target) : $(evt.target).parents(\\\".active-result\\\").first();\\n            if (target.length) {\\n                this.result_highlight = target;\\n                this.result_select(evt);\\n                return this.search_field.focus();\\n            }\\n        };\\n\\n        Chosen.prototype.search_results_mouseover = function(evt) {\\n            var target;\\n            target = $(evt.target).hasClass(\\\"active-result\\\") ? $(evt.target) : $(evt.target).parents(\\\".active-result\\\").first();\\n            if (target) {\\n                return this.result_do_highlight(target);\\n            }\\n        };\\n\\n        Chosen.prototype.search_results_mouseout = function(evt) {\\n            if ($(evt.target).hasClass(\\\"active-result\\\" || $(evt.target).parents('.active-result').first())) {\\n                return this.result_clear_highlight();\\n            }\\n        };\\n\\n        Chosen.prototype.choice_build = function(item) {\\n            var choice, close_link,\\n                _this = this;\\n            choice = $('<li />', {\\n                \\\"class\\\": \\\"search-choice\\\"\\n            }).html(\\\"<span>\\\" + item.html + \\\"</span>\\\");\\n            if (item.disabled) {\\n                choice.addClass('search-choice-disabled');\\n            } else {\\n                close_link = $('<a />', {\\n                    \\\"class\\\": 'search-choice-close',\\n                    'data-option-array-index': item.array_index\\n                });\\n                close_link.bind('click.chosen', function(evt) {\\n                    return _this.choice_destroy_link_click(evt);\\n                });\\n                choice.append(close_link);\\n            }\\n            return this.search_container.before(choice);\\n        };\\n\\n        Chosen.prototype.choice_destroy_link_click = function(evt) {\\n            evt.preventDefault();\\n            evt.stopPropagation();\\n            if (!this.is_disabled) {\\n                return this.choice_destroy($(evt.target));\\n            }\\n        };\\n\\n        Chosen.prototype.choice_destroy = function(link) {\\n            if (this.result_deselect(link[0].getAttribute(\\\"data-option-array-index\\\"))) {\\n                this.show_search_field_default();\\n                if (this.is_multiple && this.choices_count() > 0 && this.search_field.val().length < 1) {\\n                    this.results_hide();\\n                }\\n                link.parents('li').first().remove();\\n                return this.search_field_scale();\\n            }\\n        };\\n\\n        Chosen.prototype.results_reset = function() {\\n            this.reset_single_select_options();\\n            this.form_field.options[0].selected = true;\\n            this.single_set_selected_text();\\n            this.show_search_field_default();\\n            this.results_reset_cleanup();\\n            this.form_field_jq.trigger(\\\"change\\\");\\n            if (this.active_field) {\\n                return this.results_hide();\\n            }\\n        };\\n\\n        Chosen.prototype.results_reset_cleanup = function() {\\n            this.current_selectedIndex = this.form_field.selectedIndex;\\n            return this.selected_item.find(\\\"abbr\\\").remove();\\n        };\\n\\n        Chosen.prototype.result_select = function(evt) {\\n            var high, item;\\n            if (this.result_highlight) {\\n                high = this.result_highlight;\\n                this.result_clear_highlight();\\n                if (this.is_multiple && this.max_selected_options <= this.choices_count()) {\\n                    this.form_field_jq.trigger(\\\"chosen:maxselected\\\", {\\n                        chosen: this\\n                    });\\n                    return false;\\n                }\\n                if (this.is_multiple) {\\n                    high.removeClass(\\\"active-result\\\");\\n                } else {\\n                    this.reset_single_select_options();\\n                }\\n                item = this.results_data[high[0].getAttribute(\\\"data-option-array-index\\\")];\\n                item.selected = true;\\n                this.form_field.options[item.options_index].selected = true;\\n                this.selected_option_count = null;\\n                if (this.is_multiple) {\\n                    this.choice_build(item);\\n                } else {\\n                    this.single_set_selected_text(item.text);\\n                }\\n                if (!((evt.metaKey || evt.ctrlKey) && this.is_multiple)) {\\n                    this.results_hide();\\n                }\\n                this.search_field.val(\\\"\\\");\\n                if (this.is_multiple || this.form_field.selectedIndex !== this.current_selectedIndex) {\\n                    this.form_field_jq.trigger(\\\"change\\\", {\\n                        'selected': this.form_field.options[item.options_index].value\\n                    });\\n                }\\n                this.current_selectedIndex = this.form_field.selectedIndex;\\n                return this.search_field_scale();\\n            }\\n        };\\n\\n        Chosen.prototype.single_set_selected_text = function(text) {\\n            if (text == null) {\\n                text = this.default_text;\\n            }\\n            if (text === this.default_text) {\\n                this.selected_item.addClass(\\\"chosen-default\\\");\\n            } else {\\n                this.single_deselect_control_build();\\n                this.selected_item.removeClass(\\\"chosen-default\\\");\\n            }\\n            return this.selected_item.find(\\\"span\\\").text(text);\\n        };\\n\\n        Chosen.prototype.result_deselect = function(pos) {\\n            var result_data;\\n            result_data = this.results_data[pos];\\n            if (!this.form_field.options[result_data.options_index].disabled) {\\n                result_data.selected = false;\\n                this.form_field.options[result_data.options_index].selected = false;\\n                this.selected_option_count = null;\\n                this.result_clear_highlight();\\n                if (this.results_showing) {\\n                    this.winnow_results();\\n                }\\n                this.form_field_jq.trigger(\\\"change\\\", {\\n                    deselected: this.form_field.options[result_data.options_index].value\\n                });\\n                this.search_field_scale();\\n                return true;\\n            } else {\\n                return false;\\n            }\\n        };\\n\\n        Chosen.prototype.single_deselect_control_build = function() {\\n            if (!this.allow_single_deselect) {\\n                return;\\n            }\\n            if (!this.selected_item.find(\\\"abbr\\\").length) {\\n                this.selected_item.find(\\\"span\\\").first().after(\\\"<abbr class=\\\\\\\"search-choice-close\\\\\\\"></abbr>\\\");\\n            }\\n            return this.selected_item.addClass(\\\"chosen-single-with-deselect\\\");\\n        };\\n\\n        Chosen.prototype.get_search_text = function() {\\n            if (this.search_field.val() === this.default_text) {\\n                return \\\"\\\";\\n            } else {\\n                return $('<div/>').text($.trim(this.search_field.val())).html();\\n            }\\n        };\\n\\n        Chosen.prototype.winnow_results_set_highlight = function() {\\n            var do_high, selected_results;\\n            selected_results = !this.is_multiple ? this.search_results.find(\\\".result-selected.active-result\\\") : [];\\n            do_high = selected_results.length ? selected_results.first() : this.search_results.find(\\\".active-result\\\").first();\\n            if (do_high != null) {\\n                return this.result_do_highlight(do_high);\\n            }\\n        };\\n\\n        Chosen.prototype.no_results = function(terms) {\\n            var no_results_html;\\n            no_results_html = $('<li class=\\\"no-results\\\">' + this.results_none_found + ' \\\"<span></span>\\\"</li>');\\n            no_results_html.find(\\\"span\\\").first().html(terms);\\n            this.search_results.append(no_results_html);\\n            return this.form_field_jq.trigger(\\\"chosen:no_results\\\", {\\n                chosen: this\\n            });\\n        };\\n\\n        Chosen.prototype.no_results_clear = function() {\\n            return this.search_results.find(\\\".no-results\\\").remove();\\n        };\\n\\n        Chosen.prototype.keydown_arrow = function() {\\n            var next_sib;\\n            if (this.results_showing && this.result_highlight) {\\n                next_sib = this.result_highlight.nextAll(\\\"li.active-result\\\").first();\\n                if (next_sib) {\\n                    return this.result_do_highlight(next_sib);\\n                }\\n            } else {\\n                return this.results_show();\\n            }\\n        };\\n\\n        Chosen.prototype.keyup_arrow = function() {\\n            var prev_sibs;\\n            if (!this.results_showing && !this.is_multiple) {\\n                return this.results_show();\\n            } else if (this.result_highlight) {\\n                prev_sibs = this.result_highlight.prevAll(\\\"li.active-result\\\");\\n                if (prev_sibs.length) {\\n                    return this.result_do_highlight(prev_sibs.first());\\n                } else {\\n                    if (this.choices_count() > 0) {\\n                        this.results_hide();\\n                    }\\n                    return this.result_clear_highlight();\\n                }\\n            }\\n        };\\n\\n        Chosen.prototype.keydown_backstroke = function() {\\n            var next_available_destroy;\\n            if (this.pending_backstroke) {\\n                this.choice_destroy(this.pending_backstroke.find(\\\"a\\\").first());\\n                return this.clear_backstroke();\\n            } else {\\n                next_available_destroy = this.search_container.siblings(\\\"li.search-choice\\\").last();\\n                if (next_available_destroy.length && !next_available_destroy.hasClass(\\\"search-choice-disabled\\\")) {\\n                    this.pending_backstroke = next_available_destroy;\\n                    if (this.single_backstroke_delete) {\\n                        return this.keydown_backstroke();\\n                    } else {\\n                        return this.pending_backstroke.addClass(\\\"search-choice-focus\\\");\\n                    }\\n                }\\n            }\\n        };\\n\\n        Chosen.prototype.clear_backstroke = function() {\\n            if (this.pending_backstroke) {\\n                this.pending_backstroke.removeClass(\\\"search-choice-focus\\\");\\n            }\\n            return this.pending_backstroke = null;\\n        };\\n\\n        Chosen.prototype.keydown_checker = function(evt) {\\n            var stroke, _ref1;\\n            stroke = (_ref1 = evt.which) != null ? _ref1 : evt.keyCode;\\n            this.search_field_scale();\\n            if (stroke !== 8 && this.pending_backstroke) {\\n                this.clear_backstroke();\\n            }\\n            switch (stroke) {\\n                case 8:\\n                    this.backstroke_length = this.search_field.val().length;\\n                    break;\\n                case 9:\\n                    if (this.results_showing && !this.is_multiple) {\\n                        this.result_select(evt);\\n                    }\\n                    this.mouse_on_container = false;\\n                    break;\\n                case 13:\\n                    evt.preventDefault();\\n                    break;\\n                case 38:\\n                    evt.preventDefault();\\n                    this.keyup_arrow();\\n                    break;\\n                case 40:\\n                    evt.preventDefault();\\n                    this.keydown_arrow();\\n                    break;\\n            }\\n        };\\n\\n        Chosen.prototype.search_field_scale = function() {\\n            var div, f_width, h, style, style_block, styles, w, _i, _len;\\n            if (this.is_multiple) {\\n                h = 0;\\n                w = 0;\\n                style_block = \\\"position:absolute; left: -1000px; top: -1000px; display:none;\\\";\\n                styles = ['font-size', 'font-style', 'font-weight', 'font-family', 'line-height', 'text-transform', 'letter-spacing'];\\n                for (_i = 0, _len = styles.length; _i < _len; _i++) {\\n                    style = styles[_i];\\n                    style_block += style + \\\":\\\" + this.search_field.css(style) + \\\";\\\";\\n                }\\n                div = $('<div />', {\\n                    'style': style_block\\n                });\\n                div.text(this.search_field.val());\\n                $('body').append(div);\\n                w = div.width() + 25;\\n                div.remove();\\n                f_width = this.container.outerWidth();\\n                if (w > f_width - 10) {\\n                    w = f_width - 10;\\n                }\\n                return this.search_field.css({\\n                    'width': w + 'px'\\n                });\\n            }\\n        };\\n\\n        return Chosen;\\n\\n    })(AbstractChosen);\\n\\n}).call(this);\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// /home/cool/Music/personal_projects/Zmall/angbackuo/~/raw-loader!/home/cool/Music/personal_projects/Zmall/angbackuo/~/source-map-loader!/home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/chosen/chosen.jquery.js\n// module id = 1499\n// module chunks = 2","module.exports = \"/*!\\n * ClockPicker v{package.version} (http://weareoutman.github.io/clockpicker/)\\n * Copyright 2014 Wang Shenwei.\\n * Licensed under MIT (https://github.com/weareoutman/clockpicker/blob/gh-pages/LICENSE)\\n */\\n\\n;(function(){\\n\\tvar $ = window.jQuery,\\n\\t\\t$win = $(window),\\n\\t\\t$doc = $(document),\\n\\t\\t$body;\\n\\n\\t// Can I use inline svg ?\\n\\tvar svgNS = 'http://www.w3.org/2000/svg',\\n\\t\\tsvgSupported = 'SVGAngle' in window && (function(){\\n\\t\\t\\tvar supported,\\n\\t\\t\\t\\tel = document.createElement('div');\\n\\t\\t\\tel.innerHTML = '<svg/>';\\n\\t\\t\\tsupported = (el.firstChild && el.firstChild.namespaceURI) == svgNS;\\n\\t\\t\\tel.innerHTML = '';\\n\\t\\t\\treturn supported;\\n\\t\\t})();\\n\\n\\t// Can I use transition ?\\n\\tvar transitionSupported = (function(){\\n\\t\\tvar style = document.createElement('div').style;\\n\\t\\treturn 'transition' in style ||\\n\\t\\t\\t'WebkitTransition' in style ||\\n\\t\\t\\t'MozTransition' in style ||\\n\\t\\t\\t'msTransition' in style ||\\n\\t\\t\\t'OTransition' in style;\\n\\t})();\\n\\n\\t// Listen touch events in touch screen device, instead of mouse events in desktop.\\n\\tvar touchSupported = 'ontouchstart' in window,\\n\\t\\tmousedownEvent = 'mousedown' + ( touchSupported ? ' touchstart' : ''),\\n\\t\\tmousemoveEvent = 'mousemove.clockpicker' + ( touchSupported ? ' touchmove.clockpicker' : ''),\\n\\t\\tmouseupEvent = 'mouseup.clockpicker' + ( touchSupported ? ' touchend.clockpicker' : '');\\n\\n\\t// Vibrate the device if supported\\n\\tvar vibrate = navigator.vibrate ? 'vibrate' : navigator.webkitVibrate ? 'webkitVibrate' : null;\\n\\n\\tfunction createSvgElement(name) {\\n\\t\\treturn document.createElementNS(svgNS, name);\\n\\t}\\n\\n\\tfunction leadingZero(num) {\\n\\t\\treturn (num < 10 ? '0' : '') + num;\\n\\t}\\n\\n\\t// Get a unique id\\n\\tvar idCounter = 0;\\n\\tfunction uniqueId(prefix) {\\n\\t\\tvar id = ++idCounter + '';\\n\\t\\treturn prefix ? prefix + id : id;\\n\\t}\\n\\n\\t// Clock size\\n\\tvar dialRadius = 100,\\n\\t\\touterRadius = 80,\\n\\t\\t// innerRadius = 80 on 12 hour clock\\n\\t\\tinnerRadius = 54,\\n\\t\\ttickRadius = 13,\\n\\t\\tdiameter = dialRadius * 2,\\n\\t\\tduration = transitionSupported ? 350 : 1;\\n\\n\\t// Popover template\\n\\tvar tpl = [\\n\\t\\t'<div class=\\\"popover clockpicker-popover\\\">',\\n\\t\\t\\t'<div class=\\\"arrow\\\"></div>',\\n\\t\\t\\t'<div class=\\\"popover-title\\\">',\\n\\t\\t\\t\\t'<span class=\\\"clockpicker-span-hours text-primary\\\"></span>',\\n\\t\\t\\t\\t' : ',\\n\\t\\t\\t\\t'<span class=\\\"clockpicker-span-minutes\\\"></span>',\\n\\t\\t\\t\\t'<span class=\\\"clockpicker-span-am-pm\\\"></span>',\\n\\t\\t\\t'</div>',\\n\\t\\t\\t'<div class=\\\"popover-content\\\">',\\n\\t\\t\\t\\t'<div class=\\\"clockpicker-plate\\\">',\\n\\t\\t\\t\\t\\t'<div class=\\\"clockpicker-canvas\\\"></div>',\\n\\t\\t\\t\\t\\t'<div class=\\\"clockpicker-dial clockpicker-hours\\\"></div>',\\n\\t\\t\\t\\t\\t'<div class=\\\"clockpicker-dial clockpicker-minutes clockpicker-dial-out\\\"></div>',\\n\\t\\t\\t\\t'</div>',\\n\\t\\t\\t\\t'<span class=\\\"clockpicker-am-pm-block\\\">',\\n\\t\\t\\t\\t'</span>',\\n\\t\\t\\t'</div>',\\n\\t\\t'</div>'\\n\\t].join('');\\n\\n\\t// ClockPicker\\n\\tfunction ClockPicker(element, options) {\\n\\t\\tvar popover = $(tpl),\\n\\t\\t\\tplate = popover.find('.clockpicker-plate'),\\n\\t\\t\\thoursView = popover.find('.clockpicker-hours'),\\n\\t\\t\\tminutesView = popover.find('.clockpicker-minutes'),\\n\\t\\t\\tamPmBlock = popover.find('.clockpicker-am-pm-block'),\\n\\t\\t\\tisInput = element.prop('tagName') === 'INPUT',\\n\\t\\t\\tinput = isInput ? element : element.find('input'),\\n\\t\\t\\taddon = element.find('.input-group-addon'),\\n\\t\\t\\tself = this,\\n\\t\\t\\ttimer;\\n\\n\\t\\tthis.id = uniqueId('cp');\\n\\t\\tthis.element = element;\\n\\t\\tthis.options = options;\\n\\t\\tthis.isAppended = false;\\n\\t\\tthis.isShown = false;\\n\\t\\tthis.currentView = 'hours';\\n\\t\\tthis.isInput = isInput;\\n\\t\\tthis.input = input;\\n\\t\\tthis.addon = addon;\\n\\t\\tthis.popover = popover;\\n\\t\\tthis.plate = plate;\\n\\t\\tthis.hoursView = hoursView;\\n\\t\\tthis.minutesView = minutesView;\\n\\t\\tthis.amPmBlock = amPmBlock;\\n\\t\\tthis.spanHours = popover.find('.clockpicker-span-hours');\\n\\t\\tthis.spanMinutes = popover.find('.clockpicker-span-minutes');\\n\\t\\tthis.spanAmPm = popover.find('.clockpicker-span-am-pm');\\n\\t\\tthis.amOrPm = \\\"PM\\\";\\n\\t\\t\\n\\t\\t// Setup for for 12 hour clock if option is selected\\n\\t\\tif (options.twelvehour) {\\n\\t\\t\\t\\n\\t\\t\\tvar  amPmButtonsTemplate = ['<div class=\\\"clockpicker-am-pm-block\\\">',\\n\\t\\t\\t\\t'<button type=\\\"button\\\" class=\\\"btn btn-sm btn-default clockpicker-button clockpicker-am-button\\\">',\\n\\t\\t\\t\\t'AM</button>',\\n\\t\\t\\t\\t'<button type=\\\"button\\\" class=\\\"btn btn-sm btn-default clockpicker-button clockpicker-pm-button\\\">',\\n\\t\\t\\t\\t'PM</button>',\\n\\t\\t\\t\\t'</div>'].join('');\\n\\t\\t\\t\\n\\t\\t\\tvar amPmButtons = $(amPmButtonsTemplate);\\n\\t\\t\\t//amPmButtons.appendTo(plate);\\n\\t\\t\\t\\n\\t\\t\\t////Not working b/c they are not shown when this runs\\n\\t\\t\\t//$('clockpicker-am-button')\\n\\t\\t\\t//    .on(\\\"click\\\", function() {\\n\\t\\t\\t//        self.amOrPm = \\\"AM\\\";\\n\\t\\t\\t//        $('.clockpicker-span-am-pm').empty().append('AM');\\n\\t\\t\\t//    });\\n\\t\\t\\t//    \\n\\t\\t\\t//$('clockpicker-pm-button')\\n\\t\\t\\t//    .on(\\\"click\\\", function() {\\n\\t\\t\\t//         self.amOrPm = \\\"PM\\\";\\n\\t\\t\\t//        $('.clockpicker-span-am-pm').empty().append('PM');\\n\\t\\t\\t//    });\\n\\t\\n\\t\\t\\t$('<button type=\\\"button\\\" class=\\\"btn btn-sm btn-default clockpicker-button am-button\\\">' + \\\"AM\\\" + '</button>')\\n\\t\\t\\t\\t.on(\\\"click\\\", function() {\\n\\t\\t\\t\\t\\tself.amOrPm = \\\"AM\\\";\\n\\t\\t\\t\\t\\t$('.clockpicker-span-am-pm').empty().append('AM');\\n\\t\\t\\t\\t}).appendTo(this.amPmBlock);\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\n\\t\\t\\t$('<button type=\\\"button\\\" class=\\\"btn btn-sm btn-default clockpicker-button pm-button\\\">' + \\\"PM\\\" + '</button>')\\n\\t\\t\\t\\t.on(\\\"click\\\", function() {\\n\\t\\t\\t\\t\\tself.amOrPm = 'PM';\\n\\t\\t\\t\\t\\t$('.clockpicker-span-am-pm').empty().append('PM');\\n\\t\\t\\t\\t}).appendTo(this.amPmBlock);\\n\\t\\t\\t\\t\\n\\t\\t}\\n\\t\\t\\n\\t\\tif (! options.autoclose) {\\n\\t\\t\\t// If autoclose is not setted, append a button\\n\\t\\t\\t$('<button type=\\\"button\\\" class=\\\"btn btn-sm btn-default btn-block clockpicker-button\\\">' + options.donetext + '</button>')\\n\\t\\t\\t\\t.click($.proxy(this.done, this))\\n\\t\\t\\t\\t.appendTo(popover);\\n\\t\\t}\\n\\n\\t\\t// Placement and arrow align - make sure they make sense.\\n\\t\\tif ((options.placement === 'top' || options.placement === 'bottom') && (options.align === 'top' || options.align === 'bottom')) options.align = 'left';\\n\\t\\tif ((options.placement === 'left' || options.placement === 'right') && (options.align === 'left' || options.align === 'right')) options.align = 'top';\\n\\n\\t\\tpopover.addClass(options.placement);\\n\\t\\tpopover.addClass('clockpicker-align-' + options.align);\\n\\n\\t\\tthis.spanHours.click($.proxy(this.toggleView, this, 'hours'));\\n\\t\\tthis.spanMinutes.click($.proxy(this.toggleView, this, 'minutes'));\\n\\n\\t\\t// Show or toggle\\n\\t\\tinput.on('focus.clockpicker click.clockpicker', $.proxy(this.show, this));\\n\\t\\taddon.on('click.clockpicker', $.proxy(this.toggle, this));\\n\\n\\t\\t// Build ticks\\n\\t\\tvar tickTpl = $('<div class=\\\"clockpicker-tick\\\"></div>'),\\n\\t\\t\\ti, tick, radian, radius;\\n\\n\\t\\t// Hours view\\n\\t\\tif (options.twelvehour) {\\n\\t\\t\\tfor (i = 1; i < 13; i += 1) {\\n\\t\\t\\t\\ttick = tickTpl.clone();\\n\\t\\t\\t\\tradian = i / 6 * Math.PI;\\n\\t\\t\\t\\tradius = outerRadius;\\n\\t\\t\\t\\ttick.css('font-size', '120%');\\n\\t\\t\\t\\ttick.css({\\n\\t\\t\\t\\t\\tleft: dialRadius + Math.sin(radian) * radius - tickRadius,\\n\\t\\t\\t\\t\\ttop: dialRadius - Math.cos(radian) * radius - tickRadius\\n\\t\\t\\t\\t});\\n\\t\\t\\t\\ttick.html(i === 0 ? '00' : i);\\n\\t\\t\\t\\thoursView.append(tick);\\n\\t\\t\\t\\ttick.on(mousedownEvent, mousedown);\\n\\t\\t\\t}\\n\\t\\t} else {\\n\\t\\t\\tfor (i = 0; i < 24; i += 1) {\\n\\t\\t\\t\\ttick = tickTpl.clone();\\n\\t\\t\\t\\tradian = i / 6 * Math.PI;\\n\\t\\t\\t\\tvar inner = i > 0 && i < 13;\\n\\t\\t\\t\\tradius = inner ? innerRadius : outerRadius;\\n\\t\\t\\t\\ttick.css({\\n\\t\\t\\t\\t\\tleft: dialRadius + Math.sin(radian) * radius - tickRadius,\\n\\t\\t\\t\\t\\ttop: dialRadius - Math.cos(radian) * radius - tickRadius\\n\\t\\t\\t\\t});\\n\\t\\t\\t\\tif (inner) {\\n\\t\\t\\t\\t\\ttick.css('font-size', '120%');\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\ttick.html(i === 0 ? '00' : i);\\n\\t\\t\\t\\thoursView.append(tick);\\n\\t\\t\\t\\ttick.on(mousedownEvent, mousedown);\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\t// Minutes view\\n\\t\\tfor (i = 0; i < 60; i += 5) {\\n\\t\\t\\ttick = tickTpl.clone();\\n\\t\\t\\tradian = i / 30 * Math.PI;\\n\\t\\t\\ttick.css({\\n\\t\\t\\t\\tleft: dialRadius + Math.sin(radian) * outerRadius - tickRadius,\\n\\t\\t\\t\\ttop: dialRadius - Math.cos(radian) * outerRadius - tickRadius\\n\\t\\t\\t});\\n\\t\\t\\ttick.css('font-size', '120%');\\n\\t\\t\\ttick.html(leadingZero(i));\\n\\t\\t\\tminutesView.append(tick);\\n\\t\\t\\ttick.on(mousedownEvent, mousedown);\\n\\t\\t}\\n\\n\\t\\t// Clicking on minutes view space\\n\\t\\tplate.on(mousedownEvent, function(e){\\n\\t\\t\\tif ($(e.target).closest('.clockpicker-tick').length === 0) {\\n\\t\\t\\t\\tmousedown(e, true);\\n\\t\\t\\t}\\n\\t\\t});\\n\\n\\t\\t// Mousedown or touchstart\\n\\t\\tfunction mousedown(e, space) {\\n\\t\\t\\tvar offset = plate.offset(),\\n\\t\\t\\t\\tisTouch = /^touch/.test(e.type),\\n\\t\\t\\t\\tx0 = offset.left + dialRadius,\\n\\t\\t\\t\\ty0 = offset.top + dialRadius,\\n\\t\\t\\t\\tdx = (isTouch ? e.originalEvent.touches[0] : e).pageX - x0,\\n\\t\\t\\t\\tdy = (isTouch ? e.originalEvent.touches[0] : e).pageY - y0,\\n\\t\\t\\t\\tz = Math.sqrt(dx * dx + dy * dy),\\n\\t\\t\\t\\tmoved = false;\\n\\n\\t\\t\\t// When clicking on minutes view space, check the mouse position\\n\\t\\t\\tif (space && (z < outerRadius - tickRadius || z > outerRadius + tickRadius)) {\\n\\t\\t\\t\\treturn;\\n\\t\\t\\t}\\n\\t\\t\\te.preventDefault();\\n\\n\\t\\t\\t// Set cursor style of body after 200ms\\n\\t\\t\\tvar movingTimer = setTimeout(function(){\\n\\t\\t\\t\\t$body.addClass('clockpicker-moving');\\n\\t\\t\\t}, 200);\\n\\n\\t\\t\\t// Place the canvas to top\\n\\t\\t\\tif (svgSupported) {\\n\\t\\t\\t\\tplate.append(self.canvas);\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Clock\\n\\t\\t\\tself.setHand(dx, dy, ! space, true);\\n\\n\\t\\t\\t// Mousemove on document\\n\\t\\t\\t$doc.off(mousemoveEvent).on(mousemoveEvent, function(e){\\n\\t\\t\\t\\te.preventDefault();\\n\\t\\t\\t\\tvar isTouch = /^touch/.test(e.type),\\n\\t\\t\\t\\t\\tx = (isTouch ? e.originalEvent.touches[0] : e).pageX - x0,\\n\\t\\t\\t\\t\\ty = (isTouch ? e.originalEvent.touches[0] : e).pageY - y0;\\n\\t\\t\\t\\tif (! moved && x === dx && y === dy) {\\n\\t\\t\\t\\t\\t// Clicking in chrome on windows will trigger a mousemove event\\n\\t\\t\\t\\t\\treturn;\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tmoved = true;\\n\\t\\t\\t\\tself.setHand(x, y, false, true);\\n\\t\\t\\t});\\n\\n\\t\\t\\t// Mouseup on document\\n\\t\\t\\t$doc.off(mouseupEvent).on(mouseupEvent, function(e){\\n\\t\\t\\t\\t$doc.off(mouseupEvent);\\n\\t\\t\\t\\te.preventDefault();\\n\\t\\t\\t\\tvar isTouch = /^touch/.test(e.type),\\n\\t\\t\\t\\t\\tx = (isTouch ? e.originalEvent.changedTouches[0] : e).pageX - x0,\\n\\t\\t\\t\\t\\ty = (isTouch ? e.originalEvent.changedTouches[0] : e).pageY - y0;\\n\\t\\t\\t\\tif ((space || moved) && x === dx && y === dy) {\\n\\t\\t\\t\\t\\tself.setHand(x, y);\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tif (self.currentView === 'hours') {\\n\\t\\t\\t\\t\\tself.toggleView('minutes', duration / 2);\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\tif (options.autoclose) {\\n\\t\\t\\t\\t\\t\\tself.minutesView.addClass('clockpicker-dial-out');\\n\\t\\t\\t\\t\\t\\tsetTimeout(function(){\\n\\t\\t\\t\\t\\t\\t\\tself.done();\\n\\t\\t\\t\\t\\t\\t}, duration / 2);\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tplate.prepend(canvas);\\n\\n\\t\\t\\t\\t// Reset cursor style of body\\n\\t\\t\\t\\tclearTimeout(movingTimer);\\n\\t\\t\\t\\t$body.removeClass('clockpicker-moving');\\n\\n\\t\\t\\t\\t// Unbind mousemove event\\n\\t\\t\\t\\t$doc.off(mousemoveEvent);\\n\\t\\t\\t});\\n\\t\\t}\\n\\n\\t\\tif (svgSupported) {\\n\\t\\t\\t// Draw clock hands and others\\n\\t\\t\\tvar canvas = popover.find('.clockpicker-canvas'),\\n\\t\\t\\t\\tsvg = createSvgElement('svg');\\n\\t\\t\\tsvg.setAttribute('class', 'clockpicker-svg');\\n\\t\\t\\tsvg.setAttribute('width', diameter);\\n\\t\\t\\tsvg.setAttribute('height', diameter);\\n\\t\\t\\tvar g = createSvgElement('g');\\n\\t\\t\\tg.setAttribute('transform', 'translate(' + dialRadius + ',' + dialRadius + ')');\\n\\t\\t\\tvar bearing = createSvgElement('circle');\\n\\t\\t\\tbearing.setAttribute('class', 'clockpicker-canvas-bearing');\\n\\t\\t\\tbearing.setAttribute('cx', 0);\\n\\t\\t\\tbearing.setAttribute('cy', 0);\\n\\t\\t\\tbearing.setAttribute('r', 2);\\n\\t\\t\\tvar hand = createSvgElement('line');\\n\\t\\t\\thand.setAttribute('x1', 0);\\n\\t\\t\\thand.setAttribute('y1', 0);\\n\\t\\t\\tvar bg = createSvgElement('circle');\\n\\t\\t\\tbg.setAttribute('class', 'clockpicker-canvas-bg');\\n\\t\\t\\tbg.setAttribute('r', tickRadius);\\n\\t\\t\\tvar fg = createSvgElement('circle');\\n\\t\\t\\tfg.setAttribute('class', 'clockpicker-canvas-fg');\\n\\t\\t\\tfg.setAttribute('r', 3.5);\\n\\t\\t\\tg.appendChild(hand);\\n\\t\\t\\tg.appendChild(bg);\\n\\t\\t\\tg.appendChild(fg);\\n\\t\\t\\tg.appendChild(bearing);\\n\\t\\t\\tsvg.appendChild(g);\\n\\t\\t\\tcanvas.append(svg);\\n\\n\\t\\t\\tthis.hand = hand;\\n\\t\\t\\tthis.bg = bg;\\n\\t\\t\\tthis.fg = fg;\\n\\t\\t\\tthis.bearing = bearing;\\n\\t\\t\\tthis.g = g;\\n\\t\\t\\tthis.canvas = canvas;\\n\\t\\t}\\n\\n\\t\\traiseCallback(this.options.init);\\n\\t}\\n\\n\\tfunction raiseCallback(callbackFunction) {\\n\\t\\tif (callbackFunction && typeof callbackFunction === \\\"function\\\") {\\n\\t\\t\\tcallbackFunction();\\n\\t\\t}\\n\\t}\\n\\n\\t// Default options\\n\\tClockPicker.DEFAULTS = {\\n\\t\\t'default': '',       // default time, 'now' or '13:14' e.g.\\n\\t\\tfromnow: 0,          // set default time to * milliseconds from now (using with default = 'now')\\n\\t\\tplacement: 'bottom', // clock popover placement\\n\\t\\talign: 'left',       // popover arrow align\\n\\t\\tdonetext: '完成',    // done button text\\n\\t\\tautoclose: false,    // auto close when minute is selected\\n\\t\\ttwelvehour: false, // change to 12 hour AM/PM clock from 24 hour\\n\\t\\tvibrate: true        // vibrate the device when dragging clock hand\\n\\t};\\n\\n\\t// Show or hide popover\\n\\tClockPicker.prototype.toggle = function(){\\n\\t\\tthis[this.isShown ? 'hide' : 'show']();\\n\\t};\\n\\n\\t// Set popover position\\n\\tClockPicker.prototype.locate = function(){\\n\\t\\tvar element = this.element,\\n\\t\\t\\tpopover = this.popover,\\n\\t\\t\\toffset = element.offset(),\\n\\t\\t\\twidth = element.outerWidth(),\\n\\t\\t\\theight = element.outerHeight(),\\n\\t\\t\\tplacement = this.options.placement,\\n\\t\\t\\talign = this.options.align,\\n\\t\\t\\tstyles = {},\\n\\t\\t\\tself = this;\\n\\n\\t\\tpopover.show();\\n\\n\\t\\t// Place the popover\\n\\t\\tswitch (placement) {\\n\\t\\t\\tcase 'bottom':\\n\\t\\t\\t\\tstyles.top = offset.top + height;\\n\\t\\t\\t\\tbreak;\\n\\t\\t\\tcase 'right':\\n\\t\\t\\t\\tstyles.left = offset.left + width;\\n\\t\\t\\t\\tbreak;\\n\\t\\t\\tcase 'top':\\n\\t\\t\\t\\tstyles.top = offset.top - popover.outerHeight();\\n\\t\\t\\t\\tbreak;\\n\\t\\t\\tcase 'left':\\n\\t\\t\\t\\tstyles.left = offset.left - popover.outerWidth();\\n\\t\\t\\t\\tbreak;\\n\\t\\t}\\n\\n\\t\\t// Align the popover arrow\\n\\t\\tswitch (align) {\\n\\t\\t\\tcase 'left':\\n\\t\\t\\t\\tstyles.left = offset.left;\\n\\t\\t\\t\\tbreak;\\n\\t\\t\\tcase 'right':\\n\\t\\t\\t\\tstyles.left = offset.left + width - popover.outerWidth();\\n\\t\\t\\t\\tbreak;\\n\\t\\t\\tcase 'top':\\n\\t\\t\\t\\tstyles.top = offset.top;\\n\\t\\t\\t\\tbreak;\\n\\t\\t\\tcase 'bottom':\\n\\t\\t\\t\\tstyles.top = offset.top + height - popover.outerHeight();\\n\\t\\t\\t\\tbreak;\\n\\t\\t}\\n\\n\\t\\tpopover.css(styles);\\n\\t};\\n\\n\\t// Show popover\\n\\tClockPicker.prototype.show = function(e){\\n\\t\\t// Not show again\\n\\t\\tif (this.isShown) {\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\traiseCallback(this.options.beforeShow);\\n\\n\\t\\tvar self = this;\\n\\n\\t\\t// Initialize\\n\\t\\tif (! this.isAppended) {\\n\\t\\t\\t// Append popover to body\\n\\t\\t\\t$body = $(document.body).append(this.popover);\\n\\n\\t\\t\\t// Reset position when resize\\n\\t\\t\\t$win.on('resize.clockpicker' + this.id, function(){\\n\\t\\t\\t\\tif (self.isShown) {\\n\\t\\t\\t\\t\\tself.locate();\\n\\t\\t\\t\\t}\\n\\t\\t\\t});\\n\\n\\t\\t\\tthis.isAppended = true;\\n\\t\\t}\\n\\n\\t\\t// Get the time\\n\\t\\tvar value = ((this.input.prop('value') || this.options['default'] || '') + '').split(':');\\n\\t\\tif (value[0] === 'now') {\\n\\t\\t\\tvar now = new Date(+ new Date() + this.options.fromnow);\\n\\t\\t\\tvalue = [\\n\\t\\t\\t\\tnow.getHours(),\\n\\t\\t\\t\\tnow.getMinutes()\\n\\t\\t\\t];\\n\\t\\t}\\n\\t\\tthis.hours = + value[0] || 0;\\n\\t\\tthis.minutes = + value[1] || 0;\\n\\t\\tthis.spanHours.html(leadingZero(this.hours));\\n\\t\\tthis.spanMinutes.html(leadingZero(this.minutes));\\n\\n\\t\\t// Toggle to hours view\\n\\t\\tthis.toggleView('hours');\\n\\n\\t\\t// Set position\\n\\t\\tthis.locate();\\n\\n\\t\\tthis.isShown = true;\\n\\n\\t\\t// Hide when clicking or tabbing on any element except the clock, input and addon\\n\\t\\t$doc.on('click.clockpicker.' + this.id + ' focusin.clockpicker.' + this.id, function(e){\\n\\t\\t\\tvar target = $(e.target);\\n\\t\\t\\tif (target.closest(self.popover).length === 0 &&\\n\\t\\t\\t\\t\\ttarget.closest(self.addon).length === 0 &&\\n\\t\\t\\t\\t\\ttarget.closest(self.input).length === 0) {\\n\\t\\t\\t\\tself.hide();\\n\\t\\t\\t}\\n\\t\\t});\\n\\n\\t\\t// Hide when ESC is pressed\\n\\t\\t$doc.on('keyup.clockpicker.' + this.id, function(e){\\n\\t\\t\\tif (e.keyCode === 27) {\\n\\t\\t\\t\\tself.hide();\\n\\t\\t\\t}\\n\\t\\t});\\n\\n\\t\\traiseCallback(this.options.afterShow);\\n\\t};\\n\\n\\t// Hide popover\\n\\tClockPicker.prototype.hide = function(){\\n\\t\\traiseCallback(this.options.beforeHide);\\n\\n\\t\\tthis.isShown = false;\\n\\n\\t\\t// Unbinding events on document\\n\\t\\t$doc.off('click.clockpicker.' + this.id + ' focusin.clockpicker.' + this.id);\\n\\t\\t$doc.off('keyup.clockpicker.' + this.id);\\n\\n\\t\\tthis.popover.hide();\\n\\n\\t\\traiseCallback(this.options.afterHide);\\n\\t};\\n\\n\\t// Toggle to hours or minutes view\\n\\tClockPicker.prototype.toggleView = function(view, delay){\\n\\t\\tvar raiseAfterHourSelect = false;\\n\\t\\tif (view === 'minutes' && $(this.hoursView).css(\\\"visibility\\\") === \\\"visible\\\") {\\n\\t\\t\\traiseCallback(this.options.beforeHourSelect);\\n\\t\\t\\traiseAfterHourSelect = true;\\n\\t\\t}\\n\\t\\tvar isHours = view === 'hours',\\n\\t\\t\\tnextView = isHours ? this.hoursView : this.minutesView,\\n\\t\\t\\thideView = isHours ? this.minutesView : this.hoursView;\\n\\n\\t\\tthis.currentView = view;\\n\\n\\t\\tthis.spanHours.toggleClass('text-primary', isHours);\\n\\t\\tthis.spanMinutes.toggleClass('text-primary', ! isHours);\\n\\n\\t\\t// Let's make transitions\\n\\t\\thideView.addClass('clockpicker-dial-out');\\n\\t\\tnextView.css('visibility', 'visible').removeClass('clockpicker-dial-out');\\n\\n\\t\\t// Reset clock hand\\n\\t\\tthis.resetClock(delay);\\n\\n\\t\\t// After transitions ended\\n\\t\\tclearTimeout(this.toggleViewTimer);\\n\\t\\tthis.toggleViewTimer = setTimeout(function(){\\n\\t\\t\\thideView.css('visibility', 'hidden');\\n\\t\\t}, duration);\\n\\n\\t\\tif (raiseAfterHourSelect) {\\n\\t\\t\\traiseCallback(this.options.afterHourSelect);\\n\\t\\t}\\n\\t};\\n\\n\\t// Reset clock hand\\n\\tClockPicker.prototype.resetClock = function(delay){\\n\\t\\tvar view = this.currentView,\\n\\t\\t\\tvalue = this[view],\\n\\t\\t\\tisHours = view === 'hours',\\n\\t\\t\\tunit = Math.PI / (isHours ? 6 : 30),\\n\\t\\t\\tradian = value * unit,\\n\\t\\t\\tradius = isHours && value > 0 && value < 13 ? innerRadius : outerRadius,\\n\\t\\t\\tx = Math.sin(radian) * radius,\\n\\t\\t\\ty = - Math.cos(radian) * radius,\\n\\t\\t\\tself = this;\\n\\t\\tif (svgSupported && delay) {\\n\\t\\t\\tself.canvas.addClass('clockpicker-canvas-out');\\n\\t\\t\\tsetTimeout(function(){\\n\\t\\t\\t\\tself.canvas.removeClass('clockpicker-canvas-out');\\n\\t\\t\\t\\tself.setHand(x, y);\\n\\t\\t\\t}, delay);\\n\\t\\t} else {\\n\\t\\t\\tthis.setHand(x, y);\\n\\t\\t}\\n\\t};\\n\\n\\t// Set clock hand to (x, y)\\n\\tClockPicker.prototype.setHand = function(x, y, roundBy5, dragging){\\n\\t\\tvar radian = Math.atan2(x, - y),\\n\\t\\t\\tisHours = this.currentView === 'hours',\\n\\t\\t\\tunit = Math.PI / (isHours || roundBy5 ? 6 : 30),\\n\\t\\t\\tz = Math.sqrt(x * x + y * y),\\n\\t\\t\\toptions = this.options,\\n\\t\\t\\tinner = isHours && z < (outerRadius + innerRadius) / 2,\\n\\t\\t\\tradius = inner ? innerRadius : outerRadius,\\n\\t\\t\\tvalue;\\n\\t\\t\\t\\n\\t\\t\\tif (options.twelvehour) {\\n\\t\\t\\t\\tradius = outerRadius;\\n\\t\\t\\t}\\n\\n\\t\\t// Radian should in range [0, 2PI]\\n\\t\\tif (radian < 0) {\\n\\t\\t\\tradian = Math.PI * 2 + radian;\\n\\t\\t}\\n\\n\\t\\t// Get the round value\\n\\t\\tvalue = Math.round(radian / unit);\\n\\n\\t\\t// Get the round radian\\n\\t\\tradian = value * unit;\\n\\n\\t\\t// Correct the hours or minutes\\n\\t\\tif (options.twelvehour) {\\n\\t\\t\\tif (isHours) {\\n\\t\\t\\t\\tif (value === 0) {\\n\\t\\t\\t\\t\\tvalue = 12;\\n\\t\\t\\t\\t}\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tif (roundBy5) {\\n\\t\\t\\t\\t\\tvalue *= 5;\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tif (value === 60) {\\n\\t\\t\\t\\t\\tvalue = 0;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t} else {\\n\\t\\t\\tif (isHours) {\\n\\t\\t\\t\\tif (value === 12) {\\n\\t\\t\\t\\t\\tvalue = 0;\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tvalue = inner ? (value === 0 ? 12 : value) : value === 0 ? 0 : value + 12;\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tif (roundBy5) {\\n\\t\\t\\t\\t\\tvalue *= 5;\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tif (value === 60) {\\n\\t\\t\\t\\t\\tvalue = 0;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\t\\n\\t\\t// Once hours or minutes changed, vibrate the device\\n\\t\\tif (this[this.currentView] !== value) {\\n\\t\\t\\tif (vibrate && this.options.vibrate) {\\n\\t\\t\\t\\t// Do not vibrate too frequently\\n\\t\\t\\t\\tif (! this.vibrateTimer) {\\n\\t\\t\\t\\t\\tnavigator[vibrate](10);\\n\\t\\t\\t\\t\\tthis.vibrateTimer = setTimeout($.proxy(function(){\\n\\t\\t\\t\\t\\t\\tthis.vibrateTimer = null;\\n\\t\\t\\t\\t\\t}, this), 100);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\tthis[this.currentView] = value;\\n\\t\\tthis[isHours ? 'spanHours' : 'spanMinutes'].html(leadingZero(value));\\n\\n\\t\\t// If svg is not supported, just add an active class to the tick\\n\\t\\tif (! svgSupported) {\\n\\t\\t\\tthis[isHours ? 'hoursView' : 'minutesView'].find('.clockpicker-tick').each(function(){\\n\\t\\t\\t\\tvar tick = $(this);\\n\\t\\t\\t\\ttick.toggleClass('active', value === + tick.html());\\n\\t\\t\\t});\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\t// Place clock hand at the top when dragging\\n\\t\\tif (dragging || (! isHours && value % 5)) {\\n\\t\\t\\tthis.g.insertBefore(this.hand, this.bearing);\\n\\t\\t\\tthis.g.insertBefore(this.bg, this.fg);\\n\\t\\t\\tthis.bg.setAttribute('class', 'clockpicker-canvas-bg clockpicker-canvas-bg-trans');\\n\\t\\t} else {\\n\\t\\t\\t// Or place it at the bottom\\n\\t\\t\\tthis.g.insertBefore(this.hand, this.bg);\\n\\t\\t\\tthis.g.insertBefore(this.fg, this.bg);\\n\\t\\t\\tthis.bg.setAttribute('class', 'clockpicker-canvas-bg');\\n\\t\\t}\\n\\n\\t\\t// Set clock hand and others' position\\n\\t\\tvar cx = Math.sin(radian) * radius,\\n\\t\\t\\tcy = - Math.cos(radian) * radius;\\n\\t\\tthis.hand.setAttribute('x2', cx);\\n\\t\\tthis.hand.setAttribute('y2', cy);\\n\\t\\tthis.bg.setAttribute('cx', cx);\\n\\t\\tthis.bg.setAttribute('cy', cy);\\n\\t\\tthis.fg.setAttribute('cx', cx);\\n\\t\\tthis.fg.setAttribute('cy', cy);\\n\\t};\\n\\n\\t// Hours and minutes are selected\\n\\tClockPicker.prototype.done = function() {\\n\\t\\traiseCallback(this.options.beforeDone);\\n\\t\\tthis.hide();\\n\\t\\tvar last = this.input.prop('value'),\\n\\t\\t\\tvalue = leadingZero(this.hours) + ':' + leadingZero(this.minutes);\\n\\t\\tif  (this.options.twelvehour) {\\n\\t\\t\\tvalue = value + this.amOrPm;\\n\\t\\t}\\n\\t\\t\\n\\t\\tthis.input.prop('value', value);\\n\\t\\tif (value !== last) {\\n\\t\\t\\tthis.input.triggerHandler('change');\\n\\t\\t\\tif (! this.isInput) {\\n\\t\\t\\t\\tthis.element.trigger('change');\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\tif (this.options.autoclose) {\\n\\t\\t\\tthis.input.trigger('blur');\\n\\t\\t}\\n\\n\\t\\traiseCallback(this.options.afterDone);\\n\\t};\\n\\n\\t// Remove clockpicker from input\\n\\tClockPicker.prototype.remove = function() {\\n\\t\\tthis.element.removeData('clockpicker');\\n\\t\\tthis.input.off('focus.clockpicker click.clockpicker');\\n\\t\\tthis.addon.off('click.clockpicker');\\n\\t\\tif (this.isShown) {\\n\\t\\t\\tthis.hide();\\n\\t\\t}\\n\\t\\tif (this.isAppended) {\\n\\t\\t\\t$win.off('resize.clockpicker' + this.id);\\n\\t\\t\\tthis.popover.remove();\\n\\t\\t}\\n\\t};\\n\\n\\t// Extends $.fn.clockpicker\\n\\t$.fn.clockpicker = function(option){\\n\\t\\tvar args = Array.prototype.slice.call(arguments, 1);\\n\\t\\treturn this.each(function(){\\n\\t\\t\\tvar $this = $(this),\\n\\t\\t\\t\\tdata = $this.data('clockpicker');\\n\\t\\t\\tif (! data) {\\n\\t\\t\\t\\tvar options = $.extend({}, ClockPicker.DEFAULTS, $this.data(), typeof option == 'object' && option);\\n\\t\\t\\t\\t$this.data('clockpicker', new ClockPicker($this, options));\\n\\t\\t\\t} else {\\n\\t\\t\\t\\t// Manual operatsions. show, hide, remove, e.g.\\n\\t\\t\\t\\tif (typeof data[option] === 'function') {\\n\\t\\t\\t\\t\\tdata[option].apply(data, args);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t});\\n\\t};\\n}());\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// /home/cool/Music/personal_projects/Zmall/angbackuo/~/raw-loader!/home/cool/Music/personal_projects/Zmall/angbackuo/~/source-map-loader!/home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/clockpicker/clockpicker.js\n// module id = 1500\n// module chunks = 2","module.exports = \"!function() {\\n  var d3 = {\\n    version: \\\"3.5.17\\\"\\n  };\\n  var d3_arraySlice = [].slice, d3_array = function(list) {\\n    return d3_arraySlice.call(list);\\n  };\\n  var d3_document = this.document;\\n  function d3_documentElement(node) {\\n    return node && (node.ownerDocument || node.document || node).documentElement;\\n  }\\n  function d3_window(node) {\\n    return node && (node.ownerDocument && node.ownerDocument.defaultView || node.document && node || node.defaultView);\\n  }\\n  if (d3_document) {\\n    try {\\n      d3_array(d3_document.documentElement.childNodes)[0].nodeType;\\n    } catch (e) {\\n      d3_array = function(list) {\\n        var i = list.length, array = new Array(i);\\n        while (i--) array[i] = list[i];\\n        return array;\\n      };\\n    }\\n  }\\n  if (!Date.now) Date.now = function() {\\n    return +new Date();\\n  };\\n  if (d3_document) {\\n    try {\\n      d3_document.createElement(\\\"DIV\\\").style.setProperty(\\\"opacity\\\", 0, \\\"\\\");\\n    } catch (error) {\\n      var d3_element_prototype = this.Element.prototype, d3_element_setAttribute = d3_element_prototype.setAttribute, d3_element_setAttributeNS = d3_element_prototype.setAttributeNS, d3_style_prototype = this.CSSStyleDeclaration.prototype, d3_style_setProperty = d3_style_prototype.setProperty;\\n      d3_element_prototype.setAttribute = function(name, value) {\\n        d3_element_setAttribute.call(this, name, value + \\\"\\\");\\n      };\\n      d3_element_prototype.setAttributeNS = function(space, local, value) {\\n        d3_element_setAttributeNS.call(this, space, local, value + \\\"\\\");\\n      };\\n      d3_style_prototype.setProperty = function(name, value, priority) {\\n        d3_style_setProperty.call(this, name, value + \\\"\\\", priority);\\n      };\\n    }\\n  }\\n  d3.ascending = d3_ascending;\\n  function d3_ascending(a, b) {\\n    return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;\\n  }\\n  d3.descending = function(a, b) {\\n    return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;\\n  };\\n  d3.min = function(array, f) {\\n    var i = -1, n = array.length, a, b;\\n    if (arguments.length === 1) {\\n      while (++i < n) if ((b = array[i]) != null && b >= b) {\\n        a = b;\\n        break;\\n      }\\n      while (++i < n) if ((b = array[i]) != null && a > b) a = b;\\n    } else {\\n      while (++i < n) if ((b = f.call(array, array[i], i)) != null && b >= b) {\\n        a = b;\\n        break;\\n      }\\n      while (++i < n) if ((b = f.call(array, array[i], i)) != null && a > b) a = b;\\n    }\\n    return a;\\n  };\\n  d3.max = function(array, f) {\\n    var i = -1, n = array.length, a, b;\\n    if (arguments.length === 1) {\\n      while (++i < n) if ((b = array[i]) != null && b >= b) {\\n        a = b;\\n        break;\\n      }\\n      while (++i < n) if ((b = array[i]) != null && b > a) a = b;\\n    } else {\\n      while (++i < n) if ((b = f.call(array, array[i], i)) != null && b >= b) {\\n        a = b;\\n        break;\\n      }\\n      while (++i < n) if ((b = f.call(array, array[i], i)) != null && b > a) a = b;\\n    }\\n    return a;\\n  };\\n  d3.extent = function(array, f) {\\n    var i = -1, n = array.length, a, b, c;\\n    if (arguments.length === 1) {\\n      while (++i < n) if ((b = array[i]) != null && b >= b) {\\n        a = c = b;\\n        break;\\n      }\\n      while (++i < n) if ((b = array[i]) != null) {\\n        if (a > b) a = b;\\n        if (c < b) c = b;\\n      }\\n    } else {\\n      while (++i < n) if ((b = f.call(array, array[i], i)) != null && b >= b) {\\n        a = c = b;\\n        break;\\n      }\\n      while (++i < n) if ((b = f.call(array, array[i], i)) != null) {\\n        if (a > b) a = b;\\n        if (c < b) c = b;\\n      }\\n    }\\n    return [ a, c ];\\n  };\\n  function d3_number(x) {\\n    return x === null ? NaN : +x;\\n  }\\n  function d3_numeric(x) {\\n    return !isNaN(x);\\n  }\\n  d3.sum = function(array, f) {\\n    var s = 0, n = array.length, a, i = -1;\\n    if (arguments.length === 1) {\\n      while (++i < n) if (d3_numeric(a = +array[i])) s += a;\\n    } else {\\n      while (++i < n) if (d3_numeric(a = +f.call(array, array[i], i))) s += a;\\n    }\\n    return s;\\n  };\\n  d3.mean = function(array, f) {\\n    var s = 0, n = array.length, a, i = -1, j = n;\\n    if (arguments.length === 1) {\\n      while (++i < n) if (d3_numeric(a = d3_number(array[i]))) s += a; else --j;\\n    } else {\\n      while (++i < n) if (d3_numeric(a = d3_number(f.call(array, array[i], i)))) s += a; else --j;\\n    }\\n    if (j) return s / j;\\n  };\\n  d3.quantile = function(values, p) {\\n    var H = (values.length - 1) * p + 1, h = Math.floor(H), v = +values[h - 1], e = H - h;\\n    return e ? v + e * (values[h] - v) : v;\\n  };\\n  d3.median = function(array, f) {\\n    var numbers = [], n = array.length, a, i = -1;\\n    if (arguments.length === 1) {\\n      while (++i < n) if (d3_numeric(a = d3_number(array[i]))) numbers.push(a);\\n    } else {\\n      while (++i < n) if (d3_numeric(a = d3_number(f.call(array, array[i], i)))) numbers.push(a);\\n    }\\n    if (numbers.length) return d3.quantile(numbers.sort(d3_ascending), .5);\\n  };\\n  d3.variance = function(array, f) {\\n    var n = array.length, m = 0, a, d, s = 0, i = -1, j = 0;\\n    if (arguments.length === 1) {\\n      while (++i < n) {\\n        if (d3_numeric(a = d3_number(array[i]))) {\\n          d = a - m;\\n          m += d / ++j;\\n          s += d * (a - m);\\n        }\\n      }\\n    } else {\\n      while (++i < n) {\\n        if (d3_numeric(a = d3_number(f.call(array, array[i], i)))) {\\n          d = a - m;\\n          m += d / ++j;\\n          s += d * (a - m);\\n        }\\n      }\\n    }\\n    if (j > 1) return s / (j - 1);\\n  };\\n  d3.deviation = function() {\\n    var v = d3.variance.apply(this, arguments);\\n    return v ? Math.sqrt(v) : v;\\n  };\\n  function d3_bisector(compare) {\\n    return {\\n      left: function(a, x, lo, hi) {\\n        if (arguments.length < 3) lo = 0;\\n        if (arguments.length < 4) hi = a.length;\\n        while (lo < hi) {\\n          var mid = lo + hi >>> 1;\\n          if (compare(a[mid], x) < 0) lo = mid + 1; else hi = mid;\\n        }\\n        return lo;\\n      },\\n      right: function(a, x, lo, hi) {\\n        if (arguments.length < 3) lo = 0;\\n        if (arguments.length < 4) hi = a.length;\\n        while (lo < hi) {\\n          var mid = lo + hi >>> 1;\\n          if (compare(a[mid], x) > 0) hi = mid; else lo = mid + 1;\\n        }\\n        return lo;\\n      }\\n    };\\n  }\\n  var d3_bisect = d3_bisector(d3_ascending);\\n  d3.bisectLeft = d3_bisect.left;\\n  d3.bisect = d3.bisectRight = d3_bisect.right;\\n  d3.bisector = function(f) {\\n    return d3_bisector(f.length === 1 ? function(d, x) {\\n      return d3_ascending(f(d), x);\\n    } : f);\\n  };\\n  d3.shuffle = function(array, i0, i1) {\\n    if ((m = arguments.length) < 3) {\\n      i1 = array.length;\\n      if (m < 2) i0 = 0;\\n    }\\n    var m = i1 - i0, t, i;\\n    while (m) {\\n      i = Math.random() * m-- | 0;\\n      t = array[m + i0], array[m + i0] = array[i + i0], array[i + i0] = t;\\n    }\\n    return array;\\n  };\\n  d3.permute = function(array, indexes) {\\n    var i = indexes.length, permutes = new Array(i);\\n    while (i--) permutes[i] = array[indexes[i]];\\n    return permutes;\\n  };\\n  d3.pairs = function(array) {\\n    var i = 0, n = array.length - 1, p0, p1 = array[0], pairs = new Array(n < 0 ? 0 : n);\\n    while (i < n) pairs[i] = [ p0 = p1, p1 = array[++i] ];\\n    return pairs;\\n  };\\n  d3.transpose = function(matrix) {\\n    if (!(n = matrix.length)) return [];\\n    for (var i = -1, m = d3.min(matrix, d3_transposeLength), transpose = new Array(m); ++i < m; ) {\\n      for (var j = -1, n, row = transpose[i] = new Array(n); ++j < n; ) {\\n        row[j] = matrix[j][i];\\n      }\\n    }\\n    return transpose;\\n  };\\n  function d3_transposeLength(d) {\\n    return d.length;\\n  }\\n  d3.zip = function() {\\n    return d3.transpose(arguments);\\n  };\\n  d3.keys = function(map) {\\n    var keys = [];\\n    for (var key in map) keys.push(key);\\n    return keys;\\n  };\\n  d3.values = function(map) {\\n    var values = [];\\n    for (var key in map) values.push(map[key]);\\n    return values;\\n  };\\n  d3.entries = function(map) {\\n    var entries = [];\\n    for (var key in map) entries.push({\\n      key: key,\\n      value: map[key]\\n    });\\n    return entries;\\n  };\\n  d3.merge = function(arrays) {\\n    var n = arrays.length, m, i = -1, j = 0, merged, array;\\n    while (++i < n) j += arrays[i].length;\\n    merged = new Array(j);\\n    while (--n >= 0) {\\n      array = arrays[n];\\n      m = array.length;\\n      while (--m >= 0) {\\n        merged[--j] = array[m];\\n      }\\n    }\\n    return merged;\\n  };\\n  var abs = Math.abs;\\n  d3.range = function(start, stop, step) {\\n    if (arguments.length < 3) {\\n      step = 1;\\n      if (arguments.length < 2) {\\n        stop = start;\\n        start = 0;\\n      }\\n    }\\n    if ((stop - start) / step === Infinity) throw new Error(\\\"infinite range\\\");\\n    var range = [], k = d3_range_integerScale(abs(step)), i = -1, j;\\n    start *= k, stop *= k, step *= k;\\n    if (step < 0) while ((j = start + step * ++i) > stop) range.push(j / k); else while ((j = start + step * ++i) < stop) range.push(j / k);\\n    return range;\\n  };\\n  function d3_range_integerScale(x) {\\n    var k = 1;\\n    while (x * k % 1) k *= 10;\\n    return k;\\n  }\\n  function d3_class(ctor, properties) {\\n    for (var key in properties) {\\n      Object.defineProperty(ctor.prototype, key, {\\n        value: properties[key],\\n        enumerable: false\\n      });\\n    }\\n  }\\n  d3.map = function(object, f) {\\n    var map = new d3_Map();\\n    if (object instanceof d3_Map) {\\n      object.forEach(function(key, value) {\\n        map.set(key, value);\\n      });\\n    } else if (Array.isArray(object)) {\\n      var i = -1, n = object.length, o;\\n      if (arguments.length === 1) while (++i < n) map.set(i, object[i]); else while (++i < n) map.set(f.call(object, o = object[i], i), o);\\n    } else {\\n      for (var key in object) map.set(key, object[key]);\\n    }\\n    return map;\\n  };\\n  function d3_Map() {\\n    this._ = Object.create(null);\\n  }\\n  var d3_map_proto = \\\"__proto__\\\", d3_map_zero = \\\"\\\\x00\\\";\\n  d3_class(d3_Map, {\\n    has: d3_map_has,\\n    get: function(key) {\\n      return this._[d3_map_escape(key)];\\n    },\\n    set: function(key, value) {\\n      return this._[d3_map_escape(key)] = value;\\n    },\\n    remove: d3_map_remove,\\n    keys: d3_map_keys,\\n    values: function() {\\n      var values = [];\\n      for (var key in this._) values.push(this._[key]);\\n      return values;\\n    },\\n    entries: function() {\\n      var entries = [];\\n      for (var key in this._) entries.push({\\n        key: d3_map_unescape(key),\\n        value: this._[key]\\n      });\\n      return entries;\\n    },\\n    size: d3_map_size,\\n    empty: d3_map_empty,\\n    forEach: function(f) {\\n      for (var key in this._) f.call(this, d3_map_unescape(key), this._[key]);\\n    }\\n  });\\n  function d3_map_escape(key) {\\n    return (key += \\\"\\\") === d3_map_proto || key[0] === d3_map_zero ? d3_map_zero + key : key;\\n  }\\n  function d3_map_unescape(key) {\\n    return (key += \\\"\\\")[0] === d3_map_zero ? key.slice(1) : key;\\n  }\\n  function d3_map_has(key) {\\n    return d3_map_escape(key) in this._;\\n  }\\n  function d3_map_remove(key) {\\n    return (key = d3_map_escape(key)) in this._ && delete this._[key];\\n  }\\n  function d3_map_keys() {\\n    var keys = [];\\n    for (var key in this._) keys.push(d3_map_unescape(key));\\n    return keys;\\n  }\\n  function d3_map_size() {\\n    var size = 0;\\n    for (var key in this._) ++size;\\n    return size;\\n  }\\n  function d3_map_empty() {\\n    for (var key in this._) return false;\\n    return true;\\n  }\\n  d3.nest = function() {\\n    var nest = {}, keys = [], sortKeys = [], sortValues, rollup;\\n    function map(mapType, array, depth) {\\n      if (depth >= keys.length) return rollup ? rollup.call(nest, array) : sortValues ? array.sort(sortValues) : array;\\n      var i = -1, n = array.length, key = keys[depth++], keyValue, object, setter, valuesByKey = new d3_Map(), values;\\n      while (++i < n) {\\n        if (values = valuesByKey.get(keyValue = key(object = array[i]))) {\\n          values.push(object);\\n        } else {\\n          valuesByKey.set(keyValue, [ object ]);\\n        }\\n      }\\n      if (mapType) {\\n        object = mapType();\\n        setter = function(keyValue, values) {\\n          object.set(keyValue, map(mapType, values, depth));\\n        };\\n      } else {\\n        object = {};\\n        setter = function(keyValue, values) {\\n          object[keyValue] = map(mapType, values, depth);\\n        };\\n      }\\n      valuesByKey.forEach(setter);\\n      return object;\\n    }\\n    function entries(map, depth) {\\n      if (depth >= keys.length) return map;\\n      var array = [], sortKey = sortKeys[depth++];\\n      map.forEach(function(key, keyMap) {\\n        array.push({\\n          key: key,\\n          values: entries(keyMap, depth)\\n        });\\n      });\\n      return sortKey ? array.sort(function(a, b) {\\n        return sortKey(a.key, b.key);\\n      }) : array;\\n    }\\n    nest.map = function(array, mapType) {\\n      return map(mapType, array, 0);\\n    };\\n    nest.entries = function(array) {\\n      return entries(map(d3.map, array, 0), 0);\\n    };\\n    nest.key = function(d) {\\n      keys.push(d);\\n      return nest;\\n    };\\n    nest.sortKeys = function(order) {\\n      sortKeys[keys.length - 1] = order;\\n      return nest;\\n    };\\n    nest.sortValues = function(order) {\\n      sortValues = order;\\n      return nest;\\n    };\\n    nest.rollup = function(f) {\\n      rollup = f;\\n      return nest;\\n    };\\n    return nest;\\n  };\\n  d3.set = function(array) {\\n    var set = new d3_Set();\\n    if (array) for (var i = 0, n = array.length; i < n; ++i) set.add(array[i]);\\n    return set;\\n  };\\n  function d3_Set() {\\n    this._ = Object.create(null);\\n  }\\n  d3_class(d3_Set, {\\n    has: d3_map_has,\\n    add: function(key) {\\n      this._[d3_map_escape(key += \\\"\\\")] = true;\\n      return key;\\n    },\\n    remove: d3_map_remove,\\n    values: d3_map_keys,\\n    size: d3_map_size,\\n    empty: d3_map_empty,\\n    forEach: function(f) {\\n      for (var key in this._) f.call(this, d3_map_unescape(key));\\n    }\\n  });\\n  d3.behavior = {};\\n  function d3_identity(d) {\\n    return d;\\n  }\\n  d3.rebind = function(target, source) {\\n    var i = 1, n = arguments.length, method;\\n    while (++i < n) target[method = arguments[i]] = d3_rebind(target, source, source[method]);\\n    return target;\\n  };\\n  function d3_rebind(target, source, method) {\\n    return function() {\\n      var value = method.apply(source, arguments);\\n      return value === source ? target : value;\\n    };\\n  }\\n  function d3_vendorSymbol(object, name) {\\n    if (name in object) return name;\\n    name = name.charAt(0).toUpperCase() + name.slice(1);\\n    for (var i = 0, n = d3_vendorPrefixes.length; i < n; ++i) {\\n      var prefixName = d3_vendorPrefixes[i] + name;\\n      if (prefixName in object) return prefixName;\\n    }\\n  }\\n  var d3_vendorPrefixes = [ \\\"webkit\\\", \\\"ms\\\", \\\"moz\\\", \\\"Moz\\\", \\\"o\\\", \\\"O\\\" ];\\n  function d3_noop() {}\\n  d3.dispatch = function() {\\n    var dispatch = new d3_dispatch(), i = -1, n = arguments.length;\\n    while (++i < n) dispatch[arguments[i]] = d3_dispatch_event(dispatch);\\n    return dispatch;\\n  };\\n  function d3_dispatch() {}\\n  d3_dispatch.prototype.on = function(type, listener) {\\n    var i = type.indexOf(\\\".\\\"), name = \\\"\\\";\\n    if (i >= 0) {\\n      name = type.slice(i + 1);\\n      type = type.slice(0, i);\\n    }\\n    if (type) return arguments.length < 2 ? this[type].on(name) : this[type].on(name, listener);\\n    if (arguments.length === 2) {\\n      if (listener == null) for (type in this) {\\n        if (this.hasOwnProperty(type)) this[type].on(name, null);\\n      }\\n      return this;\\n    }\\n  };\\n  function d3_dispatch_event(dispatch) {\\n    var listeners = [], listenerByName = new d3_Map();\\n    function event() {\\n      var z = listeners, i = -1, n = z.length, l;\\n      while (++i < n) if (l = z[i].on) l.apply(this, arguments);\\n      return dispatch;\\n    }\\n    event.on = function(name, listener) {\\n      var l = listenerByName.get(name), i;\\n      if (arguments.length < 2) return l && l.on;\\n      if (l) {\\n        l.on = null;\\n        listeners = listeners.slice(0, i = listeners.indexOf(l)).concat(listeners.slice(i + 1));\\n        listenerByName.remove(name);\\n      }\\n      if (listener) listeners.push(listenerByName.set(name, {\\n        on: listener\\n      }));\\n      return dispatch;\\n    };\\n    return event;\\n  }\\n  d3.event = null;\\n  function d3_eventPreventDefault() {\\n    d3.event.preventDefault();\\n  }\\n  function d3_eventSource() {\\n    var e = d3.event, s;\\n    while (s = e.sourceEvent) e = s;\\n    return e;\\n  }\\n  function d3_eventDispatch(target) {\\n    var dispatch = new d3_dispatch(), i = 0, n = arguments.length;\\n    while (++i < n) dispatch[arguments[i]] = d3_dispatch_event(dispatch);\\n    dispatch.of = function(thiz, argumentz) {\\n      return function(e1) {\\n        try {\\n          var e0 = e1.sourceEvent = d3.event;\\n          e1.target = target;\\n          d3.event = e1;\\n          dispatch[e1.type].apply(thiz, argumentz);\\n        } finally {\\n          d3.event = e0;\\n        }\\n      };\\n    };\\n    return dispatch;\\n  }\\n  d3.requote = function(s) {\\n    return s.replace(d3_requote_re, \\\"\\\\\\\\$&\\\");\\n  };\\n  var d3_requote_re = /[\\\\\\\\\\\\^\\\\$\\\\*\\\\+\\\\?\\\\|\\\\[\\\\]\\\\(\\\\)\\\\.\\\\{\\\\}]/g;\\n  var d3_subclass = {}.__proto__ ? function(object, prototype) {\\n    object.__proto__ = prototype;\\n  } : function(object, prototype) {\\n    for (var property in prototype) object[property] = prototype[property];\\n  };\\n  function d3_selection(groups) {\\n    d3_subclass(groups, d3_selectionPrototype);\\n    return groups;\\n  }\\n  var d3_select = function(s, n) {\\n    return n.querySelector(s);\\n  }, d3_selectAll = function(s, n) {\\n    return n.querySelectorAll(s);\\n  }, d3_selectMatches = function(n, s) {\\n    var d3_selectMatcher = n.matches || n[d3_vendorSymbol(n, \\\"matchesSelector\\\")];\\n    d3_selectMatches = function(n, s) {\\n      return d3_selectMatcher.call(n, s);\\n    };\\n    return d3_selectMatches(n, s);\\n  };\\n  if (typeof Sizzle === \\\"function\\\") {\\n    d3_select = function(s, n) {\\n      return Sizzle(s, n)[0] || null;\\n    };\\n    d3_selectAll = Sizzle;\\n    d3_selectMatches = Sizzle.matchesSelector;\\n  }\\n  d3.selection = function() {\\n    return d3.select(d3_document.documentElement);\\n  };\\n  var d3_selectionPrototype = d3.selection.prototype = [];\\n  d3_selectionPrototype.select = function(selector) {\\n    var subgroups = [], subgroup, subnode, group, node;\\n    selector = d3_selection_selector(selector);\\n    for (var j = -1, m = this.length; ++j < m; ) {\\n      subgroups.push(subgroup = []);\\n      subgroup.parentNode = (group = this[j]).parentNode;\\n      for (var i = -1, n = group.length; ++i < n; ) {\\n        if (node = group[i]) {\\n          subgroup.push(subnode = selector.call(node, node.__data__, i, j));\\n          if (subnode && \\\"__data__\\\" in node) subnode.__data__ = node.__data__;\\n        } else {\\n          subgroup.push(null);\\n        }\\n      }\\n    }\\n    return d3_selection(subgroups);\\n  };\\n  function d3_selection_selector(selector) {\\n    return typeof selector === \\\"function\\\" ? selector : function() {\\n      return d3_select(selector, this);\\n    };\\n  }\\n  d3_selectionPrototype.selectAll = function(selector) {\\n    var subgroups = [], subgroup, node;\\n    selector = d3_selection_selectorAll(selector);\\n    for (var j = -1, m = this.length; ++j < m; ) {\\n      for (var group = this[j], i = -1, n = group.length; ++i < n; ) {\\n        if (node = group[i]) {\\n          subgroups.push(subgroup = d3_array(selector.call(node, node.__data__, i, j)));\\n          subgroup.parentNode = node;\\n        }\\n      }\\n    }\\n    return d3_selection(subgroups);\\n  };\\n  function d3_selection_selectorAll(selector) {\\n    return typeof selector === \\\"function\\\" ? selector : function() {\\n      return d3_selectAll(selector, this);\\n    };\\n  }\\n  var d3_nsXhtml = \\\"http://www.w3.org/1999/xhtml\\\";\\n  var d3_nsPrefix = {\\n    svg: \\\"http://www.w3.org/2000/svg\\\",\\n    xhtml: d3_nsXhtml,\\n    xlink: \\\"http://www.w3.org/1999/xlink\\\",\\n    xml: \\\"http://www.w3.org/XML/1998/namespace\\\",\\n    xmlns: \\\"http://www.w3.org/2000/xmlns/\\\"\\n  };\\n  d3.ns = {\\n    prefix: d3_nsPrefix,\\n    qualify: function(name) {\\n      var i = name.indexOf(\\\":\\\"), prefix = name;\\n      if (i >= 0 && (prefix = name.slice(0, i)) !== \\\"xmlns\\\") name = name.slice(i + 1);\\n      return d3_nsPrefix.hasOwnProperty(prefix) ? {\\n        space: d3_nsPrefix[prefix],\\n        local: name\\n      } : name;\\n    }\\n  };\\n  d3_selectionPrototype.attr = function(name, value) {\\n    if (arguments.length < 2) {\\n      if (typeof name === \\\"string\\\") {\\n        var node = this.node();\\n        name = d3.ns.qualify(name);\\n        return name.local ? node.getAttributeNS(name.space, name.local) : node.getAttribute(name);\\n      }\\n      for (value in name) this.each(d3_selection_attr(value, name[value]));\\n      return this;\\n    }\\n    return this.each(d3_selection_attr(name, value));\\n  };\\n  function d3_selection_attr(name, value) {\\n    name = d3.ns.qualify(name);\\n    function attrNull() {\\n      this.removeAttribute(name);\\n    }\\n    function attrNullNS() {\\n      this.removeAttributeNS(name.space, name.local);\\n    }\\n    function attrConstant() {\\n      this.setAttribute(name, value);\\n    }\\n    function attrConstantNS() {\\n      this.setAttributeNS(name.space, name.local, value);\\n    }\\n    function attrFunction() {\\n      var x = value.apply(this, arguments);\\n      if (x == null) this.removeAttribute(name); else this.setAttribute(name, x);\\n    }\\n    function attrFunctionNS() {\\n      var x = value.apply(this, arguments);\\n      if (x == null) this.removeAttributeNS(name.space, name.local); else this.setAttributeNS(name.space, name.local, x);\\n    }\\n    return value == null ? name.local ? attrNullNS : attrNull : typeof value === \\\"function\\\" ? name.local ? attrFunctionNS : attrFunction : name.local ? attrConstantNS : attrConstant;\\n  }\\n  function d3_collapse(s) {\\n    return s.trim().replace(/\\\\s+/g, \\\" \\\");\\n  }\\n  d3_selectionPrototype.classed = function(name, value) {\\n    if (arguments.length < 2) {\\n      if (typeof name === \\\"string\\\") {\\n        var node = this.node(), n = (name = d3_selection_classes(name)).length, i = -1;\\n        if (value = node.classList) {\\n          while (++i < n) if (!value.contains(name[i])) return false;\\n        } else {\\n          value = node.getAttribute(\\\"class\\\");\\n          while (++i < n) if (!d3_selection_classedRe(name[i]).test(value)) return false;\\n        }\\n        return true;\\n      }\\n      for (value in name) this.each(d3_selection_classed(value, name[value]));\\n      return this;\\n    }\\n    return this.each(d3_selection_classed(name, value));\\n  };\\n  function d3_selection_classedRe(name) {\\n    return new RegExp(\\\"(?:^|\\\\\\\\s+)\\\" + d3.requote(name) + \\\"(?:\\\\\\\\s+|$)\\\", \\\"g\\\");\\n  }\\n  function d3_selection_classes(name) {\\n    return (name + \\\"\\\").trim().split(/^|\\\\s+/);\\n  }\\n  function d3_selection_classed(name, value) {\\n    name = d3_selection_classes(name).map(d3_selection_classedName);\\n    var n = name.length;\\n    function classedConstant() {\\n      var i = -1;\\n      while (++i < n) name[i](this, value);\\n    }\\n    function classedFunction() {\\n      var i = -1, x = value.apply(this, arguments);\\n      while (++i < n) name[i](this, x);\\n    }\\n    return typeof value === \\\"function\\\" ? classedFunction : classedConstant;\\n  }\\n  function d3_selection_classedName(name) {\\n    var re = d3_selection_classedRe(name);\\n    return function(node, value) {\\n      if (c = node.classList) return value ? c.add(name) : c.remove(name);\\n      var c = node.getAttribute(\\\"class\\\") || \\\"\\\";\\n      if (value) {\\n        re.lastIndex = 0;\\n        if (!re.test(c)) node.setAttribute(\\\"class\\\", d3_collapse(c + \\\" \\\" + name));\\n      } else {\\n        node.setAttribute(\\\"class\\\", d3_collapse(c.replace(re, \\\" \\\")));\\n      }\\n    };\\n  }\\n  d3_selectionPrototype.style = function(name, value, priority) {\\n    var n = arguments.length;\\n    if (n < 3) {\\n      if (typeof name !== \\\"string\\\") {\\n        if (n < 2) value = \\\"\\\";\\n        for (priority in name) this.each(d3_selection_style(priority, name[priority], value));\\n        return this;\\n      }\\n      if (n < 2) {\\n        var node = this.node();\\n        return d3_window(node).getComputedStyle(node, null).getPropertyValue(name);\\n      }\\n      priority = \\\"\\\";\\n    }\\n    return this.each(d3_selection_style(name, value, priority));\\n  };\\n  function d3_selection_style(name, value, priority) {\\n    function styleNull() {\\n      this.style.removeProperty(name);\\n    }\\n    function styleConstant() {\\n      this.style.setProperty(name, value, priority);\\n    }\\n    function styleFunction() {\\n      var x = value.apply(this, arguments);\\n      if (x == null) this.style.removeProperty(name); else this.style.setProperty(name, x, priority);\\n    }\\n    return value == null ? styleNull : typeof value === \\\"function\\\" ? styleFunction : styleConstant;\\n  }\\n  d3_selectionPrototype.property = function(name, value) {\\n    if (arguments.length < 2) {\\n      if (typeof name === \\\"string\\\") return this.node()[name];\\n      for (value in name) this.each(d3_selection_property(value, name[value]));\\n      return this;\\n    }\\n    return this.each(d3_selection_property(name, value));\\n  };\\n  function d3_selection_property(name, value) {\\n    function propertyNull() {\\n      delete this[name];\\n    }\\n    function propertyConstant() {\\n      this[name] = value;\\n    }\\n    function propertyFunction() {\\n      var x = value.apply(this, arguments);\\n      if (x == null) delete this[name]; else this[name] = x;\\n    }\\n    return value == null ? propertyNull : typeof value === \\\"function\\\" ? propertyFunction : propertyConstant;\\n  }\\n  d3_selectionPrototype.text = function(value) {\\n    return arguments.length ? this.each(typeof value === \\\"function\\\" ? function() {\\n      var v = value.apply(this, arguments);\\n      this.textContent = v == null ? \\\"\\\" : v;\\n    } : value == null ? function() {\\n      this.textContent = \\\"\\\";\\n    } : function() {\\n      this.textContent = value;\\n    }) : this.node().textContent;\\n  };\\n  d3_selectionPrototype.html = function(value) {\\n    return arguments.length ? this.each(typeof value === \\\"function\\\" ? function() {\\n      var v = value.apply(this, arguments);\\n      this.innerHTML = v == null ? \\\"\\\" : v;\\n    } : value == null ? function() {\\n      this.innerHTML = \\\"\\\";\\n    } : function() {\\n      this.innerHTML = value;\\n    }) : this.node().innerHTML;\\n  };\\n  d3_selectionPrototype.append = function(name) {\\n    name = d3_selection_creator(name);\\n    return this.select(function() {\\n      return this.appendChild(name.apply(this, arguments));\\n    });\\n  };\\n  function d3_selection_creator(name) {\\n    function create() {\\n      var document = this.ownerDocument, namespace = this.namespaceURI;\\n      return namespace === d3_nsXhtml && document.documentElement.namespaceURI === d3_nsXhtml ? document.createElement(name) : document.createElementNS(namespace, name);\\n    }\\n    function createNS() {\\n      return this.ownerDocument.createElementNS(name.space, name.local);\\n    }\\n    return typeof name === \\\"function\\\" ? name : (name = d3.ns.qualify(name)).local ? createNS : create;\\n  }\\n  d3_selectionPrototype.insert = function(name, before) {\\n    name = d3_selection_creator(name);\\n    before = d3_selection_selector(before);\\n    return this.select(function() {\\n      return this.insertBefore(name.apply(this, arguments), before.apply(this, arguments) || null);\\n    });\\n  };\\n  d3_selectionPrototype.remove = function() {\\n    return this.each(d3_selectionRemove);\\n  };\\n  function d3_selectionRemove() {\\n    var parent = this.parentNode;\\n    if (parent) parent.removeChild(this);\\n  }\\n  d3_selectionPrototype.data = function(value, key) {\\n    var i = -1, n = this.length, group, node;\\n    if (!arguments.length) {\\n      value = new Array(n = (group = this[0]).length);\\n      while (++i < n) {\\n        if (node = group[i]) {\\n          value[i] = node.__data__;\\n        }\\n      }\\n      return value;\\n    }\\n    function bind(group, groupData) {\\n      var i, n = group.length, m = groupData.length, n0 = Math.min(n, m), updateNodes = new Array(m), enterNodes = new Array(m), exitNodes = new Array(n), node, nodeData;\\n      if (key) {\\n        var nodeByKeyValue = new d3_Map(), keyValues = new Array(n), keyValue;\\n        for (i = -1; ++i < n; ) {\\n          if (node = group[i]) {\\n            if (nodeByKeyValue.has(keyValue = key.call(node, node.__data__, i))) {\\n              exitNodes[i] = node;\\n            } else {\\n              nodeByKeyValue.set(keyValue, node);\\n            }\\n            keyValues[i] = keyValue;\\n          }\\n        }\\n        for (i = -1; ++i < m; ) {\\n          if (!(node = nodeByKeyValue.get(keyValue = key.call(groupData, nodeData = groupData[i], i)))) {\\n            enterNodes[i] = d3_selection_dataNode(nodeData);\\n          } else if (node !== true) {\\n            updateNodes[i] = node;\\n            node.__data__ = nodeData;\\n          }\\n          nodeByKeyValue.set(keyValue, true);\\n        }\\n        for (i = -1; ++i < n; ) {\\n          if (i in keyValues && nodeByKeyValue.get(keyValues[i]) !== true) {\\n            exitNodes[i] = group[i];\\n          }\\n        }\\n      } else {\\n        for (i = -1; ++i < n0; ) {\\n          node = group[i];\\n          nodeData = groupData[i];\\n          if (node) {\\n            node.__data__ = nodeData;\\n            updateNodes[i] = node;\\n          } else {\\n            enterNodes[i] = d3_selection_dataNode(nodeData);\\n          }\\n        }\\n        for (;i < m; ++i) {\\n          enterNodes[i] = d3_selection_dataNode(groupData[i]);\\n        }\\n        for (;i < n; ++i) {\\n          exitNodes[i] = group[i];\\n        }\\n      }\\n      enterNodes.update = updateNodes;\\n      enterNodes.parentNode = updateNodes.parentNode = exitNodes.parentNode = group.parentNode;\\n      enter.push(enterNodes);\\n      update.push(updateNodes);\\n      exit.push(exitNodes);\\n    }\\n    var enter = d3_selection_enter([]), update = d3_selection([]), exit = d3_selection([]);\\n    if (typeof value === \\\"function\\\") {\\n      while (++i < n) {\\n        bind(group = this[i], value.call(group, group.parentNode.__data__, i));\\n      }\\n    } else {\\n      while (++i < n) {\\n        bind(group = this[i], value);\\n      }\\n    }\\n    update.enter = function() {\\n      return enter;\\n    };\\n    update.exit = function() {\\n      return exit;\\n    };\\n    return update;\\n  };\\n  function d3_selection_dataNode(data) {\\n    return {\\n      __data__: data\\n    };\\n  }\\n  d3_selectionPrototype.datum = function(value) {\\n    return arguments.length ? this.property(\\\"__data__\\\", value) : this.property(\\\"__data__\\\");\\n  };\\n  d3_selectionPrototype.filter = function(filter) {\\n    var subgroups = [], subgroup, group, node;\\n    if (typeof filter !== \\\"function\\\") filter = d3_selection_filter(filter);\\n    for (var j = 0, m = this.length; j < m; j++) {\\n      subgroups.push(subgroup = []);\\n      subgroup.parentNode = (group = this[j]).parentNode;\\n      for (var i = 0, n = group.length; i < n; i++) {\\n        if ((node = group[i]) && filter.call(node, node.__data__, i, j)) {\\n          subgroup.push(node);\\n        }\\n      }\\n    }\\n    return d3_selection(subgroups);\\n  };\\n  function d3_selection_filter(selector) {\\n    return function() {\\n      return d3_selectMatches(this, selector);\\n    };\\n  }\\n  d3_selectionPrototype.order = function() {\\n    for (var j = -1, m = this.length; ++j < m; ) {\\n      for (var group = this[j], i = group.length - 1, next = group[i], node; --i >= 0; ) {\\n        if (node = group[i]) {\\n          if (next && next !== node.nextSibling) next.parentNode.insertBefore(node, next);\\n          next = node;\\n        }\\n      }\\n    }\\n    return this;\\n  };\\n  d3_selectionPrototype.sort = function(comparator) {\\n    comparator = d3_selection_sortComparator.apply(this, arguments);\\n    for (var j = -1, m = this.length; ++j < m; ) this[j].sort(comparator);\\n    return this.order();\\n  };\\n  function d3_selection_sortComparator(comparator) {\\n    if (!arguments.length) comparator = d3_ascending;\\n    return function(a, b) {\\n      return a && b ? comparator(a.__data__, b.__data__) : !a - !b;\\n    };\\n  }\\n  d3_selectionPrototype.each = function(callback) {\\n    return d3_selection_each(this, function(node, i, j) {\\n      callback.call(node, node.__data__, i, j);\\n    });\\n  };\\n  function d3_selection_each(groups, callback) {\\n    for (var j = 0, m = groups.length; j < m; j++) {\\n      for (var group = groups[j], i = 0, n = group.length, node; i < n; i++) {\\n        if (node = group[i]) callback(node, i, j);\\n      }\\n    }\\n    return groups;\\n  }\\n  d3_selectionPrototype.call = function(callback) {\\n    var args = d3_array(arguments);\\n    callback.apply(args[0] = this, args);\\n    return this;\\n  };\\n  d3_selectionPrototype.empty = function() {\\n    return !this.node();\\n  };\\n  d3_selectionPrototype.node = function() {\\n    for (var j = 0, m = this.length; j < m; j++) {\\n      for (var group = this[j], i = 0, n = group.length; i < n; i++) {\\n        var node = group[i];\\n        if (node) return node;\\n      }\\n    }\\n    return null;\\n  };\\n  d3_selectionPrototype.size = function() {\\n    var n = 0;\\n    d3_selection_each(this, function() {\\n      ++n;\\n    });\\n    return n;\\n  };\\n  function d3_selection_enter(selection) {\\n    d3_subclass(selection, d3_selection_enterPrototype);\\n    return selection;\\n  }\\n  var d3_selection_enterPrototype = [];\\n  d3.selection.enter = d3_selection_enter;\\n  d3.selection.enter.prototype = d3_selection_enterPrototype;\\n  d3_selection_enterPrototype.append = d3_selectionPrototype.append;\\n  d3_selection_enterPrototype.empty = d3_selectionPrototype.empty;\\n  d3_selection_enterPrototype.node = d3_selectionPrototype.node;\\n  d3_selection_enterPrototype.call = d3_selectionPrototype.call;\\n  d3_selection_enterPrototype.size = d3_selectionPrototype.size;\\n  d3_selection_enterPrototype.select = function(selector) {\\n    var subgroups = [], subgroup, subnode, upgroup, group, node;\\n    for (var j = -1, m = this.length; ++j < m; ) {\\n      upgroup = (group = this[j]).update;\\n      subgroups.push(subgroup = []);\\n      subgroup.parentNode = group.parentNode;\\n      for (var i = -1, n = group.length; ++i < n; ) {\\n        if (node = group[i]) {\\n          subgroup.push(upgroup[i] = subnode = selector.call(group.parentNode, node.__data__, i, j));\\n          subnode.__data__ = node.__data__;\\n        } else {\\n          subgroup.push(null);\\n        }\\n      }\\n    }\\n    return d3_selection(subgroups);\\n  };\\n  d3_selection_enterPrototype.insert = function(name, before) {\\n    if (arguments.length < 2) before = d3_selection_enterInsertBefore(this);\\n    return d3_selectionPrototype.insert.call(this, name, before);\\n  };\\n  function d3_selection_enterInsertBefore(enter) {\\n    var i0, j0;\\n    return function(d, i, j) {\\n      var group = enter[j].update, n = group.length, node;\\n      if (j != j0) j0 = j, i0 = 0;\\n      if (i >= i0) i0 = i + 1;\\n      while (!(node = group[i0]) && ++i0 < n) ;\\n      return node;\\n    };\\n  }\\n  d3.select = function(node) {\\n    var group;\\n    if (typeof node === \\\"string\\\") {\\n      group = [ d3_select(node, d3_document) ];\\n      group.parentNode = d3_document.documentElement;\\n    } else {\\n      group = [ node ];\\n      group.parentNode = d3_documentElement(node);\\n    }\\n    return d3_selection([ group ]);\\n  };\\n  d3.selectAll = function(nodes) {\\n    var group;\\n    if (typeof nodes === \\\"string\\\") {\\n      group = d3_array(d3_selectAll(nodes, d3_document));\\n      group.parentNode = d3_document.documentElement;\\n    } else {\\n      group = d3_array(nodes);\\n      group.parentNode = null;\\n    }\\n    return d3_selection([ group ]);\\n  };\\n  d3_selectionPrototype.on = function(type, listener, capture) {\\n    var n = arguments.length;\\n    if (n < 3) {\\n      if (typeof type !== \\\"string\\\") {\\n        if (n < 2) listener = false;\\n        for (capture in type) this.each(d3_selection_on(capture, type[capture], listener));\\n        return this;\\n      }\\n      if (n < 2) return (n = this.node()[\\\"__on\\\" + type]) && n._;\\n      capture = false;\\n    }\\n    return this.each(d3_selection_on(type, listener, capture));\\n  };\\n  function d3_selection_on(type, listener, capture) {\\n    var name = \\\"__on\\\" + type, i = type.indexOf(\\\".\\\"), wrap = d3_selection_onListener;\\n    if (i > 0) type = type.slice(0, i);\\n    var filter = d3_selection_onFilters.get(type);\\n    if (filter) type = filter, wrap = d3_selection_onFilter;\\n    function onRemove() {\\n      var l = this[name];\\n      if (l) {\\n        this.removeEventListener(type, l, l.$);\\n        delete this[name];\\n      }\\n    }\\n    function onAdd() {\\n      var l = wrap(listener, d3_array(arguments));\\n      onRemove.call(this);\\n      this.addEventListener(type, this[name] = l, l.$ = capture);\\n      l._ = listener;\\n    }\\n    function removeAll() {\\n      var re = new RegExp(\\\"^__on([^.]+)\\\" + d3.requote(type) + \\\"$\\\"), match;\\n      for (var name in this) {\\n        if (match = name.match(re)) {\\n          var l = this[name];\\n          this.removeEventListener(match[1], l, l.$);\\n          delete this[name];\\n        }\\n      }\\n    }\\n    return i ? listener ? onAdd : onRemove : listener ? d3_noop : removeAll;\\n  }\\n  var d3_selection_onFilters = d3.map({\\n    mouseenter: \\\"mouseover\\\",\\n    mouseleave: \\\"mouseout\\\"\\n  });\\n  if (d3_document) {\\n    d3_selection_onFilters.forEach(function(k) {\\n      if (\\\"on\\\" + k in d3_document) d3_selection_onFilters.remove(k);\\n    });\\n  }\\n  function d3_selection_onListener(listener, argumentz) {\\n    return function(e) {\\n      var o = d3.event;\\n      d3.event = e;\\n      argumentz[0] = this.__data__;\\n      try {\\n        listener.apply(this, argumentz);\\n      } finally {\\n        d3.event = o;\\n      }\\n    };\\n  }\\n  function d3_selection_onFilter(listener, argumentz) {\\n    var l = d3_selection_onListener(listener, argumentz);\\n    return function(e) {\\n      var target = this, related = e.relatedTarget;\\n      if (!related || related !== target && !(related.compareDocumentPosition(target) & 8)) {\\n        l.call(target, e);\\n      }\\n    };\\n  }\\n  var d3_event_dragSelect, d3_event_dragId = 0;\\n  function d3_event_dragSuppress(node) {\\n    var name = \\\".dragsuppress-\\\" + ++d3_event_dragId, click = \\\"click\\\" + name, w = d3.select(d3_window(node)).on(\\\"touchmove\\\" + name, d3_eventPreventDefault).on(\\\"dragstart\\\" + name, d3_eventPreventDefault).on(\\\"selectstart\\\" + name, d3_eventPreventDefault);\\n    if (d3_event_dragSelect == null) {\\n      d3_event_dragSelect = \\\"onselectstart\\\" in node ? false : d3_vendorSymbol(node.style, \\\"userSelect\\\");\\n    }\\n    if (d3_event_dragSelect) {\\n      var style = d3_documentElement(node).style, select = style[d3_event_dragSelect];\\n      style[d3_event_dragSelect] = \\\"none\\\";\\n    }\\n    return function(suppressClick) {\\n      w.on(name, null);\\n      if (d3_event_dragSelect) style[d3_event_dragSelect] = select;\\n      if (suppressClick) {\\n        var off = function() {\\n          w.on(click, null);\\n        };\\n        w.on(click, function() {\\n          d3_eventPreventDefault();\\n          off();\\n        }, true);\\n        setTimeout(off, 0);\\n      }\\n    };\\n  }\\n  d3.mouse = function(container) {\\n    return d3_mousePoint(container, d3_eventSource());\\n  };\\n  var d3_mouse_bug44083 = this.navigator && /WebKit/.test(this.navigator.userAgent) ? -1 : 0;\\n  function d3_mousePoint(container, e) {\\n    if (e.changedTouches) e = e.changedTouches[0];\\n    var svg = container.ownerSVGElement || container;\\n    if (svg.createSVGPoint) {\\n      var point = svg.createSVGPoint();\\n      if (d3_mouse_bug44083 < 0) {\\n        var window = d3_window(container);\\n        if (window.scrollX || window.scrollY) {\\n          svg = d3.select(\\\"body\\\").append(\\\"svg\\\").style({\\n            position: \\\"absolute\\\",\\n            top: 0,\\n            left: 0,\\n            margin: 0,\\n            padding: 0,\\n            border: \\\"none\\\"\\n          }, \\\"important\\\");\\n          var ctm = svg[0][0].getScreenCTM();\\n          d3_mouse_bug44083 = !(ctm.f || ctm.e);\\n          svg.remove();\\n        }\\n      }\\n      if (d3_mouse_bug44083) point.x = e.pageX, point.y = e.pageY; else point.x = e.clientX, \\n      point.y = e.clientY;\\n      point = point.matrixTransform(container.getScreenCTM().inverse());\\n      return [ point.x, point.y ];\\n    }\\n    var rect = container.getBoundingClientRect();\\n    return [ e.clientX - rect.left - container.clientLeft, e.clientY - rect.top - container.clientTop ];\\n  }\\n  d3.touch = function(container, touches, identifier) {\\n    if (arguments.length < 3) identifier = touches, touches = d3_eventSource().changedTouches;\\n    if (touches) for (var i = 0, n = touches.length, touch; i < n; ++i) {\\n      if ((touch = touches[i]).identifier === identifier) {\\n        return d3_mousePoint(container, touch);\\n      }\\n    }\\n  };\\n  d3.behavior.drag = function() {\\n    var event = d3_eventDispatch(drag, \\\"drag\\\", \\\"dragstart\\\", \\\"dragend\\\"), origin = null, mousedown = dragstart(d3_noop, d3.mouse, d3_window, \\\"mousemove\\\", \\\"mouseup\\\"), touchstart = dragstart(d3_behavior_dragTouchId, d3.touch, d3_identity, \\\"touchmove\\\", \\\"touchend\\\");\\n    function drag() {\\n      this.on(\\\"mousedown.drag\\\", mousedown).on(\\\"touchstart.drag\\\", touchstart);\\n    }\\n    function dragstart(id, position, subject, move, end) {\\n      return function() {\\n        var that = this, target = d3.event.target.correspondingElement || d3.event.target, parent = that.parentNode, dispatch = event.of(that, arguments), dragged = 0, dragId = id(), dragName = \\\".drag\\\" + (dragId == null ? \\\"\\\" : \\\"-\\\" + dragId), dragOffset, dragSubject = d3.select(subject(target)).on(move + dragName, moved).on(end + dragName, ended), dragRestore = d3_event_dragSuppress(target), position0 = position(parent, dragId);\\n        if (origin) {\\n          dragOffset = origin.apply(that, arguments);\\n          dragOffset = [ dragOffset.x - position0[0], dragOffset.y - position0[1] ];\\n        } else {\\n          dragOffset = [ 0, 0 ];\\n        }\\n        dispatch({\\n          type: \\\"dragstart\\\"\\n        });\\n        function moved() {\\n          var position1 = position(parent, dragId), dx, dy;\\n          if (!position1) return;\\n          dx = position1[0] - position0[0];\\n          dy = position1[1] - position0[1];\\n          dragged |= dx | dy;\\n          position0 = position1;\\n          dispatch({\\n            type: \\\"drag\\\",\\n            x: position1[0] + dragOffset[0],\\n            y: position1[1] + dragOffset[1],\\n            dx: dx,\\n            dy: dy\\n          });\\n        }\\n        function ended() {\\n          if (!position(parent, dragId)) return;\\n          dragSubject.on(move + dragName, null).on(end + dragName, null);\\n          dragRestore(dragged);\\n          dispatch({\\n            type: \\\"dragend\\\"\\n          });\\n        }\\n      };\\n    }\\n    drag.origin = function(x) {\\n      if (!arguments.length) return origin;\\n      origin = x;\\n      return drag;\\n    };\\n    return d3.rebind(drag, event, \\\"on\\\");\\n  };\\n  function d3_behavior_dragTouchId() {\\n    return d3.event.changedTouches[0].identifier;\\n  }\\n  d3.touches = function(container, touches) {\\n    if (arguments.length < 2) touches = d3_eventSource().touches;\\n    return touches ? d3_array(touches).map(function(touch) {\\n      var point = d3_mousePoint(container, touch);\\n      point.identifier = touch.identifier;\\n      return point;\\n    }) : [];\\n  };\\n  var ε = 1e-6, ε2 = ε * ε, π = Math.PI, τ = 2 * π, τε = τ - ε, halfπ = π / 2, d3_radians = π / 180, d3_degrees = 180 / π;\\n  function d3_sgn(x) {\\n    return x > 0 ? 1 : x < 0 ? -1 : 0;\\n  }\\n  function d3_cross2d(a, b, c) {\\n    return (b[0] - a[0]) * (c[1] - a[1]) - (b[1] - a[1]) * (c[0] - a[0]);\\n  }\\n  function d3_acos(x) {\\n    return x > 1 ? 0 : x < -1 ? π : Math.acos(x);\\n  }\\n  function d3_asin(x) {\\n    return x > 1 ? halfπ : x < -1 ? -halfπ : Math.asin(x);\\n  }\\n  function d3_sinh(x) {\\n    return ((x = Math.exp(x)) - 1 / x) / 2;\\n  }\\n  function d3_cosh(x) {\\n    return ((x = Math.exp(x)) + 1 / x) / 2;\\n  }\\n  function d3_tanh(x) {\\n    return ((x = Math.exp(2 * x)) - 1) / (x + 1);\\n  }\\n  function d3_haversin(x) {\\n    return (x = Math.sin(x / 2)) * x;\\n  }\\n  var ρ = Math.SQRT2, ρ2 = 2, ρ4 = 4;\\n  d3.interpolateZoom = function(p0, p1) {\\n    var ux0 = p0[0], uy0 = p0[1], w0 = p0[2], ux1 = p1[0], uy1 = p1[1], w1 = p1[2], dx = ux1 - ux0, dy = uy1 - uy0, d2 = dx * dx + dy * dy, i, S;\\n    if (d2 < ε2) {\\n      S = Math.log(w1 / w0) / ρ;\\n      i = function(t) {\\n        return [ ux0 + t * dx, uy0 + t * dy, w0 * Math.exp(ρ * t * S) ];\\n      };\\n    } else {\\n      var d1 = Math.sqrt(d2), b0 = (w1 * w1 - w0 * w0 + ρ4 * d2) / (2 * w0 * ρ2 * d1), b1 = (w1 * w1 - w0 * w0 - ρ4 * d2) / (2 * w1 * ρ2 * d1), r0 = Math.log(Math.sqrt(b0 * b0 + 1) - b0), r1 = Math.log(Math.sqrt(b1 * b1 + 1) - b1);\\n      S = (r1 - r0) / ρ;\\n      i = function(t) {\\n        var s = t * S, coshr0 = d3_cosh(r0), u = w0 / (ρ2 * d1) * (coshr0 * d3_tanh(ρ * s + r0) - d3_sinh(r0));\\n        return [ ux0 + u * dx, uy0 + u * dy, w0 * coshr0 / d3_cosh(ρ * s + r0) ];\\n      };\\n    }\\n    i.duration = S * 1e3;\\n    return i;\\n  };\\n  d3.behavior.zoom = function() {\\n    var view = {\\n      x: 0,\\n      y: 0,\\n      k: 1\\n    }, translate0, center0, center, size = [ 960, 500 ], scaleExtent = d3_behavior_zoomInfinity, duration = 250, zooming = 0, mousedown = \\\"mousedown.zoom\\\", mousemove = \\\"mousemove.zoom\\\", mouseup = \\\"mouseup.zoom\\\", mousewheelTimer, touchstart = \\\"touchstart.zoom\\\", touchtime, event = d3_eventDispatch(zoom, \\\"zoomstart\\\", \\\"zoom\\\", \\\"zoomend\\\"), x0, x1, y0, y1;\\n    if (!d3_behavior_zoomWheel) {\\n      d3_behavior_zoomWheel = \\\"onwheel\\\" in d3_document ? (d3_behavior_zoomDelta = function() {\\n        return -d3.event.deltaY * (d3.event.deltaMode ? 120 : 1);\\n      }, \\\"wheel\\\") : \\\"onmousewheel\\\" in d3_document ? (d3_behavior_zoomDelta = function() {\\n        return d3.event.wheelDelta;\\n      }, \\\"mousewheel\\\") : (d3_behavior_zoomDelta = function() {\\n        return -d3.event.detail;\\n      }, \\\"MozMousePixelScroll\\\");\\n    }\\n    function zoom(g) {\\n      g.on(mousedown, mousedowned).on(d3_behavior_zoomWheel + \\\".zoom\\\", mousewheeled).on(\\\"dblclick.zoom\\\", dblclicked).on(touchstart, touchstarted);\\n    }\\n    zoom.event = function(g) {\\n      g.each(function() {\\n        var dispatch = event.of(this, arguments), view1 = view;\\n        if (d3_transitionInheritId) {\\n          d3.select(this).transition().each(\\\"start.zoom\\\", function() {\\n            view = this.__chart__ || {\\n              x: 0,\\n              y: 0,\\n              k: 1\\n            };\\n            zoomstarted(dispatch);\\n          }).tween(\\\"zoom:zoom\\\", function() {\\n            var dx = size[0], dy = size[1], cx = center0 ? center0[0] : dx / 2, cy = center0 ? center0[1] : dy / 2, i = d3.interpolateZoom([ (cx - view.x) / view.k, (cy - view.y) / view.k, dx / view.k ], [ (cx - view1.x) / view1.k, (cy - view1.y) / view1.k, dx / view1.k ]);\\n            return function(t) {\\n              var l = i(t), k = dx / l[2];\\n              this.__chart__ = view = {\\n                x: cx - l[0] * k,\\n                y: cy - l[1] * k,\\n                k: k\\n              };\\n              zoomed(dispatch);\\n            };\\n          }).each(\\\"interrupt.zoom\\\", function() {\\n            zoomended(dispatch);\\n          }).each(\\\"end.zoom\\\", function() {\\n            zoomended(dispatch);\\n          });\\n        } else {\\n          this.__chart__ = view;\\n          zoomstarted(dispatch);\\n          zoomed(dispatch);\\n          zoomended(dispatch);\\n        }\\n      });\\n    };\\n    zoom.translate = function(_) {\\n      if (!arguments.length) return [ view.x, view.y ];\\n      view = {\\n        x: +_[0],\\n        y: +_[1],\\n        k: view.k\\n      };\\n      rescale();\\n      return zoom;\\n    };\\n    zoom.scale = function(_) {\\n      if (!arguments.length) return view.k;\\n      view = {\\n        x: view.x,\\n        y: view.y,\\n        k: null\\n      };\\n      scaleTo(+_);\\n      rescale();\\n      return zoom;\\n    };\\n    zoom.scaleExtent = function(_) {\\n      if (!arguments.length) return scaleExtent;\\n      scaleExtent = _ == null ? d3_behavior_zoomInfinity : [ +_[0], +_[1] ];\\n      return zoom;\\n    };\\n    zoom.center = function(_) {\\n      if (!arguments.length) return center;\\n      center = _ && [ +_[0], +_[1] ];\\n      return zoom;\\n    };\\n    zoom.size = function(_) {\\n      if (!arguments.length) return size;\\n      size = _ && [ +_[0], +_[1] ];\\n      return zoom;\\n    };\\n    zoom.duration = function(_) {\\n      if (!arguments.length) return duration;\\n      duration = +_;\\n      return zoom;\\n    };\\n    zoom.x = function(z) {\\n      if (!arguments.length) return x1;\\n      x1 = z;\\n      x0 = z.copy();\\n      view = {\\n        x: 0,\\n        y: 0,\\n        k: 1\\n      };\\n      return zoom;\\n    };\\n    zoom.y = function(z) {\\n      if (!arguments.length) return y1;\\n      y1 = z;\\n      y0 = z.copy();\\n      view = {\\n        x: 0,\\n        y: 0,\\n        k: 1\\n      };\\n      return zoom;\\n    };\\n    function location(p) {\\n      return [ (p[0] - view.x) / view.k, (p[1] - view.y) / view.k ];\\n    }\\n    function point(l) {\\n      return [ l[0] * view.k + view.x, l[1] * view.k + view.y ];\\n    }\\n    function scaleTo(s) {\\n      view.k = Math.max(scaleExtent[0], Math.min(scaleExtent[1], s));\\n    }\\n    function translateTo(p, l) {\\n      l = point(l);\\n      view.x += p[0] - l[0];\\n      view.y += p[1] - l[1];\\n    }\\n    function zoomTo(that, p, l, k) {\\n      that.__chart__ = {\\n        x: view.x,\\n        y: view.y,\\n        k: view.k\\n      };\\n      scaleTo(Math.pow(2, k));\\n      translateTo(center0 = p, l);\\n      that = d3.select(that);\\n      if (duration > 0) that = that.transition().duration(duration);\\n      that.call(zoom.event);\\n    }\\n    function rescale() {\\n      if (x1) x1.domain(x0.range().map(function(x) {\\n        return (x - view.x) / view.k;\\n      }).map(x0.invert));\\n      if (y1) y1.domain(y0.range().map(function(y) {\\n        return (y - view.y) / view.k;\\n      }).map(y0.invert));\\n    }\\n    function zoomstarted(dispatch) {\\n      if (!zooming++) dispatch({\\n        type: \\\"zoomstart\\\"\\n      });\\n    }\\n    function zoomed(dispatch) {\\n      rescale();\\n      dispatch({\\n        type: \\\"zoom\\\",\\n        scale: view.k,\\n        translate: [ view.x, view.y ]\\n      });\\n    }\\n    function zoomended(dispatch) {\\n      if (!--zooming) dispatch({\\n        type: \\\"zoomend\\\"\\n      }), center0 = null;\\n    }\\n    function mousedowned() {\\n      var that = this, dispatch = event.of(that, arguments), dragged = 0, subject = d3.select(d3_window(that)).on(mousemove, moved).on(mouseup, ended), location0 = location(d3.mouse(that)), dragRestore = d3_event_dragSuppress(that);\\n      d3_selection_interrupt.call(that);\\n      zoomstarted(dispatch);\\n      function moved() {\\n        dragged = 1;\\n        translateTo(d3.mouse(that), location0);\\n        zoomed(dispatch);\\n      }\\n      function ended() {\\n        subject.on(mousemove, null).on(mouseup, null);\\n        dragRestore(dragged);\\n        zoomended(dispatch);\\n      }\\n    }\\n    function touchstarted() {\\n      var that = this, dispatch = event.of(that, arguments), locations0 = {}, distance0 = 0, scale0, zoomName = \\\".zoom-\\\" + d3.event.changedTouches[0].identifier, touchmove = \\\"touchmove\\\" + zoomName, touchend = \\\"touchend\\\" + zoomName, targets = [], subject = d3.select(that), dragRestore = d3_event_dragSuppress(that);\\n      started();\\n      zoomstarted(dispatch);\\n      subject.on(mousedown, null).on(touchstart, started);\\n      function relocate() {\\n        var touches = d3.touches(that);\\n        scale0 = view.k;\\n        touches.forEach(function(t) {\\n          if (t.identifier in locations0) locations0[t.identifier] = location(t);\\n        });\\n        return touches;\\n      }\\n      function started() {\\n        var target = d3.event.target;\\n        d3.select(target).on(touchmove, moved).on(touchend, ended);\\n        targets.push(target);\\n        var changed = d3.event.changedTouches;\\n        for (var i = 0, n = changed.length; i < n; ++i) {\\n          locations0[changed[i].identifier] = null;\\n        }\\n        var touches = relocate(), now = Date.now();\\n        if (touches.length === 1) {\\n          if (now - touchtime < 500) {\\n            var p = touches[0];\\n            zoomTo(that, p, locations0[p.identifier], Math.floor(Math.log(view.k) / Math.LN2) + 1);\\n            d3_eventPreventDefault();\\n          }\\n          touchtime = now;\\n        } else if (touches.length > 1) {\\n          var p = touches[0], q = touches[1], dx = p[0] - q[0], dy = p[1] - q[1];\\n          distance0 = dx * dx + dy * dy;\\n        }\\n      }\\n      function moved() {\\n        var touches = d3.touches(that), p0, l0, p1, l1;\\n        d3_selection_interrupt.call(that);\\n        for (var i = 0, n = touches.length; i < n; ++i, l1 = null) {\\n          p1 = touches[i];\\n          if (l1 = locations0[p1.identifier]) {\\n            if (l0) break;\\n            p0 = p1, l0 = l1;\\n          }\\n        }\\n        if (l1) {\\n          var distance1 = (distance1 = p1[0] - p0[0]) * distance1 + (distance1 = p1[1] - p0[1]) * distance1, scale1 = distance0 && Math.sqrt(distance1 / distance0);\\n          p0 = [ (p0[0] + p1[0]) / 2, (p0[1] + p1[1]) / 2 ];\\n          l0 = [ (l0[0] + l1[0]) / 2, (l0[1] + l1[1]) / 2 ];\\n          scaleTo(scale1 * scale0);\\n        }\\n        touchtime = null;\\n        translateTo(p0, l0);\\n        zoomed(dispatch);\\n      }\\n      function ended() {\\n        if (d3.event.touches.length) {\\n          var changed = d3.event.changedTouches;\\n          for (var i = 0, n = changed.length; i < n; ++i) {\\n            delete locations0[changed[i].identifier];\\n          }\\n          for (var identifier in locations0) {\\n            return void relocate();\\n          }\\n        }\\n        d3.selectAll(targets).on(zoomName, null);\\n        subject.on(mousedown, mousedowned).on(touchstart, touchstarted);\\n        dragRestore();\\n        zoomended(dispatch);\\n      }\\n    }\\n    function mousewheeled() {\\n      var dispatch = event.of(this, arguments);\\n      if (mousewheelTimer) clearTimeout(mousewheelTimer); else d3_selection_interrupt.call(this), \\n      translate0 = location(center0 = center || d3.mouse(this)), zoomstarted(dispatch);\\n      mousewheelTimer = setTimeout(function() {\\n        mousewheelTimer = null;\\n        zoomended(dispatch);\\n      }, 50);\\n      d3_eventPreventDefault();\\n      scaleTo(Math.pow(2, d3_behavior_zoomDelta() * .002) * view.k);\\n      translateTo(center0, translate0);\\n      zoomed(dispatch);\\n    }\\n    function dblclicked() {\\n      var p = d3.mouse(this), k = Math.log(view.k) / Math.LN2;\\n      zoomTo(this, p, location(p), d3.event.shiftKey ? Math.ceil(k) - 1 : Math.floor(k) + 1);\\n    }\\n    return d3.rebind(zoom, event, \\\"on\\\");\\n  };\\n  var d3_behavior_zoomInfinity = [ 0, Infinity ], d3_behavior_zoomDelta, d3_behavior_zoomWheel;\\n  d3.color = d3_color;\\n  function d3_color() {}\\n  d3_color.prototype.toString = function() {\\n    return this.rgb() + \\\"\\\";\\n  };\\n  d3.hsl = d3_hsl;\\n  function d3_hsl(h, s, l) {\\n    return this instanceof d3_hsl ? void (this.h = +h, this.s = +s, this.l = +l) : arguments.length < 2 ? h instanceof d3_hsl ? new d3_hsl(h.h, h.s, h.l) : d3_rgb_parse(\\\"\\\" + h, d3_rgb_hsl, d3_hsl) : new d3_hsl(h, s, l);\\n  }\\n  var d3_hslPrototype = d3_hsl.prototype = new d3_color();\\n  d3_hslPrototype.brighter = function(k) {\\n    k = Math.pow(.7, arguments.length ? k : 1);\\n    return new d3_hsl(this.h, this.s, this.l / k);\\n  };\\n  d3_hslPrototype.darker = function(k) {\\n    k = Math.pow(.7, arguments.length ? k : 1);\\n    return new d3_hsl(this.h, this.s, k * this.l);\\n  };\\n  d3_hslPrototype.rgb = function() {\\n    return d3_hsl_rgb(this.h, this.s, this.l);\\n  };\\n  function d3_hsl_rgb(h, s, l) {\\n    var m1, m2;\\n    h = isNaN(h) ? 0 : (h %= 360) < 0 ? h + 360 : h;\\n    s = isNaN(s) ? 0 : s < 0 ? 0 : s > 1 ? 1 : s;\\n    l = l < 0 ? 0 : l > 1 ? 1 : l;\\n    m2 = l <= .5 ? l * (1 + s) : l + s - l * s;\\n    m1 = 2 * l - m2;\\n    function v(h) {\\n      if (h > 360) h -= 360; else if (h < 0) h += 360;\\n      if (h < 60) return m1 + (m2 - m1) * h / 60;\\n      if (h < 180) return m2;\\n      if (h < 240) return m1 + (m2 - m1) * (240 - h) / 60;\\n      return m1;\\n    }\\n    function vv(h) {\\n      return Math.round(v(h) * 255);\\n    }\\n    return new d3_rgb(vv(h + 120), vv(h), vv(h - 120));\\n  }\\n  d3.hcl = d3_hcl;\\n  function d3_hcl(h, c, l) {\\n    return this instanceof d3_hcl ? void (this.h = +h, this.c = +c, this.l = +l) : arguments.length < 2 ? h instanceof d3_hcl ? new d3_hcl(h.h, h.c, h.l) : h instanceof d3_lab ? d3_lab_hcl(h.l, h.a, h.b) : d3_lab_hcl((h = d3_rgb_lab((h = d3.rgb(h)).r, h.g, h.b)).l, h.a, h.b) : new d3_hcl(h, c, l);\\n  }\\n  var d3_hclPrototype = d3_hcl.prototype = new d3_color();\\n  d3_hclPrototype.brighter = function(k) {\\n    return new d3_hcl(this.h, this.c, Math.min(100, this.l + d3_lab_K * (arguments.length ? k : 1)));\\n  };\\n  d3_hclPrototype.darker = function(k) {\\n    return new d3_hcl(this.h, this.c, Math.max(0, this.l - d3_lab_K * (arguments.length ? k : 1)));\\n  };\\n  d3_hclPrototype.rgb = function() {\\n    return d3_hcl_lab(this.h, this.c, this.l).rgb();\\n  };\\n  function d3_hcl_lab(h, c, l) {\\n    if (isNaN(h)) h = 0;\\n    if (isNaN(c)) c = 0;\\n    return new d3_lab(l, Math.cos(h *= d3_radians) * c, Math.sin(h) * c);\\n  }\\n  d3.lab = d3_lab;\\n  function d3_lab(l, a, b) {\\n    return this instanceof d3_lab ? void (this.l = +l, this.a = +a, this.b = +b) : arguments.length < 2 ? l instanceof d3_lab ? new d3_lab(l.l, l.a, l.b) : l instanceof d3_hcl ? d3_hcl_lab(l.h, l.c, l.l) : d3_rgb_lab((l = d3_rgb(l)).r, l.g, l.b) : new d3_lab(l, a, b);\\n  }\\n  var d3_lab_K = 18;\\n  var d3_lab_X = .95047, d3_lab_Y = 1, d3_lab_Z = 1.08883;\\n  var d3_labPrototype = d3_lab.prototype = new d3_color();\\n  d3_labPrototype.brighter = function(k) {\\n    return new d3_lab(Math.min(100, this.l + d3_lab_K * (arguments.length ? k : 1)), this.a, this.b);\\n  };\\n  d3_labPrototype.darker = function(k) {\\n    return new d3_lab(Math.max(0, this.l - d3_lab_K * (arguments.length ? k : 1)), this.a, this.b);\\n  };\\n  d3_labPrototype.rgb = function() {\\n    return d3_lab_rgb(this.l, this.a, this.b);\\n  };\\n  function d3_lab_rgb(l, a, b) {\\n    var y = (l + 16) / 116, x = y + a / 500, z = y - b / 200;\\n    x = d3_lab_xyz(x) * d3_lab_X;\\n    y = d3_lab_xyz(y) * d3_lab_Y;\\n    z = d3_lab_xyz(z) * d3_lab_Z;\\n    return new d3_rgb(d3_xyz_rgb(3.2404542 * x - 1.5371385 * y - .4985314 * z), d3_xyz_rgb(-.969266 * x + 1.8760108 * y + .041556 * z), d3_xyz_rgb(.0556434 * x - .2040259 * y + 1.0572252 * z));\\n  }\\n  function d3_lab_hcl(l, a, b) {\\n    return l > 0 ? new d3_hcl(Math.atan2(b, a) * d3_degrees, Math.sqrt(a * a + b * b), l) : new d3_hcl(NaN, NaN, l);\\n  }\\n  function d3_lab_xyz(x) {\\n    return x > .206893034 ? x * x * x : (x - 4 / 29) / 7.787037;\\n  }\\n  function d3_xyz_lab(x) {\\n    return x > .008856 ? Math.pow(x, 1 / 3) : 7.787037 * x + 4 / 29;\\n  }\\n  function d3_xyz_rgb(r) {\\n    return Math.round(255 * (r <= .00304 ? 12.92 * r : 1.055 * Math.pow(r, 1 / 2.4) - .055));\\n  }\\n  d3.rgb = d3_rgb;\\n  function d3_rgb(r, g, b) {\\n    return this instanceof d3_rgb ? void (this.r = ~~r, this.g = ~~g, this.b = ~~b) : arguments.length < 2 ? r instanceof d3_rgb ? new d3_rgb(r.r, r.g, r.b) : d3_rgb_parse(\\\"\\\" + r, d3_rgb, d3_hsl_rgb) : new d3_rgb(r, g, b);\\n  }\\n  function d3_rgbNumber(value) {\\n    return new d3_rgb(value >> 16, value >> 8 & 255, value & 255);\\n  }\\n  function d3_rgbString(value) {\\n    return d3_rgbNumber(value) + \\\"\\\";\\n  }\\n  var d3_rgbPrototype = d3_rgb.prototype = new d3_color();\\n  d3_rgbPrototype.brighter = function(k) {\\n    k = Math.pow(.7, arguments.length ? k : 1);\\n    var r = this.r, g = this.g, b = this.b, i = 30;\\n    if (!r && !g && !b) return new d3_rgb(i, i, i);\\n    if (r && r < i) r = i;\\n    if (g && g < i) g = i;\\n    if (b && b < i) b = i;\\n    return new d3_rgb(Math.min(255, r / k), Math.min(255, g / k), Math.min(255, b / k));\\n  };\\n  d3_rgbPrototype.darker = function(k) {\\n    k = Math.pow(.7, arguments.length ? k : 1);\\n    return new d3_rgb(k * this.r, k * this.g, k * this.b);\\n  };\\n  d3_rgbPrototype.hsl = function() {\\n    return d3_rgb_hsl(this.r, this.g, this.b);\\n  };\\n  d3_rgbPrototype.toString = function() {\\n    return \\\"#\\\" + d3_rgb_hex(this.r) + d3_rgb_hex(this.g) + d3_rgb_hex(this.b);\\n  };\\n  function d3_rgb_hex(v) {\\n    return v < 16 ? \\\"0\\\" + Math.max(0, v).toString(16) : Math.min(255, v).toString(16);\\n  }\\n  function d3_rgb_parse(format, rgb, hsl) {\\n    var r = 0, g = 0, b = 0, m1, m2, color;\\n    m1 = /([a-z]+)\\\\((.*)\\\\)/.exec(format = format.toLowerCase());\\n    if (m1) {\\n      m2 = m1[2].split(\\\",\\\");\\n      switch (m1[1]) {\\n       case \\\"hsl\\\":\\n        {\\n          return hsl(parseFloat(m2[0]), parseFloat(m2[1]) / 100, parseFloat(m2[2]) / 100);\\n        }\\n\\n       case \\\"rgb\\\":\\n        {\\n          return rgb(d3_rgb_parseNumber(m2[0]), d3_rgb_parseNumber(m2[1]), d3_rgb_parseNumber(m2[2]));\\n        }\\n      }\\n    }\\n    if (color = d3_rgb_names.get(format)) {\\n      return rgb(color.r, color.g, color.b);\\n    }\\n    if (format != null && format.charAt(0) === \\\"#\\\" && !isNaN(color = parseInt(format.slice(1), 16))) {\\n      if (format.length === 4) {\\n        r = (color & 3840) >> 4;\\n        r = r >> 4 | r;\\n        g = color & 240;\\n        g = g >> 4 | g;\\n        b = color & 15;\\n        b = b << 4 | b;\\n      } else if (format.length === 7) {\\n        r = (color & 16711680) >> 16;\\n        g = (color & 65280) >> 8;\\n        b = color & 255;\\n      }\\n    }\\n    return rgb(r, g, b);\\n  }\\n  function d3_rgb_hsl(r, g, b) {\\n    var min = Math.min(r /= 255, g /= 255, b /= 255), max = Math.max(r, g, b), d = max - min, h, s, l = (max + min) / 2;\\n    if (d) {\\n      s = l < .5 ? d / (max + min) : d / (2 - max - min);\\n      if (r == max) h = (g - b) / d + (g < b ? 6 : 0); else if (g == max) h = (b - r) / d + 2; else h = (r - g) / d + 4;\\n      h *= 60;\\n    } else {\\n      h = NaN;\\n      s = l > 0 && l < 1 ? 0 : h;\\n    }\\n    return new d3_hsl(h, s, l);\\n  }\\n  function d3_rgb_lab(r, g, b) {\\n    r = d3_rgb_xyz(r);\\n    g = d3_rgb_xyz(g);\\n    b = d3_rgb_xyz(b);\\n    var x = d3_xyz_lab((.4124564 * r + .3575761 * g + .1804375 * b) / d3_lab_X), y = d3_xyz_lab((.2126729 * r + .7151522 * g + .072175 * b) / d3_lab_Y), z = d3_xyz_lab((.0193339 * r + .119192 * g + .9503041 * b) / d3_lab_Z);\\n    return d3_lab(116 * y - 16, 500 * (x - y), 200 * (y - z));\\n  }\\n  function d3_rgb_xyz(r) {\\n    return (r /= 255) <= .04045 ? r / 12.92 : Math.pow((r + .055) / 1.055, 2.4);\\n  }\\n  function d3_rgb_parseNumber(c) {\\n    var f = parseFloat(c);\\n    return c.charAt(c.length - 1) === \\\"%\\\" ? Math.round(f * 2.55) : f;\\n  }\\n  var d3_rgb_names = d3.map({\\n    aliceblue: 15792383,\\n    antiquewhite: 16444375,\\n    aqua: 65535,\\n    aquamarine: 8388564,\\n    azure: 15794175,\\n    beige: 16119260,\\n    bisque: 16770244,\\n    black: 0,\\n    blanchedalmond: 16772045,\\n    blue: 255,\\n    blueviolet: 9055202,\\n    brown: 10824234,\\n    burlywood: 14596231,\\n    cadetblue: 6266528,\\n    chartreuse: 8388352,\\n    chocolate: 13789470,\\n    coral: 16744272,\\n    cornflowerblue: 6591981,\\n    cornsilk: 16775388,\\n    crimson: 14423100,\\n    cyan: 65535,\\n    darkblue: 139,\\n    darkcyan: 35723,\\n    darkgoldenrod: 12092939,\\n    darkgray: 11119017,\\n    darkgreen: 25600,\\n    darkgrey: 11119017,\\n    darkkhaki: 12433259,\\n    darkmagenta: 9109643,\\n    darkolivegreen: 5597999,\\n    darkorange: 16747520,\\n    darkorchid: 10040012,\\n    darkred: 9109504,\\n    darksalmon: 15308410,\\n    darkseagreen: 9419919,\\n    darkslateblue: 4734347,\\n    darkslategray: 3100495,\\n    darkslategrey: 3100495,\\n    darkturquoise: 52945,\\n    darkviolet: 9699539,\\n    deeppink: 16716947,\\n    deepskyblue: 49151,\\n    dimgray: 6908265,\\n    dimgrey: 6908265,\\n    dodgerblue: 2003199,\\n    firebrick: 11674146,\\n    floralwhite: 16775920,\\n    forestgreen: 2263842,\\n    fuchsia: 16711935,\\n    gainsboro: 14474460,\\n    ghostwhite: 16316671,\\n    gold: 16766720,\\n    goldenrod: 14329120,\\n    gray: 8421504,\\n    green: 32768,\\n    greenyellow: 11403055,\\n    grey: 8421504,\\n    honeydew: 15794160,\\n    hotpink: 16738740,\\n    indianred: 13458524,\\n    indigo: 4915330,\\n    ivory: 16777200,\\n    khaki: 15787660,\\n    lavender: 15132410,\\n    lavenderblush: 16773365,\\n    lawngreen: 8190976,\\n    lemonchiffon: 16775885,\\n    lightblue: 11393254,\\n    lightcoral: 15761536,\\n    lightcyan: 14745599,\\n    lightgoldenrodyellow: 16448210,\\n    lightgray: 13882323,\\n    lightgreen: 9498256,\\n    lightgrey: 13882323,\\n    lightpink: 16758465,\\n    lightsalmon: 16752762,\\n    lightseagreen: 2142890,\\n    lightskyblue: 8900346,\\n    lightslategray: 7833753,\\n    lightslategrey: 7833753,\\n    lightsteelblue: 11584734,\\n    lightyellow: 16777184,\\n    lime: 65280,\\n    limegreen: 3329330,\\n    linen: 16445670,\\n    magenta: 16711935,\\n    maroon: 8388608,\\n    mediumaquamarine: 6737322,\\n    mediumblue: 205,\\n    mediumorchid: 12211667,\\n    mediumpurple: 9662683,\\n    mediumseagreen: 3978097,\\n    mediumslateblue: 8087790,\\n    mediumspringgreen: 64154,\\n    mediumturquoise: 4772300,\\n    mediumvioletred: 13047173,\\n    midnightblue: 1644912,\\n    mintcream: 16121850,\\n    mistyrose: 16770273,\\n    moccasin: 16770229,\\n    navajowhite: 16768685,\\n    navy: 128,\\n    oldlace: 16643558,\\n    olive: 8421376,\\n    olivedrab: 7048739,\\n    orange: 16753920,\\n    orangered: 16729344,\\n    orchid: 14315734,\\n    palegoldenrod: 15657130,\\n    palegreen: 10025880,\\n    paleturquoise: 11529966,\\n    palevioletred: 14381203,\\n    papayawhip: 16773077,\\n    peachpuff: 16767673,\\n    peru: 13468991,\\n    pink: 16761035,\\n    plum: 14524637,\\n    powderblue: 11591910,\\n    purple: 8388736,\\n    rebeccapurple: 6697881,\\n    red: 16711680,\\n    rosybrown: 12357519,\\n    royalblue: 4286945,\\n    saddlebrown: 9127187,\\n    salmon: 16416882,\\n    sandybrown: 16032864,\\n    seagreen: 3050327,\\n    seashell: 16774638,\\n    sienna: 10506797,\\n    silver: 12632256,\\n    skyblue: 8900331,\\n    slateblue: 6970061,\\n    slategray: 7372944,\\n    slategrey: 7372944,\\n    snow: 16775930,\\n    springgreen: 65407,\\n    steelblue: 4620980,\\n    tan: 13808780,\\n    teal: 32896,\\n    thistle: 14204888,\\n    tomato: 16737095,\\n    turquoise: 4251856,\\n    violet: 15631086,\\n    wheat: 16113331,\\n    white: 16777215,\\n    whitesmoke: 16119285,\\n    yellow: 16776960,\\n    yellowgreen: 10145074\\n  });\\n  d3_rgb_names.forEach(function(key, value) {\\n    d3_rgb_names.set(key, d3_rgbNumber(value));\\n  });\\n  function d3_functor(v) {\\n    return typeof v === \\\"function\\\" ? v : function() {\\n      return v;\\n    };\\n  }\\n  d3.functor = d3_functor;\\n  d3.xhr = d3_xhrType(d3_identity);\\n  function d3_xhrType(response) {\\n    return function(url, mimeType, callback) {\\n      if (arguments.length === 2 && typeof mimeType === \\\"function\\\") callback = mimeType, \\n      mimeType = null;\\n      return d3_xhr(url, mimeType, response, callback);\\n    };\\n  }\\n  function d3_xhr(url, mimeType, response, callback) {\\n    var xhr = {}, dispatch = d3.dispatch(\\\"beforesend\\\", \\\"progress\\\", \\\"load\\\", \\\"error\\\"), headers = {}, request = new XMLHttpRequest(), responseType = null;\\n    if (this.XDomainRequest && !(\\\"withCredentials\\\" in request) && /^(http(s)?:)?\\\\/\\\\//.test(url)) request = new XDomainRequest();\\n    \\\"onload\\\" in request ? request.onload = request.onerror = respond : request.onreadystatechange = function() {\\n      request.readyState > 3 && respond();\\n    };\\n    function respond() {\\n      var status = request.status, result;\\n      if (!status && d3_xhrHasResponse(request) || status >= 200 && status < 300 || status === 304) {\\n        try {\\n          result = response.call(xhr, request);\\n        } catch (e) {\\n          dispatch.error.call(xhr, e);\\n          return;\\n        }\\n        dispatch.load.call(xhr, result);\\n      } else {\\n        dispatch.error.call(xhr, request);\\n      }\\n    }\\n    request.onprogress = function(event) {\\n      var o = d3.event;\\n      d3.event = event;\\n      try {\\n        dispatch.progress.call(xhr, request);\\n      } finally {\\n        d3.event = o;\\n      }\\n    };\\n    xhr.header = function(name, value) {\\n      name = (name + \\\"\\\").toLowerCase();\\n      if (arguments.length < 2) return headers[name];\\n      if (value == null) delete headers[name]; else headers[name] = value + \\\"\\\";\\n      return xhr;\\n    };\\n    xhr.mimeType = function(value) {\\n      if (!arguments.length) return mimeType;\\n      mimeType = value == null ? null : value + \\\"\\\";\\n      return xhr;\\n    };\\n    xhr.responseType = function(value) {\\n      if (!arguments.length) return responseType;\\n      responseType = value;\\n      return xhr;\\n    };\\n    xhr.response = function(value) {\\n      response = value;\\n      return xhr;\\n    };\\n    [ \\\"get\\\", \\\"post\\\" ].forEach(function(method) {\\n      xhr[method] = function() {\\n        return xhr.send.apply(xhr, [ method ].concat(d3_array(arguments)));\\n      };\\n    });\\n    xhr.send = function(method, data, callback) {\\n      if (arguments.length === 2 && typeof data === \\\"function\\\") callback = data, data = null;\\n      request.open(method, url, true);\\n      if (mimeType != null && !(\\\"accept\\\" in headers)) headers[\\\"accept\\\"] = mimeType + \\\",*/*\\\";\\n      if (request.setRequestHeader) for (var name in headers) request.setRequestHeader(name, headers[name]);\\n      if (mimeType != null && request.overrideMimeType) request.overrideMimeType(mimeType);\\n      if (responseType != null) request.responseType = responseType;\\n      if (callback != null) xhr.on(\\\"error\\\", callback).on(\\\"load\\\", function(request) {\\n        callback(null, request);\\n      });\\n      dispatch.beforesend.call(xhr, request);\\n      request.send(data == null ? null : data);\\n      return xhr;\\n    };\\n    xhr.abort = function() {\\n      request.abort();\\n      return xhr;\\n    };\\n    d3.rebind(xhr, dispatch, \\\"on\\\");\\n    return callback == null ? xhr : xhr.get(d3_xhr_fixCallback(callback));\\n  }\\n  function d3_xhr_fixCallback(callback) {\\n    return callback.length === 1 ? function(error, request) {\\n      callback(error == null ? request : null);\\n    } : callback;\\n  }\\n  function d3_xhrHasResponse(request) {\\n    var type = request.responseType;\\n    return type && type !== \\\"text\\\" ? request.response : request.responseText;\\n  }\\n  d3.dsv = function(delimiter, mimeType) {\\n    var reFormat = new RegExp('[\\\"' + delimiter + \\\"\\\\n]\\\"), delimiterCode = delimiter.charCodeAt(0);\\n    function dsv(url, row, callback) {\\n      if (arguments.length < 3) callback = row, row = null;\\n      var xhr = d3_xhr(url, mimeType, row == null ? response : typedResponse(row), callback);\\n      xhr.row = function(_) {\\n        return arguments.length ? xhr.response((row = _) == null ? response : typedResponse(_)) : row;\\n      };\\n      return xhr;\\n    }\\n    function response(request) {\\n      return dsv.parse(request.responseText);\\n    }\\n    function typedResponse(f) {\\n      return function(request) {\\n        return dsv.parse(request.responseText, f);\\n      };\\n    }\\n    dsv.parse = function(text, f) {\\n      var o;\\n      return dsv.parseRows(text, function(row, i) {\\n        if (o) return o(row, i - 1);\\n        var a = new Function(\\\"d\\\", \\\"return {\\\" + row.map(function(name, i) {\\n          return JSON.stringify(name) + \\\": d[\\\" + i + \\\"]\\\";\\n        }).join(\\\",\\\") + \\\"}\\\");\\n        o = f ? function(row, i) {\\n          return f(a(row), i);\\n        } : a;\\n      });\\n    };\\n    dsv.parseRows = function(text, f) {\\n      var EOL = {}, EOF = {}, rows = [], N = text.length, I = 0, n = 0, t, eol;\\n      function token() {\\n        if (I >= N) return EOF;\\n        if (eol) return eol = false, EOL;\\n        var j = I;\\n        if (text.charCodeAt(j) === 34) {\\n          var i = j;\\n          while (i++ < N) {\\n            if (text.charCodeAt(i) === 34) {\\n              if (text.charCodeAt(i + 1) !== 34) break;\\n              ++i;\\n            }\\n          }\\n          I = i + 2;\\n          var c = text.charCodeAt(i + 1);\\n          if (c === 13) {\\n            eol = true;\\n            if (text.charCodeAt(i + 2) === 10) ++I;\\n          } else if (c === 10) {\\n            eol = true;\\n          }\\n          return text.slice(j + 1, i).replace(/\\\"\\\"/g, '\\\"');\\n        }\\n        while (I < N) {\\n          var c = text.charCodeAt(I++), k = 1;\\n          if (c === 10) eol = true; else if (c === 13) {\\n            eol = true;\\n            if (text.charCodeAt(I) === 10) ++I, ++k;\\n          } else if (c !== delimiterCode) continue;\\n          return text.slice(j, I - k);\\n        }\\n        return text.slice(j);\\n      }\\n      while ((t = token()) !== EOF) {\\n        var a = [];\\n        while (t !== EOL && t !== EOF) {\\n          a.push(t);\\n          t = token();\\n        }\\n        if (f && (a = f(a, n++)) == null) continue;\\n        rows.push(a);\\n      }\\n      return rows;\\n    };\\n    dsv.format = function(rows) {\\n      if (Array.isArray(rows[0])) return dsv.formatRows(rows);\\n      var fieldSet = new d3_Set(), fields = [];\\n      rows.forEach(function(row) {\\n        for (var field in row) {\\n          if (!fieldSet.has(field)) {\\n            fields.push(fieldSet.add(field));\\n          }\\n        }\\n      });\\n      return [ fields.map(formatValue).join(delimiter) ].concat(rows.map(function(row) {\\n        return fields.map(function(field) {\\n          return formatValue(row[field]);\\n        }).join(delimiter);\\n      })).join(\\\"\\\\n\\\");\\n    };\\n    dsv.formatRows = function(rows) {\\n      return rows.map(formatRow).join(\\\"\\\\n\\\");\\n    };\\n    function formatRow(row) {\\n      return row.map(formatValue).join(delimiter);\\n    }\\n    function formatValue(text) {\\n      return reFormat.test(text) ? '\\\"' + text.replace(/\\\\\\\"/g, '\\\"\\\"') + '\\\"' : text;\\n    }\\n    return dsv;\\n  };\\n  d3.csv = d3.dsv(\\\",\\\", \\\"text/csv\\\");\\n  d3.tsv = d3.dsv(\\\"\\t\\\", \\\"text/tab-separated-values\\\");\\n  var d3_timer_queueHead, d3_timer_queueTail, d3_timer_interval, d3_timer_timeout, d3_timer_frame = this[d3_vendorSymbol(this, \\\"requestAnimationFrame\\\")] || function(callback) {\\n    setTimeout(callback, 17);\\n  };\\n  d3.timer = function() {\\n    d3_timer.apply(this, arguments);\\n  };\\n  function d3_timer(callback, delay, then) {\\n    var n = arguments.length;\\n    if (n < 2) delay = 0;\\n    if (n < 3) then = Date.now();\\n    var time = then + delay, timer = {\\n      c: callback,\\n      t: time,\\n      n: null\\n    };\\n    if (d3_timer_queueTail) d3_timer_queueTail.n = timer; else d3_timer_queueHead = timer;\\n    d3_timer_queueTail = timer;\\n    if (!d3_timer_interval) {\\n      d3_timer_timeout = clearTimeout(d3_timer_timeout);\\n      d3_timer_interval = 1;\\n      d3_timer_frame(d3_timer_step);\\n    }\\n    return timer;\\n  }\\n  function d3_timer_step() {\\n    var now = d3_timer_mark(), delay = d3_timer_sweep() - now;\\n    if (delay > 24) {\\n      if (isFinite(delay)) {\\n        clearTimeout(d3_timer_timeout);\\n        d3_timer_timeout = setTimeout(d3_timer_step, delay);\\n      }\\n      d3_timer_interval = 0;\\n    } else {\\n      d3_timer_interval = 1;\\n      d3_timer_frame(d3_timer_step);\\n    }\\n  }\\n  d3.timer.flush = function() {\\n    d3_timer_mark();\\n    d3_timer_sweep();\\n  };\\n  function d3_timer_mark() {\\n    var now = Date.now(), timer = d3_timer_queueHead;\\n    while (timer) {\\n      if (now >= timer.t && timer.c(now - timer.t)) timer.c = null;\\n      timer = timer.n;\\n    }\\n    return now;\\n  }\\n  function d3_timer_sweep() {\\n    var t0, t1 = d3_timer_queueHead, time = Infinity;\\n    while (t1) {\\n      if (t1.c) {\\n        if (t1.t < time) time = t1.t;\\n        t1 = (t0 = t1).n;\\n      } else {\\n        t1 = t0 ? t0.n = t1.n : d3_timer_queueHead = t1.n;\\n      }\\n    }\\n    d3_timer_queueTail = t0;\\n    return time;\\n  }\\n  function d3_format_precision(x, p) {\\n    return p - (x ? Math.ceil(Math.log(x) / Math.LN10) : 1);\\n  }\\n  d3.round = function(x, n) {\\n    return n ? Math.round(x * (n = Math.pow(10, n))) / n : Math.round(x);\\n  };\\n  var d3_formatPrefixes = [ \\\"y\\\", \\\"z\\\", \\\"a\\\", \\\"f\\\", \\\"p\\\", \\\"n\\\", \\\"µ\\\", \\\"m\\\", \\\"\\\", \\\"k\\\", \\\"M\\\", \\\"G\\\", \\\"T\\\", \\\"P\\\", \\\"E\\\", \\\"Z\\\", \\\"Y\\\" ].map(d3_formatPrefix);\\n  d3.formatPrefix = function(value, precision) {\\n    var i = 0;\\n    if (value = +value) {\\n      if (value < 0) value *= -1;\\n      if (precision) value = d3.round(value, d3_format_precision(value, precision));\\n      i = 1 + Math.floor(1e-12 + Math.log(value) / Math.LN10);\\n      i = Math.max(-24, Math.min(24, Math.floor((i - 1) / 3) * 3));\\n    }\\n    return d3_formatPrefixes[8 + i / 3];\\n  };\\n  function d3_formatPrefix(d, i) {\\n    var k = Math.pow(10, abs(8 - i) * 3);\\n    return {\\n      scale: i > 8 ? function(d) {\\n        return d / k;\\n      } : function(d) {\\n        return d * k;\\n      },\\n      symbol: d\\n    };\\n  }\\n  function d3_locale_numberFormat(locale) {\\n    var locale_decimal = locale.decimal, locale_thousands = locale.thousands, locale_grouping = locale.grouping, locale_currency = locale.currency, formatGroup = locale_grouping && locale_thousands ? function(value, width) {\\n      var i = value.length, t = [], j = 0, g = locale_grouping[0], length = 0;\\n      while (i > 0 && g > 0) {\\n        if (length + g + 1 > width) g = Math.max(1, width - length);\\n        t.push(value.substring(i -= g, i + g));\\n        if ((length += g + 1) > width) break;\\n        g = locale_grouping[j = (j + 1) % locale_grouping.length];\\n      }\\n      return t.reverse().join(locale_thousands);\\n    } : d3_identity;\\n    return function(specifier) {\\n      var match = d3_format_re.exec(specifier), fill = match[1] || \\\" \\\", align = match[2] || \\\">\\\", sign = match[3] || \\\"-\\\", symbol = match[4] || \\\"\\\", zfill = match[5], width = +match[6], comma = match[7], precision = match[8], type = match[9], scale = 1, prefix = \\\"\\\", suffix = \\\"\\\", integer = false, exponent = true;\\n      if (precision) precision = +precision.substring(1);\\n      if (zfill || fill === \\\"0\\\" && align === \\\"=\\\") {\\n        zfill = fill = \\\"0\\\";\\n        align = \\\"=\\\";\\n      }\\n      switch (type) {\\n       case \\\"n\\\":\\n        comma = true;\\n        type = \\\"g\\\";\\n        break;\\n\\n       case \\\"%\\\":\\n        scale = 100;\\n        suffix = \\\"%\\\";\\n        type = \\\"f\\\";\\n        break;\\n\\n       case \\\"p\\\":\\n        scale = 100;\\n        suffix = \\\"%\\\";\\n        type = \\\"r\\\";\\n        break;\\n\\n       case \\\"b\\\":\\n       case \\\"o\\\":\\n       case \\\"x\\\":\\n       case \\\"X\\\":\\n        if (symbol === \\\"#\\\") prefix = \\\"0\\\" + type.toLowerCase();\\n\\n       case \\\"c\\\":\\n        exponent = false;\\n\\n       case \\\"d\\\":\\n        integer = true;\\n        precision = 0;\\n        break;\\n\\n       case \\\"s\\\":\\n        scale = -1;\\n        type = \\\"r\\\";\\n        break;\\n      }\\n      if (symbol === \\\"$\\\") prefix = locale_currency[0], suffix = locale_currency[1];\\n      if (type == \\\"r\\\" && !precision) type = \\\"g\\\";\\n      if (precision != null) {\\n        if (type == \\\"g\\\") precision = Math.max(1, Math.min(21, precision)); else if (type == \\\"e\\\" || type == \\\"f\\\") precision = Math.max(0, Math.min(20, precision));\\n      }\\n      type = d3_format_types.get(type) || d3_format_typeDefault;\\n      var zcomma = zfill && comma;\\n      return function(value) {\\n        var fullSuffix = suffix;\\n        if (integer && value % 1) return \\\"\\\";\\n        var negative = value < 0 || value === 0 && 1 / value < 0 ? (value = -value, \\\"-\\\") : sign === \\\"-\\\" ? \\\"\\\" : sign;\\n        if (scale < 0) {\\n          var unit = d3.formatPrefix(value, precision);\\n          value = unit.scale(value);\\n          fullSuffix = unit.symbol + suffix;\\n        } else {\\n          value *= scale;\\n        }\\n        value = type(value, precision);\\n        var i = value.lastIndexOf(\\\".\\\"), before, after;\\n        if (i < 0) {\\n          var j = exponent ? value.lastIndexOf(\\\"e\\\") : -1;\\n          if (j < 0) before = value, after = \\\"\\\"; else before = value.substring(0, j), after = value.substring(j);\\n        } else {\\n          before = value.substring(0, i);\\n          after = locale_decimal + value.substring(i + 1);\\n        }\\n        if (!zfill && comma) before = formatGroup(before, Infinity);\\n        var length = prefix.length + before.length + after.length + (zcomma ? 0 : negative.length), padding = length < width ? new Array(length = width - length + 1).join(fill) : \\\"\\\";\\n        if (zcomma) before = formatGroup(padding + before, padding.length ? width - after.length : Infinity);\\n        negative += prefix;\\n        value = before + after;\\n        return (align === \\\"<\\\" ? negative + value + padding : align === \\\">\\\" ? padding + negative + value : align === \\\"^\\\" ? padding.substring(0, length >>= 1) + negative + value + padding.substring(length) : negative + (zcomma ? value : padding + value)) + fullSuffix;\\n      };\\n    };\\n  }\\n  var d3_format_re = /(?:([^{])?([<>=^]))?([+\\\\- ])?([$#])?(0)?(\\\\d+)?(,)?(\\\\.-?\\\\d+)?([a-z%])?/i;\\n  var d3_format_types = d3.map({\\n    b: function(x) {\\n      return x.toString(2);\\n    },\\n    c: function(x) {\\n      return String.fromCharCode(x);\\n    },\\n    o: function(x) {\\n      return x.toString(8);\\n    },\\n    x: function(x) {\\n      return x.toString(16);\\n    },\\n    X: function(x) {\\n      return x.toString(16).toUpperCase();\\n    },\\n    g: function(x, p) {\\n      return x.toPrecision(p);\\n    },\\n    e: function(x, p) {\\n      return x.toExponential(p);\\n    },\\n    f: function(x, p) {\\n      return x.toFixed(p);\\n    },\\n    r: function(x, p) {\\n      return (x = d3.round(x, d3_format_precision(x, p))).toFixed(Math.max(0, Math.min(20, d3_format_precision(x * (1 + 1e-15), p))));\\n    }\\n  });\\n  function d3_format_typeDefault(x) {\\n    return x + \\\"\\\";\\n  }\\n  var d3_time = d3.time = {}, d3_date = Date;\\n  function d3_date_utc() {\\n    this._ = new Date(arguments.length > 1 ? Date.UTC.apply(this, arguments) : arguments[0]);\\n  }\\n  d3_date_utc.prototype = {\\n    getDate: function() {\\n      return this._.getUTCDate();\\n    },\\n    getDay: function() {\\n      return this._.getUTCDay();\\n    },\\n    getFullYear: function() {\\n      return this._.getUTCFullYear();\\n    },\\n    getHours: function() {\\n      return this._.getUTCHours();\\n    },\\n    getMilliseconds: function() {\\n      return this._.getUTCMilliseconds();\\n    },\\n    getMinutes: function() {\\n      return this._.getUTCMinutes();\\n    },\\n    getMonth: function() {\\n      return this._.getUTCMonth();\\n    },\\n    getSeconds: function() {\\n      return this._.getUTCSeconds();\\n    },\\n    getTime: function() {\\n      return this._.getTime();\\n    },\\n    getTimezoneOffset: function() {\\n      return 0;\\n    },\\n    valueOf: function() {\\n      return this._.valueOf();\\n    },\\n    setDate: function() {\\n      d3_time_prototype.setUTCDate.apply(this._, arguments);\\n    },\\n    setDay: function() {\\n      d3_time_prototype.setUTCDay.apply(this._, arguments);\\n    },\\n    setFullYear: function() {\\n      d3_time_prototype.setUTCFullYear.apply(this._, arguments);\\n    },\\n    setHours: function() {\\n      d3_time_prototype.setUTCHours.apply(this._, arguments);\\n    },\\n    setMilliseconds: function() {\\n      d3_time_prototype.setUTCMilliseconds.apply(this._, arguments);\\n    },\\n    setMinutes: function() {\\n      d3_time_prototype.setUTCMinutes.apply(this._, arguments);\\n    },\\n    setMonth: function() {\\n      d3_time_prototype.setUTCMonth.apply(this._, arguments);\\n    },\\n    setSeconds: function() {\\n      d3_time_prototype.setUTCSeconds.apply(this._, arguments);\\n    },\\n    setTime: function() {\\n      d3_time_prototype.setTime.apply(this._, arguments);\\n    }\\n  };\\n  var d3_time_prototype = Date.prototype;\\n  function d3_time_interval(local, step, number) {\\n    function round(date) {\\n      var d0 = local(date), d1 = offset(d0, 1);\\n      return date - d0 < d1 - date ? d0 : d1;\\n    }\\n    function ceil(date) {\\n      step(date = local(new d3_date(date - 1)), 1);\\n      return date;\\n    }\\n    function offset(date, k) {\\n      step(date = new d3_date(+date), k);\\n      return date;\\n    }\\n    function range(t0, t1, dt) {\\n      var time = ceil(t0), times = [];\\n      if (dt > 1) {\\n        while (time < t1) {\\n          if (!(number(time) % dt)) times.push(new Date(+time));\\n          step(time, 1);\\n        }\\n      } else {\\n        while (time < t1) times.push(new Date(+time)), step(time, 1);\\n      }\\n      return times;\\n    }\\n    function range_utc(t0, t1, dt) {\\n      try {\\n        d3_date = d3_date_utc;\\n        var utc = new d3_date_utc();\\n        utc._ = t0;\\n        return range(utc, t1, dt);\\n      } finally {\\n        d3_date = Date;\\n      }\\n    }\\n    local.floor = local;\\n    local.round = round;\\n    local.ceil = ceil;\\n    local.offset = offset;\\n    local.range = range;\\n    var utc = local.utc = d3_time_interval_utc(local);\\n    utc.floor = utc;\\n    utc.round = d3_time_interval_utc(round);\\n    utc.ceil = d3_time_interval_utc(ceil);\\n    utc.offset = d3_time_interval_utc(offset);\\n    utc.range = range_utc;\\n    return local;\\n  }\\n  function d3_time_interval_utc(method) {\\n    return function(date, k) {\\n      try {\\n        d3_date = d3_date_utc;\\n        var utc = new d3_date_utc();\\n        utc._ = date;\\n        return method(utc, k)._;\\n      } finally {\\n        d3_date = Date;\\n      }\\n    };\\n  }\\n  d3_time.year = d3_time_interval(function(date) {\\n    date = d3_time.day(date);\\n    date.setMonth(0, 1);\\n    return date;\\n  }, function(date, offset) {\\n    date.setFullYear(date.getFullYear() + offset);\\n  }, function(date) {\\n    return date.getFullYear();\\n  });\\n  d3_time.years = d3_time.year.range;\\n  d3_time.years.utc = d3_time.year.utc.range;\\n  d3_time.day = d3_time_interval(function(date) {\\n    var day = new d3_date(2e3, 0);\\n    day.setFullYear(date.getFullYear(), date.getMonth(), date.getDate());\\n    return day;\\n  }, function(date, offset) {\\n    date.setDate(date.getDate() + offset);\\n  }, function(date) {\\n    return date.getDate() - 1;\\n  });\\n  d3_time.days = d3_time.day.range;\\n  d3_time.days.utc = d3_time.day.utc.range;\\n  d3_time.dayOfYear = function(date) {\\n    var year = d3_time.year(date);\\n    return Math.floor((date - year - (date.getTimezoneOffset() - year.getTimezoneOffset()) * 6e4) / 864e5);\\n  };\\n  [ \\\"sunday\\\", \\\"monday\\\", \\\"tuesday\\\", \\\"wednesday\\\", \\\"thursday\\\", \\\"friday\\\", \\\"saturday\\\" ].forEach(function(day, i) {\\n    i = 7 - i;\\n    var interval = d3_time[day] = d3_time_interval(function(date) {\\n      (date = d3_time.day(date)).setDate(date.getDate() - (date.getDay() + i) % 7);\\n      return date;\\n    }, function(date, offset) {\\n      date.setDate(date.getDate() + Math.floor(offset) * 7);\\n    }, function(date) {\\n      var day = d3_time.year(date).getDay();\\n      return Math.floor((d3_time.dayOfYear(date) + (day + i) % 7) / 7) - (day !== i);\\n    });\\n    d3_time[day + \\\"s\\\"] = interval.range;\\n    d3_time[day + \\\"s\\\"].utc = interval.utc.range;\\n    d3_time[day + \\\"OfYear\\\"] = function(date) {\\n      var day = d3_time.year(date).getDay();\\n      return Math.floor((d3_time.dayOfYear(date) + (day + i) % 7) / 7);\\n    };\\n  });\\n  d3_time.week = d3_time.sunday;\\n  d3_time.weeks = d3_time.sunday.range;\\n  d3_time.weeks.utc = d3_time.sunday.utc.range;\\n  d3_time.weekOfYear = d3_time.sundayOfYear;\\n  function d3_locale_timeFormat(locale) {\\n    var locale_dateTime = locale.dateTime, locale_date = locale.date, locale_time = locale.time, locale_periods = locale.periods, locale_days = locale.days, locale_shortDays = locale.shortDays, locale_months = locale.months, locale_shortMonths = locale.shortMonths;\\n    function d3_time_format(template) {\\n      var n = template.length;\\n      function format(date) {\\n        var string = [], i = -1, j = 0, c, p, f;\\n        while (++i < n) {\\n          if (template.charCodeAt(i) === 37) {\\n            string.push(template.slice(j, i));\\n            if ((p = d3_time_formatPads[c = template.charAt(++i)]) != null) c = template.charAt(++i);\\n            if (f = d3_time_formats[c]) c = f(date, p == null ? c === \\\"e\\\" ? \\\" \\\" : \\\"0\\\" : p);\\n            string.push(c);\\n            j = i + 1;\\n          }\\n        }\\n        string.push(template.slice(j, i));\\n        return string.join(\\\"\\\");\\n      }\\n      format.parse = function(string) {\\n        var d = {\\n          y: 1900,\\n          m: 0,\\n          d: 1,\\n          H: 0,\\n          M: 0,\\n          S: 0,\\n          L: 0,\\n          Z: null\\n        }, i = d3_time_parse(d, template, string, 0);\\n        if (i != string.length) return null;\\n        if (\\\"p\\\" in d) d.H = d.H % 12 + d.p * 12;\\n        var localZ = d.Z != null && d3_date !== d3_date_utc, date = new (localZ ? d3_date_utc : d3_date)();\\n        if (\\\"j\\\" in d) date.setFullYear(d.y, 0, d.j); else if (\\\"W\\\" in d || \\\"U\\\" in d) {\\n          if (!(\\\"w\\\" in d)) d.w = \\\"W\\\" in d ? 1 : 0;\\n          date.setFullYear(d.y, 0, 1);\\n          date.setFullYear(d.y, 0, \\\"W\\\" in d ? (d.w + 6) % 7 + d.W * 7 - (date.getDay() + 5) % 7 : d.w + d.U * 7 - (date.getDay() + 6) % 7);\\n        } else date.setFullYear(d.y, d.m, d.d);\\n        date.setHours(d.H + (d.Z / 100 | 0), d.M + d.Z % 100, d.S, d.L);\\n        return localZ ? date._ : date;\\n      };\\n      format.toString = function() {\\n        return template;\\n      };\\n      return format;\\n    }\\n    function d3_time_parse(date, template, string, j) {\\n      var c, p, t, i = 0, n = template.length, m = string.length;\\n      while (i < n) {\\n        if (j >= m) return -1;\\n        c = template.charCodeAt(i++);\\n        if (c === 37) {\\n          t = template.charAt(i++);\\n          p = d3_time_parsers[t in d3_time_formatPads ? template.charAt(i++) : t];\\n          if (!p || (j = p(date, string, j)) < 0) return -1;\\n        } else if (c != string.charCodeAt(j++)) {\\n          return -1;\\n        }\\n      }\\n      return j;\\n    }\\n    d3_time_format.utc = function(template) {\\n      var local = d3_time_format(template);\\n      function format(date) {\\n        try {\\n          d3_date = d3_date_utc;\\n          var utc = new d3_date();\\n          utc._ = date;\\n          return local(utc);\\n        } finally {\\n          d3_date = Date;\\n        }\\n      }\\n      format.parse = function(string) {\\n        try {\\n          d3_date = d3_date_utc;\\n          var date = local.parse(string);\\n          return date && date._;\\n        } finally {\\n          d3_date = Date;\\n        }\\n      };\\n      format.toString = local.toString;\\n      return format;\\n    };\\n    d3_time_format.multi = d3_time_format.utc.multi = d3_time_formatMulti;\\n    var d3_time_periodLookup = d3.map(), d3_time_dayRe = d3_time_formatRe(locale_days), d3_time_dayLookup = d3_time_formatLookup(locale_days), d3_time_dayAbbrevRe = d3_time_formatRe(locale_shortDays), d3_time_dayAbbrevLookup = d3_time_formatLookup(locale_shortDays), d3_time_monthRe = d3_time_formatRe(locale_months), d3_time_monthLookup = d3_time_formatLookup(locale_months), d3_time_monthAbbrevRe = d3_time_formatRe(locale_shortMonths), d3_time_monthAbbrevLookup = d3_time_formatLookup(locale_shortMonths);\\n    locale_periods.forEach(function(p, i) {\\n      d3_time_periodLookup.set(p.toLowerCase(), i);\\n    });\\n    var d3_time_formats = {\\n      a: function(d) {\\n        return locale_shortDays[d.getDay()];\\n      },\\n      A: function(d) {\\n        return locale_days[d.getDay()];\\n      },\\n      b: function(d) {\\n        return locale_shortMonths[d.getMonth()];\\n      },\\n      B: function(d) {\\n        return locale_months[d.getMonth()];\\n      },\\n      c: d3_time_format(locale_dateTime),\\n      d: function(d, p) {\\n        return d3_time_formatPad(d.getDate(), p, 2);\\n      },\\n      e: function(d, p) {\\n        return d3_time_formatPad(d.getDate(), p, 2);\\n      },\\n      H: function(d, p) {\\n        return d3_time_formatPad(d.getHours(), p, 2);\\n      },\\n      I: function(d, p) {\\n        return d3_time_formatPad(d.getHours() % 12 || 12, p, 2);\\n      },\\n      j: function(d, p) {\\n        return d3_time_formatPad(1 + d3_time.dayOfYear(d), p, 3);\\n      },\\n      L: function(d, p) {\\n        return d3_time_formatPad(d.getMilliseconds(), p, 3);\\n      },\\n      m: function(d, p) {\\n        return d3_time_formatPad(d.getMonth() + 1, p, 2);\\n      },\\n      M: function(d, p) {\\n        return d3_time_formatPad(d.getMinutes(), p, 2);\\n      },\\n      p: function(d) {\\n        return locale_periods[+(d.getHours() >= 12)];\\n      },\\n      S: function(d, p) {\\n        return d3_time_formatPad(d.getSeconds(), p, 2);\\n      },\\n      U: function(d, p) {\\n        return d3_time_formatPad(d3_time.sundayOfYear(d), p, 2);\\n      },\\n      w: function(d) {\\n        return d.getDay();\\n      },\\n      W: function(d, p) {\\n        return d3_time_formatPad(d3_time.mondayOfYear(d), p, 2);\\n      },\\n      x: d3_time_format(locale_date),\\n      X: d3_time_format(locale_time),\\n      y: function(d, p) {\\n        return d3_time_formatPad(d.getFullYear() % 100, p, 2);\\n      },\\n      Y: function(d, p) {\\n        return d3_time_formatPad(d.getFullYear() % 1e4, p, 4);\\n      },\\n      Z: d3_time_zone,\\n      \\\"%\\\": function() {\\n        return \\\"%\\\";\\n      }\\n    };\\n    var d3_time_parsers = {\\n      a: d3_time_parseWeekdayAbbrev,\\n      A: d3_time_parseWeekday,\\n      b: d3_time_parseMonthAbbrev,\\n      B: d3_time_parseMonth,\\n      c: d3_time_parseLocaleFull,\\n      d: d3_time_parseDay,\\n      e: d3_time_parseDay,\\n      H: d3_time_parseHour24,\\n      I: d3_time_parseHour24,\\n      j: d3_time_parseDayOfYear,\\n      L: d3_time_parseMilliseconds,\\n      m: d3_time_parseMonthNumber,\\n      M: d3_time_parseMinutes,\\n      p: d3_time_parseAmPm,\\n      S: d3_time_parseSeconds,\\n      U: d3_time_parseWeekNumberSunday,\\n      w: d3_time_parseWeekdayNumber,\\n      W: d3_time_parseWeekNumberMonday,\\n      x: d3_time_parseLocaleDate,\\n      X: d3_time_parseLocaleTime,\\n      y: d3_time_parseYear,\\n      Y: d3_time_parseFullYear,\\n      Z: d3_time_parseZone,\\n      \\\"%\\\": d3_time_parseLiteralPercent\\n    };\\n    function d3_time_parseWeekdayAbbrev(date, string, i) {\\n      d3_time_dayAbbrevRe.lastIndex = 0;\\n      var n = d3_time_dayAbbrevRe.exec(string.slice(i));\\n      return n ? (date.w = d3_time_dayAbbrevLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;\\n    }\\n    function d3_time_parseWeekday(date, string, i) {\\n      d3_time_dayRe.lastIndex = 0;\\n      var n = d3_time_dayRe.exec(string.slice(i));\\n      return n ? (date.w = d3_time_dayLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;\\n    }\\n    function d3_time_parseMonthAbbrev(date, string, i) {\\n      d3_time_monthAbbrevRe.lastIndex = 0;\\n      var n = d3_time_monthAbbrevRe.exec(string.slice(i));\\n      return n ? (date.m = d3_time_monthAbbrevLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;\\n    }\\n    function d3_time_parseMonth(date, string, i) {\\n      d3_time_monthRe.lastIndex = 0;\\n      var n = d3_time_monthRe.exec(string.slice(i));\\n      return n ? (date.m = d3_time_monthLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;\\n    }\\n    function d3_time_parseLocaleFull(date, string, i) {\\n      return d3_time_parse(date, d3_time_formats.c.toString(), string, i);\\n    }\\n    function d3_time_parseLocaleDate(date, string, i) {\\n      return d3_time_parse(date, d3_time_formats.x.toString(), string, i);\\n    }\\n    function d3_time_parseLocaleTime(date, string, i) {\\n      return d3_time_parse(date, d3_time_formats.X.toString(), string, i);\\n    }\\n    function d3_time_parseAmPm(date, string, i) {\\n      var n = d3_time_periodLookup.get(string.slice(i, i += 2).toLowerCase());\\n      return n == null ? -1 : (date.p = n, i);\\n    }\\n    return d3_time_format;\\n  }\\n  var d3_time_formatPads = {\\n    \\\"-\\\": \\\"\\\",\\n    _: \\\" \\\",\\n    \\\"0\\\": \\\"0\\\"\\n  }, d3_time_numberRe = /^\\\\s*\\\\d+/, d3_time_percentRe = /^%/;\\n  function d3_time_formatPad(value, fill, width) {\\n    var sign = value < 0 ? \\\"-\\\" : \\\"\\\", string = (sign ? -value : value) + \\\"\\\", length = string.length;\\n    return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string);\\n  }\\n  function d3_time_formatRe(names) {\\n    return new RegExp(\\\"^(?:\\\" + names.map(d3.requote).join(\\\"|\\\") + \\\")\\\", \\\"i\\\");\\n  }\\n  function d3_time_formatLookup(names) {\\n    var map = new d3_Map(), i = -1, n = names.length;\\n    while (++i < n) map.set(names[i].toLowerCase(), i);\\n    return map;\\n  }\\n  function d3_time_parseWeekdayNumber(date, string, i) {\\n    d3_time_numberRe.lastIndex = 0;\\n    var n = d3_time_numberRe.exec(string.slice(i, i + 1));\\n    return n ? (date.w = +n[0], i + n[0].length) : -1;\\n  }\\n  function d3_time_parseWeekNumberSunday(date, string, i) {\\n    d3_time_numberRe.lastIndex = 0;\\n    var n = d3_time_numberRe.exec(string.slice(i));\\n    return n ? (date.U = +n[0], i + n[0].length) : -1;\\n  }\\n  function d3_time_parseWeekNumberMonday(date, string, i) {\\n    d3_time_numberRe.lastIndex = 0;\\n    var n = d3_time_numberRe.exec(string.slice(i));\\n    return n ? (date.W = +n[0], i + n[0].length) : -1;\\n  }\\n  function d3_time_parseFullYear(date, string, i) {\\n    d3_time_numberRe.lastIndex = 0;\\n    var n = d3_time_numberRe.exec(string.slice(i, i + 4));\\n    return n ? (date.y = +n[0], i + n[0].length) : -1;\\n  }\\n  function d3_time_parseYear(date, string, i) {\\n    d3_time_numberRe.lastIndex = 0;\\n    var n = d3_time_numberRe.exec(string.slice(i, i + 2));\\n    return n ? (date.y = d3_time_expandYear(+n[0]), i + n[0].length) : -1;\\n  }\\n  function d3_time_parseZone(date, string, i) {\\n    return /^[+-]\\\\d{4}$/.test(string = string.slice(i, i + 5)) ? (date.Z = -string, \\n    i + 5) : -1;\\n  }\\n  function d3_time_expandYear(d) {\\n    return d + (d > 68 ? 1900 : 2e3);\\n  }\\n  function d3_time_parseMonthNumber(date, string, i) {\\n    d3_time_numberRe.lastIndex = 0;\\n    var n = d3_time_numberRe.exec(string.slice(i, i + 2));\\n    return n ? (date.m = n[0] - 1, i + n[0].length) : -1;\\n  }\\n  function d3_time_parseDay(date, string, i) {\\n    d3_time_numberRe.lastIndex = 0;\\n    var n = d3_time_numberRe.exec(string.slice(i, i + 2));\\n    return n ? (date.d = +n[0], i + n[0].length) : -1;\\n  }\\n  function d3_time_parseDayOfYear(date, string, i) {\\n    d3_time_numberRe.lastIndex = 0;\\n    var n = d3_time_numberRe.exec(string.slice(i, i + 3));\\n    return n ? (date.j = +n[0], i + n[0].length) : -1;\\n  }\\n  function d3_time_parseHour24(date, string, i) {\\n    d3_time_numberRe.lastIndex = 0;\\n    var n = d3_time_numberRe.exec(string.slice(i, i + 2));\\n    return n ? (date.H = +n[0], i + n[0].length) : -1;\\n  }\\n  function d3_time_parseMinutes(date, string, i) {\\n    d3_time_numberRe.lastIndex = 0;\\n    var n = d3_time_numberRe.exec(string.slice(i, i + 2));\\n    return n ? (date.M = +n[0], i + n[0].length) : -1;\\n  }\\n  function d3_time_parseSeconds(date, string, i) {\\n    d3_time_numberRe.lastIndex = 0;\\n    var n = d3_time_numberRe.exec(string.slice(i, i + 2));\\n    return n ? (date.S = +n[0], i + n[0].length) : -1;\\n  }\\n  function d3_time_parseMilliseconds(date, string, i) {\\n    d3_time_numberRe.lastIndex = 0;\\n    var n = d3_time_numberRe.exec(string.slice(i, i + 3));\\n    return n ? (date.L = +n[0], i + n[0].length) : -1;\\n  }\\n  function d3_time_zone(d) {\\n    var z = d.getTimezoneOffset(), zs = z > 0 ? \\\"-\\\" : \\\"+\\\", zh = abs(z) / 60 | 0, zm = abs(z) % 60;\\n    return zs + d3_time_formatPad(zh, \\\"0\\\", 2) + d3_time_formatPad(zm, \\\"0\\\", 2);\\n  }\\n  function d3_time_parseLiteralPercent(date, string, i) {\\n    d3_time_percentRe.lastIndex = 0;\\n    var n = d3_time_percentRe.exec(string.slice(i, i + 1));\\n    return n ? i + n[0].length : -1;\\n  }\\n  function d3_time_formatMulti(formats) {\\n    var n = formats.length, i = -1;\\n    while (++i < n) formats[i][0] = this(formats[i][0]);\\n    return function(date) {\\n      var i = 0, f = formats[i];\\n      while (!f[1](date)) f = formats[++i];\\n      return f[0](date);\\n    };\\n  }\\n  d3.locale = function(locale) {\\n    return {\\n      numberFormat: d3_locale_numberFormat(locale),\\n      timeFormat: d3_locale_timeFormat(locale)\\n    };\\n  };\\n  var d3_locale_enUS = d3.locale({\\n    decimal: \\\".\\\",\\n    thousands: \\\",\\\",\\n    grouping: [ 3 ],\\n    currency: [ \\\"$\\\", \\\"\\\" ],\\n    dateTime: \\\"%a %b %e %X %Y\\\",\\n    date: \\\"%m/%d/%Y\\\",\\n    time: \\\"%H:%M:%S\\\",\\n    periods: [ \\\"AM\\\", \\\"PM\\\" ],\\n    days: [ \\\"Sunday\\\", \\\"Monday\\\", \\\"Tuesday\\\", \\\"Wednesday\\\", \\\"Thursday\\\", \\\"Friday\\\", \\\"Saturday\\\" ],\\n    shortDays: [ \\\"Sun\\\", \\\"Mon\\\", \\\"Tue\\\", \\\"Wed\\\", \\\"Thu\\\", \\\"Fri\\\", \\\"Sat\\\" ],\\n    months: [ \\\"January\\\", \\\"February\\\", \\\"March\\\", \\\"April\\\", \\\"May\\\", \\\"June\\\", \\\"July\\\", \\\"August\\\", \\\"September\\\", \\\"October\\\", \\\"November\\\", \\\"December\\\" ],\\n    shortMonths: [ \\\"Jan\\\", \\\"Feb\\\", \\\"Mar\\\", \\\"Apr\\\", \\\"May\\\", \\\"Jun\\\", \\\"Jul\\\", \\\"Aug\\\", \\\"Sep\\\", \\\"Oct\\\", \\\"Nov\\\", \\\"Dec\\\" ]\\n  });\\n  d3.format = d3_locale_enUS.numberFormat;\\n  d3.geo = {};\\n  function d3_adder() {}\\n  d3_adder.prototype = {\\n    s: 0,\\n    t: 0,\\n    add: function(y) {\\n      d3_adderSum(y, this.t, d3_adderTemp);\\n      d3_adderSum(d3_adderTemp.s, this.s, this);\\n      if (this.s) this.t += d3_adderTemp.t; else this.s = d3_adderTemp.t;\\n    },\\n    reset: function() {\\n      this.s = this.t = 0;\\n    },\\n    valueOf: function() {\\n      return this.s;\\n    }\\n  };\\n  var d3_adderTemp = new d3_adder();\\n  function d3_adderSum(a, b, o) {\\n    var x = o.s = a + b, bv = x - a, av = x - bv;\\n    o.t = a - av + (b - bv);\\n  }\\n  d3.geo.stream = function(object, listener) {\\n    if (object && d3_geo_streamObjectType.hasOwnProperty(object.type)) {\\n      d3_geo_streamObjectType[object.type](object, listener);\\n    } else {\\n      d3_geo_streamGeometry(object, listener);\\n    }\\n  };\\n  function d3_geo_streamGeometry(geometry, listener) {\\n    if (geometry && d3_geo_streamGeometryType.hasOwnProperty(geometry.type)) {\\n      d3_geo_streamGeometryType[geometry.type](geometry, listener);\\n    }\\n  }\\n  var d3_geo_streamObjectType = {\\n    Feature: function(feature, listener) {\\n      d3_geo_streamGeometry(feature.geometry, listener);\\n    },\\n    FeatureCollection: function(object, listener) {\\n      var features = object.features, i = -1, n = features.length;\\n      while (++i < n) d3_geo_streamGeometry(features[i].geometry, listener);\\n    }\\n  };\\n  var d3_geo_streamGeometryType = {\\n    Sphere: function(object, listener) {\\n      listener.sphere();\\n    },\\n    Point: function(object, listener) {\\n      object = object.coordinates;\\n      listener.point(object[0], object[1], object[2]);\\n    },\\n    MultiPoint: function(object, listener) {\\n      var coordinates = object.coordinates, i = -1, n = coordinates.length;\\n      while (++i < n) object = coordinates[i], listener.point(object[0], object[1], object[2]);\\n    },\\n    LineString: function(object, listener) {\\n      d3_geo_streamLine(object.coordinates, listener, 0);\\n    },\\n    MultiLineString: function(object, listener) {\\n      var coordinates = object.coordinates, i = -1, n = coordinates.length;\\n      while (++i < n) d3_geo_streamLine(coordinates[i], listener, 0);\\n    },\\n    Polygon: function(object, listener) {\\n      d3_geo_streamPolygon(object.coordinates, listener);\\n    },\\n    MultiPolygon: function(object, listener) {\\n      var coordinates = object.coordinates, i = -1, n = coordinates.length;\\n      while (++i < n) d3_geo_streamPolygon(coordinates[i], listener);\\n    },\\n    GeometryCollection: function(object, listener) {\\n      var geometries = object.geometries, i = -1, n = geometries.length;\\n      while (++i < n) d3_geo_streamGeometry(geometries[i], listener);\\n    }\\n  };\\n  function d3_geo_streamLine(coordinates, listener, closed) {\\n    var i = -1, n = coordinates.length - closed, coordinate;\\n    listener.lineStart();\\n    while (++i < n) coordinate = coordinates[i], listener.point(coordinate[0], coordinate[1], coordinate[2]);\\n    listener.lineEnd();\\n  }\\n  function d3_geo_streamPolygon(coordinates, listener) {\\n    var i = -1, n = coordinates.length;\\n    listener.polygonStart();\\n    while (++i < n) d3_geo_streamLine(coordinates[i], listener, 1);\\n    listener.polygonEnd();\\n  }\\n  d3.geo.area = function(object) {\\n    d3_geo_areaSum = 0;\\n    d3.geo.stream(object, d3_geo_area);\\n    return d3_geo_areaSum;\\n  };\\n  var d3_geo_areaSum, d3_geo_areaRingSum = new d3_adder();\\n  var d3_geo_area = {\\n    sphere: function() {\\n      d3_geo_areaSum += 4 * π;\\n    },\\n    point: d3_noop,\\n    lineStart: d3_noop,\\n    lineEnd: d3_noop,\\n    polygonStart: function() {\\n      d3_geo_areaRingSum.reset();\\n      d3_geo_area.lineStart = d3_geo_areaRingStart;\\n    },\\n    polygonEnd: function() {\\n      var area = 2 * d3_geo_areaRingSum;\\n      d3_geo_areaSum += area < 0 ? 4 * π + area : area;\\n      d3_geo_area.lineStart = d3_geo_area.lineEnd = d3_geo_area.point = d3_noop;\\n    }\\n  };\\n  function d3_geo_areaRingStart() {\\n    var λ00, φ00, λ0, cosφ0, sinφ0;\\n    d3_geo_area.point = function(λ, φ) {\\n      d3_geo_area.point = nextPoint;\\n      λ0 = (λ00 = λ) * d3_radians, cosφ0 = Math.cos(φ = (φ00 = φ) * d3_radians / 2 + π / 4), \\n      sinφ0 = Math.sin(φ);\\n    };\\n    function nextPoint(λ, φ) {\\n      λ *= d3_radians;\\n      φ = φ * d3_radians / 2 + π / 4;\\n      var dλ = λ - λ0, sdλ = dλ >= 0 ? 1 : -1, adλ = sdλ * dλ, cosφ = Math.cos(φ), sinφ = Math.sin(φ), k = sinφ0 * sinφ, u = cosφ0 * cosφ + k * Math.cos(adλ), v = k * sdλ * Math.sin(adλ);\\n      d3_geo_areaRingSum.add(Math.atan2(v, u));\\n      λ0 = λ, cosφ0 = cosφ, sinφ0 = sinφ;\\n    }\\n    d3_geo_area.lineEnd = function() {\\n      nextPoint(λ00, φ00);\\n    };\\n  }\\n  function d3_geo_cartesian(spherical) {\\n    var λ = spherical[0], φ = spherical[1], cosφ = Math.cos(φ);\\n    return [ cosφ * Math.cos(λ), cosφ * Math.sin(λ), Math.sin(φ) ];\\n  }\\n  function d3_geo_cartesianDot(a, b) {\\n    return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];\\n  }\\n  function d3_geo_cartesianCross(a, b) {\\n    return [ a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0] ];\\n  }\\n  function d3_geo_cartesianAdd(a, b) {\\n    a[0] += b[0];\\n    a[1] += b[1];\\n    a[2] += b[2];\\n  }\\n  function d3_geo_cartesianScale(vector, k) {\\n    return [ vector[0] * k, vector[1] * k, vector[2] * k ];\\n  }\\n  function d3_geo_cartesianNormalize(d) {\\n    var l = Math.sqrt(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]);\\n    d[0] /= l;\\n    d[1] /= l;\\n    d[2] /= l;\\n  }\\n  function d3_geo_spherical(cartesian) {\\n    return [ Math.atan2(cartesian[1], cartesian[0]), d3_asin(cartesian[2]) ];\\n  }\\n  function d3_geo_sphericalEqual(a, b) {\\n    return abs(a[0] - b[0]) < ε && abs(a[1] - b[1]) < ε;\\n  }\\n  d3.geo.bounds = function() {\\n    var λ0, φ0, λ1, φ1, λ_, λ__, φ__, p0, dλSum, ranges, range;\\n    var bound = {\\n      point: point,\\n      lineStart: lineStart,\\n      lineEnd: lineEnd,\\n      polygonStart: function() {\\n        bound.point = ringPoint;\\n        bound.lineStart = ringStart;\\n        bound.lineEnd = ringEnd;\\n        dλSum = 0;\\n        d3_geo_area.polygonStart();\\n      },\\n      polygonEnd: function() {\\n        d3_geo_area.polygonEnd();\\n        bound.point = point;\\n        bound.lineStart = lineStart;\\n        bound.lineEnd = lineEnd;\\n        if (d3_geo_areaRingSum < 0) λ0 = -(λ1 = 180), φ0 = -(φ1 = 90); else if (dλSum > ε) φ1 = 90; else if (dλSum < -ε) φ0 = -90;\\n        range[0] = λ0, range[1] = λ1;\\n      }\\n    };\\n    function point(λ, φ) {\\n      ranges.push(range = [ λ0 = λ, λ1 = λ ]);\\n      if (φ < φ0) φ0 = φ;\\n      if (φ > φ1) φ1 = φ;\\n    }\\n    function linePoint(λ, φ) {\\n      var p = d3_geo_cartesian([ λ * d3_radians, φ * d3_radians ]);\\n      if (p0) {\\n        var normal = d3_geo_cartesianCross(p0, p), equatorial = [ normal[1], -normal[0], 0 ], inflection = d3_geo_cartesianCross(equatorial, normal);\\n        d3_geo_cartesianNormalize(inflection);\\n        inflection = d3_geo_spherical(inflection);\\n        var dλ = λ - λ_, s = dλ > 0 ? 1 : -1, λi = inflection[0] * d3_degrees * s, antimeridian = abs(dλ) > 180;\\n        if (antimeridian ^ (s * λ_ < λi && λi < s * λ)) {\\n          var φi = inflection[1] * d3_degrees;\\n          if (φi > φ1) φ1 = φi;\\n        } else if (λi = (λi + 360) % 360 - 180, antimeridian ^ (s * λ_ < λi && λi < s * λ)) {\\n          var φi = -inflection[1] * d3_degrees;\\n          if (φi < φ0) φ0 = φi;\\n        } else {\\n          if (φ < φ0) φ0 = φ;\\n          if (φ > φ1) φ1 = φ;\\n        }\\n        if (antimeridian) {\\n          if (λ < λ_) {\\n            if (angle(λ0, λ) > angle(λ0, λ1)) λ1 = λ;\\n          } else {\\n            if (angle(λ, λ1) > angle(λ0, λ1)) λ0 = λ;\\n          }\\n        } else {\\n          if (λ1 >= λ0) {\\n            if (λ < λ0) λ0 = λ;\\n            if (λ > λ1) λ1 = λ;\\n          } else {\\n            if (λ > λ_) {\\n              if (angle(λ0, λ) > angle(λ0, λ1)) λ1 = λ;\\n            } else {\\n              if (angle(λ, λ1) > angle(λ0, λ1)) λ0 = λ;\\n            }\\n          }\\n        }\\n      } else {\\n        point(λ, φ);\\n      }\\n      p0 = p, λ_ = λ;\\n    }\\n    function lineStart() {\\n      bound.point = linePoint;\\n    }\\n    function lineEnd() {\\n      range[0] = λ0, range[1] = λ1;\\n      bound.point = point;\\n      p0 = null;\\n    }\\n    function ringPoint(λ, φ) {\\n      if (p0) {\\n        var dλ = λ - λ_;\\n        dλSum += abs(dλ) > 180 ? dλ + (dλ > 0 ? 360 : -360) : dλ;\\n      } else λ__ = λ, φ__ = φ;\\n      d3_geo_area.point(λ, φ);\\n      linePoint(λ, φ);\\n    }\\n    function ringStart() {\\n      d3_geo_area.lineStart();\\n    }\\n    function ringEnd() {\\n      ringPoint(λ__, φ__);\\n      d3_geo_area.lineEnd();\\n      if (abs(dλSum) > ε) λ0 = -(λ1 = 180);\\n      range[0] = λ0, range[1] = λ1;\\n      p0 = null;\\n    }\\n    function angle(λ0, λ1) {\\n      return (λ1 -= λ0) < 0 ? λ1 + 360 : λ1;\\n    }\\n    function compareRanges(a, b) {\\n      return a[0] - b[0];\\n    }\\n    function withinRange(x, range) {\\n      return range[0] <= range[1] ? range[0] <= x && x <= range[1] : x < range[0] || range[1] < x;\\n    }\\n    return function(feature) {\\n      φ1 = λ1 = -(λ0 = φ0 = Infinity);\\n      ranges = [];\\n      d3.geo.stream(feature, bound);\\n      var n = ranges.length;\\n      if (n) {\\n        ranges.sort(compareRanges);\\n        for (var i = 1, a = ranges[0], b, merged = [ a ]; i < n; ++i) {\\n          b = ranges[i];\\n          if (withinRange(b[0], a) || withinRange(b[1], a)) {\\n            if (angle(a[0], b[1]) > angle(a[0], a[1])) a[1] = b[1];\\n            if (angle(b[0], a[1]) > angle(a[0], a[1])) a[0] = b[0];\\n          } else {\\n            merged.push(a = b);\\n          }\\n        }\\n        var best = -Infinity, dλ;\\n        for (var n = merged.length - 1, i = 0, a = merged[n], b; i <= n; a = b, ++i) {\\n          b = merged[i];\\n          if ((dλ = angle(a[1], b[0])) > best) best = dλ, λ0 = b[0], λ1 = a[1];\\n        }\\n      }\\n      ranges = range = null;\\n      return λ0 === Infinity || φ0 === Infinity ? [ [ NaN, NaN ], [ NaN, NaN ] ] : [ [ λ0, φ0 ], [ λ1, φ1 ] ];\\n    };\\n  }();\\n  d3.geo.centroid = function(object) {\\n    d3_geo_centroidW0 = d3_geo_centroidW1 = d3_geo_centroidX0 = d3_geo_centroidY0 = d3_geo_centroidZ0 = d3_geo_centroidX1 = d3_geo_centroidY1 = d3_geo_centroidZ1 = d3_geo_centroidX2 = d3_geo_centroidY2 = d3_geo_centroidZ2 = 0;\\n    d3.geo.stream(object, d3_geo_centroid);\\n    var x = d3_geo_centroidX2, y = d3_geo_centroidY2, z = d3_geo_centroidZ2, m = x * x + y * y + z * z;\\n    if (m < ε2) {\\n      x = d3_geo_centroidX1, y = d3_geo_centroidY1, z = d3_geo_centroidZ1;\\n      if (d3_geo_centroidW1 < ε) x = d3_geo_centroidX0, y = d3_geo_centroidY0, z = d3_geo_centroidZ0;\\n      m = x * x + y * y + z * z;\\n      if (m < ε2) return [ NaN, NaN ];\\n    }\\n    return [ Math.atan2(y, x) * d3_degrees, d3_asin(z / Math.sqrt(m)) * d3_degrees ];\\n  };\\n  var d3_geo_centroidW0, d3_geo_centroidW1, d3_geo_centroidX0, d3_geo_centroidY0, d3_geo_centroidZ0, d3_geo_centroidX1, d3_geo_centroidY1, d3_geo_centroidZ1, d3_geo_centroidX2, d3_geo_centroidY2, d3_geo_centroidZ2;\\n  var d3_geo_centroid = {\\n    sphere: d3_noop,\\n    point: d3_geo_centroidPoint,\\n    lineStart: d3_geo_centroidLineStart,\\n    lineEnd: d3_geo_centroidLineEnd,\\n    polygonStart: function() {\\n      d3_geo_centroid.lineStart = d3_geo_centroidRingStart;\\n    },\\n    polygonEnd: function() {\\n      d3_geo_centroid.lineStart = d3_geo_centroidLineStart;\\n    }\\n  };\\n  function d3_geo_centroidPoint(λ, φ) {\\n    λ *= d3_radians;\\n    var cosφ = Math.cos(φ *= d3_radians);\\n    d3_geo_centroidPointXYZ(cosφ * Math.cos(λ), cosφ * Math.sin(λ), Math.sin(φ));\\n  }\\n  function d3_geo_centroidPointXYZ(x, y, z) {\\n    ++d3_geo_centroidW0;\\n    d3_geo_centroidX0 += (x - d3_geo_centroidX0) / d3_geo_centroidW0;\\n    d3_geo_centroidY0 += (y - d3_geo_centroidY0) / d3_geo_centroidW0;\\n    d3_geo_centroidZ0 += (z - d3_geo_centroidZ0) / d3_geo_centroidW0;\\n  }\\n  function d3_geo_centroidLineStart() {\\n    var x0, y0, z0;\\n    d3_geo_centroid.point = function(λ, φ) {\\n      λ *= d3_radians;\\n      var cosφ = Math.cos(φ *= d3_radians);\\n      x0 = cosφ * Math.cos(λ);\\n      y0 = cosφ * Math.sin(λ);\\n      z0 = Math.sin(φ);\\n      d3_geo_centroid.point = nextPoint;\\n      d3_geo_centroidPointXYZ(x0, y0, z0);\\n    };\\n    function nextPoint(λ, φ) {\\n      λ *= d3_radians;\\n      var cosφ = Math.cos(φ *= d3_radians), x = cosφ * Math.cos(λ), y = cosφ * Math.sin(λ), z = Math.sin(φ), w = Math.atan2(Math.sqrt((w = y0 * z - z0 * y) * w + (w = z0 * x - x0 * z) * w + (w = x0 * y - y0 * x) * w), x0 * x + y0 * y + z0 * z);\\n      d3_geo_centroidW1 += w;\\n      d3_geo_centroidX1 += w * (x0 + (x0 = x));\\n      d3_geo_centroidY1 += w * (y0 + (y0 = y));\\n      d3_geo_centroidZ1 += w * (z0 + (z0 = z));\\n      d3_geo_centroidPointXYZ(x0, y0, z0);\\n    }\\n  }\\n  function d3_geo_centroidLineEnd() {\\n    d3_geo_centroid.point = d3_geo_centroidPoint;\\n  }\\n  function d3_geo_centroidRingStart() {\\n    var λ00, φ00, x0, y0, z0;\\n    d3_geo_centroid.point = function(λ, φ) {\\n      λ00 = λ, φ00 = φ;\\n      d3_geo_centroid.point = nextPoint;\\n      λ *= d3_radians;\\n      var cosφ = Math.cos(φ *= d3_radians);\\n      x0 = cosφ * Math.cos(λ);\\n      y0 = cosφ * Math.sin(λ);\\n      z0 = Math.sin(φ);\\n      d3_geo_centroidPointXYZ(x0, y0, z0);\\n    };\\n    d3_geo_centroid.lineEnd = function() {\\n      nextPoint(λ00, φ00);\\n      d3_geo_centroid.lineEnd = d3_geo_centroidLineEnd;\\n      d3_geo_centroid.point = d3_geo_centroidPoint;\\n    };\\n    function nextPoint(λ, φ) {\\n      λ *= d3_radians;\\n      var cosφ = Math.cos(φ *= d3_radians), x = cosφ * Math.cos(λ), y = cosφ * Math.sin(λ), z = Math.sin(φ), cx = y0 * z - z0 * y, cy = z0 * x - x0 * z, cz = x0 * y - y0 * x, m = Math.sqrt(cx * cx + cy * cy + cz * cz), u = x0 * x + y0 * y + z0 * z, v = m && -d3_acos(u) / m, w = Math.atan2(m, u);\\n      d3_geo_centroidX2 += v * cx;\\n      d3_geo_centroidY2 += v * cy;\\n      d3_geo_centroidZ2 += v * cz;\\n      d3_geo_centroidW1 += w;\\n      d3_geo_centroidX1 += w * (x0 + (x0 = x));\\n      d3_geo_centroidY1 += w * (y0 + (y0 = y));\\n      d3_geo_centroidZ1 += w * (z0 + (z0 = z));\\n      d3_geo_centroidPointXYZ(x0, y0, z0);\\n    }\\n  }\\n  function d3_geo_compose(a, b) {\\n    function compose(x, y) {\\n      return x = a(x, y), b(x[0], x[1]);\\n    }\\n    if (a.invert && b.invert) compose.invert = function(x, y) {\\n      return x = b.invert(x, y), x && a.invert(x[0], x[1]);\\n    };\\n    return compose;\\n  }\\n  function d3_true() {\\n    return true;\\n  }\\n  function d3_geo_clipPolygon(segments, compare, clipStartInside, interpolate, listener) {\\n    var subject = [], clip = [];\\n    segments.forEach(function(segment) {\\n      if ((n = segment.length - 1) <= 0) return;\\n      var n, p0 = segment[0], p1 = segment[n];\\n      if (d3_geo_sphericalEqual(p0, p1)) {\\n        listener.lineStart();\\n        for (var i = 0; i < n; ++i) listener.point((p0 = segment[i])[0], p0[1]);\\n        listener.lineEnd();\\n        return;\\n      }\\n      var a = new d3_geo_clipPolygonIntersection(p0, segment, null, true), b = new d3_geo_clipPolygonIntersection(p0, null, a, false);\\n      a.o = b;\\n      subject.push(a);\\n      clip.push(b);\\n      a = new d3_geo_clipPolygonIntersection(p1, segment, null, false);\\n      b = new d3_geo_clipPolygonIntersection(p1, null, a, true);\\n      a.o = b;\\n      subject.push(a);\\n      clip.push(b);\\n    });\\n    clip.sort(compare);\\n    d3_geo_clipPolygonLinkCircular(subject);\\n    d3_geo_clipPolygonLinkCircular(clip);\\n    if (!subject.length) return;\\n    for (var i = 0, entry = clipStartInside, n = clip.length; i < n; ++i) {\\n      clip[i].e = entry = !entry;\\n    }\\n    var start = subject[0], points, point;\\n    while (1) {\\n      var current = start, isSubject = true;\\n      while (current.v) if ((current = current.n) === start) return;\\n      points = current.z;\\n      listener.lineStart();\\n      do {\\n        current.v = current.o.v = true;\\n        if (current.e) {\\n          if (isSubject) {\\n            for (var i = 0, n = points.length; i < n; ++i) listener.point((point = points[i])[0], point[1]);\\n          } else {\\n            interpolate(current.x, current.n.x, 1, listener);\\n          }\\n          current = current.n;\\n        } else {\\n          if (isSubject) {\\n            points = current.p.z;\\n            for (var i = points.length - 1; i >= 0; --i) listener.point((point = points[i])[0], point[1]);\\n          } else {\\n            interpolate(current.x, current.p.x, -1, listener);\\n          }\\n          current = current.p;\\n        }\\n        current = current.o;\\n        points = current.z;\\n        isSubject = !isSubject;\\n      } while (!current.v);\\n      listener.lineEnd();\\n    }\\n  }\\n  function d3_geo_clipPolygonLinkCircular(array) {\\n    if (!(n = array.length)) return;\\n    var n, i = 0, a = array[0], b;\\n    while (++i < n) {\\n      a.n = b = array[i];\\n      b.p = a;\\n      a = b;\\n    }\\n    a.n = b = array[0];\\n    b.p = a;\\n  }\\n  function d3_geo_clipPolygonIntersection(point, points, other, entry) {\\n    this.x = point;\\n    this.z = points;\\n    this.o = other;\\n    this.e = entry;\\n    this.v = false;\\n    this.n = this.p = null;\\n  }\\n  function d3_geo_clip(pointVisible, clipLine, interpolate, clipStart) {\\n    return function(rotate, listener) {\\n      var line = clipLine(listener), rotatedClipStart = rotate.invert(clipStart[0], clipStart[1]);\\n      var clip = {\\n        point: point,\\n        lineStart: lineStart,\\n        lineEnd: lineEnd,\\n        polygonStart: function() {\\n          clip.point = pointRing;\\n          clip.lineStart = ringStart;\\n          clip.lineEnd = ringEnd;\\n          segments = [];\\n          polygon = [];\\n        },\\n        polygonEnd: function() {\\n          clip.point = point;\\n          clip.lineStart = lineStart;\\n          clip.lineEnd = lineEnd;\\n          segments = d3.merge(segments);\\n          var clipStartInside = d3_geo_pointInPolygon(rotatedClipStart, polygon);\\n          if (segments.length) {\\n            if (!polygonStarted) listener.polygonStart(), polygonStarted = true;\\n            d3_geo_clipPolygon(segments, d3_geo_clipSort, clipStartInside, interpolate, listener);\\n          } else if (clipStartInside) {\\n            if (!polygonStarted) listener.polygonStart(), polygonStarted = true;\\n            listener.lineStart();\\n            interpolate(null, null, 1, listener);\\n            listener.lineEnd();\\n          }\\n          if (polygonStarted) listener.polygonEnd(), polygonStarted = false;\\n          segments = polygon = null;\\n        },\\n        sphere: function() {\\n          listener.polygonStart();\\n          listener.lineStart();\\n          interpolate(null, null, 1, listener);\\n          listener.lineEnd();\\n          listener.polygonEnd();\\n        }\\n      };\\n      function point(λ, φ) {\\n        var point = rotate(λ, φ);\\n        if (pointVisible(λ = point[0], φ = point[1])) listener.point(λ, φ);\\n      }\\n      function pointLine(λ, φ) {\\n        var point = rotate(λ, φ);\\n        line.point(point[0], point[1]);\\n      }\\n      function lineStart() {\\n        clip.point = pointLine;\\n        line.lineStart();\\n      }\\n      function lineEnd() {\\n        clip.point = point;\\n        line.lineEnd();\\n      }\\n      var segments;\\n      var buffer = d3_geo_clipBufferListener(), ringListener = clipLine(buffer), polygonStarted = false, polygon, ring;\\n      function pointRing(λ, φ) {\\n        ring.push([ λ, φ ]);\\n        var point = rotate(λ, φ);\\n        ringListener.point(point[0], point[1]);\\n      }\\n      function ringStart() {\\n        ringListener.lineStart();\\n        ring = [];\\n      }\\n      function ringEnd() {\\n        pointRing(ring[0][0], ring[0][1]);\\n        ringListener.lineEnd();\\n        var clean = ringListener.clean(), ringSegments = buffer.buffer(), segment, n = ringSegments.length;\\n        ring.pop();\\n        polygon.push(ring);\\n        ring = null;\\n        if (!n) return;\\n        if (clean & 1) {\\n          segment = ringSegments[0];\\n          var n = segment.length - 1, i = -1, point;\\n          if (n > 0) {\\n            if (!polygonStarted) listener.polygonStart(), polygonStarted = true;\\n            listener.lineStart();\\n            while (++i < n) listener.point((point = segment[i])[0], point[1]);\\n            listener.lineEnd();\\n          }\\n          return;\\n        }\\n        if (n > 1 && clean & 2) ringSegments.push(ringSegments.pop().concat(ringSegments.shift()));\\n        segments.push(ringSegments.filter(d3_geo_clipSegmentLength1));\\n      }\\n      return clip;\\n    };\\n  }\\n  function d3_geo_clipSegmentLength1(segment) {\\n    return segment.length > 1;\\n  }\\n  function d3_geo_clipBufferListener() {\\n    var lines = [], line;\\n    return {\\n      lineStart: function() {\\n        lines.push(line = []);\\n      },\\n      point: function(λ, φ) {\\n        line.push([ λ, φ ]);\\n      },\\n      lineEnd: d3_noop,\\n      buffer: function() {\\n        var buffer = lines;\\n        lines = [];\\n        line = null;\\n        return buffer;\\n      },\\n      rejoin: function() {\\n        if (lines.length > 1) lines.push(lines.pop().concat(lines.shift()));\\n      }\\n    };\\n  }\\n  function d3_geo_clipSort(a, b) {\\n    return ((a = a.x)[0] < 0 ? a[1] - halfπ - ε : halfπ - a[1]) - ((b = b.x)[0] < 0 ? b[1] - halfπ - ε : halfπ - b[1]);\\n  }\\n  var d3_geo_clipAntimeridian = d3_geo_clip(d3_true, d3_geo_clipAntimeridianLine, d3_geo_clipAntimeridianInterpolate, [ -π, -π / 2 ]);\\n  function d3_geo_clipAntimeridianLine(listener) {\\n    var λ0 = NaN, φ0 = NaN, sλ0 = NaN, clean;\\n    return {\\n      lineStart: function() {\\n        listener.lineStart();\\n        clean = 1;\\n      },\\n      point: function(λ1, φ1) {\\n        var sλ1 = λ1 > 0 ? π : -π, dλ = abs(λ1 - λ0);\\n        if (abs(dλ - π) < ε) {\\n          listener.point(λ0, φ0 = (φ0 + φ1) / 2 > 0 ? halfπ : -halfπ);\\n          listener.point(sλ0, φ0);\\n          listener.lineEnd();\\n          listener.lineStart();\\n          listener.point(sλ1, φ0);\\n          listener.point(λ1, φ0);\\n          clean = 0;\\n        } else if (sλ0 !== sλ1 && dλ >= π) {\\n          if (abs(λ0 - sλ0) < ε) λ0 -= sλ0 * ε;\\n          if (abs(λ1 - sλ1) < ε) λ1 -= sλ1 * ε;\\n          φ0 = d3_geo_clipAntimeridianIntersect(λ0, φ0, λ1, φ1);\\n          listener.point(sλ0, φ0);\\n          listener.lineEnd();\\n          listener.lineStart();\\n          listener.point(sλ1, φ0);\\n          clean = 0;\\n        }\\n        listener.point(λ0 = λ1, φ0 = φ1);\\n        sλ0 = sλ1;\\n      },\\n      lineEnd: function() {\\n        listener.lineEnd();\\n        λ0 = φ0 = NaN;\\n      },\\n      clean: function() {\\n        return 2 - clean;\\n      }\\n    };\\n  }\\n  function d3_geo_clipAntimeridianIntersect(λ0, φ0, λ1, φ1) {\\n    var cosφ0, cosφ1, sinλ0_λ1 = Math.sin(λ0 - λ1);\\n    return abs(sinλ0_λ1) > ε ? Math.atan((Math.sin(φ0) * (cosφ1 = Math.cos(φ1)) * Math.sin(λ1) - Math.sin(φ1) * (cosφ0 = Math.cos(φ0)) * Math.sin(λ0)) / (cosφ0 * cosφ1 * sinλ0_λ1)) : (φ0 + φ1) / 2;\\n  }\\n  function d3_geo_clipAntimeridianInterpolate(from, to, direction, listener) {\\n    var φ;\\n    if (from == null) {\\n      φ = direction * halfπ;\\n      listener.point(-π, φ);\\n      listener.point(0, φ);\\n      listener.point(π, φ);\\n      listener.point(π, 0);\\n      listener.point(π, -φ);\\n      listener.point(0, -φ);\\n      listener.point(-π, -φ);\\n      listener.point(-π, 0);\\n      listener.point(-π, φ);\\n    } else if (abs(from[0] - to[0]) > ε) {\\n      var s = from[0] < to[0] ? π : -π;\\n      φ = direction * s / 2;\\n      listener.point(-s, φ);\\n      listener.point(0, φ);\\n      listener.point(s, φ);\\n    } else {\\n      listener.point(to[0], to[1]);\\n    }\\n  }\\n  function d3_geo_pointInPolygon(point, polygon) {\\n    var meridian = point[0], parallel = point[1], meridianNormal = [ Math.sin(meridian), -Math.cos(meridian), 0 ], polarAngle = 0, winding = 0;\\n    d3_geo_areaRingSum.reset();\\n    for (var i = 0, n = polygon.length; i < n; ++i) {\\n      var ring = polygon[i], m = ring.length;\\n      if (!m) continue;\\n      var point0 = ring[0], λ0 = point0[0], φ0 = point0[1] / 2 + π / 4, sinφ0 = Math.sin(φ0), cosφ0 = Math.cos(φ0), j = 1;\\n      while (true) {\\n        if (j === m) j = 0;\\n        point = ring[j];\\n        var λ = point[0], φ = point[1] / 2 + π / 4, sinφ = Math.sin(φ), cosφ = Math.cos(φ), dλ = λ - λ0, sdλ = dλ >= 0 ? 1 : -1, adλ = sdλ * dλ, antimeridian = adλ > π, k = sinφ0 * sinφ;\\n        d3_geo_areaRingSum.add(Math.atan2(k * sdλ * Math.sin(adλ), cosφ0 * cosφ + k * Math.cos(adλ)));\\n        polarAngle += antimeridian ? dλ + sdλ * τ : dλ;\\n        if (antimeridian ^ λ0 >= meridian ^ λ >= meridian) {\\n          var arc = d3_geo_cartesianCross(d3_geo_cartesian(point0), d3_geo_cartesian(point));\\n          d3_geo_cartesianNormalize(arc);\\n          var intersection = d3_geo_cartesianCross(meridianNormal, arc);\\n          d3_geo_cartesianNormalize(intersection);\\n          var φarc = (antimeridian ^ dλ >= 0 ? -1 : 1) * d3_asin(intersection[2]);\\n          if (parallel > φarc || parallel === φarc && (arc[0] || arc[1])) {\\n            winding += antimeridian ^ dλ >= 0 ? 1 : -1;\\n          }\\n        }\\n        if (!j++) break;\\n        λ0 = λ, sinφ0 = sinφ, cosφ0 = cosφ, point0 = point;\\n      }\\n    }\\n    return (polarAngle < -ε || polarAngle < ε && d3_geo_areaRingSum < -ε) ^ winding & 1;\\n  }\\n  function d3_geo_clipCircle(radius) {\\n    var cr = Math.cos(radius), smallRadius = cr > 0, notHemisphere = abs(cr) > ε, interpolate = d3_geo_circleInterpolate(radius, 6 * d3_radians);\\n    return d3_geo_clip(visible, clipLine, interpolate, smallRadius ? [ 0, -radius ] : [ -π, radius - π ]);\\n    function visible(λ, φ) {\\n      return Math.cos(λ) * Math.cos(φ) > cr;\\n    }\\n    function clipLine(listener) {\\n      var point0, c0, v0, v00, clean;\\n      return {\\n        lineStart: function() {\\n          v00 = v0 = false;\\n          clean = 1;\\n        },\\n        point: function(λ, φ) {\\n          var point1 = [ λ, φ ], point2, v = visible(λ, φ), c = smallRadius ? v ? 0 : code(λ, φ) : v ? code(λ + (λ < 0 ? π : -π), φ) : 0;\\n          if (!point0 && (v00 = v0 = v)) listener.lineStart();\\n          if (v !== v0) {\\n            point2 = intersect(point0, point1);\\n            if (d3_geo_sphericalEqual(point0, point2) || d3_geo_sphericalEqual(point1, point2)) {\\n              point1[0] += ε;\\n              point1[1] += ε;\\n              v = visible(point1[0], point1[1]);\\n            }\\n          }\\n          if (v !== v0) {\\n            clean = 0;\\n            if (v) {\\n              listener.lineStart();\\n              point2 = intersect(point1, point0);\\n              listener.point(point2[0], point2[1]);\\n            } else {\\n              point2 = intersect(point0, point1);\\n              listener.point(point2[0], point2[1]);\\n              listener.lineEnd();\\n            }\\n            point0 = point2;\\n          } else if (notHemisphere && point0 && smallRadius ^ v) {\\n            var t;\\n            if (!(c & c0) && (t = intersect(point1, point0, true))) {\\n              clean = 0;\\n              if (smallRadius) {\\n                listener.lineStart();\\n                listener.point(t[0][0], t[0][1]);\\n                listener.point(t[1][0], t[1][1]);\\n                listener.lineEnd();\\n              } else {\\n                listener.point(t[1][0], t[1][1]);\\n                listener.lineEnd();\\n                listener.lineStart();\\n                listener.point(t[0][0], t[0][1]);\\n              }\\n            }\\n          }\\n          if (v && (!point0 || !d3_geo_sphericalEqual(point0, point1))) {\\n            listener.point(point1[0], point1[1]);\\n          }\\n          point0 = point1, v0 = v, c0 = c;\\n        },\\n        lineEnd: function() {\\n          if (v0) listener.lineEnd();\\n          point0 = null;\\n        },\\n        clean: function() {\\n          return clean | (v00 && v0) << 1;\\n        }\\n      };\\n    }\\n    function intersect(a, b, two) {\\n      var pa = d3_geo_cartesian(a), pb = d3_geo_cartesian(b);\\n      var n1 = [ 1, 0, 0 ], n2 = d3_geo_cartesianCross(pa, pb), n2n2 = d3_geo_cartesianDot(n2, n2), n1n2 = n2[0], determinant = n2n2 - n1n2 * n1n2;\\n      if (!determinant) return !two && a;\\n      var c1 = cr * n2n2 / determinant, c2 = -cr * n1n2 / determinant, n1xn2 = d3_geo_cartesianCross(n1, n2), A = d3_geo_cartesianScale(n1, c1), B = d3_geo_cartesianScale(n2, c2);\\n      d3_geo_cartesianAdd(A, B);\\n      var u = n1xn2, w = d3_geo_cartesianDot(A, u), uu = d3_geo_cartesianDot(u, u), t2 = w * w - uu * (d3_geo_cartesianDot(A, A) - 1);\\n      if (t2 < 0) return;\\n      var t = Math.sqrt(t2), q = d3_geo_cartesianScale(u, (-w - t) / uu);\\n      d3_geo_cartesianAdd(q, A);\\n      q = d3_geo_spherical(q);\\n      if (!two) return q;\\n      var λ0 = a[0], λ1 = b[0], φ0 = a[1], φ1 = b[1], z;\\n      if (λ1 < λ0) z = λ0, λ0 = λ1, λ1 = z;\\n      var δλ = λ1 - λ0, polar = abs(δλ - π) < ε, meridian = polar || δλ < ε;\\n      if (!polar && φ1 < φ0) z = φ0, φ0 = φ1, φ1 = z;\\n      if (meridian ? polar ? φ0 + φ1 > 0 ^ q[1] < (abs(q[0] - λ0) < ε ? φ0 : φ1) : φ0 <= q[1] && q[1] <= φ1 : δλ > π ^ (λ0 <= q[0] && q[0] <= λ1)) {\\n        var q1 = d3_geo_cartesianScale(u, (-w + t) / uu);\\n        d3_geo_cartesianAdd(q1, A);\\n        return [ q, d3_geo_spherical(q1) ];\\n      }\\n    }\\n    function code(λ, φ) {\\n      var r = smallRadius ? radius : π - radius, code = 0;\\n      if (λ < -r) code |= 1; else if (λ > r) code |= 2;\\n      if (φ < -r) code |= 4; else if (φ > r) code |= 8;\\n      return code;\\n    }\\n  }\\n  function d3_geom_clipLine(x0, y0, x1, y1) {\\n    return function(line) {\\n      var a = line.a, b = line.b, ax = a.x, ay = a.y, bx = b.x, by = b.y, t0 = 0, t1 = 1, dx = bx - ax, dy = by - ay, r;\\n      r = x0 - ax;\\n      if (!dx && r > 0) return;\\n      r /= dx;\\n      if (dx < 0) {\\n        if (r < t0) return;\\n        if (r < t1) t1 = r;\\n      } else if (dx > 0) {\\n        if (r > t1) return;\\n        if (r > t0) t0 = r;\\n      }\\n      r = x1 - ax;\\n      if (!dx && r < 0) return;\\n      r /= dx;\\n      if (dx < 0) {\\n        if (r > t1) return;\\n        if (r > t0) t0 = r;\\n      } else if (dx > 0) {\\n        if (r < t0) return;\\n        if (r < t1) t1 = r;\\n      }\\n      r = y0 - ay;\\n      if (!dy && r > 0) return;\\n      r /= dy;\\n      if (dy < 0) {\\n        if (r < t0) return;\\n        if (r < t1) t1 = r;\\n      } else if (dy > 0) {\\n        if (r > t1) return;\\n        if (r > t0) t0 = r;\\n      }\\n      r = y1 - ay;\\n      if (!dy && r < 0) return;\\n      r /= dy;\\n      if (dy < 0) {\\n        if (r > t1) return;\\n        if (r > t0) t0 = r;\\n      } else if (dy > 0) {\\n        if (r < t0) return;\\n        if (r < t1) t1 = r;\\n      }\\n      if (t0 > 0) line.a = {\\n        x: ax + t0 * dx,\\n        y: ay + t0 * dy\\n      };\\n      if (t1 < 1) line.b = {\\n        x: ax + t1 * dx,\\n        y: ay + t1 * dy\\n      };\\n      return line;\\n    };\\n  }\\n  var d3_geo_clipExtentMAX = 1e9;\\n  d3.geo.clipExtent = function() {\\n    var x0, y0, x1, y1, stream, clip, clipExtent = {\\n      stream: function(output) {\\n        if (stream) stream.valid = false;\\n        stream = clip(output);\\n        stream.valid = true;\\n        return stream;\\n      },\\n      extent: function(_) {\\n        if (!arguments.length) return [ [ x0, y0 ], [ x1, y1 ] ];\\n        clip = d3_geo_clipExtent(x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1]);\\n        if (stream) stream.valid = false, stream = null;\\n        return clipExtent;\\n      }\\n    };\\n    return clipExtent.extent([ [ 0, 0 ], [ 960, 500 ] ]);\\n  };\\n  function d3_geo_clipExtent(x0, y0, x1, y1) {\\n    return function(listener) {\\n      var listener_ = listener, bufferListener = d3_geo_clipBufferListener(), clipLine = d3_geom_clipLine(x0, y0, x1, y1), segments, polygon, ring;\\n      var clip = {\\n        point: point,\\n        lineStart: lineStart,\\n        lineEnd: lineEnd,\\n        polygonStart: function() {\\n          listener = bufferListener;\\n          segments = [];\\n          polygon = [];\\n          clean = true;\\n        },\\n        polygonEnd: function() {\\n          listener = listener_;\\n          segments = d3.merge(segments);\\n          var clipStartInside = insidePolygon([ x0, y1 ]), inside = clean && clipStartInside, visible = segments.length;\\n          if (inside || visible) {\\n            listener.polygonStart();\\n            if (inside) {\\n              listener.lineStart();\\n              interpolate(null, null, 1, listener);\\n              listener.lineEnd();\\n            }\\n            if (visible) {\\n              d3_geo_clipPolygon(segments, compare, clipStartInside, interpolate, listener);\\n            }\\n            listener.polygonEnd();\\n          }\\n          segments = polygon = ring = null;\\n        }\\n      };\\n      function insidePolygon(p) {\\n        var wn = 0, n = polygon.length, y = p[1];\\n        for (var i = 0; i < n; ++i) {\\n          for (var j = 1, v = polygon[i], m = v.length, a = v[0], b; j < m; ++j) {\\n            b = v[j];\\n            if (a[1] <= y) {\\n              if (b[1] > y && d3_cross2d(a, b, p) > 0) ++wn;\\n            } else {\\n              if (b[1] <= y && d3_cross2d(a, b, p) < 0) --wn;\\n            }\\n            a = b;\\n          }\\n        }\\n        return wn !== 0;\\n      }\\n      function interpolate(from, to, direction, listener) {\\n        var a = 0, a1 = 0;\\n        if (from == null || (a = corner(from, direction)) !== (a1 = corner(to, direction)) || comparePoints(from, to) < 0 ^ direction > 0) {\\n          do {\\n            listener.point(a === 0 || a === 3 ? x0 : x1, a > 1 ? y1 : y0);\\n          } while ((a = (a + direction + 4) % 4) !== a1);\\n        } else {\\n          listener.point(to[0], to[1]);\\n        }\\n      }\\n      function pointVisible(x, y) {\\n        return x0 <= x && x <= x1 && y0 <= y && y <= y1;\\n      }\\n      function point(x, y) {\\n        if (pointVisible(x, y)) listener.point(x, y);\\n      }\\n      var x__, y__, v__, x_, y_, v_, first, clean;\\n      function lineStart() {\\n        clip.point = linePoint;\\n        if (polygon) polygon.push(ring = []);\\n        first = true;\\n        v_ = false;\\n        x_ = y_ = NaN;\\n      }\\n      function lineEnd() {\\n        if (segments) {\\n          linePoint(x__, y__);\\n          if (v__ && v_) bufferListener.rejoin();\\n          segments.push(bufferListener.buffer());\\n        }\\n        clip.point = point;\\n        if (v_) listener.lineEnd();\\n      }\\n      function linePoint(x, y) {\\n        x = Math.max(-d3_geo_clipExtentMAX, Math.min(d3_geo_clipExtentMAX, x));\\n        y = Math.max(-d3_geo_clipExtentMAX, Math.min(d3_geo_clipExtentMAX, y));\\n        var v = pointVisible(x, y);\\n        if (polygon) ring.push([ x, y ]);\\n        if (first) {\\n          x__ = x, y__ = y, v__ = v;\\n          first = false;\\n          if (v) {\\n            listener.lineStart();\\n            listener.point(x, y);\\n          }\\n        } else {\\n          if (v && v_) listener.point(x, y); else {\\n            var l = {\\n              a: {\\n                x: x_,\\n                y: y_\\n              },\\n              b: {\\n                x: x,\\n                y: y\\n              }\\n            };\\n            if (clipLine(l)) {\\n              if (!v_) {\\n                listener.lineStart();\\n                listener.point(l.a.x, l.a.y);\\n              }\\n              listener.point(l.b.x, l.b.y);\\n              if (!v) listener.lineEnd();\\n              clean = false;\\n            } else if (v) {\\n              listener.lineStart();\\n              listener.point(x, y);\\n              clean = false;\\n            }\\n          }\\n        }\\n        x_ = x, y_ = y, v_ = v;\\n      }\\n      return clip;\\n    };\\n    function corner(p, direction) {\\n      return abs(p[0] - x0) < ε ? direction > 0 ? 0 : 3 : abs(p[0] - x1) < ε ? direction > 0 ? 2 : 1 : abs(p[1] - y0) < ε ? direction > 0 ? 1 : 0 : direction > 0 ? 3 : 2;\\n    }\\n    function compare(a, b) {\\n      return comparePoints(a.x, b.x);\\n    }\\n    function comparePoints(a, b) {\\n      var ca = corner(a, 1), cb = corner(b, 1);\\n      return ca !== cb ? ca - cb : ca === 0 ? b[1] - a[1] : ca === 1 ? a[0] - b[0] : ca === 2 ? a[1] - b[1] : b[0] - a[0];\\n    }\\n  }\\n  function d3_geo_conic(projectAt) {\\n    var φ0 = 0, φ1 = π / 3, m = d3_geo_projectionMutator(projectAt), p = m(φ0, φ1);\\n    p.parallels = function(_) {\\n      if (!arguments.length) return [ φ0 / π * 180, φ1 / π * 180 ];\\n      return m(φ0 = _[0] * π / 180, φ1 = _[1] * π / 180);\\n    };\\n    return p;\\n  }\\n  function d3_geo_conicEqualArea(φ0, φ1) {\\n    var sinφ0 = Math.sin(φ0), n = (sinφ0 + Math.sin(φ1)) / 2, C = 1 + sinφ0 * (2 * n - sinφ0), ρ0 = Math.sqrt(C) / n;\\n    function forward(λ, φ) {\\n      var ρ = Math.sqrt(C - 2 * n * Math.sin(φ)) / n;\\n      return [ ρ * Math.sin(λ *= n), ρ0 - ρ * Math.cos(λ) ];\\n    }\\n    forward.invert = function(x, y) {\\n      var ρ0_y = ρ0 - y;\\n      return [ Math.atan2(x, ρ0_y) / n, d3_asin((C - (x * x + ρ0_y * ρ0_y) * n * n) / (2 * n)) ];\\n    };\\n    return forward;\\n  }\\n  (d3.geo.conicEqualArea = function() {\\n    return d3_geo_conic(d3_geo_conicEqualArea);\\n  }).raw = d3_geo_conicEqualArea;\\n  d3.geo.albers = function() {\\n    return d3.geo.conicEqualArea().rotate([ 96, 0 ]).center([ -.6, 38.7 ]).parallels([ 29.5, 45.5 ]).scale(1070);\\n  };\\n  d3.geo.albersUsa = function() {\\n    var lower48 = d3.geo.albers();\\n    var alaska = d3.geo.conicEqualArea().rotate([ 154, 0 ]).center([ -2, 58.5 ]).parallels([ 55, 65 ]);\\n    var hawaii = d3.geo.conicEqualArea().rotate([ 157, 0 ]).center([ -3, 19.9 ]).parallels([ 8, 18 ]);\\n    var point, pointStream = {\\n      point: function(x, y) {\\n        point = [ x, y ];\\n      }\\n    }, lower48Point, alaskaPoint, hawaiiPoint;\\n    function albersUsa(coordinates) {\\n      var x = coordinates[0], y = coordinates[1];\\n      point = null;\\n      (lower48Point(x, y), point) || (alaskaPoint(x, y), point) || hawaiiPoint(x, y);\\n      return point;\\n    }\\n    albersUsa.invert = function(coordinates) {\\n      var k = lower48.scale(), t = lower48.translate(), x = (coordinates[0] - t[0]) / k, y = (coordinates[1] - t[1]) / k;\\n      return (y >= .12 && y < .234 && x >= -.425 && x < -.214 ? alaska : y >= .166 && y < .234 && x >= -.214 && x < -.115 ? hawaii : lower48).invert(coordinates);\\n    };\\n    albersUsa.stream = function(stream) {\\n      var lower48Stream = lower48.stream(stream), alaskaStream = alaska.stream(stream), hawaiiStream = hawaii.stream(stream);\\n      return {\\n        point: function(x, y) {\\n          lower48Stream.point(x, y);\\n          alaskaStream.point(x, y);\\n          hawaiiStream.point(x, y);\\n        },\\n        sphere: function() {\\n          lower48Stream.sphere();\\n          alaskaStream.sphere();\\n          hawaiiStream.sphere();\\n        },\\n        lineStart: function() {\\n          lower48Stream.lineStart();\\n          alaskaStream.lineStart();\\n          hawaiiStream.lineStart();\\n        },\\n        lineEnd: function() {\\n          lower48Stream.lineEnd();\\n          alaskaStream.lineEnd();\\n          hawaiiStream.lineEnd();\\n        },\\n        polygonStart: function() {\\n          lower48Stream.polygonStart();\\n          alaskaStream.polygonStart();\\n          hawaiiStream.polygonStart();\\n        },\\n        polygonEnd: function() {\\n          lower48Stream.polygonEnd();\\n          alaskaStream.polygonEnd();\\n          hawaiiStream.polygonEnd();\\n        }\\n      };\\n    };\\n    albersUsa.precision = function(_) {\\n      if (!arguments.length) return lower48.precision();\\n      lower48.precision(_);\\n      alaska.precision(_);\\n      hawaii.precision(_);\\n      return albersUsa;\\n    };\\n    albersUsa.scale = function(_) {\\n      if (!arguments.length) return lower48.scale();\\n      lower48.scale(_);\\n      alaska.scale(_ * .35);\\n      hawaii.scale(_);\\n      return albersUsa.translate(lower48.translate());\\n    };\\n    albersUsa.translate = function(_) {\\n      if (!arguments.length) return lower48.translate();\\n      var k = lower48.scale(), x = +_[0], y = +_[1];\\n      lower48Point = lower48.translate(_).clipExtent([ [ x - .455 * k, y - .238 * k ], [ x + .455 * k, y + .238 * k ] ]).stream(pointStream).point;\\n      alaskaPoint = alaska.translate([ x - .307 * k, y + .201 * k ]).clipExtent([ [ x - .425 * k + ε, y + .12 * k + ε ], [ x - .214 * k - ε, y + .234 * k - ε ] ]).stream(pointStream).point;\\n      hawaiiPoint = hawaii.translate([ x - .205 * k, y + .212 * k ]).clipExtent([ [ x - .214 * k + ε, y + .166 * k + ε ], [ x - .115 * k - ε, y + .234 * k - ε ] ]).stream(pointStream).point;\\n      return albersUsa;\\n    };\\n    return albersUsa.scale(1070);\\n  };\\n  var d3_geo_pathAreaSum, d3_geo_pathAreaPolygon, d3_geo_pathArea = {\\n    point: d3_noop,\\n    lineStart: d3_noop,\\n    lineEnd: d3_noop,\\n    polygonStart: function() {\\n      d3_geo_pathAreaPolygon = 0;\\n      d3_geo_pathArea.lineStart = d3_geo_pathAreaRingStart;\\n    },\\n    polygonEnd: function() {\\n      d3_geo_pathArea.lineStart = d3_geo_pathArea.lineEnd = d3_geo_pathArea.point = d3_noop;\\n      d3_geo_pathAreaSum += abs(d3_geo_pathAreaPolygon / 2);\\n    }\\n  };\\n  function d3_geo_pathAreaRingStart() {\\n    var x00, y00, x0, y0;\\n    d3_geo_pathArea.point = function(x, y) {\\n      d3_geo_pathArea.point = nextPoint;\\n      x00 = x0 = x, y00 = y0 = y;\\n    };\\n    function nextPoint(x, y) {\\n      d3_geo_pathAreaPolygon += y0 * x - x0 * y;\\n      x0 = x, y0 = y;\\n    }\\n    d3_geo_pathArea.lineEnd = function() {\\n      nextPoint(x00, y00);\\n    };\\n  }\\n  var d3_geo_pathBoundsX0, d3_geo_pathBoundsY0, d3_geo_pathBoundsX1, d3_geo_pathBoundsY1;\\n  var d3_geo_pathBounds = {\\n    point: d3_geo_pathBoundsPoint,\\n    lineStart: d3_noop,\\n    lineEnd: d3_noop,\\n    polygonStart: d3_noop,\\n    polygonEnd: d3_noop\\n  };\\n  function d3_geo_pathBoundsPoint(x, y) {\\n    if (x < d3_geo_pathBoundsX0) d3_geo_pathBoundsX0 = x;\\n    if (x > d3_geo_pathBoundsX1) d3_geo_pathBoundsX1 = x;\\n    if (y < d3_geo_pathBoundsY0) d3_geo_pathBoundsY0 = y;\\n    if (y > d3_geo_pathBoundsY1) d3_geo_pathBoundsY1 = y;\\n  }\\n  function d3_geo_pathBuffer() {\\n    var pointCircle = d3_geo_pathBufferCircle(4.5), buffer = [];\\n    var stream = {\\n      point: point,\\n      lineStart: function() {\\n        stream.point = pointLineStart;\\n      },\\n      lineEnd: lineEnd,\\n      polygonStart: function() {\\n        stream.lineEnd = lineEndPolygon;\\n      },\\n      polygonEnd: function() {\\n        stream.lineEnd = lineEnd;\\n        stream.point = point;\\n      },\\n      pointRadius: function(_) {\\n        pointCircle = d3_geo_pathBufferCircle(_);\\n        return stream;\\n      },\\n      result: function() {\\n        if (buffer.length) {\\n          var result = buffer.join(\\\"\\\");\\n          buffer = [];\\n          return result;\\n        }\\n      }\\n    };\\n    function point(x, y) {\\n      buffer.push(\\\"M\\\", x, \\\",\\\", y, pointCircle);\\n    }\\n    function pointLineStart(x, y) {\\n      buffer.push(\\\"M\\\", x, \\\",\\\", y);\\n      stream.point = pointLine;\\n    }\\n    function pointLine(x, y) {\\n      buffer.push(\\\"L\\\", x, \\\",\\\", y);\\n    }\\n    function lineEnd() {\\n      stream.point = point;\\n    }\\n    function lineEndPolygon() {\\n      buffer.push(\\\"Z\\\");\\n    }\\n    return stream;\\n  }\\n  function d3_geo_pathBufferCircle(radius) {\\n    return \\\"m0,\\\" + radius + \\\"a\\\" + radius + \\\",\\\" + radius + \\\" 0 1,1 0,\\\" + -2 * radius + \\\"a\\\" + radius + \\\",\\\" + radius + \\\" 0 1,1 0,\\\" + 2 * radius + \\\"z\\\";\\n  }\\n  var d3_geo_pathCentroid = {\\n    point: d3_geo_pathCentroidPoint,\\n    lineStart: d3_geo_pathCentroidLineStart,\\n    lineEnd: d3_geo_pathCentroidLineEnd,\\n    polygonStart: function() {\\n      d3_geo_pathCentroid.lineStart = d3_geo_pathCentroidRingStart;\\n    },\\n    polygonEnd: function() {\\n      d3_geo_pathCentroid.point = d3_geo_pathCentroidPoint;\\n      d3_geo_pathCentroid.lineStart = d3_geo_pathCentroidLineStart;\\n      d3_geo_pathCentroid.lineEnd = d3_geo_pathCentroidLineEnd;\\n    }\\n  };\\n  function d3_geo_pathCentroidPoint(x, y) {\\n    d3_geo_centroidX0 += x;\\n    d3_geo_centroidY0 += y;\\n    ++d3_geo_centroidZ0;\\n  }\\n  function d3_geo_pathCentroidLineStart() {\\n    var x0, y0;\\n    d3_geo_pathCentroid.point = function(x, y) {\\n      d3_geo_pathCentroid.point = nextPoint;\\n      d3_geo_pathCentroidPoint(x0 = x, y0 = y);\\n    };\\n    function nextPoint(x, y) {\\n      var dx = x - x0, dy = y - y0, z = Math.sqrt(dx * dx + dy * dy);\\n      d3_geo_centroidX1 += z * (x0 + x) / 2;\\n      d3_geo_centroidY1 += z * (y0 + y) / 2;\\n      d3_geo_centroidZ1 += z;\\n      d3_geo_pathCentroidPoint(x0 = x, y0 = y);\\n    }\\n  }\\n  function d3_geo_pathCentroidLineEnd() {\\n    d3_geo_pathCentroid.point = d3_geo_pathCentroidPoint;\\n  }\\n  function d3_geo_pathCentroidRingStart() {\\n    var x00, y00, x0, y0;\\n    d3_geo_pathCentroid.point = function(x, y) {\\n      d3_geo_pathCentroid.point = nextPoint;\\n      d3_geo_pathCentroidPoint(x00 = x0 = x, y00 = y0 = y);\\n    };\\n    function nextPoint(x, y) {\\n      var dx = x - x0, dy = y - y0, z = Math.sqrt(dx * dx + dy * dy);\\n      d3_geo_centroidX1 += z * (x0 + x) / 2;\\n      d3_geo_centroidY1 += z * (y0 + y) / 2;\\n      d3_geo_centroidZ1 += z;\\n      z = y0 * x - x0 * y;\\n      d3_geo_centroidX2 += z * (x0 + x);\\n      d3_geo_centroidY2 += z * (y0 + y);\\n      d3_geo_centroidZ2 += z * 3;\\n      d3_geo_pathCentroidPoint(x0 = x, y0 = y);\\n    }\\n    d3_geo_pathCentroid.lineEnd = function() {\\n      nextPoint(x00, y00);\\n    };\\n  }\\n  function d3_geo_pathContext(context) {\\n    var pointRadius = 4.5;\\n    var stream = {\\n      point: point,\\n      lineStart: function() {\\n        stream.point = pointLineStart;\\n      },\\n      lineEnd: lineEnd,\\n      polygonStart: function() {\\n        stream.lineEnd = lineEndPolygon;\\n      },\\n      polygonEnd: function() {\\n        stream.lineEnd = lineEnd;\\n        stream.point = point;\\n      },\\n      pointRadius: function(_) {\\n        pointRadius = _;\\n        return stream;\\n      },\\n      result: d3_noop\\n    };\\n    function point(x, y) {\\n      context.moveTo(x + pointRadius, y);\\n      context.arc(x, y, pointRadius, 0, τ);\\n    }\\n    function pointLineStart(x, y) {\\n      context.moveTo(x, y);\\n      stream.point = pointLine;\\n    }\\n    function pointLine(x, y) {\\n      context.lineTo(x, y);\\n    }\\n    function lineEnd() {\\n      stream.point = point;\\n    }\\n    function lineEndPolygon() {\\n      context.closePath();\\n    }\\n    return stream;\\n  }\\n  function d3_geo_resample(project) {\\n    var δ2 = .5, cosMinDistance = Math.cos(30 * d3_radians), maxDepth = 16;\\n    function resample(stream) {\\n      return (maxDepth ? resampleRecursive : resampleNone)(stream);\\n    }\\n    function resampleNone(stream) {\\n      return d3_geo_transformPoint(stream, function(x, y) {\\n        x = project(x, y);\\n        stream.point(x[0], x[1]);\\n      });\\n    }\\n    function resampleRecursive(stream) {\\n      var λ00, φ00, x00, y00, a00, b00, c00, λ0, x0, y0, a0, b0, c0;\\n      var resample = {\\n        point: point,\\n        lineStart: lineStart,\\n        lineEnd: lineEnd,\\n        polygonStart: function() {\\n          stream.polygonStart();\\n          resample.lineStart = ringStart;\\n        },\\n        polygonEnd: function() {\\n          stream.polygonEnd();\\n          resample.lineStart = lineStart;\\n        }\\n      };\\n      function point(x, y) {\\n        x = project(x, y);\\n        stream.point(x[0], x[1]);\\n      }\\n      function lineStart() {\\n        x0 = NaN;\\n        resample.point = linePoint;\\n        stream.lineStart();\\n      }\\n      function linePoint(λ, φ) {\\n        var c = d3_geo_cartesian([ λ, φ ]), p = project(λ, φ);\\n        resampleLineTo(x0, y0, λ0, a0, b0, c0, x0 = p[0], y0 = p[1], λ0 = λ, a0 = c[0], b0 = c[1], c0 = c[2], maxDepth, stream);\\n        stream.point(x0, y0);\\n      }\\n      function lineEnd() {\\n        resample.point = point;\\n        stream.lineEnd();\\n      }\\n      function ringStart() {\\n        lineStart();\\n        resample.point = ringPoint;\\n        resample.lineEnd = ringEnd;\\n      }\\n      function ringPoint(λ, φ) {\\n        linePoint(λ00 = λ, φ00 = φ), x00 = x0, y00 = y0, a00 = a0, b00 = b0, c00 = c0;\\n        resample.point = linePoint;\\n      }\\n      function ringEnd() {\\n        resampleLineTo(x0, y0, λ0, a0, b0, c0, x00, y00, λ00, a00, b00, c00, maxDepth, stream);\\n        resample.lineEnd = lineEnd;\\n        lineEnd();\\n      }\\n      return resample;\\n    }\\n    function resampleLineTo(x0, y0, λ0, a0, b0, c0, x1, y1, λ1, a1, b1, c1, depth, stream) {\\n      var dx = x1 - x0, dy = y1 - y0, d2 = dx * dx + dy * dy;\\n      if (d2 > 4 * δ2 && depth--) {\\n        var a = a0 + a1, b = b0 + b1, c = c0 + c1, m = Math.sqrt(a * a + b * b + c * c), φ2 = Math.asin(c /= m), λ2 = abs(abs(c) - 1) < ε || abs(λ0 - λ1) < ε ? (λ0 + λ1) / 2 : Math.atan2(b, a), p = project(λ2, φ2), x2 = p[0], y2 = p[1], dx2 = x2 - x0, dy2 = y2 - y0, dz = dy * dx2 - dx * dy2;\\n        if (dz * dz / d2 > δ2 || abs((dx * dx2 + dy * dy2) / d2 - .5) > .3 || a0 * a1 + b0 * b1 + c0 * c1 < cosMinDistance) {\\n          resampleLineTo(x0, y0, λ0, a0, b0, c0, x2, y2, λ2, a /= m, b /= m, c, depth, stream);\\n          stream.point(x2, y2);\\n          resampleLineTo(x2, y2, λ2, a, b, c, x1, y1, λ1, a1, b1, c1, depth, stream);\\n        }\\n      }\\n    }\\n    resample.precision = function(_) {\\n      if (!arguments.length) return Math.sqrt(δ2);\\n      maxDepth = (δ2 = _ * _) > 0 && 16;\\n      return resample;\\n    };\\n    return resample;\\n  }\\n  d3.geo.path = function() {\\n    var pointRadius = 4.5, projection, context, projectStream, contextStream, cacheStream;\\n    function path(object) {\\n      if (object) {\\n        if (typeof pointRadius === \\\"function\\\") contextStream.pointRadius(+pointRadius.apply(this, arguments));\\n        if (!cacheStream || !cacheStream.valid) cacheStream = projectStream(contextStream);\\n        d3.geo.stream(object, cacheStream);\\n      }\\n      return contextStream.result();\\n    }\\n    path.area = function(object) {\\n      d3_geo_pathAreaSum = 0;\\n      d3.geo.stream(object, projectStream(d3_geo_pathArea));\\n      return d3_geo_pathAreaSum;\\n    };\\n    path.centroid = function(object) {\\n      d3_geo_centroidX0 = d3_geo_centroidY0 = d3_geo_centroidZ0 = d3_geo_centroidX1 = d3_geo_centroidY1 = d3_geo_centroidZ1 = d3_geo_centroidX2 = d3_geo_centroidY2 = d3_geo_centroidZ2 = 0;\\n      d3.geo.stream(object, projectStream(d3_geo_pathCentroid));\\n      return d3_geo_centroidZ2 ? [ d3_geo_centroidX2 / d3_geo_centroidZ2, d3_geo_centroidY2 / d3_geo_centroidZ2 ] : d3_geo_centroidZ1 ? [ d3_geo_centroidX1 / d3_geo_centroidZ1, d3_geo_centroidY1 / d3_geo_centroidZ1 ] : d3_geo_centroidZ0 ? [ d3_geo_centroidX0 / d3_geo_centroidZ0, d3_geo_centroidY0 / d3_geo_centroidZ0 ] : [ NaN, NaN ];\\n    };\\n    path.bounds = function(object) {\\n      d3_geo_pathBoundsX1 = d3_geo_pathBoundsY1 = -(d3_geo_pathBoundsX0 = d3_geo_pathBoundsY0 = Infinity);\\n      d3.geo.stream(object, projectStream(d3_geo_pathBounds));\\n      return [ [ d3_geo_pathBoundsX0, d3_geo_pathBoundsY0 ], [ d3_geo_pathBoundsX1, d3_geo_pathBoundsY1 ] ];\\n    };\\n    path.projection = function(_) {\\n      if (!arguments.length) return projection;\\n      projectStream = (projection = _) ? _.stream || d3_geo_pathProjectStream(_) : d3_identity;\\n      return reset();\\n    };\\n    path.context = function(_) {\\n      if (!arguments.length) return context;\\n      contextStream = (context = _) == null ? new d3_geo_pathBuffer() : new d3_geo_pathContext(_);\\n      if (typeof pointRadius !== \\\"function\\\") contextStream.pointRadius(pointRadius);\\n      return reset();\\n    };\\n    path.pointRadius = function(_) {\\n      if (!arguments.length) return pointRadius;\\n      pointRadius = typeof _ === \\\"function\\\" ? _ : (contextStream.pointRadius(+_), +_);\\n      return path;\\n    };\\n    function reset() {\\n      cacheStream = null;\\n      return path;\\n    }\\n    return path.projection(d3.geo.albersUsa()).context(null);\\n  };\\n  function d3_geo_pathProjectStream(project) {\\n    var resample = d3_geo_resample(function(x, y) {\\n      return project([ x * d3_degrees, y * d3_degrees ]);\\n    });\\n    return function(stream) {\\n      return d3_geo_projectionRadians(resample(stream));\\n    };\\n  }\\n  d3.geo.transform = function(methods) {\\n    return {\\n      stream: function(stream) {\\n        var transform = new d3_geo_transform(stream);\\n        for (var k in methods) transform[k] = methods[k];\\n        return transform;\\n      }\\n    };\\n  };\\n  function d3_geo_transform(stream) {\\n    this.stream = stream;\\n  }\\n  d3_geo_transform.prototype = {\\n    point: function(x, y) {\\n      this.stream.point(x, y);\\n    },\\n    sphere: function() {\\n      this.stream.sphere();\\n    },\\n    lineStart: function() {\\n      this.stream.lineStart();\\n    },\\n    lineEnd: function() {\\n      this.stream.lineEnd();\\n    },\\n    polygonStart: function() {\\n      this.stream.polygonStart();\\n    },\\n    polygonEnd: function() {\\n      this.stream.polygonEnd();\\n    }\\n  };\\n  function d3_geo_transformPoint(stream, point) {\\n    return {\\n      point: point,\\n      sphere: function() {\\n        stream.sphere();\\n      },\\n      lineStart: function() {\\n        stream.lineStart();\\n      },\\n      lineEnd: function() {\\n        stream.lineEnd();\\n      },\\n      polygonStart: function() {\\n        stream.polygonStart();\\n      },\\n      polygonEnd: function() {\\n        stream.polygonEnd();\\n      }\\n    };\\n  }\\n  d3.geo.projection = d3_geo_projection;\\n  d3.geo.projectionMutator = d3_geo_projectionMutator;\\n  function d3_geo_projection(project) {\\n    return d3_geo_projectionMutator(function() {\\n      return project;\\n    })();\\n  }\\n  function d3_geo_projectionMutator(projectAt) {\\n    var project, rotate, projectRotate, projectResample = d3_geo_resample(function(x, y) {\\n      x = project(x, y);\\n      return [ x[0] * k + δx, δy - x[1] * k ];\\n    }), k = 150, x = 480, y = 250, λ = 0, φ = 0, δλ = 0, δφ = 0, δγ = 0, δx, δy, preclip = d3_geo_clipAntimeridian, postclip = d3_identity, clipAngle = null, clipExtent = null, stream;\\n    function projection(point) {\\n      point = projectRotate(point[0] * d3_radians, point[1] * d3_radians);\\n      return [ point[0] * k + δx, δy - point[1] * k ];\\n    }\\n    function invert(point) {\\n      point = projectRotate.invert((point[0] - δx) / k, (δy - point[1]) / k);\\n      return point && [ point[0] * d3_degrees, point[1] * d3_degrees ];\\n    }\\n    projection.stream = function(output) {\\n      if (stream) stream.valid = false;\\n      stream = d3_geo_projectionRadians(preclip(rotate, projectResample(postclip(output))));\\n      stream.valid = true;\\n      return stream;\\n    };\\n    projection.clipAngle = function(_) {\\n      if (!arguments.length) return clipAngle;\\n      preclip = _ == null ? (clipAngle = _, d3_geo_clipAntimeridian) : d3_geo_clipCircle((clipAngle = +_) * d3_radians);\\n      return invalidate();\\n    };\\n    projection.clipExtent = function(_) {\\n      if (!arguments.length) return clipExtent;\\n      clipExtent = _;\\n      postclip = _ ? d3_geo_clipExtent(_[0][0], _[0][1], _[1][0], _[1][1]) : d3_identity;\\n      return invalidate();\\n    };\\n    projection.scale = function(_) {\\n      if (!arguments.length) return k;\\n      k = +_;\\n      return reset();\\n    };\\n    projection.translate = function(_) {\\n      if (!arguments.length) return [ x, y ];\\n      x = +_[0];\\n      y = +_[1];\\n      return reset();\\n    };\\n    projection.center = function(_) {\\n      if (!arguments.length) return [ λ * d3_degrees, φ * d3_degrees ];\\n      λ = _[0] % 360 * d3_radians;\\n      φ = _[1] % 360 * d3_radians;\\n      return reset();\\n    };\\n    projection.rotate = function(_) {\\n      if (!arguments.length) return [ δλ * d3_degrees, δφ * d3_degrees, δγ * d3_degrees ];\\n      δλ = _[0] % 360 * d3_radians;\\n      δφ = _[1] % 360 * d3_radians;\\n      δγ = _.length > 2 ? _[2] % 360 * d3_radians : 0;\\n      return reset();\\n    };\\n    d3.rebind(projection, projectResample, \\\"precision\\\");\\n    function reset() {\\n      projectRotate = d3_geo_compose(rotate = d3_geo_rotation(δλ, δφ, δγ), project);\\n      var center = project(λ, φ);\\n      δx = x - center[0] * k;\\n      δy = y + center[1] * k;\\n      return invalidate();\\n    }\\n    function invalidate() {\\n      if (stream) stream.valid = false, stream = null;\\n      return projection;\\n    }\\n    return function() {\\n      project = projectAt.apply(this, arguments);\\n      projection.invert = project.invert && invert;\\n      return reset();\\n    };\\n  }\\n  function d3_geo_projectionRadians(stream) {\\n    return d3_geo_transformPoint(stream, function(x, y) {\\n      stream.point(x * d3_radians, y * d3_radians);\\n    });\\n  }\\n  function d3_geo_equirectangular(λ, φ) {\\n    return [ λ, φ ];\\n  }\\n  (d3.geo.equirectangular = function() {\\n    return d3_geo_projection(d3_geo_equirectangular);\\n  }).raw = d3_geo_equirectangular.invert = d3_geo_equirectangular;\\n  d3.geo.rotation = function(rotate) {\\n    rotate = d3_geo_rotation(rotate[0] % 360 * d3_radians, rotate[1] * d3_radians, rotate.length > 2 ? rotate[2] * d3_radians : 0);\\n    function forward(coordinates) {\\n      coordinates = rotate(coordinates[0] * d3_radians, coordinates[1] * d3_radians);\\n      return coordinates[0] *= d3_degrees, coordinates[1] *= d3_degrees, coordinates;\\n    }\\n    forward.invert = function(coordinates) {\\n      coordinates = rotate.invert(coordinates[0] * d3_radians, coordinates[1] * d3_radians);\\n      return coordinates[0] *= d3_degrees, coordinates[1] *= d3_degrees, coordinates;\\n    };\\n    return forward;\\n  };\\n  function d3_geo_identityRotation(λ, φ) {\\n    return [ λ > π ? λ - τ : λ < -π ? λ + τ : λ, φ ];\\n  }\\n  d3_geo_identityRotation.invert = d3_geo_equirectangular;\\n  function d3_geo_rotation(δλ, δφ, δγ) {\\n    return δλ ? δφ || δγ ? d3_geo_compose(d3_geo_rotationλ(δλ), d3_geo_rotationφγ(δφ, δγ)) : d3_geo_rotationλ(δλ) : δφ || δγ ? d3_geo_rotationφγ(δφ, δγ) : d3_geo_identityRotation;\\n  }\\n  function d3_geo_forwardRotationλ(δλ) {\\n    return function(λ, φ) {\\n      return λ += δλ, [ λ > π ? λ - τ : λ < -π ? λ + τ : λ, φ ];\\n    };\\n  }\\n  function d3_geo_rotationλ(δλ) {\\n    var rotation = d3_geo_forwardRotationλ(δλ);\\n    rotation.invert = d3_geo_forwardRotationλ(-δλ);\\n    return rotation;\\n  }\\n  function d3_geo_rotationφγ(δφ, δγ) {\\n    var cosδφ = Math.cos(δφ), sinδφ = Math.sin(δφ), cosδγ = Math.cos(δγ), sinδγ = Math.sin(δγ);\\n    function rotation(λ, φ) {\\n      var cosφ = Math.cos(φ), x = Math.cos(λ) * cosφ, y = Math.sin(λ) * cosφ, z = Math.sin(φ), k = z * cosδφ + x * sinδφ;\\n      return [ Math.atan2(y * cosδγ - k * sinδγ, x * cosδφ - z * sinδφ), d3_asin(k * cosδγ + y * sinδγ) ];\\n    }\\n    rotation.invert = function(λ, φ) {\\n      var cosφ = Math.cos(φ), x = Math.cos(λ) * cosφ, y = Math.sin(λ) * cosφ, z = Math.sin(φ), k = z * cosδγ - y * sinδγ;\\n      return [ Math.atan2(y * cosδγ + z * sinδγ, x * cosδφ + k * sinδφ), d3_asin(k * cosδφ - x * sinδφ) ];\\n    };\\n    return rotation;\\n  }\\n  d3.geo.circle = function() {\\n    var origin = [ 0, 0 ], angle, precision = 6, interpolate;\\n    function circle() {\\n      var center = typeof origin === \\\"function\\\" ? origin.apply(this, arguments) : origin, rotate = d3_geo_rotation(-center[0] * d3_radians, -center[1] * d3_radians, 0).invert, ring = [];\\n      interpolate(null, null, 1, {\\n        point: function(x, y) {\\n          ring.push(x = rotate(x, y));\\n          x[0] *= d3_degrees, x[1] *= d3_degrees;\\n        }\\n      });\\n      return {\\n        type: \\\"Polygon\\\",\\n        coordinates: [ ring ]\\n      };\\n    }\\n    circle.origin = function(x) {\\n      if (!arguments.length) return origin;\\n      origin = x;\\n      return circle;\\n    };\\n    circle.angle = function(x) {\\n      if (!arguments.length) return angle;\\n      interpolate = d3_geo_circleInterpolate((angle = +x) * d3_radians, precision * d3_radians);\\n      return circle;\\n    };\\n    circle.precision = function(_) {\\n      if (!arguments.length) return precision;\\n      interpolate = d3_geo_circleInterpolate(angle * d3_radians, (precision = +_) * d3_radians);\\n      return circle;\\n    };\\n    return circle.angle(90);\\n  };\\n  function d3_geo_circleInterpolate(radius, precision) {\\n    var cr = Math.cos(radius), sr = Math.sin(radius);\\n    return function(from, to, direction, listener) {\\n      var step = direction * precision;\\n      if (from != null) {\\n        from = d3_geo_circleAngle(cr, from);\\n        to = d3_geo_circleAngle(cr, to);\\n        if (direction > 0 ? from < to : from > to) from += direction * τ;\\n      } else {\\n        from = radius + direction * τ;\\n        to = radius - .5 * step;\\n      }\\n      for (var point, t = from; direction > 0 ? t > to : t < to; t -= step) {\\n        listener.point((point = d3_geo_spherical([ cr, -sr * Math.cos(t), -sr * Math.sin(t) ]))[0], point[1]);\\n      }\\n    };\\n  }\\n  function d3_geo_circleAngle(cr, point) {\\n    var a = d3_geo_cartesian(point);\\n    a[0] -= cr;\\n    d3_geo_cartesianNormalize(a);\\n    var angle = d3_acos(-a[1]);\\n    return ((-a[2] < 0 ? -angle : angle) + 2 * Math.PI - ε) % (2 * Math.PI);\\n  }\\n  d3.geo.distance = function(a, b) {\\n    var Δλ = (b[0] - a[0]) * d3_radians, φ0 = a[1] * d3_radians, φ1 = b[1] * d3_radians, sinΔλ = Math.sin(Δλ), cosΔλ = Math.cos(Δλ), sinφ0 = Math.sin(φ0), cosφ0 = Math.cos(φ0), sinφ1 = Math.sin(φ1), cosφ1 = Math.cos(φ1), t;\\n    return Math.atan2(Math.sqrt((t = cosφ1 * sinΔλ) * t + (t = cosφ0 * sinφ1 - sinφ0 * cosφ1 * cosΔλ) * t), sinφ0 * sinφ1 + cosφ0 * cosφ1 * cosΔλ);\\n  };\\n  d3.geo.graticule = function() {\\n    var x1, x0, X1, X0, y1, y0, Y1, Y0, dx = 10, dy = dx, DX = 90, DY = 360, x, y, X, Y, precision = 2.5;\\n    function graticule() {\\n      return {\\n        type: \\\"MultiLineString\\\",\\n        coordinates: lines()\\n      };\\n    }\\n    function lines() {\\n      return d3.range(Math.ceil(X0 / DX) * DX, X1, DX).map(X).concat(d3.range(Math.ceil(Y0 / DY) * DY, Y1, DY).map(Y)).concat(d3.range(Math.ceil(x0 / dx) * dx, x1, dx).filter(function(x) {\\n        return abs(x % DX) > ε;\\n      }).map(x)).concat(d3.range(Math.ceil(y0 / dy) * dy, y1, dy).filter(function(y) {\\n        return abs(y % DY) > ε;\\n      }).map(y));\\n    }\\n    graticule.lines = function() {\\n      return lines().map(function(coordinates) {\\n        return {\\n          type: \\\"LineString\\\",\\n          coordinates: coordinates\\n        };\\n      });\\n    };\\n    graticule.outline = function() {\\n      return {\\n        type: \\\"Polygon\\\",\\n        coordinates: [ X(X0).concat(Y(Y1).slice(1), X(X1).reverse().slice(1), Y(Y0).reverse().slice(1)) ]\\n      };\\n    };\\n    graticule.extent = function(_) {\\n      if (!arguments.length) return graticule.minorExtent();\\n      return graticule.majorExtent(_).minorExtent(_);\\n    };\\n    graticule.majorExtent = function(_) {\\n      if (!arguments.length) return [ [ X0, Y0 ], [ X1, Y1 ] ];\\n      X0 = +_[0][0], X1 = +_[1][0];\\n      Y0 = +_[0][1], Y1 = +_[1][1];\\n      if (X0 > X1) _ = X0, X0 = X1, X1 = _;\\n      if (Y0 > Y1) _ = Y0, Y0 = Y1, Y1 = _;\\n      return graticule.precision(precision);\\n    };\\n    graticule.minorExtent = function(_) {\\n      if (!arguments.length) return [ [ x0, y0 ], [ x1, y1 ] ];\\n      x0 = +_[0][0], x1 = +_[1][0];\\n      y0 = +_[0][1], y1 = +_[1][1];\\n      if (x0 > x1) _ = x0, x0 = x1, x1 = _;\\n      if (y0 > y1) _ = y0, y0 = y1, y1 = _;\\n      return graticule.precision(precision);\\n    };\\n    graticule.step = function(_) {\\n      if (!arguments.length) return graticule.minorStep();\\n      return graticule.majorStep(_).minorStep(_);\\n    };\\n    graticule.majorStep = function(_) {\\n      if (!arguments.length) return [ DX, DY ];\\n      DX = +_[0], DY = +_[1];\\n      return graticule;\\n    };\\n    graticule.minorStep = function(_) {\\n      if (!arguments.length) return [ dx, dy ];\\n      dx = +_[0], dy = +_[1];\\n      return graticule;\\n    };\\n    graticule.precision = function(_) {\\n      if (!arguments.length) return precision;\\n      precision = +_;\\n      x = d3_geo_graticuleX(y0, y1, 90);\\n      y = d3_geo_graticuleY(x0, x1, precision);\\n      X = d3_geo_graticuleX(Y0, Y1, 90);\\n      Y = d3_geo_graticuleY(X0, X1, precision);\\n      return graticule;\\n    };\\n    return graticule.majorExtent([ [ -180, -90 + ε ], [ 180, 90 - ε ] ]).minorExtent([ [ -180, -80 - ε ], [ 180, 80 + ε ] ]);\\n  };\\n  function d3_geo_graticuleX(y0, y1, dy) {\\n    var y = d3.range(y0, y1 - ε, dy).concat(y1);\\n    return function(x) {\\n      return y.map(function(y) {\\n        return [ x, y ];\\n      });\\n    };\\n  }\\n  function d3_geo_graticuleY(x0, x1, dx) {\\n    var x = d3.range(x0, x1 - ε, dx).concat(x1);\\n    return function(y) {\\n      return x.map(function(x) {\\n        return [ x, y ];\\n      });\\n    };\\n  }\\n  function d3_source(d) {\\n    return d.source;\\n  }\\n  function d3_target(d) {\\n    return d.target;\\n  }\\n  d3.geo.greatArc = function() {\\n    var source = d3_source, source_, target = d3_target, target_;\\n    function greatArc() {\\n      return {\\n        type: \\\"LineString\\\",\\n        coordinates: [ source_ || source.apply(this, arguments), target_ || target.apply(this, arguments) ]\\n      };\\n    }\\n    greatArc.distance = function() {\\n      return d3.geo.distance(source_ || source.apply(this, arguments), target_ || target.apply(this, arguments));\\n    };\\n    greatArc.source = function(_) {\\n      if (!arguments.length) return source;\\n      source = _, source_ = typeof _ === \\\"function\\\" ? null : _;\\n      return greatArc;\\n    };\\n    greatArc.target = function(_) {\\n      if (!arguments.length) return target;\\n      target = _, target_ = typeof _ === \\\"function\\\" ? null : _;\\n      return greatArc;\\n    };\\n    greatArc.precision = function() {\\n      return arguments.length ? greatArc : 0;\\n    };\\n    return greatArc;\\n  };\\n  d3.geo.interpolate = function(source, target) {\\n    return d3_geo_interpolate(source[0] * d3_radians, source[1] * d3_radians, target[0] * d3_radians, target[1] * d3_radians);\\n  };\\n  function d3_geo_interpolate(x0, y0, x1, y1) {\\n    var cy0 = Math.cos(y0), sy0 = Math.sin(y0), cy1 = Math.cos(y1), sy1 = Math.sin(y1), kx0 = cy0 * Math.cos(x0), ky0 = cy0 * Math.sin(x0), kx1 = cy1 * Math.cos(x1), ky1 = cy1 * Math.sin(x1), d = 2 * Math.asin(Math.sqrt(d3_haversin(y1 - y0) + cy0 * cy1 * d3_haversin(x1 - x0))), k = 1 / Math.sin(d);\\n    var interpolate = d ? function(t) {\\n      var B = Math.sin(t *= d) * k, A = Math.sin(d - t) * k, x = A * kx0 + B * kx1, y = A * ky0 + B * ky1, z = A * sy0 + B * sy1;\\n      return [ Math.atan2(y, x) * d3_degrees, Math.atan2(z, Math.sqrt(x * x + y * y)) * d3_degrees ];\\n    } : function() {\\n      return [ x0 * d3_degrees, y0 * d3_degrees ];\\n    };\\n    interpolate.distance = d;\\n    return interpolate;\\n  }\\n  d3.geo.length = function(object) {\\n    d3_geo_lengthSum = 0;\\n    d3.geo.stream(object, d3_geo_length);\\n    return d3_geo_lengthSum;\\n  };\\n  var d3_geo_lengthSum;\\n  var d3_geo_length = {\\n    sphere: d3_noop,\\n    point: d3_noop,\\n    lineStart: d3_geo_lengthLineStart,\\n    lineEnd: d3_noop,\\n    polygonStart: d3_noop,\\n    polygonEnd: d3_noop\\n  };\\n  function d3_geo_lengthLineStart() {\\n    var λ0, sinφ0, cosφ0;\\n    d3_geo_length.point = function(λ, φ) {\\n      λ0 = λ * d3_radians, sinφ0 = Math.sin(φ *= d3_radians), cosφ0 = Math.cos(φ);\\n      d3_geo_length.point = nextPoint;\\n    };\\n    d3_geo_length.lineEnd = function() {\\n      d3_geo_length.point = d3_geo_length.lineEnd = d3_noop;\\n    };\\n    function nextPoint(λ, φ) {\\n      var sinφ = Math.sin(φ *= d3_radians), cosφ = Math.cos(φ), t = abs((λ *= d3_radians) - λ0), cosΔλ = Math.cos(t);\\n      d3_geo_lengthSum += Math.atan2(Math.sqrt((t = cosφ * Math.sin(t)) * t + (t = cosφ0 * sinφ - sinφ0 * cosφ * cosΔλ) * t), sinφ0 * sinφ + cosφ0 * cosφ * cosΔλ);\\n      λ0 = λ, sinφ0 = sinφ, cosφ0 = cosφ;\\n    }\\n  }\\n  function d3_geo_azimuthal(scale, angle) {\\n    function azimuthal(λ, φ) {\\n      var cosλ = Math.cos(λ), cosφ = Math.cos(φ), k = scale(cosλ * cosφ);\\n      return [ k * cosφ * Math.sin(λ), k * Math.sin(φ) ];\\n    }\\n    azimuthal.invert = function(x, y) {\\n      var ρ = Math.sqrt(x * x + y * y), c = angle(ρ), sinc = Math.sin(c), cosc = Math.cos(c);\\n      return [ Math.atan2(x * sinc, ρ * cosc), Math.asin(ρ && y * sinc / ρ) ];\\n    };\\n    return azimuthal;\\n  }\\n  var d3_geo_azimuthalEqualArea = d3_geo_azimuthal(function(cosλcosφ) {\\n    return Math.sqrt(2 / (1 + cosλcosφ));\\n  }, function(ρ) {\\n    return 2 * Math.asin(ρ / 2);\\n  });\\n  (d3.geo.azimuthalEqualArea = function() {\\n    return d3_geo_projection(d3_geo_azimuthalEqualArea);\\n  }).raw = d3_geo_azimuthalEqualArea;\\n  var d3_geo_azimuthalEquidistant = d3_geo_azimuthal(function(cosλcosφ) {\\n    var c = Math.acos(cosλcosφ);\\n    return c && c / Math.sin(c);\\n  }, d3_identity);\\n  (d3.geo.azimuthalEquidistant = function() {\\n    return d3_geo_projection(d3_geo_azimuthalEquidistant);\\n  }).raw = d3_geo_azimuthalEquidistant;\\n  function d3_geo_conicConformal(φ0, φ1) {\\n    var cosφ0 = Math.cos(φ0), t = function(φ) {\\n      return Math.tan(π / 4 + φ / 2);\\n    }, n = φ0 === φ1 ? Math.sin(φ0) : Math.log(cosφ0 / Math.cos(φ1)) / Math.log(t(φ1) / t(φ0)), F = cosφ0 * Math.pow(t(φ0), n) / n;\\n    if (!n) return d3_geo_mercator;\\n    function forward(λ, φ) {\\n      if (F > 0) {\\n        if (φ < -halfπ + ε) φ = -halfπ + ε;\\n      } else {\\n        if (φ > halfπ - ε) φ = halfπ - ε;\\n      }\\n      var ρ = F / Math.pow(t(φ), n);\\n      return [ ρ * Math.sin(n * λ), F - ρ * Math.cos(n * λ) ];\\n    }\\n    forward.invert = function(x, y) {\\n      var ρ0_y = F - y, ρ = d3_sgn(n) * Math.sqrt(x * x + ρ0_y * ρ0_y);\\n      return [ Math.atan2(x, ρ0_y) / n, 2 * Math.atan(Math.pow(F / ρ, 1 / n)) - halfπ ];\\n    };\\n    return forward;\\n  }\\n  (d3.geo.conicConformal = function() {\\n    return d3_geo_conic(d3_geo_conicConformal);\\n  }).raw = d3_geo_conicConformal;\\n  function d3_geo_conicEquidistant(φ0, φ1) {\\n    var cosφ0 = Math.cos(φ0), n = φ0 === φ1 ? Math.sin(φ0) : (cosφ0 - Math.cos(φ1)) / (φ1 - φ0), G = cosφ0 / n + φ0;\\n    if (abs(n) < ε) return d3_geo_equirectangular;\\n    function forward(λ, φ) {\\n      var ρ = G - φ;\\n      return [ ρ * Math.sin(n * λ), G - ρ * Math.cos(n * λ) ];\\n    }\\n    forward.invert = function(x, y) {\\n      var ρ0_y = G - y;\\n      return [ Math.atan2(x, ρ0_y) / n, G - d3_sgn(n) * Math.sqrt(x * x + ρ0_y * ρ0_y) ];\\n    };\\n    return forward;\\n  }\\n  (d3.geo.conicEquidistant = function() {\\n    return d3_geo_conic(d3_geo_conicEquidistant);\\n  }).raw = d3_geo_conicEquidistant;\\n  var d3_geo_gnomonic = d3_geo_azimuthal(function(cosλcosφ) {\\n    return 1 / cosλcosφ;\\n  }, Math.atan);\\n  (d3.geo.gnomonic = function() {\\n    return d3_geo_projection(d3_geo_gnomonic);\\n  }).raw = d3_geo_gnomonic;\\n  function d3_geo_mercator(λ, φ) {\\n    return [ λ, Math.log(Math.tan(π / 4 + φ / 2)) ];\\n  }\\n  d3_geo_mercator.invert = function(x, y) {\\n    return [ x, 2 * Math.atan(Math.exp(y)) - halfπ ];\\n  };\\n  function d3_geo_mercatorProjection(project) {\\n    var m = d3_geo_projection(project), scale = m.scale, translate = m.translate, clipExtent = m.clipExtent, clipAuto;\\n    m.scale = function() {\\n      var v = scale.apply(m, arguments);\\n      return v === m ? clipAuto ? m.clipExtent(null) : m : v;\\n    };\\n    m.translate = function() {\\n      var v = translate.apply(m, arguments);\\n      return v === m ? clipAuto ? m.clipExtent(null) : m : v;\\n    };\\n    m.clipExtent = function(_) {\\n      var v = clipExtent.apply(m, arguments);\\n      if (v === m) {\\n        if (clipAuto = _ == null) {\\n          var k = π * scale(), t = translate();\\n          clipExtent([ [ t[0] - k, t[1] - k ], [ t[0] + k, t[1] + k ] ]);\\n        }\\n      } else if (clipAuto) {\\n        v = null;\\n      }\\n      return v;\\n    };\\n    return m.clipExtent(null);\\n  }\\n  (d3.geo.mercator = function() {\\n    return d3_geo_mercatorProjection(d3_geo_mercator);\\n  }).raw = d3_geo_mercator;\\n  var d3_geo_orthographic = d3_geo_azimuthal(function() {\\n    return 1;\\n  }, Math.asin);\\n  (d3.geo.orthographic = function() {\\n    return d3_geo_projection(d3_geo_orthographic);\\n  }).raw = d3_geo_orthographic;\\n  var d3_geo_stereographic = d3_geo_azimuthal(function(cosλcosφ) {\\n    return 1 / (1 + cosλcosφ);\\n  }, function(ρ) {\\n    return 2 * Math.atan(ρ);\\n  });\\n  (d3.geo.stereographic = function() {\\n    return d3_geo_projection(d3_geo_stereographic);\\n  }).raw = d3_geo_stereographic;\\n  function d3_geo_transverseMercator(λ, φ) {\\n    return [ Math.log(Math.tan(π / 4 + φ / 2)), -λ ];\\n  }\\n  d3_geo_transverseMercator.invert = function(x, y) {\\n    return [ -y, 2 * Math.atan(Math.exp(x)) - halfπ ];\\n  };\\n  (d3.geo.transverseMercator = function() {\\n    var projection = d3_geo_mercatorProjection(d3_geo_transverseMercator), center = projection.center, rotate = projection.rotate;\\n    projection.center = function(_) {\\n      return _ ? center([ -_[1], _[0] ]) : (_ = center(), [ _[1], -_[0] ]);\\n    };\\n    projection.rotate = function(_) {\\n      return _ ? rotate([ _[0], _[1], _.length > 2 ? _[2] + 90 : 90 ]) : (_ = rotate(), \\n      [ _[0], _[1], _[2] - 90 ]);\\n    };\\n    return rotate([ 0, 0, 90 ]);\\n  }).raw = d3_geo_transverseMercator;\\n  d3.geom = {};\\n  function d3_geom_pointX(d) {\\n    return d[0];\\n  }\\n  function d3_geom_pointY(d) {\\n    return d[1];\\n  }\\n  d3.geom.hull = function(vertices) {\\n    var x = d3_geom_pointX, y = d3_geom_pointY;\\n    if (arguments.length) return hull(vertices);\\n    function hull(data) {\\n      if (data.length < 3) return [];\\n      var fx = d3_functor(x), fy = d3_functor(y), i, n = data.length, points = [], flippedPoints = [];\\n      for (i = 0; i < n; i++) {\\n        points.push([ +fx.call(this, data[i], i), +fy.call(this, data[i], i), i ]);\\n      }\\n      points.sort(d3_geom_hullOrder);\\n      for (i = 0; i < n; i++) flippedPoints.push([ points[i][0], -points[i][1] ]);\\n      var upper = d3_geom_hullUpper(points), lower = d3_geom_hullUpper(flippedPoints);\\n      var skipLeft = lower[0] === upper[0], skipRight = lower[lower.length - 1] === upper[upper.length - 1], polygon = [];\\n      for (i = upper.length - 1; i >= 0; --i) polygon.push(data[points[upper[i]][2]]);\\n      for (i = +skipLeft; i < lower.length - skipRight; ++i) polygon.push(data[points[lower[i]][2]]);\\n      return polygon;\\n    }\\n    hull.x = function(_) {\\n      return arguments.length ? (x = _, hull) : x;\\n    };\\n    hull.y = function(_) {\\n      return arguments.length ? (y = _, hull) : y;\\n    };\\n    return hull;\\n  };\\n  function d3_geom_hullUpper(points) {\\n    var n = points.length, hull = [ 0, 1 ], hs = 2;\\n    for (var i = 2; i < n; i++) {\\n      while (hs > 1 && d3_cross2d(points[hull[hs - 2]], points[hull[hs - 1]], points[i]) <= 0) --hs;\\n      hull[hs++] = i;\\n    }\\n    return hull.slice(0, hs);\\n  }\\n  function d3_geom_hullOrder(a, b) {\\n    return a[0] - b[0] || a[1] - b[1];\\n  }\\n  d3.geom.polygon = function(coordinates) {\\n    d3_subclass(coordinates, d3_geom_polygonPrototype);\\n    return coordinates;\\n  };\\n  var d3_geom_polygonPrototype = d3.geom.polygon.prototype = [];\\n  d3_geom_polygonPrototype.area = function() {\\n    var i = -1, n = this.length, a, b = this[n - 1], area = 0;\\n    while (++i < n) {\\n      a = b;\\n      b = this[i];\\n      area += a[1] * b[0] - a[0] * b[1];\\n    }\\n    return area * .5;\\n  };\\n  d3_geom_polygonPrototype.centroid = function(k) {\\n    var i = -1, n = this.length, x = 0, y = 0, a, b = this[n - 1], c;\\n    if (!arguments.length) k = -1 / (6 * this.area());\\n    while (++i < n) {\\n      a = b;\\n      b = this[i];\\n      c = a[0] * b[1] - b[0] * a[1];\\n      x += (a[0] + b[0]) * c;\\n      y += (a[1] + b[1]) * c;\\n    }\\n    return [ x * k, y * k ];\\n  };\\n  d3_geom_polygonPrototype.clip = function(subject) {\\n    var input, closed = d3_geom_polygonClosed(subject), i = -1, n = this.length - d3_geom_polygonClosed(this), j, m, a = this[n - 1], b, c, d;\\n    while (++i < n) {\\n      input = subject.slice();\\n      subject.length = 0;\\n      b = this[i];\\n      c = input[(m = input.length - closed) - 1];\\n      j = -1;\\n      while (++j < m) {\\n        d = input[j];\\n        if (d3_geom_polygonInside(d, a, b)) {\\n          if (!d3_geom_polygonInside(c, a, b)) {\\n            subject.push(d3_geom_polygonIntersect(c, d, a, b));\\n          }\\n          subject.push(d);\\n        } else if (d3_geom_polygonInside(c, a, b)) {\\n          subject.push(d3_geom_polygonIntersect(c, d, a, b));\\n        }\\n        c = d;\\n      }\\n      if (closed) subject.push(subject[0]);\\n      a = b;\\n    }\\n    return subject;\\n  };\\n  function d3_geom_polygonInside(p, a, b) {\\n    return (b[0] - a[0]) * (p[1] - a[1]) < (b[1] - a[1]) * (p[0] - a[0]);\\n  }\\n  function d3_geom_polygonIntersect(c, d, a, b) {\\n    var x1 = c[0], x3 = a[0], x21 = d[0] - x1, x43 = b[0] - x3, y1 = c[1], y3 = a[1], y21 = d[1] - y1, y43 = b[1] - y3, ua = (x43 * (y1 - y3) - y43 * (x1 - x3)) / (y43 * x21 - x43 * y21);\\n    return [ x1 + ua * x21, y1 + ua * y21 ];\\n  }\\n  function d3_geom_polygonClosed(coordinates) {\\n    var a = coordinates[0], b = coordinates[coordinates.length - 1];\\n    return !(a[0] - b[0] || a[1] - b[1]);\\n  }\\n  var d3_geom_voronoiEdges, d3_geom_voronoiCells, d3_geom_voronoiBeaches, d3_geom_voronoiBeachPool = [], d3_geom_voronoiFirstCircle, d3_geom_voronoiCircles, d3_geom_voronoiCirclePool = [];\\n  function d3_geom_voronoiBeach() {\\n    d3_geom_voronoiRedBlackNode(this);\\n    this.edge = this.site = this.circle = null;\\n  }\\n  function d3_geom_voronoiCreateBeach(site) {\\n    var beach = d3_geom_voronoiBeachPool.pop() || new d3_geom_voronoiBeach();\\n    beach.site = site;\\n    return beach;\\n  }\\n  function d3_geom_voronoiDetachBeach(beach) {\\n    d3_geom_voronoiDetachCircle(beach);\\n    d3_geom_voronoiBeaches.remove(beach);\\n    d3_geom_voronoiBeachPool.push(beach);\\n    d3_geom_voronoiRedBlackNode(beach);\\n  }\\n  function d3_geom_voronoiRemoveBeach(beach) {\\n    var circle = beach.circle, x = circle.x, y = circle.cy, vertex = {\\n      x: x,\\n      y: y\\n    }, previous = beach.P, next = beach.N, disappearing = [ beach ];\\n    d3_geom_voronoiDetachBeach(beach);\\n    var lArc = previous;\\n    while (lArc.circle && abs(x - lArc.circle.x) < ε && abs(y - lArc.circle.cy) < ε) {\\n      previous = lArc.P;\\n      disappearing.unshift(lArc);\\n      d3_geom_voronoiDetachBeach(lArc);\\n      lArc = previous;\\n    }\\n    disappearing.unshift(lArc);\\n    d3_geom_voronoiDetachCircle(lArc);\\n    var rArc = next;\\n    while (rArc.circle && abs(x - rArc.circle.x) < ε && abs(y - rArc.circle.cy) < ε) {\\n      next = rArc.N;\\n      disappearing.push(rArc);\\n      d3_geom_voronoiDetachBeach(rArc);\\n      rArc = next;\\n    }\\n    disappearing.push(rArc);\\n    d3_geom_voronoiDetachCircle(rArc);\\n    var nArcs = disappearing.length, iArc;\\n    for (iArc = 1; iArc < nArcs; ++iArc) {\\n      rArc = disappearing[iArc];\\n      lArc = disappearing[iArc - 1];\\n      d3_geom_voronoiSetEdgeEnd(rArc.edge, lArc.site, rArc.site, vertex);\\n    }\\n    lArc = disappearing[0];\\n    rArc = disappearing[nArcs - 1];\\n    rArc.edge = d3_geom_voronoiCreateEdge(lArc.site, rArc.site, null, vertex);\\n    d3_geom_voronoiAttachCircle(lArc);\\n    d3_geom_voronoiAttachCircle(rArc);\\n  }\\n  function d3_geom_voronoiAddBeach(site) {\\n    var x = site.x, directrix = site.y, lArc, rArc, dxl, dxr, node = d3_geom_voronoiBeaches._;\\n    while (node) {\\n      dxl = d3_geom_voronoiLeftBreakPoint(node, directrix) - x;\\n      if (dxl > ε) node = node.L; else {\\n        dxr = x - d3_geom_voronoiRightBreakPoint(node, directrix);\\n        if (dxr > ε) {\\n          if (!node.R) {\\n            lArc = node;\\n            break;\\n          }\\n          node = node.R;\\n        } else {\\n          if (dxl > -ε) {\\n            lArc = node.P;\\n            rArc = node;\\n          } else if (dxr > -ε) {\\n            lArc = node;\\n            rArc = node.N;\\n          } else {\\n            lArc = rArc = node;\\n          }\\n          break;\\n        }\\n      }\\n    }\\n    var newArc = d3_geom_voronoiCreateBeach(site);\\n    d3_geom_voronoiBeaches.insert(lArc, newArc);\\n    if (!lArc && !rArc) return;\\n    if (lArc === rArc) {\\n      d3_geom_voronoiDetachCircle(lArc);\\n      rArc = d3_geom_voronoiCreateBeach(lArc.site);\\n      d3_geom_voronoiBeaches.insert(newArc, rArc);\\n      newArc.edge = rArc.edge = d3_geom_voronoiCreateEdge(lArc.site, newArc.site);\\n      d3_geom_voronoiAttachCircle(lArc);\\n      d3_geom_voronoiAttachCircle(rArc);\\n      return;\\n    }\\n    if (!rArc) {\\n      newArc.edge = d3_geom_voronoiCreateEdge(lArc.site, newArc.site);\\n      return;\\n    }\\n    d3_geom_voronoiDetachCircle(lArc);\\n    d3_geom_voronoiDetachCircle(rArc);\\n    var lSite = lArc.site, ax = lSite.x, ay = lSite.y, bx = site.x - ax, by = site.y - ay, rSite = rArc.site, cx = rSite.x - ax, cy = rSite.y - ay, d = 2 * (bx * cy - by * cx), hb = bx * bx + by * by, hc = cx * cx + cy * cy, vertex = {\\n      x: (cy * hb - by * hc) / d + ax,\\n      y: (bx * hc - cx * hb) / d + ay\\n    };\\n    d3_geom_voronoiSetEdgeEnd(rArc.edge, lSite, rSite, vertex);\\n    newArc.edge = d3_geom_voronoiCreateEdge(lSite, site, null, vertex);\\n    rArc.edge = d3_geom_voronoiCreateEdge(site, rSite, null, vertex);\\n    d3_geom_voronoiAttachCircle(lArc);\\n    d3_geom_voronoiAttachCircle(rArc);\\n  }\\n  function d3_geom_voronoiLeftBreakPoint(arc, directrix) {\\n    var site = arc.site, rfocx = site.x, rfocy = site.y, pby2 = rfocy - directrix;\\n    if (!pby2) return rfocx;\\n    var lArc = arc.P;\\n    if (!lArc) return -Infinity;\\n    site = lArc.site;\\n    var lfocx = site.x, lfocy = site.y, plby2 = lfocy - directrix;\\n    if (!plby2) return lfocx;\\n    var hl = lfocx - rfocx, aby2 = 1 / pby2 - 1 / plby2, b = hl / plby2;\\n    if (aby2) return (-b + Math.sqrt(b * b - 2 * aby2 * (hl * hl / (-2 * plby2) - lfocy + plby2 / 2 + rfocy - pby2 / 2))) / aby2 + rfocx;\\n    return (rfocx + lfocx) / 2;\\n  }\\n  function d3_geom_voronoiRightBreakPoint(arc, directrix) {\\n    var rArc = arc.N;\\n    if (rArc) return d3_geom_voronoiLeftBreakPoint(rArc, directrix);\\n    var site = arc.site;\\n    return site.y === directrix ? site.x : Infinity;\\n  }\\n  function d3_geom_voronoiCell(site) {\\n    this.site = site;\\n    this.edges = [];\\n  }\\n  d3_geom_voronoiCell.prototype.prepare = function() {\\n    var halfEdges = this.edges, iHalfEdge = halfEdges.length, edge;\\n    while (iHalfEdge--) {\\n      edge = halfEdges[iHalfEdge].edge;\\n      if (!edge.b || !edge.a) halfEdges.splice(iHalfEdge, 1);\\n    }\\n    halfEdges.sort(d3_geom_voronoiHalfEdgeOrder);\\n    return halfEdges.length;\\n  };\\n  function d3_geom_voronoiCloseCells(extent) {\\n    var x0 = extent[0][0], x1 = extent[1][0], y0 = extent[0][1], y1 = extent[1][1], x2, y2, x3, y3, cells = d3_geom_voronoiCells, iCell = cells.length, cell, iHalfEdge, halfEdges, nHalfEdges, start, end;\\n    while (iCell--) {\\n      cell = cells[iCell];\\n      if (!cell || !cell.prepare()) continue;\\n      halfEdges = cell.edges;\\n      nHalfEdges = halfEdges.length;\\n      iHalfEdge = 0;\\n      while (iHalfEdge < nHalfEdges) {\\n        end = halfEdges[iHalfEdge].end(), x3 = end.x, y3 = end.y;\\n        start = halfEdges[++iHalfEdge % nHalfEdges].start(), x2 = start.x, y2 = start.y;\\n        if (abs(x3 - x2) > ε || abs(y3 - y2) > ε) {\\n          halfEdges.splice(iHalfEdge, 0, new d3_geom_voronoiHalfEdge(d3_geom_voronoiCreateBorderEdge(cell.site, end, abs(x3 - x0) < ε && y1 - y3 > ε ? {\\n            x: x0,\\n            y: abs(x2 - x0) < ε ? y2 : y1\\n          } : abs(y3 - y1) < ε && x1 - x3 > ε ? {\\n            x: abs(y2 - y1) < ε ? x2 : x1,\\n            y: y1\\n          } : abs(x3 - x1) < ε && y3 - y0 > ε ? {\\n            x: x1,\\n            y: abs(x2 - x1) < ε ? y2 : y0\\n          } : abs(y3 - y0) < ε && x3 - x0 > ε ? {\\n            x: abs(y2 - y0) < ε ? x2 : x0,\\n            y: y0\\n          } : null), cell.site, null));\\n          ++nHalfEdges;\\n        }\\n      }\\n    }\\n  }\\n  function d3_geom_voronoiHalfEdgeOrder(a, b) {\\n    return b.angle - a.angle;\\n  }\\n  function d3_geom_voronoiCircle() {\\n    d3_geom_voronoiRedBlackNode(this);\\n    this.x = this.y = this.arc = this.site = this.cy = null;\\n  }\\n  function d3_geom_voronoiAttachCircle(arc) {\\n    var lArc = arc.P, rArc = arc.N;\\n    if (!lArc || !rArc) return;\\n    var lSite = lArc.site, cSite = arc.site, rSite = rArc.site;\\n    if (lSite === rSite) return;\\n    var bx = cSite.x, by = cSite.y, ax = lSite.x - bx, ay = lSite.y - by, cx = rSite.x - bx, cy = rSite.y - by;\\n    var d = 2 * (ax * cy - ay * cx);\\n    if (d >= -ε2) return;\\n    var ha = ax * ax + ay * ay, hc = cx * cx + cy * cy, x = (cy * ha - ay * hc) / d, y = (ax * hc - cx * ha) / d, cy = y + by;\\n    var circle = d3_geom_voronoiCirclePool.pop() || new d3_geom_voronoiCircle();\\n    circle.arc = arc;\\n    circle.site = cSite;\\n    circle.x = x + bx;\\n    circle.y = cy + Math.sqrt(x * x + y * y);\\n    circle.cy = cy;\\n    arc.circle = circle;\\n    var before = null, node = d3_geom_voronoiCircles._;\\n    while (node) {\\n      if (circle.y < node.y || circle.y === node.y && circle.x <= node.x) {\\n        if (node.L) node = node.L; else {\\n          before = node.P;\\n          break;\\n        }\\n      } else {\\n        if (node.R) node = node.R; else {\\n          before = node;\\n          break;\\n        }\\n      }\\n    }\\n    d3_geom_voronoiCircles.insert(before, circle);\\n    if (!before) d3_geom_voronoiFirstCircle = circle;\\n  }\\n  function d3_geom_voronoiDetachCircle(arc) {\\n    var circle = arc.circle;\\n    if (circle) {\\n      if (!circle.P) d3_geom_voronoiFirstCircle = circle.N;\\n      d3_geom_voronoiCircles.remove(circle);\\n      d3_geom_voronoiCirclePool.push(circle);\\n      d3_geom_voronoiRedBlackNode(circle);\\n      arc.circle = null;\\n    }\\n  }\\n  function d3_geom_voronoiClipEdges(extent) {\\n    var edges = d3_geom_voronoiEdges, clip = d3_geom_clipLine(extent[0][0], extent[0][1], extent[1][0], extent[1][1]), i = edges.length, e;\\n    while (i--) {\\n      e = edges[i];\\n      if (!d3_geom_voronoiConnectEdge(e, extent) || !clip(e) || abs(e.a.x - e.b.x) < ε && abs(e.a.y - e.b.y) < ε) {\\n        e.a = e.b = null;\\n        edges.splice(i, 1);\\n      }\\n    }\\n  }\\n  function d3_geom_voronoiConnectEdge(edge, extent) {\\n    var vb = edge.b;\\n    if (vb) return true;\\n    var va = edge.a, x0 = extent[0][0], x1 = extent[1][0], y0 = extent[0][1], y1 = extent[1][1], lSite = edge.l, rSite = edge.r, lx = lSite.x, ly = lSite.y, rx = rSite.x, ry = rSite.y, fx = (lx + rx) / 2, fy = (ly + ry) / 2, fm, fb;\\n    if (ry === ly) {\\n      if (fx < x0 || fx >= x1) return;\\n      if (lx > rx) {\\n        if (!va) va = {\\n          x: fx,\\n          y: y0\\n        }; else if (va.y >= y1) return;\\n        vb = {\\n          x: fx,\\n          y: y1\\n        };\\n      } else {\\n        if (!va) va = {\\n          x: fx,\\n          y: y1\\n        }; else if (va.y < y0) return;\\n        vb = {\\n          x: fx,\\n          y: y0\\n        };\\n      }\\n    } else {\\n      fm = (lx - rx) / (ry - ly);\\n      fb = fy - fm * fx;\\n      if (fm < -1 || fm > 1) {\\n        if (lx > rx) {\\n          if (!va) va = {\\n            x: (y0 - fb) / fm,\\n            y: y0\\n          }; else if (va.y >= y1) return;\\n          vb = {\\n            x: (y1 - fb) / fm,\\n            y: y1\\n          };\\n        } else {\\n          if (!va) va = {\\n            x: (y1 - fb) / fm,\\n            y: y1\\n          }; else if (va.y < y0) return;\\n          vb = {\\n            x: (y0 - fb) / fm,\\n            y: y0\\n          };\\n        }\\n      } else {\\n        if (ly < ry) {\\n          if (!va) va = {\\n            x: x0,\\n            y: fm * x0 + fb\\n          }; else if (va.x >= x1) return;\\n          vb = {\\n            x: x1,\\n            y: fm * x1 + fb\\n          };\\n        } else {\\n          if (!va) va = {\\n            x: x1,\\n            y: fm * x1 + fb\\n          }; else if (va.x < x0) return;\\n          vb = {\\n            x: x0,\\n            y: fm * x0 + fb\\n          };\\n        }\\n      }\\n    }\\n    edge.a = va;\\n    edge.b = vb;\\n    return true;\\n  }\\n  function d3_geom_voronoiEdge(lSite, rSite) {\\n    this.l = lSite;\\n    this.r = rSite;\\n    this.a = this.b = null;\\n  }\\n  function d3_geom_voronoiCreateEdge(lSite, rSite, va, vb) {\\n    var edge = new d3_geom_voronoiEdge(lSite, rSite);\\n    d3_geom_voronoiEdges.push(edge);\\n    if (va) d3_geom_voronoiSetEdgeEnd(edge, lSite, rSite, va);\\n    if (vb) d3_geom_voronoiSetEdgeEnd(edge, rSite, lSite, vb);\\n    d3_geom_voronoiCells[lSite.i].edges.push(new d3_geom_voronoiHalfEdge(edge, lSite, rSite));\\n    d3_geom_voronoiCells[rSite.i].edges.push(new d3_geom_voronoiHalfEdge(edge, rSite, lSite));\\n    return edge;\\n  }\\n  function d3_geom_voronoiCreateBorderEdge(lSite, va, vb) {\\n    var edge = new d3_geom_voronoiEdge(lSite, null);\\n    edge.a = va;\\n    edge.b = vb;\\n    d3_geom_voronoiEdges.push(edge);\\n    return edge;\\n  }\\n  function d3_geom_voronoiSetEdgeEnd(edge, lSite, rSite, vertex) {\\n    if (!edge.a && !edge.b) {\\n      edge.a = vertex;\\n      edge.l = lSite;\\n      edge.r = rSite;\\n    } else if (edge.l === rSite) {\\n      edge.b = vertex;\\n    } else {\\n      edge.a = vertex;\\n    }\\n  }\\n  function d3_geom_voronoiHalfEdge(edge, lSite, rSite) {\\n    var va = edge.a, vb = edge.b;\\n    this.edge = edge;\\n    this.site = lSite;\\n    this.angle = rSite ? Math.atan2(rSite.y - lSite.y, rSite.x - lSite.x) : edge.l === lSite ? Math.atan2(vb.x - va.x, va.y - vb.y) : Math.atan2(va.x - vb.x, vb.y - va.y);\\n  }\\n  d3_geom_voronoiHalfEdge.prototype = {\\n    start: function() {\\n      return this.edge.l === this.site ? this.edge.a : this.edge.b;\\n    },\\n    end: function() {\\n      return this.edge.l === this.site ? this.edge.b : this.edge.a;\\n    }\\n  };\\n  function d3_geom_voronoiRedBlackTree() {\\n    this._ = null;\\n  }\\n  function d3_geom_voronoiRedBlackNode(node) {\\n    node.U = node.C = node.L = node.R = node.P = node.N = null;\\n  }\\n  d3_geom_voronoiRedBlackTree.prototype = {\\n    insert: function(after, node) {\\n      var parent, grandpa, uncle;\\n      if (after) {\\n        node.P = after;\\n        node.N = after.N;\\n        if (after.N) after.N.P = node;\\n        after.N = node;\\n        if (after.R) {\\n          after = after.R;\\n          while (after.L) after = after.L;\\n          after.L = node;\\n        } else {\\n          after.R = node;\\n        }\\n        parent = after;\\n      } else if (this._) {\\n        after = d3_geom_voronoiRedBlackFirst(this._);\\n        node.P = null;\\n        node.N = after;\\n        after.P = after.L = node;\\n        parent = after;\\n      } else {\\n        node.P = node.N = null;\\n        this._ = node;\\n        parent = null;\\n      }\\n      node.L = node.R = null;\\n      node.U = parent;\\n      node.C = true;\\n      after = node;\\n      while (parent && parent.C) {\\n        grandpa = parent.U;\\n        if (parent === grandpa.L) {\\n          uncle = grandpa.R;\\n          if (uncle && uncle.C) {\\n            parent.C = uncle.C = false;\\n            grandpa.C = true;\\n            after = grandpa;\\n          } else {\\n            if (after === parent.R) {\\n              d3_geom_voronoiRedBlackRotateLeft(this, parent);\\n              after = parent;\\n              parent = after.U;\\n            }\\n            parent.C = false;\\n            grandpa.C = true;\\n            d3_geom_voronoiRedBlackRotateRight(this, grandpa);\\n          }\\n        } else {\\n          uncle = grandpa.L;\\n          if (uncle && uncle.C) {\\n            parent.C = uncle.C = false;\\n            grandpa.C = true;\\n            after = grandpa;\\n          } else {\\n            if (after === parent.L) {\\n              d3_geom_voronoiRedBlackRotateRight(this, parent);\\n              after = parent;\\n              parent = after.U;\\n            }\\n            parent.C = false;\\n            grandpa.C = true;\\n            d3_geom_voronoiRedBlackRotateLeft(this, grandpa);\\n          }\\n        }\\n        parent = after.U;\\n      }\\n      this._.C = false;\\n    },\\n    remove: function(node) {\\n      if (node.N) node.N.P = node.P;\\n      if (node.P) node.P.N = node.N;\\n      node.N = node.P = null;\\n      var parent = node.U, sibling, left = node.L, right = node.R, next, red;\\n      if (!left) next = right; else if (!right) next = left; else next = d3_geom_voronoiRedBlackFirst(right);\\n      if (parent) {\\n        if (parent.L === node) parent.L = next; else parent.R = next;\\n      } else {\\n        this._ = next;\\n      }\\n      if (left && right) {\\n        red = next.C;\\n        next.C = node.C;\\n        next.L = left;\\n        left.U = next;\\n        if (next !== right) {\\n          parent = next.U;\\n          next.U = node.U;\\n          node = next.R;\\n          parent.L = node;\\n          next.R = right;\\n          right.U = next;\\n        } else {\\n          next.U = parent;\\n          parent = next;\\n          node = next.R;\\n        }\\n      } else {\\n        red = node.C;\\n        node = next;\\n      }\\n      if (node) node.U = parent;\\n      if (red) return;\\n      if (node && node.C) {\\n        node.C = false;\\n        return;\\n      }\\n      do {\\n        if (node === this._) break;\\n        if (node === parent.L) {\\n          sibling = parent.R;\\n          if (sibling.C) {\\n            sibling.C = false;\\n            parent.C = true;\\n            d3_geom_voronoiRedBlackRotateLeft(this, parent);\\n            sibling = parent.R;\\n          }\\n          if (sibling.L && sibling.L.C || sibling.R && sibling.R.C) {\\n            if (!sibling.R || !sibling.R.C) {\\n              sibling.L.C = false;\\n              sibling.C = true;\\n              d3_geom_voronoiRedBlackRotateRight(this, sibling);\\n              sibling = parent.R;\\n            }\\n            sibling.C = parent.C;\\n            parent.C = sibling.R.C = false;\\n            d3_geom_voronoiRedBlackRotateLeft(this, parent);\\n            node = this._;\\n            break;\\n          }\\n        } else {\\n          sibling = parent.L;\\n          if (sibling.C) {\\n            sibling.C = false;\\n            parent.C = true;\\n            d3_geom_voronoiRedBlackRotateRight(this, parent);\\n            sibling = parent.L;\\n          }\\n          if (sibling.L && sibling.L.C || sibling.R && sibling.R.C) {\\n            if (!sibling.L || !sibling.L.C) {\\n              sibling.R.C = false;\\n              sibling.C = true;\\n              d3_geom_voronoiRedBlackRotateLeft(this, sibling);\\n              sibling = parent.L;\\n            }\\n            sibling.C = parent.C;\\n            parent.C = sibling.L.C = false;\\n            d3_geom_voronoiRedBlackRotateRight(this, parent);\\n            node = this._;\\n            break;\\n          }\\n        }\\n        sibling.C = true;\\n        node = parent;\\n        parent = parent.U;\\n      } while (!node.C);\\n      if (node) node.C = false;\\n    }\\n  };\\n  function d3_geom_voronoiRedBlackRotateLeft(tree, node) {\\n    var p = node, q = node.R, parent = p.U;\\n    if (parent) {\\n      if (parent.L === p) parent.L = q; else parent.R = q;\\n    } else {\\n      tree._ = q;\\n    }\\n    q.U = parent;\\n    p.U = q;\\n    p.R = q.L;\\n    if (p.R) p.R.U = p;\\n    q.L = p;\\n  }\\n  function d3_geom_voronoiRedBlackRotateRight(tree, node) {\\n    var p = node, q = node.L, parent = p.U;\\n    if (parent) {\\n      if (parent.L === p) parent.L = q; else parent.R = q;\\n    } else {\\n      tree._ = q;\\n    }\\n    q.U = parent;\\n    p.U = q;\\n    p.L = q.R;\\n    if (p.L) p.L.U = p;\\n    q.R = p;\\n  }\\n  function d3_geom_voronoiRedBlackFirst(node) {\\n    while (node.L) node = node.L;\\n    return node;\\n  }\\n  function d3_geom_voronoi(sites, bbox) {\\n    var site = sites.sort(d3_geom_voronoiVertexOrder).pop(), x0, y0, circle;\\n    d3_geom_voronoiEdges = [];\\n    d3_geom_voronoiCells = new Array(sites.length);\\n    d3_geom_voronoiBeaches = new d3_geom_voronoiRedBlackTree();\\n    d3_geom_voronoiCircles = new d3_geom_voronoiRedBlackTree();\\n    while (true) {\\n      circle = d3_geom_voronoiFirstCircle;\\n      if (site && (!circle || site.y < circle.y || site.y === circle.y && site.x < circle.x)) {\\n        if (site.x !== x0 || site.y !== y0) {\\n          d3_geom_voronoiCells[site.i] = new d3_geom_voronoiCell(site);\\n          d3_geom_voronoiAddBeach(site);\\n          x0 = site.x, y0 = site.y;\\n        }\\n        site = sites.pop();\\n      } else if (circle) {\\n        d3_geom_voronoiRemoveBeach(circle.arc);\\n      } else {\\n        break;\\n      }\\n    }\\n    if (bbox) d3_geom_voronoiClipEdges(bbox), d3_geom_voronoiCloseCells(bbox);\\n    var diagram = {\\n      cells: d3_geom_voronoiCells,\\n      edges: d3_geom_voronoiEdges\\n    };\\n    d3_geom_voronoiBeaches = d3_geom_voronoiCircles = d3_geom_voronoiEdges = d3_geom_voronoiCells = null;\\n    return diagram;\\n  }\\n  function d3_geom_voronoiVertexOrder(a, b) {\\n    return b.y - a.y || b.x - a.x;\\n  }\\n  d3.geom.voronoi = function(points) {\\n    var x = d3_geom_pointX, y = d3_geom_pointY, fx = x, fy = y, clipExtent = d3_geom_voronoiClipExtent;\\n    if (points) return voronoi(points);\\n    function voronoi(data) {\\n      var polygons = new Array(data.length), x0 = clipExtent[0][0], y0 = clipExtent[0][1], x1 = clipExtent[1][0], y1 = clipExtent[1][1];\\n      d3_geom_voronoi(sites(data), clipExtent).cells.forEach(function(cell, i) {\\n        var edges = cell.edges, site = cell.site, polygon = polygons[i] = edges.length ? edges.map(function(e) {\\n          var s = e.start();\\n          return [ s.x, s.y ];\\n        }) : site.x >= x0 && site.x <= x1 && site.y >= y0 && site.y <= y1 ? [ [ x0, y1 ], [ x1, y1 ], [ x1, y0 ], [ x0, y0 ] ] : [];\\n        polygon.point = data[i];\\n      });\\n      return polygons;\\n    }\\n    function sites(data) {\\n      return data.map(function(d, i) {\\n        return {\\n          x: Math.round(fx(d, i) / ε) * ε,\\n          y: Math.round(fy(d, i) / ε) * ε,\\n          i: i\\n        };\\n      });\\n    }\\n    voronoi.links = function(data) {\\n      return d3_geom_voronoi(sites(data)).edges.filter(function(edge) {\\n        return edge.l && edge.r;\\n      }).map(function(edge) {\\n        return {\\n          source: data[edge.l.i],\\n          target: data[edge.r.i]\\n        };\\n      });\\n    };\\n    voronoi.triangles = function(data) {\\n      var triangles = [];\\n      d3_geom_voronoi(sites(data)).cells.forEach(function(cell, i) {\\n        var site = cell.site, edges = cell.edges.sort(d3_geom_voronoiHalfEdgeOrder), j = -1, m = edges.length, e0, s0, e1 = edges[m - 1].edge, s1 = e1.l === site ? e1.r : e1.l;\\n        while (++j < m) {\\n          e0 = e1;\\n          s0 = s1;\\n          e1 = edges[j].edge;\\n          s1 = e1.l === site ? e1.r : e1.l;\\n          if (i < s0.i && i < s1.i && d3_geom_voronoiTriangleArea(site, s0, s1) < 0) {\\n            triangles.push([ data[i], data[s0.i], data[s1.i] ]);\\n          }\\n        }\\n      });\\n      return triangles;\\n    };\\n    voronoi.x = function(_) {\\n      return arguments.length ? (fx = d3_functor(x = _), voronoi) : x;\\n    };\\n    voronoi.y = function(_) {\\n      return arguments.length ? (fy = d3_functor(y = _), voronoi) : y;\\n    };\\n    voronoi.clipExtent = function(_) {\\n      if (!arguments.length) return clipExtent === d3_geom_voronoiClipExtent ? null : clipExtent;\\n      clipExtent = _ == null ? d3_geom_voronoiClipExtent : _;\\n      return voronoi;\\n    };\\n    voronoi.size = function(_) {\\n      if (!arguments.length) return clipExtent === d3_geom_voronoiClipExtent ? null : clipExtent && clipExtent[1];\\n      return voronoi.clipExtent(_ && [ [ 0, 0 ], _ ]);\\n    };\\n    return voronoi;\\n  };\\n  var d3_geom_voronoiClipExtent = [ [ -1e6, -1e6 ], [ 1e6, 1e6 ] ];\\n  function d3_geom_voronoiTriangleArea(a, b, c) {\\n    return (a.x - c.x) * (b.y - a.y) - (a.x - b.x) * (c.y - a.y);\\n  }\\n  d3.geom.delaunay = function(vertices) {\\n    return d3.geom.voronoi().triangles(vertices);\\n  };\\n  d3.geom.quadtree = function(points, x1, y1, x2, y2) {\\n    var x = d3_geom_pointX, y = d3_geom_pointY, compat;\\n    if (compat = arguments.length) {\\n      x = d3_geom_quadtreeCompatX;\\n      y = d3_geom_quadtreeCompatY;\\n      if (compat === 3) {\\n        y2 = y1;\\n        x2 = x1;\\n        y1 = x1 = 0;\\n      }\\n      return quadtree(points);\\n    }\\n    function quadtree(data) {\\n      var d, fx = d3_functor(x), fy = d3_functor(y), xs, ys, i, n, x1_, y1_, x2_, y2_;\\n      if (x1 != null) {\\n        x1_ = x1, y1_ = y1, x2_ = x2, y2_ = y2;\\n      } else {\\n        x2_ = y2_ = -(x1_ = y1_ = Infinity);\\n        xs = [], ys = [];\\n        n = data.length;\\n        if (compat) for (i = 0; i < n; ++i) {\\n          d = data[i];\\n          if (d.x < x1_) x1_ = d.x;\\n          if (d.y < y1_) y1_ = d.y;\\n          if (d.x > x2_) x2_ = d.x;\\n          if (d.y > y2_) y2_ = d.y;\\n          xs.push(d.x);\\n          ys.push(d.y);\\n        } else for (i = 0; i < n; ++i) {\\n          var x_ = +fx(d = data[i], i), y_ = +fy(d, i);\\n          if (x_ < x1_) x1_ = x_;\\n          if (y_ < y1_) y1_ = y_;\\n          if (x_ > x2_) x2_ = x_;\\n          if (y_ > y2_) y2_ = y_;\\n          xs.push(x_);\\n          ys.push(y_);\\n        }\\n      }\\n      var dx = x2_ - x1_, dy = y2_ - y1_;\\n      if (dx > dy) y2_ = y1_ + dx; else x2_ = x1_ + dy;\\n      function insert(n, d, x, y, x1, y1, x2, y2) {\\n        if (isNaN(x) || isNaN(y)) return;\\n        if (n.leaf) {\\n          var nx = n.x, ny = n.y;\\n          if (nx != null) {\\n            if (abs(nx - x) + abs(ny - y) < .01) {\\n              insertChild(n, d, x, y, x1, y1, x2, y2);\\n            } else {\\n              var nPoint = n.point;\\n              n.x = n.y = n.point = null;\\n              insertChild(n, nPoint, nx, ny, x1, y1, x2, y2);\\n              insertChild(n, d, x, y, x1, y1, x2, y2);\\n            }\\n          } else {\\n            n.x = x, n.y = y, n.point = d;\\n          }\\n        } else {\\n          insertChild(n, d, x, y, x1, y1, x2, y2);\\n        }\\n      }\\n      function insertChild(n, d, x, y, x1, y1, x2, y2) {\\n        var xm = (x1 + x2) * .5, ym = (y1 + y2) * .5, right = x >= xm, below = y >= ym, i = below << 1 | right;\\n        n.leaf = false;\\n        n = n.nodes[i] || (n.nodes[i] = d3_geom_quadtreeNode());\\n        if (right) x1 = xm; else x2 = xm;\\n        if (below) y1 = ym; else y2 = ym;\\n        insert(n, d, x, y, x1, y1, x2, y2);\\n      }\\n      var root = d3_geom_quadtreeNode();\\n      root.add = function(d) {\\n        insert(root, d, +fx(d, ++i), +fy(d, i), x1_, y1_, x2_, y2_);\\n      };\\n      root.visit = function(f) {\\n        d3_geom_quadtreeVisit(f, root, x1_, y1_, x2_, y2_);\\n      };\\n      root.find = function(point) {\\n        return d3_geom_quadtreeFind(root, point[0], point[1], x1_, y1_, x2_, y2_);\\n      };\\n      i = -1;\\n      if (x1 == null) {\\n        while (++i < n) {\\n          insert(root, data[i], xs[i], ys[i], x1_, y1_, x2_, y2_);\\n        }\\n        --i;\\n      } else data.forEach(root.add);\\n      xs = ys = data = d = null;\\n      return root;\\n    }\\n    quadtree.x = function(_) {\\n      return arguments.length ? (x = _, quadtree) : x;\\n    };\\n    quadtree.y = function(_) {\\n      return arguments.length ? (y = _, quadtree) : y;\\n    };\\n    quadtree.extent = function(_) {\\n      if (!arguments.length) return x1 == null ? null : [ [ x1, y1 ], [ x2, y2 ] ];\\n      if (_ == null) x1 = y1 = x2 = y2 = null; else x1 = +_[0][0], y1 = +_[0][1], x2 = +_[1][0], \\n      y2 = +_[1][1];\\n      return quadtree;\\n    };\\n    quadtree.size = function(_) {\\n      if (!arguments.length) return x1 == null ? null : [ x2 - x1, y2 - y1 ];\\n      if (_ == null) x1 = y1 = x2 = y2 = null; else x1 = y1 = 0, x2 = +_[0], y2 = +_[1];\\n      return quadtree;\\n    };\\n    return quadtree;\\n  };\\n  function d3_geom_quadtreeCompatX(d) {\\n    return d.x;\\n  }\\n  function d3_geom_quadtreeCompatY(d) {\\n    return d.y;\\n  }\\n  function d3_geom_quadtreeNode() {\\n    return {\\n      leaf: true,\\n      nodes: [],\\n      point: null,\\n      x: null,\\n      y: null\\n    };\\n  }\\n  function d3_geom_quadtreeVisit(f, node, x1, y1, x2, y2) {\\n    if (!f(node, x1, y1, x2, y2)) {\\n      var sx = (x1 + x2) * .5, sy = (y1 + y2) * .5, children = node.nodes;\\n      if (children[0]) d3_geom_quadtreeVisit(f, children[0], x1, y1, sx, sy);\\n      if (children[1]) d3_geom_quadtreeVisit(f, children[1], sx, y1, x2, sy);\\n      if (children[2]) d3_geom_quadtreeVisit(f, children[2], x1, sy, sx, y2);\\n      if (children[3]) d3_geom_quadtreeVisit(f, children[3], sx, sy, x2, y2);\\n    }\\n  }\\n  function d3_geom_quadtreeFind(root, x, y, x0, y0, x3, y3) {\\n    var minDistance2 = Infinity, closestPoint;\\n    (function find(node, x1, y1, x2, y2) {\\n      if (x1 > x3 || y1 > y3 || x2 < x0 || y2 < y0) return;\\n      if (point = node.point) {\\n        var point, dx = x - node.x, dy = y - node.y, distance2 = dx * dx + dy * dy;\\n        if (distance2 < minDistance2) {\\n          var distance = Math.sqrt(minDistance2 = distance2);\\n          x0 = x - distance, y0 = y - distance;\\n          x3 = x + distance, y3 = y + distance;\\n          closestPoint = point;\\n        }\\n      }\\n      var children = node.nodes, xm = (x1 + x2) * .5, ym = (y1 + y2) * .5, right = x >= xm, below = y >= ym;\\n      for (var i = below << 1 | right, j = i + 4; i < j; ++i) {\\n        if (node = children[i & 3]) switch (i & 3) {\\n         case 0:\\n          find(node, x1, y1, xm, ym);\\n          break;\\n\\n         case 1:\\n          find(node, xm, y1, x2, ym);\\n          break;\\n\\n         case 2:\\n          find(node, x1, ym, xm, y2);\\n          break;\\n\\n         case 3:\\n          find(node, xm, ym, x2, y2);\\n          break;\\n        }\\n      }\\n    })(root, x0, y0, x3, y3);\\n    return closestPoint;\\n  }\\n  d3.interpolateRgb = d3_interpolateRgb;\\n  function d3_interpolateRgb(a, b) {\\n    a = d3.rgb(a);\\n    b = d3.rgb(b);\\n    var ar = a.r, ag = a.g, ab = a.b, br = b.r - ar, bg = b.g - ag, bb = b.b - ab;\\n    return function(t) {\\n      return \\\"#\\\" + d3_rgb_hex(Math.round(ar + br * t)) + d3_rgb_hex(Math.round(ag + bg * t)) + d3_rgb_hex(Math.round(ab + bb * t));\\n    };\\n  }\\n  d3.interpolateObject = d3_interpolateObject;\\n  function d3_interpolateObject(a, b) {\\n    var i = {}, c = {}, k;\\n    for (k in a) {\\n      if (k in b) {\\n        i[k] = d3_interpolate(a[k], b[k]);\\n      } else {\\n        c[k] = a[k];\\n      }\\n    }\\n    for (k in b) {\\n      if (!(k in a)) {\\n        c[k] = b[k];\\n      }\\n    }\\n    return function(t) {\\n      for (k in i) c[k] = i[k](t);\\n      return c;\\n    };\\n  }\\n  d3.interpolateNumber = d3_interpolateNumber;\\n  function d3_interpolateNumber(a, b) {\\n    a = +a, b = +b;\\n    return function(t) {\\n      return a * (1 - t) + b * t;\\n    };\\n  }\\n  d3.interpolateString = d3_interpolateString;\\n  function d3_interpolateString(a, b) {\\n    var bi = d3_interpolate_numberA.lastIndex = d3_interpolate_numberB.lastIndex = 0, am, bm, bs, i = -1, s = [], q = [];\\n    a = a + \\\"\\\", b = b + \\\"\\\";\\n    while ((am = d3_interpolate_numberA.exec(a)) && (bm = d3_interpolate_numberB.exec(b))) {\\n      if ((bs = bm.index) > bi) {\\n        bs = b.slice(bi, bs);\\n        if (s[i]) s[i] += bs; else s[++i] = bs;\\n      }\\n      if ((am = am[0]) === (bm = bm[0])) {\\n        if (s[i]) s[i] += bm; else s[++i] = bm;\\n      } else {\\n        s[++i] = null;\\n        q.push({\\n          i: i,\\n          x: d3_interpolateNumber(am, bm)\\n        });\\n      }\\n      bi = d3_interpolate_numberB.lastIndex;\\n    }\\n    if (bi < b.length) {\\n      bs = b.slice(bi);\\n      if (s[i]) s[i] += bs; else s[++i] = bs;\\n    }\\n    return s.length < 2 ? q[0] ? (b = q[0].x, function(t) {\\n      return b(t) + \\\"\\\";\\n    }) : function() {\\n      return b;\\n    } : (b = q.length, function(t) {\\n      for (var i = 0, o; i < b; ++i) s[(o = q[i]).i] = o.x(t);\\n      return s.join(\\\"\\\");\\n    });\\n  }\\n  var d3_interpolate_numberA = /[-+]?(?:\\\\d+\\\\.?\\\\d*|\\\\.?\\\\d+)(?:[eE][-+]?\\\\d+)?/g, d3_interpolate_numberB = new RegExp(d3_interpolate_numberA.source, \\\"g\\\");\\n  d3.interpolate = d3_interpolate;\\n  function d3_interpolate(a, b) {\\n    var i = d3.interpolators.length, f;\\n    while (--i >= 0 && !(f = d3.interpolators[i](a, b))) ;\\n    return f;\\n  }\\n  d3.interpolators = [ function(a, b) {\\n    var t = typeof b;\\n    return (t === \\\"string\\\" ? d3_rgb_names.has(b.toLowerCase()) || /^(#|rgb\\\\(|hsl\\\\()/i.test(b) ? d3_interpolateRgb : d3_interpolateString : b instanceof d3_color ? d3_interpolateRgb : Array.isArray(b) ? d3_interpolateArray : t === \\\"object\\\" && isNaN(b) ? d3_interpolateObject : d3_interpolateNumber)(a, b);\\n  } ];\\n  d3.interpolateArray = d3_interpolateArray;\\n  function d3_interpolateArray(a, b) {\\n    var x = [], c = [], na = a.length, nb = b.length, n0 = Math.min(a.length, b.length), i;\\n    for (i = 0; i < n0; ++i) x.push(d3_interpolate(a[i], b[i]));\\n    for (;i < na; ++i) c[i] = a[i];\\n    for (;i < nb; ++i) c[i] = b[i];\\n    return function(t) {\\n      for (i = 0; i < n0; ++i) c[i] = x[i](t);\\n      return c;\\n    };\\n  }\\n  var d3_ease_default = function() {\\n    return d3_identity;\\n  };\\n  var d3_ease = d3.map({\\n    linear: d3_ease_default,\\n    poly: d3_ease_poly,\\n    quad: function() {\\n      return d3_ease_quad;\\n    },\\n    cubic: function() {\\n      return d3_ease_cubic;\\n    },\\n    sin: function() {\\n      return d3_ease_sin;\\n    },\\n    exp: function() {\\n      return d3_ease_exp;\\n    },\\n    circle: function() {\\n      return d3_ease_circle;\\n    },\\n    elastic: d3_ease_elastic,\\n    back: d3_ease_back,\\n    bounce: function() {\\n      return d3_ease_bounce;\\n    }\\n  });\\n  var d3_ease_mode = d3.map({\\n    \\\"in\\\": d3_identity,\\n    out: d3_ease_reverse,\\n    \\\"in-out\\\": d3_ease_reflect,\\n    \\\"out-in\\\": function(f) {\\n      return d3_ease_reflect(d3_ease_reverse(f));\\n    }\\n  });\\n  d3.ease = function(name) {\\n    var i = name.indexOf(\\\"-\\\"), t = i >= 0 ? name.slice(0, i) : name, m = i >= 0 ? name.slice(i + 1) : \\\"in\\\";\\n    t = d3_ease.get(t) || d3_ease_default;\\n    m = d3_ease_mode.get(m) || d3_identity;\\n    return d3_ease_clamp(m(t.apply(null, d3_arraySlice.call(arguments, 1))));\\n  };\\n  function d3_ease_clamp(f) {\\n    return function(t) {\\n      return t <= 0 ? 0 : t >= 1 ? 1 : f(t);\\n    };\\n  }\\n  function d3_ease_reverse(f) {\\n    return function(t) {\\n      return 1 - f(1 - t);\\n    };\\n  }\\n  function d3_ease_reflect(f) {\\n    return function(t) {\\n      return .5 * (t < .5 ? f(2 * t) : 2 - f(2 - 2 * t));\\n    };\\n  }\\n  function d3_ease_quad(t) {\\n    return t * t;\\n  }\\n  function d3_ease_cubic(t) {\\n    return t * t * t;\\n  }\\n  function d3_ease_cubicInOut(t) {\\n    if (t <= 0) return 0;\\n    if (t >= 1) return 1;\\n    var t2 = t * t, t3 = t2 * t;\\n    return 4 * (t < .5 ? t3 : 3 * (t - t2) + t3 - .75);\\n  }\\n  function d3_ease_poly(e) {\\n    return function(t) {\\n      return Math.pow(t, e);\\n    };\\n  }\\n  function d3_ease_sin(t) {\\n    return 1 - Math.cos(t * halfπ);\\n  }\\n  function d3_ease_exp(t) {\\n    return Math.pow(2, 10 * (t - 1));\\n  }\\n  function d3_ease_circle(t) {\\n    return 1 - Math.sqrt(1 - t * t);\\n  }\\n  function d3_ease_elastic(a, p) {\\n    var s;\\n    if (arguments.length < 2) p = .45;\\n    if (arguments.length) s = p / τ * Math.asin(1 / a); else a = 1, s = p / 4;\\n    return function(t) {\\n      return 1 + a * Math.pow(2, -10 * t) * Math.sin((t - s) * τ / p);\\n    };\\n  }\\n  function d3_ease_back(s) {\\n    if (!s) s = 1.70158;\\n    return function(t) {\\n      return t * t * ((s + 1) * t - s);\\n    };\\n  }\\n  function d3_ease_bounce(t) {\\n    return t < 1 / 2.75 ? 7.5625 * t * t : t < 2 / 2.75 ? 7.5625 * (t -= 1.5 / 2.75) * t + .75 : t < 2.5 / 2.75 ? 7.5625 * (t -= 2.25 / 2.75) * t + .9375 : 7.5625 * (t -= 2.625 / 2.75) * t + .984375;\\n  }\\n  d3.interpolateHcl = d3_interpolateHcl;\\n  function d3_interpolateHcl(a, b) {\\n    a = d3.hcl(a);\\n    b = d3.hcl(b);\\n    var ah = a.h, ac = a.c, al = a.l, bh = b.h - ah, bc = b.c - ac, bl = b.l - al;\\n    if (isNaN(bc)) bc = 0, ac = isNaN(ac) ? b.c : ac;\\n    if (isNaN(bh)) bh = 0, ah = isNaN(ah) ? b.h : ah; else if (bh > 180) bh -= 360; else if (bh < -180) bh += 360;\\n    return function(t) {\\n      return d3_hcl_lab(ah + bh * t, ac + bc * t, al + bl * t) + \\\"\\\";\\n    };\\n  }\\n  d3.interpolateHsl = d3_interpolateHsl;\\n  function d3_interpolateHsl(a, b) {\\n    a = d3.hsl(a);\\n    b = d3.hsl(b);\\n    var ah = a.h, as = a.s, al = a.l, bh = b.h - ah, bs = b.s - as, bl = b.l - al;\\n    if (isNaN(bs)) bs = 0, as = isNaN(as) ? b.s : as;\\n    if (isNaN(bh)) bh = 0, ah = isNaN(ah) ? b.h : ah; else if (bh > 180) bh -= 360; else if (bh < -180) bh += 360;\\n    return function(t) {\\n      return d3_hsl_rgb(ah + bh * t, as + bs * t, al + bl * t) + \\\"\\\";\\n    };\\n  }\\n  d3.interpolateLab = d3_interpolateLab;\\n  function d3_interpolateLab(a, b) {\\n    a = d3.lab(a);\\n    b = d3.lab(b);\\n    var al = a.l, aa = a.a, ab = a.b, bl = b.l - al, ba = b.a - aa, bb = b.b - ab;\\n    return function(t) {\\n      return d3_lab_rgb(al + bl * t, aa + ba * t, ab + bb * t) + \\\"\\\";\\n    };\\n  }\\n  d3.interpolateRound = d3_interpolateRound;\\n  function d3_interpolateRound(a, b) {\\n    b -= a;\\n    return function(t) {\\n      return Math.round(a + b * t);\\n    };\\n  }\\n  d3.transform = function(string) {\\n    var g = d3_document.createElementNS(d3.ns.prefix.svg, \\\"g\\\");\\n    return (d3.transform = function(string) {\\n      if (string != null) {\\n        g.setAttribute(\\\"transform\\\", string);\\n        var t = g.transform.baseVal.consolidate();\\n      }\\n      return new d3_transform(t ? t.matrix : d3_transformIdentity);\\n    })(string);\\n  };\\n  function d3_transform(m) {\\n    var r0 = [ m.a, m.b ], r1 = [ m.c, m.d ], kx = d3_transformNormalize(r0), kz = d3_transformDot(r0, r1), ky = d3_transformNormalize(d3_transformCombine(r1, r0, -kz)) || 0;\\n    if (r0[0] * r1[1] < r1[0] * r0[1]) {\\n      r0[0] *= -1;\\n      r0[1] *= -1;\\n      kx *= -1;\\n      kz *= -1;\\n    }\\n    this.rotate = (kx ? Math.atan2(r0[1], r0[0]) : Math.atan2(-r1[0], r1[1])) * d3_degrees;\\n    this.translate = [ m.e, m.f ];\\n    this.scale = [ kx, ky ];\\n    this.skew = ky ? Math.atan2(kz, ky) * d3_degrees : 0;\\n  }\\n  d3_transform.prototype.toString = function() {\\n    return \\\"translate(\\\" + this.translate + \\\")rotate(\\\" + this.rotate + \\\")skewX(\\\" + this.skew + \\\")scale(\\\" + this.scale + \\\")\\\";\\n  };\\n  function d3_transformDot(a, b) {\\n    return a[0] * b[0] + a[1] * b[1];\\n  }\\n  function d3_transformNormalize(a) {\\n    var k = Math.sqrt(d3_transformDot(a, a));\\n    if (k) {\\n      a[0] /= k;\\n      a[1] /= k;\\n    }\\n    return k;\\n  }\\n  function d3_transformCombine(a, b, k) {\\n    a[0] += k * b[0];\\n    a[1] += k * b[1];\\n    return a;\\n  }\\n  var d3_transformIdentity = {\\n    a: 1,\\n    b: 0,\\n    c: 0,\\n    d: 1,\\n    e: 0,\\n    f: 0\\n  };\\n  d3.interpolateTransform = d3_interpolateTransform;\\n  function d3_interpolateTransformPop(s) {\\n    return s.length ? s.pop() + \\\",\\\" : \\\"\\\";\\n  }\\n  function d3_interpolateTranslate(ta, tb, s, q) {\\n    if (ta[0] !== tb[0] || ta[1] !== tb[1]) {\\n      var i = s.push(\\\"translate(\\\", null, \\\",\\\", null, \\\")\\\");\\n      q.push({\\n        i: i - 4,\\n        x: d3_interpolateNumber(ta[0], tb[0])\\n      }, {\\n        i: i - 2,\\n        x: d3_interpolateNumber(ta[1], tb[1])\\n      });\\n    } else if (tb[0] || tb[1]) {\\n      s.push(\\\"translate(\\\" + tb + \\\")\\\");\\n    }\\n  }\\n  function d3_interpolateRotate(ra, rb, s, q) {\\n    if (ra !== rb) {\\n      if (ra - rb > 180) rb += 360; else if (rb - ra > 180) ra += 360;\\n      q.push({\\n        i: s.push(d3_interpolateTransformPop(s) + \\\"rotate(\\\", null, \\\")\\\") - 2,\\n        x: d3_interpolateNumber(ra, rb)\\n      });\\n    } else if (rb) {\\n      s.push(d3_interpolateTransformPop(s) + \\\"rotate(\\\" + rb + \\\")\\\");\\n    }\\n  }\\n  function d3_interpolateSkew(wa, wb, s, q) {\\n    if (wa !== wb) {\\n      q.push({\\n        i: s.push(d3_interpolateTransformPop(s) + \\\"skewX(\\\", null, \\\")\\\") - 2,\\n        x: d3_interpolateNumber(wa, wb)\\n      });\\n    } else if (wb) {\\n      s.push(d3_interpolateTransformPop(s) + \\\"skewX(\\\" + wb + \\\")\\\");\\n    }\\n  }\\n  function d3_interpolateScale(ka, kb, s, q) {\\n    if (ka[0] !== kb[0] || ka[1] !== kb[1]) {\\n      var i = s.push(d3_interpolateTransformPop(s) + \\\"scale(\\\", null, \\\",\\\", null, \\\")\\\");\\n      q.push({\\n        i: i - 4,\\n        x: d3_interpolateNumber(ka[0], kb[0])\\n      }, {\\n        i: i - 2,\\n        x: d3_interpolateNumber(ka[1], kb[1])\\n      });\\n    } else if (kb[0] !== 1 || kb[1] !== 1) {\\n      s.push(d3_interpolateTransformPop(s) + \\\"scale(\\\" + kb + \\\")\\\");\\n    }\\n  }\\n  function d3_interpolateTransform(a, b) {\\n    var s = [], q = [];\\n    a = d3.transform(a), b = d3.transform(b);\\n    d3_interpolateTranslate(a.translate, b.translate, s, q);\\n    d3_interpolateRotate(a.rotate, b.rotate, s, q);\\n    d3_interpolateSkew(a.skew, b.skew, s, q);\\n    d3_interpolateScale(a.scale, b.scale, s, q);\\n    a = b = null;\\n    return function(t) {\\n      var i = -1, n = q.length, o;\\n      while (++i < n) s[(o = q[i]).i] = o.x(t);\\n      return s.join(\\\"\\\");\\n    };\\n  }\\n  function d3_uninterpolateNumber(a, b) {\\n    b = (b -= a = +a) || 1 / b;\\n    return function(x) {\\n      return (x - a) / b;\\n    };\\n  }\\n  function d3_uninterpolateClamp(a, b) {\\n    b = (b -= a = +a) || 1 / b;\\n    return function(x) {\\n      return Math.max(0, Math.min(1, (x - a) / b));\\n    };\\n  }\\n  d3.layout = {};\\n  d3.layout.bundle = function() {\\n    return function(links) {\\n      var paths = [], i = -1, n = links.length;\\n      while (++i < n) paths.push(d3_layout_bundlePath(links[i]));\\n      return paths;\\n    };\\n  };\\n  function d3_layout_bundlePath(link) {\\n    var start = link.source, end = link.target, lca = d3_layout_bundleLeastCommonAncestor(start, end), points = [ start ];\\n    while (start !== lca) {\\n      start = start.parent;\\n      points.push(start);\\n    }\\n    var k = points.length;\\n    while (end !== lca) {\\n      points.splice(k, 0, end);\\n      end = end.parent;\\n    }\\n    return points;\\n  }\\n  function d3_layout_bundleAncestors(node) {\\n    var ancestors = [], parent = node.parent;\\n    while (parent != null) {\\n      ancestors.push(node);\\n      node = parent;\\n      parent = parent.parent;\\n    }\\n    ancestors.push(node);\\n    return ancestors;\\n  }\\n  function d3_layout_bundleLeastCommonAncestor(a, b) {\\n    if (a === b) return a;\\n    var aNodes = d3_layout_bundleAncestors(a), bNodes = d3_layout_bundleAncestors(b), aNode = aNodes.pop(), bNode = bNodes.pop(), sharedNode = null;\\n    while (aNode === bNode) {\\n      sharedNode = aNode;\\n      aNode = aNodes.pop();\\n      bNode = bNodes.pop();\\n    }\\n    return sharedNode;\\n  }\\n  d3.layout.chord = function() {\\n    var chord = {}, chords, groups, matrix, n, padding = 0, sortGroups, sortSubgroups, sortChords;\\n    function relayout() {\\n      var subgroups = {}, groupSums = [], groupIndex = d3.range(n), subgroupIndex = [], k, x, x0, i, j;\\n      chords = [];\\n      groups = [];\\n      k = 0, i = -1;\\n      while (++i < n) {\\n        x = 0, j = -1;\\n        while (++j < n) {\\n          x += matrix[i][j];\\n        }\\n        groupSums.push(x);\\n        subgroupIndex.push(d3.range(n));\\n        k += x;\\n      }\\n      if (sortGroups) {\\n        groupIndex.sort(function(a, b) {\\n          return sortGroups(groupSums[a], groupSums[b]);\\n        });\\n      }\\n      if (sortSubgroups) {\\n        subgroupIndex.forEach(function(d, i) {\\n          d.sort(function(a, b) {\\n            return sortSubgroups(matrix[i][a], matrix[i][b]);\\n          });\\n        });\\n      }\\n      k = (τ - padding * n) / k;\\n      x = 0, i = -1;\\n      while (++i < n) {\\n        x0 = x, j = -1;\\n        while (++j < n) {\\n          var di = groupIndex[i], dj = subgroupIndex[di][j], v = matrix[di][dj], a0 = x, a1 = x += v * k;\\n          subgroups[di + \\\"-\\\" + dj] = {\\n            index: di,\\n            subindex: dj,\\n            startAngle: a0,\\n            endAngle: a1,\\n            value: v\\n          };\\n        }\\n        groups[di] = {\\n          index: di,\\n          startAngle: x0,\\n          endAngle: x,\\n          value: groupSums[di]\\n        };\\n        x += padding;\\n      }\\n      i = -1;\\n      while (++i < n) {\\n        j = i - 1;\\n        while (++j < n) {\\n          var source = subgroups[i + \\\"-\\\" + j], target = subgroups[j + \\\"-\\\" + i];\\n          if (source.value || target.value) {\\n            chords.push(source.value < target.value ? {\\n              source: target,\\n              target: source\\n            } : {\\n              source: source,\\n              target: target\\n            });\\n          }\\n        }\\n      }\\n      if (sortChords) resort();\\n    }\\n    function resort() {\\n      chords.sort(function(a, b) {\\n        return sortChords((a.source.value + a.target.value) / 2, (b.source.value + b.target.value) / 2);\\n      });\\n    }\\n    chord.matrix = function(x) {\\n      if (!arguments.length) return matrix;\\n      n = (matrix = x) && matrix.length;\\n      chords = groups = null;\\n      return chord;\\n    };\\n    chord.padding = function(x) {\\n      if (!arguments.length) return padding;\\n      padding = x;\\n      chords = groups = null;\\n      return chord;\\n    };\\n    chord.sortGroups = function(x) {\\n      if (!arguments.length) return sortGroups;\\n      sortGroups = x;\\n      chords = groups = null;\\n      return chord;\\n    };\\n    chord.sortSubgroups = function(x) {\\n      if (!arguments.length) return sortSubgroups;\\n      sortSubgroups = x;\\n      chords = null;\\n      return chord;\\n    };\\n    chord.sortChords = function(x) {\\n      if (!arguments.length) return sortChords;\\n      sortChords = x;\\n      if (chords) resort();\\n      return chord;\\n    };\\n    chord.chords = function() {\\n      if (!chords) relayout();\\n      return chords;\\n    };\\n    chord.groups = function() {\\n      if (!groups) relayout();\\n      return groups;\\n    };\\n    return chord;\\n  };\\n  d3.layout.force = function() {\\n    var force = {}, event = d3.dispatch(\\\"start\\\", \\\"tick\\\", \\\"end\\\"), timer, size = [ 1, 1 ], drag, alpha, friction = .9, linkDistance = d3_layout_forceLinkDistance, linkStrength = d3_layout_forceLinkStrength, charge = -30, chargeDistance2 = d3_layout_forceChargeDistance2, gravity = .1, theta2 = .64, nodes = [], links = [], distances, strengths, charges;\\n    function repulse(node) {\\n      return function(quad, x1, _, x2) {\\n        if (quad.point !== node) {\\n          var dx = quad.cx - node.x, dy = quad.cy - node.y, dw = x2 - x1, dn = dx * dx + dy * dy;\\n          if (dw * dw / theta2 < dn) {\\n            if (dn < chargeDistance2) {\\n              var k = quad.charge / dn;\\n              node.px -= dx * k;\\n              node.py -= dy * k;\\n            }\\n            return true;\\n          }\\n          if (quad.point && dn && dn < chargeDistance2) {\\n            var k = quad.pointCharge / dn;\\n            node.px -= dx * k;\\n            node.py -= dy * k;\\n          }\\n        }\\n        return !quad.charge;\\n      };\\n    }\\n    force.tick = function() {\\n      if ((alpha *= .99) < .005) {\\n        timer = null;\\n        event.end({\\n          type: \\\"end\\\",\\n          alpha: alpha = 0\\n        });\\n        return true;\\n      }\\n      var n = nodes.length, m = links.length, q, i, o, s, t, l, k, x, y;\\n      for (i = 0; i < m; ++i) {\\n        o = links[i];\\n        s = o.source;\\n        t = o.target;\\n        x = t.x - s.x;\\n        y = t.y - s.y;\\n        if (l = x * x + y * y) {\\n          l = alpha * strengths[i] * ((l = Math.sqrt(l)) - distances[i]) / l;\\n          x *= l;\\n          y *= l;\\n          t.x -= x * (k = s.weight + t.weight ? s.weight / (s.weight + t.weight) : .5);\\n          t.y -= y * k;\\n          s.x += x * (k = 1 - k);\\n          s.y += y * k;\\n        }\\n      }\\n      if (k = alpha * gravity) {\\n        x = size[0] / 2;\\n        y = size[1] / 2;\\n        i = -1;\\n        if (k) while (++i < n) {\\n          o = nodes[i];\\n          o.x += (x - o.x) * k;\\n          o.y += (y - o.y) * k;\\n        }\\n      }\\n      if (charge) {\\n        d3_layout_forceAccumulate(q = d3.geom.quadtree(nodes), alpha, charges);\\n        i = -1;\\n        while (++i < n) {\\n          if (!(o = nodes[i]).fixed) {\\n            q.visit(repulse(o));\\n          }\\n        }\\n      }\\n      i = -1;\\n      while (++i < n) {\\n        o = nodes[i];\\n        if (o.fixed) {\\n          o.x = o.px;\\n          o.y = o.py;\\n        } else {\\n          o.x -= (o.px - (o.px = o.x)) * friction;\\n          o.y -= (o.py - (o.py = o.y)) * friction;\\n        }\\n      }\\n      event.tick({\\n        type: \\\"tick\\\",\\n        alpha: alpha\\n      });\\n    };\\n    force.nodes = function(x) {\\n      if (!arguments.length) return nodes;\\n      nodes = x;\\n      return force;\\n    };\\n    force.links = function(x) {\\n      if (!arguments.length) return links;\\n      links = x;\\n      return force;\\n    };\\n    force.size = function(x) {\\n      if (!arguments.length) return size;\\n      size = x;\\n      return force;\\n    };\\n    force.linkDistance = function(x) {\\n      if (!arguments.length) return linkDistance;\\n      linkDistance = typeof x === \\\"function\\\" ? x : +x;\\n      return force;\\n    };\\n    force.distance = force.linkDistance;\\n    force.linkStrength = function(x) {\\n      if (!arguments.length) return linkStrength;\\n      linkStrength = typeof x === \\\"function\\\" ? x : +x;\\n      return force;\\n    };\\n    force.friction = function(x) {\\n      if (!arguments.length) return friction;\\n      friction = +x;\\n      return force;\\n    };\\n    force.charge = function(x) {\\n      if (!arguments.length) return charge;\\n      charge = typeof x === \\\"function\\\" ? x : +x;\\n      return force;\\n    };\\n    force.chargeDistance = function(x) {\\n      if (!arguments.length) return Math.sqrt(chargeDistance2);\\n      chargeDistance2 = x * x;\\n      return force;\\n    };\\n    force.gravity = function(x) {\\n      if (!arguments.length) return gravity;\\n      gravity = +x;\\n      return force;\\n    };\\n    force.theta = function(x) {\\n      if (!arguments.length) return Math.sqrt(theta2);\\n      theta2 = x * x;\\n      return force;\\n    };\\n    force.alpha = function(x) {\\n      if (!arguments.length) return alpha;\\n      x = +x;\\n      if (alpha) {\\n        if (x > 0) {\\n          alpha = x;\\n        } else {\\n          timer.c = null, timer.t = NaN, timer = null;\\n          event.end({\\n            type: \\\"end\\\",\\n            alpha: alpha = 0\\n          });\\n        }\\n      } else if (x > 0) {\\n        event.start({\\n          type: \\\"start\\\",\\n          alpha: alpha = x\\n        });\\n        timer = d3_timer(force.tick);\\n      }\\n      return force;\\n    };\\n    force.start = function() {\\n      var i, n = nodes.length, m = links.length, w = size[0], h = size[1], neighbors, o;\\n      for (i = 0; i < n; ++i) {\\n        (o = nodes[i]).index = i;\\n        o.weight = 0;\\n      }\\n      for (i = 0; i < m; ++i) {\\n        o = links[i];\\n        if (typeof o.source == \\\"number\\\") o.source = nodes[o.source];\\n        if (typeof o.target == \\\"number\\\") o.target = nodes[o.target];\\n        ++o.source.weight;\\n        ++o.target.weight;\\n      }\\n      for (i = 0; i < n; ++i) {\\n        o = nodes[i];\\n        if (isNaN(o.x)) o.x = position(\\\"x\\\", w);\\n        if (isNaN(o.y)) o.y = position(\\\"y\\\", h);\\n        if (isNaN(o.px)) o.px = o.x;\\n        if (isNaN(o.py)) o.py = o.y;\\n      }\\n      distances = [];\\n      if (typeof linkDistance === \\\"function\\\") for (i = 0; i < m; ++i) distances[i] = +linkDistance.call(this, links[i], i); else for (i = 0; i < m; ++i) distances[i] = linkDistance;\\n      strengths = [];\\n      if (typeof linkStrength === \\\"function\\\") for (i = 0; i < m; ++i) strengths[i] = +linkStrength.call(this, links[i], i); else for (i = 0; i < m; ++i) strengths[i] = linkStrength;\\n      charges = [];\\n      if (typeof charge === \\\"function\\\") for (i = 0; i < n; ++i) charges[i] = +charge.call(this, nodes[i], i); else for (i = 0; i < n; ++i) charges[i] = charge;\\n      function position(dimension, size) {\\n        if (!neighbors) {\\n          neighbors = new Array(n);\\n          for (j = 0; j < n; ++j) {\\n            neighbors[j] = [];\\n          }\\n          for (j = 0; j < m; ++j) {\\n            var o = links[j];\\n            neighbors[o.source.index].push(o.target);\\n            neighbors[o.target.index].push(o.source);\\n          }\\n        }\\n        var candidates = neighbors[i], j = -1, l = candidates.length, x;\\n        while (++j < l) if (!isNaN(x = candidates[j][dimension])) return x;\\n        return Math.random() * size;\\n      }\\n      return force.resume();\\n    };\\n    force.resume = function() {\\n      return force.alpha(.1);\\n    };\\n    force.stop = function() {\\n      return force.alpha(0);\\n    };\\n    force.drag = function() {\\n      if (!drag) drag = d3.behavior.drag().origin(d3_identity).on(\\\"dragstart.force\\\", d3_layout_forceDragstart).on(\\\"drag.force\\\", dragmove).on(\\\"dragend.force\\\", d3_layout_forceDragend);\\n      if (!arguments.length) return drag;\\n      this.on(\\\"mouseover.force\\\", d3_layout_forceMouseover).on(\\\"mouseout.force\\\", d3_layout_forceMouseout).call(drag);\\n    };\\n    function dragmove(d) {\\n      d.px = d3.event.x, d.py = d3.event.y;\\n      force.resume();\\n    }\\n    return d3.rebind(force, event, \\\"on\\\");\\n  };\\n  function d3_layout_forceDragstart(d) {\\n    d.fixed |= 2;\\n  }\\n  function d3_layout_forceDragend(d) {\\n    d.fixed &= ~6;\\n  }\\n  function d3_layout_forceMouseover(d) {\\n    d.fixed |= 4;\\n    d.px = d.x, d.py = d.y;\\n  }\\n  function d3_layout_forceMouseout(d) {\\n    d.fixed &= ~4;\\n  }\\n  function d3_layout_forceAccumulate(quad, alpha, charges) {\\n    var cx = 0, cy = 0;\\n    quad.charge = 0;\\n    if (!quad.leaf) {\\n      var nodes = quad.nodes, n = nodes.length, i = -1, c;\\n      while (++i < n) {\\n        c = nodes[i];\\n        if (c == null) continue;\\n        d3_layout_forceAccumulate(c, alpha, charges);\\n        quad.charge += c.charge;\\n        cx += c.charge * c.cx;\\n        cy += c.charge * c.cy;\\n      }\\n    }\\n    if (quad.point) {\\n      if (!quad.leaf) {\\n        quad.point.x += Math.random() - .5;\\n        quad.point.y += Math.random() - .5;\\n      }\\n      var k = alpha * charges[quad.point.index];\\n      quad.charge += quad.pointCharge = k;\\n      cx += k * quad.point.x;\\n      cy += k * quad.point.y;\\n    }\\n    quad.cx = cx / quad.charge;\\n    quad.cy = cy / quad.charge;\\n  }\\n  var d3_layout_forceLinkDistance = 20, d3_layout_forceLinkStrength = 1, d3_layout_forceChargeDistance2 = Infinity;\\n  d3.layout.hierarchy = function() {\\n    var sort = d3_layout_hierarchySort, children = d3_layout_hierarchyChildren, value = d3_layout_hierarchyValue;\\n    function hierarchy(root) {\\n      var stack = [ root ], nodes = [], node;\\n      root.depth = 0;\\n      while ((node = stack.pop()) != null) {\\n        nodes.push(node);\\n        if ((childs = children.call(hierarchy, node, node.depth)) && (n = childs.length)) {\\n          var n, childs, child;\\n          while (--n >= 0) {\\n            stack.push(child = childs[n]);\\n            child.parent = node;\\n            child.depth = node.depth + 1;\\n          }\\n          if (value) node.value = 0;\\n          node.children = childs;\\n        } else {\\n          if (value) node.value = +value.call(hierarchy, node, node.depth) || 0;\\n          delete node.children;\\n        }\\n      }\\n      d3_layout_hierarchyVisitAfter(root, function(node) {\\n        var childs, parent;\\n        if (sort && (childs = node.children)) childs.sort(sort);\\n        if (value && (parent = node.parent)) parent.value += node.value;\\n      });\\n      return nodes;\\n    }\\n    hierarchy.sort = function(x) {\\n      if (!arguments.length) return sort;\\n      sort = x;\\n      return hierarchy;\\n    };\\n    hierarchy.children = function(x) {\\n      if (!arguments.length) return children;\\n      children = x;\\n      return hierarchy;\\n    };\\n    hierarchy.value = function(x) {\\n      if (!arguments.length) return value;\\n      value = x;\\n      return hierarchy;\\n    };\\n    hierarchy.revalue = function(root) {\\n      if (value) {\\n        d3_layout_hierarchyVisitBefore(root, function(node) {\\n          if (node.children) node.value = 0;\\n        });\\n        d3_layout_hierarchyVisitAfter(root, function(node) {\\n          var parent;\\n          if (!node.children) node.value = +value.call(hierarchy, node, node.depth) || 0;\\n          if (parent = node.parent) parent.value += node.value;\\n        });\\n      }\\n      return root;\\n    };\\n    return hierarchy;\\n  };\\n  function d3_layout_hierarchyRebind(object, hierarchy) {\\n    d3.rebind(object, hierarchy, \\\"sort\\\", \\\"children\\\", \\\"value\\\");\\n    object.nodes = object;\\n    object.links = d3_layout_hierarchyLinks;\\n    return object;\\n  }\\n  function d3_layout_hierarchyVisitBefore(node, callback) {\\n    var nodes = [ node ];\\n    while ((node = nodes.pop()) != null) {\\n      callback(node);\\n      if ((children = node.children) && (n = children.length)) {\\n        var n, children;\\n        while (--n >= 0) nodes.push(children[n]);\\n      }\\n    }\\n  }\\n  function d3_layout_hierarchyVisitAfter(node, callback) {\\n    var nodes = [ node ], nodes2 = [];\\n    while ((node = nodes.pop()) != null) {\\n      nodes2.push(node);\\n      if ((children = node.children) && (n = children.length)) {\\n        var i = -1, n, children;\\n        while (++i < n) nodes.push(children[i]);\\n      }\\n    }\\n    while ((node = nodes2.pop()) != null) {\\n      callback(node);\\n    }\\n  }\\n  function d3_layout_hierarchyChildren(d) {\\n    return d.children;\\n  }\\n  function d3_layout_hierarchyValue(d) {\\n    return d.value;\\n  }\\n  function d3_layout_hierarchySort(a, b) {\\n    return b.value - a.value;\\n  }\\n  function d3_layout_hierarchyLinks(nodes) {\\n    return d3.merge(nodes.map(function(parent) {\\n      return (parent.children || []).map(function(child) {\\n        return {\\n          source: parent,\\n          target: child\\n        };\\n      });\\n    }));\\n  }\\n  d3.layout.partition = function() {\\n    var hierarchy = d3.layout.hierarchy(), size = [ 1, 1 ];\\n    function position(node, x, dx, dy) {\\n      var children = node.children;\\n      node.x = x;\\n      node.y = node.depth * dy;\\n      node.dx = dx;\\n      node.dy = dy;\\n      if (children && (n = children.length)) {\\n        var i = -1, n, c, d;\\n        dx = node.value ? dx / node.value : 0;\\n        while (++i < n) {\\n          position(c = children[i], x, d = c.value * dx, dy);\\n          x += d;\\n        }\\n      }\\n    }\\n    function depth(node) {\\n      var children = node.children, d = 0;\\n      if (children && (n = children.length)) {\\n        var i = -1, n;\\n        while (++i < n) d = Math.max(d, depth(children[i]));\\n      }\\n      return 1 + d;\\n    }\\n    function partition(d, i) {\\n      var nodes = hierarchy.call(this, d, i);\\n      position(nodes[0], 0, size[0], size[1] / depth(nodes[0]));\\n      return nodes;\\n    }\\n    partition.size = function(x) {\\n      if (!arguments.length) return size;\\n      size = x;\\n      return partition;\\n    };\\n    return d3_layout_hierarchyRebind(partition, hierarchy);\\n  };\\n  d3.layout.pie = function() {\\n    var value = Number, sort = d3_layout_pieSortByValue, startAngle = 0, endAngle = τ, padAngle = 0;\\n    function pie(data) {\\n      var n = data.length, values = data.map(function(d, i) {\\n        return +value.call(pie, d, i);\\n      }), a = +(typeof startAngle === \\\"function\\\" ? startAngle.apply(this, arguments) : startAngle), da = (typeof endAngle === \\\"function\\\" ? endAngle.apply(this, arguments) : endAngle) - a, p = Math.min(Math.abs(da) / n, +(typeof padAngle === \\\"function\\\" ? padAngle.apply(this, arguments) : padAngle)), pa = p * (da < 0 ? -1 : 1), sum = d3.sum(values), k = sum ? (da - n * pa) / sum : 0, index = d3.range(n), arcs = [], v;\\n      if (sort != null) index.sort(sort === d3_layout_pieSortByValue ? function(i, j) {\\n        return values[j] - values[i];\\n      } : function(i, j) {\\n        return sort(data[i], data[j]);\\n      });\\n      index.forEach(function(i) {\\n        arcs[i] = {\\n          data: data[i],\\n          value: v = values[i],\\n          startAngle: a,\\n          endAngle: a += v * k + pa,\\n          padAngle: p\\n        };\\n      });\\n      return arcs;\\n    }\\n    pie.value = function(_) {\\n      if (!arguments.length) return value;\\n      value = _;\\n      return pie;\\n    };\\n    pie.sort = function(_) {\\n      if (!arguments.length) return sort;\\n      sort = _;\\n      return pie;\\n    };\\n    pie.startAngle = function(_) {\\n      if (!arguments.length) return startAngle;\\n      startAngle = _;\\n      return pie;\\n    };\\n    pie.endAngle = function(_) {\\n      if (!arguments.length) return endAngle;\\n      endAngle = _;\\n      return pie;\\n    };\\n    pie.padAngle = function(_) {\\n      if (!arguments.length) return padAngle;\\n      padAngle = _;\\n      return pie;\\n    };\\n    return pie;\\n  };\\n  var d3_layout_pieSortByValue = {};\\n  d3.layout.stack = function() {\\n    var values = d3_identity, order = d3_layout_stackOrderDefault, offset = d3_layout_stackOffsetZero, out = d3_layout_stackOut, x = d3_layout_stackX, y = d3_layout_stackY;\\n    function stack(data, index) {\\n      if (!(n = data.length)) return data;\\n      var series = data.map(function(d, i) {\\n        return values.call(stack, d, i);\\n      });\\n      var points = series.map(function(d) {\\n        return d.map(function(v, i) {\\n          return [ x.call(stack, v, i), y.call(stack, v, i) ];\\n        });\\n      });\\n      var orders = order.call(stack, points, index);\\n      series = d3.permute(series, orders);\\n      points = d3.permute(points, orders);\\n      var offsets = offset.call(stack, points, index);\\n      var m = series[0].length, n, i, j, o;\\n      for (j = 0; j < m; ++j) {\\n        out.call(stack, series[0][j], o = offsets[j], points[0][j][1]);\\n        for (i = 1; i < n; ++i) {\\n          out.call(stack, series[i][j], o += points[i - 1][j][1], points[i][j][1]);\\n        }\\n      }\\n      return data;\\n    }\\n    stack.values = function(x) {\\n      if (!arguments.length) return values;\\n      values = x;\\n      return stack;\\n    };\\n    stack.order = function(x) {\\n      if (!arguments.length) return order;\\n      order = typeof x === \\\"function\\\" ? x : d3_layout_stackOrders.get(x) || d3_layout_stackOrderDefault;\\n      return stack;\\n    };\\n    stack.offset = function(x) {\\n      if (!arguments.length) return offset;\\n      offset = typeof x === \\\"function\\\" ? x : d3_layout_stackOffsets.get(x) || d3_layout_stackOffsetZero;\\n      return stack;\\n    };\\n    stack.x = function(z) {\\n      if (!arguments.length) return x;\\n      x = z;\\n      return stack;\\n    };\\n    stack.y = function(z) {\\n      if (!arguments.length) return y;\\n      y = z;\\n      return stack;\\n    };\\n    stack.out = function(z) {\\n      if (!arguments.length) return out;\\n      out = z;\\n      return stack;\\n    };\\n    return stack;\\n  };\\n  function d3_layout_stackX(d) {\\n    return d.x;\\n  }\\n  function d3_layout_stackY(d) {\\n    return d.y;\\n  }\\n  function d3_layout_stackOut(d, y0, y) {\\n    d.y0 = y0;\\n    d.y = y;\\n  }\\n  var d3_layout_stackOrders = d3.map({\\n    \\\"inside-out\\\": function(data) {\\n      var n = data.length, i, j, max = data.map(d3_layout_stackMaxIndex), sums = data.map(d3_layout_stackReduceSum), index = d3.range(n).sort(function(a, b) {\\n        return max[a] - max[b];\\n      }), top = 0, bottom = 0, tops = [], bottoms = [];\\n      for (i = 0; i < n; ++i) {\\n        j = index[i];\\n        if (top < bottom) {\\n          top += sums[j];\\n          tops.push(j);\\n        } else {\\n          bottom += sums[j];\\n          bottoms.push(j);\\n        }\\n      }\\n      return bottoms.reverse().concat(tops);\\n    },\\n    reverse: function(data) {\\n      return d3.range(data.length).reverse();\\n    },\\n    \\\"default\\\": d3_layout_stackOrderDefault\\n  });\\n  var d3_layout_stackOffsets = d3.map({\\n    silhouette: function(data) {\\n      var n = data.length, m = data[0].length, sums = [], max = 0, i, j, o, y0 = [];\\n      for (j = 0; j < m; ++j) {\\n        for (i = 0, o = 0; i < n; i++) o += data[i][j][1];\\n        if (o > max) max = o;\\n        sums.push(o);\\n      }\\n      for (j = 0; j < m; ++j) {\\n        y0[j] = (max - sums[j]) / 2;\\n      }\\n      return y0;\\n    },\\n    wiggle: function(data) {\\n      var n = data.length, x = data[0], m = x.length, i, j, k, s1, s2, s3, dx, o, o0, y0 = [];\\n      y0[0] = o = o0 = 0;\\n      for (j = 1; j < m; ++j) {\\n        for (i = 0, s1 = 0; i < n; ++i) s1 += data[i][j][1];\\n        for (i = 0, s2 = 0, dx = x[j][0] - x[j - 1][0]; i < n; ++i) {\\n          for (k = 0, s3 = (data[i][j][1] - data[i][j - 1][1]) / (2 * dx); k < i; ++k) {\\n            s3 += (data[k][j][1] - data[k][j - 1][1]) / dx;\\n          }\\n          s2 += s3 * data[i][j][1];\\n        }\\n        y0[j] = o -= s1 ? s2 / s1 * dx : 0;\\n        if (o < o0) o0 = o;\\n      }\\n      for (j = 0; j < m; ++j) y0[j] -= o0;\\n      return y0;\\n    },\\n    expand: function(data) {\\n      var n = data.length, m = data[0].length, k = 1 / n, i, j, o, y0 = [];\\n      for (j = 0; j < m; ++j) {\\n        for (i = 0, o = 0; i < n; i++) o += data[i][j][1];\\n        if (o) for (i = 0; i < n; i++) data[i][j][1] /= o; else for (i = 0; i < n; i++) data[i][j][1] = k;\\n      }\\n      for (j = 0; j < m; ++j) y0[j] = 0;\\n      return y0;\\n    },\\n    zero: d3_layout_stackOffsetZero\\n  });\\n  function d3_layout_stackOrderDefault(data) {\\n    return d3.range(data.length);\\n  }\\n  function d3_layout_stackOffsetZero(data) {\\n    var j = -1, m = data[0].length, y0 = [];\\n    while (++j < m) y0[j] = 0;\\n    return y0;\\n  }\\n  function d3_layout_stackMaxIndex(array) {\\n    var i = 1, j = 0, v = array[0][1], k, n = array.length;\\n    for (;i < n; ++i) {\\n      if ((k = array[i][1]) > v) {\\n        j = i;\\n        v = k;\\n      }\\n    }\\n    return j;\\n  }\\n  function d3_layout_stackReduceSum(d) {\\n    return d.reduce(d3_layout_stackSum, 0);\\n  }\\n  function d3_layout_stackSum(p, d) {\\n    return p + d[1];\\n  }\\n  d3.layout.histogram = function() {\\n    var frequency = true, valuer = Number, ranger = d3_layout_histogramRange, binner = d3_layout_histogramBinSturges;\\n    function histogram(data, i) {\\n      var bins = [], values = data.map(valuer, this), range = ranger.call(this, values, i), thresholds = binner.call(this, range, values, i), bin, i = -1, n = values.length, m = thresholds.length - 1, k = frequency ? 1 : 1 / n, x;\\n      while (++i < m) {\\n        bin = bins[i] = [];\\n        bin.dx = thresholds[i + 1] - (bin.x = thresholds[i]);\\n        bin.y = 0;\\n      }\\n      if (m > 0) {\\n        i = -1;\\n        while (++i < n) {\\n          x = values[i];\\n          if (x >= range[0] && x <= range[1]) {\\n            bin = bins[d3.bisect(thresholds, x, 1, m) - 1];\\n            bin.y += k;\\n            bin.push(data[i]);\\n          }\\n        }\\n      }\\n      return bins;\\n    }\\n    histogram.value = function(x) {\\n      if (!arguments.length) return valuer;\\n      valuer = x;\\n      return histogram;\\n    };\\n    histogram.range = function(x) {\\n      if (!arguments.length) return ranger;\\n      ranger = d3_functor(x);\\n      return histogram;\\n    };\\n    histogram.bins = function(x) {\\n      if (!arguments.length) return binner;\\n      binner = typeof x === \\\"number\\\" ? function(range) {\\n        return d3_layout_histogramBinFixed(range, x);\\n      } : d3_functor(x);\\n      return histogram;\\n    };\\n    histogram.frequency = function(x) {\\n      if (!arguments.length) return frequency;\\n      frequency = !!x;\\n      return histogram;\\n    };\\n    return histogram;\\n  };\\n  function d3_layout_histogramBinSturges(range, values) {\\n    return d3_layout_histogramBinFixed(range, Math.ceil(Math.log(values.length) / Math.LN2 + 1));\\n  }\\n  function d3_layout_histogramBinFixed(range, n) {\\n    var x = -1, b = +range[0], m = (range[1] - b) / n, f = [];\\n    while (++x <= n) f[x] = m * x + b;\\n    return f;\\n  }\\n  function d3_layout_histogramRange(values) {\\n    return [ d3.min(values), d3.max(values) ];\\n  }\\n  d3.layout.pack = function() {\\n    var hierarchy = d3.layout.hierarchy().sort(d3_layout_packSort), padding = 0, size = [ 1, 1 ], radius;\\n    function pack(d, i) {\\n      var nodes = hierarchy.call(this, d, i), root = nodes[0], w = size[0], h = size[1], r = radius == null ? Math.sqrt : typeof radius === \\\"function\\\" ? radius : function() {\\n        return radius;\\n      };\\n      root.x = root.y = 0;\\n      d3_layout_hierarchyVisitAfter(root, function(d) {\\n        d.r = +r(d.value);\\n      });\\n      d3_layout_hierarchyVisitAfter(root, d3_layout_packSiblings);\\n      if (padding) {\\n        var dr = padding * (radius ? 1 : Math.max(2 * root.r / w, 2 * root.r / h)) / 2;\\n        d3_layout_hierarchyVisitAfter(root, function(d) {\\n          d.r += dr;\\n        });\\n        d3_layout_hierarchyVisitAfter(root, d3_layout_packSiblings);\\n        d3_layout_hierarchyVisitAfter(root, function(d) {\\n          d.r -= dr;\\n        });\\n      }\\n      d3_layout_packTransform(root, w / 2, h / 2, radius ? 1 : 1 / Math.max(2 * root.r / w, 2 * root.r / h));\\n      return nodes;\\n    }\\n    pack.size = function(_) {\\n      if (!arguments.length) return size;\\n      size = _;\\n      return pack;\\n    };\\n    pack.radius = function(_) {\\n      if (!arguments.length) return radius;\\n      radius = _ == null || typeof _ === \\\"function\\\" ? _ : +_;\\n      return pack;\\n    };\\n    pack.padding = function(_) {\\n      if (!arguments.length) return padding;\\n      padding = +_;\\n      return pack;\\n    };\\n    return d3_layout_hierarchyRebind(pack, hierarchy);\\n  };\\n  function d3_layout_packSort(a, b) {\\n    return a.value - b.value;\\n  }\\n  function d3_layout_packInsert(a, b) {\\n    var c = a._pack_next;\\n    a._pack_next = b;\\n    b._pack_prev = a;\\n    b._pack_next = c;\\n    c._pack_prev = b;\\n  }\\n  function d3_layout_packSplice(a, b) {\\n    a._pack_next = b;\\n    b._pack_prev = a;\\n  }\\n  function d3_layout_packIntersects(a, b) {\\n    var dx = b.x - a.x, dy = b.y - a.y, dr = a.r + b.r;\\n    return .999 * dr * dr > dx * dx + dy * dy;\\n  }\\n  function d3_layout_packSiblings(node) {\\n    if (!(nodes = node.children) || !(n = nodes.length)) return;\\n    var nodes, xMin = Infinity, xMax = -Infinity, yMin = Infinity, yMax = -Infinity, a, b, c, i, j, k, n;\\n    function bound(node) {\\n      xMin = Math.min(node.x - node.r, xMin);\\n      xMax = Math.max(node.x + node.r, xMax);\\n      yMin = Math.min(node.y - node.r, yMin);\\n      yMax = Math.max(node.y + node.r, yMax);\\n    }\\n    nodes.forEach(d3_layout_packLink);\\n    a = nodes[0];\\n    a.x = -a.r;\\n    a.y = 0;\\n    bound(a);\\n    if (n > 1) {\\n      b = nodes[1];\\n      b.x = b.r;\\n      b.y = 0;\\n      bound(b);\\n      if (n > 2) {\\n        c = nodes[2];\\n        d3_layout_packPlace(a, b, c);\\n        bound(c);\\n        d3_layout_packInsert(a, c);\\n        a._pack_prev = c;\\n        d3_layout_packInsert(c, b);\\n        b = a._pack_next;\\n        for (i = 3; i < n; i++) {\\n          d3_layout_packPlace(a, b, c = nodes[i]);\\n          var isect = 0, s1 = 1, s2 = 1;\\n          for (j = b._pack_next; j !== b; j = j._pack_next, s1++) {\\n            if (d3_layout_packIntersects(j, c)) {\\n              isect = 1;\\n              break;\\n            }\\n          }\\n          if (isect == 1) {\\n            for (k = a._pack_prev; k !== j._pack_prev; k = k._pack_prev, s2++) {\\n              if (d3_layout_packIntersects(k, c)) {\\n                break;\\n              }\\n            }\\n          }\\n          if (isect) {\\n            if (s1 < s2 || s1 == s2 && b.r < a.r) d3_layout_packSplice(a, b = j); else d3_layout_packSplice(a = k, b);\\n            i--;\\n          } else {\\n            d3_layout_packInsert(a, c);\\n            b = c;\\n            bound(c);\\n          }\\n        }\\n      }\\n    }\\n    var cx = (xMin + xMax) / 2, cy = (yMin + yMax) / 2, cr = 0;\\n    for (i = 0; i < n; i++) {\\n      c = nodes[i];\\n      c.x -= cx;\\n      c.y -= cy;\\n      cr = Math.max(cr, c.r + Math.sqrt(c.x * c.x + c.y * c.y));\\n    }\\n    node.r = cr;\\n    nodes.forEach(d3_layout_packUnlink);\\n  }\\n  function d3_layout_packLink(node) {\\n    node._pack_next = node._pack_prev = node;\\n  }\\n  function d3_layout_packUnlink(node) {\\n    delete node._pack_next;\\n    delete node._pack_prev;\\n  }\\n  function d3_layout_packTransform(node, x, y, k) {\\n    var children = node.children;\\n    node.x = x += k * node.x;\\n    node.y = y += k * node.y;\\n    node.r *= k;\\n    if (children) {\\n      var i = -1, n = children.length;\\n      while (++i < n) d3_layout_packTransform(children[i], x, y, k);\\n    }\\n  }\\n  function d3_layout_packPlace(a, b, c) {\\n    var db = a.r + c.r, dx = b.x - a.x, dy = b.y - a.y;\\n    if (db && (dx || dy)) {\\n      var da = b.r + c.r, dc = dx * dx + dy * dy;\\n      da *= da;\\n      db *= db;\\n      var x = .5 + (db - da) / (2 * dc), y = Math.sqrt(Math.max(0, 2 * da * (db + dc) - (db -= dc) * db - da * da)) / (2 * dc);\\n      c.x = a.x + x * dx + y * dy;\\n      c.y = a.y + x * dy - y * dx;\\n    } else {\\n      c.x = a.x + db;\\n      c.y = a.y;\\n    }\\n  }\\n  d3.layout.tree = function() {\\n    var hierarchy = d3.layout.hierarchy().sort(null).value(null), separation = d3_layout_treeSeparation, size = [ 1, 1 ], nodeSize = null;\\n    function tree(d, i) {\\n      var nodes = hierarchy.call(this, d, i), root0 = nodes[0], root1 = wrapTree(root0);\\n      d3_layout_hierarchyVisitAfter(root1, firstWalk), root1.parent.m = -root1.z;\\n      d3_layout_hierarchyVisitBefore(root1, secondWalk);\\n      if (nodeSize) d3_layout_hierarchyVisitBefore(root0, sizeNode); else {\\n        var left = root0, right = root0, bottom = root0;\\n        d3_layout_hierarchyVisitBefore(root0, function(node) {\\n          if (node.x < left.x) left = node;\\n          if (node.x > right.x) right = node;\\n          if (node.depth > bottom.depth) bottom = node;\\n        });\\n        var tx = separation(left, right) / 2 - left.x, kx = size[0] / (right.x + separation(right, left) / 2 + tx), ky = size[1] / (bottom.depth || 1);\\n        d3_layout_hierarchyVisitBefore(root0, function(node) {\\n          node.x = (node.x + tx) * kx;\\n          node.y = node.depth * ky;\\n        });\\n      }\\n      return nodes;\\n    }\\n    function wrapTree(root0) {\\n      var root1 = {\\n        A: null,\\n        children: [ root0 ]\\n      }, queue = [ root1 ], node1;\\n      while ((node1 = queue.pop()) != null) {\\n        for (var children = node1.children, child, i = 0, n = children.length; i < n; ++i) {\\n          queue.push((children[i] = child = {\\n            _: children[i],\\n            parent: node1,\\n            children: (child = children[i].children) && child.slice() || [],\\n            A: null,\\n            a: null,\\n            z: 0,\\n            m: 0,\\n            c: 0,\\n            s: 0,\\n            t: null,\\n            i: i\\n          }).a = child);\\n        }\\n      }\\n      return root1.children[0];\\n    }\\n    function firstWalk(v) {\\n      var children = v.children, siblings = v.parent.children, w = v.i ? siblings[v.i - 1] : null;\\n      if (children.length) {\\n        d3_layout_treeShift(v);\\n        var midpoint = (children[0].z + children[children.length - 1].z) / 2;\\n        if (w) {\\n          v.z = w.z + separation(v._, w._);\\n          v.m = v.z - midpoint;\\n        } else {\\n          v.z = midpoint;\\n        }\\n      } else if (w) {\\n        v.z = w.z + separation(v._, w._);\\n      }\\n      v.parent.A = apportion(v, w, v.parent.A || siblings[0]);\\n    }\\n    function secondWalk(v) {\\n      v._.x = v.z + v.parent.m;\\n      v.m += v.parent.m;\\n    }\\n    function apportion(v, w, ancestor) {\\n      if (w) {\\n        var vip = v, vop = v, vim = w, vom = vip.parent.children[0], sip = vip.m, sop = vop.m, sim = vim.m, som = vom.m, shift;\\n        while (vim = d3_layout_treeRight(vim), vip = d3_layout_treeLeft(vip), vim && vip) {\\n          vom = d3_layout_treeLeft(vom);\\n          vop = d3_layout_treeRight(vop);\\n          vop.a = v;\\n          shift = vim.z + sim - vip.z - sip + separation(vim._, vip._);\\n          if (shift > 0) {\\n            d3_layout_treeMove(d3_layout_treeAncestor(vim, v, ancestor), v, shift);\\n            sip += shift;\\n            sop += shift;\\n          }\\n          sim += vim.m;\\n          sip += vip.m;\\n          som += vom.m;\\n          sop += vop.m;\\n        }\\n        if (vim && !d3_layout_treeRight(vop)) {\\n          vop.t = vim;\\n          vop.m += sim - sop;\\n        }\\n        if (vip && !d3_layout_treeLeft(vom)) {\\n          vom.t = vip;\\n          vom.m += sip - som;\\n          ancestor = v;\\n        }\\n      }\\n      return ancestor;\\n    }\\n    function sizeNode(node) {\\n      node.x *= size[0];\\n      node.y = node.depth * size[1];\\n    }\\n    tree.separation = function(x) {\\n      if (!arguments.length) return separation;\\n      separation = x;\\n      return tree;\\n    };\\n    tree.size = function(x) {\\n      if (!arguments.length) return nodeSize ? null : size;\\n      nodeSize = (size = x) == null ? sizeNode : null;\\n      return tree;\\n    };\\n    tree.nodeSize = function(x) {\\n      if (!arguments.length) return nodeSize ? size : null;\\n      nodeSize = (size = x) == null ? null : sizeNode;\\n      return tree;\\n    };\\n    return d3_layout_hierarchyRebind(tree, hierarchy);\\n  };\\n  function d3_layout_treeSeparation(a, b) {\\n    return a.parent == b.parent ? 1 : 2;\\n  }\\n  function d3_layout_treeLeft(v) {\\n    var children = v.children;\\n    return children.length ? children[0] : v.t;\\n  }\\n  function d3_layout_treeRight(v) {\\n    var children = v.children, n;\\n    return (n = children.length) ? children[n - 1] : v.t;\\n  }\\n  function d3_layout_treeMove(wm, wp, shift) {\\n    var change = shift / (wp.i - wm.i);\\n    wp.c -= change;\\n    wp.s += shift;\\n    wm.c += change;\\n    wp.z += shift;\\n    wp.m += shift;\\n  }\\n  function d3_layout_treeShift(v) {\\n    var shift = 0, change = 0, children = v.children, i = children.length, w;\\n    while (--i >= 0) {\\n      w = children[i];\\n      w.z += shift;\\n      w.m += shift;\\n      shift += w.s + (change += w.c);\\n    }\\n  }\\n  function d3_layout_treeAncestor(vim, v, ancestor) {\\n    return vim.a.parent === v.parent ? vim.a : ancestor;\\n  }\\n  d3.layout.cluster = function() {\\n    var hierarchy = d3.layout.hierarchy().sort(null).value(null), separation = d3_layout_treeSeparation, size = [ 1, 1 ], nodeSize = false;\\n    function cluster(d, i) {\\n      var nodes = hierarchy.call(this, d, i), root = nodes[0], previousNode, x = 0;\\n      d3_layout_hierarchyVisitAfter(root, function(node) {\\n        var children = node.children;\\n        if (children && children.length) {\\n          node.x = d3_layout_clusterX(children);\\n          node.y = d3_layout_clusterY(children);\\n        } else {\\n          node.x = previousNode ? x += separation(node, previousNode) : 0;\\n          node.y = 0;\\n          previousNode = node;\\n        }\\n      });\\n      var left = d3_layout_clusterLeft(root), right = d3_layout_clusterRight(root), x0 = left.x - separation(left, right) / 2, x1 = right.x + separation(right, left) / 2;\\n      d3_layout_hierarchyVisitAfter(root, nodeSize ? function(node) {\\n        node.x = (node.x - root.x) * size[0];\\n        node.y = (root.y - node.y) * size[1];\\n      } : function(node) {\\n        node.x = (node.x - x0) / (x1 - x0) * size[0];\\n        node.y = (1 - (root.y ? node.y / root.y : 1)) * size[1];\\n      });\\n      return nodes;\\n    }\\n    cluster.separation = function(x) {\\n      if (!arguments.length) return separation;\\n      separation = x;\\n      return cluster;\\n    };\\n    cluster.size = function(x) {\\n      if (!arguments.length) return nodeSize ? null : size;\\n      nodeSize = (size = x) == null;\\n      return cluster;\\n    };\\n    cluster.nodeSize = function(x) {\\n      if (!arguments.length) return nodeSize ? size : null;\\n      nodeSize = (size = x) != null;\\n      return cluster;\\n    };\\n    return d3_layout_hierarchyRebind(cluster, hierarchy);\\n  };\\n  function d3_layout_clusterY(children) {\\n    return 1 + d3.max(children, function(child) {\\n      return child.y;\\n    });\\n  }\\n  function d3_layout_clusterX(children) {\\n    return children.reduce(function(x, child) {\\n      return x + child.x;\\n    }, 0) / children.length;\\n  }\\n  function d3_layout_clusterLeft(node) {\\n    var children = node.children;\\n    return children && children.length ? d3_layout_clusterLeft(children[0]) : node;\\n  }\\n  function d3_layout_clusterRight(node) {\\n    var children = node.children, n;\\n    return children && (n = children.length) ? d3_layout_clusterRight(children[n - 1]) : node;\\n  }\\n  d3.layout.treemap = function() {\\n    var hierarchy = d3.layout.hierarchy(), round = Math.round, size = [ 1, 1 ], padding = null, pad = d3_layout_treemapPadNull, sticky = false, stickies, mode = \\\"squarify\\\", ratio = .5 * (1 + Math.sqrt(5));\\n    function scale(children, k) {\\n      var i = -1, n = children.length, child, area;\\n      while (++i < n) {\\n        area = (child = children[i]).value * (k < 0 ? 0 : k);\\n        child.area = isNaN(area) || area <= 0 ? 0 : area;\\n      }\\n    }\\n    function squarify(node) {\\n      var children = node.children;\\n      if (children && children.length) {\\n        var rect = pad(node), row = [], remaining = children.slice(), child, best = Infinity, score, u = mode === \\\"slice\\\" ? rect.dx : mode === \\\"dice\\\" ? rect.dy : mode === \\\"slice-dice\\\" ? node.depth & 1 ? rect.dy : rect.dx : Math.min(rect.dx, rect.dy), n;\\n        scale(remaining, rect.dx * rect.dy / node.value);\\n        row.area = 0;\\n        while ((n = remaining.length) > 0) {\\n          row.push(child = remaining[n - 1]);\\n          row.area += child.area;\\n          if (mode !== \\\"squarify\\\" || (score = worst(row, u)) <= best) {\\n            remaining.pop();\\n            best = score;\\n          } else {\\n            row.area -= row.pop().area;\\n            position(row, u, rect, false);\\n            u = Math.min(rect.dx, rect.dy);\\n            row.length = row.area = 0;\\n            best = Infinity;\\n          }\\n        }\\n        if (row.length) {\\n          position(row, u, rect, true);\\n          row.length = row.area = 0;\\n        }\\n        children.forEach(squarify);\\n      }\\n    }\\n    function stickify(node) {\\n      var children = node.children;\\n      if (children && children.length) {\\n        var rect = pad(node), remaining = children.slice(), child, row = [];\\n        scale(remaining, rect.dx * rect.dy / node.value);\\n        row.area = 0;\\n        while (child = remaining.pop()) {\\n          row.push(child);\\n          row.area += child.area;\\n          if (child.z != null) {\\n            position(row, child.z ? rect.dx : rect.dy, rect, !remaining.length);\\n            row.length = row.area = 0;\\n          }\\n        }\\n        children.forEach(stickify);\\n      }\\n    }\\n    function worst(row, u) {\\n      var s = row.area, r, rmax = 0, rmin = Infinity, i = -1, n = row.length;\\n      while (++i < n) {\\n        if (!(r = row[i].area)) continue;\\n        if (r < rmin) rmin = r;\\n        if (r > rmax) rmax = r;\\n      }\\n      s *= s;\\n      u *= u;\\n      return s ? Math.max(u * rmax * ratio / s, s / (u * rmin * ratio)) : Infinity;\\n    }\\n    function position(row, u, rect, flush) {\\n      var i = -1, n = row.length, x = rect.x, y = rect.y, v = u ? round(row.area / u) : 0, o;\\n      if (u == rect.dx) {\\n        if (flush || v > rect.dy) v = rect.dy;\\n        while (++i < n) {\\n          o = row[i];\\n          o.x = x;\\n          o.y = y;\\n          o.dy = v;\\n          x += o.dx = Math.min(rect.x + rect.dx - x, v ? round(o.area / v) : 0);\\n        }\\n        o.z = true;\\n        o.dx += rect.x + rect.dx - x;\\n        rect.y += v;\\n        rect.dy -= v;\\n      } else {\\n        if (flush || v > rect.dx) v = rect.dx;\\n        while (++i < n) {\\n          o = row[i];\\n          o.x = x;\\n          o.y = y;\\n          o.dx = v;\\n          y += o.dy = Math.min(rect.y + rect.dy - y, v ? round(o.area / v) : 0);\\n        }\\n        o.z = false;\\n        o.dy += rect.y + rect.dy - y;\\n        rect.x += v;\\n        rect.dx -= v;\\n      }\\n    }\\n    function treemap(d) {\\n      var nodes = stickies || hierarchy(d), root = nodes[0];\\n      root.x = root.y = 0;\\n      if (root.value) root.dx = size[0], root.dy = size[1]; else root.dx = root.dy = 0;\\n      if (stickies) hierarchy.revalue(root);\\n      scale([ root ], root.dx * root.dy / root.value);\\n      (stickies ? stickify : squarify)(root);\\n      if (sticky) stickies = nodes;\\n      return nodes;\\n    }\\n    treemap.size = function(x) {\\n      if (!arguments.length) return size;\\n      size = x;\\n      return treemap;\\n    };\\n    treemap.padding = function(x) {\\n      if (!arguments.length) return padding;\\n      function padFunction(node) {\\n        var p = x.call(treemap, node, node.depth);\\n        return p == null ? d3_layout_treemapPadNull(node) : d3_layout_treemapPad(node, typeof p === \\\"number\\\" ? [ p, p, p, p ] : p);\\n      }\\n      function padConstant(node) {\\n        return d3_layout_treemapPad(node, x);\\n      }\\n      var type;\\n      pad = (padding = x) == null ? d3_layout_treemapPadNull : (type = typeof x) === \\\"function\\\" ? padFunction : type === \\\"number\\\" ? (x = [ x, x, x, x ], \\n      padConstant) : padConstant;\\n      return treemap;\\n    };\\n    treemap.round = function(x) {\\n      if (!arguments.length) return round != Number;\\n      round = x ? Math.round : Number;\\n      return treemap;\\n    };\\n    treemap.sticky = function(x) {\\n      if (!arguments.length) return sticky;\\n      sticky = x;\\n      stickies = null;\\n      return treemap;\\n    };\\n    treemap.ratio = function(x) {\\n      if (!arguments.length) return ratio;\\n      ratio = x;\\n      return treemap;\\n    };\\n    treemap.mode = function(x) {\\n      if (!arguments.length) return mode;\\n      mode = x + \\\"\\\";\\n      return treemap;\\n    };\\n    return d3_layout_hierarchyRebind(treemap, hierarchy);\\n  };\\n  function d3_layout_treemapPadNull(node) {\\n    return {\\n      x: node.x,\\n      y: node.y,\\n      dx: node.dx,\\n      dy: node.dy\\n    };\\n  }\\n  function d3_layout_treemapPad(node, padding) {\\n    var x = node.x + padding[3], y = node.y + padding[0], dx = node.dx - padding[1] - padding[3], dy = node.dy - padding[0] - padding[2];\\n    if (dx < 0) {\\n      x += dx / 2;\\n      dx = 0;\\n    }\\n    if (dy < 0) {\\n      y += dy / 2;\\n      dy = 0;\\n    }\\n    return {\\n      x: x,\\n      y: y,\\n      dx: dx,\\n      dy: dy\\n    };\\n  }\\n  d3.random = {\\n    normal: function(µ, σ) {\\n      var n = arguments.length;\\n      if (n < 2) σ = 1;\\n      if (n < 1) µ = 0;\\n      return function() {\\n        var x, y, r;\\n        do {\\n          x = Math.random() * 2 - 1;\\n          y = Math.random() * 2 - 1;\\n          r = x * x + y * y;\\n        } while (!r || r > 1);\\n        return µ + σ * x * Math.sqrt(-2 * Math.log(r) / r);\\n      };\\n    },\\n    logNormal: function() {\\n      var random = d3.random.normal.apply(d3, arguments);\\n      return function() {\\n        return Math.exp(random());\\n      };\\n    },\\n    bates: function(m) {\\n      var random = d3.random.irwinHall(m);\\n      return function() {\\n        return random() / m;\\n      };\\n    },\\n    irwinHall: function(m) {\\n      return function() {\\n        for (var s = 0, j = 0; j < m; j++) s += Math.random();\\n        return s;\\n      };\\n    }\\n  };\\n  d3.scale = {};\\n  function d3_scaleExtent(domain) {\\n    var start = domain[0], stop = domain[domain.length - 1];\\n    return start < stop ? [ start, stop ] : [ stop, start ];\\n  }\\n  function d3_scaleRange(scale) {\\n    return scale.rangeExtent ? scale.rangeExtent() : d3_scaleExtent(scale.range());\\n  }\\n  function d3_scale_bilinear(domain, range, uninterpolate, interpolate) {\\n    var u = uninterpolate(domain[0], domain[1]), i = interpolate(range[0], range[1]);\\n    return function(x) {\\n      return i(u(x));\\n    };\\n  }\\n  function d3_scale_nice(domain, nice) {\\n    var i0 = 0, i1 = domain.length - 1, x0 = domain[i0], x1 = domain[i1], dx;\\n    if (x1 < x0) {\\n      dx = i0, i0 = i1, i1 = dx;\\n      dx = x0, x0 = x1, x1 = dx;\\n    }\\n    domain[i0] = nice.floor(x0);\\n    domain[i1] = nice.ceil(x1);\\n    return domain;\\n  }\\n  function d3_scale_niceStep(step) {\\n    return step ? {\\n      floor: function(x) {\\n        return Math.floor(x / step) * step;\\n      },\\n      ceil: function(x) {\\n        return Math.ceil(x / step) * step;\\n      }\\n    } : d3_scale_niceIdentity;\\n  }\\n  var d3_scale_niceIdentity = {\\n    floor: d3_identity,\\n    ceil: d3_identity\\n  };\\n  function d3_scale_polylinear(domain, range, uninterpolate, interpolate) {\\n    var u = [], i = [], j = 0, k = Math.min(domain.length, range.length) - 1;\\n    if (domain[k] < domain[0]) {\\n      domain = domain.slice().reverse();\\n      range = range.slice().reverse();\\n    }\\n    while (++j <= k) {\\n      u.push(uninterpolate(domain[j - 1], domain[j]));\\n      i.push(interpolate(range[j - 1], range[j]));\\n    }\\n    return function(x) {\\n      var j = d3.bisect(domain, x, 1, k) - 1;\\n      return i[j](u[j](x));\\n    };\\n  }\\n  d3.scale.linear = function() {\\n    return d3_scale_linear([ 0, 1 ], [ 0, 1 ], d3_interpolate, false);\\n  };\\n  function d3_scale_linear(domain, range, interpolate, clamp) {\\n    var output, input;\\n    function rescale() {\\n      var linear = Math.min(domain.length, range.length) > 2 ? d3_scale_polylinear : d3_scale_bilinear, uninterpolate = clamp ? d3_uninterpolateClamp : d3_uninterpolateNumber;\\n      output = linear(domain, range, uninterpolate, interpolate);\\n      input = linear(range, domain, uninterpolate, d3_interpolate);\\n      return scale;\\n    }\\n    function scale(x) {\\n      return output(x);\\n    }\\n    scale.invert = function(y) {\\n      return input(y);\\n    };\\n    scale.domain = function(x) {\\n      if (!arguments.length) return domain;\\n      domain = x.map(Number);\\n      return rescale();\\n    };\\n    scale.range = function(x) {\\n      if (!arguments.length) return range;\\n      range = x;\\n      return rescale();\\n    };\\n    scale.rangeRound = function(x) {\\n      return scale.range(x).interpolate(d3_interpolateRound);\\n    };\\n    scale.clamp = function(x) {\\n      if (!arguments.length) return clamp;\\n      clamp = x;\\n      return rescale();\\n    };\\n    scale.interpolate = function(x) {\\n      if (!arguments.length) return interpolate;\\n      interpolate = x;\\n      return rescale();\\n    };\\n    scale.ticks = function(m) {\\n      return d3_scale_linearTicks(domain, m);\\n    };\\n    scale.tickFormat = function(m, format) {\\n      return d3_scale_linearTickFormat(domain, m, format);\\n    };\\n    scale.nice = function(m) {\\n      d3_scale_linearNice(domain, m);\\n      return rescale();\\n    };\\n    scale.copy = function() {\\n      return d3_scale_linear(domain, range, interpolate, clamp);\\n    };\\n    return rescale();\\n  }\\n  function d3_scale_linearRebind(scale, linear) {\\n    return d3.rebind(scale, linear, \\\"range\\\", \\\"rangeRound\\\", \\\"interpolate\\\", \\\"clamp\\\");\\n  }\\n  function d3_scale_linearNice(domain, m) {\\n    d3_scale_nice(domain, d3_scale_niceStep(d3_scale_linearTickRange(domain, m)[2]));\\n    d3_scale_nice(domain, d3_scale_niceStep(d3_scale_linearTickRange(domain, m)[2]));\\n    return domain;\\n  }\\n  function d3_scale_linearTickRange(domain, m) {\\n    if (m == null) m = 10;\\n    var extent = d3_scaleExtent(domain), span = extent[1] - extent[0], step = Math.pow(10, Math.floor(Math.log(span / m) / Math.LN10)), err = m / span * step;\\n    if (err <= .15) step *= 10; else if (err <= .35) step *= 5; else if (err <= .75) step *= 2;\\n    extent[0] = Math.ceil(extent[0] / step) * step;\\n    extent[1] = Math.floor(extent[1] / step) * step + step * .5;\\n    extent[2] = step;\\n    return extent;\\n  }\\n  function d3_scale_linearTicks(domain, m) {\\n    return d3.range.apply(d3, d3_scale_linearTickRange(domain, m));\\n  }\\n  function d3_scale_linearTickFormat(domain, m, format) {\\n    var range = d3_scale_linearTickRange(domain, m);\\n    if (format) {\\n      var match = d3_format_re.exec(format);\\n      match.shift();\\n      if (match[8] === \\\"s\\\") {\\n        var prefix = d3.formatPrefix(Math.max(abs(range[0]), abs(range[1])));\\n        if (!match[7]) match[7] = \\\".\\\" + d3_scale_linearPrecision(prefix.scale(range[2]));\\n        match[8] = \\\"f\\\";\\n        format = d3.format(match.join(\\\"\\\"));\\n        return function(d) {\\n          return format(prefix.scale(d)) + prefix.symbol;\\n        };\\n      }\\n      if (!match[7]) match[7] = \\\".\\\" + d3_scale_linearFormatPrecision(match[8], range);\\n      format = match.join(\\\"\\\");\\n    } else {\\n      format = \\\",.\\\" + d3_scale_linearPrecision(range[2]) + \\\"f\\\";\\n    }\\n    return d3.format(format);\\n  }\\n  var d3_scale_linearFormatSignificant = {\\n    s: 1,\\n    g: 1,\\n    p: 1,\\n    r: 1,\\n    e: 1\\n  };\\n  function d3_scale_linearPrecision(value) {\\n    return -Math.floor(Math.log(value) / Math.LN10 + .01);\\n  }\\n  function d3_scale_linearFormatPrecision(type, range) {\\n    var p = d3_scale_linearPrecision(range[2]);\\n    return type in d3_scale_linearFormatSignificant ? Math.abs(p - d3_scale_linearPrecision(Math.max(abs(range[0]), abs(range[1])))) + +(type !== \\\"e\\\") : p - (type === \\\"%\\\") * 2;\\n  }\\n  d3.scale.log = function() {\\n    return d3_scale_log(d3.scale.linear().domain([ 0, 1 ]), 10, true, [ 1, 10 ]);\\n  };\\n  function d3_scale_log(linear, base, positive, domain) {\\n    function log(x) {\\n      return (positive ? Math.log(x < 0 ? 0 : x) : -Math.log(x > 0 ? 0 : -x)) / Math.log(base);\\n    }\\n    function pow(x) {\\n      return positive ? Math.pow(base, x) : -Math.pow(base, -x);\\n    }\\n    function scale(x) {\\n      return linear(log(x));\\n    }\\n    scale.invert = function(x) {\\n      return pow(linear.invert(x));\\n    };\\n    scale.domain = function(x) {\\n      if (!arguments.length) return domain;\\n      positive = x[0] >= 0;\\n      linear.domain((domain = x.map(Number)).map(log));\\n      return scale;\\n    };\\n    scale.base = function(_) {\\n      if (!arguments.length) return base;\\n      base = +_;\\n      linear.domain(domain.map(log));\\n      return scale;\\n    };\\n    scale.nice = function() {\\n      var niced = d3_scale_nice(domain.map(log), positive ? Math : d3_scale_logNiceNegative);\\n      linear.domain(niced);\\n      domain = niced.map(pow);\\n      return scale;\\n    };\\n    scale.ticks = function() {\\n      var extent = d3_scaleExtent(domain), ticks = [], u = extent[0], v = extent[1], i = Math.floor(log(u)), j = Math.ceil(log(v)), n = base % 1 ? 2 : base;\\n      if (isFinite(j - i)) {\\n        if (positive) {\\n          for (;i < j; i++) for (var k = 1; k < n; k++) ticks.push(pow(i) * k);\\n          ticks.push(pow(i));\\n        } else {\\n          ticks.push(pow(i));\\n          for (;i++ < j; ) for (var k = n - 1; k > 0; k--) ticks.push(pow(i) * k);\\n        }\\n        for (i = 0; ticks[i] < u; i++) {}\\n        for (j = ticks.length; ticks[j - 1] > v; j--) {}\\n        ticks = ticks.slice(i, j);\\n      }\\n      return ticks;\\n    };\\n    scale.tickFormat = function(n, format) {\\n      if (!arguments.length) return d3_scale_logFormat;\\n      if (arguments.length < 2) format = d3_scale_logFormat; else if (typeof format !== \\\"function\\\") format = d3.format(format);\\n      var k = Math.max(1, base * n / scale.ticks().length);\\n      return function(d) {\\n        var i = d / pow(Math.round(log(d)));\\n        if (i * base < base - .5) i *= base;\\n        return i <= k ? format(d) : \\\"\\\";\\n      };\\n    };\\n    scale.copy = function() {\\n      return d3_scale_log(linear.copy(), base, positive, domain);\\n    };\\n    return d3_scale_linearRebind(scale, linear);\\n  }\\n  var d3_scale_logFormat = d3.format(\\\".0e\\\"), d3_scale_logNiceNegative = {\\n    floor: function(x) {\\n      return -Math.ceil(-x);\\n    },\\n    ceil: function(x) {\\n      return -Math.floor(-x);\\n    }\\n  };\\n  d3.scale.pow = function() {\\n    return d3_scale_pow(d3.scale.linear(), 1, [ 0, 1 ]);\\n  };\\n  function d3_scale_pow(linear, exponent, domain) {\\n    var powp = d3_scale_powPow(exponent), powb = d3_scale_powPow(1 / exponent);\\n    function scale(x) {\\n      return linear(powp(x));\\n    }\\n    scale.invert = function(x) {\\n      return powb(linear.invert(x));\\n    };\\n    scale.domain = function(x) {\\n      if (!arguments.length) return domain;\\n      linear.domain((domain = x.map(Number)).map(powp));\\n      return scale;\\n    };\\n    scale.ticks = function(m) {\\n      return d3_scale_linearTicks(domain, m);\\n    };\\n    scale.tickFormat = function(m, format) {\\n      return d3_scale_linearTickFormat(domain, m, format);\\n    };\\n    scale.nice = function(m) {\\n      return scale.domain(d3_scale_linearNice(domain, m));\\n    };\\n    scale.exponent = function(x) {\\n      if (!arguments.length) return exponent;\\n      powp = d3_scale_powPow(exponent = x);\\n      powb = d3_scale_powPow(1 / exponent);\\n      linear.domain(domain.map(powp));\\n      return scale;\\n    };\\n    scale.copy = function() {\\n      return d3_scale_pow(linear.copy(), exponent, domain);\\n    };\\n    return d3_scale_linearRebind(scale, linear);\\n  }\\n  function d3_scale_powPow(e) {\\n    return function(x) {\\n      return x < 0 ? -Math.pow(-x, e) : Math.pow(x, e);\\n    };\\n  }\\n  d3.scale.sqrt = function() {\\n    return d3.scale.pow().exponent(.5);\\n  };\\n  d3.scale.ordinal = function() {\\n    return d3_scale_ordinal([], {\\n      t: \\\"range\\\",\\n      a: [ [] ]\\n    });\\n  };\\n  function d3_scale_ordinal(domain, ranger) {\\n    var index, range, rangeBand;\\n    function scale(x) {\\n      return range[((index.get(x) || (ranger.t === \\\"range\\\" ? index.set(x, domain.push(x)) : NaN)) - 1) % range.length];\\n    }\\n    function steps(start, step) {\\n      return d3.range(domain.length).map(function(i) {\\n        return start + step * i;\\n      });\\n    }\\n    scale.domain = function(x) {\\n      if (!arguments.length) return domain;\\n      domain = [];\\n      index = new d3_Map();\\n      var i = -1, n = x.length, xi;\\n      while (++i < n) if (!index.has(xi = x[i])) index.set(xi, domain.push(xi));\\n      return scale[ranger.t].apply(scale, ranger.a);\\n    };\\n    scale.range = function(x) {\\n      if (!arguments.length) return range;\\n      range = x;\\n      rangeBand = 0;\\n      ranger = {\\n        t: \\\"range\\\",\\n        a: arguments\\n      };\\n      return scale;\\n    };\\n    scale.rangePoints = function(x, padding) {\\n      if (arguments.length < 2) padding = 0;\\n      var start = x[0], stop = x[1], step = domain.length < 2 ? (start = (start + stop) / 2, \\n      0) : (stop - start) / (domain.length - 1 + padding);\\n      range = steps(start + step * padding / 2, step);\\n      rangeBand = 0;\\n      ranger = {\\n        t: \\\"rangePoints\\\",\\n        a: arguments\\n      };\\n      return scale;\\n    };\\n    scale.rangeRoundPoints = function(x, padding) {\\n      if (arguments.length < 2) padding = 0;\\n      var start = x[0], stop = x[1], step = domain.length < 2 ? (start = stop = Math.round((start + stop) / 2), \\n      0) : (stop - start) / (domain.length - 1 + padding) | 0;\\n      range = steps(start + Math.round(step * padding / 2 + (stop - start - (domain.length - 1 + padding) * step) / 2), step);\\n      rangeBand = 0;\\n      ranger = {\\n        t: \\\"rangeRoundPoints\\\",\\n        a: arguments\\n      };\\n      return scale;\\n    };\\n    scale.rangeBands = function(x, padding, outerPadding) {\\n      if (arguments.length < 2) padding = 0;\\n      if (arguments.length < 3) outerPadding = padding;\\n      var reverse = x[1] < x[0], start = x[reverse - 0], stop = x[1 - reverse], step = (stop - start) / (domain.length - padding + 2 * outerPadding);\\n      range = steps(start + step * outerPadding, step);\\n      if (reverse) range.reverse();\\n      rangeBand = step * (1 - padding);\\n      ranger = {\\n        t: \\\"rangeBands\\\",\\n        a: arguments\\n      };\\n      return scale;\\n    };\\n    scale.rangeRoundBands = function(x, padding, outerPadding) {\\n      if (arguments.length < 2) padding = 0;\\n      if (arguments.length < 3) outerPadding = padding;\\n      var reverse = x[1] < x[0], start = x[reverse - 0], stop = x[1 - reverse], step = Math.floor((stop - start) / (domain.length - padding + 2 * outerPadding));\\n      range = steps(start + Math.round((stop - start - (domain.length - padding) * step) / 2), step);\\n      if (reverse) range.reverse();\\n      rangeBand = Math.round(step * (1 - padding));\\n      ranger = {\\n        t: \\\"rangeRoundBands\\\",\\n        a: arguments\\n      };\\n      return scale;\\n    };\\n    scale.rangeBand = function() {\\n      return rangeBand;\\n    };\\n    scale.rangeExtent = function() {\\n      return d3_scaleExtent(ranger.a[0]);\\n    };\\n    scale.copy = function() {\\n      return d3_scale_ordinal(domain, ranger);\\n    };\\n    return scale.domain(domain);\\n  }\\n  d3.scale.category10 = function() {\\n    return d3.scale.ordinal().range(d3_category10);\\n  };\\n  d3.scale.category20 = function() {\\n    return d3.scale.ordinal().range(d3_category20);\\n  };\\n  d3.scale.category20b = function() {\\n    return d3.scale.ordinal().range(d3_category20b);\\n  };\\n  d3.scale.category20c = function() {\\n    return d3.scale.ordinal().range(d3_category20c);\\n  };\\n  var d3_category10 = [ 2062260, 16744206, 2924588, 14034728, 9725885, 9197131, 14907330, 8355711, 12369186, 1556175 ].map(d3_rgbString);\\n  var d3_category20 = [ 2062260, 11454440, 16744206, 16759672, 2924588, 10018698, 14034728, 16750742, 9725885, 12955861, 9197131, 12885140, 14907330, 16234194, 8355711, 13092807, 12369186, 14408589, 1556175, 10410725 ].map(d3_rgbString);\\n  var d3_category20b = [ 3750777, 5395619, 7040719, 10264286, 6519097, 9216594, 11915115, 13556636, 9202993, 12426809, 15186514, 15190932, 8666169, 11356490, 14049643, 15177372, 8077683, 10834324, 13528509, 14589654 ].map(d3_rgbString);\\n  var d3_category20c = [ 3244733, 7057110, 10406625, 13032431, 15095053, 16616764, 16625259, 16634018, 3253076, 7652470, 10607003, 13101504, 7695281, 10394312, 12369372, 14342891, 6513507, 9868950, 12434877, 14277081 ].map(d3_rgbString);\\n  d3.scale.quantile = function() {\\n    return d3_scale_quantile([], []);\\n  };\\n  function d3_scale_quantile(domain, range) {\\n    var thresholds;\\n    function rescale() {\\n      var k = 0, q = range.length;\\n      thresholds = [];\\n      while (++k < q) thresholds[k - 1] = d3.quantile(domain, k / q);\\n      return scale;\\n    }\\n    function scale(x) {\\n      if (!isNaN(x = +x)) return range[d3.bisect(thresholds, x)];\\n    }\\n    scale.domain = function(x) {\\n      if (!arguments.length) return domain;\\n      domain = x.map(d3_number).filter(d3_numeric).sort(d3_ascending);\\n      return rescale();\\n    };\\n    scale.range = function(x) {\\n      if (!arguments.length) return range;\\n      range = x;\\n      return rescale();\\n    };\\n    scale.quantiles = function() {\\n      return thresholds;\\n    };\\n    scale.invertExtent = function(y) {\\n      y = range.indexOf(y);\\n      return y < 0 ? [ NaN, NaN ] : [ y > 0 ? thresholds[y - 1] : domain[0], y < thresholds.length ? thresholds[y] : domain[domain.length - 1] ];\\n    };\\n    scale.copy = function() {\\n      return d3_scale_quantile(domain, range);\\n    };\\n    return rescale();\\n  }\\n  d3.scale.quantize = function() {\\n    return d3_scale_quantize(0, 1, [ 0, 1 ]);\\n  };\\n  function d3_scale_quantize(x0, x1, range) {\\n    var kx, i;\\n    function scale(x) {\\n      return range[Math.max(0, Math.min(i, Math.floor(kx * (x - x0))))];\\n    }\\n    function rescale() {\\n      kx = range.length / (x1 - x0);\\n      i = range.length - 1;\\n      return scale;\\n    }\\n    scale.domain = function(x) {\\n      if (!arguments.length) return [ x0, x1 ];\\n      x0 = +x[0];\\n      x1 = +x[x.length - 1];\\n      return rescale();\\n    };\\n    scale.range = function(x) {\\n      if (!arguments.length) return range;\\n      range = x;\\n      return rescale();\\n    };\\n    scale.invertExtent = function(y) {\\n      y = range.indexOf(y);\\n      y = y < 0 ? NaN : y / kx + x0;\\n      return [ y, y + 1 / kx ];\\n    };\\n    scale.copy = function() {\\n      return d3_scale_quantize(x0, x1, range);\\n    };\\n    return rescale();\\n  }\\n  d3.scale.threshold = function() {\\n    return d3_scale_threshold([ .5 ], [ 0, 1 ]);\\n  };\\n  function d3_scale_threshold(domain, range) {\\n    function scale(x) {\\n      if (x <= x) return range[d3.bisect(domain, x)];\\n    }\\n    scale.domain = function(_) {\\n      if (!arguments.length) return domain;\\n      domain = _;\\n      return scale;\\n    };\\n    scale.range = function(_) {\\n      if (!arguments.length) return range;\\n      range = _;\\n      return scale;\\n    };\\n    scale.invertExtent = function(y) {\\n      y = range.indexOf(y);\\n      return [ domain[y - 1], domain[y] ];\\n    };\\n    scale.copy = function() {\\n      return d3_scale_threshold(domain, range);\\n    };\\n    return scale;\\n  }\\n  d3.scale.identity = function() {\\n    return d3_scale_identity([ 0, 1 ]);\\n  };\\n  function d3_scale_identity(domain) {\\n    function identity(x) {\\n      return +x;\\n    }\\n    identity.invert = identity;\\n    identity.domain = identity.range = function(x) {\\n      if (!arguments.length) return domain;\\n      domain = x.map(identity);\\n      return identity;\\n    };\\n    identity.ticks = function(m) {\\n      return d3_scale_linearTicks(domain, m);\\n    };\\n    identity.tickFormat = function(m, format) {\\n      return d3_scale_linearTickFormat(domain, m, format);\\n    };\\n    identity.copy = function() {\\n      return d3_scale_identity(domain);\\n    };\\n    return identity;\\n  }\\n  d3.svg = {};\\n  function d3_zero() {\\n    return 0;\\n  }\\n  d3.svg.arc = function() {\\n    var innerRadius = d3_svg_arcInnerRadius, outerRadius = d3_svg_arcOuterRadius, cornerRadius = d3_zero, padRadius = d3_svg_arcAuto, startAngle = d3_svg_arcStartAngle, endAngle = d3_svg_arcEndAngle, padAngle = d3_svg_arcPadAngle;\\n    function arc() {\\n      var r0 = Math.max(0, +innerRadius.apply(this, arguments)), r1 = Math.max(0, +outerRadius.apply(this, arguments)), a0 = startAngle.apply(this, arguments) - halfπ, a1 = endAngle.apply(this, arguments) - halfπ, da = Math.abs(a1 - a0), cw = a0 > a1 ? 0 : 1;\\n      if (r1 < r0) rc = r1, r1 = r0, r0 = rc;\\n      if (da >= τε) return circleSegment(r1, cw) + (r0 ? circleSegment(r0, 1 - cw) : \\\"\\\") + \\\"Z\\\";\\n      var rc, cr, rp, ap, p0 = 0, p1 = 0, x0, y0, x1, y1, x2, y2, x3, y3, path = [];\\n      if (ap = (+padAngle.apply(this, arguments) || 0) / 2) {\\n        rp = padRadius === d3_svg_arcAuto ? Math.sqrt(r0 * r0 + r1 * r1) : +padRadius.apply(this, arguments);\\n        if (!cw) p1 *= -1;\\n        if (r1) p1 = d3_asin(rp / r1 * Math.sin(ap));\\n        if (r0) p0 = d3_asin(rp / r0 * Math.sin(ap));\\n      }\\n      if (r1) {\\n        x0 = r1 * Math.cos(a0 + p1);\\n        y0 = r1 * Math.sin(a0 + p1);\\n        x1 = r1 * Math.cos(a1 - p1);\\n        y1 = r1 * Math.sin(a1 - p1);\\n        var l1 = Math.abs(a1 - a0 - 2 * p1) <= π ? 0 : 1;\\n        if (p1 && d3_svg_arcSweep(x0, y0, x1, y1) === cw ^ l1) {\\n          var h1 = (a0 + a1) / 2;\\n          x0 = r1 * Math.cos(h1);\\n          y0 = r1 * Math.sin(h1);\\n          x1 = y1 = null;\\n        }\\n      } else {\\n        x0 = y0 = 0;\\n      }\\n      if (r0) {\\n        x2 = r0 * Math.cos(a1 - p0);\\n        y2 = r0 * Math.sin(a1 - p0);\\n        x3 = r0 * Math.cos(a0 + p0);\\n        y3 = r0 * Math.sin(a0 + p0);\\n        var l0 = Math.abs(a0 - a1 + 2 * p0) <= π ? 0 : 1;\\n        if (p0 && d3_svg_arcSweep(x2, y2, x3, y3) === 1 - cw ^ l0) {\\n          var h0 = (a0 + a1) / 2;\\n          x2 = r0 * Math.cos(h0);\\n          y2 = r0 * Math.sin(h0);\\n          x3 = y3 = null;\\n        }\\n      } else {\\n        x2 = y2 = 0;\\n      }\\n      if (da > ε && (rc = Math.min(Math.abs(r1 - r0) / 2, +cornerRadius.apply(this, arguments))) > .001) {\\n        cr = r0 < r1 ^ cw ? 0 : 1;\\n        var rc1 = rc, rc0 = rc;\\n        if (da < π) {\\n          var oc = x3 == null ? [ x2, y2 ] : x1 == null ? [ x0, y0 ] : d3_geom_polygonIntersect([ x0, y0 ], [ x3, y3 ], [ x1, y1 ], [ x2, y2 ]), ax = x0 - oc[0], ay = y0 - oc[1], bx = x1 - oc[0], by = y1 - oc[1], kc = 1 / Math.sin(Math.acos((ax * bx + ay * by) / (Math.sqrt(ax * ax + ay * ay) * Math.sqrt(bx * bx + by * by))) / 2), lc = Math.sqrt(oc[0] * oc[0] + oc[1] * oc[1]);\\n          rc0 = Math.min(rc, (r0 - lc) / (kc - 1));\\n          rc1 = Math.min(rc, (r1 - lc) / (kc + 1));\\n        }\\n        if (x1 != null) {\\n          var t30 = d3_svg_arcCornerTangents(x3 == null ? [ x2, y2 ] : [ x3, y3 ], [ x0, y0 ], r1, rc1, cw), t12 = d3_svg_arcCornerTangents([ x1, y1 ], [ x2, y2 ], r1, rc1, cw);\\n          if (rc === rc1) {\\n            path.push(\\\"M\\\", t30[0], \\\"A\\\", rc1, \\\",\\\", rc1, \\\" 0 0,\\\", cr, \\\" \\\", t30[1], \\\"A\\\", r1, \\\",\\\", r1, \\\" 0 \\\", 1 - cw ^ d3_svg_arcSweep(t30[1][0], t30[1][1], t12[1][0], t12[1][1]), \\\",\\\", cw, \\\" \\\", t12[1], \\\"A\\\", rc1, \\\",\\\", rc1, \\\" 0 0,\\\", cr, \\\" \\\", t12[0]);\\n          } else {\\n            path.push(\\\"M\\\", t30[0], \\\"A\\\", rc1, \\\",\\\", rc1, \\\" 0 1,\\\", cr, \\\" \\\", t12[0]);\\n          }\\n        } else {\\n          path.push(\\\"M\\\", x0, \\\",\\\", y0);\\n        }\\n        if (x3 != null) {\\n          var t03 = d3_svg_arcCornerTangents([ x0, y0 ], [ x3, y3 ], r0, -rc0, cw), t21 = d3_svg_arcCornerTangents([ x2, y2 ], x1 == null ? [ x0, y0 ] : [ x1, y1 ], r0, -rc0, cw);\\n          if (rc === rc0) {\\n            path.push(\\\"L\\\", t21[0], \\\"A\\\", rc0, \\\",\\\", rc0, \\\" 0 0,\\\", cr, \\\" \\\", t21[1], \\\"A\\\", r0, \\\",\\\", r0, \\\" 0 \\\", cw ^ d3_svg_arcSweep(t21[1][0], t21[1][1], t03[1][0], t03[1][1]), \\\",\\\", 1 - cw, \\\" \\\", t03[1], \\\"A\\\", rc0, \\\",\\\", rc0, \\\" 0 0,\\\", cr, \\\" \\\", t03[0]);\\n          } else {\\n            path.push(\\\"L\\\", t21[0], \\\"A\\\", rc0, \\\",\\\", rc0, \\\" 0 0,\\\", cr, \\\" \\\", t03[0]);\\n          }\\n        } else {\\n          path.push(\\\"L\\\", x2, \\\",\\\", y2);\\n        }\\n      } else {\\n        path.push(\\\"M\\\", x0, \\\",\\\", y0);\\n        if (x1 != null) path.push(\\\"A\\\", r1, \\\",\\\", r1, \\\" 0 \\\", l1, \\\",\\\", cw, \\\" \\\", x1, \\\",\\\", y1);\\n        path.push(\\\"L\\\", x2, \\\",\\\", y2);\\n        if (x3 != null) path.push(\\\"A\\\", r0, \\\",\\\", r0, \\\" 0 \\\", l0, \\\",\\\", 1 - cw, \\\" \\\", x3, \\\",\\\", y3);\\n      }\\n      path.push(\\\"Z\\\");\\n      return path.join(\\\"\\\");\\n    }\\n    function circleSegment(r1, cw) {\\n      return \\\"M0,\\\" + r1 + \\\"A\\\" + r1 + \\\",\\\" + r1 + \\\" 0 1,\\\" + cw + \\\" 0,\\\" + -r1 + \\\"A\\\" + r1 + \\\",\\\" + r1 + \\\" 0 1,\\\" + cw + \\\" 0,\\\" + r1;\\n    }\\n    arc.innerRadius = function(v) {\\n      if (!arguments.length) return innerRadius;\\n      innerRadius = d3_functor(v);\\n      return arc;\\n    };\\n    arc.outerRadius = function(v) {\\n      if (!arguments.length) return outerRadius;\\n      outerRadius = d3_functor(v);\\n      return arc;\\n    };\\n    arc.cornerRadius = function(v) {\\n      if (!arguments.length) return cornerRadius;\\n      cornerRadius = d3_functor(v);\\n      return arc;\\n    };\\n    arc.padRadius = function(v) {\\n      if (!arguments.length) return padRadius;\\n      padRadius = v == d3_svg_arcAuto ? d3_svg_arcAuto : d3_functor(v);\\n      return arc;\\n    };\\n    arc.startAngle = function(v) {\\n      if (!arguments.length) return startAngle;\\n      startAngle = d3_functor(v);\\n      return arc;\\n    };\\n    arc.endAngle = function(v) {\\n      if (!arguments.length) return endAngle;\\n      endAngle = d3_functor(v);\\n      return arc;\\n    };\\n    arc.padAngle = function(v) {\\n      if (!arguments.length) return padAngle;\\n      padAngle = d3_functor(v);\\n      return arc;\\n    };\\n    arc.centroid = function() {\\n      var r = (+innerRadius.apply(this, arguments) + +outerRadius.apply(this, arguments)) / 2, a = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - halfπ;\\n      return [ Math.cos(a) * r, Math.sin(a) * r ];\\n    };\\n    return arc;\\n  };\\n  var d3_svg_arcAuto = \\\"auto\\\";\\n  function d3_svg_arcInnerRadius(d) {\\n    return d.innerRadius;\\n  }\\n  function d3_svg_arcOuterRadius(d) {\\n    return d.outerRadius;\\n  }\\n  function d3_svg_arcStartAngle(d) {\\n    return d.startAngle;\\n  }\\n  function d3_svg_arcEndAngle(d) {\\n    return d.endAngle;\\n  }\\n  function d3_svg_arcPadAngle(d) {\\n    return d && d.padAngle;\\n  }\\n  function d3_svg_arcSweep(x0, y0, x1, y1) {\\n    return (x0 - x1) * y0 - (y0 - y1) * x0 > 0 ? 0 : 1;\\n  }\\n  function d3_svg_arcCornerTangents(p0, p1, r1, rc, cw) {\\n    var x01 = p0[0] - p1[0], y01 = p0[1] - p1[1], lo = (cw ? rc : -rc) / Math.sqrt(x01 * x01 + y01 * y01), ox = lo * y01, oy = -lo * x01, x1 = p0[0] + ox, y1 = p0[1] + oy, x2 = p1[0] + ox, y2 = p1[1] + oy, x3 = (x1 + x2) / 2, y3 = (y1 + y2) / 2, dx = x2 - x1, dy = y2 - y1, d2 = dx * dx + dy * dy, r = r1 - rc, D = x1 * y2 - x2 * y1, d = (dy < 0 ? -1 : 1) * Math.sqrt(Math.max(0, r * r * d2 - D * D)), cx0 = (D * dy - dx * d) / d2, cy0 = (-D * dx - dy * d) / d2, cx1 = (D * dy + dx * d) / d2, cy1 = (-D * dx + dy * d) / d2, dx0 = cx0 - x3, dy0 = cy0 - y3, dx1 = cx1 - x3, dy1 = cy1 - y3;\\n    if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\\n    return [ [ cx0 - ox, cy0 - oy ], [ cx0 * r1 / r, cy0 * r1 / r ] ];\\n  }\\n  function d3_svg_line(projection) {\\n    var x = d3_geom_pointX, y = d3_geom_pointY, defined = d3_true, interpolate = d3_svg_lineLinear, interpolateKey = interpolate.key, tension = .7;\\n    function line(data) {\\n      var segments = [], points = [], i = -1, n = data.length, d, fx = d3_functor(x), fy = d3_functor(y);\\n      function segment() {\\n        segments.push(\\\"M\\\", interpolate(projection(points), tension));\\n      }\\n      while (++i < n) {\\n        if (defined.call(this, d = data[i], i)) {\\n          points.push([ +fx.call(this, d, i), +fy.call(this, d, i) ]);\\n        } else if (points.length) {\\n          segment();\\n          points = [];\\n        }\\n      }\\n      if (points.length) segment();\\n      return segments.length ? segments.join(\\\"\\\") : null;\\n    }\\n    line.x = function(_) {\\n      if (!arguments.length) return x;\\n      x = _;\\n      return line;\\n    };\\n    line.y = function(_) {\\n      if (!arguments.length) return y;\\n      y = _;\\n      return line;\\n    };\\n    line.defined = function(_) {\\n      if (!arguments.length) return defined;\\n      defined = _;\\n      return line;\\n    };\\n    line.interpolate = function(_) {\\n      if (!arguments.length) return interpolateKey;\\n      if (typeof _ === \\\"function\\\") interpolateKey = interpolate = _; else interpolateKey = (interpolate = d3_svg_lineInterpolators.get(_) || d3_svg_lineLinear).key;\\n      return line;\\n    };\\n    line.tension = function(_) {\\n      if (!arguments.length) return tension;\\n      tension = _;\\n      return line;\\n    };\\n    return line;\\n  }\\n  d3.svg.line = function() {\\n    return d3_svg_line(d3_identity);\\n  };\\n  var d3_svg_lineInterpolators = d3.map({\\n    linear: d3_svg_lineLinear,\\n    \\\"linear-closed\\\": d3_svg_lineLinearClosed,\\n    step: d3_svg_lineStep,\\n    \\\"step-before\\\": d3_svg_lineStepBefore,\\n    \\\"step-after\\\": d3_svg_lineStepAfter,\\n    basis: d3_svg_lineBasis,\\n    \\\"basis-open\\\": d3_svg_lineBasisOpen,\\n    \\\"basis-closed\\\": d3_svg_lineBasisClosed,\\n    bundle: d3_svg_lineBundle,\\n    cardinal: d3_svg_lineCardinal,\\n    \\\"cardinal-open\\\": d3_svg_lineCardinalOpen,\\n    \\\"cardinal-closed\\\": d3_svg_lineCardinalClosed,\\n    monotone: d3_svg_lineMonotone\\n  });\\n  d3_svg_lineInterpolators.forEach(function(key, value) {\\n    value.key = key;\\n    value.closed = /-closed$/.test(key);\\n  });\\n  function d3_svg_lineLinear(points) {\\n    return points.length > 1 ? points.join(\\\"L\\\") : points + \\\"Z\\\";\\n  }\\n  function d3_svg_lineLinearClosed(points) {\\n    return points.join(\\\"L\\\") + \\\"Z\\\";\\n  }\\n  function d3_svg_lineStep(points) {\\n    var i = 0, n = points.length, p = points[0], path = [ p[0], \\\",\\\", p[1] ];\\n    while (++i < n) path.push(\\\"H\\\", (p[0] + (p = points[i])[0]) / 2, \\\"V\\\", p[1]);\\n    if (n > 1) path.push(\\\"H\\\", p[0]);\\n    return path.join(\\\"\\\");\\n  }\\n  function d3_svg_lineStepBefore(points) {\\n    var i = 0, n = points.length, p = points[0], path = [ p[0], \\\",\\\", p[1] ];\\n    while (++i < n) path.push(\\\"V\\\", (p = points[i])[1], \\\"H\\\", p[0]);\\n    return path.join(\\\"\\\");\\n  }\\n  function d3_svg_lineStepAfter(points) {\\n    var i = 0, n = points.length, p = points[0], path = [ p[0], \\\",\\\", p[1] ];\\n    while (++i < n) path.push(\\\"H\\\", (p = points[i])[0], \\\"V\\\", p[1]);\\n    return path.join(\\\"\\\");\\n  }\\n  function d3_svg_lineCardinalOpen(points, tension) {\\n    return points.length < 4 ? d3_svg_lineLinear(points) : points[1] + d3_svg_lineHermite(points.slice(1, -1), d3_svg_lineCardinalTangents(points, tension));\\n  }\\n  function d3_svg_lineCardinalClosed(points, tension) {\\n    return points.length < 3 ? d3_svg_lineLinearClosed(points) : points[0] + d3_svg_lineHermite((points.push(points[0]), \\n    points), d3_svg_lineCardinalTangents([ points[points.length - 2] ].concat(points, [ points[1] ]), tension));\\n  }\\n  function d3_svg_lineCardinal(points, tension) {\\n    return points.length < 3 ? d3_svg_lineLinear(points) : points[0] + d3_svg_lineHermite(points, d3_svg_lineCardinalTangents(points, tension));\\n  }\\n  function d3_svg_lineHermite(points, tangents) {\\n    if (tangents.length < 1 || points.length != tangents.length && points.length != tangents.length + 2) {\\n      return d3_svg_lineLinear(points);\\n    }\\n    var quad = points.length != tangents.length, path = \\\"\\\", p0 = points[0], p = points[1], t0 = tangents[0], t = t0, pi = 1;\\n    if (quad) {\\n      path += \\\"Q\\\" + (p[0] - t0[0] * 2 / 3) + \\\",\\\" + (p[1] - t0[1] * 2 / 3) + \\\",\\\" + p[0] + \\\",\\\" + p[1];\\n      p0 = points[1];\\n      pi = 2;\\n    }\\n    if (tangents.length > 1) {\\n      t = tangents[1];\\n      p = points[pi];\\n      pi++;\\n      path += \\\"C\\\" + (p0[0] + t0[0]) + \\\",\\\" + (p0[1] + t0[1]) + \\\",\\\" + (p[0] - t[0]) + \\\",\\\" + (p[1] - t[1]) + \\\",\\\" + p[0] + \\\",\\\" + p[1];\\n      for (var i = 2; i < tangents.length; i++, pi++) {\\n        p = points[pi];\\n        t = tangents[i];\\n        path += \\\"S\\\" + (p[0] - t[0]) + \\\",\\\" + (p[1] - t[1]) + \\\",\\\" + p[0] + \\\",\\\" + p[1];\\n      }\\n    }\\n    if (quad) {\\n      var lp = points[pi];\\n      path += \\\"Q\\\" + (p[0] + t[0] * 2 / 3) + \\\",\\\" + (p[1] + t[1] * 2 / 3) + \\\",\\\" + lp[0] + \\\",\\\" + lp[1];\\n    }\\n    return path;\\n  }\\n  function d3_svg_lineCardinalTangents(points, tension) {\\n    var tangents = [], a = (1 - tension) / 2, p0, p1 = points[0], p2 = points[1], i = 1, n = points.length;\\n    while (++i < n) {\\n      p0 = p1;\\n      p1 = p2;\\n      p2 = points[i];\\n      tangents.push([ a * (p2[0] - p0[0]), a * (p2[1] - p0[1]) ]);\\n    }\\n    return tangents;\\n  }\\n  function d3_svg_lineBasis(points) {\\n    if (points.length < 3) return d3_svg_lineLinear(points);\\n    var i = 1, n = points.length, pi = points[0], x0 = pi[0], y0 = pi[1], px = [ x0, x0, x0, (pi = points[1])[0] ], py = [ y0, y0, y0, pi[1] ], path = [ x0, \\\",\\\", y0, \\\"L\\\", d3_svg_lineDot4(d3_svg_lineBasisBezier3, px), \\\",\\\", d3_svg_lineDot4(d3_svg_lineBasisBezier3, py) ];\\n    points.push(points[n - 1]);\\n    while (++i <= n) {\\n      pi = points[i];\\n      px.shift();\\n      px.push(pi[0]);\\n      py.shift();\\n      py.push(pi[1]);\\n      d3_svg_lineBasisBezier(path, px, py);\\n    }\\n    points.pop();\\n    path.push(\\\"L\\\", pi);\\n    return path.join(\\\"\\\");\\n  }\\n  function d3_svg_lineBasisOpen(points) {\\n    if (points.length < 4) return d3_svg_lineLinear(points);\\n    var path = [], i = -1, n = points.length, pi, px = [ 0 ], py = [ 0 ];\\n    while (++i < 3) {\\n      pi = points[i];\\n      px.push(pi[0]);\\n      py.push(pi[1]);\\n    }\\n    path.push(d3_svg_lineDot4(d3_svg_lineBasisBezier3, px) + \\\",\\\" + d3_svg_lineDot4(d3_svg_lineBasisBezier3, py));\\n    --i;\\n    while (++i < n) {\\n      pi = points[i];\\n      px.shift();\\n      px.push(pi[0]);\\n      py.shift();\\n      py.push(pi[1]);\\n      d3_svg_lineBasisBezier(path, px, py);\\n    }\\n    return path.join(\\\"\\\");\\n  }\\n  function d3_svg_lineBasisClosed(points) {\\n    var path, i = -1, n = points.length, m = n + 4, pi, px = [], py = [];\\n    while (++i < 4) {\\n      pi = points[i % n];\\n      px.push(pi[0]);\\n      py.push(pi[1]);\\n    }\\n    path = [ d3_svg_lineDot4(d3_svg_lineBasisBezier3, px), \\\",\\\", d3_svg_lineDot4(d3_svg_lineBasisBezier3, py) ];\\n    --i;\\n    while (++i < m) {\\n      pi = points[i % n];\\n      px.shift();\\n      px.push(pi[0]);\\n      py.shift();\\n      py.push(pi[1]);\\n      d3_svg_lineBasisBezier(path, px, py);\\n    }\\n    return path.join(\\\"\\\");\\n  }\\n  function d3_svg_lineBundle(points, tension) {\\n    var n = points.length - 1;\\n    if (n) {\\n      var x0 = points[0][0], y0 = points[0][1], dx = points[n][0] - x0, dy = points[n][1] - y0, i = -1, p, t;\\n      while (++i <= n) {\\n        p = points[i];\\n        t = i / n;\\n        p[0] = tension * p[0] + (1 - tension) * (x0 + t * dx);\\n        p[1] = tension * p[1] + (1 - tension) * (y0 + t * dy);\\n      }\\n    }\\n    return d3_svg_lineBasis(points);\\n  }\\n  function d3_svg_lineDot4(a, b) {\\n    return a[0] * b[0] + a[1] * b[1] + a[2] * b[2] + a[3] * b[3];\\n  }\\n  var d3_svg_lineBasisBezier1 = [ 0, 2 / 3, 1 / 3, 0 ], d3_svg_lineBasisBezier2 = [ 0, 1 / 3, 2 / 3, 0 ], d3_svg_lineBasisBezier3 = [ 0, 1 / 6, 2 / 3, 1 / 6 ];\\n  function d3_svg_lineBasisBezier(path, x, y) {\\n    path.push(\\\"C\\\", d3_svg_lineDot4(d3_svg_lineBasisBezier1, x), \\\",\\\", d3_svg_lineDot4(d3_svg_lineBasisBezier1, y), \\\",\\\", d3_svg_lineDot4(d3_svg_lineBasisBezier2, x), \\\",\\\", d3_svg_lineDot4(d3_svg_lineBasisBezier2, y), \\\",\\\", d3_svg_lineDot4(d3_svg_lineBasisBezier3, x), \\\",\\\", d3_svg_lineDot4(d3_svg_lineBasisBezier3, y));\\n  }\\n  function d3_svg_lineSlope(p0, p1) {\\n    return (p1[1] - p0[1]) / (p1[0] - p0[0]);\\n  }\\n  function d3_svg_lineFiniteDifferences(points) {\\n    var i = 0, j = points.length - 1, m = [], p0 = points[0], p1 = points[1], d = m[0] = d3_svg_lineSlope(p0, p1);\\n    while (++i < j) {\\n      m[i] = (d + (d = d3_svg_lineSlope(p0 = p1, p1 = points[i + 1]))) / 2;\\n    }\\n    m[i] = d;\\n    return m;\\n  }\\n  function d3_svg_lineMonotoneTangents(points) {\\n    var tangents = [], d, a, b, s, m = d3_svg_lineFiniteDifferences(points), i = -1, j = points.length - 1;\\n    while (++i < j) {\\n      d = d3_svg_lineSlope(points[i], points[i + 1]);\\n      if (abs(d) < ε) {\\n        m[i] = m[i + 1] = 0;\\n      } else {\\n        a = m[i] / d;\\n        b = m[i + 1] / d;\\n        s = a * a + b * b;\\n        if (s > 9) {\\n          s = d * 3 / Math.sqrt(s);\\n          m[i] = s * a;\\n          m[i + 1] = s * b;\\n        }\\n      }\\n    }\\n    i = -1;\\n    while (++i <= j) {\\n      s = (points[Math.min(j, i + 1)][0] - points[Math.max(0, i - 1)][0]) / (6 * (1 + m[i] * m[i]));\\n      tangents.push([ s || 0, m[i] * s || 0 ]);\\n    }\\n    return tangents;\\n  }\\n  function d3_svg_lineMonotone(points) {\\n    return points.length < 3 ? d3_svg_lineLinear(points) : points[0] + d3_svg_lineHermite(points, d3_svg_lineMonotoneTangents(points));\\n  }\\n  d3.svg.line.radial = function() {\\n    var line = d3_svg_line(d3_svg_lineRadial);\\n    line.radius = line.x, delete line.x;\\n    line.angle = line.y, delete line.y;\\n    return line;\\n  };\\n  function d3_svg_lineRadial(points) {\\n    var point, i = -1, n = points.length, r, a;\\n    while (++i < n) {\\n      point = points[i];\\n      r = point[0];\\n      a = point[1] - halfπ;\\n      point[0] = r * Math.cos(a);\\n      point[1] = r * Math.sin(a);\\n    }\\n    return points;\\n  }\\n  function d3_svg_area(projection) {\\n    var x0 = d3_geom_pointX, x1 = d3_geom_pointX, y0 = 0, y1 = d3_geom_pointY, defined = d3_true, interpolate = d3_svg_lineLinear, interpolateKey = interpolate.key, interpolateReverse = interpolate, L = \\\"L\\\", tension = .7;\\n    function area(data) {\\n      var segments = [], points0 = [], points1 = [], i = -1, n = data.length, d, fx0 = d3_functor(x0), fy0 = d3_functor(y0), fx1 = x0 === x1 ? function() {\\n        return x;\\n      } : d3_functor(x1), fy1 = y0 === y1 ? function() {\\n        return y;\\n      } : d3_functor(y1), x, y;\\n      function segment() {\\n        segments.push(\\\"M\\\", interpolate(projection(points1), tension), L, interpolateReverse(projection(points0.reverse()), tension), \\\"Z\\\");\\n      }\\n      while (++i < n) {\\n        if (defined.call(this, d = data[i], i)) {\\n          points0.push([ x = +fx0.call(this, d, i), y = +fy0.call(this, d, i) ]);\\n          points1.push([ +fx1.call(this, d, i), +fy1.call(this, d, i) ]);\\n        } else if (points0.length) {\\n          segment();\\n          points0 = [];\\n          points1 = [];\\n        }\\n      }\\n      if (points0.length) segment();\\n      return segments.length ? segments.join(\\\"\\\") : null;\\n    }\\n    area.x = function(_) {\\n      if (!arguments.length) return x1;\\n      x0 = x1 = _;\\n      return area;\\n    };\\n    area.x0 = function(_) {\\n      if (!arguments.length) return x0;\\n      x0 = _;\\n      return area;\\n    };\\n    area.x1 = function(_) {\\n      if (!arguments.length) return x1;\\n      x1 = _;\\n      return area;\\n    };\\n    area.y = function(_) {\\n      if (!arguments.length) return y1;\\n      y0 = y1 = _;\\n      return area;\\n    };\\n    area.y0 = function(_) {\\n      if (!arguments.length) return y0;\\n      y0 = _;\\n      return area;\\n    };\\n    area.y1 = function(_) {\\n      if (!arguments.length) return y1;\\n      y1 = _;\\n      return area;\\n    };\\n    area.defined = function(_) {\\n      if (!arguments.length) return defined;\\n      defined = _;\\n      return area;\\n    };\\n    area.interpolate = function(_) {\\n      if (!arguments.length) return interpolateKey;\\n      if (typeof _ === \\\"function\\\") interpolateKey = interpolate = _; else interpolateKey = (interpolate = d3_svg_lineInterpolators.get(_) || d3_svg_lineLinear).key;\\n      interpolateReverse = interpolate.reverse || interpolate;\\n      L = interpolate.closed ? \\\"M\\\" : \\\"L\\\";\\n      return area;\\n    };\\n    area.tension = function(_) {\\n      if (!arguments.length) return tension;\\n      tension = _;\\n      return area;\\n    };\\n    return area;\\n  }\\n  d3_svg_lineStepBefore.reverse = d3_svg_lineStepAfter;\\n  d3_svg_lineStepAfter.reverse = d3_svg_lineStepBefore;\\n  d3.svg.area = function() {\\n    return d3_svg_area(d3_identity);\\n  };\\n  d3.svg.area.radial = function() {\\n    var area = d3_svg_area(d3_svg_lineRadial);\\n    area.radius = area.x, delete area.x;\\n    area.innerRadius = area.x0, delete area.x0;\\n    area.outerRadius = area.x1, delete area.x1;\\n    area.angle = area.y, delete area.y;\\n    area.startAngle = area.y0, delete area.y0;\\n    area.endAngle = area.y1, delete area.y1;\\n    return area;\\n  };\\n  d3.svg.chord = function() {\\n    var source = d3_source, target = d3_target, radius = d3_svg_chordRadius, startAngle = d3_svg_arcStartAngle, endAngle = d3_svg_arcEndAngle;\\n    function chord(d, i) {\\n      var s = subgroup(this, source, d, i), t = subgroup(this, target, d, i);\\n      return \\\"M\\\" + s.p0 + arc(s.r, s.p1, s.a1 - s.a0) + (equals(s, t) ? curve(s.r, s.p1, s.r, s.p0) : curve(s.r, s.p1, t.r, t.p0) + arc(t.r, t.p1, t.a1 - t.a0) + curve(t.r, t.p1, s.r, s.p0)) + \\\"Z\\\";\\n    }\\n    function subgroup(self, f, d, i) {\\n      var subgroup = f.call(self, d, i), r = radius.call(self, subgroup, i), a0 = startAngle.call(self, subgroup, i) - halfπ, a1 = endAngle.call(self, subgroup, i) - halfπ;\\n      return {\\n        r: r,\\n        a0: a0,\\n        a1: a1,\\n        p0: [ r * Math.cos(a0), r * Math.sin(a0) ],\\n        p1: [ r * Math.cos(a1), r * Math.sin(a1) ]\\n      };\\n    }\\n    function equals(a, b) {\\n      return a.a0 == b.a0 && a.a1 == b.a1;\\n    }\\n    function arc(r, p, a) {\\n      return \\\"A\\\" + r + \\\",\\\" + r + \\\" 0 \\\" + +(a > π) + \\\",1 \\\" + p;\\n    }\\n    function curve(r0, p0, r1, p1) {\\n      return \\\"Q 0,0 \\\" + p1;\\n    }\\n    chord.radius = function(v) {\\n      if (!arguments.length) return radius;\\n      radius = d3_functor(v);\\n      return chord;\\n    };\\n    chord.source = function(v) {\\n      if (!arguments.length) return source;\\n      source = d3_functor(v);\\n      return chord;\\n    };\\n    chord.target = function(v) {\\n      if (!arguments.length) return target;\\n      target = d3_functor(v);\\n      return chord;\\n    };\\n    chord.startAngle = function(v) {\\n      if (!arguments.length) return startAngle;\\n      startAngle = d3_functor(v);\\n      return chord;\\n    };\\n    chord.endAngle = function(v) {\\n      if (!arguments.length) return endAngle;\\n      endAngle = d3_functor(v);\\n      return chord;\\n    };\\n    return chord;\\n  };\\n  function d3_svg_chordRadius(d) {\\n    return d.radius;\\n  }\\n  d3.svg.diagonal = function() {\\n    var source = d3_source, target = d3_target, projection = d3_svg_diagonalProjection;\\n    function diagonal(d, i) {\\n      var p0 = source.call(this, d, i), p3 = target.call(this, d, i), m = (p0.y + p3.y) / 2, p = [ p0, {\\n        x: p0.x,\\n        y: m\\n      }, {\\n        x: p3.x,\\n        y: m\\n      }, p3 ];\\n      p = p.map(projection);\\n      return \\\"M\\\" + p[0] + \\\"C\\\" + p[1] + \\\" \\\" + p[2] + \\\" \\\" + p[3];\\n    }\\n    diagonal.source = function(x) {\\n      if (!arguments.length) return source;\\n      source = d3_functor(x);\\n      return diagonal;\\n    };\\n    diagonal.target = function(x) {\\n      if (!arguments.length) return target;\\n      target = d3_functor(x);\\n      return diagonal;\\n    };\\n    diagonal.projection = function(x) {\\n      if (!arguments.length) return projection;\\n      projection = x;\\n      return diagonal;\\n    };\\n    return diagonal;\\n  };\\n  function d3_svg_diagonalProjection(d) {\\n    return [ d.x, d.y ];\\n  }\\n  d3.svg.diagonal.radial = function() {\\n    var diagonal = d3.svg.diagonal(), projection = d3_svg_diagonalProjection, projection_ = diagonal.projection;\\n    diagonal.projection = function(x) {\\n      return arguments.length ? projection_(d3_svg_diagonalRadialProjection(projection = x)) : projection;\\n    };\\n    return diagonal;\\n  };\\n  function d3_svg_diagonalRadialProjection(projection) {\\n    return function() {\\n      var d = projection.apply(this, arguments), r = d[0], a = d[1] - halfπ;\\n      return [ r * Math.cos(a), r * Math.sin(a) ];\\n    };\\n  }\\n  d3.svg.symbol = function() {\\n    var type = d3_svg_symbolType, size = d3_svg_symbolSize;\\n    function symbol(d, i) {\\n      return (d3_svg_symbols.get(type.call(this, d, i)) || d3_svg_symbolCircle)(size.call(this, d, i));\\n    }\\n    symbol.type = function(x) {\\n      if (!arguments.length) return type;\\n      type = d3_functor(x);\\n      return symbol;\\n    };\\n    symbol.size = function(x) {\\n      if (!arguments.length) return size;\\n      size = d3_functor(x);\\n      return symbol;\\n    };\\n    return symbol;\\n  };\\n  function d3_svg_symbolSize() {\\n    return 64;\\n  }\\n  function d3_svg_symbolType() {\\n    return \\\"circle\\\";\\n  }\\n  function d3_svg_symbolCircle(size) {\\n    var r = Math.sqrt(size / π);\\n    return \\\"M0,\\\" + r + \\\"A\\\" + r + \\\",\\\" + r + \\\" 0 1,1 0,\\\" + -r + \\\"A\\\" + r + \\\",\\\" + r + \\\" 0 1,1 0,\\\" + r + \\\"Z\\\";\\n  }\\n  var d3_svg_symbols = d3.map({\\n    circle: d3_svg_symbolCircle,\\n    cross: function(size) {\\n      var r = Math.sqrt(size / 5) / 2;\\n      return \\\"M\\\" + -3 * r + \\\",\\\" + -r + \\\"H\\\" + -r + \\\"V\\\" + -3 * r + \\\"H\\\" + r + \\\"V\\\" + -r + \\\"H\\\" + 3 * r + \\\"V\\\" + r + \\\"H\\\" + r + \\\"V\\\" + 3 * r + \\\"H\\\" + -r + \\\"V\\\" + r + \\\"H\\\" + -3 * r + \\\"Z\\\";\\n    },\\n    diamond: function(size) {\\n      var ry = Math.sqrt(size / (2 * d3_svg_symbolTan30)), rx = ry * d3_svg_symbolTan30;\\n      return \\\"M0,\\\" + -ry + \\\"L\\\" + rx + \\\",0\\\" + \\\" 0,\\\" + ry + \\\" \\\" + -rx + \\\",0\\\" + \\\"Z\\\";\\n    },\\n    square: function(size) {\\n      var r = Math.sqrt(size) / 2;\\n      return \\\"M\\\" + -r + \\\",\\\" + -r + \\\"L\\\" + r + \\\",\\\" + -r + \\\" \\\" + r + \\\",\\\" + r + \\\" \\\" + -r + \\\",\\\" + r + \\\"Z\\\";\\n    },\\n    \\\"triangle-down\\\": function(size) {\\n      var rx = Math.sqrt(size / d3_svg_symbolSqrt3), ry = rx * d3_svg_symbolSqrt3 / 2;\\n      return \\\"M0,\\\" + ry + \\\"L\\\" + rx + \\\",\\\" + -ry + \\\" \\\" + -rx + \\\",\\\" + -ry + \\\"Z\\\";\\n    },\\n    \\\"triangle-up\\\": function(size) {\\n      var rx = Math.sqrt(size / d3_svg_symbolSqrt3), ry = rx * d3_svg_symbolSqrt3 / 2;\\n      return \\\"M0,\\\" + -ry + \\\"L\\\" + rx + \\\",\\\" + ry + \\\" \\\" + -rx + \\\",\\\" + ry + \\\"Z\\\";\\n    }\\n  });\\n  d3.svg.symbolTypes = d3_svg_symbols.keys();\\n  var d3_svg_symbolSqrt3 = Math.sqrt(3), d3_svg_symbolTan30 = Math.tan(30 * d3_radians);\\n  d3_selectionPrototype.transition = function(name) {\\n    var id = d3_transitionInheritId || ++d3_transitionId, ns = d3_transitionNamespace(name), subgroups = [], subgroup, node, transition = d3_transitionInherit || {\\n      time: Date.now(),\\n      ease: d3_ease_cubicInOut,\\n      delay: 0,\\n      duration: 250\\n    };\\n    for (var j = -1, m = this.length; ++j < m; ) {\\n      subgroups.push(subgroup = []);\\n      for (var group = this[j], i = -1, n = group.length; ++i < n; ) {\\n        if (node = group[i]) d3_transitionNode(node, i, ns, id, transition);\\n        subgroup.push(node);\\n      }\\n    }\\n    return d3_transition(subgroups, ns, id);\\n  };\\n  d3_selectionPrototype.interrupt = function(name) {\\n    return this.each(name == null ? d3_selection_interrupt : d3_selection_interruptNS(d3_transitionNamespace(name)));\\n  };\\n  var d3_selection_interrupt = d3_selection_interruptNS(d3_transitionNamespace());\\n  function d3_selection_interruptNS(ns) {\\n    return function() {\\n      var lock, activeId, active;\\n      if ((lock = this[ns]) && (active = lock[activeId = lock.active])) {\\n        active.timer.c = null;\\n        active.timer.t = NaN;\\n        if (--lock.count) delete lock[activeId]; else delete this[ns];\\n        lock.active += .5;\\n        active.event && active.event.interrupt.call(this, this.__data__, active.index);\\n      }\\n    };\\n  }\\n  function d3_transition(groups, ns, id) {\\n    d3_subclass(groups, d3_transitionPrototype);\\n    groups.namespace = ns;\\n    groups.id = id;\\n    return groups;\\n  }\\n  var d3_transitionPrototype = [], d3_transitionId = 0, d3_transitionInheritId, d3_transitionInherit;\\n  d3_transitionPrototype.call = d3_selectionPrototype.call;\\n  d3_transitionPrototype.empty = d3_selectionPrototype.empty;\\n  d3_transitionPrototype.node = d3_selectionPrototype.node;\\n  d3_transitionPrototype.size = d3_selectionPrototype.size;\\n  d3.transition = function(selection, name) {\\n    return selection && selection.transition ? d3_transitionInheritId ? selection.transition(name) : selection : d3.selection().transition(selection);\\n  };\\n  d3.transition.prototype = d3_transitionPrototype;\\n  d3_transitionPrototype.select = function(selector) {\\n    var id = this.id, ns = this.namespace, subgroups = [], subgroup, subnode, node;\\n    selector = d3_selection_selector(selector);\\n    for (var j = -1, m = this.length; ++j < m; ) {\\n      subgroups.push(subgroup = []);\\n      for (var group = this[j], i = -1, n = group.length; ++i < n; ) {\\n        if ((node = group[i]) && (subnode = selector.call(node, node.__data__, i, j))) {\\n          if (\\\"__data__\\\" in node) subnode.__data__ = node.__data__;\\n          d3_transitionNode(subnode, i, ns, id, node[ns][id]);\\n          subgroup.push(subnode);\\n        } else {\\n          subgroup.push(null);\\n        }\\n      }\\n    }\\n    return d3_transition(subgroups, ns, id);\\n  };\\n  d3_transitionPrototype.selectAll = function(selector) {\\n    var id = this.id, ns = this.namespace, subgroups = [], subgroup, subnodes, node, subnode, transition;\\n    selector = d3_selection_selectorAll(selector);\\n    for (var j = -1, m = this.length; ++j < m; ) {\\n      for (var group = this[j], i = -1, n = group.length; ++i < n; ) {\\n        if (node = group[i]) {\\n          transition = node[ns][id];\\n          subnodes = selector.call(node, node.__data__, i, j);\\n          subgroups.push(subgroup = []);\\n          for (var k = -1, o = subnodes.length; ++k < o; ) {\\n            if (subnode = subnodes[k]) d3_transitionNode(subnode, k, ns, id, transition);\\n            subgroup.push(subnode);\\n          }\\n        }\\n      }\\n    }\\n    return d3_transition(subgroups, ns, id);\\n  };\\n  d3_transitionPrototype.filter = function(filter) {\\n    var subgroups = [], subgroup, group, node;\\n    if (typeof filter !== \\\"function\\\") filter = d3_selection_filter(filter);\\n    for (var j = 0, m = this.length; j < m; j++) {\\n      subgroups.push(subgroup = []);\\n      for (var group = this[j], i = 0, n = group.length; i < n; i++) {\\n        if ((node = group[i]) && filter.call(node, node.__data__, i, j)) {\\n          subgroup.push(node);\\n        }\\n      }\\n    }\\n    return d3_transition(subgroups, this.namespace, this.id);\\n  };\\n  d3_transitionPrototype.tween = function(name, tween) {\\n    var id = this.id, ns = this.namespace;\\n    if (arguments.length < 2) return this.node()[ns][id].tween.get(name);\\n    return d3_selection_each(this, tween == null ? function(node) {\\n      node[ns][id].tween.remove(name);\\n    } : function(node) {\\n      node[ns][id].tween.set(name, tween);\\n    });\\n  };\\n  function d3_transition_tween(groups, name, value, tween) {\\n    var id = groups.id, ns = groups.namespace;\\n    return d3_selection_each(groups, typeof value === \\\"function\\\" ? function(node, i, j) {\\n      node[ns][id].tween.set(name, tween(value.call(node, node.__data__, i, j)));\\n    } : (value = tween(value), function(node) {\\n      node[ns][id].tween.set(name, value);\\n    }));\\n  }\\n  d3_transitionPrototype.attr = function(nameNS, value) {\\n    if (arguments.length < 2) {\\n      for (value in nameNS) this.attr(value, nameNS[value]);\\n      return this;\\n    }\\n    var interpolate = nameNS == \\\"transform\\\" ? d3_interpolateTransform : d3_interpolate, name = d3.ns.qualify(nameNS);\\n    function attrNull() {\\n      this.removeAttribute(name);\\n    }\\n    function attrNullNS() {\\n      this.removeAttributeNS(name.space, name.local);\\n    }\\n    function attrTween(b) {\\n      return b == null ? attrNull : (b += \\\"\\\", function() {\\n        var a = this.getAttribute(name), i;\\n        return a !== b && (i = interpolate(a, b), function(t) {\\n          this.setAttribute(name, i(t));\\n        });\\n      });\\n    }\\n    function attrTweenNS(b) {\\n      return b == null ? attrNullNS : (b += \\\"\\\", function() {\\n        var a = this.getAttributeNS(name.space, name.local), i;\\n        return a !== b && (i = interpolate(a, b), function(t) {\\n          this.setAttributeNS(name.space, name.local, i(t));\\n        });\\n      });\\n    }\\n    return d3_transition_tween(this, \\\"attr.\\\" + nameNS, value, name.local ? attrTweenNS : attrTween);\\n  };\\n  d3_transitionPrototype.attrTween = function(nameNS, tween) {\\n    var name = d3.ns.qualify(nameNS);\\n    function attrTween(d, i) {\\n      var f = tween.call(this, d, i, this.getAttribute(name));\\n      return f && function(t) {\\n        this.setAttribute(name, f(t));\\n      };\\n    }\\n    function attrTweenNS(d, i) {\\n      var f = tween.call(this, d, i, this.getAttributeNS(name.space, name.local));\\n      return f && function(t) {\\n        this.setAttributeNS(name.space, name.local, f(t));\\n      };\\n    }\\n    return this.tween(\\\"attr.\\\" + nameNS, name.local ? attrTweenNS : attrTween);\\n  };\\n  d3_transitionPrototype.style = function(name, value, priority) {\\n    var n = arguments.length;\\n    if (n < 3) {\\n      if (typeof name !== \\\"string\\\") {\\n        if (n < 2) value = \\\"\\\";\\n        for (priority in name) this.style(priority, name[priority], value);\\n        return this;\\n      }\\n      priority = \\\"\\\";\\n    }\\n    function styleNull() {\\n      this.style.removeProperty(name);\\n    }\\n    function styleString(b) {\\n      return b == null ? styleNull : (b += \\\"\\\", function() {\\n        var a = d3_window(this).getComputedStyle(this, null).getPropertyValue(name), i;\\n        return a !== b && (i = d3_interpolate(a, b), function(t) {\\n          this.style.setProperty(name, i(t), priority);\\n        });\\n      });\\n    }\\n    return d3_transition_tween(this, \\\"style.\\\" + name, value, styleString);\\n  };\\n  d3_transitionPrototype.styleTween = function(name, tween, priority) {\\n    if (arguments.length < 3) priority = \\\"\\\";\\n    function styleTween(d, i) {\\n      var f = tween.call(this, d, i, d3_window(this).getComputedStyle(this, null).getPropertyValue(name));\\n      return f && function(t) {\\n        this.style.setProperty(name, f(t), priority);\\n      };\\n    }\\n    return this.tween(\\\"style.\\\" + name, styleTween);\\n  };\\n  d3_transitionPrototype.text = function(value) {\\n    return d3_transition_tween(this, \\\"text\\\", value, d3_transition_text);\\n  };\\n  function d3_transition_text(b) {\\n    if (b == null) b = \\\"\\\";\\n    return function() {\\n      this.textContent = b;\\n    };\\n  }\\n  d3_transitionPrototype.remove = function() {\\n    var ns = this.namespace;\\n    return this.each(\\\"end.transition\\\", function() {\\n      var p;\\n      if (this[ns].count < 2 && (p = this.parentNode)) p.removeChild(this);\\n    });\\n  };\\n  d3_transitionPrototype.ease = function(value) {\\n    var id = this.id, ns = this.namespace;\\n    if (arguments.length < 1) return this.node()[ns][id].ease;\\n    if (typeof value !== \\\"function\\\") value = d3.ease.apply(d3, arguments);\\n    return d3_selection_each(this, function(node) {\\n      node[ns][id].ease = value;\\n    });\\n  };\\n  d3_transitionPrototype.delay = function(value) {\\n    var id = this.id, ns = this.namespace;\\n    if (arguments.length < 1) return this.node()[ns][id].delay;\\n    return d3_selection_each(this, typeof value === \\\"function\\\" ? function(node, i, j) {\\n      node[ns][id].delay = +value.call(node, node.__data__, i, j);\\n    } : (value = +value, function(node) {\\n      node[ns][id].delay = value;\\n    }));\\n  };\\n  d3_transitionPrototype.duration = function(value) {\\n    var id = this.id, ns = this.namespace;\\n    if (arguments.length < 1) return this.node()[ns][id].duration;\\n    return d3_selection_each(this, typeof value === \\\"function\\\" ? function(node, i, j) {\\n      node[ns][id].duration = Math.max(1, value.call(node, node.__data__, i, j));\\n    } : (value = Math.max(1, value), function(node) {\\n      node[ns][id].duration = value;\\n    }));\\n  };\\n  d3_transitionPrototype.each = function(type, listener) {\\n    var id = this.id, ns = this.namespace;\\n    if (arguments.length < 2) {\\n      var inherit = d3_transitionInherit, inheritId = d3_transitionInheritId;\\n      try {\\n        d3_transitionInheritId = id;\\n        d3_selection_each(this, function(node, i, j) {\\n          d3_transitionInherit = node[ns][id];\\n          type.call(node, node.__data__, i, j);\\n        });\\n      } finally {\\n        d3_transitionInherit = inherit;\\n        d3_transitionInheritId = inheritId;\\n      }\\n    } else {\\n      d3_selection_each(this, function(node) {\\n        var transition = node[ns][id];\\n        (transition.event || (transition.event = d3.dispatch(\\\"start\\\", \\\"end\\\", \\\"interrupt\\\"))).on(type, listener);\\n      });\\n    }\\n    return this;\\n  };\\n  d3_transitionPrototype.transition = function() {\\n    var id0 = this.id, id1 = ++d3_transitionId, ns = this.namespace, subgroups = [], subgroup, group, node, transition;\\n    for (var j = 0, m = this.length; j < m; j++) {\\n      subgroups.push(subgroup = []);\\n      for (var group = this[j], i = 0, n = group.length; i < n; i++) {\\n        if (node = group[i]) {\\n          transition = node[ns][id0];\\n          d3_transitionNode(node, i, ns, id1, {\\n            time: transition.time,\\n            ease: transition.ease,\\n            delay: transition.delay + transition.duration,\\n            duration: transition.duration\\n          });\\n        }\\n        subgroup.push(node);\\n      }\\n    }\\n    return d3_transition(subgroups, ns, id1);\\n  };\\n  function d3_transitionNamespace(name) {\\n    return name == null ? \\\"__transition__\\\" : \\\"__transition_\\\" + name + \\\"__\\\";\\n  }\\n  function d3_transitionNode(node, i, ns, id, inherit) {\\n    var lock = node[ns] || (node[ns] = {\\n      active: 0,\\n      count: 0\\n    }), transition = lock[id], time, timer, duration, ease, tweens;\\n    function schedule(elapsed) {\\n      var delay = transition.delay;\\n      timer.t = delay + time;\\n      if (delay <= elapsed) return start(elapsed - delay);\\n      timer.c = start;\\n    }\\n    function start(elapsed) {\\n      var activeId = lock.active, active = lock[activeId];\\n      if (active) {\\n        active.timer.c = null;\\n        active.timer.t = NaN;\\n        --lock.count;\\n        delete lock[activeId];\\n        active.event && active.event.interrupt.call(node, node.__data__, active.index);\\n      }\\n      for (var cancelId in lock) {\\n        if (+cancelId < id) {\\n          var cancel = lock[cancelId];\\n          cancel.timer.c = null;\\n          cancel.timer.t = NaN;\\n          --lock.count;\\n          delete lock[cancelId];\\n        }\\n      }\\n      timer.c = tick;\\n      d3_timer(function() {\\n        if (timer.c && tick(elapsed || 1)) {\\n          timer.c = null;\\n          timer.t = NaN;\\n        }\\n        return 1;\\n      }, 0, time);\\n      lock.active = id;\\n      transition.event && transition.event.start.call(node, node.__data__, i);\\n      tweens = [];\\n      transition.tween.forEach(function(key, value) {\\n        if (value = value.call(node, node.__data__, i)) {\\n          tweens.push(value);\\n        }\\n      });\\n      ease = transition.ease;\\n      duration = transition.duration;\\n    }\\n    function tick(elapsed) {\\n      var t = elapsed / duration, e = ease(t), n = tweens.length;\\n      while (n > 0) {\\n        tweens[--n].call(node, e);\\n      }\\n      if (t >= 1) {\\n        transition.event && transition.event.end.call(node, node.__data__, i);\\n        if (--lock.count) delete lock[id]; else delete node[ns];\\n        return 1;\\n      }\\n    }\\n    if (!transition) {\\n      time = inherit.time;\\n      timer = d3_timer(schedule, 0, time);\\n      transition = lock[id] = {\\n        tween: new d3_Map(),\\n        time: time,\\n        timer: timer,\\n        delay: inherit.delay,\\n        duration: inherit.duration,\\n        ease: inherit.ease,\\n        index: i\\n      };\\n      inherit = null;\\n      ++lock.count;\\n    }\\n  }\\n  d3.svg.axis = function() {\\n    var scale = d3.scale.linear(), orient = d3_svg_axisDefaultOrient, innerTickSize = 6, outerTickSize = 6, tickPadding = 3, tickArguments_ = [ 10 ], tickValues = null, tickFormat_;\\n    function axis(g) {\\n      g.each(function() {\\n        var g = d3.select(this);\\n        var scale0 = this.__chart__ || scale, scale1 = this.__chart__ = scale.copy();\\n        var ticks = tickValues == null ? scale1.ticks ? scale1.ticks.apply(scale1, tickArguments_) : scale1.domain() : tickValues, tickFormat = tickFormat_ == null ? scale1.tickFormat ? scale1.tickFormat.apply(scale1, tickArguments_) : d3_identity : tickFormat_, tick = g.selectAll(\\\".tick\\\").data(ticks, scale1), tickEnter = tick.enter().insert(\\\"g\\\", \\\".domain\\\").attr(\\\"class\\\", \\\"tick\\\").style(\\\"opacity\\\", ε), tickExit = d3.transition(tick.exit()).style(\\\"opacity\\\", ε).remove(), tickUpdate = d3.transition(tick.order()).style(\\\"opacity\\\", 1), tickSpacing = Math.max(innerTickSize, 0) + tickPadding, tickTransform;\\n        var range = d3_scaleRange(scale1), path = g.selectAll(\\\".domain\\\").data([ 0 ]), pathUpdate = (path.enter().append(\\\"path\\\").attr(\\\"class\\\", \\\"domain\\\"), \\n        d3.transition(path));\\n        tickEnter.append(\\\"line\\\");\\n        tickEnter.append(\\\"text\\\");\\n        var lineEnter = tickEnter.select(\\\"line\\\"), lineUpdate = tickUpdate.select(\\\"line\\\"), text = tick.select(\\\"text\\\").text(tickFormat), textEnter = tickEnter.select(\\\"text\\\"), textUpdate = tickUpdate.select(\\\"text\\\"), sign = orient === \\\"top\\\" || orient === \\\"left\\\" ? -1 : 1, x1, x2, y1, y2;\\n        if (orient === \\\"bottom\\\" || orient === \\\"top\\\") {\\n          tickTransform = d3_svg_axisX, x1 = \\\"x\\\", y1 = \\\"y\\\", x2 = \\\"x2\\\", y2 = \\\"y2\\\";\\n          text.attr(\\\"dy\\\", sign < 0 ? \\\"0em\\\" : \\\".71em\\\").style(\\\"text-anchor\\\", \\\"middle\\\");\\n          pathUpdate.attr(\\\"d\\\", \\\"M\\\" + range[0] + \\\",\\\" + sign * outerTickSize + \\\"V0H\\\" + range[1] + \\\"V\\\" + sign * outerTickSize);\\n        } else {\\n          tickTransform = d3_svg_axisY, x1 = \\\"y\\\", y1 = \\\"x\\\", x2 = \\\"y2\\\", y2 = \\\"x2\\\";\\n          text.attr(\\\"dy\\\", \\\".32em\\\").style(\\\"text-anchor\\\", sign < 0 ? \\\"end\\\" : \\\"start\\\");\\n          pathUpdate.attr(\\\"d\\\", \\\"M\\\" + sign * outerTickSize + \\\",\\\" + range[0] + \\\"H0V\\\" + range[1] + \\\"H\\\" + sign * outerTickSize);\\n        }\\n        lineEnter.attr(y2, sign * innerTickSize);\\n        textEnter.attr(y1, sign * tickSpacing);\\n        lineUpdate.attr(x2, 0).attr(y2, sign * innerTickSize);\\n        textUpdate.attr(x1, 0).attr(y1, sign * tickSpacing);\\n        if (scale1.rangeBand) {\\n          var x = scale1, dx = x.rangeBand() / 2;\\n          scale0 = scale1 = function(d) {\\n            return x(d) + dx;\\n          };\\n        } else if (scale0.rangeBand) {\\n          scale0 = scale1;\\n        } else {\\n          tickExit.call(tickTransform, scale1, scale0);\\n        }\\n        tickEnter.call(tickTransform, scale0, scale1);\\n        tickUpdate.call(tickTransform, scale1, scale1);\\n      });\\n    }\\n    axis.scale = function(x) {\\n      if (!arguments.length) return scale;\\n      scale = x;\\n      return axis;\\n    };\\n    axis.orient = function(x) {\\n      if (!arguments.length) return orient;\\n      orient = x in d3_svg_axisOrients ? x + \\\"\\\" : d3_svg_axisDefaultOrient;\\n      return axis;\\n    };\\n    axis.ticks = function() {\\n      if (!arguments.length) return tickArguments_;\\n      tickArguments_ = d3_array(arguments);\\n      return axis;\\n    };\\n    axis.tickValues = function(x) {\\n      if (!arguments.length) return tickValues;\\n      tickValues = x;\\n      return axis;\\n    };\\n    axis.tickFormat = function(x) {\\n      if (!arguments.length) return tickFormat_;\\n      tickFormat_ = x;\\n      return axis;\\n    };\\n    axis.tickSize = function(x) {\\n      var n = arguments.length;\\n      if (!n) return innerTickSize;\\n      innerTickSize = +x;\\n      outerTickSize = +arguments[n - 1];\\n      return axis;\\n    };\\n    axis.innerTickSize = function(x) {\\n      if (!arguments.length) return innerTickSize;\\n      innerTickSize = +x;\\n      return axis;\\n    };\\n    axis.outerTickSize = function(x) {\\n      if (!arguments.length) return outerTickSize;\\n      outerTickSize = +x;\\n      return axis;\\n    };\\n    axis.tickPadding = function(x) {\\n      if (!arguments.length) return tickPadding;\\n      tickPadding = +x;\\n      return axis;\\n    };\\n    axis.tickSubdivide = function() {\\n      return arguments.length && axis;\\n    };\\n    return axis;\\n  };\\n  var d3_svg_axisDefaultOrient = \\\"bottom\\\", d3_svg_axisOrients = {\\n    top: 1,\\n    right: 1,\\n    bottom: 1,\\n    left: 1\\n  };\\n  function d3_svg_axisX(selection, x0, x1) {\\n    selection.attr(\\\"transform\\\", function(d) {\\n      var v0 = x0(d);\\n      return \\\"translate(\\\" + (isFinite(v0) ? v0 : x1(d)) + \\\",0)\\\";\\n    });\\n  }\\n  function d3_svg_axisY(selection, y0, y1) {\\n    selection.attr(\\\"transform\\\", function(d) {\\n      var v0 = y0(d);\\n      return \\\"translate(0,\\\" + (isFinite(v0) ? v0 : y1(d)) + \\\")\\\";\\n    });\\n  }\\n  d3.svg.brush = function() {\\n    var event = d3_eventDispatch(brush, \\\"brushstart\\\", \\\"brush\\\", \\\"brushend\\\"), x = null, y = null, xExtent = [ 0, 0 ], yExtent = [ 0, 0 ], xExtentDomain, yExtentDomain, xClamp = true, yClamp = true, resizes = d3_svg_brushResizes[0];\\n    function brush(g) {\\n      g.each(function() {\\n        var g = d3.select(this).style(\\\"pointer-events\\\", \\\"all\\\").style(\\\"-webkit-tap-highlight-color\\\", \\\"rgba(0,0,0,0)\\\").on(\\\"mousedown.brush\\\", brushstart).on(\\\"touchstart.brush\\\", brushstart);\\n        var background = g.selectAll(\\\".background\\\").data([ 0 ]);\\n        background.enter().append(\\\"rect\\\").attr(\\\"class\\\", \\\"background\\\").style(\\\"visibility\\\", \\\"hidden\\\").style(\\\"cursor\\\", \\\"crosshair\\\");\\n        g.selectAll(\\\".extent\\\").data([ 0 ]).enter().append(\\\"rect\\\").attr(\\\"class\\\", \\\"extent\\\").style(\\\"cursor\\\", \\\"move\\\");\\n        var resize = g.selectAll(\\\".resize\\\").data(resizes, d3_identity);\\n        resize.exit().remove();\\n        resize.enter().append(\\\"g\\\").attr(\\\"class\\\", function(d) {\\n          return \\\"resize \\\" + d;\\n        }).style(\\\"cursor\\\", function(d) {\\n          return d3_svg_brushCursor[d];\\n        }).append(\\\"rect\\\").attr(\\\"x\\\", function(d) {\\n          return /[ew]$/.test(d) ? -3 : null;\\n        }).attr(\\\"y\\\", function(d) {\\n          return /^[ns]/.test(d) ? -3 : null;\\n        }).attr(\\\"width\\\", 6).attr(\\\"height\\\", 6).style(\\\"visibility\\\", \\\"hidden\\\");\\n        resize.style(\\\"display\\\", brush.empty() ? \\\"none\\\" : null);\\n        var gUpdate = d3.transition(g), backgroundUpdate = d3.transition(background), range;\\n        if (x) {\\n          range = d3_scaleRange(x);\\n          backgroundUpdate.attr(\\\"x\\\", range[0]).attr(\\\"width\\\", range[1] - range[0]);\\n          redrawX(gUpdate);\\n        }\\n        if (y) {\\n          range = d3_scaleRange(y);\\n          backgroundUpdate.attr(\\\"y\\\", range[0]).attr(\\\"height\\\", range[1] - range[0]);\\n          redrawY(gUpdate);\\n        }\\n        redraw(gUpdate);\\n      });\\n    }\\n    brush.event = function(g) {\\n      g.each(function() {\\n        var event_ = event.of(this, arguments), extent1 = {\\n          x: xExtent,\\n          y: yExtent,\\n          i: xExtentDomain,\\n          j: yExtentDomain\\n        }, extent0 = this.__chart__ || extent1;\\n        this.__chart__ = extent1;\\n        if (d3_transitionInheritId) {\\n          d3.select(this).transition().each(\\\"start.brush\\\", function() {\\n            xExtentDomain = extent0.i;\\n            yExtentDomain = extent0.j;\\n            xExtent = extent0.x;\\n            yExtent = extent0.y;\\n            event_({\\n              type: \\\"brushstart\\\"\\n            });\\n          }).tween(\\\"brush:brush\\\", function() {\\n            var xi = d3_interpolateArray(xExtent, extent1.x), yi = d3_interpolateArray(yExtent, extent1.y);\\n            xExtentDomain = yExtentDomain = null;\\n            return function(t) {\\n              xExtent = extent1.x = xi(t);\\n              yExtent = extent1.y = yi(t);\\n              event_({\\n                type: \\\"brush\\\",\\n                mode: \\\"resize\\\"\\n              });\\n            };\\n          }).each(\\\"end.brush\\\", function() {\\n            xExtentDomain = extent1.i;\\n            yExtentDomain = extent1.j;\\n            event_({\\n              type: \\\"brush\\\",\\n              mode: \\\"resize\\\"\\n            });\\n            event_({\\n              type: \\\"brushend\\\"\\n            });\\n          });\\n        } else {\\n          event_({\\n            type: \\\"brushstart\\\"\\n          });\\n          event_({\\n            type: \\\"brush\\\",\\n            mode: \\\"resize\\\"\\n          });\\n          event_({\\n            type: \\\"brushend\\\"\\n          });\\n        }\\n      });\\n    };\\n    function redraw(g) {\\n      g.selectAll(\\\".resize\\\").attr(\\\"transform\\\", function(d) {\\n        return \\\"translate(\\\" + xExtent[+/e$/.test(d)] + \\\",\\\" + yExtent[+/^s/.test(d)] + \\\")\\\";\\n      });\\n    }\\n    function redrawX(g) {\\n      g.select(\\\".extent\\\").attr(\\\"x\\\", xExtent[0]);\\n      g.selectAll(\\\".extent,.n>rect,.s>rect\\\").attr(\\\"width\\\", xExtent[1] - xExtent[0]);\\n    }\\n    function redrawY(g) {\\n      g.select(\\\".extent\\\").attr(\\\"y\\\", yExtent[0]);\\n      g.selectAll(\\\".extent,.e>rect,.w>rect\\\").attr(\\\"height\\\", yExtent[1] - yExtent[0]);\\n    }\\n    function brushstart() {\\n      var target = this, eventTarget = d3.select(d3.event.target), event_ = event.of(target, arguments), g = d3.select(target), resizing = eventTarget.datum(), resizingX = !/^(n|s)$/.test(resizing) && x, resizingY = !/^(e|w)$/.test(resizing) && y, dragging = eventTarget.classed(\\\"extent\\\"), dragRestore = d3_event_dragSuppress(target), center, origin = d3.mouse(target), offset;\\n      var w = d3.select(d3_window(target)).on(\\\"keydown.brush\\\", keydown).on(\\\"keyup.brush\\\", keyup);\\n      if (d3.event.changedTouches) {\\n        w.on(\\\"touchmove.brush\\\", brushmove).on(\\\"touchend.brush\\\", brushend);\\n      } else {\\n        w.on(\\\"mousemove.brush\\\", brushmove).on(\\\"mouseup.brush\\\", brushend);\\n      }\\n      g.interrupt().selectAll(\\\"*\\\").interrupt();\\n      if (dragging) {\\n        origin[0] = xExtent[0] - origin[0];\\n        origin[1] = yExtent[0] - origin[1];\\n      } else if (resizing) {\\n        var ex = +/w$/.test(resizing), ey = +/^n/.test(resizing);\\n        offset = [ xExtent[1 - ex] - origin[0], yExtent[1 - ey] - origin[1] ];\\n        origin[0] = xExtent[ex];\\n        origin[1] = yExtent[ey];\\n      } else if (d3.event.altKey) center = origin.slice();\\n      g.style(\\\"pointer-events\\\", \\\"none\\\").selectAll(\\\".resize\\\").style(\\\"display\\\", null);\\n      d3.select(\\\"body\\\").style(\\\"cursor\\\", eventTarget.style(\\\"cursor\\\"));\\n      event_({\\n        type: \\\"brushstart\\\"\\n      });\\n      brushmove();\\n      function keydown() {\\n        if (d3.event.keyCode == 32) {\\n          if (!dragging) {\\n            center = null;\\n            origin[0] -= xExtent[1];\\n            origin[1] -= yExtent[1];\\n            dragging = 2;\\n          }\\n          d3_eventPreventDefault();\\n        }\\n      }\\n      function keyup() {\\n        if (d3.event.keyCode == 32 && dragging == 2) {\\n          origin[0] += xExtent[1];\\n          origin[1] += yExtent[1];\\n          dragging = 0;\\n          d3_eventPreventDefault();\\n        }\\n      }\\n      function brushmove() {\\n        var point = d3.mouse(target), moved = false;\\n        if (offset) {\\n          point[0] += offset[0];\\n          point[1] += offset[1];\\n        }\\n        if (!dragging) {\\n          if (d3.event.altKey) {\\n            if (!center) center = [ (xExtent[0] + xExtent[1]) / 2, (yExtent[0] + yExtent[1]) / 2 ];\\n            origin[0] = xExtent[+(point[0] < center[0])];\\n            origin[1] = yExtent[+(point[1] < center[1])];\\n          } else center = null;\\n        }\\n        if (resizingX && move1(point, x, 0)) {\\n          redrawX(g);\\n          moved = true;\\n        }\\n        if (resizingY && move1(point, y, 1)) {\\n          redrawY(g);\\n          moved = true;\\n        }\\n        if (moved) {\\n          redraw(g);\\n          event_({\\n            type: \\\"brush\\\",\\n            mode: dragging ? \\\"move\\\" : \\\"resize\\\"\\n          });\\n        }\\n      }\\n      function move1(point, scale, i) {\\n        var range = d3_scaleRange(scale), r0 = range[0], r1 = range[1], position = origin[i], extent = i ? yExtent : xExtent, size = extent[1] - extent[0], min, max;\\n        if (dragging) {\\n          r0 -= position;\\n          r1 -= size + position;\\n        }\\n        min = (i ? yClamp : xClamp) ? Math.max(r0, Math.min(r1, point[i])) : point[i];\\n        if (dragging) {\\n          max = (min += position) + size;\\n        } else {\\n          if (center) position = Math.max(r0, Math.min(r1, 2 * center[i] - min));\\n          if (position < min) {\\n            max = min;\\n            min = position;\\n          } else {\\n            max = position;\\n          }\\n        }\\n        if (extent[0] != min || extent[1] != max) {\\n          if (i) yExtentDomain = null; else xExtentDomain = null;\\n          extent[0] = min;\\n          extent[1] = max;\\n          return true;\\n        }\\n      }\\n      function brushend() {\\n        brushmove();\\n        g.style(\\\"pointer-events\\\", \\\"all\\\").selectAll(\\\".resize\\\").style(\\\"display\\\", brush.empty() ? \\\"none\\\" : null);\\n        d3.select(\\\"body\\\").style(\\\"cursor\\\", null);\\n        w.on(\\\"mousemove.brush\\\", null).on(\\\"mouseup.brush\\\", null).on(\\\"touchmove.brush\\\", null).on(\\\"touchend.brush\\\", null).on(\\\"keydown.brush\\\", null).on(\\\"keyup.brush\\\", null);\\n        dragRestore();\\n        event_({\\n          type: \\\"brushend\\\"\\n        });\\n      }\\n    }\\n    brush.x = function(z) {\\n      if (!arguments.length) return x;\\n      x = z;\\n      resizes = d3_svg_brushResizes[!x << 1 | !y];\\n      return brush;\\n    };\\n    brush.y = function(z) {\\n      if (!arguments.length) return y;\\n      y = z;\\n      resizes = d3_svg_brushResizes[!x << 1 | !y];\\n      return brush;\\n    };\\n    brush.clamp = function(z) {\\n      if (!arguments.length) return x && y ? [ xClamp, yClamp ] : x ? xClamp : y ? yClamp : null;\\n      if (x && y) xClamp = !!z[0], yClamp = !!z[1]; else if (x) xClamp = !!z; else if (y) yClamp = !!z;\\n      return brush;\\n    };\\n    brush.extent = function(z) {\\n      var x0, x1, y0, y1, t;\\n      if (!arguments.length) {\\n        if (x) {\\n          if (xExtentDomain) {\\n            x0 = xExtentDomain[0], x1 = xExtentDomain[1];\\n          } else {\\n            x0 = xExtent[0], x1 = xExtent[1];\\n            if (x.invert) x0 = x.invert(x0), x1 = x.invert(x1);\\n            if (x1 < x0) t = x0, x0 = x1, x1 = t;\\n          }\\n        }\\n        if (y) {\\n          if (yExtentDomain) {\\n            y0 = yExtentDomain[0], y1 = yExtentDomain[1];\\n          } else {\\n            y0 = yExtent[0], y1 = yExtent[1];\\n            if (y.invert) y0 = y.invert(y0), y1 = y.invert(y1);\\n            if (y1 < y0) t = y0, y0 = y1, y1 = t;\\n          }\\n        }\\n        return x && y ? [ [ x0, y0 ], [ x1, y1 ] ] : x ? [ x0, x1 ] : y && [ y0, y1 ];\\n      }\\n      if (x) {\\n        x0 = z[0], x1 = z[1];\\n        if (y) x0 = x0[0], x1 = x1[0];\\n        xExtentDomain = [ x0, x1 ];\\n        if (x.invert) x0 = x(x0), x1 = x(x1);\\n        if (x1 < x0) t = x0, x0 = x1, x1 = t;\\n        if (x0 != xExtent[0] || x1 != xExtent[1]) xExtent = [ x0, x1 ];\\n      }\\n      if (y) {\\n        y0 = z[0], y1 = z[1];\\n        if (x) y0 = y0[1], y1 = y1[1];\\n        yExtentDomain = [ y0, y1 ];\\n        if (y.invert) y0 = y(y0), y1 = y(y1);\\n        if (y1 < y0) t = y0, y0 = y1, y1 = t;\\n        if (y0 != yExtent[0] || y1 != yExtent[1]) yExtent = [ y0, y1 ];\\n      }\\n      return brush;\\n    };\\n    brush.clear = function() {\\n      if (!brush.empty()) {\\n        xExtent = [ 0, 0 ], yExtent = [ 0, 0 ];\\n        xExtentDomain = yExtentDomain = null;\\n      }\\n      return brush;\\n    };\\n    brush.empty = function() {\\n      return !!x && xExtent[0] == xExtent[1] || !!y && yExtent[0] == yExtent[1];\\n    };\\n    return d3.rebind(brush, event, \\\"on\\\");\\n  };\\n  var d3_svg_brushCursor = {\\n    n: \\\"ns-resize\\\",\\n    e: \\\"ew-resize\\\",\\n    s: \\\"ns-resize\\\",\\n    w: \\\"ew-resize\\\",\\n    nw: \\\"nwse-resize\\\",\\n    ne: \\\"nesw-resize\\\",\\n    se: \\\"nwse-resize\\\",\\n    sw: \\\"nesw-resize\\\"\\n  };\\n  var d3_svg_brushResizes = [ [ \\\"n\\\", \\\"e\\\", \\\"s\\\", \\\"w\\\", \\\"nw\\\", \\\"ne\\\", \\\"se\\\", \\\"sw\\\" ], [ \\\"e\\\", \\\"w\\\" ], [ \\\"n\\\", \\\"s\\\" ], [] ];\\n  var d3_time_format = d3_time.format = d3_locale_enUS.timeFormat;\\n  var d3_time_formatUtc = d3_time_format.utc;\\n  var d3_time_formatIso = d3_time_formatUtc(\\\"%Y-%m-%dT%H:%M:%S.%LZ\\\");\\n  d3_time_format.iso = Date.prototype.toISOString && +new Date(\\\"2000-01-01T00:00:00.000Z\\\") ? d3_time_formatIsoNative : d3_time_formatIso;\\n  function d3_time_formatIsoNative(date) {\\n    return date.toISOString();\\n  }\\n  d3_time_formatIsoNative.parse = function(string) {\\n    var date = new Date(string);\\n    return isNaN(date) ? null : date;\\n  };\\n  d3_time_formatIsoNative.toString = d3_time_formatIso.toString;\\n  d3_time.second = d3_time_interval(function(date) {\\n    return new d3_date(Math.floor(date / 1e3) * 1e3);\\n  }, function(date, offset) {\\n    date.setTime(date.getTime() + Math.floor(offset) * 1e3);\\n  }, function(date) {\\n    return date.getSeconds();\\n  });\\n  d3_time.seconds = d3_time.second.range;\\n  d3_time.seconds.utc = d3_time.second.utc.range;\\n  d3_time.minute = d3_time_interval(function(date) {\\n    return new d3_date(Math.floor(date / 6e4) * 6e4);\\n  }, function(date, offset) {\\n    date.setTime(date.getTime() + Math.floor(offset) * 6e4);\\n  }, function(date) {\\n    return date.getMinutes();\\n  });\\n  d3_time.minutes = d3_time.minute.range;\\n  d3_time.minutes.utc = d3_time.minute.utc.range;\\n  d3_time.hour = d3_time_interval(function(date) {\\n    var timezone = date.getTimezoneOffset() / 60;\\n    return new d3_date((Math.floor(date / 36e5 - timezone) + timezone) * 36e5);\\n  }, function(date, offset) {\\n    date.setTime(date.getTime() + Math.floor(offset) * 36e5);\\n  }, function(date) {\\n    return date.getHours();\\n  });\\n  d3_time.hours = d3_time.hour.range;\\n  d3_time.hours.utc = d3_time.hour.utc.range;\\n  d3_time.month = d3_time_interval(function(date) {\\n    date = d3_time.day(date);\\n    date.setDate(1);\\n    return date;\\n  }, function(date, offset) {\\n    date.setMonth(date.getMonth() + offset);\\n  }, function(date) {\\n    return date.getMonth();\\n  });\\n  d3_time.months = d3_time.month.range;\\n  d3_time.months.utc = d3_time.month.utc.range;\\n  function d3_time_scale(linear, methods, format) {\\n    function scale(x) {\\n      return linear(x);\\n    }\\n    scale.invert = function(x) {\\n      return d3_time_scaleDate(linear.invert(x));\\n    };\\n    scale.domain = function(x) {\\n      if (!arguments.length) return linear.domain().map(d3_time_scaleDate);\\n      linear.domain(x);\\n      return scale;\\n    };\\n    function tickMethod(extent, count) {\\n      var span = extent[1] - extent[0], target = span / count, i = d3.bisect(d3_time_scaleSteps, target);\\n      return i == d3_time_scaleSteps.length ? [ methods.year, d3_scale_linearTickRange(extent.map(function(d) {\\n        return d / 31536e6;\\n      }), count)[2] ] : !i ? [ d3_time_scaleMilliseconds, d3_scale_linearTickRange(extent, count)[2] ] : methods[target / d3_time_scaleSteps[i - 1] < d3_time_scaleSteps[i] / target ? i - 1 : i];\\n    }\\n    scale.nice = function(interval, skip) {\\n      var domain = scale.domain(), extent = d3_scaleExtent(domain), method = interval == null ? tickMethod(extent, 10) : typeof interval === \\\"number\\\" && tickMethod(extent, interval);\\n      if (method) interval = method[0], skip = method[1];\\n      function skipped(date) {\\n        return !isNaN(date) && !interval.range(date, d3_time_scaleDate(+date + 1), skip).length;\\n      }\\n      return scale.domain(d3_scale_nice(domain, skip > 1 ? {\\n        floor: function(date) {\\n          while (skipped(date = interval.floor(date))) date = d3_time_scaleDate(date - 1);\\n          return date;\\n        },\\n        ceil: function(date) {\\n          while (skipped(date = interval.ceil(date))) date = d3_time_scaleDate(+date + 1);\\n          return date;\\n        }\\n      } : interval));\\n    };\\n    scale.ticks = function(interval, skip) {\\n      var extent = d3_scaleExtent(scale.domain()), method = interval == null ? tickMethod(extent, 10) : typeof interval === \\\"number\\\" ? tickMethod(extent, interval) : !interval.range && [ {\\n        range: interval\\n      }, skip ];\\n      if (method) interval = method[0], skip = method[1];\\n      return interval.range(extent[0], d3_time_scaleDate(+extent[1] + 1), skip < 1 ? 1 : skip);\\n    };\\n    scale.tickFormat = function() {\\n      return format;\\n    };\\n    scale.copy = function() {\\n      return d3_time_scale(linear.copy(), methods, format);\\n    };\\n    return d3_scale_linearRebind(scale, linear);\\n  }\\n  function d3_time_scaleDate(t) {\\n    return new Date(t);\\n  }\\n  var d3_time_scaleSteps = [ 1e3, 5e3, 15e3, 3e4, 6e4, 3e5, 9e5, 18e5, 36e5, 108e5, 216e5, 432e5, 864e5, 1728e5, 6048e5, 2592e6, 7776e6, 31536e6 ];\\n  var d3_time_scaleLocalMethods = [ [ d3_time.second, 1 ], [ d3_time.second, 5 ], [ d3_time.second, 15 ], [ d3_time.second, 30 ], [ d3_time.minute, 1 ], [ d3_time.minute, 5 ], [ d3_time.minute, 15 ], [ d3_time.minute, 30 ], [ d3_time.hour, 1 ], [ d3_time.hour, 3 ], [ d3_time.hour, 6 ], [ d3_time.hour, 12 ], [ d3_time.day, 1 ], [ d3_time.day, 2 ], [ d3_time.week, 1 ], [ d3_time.month, 1 ], [ d3_time.month, 3 ], [ d3_time.year, 1 ] ];\\n  var d3_time_scaleLocalFormat = d3_time_format.multi([ [ \\\".%L\\\", function(d) {\\n    return d.getMilliseconds();\\n  } ], [ \\\":%S\\\", function(d) {\\n    return d.getSeconds();\\n  } ], [ \\\"%I:%M\\\", function(d) {\\n    return d.getMinutes();\\n  } ], [ \\\"%I %p\\\", function(d) {\\n    return d.getHours();\\n  } ], [ \\\"%a %d\\\", function(d) {\\n    return d.getDay() && d.getDate() != 1;\\n  } ], [ \\\"%b %d\\\", function(d) {\\n    return d.getDate() != 1;\\n  } ], [ \\\"%B\\\", function(d) {\\n    return d.getMonth();\\n  } ], [ \\\"%Y\\\", d3_true ] ]);\\n  var d3_time_scaleMilliseconds = {\\n    range: function(start, stop, step) {\\n      return d3.range(Math.ceil(start / step) * step, +stop, step).map(d3_time_scaleDate);\\n    },\\n    floor: d3_identity,\\n    ceil: d3_identity\\n  };\\n  d3_time_scaleLocalMethods.year = d3_time.year;\\n  d3_time.scale = function() {\\n    return d3_time_scale(d3.scale.linear(), d3_time_scaleLocalMethods, d3_time_scaleLocalFormat);\\n  };\\n  var d3_time_scaleUtcMethods = d3_time_scaleLocalMethods.map(function(m) {\\n    return [ m[0].utc, m[1] ];\\n  });\\n  var d3_time_scaleUtcFormat = d3_time_formatUtc.multi([ [ \\\".%L\\\", function(d) {\\n    return d.getUTCMilliseconds();\\n  } ], [ \\\":%S\\\", function(d) {\\n    return d.getUTCSeconds();\\n  } ], [ \\\"%I:%M\\\", function(d) {\\n    return d.getUTCMinutes();\\n  } ], [ \\\"%I %p\\\", function(d) {\\n    return d.getUTCHours();\\n  } ], [ \\\"%a %d\\\", function(d) {\\n    return d.getUTCDay() && d.getUTCDate() != 1;\\n  } ], [ \\\"%b %d\\\", function(d) {\\n    return d.getUTCDate() != 1;\\n  } ], [ \\\"%B\\\", function(d) {\\n    return d.getUTCMonth();\\n  } ], [ \\\"%Y\\\", d3_true ] ]);\\n  d3_time_scaleUtcMethods.year = d3_time.year.utc;\\n  d3_time.scale.utc = function() {\\n    return d3_time_scale(d3.scale.linear(), d3_time_scaleUtcMethods, d3_time_scaleUtcFormat);\\n  };\\n  d3.text = d3_xhrType(function(request) {\\n    return request.responseText;\\n  });\\n  d3.json = function(url, callback) {\\n    return d3_xhr(url, \\\"application/json\\\", d3_json, callback);\\n  };\\n  function d3_json(request) {\\n    return JSON.parse(request.responseText);\\n  }\\n  d3.html = function(url, callback) {\\n    return d3_xhr(url, \\\"text/html\\\", d3_html, callback);\\n  };\\n  function d3_html(request) {\\n    var range = d3_document.createRange();\\n    range.selectNode(d3_document.body);\\n    return range.createContextualFragment(request.responseText);\\n  }\\n  d3.xml = d3_xhrType(function(request) {\\n    return request.responseXML;\\n  });\\n  if (typeof define === \\\"function\\\" && define.amd) this.d3 = d3, define(d3); else if (typeof module === \\\"object\\\" && module.exports) module.exports = d3; else this.d3 = d3;\\n}();\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// /home/cool/Music/personal_projects/Zmall/angbackuo/~/raw-loader!/home/cool/Music/personal_projects/Zmall/angbackuo/~/source-map-loader!/home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/d3.js\n// module id = 1501\n// module chunks = 2","module.exports = \"/*! jQuery UI - v1.10.4 - 2014-01-17\\n* http://jqueryui.com\\n* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.effect.js, jquery.ui.effect-blind.js, jquery.ui.effect-bounce.js, jquery.ui.effect-clip.js, jquery.ui.effect-drop.js, jquery.ui.effect-explode.js, jquery.ui.effect-fade.js, jquery.ui.effect-fold.js, jquery.ui.effect-highlight.js, jquery.ui.effect-pulsate.js, jquery.ui.effect-scale.js, jquery.ui.effect-shake.js, jquery.ui.effect-slide.js, jquery.ui.effect-transfer.js, jquery.ui.menu.js, jquery.ui.progressbar.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.slider.js, jquery.ui.sortable.js, jquery.ui.spinner.js, jquery.ui.tabs.js, jquery.ui.tooltip.js\\n* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */\\n\\n(function( $, undefined ) {\\n\\nvar uuid = 0,\\n    runiqueId = /^ui-id-\\\\d+$/;\\n\\n// $.ui might exist from components with no dependencies, e.g., $.ui.position\\n$.ui = $.ui || {};\\n\\n$.extend( $.ui, {\\n    version: \\\"1.10.4\\\",\\n\\n    keyCode: {\\n        BACKSPACE: 8,\\n        COMMA: 188,\\n        DELETE: 46,\\n        DOWN: 40,\\n        END: 35,\\n        ENTER: 13,\\n        ESCAPE: 27,\\n        HOME: 36,\\n        LEFT: 37,\\n        NUMPAD_ADD: 107,\\n        NUMPAD_DECIMAL: 110,\\n        NUMPAD_DIVIDE: 111,\\n        NUMPAD_ENTER: 108,\\n        NUMPAD_MULTIPLY: 106,\\n        NUMPAD_SUBTRACT: 109,\\n        PAGE_DOWN: 34,\\n        PAGE_UP: 33,\\n        PERIOD: 190,\\n        RIGHT: 39,\\n        SPACE: 32,\\n        TAB: 9,\\n        UP: 38\\n    }\\n});\\n\\n// plugins\\n$.fn.extend({\\n    focus: (function( orig ) {\\n        return function( delay, fn ) {\\n            return typeof delay === \\\"number\\\" ?\\n                this.each(function() {\\n                    var elem = this;\\n                    setTimeout(function() {\\n                        $( elem ).focus();\\n                        if ( fn ) {\\n                            fn.call( elem );\\n                        }\\n                    }, delay );\\n                }) :\\n                orig.apply( this, arguments );\\n        };\\n    })( $.fn.focus ),\\n\\n    scrollParent: function() {\\n        var scrollParent;\\n        if (($.ui.ie && (/(static|relative)/).test(this.css(\\\"position\\\"))) || (/absolute/).test(this.css(\\\"position\\\"))) {\\n            scrollParent = this.parents().filter(function() {\\n                return (/(relative|absolute|fixed)/).test($.css(this,\\\"position\\\")) && (/(auto|scroll)/).test($.css(this,\\\"overflow\\\")+$.css(this,\\\"overflow-y\\\")+$.css(this,\\\"overflow-x\\\"));\\n            }).eq(0);\\n        } else {\\n            scrollParent = this.parents().filter(function() {\\n                return (/(auto|scroll)/).test($.css(this,\\\"overflow\\\")+$.css(this,\\\"overflow-y\\\")+$.css(this,\\\"overflow-x\\\"));\\n            }).eq(0);\\n        }\\n\\n        return (/fixed/).test(this.css(\\\"position\\\")) || !scrollParent.length ? $(document) : scrollParent;\\n    },\\n\\n    zIndex: function( zIndex ) {\\n        if ( zIndex !== undefined ) {\\n            return this.css( \\\"zIndex\\\", zIndex );\\n        }\\n\\n        if ( this.length ) {\\n            var elem = $( this[ 0 ] ), position, value;\\n            while ( elem.length && elem[ 0 ] !== document ) {\\n                // Ignore z-index if position is set to a value where z-index is ignored by the browser\\n                // This makes behavior of this function consistent across browsers\\n                // WebKit always returns auto if the element is positioned\\n                position = elem.css( \\\"position\\\" );\\n                if ( position === \\\"absolute\\\" || position === \\\"relative\\\" || position === \\\"fixed\\\" ) {\\n                    // IE returns 0 when zIndex is not specified\\n                    // other browsers return a string\\n                    // we ignore the case of nested elements with an explicit value of 0\\n                    // <div style=\\\"z-index: -10;\\\"><div style=\\\"z-index: 0;\\\"></div></div>\\n                    value = parseInt( elem.css( \\\"zIndex\\\" ), 10 );\\n                    if ( !isNaN( value ) && value !== 0 ) {\\n                        return value;\\n                    }\\n                }\\n                elem = elem.parent();\\n            }\\n        }\\n\\n        return 0;\\n    },\\n\\n    uniqueId: function() {\\n        return this.each(function() {\\n            if ( !this.id ) {\\n                this.id = \\\"ui-id-\\\" + (++uuid);\\n            }\\n        });\\n    },\\n\\n    removeUniqueId: function() {\\n        return this.each(function() {\\n            if ( runiqueId.test( this.id ) ) {\\n                $( this ).removeAttr( \\\"id\\\" );\\n            }\\n        });\\n    }\\n});\\n\\n// selectors\\nfunction focusable( element, isTabIndexNotNaN ) {\\n    var map, mapName, img,\\n        nodeName = element.nodeName.toLowerCase();\\n    if ( \\\"area\\\" === nodeName ) {\\n        map = element.parentNode;\\n        mapName = map.name;\\n        if ( !element.href || !mapName || map.nodeName.toLowerCase() !== \\\"map\\\" ) {\\n            return false;\\n        }\\n        img = $( \\\"img[usemap=#\\\" + mapName + \\\"]\\\" )[0];\\n        return !!img && visible( img );\\n    }\\n    return ( /input|select|textarea|button|object/.test( nodeName ) ?\\n        !element.disabled :\\n        \\\"a\\\" === nodeName ?\\n            element.href || isTabIndexNotNaN :\\n            isTabIndexNotNaN) &&\\n        // the element and all of its ancestors must be visible\\n        visible( element );\\n}\\n\\nfunction visible( element ) {\\n    return $.expr.filters.visible( element ) &&\\n        !$( element ).parents().addBack().filter(function() {\\n            return $.css( this, \\\"visibility\\\" ) === \\\"hidden\\\";\\n        }).length;\\n}\\n\\n$.extend( $.expr[ \\\":\\\" ], {\\n    data: $.expr.createPseudo ?\\n        $.expr.createPseudo(function( dataName ) {\\n            return function( elem ) {\\n                return !!$.data( elem, dataName );\\n            };\\n        }) :\\n        // support: jQuery <1.8\\n        function( elem, i, match ) {\\n            return !!$.data( elem, match[ 3 ] );\\n        },\\n\\n    focusable: function( element ) {\\n        return focusable( element, !isNaN( $.attr( element, \\\"tabindex\\\" ) ) );\\n    },\\n\\n    tabbable: function( element ) {\\n        var tabIndex = $.attr( element, \\\"tabindex\\\" ),\\n            isTabIndexNaN = isNaN( tabIndex );\\n        return ( isTabIndexNaN || tabIndex >= 0 ) && focusable( element, !isTabIndexNaN );\\n    }\\n});\\n\\n// support: jQuery <1.8\\nif ( !$( \\\"<a>\\\" ).outerWidth( 1 ).jquery ) {\\n    $.each( [ \\\"Width\\\", \\\"Height\\\" ], function( i, name ) {\\n        var side = name === \\\"Width\\\" ? [ \\\"Left\\\", \\\"Right\\\" ] : [ \\\"Top\\\", \\\"Bottom\\\" ],\\n            type = name.toLowerCase(),\\n            orig = {\\n                innerWidth: $.fn.innerWidth,\\n                innerHeight: $.fn.innerHeight,\\n                outerWidth: $.fn.outerWidth,\\n                outerHeight: $.fn.outerHeight\\n            };\\n\\n        function reduce( elem, size, border, margin ) {\\n            $.each( side, function() {\\n                size -= parseFloat( $.css( elem, \\\"padding\\\" + this ) ) || 0;\\n                if ( border ) {\\n                    size -= parseFloat( $.css( elem, \\\"border\\\" + this + \\\"Width\\\" ) ) || 0;\\n                }\\n                if ( margin ) {\\n                    size -= parseFloat( $.css( elem, \\\"margin\\\" + this ) ) || 0;\\n                }\\n            });\\n            return size;\\n        }\\n\\n        $.fn[ \\\"inner\\\" + name ] = function( size ) {\\n            if ( size === undefined ) {\\n                return orig[ \\\"inner\\\" + name ].call( this );\\n            }\\n\\n            return this.each(function() {\\n                $( this ).css( type, reduce( this, size ) + \\\"px\\\" );\\n            });\\n        };\\n\\n        $.fn[ \\\"outer\\\" + name] = function( size, margin ) {\\n            if ( typeof size !== \\\"number\\\" ) {\\n                return orig[ \\\"outer\\\" + name ].call( this, size );\\n            }\\n\\n            return this.each(function() {\\n                $( this).css( type, reduce( this, size, true, margin ) + \\\"px\\\" );\\n            });\\n        };\\n    });\\n}\\n\\n// support: jQuery <1.8\\nif ( !$.fn.addBack ) {\\n    $.fn.addBack = function( selector ) {\\n        return this.add( selector == null ?\\n            this.prevObject : this.prevObject.filter( selector )\\n        );\\n    };\\n}\\n\\n// support: jQuery 1.6.1, 1.6.2 (http://bugs.jquery.com/ticket/9413)\\nif ( $( \\\"<a>\\\" ).data( \\\"a-b\\\", \\\"a\\\" ).removeData( \\\"a-b\\\" ).data( \\\"a-b\\\" ) ) {\\n    $.fn.removeData = (function( removeData ) {\\n        return function( key ) {\\n            if ( arguments.length ) {\\n                return removeData.call( this, $.camelCase( key ) );\\n            } else {\\n                return removeData.call( this );\\n            }\\n        };\\n    })( $.fn.removeData );\\n}\\n\\n\\n\\n\\n\\n// deprecated\\n$.ui.ie = !!/msie [\\\\w.]+/.exec( navigator.userAgent.toLowerCase() );\\n\\n$.support.selectstart = \\\"onselectstart\\\" in document.createElement( \\\"div\\\" );\\n$.fn.extend({\\n    disableSelection: function() {\\n        return this.bind( ( $.support.selectstart ? \\\"selectstart\\\" : \\\"mousedown\\\" ) +\\n            \\\".ui-disableSelection\\\", function( event ) {\\n                event.preventDefault();\\n            });\\n    },\\n\\n    enableSelection: function() {\\n        return this.unbind( \\\".ui-disableSelection\\\" );\\n    }\\n});\\n\\n$.extend( $.ui, {\\n    // $.ui.plugin is deprecated. Use $.widget() extensions instead.\\n    plugin: {\\n        add: function( module, option, set ) {\\n            var i,\\n                proto = $.ui[ module ].prototype;\\n            for ( i in set ) {\\n                proto.plugins[ i ] = proto.plugins[ i ] || [];\\n                proto.plugins[ i ].push( [ option, set[ i ] ] );\\n            }\\n        },\\n        call: function( instance, name, args ) {\\n            var i,\\n                set = instance.plugins[ name ];\\n            if ( !set || !instance.element[ 0 ].parentNode || instance.element[ 0 ].parentNode.nodeType === 11 ) {\\n                return;\\n            }\\n\\n            for ( i = 0; i < set.length; i++ ) {\\n                if ( instance.options[ set[ i ][ 0 ] ] ) {\\n                    set[ i ][ 1 ].apply( instance.element, args );\\n                }\\n            }\\n        }\\n    },\\n\\n    // only used by resizable\\n    hasScroll: function( el, a ) {\\n\\n        //If overflow is hidden, the element might have extra content, but the user wants to hide it\\n        if ( $( el ).css( \\\"overflow\\\" ) === \\\"hidden\\\") {\\n            return false;\\n        }\\n\\n        var scroll = ( a && a === \\\"left\\\" ) ? \\\"scrollLeft\\\" : \\\"scrollTop\\\",\\n            has = false;\\n\\n        if ( el[ scroll ] > 0 ) {\\n            return true;\\n        }\\n\\n        // TODO: determine which cases actually cause this to happen\\n        // if the element doesn't have the scroll set, see if it's possible to\\n        // set the scroll\\n        el[ scroll ] = 1;\\n        has = ( el[ scroll ] > 0 );\\n        el[ scroll ] = 0;\\n        return has;\\n    }\\n});\\n\\n})( jQuery );\\n(function( $, undefined ) {\\n\\nvar uuid = 0,\\n    slice = Array.prototype.slice,\\n    _cleanData = $.cleanData;\\n$.cleanData = function( elems ) {\\n    for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {\\n        try {\\n            $( elem ).triggerHandler( \\\"remove\\\" );\\n        // http://bugs.jquery.com/ticket/8235\\n        } catch( e ) {}\\n    }\\n    _cleanData( elems );\\n};\\n\\n$.widget = function( name, base, prototype ) {\\n    var fullName, existingConstructor, constructor, basePrototype,\\n        // proxiedPrototype allows the provided prototype to remain unmodified\\n        // so that it can be used as a mixin for multiple widgets (#8876)\\n        proxiedPrototype = {},\\n        namespace = name.split( \\\".\\\" )[ 0 ];\\n\\n    name = name.split( \\\".\\\" )[ 1 ];\\n    fullName = namespace + \\\"-\\\" + name;\\n\\n    if ( !prototype ) {\\n        prototype = base;\\n        base = $.Widget;\\n    }\\n\\n    // create selector for plugin\\n    $.expr[ \\\":\\\" ][ fullName.toLowerCase() ] = function( elem ) {\\n        return !!$.data( elem, fullName );\\n    };\\n\\n    $[ namespace ] = $[ namespace ] || {};\\n    existingConstructor = $[ namespace ][ name ];\\n    constructor = $[ namespace ][ name ] = function( options, element ) {\\n        // allow instantiation without \\\"new\\\" keyword\\n        if ( !this._createWidget ) {\\n            return new constructor( options, element );\\n        }\\n\\n        // allow instantiation without initializing for simple inheritance\\n        // must use \\\"new\\\" keyword (the code above always passes args)\\n        if ( arguments.length ) {\\n            this._createWidget( options, element );\\n        }\\n    };\\n    // extend with the existing constructor to carry over any static properties\\n    $.extend( constructor, existingConstructor, {\\n        version: prototype.version,\\n        // copy the object used to create the prototype in case we need to\\n        // redefine the widget later\\n        _proto: $.extend( {}, prototype ),\\n        // track widgets that inherit from this widget in case this widget is\\n        // redefined after a widget inherits from it\\n        _childConstructors: []\\n    });\\n\\n    basePrototype = new base();\\n    // we need to make the options hash a property directly on the new instance\\n    // otherwise we'll modify the options hash on the prototype that we're\\n    // inheriting from\\n    basePrototype.options = $.widget.extend( {}, basePrototype.options );\\n    $.each( prototype, function( prop, value ) {\\n        if ( !$.isFunction( value ) ) {\\n            proxiedPrototype[ prop ] = value;\\n            return;\\n        }\\n        proxiedPrototype[ prop ] = (function() {\\n            var _super = function() {\\n                    return base.prototype[ prop ].apply( this, arguments );\\n                },\\n                _superApply = function( args ) {\\n                    return base.prototype[ prop ].apply( this, args );\\n                };\\n            return function() {\\n                var __super = this._super,\\n                    __superApply = this._superApply,\\n                    returnValue;\\n\\n                this._super = _super;\\n                this._superApply = _superApply;\\n\\n                returnValue = value.apply( this, arguments );\\n\\n                this._super = __super;\\n                this._superApply = __superApply;\\n\\n                return returnValue;\\n            };\\n        })();\\n    });\\n    constructor.prototype = $.widget.extend( basePrototype, {\\n        // TODO: remove support for widgetEventPrefix\\n        // always use the name + a colon as the prefix, e.g., draggable:start\\n        // don't prefix for widgets that aren't DOM-based\\n        widgetEventPrefix: existingConstructor ? (basePrototype.widgetEventPrefix || name) : name\\n    }, proxiedPrototype, {\\n        constructor: constructor,\\n        namespace: namespace,\\n        widgetName: name,\\n        widgetFullName: fullName\\n    });\\n\\n    // If this widget is being redefined then we need to find all widgets that\\n    // are inheriting from it and redefine all of them so that they inherit from\\n    // the new version of this widget. We're essentially trying to replace one\\n    // level in the prototype chain.\\n    if ( existingConstructor ) {\\n        $.each( existingConstructor._childConstructors, function( i, child ) {\\n            var childPrototype = child.prototype;\\n\\n            // redefine the child widget using the same prototype that was\\n            // originally used, but inherit from the new version of the base\\n            $.widget( childPrototype.namespace + \\\".\\\" + childPrototype.widgetName, constructor, child._proto );\\n        });\\n        // remove the list of existing child constructors from the old constructor\\n        // so the old child constructors can be garbage collected\\n        delete existingConstructor._childConstructors;\\n    } else {\\n        base._childConstructors.push( constructor );\\n    }\\n\\n    $.widget.bridge( name, constructor );\\n};\\n\\n$.widget.extend = function( target ) {\\n    var input = slice.call( arguments, 1 ),\\n        inputIndex = 0,\\n        inputLength = input.length,\\n        key,\\n        value;\\n    for ( ; inputIndex < inputLength; inputIndex++ ) {\\n        for ( key in input[ inputIndex ] ) {\\n            value = input[ inputIndex ][ key ];\\n            if ( input[ inputIndex ].hasOwnProperty( key ) && value !== undefined ) {\\n                // Clone objects\\n                if ( $.isPlainObject( value ) ) {\\n                    target[ key ] = $.isPlainObject( target[ key ] ) ?\\n                        $.widget.extend( {}, target[ key ], value ) :\\n                        // Don't extend strings, arrays, etc. with objects\\n                        $.widget.extend( {}, value );\\n                // Copy everything else by reference\\n                } else {\\n                    target[ key ] = value;\\n                }\\n            }\\n        }\\n    }\\n    return target;\\n};\\n\\n$.widget.bridge = function( name, object ) {\\n    var fullName = object.prototype.widgetFullName || name;\\n    $.fn[ name ] = function( options ) {\\n        var isMethodCall = typeof options === \\\"string\\\",\\n            args = slice.call( arguments, 1 ),\\n            returnValue = this;\\n\\n        // allow multiple hashes to be passed on init\\n        options = !isMethodCall && args.length ?\\n            $.widget.extend.apply( null, [ options ].concat(args) ) :\\n            options;\\n\\n        if ( isMethodCall ) {\\n            this.each(function() {\\n                var methodValue,\\n                    instance = $.data( this, fullName );\\n                if ( !instance ) {\\n                    return $.error( \\\"cannot call methods on \\\" + name + \\\" prior to initialization; \\\" +\\n                        \\\"attempted to call method '\\\" + options + \\\"'\\\" );\\n                }\\n                if ( !$.isFunction( instance[options] ) || options.charAt( 0 ) === \\\"_\\\" ) {\\n                    return $.error( \\\"no such method '\\\" + options + \\\"' for \\\" + name + \\\" widget instance\\\" );\\n                }\\n                methodValue = instance[ options ].apply( instance, args );\\n                if ( methodValue !== instance && methodValue !== undefined ) {\\n                    returnValue = methodValue && methodValue.jquery ?\\n                        returnValue.pushStack( methodValue.get() ) :\\n                        methodValue;\\n                    return false;\\n                }\\n            });\\n        } else {\\n            this.each(function() {\\n                var instance = $.data( this, fullName );\\n                if ( instance ) {\\n                    instance.option( options || {} )._init();\\n                } else {\\n                    $.data( this, fullName, new object( options, this ) );\\n                }\\n            });\\n        }\\n\\n        return returnValue;\\n    };\\n};\\n\\n$.Widget = function( /* options, element */ ) {};\\n$.Widget._childConstructors = [];\\n\\n$.Widget.prototype = {\\n    widgetName: \\\"widget\\\",\\n    widgetEventPrefix: \\\"\\\",\\n    defaultElement: \\\"<div>\\\",\\n    options: {\\n        disabled: false,\\n\\n        // callbacks\\n        create: null\\n    },\\n    _createWidget: function( options, element ) {\\n        element = $( element || this.defaultElement || this )[ 0 ];\\n        this.element = $( element );\\n        this.uuid = uuid++;\\n        this.eventNamespace = \\\".\\\" + this.widgetName + this.uuid;\\n        this.options = $.widget.extend( {},\\n            this.options,\\n            this._getCreateOptions(),\\n            options );\\n\\n        this.bindings = $();\\n        this.hoverable = $();\\n        this.focusable = $();\\n\\n        if ( element !== this ) {\\n            $.data( element, this.widgetFullName, this );\\n            this._on( true, this.element, {\\n                remove: function( event ) {\\n                    if ( event.target === element ) {\\n                        this.destroy();\\n                    }\\n                }\\n            });\\n            this.document = $( element.style ?\\n                // element within the document\\n                element.ownerDocument :\\n                // element is window or document\\n                element.document || element );\\n            this.window = $( this.document[0].defaultView || this.document[0].parentWindow );\\n        }\\n\\n        this._create();\\n        this._trigger( \\\"create\\\", null, this._getCreateEventData() );\\n        this._init();\\n    },\\n    _getCreateOptions: $.noop,\\n    _getCreateEventData: $.noop,\\n    _create: $.noop,\\n    _init: $.noop,\\n\\n    destroy: function() {\\n        this._destroy();\\n        // we can probably remove the unbind calls in 2.0\\n        // all event bindings should go through this._on()\\n        this.element\\n            .unbind( this.eventNamespace )\\n            // 1.9 BC for #7810\\n            // TODO remove dual storage\\n            .removeData( this.widgetName )\\n            .removeData( this.widgetFullName )\\n            // support: jquery <1.6.3\\n            // http://bugs.jquery.com/ticket/9413\\n            .removeData( $.camelCase( this.widgetFullName ) );\\n        this.widget()\\n            .unbind( this.eventNamespace )\\n            .removeAttr( \\\"aria-disabled\\\" )\\n            .removeClass(\\n                this.widgetFullName + \\\"-disabled \\\" +\\n                \\\"ui-state-disabled\\\" );\\n\\n        // clean up events and states\\n        this.bindings.unbind( this.eventNamespace );\\n        this.hoverable.removeClass( \\\"ui-state-hover\\\" );\\n        this.focusable.removeClass( \\\"ui-state-focus\\\" );\\n    },\\n    _destroy: $.noop,\\n\\n    widget: function() {\\n        return this.element;\\n    },\\n\\n    option: function( key, value ) {\\n        var options = key,\\n            parts,\\n            curOption,\\n            i;\\n\\n        if ( arguments.length === 0 ) {\\n            // don't return a reference to the internal hash\\n            return $.widget.extend( {}, this.options );\\n        }\\n\\n        if ( typeof key === \\\"string\\\" ) {\\n            // handle nested keys, e.g., \\\"foo.bar\\\" => { foo: { bar: ___ } }\\n            options = {};\\n            parts = key.split( \\\".\\\" );\\n            key = parts.shift();\\n            if ( parts.length ) {\\n                curOption = options[ key ] = $.widget.extend( {}, this.options[ key ] );\\n                for ( i = 0; i < parts.length - 1; i++ ) {\\n                    curOption[ parts[ i ] ] = curOption[ parts[ i ] ] || {};\\n                    curOption = curOption[ parts[ i ] ];\\n                }\\n                key = parts.pop();\\n                if ( arguments.length === 1 ) {\\n                    return curOption[ key ] === undefined ? null : curOption[ key ];\\n                }\\n                curOption[ key ] = value;\\n            } else {\\n                if ( arguments.length === 1 ) {\\n                    return this.options[ key ] === undefined ? null : this.options[ key ];\\n                }\\n                options[ key ] = value;\\n            }\\n        }\\n\\n        this._setOptions( options );\\n\\n        return this;\\n    },\\n    _setOptions: function( options ) {\\n        var key;\\n\\n        for ( key in options ) {\\n            this._setOption( key, options[ key ] );\\n        }\\n\\n        return this;\\n    },\\n    _setOption: function( key, value ) {\\n        this.options[ key ] = value;\\n\\n        if ( key === \\\"disabled\\\" ) {\\n            this.widget()\\n                .toggleClass( this.widgetFullName + \\\"-disabled ui-state-disabled\\\", !!value )\\n                .attr( \\\"aria-disabled\\\", value );\\n            this.hoverable.removeClass( \\\"ui-state-hover\\\" );\\n            this.focusable.removeClass( \\\"ui-state-focus\\\" );\\n        }\\n\\n        return this;\\n    },\\n\\n    enable: function() {\\n        return this._setOption( \\\"disabled\\\", false );\\n    },\\n    disable: function() {\\n        return this._setOption( \\\"disabled\\\", true );\\n    },\\n\\n    _on: function( suppressDisabledCheck, element, handlers ) {\\n        var delegateElement,\\n            instance = this;\\n\\n        // no suppressDisabledCheck flag, shuffle arguments\\n        if ( typeof suppressDisabledCheck !== \\\"boolean\\\" ) {\\n            handlers = element;\\n            element = suppressDisabledCheck;\\n            suppressDisabledCheck = false;\\n        }\\n\\n        // no element argument, shuffle and use this.element\\n        if ( !handlers ) {\\n            handlers = element;\\n            element = this.element;\\n            delegateElement = this.widget();\\n        } else {\\n            // accept selectors, DOM elements\\n            element = delegateElement = $( element );\\n            this.bindings = this.bindings.add( element );\\n        }\\n\\n        $.each( handlers, function( event, handler ) {\\n            function handlerProxy() {\\n                // allow widgets to customize the disabled handling\\n                // - disabled as an array instead of boolean\\n                // - disabled class as method for disabling individual parts\\n                if ( !suppressDisabledCheck &&\\n                        ( instance.options.disabled === true ||\\n                            $( this ).hasClass( \\\"ui-state-disabled\\\" ) ) ) {\\n                    return;\\n                }\\n                return ( typeof handler === \\\"string\\\" ? instance[ handler ] : handler )\\n                    .apply( instance, arguments );\\n            }\\n\\n            // copy the guid so direct unbinding works\\n            if ( typeof handler !== \\\"string\\\" ) {\\n                handlerProxy.guid = handler.guid =\\n                    handler.guid || handlerProxy.guid || $.guid++;\\n            }\\n\\n            var match = event.match( /^(\\\\w+)\\\\s*(.*)$/ ),\\n                eventName = match[1] + instance.eventNamespace,\\n                selector = match[2];\\n            if ( selector ) {\\n                delegateElement.delegate( selector, eventName, handlerProxy );\\n            } else {\\n                element.bind( eventName, handlerProxy );\\n            }\\n        });\\n    },\\n\\n    _off: function( element, eventName ) {\\n        eventName = (eventName || \\\"\\\").split( \\\" \\\" ).join( this.eventNamespace + \\\" \\\" ) + this.eventNamespace;\\n        element.unbind( eventName ).undelegate( eventName );\\n    },\\n\\n    _delay: function( handler, delay ) {\\n        function handlerProxy() {\\n            return ( typeof handler === \\\"string\\\" ? instance[ handler ] : handler )\\n                .apply( instance, arguments );\\n        }\\n        var instance = this;\\n        return setTimeout( handlerProxy, delay || 0 );\\n    },\\n\\n    _hoverable: function( element ) {\\n        this.hoverable = this.hoverable.add( element );\\n        this._on( element, {\\n            mouseenter: function( event ) {\\n                $( event.currentTarget ).addClass( \\\"ui-state-hover\\\" );\\n            },\\n            mouseleave: function( event ) {\\n                $( event.currentTarget ).removeClass( \\\"ui-state-hover\\\" );\\n            }\\n        });\\n    },\\n\\n    _focusable: function( element ) {\\n        this.focusable = this.focusable.add( element );\\n        this._on( element, {\\n            focusin: function( event ) {\\n                $( event.currentTarget ).addClass( \\\"ui-state-focus\\\" );\\n            },\\n            focusout: function( event ) {\\n                $( event.currentTarget ).removeClass( \\\"ui-state-focus\\\" );\\n            }\\n        });\\n    },\\n\\n    _trigger: function( type, event, data ) {\\n        var prop, orig,\\n            callback = this.options[ type ];\\n\\n        data = data || {};\\n        event = $.Event( event );\\n        event.type = ( type === this.widgetEventPrefix ?\\n            type :\\n            this.widgetEventPrefix + type ).toLowerCase();\\n        // the original event may come from any element\\n        // so we need to reset the target on the new event\\n        event.target = this.element[ 0 ];\\n\\n        // copy original event properties over to the new event\\n        orig = event.originalEvent;\\n        if ( orig ) {\\n            for ( prop in orig ) {\\n                if ( !( prop in event ) ) {\\n                    event[ prop ] = orig[ prop ];\\n                }\\n            }\\n        }\\n\\n        this.element.trigger( event, data );\\n        return !( $.isFunction( callback ) &&\\n            callback.apply( this.element[0], [ event ].concat( data ) ) === false ||\\n            event.isDefaultPrevented() );\\n    }\\n};\\n\\n$.each( { show: \\\"fadeIn\\\", hide: \\\"fadeOut\\\" }, function( method, defaultEffect ) {\\n    $.Widget.prototype[ \\\"_\\\" + method ] = function( element, options, callback ) {\\n        if ( typeof options === \\\"string\\\" ) {\\n            options = { effect: options };\\n        }\\n        var hasOptions,\\n            effectName = !options ?\\n                method :\\n                options === true || typeof options === \\\"number\\\" ?\\n                    defaultEffect :\\n                    options.effect || defaultEffect;\\n        options = options || {};\\n        if ( typeof options === \\\"number\\\" ) {\\n            options = { duration: options };\\n        }\\n        hasOptions = !$.isEmptyObject( options );\\n        options.complete = callback;\\n        if ( options.delay ) {\\n            element.delay( options.delay );\\n        }\\n        if ( hasOptions && $.effects && $.effects.effect[ effectName ] ) {\\n            element[ method ]( options );\\n        } else if ( effectName !== method && element[ effectName ] ) {\\n            element[ effectName ]( options.duration, options.easing, callback );\\n        } else {\\n            element.queue(function( next ) {\\n                $( this )[ method ]();\\n                if ( callback ) {\\n                    callback.call( element[ 0 ] );\\n                }\\n                next();\\n            });\\n        }\\n    };\\n});\\n\\n})( jQuery );\\n(function( $, undefined ) {\\n\\nvar mouseHandled = false;\\n$( document ).mouseup( function() {\\n    mouseHandled = false;\\n});\\n\\n$.widget(\\\"ui.mouse\\\", {\\n    version: \\\"1.10.4\\\",\\n    options: {\\n        cancel: \\\"input,textarea,button,select,option\\\",\\n        distance: 1,\\n        delay: 0\\n    },\\n    _mouseInit: function() {\\n        var that = this;\\n\\n        this.element\\n            .bind(\\\"mousedown.\\\"+this.widgetName, function(event) {\\n                return that._mouseDown(event);\\n            })\\n            .bind(\\\"click.\\\"+this.widgetName, function(event) {\\n                if (true === $.data(event.target, that.widgetName + \\\".preventClickEvent\\\")) {\\n                    $.removeData(event.target, that.widgetName + \\\".preventClickEvent\\\");\\n                    event.stopImmediatePropagation();\\n                    return false;\\n                }\\n            });\\n\\n        this.started = false;\\n    },\\n\\n    // TODO: make sure destroying one instance of mouse doesn't mess with\\n    // other instances of mouse\\n    _mouseDestroy: function() {\\n        this.element.unbind(\\\".\\\"+this.widgetName);\\n        if ( this._mouseMoveDelegate ) {\\n            $(document)\\n                .unbind(\\\"mousemove.\\\"+this.widgetName, this._mouseMoveDelegate)\\n                .unbind(\\\"mouseup.\\\"+this.widgetName, this._mouseUpDelegate);\\n        }\\n    },\\n\\n    _mouseDown: function(event) {\\n        // don't let more than one widget handle mouseStart\\n        if( mouseHandled ) { return; }\\n\\n        // we may have missed mouseup (out of window)\\n        (this._mouseStarted && this._mouseUp(event));\\n\\n        this._mouseDownEvent = event;\\n\\n        var that = this,\\n            btnIsLeft = (event.which === 1),\\n            // event.target.nodeName works around a bug in IE 8 with\\n            // disabled inputs (#7620)\\n            elIsCancel = (typeof this.options.cancel === \\\"string\\\" && event.target.nodeName ? $(event.target).closest(this.options.cancel).length : false);\\n        if (!btnIsLeft || elIsCancel || !this._mouseCapture(event)) {\\n            return true;\\n        }\\n\\n        this.mouseDelayMet = !this.options.delay;\\n        if (!this.mouseDelayMet) {\\n            this._mouseDelayTimer = setTimeout(function() {\\n                that.mouseDelayMet = true;\\n            }, this.options.delay);\\n        }\\n\\n        if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) {\\n            this._mouseStarted = (this._mouseStart(event) !== false);\\n            if (!this._mouseStarted) {\\n                event.preventDefault();\\n                return true;\\n            }\\n        }\\n\\n        // Click event may never have fired (Gecko & Opera)\\n        if (true === $.data(event.target, this.widgetName + \\\".preventClickEvent\\\")) {\\n            $.removeData(event.target, this.widgetName + \\\".preventClickEvent\\\");\\n        }\\n\\n        // these delegates are required to keep context\\n        this._mouseMoveDelegate = function(event) {\\n            return that._mouseMove(event);\\n        };\\n        this._mouseUpDelegate = function(event) {\\n            return that._mouseUp(event);\\n        };\\n        $(document)\\n            .bind(\\\"mousemove.\\\"+this.widgetName, this._mouseMoveDelegate)\\n            .bind(\\\"mouseup.\\\"+this.widgetName, this._mouseUpDelegate);\\n\\n        event.preventDefault();\\n\\n        mouseHandled = true;\\n        return true;\\n    },\\n\\n    _mouseMove: function(event) {\\n        // IE mouseup check - mouseup happened when mouse was out of window\\n        if ($.ui.ie && ( !document.documentMode || document.documentMode < 9 ) && !event.button) {\\n            return this._mouseUp(event);\\n        }\\n\\n        if (this._mouseStarted) {\\n            this._mouseDrag(event);\\n            return event.preventDefault();\\n        }\\n\\n        if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) {\\n            this._mouseStarted =\\n                (this._mouseStart(this._mouseDownEvent, event) !== false);\\n            (this._mouseStarted ? this._mouseDrag(event) : this._mouseUp(event));\\n        }\\n\\n        return !this._mouseStarted;\\n    },\\n\\n    _mouseUp: function(event) {\\n        $(document)\\n            .unbind(\\\"mousemove.\\\"+this.widgetName, this._mouseMoveDelegate)\\n            .unbind(\\\"mouseup.\\\"+this.widgetName, this._mouseUpDelegate);\\n\\n        if (this._mouseStarted) {\\n            this._mouseStarted = false;\\n\\n            if (event.target === this._mouseDownEvent.target) {\\n                $.data(event.target, this.widgetName + \\\".preventClickEvent\\\", true);\\n            }\\n\\n            this._mouseStop(event);\\n        }\\n\\n        return false;\\n    },\\n\\n    _mouseDistanceMet: function(event) {\\n        return (Math.max(\\n                Math.abs(this._mouseDownEvent.pageX - event.pageX),\\n                Math.abs(this._mouseDownEvent.pageY - event.pageY)\\n            ) >= this.options.distance\\n        );\\n    },\\n\\n    _mouseDelayMet: function(/* event */) {\\n        return this.mouseDelayMet;\\n    },\\n\\n    // These are placeholder methods, to be overriden by extending plugin\\n    _mouseStart: function(/* event */) {},\\n    _mouseDrag: function(/* event */) {},\\n    _mouseStop: function(/* event */) {},\\n    _mouseCapture: function(/* event */) { return true; }\\n});\\n\\n})(jQuery);\\n(function( $, undefined ) {\\n\\n$.ui = $.ui || {};\\n\\nvar cachedScrollbarWidth,\\n    max = Math.max,\\n    abs = Math.abs,\\n    round = Math.round,\\n    rhorizontal = /left|center|right/,\\n    rvertical = /top|center|bottom/,\\n    roffset = /[\\\\+\\\\-]\\\\d+(\\\\.[\\\\d]+)?%?/,\\n    rposition = /^\\\\w+/,\\n    rpercent = /%$/,\\n    _position = $.fn.position;\\n\\nfunction getOffsets( offsets, width, height ) {\\n    return [\\n        parseFloat( offsets[ 0 ] ) * ( rpercent.test( offsets[ 0 ] ) ? width / 100 : 1 ),\\n        parseFloat( offsets[ 1 ] ) * ( rpercent.test( offsets[ 1 ] ) ? height / 100 : 1 )\\n    ];\\n}\\n\\nfunction parseCss( element, property ) {\\n    return parseInt( $.css( element, property ), 10 ) || 0;\\n}\\n\\nfunction getDimensions( elem ) {\\n    var raw = elem[0];\\n    if ( raw.nodeType === 9 ) {\\n        return {\\n            width: elem.width(),\\n            height: elem.height(),\\n            offset: { top: 0, left: 0 }\\n        };\\n    }\\n    if ( $.isWindow( raw ) ) {\\n        return {\\n            width: elem.width(),\\n            height: elem.height(),\\n            offset: { top: elem.scrollTop(), left: elem.scrollLeft() }\\n        };\\n    }\\n    if ( raw.preventDefault ) {\\n        return {\\n            width: 0,\\n            height: 0,\\n            offset: { top: raw.pageY, left: raw.pageX }\\n        };\\n    }\\n    return {\\n        width: elem.outerWidth(),\\n        height: elem.outerHeight(),\\n        offset: elem.offset()\\n    };\\n}\\n\\n$.position = {\\n    scrollbarWidth: function() {\\n        if ( cachedScrollbarWidth !== undefined ) {\\n            return cachedScrollbarWidth;\\n        }\\n        var w1, w2,\\n            div = $( \\\"<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>\\\" ),\\n            innerDiv = div.children()[0];\\n\\n        $( \\\"body\\\" ).append( div );\\n        w1 = innerDiv.offsetWidth;\\n        div.css( \\\"overflow\\\", \\\"scroll\\\" );\\n\\n        w2 = innerDiv.offsetWidth;\\n\\n        if ( w1 === w2 ) {\\n            w2 = div[0].clientWidth;\\n        }\\n\\n        div.remove();\\n\\n        return (cachedScrollbarWidth = w1 - w2);\\n    },\\n    getScrollInfo: function( within ) {\\n        var overflowX = within.isWindow || within.isDocument ? \\\"\\\" :\\n                within.element.css( \\\"overflow-x\\\" ),\\n            overflowY = within.isWindow || within.isDocument ? \\\"\\\" :\\n                within.element.css( \\\"overflow-y\\\" ),\\n            hasOverflowX = overflowX === \\\"scroll\\\" ||\\n                ( overflowX === \\\"auto\\\" && within.width < within.element[0].scrollWidth ),\\n            hasOverflowY = overflowY === \\\"scroll\\\" ||\\n                ( overflowY === \\\"auto\\\" && within.height < within.element[0].scrollHeight );\\n        return {\\n            width: hasOverflowY ? $.position.scrollbarWidth() : 0,\\n            height: hasOverflowX ? $.position.scrollbarWidth() : 0\\n        };\\n    },\\n    getWithinInfo: function( element ) {\\n        var withinElement = $( element || window ),\\n            isWindow = $.isWindow( withinElement[0] ),\\n            isDocument = !!withinElement[ 0 ] && withinElement[ 0 ].nodeType === 9;\\n        return {\\n            element: withinElement,\\n            isWindow: isWindow,\\n            isDocument: isDocument,\\n            offset: withinElement.offset() || { left: 0, top: 0 },\\n            scrollLeft: withinElement.scrollLeft(),\\n            scrollTop: withinElement.scrollTop(),\\n            width: isWindow ? withinElement.width() : withinElement.outerWidth(),\\n            height: isWindow ? withinElement.height() : withinElement.outerHeight()\\n        };\\n    }\\n};\\n\\n$.fn.position = function( options ) {\\n    if ( !options || !options.of ) {\\n        return _position.apply( this, arguments );\\n    }\\n\\n    // make a copy, we don't want to modify arguments\\n    options = $.extend( {}, options );\\n\\n    var atOffset, targetWidth, targetHeight, targetOffset, basePosition, dimensions,\\n        target = $( options.of ),\\n        within = $.position.getWithinInfo( options.within ),\\n        scrollInfo = $.position.getScrollInfo( within ),\\n        collision = ( options.collision || \\\"flip\\\" ).split( \\\" \\\" ),\\n        offsets = {};\\n\\n    dimensions = getDimensions( target );\\n    if ( target[0].preventDefault ) {\\n        // force left top to allow flipping\\n        options.at = \\\"left top\\\";\\n    }\\n    targetWidth = dimensions.width;\\n    targetHeight = dimensions.height;\\n    targetOffset = dimensions.offset;\\n    // clone to reuse original targetOffset later\\n    basePosition = $.extend( {}, targetOffset );\\n\\n    // force my and at to have valid horizontal and vertical positions\\n    // if a value is missing or invalid, it will be converted to center\\n    $.each( [ \\\"my\\\", \\\"at\\\" ], function() {\\n        var pos = ( options[ this ] || \\\"\\\" ).split( \\\" \\\" ),\\n            horizontalOffset,\\n            verticalOffset;\\n\\n        if ( pos.length === 1) {\\n            pos = rhorizontal.test( pos[ 0 ] ) ?\\n                pos.concat( [ \\\"center\\\" ] ) :\\n                rvertical.test( pos[ 0 ] ) ?\\n                    [ \\\"center\\\" ].concat( pos ) :\\n                    [ \\\"center\\\", \\\"center\\\" ];\\n        }\\n        pos[ 0 ] = rhorizontal.test( pos[ 0 ] ) ? pos[ 0 ] : \\\"center\\\";\\n        pos[ 1 ] = rvertical.test( pos[ 1 ] ) ? pos[ 1 ] : \\\"center\\\";\\n\\n        // calculate offsets\\n        horizontalOffset = roffset.exec( pos[ 0 ] );\\n        verticalOffset = roffset.exec( pos[ 1 ] );\\n        offsets[ this ] = [\\n            horizontalOffset ? horizontalOffset[ 0 ] : 0,\\n            verticalOffset ? verticalOffset[ 0 ] : 0\\n        ];\\n\\n        // reduce to just the positions without the offsets\\n        options[ this ] = [\\n            rposition.exec( pos[ 0 ] )[ 0 ],\\n            rposition.exec( pos[ 1 ] )[ 0 ]\\n        ];\\n    });\\n\\n    // normalize collision option\\n    if ( collision.length === 1 ) {\\n        collision[ 1 ] = collision[ 0 ];\\n    }\\n\\n    if ( options.at[ 0 ] === \\\"right\\\" ) {\\n        basePosition.left += targetWidth;\\n    } else if ( options.at[ 0 ] === \\\"center\\\" ) {\\n        basePosition.left += targetWidth / 2;\\n    }\\n\\n    if ( options.at[ 1 ] === \\\"bottom\\\" ) {\\n        basePosition.top += targetHeight;\\n    } else if ( options.at[ 1 ] === \\\"center\\\" ) {\\n        basePosition.top += targetHeight / 2;\\n    }\\n\\n    atOffset = getOffsets( offsets.at, targetWidth, targetHeight );\\n    basePosition.left += atOffset[ 0 ];\\n    basePosition.top += atOffset[ 1 ];\\n\\n    return this.each(function() {\\n        var collisionPosition, using,\\n            elem = $( this ),\\n            elemWidth = elem.outerWidth(),\\n            elemHeight = elem.outerHeight(),\\n            marginLeft = parseCss( this, \\\"marginLeft\\\" ),\\n            marginTop = parseCss( this, \\\"marginTop\\\" ),\\n            collisionWidth = elemWidth + marginLeft + parseCss( this, \\\"marginRight\\\" ) + scrollInfo.width,\\n            collisionHeight = elemHeight + marginTop + parseCss( this, \\\"marginBottom\\\" ) + scrollInfo.height,\\n            position = $.extend( {}, basePosition ),\\n            myOffset = getOffsets( offsets.my, elem.outerWidth(), elem.outerHeight() );\\n\\n        if ( options.my[ 0 ] === \\\"right\\\" ) {\\n            position.left -= elemWidth;\\n        } else if ( options.my[ 0 ] === \\\"center\\\" ) {\\n            position.left -= elemWidth / 2;\\n        }\\n\\n        if ( options.my[ 1 ] === \\\"bottom\\\" ) {\\n            position.top -= elemHeight;\\n        } else if ( options.my[ 1 ] === \\\"center\\\" ) {\\n            position.top -= elemHeight / 2;\\n        }\\n\\n        position.left += myOffset[ 0 ];\\n        position.top += myOffset[ 1 ];\\n\\n        // if the browser doesn't support fractions, then round for consistent results\\n        if ( !$.support.offsetFractions ) {\\n            position.left = round( position.left );\\n            position.top = round( position.top );\\n        }\\n\\n        collisionPosition = {\\n            marginLeft: marginLeft,\\n            marginTop: marginTop\\n        };\\n\\n        $.each( [ \\\"left\\\", \\\"top\\\" ], function( i, dir ) {\\n            if ( $.ui.position[ collision[ i ] ] ) {\\n                $.ui.position[ collision[ i ] ][ dir ]( position, {\\n                    targetWidth: targetWidth,\\n                    targetHeight: targetHeight,\\n                    elemWidth: elemWidth,\\n                    elemHeight: elemHeight,\\n                    collisionPosition: collisionPosition,\\n                    collisionWidth: collisionWidth,\\n                    collisionHeight: collisionHeight,\\n                    offset: [ atOffset[ 0 ] + myOffset[ 0 ], atOffset [ 1 ] + myOffset[ 1 ] ],\\n                    my: options.my,\\n                    at: options.at,\\n                    within: within,\\n                    elem : elem\\n                });\\n            }\\n        });\\n\\n        if ( options.using ) {\\n            // adds feedback as second argument to using callback, if present\\n            using = function( props ) {\\n                var left = targetOffset.left - position.left,\\n                    right = left + targetWidth - elemWidth,\\n                    top = targetOffset.top - position.top,\\n                    bottom = top + targetHeight - elemHeight,\\n                    feedback = {\\n                        target: {\\n                            element: target,\\n                            left: targetOffset.left,\\n                            top: targetOffset.top,\\n                            width: targetWidth,\\n                            height: targetHeight\\n                        },\\n                        element: {\\n                            element: elem,\\n                            left: position.left,\\n                            top: position.top,\\n                            width: elemWidth,\\n                            height: elemHeight\\n                        },\\n                        horizontal: right < 0 ? \\\"left\\\" : left > 0 ? \\\"right\\\" : \\\"center\\\",\\n                        vertical: bottom < 0 ? \\\"top\\\" : top > 0 ? \\\"bottom\\\" : \\\"middle\\\"\\n                    };\\n                if ( targetWidth < elemWidth && abs( left + right ) < targetWidth ) {\\n                    feedback.horizontal = \\\"center\\\";\\n                }\\n                if ( targetHeight < elemHeight && abs( top + bottom ) < targetHeight ) {\\n                    feedback.vertical = \\\"middle\\\";\\n                }\\n                if ( max( abs( left ), abs( right ) ) > max( abs( top ), abs( bottom ) ) ) {\\n                    feedback.important = \\\"horizontal\\\";\\n                } else {\\n                    feedback.important = \\\"vertical\\\";\\n                }\\n                options.using.call( this, props, feedback );\\n            };\\n        }\\n\\n        elem.offset( $.extend( position, { using: using } ) );\\n    });\\n};\\n\\n$.ui.position = {\\n    fit: {\\n        left: function( position, data ) {\\n            var within = data.within,\\n                withinOffset = within.isWindow ? within.scrollLeft : within.offset.left,\\n                outerWidth = within.width,\\n                collisionPosLeft = position.left - data.collisionPosition.marginLeft,\\n                overLeft = withinOffset - collisionPosLeft,\\n                overRight = collisionPosLeft + data.collisionWidth - outerWidth - withinOffset,\\n                newOverRight;\\n\\n            // element is wider than within\\n            if ( data.collisionWidth > outerWidth ) {\\n                // element is initially over the left side of within\\n                if ( overLeft > 0 && overRight <= 0 ) {\\n                    newOverRight = position.left + overLeft + data.collisionWidth - outerWidth - withinOffset;\\n                    position.left += overLeft - newOverRight;\\n                // element is initially over right side of within\\n                } else if ( overRight > 0 && overLeft <= 0 ) {\\n                    position.left = withinOffset;\\n                // element is initially over both left and right sides of within\\n                } else {\\n                    if ( overLeft > overRight ) {\\n                        position.left = withinOffset + outerWidth - data.collisionWidth;\\n                    } else {\\n                        position.left = withinOffset;\\n                    }\\n                }\\n            // too far left -> align with left edge\\n            } else if ( overLeft > 0 ) {\\n                position.left += overLeft;\\n            // too far right -> align with right edge\\n            } else if ( overRight > 0 ) {\\n                position.left -= overRight;\\n            // adjust based on position and margin\\n            } else {\\n                position.left = max( position.left - collisionPosLeft, position.left );\\n            }\\n        },\\n        top: function( position, data ) {\\n            var within = data.within,\\n                withinOffset = within.isWindow ? within.scrollTop : within.offset.top,\\n                outerHeight = data.within.height,\\n                collisionPosTop = position.top - data.collisionPosition.marginTop,\\n                overTop = withinOffset - collisionPosTop,\\n                overBottom = collisionPosTop + data.collisionHeight - outerHeight - withinOffset,\\n                newOverBottom;\\n\\n            // element is taller than within\\n            if ( data.collisionHeight > outerHeight ) {\\n                // element is initially over the top of within\\n                if ( overTop > 0 && overBottom <= 0 ) {\\n                    newOverBottom = position.top + overTop + data.collisionHeight - outerHeight - withinOffset;\\n                    position.top += overTop - newOverBottom;\\n                // element is initially over bottom of within\\n                } else if ( overBottom > 0 && overTop <= 0 ) {\\n                    position.top = withinOffset;\\n                // element is initially over both top and bottom of within\\n                } else {\\n                    if ( overTop > overBottom ) {\\n                        position.top = withinOffset + outerHeight - data.collisionHeight;\\n                    } else {\\n                        position.top = withinOffset;\\n                    }\\n                }\\n            // too far up -> align with top\\n            } else if ( overTop > 0 ) {\\n                position.top += overTop;\\n            // too far down -> align with bottom edge\\n            } else if ( overBottom > 0 ) {\\n                position.top -= overBottom;\\n            // adjust based on position and margin\\n            } else {\\n                position.top = max( position.top - collisionPosTop, position.top );\\n            }\\n        }\\n    },\\n    flip: {\\n        left: function( position, data ) {\\n            var within = data.within,\\n                withinOffset = within.offset.left + within.scrollLeft,\\n                outerWidth = within.width,\\n                offsetLeft = within.isWindow ? within.scrollLeft : within.offset.left,\\n                collisionPosLeft = position.left - data.collisionPosition.marginLeft,\\n                overLeft = collisionPosLeft - offsetLeft,\\n                overRight = collisionPosLeft + data.collisionWidth - outerWidth - offsetLeft,\\n                myOffset = data.my[ 0 ] === \\\"left\\\" ?\\n                    -data.elemWidth :\\n                    data.my[ 0 ] === \\\"right\\\" ?\\n                        data.elemWidth :\\n                        0,\\n                atOffset = data.at[ 0 ] === \\\"left\\\" ?\\n                    data.targetWidth :\\n                    data.at[ 0 ] === \\\"right\\\" ?\\n                        -data.targetWidth :\\n                        0,\\n                offset = -2 * data.offset[ 0 ],\\n                newOverRight,\\n                newOverLeft;\\n\\n            if ( overLeft < 0 ) {\\n                newOverRight = position.left + myOffset + atOffset + offset + data.collisionWidth - outerWidth - withinOffset;\\n                if ( newOverRight < 0 || newOverRight < abs( overLeft ) ) {\\n                    position.left += myOffset + atOffset + offset;\\n                }\\n            }\\n            else if ( overRight > 0 ) {\\n                newOverLeft = position.left - data.collisionPosition.marginLeft + myOffset + atOffset + offset - offsetLeft;\\n                if ( newOverLeft > 0 || abs( newOverLeft ) < overRight ) {\\n                    position.left += myOffset + atOffset + offset;\\n                }\\n            }\\n        },\\n        top: function( position, data ) {\\n            var within = data.within,\\n                withinOffset = within.offset.top + within.scrollTop,\\n                outerHeight = within.height,\\n                offsetTop = within.isWindow ? within.scrollTop : within.offset.top,\\n                collisionPosTop = position.top - data.collisionPosition.marginTop,\\n                overTop = collisionPosTop - offsetTop,\\n                overBottom = collisionPosTop + data.collisionHeight - outerHeight - offsetTop,\\n                top = data.my[ 1 ] === \\\"top\\\",\\n                myOffset = top ?\\n                    -data.elemHeight :\\n                    data.my[ 1 ] === \\\"bottom\\\" ?\\n                        data.elemHeight :\\n                        0,\\n                atOffset = data.at[ 1 ] === \\\"top\\\" ?\\n                    data.targetHeight :\\n                    data.at[ 1 ] === \\\"bottom\\\" ?\\n                        -data.targetHeight :\\n                        0,\\n                offset = -2 * data.offset[ 1 ],\\n                newOverTop,\\n                newOverBottom;\\n            if ( overTop < 0 ) {\\n                newOverBottom = position.top + myOffset + atOffset + offset + data.collisionHeight - outerHeight - withinOffset;\\n                if ( ( position.top + myOffset + atOffset + offset) > overTop && ( newOverBottom < 0 || newOverBottom < abs( overTop ) ) ) {\\n                    position.top += myOffset + atOffset + offset;\\n                }\\n            }\\n            else if ( overBottom > 0 ) {\\n                newOverTop = position.top - data.collisionPosition.marginTop + myOffset + atOffset + offset - offsetTop;\\n                if ( ( position.top + myOffset + atOffset + offset) > overBottom && ( newOverTop > 0 || abs( newOverTop ) < overBottom ) ) {\\n                    position.top += myOffset + atOffset + offset;\\n                }\\n            }\\n        }\\n    },\\n    flipfit: {\\n        left: function() {\\n            $.ui.position.flip.left.apply( this, arguments );\\n            $.ui.position.fit.left.apply( this, arguments );\\n        },\\n        top: function() {\\n            $.ui.position.flip.top.apply( this, arguments );\\n            $.ui.position.fit.top.apply( this, arguments );\\n        }\\n    }\\n};\\n\\n// fraction support test\\n(function () {\\n    var testElement, testElementParent, testElementStyle, offsetLeft, i,\\n        body = document.getElementsByTagName( \\\"body\\\" )[ 0 ],\\n        div = document.createElement( \\\"div\\\" );\\n\\n    //Create a \\\"fake body\\\" for testing based on method used in jQuery.support\\n    testElement = document.createElement( body ? \\\"div\\\" : \\\"body\\\" );\\n    testElementStyle = {\\n        visibility: \\\"hidden\\\",\\n        width: 0,\\n        height: 0,\\n        border: 0,\\n        margin: 0,\\n        background: \\\"none\\\"\\n    };\\n    if ( body ) {\\n        $.extend( testElementStyle, {\\n            position: \\\"absolute\\\",\\n            left: \\\"-1000px\\\",\\n            top: \\\"-1000px\\\"\\n        });\\n    }\\n    for ( i in testElementStyle ) {\\n        testElement.style[ i ] = testElementStyle[ i ];\\n    }\\n    testElement.appendChild( div );\\n    testElementParent = body || document.documentElement;\\n    testElementParent.insertBefore( testElement, testElementParent.firstChild );\\n\\n    div.style.cssText = \\\"position: absolute; left: 10.7432222px;\\\";\\n\\n    offsetLeft = $( div ).offset().left;\\n    $.support.offsetFractions = offsetLeft > 10 && offsetLeft < 11;\\n\\n    testElement.innerHTML = \\\"\\\";\\n    testElementParent.removeChild( testElement );\\n})();\\n\\n}( jQuery ) );\\n(function( $, undefined ) {\\n\\nvar uid = 0,\\n    hideProps = {},\\n    showProps = {};\\n\\nhideProps.height = hideProps.paddingTop = hideProps.paddingBottom =\\n    hideProps.borderTopWidth = hideProps.borderBottomWidth = \\\"hide\\\";\\nshowProps.height = showProps.paddingTop = showProps.paddingBottom =\\n    showProps.borderTopWidth = showProps.borderBottomWidth = \\\"show\\\";\\n\\n$.widget( \\\"ui.accordion\\\", {\\n    version: \\\"1.10.4\\\",\\n    options: {\\n        active: 0,\\n        animate: {},\\n        collapsible: false,\\n        event: \\\"click\\\",\\n        header: \\\"> li > :first-child,> :not(li):even\\\",\\n        heightStyle: \\\"auto\\\",\\n        icons: {\\n            activeHeader: \\\"ui-icon-triangle-1-s\\\",\\n            header: \\\"ui-icon-triangle-1-e\\\"\\n        },\\n\\n        // callbacks\\n        activate: null,\\n        beforeActivate: null\\n    },\\n\\n    _create: function() {\\n        var options = this.options;\\n        this.prevShow = this.prevHide = $();\\n        this.element.addClass( \\\"ui-accordion ui-widget ui-helper-reset\\\" )\\n            // ARIA\\n            .attr( \\\"role\\\", \\\"tablist\\\" );\\n\\n        // don't allow collapsible: false and active: false / null\\n        if ( !options.collapsible && (options.active === false || options.active == null) ) {\\n            options.active = 0;\\n        }\\n\\n        this._processPanels();\\n        // handle negative values\\n        if ( options.active < 0 ) {\\n            options.active += this.headers.length;\\n        }\\n        this._refresh();\\n    },\\n\\n    _getCreateEventData: function() {\\n        return {\\n            header: this.active,\\n            panel: !this.active.length ? $() : this.active.next(),\\n            content: !this.active.length ? $() : this.active.next()\\n        };\\n    },\\n\\n    _createIcons: function() {\\n        var icons = this.options.icons;\\n        if ( icons ) {\\n            $( \\\"<span>\\\" )\\n                .addClass( \\\"ui-accordion-header-icon ui-icon \\\" + icons.header )\\n                .prependTo( this.headers );\\n            this.active.children( \\\".ui-accordion-header-icon\\\" )\\n                .removeClass( icons.header )\\n                .addClass( icons.activeHeader );\\n            this.headers.addClass( \\\"ui-accordion-icons\\\" );\\n        }\\n    },\\n\\n    _destroyIcons: function() {\\n        this.headers\\n            .removeClass( \\\"ui-accordion-icons\\\" )\\n            .children( \\\".ui-accordion-header-icon\\\" )\\n                .remove();\\n    },\\n\\n    _destroy: function() {\\n        var contents;\\n\\n        // clean up main element\\n        this.element\\n            .removeClass( \\\"ui-accordion ui-widget ui-helper-reset\\\" )\\n            .removeAttr( \\\"role\\\" );\\n\\n        // clean up headers\\n        this.headers\\n            .removeClass( \\\"ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top\\\" )\\n            .removeAttr( \\\"role\\\" )\\n            .removeAttr( \\\"aria-expanded\\\" )\\n            .removeAttr( \\\"aria-selected\\\" )\\n            .removeAttr( \\\"aria-controls\\\" )\\n            .removeAttr( \\\"tabIndex\\\" )\\n            .each(function() {\\n                if ( /^ui-accordion/.test( this.id ) ) {\\n                    this.removeAttribute( \\\"id\\\" );\\n                }\\n            });\\n        this._destroyIcons();\\n\\n        // clean up content panels\\n        contents = this.headers.next()\\n            .css( \\\"display\\\", \\\"\\\" )\\n            .removeAttr( \\\"role\\\" )\\n            .removeAttr( \\\"aria-hidden\\\" )\\n            .removeAttr( \\\"aria-labelledby\\\" )\\n            .removeClass( \\\"ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled\\\" )\\n            .each(function() {\\n                if ( /^ui-accordion/.test( this.id ) ) {\\n                    this.removeAttribute( \\\"id\\\" );\\n                }\\n            });\\n        if ( this.options.heightStyle !== \\\"content\\\" ) {\\n            contents.css( \\\"height\\\", \\\"\\\" );\\n        }\\n    },\\n\\n    _setOption: function( key, value ) {\\n        if ( key === \\\"active\\\" ) {\\n            // _activate() will handle invalid values and update this.options\\n            this._activate( value );\\n            return;\\n        }\\n\\n        if ( key === \\\"event\\\" ) {\\n            if ( this.options.event ) {\\n                this._off( this.headers, this.options.event );\\n            }\\n            this._setupEvents( value );\\n        }\\n\\n        this._super( key, value );\\n\\n        // setting collapsible: false while collapsed; open first panel\\n        if ( key === \\\"collapsible\\\" && !value && this.options.active === false ) {\\n            this._activate( 0 );\\n        }\\n\\n        if ( key === \\\"icons\\\" ) {\\n            this._destroyIcons();\\n            if ( value ) {\\n                this._createIcons();\\n            }\\n        }\\n\\n        // #5332 - opacity doesn't cascade to positioned elements in IE\\n        // so we need to add the disabled class to the headers and panels\\n        if ( key === \\\"disabled\\\" ) {\\n            this.headers.add( this.headers.next() )\\n                .toggleClass( \\\"ui-state-disabled\\\", !!value );\\n        }\\n    },\\n\\n    _keydown: function( event ) {\\n        if ( event.altKey || event.ctrlKey ) {\\n            return;\\n        }\\n\\n        var keyCode = $.ui.keyCode,\\n            length = this.headers.length,\\n            currentIndex = this.headers.index( event.target ),\\n            toFocus = false;\\n\\n        switch ( event.keyCode ) {\\n            case keyCode.RIGHT:\\n            case keyCode.DOWN:\\n                toFocus = this.headers[ ( currentIndex + 1 ) % length ];\\n                break;\\n            case keyCode.LEFT:\\n            case keyCode.UP:\\n                toFocus = this.headers[ ( currentIndex - 1 + length ) % length ];\\n                break;\\n            case keyCode.SPACE:\\n            case keyCode.ENTER:\\n                this._eventHandler( event );\\n                break;\\n            case keyCode.HOME:\\n                toFocus = this.headers[ 0 ];\\n                break;\\n            case keyCode.END:\\n                toFocus = this.headers[ length - 1 ];\\n                break;\\n        }\\n\\n        if ( toFocus ) {\\n            $( event.target ).attr( \\\"tabIndex\\\", -1 );\\n            $( toFocus ).attr( \\\"tabIndex\\\", 0 );\\n            toFocus.focus();\\n            event.preventDefault();\\n        }\\n    },\\n\\n    _panelKeyDown : function( event ) {\\n        if ( event.keyCode === $.ui.keyCode.UP && event.ctrlKey ) {\\n            $( event.currentTarget ).prev().focus();\\n        }\\n    },\\n\\n    refresh: function() {\\n        var options = this.options;\\n        this._processPanels();\\n\\n        // was collapsed or no panel\\n        if ( ( options.active === false && options.collapsible === true ) || !this.headers.length ) {\\n            options.active = false;\\n            this.active = $();\\n        // active false only when collapsible is true\\n        } else if ( options.active === false ) {\\n            this._activate( 0 );\\n        // was active, but active panel is gone\\n        } else if ( this.active.length && !$.contains( this.element[ 0 ], this.active[ 0 ] ) ) {\\n            // all remaining panel are disabled\\n            if ( this.headers.length === this.headers.find(\\\".ui-state-disabled\\\").length ) {\\n                options.active = false;\\n                this.active = $();\\n            // activate previous panel\\n            } else {\\n                this._activate( Math.max( 0, options.active - 1 ) );\\n            }\\n        // was active, active panel still exists\\n        } else {\\n            // make sure active index is correct\\n            options.active = this.headers.index( this.active );\\n        }\\n\\n        this._destroyIcons();\\n\\n        this._refresh();\\n    },\\n\\n    _processPanels: function() {\\n        this.headers = this.element.find( this.options.header )\\n            .addClass( \\\"ui-accordion-header ui-helper-reset ui-state-default ui-corner-all\\\" );\\n\\n        this.headers.next()\\n            .addClass( \\\"ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom\\\" )\\n            .filter(\\\":not(.ui-accordion-content-active)\\\")\\n            .hide();\\n    },\\n\\n    _refresh: function() {\\n        var maxHeight,\\n            options = this.options,\\n            heightStyle = options.heightStyle,\\n            parent = this.element.parent(),\\n            accordionId = this.accordionId = \\\"ui-accordion-\\\" +\\n                (this.element.attr( \\\"id\\\" ) || ++uid);\\n\\n        this.active = this._findActive( options.active )\\n            .addClass( \\\"ui-accordion-header-active ui-state-active ui-corner-top\\\" )\\n            .removeClass( \\\"ui-corner-all\\\" );\\n        this.active.next()\\n            .addClass( \\\"ui-accordion-content-active\\\" )\\n            .show();\\n\\n        this.headers\\n            .attr( \\\"role\\\", \\\"tab\\\" )\\n            .each(function( i ) {\\n                var header = $( this ),\\n                    headerId = header.attr( \\\"id\\\" ),\\n                    panel = header.next(),\\n                    panelId = panel.attr( \\\"id\\\" );\\n                if ( !headerId ) {\\n                    headerId = accordionId + \\\"-header-\\\" + i;\\n                    header.attr( \\\"id\\\", headerId );\\n                }\\n                if ( !panelId ) {\\n                    panelId = accordionId + \\\"-panel-\\\" + i;\\n                    panel.attr( \\\"id\\\", panelId );\\n                }\\n                header.attr( \\\"aria-controls\\\", panelId );\\n                panel.attr( \\\"aria-labelledby\\\", headerId );\\n            })\\n            .next()\\n                .attr( \\\"role\\\", \\\"tabpanel\\\" );\\n\\n        this.headers\\n            .not( this.active )\\n            .attr({\\n                \\\"aria-selected\\\": \\\"false\\\",\\n                \\\"aria-expanded\\\": \\\"false\\\",\\n                tabIndex: -1\\n            })\\n            .next()\\n                .attr({\\n                    \\\"aria-hidden\\\": \\\"true\\\"\\n                })\\n                .hide();\\n\\n        // make sure at least one header is in the tab order\\n        if ( !this.active.length ) {\\n            this.headers.eq( 0 ).attr( \\\"tabIndex\\\", 0 );\\n        } else {\\n            this.active.attr({\\n                \\\"aria-selected\\\": \\\"true\\\",\\n                \\\"aria-expanded\\\": \\\"true\\\",\\n                tabIndex: 0\\n            })\\n            .next()\\n                .attr({\\n                    \\\"aria-hidden\\\": \\\"false\\\"\\n                });\\n        }\\n\\n        this._createIcons();\\n\\n        this._setupEvents( options.event );\\n\\n        if ( heightStyle === \\\"fill\\\" ) {\\n            maxHeight = parent.height();\\n            this.element.siblings( \\\":visible\\\" ).each(function() {\\n                var elem = $( this ),\\n                    position = elem.css( \\\"position\\\" );\\n\\n                if ( position === \\\"absolute\\\" || position === \\\"fixed\\\" ) {\\n                    return;\\n                }\\n                maxHeight -= elem.outerHeight( true );\\n            });\\n\\n            this.headers.each(function() {\\n                maxHeight -= $( this ).outerHeight( true );\\n            });\\n\\n            this.headers.next()\\n                .each(function() {\\n                    $( this ).height( Math.max( 0, maxHeight -\\n                        $( this ).innerHeight() + $( this ).height() ) );\\n                })\\n                .css( \\\"overflow\\\", \\\"auto\\\" );\\n        } else if ( heightStyle === \\\"auto\\\" ) {\\n            maxHeight = 0;\\n            this.headers.next()\\n                .each(function() {\\n                    maxHeight = Math.max( maxHeight, $( this ).css( \\\"height\\\", \\\"\\\" ).height() );\\n                })\\n                .height( maxHeight );\\n        }\\n    },\\n\\n    _activate: function( index ) {\\n        var active = this._findActive( index )[ 0 ];\\n\\n        // trying to activate the already active panel\\n        if ( active === this.active[ 0 ] ) {\\n            return;\\n        }\\n\\n        // trying to collapse, simulate a click on the currently active header\\n        active = active || this.active[ 0 ];\\n\\n        this._eventHandler({\\n            target: active,\\n            currentTarget: active,\\n            preventDefault: $.noop\\n        });\\n    },\\n\\n    _findActive: function( selector ) {\\n        return typeof selector === \\\"number\\\" ? this.headers.eq( selector ) : $();\\n    },\\n\\n    _setupEvents: function( event ) {\\n        var events = {\\n            keydown: \\\"_keydown\\\"\\n        };\\n        if ( event ) {\\n            $.each( event.split(\\\" \\\"), function( index, eventName ) {\\n                events[ eventName ] = \\\"_eventHandler\\\";\\n            });\\n        }\\n\\n        this._off( this.headers.add( this.headers.next() ) );\\n        this._on( this.headers, events );\\n        this._on( this.headers.next(), { keydown: \\\"_panelKeyDown\\\" });\\n        this._hoverable( this.headers );\\n        this._focusable( this.headers );\\n    },\\n\\n    _eventHandler: function( event ) {\\n        var options = this.options,\\n            active = this.active,\\n            clicked = $( event.currentTarget ),\\n            clickedIsActive = clicked[ 0 ] === active[ 0 ],\\n            collapsing = clickedIsActive && options.collapsible,\\n            toShow = collapsing ? $() : clicked.next(),\\n            toHide = active.next(),\\n            eventData = {\\n                oldHeader: active,\\n                oldPanel: toHide,\\n                newHeader: collapsing ? $() : clicked,\\n                newPanel: toShow\\n            };\\n\\n        event.preventDefault();\\n\\n        if (\\n                // click on active header, but not collapsible\\n                ( clickedIsActive && !options.collapsible ) ||\\n                // allow canceling activation\\n                ( this._trigger( \\\"beforeActivate\\\", event, eventData ) === false ) ) {\\n            return;\\n        }\\n\\n        options.active = collapsing ? false : this.headers.index( clicked );\\n\\n        // when the call to ._toggle() comes after the class changes\\n        // it causes a very odd bug in IE 8 (see #6720)\\n        this.active = clickedIsActive ? $() : clicked;\\n        this._toggle( eventData );\\n\\n        // switch classes\\n        // corner classes on the previously active header stay after the animation\\n        active.removeClass( \\\"ui-accordion-header-active ui-state-active\\\" );\\n        if ( options.icons ) {\\n            active.children( \\\".ui-accordion-header-icon\\\" )\\n                .removeClass( options.icons.activeHeader )\\n                .addClass( options.icons.header );\\n        }\\n\\n        if ( !clickedIsActive ) {\\n            clicked\\n                .removeClass( \\\"ui-corner-all\\\" )\\n                .addClass( \\\"ui-accordion-header-active ui-state-active ui-corner-top\\\" );\\n            if ( options.icons ) {\\n                clicked.children( \\\".ui-accordion-header-icon\\\" )\\n                    .removeClass( options.icons.header )\\n                    .addClass( options.icons.activeHeader );\\n            }\\n\\n            clicked\\n                .next()\\n                .addClass( \\\"ui-accordion-content-active\\\" );\\n        }\\n    },\\n\\n    _toggle: function( data ) {\\n        var toShow = data.newPanel,\\n            toHide = this.prevShow.length ? this.prevShow : data.oldPanel;\\n\\n        // handle activating a panel during the animation for another activation\\n        this.prevShow.add( this.prevHide ).stop( true, true );\\n        this.prevShow = toShow;\\n        this.prevHide = toHide;\\n\\n        if ( this.options.animate ) {\\n            this._animate( toShow, toHide, data );\\n        } else {\\n            toHide.hide();\\n            toShow.show();\\n            this._toggleComplete( data );\\n        }\\n\\n        toHide.attr({\\n            \\\"aria-hidden\\\": \\\"true\\\"\\n        });\\n        toHide.prev().attr( \\\"aria-selected\\\", \\\"false\\\" );\\n        // if we're switching panels, remove the old header from the tab order\\n        // if we're opening from collapsed state, remove the previous header from the tab order\\n        // if we're collapsing, then keep the collapsing header in the tab order\\n        if ( toShow.length && toHide.length ) {\\n            toHide.prev().attr({\\n                \\\"tabIndex\\\": -1,\\n                \\\"aria-expanded\\\": \\\"false\\\"\\n            });\\n        } else if ( toShow.length ) {\\n            this.headers.filter(function() {\\n                return $( this ).attr( \\\"tabIndex\\\" ) === 0;\\n            })\\n            .attr( \\\"tabIndex\\\", -1 );\\n        }\\n\\n        toShow\\n            .attr( \\\"aria-hidden\\\", \\\"false\\\" )\\n            .prev()\\n                .attr({\\n                    \\\"aria-selected\\\": \\\"true\\\",\\n                    tabIndex: 0,\\n                    \\\"aria-expanded\\\": \\\"true\\\"\\n                });\\n    },\\n\\n    _animate: function( toShow, toHide, data ) {\\n        var total, easing, duration,\\n            that = this,\\n            adjust = 0,\\n            down = toShow.length &&\\n                ( !toHide.length || ( toShow.index() < toHide.index() ) ),\\n            animate = this.options.animate || {},\\n            options = down && animate.down || animate,\\n            complete = function() {\\n                that._toggleComplete( data );\\n            };\\n\\n        if ( typeof options === \\\"number\\\" ) {\\n            duration = options;\\n        }\\n        if ( typeof options === \\\"string\\\" ) {\\n            easing = options;\\n        }\\n        // fall back from options to animation in case of partial down settings\\n        easing = easing || options.easing || animate.easing;\\n        duration = duration || options.duration || animate.duration;\\n\\n        if ( !toHide.length ) {\\n            return toShow.animate( showProps, duration, easing, complete );\\n        }\\n        if ( !toShow.length ) {\\n            return toHide.animate( hideProps, duration, easing, complete );\\n        }\\n\\n        total = toShow.show().outerHeight();\\n        toHide.animate( hideProps, {\\n            duration: duration,\\n            easing: easing,\\n            step: function( now, fx ) {\\n                fx.now = Math.round( now );\\n            }\\n        });\\n        toShow\\n            .hide()\\n            .animate( showProps, {\\n                duration: duration,\\n                easing: easing,\\n                complete: complete,\\n                step: function( now, fx ) {\\n                    fx.now = Math.round( now );\\n                    if ( fx.prop !== \\\"height\\\" ) {\\n                        adjust += fx.now;\\n                    } else if ( that.options.heightStyle !== \\\"content\\\" ) {\\n                        fx.now = Math.round( total - toHide.outerHeight() - adjust );\\n                        adjust = 0;\\n                    }\\n                }\\n            });\\n    },\\n\\n    _toggleComplete: function( data ) {\\n        var toHide = data.oldPanel;\\n\\n        toHide\\n            .removeClass( \\\"ui-accordion-content-active\\\" )\\n            .prev()\\n                .removeClass( \\\"ui-corner-top\\\" )\\n                .addClass( \\\"ui-corner-all\\\" );\\n\\n        // Work around for rendering bug in IE (#5421)\\n        if ( toHide.length ) {\\n            toHide.parent()[0].className = toHide.parent()[0].className;\\n        }\\n        this._trigger( \\\"activate\\\", null, data );\\n    }\\n});\\n\\n})( jQuery );\\n(function( $, undefined ) {\\n\\n$.widget( \\\"ui.autocomplete\\\", {\\n    version: \\\"1.10.4\\\",\\n    defaultElement: \\\"<input>\\\",\\n    options: {\\n        appendTo: null,\\n        autoFocus: false,\\n        delay: 300,\\n        minLength: 1,\\n        position: {\\n            my: \\\"left top\\\",\\n            at: \\\"left bottom\\\",\\n            collision: \\\"none\\\"\\n        },\\n        source: null,\\n\\n        // callbacks\\n        change: null,\\n        close: null,\\n        focus: null,\\n        open: null,\\n        response: null,\\n        search: null,\\n        select: null\\n    },\\n\\n    requestIndex: 0,\\n    pending: 0,\\n\\n    _create: function() {\\n        // Some browsers only repeat keydown events, not keypress events,\\n        // so we use the suppressKeyPress flag to determine if we've already\\n        // handled the keydown event. #7269\\n        // Unfortunately the code for & in keypress is the same as the up arrow,\\n        // so we use the suppressKeyPressRepeat flag to avoid handling keypress\\n        // events when we know the keydown event was used to modify the\\n        // search term. #7799\\n        var suppressKeyPress, suppressKeyPressRepeat, suppressInput,\\n            nodeName = this.element[0].nodeName.toLowerCase(),\\n            isTextarea = nodeName === \\\"textarea\\\",\\n            isInput = nodeName === \\\"input\\\";\\n\\n        this.isMultiLine =\\n            // Textareas are always multi-line\\n            isTextarea ? true :\\n            // Inputs are always single-line, even if inside a contentEditable element\\n            // IE also treats inputs as contentEditable\\n            isInput ? false :\\n            // All other element types are determined by whether or not they're contentEditable\\n            this.element.prop( \\\"isContentEditable\\\" );\\n\\n        this.valueMethod = this.element[ isTextarea || isInput ? \\\"val\\\" : \\\"text\\\" ];\\n        this.isNewMenu = true;\\n\\n        this.element\\n            .addClass( \\\"ui-autocomplete-input\\\" )\\n            .attr( \\\"autocomplete\\\", \\\"off\\\" );\\n\\n        this._on( this.element, {\\n            keydown: function( event ) {\\n                if ( this.element.prop( \\\"readOnly\\\" ) ) {\\n                    suppressKeyPress = true;\\n                    suppressInput = true;\\n                    suppressKeyPressRepeat = true;\\n                    return;\\n                }\\n\\n                suppressKeyPress = false;\\n                suppressInput = false;\\n                suppressKeyPressRepeat = false;\\n                var keyCode = $.ui.keyCode;\\n                switch( event.keyCode ) {\\n                case keyCode.PAGE_UP:\\n                    suppressKeyPress = true;\\n                    this._move( \\\"previousPage\\\", event );\\n                    break;\\n                case keyCode.PAGE_DOWN:\\n                    suppressKeyPress = true;\\n                    this._move( \\\"nextPage\\\", event );\\n                    break;\\n                case keyCode.UP:\\n                    suppressKeyPress = true;\\n                    this._keyEvent( \\\"previous\\\", event );\\n                    break;\\n                case keyCode.DOWN:\\n                    suppressKeyPress = true;\\n                    this._keyEvent( \\\"next\\\", event );\\n                    break;\\n                case keyCode.ENTER:\\n                case keyCode.NUMPAD_ENTER:\\n                    // when menu is open and has focus\\n                    if ( this.menu.active ) {\\n                        // #6055 - Opera still allows the keypress to occur\\n                        // which causes forms to submit\\n                        suppressKeyPress = true;\\n                        event.preventDefault();\\n                        this.menu.select( event );\\n                    }\\n                    break;\\n                case keyCode.TAB:\\n                    if ( this.menu.active ) {\\n                        this.menu.select( event );\\n                    }\\n                    break;\\n                case keyCode.ESCAPE:\\n                    if ( this.menu.element.is( \\\":visible\\\" ) ) {\\n                        this._value( this.term );\\n                        this.close( event );\\n                        // Different browsers have different default behavior for escape\\n                        // Single press can mean undo or clear\\n                        // Double press in IE means clear the whole form\\n                        event.preventDefault();\\n                    }\\n                    break;\\n                default:\\n                    suppressKeyPressRepeat = true;\\n                    // search timeout should be triggered before the input value is changed\\n                    this._searchTimeout( event );\\n                    break;\\n                }\\n            },\\n            keypress: function( event ) {\\n                if ( suppressKeyPress ) {\\n                    suppressKeyPress = false;\\n                    if ( !this.isMultiLine || this.menu.element.is( \\\":visible\\\" ) ) {\\n                        event.preventDefault();\\n                    }\\n                    return;\\n                }\\n                if ( suppressKeyPressRepeat ) {\\n                    return;\\n                }\\n\\n                // replicate some key handlers to allow them to repeat in Firefox and Opera\\n                var keyCode = $.ui.keyCode;\\n                switch( event.keyCode ) {\\n                case keyCode.PAGE_UP:\\n                    this._move( \\\"previousPage\\\", event );\\n                    break;\\n                case keyCode.PAGE_DOWN:\\n                    this._move( \\\"nextPage\\\", event );\\n                    break;\\n                case keyCode.UP:\\n                    this._keyEvent( \\\"previous\\\", event );\\n                    break;\\n                case keyCode.DOWN:\\n                    this._keyEvent( \\\"next\\\", event );\\n                    break;\\n                }\\n            },\\n            input: function( event ) {\\n                if ( suppressInput ) {\\n                    suppressInput = false;\\n                    event.preventDefault();\\n                    return;\\n                }\\n                this._searchTimeout( event );\\n            },\\n            focus: function() {\\n                this.selectedItem = null;\\n                this.previous = this._value();\\n            },\\n            blur: function( event ) {\\n                if ( this.cancelBlur ) {\\n                    delete this.cancelBlur;\\n                    return;\\n                }\\n\\n                clearTimeout( this.searching );\\n                this.close( event );\\n                this._change( event );\\n            }\\n        });\\n\\n        this._initSource();\\n        this.menu = $( \\\"<ul>\\\" )\\n            .addClass( \\\"ui-autocomplete ui-front\\\" )\\n            .appendTo( this._appendTo() )\\n            .menu({\\n                // disable ARIA support, the live region takes care of that\\n                role: null\\n            })\\n            .hide()\\n            .data( \\\"ui-menu\\\" );\\n\\n        this._on( this.menu.element, {\\n            mousedown: function( event ) {\\n                // prevent moving focus out of the text field\\n                event.preventDefault();\\n\\n                // IE doesn't prevent moving focus even with event.preventDefault()\\n                // so we set a flag to know when we should ignore the blur event\\n                this.cancelBlur = true;\\n                this._delay(function() {\\n                    delete this.cancelBlur;\\n                });\\n\\n                // clicking on the scrollbar causes focus to shift to the body\\n                // but we can't detect a mouseup or a click immediately afterward\\n                // so we have to track the next mousedown and close the menu if\\n                // the user clicks somewhere outside of the autocomplete\\n                var menuElement = this.menu.element[ 0 ];\\n                if ( !$( event.target ).closest( \\\".ui-menu-item\\\" ).length ) {\\n                    this._delay(function() {\\n                        var that = this;\\n                        this.document.one( \\\"mousedown\\\", function( event ) {\\n                            if ( event.target !== that.element[ 0 ] &&\\n                                    event.target !== menuElement &&\\n                                    !$.contains( menuElement, event.target ) ) {\\n                                that.close();\\n                            }\\n                        });\\n                    });\\n                }\\n            },\\n            menufocus: function( event, ui ) {\\n                // support: Firefox\\n                // Prevent accidental activation of menu items in Firefox (#7024 #9118)\\n                if ( this.isNewMenu ) {\\n                    this.isNewMenu = false;\\n                    if ( event.originalEvent && /^mouse/.test( event.originalEvent.type ) ) {\\n                        this.menu.blur();\\n\\n                        this.document.one( \\\"mousemove\\\", function() {\\n                            $( event.target ).trigger( event.originalEvent );\\n                        });\\n\\n                        return;\\n                    }\\n                }\\n\\n                var item = ui.item.data( \\\"ui-autocomplete-item\\\" );\\n                if ( false !== this._trigger( \\\"focus\\\", event, { item: item } ) ) {\\n                    // use value to match what will end up in the input, if it was a key event\\n                    if ( event.originalEvent && /^key/.test( event.originalEvent.type ) ) {\\n                        this._value( item.value );\\n                    }\\n                } else {\\n                    // Normally the input is populated with the item's value as the\\n                    // menu is navigated, causing screen readers to notice a change and\\n                    // announce the item. Since the focus event was canceled, this doesn't\\n                    // happen, so we update the live region so that screen readers can\\n                    // still notice the change and announce it.\\n                    this.liveRegion.text( item.value );\\n                }\\n            },\\n            menuselect: function( event, ui ) {\\n                var item = ui.item.data( \\\"ui-autocomplete-item\\\" ),\\n                    previous = this.previous;\\n\\n                // only trigger when focus was lost (click on menu)\\n                if ( this.element[0] !== this.document[0].activeElement ) {\\n                    this.element.focus();\\n                    this.previous = previous;\\n                    // #6109 - IE triggers two focus events and the second\\n                    // is asynchronous, so we need to reset the previous\\n                    // term synchronously and asynchronously :-(\\n                    this._delay(function() {\\n                        this.previous = previous;\\n                        this.selectedItem = item;\\n                    });\\n                }\\n\\n                if ( false !== this._trigger( \\\"select\\\", event, { item: item } ) ) {\\n                    this._value( item.value );\\n                }\\n                // reset the term after the select event\\n                // this allows custom select handling to work properly\\n                this.term = this._value();\\n\\n                this.close( event );\\n                this.selectedItem = item;\\n            }\\n        });\\n\\n        this.liveRegion = $( \\\"<span>\\\", {\\n                role: \\\"status\\\",\\n                \\\"aria-live\\\": \\\"polite\\\"\\n            })\\n            .addClass( \\\"ui-helper-hidden-accessible\\\" )\\n            .insertBefore( this.element );\\n\\n        // turning off autocomplete prevents the browser from remembering the\\n        // value when navigating through history, so we re-enable autocomplete\\n        // if the page is unloaded before the widget is destroyed. #7790\\n        this._on( this.window, {\\n            beforeunload: function() {\\n                this.element.removeAttr( \\\"autocomplete\\\" );\\n            }\\n        });\\n    },\\n\\n    _destroy: function() {\\n        clearTimeout( this.searching );\\n        this.element\\n            .removeClass( \\\"ui-autocomplete-input\\\" )\\n            .removeAttr( \\\"autocomplete\\\" );\\n        this.menu.element.remove();\\n        this.liveRegion.remove();\\n    },\\n\\n    _setOption: function( key, value ) {\\n        this._super( key, value );\\n        if ( key === \\\"source\\\" ) {\\n            this._initSource();\\n        }\\n        if ( key === \\\"appendTo\\\" ) {\\n            this.menu.element.appendTo( this._appendTo() );\\n        }\\n        if ( key === \\\"disabled\\\" && value && this.xhr ) {\\n            this.xhr.abort();\\n        }\\n    },\\n\\n    _appendTo: function() {\\n        var element = this.options.appendTo;\\n\\n        if ( element ) {\\n            element = element.jquery || element.nodeType ?\\n                $( element ) :\\n                this.document.find( element ).eq( 0 );\\n        }\\n\\n        if ( !element ) {\\n            element = this.element.closest( \\\".ui-front\\\" );\\n        }\\n\\n        if ( !element.length ) {\\n            element = this.document[0].body;\\n        }\\n\\n        return element;\\n    },\\n\\n    _initSource: function() {\\n        var array, url,\\n            that = this;\\n        if ( $.isArray(this.options.source) ) {\\n            array = this.options.source;\\n            this.source = function( request, response ) {\\n                response( $.ui.autocomplete.filter( array, request.term ) );\\n            };\\n        } else if ( typeof this.options.source === \\\"string\\\" ) {\\n            url = this.options.source;\\n            this.source = function( request, response ) {\\n                if ( that.xhr ) {\\n                    that.xhr.abort();\\n                }\\n                that.xhr = $.ajax({\\n                    url: url,\\n                    data: request,\\n                    dataType: \\\"json\\\",\\n                    success: function( data ) {\\n                        response( data );\\n                    },\\n                    error: function() {\\n                        response( [] );\\n                    }\\n                });\\n            };\\n        } else {\\n            this.source = this.options.source;\\n        }\\n    },\\n\\n    _searchTimeout: function( event ) {\\n        clearTimeout( this.searching );\\n        this.searching = this._delay(function() {\\n            // only search if the value has changed\\n            if ( this.term !== this._value() ) {\\n                this.selectedItem = null;\\n                this.search( null, event );\\n            }\\n        }, this.options.delay );\\n    },\\n\\n    search: function( value, event ) {\\n        value = value != null ? value : this._value();\\n\\n        // always save the actual value, not the one passed as an argument\\n        this.term = this._value();\\n\\n        if ( value.length < this.options.minLength ) {\\n            return this.close( event );\\n        }\\n\\n        if ( this._trigger( \\\"search\\\", event ) === false ) {\\n            return;\\n        }\\n\\n        return this._search( value );\\n    },\\n\\n    _search: function( value ) {\\n        this.pending++;\\n        this.element.addClass( \\\"ui-autocomplete-loading\\\" );\\n        this.cancelSearch = false;\\n\\n        this.source( { term: value }, this._response() );\\n    },\\n\\n    _response: function() {\\n        var index = ++this.requestIndex;\\n\\n        return $.proxy(function( content ) {\\n            if ( index === this.requestIndex ) {\\n                this.__response( content );\\n            }\\n\\n            this.pending--;\\n            if ( !this.pending ) {\\n                this.element.removeClass( \\\"ui-autocomplete-loading\\\" );\\n            }\\n        }, this );\\n    },\\n\\n    __response: function( content ) {\\n        if ( content ) {\\n            content = this._normalize( content );\\n        }\\n        this._trigger( \\\"response\\\", null, { content: content } );\\n        if ( !this.options.disabled && content && content.length && !this.cancelSearch ) {\\n            this._suggest( content );\\n            this._trigger( \\\"open\\\" );\\n        } else {\\n            // use ._close() instead of .close() so we don't cancel future searches\\n            this._close();\\n        }\\n    },\\n\\n    close: function( event ) {\\n        this.cancelSearch = true;\\n        this._close( event );\\n    },\\n\\n    _close: function( event ) {\\n        if ( this.menu.element.is( \\\":visible\\\" ) ) {\\n            this.menu.element.hide();\\n            this.menu.blur();\\n            this.isNewMenu = true;\\n            this._trigger( \\\"close\\\", event );\\n        }\\n    },\\n\\n    _change: function( event ) {\\n        if ( this.previous !== this._value() ) {\\n            this._trigger( \\\"change\\\", event, { item: this.selectedItem } );\\n        }\\n    },\\n\\n    _normalize: function( items ) {\\n        // assume all items have the right format when the first item is complete\\n        if ( items.length && items[0].label && items[0].value ) {\\n            return items;\\n        }\\n        return $.map( items, function( item ) {\\n            if ( typeof item === \\\"string\\\" ) {\\n                return {\\n                    label: item,\\n                    value: item\\n                };\\n            }\\n            return $.extend({\\n                label: item.label || item.value,\\n                value: item.value || item.label\\n            }, item );\\n        });\\n    },\\n\\n    _suggest: function( items ) {\\n        var ul = this.menu.element.empty();\\n        this._renderMenu( ul, items );\\n        this.isNewMenu = true;\\n        this.menu.refresh();\\n\\n        // size and position menu\\n        ul.show();\\n        this._resizeMenu();\\n        ul.position( $.extend({\\n            of: this.element\\n        }, this.options.position ));\\n\\n        if ( this.options.autoFocus ) {\\n            this.menu.next();\\n        }\\n    },\\n\\n    _resizeMenu: function() {\\n        var ul = this.menu.element;\\n        ul.outerWidth( Math.max(\\n            // Firefox wraps long text (possibly a rounding bug)\\n            // so we add 1px to avoid the wrapping (#7513)\\n            ul.width( \\\"\\\" ).outerWidth() + 1,\\n            this.element.outerWidth()\\n        ) );\\n    },\\n\\n    _renderMenu: function( ul, items ) {\\n        var that = this;\\n        $.each( items, function( index, item ) {\\n            that._renderItemData( ul, item );\\n        });\\n    },\\n\\n    _renderItemData: function( ul, item ) {\\n        return this._renderItem( ul, item ).data( \\\"ui-autocomplete-item\\\", item );\\n    },\\n\\n    _renderItem: function( ul, item ) {\\n        return $( \\\"<li>\\\" )\\n            .append( $( \\\"<a>\\\" ).text( item.label ) )\\n            .appendTo( ul );\\n    },\\n\\n    _move: function( direction, event ) {\\n        if ( !this.menu.element.is( \\\":visible\\\" ) ) {\\n            this.search( null, event );\\n            return;\\n        }\\n        if ( this.menu.isFirstItem() && /^previous/.test( direction ) ||\\n                this.menu.isLastItem() && /^next/.test( direction ) ) {\\n            this._value( this.term );\\n            this.menu.blur();\\n            return;\\n        }\\n        this.menu[ direction ]( event );\\n    },\\n\\n    widget: function() {\\n        return this.menu.element;\\n    },\\n\\n    _value: function() {\\n        return this.valueMethod.apply( this.element, arguments );\\n    },\\n\\n    _keyEvent: function( keyEvent, event ) {\\n        if ( !this.isMultiLine || this.menu.element.is( \\\":visible\\\" ) ) {\\n            this._move( keyEvent, event );\\n\\n            // prevents moving cursor to beginning/end of the text field in some browsers\\n            event.preventDefault();\\n        }\\n    }\\n});\\n\\n$.extend( $.ui.autocomplete, {\\n    escapeRegex: function( value ) {\\n        return value.replace(/[\\\\-\\\\[\\\\]{}()*+?.,\\\\\\\\\\\\^$|#\\\\s]/g, \\\"\\\\\\\\$&\\\");\\n    },\\n    filter: function(array, term) {\\n        var matcher = new RegExp( $.ui.autocomplete.escapeRegex(term), \\\"i\\\" );\\n        return $.grep( array, function(value) {\\n            return matcher.test( value.label || value.value || value );\\n        });\\n    }\\n});\\n\\n\\n// live region extension, adding a `messages` option\\n// NOTE: This is an experimental API. We are still investigating\\n// a full solution for string manipulation and internationalization.\\n$.widget( \\\"ui.autocomplete\\\", $.ui.autocomplete, {\\n    options: {\\n        messages: {\\n            noResults: \\\"No search results.\\\",\\n            results: function( amount ) {\\n                return amount + ( amount > 1 ? \\\" results are\\\" : \\\" result is\\\" ) +\\n                    \\\" available, use up and down arrow keys to navigate.\\\";\\n            }\\n        }\\n    },\\n\\n    __response: function( content ) {\\n        var message;\\n        this._superApply( arguments );\\n        if ( this.options.disabled || this.cancelSearch ) {\\n            return;\\n        }\\n        if ( content && content.length ) {\\n            message = this.options.messages.results( content.length );\\n        } else {\\n            message = this.options.messages.noResults;\\n        }\\n        this.liveRegion.text( message );\\n    }\\n});\\n\\n}( jQuery ));\\n(function( $, undefined ) {\\n\\nvar lastActive,\\n    baseClasses = \\\"ui-button ui-widget ui-state-default ui-corner-all\\\",\\n    typeClasses = \\\"ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only\\\",\\n    formResetHandler = function() {\\n        var form = $( this );\\n        setTimeout(function() {\\n            form.find( \\\":ui-button\\\" ).button( \\\"refresh\\\" );\\n        }, 1 );\\n    },\\n    radioGroup = function( radio ) {\\n        var name = radio.name,\\n            form = radio.form,\\n            radios = $( [] );\\n        if ( name ) {\\n            name = name.replace( /'/g, \\\"\\\\\\\\'\\\" );\\n            if ( form ) {\\n                radios = $( form ).find( \\\"[name='\\\" + name + \\\"']\\\" );\\n            } else {\\n                radios = $( \\\"[name='\\\" + name + \\\"']\\\", radio.ownerDocument )\\n                    .filter(function() {\\n                        return !this.form;\\n                    });\\n            }\\n        }\\n        return radios;\\n    };\\n\\n$.widget( \\\"ui.button\\\", {\\n    version: \\\"1.10.4\\\",\\n    defaultElement: \\\"<button>\\\",\\n    options: {\\n        disabled: null,\\n        text: true,\\n        label: null,\\n        icons: {\\n            primary: null,\\n            secondary: null\\n        }\\n    },\\n    _create: function() {\\n        this.element.closest( \\\"form\\\" )\\n            .unbind( \\\"reset\\\" + this.eventNamespace )\\n            .bind( \\\"reset\\\" + this.eventNamespace, formResetHandler );\\n\\n        if ( typeof this.options.disabled !== \\\"boolean\\\" ) {\\n            this.options.disabled = !!this.element.prop( \\\"disabled\\\" );\\n        } else {\\n            this.element.prop( \\\"disabled\\\", this.options.disabled );\\n        }\\n\\n        this._determineButtonType();\\n        this.hasTitle = !!this.buttonElement.attr( \\\"title\\\" );\\n\\n        var that = this,\\n            options = this.options,\\n            toggleButton = this.type === \\\"checkbox\\\" || this.type === \\\"radio\\\",\\n            activeClass = !toggleButton ? \\\"ui-state-active\\\" : \\\"\\\";\\n\\n        if ( options.label === null ) {\\n            options.label = (this.type === \\\"input\\\" ? this.buttonElement.val() : this.buttonElement.html());\\n        }\\n\\n        this._hoverable( this.buttonElement );\\n\\n        this.buttonElement\\n            .addClass( baseClasses )\\n            .attr( \\\"role\\\", \\\"button\\\" )\\n            .bind( \\\"mouseenter\\\" + this.eventNamespace, function() {\\n                if ( options.disabled ) {\\n                    return;\\n                }\\n                if ( this === lastActive ) {\\n                    $( this ).addClass( \\\"ui-state-active\\\" );\\n                }\\n            })\\n            .bind( \\\"mouseleave\\\" + this.eventNamespace, function() {\\n                if ( options.disabled ) {\\n                    return;\\n                }\\n                $( this ).removeClass( activeClass );\\n            })\\n            .bind( \\\"click\\\" + this.eventNamespace, function( event ) {\\n                if ( options.disabled ) {\\n                    event.preventDefault();\\n                    event.stopImmediatePropagation();\\n                }\\n            });\\n\\n        // Can't use _focusable() because the element that receives focus\\n        // and the element that gets the ui-state-focus class are different\\n        this._on({\\n            focus: function() {\\n                this.buttonElement.addClass( \\\"ui-state-focus\\\" );\\n            },\\n            blur: function() {\\n                this.buttonElement.removeClass( \\\"ui-state-focus\\\" );\\n            }\\n        });\\n\\n        if ( toggleButton ) {\\n            this.element.bind( \\\"change\\\" + this.eventNamespace, function() {\\n                that.refresh();\\n            });\\n        }\\n\\n        if ( this.type === \\\"checkbox\\\" ) {\\n            this.buttonElement.bind( \\\"click\\\" + this.eventNamespace, function() {\\n                if ( options.disabled ) {\\n                    return false;\\n                }\\n            });\\n        } else if ( this.type === \\\"radio\\\" ) {\\n            this.buttonElement.bind( \\\"click\\\" + this.eventNamespace, function() {\\n                if ( options.disabled ) {\\n                    return false;\\n                }\\n                $( this ).addClass( \\\"ui-state-active\\\" );\\n                that.buttonElement.attr( \\\"aria-pressed\\\", \\\"true\\\" );\\n\\n                var radio = that.element[ 0 ];\\n                radioGroup( radio )\\n                    .not( radio )\\n                    .map(function() {\\n                        return $( this ).button( \\\"widget\\\" )[ 0 ];\\n                    })\\n                    .removeClass( \\\"ui-state-active\\\" )\\n                    .attr( \\\"aria-pressed\\\", \\\"false\\\" );\\n            });\\n        } else {\\n            this.buttonElement\\n                .bind( \\\"mousedown\\\" + this.eventNamespace, function() {\\n                    if ( options.disabled ) {\\n                        return false;\\n                    }\\n                    $( this ).addClass( \\\"ui-state-active\\\" );\\n                    lastActive = this;\\n                    that.document.one( \\\"mouseup\\\", function() {\\n                        lastActive = null;\\n                    });\\n                })\\n                .bind( \\\"mouseup\\\" + this.eventNamespace, function() {\\n                    if ( options.disabled ) {\\n                        return false;\\n                    }\\n                    $( this ).removeClass( \\\"ui-state-active\\\" );\\n                })\\n                .bind( \\\"keydown\\\" + this.eventNamespace, function(event) {\\n                    if ( options.disabled ) {\\n                        return false;\\n                    }\\n                    if ( event.keyCode === $.ui.keyCode.SPACE || event.keyCode === $.ui.keyCode.ENTER ) {\\n                        $( this ).addClass( \\\"ui-state-active\\\" );\\n                    }\\n                })\\n                // see #8559, we bind to blur here in case the button element loses\\n                // focus between keydown and keyup, it would be left in an \\\"active\\\" state\\n                .bind( \\\"keyup\\\" + this.eventNamespace + \\\" blur\\\" + this.eventNamespace, function() {\\n                    $( this ).removeClass( \\\"ui-state-active\\\" );\\n                });\\n\\n            if ( this.buttonElement.is(\\\"a\\\") ) {\\n                this.buttonElement.keyup(function(event) {\\n                    if ( event.keyCode === $.ui.keyCode.SPACE ) {\\n                        // TODO pass through original event correctly (just as 2nd argument doesn't work)\\n                        $( this ).click();\\n                    }\\n                });\\n            }\\n        }\\n\\n        // TODO: pull out $.Widget's handling for the disabled option into\\n        // $.Widget.prototype._setOptionDisabled so it's easy to proxy and can\\n        // be overridden by individual plugins\\n        this._setOption( \\\"disabled\\\", options.disabled );\\n        this._resetButton();\\n    },\\n\\n    _determineButtonType: function() {\\n        var ancestor, labelSelector, checked;\\n\\n        if ( this.element.is(\\\"[type=checkbox]\\\") ) {\\n            this.type = \\\"checkbox\\\";\\n        } else if ( this.element.is(\\\"[type=radio]\\\") ) {\\n            this.type = \\\"radio\\\";\\n        } else if ( this.element.is(\\\"input\\\") ) {\\n            this.type = \\\"input\\\";\\n        } else {\\n            this.type = \\\"button\\\";\\n        }\\n\\n        if ( this.type === \\\"checkbox\\\" || this.type === \\\"radio\\\" ) {\\n            // we don't search against the document in case the element\\n            // is disconnected from the DOM\\n            ancestor = this.element.parents().last();\\n            labelSelector = \\\"label[for='\\\" + this.element.attr(\\\"id\\\") + \\\"']\\\";\\n            this.buttonElement = ancestor.find( labelSelector );\\n            if ( !this.buttonElement.length ) {\\n                ancestor = ancestor.length ? ancestor.siblings() : this.element.siblings();\\n                this.buttonElement = ancestor.filter( labelSelector );\\n                if ( !this.buttonElement.length ) {\\n                    this.buttonElement = ancestor.find( labelSelector );\\n                }\\n            }\\n            this.element.addClass( \\\"ui-helper-hidden-accessible\\\" );\\n\\n            checked = this.element.is( \\\":checked\\\" );\\n            if ( checked ) {\\n                this.buttonElement.addClass( \\\"ui-state-active\\\" );\\n            }\\n            this.buttonElement.prop( \\\"aria-pressed\\\", checked );\\n        } else {\\n            this.buttonElement = this.element;\\n        }\\n    },\\n\\n    widget: function() {\\n        return this.buttonElement;\\n    },\\n\\n    _destroy: function() {\\n        this.element\\n            .removeClass( \\\"ui-helper-hidden-accessible\\\" );\\n        this.buttonElement\\n            .removeClass( baseClasses + \\\" ui-state-active \\\" + typeClasses )\\n            .removeAttr( \\\"role\\\" )\\n            .removeAttr( \\\"aria-pressed\\\" )\\n            .html( this.buttonElement.find(\\\".ui-button-text\\\").html() );\\n\\n        if ( !this.hasTitle ) {\\n            this.buttonElement.removeAttr( \\\"title\\\" );\\n        }\\n    },\\n\\n    _setOption: function( key, value ) {\\n        this._super( key, value );\\n        if ( key === \\\"disabled\\\" ) {\\n            this.element.prop( \\\"disabled\\\", !!value );\\n            if ( value ) {\\n                this.buttonElement.removeClass( \\\"ui-state-focus\\\" );\\n            }\\n            return;\\n        }\\n        this._resetButton();\\n    },\\n\\n    refresh: function() {\\n        //See #8237 & #8828\\n        var isDisabled = this.element.is( \\\"input, button\\\" ) ? this.element.is( \\\":disabled\\\" ) : this.element.hasClass( \\\"ui-button-disabled\\\" );\\n\\n        if ( isDisabled !== this.options.disabled ) {\\n            this._setOption( \\\"disabled\\\", isDisabled );\\n        }\\n        if ( this.type === \\\"radio\\\" ) {\\n            radioGroup( this.element[0] ).each(function() {\\n                if ( $( this ).is( \\\":checked\\\" ) ) {\\n                    $( this ).button( \\\"widget\\\" )\\n                        .addClass( \\\"ui-state-active\\\" )\\n                        .attr( \\\"aria-pressed\\\", \\\"true\\\" );\\n                } else {\\n                    $( this ).button( \\\"widget\\\" )\\n                        .removeClass( \\\"ui-state-active\\\" )\\n                        .attr( \\\"aria-pressed\\\", \\\"false\\\" );\\n                }\\n            });\\n        } else if ( this.type === \\\"checkbox\\\" ) {\\n            if ( this.element.is( \\\":checked\\\" ) ) {\\n                this.buttonElement\\n                    .addClass( \\\"ui-state-active\\\" )\\n                    .attr( \\\"aria-pressed\\\", \\\"true\\\" );\\n            } else {\\n                this.buttonElement\\n                    .removeClass( \\\"ui-state-active\\\" )\\n                    .attr( \\\"aria-pressed\\\", \\\"false\\\" );\\n            }\\n        }\\n    },\\n\\n    _resetButton: function() {\\n        if ( this.type === \\\"input\\\" ) {\\n            if ( this.options.label ) {\\n                this.element.val( this.options.label );\\n            }\\n            return;\\n        }\\n        var buttonElement = this.buttonElement.removeClass( typeClasses ),\\n            buttonText = $( \\\"<span></span>\\\", this.document[0] )\\n                .addClass( \\\"ui-button-text\\\" )\\n                .html( this.options.label )\\n                .appendTo( buttonElement.empty() )\\n                .text(),\\n            icons = this.options.icons,\\n            multipleIcons = icons.primary && icons.secondary,\\n            buttonClasses = [];\\n\\n        if ( icons.primary || icons.secondary ) {\\n            if ( this.options.text ) {\\n                buttonClasses.push( \\\"ui-button-text-icon\\\" + ( multipleIcons ? \\\"s\\\" : ( icons.primary ? \\\"-primary\\\" : \\\"-secondary\\\" ) ) );\\n            }\\n\\n            if ( icons.primary ) {\\n                buttonElement.prepend( \\\"<span class='ui-button-icon-primary ui-icon \\\" + icons.primary + \\\"'></span>\\\" );\\n            }\\n\\n            if ( icons.secondary ) {\\n                buttonElement.append( \\\"<span class='ui-button-icon-secondary ui-icon \\\" + icons.secondary + \\\"'></span>\\\" );\\n            }\\n\\n            if ( !this.options.text ) {\\n                buttonClasses.push( multipleIcons ? \\\"ui-button-icons-only\\\" : \\\"ui-button-icon-only\\\" );\\n\\n                if ( !this.hasTitle ) {\\n                    buttonElement.attr( \\\"title\\\", $.trim( buttonText ) );\\n                }\\n            }\\n        } else {\\n            buttonClasses.push( \\\"ui-button-text-only\\\" );\\n        }\\n        buttonElement.addClass( buttonClasses.join( \\\" \\\" ) );\\n    }\\n});\\n\\n$.widget( \\\"ui.buttonset\\\", {\\n    version: \\\"1.10.4\\\",\\n    options: {\\n        items: \\\"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)\\\"\\n    },\\n\\n    _create: function() {\\n        this.element.addClass( \\\"ui-buttonset\\\" );\\n    },\\n\\n    _init: function() {\\n        this.refresh();\\n    },\\n\\n    _setOption: function( key, value ) {\\n        if ( key === \\\"disabled\\\" ) {\\n            this.buttons.button( \\\"option\\\", key, value );\\n        }\\n\\n        this._super( key, value );\\n    },\\n\\n    refresh: function() {\\n        var rtl = this.element.css( \\\"direction\\\" ) === \\\"rtl\\\";\\n\\n        this.buttons = this.element.find( this.options.items )\\n            .filter( \\\":ui-button\\\" )\\n                .button( \\\"refresh\\\" )\\n            .end()\\n            .not( \\\":ui-button\\\" )\\n                .button()\\n            .end()\\n            .map(function() {\\n                return $( this ).button( \\\"widget\\\" )[ 0 ];\\n            })\\n                .removeClass( \\\"ui-corner-all ui-corner-left ui-corner-right\\\" )\\n                .filter( \\\":first\\\" )\\n                    .addClass( rtl ? \\\"ui-corner-right\\\" : \\\"ui-corner-left\\\" )\\n                .end()\\n                .filter( \\\":last\\\" )\\n                    .addClass( rtl ? \\\"ui-corner-left\\\" : \\\"ui-corner-right\\\" )\\n                .end()\\n            .end();\\n    },\\n\\n    _destroy: function() {\\n        this.element.removeClass( \\\"ui-buttonset\\\" );\\n        this.buttons\\n            .map(function() {\\n                return $( this ).button( \\\"widget\\\" )[ 0 ];\\n            })\\n                .removeClass( \\\"ui-corner-left ui-corner-right\\\" )\\n            .end()\\n            .button( \\\"destroy\\\" );\\n    }\\n});\\n\\n}( jQuery ) );\\n(function( $, undefined ) {\\n\\n$.extend($.ui, { datepicker: { version: \\\"1.10.4\\\" } });\\n\\nvar PROP_NAME = \\\"datepicker\\\",\\n    instActive;\\n\\n/* Date picker manager.\\n   Use the singleton instance of this class, $.datepicker, to interact with the date picker.\\n   Settings for (groups of) date pickers are maintained in an instance object,\\n   allowing multiple different settings on the same page. */\\n\\nfunction Datepicker() {\\n    this._curInst = null; // The current instance in use\\n    this._keyEvent = false; // If the last event was a key event\\n    this._disabledInputs = []; // List of date picker inputs that have been disabled\\n    this._datepickerShowing = false; // True if the popup picker is showing , false if not\\n    this._inDialog = false; // True if showing within a \\\"dialog\\\", false if not\\n    this._mainDivId = \\\"ui-datepicker-div\\\"; // The ID of the main datepicker division\\n    this._inlineClass = \\\"ui-datepicker-inline\\\"; // The name of the inline marker class\\n    this._appendClass = \\\"ui-datepicker-append\\\"; // The name of the append marker class\\n    this._triggerClass = \\\"ui-datepicker-trigger\\\"; // The name of the trigger marker class\\n    this._dialogClass = \\\"ui-datepicker-dialog\\\"; // The name of the dialog marker class\\n    this._disableClass = \\\"ui-datepicker-disabled\\\"; // The name of the disabled covering marker class\\n    this._unselectableClass = \\\"ui-datepicker-unselectable\\\"; // The name of the unselectable cell marker class\\n    this._currentClass = \\\"ui-datepicker-current-day\\\"; // The name of the current day marker class\\n    this._dayOverClass = \\\"ui-datepicker-days-cell-over\\\"; // The name of the day hover marker class\\n    this.regional = []; // Available regional settings, indexed by language code\\n    this.regional[\\\"\\\"] = { // Default regional settings\\n        closeText: \\\"Done\\\", // Display text for close link\\n        prevText: \\\"Prev\\\", // Display text for previous month link\\n        nextText: \\\"Next\\\", // Display text for next month link\\n        currentText: \\\"Today\\\", // Display text for current month link\\n        monthNames: [\\\"January\\\",\\\"February\\\",\\\"March\\\",\\\"April\\\",\\\"May\\\",\\\"June\\\",\\n            \\\"July\\\",\\\"August\\\",\\\"September\\\",\\\"October\\\",\\\"November\\\",\\\"December\\\"], // Names of months for drop-down and formatting\\n        monthNamesShort: [\\\"Jan\\\", \\\"Feb\\\", \\\"Mar\\\", \\\"Apr\\\", \\\"May\\\", \\\"Jun\\\", \\\"Jul\\\", \\\"Aug\\\", \\\"Sep\\\", \\\"Oct\\\", \\\"Nov\\\", \\\"Dec\\\"], // For formatting\\n        dayNames: [\\\"Sunday\\\", \\\"Monday\\\", \\\"Tuesday\\\", \\\"Wednesday\\\", \\\"Thursday\\\", \\\"Friday\\\", \\\"Saturday\\\"], // For formatting\\n        dayNamesShort: [\\\"Sun\\\", \\\"Mon\\\", \\\"Tue\\\", \\\"Wed\\\", \\\"Thu\\\", \\\"Fri\\\", \\\"Sat\\\"], // For formatting\\n        dayNamesMin: [\\\"Su\\\",\\\"Mo\\\",\\\"Tu\\\",\\\"We\\\",\\\"Th\\\",\\\"Fr\\\",\\\"Sa\\\"], // Column headings for days starting at Sunday\\n        weekHeader: \\\"Wk\\\", // Column header for week of the year\\n        dateFormat: \\\"mm/dd/yy\\\", // See format options on parseDate\\n        firstDay: 0, // The first day of the week, Sun = 0, Mon = 1, ...\\n        isRTL: false, // True if right-to-left language, false if left-to-right\\n        showMonthAfterYear: false, // True if the year select precedes month, false for month then year\\n        yearSuffix: \\\"\\\" // Additional text to append to the year in the month headers\\n    };\\n    this._defaults = { // Global defaults for all the date picker instances\\n        showOn: \\\"focus\\\", // \\\"focus\\\" for popup on focus,\\n            // \\\"button\\\" for trigger button, or \\\"both\\\" for either\\n        showAnim: \\\"fadeIn\\\", // Name of jQuery animation for popup\\n        showOptions: {}, // Options for enhanced animations\\n        defaultDate: null, // Used when field is blank: actual date,\\n            // +/-number for offset from today, null for today\\n        appendText: \\\"\\\", // Display text following the input box, e.g. showing the format\\n        buttonText: \\\"...\\\", // Text for trigger button\\n        buttonImage: \\\"\\\", // URL for trigger button image\\n        buttonImageOnly: false, // True if the image appears alone, false if it appears on a button\\n        hideIfNoPrevNext: false, // True to hide next/previous month links\\n            // if not applicable, false to just disable them\\n        navigationAsDateFormat: false, // True if date formatting applied to prev/today/next links\\n        gotoCurrent: false, // True if today link goes back to current selection instead\\n        changeMonth: false, // True if month can be selected directly, false if only prev/next\\n        changeYear: false, // True if year can be selected directly, false if only prev/next\\n        yearRange: \\\"c-10:c+10\\\", // Range of years to display in drop-down,\\n            // either relative to today's year (-nn:+nn), relative to currently displayed year\\n            // (c-nn:c+nn), absolute (nnnn:nnnn), or a combination of the above (nnnn:-n)\\n        showOtherMonths: false, // True to show dates in other months, false to leave blank\\n        selectOtherMonths: false, // True to allow selection of dates in other months, false for unselectable\\n        showWeek: false, // True to show week of the year, false to not show it\\n        calculateWeek: this.iso8601Week, // How to calculate the week of the year,\\n            // takes a Date and returns the number of the week for it\\n        shortYearCutoff: \\\"+10\\\", // Short year values < this are in the current century,\\n            // > this are in the previous century,\\n            // string value starting with \\\"+\\\" for current year + value\\n        minDate: null, // The earliest selectable date, or null for no limit\\n        maxDate: null, // The latest selectable date, or null for no limit\\n        duration: \\\"fast\\\", // Duration of display/closure\\n        beforeShowDay: null, // Function that takes a date and returns an array with\\n            // [0] = true if selectable, false if not, [1] = custom CSS class name(s) or \\\"\\\",\\n            // [2] = cell title (optional), e.g. $.datepicker.noWeekends\\n        beforeShow: null, // Function that takes an input field and\\n            // returns a set of custom settings for the date picker\\n        onSelect: null, // Define a callback function when a date is selected\\n        onChangeMonthYear: null, // Define a callback function when the month or year is changed\\n        onClose: null, // Define a callback function when the datepicker is closed\\n        numberOfMonths: 1, // Number of months to show at a time\\n        showCurrentAtPos: 0, // The position in multipe months at which to show the current month (starting at 0)\\n        stepMonths: 1, // Number of months to step back/forward\\n        stepBigMonths: 12, // Number of months to step back/forward for the big links\\n        altField: \\\"\\\", // Selector for an alternate field to store selected dates into\\n        altFormat: \\\"\\\", // The date format to use for the alternate field\\n        constrainInput: true, // The input is constrained by the current date format\\n        showButtonPanel: false, // True to show button panel, false to not show it\\n        autoSize: false, // True to size the input for the date format, false to leave as is\\n        disabled: false // The initial disabled state\\n    };\\n    $.extend(this._defaults, this.regional[\\\"\\\"]);\\n    this.dpDiv = bindHover($(\\\"<div id='\\\" + this._mainDivId + \\\"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>\\\"));\\n}\\n\\n$.extend(Datepicker.prototype, {\\n    /* Class name added to elements to indicate already configured with a date picker. */\\n    markerClassName: \\\"hasDatepicker\\\",\\n\\n    //Keep track of the maximum number of rows displayed (see #7043)\\n    maxRows: 4,\\n\\n    // TODO rename to \\\"widget\\\" when switching to widget factory\\n    _widgetDatepicker: function() {\\n        return this.dpDiv;\\n    },\\n\\n    /* Override the default settings for all instances of the date picker.\\n     * @param  settings  object - the new settings to use as defaults (anonymous object)\\n     * @return the manager object\\n     */\\n    setDefaults: function(settings) {\\n        extendRemove(this._defaults, settings || {});\\n        return this;\\n    },\\n\\n    /* Attach the date picker to a jQuery selection.\\n     * @param  target   element - the target input field or division or span\\n     * @param  settings  object - the new settings to use for this date picker instance (anonymous)\\n     */\\n    _attachDatepicker: function(target, settings) {\\n        var nodeName, inline, inst;\\n        nodeName = target.nodeName.toLowerCase();\\n        inline = (nodeName === \\\"div\\\" || nodeName === \\\"span\\\");\\n        if (!target.id) {\\n            this.uuid += 1;\\n            target.id = \\\"dp\\\" + this.uuid;\\n        }\\n        inst = this._newInst($(target), inline);\\n        inst.settings = $.extend({}, settings || {});\\n        if (nodeName === \\\"input\\\") {\\n            this._connectDatepicker(target, inst);\\n        } else if (inline) {\\n            this._inlineDatepicker(target, inst);\\n        }\\n    },\\n\\n    /* Create a new instance object. */\\n    _newInst: function(target, inline) {\\n        var id = target[0].id.replace(/([^A-Za-z0-9_\\\\-])/g, \\\"\\\\\\\\\\\\\\\\$1\\\"); // escape jQuery meta chars\\n        return {id: id, input: target, // associated target\\n            selectedDay: 0, selectedMonth: 0, selectedYear: 0, // current selection\\n            drawMonth: 0, drawYear: 0, // month being drawn\\n            inline: inline, // is datepicker inline or not\\n            dpDiv: (!inline ? this.dpDiv : // presentation div\\n            bindHover($(\\\"<div class='\\\" + this._inlineClass + \\\" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>\\\")))};\\n    },\\n\\n    /* Attach the date picker to an input field. */\\n    _connectDatepicker: function(target, inst) {\\n        var input = $(target);\\n        inst.append = $([]);\\n        inst.trigger = $([]);\\n        if (input.hasClass(this.markerClassName)) {\\n            return;\\n        }\\n        this._attachments(input, inst);\\n        input.addClass(this.markerClassName).keydown(this._doKeyDown).\\n            keypress(this._doKeyPress).keyup(this._doKeyUp);\\n        this._autoSize(inst);\\n        $.data(target, PROP_NAME, inst);\\n        //If disabled option is true, disable the datepicker once it has been attached to the input (see ticket #5665)\\n        if( inst.settings.disabled ) {\\n            this._disableDatepicker( target );\\n        }\\n    },\\n\\n    /* Make attachments based on settings. */\\n    _attachments: function(input, inst) {\\n        var showOn, buttonText, buttonImage,\\n            appendText = this._get(inst, \\\"appendText\\\"),\\n            isRTL = this._get(inst, \\\"isRTL\\\");\\n\\n        if (inst.append) {\\n            inst.append.remove();\\n        }\\n        if (appendText) {\\n            inst.append = $(\\\"<span class='\\\" + this._appendClass + \\\"'>\\\" + appendText + \\\"</span>\\\");\\n            input[isRTL ? \\\"before\\\" : \\\"after\\\"](inst.append);\\n        }\\n\\n        input.unbind(\\\"focus\\\", this._showDatepicker);\\n\\n        if (inst.trigger) {\\n            inst.trigger.remove();\\n        }\\n\\n        showOn = this._get(inst, \\\"showOn\\\");\\n        if (showOn === \\\"focus\\\" || showOn === \\\"both\\\") { // pop-up date picker when in the marked field\\n            input.focus(this._showDatepicker);\\n        }\\n        if (showOn === \\\"button\\\" || showOn === \\\"both\\\") { // pop-up date picker when button clicked\\n            buttonText = this._get(inst, \\\"buttonText\\\");\\n            buttonImage = this._get(inst, \\\"buttonImage\\\");\\n            inst.trigger = $(this._get(inst, \\\"buttonImageOnly\\\") ?\\n                $(\\\"<img/>\\\").addClass(this._triggerClass).\\n                    attr({ src: buttonImage, alt: buttonText, title: buttonText }) :\\n                $(\\\"<button type='button'></button>\\\").addClass(this._triggerClass).\\n                    html(!buttonImage ? buttonText : $(\\\"<img/>\\\").attr(\\n                    { src:buttonImage, alt:buttonText, title:buttonText })));\\n            input[isRTL ? \\\"before\\\" : \\\"after\\\"](inst.trigger);\\n            inst.trigger.click(function() {\\n                if ($.datepicker._datepickerShowing && $.datepicker._lastInput === input[0]) {\\n                    $.datepicker._hideDatepicker();\\n                } else if ($.datepicker._datepickerShowing && $.datepicker._lastInput !== input[0]) {\\n                    $.datepicker._hideDatepicker();\\n                    $.datepicker._showDatepicker(input[0]);\\n                } else {\\n                    $.datepicker._showDatepicker(input[0]);\\n                }\\n                return false;\\n            });\\n        }\\n    },\\n\\n    /* Apply the maximum length for the date format. */\\n    _autoSize: function(inst) {\\n        if (this._get(inst, \\\"autoSize\\\") && !inst.inline) {\\n            var findMax, max, maxI, i,\\n                date = new Date(2009, 12 - 1, 20), // Ensure double digits\\n                dateFormat = this._get(inst, \\\"dateFormat\\\");\\n\\n            if (dateFormat.match(/[DM]/)) {\\n                findMax = function(names) {\\n                    max = 0;\\n                    maxI = 0;\\n                    for (i = 0; i < names.length; i++) {\\n                        if (names[i].length > max) {\\n                            max = names[i].length;\\n                            maxI = i;\\n                        }\\n                    }\\n                    return maxI;\\n                };\\n                date.setMonth(findMax(this._get(inst, (dateFormat.match(/MM/) ?\\n                    \\\"monthNames\\\" : \\\"monthNamesShort\\\"))));\\n                date.setDate(findMax(this._get(inst, (dateFormat.match(/DD/) ?\\n                    \\\"dayNames\\\" : \\\"dayNamesShort\\\"))) + 20 - date.getDay());\\n            }\\n            inst.input.attr(\\\"size\\\", this._formatDate(inst, date).length);\\n        }\\n    },\\n\\n    /* Attach an inline date picker to a div. */\\n    _inlineDatepicker: function(target, inst) {\\n        var divSpan = $(target);\\n        if (divSpan.hasClass(this.markerClassName)) {\\n            return;\\n        }\\n        divSpan.addClass(this.markerClassName).append(inst.dpDiv);\\n        $.data(target, PROP_NAME, inst);\\n        this._setDate(inst, this._getDefaultDate(inst), true);\\n        this._updateDatepicker(inst);\\n        this._updateAlternate(inst);\\n        //If disabled option is true, disable the datepicker before showing it (see ticket #5665)\\n        if( inst.settings.disabled ) {\\n            this._disableDatepicker( target );\\n        }\\n        // Set display:block in place of inst.dpDiv.show() which won't work on disconnected elements\\n        // http://bugs.jqueryui.com/ticket/7552 - A Datepicker created on a detached div has zero height\\n        inst.dpDiv.css( \\\"display\\\", \\\"block\\\" );\\n    },\\n\\n    /* Pop-up the date picker in a \\\"dialog\\\" box.\\n     * @param  input element - ignored\\n     * @param  date string or Date - the initial date to display\\n     * @param  onSelect  function - the function to call when a date is selected\\n     * @param  settings  object - update the dialog date picker instance's settings (anonymous object)\\n     * @param  pos int[2] - coordinates for the dialog's position within the screen or\\n     *                  event - with x/y coordinates or\\n     *                  leave empty for default (screen centre)\\n     * @return the manager object\\n     */\\n    _dialogDatepicker: function(input, date, onSelect, settings, pos) {\\n        var id, browserWidth, browserHeight, scrollX, scrollY,\\n            inst = this._dialogInst; // internal instance\\n\\n        if (!inst) {\\n            this.uuid += 1;\\n            id = \\\"dp\\\" + this.uuid;\\n            this._dialogInput = $(\\\"<input type='text' id='\\\" + id +\\n                \\\"' style='position: absolute; top: -100px; width: 0px;'/>\\\");\\n            this._dialogInput.keydown(this._doKeyDown);\\n            $(\\\"body\\\").append(this._dialogInput);\\n            inst = this._dialogInst = this._newInst(this._dialogInput, false);\\n            inst.settings = {};\\n            $.data(this._dialogInput[0], PROP_NAME, inst);\\n        }\\n        extendRemove(inst.settings, settings || {});\\n        date = (date && date.constructor === Date ? this._formatDate(inst, date) : date);\\n        this._dialogInput.val(date);\\n\\n        this._pos = (pos ? (pos.length ? pos : [pos.pageX, pos.pageY]) : null);\\n        if (!this._pos) {\\n            browserWidth = document.documentElement.clientWidth;\\n            browserHeight = document.documentElement.clientHeight;\\n            scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;\\n            scrollY = document.documentElement.scrollTop || document.body.scrollTop;\\n            this._pos = // should use actual width/height below\\n                [(browserWidth / 2) - 100 + scrollX, (browserHeight / 2) - 150 + scrollY];\\n        }\\n\\n        // move input on screen for focus, but hidden behind dialog\\n        this._dialogInput.css(\\\"left\\\", (this._pos[0] + 20) + \\\"px\\\").css(\\\"top\\\", this._pos[1] + \\\"px\\\");\\n        inst.settings.onSelect = onSelect;\\n        this._inDialog = true;\\n        this.dpDiv.addClass(this._dialogClass);\\n        this._showDatepicker(this._dialogInput[0]);\\n        if ($.blockUI) {\\n            $.blockUI(this.dpDiv);\\n        }\\n        $.data(this._dialogInput[0], PROP_NAME, inst);\\n        return this;\\n    },\\n\\n    /* Detach a datepicker from its control.\\n     * @param  target   element - the target input field or division or span\\n     */\\n    _destroyDatepicker: function(target) {\\n        var nodeName,\\n            $target = $(target),\\n            inst = $.data(target, PROP_NAME);\\n\\n        if (!$target.hasClass(this.markerClassName)) {\\n            return;\\n        }\\n\\n        nodeName = target.nodeName.toLowerCase();\\n        $.removeData(target, PROP_NAME);\\n        if (nodeName === \\\"input\\\") {\\n            inst.append.remove();\\n            inst.trigger.remove();\\n            $target.removeClass(this.markerClassName).\\n                unbind(\\\"focus\\\", this._showDatepicker).\\n                unbind(\\\"keydown\\\", this._doKeyDown).\\n                unbind(\\\"keypress\\\", this._doKeyPress).\\n                unbind(\\\"keyup\\\", this._doKeyUp);\\n        } else if (nodeName === \\\"div\\\" || nodeName === \\\"span\\\") {\\n            $target.removeClass(this.markerClassName).empty();\\n        }\\n    },\\n\\n    /* Enable the date picker to a jQuery selection.\\n     * @param  target   element - the target input field or division or span\\n     */\\n    _enableDatepicker: function(target) {\\n        var nodeName, inline,\\n            $target = $(target),\\n            inst = $.data(target, PROP_NAME);\\n\\n        if (!$target.hasClass(this.markerClassName)) {\\n            return;\\n        }\\n\\n        nodeName = target.nodeName.toLowerCase();\\n        if (nodeName === \\\"input\\\") {\\n            target.disabled = false;\\n            inst.trigger.filter(\\\"button\\\").\\n                each(function() { this.disabled = false; }).end().\\n                filter(\\\"img\\\").css({opacity: \\\"1.0\\\", cursor: \\\"\\\"});\\n        } else if (nodeName === \\\"div\\\" || nodeName === \\\"span\\\") {\\n            inline = $target.children(\\\".\\\" + this._inlineClass);\\n            inline.children().removeClass(\\\"ui-state-disabled\\\");\\n            inline.find(\\\"select.ui-datepicker-month, select.ui-datepicker-year\\\").\\n                prop(\\\"disabled\\\", false);\\n        }\\n        this._disabledInputs = $.map(this._disabledInputs,\\n            function(value) { return (value === target ? null : value); }); // delete entry\\n    },\\n\\n    /* Disable the date picker to a jQuery selection.\\n     * @param  target   element - the target input field or division or span\\n     */\\n    _disableDatepicker: function(target) {\\n        var nodeName, inline,\\n            $target = $(target),\\n            inst = $.data(target, PROP_NAME);\\n\\n        if (!$target.hasClass(this.markerClassName)) {\\n            return;\\n        }\\n\\n        nodeName = target.nodeName.toLowerCase();\\n        if (nodeName === \\\"input\\\") {\\n            target.disabled = true;\\n            inst.trigger.filter(\\\"button\\\").\\n                each(function() { this.disabled = true; }).end().\\n                filter(\\\"img\\\").css({opacity: \\\"0.5\\\", cursor: \\\"default\\\"});\\n        } else if (nodeName === \\\"div\\\" || nodeName === \\\"span\\\") {\\n            inline = $target.children(\\\".\\\" + this._inlineClass);\\n            inline.children().addClass(\\\"ui-state-disabled\\\");\\n            inline.find(\\\"select.ui-datepicker-month, select.ui-datepicker-year\\\").\\n                prop(\\\"disabled\\\", true);\\n        }\\n        this._disabledInputs = $.map(this._disabledInputs,\\n            function(value) { return (value === target ? null : value); }); // delete entry\\n        this._disabledInputs[this._disabledInputs.length] = target;\\n    },\\n\\n    /* Is the first field in a jQuery collection disabled as a datepicker?\\n     * @param  target   element - the target input field or division or span\\n     * @return boolean - true if disabled, false if enabled\\n     */\\n    _isDisabledDatepicker: function(target) {\\n        if (!target) {\\n            return false;\\n        }\\n        for (var i = 0; i < this._disabledInputs.length; i++) {\\n            if (this._disabledInputs[i] === target) {\\n                return true;\\n            }\\n        }\\n        return false;\\n    },\\n\\n    /* Retrieve the instance data for the target control.\\n     * @param  target  element - the target input field or division or span\\n     * @return  object - the associated instance data\\n     * @throws  error if a jQuery problem getting data\\n     */\\n    _getInst: function(target) {\\n        try {\\n            return $.data(target, PROP_NAME);\\n        }\\n        catch (err) {\\n            throw \\\"Missing instance data for this datepicker\\\";\\n        }\\n    },\\n\\n    /* Update or retrieve the settings for a date picker attached to an input field or division.\\n     * @param  target  element - the target input field or division or span\\n     * @param  name object - the new settings to update or\\n     *              string - the name of the setting to change or retrieve,\\n     *              when retrieving also \\\"all\\\" for all instance settings or\\n     *              \\\"defaults\\\" for all global defaults\\n     * @param  value   any - the new value for the setting\\n     *              (omit if above is an object or to retrieve a value)\\n     */\\n    _optionDatepicker: function(target, name, value) {\\n        var settings, date, minDate, maxDate,\\n            inst = this._getInst(target);\\n\\n        if (arguments.length === 2 && typeof name === \\\"string\\\") {\\n            return (name === \\\"defaults\\\" ? $.extend({}, $.datepicker._defaults) :\\n                (inst ? (name === \\\"all\\\" ? $.extend({}, inst.settings) :\\n                this._get(inst, name)) : null));\\n        }\\n\\n        settings = name || {};\\n        if (typeof name === \\\"string\\\") {\\n            settings = {};\\n            settings[name] = value;\\n        }\\n\\n        if (inst) {\\n            if (this._curInst === inst) {\\n                this._hideDatepicker();\\n            }\\n\\n            date = this._getDateDatepicker(target, true);\\n            minDate = this._getMinMaxDate(inst, \\\"min\\\");\\n            maxDate = this._getMinMaxDate(inst, \\\"max\\\");\\n            extendRemove(inst.settings, settings);\\n            // reformat the old minDate/maxDate values if dateFormat changes and a new minDate/maxDate isn't provided\\n            if (minDate !== null && settings.dateFormat !== undefined && settings.minDate === undefined) {\\n                inst.settings.minDate = this._formatDate(inst, minDate);\\n            }\\n            if (maxDate !== null && settings.dateFormat !== undefined && settings.maxDate === undefined) {\\n                inst.settings.maxDate = this._formatDate(inst, maxDate);\\n            }\\n            if ( \\\"disabled\\\" in settings ) {\\n                if ( settings.disabled ) {\\n                    this._disableDatepicker(target);\\n                } else {\\n                    this._enableDatepicker(target);\\n                }\\n            }\\n            this._attachments($(target), inst);\\n            this._autoSize(inst);\\n            this._setDate(inst, date);\\n            this._updateAlternate(inst);\\n            this._updateDatepicker(inst);\\n        }\\n    },\\n\\n    // change method deprecated\\n    _changeDatepicker: function(target, name, value) {\\n        this._optionDatepicker(target, name, value);\\n    },\\n\\n    /* Redraw the date picker attached to an input field or division.\\n     * @param  target  element - the target input field or division or span\\n     */\\n    _refreshDatepicker: function(target) {\\n        var inst = this._getInst(target);\\n        if (inst) {\\n            this._updateDatepicker(inst);\\n        }\\n    },\\n\\n    /* Set the dates for a jQuery selection.\\n     * @param  target element - the target input field or division or span\\n     * @param  date Date - the new date\\n     */\\n    _setDateDatepicker: function(target, date) {\\n        var inst = this._getInst(target);\\n        if (inst) {\\n            this._setDate(inst, date);\\n            this._updateDatepicker(inst);\\n            this._updateAlternate(inst);\\n        }\\n    },\\n\\n    /* Get the date(s) for the first entry in a jQuery selection.\\n     * @param  target element - the target input field or division or span\\n     * @param  noDefault boolean - true if no default date is to be used\\n     * @return Date - the current date\\n     */\\n    _getDateDatepicker: function(target, noDefault) {\\n        var inst = this._getInst(target);\\n        if (inst && !inst.inline) {\\n            this._setDateFromField(inst, noDefault);\\n        }\\n        return (inst ? this._getDate(inst) : null);\\n    },\\n\\n    /* Handle keystrokes. */\\n    _doKeyDown: function(event) {\\n        var onSelect, dateStr, sel,\\n            inst = $.datepicker._getInst(event.target),\\n            handled = true,\\n            isRTL = inst.dpDiv.is(\\\".ui-datepicker-rtl\\\");\\n\\n        inst._keyEvent = true;\\n        if ($.datepicker._datepickerShowing) {\\n            switch (event.keyCode) {\\n                case 9: $.datepicker._hideDatepicker();\\n                        handled = false;\\n                        break; // hide on tab out\\n                case 13: sel = $(\\\"td.\\\" + $.datepicker._dayOverClass + \\\":not(.\\\" +\\n                                    $.datepicker._currentClass + \\\")\\\", inst.dpDiv);\\n                        if (sel[0]) {\\n                            $.datepicker._selectDay(event.target, inst.selectedMonth, inst.selectedYear, sel[0]);\\n                        }\\n\\n                        onSelect = $.datepicker._get(inst, \\\"onSelect\\\");\\n                        if (onSelect) {\\n                            dateStr = $.datepicker._formatDate(inst);\\n\\n                            // trigger custom callback\\n                            onSelect.apply((inst.input ? inst.input[0] : null), [dateStr, inst]);\\n                        } else {\\n                            $.datepicker._hideDatepicker();\\n                        }\\n\\n                        return false; // don't submit the form\\n                case 27: $.datepicker._hideDatepicker();\\n                        break; // hide on escape\\n                case 33: $.datepicker._adjustDate(event.target, (event.ctrlKey ?\\n                            -$.datepicker._get(inst, \\\"stepBigMonths\\\") :\\n                            -$.datepicker._get(inst, \\\"stepMonths\\\")), \\\"M\\\");\\n                        break; // previous month/year on page up/+ ctrl\\n                case 34: $.datepicker._adjustDate(event.target, (event.ctrlKey ?\\n                            +$.datepicker._get(inst, \\\"stepBigMonths\\\") :\\n                            +$.datepicker._get(inst, \\\"stepMonths\\\")), \\\"M\\\");\\n                        break; // next month/year on page down/+ ctrl\\n                case 35: if (event.ctrlKey || event.metaKey) {\\n                            $.datepicker._clearDate(event.target);\\n                        }\\n                        handled = event.ctrlKey || event.metaKey;\\n                        break; // clear on ctrl or command +end\\n                case 36: if (event.ctrlKey || event.metaKey) {\\n                            $.datepicker._gotoToday(event.target);\\n                        }\\n                        handled = event.ctrlKey || event.metaKey;\\n                        break; // current on ctrl or command +home\\n                case 37: if (event.ctrlKey || event.metaKey) {\\n                            $.datepicker._adjustDate(event.target, (isRTL ? +1 : -1), \\\"D\\\");\\n                        }\\n                        handled = event.ctrlKey || event.metaKey;\\n                        // -1 day on ctrl or command +left\\n                        if (event.originalEvent.altKey) {\\n                            $.datepicker._adjustDate(event.target, (event.ctrlKey ?\\n                                -$.datepicker._get(inst, \\\"stepBigMonths\\\") :\\n                                -$.datepicker._get(inst, \\\"stepMonths\\\")), \\\"M\\\");\\n                        }\\n                        // next month/year on alt +left on Mac\\n                        break;\\n                case 38: if (event.ctrlKey || event.metaKey) {\\n                            $.datepicker._adjustDate(event.target, -7, \\\"D\\\");\\n                        }\\n                        handled = event.ctrlKey || event.metaKey;\\n                        break; // -1 week on ctrl or command +up\\n                case 39: if (event.ctrlKey || event.metaKey) {\\n                            $.datepicker._adjustDate(event.target, (isRTL ? -1 : +1), \\\"D\\\");\\n                        }\\n                        handled = event.ctrlKey || event.metaKey;\\n                        // +1 day on ctrl or command +right\\n                        if (event.originalEvent.altKey) {\\n                            $.datepicker._adjustDate(event.target, (event.ctrlKey ?\\n                                +$.datepicker._get(inst, \\\"stepBigMonths\\\") :\\n                                +$.datepicker._get(inst, \\\"stepMonths\\\")), \\\"M\\\");\\n                        }\\n                        // next month/year on alt +right\\n                        break;\\n                case 40: if (event.ctrlKey || event.metaKey) {\\n                            $.datepicker._adjustDate(event.target, +7, \\\"D\\\");\\n                        }\\n                        handled = event.ctrlKey || event.metaKey;\\n                        break; // +1 week on ctrl or command +down\\n                default: handled = false;\\n            }\\n        } else if (event.keyCode === 36 && event.ctrlKey) { // display the date picker on ctrl+home\\n            $.datepicker._showDatepicker(this);\\n        } else {\\n            handled = false;\\n        }\\n\\n        if (handled) {\\n            event.preventDefault();\\n            event.stopPropagation();\\n        }\\n    },\\n\\n    /* Filter entered characters - based on date format. */\\n    _doKeyPress: function(event) {\\n        var chars, chr,\\n            inst = $.datepicker._getInst(event.target);\\n\\n        if ($.datepicker._get(inst, \\\"constrainInput\\\")) {\\n            chars = $.datepicker._possibleChars($.datepicker._get(inst, \\\"dateFormat\\\"));\\n            chr = String.fromCharCode(event.charCode == null ? event.keyCode : event.charCode);\\n            return event.ctrlKey || event.metaKey || (chr < \\\" \\\" || !chars || chars.indexOf(chr) > -1);\\n        }\\n    },\\n\\n    /* Synchronise manual entry and field/alternate field. */\\n    _doKeyUp: function(event) {\\n        var date,\\n            inst = $.datepicker._getInst(event.target);\\n\\n        if (inst.input.val() !== inst.lastVal) {\\n            try {\\n                date = $.datepicker.parseDate($.datepicker._get(inst, \\\"dateFormat\\\"),\\n                    (inst.input ? inst.input.val() : null),\\n                    $.datepicker._getFormatConfig(inst));\\n\\n                if (date) { // only if valid\\n                    $.datepicker._setDateFromField(inst);\\n                    $.datepicker._updateAlternate(inst);\\n                    $.datepicker._updateDatepicker(inst);\\n                }\\n            }\\n            catch (err) {\\n            }\\n        }\\n        return true;\\n    },\\n\\n    /* Pop-up the date picker for a given input field.\\n     * If false returned from beforeShow event handler do not show.\\n     * @param  input  element - the input field attached to the date picker or\\n     *                  event - if triggered by focus\\n     */\\n    _showDatepicker: function(input) {\\n        input = input.target || input;\\n        if (input.nodeName.toLowerCase() !== \\\"input\\\") { // find from button/image trigger\\n            input = $(\\\"input\\\", input.parentNode)[0];\\n        }\\n\\n        if ($.datepicker._isDisabledDatepicker(input) || $.datepicker._lastInput === input) { // already here\\n            return;\\n        }\\n\\n        var inst, beforeShow, beforeShowSettings, isFixed,\\n            offset, showAnim, duration;\\n\\n        inst = $.datepicker._getInst(input);\\n        if ($.datepicker._curInst && $.datepicker._curInst !== inst) {\\n            $.datepicker._curInst.dpDiv.stop(true, true);\\n            if ( inst && $.datepicker._datepickerShowing ) {\\n                $.datepicker._hideDatepicker( $.datepicker._curInst.input[0] );\\n            }\\n        }\\n\\n        beforeShow = $.datepicker._get(inst, \\\"beforeShow\\\");\\n        beforeShowSettings = beforeShow ? beforeShow.apply(input, [input, inst]) : {};\\n        if(beforeShowSettings === false){\\n            return;\\n        }\\n        extendRemove(inst.settings, beforeShowSettings);\\n\\n        inst.lastVal = null;\\n        $.datepicker._lastInput = input;\\n        $.datepicker._setDateFromField(inst);\\n\\n        if ($.datepicker._inDialog) { // hide cursor\\n            input.value = \\\"\\\";\\n        }\\n        if (!$.datepicker._pos) { // position below input\\n            $.datepicker._pos = $.datepicker._findPos(input);\\n            $.datepicker._pos[1] += input.offsetHeight; // add the height\\n        }\\n\\n        isFixed = false;\\n        $(input).parents().each(function() {\\n            isFixed |= $(this).css(\\\"position\\\") === \\\"fixed\\\";\\n            return !isFixed;\\n        });\\n\\n        offset = {left: $.datepicker._pos[0], top: $.datepicker._pos[1]};\\n        $.datepicker._pos = null;\\n        //to avoid flashes on Firefox\\n        inst.dpDiv.empty();\\n        // determine sizing offscreen\\n        inst.dpDiv.css({position: \\\"absolute\\\", display: \\\"block\\\", top: \\\"-1000px\\\"});\\n        $.datepicker._updateDatepicker(inst);\\n        // fix width for dynamic number of date pickers\\n        // and adjust position before showing\\n        offset = $.datepicker._checkOffset(inst, offset, isFixed);\\n        inst.dpDiv.css({position: ($.datepicker._inDialog && $.blockUI ?\\n            \\\"static\\\" : (isFixed ? \\\"fixed\\\" : \\\"absolute\\\")), display: \\\"none\\\",\\n            left: offset.left + \\\"px\\\", top: offset.top + \\\"px\\\"});\\n\\n        if (!inst.inline) {\\n            showAnim = $.datepicker._get(inst, \\\"showAnim\\\");\\n            duration = $.datepicker._get(inst, \\\"duration\\\");\\n            inst.dpDiv.zIndex($(input).zIndex()+1);\\n            $.datepicker._datepickerShowing = true;\\n\\n            if ( $.effects && $.effects.effect[ showAnim ] ) {\\n                inst.dpDiv.show(showAnim, $.datepicker._get(inst, \\\"showOptions\\\"), duration);\\n            } else {\\n                inst.dpDiv[showAnim || \\\"show\\\"](showAnim ? duration : null);\\n            }\\n\\n            if ( $.datepicker._shouldFocusInput( inst ) ) {\\n                inst.input.focus();\\n            }\\n\\n            $.datepicker._curInst = inst;\\n        }\\n    },\\n\\n    /* Generate the date picker content. */\\n    _updateDatepicker: function(inst) {\\n        this.maxRows = 4; //Reset the max number of rows being displayed (see #7043)\\n        instActive = inst; // for delegate hover events\\n        inst.dpDiv.empty().append(this._generateHTML(inst));\\n        this._attachHandlers(inst);\\n        inst.dpDiv.find(\\\".\\\" + this._dayOverClass + \\\" a\\\").mouseover();\\n\\n        var origyearshtml,\\n            numMonths = this._getNumberOfMonths(inst),\\n            cols = numMonths[1],\\n            width = 17;\\n\\n        inst.dpDiv.removeClass(\\\"ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4\\\").width(\\\"\\\");\\n        if (cols > 1) {\\n            inst.dpDiv.addClass(\\\"ui-datepicker-multi-\\\" + cols).css(\\\"width\\\", (width * cols) + \\\"em\\\");\\n        }\\n        inst.dpDiv[(numMonths[0] !== 1 || numMonths[1] !== 1 ? \\\"add\\\" : \\\"remove\\\") +\\n            \\\"Class\\\"](\\\"ui-datepicker-multi\\\");\\n        inst.dpDiv[(this._get(inst, \\\"isRTL\\\") ? \\\"add\\\" : \\\"remove\\\") +\\n            \\\"Class\\\"](\\\"ui-datepicker-rtl\\\");\\n\\n        if (inst === $.datepicker._curInst && $.datepicker._datepickerShowing && $.datepicker._shouldFocusInput( inst ) ) {\\n            inst.input.focus();\\n        }\\n\\n        // deffered render of the years select (to avoid flashes on Firefox)\\n        if( inst.yearshtml ){\\n            origyearshtml = inst.yearshtml;\\n            setTimeout(function(){\\n                //assure that inst.yearshtml didn't change.\\n                if( origyearshtml === inst.yearshtml && inst.yearshtml ){\\n                    inst.dpDiv.find(\\\"select.ui-datepicker-year:first\\\").replaceWith(inst.yearshtml);\\n                }\\n                origyearshtml = inst.yearshtml = null;\\n            }, 0);\\n        }\\n    },\\n\\n    // #6694 - don't focus the input if it's already focused\\n    // this breaks the change event in IE\\n    // Support: IE and jQuery <1.9\\n    _shouldFocusInput: function( inst ) {\\n        return inst.input && inst.input.is( \\\":visible\\\" ) && !inst.input.is( \\\":disabled\\\" ) && !inst.input.is( \\\":focus\\\" );\\n    },\\n\\n    /* Check positioning to remain on screen. */\\n    _checkOffset: function(inst, offset, isFixed) {\\n        var dpWidth = inst.dpDiv.outerWidth(),\\n            dpHeight = inst.dpDiv.outerHeight(),\\n            inputWidth = inst.input ? inst.input.outerWidth() : 0,\\n            inputHeight = inst.input ? inst.input.outerHeight() : 0,\\n            viewWidth = document.documentElement.clientWidth + (isFixed ? 0 : $(document).scrollLeft()),\\n            viewHeight = document.documentElement.clientHeight + (isFixed ? 0 : $(document).scrollTop());\\n\\n        offset.left -= (this._get(inst, \\\"isRTL\\\") ? (dpWidth - inputWidth) : 0);\\n        offset.left -= (isFixed && offset.left === inst.input.offset().left) ? $(document).scrollLeft() : 0;\\n        offset.top -= (isFixed && offset.top === (inst.input.offset().top + inputHeight)) ? $(document).scrollTop() : 0;\\n\\n        // now check if datepicker is showing outside window viewport - move to a better place if so.\\n        offset.left -= Math.min(offset.left, (offset.left + dpWidth > viewWidth && viewWidth > dpWidth) ?\\n            Math.abs(offset.left + dpWidth - viewWidth) : 0);\\n        offset.top -= Math.min(offset.top, (offset.top + dpHeight > viewHeight && viewHeight > dpHeight) ?\\n            Math.abs(dpHeight + inputHeight) : 0);\\n\\n        return offset;\\n    },\\n\\n    /* Find an object's position on the screen. */\\n    _findPos: function(obj) {\\n        var position,\\n            inst = this._getInst(obj),\\n            isRTL = this._get(inst, \\\"isRTL\\\");\\n\\n        while (obj && (obj.type === \\\"hidden\\\" || obj.nodeType !== 1 || $.expr.filters.hidden(obj))) {\\n            obj = obj[isRTL ? \\\"previousSibling\\\" : \\\"nextSibling\\\"];\\n        }\\n\\n        position = $(obj).offset();\\n        return [position.left, position.top];\\n    },\\n\\n    /* Hide the date picker from view.\\n     * @param  input  element - the input field attached to the date picker\\n     */\\n    _hideDatepicker: function(input) {\\n        var showAnim, duration, postProcess, onClose,\\n            inst = this._curInst;\\n\\n        if (!inst || (input && inst !== $.data(input, PROP_NAME))) {\\n            return;\\n        }\\n\\n        if (this._datepickerShowing) {\\n            showAnim = this._get(inst, \\\"showAnim\\\");\\n            duration = this._get(inst, \\\"duration\\\");\\n            postProcess = function() {\\n                $.datepicker._tidyDialog(inst);\\n            };\\n\\n            // DEPRECATED: after BC for 1.8.x $.effects[ showAnim ] is not needed\\n            if ( $.effects && ( $.effects.effect[ showAnim ] || $.effects[ showAnim ] ) ) {\\n                inst.dpDiv.hide(showAnim, $.datepicker._get(inst, \\\"showOptions\\\"), duration, postProcess);\\n            } else {\\n                inst.dpDiv[(showAnim === \\\"slideDown\\\" ? \\\"slideUp\\\" :\\n                    (showAnim === \\\"fadeIn\\\" ? \\\"fadeOut\\\" : \\\"hide\\\"))]((showAnim ? duration : null), postProcess);\\n            }\\n\\n            if (!showAnim) {\\n                postProcess();\\n            }\\n            this._datepickerShowing = false;\\n\\n            onClose = this._get(inst, \\\"onClose\\\");\\n            if (onClose) {\\n                onClose.apply((inst.input ? inst.input[0] : null), [(inst.input ? inst.input.val() : \\\"\\\"), inst]);\\n            }\\n\\n            this._lastInput = null;\\n            if (this._inDialog) {\\n                this._dialogInput.css({ position: \\\"absolute\\\", left: \\\"0\\\", top: \\\"-100px\\\" });\\n                if ($.blockUI) {\\n                    $.unblockUI();\\n                    $(\\\"body\\\").append(this.dpDiv);\\n                }\\n            }\\n            this._inDialog = false;\\n        }\\n    },\\n\\n    /* Tidy up after a dialog display. */\\n    _tidyDialog: function(inst) {\\n        inst.dpDiv.removeClass(this._dialogClass).unbind(\\\".ui-datepicker-calendar\\\");\\n    },\\n\\n    /* Close date picker if clicked elsewhere. */\\n    _checkExternalClick: function(event) {\\n        if (!$.datepicker._curInst) {\\n            return;\\n        }\\n\\n        var $target = $(event.target),\\n            inst = $.datepicker._getInst($target[0]);\\n\\n        if ( ( ( $target[0].id !== $.datepicker._mainDivId &&\\n                $target.parents(\\\"#\\\" + $.datepicker._mainDivId).length === 0 &&\\n                !$target.hasClass($.datepicker.markerClassName) &&\\n                !$target.closest(\\\".\\\" + $.datepicker._triggerClass).length &&\\n                $.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI) ) ) ||\\n            ( $target.hasClass($.datepicker.markerClassName) && $.datepicker._curInst !== inst ) ) {\\n                $.datepicker._hideDatepicker();\\n        }\\n    },\\n\\n    /* Adjust one of the date sub-fields. */\\n    _adjustDate: function(id, offset, period) {\\n        var target = $(id),\\n            inst = this._getInst(target[0]);\\n\\n        if (this._isDisabledDatepicker(target[0])) {\\n            return;\\n        }\\n        this._adjustInstDate(inst, offset +\\n            (period === \\\"M\\\" ? this._get(inst, \\\"showCurrentAtPos\\\") : 0), // undo positioning\\n            period);\\n        this._updateDatepicker(inst);\\n    },\\n\\n    /* Action for current link. */\\n    _gotoToday: function(id) {\\n        var date,\\n            target = $(id),\\n            inst = this._getInst(target[0]);\\n\\n        if (this._get(inst, \\\"gotoCurrent\\\") && inst.currentDay) {\\n            inst.selectedDay = inst.currentDay;\\n            inst.drawMonth = inst.selectedMonth = inst.currentMonth;\\n            inst.drawYear = inst.selectedYear = inst.currentYear;\\n        } else {\\n            date = new Date();\\n            inst.selectedDay = date.getDate();\\n            inst.drawMonth = inst.selectedMonth = date.getMonth();\\n            inst.drawYear = inst.selectedYear = date.getFullYear();\\n        }\\n        this._notifyChange(inst);\\n        this._adjustDate(target);\\n    },\\n\\n    /* Action for selecting a new month/year. */\\n    _selectMonthYear: function(id, select, period) {\\n        var target = $(id),\\n            inst = this._getInst(target[0]);\\n\\n        inst[\\\"selected\\\" + (period === \\\"M\\\" ? \\\"Month\\\" : \\\"Year\\\")] =\\n        inst[\\\"draw\\\" + (period === \\\"M\\\" ? \\\"Month\\\" : \\\"Year\\\")] =\\n            parseInt(select.options[select.selectedIndex].value,10);\\n\\n        this._notifyChange(inst);\\n        this._adjustDate(target);\\n    },\\n\\n    /* Action for selecting a day. */\\n    _selectDay: function(id, month, year, td) {\\n        var inst,\\n            target = $(id);\\n\\n        if ($(td).hasClass(this._unselectableClass) || this._isDisabledDatepicker(target[0])) {\\n            return;\\n        }\\n\\n        inst = this._getInst(target[0]);\\n        inst.selectedDay = inst.currentDay = $(\\\"a\\\", td).html();\\n        inst.selectedMonth = inst.currentMonth = month;\\n        inst.selectedYear = inst.currentYear = year;\\n        this._selectDate(id, this._formatDate(inst,\\n            inst.currentDay, inst.currentMonth, inst.currentYear));\\n    },\\n\\n    /* Erase the input field and hide the date picker. */\\n    _clearDate: function(id) {\\n        var target = $(id);\\n        this._selectDate(target, \\\"\\\");\\n    },\\n\\n    /* Update the input field with the selected date. */\\n    _selectDate: function(id, dateStr) {\\n        var onSelect,\\n            target = $(id),\\n            inst = this._getInst(target[0]);\\n\\n        dateStr = (dateStr != null ? dateStr : this._formatDate(inst));\\n        if (inst.input) {\\n            inst.input.val(dateStr);\\n        }\\n        this._updateAlternate(inst);\\n\\n        onSelect = this._get(inst, \\\"onSelect\\\");\\n        if (onSelect) {\\n            onSelect.apply((inst.input ? inst.input[0] : null), [dateStr, inst]);  // trigger custom callback\\n        } else if (inst.input) {\\n            inst.input.trigger(\\\"change\\\"); // fire the change event\\n        }\\n\\n        if (inst.inline){\\n            this._updateDatepicker(inst);\\n        } else {\\n            this._hideDatepicker();\\n            this._lastInput = inst.input[0];\\n            if (typeof(inst.input[0]) !== \\\"object\\\") {\\n                inst.input.focus(); // restore focus\\n            }\\n            this._lastInput = null;\\n        }\\n    },\\n\\n    /* Update any alternate field to synchronise with the main field. */\\n    _updateAlternate: function(inst) {\\n        var altFormat, date, dateStr,\\n            altField = this._get(inst, \\\"altField\\\");\\n\\n        if (altField) { // update alternate field too\\n            altFormat = this._get(inst, \\\"altFormat\\\") || this._get(inst, \\\"dateFormat\\\");\\n            date = this._getDate(inst);\\n            dateStr = this.formatDate(altFormat, date, this._getFormatConfig(inst));\\n            $(altField).each(function() { $(this).val(dateStr); });\\n        }\\n    },\\n\\n    /* Set as beforeShowDay function to prevent selection of weekends.\\n     * @param  date  Date - the date to customise\\n     * @return [boolean, string] - is this date selectable?, what is its CSS class?\\n     */\\n    noWeekends: function(date) {\\n        var day = date.getDay();\\n        return [(day > 0 && day < 6), \\\"\\\"];\\n    },\\n\\n    /* Set as calculateWeek to determine the week of the year based on the ISO 8601 definition.\\n     * @param  date  Date - the date to get the week for\\n     * @return  number - the number of the week within the year that contains this date\\n     */\\n    iso8601Week: function(date) {\\n        var time,\\n            checkDate = new Date(date.getTime());\\n\\n        // Find Thursday of this week starting on Monday\\n        checkDate.setDate(checkDate.getDate() + 4 - (checkDate.getDay() || 7));\\n\\n        time = checkDate.getTime();\\n        checkDate.setMonth(0); // Compare with Jan 1\\n        checkDate.setDate(1);\\n        return Math.floor(Math.round((time - checkDate) / 86400000) / 7) + 1;\\n    },\\n\\n    /* Parse a string value into a date object.\\n     * See formatDate below for the possible formats.\\n     *\\n     * @param  format string - the expected format of the date\\n     * @param  value string - the date in the above format\\n     * @param  settings Object - attributes include:\\n     *                  shortYearCutoff  number - the cutoff year for determining the century (optional)\\n     *                  dayNamesShort   string[7] - abbreviated names of the days from Sunday (optional)\\n     *                  dayNames        string[7] - names of the days from Sunday (optional)\\n     *                  monthNamesShort string[12] - abbreviated names of the months (optional)\\n     *                  monthNames      string[12] - names of the months (optional)\\n     * @return  Date - the extracted date value or null if value is blank\\n     */\\n    parseDate: function (format, value, settings) {\\n        if (format == null || value == null) {\\n            throw \\\"Invalid arguments\\\";\\n        }\\n\\n        value = (typeof value === \\\"object\\\" ? value.toString() : value + \\\"\\\");\\n        if (value === \\\"\\\") {\\n            return null;\\n        }\\n\\n        var iFormat, dim, extra,\\n            iValue = 0,\\n            shortYearCutoffTemp = (settings ? settings.shortYearCutoff : null) || this._defaults.shortYearCutoff,\\n            shortYearCutoff = (typeof shortYearCutoffTemp !== \\\"string\\\" ? shortYearCutoffTemp :\\n                new Date().getFullYear() % 100 + parseInt(shortYearCutoffTemp, 10)),\\n            dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort,\\n            dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames,\\n            monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort,\\n            monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames,\\n            year = -1,\\n            month = -1,\\n            day = -1,\\n            doy = -1,\\n            literal = false,\\n            date,\\n            // Check whether a format character is doubled\\n            lookAhead = function(match) {\\n                var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) === match);\\n                if (matches) {\\n                    iFormat++;\\n                }\\n                return matches;\\n            },\\n            // Extract a number from the string value\\n            getNumber = function(match) {\\n                var isDoubled = lookAhead(match),\\n                    size = (match === \\\"@\\\" ? 14 : (match === \\\"!\\\" ? 20 :\\n                    (match === \\\"y\\\" && isDoubled ? 4 : (match === \\\"o\\\" ? 3 : 2)))),\\n                    digits = new RegExp(\\\"^\\\\\\\\d{1,\\\" + size + \\\"}\\\"),\\n                    num = value.substring(iValue).match(digits);\\n                if (!num) {\\n                    throw \\\"Missing number at position \\\" + iValue;\\n                }\\n                iValue += num[0].length;\\n                return parseInt(num[0], 10);\\n            },\\n            // Extract a name from the string value and convert to an index\\n            getName = function(match, shortNames, longNames) {\\n                var index = -1,\\n                    names = $.map(lookAhead(match) ? longNames : shortNames, function (v, k) {\\n                        return [ [k, v] ];\\n                    }).sort(function (a, b) {\\n                        return -(a[1].length - b[1].length);\\n                    });\\n\\n                $.each(names, function (i, pair) {\\n                    var name = pair[1];\\n                    if (value.substr(iValue, name.length).toLowerCase() === name.toLowerCase()) {\\n                        index = pair[0];\\n                        iValue += name.length;\\n                        return false;\\n                    }\\n                });\\n                if (index !== -1) {\\n                    return index + 1;\\n                } else {\\n                    throw \\\"Unknown name at position \\\" + iValue;\\n                }\\n            },\\n            // Confirm that a literal character matches the string value\\n            checkLiteral = function() {\\n                if (value.charAt(iValue) !== format.charAt(iFormat)) {\\n                    throw \\\"Unexpected literal at position \\\" + iValue;\\n                }\\n                iValue++;\\n            };\\n\\n        for (iFormat = 0; iFormat < format.length; iFormat++) {\\n            if (literal) {\\n                if (format.charAt(iFormat) === \\\"'\\\" && !lookAhead(\\\"'\\\")) {\\n                    literal = false;\\n                } else {\\n                    checkLiteral();\\n                }\\n            } else {\\n                switch (format.charAt(iFormat)) {\\n                    case \\\"d\\\":\\n                        day = getNumber(\\\"d\\\");\\n                        break;\\n                    case \\\"D\\\":\\n                        getName(\\\"D\\\", dayNamesShort, dayNames);\\n                        break;\\n                    case \\\"o\\\":\\n                        doy = getNumber(\\\"o\\\");\\n                        break;\\n                    case \\\"m\\\":\\n                        month = getNumber(\\\"m\\\");\\n                        break;\\n                    case \\\"M\\\":\\n                        month = getName(\\\"M\\\", monthNamesShort, monthNames);\\n                        break;\\n                    case \\\"y\\\":\\n                        year = getNumber(\\\"y\\\");\\n                        break;\\n                    case \\\"@\\\":\\n                        date = new Date(getNumber(\\\"@\\\"));\\n                        year = date.getFullYear();\\n                        month = date.getMonth() + 1;\\n                        day = date.getDate();\\n                        break;\\n                    case \\\"!\\\":\\n                        date = new Date((getNumber(\\\"!\\\") - this._ticksTo1970) / 10000);\\n                        year = date.getFullYear();\\n                        month = date.getMonth() + 1;\\n                        day = date.getDate();\\n                        break;\\n                    case \\\"'\\\":\\n                        if (lookAhead(\\\"'\\\")){\\n                            checkLiteral();\\n                        } else {\\n                            literal = true;\\n                        }\\n                        break;\\n                    default:\\n                        checkLiteral();\\n                }\\n            }\\n        }\\n\\n        if (iValue < value.length){\\n            extra = value.substr(iValue);\\n            if (!/^\\\\s+/.test(extra)) {\\n                throw \\\"Extra/unparsed characters found in date: \\\" + extra;\\n            }\\n        }\\n\\n        if (year === -1) {\\n            year = new Date().getFullYear();\\n        } else if (year < 100) {\\n            year += new Date().getFullYear() - new Date().getFullYear() % 100 +\\n                (year <= shortYearCutoff ? 0 : -100);\\n        }\\n\\n        if (doy > -1) {\\n            month = 1;\\n            day = doy;\\n            do {\\n                dim = this._getDaysInMonth(year, month - 1);\\n                if (day <= dim) {\\n                    break;\\n                }\\n                month++;\\n                day -= dim;\\n            } while (true);\\n        }\\n\\n        date = this._daylightSavingAdjust(new Date(year, month - 1, day));\\n        if (date.getFullYear() !== year || date.getMonth() + 1 !== month || date.getDate() !== day) {\\n            throw \\\"Invalid date\\\"; // E.g. 31/02/00\\n        }\\n        return date;\\n    },\\n\\n    /* Standard date formats. */\\n    ATOM: \\\"yy-mm-dd\\\", // RFC 3339 (ISO 8601)\\n    COOKIE: \\\"D, dd M yy\\\",\\n    ISO_8601: \\\"yy-mm-dd\\\",\\n    RFC_822: \\\"D, d M y\\\",\\n    RFC_850: \\\"DD, dd-M-y\\\",\\n    RFC_1036: \\\"D, d M y\\\",\\n    RFC_1123: \\\"D, d M yy\\\",\\n    RFC_2822: \\\"D, d M yy\\\",\\n    RSS: \\\"D, d M y\\\", // RFC 822\\n    TICKS: \\\"!\\\",\\n    TIMESTAMP: \\\"@\\\",\\n    W3C: \\\"yy-mm-dd\\\", // ISO 8601\\n\\n    _ticksTo1970: (((1970 - 1) * 365 + Math.floor(1970 / 4) - Math.floor(1970 / 100) +\\n        Math.floor(1970 / 400)) * 24 * 60 * 60 * 10000000),\\n\\n    /* Format a date object into a string value.\\n     * The format can be combinations of the following:\\n     * d  - day of month (no leading zero)\\n     * dd - day of month (two digit)\\n     * o  - day of year (no leading zeros)\\n     * oo - day of year (three digit)\\n     * D  - day name short\\n     * DD - day name long\\n     * m  - month of year (no leading zero)\\n     * mm - month of year (two digit)\\n     * M  - month name short\\n     * MM - month name long\\n     * y  - year (two digit)\\n     * yy - year (four digit)\\n     * @ - Unix timestamp (ms since 01/01/1970)\\n     * ! - Windows ticks (100ns since 01/01/0001)\\n     * \\\"...\\\" - literal text\\n     * '' - single quote\\n     *\\n     * @param  format string - the desired format of the date\\n     * @param  date Date - the date value to format\\n     * @param  settings Object - attributes include:\\n     *                  dayNamesShort   string[7] - abbreviated names of the days from Sunday (optional)\\n     *                  dayNames        string[7] - names of the days from Sunday (optional)\\n     *                  monthNamesShort string[12] - abbreviated names of the months (optional)\\n     *                  monthNames      string[12] - names of the months (optional)\\n     * @return  string - the date in the above format\\n     */\\n    formatDate: function (format, date, settings) {\\n        if (!date) {\\n            return \\\"\\\";\\n        }\\n\\n        var iFormat,\\n            dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort,\\n            dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames,\\n            monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort,\\n            monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames,\\n            // Check whether a format character is doubled\\n            lookAhead = function(match) {\\n                var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) === match);\\n                if (matches) {\\n                    iFormat++;\\n                }\\n                return matches;\\n            },\\n            // Format a number, with leading zero if necessary\\n            formatNumber = function(match, value, len) {\\n                var num = \\\"\\\" + value;\\n                if (lookAhead(match)) {\\n                    while (num.length < len) {\\n                        num = \\\"0\\\" + num;\\n                    }\\n                }\\n                return num;\\n            },\\n            // Format a name, short or long as requested\\n            formatName = function(match, value, shortNames, longNames) {\\n                return (lookAhead(match) ? longNames[value] : shortNames[value]);\\n            },\\n            output = \\\"\\\",\\n            literal = false;\\n\\n        if (date) {\\n            for (iFormat = 0; iFormat < format.length; iFormat++) {\\n                if (literal) {\\n                    if (format.charAt(iFormat) === \\\"'\\\" && !lookAhead(\\\"'\\\")) {\\n                        literal = false;\\n                    } else {\\n                        output += format.charAt(iFormat);\\n                    }\\n                } else {\\n                    switch (format.charAt(iFormat)) {\\n                        case \\\"d\\\":\\n                            output += formatNumber(\\\"d\\\", date.getDate(), 2);\\n                            break;\\n                        case \\\"D\\\":\\n                            output += formatName(\\\"D\\\", date.getDay(), dayNamesShort, dayNames);\\n                            break;\\n                        case \\\"o\\\":\\n                            output += formatNumber(\\\"o\\\",\\n                                Math.round((new Date(date.getFullYear(), date.getMonth(), date.getDate()).getTime() - new Date(date.getFullYear(), 0, 0).getTime()) / 86400000), 3);\\n                            break;\\n                        case \\\"m\\\":\\n                            output += formatNumber(\\\"m\\\", date.getMonth() + 1, 2);\\n                            break;\\n                        case \\\"M\\\":\\n                            output += formatName(\\\"M\\\", date.getMonth(), monthNamesShort, monthNames);\\n                            break;\\n                        case \\\"y\\\":\\n                            output += (lookAhead(\\\"y\\\") ? date.getFullYear() :\\n                                (date.getYear() % 100 < 10 ? \\\"0\\\" : \\\"\\\") + date.getYear() % 100);\\n                            break;\\n                        case \\\"@\\\":\\n                            output += date.getTime();\\n                            break;\\n                        case \\\"!\\\":\\n                            output += date.getTime() * 10000 + this._ticksTo1970;\\n                            break;\\n                        case \\\"'\\\":\\n                            if (lookAhead(\\\"'\\\")) {\\n                                output += \\\"'\\\";\\n                            } else {\\n                                literal = true;\\n                            }\\n                            break;\\n                        default:\\n                            output += format.charAt(iFormat);\\n                    }\\n                }\\n            }\\n        }\\n        return output;\\n    },\\n\\n    /* Extract all possible characters from the date format. */\\n    _possibleChars: function (format) {\\n        var iFormat,\\n            chars = \\\"\\\",\\n            literal = false,\\n            // Check whether a format character is doubled\\n            lookAhead = function(match) {\\n                var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) === match);\\n                if (matches) {\\n                    iFormat++;\\n                }\\n                return matches;\\n            };\\n\\n        for (iFormat = 0; iFormat < format.length; iFormat++) {\\n            if (literal) {\\n                if (format.charAt(iFormat) === \\\"'\\\" && !lookAhead(\\\"'\\\")) {\\n                    literal = false;\\n                } else {\\n                    chars += format.charAt(iFormat);\\n                }\\n            } else {\\n                switch (format.charAt(iFormat)) {\\n                    case \\\"d\\\": case \\\"m\\\": case \\\"y\\\": case \\\"@\\\":\\n                        chars += \\\"0123456789\\\";\\n                        break;\\n                    case \\\"D\\\": case \\\"M\\\":\\n                        return null; // Accept anything\\n                    case \\\"'\\\":\\n                        if (lookAhead(\\\"'\\\")) {\\n                            chars += \\\"'\\\";\\n                        } else {\\n                            literal = true;\\n                        }\\n                        break;\\n                    default:\\n                        chars += format.charAt(iFormat);\\n                }\\n            }\\n        }\\n        return chars;\\n    },\\n\\n    /* Get a setting value, defaulting if necessary. */\\n    _get: function(inst, name) {\\n        return inst.settings[name] !== undefined ?\\n            inst.settings[name] : this._defaults[name];\\n    },\\n\\n    /* Parse existing date and initialise date picker. */\\n    _setDateFromField: function(inst, noDefault) {\\n        if (inst.input.val() === inst.lastVal) {\\n            return;\\n        }\\n\\n        var dateFormat = this._get(inst, \\\"dateFormat\\\"),\\n            dates = inst.lastVal = inst.input ? inst.input.val() : null,\\n            defaultDate = this._getDefaultDate(inst),\\n            date = defaultDate,\\n            settings = this._getFormatConfig(inst);\\n\\n        try {\\n            date = this.parseDate(dateFormat, dates, settings) || defaultDate;\\n        } catch (event) {\\n            dates = (noDefault ? \\\"\\\" : dates);\\n        }\\n        inst.selectedDay = date.getDate();\\n        inst.drawMonth = inst.selectedMonth = date.getMonth();\\n        inst.drawYear = inst.selectedYear = date.getFullYear();\\n        inst.currentDay = (dates ? date.getDate() : 0);\\n        inst.currentMonth = (dates ? date.getMonth() : 0);\\n        inst.currentYear = (dates ? date.getFullYear() : 0);\\n        this._adjustInstDate(inst);\\n    },\\n\\n    /* Retrieve the default date shown on opening. */\\n    _getDefaultDate: function(inst) {\\n        return this._restrictMinMax(inst,\\n            this._determineDate(inst, this._get(inst, \\\"defaultDate\\\"), new Date()));\\n    },\\n\\n    /* A date may be specified as an exact value or a relative one. */\\n    _determineDate: function(inst, date, defaultDate) {\\n        var offsetNumeric = function(offset) {\\n                var date = new Date();\\n                date.setDate(date.getDate() + offset);\\n                return date;\\n            },\\n            offsetString = function(offset) {\\n                try {\\n                    return $.datepicker.parseDate($.datepicker._get(inst, \\\"dateFormat\\\"),\\n                        offset, $.datepicker._getFormatConfig(inst));\\n                }\\n                catch (e) {\\n                    // Ignore\\n                }\\n\\n                var date = (offset.toLowerCase().match(/^c/) ?\\n                    $.datepicker._getDate(inst) : null) || new Date(),\\n                    year = date.getFullYear(),\\n                    month = date.getMonth(),\\n                    day = date.getDate(),\\n                    pattern = /([+\\\\-]?[0-9]+)\\\\s*(d|D|w|W|m|M|y|Y)?/g,\\n                    matches = pattern.exec(offset);\\n\\n                while (matches) {\\n                    switch (matches[2] || \\\"d\\\") {\\n                        case \\\"d\\\" : case \\\"D\\\" :\\n                            day += parseInt(matches[1],10); break;\\n                        case \\\"w\\\" : case \\\"W\\\" :\\n                            day += parseInt(matches[1],10) * 7; break;\\n                        case \\\"m\\\" : case \\\"M\\\" :\\n                            month += parseInt(matches[1],10);\\n                            day = Math.min(day, $.datepicker._getDaysInMonth(year, month));\\n                            break;\\n                        case \\\"y\\\": case \\\"Y\\\" :\\n                            year += parseInt(matches[1],10);\\n                            day = Math.min(day, $.datepicker._getDaysInMonth(year, month));\\n                            break;\\n                    }\\n                    matches = pattern.exec(offset);\\n                }\\n                return new Date(year, month, day);\\n            },\\n            newDate = (date == null || date === \\\"\\\" ? defaultDate : (typeof date === \\\"string\\\" ? offsetString(date) :\\n                (typeof date === \\\"number\\\" ? (isNaN(date) ? defaultDate : offsetNumeric(date)) : new Date(date.getTime()))));\\n\\n        newDate = (newDate && newDate.toString() === \\\"Invalid Date\\\" ? defaultDate : newDate);\\n        if (newDate) {\\n            newDate.setHours(0);\\n            newDate.setMinutes(0);\\n            newDate.setSeconds(0);\\n            newDate.setMilliseconds(0);\\n        }\\n        return this._daylightSavingAdjust(newDate);\\n    },\\n\\n    /* Handle switch to/from daylight saving.\\n     * Hours may be non-zero on daylight saving cut-over:\\n     * > 12 when midnight changeover, but then cannot generate\\n     * midnight datetime, so jump to 1AM, otherwise reset.\\n     * @param  date  (Date) the date to check\\n     * @return  (Date) the corrected date\\n     */\\n    _daylightSavingAdjust: function(date) {\\n        if (!date) {\\n            return null;\\n        }\\n        date.setHours(date.getHours() > 12 ? date.getHours() + 2 : 0);\\n        return date;\\n    },\\n\\n    /* Set the date(s) directly. */\\n    _setDate: function(inst, date, noChange) {\\n        var clear = !date,\\n            origMonth = inst.selectedMonth,\\n            origYear = inst.selectedYear,\\n            newDate = this._restrictMinMax(inst, this._determineDate(inst, date, new Date()));\\n\\n        inst.selectedDay = inst.currentDay = newDate.getDate();\\n        inst.drawMonth = inst.selectedMonth = inst.currentMonth = newDate.getMonth();\\n        inst.drawYear = inst.selectedYear = inst.currentYear = newDate.getFullYear();\\n        if ((origMonth !== inst.selectedMonth || origYear !== inst.selectedYear) && !noChange) {\\n            this._notifyChange(inst);\\n        }\\n        this._adjustInstDate(inst);\\n        if (inst.input) {\\n            inst.input.val(clear ? \\\"\\\" : this._formatDate(inst));\\n        }\\n    },\\n\\n    /* Retrieve the date(s) directly. */\\n    _getDate: function(inst) {\\n        var startDate = (!inst.currentYear || (inst.input && inst.input.val() === \\\"\\\") ? null :\\n            this._daylightSavingAdjust(new Date(\\n            inst.currentYear, inst.currentMonth, inst.currentDay)));\\n            return startDate;\\n    },\\n\\n    /* Attach the onxxx handlers.  These are declared statically so\\n     * they work with static code transformers like Caja.\\n     */\\n    _attachHandlers: function(inst) {\\n        var stepMonths = this._get(inst, \\\"stepMonths\\\"),\\n            id = \\\"#\\\" + inst.id.replace( /\\\\\\\\\\\\\\\\/g, \\\"\\\\\\\\\\\" );\\n        inst.dpDiv.find(\\\"[data-handler]\\\").map(function () {\\n            var handler = {\\n                prev: function () {\\n                    $.datepicker._adjustDate(id, -stepMonths, \\\"M\\\");\\n                },\\n                next: function () {\\n                    $.datepicker._adjustDate(id, +stepMonths, \\\"M\\\");\\n                },\\n                hide: function () {\\n                    $.datepicker._hideDatepicker();\\n                },\\n                today: function () {\\n                    $.datepicker._gotoToday(id);\\n                },\\n                selectDay: function () {\\n                    $.datepicker._selectDay(id, +this.getAttribute(\\\"data-month\\\"), +this.getAttribute(\\\"data-year\\\"), this);\\n                    return false;\\n                },\\n                selectMonth: function () {\\n                    $.datepicker._selectMonthYear(id, this, \\\"M\\\");\\n                    return false;\\n                },\\n                selectYear: function () {\\n                    $.datepicker._selectMonthYear(id, this, \\\"Y\\\");\\n                    return false;\\n                }\\n            };\\n            $(this).bind(this.getAttribute(\\\"data-event\\\"), handler[this.getAttribute(\\\"data-handler\\\")]);\\n        });\\n    },\\n\\n    /* Generate the HTML for the current state of the date picker. */\\n    _generateHTML: function(inst) {\\n        var maxDraw, prevText, prev, nextText, next, currentText, gotoDate,\\n            controls, buttonPanel, firstDay, showWeek, dayNames, dayNamesMin,\\n            monthNames, monthNamesShort, beforeShowDay, showOtherMonths,\\n            selectOtherMonths, defaultDate, html, dow, row, group, col, selectedDate,\\n            cornerClass, calender, thead, day, daysInMonth, leadDays, curRows, numRows,\\n            printDate, dRow, tbody, daySettings, otherMonth, unselectable,\\n            tempDate = new Date(),\\n            today = this._daylightSavingAdjust(\\n                new Date(tempDate.getFullYear(), tempDate.getMonth(), tempDate.getDate())), // clear time\\n            isRTL = this._get(inst, \\\"isRTL\\\"),\\n            showButtonPanel = this._get(inst, \\\"showButtonPanel\\\"),\\n            hideIfNoPrevNext = this._get(inst, \\\"hideIfNoPrevNext\\\"),\\n            navigationAsDateFormat = this._get(inst, \\\"navigationAsDateFormat\\\"),\\n            numMonths = this._getNumberOfMonths(inst),\\n            showCurrentAtPos = this._get(inst, \\\"showCurrentAtPos\\\"),\\n            stepMonths = this._get(inst, \\\"stepMonths\\\"),\\n            isMultiMonth = (numMonths[0] !== 1 || numMonths[1] !== 1),\\n            currentDate = this._daylightSavingAdjust((!inst.currentDay ? new Date(9999, 9, 9) :\\n                new Date(inst.currentYear, inst.currentMonth, inst.currentDay))),\\n            minDate = this._getMinMaxDate(inst, \\\"min\\\"),\\n            maxDate = this._getMinMaxDate(inst, \\\"max\\\"),\\n            drawMonth = inst.drawMonth - showCurrentAtPos,\\n            drawYear = inst.drawYear;\\n\\n        if (drawMonth < 0) {\\n            drawMonth += 12;\\n            drawYear--;\\n        }\\n        if (maxDate) {\\n            maxDraw = this._daylightSavingAdjust(new Date(maxDate.getFullYear(),\\n                maxDate.getMonth() - (numMonths[0] * numMonths[1]) + 1, maxDate.getDate()));\\n            maxDraw = (minDate && maxDraw < minDate ? minDate : maxDraw);\\n            while (this._daylightSavingAdjust(new Date(drawYear, drawMonth, 1)) > maxDraw) {\\n                drawMonth--;\\n                if (drawMonth < 0) {\\n                    drawMonth = 11;\\n                    drawYear--;\\n                }\\n            }\\n        }\\n        inst.drawMonth = drawMonth;\\n        inst.drawYear = drawYear;\\n\\n        prevText = this._get(inst, \\\"prevText\\\");\\n        prevText = (!navigationAsDateFormat ? prevText : this.formatDate(prevText,\\n            this._daylightSavingAdjust(new Date(drawYear, drawMonth - stepMonths, 1)),\\n            this._getFormatConfig(inst)));\\n\\n        prev = (this._canAdjustMonth(inst, -1, drawYear, drawMonth) ?\\n            \\\"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click'\\\" +\\n            \\\" title='\\\" + prevText + \\\"'><span class='ui-icon ui-icon-circle-triangle-\\\" + ( isRTL ? \\\"e\\\" : \\\"w\\\") + \\\"'>\\\" + prevText + \\\"</span></a>\\\" :\\n            (hideIfNoPrevNext ? \\\"\\\" : \\\"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='\\\"+ prevText +\\\"'><span class='ui-icon ui-icon-circle-triangle-\\\" + ( isRTL ? \\\"e\\\" : \\\"w\\\") + \\\"'>\\\" + prevText + \\\"</span></a>\\\"));\\n\\n        nextText = this._get(inst, \\\"nextText\\\");\\n        nextText = (!navigationAsDateFormat ? nextText : this.formatDate(nextText,\\n            this._daylightSavingAdjust(new Date(drawYear, drawMonth + stepMonths, 1)),\\n            this._getFormatConfig(inst)));\\n\\n        next = (this._canAdjustMonth(inst, +1, drawYear, drawMonth) ?\\n            \\\"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click'\\\" +\\n            \\\" title='\\\" + nextText + \\\"'><span class='ui-icon ui-icon-circle-triangle-\\\" + ( isRTL ? \\\"w\\\" : \\\"e\\\") + \\\"'>\\\" + nextText + \\\"</span></a>\\\" :\\n            (hideIfNoPrevNext ? \\\"\\\" : \\\"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='\\\"+ nextText + \\\"'><span class='ui-icon ui-icon-circle-triangle-\\\" + ( isRTL ? \\\"w\\\" : \\\"e\\\") + \\\"'>\\\" + nextText + \\\"</span></a>\\\"));\\n\\n        currentText = this._get(inst, \\\"currentText\\\");\\n        gotoDate = (this._get(inst, \\\"gotoCurrent\\\") && inst.currentDay ? currentDate : today);\\n        currentText = (!navigationAsDateFormat ? currentText :\\n            this.formatDate(currentText, gotoDate, this._getFormatConfig(inst)));\\n\\n        controls = (!inst.inline ? \\\"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>\\\" +\\n            this._get(inst, \\\"closeText\\\") + \\\"</button>\\\" : \\\"\\\");\\n\\n        buttonPanel = (showButtonPanel) ? \\\"<div class='ui-datepicker-buttonpane ui-widget-content'>\\\" + (isRTL ? controls : \\\"\\\") +\\n            (this._isInRange(inst, gotoDate) ? \\\"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'\\\" +\\n            \\\">\\\" + currentText + \\\"</button>\\\" : \\\"\\\") + (isRTL ? \\\"\\\" : controls) + \\\"</div>\\\" : \\\"\\\";\\n\\n        firstDay = parseInt(this._get(inst, \\\"firstDay\\\"),10);\\n        firstDay = (isNaN(firstDay) ? 0 : firstDay);\\n\\n        showWeek = this._get(inst, \\\"showWeek\\\");\\n        dayNames = this._get(inst, \\\"dayNames\\\");\\n        dayNamesMin = this._get(inst, \\\"dayNamesMin\\\");\\n        monthNames = this._get(inst, \\\"monthNames\\\");\\n        monthNamesShort = this._get(inst, \\\"monthNamesShort\\\");\\n        beforeShowDay = this._get(inst, \\\"beforeShowDay\\\");\\n        showOtherMonths = this._get(inst, \\\"showOtherMonths\\\");\\n        selectOtherMonths = this._get(inst, \\\"selectOtherMonths\\\");\\n        defaultDate = this._getDefaultDate(inst);\\n        html = \\\"\\\";\\n        dow;\\n        for (row = 0; row < numMonths[0]; row++) {\\n            group = \\\"\\\";\\n            this.maxRows = 4;\\n            for (col = 0; col < numMonths[1]; col++) {\\n                selectedDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, inst.selectedDay));\\n                cornerClass = \\\" ui-corner-all\\\";\\n                calender = \\\"\\\";\\n                if (isMultiMonth) {\\n                    calender += \\\"<div class='ui-datepicker-group\\\";\\n                    if (numMonths[1] > 1) {\\n                        switch (col) {\\n                            case 0: calender += \\\" ui-datepicker-group-first\\\";\\n                                cornerClass = \\\" ui-corner-\\\" + (isRTL ? \\\"right\\\" : \\\"left\\\"); break;\\n                            case numMonths[1]-1: calender += \\\" ui-datepicker-group-last\\\";\\n                                cornerClass = \\\" ui-corner-\\\" + (isRTL ? \\\"left\\\" : \\\"right\\\"); break;\\n                            default: calender += \\\" ui-datepicker-group-middle\\\"; cornerClass = \\\"\\\"; break;\\n                        }\\n                    }\\n                    calender += \\\"'>\\\";\\n                }\\n                calender += \\\"<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix\\\" + cornerClass + \\\"'>\\\" +\\n                    (/all|left/.test(cornerClass) && row === 0 ? (isRTL ? next : prev) : \\\"\\\") +\\n                    (/all|right/.test(cornerClass) && row === 0 ? (isRTL ? prev : next) : \\\"\\\") +\\n                    this._generateMonthYearHeader(inst, drawMonth, drawYear, minDate, maxDate,\\n                    row > 0 || col > 0, monthNames, monthNamesShort) + // draw month headers\\n                    \\\"</div><table class='ui-datepicker-calendar'><thead>\\\" +\\n                    \\\"<tr>\\\";\\n                thead = (showWeek ? \\\"<th class='ui-datepicker-week-col'>\\\" + this._get(inst, \\\"weekHeader\\\") + \\\"</th>\\\" : \\\"\\\");\\n                for (dow = 0; dow < 7; dow++) { // days of the week\\n                    day = (dow + firstDay) % 7;\\n                    thead += \\\"<th\\\" + ((dow + firstDay + 6) % 7 >= 5 ? \\\" class='ui-datepicker-week-end'\\\" : \\\"\\\") + \\\">\\\" +\\n                        \\\"<span title='\\\" + dayNames[day] + \\\"'>\\\" + dayNamesMin[day] + \\\"</span></th>\\\";\\n                }\\n                calender += thead + \\\"</tr></thead><tbody>\\\";\\n                daysInMonth = this._getDaysInMonth(drawYear, drawMonth);\\n                if (drawYear === inst.selectedYear && drawMonth === inst.selectedMonth) {\\n                    inst.selectedDay = Math.min(inst.selectedDay, daysInMonth);\\n                }\\n                leadDays = (this._getFirstDayOfMonth(drawYear, drawMonth) - firstDay + 7) % 7;\\n                curRows = Math.ceil((leadDays + daysInMonth) / 7); // calculate the number of rows to generate\\n                numRows = (isMultiMonth ? this.maxRows > curRows ? this.maxRows : curRows : curRows); //If multiple months, use the higher number of rows (see #7043)\\n                this.maxRows = numRows;\\n                printDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, 1 - leadDays));\\n                for (dRow = 0; dRow < numRows; dRow++) { // create date picker rows\\n                    calender += \\\"<tr>\\\";\\n                    tbody = (!showWeek ? \\\"\\\" : \\\"<td class='ui-datepicker-week-col'>\\\" +\\n                        this._get(inst, \\\"calculateWeek\\\")(printDate) + \\\"</td>\\\");\\n                    for (dow = 0; dow < 7; dow++) { // create date picker days\\n                        daySettings = (beforeShowDay ?\\n                            beforeShowDay.apply((inst.input ? inst.input[0] : null), [printDate]) : [true, \\\"\\\"]);\\n                        otherMonth = (printDate.getMonth() !== drawMonth);\\n                        unselectable = (otherMonth && !selectOtherMonths) || !daySettings[0] ||\\n                            (minDate && printDate < minDate) || (maxDate && printDate > maxDate);\\n                        tbody += \\\"<td class='\\\" +\\n                            ((dow + firstDay + 6) % 7 >= 5 ? \\\" ui-datepicker-week-end\\\" : \\\"\\\") + // highlight weekends\\n                            (otherMonth ? \\\" ui-datepicker-other-month\\\" : \\\"\\\") + // highlight days from other months\\n                            ((printDate.getTime() === selectedDate.getTime() && drawMonth === inst.selectedMonth && inst._keyEvent) || // user pressed key\\n                            (defaultDate.getTime() === printDate.getTime() && defaultDate.getTime() === selectedDate.getTime()) ?\\n                            // or defaultDate is current printedDate and defaultDate is selectedDate\\n                            \\\" \\\" + this._dayOverClass : \\\"\\\") + // highlight selected day\\n                            (unselectable ? \\\" \\\" + this._unselectableClass + \\\" ui-state-disabled\\\": \\\"\\\") +  // highlight unselectable days\\n                            (otherMonth && !showOtherMonths ? \\\"\\\" : \\\" \\\" + daySettings[1] + // highlight custom dates\\n                            (printDate.getTime() === currentDate.getTime() ? \\\" \\\" + this._currentClass : \\\"\\\") + // highlight selected day\\n                            (printDate.getTime() === today.getTime() ? \\\" ui-datepicker-today\\\" : \\\"\\\")) + \\\"'\\\" + // highlight today (if different)\\n                            ((!otherMonth || showOtherMonths) && daySettings[2] ? \\\" title='\\\" + daySettings[2].replace(/'/g, \\\"&#39;\\\") + \\\"'\\\" : \\\"\\\") + // cell title\\n                            (unselectable ? \\\"\\\" : \\\" data-handler='selectDay' data-event='click' data-month='\\\" + printDate.getMonth() + \\\"' data-year='\\\" + printDate.getFullYear() + \\\"'\\\") + \\\">\\\" + // actions\\n                            (otherMonth && !showOtherMonths ? \\\"&#xa0;\\\" : // display for other months\\n                            (unselectable ? \\\"<span class='ui-state-default'>\\\" + printDate.getDate() + \\\"</span>\\\" : \\\"<a class='ui-state-default\\\" +\\n                            (printDate.getTime() === today.getTime() ? \\\" ui-state-highlight\\\" : \\\"\\\") +\\n                            (printDate.getTime() === currentDate.getTime() ? \\\" ui-state-active\\\" : \\\"\\\") + // highlight selected day\\n                            (otherMonth ? \\\" ui-priority-secondary\\\" : \\\"\\\") + // distinguish dates from other months\\n                            \\\"' href='#'>\\\" + printDate.getDate() + \\\"</a>\\\")) + \\\"</td>\\\"; // display selectable date\\n                        printDate.setDate(printDate.getDate() + 1);\\n                        printDate = this._daylightSavingAdjust(printDate);\\n                    }\\n                    calender += tbody + \\\"</tr>\\\";\\n                }\\n                drawMonth++;\\n                if (drawMonth > 11) {\\n                    drawMonth = 0;\\n                    drawYear++;\\n                }\\n                calender += \\\"</tbody></table>\\\" + (isMultiMonth ? \\\"</div>\\\" +\\n                            ((numMonths[0] > 0 && col === numMonths[1]-1) ? \\\"<div class='ui-datepicker-row-break'></div>\\\" : \\\"\\\") : \\\"\\\");\\n                group += calender;\\n            }\\n            html += group;\\n        }\\n        html += buttonPanel;\\n        inst._keyEvent = false;\\n        return html;\\n    },\\n\\n    /* Generate the month and year header. */\\n    _generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate,\\n            secondary, monthNames, monthNamesShort) {\\n\\n        var inMinYear, inMaxYear, month, years, thisYear, determineYear, year, endYear,\\n            changeMonth = this._get(inst, \\\"changeMonth\\\"),\\n            changeYear = this._get(inst, \\\"changeYear\\\"),\\n            showMonthAfterYear = this._get(inst, \\\"showMonthAfterYear\\\"),\\n            html = \\\"<div class='ui-datepicker-title'>\\\",\\n            monthHtml = \\\"\\\";\\n\\n        // month selection\\n        if (secondary || !changeMonth) {\\n            monthHtml += \\\"<span class='ui-datepicker-month'>\\\" + monthNames[drawMonth] + \\\"</span>\\\";\\n        } else {\\n            inMinYear = (minDate && minDate.getFullYear() === drawYear);\\n            inMaxYear = (maxDate && maxDate.getFullYear() === drawYear);\\n            monthHtml += \\\"<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>\\\";\\n            for ( month = 0; month < 12; month++) {\\n                if ((!inMinYear || month >= minDate.getMonth()) && (!inMaxYear || month <= maxDate.getMonth())) {\\n                    monthHtml += \\\"<option value='\\\" + month + \\\"'\\\" +\\n                        (month === drawMonth ? \\\" selected='selected'\\\" : \\\"\\\") +\\n                        \\\">\\\" + monthNamesShort[month] + \\\"</option>\\\";\\n                }\\n            }\\n            monthHtml += \\\"</select>\\\";\\n        }\\n\\n        if (!showMonthAfterYear) {\\n            html += monthHtml + (secondary || !(changeMonth && changeYear) ? \\\"&#xa0;\\\" : \\\"\\\");\\n        }\\n\\n        // year selection\\n        if ( !inst.yearshtml ) {\\n            inst.yearshtml = \\\"\\\";\\n            if (secondary || !changeYear) {\\n                html += \\\"<span class='ui-datepicker-year'>\\\" + drawYear + \\\"</span>\\\";\\n            } else {\\n                // determine range of years to display\\n                years = this._get(inst, \\\"yearRange\\\").split(\\\":\\\");\\n                thisYear = new Date().getFullYear();\\n                determineYear = function(value) {\\n                    var year = (value.match(/c[+\\\\-].*/) ? drawYear + parseInt(value.substring(1), 10) :\\n                        (value.match(/[+\\\\-].*/) ? thisYear + parseInt(value, 10) :\\n                        parseInt(value, 10)));\\n                    return (isNaN(year) ? thisYear : year);\\n                };\\n                year = determineYear(years[0]);\\n                endYear = Math.max(year, determineYear(years[1] || \\\"\\\"));\\n                year = (minDate ? Math.max(year, minDate.getFullYear()) : year);\\n                endYear = (maxDate ? Math.min(endYear, maxDate.getFullYear()) : endYear);\\n                inst.yearshtml += \\\"<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>\\\";\\n                for (; year <= endYear; year++) {\\n                    inst.yearshtml += \\\"<option value='\\\" + year + \\\"'\\\" +\\n                        (year === drawYear ? \\\" selected='selected'\\\" : \\\"\\\") +\\n                        \\\">\\\" + year + \\\"</option>\\\";\\n                }\\n                inst.yearshtml += \\\"</select>\\\";\\n\\n                html += inst.yearshtml;\\n                inst.yearshtml = null;\\n            }\\n        }\\n\\n        html += this._get(inst, \\\"yearSuffix\\\");\\n        if (showMonthAfterYear) {\\n            html += (secondary || !(changeMonth && changeYear) ? \\\"&#xa0;\\\" : \\\"\\\") + monthHtml;\\n        }\\n        html += \\\"</div>\\\"; // Close datepicker_header\\n        return html;\\n    },\\n\\n    /* Adjust one of the date sub-fields. */\\n    _adjustInstDate: function(inst, offset, period) {\\n        var year = inst.drawYear + (period === \\\"Y\\\" ? offset : 0),\\n            month = inst.drawMonth + (period === \\\"M\\\" ? offset : 0),\\n            day = Math.min(inst.selectedDay, this._getDaysInMonth(year, month)) + (period === \\\"D\\\" ? offset : 0),\\n            date = this._restrictMinMax(inst, this._daylightSavingAdjust(new Date(year, month, day)));\\n\\n        inst.selectedDay = date.getDate();\\n        inst.drawMonth = inst.selectedMonth = date.getMonth();\\n        inst.drawYear = inst.selectedYear = date.getFullYear();\\n        if (period === \\\"M\\\" || period === \\\"Y\\\") {\\n            this._notifyChange(inst);\\n        }\\n    },\\n\\n    /* Ensure a date is within any min/max bounds. */\\n    _restrictMinMax: function(inst, date) {\\n        var minDate = this._getMinMaxDate(inst, \\\"min\\\"),\\n            maxDate = this._getMinMaxDate(inst, \\\"max\\\"),\\n            newDate = (minDate && date < minDate ? minDate : date);\\n        return (maxDate && newDate > maxDate ? maxDate : newDate);\\n    },\\n\\n    /* Notify change of month/year. */\\n    _notifyChange: function(inst) {\\n        var onChange = this._get(inst, \\\"onChangeMonthYear\\\");\\n        if (onChange) {\\n            onChange.apply((inst.input ? inst.input[0] : null),\\n                [inst.selectedYear, inst.selectedMonth + 1, inst]);\\n        }\\n    },\\n\\n    /* Determine the number of months to show. */\\n    _getNumberOfMonths: function(inst) {\\n        var numMonths = this._get(inst, \\\"numberOfMonths\\\");\\n        return (numMonths == null ? [1, 1] : (typeof numMonths === \\\"number\\\" ? [1, numMonths] : numMonths));\\n    },\\n\\n    /* Determine the current maximum date - ensure no time components are set. */\\n    _getMinMaxDate: function(inst, minMax) {\\n        return this._determineDate(inst, this._get(inst, minMax + \\\"Date\\\"), null);\\n    },\\n\\n    /* Find the number of days in a given month. */\\n    _getDaysInMonth: function(year, month) {\\n        return 32 - this._daylightSavingAdjust(new Date(year, month, 32)).getDate();\\n    },\\n\\n    /* Find the day of the week of the first of a month. */\\n    _getFirstDayOfMonth: function(year, month) {\\n        return new Date(year, month, 1).getDay();\\n    },\\n\\n    /* Determines if we should allow a \\\"next/prev\\\" month display change. */\\n    _canAdjustMonth: function(inst, offset, curYear, curMonth) {\\n        var numMonths = this._getNumberOfMonths(inst),\\n            date = this._daylightSavingAdjust(new Date(curYear,\\n            curMonth + (offset < 0 ? offset : numMonths[0] * numMonths[1]), 1));\\n\\n        if (offset < 0) {\\n            date.setDate(this._getDaysInMonth(date.getFullYear(), date.getMonth()));\\n        }\\n        return this._isInRange(inst, date);\\n    },\\n\\n    /* Is the given date in the accepted range? */\\n    _isInRange: function(inst, date) {\\n        var yearSplit, currentYear,\\n            minDate = this._getMinMaxDate(inst, \\\"min\\\"),\\n            maxDate = this._getMinMaxDate(inst, \\\"max\\\"),\\n            minYear = null,\\n            maxYear = null,\\n            years = this._get(inst, \\\"yearRange\\\");\\n            if (years){\\n                yearSplit = years.split(\\\":\\\");\\n                currentYear = new Date().getFullYear();\\n                minYear = parseInt(yearSplit[0], 10);\\n                maxYear = parseInt(yearSplit[1], 10);\\n                if ( yearSplit[0].match(/[+\\\\-].*/) ) {\\n                    minYear += currentYear;\\n                }\\n                if ( yearSplit[1].match(/[+\\\\-].*/) ) {\\n                    maxYear += currentYear;\\n                }\\n            }\\n\\n        return ((!minDate || date.getTime() >= minDate.getTime()) &&\\n            (!maxDate || date.getTime() <= maxDate.getTime()) &&\\n            (!minYear || date.getFullYear() >= minYear) &&\\n            (!maxYear || date.getFullYear() <= maxYear));\\n    },\\n\\n    /* Provide the configuration settings for formatting/parsing. */\\n    _getFormatConfig: function(inst) {\\n        var shortYearCutoff = this._get(inst, \\\"shortYearCutoff\\\");\\n        shortYearCutoff = (typeof shortYearCutoff !== \\\"string\\\" ? shortYearCutoff :\\n            new Date().getFullYear() % 100 + parseInt(shortYearCutoff, 10));\\n        return {shortYearCutoff: shortYearCutoff,\\n            dayNamesShort: this._get(inst, \\\"dayNamesShort\\\"), dayNames: this._get(inst, \\\"dayNames\\\"),\\n            monthNamesShort: this._get(inst, \\\"monthNamesShort\\\"), monthNames: this._get(inst, \\\"monthNames\\\")};\\n    },\\n\\n    /* Format the given date for display. */\\n    _formatDate: function(inst, day, month, year) {\\n        if (!day) {\\n            inst.currentDay = inst.selectedDay;\\n            inst.currentMonth = inst.selectedMonth;\\n            inst.currentYear = inst.selectedYear;\\n        }\\n        var date = (day ? (typeof day === \\\"object\\\" ? day :\\n            this._daylightSavingAdjust(new Date(year, month, day))) :\\n            this._daylightSavingAdjust(new Date(inst.currentYear, inst.currentMonth, inst.currentDay)));\\n        return this.formatDate(this._get(inst, \\\"dateFormat\\\"), date, this._getFormatConfig(inst));\\n    }\\n});\\n\\n/*\\n * Bind hover events for datepicker elements.\\n * Done via delegate so the binding only occurs once in the lifetime of the parent div.\\n * Global instActive, set by _updateDatepicker allows the handlers to find their way back to the active picker.\\n */\\nfunction bindHover(dpDiv) {\\n    var selector = \\\"button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a\\\";\\n    return dpDiv.delegate(selector, \\\"mouseout\\\", function() {\\n            $(this).removeClass(\\\"ui-state-hover\\\");\\n            if (this.className.indexOf(\\\"ui-datepicker-prev\\\") !== -1) {\\n                $(this).removeClass(\\\"ui-datepicker-prev-hover\\\");\\n            }\\n            if (this.className.indexOf(\\\"ui-datepicker-next\\\") !== -1) {\\n                $(this).removeClass(\\\"ui-datepicker-next-hover\\\");\\n            }\\n        })\\n        .delegate(selector, \\\"mouseover\\\", function(){\\n            if (!$.datepicker._isDisabledDatepicker( instActive.inline ? dpDiv.parent()[0] : instActive.input[0])) {\\n                $(this).parents(\\\".ui-datepicker-calendar\\\").find(\\\"a\\\").removeClass(\\\"ui-state-hover\\\");\\n                $(this).addClass(\\\"ui-state-hover\\\");\\n                if (this.className.indexOf(\\\"ui-datepicker-prev\\\") !== -1) {\\n                    $(this).addClass(\\\"ui-datepicker-prev-hover\\\");\\n                }\\n                if (this.className.indexOf(\\\"ui-datepicker-next\\\") !== -1) {\\n                    $(this).addClass(\\\"ui-datepicker-next-hover\\\");\\n                }\\n            }\\n        });\\n}\\n\\n/* jQuery extend now ignores nulls! */\\nfunction extendRemove(target, props) {\\n    $.extend(target, props);\\n    for (var name in props) {\\n        if (props[name] == null) {\\n            target[name] = props[name];\\n        }\\n    }\\n    return target;\\n}\\n\\n/* Invoke the datepicker functionality.\\n   @param  options  string - a command, optionally followed by additional parameters or\\n                    Object - settings for attaching new datepicker functionality\\n   @return  jQuery object */\\n$.fn.datepicker = function(options){\\n\\n    /* Verify an empty collection wasn't passed - Fixes #6976 */\\n    if ( !this.length ) {\\n        return this;\\n    }\\n\\n    /* Initialise the date picker. */\\n    if (!$.datepicker.initialized) {\\n        $(document).mousedown($.datepicker._checkExternalClick);\\n        $.datepicker.initialized = true;\\n    }\\n\\n    /* Append datepicker main container to body if not exist. */\\n    if ($(\\\"#\\\"+$.datepicker._mainDivId).length === 0) {\\n        $(\\\"body\\\").append($.datepicker.dpDiv);\\n    }\\n\\n    var otherArgs = Array.prototype.slice.call(arguments, 1);\\n    if (typeof options === \\\"string\\\" && (options === \\\"isDisabled\\\" || options === \\\"getDate\\\" || options === \\\"widget\\\")) {\\n        return $.datepicker[\\\"_\\\" + options + \\\"Datepicker\\\"].\\n            apply($.datepicker, [this[0]].concat(otherArgs));\\n    }\\n    if (options === \\\"option\\\" && arguments.length === 2 && typeof arguments[1] === \\\"string\\\") {\\n        return $.datepicker[\\\"_\\\" + options + \\\"Datepicker\\\"].\\n            apply($.datepicker, [this[0]].concat(otherArgs));\\n    }\\n    return this.each(function() {\\n        typeof options === \\\"string\\\" ?\\n            $.datepicker[\\\"_\\\" + options + \\\"Datepicker\\\"].\\n                apply($.datepicker, [this].concat(otherArgs)) :\\n            $.datepicker._attachDatepicker(this, options);\\n    });\\n};\\n\\n$.datepicker = new Datepicker(); // singleton instance\\n$.datepicker.initialized = false;\\n$.datepicker.uuid = new Date().getTime();\\n$.datepicker.version = \\\"1.10.4\\\";\\n\\n})(jQuery);\\n(function( $, undefined ) {\\n\\nvar sizeRelatedOptions = {\\n        buttons: true,\\n        height: true,\\n        maxHeight: true,\\n        maxWidth: true,\\n        minHeight: true,\\n        minWidth: true,\\n        width: true\\n    },\\n    resizableRelatedOptions = {\\n        maxHeight: true,\\n        maxWidth: true,\\n        minHeight: true,\\n        minWidth: true\\n    };\\n\\n$.widget( \\\"ui.dialog\\\", {\\n    version: \\\"1.10.4\\\",\\n    options: {\\n        appendTo: \\\"body\\\",\\n        autoOpen: true,\\n        buttons: [],\\n        closeOnEscape: true,\\n        closeText: \\\"close\\\",\\n        dialogClass: \\\"\\\",\\n        draggable: true,\\n        hide: null,\\n        height: \\\"auto\\\",\\n        maxHeight: null,\\n        maxWidth: null,\\n        minHeight: 150,\\n        minWidth: 150,\\n        modal: false,\\n        position: {\\n            my: \\\"center\\\",\\n            at: \\\"center\\\",\\n            of: window,\\n            collision: \\\"fit\\\",\\n            // Ensure the titlebar is always visible\\n            using: function( pos ) {\\n                var topOffset = $( this ).css( pos ).offset().top;\\n                if ( topOffset < 0 ) {\\n                    $( this ).css( \\\"top\\\", pos.top - topOffset );\\n                }\\n            }\\n        },\\n        resizable: true,\\n        show: null,\\n        title: null,\\n        width: 300,\\n\\n        // callbacks\\n        beforeClose: null,\\n        close: null,\\n        drag: null,\\n        dragStart: null,\\n        dragStop: null,\\n        focus: null,\\n        open: null,\\n        resize: null,\\n        resizeStart: null,\\n        resizeStop: null\\n    },\\n\\n    _create: function() {\\n        this.originalCss = {\\n            display: this.element[0].style.display,\\n            width: this.element[0].style.width,\\n            minHeight: this.element[0].style.minHeight,\\n            maxHeight: this.element[0].style.maxHeight,\\n            height: this.element[0].style.height\\n        };\\n        this.originalPosition = {\\n            parent: this.element.parent(),\\n            index: this.element.parent().children().index( this.element )\\n        };\\n        this.originalTitle = this.element.attr(\\\"title\\\");\\n        this.options.title = this.options.title || this.originalTitle;\\n\\n        this._createWrapper();\\n\\n        this.element\\n            .show()\\n            .removeAttr(\\\"title\\\")\\n            .addClass(\\\"ui-dialog-content ui-widget-content\\\")\\n            .appendTo( this.uiDialog );\\n\\n        this._createTitlebar();\\n        this._createButtonPane();\\n\\n        if ( this.options.draggable && $.fn.draggable ) {\\n            this._makeDraggable();\\n        }\\n        if ( this.options.resizable && $.fn.resizable ) {\\n            this._makeResizable();\\n        }\\n\\n        this._isOpen = false;\\n    },\\n\\n    _init: function() {\\n        if ( this.options.autoOpen ) {\\n            this.open();\\n        }\\n    },\\n\\n    _appendTo: function() {\\n        var element = this.options.appendTo;\\n        if ( element && (element.jquery || element.nodeType) ) {\\n            return $( element );\\n        }\\n        return this.document.find( element || \\\"body\\\" ).eq( 0 );\\n    },\\n\\n    _destroy: function() {\\n        var next,\\n            originalPosition = this.originalPosition;\\n\\n        this._destroyOverlay();\\n\\n        this.element\\n            .removeUniqueId()\\n            .removeClass(\\\"ui-dialog-content ui-widget-content\\\")\\n            .css( this.originalCss )\\n            // Without detaching first, the following becomes really slow\\n            .detach();\\n\\n        this.uiDialog.stop( true, true ).remove();\\n\\n        if ( this.originalTitle ) {\\n            this.element.attr( \\\"title\\\", this.originalTitle );\\n        }\\n\\n        next = originalPosition.parent.children().eq( originalPosition.index );\\n        // Don't try to place the dialog next to itself (#8613)\\n        if ( next.length && next[0] !== this.element[0] ) {\\n            next.before( this.element );\\n        } else {\\n            originalPosition.parent.append( this.element );\\n        }\\n    },\\n\\n    widget: function() {\\n        return this.uiDialog;\\n    },\\n\\n    disable: $.noop,\\n    enable: $.noop,\\n\\n    close: function( event ) {\\n        var activeElement,\\n            that = this;\\n\\n        if ( !this._isOpen || this._trigger( \\\"beforeClose\\\", event ) === false ) {\\n            return;\\n        }\\n\\n        this._isOpen = false;\\n        this._destroyOverlay();\\n\\n        if ( !this.opener.filter(\\\":focusable\\\").focus().length ) {\\n\\n            // support: IE9\\n            // IE9 throws an \\\"Unspecified error\\\" accessing document.activeElement from an <iframe>\\n            try {\\n                activeElement = this.document[ 0 ].activeElement;\\n\\n                // Support: IE9, IE10\\n                // If the <body> is blurred, IE will switch windows, see #4520\\n                if ( activeElement && activeElement.nodeName.toLowerCase() !== \\\"body\\\" ) {\\n\\n                    // Hiding a focused element doesn't trigger blur in WebKit\\n                    // so in case we have nothing to focus on, explicitly blur the active element\\n                    // https://bugs.webkit.org/show_bug.cgi?id=47182\\n                    $( activeElement ).blur();\\n                }\\n            } catch ( error ) {}\\n        }\\n\\n        this._hide( this.uiDialog, this.options.hide, function() {\\n            that._trigger( \\\"close\\\", event );\\n        });\\n    },\\n\\n    isOpen: function() {\\n        return this._isOpen;\\n    },\\n\\n    moveToTop: function() {\\n        this._moveToTop();\\n    },\\n\\n    _moveToTop: function( event, silent ) {\\n        var moved = !!this.uiDialog.nextAll(\\\":visible\\\").insertBefore( this.uiDialog ).length;\\n        if ( moved && !silent ) {\\n            this._trigger( \\\"focus\\\", event );\\n        }\\n        return moved;\\n    },\\n\\n    open: function() {\\n        var that = this;\\n        if ( this._isOpen ) {\\n            if ( this._moveToTop() ) {\\n                this._focusTabbable();\\n            }\\n            return;\\n        }\\n\\n        this._isOpen = true;\\n        this.opener = $( this.document[0].activeElement );\\n\\n        this._size();\\n        this._position();\\n        this._createOverlay();\\n        this._moveToTop( null, true );\\n        this._show( this.uiDialog, this.options.show, function() {\\n            that._focusTabbable();\\n            that._trigger(\\\"focus\\\");\\n        });\\n\\n        this._trigger(\\\"open\\\");\\n    },\\n\\n    _focusTabbable: function() {\\n        // Set focus to the first match:\\n        // 1. First element inside the dialog matching [autofocus]\\n        // 2. Tabbable element inside the content element\\n        // 3. Tabbable element inside the buttonpane\\n        // 4. The close button\\n        // 5. The dialog itself\\n        var hasFocus = this.element.find(\\\"[autofocus]\\\");\\n        if ( !hasFocus.length ) {\\n            hasFocus = this.element.find(\\\":tabbable\\\");\\n        }\\n        if ( !hasFocus.length ) {\\n            hasFocus = this.uiDialogButtonPane.find(\\\":tabbable\\\");\\n        }\\n        if ( !hasFocus.length ) {\\n            hasFocus = this.uiDialogTitlebarClose.filter(\\\":tabbable\\\");\\n        }\\n        if ( !hasFocus.length ) {\\n            hasFocus = this.uiDialog;\\n        }\\n        hasFocus.eq( 0 ).focus();\\n    },\\n\\n    _keepFocus: function( event ) {\\n        function checkFocus() {\\n            var activeElement = this.document[0].activeElement,\\n                isActive = this.uiDialog[0] === activeElement ||\\n                    $.contains( this.uiDialog[0], activeElement );\\n            if ( !isActive ) {\\n                this._focusTabbable();\\n            }\\n        }\\n        event.preventDefault();\\n        checkFocus.call( this );\\n        // support: IE\\n        // IE <= 8 doesn't prevent moving focus even with event.preventDefault()\\n        // so we check again later\\n        this._delay( checkFocus );\\n    },\\n\\n    _createWrapper: function() {\\n        this.uiDialog = $(\\\"<div>\\\")\\n            .addClass( \\\"ui-dialog ui-widget ui-widget-content ui-corner-all ui-front \\\" +\\n                this.options.dialogClass )\\n            .hide()\\n            .attr({\\n                // Setting tabIndex makes the div focusable\\n                tabIndex: -1,\\n                role: \\\"dialog\\\"\\n            })\\n            .appendTo( this._appendTo() );\\n\\n        this._on( this.uiDialog, {\\n            keydown: function( event ) {\\n                if ( this.options.closeOnEscape && !event.isDefaultPrevented() && event.keyCode &&\\n                        event.keyCode === $.ui.keyCode.ESCAPE ) {\\n                    event.preventDefault();\\n                    this.close( event );\\n                    return;\\n                }\\n\\n                // prevent tabbing out of dialogs\\n                if ( event.keyCode !== $.ui.keyCode.TAB ) {\\n                    return;\\n                }\\n                var tabbables = this.uiDialog.find(\\\":tabbable\\\"),\\n                    first = tabbables.filter(\\\":first\\\"),\\n                    last  = tabbables.filter(\\\":last\\\");\\n\\n                if ( ( event.target === last[0] || event.target === this.uiDialog[0] ) && !event.shiftKey ) {\\n                    first.focus( 1 );\\n                    event.preventDefault();\\n                } else if ( ( event.target === first[0] || event.target === this.uiDialog[0] ) && event.shiftKey ) {\\n                    last.focus( 1 );\\n                    event.preventDefault();\\n                }\\n            },\\n            mousedown: function( event ) {\\n                if ( this._moveToTop( event ) ) {\\n                    this._focusTabbable();\\n                }\\n            }\\n        });\\n\\n        // We assume that any existing aria-describedby attribute means\\n        // that the dialog content is marked up properly\\n        // otherwise we brute force the content as the description\\n        if ( !this.element.find(\\\"[aria-describedby]\\\").length ) {\\n            this.uiDialog.attr({\\n                \\\"aria-describedby\\\": this.element.uniqueId().attr(\\\"id\\\")\\n            });\\n        }\\n    },\\n\\n    _createTitlebar: function() {\\n        var uiDialogTitle;\\n\\n        this.uiDialogTitlebar = $(\\\"<div>\\\")\\n            .addClass(\\\"ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix\\\")\\n            .prependTo( this.uiDialog );\\n        this._on( this.uiDialogTitlebar, {\\n            mousedown: function( event ) {\\n                // Don't prevent click on close button (#8838)\\n                // Focusing a dialog that is partially scrolled out of view\\n                // causes the browser to scroll it into view, preventing the click event\\n                if ( !$( event.target ).closest(\\\".ui-dialog-titlebar-close\\\") ) {\\n                    // Dialog isn't getting focus when dragging (#8063)\\n                    this.uiDialog.focus();\\n                }\\n            }\\n        });\\n\\n        // support: IE\\n        // Use type=\\\"button\\\" to prevent enter keypresses in textboxes from closing the\\n        // dialog in IE (#9312)\\n        this.uiDialogTitlebarClose = $( \\\"<button type='button'></button>\\\" )\\n            .button({\\n                label: this.options.closeText,\\n                icons: {\\n                    primary: \\\"ui-icon-closethick\\\"\\n                },\\n                text: false\\n            })\\n            .addClass(\\\"ui-dialog-titlebar-close\\\")\\n            .appendTo( this.uiDialogTitlebar );\\n        this._on( this.uiDialogTitlebarClose, {\\n            click: function( event ) {\\n                event.preventDefault();\\n                this.close( event );\\n            }\\n        });\\n\\n        uiDialogTitle = $(\\\"<span>\\\")\\n            .uniqueId()\\n            .addClass(\\\"ui-dialog-title\\\")\\n            .prependTo( this.uiDialogTitlebar );\\n        this._title( uiDialogTitle );\\n\\n        this.uiDialog.attr({\\n            \\\"aria-labelledby\\\": uiDialogTitle.attr(\\\"id\\\")\\n        });\\n    },\\n\\n    _title: function( title ) {\\n        if ( !this.options.title ) {\\n            title.html(\\\"&#160;\\\");\\n        }\\n        title.text( this.options.title );\\n    },\\n\\n    _createButtonPane: function() {\\n        this.uiDialogButtonPane = $(\\\"<div>\\\")\\n            .addClass(\\\"ui-dialog-buttonpane ui-widget-content ui-helper-clearfix\\\");\\n\\n        this.uiButtonSet = $(\\\"<div>\\\")\\n            .addClass(\\\"ui-dialog-buttonset\\\")\\n            .appendTo( this.uiDialogButtonPane );\\n\\n        this._createButtons();\\n    },\\n\\n    _createButtons: function() {\\n        var that = this,\\n            buttons = this.options.buttons;\\n\\n        // if we already have a button pane, remove it\\n        this.uiDialogButtonPane.remove();\\n        this.uiButtonSet.empty();\\n\\n        if ( $.isEmptyObject( buttons ) || ($.isArray( buttons ) && !buttons.length) ) {\\n            this.uiDialog.removeClass(\\\"ui-dialog-buttons\\\");\\n            return;\\n        }\\n\\n        $.each( buttons, function( name, props ) {\\n            var click, buttonOptions;\\n            props = $.isFunction( props ) ?\\n                { click: props, text: name } :\\n                props;\\n            // Default to a non-submitting button\\n            props = $.extend( { type: \\\"button\\\" }, props );\\n            // Change the context for the click callback to be the main element\\n            click = props.click;\\n            props.click = function() {\\n                click.apply( that.element[0], arguments );\\n            };\\n            buttonOptions = {\\n                icons: props.icons,\\n                text: props.showText\\n            };\\n            delete props.icons;\\n            delete props.showText;\\n            $( \\\"<button></button>\\\", props )\\n                .button( buttonOptions )\\n                .appendTo( that.uiButtonSet );\\n        });\\n        this.uiDialog.addClass(\\\"ui-dialog-buttons\\\");\\n        this.uiDialogButtonPane.appendTo( this.uiDialog );\\n    },\\n\\n    _makeDraggable: function() {\\n        var that = this,\\n            options = this.options;\\n\\n        function filteredUi( ui ) {\\n            return {\\n                position: ui.position,\\n                offset: ui.offset\\n            };\\n        }\\n\\n        this.uiDialog.draggable({\\n            cancel: \\\".ui-dialog-content, .ui-dialog-titlebar-close\\\",\\n            handle: \\\".ui-dialog-titlebar\\\",\\n            containment: \\\"document\\\",\\n            start: function( event, ui ) {\\n                $( this ).addClass(\\\"ui-dialog-dragging\\\");\\n                that._blockFrames();\\n                that._trigger( \\\"dragStart\\\", event, filteredUi( ui ) );\\n            },\\n            drag: function( event, ui ) {\\n                that._trigger( \\\"drag\\\", event, filteredUi( ui ) );\\n            },\\n            stop: function( event, ui ) {\\n                options.position = [\\n                    ui.position.left - that.document.scrollLeft(),\\n                    ui.position.top - that.document.scrollTop()\\n                ];\\n                $( this ).removeClass(\\\"ui-dialog-dragging\\\");\\n                that._unblockFrames();\\n                that._trigger( \\\"dragStop\\\", event, filteredUi( ui ) );\\n            }\\n        });\\n    },\\n\\n    _makeResizable: function() {\\n        var that = this,\\n            options = this.options,\\n            handles = options.resizable,\\n            // .ui-resizable has position: relative defined in the stylesheet\\n            // but dialogs have to use absolute or fixed positioning\\n            position = this.uiDialog.css(\\\"position\\\"),\\n            resizeHandles = typeof handles === \\\"string\\\" ?\\n                handles :\\n                \\\"n,e,s,w,se,sw,ne,nw\\\";\\n\\n        function filteredUi( ui ) {\\n            return {\\n                originalPosition: ui.originalPosition,\\n                originalSize: ui.originalSize,\\n                position: ui.position,\\n                size: ui.size\\n            };\\n        }\\n\\n        this.uiDialog.resizable({\\n            cancel: \\\".ui-dialog-content\\\",\\n            containment: \\\"document\\\",\\n            alsoResize: this.element,\\n            maxWidth: options.maxWidth,\\n            maxHeight: options.maxHeight,\\n            minWidth: options.minWidth,\\n            minHeight: this._minHeight(),\\n            handles: resizeHandles,\\n            start: function( event, ui ) {\\n                $( this ).addClass(\\\"ui-dialog-resizing\\\");\\n                that._blockFrames();\\n                that._trigger( \\\"resizeStart\\\", event, filteredUi( ui ) );\\n            },\\n            resize: function( event, ui ) {\\n                that._trigger( \\\"resize\\\", event, filteredUi( ui ) );\\n            },\\n            stop: function( event, ui ) {\\n                options.height = $( this ).height();\\n                options.width = $( this ).width();\\n                $( this ).removeClass(\\\"ui-dialog-resizing\\\");\\n                that._unblockFrames();\\n                that._trigger( \\\"resizeStop\\\", event, filteredUi( ui ) );\\n            }\\n        })\\n        .css( \\\"position\\\", position );\\n    },\\n\\n    _minHeight: function() {\\n        var options = this.options;\\n\\n        return options.height === \\\"auto\\\" ?\\n            options.minHeight :\\n            Math.min( options.minHeight, options.height );\\n    },\\n\\n    _position: function() {\\n        // Need to show the dialog to get the actual offset in the position plugin\\n        var isVisible = this.uiDialog.is(\\\":visible\\\");\\n        if ( !isVisible ) {\\n            this.uiDialog.show();\\n        }\\n        this.uiDialog.position( this.options.position );\\n        if ( !isVisible ) {\\n            this.uiDialog.hide();\\n        }\\n    },\\n\\n    _setOptions: function( options ) {\\n        var that = this,\\n            resize = false,\\n            resizableOptions = {};\\n\\n        $.each( options, function( key, value ) {\\n            that._setOption( key, value );\\n\\n            if ( key in sizeRelatedOptions ) {\\n                resize = true;\\n            }\\n            if ( key in resizableRelatedOptions ) {\\n                resizableOptions[ key ] = value;\\n            }\\n        });\\n\\n        if ( resize ) {\\n            this._size();\\n            this._position();\\n        }\\n        if ( this.uiDialog.is(\\\":data(ui-resizable)\\\") ) {\\n            this.uiDialog.resizable( \\\"option\\\", resizableOptions );\\n        }\\n    },\\n\\n    _setOption: function( key, value ) {\\n        var isDraggable, isResizable,\\n            uiDialog = this.uiDialog;\\n\\n        if ( key === \\\"dialogClass\\\" ) {\\n            uiDialog\\n                .removeClass( this.options.dialogClass )\\n                .addClass( value );\\n        }\\n\\n        if ( key === \\\"disabled\\\" ) {\\n            return;\\n        }\\n\\n        this._super( key, value );\\n\\n        if ( key === \\\"appendTo\\\" ) {\\n            this.uiDialog.appendTo( this._appendTo() );\\n        }\\n\\n        if ( key === \\\"buttons\\\" ) {\\n            this._createButtons();\\n        }\\n\\n        if ( key === \\\"closeText\\\" ) {\\n            this.uiDialogTitlebarClose.button({\\n                // Ensure that we always pass a string\\n                label: \\\"\\\" + value\\n            });\\n        }\\n\\n        if ( key === \\\"draggable\\\" ) {\\n            isDraggable = uiDialog.is(\\\":data(ui-draggable)\\\");\\n            if ( isDraggable && !value ) {\\n                uiDialog.draggable(\\\"destroy\\\");\\n            }\\n\\n            if ( !isDraggable && value ) {\\n                this._makeDraggable();\\n            }\\n        }\\n\\n        if ( key === \\\"position\\\" ) {\\n            this._position();\\n        }\\n\\n        if ( key === \\\"resizable\\\" ) {\\n            // currently resizable, becoming non-resizable\\n            isResizable = uiDialog.is(\\\":data(ui-resizable)\\\");\\n            if ( isResizable && !value ) {\\n                uiDialog.resizable(\\\"destroy\\\");\\n            }\\n\\n            // currently resizable, changing handles\\n            if ( isResizable && typeof value === \\\"string\\\" ) {\\n                uiDialog.resizable( \\\"option\\\", \\\"handles\\\", value );\\n            }\\n\\n            // currently non-resizable, becoming resizable\\n            if ( !isResizable && value !== false ) {\\n                this._makeResizable();\\n            }\\n        }\\n\\n        if ( key === \\\"title\\\" ) {\\n            this._title( this.uiDialogTitlebar.find(\\\".ui-dialog-title\\\") );\\n        }\\n    },\\n\\n    _size: function() {\\n        // If the user has resized the dialog, the .ui-dialog and .ui-dialog-content\\n        // divs will both have width and height set, so we need to reset them\\n        var nonContentHeight, minContentHeight, maxContentHeight,\\n            options = this.options;\\n\\n        // Reset content sizing\\n        this.element.show().css({\\n            width: \\\"auto\\\",\\n            minHeight: 0,\\n            maxHeight: \\\"none\\\",\\n            height: 0\\n        });\\n\\n        if ( options.minWidth > options.width ) {\\n            options.width = options.minWidth;\\n        }\\n\\n        // reset wrapper sizing\\n        // determine the height of all the non-content elements\\n        nonContentHeight = this.uiDialog.css({\\n                height: \\\"auto\\\",\\n                width: options.width\\n            })\\n            .outerHeight();\\n        minContentHeight = Math.max( 0, options.minHeight - nonContentHeight );\\n        maxContentHeight = typeof options.maxHeight === \\\"number\\\" ?\\n            Math.max( 0, options.maxHeight - nonContentHeight ) :\\n            \\\"none\\\";\\n\\n        if ( options.height === \\\"auto\\\" ) {\\n            this.element.css({\\n                minHeight: minContentHeight,\\n                maxHeight: maxContentHeight,\\n                height: \\\"auto\\\"\\n            });\\n        } else {\\n            this.element.height( Math.max( 0, options.height - nonContentHeight ) );\\n        }\\n\\n        if (this.uiDialog.is(\\\":data(ui-resizable)\\\") ) {\\n            this.uiDialog.resizable( \\\"option\\\", \\\"minHeight\\\", this._minHeight() );\\n        }\\n    },\\n\\n    _blockFrames: function() {\\n        this.iframeBlocks = this.document.find( \\\"iframe\\\" ).map(function() {\\n            var iframe = $( this );\\n\\n            return $( \\\"<div>\\\" )\\n                .css({\\n                    position: \\\"absolute\\\",\\n                    width: iframe.outerWidth(),\\n                    height: iframe.outerHeight()\\n                })\\n                .appendTo( iframe.parent() )\\n                .offset( iframe.offset() )[0];\\n        });\\n    },\\n\\n    _unblockFrames: function() {\\n        if ( this.iframeBlocks ) {\\n            this.iframeBlocks.remove();\\n            delete this.iframeBlocks;\\n        }\\n    },\\n\\n    _allowInteraction: function( event ) {\\n        if ( $( event.target ).closest(\\\".ui-dialog\\\").length ) {\\n            return true;\\n        }\\n\\n        // TODO: Remove hack when datepicker implements\\n        // the .ui-front logic (#8989)\\n        return !!$( event.target ).closest(\\\".ui-datepicker\\\").length;\\n    },\\n\\n    _createOverlay: function() {\\n        if ( !this.options.modal ) {\\n            return;\\n        }\\n\\n        var that = this,\\n            widgetFullName = this.widgetFullName;\\n        if ( !$.ui.dialog.overlayInstances ) {\\n            // Prevent use of anchors and inputs.\\n            // We use a delay in case the overlay is created from an\\n            // event that we're going to be cancelling. (#2804)\\n            this._delay(function() {\\n                // Handle .dialog().dialog(\\\"close\\\") (#4065)\\n                if ( $.ui.dialog.overlayInstances ) {\\n                    this.document.bind( \\\"focusin.dialog\\\", function( event ) {\\n                        if ( !that._allowInteraction( event ) ) {\\n                            event.preventDefault();\\n                            $(\\\".ui-dialog:visible:last .ui-dialog-content\\\")\\n                                .data( widgetFullName )._focusTabbable();\\n                        }\\n                    });\\n                }\\n            });\\n        }\\n\\n        this.overlay = $(\\\"<div>\\\")\\n            .addClass(\\\"ui-widget-overlay ui-front\\\")\\n            .appendTo( this._appendTo() );\\n        this._on( this.overlay, {\\n            mousedown: \\\"_keepFocus\\\"\\n        });\\n        $.ui.dialog.overlayInstances++;\\n    },\\n\\n    _destroyOverlay: function() {\\n        if ( !this.options.modal ) {\\n            return;\\n        }\\n\\n        if ( this.overlay ) {\\n            $.ui.dialog.overlayInstances--;\\n\\n            if ( !$.ui.dialog.overlayInstances ) {\\n                this.document.unbind( \\\"focusin.dialog\\\" );\\n            }\\n            this.overlay.remove();\\n            this.overlay = null;\\n        }\\n    }\\n});\\n\\n$.ui.dialog.overlayInstances = 0;\\n\\n// DEPRECATED\\nif ( $.uiBackCompat !== false ) {\\n    // position option with array notation\\n    // just override with old implementation\\n    $.widget( \\\"ui.dialog\\\", $.ui.dialog, {\\n        _position: function() {\\n            var position = this.options.position,\\n                myAt = [],\\n                offset = [ 0, 0 ],\\n                isVisible;\\n\\n            if ( position ) {\\n                if ( typeof position === \\\"string\\\" || (typeof position === \\\"object\\\" && \\\"0\\\" in position ) ) {\\n                    myAt = position.split ? position.split(\\\" \\\") : [ position[0], position[1] ];\\n                    if ( myAt.length === 1 ) {\\n                        myAt[1] = myAt[0];\\n                    }\\n\\n                    $.each( [ \\\"left\\\", \\\"top\\\" ], function( i, offsetPosition ) {\\n                        if ( +myAt[ i ] === myAt[ i ] ) {\\n                            offset[ i ] = myAt[ i ];\\n                            myAt[ i ] = offsetPosition;\\n                        }\\n                    });\\n\\n                    position = {\\n                        my: myAt[0] + (offset[0] < 0 ? offset[0] : \\\"+\\\" + offset[0]) + \\\" \\\" +\\n                            myAt[1] + (offset[1] < 0 ? offset[1] : \\\"+\\\" + offset[1]),\\n                        at: myAt.join(\\\" \\\")\\n                    };\\n                }\\n\\n                position = $.extend( {}, $.ui.dialog.prototype.options.position, position );\\n            } else {\\n                position = $.ui.dialog.prototype.options.position;\\n            }\\n\\n            // need to show the dialog to get the actual offset in the position plugin\\n            isVisible = this.uiDialog.is(\\\":visible\\\");\\n            if ( !isVisible ) {\\n                this.uiDialog.show();\\n            }\\n            this.uiDialog.position( position );\\n            if ( !isVisible ) {\\n                this.uiDialog.hide();\\n            }\\n        }\\n    });\\n}\\n\\n}( jQuery ) );\\n(function( $, undefined ) {\\n\\n$.widget(\\\"ui.draggable\\\", $.ui.mouse, {\\n    version: \\\"1.10.4\\\",\\n    widgetEventPrefix: \\\"drag\\\",\\n    options: {\\n        addClasses: true,\\n        appendTo: \\\"parent\\\",\\n        axis: false,\\n        connectToSortable: false,\\n        containment: false,\\n        cursor: \\\"auto\\\",\\n        cursorAt: false,\\n        grid: false,\\n        handle: false,\\n        helper: \\\"original\\\",\\n        iframeFix: false,\\n        opacity: false,\\n        refreshPositions: false,\\n        revert: false,\\n        revertDuration: 500,\\n        scope: \\\"default\\\",\\n        scroll: true,\\n        scrollSensitivity: 20,\\n        scrollSpeed: 20,\\n        snap: false,\\n        snapMode: \\\"both\\\",\\n        snapTolerance: 20,\\n        stack: false,\\n        zIndex: false,\\n\\n        // callbacks\\n        drag: null,\\n        start: null,\\n        stop: null\\n    },\\n    _create: function() {\\n\\n        if (this.options.helper === \\\"original\\\" && !(/^(?:r|a|f)/).test(this.element.css(\\\"position\\\"))) {\\n            this.element[0].style.position = \\\"relative\\\";\\n        }\\n        if (this.options.addClasses){\\n            this.element.addClass(\\\"ui-draggable\\\");\\n        }\\n        if (this.options.disabled){\\n            this.element.addClass(\\\"ui-draggable-disabled\\\");\\n        }\\n\\n        this._mouseInit();\\n\\n    },\\n\\n    _destroy: function() {\\n        this.element.removeClass( \\\"ui-draggable ui-draggable-dragging ui-draggable-disabled\\\" );\\n        this._mouseDestroy();\\n    },\\n\\n    _mouseCapture: function(event) {\\n\\n        var o = this.options;\\n\\n        // among others, prevent a drag on a resizable-handle\\n        if (this.helper || o.disabled || $(event.target).closest(\\\".ui-resizable-handle\\\").length > 0) {\\n            return false;\\n        }\\n\\n        //Quit if we're not on a valid handle\\n        this.handle = this._getHandle(event);\\n        if (!this.handle) {\\n            return false;\\n        }\\n\\n        $(o.iframeFix === true ? \\\"iframe\\\" : o.iframeFix).each(function() {\\n            $(\\\"<div class='ui-draggable-iframeFix' style='background: #fff;'></div>\\\")\\n            .css({\\n                width: this.offsetWidth+\\\"px\\\", height: this.offsetHeight+\\\"px\\\",\\n                position: \\\"absolute\\\", opacity: \\\"0.001\\\", zIndex: 1000\\n            })\\n            .css($(this).offset())\\n            .appendTo(\\\"body\\\");\\n        });\\n\\n        return true;\\n\\n    },\\n\\n    _mouseStart: function(event) {\\n\\n        var o = this.options;\\n\\n        //Create and append the visible helper\\n        this.helper = this._createHelper(event);\\n\\n        this.helper.addClass(\\\"ui-draggable-dragging\\\");\\n\\n        //Cache the helper size\\n        this._cacheHelperProportions();\\n\\n        //If ddmanager is used for droppables, set the global draggable\\n        if($.ui.ddmanager) {\\n            $.ui.ddmanager.current = this;\\n        }\\n\\n        /*\\n         * - Position generation -\\n         * This block generates everything position related - it's the core of draggables.\\n         */\\n\\n        //Cache the margins of the original element\\n        this._cacheMargins();\\n\\n        //Store the helper's css position\\n        this.cssPosition = this.helper.css( \\\"position\\\" );\\n        this.scrollParent = this.helper.scrollParent();\\n        this.offsetParent = this.helper.offsetParent();\\n        this.offsetParentCssPosition = this.offsetParent.css( \\\"position\\\" );\\n\\n        //The element's absolute position on the page minus margins\\n        this.offset = this.positionAbs = this.element.offset();\\n        this.offset = {\\n            top: this.offset.top - this.margins.top,\\n            left: this.offset.left - this.margins.left\\n        };\\n\\n        //Reset scroll cache\\n        this.offset.scroll = false;\\n\\n        $.extend(this.offset, {\\n            click: { //Where the click happened, relative to the element\\n                left: event.pageX - this.offset.left,\\n                top: event.pageY - this.offset.top\\n            },\\n            parent: this._getParentOffset(),\\n            relative: this._getRelativeOffset() //This is a relative to absolute position minus the actual position calculation - only used for relative positioned helper\\n        });\\n\\n        //Generate the original position\\n        this.originalPosition = this.position = this._generatePosition(event);\\n        this.originalPageX = event.pageX;\\n        this.originalPageY = event.pageY;\\n\\n        //Adjust the mouse offset relative to the helper if \\\"cursorAt\\\" is supplied\\n        (o.cursorAt && this._adjustOffsetFromHelper(o.cursorAt));\\n\\n        //Set a containment if given in the options\\n        this._setContainment();\\n\\n        //Trigger event + callbacks\\n        if(this._trigger(\\\"start\\\", event) === false) {\\n            this._clear();\\n            return false;\\n        }\\n\\n        //Recache the helper size\\n        this._cacheHelperProportions();\\n\\n        //Prepare the droppable offsets\\n        if ($.ui.ddmanager && !o.dropBehaviour) {\\n            $.ui.ddmanager.prepareOffsets(this, event);\\n        }\\n\\n\\n        this._mouseDrag(event, true); //Execute the drag once - this causes the helper not to be visible before getting its correct position\\n\\n        //If the ddmanager is used for droppables, inform the manager that dragging has started (see #5003)\\n        if ( $.ui.ddmanager ) {\\n            $.ui.ddmanager.dragStart(this, event);\\n        }\\n\\n        return true;\\n    },\\n\\n    _mouseDrag: function(event, noPropagation) {\\n        // reset any necessary cached properties (see #5009)\\n        if ( this.offsetParentCssPosition === \\\"fixed\\\" ) {\\n            this.offset.parent = this._getParentOffset();\\n        }\\n\\n        //Compute the helpers position\\n        this.position = this._generatePosition(event);\\n        this.positionAbs = this._convertPositionTo(\\\"absolute\\\");\\n\\n        //Call plugins and callbacks and use the resulting position if something is returned\\n        if (!noPropagation) {\\n            var ui = this._uiHash();\\n            if(this._trigger(\\\"drag\\\", event, ui) === false) {\\n                this._mouseUp({});\\n                return false;\\n            }\\n            this.position = ui.position;\\n        }\\n\\n        if(!this.options.axis || this.options.axis !== \\\"y\\\") {\\n            this.helper[0].style.left = this.position.left+\\\"px\\\";\\n        }\\n        if(!this.options.axis || this.options.axis !== \\\"x\\\") {\\n            this.helper[0].style.top = this.position.top+\\\"px\\\";\\n        }\\n        if($.ui.ddmanager) {\\n            $.ui.ddmanager.drag(this, event);\\n        }\\n\\n        return false;\\n    },\\n\\n    _mouseStop: function(event) {\\n\\n        //If we are using droppables, inform the manager about the drop\\n        var that = this,\\n            dropped = false;\\n        if ($.ui.ddmanager && !this.options.dropBehaviour) {\\n            dropped = $.ui.ddmanager.drop(this, event);\\n        }\\n\\n        //if a drop comes from outside (a sortable)\\n        if(this.dropped) {\\n            dropped = this.dropped;\\n            this.dropped = false;\\n        }\\n\\n        //if the original element is no longer in the DOM don't bother to continue (see #8269)\\n        if ( this.options.helper === \\\"original\\\" && !$.contains( this.element[ 0 ].ownerDocument, this.element[ 0 ] ) ) {\\n            return false;\\n        }\\n\\n        if((this.options.revert === \\\"invalid\\\" && !dropped) || (this.options.revert === \\\"valid\\\" && dropped) || this.options.revert === true || ($.isFunction(this.options.revert) && this.options.revert.call(this.element, dropped))) {\\n            $(this.helper).animate(this.originalPosition, parseInt(this.options.revertDuration, 10), function() {\\n                if(that._trigger(\\\"stop\\\", event) !== false) {\\n                    that._clear();\\n                }\\n            });\\n        } else {\\n            if(this._trigger(\\\"stop\\\", event) !== false) {\\n                this._clear();\\n            }\\n        }\\n\\n        return false;\\n    },\\n\\n    _mouseUp: function(event) {\\n        //Remove frame helpers\\n        $(\\\"div.ui-draggable-iframeFix\\\").each(function() {\\n            this.parentNode.removeChild(this);\\n        });\\n\\n        //If the ddmanager is used for droppables, inform the manager that dragging has stopped (see #5003)\\n        if( $.ui.ddmanager ) {\\n            $.ui.ddmanager.dragStop(this, event);\\n        }\\n\\n        return $.ui.mouse.prototype._mouseUp.call(this, event);\\n    },\\n\\n    cancel: function() {\\n\\n        if(this.helper.is(\\\".ui-draggable-dragging\\\")) {\\n            this._mouseUp({});\\n        } else {\\n            this._clear();\\n        }\\n\\n        return this;\\n\\n    },\\n\\n    _getHandle: function(event) {\\n        return this.options.handle ?\\n            !!$( event.target ).closest( this.element.find( this.options.handle ) ).length :\\n            true;\\n    },\\n\\n    _createHelper: function(event) {\\n\\n        var o = this.options,\\n            helper = $.isFunction(o.helper) ? $(o.helper.apply(this.element[0], [event])) : (o.helper === \\\"clone\\\" ? this.element.clone().removeAttr(\\\"id\\\") : this.element);\\n\\n        if(!helper.parents(\\\"body\\\").length) {\\n            helper.appendTo((o.appendTo === \\\"parent\\\" ? this.element[0].parentNode : o.appendTo));\\n        }\\n\\n        if(helper[0] !== this.element[0] && !(/(fixed|absolute)/).test(helper.css(\\\"position\\\"))) {\\n            helper.css(\\\"position\\\", \\\"absolute\\\");\\n        }\\n\\n        return helper;\\n\\n    },\\n\\n    _adjustOffsetFromHelper: function(obj) {\\n        if (typeof obj === \\\"string\\\") {\\n            obj = obj.split(\\\" \\\");\\n        }\\n        if ($.isArray(obj)) {\\n            obj = {left: +obj[0], top: +obj[1] || 0};\\n        }\\n        if (\\\"left\\\" in obj) {\\n            this.offset.click.left = obj.left + this.margins.left;\\n        }\\n        if (\\\"right\\\" in obj) {\\n            this.offset.click.left = this.helperProportions.width - obj.right + this.margins.left;\\n        }\\n        if (\\\"top\\\" in obj) {\\n            this.offset.click.top = obj.top + this.margins.top;\\n        }\\n        if (\\\"bottom\\\" in obj) {\\n            this.offset.click.top = this.helperProportions.height - obj.bottom + this.margins.top;\\n        }\\n    },\\n\\n    _getParentOffset: function() {\\n\\n        //Get the offsetParent and cache its position\\n        var po = this.offsetParent.offset();\\n\\n        // This is a special case where we need to modify a offset calculated on start, since the following happened:\\n        // 1. The position of the helper is absolute, so it's position is calculated based on the next positioned parent\\n        // 2. The actual offset parent is a child of the scroll parent, and the scroll parent isn't the document, which means that\\n        //    the scroll is included in the initial calculation of the offset of the parent, and never recalculated upon drag\\n        if(this.cssPosition === \\\"absolute\\\" && this.scrollParent[0] !== document && $.contains(this.scrollParent[0], this.offsetParent[0])) {\\n            po.left += this.scrollParent.scrollLeft();\\n            po.top += this.scrollParent.scrollTop();\\n        }\\n\\n        //This needs to be actually done for all browsers, since pageX/pageY includes this information\\n        //Ugly IE fix\\n        if((this.offsetParent[0] === document.body) ||\\n            (this.offsetParent[0].tagName && this.offsetParent[0].tagName.toLowerCase() === \\\"html\\\" && $.ui.ie)) {\\n            po = { top: 0, left: 0 };\\n        }\\n\\n        return {\\n            top: po.top + (parseInt(this.offsetParent.css(\\\"borderTopWidth\\\"),10) || 0),\\n            left: po.left + (parseInt(this.offsetParent.css(\\\"borderLeftWidth\\\"),10) || 0)\\n        };\\n\\n    },\\n\\n    _getRelativeOffset: function() {\\n\\n        if(this.cssPosition === \\\"relative\\\") {\\n            var p = this.element.position();\\n            return {\\n                top: p.top - (parseInt(this.helper.css(\\\"top\\\"),10) || 0) + this.scrollParent.scrollTop(),\\n                left: p.left - (parseInt(this.helper.css(\\\"left\\\"),10) || 0) + this.scrollParent.scrollLeft()\\n            };\\n        } else {\\n            return { top: 0, left: 0 };\\n        }\\n\\n    },\\n\\n    _cacheMargins: function() {\\n        this.margins = {\\n            left: (parseInt(this.element.css(\\\"marginLeft\\\"),10) || 0),\\n            top: (parseInt(this.element.css(\\\"marginTop\\\"),10) || 0),\\n            right: (parseInt(this.element.css(\\\"marginRight\\\"),10) || 0),\\n            bottom: (parseInt(this.element.css(\\\"marginBottom\\\"),10) || 0)\\n        };\\n    },\\n\\n    _cacheHelperProportions: function() {\\n        this.helperProportions = {\\n            width: this.helper.outerWidth(),\\n            height: this.helper.outerHeight()\\n        };\\n    },\\n\\n    _setContainment: function() {\\n\\n        var over, c, ce,\\n            o = this.options;\\n\\n        if ( !o.containment ) {\\n            this.containment = null;\\n            return;\\n        }\\n\\n        if ( o.containment === \\\"window\\\" ) {\\n            this.containment = [\\n                $( window ).scrollLeft() - this.offset.relative.left - this.offset.parent.left,\\n                $( window ).scrollTop() - this.offset.relative.top - this.offset.parent.top,\\n                $( window ).scrollLeft() + $( window ).width() - this.helperProportions.width - this.margins.left,\\n                $( window ).scrollTop() + ( $( window ).height() || document.body.parentNode.scrollHeight ) - this.helperProportions.height - this.margins.top\\n            ];\\n            return;\\n        }\\n\\n        if ( o.containment === \\\"document\\\") {\\n            this.containment = [\\n                0,\\n                0,\\n                $( document ).width() - this.helperProportions.width - this.margins.left,\\n                ( $( document ).height() || document.body.parentNode.scrollHeight ) - this.helperProportions.height - this.margins.top\\n            ];\\n            return;\\n        }\\n\\n        if ( o.containment.constructor === Array ) {\\n            this.containment = o.containment;\\n            return;\\n        }\\n\\n        if ( o.containment === \\\"parent\\\" ) {\\n            o.containment = this.helper[ 0 ].parentNode;\\n        }\\n\\n        c = $( o.containment );\\n        ce = c[ 0 ];\\n\\n        if( !ce ) {\\n            return;\\n        }\\n\\n        over = c.css( \\\"overflow\\\" ) !== \\\"hidden\\\";\\n\\n        this.containment = [\\n            ( parseInt( c.css( \\\"borderLeftWidth\\\" ), 10 ) || 0 ) + ( parseInt( c.css( \\\"paddingLeft\\\" ), 10 ) || 0 ),\\n            ( parseInt( c.css( \\\"borderTopWidth\\\" ), 10 ) || 0 ) + ( parseInt( c.css( \\\"paddingTop\\\" ), 10 ) || 0 ) ,\\n            ( over ? Math.max( ce.scrollWidth, ce.offsetWidth ) : ce.offsetWidth ) - ( parseInt( c.css( \\\"borderRightWidth\\\" ), 10 ) || 0 ) - ( parseInt( c.css( \\\"paddingRight\\\" ), 10 ) || 0 ) - this.helperProportions.width - this.margins.left - this.margins.right,\\n            ( over ? Math.max( ce.scrollHeight, ce.offsetHeight ) : ce.offsetHeight ) - ( parseInt( c.css( \\\"borderBottomWidth\\\" ), 10 ) || 0 ) - ( parseInt( c.css( \\\"paddingBottom\\\" ), 10 ) || 0 ) - this.helperProportions.height - this.margins.top  - this.margins.bottom\\n        ];\\n        this.relative_container = c;\\n    },\\n\\n    _convertPositionTo: function(d, pos) {\\n\\n        if(!pos) {\\n            pos = this.position;\\n        }\\n\\n        var mod = d === \\\"absolute\\\" ? 1 : -1,\\n            scroll = this.cssPosition === \\\"absolute\\\" && !( this.scrollParent[ 0 ] !== document && $.contains( this.scrollParent[ 0 ], this.offsetParent[ 0 ] ) ) ? this.offsetParent : this.scrollParent;\\n\\n        //Cache the scroll\\n        if (!this.offset.scroll) {\\n            this.offset.scroll = {top : scroll.scrollTop(), left : scroll.scrollLeft()};\\n        }\\n\\n        return {\\n            top: (\\n                pos.top +                                                               // The absolute mouse position\\n                this.offset.relative.top * mod +                                        // Only for relative positioned nodes: Relative offset from element to offset parent\\n                this.offset.parent.top * mod -                                      // The offsetParent's offset without borders (offset + border)\\n                ( ( this.cssPosition === \\\"fixed\\\" ? -this.scrollParent.scrollTop() : this.offset.scroll.top ) * mod )\\n            ),\\n            left: (\\n                pos.left +                                                              // The absolute mouse position\\n                this.offset.relative.left * mod +                                       // Only for relative positioned nodes: Relative offset from element to offset parent\\n                this.offset.parent.left * mod   -                                       // The offsetParent's offset without borders (offset + border)\\n                ( ( this.cssPosition === \\\"fixed\\\" ? -this.scrollParent.scrollLeft() : this.offset.scroll.left ) * mod )\\n            )\\n        };\\n\\n    },\\n\\n    _generatePosition: function(event) {\\n\\n        var containment, co, top, left,\\n            o = this.options,\\n            scroll = this.cssPosition === \\\"absolute\\\" && !( this.scrollParent[ 0 ] !== document && $.contains( this.scrollParent[ 0 ], this.offsetParent[ 0 ] ) ) ? this.offsetParent : this.scrollParent,\\n            pageX = event.pageX,\\n            pageY = event.pageY;\\n\\n        //Cache the scroll\\n        if (!this.offset.scroll) {\\n            this.offset.scroll = {top : scroll.scrollTop(), left : scroll.scrollLeft()};\\n        }\\n\\n        /*\\n         * - Position constraining -\\n         * Constrain the position to a mix of grid, containment.\\n         */\\n\\n        // If we are not dragging yet, we won't check for options\\n        if ( this.originalPosition ) {\\n            if ( this.containment ) {\\n                if ( this.relative_container ){\\n                    co = this.relative_container.offset();\\n                    containment = [\\n                        this.containment[ 0 ] + co.left,\\n                        this.containment[ 1 ] + co.top,\\n                        this.containment[ 2 ] + co.left,\\n                        this.containment[ 3 ] + co.top\\n                    ];\\n                }\\n                else {\\n                    containment = this.containment;\\n                }\\n\\n                if(event.pageX - this.offset.click.left < containment[0]) {\\n                    pageX = containment[0] + this.offset.click.left;\\n                }\\n                if(event.pageY - this.offset.click.top < containment[1]) {\\n                    pageY = containment[1] + this.offset.click.top;\\n                }\\n                if(event.pageX - this.offset.click.left > containment[2]) {\\n                    pageX = containment[2] + this.offset.click.left;\\n                }\\n                if(event.pageY - this.offset.click.top > containment[3]) {\\n                    pageY = containment[3] + this.offset.click.top;\\n                }\\n            }\\n\\n            if(o.grid) {\\n                //Check for grid elements set to 0 to prevent divide by 0 error causing invalid argument errors in IE (see ticket #6950)\\n                top = o.grid[1] ? this.originalPageY + Math.round((pageY - this.originalPageY) / o.grid[1]) * o.grid[1] : this.originalPageY;\\n                pageY = containment ? ((top - this.offset.click.top >= containment[1] || top - this.offset.click.top > containment[3]) ? top : ((top - this.offset.click.top >= containment[1]) ? top - o.grid[1] : top + o.grid[1])) : top;\\n\\n                left = o.grid[0] ? this.originalPageX + Math.round((pageX - this.originalPageX) / o.grid[0]) * o.grid[0] : this.originalPageX;\\n                pageX = containment ? ((left - this.offset.click.left >= containment[0] || left - this.offset.click.left > containment[2]) ? left : ((left - this.offset.click.left >= containment[0]) ? left - o.grid[0] : left + o.grid[0])) : left;\\n            }\\n\\n        }\\n\\n        return {\\n            top: (\\n                pageY -                                                                 // The absolute mouse position\\n                this.offset.click.top   -                                               // Click offset (relative to the element)\\n                this.offset.relative.top -                                              // Only for relative positioned nodes: Relative offset from element to offset parent\\n                this.offset.parent.top +                                                // The offsetParent's offset without borders (offset + border)\\n                ( this.cssPosition === \\\"fixed\\\" ? -this.scrollParent.scrollTop() : this.offset.scroll.top )\\n            ),\\n            left: (\\n                pageX -                                                                 // The absolute mouse position\\n                this.offset.click.left -                                                // Click offset (relative to the element)\\n                this.offset.relative.left -                                             // Only for relative positioned nodes: Relative offset from element to offset parent\\n                this.offset.parent.left +                                               // The offsetParent's offset without borders (offset + border)\\n                ( this.cssPosition === \\\"fixed\\\" ? -this.scrollParent.scrollLeft() : this.offset.scroll.left )\\n            )\\n        };\\n\\n    },\\n\\n    _clear: function() {\\n        this.helper.removeClass(\\\"ui-draggable-dragging\\\");\\n        if(this.helper[0] !== this.element[0] && !this.cancelHelperRemoval) {\\n            this.helper.remove();\\n        }\\n        this.helper = null;\\n        this.cancelHelperRemoval = false;\\n    },\\n\\n    // From now on bulk stuff - mainly helpers\\n\\n    _trigger: function(type, event, ui) {\\n        ui = ui || this._uiHash();\\n        $.ui.plugin.call(this, type, [event, ui]);\\n        //The absolute position has to be recalculated after plugins\\n        if(type === \\\"drag\\\") {\\n            this.positionAbs = this._convertPositionTo(\\\"absolute\\\");\\n        }\\n        return $.Widget.prototype._trigger.call(this, type, event, ui);\\n    },\\n\\n    plugins: {},\\n\\n    _uiHash: function() {\\n        return {\\n            helper: this.helper,\\n            position: this.position,\\n            originalPosition: this.originalPosition,\\n            offset: this.positionAbs\\n        };\\n    }\\n\\n});\\n\\n$.ui.plugin.add(\\\"draggable\\\", \\\"connectToSortable\\\", {\\n    start: function(event, ui) {\\n\\n        var inst = $(this).data(\\\"ui-draggable\\\"), o = inst.options,\\n            uiSortable = $.extend({}, ui, { item: inst.element });\\n        inst.sortables = [];\\n        $(o.connectToSortable).each(function() {\\n            var sortable = $.data(this, \\\"ui-sortable\\\");\\n            if (sortable && !sortable.options.disabled) {\\n                inst.sortables.push({\\n                    instance: sortable,\\n                    shouldRevert: sortable.options.revert\\n                });\\n                sortable.refreshPositions();    // Call the sortable's refreshPositions at drag start to refresh the containerCache since the sortable container cache is used in drag and needs to be up to date (this will ensure it's initialised as well as being kept in step with any changes that might have happened on the page).\\n                sortable._trigger(\\\"activate\\\", event, uiSortable);\\n            }\\n        });\\n\\n    },\\n    stop: function(event, ui) {\\n\\n        //If we are still over the sortable, we fake the stop event of the sortable, but also remove helper\\n        var inst = $(this).data(\\\"ui-draggable\\\"),\\n            uiSortable = $.extend({}, ui, { item: inst.element });\\n\\n        $.each(inst.sortables, function() {\\n            if(this.instance.isOver) {\\n\\n                this.instance.isOver = 0;\\n\\n                inst.cancelHelperRemoval = true; //Don't remove the helper in the draggable instance\\n                this.instance.cancelHelperRemoval = false; //Remove it in the sortable instance (so sortable plugins like revert still work)\\n\\n                //The sortable revert is supported, and we have to set a temporary dropped variable on the draggable to support revert: \\\"valid/invalid\\\"\\n                if(this.shouldRevert) {\\n                    this.instance.options.revert = this.shouldRevert;\\n                }\\n\\n                //Trigger the stop of the sortable\\n                this.instance._mouseStop(event);\\n\\n                this.instance.options.helper = this.instance.options._helper;\\n\\n                //If the helper has been the original item, restore properties in the sortable\\n                if(inst.options.helper === \\\"original\\\") {\\n                    this.instance.currentItem.css({ top: \\\"auto\\\", left: \\\"auto\\\" });\\n                }\\n\\n            } else {\\n                this.instance.cancelHelperRemoval = false; //Remove the helper in the sortable instance\\n                this.instance._trigger(\\\"deactivate\\\", event, uiSortable);\\n            }\\n\\n        });\\n\\n    },\\n    drag: function(event, ui) {\\n\\n        var inst = $(this).data(\\\"ui-draggable\\\"), that = this;\\n\\n        $.each(inst.sortables, function() {\\n\\n            var innermostIntersecting = false,\\n                thisSortable = this;\\n\\n            //Copy over some variables to allow calling the sortable's native _intersectsWith\\n            this.instance.positionAbs = inst.positionAbs;\\n            this.instance.helperProportions = inst.helperProportions;\\n            this.instance.offset.click = inst.offset.click;\\n\\n            if(this.instance._intersectsWith(this.instance.containerCache)) {\\n                innermostIntersecting = true;\\n                $.each(inst.sortables, function () {\\n                    this.instance.positionAbs = inst.positionAbs;\\n                    this.instance.helperProportions = inst.helperProportions;\\n                    this.instance.offset.click = inst.offset.click;\\n                    if (this !== thisSortable &&\\n                        this.instance._intersectsWith(this.instance.containerCache) &&\\n                        $.contains(thisSortable.instance.element[0], this.instance.element[0])\\n                    ) {\\n                        innermostIntersecting = false;\\n                    }\\n                    return innermostIntersecting;\\n                });\\n            }\\n\\n\\n            if(innermostIntersecting) {\\n                //If it intersects, we use a little isOver variable and set it once, so our move-in stuff gets fired only once\\n                if(!this.instance.isOver) {\\n\\n                    this.instance.isOver = 1;\\n                    //Now we fake the start of dragging for the sortable instance,\\n                    //by cloning the list group item, appending it to the sortable and using it as inst.currentItem\\n                    //We can then fire the start event of the sortable with our passed browser event, and our own helper (so it doesn't create a new one)\\n                    this.instance.currentItem = $(that).clone().removeAttr(\\\"id\\\").appendTo(this.instance.element).data(\\\"ui-sortable-item\\\", true);\\n                    this.instance.options._helper = this.instance.options.helper; //Store helper option to later restore it\\n                    this.instance.options.helper = function() { return ui.helper[0]; };\\n\\n                    event.target = this.instance.currentItem[0];\\n                    this.instance._mouseCapture(event, true);\\n                    this.instance._mouseStart(event, true, true);\\n\\n                    //Because the browser event is way off the new appended portlet, we modify a couple of variables to reflect the changes\\n                    this.instance.offset.click.top = inst.offset.click.top;\\n                    this.instance.offset.click.left = inst.offset.click.left;\\n                    this.instance.offset.parent.left -= inst.offset.parent.left - this.instance.offset.parent.left;\\n                    this.instance.offset.parent.top -= inst.offset.parent.top - this.instance.offset.parent.top;\\n\\n                    inst._trigger(\\\"toSortable\\\", event);\\n                    inst.dropped = this.instance.element; //draggable revert needs that\\n                    //hack so receive/update callbacks work (mostly)\\n                    inst.currentItem = inst.element;\\n                    this.instance.fromOutside = inst;\\n\\n                }\\n\\n                //Provided we did all the previous steps, we can fire the drag event of the sortable on every draggable drag, when it intersects with the sortable\\n                if(this.instance.currentItem) {\\n                    this.instance._mouseDrag(event);\\n                }\\n\\n            } else {\\n\\n                //If it doesn't intersect with the sortable, and it intersected before,\\n                //we fake the drag stop of the sortable, but make sure it doesn't remove the helper by using cancelHelperRemoval\\n                if(this.instance.isOver) {\\n\\n                    this.instance.isOver = 0;\\n                    this.instance.cancelHelperRemoval = true;\\n\\n                    //Prevent reverting on this forced stop\\n                    this.instance.options.revert = false;\\n\\n                    // The out event needs to be triggered independently\\n                    this.instance._trigger(\\\"out\\\", event, this.instance._uiHash(this.instance));\\n\\n                    this.instance._mouseStop(event, true);\\n                    this.instance.options.helper = this.instance.options._helper;\\n\\n                    //Now we remove our currentItem, the list group clone again, and the placeholder, and animate the helper back to it's original size\\n                    this.instance.currentItem.remove();\\n                    if(this.instance.placeholder) {\\n                        this.instance.placeholder.remove();\\n                    }\\n\\n                    inst._trigger(\\\"fromSortable\\\", event);\\n                    inst.dropped = false; //draggable revert needs that\\n                }\\n\\n            }\\n\\n        });\\n\\n    }\\n});\\n\\n$.ui.plugin.add(\\\"draggable\\\", \\\"cursor\\\", {\\n    start: function() {\\n        var t = $(\\\"body\\\"), o = $(this).data(\\\"ui-draggable\\\").options;\\n        if (t.css(\\\"cursor\\\")) {\\n            o._cursor = t.css(\\\"cursor\\\");\\n        }\\n        t.css(\\\"cursor\\\", o.cursor);\\n    },\\n    stop: function() {\\n        var o = $(this).data(\\\"ui-draggable\\\").options;\\n        if (o._cursor) {\\n            $(\\\"body\\\").css(\\\"cursor\\\", o._cursor);\\n        }\\n    }\\n});\\n\\n$.ui.plugin.add(\\\"draggable\\\", \\\"opacity\\\", {\\n    start: function(event, ui) {\\n        var t = $(ui.helper), o = $(this).data(\\\"ui-draggable\\\").options;\\n        if(t.css(\\\"opacity\\\")) {\\n            o._opacity = t.css(\\\"opacity\\\");\\n        }\\n        t.css(\\\"opacity\\\", o.opacity);\\n    },\\n    stop: function(event, ui) {\\n        var o = $(this).data(\\\"ui-draggable\\\").options;\\n        if(o._opacity) {\\n            $(ui.helper).css(\\\"opacity\\\", o._opacity);\\n        }\\n    }\\n});\\n\\n$.ui.plugin.add(\\\"draggable\\\", \\\"scroll\\\", {\\n    start: function() {\\n        var i = $(this).data(\\\"ui-draggable\\\");\\n        if(i.scrollParent[0] !== document && i.scrollParent[0].tagName !== \\\"HTML\\\") {\\n            i.overflowOffset = i.scrollParent.offset();\\n        }\\n    },\\n    drag: function( event ) {\\n\\n        var i = $(this).data(\\\"ui-draggable\\\"), o = i.options, scrolled = false;\\n\\n        if(i.scrollParent[0] !== document && i.scrollParent[0].tagName !== \\\"HTML\\\") {\\n\\n            if(!o.axis || o.axis !== \\\"x\\\") {\\n                if((i.overflowOffset.top + i.scrollParent[0].offsetHeight) - event.pageY < o.scrollSensitivity) {\\n                    i.scrollParent[0].scrollTop = scrolled = i.scrollParent[0].scrollTop + o.scrollSpeed;\\n                } else if(event.pageY - i.overflowOffset.top < o.scrollSensitivity) {\\n                    i.scrollParent[0].scrollTop = scrolled = i.scrollParent[0].scrollTop - o.scrollSpeed;\\n                }\\n            }\\n\\n            if(!o.axis || o.axis !== \\\"y\\\") {\\n                if((i.overflowOffset.left + i.scrollParent[0].offsetWidth) - event.pageX < o.scrollSensitivity) {\\n                    i.scrollParent[0].scrollLeft = scrolled = i.scrollParent[0].scrollLeft + o.scrollSpeed;\\n                } else if(event.pageX - i.overflowOffset.left < o.scrollSensitivity) {\\n                    i.scrollParent[0].scrollLeft = scrolled = i.scrollParent[0].scrollLeft - o.scrollSpeed;\\n                }\\n            }\\n\\n        } else {\\n\\n            if(!o.axis || o.axis !== \\\"x\\\") {\\n                if(event.pageY - $(document).scrollTop() < o.scrollSensitivity) {\\n                    scrolled = $(document).scrollTop($(document).scrollTop() - o.scrollSpeed);\\n                } else if($(window).height() - (event.pageY - $(document).scrollTop()) < o.scrollSensitivity) {\\n                    scrolled = $(document).scrollTop($(document).scrollTop() + o.scrollSpeed);\\n                }\\n            }\\n\\n            if(!o.axis || o.axis !== \\\"y\\\") {\\n                if(event.pageX - $(document).scrollLeft() < o.scrollSensitivity) {\\n                    scrolled = $(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed);\\n                } else if($(window).width() - (event.pageX - $(document).scrollLeft()) < o.scrollSensitivity) {\\n                    scrolled = $(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed);\\n                }\\n            }\\n\\n        }\\n\\n        if(scrolled !== false && $.ui.ddmanager && !o.dropBehaviour) {\\n            $.ui.ddmanager.prepareOffsets(i, event);\\n        }\\n\\n    }\\n});\\n\\n$.ui.plugin.add(\\\"draggable\\\", \\\"snap\\\", {\\n    start: function() {\\n\\n        var i = $(this).data(\\\"ui-draggable\\\"),\\n            o = i.options;\\n\\n        i.snapElements = [];\\n\\n        $(o.snap.constructor !== String ? ( o.snap.items || \\\":data(ui-draggable)\\\" ) : o.snap).each(function() {\\n            var $t = $(this),\\n                $o = $t.offset();\\n            if(this !== i.element[0]) {\\n                i.snapElements.push({\\n                    item: this,\\n                    width: $t.outerWidth(), height: $t.outerHeight(),\\n                    top: $o.top, left: $o.left\\n                });\\n            }\\n        });\\n\\n    },\\n    drag: function(event, ui) {\\n\\n        var ts, bs, ls, rs, l, r, t, b, i, first,\\n            inst = $(this).data(\\\"ui-draggable\\\"),\\n            o = inst.options,\\n            d = o.snapTolerance,\\n            x1 = ui.offset.left, x2 = x1 + inst.helperProportions.width,\\n            y1 = ui.offset.top, y2 = y1 + inst.helperProportions.height;\\n\\n        for (i = inst.snapElements.length - 1; i >= 0; i--){\\n\\n            l = inst.snapElements[i].left;\\n            r = l + inst.snapElements[i].width;\\n            t = inst.snapElements[i].top;\\n            b = t + inst.snapElements[i].height;\\n\\n            if ( x2 < l - d || x1 > r + d || y2 < t - d || y1 > b + d || !$.contains( inst.snapElements[ i ].item.ownerDocument, inst.snapElements[ i ].item ) ) {\\n                if(inst.snapElements[i].snapping) {\\n                    (inst.options.snap.release && inst.options.snap.release.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item })));\\n                }\\n                inst.snapElements[i].snapping = false;\\n                continue;\\n            }\\n\\n            if(o.snapMode !== \\\"inner\\\") {\\n                ts = Math.abs(t - y2) <= d;\\n                bs = Math.abs(b - y1) <= d;\\n                ls = Math.abs(l - x2) <= d;\\n                rs = Math.abs(r - x1) <= d;\\n                if(ts) {\\n                    ui.position.top = inst._convertPositionTo(\\\"relative\\\", { top: t - inst.helperProportions.height, left: 0 }).top - inst.margins.top;\\n                }\\n                if(bs) {\\n                    ui.position.top = inst._convertPositionTo(\\\"relative\\\", { top: b, left: 0 }).top - inst.margins.top;\\n                }\\n                if(ls) {\\n                    ui.position.left = inst._convertPositionTo(\\\"relative\\\", { top: 0, left: l - inst.helperProportions.width }).left - inst.margins.left;\\n                }\\n                if(rs) {\\n                    ui.position.left = inst._convertPositionTo(\\\"relative\\\", { top: 0, left: r }).left - inst.margins.left;\\n                }\\n            }\\n\\n            first = (ts || bs || ls || rs);\\n\\n            if(o.snapMode !== \\\"outer\\\") {\\n                ts = Math.abs(t - y1) <= d;\\n                bs = Math.abs(b - y2) <= d;\\n                ls = Math.abs(l - x1) <= d;\\n                rs = Math.abs(r - x2) <= d;\\n                if(ts) {\\n                    ui.position.top = inst._convertPositionTo(\\\"relative\\\", { top: t, left: 0 }).top - inst.margins.top;\\n                }\\n                if(bs) {\\n                    ui.position.top = inst._convertPositionTo(\\\"relative\\\", { top: b - inst.helperProportions.height, left: 0 }).top - inst.margins.top;\\n                }\\n                if(ls) {\\n                    ui.position.left = inst._convertPositionTo(\\\"relative\\\", { top: 0, left: l }).left - inst.margins.left;\\n                }\\n                if(rs) {\\n                    ui.position.left = inst._convertPositionTo(\\\"relative\\\", { top: 0, left: r - inst.helperProportions.width }).left - inst.margins.left;\\n                }\\n            }\\n\\n            if(!inst.snapElements[i].snapping && (ts || bs || ls || rs || first)) {\\n                (inst.options.snap.snap && inst.options.snap.snap.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item })));\\n            }\\n            inst.snapElements[i].snapping = (ts || bs || ls || rs || first);\\n\\n        }\\n\\n    }\\n});\\n\\n$.ui.plugin.add(\\\"draggable\\\", \\\"stack\\\", {\\n    start: function() {\\n        var min,\\n            o = this.data(\\\"ui-draggable\\\").options,\\n            group = $.makeArray($(o.stack)).sort(function(a,b) {\\n                return (parseInt($(a).css(\\\"zIndex\\\"),10) || 0) - (parseInt($(b).css(\\\"zIndex\\\"),10) || 0);\\n            });\\n\\n        if (!group.length) { return; }\\n\\n        min = parseInt($(group[0]).css(\\\"zIndex\\\"), 10) || 0;\\n        $(group).each(function(i) {\\n            $(this).css(\\\"zIndex\\\", min + i);\\n        });\\n        this.css(\\\"zIndex\\\", (min + group.length));\\n    }\\n});\\n\\n$.ui.plugin.add(\\\"draggable\\\", \\\"zIndex\\\", {\\n    start: function(event, ui) {\\n        var t = $(ui.helper), o = $(this).data(\\\"ui-draggable\\\").options;\\n        if(t.css(\\\"zIndex\\\")) {\\n            o._zIndex = t.css(\\\"zIndex\\\");\\n        }\\n        t.css(\\\"zIndex\\\", o.zIndex);\\n    },\\n    stop: function(event, ui) {\\n        var o = $(this).data(\\\"ui-draggable\\\").options;\\n        if(o._zIndex) {\\n            $(ui.helper).css(\\\"zIndex\\\", o._zIndex);\\n        }\\n    }\\n});\\n\\n})(jQuery);\\n(function( $, undefined ) {\\n\\nfunction isOverAxis( x, reference, size ) {\\n    return ( x > reference ) && ( x < ( reference + size ) );\\n}\\n\\n$.widget(\\\"ui.droppable\\\", {\\n    version: \\\"1.10.4\\\",\\n    widgetEventPrefix: \\\"drop\\\",\\n    options: {\\n        accept: \\\"*\\\",\\n        activeClass: false,\\n        addClasses: true,\\n        greedy: false,\\n        hoverClass: false,\\n        scope: \\\"default\\\",\\n        tolerance: \\\"intersect\\\",\\n\\n        // callbacks\\n        activate: null,\\n        deactivate: null,\\n        drop: null,\\n        out: null,\\n        over: null\\n    },\\n    _create: function() {\\n\\n        var proportions,\\n            o = this.options,\\n            accept = o.accept;\\n\\n        this.isover = false;\\n        this.isout = true;\\n\\n        this.accept = $.isFunction(accept) ? accept : function(d) {\\n            return d.is(accept);\\n        };\\n\\n        this.proportions = function( /* valueToWrite */ ) {\\n            if ( arguments.length ) {\\n                // Store the droppable's proportions\\n                proportions = arguments[ 0 ];\\n            } else {\\n                // Retrieve or derive the droppable's proportions\\n                return proportions ?\\n                    proportions :\\n                    proportions = {\\n                        width: this.element[ 0 ].offsetWidth,\\n                        height: this.element[ 0 ].offsetHeight\\n                    };\\n            }\\n        };\\n\\n        // Add the reference and positions to the manager\\n        $.ui.ddmanager.droppables[o.scope] = $.ui.ddmanager.droppables[o.scope] || [];\\n        $.ui.ddmanager.droppables[o.scope].push(this);\\n\\n        (o.addClasses && this.element.addClass(\\\"ui-droppable\\\"));\\n\\n    },\\n\\n    _destroy: function() {\\n        var i = 0,\\n            drop = $.ui.ddmanager.droppables[this.options.scope];\\n\\n        for ( ; i < drop.length; i++ ) {\\n            if ( drop[i] === this ) {\\n                drop.splice(i, 1);\\n            }\\n        }\\n\\n        this.element.removeClass(\\\"ui-droppable ui-droppable-disabled\\\");\\n    },\\n\\n    _setOption: function(key, value) {\\n\\n        if(key === \\\"accept\\\") {\\n            this.accept = $.isFunction(value) ? value : function(d) {\\n                return d.is(value);\\n            };\\n        }\\n        $.Widget.prototype._setOption.apply(this, arguments);\\n    },\\n\\n    _activate: function(event) {\\n        var draggable = $.ui.ddmanager.current;\\n        if(this.options.activeClass) {\\n            this.element.addClass(this.options.activeClass);\\n        }\\n        if(draggable){\\n            this._trigger(\\\"activate\\\", event, this.ui(draggable));\\n        }\\n    },\\n\\n    _deactivate: function(event) {\\n        var draggable = $.ui.ddmanager.current;\\n        if(this.options.activeClass) {\\n            this.element.removeClass(this.options.activeClass);\\n        }\\n        if(draggable){\\n            this._trigger(\\\"deactivate\\\", event, this.ui(draggable));\\n        }\\n    },\\n\\n    _over: function(event) {\\n\\n        var draggable = $.ui.ddmanager.current;\\n\\n        // Bail if draggable and droppable are same element\\n        if (!draggable || (draggable.currentItem || draggable.element)[0] === this.element[0]) {\\n            return;\\n        }\\n\\n        if (this.accept.call(this.element[0],(draggable.currentItem || draggable.element))) {\\n            if(this.options.hoverClass) {\\n                this.element.addClass(this.options.hoverClass);\\n            }\\n            this._trigger(\\\"over\\\", event, this.ui(draggable));\\n        }\\n\\n    },\\n\\n    _out: function(event) {\\n\\n        var draggable = $.ui.ddmanager.current;\\n\\n        // Bail if draggable and droppable are same element\\n        if (!draggable || (draggable.currentItem || draggable.element)[0] === this.element[0]) {\\n            return;\\n        }\\n\\n        if (this.accept.call(this.element[0],(draggable.currentItem || draggable.element))) {\\n            if(this.options.hoverClass) {\\n                this.element.removeClass(this.options.hoverClass);\\n            }\\n            this._trigger(\\\"out\\\", event, this.ui(draggable));\\n        }\\n\\n    },\\n\\n    _drop: function(event,custom) {\\n\\n        var draggable = custom || $.ui.ddmanager.current,\\n            childrenIntersection = false;\\n\\n        // Bail if draggable and droppable are same element\\n        if (!draggable || (draggable.currentItem || draggable.element)[0] === this.element[0]) {\\n            return false;\\n        }\\n\\n        this.element.find(\\\":data(ui-droppable)\\\").not(\\\".ui-draggable-dragging\\\").each(function() {\\n            var inst = $.data(this, \\\"ui-droppable\\\");\\n            if(\\n                inst.options.greedy &&\\n                !inst.options.disabled &&\\n                inst.options.scope === draggable.options.scope &&\\n                inst.accept.call(inst.element[0], (draggable.currentItem || draggable.element)) &&\\n                $.ui.intersect(draggable, $.extend(inst, { offset: inst.element.offset() }), inst.options.tolerance)\\n            ) { childrenIntersection = true; return false; }\\n        });\\n        if(childrenIntersection) {\\n            return false;\\n        }\\n\\n        if(this.accept.call(this.element[0],(draggable.currentItem || draggable.element))) {\\n            if(this.options.activeClass) {\\n                this.element.removeClass(this.options.activeClass);\\n            }\\n            if(this.options.hoverClass) {\\n                this.element.removeClass(this.options.hoverClass);\\n            }\\n            this._trigger(\\\"drop\\\", event, this.ui(draggable));\\n            return this.element;\\n        }\\n\\n        return false;\\n\\n    },\\n\\n    ui: function(c) {\\n        return {\\n            draggable: (c.currentItem || c.element),\\n            helper: c.helper,\\n            position: c.position,\\n            offset: c.positionAbs\\n        };\\n    }\\n\\n});\\n\\n$.ui.intersect = function(draggable, droppable, toleranceMode) {\\n\\n    if (!droppable.offset) {\\n        return false;\\n    }\\n\\n    var draggableLeft, draggableTop,\\n        x1 = (draggable.positionAbs || draggable.position.absolute).left,\\n        y1 = (draggable.positionAbs || draggable.position.absolute).top,\\n        x2 = x1 + draggable.helperProportions.width,\\n        y2 = y1 + draggable.helperProportions.height,\\n        l = droppable.offset.left,\\n        t = droppable.offset.top,\\n        r = l + droppable.proportions().width,\\n        b = t + droppable.proportions().height;\\n\\n    switch (toleranceMode) {\\n        case \\\"fit\\\":\\n            return (l <= x1 && x2 <= r && t <= y1 && y2 <= b);\\n        case \\\"intersect\\\":\\n            return (l < x1 + (draggable.helperProportions.width / 2) && // Right Half\\n                x2 - (draggable.helperProportions.width / 2) < r && // Left Half\\n                t < y1 + (draggable.helperProportions.height / 2) && // Bottom Half\\n                y2 - (draggable.helperProportions.height / 2) < b ); // Top Half\\n        case \\\"pointer\\\":\\n            draggableLeft = ((draggable.positionAbs || draggable.position.absolute).left + (draggable.clickOffset || draggable.offset.click).left);\\n            draggableTop = ((draggable.positionAbs || draggable.position.absolute).top + (draggable.clickOffset || draggable.offset.click).top);\\n            return isOverAxis( draggableTop, t, droppable.proportions().height ) && isOverAxis( draggableLeft, l, droppable.proportions().width );\\n        case \\\"touch\\\":\\n            return (\\n                (y1 >= t && y1 <= b) || // Top edge touching\\n                (y2 >= t && y2 <= b) || // Bottom edge touching\\n                (y1 < t && y2 > b)      // Surrounded vertically\\n            ) && (\\n                (x1 >= l && x1 <= r) || // Left edge touching\\n                (x2 >= l && x2 <= r) || // Right edge touching\\n                (x1 < l && x2 > r)      // Surrounded horizontally\\n            );\\n        default:\\n            return false;\\n        }\\n\\n};\\n\\n/*\\n    This manager tracks offsets of draggables and droppables\\n*/\\n$.ui.ddmanager = {\\n    current: null,\\n    droppables: { \\\"default\\\": [] },\\n    prepareOffsets: function(t, event) {\\n\\n        var i, j,\\n            m = $.ui.ddmanager.droppables[t.options.scope] || [],\\n            type = event ? event.type : null, // workaround for #2317\\n            list = (t.currentItem || t.element).find(\\\":data(ui-droppable)\\\").addBack();\\n\\n        droppablesLoop: for (i = 0; i < m.length; i++) {\\n\\n            //No disabled and non-accepted\\n            if(m[i].options.disabled || (t && !m[i].accept.call(m[i].element[0],(t.currentItem || t.element)))) {\\n                continue;\\n            }\\n\\n            // Filter out elements in the current dragged item\\n            for (j=0; j < list.length; j++) {\\n                if(list[j] === m[i].element[0]) {\\n                    m[i].proportions().height = 0;\\n                    continue droppablesLoop;\\n                }\\n            }\\n\\n            m[i].visible = m[i].element.css(\\\"display\\\") !== \\\"none\\\";\\n            if(!m[i].visible) {\\n                continue;\\n            }\\n\\n            //Activate the droppable if used directly from draggables\\n            if(type === \\\"mousedown\\\") {\\n                m[i]._activate.call(m[i], event);\\n            }\\n\\n            m[ i ].offset = m[ i ].element.offset();\\n            m[ i ].proportions({ width: m[ i ].element[ 0 ].offsetWidth, height: m[ i ].element[ 0 ].offsetHeight });\\n\\n        }\\n\\n    },\\n    drop: function(draggable, event) {\\n\\n        var dropped = false;\\n        // Create a copy of the droppables in case the list changes during the drop (#9116)\\n        $.each(($.ui.ddmanager.droppables[draggable.options.scope] || []).slice(), function() {\\n\\n            if(!this.options) {\\n                return;\\n            }\\n            if (!this.options.disabled && this.visible && $.ui.intersect(draggable, this, this.options.tolerance)) {\\n                dropped = this._drop.call(this, event) || dropped;\\n            }\\n\\n            if (!this.options.disabled && this.visible && this.accept.call(this.element[0],(draggable.currentItem || draggable.element))) {\\n                this.isout = true;\\n                this.isover = false;\\n                this._deactivate.call(this, event);\\n            }\\n\\n        });\\n        return dropped;\\n\\n    },\\n    dragStart: function( draggable, event ) {\\n        //Listen for scrolling so that if the dragging causes scrolling the position of the droppables can be recalculated (see #5003)\\n        draggable.element.parentsUntil( \\\"body\\\" ).bind( \\\"scroll.droppable\\\", function() {\\n            if( !draggable.options.refreshPositions ) {\\n                $.ui.ddmanager.prepareOffsets( draggable, event );\\n            }\\n        });\\n    },\\n    drag: function(draggable, event) {\\n\\n        //If you have a highly dynamic page, you might try this option. It renders positions every time you move the mouse.\\n        if(draggable.options.refreshPositions) {\\n            $.ui.ddmanager.prepareOffsets(draggable, event);\\n        }\\n\\n        //Run through all droppables and check their positions based on specific tolerance options\\n        $.each($.ui.ddmanager.droppables[draggable.options.scope] || [], function() {\\n\\n            if(this.options.disabled || this.greedyChild || !this.visible) {\\n                return;\\n            }\\n\\n            var parentInstance, scope, parent,\\n                intersects = $.ui.intersect(draggable, this, this.options.tolerance),\\n                c = !intersects && this.isover ? \\\"isout\\\" : (intersects && !this.isover ? \\\"isover\\\" : null);\\n            if(!c) {\\n                return;\\n            }\\n\\n            if (this.options.greedy) {\\n                // find droppable parents with same scope\\n                scope = this.options.scope;\\n                parent = this.element.parents(\\\":data(ui-droppable)\\\").filter(function () {\\n                    return $.data(this, \\\"ui-droppable\\\").options.scope === scope;\\n                });\\n\\n                if (parent.length) {\\n                    parentInstance = $.data(parent[0], \\\"ui-droppable\\\");\\n                    parentInstance.greedyChild = (c === \\\"isover\\\");\\n                }\\n            }\\n\\n            // we just moved into a greedy child\\n            if (parentInstance && c === \\\"isover\\\") {\\n                parentInstance.isover = false;\\n                parentInstance.isout = true;\\n                parentInstance._out.call(parentInstance, event);\\n            }\\n\\n            this[c] = true;\\n            this[c === \\\"isout\\\" ? \\\"isover\\\" : \\\"isout\\\"] = false;\\n            this[c === \\\"isover\\\" ? \\\"_over\\\" : \\\"_out\\\"].call(this, event);\\n\\n            // we just moved out of a greedy child\\n            if (parentInstance && c === \\\"isout\\\") {\\n                parentInstance.isout = false;\\n                parentInstance.isover = true;\\n                parentInstance._over.call(parentInstance, event);\\n            }\\n        });\\n\\n    },\\n    dragStop: function( draggable, event ) {\\n        draggable.element.parentsUntil( \\\"body\\\" ).unbind( \\\"scroll.droppable\\\" );\\n        //Call prepareOffsets one final time since IE does not fire return scroll events when overflow was caused by drag (see #5003)\\n        if( !draggable.options.refreshPositions ) {\\n            $.ui.ddmanager.prepareOffsets( draggable, event );\\n        }\\n    }\\n};\\n\\n})(jQuery);\\n(function($, undefined) {\\n\\nvar dataSpace = \\\"ui-effects-\\\";\\n\\n$.effects = {\\n    effect: {}\\n};\\n\\n/*!\\n * jQuery Color Animations v2.1.2\\n * https://github.com/jquery/jquery-color\\n *\\n * Copyright 2013 jQuery Foundation and other contributors\\n * Released under the MIT license.\\n * http://jquery.org/license\\n *\\n * Date: Wed Jan 16 08:47:09 2013 -0600\\n */\\n(function( jQuery, undefined ) {\\n\\n    var stepHooks = \\\"backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor\\\",\\n\\n    // plusequals test for += 100 -= 100\\n    rplusequals = /^([\\\\-+])=\\\\s*(\\\\d+\\\\.?\\\\d*)/,\\n    // a set of RE's that can match strings and generate color tuples.\\n    stringParsers = [{\\n            re: /rgba?\\\\(\\\\s*(\\\\d{1,3})\\\\s*,\\\\s*(\\\\d{1,3})\\\\s*,\\\\s*(\\\\d{1,3})\\\\s*(?:,\\\\s*(\\\\d?(?:\\\\.\\\\d+)?)\\\\s*)?\\\\)/,\\n            parse: function( execResult ) {\\n                return [\\n                    execResult[ 1 ],\\n                    execResult[ 2 ],\\n                    execResult[ 3 ],\\n                    execResult[ 4 ]\\n                ];\\n            }\\n        }, {\\n            re: /rgba?\\\\(\\\\s*(\\\\d+(?:\\\\.\\\\d+)?)\\\\%\\\\s*,\\\\s*(\\\\d+(?:\\\\.\\\\d+)?)\\\\%\\\\s*,\\\\s*(\\\\d+(?:\\\\.\\\\d+)?)\\\\%\\\\s*(?:,\\\\s*(\\\\d?(?:\\\\.\\\\d+)?)\\\\s*)?\\\\)/,\\n            parse: function( execResult ) {\\n                return [\\n                    execResult[ 1 ] * 2.55,\\n                    execResult[ 2 ] * 2.55,\\n                    execResult[ 3 ] * 2.55,\\n                    execResult[ 4 ]\\n                ];\\n            }\\n        }, {\\n            // this regex ignores A-F because it's compared against an already lowercased string\\n            re: /#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,\\n            parse: function( execResult ) {\\n                return [\\n                    parseInt( execResult[ 1 ], 16 ),\\n                    parseInt( execResult[ 2 ], 16 ),\\n                    parseInt( execResult[ 3 ], 16 )\\n                ];\\n            }\\n        }, {\\n            // this regex ignores A-F because it's compared against an already lowercased string\\n            re: /#([a-f0-9])([a-f0-9])([a-f0-9])/,\\n            parse: function( execResult ) {\\n                return [\\n                    parseInt( execResult[ 1 ] + execResult[ 1 ], 16 ),\\n                    parseInt( execResult[ 2 ] + execResult[ 2 ], 16 ),\\n                    parseInt( execResult[ 3 ] + execResult[ 3 ], 16 )\\n                ];\\n            }\\n        }, {\\n            re: /hsla?\\\\(\\\\s*(\\\\d+(?:\\\\.\\\\d+)?)\\\\s*,\\\\s*(\\\\d+(?:\\\\.\\\\d+)?)\\\\%\\\\s*,\\\\s*(\\\\d+(?:\\\\.\\\\d+)?)\\\\%\\\\s*(?:,\\\\s*(\\\\d?(?:\\\\.\\\\d+)?)\\\\s*)?\\\\)/,\\n            space: \\\"hsla\\\",\\n            parse: function( execResult ) {\\n                return [\\n                    execResult[ 1 ],\\n                    execResult[ 2 ] / 100,\\n                    execResult[ 3 ] / 100,\\n                    execResult[ 4 ]\\n                ];\\n            }\\n        }],\\n\\n    // jQuery.Color( )\\n    color = jQuery.Color = function( color, green, blue, alpha ) {\\n        return new jQuery.Color.fn.parse( color, green, blue, alpha );\\n    },\\n    spaces = {\\n        rgba: {\\n            props: {\\n                red: {\\n                    idx: 0,\\n                    type: \\\"byte\\\"\\n                },\\n                green: {\\n                    idx: 1,\\n                    type: \\\"byte\\\"\\n                },\\n                blue: {\\n                    idx: 2,\\n                    type: \\\"byte\\\"\\n                }\\n            }\\n        },\\n\\n        hsla: {\\n            props: {\\n                hue: {\\n                    idx: 0,\\n                    type: \\\"degrees\\\"\\n                },\\n                saturation: {\\n                    idx: 1,\\n                    type: \\\"percent\\\"\\n                },\\n                lightness: {\\n                    idx: 2,\\n                    type: \\\"percent\\\"\\n                }\\n            }\\n        }\\n    },\\n    propTypes = {\\n        \\\"byte\\\": {\\n            floor: true,\\n            max: 255\\n        },\\n        \\\"percent\\\": {\\n            max: 1\\n        },\\n        \\\"degrees\\\": {\\n            mod: 360,\\n            floor: true\\n        }\\n    },\\n    support = color.support = {},\\n\\n    // element for support tests\\n    supportElem = jQuery( \\\"<p>\\\" )[ 0 ],\\n\\n    // colors = jQuery.Color.names\\n    colors,\\n\\n    // local aliases of functions called often\\n    each = jQuery.each;\\n\\n// determine rgba support immediately\\nsupportElem.style.cssText = \\\"background-color:rgba(1,1,1,.5)\\\";\\nsupport.rgba = supportElem.style.backgroundColor.indexOf( \\\"rgba\\\" ) > -1;\\n\\n// define cache name and alpha properties\\n// for rgba and hsla spaces\\neach( spaces, function( spaceName, space ) {\\n    space.cache = \\\"_\\\" + spaceName;\\n    space.props.alpha = {\\n        idx: 3,\\n        type: \\\"percent\\\",\\n        def: 1\\n    };\\n});\\n\\nfunction clamp( value, prop, allowEmpty ) {\\n    var type = propTypes[ prop.type ] || {};\\n\\n    if ( value == null ) {\\n        return (allowEmpty || !prop.def) ? null : prop.def;\\n    }\\n\\n    // ~~ is an short way of doing floor for positive numbers\\n    value = type.floor ? ~~value : parseFloat( value );\\n\\n    // IE will pass in empty strings as value for alpha,\\n    // which will hit this case\\n    if ( isNaN( value ) ) {\\n        return prop.def;\\n    }\\n\\n    if ( type.mod ) {\\n        // we add mod before modding to make sure that negatives values\\n        // get converted properly: -10 -> 350\\n        return (value + type.mod) % type.mod;\\n    }\\n\\n    // for now all property types without mod have min and max\\n    return 0 > value ? 0 : type.max < value ? type.max : value;\\n}\\n\\nfunction stringParse( string ) {\\n    var inst = color(),\\n        rgba = inst._rgba = [];\\n\\n    string = string.toLowerCase();\\n\\n    each( stringParsers, function( i, parser ) {\\n        var parsed,\\n            match = parser.re.exec( string ),\\n            values = match && parser.parse( match ),\\n            spaceName = parser.space || \\\"rgba\\\";\\n\\n        if ( values ) {\\n            parsed = inst[ spaceName ]( values );\\n\\n            // if this was an rgba parse the assignment might happen twice\\n            // oh well....\\n            inst[ spaces[ spaceName ].cache ] = parsed[ spaces[ spaceName ].cache ];\\n            rgba = inst._rgba = parsed._rgba;\\n\\n            // exit each( stringParsers ) here because we matched\\n            return false;\\n        }\\n    });\\n\\n    // Found a stringParser that handled it\\n    if ( rgba.length ) {\\n\\n        // if this came from a parsed string, force \\\"transparent\\\" when alpha is 0\\n        // chrome, (and maybe others) return \\\"transparent\\\" as rgba(0,0,0,0)\\n        if ( rgba.join() === \\\"0,0,0,0\\\" ) {\\n            jQuery.extend( rgba, colors.transparent );\\n        }\\n        return inst;\\n    }\\n\\n    // named colors\\n    return colors[ string ];\\n}\\n\\ncolor.fn = jQuery.extend( color.prototype, {\\n    parse: function( red, green, blue, alpha ) {\\n        if ( red === undefined ) {\\n            this._rgba = [ null, null, null, null ];\\n            return this;\\n        }\\n        if ( red.jquery || red.nodeType ) {\\n            red = jQuery( red ).css( green );\\n            green = undefined;\\n        }\\n\\n        var inst = this,\\n            type = jQuery.type( red ),\\n            rgba = this._rgba = [];\\n\\n        // more than 1 argument specified - assume ( red, green, blue, alpha )\\n        if ( green !== undefined ) {\\n            red = [ red, green, blue, alpha ];\\n            type = \\\"array\\\";\\n        }\\n\\n        if ( type === \\\"string\\\" ) {\\n            return this.parse( stringParse( red ) || colors._default );\\n        }\\n\\n        if ( type === \\\"array\\\" ) {\\n            each( spaces.rgba.props, function( key, prop ) {\\n                rgba[ prop.idx ] = clamp( red[ prop.idx ], prop );\\n            });\\n            return this;\\n        }\\n\\n        if ( type === \\\"object\\\" ) {\\n            if ( red instanceof color ) {\\n                each( spaces, function( spaceName, space ) {\\n                    if ( red[ space.cache ] ) {\\n                        inst[ space.cache ] = red[ space.cache ].slice();\\n                    }\\n                });\\n            } else {\\n                each( spaces, function( spaceName, space ) {\\n                    var cache = space.cache;\\n                    each( space.props, function( key, prop ) {\\n\\n                        // if the cache doesn't exist, and we know how to convert\\n                        if ( !inst[ cache ] && space.to ) {\\n\\n                            // if the value was null, we don't need to copy it\\n                            // if the key was alpha, we don't need to copy it either\\n                            if ( key === \\\"alpha\\\" || red[ key ] == null ) {\\n                                return;\\n                            }\\n                            inst[ cache ] = space.to( inst._rgba );\\n                        }\\n\\n                        // this is the only case where we allow nulls for ALL properties.\\n                        // call clamp with alwaysAllowEmpty\\n                        inst[ cache ][ prop.idx ] = clamp( red[ key ], prop, true );\\n                    });\\n\\n                    // everything defined but alpha?\\n                    if ( inst[ cache ] && jQuery.inArray( null, inst[ cache ].slice( 0, 3 ) ) < 0 ) {\\n                        // use the default of 1\\n                        inst[ cache ][ 3 ] = 1;\\n                        if ( space.from ) {\\n                            inst._rgba = space.from( inst[ cache ] );\\n                        }\\n                    }\\n                });\\n            }\\n            return this;\\n        }\\n    },\\n    is: function( compare ) {\\n        var is = color( compare ),\\n            same = true,\\n            inst = this;\\n\\n        each( spaces, function( _, space ) {\\n            var localCache,\\n                isCache = is[ space.cache ];\\n            if (isCache) {\\n                localCache = inst[ space.cache ] || space.to && space.to( inst._rgba ) || [];\\n                each( space.props, function( _, prop ) {\\n                    if ( isCache[ prop.idx ] != null ) {\\n                        same = ( isCache[ prop.idx ] === localCache[ prop.idx ] );\\n                        return same;\\n                    }\\n                });\\n            }\\n            return same;\\n        });\\n        return same;\\n    },\\n    _space: function() {\\n        var used = [],\\n            inst = this;\\n        each( spaces, function( spaceName, space ) {\\n            if ( inst[ space.cache ] ) {\\n                used.push( spaceName );\\n            }\\n        });\\n        return used.pop();\\n    },\\n    transition: function( other, distance ) {\\n        var end = color( other ),\\n            spaceName = end._space(),\\n            space = spaces[ spaceName ],\\n            startColor = this.alpha() === 0 ? color( \\\"transparent\\\" ) : this,\\n            start = startColor[ space.cache ] || space.to( startColor._rgba ),\\n            result = start.slice();\\n\\n        end = end[ space.cache ];\\n        each( space.props, function( key, prop ) {\\n            var index = prop.idx,\\n                startValue = start[ index ],\\n                endValue = end[ index ],\\n                type = propTypes[ prop.type ] || {};\\n\\n            // if null, don't override start value\\n            if ( endValue === null ) {\\n                return;\\n            }\\n            // if null - use end\\n            if ( startValue === null ) {\\n                result[ index ] = endValue;\\n            } else {\\n                if ( type.mod ) {\\n                    if ( endValue - startValue > type.mod / 2 ) {\\n                        startValue += type.mod;\\n                    } else if ( startValue - endValue > type.mod / 2 ) {\\n                        startValue -= type.mod;\\n                    }\\n                }\\n                result[ index ] = clamp( ( endValue - startValue ) * distance + startValue, prop );\\n            }\\n        });\\n        return this[ spaceName ]( result );\\n    },\\n    blend: function( opaque ) {\\n        // if we are already opaque - return ourself\\n        if ( this._rgba[ 3 ] === 1 ) {\\n            return this;\\n        }\\n\\n        var rgb = this._rgba.slice(),\\n            a = rgb.pop(),\\n            blend = color( opaque )._rgba;\\n\\n        return color( jQuery.map( rgb, function( v, i ) {\\n            return ( 1 - a ) * blend[ i ] + a * v;\\n        }));\\n    },\\n    toRgbaString: function() {\\n        var prefix = \\\"rgba(\\\",\\n            rgba = jQuery.map( this._rgba, function( v, i ) {\\n                return v == null ? ( i > 2 ? 1 : 0 ) : v;\\n            });\\n\\n        if ( rgba[ 3 ] === 1 ) {\\n            rgba.pop();\\n            prefix = \\\"rgb(\\\";\\n        }\\n\\n        return prefix + rgba.join() + \\\")\\\";\\n    },\\n    toHslaString: function() {\\n        var prefix = \\\"hsla(\\\",\\n            hsla = jQuery.map( this.hsla(), function( v, i ) {\\n                if ( v == null ) {\\n                    v = i > 2 ? 1 : 0;\\n                }\\n\\n                // catch 1 and 2\\n                if ( i && i < 3 ) {\\n                    v = Math.round( v * 100 ) + \\\"%\\\";\\n                }\\n                return v;\\n            });\\n\\n        if ( hsla[ 3 ] === 1 ) {\\n            hsla.pop();\\n            prefix = \\\"hsl(\\\";\\n        }\\n        return prefix + hsla.join() + \\\")\\\";\\n    },\\n    toHexString: function( includeAlpha ) {\\n        var rgba = this._rgba.slice(),\\n            alpha = rgba.pop();\\n\\n        if ( includeAlpha ) {\\n            rgba.push( ~~( alpha * 255 ) );\\n        }\\n\\n        return \\\"#\\\" + jQuery.map( rgba, function( v ) {\\n\\n            // default to 0 when nulls exist\\n            v = ( v || 0 ).toString( 16 );\\n            return v.length === 1 ? \\\"0\\\" + v : v;\\n        }).join(\\\"\\\");\\n    },\\n    toString: function() {\\n        return this._rgba[ 3 ] === 0 ? \\\"transparent\\\" : this.toRgbaString();\\n    }\\n});\\ncolor.fn.parse.prototype = color.fn;\\n\\n// hsla conversions adapted from:\\n// https://code.google.com/p/maashaack/source/browse/packages/graphics/trunk/src/graphics/colors/HUE2RGB.as?r=5021\\n\\nfunction hue2rgb( p, q, h ) {\\n    h = ( h + 1 ) % 1;\\n    if ( h * 6 < 1 ) {\\n        return p + (q - p) * h * 6;\\n    }\\n    if ( h * 2 < 1) {\\n        return q;\\n    }\\n    if ( h * 3 < 2 ) {\\n        return p + (q - p) * ((2/3) - h) * 6;\\n    }\\n    return p;\\n}\\n\\nspaces.hsla.to = function ( rgba ) {\\n    if ( rgba[ 0 ] == null || rgba[ 1 ] == null || rgba[ 2 ] == null ) {\\n        return [ null, null, null, rgba[ 3 ] ];\\n    }\\n    var r = rgba[ 0 ] / 255,\\n        g = rgba[ 1 ] / 255,\\n        b = rgba[ 2 ] / 255,\\n        a = rgba[ 3 ],\\n        max = Math.max( r, g, b ),\\n        min = Math.min( r, g, b ),\\n        diff = max - min,\\n        add = max + min,\\n        l = add * 0.5,\\n        h, s;\\n\\n    if ( min === max ) {\\n        h = 0;\\n    } else if ( r === max ) {\\n        h = ( 60 * ( g - b ) / diff ) + 360;\\n    } else if ( g === max ) {\\n        h = ( 60 * ( b - r ) / diff ) + 120;\\n    } else {\\n        h = ( 60 * ( r - g ) / diff ) + 240;\\n    }\\n\\n    // chroma (diff) == 0 means greyscale which, by definition, saturation = 0%\\n    // otherwise, saturation is based on the ratio of chroma (diff) to lightness (add)\\n    if ( diff === 0 ) {\\n        s = 0;\\n    } else if ( l <= 0.5 ) {\\n        s = diff / add;\\n    } else {\\n        s = diff / ( 2 - add );\\n    }\\n    return [ Math.round(h) % 360, s, l, a == null ? 1 : a ];\\n};\\n\\nspaces.hsla.from = function ( hsla ) {\\n    if ( hsla[ 0 ] == null || hsla[ 1 ] == null || hsla[ 2 ] == null ) {\\n        return [ null, null, null, hsla[ 3 ] ];\\n    }\\n    var h = hsla[ 0 ] / 360,\\n        s = hsla[ 1 ],\\n        l = hsla[ 2 ],\\n        a = hsla[ 3 ],\\n        q = l <= 0.5 ? l * ( 1 + s ) : l + s - l * s,\\n        p = 2 * l - q;\\n\\n    return [\\n        Math.round( hue2rgb( p, q, h + ( 1 / 3 ) ) * 255 ),\\n        Math.round( hue2rgb( p, q, h ) * 255 ),\\n        Math.round( hue2rgb( p, q, h - ( 1 / 3 ) ) * 255 ),\\n        a\\n    ];\\n};\\n\\n\\neach( spaces, function( spaceName, space ) {\\n    var props = space.props,\\n        cache = space.cache,\\n        to = space.to,\\n        from = space.from;\\n\\n    // makes rgba() and hsla()\\n    color.fn[ spaceName ] = function( value ) {\\n\\n        // generate a cache for this space if it doesn't exist\\n        if ( to && !this[ cache ] ) {\\n            this[ cache ] = to( this._rgba );\\n        }\\n        if ( value === undefined ) {\\n            return this[ cache ].slice();\\n        }\\n\\n        var ret,\\n            type = jQuery.type( value ),\\n            arr = ( type === \\\"array\\\" || type === \\\"object\\\" ) ? value : arguments,\\n            local = this[ cache ].slice();\\n\\n        each( props, function( key, prop ) {\\n            var val = arr[ type === \\\"object\\\" ? key : prop.idx ];\\n            if ( val == null ) {\\n                val = local[ prop.idx ];\\n            }\\n            local[ prop.idx ] = clamp( val, prop );\\n        });\\n\\n        if ( from ) {\\n            ret = color( from( local ) );\\n            ret[ cache ] = local;\\n            return ret;\\n        } else {\\n            return color( local );\\n        }\\n    };\\n\\n    // makes red() green() blue() alpha() hue() saturation() lightness()\\n    each( props, function( key, prop ) {\\n        // alpha is included in more than one space\\n        if ( color.fn[ key ] ) {\\n            return;\\n        }\\n        color.fn[ key ] = function( value ) {\\n            var vtype = jQuery.type( value ),\\n                fn = ( key === \\\"alpha\\\" ? ( this._hsla ? \\\"hsla\\\" : \\\"rgba\\\" ) : spaceName ),\\n                local = this[ fn ](),\\n                cur = local[ prop.idx ],\\n                match;\\n\\n            if ( vtype === \\\"undefined\\\" ) {\\n                return cur;\\n            }\\n\\n            if ( vtype === \\\"function\\\" ) {\\n                value = value.call( this, cur );\\n                vtype = jQuery.type( value );\\n            }\\n            if ( value == null && prop.empty ) {\\n                return this;\\n            }\\n            if ( vtype === \\\"string\\\" ) {\\n                match = rplusequals.exec( value );\\n                if ( match ) {\\n                    value = cur + parseFloat( match[ 2 ] ) * ( match[ 1 ] === \\\"+\\\" ? 1 : -1 );\\n                }\\n            }\\n            local[ prop.idx ] = value;\\n            return this[ fn ]( local );\\n        };\\n    });\\n});\\n\\n// add cssHook and .fx.step function for each named hook.\\n// accept a space separated string of properties\\ncolor.hook = function( hook ) {\\n    var hooks = hook.split( \\\" \\\" );\\n    each( hooks, function( i, hook ) {\\n        jQuery.cssHooks[ hook ] = {\\n            set: function( elem, value ) {\\n                var parsed, curElem,\\n                    backgroundColor = \\\"\\\";\\n\\n                if ( value !== \\\"transparent\\\" && ( jQuery.type( value ) !== \\\"string\\\" || ( parsed = stringParse( value ) ) ) ) {\\n                    value = color( parsed || value );\\n                    if ( !support.rgba && value._rgba[ 3 ] !== 1 ) {\\n                        curElem = hook === \\\"backgroundColor\\\" ? elem.parentNode : elem;\\n                        while (\\n                            (backgroundColor === \\\"\\\" || backgroundColor === \\\"transparent\\\") &&\\n                            curElem && curElem.style\\n                        ) {\\n                            try {\\n                                backgroundColor = jQuery.css( curElem, \\\"backgroundColor\\\" );\\n                                curElem = curElem.parentNode;\\n                            } catch ( e ) {\\n                            }\\n                        }\\n\\n                        value = value.blend( backgroundColor && backgroundColor !== \\\"transparent\\\" ?\\n                            backgroundColor :\\n                            \\\"_default\\\" );\\n                    }\\n\\n                    value = value.toRgbaString();\\n                }\\n                try {\\n                    elem.style[ hook ] = value;\\n                } catch( e ) {\\n                    // wrapped to prevent IE from throwing errors on \\\"invalid\\\" values like 'auto' or 'inherit'\\n                }\\n            }\\n        };\\n        jQuery.fx.step[ hook ] = function( fx ) {\\n            if ( !fx.colorInit ) {\\n                fx.start = color( fx.elem, hook );\\n                fx.end = color( fx.end );\\n                fx.colorInit = true;\\n            }\\n            jQuery.cssHooks[ hook ].set( fx.elem, fx.start.transition( fx.end, fx.pos ) );\\n        };\\n    });\\n\\n};\\n\\ncolor.hook( stepHooks );\\n\\njQuery.cssHooks.borderColor = {\\n    expand: function( value ) {\\n        var expanded = {};\\n\\n        each( [ \\\"Top\\\", \\\"Right\\\", \\\"Bottom\\\", \\\"Left\\\" ], function( i, part ) {\\n            expanded[ \\\"border\\\" + part + \\\"Color\\\" ] = value;\\n        });\\n        return expanded;\\n    }\\n};\\n\\n// Basic color names only.\\n// Usage of any of the other color names requires adding yourself or including\\n// jquery.color.svg-names.js.\\ncolors = jQuery.Color.names = {\\n    // 4.1. Basic color keywords\\n    aqua: \\\"#00ffff\\\",\\n    black: \\\"#000000\\\",\\n    blue: \\\"#0000ff\\\",\\n    fuchsia: \\\"#ff00ff\\\",\\n    gray: \\\"#808080\\\",\\n    green: \\\"#008000\\\",\\n    lime: \\\"#00ff00\\\",\\n    maroon: \\\"#800000\\\",\\n    navy: \\\"#000080\\\",\\n    olive: \\\"#808000\\\",\\n    purple: \\\"#800080\\\",\\n    red: \\\"#ff0000\\\",\\n    silver: \\\"#c0c0c0\\\",\\n    teal: \\\"#008080\\\",\\n    white: \\\"#ffffff\\\",\\n    yellow: \\\"#ffff00\\\",\\n\\n    // 4.2.3. \\\"transparent\\\" color keyword\\n    transparent: [ null, null, null, 0 ],\\n\\n    _default: \\\"#ffffff\\\"\\n};\\n\\n})( jQuery );\\n\\n\\n/******************************************************************************/\\n/****************************** CLASS ANIMATIONS ******************************/\\n/******************************************************************************/\\n(function() {\\n\\nvar classAnimationActions = [ \\\"add\\\", \\\"remove\\\", \\\"toggle\\\" ],\\n    shorthandStyles = {\\n        border: 1,\\n        borderBottom: 1,\\n        borderColor: 1,\\n        borderLeft: 1,\\n        borderRight: 1,\\n        borderTop: 1,\\n        borderWidth: 1,\\n        margin: 1,\\n        padding: 1\\n    };\\n\\n$.each([ \\\"borderLeftStyle\\\", \\\"borderRightStyle\\\", \\\"borderBottomStyle\\\", \\\"borderTopStyle\\\" ], function( _, prop ) {\\n    $.fx.step[ prop ] = function( fx ) {\\n        if ( fx.end !== \\\"none\\\" && !fx.setAttr || fx.pos === 1 && !fx.setAttr ) {\\n            jQuery.style( fx.elem, prop, fx.end );\\n            fx.setAttr = true;\\n        }\\n    };\\n});\\n\\nfunction getElementStyles( elem ) {\\n    var key, len,\\n        style = elem.ownerDocument.defaultView ?\\n            elem.ownerDocument.defaultView.getComputedStyle( elem, null ) :\\n            elem.currentStyle,\\n        styles = {};\\n\\n    if ( style && style.length && style[ 0 ] && style[ style[ 0 ] ] ) {\\n        len = style.length;\\n        while ( len-- ) {\\n            key = style[ len ];\\n            if ( typeof style[ key ] === \\\"string\\\" ) {\\n                styles[ $.camelCase( key ) ] = style[ key ];\\n            }\\n        }\\n    // support: Opera, IE <9\\n    } else {\\n        for ( key in style ) {\\n            if ( typeof style[ key ] === \\\"string\\\" ) {\\n                styles[ key ] = style[ key ];\\n            }\\n        }\\n    }\\n\\n    return styles;\\n}\\n\\n\\nfunction styleDifference( oldStyle, newStyle ) {\\n    var diff = {},\\n        name, value;\\n\\n    for ( name in newStyle ) {\\n        value = newStyle[ name ];\\n        if ( oldStyle[ name ] !== value ) {\\n            if ( !shorthandStyles[ name ] ) {\\n                if ( $.fx.step[ name ] || !isNaN( parseFloat( value ) ) ) {\\n                    diff[ name ] = value;\\n                }\\n            }\\n        }\\n    }\\n\\n    return diff;\\n}\\n\\n// support: jQuery <1.8\\nif ( !$.fn.addBack ) {\\n    $.fn.addBack = function( selector ) {\\n        return this.add( selector == null ?\\n            this.prevObject : this.prevObject.filter( selector )\\n        );\\n    };\\n}\\n\\n$.effects.animateClass = function( value, duration, easing, callback ) {\\n    var o = $.speed( duration, easing, callback );\\n\\n    return this.queue( function() {\\n        var animated = $( this ),\\n            baseClass = animated.attr( \\\"class\\\" ) || \\\"\\\",\\n            applyClassChange,\\n            allAnimations = o.children ? animated.find( \\\"*\\\" ).addBack() : animated;\\n\\n        // map the animated objects to store the original styles.\\n        allAnimations = allAnimations.map(function() {\\n            var el = $( this );\\n            return {\\n                el: el,\\n                start: getElementStyles( this )\\n            };\\n        });\\n\\n        // apply class change\\n        applyClassChange = function() {\\n            $.each( classAnimationActions, function(i, action) {\\n                if ( value[ action ] ) {\\n                    animated[ action + \\\"Class\\\" ]( value[ action ] );\\n                }\\n            });\\n        };\\n        applyClassChange();\\n\\n        // map all animated objects again - calculate new styles and diff\\n        allAnimations = allAnimations.map(function() {\\n            this.end = getElementStyles( this.el[ 0 ] );\\n            this.diff = styleDifference( this.start, this.end );\\n            return this;\\n        });\\n\\n        // apply original class\\n        animated.attr( \\\"class\\\", baseClass );\\n\\n        // map all animated objects again - this time collecting a promise\\n        allAnimations = allAnimations.map(function() {\\n            var styleInfo = this,\\n                dfd = $.Deferred(),\\n                opts = $.extend({}, o, {\\n                    queue: false,\\n                    complete: function() {\\n                        dfd.resolve( styleInfo );\\n                    }\\n                });\\n\\n            this.el.animate( this.diff, opts );\\n            return dfd.promise();\\n        });\\n\\n        // once all animations have completed:\\n        $.when.apply( $, allAnimations.get() ).done(function() {\\n\\n            // set the final class\\n            applyClassChange();\\n\\n            // for each animated element,\\n            // clear all css properties that were animated\\n            $.each( arguments, function() {\\n                var el = this.el;\\n                $.each( this.diff, function(key) {\\n                    el.css( key, \\\"\\\" );\\n                });\\n            });\\n\\n            // this is guarnteed to be there if you use jQuery.speed()\\n            // it also handles dequeuing the next anim...\\n            o.complete.call( animated[ 0 ] );\\n        });\\n    });\\n};\\n\\n$.fn.extend({\\n    addClass: (function( orig ) {\\n        return function( classNames, speed, easing, callback ) {\\n            return speed ?\\n                $.effects.animateClass.call( this,\\n                    { add: classNames }, speed, easing, callback ) :\\n                orig.apply( this, arguments );\\n        };\\n    })( $.fn.addClass ),\\n\\n    removeClass: (function( orig ) {\\n        return function( classNames, speed, easing, callback ) {\\n            return arguments.length > 1 ?\\n                $.effects.animateClass.call( this,\\n                    { remove: classNames }, speed, easing, callback ) :\\n                orig.apply( this, arguments );\\n        };\\n    })( $.fn.removeClass ),\\n\\n    toggleClass: (function( orig ) {\\n        return function( classNames, force, speed, easing, callback ) {\\n            if ( typeof force === \\\"boolean\\\" || force === undefined ) {\\n                if ( !speed ) {\\n                    // without speed parameter\\n                    return orig.apply( this, arguments );\\n                } else {\\n                    return $.effects.animateClass.call( this,\\n                        (force ? { add: classNames } : { remove: classNames }),\\n                        speed, easing, callback );\\n                }\\n            } else {\\n                // without force parameter\\n                return $.effects.animateClass.call( this,\\n                    { toggle: classNames }, force, speed, easing );\\n            }\\n        };\\n    })( $.fn.toggleClass ),\\n\\n    switchClass: function( remove, add, speed, easing, callback) {\\n        return $.effects.animateClass.call( this, {\\n            add: add,\\n            remove: remove\\n        }, speed, easing, callback );\\n    }\\n});\\n\\n})();\\n\\n/******************************************************************************/\\n/*********************************** EFFECTS **********************************/\\n/******************************************************************************/\\n\\n(function() {\\n\\n$.extend( $.effects, {\\n    version: \\\"1.10.4\\\",\\n\\n    // Saves a set of properties in a data storage\\n    save: function( element, set ) {\\n        for( var i=0; i < set.length; i++ ) {\\n            if ( set[ i ] !== null ) {\\n                element.data( dataSpace + set[ i ], element[ 0 ].style[ set[ i ] ] );\\n            }\\n        }\\n    },\\n\\n    // Restores a set of previously saved properties from a data storage\\n    restore: function( element, set ) {\\n        var val, i;\\n        for( i=0; i < set.length; i++ ) {\\n            if ( set[ i ] !== null ) {\\n                val = element.data( dataSpace + set[ i ] );\\n                // support: jQuery 1.6.2\\n                // http://bugs.jquery.com/ticket/9917\\n                // jQuery 1.6.2 incorrectly returns undefined for any falsy value.\\n                // We can't differentiate between \\\"\\\" and 0 here, so we just assume\\n                // empty string since it's likely to be a more common value...\\n                if ( val === undefined ) {\\n                    val = \\\"\\\";\\n                }\\n                element.css( set[ i ], val );\\n            }\\n        }\\n    },\\n\\n    setMode: function( el, mode ) {\\n        if (mode === \\\"toggle\\\") {\\n            mode = el.is( \\\":hidden\\\" ) ? \\\"show\\\" : \\\"hide\\\";\\n        }\\n        return mode;\\n    },\\n\\n    // Translates a [top,left] array into a baseline value\\n    // this should be a little more flexible in the future to handle a string & hash\\n    getBaseline: function( origin, original ) {\\n        var y, x;\\n        switch ( origin[ 0 ] ) {\\n            case \\\"top\\\": y = 0; break;\\n            case \\\"middle\\\": y = 0.5; break;\\n            case \\\"bottom\\\": y = 1; break;\\n            default: y = origin[ 0 ] / original.height;\\n        }\\n        switch ( origin[ 1 ] ) {\\n            case \\\"left\\\": x = 0; break;\\n            case \\\"center\\\": x = 0.5; break;\\n            case \\\"right\\\": x = 1; break;\\n            default: x = origin[ 1 ] / original.width;\\n        }\\n        return {\\n            x: x,\\n            y: y\\n        };\\n    },\\n\\n    // Wraps the element around a wrapper that copies position properties\\n    createWrapper: function( element ) {\\n\\n        // if the element is already wrapped, return it\\n        if ( element.parent().is( \\\".ui-effects-wrapper\\\" )) {\\n            return element.parent();\\n        }\\n\\n        // wrap the element\\n        var props = {\\n                width: element.outerWidth(true),\\n                height: element.outerHeight(true),\\n                \\\"float\\\": element.css( \\\"float\\\" )\\n            },\\n            wrapper = $( \\\"<div></div>\\\" )\\n                .addClass( \\\"ui-effects-wrapper\\\" )\\n                .css({\\n                    fontSize: \\\"100%\\\",\\n                    background: \\\"transparent\\\",\\n                    border: \\\"none\\\",\\n                    margin: 0,\\n                    padding: 0\\n                }),\\n            // Store the size in case width/height are defined in % - Fixes #5245\\n            size = {\\n                width: element.width(),\\n                height: element.height()\\n            },\\n            active = document.activeElement;\\n\\n        // support: Firefox\\n        // Firefox incorrectly exposes anonymous content\\n        // https://bugzilla.mozilla.org/show_bug.cgi?id=561664\\n        try {\\n            active.id;\\n        } catch( e ) {\\n            active = document.body;\\n        }\\n\\n        element.wrap( wrapper );\\n\\n        // Fixes #7595 - Elements lose focus when wrapped.\\n        if ( element[ 0 ] === active || $.contains( element[ 0 ], active ) ) {\\n            $( active ).focus();\\n        }\\n\\n        wrapper = element.parent(); //Hotfix for jQuery 1.4 since some change in wrap() seems to actually lose the reference to the wrapped element\\n\\n        // transfer positioning properties to the wrapper\\n        if ( element.css( \\\"position\\\" ) === \\\"static\\\" ) {\\n            wrapper.css({ position: \\\"relative\\\" });\\n            element.css({ position: \\\"relative\\\" });\\n        } else {\\n            $.extend( props, {\\n                position: element.css( \\\"position\\\" ),\\n                zIndex: element.css( \\\"z-index\\\" )\\n            });\\n            $.each([ \\\"top\\\", \\\"left\\\", \\\"bottom\\\", \\\"right\\\" ], function(i, pos) {\\n                props[ pos ] = element.css( pos );\\n                if ( isNaN( parseInt( props[ pos ], 10 ) ) ) {\\n                    props[ pos ] = \\\"auto\\\";\\n                }\\n            });\\n            element.css({\\n                position: \\\"relative\\\",\\n                top: 0,\\n                left: 0,\\n                right: \\\"auto\\\",\\n                bottom: \\\"auto\\\"\\n            });\\n        }\\n        element.css(size);\\n\\n        return wrapper.css( props ).show();\\n    },\\n\\n    removeWrapper: function( element ) {\\n        var active = document.activeElement;\\n\\n        if ( element.parent().is( \\\".ui-effects-wrapper\\\" ) ) {\\n            element.parent().replaceWith( element );\\n\\n            // Fixes #7595 - Elements lose focus when wrapped.\\n            if ( element[ 0 ] === active || $.contains( element[ 0 ], active ) ) {\\n                $( active ).focus();\\n            }\\n        }\\n\\n\\n        return element;\\n    },\\n\\n    setTransition: function( element, list, factor, value ) {\\n        value = value || {};\\n        $.each( list, function( i, x ) {\\n            var unit = element.cssUnit( x );\\n            if ( unit[ 0 ] > 0 ) {\\n                value[ x ] = unit[ 0 ] * factor + unit[ 1 ];\\n            }\\n        });\\n        return value;\\n    }\\n});\\n\\n// return an effect options object for the given parameters:\\nfunction _normalizeArguments( effect, options, speed, callback ) {\\n\\n    // allow passing all options as the first parameter\\n    if ( $.isPlainObject( effect ) ) {\\n        options = effect;\\n        effect = effect.effect;\\n    }\\n\\n    // convert to an object\\n    effect = { effect: effect };\\n\\n    // catch (effect, null, ...)\\n    if ( options == null ) {\\n        options = {};\\n    }\\n\\n    // catch (effect, callback)\\n    if ( $.isFunction( options ) ) {\\n        callback = options;\\n        speed = null;\\n        options = {};\\n    }\\n\\n    // catch (effect, speed, ?)\\n    if ( typeof options === \\\"number\\\" || $.fx.speeds[ options ] ) {\\n        callback = speed;\\n        speed = options;\\n        options = {};\\n    }\\n\\n    // catch (effect, options, callback)\\n    if ( $.isFunction( speed ) ) {\\n        callback = speed;\\n        speed = null;\\n    }\\n\\n    // add options to effect\\n    if ( options ) {\\n        $.extend( effect, options );\\n    }\\n\\n    speed = speed || options.duration;\\n    effect.duration = $.fx.off ? 0 :\\n        typeof speed === \\\"number\\\" ? speed :\\n        speed in $.fx.speeds ? $.fx.speeds[ speed ] :\\n        $.fx.speeds._default;\\n\\n    effect.complete = callback || options.complete;\\n\\n    return effect;\\n}\\n\\nfunction standardAnimationOption( option ) {\\n    // Valid standard speeds (nothing, number, named speed)\\n    if ( !option || typeof option === \\\"number\\\" || $.fx.speeds[ option ] ) {\\n        return true;\\n    }\\n\\n    // Invalid strings - treat as \\\"normal\\\" speed\\n    if ( typeof option === \\\"string\\\" && !$.effects.effect[ option ] ) {\\n        return true;\\n    }\\n\\n    // Complete callback\\n    if ( $.isFunction( option ) ) {\\n        return true;\\n    }\\n\\n    // Options hash (but not naming an effect)\\n    if ( typeof option === \\\"object\\\" && !option.effect ) {\\n        return true;\\n    }\\n\\n    // Didn't match any standard API\\n    return false;\\n}\\n\\n$.fn.extend({\\n    effect: function( /* effect, options, speed, callback */ ) {\\n        var args = _normalizeArguments.apply( this, arguments ),\\n            mode = args.mode,\\n            queue = args.queue,\\n            effectMethod = $.effects.effect[ args.effect ];\\n\\n        if ( $.fx.off || !effectMethod ) {\\n            // delegate to the original method (e.g., .show()) if possible\\n            if ( mode ) {\\n                return this[ mode ]( args.duration, args.complete );\\n            } else {\\n                return this.each( function() {\\n                    if ( args.complete ) {\\n                        args.complete.call( this );\\n                    }\\n                });\\n            }\\n        }\\n\\n        function run( next ) {\\n            var elem = $( this ),\\n                complete = args.complete,\\n                mode = args.mode;\\n\\n            function done() {\\n                if ( $.isFunction( complete ) ) {\\n                    complete.call( elem[0] );\\n                }\\n                if ( $.isFunction( next ) ) {\\n                    next();\\n                }\\n            }\\n\\n            // If the element already has the correct final state, delegate to\\n            // the core methods so the internal tracking of \\\"olddisplay\\\" works.\\n            if ( elem.is( \\\":hidden\\\" ) ? mode === \\\"hide\\\" : mode === \\\"show\\\" ) {\\n                elem[ mode ]();\\n                done();\\n            } else {\\n                effectMethod.call( elem[0], args, done );\\n            }\\n        }\\n\\n        return queue === false ? this.each( run ) : this.queue( queue || \\\"fx\\\", run );\\n    },\\n\\n    show: (function( orig ) {\\n        return function( option ) {\\n            if ( standardAnimationOption( option ) ) {\\n                return orig.apply( this, arguments );\\n            } else {\\n                var args = _normalizeArguments.apply( this, arguments );\\n                args.mode = \\\"show\\\";\\n                return this.effect.call( this, args );\\n            }\\n        };\\n    })( $.fn.show ),\\n\\n    hide: (function( orig ) {\\n        return function( option ) {\\n            if ( standardAnimationOption( option ) ) {\\n                return orig.apply( this, arguments );\\n            } else {\\n                var args = _normalizeArguments.apply( this, arguments );\\n                args.mode = \\\"hide\\\";\\n                return this.effect.call( this, args );\\n            }\\n        };\\n    })( $.fn.hide ),\\n\\n    toggle: (function( orig ) {\\n        return function( option ) {\\n            if ( standardAnimationOption( option ) || typeof option === \\\"boolean\\\" ) {\\n                return orig.apply( this, arguments );\\n            } else {\\n                var args = _normalizeArguments.apply( this, arguments );\\n                args.mode = \\\"toggle\\\";\\n                return this.effect.call( this, args );\\n            }\\n        };\\n    })( $.fn.toggle ),\\n\\n    // helper functions\\n    cssUnit: function(key) {\\n        var style = this.css( key ),\\n            val = [];\\n\\n        $.each( [ \\\"em\\\", \\\"px\\\", \\\"%\\\", \\\"pt\\\" ], function( i, unit ) {\\n            if ( style.indexOf( unit ) > 0 ) {\\n                val = [ parseFloat( style ), unit ];\\n            }\\n        });\\n        return val;\\n    }\\n});\\n\\n})();\\n\\n/******************************************************************************/\\n/*********************************** EASING ***********************************/\\n/******************************************************************************/\\n\\n(function() {\\n\\n// based on easing equations from Robert Penner (http://www.robertpenner.com/easing)\\n\\nvar baseEasings = {};\\n\\n$.each( [ \\\"Quad\\\", \\\"Cubic\\\", \\\"Quart\\\", \\\"Quint\\\", \\\"Expo\\\" ], function( i, name ) {\\n    baseEasings[ name ] = function( p ) {\\n        return Math.pow( p, i + 2 );\\n    };\\n});\\n\\n$.extend( baseEasings, {\\n    Sine: function ( p ) {\\n        return 1 - Math.cos( p * Math.PI / 2 );\\n    },\\n    Circ: function ( p ) {\\n        return 1 - Math.sqrt( 1 - p * p );\\n    },\\n    Elastic: function( p ) {\\n        return p === 0 || p === 1 ? p :\\n            -Math.pow( 2, 8 * (p - 1) ) * Math.sin( ( (p - 1) * 80 - 7.5 ) * Math.PI / 15 );\\n    },\\n    Back: function( p ) {\\n        return p * p * ( 3 * p - 2 );\\n    },\\n    Bounce: function ( p ) {\\n        var pow2,\\n            bounce = 4;\\n\\n        while ( p < ( ( pow2 = Math.pow( 2, --bounce ) ) - 1 ) / 11 ) {}\\n        return 1 / Math.pow( 4, 3 - bounce ) - 7.5625 * Math.pow( ( pow2 * 3 - 2 ) / 22 - p, 2 );\\n    }\\n});\\n\\n$.each( baseEasings, function( name, easeIn ) {\\n    $.easing[ \\\"easeIn\\\" + name ] = easeIn;\\n    $.easing[ \\\"easeOut\\\" + name ] = function( p ) {\\n        return 1 - easeIn( 1 - p );\\n    };\\n    $.easing[ \\\"easeInOut\\\" + name ] = function( p ) {\\n        return p < 0.5 ?\\n            easeIn( p * 2 ) / 2 :\\n            1 - easeIn( p * -2 + 2 ) / 2;\\n    };\\n});\\n\\n})();\\n\\n})(jQuery);\\n(function( $, undefined ) {\\n\\nvar rvertical = /up|down|vertical/,\\n    rpositivemotion = /up|left|vertical|horizontal/;\\n\\n$.effects.effect.blind = function( o, done ) {\\n    // Create element\\n    var el = $( this ),\\n        props = [ \\\"position\\\", \\\"top\\\", \\\"bottom\\\", \\\"left\\\", \\\"right\\\", \\\"height\\\", \\\"width\\\" ],\\n        mode = $.effects.setMode( el, o.mode || \\\"hide\\\" ),\\n        direction = o.direction || \\\"up\\\",\\n        vertical = rvertical.test( direction ),\\n        ref = vertical ? \\\"height\\\" : \\\"width\\\",\\n        ref2 = vertical ? \\\"top\\\" : \\\"left\\\",\\n        motion = rpositivemotion.test( direction ),\\n        animation = {},\\n        show = mode === \\\"show\\\",\\n        wrapper, distance, margin;\\n\\n    // if already wrapped, the wrapper's properties are my property. #6245\\n    if ( el.parent().is( \\\".ui-effects-wrapper\\\" ) ) {\\n        $.effects.save( el.parent(), props );\\n    } else {\\n        $.effects.save( el, props );\\n    }\\n    el.show();\\n    wrapper = $.effects.createWrapper( el ).css({\\n        overflow: \\\"hidden\\\"\\n    });\\n\\n    distance = wrapper[ ref ]();\\n    margin = parseFloat( wrapper.css( ref2 ) ) || 0;\\n\\n    animation[ ref ] = show ? distance : 0;\\n    if ( !motion ) {\\n        el\\n            .css( vertical ? \\\"bottom\\\" : \\\"right\\\", 0 )\\n            .css( vertical ? \\\"top\\\" : \\\"left\\\", \\\"auto\\\" )\\n            .css({ position: \\\"absolute\\\" });\\n\\n        animation[ ref2 ] = show ? margin : distance + margin;\\n    }\\n\\n    // start at 0 if we are showing\\n    if ( show ) {\\n        wrapper.css( ref, 0 );\\n        if ( ! motion ) {\\n            wrapper.css( ref2, margin + distance );\\n        }\\n    }\\n\\n    // Animate\\n    wrapper.animate( animation, {\\n        duration: o.duration,\\n        easing: o.easing,\\n        queue: false,\\n        complete: function() {\\n            if ( mode === \\\"hide\\\" ) {\\n                el.hide();\\n            }\\n            $.effects.restore( el, props );\\n            $.effects.removeWrapper( el );\\n            done();\\n        }\\n    });\\n\\n};\\n\\n})(jQuery);\\n(function( $, undefined ) {\\n\\n$.effects.effect.bounce = function( o, done ) {\\n    var el = $( this ),\\n        props = [ \\\"position\\\", \\\"top\\\", \\\"bottom\\\", \\\"left\\\", \\\"right\\\", \\\"height\\\", \\\"width\\\" ],\\n\\n        // defaults:\\n        mode = $.effects.setMode( el, o.mode || \\\"effect\\\" ),\\n        hide = mode === \\\"hide\\\",\\n        show = mode === \\\"show\\\",\\n        direction = o.direction || \\\"up\\\",\\n        distance = o.distance,\\n        times = o.times || 5,\\n\\n        // number of internal animations\\n        anims = times * 2 + ( show || hide ? 1 : 0 ),\\n        speed = o.duration / anims,\\n        easing = o.easing,\\n\\n        // utility:\\n        ref = ( direction === \\\"up\\\" || direction === \\\"down\\\" ) ? \\\"top\\\" : \\\"left\\\",\\n        motion = ( direction === \\\"up\\\" || direction === \\\"left\\\" ),\\n        i,\\n        upAnim,\\n        downAnim,\\n\\n        // we will need to re-assemble the queue to stack our animations in place\\n        queue = el.queue(),\\n        queuelen = queue.length;\\n\\n    // Avoid touching opacity to prevent clearType and PNG issues in IE\\n    if ( show || hide ) {\\n        props.push( \\\"opacity\\\" );\\n    }\\n\\n    $.effects.save( el, props );\\n    el.show();\\n    $.effects.createWrapper( el ); // Create Wrapper\\n\\n    // default distance for the BIGGEST bounce is the outer Distance / 3\\n    if ( !distance ) {\\n        distance = el[ ref === \\\"top\\\" ? \\\"outerHeight\\\" : \\\"outerWidth\\\" ]() / 3;\\n    }\\n\\n    if ( show ) {\\n        downAnim = { opacity: 1 };\\n        downAnim[ ref ] = 0;\\n\\n        // if we are showing, force opacity 0 and set the initial position\\n        // then do the \\\"first\\\" animation\\n        el.css( \\\"opacity\\\", 0 )\\n            .css( ref, motion ? -distance * 2 : distance * 2 )\\n            .animate( downAnim, speed, easing );\\n    }\\n\\n    // start at the smallest distance if we are hiding\\n    if ( hide ) {\\n        distance = distance / Math.pow( 2, times - 1 );\\n    }\\n\\n    downAnim = {};\\n    downAnim[ ref ] = 0;\\n    // Bounces up/down/left/right then back to 0 -- times * 2 animations happen here\\n    for ( i = 0; i < times; i++ ) {\\n        upAnim = {};\\n        upAnim[ ref ] = ( motion ? \\\"-=\\\" : \\\"+=\\\" ) + distance;\\n\\n        el.animate( upAnim, speed, easing )\\n            .animate( downAnim, speed, easing );\\n\\n        distance = hide ? distance * 2 : distance / 2;\\n    }\\n\\n    // Last Bounce when Hiding\\n    if ( hide ) {\\n        upAnim = { opacity: 0 };\\n        upAnim[ ref ] = ( motion ? \\\"-=\\\" : \\\"+=\\\" ) + distance;\\n\\n        el.animate( upAnim, speed, easing );\\n    }\\n\\n    el.queue(function() {\\n        if ( hide ) {\\n            el.hide();\\n        }\\n        $.effects.restore( el, props );\\n        $.effects.removeWrapper( el );\\n        done();\\n    });\\n\\n    // inject all the animations we just queued to be first in line (after \\\"inprogress\\\")\\n    if ( queuelen > 1) {\\n        queue.splice.apply( queue,\\n            [ 1, 0 ].concat( queue.splice( queuelen, anims + 1 ) ) );\\n    }\\n    el.dequeue();\\n\\n};\\n\\n})(jQuery);\\n(function( $, undefined ) {\\n\\n$.effects.effect.clip = function( o, done ) {\\n    // Create element\\n    var el = $( this ),\\n        props = [ \\\"position\\\", \\\"top\\\", \\\"bottom\\\", \\\"left\\\", \\\"right\\\", \\\"height\\\", \\\"width\\\" ],\\n        mode = $.effects.setMode( el, o.mode || \\\"hide\\\" ),\\n        show = mode === \\\"show\\\",\\n        direction = o.direction || \\\"vertical\\\",\\n        vert = direction === \\\"vertical\\\",\\n        size = vert ? \\\"height\\\" : \\\"width\\\",\\n        position = vert ? \\\"top\\\" : \\\"left\\\",\\n        animation = {},\\n        wrapper, animate, distance;\\n\\n    // Save & Show\\n    $.effects.save( el, props );\\n    el.show();\\n\\n    // Create Wrapper\\n    wrapper = $.effects.createWrapper( el ).css({\\n        overflow: \\\"hidden\\\"\\n    });\\n    animate = ( el[0].tagName === \\\"IMG\\\" ) ? wrapper : el;\\n    distance = animate[ size ]();\\n\\n    // Shift\\n    if ( show ) {\\n        animate.css( size, 0 );\\n        animate.css( position, distance / 2 );\\n    }\\n\\n    // Create Animation Object:\\n    animation[ size ] = show ? distance : 0;\\n    animation[ position ] = show ? 0 : distance / 2;\\n\\n    // Animate\\n    animate.animate( animation, {\\n        queue: false,\\n        duration: o.duration,\\n        easing: o.easing,\\n        complete: function() {\\n            if ( !show ) {\\n                el.hide();\\n            }\\n            $.effects.restore( el, props );\\n            $.effects.removeWrapper( el );\\n            done();\\n        }\\n    });\\n\\n};\\n\\n})(jQuery);\\n(function( $, undefined ) {\\n\\n$.effects.effect.drop = function( o, done ) {\\n\\n    var el = $( this ),\\n        props = [ \\\"position\\\", \\\"top\\\", \\\"bottom\\\", \\\"left\\\", \\\"right\\\", \\\"opacity\\\", \\\"height\\\", \\\"width\\\" ],\\n        mode = $.effects.setMode( el, o.mode || \\\"hide\\\" ),\\n        show = mode === \\\"show\\\",\\n        direction = o.direction || \\\"left\\\",\\n        ref = ( direction === \\\"up\\\" || direction === \\\"down\\\" ) ? \\\"top\\\" : \\\"left\\\",\\n        motion = ( direction === \\\"up\\\" || direction === \\\"left\\\" ) ? \\\"pos\\\" : \\\"neg\\\",\\n        animation = {\\n            opacity: show ? 1 : 0\\n        },\\n        distance;\\n\\n    // Adjust\\n    $.effects.save( el, props );\\n    el.show();\\n    $.effects.createWrapper( el );\\n\\n    distance = o.distance || el[ ref === \\\"top\\\" ? \\\"outerHeight\\\": \\\"outerWidth\\\" ]( true ) / 2;\\n\\n    if ( show ) {\\n        el\\n            .css( \\\"opacity\\\", 0 )\\n            .css( ref, motion === \\\"pos\\\" ? -distance : distance );\\n    }\\n\\n    // Animation\\n    animation[ ref ] = ( show ?\\n        ( motion === \\\"pos\\\" ? \\\"+=\\\" : \\\"-=\\\" ) :\\n        ( motion === \\\"pos\\\" ? \\\"-=\\\" : \\\"+=\\\" ) ) +\\n        distance;\\n\\n    // Animate\\n    el.animate( animation, {\\n        queue: false,\\n        duration: o.duration,\\n        easing: o.easing,\\n        complete: function() {\\n            if ( mode === \\\"hide\\\" ) {\\n                el.hide();\\n            }\\n            $.effects.restore( el, props );\\n            $.effects.removeWrapper( el );\\n            done();\\n        }\\n    });\\n};\\n\\n})(jQuery);\\n(function( $, undefined ) {\\n\\n$.effects.effect.explode = function( o, done ) {\\n\\n    var rows = o.pieces ? Math.round( Math.sqrt( o.pieces ) ) : 3,\\n        cells = rows,\\n        el = $( this ),\\n        mode = $.effects.setMode( el, o.mode || \\\"hide\\\" ),\\n        show = mode === \\\"show\\\",\\n\\n        // show and then visibility:hidden the element before calculating offset\\n        offset = el.show().css( \\\"visibility\\\", \\\"hidden\\\" ).offset(),\\n\\n        // width and height of a piece\\n        width = Math.ceil( el.outerWidth() / cells ),\\n        height = Math.ceil( el.outerHeight() / rows ),\\n        pieces = [],\\n\\n        // loop\\n        i, j, left, top, mx, my;\\n\\n    // children animate complete:\\n    function childComplete() {\\n        pieces.push( this );\\n        if ( pieces.length === rows * cells ) {\\n            animComplete();\\n        }\\n    }\\n\\n    // clone the element for each row and cell.\\n    for( i = 0; i < rows ; i++ ) { // ===>\\n        top = offset.top + i * height;\\n        my = i - ( rows - 1 ) / 2 ;\\n\\n        for( j = 0; j < cells ; j++ ) { // |||\\n            left = offset.left + j * width;\\n            mx = j - ( cells - 1 ) / 2 ;\\n\\n            // Create a clone of the now hidden main element that will be absolute positioned\\n            // within a wrapper div off the -left and -top equal to size of our pieces\\n            el\\n                .clone()\\n                .appendTo( \\\"body\\\" )\\n                .wrap( \\\"<div></div>\\\" )\\n                .css({\\n                    position: \\\"absolute\\\",\\n                    visibility: \\\"visible\\\",\\n                    left: -j * width,\\n                    top: -i * height\\n                })\\n\\n            // select the wrapper - make it overflow: hidden and absolute positioned based on\\n            // where the original was located +left and +top equal to the size of pieces\\n                .parent()\\n                .addClass( \\\"ui-effects-explode\\\" )\\n                .css({\\n                    position: \\\"absolute\\\",\\n                    overflow: \\\"hidden\\\",\\n                    width: width,\\n                    height: height,\\n                    left: left + ( show ? mx * width : 0 ),\\n                    top: top + ( show ? my * height : 0 ),\\n                    opacity: show ? 0 : 1\\n                }).animate({\\n                    left: left + ( show ? 0 : mx * width ),\\n                    top: top + ( show ? 0 : my * height ),\\n                    opacity: show ? 1 : 0\\n                }, o.duration || 500, o.easing, childComplete );\\n        }\\n    }\\n\\n    function animComplete() {\\n        el.css({\\n            visibility: \\\"visible\\\"\\n        });\\n        $( pieces ).remove();\\n        if ( !show ) {\\n            el.hide();\\n        }\\n        done();\\n    }\\n};\\n\\n})(jQuery);\\n(function( $, undefined ) {\\n\\n$.effects.effect.fade = function( o, done ) {\\n    var el = $( this ),\\n        mode = $.effects.setMode( el, o.mode || \\\"toggle\\\" );\\n\\n    el.animate({\\n        opacity: mode\\n    }, {\\n        queue: false,\\n        duration: o.duration,\\n        easing: o.easing,\\n        complete: done\\n    });\\n};\\n\\n})( jQuery );\\n(function( $, undefined ) {\\n\\n$.effects.effect.fold = function( o, done ) {\\n\\n    // Create element\\n    var el = $( this ),\\n        props = [ \\\"position\\\", \\\"top\\\", \\\"bottom\\\", \\\"left\\\", \\\"right\\\", \\\"height\\\", \\\"width\\\" ],\\n        mode = $.effects.setMode( el, o.mode || \\\"hide\\\" ),\\n        show = mode === \\\"show\\\",\\n        hide = mode === \\\"hide\\\",\\n        size = o.size || 15,\\n        percent = /([0-9]+)%/.exec( size ),\\n        horizFirst = !!o.horizFirst,\\n        widthFirst = show !== horizFirst,\\n        ref = widthFirst ? [ \\\"width\\\", \\\"height\\\" ] : [ \\\"height\\\", \\\"width\\\" ],\\n        duration = o.duration / 2,\\n        wrapper, distance,\\n        animation1 = {},\\n        animation2 = {};\\n\\n    $.effects.save( el, props );\\n    el.show();\\n\\n    // Create Wrapper\\n    wrapper = $.effects.createWrapper( el ).css({\\n        overflow: \\\"hidden\\\"\\n    });\\n    distance = widthFirst ?\\n        [ wrapper.width(), wrapper.height() ] :\\n        [ wrapper.height(), wrapper.width() ];\\n\\n    if ( percent ) {\\n        size = parseInt( percent[ 1 ], 10 ) / 100 * distance[ hide ? 0 : 1 ];\\n    }\\n    if ( show ) {\\n        wrapper.css( horizFirst ? {\\n            height: 0,\\n            width: size\\n        } : {\\n            height: size,\\n            width: 0\\n        });\\n    }\\n\\n    // Animation\\n    animation1[ ref[ 0 ] ] = show ? distance[ 0 ] : size;\\n    animation2[ ref[ 1 ] ] = show ? distance[ 1 ] : 0;\\n\\n    // Animate\\n    wrapper\\n        .animate( animation1, duration, o.easing )\\n        .animate( animation2, duration, o.easing, function() {\\n            if ( hide ) {\\n                el.hide();\\n            }\\n            $.effects.restore( el, props );\\n            $.effects.removeWrapper( el );\\n            done();\\n        });\\n\\n};\\n\\n})(jQuery);\\n(function( $, undefined ) {\\n\\n$.effects.effect.highlight = function( o, done ) {\\n    var elem = $( this ),\\n        props = [ \\\"backgroundImage\\\", \\\"backgroundColor\\\", \\\"opacity\\\" ],\\n        mode = $.effects.setMode( elem, o.mode || \\\"show\\\" ),\\n        animation = {\\n            backgroundColor: elem.css( \\\"backgroundColor\\\" )\\n        };\\n\\n    if (mode === \\\"hide\\\") {\\n        animation.opacity = 0;\\n    }\\n\\n    $.effects.save( elem, props );\\n\\n    elem\\n        .show()\\n        .css({\\n            backgroundImage: \\\"none\\\",\\n            backgroundColor: o.color || \\\"#ffff99\\\"\\n        })\\n        .animate( animation, {\\n            queue: false,\\n            duration: o.duration,\\n            easing: o.easing,\\n            complete: function() {\\n                if ( mode === \\\"hide\\\" ) {\\n                    elem.hide();\\n                }\\n                $.effects.restore( elem, props );\\n                done();\\n            }\\n        });\\n};\\n\\n})(jQuery);\\n(function( $, undefined ) {\\n\\n$.effects.effect.pulsate = function( o, done ) {\\n    var elem = $( this ),\\n        mode = $.effects.setMode( elem, o.mode || \\\"show\\\" ),\\n        show = mode === \\\"show\\\",\\n        hide = mode === \\\"hide\\\",\\n        showhide = ( show || mode === \\\"hide\\\" ),\\n\\n        // showing or hiding leaves of the \\\"last\\\" animation\\n        anims = ( ( o.times || 5 ) * 2 ) + ( showhide ? 1 : 0 ),\\n        duration = o.duration / anims,\\n        animateTo = 0,\\n        queue = elem.queue(),\\n        queuelen = queue.length,\\n        i;\\n\\n    if ( show || !elem.is(\\\":visible\\\")) {\\n        elem.css( \\\"opacity\\\", 0 ).show();\\n        animateTo = 1;\\n    }\\n\\n    // anims - 1 opacity \\\"toggles\\\"\\n    for ( i = 1; i < anims; i++ ) {\\n        elem.animate({\\n            opacity: animateTo\\n        }, duration, o.easing );\\n        animateTo = 1 - animateTo;\\n    }\\n\\n    elem.animate({\\n        opacity: animateTo\\n    }, duration, o.easing);\\n\\n    elem.queue(function() {\\n        if ( hide ) {\\n            elem.hide();\\n        }\\n        done();\\n    });\\n\\n    // We just queued up \\\"anims\\\" animations, we need to put them next in the queue\\n    if ( queuelen > 1 ) {\\n        queue.splice.apply( queue,\\n            [ 1, 0 ].concat( queue.splice( queuelen, anims + 1 ) ) );\\n    }\\n    elem.dequeue();\\n};\\n\\n})(jQuery);\\n(function( $, undefined ) {\\n\\n$.effects.effect.puff = function( o, done ) {\\n    var elem = $( this ),\\n        mode = $.effects.setMode( elem, o.mode || \\\"hide\\\" ),\\n        hide = mode === \\\"hide\\\",\\n        percent = parseInt( o.percent, 10 ) || 150,\\n        factor = percent / 100,\\n        original = {\\n            height: elem.height(),\\n            width: elem.width(),\\n            outerHeight: elem.outerHeight(),\\n            outerWidth: elem.outerWidth()\\n        };\\n\\n    $.extend( o, {\\n        effect: \\\"scale\\\",\\n        queue: false,\\n        fade: true,\\n        mode: mode,\\n        complete: done,\\n        percent: hide ? percent : 100,\\n        from: hide ?\\n            original :\\n            {\\n                height: original.height * factor,\\n                width: original.width * factor,\\n                outerHeight: original.outerHeight * factor,\\n                outerWidth: original.outerWidth * factor\\n            }\\n    });\\n\\n    elem.effect( o );\\n};\\n\\n$.effects.effect.scale = function( o, done ) {\\n\\n    // Create element\\n    var el = $( this ),\\n        options = $.extend( true, {}, o ),\\n        mode = $.effects.setMode( el, o.mode || \\\"effect\\\" ),\\n        percent = parseInt( o.percent, 10 ) ||\\n            ( parseInt( o.percent, 10 ) === 0 ? 0 : ( mode === \\\"hide\\\" ? 0 : 100 ) ),\\n        direction = o.direction || \\\"both\\\",\\n        origin = o.origin,\\n        original = {\\n            height: el.height(),\\n            width: el.width(),\\n            outerHeight: el.outerHeight(),\\n            outerWidth: el.outerWidth()\\n        },\\n        factor = {\\n            y: direction !== \\\"horizontal\\\" ? (percent / 100) : 1,\\n            x: direction !== \\\"vertical\\\" ? (percent / 100) : 1\\n        };\\n\\n    // We are going to pass this effect to the size effect:\\n    options.effect = \\\"size\\\";\\n    options.queue = false;\\n    options.complete = done;\\n\\n    // Set default origin and restore for show/hide\\n    if ( mode !== \\\"effect\\\" ) {\\n        options.origin = origin || [\\\"middle\\\",\\\"center\\\"];\\n        options.restore = true;\\n    }\\n\\n    options.from = o.from || ( mode === \\\"show\\\" ? {\\n        height: 0,\\n        width: 0,\\n        outerHeight: 0,\\n        outerWidth: 0\\n    } : original );\\n    options.to = {\\n        height: original.height * factor.y,\\n        width: original.width * factor.x,\\n        outerHeight: original.outerHeight * factor.y,\\n        outerWidth: original.outerWidth * factor.x\\n    };\\n\\n    // Fade option to support puff\\n    if ( options.fade ) {\\n        if ( mode === \\\"show\\\" ) {\\n            options.from.opacity = 0;\\n            options.to.opacity = 1;\\n        }\\n        if ( mode === \\\"hide\\\" ) {\\n            options.from.opacity = 1;\\n            options.to.opacity = 0;\\n        }\\n    }\\n\\n    // Animate\\n    el.effect( options );\\n\\n};\\n\\n$.effects.effect.size = function( o, done ) {\\n\\n    // Create element\\n    var original, baseline, factor,\\n        el = $( this ),\\n        props0 = [ \\\"position\\\", \\\"top\\\", \\\"bottom\\\", \\\"left\\\", \\\"right\\\", \\\"width\\\", \\\"height\\\", \\\"overflow\\\", \\\"opacity\\\" ],\\n\\n        // Always restore\\n        props1 = [ \\\"position\\\", \\\"top\\\", \\\"bottom\\\", \\\"left\\\", \\\"right\\\", \\\"overflow\\\", \\\"opacity\\\" ],\\n\\n        // Copy for children\\n        props2 = [ \\\"width\\\", \\\"height\\\", \\\"overflow\\\" ],\\n        cProps = [ \\\"fontSize\\\" ],\\n        vProps = [ \\\"borderTopWidth\\\", \\\"borderBottomWidth\\\", \\\"paddingTop\\\", \\\"paddingBottom\\\" ],\\n        hProps = [ \\\"borderLeftWidth\\\", \\\"borderRightWidth\\\", \\\"paddingLeft\\\", \\\"paddingRight\\\" ],\\n\\n        // Set options\\n        mode = $.effects.setMode( el, o.mode || \\\"effect\\\" ),\\n        restore = o.restore || mode !== \\\"effect\\\",\\n        scale = o.scale || \\\"both\\\",\\n        origin = o.origin || [ \\\"middle\\\", \\\"center\\\" ],\\n        position = el.css( \\\"position\\\" ),\\n        props = restore ? props0 : props1,\\n        zero = {\\n            height: 0,\\n            width: 0,\\n            outerHeight: 0,\\n            outerWidth: 0\\n        };\\n\\n    if ( mode === \\\"show\\\" ) {\\n        el.show();\\n    }\\n    original = {\\n        height: el.height(),\\n        width: el.width(),\\n        outerHeight: el.outerHeight(),\\n        outerWidth: el.outerWidth()\\n    };\\n\\n    if ( o.mode === \\\"toggle\\\" && mode === \\\"show\\\" ) {\\n        el.from = o.to || zero;\\n        el.to = o.from || original;\\n    } else {\\n        el.from = o.from || ( mode === \\\"show\\\" ? zero : original );\\n        el.to = o.to || ( mode === \\\"hide\\\" ? zero : original );\\n    }\\n\\n    // Set scaling factor\\n    factor = {\\n        from: {\\n            y: el.from.height / original.height,\\n            x: el.from.width / original.width\\n        },\\n        to: {\\n            y: el.to.height / original.height,\\n            x: el.to.width / original.width\\n        }\\n    };\\n\\n    // Scale the css box\\n    if ( scale === \\\"box\\\" || scale === \\\"both\\\" ) {\\n\\n        // Vertical props scaling\\n        if ( factor.from.y !== factor.to.y ) {\\n            props = props.concat( vProps );\\n            el.from = $.effects.setTransition( el, vProps, factor.from.y, el.from );\\n            el.to = $.effects.setTransition( el, vProps, factor.to.y, el.to );\\n        }\\n\\n        // Horizontal props scaling\\n        if ( factor.from.x !== factor.to.x ) {\\n            props = props.concat( hProps );\\n            el.from = $.effects.setTransition( el, hProps, factor.from.x, el.from );\\n            el.to = $.effects.setTransition( el, hProps, factor.to.x, el.to );\\n        }\\n    }\\n\\n    // Scale the content\\n    if ( scale === \\\"content\\\" || scale === \\\"both\\\" ) {\\n\\n        // Vertical props scaling\\n        if ( factor.from.y !== factor.to.y ) {\\n            props = props.concat( cProps ).concat( props2 );\\n            el.from = $.effects.setTransition( el, cProps, factor.from.y, el.from );\\n            el.to = $.effects.setTransition( el, cProps, factor.to.y, el.to );\\n        }\\n    }\\n\\n    $.effects.save( el, props );\\n    el.show();\\n    $.effects.createWrapper( el );\\n    el.css( \\\"overflow\\\", \\\"hidden\\\" ).css( el.from );\\n\\n    // Adjust\\n    if (origin) { // Calculate baseline shifts\\n        baseline = $.effects.getBaseline( origin, original );\\n        el.from.top = ( original.outerHeight - el.outerHeight() ) * baseline.y;\\n        el.from.left = ( original.outerWidth - el.outerWidth() ) * baseline.x;\\n        el.to.top = ( original.outerHeight - el.to.outerHeight ) * baseline.y;\\n        el.to.left = ( original.outerWidth - el.to.outerWidth ) * baseline.x;\\n    }\\n    el.css( el.from ); // set top & left\\n\\n    // Animate\\n    if ( scale === \\\"content\\\" || scale === \\\"both\\\" ) { // Scale the children\\n\\n        // Add margins/font-size\\n        vProps = vProps.concat([ \\\"marginTop\\\", \\\"marginBottom\\\" ]).concat(cProps);\\n        hProps = hProps.concat([ \\\"marginLeft\\\", \\\"marginRight\\\" ]);\\n        props2 = props0.concat(vProps).concat(hProps);\\n\\n        el.find( \\\"*[width]\\\" ).each( function(){\\n            var child = $( this ),\\n                c_original = {\\n                    height: child.height(),\\n                    width: child.width(),\\n                    outerHeight: child.outerHeight(),\\n                    outerWidth: child.outerWidth()\\n                };\\n            if (restore) {\\n                $.effects.save(child, props2);\\n            }\\n\\n            child.from = {\\n                height: c_original.height * factor.from.y,\\n                width: c_original.width * factor.from.x,\\n                outerHeight: c_original.outerHeight * factor.from.y,\\n                outerWidth: c_original.outerWidth * factor.from.x\\n            };\\n            child.to = {\\n                height: c_original.height * factor.to.y,\\n                width: c_original.width * factor.to.x,\\n                outerHeight: c_original.height * factor.to.y,\\n                outerWidth: c_original.width * factor.to.x\\n            };\\n\\n            // Vertical props scaling\\n            if ( factor.from.y !== factor.to.y ) {\\n                child.from = $.effects.setTransition( child, vProps, factor.from.y, child.from );\\n                child.to = $.effects.setTransition( child, vProps, factor.to.y, child.to );\\n            }\\n\\n            // Horizontal props scaling\\n            if ( factor.from.x !== factor.to.x ) {\\n                child.from = $.effects.setTransition( child, hProps, factor.from.x, child.from );\\n                child.to = $.effects.setTransition( child, hProps, factor.to.x, child.to );\\n            }\\n\\n            // Animate children\\n            child.css( child.from );\\n            child.animate( child.to, o.duration, o.easing, function() {\\n\\n                // Restore children\\n                if ( restore ) {\\n                    $.effects.restore( child, props2 );\\n                }\\n            });\\n        });\\n    }\\n\\n    // Animate\\n    el.animate( el.to, {\\n        queue: false,\\n        duration: o.duration,\\n        easing: o.easing,\\n        complete: function() {\\n            if ( el.to.opacity === 0 ) {\\n                el.css( \\\"opacity\\\", el.from.opacity );\\n            }\\n            if( mode === \\\"hide\\\" ) {\\n                el.hide();\\n            }\\n            $.effects.restore( el, props );\\n            if ( !restore ) {\\n\\n                // we need to calculate our new positioning based on the scaling\\n                if ( position === \\\"static\\\" ) {\\n                    el.css({\\n                        position: \\\"relative\\\",\\n                        top: el.to.top,\\n                        left: el.to.left\\n                    });\\n                } else {\\n                    $.each([ \\\"top\\\", \\\"left\\\" ], function( idx, pos ) {\\n                        el.css( pos, function( _, str ) {\\n                            var val = parseInt( str, 10 ),\\n                                toRef = idx ? el.to.left : el.to.top;\\n\\n                            // if original was \\\"auto\\\", recalculate the new value from wrapper\\n                            if ( str === \\\"auto\\\" ) {\\n                                return toRef + \\\"px\\\";\\n                            }\\n\\n                            return val + toRef + \\\"px\\\";\\n                        });\\n                    });\\n                }\\n            }\\n\\n            $.effects.removeWrapper( el );\\n            done();\\n        }\\n    });\\n\\n};\\n\\n})(jQuery);\\n(function( $, undefined ) {\\n\\n$.effects.effect.shake = function( o, done ) {\\n\\n    var el = $( this ),\\n        props = [ \\\"position\\\", \\\"top\\\", \\\"bottom\\\", \\\"left\\\", \\\"right\\\", \\\"height\\\", \\\"width\\\" ],\\n        mode = $.effects.setMode( el, o.mode || \\\"effect\\\" ),\\n        direction = o.direction || \\\"left\\\",\\n        distance = o.distance || 20,\\n        times = o.times || 3,\\n        anims = times * 2 + 1,\\n        speed = Math.round(o.duration/anims),\\n        ref = (direction === \\\"up\\\" || direction === \\\"down\\\") ? \\\"top\\\" : \\\"left\\\",\\n        positiveMotion = (direction === \\\"up\\\" || direction === \\\"left\\\"),\\n        animation = {},\\n        animation1 = {},\\n        animation2 = {},\\n        i,\\n\\n        // we will need to re-assemble the queue to stack our animations in place\\n        queue = el.queue(),\\n        queuelen = queue.length;\\n\\n    $.effects.save( el, props );\\n    el.show();\\n    $.effects.createWrapper( el );\\n\\n    // Animation\\n    animation[ ref ] = ( positiveMotion ? \\\"-=\\\" : \\\"+=\\\" ) + distance;\\n    animation1[ ref ] = ( positiveMotion ? \\\"+=\\\" : \\\"-=\\\" ) + distance * 2;\\n    animation2[ ref ] = ( positiveMotion ? \\\"-=\\\" : \\\"+=\\\" ) + distance * 2;\\n\\n    // Animate\\n    el.animate( animation, speed, o.easing );\\n\\n    // Shakes\\n    for ( i = 1; i < times; i++ ) {\\n        el.animate( animation1, speed, o.easing ).animate( animation2, speed, o.easing );\\n    }\\n    el\\n        .animate( animation1, speed, o.easing )\\n        .animate( animation, speed / 2, o.easing )\\n        .queue(function() {\\n            if ( mode === \\\"hide\\\" ) {\\n                el.hide();\\n            }\\n            $.effects.restore( el, props );\\n            $.effects.removeWrapper( el );\\n            done();\\n        });\\n\\n    // inject all the animations we just queued to be first in line (after \\\"inprogress\\\")\\n    if ( queuelen > 1) {\\n        queue.splice.apply( queue,\\n            [ 1, 0 ].concat( queue.splice( queuelen, anims + 1 ) ) );\\n    }\\n    el.dequeue();\\n\\n};\\n\\n})(jQuery);\\n(function( $, undefined ) {\\n\\n$.effects.effect.slide = function( o, done ) {\\n\\n    // Create element\\n    var el = $( this ),\\n        props = [ \\\"position\\\", \\\"top\\\", \\\"bottom\\\", \\\"left\\\", \\\"right\\\", \\\"width\\\", \\\"height\\\" ],\\n        mode = $.effects.setMode( el, o.mode || \\\"show\\\" ),\\n        show = mode === \\\"show\\\",\\n        direction = o.direction || \\\"left\\\",\\n        ref = (direction === \\\"up\\\" || direction === \\\"down\\\") ? \\\"top\\\" : \\\"left\\\",\\n        positiveMotion = (direction === \\\"up\\\" || direction === \\\"left\\\"),\\n        distance,\\n        animation = {};\\n\\n    // Adjust\\n    $.effects.save( el, props );\\n    el.show();\\n    distance = o.distance || el[ ref === \\\"top\\\" ? \\\"outerHeight\\\" : \\\"outerWidth\\\" ]( true );\\n\\n    $.effects.createWrapper( el ).css({\\n        overflow: \\\"hidden\\\"\\n    });\\n\\n    if ( show ) {\\n        el.css( ref, positiveMotion ? (isNaN(distance) ? \\\"-\\\" + distance : -distance) : distance );\\n    }\\n\\n    // Animation\\n    animation[ ref ] = ( show ?\\n        ( positiveMotion ? \\\"+=\\\" : \\\"-=\\\") :\\n        ( positiveMotion ? \\\"-=\\\" : \\\"+=\\\")) +\\n        distance;\\n\\n    // Animate\\n    el.animate( animation, {\\n        queue: false,\\n        duration: o.duration,\\n        easing: o.easing,\\n        complete: function() {\\n            if ( mode === \\\"hide\\\" ) {\\n                el.hide();\\n            }\\n            $.effects.restore( el, props );\\n            $.effects.removeWrapper( el );\\n            done();\\n        }\\n    });\\n};\\n\\n})(jQuery);\\n(function( $, undefined ) {\\n\\n$.effects.effect.transfer = function( o, done ) {\\n    var elem = $( this ),\\n        target = $( o.to ),\\n        targetFixed = target.css( \\\"position\\\" ) === \\\"fixed\\\",\\n        body = $(\\\"body\\\"),\\n        fixTop = targetFixed ? body.scrollTop() : 0,\\n        fixLeft = targetFixed ? body.scrollLeft() : 0,\\n        endPosition = target.offset(),\\n        animation = {\\n            top: endPosition.top - fixTop ,\\n            left: endPosition.left - fixLeft ,\\n            height: target.innerHeight(),\\n            width: target.innerWidth()\\n        },\\n        startPosition = elem.offset(),\\n        transfer = $( \\\"<div class='ui-effects-transfer'></div>\\\" )\\n            .appendTo( document.body )\\n            .addClass( o.className )\\n            .css({\\n                top: startPosition.top - fixTop ,\\n                left: startPosition.left - fixLeft ,\\n                height: elem.innerHeight(),\\n                width: elem.innerWidth(),\\n                position: targetFixed ? \\\"fixed\\\" : \\\"absolute\\\"\\n            })\\n            .animate( animation, o.duration, o.easing, function() {\\n                transfer.remove();\\n                done();\\n            });\\n};\\n\\n})(jQuery);\\n(function( $, undefined ) {\\n\\n$.widget( \\\"ui.menu\\\", {\\n    version: \\\"1.10.4\\\",\\n    defaultElement: \\\"<ul>\\\",\\n    delay: 300,\\n    options: {\\n        icons: {\\n            submenu: \\\"ui-icon-carat-1-e\\\"\\n        },\\n        menus: \\\"ul\\\",\\n        position: {\\n            my: \\\"left top\\\",\\n            at: \\\"right top\\\"\\n        },\\n        role: \\\"menu\\\",\\n\\n        // callbacks\\n        blur: null,\\n        focus: null,\\n        select: null\\n    },\\n\\n    _create: function() {\\n        this.activeMenu = this.element;\\n        // flag used to prevent firing of the click handler\\n        // as the event bubbles up through nested menus\\n        this.mouseHandled = false;\\n        this.element\\n            .uniqueId()\\n            .addClass( \\\"ui-menu ui-widget ui-widget-content ui-corner-all\\\" )\\n            .toggleClass( \\\"ui-menu-icons\\\", !!this.element.find( \\\".ui-icon\\\" ).length )\\n            .attr({\\n                role: this.options.role,\\n                tabIndex: 0\\n            })\\n            // need to catch all clicks on disabled menu\\n            // not possible through _on\\n            .bind( \\\"click\\\" + this.eventNamespace, $.proxy(function( event ) {\\n                if ( this.options.disabled ) {\\n                    event.preventDefault();\\n                }\\n            }, this ));\\n\\n        if ( this.options.disabled ) {\\n            this.element\\n                .addClass( \\\"ui-state-disabled\\\" )\\n                .attr( \\\"aria-disabled\\\", \\\"true\\\" );\\n        }\\n\\n        this._on({\\n            // Prevent focus from sticking to links inside menu after clicking\\n            // them (focus should always stay on UL during navigation).\\n            \\\"mousedown .ui-menu-item > a\\\": function( event ) {\\n                event.preventDefault();\\n            },\\n            \\\"click .ui-state-disabled > a\\\": function( event ) {\\n                event.preventDefault();\\n            },\\n            \\\"click .ui-menu-item:has(a)\\\": function( event ) {\\n                var target = $( event.target ).closest( \\\".ui-menu-item\\\" );\\n                if ( !this.mouseHandled && target.not( \\\".ui-state-disabled\\\" ).length ) {\\n                    this.select( event );\\n\\n                    // Only set the mouseHandled flag if the event will bubble, see #9469.\\n                    if ( !event.isPropagationStopped() ) {\\n                        this.mouseHandled = true;\\n                    }\\n\\n                    // Open submenu on click\\n                    if ( target.has( \\\".ui-menu\\\" ).length ) {\\n                        this.expand( event );\\n                    } else if ( !this.element.is( \\\":focus\\\" ) && $( this.document[ 0 ].activeElement ).closest( \\\".ui-menu\\\" ).length ) {\\n\\n                        // Redirect focus to the menu\\n                        this.element.trigger( \\\"focus\\\", [ true ] );\\n\\n                        // If the active item is on the top level, let it stay active.\\n                        // Otherwise, blur the active item since it is no longer visible.\\n                        if ( this.active && this.active.parents( \\\".ui-menu\\\" ).length === 1 ) {\\n                            clearTimeout( this.timer );\\n                        }\\n                    }\\n                }\\n            },\\n            \\\"mouseenter .ui-menu-item\\\": function( event ) {\\n                var target = $( event.currentTarget );\\n                // Remove ui-state-active class from siblings of the newly focused menu item\\n                // to avoid a jump caused by adjacent elements both having a class with a border\\n                target.siblings().children( \\\".ui-state-active\\\" ).removeClass( \\\"ui-state-active\\\" );\\n                this.focus( event, target );\\n            },\\n            mouseleave: \\\"collapseAll\\\",\\n            \\\"mouseleave .ui-menu\\\": \\\"collapseAll\\\",\\n            focus: function( event, keepActiveItem ) {\\n                // If there's already an active item, keep it active\\n                // If not, activate the first item\\n                var item = this.active || this.element.children( \\\".ui-menu-item\\\" ).eq( 0 );\\n\\n                if ( !keepActiveItem ) {\\n                    this.focus( event, item );\\n                }\\n            },\\n            blur: function( event ) {\\n                this._delay(function() {\\n                    if ( !$.contains( this.element[0], this.document[0].activeElement ) ) {\\n                        this.collapseAll( event );\\n                    }\\n                });\\n            },\\n            keydown: \\\"_keydown\\\"\\n        });\\n\\n        this.refresh();\\n\\n        // Clicks outside of a menu collapse any open menus\\n        this._on( this.document, {\\n            click: function( event ) {\\n                if ( !$( event.target ).closest( \\\".ui-menu\\\" ).length ) {\\n                    this.collapseAll( event );\\n                }\\n\\n                // Reset the mouseHandled flag\\n                this.mouseHandled = false;\\n            }\\n        });\\n    },\\n\\n    _destroy: function() {\\n        // Destroy (sub)menus\\n        this.element\\n            .removeAttr( \\\"aria-activedescendant\\\" )\\n            .find( \\\".ui-menu\\\" ).addBack()\\n                .removeClass( \\\"ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons\\\" )\\n                .removeAttr( \\\"role\\\" )\\n                .removeAttr( \\\"tabIndex\\\" )\\n                .removeAttr( \\\"aria-labelledby\\\" )\\n                .removeAttr( \\\"aria-expanded\\\" )\\n                .removeAttr( \\\"aria-hidden\\\" )\\n                .removeAttr( \\\"aria-disabled\\\" )\\n                .removeUniqueId()\\n                .show();\\n\\n        // Destroy menu items\\n        this.element.find( \\\".ui-menu-item\\\" )\\n            .removeClass( \\\"ui-menu-item\\\" )\\n            .removeAttr( \\\"role\\\" )\\n            .removeAttr( \\\"aria-disabled\\\" )\\n            .children( \\\"a\\\" )\\n                .removeUniqueId()\\n                .removeClass( \\\"ui-corner-all ui-state-hover\\\" )\\n                .removeAttr( \\\"tabIndex\\\" )\\n                .removeAttr( \\\"role\\\" )\\n                .removeAttr( \\\"aria-haspopup\\\" )\\n                .children().each( function() {\\n                    var elem = $( this );\\n                    if ( elem.data( \\\"ui-menu-submenu-carat\\\" ) ) {\\n                        elem.remove();\\n                    }\\n                });\\n\\n        // Destroy menu dividers\\n        this.element.find( \\\".ui-menu-divider\\\" ).removeClass( \\\"ui-menu-divider ui-widget-content\\\" );\\n    },\\n\\n    _keydown: function( event ) {\\n        var match, prev, character, skip, regex,\\n            preventDefault = true;\\n\\n        function escape( value ) {\\n            return value.replace( /[\\\\-\\\\[\\\\]{}()*+?.,\\\\\\\\\\\\^$|#\\\\s]/g, \\\"\\\\\\\\$&\\\" );\\n        }\\n\\n        switch ( event.keyCode ) {\\n        case $.ui.keyCode.PAGE_UP:\\n            this.previousPage( event );\\n            break;\\n        case $.ui.keyCode.PAGE_DOWN:\\n            this.nextPage( event );\\n            break;\\n        case $.ui.keyCode.HOME:\\n            this._move( \\\"first\\\", \\\"first\\\", event );\\n            break;\\n        case $.ui.keyCode.END:\\n            this._move( \\\"last\\\", \\\"last\\\", event );\\n            break;\\n        case $.ui.keyCode.UP:\\n            this.previous( event );\\n            break;\\n        case $.ui.keyCode.DOWN:\\n            this.next( event );\\n            break;\\n        case $.ui.keyCode.LEFT:\\n            this.collapse( event );\\n            break;\\n        case $.ui.keyCode.RIGHT:\\n            if ( this.active && !this.active.is( \\\".ui-state-disabled\\\" ) ) {\\n                this.expand( event );\\n            }\\n            break;\\n        case $.ui.keyCode.ENTER:\\n        case $.ui.keyCode.SPACE:\\n            this._activate( event );\\n            break;\\n        case $.ui.keyCode.ESCAPE:\\n            this.collapse( event );\\n            break;\\n        default:\\n            preventDefault = false;\\n            prev = this.previousFilter || \\\"\\\";\\n            character = String.fromCharCode( event.keyCode );\\n            skip = false;\\n\\n            clearTimeout( this.filterTimer );\\n\\n            if ( character === prev ) {\\n                skip = true;\\n            } else {\\n                character = prev + character;\\n            }\\n\\n            regex = new RegExp( \\\"^\\\" + escape( character ), \\\"i\\\" );\\n            match = this.activeMenu.children( \\\".ui-menu-item\\\" ).filter(function() {\\n                return regex.test( $( this ).children( \\\"a\\\" ).text() );\\n            });\\n            match = skip && match.index( this.active.next() ) !== -1 ?\\n                this.active.nextAll( \\\".ui-menu-item\\\" ) :\\n                match;\\n\\n            // If no matches on the current filter, reset to the last character pressed\\n            // to move down the menu to the first item that starts with that character\\n            if ( !match.length ) {\\n                character = String.fromCharCode( event.keyCode );\\n                regex = new RegExp( \\\"^\\\" + escape( character ), \\\"i\\\" );\\n                match = this.activeMenu.children( \\\".ui-menu-item\\\" ).filter(function() {\\n                    return regex.test( $( this ).children( \\\"a\\\" ).text() );\\n                });\\n            }\\n\\n            if ( match.length ) {\\n                this.focus( event, match );\\n                if ( match.length > 1 ) {\\n                    this.previousFilter = character;\\n                    this.filterTimer = this._delay(function() {\\n                        delete this.previousFilter;\\n                    }, 1000 );\\n                } else {\\n                    delete this.previousFilter;\\n                }\\n            } else {\\n                delete this.previousFilter;\\n            }\\n        }\\n\\n        if ( preventDefault ) {\\n            event.preventDefault();\\n        }\\n    },\\n\\n    _activate: function( event ) {\\n        if ( !this.active.is( \\\".ui-state-disabled\\\" ) ) {\\n            if ( this.active.children( \\\"a[aria-haspopup='true']\\\" ).length ) {\\n                this.expand( event );\\n            } else {\\n                this.select( event );\\n            }\\n        }\\n    },\\n\\n    refresh: function() {\\n        var menus,\\n            icon = this.options.icons.submenu,\\n            submenus = this.element.find( this.options.menus );\\n\\n        this.element.toggleClass( \\\"ui-menu-icons\\\", !!this.element.find( \\\".ui-icon\\\" ).length );\\n\\n        // Initialize nested menus\\n        submenus.filter( \\\":not(.ui-menu)\\\" )\\n            .addClass( \\\"ui-menu ui-widget ui-widget-content ui-corner-all\\\" )\\n            .hide()\\n            .attr({\\n                role: this.options.role,\\n                \\\"aria-hidden\\\": \\\"true\\\",\\n                \\\"aria-expanded\\\": \\\"false\\\"\\n            })\\n            .each(function() {\\n                var menu = $( this ),\\n                    item = menu.prev( \\\"a\\\" ),\\n                    submenuCarat = $( \\\"<span>\\\" )\\n                        .addClass( \\\"ui-menu-icon ui-icon \\\" + icon )\\n                        .data( \\\"ui-menu-submenu-carat\\\", true );\\n\\n                item\\n                    .attr( \\\"aria-haspopup\\\", \\\"true\\\" )\\n                    .prepend( submenuCarat );\\n                menu.attr( \\\"aria-labelledby\\\", item.attr( \\\"id\\\" ) );\\n            });\\n\\n        menus = submenus.add( this.element );\\n\\n        // Don't refresh list items that are already adapted\\n        menus.children( \\\":not(.ui-menu-item):has(a)\\\" )\\n            .addClass( \\\"ui-menu-item\\\" )\\n            .attr( \\\"role\\\", \\\"presentation\\\" )\\n            .children( \\\"a\\\" )\\n                .uniqueId()\\n                .addClass( \\\"ui-corner-all\\\" )\\n                .attr({\\n                    tabIndex: -1,\\n                    role: this._itemRole()\\n                });\\n\\n        // Initialize unlinked menu-items containing spaces and/or dashes only as dividers\\n        menus.children( \\\":not(.ui-menu-item)\\\" ).each(function() {\\n            var item = $( this );\\n            // hyphen, em dash, en dash\\n            if ( !/[^\\\\-\\\\u2014\\\\u2013\\\\s]/.test( item.text() ) ) {\\n                item.addClass( \\\"ui-widget-content ui-menu-divider\\\" );\\n            }\\n        });\\n\\n        // Add aria-disabled attribute to any disabled menu item\\n        menus.children( \\\".ui-state-disabled\\\" ).attr( \\\"aria-disabled\\\", \\\"true\\\" );\\n\\n        // If the active item has been removed, blur the menu\\n        if ( this.active && !$.contains( this.element[ 0 ], this.active[ 0 ] ) ) {\\n            this.blur();\\n        }\\n    },\\n\\n    _itemRole: function() {\\n        return {\\n            menu: \\\"menuitem\\\",\\n            listbox: \\\"option\\\"\\n        }[ this.options.role ];\\n    },\\n\\n    _setOption: function( key, value ) {\\n        if ( key === \\\"icons\\\" ) {\\n            this.element.find( \\\".ui-menu-icon\\\" )\\n                .removeClass( this.options.icons.submenu )\\n                .addClass( value.submenu );\\n        }\\n        this._super( key, value );\\n    },\\n\\n    focus: function( event, item ) {\\n        var nested, focused;\\n        this.blur( event, event && event.type === \\\"focus\\\" );\\n\\n        this._scrollIntoView( item );\\n\\n        this.active = item.first();\\n        focused = this.active.children( \\\"a\\\" ).addClass( \\\"ui-state-focus\\\" );\\n        // Only update aria-activedescendant if there's a role\\n        // otherwise we assume focus is managed elsewhere\\n        if ( this.options.role ) {\\n            this.element.attr( \\\"aria-activedescendant\\\", focused.attr( \\\"id\\\" ) );\\n        }\\n\\n        // Highlight active parent menu item, if any\\n        this.active\\n            .parent()\\n            .closest( \\\".ui-menu-item\\\" )\\n            .children( \\\"a:first\\\" )\\n            .addClass( \\\"ui-state-active\\\" );\\n\\n        if ( event && event.type === \\\"keydown\\\" ) {\\n            this._close();\\n        } else {\\n            this.timer = this._delay(function() {\\n                this._close();\\n            }, this.delay );\\n        }\\n\\n        nested = item.children( \\\".ui-menu\\\" );\\n        if ( nested.length && event && ( /^mouse/.test( event.type ) ) ) {\\n            this._startOpening(nested);\\n        }\\n        this.activeMenu = item.parent();\\n\\n        this._trigger( \\\"focus\\\", event, { item: item } );\\n    },\\n\\n    _scrollIntoView: function( item ) {\\n        var borderTop, paddingTop, offset, scroll, elementHeight, itemHeight;\\n        if ( this._hasScroll() ) {\\n            borderTop = parseFloat( $.css( this.activeMenu[0], \\\"borderTopWidth\\\" ) ) || 0;\\n            paddingTop = parseFloat( $.css( this.activeMenu[0], \\\"paddingTop\\\" ) ) || 0;\\n            offset = item.offset().top - this.activeMenu.offset().top - borderTop - paddingTop;\\n            scroll = this.activeMenu.scrollTop();\\n            elementHeight = this.activeMenu.height();\\n            itemHeight = item.height();\\n\\n            if ( offset < 0 ) {\\n                this.activeMenu.scrollTop( scroll + offset );\\n            } else if ( offset + itemHeight > elementHeight ) {\\n                this.activeMenu.scrollTop( scroll + offset - elementHeight + itemHeight );\\n            }\\n        }\\n    },\\n\\n    blur: function( event, fromFocus ) {\\n        if ( !fromFocus ) {\\n            clearTimeout( this.timer );\\n        }\\n\\n        if ( !this.active ) {\\n            return;\\n        }\\n\\n        this.active.children( \\\"a\\\" ).removeClass( \\\"ui-state-focus\\\" );\\n        this.active = null;\\n\\n        this._trigger( \\\"blur\\\", event, { item: this.active } );\\n    },\\n\\n    _startOpening: function( submenu ) {\\n        clearTimeout( this.timer );\\n\\n        // Don't open if already open fixes a Firefox bug that caused a .5 pixel\\n        // shift in the submenu position when mousing over the carat icon\\n        if ( submenu.attr( \\\"aria-hidden\\\" ) !== \\\"true\\\" ) {\\n            return;\\n        }\\n\\n        this.timer = this._delay(function() {\\n            this._close();\\n            this._open( submenu );\\n        }, this.delay );\\n    },\\n\\n    _open: function( submenu ) {\\n        var position = $.extend({\\n            of: this.active\\n        }, this.options.position );\\n\\n        clearTimeout( this.timer );\\n        this.element.find( \\\".ui-menu\\\" ).not( submenu.parents( \\\".ui-menu\\\" ) )\\n            .hide()\\n            .attr( \\\"aria-hidden\\\", \\\"true\\\" );\\n\\n        submenu\\n            .show()\\n            .removeAttr( \\\"aria-hidden\\\" )\\n            .attr( \\\"aria-expanded\\\", \\\"true\\\" )\\n            .position( position );\\n    },\\n\\n    collapseAll: function( event, all ) {\\n        clearTimeout( this.timer );\\n        this.timer = this._delay(function() {\\n            // If we were passed an event, look for the submenu that contains the event\\n            var currentMenu = all ? this.element :\\n                $( event && event.target ).closest( this.element.find( \\\".ui-menu\\\" ) );\\n\\n            // If we found no valid submenu ancestor, use the main menu to close all sub menus anyway\\n            if ( !currentMenu.length ) {\\n                currentMenu = this.element;\\n            }\\n\\n            this._close( currentMenu );\\n\\n            this.blur( event );\\n            this.activeMenu = currentMenu;\\n        }, this.delay );\\n    },\\n\\n    // With no arguments, closes the currently active menu - if nothing is active\\n    // it closes all menus.  If passed an argument, it will search for menus BELOW\\n    _close: function( startMenu ) {\\n        if ( !startMenu ) {\\n            startMenu = this.active ? this.active.parent() : this.element;\\n        }\\n\\n        startMenu\\n            .find( \\\".ui-menu\\\" )\\n                .hide()\\n                .attr( \\\"aria-hidden\\\", \\\"true\\\" )\\n                .attr( \\\"aria-expanded\\\", \\\"false\\\" )\\n            .end()\\n            .find( \\\"a.ui-state-active\\\" )\\n                .removeClass( \\\"ui-state-active\\\" );\\n    },\\n\\n    collapse: function( event ) {\\n        var newItem = this.active &&\\n            this.active.parent().closest( \\\".ui-menu-item\\\", this.element );\\n        if ( newItem && newItem.length ) {\\n            this._close();\\n            this.focus( event, newItem );\\n        }\\n    },\\n\\n    expand: function( event ) {\\n        var newItem = this.active &&\\n            this.active\\n                .children( \\\".ui-menu \\\" )\\n                .children( \\\".ui-menu-item\\\" )\\n                .first();\\n\\n        if ( newItem && newItem.length ) {\\n            this._open( newItem.parent() );\\n\\n            // Delay so Firefox will not hide activedescendant change in expanding submenu from AT\\n            this._delay(function() {\\n                this.focus( event, newItem );\\n            });\\n        }\\n    },\\n\\n    next: function( event ) {\\n        this._move( \\\"next\\\", \\\"first\\\", event );\\n    },\\n\\n    previous: function( event ) {\\n        this._move( \\\"prev\\\", \\\"last\\\", event );\\n    },\\n\\n    isFirstItem: function() {\\n        return this.active && !this.active.prevAll( \\\".ui-menu-item\\\" ).length;\\n    },\\n\\n    isLastItem: function() {\\n        return this.active && !this.active.nextAll( \\\".ui-menu-item\\\" ).length;\\n    },\\n\\n    _move: function( direction, filter, event ) {\\n        var next;\\n        if ( this.active ) {\\n            if ( direction === \\\"first\\\" || direction === \\\"last\\\" ) {\\n                next = this.active\\n                    [ direction === \\\"first\\\" ? \\\"prevAll\\\" : \\\"nextAll\\\" ]( \\\".ui-menu-item\\\" )\\n                    .eq( -1 );\\n            } else {\\n                next = this.active\\n                    [ direction + \\\"All\\\" ]( \\\".ui-menu-item\\\" )\\n                    .eq( 0 );\\n            }\\n        }\\n        if ( !next || !next.length || !this.active ) {\\n            next = this.activeMenu.children( \\\".ui-menu-item\\\" )[ filter ]();\\n        }\\n\\n        this.focus( event, next );\\n    },\\n\\n    nextPage: function( event ) {\\n        var item, base, height;\\n\\n        if ( !this.active ) {\\n            this.next( event );\\n            return;\\n        }\\n        if ( this.isLastItem() ) {\\n            return;\\n        }\\n        if ( this._hasScroll() ) {\\n            base = this.active.offset().top;\\n            height = this.element.height();\\n            this.active.nextAll( \\\".ui-menu-item\\\" ).each(function() {\\n                item = $( this );\\n                return item.offset().top - base - height < 0;\\n            });\\n\\n            this.focus( event, item );\\n        } else {\\n            this.focus( event, this.activeMenu.children( \\\".ui-menu-item\\\" )\\n                [ !this.active ? \\\"first\\\" : \\\"last\\\" ]() );\\n        }\\n    },\\n\\n    previousPage: function( event ) {\\n        var item, base, height;\\n        if ( !this.active ) {\\n            this.next( event );\\n            return;\\n        }\\n        if ( this.isFirstItem() ) {\\n            return;\\n        }\\n        if ( this._hasScroll() ) {\\n            base = this.active.offset().top;\\n            height = this.element.height();\\n            this.active.prevAll( \\\".ui-menu-item\\\" ).each(function() {\\n                item = $( this );\\n                return item.offset().top - base + height > 0;\\n            });\\n\\n            this.focus( event, item );\\n        } else {\\n            this.focus( event, this.activeMenu.children( \\\".ui-menu-item\\\" ).first() );\\n        }\\n    },\\n\\n    _hasScroll: function() {\\n        return this.element.outerHeight() < this.element.prop( \\\"scrollHeight\\\" );\\n    },\\n\\n    select: function( event ) {\\n        // TODO: It should never be possible to not have an active item at this\\n        // point, but the tests don't trigger mouseenter before click.\\n        this.active = this.active || $( event.target ).closest( \\\".ui-menu-item\\\" );\\n        var ui = { item: this.active };\\n        if ( !this.active.has( \\\".ui-menu\\\" ).length ) {\\n            this.collapseAll( event, true );\\n        }\\n        this._trigger( \\\"select\\\", event, ui );\\n    }\\n});\\n\\n}( jQuery ));\\n(function( $, undefined ) {\\n\\n$.widget( \\\"ui.progressbar\\\", {\\n    version: \\\"1.10.4\\\",\\n    options: {\\n        max: 100,\\n        value: 0,\\n\\n        change: null,\\n        complete: null\\n    },\\n\\n    min: 0,\\n\\n    _create: function() {\\n        // Constrain initial value\\n        this.oldValue = this.options.value = this._constrainedValue();\\n\\n        this.element\\n            .addClass( \\\"ui-progressbar ui-widget ui-widget-content ui-corner-all\\\" )\\n            .attr({\\n                // Only set static values, aria-valuenow and aria-valuemax are\\n                // set inside _refreshValue()\\n                role: \\\"progressbar\\\",\\n                \\\"aria-valuemin\\\": this.min\\n            });\\n\\n        this.valueDiv = $( \\\"<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>\\\" )\\n            .appendTo( this.element );\\n\\n        this._refreshValue();\\n    },\\n\\n    _destroy: function() {\\n        this.element\\n            .removeClass( \\\"ui-progressbar ui-widget ui-widget-content ui-corner-all\\\" )\\n            .removeAttr( \\\"role\\\" )\\n            .removeAttr( \\\"aria-valuemin\\\" )\\n            .removeAttr( \\\"aria-valuemax\\\" )\\n            .removeAttr( \\\"aria-valuenow\\\" );\\n\\n        this.valueDiv.remove();\\n    },\\n\\n    value: function( newValue ) {\\n        if ( newValue === undefined ) {\\n            return this.options.value;\\n        }\\n\\n        this.options.value = this._constrainedValue( newValue );\\n        this._refreshValue();\\n    },\\n\\n    _constrainedValue: function( newValue ) {\\n        if ( newValue === undefined ) {\\n            newValue = this.options.value;\\n        }\\n\\n        this.indeterminate = newValue === false;\\n\\n        // sanitize value\\n        if ( typeof newValue !== \\\"number\\\" ) {\\n            newValue = 0;\\n        }\\n\\n        return this.indeterminate ? false :\\n            Math.min( this.options.max, Math.max( this.min, newValue ) );\\n    },\\n\\n    _setOptions: function( options ) {\\n        // Ensure \\\"value\\\" option is set after other values (like max)\\n        var value = options.value;\\n        delete options.value;\\n\\n        this._super( options );\\n\\n        this.options.value = this._constrainedValue( value );\\n        this._refreshValue();\\n    },\\n\\n    _setOption: function( key, value ) {\\n        if ( key === \\\"max\\\" ) {\\n            // Don't allow a max less than min\\n            value = Math.max( this.min, value );\\n        }\\n\\n        this._super( key, value );\\n    },\\n\\n    _percentage: function() {\\n        return this.indeterminate ? 100 : 100 * ( this.options.value - this.min ) / ( this.options.max - this.min );\\n    },\\n\\n    _refreshValue: function() {\\n        var value = this.options.value,\\n            percentage = this._percentage();\\n\\n        this.valueDiv\\n            .toggle( this.indeterminate || value > this.min )\\n            .toggleClass( \\\"ui-corner-right\\\", value === this.options.max )\\n            .width( percentage.toFixed(0) + \\\"%\\\" );\\n\\n        this.element.toggleClass( \\\"ui-progressbar-indeterminate\\\", this.indeterminate );\\n\\n        if ( this.indeterminate ) {\\n            this.element.removeAttr( \\\"aria-valuenow\\\" );\\n            if ( !this.overlayDiv ) {\\n                this.overlayDiv = $( \\\"<div class='ui-progressbar-overlay'></div>\\\" ).appendTo( this.valueDiv );\\n            }\\n        } else {\\n            this.element.attr({\\n                \\\"aria-valuemax\\\": this.options.max,\\n                \\\"aria-valuenow\\\": value\\n            });\\n            if ( this.overlayDiv ) {\\n                this.overlayDiv.remove();\\n                this.overlayDiv = null;\\n            }\\n        }\\n\\n        if ( this.oldValue !== value ) {\\n            this.oldValue = value;\\n            this._trigger( \\\"change\\\" );\\n        }\\n        if ( value === this.options.max ) {\\n            this._trigger( \\\"complete\\\" );\\n        }\\n    }\\n});\\n\\n})( jQuery );\\n(function( $, undefined ) {\\n\\nfunction num(v) {\\n    return parseInt(v, 10) || 0;\\n}\\n\\nfunction isNumber(value) {\\n    return !isNaN(parseInt(value, 10));\\n}\\n\\n$.widget(\\\"ui.resizable\\\", $.ui.mouse, {\\n    version: \\\"1.10.4\\\",\\n    widgetEventPrefix: \\\"resize\\\",\\n    options: {\\n        alsoResize: false,\\n        animate: false,\\n        animateDuration: \\\"slow\\\",\\n        animateEasing: \\\"swing\\\",\\n        aspectRatio: false,\\n        autoHide: false,\\n        containment: false,\\n        ghost: false,\\n        grid: false,\\n        handles: \\\"e,s,se\\\",\\n        helper: false,\\n        maxHeight: null,\\n        maxWidth: null,\\n        minHeight: 10,\\n        minWidth: 10,\\n        // See #7960\\n        zIndex: 90,\\n\\n        // callbacks\\n        resize: null,\\n        start: null,\\n        stop: null\\n    },\\n    _create: function() {\\n\\n        var n, i, handle, axis, hname,\\n            that = this,\\n            o = this.options;\\n        this.element.addClass(\\\"ui-resizable\\\");\\n\\n        $.extend(this, {\\n            _aspectRatio: !!(o.aspectRatio),\\n            aspectRatio: o.aspectRatio,\\n            originalElement: this.element,\\n            _proportionallyResizeElements: [],\\n            _helper: o.helper || o.ghost || o.animate ? o.helper || \\\"ui-resizable-helper\\\" : null\\n        });\\n\\n        //Wrap the element if it cannot hold child nodes\\n        if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)) {\\n\\n            //Create a wrapper element and set the wrapper to the new current internal element\\n            this.element.wrap(\\n                $(\\\"<div class='ui-wrapper' style='overflow: hidden;'></div>\\\").css({\\n                    position: this.element.css(\\\"position\\\"),\\n                    width: this.element.outerWidth(),\\n                    height: this.element.outerHeight(),\\n                    top: this.element.css(\\\"top\\\"),\\n                    left: this.element.css(\\\"left\\\")\\n                })\\n            );\\n\\n            //Overwrite the original this.element\\n            this.element = this.element.parent().data(\\n                \\\"ui-resizable\\\", this.element.data(\\\"ui-resizable\\\")\\n            );\\n\\n            this.elementIsWrapper = true;\\n\\n            //Move margins to the wrapper\\n            this.element.css({ marginLeft: this.originalElement.css(\\\"marginLeft\\\"), marginTop: this.originalElement.css(\\\"marginTop\\\"), marginRight: this.originalElement.css(\\\"marginRight\\\"), marginBottom: this.originalElement.css(\\\"marginBottom\\\") });\\n            this.originalElement.css({ marginLeft: 0, marginTop: 0, marginRight: 0, marginBottom: 0});\\n\\n            //Prevent Safari textarea resize\\n            this.originalResizeStyle = this.originalElement.css(\\\"resize\\\");\\n            this.originalElement.css(\\\"resize\\\", \\\"none\\\");\\n\\n            //Push the actual element to our proportionallyResize internal array\\n            this._proportionallyResizeElements.push(this.originalElement.css({ position: \\\"static\\\", zoom: 1, display: \\\"block\\\" }));\\n\\n            // avoid IE jump (hard set the margin)\\n            this.originalElement.css({ margin: this.originalElement.css(\\\"margin\\\") });\\n\\n            // fix handlers offset\\n            this._proportionallyResize();\\n\\n        }\\n\\n        this.handles = o.handles || (!$(\\\".ui-resizable-handle\\\", this.element).length ? \\\"e,s,se\\\" : { n: \\\".ui-resizable-n\\\", e: \\\".ui-resizable-e\\\", s: \\\".ui-resizable-s\\\", w: \\\".ui-resizable-w\\\", se: \\\".ui-resizable-se\\\", sw: \\\".ui-resizable-sw\\\", ne: \\\".ui-resizable-ne\\\", nw: \\\".ui-resizable-nw\\\" });\\n        if(this.handles.constructor === String) {\\n\\n            if ( this.handles === \\\"all\\\") {\\n                this.handles = \\\"n,e,s,w,se,sw,ne,nw\\\";\\n            }\\n\\n            n = this.handles.split(\\\",\\\");\\n            this.handles = {};\\n\\n            for(i = 0; i < n.length; i++) {\\n\\n                handle = $.trim(n[i]);\\n                hname = \\\"ui-resizable-\\\"+handle;\\n                axis = $(\\\"<div class='ui-resizable-handle \\\" + hname + \\\"'></div>\\\");\\n\\n                // Apply zIndex to all handles - see #7960\\n                axis.css({ zIndex: o.zIndex });\\n\\n                //TODO : What's going on here?\\n                if (\\\"se\\\" === handle) {\\n                    axis.addClass(\\\"ui-icon ui-icon-gripsmall-diagonal-se\\\");\\n                }\\n\\n                //Insert into internal handles object and append to element\\n                this.handles[handle] = \\\".ui-resizable-\\\"+handle;\\n                this.element.append(axis);\\n            }\\n\\n        }\\n\\n        this._renderAxis = function(target) {\\n\\n            var i, axis, padPos, padWrapper;\\n\\n            target = target || this.element;\\n\\n            for(i in this.handles) {\\n\\n                if(this.handles[i].constructor === String) {\\n                    this.handles[i] = $(this.handles[i], this.element).show();\\n                }\\n\\n                //Apply pad to wrapper element, needed to fix axis position (textarea, inputs, scrolls)\\n                if (this.elementIsWrapper && this.originalElement[0].nodeName.match(/textarea|input|select|button/i)) {\\n\\n                    axis = $(this.handles[i], this.element);\\n\\n                    //Checking the correct pad and border\\n                    padWrapper = /sw|ne|nw|se|n|s/.test(i) ? axis.outerHeight() : axis.outerWidth();\\n\\n                    //The padding type i have to apply...\\n                    padPos = [ \\\"padding\\\",\\n                        /ne|nw|n/.test(i) ? \\\"Top\\\" :\\n                        /se|sw|s/.test(i) ? \\\"Bottom\\\" :\\n                        /^e$/.test(i) ? \\\"Right\\\" : \\\"Left\\\" ].join(\\\"\\\");\\n\\n                    target.css(padPos, padWrapper);\\n\\n                    this._proportionallyResize();\\n\\n                }\\n\\n                //TODO: What's that good for? There's not anything to be executed left\\n                if(!$(this.handles[i]).length) {\\n                    continue;\\n                }\\n            }\\n        };\\n\\n        //TODO: make renderAxis a prototype function\\n        this._renderAxis(this.element);\\n\\n        this._handles = $(\\\".ui-resizable-handle\\\", this.element)\\n            .disableSelection();\\n\\n        //Matching axis name\\n        this._handles.mouseover(function() {\\n            if (!that.resizing) {\\n                if (this.className) {\\n                    axis = this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);\\n                }\\n                //Axis, default = se\\n                that.axis = axis && axis[1] ? axis[1] : \\\"se\\\";\\n            }\\n        });\\n\\n        //If we want to auto hide the elements\\n        if (o.autoHide) {\\n            this._handles.hide();\\n            $(this.element)\\n                .addClass(\\\"ui-resizable-autohide\\\")\\n                .mouseenter(function() {\\n                    if (o.disabled) {\\n                        return;\\n                    }\\n                    $(this).removeClass(\\\"ui-resizable-autohide\\\");\\n                    that._handles.show();\\n                })\\n                .mouseleave(function(){\\n                    if (o.disabled) {\\n                        return;\\n                    }\\n                    if (!that.resizing) {\\n                        $(this).addClass(\\\"ui-resizable-autohide\\\");\\n                        that._handles.hide();\\n                    }\\n                });\\n        }\\n\\n        //Initialize the mouse interaction\\n        this._mouseInit();\\n\\n    },\\n\\n    _destroy: function() {\\n\\n        this._mouseDestroy();\\n\\n        var wrapper,\\n            _destroy = function(exp) {\\n                $(exp).removeClass(\\\"ui-resizable ui-resizable-disabled ui-resizable-resizing\\\")\\n                    .removeData(\\\"resizable\\\").removeData(\\\"ui-resizable\\\").unbind(\\\".resizable\\\").find(\\\".ui-resizable-handle\\\").remove();\\n            };\\n\\n        //TODO: Unwrap at same DOM position\\n        if (this.elementIsWrapper) {\\n            _destroy(this.element);\\n            wrapper = this.element;\\n            this.originalElement.css({\\n                position: wrapper.css(\\\"position\\\"),\\n                width: wrapper.outerWidth(),\\n                height: wrapper.outerHeight(),\\n                top: wrapper.css(\\\"top\\\"),\\n                left: wrapper.css(\\\"left\\\")\\n            }).insertAfter( wrapper );\\n            wrapper.remove();\\n        }\\n\\n        this.originalElement.css(\\\"resize\\\", this.originalResizeStyle);\\n        _destroy(this.originalElement);\\n\\n        return this;\\n    },\\n\\n    _mouseCapture: function(event) {\\n        var i, handle,\\n            capture = false;\\n\\n        for (i in this.handles) {\\n            handle = $(this.handles[i])[0];\\n            if (handle === event.target || $.contains(handle, event.target)) {\\n                capture = true;\\n            }\\n        }\\n\\n        return !this.options.disabled && capture;\\n    },\\n\\n    _mouseStart: function(event) {\\n\\n        var curleft, curtop, cursor,\\n            o = this.options,\\n            iniPos = this.element.position(),\\n            el = this.element;\\n\\n        this.resizing = true;\\n\\n        // bugfix for http://dev.jquery.com/ticket/1749\\n        if ( (/absolute/).test( el.css(\\\"position\\\") ) ) {\\n            el.css({ position: \\\"absolute\\\", top: el.css(\\\"top\\\"), left: el.css(\\\"left\\\") });\\n        } else if (el.is(\\\".ui-draggable\\\")) {\\n            el.css({ position: \\\"absolute\\\", top: iniPos.top, left: iniPos.left });\\n        }\\n\\n        this._renderProxy();\\n\\n        curleft = num(this.helper.css(\\\"left\\\"));\\n        curtop = num(this.helper.css(\\\"top\\\"));\\n\\n        if (o.containment) {\\n            curleft += $(o.containment).scrollLeft() || 0;\\n            curtop += $(o.containment).scrollTop() || 0;\\n        }\\n\\n        //Store needed variables\\n        this.offset = this.helper.offset();\\n        this.position = { left: curleft, top: curtop };\\n        this.size = this._helper ? { width: this.helper.width(), height: this.helper.height() } : { width: el.width(), height: el.height() };\\n        this.originalSize = this._helper ? { width: el.outerWidth(), height: el.outerHeight() } : { width: el.width(), height: el.height() };\\n        this.originalPosition = { left: curleft, top: curtop };\\n        this.sizeDiff = { width: el.outerWidth() - el.width(), height: el.outerHeight() - el.height() };\\n        this.originalMousePosition = { left: event.pageX, top: event.pageY };\\n\\n        //Aspect Ratio\\n        this.aspectRatio = (typeof o.aspectRatio === \\\"number\\\") ? o.aspectRatio : ((this.originalSize.width / this.originalSize.height) || 1);\\n\\n        cursor = $(\\\".ui-resizable-\\\" + this.axis).css(\\\"cursor\\\");\\n        $(\\\"body\\\").css(\\\"cursor\\\", cursor === \\\"auto\\\" ? this.axis + \\\"-resize\\\" : cursor);\\n\\n        el.addClass(\\\"ui-resizable-resizing\\\");\\n        this._propagate(\\\"start\\\", event);\\n        return true;\\n    },\\n\\n    _mouseDrag: function(event) {\\n\\n        //Increase performance, avoid regex\\n        var data,\\n            el = this.helper, props = {},\\n            smp = this.originalMousePosition,\\n            a = this.axis,\\n            prevTop = this.position.top,\\n            prevLeft = this.position.left,\\n            prevWidth = this.size.width,\\n            prevHeight = this.size.height,\\n            dx = (event.pageX-smp.left)||0,\\n            dy = (event.pageY-smp.top)||0,\\n            trigger = this._change[a];\\n\\n        if (!trigger) {\\n            return false;\\n        }\\n\\n        // Calculate the attrs that will be change\\n        data = trigger.apply(this, [event, dx, dy]);\\n\\n        // Put this in the mouseDrag handler since the user can start pressing shift while resizing\\n        this._updateVirtualBoundaries(event.shiftKey);\\n        if (this._aspectRatio || event.shiftKey) {\\n            data = this._updateRatio(data, event);\\n        }\\n\\n        data = this._respectSize(data, event);\\n\\n        this._updateCache(data);\\n\\n        // plugins callbacks need to be called first\\n        this._propagate(\\\"resize\\\", event);\\n\\n        if (this.position.top !== prevTop) {\\n            props.top = this.position.top + \\\"px\\\";\\n        }\\n        if (this.position.left !== prevLeft) {\\n            props.left = this.position.left + \\\"px\\\";\\n        }\\n        if (this.size.width !== prevWidth) {\\n            props.width = this.size.width + \\\"px\\\";\\n        }\\n        if (this.size.height !== prevHeight) {\\n            props.height = this.size.height + \\\"px\\\";\\n        }\\n        el.css(props);\\n\\n        if (!this._helper && this._proportionallyResizeElements.length) {\\n            this._proportionallyResize();\\n        }\\n\\n        // Call the user callback if the element was resized\\n        if ( ! $.isEmptyObject(props) ) {\\n            this._trigger(\\\"resize\\\", event, this.ui());\\n        }\\n\\n        return false;\\n    },\\n\\n    _mouseStop: function(event) {\\n\\n        this.resizing = false;\\n        var pr, ista, soffseth, soffsetw, s, left, top,\\n            o = this.options, that = this;\\n\\n        if(this._helper) {\\n\\n            pr = this._proportionallyResizeElements;\\n            ista = pr.length && (/textarea/i).test(pr[0].nodeName);\\n            soffseth = ista && $.ui.hasScroll(pr[0], \\\"left\\\") /* TODO - jump height */ ? 0 : that.sizeDiff.height;\\n            soffsetw = ista ? 0 : that.sizeDiff.width;\\n\\n            s = { width: (that.helper.width()  - soffsetw), height: (that.helper.height() - soffseth) };\\n            left = (parseInt(that.element.css(\\\"left\\\"), 10) + (that.position.left - that.originalPosition.left)) || null;\\n            top = (parseInt(that.element.css(\\\"top\\\"), 10) + (that.position.top - that.originalPosition.top)) || null;\\n\\n            if (!o.animate) {\\n                this.element.css($.extend(s, { top: top, left: left }));\\n            }\\n\\n            that.helper.height(that.size.height);\\n            that.helper.width(that.size.width);\\n\\n            if (this._helper && !o.animate) {\\n                this._proportionallyResize();\\n            }\\n        }\\n\\n        $(\\\"body\\\").css(\\\"cursor\\\", \\\"auto\\\");\\n\\n        this.element.removeClass(\\\"ui-resizable-resizing\\\");\\n\\n        this._propagate(\\\"stop\\\", event);\\n\\n        if (this._helper) {\\n            this.helper.remove();\\n        }\\n\\n        return false;\\n\\n    },\\n\\n    _updateVirtualBoundaries: function(forceAspectRatio) {\\n        var pMinWidth, pMaxWidth, pMinHeight, pMaxHeight, b,\\n            o = this.options;\\n\\n        b = {\\n            minWidth: isNumber(o.minWidth) ? o.minWidth : 0,\\n            maxWidth: isNumber(o.maxWidth) ? o.maxWidth : Infinity,\\n            minHeight: isNumber(o.minHeight) ? o.minHeight : 0,\\n            maxHeight: isNumber(o.maxHeight) ? o.maxHeight : Infinity\\n        };\\n\\n        if(this._aspectRatio || forceAspectRatio) {\\n            // We want to create an enclosing box whose aspect ration is the requested one\\n            // First, compute the \\\"projected\\\" size for each dimension based on the aspect ratio and other dimension\\n            pMinWidth = b.minHeight * this.aspectRatio;\\n            pMinHeight = b.minWidth / this.aspectRatio;\\n            pMaxWidth = b.maxHeight * this.aspectRatio;\\n            pMaxHeight = b.maxWidth / this.aspectRatio;\\n\\n            if(pMinWidth > b.minWidth) {\\n                b.minWidth = pMinWidth;\\n            }\\n            if(pMinHeight > b.minHeight) {\\n                b.minHeight = pMinHeight;\\n            }\\n            if(pMaxWidth < b.maxWidth) {\\n                b.maxWidth = pMaxWidth;\\n            }\\n            if(pMaxHeight < b.maxHeight) {\\n                b.maxHeight = pMaxHeight;\\n            }\\n        }\\n        this._vBoundaries = b;\\n    },\\n\\n    _updateCache: function(data) {\\n        this.offset = this.helper.offset();\\n        if (isNumber(data.left)) {\\n            this.position.left = data.left;\\n        }\\n        if (isNumber(data.top)) {\\n            this.position.top = data.top;\\n        }\\n        if (isNumber(data.height)) {\\n            this.size.height = data.height;\\n        }\\n        if (isNumber(data.width)) {\\n            this.size.width = data.width;\\n        }\\n    },\\n\\n    _updateRatio: function( data ) {\\n\\n        var cpos = this.position,\\n            csize = this.size,\\n            a = this.axis;\\n\\n        if (isNumber(data.height)) {\\n            data.width = (data.height * this.aspectRatio);\\n        } else if (isNumber(data.width)) {\\n            data.height = (data.width / this.aspectRatio);\\n        }\\n\\n        if (a === \\\"sw\\\") {\\n            data.left = cpos.left + (csize.width - data.width);\\n            data.top = null;\\n        }\\n        if (a === \\\"nw\\\") {\\n            data.top = cpos.top + (csize.height - data.height);\\n            data.left = cpos.left + (csize.width - data.width);\\n        }\\n\\n        return data;\\n    },\\n\\n    _respectSize: function( data ) {\\n\\n        var o = this._vBoundaries,\\n            a = this.axis,\\n            ismaxw = isNumber(data.width) && o.maxWidth && (o.maxWidth < data.width), ismaxh = isNumber(data.height) && o.maxHeight && (o.maxHeight < data.height),\\n            isminw = isNumber(data.width) && o.minWidth && (o.minWidth > data.width), isminh = isNumber(data.height) && o.minHeight && (o.minHeight > data.height),\\n            dw = this.originalPosition.left + this.originalSize.width,\\n            dh = this.position.top + this.size.height,\\n            cw = /sw|nw|w/.test(a), ch = /nw|ne|n/.test(a);\\n        if (isminw) {\\n            data.width = o.minWidth;\\n        }\\n        if (isminh) {\\n            data.height = o.minHeight;\\n        }\\n        if (ismaxw) {\\n            data.width = o.maxWidth;\\n        }\\n        if (ismaxh) {\\n            data.height = o.maxHeight;\\n        }\\n\\n        if (isminw && cw) {\\n            data.left = dw - o.minWidth;\\n        }\\n        if (ismaxw && cw) {\\n            data.left = dw - o.maxWidth;\\n        }\\n        if (isminh && ch) {\\n            data.top = dh - o.minHeight;\\n        }\\n        if (ismaxh && ch) {\\n            data.top = dh - o.maxHeight;\\n        }\\n\\n        // fixing jump error on top/left - bug #2330\\n        if (!data.width && !data.height && !data.left && data.top) {\\n            data.top = null;\\n        } else if (!data.width && !data.height && !data.top && data.left) {\\n            data.left = null;\\n        }\\n\\n        return data;\\n    },\\n\\n    _proportionallyResize: function() {\\n\\n        if (!this._proportionallyResizeElements.length) {\\n            return;\\n        }\\n\\n        var i, j, borders, paddings, prel,\\n            element = this.helper || this.element;\\n\\n        for ( i=0; i < this._proportionallyResizeElements.length; i++) {\\n\\n            prel = this._proportionallyResizeElements[i];\\n\\n            if (!this.borderDif) {\\n                this.borderDif = [];\\n                borders = [prel.css(\\\"borderTopWidth\\\"), prel.css(\\\"borderRightWidth\\\"), prel.css(\\\"borderBottomWidth\\\"), prel.css(\\\"borderLeftWidth\\\")];\\n                paddings = [prel.css(\\\"paddingTop\\\"), prel.css(\\\"paddingRight\\\"), prel.css(\\\"paddingBottom\\\"), prel.css(\\\"paddingLeft\\\")];\\n\\n                for ( j = 0; j < borders.length; j++ ) {\\n                    this.borderDif[ j ] = ( parseInt( borders[ j ], 10 ) || 0 ) + ( parseInt( paddings[ j ], 10 ) || 0 );\\n                }\\n            }\\n\\n            prel.css({\\n                height: (element.height() - this.borderDif[0] - this.borderDif[2]) || 0,\\n                width: (element.width() - this.borderDif[1] - this.borderDif[3]) || 0\\n            });\\n\\n        }\\n\\n    },\\n\\n    _renderProxy: function() {\\n\\n        var el = this.element, o = this.options;\\n        this.elementOffset = el.offset();\\n\\n        if(this._helper) {\\n\\n            this.helper = this.helper || $(\\\"<div style='overflow:hidden;'></div>\\\");\\n\\n            this.helper.addClass(this._helper).css({\\n                width: this.element.outerWidth() - 1,\\n                height: this.element.outerHeight() - 1,\\n                position: \\\"absolute\\\",\\n                left: this.elementOffset.left +\\\"px\\\",\\n                top: this.elementOffset.top +\\\"px\\\",\\n                zIndex: ++o.zIndex //TODO: Don't modify option\\n            });\\n\\n            this.helper\\n                .appendTo(\\\"body\\\")\\n                .disableSelection();\\n\\n        } else {\\n            this.helper = this.element;\\n        }\\n\\n    },\\n\\n    _change: {\\n        e: function(event, dx) {\\n            return { width: this.originalSize.width + dx };\\n        },\\n        w: function(event, dx) {\\n            var cs = this.originalSize, sp = this.originalPosition;\\n            return { left: sp.left + dx, width: cs.width - dx };\\n        },\\n        n: function(event, dx, dy) {\\n            var cs = this.originalSize, sp = this.originalPosition;\\n            return { top: sp.top + dy, height: cs.height - dy };\\n        },\\n        s: function(event, dx, dy) {\\n            return { height: this.originalSize.height + dy };\\n        },\\n        se: function(event, dx, dy) {\\n            return $.extend(this._change.s.apply(this, arguments), this._change.e.apply(this, [event, dx, dy]));\\n        },\\n        sw: function(event, dx, dy) {\\n            return $.extend(this._change.s.apply(this, arguments), this._change.w.apply(this, [event, dx, dy]));\\n        },\\n        ne: function(event, dx, dy) {\\n            return $.extend(this._change.n.apply(this, arguments), this._change.e.apply(this, [event, dx, dy]));\\n        },\\n        nw: function(event, dx, dy) {\\n            return $.extend(this._change.n.apply(this, arguments), this._change.w.apply(this, [event, dx, dy]));\\n        }\\n    },\\n\\n    _propagate: function(n, event) {\\n        $.ui.plugin.call(this, n, [event, this.ui()]);\\n        (n !== \\\"resize\\\" && this._trigger(n, event, this.ui()));\\n    },\\n\\n    plugins: {},\\n\\n    ui: function() {\\n        return {\\n            originalElement: this.originalElement,\\n            element: this.element,\\n            helper: this.helper,\\n            position: this.position,\\n            size: this.size,\\n            originalSize: this.originalSize,\\n            originalPosition: this.originalPosition\\n        };\\n    }\\n\\n});\\n\\n/*\\n * Resizable Extensions\\n */\\n\\n$.ui.plugin.add(\\\"resizable\\\", \\\"animate\\\", {\\n\\n    stop: function( event ) {\\n        var that = $(this).data(\\\"ui-resizable\\\"),\\n            o = that.options,\\n            pr = that._proportionallyResizeElements,\\n            ista = pr.length && (/textarea/i).test(pr[0].nodeName),\\n            soffseth = ista && $.ui.hasScroll(pr[0], \\\"left\\\") /* TODO - jump height */ ? 0 : that.sizeDiff.height,\\n            soffsetw = ista ? 0 : that.sizeDiff.width,\\n            style = { width: (that.size.width - soffsetw), height: (that.size.height - soffseth) },\\n            left = (parseInt(that.element.css(\\\"left\\\"), 10) + (that.position.left - that.originalPosition.left)) || null,\\n            top = (parseInt(that.element.css(\\\"top\\\"), 10) + (that.position.top - that.originalPosition.top)) || null;\\n\\n        that.element.animate(\\n            $.extend(style, top && left ? { top: top, left: left } : {}), {\\n                duration: o.animateDuration,\\n                easing: o.animateEasing,\\n                step: function() {\\n\\n                    var data = {\\n                        width: parseInt(that.element.css(\\\"width\\\"), 10),\\n                        height: parseInt(that.element.css(\\\"height\\\"), 10),\\n                        top: parseInt(that.element.css(\\\"top\\\"), 10),\\n                        left: parseInt(that.element.css(\\\"left\\\"), 10)\\n                    };\\n\\n                    if (pr && pr.length) {\\n                        $(pr[0]).css({ width: data.width, height: data.height });\\n                    }\\n\\n                    // propagating resize, and updating values for each animation step\\n                    that._updateCache(data);\\n                    that._propagate(\\\"resize\\\", event);\\n\\n                }\\n            }\\n        );\\n    }\\n\\n});\\n\\n$.ui.plugin.add(\\\"resizable\\\", \\\"containment\\\", {\\n\\n    start: function() {\\n        var element, p, co, ch, cw, width, height,\\n            that = $(this).data(\\\"ui-resizable\\\"),\\n            o = that.options,\\n            el = that.element,\\n            oc = o.containment,\\n            ce = (oc instanceof $) ? oc.get(0) : (/parent/.test(oc)) ? el.parent().get(0) : oc;\\n\\n        if (!ce) {\\n            return;\\n        }\\n\\n        that.containerElement = $(ce);\\n\\n        if (/document/.test(oc) || oc === document) {\\n            that.containerOffset = { left: 0, top: 0 };\\n            that.containerPosition = { left: 0, top: 0 };\\n\\n            that.parentData = {\\n                element: $(document), left: 0, top: 0,\\n                width: $(document).width(), height: $(document).height() || document.body.parentNode.scrollHeight\\n            };\\n        }\\n\\n        // i'm a node, so compute top, left, right, bottom\\n        else {\\n            element = $(ce);\\n            p = [];\\n            $([ \\\"Top\\\", \\\"Right\\\", \\\"Left\\\", \\\"Bottom\\\" ]).each(function(i, name) { p[i] = num(element.css(\\\"padding\\\" + name)); });\\n\\n            that.containerOffset = element.offset();\\n            that.containerPosition = element.position();\\n            that.containerSize = { height: (element.innerHeight() - p[3]), width: (element.innerWidth() - p[1]) };\\n\\n            co = that.containerOffset;\\n            ch = that.containerSize.height;\\n            cw = that.containerSize.width;\\n            width = ($.ui.hasScroll(ce, \\\"left\\\") ? ce.scrollWidth : cw );\\n            height = ($.ui.hasScroll(ce) ? ce.scrollHeight : ch);\\n\\n            that.parentData = {\\n                element: ce, left: co.left, top: co.top, width: width, height: height\\n            };\\n        }\\n    },\\n\\n    resize: function( event ) {\\n        var woset, hoset, isParent, isOffsetRelative,\\n            that = $(this).data(\\\"ui-resizable\\\"),\\n            o = that.options,\\n            co = that.containerOffset, cp = that.position,\\n            pRatio = that._aspectRatio || event.shiftKey,\\n            cop = { top:0, left:0 }, ce = that.containerElement;\\n\\n        if (ce[0] !== document && (/static/).test(ce.css(\\\"position\\\"))) {\\n            cop = co;\\n        }\\n\\n        if (cp.left < (that._helper ? co.left : 0)) {\\n            that.size.width = that.size.width + (that._helper ? (that.position.left - co.left) : (that.position.left - cop.left));\\n            if (pRatio) {\\n                that.size.height = that.size.width / that.aspectRatio;\\n            }\\n            that.position.left = o.helper ? co.left : 0;\\n        }\\n\\n        if (cp.top < (that._helper ? co.top : 0)) {\\n            that.size.height = that.size.height + (that._helper ? (that.position.top - co.top) : that.position.top);\\n            if (pRatio) {\\n                that.size.width = that.size.height * that.aspectRatio;\\n            }\\n            that.position.top = that._helper ? co.top : 0;\\n        }\\n\\n        that.offset.left = that.parentData.left+that.position.left;\\n        that.offset.top = that.parentData.top+that.position.top;\\n\\n        woset = Math.abs( (that._helper ? that.offset.left - cop.left : (that.offset.left - cop.left)) + that.sizeDiff.width );\\n        hoset = Math.abs( (that._helper ? that.offset.top - cop.top : (that.offset.top - co.top)) + that.sizeDiff.height );\\n\\n        isParent = that.containerElement.get(0) === that.element.parent().get(0);\\n        isOffsetRelative = /relative|absolute/.test(that.containerElement.css(\\\"position\\\"));\\n\\n        if ( isParent && isOffsetRelative ) {\\n            woset -= Math.abs( that.parentData.left );\\n        }\\n\\n        if (woset + that.size.width >= that.parentData.width) {\\n            that.size.width = that.parentData.width - woset;\\n            if (pRatio) {\\n                that.size.height = that.size.width / that.aspectRatio;\\n            }\\n        }\\n\\n        if (hoset + that.size.height >= that.parentData.height) {\\n            that.size.height = that.parentData.height - hoset;\\n            if (pRatio) {\\n                that.size.width = that.size.height * that.aspectRatio;\\n            }\\n        }\\n    },\\n\\n    stop: function(){\\n        var that = $(this).data(\\\"ui-resizable\\\"),\\n            o = that.options,\\n            co = that.containerOffset,\\n            cop = that.containerPosition,\\n            ce = that.containerElement,\\n            helper = $(that.helper),\\n            ho = helper.offset(),\\n            w = helper.outerWidth() - that.sizeDiff.width,\\n            h = helper.outerHeight() - that.sizeDiff.height;\\n\\n        if (that._helper && !o.animate && (/relative/).test(ce.css(\\\"position\\\"))) {\\n            $(this).css({ left: ho.left - cop.left - co.left, width: w, height: h });\\n        }\\n\\n        if (that._helper && !o.animate && (/static/).test(ce.css(\\\"position\\\"))) {\\n            $(this).css({ left: ho.left - cop.left - co.left, width: w, height: h });\\n        }\\n\\n    }\\n});\\n\\n$.ui.plugin.add(\\\"resizable\\\", \\\"alsoResize\\\", {\\n\\n    start: function () {\\n        var that = $(this).data(\\\"ui-resizable\\\"),\\n            o = that.options,\\n            _store = function (exp) {\\n                $(exp).each(function() {\\n                    var el = $(this);\\n                    el.data(\\\"ui-resizable-alsoresize\\\", {\\n                        width: parseInt(el.width(), 10), height: parseInt(el.height(), 10),\\n                        left: parseInt(el.css(\\\"left\\\"), 10), top: parseInt(el.css(\\\"top\\\"), 10)\\n                    });\\n                });\\n            };\\n\\n        if (typeof(o.alsoResize) === \\\"object\\\" && !o.alsoResize.parentNode) {\\n            if (o.alsoResize.length) { o.alsoResize = o.alsoResize[0]; _store(o.alsoResize); }\\n            else { $.each(o.alsoResize, function (exp) { _store(exp); }); }\\n        }else{\\n            _store(o.alsoResize);\\n        }\\n    },\\n\\n    resize: function (event, ui) {\\n        var that = $(this).data(\\\"ui-resizable\\\"),\\n            o = that.options,\\n            os = that.originalSize,\\n            op = that.originalPosition,\\n            delta = {\\n                height: (that.size.height - os.height) || 0, width: (that.size.width - os.width) || 0,\\n                top: (that.position.top - op.top) || 0, left: (that.position.left - op.left) || 0\\n            },\\n\\n            _alsoResize = function (exp, c) {\\n                $(exp).each(function() {\\n                    var el = $(this), start = $(this).data(\\\"ui-resizable-alsoresize\\\"), style = {},\\n                        css = c && c.length ? c : el.parents(ui.originalElement[0]).length ? [\\\"width\\\", \\\"height\\\"] : [\\\"width\\\", \\\"height\\\", \\\"top\\\", \\\"left\\\"];\\n\\n                    $.each(css, function (i, prop) {\\n                        var sum = (start[prop]||0) + (delta[prop]||0);\\n                        if (sum && sum >= 0) {\\n                            style[prop] = sum || null;\\n                        }\\n                    });\\n\\n                    el.css(style);\\n                });\\n            };\\n\\n        if (typeof(o.alsoResize) === \\\"object\\\" && !o.alsoResize.nodeType) {\\n            $.each(o.alsoResize, function (exp, c) { _alsoResize(exp, c); });\\n        }else{\\n            _alsoResize(o.alsoResize);\\n        }\\n    },\\n\\n    stop: function () {\\n        $(this).removeData(\\\"resizable-alsoresize\\\");\\n    }\\n});\\n\\n$.ui.plugin.add(\\\"resizable\\\", \\\"ghost\\\", {\\n\\n    start: function() {\\n\\n        var that = $(this).data(\\\"ui-resizable\\\"), o = that.options, cs = that.size;\\n\\n        that.ghost = that.originalElement.clone();\\n        that.ghost\\n            .css({ opacity: 0.25, display: \\\"block\\\", position: \\\"relative\\\", height: cs.height, width: cs.width, margin: 0, left: 0, top: 0 })\\n            .addClass(\\\"ui-resizable-ghost\\\")\\n            .addClass(typeof o.ghost === \\\"string\\\" ? o.ghost : \\\"\\\");\\n\\n        that.ghost.appendTo(that.helper);\\n\\n    },\\n\\n    resize: function(){\\n        var that = $(this).data(\\\"ui-resizable\\\");\\n        if (that.ghost) {\\n            that.ghost.css({ position: \\\"relative\\\", height: that.size.height, width: that.size.width });\\n        }\\n    },\\n\\n    stop: function() {\\n        var that = $(this).data(\\\"ui-resizable\\\");\\n        if (that.ghost && that.helper) {\\n            that.helper.get(0).removeChild(that.ghost.get(0));\\n        }\\n    }\\n\\n});\\n\\n$.ui.plugin.add(\\\"resizable\\\", \\\"grid\\\", {\\n\\n    resize: function() {\\n        var that = $(this).data(\\\"ui-resizable\\\"),\\n            o = that.options,\\n            cs = that.size,\\n            os = that.originalSize,\\n            op = that.originalPosition,\\n            a = that.axis,\\n            grid = typeof o.grid === \\\"number\\\" ? [o.grid, o.grid] : o.grid,\\n            gridX = (grid[0]||1),\\n            gridY = (grid[1]||1),\\n            ox = Math.round((cs.width - os.width) / gridX) * gridX,\\n            oy = Math.round((cs.height - os.height) / gridY) * gridY,\\n            newWidth = os.width + ox,\\n            newHeight = os.height + oy,\\n            isMaxWidth = o.maxWidth && (o.maxWidth < newWidth),\\n            isMaxHeight = o.maxHeight && (o.maxHeight < newHeight),\\n            isMinWidth = o.minWidth && (o.minWidth > newWidth),\\n            isMinHeight = o.minHeight && (o.minHeight > newHeight);\\n\\n        o.grid = grid;\\n\\n        if (isMinWidth) {\\n            newWidth = newWidth + gridX;\\n        }\\n        if (isMinHeight) {\\n            newHeight = newHeight + gridY;\\n        }\\n        if (isMaxWidth) {\\n            newWidth = newWidth - gridX;\\n        }\\n        if (isMaxHeight) {\\n            newHeight = newHeight - gridY;\\n        }\\n\\n        if (/^(se|s|e)$/.test(a)) {\\n            that.size.width = newWidth;\\n            that.size.height = newHeight;\\n        } else if (/^(ne)$/.test(a)) {\\n            that.size.width = newWidth;\\n            that.size.height = newHeight;\\n            that.position.top = op.top - oy;\\n        } else if (/^(sw)$/.test(a)) {\\n            that.size.width = newWidth;\\n            that.size.height = newHeight;\\n            that.position.left = op.left - ox;\\n        } else {\\n            if ( newHeight - gridY > 0 ) {\\n                that.size.height = newHeight;\\n                that.position.top = op.top - oy;\\n            } else {\\n                that.size.height = gridY;\\n                that.position.top = op.top + os.height - gridY;\\n            }\\n            if ( newWidth - gridX > 0 ) {\\n                that.size.width = newWidth;\\n                that.position.left = op.left - ox;\\n            } else {\\n                that.size.width = gridX;\\n                that.position.left = op.left + os.width - gridX;\\n            }\\n        }\\n    }\\n\\n});\\n\\n})(jQuery);\\n(function( $, undefined ) {\\n\\n$.widget(\\\"ui.selectable\\\", $.ui.mouse, {\\n    version: \\\"1.10.4\\\",\\n    options: {\\n        appendTo: \\\"body\\\",\\n        autoRefresh: true,\\n        distance: 0,\\n        filter: \\\"*\\\",\\n        tolerance: \\\"touch\\\",\\n\\n        // callbacks\\n        selected: null,\\n        selecting: null,\\n        start: null,\\n        stop: null,\\n        unselected: null,\\n        unselecting: null\\n    },\\n    _create: function() {\\n        var selectees,\\n            that = this;\\n\\n        this.element.addClass(\\\"ui-selectable\\\");\\n\\n        this.dragged = false;\\n\\n        // cache selectee children based on filter\\n        this.refresh = function() {\\n            selectees = $(that.options.filter, that.element[0]);\\n            selectees.addClass(\\\"ui-selectee\\\");\\n            selectees.each(function() {\\n                var $this = $(this),\\n                    pos = $this.offset();\\n                $.data(this, \\\"selectable-item\\\", {\\n                    element: this,\\n                    $element: $this,\\n                    left: pos.left,\\n                    top: pos.top,\\n                    right: pos.left + $this.outerWidth(),\\n                    bottom: pos.top + $this.outerHeight(),\\n                    startselected: false,\\n                    selected: $this.hasClass(\\\"ui-selected\\\"),\\n                    selecting: $this.hasClass(\\\"ui-selecting\\\"),\\n                    unselecting: $this.hasClass(\\\"ui-unselecting\\\")\\n                });\\n            });\\n        };\\n        this.refresh();\\n\\n        this.selectees = selectees.addClass(\\\"ui-selectee\\\");\\n\\n        this._mouseInit();\\n\\n        this.helper = $(\\\"<div class='ui-selectable-helper'></div>\\\");\\n    },\\n\\n    _destroy: function() {\\n        this.selectees\\n            .removeClass(\\\"ui-selectee\\\")\\n            .removeData(\\\"selectable-item\\\");\\n        this.element\\n            .removeClass(\\\"ui-selectable ui-selectable-disabled\\\");\\n        this._mouseDestroy();\\n    },\\n\\n    _mouseStart: function(event) {\\n        var that = this,\\n            options = this.options;\\n\\n        this.opos = [event.pageX, event.pageY];\\n\\n        if (this.options.disabled) {\\n            return;\\n        }\\n\\n        this.selectees = $(options.filter, this.element[0]);\\n\\n        this._trigger(\\\"start\\\", event);\\n\\n        $(options.appendTo).append(this.helper);\\n        // position helper (lasso)\\n        this.helper.css({\\n            \\\"left\\\": event.pageX,\\n            \\\"top\\\": event.pageY,\\n            \\\"width\\\": 0,\\n            \\\"height\\\": 0\\n        });\\n\\n        if (options.autoRefresh) {\\n            this.refresh();\\n        }\\n\\n        this.selectees.filter(\\\".ui-selected\\\").each(function() {\\n            var selectee = $.data(this, \\\"selectable-item\\\");\\n            selectee.startselected = true;\\n            if (!event.metaKey && !event.ctrlKey) {\\n                selectee.$element.removeClass(\\\"ui-selected\\\");\\n                selectee.selected = false;\\n                selectee.$element.addClass(\\\"ui-unselecting\\\");\\n                selectee.unselecting = true;\\n                // selectable UNSELECTING callback\\n                that._trigger(\\\"unselecting\\\", event, {\\n                    unselecting: selectee.element\\n                });\\n            }\\n        });\\n\\n        $(event.target).parents().addBack().each(function() {\\n            var doSelect,\\n                selectee = $.data(this, \\\"selectable-item\\\");\\n            if (selectee) {\\n                doSelect = (!event.metaKey && !event.ctrlKey) || !selectee.$element.hasClass(\\\"ui-selected\\\");\\n                selectee.$element\\n                    .removeClass(doSelect ? \\\"ui-unselecting\\\" : \\\"ui-selected\\\")\\n                    .addClass(doSelect ? \\\"ui-selecting\\\" : \\\"ui-unselecting\\\");\\n                selectee.unselecting = !doSelect;\\n                selectee.selecting = doSelect;\\n                selectee.selected = doSelect;\\n                // selectable (UN)SELECTING callback\\n                if (doSelect) {\\n                    that._trigger(\\\"selecting\\\", event, {\\n                        selecting: selectee.element\\n                    });\\n                } else {\\n                    that._trigger(\\\"unselecting\\\", event, {\\n                        unselecting: selectee.element\\n                    });\\n                }\\n                return false;\\n            }\\n        });\\n\\n    },\\n\\n    _mouseDrag: function(event) {\\n\\n        this.dragged = true;\\n\\n        if (this.options.disabled) {\\n            return;\\n        }\\n\\n        var tmp,\\n            that = this,\\n            options = this.options,\\n            x1 = this.opos[0],\\n            y1 = this.opos[1],\\n            x2 = event.pageX,\\n            y2 = event.pageY;\\n\\n        if (x1 > x2) { tmp = x2; x2 = x1; x1 = tmp; }\\n        if (y1 > y2) { tmp = y2; y2 = y1; y1 = tmp; }\\n        this.helper.css({left: x1, top: y1, width: x2-x1, height: y2-y1});\\n\\n        this.selectees.each(function() {\\n            var selectee = $.data(this, \\\"selectable-item\\\"),\\n                hit = false;\\n\\n            //prevent helper from being selected if appendTo: selectable\\n            if (!selectee || selectee.element === that.element[0]) {\\n                return;\\n            }\\n\\n            if (options.tolerance === \\\"touch\\\") {\\n                hit = ( !(selectee.left > x2 || selectee.right < x1 || selectee.top > y2 || selectee.bottom < y1) );\\n            } else if (options.tolerance === \\\"fit\\\") {\\n                hit = (selectee.left > x1 && selectee.right < x2 && selectee.top > y1 && selectee.bottom < y2);\\n            }\\n\\n            if (hit) {\\n                // SELECT\\n                if (selectee.selected) {\\n                    selectee.$element.removeClass(\\\"ui-selected\\\");\\n                    selectee.selected = false;\\n                }\\n                if (selectee.unselecting) {\\n                    selectee.$element.removeClass(\\\"ui-unselecting\\\");\\n                    selectee.unselecting = false;\\n                }\\n                if (!selectee.selecting) {\\n                    selectee.$element.addClass(\\\"ui-selecting\\\");\\n                    selectee.selecting = true;\\n                    // selectable SELECTING callback\\n                    that._trigger(\\\"selecting\\\", event, {\\n                        selecting: selectee.element\\n                    });\\n                }\\n            } else {\\n                // UNSELECT\\n                if (selectee.selecting) {\\n                    if ((event.metaKey || event.ctrlKey) && selectee.startselected) {\\n                        selectee.$element.removeClass(\\\"ui-selecting\\\");\\n                        selectee.selecting = false;\\n                        selectee.$element.addClass(\\\"ui-selected\\\");\\n                        selectee.selected = true;\\n                    } else {\\n                        selectee.$element.removeClass(\\\"ui-selecting\\\");\\n                        selectee.selecting = false;\\n                        if (selectee.startselected) {\\n                            selectee.$element.addClass(\\\"ui-unselecting\\\");\\n                            selectee.unselecting = true;\\n                        }\\n                        // selectable UNSELECTING callback\\n                        that._trigger(\\\"unselecting\\\", event, {\\n                            unselecting: selectee.element\\n                        });\\n                    }\\n                }\\n                if (selectee.selected) {\\n                    if (!event.metaKey && !event.ctrlKey && !selectee.startselected) {\\n                        selectee.$element.removeClass(\\\"ui-selected\\\");\\n                        selectee.selected = false;\\n\\n                        selectee.$element.addClass(\\\"ui-unselecting\\\");\\n                        selectee.unselecting = true;\\n                        // selectable UNSELECTING callback\\n                        that._trigger(\\\"unselecting\\\", event, {\\n                            unselecting: selectee.element\\n                        });\\n                    }\\n                }\\n            }\\n        });\\n\\n        return false;\\n    },\\n\\n    _mouseStop: function(event) {\\n        var that = this;\\n\\n        this.dragged = false;\\n\\n        $(\\\".ui-unselecting\\\", this.element[0]).each(function() {\\n            var selectee = $.data(this, \\\"selectable-item\\\");\\n            selectee.$element.removeClass(\\\"ui-unselecting\\\");\\n            selectee.unselecting = false;\\n            selectee.startselected = false;\\n            that._trigger(\\\"unselected\\\", event, {\\n                unselected: selectee.element\\n            });\\n        });\\n        $(\\\".ui-selecting\\\", this.element[0]).each(function() {\\n            var selectee = $.data(this, \\\"selectable-item\\\");\\n            selectee.$element.removeClass(\\\"ui-selecting\\\").addClass(\\\"ui-selected\\\");\\n            selectee.selecting = false;\\n            selectee.selected = true;\\n            selectee.startselected = true;\\n            that._trigger(\\\"selected\\\", event, {\\n                selected: selectee.element\\n            });\\n        });\\n        this._trigger(\\\"stop\\\", event);\\n\\n        this.helper.remove();\\n\\n        return false;\\n    }\\n\\n});\\n\\n})(jQuery);\\n(function( $, undefined ) {\\n\\n// number of pages in a slider\\n// (how many times can you page up/down to go through the whole range)\\nvar numPages = 5;\\n\\n$.widget( \\\"ui.slider\\\", $.ui.mouse, {\\n    version: \\\"1.10.4\\\",\\n    widgetEventPrefix: \\\"slide\\\",\\n\\n    options: {\\n        animate: false,\\n        distance: 0,\\n        max: 100,\\n        min: 0,\\n        orientation: \\\"horizontal\\\",\\n        range: false,\\n        step: 1,\\n        value: 0,\\n        values: null,\\n\\n        // callbacks\\n        change: null,\\n        slide: null,\\n        start: null,\\n        stop: null\\n    },\\n\\n    _create: function() {\\n        this._keySliding = false;\\n        this._mouseSliding = false;\\n        this._animateOff = true;\\n        this._handleIndex = null;\\n        this._detectOrientation();\\n        this._mouseInit();\\n\\n        this.element\\n            .addClass( \\\"ui-slider\\\" +\\n                \\\" ui-slider-\\\" + this.orientation +\\n                \\\" ui-widget\\\" +\\n                \\\" ui-widget-content\\\" +\\n                \\\" ui-corner-all\\\");\\n\\n        this._refresh();\\n        this._setOption( \\\"disabled\\\", this.options.disabled );\\n\\n        this._animateOff = false;\\n    },\\n\\n    _refresh: function() {\\n        this._createRange();\\n        this._createHandles();\\n        this._setupEvents();\\n        this._refreshValue();\\n    },\\n\\n    _createHandles: function() {\\n        var i, handleCount,\\n            options = this.options,\\n            existingHandles = this.element.find( \\\".ui-slider-handle\\\" ).addClass( \\\"ui-state-default ui-corner-all\\\" ),\\n            handle = \\\"<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>\\\",\\n            handles = [];\\n\\n        handleCount = ( options.values && options.values.length ) || 1;\\n\\n        if ( existingHandles.length > handleCount ) {\\n            existingHandles.slice( handleCount ).remove();\\n            existingHandles = existingHandles.slice( 0, handleCount );\\n        }\\n\\n        for ( i = existingHandles.length; i < handleCount; i++ ) {\\n            handles.push( handle );\\n        }\\n\\n        this.handles = existingHandles.add( $( handles.join( \\\"\\\" ) ).appendTo( this.element ) );\\n\\n        this.handle = this.handles.eq( 0 );\\n\\n        this.handles.each(function( i ) {\\n            $( this ).data( \\\"ui-slider-handle-index\\\", i );\\n        });\\n    },\\n\\n    _createRange: function() {\\n        var options = this.options,\\n            classes = \\\"\\\";\\n\\n        if ( options.range ) {\\n            if ( options.range === true ) {\\n                if ( !options.values ) {\\n                    options.values = [ this._valueMin(), this._valueMin() ];\\n                } else if ( options.values.length && options.values.length !== 2 ) {\\n                    options.values = [ options.values[0], options.values[0] ];\\n                } else if ( $.isArray( options.values ) ) {\\n                    options.values = options.values.slice(0);\\n                }\\n            }\\n\\n            if ( !this.range || !this.range.length ) {\\n                this.range = $( \\\"<div></div>\\\" )\\n                    .appendTo( this.element );\\n\\n                classes = \\\"ui-slider-range\\\" +\\n                // note: this isn't the most fittingly semantic framework class for this element,\\n                // but worked best visually with a variety of themes\\n                \\\" ui-widget-header ui-corner-all\\\";\\n            } else {\\n                this.range.removeClass( \\\"ui-slider-range-min ui-slider-range-max\\\" )\\n                    // Handle range switching from true to min/max\\n                    .css({\\n                        \\\"left\\\": \\\"\\\",\\n                        \\\"bottom\\\": \\\"\\\"\\n                    });\\n            }\\n\\n            this.range.addClass( classes +\\n                ( ( options.range === \\\"min\\\" || options.range === \\\"max\\\" ) ? \\\" ui-slider-range-\\\" + options.range : \\\"\\\" ) );\\n        } else {\\n            if ( this.range ) {\\n                this.range.remove();\\n            }\\n            this.range = null;\\n        }\\n    },\\n\\n    _setupEvents: function() {\\n        var elements = this.handles.add( this.range ).filter( \\\"a\\\" );\\n        this._off( elements );\\n        this._on( elements, this._handleEvents );\\n        this._hoverable( elements );\\n        this._focusable( elements );\\n    },\\n\\n    _destroy: function() {\\n        this.handles.remove();\\n        if ( this.range ) {\\n            this.range.remove();\\n        }\\n\\n        this.element\\n            .removeClass( \\\"ui-slider\\\" +\\n                \\\" ui-slider-horizontal\\\" +\\n                \\\" ui-slider-vertical\\\" +\\n                \\\" ui-widget\\\" +\\n                \\\" ui-widget-content\\\" +\\n                \\\" ui-corner-all\\\" );\\n\\n        this._mouseDestroy();\\n    },\\n\\n    _mouseCapture: function( event ) {\\n        var position, normValue, distance, closestHandle, index, allowed, offset, mouseOverHandle,\\n            that = this,\\n            o = this.options;\\n\\n        if ( o.disabled ) {\\n            return false;\\n        }\\n\\n        this.elementSize = {\\n            width: this.element.outerWidth(),\\n            height: this.element.outerHeight()\\n        };\\n        this.elementOffset = this.element.offset();\\n\\n        position = { x: event.pageX, y: event.pageY };\\n        normValue = this._normValueFromMouse( position );\\n        distance = this._valueMax() - this._valueMin() + 1;\\n        this.handles.each(function( i ) {\\n            var thisDistance = Math.abs( normValue - that.values(i) );\\n            if (( distance > thisDistance ) ||\\n                ( distance === thisDistance &&\\n                    (i === that._lastChangedValue || that.values(i) === o.min ))) {\\n                distance = thisDistance;\\n                closestHandle = $( this );\\n                index = i;\\n            }\\n        });\\n\\n        allowed = this._start( event, index );\\n        if ( allowed === false ) {\\n            return false;\\n        }\\n        this._mouseSliding = true;\\n\\n        this._handleIndex = index;\\n\\n        closestHandle\\n            .addClass( \\\"ui-state-active\\\" )\\n            .focus();\\n\\n        offset = closestHandle.offset();\\n        mouseOverHandle = !$( event.target ).parents().addBack().is( \\\".ui-slider-handle\\\" );\\n        this._clickOffset = mouseOverHandle ? { left: 0, top: 0 } : {\\n            left: event.pageX - offset.left - ( closestHandle.width() / 2 ),\\n            top: event.pageY - offset.top -\\n                ( closestHandle.height() / 2 ) -\\n                ( parseInt( closestHandle.css(\\\"borderTopWidth\\\"), 10 ) || 0 ) -\\n                ( parseInt( closestHandle.css(\\\"borderBottomWidth\\\"), 10 ) || 0) +\\n                ( parseInt( closestHandle.css(\\\"marginTop\\\"), 10 ) || 0)\\n        };\\n\\n        if ( !this.handles.hasClass( \\\"ui-state-hover\\\" ) ) {\\n            this._slide( event, index, normValue );\\n        }\\n        this._animateOff = true;\\n        return true;\\n    },\\n\\n    _mouseStart: function() {\\n        return true;\\n    },\\n\\n    _mouseDrag: function( event ) {\\n        var position = { x: event.pageX, y: event.pageY },\\n            normValue = this._normValueFromMouse( position );\\n\\n        this._slide( event, this._handleIndex, normValue );\\n\\n        return false;\\n    },\\n\\n    _mouseStop: function( event ) {\\n        this.handles.removeClass( \\\"ui-state-active\\\" );\\n        this._mouseSliding = false;\\n\\n        this._stop( event, this._handleIndex );\\n        this._change( event, this._handleIndex );\\n\\n        this._handleIndex = null;\\n        this._clickOffset = null;\\n        this._animateOff = false;\\n\\n        return false;\\n    },\\n\\n    _detectOrientation: function() {\\n        this.orientation = ( this.options.orientation === \\\"vertical\\\" ) ? \\\"vertical\\\" : \\\"horizontal\\\";\\n    },\\n\\n    _normValueFromMouse: function( position ) {\\n        var pixelTotal,\\n            pixelMouse,\\n            percentMouse,\\n            valueTotal,\\n            valueMouse;\\n\\n        if ( this.orientation === \\\"horizontal\\\" ) {\\n            pixelTotal = this.elementSize.width;\\n            pixelMouse = position.x - this.elementOffset.left - ( this._clickOffset ? this._clickOffset.left : 0 );\\n        } else {\\n            pixelTotal = this.elementSize.height;\\n            pixelMouse = position.y - this.elementOffset.top - ( this._clickOffset ? this._clickOffset.top : 0 );\\n        }\\n\\n        percentMouse = ( pixelMouse / pixelTotal );\\n        if ( percentMouse > 1 ) {\\n            percentMouse = 1;\\n        }\\n        if ( percentMouse < 0 ) {\\n            percentMouse = 0;\\n        }\\n        if ( this.orientation === \\\"vertical\\\" ) {\\n            percentMouse = 1 - percentMouse;\\n        }\\n\\n        valueTotal = this._valueMax() - this._valueMin();\\n        valueMouse = this._valueMin() + percentMouse * valueTotal;\\n\\n        return this._trimAlignValue( valueMouse );\\n    },\\n\\n    _start: function( event, index ) {\\n        var uiHash = {\\n            handle: this.handles[ index ],\\n            value: this.value()\\n        };\\n        if ( this.options.values && this.options.values.length ) {\\n            uiHash.value = this.values( index );\\n            uiHash.values = this.values();\\n        }\\n        return this._trigger( \\\"start\\\", event, uiHash );\\n    },\\n\\n    _slide: function( event, index, newVal ) {\\n        var otherVal,\\n            newValues,\\n            allowed;\\n\\n        if ( this.options.values && this.options.values.length ) {\\n            otherVal = this.values( index ? 0 : 1 );\\n\\n            if ( ( this.options.values.length === 2 && this.options.range === true ) &&\\n                    ( ( index === 0 && newVal > otherVal) || ( index === 1 && newVal < otherVal ) )\\n                ) {\\n                newVal = otherVal;\\n            }\\n\\n            if ( newVal !== this.values( index ) ) {\\n                newValues = this.values();\\n                newValues[ index ] = newVal;\\n                // A slide can be canceled by returning false from the slide callback\\n                allowed = this._trigger( \\\"slide\\\", event, {\\n                    handle: this.handles[ index ],\\n                    value: newVal,\\n                    values: newValues\\n                } );\\n                otherVal = this.values( index ? 0 : 1 );\\n                if ( allowed !== false ) {\\n                    this.values( index, newVal );\\n                }\\n            }\\n        } else {\\n            if ( newVal !== this.value() ) {\\n                // A slide can be canceled by returning false from the slide callback\\n                allowed = this._trigger( \\\"slide\\\", event, {\\n                    handle: this.handles[ index ],\\n                    value: newVal\\n                } );\\n                if ( allowed !== false ) {\\n                    this.value( newVal );\\n                }\\n            }\\n        }\\n    },\\n\\n    _stop: function( event, index ) {\\n        var uiHash = {\\n            handle: this.handles[ index ],\\n            value: this.value()\\n        };\\n        if ( this.options.values && this.options.values.length ) {\\n            uiHash.value = this.values( index );\\n            uiHash.values = this.values();\\n        }\\n\\n        this._trigger( \\\"stop\\\", event, uiHash );\\n    },\\n\\n    _change: function( event, index ) {\\n        if ( !this._keySliding && !this._mouseSliding ) {\\n            var uiHash = {\\n                handle: this.handles[ index ],\\n                value: this.value()\\n            };\\n            if ( this.options.values && this.options.values.length ) {\\n                uiHash.value = this.values( index );\\n                uiHash.values = this.values();\\n            }\\n\\n            //store the last changed value index for reference when handles overlap\\n            this._lastChangedValue = index;\\n\\n            this._trigger( \\\"change\\\", event, uiHash );\\n        }\\n    },\\n\\n    value: function( newValue ) {\\n        if ( arguments.length ) {\\n            this.options.value = this._trimAlignValue( newValue );\\n            this._refreshValue();\\n            this._change( null, 0 );\\n            return;\\n        }\\n\\n        return this._value();\\n    },\\n\\n    values: function( index, newValue ) {\\n        var vals,\\n            newValues,\\n            i;\\n\\n        if ( arguments.length > 1 ) {\\n            this.options.values[ index ] = this._trimAlignValue( newValue );\\n            this._refreshValue();\\n            this._change( null, index );\\n            return;\\n        }\\n\\n        if ( arguments.length ) {\\n            if ( $.isArray( arguments[ 0 ] ) ) {\\n                vals = this.options.values;\\n                newValues = arguments[ 0 ];\\n                for ( i = 0; i < vals.length; i += 1 ) {\\n                    vals[ i ] = this._trimAlignValue( newValues[ i ] );\\n                    this._change( null, i );\\n                }\\n                this._refreshValue();\\n            } else {\\n                if ( this.options.values && this.options.values.length ) {\\n                    return this._values( index );\\n                } else {\\n                    return this.value();\\n                }\\n            }\\n        } else {\\n            return this._values();\\n        }\\n    },\\n\\n    _setOption: function( key, value ) {\\n        var i,\\n            valsLength = 0;\\n\\n        if ( key === \\\"range\\\" && this.options.range === true ) {\\n            if ( value === \\\"min\\\" ) {\\n                this.options.value = this._values( 0 );\\n                this.options.values = null;\\n            } else if ( value === \\\"max\\\" ) {\\n                this.options.value = this._values( this.options.values.length-1 );\\n                this.options.values = null;\\n            }\\n        }\\n\\n        if ( $.isArray( this.options.values ) ) {\\n            valsLength = this.options.values.length;\\n        }\\n\\n        $.Widget.prototype._setOption.apply( this, arguments );\\n\\n        switch ( key ) {\\n            case \\\"orientation\\\":\\n                this._detectOrientation();\\n                this.element\\n                    .removeClass( \\\"ui-slider-horizontal ui-slider-vertical\\\" )\\n                    .addClass( \\\"ui-slider-\\\" + this.orientation );\\n                this._refreshValue();\\n                break;\\n            case \\\"value\\\":\\n                this._animateOff = true;\\n                this._refreshValue();\\n                this._change( null, 0 );\\n                this._animateOff = false;\\n                break;\\n            case \\\"values\\\":\\n                this._animateOff = true;\\n                this._refreshValue();\\n                for ( i = 0; i < valsLength; i += 1 ) {\\n                    this._change( null, i );\\n                }\\n                this._animateOff = false;\\n                break;\\n            case \\\"min\\\":\\n            case \\\"max\\\":\\n                this._animateOff = true;\\n                this._refreshValue();\\n                this._animateOff = false;\\n                break;\\n            case \\\"range\\\":\\n                this._animateOff = true;\\n                this._refresh();\\n                this._animateOff = false;\\n                break;\\n        }\\n    },\\n\\n    //internal value getter\\n    // _value() returns value trimmed by min and max, aligned by step\\n    _value: function() {\\n        var val = this.options.value;\\n        val = this._trimAlignValue( val );\\n\\n        return val;\\n    },\\n\\n    //internal values getter\\n    // _values() returns array of values trimmed by min and max, aligned by step\\n    // _values( index ) returns single value trimmed by min and max, aligned by step\\n    _values: function( index ) {\\n        var val,\\n            vals,\\n            i;\\n\\n        if ( arguments.length ) {\\n            val = this.options.values[ index ];\\n            val = this._trimAlignValue( val );\\n\\n            return val;\\n        } else if ( this.options.values && this.options.values.length ) {\\n            // .slice() creates a copy of the array\\n            // this copy gets trimmed by min and max and then returned\\n            vals = this.options.values.slice();\\n            for ( i = 0; i < vals.length; i+= 1) {\\n                vals[ i ] = this._trimAlignValue( vals[ i ] );\\n            }\\n\\n            return vals;\\n        } else {\\n            return [];\\n        }\\n    },\\n\\n    // returns the step-aligned value that val is closest to, between (inclusive) min and max\\n    _trimAlignValue: function( val ) {\\n        if ( val <= this._valueMin() ) {\\n            return this._valueMin();\\n        }\\n        if ( val >= this._valueMax() ) {\\n            return this._valueMax();\\n        }\\n        var step = ( this.options.step > 0 ) ? this.options.step : 1,\\n            valModStep = (val - this._valueMin()) % step,\\n            alignValue = val - valModStep;\\n\\n        if ( Math.abs(valModStep) * 2 >= step ) {\\n            alignValue += ( valModStep > 0 ) ? step : ( -step );\\n        }\\n\\n        // Since JavaScript has problems with large floats, round\\n        // the final value to 5 digits after the decimal point (see #4124)\\n        return parseFloat( alignValue.toFixed(5) );\\n    },\\n\\n    _valueMin: function() {\\n        return this.options.min;\\n    },\\n\\n    _valueMax: function() {\\n        return this.options.max;\\n    },\\n\\n    _refreshValue: function() {\\n        var lastValPercent, valPercent, value, valueMin, valueMax,\\n            oRange = this.options.range,\\n            o = this.options,\\n            that = this,\\n            animate = ( !this._animateOff ) ? o.animate : false,\\n            _set = {};\\n\\n        if ( this.options.values && this.options.values.length ) {\\n            this.handles.each(function( i ) {\\n                valPercent = ( that.values(i) - that._valueMin() ) / ( that._valueMax() - that._valueMin() ) * 100;\\n                _set[ that.orientation === \\\"horizontal\\\" ? \\\"left\\\" : \\\"bottom\\\" ] = valPercent + \\\"%\\\";\\n                $( this ).stop( 1, 1 )[ animate ? \\\"animate\\\" : \\\"css\\\" ]( _set, o.animate );\\n                if ( that.options.range === true ) {\\n                    if ( that.orientation === \\\"horizontal\\\" ) {\\n                        if ( i === 0 ) {\\n                            that.range.stop( 1, 1 )[ animate ? \\\"animate\\\" : \\\"css\\\" ]( { left: valPercent + \\\"%\\\" }, o.animate );\\n                        }\\n                        if ( i === 1 ) {\\n                            that.range[ animate ? \\\"animate\\\" : \\\"css\\\" ]( { width: ( valPercent - lastValPercent ) + \\\"%\\\" }, { queue: false, duration: o.animate } );\\n                        }\\n                    } else {\\n                        if ( i === 0 ) {\\n                            that.range.stop( 1, 1 )[ animate ? \\\"animate\\\" : \\\"css\\\" ]( { bottom: ( valPercent ) + \\\"%\\\" }, o.animate );\\n                        }\\n                        if ( i === 1 ) {\\n                            that.range[ animate ? \\\"animate\\\" : \\\"css\\\" ]( { height: ( valPercent - lastValPercent ) + \\\"%\\\" }, { queue: false, duration: o.animate } );\\n                        }\\n                    }\\n                }\\n                lastValPercent = valPercent;\\n            });\\n        } else {\\n            value = this.value();\\n            valueMin = this._valueMin();\\n            valueMax = this._valueMax();\\n            valPercent = ( valueMax !== valueMin ) ?\\n                    ( value - valueMin ) / ( valueMax - valueMin ) * 100 :\\n                    0;\\n            _set[ this.orientation === \\\"horizontal\\\" ? \\\"left\\\" : \\\"bottom\\\" ] = valPercent + \\\"%\\\";\\n            this.handle.stop( 1, 1 )[ animate ? \\\"animate\\\" : \\\"css\\\" ]( _set, o.animate );\\n\\n            if ( oRange === \\\"min\\\" && this.orientation === \\\"horizontal\\\" ) {\\n                this.range.stop( 1, 1 )[ animate ? \\\"animate\\\" : \\\"css\\\" ]( { width: valPercent + \\\"%\\\" }, o.animate );\\n            }\\n            if ( oRange === \\\"max\\\" && this.orientation === \\\"horizontal\\\" ) {\\n                this.range[ animate ? \\\"animate\\\" : \\\"css\\\" ]( { width: ( 100 - valPercent ) + \\\"%\\\" }, { queue: false, duration: o.animate } );\\n            }\\n            if ( oRange === \\\"min\\\" && this.orientation === \\\"vertical\\\" ) {\\n                this.range.stop( 1, 1 )[ animate ? \\\"animate\\\" : \\\"css\\\" ]( { height: valPercent + \\\"%\\\" }, o.animate );\\n            }\\n            if ( oRange === \\\"max\\\" && this.orientation === \\\"vertical\\\" ) {\\n                this.range[ animate ? \\\"animate\\\" : \\\"css\\\" ]( { height: ( 100 - valPercent ) + \\\"%\\\" }, { queue: false, duration: o.animate } );\\n            }\\n        }\\n    },\\n\\n    _handleEvents: {\\n        keydown: function( event ) {\\n            var allowed, curVal, newVal, step,\\n                index = $( event.target ).data( \\\"ui-slider-handle-index\\\" );\\n\\n            switch ( event.keyCode ) {\\n                case $.ui.keyCode.HOME:\\n                case $.ui.keyCode.END:\\n                case $.ui.keyCode.PAGE_UP:\\n                case $.ui.keyCode.PAGE_DOWN:\\n                case $.ui.keyCode.UP:\\n                case $.ui.keyCode.RIGHT:\\n                case $.ui.keyCode.DOWN:\\n                case $.ui.keyCode.LEFT:\\n                    event.preventDefault();\\n                    if ( !this._keySliding ) {\\n                        this._keySliding = true;\\n                        $( event.target ).addClass( \\\"ui-state-active\\\" );\\n                        allowed = this._start( event, index );\\n                        if ( allowed === false ) {\\n                            return;\\n                        }\\n                    }\\n                    break;\\n            }\\n\\n            step = this.options.step;\\n            if ( this.options.values && this.options.values.length ) {\\n                curVal = newVal = this.values( index );\\n            } else {\\n                curVal = newVal = this.value();\\n            }\\n\\n            switch ( event.keyCode ) {\\n                case $.ui.keyCode.HOME:\\n                    newVal = this._valueMin();\\n                    break;\\n                case $.ui.keyCode.END:\\n                    newVal = this._valueMax();\\n                    break;\\n                case $.ui.keyCode.PAGE_UP:\\n                    newVal = this._trimAlignValue( curVal + ( (this._valueMax() - this._valueMin()) / numPages ) );\\n                    break;\\n                case $.ui.keyCode.PAGE_DOWN:\\n                    newVal = this._trimAlignValue( curVal - ( (this._valueMax() - this._valueMin()) / numPages ) );\\n                    break;\\n                case $.ui.keyCode.UP:\\n                case $.ui.keyCode.RIGHT:\\n                    if ( curVal === this._valueMax() ) {\\n                        return;\\n                    }\\n                    newVal = this._trimAlignValue( curVal + step );\\n                    break;\\n                case $.ui.keyCode.DOWN:\\n                case $.ui.keyCode.LEFT:\\n                    if ( curVal === this._valueMin() ) {\\n                        return;\\n                    }\\n                    newVal = this._trimAlignValue( curVal - step );\\n                    break;\\n            }\\n\\n            this._slide( event, index, newVal );\\n        },\\n        click: function( event ) {\\n            event.preventDefault();\\n        },\\n        keyup: function( event ) {\\n            var index = $( event.target ).data( \\\"ui-slider-handle-index\\\" );\\n\\n            if ( this._keySliding ) {\\n                this._keySliding = false;\\n                this._stop( event, index );\\n                this._change( event, index );\\n                $( event.target ).removeClass( \\\"ui-state-active\\\" );\\n            }\\n        }\\n    }\\n\\n});\\n\\n}(jQuery));\\n(function( $, undefined ) {\\n\\nfunction isOverAxis( x, reference, size ) {\\n    return ( x > reference ) && ( x < ( reference + size ) );\\n}\\n\\nfunction isFloating(item) {\\n    return (/left|right/).test(item.css(\\\"float\\\")) || (/inline|table-cell/).test(item.css(\\\"display\\\"));\\n}\\n\\n$.widget(\\\"ui.sortable\\\", $.ui.mouse, {\\n    version: \\\"1.10.4\\\",\\n    widgetEventPrefix: \\\"sort\\\",\\n    ready: false,\\n    options: {\\n        appendTo: \\\"parent\\\",\\n        axis: false,\\n        connectWith: false,\\n        containment: false,\\n        cursor: \\\"auto\\\",\\n        cursorAt: false,\\n        dropOnEmpty: true,\\n        forcePlaceholderSize: false,\\n        forceHelperSize: false,\\n        grid: false,\\n        handle: false,\\n        helper: \\\"original\\\",\\n        items: \\\"> *\\\",\\n        opacity: false,\\n        placeholder: false,\\n        revert: false,\\n        scroll: true,\\n        scrollSensitivity: 20,\\n        scrollSpeed: 20,\\n        scope: \\\"default\\\",\\n        tolerance: \\\"intersect\\\",\\n        zIndex: 1000,\\n\\n        // callbacks\\n        activate: null,\\n        beforeStop: null,\\n        change: null,\\n        deactivate: null,\\n        out: null,\\n        over: null,\\n        receive: null,\\n        remove: null,\\n        sort: null,\\n        start: null,\\n        stop: null,\\n        update: null\\n    },\\n    _create: function() {\\n\\n        var o = this.options;\\n        this.containerCache = {};\\n        this.element.addClass(\\\"ui-sortable\\\");\\n\\n        //Get the items\\n        this.refresh();\\n\\n        //Let's determine if the items are being displayed horizontally\\n        this.floating = this.items.length ? o.axis === \\\"x\\\" || isFloating(this.items[0].item) : false;\\n\\n        //Let's determine the parent's offset\\n        this.offset = this.element.offset();\\n\\n        //Initialize mouse events for interaction\\n        this._mouseInit();\\n\\n        //We're ready to go\\n        this.ready = true;\\n\\n    },\\n\\n    _destroy: function() {\\n        this.element\\n            .removeClass(\\\"ui-sortable ui-sortable-disabled\\\");\\n        this._mouseDestroy();\\n\\n        for ( var i = this.items.length - 1; i >= 0; i-- ) {\\n            this.items[i].item.removeData(this.widgetName + \\\"-item\\\");\\n        }\\n\\n        return this;\\n    },\\n\\n    _setOption: function(key, value){\\n        if ( key === \\\"disabled\\\" ) {\\n            this.options[ key ] = value;\\n\\n            this.widget().toggleClass( \\\"ui-sortable-disabled\\\", !!value );\\n        } else {\\n            // Don't call widget base _setOption for disable as it adds ui-state-disabled class\\n            $.Widget.prototype._setOption.apply(this, arguments);\\n        }\\n    },\\n\\n    _mouseCapture: function(event, overrideHandle) {\\n        var currentItem = null,\\n            validHandle = false,\\n            that = this;\\n\\n        if (this.reverting) {\\n            return false;\\n        }\\n\\n        if(this.options.disabled || this.options.type === \\\"static\\\") {\\n            return false;\\n        }\\n\\n        //We have to refresh the items data once first\\n        this._refreshItems(event);\\n\\n        //Find out if the clicked node (or one of its parents) is a actual item in this.items\\n        $(event.target).parents().each(function() {\\n            if($.data(this, that.widgetName + \\\"-item\\\") === that) {\\n                currentItem = $(this);\\n                return false;\\n            }\\n        });\\n        if($.data(event.target, that.widgetName + \\\"-item\\\") === that) {\\n            currentItem = $(event.target);\\n        }\\n\\n        if(!currentItem) {\\n            return false;\\n        }\\n        if(this.options.handle && !overrideHandle) {\\n            $(this.options.handle, currentItem).find(\\\"*\\\").addBack().each(function() {\\n                if(this === event.target) {\\n                    validHandle = true;\\n                }\\n            });\\n            if(!validHandle) {\\n                return false;\\n            }\\n        }\\n\\n        this.currentItem = currentItem;\\n        this._removeCurrentsFromItems();\\n        return true;\\n\\n    },\\n\\n    _mouseStart: function(event, overrideHandle, noActivation) {\\n\\n        var i, body,\\n            o = this.options;\\n\\n        this.currentContainer = this;\\n\\n        //We only need to call refreshPositions, because the refreshItems call has been moved to mouseCapture\\n        this.refreshPositions();\\n\\n        //Create and append the visible helper\\n        this.helper = this._createHelper(event);\\n\\n        //Cache the helper size\\n        this._cacheHelperProportions();\\n\\n        /*\\n         * - Position generation -\\n         * This block generates everything position related - it's the core of draggables.\\n         */\\n\\n        //Cache the margins of the original element\\n        this._cacheMargins();\\n\\n        //Get the next scrolling parent\\n        this.scrollParent = this.helper.scrollParent();\\n\\n        //The element's absolute position on the page minus margins\\n        this.offset = this.currentItem.offset();\\n        this.offset = {\\n            top: this.offset.top - this.margins.top,\\n            left: this.offset.left - this.margins.left\\n        };\\n\\n        $.extend(this.offset, {\\n            click: { //Where the click happened, relative to the element\\n                left: event.pageX - this.offset.left,\\n                top: event.pageY - this.offset.top\\n            },\\n            parent: this._getParentOffset(),\\n            relative: this._getRelativeOffset() //This is a relative to absolute position minus the actual position calculation - only used for relative positioned helper\\n        });\\n\\n        // Only after we got the offset, we can change the helper's position to absolute\\n        // TODO: Still need to figure out a way to make relative sorting possible\\n        this.helper.css(\\\"position\\\", \\\"absolute\\\");\\n        this.cssPosition = this.helper.css(\\\"position\\\");\\n\\n        //Generate the original position\\n        this.originalPosition = this._generatePosition(event);\\n        this.originalPageX = event.pageX;\\n        this.originalPageY = event.pageY;\\n\\n        //Adjust the mouse offset relative to the helper if \\\"cursorAt\\\" is supplied\\n        (o.cursorAt && this._adjustOffsetFromHelper(o.cursorAt));\\n\\n        //Cache the former DOM position\\n        this.domPosition = { prev: this.currentItem.prev()[0], parent: this.currentItem.parent()[0] };\\n\\n        //If the helper is not the original, hide the original so it's not playing any role during the drag, won't cause anything bad this way\\n        if(this.helper[0] !== this.currentItem[0]) {\\n            this.currentItem.hide();\\n        }\\n\\n        //Create the placeholder\\n        this._createPlaceholder();\\n\\n        //Set a containment if given in the options\\n        if(o.containment) {\\n            this._setContainment();\\n        }\\n\\n        if( o.cursor && o.cursor !== \\\"auto\\\" ) { // cursor option\\n            body = this.document.find( \\\"body\\\" );\\n\\n            // support: IE\\n            this.storedCursor = body.css( \\\"cursor\\\" );\\n            body.css( \\\"cursor\\\", o.cursor );\\n\\n            this.storedStylesheet = $( \\\"<style>*{ cursor: \\\"+o.cursor+\\\" !important; }</style>\\\" ).appendTo( body );\\n        }\\n\\n        if(o.opacity) { // opacity option\\n            if (this.helper.css(\\\"opacity\\\")) {\\n                this._storedOpacity = this.helper.css(\\\"opacity\\\");\\n            }\\n            this.helper.css(\\\"opacity\\\", o.opacity);\\n        }\\n\\n        if(o.zIndex) { // zIndex option\\n            if (this.helper.css(\\\"zIndex\\\")) {\\n                this._storedZIndex = this.helper.css(\\\"zIndex\\\");\\n            }\\n            this.helper.css(\\\"zIndex\\\", o.zIndex);\\n        }\\n\\n        //Prepare scrolling\\n        if(this.scrollParent[0] !== document && this.scrollParent[0].tagName !== \\\"HTML\\\") {\\n            this.overflowOffset = this.scrollParent.offset();\\n        }\\n\\n        //Call callbacks\\n        this._trigger(\\\"start\\\", event, this._uiHash());\\n\\n        //Recache the helper size\\n        if(!this._preserveHelperProportions) {\\n            this._cacheHelperProportions();\\n        }\\n\\n\\n        //Post \\\"activate\\\" events to possible containers\\n        if( !noActivation ) {\\n            for ( i = this.containers.length - 1; i >= 0; i-- ) {\\n                this.containers[ i ]._trigger( \\\"activate\\\", event, this._uiHash( this ) );\\n            }\\n        }\\n\\n        //Prepare possible droppables\\n        if($.ui.ddmanager) {\\n            $.ui.ddmanager.current = this;\\n        }\\n\\n        if ($.ui.ddmanager && !o.dropBehaviour) {\\n            $.ui.ddmanager.prepareOffsets(this, event);\\n        }\\n\\n        this.dragging = true;\\n\\n        this.helper.addClass(\\\"ui-sortable-helper\\\");\\n        this._mouseDrag(event); //Execute the drag once - this causes the helper not to be visible before getting its correct position\\n        return true;\\n\\n    },\\n\\n    _mouseDrag: function(event) {\\n        var i, item, itemElement, intersection,\\n            o = this.options,\\n            scrolled = false;\\n\\n        //Compute the helpers position\\n        this.position = this._generatePosition(event);\\n        this.positionAbs = this._convertPositionTo(\\\"absolute\\\");\\n\\n        if (!this.lastPositionAbs) {\\n            this.lastPositionAbs = this.positionAbs;\\n        }\\n\\n        //Do scrolling\\n        if(this.options.scroll) {\\n            if(this.scrollParent[0] !== document && this.scrollParent[0].tagName !== \\\"HTML\\\") {\\n\\n                if((this.overflowOffset.top + this.scrollParent[0].offsetHeight) - event.pageY < o.scrollSensitivity) {\\n                    this.scrollParent[0].scrollTop = scrolled = this.scrollParent[0].scrollTop + o.scrollSpeed;\\n                } else if(event.pageY - this.overflowOffset.top < o.scrollSensitivity) {\\n                    this.scrollParent[0].scrollTop = scrolled = this.scrollParent[0].scrollTop - o.scrollSpeed;\\n                }\\n\\n                if((this.overflowOffset.left + this.scrollParent[0].offsetWidth) - event.pageX < o.scrollSensitivity) {\\n                    this.scrollParent[0].scrollLeft = scrolled = this.scrollParent[0].scrollLeft + o.scrollSpeed;\\n                } else if(event.pageX - this.overflowOffset.left < o.scrollSensitivity) {\\n                    this.scrollParent[0].scrollLeft = scrolled = this.scrollParent[0].scrollLeft - o.scrollSpeed;\\n                }\\n\\n            } else {\\n\\n                if(event.pageY - $(document).scrollTop() < o.scrollSensitivity) {\\n                    scrolled = $(document).scrollTop($(document).scrollTop() - o.scrollSpeed);\\n                } else if($(window).height() - (event.pageY - $(document).scrollTop()) < o.scrollSensitivity) {\\n                    scrolled = $(document).scrollTop($(document).scrollTop() + o.scrollSpeed);\\n                }\\n\\n                if(event.pageX - $(document).scrollLeft() < o.scrollSensitivity) {\\n                    scrolled = $(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed);\\n                } else if($(window).width() - (event.pageX - $(document).scrollLeft()) < o.scrollSensitivity) {\\n                    scrolled = $(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed);\\n                }\\n\\n            }\\n\\n            if(scrolled !== false && $.ui.ddmanager && !o.dropBehaviour) {\\n                $.ui.ddmanager.prepareOffsets(this, event);\\n            }\\n        }\\n\\n        //Regenerate the absolute position used for position checks\\n        this.positionAbs = this._convertPositionTo(\\\"absolute\\\");\\n\\n        //Set the helper position\\n        if(!this.options.axis || this.options.axis !== \\\"y\\\") {\\n            this.helper[0].style.left = this.position.left+\\\"px\\\";\\n        }\\n        if(!this.options.axis || this.options.axis !== \\\"x\\\") {\\n            this.helper[0].style.top = this.position.top+\\\"px\\\";\\n        }\\n\\n        //Rearrange\\n        for (i = this.items.length - 1; i >= 0; i--) {\\n\\n            //Cache variables and intersection, continue if no intersection\\n            item = this.items[i];\\n            itemElement = item.item[0];\\n            intersection = this._intersectsWithPointer(item);\\n            if (!intersection) {\\n                continue;\\n            }\\n\\n            // Only put the placeholder inside the current Container, skip all\\n            // items from other containers. This works because when moving\\n            // an item from one container to another the\\n            // currentContainer is switched before the placeholder is moved.\\n            //\\n            // Without this, moving items in \\\"sub-sortables\\\" can cause\\n            // the placeholder to jitter beetween the outer and inner container.\\n            if (item.instance !== this.currentContainer) {\\n                continue;\\n            }\\n\\n            // cannot intersect with itself\\n            // no useless actions that have been done before\\n            // no action if the item moved is the parent of the item checked\\n            if (itemElement !== this.currentItem[0] &&\\n                this.placeholder[intersection === 1 ? \\\"next\\\" : \\\"prev\\\"]()[0] !== itemElement &&\\n                !$.contains(this.placeholder[0], itemElement) &&\\n                (this.options.type === \\\"semi-dynamic\\\" ? !$.contains(this.element[0], itemElement) : true)\\n            ) {\\n\\n                this.direction = intersection === 1 ? \\\"down\\\" : \\\"up\\\";\\n\\n                if (this.options.tolerance === \\\"pointer\\\" || this._intersectsWithSides(item)) {\\n                    this._rearrange(event, item);\\n                } else {\\n                    break;\\n                }\\n\\n                this._trigger(\\\"change\\\", event, this._uiHash());\\n                break;\\n            }\\n        }\\n\\n        //Post events to containers\\n        this._contactContainers(event);\\n\\n        //Interconnect with droppables\\n        if($.ui.ddmanager) {\\n            $.ui.ddmanager.drag(this, event);\\n        }\\n\\n        //Call callbacks\\n        this._trigger(\\\"sort\\\", event, this._uiHash());\\n\\n        this.lastPositionAbs = this.positionAbs;\\n        return false;\\n\\n    },\\n\\n    _mouseStop: function(event, noPropagation) {\\n\\n        if(!event) {\\n            return;\\n        }\\n\\n        //If we are using droppables, inform the manager about the drop\\n        if ($.ui.ddmanager && !this.options.dropBehaviour) {\\n            $.ui.ddmanager.drop(this, event);\\n        }\\n\\n        if(this.options.revert) {\\n            var that = this,\\n                cur = this.placeholder.offset(),\\n                axis = this.options.axis,\\n                animation = {};\\n\\n            if ( !axis || axis === \\\"x\\\" ) {\\n                animation.left = cur.left - this.offset.parent.left - this.margins.left + (this.offsetParent[0] === document.body ? 0 : this.offsetParent[0].scrollLeft);\\n            }\\n            if ( !axis || axis === \\\"y\\\" ) {\\n                animation.top = cur.top - this.offset.parent.top - this.margins.top + (this.offsetParent[0] === document.body ? 0 : this.offsetParent[0].scrollTop);\\n            }\\n            this.reverting = true;\\n            $(this.helper).animate( animation, parseInt(this.options.revert, 10) || 500, function() {\\n                that._clear(event);\\n            });\\n        } else {\\n            this._clear(event, noPropagation);\\n        }\\n\\n        return false;\\n\\n    },\\n\\n    cancel: function() {\\n\\n        if(this.dragging) {\\n\\n            this._mouseUp({ target: null });\\n\\n            if(this.options.helper === \\\"original\\\") {\\n                this.currentItem.css(this._storedCSS).removeClass(\\\"ui-sortable-helper\\\");\\n            } else {\\n                this.currentItem.show();\\n            }\\n\\n            //Post deactivating events to containers\\n            for (var i = this.containers.length - 1; i >= 0; i--){\\n                this.containers[i]._trigger(\\\"deactivate\\\", null, this._uiHash(this));\\n                if(this.containers[i].containerCache.over) {\\n                    this.containers[i]._trigger(\\\"out\\\", null, this._uiHash(this));\\n                    this.containers[i].containerCache.over = 0;\\n                }\\n            }\\n\\n        }\\n\\n        if (this.placeholder) {\\n            //$(this.placeholder[0]).remove(); would have been the jQuery way - unfortunately, it unbinds ALL events from the original node!\\n            if(this.placeholder[0].parentNode) {\\n                this.placeholder[0].parentNode.removeChild(this.placeholder[0]);\\n            }\\n            if(this.options.helper !== \\\"original\\\" && this.helper && this.helper[0].parentNode) {\\n                this.helper.remove();\\n            }\\n\\n            $.extend(this, {\\n                helper: null,\\n                dragging: false,\\n                reverting: false,\\n                _noFinalSort: null\\n            });\\n\\n            if(this.domPosition.prev) {\\n                $(this.domPosition.prev).after(this.currentItem);\\n            } else {\\n                $(this.domPosition.parent).prepend(this.currentItem);\\n            }\\n        }\\n\\n        return this;\\n\\n    },\\n\\n    serialize: function(o) {\\n\\n        var items = this._getItemsAsjQuery(o && o.connected),\\n            str = [];\\n        o = o || {};\\n\\n        $(items).each(function() {\\n            var res = ($(o.item || this).attr(o.attribute || \\\"id\\\") || \\\"\\\").match(o.expression || (/(.+)[\\\\-=_](.+)/));\\n            if (res) {\\n                str.push((o.key || res[1]+\\\"[]\\\")+\\\"=\\\"+(o.key && o.expression ? res[1] : res[2]));\\n            }\\n        });\\n\\n        if(!str.length && o.key) {\\n            str.push(o.key + \\\"=\\\");\\n        }\\n\\n        return str.join(\\\"&\\\");\\n\\n    },\\n\\n    toArray: function(o) {\\n\\n        var items = this._getItemsAsjQuery(o && o.connected),\\n            ret = [];\\n\\n        o = o || {};\\n\\n        items.each(function() { ret.push($(o.item || this).attr(o.attribute || \\\"id\\\") || \\\"\\\"); });\\n        return ret;\\n\\n    },\\n\\n    /* Be careful with the following core functions */\\n    _intersectsWith: function(item) {\\n\\n        var x1 = this.positionAbs.left,\\n            x2 = x1 + this.helperProportions.width,\\n            y1 = this.positionAbs.top,\\n            y2 = y1 + this.helperProportions.height,\\n            l = item.left,\\n            r = l + item.width,\\n            t = item.top,\\n            b = t + item.height,\\n            dyClick = this.offset.click.top,\\n            dxClick = this.offset.click.left,\\n            isOverElementHeight = ( this.options.axis === \\\"x\\\" ) || ( ( y1 + dyClick ) > t && ( y1 + dyClick ) < b ),\\n            isOverElementWidth = ( this.options.axis === \\\"y\\\" ) || ( ( x1 + dxClick ) > l && ( x1 + dxClick ) < r ),\\n            isOverElement = isOverElementHeight && isOverElementWidth;\\n\\n        if ( this.options.tolerance === \\\"pointer\\\" ||\\n            this.options.forcePointerForContainers ||\\n            (this.options.tolerance !== \\\"pointer\\\" && this.helperProportions[this.floating ? \\\"width\\\" : \\\"height\\\"] > item[this.floating ? \\\"width\\\" : \\\"height\\\"])\\n        ) {\\n            return isOverElement;\\n        } else {\\n\\n            return (l < x1 + (this.helperProportions.width / 2) && // Right Half\\n                x2 - (this.helperProportions.width / 2) < r && // Left Half\\n                t < y1 + (this.helperProportions.height / 2) && // Bottom Half\\n                y2 - (this.helperProportions.height / 2) < b ); // Top Half\\n\\n        }\\n    },\\n\\n    _intersectsWithPointer: function(item) {\\n\\n        var isOverElementHeight = (this.options.axis === \\\"x\\\") || isOverAxis(this.positionAbs.top + this.offset.click.top, item.top, item.height),\\n            isOverElementWidth = (this.options.axis === \\\"y\\\") || isOverAxis(this.positionAbs.left + this.offset.click.left, item.left, item.width),\\n            isOverElement = isOverElementHeight && isOverElementWidth,\\n            verticalDirection = this._getDragVerticalDirection(),\\n            horizontalDirection = this._getDragHorizontalDirection();\\n\\n        if (!isOverElement) {\\n            return false;\\n        }\\n\\n        return this.floating ?\\n            ( ((horizontalDirection && horizontalDirection === \\\"right\\\") || verticalDirection === \\\"down\\\") ? 2 : 1 )\\n            : ( verticalDirection && (verticalDirection === \\\"down\\\" ? 2 : 1) );\\n\\n    },\\n\\n    _intersectsWithSides: function(item) {\\n\\n        var isOverBottomHalf = isOverAxis(this.positionAbs.top + this.offset.click.top, item.top + (item.height/2), item.height),\\n            isOverRightHalf = isOverAxis(this.positionAbs.left + this.offset.click.left, item.left + (item.width/2), item.width),\\n            verticalDirection = this._getDragVerticalDirection(),\\n            horizontalDirection = this._getDragHorizontalDirection();\\n\\n        if (this.floating && horizontalDirection) {\\n            return ((horizontalDirection === \\\"right\\\" && isOverRightHalf) || (horizontalDirection === \\\"left\\\" && !isOverRightHalf));\\n        } else {\\n            return verticalDirection && ((verticalDirection === \\\"down\\\" && isOverBottomHalf) || (verticalDirection === \\\"up\\\" && !isOverBottomHalf));\\n        }\\n\\n    },\\n\\n    _getDragVerticalDirection: function() {\\n        var delta = this.positionAbs.top - this.lastPositionAbs.top;\\n        return delta !== 0 && (delta > 0 ? \\\"down\\\" : \\\"up\\\");\\n    },\\n\\n    _getDragHorizontalDirection: function() {\\n        var delta = this.positionAbs.left - this.lastPositionAbs.left;\\n        return delta !== 0 && (delta > 0 ? \\\"right\\\" : \\\"left\\\");\\n    },\\n\\n    refresh: function(event) {\\n        this._refreshItems(event);\\n        this.refreshPositions();\\n        return this;\\n    },\\n\\n    _connectWith: function() {\\n        var options = this.options;\\n        return options.connectWith.constructor === String ? [options.connectWith] : options.connectWith;\\n    },\\n\\n    _getItemsAsjQuery: function(connected) {\\n\\n        var i, j, cur, inst,\\n            items = [],\\n            queries = [],\\n            connectWith = this._connectWith();\\n\\n        if(connectWith && connected) {\\n            for (i = connectWith.length - 1; i >= 0; i--){\\n                cur = $(connectWith[i]);\\n                for ( j = cur.length - 1; j >= 0; j--){\\n                    inst = $.data(cur[j], this.widgetFullName);\\n                    if(inst && inst !== this && !inst.options.disabled) {\\n                        queries.push([$.isFunction(inst.options.items) ? inst.options.items.call(inst.element) : $(inst.options.items, inst.element).not(\\\".ui-sortable-helper\\\").not(\\\".ui-sortable-placeholder\\\"), inst]);\\n                    }\\n                }\\n            }\\n        }\\n\\n        queries.push([$.isFunction(this.options.items) ? this.options.items.call(this.element, null, { options: this.options, item: this.currentItem }) : $(this.options.items, this.element).not(\\\".ui-sortable-helper\\\").not(\\\".ui-sortable-placeholder\\\"), this]);\\n\\n        function addItems() {\\n            items.push( this );\\n        }\\n        for (i = queries.length - 1; i >= 0; i--){\\n            queries[i][0].each( addItems );\\n        }\\n\\n        return $(items);\\n\\n    },\\n\\n    _removeCurrentsFromItems: function() {\\n\\n        var list = this.currentItem.find(\\\":data(\\\" + this.widgetName + \\\"-item)\\\");\\n\\n        this.items = $.grep(this.items, function (item) {\\n            for (var j=0; j < list.length; j++) {\\n                if(list[j] === item.item[0]) {\\n                    return false;\\n                }\\n            }\\n            return true;\\n        });\\n\\n    },\\n\\n    _refreshItems: function(event) {\\n\\n        this.items = [];\\n        this.containers = [this];\\n\\n        var i, j, cur, inst, targetData, _queries, item, queriesLength,\\n            items = this.items,\\n            queries = [[$.isFunction(this.options.items) ? this.options.items.call(this.element[0], event, { item: this.currentItem }) : $(this.options.items, this.element), this]],\\n            connectWith = this._connectWith();\\n\\n        if(connectWith && this.ready) { //Shouldn't be run the first time through due to massive slow-down\\n            for (i = connectWith.length - 1; i >= 0; i--){\\n                cur = $(connectWith[i]);\\n                for (j = cur.length - 1; j >= 0; j--){\\n                    inst = $.data(cur[j], this.widgetFullName);\\n                    if(inst && inst !== this && !inst.options.disabled) {\\n                        queries.push([$.isFunction(inst.options.items) ? inst.options.items.call(inst.element[0], event, { item: this.currentItem }) : $(inst.options.items, inst.element), inst]);\\n                        this.containers.push(inst);\\n                    }\\n                }\\n            }\\n        }\\n\\n        for (i = queries.length - 1; i >= 0; i--) {\\n            targetData = queries[i][1];\\n            _queries = queries[i][0];\\n\\n            for (j=0, queriesLength = _queries.length; j < queriesLength; j++) {\\n                item = $(_queries[j]);\\n\\n                item.data(this.widgetName + \\\"-item\\\", targetData); // Data for target checking (mouse manager)\\n\\n                items.push({\\n                    item: item,\\n                    instance: targetData,\\n                    width: 0, height: 0,\\n                    left: 0, top: 0\\n                });\\n            }\\n        }\\n\\n    },\\n\\n    refreshPositions: function(fast) {\\n\\n        //This has to be redone because due to the item being moved out/into the offsetParent, the offsetParent's position will change\\n        if(this.offsetParent && this.helper) {\\n            this.offset.parent = this._getParentOffset();\\n        }\\n\\n        var i, item, t, p;\\n\\n        for (i = this.items.length - 1; i >= 0; i--){\\n            item = this.items[i];\\n\\n            //We ignore calculating positions of all connected containers when we're not over them\\n            if(item.instance !== this.currentContainer && this.currentContainer && item.item[0] !== this.currentItem[0]) {\\n                continue;\\n            }\\n\\n            t = this.options.toleranceElement ? $(this.options.toleranceElement, item.item) : item.item;\\n\\n            if (!fast) {\\n                item.width = t.outerWidth();\\n                item.height = t.outerHeight();\\n            }\\n\\n            p = t.offset();\\n            item.left = p.left;\\n            item.top = p.top;\\n        }\\n\\n        if(this.options.custom && this.options.custom.refreshContainers) {\\n            this.options.custom.refreshContainers.call(this);\\n        } else {\\n            for (i = this.containers.length - 1; i >= 0; i--){\\n                p = this.containers[i].element.offset();\\n                this.containers[i].containerCache.left = p.left;\\n                this.containers[i].containerCache.top = p.top;\\n                this.containers[i].containerCache.width = this.containers[i].element.outerWidth();\\n                this.containers[i].containerCache.height = this.containers[i].element.outerHeight();\\n            }\\n        }\\n\\n        return this;\\n    },\\n\\n    _createPlaceholder: function(that) {\\n        that = that || this;\\n        var className,\\n            o = that.options;\\n\\n        if(!o.placeholder || o.placeholder.constructor === String) {\\n            className = o.placeholder;\\n            o.placeholder = {\\n                element: function() {\\n\\n                    var nodeName = that.currentItem[0].nodeName.toLowerCase(),\\n                        element = $( \\\"<\\\" + nodeName + \\\">\\\", that.document[0] )\\n                            .addClass(className || that.currentItem[0].className+\\\" ui-sortable-placeholder\\\")\\n                            .removeClass(\\\"ui-sortable-helper\\\");\\n\\n                    if ( nodeName === \\\"tr\\\" ) {\\n                        that.currentItem.children().each(function() {\\n                            $( \\\"<td>&#160;</td>\\\", that.document[0] )\\n                                .attr( \\\"colspan\\\", $( this ).attr( \\\"colspan\\\" ) || 1 )\\n                                .appendTo( element );\\n                        });\\n                    } else if ( nodeName === \\\"img\\\" ) {\\n                        element.attr( \\\"src\\\", that.currentItem.attr( \\\"src\\\" ) );\\n                    }\\n\\n                    if ( !className ) {\\n                        element.css( \\\"visibility\\\", \\\"hidden\\\" );\\n                    }\\n\\n                    return element;\\n                },\\n                update: function(container, p) {\\n\\n                    // 1. If a className is set as 'placeholder option, we don't force sizes - the class is responsible for that\\n                    // 2. The option 'forcePlaceholderSize can be enabled to force it even if a class name is specified\\n                    if(className && !o.forcePlaceholderSize) {\\n                        return;\\n                    }\\n\\n                    //If the element doesn't have a actual height by itself (without styles coming from a stylesheet), it receives the inline height from the dragged item\\n                    if(!p.height()) { p.height(that.currentItem.innerHeight() - parseInt(that.currentItem.css(\\\"paddingTop\\\")||0, 10) - parseInt(that.currentItem.css(\\\"paddingBottom\\\")||0, 10)); }\\n                    if(!p.width()) { p.width(that.currentItem.innerWidth() - parseInt(that.currentItem.css(\\\"paddingLeft\\\")||0, 10) - parseInt(that.currentItem.css(\\\"paddingRight\\\")||0, 10)); }\\n                }\\n            };\\n        }\\n\\n        //Create the placeholder\\n        that.placeholder = $(o.placeholder.element.call(that.element, that.currentItem));\\n\\n        //Append it after the actual current item\\n        that.currentItem.after(that.placeholder);\\n\\n        //Update the size of the placeholder (TODO: Logic to fuzzy, see line 316/317)\\n        o.placeholder.update(that, that.placeholder);\\n\\n    },\\n\\n    _contactContainers: function(event) {\\n        var i, j, dist, itemWithLeastDistance, posProperty, sizeProperty, base, cur, nearBottom, floating,\\n            innermostContainer = null,\\n            innermostIndex = null;\\n\\n        // get innermost container that intersects with item\\n        for (i = this.containers.length - 1; i >= 0; i--) {\\n\\n            // never consider a container that's located within the item itself\\n            if($.contains(this.currentItem[0], this.containers[i].element[0])) {\\n                continue;\\n            }\\n\\n            if(this._intersectsWith(this.containers[i].containerCache)) {\\n\\n                // if we've already found a container and it's more \\\"inner\\\" than this, then continue\\n                if(innermostContainer && $.contains(this.containers[i].element[0], innermostContainer.element[0])) {\\n                    continue;\\n                }\\n\\n                innermostContainer = this.containers[i];\\n                innermostIndex = i;\\n\\n            } else {\\n                // container doesn't intersect. trigger \\\"out\\\" event if necessary\\n                if(this.containers[i].containerCache.over) {\\n                    this.containers[i]._trigger(\\\"out\\\", event, this._uiHash(this));\\n                    this.containers[i].containerCache.over = 0;\\n                }\\n            }\\n\\n        }\\n\\n        // if no intersecting containers found, return\\n        if(!innermostContainer) {\\n            return;\\n        }\\n\\n        // move the item into the container if it's not there already\\n        if(this.containers.length === 1) {\\n            if (!this.containers[innermostIndex].containerCache.over) {\\n                this.containers[innermostIndex]._trigger(\\\"over\\\", event, this._uiHash(this));\\n                this.containers[innermostIndex].containerCache.over = 1;\\n            }\\n        } else {\\n\\n            //When entering a new container, we will find the item with the least distance and append our item near it\\n            dist = 10000;\\n            itemWithLeastDistance = null;\\n            floating = innermostContainer.floating || isFloating(this.currentItem);\\n            posProperty = floating ? \\\"left\\\" : \\\"top\\\";\\n            sizeProperty = floating ? \\\"width\\\" : \\\"height\\\";\\n            base = this.positionAbs[posProperty] + this.offset.click[posProperty];\\n            for (j = this.items.length - 1; j >= 0; j--) {\\n                if(!$.contains(this.containers[innermostIndex].element[0], this.items[j].item[0])) {\\n                    continue;\\n                }\\n                if(this.items[j].item[0] === this.currentItem[0]) {\\n                    continue;\\n                }\\n                if (floating && !isOverAxis(this.positionAbs.top + this.offset.click.top, this.items[j].top, this.items[j].height)) {\\n                    continue;\\n                }\\n                cur = this.items[j].item.offset()[posProperty];\\n                nearBottom = false;\\n                if(Math.abs(cur - base) > Math.abs(cur + this.items[j][sizeProperty] - base)){\\n                    nearBottom = true;\\n                    cur += this.items[j][sizeProperty];\\n                }\\n\\n                if(Math.abs(cur - base) < dist) {\\n                    dist = Math.abs(cur - base); itemWithLeastDistance = this.items[j];\\n                    this.direction = nearBottom ? \\\"up\\\": \\\"down\\\";\\n                }\\n            }\\n\\n            //Check if dropOnEmpty is enabled\\n            if(!itemWithLeastDistance && !this.options.dropOnEmpty) {\\n                return;\\n            }\\n\\n            if(this.currentContainer === this.containers[innermostIndex]) {\\n                return;\\n            }\\n\\n            itemWithLeastDistance ? this._rearrange(event, itemWithLeastDistance, null, true) : this._rearrange(event, null, this.containers[innermostIndex].element, true);\\n            this._trigger(\\\"change\\\", event, this._uiHash());\\n            this.containers[innermostIndex]._trigger(\\\"change\\\", event, this._uiHash(this));\\n            this.currentContainer = this.containers[innermostIndex];\\n\\n            //Update the placeholder\\n            this.options.placeholder.update(this.currentContainer, this.placeholder);\\n\\n            this.containers[innermostIndex]._trigger(\\\"over\\\", event, this._uiHash(this));\\n            this.containers[innermostIndex].containerCache.over = 1;\\n        }\\n\\n\\n    },\\n\\n    _createHelper: function(event) {\\n\\n        var o = this.options,\\n            helper = $.isFunction(o.helper) ? $(o.helper.apply(this.element[0], [event, this.currentItem])) : (o.helper === \\\"clone\\\" ? this.currentItem.clone() : this.currentItem);\\n\\n        //Add the helper to the DOM if that didn't happen already\\n        if(!helper.parents(\\\"body\\\").length) {\\n            $(o.appendTo !== \\\"parent\\\" ? o.appendTo : this.currentItem[0].parentNode)[0].appendChild(helper[0]);\\n        }\\n\\n        if(helper[0] === this.currentItem[0]) {\\n            this._storedCSS = { width: this.currentItem[0].style.width, height: this.currentItem[0].style.height, position: this.currentItem.css(\\\"position\\\"), top: this.currentItem.css(\\\"top\\\"), left: this.currentItem.css(\\\"left\\\") };\\n        }\\n\\n        if(!helper[0].style.width || o.forceHelperSize) {\\n            helper.width(this.currentItem.width());\\n        }\\n        if(!helper[0].style.height || o.forceHelperSize) {\\n            helper.height(this.currentItem.height());\\n        }\\n\\n        return helper;\\n\\n    },\\n\\n    _adjustOffsetFromHelper: function(obj) {\\n        if (typeof obj === \\\"string\\\") {\\n            obj = obj.split(\\\" \\\");\\n        }\\n        if ($.isArray(obj)) {\\n            obj = {left: +obj[0], top: +obj[1] || 0};\\n        }\\n        if (\\\"left\\\" in obj) {\\n            this.offset.click.left = obj.left + this.margins.left;\\n        }\\n        if (\\\"right\\\" in obj) {\\n            this.offset.click.left = this.helperProportions.width - obj.right + this.margins.left;\\n        }\\n        if (\\\"top\\\" in obj) {\\n            this.offset.click.top = obj.top + this.margins.top;\\n        }\\n        if (\\\"bottom\\\" in obj) {\\n            this.offset.click.top = this.helperProportions.height - obj.bottom + this.margins.top;\\n        }\\n    },\\n\\n    _getParentOffset: function() {\\n\\n\\n        //Get the offsetParent and cache its position\\n        this.offsetParent = this.helper.offsetParent();\\n        var po = this.offsetParent.offset();\\n\\n        // This is a special case where we need to modify a offset calculated on start, since the following happened:\\n        // 1. The position of the helper is absolute, so it's position is calculated based on the next positioned parent\\n        // 2. The actual offset parent is a child of the scroll parent, and the scroll parent isn't the document, which means that\\n        //    the scroll is included in the initial calculation of the offset of the parent, and never recalculated upon drag\\n        if(this.cssPosition === \\\"absolute\\\" && this.scrollParent[0] !== document && $.contains(this.scrollParent[0], this.offsetParent[0])) {\\n            po.left += this.scrollParent.scrollLeft();\\n            po.top += this.scrollParent.scrollTop();\\n        }\\n\\n        // This needs to be actually done for all browsers, since pageX/pageY includes this information\\n        // with an ugly IE fix\\n        if( this.offsetParent[0] === document.body || (this.offsetParent[0].tagName && this.offsetParent[0].tagName.toLowerCase() === \\\"html\\\" && $.ui.ie)) {\\n            po = { top: 0, left: 0 };\\n        }\\n\\n        return {\\n            top: po.top + (parseInt(this.offsetParent.css(\\\"borderTopWidth\\\"),10) || 0),\\n            left: po.left + (parseInt(this.offsetParent.css(\\\"borderLeftWidth\\\"),10) || 0)\\n        };\\n\\n    },\\n\\n    _getRelativeOffset: function() {\\n\\n        if(this.cssPosition === \\\"relative\\\") {\\n            var p = this.currentItem.position();\\n            return {\\n                top: p.top - (parseInt(this.helper.css(\\\"top\\\"),10) || 0) + this.scrollParent.scrollTop(),\\n                left: p.left - (parseInt(this.helper.css(\\\"left\\\"),10) || 0) + this.scrollParent.scrollLeft()\\n            };\\n        } else {\\n            return { top: 0, left: 0 };\\n        }\\n\\n    },\\n\\n    _cacheMargins: function() {\\n        this.margins = {\\n            left: (parseInt(this.currentItem.css(\\\"marginLeft\\\"),10) || 0),\\n            top: (parseInt(this.currentItem.css(\\\"marginTop\\\"),10) || 0)\\n        };\\n    },\\n\\n    _cacheHelperProportions: function() {\\n        this.helperProportions = {\\n            width: this.helper.outerWidth(),\\n            height: this.helper.outerHeight()\\n        };\\n    },\\n\\n    _setContainment: function() {\\n\\n        var ce, co, over,\\n            o = this.options;\\n        if(o.containment === \\\"parent\\\") {\\n            o.containment = this.helper[0].parentNode;\\n        }\\n        if(o.containment === \\\"document\\\" || o.containment === \\\"window\\\") {\\n            this.containment = [\\n                0 - this.offset.relative.left - this.offset.parent.left,\\n                0 - this.offset.relative.top - this.offset.parent.top,\\n                $(o.containment === \\\"document\\\" ? document : window).width() - this.helperProportions.width - this.margins.left,\\n                ($(o.containment === \\\"document\\\" ? document : window).height() || document.body.parentNode.scrollHeight) - this.helperProportions.height - this.margins.top\\n            ];\\n        }\\n\\n        if(!(/^(document|window|parent)$/).test(o.containment)) {\\n            ce = $(o.containment)[0];\\n            co = $(o.containment).offset();\\n            over = ($(ce).css(\\\"overflow\\\") !== \\\"hidden\\\");\\n\\n            this.containment = [\\n                co.left + (parseInt($(ce).css(\\\"borderLeftWidth\\\"),10) || 0) + (parseInt($(ce).css(\\\"paddingLeft\\\"),10) || 0) - this.margins.left,\\n                co.top + (parseInt($(ce).css(\\\"borderTopWidth\\\"),10) || 0) + (parseInt($(ce).css(\\\"paddingTop\\\"),10) || 0) - this.margins.top,\\n                co.left+(over ? Math.max(ce.scrollWidth,ce.offsetWidth) : ce.offsetWidth) - (parseInt($(ce).css(\\\"borderLeftWidth\\\"),10) || 0) - (parseInt($(ce).css(\\\"paddingRight\\\"),10) || 0) - this.helperProportions.width - this.margins.left,\\n                co.top+(over ? Math.max(ce.scrollHeight,ce.offsetHeight) : ce.offsetHeight) - (parseInt($(ce).css(\\\"borderTopWidth\\\"),10) || 0) - (parseInt($(ce).css(\\\"paddingBottom\\\"),10) || 0) - this.helperProportions.height - this.margins.top\\n            ];\\n        }\\n\\n    },\\n\\n    _convertPositionTo: function(d, pos) {\\n\\n        if(!pos) {\\n            pos = this.position;\\n        }\\n        var mod = d === \\\"absolute\\\" ? 1 : -1,\\n            scroll = this.cssPosition === \\\"absolute\\\" && !(this.scrollParent[0] !== document && $.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent,\\n            scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName);\\n\\n        return {\\n            top: (\\n                pos.top +                                                               // The absolute mouse position\\n                this.offset.relative.top * mod +                                        // Only for relative positioned nodes: Relative offset from element to offset parent\\n                this.offset.parent.top * mod -                                          // The offsetParent's offset without borders (offset + border)\\n                ( ( this.cssPosition === \\\"fixed\\\" ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ) * mod)\\n            ),\\n            left: (\\n                pos.left +                                                              // The absolute mouse position\\n                this.offset.relative.left * mod +                                       // Only for relative positioned nodes: Relative offset from element to offset parent\\n                this.offset.parent.left * mod   -                                       // The offsetParent's offset without borders (offset + border)\\n                ( ( this.cssPosition === \\\"fixed\\\" ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() ) * mod)\\n            )\\n        };\\n\\n    },\\n\\n    _generatePosition: function(event) {\\n\\n        var top, left,\\n            o = this.options,\\n            pageX = event.pageX,\\n            pageY = event.pageY,\\n            scroll = this.cssPosition === \\\"absolute\\\" && !(this.scrollParent[0] !== document && $.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName);\\n\\n        // This is another very weird special case that only happens for relative elements:\\n        // 1. If the css position is relative\\n        // 2. and the scroll parent is the document or similar to the offset parent\\n        // we have to refresh the relative offset during the scroll so there are no jumps\\n        if(this.cssPosition === \\\"relative\\\" && !(this.scrollParent[0] !== document && this.scrollParent[0] !== this.offsetParent[0])) {\\n            this.offset.relative = this._getRelativeOffset();\\n        }\\n\\n        /*\\n         * - Position constraining -\\n         * Constrain the position to a mix of grid, containment.\\n         */\\n\\n        if(this.originalPosition) { //If we are not dragging yet, we won't check for options\\n\\n            if(this.containment) {\\n                if(event.pageX - this.offset.click.left < this.containment[0]) {\\n                    pageX = this.containment[0] + this.offset.click.left;\\n                }\\n                if(event.pageY - this.offset.click.top < this.containment[1]) {\\n                    pageY = this.containment[1] + this.offset.click.top;\\n                }\\n                if(event.pageX - this.offset.click.left > this.containment[2]) {\\n                    pageX = this.containment[2] + this.offset.click.left;\\n                }\\n                if(event.pageY - this.offset.click.top > this.containment[3]) {\\n                    pageY = this.containment[3] + this.offset.click.top;\\n                }\\n            }\\n\\n            if(o.grid) {\\n                top = this.originalPageY + Math.round((pageY - this.originalPageY) / o.grid[1]) * o.grid[1];\\n                pageY = this.containment ? ( (top - this.offset.click.top >= this.containment[1] && top - this.offset.click.top <= this.containment[3]) ? top : ((top - this.offset.click.top >= this.containment[1]) ? top - o.grid[1] : top + o.grid[1])) : top;\\n\\n                left = this.originalPageX + Math.round((pageX - this.originalPageX) / o.grid[0]) * o.grid[0];\\n                pageX = this.containment ? ( (left - this.offset.click.left >= this.containment[0] && left - this.offset.click.left <= this.containment[2]) ? left : ((left - this.offset.click.left >= this.containment[0]) ? left - o.grid[0] : left + o.grid[0])) : left;\\n            }\\n\\n        }\\n\\n        return {\\n            top: (\\n                pageY -                                                             // The absolute mouse position\\n                this.offset.click.top -                                                 // Click offset (relative to the element)\\n                this.offset.relative.top    -                                           // Only for relative positioned nodes: Relative offset from element to offset parent\\n                this.offset.parent.top +                                                // The offsetParent's offset without borders (offset + border)\\n                ( ( this.cssPosition === \\\"fixed\\\" ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ))\\n            ),\\n            left: (\\n                pageX -                                                             // The absolute mouse position\\n                this.offset.click.left -                                                // Click offset (relative to the element)\\n                this.offset.relative.left   -                                           // Only for relative positioned nodes: Relative offset from element to offset parent\\n                this.offset.parent.left +                                               // The offsetParent's offset without borders (offset + border)\\n                ( ( this.cssPosition === \\\"fixed\\\" ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() ))\\n            )\\n        };\\n\\n    },\\n\\n    _rearrange: function(event, i, a, hardRefresh) {\\n\\n        a ? a[0].appendChild(this.placeholder[0]) : i.item[0].parentNode.insertBefore(this.placeholder[0], (this.direction === \\\"down\\\" ? i.item[0] : i.item[0].nextSibling));\\n\\n        //Various things done here to improve the performance:\\n        // 1. we create a setTimeout, that calls refreshPositions\\n        // 2. on the instance, we have a counter variable, that get's higher after every append\\n        // 3. on the local scope, we copy the counter variable, and check in the timeout, if it's still the same\\n        // 4. this lets only the last addition to the timeout stack through\\n        this.counter = this.counter ? ++this.counter : 1;\\n        var counter = this.counter;\\n\\n        this._delay(function() {\\n            if(counter === this.counter) {\\n                this.refreshPositions(!hardRefresh); //Precompute after each DOM insertion, NOT on mousemove\\n            }\\n        });\\n\\n    },\\n\\n    _clear: function(event, noPropagation) {\\n\\n        this.reverting = false;\\n        // We delay all events that have to be triggered to after the point where the placeholder has been removed and\\n        // everything else normalized again\\n        var i,\\n            delayedTriggers = [];\\n\\n        // We first have to update the dom position of the actual currentItem\\n        // Note: don't do it if the current item is already removed (by a user), or it gets reappended (see #4088)\\n        if(!this._noFinalSort && this.currentItem.parent().length) {\\n            this.placeholder.before(this.currentItem);\\n        }\\n        this._noFinalSort = null;\\n\\n        if(this.helper[0] === this.currentItem[0]) {\\n            for(i in this._storedCSS) {\\n                if(this._storedCSS[i] === \\\"auto\\\" || this._storedCSS[i] === \\\"static\\\") {\\n                    this._storedCSS[i] = \\\"\\\";\\n                }\\n            }\\n            this.currentItem.css(this._storedCSS).removeClass(\\\"ui-sortable-helper\\\");\\n        } else {\\n            this.currentItem.show();\\n        }\\n\\n        if(this.fromOutside && !noPropagation) {\\n            delayedTriggers.push(function(event) { this._trigger(\\\"receive\\\", event, this._uiHash(this.fromOutside)); });\\n        }\\n        if((this.fromOutside || this.domPosition.prev !== this.currentItem.prev().not(\\\".ui-sortable-helper\\\")[0] || this.domPosition.parent !== this.currentItem.parent()[0]) && !noPropagation) {\\n            delayedTriggers.push(function(event) { this._trigger(\\\"update\\\", event, this._uiHash()); }); //Trigger update callback if the DOM position has changed\\n        }\\n\\n        // Check if the items Container has Changed and trigger appropriate\\n        // events.\\n        if (this !== this.currentContainer) {\\n            if(!noPropagation) {\\n                delayedTriggers.push(function(event) { this._trigger(\\\"remove\\\", event, this._uiHash()); });\\n                delayedTriggers.push((function(c) { return function(event) { c._trigger(\\\"receive\\\", event, this._uiHash(this)); };  }).call(this, this.currentContainer));\\n                delayedTriggers.push((function(c) { return function(event) { c._trigger(\\\"update\\\", event, this._uiHash(this));  }; }).call(this, this.currentContainer));\\n            }\\n        }\\n\\n\\n        //Post events to containers\\n        function delayEvent( type, instance, container ) {\\n            return function( event ) {\\n                container._trigger( type, event, instance._uiHash( instance ) );\\n            };\\n        }\\n        for (i = this.containers.length - 1; i >= 0; i--){\\n            if (!noPropagation) {\\n                delayedTriggers.push( delayEvent( \\\"deactivate\\\", this, this.containers[ i ] ) );\\n            }\\n            if(this.containers[i].containerCache.over) {\\n                delayedTriggers.push( delayEvent( \\\"out\\\", this, this.containers[ i ] ) );\\n                this.containers[i].containerCache.over = 0;\\n            }\\n        }\\n\\n        //Do what was originally in plugins\\n        if ( this.storedCursor ) {\\n            this.document.find( \\\"body\\\" ).css( \\\"cursor\\\", this.storedCursor );\\n            this.storedStylesheet.remove();\\n        }\\n        if(this._storedOpacity) {\\n            this.helper.css(\\\"opacity\\\", this._storedOpacity);\\n        }\\n        if(this._storedZIndex) {\\n            this.helper.css(\\\"zIndex\\\", this._storedZIndex === \\\"auto\\\" ? \\\"\\\" : this._storedZIndex);\\n        }\\n\\n        this.dragging = false;\\n        if(this.cancelHelperRemoval) {\\n            if(!noPropagation) {\\n                this._trigger(\\\"beforeStop\\\", event, this._uiHash());\\n                for (i=0; i < delayedTriggers.length; i++) {\\n                    delayedTriggers[i].call(this, event);\\n                } //Trigger all delayed events\\n                this._trigger(\\\"stop\\\", event, this._uiHash());\\n            }\\n\\n            this.fromOutside = false;\\n            return false;\\n        }\\n\\n        if(!noPropagation) {\\n            this._trigger(\\\"beforeStop\\\", event, this._uiHash());\\n        }\\n\\n        //$(this.placeholder[0]).remove(); would have been the jQuery way - unfortunately, it unbinds ALL events from the original node!\\n        this.placeholder[0].parentNode.removeChild(this.placeholder[0]);\\n\\n        if(this.helper[0] !== this.currentItem[0]) {\\n            this.helper.remove();\\n        }\\n        this.helper = null;\\n\\n        if(!noPropagation) {\\n            for (i=0; i < delayedTriggers.length; i++) {\\n                delayedTriggers[i].call(this, event);\\n            } //Trigger all delayed events\\n            this._trigger(\\\"stop\\\", event, this._uiHash());\\n        }\\n\\n        this.fromOutside = false;\\n        return true;\\n\\n    },\\n\\n    _trigger: function() {\\n        if ($.Widget.prototype._trigger.apply(this, arguments) === false) {\\n            this.cancel();\\n        }\\n    },\\n\\n    _uiHash: function(_inst) {\\n        var inst = _inst || this;\\n        return {\\n            helper: inst.helper,\\n            placeholder: inst.placeholder || $([]),\\n            position: inst.position,\\n            originalPosition: inst.originalPosition,\\n            offset: inst.positionAbs,\\n            item: inst.currentItem,\\n            sender: _inst ? _inst.element : null\\n        };\\n    }\\n\\n});\\n\\n})(jQuery);\\n(function( $ ) {\\n\\nfunction modifier( fn ) {\\n    return function() {\\n        var previous = this.element.val();\\n        fn.apply( this, arguments );\\n        this._refresh();\\n        if ( previous !== this.element.val() ) {\\n            this._trigger( \\\"change\\\" );\\n        }\\n    };\\n}\\n\\n$.widget( \\\"ui.spinner\\\", {\\n    version: \\\"1.10.4\\\",\\n    defaultElement: \\\"<input>\\\",\\n    widgetEventPrefix: \\\"spin\\\",\\n    options: {\\n        culture: null,\\n        icons: {\\n            down: \\\"ui-icon-triangle-1-s\\\",\\n            up: \\\"ui-icon-triangle-1-n\\\"\\n        },\\n        incremental: true,\\n        max: null,\\n        min: null,\\n        numberFormat: null,\\n        page: 10,\\n        step: 1,\\n\\n        change: null,\\n        spin: null,\\n        start: null,\\n        stop: null\\n    },\\n\\n    _create: function() {\\n        // handle string values that need to be parsed\\n        this._setOption( \\\"max\\\", this.options.max );\\n        this._setOption( \\\"min\\\", this.options.min );\\n        this._setOption( \\\"step\\\", this.options.step );\\n\\n        // Only format if there is a value, prevents the field from being marked\\n        // as invalid in Firefox, see #9573.\\n        if ( this.value() !== \\\"\\\" ) {\\n            // Format the value, but don't constrain.\\n            this._value( this.element.val(), true );\\n        }\\n\\n        this._draw();\\n        this._on( this._events );\\n        this._refresh();\\n\\n        // turning off autocomplete prevents the browser from remembering the\\n        // value when navigating through history, so we re-enable autocomplete\\n        // if the page is unloaded before the widget is destroyed. #7790\\n        this._on( this.window, {\\n            beforeunload: function() {\\n                this.element.removeAttr( \\\"autocomplete\\\" );\\n            }\\n        });\\n    },\\n\\n    _getCreateOptions: function() {\\n        var options = {},\\n            element = this.element;\\n\\n        $.each( [ \\\"min\\\", \\\"max\\\", \\\"step\\\" ], function( i, option ) {\\n            var value = element.attr( option );\\n            if ( value !== undefined && value.length ) {\\n                options[ option ] = value;\\n            }\\n        });\\n\\n        return options;\\n    },\\n\\n    _events: {\\n        keydown: function( event ) {\\n            if ( this._start( event ) && this._keydown( event ) ) {\\n                event.preventDefault();\\n            }\\n        },\\n        keyup: \\\"_stop\\\",\\n        focus: function() {\\n            this.previous = this.element.val();\\n        },\\n        blur: function( event ) {\\n            if ( this.cancelBlur ) {\\n                delete this.cancelBlur;\\n                return;\\n            }\\n\\n            this._stop();\\n            this._refresh();\\n            if ( this.previous !== this.element.val() ) {\\n                this._trigger( \\\"change\\\", event );\\n            }\\n        },\\n        mousewheel: function( event, delta ) {\\n            if ( !delta ) {\\n                return;\\n            }\\n            if ( !this.spinning && !this._start( event ) ) {\\n                return false;\\n            }\\n\\n            this._spin( (delta > 0 ? 1 : -1) * this.options.step, event );\\n            clearTimeout( this.mousewheelTimer );\\n            this.mousewheelTimer = this._delay(function() {\\n                if ( this.spinning ) {\\n                    this._stop( event );\\n                }\\n            }, 100 );\\n            event.preventDefault();\\n        },\\n        \\\"mousedown .ui-spinner-button\\\": function( event ) {\\n            var previous;\\n\\n            // We never want the buttons to have focus; whenever the user is\\n            // interacting with the spinner, the focus should be on the input.\\n            // If the input is focused then this.previous is properly set from\\n            // when the input first received focus. If the input is not focused\\n            // then we need to set this.previous based on the value before spinning.\\n            previous = this.element[0] === this.document[0].activeElement ?\\n                this.previous : this.element.val();\\n            function checkFocus() {\\n                var isActive = this.element[0] === this.document[0].activeElement;\\n                if ( !isActive ) {\\n                    this.element.focus();\\n                    this.previous = previous;\\n                    // support: IE\\n                    // IE sets focus asynchronously, so we need to check if focus\\n                    // moved off of the input because the user clicked on the button.\\n                    this._delay(function() {\\n                        this.previous = previous;\\n                    });\\n                }\\n            }\\n\\n            // ensure focus is on (or stays on) the text field\\n            event.preventDefault();\\n            checkFocus.call( this );\\n\\n            // support: IE\\n            // IE doesn't prevent moving focus even with event.preventDefault()\\n            // so we set a flag to know when we should ignore the blur event\\n            // and check (again) if focus moved off of the input.\\n            this.cancelBlur = true;\\n            this._delay(function() {\\n                delete this.cancelBlur;\\n                checkFocus.call( this );\\n            });\\n\\n            if ( this._start( event ) === false ) {\\n                return;\\n            }\\n\\n            this._repeat( null, $( event.currentTarget ).hasClass( \\\"ui-spinner-up\\\" ) ? 1 : -1, event );\\n        },\\n        \\\"mouseup .ui-spinner-button\\\": \\\"_stop\\\",\\n        \\\"mouseenter .ui-spinner-button\\\": function( event ) {\\n            // button will add ui-state-active if mouse was down while mouseleave and kept down\\n            if ( !$( event.currentTarget ).hasClass( \\\"ui-state-active\\\" ) ) {\\n                return;\\n            }\\n\\n            if ( this._start( event ) === false ) {\\n                return false;\\n            }\\n            this._repeat( null, $( event.currentTarget ).hasClass( \\\"ui-spinner-up\\\" ) ? 1 : -1, event );\\n        },\\n        // TODO: do we really want to consider this a stop?\\n        // shouldn't we just stop the repeater and wait until mouseup before\\n        // we trigger the stop event?\\n        \\\"mouseleave .ui-spinner-button\\\": \\\"_stop\\\"\\n    },\\n\\n    _draw: function() {\\n        var uiSpinner = this.uiSpinner = this.element\\n            .addClass( \\\"ui-spinner-input\\\" )\\n            .attr( \\\"autocomplete\\\", \\\"off\\\" )\\n            .wrap( this._uiSpinnerHtml() )\\n            .parent()\\n                // add buttons\\n                .append( this._buttonHtml() );\\n\\n        this.element.attr( \\\"role\\\", \\\"spinbutton\\\" );\\n\\n        // button bindings\\n        this.buttons = uiSpinner.find( \\\".ui-spinner-button\\\" )\\n            .attr( \\\"tabIndex\\\", -1 )\\n            .button()\\n            .removeClass( \\\"ui-corner-all\\\" );\\n\\n        // IE 6 doesn't understand height: 50% for the buttons\\n        // unless the wrapper has an explicit height\\n        if ( this.buttons.height() > Math.ceil( uiSpinner.height() * 0.5 ) &&\\n                uiSpinner.height() > 0 ) {\\n            uiSpinner.height( uiSpinner.height() );\\n        }\\n\\n        // disable spinner if element was already disabled\\n        if ( this.options.disabled ) {\\n            this.disable();\\n        }\\n    },\\n\\n    _keydown: function( event ) {\\n        var options = this.options,\\n            keyCode = $.ui.keyCode;\\n\\n        switch ( event.keyCode ) {\\n        case keyCode.UP:\\n            this._repeat( null, 1, event );\\n            return true;\\n        case keyCode.DOWN:\\n            this._repeat( null, -1, event );\\n            return true;\\n        case keyCode.PAGE_UP:\\n            this._repeat( null, options.page, event );\\n            return true;\\n        case keyCode.PAGE_DOWN:\\n            this._repeat( null, -options.page, event );\\n            return true;\\n        }\\n\\n        return false;\\n    },\\n\\n    _uiSpinnerHtml: function() {\\n        return \\\"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>\\\";\\n    },\\n\\n    _buttonHtml: function() {\\n        return \\\"\\\" +\\n            \\\"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'>\\\" +\\n                \\\"<span class='ui-icon \\\" + this.options.icons.up + \\\"'>&#9650;</span>\\\" +\\n            \\\"</a>\\\" +\\n            \\\"<a class='ui-spinner-button ui-spinner-down ui-corner-br'>\\\" +\\n                \\\"<span class='ui-icon \\\" + this.options.icons.down + \\\"'>&#9660;</span>\\\" +\\n            \\\"</a>\\\";\\n    },\\n\\n    _start: function( event ) {\\n        if ( !this.spinning && this._trigger( \\\"start\\\", event ) === false ) {\\n            return false;\\n        }\\n\\n        if ( !this.counter ) {\\n            this.counter = 1;\\n        }\\n        this.spinning = true;\\n        return true;\\n    },\\n\\n    _repeat: function( i, steps, event ) {\\n        i = i || 500;\\n\\n        clearTimeout( this.timer );\\n        this.timer = this._delay(function() {\\n            this._repeat( 40, steps, event );\\n        }, i );\\n\\n        this._spin( steps * this.options.step, event );\\n    },\\n\\n    _spin: function( step, event ) {\\n        var value = this.value() || 0;\\n\\n        if ( !this.counter ) {\\n            this.counter = 1;\\n        }\\n\\n        value = this._adjustValue( value + step * this._increment( this.counter ) );\\n\\n        if ( !this.spinning || this._trigger( \\\"spin\\\", event, { value: value } ) !== false) {\\n            this._value( value );\\n            this.counter++;\\n        }\\n    },\\n\\n    _increment: function( i ) {\\n        var incremental = this.options.incremental;\\n\\n        if ( incremental ) {\\n            return $.isFunction( incremental ) ?\\n                incremental( i ) :\\n                Math.floor( i*i*i/50000 - i*i/500 + 17*i/200 + 1 );\\n        }\\n\\n        return 1;\\n    },\\n\\n    _precision: function() {\\n        var precision = this._precisionOf( this.options.step );\\n        if ( this.options.min !== null ) {\\n            precision = Math.max( precision, this._precisionOf( this.options.min ) );\\n        }\\n        return precision;\\n    },\\n\\n    _precisionOf: function( num ) {\\n        var str = num.toString(),\\n            decimal = str.indexOf( \\\".\\\" );\\n        return decimal === -1 ? 0 : str.length - decimal - 1;\\n    },\\n\\n    _adjustValue: function( value ) {\\n        var base, aboveMin,\\n            options = this.options;\\n\\n        // make sure we're at a valid step\\n        // - find out where we are relative to the base (min or 0)\\n        base = options.min !== null ? options.min : 0;\\n        aboveMin = value - base;\\n        // - round to the nearest step\\n        aboveMin = Math.round(aboveMin / options.step) * options.step;\\n        // - rounding is based on 0, so adjust back to our base\\n        value = base + aboveMin;\\n\\n        // fix precision from bad JS floating point math\\n        value = parseFloat( value.toFixed( this._precision() ) );\\n\\n        // clamp the value\\n        if ( options.max !== null && value > options.max) {\\n            return options.max;\\n        }\\n        if ( options.min !== null && value < options.min ) {\\n            return options.min;\\n        }\\n\\n        return value;\\n    },\\n\\n    _stop: function( event ) {\\n        if ( !this.spinning ) {\\n            return;\\n        }\\n\\n        clearTimeout( this.timer );\\n        clearTimeout( this.mousewheelTimer );\\n        this.counter = 0;\\n        this.spinning = false;\\n        this._trigger( \\\"stop\\\", event );\\n    },\\n\\n    _setOption: function( key, value ) {\\n        if ( key === \\\"culture\\\" || key === \\\"numberFormat\\\" ) {\\n            var prevValue = this._parse( this.element.val() );\\n            this.options[ key ] = value;\\n            this.element.val( this._format( prevValue ) );\\n            return;\\n        }\\n\\n        if ( key === \\\"max\\\" || key === \\\"min\\\" || key === \\\"step\\\" ) {\\n            if ( typeof value === \\\"string\\\" ) {\\n                value = this._parse( value );\\n            }\\n        }\\n        if ( key === \\\"icons\\\" ) {\\n            this.buttons.first().find( \\\".ui-icon\\\" )\\n                .removeClass( this.options.icons.up )\\n                .addClass( value.up );\\n            this.buttons.last().find( \\\".ui-icon\\\" )\\n                .removeClass( this.options.icons.down )\\n                .addClass( value.down );\\n        }\\n\\n        this._super( key, value );\\n\\n        if ( key === \\\"disabled\\\" ) {\\n            if ( value ) {\\n                this.element.prop( \\\"disabled\\\", true );\\n                this.buttons.button( \\\"disable\\\" );\\n            } else {\\n                this.element.prop( \\\"disabled\\\", false );\\n                this.buttons.button( \\\"enable\\\" );\\n            }\\n        }\\n    },\\n\\n    _setOptions: modifier(function( options ) {\\n        this._super( options );\\n        this._value( this.element.val() );\\n    }),\\n\\n    _parse: function( val ) {\\n        if ( typeof val === \\\"string\\\" && val !== \\\"\\\" ) {\\n            val = window.Globalize && this.options.numberFormat ?\\n                Globalize.parseFloat( val, 10, this.options.culture ) : +val;\\n        }\\n        return val === \\\"\\\" || isNaN( val ) ? null : val;\\n    },\\n\\n    _format: function( value ) {\\n        if ( value === \\\"\\\" ) {\\n            return \\\"\\\";\\n        }\\n        return window.Globalize && this.options.numberFormat ?\\n            Globalize.format( value, this.options.numberFormat, this.options.culture ) :\\n            value;\\n    },\\n\\n    _refresh: function() {\\n        this.element.attr({\\n            \\\"aria-valuemin\\\": this.options.min,\\n            \\\"aria-valuemax\\\": this.options.max,\\n            // TODO: what should we do with values that can't be parsed?\\n            \\\"aria-valuenow\\\": this._parse( this.element.val() )\\n        });\\n    },\\n\\n    // update the value without triggering change\\n    _value: function( value, allowAny ) {\\n        var parsed;\\n        if ( value !== \\\"\\\" ) {\\n            parsed = this._parse( value );\\n            if ( parsed !== null ) {\\n                if ( !allowAny ) {\\n                    parsed = this._adjustValue( parsed );\\n                }\\n                value = this._format( parsed );\\n            }\\n        }\\n        this.element.val( value );\\n        this._refresh();\\n    },\\n\\n    _destroy: function() {\\n        this.element\\n            .removeClass( \\\"ui-spinner-input\\\" )\\n            .prop( \\\"disabled\\\", false )\\n            .removeAttr( \\\"autocomplete\\\" )\\n            .removeAttr( \\\"role\\\" )\\n            .removeAttr( \\\"aria-valuemin\\\" )\\n            .removeAttr( \\\"aria-valuemax\\\" )\\n            .removeAttr( \\\"aria-valuenow\\\" );\\n        this.uiSpinner.replaceWith( this.element );\\n    },\\n\\n    stepUp: modifier(function( steps ) {\\n        this._stepUp( steps );\\n    }),\\n    _stepUp: function( steps ) {\\n        if ( this._start() ) {\\n            this._spin( (steps || 1) * this.options.step );\\n            this._stop();\\n        }\\n    },\\n\\n    stepDown: modifier(function( steps ) {\\n        this._stepDown( steps );\\n    }),\\n    _stepDown: function( steps ) {\\n        if ( this._start() ) {\\n            this._spin( (steps || 1) * -this.options.step );\\n            this._stop();\\n        }\\n    },\\n\\n    pageUp: modifier(function( pages ) {\\n        this._stepUp( (pages || 1) * this.options.page );\\n    }),\\n\\n    pageDown: modifier(function( pages ) {\\n        this._stepDown( (pages || 1) * this.options.page );\\n    }),\\n\\n    value: function( newVal ) {\\n        if ( !arguments.length ) {\\n            return this._parse( this.element.val() );\\n        }\\n        modifier( this._value ).call( this, newVal );\\n    },\\n\\n    widget: function() {\\n        return this.uiSpinner;\\n    }\\n});\\n\\n}( jQuery ) );\\n(function( $, undefined ) {\\n\\nvar tabId = 0,\\n    rhash = /#.*$/;\\n\\nfunction getNextTabId() {\\n    return ++tabId;\\n}\\n\\nfunction isLocal( anchor ) {\\n    // support: IE7\\n    // IE7 doesn't normalize the href property when set via script (#9317)\\n    anchor = anchor.cloneNode( false );\\n\\n    return anchor.hash.length > 1 &&\\n        decodeURIComponent( anchor.href.replace( rhash, \\\"\\\" ) ) ===\\n            decodeURIComponent( location.href.replace( rhash, \\\"\\\" ) );\\n}\\n\\n$.widget( \\\"ui.tabs\\\", {\\n    version: \\\"1.10.4\\\",\\n    delay: 300,\\n    options: {\\n        active: null,\\n        collapsible: false,\\n        event: \\\"click\\\",\\n        heightStyle: \\\"content\\\",\\n        hide: null,\\n        show: null,\\n\\n        // callbacks\\n        activate: null,\\n        beforeActivate: null,\\n        beforeLoad: null,\\n        load: null\\n    },\\n\\n    _create: function() {\\n        var that = this,\\n            options = this.options;\\n\\n        this.running = false;\\n\\n        this.element\\n            .addClass( \\\"ui-tabs ui-widget ui-widget-content ui-corner-all\\\" )\\n            .toggleClass( \\\"ui-tabs-collapsible\\\", options.collapsible )\\n            // Prevent users from focusing disabled tabs via click\\n            .delegate( \\\".ui-tabs-nav > li\\\", \\\"mousedown\\\" + this.eventNamespace, function( event ) {\\n                if ( $( this ).is( \\\".ui-state-disabled\\\" ) ) {\\n                    event.preventDefault();\\n                }\\n            })\\n            // support: IE <9\\n            // Preventing the default action in mousedown doesn't prevent IE\\n            // from focusing the element, so if the anchor gets focused, blur.\\n            // We don't have to worry about focusing the previously focused\\n            // element since clicking on a non-focusable element should focus\\n            // the body anyway.\\n            .delegate( \\\".ui-tabs-anchor\\\", \\\"focus\\\" + this.eventNamespace, function() {\\n                if ( $( this ).closest( \\\"li\\\" ).is( \\\".ui-state-disabled\\\" ) ) {\\n                    this.blur();\\n                }\\n            });\\n\\n        this._processTabs();\\n        options.active = this._initialActive();\\n\\n        // Take disabling tabs via class attribute from HTML\\n        // into account and update option properly.\\n        if ( $.isArray( options.disabled ) ) {\\n            options.disabled = $.unique( options.disabled.concat(\\n                $.map( this.tabs.filter( \\\".ui-state-disabled\\\" ), function( li ) {\\n                    return that.tabs.index( li );\\n                })\\n            ) ).sort();\\n        }\\n\\n        // check for length avoids error when initializing empty list\\n        if ( this.options.active !== false && this.anchors.length ) {\\n            this.active = this._findActive( options.active );\\n        } else {\\n            this.active = $();\\n        }\\n\\n        this._refresh();\\n\\n        if ( this.active.length ) {\\n            this.load( options.active );\\n        }\\n    },\\n\\n    _initialActive: function() {\\n        var active = this.options.active,\\n            collapsible = this.options.collapsible,\\n            locationHash = location.hash.substring( 1 );\\n\\n        if ( active === null ) {\\n            // check the fragment identifier in the URL\\n            if ( locationHash ) {\\n                this.tabs.each(function( i, tab ) {\\n                    if ( $( tab ).attr( \\\"aria-controls\\\" ) === locationHash ) {\\n                        active = i;\\n                        return false;\\n                    }\\n                });\\n            }\\n\\n            // check for a tab marked active via a class\\n            if ( active === null ) {\\n                active = this.tabs.index( this.tabs.filter( \\\".ui-tabs-active\\\" ) );\\n            }\\n\\n            // no active tab, set to false\\n            if ( active === null || active === -1 ) {\\n                active = this.tabs.length ? 0 : false;\\n            }\\n        }\\n\\n        // handle numbers: negative, out of range\\n        if ( active !== false ) {\\n            active = this.tabs.index( this.tabs.eq( active ) );\\n            if ( active === -1 ) {\\n                active = collapsible ? false : 0;\\n            }\\n        }\\n\\n        // don't allow collapsible: false and active: false\\n        if ( !collapsible && active === false && this.anchors.length ) {\\n            active = 0;\\n        }\\n\\n        return active;\\n    },\\n\\n    _getCreateEventData: function() {\\n        return {\\n            tab: this.active,\\n            panel: !this.active.length ? $() : this._getPanelForTab( this.active )\\n        };\\n    },\\n\\n    _tabKeydown: function( event ) {\\n        var focusedTab = $( this.document[0].activeElement ).closest( \\\"li\\\" ),\\n            selectedIndex = this.tabs.index( focusedTab ),\\n            goingForward = true;\\n\\n        if ( this._handlePageNav( event ) ) {\\n            return;\\n        }\\n\\n        switch ( event.keyCode ) {\\n            case $.ui.keyCode.RIGHT:\\n            case $.ui.keyCode.DOWN:\\n                selectedIndex++;\\n                break;\\n            case $.ui.keyCode.UP:\\n            case $.ui.keyCode.LEFT:\\n                goingForward = false;\\n                selectedIndex--;\\n                break;\\n            case $.ui.keyCode.END:\\n                selectedIndex = this.anchors.length - 1;\\n                break;\\n            case $.ui.keyCode.HOME:\\n                selectedIndex = 0;\\n                break;\\n            case $.ui.keyCode.SPACE:\\n                // Activate only, no collapsing\\n                event.preventDefault();\\n                clearTimeout( this.activating );\\n                this._activate( selectedIndex );\\n                return;\\n            case $.ui.keyCode.ENTER:\\n                // Toggle (cancel delayed activation, allow collapsing)\\n                event.preventDefault();\\n                clearTimeout( this.activating );\\n                // Determine if we should collapse or activate\\n                this._activate( selectedIndex === this.options.active ? false : selectedIndex );\\n                return;\\n            default:\\n                return;\\n        }\\n\\n        // Focus the appropriate tab, based on which key was pressed\\n        event.preventDefault();\\n        clearTimeout( this.activating );\\n        selectedIndex = this._focusNextTab( selectedIndex, goingForward );\\n\\n        // Navigating with control key will prevent automatic activation\\n        if ( !event.ctrlKey ) {\\n            // Update aria-selected immediately so that AT think the tab is already selected.\\n            // Otherwise AT may confuse the user by stating that they need to activate the tab,\\n            // but the tab will already be activated by the time the announcement finishes.\\n            focusedTab.attr( \\\"aria-selected\\\", \\\"false\\\" );\\n            this.tabs.eq( selectedIndex ).attr( \\\"aria-selected\\\", \\\"true\\\" );\\n\\n            this.activating = this._delay(function() {\\n                this.option( \\\"active\\\", selectedIndex );\\n            }, this.delay );\\n        }\\n    },\\n\\n    _panelKeydown: function( event ) {\\n        if ( this._handlePageNav( event ) ) {\\n            return;\\n        }\\n\\n        // Ctrl+up moves focus to the current tab\\n        if ( event.ctrlKey && event.keyCode === $.ui.keyCode.UP ) {\\n            event.preventDefault();\\n            this.active.focus();\\n        }\\n    },\\n\\n    // Alt+page up/down moves focus to the previous/next tab (and activates)\\n    _handlePageNav: function( event ) {\\n        if ( event.altKey && event.keyCode === $.ui.keyCode.PAGE_UP ) {\\n            this._activate( this._focusNextTab( this.options.active - 1, false ) );\\n            return true;\\n        }\\n        if ( event.altKey && event.keyCode === $.ui.keyCode.PAGE_DOWN ) {\\n            this._activate( this._focusNextTab( this.options.active + 1, true ) );\\n            return true;\\n        }\\n    },\\n\\n    _findNextTab: function( index, goingForward ) {\\n        var lastTabIndex = this.tabs.length - 1;\\n\\n        function constrain() {\\n            if ( index > lastTabIndex ) {\\n                index = 0;\\n            }\\n            if ( index < 0 ) {\\n                index = lastTabIndex;\\n            }\\n            return index;\\n        }\\n\\n        while ( $.inArray( constrain(), this.options.disabled ) !== -1 ) {\\n            index = goingForward ? index + 1 : index - 1;\\n        }\\n\\n        return index;\\n    },\\n\\n    _focusNextTab: function( index, goingForward ) {\\n        index = this._findNextTab( index, goingForward );\\n        this.tabs.eq( index ).focus();\\n        return index;\\n    },\\n\\n    _setOption: function( key, value ) {\\n        if ( key === \\\"active\\\" ) {\\n            // _activate() will handle invalid values and update this.options\\n            this._activate( value );\\n            return;\\n        }\\n\\n        if ( key === \\\"disabled\\\" ) {\\n            // don't use the widget factory's disabled handling\\n            this._setupDisabled( value );\\n            return;\\n        }\\n\\n        this._super( key, value);\\n\\n        if ( key === \\\"collapsible\\\" ) {\\n            this.element.toggleClass( \\\"ui-tabs-collapsible\\\", value );\\n            // Setting collapsible: false while collapsed; open first panel\\n            if ( !value && this.options.active === false ) {\\n                this._activate( 0 );\\n            }\\n        }\\n\\n        if ( key === \\\"event\\\" ) {\\n            this._setupEvents( value );\\n        }\\n\\n        if ( key === \\\"heightStyle\\\" ) {\\n            this._setupHeightStyle( value );\\n        }\\n    },\\n\\n    _tabId: function( tab ) {\\n        return tab.attr( \\\"aria-controls\\\" ) || \\\"ui-tabs-\\\" + getNextTabId();\\n    },\\n\\n    _sanitizeSelector: function( hash ) {\\n        return hash ? hash.replace( /[!\\\"$%&'()*+,.\\\\/:;<=>?@\\\\[\\\\]\\\\^`{|}~]/g, \\\"\\\\\\\\$&\\\" ) : \\\"\\\";\\n    },\\n\\n    refresh: function() {\\n        var options = this.options,\\n            lis = this.tablist.children( \\\":has(a[href])\\\" );\\n\\n        // get disabled tabs from class attribute from HTML\\n        // this will get converted to a boolean if needed in _refresh()\\n        options.disabled = $.map( lis.filter( \\\".ui-state-disabled\\\" ), function( tab ) {\\n            return lis.index( tab );\\n        });\\n\\n        this._processTabs();\\n\\n        // was collapsed or no tabs\\n        if ( options.active === false || !this.anchors.length ) {\\n            options.active = false;\\n            this.active = $();\\n        // was active, but active tab is gone\\n        } else if ( this.active.length && !$.contains( this.tablist[ 0 ], this.active[ 0 ] ) ) {\\n            // all remaining tabs are disabled\\n            if ( this.tabs.length === options.disabled.length ) {\\n                options.active = false;\\n                this.active = $();\\n            // activate previous tab\\n            } else {\\n                this._activate( this._findNextTab( Math.max( 0, options.active - 1 ), false ) );\\n            }\\n        // was active, active tab still exists\\n        } else {\\n            // make sure active index is correct\\n            options.active = this.tabs.index( this.active );\\n        }\\n\\n        this._refresh();\\n    },\\n\\n    _refresh: function() {\\n        this._setupDisabled( this.options.disabled );\\n        this._setupEvents( this.options.event );\\n        this._setupHeightStyle( this.options.heightStyle );\\n\\n        this.tabs.not( this.active ).attr({\\n            \\\"aria-selected\\\": \\\"false\\\",\\n            tabIndex: -1\\n        });\\n        this.panels.not( this._getPanelForTab( this.active ) )\\n            .hide()\\n            .attr({\\n                \\\"aria-expanded\\\": \\\"false\\\",\\n                \\\"aria-hidden\\\": \\\"true\\\"\\n            });\\n\\n        // Make sure one tab is in the tab order\\n        if ( !this.active.length ) {\\n            this.tabs.eq( 0 ).attr( \\\"tabIndex\\\", 0 );\\n        } else {\\n            this.active\\n                .addClass( \\\"ui-tabs-active ui-state-active\\\" )\\n                .attr({\\n                    \\\"aria-selected\\\": \\\"true\\\",\\n                    tabIndex: 0\\n                });\\n            this._getPanelForTab( this.active )\\n                .show()\\n                .attr({\\n                    \\\"aria-expanded\\\": \\\"true\\\",\\n                    \\\"aria-hidden\\\": \\\"false\\\"\\n                });\\n        }\\n    },\\n\\n    _processTabs: function() {\\n        var that = this;\\n\\n        this.tablist = this._getList()\\n            .addClass( \\\"ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all\\\" )\\n            .attr( \\\"role\\\", \\\"tablist\\\" );\\n\\n        this.tabs = this.tablist.find( \\\"> li:has(a[href])\\\" )\\n            .addClass( \\\"ui-state-default ui-corner-top\\\" )\\n            .attr({\\n                role: \\\"tab\\\",\\n                tabIndex: -1\\n            });\\n\\n        this.anchors = this.tabs.map(function() {\\n                return $( \\\"a\\\", this )[ 0 ];\\n            })\\n            .addClass( \\\"ui-tabs-anchor\\\" )\\n            .attr({\\n                role: \\\"presentation\\\",\\n                tabIndex: -1\\n            });\\n\\n        this.panels = $();\\n\\n        this.anchors.each(function( i, anchor ) {\\n            var selector, panel, panelId,\\n                anchorId = $( anchor ).uniqueId().attr( \\\"id\\\" ),\\n                tab = $( anchor ).closest( \\\"li\\\" ),\\n                originalAriaControls = tab.attr( \\\"aria-controls\\\" );\\n\\n            // inline tab\\n            if ( isLocal( anchor ) ) {\\n                selector = anchor.hash;\\n                panel = that.element.find( that._sanitizeSelector( selector ) );\\n            // remote tab\\n            } else {\\n                panelId = that._tabId( tab );\\n                selector = \\\"#\\\" + panelId;\\n                panel = that.element.find( selector );\\n                if ( !panel.length ) {\\n                    panel = that._createPanel( panelId );\\n                    panel.insertAfter( that.panels[ i - 1 ] || that.tablist );\\n                }\\n                panel.attr( \\\"aria-live\\\", \\\"polite\\\" );\\n            }\\n\\n            if ( panel.length) {\\n                that.panels = that.panels.add( panel );\\n            }\\n            if ( originalAriaControls ) {\\n                tab.data( \\\"ui-tabs-aria-controls\\\", originalAriaControls );\\n            }\\n            tab.attr({\\n                \\\"aria-controls\\\": selector.substring( 1 ),\\n                \\\"aria-labelledby\\\": anchorId\\n            });\\n            panel.attr( \\\"aria-labelledby\\\", anchorId );\\n        });\\n\\n        this.panels\\n            .addClass( \\\"ui-tabs-panel ui-widget-content ui-corner-bottom\\\" )\\n            .attr( \\\"role\\\", \\\"tabpanel\\\" );\\n    },\\n\\n    // allow overriding how to find the list for rare usage scenarios (#7715)\\n    _getList: function() {\\n        return this.tablist || this.element.find( \\\"ol,ul\\\" ).eq( 0 );\\n    },\\n\\n    _createPanel: function( id ) {\\n        return $( \\\"<div>\\\" )\\n            .attr( \\\"id\\\", id )\\n            .addClass( \\\"ui-tabs-panel ui-widget-content ui-corner-bottom\\\" )\\n            .data( \\\"ui-tabs-destroy\\\", true );\\n    },\\n\\n    _setupDisabled: function( disabled ) {\\n        if ( $.isArray( disabled ) ) {\\n            if ( !disabled.length ) {\\n                disabled = false;\\n            } else if ( disabled.length === this.anchors.length ) {\\n                disabled = true;\\n            }\\n        }\\n\\n        // disable tabs\\n        for ( var i = 0, li; ( li = this.tabs[ i ] ); i++ ) {\\n            if ( disabled === true || $.inArray( i, disabled ) !== -1 ) {\\n                $( li )\\n                    .addClass( \\\"ui-state-disabled\\\" )\\n                    .attr( \\\"aria-disabled\\\", \\\"true\\\" );\\n            } else {\\n                $( li )\\n                    .removeClass( \\\"ui-state-disabled\\\" )\\n                    .removeAttr( \\\"aria-disabled\\\" );\\n            }\\n        }\\n\\n        this.options.disabled = disabled;\\n    },\\n\\n    _setupEvents: function( event ) {\\n        var events = {\\n            click: function( event ) {\\n                event.preventDefault();\\n            }\\n        };\\n        if ( event ) {\\n            $.each( event.split(\\\" \\\"), function( index, eventName ) {\\n                events[ eventName ] = \\\"_eventHandler\\\";\\n            });\\n        }\\n\\n        this._off( this.anchors.add( this.tabs ).add( this.panels ) );\\n        this._on( this.anchors, events );\\n        this._on( this.tabs, { keydown: \\\"_tabKeydown\\\" } );\\n        this._on( this.panels, { keydown: \\\"_panelKeydown\\\" } );\\n\\n        this._focusable( this.tabs );\\n        this._hoverable( this.tabs );\\n    },\\n\\n    _setupHeightStyle: function( heightStyle ) {\\n        var maxHeight,\\n            parent = this.element.parent();\\n\\n        if ( heightStyle === \\\"fill\\\" ) {\\n            maxHeight = parent.height();\\n            maxHeight -= this.element.outerHeight() - this.element.height();\\n\\n            this.element.siblings( \\\":visible\\\" ).each(function() {\\n                var elem = $( this ),\\n                    position = elem.css( \\\"position\\\" );\\n\\n                if ( position === \\\"absolute\\\" || position === \\\"fixed\\\" ) {\\n                    return;\\n                }\\n                maxHeight -= elem.outerHeight( true );\\n            });\\n\\n            this.element.children().not( this.panels ).each(function() {\\n                maxHeight -= $( this ).outerHeight( true );\\n            });\\n\\n            this.panels.each(function() {\\n                $( this ).height( Math.max( 0, maxHeight -\\n                    $( this ).innerHeight() + $( this ).height() ) );\\n            })\\n            .css( \\\"overflow\\\", \\\"auto\\\" );\\n        } else if ( heightStyle === \\\"auto\\\" ) {\\n            maxHeight = 0;\\n            this.panels.each(function() {\\n                maxHeight = Math.max( maxHeight, $( this ).height( \\\"\\\" ).height() );\\n            }).height( maxHeight );\\n        }\\n    },\\n\\n    _eventHandler: function( event ) {\\n        var options = this.options,\\n            active = this.active,\\n            anchor = $( event.currentTarget ),\\n            tab = anchor.closest( \\\"li\\\" ),\\n            clickedIsActive = tab[ 0 ] === active[ 0 ],\\n            collapsing = clickedIsActive && options.collapsible,\\n            toShow = collapsing ? $() : this._getPanelForTab( tab ),\\n            toHide = !active.length ? $() : this._getPanelForTab( active ),\\n            eventData = {\\n                oldTab: active,\\n                oldPanel: toHide,\\n                newTab: collapsing ? $() : tab,\\n                newPanel: toShow\\n            };\\n\\n        event.preventDefault();\\n\\n        if ( tab.hasClass( \\\"ui-state-disabled\\\" ) ||\\n                // tab is already loading\\n                tab.hasClass( \\\"ui-tabs-loading\\\" ) ||\\n                // can't switch durning an animation\\n                this.running ||\\n                // click on active header, but not collapsible\\n                ( clickedIsActive && !options.collapsible ) ||\\n                // allow canceling activation\\n                ( this._trigger( \\\"beforeActivate\\\", event, eventData ) === false ) ) {\\n            return;\\n        }\\n\\n        options.active = collapsing ? false : this.tabs.index( tab );\\n\\n        this.active = clickedIsActive ? $() : tab;\\n        if ( this.xhr ) {\\n            this.xhr.abort();\\n        }\\n\\n        if ( !toHide.length && !toShow.length ) {\\n            $.error( \\\"jQuery UI Tabs: Mismatching fragment identifier.\\\" );\\n        }\\n\\n        if ( toShow.length ) {\\n            this.load( this.tabs.index( tab ), event );\\n        }\\n        this._toggle( event, eventData );\\n    },\\n\\n    // handles show/hide for selecting tabs\\n    _toggle: function( event, eventData ) {\\n        var that = this,\\n            toShow = eventData.newPanel,\\n            toHide = eventData.oldPanel;\\n\\n        this.running = true;\\n\\n        function complete() {\\n            that.running = false;\\n            that._trigger( \\\"activate\\\", event, eventData );\\n        }\\n\\n        function show() {\\n            eventData.newTab.closest( \\\"li\\\" ).addClass( \\\"ui-tabs-active ui-state-active\\\" );\\n\\n            if ( toShow.length && that.options.show ) {\\n                that._show( toShow, that.options.show, complete );\\n            } else {\\n                toShow.show();\\n                complete();\\n            }\\n        }\\n\\n        // start out by hiding, then showing, then completing\\n        if ( toHide.length && this.options.hide ) {\\n            this._hide( toHide, this.options.hide, function() {\\n                eventData.oldTab.closest( \\\"li\\\" ).removeClass( \\\"ui-tabs-active ui-state-active\\\" );\\n                show();\\n            });\\n        } else {\\n            eventData.oldTab.closest( \\\"li\\\" ).removeClass( \\\"ui-tabs-active ui-state-active\\\" );\\n            toHide.hide();\\n            show();\\n        }\\n\\n        toHide.attr({\\n            \\\"aria-expanded\\\": \\\"false\\\",\\n            \\\"aria-hidden\\\": \\\"true\\\"\\n        });\\n        eventData.oldTab.attr( \\\"aria-selected\\\", \\\"false\\\" );\\n        // If we're switching tabs, remove the old tab from the tab order.\\n        // If we're opening from collapsed state, remove the previous tab from the tab order.\\n        // If we're collapsing, then keep the collapsing tab in the tab order.\\n        if ( toShow.length && toHide.length ) {\\n            eventData.oldTab.attr( \\\"tabIndex\\\", -1 );\\n        } else if ( toShow.length ) {\\n            this.tabs.filter(function() {\\n                return $( this ).attr( \\\"tabIndex\\\" ) === 0;\\n            })\\n            .attr( \\\"tabIndex\\\", -1 );\\n        }\\n\\n        toShow.attr({\\n            \\\"aria-expanded\\\": \\\"true\\\",\\n            \\\"aria-hidden\\\": \\\"false\\\"\\n        });\\n        eventData.newTab.attr({\\n            \\\"aria-selected\\\": \\\"true\\\",\\n            tabIndex: 0\\n        });\\n    },\\n\\n    _activate: function( index ) {\\n        var anchor,\\n            active = this._findActive( index );\\n\\n        // trying to activate the already active panel\\n        if ( active[ 0 ] === this.active[ 0 ] ) {\\n            return;\\n        }\\n\\n        // trying to collapse, simulate a click on the current active header\\n        if ( !active.length ) {\\n            active = this.active;\\n        }\\n\\n        anchor = active.find( \\\".ui-tabs-anchor\\\" )[ 0 ];\\n        this._eventHandler({\\n            target: anchor,\\n            currentTarget: anchor,\\n            preventDefault: $.noop\\n        });\\n    },\\n\\n    _findActive: function( index ) {\\n        return index === false ? $() : this.tabs.eq( index );\\n    },\\n\\n    _getIndex: function( index ) {\\n        // meta-function to give users option to provide a href string instead of a numerical index.\\n        if ( typeof index === \\\"string\\\" ) {\\n            index = this.anchors.index( this.anchors.filter( \\\"[href$='\\\" + index + \\\"']\\\" ) );\\n        }\\n\\n        return index;\\n    },\\n\\n    _destroy: function() {\\n        if ( this.xhr ) {\\n            this.xhr.abort();\\n        }\\n\\n        this.element.removeClass( \\\"ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible\\\" );\\n\\n        this.tablist\\n            .removeClass( \\\"ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all\\\" )\\n            .removeAttr( \\\"role\\\" );\\n\\n        this.anchors\\n            .removeClass( \\\"ui-tabs-anchor\\\" )\\n            .removeAttr( \\\"role\\\" )\\n            .removeAttr( \\\"tabIndex\\\" )\\n            .removeUniqueId();\\n\\n        this.tabs.add( this.panels ).each(function() {\\n            if ( $.data( this, \\\"ui-tabs-destroy\\\" ) ) {\\n                $( this ).remove();\\n            } else {\\n                $( this )\\n                    .removeClass( \\\"ui-state-default ui-state-active ui-state-disabled \\\" +\\n                        \\\"ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel\\\" )\\n                    .removeAttr( \\\"tabIndex\\\" )\\n                    .removeAttr( \\\"aria-live\\\" )\\n                    .removeAttr( \\\"aria-busy\\\" )\\n                    .removeAttr( \\\"aria-selected\\\" )\\n                    .removeAttr( \\\"aria-labelledby\\\" )\\n                    .removeAttr( \\\"aria-hidden\\\" )\\n                    .removeAttr( \\\"aria-expanded\\\" )\\n                    .removeAttr( \\\"role\\\" );\\n            }\\n        });\\n\\n        this.tabs.each(function() {\\n            var li = $( this ),\\n                prev = li.data( \\\"ui-tabs-aria-controls\\\" );\\n            if ( prev ) {\\n                li\\n                    .attr( \\\"aria-controls\\\", prev )\\n                    .removeData( \\\"ui-tabs-aria-controls\\\" );\\n            } else {\\n                li.removeAttr( \\\"aria-controls\\\" );\\n            }\\n        });\\n\\n        this.panels.show();\\n\\n        if ( this.options.heightStyle !== \\\"content\\\" ) {\\n            this.panels.css( \\\"height\\\", \\\"\\\" );\\n        }\\n    },\\n\\n    enable: function( index ) {\\n        var disabled = this.options.disabled;\\n        if ( disabled === false ) {\\n            return;\\n        }\\n\\n        if ( index === undefined ) {\\n            disabled = false;\\n        } else {\\n            index = this._getIndex( index );\\n            if ( $.isArray( disabled ) ) {\\n                disabled = $.map( disabled, function( num ) {\\n                    return num !== index ? num : null;\\n                });\\n            } else {\\n                disabled = $.map( this.tabs, function( li, num ) {\\n                    return num !== index ? num : null;\\n                });\\n            }\\n        }\\n        this._setupDisabled( disabled );\\n    },\\n\\n    disable: function( index ) {\\n        var disabled = this.options.disabled;\\n        if ( disabled === true ) {\\n            return;\\n        }\\n\\n        if ( index === undefined ) {\\n            disabled = true;\\n        } else {\\n            index = this._getIndex( index );\\n            if ( $.inArray( index, disabled ) !== -1 ) {\\n                return;\\n            }\\n            if ( $.isArray( disabled ) ) {\\n                disabled = $.merge( [ index ], disabled ).sort();\\n            } else {\\n                disabled = [ index ];\\n            }\\n        }\\n        this._setupDisabled( disabled );\\n    },\\n\\n    load: function( index, event ) {\\n        index = this._getIndex( index );\\n        var that = this,\\n            tab = this.tabs.eq( index ),\\n            anchor = tab.find( \\\".ui-tabs-anchor\\\" ),\\n            panel = this._getPanelForTab( tab ),\\n            eventData = {\\n                tab: tab,\\n                panel: panel\\n            };\\n\\n        // not remote\\n        if ( isLocal( anchor[ 0 ] ) ) {\\n            return;\\n        }\\n\\n        this.xhr = $.ajax( this._ajaxSettings( anchor, event, eventData ) );\\n\\n        // support: jQuery <1.8\\n        // jQuery <1.8 returns false if the request is canceled in beforeSend,\\n        // but as of 1.8, $.ajax() always returns a jqXHR object.\\n        if ( this.xhr && this.xhr.statusText !== \\\"canceled\\\" ) {\\n            tab.addClass( \\\"ui-tabs-loading\\\" );\\n            panel.attr( \\\"aria-busy\\\", \\\"true\\\" );\\n\\n            this.xhr\\n                .success(function( response ) {\\n                    // support: jQuery <1.8\\n                    // http://bugs.jquery.com/ticket/11778\\n                    setTimeout(function() {\\n                        panel.html( response );\\n                        that._trigger( \\\"load\\\", event, eventData );\\n                    }, 1 );\\n                })\\n                .complete(function( jqXHR, status ) {\\n                    // support: jQuery <1.8\\n                    // http://bugs.jquery.com/ticket/11778\\n                    setTimeout(function() {\\n                        if ( status === \\\"abort\\\" ) {\\n                            that.panels.stop( false, true );\\n                        }\\n\\n                        tab.removeClass( \\\"ui-tabs-loading\\\" );\\n                        panel.removeAttr( \\\"aria-busy\\\" );\\n\\n                        if ( jqXHR === that.xhr ) {\\n                            delete that.xhr;\\n                        }\\n                    }, 1 );\\n                });\\n        }\\n    },\\n\\n    _ajaxSettings: function( anchor, event, eventData ) {\\n        var that = this;\\n        return {\\n            url: anchor.attr( \\\"href\\\" ),\\n            beforeSend: function( jqXHR, settings ) {\\n                return that._trigger( \\\"beforeLoad\\\", event,\\n                    $.extend( { jqXHR : jqXHR, ajaxSettings: settings }, eventData ) );\\n            }\\n        };\\n    },\\n\\n    _getPanelForTab: function( tab ) {\\n        var id = $( tab ).attr( \\\"aria-controls\\\" );\\n        return this.element.find( this._sanitizeSelector( \\\"#\\\" + id ) );\\n    }\\n});\\n\\n})( jQuery );\\n(function( $ ) {\\n\\nvar increments = 0;\\n\\nfunction addDescribedBy( elem, id ) {\\n    var describedby = (elem.attr( \\\"aria-describedby\\\" ) || \\\"\\\").split( /\\\\s+/ );\\n    describedby.push( id );\\n    elem\\n        .data( \\\"ui-tooltip-id\\\", id )\\n        .attr( \\\"aria-describedby\\\", $.trim( describedby.join( \\\" \\\" ) ) );\\n}\\n\\nfunction removeDescribedBy( elem ) {\\n    var id = elem.data( \\\"ui-tooltip-id\\\" ),\\n        describedby = (elem.attr( \\\"aria-describedby\\\" ) || \\\"\\\").split( /\\\\s+/ ),\\n        index = $.inArray( id, describedby );\\n    if ( index !== -1 ) {\\n        describedby.splice( index, 1 );\\n    }\\n\\n    elem.removeData( \\\"ui-tooltip-id\\\" );\\n    describedby = $.trim( describedby.join( \\\" \\\" ) );\\n    if ( describedby ) {\\n        elem.attr( \\\"aria-describedby\\\", describedby );\\n    } else {\\n        elem.removeAttr( \\\"aria-describedby\\\" );\\n    }\\n}\\n\\n$.widget( \\\"ui.tooltip\\\", {\\n    version: \\\"1.10.4\\\",\\n    options: {\\n        content: function() {\\n            // support: IE<9, Opera in jQuery <1.7\\n            // .text() can't accept undefined, so coerce to a string\\n            var title = $( this ).attr( \\\"title\\\" ) || \\\"\\\";\\n            // Escape title, since we're going from an attribute to raw HTML\\n            return $( \\\"<a>\\\" ).text( title ).html();\\n        },\\n        hide: true,\\n        // Disabled elements have inconsistent behavior across browsers (#8661)\\n        items: \\\"[title]:not([disabled])\\\",\\n        position: {\\n            my: \\\"left top+15\\\",\\n            at: \\\"left bottom\\\",\\n            collision: \\\"flipfit flip\\\"\\n        },\\n        show: true,\\n        tooltipClass: null,\\n        track: false,\\n\\n        // callbacks\\n        close: null,\\n        open: null\\n    },\\n\\n    _create: function() {\\n        this._on({\\n            mouseover: \\\"open\\\",\\n            focusin: \\\"open\\\"\\n        });\\n\\n        // IDs of generated tooltips, needed for destroy\\n        this.tooltips = {};\\n        // IDs of parent tooltips where we removed the title attribute\\n        this.parents = {};\\n\\n        if ( this.options.disabled ) {\\n            this._disable();\\n        }\\n    },\\n\\n    _setOption: function( key, value ) {\\n        var that = this;\\n\\n        if ( key === \\\"disabled\\\" ) {\\n            this[ value ? \\\"_disable\\\" : \\\"_enable\\\" ]();\\n            this.options[ key ] = value;\\n            // disable element style changes\\n            return;\\n        }\\n\\n        this._super( key, value );\\n\\n        if ( key === \\\"content\\\" ) {\\n            $.each( this.tooltips, function( id, element ) {\\n                that._updateContent( element );\\n            });\\n        }\\n    },\\n\\n    _disable: function() {\\n        var that = this;\\n\\n        // close open tooltips\\n        $.each( this.tooltips, function( id, element ) {\\n            var event = $.Event( \\\"blur\\\" );\\n            event.target = event.currentTarget = element[0];\\n            that.close( event, true );\\n        });\\n\\n        // remove title attributes to prevent native tooltips\\n        this.element.find( this.options.items ).addBack().each(function() {\\n            var element = $( this );\\n            if ( element.is( \\\"[title]\\\" ) ) {\\n                element\\n                    .data( \\\"ui-tooltip-title\\\", element.attr( \\\"title\\\" ) )\\n                    .attr( \\\"title\\\", \\\"\\\" );\\n            }\\n        });\\n    },\\n\\n    _enable: function() {\\n        // restore title attributes\\n        this.element.find( this.options.items ).addBack().each(function() {\\n            var element = $( this );\\n            if ( element.data( \\\"ui-tooltip-title\\\" ) ) {\\n                element.attr( \\\"title\\\", element.data( \\\"ui-tooltip-title\\\" ) );\\n            }\\n        });\\n    },\\n\\n    open: function( event ) {\\n        var that = this,\\n            target = $( event ? event.target : this.element )\\n                // we need closest here due to mouseover bubbling,\\n                // but always pointing at the same event target\\n                .closest( this.options.items );\\n\\n        // No element to show a tooltip for or the tooltip is already open\\n        if ( !target.length || target.data( \\\"ui-tooltip-id\\\" ) ) {\\n            return;\\n        }\\n\\n        if ( target.attr( \\\"title\\\" ) ) {\\n            target.data( \\\"ui-tooltip-title\\\", target.attr( \\\"title\\\" ) );\\n        }\\n\\n        target.data( \\\"ui-tooltip-open\\\", true );\\n\\n        // kill parent tooltips, custom or native, for hover\\n        if ( event && event.type === \\\"mouseover\\\" ) {\\n            target.parents().each(function() {\\n                var parent = $( this ),\\n                    blurEvent;\\n                if ( parent.data( \\\"ui-tooltip-open\\\" ) ) {\\n                    blurEvent = $.Event( \\\"blur\\\" );\\n                    blurEvent.target = blurEvent.currentTarget = this;\\n                    that.close( blurEvent, true );\\n                }\\n                if ( parent.attr( \\\"title\\\" ) ) {\\n                    parent.uniqueId();\\n                    that.parents[ this.id ] = {\\n                        element: this,\\n                        title: parent.attr( \\\"title\\\" )\\n                    };\\n                    parent.attr( \\\"title\\\", \\\"\\\" );\\n                }\\n            });\\n        }\\n\\n        this._updateContent( target, event );\\n    },\\n\\n    _updateContent: function( target, event ) {\\n        var content,\\n            contentOption = this.options.content,\\n            that = this,\\n            eventType = event ? event.type : null;\\n\\n        if ( typeof contentOption === \\\"string\\\" ) {\\n            return this._open( event, target, contentOption );\\n        }\\n\\n        content = contentOption.call( target[0], function( response ) {\\n            // ignore async response if tooltip was closed already\\n            if ( !target.data( \\\"ui-tooltip-open\\\" ) ) {\\n                return;\\n            }\\n            // IE may instantly serve a cached response for ajax requests\\n            // delay this call to _open so the other call to _open runs first\\n            that._delay(function() {\\n                // jQuery creates a special event for focusin when it doesn't\\n                // exist natively. To improve performance, the native event\\n                // object is reused and the type is changed. Therefore, we can't\\n                // rely on the type being correct after the event finished\\n                // bubbling, so we set it back to the previous value. (#8740)\\n                if ( event ) {\\n                    event.type = eventType;\\n                }\\n                this._open( event, target, response );\\n            });\\n        });\\n        if ( content ) {\\n            this._open( event, target, content );\\n        }\\n    },\\n\\n    _open: function( event, target, content ) {\\n        var tooltip, events, delayedShow,\\n            positionOption = $.extend( {}, this.options.position );\\n\\n        if ( !content ) {\\n            return;\\n        }\\n\\n        // Content can be updated multiple times. If the tooltip already\\n        // exists, then just update the content and bail.\\n        tooltip = this._find( target );\\n        if ( tooltip.length ) {\\n            tooltip.find( \\\".ui-tooltip-content\\\" ).html( content );\\n            return;\\n        }\\n\\n        // if we have a title, clear it to prevent the native tooltip\\n        // we have to check first to avoid defining a title if none exists\\n        // (we don't want to cause an element to start matching [title])\\n        //\\n        // We use removeAttr only for key events, to allow IE to export the correct\\n        // accessible attributes. For mouse events, set to empty string to avoid\\n        // native tooltip showing up (happens only when removing inside mouseover).\\n        if ( target.is( \\\"[title]\\\" ) ) {\\n            if ( event && event.type === \\\"mouseover\\\" ) {\\n                target.attr( \\\"title\\\", \\\"\\\" );\\n            } else {\\n                target.removeAttr( \\\"title\\\" );\\n            }\\n        }\\n\\n        tooltip = this._tooltip( target );\\n        addDescribedBy( target, tooltip.attr( \\\"id\\\" ) );\\n        tooltip.find( \\\".ui-tooltip-content\\\" ).html( content );\\n\\n        function position( event ) {\\n            positionOption.of = event;\\n            if ( tooltip.is( \\\":hidden\\\" ) ) {\\n                return;\\n            }\\n            tooltip.position( positionOption );\\n        }\\n        if ( this.options.track && event && /^mouse/.test( event.type ) ) {\\n            this._on( this.document, {\\n                mousemove: position\\n            });\\n            // trigger once to override element-relative positioning\\n            position( event );\\n        } else {\\n            tooltip.position( $.extend({\\n                of: target\\n            }, this.options.position ) );\\n        }\\n\\n        tooltip.hide();\\n\\n        this._show( tooltip, this.options.show );\\n        // Handle tracking tooltips that are shown with a delay (#8644). As soon\\n        // as the tooltip is visible, position the tooltip using the most recent\\n        // event.\\n        if ( this.options.show && this.options.show.delay ) {\\n            delayedShow = this.delayedShow = setInterval(function() {\\n                if ( tooltip.is( \\\":visible\\\" ) ) {\\n                    position( positionOption.of );\\n                    clearInterval( delayedShow );\\n                }\\n            }, $.fx.interval );\\n        }\\n\\n        this._trigger( \\\"open\\\", event, { tooltip: tooltip } );\\n\\n        events = {\\n            keyup: function( event ) {\\n                if ( event.keyCode === $.ui.keyCode.ESCAPE ) {\\n                    var fakeEvent = $.Event(event);\\n                    fakeEvent.currentTarget = target[0];\\n                    this.close( fakeEvent, true );\\n                }\\n            },\\n            remove: function() {\\n                this._removeTooltip( tooltip );\\n            }\\n        };\\n        if ( !event || event.type === \\\"mouseover\\\" ) {\\n            events.mouseleave = \\\"close\\\";\\n        }\\n        if ( !event || event.type === \\\"focusin\\\" ) {\\n            events.focusout = \\\"close\\\";\\n        }\\n        this._on( true, target, events );\\n    },\\n\\n    close: function( event ) {\\n        var that = this,\\n            target = $( event ? event.currentTarget : this.element ),\\n            tooltip = this._find( target );\\n\\n        // disabling closes the tooltip, so we need to track when we're closing\\n        // to avoid an infinite loop in case the tooltip becomes disabled on close\\n        if ( this.closing ) {\\n            return;\\n        }\\n\\n        // Clear the interval for delayed tracking tooltips\\n        clearInterval( this.delayedShow );\\n\\n        // only set title if we had one before (see comment in _open())\\n        if ( target.data( \\\"ui-tooltip-title\\\" ) ) {\\n            target.attr( \\\"title\\\", target.data( \\\"ui-tooltip-title\\\" ) );\\n        }\\n\\n        removeDescribedBy( target );\\n\\n        tooltip.stop( true );\\n        this._hide( tooltip, this.options.hide, function() {\\n            that._removeTooltip( $( this ) );\\n        });\\n\\n        target.removeData( \\\"ui-tooltip-open\\\" );\\n        this._off( target, \\\"mouseleave focusout keyup\\\" );\\n        // Remove 'remove' binding only on delegated targets\\n        if ( target[0] !== this.element[0] ) {\\n            this._off( target, \\\"remove\\\" );\\n        }\\n        this._off( this.document, \\\"mousemove\\\" );\\n\\n        if ( event && event.type === \\\"mouseleave\\\" ) {\\n            $.each( this.parents, function( id, parent ) {\\n                $( parent.element ).attr( \\\"title\\\", parent.title );\\n                delete that.parents[ id ];\\n            });\\n        }\\n\\n        this.closing = true;\\n        this._trigger( \\\"close\\\", event, { tooltip: tooltip } );\\n        this.closing = false;\\n    },\\n\\n    _tooltip: function( element ) {\\n        var id = \\\"ui-tooltip-\\\" + increments++,\\n            tooltip = $( \\\"<div>\\\" )\\n                .attr({\\n                    id: id,\\n                    role: \\\"tooltip\\\"\\n                })\\n                .addClass( \\\"ui-tooltip ui-widget ui-corner-all ui-widget-content \\\" +\\n                    ( this.options.tooltipClass || \\\"\\\" ) );\\n        $( \\\"<div>\\\" )\\n            .addClass( \\\"ui-tooltip-content\\\" )\\n            .appendTo( tooltip );\\n        tooltip.appendTo( this.document[0].body );\\n        this.tooltips[ id ] = element;\\n        return tooltip;\\n    },\\n\\n    _find: function( target ) {\\n        var id = target.data( \\\"ui-tooltip-id\\\" );\\n        return id ? $( \\\"#\\\" + id ) : $();\\n    },\\n\\n    _removeTooltip: function( tooltip ) {\\n        tooltip.remove();\\n        delete this.tooltips[ tooltip.attr( \\\"id\\\" ) ];\\n    },\\n\\n    _destroy: function() {\\n        var that = this;\\n\\n        // close open tooltips\\n        $.each( this.tooltips, function( id, element ) {\\n            // Delegate to close method to handle common cleanup\\n            var event = $.Event( \\\"blur\\\" );\\n            event.target = event.currentTarget = element[0];\\n            that.close( event, true );\\n\\n            // Remove immediately; destroying an open tooltip doesn't use the\\n            // hide animation\\n            $( \\\"#\\\" + id ).remove();\\n\\n            // Restore the title\\n            if ( element.data( \\\"ui-tooltip-title\\\" ) ) {\\n                element.attr( \\\"title\\\", element.data( \\\"ui-tooltip-title\\\" ) );\\n                element.removeData( \\\"ui-tooltip-title\\\" );\\n            }\\n        });\\n    }\\n});\\n\\n}( jQuery ) );\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// /home/cool/Music/personal_projects/Zmall/angbackuo/~/raw-loader!/home/cool/Music/personal_projects/Zmall/angbackuo/~/source-map-loader!/home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/hammer.js\n// module id = 1502\n// module chunks = 2","module.exports = \"/*! iCheck v1.0.2 by Damir Sultanov, http://git.io/arlzeA, MIT Licensed */\\n(function(f){function A(a,b,d){var c=a[0],g=/er/.test(d)?_indeterminate:/bl/.test(d)?n:k,e=d==_update?{checked:c[k],disabled:c[n],indeterminate:\\\"true\\\"==a.attr(_indeterminate)||\\\"false\\\"==a.attr(_determinate)}:c[g];if(/^(ch|di|in)/.test(d)&&!e)x(a,g);else if(/^(un|en|de)/.test(d)&&e)q(a,g);else if(d==_update)for(var f in e)e[f]?x(a,f,!0):q(a,f,!0);else if(!b||\\\"toggle\\\"==d){if(!b)a[_callback](\\\"ifClicked\\\");e?c[_type]!==r&&q(a,g):x(a,g)}}function x(a,b,d){var c=a[0],g=a.parent(),e=b==k,u=b==_indeterminate,\\nv=b==n,s=u?_determinate:e?y:\\\"enabled\\\",F=l(a,s+t(c[_type])),B=l(a,b+t(c[_type]));if(!0!==c[b]){if(!d&&b==k&&c[_type]==r&&c.name){var w=a.closest(\\\"form\\\"),p='input[name=\\\"'+c.name+'\\\"]',p=w.length?w.find(p):f(p);p.each(function(){this!==c&&f(this).data(m)&&q(f(this),b)})}u?(c[b]=!0,c[k]&&q(a,k,\\\"force\\\")):(d||(c[b]=!0),e&&c[_indeterminate]&&q(a,_indeterminate,!1));D(a,e,b,d)}c[n]&&l(a,_cursor,!0)&&g.find(\\\".\\\"+C).css(_cursor,\\\"default\\\");g[_add](B||l(a,b)||\\\"\\\");g.attr(\\\"role\\\")&&!u&&g.attr(\\\"aria-\\\"+(v?n:k),\\\"true\\\");\\ng[_remove](F||l(a,s)||\\\"\\\")}function q(a,b,d){var c=a[0],g=a.parent(),e=b==k,f=b==_indeterminate,m=b==n,s=f?_determinate:e?y:\\\"enabled\\\",q=l(a,s+t(c[_type])),r=l(a,b+t(c[_type]));if(!1!==c[b]){if(f||!d||\\\"force\\\"==d)c[b]=!1;D(a,e,s,d)}!c[n]&&l(a,_cursor,!0)&&g.find(\\\".\\\"+C).css(_cursor,\\\"pointer\\\");g[_remove](r||l(a,b)||\\\"\\\");g.attr(\\\"role\\\")&&!f&&g.attr(\\\"aria-\\\"+(m?n:k),\\\"false\\\");g[_add](q||l(a,s)||\\\"\\\")}function E(a,b){if(a.data(m)){a.parent().html(a.attr(\\\"style\\\",a.data(m).s||\\\"\\\"));if(b)a[_callback](b);a.off(\\\".i\\\").unwrap();\\nf(_label+'[for=\\\"'+a[0].id+'\\\"]').add(a.closest(_label)).off(\\\".i\\\")}}function l(a,b,f){if(a.data(m))return a.data(m).o[b+(f?\\\"\\\":\\\"Class\\\")]}function t(a){return a.charAt(0).toUpperCase()+a.slice(1)}function D(a,b,f,c){if(!c){if(b)a[_callback](\\\"ifToggled\\\");a[_callback](\\\"ifChanged\\\")[_callback](\\\"if\\\"+t(f))}}var m=\\\"iCheck\\\",C=m+\\\"-helper\\\",r=\\\"radio\\\",k=\\\"checked\\\",y=\\\"un\\\"+k,n=\\\"disabled\\\";_determinate=\\\"determinate\\\";_indeterminate=\\\"in\\\"+_determinate;_update=\\\"update\\\";_type=\\\"type\\\";_click=\\\"click\\\";_touch=\\\"touchbegin.i touchend.i\\\";\\n_add=\\\"addClass\\\";_remove=\\\"removeClass\\\";_callback=\\\"trigger\\\";_label=\\\"label\\\";_cursor=\\\"cursor\\\";_mobile=/ipad|iphone|ipod|android|blackberry|windows phone|opera mini|silk/i.test(navigator.userAgent);f.fn[m]=function(a,b){var d='input[type=\\\"checkbox\\\"], input[type=\\\"'+r+'\\\"]',c=f(),g=function(a){a.each(function(){var a=f(this);c=a.is(d)?c.add(a):c.add(a.find(d))})};if(/^(check|uncheck|toggle|indeterminate|determinate|disable|enable|update|destroy)$/i.test(a))return a=a.toLowerCase(),g(this),c.each(function(){var c=\\nf(this);\\\"destroy\\\"==a?E(c,\\\"ifDestroyed\\\"):A(c,!0,a);f.isFunction(b)&&b()});if(\\\"object\\\"!=typeof a&&a)return this;var e=f.extend({checkedClass:k,disabledClass:n,indeterminateClass:_indeterminate,labelHover:!0},a),l=e.handle,v=e.hoverClass||\\\"hover\\\",s=e.focusClass||\\\"focus\\\",t=e.activeClass||\\\"active\\\",B=!!e.labelHover,w=e.labelHoverClass||\\\"hover\\\",p=(\\\"\\\"+e.increaseArea).replace(\\\"%\\\",\\\"\\\")|0;if(\\\"checkbox\\\"==l||l==r)d='input[type=\\\"'+l+'\\\"]';-50>p&&(p=-50);g(this);return c.each(function(){var a=f(this);E(a);var c=this,\\nb=c.id,g=-p+\\\"%\\\",d=100+2*p+\\\"%\\\",d={position:\\\"absolute\\\",top:g,left:g,display:\\\"block\\\",width:d,height:d,margin:0,padding:0,background:\\\"#fff\\\",border:0,opacity:0},g=_mobile?{position:\\\"absolute\\\",visibility:\\\"hidden\\\"}:p?d:{position:\\\"absolute\\\",opacity:0},l=\\\"checkbox\\\"==c[_type]?e.checkboxClass||\\\"icheckbox\\\":e.radioClass||\\\"i\\\"+r,z=f(_label+'[for=\\\"'+b+'\\\"]').add(a.closest(_label)),u=!!e.aria,y=m+\\\"-\\\"+Math.random().toString(36).substr(2,6),h='<div class=\\\"'+l+'\\\" '+(u?'role=\\\"'+c[_type]+'\\\" ':\\\"\\\");u&&z.each(function(){h+=\\n'aria-labelledby=\\\"';this.id?h+=this.id:(this.id=y,h+=y);h+='\\\"'});h=a.wrap(h+\\\"/>\\\")[_callback](\\\"ifCreated\\\").parent().append(e.insert);d=f('<ins class=\\\"'+C+'\\\"/>').css(d).appendTo(h);a.data(m,{o:e,s:a.attr(\\\"style\\\")}).css(g);e.inheritClass&&h[_add](c.className||\\\"\\\");e.inheritID&&b&&h.attr(\\\"id\\\",m+\\\"-\\\"+b);\\\"static\\\"==h.css(\\\"position\\\")&&h.css(\\\"position\\\",\\\"relative\\\");A(a,!0,_update);if(z.length)z.on(_click+\\\".i mouseover.i mouseout.i \\\"+_touch,function(b){var d=b[_type],e=f(this);if(!c[n]){if(d==_click){if(f(b.target).is(\\\"a\\\"))return;\\nA(a,!1,!0)}else B&&(/ut|nd/.test(d)?(h[_remove](v),e[_remove](w)):(h[_add](v),e[_add](w)));if(_mobile)b.stopPropagation();else return!1}});a.on(_click+\\\".i focus.i blur.i keyup.i keydown.i keypress.i\\\",function(b){var d=b[_type];b=b.keyCode;if(d==_click)return!1;if(\\\"keydown\\\"==d&&32==b)return c[_type]==r&&c[k]||(c[k]?q(a,k):x(a,k)),!1;if(\\\"keyup\\\"==d&&c[_type]==r)!c[k]&&x(a,k);else if(/us|ur/.test(d))h[\\\"blur\\\"==d?_remove:_add](s)});d.on(_click+\\\" mousedown mouseup mouseover mouseout \\\"+_touch,function(b){var d=\\nb[_type],e=/wn|up/.test(d)?t:v;if(!c[n]){if(d==_click)A(a,!1,!0);else{if(/wn|er|in/.test(d))h[_add](e);else h[_remove](e+\\\" \\\"+t);if(z.length&&B&&e==v)z[/ut|nd/.test(d)?_remove:_add](w)}if(_mobile)b.stopPropagation();else return!1}})})}})(window.jQuery||window.Zepto);\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// /home/cool/Music/personal_projects/Zmall/angbackuo/~/raw-loader!/home/cool/Music/personal_projects/Zmall/angbackuo/~/source-map-loader!/home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/iCheck/icheck.min.js\n// module id = 1503\n// module chunks = 2","module.exports = \"/*!\\n * Jasny Bootstrap v3.1.2 (http://jasny.github.io/bootstrap)\\n * Copyright 2012-2014 Arnold Daniels\\n * Licensed under Apache-2.0 (https://github.com/jasny/bootstrap/blob/master/LICENSE)\\n */\\nif(\\\"undefined\\\"==typeof jQuery)throw new Error(\\\"Jasny Bootstrap's JavaScript requires jQuery\\\");+function(a){\\\"use strict\\\";function b(){var a=document.createElement(\\\"bootstrap\\\"),b={WebkitTransition:\\\"webkitTransitionEnd\\\",MozTransition:\\\"transitionend\\\",OTransition:\\\"oTransitionEnd otransitionend\\\",transition:\\\"transitionend\\\"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}void 0===a.support.transition&&(a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one(a.support.transition.end,function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b()}))}(window.jQuery),+function(a){\\\"use strict\\\";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d),this.state=null,this.placement=null,this.options.recalc&&(this.calcClone(),a(window).on(\\\"resize\\\",a.proxy(this.recalc,this))),this.options.autohide&&a(document).on(\\\"click\\\",a.proxy(this.autohide,this)),this.options.toggle&&this.toggle(),this.options.disablescrolling&&(this.options.disableScrolling=this.options.disablescrolling,delete this.options.disablescrolling)};b.DEFAULTS={toggle:!0,placement:\\\"auto\\\",autohide:!0,recalc:!0,disableScrolling:!0},b.prototype.offset=function(){switch(this.placement){case\\\"left\\\":case\\\"right\\\":return this.$element.outerWidth();case\\\"top\\\":case\\\"bottom\\\":return this.$element.outerHeight()}},b.prototype.calcPlacement=function(){function b(a,b){if(\\\"auto\\\"===e.css(b))return a;if(\\\"auto\\\"===e.css(a))return b;var c=parseInt(e.css(a),10),d=parseInt(e.css(b),10);return c>d?b:a}if(\\\"auto\\\"!==this.options.placement)return void(this.placement=this.options.placement);this.$element.hasClass(\\\"in\\\")||this.$element.css(\\\"visiblity\\\",\\\"hidden !important\\\").addClass(\\\"in\\\");var c=a(window).width()/this.$element.width(),d=a(window).height()/this.$element.height(),e=this.$element;this.placement=c>=d?b(\\\"left\\\",\\\"right\\\"):b(\\\"top\\\",\\\"bottom\\\"),\\\"hidden !important\\\"===this.$element.css(\\\"visibility\\\")&&this.$element.removeClass(\\\"in\\\").css(\\\"visiblity\\\",\\\"\\\")},b.prototype.opposite=function(a){switch(a){case\\\"top\\\":return\\\"bottom\\\";case\\\"left\\\":return\\\"right\\\";case\\\"bottom\\\":return\\\"top\\\";case\\\"right\\\":return\\\"left\\\"}},b.prototype.getCanvasElements=function(){var b=this.options.canvas?a(this.options.canvas):this.$element,c=b.find(\\\"*\\\").filter(function(){return\\\"fixed\\\"===a(this).css(\\\"position\\\")}).not(this.options.exclude);return b.add(c)},b.prototype.slide=function(b,c,d){if(!a.support.transition){var e={};return e[this.placement]=\\\"+=\\\"+c,b.animate(e,350,d)}var f=this.placement,g=this.opposite(f);b.each(function(){\\\"auto\\\"!==a(this).css(f)&&a(this).css(f,(parseInt(a(this).css(f),10)||0)+c),\\\"auto\\\"!==a(this).css(g)&&a(this).css(g,(parseInt(a(this).css(g),10)||0)-c)}),this.$element.one(a.support.transition.end,d).emulateTransitionEnd(350)},b.prototype.disableScrolling=function(){var b=a(\\\"body\\\").width(),c=\\\"padding-\\\"+this.opposite(this.placement);if(void 0===a(\\\"body\\\").data(\\\"offcanvas-style\\\")&&a(\\\"body\\\").data(\\\"offcanvas-style\\\",a(\\\"body\\\").attr(\\\"style\\\")),a(\\\"body\\\").css(\\\"overflow\\\",\\\"hidden\\\"),a(\\\"body\\\").width()>b){var d=parseInt(a(\\\"body\\\").css(c),10)+a(\\\"body\\\").width()-b;setTimeout(function(){a(\\\"body\\\").css(c,d)},1)}},b.prototype.show=function(){if(!this.state){var b=a.Event(\\\"show.bs.offcanvas\\\");if(this.$element.trigger(b),!b.isDefaultPrevented()){this.state=\\\"slide-in\\\",this.calcPlacement();var c=this.getCanvasElements(),d=this.placement,e=this.opposite(d),f=this.offset();-1!==c.index(this.$element)&&(a(this.$element).data(\\\"offcanvas-style\\\",a(this.$element).attr(\\\"style\\\")||\\\"\\\"),this.$element.css(d,-1*f),this.$element.css(d)),c.addClass(\\\"canvas-sliding\\\").each(function(){void 0===a(this).data(\\\"offcanvas-style\\\")&&a(this).data(\\\"offcanvas-style\\\",a(this).attr(\\\"style\\\")||\\\"\\\"),\\\"static\\\"===a(this).css(\\\"position\\\")&&a(this).css(\\\"position\\\",\\\"relative\\\"),\\\"auto\\\"!==a(this).css(d)&&\\\"0px\\\"!==a(this).css(d)||\\\"auto\\\"!==a(this).css(e)&&\\\"0px\\\"!==a(this).css(e)||a(this).css(d,0)}),this.options.disableScrolling&&this.disableScrolling();var g=function(){\\\"slide-in\\\"==this.state&&(this.state=\\\"slid\\\",c.removeClass(\\\"canvas-sliding\\\").addClass(\\\"canvas-slid\\\"),this.$element.trigger(\\\"shown.bs.offcanvas\\\"))};setTimeout(a.proxy(function(){this.$element.addClass(\\\"in\\\"),this.slide(c,f,a.proxy(g,this))},this),1)}}},b.prototype.hide=function(){if(\\\"slid\\\"===this.state){var b=a.Event(\\\"hide.bs.offcanvas\\\");if(this.$element.trigger(b),!b.isDefaultPrevented()){this.state=\\\"slide-out\\\";var c=a(\\\".canvas-slid\\\"),d=(this.placement,-1*this.offset()),e=function(){\\\"slide-out\\\"==this.state&&(this.state=null,this.placement=null,this.$element.removeClass(\\\"in\\\"),c.removeClass(\\\"canvas-sliding\\\"),c.add(this.$element).add(\\\"body\\\").each(function(){a(this).attr(\\\"style\\\",a(this).data(\\\"offcanvas-style\\\")).removeData(\\\"offcanvas-style\\\")}),this.$element.trigger(\\\"hidden.bs.offcanvas\\\"))};c.removeClass(\\\"canvas-slid\\\").addClass(\\\"canvas-sliding\\\"),setTimeout(a.proxy(function(){this.slide(c,d,a.proxy(e,this))},this),1)}}},b.prototype.toggle=function(){\\\"slide-in\\\"!==this.state&&\\\"slide-out\\\"!==this.state&&this[\\\"slid\\\"===this.state?\\\"hide\\\":\\\"show\\\"]()},b.prototype.calcClone=function(){this.$calcClone=this.$element.clone().html(\\\"\\\").addClass(\\\"offcanvas-clone\\\").removeClass(\\\"in\\\").appendTo(a(\\\"body\\\"))},b.prototype.recalc=function(){if(\\\"none\\\"!==this.$calcClone.css(\\\"display\\\")&&(\\\"slid\\\"===this.state||\\\"slide-in\\\"===this.state)){this.state=null,this.placement=null;var b=this.getCanvasElements();this.$element.removeClass(\\\"in\\\"),b.removeClass(\\\"canvas-slid\\\"),b.add(this.$element).add(\\\"body\\\").each(function(){a(this).attr(\\\"style\\\",a(this).data(\\\"offcanvas-style\\\")).removeData(\\\"offcanvas-style\\\")})}},b.prototype.autohide=function(b){0===a(b.target).closest(this.$element).length&&this.hide()};var c=a.fn.offcanvas;a.fn.offcanvas=function(c){return this.each(function(){var d=a(this),e=d.data(\\\"bs.offcanvas\\\"),f=a.extend({},b.DEFAULTS,d.data(),\\\"object\\\"==typeof c&&c);e||d.data(\\\"bs.offcanvas\\\",e=new b(this,f)),\\\"string\\\"==typeof c&&e[c]()})},a.fn.offcanvas.Constructor=b,a.fn.offcanvas.noConflict=function(){return a.fn.offcanvas=c,this},a(document).on(\\\"click.bs.offcanvas.data-api\\\",\\\"[data-toggle=offcanvas]\\\",function(b){var c,d=a(this),e=d.attr(\\\"data-target\\\")||b.preventDefault()||(c=d.attr(\\\"href\\\"))&&c.replace(/.*(?=#[^\\\\s]+$)/,\\\"\\\"),f=a(e),g=f.data(\\\"bs.offcanvas\\\"),h=g?\\\"toggle\\\":d.data();b.stopPropagation(),g?g.toggle():f.offcanvas(h)})}(window.jQuery),+function(a){\\\"use strict\\\";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d),this.$element.on(\\\"click.bs.rowlink\\\",\\\"td:not(.rowlink-skip)\\\",a.proxy(this.click,this))};b.DEFAULTS={target:\\\"a\\\"},b.prototype.click=function(b){var c=a(b.currentTarget).closest(\\\"tr\\\").find(this.options.target)[0];if(a(b.target)[0]!==c)if(b.preventDefault(),c.click)c.click();else if(document.createEvent){var d=document.createEvent(\\\"MouseEvents\\\");d.initMouseEvent(\\\"click\\\",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),c.dispatchEvent(d)}};var c=a.fn.rowlink;a.fn.rowlink=function(c){return this.each(function(){var d=a(this),e=d.data(\\\"rowlink\\\");e||d.data(\\\"rowlink\\\",e=new b(this,c))})},a.fn.rowlink.Constructor=b,a.fn.rowlink.noConflict=function(){return a.fn.rowlink=c,this},a(document).on(\\\"click.bs.rowlink.data-api\\\",'[data-link=\\\"row\\\"]',function(b){if(0===a(b.target).closest(\\\".rowlink-skip\\\").length){var c=a(this);c.data(\\\"rowlink\\\")||(c.rowlink(c.data()),a(b.target).trigger(\\\"click.bs.rowlink\\\"))}})}(window.jQuery),+function(a){\\\"use strict\\\";var b=void 0!==window.orientation,c=navigator.userAgent.toLowerCase().indexOf(\\\"android\\\")>-1,d=\\\"Microsoft Internet Explorer\\\"==window.navigator.appName,e=function(b,d){c||(this.$element=a(b),this.options=a.extend({},e.DEFAULTS,d),this.mask=String(this.options.mask),this.init(),this.listen(),this.checkVal())};e.DEFAULTS={mask:\\\"\\\",placeholder:\\\"_\\\",definitions:{9:\\\"[0-9]\\\",a:\\\"[A-Za-z]\\\",\\\"?\\\":\\\"[A-Za-z0-9]\\\",\\\"*\\\":\\\".\\\"}},e.prototype.init=function(){var b=this.options.definitions,c=this.mask.length;this.tests=[],this.partialPosition=this.mask.length,this.firstNonMaskPos=null,a.each(this.mask.split(\\\"\\\"),a.proxy(function(a,d){\\\"?\\\"==d?(c--,this.partialPosition=a):b[d]?(this.tests.push(new RegExp(b[d])),null===this.firstNonMaskPos&&(this.firstNonMaskPos=this.tests.length-1)):this.tests.push(null)},this)),this.buffer=a.map(this.mask.split(\\\"\\\"),a.proxy(function(a){return\\\"?\\\"!=a?b[a]?this.options.placeholder:a:void 0},this)),this.focusText=this.$element.val(),this.$element.data(\\\"rawMaskFn\\\",a.proxy(function(){return a.map(this.buffer,function(a,b){return this.tests[b]&&a!=this.options.placeholder?a:null}).join(\\\"\\\")},this))},e.prototype.listen=function(){if(!this.$element.attr(\\\"readonly\\\")){var b=(d?\\\"paste\\\":\\\"input\\\")+\\\".mask\\\";this.$element.on(\\\"unmask.bs.inputmask\\\",a.proxy(this.unmask,this)).on(\\\"focus.bs.inputmask\\\",a.proxy(this.focusEvent,this)).on(\\\"blur.bs.inputmask\\\",a.proxy(this.blurEvent,this)).on(\\\"keydown.bs.inputmask\\\",a.proxy(this.keydownEvent,this)).on(\\\"keypress.bs.inputmask\\\",a.proxy(this.keypressEvent,this)).on(b,a.proxy(this.pasteEvent,this))}},e.prototype.caret=function(a,b){if(0!==this.$element.length){if(\\\"number\\\"==typeof a)return b=\\\"number\\\"==typeof b?b:a,this.$element.each(function(){if(this.setSelectionRange)this.setSelectionRange(a,b);else if(this.createTextRange){var c=this.createTextRange();c.collapse(!0),c.moveEnd(\\\"character\\\",b),c.moveStart(\\\"character\\\",a),c.select()}});if(this.$element[0].setSelectionRange)a=this.$element[0].selectionStart,b=this.$element[0].selectionEnd;else if(document.selection&&document.selection.createRange){var c=document.selection.createRange();a=0-c.duplicate().moveStart(\\\"character\\\",-1e5),b=a+c.text.length}return{begin:a,end:b}}},e.prototype.seekNext=function(a){for(var b=this.mask.length;++a<=b&&!this.tests[a];);return a},e.prototype.seekPrev=function(a){for(;--a>=0&&!this.tests[a];);return a},e.prototype.shiftL=function(a,b){var c=this.mask.length;if(!(0>a)){for(var d=a,e=this.seekNext(b);c>d;d++)if(this.tests[d]){if(!(c>e&&this.tests[d].test(this.buffer[e])))break;this.buffer[d]=this.buffer[e],this.buffer[e]=this.options.placeholder,e=this.seekNext(e)}this.writeBuffer(),this.caret(Math.max(this.firstNonMaskPos,a))}},e.prototype.shiftR=function(a){for(var b=this.mask.length,c=a,d=this.options.placeholder;b>c;c++)if(this.tests[c]){var e=this.seekNext(c),f=this.buffer[c];if(this.buffer[c]=d,!(b>e&&this.tests[e].test(f)))break;d=f}},e.prototype.unmask=function(){this.$element.unbind(\\\".mask\\\").removeData(\\\"inputmask\\\")},e.prototype.focusEvent=function(){this.focusText=this.$element.val();var a=this.mask.length,b=this.checkVal();this.writeBuffer();var c=this,d=function(){b==a?c.caret(0,b):c.caret(b)};d(),setTimeout(d,50)},e.prototype.blurEvent=function(){this.checkVal(),this.$element.val()!==this.focusText&&this.$element.trigger(\\\"change\\\")},e.prototype.keydownEvent=function(a){var c=a.which;if(8==c||46==c||b&&127==c){var d=this.caret(),e=d.begin,f=d.end;return f-e===0&&(e=46!=c?this.seekPrev(e):f=this.seekNext(e-1),f=46==c?this.seekNext(f):f),this.clearBuffer(e,f),this.shiftL(e,f-1),!1}return 27==c?(this.$element.val(this.focusText),this.caret(0,this.checkVal()),!1):void 0},e.prototype.keypressEvent=function(a){var b=this.mask.length,c=a.which,d=this.caret();if(a.ctrlKey||a.altKey||a.metaKey||32>c)return!0;if(c){d.end-d.begin!==0&&(this.clearBuffer(d.begin,d.end),this.shiftL(d.begin,d.end-1));var e=this.seekNext(d.begin-1);if(b>e){var f=String.fromCharCode(c);if(this.tests[e].test(f)){this.shiftR(e),this.buffer[e]=f,this.writeBuffer();var g=this.seekNext(e);this.caret(g)}}return!1}},e.prototype.pasteEvent=function(){var a=this;setTimeout(function(){a.caret(a.checkVal(!0))},0)},e.prototype.clearBuffer=function(a,b){for(var c=this.mask.length,d=a;b>d&&c>d;d++)this.tests[d]&&(this.buffer[d]=this.options.placeholder)},e.prototype.writeBuffer=function(){return this.$element.val(this.buffer.join(\\\"\\\")).val()},e.prototype.checkVal=function(a){for(var b=this.mask.length,c=this.$element.val(),d=-1,e=0,f=0;b>e;e++)if(this.tests[e]){for(this.buffer[e]=this.options.placeholder;f++<c.length;){var g=c.charAt(f-1);if(this.tests[e].test(g)){this.buffer[e]=g,d=e;break}}if(f>c.length)break}else this.buffer[e]==c.charAt(f)&&e!=this.partialPosition&&(f++,d=e);return!a&&d+1<this.partialPosition?(this.$element.val(\\\"\\\"),this.clearBuffer(0,b)):(a||d+1>=this.partialPosition)&&(this.writeBuffer(),a||this.$element.val(this.$element.val().substring(0,d+1))),this.partialPosition?e:this.firstNonMaskPos};var f=a.fn.inputmask;a.fn.inputmask=function(b){return this.each(function(){var c=a(this),d=c.data(\\\"inputmask\\\");d||c.data(\\\"inputmask\\\",d=new e(this,b))})},a.fn.inputmask.Constructor=e,a.fn.inputmask.noConflict=function(){return a.fn.inputmask=f,this},a(document).on(\\\"focus.bs.inputmask.data-api\\\",\\\"[data-mask]\\\",function(){var b=a(this);b.data(\\\"inputmask\\\")||b.inputmask(b.data())})}(window.jQuery),+function(a){\\\"use strict\\\";var b=\\\"Microsoft Internet Explorer\\\"==window.navigator.appName,c=function(b,c){if(this.$element=a(b),this.$input=this.$element.find(\\\":file\\\"),0!==this.$input.length){this.name=this.$input.attr(\\\"name\\\")||c.name,this.$hidden=this.$element.find('input[type=hidden][name=\\\"'+this.name+'\\\"]'),0===this.$hidden.length&&(this.$hidden=a('<input type=\\\"hidden\\\">').insertBefore(this.$input)),this.$preview=this.$element.find(\\\".fileinput-preview\\\");var d=this.$preview.css(\\\"height\\\");\\\"inline\\\"!==this.$preview.css(\\\"display\\\")&&\\\"0px\\\"!==d&&\\\"none\\\"!==d&&this.$preview.css(\\\"line-height\\\",d),this.original={exists:this.$element.hasClass(\\\"fileinput-exists\\\"),preview:this.$preview.html(),hiddenVal:this.$hidden.val()},this.listen()}};c.prototype.listen=function(){this.$input.on(\\\"change.bs.fileinput\\\",a.proxy(this.change,this)),a(this.$input[0].form).on(\\\"reset.bs.fileinput\\\",a.proxy(this.reset,this)),this.$element.find('[data-trigger=\\\"fileinput\\\"]').on(\\\"click.bs.fileinput\\\",a.proxy(this.trigger,this)),this.$element.find('[data-dismiss=\\\"fileinput\\\"]').on(\\\"click.bs.fileinput\\\",a.proxy(this.clear,this))},c.prototype.change=function(b){var c=void 0===b.target.files?b.target&&b.target.value?[{name:b.target.value.replace(/^.+\\\\\\\\/,\\\"\\\")}]:[]:b.target.files;if(b.stopPropagation(),0===c.length)return void this.clear();this.$hidden.val(\\\"\\\"),this.$hidden.attr(\\\"name\\\",\\\"\\\"),this.$input.attr(\\\"name\\\",this.name);var d=c[0];if(this.$preview.length>0&&(\\\"undefined\\\"!=typeof d.type?d.type.match(/^image\\\\/(gif|png|jpeg)$/):d.name.match(/\\\\.(gif|png|jpe?g)$/i))&&\\\"undefined\\\"!=typeof FileReader){var e=new FileReader,f=this.$preview,g=this.$element;e.onload=function(b){var e=a(\\\"<img>\\\");e[0].src=b.target.result,c[0].result=b.target.result,g.find(\\\".fileinput-filename\\\").text(d.name),\\\"none\\\"!=f.css(\\\"max-height\\\")&&e.css(\\\"max-height\\\",parseInt(f.css(\\\"max-height\\\"),10)-parseInt(f.css(\\\"padding-top\\\"),10)-parseInt(f.css(\\\"padding-bottom\\\"),10)-parseInt(f.css(\\\"border-top\\\"),10)-parseInt(f.css(\\\"border-bottom\\\"),10)),f.html(e),g.addClass(\\\"fileinput-exists\\\").removeClass(\\\"fileinput-new\\\"),g.trigger(\\\"change.bs.fileinput\\\",c)},e.readAsDataURL(d)}else this.$element.find(\\\".fileinput-filename\\\").text(d.name),this.$preview.text(d.name),this.$element.addClass(\\\"fileinput-exists\\\").removeClass(\\\"fileinput-new\\\"),this.$element.trigger(\\\"change.bs.fileinput\\\")},c.prototype.clear=function(a){if(a&&a.preventDefault(),this.$hidden.val(\\\"\\\"),this.$hidden.attr(\\\"name\\\",this.name),this.$input.attr(\\\"name\\\",\\\"\\\"),b){var c=this.$input.clone(!0);this.$input.after(c),this.$input.remove(),this.$input=c}else this.$input.val(\\\"\\\");this.$preview.html(\\\"\\\"),this.$element.find(\\\".fileinput-filename\\\").text(\\\"\\\"),this.$element.addClass(\\\"fileinput-new\\\").removeClass(\\\"fileinput-exists\\\"),void 0!==a&&(this.$input.trigger(\\\"change\\\"),this.$element.trigger(\\\"clear.bs.fileinput\\\"))},c.prototype.reset=function(){this.clear(),this.$hidden.val(this.original.hiddenVal),this.$preview.html(this.original.preview),this.$element.find(\\\".fileinput-filename\\\").text(\\\"\\\"),this.original.exists?this.$element.addClass(\\\"fileinput-exists\\\").removeClass(\\\"fileinput-new\\\"):this.$element.addClass(\\\"fileinput-new\\\").removeClass(\\\"fileinput-exists\\\"),this.$element.trigger(\\\"reset.bs.fileinput\\\")},c.prototype.trigger=function(a){this.$input.trigger(\\\"click\\\"),a.preventDefault()};var d=a.fn.fileinput;a.fn.fileinput=function(b){return this.each(function(){var d=a(this),e=d.data(\\\"fileinput\\\");e||d.data(\\\"fileinput\\\",e=new c(this,b)),\\\"string\\\"==typeof b&&e[b]()})},a.fn.fileinput.Constructor=c,a.fn.fileinput.noConflict=function(){return a.fn.fileinput=d,this},a(document).on(\\\"click.fileinput.data-api\\\",'[data-provides=\\\"fileinput\\\"]',function(b){var c=a(this);if(!c.data(\\\"fileinput\\\")){c.fileinput(c.data());var d=a(b.target).closest('[data-dismiss=\\\"fileinput\\\"],[data-trigger=\\\"fileinput\\\"]');d.length>0&&(b.preventDefault(),d.trigger(\\\"click.bs.fileinput\\\"))}})}(window.jQuery);\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// /home/cool/Music/personal_projects/Zmall/angbackuo/~/raw-loader!/home/cool/Music/personal_projects/Zmall/angbackuo/~/source-map-loader!/home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/jasny/jasny-bootstrap.min.js\n// module id = 1504\n// module chunks = 2","module.exports = \"/*\\n *  Bootstrap TouchSpin - v3.0.1\\n *  A mobile and touch friendly input spinner component for Bootstrap 3.\\n *  http://www.virtuosoft.eu/code/bootstrap-touchspin/\\n *\\n *  Made by István Ujj-Mészáros\\n *  Under Apache License v2.0 License\\n */\\n!function(a){\\\"use strict\\\";function b(a,b){return a+\\\".touchspin_\\\"+b}function c(c,d){return a.map(c,function(a){return b(a,d)})}var d=0;a.fn.TouchSpin=function(b){if(\\\"destroy\\\"===b)return void this.each(function(){var b=a(this),d=b.data();a(document).off(c([\\\"mouseup\\\",\\\"touchend\\\",\\\"touchcancel\\\",\\\"mousemove\\\",\\\"touchmove\\\",\\\"scroll\\\",\\\"scrollstart\\\"],d.spinnerid).join(\\\" \\\"))});var e={min:0,max:100,initval:\\\"\\\",step:1,decimals:0,stepinterval:100,forcestepdivisibility:\\\"round\\\",stepintervaldelay:500,verticalbuttons:!1,verticalupclass:\\\"glyphicon glyphicon-chevron-up\\\",verticaldownclass:\\\"glyphicon glyphicon-chevron-down\\\",prefix:\\\"\\\",postfix:\\\"\\\",prefix_extraclass:\\\"\\\",postfix_extraclass:\\\"\\\",booster:!0,boostat:10,maxboostedstep:!1,mousewheel:!0,buttondown_class:\\\"btn btn-default\\\",buttonup_class:\\\"btn btn-default\\\",buttondown_txt:\\\"-\\\",buttonup_txt:\\\"+\\\"},f={min:\\\"min\\\",max:\\\"max\\\",initval:\\\"init-val\\\",step:\\\"step\\\",decimals:\\\"decimals\\\",stepinterval:\\\"step-interval\\\",verticalbuttons:\\\"vertical-buttons\\\",verticalupclass:\\\"vertical-up-class\\\",verticaldownclass:\\\"vertical-down-class\\\",forcestepdivisibility:\\\"force-step-divisibility\\\",stepintervaldelay:\\\"step-interval-delay\\\",prefix:\\\"prefix\\\",postfix:\\\"postfix\\\",prefix_extraclass:\\\"prefix-extra-class\\\",postfix_extraclass:\\\"postfix-extra-class\\\",booster:\\\"booster\\\",boostat:\\\"boostat\\\",maxboostedstep:\\\"max-boosted-step\\\",mousewheel:\\\"mouse-wheel\\\",buttondown_class:\\\"button-down-class\\\",buttonup_class:\\\"button-up-class\\\",buttondown_txt:\\\"button-down-txt\\\",buttonup_txt:\\\"button-up-txt\\\"};return this.each(function(){function g(){if(!J.data(\\\"alreadyinitialized\\\")){if(J.data(\\\"alreadyinitialized\\\",!0),d+=1,J.data(\\\"spinnerid\\\",d),!J.is(\\\"input\\\"))return void console.log(\\\"Must be an input.\\\");j(),h(),u(),m(),p(),q(),r(),s(),D.input.css(\\\"display\\\",\\\"block\\\")}}function h(){\\\"\\\"!==B.initval&&\\\"\\\"===J.val()&&J.val(B.initval)}function i(a){l(a),u();var b=D.input.val();\\\"\\\"!==b&&(b=Number(D.input.val()),D.input.val(b.toFixed(B.decimals)))}function j(){B=a.extend({},e,K,k(),b)}function k(){var b={};return a.each(f,function(a,c){var d=\\\"bts-\\\"+c;J.is(\\\"[data-\\\"+d+\\\"]\\\")&&(b[a]=J.data(d))}),b}function l(b){B=a.extend({},B,b)}function m(){var a=J.val(),b=J.parent();\\\"\\\"!==a&&(a=Number(a).toFixed(B.decimals)),J.data(\\\"initvalue\\\",a).val(a),J.addClass(\\\"form-control\\\"),b.hasClass(\\\"input-group\\\")?n(b):o()}function n(b){b.addClass(\\\"bootstrap-touchspin\\\");var c,d,e=J.prev(),f=J.next(),g='<span class=\\\"input-group-addon bootstrap-touchspin-prefix\\\">'+B.prefix+\\\"</span>\\\",h='<span class=\\\"input-group-addon bootstrap-touchspin-postfix\\\">'+B.postfix+\\\"</span>\\\";e.hasClass(\\\"input-group-btn\\\")?(c='<button class=\\\"'+B.buttondown_class+' bootstrap-touchspin-down\\\" type=\\\"button\\\">'+B.buttondown_txt+\\\"</button>\\\",e.append(c)):(c='<span class=\\\"input-group-btn\\\"><button class=\\\"'+B.buttondown_class+' bootstrap-touchspin-down\\\" type=\\\"button\\\">'+B.buttondown_txt+\\\"</button></span>\\\",a(c).insertBefore(J)),f.hasClass(\\\"input-group-btn\\\")?(d='<button class=\\\"'+B.buttonup_class+' bootstrap-touchspin-up\\\" type=\\\"button\\\">'+B.buttonup_txt+\\\"</button>\\\",f.prepend(d)):(d='<span class=\\\"input-group-btn\\\"><button class=\\\"'+B.buttonup_class+' bootstrap-touchspin-up\\\" type=\\\"button\\\">'+B.buttonup_txt+\\\"</button></span>\\\",a(d).insertAfter(J)),a(g).insertBefore(J),a(h).insertAfter(J),C=b}function o(){var b;b=B.verticalbuttons?'<div class=\\\"input-group bootstrap-touchspin\\\"><span class=\\\"input-group-addon bootstrap-touchspin-prefix\\\">'+B.prefix+'</span><span class=\\\"input-group-addon bootstrap-touchspin-postfix\\\">'+B.postfix+'</span><span class=\\\"input-group-btn-vertical\\\"><button class=\\\"'+B.buttondown_class+' bootstrap-touchspin-up\\\" type=\\\"button\\\"><i class=\\\"'+B.verticalupclass+'\\\"></i></button><button class=\\\"'+B.buttonup_class+' bootstrap-touchspin-down\\\" type=\\\"button\\\"><i class=\\\"'+B.verticaldownclass+'\\\"></i></button></span></div>':'<div class=\\\"input-group bootstrap-touchspin\\\"><span class=\\\"input-group-btn\\\"><button class=\\\"'+B.buttondown_class+' bootstrap-touchspin-down\\\" type=\\\"button\\\">'+B.buttondown_txt+'</button></span><span class=\\\"input-group-addon bootstrap-touchspin-prefix\\\">'+B.prefix+'</span><span class=\\\"input-group-addon bootstrap-touchspin-postfix\\\">'+B.postfix+'</span><span class=\\\"input-group-btn\\\"><button class=\\\"'+B.buttonup_class+' bootstrap-touchspin-up\\\" type=\\\"button\\\">'+B.buttonup_txt+\\\"</button></span></div>\\\",C=a(b).insertBefore(J),a(\\\".bootstrap-touchspin-prefix\\\",C).after(J),J.hasClass(\\\"input-sm\\\")?C.addClass(\\\"input-group-sm\\\"):J.hasClass(\\\"input-lg\\\")&&C.addClass(\\\"input-group-lg\\\")}function p(){D={down:a(\\\".bootstrap-touchspin-down\\\",C),up:a(\\\".bootstrap-touchspin-up\\\",C),input:a(\\\"input\\\",C),prefix:a(\\\".bootstrap-touchspin-prefix\\\",C).addClass(B.prefix_extraclass),postfix:a(\\\".bootstrap-touchspin-postfix\\\",C).addClass(B.postfix_extraclass)}}function q(){\\\"\\\"===B.prefix&&D.prefix.hide(),\\\"\\\"===B.postfix&&D.postfix.hide()}function r(){J.on(\\\"keydown\\\",function(a){var b=a.keyCode||a.which;38===b?(\\\"up\\\"!==M&&(w(),z()),a.preventDefault()):40===b&&(\\\"down\\\"!==M&&(x(),y()),a.preventDefault())}),J.on(\\\"keyup\\\",function(a){var b=a.keyCode||a.which;38===b?A():40===b&&A()}),J.on(\\\"blur\\\",function(){u()}),D.down.on(\\\"keydown\\\",function(a){var b=a.keyCode||a.which;(32===b||13===b)&&(\\\"down\\\"!==M&&(x(),y()),a.preventDefault())}),D.down.on(\\\"keyup\\\",function(a){var b=a.keyCode||a.which;(32===b||13===b)&&A()}),D.up.on(\\\"keydown\\\",function(a){var b=a.keyCode||a.which;(32===b||13===b)&&(\\\"up\\\"!==M&&(w(),z()),a.preventDefault())}),D.up.on(\\\"keyup\\\",function(a){var b=a.keyCode||a.which;(32===b||13===b)&&A()}),D.down.on(\\\"mousedown.touchspin\\\",function(a){D.down.off(\\\"touchstart.touchspin\\\"),J.is(\\\":disabled\\\")||(x(),y(),a.preventDefault(),a.stopPropagation())}),D.down.on(\\\"touchstart.touchspin\\\",function(a){D.down.off(\\\"mousedown.touchspin\\\"),J.is(\\\":disabled\\\")||(x(),y(),a.preventDefault(),a.stopPropagation())}),D.up.on(\\\"mousedown.touchspin\\\",function(a){D.up.off(\\\"touchstart.touchspin\\\"),J.is(\\\":disabled\\\")||(w(),z(),a.preventDefault(),a.stopPropagation())}),D.up.on(\\\"touchstart.touchspin\\\",function(a){D.up.off(\\\"mousedown.touchspin\\\"),J.is(\\\":disabled\\\")||(w(),z(),a.preventDefault(),a.stopPropagation())}),D.up.on(\\\"mouseout touchleave touchend touchcancel\\\",function(a){M&&(a.stopPropagation(),A())}),D.down.on(\\\"mouseout touchleave touchend touchcancel\\\",function(a){M&&(a.stopPropagation(),A())}),D.down.on(\\\"mousemove touchmove\\\",function(a){M&&(a.stopPropagation(),a.preventDefault())}),D.up.on(\\\"mousemove touchmove\\\",function(a){M&&(a.stopPropagation(),a.preventDefault())}),a(document).on(c([\\\"mouseup\\\",\\\"touchend\\\",\\\"touchcancel\\\"],d).join(\\\" \\\"),function(a){M&&(a.preventDefault(),A())}),a(document).on(c([\\\"mousemove\\\",\\\"touchmove\\\",\\\"scroll\\\",\\\"scrollstart\\\"],d).join(\\\" \\\"),function(a){M&&(a.preventDefault(),A())}),J.on(\\\"mousewheel DOMMouseScroll\\\",function(a){if(B.mousewheel&&J.is(\\\":focus\\\")){var b=a.originalEvent.wheelDelta||-a.originalEvent.deltaY||-a.originalEvent.detail;a.stopPropagation(),a.preventDefault(),0>b?x():w()}})}function s(){J.on(\\\"touchspin.uponce\\\",function(){A(),w()}),J.on(\\\"touchspin.downonce\\\",function(){A(),x()}),J.on(\\\"touchspin.startupspin\\\",function(){z()}),J.on(\\\"touchspin.startdownspin\\\",function(){y()}),J.on(\\\"touchspin.stopspin\\\",function(){A()}),J.on(\\\"touchspin.updatesettings\\\",function(a,b){i(b)})}function t(a){switch(B.forcestepdivisibility){case\\\"round\\\":return(Math.round(a/B.step)*B.step).toFixed(B.decimals);case\\\"floor\\\":return(Math.floor(a/B.step)*B.step).toFixed(B.decimals);case\\\"ceil\\\":return(Math.ceil(a/B.step)*B.step).toFixed(B.decimals);default:return a}}function u(){var a,b,c;a=J.val(),\\\"\\\"!==a&&(B.decimals>0&&\\\".\\\"===a||(b=parseFloat(a),isNaN(b)&&(b=0),c=b,b.toString()!==a&&(c=b),b<B.min&&(c=B.min),b>B.max&&(c=B.max),c=t(c),Number(a).toString()!==c.toString()&&(J.val(c),J.trigger(\\\"change\\\"))))}function v(){if(B.booster){var a=Math.pow(2,Math.floor(L/B.boostat))*B.step;return B.maxboostedstep&&a>B.maxboostedstep&&(a=B.maxboostedstep,E=Math.round(E/a)*a),Math.max(B.step,a)}return B.step}function w(){u(),E=parseFloat(D.input.val()),isNaN(E)&&(E=0);var a=E,b=v();E+=b,E>B.max&&(E=B.max,J.trigger(\\\"touchspin.on.max\\\"),A()),D.input.val(Number(E).toFixed(B.decimals)),a!==E&&J.trigger(\\\"change\\\")}function x(){u(),E=parseFloat(D.input.val()),isNaN(E)&&(E=0);var a=E,b=v();E-=b,E<B.min&&(E=B.min,J.trigger(\\\"touchspin.on.min\\\"),A()),D.input.val(E.toFixed(B.decimals)),a!==E&&J.trigger(\\\"change\\\")}function y(){A(),L=0,M=\\\"down\\\",J.trigger(\\\"touchspin.on.startspin\\\"),J.trigger(\\\"touchspin.on.startdownspin\\\"),H=setTimeout(function(){F=setInterval(function(){L++,x()},B.stepinterval)},B.stepintervaldelay)}function z(){A(),L=0,M=\\\"up\\\",J.trigger(\\\"touchspin.on.startspin\\\"),J.trigger(\\\"touchspin.on.startupspin\\\"),I=setTimeout(function(){G=setInterval(function(){L++,w()},B.stepinterval)},B.stepintervaldelay)}function A(){switch(clearTimeout(H),clearTimeout(I),clearInterval(F),clearInterval(G),M){case\\\"up\\\":J.trigger(\\\"touchspin.on.stopupspin\\\"),J.trigger(\\\"touchspin.on.stopspin\\\");break;case\\\"down\\\":J.trigger(\\\"touchspin.on.stopdownspin\\\"),J.trigger(\\\"touchspin.on.stopspin\\\")}L=0,M=!1}var B,C,D,E,F,G,H,I,J=a(this),K=J.data(),L=0,M=!1;g()})}}(jQuery);\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// /home/cool/Music/personal_projects/Zmall/angbackuo/~/raw-loader!/home/cool/Music/personal_projects/Zmall/angbackuo/~/source-map-loader!/home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/touchspin/jquery.bootstrap-touchspin.min.js\n// module id = 1505\n// module chunks = 2","module.exports = \"/*! pace 1.0.2 */\\n(function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X=[].slice,Y={}.hasOwnProperty,Z=function(a,b){function c(){this.constructor=a}for(var d in b)Y.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},$=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1};for(u={catchupTime:100,initialRate:.03,minTime:250,ghostTime:100,maxProgressPerFrame:20,easeFactor:1.25,startOnPageLoad:!0,restartOnPushState:!0,restartOnRequestAfter:500,target:\\\"body\\\",elements:{checkInterval:100,selectors:[\\\"body\\\"]},eventLag:{minSamples:10,sampleCount:3,lagThreshold:3},ajax:{trackMethods:[\\\"GET\\\"],trackWebSockets:!0,ignoreURLs:[]}},C=function(){var a;return null!=(a=\\\"undefined\\\"!=typeof performance&&null!==performance&&\\\"function\\\"==typeof performance.now?performance.now():void 0)?a:+new Date},E=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,t=window.cancelAnimationFrame||window.mozCancelAnimationFrame,null==E&&(E=function(a){return setTimeout(a,50)},t=function(a){return clearTimeout(a)}),G=function(a){var b,c;return b=C(),(c=function(){var d;return d=C()-b,d>=33?(b=C(),a(d,function(){return E(c)})):setTimeout(c,33-d)})()},F=function(){var a,b,c;return c=arguments[0],b=arguments[1],a=3<=arguments.length?X.call(arguments,2):[],\\\"function\\\"==typeof c[b]?c[b].apply(c,a):c[b]},v=function(){var a,b,c,d,e,f,g;for(b=arguments[0],d=2<=arguments.length?X.call(arguments,1):[],f=0,g=d.length;g>f;f++)if(c=d[f])for(a in c)Y.call(c,a)&&(e=c[a],null!=b[a]&&\\\"object\\\"==typeof b[a]&&null!=e&&\\\"object\\\"==typeof e?v(b[a],e):b[a]=e);return b},q=function(a){var b,c,d,e,f;for(c=b=0,e=0,f=a.length;f>e;e++)d=a[e],c+=Math.abs(d),b++;return c/b},x=function(a,b){var c,d,e;if(null==a&&(a=\\\"options\\\"),null==b&&(b=!0),e=document.querySelector(\\\"[data-pace-\\\"+a+\\\"]\\\")){if(c=e.getAttribute(\\\"data-pace-\\\"+a),!b)return c;try{return JSON.parse(c)}catch(f){return d=f,\\\"undefined\\\"!=typeof console&&null!==console?console.error(\\\"Error parsing inline pace options\\\",d):void 0}}},g=function(){function a(){}return a.prototype.on=function(a,b,c,d){var e;return null==d&&(d=!1),null==this.bindings&&(this.bindings={}),null==(e=this.bindings)[a]&&(e[a]=[]),this.bindings[a].push({handler:b,ctx:c,once:d})},a.prototype.once=function(a,b,c){return this.on(a,b,c,!0)},a.prototype.off=function(a,b){var c,d,e;if(null!=(null!=(d=this.bindings)?d[a]:void 0)){if(null==b)return delete this.bindings[a];for(c=0,e=[];c<this.bindings[a].length;)e.push(this.bindings[a][c].handler===b?this.bindings[a].splice(c,1):c++);return e}},a.prototype.trigger=function(){var a,b,c,d,e,f,g,h,i;if(c=arguments[0],a=2<=arguments.length?X.call(arguments,1):[],null!=(g=this.bindings)?g[c]:void 0){for(e=0,i=[];e<this.bindings[c].length;)h=this.bindings[c][e],d=h.handler,b=h.ctx,f=h.once,d.apply(null!=b?b:this,a),i.push(f?this.bindings[c].splice(e,1):e++);return i}},a}(),j=window.Pace||{},window.Pace=j,v(j,g.prototype),D=j.options=v({},u,window.paceOptions,x()),U=[\\\"ajax\\\",\\\"document\\\",\\\"eventLag\\\",\\\"elements\\\"],Q=0,S=U.length;S>Q;Q++)K=U[Q],D[K]===!0&&(D[K]=u[K]);i=function(a){function b(){return V=b.__super__.constructor.apply(this,arguments)}return Z(b,a),b}(Error),b=function(){function a(){this.progress=0}return a.prototype.getElement=function(){var a;if(null==this.el){if(a=document.querySelector(D.target),!a)throw new i;this.el=document.createElement(\\\"div\\\"),this.el.className=\\\"pace pace-active\\\",document.body.className=document.body.className.replace(/pace-done/g,\\\"\\\"),document.body.className+=\\\" pace-running\\\",this.el.innerHTML='<div class=\\\"pace-progress\\\">\\\\n  <div class=\\\"pace-progress-inner\\\"></div>\\\\n</div>\\\\n<div class=\\\"pace-activity\\\"></div>',null!=a.firstChild?a.insertBefore(this.el,a.firstChild):a.appendChild(this.el)}return this.el},a.prototype.finish=function(){var a;return a=this.getElement(),a.className=a.className.replace(\\\"pace-active\\\",\\\"\\\"),a.className+=\\\" pace-inactive\\\",document.body.className=document.body.className.replace(\\\"pace-running\\\",\\\"\\\"),document.body.className+=\\\" pace-done\\\"},a.prototype.update=function(a){return this.progress=a,this.render()},a.prototype.destroy=function(){try{this.getElement().parentNode.removeChild(this.getElement())}catch(a){i=a}return this.el=void 0},a.prototype.render=function(){var a,b,c,d,e,f,g;if(null==document.querySelector(D.target))return!1;for(a=this.getElement(),d=\\\"translate3d(\\\"+this.progress+\\\"%, 0, 0)\\\",g=[\\\"webkitTransform\\\",\\\"msTransform\\\",\\\"transform\\\"],e=0,f=g.length;f>e;e++)b=g[e],a.children[0].style[b]=d;return(!this.lastRenderedProgress||this.lastRenderedProgress|0!==this.progress|0)&&(a.children[0].setAttribute(\\\"data-progress-text\\\",\\\"\\\"+(0|this.progress)+\\\"%\\\"),this.progress>=100?c=\\\"99\\\":(c=this.progress<10?\\\"0\\\":\\\"\\\",c+=0|this.progress),a.children[0].setAttribute(\\\"data-progress\\\",\\\"\\\"+c)),this.lastRenderedProgress=this.progress},a.prototype.done=function(){return this.progress>=100},a}(),h=function(){function a(){this.bindings={}}return a.prototype.trigger=function(a,b){var c,d,e,f,g;if(null!=this.bindings[a]){for(f=this.bindings[a],g=[],d=0,e=f.length;e>d;d++)c=f[d],g.push(c.call(this,b));return g}},a.prototype.on=function(a,b){var c;return null==(c=this.bindings)[a]&&(c[a]=[]),this.bindings[a].push(b)},a}(),P=window.XMLHttpRequest,O=window.XDomainRequest,N=window.WebSocket,w=function(a,b){var c,d,e;e=[];for(d in b.prototype)try{e.push(null==a[d]&&\\\"function\\\"!=typeof b[d]?\\\"function\\\"==typeof Object.defineProperty?Object.defineProperty(a,d,{get:function(){return b.prototype[d]},configurable:!0,enumerable:!0}):a[d]=b.prototype[d]:void 0)}catch(f){c=f}return e},A=[],j.ignore=function(){var a,b,c;return b=arguments[0],a=2<=arguments.length?X.call(arguments,1):[],A.unshift(\\\"ignore\\\"),c=b.apply(null,a),A.shift(),c},j.track=function(){var a,b,c;return b=arguments[0],a=2<=arguments.length?X.call(arguments,1):[],A.unshift(\\\"track\\\"),c=b.apply(null,a),A.shift(),c},J=function(a){var b;if(null==a&&(a=\\\"GET\\\"),\\\"track\\\"===A[0])return\\\"force\\\";if(!A.length&&D.ajax){if(\\\"socket\\\"===a&&D.ajax.trackWebSockets)return!0;if(b=a.toUpperCase(),$.call(D.ajax.trackMethods,b)>=0)return!0}return!1},k=function(a){function b(){var a,c=this;b.__super__.constructor.apply(this,arguments),a=function(a){var b;return b=a.open,a.open=function(d,e){return J(d)&&c.trigger(\\\"request\\\",{type:d,url:e,request:a}),b.apply(a,arguments)}},window.XMLHttpRequest=function(b){var c;return c=new P(b),a(c),c};try{w(window.XMLHttpRequest,P)}catch(d){}if(null!=O){window.XDomainRequest=function(){var b;return b=new O,a(b),b};try{w(window.XDomainRequest,O)}catch(d){}}if(null!=N&&D.ajax.trackWebSockets){window.WebSocket=function(a,b){var d;return d=null!=b?new N(a,b):new N(a),J(\\\"socket\\\")&&c.trigger(\\\"request\\\",{type:\\\"socket\\\",url:a,protocols:b,request:d}),d};try{w(window.WebSocket,N)}catch(d){}}}return Z(b,a),b}(h),R=null,y=function(){return null==R&&(R=new k),R},I=function(a){var b,c,d,e;for(e=D.ajax.ignoreURLs,c=0,d=e.length;d>c;c++)if(b=e[c],\\\"string\\\"==typeof b){if(-1!==a.indexOf(b))return!0}else if(b.test(a))return!0;return!1},y().on(\\\"request\\\",function(b){var c,d,e,f,g;return f=b.type,e=b.request,g=b.url,I(g)?void 0:j.running||D.restartOnRequestAfter===!1&&\\\"force\\\"!==J(f)?void 0:(d=arguments,c=D.restartOnRequestAfter||0,\\\"boolean\\\"==typeof c&&(c=0),setTimeout(function(){var b,c,g,h,i,k;if(b=\\\"socket\\\"===f?e.readyState<2:0<(h=e.readyState)&&4>h){for(j.restart(),i=j.sources,k=[],c=0,g=i.length;g>c;c++){if(K=i[c],K instanceof a){K.watch.apply(K,d);break}k.push(void 0)}return k}},c))}),a=function(){function a(){var a=this;this.elements=[],y().on(\\\"request\\\",function(){return a.watch.apply(a,arguments)})}return a.prototype.watch=function(a){var b,c,d,e;return d=a.type,b=a.request,e=a.url,I(e)?void 0:(c=\\\"socket\\\"===d?new n(b):new o(b),this.elements.push(c))},a}(),o=function(){function a(a){var b,c,d,e,f,g,h=this;if(this.progress=0,null!=window.ProgressEvent)for(c=null,a.addEventListener(\\\"progress\\\",function(a){return h.progress=a.lengthComputable?100*a.loaded/a.total:h.progress+(100-h.progress)/2},!1),g=[\\\"load\\\",\\\"abort\\\",\\\"timeout\\\",\\\"error\\\"],d=0,e=g.length;e>d;d++)b=g[d],a.addEventListener(b,function(){return h.progress=100},!1);else f=a.onreadystatechange,a.onreadystatechange=function(){var b;return 0===(b=a.readyState)||4===b?h.progress=100:3===a.readyState&&(h.progress=50),\\\"function\\\"==typeof f?f.apply(null,arguments):void 0}}return a}(),n=function(){function a(a){var b,c,d,e,f=this;for(this.progress=0,e=[\\\"error\\\",\\\"open\\\"],c=0,d=e.length;d>c;c++)b=e[c],a.addEventListener(b,function(){return f.progress=100},!1)}return a}(),d=function(){function a(a){var b,c,d,f;for(null==a&&(a={}),this.elements=[],null==a.selectors&&(a.selectors=[]),f=a.selectors,c=0,d=f.length;d>c;c++)b=f[c],this.elements.push(new e(b))}return a}(),e=function(){function a(a){this.selector=a,this.progress=0,this.check()}return a.prototype.check=function(){var a=this;return document.querySelector(this.selector)?this.done():setTimeout(function(){return a.check()},D.elements.checkInterval)},a.prototype.done=function(){return this.progress=100},a}(),c=function(){function a(){var a,b,c=this;this.progress=null!=(b=this.states[document.readyState])?b:100,a=document.onreadystatechange,document.onreadystatechange=function(){return null!=c.states[document.readyState]&&(c.progress=c.states[document.readyState]),\\\"function\\\"==typeof a?a.apply(null,arguments):void 0}}return a.prototype.states={loading:0,interactive:50,complete:100},a}(),f=function(){function a(){var a,b,c,d,e,f=this;this.progress=0,a=0,e=[],d=0,c=C(),b=setInterval(function(){var g;return g=C()-c-50,c=C(),e.push(g),e.length>D.eventLag.sampleCount&&e.shift(),a=q(e),++d>=D.eventLag.minSamples&&a<D.eventLag.lagThreshold?(f.progress=100,clearInterval(b)):f.progress=100*(3/(a+3))},50)}return a}(),m=function(){function a(a){this.source=a,this.last=this.sinceLastUpdate=0,this.rate=D.initialRate,this.catchup=0,this.progress=this.lastProgress=0,null!=this.source&&(this.progress=F(this.source,\\\"progress\\\"))}return a.prototype.tick=function(a,b){var c;return null==b&&(b=F(this.source,\\\"progress\\\")),b>=100&&(this.done=!0),b===this.last?this.sinceLastUpdate+=a:(this.sinceLastUpdate&&(this.rate=(b-this.last)/this.sinceLastUpdate),this.catchup=(b-this.progress)/D.catchupTime,this.sinceLastUpdate=0,this.last=b),b>this.progress&&(this.progress+=this.catchup*a),c=1-Math.pow(this.progress/100,D.easeFactor),this.progress+=c*this.rate*a,this.progress=Math.min(this.lastProgress+D.maxProgressPerFrame,this.progress),this.progress=Math.max(0,this.progress),this.progress=Math.min(100,this.progress),this.lastProgress=this.progress,this.progress},a}(),L=null,H=null,r=null,M=null,p=null,s=null,j.running=!1,z=function(){return D.restartOnPushState?j.restart():void 0},null!=window.history.pushState&&(T=window.history.pushState,window.history.pushState=function(){return z(),T.apply(window.history,arguments)}),null!=window.history.replaceState&&(W=window.history.replaceState,window.history.replaceState=function(){return z(),W.apply(window.history,arguments)}),l={ajax:a,elements:d,document:c,eventLag:f},(B=function(){var a,c,d,e,f,g,h,i;for(j.sources=L=[],g=[\\\"ajax\\\",\\\"elements\\\",\\\"document\\\",\\\"eventLag\\\"],c=0,e=g.length;e>c;c++)a=g[c],D[a]!==!1&&L.push(new l[a](D[a]));for(i=null!=(h=D.extraSources)?h:[],d=0,f=i.length;f>d;d++)K=i[d],L.push(new K(D));return j.bar=r=new b,H=[],M=new m})(),j.stop=function(){return j.trigger(\\\"stop\\\"),j.running=!1,r.destroy(),s=!0,null!=p&&(\\\"function\\\"==typeof t&&t(p),p=null),B()},j.restart=function(){return j.trigger(\\\"restart\\\"),j.stop(),j.start()},j.go=function(){var a;return j.running=!0,r.render(),a=C(),s=!1,p=G(function(b,c){var d,e,f,g,h,i,k,l,n,o,p,q,t,u,v,w;for(l=100-r.progress,e=p=0,f=!0,i=q=0,u=L.length;u>q;i=++q)for(K=L[i],o=null!=H[i]?H[i]:H[i]=[],h=null!=(w=K.elements)?w:[K],k=t=0,v=h.length;v>t;k=++t)g=h[k],n=null!=o[k]?o[k]:o[k]=new m(g),f&=n.done,n.done||(e++,p+=n.tick(b));return d=p/e,r.update(M.tick(b,d)),r.done()||f||s?(r.update(100),j.trigger(\\\"done\\\"),setTimeout(function(){return r.finish(),j.running=!1,j.trigger(\\\"hide\\\")},Math.max(D.ghostTime,Math.max(D.minTime-(C()-a),0)))):c()})},j.start=function(a){v(D,a),j.running=!0;try{r.render()}catch(b){i=b}return document.querySelector(\\\".pace\\\")?(j.trigger(\\\"start\\\"),j.go()):setTimeout(j.start,50)},\\\"function\\\"==typeof define&&define.amd?define([\\\"pace\\\"],function(){return j}):\\\"object\\\"==typeof exports?module.exports=j:D.startOnPageLoad&&j.start()}).call(this);\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// /home/cool/Music/personal_projects/Zmall/angbackuo/~/raw-loader!/home/cool/Music/personal_projects/Zmall/angbackuo/~/source-map-loader!/home/cool/Music/personal_projects/Zmall/angbackuo/public/vendor/pace/pace.min.js\n// module id = 1506\n// module chunks = 2","module.exports = \"/*!\\n * sweetalert2 v6.3.8\\n * Released under the MIT License.\\n */\\n(function (global, factory) {\\n  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\\n  typeof define === 'function' && define.amd ? define(factory) :\\n  (global.Sweetalert2 = factory());\\n}(this, (function () { 'use strict';\\n\\nvar swalPrefix = 'swal2-';\\n\\nvar prefix = function prefix(items) {\\n  var result = {};\\n  for (var i in items) {\\n    result[items[i]] = swalPrefix + items[i];\\n  }\\n  return result;\\n};\\n\\nvar swalClasses = prefix(['container', 'in', 'iosfix', 'modal', 'overlay', 'fade', 'show', 'hide', 'noanimation', 'close', 'title', 'content', 'spacer', 'confirm', 'cancel', 'icon', 'image', 'input', 'file', 'range', 'select', 'radio', 'checkbox', 'textarea', 'inputerror', 'validationerror', 'progresssteps', 'activeprogressstep', 'progresscircle', 'progressline', 'loading', 'styled']);\\n\\nvar iconTypes = prefix(['success', 'warning', 'info', 'question', 'error']);\\n\\nvar defaultParams = {\\n  title: '',\\n  titleText: '',\\n  text: '',\\n  html: '',\\n  type: null,\\n  customClass: '',\\n  animation: true,\\n  allowOutsideClick: true,\\n  allowEscapeKey: true,\\n  showConfirmButton: true,\\n  showCancelButton: false,\\n  preConfirm: null,\\n  confirmButtonText: 'OK',\\n  confirmButtonColor: '#3085d6',\\n  confirmButtonClass: null,\\n  cancelButtonText: 'Cancel',\\n  cancelButtonColor: '#aaa',\\n  cancelButtonClass: null,\\n  buttonsStyling: true,\\n  reverseButtons: false,\\n  focusCancel: false,\\n  showCloseButton: false,\\n  showLoaderOnConfirm: false,\\n  imageUrl: null,\\n  imageWidth: null,\\n  imageHeight: null,\\n  imageClass: null,\\n  timer: null,\\n  width: 500,\\n  padding: 20,\\n  background: '#fff',\\n  input: null,\\n  inputPlaceholder: '',\\n  inputValue: '',\\n  inputOptions: {},\\n  inputAutoTrim: true,\\n  inputClass: null,\\n  inputAttributes: {},\\n  inputValidator: null,\\n  progressSteps: [],\\n  currentProgressStep: null,\\n  progressStepsDistance: '40px',\\n  onOpen: null,\\n  onClose: null\\n};\\n\\nvar sweetHTML = ('\\\\n  <div  role=\\\"dialog\\\" aria-labelledby=\\\"modalTitleId\\\" aria-describedby=\\\"modalContentId\\\" class=\\\"' + swalClasses.modal + '\\\" tabIndex=\\\"-1\\\" >\\\\n    <ul class=\\\"' + swalClasses.progresssteps + '\\\"></ul>\\\\n    <div class=\\\"' + swalClasses.icon + ' ' + iconTypes.error + '\\\">\\\\n      <span class=\\\"x-mark\\\"><span class=\\\"line left\\\"></span><span class=\\\"line right\\\"></span></span>\\\\n    </div>\\\\n    <div class=\\\"' + swalClasses.icon + ' ' + iconTypes.question + '\\\">?</div>\\\\n    <div class=\\\"' + swalClasses.icon + ' ' + iconTypes.warning + '\\\">!</div>\\\\n    <div class=\\\"' + swalClasses.icon + ' ' + iconTypes.info + '\\\">i</div>\\\\n    <div class=\\\"' + swalClasses.icon + ' ' + iconTypes.success + '\\\">\\\\n      <span class=\\\"line tip\\\"></span> <span class=\\\"line long\\\"></span>\\\\n      <div class=\\\"placeholder\\\"></div> <div class=\\\"fix\\\"></div>\\\\n    </div>\\\\n    <img class=\\\"' + swalClasses.image + '\\\">\\\\n    <h2 class=\\\"' + swalClasses.title + '\\\" id=\\\"modalTitleId\\\"></h2>\\\\n    <div id=\\\"modalContentId\\\" class=\\\"' + swalClasses.content + '\\\"></div>\\\\n    <input class=\\\"' + swalClasses.input + '\\\">\\\\n    <input type=\\\"file\\\" class=\\\"' + swalClasses.file + '\\\">\\\\n    <div class=\\\"' + swalClasses.range + '\\\">\\\\n      <output></output>\\\\n      <input type=\\\"range\\\">\\\\n    </div>\\\\n    <select class=\\\"' + swalClasses.select + '\\\"></select>\\\\n    <div class=\\\"' + swalClasses.radio + '\\\"></div>\\\\n    <label for=\\\"' + swalClasses.checkbox + '\\\" class=\\\"' + swalClasses.checkbox + '\\\">\\\\n      <input type=\\\"checkbox\\\">\\\\n    </label>\\\\n    <textarea class=\\\"' + swalClasses.textarea + '\\\"></textarea>\\\\n    <div class=\\\"' + swalClasses.validationerror + '\\\"></div>\\\\n    <hr class=\\\"' + swalClasses.spacer + '\\\">\\\\n    <button type=\\\"button\\\" role=\\\"button\\\" tabIndex=\\\"0\\\" class=\\\"' + swalClasses.confirm + '\\\">OK</button>\\\\n    <button type=\\\"button\\\" role=\\\"button\\\" tabIndex=\\\"0\\\" class=\\\"' + swalClasses.cancel + '\\\">Cancel</button>\\\\n    <span class=\\\"' + swalClasses.close + '\\\">&times;</span>\\\\n  </div>\\\\n').replace(/(^|\\\\n)\\\\s*/g, '');\\n\\nvar sweetContainer = void 0;\\n\\nvar existingSweetContainers = document.getElementsByClassName(swalClasses.container);\\n\\nif (existingSweetContainers.length) {\\n  sweetContainer = existingSweetContainers[0];\\n} else {\\n  sweetContainer = document.createElement('div');\\n  sweetContainer.className = swalClasses.container;\\n  sweetContainer.innerHTML = sweetHTML;\\n}\\n\\n/*\\n * Set hover, active and focus-states for buttons (source: http://www.sitepoint.com/javascript-generate-lighter-darker-color)\\n */\\nvar colorLuminance = function colorLuminance(hex, lum) {\\n  // Validate hex string\\n  hex = String(hex).replace(/[^0-9a-f]/gi, '');\\n  if (hex.length < 6) {\\n    hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2];\\n  }\\n  lum = lum || 0;\\n\\n  // Convert to decimal and change luminosity\\n  var rgb = '#';\\n  for (var i = 0; i < 3; i++) {\\n    var c = parseInt(hex.substr(i * 2, 2), 16);\\n    c = Math.round(Math.min(Math.max(0, c + c * lum), 255)).toString(16);\\n    rgb += ('00' + c).substr(c.length);\\n  }\\n\\n  return rgb;\\n};\\n\\n/* global MouseEvent */\\n\\n// Remember state in cases where opening and handling a modal will fiddle with it.\\nvar states = {\\n  previousWindowKeyDown: null,\\n  previousActiveElement: null,\\n  previousBodyPadding: null\\n};\\n\\n/*\\n * Add modal + overlay to DOM\\n */\\nvar init = function init() {\\n  if (typeof document === 'undefined') {\\n    console.error('SweetAlert2 requires document to initialize');\\n    return;\\n  } else if (document.getElementsByClassName(swalClasses.container).length) {\\n    return;\\n  }\\n\\n  document.body.appendChild(sweetContainer);\\n\\n  var modal = getModal();\\n  var input = getChildByClass(modal, swalClasses.input);\\n  var file = getChildByClass(modal, swalClasses.file);\\n  var range = modal.querySelector('.' + swalClasses.range + ' input');\\n  var rangeOutput = modal.querySelector('.' + swalClasses.range + ' output');\\n  var select = getChildByClass(modal, swalClasses.select);\\n  var checkbox = modal.querySelector('.' + swalClasses.checkbox + ' input');\\n  var textarea = getChildByClass(modal, swalClasses.textarea);\\n\\n  input.oninput = function () {\\n    sweetAlert.resetValidationError();\\n  };\\n\\n  input.onkeydown = function (event) {\\n    setTimeout(function () {\\n      if (event.keyCode === 13) {\\n        event.stopPropagation();\\n        sweetAlert.clickConfirm();\\n      }\\n    }, 0);\\n  };\\n\\n  file.onchange = function () {\\n    sweetAlert.resetValidationError();\\n  };\\n\\n  range.oninput = function () {\\n    sweetAlert.resetValidationError();\\n    rangeOutput.value = range.value;\\n  };\\n\\n  range.onchange = function () {\\n    sweetAlert.resetValidationError();\\n    range.previousSibling.value = range.value;\\n  };\\n\\n  select.onchange = function () {\\n    sweetAlert.resetValidationError();\\n  };\\n\\n  checkbox.onchange = function () {\\n    sweetAlert.resetValidationError();\\n  };\\n\\n  textarea.oninput = function () {\\n    sweetAlert.resetValidationError();\\n  };\\n\\n  return modal;\\n};\\n\\n/*\\n * Manipulate DOM\\n */\\nvar elementByClass = function elementByClass(className) {\\n  return sweetContainer.querySelector('.' + className);\\n};\\n\\nvar getModal = function getModal() {\\n  return document.body.querySelector('.' + swalClasses.modal) || init();\\n};\\n\\nvar getIcons = function getIcons() {\\n  var modal = getModal();\\n  return modal.querySelectorAll('.' + swalClasses.icon);\\n};\\n\\nvar getTitle = function getTitle() {\\n  return elementByClass(swalClasses.title);\\n};\\n\\nvar getContent = function getContent() {\\n  return elementByClass(swalClasses.content);\\n};\\n\\nvar getImage = function getImage() {\\n  return elementByClass(swalClasses.image);\\n};\\n\\nvar getSpacer = function getSpacer() {\\n  return elementByClass(swalClasses.spacer);\\n};\\n\\nvar getProgressSteps = function getProgressSteps() {\\n  return elementByClass(swalClasses.progresssteps);\\n};\\n\\nvar getValidationError = function getValidationError() {\\n  return elementByClass(swalClasses.validationerror);\\n};\\n\\nvar getConfirmButton = function getConfirmButton() {\\n  return elementByClass(swalClasses.confirm);\\n};\\n\\nvar getCancelButton = function getCancelButton() {\\n  return elementByClass(swalClasses.cancel);\\n};\\n\\nvar getCloseButton = function getCloseButton() {\\n  return elementByClass(swalClasses.close);\\n};\\n\\nvar getFocusableElements = function getFocusableElements(focusCancel) {\\n  var buttons = [getConfirmButton(), getCancelButton()];\\n  if (focusCancel) {\\n    buttons.reverse();\\n  }\\n  return buttons.concat(Array.prototype.slice.call(getModal().querySelectorAll('button:not([class^=' + swalPrefix + ']), input:not([type=hidden]), textarea, select')));\\n};\\n\\nvar hasClass = function hasClass(elem, className) {\\n  if (elem.classList) {\\n    return elem.classList.contains(className);\\n  }\\n  return false;\\n};\\n\\nvar focusInput = function focusInput(input) {\\n  input.focus();\\n\\n  // place cursor at end of text in text input\\n  if (input.type !== 'file') {\\n    // http://stackoverflow.com/a/2345915/1331425\\n    var val = input.value;\\n    input.value = '';\\n    input.value = val;\\n  }\\n};\\n\\nvar addClass = function addClass(elem, className) {\\n  if (!elem || !className) {\\n    return;\\n  }\\n  var classes = className.split(/\\\\s+/).filter(Boolean);\\n  classes.forEach(function (className) {\\n    elem.classList.add(className);\\n  });\\n};\\n\\nvar removeClass = function removeClass(elem, className) {\\n  if (!elem || !className) {\\n    return;\\n  }\\n  var classes = className.split(/\\\\s+/).filter(Boolean);\\n  classes.forEach(function (className) {\\n    elem.classList.remove(className);\\n  });\\n};\\n\\nvar getChildByClass = function getChildByClass(elem, className) {\\n  for (var i = 0; i < elem.childNodes.length; i++) {\\n    if (hasClass(elem.childNodes[i], className)) {\\n      return elem.childNodes[i];\\n    }\\n  }\\n};\\n\\nvar show = function show(elem, display) {\\n  if (!display) {\\n    display = 'block';\\n  }\\n  elem.style.opacity = '';\\n  elem.style.display = display;\\n};\\n\\nvar hide = function hide(elem) {\\n  elem.style.opacity = '';\\n  elem.style.display = 'none';\\n};\\n\\nvar empty = function empty(elem) {\\n  while (elem.firstChild) {\\n    elem.removeChild(elem.firstChild);\\n  }\\n};\\n\\n// borrowed from jqeury $(elem).is(':visible') implementation\\nvar isVisible = function isVisible(elem) {\\n  return elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length;\\n};\\n\\nvar removeStyleProperty = function removeStyleProperty(elem, property) {\\n  if (elem.style.removeProperty) {\\n    elem.style.removeProperty(property);\\n  } else {\\n    elem.style.removeAttribute(property);\\n  }\\n};\\n\\nvar fireClick = function fireClick(node) {\\n  if (!isVisible(node)) {\\n    return false;\\n  }\\n\\n  // Taken from http://www.nonobtrusive.com/2011/11/29/programatically-fire-crossbrowser-click-event-with-javascript/\\n  // Then fixed for today's Chrome browser.\\n  if (typeof MouseEvent === 'function') {\\n    // Up-to-date approach\\n    var mevt = new MouseEvent('click', {\\n      view: window,\\n      bubbles: false,\\n      cancelable: true\\n    });\\n    node.dispatchEvent(mevt);\\n  } else if (document.createEvent) {\\n    // Fallback\\n    var evt = document.createEvent('MouseEvents');\\n    evt.initEvent('click', false, false);\\n    node.dispatchEvent(evt);\\n  } else if (document.createEventObject) {\\n    node.fireEvent('onclick');\\n  } else if (typeof node.onclick === 'function') {\\n    node.onclick();\\n  }\\n};\\n\\nvar animationEndEvent = function () {\\n  var testEl = document.createElement('div');\\n  var transEndEventNames = {\\n    'WebkitAnimation': 'webkitAnimationEnd',\\n    'OAnimation': 'oAnimationEnd oanimationend',\\n    'msAnimation': 'MSAnimationEnd',\\n    'animation': 'animationend'\\n  };\\n  for (var i in transEndEventNames) {\\n    if (transEndEventNames.hasOwnProperty(i) && testEl.style[i] !== undefined) {\\n      return transEndEventNames[i];\\n    }\\n  }\\n\\n  return false;\\n}();\\n\\n// Reset the page to its previous state\\nvar resetPrevState = function resetPrevState() {\\n  var modal = getModal();\\n  window.onkeydown = states.previousWindowKeyDown;\\n  if (states.previousActiveElement && states.previousActiveElement.focus) {\\n    var x = window.scrollX;\\n    var y = window.scrollY;\\n    states.previousActiveElement.focus();\\n    window.scrollTo(x, y);\\n  }\\n  clearTimeout(modal.timeout);\\n};\\n\\n// Measure width of scrollbar\\n// https://github.com/twbs/bootstrap/blob/master/js/modal.js#L279-L286\\nvar measureScrollbar = function measureScrollbar() {\\n  var supportsTouch = 'ontouchstart' in window || navigator.msMaxTouchPoints;\\n  if (supportsTouch) {\\n    return 0;\\n  }\\n  var scrollDiv = document.createElement('div');\\n  scrollDiv.style.width = '50px';\\n  scrollDiv.style.height = '50px';\\n  scrollDiv.style.overflow = 'scroll';\\n  document.body.appendChild(scrollDiv);\\n  var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;\\n  document.body.removeChild(scrollDiv);\\n  return scrollbarWidth;\\n};\\n\\n// JavaScript Debounce Function\\n// Simplivied version of https://davidwalsh.name/javascript-debounce-function\\nvar debounce = function debounce(func, wait) {\\n  var timeout = void 0;\\n  return function () {\\n    var later = function later() {\\n      timeout = null;\\n      func();\\n    };\\n    clearTimeout(timeout);\\n    timeout = setTimeout(later, wait);\\n  };\\n};\\n\\nvar _typeof = typeof Symbol === \\\"function\\\" && typeof Symbol.iterator === \\\"symbol\\\" ? function (obj) {\\n  return typeof obj;\\n} : function (obj) {\\n  return obj && typeof Symbol === \\\"function\\\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \\\"symbol\\\" : typeof obj;\\n};\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nvar _extends = Object.assign || function (target) {\\n  for (var i = 1; i < arguments.length; i++) {\\n    var source = arguments[i];\\n\\n    for (var key in source) {\\n      if (Object.prototype.hasOwnProperty.call(source, key)) {\\n        target[key] = source[key];\\n      }\\n    }\\n  }\\n\\n  return target;\\n};\\n\\nvar modalParams = _extends({}, defaultParams);\\nvar queue = [];\\nvar swal2Observer = void 0;\\n\\n/*\\n * Set type, text and actions on modal\\n */\\nvar setParameters = function setParameters(params) {\\n  var modal = getModal();\\n\\n  for (var param in params) {\\n    if (!defaultParams.hasOwnProperty(param) && param !== 'extraParams') {\\n      console.warn('SweetAlert2: Unknown parameter \\\"' + param + '\\\"');\\n    }\\n  }\\n\\n  // set modal width and margin-left\\n  modal.style.width = typeof params.width === 'number' ? params.width + 'px' : params.width;\\n\\n  modal.style.padding = params.padding + 'px';\\n  modal.style.background = params.background;\\n\\n  var title = getTitle();\\n  var content = getContent();\\n  var confirmButton = getConfirmButton();\\n  var cancelButton = getCancelButton();\\n  var closeButton = getCloseButton();\\n\\n  // Title\\n  if (params.titleText) {\\n    title.innerText = params.titleText;\\n  } else {\\n    title.innerHTML = params.title.split('\\\\n').join('<br>');\\n  }\\n\\n  // Content\\n  if (params.text || params.html) {\\n    if (_typeof(params.html) === 'object') {\\n      content.innerHTML = '';\\n      if (0 in params.html) {\\n        for (var i = 0; i in params.html; i++) {\\n          content.appendChild(params.html[i].cloneNode(true));\\n        }\\n      } else {\\n        content.appendChild(params.html.cloneNode(true));\\n      }\\n    } else if (params.html) {\\n      content.innerHTML = params.html;\\n    } else if (params.text) {\\n      content.textContent = params.text;\\n    }\\n    show(content);\\n  } else {\\n    hide(content);\\n  }\\n\\n  // Close button\\n  if (params.showCloseButton) {\\n    show(closeButton);\\n  } else {\\n    hide(closeButton);\\n  }\\n\\n  // Custom Class\\n  modal.className = swalClasses.modal;\\n  if (params.customClass) {\\n    addClass(modal, params.customClass);\\n  }\\n\\n  // Progress steps\\n  var progressStepsContainer = getProgressSteps();\\n  var currentProgressStep = parseInt(params.currentProgressStep === null ? sweetAlert.getQueueStep() : params.currentProgressStep, 10);\\n  if (params.progressSteps.length) {\\n    show(progressStepsContainer);\\n    empty(progressStepsContainer);\\n    if (currentProgressStep >= params.progressSteps.length) {\\n      console.warn('SweetAlert2: Invalid currentProgressStep parameter, it should be less than progressSteps.length ' + '(currentProgressStep like JS arrays starts from 0)');\\n    }\\n    params.progressSteps.forEach(function (step, index) {\\n      var circle = document.createElement('li');\\n      addClass(circle, swalClasses.progresscircle);\\n      circle.innerHTML = step;\\n      if (index === currentProgressStep) {\\n        addClass(circle, swalClasses.activeprogressstep);\\n      }\\n      progressStepsContainer.appendChild(circle);\\n      if (index !== params.progressSteps.length - 1) {\\n        var line = document.createElement('li');\\n        addClass(line, swalClasses.progressline);\\n        line.style.width = params.progressStepsDistance;\\n        progressStepsContainer.appendChild(line);\\n      }\\n    });\\n  } else {\\n    hide(progressStepsContainer);\\n  }\\n\\n  // Icon\\n  var icons = getIcons();\\n  for (var _i = 0; _i < icons.length; _i++) {\\n    hide(icons[_i]);\\n  }\\n  if (params.type) {\\n    var validType = false;\\n    for (var iconType in iconTypes) {\\n      if (params.type === iconType) {\\n        validType = true;\\n        break;\\n      }\\n    }\\n    if (!validType) {\\n      console.error('SweetAlert2: Unknown alert type: ' + params.type);\\n      return false;\\n    }\\n    var icon = modal.querySelector('.' + swalClasses.icon + '.' + iconTypes[params.type]);\\n    show(icon);\\n\\n    // Animate icon\\n    switch (params.type) {\\n      case 'success':\\n        addClass(icon, 'animate');\\n        addClass(icon.querySelector('.tip'), 'animate-success-tip');\\n        addClass(icon.querySelector('.long'), 'animate-success-long');\\n        break;\\n      case 'error':\\n        addClass(icon, 'animate-error-icon');\\n        addClass(icon.querySelector('.x-mark'), 'animate-x-mark');\\n        break;\\n      case 'warning':\\n        addClass(icon, 'pulse-warning');\\n        break;\\n      default:\\n        break;\\n    }\\n  }\\n\\n  // Custom image\\n  var image = getImage();\\n  if (params.imageUrl) {\\n    image.setAttribute('src', params.imageUrl);\\n    show(image);\\n\\n    if (params.imageWidth) {\\n      image.setAttribute('width', params.imageWidth);\\n    } else {\\n      image.removeAttribute('width');\\n    }\\n\\n    if (params.imageHeight) {\\n      image.setAttribute('height', params.imageHeight);\\n    } else {\\n      image.removeAttribute('height');\\n    }\\n\\n    image.className = swalClasses.image;\\n    if (params.imageClass) {\\n      addClass(image, params.imageClass);\\n    }\\n  } else {\\n    hide(image);\\n  }\\n\\n  // Cancel button\\n  if (params.showCancelButton) {\\n    cancelButton.style.display = 'inline-block';\\n  } else {\\n    hide(cancelButton);\\n  }\\n\\n  // Confirm button\\n  if (params.showConfirmButton) {\\n    removeStyleProperty(confirmButton, 'display');\\n  } else {\\n    hide(confirmButton);\\n  }\\n\\n  // Buttons spacer\\n  var spacer = getSpacer();\\n  if (!params.showConfirmButton && !params.showCancelButton) {\\n    hide(spacer);\\n  } else {\\n    show(spacer);\\n  }\\n\\n  // Edit text on cancel and confirm buttons\\n  confirmButton.innerHTML = params.confirmButtonText;\\n  cancelButton.innerHTML = params.cancelButtonText;\\n\\n  // Set buttons to selected background colors\\n  if (params.buttonsStyling) {\\n    confirmButton.style.backgroundColor = params.confirmButtonColor;\\n    cancelButton.style.backgroundColor = params.cancelButtonColor;\\n  }\\n\\n  // Add buttons custom classes\\n  confirmButton.className = swalClasses.confirm;\\n  addClass(confirmButton, params.confirmButtonClass);\\n  cancelButton.className = swalClasses.cancel;\\n  addClass(cancelButton, params.cancelButtonClass);\\n\\n  // Buttons styling\\n  if (params.buttonsStyling) {\\n    addClass(confirmButton, swalClasses.styled);\\n    addClass(cancelButton, swalClasses.styled);\\n  } else {\\n    removeClass(confirmButton, swalClasses.styled);\\n    removeClass(cancelButton, swalClasses.styled);\\n\\n    confirmButton.style.backgroundColor = confirmButton.style.borderLeftColor = confirmButton.style.borderRightColor = '';\\n    cancelButton.style.backgroundColor = cancelButton.style.borderLeftColor = cancelButton.style.borderRightColor = '';\\n  }\\n\\n  // CSS animation\\n  if (params.animation === true) {\\n    removeClass(modal, swalClasses.noanimation);\\n  } else {\\n    addClass(modal, swalClasses.noanimation);\\n  }\\n};\\n\\n/*\\n * Animations\\n */\\nvar openModal = function openModal(animation, onComplete) {\\n  var modal = getModal();\\n  if (animation) {\\n    addClass(modal, swalClasses.show);\\n    addClass(sweetContainer, swalClasses.fade);\\n    removeClass(modal, swalClasses.hide);\\n  } else {\\n    removeClass(modal, swalClasses.fade);\\n  }\\n  show(modal);\\n\\n  // scrolling is 'hidden' until animation is done, after that 'auto'\\n  sweetContainer.style.overflowY = 'hidden';\\n  if (animationEndEvent && !hasClass(modal, swalClasses.noanimation)) {\\n    modal.addEventListener(animationEndEvent, function swalCloseEventFinished() {\\n      modal.removeEventListener(animationEndEvent, swalCloseEventFinished);\\n      sweetContainer.style.overflowY = 'auto';\\n    });\\n  } else {\\n    sweetContainer.style.overflowY = 'auto';\\n  }\\n\\n  addClass(document.documentElement, swalClasses.in);\\n  addClass(document.body, swalClasses.in);\\n  addClass(sweetContainer, swalClasses.in);\\n  fixScrollbar();\\n  iOSfix();\\n  states.previousActiveElement = document.activeElement;\\n  if (onComplete !== null && typeof onComplete === 'function') {\\n    setTimeout(function () {\\n      onComplete(modal);\\n    });\\n  }\\n};\\n\\nvar fixScrollbar = function fixScrollbar() {\\n  // for queues, do not do this more than once\\n  if (states.previousBodyPadding !== null) {\\n    return;\\n  }\\n  // if the body has overflow\\n  if (document.body.scrollHeight > window.innerHeight) {\\n    // add padding so the content doesn't shift after removal of scrollbar\\n    states.previousBodyPadding = document.body.style.paddingRight;\\n    document.body.style.paddingRight = measureScrollbar() + 'px';\\n  }\\n};\\n\\nvar undoScrollbar = function undoScrollbar() {\\n  if (states.previousBodyPadding !== null) {\\n    document.body.style.paddingRight = states.previousBodyPadding;\\n    states.previousBodyPadding = null;\\n  }\\n};\\n\\n// Fix iOS scrolling http://stackoverflow.com/q/39626302/1331425\\nvar iOSfix = function iOSfix() {\\n  var iOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;\\n  if (iOS && !hasClass(document.body, swalClasses.iosfix)) {\\n    var offset = document.body.scrollTop;\\n    document.body.style.top = offset * -1 + 'px';\\n    addClass(document.body, swalClasses.iosfix);\\n  }\\n};\\n\\nvar undoIOSfix = function undoIOSfix() {\\n  if (hasClass(document.body, swalClasses.iosfix)) {\\n    var offset = parseInt(document.body.style.top, 10);\\n    removeClass(document.body, swalClasses.iosfix);\\n    document.body.style.top = '';\\n    document.body.scrollTop = offset * -1;\\n  }\\n};\\n\\nvar modalDependant = function modalDependant() {\\n  for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\\n    args[_key] = arguments[_key];\\n  }\\n\\n  if (args[0] === undefined) {\\n    console.error('SweetAlert2 expects at least 1 attribute!');\\n    return false;\\n  }\\n\\n  var params = _extends({}, modalParams);\\n\\n  switch (_typeof(args[0])) {\\n    case 'string':\\n      params.title = args[0];\\n      params.html = args[1];\\n      params.type = args[2];\\n\\n      break;\\n\\n    case 'object':\\n      _extends(params, args[0]);\\n      params.extraParams = args[0].extraParams;\\n\\n      if (params.input === 'email' && params.inputValidator === null) {\\n        params.inputValidator = function (email) {\\n          return new Promise(function (resolve, reject) {\\n            var emailRegex = /^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\\\\.[a-zA-Z]{2,6}$/;\\n            if (emailRegex.test(email)) {\\n              resolve();\\n            } else {\\n              reject('Invalid email address');\\n            }\\n          });\\n        };\\n      }\\n      break;\\n\\n    default:\\n      console.error('SweetAlert2: Unexpected type of argument! Expected \\\"string\\\" or \\\"object\\\", got ' + _typeof(args[0]));\\n      return false;\\n  }\\n\\n  setParameters(params);\\n\\n  var modal = getModal();\\n\\n  return new Promise(function (resolve, reject) {\\n    // Close on timer\\n    if (params.timer) {\\n      modal.timeout = setTimeout(function () {\\n        sweetAlert.closeModal(params.onClose);\\n        reject('timer');\\n      }, params.timer);\\n    }\\n\\n    // Get input element by specified type or, if type isn't specified, by params.input\\n    var getInput = function getInput(inputType) {\\n      inputType = inputType || params.input;\\n      if (!inputType) {\\n        return null;\\n      }\\n      switch (inputType) {\\n        case 'select':\\n        case 'textarea':\\n        case 'file':\\n          return getChildByClass(modal, swalClasses[inputType]);\\n        case 'checkbox':\\n          return modal.querySelector('.' + swalClasses.checkbox + ' input');\\n        case 'radio':\\n          return modal.querySelector('.' + swalClasses.radio + ' input:checked') || modal.querySelector('.' + swalClasses.radio + ' input:first-child');\\n        case 'range':\\n          return modal.querySelector('.' + swalClasses.range + ' input');\\n        default:\\n          return getChildByClass(modal, swalClasses.input);\\n      }\\n    };\\n\\n    // Get the value of the modal input\\n    var getInputValue = function getInputValue() {\\n      var input = getInput();\\n      if (!input) {\\n        return null;\\n      }\\n      switch (params.input) {\\n        case 'checkbox':\\n          return input.checked ? 1 : 0;\\n        case 'radio':\\n          return input.checked ? input.value : null;\\n        case 'file':\\n          return input.files.length ? input.files[0] : null;\\n        default:\\n          return params.inputAutoTrim ? input.value.trim() : input.value;\\n      }\\n    };\\n\\n    // input autofocus\\n    if (params.input) {\\n      setTimeout(function () {\\n        var input = getInput();\\n        if (input) {\\n          focusInput(input);\\n        }\\n      }, 0);\\n    }\\n\\n    var confirm = function confirm(value) {\\n      if (params.showLoaderOnConfirm) {\\n        sweetAlert.showLoading();\\n      }\\n\\n      if (params.preConfirm) {\\n        params.preConfirm(value, params.extraParams).then(function (preConfirmValue) {\\n          sweetAlert.closeModal(params.onClose);\\n          resolve(preConfirmValue || value);\\n        }, function (error) {\\n          sweetAlert.hideLoading();\\n          if (error) {\\n            sweetAlert.showValidationError(error);\\n          }\\n        });\\n      } else {\\n        sweetAlert.closeModal(params.onClose);\\n        resolve(value);\\n      }\\n    };\\n\\n    // Mouse interactions\\n    var onButtonEvent = function onButtonEvent(event) {\\n      var e = event || window.event;\\n      var target = e.target || e.srcElement;\\n      var confirmButton = getConfirmButton();\\n      var cancelButton = getCancelButton();\\n      var targetedConfirm = confirmButton === target || confirmButton.contains(target);\\n      var targetedCancel = cancelButton === target || cancelButton.contains(target);\\n\\n      switch (e.type) {\\n        case 'mouseover':\\n        case 'mouseup':\\n          if (params.buttonsStyling) {\\n            if (targetedConfirm) {\\n              confirmButton.style.backgroundColor = colorLuminance(params.confirmButtonColor, -0.1);\\n            } else if (targetedCancel) {\\n              cancelButton.style.backgroundColor = colorLuminance(params.cancelButtonColor, -0.1);\\n            }\\n          }\\n          break;\\n        case 'mouseout':\\n          if (params.buttonsStyling) {\\n            if (targetedConfirm) {\\n              confirmButton.style.backgroundColor = params.confirmButtonColor;\\n            } else if (targetedCancel) {\\n              cancelButton.style.backgroundColor = params.cancelButtonColor;\\n            }\\n          }\\n          break;\\n        case 'mousedown':\\n          if (params.buttonsStyling) {\\n            if (targetedConfirm) {\\n              confirmButton.style.backgroundColor = colorLuminance(params.confirmButtonColor, -0.2);\\n            } else if (targetedCancel) {\\n              cancelButton.style.backgroundColor = colorLuminance(params.cancelButtonColor, -0.2);\\n            }\\n          }\\n          break;\\n        case 'click':\\n          // Clicked 'confirm'\\n          if (targetedConfirm && sweetAlert.isVisible()) {\\n            if (params.input) {\\n              (function () {\\n                var inputValue = getInputValue();\\n\\n                if (params.inputValidator) {\\n                  sweetAlert.disableInput();\\n                  params.inputValidator(inputValue, params.extraParams).then(function () {\\n                    sweetAlert.enableInput();\\n                    confirm(inputValue);\\n                  }, function (error) {\\n                    sweetAlert.enableInput();\\n                    if (error) {\\n                      sweetAlert.showValidationError(error);\\n                    }\\n                  });\\n                } else {\\n                  confirm(inputValue);\\n                }\\n              })();\\n            } else {\\n              confirm(true);\\n            }\\n\\n            // Clicked 'cancel'\\n          } else if (targetedCancel && sweetAlert.isVisible()) {\\n            sweetAlert.closeModal(params.onClose);\\n            reject('cancel');\\n          }\\n          break;\\n        default:\\n      }\\n    };\\n\\n    var buttons = modal.querySelectorAll('button');\\n    for (var i = 0; i < buttons.length; i++) {\\n      buttons[i].onclick = onButtonEvent;\\n      buttons[i].onmouseover = onButtonEvent;\\n      buttons[i].onmouseout = onButtonEvent;\\n      buttons[i].onmousedown = onButtonEvent;\\n    }\\n\\n    // Closing modal by close button\\n    getCloseButton().onclick = function () {\\n      sweetAlert.closeModal(params.onClose);\\n      reject('close');\\n    };\\n\\n    // Closing modal by overlay click\\n    sweetContainer.onclick = function (e) {\\n      if (e.target !== sweetContainer) {\\n        return;\\n      }\\n      if (params.allowOutsideClick) {\\n        sweetAlert.closeModal(params.onClose);\\n        reject('overlay');\\n      }\\n    };\\n\\n    var confirmButton = getConfirmButton();\\n    var cancelButton = getCancelButton();\\n\\n    // Reverse buttons if neede d\\n    if (params.reverseButtons) {\\n      confirmButton.parentNode.insertBefore(cancelButton, confirmButton);\\n    } else {\\n      confirmButton.parentNode.insertBefore(confirmButton, cancelButton);\\n    }\\n\\n    // Focus handling\\n    var setFocus = function setFocus(index, increment) {\\n      var focusableElements = getFocusableElements(params.focusCancel);\\n      // search for visible elements and select the next possible match\\n      for (var _i2 = 0; _i2 < focusableElements.length; _i2++) {\\n        index = index + increment;\\n\\n        // rollover to first item\\n        if (index === focusableElements.length) {\\n          index = 0;\\n\\n          // go to last item\\n        } else if (index === -1) {\\n          index = focusableElements.length - 1;\\n        }\\n\\n        // determine if element is visible\\n        var el = focusableElements[index];\\n        if (isVisible(el)) {\\n          return el.focus();\\n        }\\n      }\\n    };\\n\\n    var handleKeyDown = function handleKeyDown(event) {\\n      var e = event || window.event;\\n      var keyCode = e.keyCode || e.which;\\n\\n      if ([9, 13, 32, 27].indexOf(keyCode) === -1) {\\n        // Don't do work on keys we don't care about.\\n        return;\\n      }\\n\\n      var targetElement = e.target || e.srcElement;\\n\\n      var focusableElements = getFocusableElements(params.focusCancel);\\n      var btnIndex = -1; // Find the button - note, this is a nodelist, not an array.\\n      for (var _i3 = 0; _i3 < focusableElements.length; _i3++) {\\n        if (targetElement === focusableElements[_i3]) {\\n          btnIndex = _i3;\\n          break;\\n        }\\n      }\\n\\n      // TAB\\n      if (keyCode === 9) {\\n        if (!e.shiftKey) {\\n          // Cycle to the next button\\n          setFocus(btnIndex, 1);\\n        } else {\\n          // Cycle to the prev button\\n          setFocus(btnIndex, -1);\\n        }\\n        e.stopPropagation();\\n        e.preventDefault();\\n\\n        // ENTER/SPACE\\n      } else {\\n        if (keyCode === 13 || keyCode === 32) {\\n          if (btnIndex === -1) {\\n            // ENTER/SPACE clicked outside of a button.\\n            if (params.focusCancel) {\\n              fireClick(cancelButton, e);\\n            } else {\\n              fireClick(confirmButton, e);\\n            }\\n          }\\n        } else if (keyCode === 27 && params.allowEscapeKey === true) {\\n          sweetAlert.closeModal(params.onClose);\\n          reject('esc');\\n        }\\n      }\\n    };\\n\\n    states.previousWindowKeyDown = window.onkeydown;\\n    window.onkeydown = handleKeyDown;\\n\\n    // Loading state\\n    if (params.buttonsStyling) {\\n      confirmButton.style.borderLeftColor = params.confirmButtonColor;\\n      confirmButton.style.borderRightColor = params.confirmButtonColor;\\n    }\\n\\n    /**\\n     * Show spinner instead of Confirm button and disable Cancel button\\n     */\\n    sweetAlert.showLoading = sweetAlert.enableLoading = function () {\\n      show(getSpacer());\\n      show(confirmButton, 'inline-block');\\n      addClass(confirmButton, swalClasses.loading);\\n      addClass(modal, swalClasses.loading);\\n      confirmButton.disabled = true;\\n      cancelButton.disabled = true;\\n    };\\n\\n    /**\\n     * Show spinner instead of Confirm button and disable Cancel button\\n     */\\n    sweetAlert.hideLoading = sweetAlert.disableLoading = function () {\\n      if (!params.showConfirmButton) {\\n        hide(confirmButton);\\n        if (!params.showCancelButton) {\\n          hide(getSpacer());\\n        }\\n      }\\n      removeClass(confirmButton, swalClasses.loading);\\n      removeClass(modal, swalClasses.loading);\\n      confirmButton.disabled = false;\\n      cancelButton.disabled = false;\\n    };\\n\\n    sweetAlert.getTitle = function () {\\n      return getTitle();\\n    };\\n    sweetAlert.getContent = function () {\\n      return getContent();\\n    };\\n    sweetAlert.getInput = function () {\\n      return getInput();\\n    };\\n    sweetAlert.getImage = function () {\\n      return getImage();\\n    };\\n    sweetAlert.getConfirmButton = function () {\\n      return getConfirmButton();\\n    };\\n    sweetAlert.getCancelButton = function () {\\n      return getCancelButton();\\n    };\\n\\n    sweetAlert.enableButtons = function () {\\n      confirmButton.disabled = false;\\n      cancelButton.disabled = false;\\n    };\\n\\n    sweetAlert.disableButtons = function () {\\n      confirmButton.disabled = true;\\n      cancelButton.disabled = true;\\n    };\\n\\n    sweetAlert.enableConfirmButton = function () {\\n      confirmButton.disabled = false;\\n    };\\n\\n    sweetAlert.disableConfirmButton = function () {\\n      confirmButton.disabled = true;\\n    };\\n\\n    sweetAlert.enableInput = function () {\\n      var input = getInput();\\n      if (!input) {\\n        return false;\\n      }\\n      if (input.type === 'radio') {\\n        var radiosContainer = input.parentNode.parentNode;\\n        var radios = radiosContainer.querySelectorAll('input');\\n        for (var _i4 = 0; _i4 < radios.length; _i4++) {\\n          radios[_i4].disabled = false;\\n        }\\n      } else {\\n        input.disabled = false;\\n      }\\n    };\\n\\n    sweetAlert.disableInput = function () {\\n      var input = getInput();\\n      if (!input) {\\n        return false;\\n      }\\n      if (input && input.type === 'radio') {\\n        var radiosContainer = input.parentNode.parentNode;\\n        var radios = radiosContainer.querySelectorAll('input');\\n        for (var _i5 = 0; _i5 < radios.length; _i5++) {\\n          radios[_i5].disabled = true;\\n        }\\n      } else {\\n        input.disabled = true;\\n      }\\n    };\\n\\n    // Set modal min-height to disable scrolling inside the modal\\n    sweetAlert.recalculateHeight = debounce(function () {\\n      var modal = getModal();\\n      var prevState = modal.style.display;\\n      modal.style.minHeight = '';\\n      show(modal);\\n      modal.style.minHeight = modal.scrollHeight + 1 + 'px';\\n      modal.style.display = prevState;\\n    }, 50);\\n\\n    // Show block with validation error\\n    sweetAlert.showValidationError = function (error) {\\n      var validationError = getValidationError();\\n      validationError.innerHTML = error;\\n      show(validationError);\\n\\n      var input = getInput();\\n      if (input) {\\n        focusInput(input);\\n        addClass(input, swalClasses.inputerror);\\n      }\\n    };\\n\\n    // Hide block with validation error\\n    sweetAlert.resetValidationError = function () {\\n      var validationError = getValidationError();\\n      hide(validationError);\\n      sweetAlert.recalculateHeight();\\n\\n      var input = getInput();\\n      if (input) {\\n        removeClass(input, swalClasses.inputerror);\\n      }\\n    };\\n\\n    sweetAlert.getProgressSteps = function () {\\n      return params.progressSteps;\\n    };\\n\\n    sweetAlert.setProgressSteps = function (progressSteps) {\\n      params.progressSteps = progressSteps;\\n      setParameters(params);\\n    };\\n\\n    sweetAlert.showProgressSteps = function () {\\n      show(getProgressSteps());\\n    };\\n\\n    sweetAlert.hideProgressSteps = function () {\\n      hide(getProgressSteps());\\n    };\\n\\n    sweetAlert.enableButtons();\\n    sweetAlert.hideLoading();\\n    sweetAlert.resetValidationError();\\n\\n    // inputs\\n    var inputTypes = ['input', 'file', 'range', 'select', 'radio', 'checkbox', 'textarea'];\\n    var input = void 0;\\n    for (var _i6 = 0; _i6 < inputTypes.length; _i6++) {\\n      var inputClass = swalClasses[inputTypes[_i6]];\\n      var inputContainer = getChildByClass(modal, inputClass);\\n      input = getInput(inputTypes[_i6]);\\n\\n      // set attributes\\n      if (input) {\\n        for (var j in input.attributes) {\\n          if (input.attributes.hasOwnProperty(j)) {\\n            var attrName = input.attributes[j].name;\\n            if (attrName !== 'type' && attrName !== 'value') {\\n              input.removeAttribute(attrName);\\n            }\\n          }\\n        }\\n        for (var attr in params.inputAttributes) {\\n          input.setAttribute(attr, params.inputAttributes[attr]);\\n        }\\n      }\\n\\n      // set class\\n      inputContainer.className = inputClass;\\n      if (params.inputClass) {\\n        addClass(inputContainer, params.inputClass);\\n      }\\n\\n      hide(inputContainer);\\n    }\\n\\n    var populateInputOptions = void 0;\\n\\n    (function () {\\n      switch (params.input) {\\n        case 'text':\\n        case 'email':\\n        case 'password':\\n        case 'number':\\n        case 'tel':\\n          input = getChildByClass(modal, swalClasses.input);\\n          input.value = params.inputValue;\\n          input.placeholder = params.inputPlaceholder;\\n          input.type = params.input;\\n          show(input);\\n          break;\\n        case 'file':\\n          input = getChildByClass(modal, swalClasses.file);\\n          input.placeholder = params.inputPlaceholder;\\n          input.type = params.input;\\n          show(input);\\n          break;\\n        case 'range':\\n          var range = getChildByClass(modal, swalClasses.range);\\n          var rangeInput = range.querySelector('input');\\n          var rangeOutput = range.querySelector('output');\\n          rangeInput.value = params.inputValue;\\n          rangeInput.type = params.input;\\n          rangeOutput.value = params.inputValue;\\n          show(range);\\n          break;\\n        case 'select':\\n          var select = getChildByClass(modal, swalClasses.select);\\n          select.innerHTML = '';\\n          if (params.inputPlaceholder) {\\n            var placeholder = document.createElement('option');\\n            placeholder.innerHTML = params.inputPlaceholder;\\n            placeholder.value = '';\\n            placeholder.disabled = true;\\n            placeholder.selected = true;\\n            select.appendChild(placeholder);\\n          }\\n          populateInputOptions = function populateInputOptions(inputOptions) {\\n            for (var optionValue in inputOptions) {\\n              var option = document.createElement('option');\\n              option.value = optionValue;\\n              option.innerHTML = inputOptions[optionValue];\\n              if (params.inputValue === optionValue) {\\n                option.selected = true;\\n              }\\n              select.appendChild(option);\\n            }\\n            show(select);\\n            select.focus();\\n          };\\n          break;\\n        case 'radio':\\n          var radio = getChildByClass(modal, swalClasses.radio);\\n          radio.innerHTML = '';\\n          populateInputOptions = function populateInputOptions(inputOptions) {\\n            for (var radioValue in inputOptions) {\\n              var radioInput = document.createElement('input');\\n              var radioLabel = document.createElement('label');\\n              var radioLabelSpan = document.createElement('span');\\n              radioInput.type = 'radio';\\n              radioInput.name = swalClasses.radio;\\n              radioInput.value = radioValue;\\n              if (params.inputValue === radioValue) {\\n                radioInput.checked = true;\\n              }\\n              radioLabelSpan.innerHTML = inputOptions[radioValue];\\n              radioLabel.appendChild(radioInput);\\n              radioLabel.appendChild(radioLabelSpan);\\n              radioLabel.for = radioInput.id;\\n              radio.appendChild(radioLabel);\\n            }\\n            show(radio);\\n            var radios = radio.querySelectorAll('input');\\n            if (radios.length) {\\n              radios[0].focus();\\n            }\\n          };\\n          break;\\n        case 'checkbox':\\n          var checkbox = getChildByClass(modal, swalClasses.checkbox);\\n          var checkboxInput = getInput('checkbox');\\n          checkboxInput.type = 'checkbox';\\n          checkboxInput.value = 1;\\n          checkboxInput.id = swalClasses.checkbox;\\n          checkboxInput.checked = Boolean(params.inputValue);\\n          var label = checkbox.getElementsByTagName('span');\\n          if (label.length) {\\n            checkbox.removeChild(label[0]);\\n          }\\n          label = document.createElement('span');\\n          label.innerHTML = params.inputPlaceholder;\\n          checkbox.appendChild(label);\\n          show(checkbox);\\n          break;\\n        case 'textarea':\\n          var textarea = getChildByClass(modal, swalClasses.textarea);\\n          textarea.value = params.inputValue;\\n          textarea.placeholder = params.inputPlaceholder;\\n          show(textarea);\\n          break;\\n        case null:\\n          break;\\n        default:\\n          console.error('SweetAlert2: Unexpected type of input! Expected \\\"text\\\", \\\"email\\\", \\\"password\\\", \\\"select\\\", \\\"checkbox\\\", \\\"textarea\\\" or \\\"file\\\", got \\\"' + params.input + '\\\"');\\n          break;\\n      }\\n    })();\\n\\n    if (params.input === 'select' || params.input === 'radio') {\\n      if (params.inputOptions instanceof Promise) {\\n        sweetAlert.showLoading();\\n        params.inputOptions.then(function (inputOptions) {\\n          sweetAlert.hideLoading();\\n          populateInputOptions(inputOptions);\\n        });\\n      } else if (_typeof(params.inputOptions) === 'object') {\\n        populateInputOptions(params.inputOptions);\\n      } else {\\n        console.error('SweetAlert2: Unexpected type of inputOptions! Expected object or Promise, got ' + _typeof(params.inputOptions));\\n      }\\n    }\\n\\n    openModal(params.animation, params.onOpen);\\n\\n    // Focus the first element (input or button)\\n    setFocus(-1, 1);\\n\\n    // fix scroll\\n    sweetContainer.scrollTop = 0;\\n\\n    // Observe changes inside the modal and adjust height\\n    if (typeof MutationObserver !== 'undefined' && !swal2Observer) {\\n      swal2Observer = new MutationObserver(sweetAlert.recalculateHeight);\\n      swal2Observer.observe(modal, { childList: true, characterData: true, subtree: true });\\n    }\\n  });\\n};\\n\\n// SweetAlert entry point\\nvar sweetAlert = function sweetAlert() {\\n  for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\\n    args[_key2] = arguments[_key2];\\n  }\\n\\n  if (sweetAlert.isVisible()) {\\n    sweetAlert.close();\\n  }\\n\\n  return modalDependant.apply(undefined, args);\\n};\\n\\n/*\\n * Global function to determine if swal2 modal is visible\\n */\\nsweetAlert.isVisible = function () {\\n  var modal = getModal();\\n  return isVisible(modal);\\n};\\n\\n/*\\n * Global function for chaining sweetAlert modals\\n */\\nsweetAlert.queue = function (steps) {\\n  queue = steps;\\n  var modal = getModal();\\n  var resetQueue = function resetQueue() {\\n    queue = [];\\n    modal.removeAttribute('data-queue-step');\\n  };\\n  var queueResult = [];\\n  return new Promise(function (resolve, reject) {\\n    (function step(i, callback) {\\n      if (i < queue.length) {\\n        modal.setAttribute('data-queue-step', i);\\n\\n        sweetAlert(queue[i]).then(function (result) {\\n          queueResult.push(result);\\n          step(i + 1, callback);\\n        }, function (dismiss) {\\n          resetQueue();\\n          reject(dismiss);\\n        });\\n      } else {\\n        resetQueue();\\n        resolve(queueResult);\\n      }\\n    })(0);\\n  });\\n};\\n\\n/*\\n * Global function for getting the index of current modal in queue\\n */\\nsweetAlert.getQueueStep = function () {\\n  return getModal().getAttribute('data-queue-step');\\n};\\n\\n/*\\n * Global function for inserting a modal to the queue\\n */\\nsweetAlert.insertQueueStep = function (step, index) {\\n  if (index && index < queue.length) {\\n    return queue.splice(index, 0, step);\\n  }\\n  return queue.push(step);\\n};\\n\\n/*\\n * Global function for deleting a modal from the queue\\n */\\nsweetAlert.deleteQueueStep = function (index) {\\n  if (typeof queue[index] !== 'undefined') {\\n    queue.splice(index, 1);\\n  }\\n};\\n\\n/*\\n * Global function to close sweetAlert\\n */\\nsweetAlert.close = sweetAlert.closeModal = function (onComplete) {\\n  var modal = getModal();\\n  removeClass(modal, swalClasses.show);\\n  addClass(modal, swalClasses.hide);\\n\\n  // Reset icon animations\\n  var successIcon = modal.querySelector('.' + swalClasses.icon + '.' + iconTypes.success);\\n  removeClass(successIcon, 'animate');\\n  removeClass(successIcon.querySelector('.tip'), 'animate-success-tip');\\n  removeClass(successIcon.querySelector('.long'), 'animate-success-long');\\n\\n  var errorIcon = modal.querySelector('.' + swalClasses.icon + '.' + iconTypes.error);\\n  removeClass(errorIcon, 'animate-error-icon');\\n  removeClass(errorIcon.querySelector('.x-mark'), 'animate-x-mark');\\n\\n  var warningIcon = modal.querySelector('.' + swalClasses.icon + '.' + iconTypes.warning);\\n  removeClass(warningIcon, 'pulse-warning');\\n\\n  resetPrevState();\\n\\n  var hideModalAndResetState = function hideModalAndResetState() {\\n    hide(modal);\\n    modal.style.minHeight = '';\\n    removeClass(document.documentElement, swalClasses.in);\\n    removeClass(document.body, swalClasses.in);\\n    removeClass(sweetContainer, swalClasses.in);\\n    undoScrollbar();\\n    undoIOSfix();\\n  };\\n\\n  // If animation is supported, animate\\n  if (animationEndEvent && !hasClass(modal, swalClasses.noanimation)) {\\n    modal.addEventListener(animationEndEvent, function swalCloseEventFinished() {\\n      modal.removeEventListener(animationEndEvent, swalCloseEventFinished);\\n      if (hasClass(modal, swalClasses.hide)) {\\n        hideModalAndResetState();\\n      }\\n    });\\n  } else {\\n    // Otherwise, hide immediately\\n    hideModalAndResetState();\\n  }\\n  if (onComplete !== null && typeof onComplete === 'function') {\\n    setTimeout(function () {\\n      onComplete(modal);\\n    });\\n  }\\n};\\n\\n/*\\n * Global function to click 'Confirm' button\\n */\\nsweetAlert.clickConfirm = function () {\\n  return getConfirmButton().click();\\n};\\n\\n/*\\n * Global function to click 'Cancel' button\\n */\\nsweetAlert.clickCancel = function () {\\n  return getCancelButton().click();\\n};\\n\\n/**\\n * Set default params for each popup\\n * @param {Object} userParams\\n */\\nsweetAlert.setDefaults = function (userParams) {\\n  if (!userParams || (typeof userParams === 'undefined' ? 'undefined' : _typeof(userParams)) !== 'object') {\\n    return console.error('SweetAlert2: the argument for setDefaults() is required and has to be a object');\\n  }\\n\\n  for (var param in userParams) {\\n    if (!defaultParams.hasOwnProperty(param) && param !== 'extraParams') {\\n      console.warn('SweetAlert2: Unknown parameter \\\"' + param + '\\\"');\\n      delete userParams[param];\\n    }\\n  }\\n\\n  _extends(modalParams, userParams);\\n};\\n\\n/**\\n * Reset default params for each popup\\n */\\nsweetAlert.resetDefaults = function () {\\n  modalParams = _extends({}, defaultParams);\\n};\\n\\nsweetAlert.noop = function () {};\\n\\nsweetAlert.version = '6.3.8';\\n\\nsweetAlert.default = sweetAlert;\\n\\nreturn sweetAlert;\\n\\n})));\\nif (window.Sweetalert2) window.sweetAlert = window.swal = window.Sweetalert2;\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// /home/cool/Music/personal_projects/Zmall/angbackuo/~/raw-loader!/home/cool/Music/personal_projects/Zmall/angbackuo/~/sweetalert2/dist/sweetalert2.js\n// module id = 1507\n// module chunks = 2","/*\r\n\tMIT License http://www.opensource.org/licenses/mit-license.php\r\n\tAuthor Tobias Koppers @sokra\r\n*/\r\nmodule.exports = function(src) {\r\n\tif (typeof execScript !== \"undefined\")\r\n\t\texecScript(src);\r\n\telse\r\n\t\teval.call(null, src);\r\n}\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /home/cool/Music/personal_projects/Zmall/angbackuo/~/script-loader/addScript.js\n// module id = 59\n// module chunks = 2","require(\"!!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/script-loader/addScript.js\")(require(\"!!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/raw-loader/index.js!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/bootstrap/dist/js/bootstrap.js\"))\n\n\n//////////////////\n// WEBPACK FOOTER\n// /home/cool/Music/personal_projects/Zmall/angbackuo/~/bootstrap/dist/js/bootstrap.js\n// module id = 790\n// module chunks = 2","require(\"!!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/script-loader/addScript.js\")(require(\"!!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/raw-loader/index.js!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/jquery/dist/jquery.js\"))\n\n\n//////////////////\n// WEBPACK FOOTER\n// /home/cool/Music/personal_projects/Zmall/angbackuo/~/jquery/dist/jquery.js\n// module id = 791\n// module chunks = 2","require(\"!!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/script-loader/addScript.js\")(require(\"!!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/raw-loader/index.js!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/metismenu/dist/metisMenu.js\"))\n\n\n//////////////////\n// WEBPACK FOOTER\n// /home/cool/Music/personal_projects/Zmall/angbackuo/~/metismenu/dist/metisMenu.js\n// module id = 792\n// module chunks = 2","require(\"!!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/script-loader/addScript.js\")(require(\"!!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/raw-loader/index.js!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/source-map-loader/index.js!/home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/c3.js\"))\n\n\n//////////////////\n// WEBPACK FOOTER\n// /home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/c3.js\n// module id = 793\n// module chunks = 2","require(\"!!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/script-loader/addScript.js\")(require(\"!!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/raw-loader/index.js!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/source-map-loader/index.js!/home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/chosen/chosen.jquery.js\"))\n\n\n//////////////////\n// WEBPACK FOOTER\n// /home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/chosen/chosen.jquery.js\n// module id = 794\n// module chunks = 2","require(\"!!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/script-loader/addScript.js\")(require(\"!!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/raw-loader/index.js!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/source-map-loader/index.js!/home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/clockpicker/clockpicker.js\"))\n\n\n//////////////////\n// WEBPACK FOOTER\n// /home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/clockpicker/clockpicker.js\n// module id = 795\n// module chunks = 2","require(\"!!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/script-loader/addScript.js\")(require(\"!!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/raw-loader/index.js!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/source-map-loader/index.js!/home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/d3.js\"))\n\n\n//////////////////\n// WEBPACK FOOTER\n// /home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/d3.js\n// module id = 796\n// module chunks = 2","require(\"!!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/script-loader/addScript.js\")(require(\"!!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/raw-loader/index.js!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/source-map-loader/index.js!/home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/hammer.js\"))\n\n\n//////////////////\n// WEBPACK FOOTER\n// /home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/hammer.js\n// module id = 797\n// module chunks = 2","require(\"!!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/script-loader/addScript.js\")(require(\"!!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/raw-loader/index.js!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/source-map-loader/index.js!/home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/iCheck/icheck.min.js\"))\n\n\n//////////////////\n// WEBPACK FOOTER\n// /home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/iCheck/icheck.min.js\n// module id = 798\n// module chunks = 2","require(\"!!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/script-loader/addScript.js\")(require(\"!!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/raw-loader/index.js!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/source-map-loader/index.js!/home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/jasny/jasny-bootstrap.min.js\"))\n\n\n//////////////////\n// WEBPACK FOOTER\n// /home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/jasny/jasny-bootstrap.min.js\n// module id = 799\n// module chunks = 2","require(\"!!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/script-loader/addScript.js\")(require(\"!!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/raw-loader/index.js!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/source-map-loader/index.js!/home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/touchspin/jquery.bootstrap-touchspin.min.js\"))\n\n\n//////////////////\n// WEBPACK FOOTER\n// /home/cool/Music/personal_projects/Zmall/angbackuo/public/assets/js/touchspin/jquery.bootstrap-touchspin.min.js\n// module id = 800\n// module chunks = 2","require(\"!!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/script-loader/addScript.js\")(require(\"!!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/raw-loader/index.js!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/source-map-loader/index.js!/home/cool/Music/personal_projects/Zmall/angbackuo/public/vendor/pace/pace.min.js\"))\n\n\n//////////////////\n// WEBPACK FOOTER\n// /home/cool/Music/personal_projects/Zmall/angbackuo/public/vendor/pace/pace.min.js\n// module id = 801\n// module chunks = 2","require(\"!!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/script-loader/addScript.js\")(require(\"!!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/raw-loader/index.js!/home/cool/Music/personal_projects/Zmall/angbackuo/node_modules/sweetalert2/dist/sweetalert2.js\"))\n\n\n//////////////////\n// WEBPACK FOOTER\n// /home/cool/Music/personal_projects/Zmall/angbackuo/~/sweetalert2/dist/sweetalert2.js\n// module id = 802\n// module chunks = 2"],"mappings":";;;;;AAAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;;;;;;;;;;;;;;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACTA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;","sourceRoot":""}