1(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){"use strict";var ready=require('domready'),menu=require('./menu'),offcanvas=require('./offcanvas'),totop=require('./totop'),$=require('./utils/dollar-extras'),instances={};ready(function(){instances={offcanvas:new offcanvas(),menu:new menu(),$:$,ready:ready};module.exports=window.G5=instances});module.exports=window.G5=instances},{"./menu":2,"./offcanvas":3,"./totop":4,"./utils/dollar-extras":6,"domready":7}],2:[function(require,module,exports){(function(global){(function(){"use strict";var ready=require('domready'),prime=require('prime'),$=require('../utils/dollar-extras'),zen=require('elements/zen'),bind=require('mout/function/bind'),timeout=require('mout/function/timeout'),Bound=require('prime-util/prime/bound'),Options=require('prime-util/prime/options');var hasTouchEvents=('ontouchstart' in window)||window.DocumentTouch&&document instanceof DocumentTouch;var Menu=new prime({mixin:[Bound,Options],options:{selectors:{mainContainer:'.g-main-nav',mobileContainer:'#g-mobilemenu-container',topLevel:'.g-toplevel',rootItems:'> ul > li',parent:'.g-parent',item:'.g-menu-item',dropdown:'.g-dropdown',overlay:'.g-menu-overlay',touchIndicator:'.g-menu-parent-indicator',linkedParent:'[data-g-menuparent]',mobileTarget:'[data-g-mobile-target]'},states:{active:'g-active',inactive:'g-inactive',selected:'g-selected',touchEvents:'g-menu-hastouch'}},constructor:function(options){this.setOptions(options);this.selectors=this.options.selectors;this.states=this.options.states;this.overlay=zen('div'+this.selectors.overlay);this.active=null;this.location=[];var pageSurround=$('#g-page-surround');if(pageSurround){this.overlay.top(pageSurround)} 2var mainContainer=$(this.selectors.mainContainer);if(!mainContainer){return} 3var gHoverExpand=mainContainer.data('g-hover-expand');this.hoverExpand=gHoverExpand===null||gHoverExpand==='true';if(hasTouchEvents||!this.hoverExpand){mainContainer.addClass(this.states.touchEvents)} 4this.attach()},attach:function(){var selectors=this.selectors,main=$(selectors.mainContainer+' '+selectors.item),mobileContainer=$(selectors.mobileContainer),body=$('body');if(!main){return} 5if(this.hoverExpand){main.on('mouseenter',this.bound('mouseenter'));main.on('mouseleave',this.bound('mouseleave'))} 6body.delegate('click',':not('+selectors.mainContainer+') '+selectors.linkedParent+', .g-fullwidth .g-sublevel '+selectors.linkedParent,this.bound('click'));body.delegate('click',':not('+selectors.mainContainer+') a[href]',this.bound('resetAfterClick'));if(hasTouchEvents||!this.hoverExpand){var linkedParent=$(selectors.linkedParent);if(linkedParent){linkedParent.on('touchmove',this.bound('touchmove'));linkedParent.on('touchend',this.bound('touchend'))} 7this.overlay.on('touchend',this.bound('closeAllDropdowns'))} 8if(mobileContainer){var query='only all and (max-width: '+this._calculateBreakpoint((mobileContainer.data('g-menu-breakpoint')||'48rem'))+')',match=matchMedia(query);match.addListener(this.bound('_checkQuery'));this._checkQuery(match)}},detach:function(){},click:function(event){this.touchend(event)},resetAfterClick:function(event){var target=$(event.target);if(target.data('g-menuparent')!==null){return!0} 9this.closeDropdown(event);if(global.G5&&global.G5.offcanvas){G5.offcanvas.close()}},mouseenter:function(event){var element=$(event.target);if(!element.parent(this.options.selectors.mainContainer)){return} 10if(element.parent(this.options.selectors.item)&&!element.parent('.g-standard')){return} 11this.openDropdown(element)},mouseleave:function(event){var element=$(event.target);if(!element.parent(this.options.selectors.mainContainer)){return} 12if(element.parent(this.options.selectors.item)&&!element.parent('.g-standard')){return} 13this.closeDropdown(element)},touchmove:function(event){var target=$(event.target);target.isMoving=!0},touchend:function(event){var selectors=this.selectors,states=this.states;var target=$(event.target),indicator=target.parent(selectors.item).find(selectors.touchIndicator),menuType=target.parent('.g-standard')?'standard':'megamenu',isGoingBack=target.parent('.g-go-back'),parent,isSelected;if(target.isMoving){target.isMoving=!1;return!1} 14target.off('touchmove',this.bound('touchmove'));target.isMoving=!1;if(indicator){target=indicator} 15parent=target.matches(selectors.item)?target:target.parent(selectors.item);isSelected=parent.hasClass(states.selected);if(!parent.find(selectors.dropdown)&&!indicator){return!0} 16event.stopPropagation();if(!indicator||target.matches(selectors.touchIndicator)){event.preventDefault()} 17if(!isSelected){var siblings=parent.siblings();if(siblings){var currentlyOpen=siblings.search(selectors.touchIndicator+' !> * !> '+selectors.item+'.'+states.selected);
17(currentlyOpen||[]).forEach(bind(function(open){this.closeDropdown(open)},this))}} 18if((menuType=='megamenu'||!parent.parent(selectors.mainContainer))&&(parent.find(' > '+selectors.dropdown+', > * > '+selectors.dropdown)||isGoingBack)){var sublevel=target.parent('.g-sublevel')||target.parent('.g-toplevel'),slideout=parent.find('.g-sublevel'),columns=parent.parent('.g-dropdown-column'),blocks;if(sublevel){var isNavMenu=target.parent(selectors.mainContainer);if(!isNavMenu||(isNavMenu&&!sublevel.matches('.g-toplevel'))){this._fixHeights(sublevel,slideout,isGoingBack,isNavMenu)} 19if(!isNavMenu&&columns&&(blocks=columns.search('> .g-grid > .g-block'))){if(blocks.length>1){sublevel=blocks.search('> .g-sublevel')}} 20sublevel[!isSelected?'addClass':'removeClass']('g-slide-out')}} 21this[!isSelected?'openDropdown':'closeDropdown'](parent);if(event.type!=='click'){this.toggleOverlay(target.parent(selectors.mainContainer))}},openDropdown:function(element){element=$(element.target||element);var dropdown=element.find(this.selectors.dropdown);element.addClass(this.states.selected);if(dropdown){dropdown.removeClass(this.states.inactive).addClass(this.states.active)}},closeDropdown:function(element){element=$(element.target||element);var dropdown=element.find(this.selectors.dropdown);element.removeClass(this.states.selected);if(dropdown){var sublevels=dropdown.search('.g-sublevel'),slideouts=dropdown.search('.g-slide-out, .'+this.states.selected),actives=dropdown.search('.'+this.states.active);if(sublevels){sublevels.attribute('style',null)} 22if(slideouts){slideouts.removeClass('g-slide-out').removeClass(this.states.selected)} 23if(actives){actives.removeClass(this.states.active).addClass(this.states.inactive)} 24dropdown.removeClass(this.states.active).addClass(this.states.inactive)}},closeAllDropdowns:function(){var selectors=this.selectors,states=this.states,topLevel=$(selectors.mainContainer+' > .g-toplevel'),roots=topLevel.search(' >'+selectors.item);if(roots){roots.removeClass(states.selected)} 25if(topLevel){var allRoots=topLevel.search('> '+this.options.selectors.item);if(allRoots){allRoots.forEach(this.closeDropdown.bind(this))} 26this.closeDropdown(topLevel)} 27this.toggleOverlay(topLevel)},resetStates:function(menu){if(!menu){return} 28var items=menu.search('.g-toplevel, .g-dropdown-column, .g-dropdown, .g-selected, .g-active, .g-slide-out'),actives=menu.search('.g-active');if(!items){return} 29menu.attribute('style',null).removeClass('g-selected').removeClass('g-slide-out');items.attribute('style',null).removeClass('g-selected').removeClass('g-slide-out');if(actives){actives.removeClass('g-active').addClass('g-inactive')}},toggleOverlay:function(menu){if(!menu){return} 30var shouldOpen=!!menu.find('.g-active, .g-selected');this.overlay[shouldOpen?'addClass':'removeClass']('g-menu-overlay-open');this.overlay[0].style.opacity=shouldOpen?1:0},_fixHeights:function(parent,sublevel,isGoingBack,isNavMenu){if(parent==sublevel){return} 31if(isGoingBack){parent.attribute('style',null)} 32var parents,heights={from:parent[0].getBoundingClientRect(),to:(!isNavMenu?sublevel.parent('.g-dropdown')[0]:sublevel[0]).getBoundingClientRect()},height=Math.max(heights.from.height,heights.to.height);if(isGoingBack){parents=parent.parents('[style^="height"]');(parents||[]).forEach(function(element){element=$(element);if(element.parent('.g-toplevel')){element[0].style.height=heights.from.height+'px'}})} 33if(!isGoingBack){if(heights.from.height<heights.to.height){parent[0].style.height=height+'px';parents=parent.parents('[style^="height"]');(parents||[]).forEach(function(element){element=$(element);if(element.parent('.g-toplevel')){element[0].style.height=height+'px'}})}else if(isNavMenu){sublevel[0].style.height=height+'px'} 34if(!isNavMenu){var maxHeight=height,block=$(sublevel).parent('.g-block:not(.size-100)'),column=block?block.parent('.g-dropdown-column'):null;(sublevel.parents('.g-slide-out, .g-dropdown-column')||parent).forEach(function(slideout){maxHeight=Math.max(height,parseInt(slideout.style.height||0,10))});if(column){column[0].style.height=maxHeight+'px';var blocks=column.search('> .g-grid > .g-block'),diff=maxHeight;blocks.forEach(function(block,i){if((i+1)!=blocks.length){diff-=block.getBoundingClientRect().height}else{$(block).find('.g-sublevel')[0].style.height=diff+'px'}})}else{sublevel[0].style.height=maxHeight+'px'}}}},_calculateBreakpoint:function(value){var digit=parseFloat(value.match(/^\d{1,}/).shift()),unit=value.match(/[a-z]{1,}$/i).shift(),tolerance=unit.match(/r?em/)?-0.062:-1;return(digit+tolerance)+unit},_checkQuery:function(mq){var selectors=this.options.selectors,mobileContainer=$(selectors.mobileContainer),mainContainer=$(selectors.mainContainer+selectors.mobileTarget)||$(selectors.mainContainer),find,dropdowns;if(mq.matches){find=mainContainer.find(selectors.topLevel);if(find){mainContainer.parent('.g-block').addClass('hidden');mobileContainer.parent('.g-block').removeClass('hidden');find.top(mobileContainer)}}else{find=mobileContainer.find(selectors.topLevel);if(find){mobileContainer.parent('.g-block').addClass('hidden');mainContainer.parent('.g-block').removeClass('hidden');find.top(mainContainer)}} 35this.resetStates(find);if(!mq.matches&&(find&&(dropdowns=find.search('[data-g-item-width]')))){dropdowns.forEach(function(dropdown){dropdown=$(dropdown);dropdown[0].style.width=dropdown.data('g-item-width')})}},_debug:function(){}});module.exports=Menu}).call(this)}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"../utils/dollar-extras":6,"domready":7,"elements/zen":36,"mout/function/bind":40,"mout/function/timeout":44,"prime":85,"prime-util/prime/bound":81,"prime-util/prime/options":82}],3:[function(require,module,exports){"use strict";var ready=require('domready'),prime=require('prime'),bind=require('mout/function/bind'),forEach=require('mout/array/forEach'),mapNumber=require('mout/math/map'),clamp=require('mout/math/clamp'),timeout=require('mout/function/timeout'),trim=require('mout/string/trim'),decouple=require('../utils/decouple'),Bound=require('prime-util/prime/bound'),Options=require('prime-util/prime/options'),$=require('elements'),zen=require('elements/zen');var prefix=(function(){var styles=window.getComputedStyle(document.documentElement,''),pre=(Array.prototype.slice.call(styles).join('').match(/-(moz|webkit|ms)-/)||(styles.OLink===''&&['','o']))[1],dom=('WebKit|Moz|MS|O').match(new RegExp('('+pre+')','i'))[1];return{dom:dom,lowercase:pre,css:'-'+pre+'-',js:pre[0].toUpperCase()+pre.substr(1)}})();var hasTouchEvents=('ontouchstart' in window)||window.DocumentTouch&&document instanceof DocumentTouch,isScrolling=!1,scrollTimeout;var Offcanvas=new prime({mixin:[Bound,Options],options:{effect:'ease',duration:300,tolerance:function(padding){return padding/3},padding:0,touch:!0,css3:!0,openClass:'g-offcanvas-open',openingClass:'g-offcanvas-opening',closingClass:'g-offcanvas-closing',overlayClass:'g-nav-overlay'},constructor:function(options){this.setOptions(options);this.attached=!1;this.opening=!1;this.moved=!1;this.dragging=!1;this.opened=!1;this.preventOpen=!1;this.offset={x:{start:0,current:0},y:{start:0,current:0}};this.bodyEl=$('body');this.htmlEl=$('html');this.panel=$('#g-page-surround');this.offcanvas=$('#g-offcanvas');if(!this.panel||!this.offcanvas){return!1} 36var swipe=this.offcanvas.data('g-offcanvas-swipe'),css3=this.offcanvas.data('g-offcanvas-css3');this.setOptions({touch:!!(swipe!==null?parseInt(swipe):1),css3:!!(css3!==null?parseInt(css3):1)});if(!this.options.padding){this.offcanvas[0].style.display='block';var width=this.offcanvas[0].getBoundingClientRect().width;this.offcanvas[0].style.removeProperty('display');this.setOptions({padding:width})} 37this.tolerance=typeof this.options.tolerance=='function'?this.options.tolerance.call(this,this.options.padding):this.options.tolerance;this.htmlEl.addClass('g-offcanvas-'+(this.options.css3?'css3':'css2'));this.attach();this._checkTogglers();return this},attach:function(){this.attached=!0;if(this.options.touch&&hasTouchEvents){this.attachTouchEvents()} 38forEach(['toggle','open','close'],bind(function(mode){this.bodyEl.delegate('click','[data-offcanvas-'+mode+']',this.bound(mode));if(hasTouchEvents){this.bodyEl.delegate('touchend','[data-offcanvas-'+mode+']',this.bound(mode))}},this));this.attachMutationEvent();this.overlay=zen('div[data-offcanvas-close].'+this.options.overlayClass).top(this.panel);return this},attachMutationEvent:function(){this.observer=new MutationObserver(()=>{this._checkTogglers()});this.observer.observe(this.offcanvas[0],{childList:!0,subtree:!0,})},attachTouchEvents:function(){var msPointerSupported=window.navigator.msPointerEnabled,touch={start:msPointerSupported?'MSPointerDown':'touchstart',move:msPointerSupported?'MSPointerMove':'touchmove',end:msPointerSupported?'MSPointerUp':'touchend'};this._scrollBound=decouple(window,'scroll',this.bound('_bodyScroll'));this.bodyEl.on(touch.move,this.bound('_bodyMove'));this.panel.on(touch.start,this.bound('_touchStart'));this.panel.on('touchcancel',this.bound('_touchCancel'));this.panel.on(touch.end,this.bound('_touchEnd'));this.panel.on(touch.move,this.bound('_touchMove'))},detach:function(){this.attached=!1;if(this.options.touch&&hasTouchEvents){this.detachTouchEvents()} 39forEach(['toggle','open','close'],bind(function(mode){this.bodyEl.undelegate('click','[data-offcanvas-'+mode+']',this.bound(mode));if(hasTouchEvents){this.bodyEl.undelegate('touchend','[data-offcanvas-'+mode+']',this.bound(mode))}},this));this.detachMutationEvent();this.overlay.remove();return this},detachMutationEvent:function(){this.observer.disconnect()},detachTouchEvents:function(){var msPointerSupported=window.navigator.msPointerEnabled,touch={start:msPointerSupported?'MSPointerDown':'touchstart',move:msPointerSupported?'MSPointerMove':'touchmove',end:msPointerSupported?'MSPointerUp':'touchend'};window.removeEventListener('scroll',this._scrollBound);this.bodyEl.off(touch.move,this.bound('_bodyMove'));this.panel.off(touch.start,this.bound('_touchStart'));this.panel.off('touchcancel',this.bound('_touchCancel'));this.panel.off(touch.end,this.bound('_touchEnd'));this.panel.off(touch.move,this.bound('_touchMove'))},open:function(event){if(event&&event.type.match(/^touch/i)){event.preventDefault()}else{this.dragging=!1} 40if(this.opened){return this} 41this.htmlEl.addClass(this.options.openClass);this.htmlEl.addClass(this.options.openingClass);this.overlay[0].style.opacity=1;if(this.options.css3){this.panel[0].style[this.getOffcanvasPosition()]='inherit'} 42this._setTransition();this._translateXTo((this.bodyEl.hasClass('g-offcanvas-right')?-1:1)*this.options.padding);this.opened=!0;setTimeout(bind(function(){var panel=this.panel[0];this.htmlEl.removeClass(this.options.openingClass);this.offcanvas.attribute('aria-expanded',!0);$('[data-offcanvas-toggle]').attribute('aria-expanded',!0);
42panel.style.transition=panel.style[prefix.css+'transition']=''},this),this.options.duration);return this},close:function(event,element){if(event&&event.type.match(/^touch/i)){event.preventDefault()}else{this.dragging=!1} 43element=element||window;if(!this.opened&&!this.opening){return this} 44if(this.panel!==element&&this.dragging){return!1} 45this.htmlEl.addClass(this.options.closingClass);this.overlay[0].style.opacity=0;this._setTransition();this._translateXTo(0);this.opened=!1;this.offcanvas.attribute('aria-expanded',!1);$('[data-offcanvas-toggle]').attribute('aria-expanded',!1);setTimeout(bind(function(){var panel=this.panel[0];this.htmlEl.removeClass(this.options.openClass);this.htmlEl.removeClass(this.options.closingClass);panel.style.transition=panel.style[prefix.css+'transition']='';panel.style.transform=panel.style[prefix.css+'transform']='';panel.style[this.getOffcanvasPosition()]=''},this),this.options.duration);return this},toggle:function(event,element){if(event&&event.type.match(/^touch/i)){event.preventDefault()}else{this.dragging=!1} 46return this[this.opened?'close':'open'](event,element)},getOffcanvasPosition:function(){return this.bodyEl.hasClass('g-offcanvas-right')?'right':'left'},_setTransition:function(){var panel=this.panel[0];if(this.options.css3){panel.style[prefix.css+'transition']=panel.style.transition=prefix.css+'transform '+this.options.duration+'ms '+this.options.effect}else{panel.style[prefix.css+'transition']=panel.style.transition='left '+this.options.duration+'ms '+this.options.effect+', right '+this.options.duration+'ms '+this.options.effect}},_translateXTo:function(x){var panel=this.panel[0],placement=this.getOffcanvasPosition();this.offset.x.current=x;if(this.options.css3){panel.style[prefix.css+'transform']=panel.style.transform='translate3d('+x+'px, 0, 0)'}else{panel.style[placement]=Math.abs(x)+'px'}},_bodyScroll:function(){if(!this.moved){clearTimeout(scrollTimeout);isScrolling=!0;scrollTimeout=setTimeout(function(){isScrolling=!1},250)}},_bodyMove:function(){if(this.moved){event.preventDefault()} 47this.dragging=!0;return!1},_touchStart:function(event){if(!event.touches){return} 48this.moved=!1;this.opening=!1;this.dragging=!1;this.offset.x.start=event.touches[0].pageX;this.offset.y.start=event.touches[0].pageY;this.preventOpen=(!this.opened&&this.offcanvas[0].clientWidth!==0)},_touchCancel:function(){this.moved=!1;this.opening=!1},_touchMove:function(event){if(isScrolling||this.preventOpen||!event.touches){return} 49if(this.options.css3){this.panel[0].style[this.getOffcanvasPosition()]='inherit'} 50var placement=this.getOffcanvasPosition(),diffX=clamp(event.touches[0].clientX-this.offset.x.start,-this.options.padding,this.options.padding),translateX=this.offset.x.current=diffX,diffY=Math.abs(event.touches[0].pageY-this.offset.y.start),offset=placement=='right'?-1:1,overlayOpacity;if(Math.abs(translateX)>this.options.padding){return} 51if(diffY>5&&!this.moved){return} 52if(Math.abs(diffX)>0){this.opening=!0;if(placement=='left'&&(this.opened&&diffX>0||!this.opened&&diffX<0)){return} 53if(placement=='right'&&(this.opened&&diffX<0||!this.opened&&diffX>0)){return} 54if(!this.moved&&!this.htmlEl.hasClass(this.options.openClass)){this.htmlEl.addClass(this.options.openClass)} 55if((placement=='left'&&diffX<=0)||(placement=='right'&&diffX>=0)){translateX=diffX+(offset*this.options.padding);this.opening=!1} 56overlayOpacity=mapNumber(Math.abs(translateX),0,this.options.padding,0,1);this.overlay[0].style.opacity=overlayOpacity;if(this.options.css3){this.panel[0].style[prefix.css+'transform']=this.panel[0].style.transform='translate3d('+translateX+'px, 0, 0)'}else{this.panel[0].style[placement]=Math.abs(translateX)+'px'} 57this.moved=!0}},_touchEnd:function(event){if(this.moved){var tolerance=Math.abs(this.offset.x.current)>this.tolerance,placement=this.bodyEl.hasClass('g-offcanvas-right')?!0:!1,direction=!placement?(this.offset.x.current<0):(this.offset.x.current>0);this.opening=tolerance?!direction:direction;this.opened=!this.opening;this[this.opening?'open':'close'](event,this.panel)} 58this.moved=!1;return!0},_checkTogglers:function(mutator){var togglers=$('[data-offcanvas-toggle], [data-offcanvas-open], [data-offcanvas-close]'),mobileContainer=$('#g-mobilemenu-container'),blocks,mCtext;if(!togglers||(mutator&&((mutator.target||mutator.srcElement)!==mobileContainer[0]))){return} 59if(this.opened){this.close()} 60timeout(function(){blocks=this.offcanvas.search('.g-block');mCtext=mobileContainer?mobileContainer.text().length:0;var shouldCollapse=(blocks&&blocks.length===1)&&mobileContainer&&(!trim(this.offcanvas.text()).length&&!blocks.find('.g-menu-item'));togglers[shouldCollapse?'addClass':'removeClass']('g-offcanvas-hide');if(mobileContainer){mobileContainer.parent('.g-block')[!mCtext?'addClass':'removeClass']('hidden')} 61if(!shouldCollapse&&!this.attached){this.attach()}else if(shouldCollapse&&this.attached){this.detach();this.attachMutationEvent()}},0,this)}});module.exports=Offcanvas},{"../utils/decouple":5,"domready":7,"elements":12,"elements/zen":36,"mout/array/forEach":37,"mout/function/bind":40,"mout/function/timeout":44,"mout/math/clamp":49,"mout/math/map":51,"mout/string/trim":60,"prime":85,"prime-util/prime/bound":81,"prime-util/prime/options":82}],4:[function(require,module,exports){"use strict";var ready=require('domready'),$=require('../utils/dollar-extras');var timeOut,scrollToTop=function(){if(document.body.scrollTop!=0||document.documentElement.scrollTop!=0){window.scrollBy(0,-50);timeOut=setTimeout(scrollToTop,10)}else{clearTimeout(timeOut)}};ready(function(){var totop=$('#g-totop');if(!totop){return} 62totop.on('click',function(e){e.preventDefault();scrollToTop()})});module.exports={}},{"../utils/dollar-extras":6,"domready":7}],5:[function(require,module,exports){'use strict';var rAF=(function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(callback){window.setTimeout(callback,1000/60)}}());var decouple=function(element,event,callback){var evt,tracking=!1;element=element[0]||element;var capture=function(e){evt=e;track()};var track=function(){if(!tracking){rAF(update);tracking=!0}};var update=function(){callback.call(element,evt);tracking=!1};try{element.addEventListener(event,capture,!1)}catch(e){} 63return capture};module.exports=decouple},{}],6:[function(require,module,exports){"use strict";var $=require('elements'),map=require('mout/array/map'),slick=require('slick');var walk=function(combinator,method){return function(expression){var parts=slick.parse(expression||"*");
63expression=map(parts,function(part){return combinator+" "+part}).join(', ');return this[method](expression)}};$.implement({sibling:walk('++','find'),siblings:walk('~~','search')});module.exports=$},{"elements":12,"mout/array/map":38,"slick":97}],7:[function(require,module,exports){ 64/*! 65 * domready (c) Dustin Diaz 2014 - License MIT 66 */ 67!function(name,definition){if(typeof module!='undefined')module.exports=definition() 68else if(typeof define=='function'&&typeof define.amd=='object')define(definition) 69else this[name]=definition()}('domready',function(){var fns=[],listener,doc=document,hack=doc.documentElement.doScroll,domContentLoaded='DOMContentLoaded',loaded=(hack?/^loaded|^c/:/^loaded|^i|^c/).test(doc.readyState) 70if(!loaded) 71doc.addEventListener(domContentLoaded,listener=function(){doc.removeEventListener(domContentLoaded,listener) 72loaded=1 73while(listener=fns.shift())listener()}) 74return function(fn){loaded?setTimeout(fn,0):fns.push(fn)}})},{}],8:[function(require,module,exports){"use strict" 75var $=require("./base") 76var trim=require("mout/string/trim"),forEach=require("mout/array/forEach"),filter=require("mout/array/filter"),indexOf=require("mout/array/indexOf") 77$.implement({setAttribute:function(name,value){return this.forEach(function(node){node.setAttribute(name,value)})},getAttribute:function(name){var attr=this[0].getAttributeNode(name) 78return(attr&&attr.specified)?attr.value:null},hasAttribute:function(name){var node=this[0] 79if(node.hasAttribute)return node.hasAttribute(name) 80var attr=node.getAttributeNode(name) 81return!!(attr&&attr.specified)},removeAttribute:function(name){return this.forEach(function(node){var attr=node.getAttributeNode(name) 82if(attr)node.removeAttributeNode(attr)})}}) 83var accessors={} 84forEach(["type","value","name","href","title","id"],function(name){accessors[name]=function(value){return(value!==undefined)?this.forEach(function(node){node[name]=value}):this[0][name]}}) 85forEach(["checked","disabled","selected"],function(name){accessors[name]=function(value){return(value!==undefined)?this.forEach(function(node){node[name]=!!value}):!!this[0][name]}}) 86var classes=function(className){var classNames=trim(className).replace(/\s+/g," ").split(" "),uniques={} 87return filter(classNames,function(className){if(className!==""&&!uniques[className])return uniques[className]=className}).sort()} 88accessors.className=function(className){return(className!==undefined)?this.forEach(function(node){node.className=classes(className).join(" ")}):classes(this[0].className).join(" ")} 89$.implement({attribute:function(name,value){var accessor=accessors[name] 90if(accessor)return accessor.call(this,value) 91if(value!=null)return this.setAttribute(name,value) 92if(value===null)return this.removeAttribute(name) 93if(value===undefined)return this.getAttribute(name)}}) 94$.implement(accessors) 95$.implement({check:function(){return this.checked(!0)},uncheck:function(){return this.checked(!1)},disable:function(){return this.disabled(!0)},enable:function(){return this.disabled(!1)},select:function(){return this.selected(!0)},deselect:function(){return this.selected(!1)}}) 96$.implement({classNames:function(){return classes(this[0].className)},hasClass:function(className){return indexOf(this.classNames(),className)>-1},addClass:function(className){return this.forEach(function(node){var nodeClassName=node.className 97var classNames=classes(nodeClassName+" "+className).join(" ") 98if(nodeClassName!==classNames)node.className=classNames})},removeClass:function(className){return this.forEach(function(node){var classNames=classes(node.className) 99forEach(classes(className),function(className){var index=indexOf(classNames,className) 100if(index>-1)classNames.splice(index,1)}) 101node.className=classNames.join(" ")})},toggleClass:function(className,force){var add=force!==undefined?force:!this.hasClass(className) 102if(add) 103this.addClass(className) 104else this.removeClass(className) 105return!!add}}) 106$.prototype.toString=function(){var tag=this.tag(),id=this.id(),classes=this.classNames() 107var str=tag 108if(id)str+='#'+id 109if(classes.length)str+='.'+classes.join(".") 110return str} 111var textProperty=(document.createElement('div').textContent==null)?'innerText':'textContent' 112$.implement({tag:function(){return this[0].tagName.toLowerCase()}
112,html:function(html){return(html!==undefined)?this.forEach(function(node){node.innerHTML=html}):this[0].innerHTML},text:function(text){return(text!==undefined)?this.forEach(function(node){node[textProperty]=text}):this[0][textProperty]},data:function(key,value){switch(value){case undefined:return this.getAttribute("data-"+key) 113case null:return this.removeAttribute("data-"+key) 114default:return this.setAttribute("data-"+key,value)}}}) 115module.exports=$},{"./base":9,"mout/array/filter":15,"mout/array/forEach":16,"mout/array/indexOf":17,"mout/string/trim":34}],9:[function(require,module,exports){"use strict" 116var prime=require("prime") 117var forEach=require("mout/array/forEach"),map=require("mout/array/map"),filter=require("mout/array/filter"),every=require("mout/array/every"),some=require("mout/array/some") 118var index=0,__dc=document.__counter,counter=document.__counter=(__dc?parseInt(__dc,36)+1:0).toString(36),key="uid:"+counter 119var uniqueID=function(n){if(n===window)return"window" 120if(n===document)return"document" 121if(n===document.documentElement)return"html" 122return n[key]||(n[key]=(index++).toString(36))} 123var instances={} 124var $=prime({constructor:function $(n,context){if(n==null)return(this&&this.constructor===$)?new Elements:null 125var self,uid 126if(n.constructor!==Elements){self=new Elements 127if(typeof n==="string"){if(!self.search)return null 128self[self.length++]=context||document 129return self.search(n)} 130if(n.nodeType||n===window){self[self.length++]=n}else if(n.length){var uniques={} 131for(var i=0,l=n.length;i<l;i++){var nodes=$(n[i],context) 132if(nodes&&nodes.length)for(var j=0,k=nodes.length;j<k;j++){var node=nodes[j] 133uid=uniqueID(node) 134if(!uniques[uid]){self[self.length++]=node 135uniques[uid]=!0}}}}}else{self=n} 136if(!self.length)return null 137if(self.length===1){uid=uniqueID(self[0]) 138return instances[uid]||(instances[uid]=self)} 139return self}}) 140var Elements=prime({inherits:$,constructor:function Elements(){this.length=0},unlink:function(){return this.map(function(node){delete instances[uniqueID(node)] 141return node})}
141,forEach:function(method,context){forEach(this,method,context) 142return this},map:function(method,context){return map(this,method,context)},filter:function(method,context){return filter(this,method,context)},every:function(method,context){return every(this,method,context)},some:function(method,context){return some(this,method,context)}}) 143module.exports=$},{"mout/array/every":14,"mout/array/filter":15,"mout/array/forEach":16,"mout/array/map":18,"mout/array/some":19,"prime":85}],10:[function(require,module,exports){"use strict" 144var Map=require("prime/map") 145var $=require("./events") 146require('./traversal') 147$.implement({delegate:function(event,selector,handle,useCapture){return this.forEach(function(node){var self=$(node) 148var delegation=self._delegation||(self._delegation={}),events=delegation[event]||(delegation[event]={}),map=(events[selector]||(events[selector]=new Map)) 149if(map.get(handle))return 150var action=function(e){var target=$(e.target||e.srcElement),match=target.matches(selector)?target:target.parent(selector) 151var res 152if(match)res=handle.call(self,e,match) 153return res} 154map.set(handle,action) 155self.on(event,action,useCapture)})},undelegate:function(event,selector,handle,useCapture){return this.forEach(function(node){var self=$(node),delegation,events,map 156if(!(delegation=self._delegation)||!(events=delegation[event])||!(map=events[selector]))return;var action=map.get(handle) 157if(action){self.off(event,action,useCapture) 158map.remove(action) 159if(!map.count())delete events[selector] 160var e1=!0,e2=!0,x 161for(x in events){e1=!1 162break} 163if(e1)delete delegation[event] 164for(x in delegation){e2=!1 165break} 166if(e2)delete self._delegation}})}}) 167module.exports=$},{"./events":11,"./traversal":35,"prime/map":86}],11:[function(require,module,exports){"use strict" 168var Emitter=require("prime/emitter") 169var $=require("./base") 170var html=document.documentElement 171var addEventListener=html.addEventListener?function(node,event,handle,useCapture){node.addEventListener(event,handle,useCapture||!1) 172return handle}:function(node,event,handle){node.attachEvent('on'+event,handle) 173return handle} 174var removeEventListener=html.removeEventListener?function(node,event,handle,useCapture){node.removeEventListener(event,handle,useCapture||!1)}:function(node,event,handle){node.detachEvent("on"+event,handle)} 175$.implement({on:function(event,handle,useCapture){return this.forEach(function(node){var self=$(node) 176var internalEvent=event+(useCapture?":capture":"") 177Emitter.prototype.on.call(self,internalEvent,handle) 178var domListeners=self._domListeners||(self._domListeners={}) 179if(!domListeners[internalEvent])domListeners[internalEvent]=addEventListener(node,event,function(e){Emitter.prototype.emit.call(self,internalEvent,e||window.event,Emitter.EMIT_SYNC)},useCapture)})},off:function(event,handle,useCapture){return this.forEach(function(node){var self=$(node) 180var internalEvent=event+(useCapture?":capture":"") 181var domListeners=self._domListeners,domEvent,listeners=self._listeners,events 182if(domListeners&&(domEvent=domListeners[internalEvent])&&listeners&&(events=listeners[internalEvent])){Emitter.prototype.off.call(self,internalEvent,handle) 183if(!self._listeners||!self._listeners[event]){removeEventListener(node,event,domEvent) 184delete domListeners[event] 185for(var l in domListeners)return 186delete self._domListeners}}})},emit:function(){var args=arguments 187return this.forEach(function(node){Emitter.prototype.emit.apply($(node),args)})}}) 188module.exports=$},{"./base":9,"prime/emitter":84}],12:[function(require,module,exports){"use strict" 189var $=require("./base") 190require("./attributes") 191require("./events") 192require("./insertion") 193require("./traversal") 194require("./delegation") 195module.exports=$},{"./attributes":8,"./base":9,"./delegation":10,"./events":11,"./insertion":13,"./traversal":35}],13:[function(require,module,exports){"use strict" 196var $=require("./base") 197$.implement({appendChild:function(child){this[0].appendChild($(child)[0]) 198return this},insertBefore:function(child,ref){this[0].insertBefore($(child)[0],$(ref)[0]) 199return this},removeChild:function(child){this[0].removeChild($(child)[0]) 200return this},replaceChild:function(child,ref){this[0].replaceChild($(child)[0],$(ref)[0]) 201return this}}) 202$.implement({before:function(element){element=$(element)[0] 203var parent=element.parentNode 204if(parent)this.forEach(function(node){parent.insertBefore(node,element)}) 205return this},after:function(element){element=$(element)[0] 206var parent=element.parentNode 207if(parent)this.forEach(function(node){parent.insertBefore(node,element.nextSibling)}) 208return this},bottom:function(element){element=$(element)[0] 209return this.forEach(function(node){element.appendChild(node)}
209)},top:function(element){element=$(element)[0] 210return this.forEach(function(node){element.insertBefore(node,element.firstChild)})}}) 211$.implement({insert:$.prototype.bottom,remove:function(){return this.forEach(function(node){var parent=node.parentNode 212if(parent)parent.removeChild(node)})},replace:function(element){element=$(element)[0] 213element.parentNode.replaceChild(this[0],element) 214return this}}) 215module.exports=$},{"./base":9}],14:[function(require,module,exports){var makeIterator=require('../function/makeIterator_');function every(arr,callback,thisObj){callback=makeIterator(callback,thisObj);var result=!0;if(arr==null){return result} 216var i=-1,len=arr.length;while(++i<len){if(!callback(arr[i],i,arr)){result=!1;break}} 217return result} 218module.exports=every},{"../function/makeIterator_":21}],15:[function(require,module,exports){var makeIterator=require('../function/makeIterator_');function filter(arr,callback,thisObj){callback=makeIterator(callback,thisObj);var results=[];if(arr==null){return results} 219var i=-1,len=arr.length,value;while(++i<len){value=arr[i];if(callback(value,i,arr)){results.push(value)}} 220return results} 221module.exports=filter},{"../function/makeIterator_":21}],16:[function(require,module,exports){function forEach(arr,callback,thisObj){if(arr==null){return} 222var i=-1,len=arr.length;while(++i<len){if(callback.call(thisObj,arr[i],i,arr)===!1){break}}} 223module.exports=forEach},{}],17:[function(require,module,exports){function indexOf(arr,item,fromIndex){fromIndex=fromIndex||0;if(arr==null){return-1} 224var len=arr.length,i=fromIndex<0?len+fromIndex:fromIndex;while(i<len){if(arr[i]===item){return i} 225i++} 226return-1} 227module.exports=indexOf},{}],18:[function(require,module,exports){var makeIterator=require('../function/makeIterator_');function map(arr,callback,thisObj){callback=makeIterator(callback,thisObj);var results=[];if(arr==null){return results} 228var i=-1,len=arr.length;while(++i<len){results[i]=callback(arr[i],i,arr)} 229return results} 230module.exports=map},{"../function/makeIterator_":21}],19:[function(require,module,exports){var makeIterator=require('../function/makeIterator_');function some(arr,callback,thisObj){callback=makeIterator(callback,thisObj);var result=!1;if(arr==null){return result} 231var i=-1,len=arr.length;while(++i<len){if(callback(arr[i],i,arr)){result=!0;break}} 232return result} 233module.exports=some},{"../function/makeIterator_":21}],20:[function(require,module,exports){function identity(val){return val} 234module.exports=identity},{}],21:[function(require,module,exports){var identity=require('./identity');var prop=require('./prop');var deepMatches=require('../object/deepMatches');function makeIterator(src,thisObj){if(src==null){return identity} 235switch(typeof src){case 'function':return(typeof thisObj!=='undefined')?function(val,i,arr){return src.call(thisObj,val,i,arr)}:src;case 'object':return function(val){return deepMatches(val,src)};case 'string':case 'number':return prop(src)}} 236module.exports=makeIterator},{"../object/deepMatches":27,"./identity":20,"./prop":22}],22:[function(require,module,exports){function prop(name){return function(obj){return obj[name]}} 237module.exports=prop},{}],23:[function(require,module,exports){var isKind=require('./isKind');var isArray=Array.isArray||function(val){return isKind(val,'Array')};module.exports=isArray},{"./isKind":24}],24:[function(require,module,exports){var kindOf=require('./kindOf');function isKind(val,kind){return kindOf(val)===kind} 238module.exports=isKind},{"./kindOf":25}],25:[function(require,module,exports){var _rKind=/^\[object (.*)\]$/,_toString=Object.prototype.toString,UNDEF;function kindOf(val){if(val===null){return'Null'}else if(val===UNDEF){return'Undefined'}else{return _rKind.exec(_toString.call(val))[1]}} 239module.exports=kindOf},{}],26:[function(require,module,exports){function toString(val){return val==null?'':val.toString()} 240module.exports=toString},{}],27:[function(require,module,exports){var forOwn=require('./forOwn');var isArray=require('../lang/isArray');function containsMatch(array,pattern){var i=-1,length=array.length;while(++i<length){if(deepMatches(array[i],pattern)){return!0}} 241return!1} 242function matchArray(target,pattern){var i=-1,patternLength=pattern.length;while(++i<patternLength){if(!containsMatch(target,pattern[i])){return!1}} 243return!0} 244function matchObject(target,pattern){var result=!0;forOwn(pattern,function(val,key){if(!deepMatches(target[key],val)){return(result=!1)}});return result} 245function deepMatches(target,pattern){if(target&&typeof target==='object'){if(isArray(target)&&isArray(pattern)){return matchArray(target,pattern)}else{return matchObject(target,pattern)}}else{return target===pattern}} 246module.exports=deepMatches},{"../lang/isArray":23,"./forOwn":29}],28:[function(require,module,exports){var hasOwn=require('./hasOwn');var _hasDontEnumBug,_dontEnums;
246function checkDontEnum(){_dontEnums=['toString','toLocaleString','valueOf','hasOwnProperty','isPrototypeOf','propertyIsEnumerable','constructor'];_hasDontEnumBug=!0;for(var key in{'toString':null}){_hasDontEnumBug=!1}} 247function forIn(obj,fn,thisObj){var key,i=0;if(_hasDontEnumBug==null)checkDontEnum();for(key in obj){if(exec(fn,obj,key,thisObj)===!1){break}} 248if(_hasDontEnumBug){var ctor=obj.constructor,isProto=!!ctor&&obj===ctor.prototype;while(key=_dontEnums[i++]){if((key!=='constructor'||(!isProto&&hasOwn(obj,key)))&&obj[key]!==Object.prototype[key]){if(exec(fn,obj,key,thisObj)===!1){break}}}}} 249function exec(fn,obj,key,thisObj){return fn.call(thisObj,obj[key],key,obj)} 250module.exports=forIn},{"./hasOwn":30}],29:[function(require,module,exports){var hasOwn=require('./hasOwn');var forIn=require('./forIn');function forOwn(obj,fn,thisObj){forIn(obj,function(val,key){if(hasOwn(obj,key)){return fn.call(thisObj,obj[key],key,obj)}})} 251module.exports=forOwn},{"./forIn":28,"./hasOwn":30}],30:[function(require,module,exports){function hasOwn(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)} 252module.exports=hasOwn},{}],31:[function(require,module,exports){module.exports=[' ','\n','\r','\t','\f','\v','\u00A0','\u1680','\u180E','\u2000','\u2001','\u2002','\u2003','\u2004','\u2005','\u2006','\u2007','\u2008','\u2009','\u200A','\u2028','\u2029','\u202F','\u205F','\u3000']},{}],32:[function(require,module,exports){var toString=require('../lang/toString');var WHITE_SPACES=require('./WHITE_SPACES');function ltrim(str,chars){str=toString(str);chars=chars||WHITE_SPACES;var start=0,len=str.length,charLen=chars.length,found=!0,i,c;while(found&&start<len){found=!1;i=-1;c=str.charAt(start);while(++i<charLen){if(c===chars[i]){found=!0;start++;break}}} 253return(start>=len)?'':str.substr(start,len)} 254module.exports=ltrim},{"../lang/toString":26,"./WHITE_SPACES":31}],33:[function(require,module,exports){var toString=require('../lang/toString');var WHITE_SPACES=require('./WHITE_SPACES');function rtrim(str,chars){str=toString(str);chars=chars||WHITE_SPACES;var end=str.length-1,charLen=chars.length,found=!0,i,c;while(found&&end>=0){found=!1;i=-1;c=str.charAt(end);while(++i<charLen){if(c===chars[i]){found=!0;end--;break}}} 255return(end>=0)?str.substring(0,end+1):''} 256module.exports=rtrim},{"../lang/toString":26,"./WHITE_SPACES":31}],34:[function(require,module,exports){var toString=require('../lang/toString');var WHITE_SPACES=require('./WHITE_SPACES');var ltrim=require('./ltrim');var rtrim=require('./rtrim');function trim(str,chars){str=toString(str);chars=chars||WHITE_SPACES;return ltrim(rtrim(str,chars),chars)} 257module.exports=trim},{"../lang/toString":26,"./WHITE_SPACES":31,"./ltrim":32,"./rtrim":33}],35:[function(require,module,exports){"use strict" 258var map=require("mout/array/map") 259var slick=require("slick") 260var $=require("./base") 261var gen=function(combinator,expression){return map(slick.parse(expression||"*"),function(part){return combinator+" "+part}).join(", ")} 262var push_=Array.prototype.push 263$.implement({search:function(expression){if(this.length===1)return $(slick.search(expression,this[0],new $)) 264var buffer=[] 265for(var i=0,node;node=this[i];i++)push_.apply(buffer,slick.search(expression,node)) 266buffer=$(buffer) 267return buffer&&buffer.sort()},find:function(expression){if(this.length===1)return $(slick.find(expression,this[0])) 268for(var i=0,node;node=this[i];i++){var found=slick.find(expression,node) 269if(found)return $(found)} 270return null},sort:function(){return slick.sort(this)},matches:function(expression){return slick.matches(this[0],expression)},contains:function(node){return slick.contains(this[0],node)},nextSiblings:function(expression){return this.search(gen('~',expression))},nextSibling:function(expression){return this.find(gen('+',expression))},previousSiblings:function(expression){return this.search(gen('!~',expression))},previousSibling:function(expression){return this.find(gen('!+',expression))},children:function(expression){return this.search(gen('>',expression))},firstChild:function(expression){return this.find(gen('^',expression))},lastChild:function(expression){return this.find(gen('!^',expression))},parent:function(expression){var buffer=[] 271loop:for(var i=0,node;node=this[i];i++)while((node=node.parentNode)&&(node!==document)){if(!expression||slick.matches(node,expression)){buffer.push(node) 272break loop 273break}} 274return $(buffer)},parents:function(expression){var buffer=[] 275for(var i=0,node;node=this[i];i++)while((node=node.parentNode)&&(node!==document)){if(!expression||slick.matches(node,expression))buffer.push(node)} 276return $(buffer)}}) 277module.exports=$},{"./base":9,"mout/array/map":18,"slick":97}],36:[function(require,module,exports){"use strict"
278var forEach=require("mout/array/forEach"),map=require("mout/array/map") 279var parse=require("slick/parser") 280var $=require("./base") 281module.exports=function(expression,doc){return $(map(parse(expression),function(expression){var previous,result 282forEach(expression,function(part,i){var node=(doc||document).createElement(part.tag) 283if(part.id)node.id=part.id 284if(part.classList)node.className=part.classList.join(" ") 285if(part.attributes)forEach(part.attributes,function(attribute){node.setAttribute(attribute.name,attribute.value||"")}) 286if(part.pseudos)forEach(part.pseudos,function(pseudo){var n=$(node),method=n[pseudo.name] 287if(method)method.call(n,pseudo.value)}) 288if(i===0){result=node}else if(part.combinator===" "){previous.appendChild(node)}else if(part.combinator==="+"){var parentNode=previous.parentNode 289if(parentNode)parentNode.appendChild(node)} 290previous=node}) 291return result}))}},{"./base":9,"mout/array/forEach":16,"mout/array/map":18,"slick/parser":98}],37:[function(require,module,exports){function forEach(arr,callback,thisObj){if(arr==null){return} 292var i=-1,len=arr.length;while(++i<len){if(callback.call(thisObj,arr[i],i,arr)===!1){break}}} 293module.exports=forEach},{}],38:[function(require,module,exports){var makeIterator=require('../function/makeIterator_');function map(arr,callback,thisObj){callback=makeIterator(callback,thisObj);var results=[];if(arr==null){return results} 294var i=-1,len=arr.length;while(++i<len){results[i]=callback(arr[i],i,arr)} 295return results} 296module.exports=map},{"../function/makeIterator_":42}],39:[function(require,module,exports){function slice(arr,start,end){var len=arr.length;if(start==null){start=0}else if(start<0){start=Math.max(len+start,0)}else{start=Math.min(start,len)} 297if(end==null){end=len}else if(end<0){end=Math.max(len+end,0)}else{end=Math.min(end,len)} 298var result=[];while(start<end){result.push(arr[start++])} 299return result} 300module.exports=slice},{}],40:[function(require,module,exports){var slice=require('../array/slice');function bind(fn,context,args){var argsArr=slice(arguments,2);return function(){return fn.apply(context,argsArr.concat(slice(arguments)))}} 301module.exports=bind},{"../array/slice":39}],41:[function(require,module,exports){function identity(val){return val} 302module.exports=identity},{}],42:[function(require,module,exports){var identity=require('./identity');var prop=require('./prop');var deepMatches=require('../object/deepMatches');function makeIterator(src,thisObj){if(src==null){return identity} 303switch(typeof src){case 'function':return(typeof thisObj!=='undefined')?function(val,i,arr){return src.call(thisObj,val,i,arr)}:src;case 'object':return function(val){return deepMatches(val,src)};case 'string':case 'number':return prop(src)}} 304module.exports=makeIterator},{"../object/deepMatches":53,"./identity":41,"./prop":43}],43:[function(require,module,exports){function prop(name){return function(obj){return obj[name]}} 305module.exports=prop},{}],44:[function(require,module,exports){var slice=require('../array/slice');function timeout(fn,millis,context){var args=slice(arguments,3);return setTimeout(function(){fn.apply(context,args)},millis)} 306module.exports=timeout},{"../array/slice":39}],45:[function(require,module,exports){var isKind=require('./isKind');var isArray=Array.isArray||function(val){return isKind(val,'Array')};module.exports=isArray},{"./isKind":46}],46:[function(require,module,exports){var kindOf=require('./kindOf');function isKind(val,kind){return kindOf(val)===kind} 307module.exports=isKind},{"./kindOf":47}],47:[function(require,module,exports){function kindOf(val){return Object.prototype.toString.call(val).slice(8,-1)} 308module.exports=kindOf},{}],48:[function(require,module,exports){function toString(val){return val==null?'':val.toString()} 309module.exports=toString},{}],49:[function(require,module,exports){function clamp(val,min,max){return val<min?min:(val>max?max:val)} 310module.exports=clamp},{}],50:[function(require,module,exports){function lerp(ratio,start,end){return start+(end-start)*ratio} 311module.exports=lerp},{}],51:[function(require,module,exports){var lerp=require('./lerp');var norm=require('./norm');function map(val,min1,max1,min2,max2){return lerp(norm(val,min1,max1),min2,max2)} 312module.exports=map},{"./lerp":50,"./norm":52}],52:[function(require,module,exports){function norm(val,min,max){if(val<min||val>max){throw new RangeError('value ('+val+') must be between '+min+' and '+max)} 313return val===max?1:(val-min)/(max-min)} 314module.exports=norm},{}],53:[function(require,module,exports){var forOwn=require('./forOwn');var isArray=require('../lang/isArray');function containsMatch(array,pattern){var i=-1,length=array.length;while(++i<length){if(deepMatches(array[i],pattern)){return!0}} 315return!1} 316function matchArray(target,pattern){var i=-1,patternLength=pattern.length;while(++i<patternLength){if(!containsMatch(target,pattern[i])){return!1}} 317return!0} 318function matchObject(target,pattern){var result=!0;forOwn(pattern,function(val,key){if(!deepMatches(target[key],val)){return(result=!1)}});return result} 319function deepMatches(target,pattern){if(target&&typeof target==='object'&&pattern&&typeof pattern==='object'){if(isArray(target)&&isArray(pattern)){return matchArray(target,pattern)}else{return matchObject(target,pattern)}}else{return target===pattern}} 320module.exports=deepMatches},{"../lang/isArray":45,"./forOwn":55}],54:[function(require,module,exports){var hasOwn=require('./hasOwn');var _hasDontEnumBug,_dontEnums;
320function checkDontEnum(){_dontEnums=['toString','toLocaleString','valueOf','hasOwnProperty','isPrototypeOf','propertyIsEnumerable','constructor'];_hasDontEnumBug=!0;for(var key in{'toString':null}){_hasDontEnumBug=!1}} 321function forIn(obj,fn,thisObj){var key,i=0;if(_hasDontEnumBug==null)checkDontEnum();for(key in obj){if(exec(fn,obj,key,thisObj)===!1){break}} 322if(_hasDontEnumBug){var ctor=obj.constructor,isProto=!!ctor&&obj===ctor.prototype;while(key=_dontEnums[i++]){if((key!=='constructor'||(!isProto&&hasOwn(obj,key)))&&obj[key]!==Object.prototype[key]){if(exec(fn,obj,key,thisObj)===!1){break}}}}} 323function exec(fn,obj,key,thisObj){return fn.call(thisObj,obj[key],key,obj)} 324module.exports=forIn},{"./hasOwn":56}],55:[function(require,module,exports){var hasOwn=require('./hasOwn');var forIn=require('./forIn');function forOwn(obj,fn,thisObj){forIn(obj,function(val,key){if(hasOwn(obj,key)){return fn.call(thisObj,obj[key],key,obj)}})} 325module.exports=forOwn},{"./forIn":54,"./hasOwn":56}],56:[function(require,module,exports){function hasOwn(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)} 326module.exports=hasOwn},{}],57:[function(require,module,exports){module.exports=[' ','\n','\r','\t','\f','\v','\u00A0','\u1680','\u180E','\u2000','\u2001','\u2002','\u2003','\u2004','\u2005','\u2006','\u2007','\u2008','\u2009','\u200A','\u2028','\u2029','\u202F','\u205F','\u3000']},{}],58:[function(require,module,exports){var toString=require('../lang/toString');var WHITE_SPACES=require('./WHITE_SPACES');function ltrim(str,chars){str=toString(str);chars=chars||WHITE_SPACES;var start=0,len=str.length,charLen=chars.length,found=!0,i,c;while(found&&start<len){found=!1;i=-1;c=str.charAt(start);while(++i<charLen){if(c===chars[i]){found=!0;start++;break}}} 327return(start>=len)?'':str.substr(start,len)} 328module.exports=ltrim},{"../lang/toString":48,"./WHITE_SPACES":57}],59:[function(require,module,exports){var toString=require('../lang/toString');var WHITE_SPACES=require('./WHITE_SPACES');function rtrim(str,chars){str=toString(str);chars=chars||WHITE_SPACES;var end=str.length-1,charLen=chars.length,found=!0,i,c;while(found&&end>=0){found=!1;i=-1;c=str.charAt(end);while(++i<charLen){if(c===chars[i]){found=!0;end--;break}}} 329return(end>=0)?str.substring(0,end+1):''} 330module.exports=rtrim},{"../lang/toString":48,"./WHITE_SPACES":57}],60:[function(require,module,exports){var toString=require('../lang/toString');var WHITE_SPACES=require('./WHITE_SPACES');var ltrim=require('./ltrim');var rtrim=require('./rtrim');function trim(str,chars){str=toString(str);chars=chars||WHITE_SPACES;return ltrim(rtrim(str,chars),chars)} 331module.exports=trim},{"../lang/toString":48,"./WHITE_SPACES":57,"./ltrim":58,"./rtrim":59}],61:[function(require,module,exports){function slice(arr,start,end){var len=arr.length;if(start==null){start=0}else if(start<0){start=Math.max(len+start,0)}else{start=Math.min(start,len)} 332if(end==null){end=len}else if(end<0){end=Math.max(len+end,0)}else{end=Math.min(end,len)} 333var result=[];while(start<end){result.push(arr[start++])} 334return result} 335module.exports=slice},{}],62:[function(require,module,exports){var slice=require('../array/slice');function bind(fn,context,args){var argsArr=slice(arguments,2);return function(){return fn.apply(context,argsArr.concat(slice(arguments)))}} 336module.exports=bind},{"../array/slice":61}],63:[function(require,module,exports){var kindOf=require('./kindOf');var isPlainObject=require('./isPlainObject');var mixIn=require('../object/mixIn');function clone(val){switch(kindOf(val)){case 'Object':return cloneObject(val);case 'Array':return cloneArray(val);case 'RegExp':return cloneRegExp(val);case 'Date':return cloneDate(val);default:return val}} 337function cloneObject(source){if(isPlainObject(source)){return mixIn({},source)}else{return source}} 338function cloneRegExp(r){var flags='';flags+=r.multiline?'m':'';flags+=r.global?'g':'';flags+=r.ignorecase?'i':'';return new RegExp(r.source,flags)} 339function cloneDate(date){return new Date(+date)} 340function cloneArray(arr){return arr.slice()} 341module.exports=clone},{"../object/mixIn":73,"./isPlainObject":67,"./kindOf":68}],64:[function(require,module,exports){var clone=require('./clone');var forOwn=require('../object/forOwn');var kindOf=require('./kindOf');var isPlainObject=require('./isPlainObject');function deepClone(val,instanceClone){switch(kindOf(val)){case 'Object':return cloneObject(val,instanceClone);case 'Array':return cloneArray(val,instanceClone);default:return clone(val)}} 342function cloneObject(source,instanceClone){if(isPlainObject(source)){var out={};forOwn(source,function(val,key){this[key]=deepClone(val,instanceClone)},out);return out}else if(instanceClone){return instanceClone(source)}else{return source}} 343function cloneArray(arr,instanceClone){var out=[],i=-1,n=arr.length,val;while(++i<n){out[i]=deepClone(arr[i],instanceClone)} 344return out} 345module.exports=deepClone},{"../object/forOwn":70,"./clone":63,"./isPlainObject":67,"./kindOf":68}],65:[function(require,module,exports){arguments[4][24][0].apply(exports,arguments)},{"./kindOf":68,"dup":24}],66:[function(require,module,exports){var isKind=require('./isKind');function isObject(val){return isKind(val,'Object')} 346module.exports=isObject},{"./isKind":65}],67:[function(require,module,exports){function isPlainObject(value){return(!!value&&typeof value==='object'&&value.constructor===Object)} 347module.exports=isPlainObject},{}],68:[function(require,module,exports){arguments[4][25][0].apply(exports,arguments)},{"dup":25}],69:[function(require,module,exports){arguments[4][28][0].apply(exports,arguments)},{"./hasOwn":71,"dup":28}],70:[function(require,module,exports){arguments[4][29][0].apply(exports,arguments)},{"./forIn":69,"./hasOwn":71,"dup":29}],71:[function(require,module,exports){arguments[4][30][0].apply(exports,arguments)},{"dup":30}],72:[function(require,module,exports){var hasOwn=require('./hasOwn');var deepClone=require('../lang/deepClone');var isObject=require('../lang/isObject');function merge(){var i=1,key,val,obj,target;target=deepClone(arguments[0]);while(obj=arguments[i++]){for(key in obj){if(!hasOwn(obj,key)){continue} 348val=obj[key];if(isObject(val)&&isObject(target[key])){target[key]=merge(target[key],val)}else{target[key]=deepClone(val)}}} 349return target} 350module.exports=merge},{"../lang/deepClone":64,"../lang/isObject":66,"./hasOwn":71}],73:[function(require,module,exports){var forOwn=require('./forOwn');function mixIn(target,objects){var i=0,n=arguments.length,obj;while(++i<n){obj=arguments[i];if(obj!=null){forOwn(obj,copyProp,target)}} 351return target} 352function copyProp(val,key){this[key]=val} 353module.exports=mixIn},{"./forOwn":70}],74:[function(require,module,exports){"use strict" 354var hasOwn=require("mout/object/hasOwn"),mixIn=require("mout/object/mixIn"),create=require("mout/lang/createObject"),kindOf=require("mout/lang/kindOf") 355var hasDescriptors=!0 356try{Object.defineProperty({},"~",{}) 357Object.getOwnPropertyDescriptor({},"~")}catch(e){hasDescriptors=!1}
358var hasEnumBug=!({valueOf:0}).propertyIsEnumerable("valueOf"),buggy=["toString","valueOf"] 359var verbs=/^constructor|inherits|mixin$/ 360var implement=function(proto){var prototype=this.prototype 361for(var key in proto){if(key.match(verbs))continue 362if(hasDescriptors){var descriptor=Object.getOwnPropertyDescriptor(proto,key) 363if(descriptor){Object.defineProperty(prototype,key,descriptor) 364continue}} 365prototype[key]=proto[key]} 366if(hasEnumBug)for(var i=0;(key=buggy[i]);i++){var value=proto[key] 367if(value!==Object.prototype[key])prototype[key]=value} 368return this} 369var prime=function(proto){if(kindOf(proto)==="Function")proto={constructor:proto} 370var superprime=proto.inherits 371var constructor=(hasOwn(proto,"constructor"))?proto.constructor:(superprime)?function(){return superprime.apply(this,arguments)}:function(){} 372if(superprime){mixIn(constructor,superprime) 373var superproto=superprime.prototype 374var cproto=constructor.prototype=create(superproto) 375constructor.parent=superproto 376cproto.constructor=constructor} 377if(!constructor.implement)constructor.implement=implement 378var mixins=proto.mixin 379if(mixins){if(kindOf(mixins)!=="Array")mixins=[mixins] 380for(var i=0;i<mixins.length;i++)constructor.implement(create(mixins[i].prototype))} 381return constructor.implement(proto)} 382module.exports=prime},{"mout/lang/createObject":75,"mout/lang/kindOf":76,"mout/object/hasOwn":79,"mout/object/mixIn":80}],75:[function(require,module,exports){var mixIn=require('../object/mixIn');function createObject(parent,props){function F(){} 383F.prototype=parent;return mixIn(new F(),props)} 384module.exports=createObject},{"../object/mixIn":80}],76:[function(require,module,exports){arguments[4][25][0].apply(exports,arguments)},{"dup":25}],77:[function(require,module,exports){arguments[4][28][0].apply(exports,arguments)},{"./hasOwn":79,"dup":28}],78:[function(require,module,exports){arguments[4][29][0].apply(exports,arguments)},{"./forIn":77,"./hasOwn":79,"dup":29}],79:[function(require,module,exports){arguments[4][30][0].apply(exports,arguments)},{"dup":30}],80:[function(require,module,exports){arguments[4][73][0].apply(exports,arguments)},{"./forOwn":78,"dup":73}],81:[function(require,module,exports){"use strict";var prime=require("prime") 385var bind=require("mout/function/bind") 386var bound=prime({bound:function(name){var bound=this._bound||(this._bound={}) 387return bound[name]||(bound[name]=bind(this[name],this))}}) 388module.exports=bound},{"mout/function/bind":62,"prime":74}],82:[function(require,module,exports){"use strict";var prime=require("prime") 389var merge=require("mout/object/merge") 390var Options=prime({setOptions:function(options){var args=[{},this.options] 391args.push.apply(args,arguments) 392this.options=merge.apply(null,args) 393return this}}) 394module.exports=Options},{"mout/object/merge":72,"prime":74}],83:[function(require,module,exports){(function(process,global,setImmediate){(function(){"use strict" 395var kindOf=require("mout/lang/kindOf"),now=require("mout/time/now"),forEach=require("mout/array/forEach"),indexOf=require("mout/array/indexOf") 396var callbacks={timeout:{},frame:[],immediate:[]} 397var push=function(collection,callback,context,defer){var iterator=function(){iterate(collection)} 398if(!collection.length)defer(iterator) 399var entry={callback:callback,context:context} 400collection.push(entry) 401return function(){var io=indexOf(collection,entry) 402if(io>-1)collection.splice(io,1)}} 403var iterate=function(collection){var time=now() 404forEach(collection.splice(0),function(entry){entry.callback.call(entry.context,time)})} 405var defer=function(callback,argument,context){return(kindOf(argument)==="Number")?defer.timeout(callback,argument,context):defer.immediate(callback,argument)} 406if(global.process&&process.nextTick){defer.immediate=function(callback,context){return push(callbacks.immediate,callback,context,process.nextTick)}}else if(global.setImmediate){defer.immediate=function(callback,context){return push(callbacks.immediate,callback,context,setImmediate)}}else if(global.postMessage&&global.addEventListener){addEventListener("message",function(event){if(event.source===global&&event.data==="@deferred"){event.stopPropagation() 407iterate(callbacks.immediate)}},!0) 408defer.immediate=function(callback,context){return push(callbacks.immediate,callback,context,function(){postMessage("@deferred","*")})}}else{defer.immediate=function(callback,context){return push(callbacks.immediate,callback,context,function(iterator){setTimeout(iterator,0)})}} 409var requestAnimationFrame=global.requestAnimationFrame||global.webkitRequestAnimationFrame||global.mozRequestAnimationFrame||global.oRequestAnimationFrame||global.msRequestAnimationFrame||function(callback){setTimeout(callback,1e3/60)} 410defer.frame=function(callback,context){return push(callbacks.frame,callback,context,requestAnimationFrame)} 411var clear 412defer.timeout=function(callback,ms,context){var ct=callbacks.timeout 413if(!clear)clear=defer.immediate(function(){clear=null 414callbacks.timeout={}}) 415return push(ct[ms]||(ct[ms]=[]),callback,context,function(iterator){setTimeout(iterator,ms)})} 416module.exports=defer}).call(this)}).call(this,require('_process'),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("timers").setImmediate)},{"_process":99,"mout/array/forEach":87,"mout/array/indexOf":88,"mout/lang/kindOf":90,"mout/time/now":95,"timers":100}],84:[function(require,module,exports){"use strict" 417var indexOf=require("mout/array/indexOf"),forEach=require("mout/array/forEach") 418var prime=require("./index"),defer=require("./defer") 419var slice=Array.prototype.slice;var Emitter=prime({constructor:function(stoppable){this._stoppable=stoppable},on:function(event,fn){var listeners=this._listeners||(this._listeners={}),events=listeners[event]||(listeners[event]=[]) 420if(indexOf(events,fn)===-1)events.push(fn) 421return this},off:function(event,fn){var listeners=this._listeners,events 422if(listeners&&(events=listeners[event])){var io=indexOf(events,fn) 423if(io>-1)events.splice(io,1) 424if(!events.length)delete listeners[event];for(var l in listeners)return this 425delete this._listeners} 426return this}
426,emit:function(event){var self=this,args=slice.call(arguments,1) 427var emit=function(){var listeners=self._listeners,events 428if(listeners&&(events=listeners[event])){forEach(events.slice(0),function(event){var result=event.apply(self,args) 429if(self._stoppable)return result})}} 430if(args[args.length-1]===Emitter.EMIT_SYNC){args.pop() 431emit()}else{defer(emit)} 432return this}}) 433Emitter.EMIT_SYNC={} 434module.exports=Emitter},{"./defer":83,"./index":85,"mout/array/forEach":87,"mout/array/indexOf":88}],85:[function(require,module,exports){"use strict" 435var hasOwn=require("mout/object/hasOwn"),mixIn=require("mout/object/mixIn"),create=require("mout/lang/createObject"),kindOf=require("mout/lang/kindOf") 436var hasDescriptors=!0 437try{Object.defineProperty({},"~",{}) 438Object.getOwnPropertyDescriptor({},"~")}catch(e){hasDescriptors=!1} 439var hasEnumBug=!({valueOf:0}).propertyIsEnumerable("valueOf"),buggy=["toString","valueOf"] 440var verbs=/^constructor|inherits|mixin$/ 441var implement=function(proto){var prototype=this.prototype 442for(var key in proto){if(key.match(verbs))continue 443if(hasDescriptors){var descriptor=Object.getOwnPropertyDescriptor(proto,key) 444if(descriptor){Object.defineProperty(prototype,key,descriptor) 445continue}} 446prototype[key]=proto[key]} 447if(hasEnumBug)for(var i=0;(key=buggy[i]);i++){var value=proto[key] 448if(value!==Object.prototype[key])prototype[key]=value} 449return this} 450var prime=function(proto){if(kindOf(proto)==="Function")proto={constructor:proto} 451var superprime=proto.inherits
452var constructor=(hasOwn(proto,"constructor"))?proto.constructor:(superprime)?function(){return superprime.apply(this,arguments)}:function(){} 453if(superprime){mixIn(constructor,superprime) 454var superproto=superprime.prototype 455var cproto=constructor.prototype=create(superproto) 456constructor.parent=superproto 457cproto.constructor=constructor} 458if(!constructor.implement)constructor.implement=implement 459var mixins=proto.mixin 460if(mixins){if(kindOf(mixins)!=="Array")mixins=[mixins] 461for(var i=0;i<mixins.length;i++)constructor.implement(create(mixins[i].prototype))} 462return constructor.implement(proto)} 463module.exports=prime},{"mout/lang/createObject":89,"mout/lang/kindOf":90,"mout/object/hasOwn":93,"mout/object/mixIn":94}],86:[function(require,module,exports){"use strict" 464var indexOf=require("mout/array/indexOf") 465var prime=require("./index") 466var Map=prime({constructor:function Map(){this.length=0 467this._values=[] 468this._keys=[]},set:function(key,value){var index=indexOf(this._keys,key) 469if(index===-1){this._keys.push(key) 470this._values.push(value) 471this.length++}else{this._values[index]=value} 472return this},get:function(key){var index=indexOf(this._keys,key) 473return(index===-1)?null:this._values[index]},count:function(){return this.length}
473,forEach:function(method,context){for(var i=0,l=this.length;i<l;i++){if(method.call(context,this._values[i],this._keys[i],this)===!1)break} 474return this},map:function(method,context){var results=new Map 475this.forEach(function(value,key){results.set(key,method.call(context,value,key,this))},this) 476return results},filter:function(method,context){var results=new Map 477this.forEach(function(value,key){if(method.call(context,value,key,this))results.set(key,value)},this) 478return results},every:function(method,context){var every=!0 479this.forEach(function(value,key){if(!method.call(context,value,key,this))return(every=!1)},this) 480return every},some:function(method,context){var some=!1 481this.forEach(function(value,key){if(method.call(context,value,key,this))return!(some=!0)},this) 482return some},indexOf:function(value){var index=indexOf(this._values,value) 483return(index>-1)?this._keys[index]:null},remove:function(value){var index=indexOf(this._values,value) 484if(index!==-1){this._values.splice(index,1) 485this.length-- 486return this._keys.splice(index,1)[0]} 487return null},unset:function(key){var index=indexOf(this._keys,key) 488if(index!==-1){this._keys.splice(index,1) 489this.length-- 490return this._values.splice(index,1)[0]} 491return null},keys:function(){return this._keys.slice()},values:function(){return this._values.slice()}}) 492var map=function(){return new Map} 493map.prototype=Map.prototype 494module.exports=map},{"./index":85,"mout/array/indexOf":88}],87:[function(require,module,exports){arguments[4][16][0].apply(exports,arguments)},{"dup":16}],88:[function(require,module,exports){arguments[4][17][0].apply(exports,arguments)},{"dup":17}],89:[function(require,module,exports){arguments[4][75][0].apply(exports,arguments)},{"../object/mixIn":94,"dup":75}],90:[function(require,module,exports){arguments[4][25][0].apply(exports,arguments)},{"dup":25}],91:[function(require,module,exports){arguments[4][28][0].apply(exports,arguments)},{"./hasOwn":93,"dup":28}],92:[function(require,module,exports){arguments[4][29][0].apply(exports,arguments)},{"./forIn":91,"./hasOwn":93,"dup":29}],93:[function(require,module,exports){arguments[4][30][0].apply(exports,arguments)},{"dup":30}],94:[function(require,module,exports){arguments[4][73][0].apply(exports,arguments)},{"./forOwn":92,"dup":73}],95:[function(require,module,exports){function now(){return now.get()} 495now.get=(typeof Date.now==='function')?Date.now:function(){return+(new Date())};module.exports=now},{}],96:[function(require,module,exports){"use strict" 496var parse=require("./parser") 497var index=0,counter=document.__counter=(parseInt(document.__counter||-1,36)+1).toString(36),key="uid:"+counter 498var uniqueID=function(n,xml){if(n===window)return"window" 499if(n===document)return"document" 500if(n===document.documentElement)return"html" 501if(xml){var uid=n.getAttribute(key) 502if(!uid){uid=(index++).toString(36) 503n.setAttribute(key,uid)} 504return uid}else{return n[key]||(n[key]=(index++).toString(36))}} 505var uniqueIDXML=function(n){return uniqueID(n,!0)} 506var isArray=Array.isArray||function(object){return Object.prototype.toString.call(object)==="[object Array]"} 507var uniqueIndex=0;var HAS={GET_ELEMENT_BY_ID:function(test,id){id="slick_"+(uniqueIndex++);test.innerHTML='<a id="'+id+'"></a>' 508return!!this.getElementById(id)},QUERY_SELECTOR:function(test){test.innerHTML='_<style>:nth-child(2){}</style>' 509test.innerHTML='<a class="MiX"></a>' 510return test.querySelectorAll('.MiX').length===1},EXPANDOS:function(test,id){id="slick_"+(uniqueIndex++);test._custom_property_=id 511return test._custom_property_===id},MATCHES_SELECTOR:function(test){test.className="MiX" 512var matches=test.matchesSelector||test.mozMatchesSelector||test.webkitMatchesSelector 513if(matches)try{matches.call(test,':slick')}catch(e){return matches.call(test,".MiX")?matches:!1} 514return!1},GET_ELEMENTS_BY_CLASS_NAME:function(test){test.innerHTML='<a class="f"></a><a class="b"></a>' 515if(test.getElementsByClassName('b').length!==1)return!1 516test.firstChild.className='b' 517if(test.getElementsByClassName('b').length!==2)return!1 518test.innerHTML='<a class="a"></a><a class="f b a"></a>' 519if(test.getElementsByClassName('a').length!==2)return!1 520return!0},GET_ATTRIBUTE:function(test){var shout="fus ro dah" 521test.innerHTML='<a class="'+shout+'"></a>' 522return test.firstChild.getAttribute('class')===shout}} 523var Finder=function Finder(document){this.document=document 524var root=this.root=document.documentElement 525this.tested={} 526this.uniqueID=this.has("EXPANDOS")?uniqueID:uniqueIDXML 527this.getAttribute=(this.has("GET_ATTRIBUTE"))?function(node,name){return node.getAttribute(name)}:function(node,name){node=node.getAttributeNode(name) 528return(node&&node.specified)?node.value:null} 529this.hasAttribute=(root.hasAttribute)?function(node,attribute){return node.hasAttribute(attribute)}:function(node,attribute){node=node.getAttributeNode(attribute) 530return!!(node&&node.specified)} 531this.contains=(document.contains&&root.contains)?function(context,node){return context.contains(node)}:(root.compareDocumentPosition)?function(context,node){return context===node||!!(context.compareDocumentPosition(node)&16)}:function(context,node){do{if(node===context)return!0}while((node=node.parentNode)) 532return!1} 533this.sorter=(root.compareDocumentPosition)?function(a,b){if(!a.compareDocumentPosition||!b.compareDocumentPosition)return 0 534return a.compareDocumentPosition(b)&4?-1:a===b?0:1}:('sourceIndex' in root)?function(a,b){if(!a.sourceIndex||!b.sourceIndex)return 0 535return a.sourceIndex-b.sourceIndex}:(document.createRange)?function(a,b){if(!a.ownerDocument||!b.ownerDocument)return 0 536var aRange=a.ownerDocument.createRange(),bRange=b.ownerDocument.createRange() 537aRange.setStart(a,0) 538aRange.setEnd(a,0) 539bRange.setStart(b,0) 540bRange.setEnd(b,0) 541return aRange.compareBoundaryPoints(Range.START_TO_END,bRange)}:null 542this.failed={} 543var nativeMatches=this.has("MATCHES_SELECTOR") 544if(nativeMatches)this.matchesSelector=function(node,expression){if(this.failed[expression])return null 545try{return nativeMatches.call(node,expression)}catch(e){if(slick.debug)console.warn("matchesSelector failed on "+expression) 546this.failed[expression]=!0 547return null}} 548if(this.has("QUERY_SELECTOR")){this.querySelectorAll=function(node,expression){if(this.failed[expression])return!0 549var result,_id,_expression,_combinator,_node 550if(node!==this.document){_combinator=expression[0].combinator 551_id=node.getAttribute("id") 552_expression=expression 553if(!_id){_node=node 554_id="__slick__" 555_node.setAttribute("id",_id)} 556expression="#"+_id+" "+_expression 557if(_combinator.indexOf("~")>-1||_combinator.indexOf("+")>-1){node=node.parentNode 558if(!node)result=!0}} 559if(!result)try{result=node.querySelectorAll(expression.toString())}catch(e){if(slick.debug)console.warn("querySelectorAll failed on "+(_expression||expression)) 560result=this.failed[_expression||expression]=!0}
561if(_node)_node.removeAttribute("id") 562return result}}} 563Finder.prototype.has=function(FEATURE){var tested=this.tested,testedFEATURE=tested[FEATURE] 564if(testedFEATURE!=null)return testedFEATURE 565var root=this.root,document=this.document,testNode=document.createElement("div") 566testNode.setAttribute("style","display: none;") 567root.appendChild(testNode) 568var TEST=HAS[FEATURE],result=!1 569if(TEST)try{result=TEST.call(document,testNode)}catch(e){} 570if(slick.debug&&!result)console.warn("document has no "+FEATURE) 571root.removeChild(testNode) 572return tested[FEATURE]=result} 573var combinators={" ":function(node,part,push){var item,items 574var noId=!part.id,noTag=!part.tag,noClass=!part.classes 575if(part.id&&node.getElementById&&this.has("GET_ELEMENT_BY_ID")){item=node.getElementById(part.id) 576if(item&&item.getAttribute('id')===part.id){items=[item] 577noId=!0 578if(part.tag==="*")noTag=!0}} 579if(!items){if(part.classes&&node.getElementsByClassName&&this.has("GET_ELEMENTS_BY_CLASS_NAME")){items=node.getElementsByClassName(part.classList) 580noClass=!0 581if(part.tag==="*")noTag=!0}else{items=node.getElementsByTagName(part.tag) 582if(part.tag!=="*")noTag=!0} 583if(!items||!items.length)return!1} 584for(var i=0;item=items[i++];) 585if((noTag&&noId&&noClass&&!part.attributes&&!part.pseudos)||this.match(item,part,noTag,noId,noClass)) 586push(item) 587return!0},">":function(node,part,push){if((node=node.firstChild))do{if(node.nodeType==1&&this.match(node,part))push(node)}while((node=node.nextSibling))},"+":function(node,part,push){while((node=node.nextSibling))if(node.nodeType==1){if(this.match(node,part))push(node) 588break}},"^":function(node,part,push){node=node.firstChild 589if(node){if(node.nodeType===1){if(this.match(node,part))push(node)}else{combinators['+'].call(this,node,part,push)}}},"~":function(node,part,push){while((node=node.nextSibling)){if(node.nodeType===1&&this.match(node,part))push(node)}},"++":function(node,part,push){combinators['+'].call(this,node,part,push) 590combinators['!+'].call(this,node,part,push)},"~~":function(node,part,push){combinators['~'].call(this,node,part,push) 591combinators['!~'].call(this,node,part,push)},"!":function(node,part,push){while((node=node.parentNode))if(node!==this.document&&this.match(node,part))push(node)},"!>":function(node,part,push){node=node.parentNode 592if(node!==this.document&&this.match(node,part))push(node)},"!+":function(node,part,push){while((node=node.previousSibling))if(node.nodeType==1){if(this.match(node,part))push(node) 593break}},"!^":function(node,part,push){node=node.lastChild 594if(node){if(node.nodeType==1){if(this.match(node,part))push(node)}else{combinators['!+'].call(this,node,part,push)}}},"!~":function(node,part,push){while((node=node.previousSibling)){if(node.nodeType===1&&this.match(node,part))push(node)}}} 595Finder.prototype.search=function(context,expression,found){if(!context)context=this.document 596else if(!context.nodeType&&context.document)context=context.document 597var expressions=parse(expression) 598if(!expressions||!expressions.length)throw new Error("invalid expression") 599if(!found)found=[] 600var uniques,push=isArray(found)?function(node){found[found.length]=node}:function(node){found[found.length++]=node} 601if(expressions.length>1){uniques={} 602var plush=push 603push=function(node){var uid=uniqueID(node) 604if(!uniques[uid]){uniques[uid]=!0 605plush(node)}}} 606var node,nodes,part 607main:for(var i=0;expression=expressions[i++];){if(!slick.noQSA&&this.querySelectorAll){nodes=this.querySelectorAll(context,expression) 608if(nodes!==!0){if(nodes&&nodes.length)for(var j=0;node=nodes[j++];)if(node.nodeName>'@'){push(node)} 609continue main}} 610if(expression.length===1){part=expression[0] 611combinators[part.combinator].call(this,context,part,push)}else{var cs=[context],c,f,u,p=function(node){var uid=uniqueID(node) 612if(!u[uid]){u[uid]=!0 613f[f.length]=node}} 614for(var j=0;part=expression[j++];){f=[];u={} 615for(var k=0;c=cs[k++];)combinators[part.combinator].call(this,c,part,p) 616if(!f.length)continue main 617cs=f} 618if(i===0)found=f 619else for(var l=0;l<f.length;l++)push(f[l])}} 620if(uniques&&found&&found.length>1)this.sort(found) 621return found} 622Finder.prototype.sort=function(nodes){return this.sorter?Array.prototype.sort.call(nodes,this.sorter):nodes} 623var pseudos={'empty':function(){return!(this&&this.nodeType===1)&&!(this.innerText||this.textContent||'').length},'not':function(expression){return!slick.matches(this,expression)},'contains':function(text){return(this.innerText||this.textContent||'').indexOf(text)>-1},'first-child':function(){var node=this 624while((node=node.previousSibling))if(node.nodeType==1)return!1 625return!0},'last-child':function(){var node=this 626while((node=node.nextSibling))if(node.nodeType==1)return!1 627return!0},'only-child':function(){var prev=this
628while((prev=prev.previousSibling))if(prev.nodeType==1)return!1 629var next=this 630while((next=next.nextSibling))if(next.nodeType==1)return!1 631return!0},'first-of-type':function(){var node=this,nodeName=node.nodeName 632while((node=node.previousSibling))if(node.nodeName==nodeName)return!1 633return!0},'last-of-type':function(){var node=this,nodeName=node.nodeName 634while((node=node.nextSibling))if(node.nodeName==nodeName)return!1 635return!0},'only-of-type':function(){var prev=this,nodeName=this.nodeName 636while((prev=prev.previousSibling))if(prev.nodeName==nodeName)return!1 637var next=this 638while((next=next.nextSibling))if(next.nodeName==nodeName)return!1 639return!0},'enabled':function(){return!this.disabled},'disabled':function(){return this.disabled},'checked':function(){return this.checked||this.selected},'selected':function(){return this.selected},'focus':function(){var doc=this.ownerDocument 640return doc.activeElement===this&&(this.href||this.type||slick.hasAttribute(this,'tabindex'))},'root':function(){return(this===this.ownerDocument.documentElement)}} 641Finder.prototype.match=function(node,bit,noTag,noId,noClass){if(!slick.noQSA&&this.matchesSelector){var matches=this.matchesSelector(node,bit) 642if(matches!==null)return matches} 643if(!noTag&&bit.tag){var nodeName=node.nodeName.toLowerCase() 644if(bit.tag==="*"){if(nodeName<"@")return!1}else if(nodeName!=bit.tag){return!1}} 645if(!noId&&bit.id&&node.getAttribute('id')!==bit.id)return!1 646var i,part 647if(!noClass&&bit.classes){var className=this.getAttribute(node,"class") 648if(!className)return!1 649for(part in bit.classes)if(!RegExp('(^|\\s)'+bit.classes[part]+'(\\s|$)').test(className))return!1} 650var name,value 651if(bit.attributes)for(i=0;part=bit.attributes[i++];){var operator=part.operator,escaped=part.escapedValue 652name=part.name 653value=part.value 654if(!operator){if(!this.hasAttribute(node,name))return!1}else{var actual=this.getAttribute(node,name) 655if(actual==null)return!1 656switch(operator){case '^=':if(!RegExp('^'+escaped).test(actual))return!1;break 657case '$=':if(!RegExp(escaped+'$').test(actual))return!1;break 658case '~=':if(!RegExp('(^|\\s)'+escaped+'(\\s|$)').test(actual))return!1;break 659case '|=':if(!RegExp('^'+escaped+'(-|$)').test(actual))return!1;break 660case '=':if(actual!==value)return!1;break 661case '*=':if(actual.indexOf(value)===-1)return!1;break 662default:return!1}}} 663if(bit.pseudos)for(i=0;part=bit.pseudos[i++];){name=part.name 664value=part.value 665if(pseudos[name])return pseudos[name].call(node,value) 666if(value!=null){if(this.getAttribute(node,name)!==value)return!1}else{if(!this.hasAttribute(node,name))return!1}} 667return!0} 668Finder.prototype.matches=function(node,expression){var expressions=parse(expression) 669if(expressions.length===1&&expressions[0].length===1){return this.match(node,expressions[0][0])} 670if(!slick.noQSA&&this.matchesSelector){var matches=this.matchesSelector(node,expressions) 671if(matches!==null)return matches} 672var nodes=this.search(this.document,expression,{length:0}) 673for(var i=0,res;res=nodes[i++];)if(node===res)return!0 674return!1} 675var finders={} 676var finder=function(context){var doc=context||document 677if(doc.ownerDocument)doc=doc.ownerDocument 678else if(doc.document)doc=doc.document 679if(doc.nodeType!==9)throw new TypeError("invalid document") 680var uid=uniqueID(doc) 681return finders[uid]||(finders[uid]=new Finder(doc))} 682var slick=function(expression,context){return slick.search(expression,context)} 683slick.search=function(expression,context,found){return finder(context).search(context,expression,found)} 684slick.find=function(expression,context){return finder(context).search(context,expression)[0]||null} 685slick.getAttribute=function(node,name){return finder(node).getAttribute(node,name)} 686slick.hasAttribute=function(node,name){return finder(node).hasAttribute(node,name)} 687slick.contains=function(context,node){return finder(context).contains(context,node)} 688slick.matches=function(node,expression){return finder(node).matches(node,expression)} 689slick.sort=function(nodes){if(nodes&&nodes.length>1)finder(nodes[0]).sort(nodes) 690return nodes} 691slick.parse=parse;module.exports=slick},{"./parser":98}],97:[function(require,module,exports){(function(global){(function(){"use strict" 692module.exports="document" in global?require("./finder"):{parse:require("./parser")}}).call(this)}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./finder":96,"./parser":98}],98:[function(require,module,exports){"use strict" 693var escapeRe=/([-.*+?^${}()|[\]\/\\])/g,unescapeRe=/\\/g 694var escape=function(string){return(string+"").replace(escapeRe,'\\$1')} 695var unescape=function(string){return(string+"").replace(unescapeRe,'')} 696var slickRe=RegExp("^(?:\\s*(,)\\s*|\\s*(<combinator>+)\\s*|(\\s+)|(<unicode>+|\\*)|\\#(<unicode>+)|\\.(<unicode>+)|\\[\\s*(<unicode1>+)(?:\\s*([*^$!~|]?=)(?:\\s*(?:([\"']?)(.*?)\\9)))?\\s*\\](?!\\])|(:+)(<unicode>+)(?:\\((?:(?:([\"'])([^\\13]*)\\13)|((?:\\([^)]+\\)|[^()]*)+))\\))?)".replace(/<combinator>/,'['+escape(">+~`!@$%^&={}\\;</")+']').replace(/<unicode>/g,'(?:[\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])').replace(/<unicode1>/g,'(?:[:\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])')) 697var Part=function Part(combinator){this.combinator=combinator||" " 698this.tag="*"} 699Part.prototype.toString=function(){if(!this.raw){var xpr="",k,part 700xpr+=this.tag||"*"
701if(this.id)xpr+="#"+this.id 702if(this.classes)xpr+="."+this.classList.join(".") 703if(this.attributes)for(k=0;part=this.attributes[k++];){xpr+="["+part.name+(part.operator?part.operator+'"'+part.value+'"':'')+"]"} 704if(this.pseudos)for(k=0;part=this.pseudos[k++];){xpr+=":"+part.name 705if(part.value)xpr+="("+part.value+")"} 706this.raw=xpr} 707return this.raw} 708var Expression=function Expression(){this.length=0} 709Expression.prototype.toString=function(){if(!this.raw){var xpr="" 710for(var j=0,bit;bit=this[j++];){if(j!==1)xpr+=" " 711if(bit.combinator!==" ")xpr+=bit.combinator+" " 712xpr+=bit} 713this.raw=xpr} 714return this.raw} 715var replacer=function(rawMatch,separator,combinator,combinatorChildren,tagName,id,className,attributeKey,attributeOperator,attributeQuote,attributeValue,pseudoMarker,pseudoClass,pseudoQuote,pseudoClassQuotedValue,pseudoClassValue){var expression,current 716if(separator||!this.length){expression=this[this.length++]=new Expression 717if(separator)return''} 718if(!expression)expression=this[this.length-1] 719if(combinator||combinatorChildren||!expression.length){current=expression[expression.length++]=new Part(combinator)} 720if(!current)current=expression[expression.length-1] 721if(tagName){current.tag=unescape(tagName)}else if(id){current.id=unescape(id)}else if(className){var unescaped=unescape(className) 722var classes=current.classes||(current.classes={}) 723if(!classes[unescaped]){classes[unescaped]=escape(className) 724var classList=current.classList||(current.classList=[]) 725classList.push(unescaped) 726classList.sort()}}else if(pseudoClass){pseudoClassValue=pseudoClassValue||pseudoClassQuotedValue;(current.pseudos||(current.pseudos=[])).push({type:pseudoMarker.length==1?'class':'element',name:unescape(pseudoClass),escapedName:escape(pseudoClass),value:pseudoClassValue?unescape(pseudoClassValue):null,escapedValue:pseudoClassValue?escape(pseudoClassValue):null})}else if(attributeKey){attributeValue=attributeValue?escape(attributeValue):null;(current.attributes||(current.attributes=[])).push({operator:attributeOperator,name:unescape(attributeKey),escapedName:escape(attributeKey),value:attributeValue?unescape(attributeValue):null,escapedValue:attributeValue?escape(attributeValue):null})} 727return''} 728var Expressions=function Expressions(expression){this.length=0 729var self=this 730var original=expression,replaced 731while(expression){replaced=expression.replace(slickRe,function(){return replacer.apply(self,arguments)}) 732if(replaced===expression)throw new Error(original+' is an invalid expression') 733expression=replaced}} 734Expressions.prototype.toString=function(){if(!this.raw){var expressions=[] 735for(var i=0,expression;expression=this[i++];)expressions.push(expression) 736this.raw=expressions.join(", ")} 737return this.raw} 738var cache={} 739var parse=function(expression){if(expression==null)return null 740expression=(''+expression).replace(/^\s+|\s+$/g,'') 741return cache[expression]||(cache[expression]=new Expressions(expression))} 742module.exports=parse},{}],99:[function(require,module,exports){var process=module.exports={};var cachedSetTimeout;var cachedClearTimeout;function defaultSetTimout(){throw new Error('setTimeout has not been defined')} 743function defaultClearTimeout(){throw new Error('clearTimeout has not been defined')}(function(){try{if(typeof setTimeout==='function'){cachedSetTimeout=setTimeout}else{cachedSetTimeout=defaultSetTimout}}catch(e){cachedSetTimeout=defaultSetTimout} 744try{if(typeof clearTimeout==='function'){cachedClearTimeout=clearTimeout}else{cachedClearTimeout=defaultClearTimeout}}catch(e){cachedClearTimeout=defaultClearTimeout}}()) 745function runTimeout(fun){if(cachedSetTimeout===setTimeout){return setTimeout(fun,0)} 746if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout){cachedSetTimeout=setTimeout;return setTimeout(fun,0)} 747try{return cachedSetTimeout(fun,0)}catch(e){try{return cachedSetTimeout.call(null,fun,0)}catch(e){return cachedSetTimeout.call(this,fun,0)}}} 748function runClearTimeout(marker){if(cachedClearTimeout===clearTimeout){return clearTimeout(marker)} 749if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout){cachedClearTimeout=clearTimeout;return clearTimeout(marker)} 750try{return cachedClearTimeout(marker)}catch(e){try{return cachedClearTimeout.call(null,marker)}catch(e){return cachedClearTimeout.call(this,marker)}}} 751var queue=[];var draining=!1;var currentQueue;var queueIndex=-1;function cleanUpNextTick(){if(!draining||!currentQueue){return} 752draining=!1;if(currentQueue.length){queue=currentQueue.concat(queue)}else{queueIndex=-1} 753if(queue.length){drainQueue()}} 754function drainQueue(){if(draining){return} 755var timeout=runTimeout(cleanUpNextTick);draining=!0;var len=queue.length;while(len){currentQueue=queue;queue=[];while(++queueIndex<len){if(currentQueue){currentQueue[queueIndex].run()}} 756queueIndex=-1;len=queue.length} 757currentQueue=null;draining=!1;runClearTimeout(timeout)} 758process.nextTick=function(fun){var args=new Array(arguments.length-1);if(arguments.length>1){for(var i=1;i<arguments.length;i++){args[i-1]=arguments[i]}} 759queue.push(new Item(fun,args));if(queue.length===1&&!draining){runTimeout(drainQueue)}};function Item(fun,array){this.fun=fun;this.array=array} 760Item.prototype.run=function(){this.fun.apply(null,this.array)};process.title='browser';process.browser=!0;process.env={};process.argv=[];process.version='';process.versions={};function noop(){} 761process.on=noop;process.addListener=noop;process.once=noop;process.off=noop;process.removeListener=noop;process.removeAllListeners=noop;process.emit=noop;process.prependListener=noop;process.prependOnceListener=noop;process.listeners=function(name){return[]} 762process.binding=function(name){throw new Error('process.binding is not supported')};process.cwd=function(){return'/'};process.chdir=function(dir){throw new Error('process.chdir is not supported')};process.umask=function(){return 0}},{}],100:[function(require,module,exports){(function(setImmediate,clearImmediate){(function(){var nextTick=require('process/browser.js').nextTick;var apply=Function.prototype.apply;var slice=Array.prototype.slice;var immediateIds={};var nextImmediateId=0;exports.setTimeout=function(){return new Timeout(apply.call(setTimeout,window,arguments),clearTimeout)};
762exports.setInterval=function(){return new Timeout(apply.call(setInterval,window,arguments),clearInterval)};exports.clearTimeout=exports.clearInterval=function(timeout){timeout.close()};function Timeout(id,clearFn){this._id=id;this._clearFn=clearFn} 763Timeout.prototype.unref=Timeout.prototype.ref=function(){};Timeout.prototype.close=function(){this._clearFn.call(window,this._id)};exports.enroll=function(item,msecs){clearTimeout(item._idleTimeoutId);item._idleTimeout=msecs};exports.unenroll=function(item){clearTimeout(item._idleTimeoutId);item._idleTimeout=-1};exports._unrefActive=exports.active=function(item){clearTimeout(item._idleTimeoutId);var msecs=item._idleTimeout;if(msecs>=0){item._idleTimeoutId=setTimeout(function onTimeout(){if(item._onTimeout) 764item._onTimeout();},msecs)}};exports.setImmediate=typeof setImmediate==="function"?setImmediate:function(fn){var id=nextImmediateId++;var args=arguments.length<2?!1:slice.call(arguments,1);immediateIds[id]=!0;nextTick(function onNextTick(){if(immediateIds[id]){if(args){fn.apply(null,args)}else{fn.call(null)} 765exports.clearImmediate(id)}});return id};exports.clearImmediate=typeof clearImmediate==="function"?clearImmediate:function(id){delete immediateIds[id]}}).call(this)}).call(this,require("timers").setImmediate,require("timers").clearImmediate)},{"process/browser.js":99,"timers":100}]},{},[1]) 766;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.