{"version":3,"sources":["webpack:////tmp/build_3ca1f1fb/app/assets/es6/vendor/bootstrap/bootstrap-modal.js","webpack:////tmp/build_3ca1f1fb/node_modules/lodash/isSymbol.js","webpack:////tmp/build_3ca1f1fb/app/assets/es6/icmib/tiles.js","webpack:////tmp/build_3ca1f1fb/app/assets/es6/entries/tilez.js","webpack:////tmp/build_3ca1f1fb/app/assets/es6/vendor/bootstrap/bootstrap-tooltip.js","webpack:////tmp/build_3ca1f1fb/app/assets/es6/vendor/bootstrap/bootstrap-tab.js","webpack:////tmp/build_3ca1f1fb/app/assets/es6/vendor/packery.pkgd.js?2706","webpack:////tmp/build_3ca1f1fb/app/assets/es6/vendor/bootstrap/bootstrap-modal.js?ecb8","webpack:////tmp/build_3ca1f1fb/node_modules/script-loader/addScript.js","webpack:////tmp/build_3ca1f1fb/app/assets/es6/vendor/bootstrap/bootstrap-popover.js?1b98","webpack:////tmp/build_3ca1f1fb/app/assets/es6/vendor/bootstrap/bootstrap-alert.js?5629","webpack:////tmp/build_3ca1f1fb/node_modules/lodash/_getRawTag.js","webpack:////tmp/build_3ca1f1fb/app/assets/es6/vendor/bootstrap/bootstrap-alert.js","webpack:////tmp/build_3ca1f1fb/app/assets/es6/vendor/bootstrap/bootstrap-popover.js","webpack:////tmp/build_3ca1f1fb/node_modules/lodash/isObjectLike.js","webpack:////tmp/build_3ca1f1fb/node_modules/lodash/isObject.js","webpack:////tmp/build_3ca1f1fb/node_modules/lodash/_objectToString.js","webpack:////tmp/build_3ca1f1fb/node_modules/lodash/_baseSlice.js","webpack:////tmp/build_3ca1f1fb/node_modules/lodash/_root.js","webpack:////tmp/build_3ca1f1fb/app/assets/es6/vendor/packery.pkgd.js","webpack:////tmp/build_3ca1f1fb/node_modules/lodash/isArrayLike.js","webpack:////tmp/build_3ca1f1fb/app/assets/es6/vendor/bootstrap/bootstrap-transition.js","webpack:////tmp/build_3ca1f1fb/app/assets/es6/vendor/bootstrap/bootstrap-tab.js?d6c5","webpack:////tmp/build_3ca1f1fb/app/assets/es6/vendor/bootstrap/bootstrap-transition.js?3c17","webpack:////tmp/build_3ca1f1fb/node_modules/lodash/_baseGetTag.js","webpack:////tmp/build_3ca1f1fb/app/assets/es6/utils/cookiePolicyNotice.js","webpack:////tmp/build_3ca1f1fb/app/assets/es6/utils/cookies.js","webpack:////tmp/build_3ca1f1fb/node_modules/lodash/toInteger.js","webpack:////tmp/build_3ca1f1fb/node_modules/lodash/_trimmedEndIndex.js","webpack:////tmp/build_3ca1f1fb/app/assets/es6/icmib/sessions.js","webpack:////tmp/build_3ca1f1fb/node_modules/lodash/_freeGlobal.js","webpack:////tmp/build_3ca1f1fb/app/assets/es6/vendor/bootstrap/bootstrap-tooltip.js?688e","webpack:////tmp/build_3ca1f1fb/node_modules/lodash/toFinite.js","webpack:////tmp/build_3ca1f1fb/app/assets/es6/vendor/bootstrap/bootstrap-dropdown.js","webpack:////tmp/build_3ca1f1fb/app/assets/es6/vendor/bootstrap/bootstrap-collapse.js?ee89","webpack:////tmp/build_3ca1f1fb/app/assets/es6/vendor/bootstrap/bootstrap-collapse.js","webpack:////tmp/build_3ca1f1fb/node_modules/lodash/_baseTrim.js","webpack:////tmp/build_3ca1f1fb/node_modules/lodash/chunk.js","webpack:////tmp/build_3ca1f1fb/node_modules/lodash/isFunction.js","webpack:////tmp/build_3ca1f1fb/node_modules/lodash/eq.js","webpack:////tmp/build_3ca1f1fb/node_modules/lodash/_isIterateeCall.js","webpack:////tmp/build_3ca1f1fb/node_modules/lodash/_Symbol.js","webpack:////tmp/build_3ca1f1fb/app/assets/es6/vendor/bootstrap/bootstrap-dropdown.js?d8d1","webpack:////tmp/build_3ca1f1fb/node_modules/lodash/isLength.js","webpack:////tmp/build_3ca1f1fb/node_modules/lodash/toNumber.js","webpack:////tmp/build_3ca1f1fb/node_modules/lodash/_isIndex.js","webpack:///(webpack)/buildin/global.js","webpack:////tmp/build_3ca1f1fb/app/assets/es6/utils/jquery/lazy-bootstrap.js"],"names":["module","exports","baseGetTag","__webpack_require__","isObjectLike","symbolTag","value","r","__webpack_exports__","d","init","pack","initPackery","chunk","require","packer","el","$","ICMIB","tileIDs","length","chunkedTiles","fetchedTiles","appendTiles","chunkKeys","Object","keys","sort","tiles","reduce","result","key","concat","html","map","tile","trim","filter","i","is","before","initLayout","remove","forEach","ids","index","ajax","url","edit_tiles_path","data","success","chunksLoaded","width","handleTileFetched","error","handleTileFetchError","fetchTiles","$el","pckr","on","layout","admin_tiles","cb","packery","itemSelector","stamp","columnWidth","gutter","addClass","css","opacity","console","warn","_icmib_sessions__WEBPACK_IMPORTED_MODULE_2__","_icmib_tiles__WEBPACK_IMPORTED_MODULE_3__","_utils_cookiePolicyNotice__WEBPACK_IMPORTED_MODULE_4__","e","then","t","bind","_IS_DROPDOWN_LOADED_ICMIB","cookiePolicyNotice","sessions","removeClass","src","log","execScript","attachEvent","addEventListener","eval","call","Symbol","objectProto","prototype","hasOwnProperty","nativeObjectToString","toString","symToStringTag","toStringTag","undefined","isOwn","tag","unmasked","type","array","start","end","Array","freeGlobal","freeSelf","self","root","Function","isFunction","isLength","getRawTag","objectToString","nullTag","undefinedTag","sKey","$ck_info","hideCookieInfo","preventDefault","setTimeout","decodeURIComponent","document","cookie","replace","RegExp","encodeURIComponent","sValue","vEnd","sPath","sDomain","bSecure","test","sExpires","constructor","Number","Infinity","String","Date","toUTCString","cookies","toFinite","remainder","reWhitespace","string","charAt","ajaxSetup","statusCode","401","jQuerySessionModal","418","initUserRegistrationValidation","validations","xhr","popoverSessionModal","responseJSON","response","$modal","find","form","text","title","modal","initSocialLogin","window","janrain","settings","tokenUrl","attr","custom","isReady","ready","createElement","id","location","protocol","s","getElementsByTagName","parentNode","insertBefore","this","tagName","triggerFlow","provider","engage","signin","BACKOFF","global","toNumber","INFINITY","MAX_INTEGER","trimmedEndIndex","reTrimStart","slice","baseSlice","isIterateeCall","toInteger","nativeCeil","Math","ceil","nativeMax","max","size","guard","resIndex","isObject","asyncTag","funcTag","genTag","proxyTag","other","eq","isArrayLike","isIndex","object","MAX_SAFE_INTEGER","baseTrim","isSymbol","NAN","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","parseInt","valueOf","isBinary","reIsUint","g"],"mappings":"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","file":"97-tiles-8f7e96cd2aa5f89ec453.js","sourcesContent":["module.exports = \"/* =========================================================\\n * bootstrap-modal.js v2.3.2\\n * http://getbootstrap.com/2.3.2/javascript.html#modals\\n * =========================================================\\n * Copyright 2013 Twitter, Inc.\\n *\\n * Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n * you may not use this file except in compliance with the License.\\n * You may obtain a copy of the License at\\n *\\n * http://www.apache.org/licenses/LICENSE-2.0\\n *\\n * Unless required by applicable law or agreed to in writing, software\\n * distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n * See the License for the specific language governing permissions and\\n * limitations under the License.\\n * ========================================================= */\\n\\n\\n!function ($) {\\n\\n \\\"use strict\\\"; // jshint ;_;\\n\\n\\n /* MODAL CLASS DEFINITION\\n * ====================== */\\n\\n var Modal = function (element, options) {\\n this.options = options\\n this.$element = $(element)\\n .delegate('[data-dismiss=\\\"modal\\\"]', 'click.dismiss.modal', $.proxy(this.hide, this))\\n this.options.remote && this.$element.find('.modal-body').load(this.options.remote)\\n }\\n\\n Modal.prototype = {\\n\\n constructor: Modal\\n\\n , toggle: function () {\\n return this[!this.isShown ? 'show' : 'hide']()\\n }\\n\\n , show: function () {\\n var that = this\\n , e = $.Event('show')\\n\\n this.$element.trigger(e)\\n\\n if (this.isShown || e.isDefaultPrevented()) return\\n\\n this.isShown = true\\n\\n this.escape()\\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(document.body) //don't move modals dom position\\n }\\n\\n that.$element.show()\\n\\n if (transition) {\\n that.$element[0].offsetWidth // force reflow\\n }\\n\\n that.$element\\n .addClass('in')\\n .attr('aria-hidden', false)\\n\\n that.enforceFocus()\\n\\n transition ?\\n that.$element.one($.support.transition.end, function () { that.$element.focus().trigger('shown') }) :\\n that.$element.focus().trigger('shown')\\n\\n })\\n }\\n\\n , hide: function (e) {\\n e && e.preventDefault()\\n\\n var that = this\\n\\n e = $.Event('hide')\\n\\n this.$element.trigger(e)\\n\\n if (!this.isShown || e.isDefaultPrevented()) return\\n\\n this.isShown = false\\n\\n this.escape()\\n\\n $(document).off('focusin.modal')\\n\\n this.$element\\n .removeClass('in')\\n .attr('aria-hidden', true)\\n\\n $.support.transition && this.$element.hasClass('fade') ?\\n this.hideWithTransition() :\\n this.hideModal()\\n }\\n\\n , enforceFocus: function () {\\n var that = this\\n $(document).on('focusin.modal', function (e) {\\n if (that.$element[0] !== e.target && !that.$element.has(e.target).length) {\\n that.$element.focus()\\n }\\n })\\n }\\n\\n , escape: function () {\\n var that = this\\n if (this.isShown && this.options.keyboard) {\\n this.$element.on('keyup.dismiss.modal', function ( e ) {\\n e.which == 27 && that.hide()\\n })\\n } else if (!this.isShown) {\\n this.$element.off('keyup.dismiss.modal')\\n }\\n }\\n\\n , hideWithTransition: function () {\\n var that = this\\n , timeout = setTimeout(function () {\\n that.$element.off($.support.transition.end)\\n that.hideModal()\\n }, 500)\\n\\n this.$element.one($.support.transition.end, function () {\\n clearTimeout(timeout)\\n that.hideModal()\\n })\\n }\\n\\n , hideModal: function () {\\n var that = this\\n this.$element.hide()\\n this.backdrop(function () {\\n that.removeBackdrop()\\n that.$element.trigger('hidden')\\n })\\n }\\n\\n , removeBackdrop: function () {\\n this.$backdrop && this.$backdrop.remove()\\n this.$backdrop = null\\n }\\n\\n , backdrop: function (callback) {\\n var that = this\\n , animate = this.$element.hasClass('fade') ? 'fade' : ''\\n\\n if (this.isShown && this.options.backdrop) {\\n var doAnimate = $.support.transition && animate\\n\\n this.$backdrop = $('
')\\n .appendTo(document.body)\\n\\n this.$backdrop.click(\\n this.options.backdrop == 'static' ?\\n $.proxy(this.$element[0].focus, this.$element[0])\\n : $.proxy(this.hide, this)\\n )\\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.one($.support.transition.end, callback) :\\n callback()\\n\\n } else if (!this.isShown && this.$backdrop) {\\n this.$backdrop.removeClass('in')\\n\\n $.support.transition && this.$element.hasClass('fade')?\\n this.$backdrop.one($.support.transition.end, callback) :\\n callback()\\n\\n } else if (callback) {\\n callback()\\n }\\n }\\n }\\n\\n\\n /* MODAL PLUGIN DEFINITION\\n * ======================= */\\n\\n var old = $.fn.modal\\n\\n $.fn.modal = function (option) {\\n return this.each(function () {\\n var $this = $(this)\\n , data = $this.data('modal')\\n , options = $.extend({}, $.fn.modal.defaults, $this.data(), typeof option == 'object' && option)\\n if (!data) $this.data('modal', (data = new Modal(this, options)))\\n if (typeof option == 'string') data[option]()\\n else if (options.show) data.show()\\n })\\n }\\n\\n $.fn.modal.defaults = {\\n backdrop: true\\n , keyboard: true\\n , show: true\\n }\\n\\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.modal.data-api', '[data-toggle=\\\"modal\\\"]', function (e) {\\n var $this = $(this)\\n , href = $this.attr('href')\\n , $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\\\\s]+$)/, ''))) //strip for ie7\\n , option = $target.data('modal') ? 'toggle' : $.extend({ remote:!/#/.test(href) && href }, $target.data(), $this.data())\\n\\n e.preventDefault()\\n\\n $target\\n .modal(option)\\n .one('hide', function () {\\n $this.focus()\\n })\\n })\\n\\n}(window.jQuery);\\n\"","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","const chunk = require('lodash/chunk');\n\nvar packer = null;\n\nexport function init(el) {\n el = $(el)[0];\n\n if (ICMIB.tileIDs) {\n return fetchTiles(el);\n } else {\n return initLayout(el);\n }\n}\n\nfunction initLayout(el) {\n const $el = $(el);\n\n return initPackery(el, function(pckr) {\n // recalculate layout when leaderboard accordion is changed\n $('#tiles').on('hidden', '.leaderboard', () => pckr.layout());\n\n if (ICMIB.admin_tiles != null) {\n ICMIB.admin_tiles.init($el, pckr);\n }\n\n packer = pckr;\n return packer;\n });\n}\n\nexport function pack() {\n return packer && packer.layout();\n}\n\nexport function initPackery(el, cb) {\n const $el = $(el);\n $el.packery({\n itemSelector: '.til',\n stamp: '.stamp',\n columnWidth: '.til-width',\n gutter: '.til-gutter',\n });\n $el.addClass('packed');\n $el.css({ opacity: 1 });\n const pack = $el.data('packery');\n return cb && cb(pack);\n}\n\nfunction fetchTiles(el) {\n if (!ICMIB.tileIDs.length) {\n $('#tiles-loading').remove();\n return initLayout(el);\n } else {\n const pageSize = 20;\n const chunkedTiles = chunk(ICMIB.tileIDs, pageSize);\n const fetchedTiles = {};\n\n const handleTileFetched = function(data, index) {\n fetchedTiles[index] = data;\n const chunksLoaded = Object.keys(fetchedTiles).length;\n $('#tiles-progress').width(\n chunksLoaded / chunkedTiles.length * 100 + '%'\n );\n if (chunksLoaded === chunkedTiles.length) {\n return appendTiles();\n }\n };\n\n var appendTiles = function() {\n const chunkKeys = Object.keys(fetchedTiles).sort();\n const tiles = chunkKeys.reduce(\n (result, key) => result.concat(fetchedTiles[key].tiles),\n []\n );\n const html = tiles.map(\n tile => $($.trim(tile)).filter((i, el) => $(el).is('.til'))[0]\n );\n $('#new-tile').before(html);\n initLayout(el);\n return $('#tiles-loading').remove();\n };\n\n return chunkedTiles.forEach((ids, index) =>\n $.ajax({\n url: ICMIB.edit_tiles_path,\n data: { ids: [ids] },\n success(data) {\n return handleTileFetched(data, index);\n },\n error: handleTileFetchError,\n })\n );\n }\n}\n\nfunction handleTileFetchError(error) {\n return console.warn('Tile fetch failed', error);\n}\n","import '../vendor/packery.pkgd';\nimport '../utils/jquery/lazy-bootstrap';\nimport('jquery-ujs');\nimport * as sessions from '../icmib/sessions';\nimport * as tiles from '../icmib/tiles';\nimport cookiePolicyNotice from '../utils/cookiePolicyNotice';\n\nICMIB._IS_DROPDOWN_LOADED_ICMIB = false;\nICMIB.cookiePolicyNotice = cookiePolicyNotice;\nICMIB.sessions = sessions;\nICMIB.tiles = tiles;\n\n$('body').removeClass('no-js');\n","module.exports = \"/* ===========================================================\\n * bootstrap-tooltip.js v2.3.2\\n * http://getbootstrap.com/2.3.2/javascript.html#tooltips\\n * Inspired by the original jQuery.tipsy by Jason Frame\\n * ===========================================================\\n * Copyright 2013 Twitter, Inc.\\n *\\n * Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n * you may not use this file except in compliance with the License.\\n * You may obtain a copy of the License at\\n *\\n * http://www.apache.org/licenses/LICENSE-2.0\\n *\\n * Unless required by applicable law or agreed to in writing, software\\n * distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n * See the License for the specific language governing permissions and\\n * limitations under the License.\\n * ========================================================== */\\n\\n\\n!function ($) {\\n\\n \\\"use strict\\\"; // jshint ;_;\\n\\n\\n /* TOOLTIP PUBLIC CLASS DEFINITION\\n * =============================== */\\n\\n var Tooltip = function (element, options) {\\n this.init('tooltip', element, options)\\n }\\n\\n Tooltip.prototype = {\\n\\n constructor: Tooltip\\n\\n , init: function (type, element, options) {\\n var eventIn\\n , eventOut\\n , triggers\\n , trigger\\n , i\\n\\n this.type = type\\n this.$element = $(element)\\n this.options = this.getOptions(options)\\n this.enabled = true\\n\\n triggers = this.options.trigger.split(' ')\\n\\n for (i = triggers.length; i--;) {\\n trigger = triggers[i]\\n if (trigger == 'click') {\\n this.$element.on('click.' + this.type, this.options.selector, $.proxy(this.toggle, this))\\n } else if (trigger != 'manual') {\\n eventIn = trigger == 'hover' ? 'mouseenter' : 'focus'\\n eventOut = trigger == 'hover' ? 'mouseleave' : 'blur'\\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 , getOptions: function (options) {\\n options = $.extend({}, $.fn[this.type].defaults, 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 , enter: function (e) {\\n var defaults = $.fn[this.type].defaults\\n , options = {}\\n , self\\n\\n this._options && $.each(this._options, function (key, value) {\\n if (defaults[key] != value) options[key] = value\\n }, this)\\n\\n self = $(e.currentTarget)[this.type](options).data(this.type)\\n\\n if (!self.options.delay || !self.options.delay.show) return self.show()\\n\\n clearTimeout(this.timeout)\\n self.hoverState = 'in'\\n this.timeout = setTimeout(function() {\\n if (self.hoverState == 'in') self.show()\\n }, self.options.delay.show)\\n }\\n\\n , leave: function (e) {\\n var self = $(e.currentTarget)[this.type](this._options).data(this.type)\\n\\n if (this.timeout) clearTimeout(this.timeout)\\n if (!self.options.delay || !self.options.delay.hide) return self.hide()\\n\\n self.hoverState = 'out'\\n this.timeout = setTimeout(function() {\\n if (self.hoverState == 'out') self.hide()\\n }, self.options.delay.hide)\\n }\\n\\n , show: function () {\\n var $tip\\n , pos\\n , actualWidth\\n , actualHeight\\n , placement\\n , tp\\n , e = $.Event('show')\\n\\n if (this.hasContent() && this.enabled) {\\n this.$element.trigger(e)\\n if (e.isDefaultPrevented()) return\\n $tip = this.tip()\\n this.setContent()\\n\\n if (this.options.animation) {\\n $tip.addClass('fade')\\n }\\n\\n placement = typeof this.options.placement == 'function' ?\\n this.options.placement.call(this, $tip[0], this.$element[0]) :\\n this.options.placement\\n\\n $tip\\n .detach()\\n .css({ top: 0, left: 0, display: 'block' })\\n\\n this.options.container ? $tip.appendTo(this.options.container) : $tip.insertAfter(this.$element)\\n\\n pos = this.getPosition()\\n\\n actualWidth = $tip[0].offsetWidth\\n actualHeight = $tip[0].offsetHeight\\n\\n switch (placement) {\\n case 'bottom':\\n tp = {top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2}\\n break\\n case 'top':\\n tp = {top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2}\\n break\\n case 'left':\\n tp = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth}\\n break\\n case 'right':\\n tp = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width}\\n break\\n }\\n\\n this.applyPlacement(tp, placement)\\n this.$element.trigger('shown')\\n }\\n }\\n\\n , applyPlacement: function(offset, placement){\\n var $tip = this.tip()\\n , width = $tip[0].offsetWidth\\n , height = $tip[0].offsetHeight\\n , actualWidth\\n , actualHeight\\n , delta\\n , replace\\n\\n $tip\\n .offset(offset)\\n .addClass(placement)\\n .addClass('in')\\n\\n actualWidth = $tip[0].offsetWidth\\n actualHeight = $tip[0].offsetHeight\\n\\n if (placement == 'top' && actualHeight != height) {\\n offset.top = offset.top + height - actualHeight\\n replace = true\\n }\\n\\n if (placement == 'bottom' || placement == 'top') {\\n delta = 0\\n\\n if (offset.left < 0){\\n delta = offset.left * -2\\n offset.left = 0\\n $tip.offset(offset)\\n actualWidth = $tip[0].offsetWidth\\n actualHeight = $tip[0].offsetHeight\\n }\\n\\n this.replaceArrow(delta - width + actualWidth, actualWidth, 'left')\\n } else {\\n this.replaceArrow(actualHeight - height, actualHeight, 'top')\\n }\\n\\n if (replace) $tip.offset(offset)\\n }\\n\\n , replaceArrow: function(delta, dimension, position){\\n this\\n .arrow()\\n .css(position, delta ? (50 * (1 - delta / dimension) + \\\"%\\\") : '')\\n }\\n\\n , setContent: function () {\\n var $tip = this.tip()\\n , 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 , hide: function () {\\n var that = this\\n , $tip = this.tip()\\n , e = $.Event('hide')\\n\\n this.$element.trigger(e)\\n if (e.isDefaultPrevented()) return\\n\\n $tip.removeClass('in')\\n\\n function removeWithAnimation() {\\n var timeout = setTimeout(function () {\\n $tip.off($.support.transition.end).detach()\\n }, 500)\\n\\n $tip.one($.support.transition.end, function () {\\n clearTimeout(timeout)\\n $tip.detach()\\n })\\n }\\n\\n $.support.transition && this.$tip.hasClass('fade') ?\\n removeWithAnimation() :\\n $tip.detach()\\n\\n this.$element.trigger('hidden')\\n\\n return this\\n }\\n\\n , 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 , hasContent: function () {\\n return this.getTitle()\\n }\\n\\n , getPosition: function () {\\n var el = this.$element[0]\\n return $.extend({}, (typeof el.getBoundingClientRect == 'function') ? el.getBoundingClientRect() : {\\n width: el.offsetWidth\\n , height: el.offsetHeight\\n }, this.$element.offset())\\n }\\n\\n , getTitle: function () {\\n var title\\n , $e = this.$element\\n , 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 , tip: function () {\\n return this.$tip = this.$tip || $(this.options.template)\\n }\\n\\n , arrow: function(){\\n return this.$arrow = this.$arrow || this.tip().find(\\\".tooltip-arrow\\\")\\n }\\n\\n , validate: function () {\\n if (!this.$element[0].parentNode) {\\n this.hide()\\n this.$element = null\\n this.options = null\\n }\\n }\\n\\n , enable: function () {\\n this.enabled = true\\n }\\n\\n , disable: function () {\\n this.enabled = false\\n }\\n\\n , toggleEnabled: function () {\\n this.enabled = !this.enabled\\n }\\n\\n , toggle: function (e) {\\n var self = e ? $(e.currentTarget)[this.type](this._options).data(this.type) : this\\n self.tip().hasClass('in') ? self.hide() : self.show()\\n }\\n\\n , destroy: function () {\\n this.hide().$element.off('.' + this.type).removeData(this.type)\\n }\\n\\n }\\n\\n\\n /* TOOLTIP PLUGIN DEFINITION\\n * ========================= */\\n\\n var old = $.fn.tooltip\\n\\n $.fn.tooltip = function ( option ) {\\n return this.each(function () {\\n var $this = $(this)\\n , data = $this.data('tooltip')\\n , options = typeof option == 'object' && option\\n if (!data) $this.data('tooltip', (data = new Tooltip(this, options)))\\n if (typeof option == 'string') data[option]()\\n })\\n }\\n\\n $.fn.tooltip.Constructor = Tooltip\\n\\n $.fn.tooltip.defaults = {\\n animation: true\\n , placement: 'top'\\n , selector: false\\n , template: '
'\\n , trigger: 'hover focus'\\n , title: ''\\n , delay: 0\\n , html: false\\n , container: false\\n }\\n\\n\\n /* TOOLTIP NO CONFLICT\\n * =================== */\\n\\n $.fn.tooltip.noConflict = function () {\\n $.fn.tooltip = old\\n return this\\n }\\n\\n}(window.jQuery);\\n\"","module.exports = \"/* ========================================================\\n * bootstrap-tab.js v2.3.2\\n * http://getbootstrap.com/2.3.2/javascript.html#tabs\\n * ========================================================\\n * Copyright 2013 Twitter, Inc.\\n *\\n * Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n * you may not use this file except in compliance with the License.\\n * You may obtain a copy of the License at\\n *\\n * http://www.apache.org/licenses/LICENSE-2.0\\n *\\n * Unless required by applicable law or agreed to in writing, software\\n * distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n * See the License for the specific language governing permissions and\\n * limitations under the License.\\n * ======================================================== */\\n\\n\\n!function ($) {\\n\\n \\\"use strict\\\"; // jshint ;_;\\n\\n\\n /* TAB CLASS DEFINITION\\n * ==================== */\\n\\n var Tab = function (element) {\\n this.element = $(element)\\n }\\n\\n Tab.prototype = {\\n\\n constructor: Tab\\n\\n , show: function () {\\n var $this = this.element\\n , $ul = $this.closest('ul:not(.dropdown-menu)')\\n , selector = $this.attr('data-target')\\n , previous\\n , $target\\n , e\\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 previous = $ul.find('.active:last a')[0]\\n\\n e = $.Event('show', {\\n relatedTarget: previous\\n })\\n\\n $this.trigger(e)\\n\\n if (e.isDefaultPrevented()) return\\n\\n $target = $(selector)\\n\\n this.activate($this.parent('li'), $ul)\\n this.activate($target, $target.parent(), function () {\\n $this.trigger({\\n type: 'shown'\\n , relatedTarget: previous\\n })\\n })\\n }\\n\\n , activate: function ( element, container, callback) {\\n var $active = container.find('> .active')\\n , transition = callback\\n && $.support.transition\\n && $active.hasClass('fade')\\n\\n function next() {\\n $active\\n .removeClass('active')\\n .find('> .dropdown-menu > .active')\\n .removeClass('active')\\n\\n element.addClass('active')\\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') ) {\\n element.closest('li.dropdown').addClass('active')\\n }\\n\\n callback && callback()\\n }\\n\\n transition ?\\n $active.one($.support.transition.end, next) :\\n next()\\n\\n $active.removeClass('in')\\n }\\n }\\n\\n\\n /* TAB PLUGIN DEFINITION\\n * ===================== */\\n\\n var old = $.fn.tab\\n\\n $.fn.tab = function ( option ) {\\n return this.each(function () {\\n var $this = $(this)\\n , data = $this.data('tab')\\n if (!data) $this.data('tab', (data = new Tab(this)))\\n if (typeof option == 'string') data[option]()\\n })\\n }\\n\\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 $(document).on('click.tab.data-api', '[data-toggle=\\\"tab\\\"], [data-toggle=\\\"pill\\\"]', function (e) {\\n e.preventDefault()\\n $(this).tab('show')\\n })\\n\\n}(window.jQuery);\"","require(\"!!/tmp/build_3ca1f1fb/node_modules/script-loader/addScript.js\")(require(\"!!/tmp/build_3ca1f1fb/node_modules/raw-loader/index.js!/tmp/build_3ca1f1fb/app/assets/es6/vendor/packery.pkgd.js\"))","require(\"!!/tmp/build_3ca1f1fb/node_modules/script-loader/addScript.js\")(require(\"!!/tmp/build_3ca1f1fb/node_modules/raw-loader/index.js!/tmp/build_3ca1f1fb/app/assets/es6/vendor/bootstrap/bootstrap-modal.js\"))","/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\nmodule.exports = function(src) {\n\tfunction log(error) {\n\t\t(typeof console !== \"undefined\")\n\t\t&& (console.error || console.log)(\"[Script Loader]\", error);\n\t}\n\n\t// Check for IE =< 8\n\tfunction isIE() {\n\t\treturn typeof attachEvent !== \"undefined\" && typeof addEventListener === \"undefined\";\n\t}\n\n\ttry {\n\t\tif (typeof execScript !== \"undefined\" && isIE()) {\n\t\t\texecScript(src);\n\t\t} else if (typeof eval !== \"undefined\") {\n\t\t\teval.call(null, src);\n\t\t} else {\n\t\t\tlog(\"EvalError: No eval function available\");\n\t\t}\n\t} catch (error) {\n\t\tlog(error);\n\t}\n}\n","require(\"!!/tmp/build_3ca1f1fb/node_modules/script-loader/addScript.js\")(require(\"!!/tmp/build_3ca1f1fb/node_modules/raw-loader/index.js!/tmp/build_3ca1f1fb/app/assets/es6/vendor/bootstrap/bootstrap-popover.js\"))","require(\"!!/tmp/build_3ca1f1fb/node_modules/script-loader/addScript.js\")(require(\"!!/tmp/build_3ca1f1fb/node_modules/raw-loader/index.js!/tmp/build_3ca1f1fb/app/assets/es6/vendor/bootstrap/bootstrap-alert.js\"))","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","module.exports = \"/* ==========================================================\\n * bootstrap-alert.js v2.3.2\\n * http://getbootstrap.com/2.3.2/javascript.html#alerts\\n * ==========================================================\\n * Copyright 2013 Twitter, Inc.\\n *\\n * Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n * you may not use this file except in compliance with the License.\\n * You may obtain a copy of the License at\\n *\\n * http://www.apache.org/licenses/LICENSE-2.0\\n *\\n * Unless required by applicable law or agreed to in writing, software\\n * distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n * See the License for the specific language governing permissions and\\n * limitations under the License.\\n * ========================================================== */\\n\\n\\n!function ($) {\\n\\n \\\"use strict\\\"; // jshint ;_;\\n\\n\\n /* ALERT CLASS DEFINITION\\n * ====================== */\\n\\n var dismiss = '[data-dismiss=\\\"alert\\\"]'\\n , Alert = function (el) {\\n $(el).on('click', dismiss, this.close)\\n }\\n\\n Alert.prototype.close = function (e) {\\n var $this = $(this)\\n , selector = $this.attr('data-target')\\n , $parent\\n\\n if (!selector) {\\n selector = $this.attr('href')\\n selector = selector && selector.replace(/.*(?=#[^\\\\s]*$)/, '') //strip for ie7\\n }\\n\\n $parent = $(selector)\\n\\n e && e.preventDefault()\\n\\n $parent.length || ($parent = $this.hasClass('alert') ? $this : $this.parent())\\n\\n $parent.trigger(e = $.Event('close'))\\n\\n if (e.isDefaultPrevented()) return\\n\\n $parent.removeClass('in')\\n\\n function removeElement() {\\n $parent\\n .trigger('closed')\\n .remove()\\n }\\n\\n $.support.transition && $parent.hasClass('fade') ?\\n $parent.on($.support.transition.end, removeElement) :\\n removeElement()\\n }\\n\\n\\n /* ALERT PLUGIN DEFINITION\\n * ======================= */\\n\\n var old = $.fn.alert\\n\\n $.fn.alert = function (option) {\\n return this.each(function () {\\n var $this = $(this)\\n , data = $this.data('alert')\\n if (!data) $this.data('alert', (data = new Alert(this)))\\n if (typeof option == 'string') data[option].call($this)\\n })\\n }\\n\\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.alert.data-api', dismiss, Alert.prototype.close)\\n\\n}(window.jQuery);\"","module.exports = \"/* ===========================================================\\n * bootstrap-popover.js v2.3.2\\n * http://getbootstrap.com/2.3.2/javascript.html#popovers\\n * ===========================================================\\n * Copyright 2013 Twitter, Inc.\\n *\\n * Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n * you may not use this file except in compliance with the License.\\n * You may obtain a copy of the License at\\n *\\n * http://www.apache.org/licenses/LICENSE-2.0\\n *\\n * Unless required by applicable law or agreed to in writing, software\\n * distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n * See the License for the specific language governing permissions and\\n * limitations under the License.\\n * =========================================================== */\\n\\n\\n!function ($) {\\n\\n \\\"use strict\\\"; // jshint ;_;\\n\\n\\n /* POPOVER PUBLIC CLASS DEFINITION\\n * =============================== */\\n\\n var Popover = function (element, options) {\\n this.init('popover', element, options)\\n }\\n\\n\\n /* NOTE: POPOVER EXTENDS BOOTSTRAP-TOOLTIP.js\\n ========================================== */\\n\\n Popover.prototype = $.extend({}, $.fn.tooltip.Constructor.prototype, {\\n\\n constructor: Popover\\n\\n , setContent: function () {\\n var $tip = this.tip()\\n , title = this.getTitle()\\n , content = this.getContent()\\n\\n $tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title)\\n $tip.find('.popover-content')[this.options.html ? 'html' : 'text'](content)\\n\\n $tip.removeClass('fade top bottom left right in')\\n }\\n\\n , hasContent: function () {\\n return this.getTitle() || this.getContent()\\n }\\n\\n , getContent: function () {\\n var content\\n , $e = this.$element\\n , o = this.options\\n\\n content = (typeof o.content == 'function' ? o.content.call($e[0]) : o.content)\\n || $e.attr('data-content')\\n\\n return content\\n }\\n\\n , tip: function () {\\n if (!this.$tip) {\\n this.$tip = $(this.options.template)\\n }\\n return this.$tip\\n }\\n\\n , destroy: function () {\\n this.hide().$element.off('.' + this.type).removeData(this.type)\\n }\\n\\n })\\n\\n\\n /* POPOVER PLUGIN DEFINITION\\n * ======================= */\\n\\n var old = $.fn.popover\\n\\n $.fn.popover = function (option) {\\n return this.each(function () {\\n var $this = $(this)\\n , data = $this.data('popover')\\n , options = typeof option == 'object' && option\\n if (!data) $this.data('popover', (data = new Popover(this, options)))\\n if (typeof option == 'string') data[option]()\\n })\\n }\\n\\n $.fn.popover.Constructor = Popover\\n\\n $.fn.popover.defaults = $.extend({} , $.fn.tooltip.defaults, {\\n placement: 'right'\\n , trigger: 'click'\\n , content: ''\\n , template: '

'\\n })\\n\\n\\n /* POPOVER NO CONFLICT\\n * =================== */\\n\\n $.fn.popover.noConflict = function () {\\n $.fn.popover = old\\n return this\\n }\\n\\n}(window.jQuery);\\n\"","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","/**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\nfunction baseSlice(array, start, end) {\n var index = -1,\n length = array.length;\n\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = end > length ? length : end;\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : ((end - start) >>> 0);\n start >>>= 0;\n\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n}\n\nmodule.exports = baseSlice;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","module.exports = \"/*!\\n * Packery PACKAGED v1.2.0\\n * bin-packing layout library\\n * http://packery.metafizzy.co\\n *\\n * Commercial use requires one-time purchase of a commercial license\\n * http://packery.metafizzy.co/license.html\\n *\\n * Non-commercial use is licensed under the GPL v3 License\\n *\\n * Copyright 2013 Metafizzy\\n */\\n\\n\\n/**\\n * Bridget makes jQuery widgets\\n * v1.0.1\\n */\\n\\n( function( window ) {\\n\\n\\n\\n// -------------------------- utils -------------------------- //\\n\\nvar slice = Array.prototype.slice;\\n\\nfunction noop() {}\\n\\n// -------------------------- definition -------------------------- //\\n\\nfunction defineBridget( $ ) {\\n\\n// bail if no jQuery\\nif ( !$ ) {\\n return;\\n}\\n\\n// -------------------------- addOptionMethod -------------------------- //\\n\\n/**\\n * adds option method -> $().plugin('option', {...})\\n * @param {Function} PluginClass - constructor class\\n */\\nfunction addOptionMethod( PluginClass ) {\\n // don't overwrite original option method\\n if ( PluginClass.prototype.option ) {\\n return;\\n }\\n\\n // option setter\\n PluginClass.prototype.option = function( opts ) {\\n // bail out if not an object\\n if ( !$.isPlainObject( opts ) ){\\n return;\\n }\\n this.options = $.extend( true, this.options, opts );\\n };\\n}\\n\\n\\n// -------------------------- plugin bridge -------------------------- //\\n\\n// helper function for logging errors\\n// $.error breaks jQuery chaining\\nvar logError = typeof console === 'undefined' ? noop :\\n function( message ) {\\n console.error( message );\\n };\\n\\n/**\\n * jQuery plugin bridge, access methods like $elem.plugin('method')\\n * @param {String} namespace - plugin name\\n * @param {Function} PluginClass - constructor class\\n */\\nfunction bridge( namespace, PluginClass ) {\\n // add to jQuery fn namespace\\n $.fn[ namespace ] = function( options ) {\\n if ( typeof options === 'string' ) {\\n // call plugin method when first argument is a string\\n // get arguments for method\\n var args = slice.call( arguments, 1 );\\n\\n for ( var i=0, len = this.length; i < len; i++ ) {\\n var elem = this[i];\\n var instance = $.data( elem, namespace );\\n if ( !instance ) {\\n logError( \\\"cannot call methods on \\\" + namespace + \\\" prior to initialization; \\\" +\\n \\\"attempted to call '\\\" + options + \\\"'\\\" );\\n continue;\\n }\\n if ( !$.isFunction( instance[options] ) || options.charAt(0) === '_' ) {\\n logError( \\\"no such method '\\\" + options + \\\"' for \\\" + namespace + \\\" instance\\\" );\\n continue;\\n }\\n\\n // trigger method with arguments\\n var returnValue = instance[ options ].apply( instance, args );\\n\\n // break look and return first value if provided\\n if ( returnValue !== undefined ) {\\n return returnValue;\\n }\\n }\\n // return this if no return value\\n return this;\\n } else {\\n return this.each( function() {\\n var instance = $.data( this, namespace );\\n if ( instance ) {\\n // apply options & init\\n instance.option( options );\\n instance._init();\\n } else {\\n // initialize new instance\\n instance = new PluginClass( this, options );\\n $.data( this, namespace, instance );\\n }\\n });\\n }\\n };\\n\\n}\\n\\n// -------------------------- bridget -------------------------- //\\n\\n/**\\n * converts a Prototypical class into a proper jQuery plugin\\n * the class must have a ._init method\\n * @param {String} namespace - plugin name, used in $().pluginName\\n * @param {Function} PluginClass - constructor class\\n */\\n$.bridget = function( namespace, PluginClass ) {\\n addOptionMethod( PluginClass );\\n bridge( namespace, PluginClass );\\n};\\n\\nreturn $.bridget;\\n\\n}\\n\\n// transport\\nif ( typeof define === 'function' && define.amd ) {\\n // AMD\\n define( 'jquery-bridget/jquery.bridget',[ 'jquery' ], defineBridget );\\n} else {\\n // get jquery from browser global\\n defineBridget( window.jQuery );\\n}\\n\\n})( window );\\n\\n/*!\\n * classie - class helper functions\\n * from bonzo https://github.com/ded/bonzo\\n * \\n * classie.has( elem, 'my-class' ) -> true/false\\n * classie.add( elem, 'my-new-class' )\\n * classie.remove( elem, 'my-unwanted-class' )\\n * classie.toggle( elem, 'my-class' )\\n */\\n\\n/*jshint browser: true, strict: true, undef: true */\\n/*global define: false */\\n\\n( function( window ) {\\n\\n\\n\\n// class helper functions from bonzo https://github.com/ded/bonzo\\n\\nfunction classReg( className ) {\\n return new RegExp(\\\"(^|\\\\\\\\s+)\\\" + className + \\\"(\\\\\\\\s+|$)\\\");\\n}\\n\\n// classList support for class management\\n// altho to be fair, the api sucks because it won't accept multiple classes at once\\nvar hasClass, addClass, removeClass;\\n\\nif ( 'classList' in document.documentElement ) {\\n hasClass = function( elem, c ) {\\n return elem.classList.contains( c );\\n };\\n addClass = function( elem, c ) {\\n elem.classList.add( c );\\n };\\n removeClass = function( elem, c ) {\\n elem.classList.remove( c );\\n };\\n}\\nelse {\\n hasClass = function( elem, c ) {\\n return classReg( c ).test( elem.className );\\n };\\n addClass = function( elem, c ) {\\n if ( !hasClass( elem, c ) ) {\\n elem.className = elem.className + ' ' + c;\\n }\\n };\\n removeClass = function( elem, c ) {\\n elem.className = elem.className.replace( classReg( c ), ' ' );\\n };\\n}\\n\\nfunction toggleClass( elem, c ) {\\n var fn = hasClass( elem, c ) ? removeClass : addClass;\\n fn( elem, c );\\n}\\n\\nvar classie = {\\n // full names\\n hasClass: hasClass,\\n addClass: addClass,\\n removeClass: removeClass,\\n toggleClass: toggleClass,\\n // short names\\n has: hasClass,\\n add: addClass,\\n remove: removeClass,\\n toggle: toggleClass\\n};\\n\\n// transport\\nif ( typeof define === 'function' && define.amd ) {\\n // AMD\\n define( 'classie/classie',classie );\\n} else {\\n // browser global\\n window.classie = classie;\\n}\\n\\n})( window );\\n\\n/*!\\n * getStyleProperty v1.0.3\\n * original by kangax\\n * http://perfectionkills.com/feature-testing-css-properties/\\n */\\n\\n/*jshint browser: true, strict: true, undef: true */\\n/*global define: false, exports: false, module: false */\\n\\n( function( window ) {\\n\\n\\n\\nvar prefixes = 'Webkit Moz ms Ms O'.split(' ');\\nvar docElemStyle = document.documentElement.style;\\n\\nfunction getStyleProperty( propName ) {\\n if ( !propName ) {\\n return;\\n }\\n\\n // test standard property first\\n if ( typeof docElemStyle[ propName ] === 'string' ) {\\n return propName;\\n }\\n\\n // capitalize\\n propName = propName.charAt(0).toUpperCase() + propName.slice(1);\\n\\n // test vendor specific properties\\n var prefixed;\\n for ( var i=0, len = prefixes.length; i < len; i++ ) {\\n prefixed = prefixes[i] + propName;\\n if ( typeof docElemStyle[ prefixed ] === 'string' ) {\\n return prefixed;\\n }\\n }\\n}\\n\\n// transport\\nif ( typeof define === 'function' && define.amd ) {\\n // AMD\\n define( 'get-style-property/get-style-property',[],function() {\\n return getStyleProperty;\\n });\\n} else if ( typeof exports === 'object' ) {\\n // CommonJS for Component\\n module.exports = getStyleProperty;\\n} else {\\n // browser global\\n window.getStyleProperty = getStyleProperty;\\n}\\n\\n})( window );\\n\\n/**\\n * getSize v1.1.6\\n * measure size of elements\\n */\\n\\n/*jshint browser: true, strict: true, undef: true, unused: true */\\n/*global define: false, exports: false, require: false, module: false */\\n\\n( function( window, undefined ) {\\n\\n\\n\\n// -------------------------- helpers -------------------------- //\\n\\nvar defView = document.defaultView;\\nvar isComputedStyle = defView && defView.getComputedStyle;\\n\\nvar getStyle = isComputedStyle ?\\n function( elem ) {\\n return defView.getComputedStyle( elem, null );\\n } :\\n function( elem ) {\\n return elem.currentStyle;\\n };\\n\\n// get a number from a string, not a percentage\\nfunction getStyleSize( value ) {\\n var num = parseFloat( value );\\n // not a percent like '100%', and a number\\n var isValid = value.indexOf('%') === -1 && !isNaN( num );\\n return isValid && num;\\n}\\n\\n// -------------------------- measurements -------------------------- //\\n\\nvar measurements = [\\n 'paddingLeft',\\n 'paddingRight',\\n 'paddingTop',\\n 'paddingBottom',\\n 'marginLeft',\\n 'marginRight',\\n 'marginTop',\\n 'marginBottom',\\n 'borderLeftWidth',\\n 'borderRightWidth',\\n 'borderTopWidth',\\n 'borderBottomWidth'\\n];\\n\\nfunction getZeroSize() {\\n var size = {\\n width: 0,\\n height: 0,\\n innerWidth: 0,\\n innerHeight: 0,\\n outerWidth: 0,\\n outerHeight: 0\\n };\\n for ( var i=0, len = measurements.length; i < len; i++ ) {\\n var measurement = measurements[i];\\n size[ measurement ] = 0;\\n }\\n return size;\\n}\\n\\n\\n\\nfunction defineGetSize( getStyleProperty ) {\\n\\n// -------------------------- box sizing -------------------------- //\\n\\nvar boxSizingProp = getStyleProperty('boxSizing');\\nvar isBoxSizeOuter;\\n\\n/**\\n * WebKit measures the outer-width on style.width on border-box elems\\n * IE & Firefox measures the inner-width\\n */\\n( function() {\\n if ( !boxSizingProp ) {\\n return;\\n }\\n\\n var div = document.createElement('div');\\n div.style.width = '200px';\\n div.style.padding = '1px 2px 3px 4px';\\n div.style.borderStyle = 'solid';\\n div.style.borderWidth = '1px 2px 3px 4px';\\n div.style[ boxSizingProp ] = 'border-box';\\n\\n var body = document.body || document.documentElement;\\n body.appendChild( div );\\n var style = getStyle( div );\\n\\n isBoxSizeOuter = getStyleSize( style.width ) === 200;\\n body.removeChild( div );\\n})();\\n\\n\\n// -------------------------- getSize -------------------------- //\\n\\nfunction getSize( elem ) {\\n // use querySeletor if elem is string\\n if ( typeof elem === 'string' ) {\\n elem = document.querySelector( elem );\\n }\\n\\n // do not proceed on non-objects\\n if ( !elem || typeof elem !== 'object' || !elem.nodeType ) {\\n return;\\n }\\n\\n var style = getStyle( elem );\\n\\n // if hidden, everything is 0\\n if ( style.display === 'none' ) {\\n return getZeroSize();\\n }\\n\\n var size = {};\\n size.width = elem.offsetWidth;\\n size.height = elem.offsetHeight;\\n\\n var isBorderBox = size.isBorderBox = !!( boxSizingProp &&\\n style[ boxSizingProp ] && style[ boxSizingProp ] === 'border-box' );\\n\\n // get all measurements\\n for ( var i=0, len = measurements.length; i < len; i++ ) {\\n var measurement = measurements[i];\\n var value = style[ measurement ];\\n value = mungeNonPixel( elem, value );\\n var num = parseFloat( value );\\n // any 'auto', 'medium' value will be 0\\n size[ measurement ] = !isNaN( num ) ? num : 0;\\n }\\n\\n var paddingWidth = size.paddingLeft + size.paddingRight;\\n var paddingHeight = size.paddingTop + size.paddingBottom;\\n var marginWidth = size.marginLeft + size.marginRight;\\n var marginHeight = size.marginTop + size.marginBottom;\\n var borderWidth = size.borderLeftWidth + size.borderRightWidth;\\n var borderHeight = size.borderTopWidth + size.borderBottomWidth;\\n\\n var isBorderBoxSizeOuter = isBorderBox && isBoxSizeOuter;\\n\\n // overwrite width and height if we can get it from style\\n var styleWidth = getStyleSize( style.width );\\n if ( styleWidth !== false ) {\\n size.width = styleWidth +\\n // add padding and border unless it's already including it\\n ( isBorderBoxSizeOuter ? 0 : paddingWidth + borderWidth );\\n }\\n\\n var styleHeight = getStyleSize( style.height );\\n if ( styleHeight !== false ) {\\n size.height = styleHeight +\\n // add padding and border unless it's already including it\\n ( isBorderBoxSizeOuter ? 0 : paddingHeight + borderHeight );\\n }\\n\\n size.innerWidth = size.width - ( paddingWidth + borderWidth );\\n size.innerHeight = size.height - ( paddingHeight + borderHeight );\\n\\n size.outerWidth = size.width + marginWidth;\\n size.outerHeight = size.height + marginHeight;\\n\\n return size;\\n}\\n\\n// IE8 returns percent values, not pixels\\n// taken from jQuery's curCSS\\nfunction mungeNonPixel( elem, value ) {\\n // IE8 and has percent value\\n if ( isComputedStyle || value.indexOf('%') === -1 ) {\\n return value;\\n }\\n var style = elem.style;\\n // Remember the original values\\n var left = style.left;\\n var rs = elem.runtimeStyle;\\n var rsLeft = rs && rs.left;\\n\\n // Put in the new values to get a computed value out\\n if ( rsLeft ) {\\n rs.left = elem.currentStyle.left;\\n }\\n style.left = value;\\n value = style.pixelLeft;\\n\\n // Revert the changed values\\n style.left = left;\\n if ( rsLeft ) {\\n rs.left = rsLeft;\\n }\\n\\n return value;\\n}\\n\\nreturn getSize;\\n\\n}\\n\\n// transport\\nif ( typeof define === 'function' && define.amd ) {\\n // AMD for RequireJS\\n define( 'get-size/get-size',[ 'get-style-property/get-style-property' ], defineGetSize );\\n} else if ( typeof exports === 'object' ) {\\n // CommonJS for Component\\n module.exports = defineGetSize( require('get-style-property') );\\n} else {\\n // browser global\\n window.getSize = defineGetSize( window.getStyleProperty );\\n}\\n\\n})( window );\\n\\n/*!\\n * eventie v1.0.3\\n * event binding helper\\n * eventie.bind( elem, 'click', myFn )\\n * eventie.unbind( elem, 'click', myFn )\\n */\\n\\n/*jshint browser: true, undef: true, unused: true */\\n/*global define: false */\\n\\n( function( window ) {\\n\\n\\n\\nvar docElem = document.documentElement;\\n\\nvar bind = function() {};\\n\\nif ( docElem.addEventListener ) {\\n bind = function( obj, type, fn ) {\\n obj.addEventListener( type, fn, false );\\n };\\n} else if ( docElem.attachEvent ) {\\n bind = function( obj, type, fn ) {\\n obj[ type + fn ] = fn.handleEvent ?\\n function() {\\n var event = window.event;\\n // add event.target\\n event.target = event.target || event.srcElement;\\n fn.handleEvent.call( fn, event );\\n } :\\n function() {\\n var event = window.event;\\n // add event.target\\n event.target = event.target || event.srcElement;\\n fn.call( obj, event );\\n };\\n obj.attachEvent( \\\"on\\\" + type, obj[ type + fn ] );\\n };\\n}\\n\\nvar unbind = function() {};\\n\\nif ( docElem.removeEventListener ) {\\n unbind = function( obj, type, fn ) {\\n obj.removeEventListener( type, fn, false );\\n };\\n} else if ( docElem.detachEvent ) {\\n unbind = function( obj, type, fn ) {\\n obj.detachEvent( \\\"on\\\" + type, obj[ type + fn ] );\\n try {\\n delete obj[ type + fn ];\\n } catch ( err ) {\\n // can't delete window object properties\\n obj[ type + fn ] = undefined;\\n }\\n };\\n}\\n\\nvar eventie = {\\n bind: bind,\\n unbind: unbind\\n};\\n\\n// transport\\nif ( typeof define === 'function' && define.amd ) {\\n // AMD\\n define( 'eventie/eventie',eventie );\\n} else {\\n // browser global\\n window.eventie = eventie;\\n}\\n\\n})( this );\\n\\n/*!\\n * docReady\\n * Cross browser DOMContentLoaded event emitter\\n */\\n\\n/*jshint browser: true, strict: true, undef: true, unused: true*/\\n/*global define: false */\\n\\n( function( window ) {\\n\\n\\n\\nvar document = window.document;\\n// collection of functions to be triggered on ready\\nvar queue = [];\\n\\nfunction docReady( fn ) {\\n // throw out non-functions\\n if ( typeof fn !== 'function' ) {\\n return;\\n }\\n\\n if ( docReady.isReady ) {\\n // ready now, hit it\\n fn();\\n } else {\\n // queue function when ready\\n queue.push( fn );\\n }\\n}\\n\\ndocReady.isReady = false;\\n\\n// triggered on various doc ready events\\nfunction init( event ) {\\n // bail if IE8 document is not ready just yet\\n var isIE8NotReady = event.type === 'readystatechange' && document.readyState !== 'complete';\\n if ( docReady.isReady || isIE8NotReady ) {\\n return;\\n }\\n docReady.isReady = true;\\n\\n // process queue\\n for ( var i=0, len = queue.length; i < len; i++ ) {\\n var fn = queue[i];\\n fn();\\n }\\n}\\n\\nfunction defineDocReady( eventie ) {\\n eventie.bind( document, 'DOMContentLoaded', init );\\n eventie.bind( document, 'readystatechange', init );\\n eventie.bind( window, 'load', init );\\n\\n return docReady;\\n}\\n\\n// transport\\nif ( typeof define === 'function' && define.amd ) {\\n // AMD\\n // if RequireJS, then doc is already ready\\n docReady.isReady = typeof requirejs === 'function';\\n define( 'doc-ready/doc-ready',[ 'eventie/eventie' ], defineDocReady );\\n} else {\\n // browser global\\n window.docReady = defineDocReady( window.eventie );\\n}\\n\\n})( this );\\n\\n/*!\\n * EventEmitter v4.2.6 - git.io/ee\\n * Oliver Caldwell\\n * MIT license\\n * @preserve\\n */\\n\\n(function () {\\n\\t\\n\\n\\t/**\\n\\t * Class for managing events.\\n\\t * Can be extended to provide event functionality in other classes.\\n\\t *\\n\\t * @class EventEmitter Manages event registering and emitting.\\n\\t */\\n\\tfunction EventEmitter() {}\\n\\n\\t// Shortcuts to improve speed and size\\n\\tvar proto = EventEmitter.prototype;\\n\\tvar exports = this;\\n\\tvar originalGlobalValue = exports.EventEmitter;\\n\\n\\t/**\\n\\t * Finds the index of the listener for the event in it's storage array.\\n\\t *\\n\\t * @param {Function[]} listeners Array of listeners to search through.\\n\\t * @param {Function} listener Method to look for.\\n\\t * @return {Number} Index of the specified listener, -1 if not found\\n\\t * @api private\\n\\t */\\n\\tfunction indexOfListener(listeners, listener) {\\n\\t\\tvar i = listeners.length;\\n\\t\\twhile (i--) {\\n\\t\\t\\tif (listeners[i].listener === listener) {\\n\\t\\t\\t\\treturn i;\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\treturn -1;\\n\\t}\\n\\n\\t/**\\n\\t * Alias a method while keeping the context correct, to allow for overwriting of target method.\\n\\t *\\n\\t * @param {String} name The name of the target method.\\n\\t * @return {Function} The aliased method\\n\\t * @api private\\n\\t */\\n\\tfunction alias(name) {\\n\\t\\treturn function aliasClosure() {\\n\\t\\t\\treturn this[name].apply(this, arguments);\\n\\t\\t};\\n\\t}\\n\\n\\t/**\\n\\t * Returns the listener array for the specified event.\\n\\t * Will initialise the event object and listener arrays if required.\\n\\t * Will return an object if you use a regex search. The object contains keys for each matched event. So /ba[rz]/ might return an object containing bar and baz. But only if you have either defined them with defineEvent or added some listeners to them.\\n\\t * Each property in the object response is an array of listener functions.\\n\\t *\\n\\t * @param {String|RegExp} evt Name of the event to return the listeners from.\\n\\t * @return {Function[]|Object} All listener functions for the event.\\n\\t */\\n\\tproto.getListeners = function getListeners(evt) {\\n\\t\\tvar events = this._getEvents();\\n\\t\\tvar response;\\n\\t\\tvar key;\\n\\n\\t\\t// Return a concatenated array of all matching events if\\n\\t\\t// the selector is a regular expression.\\n\\t\\tif (typeof evt === 'object') {\\n\\t\\t\\tresponse = {};\\n\\t\\t\\tfor (key in events) {\\n\\t\\t\\t\\tif (events.hasOwnProperty(key) && evt.test(key)) {\\n\\t\\t\\t\\t\\tresponse[key] = events[key];\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\telse {\\n\\t\\t\\tresponse = events[evt] || (events[evt] = []);\\n\\t\\t}\\n\\n\\t\\treturn response;\\n\\t};\\n\\n\\t/**\\n\\t * Takes a list of listener objects and flattens it into a list of listener functions.\\n\\t *\\n\\t * @param {Object[]} listeners Raw listener objects.\\n\\t * @return {Function[]} Just the listener functions.\\n\\t */\\n\\tproto.flattenListeners = function flattenListeners(listeners) {\\n\\t\\tvar flatListeners = [];\\n\\t\\tvar i;\\n\\n\\t\\tfor (i = 0; i < listeners.length; i += 1) {\\n\\t\\t\\tflatListeners.push(listeners[i].listener);\\n\\t\\t}\\n\\n\\t\\treturn flatListeners;\\n\\t};\\n\\n\\t/**\\n\\t * Fetches the requested listeners via getListeners but will always return the results inside an object. This is mainly for internal use but others may find it useful.\\n\\t *\\n\\t * @param {String|RegExp} evt Name of the event to return the listeners from.\\n\\t * @return {Object} All listener functions for an event in an object.\\n\\t */\\n\\tproto.getListenersAsObject = function getListenersAsObject(evt) {\\n\\t\\tvar listeners = this.getListeners(evt);\\n\\t\\tvar response;\\n\\n\\t\\tif (listeners instanceof Array) {\\n\\t\\t\\tresponse = {};\\n\\t\\t\\tresponse[evt] = listeners;\\n\\t\\t}\\n\\n\\t\\treturn response || listeners;\\n\\t};\\n\\n\\t/**\\n\\t * Adds a listener function to the specified event.\\n\\t * The listener will not be added if it is a duplicate.\\n\\t * If the listener returns true then it will be removed after it is called.\\n\\t * If you pass a regular expression as the event name then the listener will be added to all events that match it.\\n\\t *\\n\\t * @param {String|RegExp} evt Name of the event to attach the listener to.\\n\\t * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.\\n\\t * @return {Object} Current instance of EventEmitter for chaining.\\n\\t */\\n\\tproto.addListener = function addListener(evt, listener) {\\n\\t\\tvar listeners = this.getListenersAsObject(evt);\\n\\t\\tvar listenerIsWrapped = typeof listener === 'object';\\n\\t\\tvar key;\\n\\n\\t\\tfor (key in listeners) {\\n\\t\\t\\tif (listeners.hasOwnProperty(key) && indexOfListener(listeners[key], listener) === -1) {\\n\\t\\t\\t\\tlisteners[key].push(listenerIsWrapped ? listener : {\\n\\t\\t\\t\\t\\tlistener: listener,\\n\\t\\t\\t\\t\\tonce: false\\n\\t\\t\\t\\t});\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\treturn this;\\n\\t};\\n\\n\\t/**\\n\\t * Alias of addListener\\n\\t */\\n\\tproto.on = alias('addListener');\\n\\n\\t/**\\n\\t * Semi-alias of addListener. It will add a listener that will be\\n\\t * automatically removed after it's first execution.\\n\\t *\\n\\t * @param {String|RegExp} evt Name of the event to attach the listener to.\\n\\t * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.\\n\\t * @return {Object} Current instance of EventEmitter for chaining.\\n\\t */\\n\\tproto.addOnceListener = function addOnceListener(evt, listener) {\\n\\t\\treturn this.addListener(evt, {\\n\\t\\t\\tlistener: listener,\\n\\t\\t\\tonce: true\\n\\t\\t});\\n\\t};\\n\\n\\t/**\\n\\t * Alias of addOnceListener.\\n\\t */\\n\\tproto.once = alias('addOnceListener');\\n\\n\\t/**\\n\\t * Defines an event name. This is required if you want to use a regex to add a listener to multiple events at once. If you don't do this then how do you expect it to know what event to add to? Should it just add to every possible match for a regex? No. That is scary and bad.\\n\\t * You need to tell it what event names should be matched by a regex.\\n\\t *\\n\\t * @param {String} evt Name of the event to create.\\n\\t * @return {Object} Current instance of EventEmitter for chaining.\\n\\t */\\n\\tproto.defineEvent = function defineEvent(evt) {\\n\\t\\tthis.getListeners(evt);\\n\\t\\treturn this;\\n\\t};\\n\\n\\t/**\\n\\t * Uses defineEvent to define multiple events.\\n\\t *\\n\\t * @param {String[]} evts An array of event names to define.\\n\\t * @return {Object} Current instance of EventEmitter for chaining.\\n\\t */\\n\\tproto.defineEvents = function defineEvents(evts) {\\n\\t\\tfor (var i = 0; i < evts.length; i += 1) {\\n\\t\\t\\tthis.defineEvent(evts[i]);\\n\\t\\t}\\n\\t\\treturn this;\\n\\t};\\n\\n\\t/**\\n\\t * Removes a listener function from the specified event.\\n\\t * When passed a regular expression as the event name, it will remove the listener from all events that match it.\\n\\t *\\n\\t * @param {String|RegExp} evt Name of the event to remove the listener from.\\n\\t * @param {Function} listener Method to remove from the event.\\n\\t * @return {Object} Current instance of EventEmitter for chaining.\\n\\t */\\n\\tproto.removeListener = function removeListener(evt, listener) {\\n\\t\\tvar listeners = this.getListenersAsObject(evt);\\n\\t\\tvar index;\\n\\t\\tvar key;\\n\\n\\t\\tfor (key in listeners) {\\n\\t\\t\\tif (listeners.hasOwnProperty(key)) {\\n\\t\\t\\t\\tindex = indexOfListener(listeners[key], listener);\\n\\n\\t\\t\\t\\tif (index !== -1) {\\n\\t\\t\\t\\t\\tlisteners[key].splice(index, 1);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\treturn this;\\n\\t};\\n\\n\\t/**\\n\\t * Alias of removeListener\\n\\t */\\n\\tproto.off = alias('removeListener');\\n\\n\\t/**\\n\\t * Adds listeners in bulk using the manipulateListeners method.\\n\\t * If you pass an object as the second argument you can add to multiple events at once. The object should contain key value pairs of events and listeners or listener arrays. You can also pass it an event name and an array of listeners to be added.\\n\\t * You can also pass it a regular expression to add the array of listeners to all events that match it.\\n\\t * Yeah, this function does quite a bit. That's probably a bad thing.\\n\\t *\\n\\t * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add to multiple events at once.\\n\\t * @param {Function[]} [listeners] An optional array of listener functions to add.\\n\\t * @return {Object} Current instance of EventEmitter for chaining.\\n\\t */\\n\\tproto.addListeners = function addListeners(evt, listeners) {\\n\\t\\t// Pass through to manipulateListeners\\n\\t\\treturn this.manipulateListeners(false, evt, listeners);\\n\\t};\\n\\n\\t/**\\n\\t * Removes listeners in bulk using the manipulateListeners method.\\n\\t * If you pass an object as the second argument you can remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.\\n\\t * You can also pass it an event name and an array of listeners to be removed.\\n\\t * You can also pass it a regular expression to remove the listeners from all events that match it.\\n\\t *\\n\\t * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to remove from multiple events at once.\\n\\t * @param {Function[]} [listeners] An optional array of listener functions to remove.\\n\\t * @return {Object} Current instance of EventEmitter for chaining.\\n\\t */\\n\\tproto.removeListeners = function removeListeners(evt, listeners) {\\n\\t\\t// Pass through to manipulateListeners\\n\\t\\treturn this.manipulateListeners(true, evt, listeners);\\n\\t};\\n\\n\\t/**\\n\\t * Edits listeners in bulk. The addListeners and removeListeners methods both use this to do their job. You should really use those instead, this is a little lower level.\\n\\t * The first argument will determine if the listeners are removed (true) or added (false).\\n\\t * If you pass an object as the second argument you can add/remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.\\n\\t * You can also pass it an event name and an array of listeners to be added/removed.\\n\\t * You can also pass it a regular expression to manipulate the listeners of all events that match it.\\n\\t *\\n\\t * @param {Boolean} remove True if you want to remove listeners, false if you want to add.\\n\\t * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add/remove from multiple events at once.\\n\\t * @param {Function[]} [listeners] An optional array of listener functions to add/remove.\\n\\t * @return {Object} Current instance of EventEmitter for chaining.\\n\\t */\\n\\tproto.manipulateListeners = function manipulateListeners(remove, evt, listeners) {\\n\\t\\tvar i;\\n\\t\\tvar value;\\n\\t\\tvar single = remove ? this.removeListener : this.addListener;\\n\\t\\tvar multiple = remove ? this.removeListeners : this.addListeners;\\n\\n\\t\\t// If evt is an object then pass each of it's properties to this method\\n\\t\\tif (typeof evt === 'object' && !(evt instanceof RegExp)) {\\n\\t\\t\\tfor (i in evt) {\\n\\t\\t\\t\\tif (evt.hasOwnProperty(i) && (value = evt[i])) {\\n\\t\\t\\t\\t\\t// Pass the single listener straight through to the singular method\\n\\t\\t\\t\\t\\tif (typeof value === 'function') {\\n\\t\\t\\t\\t\\t\\tsingle.call(this, i, value);\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\telse {\\n\\t\\t\\t\\t\\t\\t// Otherwise pass back to the multiple function\\n\\t\\t\\t\\t\\t\\tmultiple.call(this, i, value);\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\telse {\\n\\t\\t\\t// So evt must be a string\\n\\t\\t\\t// And listeners must be an array of listeners\\n\\t\\t\\t// Loop over it and pass each one to the multiple method\\n\\t\\t\\ti = listeners.length;\\n\\t\\t\\twhile (i--) {\\n\\t\\t\\t\\tsingle.call(this, evt, listeners[i]);\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\treturn this;\\n\\t};\\n\\n\\t/**\\n\\t * Removes all listeners from a specified event.\\n\\t * If you do not specify an event then all listeners will be removed.\\n\\t * That means every event will be emptied.\\n\\t * You can also pass a regex to remove all events that match it.\\n\\t *\\n\\t * @param {String|RegExp} [evt] Optional name of the event to remove all listeners for. Will remove from every event if not passed.\\n\\t * @return {Object} Current instance of EventEmitter for chaining.\\n\\t */\\n\\tproto.removeEvent = function removeEvent(evt) {\\n\\t\\tvar type = typeof evt;\\n\\t\\tvar events = this._getEvents();\\n\\t\\tvar key;\\n\\n\\t\\t// Remove different things depending on the state of evt\\n\\t\\tif (type === 'string') {\\n\\t\\t\\t// Remove all listeners for the specified event\\n\\t\\t\\tdelete events[evt];\\n\\t\\t}\\n\\t\\telse if (type === 'object') {\\n\\t\\t\\t// Remove all events matching the regex.\\n\\t\\t\\tfor (key in events) {\\n\\t\\t\\t\\tif (events.hasOwnProperty(key) && evt.test(key)) {\\n\\t\\t\\t\\t\\tdelete events[key];\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\telse {\\n\\t\\t\\t// Remove all listeners in all events\\n\\t\\t\\tdelete this._events;\\n\\t\\t}\\n\\n\\t\\treturn this;\\n\\t};\\n\\n\\t/**\\n\\t * Alias of removeEvent.\\n\\t *\\n\\t * Added to mirror the node API.\\n\\t */\\n\\tproto.removeAllListeners = alias('removeEvent');\\n\\n\\t/**\\n\\t * Emits an event of your choice.\\n\\t * When emitted, every listener attached to that event will be executed.\\n\\t * If you pass the optional argument array then those arguments will be passed to every listener upon execution.\\n\\t * Because it uses `apply`, your array of arguments will be passed as if you wrote them out separately.\\n\\t * So they will not arrive within the array on the other side, they will be separate.\\n\\t * You can also pass a regular expression to emit to all events that match it.\\n\\t *\\n\\t * @param {String|RegExp} evt Name of the event to emit and execute listeners for.\\n\\t * @param {Array} [args] Optional array of arguments to be passed to each listener.\\n\\t * @return {Object} Current instance of EventEmitter for chaining.\\n\\t */\\n\\tproto.emitEvent = function emitEvent(evt, args) {\\n\\t\\tvar listeners = this.getListenersAsObject(evt);\\n\\t\\tvar listener;\\n\\t\\tvar i;\\n\\t\\tvar key;\\n\\t\\tvar response;\\n\\n\\t\\tfor (key in listeners) {\\n\\t\\t\\tif (listeners.hasOwnProperty(key)) {\\n\\t\\t\\t\\ti = listeners[key].length;\\n\\n\\t\\t\\t\\twhile (i--) {\\n\\t\\t\\t\\t\\t// If the listener returns true then it shall be removed from the event\\n\\t\\t\\t\\t\\t// The function is executed either with a basic call or an apply if there is an args array\\n\\t\\t\\t\\t\\tlistener = listeners[key][i];\\n\\n\\t\\t\\t\\t\\tif (listener.once === true) {\\n\\t\\t\\t\\t\\t\\tthis.removeListener(evt, listener.listener);\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\tresponse = listener.listener.apply(this, args || []);\\n\\n\\t\\t\\t\\t\\tif (response === this._getOnceReturnValue()) {\\n\\t\\t\\t\\t\\t\\tthis.removeListener(evt, listener.listener);\\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\\t/**\\n\\t * Alias of emitEvent\\n\\t */\\n\\tproto.trigger = alias('emitEvent');\\n\\n\\t/**\\n\\t * Subtly different from emitEvent in that it will pass its arguments on to the listeners, as opposed to taking a single array of arguments to pass on.\\n\\t * As with emitEvent, you can pass a regex in place of the event name to emit to all events that match it.\\n\\t *\\n\\t * @param {String|RegExp} evt Name of the event to emit and execute listeners for.\\n\\t * @param {...*} Optional additional arguments to be passed to each listener.\\n\\t * @return {Object} Current instance of EventEmitter for chaining.\\n\\t */\\n\\tproto.emit = function emit(evt) {\\n\\t\\tvar args = Array.prototype.slice.call(arguments, 1);\\n\\t\\treturn this.emitEvent(evt, args);\\n\\t};\\n\\n\\t/**\\n\\t * Sets the current value to check against when executing listeners. If a\\n\\t * listeners return value matches the one set here then it will be removed\\n\\t * after execution. This value defaults to true.\\n\\t *\\n\\t * @param {*} value The new value to check for when executing listeners.\\n\\t * @return {Object} Current instance of EventEmitter for chaining.\\n\\t */\\n\\tproto.setOnceReturnValue = function setOnceReturnValue(value) {\\n\\t\\tthis._onceReturnValue = value;\\n\\t\\treturn this;\\n\\t};\\n\\n\\t/**\\n\\t * Fetches the current value to check against when executing listeners. If\\n\\t * the listeners return value matches this one then it should be removed\\n\\t * automatically. It will return true by default.\\n\\t *\\n\\t * @return {*|Boolean} The current value to check for or the default, true.\\n\\t * @api private\\n\\t */\\n\\tproto._getOnceReturnValue = function _getOnceReturnValue() {\\n\\t\\tif (this.hasOwnProperty('_onceReturnValue')) {\\n\\t\\t\\treturn this._onceReturnValue;\\n\\t\\t}\\n\\t\\telse {\\n\\t\\t\\treturn true;\\n\\t\\t}\\n\\t};\\n\\n\\t/**\\n\\t * Fetches the events object and creates one if required.\\n\\t *\\n\\t * @return {Object} The events storage object.\\n\\t * @api private\\n\\t */\\n\\tproto._getEvents = function _getEvents() {\\n\\t\\treturn this._events || (this._events = {});\\n\\t};\\n\\n\\t/**\\n\\t * Reverts the global {@link EventEmitter} to its previous value and returns a reference to this version.\\n\\t *\\n\\t * @return {Function} Non conflicting EventEmitter class.\\n\\t */\\n\\tEventEmitter.noConflict = function noConflict() {\\n\\t\\texports.EventEmitter = originalGlobalValue;\\n\\t\\treturn EventEmitter;\\n\\t};\\n\\n\\t// Expose the class either via AMD, CommonJS or the global object\\n\\tif (typeof define === 'function' && define.amd) {\\n\\t\\tdefine('eventEmitter/EventEmitter',[],function () {\\n\\t\\t\\treturn EventEmitter;\\n\\t\\t});\\n\\t}\\n\\telse if (typeof module === 'object' && module.exports){\\n\\t\\tmodule.exports = EventEmitter;\\n\\t}\\n\\telse {\\n\\t\\tthis.EventEmitter = EventEmitter;\\n\\t}\\n}.call(this));\\n\\n/**\\n * matchesSelector helper v1.0.1\\n *\\n * @name matchesSelector\\n * @param {Element} elem\\n * @param {String} selector\\n */\\n\\n/*jshint browser: true, strict: true, undef: true, unused: true */\\n/*global define: false */\\n\\n( function( global, ElemProto ) {\\n\\n \\n\\n var matchesMethod = ( function() {\\n // check un-prefixed\\n if ( ElemProto.matchesSelector ) {\\n return 'matchesSelector';\\n }\\n // check vendor prefixes\\n var prefixes = [ 'webkit', 'moz', 'ms', 'o' ];\\n\\n for ( var i=0, len = prefixes.length; i < len; i++ ) {\\n var prefix = prefixes[i];\\n var method = prefix + 'MatchesSelector';\\n if ( ElemProto[ method ] ) {\\n return method;\\n }\\n }\\n })();\\n\\n // ----- match ----- //\\n\\n function match( elem, selector ) {\\n return elem[ matchesMethod ]( selector );\\n }\\n\\n // ----- appendToFragment ----- //\\n\\n function checkParent( elem ) {\\n // not needed if already has parent\\n if ( elem.parentNode ) {\\n return;\\n }\\n var fragment = document.createDocumentFragment();\\n fragment.appendChild( elem );\\n }\\n\\n // ----- query ----- //\\n\\n // fall back to using QSA\\n // thx @jonathantneal https://gist.github.com/3062955\\n function query( elem, selector ) {\\n // append to fragment if no parent\\n checkParent( elem );\\n\\n // match elem with all selected elems of parent\\n var elems = elem.parentNode.querySelectorAll( selector );\\n for ( var i=0, len = elems.length; i < len; i++ ) {\\n // return true if match\\n if ( elems[i] === elem ) {\\n return true;\\n }\\n }\\n // otherwise return false\\n return false;\\n }\\n\\n // ----- matchChild ----- //\\n\\n function matchChild( elem, selector ) {\\n checkParent( elem );\\n return match( elem, selector );\\n }\\n\\n // ----- matchesSelector ----- //\\n\\n var matchesSelector;\\n\\n if ( matchesMethod ) {\\n // IE9 supports matchesSelector, but doesn't work on orphaned elems\\n // check for that\\n var div = document.createElement('div');\\n var supportsOrphans = match( div, 'div' );\\n matchesSelector = supportsOrphans ? match : matchChild;\\n } else {\\n matchesSelector = query;\\n }\\n\\n // transport\\n if ( typeof define === 'function' && define.amd ) {\\n // AMD\\n define( 'matches-selector/matches-selector',[],function() {\\n return matchesSelector;\\n });\\n } else {\\n // browser global\\n window.matchesSelector = matchesSelector;\\n }\\n\\n})( this, Element.prototype );\\n\\n/**\\n * Outlayer Item\\n**/\\n\\n( function( window ) {\\n\\n\\n\\n// ----- get style ----- //\\n\\nvar defView = document.defaultView;\\n\\nvar getStyle = defView && defView.getComputedStyle ?\\n function( elem ) {\\n return defView.getComputedStyle( elem, null );\\n } :\\n function( elem ) {\\n return elem.currentStyle;\\n };\\n\\n\\n// extend objects\\nfunction extend( a, b ) {\\n for ( var prop in b ) {\\n a[ prop ] = b[ prop ];\\n }\\n return a;\\n}\\n\\nfunction isEmptyObj( obj ) {\\n for ( var prop in obj ) {\\n return false;\\n }\\n prop = null;\\n return true;\\n}\\n\\n// http://jamesroberts.name/blog/2010/02/22/string-functions-for-javascript-trim-to-camel-case-to-dashed-and-to-underscore/\\nfunction toDash( str ) {\\n return str.replace( /([A-Z])/g, function( $1 ){\\n return '-' + $1.toLowerCase();\\n });\\n}\\n\\n// -------------------------- Outlayer definition -------------------------- //\\n\\nfunction outlayerItemDefinition( EventEmitter, getSize, getStyleProperty ) {\\n\\n// -------------------------- CSS3 support -------------------------- //\\n\\nvar transitionProperty = getStyleProperty('transition');\\nvar transformProperty = getStyleProperty('transform');\\nvar supportsCSS3 = transitionProperty && transformProperty;\\nvar is3d = !!getStyleProperty('perspective');\\n\\nvar transitionEndEvent = {\\n WebkitTransition: 'webkitTransitionEnd',\\n MozTransition: 'transitionend',\\n OTransition: 'otransitionend',\\n transition: 'transitionend'\\n}[ transitionProperty ];\\n\\n// properties that could have vendor prefix\\nvar prefixableProperties = [\\n 'transform',\\n 'transition',\\n 'transitionDuration',\\n 'transitionProperty'\\n];\\n\\n// cache all vendor properties\\nvar vendorProperties = ( function() {\\n var cache = {};\\n for ( var i=0, len = prefixableProperties.length; i < len; i++ ) {\\n var prop = prefixableProperties[i];\\n var supportedProp = getStyleProperty( prop );\\n if ( supportedProp && supportedProp !== prop ) {\\n cache[ prop ] = supportedProp;\\n }\\n }\\n return cache;\\n})();\\n\\n// -------------------------- Item -------------------------- //\\n\\nfunction Item( element, layout ) {\\n if ( !element ) {\\n return;\\n }\\n\\n this.element = element;\\n // parent layout class, i.e. Masonry, Isotope, or Packery\\n this.layout = layout;\\n this.position = {\\n x: 0,\\n y: 0\\n };\\n\\n this._create();\\n}\\n\\n// inherit EventEmitter\\nextend( Item.prototype, EventEmitter.prototype );\\n\\nItem.prototype._create = function() {\\n // transition objects\\n this._transition = {\\n ingProperties: {},\\n clean: {},\\n onEnd: {}\\n };\\n\\n this.css({\\n position: 'absolute'\\n });\\n};\\n\\n// trigger specified handler for event type\\nItem.prototype.handleEvent = function( event ) {\\n var method = 'on' + event.type;\\n if ( this[ method ] ) {\\n this[ method ]( event );\\n }\\n};\\n\\nItem.prototype.getSize = function() {\\n this.size = getSize( this.element );\\n};\\n\\n/**\\n * apply CSS styles to element\\n * @param {Object} style\\n */\\nItem.prototype.css = function( style ) {\\n var elemStyle = this.element.style;\\n\\n for ( var prop in style ) {\\n // use vendor property if available\\n var supportedProp = vendorProperties[ prop ] || prop;\\n elemStyle[ supportedProp ] = style[ prop ];\\n }\\n};\\n\\n // measure position, and sets it\\nItem.prototype.getPosition = function() {\\n var style = getStyle( this.element );\\n var layoutOptions = this.layout.options;\\n var isOriginLeft = layoutOptions.isOriginLeft;\\n var isOriginTop = layoutOptions.isOriginTop;\\n var x = parseInt( style[ isOriginLeft ? 'left' : 'right' ], 10 );\\n var y = parseInt( style[ isOriginTop ? 'top' : 'bottom' ], 10 );\\n\\n // clean up 'auto' or other non-integer values\\n x = isNaN( x ) ? 0 : x;\\n y = isNaN( y ) ? 0 : y;\\n // remove padding from measurement\\n var layoutSize = this.layout.size;\\n x -= isOriginLeft ? layoutSize.paddingLeft : layoutSize.paddingRight;\\n y -= isOriginTop ? layoutSize.paddingTop : layoutSize.paddingBottom;\\n\\n this.position.x = x;\\n this.position.y = y;\\n};\\n\\n// set settled position, apply padding\\nItem.prototype.layoutPosition = function() {\\n var layoutSize = this.layout.size;\\n var layoutOptions = this.layout.options;\\n var style = {};\\n\\n if ( layoutOptions.isOriginLeft ) {\\n style.left = ( this.position.x + layoutSize.paddingLeft ) + 'px';\\n // reset other property\\n style.right = '';\\n } else {\\n style.right = ( this.position.x + layoutSize.paddingRight ) + 'px';\\n style.left = '';\\n }\\n\\n if ( layoutOptions.isOriginTop ) {\\n style.top = ( this.position.y + layoutSize.paddingTop ) + 'px';\\n style.bottom = '';\\n } else {\\n style.bottom = ( this.position.y + layoutSize.paddingBottom ) + 'px';\\n style.top = '';\\n }\\n\\n this.css( style );\\n this.emitEvent( 'layout', [ this ] );\\n};\\n\\n\\n// transform translate function\\nvar translate = is3d ?\\n function( x, y ) {\\n return 'translate3d(' + x + 'px, ' + y + 'px, 0)';\\n } :\\n function( x, y ) {\\n return 'translate(' + x + 'px, ' + y + 'px)';\\n };\\n\\n\\nItem.prototype._transitionTo = function( x, y ) {\\n this.getPosition();\\n // get current x & y from top/left\\n var curX = this.position.x;\\n var curY = this.position.y;\\n\\n var compareX = parseInt( x, 10 );\\n var compareY = parseInt( y, 10 );\\n var didNotMove = compareX === this.position.x && compareY === this.position.y;\\n\\n // save end position\\n this.setPosition( x, y );\\n\\n // if did not move and not transitioning, just go to layout\\n if ( didNotMove && !this.isTransitioning ) {\\n this.layoutPosition();\\n return;\\n }\\n\\n var transX = x - curX;\\n var transY = y - curY;\\n var transitionStyle = {};\\n // flip cooridinates if origin on right or bottom\\n var layoutOptions = this.layout.options;\\n transX = layoutOptions.isOriginLeft ? transX : -transX;\\n transY = layoutOptions.isOriginTop ? transY : -transY;\\n transitionStyle.transform = translate( transX, transY );\\n\\n this.transition({\\n to: transitionStyle,\\n onTransitionEnd: {\\n transform: this.layoutPosition\\n },\\n isCleaning: true\\n });\\n};\\n\\n// non transition + transform support\\nItem.prototype.goTo = function( x, y ) {\\n this.setPosition( x, y );\\n this.layoutPosition();\\n};\\n\\n// use transition and transforms if supported\\nItem.prototype.moveTo = supportsCSS3 ?\\n Item.prototype._transitionTo : Item.prototype.goTo;\\n\\nItem.prototype.setPosition = function( x, y ) {\\n this.position.x = parseInt( x, 10 );\\n this.position.y = parseInt( y, 10 );\\n};\\n\\n// ----- transition ----- //\\n\\n/**\\n * @param {Object} style - CSS\\n * @param {Function} onTransitionEnd\\n */\\n\\n// non transition, just trigger callback\\nItem.prototype._nonTransition = function( args ) {\\n this.css( args.to );\\n if ( args.isCleaning ) {\\n this._removeStyles( args.to );\\n }\\n for ( var prop in args.onTransitionEnd ) {\\n args.onTransitionEnd[ prop ].call( this );\\n }\\n};\\n\\n/**\\n * proper transition\\n * @param {Object} args - arguments\\n * @param {Object} to - style to transition to\\n * @param {Object} from - style to start transition from\\n * @param {Boolean} isCleaning - removes transition styles after transition\\n * @param {Function} onTransitionEnd - callback\\n */\\nItem.prototype._transition = function( args ) {\\n // redirect to nonTransition if no transition duration\\n if ( !parseFloat( this.layout.options.transitionDuration ) ) {\\n this._nonTransition( args );\\n return;\\n }\\n\\n var _transition = this._transition;\\n // keep track of onTransitionEnd callback by css property\\n for ( var prop in args.onTransitionEnd ) {\\n _transition.onEnd[ prop ] = args.onTransitionEnd[ prop ];\\n }\\n // keep track of properties that are transitioning\\n for ( prop in args.to ) {\\n _transition.ingProperties[ prop ] = true;\\n // keep track of properties to clean up when transition is done\\n if ( args.isCleaning ) {\\n _transition.clean[ prop ] = true;\\n }\\n }\\n\\n // set from styles\\n if ( args.from ) {\\n this.css( args.from );\\n // force redraw. http://blog.alexmaccaw.com/css-transitions\\n var h = this.element.offsetHeight;\\n // hack for JSHint to hush about unused var\\n h = null;\\n }\\n // enable transition\\n this.enableTransition( args.to );\\n // set styles that are transitioning\\n this.css( args.to );\\n\\n this.isTransitioning = true;\\n\\n};\\n\\nvar itemTransitionProperties = transformProperty && ( toDash( transformProperty ) +\\n ',opacity' );\\n\\nItem.prototype.enableTransition = function(/* style */) {\\n // only enable if not already transitioning\\n // bug in IE10 were re-setting transition style will prevent\\n // transitionend event from triggering\\n if ( this.isTransitioning ) {\\n return;\\n }\\n\\n // make transition: foo, bar, baz from style object\\n // TODO uncomment this bit when IE10 bug is resolved\\n // var transitionValue = [];\\n // for ( var prop in style ) {\\n // // dash-ify camelCased properties like WebkitTransition\\n // transitionValue.push( toDash( prop ) );\\n // }\\n // enable transition styles\\n // HACK always enable transform,opacity for IE10\\n this.css({\\n transitionProperty: itemTransitionProperties,\\n transitionDuration: this.layout.options.transitionDuration\\n });\\n // listen for transition end event\\n this.element.addEventListener( transitionEndEvent, this, false );\\n};\\n\\nItem.prototype.transition = Item.prototype[ transitionProperty ? '_transition' : '_nonTransition' ];\\n\\n// ----- events ----- //\\n\\nItem.prototype.onwebkitTransitionEnd = function( event ) {\\n this.ontransitionend( event );\\n};\\n\\nItem.prototype.onotransitionend = function( event ) {\\n this.ontransitionend( event );\\n};\\n\\n// properties that I munge to make my life easier\\nvar dashedVendorProperties = {\\n '-webkit-transform': 'transform',\\n '-moz-transform': 'transform',\\n '-o-transform': 'transform'\\n};\\n\\nItem.prototype.ontransitionend = function( event ) {\\n // disregard bubbled events from children\\n if ( event.target !== this.element ) {\\n return;\\n }\\n var _transition = this._transition;\\n // get property name of transitioned property, convert to prefix-free\\n var propertyName = dashedVendorProperties[ event.propertyName ] || event.propertyName;\\n\\n // remove property that has completed transitioning\\n delete _transition.ingProperties[ propertyName ];\\n // check if any properties are still transitioning\\n if ( isEmptyObj( _transition.ingProperties ) ) {\\n // all properties have completed transitioning\\n this.disableTransition();\\n }\\n // clean style\\n if ( propertyName in _transition.clean ) {\\n // clean up style\\n this.element.style[ event.propertyName ] = '';\\n delete _transition.clean[ propertyName ];\\n }\\n // trigger onTransitionEnd callback\\n if ( propertyName in _transition.onEnd ) {\\n var onTransitionEnd = _transition.onEnd[ propertyName ];\\n onTransitionEnd.call( this );\\n delete _transition.onEnd[ propertyName ];\\n }\\n\\n this.emitEvent( 'transitionEnd', [ this ] );\\n};\\n\\nItem.prototype.disableTransition = function() {\\n this.removeTransitionStyles();\\n this.element.removeEventListener( transitionEndEvent, this, false );\\n this.isTransitioning = false;\\n};\\n\\n/**\\n * removes style property from element\\n * @param {Object} style\\n**/\\nItem.prototype._removeStyles = function( style ) {\\n // clean up transition styles\\n var cleanStyle = {};\\n for ( var prop in style ) {\\n cleanStyle[ prop ] = '';\\n }\\n this.css( cleanStyle );\\n};\\n\\nvar cleanTransitionStyle = {\\n transitionProperty: '',\\n transitionDuration: ''\\n};\\n\\nItem.prototype.removeTransitionStyles = function() {\\n // remove transition\\n this.css( cleanTransitionStyle );\\n};\\n\\n// ----- show/hide/remove ----- //\\n\\n// remove element from DOM\\nItem.prototype.removeElem = function() {\\n this.element.parentNode.removeChild( this.element );\\n this.emitEvent( 'remove', [ this ] );\\n};\\n\\nItem.prototype.remove = function() {\\n // just remove element if no transition support or no transition\\n if ( !transitionProperty || !parseFloat( this.layout.options.transitionDuration ) ) {\\n this.removeElem();\\n return;\\n }\\n\\n // start transition\\n var _this = this;\\n this.on( 'transitionEnd', function() {\\n _this.removeElem();\\n return true; // bind once\\n });\\n this.hide();\\n};\\n\\nItem.prototype.reveal = function() {\\n delete this.isHidden;\\n // remove display: none\\n this.css({ display: '' });\\n\\n var options = this.layout.options;\\n this.transition({\\n from: options.hiddenStyle,\\n to: options.visibleStyle,\\n isCleaning: true\\n });\\n};\\n\\nItem.prototype.hide = function() {\\n // set flag\\n this.isHidden = true;\\n // remove display: none\\n this.css({ display: '' });\\n\\n var options = this.layout.options;\\n this.transition({\\n from: options.visibleStyle,\\n to: options.hiddenStyle,\\n // keep hidden stuff hidden\\n isCleaning: true,\\n onTransitionEnd: {\\n opacity: function() {\\n // check if still hidden\\n // during transition, item may have been un-hidden\\n if ( this.isHidden ) {\\n this.css({ display: 'none' });\\n }\\n }\\n }\\n });\\n};\\n\\nItem.prototype.destroy = function() {\\n this.css({\\n position: '',\\n left: '',\\n right: '',\\n top: '',\\n bottom: '',\\n transition: '',\\n transform: ''\\n });\\n};\\n\\nreturn Item;\\n\\n}\\n\\n// -------------------------- transport -------------------------- //\\n\\nif ( typeof define === 'function' && define.amd ) {\\n // AMD\\n define( 'outlayer/item',[\\n 'eventEmitter/EventEmitter',\\n 'get-size/get-size',\\n 'get-style-property/get-style-property'\\n ],\\n outlayerItemDefinition );\\n} else {\\n // browser global\\n window.Outlayer = {};\\n window.Outlayer.Item = outlayerItemDefinition(\\n window.EventEmitter,\\n window.getSize,\\n window.getStyleProperty\\n );\\n}\\n\\n})( window );\\n\\n/*!\\n * Outlayer v1.1.9\\n * the brains and guts of a layout library\\n */\\n\\n( function( window ) {\\n\\n\\n\\n// ----- vars ----- //\\n\\nvar document = window.document;\\nvar console = window.console;\\nvar jQuery = window.jQuery;\\n\\nvar noop = function() {};\\n\\n// -------------------------- helpers -------------------------- //\\n\\n// extend objects\\nfunction extend( a, b ) {\\n for ( var prop in b ) {\\n a[ prop ] = b[ prop ];\\n }\\n return a;\\n}\\n\\n\\nvar objToString = Object.prototype.toString;\\nfunction isArray( obj ) {\\n return objToString.call( obj ) === '[object Array]';\\n}\\n\\n// turn element or nodeList into an array\\nfunction makeArray( obj ) {\\n var ary = [];\\n if ( isArray( obj ) ) {\\n // use object if already an array\\n ary = obj;\\n } else if ( obj && typeof obj.length === 'number' ) {\\n // convert nodeList to array\\n for ( var i=0, len = obj.length; i < len; i++ ) {\\n ary.push( obj[i] );\\n }\\n } else {\\n // array of single index\\n ary.push( obj );\\n }\\n return ary;\\n}\\n\\n// http://stackoverflow.com/a/384380/182183\\nvar isElement = ( typeof HTMLElement === 'object' ) ?\\n function isElementDOM2( obj ) {\\n return obj instanceof HTMLElement;\\n } :\\n function isElementQuirky( obj ) {\\n return obj && typeof obj === 'object' &&\\n obj.nodeType === 1 && typeof obj.nodeName === 'string';\\n };\\n\\n// index of helper cause IE8\\nvar indexOf = Array.prototype.indexOf ? function( ary, obj ) {\\n return ary.indexOf( obj );\\n } : function( ary, obj ) {\\n for ( var i=0, len = ary.length; i < len; i++ ) {\\n if ( ary[i] === obj ) {\\n return i;\\n }\\n }\\n return -1;\\n };\\n\\nfunction removeFrom( obj, ary ) {\\n var index = indexOf( ary, obj );\\n if ( index !== -1 ) {\\n ary.splice( index, 1 );\\n }\\n}\\n\\n// http://jamesroberts.name/blog/2010/02/22/string-functions-for-javascript-trim-to-camel-case-to-dashed-and-to-underscore/\\nfunction toDashed( str ) {\\n return str.replace( /(.)([A-Z])/g, function( match, $1, $2 ) {\\n return $1 + '-' + $2;\\n }).toLowerCase();\\n}\\n\\n\\nfunction outlayerDefinition( eventie, docReady, EventEmitter, getSize, matchesSelector, Item ) {\\n\\n// -------------------------- Outlayer -------------------------- //\\n\\n// globally unique identifiers\\nvar GUID = 0;\\n// internal store of all Outlayer intances\\nvar instances = {};\\n\\n\\n/**\\n * @param {Element, String} element\\n * @param {Object} options\\n * @constructor\\n */\\nfunction Outlayer( element, options ) {\\n // use element as selector string\\n if ( typeof element === 'string' ) {\\n element = document.querySelector( element );\\n }\\n\\n // bail out if not proper element\\n if ( !element || !isElement( element ) ) {\\n if ( console ) {\\n console.error( 'Bad ' + this.settings.namespace + ' element: ' + element );\\n }\\n return;\\n }\\n\\n this.element = element;\\n\\n // options\\n this.options = extend( {}, this.options );\\n this.option( options );\\n\\n // add id for Outlayer.getFromElement\\n var id = ++GUID;\\n this.element.outlayerGUID = id; // expando\\n instances[ id ] = this; // associate via id\\n\\n // kick it off\\n this._create();\\n\\n if ( this.options.isInitLayout ) {\\n this.layout();\\n }\\n}\\n\\n// settings are for internal use only\\nOutlayer.prototype.settings = {\\n namespace: 'outlayer',\\n item: Item\\n};\\n\\n// default options\\nOutlayer.prototype.options = {\\n containerStyle: {\\n position: 'relative'\\n },\\n isInitLayout: true,\\n isOriginLeft: true,\\n isOriginTop: true,\\n isResizeBound: true,\\n // item options\\n transitionDuration: '0.4s',\\n hiddenStyle: {\\n opacity: 0,\\n transform: 'scale(0.001)'\\n },\\n visibleStyle: {\\n opacity: 1,\\n transform: 'scale(1)'\\n }\\n};\\n\\n// inherit EventEmitter\\nextend( Outlayer.prototype, EventEmitter.prototype );\\n\\n/**\\n * set options\\n * @param {Object} opts\\n */\\nOutlayer.prototype.option = function( opts ) {\\n extend( this.options, opts );\\n};\\n\\nOutlayer.prototype._create = function() {\\n // get items from children\\n this.reloadItems();\\n // elements that affect layout, but are not laid out\\n this.stamps = [];\\n this.stamp( this.options.stamp );\\n // set container style\\n extend( this.element.style, this.options.containerStyle );\\n\\n // bind resize method\\n if ( this.options.isResizeBound ) {\\n this.bindResize();\\n }\\n};\\n\\n// goes through all children again and gets bricks in proper order\\nOutlayer.prototype.reloadItems = function() {\\n // collection of item elements\\n this.items = this._itemize( this.element.children );\\n};\\n\\n\\n/**\\n * turn elements into Outlayer.Items to be used in layout\\n * @param {Array or NodeList or HTMLElement} elems\\n * @returns {Array} items - collection of new Outlayer Items\\n */\\nOutlayer.prototype._itemize = function( elems ) {\\n\\n var itemElems = this._filterFindItemElements( elems );\\n var Item = this.settings.item;\\n\\n // create new Outlayer Items for collection\\n var items = [];\\n for ( var i=0, len = itemElems.length; i < len; i++ ) {\\n var elem = itemElems[i];\\n var item = new Item( elem, this );\\n items.push( item );\\n }\\n\\n return items;\\n};\\n\\n/**\\n * get item elements to be used in layout\\n * @param {Array or NodeList or HTMLElement} elems\\n * @returns {Array} items - item elements\\n */\\nOutlayer.prototype._filterFindItemElements = function( elems ) {\\n // make array of elems\\n elems = makeArray( elems );\\n var itemSelector = this.options.itemSelector;\\n var itemElems = [];\\n\\n for ( var i=0, len = elems.length; i < len; i++ ) {\\n var elem = elems[i];\\n // check that elem is an actual element\\n if ( !isElement( elem ) ) {\\n continue;\\n }\\n // filter & find items if we have an item selector\\n if ( itemSelector ) {\\n // filter siblings\\n if ( matchesSelector( elem, itemSelector ) ) {\\n itemElems.push( elem );\\n }\\n // find children\\n var childElems = elem.querySelectorAll( itemSelector );\\n // concat childElems to filterFound array\\n for ( var j=0, jLen = childElems.length; j < jLen; j++ ) {\\n itemElems.push( childElems[j] );\\n }\\n } else {\\n itemElems.push( elem );\\n }\\n }\\n\\n return itemElems;\\n};\\n\\n/**\\n * getter method for getting item elements\\n * @returns {Array} elems - collection of item elements\\n */\\nOutlayer.prototype.getItemElements = function() {\\n var elems = [];\\n for ( var i=0, len = this.items.length; i < len; i++ ) {\\n elems.push( this.items[i].element );\\n }\\n return elems;\\n};\\n\\n// ----- init & layout ----- //\\n\\n/**\\n * lays out all items\\n */\\nOutlayer.prototype.layout = function() {\\n this._resetLayout();\\n this._manageStamps();\\n\\n // don't animate first layout\\n var isInstant = this.options.isLayoutInstant !== undefined ?\\n this.options.isLayoutInstant : !this._isLayoutInited;\\n this.layoutItems( this.items, isInstant );\\n\\n // flag for initalized\\n this._isLayoutInited = true;\\n};\\n\\n// _init is alias for layout\\nOutlayer.prototype._init = Outlayer.prototype.layout;\\n\\n/**\\n * logic before any new layout\\n */\\nOutlayer.prototype._resetLayout = function() {\\n this.getSize();\\n};\\n\\n\\nOutlayer.prototype.getSize = function() {\\n this.size = getSize( this.element );\\n};\\n\\n/**\\n * get measurement from option, for columnWidth, rowHeight, gutter\\n * if option is String -> get element from selector string, & get size of element\\n * if option is Element -> get size of element\\n * else use option as a number\\n *\\n * @param {String} measurement\\n * @param {String} size - width or height\\n * @private\\n */\\nOutlayer.prototype._getMeasurement = function( measurement, size ) {\\n var option = this.options[ measurement ];\\n var elem;\\n if ( !option ) {\\n // default to 0\\n this[ measurement ] = 0;\\n } else {\\n if ( typeof option === 'string' ) {\\n elem = this.element.querySelector( option );\\n } else if ( isElement( option ) ) {\\n elem = option;\\n }\\n // use size of element, if element\\n this[ measurement ] = elem ? getSize( elem )[ size ] : option;\\n }\\n};\\n\\n/**\\n * layout a collection of item elements\\n * @api public\\n */\\nOutlayer.prototype.layoutItems = function( items, isInstant ) {\\n items = this._getItemsForLayout( items );\\n\\n this._layoutItems( items, isInstant );\\n\\n this._postLayout();\\n};\\n\\n/**\\n * get the items to be laid out\\n * you may want to skip over some items\\n * @param {Array} items\\n * @returns {Array} items\\n */\\nOutlayer.prototype._getItemsForLayout = function( items ) {\\n var layoutItems = [];\\n for ( var i=0, len = items.length; i < len; i++ ) {\\n var item = items[i];\\n if ( !item.isIgnored ) {\\n layoutItems.push( item );\\n }\\n }\\n return layoutItems;\\n};\\n\\n/**\\n * layout items\\n * @param {Array} items\\n * @param {Boolean} isInstant\\n */\\nOutlayer.prototype._layoutItems = function( items, isInstant ) {\\n if ( !items || !items.length ) {\\n // no items, emit event with empty array\\n this.emitEvent( 'layoutComplete', [ this, items ] );\\n return;\\n }\\n\\n // emit layoutComplete when done\\n this._itemsOn( items, 'layout', function onItemsLayout() {\\n this.emitEvent( 'layoutComplete', [ this, items ] );\\n });\\n\\n var queue = [];\\n\\n for ( var i=0, len = items.length; i < len; i++ ) {\\n var item = items[i];\\n // get x/y object from method\\n var position = this._getItemLayoutPosition( item );\\n // enqueue\\n position.item = item;\\n position.isInstant = isInstant;\\n queue.push( position );\\n }\\n\\n this._processLayoutQueue( queue );\\n};\\n\\n/**\\n * get item layout position\\n * @param {Outlayer.Item} item\\n * @returns {Object} x and y position\\n */\\nOutlayer.prototype._getItemLayoutPosition = function( /* item */ ) {\\n return {\\n x: 0,\\n y: 0\\n };\\n};\\n\\n/**\\n * iterate over array and position each item\\n * Reason being - separating this logic prevents 'layout invalidation'\\n * thx @paul_irish\\n * @param {Array} queue\\n */\\nOutlayer.prototype._processLayoutQueue = function( queue ) {\\n for ( var i=0, len = queue.length; i < len; i++ ) {\\n var obj = queue[i];\\n this._positionItem( obj.item, obj.x, obj.y, obj.isInstant );\\n }\\n};\\n\\n/**\\n * Sets position of item in DOM\\n * @param {Outlayer.Item} item\\n * @param {Number} x - horizontal position\\n * @param {Number} y - vertical position\\n * @param {Boolean} isInstant - disables transitions\\n */\\nOutlayer.prototype._positionItem = function( item, x, y, isInstant ) {\\n if ( isInstant ) {\\n // if not transition, just set CSS\\n item.goTo( x, y );\\n } else {\\n item.moveTo( x, y );\\n }\\n};\\n\\n/**\\n * Any logic you want to do after each layout,\\n * i.e. size the container\\n */\\nOutlayer.prototype._postLayout = function() {\\n var size = this._getContainerSize();\\n if ( size ) {\\n this._setContainerMeasure( size.width, true );\\n this._setContainerMeasure( size.height, false );\\n }\\n};\\n\\n/**\\n * @returns {Object} size\\n * @param {Number} width\\n * @param {Number} height\\n */\\nOutlayer.prototype._getContainerSize = noop;\\n\\n/**\\n * @param {Number} measure - size of width or height\\n * @param {Boolean} isWidth\\n */\\nOutlayer.prototype._setContainerMeasure = function( measure, isWidth ) {\\n if ( measure === undefined ) {\\n return;\\n }\\n\\n var elemSize = this.size;\\n // add padding and border width if border box\\n if ( elemSize.isBorderBox ) {\\n measure += isWidth ? elemSize.paddingLeft + elemSize.paddingRight +\\n elemSize.borderLeftWidth + elemSize.borderRightWidth :\\n elemSize.paddingBottom + elemSize.paddingTop +\\n elemSize.borderTopWidth + elemSize.borderBottomWidth;\\n }\\n\\n measure = Math.max( measure, 0 );\\n this.element.style[ isWidth ? 'width' : 'height' ] = measure + 'px';\\n};\\n\\n/**\\n * trigger a callback for a collection of items events\\n * @param {Array} items - Outlayer.Items\\n * @param {String} eventName\\n * @param {Function} callback\\n */\\nOutlayer.prototype._itemsOn = function( items, eventName, callback ) {\\n var doneCount = 0;\\n var count = items.length;\\n // event callback\\n var _this = this;\\n function tick() {\\n doneCount++;\\n if ( doneCount === count ) {\\n callback.call( _this );\\n }\\n return true; // bind once\\n }\\n // bind callback\\n for ( var i=0, len = items.length; i < len; i++ ) {\\n var item = items[i];\\n item.on( eventName, tick );\\n }\\n};\\n\\n// -------------------------- ignore & stamps -------------------------- //\\n\\n\\n/**\\n * keep item in collection, but do not lay it out\\n * ignored items do not get skipped in layout\\n * @param {Element} elem\\n */\\nOutlayer.prototype.ignore = function( elem ) {\\n var item = this.getItem( elem );\\n if ( item ) {\\n item.isIgnored = true;\\n }\\n};\\n\\n/**\\n * return item to layout collection\\n * @param {Element} elem\\n */\\nOutlayer.prototype.unignore = function( elem ) {\\n var item = this.getItem( elem );\\n if ( item ) {\\n delete item.isIgnored;\\n }\\n};\\n\\n/**\\n * adds elements to stamps\\n * @param {NodeList, Array, Element, or String} elems\\n */\\nOutlayer.prototype.stamp = function( elems ) {\\n elems = this._find( elems );\\n if ( !elems ) {\\n return;\\n }\\n\\n this.stamps = this.stamps.concat( elems );\\n // ignore\\n for ( var i=0, len = elems.length; i < len; i++ ) {\\n var elem = elems[i];\\n this.ignore( elem );\\n }\\n};\\n\\n/**\\n * removes elements to stamps\\n * @param {NodeList, Array, or Element} elems\\n */\\nOutlayer.prototype.unstamp = function( elems ) {\\n elems = this._find( elems );\\n if ( !elems ){\\n return;\\n }\\n\\n for ( var i=0, len = elems.length; i < len; i++ ) {\\n var elem = elems[i];\\n // filter out removed stamp elements\\n removeFrom( elem, this.stamps );\\n this.unignore( elem );\\n }\\n\\n};\\n\\n/**\\n * finds child elements\\n * @param {NodeList, Array, Element, or String} elems\\n * @returns {Array} elems\\n */\\nOutlayer.prototype._find = function( elems ) {\\n if ( !elems ) {\\n return;\\n }\\n // if string, use argument as selector string\\n if ( typeof elems === 'string' ) {\\n elems = this.element.querySelectorAll( elems );\\n }\\n elems = makeArray( elems );\\n return elems;\\n};\\n\\nOutlayer.prototype._manageStamps = function() {\\n if ( !this.stamps || !this.stamps.length ) {\\n return;\\n }\\n\\n this._getBoundingRect();\\n\\n for ( var i=0, len = this.stamps.length; i < len; i++ ) {\\n var stamp = this.stamps[i];\\n this._manageStamp( stamp );\\n }\\n};\\n\\n// update boundingLeft / Top\\nOutlayer.prototype._getBoundingRect = function() {\\n // get bounding rect for container element\\n var boundingRect = this.element.getBoundingClientRect();\\n var size = this.size;\\n this._boundingRect = {\\n left: boundingRect.left + size.paddingLeft + size.borderLeftWidth,\\n top: boundingRect.top + size.paddingTop + size.borderTopWidth,\\n right: boundingRect.right - ( size.paddingRight + size.borderRightWidth ),\\n bottom: boundingRect.bottom - ( size.paddingBottom + size.borderBottomWidth )\\n };\\n};\\n\\n/**\\n * @param {Element} stamp\\n**/\\nOutlayer.prototype._manageStamp = noop;\\n\\n/**\\n * get x/y position of element relative to container element\\n * @param {Element} elem\\n * @returns {Object} offset - has left, top, right, bottom\\n */\\nOutlayer.prototype._getElementOffset = function( elem ) {\\n var boundingRect = elem.getBoundingClientRect();\\n var thisRect = this._boundingRect;\\n var size = getSize( elem );\\n var offset = {\\n left: boundingRect.left - thisRect.left - size.marginLeft,\\n top: boundingRect.top - thisRect.top - size.marginTop,\\n right: thisRect.right - boundingRect.right - size.marginRight,\\n bottom: thisRect.bottom - boundingRect.bottom - size.marginBottom\\n };\\n return offset;\\n};\\n\\n// -------------------------- resize -------------------------- //\\n\\n// enable event handlers for listeners\\n// i.e. resize -> onresize\\nOutlayer.prototype.handleEvent = function( event ) {\\n var method = 'on' + event.type;\\n if ( this[ method ] ) {\\n this[ method ]( event );\\n }\\n};\\n\\n/**\\n * Bind layout to window resizing\\n */\\nOutlayer.prototype.bindResize = function() {\\n // bind just one listener\\n if ( this.isResizeBound ) {\\n return;\\n }\\n eventie.bind( window, 'resize', this );\\n this.isResizeBound = true;\\n};\\n\\n/**\\n * Unbind layout to window resizing\\n */\\nOutlayer.prototype.unbindResize = function() {\\n eventie.unbind( window, 'resize', this );\\n this.isResizeBound = false;\\n};\\n\\n// original debounce by John Hann\\n// http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/\\n\\n// this fires every resize\\nOutlayer.prototype.onresize = function() {\\n if ( this.resizeTimeout ) {\\n clearTimeout( this.resizeTimeout );\\n }\\n\\n var _this = this;\\n function delayed() {\\n _this.resize();\\n delete _this.resizeTimeout;\\n }\\n\\n this.resizeTimeout = setTimeout( delayed, 100 );\\n};\\n\\n// debounced, layout on resize\\nOutlayer.prototype.resize = function() {\\n // don't trigger if size did not change\\n var size = getSize( this.element );\\n // check that this.size and size are there\\n // IE8 triggers resize on body size change, so they might not be\\n var hasSizes = this.size && size;\\n if ( hasSizes && size.innerWidth === this.size.innerWidth ) {\\n return;\\n }\\n\\n this.layout();\\n};\\n\\n\\n// -------------------------- methods -------------------------- //\\n\\n/**\\n * add items to Outlayer instance\\n * @param {Array or NodeList or Element} elems\\n * @returns {Array} items - Outlayer.Items\\n**/\\nOutlayer.prototype.addItems = function( elems ) {\\n var items = this._itemize( elems );\\n // add items to collection\\n if ( items.length ) {\\n this.items = this.items.concat( items );\\n }\\n return items;\\n};\\n\\n/**\\n * Layout newly-appended item elements\\n * @param {Array or NodeList or Element} elems\\n */\\nOutlayer.prototype.appended = function( elems ) {\\n var items = this.addItems( elems );\\n if ( !items.length ) {\\n return;\\n }\\n // layout and reveal just the new items\\n this.layoutItems( items, true );\\n this.reveal( items );\\n};\\n\\n/**\\n * Layout prepended elements\\n * @param {Array or NodeList or Element} elems\\n */\\nOutlayer.prototype.prepended = function( elems ) {\\n var items = this._itemize( elems );\\n if ( !items.length ) {\\n return;\\n }\\n // add items to beginning of collection\\n var previousItems = this.items.slice(0);\\n this.items = items.concat( previousItems );\\n // start new layout\\n this._resetLayout();\\n this._manageStamps();\\n // layout new stuff without transition\\n this.layoutItems( items, true );\\n this.reveal( items );\\n // layout previous items\\n this.layoutItems( previousItems );\\n};\\n\\n/**\\n * reveal a collection of items\\n * @param {Array of Outlayer.Items} items\\n */\\nOutlayer.prototype.reveal = function( items ) {\\n if ( !items || !items.length ) {\\n return;\\n }\\n for ( var i=0, len = items.length; i < len; i++ ) {\\n var item = items[i];\\n item.reveal();\\n }\\n};\\n\\n/**\\n * hide a collection of items\\n * @param {Array of Outlayer.Items} items\\n */\\nOutlayer.prototype.hide = function( items ) {\\n if ( !items || !items.length ) {\\n return;\\n }\\n for ( var i=0, len = items.length; i < len; i++ ) {\\n var item = items[i];\\n item.hide();\\n }\\n};\\n\\n/**\\n * get Outlayer.Item, given an Element\\n * @param {Element} elem\\n * @param {Function} callback\\n * @returns {Outlayer.Item} item\\n */\\nOutlayer.prototype.getItem = function( elem ) {\\n // loop through items to get the one that matches\\n for ( var i=0, len = this.items.length; i < len; i++ ) {\\n var item = this.items[i];\\n if ( item.element === elem ) {\\n // return item\\n return item;\\n }\\n }\\n};\\n\\n/**\\n * get collection of Outlayer.Items, given Elements\\n * @param {Array} elems\\n * @returns {Array} items - Outlayer.Items\\n */\\nOutlayer.prototype.getItems = function( elems ) {\\n if ( !elems || !elems.length ) {\\n return;\\n }\\n var items = [];\\n for ( var i=0, len = elems.length; i < len; i++ ) {\\n var elem = elems[i];\\n var item = this.getItem( elem );\\n if ( item ) {\\n items.push( item );\\n }\\n }\\n\\n return items;\\n};\\n\\n/**\\n * remove element(s) from instance and DOM\\n * @param {Array or NodeList or Element} elems\\n */\\nOutlayer.prototype.remove = function( elems ) {\\n elems = makeArray( elems );\\n\\n var removeItems = this.getItems( elems );\\n // bail if no items to remove\\n if ( !removeItems || !removeItems.length ) {\\n return;\\n }\\n\\n this._itemsOn( removeItems, 'remove', function() {\\n this.emitEvent( 'removeComplete', [ this, removeItems ] );\\n });\\n\\n for ( var i=0, len = removeItems.length; i < len; i++ ) {\\n var item = removeItems[i];\\n item.remove();\\n // remove item from collection\\n removeFrom( item, this.items );\\n }\\n};\\n\\n// ----- destroy ----- //\\n\\n// remove and disable Outlayer instance\\nOutlayer.prototype.destroy = function() {\\n // clean up dynamic styles\\n var style = this.element.style;\\n style.height = '';\\n style.position = '';\\n style.width = '';\\n // destroy items\\n for ( var i=0, len = this.items.length; i < len; i++ ) {\\n var item = this.items[i];\\n item.destroy();\\n }\\n\\n this.unbindResize();\\n\\n delete this.element.outlayerGUID;\\n // remove data for jQuery\\n if ( jQuery ) {\\n jQuery.removeData( this.element, this.settings.namespace );\\n }\\n\\n};\\n\\n// -------------------------- data -------------------------- //\\n\\n/**\\n * get Outlayer instance from element\\n * @param {Element} elem\\n * @returns {Outlayer}\\n */\\nOutlayer.data = function( elem ) {\\n var id = elem && elem.outlayerGUID;\\n return id && instances[ id ];\\n};\\n\\n// -------------------------- -------------------------- //\\n\\n// copy an object on the Outlayer prototype\\n// used in options and settings\\nfunction copyOutlayerProto( obj, property ) {\\n obj.prototype[ property ] = extend( {}, Outlayer.prototype[ property ] );\\n}\\n\\n// -------------------------- create Outlayer class -------------------------- //\\n\\n/**\\n * create a layout class\\n * @param {String} namespace\\n */\\nOutlayer.create = function( namespace, options ) {\\n // sub-class Outlayer\\n function Layout() {\\n Outlayer.apply( this, arguments );\\n }\\n\\n extend( Layout.prototype, Outlayer.prototype );\\n\\n copyOutlayerProto( Layout, 'options' );\\n copyOutlayerProto( Layout, 'settings' );\\n\\n extend( Layout.prototype.options, options );\\n\\n Layout.prototype.settings.namespace = namespace;\\n\\n Layout.data = Outlayer.data;\\n\\n // sub-class Item\\n Layout.Item = function LayoutItem() {\\n Item.apply( this, arguments );\\n };\\n\\n Layout.Item.prototype = new Item();\\n\\n Layout.prototype.settings.item = Layout.Item;\\n\\n // -------------------------- declarative -------------------------- //\\n\\n /**\\n * allow user to initialize Outlayer via .js-namespace class\\n * options are parsed from data-namespace-option attribute\\n */\\n docReady( function() {\\n var dashedNamespace = toDashed( namespace );\\n var elems = document.querySelectorAll( '.js-' + dashedNamespace );\\n var dataAttr = 'data-' + dashedNamespace + '-options';\\n\\n for ( var i=0, len = elems.length; i < len; i++ ) {\\n var elem = elems[i];\\n var attr = elem.getAttribute( dataAttr );\\n var options;\\n try {\\n options = attr && JSON.parse( attr );\\n } catch ( error ) {\\n // log error, do not initialize\\n if ( console ) {\\n console.error( 'Error parsing ' + dataAttr + ' on ' +\\n elem.nodeName.toLowerCase() + ( elem.id ? '#' + elem.id : '' ) + ': ' +\\n error );\\n }\\n continue;\\n }\\n // initialize\\n var instance = new Layout( elem, options );\\n // make available via $().data('layoutname')\\n if ( jQuery ) {\\n jQuery.data( elem, namespace, instance );\\n }\\n }\\n });\\n\\n // -------------------------- jQuery bridge -------------------------- //\\n\\n // make into jQuery plugin\\n if ( jQuery && jQuery.bridget ) {\\n jQuery.bridget( namespace, Layout );\\n }\\n\\n return Layout;\\n};\\n\\n// ----- fin ----- //\\n\\n// back in global\\nOutlayer.Item = Item;\\n\\nreturn Outlayer;\\n\\n}\\n\\n// -------------------------- transport -------------------------- //\\n\\nif ( typeof define === 'function' && define.amd ) {\\n // AMD\\n define( 'outlayer/outlayer',[\\n 'eventie/eventie',\\n 'doc-ready/doc-ready',\\n 'eventEmitter/EventEmitter',\\n 'get-size/get-size',\\n 'matches-selector/matches-selector',\\n './item'\\n ],\\n outlayerDefinition );\\n} else {\\n // browser global\\n window.Outlayer = outlayerDefinition(\\n window.eventie,\\n window.docReady,\\n window.EventEmitter,\\n window.getSize,\\n window.matchesSelector,\\n window.Outlayer.Item\\n );\\n}\\n\\n})( window );\\n\\n/**\\n * Rect\\n * low-level utility class for basic geometry\\n */\\n\\n( function( window ) {\\n\\n\\n\\n// -------------------------- Packery -------------------------- //\\n\\n// global namespace\\nvar Packery = window.Packery = function() {};\\n\\nfunction rectDefinition() {\\n\\n// -------------------------- Rect -------------------------- //\\n\\nfunction Rect( props ) {\\n // extend properties from defaults\\n for ( var prop in Rect.defaults ) {\\n this[ prop ] = Rect.defaults[ prop ];\\n }\\n\\n for ( prop in props ) {\\n this[ prop ] = props[ prop ];\\n }\\n\\n}\\n\\n// make available\\nPackery.Rect = Rect;\\n\\nRect.defaults = {\\n x: 0,\\n y: 0,\\n width: 0,\\n height: 0\\n};\\n\\n/**\\n * Determines whether or not this rectangle wholly encloses another rectangle or point.\\n * @param {Rect} rect\\n * @returns {Boolean}\\n**/\\nRect.prototype.contains = function( rect ) {\\n // points don't have width or height\\n var otherWidth = rect.width || 0;\\n var otherHeight = rect.height || 0;\\n return this.x <= rect.x &&\\n this.y <= rect.y &&\\n this.x + this.width >= rect.x + otherWidth &&\\n this.y + this.height >= rect.y + otherHeight;\\n};\\n\\n/**\\n * Determines whether or not the rectangle intersects with another.\\n * @param {Rect} rect\\n * @returns {Boolean}\\n**/\\nRect.prototype.overlaps = function( rect ) {\\n var thisRight = this.x + this.width;\\n var thisBottom = this.y + this.height;\\n var rectRight = rect.x + rect.width;\\n var rectBottom = rect.y + rect.height;\\n\\n // http://stackoverflow.com/a/306332\\n return this.x < rectRight &&\\n thisRight > rect.x &&\\n this.y < rectBottom &&\\n thisBottom > rect.y;\\n};\\n\\n/**\\n * @param {Rect} rect - the overlapping rect\\n * @returns {Array} freeRects - rects representing the area around the rect\\n**/\\nRect.prototype.getMaximalFreeRects = function( rect ) {\\n\\n // if no intersection, return false\\n if ( !this.overlaps( rect ) ) {\\n return false;\\n }\\n\\n var freeRects = [];\\n var freeRect;\\n\\n var thisRight = this.x + this.width;\\n var thisBottom = this.y + this.height;\\n var rectRight = rect.x + rect.width;\\n var rectBottom = rect.y + rect.height;\\n\\n // top\\n if ( this.y < rect.y ) {\\n freeRect = new Rect({\\n x: this.x,\\n y: this.y,\\n width: this.width,\\n height: rect.y - this.y\\n });\\n freeRects.push( freeRect );\\n }\\n\\n // right\\n if ( thisRight > rectRight ) {\\n freeRect = new Rect({\\n x: rectRight,\\n y: this.y,\\n width: thisRight - rectRight,\\n height: this.height\\n });\\n freeRects.push( freeRect );\\n }\\n\\n // bottom\\n if ( thisBottom > rectBottom ) {\\n freeRect = new Rect({\\n x: this.x,\\n y: rectBottom,\\n width: this.width,\\n height: thisBottom - rectBottom\\n });\\n freeRects.push( freeRect );\\n }\\n\\n // left\\n if ( this.x < rect.x ) {\\n freeRect = new Rect({\\n x: this.x,\\n y: this.y,\\n width: rect.x - this.x,\\n height: this.height\\n });\\n freeRects.push( freeRect );\\n }\\n\\n return freeRects;\\n};\\n\\nRect.prototype.canFit = function( rect ) {\\n return this.width >= rect.width && this.height >= rect.height;\\n};\\n\\nreturn Rect;\\n\\n}\\n\\n// -------------------------- transport -------------------------- //\\n\\nif ( typeof define === 'function' && define.amd ) {\\n // AMD\\n define( 'packery/js/rect',rectDefinition );\\n} else {\\n // browser global\\n window.Packery = window.Packery || {};\\n window.Packery.Rect = rectDefinition();\\n}\\n\\n})( window );\\n\\n/**\\n * Packer\\n * bin-packing algorithm\\n */\\n\\n( function( window ) {\\n\\n\\n\\n// -------------------------- Packer -------------------------- //\\n\\nfunction packerDefinition( Rect ) {\\n\\n/**\\n * @param {Number} width\\n * @param {Number} height\\n * @param {String} sortDirection\\n * topLeft for vertical, leftTop for horizontal\\n */\\nfunction Packer( width, height, sortDirection ) {\\n this.width = width || 0;\\n this.height = height || 0;\\n this.sortDirection = sortDirection || 'downwardLeftToRight';\\n\\n this.reset();\\n}\\n\\nPacker.prototype.reset = function() {\\n this.spaces = [];\\n this.newSpaces = [];\\n\\n var initialSpace = new Rect({\\n x: 0,\\n y: 0,\\n width: this.width,\\n height: this.height\\n });\\n\\n this.spaces.push( initialSpace );\\n // set sorter\\n this.sorter = sorters[ this.sortDirection ] || sorters.downwardLeftToRight;\\n};\\n\\n// change x and y of rect to fit with in Packer's available spaces\\nPacker.prototype.pack = function( rect ) {\\n for ( var i=0, len = this.spaces.length; i < len; i++ ) {\\n var space = this.spaces[i];\\n if ( space.canFit( rect ) ) {\\n this.placeInSpace( rect, space );\\n break;\\n }\\n }\\n};\\n\\nPacker.prototype.placeInSpace = function( rect, space ) {\\n // place rect in space\\n rect.x = space.x;\\n rect.y = space.y;\\n\\n this.placed( rect );\\n};\\n\\n// update spaces with placed rect\\nPacker.prototype.placed = function( rect ) {\\n // update spaces\\n var revisedSpaces = [];\\n for ( var i=0, len = this.spaces.length; i < len; i++ ) {\\n var space = this.spaces[i];\\n var newSpaces = space.getMaximalFreeRects( rect );\\n // add either the original space or the new spaces to the revised spaces\\n if ( newSpaces ) {\\n revisedSpaces.push.apply( revisedSpaces, newSpaces );\\n } else {\\n revisedSpaces.push( space );\\n }\\n }\\n\\n this.spaces = revisedSpaces;\\n\\n // remove redundant spaces\\n Packer.mergeRects( this.spaces );\\n\\n this.spaces.sort( this.sorter );\\n};\\n\\n// -------------------------- utility functions -------------------------- //\\n\\n/**\\n * Remove redundant rectangle from array of rectangles\\n * @param {Array} rects: an array of Rects\\n * @returns {Array} rects: an array of Rects\\n**/\\nPacker.mergeRects = function( rects ) {\\n for ( var i=0, len = rects.length; i < len; i++ ) {\\n var rect = rects[i];\\n // skip over this rect if it was already removed\\n if ( !rect ) {\\n continue;\\n }\\n // clone rects we're testing, remove this rect\\n var compareRects = rects.slice(0);\\n // do not compare with self\\n compareRects.splice( i, 1 );\\n // compare this rect with others\\n var removedCount = 0;\\n for ( var j=0, jLen = compareRects.length; j < jLen; j++ ) {\\n var compareRect = compareRects[j];\\n // if this rect contains another,\\n // remove that rect from test collection\\n var indexAdjust = i > j ? 0 : 1;\\n if ( rect.contains( compareRect ) ) {\\n // console.log( 'current test rects:' + testRects.length, testRects );\\n // console.log( i, j, indexAdjust, rect, compareRect );\\n rects.splice( j + indexAdjust - removedCount, 1 );\\n removedCount++;\\n }\\n }\\n }\\n\\n return rects;\\n};\\n\\n\\n// -------------------------- sorters -------------------------- //\\n\\n// functions for sorting rects in order\\nvar sorters = {\\n // top down, then left to right\\n downwardLeftToRight: function( a, b ) {\\n return a.y - b.y || a.x - b.x;\\n },\\n // left to right, then top down\\n rightwardTopToBottom: function( a, b ) {\\n return a.x - b.x || a.y - b.y;\\n }\\n};\\n\\n\\n// -------------------------- -------------------------- //\\n\\nreturn Packer;\\n\\n}\\n\\n// -------------------------- transport -------------------------- //\\n\\nif ( typeof define === 'function' && define.amd ) {\\n // AMD\\n define( 'packery/js/packer',[ './rect' ], packerDefinition );\\n} else {\\n // browser global\\n var Packery = window.Packery = window.Packery || {};\\n Packery.Packer = packerDefinition( Packery.Rect );\\n}\\n\\n})( window );\\n\\n/**\\n * Packery Item Element\\n**/\\n\\n( function( window ) {\\n\\n\\n\\n// -------------------------- Item -------------------------- //\\n\\nfunction itemDefinition( getStyleProperty, Outlayer, Rect ) {\\n\\nvar transformProperty = getStyleProperty('transform');\\n\\n// sub-class Item\\nvar Item = function PackeryItem() {\\n Outlayer.Item.apply( this, arguments );\\n};\\n\\nItem.prototype = new Outlayer.Item();\\n\\nvar protoCreate = Item.prototype._create;\\nItem.prototype._create = function() {\\n // call default _create logic\\n protoCreate.call( this );\\n this.rect = new Rect();\\n // rect used for placing, in drag or Packery.fit()\\n this.placeRect = new Rect();\\n};\\n\\n// -------------------------- drag -------------------------- //\\n\\nItem.prototype.dragStart = function() {\\n this.getPosition();\\n this.removeTransitionStyles();\\n // remove transform property from transition\\n if ( this.isTransitioning && transformProperty ) {\\n this.element.style[ transformProperty ] = 'none';\\n }\\n this.getSize();\\n // create place rect, used for position when dragged then dropped\\n // or when positioning\\n this.isPlacing = true;\\n this.needsPositioning = false;\\n this.positionPlaceRect( this.position.x, this.position.y );\\n this.isTransitioning = false;\\n this.didDrag = false;\\n};\\n\\n/**\\n * handle item when it is dragged\\n * @param {Number} x - horizontal position of dragged item\\n * @param {Number} y - vertical position of dragged item\\n */\\nItem.prototype.dragMove = function( x, y ) {\\n this.didDrag = true;\\n var packerySize = this.layout.size;\\n x -= packerySize.paddingLeft;\\n y -= packerySize.paddingTop;\\n this.positionPlaceRect( x, y );\\n};\\n\\nItem.prototype.dragStop = function() {\\n this.getPosition();\\n var isDiffX = this.position.x !== this.placeRect.x;\\n var isDiffY = this.position.y !== this.placeRect.y;\\n // set post-drag positioning flag\\n this.needsPositioning = isDiffX || isDiffY;\\n // reset flag\\n this.didDrag = false;\\n};\\n\\n// -------------------------- placing -------------------------- //\\n\\n/**\\n * position a rect that will occupy space in the packer\\n * @param {Number} x\\n * @param {Number} y\\n * @param {Boolean} isMaxYContained\\n */\\nItem.prototype.positionPlaceRect = function( x, y, isMaxYOpen ) {\\n this.placeRect.x = this.getPlaceRectCoord( x, true );\\n this.placeRect.y = this.getPlaceRectCoord( y, false, isMaxYOpen );\\n};\\n\\n/**\\n * get x/y coordinate for place rect\\n * @param {Number} coord - x or y\\n * @param {Boolean} isX\\n * @param {Boolean} isMaxOpen - does not limit value to outer bound\\n * @returns {Number} coord - processed x or y\\n */\\nItem.prototype.getPlaceRectCoord = function( coord, isX, isMaxOpen ) {\\n var measure = isX ? 'Width' : 'Height';\\n var size = this.size[ 'outer' + measure ];\\n var segment = this.layout[ isX ? 'columnWidth' : 'rowHeight' ];\\n var parentSize = this.layout.size[ 'inner' + measure ];\\n\\n // additional parentSize calculations for Y\\n if ( !isX ) {\\n parentSize = Math.max( parentSize, this.layout.maxY );\\n // prevent gutter from bumping up height when non-vertical grid\\n if ( !this.layout.rowHeight ) {\\n parentSize -= this.layout.gutter;\\n }\\n }\\n\\n var max;\\n\\n if ( segment ) {\\n segment += this.layout.gutter;\\n // allow for last column to reach the edge\\n parentSize += isX ? this.layout.gutter : 0;\\n // snap to closest segment\\n coord = Math.round( coord / segment );\\n // contain to outer bound\\n // contain non-growing bound, allow growing bound to grow\\n var mathMethod;\\n if ( this.layout.options.isHorizontal ) {\\n mathMethod = !isX ? 'floor' : 'ceil';\\n } else {\\n mathMethod = isX ? 'floor' : 'ceil';\\n }\\n var maxSegments = Math[ mathMethod ]( parentSize / segment );\\n maxSegments -= Math.ceil( size / segment );\\n max = maxSegments;\\n } else {\\n max = parentSize - size;\\n }\\n\\n coord = isMaxOpen ? coord : Math.min( coord, max );\\n coord *= segment || 1;\\n\\n return Math.max( 0, coord );\\n};\\n\\nItem.prototype.copyPlaceRectPosition = function() {\\n this.rect.x = this.placeRect.x;\\n this.rect.y = this.placeRect.y;\\n};\\n\\nreturn Item;\\n\\n}\\n\\n// -------------------------- transport -------------------------- //\\n\\nif ( typeof define === 'function' && define.amd ) {\\n // AMD\\n define( 'packery/js/item',[\\n 'get-style-property/get-style-property',\\n 'outlayer/outlayer',\\n './rect'\\n ],\\n itemDefinition );\\n} else {\\n // browser global\\n window.Packery.Item = itemDefinition(\\n window.getStyleProperty,\\n window.Outlayer,\\n window.Packery.Rect\\n );\\n}\\n\\n})( window );\\n\\n/*!\\n * Packery v1.2.0\\n * bin-packing layout library\\n * http://packery.metafizzy.co\\n *\\n * Commercial use requires one-time purchase of a commercial license\\n * http://packery.metafizzy.co/license.html\\n *\\n * Non-commercial use is licensed under the GPL v3 License\\n *\\n * Copyright 2013 Metafizzy\\n */\\n\\n( function( window ) {\\n\\n\\n\\n// -------------------------- Packery -------------------------- //\\n\\n// used for AMD definition and requires\\nfunction packeryDefinition( classie, getSize, Outlayer, Rect, Packer, Item ) {\\n\\n// create an Outlayer layout class\\nvar Packery = Outlayer.create('packery');\\nPackery.Item = Packery.prototype.settings.item = Item;\\n\\nPackery.prototype._create = function() {\\n // call super\\n Outlayer.prototype._create.call( this );\\n\\n // initial properties\\n this.packer = new Packer();\\n\\n // Left over from v1.0\\n this.stamp( this.options.stamped );\\n\\n // create drag handlers\\n var _this = this;\\n this.handleDraggabilly = {\\n dragStart: function( draggie ) {\\n _this.itemDragStart( draggie.element );\\n },\\n dragMove: function( draggie ) {\\n _this.itemDragMove( draggie.element, draggie.position.x, draggie.position.y );\\n },\\n dragEnd: function( draggie ) {\\n _this.itemDragEnd( draggie.element );\\n }\\n };\\n\\n this.handleUIDraggable = {\\n start: function handleUIDraggableStart( event ) {\\n _this.itemDragStart( event.currentTarget );\\n },\\n drag: function handleUIDraggableDrag( event, ui ) {\\n _this.itemDragMove( event.currentTarget, ui.position.left, ui.position.top );\\n },\\n stop: function handleUIDraggableStop( event ) {\\n _this.itemDragEnd( event.currentTarget );\\n }\\n };\\n\\n};\\n\\n\\n// ----- init & layout ----- //\\n\\n/**\\n * logic before any new layout\\n */\\nPackery.prototype._resetLayout = function() {\\n this.getSize();\\n\\n this._getMeasurements();\\n\\n // reset packer\\n var packer = this.packer;\\n // packer settings, if horizontal or vertical\\n if ( this.options.isHorizontal ) {\\n packer.width = Number.POSITIVE_INFINITY;\\n packer.height = this.size.innerHeight + this.gutter;\\n packer.sortDirection = 'rightwardTopToBottom';\\n } else {\\n packer.width = this.size.innerWidth + this.gutter;\\n packer.height = Number.POSITIVE_INFINITY;\\n packer.sortDirection = 'downwardLeftToRight';\\n }\\n\\n packer.reset();\\n\\n // layout\\n this.maxY = 0;\\n this.maxX = 0;\\n};\\n\\n/**\\n * update columnWidth, rowHeight, & gutter\\n * @private\\n */\\nPackery.prototype._getMeasurements = function() {\\n this._getMeasurement( 'columnWidth', 'width' );\\n this._getMeasurement( 'rowHeight', 'height' );\\n this._getMeasurement( 'gutter', 'width' );\\n};\\n\\nPackery.prototype._getItemLayoutPosition = function( item ) {\\n this._packItem( item );\\n return item.rect;\\n};\\n\\n\\n/**\\n * layout item in packer\\n * @param {Packery.Item} item\\n */\\nPackery.prototype._packItem = function( item ) {\\n this._setRectSize( item.element, item.rect );\\n // pack the rect in the packer\\n this.packer.pack( item.rect );\\n this._setMaxXY( item.rect );\\n};\\n\\n/**\\n * set max X and Y value, for size of container\\n * @param {Packery.Rect} rect\\n * @private\\n */\\nPackery.prototype._setMaxXY = function( rect ) {\\n this.maxX = Math.max( rect.x + rect.width, this.maxX );\\n this.maxY = Math.max( rect.y + rect.height, this.maxY );\\n};\\n\\n/**\\n * set the width and height of a rect, applying columnWidth and rowHeight\\n * @param {Element} elem\\n * @param {Packery.Rect} rect\\n */\\nPackery.prototype._setRectSize = function( elem, rect ) {\\n var size = getSize( elem );\\n var w = size.outerWidth;\\n var h = size.outerHeight;\\n // size for columnWidth and rowHeight, if available\\n var colW = this.columnWidth + this.gutter;\\n var rowH = this.rowHeight + this.gutter;\\n w = this.columnWidth ? Math.ceil( w / colW ) * colW : w + this.gutter;\\n h = this.rowHeight ? Math.ceil( h / rowH ) * rowH : h + this.gutter;\\n // rect must fit in packer\\n rect.width = Math.min( w, this.packer.width );\\n rect.height = h;\\n};\\n\\nPackery.prototype._getContainerSize = function() {\\n if ( this.options.isHorizontal ) {\\n return {\\n width: this.maxX - this.gutter\\n };\\n } else {\\n return {\\n height: this.maxY - this.gutter\\n };\\n }\\n};\\n\\n\\n// -------------------------- stamp -------------------------- //\\n\\n/**\\n * makes space for element\\n * @param {Element} elem\\n */\\nPackery.prototype._manageStamp = function( elem ) {\\n\\n var item = this.getItem( elem );\\n var rect;\\n if ( item && item.isPlacing ) {\\n rect = item.placeRect;\\n } else {\\n var offset = this._getElementOffset( elem );\\n rect = new Rect({\\n x: this.options.isOriginLeft ? offset.left : offset.right,\\n y: this.options.isOriginTop ? offset.top : offset.bottom\\n });\\n }\\n\\n this._setRectSize( elem, rect );\\n // save its space in the packer\\n this.packer.placed( rect );\\n this._setMaxXY( rect );\\n};\\n\\n// -------------------------- methods -------------------------- //\\n\\n\\nPackery.prototype.sortItemsByPosition = function() {\\n this.items.sort( function( a, b ) {\\n return a.position.y - b.position.y || a.position.x - b.position.x;\\n });\\n};\\n\\n/**\\n * Fit item element in its current position\\n * Packery will position elements around it\\n * useful for expanding elements\\n *\\n * @param {Element} elem\\n * @param {Number} x - horizontal destination position, optional\\n * @param {Number} y - vertical destination position, optional\\n */\\nPackery.prototype.fit = function( elem, x, y ) {\\n var item = this.getItem( elem );\\n if ( !item ) {\\n return;\\n }\\n\\n // prepare internal properties\\n this._getMeasurements();\\n\\n // stamp item to get it out of layout\\n this.stamp( item.element );\\n // required for positionPlaceRect\\n item.getSize();\\n // set placing flag\\n item.isPlacing = true;\\n // fall back to current position for fitting\\n x = x === undefined ? item.rect.x: x;\\n y = y === undefined ? item.rect.y: y;\\n\\n // position it best at its destination\\n item.positionPlaceRect( x, y, true );\\n\\n this._bindFitEvents( item );\\n item.moveTo( item.placeRect.x, item.placeRect.y );\\n // layout everything else\\n this.layout();\\n\\n // return back to regularly scheduled programming\\n this.unstamp( item.element );\\n this.sortItemsByPosition();\\n // un set placing flag, back to normal\\n item.isPlacing = false;\\n // copy place rect position\\n item.copyPlaceRectPosition();\\n};\\n\\n/**\\n * emit event when item is fit and other items are laid out\\n * @param {Packery.Item} item\\n * @private\\n */\\nPackery.prototype._bindFitEvents = function( item ) {\\n var _this = this;\\n var ticks = 0;\\n function tick() {\\n ticks++;\\n if ( ticks !== 2 ) {\\n return;\\n }\\n _this.emitEvent( 'fitComplete', [ _this, item ] );\\n }\\n // when item is laid out\\n item.on( 'layout', function() {\\n tick();\\n return true;\\n });\\n // when all items are laid out\\n this.on( 'layoutComplete', function() {\\n tick();\\n return true;\\n });\\n};\\n\\n// -------------------------- resize -------------------------- //\\n\\n// debounced, layout on resize\\nPackery.prototype.resize = function() {\\n // don't trigger if size did not change\\n var size = getSize( this.element );\\n // check that this.size and size are there\\n // IE8 triggers resize on body size change, so they might not be\\n var hasSizes = this.size && size;\\n var innerSize = this.options.isHorizontal ? 'innerHeight' : 'innerWidth';\\n if ( hasSizes && size[ innerSize ] === this.size[ innerSize ] ) {\\n return;\\n }\\n\\n this.layout();\\n};\\n\\n// -------------------------- drag -------------------------- //\\n\\n/**\\n * handle an item drag start event\\n * @param {Element} elem\\n */\\nPackery.prototype.itemDragStart = function( elem ) {\\n this.stamp( elem );\\n var item = this.getItem( elem );\\n if ( item ) {\\n item.dragStart();\\n }\\n};\\n\\n/**\\n * handle an item drag move event\\n * @param {Element} elem\\n * @param {Number} x - horizontal change in position\\n * @param {Number} y - vertical change in position\\n */\\nPackery.prototype.itemDragMove = function( elem, x, y ) {\\n var item = this.getItem( elem );\\n if ( item ) {\\n item.dragMove( x, y );\\n }\\n\\n // debounce\\n var _this = this;\\n // debounce triggering layout\\n function delayed() {\\n _this.layout();\\n delete _this.dragTimeout;\\n }\\n\\n this.clearDragTimeout();\\n\\n this.dragTimeout = setTimeout( delayed, 40 );\\n};\\n\\nPackery.prototype.clearDragTimeout = function() {\\n if ( this.dragTimeout ) {\\n clearTimeout( this.dragTimeout );\\n }\\n};\\n\\n/**\\n * handle an item drag end event\\n * @param {Element} elem\\n */\\nPackery.prototype.itemDragEnd = function( elem ) {\\n var item = this.getItem( elem );\\n var itemDidDrag;\\n if ( item ) {\\n itemDidDrag = item.didDrag;\\n item.dragStop();\\n }\\n // if elem didn't move, or if it doesn't need positioning\\n // unignore and unstamp and call it a day\\n if ( !item || ( !itemDidDrag && !item.needsPositioning ) ) {\\n this.unstamp( elem );\\n return;\\n }\\n // procced with dragged item\\n\\n classie.add( item.element, 'is-positioning-post-drag' );\\n\\n // save this var, as it could get reset in dragStart\\n var onLayoutComplete = this._getDragEndLayoutComplete( elem, item );\\n\\n if ( item.needsPositioning ) {\\n item.on( 'layout', onLayoutComplete );\\n item.moveTo( item.placeRect.x, item.placeRect.y );\\n } else if ( item ) {\\n // item didn't need placement\\n item.copyPlaceRectPosition();\\n }\\n\\n this.clearDragTimeout();\\n this.on( 'layoutComplete', onLayoutComplete );\\n this.layout();\\n\\n};\\n\\n/**\\n * get drag end callback\\n * @param {Element} elem\\n * @param {Packery.Item} item\\n * @returns {Function} onLayoutComplete\\n */\\nPackery.prototype._getDragEndLayoutComplete = function( elem, item ) {\\n var itemNeedsPositioning = item && item.needsPositioning;\\n var completeCount = 0;\\n var asyncCount = itemNeedsPositioning ? 2 : 1;\\n var _this = this;\\n\\n return function onLayoutComplete() {\\n completeCount++;\\n // don't proceed if not complete\\n if ( completeCount !== asyncCount ) {\\n return true;\\n }\\n // reset item\\n if ( item ) {\\n classie.remove( item.element, 'is-positioning-post-drag' );\\n item.isPlacing = false;\\n item.copyPlaceRectPosition();\\n }\\n\\n _this.unstamp( elem );\\n // only sort when item moved\\n _this.sortItemsByPosition();\\n\\n // emit item drag event now that everything is done\\n if ( itemNeedsPositioning ) {\\n _this.emitEvent( 'dragItemPositioned', [ _this, item ] );\\n }\\n // listen once\\n return true;\\n };\\n};\\n\\n/**\\n * binds Draggabilly events\\n * @param {Draggabilly} draggie\\n */\\nPackery.prototype.bindDraggabillyEvents = function( draggie ) {\\n draggie.on( 'dragStart', this.handleDraggabilly.dragStart );\\n draggie.on( 'dragMove', this.handleDraggabilly.dragMove );\\n draggie.on( 'dragEnd', this.handleDraggabilly.dragEnd );\\n};\\n\\n/**\\n * binds jQuery UI Draggable events\\n * @param {jQuery} $elems\\n */\\nPackery.prototype.bindUIDraggableEvents = function( $elems ) {\\n $elems\\n .on( 'dragstart', this.handleUIDraggable.start )\\n .on( 'drag', this.handleUIDraggable.drag )\\n .on( 'dragstop', this.handleUIDraggable.stop );\\n};\\n\\nPackery.Rect = Rect;\\nPackery.Packer = Packer;\\n\\nreturn Packery;\\n\\n}\\n\\n// -------------------------- transport -------------------------- //\\n\\nif ( typeof define === 'function' && define.amd ) {\\n // AMD\\n define( [\\n 'classie/classie',\\n 'get-size/get-size',\\n 'outlayer/outlayer',\\n 'packery/js/rect',\\n 'packery/js/packer',\\n 'packery/js/item'\\n ],\\n packeryDefinition );\\n} else {\\n // browser global\\n window.Packery = packeryDefinition(\\n window.classie,\\n window.getSize,\\n window.Outlayer,\\n window.Packery.Rect,\\n window.Packery.Packer,\\n window.Packery.Item\\n );\\n}\\n\\n})( window );\\n\"","var isFunction = require('./isFunction'),\n isLength = require('./isLength');\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nmodule.exports = isArrayLike;\n","module.exports = \"/* ===================================================\\n * bootstrap-transition.js v2.3.2\\n * http://getbootstrap.com/2.3.2/javascript.html#transitions\\n * ===================================================\\n * Copyright 2013 Twitter, Inc.\\n *\\n * Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n * you may not use this file except in compliance with the License.\\n * You may obtain a copy of the License at\\n *\\n * http://www.apache.org/licenses/LICENSE-2.0\\n *\\n * Unless required by applicable law or agreed to in writing, software\\n * distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n * See the License for the specific language governing permissions and\\n * limitations under the License.\\n * ========================================================== */\\n\\n\\n!function ($) {\\n\\n \\\"use strict\\\"; // jshint ;_;\\n\\n\\n /* CSS TRANSITION SUPPORT (http://www.modernizr.com/)\\n * ======================================================= */\\n\\n $(function () {\\n\\n $.support.transition = (function () {\\n\\n var transitionEnd = (function () {\\n\\n var el = document.createElement('bootstrap')\\n , transEndEventNames = {\\n 'WebkitTransition' : 'webkitTransitionEnd'\\n , 'MozTransition' : 'transitionend'\\n , 'OTransition' : 'oTransitionEnd otransitionend'\\n , 'transition' : 'transitionend'\\n }\\n , name\\n\\n for (name in transEndEventNames){\\n if (el.style[name] !== undefined) {\\n return transEndEventNames[name]\\n }\\n }\\n\\n }())\\n\\n return transitionEnd && {\\n end: transitionEnd\\n }\\n\\n })()\\n\\n })\\n\\n}(window.jQuery);\"","require(\"!!/tmp/build_3ca1f1fb/node_modules/script-loader/addScript.js\")(require(\"!!/tmp/build_3ca1f1fb/node_modules/raw-loader/index.js!/tmp/build_3ca1f1fb/app/assets/es6/vendor/bootstrap/bootstrap-tab.js\"))","require(\"!!/tmp/build_3ca1f1fb/node_modules/script-loader/addScript.js\")(require(\"!!/tmp/build_3ca1f1fb/node_modules/raw-loader/index.js!/tmp/build_3ca1f1fb/app/assets/es6/vendor/bootstrap/bootstrap-transition.js\"))","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","import * as cookies from './cookies';\n\nexport default function cookiePolicyNotice() {\n const $ck_info = $('#ck_info');\n const dontShowCookieInfo = () => $ck_info.remove();\n const hideCookieInfo = e => {\n e && e.preventDefault();\n $ck_info.removeClass('o-100').css('bottom', '-9em');\n setTimeout($ck_info.remove, 300);\n };\n const showCookieInfo = () => {\n cookies.set('ICMIB.dismiss_ck_info', true, new Date(2022, 1, 1));\n setTimeout(() => {\n $ck_info\n .addClass('o-100')\n .css('bottom', 0)\n .on('click', '.dismiss', hideCookieInfo);\n setTimeout(hideCookieInfo, 30000);\n }, 2000);\n };\n\n cookies.get('ICMIB.dismiss_ck_info') === 'true'\n ? dontShowCookieInfo()\n : showCookieInfo();\n}\n","/*\\\n|*| Adapted from https://developer.mozilla.org/en-US/docs/Web/API/Document/cookie/Simple_document.cookie_framework\n|*| :: cookies.js ::\n|*|\n|*| A complete cookies reader/writer framework with full unicode support.\n|*|\n|*| Revision #3 - July 13th, 2017\n|*|\n|*| https://developer.mozilla.org/en-US/docs/Web/API/document.cookie\n|*| https://developer.mozilla.org/User:fusionchess\n|*| https://github.com/madmurphy/cookies.js\n|*|\n|*| This framework is released under the GNU Public License, version 3 or later.\n|*| http://www.gnu.org/licenses/gpl-3.0-standalone.html\n|*|\n|*| Syntaxes:\n|*| * import * as cookies from './utils/cookies'\n|*| * cookies.set(name, value[, end[, path[, domain[, secure]]]])\n|*| * cookies.get(name)\n|*| * cookies.remove(name[, path[, domain]])\n|*| * cookies.has(name)\n|*| * cookies.keys()\n|*|\n\\*/\n\nexport function get(sKey) {\n if (!sKey) {\n return null;\n }\n return (\n decodeURIComponent(\n document.cookie.replace(\n new RegExp(\n '(?:(?:^|.*;)\\\\s*' +\n encodeURIComponent(sKey).replace(/[\\-\\.\\+\\*]/g, '\\\\$&') +\n '\\\\s*\\\\=\\\\s*([^;]*).*$)|^.*$'\n ),\n '$1'\n )\n ) || null\n );\n}\n\nexport function set(sKey, sValue, vEnd, sPath, sDomain, bSecure) {\n if (!sKey || /^(?:expires|max-age|path|domain|secure)$/i.test(sKey)) {\n return false;\n }\n var sExpires = '';\n if (vEnd) {\n switch (vEnd.constructor) {\n case Number:\n sExpires =\n vEnd === Infinity\n ? '; expires=Fri, 31 Dec 9999 23:59:59 GMT'\n : '; max-age=' + vEnd;\n /*\n Note: Despite officially defined in RFC 6265, the use of `max-age` is not compatible with any\n version of Internet Explorer, Edge and some mobile browsers. Therefore passing a number to\n the end parameter might not work as expected. A possible solution might be to convert the the\n relative time to an absolute time. For instance, replacing the previous line with:\n */\n /*\n sExpires = vEnd === Infinity ? \"; expires=Fri, 31 Dec 9999 23:59:59 GMT\" : \"; expires=\" + (new Date(vEnd * 1e3 + Date.now())).toUTCString();\n */\n break;\n case String:\n sExpires = '; expires=' + vEnd;\n break;\n case Date:\n sExpires = '; expires=' + vEnd.toUTCString();\n break;\n }\n }\n document.cookie =\n encodeURIComponent(sKey) +\n '=' +\n encodeURIComponent(sValue) +\n sExpires +\n (sDomain ? '; domain=' + sDomain : '') +\n (sPath ? '; path=' + sPath : '') +\n (bSecure ? '; secure' : '');\n return true;\n}\n\nexport function remove(sKey, sPath, sDomain) {\n if (!has(sKey)) {\n return false;\n }\n document.cookie =\n encodeURIComponent(sKey) +\n '=; expires=Thu, 01 Jan 1970 00:00:00 GMT' +\n (sDomain ? '; domain=' + sDomain : '') +\n (sPath ? '; path=' + sPath : '');\n return true;\n}\n\nexport function has(sKey) {\n if (!sKey || /^(?:expires|max-age|path|domain|secure)$/i.test(sKey)) {\n return false;\n }\n return new RegExp(\n '(?:^|;\\\\s*)' +\n encodeURIComponent(sKey).replace(/[\\-\\.\\+\\*]/g, '\\\\$&') +\n '\\\\s*\\\\='\n ).test(document.cookie);\n}\n\nexport function keys() {\n var aKeys = document.cookie\n .replace(/((?:^|\\s*;)[^\\=]+)(?=;|$)|^\\s*|\\s*(?:\\=[^;]*)?(?:\\1|$)/g, '')\n .split(/\\s*(?:\\=[^;]*)?;\\s*/);\n for (var nLen = aKeys.length, nIdx = 0; nIdx < nLen; nIdx++) {\n aKeys[nIdx] = decodeURIComponent(aKeys[nIdx]);\n }\n return aKeys;\n}\n","var toFinite = require('./toFinite');\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nmodule.exports = toInteger;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","export function init() {\n // Default handling of certain ajax responses\n registerAjaxCallbacks();\n}\n\n/*\n Ajax Callbacks\n*/\n\nfunction registerAjaxCallbacks() {\n return $.ajaxSetup({\n statusCode: {\n 401: jQuerySessionModal,\n 418: jQuerySessionModal,\n },\n });\n}\n\nexport function initUserRegistrationValidation() {\n import(/* webpackChunkName: \"validations\" */ '../legacyValidations').then(\n () => ICMIB.validations.initUserRegistrationValidation()\n );\n}\n\nfunction jQuerySessionModal(xhr) {\n popoverSessionModal(xhr.responseJSON);\n}\n\nexport function popoverSessionModal(response) {\n const $modal = $('#common_modal');\n if (response) {\n $modal.find('.modal-body').html(response.form);\n $modal.find('.modal-ttl').text(response.title);\n $modal.modal();\n initUserRegistrationValidation();\n initSocialLogin();\n $modal.width(400).css('marginLeft', '-200px');\n }\n}\n\nexport function initSocialLogin() {\n if (window.janrain == null) {\n window.janrain = {};\n }\n if (window.janrain.settings == null) {\n window.janrain.settings = {};\n }\n\n window.janrain.settings.tokenUrl = $('meta[name=\"rpx_token_url\"]').attr(\n 'content'\n );\n window.janrain.settings.custom = true;\n\n const isReady = () => (window.janrain.ready = true);\n\n if (document.addEventListener) {\n document.addEventListener('DOMContentLoaded', isReady, false);\n } else {\n window.attachEvent('onload', isReady);\n }\n\n const e = document.createElement('script');\n e.type = 'text/javascript';\n e.id = 'janrainAuthWidget';\n\n if (document.location.protocol === 'https:') {\n e.src = 'https://rpxnow.com/js/lib/login.icanmakeitbetter.com/engage.js';\n } else {\n e.src =\n 'http://widget-cdn.rpxnow.com/js/lib/login.icanmakeitbetter.com/engage.js';\n }\n\n const s = document.getElementsByTagName('script')[0];\n s.parentNode.insertBefore(e, s);\n\n $('.social_signin_box').on('click', 'button', function() {\n // if this is not a janrain button, but a normal login link\n if (this.tagName === 'A') {\n return true;\n }\n triggerFlow($(this).data('provider'));\n });\n\n let BACKOFF = 10;\n function triggerFlow(provider) {\n if (window.janrain) {\n window.janrain.engage.signin.triggerFlow(provider);\n } else {\n BACKOFF = BACKOFF * 2;\n window.setTimeout(() => triggerFlow(provider), BACKOFF);\n }\n }\n}\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","require(\"!!/tmp/build_3ca1f1fb/node_modules/script-loader/addScript.js\")(require(\"!!/tmp/build_3ca1f1fb/node_modules/raw-loader/index.js!/tmp/build_3ca1f1fb/app/assets/es6/vendor/bootstrap/bootstrap-tooltip.js\"))","var toNumber = require('./toNumber');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0,\n MAX_INTEGER = 1.7976931348623157e+308;\n\n/**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\nfunction toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n}\n\nmodule.exports = toFinite;\n","module.exports = \"/* ============================================================\\n * bootstrap-dropdown.js v2.3.2\\n * http://getbootstrap.com/2.3.2/javascript.html#dropdowns\\n * ============================================================\\n * Copyright 2013 Twitter, Inc.\\n *\\n * Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n * you may not use this file except in compliance with the License.\\n * You may obtain a copy of the License at\\n *\\n * http://www.apache.org/licenses/LICENSE-2.0\\n *\\n * Unless required by applicable law or agreed to in writing, software\\n * distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n * See the License for the specific language governing permissions and\\n * limitations under the License.\\n * ============================================================ */\\n\\n!(function($) {\\n if (ICMIB && ICMIB._IS_DROPDOWN_LOADED_ICMIB) return;\\n if (ICMIB) ICMIB._IS_DROPDOWN_LOADED_ICMIB = true;\\n ('use strict'); // jshint ;_;\\n\\n /* DROPDOWN CLASS DEFINITION\\n * ========================= */\\n\\n var toggle = '[data-toggle=dropdown]',\\n Dropdown = function(element) {\\n var $el = $(element).on('click.dropdown.data-api', this.toggle);\\n $('html').on('click.dropdown.data-api', function() {\\n $el.parent().removeClass('open');\\n });\\n };\\n\\n Dropdown.prototype = {\\n constructor: Dropdown,\\n\\n toggle: function(e) {\\n var $this = $(this),\\n $parent,\\n isActive;\\n\\n if ($this.is('.disabled, :disabled')) return;\\n\\n $parent = getParent($this);\\n\\n isActive = $parent.hasClass('open');\\n\\n clearMenus();\\n\\n if (!isActive) {\\n if ('ontouchstart' in document.documentElement) {\\n // if mobile we we use a backdrop because click events don't delegate\\n $('
')\\n .insertBefore($(this))\\n .on('click', clearMenus);\\n }\\n $parent.toggleClass('open');\\n }\\n\\n $this.focus();\\n\\n return false;\\n },\\n\\n keydown: function(e) {\\n var $this, $items, $active, $parent, isActive, index;\\n\\n if (!/(38|40|27)/.test(e.keyCode)) return;\\n\\n $this = $(this);\\n\\n e.preventDefault();\\n e.stopPropagation();\\n\\n if ($this.is('.disabled, :disabled')) return;\\n\\n $parent = getParent($this);\\n\\n isActive = $parent.hasClass('open');\\n\\n if (!isActive || (isActive && e.keyCode == 27)) {\\n if (e.which == 27) $parent.find(toggle).focus();\\n return $this.click();\\n }\\n\\n $items = $('[role=menu] li:not(.divider):visible a', $parent);\\n\\n if (!$items.length) return;\\n\\n index = $items.index($items.filter(':focus'));\\n\\n if (e.keyCode == 38 && index > 0) index--; // up\\n if (e.keyCode == 40 && index < $items.length - 1) index++; // down\\n if (!~index) index = 0;\\n\\n $items.eq(index).focus();\\n },\\n };\\n\\n function clearMenus() {\\n $('.dropdown-backdrop').remove();\\n $(toggle).each(function() {\\n getParent($(this)).removeClass('open');\\n });\\n }\\n\\n function getParent($this) {\\n var selector = $this.attr('data-target'),\\n $parent;\\n\\n if (!selector) {\\n selector = $this.attr('href');\\n selector =\\n selector &&\\n /#/.test(selector) &&\\n selector.replace(/.*(?=#[^\\\\s]*$)/, ''); //strip for ie7\\n }\\n\\n $parent = selector && $(selector);\\n\\n if (!$parent || !$parent.length) $parent = $this.parent();\\n\\n return $parent;\\n }\\n\\n /* DROPDOWN PLUGIN DEFINITION\\n * ========================== */\\n\\n var old = $.fn.dropdown;\\n\\n $.fn.dropdown = function(option) {\\n return this.each(function() {\\n var $this = $(this),\\n data = $this.data('dropdown');\\n if (!data) $this.data('dropdown', (data = new Dropdown(this)));\\n if (typeof option == 'string') data[option].call($this);\\n });\\n };\\n\\n $.fn.dropdown.Constructor = Dropdown;\\n\\n /* DROPDOWN NO CONFLICT\\n * ==================== */\\n\\n $.fn.dropdown.noConflict = function() {\\n $.fn.dropdown = old;\\n return this;\\n };\\n\\n /* APPLY TO STANDARD DROPDOWN ELEMENTS\\n * =================================== */\\n $(document)\\n .on('click.dropdown.data-api', clearMenus)\\n .on('click.dropdown.data-api', '.dropdown form', function(e) {\\n e.stopPropagation();\\n })\\n .on('click.dropdown.data-api', toggle, Dropdown.prototype.toggle)\\n .on(\\n 'keydown.dropdown.data-api',\\n toggle + ', [role=menu]',\\n Dropdown.prototype.keydown\\n );\\n _IS_DROPDOWN_LOADED_ICMIB = true;\\n})(window.jQuery);\\n\"","require(\"!!/tmp/build_3ca1f1fb/node_modules/script-loader/addScript.js\")(require(\"!!/tmp/build_3ca1f1fb/node_modules/raw-loader/index.js!/tmp/build_3ca1f1fb/app/assets/es6/vendor/bootstrap/bootstrap-collapse.js\"))","module.exports = \"/* =============================================================\\n * bootstrap-collapse.js v2.3.2\\n * http://getbootstrap.com/2.3.2/javascript.html#collapse\\n * =============================================================\\n * Copyright 2013 Twitter, Inc.\\n *\\n * Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n * you may not use this file except in compliance with the License.\\n * You may obtain a copy of the License at\\n *\\n * http://www.apache.org/licenses/LICENSE-2.0\\n *\\n * Unless required by applicable law or agreed to in writing, software\\n * distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n * See the License for the specific language governing permissions and\\n * limitations under the License.\\n * ============================================================ */\\n\\n\\n!function ($) {\\n\\n \\\"use strict\\\"; // jshint ;_;\\n\\n\\n /* COLLAPSE PUBLIC CLASS DEFINITION\\n * ================================ */\\n\\n var Collapse = function (element, options) {\\n this.$element = $(element)\\n this.options = $.extend({}, $.fn.collapse.defaults, options)\\n\\n if (this.options.parent) {\\n this.$parent = $(this.options.parent)\\n }\\n\\n this.options.toggle && this.toggle()\\n }\\n\\n Collapse.prototype = {\\n\\n constructor: Collapse\\n\\n , dimension: function () {\\n var hasWidth = this.$element.hasClass('width')\\n return hasWidth ? 'width' : 'height'\\n }\\n\\n , show: function () {\\n var dimension\\n , scroll\\n , actives\\n , hasData\\n\\n if (this.transitioning || this.$element.hasClass('in')) return\\n\\n dimension = this.dimension()\\n scroll = $.camelCase(['scroll', dimension].join('-'))\\n actives = this.$parent && this.$parent.find('> .accordion-group > .in')\\n\\n if (actives && actives.length) {\\n hasData = actives.data('collapse')\\n if (hasData && hasData.transitioning) return\\n actives.collapse('hide')\\n hasData || actives.data('collapse', null)\\n }\\n\\n this.$element[dimension](0)\\n this.transition('addClass', $.Event('show'), 'shown')\\n $.support.transition && this.$element[dimension](this.$element[0][scroll])\\n }\\n\\n , hide: function () {\\n var dimension\\n if (this.transitioning || !this.$element.hasClass('in')) return\\n dimension = this.dimension()\\n this.reset(this.$element[dimension]())\\n this.transition('removeClass', $.Event('hide'), 'hidden')\\n this.$element[dimension](0)\\n }\\n\\n , reset: function (size) {\\n var dimension = this.dimension()\\n\\n this.$element\\n .removeClass('collapse')\\n [dimension](size || 'auto')\\n [0].offsetWidth\\n\\n this.$element[size !== null ? 'addClass' : 'removeClass']('collapse')\\n\\n return this\\n }\\n\\n , transition: function (method, startEvent, completeEvent) {\\n var that = this\\n , complete = function () {\\n if (startEvent.type == 'show') that.reset()\\n that.transitioning = 0\\n that.$element.trigger(completeEvent)\\n }\\n\\n this.$element.trigger(startEvent)\\n\\n if (startEvent.isDefaultPrevented()) return\\n\\n this.transitioning = 1\\n\\n this.$element[method]('in')\\n\\n $.support.transition && this.$element.hasClass('collapse') ?\\n this.$element.one($.support.transition.end, complete) :\\n complete()\\n }\\n\\n , toggle: function () {\\n this[this.$element.hasClass('in') ? 'hide' : 'show']()\\n }\\n\\n }\\n\\n\\n /* COLLAPSE PLUGIN DEFINITION\\n * ========================== */\\n\\n var old = $.fn.collapse\\n\\n $.fn.collapse = function (option) {\\n return this.each(function () {\\n var $this = $(this)\\n , data = $this.data('collapse')\\n , options = $.extend({}, $.fn.collapse.defaults, $this.data(), typeof option == 'object' && option)\\n if (!data) $this.data('collapse', (data = new Collapse(this, options)))\\n if (typeof option == 'string') data[option]()\\n })\\n }\\n\\n $.fn.collapse.defaults = {\\n toggle: true\\n }\\n\\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.collapse.data-api', '[data-toggle=collapse]', function (e) {\\n var $this = $(this), href\\n , target = $this.attr('data-target')\\n || e.preventDefault()\\n || (href = $this.attr('href')) && href.replace(/.*(?=#[^\\\\s]+$)/, '') //strip for ie7\\n , option = $(target).data('collapse') ? 'toggle' : $this.data()\\n $this[$(target).hasClass('in') ? 'addClass' : 'removeClass']('collapsed')\\n $(target).collapse(option)\\n })\\n\\n}(window.jQuery);\"","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","var baseSlice = require('./_baseSlice'),\n isIterateeCall = require('./_isIterateeCall'),\n toInteger = require('./toInteger');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeCeil = Math.ceil,\n nativeMax = Math.max;\n\n/**\n * Creates an array of elements split into groups the length of `size`.\n * If `array` can't be split evenly, the final chunk will be the remaining\n * elements.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to process.\n * @param {number} [size=1] The length of each chunk\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the new array of chunks.\n * @example\n *\n * _.chunk(['a', 'b', 'c', 'd'], 2);\n * // => [['a', 'b'], ['c', 'd']]\n *\n * _.chunk(['a', 'b', 'c', 'd'], 3);\n * // => [['a', 'b', 'c'], ['d']]\n */\nfunction chunk(array, size, guard) {\n if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {\n size = 1;\n } else {\n size = nativeMax(toInteger(size), 0);\n }\n var length = array == null ? 0 : array.length;\n if (!length || size < 1) {\n return [];\n }\n var index = 0,\n resIndex = 0,\n result = Array(nativeCeil(length / size));\n\n while (index < length) {\n result[resIndex++] = baseSlice(array, index, (index += size));\n }\n return result;\n}\n\nmodule.exports = chunk;\n","var baseGetTag = require('./_baseGetTag'),\n isObject = require('./isObject');\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nmodule.exports = isFunction;\n","/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\nmodule.exports = eq;\n","var eq = require('./eq'),\n isArrayLike = require('./isArrayLike'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject');\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\nmodule.exports = isIterateeCall;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","require(\"!!/tmp/build_3ca1f1fb/node_modules/script-loader/addScript.js\")(require(\"!!/tmp/build_3ca1f1fb/node_modules/raw-loader/index.js!/tmp/build_3ca1f1fb/app/assets/es6/vendor/bootstrap/bootstrap-dropdown.js\"))","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nmodule.exports = isLength;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\nmodule.exports = isIndex;\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","// !(function($) {\n// // Fetch all the bootstrap jquery p[ugins in one bundle, async]\n// function loadBootstrapModules(cb) {\n// require.ensure([], () => {\n// require('../../vendor/bootstrap/bootstrap-transition');\n// require('../../vendor/bootstrap/bootstrap-modal');\n// require('../../vendor/bootstrap/bootstrap-dropdown');\n// require('../../vendor/bootstrap/bootstrap-tab');\n// require('../../vendor/bootstrap/bootstrap-tooltip');\n// require('../../vendor/bootstrap/bootstrap-popover');\n// require('../../vendor/bootstrap/bootstrap-collapse');\n// cb();\n// });\n// }\n\n// // Before the actual plugins are loaded, stub out the methods and have them\n// // wait until the plugins are loaded before passing the args to the full implementation\n// ['modal', 'dropdown', 'tab', 'tooltip', 'popover', 'collapse'].forEach(\n// name => {\n// $.fn[name] = function() {\n// const args = arguments;\n// loadBootstrapModules(() => this[name].apply(this, args));\n// return this;\n// };\n// }\n// );\n// })(window.jQuery);\n\nrequire('../../vendor/bootstrap/bootstrap-transition');\nrequire('../../vendor/bootstrap/bootstrap-modal');\nrequire('../../vendor/bootstrap/bootstrap-dropdown');\nrequire('../../vendor/bootstrap/bootstrap-tab');\nrequire('../../vendor/bootstrap/bootstrap-tooltip');\nrequire('../../vendor/bootstrap/bootstrap-popover');\nrequire('../../vendor/bootstrap/bootstrap-collapse');\nrequire('../../vendor/bootstrap/bootstrap-alert');\n"],"sourceRoot":""}