/*! * masonry packaged v3.0.0 * cascading grid layout library * http://masonry.desandro.com * mit license * by david desandro */ (function(t){"use strict";function e(t){if(t){if("string"==typeof n[t])return t;t=t.charat(0).touppercase()+t.slice(1);for(var e,o=0,r=i.length;r>o;o++)if(e=i[o]+t,"string"==typeof n[e])return e}}var i="webkit moz ms ms o".split(" "),n=document.documentelement.style;"function"==typeof define&&define.amd?define(function(){return e}):t.getstyleproperty=e})(window),function(t){"use strict";function e(t){var e=parsefloat(t),i=-1===t.indexof("%")&&!isnan(e);return i&&e}function i(){for(var t={width:0,height:0,innerwidth:0,innerheight:0,outerwidth:0,outerheight:0},e=0,i=s.length;i>e;e++){var n=s[e];t[n]=0}return t}function n(t){function n(t){if("string"==typeof t&&(t=document.queryselector(t)),t&&"object"==typeof t&&t.nodetype){var n=r(t);if("none"===n.display)return i();var h={};h.width=t.offsetwidth,h.height=t.offsetheight;for(var p=h.isborderbox=!(!a||!n[a]||"border-box"!==n[a]),u=0,f=s.length;f>u;u++){var d=s[u],c=n[d],l=parsefloat(c);h[d]=isnan(l)?0:l}var m=h.paddingleft+h.paddingright,y=h.paddingtop+h.paddingbottom,g=h.marginleft+h.marginright,v=h.margintop+h.marginbottom,_=h.borderleftwidth+h.borderrightwidth,b=h.bordertopwidth+h.borderbottomwidth,l=p&&o,e=e(n.width);e!==!1&&(h.width=e+(l?0:m+_));var i=e(n.height);return i!==!1&&(h.height=i+(l?0:y+b)),h.innerwidth=h.width-(m+_),h.innerheight=h.height-(y+b),h.outerwidth=h.width+g,h.outerheight=h.height+v,h}}var o,a=t("boxsizing");return function(){if(a){var t=document.createelement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderstyle="solid",t.style.borderwidth="1px 2px 3px 4px",t.style[a]="border-box";var i=document.body||document.documentelement;i.appendchild(t);var n=r(t);o=200===e(n.width),i.removechild(t)}}(),n}var o=document.defaultview,r=o&&o.getcomputedstyle?function(t){return o.getcomputedstyle(t,null)}:function(t){return t.currentstyle},s=["paddingleft","paddingright","paddingtop","paddingbottom","marginleft","marginright","margintop","marginbottom","borderleftwidth","borderrightwidth","bordertopwidth","borderbottomwidth"];"function"==typeof define&&define.amd?define(["get-style-property"],n):t.getsize=n(t.getstyleproperty)}(window),function(t){"use strict";var e=document.documentelement,i=function(){};e.addeventlistener?i=function(t,e,i){t.addeventlistener(e,i,!1)}:e.attachevent&&(i=function(e,i,n){e[i+n]=n.handleevent?function(){var e=t.event;e.target=e.target||e.srcelement,n.handleevent.call(n,e)}:function(){var i=t.event;i.target=i.target||i.srcelement,n.call(e,i)},e.attachevent("on"+i,e[i+n])});var n=function(){};e.removeeventlistener?n=function(t,e,i){t.removeeventlistener(e,i,!1)}:e.detachevent&&(n=function(t,e,i){t.detachevent("on"+e,t[e+i]);try{delete t[e+i]}catch(n){t[e+i]=void 0}});var o={bind:i,unbind:n};"function"==typeof define&&define.amd?define(o):t.eventie=o}(this),function(t){"use strict";function e(t){"function"==typeof t&&(e.isready?t():r.push(t))}function i(t){var i="readystatechange"===t.type&&"complete"!==o.readystate;if(!e.isready&&!i){e.isready=!0;for(var n=0,s=r.length;s>n;n++){var a=r[n];a()}}}function n(n){return n.bind(o,"domcontentloaded",i),n.bind(o,"readystatechange",i),n.bind(t,"load",i),e}var o=t.document,r=[];e.isready=!1,"function"==typeof define&&define.amd?define(["eventie"],n):t.docready=n(t.eventie)}(this),function(t){"use strict";function e(){}function i(t,e){if(o)return e.indexof(t);for(var i=e.length;i--;)if(e[i]===t)return i;return-1}var n=e.prototype,o=array.prototype.indexof?!0:!1;n._getevents=function(){return this._events||(this._events={})},n.getlisteners=function(t){var e,i,n=this._getevents();if("object"==typeof t){e={};for(i in n)n.hasownproperty(i)&&t.test(i)&&(e[i]=n[i])}else e=n[t]||(n[t]=[]);return e},n.getlistenersasobject=function(t){var e,i=this.getlisteners(t);return i instanceof array&&(e={},e[t]=i),e||i},n.addlistener=function(t,e){var n,o=this.getlistenersasobject(t);for(n in o)o.hasownproperty(n)&&-1===i(e,o[n])&&o[n].push(e);return this},n.on=n.addlistener,n.defineevent=function(t){return this.getlisteners(t),this},n.defineevents=function(t){for(var e=0;t.length>e;e+=1)this.defineevent(t[e]);return this},n.removelistener=function(t,e){var n,o,r=this.getlistenersasobject(t);for(o in r)r.hasownproperty(o)&&(n=i(e,r[o]),-1!==n&&r[o].splice(n,1));return this},n.off=n.removelistener,n.addlisteners=function(t,e){return this.manipulatelisteners(!1,t,e)},n.removelisteners=function(t,e){return this.manipulatelisteners(!0,t,e)},n.manipulatelisteners=function(t,e,i){var n,o,r=t?this.removelistener:this.addlistener,s=t?this.removelisteners:this.addlisteners;if("object"!=typeof e||e instanceof regexp)for(n=i.length;n--;)r.call(this,e,i[n]);else for(n in e)e.hasownproperty(n)&&(o=e[n])&&("function"==typeof o?r.call(this,n,o):s.call(this,n,o));return this},n.removeevent=function(t){var e,i=typeof t,n=this._getevents();if("string"===i)delete n[t];else if("object"===i)for(e in n)n.hasownproperty(e)&&t.test(e)&&delete n[e];else delete this._events;return this},n.emitevent=function(t,e){var i,n,o,r=this.getlistenersasobject(t);for(n in r)if(r.hasownproperty(n))for(i=r[n].length;i--;)o=e?r[n][i].apply(null,e):r[n][i](),o===!0&&this.removelistener(t,r[n][i]);return this},n.trigger=n.emitevent,n.emit=function(t){var e=array.prototype.slice.call(arguments,1);return this.emitevent(t,e)},"function"==typeof define&&define.amd?define(function(){return e}):t.eventemitter=e}(this),function(t){"use strict";function e(){}function i(t){function i(e){e.prototype.option||(e.prototype.option=function(e){t.isplainobject(e)&&(this.options=t.extend(!0,this.options,e))})}function o(e,i){t.fn[e]=function(o){if("string"==typeof o){for(var s=n.call(arguments,1),a=0,h=this.length;h>a;a++){var p=this[a],u=t.data(p,e);if(u)if(t.isfunction(u[o])&&"_"!==o.charat(0)){var f=u[o].apply(u,s);if(void 0!==f)return f}else r("no such method '"+o+"' for "+e+" instance");else r("cannot call methods on "+e+" prior to initialization; "+"attempted to call '"+o+"'")}return this}return this.each(function(){var n=t.data(this,e);n?(n.option(o),n._init()):(n=new i(this,o),t.data(this,e,n))})}}if(t){var r="undefined"==typeof console?e:function(t){console.error(t)};t.bridget=function(t,e){i(e),o(t,e)}}}var n=array.prototype.slice;"function"==typeof define&&define.amd?define(["jquery"],i):i(t.jquery)}(window),function(t,e){"use strict";function i(t,e){return t[a](e)}function n(t){if(!t.parentnode){var e=document.createdocumentfragment();e.appendchild(t)}}function o(t,e){n(t);for(var i=t.parentnode.queryselectorall(e),o=0,r=i.length;r>o;o++)if(i[o]===t)return!0;return!1}function r(t,e){return n(t),i(t,e)}var s,a=function(){if(e.matchesselector)return"matchesselector";for(var t=["webkit","moz","ms","o"],i=0,n=t.length;n>i;i++){var o=t[i],r=o+"matchesselector";if(e[r])return r}}();if(a){var h=document.createelement("div"),p=i(h,"div");s=p?i:r}else s=o;"function"==typeof define&&define.amd?define(function(){return s}):window.matchesselector=s}(this,element.prototype),function(t){"use strict";function e(t,e){for(var i in e)t[i]=e[i];return t}function i(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}var n=t.getsize,o=t.getstyleproperty,r=t.eventemitter,s=document.defaultview,a=s&&s.getcomputedstyle?function(t){return s.getcomputedstyle(t,null)}:function(t){return t.currentstyle},h=o("transition"),p=o("transform"),u=h&&p,f=!!o("perspective"),d={webkittransition:"webkittransitionend",moztransition:"transitionend",otransition:"otransitionend",transition:"transitionend"}[h],c=["transform","transition","transitionduration","transitionproperty"],l=function(){for(var t={},e=0,i=c.length;i>e;e++){var n=c[e],r=o(n);r&&r!==n&&(t[n]=r)}return t}();e(i.prototype,r.prototype),i.prototype._create=function(){this.css({position:"absolute"})},i.prototype.handleevent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.prototype.getsize=function(){this.size=n(this.element)},i.prototype.css=function(t){var e=this.element.style;for(var i in t){var n=l[i]||i;e[n]=t[i]}},i.prototype.getposition=function(){var t=a(this.element),e=this.layout.options,i=e.isoriginleft,n=e.isorigintop,o=parseint(t[i?"left":"right"],10),r=parseint(t[n?"top":"bottom"],10);o=isnan(o)?0:o,r=isnan(r)?0:r;var s=this.layout.size;o-=i?s.paddingleft:s.paddingright,r-=n?s.paddingtop:s.paddingbottom,this.position.x=o,this.position.y=r},i.prototype.layoutposition=function(){var t=this.layout.size,e=this.layout.options,i={};e.isoriginleft?(i.left=this.position.x+t.paddingleft+"px",i.right=""):(i.right=this.position.x+t.paddingright+"px",i.left=""),e.isorigintop?(i.top=this.position.y+t.paddingtop+"px",i.bottom=""):(i.bottom=this.position.y+t.paddingbottom+"px",i.top=""),this.css(i),this.emitevent("layout",[this])};var m=f?function(t,e){return"translate3d("+t+"px, "+e+"px, 0)"}:function(t,e){return"translate("+t+"px, "+e+"px)"};i.prototype._transitionto=function(t,e){this.getposition();var i=this.position.x,n=this.position.y,o=parseint(t,10),r=parseint(e,10),s=o===this.position.x&&r===this.position.y;if(this.setposition(t,e),s&&!this.istransitioning)return this.layoutposition(),void 0;var a=t-i,h=e-n,p={},u=this.layout.options;a=u.isoriginleft?a:-a,h=u.isorigintop?h:-h,p.transform=m(a,h),this.transition({to:p,ontransitionend:this.layoutposition,iscleaning:!0})},i.prototype.goto=function(t,e){this.setposition(t,e),this.layoutposition()},i.prototype.moveto=u?i.prototype._transitionto:i.prototype.goto,i.prototype.setposition=function(t,e){this.position.x=parseint(t,10),this.position.y=parseint(e,10)},i.prototype._nontransition=function(t){this.css(t.to),t.iscleaning&&this._removestyles(t.to),t.ontransitionend&&t.ontransitionend.call(this)},i.prototype._transition=function(t){var e=this.layout.options.transitionduration;if(!parsefloat(e))return this._nontransition(t),void 0;var i=t.to,n=[];for(var o in i)n.push(o);var r={};if(r.transitionproperty=n.join(","),r.transitionduration=e,this.element.addeventlistener(d,this,!1),(t.iscleaning||t.ontransitionend)&&this.on("transitionend",function(e){return t.iscleaning&&e._removestyles(i),t.ontransitionend&&t.ontransitionend.call(e),!0}),t.from){this.css(t.from);var s=this.element.offsetheight;s=null}this.css(r),this.css(i),this.istransitioning=!0},i.prototype.transition=i.prototype[h?"_transition":"_nontransition"],i.prototype.onwebkittransitionend=function(t){this.ontransitionend(t)},i.prototype.onotransitionend=function(t){this.ontransitionend(t)},i.prototype.ontransitionend=function(t){t.target===this.element&&(this.removetransitionstyles(),this.element.removeeventlistener(d,this,!1),this.istransitioning=!1,this.emitevent("transitionend",[this]))},i.prototype._removestyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var y={transitionproperty:"",transitionduration:""};i.prototype.removetransitionstyles=function(){this.css(y)},i.prototype.removeelem=function(){this.element.parentnode.removechild(this.element),this.emitevent("remove",[this])},i.prototype.remove=h?function(){var t=this;this.on("transitionend",function(){return t.removeelem(),!0}),this.hide()}:i.prototype.removeelem,i.prototype.reveal=function(){this.css({display:""});var t=this.layout.options;this.transition({from:t.hiddenstyle,to:t.visiblestyle,iscleaning:!0})},i.prototype.hide=function(){this.css({display:""});var t=this.layout.options;this.transition({from:t.visiblestyle,to:t.hiddenstyle,iscleaning:!0,ontransitionend:function(){this.css({display:"none"})}})},i.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},t.outlayer={item:i}}(window),function(t){"use strict";function e(t,e){for(var i in e)t[i]=e[i];return t}function i(t){return"[object array]"===v.call(t)}function n(t){var e=[];if(i(t))e=t;else if("number"==typeof t.length)for(var n=0,o=t.length;o>n;n++)e.push(t[n]);else e.push(t);return e}function o(t){return t.replace(/(.)([a-z])/g,function(t,e,i){return e+"-"+i}).tolowercase()}function r(t,i){if("string"==typeof t&&(t=l.queryselector(t)),!t||!_(t))return m&&m.error("bad "+this.settings.namespace+" element: "+t),void 0;this.element=t,this.options=e({},this.options),e(this.options,i);var n=++l;this.element.outlayerguid=n,e[n]=this,this._create(),this.options.isinitlayout&&this.layout()}function s(t,i){t.prototype[i]=e({},r.prototype[i])}var a=t.outlayer,h=a.item,p=t.docready,u=t.eventemitter,f=t.eventie,d=t.getsize,c=t.matchesselector,l=t.document,m=t.console,y=t.jquery,g=function(){},v=object.prototype.tostring,_="object"==typeof htmlelement?function(t){return t instanceof htmlelement}:function(t){return t&&"object"==typeof t&&1===t.nodetype&&"string"==typeof t.nodename},b=array.prototype.indexof?function(t,e){return t.indexof(e)}:function(t,e){for(var i=0,n=t.length;n>i;i++)if(t[i]===e)return i;return-1},l=0,e={};r.prototype.settings={namespace:"outlayer",item:a.item},r.prototype.options={containerstyle:{position:"relative"},isinitlayout:!0,isoriginleft:!0,isorigintop:!0,isresizebound:!0,transitionduration:"0.4s",hiddenstyle:{opacity:0,transform:"scale(0.001)"},visiblestyle:{opacity:1,transform:"scale(1)"}},e(r.prototype,u.prototype),r.prototype._create=function(){this.reloaditems(),this.stamps=[],this.stamp(this.options.stamp),e(this.element.style,this.options.containerstyle),this.options.isresizebound&&this.bindresize()},r.prototype.reloaditems=function(){this.items=this._getitems(this.element.children)},r.prototype._getitems=function(t){for(var e=this._filterfinditemelements(t),i=this.settings.item,n=[],o=0,r=e.length;r>o;o++){var s=e[o],a=new i(s,this,this.options.itemoptions);n.push(a)}return n},r.prototype._filterfinditemelements=function(t){t=n(t);var e=this.options.itemselector;if(!e)return t;for(var i=[],o=0,r=t.length;r>o;o++){var s=t[o];c(s,e)&&i.push(s);for(var a=s.queryselectorall(e),h=0,p=a.length;p>h;h++)i.push(a[h])}return i},r.prototype.getitemelements=function(){for(var t=[],e=0,i=this.items.length;i>e;e++)t.push(this.items[e].element);return t},r.prototype.layout=function(){this._resetlayout(),this._managestamps();var t=void 0!==this.options.islayoutinstant?this.options.islayoutinstant:!this._islayoutinited;this.layoutitems(this.items,t),this._islayoutinited=!0},r.prototype._init=r.prototype.layout,r.prototype._resetlayout=function(){this.getsize()},r.prototype.getsize=function(){this.size=d(this.element)},r.prototype._getmeasurement=function(t,e){var i,n=this.options[t];n?("string"==typeof n?i=this.element.queryselector(n):_(n)&&(i=n),this[t]=i?d(i)[e]:n):this[t]=0},r.prototype.layoutitems=function(t,e){t=this._getitemsforlayout(t),this._layoutitems(t,e),this._postlayout()},r.prototype._getitemsforlayout=function(t){for(var e=[],i=0,n=t.length;n>i;i++){var o=t[i];o.isignored||e.push(o)}return e},r.prototype._layoutitems=function(t,e){if(!t||!t.length)return this.emitevent("layoutcomplete",[this,t]),void 0;this._itemson(t,"layout",function(){this.emitevent("layoutcomplete",[this,t])});for(var i=[],n=0,o=t.length;o>n;n++){var r=t[n],s=this._getitemlayoutposition(r);s.item=r,s.isinstant=e,i.push(s)}this._processlayoutqueue(i)},r.prototype._getitemlayoutposition=function(){return{x:0,y:0}},r.prototype._processlayoutqueue=function(t){for(var e=0,i=t.length;i>e;e++){var n=t[e];this._positionitem(n.item,n.x,n.y,n.isinstant)}},r.prototype._positionitem=function(t,e,i,n){n?t.goto(e,i):t.moveto(e,i)},r.prototype._postlayout=function(){var t=this._getcontainersize();t&&(this._setcontainermeasure(t.width,!0),this._setcontainermeasure(t.height,!1))},r.prototype._getcontainersize=g,r.prototype._setcontainermeasure=function(t,e){if(void 0!==t){var i=this.size;i.isborderbox&&(t+=e?i.paddingleft+i.paddingright+i.borderleftwidth+i.borderrightwidth:i.paddingbottom+i.paddingtop+i.bordertopwidth+i.borderbottomwidth),t=math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},r.prototype._itemson=function(t,e,i){function n(){return o++,o===r&&i.call(s),!0}for(var o=0,r=t.length,s=this,a=0,h=t.length;h>a;a++){var p=t[a];p.on(e,n)}},r.prototype.ignore=function(t){var e=this.getitem(t);e&&(e.isignored=!0)},r.prototype.unignore=function(t){var e=this.getitem(t);e&&delete e.isignored},r.prototype.stamp=function(t){if(t=this._find(t)){this.stamps=this.stamps.concat(t);for(var e=0,i=t.length;i>e;e++){var n=t[e];this.ignore(n)}}},r.prototype.unstamp=function(t){if(t=this._find(t))for(var e=0,i=t.length;i>e;e++){var n=t[e],o=b(this.stamps,n);-1!==o&&this.stamps.splice(o,1),this.unignore(n)}},r.prototype._find=function(t){return t?("string"==typeof t&&(t=this.element.queryselectorall(t)),t=n(t)):void 0},r.prototype._managestamps=function(){if(this.stamps&&this.stamps.length){this._getboundingrect();for(var t=0,e=this.stamps.length;e>t;t++){var i=this.stamps[t];this._managestamp(i)}}},r.prototype._getboundingrect=function(){var t=this.element.getboundingclientrect(),e=this.size;this._boundingrect={left:t.left+e.paddingleft+e.borderleftwidth,top:t.top+e.paddingtop+e.bordertopwidth,right:t.right-(e.paddingright+e.borderrightwidth),bottom:t.bottom-(e.paddingbottom+e.borderbottomwidth)}},r.prototype._managestamp=g,r.prototype._getelementoffset=function(t){var e=t.getboundingclientrect(),i=this._boundingrect,n=d(t),o={left:e.left-i.left-n.marginleft,top:e.top-i.top-n.margintop,right:i.right-e.right-n.marginright,bottom:i.bottom-e.bottom-n.marginbottom};return o},r.prototype.handleevent=function(t){var e="on"+t.type;this[e]&&this[e](t)},r.prototype.bindresize=function(){this.isresizebound||(f.bind(t,"resize",this),this.isresizebound=!0)},r.prototype.unbindresize=function(){f.unbind(t,"resize",this),this.isresizebound=!1},r.prototype.onresize=function(){function t(){e.resize()}this.resizetimeout&&cleartimeout(this.resizetimeout);var e=this;this.resizetimeout=settimeout(t,100)},r.prototype.resize=function(){var t=d(this.element),e=this.size&&t;e&&t.innerwidth===this.size.innerwidth||(this.layout(),delete this.resizetimeout)},r.prototype.additems=function(t){var e=this._getitems(t);if(e.length)return this.items=this.items.concat(e),e},r.prototype.appended=function(t){var e=this.additems(t);e.length&&(this.layoutitems(e,!0),this.reveal(e))},r.prototype.prepended=function(t){var e=this._getitems(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetlayout(),this.layoutitems(e,!0),this.reveal(e),this.layoutitems(i)}},r.prototype.reveal=function(t){if(t&&t.length)for(var e=0,i=t.length;i>e;e++){var n=t[e];n.reveal()}},r.prototype.hide=function(t){if(t&&t.length)for(var e=0,i=t.length;i>e;e++){var n=t[e];n.hide()}},r.prototype.getitem=function(t){for(var e=0,i=this.items.length;i>e;e++){var n=this.items[e];if(n.element===t)return n}},r.prototype.getitems=function(t){if(t&&t.length){for(var e=[],i=0,n=t.length;n>i;i++){var o=t[i],r=this.getitem(o);r&&e.push(r)}return e}},r.prototype.remove=function(t){t=n(t);var e=this.getitems(t);this._itemson(e,"remove",function(){this.emitevent("removecomplete",[this,e])});for(var i=0,o=e.length;o>i;i++){var r=e[i];r.remove();var s=b(this.items,r);this.items.splice(s,1)}},r.prototype.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="";for(var e=0,i=this.items.length;i>e;e++){var n=this.items[e];n.destroy()}this.unbindresize(),delete this.element.outlayerguid},r.data=function(t){var e=t&&t.outlayerguid;return e&&e[e]},r.create=function(t,i){function n(){r.apply(this,arguments)}return e(n.prototype,r.prototype),s(n,"options"),s(n,"settings"),e(n.prototype.options,i),n.prototype.settings.namespace=t,n.data=r.data,n.item=function(){h.apply(this,arguments)},n.item.prototype=new r.item,n.prototype.settings.item=n.item,p(function(){for(var e=o(t),i=l.queryselectorall(".js-"+e),r="data-"+e+"-options",s=0,a=i.length;a>s;s++){var h,p=i[s],u=p.getattribute(r);try{h=u&&json.parse(u)}catch(f){m&&m.error("error parsing "+r+" on "+p.nodename.tolowercase()+(p.id?"#"+p.id:"")+": "+f);continue}var d=new n(p,h);y&&y.data(p,t,d)}}),y&&y.bridget&&y.bridget(t,n),n},r.item=h,t.outlayer=r}(window),function(t){"use strict";function e(t,e){var n=t.create("masonry");return n.prototype._resetlayout=function(){this.getsize(),this._getmeasurement("columnwidth","outerwidth"),this._getmeasurement("gutter","outerwidth"),this.measurecolumns();var t=this.cols;for(this.colys=[];t--;)this.colys.push(0);this.maxy=0},n.prototype.measurecolumns=function(){var t=this.items[0].element;this.columnwidth=this.columnwidth||e(t).outerwidth,this.columnwidth+=this.gutter,this.cols=math.floor((this.size.innerwidth+this.gutter)/this.columnwidth),this.cols=math.max(this.cols,1)},n.prototype._getitemlayoutposition=function(t){t.getsize();var e=math.ceil(t.size.outerwidth/this.columnwidth);e=math.min(e,this.cols);for(var n=this._getcolgroup(e),o=math.min.apply(math,n),r=i(n,o),s={x:this.columnwidth*r,y:o},a=o+t.size.outerheight,h=this.cols+1-n.length,p=0;h>p;p++)this.colys[r+p]=a;return s},n.prototype._getcolgroup=function(t){if(1===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},n.prototype._managestamp=function(t){var i=e(t),n=this._getelementoffset(t),o=this.options.isoriginleft?n.left:n.right,r=o+i.outerwidth,s=math.floor(o/this.columnwidth);s=math.max(0,s);var a=math.floor(r/this.columnwidth);a=math.min(this.cols-1,a);for(var h=(this.options.isorigintop?n.top:n.bottom)+i.outerheight,p=s;a>=p;p++)this.colys[p]=math.max(h,this.colys[p])},n.prototype._getcontainersize=function(){return this.maxy=math.max.apply(math,this.colys),{height:this.maxy}},n}var i=array.prototype.indexof?function(t,e){return t.indexof(e)}:function(t,e){for(var i=0,n=t.length;n>i;i++){var o=t[i];if(o===e)return i}return-1};"function"==typeof define&&define.amd?define(["outlayer","get-size"],e):t.masonry=e(t.outlayer,t.getsize)}(window);