/*! * isotope packaged v3.0.1 * * licensed gplv3 for open source use * or isotope commercial license for commercial use * * http://isotope.metafizzy.co * copyright 2016 metafizzy */ !function(t,e){"use strict";"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jquerybridget=e(t,t.jquery)}(window,function(t,e){"use strict";function i(i,s,a){function u(t,e,n){var o,s="$()."+i+'("'+e+'")';return t.each(function(t,u){var h=a.data(u,i);if(!h)return void r(i+" not initialized. cannot call methods, i.e. "+s);var d=h[e];if(!d||"_"==e.charat(0))return void r(s+" is not a valid method");var l=d.apply(h,n);o=void 0===o?l:o}),void 0!==o?o:t}function h(t,e){t.each(function(t,n){var o=a.data(n,i);o?(o.option(e),o._init()):(o=new s(n,e),a.data(n,i,o))})}a=a||e||t.jquery,a&&(s.prototype.option||(s.prototype.option=function(t){a.isplainobject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return u(this,t,e)}return h(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=array.prototype.slice,s=t.console,r="undefined"==typeof s?function(){}:function(t){s.error(t)};return n(e||t.jquery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.evemitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexof(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceevents=this._onceevents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexof(e);return-1!=n&&i.splice(n,1),this}},e.emitevent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=0,o=i[n];e=e||[];for(var s=this._onceevents&&this._onceevents[t];o;){var r=s&&s[o];r&&(this.off(t,o),delete s[o]),o.apply(this,e),n+=r?0:1,o=i[n]}return this}},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return e()}):"object"==typeof module&&module.exports?module.exports=e():t.getsize=e()}(window,function(){"use strict";function t(t){var e=parsefloat(t),i=-1==t.indexof("%")&&!isnan(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerwidth:0,innerheight:0,outerwidth:0,outerheight:0},e=0;h>e;e++){var i=u[e];t[i]=0}return t}function n(t){var e=getcomputedstyle(t);return e||a("style returned "+e+". are you running this code in a hidden iframe on firefox? see http://bit.ly/getsizebug1"),e}function o(){if(!d){d=!0;var e=document.createelement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderstyle="solid",e.style.borderwidth="1px 2px 3px 4px",e.style.boxsizing="border-box";var i=document.body||document.documentelement;i.appendchild(e);var o=n(e);s.isboxsizeouter=r=200==t(o.width),i.removechild(e)}}function s(e){if(o(),"string"==typeof e&&(e=document.queryselector(e)),e&&"object"==typeof e&&e.nodetype){var s=n(e);if("none"==s.display)return i();var a={};a.width=e.offsetwidth,a.height=e.offsetheight;for(var d=a.isborderbox="border-box"==s.boxsizing,l=0;h>l;l++){var f=u[l],c=s[f],m=parsefloat(c);a[f]=isnan(m)?0:m}var p=a.paddingleft+a.paddingright,y=a.paddingtop+a.paddingbottom,g=a.marginleft+a.marginright,v=a.margintop+a.marginbottom,_=a.borderleftwidth+a.borderrightwidth,i=a.bordertopwidth+a.borderbottomwidth,z=d&&r,x=t(s.width);x!==!1&&(a.width=x+(z?0:p+_));var s=t(s.height);return s!==!1&&(a.height=s+(z?0:y+i)),a.innerwidth=a.width-(p+_),a.innerheight=a.height-(y+i),a.outerwidth=a.width+g,a.outerheight=a.height+v,a}}var r,a="undefined"==typeof console?e:function(t){console.error(t)},u=["paddingleft","paddingright","paddingtop","paddingbottom","marginleft","marginright","margintop","marginbottom","borderleftwidth","borderrightwidth","bordertopwidth","borderbottomwidth"],h=u.length,d=!1;return s}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesselector=e()}(window,function(){"use strict";var t=function(){var t=element.prototype;if(t.matches)return"matches";if(t.matchesselector)return"matchesselector";for(var e=["webkit","moz","ms","o"],i=0;ir?"round":"floor";s=math[a](s),this.cols=math.max(s,1)},i.prototype.getcontainerwidth=function(){var t=this._getoption("fitwidth"),i=t?this.element.parentnode:this.element,n=e(i);this.containerwidth=n&&n.innerwidth},i.prototype._getitemlayoutposition=function(t){t.getsize();var e=t.size.outerwidth%this.columnwidth,i=e&&1>e?"round":"ceil",n=math[i](t.size.outerwidth/this.columnwidth);n=math.min(n,this.cols);for(var o=this._getcolgroup(n),s=math.min.apply(math,o),r=o.indexof(s),a={x:this.columnwidth*r,y:s},u=s+t.size.outerheight,h=this.cols+1-o.length,d=0;h>d;d++)this.colys[r+d]=u;return a},i.prototype._getcolgroup=function(t){if(2>t)return this.colys;for(var e=[],i=this.cols+1-t,n=0;i>n;n++){var o=this.colys.slice(n,n+t);e[n]=math.max.apply(math,o)}return e},i.prototype._managestamp=function(t){var i=e(t),n=this._getelementoffset(t),o=this._getoption("originleft"),s=o?n.left:n.right,r=s+i.outerwidth,a=math.floor(s/this.columnwidth);a=math.max(0,a);var u=math.floor(r/this.columnwidth);u-=r%this.columnwidth?0:1,u=math.min(this.cols-1,u);for(var h=this._getoption("origintop"),d=(h?n.top:n.bottom)+i.outerheight,l=a;u>=l;l++)this.colys[l]=math.max(d,this.colys[l])},i.prototype._getcontainersize=function(){this.maxy=math.max.apply(math,this.colys);var t={height:this.maxy};return this._getoption("fitwidth")&&(t.width=this._getcontainerfitwidth()),t},i.prototype._getcontainerfitwidth=function(){for(var t=0,e=this.cols;--e&&0===this.colys[e];)t++;return(this.cols-t)*this.columnwidth-this.gutter},i.prototype.needsresizelayout=function(){var t=this.containerwidth;return this.getcontainerwidth(),t!=this.containerwidth},i}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode"),require("masonry-layout")):e(t.isotope.layoutmode,t.masonry)}(window,function(t,e){"use strict";var i=t.create("masonry"),n=i.prototype,o={_getelementoffset:!0,layout:!0,_getmeasurement:!0};for(var s in e.prototype)o[s]||(n[s]=e.prototype[s]);var r=n.measurecolumns;n.measurecolumns=function(){this.items=this.isotope.filtereditems,r.call(this)};var a=n._getoption;return n._getoption=function(t){return"fitwidth"==t?void 0!==this.options.isfitwidth?this.options.isfitwidth:this.options.fitwidth:a.apply(this.isotope,arguments)},i}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],e):"object"==typeof exports?module.exports=e(require("../layout-mode")):e(t.isotope.layoutmode)}(window,function(t){"use strict";var e=t.create("fitrows"),i=e.prototype;return i._resetlayout=function(){this.x=0,this.y=0,this.maxy=0,this._getmeasurement("gutter","outerwidth")},i._getitemlayoutposition=function(t){t.getsize();var e=t.size.outerwidth+this.gutter,i=this.isotope.size.innerwidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxy);var n={x:this.x,y:this.y};return this.maxy=math.max(this.maxy,this.y+t.size.outerheight),this.x+=e,n},i._getcontainersize=function(){return{height:this.maxy}},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode")):e(t.isotope.layoutmode)}(window,function(t){"use strict";var e=t.create("vertical",{horizontalalignment:0}),i=e.prototype;return i._resetlayout=function(){this.y=0},i._getitemlayoutposition=function(t){t.getsize();var e=(this.isotope.size.innerwidth-t.size.outerwidth)*this.options.horizontalalignment,i=this.y;return this.y+=t.size.outerheight,{x:e,y:i}},i._getcontainersize=function(){return{height:this.y}},e}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],function(i,n,o,s,r,a){return e(t,i,n,o,s,r,a)}):"object"==typeof module&&module.exports?module.exports=e(t,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("isotope/js/item"),require("isotope/js/layout-mode"),require("isotope/js/layout-modes/masonry"),require("isotope/js/layout-modes/fit-rows"),require("isotope/js/layout-modes/vertical")):t.isotope=e(t,t.outlayer,t.getsize,t.matchesselector,t.fizzyuiutils,t.isotope.item,t.isotope.layoutmode)}(window,function(t,e,i,n,o,s,r){function a(t,e){return function(i,n){for(var o=0;oa||a>r){var u=void 0!==e[s]?e[s]:e,h=u?1:-1;return(r>a?1:-1)*h}}return 0}}var u=t.jquery,h=string.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},d=e.create("isotope",{layoutmode:"masonry",isjqueryfiltering:!0,sortascending:!0});d.item=s,d.layoutmode=r;var l=d.prototype;l._create=function(){this.itemguid=0,this._sorters={},this._getsorters(),e.prototype._create.call(this),this.modes={},this.filtereditems=this.items,this.sorthistory=["original-order"];for(var t in r.modes)this._initlayoutmode(t)},l.reloaditems=function(){this.itemguid=0,e.prototype.reloaditems.call(this)},l._itemize=function(){for(var t=e.prototype._itemize.apply(this,arguments),i=0;ii;i++){var n=t[i];n.updatesortdata()}};var f=function(){function t(t){if("string"!=typeof t)return t;var i=h(t).split(" "),n=i[0],o=n.match(/^\[(.+)\]$/),s=o&&o[1],r=e(s,n),a=d.sortdataparsers[i[1]]; return t=a?function(t){return t&&a(r(t))}:function(t){return t&&r(t)}}function e(t,e){return t?function(e){return e.getattribute(t)}:function(t){var i=t.queryselector(e);return i&&i.textcontent}}return t}();d.sortdataparsers={parseint:function(t){return parseint(t,10)},parsefloat:function(t){return parsefloat(t)}},l._sort=function(){var t=this.options.sortby;if(t){var e=[].concat.apply(t,this.sorthistory),i=a(e,this.options.sortascending);this.filtereditems.sort(i),t!=this.sorthistory[0]&&this.sorthistory.unshift(t)}},l._mode=function(){var t=this.options.layoutmode,e=this.modes[t];if(!e)throw new error("no layout mode: "+t);return e.options=this.options[t],e},l._resetlayout=function(){e.prototype._resetlayout.call(this),this._mode()._resetlayout()},l._getitemlayoutposition=function(t){return this._mode()._getitemlayoutposition(t)},l._managestamp=function(t){this._mode()._managestamp(t)},l._getcontainersize=function(){return this._mode()._getcontainersize()},l.needsresizelayout=function(){return this._mode().needsresizelayout()},l.appended=function(t){var e=this.additems(t);if(e.length){var i=this._filterrevealadded(e);this.filtereditems=this.filtereditems.concat(i)}},l.prepended=function(t){var e=this._itemize(t);if(e.length){this._resetlayout(),this._managestamps();var i=this._filterrevealadded(e);this.layoutitems(this.filtereditems),this.filtereditems=i.concat(this.filtereditems),this.items=e.concat(this.items)}},l._filterrevealadded=function(t){var e=this._filter(t);return this.hide(e.needhide),this.reveal(e.matches),this.layoutitems(e.matches,!0),e.matches},l.insert=function(t){var e=this.additems(t);if(e.length){var i,n,o=e.length;for(i=0;o>i;i++)n=e[i],this.element.appendchild(n.element);var s=this._filter(e).matches;for(i=0;o>i;i++)e[i].islayoutinstant=!0;for(this.arrange(),i=0;o>i;i++)delete e[i].islayoutinstant;this.reveal(s)}};var c=l.remove;return l.remove=function(t){t=o.makearray(t);var e=this.getitems(t);c.call(this,t);for(var i=e&&e.length,n=0;i&&i>n;n++){var s=e[n];o.removefrom(this.filtereditems,s)}},l.shuffle=function(){for(var t=0;t