1 2/*! 3 * Isotope PACKAGED v3.0.1 4 * 5 * Licensed GPLv3 for open source use 6 * or Isotope Commercial License for commercial use 7 * 8 * http://isotope.metafizzy.co 9 * Copyright 2016 Metafizzy 10 */ 11(function(b,a){if(typeof define=="function"&&define.amd){define("jquery-bridget/jquery-bridget",["jquery"],function(c){a(b,c)})}else{if(typeof module=="object"&&module.exports){module.exports=a(b,require("jquery"))}else{b.jQueryBridget=a(b,b.jQuery)}}}(window,function factory(c,f){var e=Array.prototype.slice;var a=c.console;var b=typeof a=="undefined"?function(){}:function(h){a.error(h)};function g(j,l,k){k=k||f||c.jQuery;if(!k){return}if(!l.prototype.option){l.prototype.option=function(m){if(!k.isPlainObject(m)){return}this.options=k.extend(true,this.options,m)}}k.fn[j]=function(n){if(typeof n=="string"){var m=e.call(arguments,1);return i(this,n,m)}h(this,n);return this};function i(q,m,n){var o;var p="$()."+j+'("'+m+'")';q.each(function(s,t){var r=k.data(t,j);if(!r){b(j+" not initialized. Cannot call methods, i.e. "+p);return}var v=r[m];if(!v||m.charAt(0)=="_"){b(p+" is not a valid method");return}var u=v.apply(r,n);o=o===undefined?u:o});return o!==undefined?o:q}function h(n,m){n.each(function(p,q){var o=k.data(q,j);if(o){o.option(m);o._init()}else{o=new l(q,m);k.data(q,j,o)}})}d(k)}function d(h){if(!h||(h&&h.bridget)){return}h.bridget=g}d(f||c.jQuery);return g}));(function(b,a){if(typeof define=="function"&&define.amd){define("ev-emitter/ev-emitter",a)}else{if(typeof module=="object"&&module.exports){module.exports=a()}else{b.EvEmitter=a()}}}(typeof window!="undefined"?window:this,function(){function a(){}var b=a.prototype;b.on=function(c,f){if(!c||!f){return}var d=this._events=this._events||{};var e=d[c]=d[c]||[];if(e.indexOf(f)==-1){e.push(f)}return this};b.once=function(d,e){if(!d||!e){return}this.on(d,e);var c=this._onceEvents=this._onceEvents||{};var f=c[d]=c[d]||{};f[e]=true;return this};b.off=function(c,f){var e=this._events&&this._events[c];if(!e||!e.length){return}var d=e.indexOf(f);if(d!=-1){e.splice(d,1)}return this};b.emitEvent=function(c,d){var f=this._events&&this._events[c];if(!f||!f.length){return}var e=0;var h=f[e];d=d||[];var j=this._onceEvents&&this._onceEvents[c];while(h){var g=j&&j[h];if(g){this.off(c,h);delete j[h]}h.apply(this,d);e+=g?0:1;h=f[e]}return this};return a})); 12/*! 13 * getSize v2.0.2 14 * measure size of elements 15 * MIT license 16 */ 17(function(b,a){if(typeof define=="function"&&define.amd){define("get-size/get-size",[],function(){return a()})}else{if(typeof module=="object"&&module.exports){module.exports=a()}else{b.getSize=a()}}})(window,function factory(){function h(m){var l=parseFloat(m);var n=m.indexOf("%")==-1&&!isNaN(l);return n&&l}function j(){}var i=typeof console=="undefined"?j:function(l){console.error(l)};var b=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];var d=b.length;function a(){var m={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};for(var l=0;l<d;l++){var n=b[l];m[n]=0}return m}function g(m){var l=getComputedStyle(m);if(!l){i("Style returned "+l+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1")}return l}var e=false;var c;function f(){if(e){return}e=true;var n=document.createElement("div");n.style.width="200px";n.style.padding="1px 2px 3px 4px";n.style.borderStyle="solid";n.style.borderWidth="1px 2px 3px 4px";n.style.boxSizing="border-box";var l=document.body||document.documentElement;l.appendChild(n);var m=g(n);k.isBoxSizeOuter=c=h(m.width)==200;l.removeChild(n)}function k(p){f();if(typeof p=="string"){p=document.querySelector(p)}if(!p||typeof p!="object"||!p.nodeType){return}var n=g(p);if(n.display=="none"){return a()}var B={};B.width=p.offsetWidth;B.height=p.offsetHeight;var A=B.isBorderBox=n.boxSizing=="border-box";for(var u=0;u<d;u++){var q=b[u];var z=n[q];var w=parseFloat(z);B[q]=!isNaN(w)?w:0}var v=B.paddingLeft+B.paddingRight;var m=B.paddingTop+B.paddingBottom;var y=B.marginLeft+B.marginRight;var o=B.marginTop+B.marginBottom;var l=B.borderLeftWidth+B.borderRightWidth;var x=B.borderTopWidth+B.borderBottomWidth;var t=A&&c;var s=h(n.width);if(s!==false){B.width=s+(t?0:v+l)}var r=h(n.height);if(r!==false){B.height=r+(t?0:m+x)}B.innerWidth=B.width-(v+l);B.innerHeight=B.height-(m+x);B.outerWidth=B.width+y;B.outerHeight=B.height+o;return B}return k});(function(b,a){if(typeof define=="function"&&define.amd){define("desandro-matches-selector/matches-selector",a)}else{if(typeof module=="object"&&module.exports){module.exports=a()}else{b.matchesSelector=a()}}}(window,function factory(){var b=(function(){var c=Element.prototype;if(c.matches){return"matches"}if(c.matchesSelector){return"matchesSelector"}var f=["webkit","moz","ms","o"];for(var d=0;d<f.length;d++){var e=f[d];var g=e+"MatchesSelector";if(c[g]){return g}}})();return function a(d,c){return d[b](c)}}));(function(b,a){if(typeof define=="function"&&define.amd){define("fizzy-ui-utils/utils",["de
17sandro-matches-selector/matches-selector"],function(c){return a(b,c)})}else{if(typeof module=="object"&&module.exports){module.exports=a(b,require("desandro-matches-selector"))}else{b.fizzyUIUtils=a(b,b.matchesSelector)}}}(window,function factory(d,c){var a={};a.extend=function(f,e){for(var g in e){f[g]=e[g]}return f};a.modulo=function(e,f){return((e%f)+f)%f};a.makeArray=function(g){var f=[];if(Array.isArray(g)){f=g}else{if(g&&typeof g.length=="number"){for(var e=0;e<g.length;e++){f.push(g[e])}}else{f.push(g)}}return f};a.removeFrom=function(f,g){var e=f.indexOf(g);if(e!=-1){f.splice(e,1)}};a.getParent=function(f,e){while(f!=document.body){f=f.parentNode;if(c(f,e)){return f}}};a.getQueryElement=function(e){if(typeof e=="string"){return document.querySelector(e)}return e};a.handleEvent=function(e){var f="on"+e.type;if(this[f]){this[f](e)}};a.filterFindElements=function(f,e){f=a.makeArray(f);var g=[];f.forEach(function(j){if(!(j instanceof HTMLElement)){return}if(!e){g.push(j);return}if(c(j,e)){g.push(j)}var k=j.querySelectorAll(e);for(var h=0;h<k.length;h++){g.push(k[h])}});return g};a.debounceMethod=function(h,g,e){var i=h.prototype[g];var f=g+"Timeout";h.prototype[g]=function(){var k=this[f];if(k){clearTimeout(k)}var j=arguments;var l=this;this[f]=setTimeout(function(){i.apply(l,j);delete l[f]},e||100)}};a.docReady=function(f){var e=document.readyState;if(e=="complete"||e=="interactive"){f()}else{document.addEventListener("DOMContentLoaded",f)}};a.toDashed=function(e){return e.replace(/(.)([A-Z])/g,function(g,f,h){return f+"-"+h}).toLowerCase()};var b=d.console;a.htmlInit=function(e,f){a.docReady(function(){var l=a.toDashed(f);var k="data-"+l;var i=document.querySelectorAll("["+k+"]");var g=document.querySelectorAll(".js-"+l);var h=a.makeArray(i).concat(a.makeArray(g));var m=k+"-options";var j=d.jQuery;h.forEach(function(r){var o=r.getAttribute(k)||r.getAttribute(m);var q;try{q=o&&JSON.parse(o)}catch(p){if(b){b.error("Error parsing "+k+" on "+r.className+": "+p)}return}var n=new e(r,q);if(j){j.data(r,f,n)}})})};return a}));(function(b,a){if(typeof define=="function"&&define.amd){define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],a)}else{if(typeof module=="object"&&module.exports){module.exports=a(require("ev-emitter"),require("get-size"))}else{b.Outlayer={};b.Outlayer.Item=a(b.EvEmitter,b.getSize)}}}(window,function factory(b,n){function m(o){for(var p in o){return false}p=null;return true}var h=document.documentElement.style;
17var l=typeof h.transition=="string"?"transition":"WebkitTransition";var i=typeof h.transform=="string"?"transform":"WebkitTransform";var a={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[l];var j={transform:i,transition:l,transitionDuration:l+"Duration",transitionProperty:l+"Property",transitionDelay:l+"Delay"};function c(o,p){if(!o){return}this.element=o;this.layout=p;this.position={x:0,y:0};this._create()}var e=c.prototype=Object.create(b.prototype);e.constructor=c;e._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}};this.css({position:"absolute"})};e.handleEvent=function(o){var p="on"+o.type;if(this[p]){this[p](o)}};e.getSize=function(){this.size=n(this.element)};e.css=function(q){var o=this.element.style;for(var r in q){var p=j[r]||r;o[p]=q[r]}};e.getPosition=function(){var s=getComputedStyle(this.element);var v=this.layout._getOption("originLeft");var u=this.layout._getOption("originTop");var r=s[v?"left":"right"];var q=s[u?"top":"bottom"];var p=this.layout.size;var o=r.indexOf("%")!=-1?(parseFloat(r)/100)*p.width:parseInt(r,10);var t=q.indexOf("%")!=-1?(parseFloat(q)/100)*p.height:parseInt(q,10);o=isNaN(o)?0:o;t=isNaN(t)?0:t;o-=v?p.paddingLeft:p.paddingRight;t-=u?p.paddingTop:p.paddingBottom;this.position.x=o;this.position.y=t};e.layoutPosition=function(){var q=this.layout.size;var p={};var A=this.layout._getOption("originLeft");var B=this.layout._getOption("originTop");var w=A?"paddingLeft":"paddingRight";var r=A?"left":"right";var s=A?"right":"left";var v=this.position.x+q[w];p[r]=this.getXValue(v);p[s]="";var t=B?"paddingTop":"paddingBottom";var z=B?"top":"bottom";var o=B?"bottom":"top";var u=this.position.y+q[t];p[z]=this.getYValue(u);p[o]="";this.css(p);this.emitEvent("layout",[this])};e.getXValue=function(o){var p=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!p?((o/this.layout.size.width)*100)+"%":o+"px"};e.getYValue=function(p){var o=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&o?((p/this.layout.size.height)*100)+"%":p+"px"};e._transitionTo=function(z,w){this.getPosition();var p=this.position.x;var o=this.position.y;var v=parseInt(z,10);var u=parseInt(w,10);var t=v===this.position.x&&u===this.position.y;this.setPosition(z,w);if(t&&!this.isTransitioning){this.layoutPosition();return}var s=z-p;var r=w-o;var q={};q.transform=this.getTranslate(s,r);this.transition({to:q,onTransitionEnd:{transform:this.layoutPosition},isCleaning:true})};e.getTranslate=function(o,r){var q=this.layout._getOption("originLeft");var p=this.layout._getOption("originTop");o=q?o:-o;r=p?r:-r;return"translate3d("+o+"px, "+r+"px, 0)"};e.goTo=function(o,p){this.setPosition(o,p);this.layoutPosition()};e.moveTo=e._transitionTo;e.setPosition=function(o,p){this.position.x=parseInt(o,10);this.position.y=parseInt(p,10)};e._nonTransition=function(o){this.css(o.to);if(o.isCleaning){this._removeStyles(o.to)}for(var p in o.onTransitionEnd){o.onTransitionEnd[p].call(this)}};e.transition=function(o){if(!parseFloat(this.layout.options.transitionDuration)){this._nonTransition(o);return}var q=this._transn;for(var r in o.onTransitionEnd){q.onEnd[r]=o.onTransitionEnd[r]}for(r in o.to){q.ingProperties[r]=true;if(o.isCleaning){q.clean[r]=true}}if(o.from){this.css(o.from);var p=this.element.offsetHeight;p=null}this.enableTransition(o.to);this.css(o.to);this.isTransitioning=true};function g(o){return o.replace(/([A-Z])/g,function(p){return"-"+p.toLowerCase()})}var k="opacity,"+g(i);e.enableTransition=function(){if(this.isTransitioning){return}var o=this.layout.options.transitionDuration;o=typeof o=="number"?o+"ms":o;this.css({transitionProperty:k,transitionDuration:o,transitionDelay:this.staggerDelay||0});this.element.addEventListener(a,this,false)};e.onwebkitTransitionEnd=function(o){this.ontransitionend(o)};e.onotransitionend=function(o){this.ontransitionend(o)};var d={"-webkit-transform":"transform"};e.ontransitionend=function(r){if(r.target!==this.element){return}var q=this._transn;var o=d[r.propertyName]||r.propertyName;delete q.ingProperties[o];if(m(q.ingProperties)){this.disableTransition()}if(o in q.clean){this.element.style[r.propertyName]="";delete q.clean[o]}if(o in q.onEnd){var p=q.onEnd[o];p.call(this);delete q.onEnd[o]}this.emitEvent("transitionEnd",[this])};e.disableTransition=function(){this.removeTransitionStyles();this.element.removeEventListener(a,this,false);this.isTransitioning=false};e._removeStyles=function(p){var o={};for(var q in p){o[q]=""}this.css(o)};var f={transitionProperty:"",transitionDuration:"",transitionDelay:""};e.removeTransitionStyles=function(){this.css(f)};e.stagger=function(o){o=isNaN(o)?0:o;this.staggerDelay=o+"ms"};e.removeElem=function(){this.element.parentNode.removeChild(this.element);this.css({display:""});this.emitEvent("remove",[this])};e.remove=function(){if(!l||!parseFloat(this.layout.options.transitionDuration)){this.removeElem();return}this.once("transitionEnd",function(){this.removeElem()});this.hide()};e.reveal=function(){delete this.isHidden;this.css({display:""});var p=this.layout.options;var q={};var o=this.getHideRevealTransitionEndProperty("visibleStyle");q[o]=this.onRevealTransitionEnd;this.transition({from:p.hiddenStyle,to:p.visibleStyle,isCleaning:true,onTransitionEnd:q})};e.onRevealTransitionEnd=function(){if(!this.isHidden){this.emitEvent("reveal")}};e.getHideRevealTransitionEndProperty=function(p){var o=this.layout.options[p];if(o.opacity){return"opacity"}for(var q in o){return q}};e.hide=function(){this.isHidden=true;this.css({display:""});var p=this.layout.options;var q={};var o=this.getHideRevealTransitionEndProperty("hiddenStyle");q[o]=this.onHideTransitionEnd;this.transition({from:p.visibleStyle,to:p.hiddenStyle,isCleaning:true,onTransitionEnd:q})};e.onHideTransitionEnd=function(){if(this.isHidden){this.css({display:"none"});this.emitEvent("hide")}};e.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})};return c})); 18/*! 19 * Outlayer v2.1.0 20 * the brains and guts of a layout library 21 * MIT license 22 */ 23(function(b,a){if(typeof define=="function"&&define.amd){define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(c,f,d,e){return a(b,c,f,d,e)})}else{if(typeof module=="object"&&module.exports){module.exports=a(b,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item"))}else{b.Outlayer=a(b,b.EvEmitter,b.getSize,b.fizzyUIUtils,b.Outlayer.Item)}}}(window,function factory(i,b,n,l,d){var e=i.console;var o=i.jQuery;var m=function(){};var h=0;var a={};function g(s,q){var p=l.getQueryElement(s);if(!p){if(e){e.error("Bad element for "+this.constructor.namespace+": "+(p||s))}return}this.element=p;if(o){this.$element=o(this.element)}this.options=l.extend({},this.constructor.defaults);this.option(q);var t=++h;this.element.outlayerGUID=t;a[t]=this;this._create();var r=this._getOption("initLayout");if(r){this.layout()}}g.namespace="outlayer";g.Item=d;g.defaults={containerStyle:{position:"relative"},initLayout:true,originLeft:true,originTop:true,resize:true,resizeContainer:true,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var f=g.prototype;l.extend(f,b.prototype);f.option=function(p){l.extend(this.options,p)};f._getOption=function(q){var p=this.constructor.compatOptions[q];return p&&this.options[p]!==undefined?this.options[p]:this.options[q]};g.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"};f._create=function(){this.reloadItems();this.stamps=[];this.stamp(this.options.stamp);l.extend(this.element.style,this.options.containerStyle);var p=this._getOption("resize");if(p){this.bindResize()}};f.reloadItems=function(){this.items=this._itemize(this.element.children)};f._itemize=function(q){var t=this._filterFindItemElements(q);var r=this.constructor.Item;var p=[];for(var s=0;s<t.length;s++){var v=t[s];var u=new r(v,this);p.push(u)}return p};f._filterFindItemElements=function(p){return l.filterFindElements(p,this.options.itemSelector)};f.getItemElements=function(){return this.items.map(function(p){return p.element})};f.layout=function(){this._resetLayout();this._manageStamps();var p=this._getOption("layoutInstant");var q=p!==undefined?p:!this._isLayoutInited;this.layoutItems(this.items,q);this._isLayoutInited=true};f._init=f.layout;
23f._resetLayout=function(){this.getSize()};f.getSize=function(){this.size=n(this.element)};f._getMeasurement=function(r,p){var q=this.options[r];var s;if(!q){this[r]=0}else{if(typeof q=="string"){s=this.element.querySelector(q)}else{if(q instanceof HTMLElement){s=q}}this[r]=s?n(s)[p]:q}};f.layoutItems=function(p,q){p=this._getItemsForLayout(p);this._layoutItems(p,q);this._postLayout()};f._getItemsForLayout=function(p){return p.filter(function(q){return !q.isIgnored})};f._layoutItems=function(q,r){this._emitCompleteOnItems("layout",q);if(!q||!q.length){return}var p=[];q.forEach(function(t){var s=this._getItemLayoutPosition(t);s.item=t;s.isInstant=r||t.isLayoutInstant;p.push(s)},this);this._processLayoutQueue(p)};f._getItemLayoutPosition=function(){return{x:0,y:0}};f._processLayoutQueue=function(p){this.updateStagger();p.forEach(function(r,q){this._positionItem(r.item,r.x,r.y,r.isInstant,q)},this)};f.updateStagger=function(){var p=this.options.stagger;if(p===null||p===undefined){this.stagger=0;return}this.stagger=j(p);return this.stagger};f._positionItem=function(r,p,t,s,q){if(s){r.goTo(p,t)}else{r.stagger(q*this.stagger);r.moveTo(p,t)}};f._postLayout=function(){this.resizeContainer()};f.resizeContainer=function(){var q=this._getOption("resizeContainer");if(!q){return}var p=this._getContainerSize();if(p){this._setContainerMeasure(p.width,true);this._setContainerMeasure(p.height,false)}};f._getContainerSize=m;f._setContainerMeasure=function(p,q){if(p===undefined){return}var r=this.size;if(r.isBorderBox){p+=q?r.paddingLeft+r.paddingRight+r.borderLeftWidth+r.borderRightWidth:r.paddingBottom+r.paddingTop+r.borderTopWidth+r.borderBottomWidth}p=Math.max(p,0);this.element.style[q?"width":"height"]=p+"px"};f._emitCompleteOnItems=function(q,p){var v=this;function u(){v.dispatchEvent(q+"Complete",null,[p])}var t=p.length;if(!p||!t){u();return}var r=0;function s(){r++;if(r==t){u()}}p.forEach(function(w){w.once(q,s)})};f.dispatchEvent=function(s,t,q){var r=t?[t].concat(q):q;this.emitEvent(s,r);if(o){this.$element=this.$element||o(this.element);if(t){var p=o.Event(t);p.type=s;this.$element.trigger(p,q)}else{this.$element.trigger(s,q)}}};f.ignore=function(q){var p=this.getItem(q);if(p){p.isIgnored=true}};f.unignore=function(q){var p=this.getItem(q);if(p){delete p.isIgnored}};f.stamp=function(p){p=this._find(p);if(!p){return}this.stamps=this.stamps.concat(p);p.forEach(this.ignore,this)};f.unstamp=function(p){p=this._find(p);if(!p){return}p.forEach(function(q){l.removeFrom(this.stamps,q);this.unignore(q)},this)};f._find=function(p){if(!p){return}if(typeof p=="string"){p=this.element.querySelectorAll(p)}p=l.makeArray(p);return p};f._manageStamps=function(){if(!this.stamps||!this.stamps.length){return}this._getBoundingRect();this.stamps.forEach(this._manageStamp,this)};f._getBoundingRect=function(){var p=this.element.getBoundingClientRect();var q=this.size;this._boundingRect={left:p.left+q.paddingLeft+q.borderLeftWidth,top:p.top+q.paddingTop+q.borderTopWidth,right:p.right-(q.paddingRight+q.borderRightWidth),bottom:p.bottom-(q.paddingBottom+q.borderBottomWidth)}};f._manageStamp=m;f._getElementOffset=function(s){var p=s.getBoundingClientRect();var r=this._boundingRect;var q=n(s);var t={left:p.left-r.left-q.marginLeft,top:p.top-r.top-q.marginTop,right:r.right-p.right-q.marginRight,bottom:r.bottom-p.bottom-q.marginBottom};return t};f.handleEvent=l.handleEvent;f.bindResize=function(){i.addEventListener("resize",this);this.isResizeBound=true};f.unbindResize=function(){i.removeEventListener("resize",this);this.isResizeBound=false};f.onresize=function(){this.resize()};l.debounceMethod(g,"onresize",100);f.resize=function(){if(!this.isResizeBound||!this.needsResizeLayout()){return}this.layout()};f.needsResizeLayout=function(){var q=n(this.element);var p=this.size&&q;return p&&q.innerWidth!==this.size.innerWidth};f.addItems=function(q){var p=this._itemize(q);if(p.length){this.items=this.items.concat(p)}return p};f.appended=function(q){var p=this.addItems(q);if(!p.length){return}this.layoutItems(p,true);this.reveal(p)};f.prepended=function(q){var p=this._itemize(q);if(!p.length){return}var r=this.items.slice(0);this.items=p.concat(r);this._resetLayout();this._manageStamps();this.layoutItems(p,true);this.reveal(p);this.layoutItems(r)};f.reveal=function(p){this._emitCompleteOnItems("reveal",p);if(!p||!p.length){return}var q=this.updateStagger();p.forEach(function(s,r){s.stagger(r*q);s.reveal()})};f.hide=function(p){this._emitCompleteOnItems("hide",p);if(!p||!p.length){return}var q=this.updateStagger();p.forEach(function(s,r){s.stagger(r*q);s.hide()})};f.revealItemElements=function(q){var p=this.getItems(q);this.reveal(p)};f.hideItemElements=function(q){var p=this.getItems(q);this.hide(p)};f.getItem=function(r){for(var p=0;p<this.items.length;p++){var q=this.items[p];if(q.element==r){return q}}};f.getItems=function(q){q=l.makeArray(q);var p=[];q.forEach(function(s){var r=this.getItem(s);if(r){p.push(r)}},this);return p};f.remove=function(p){var q=this.getItems(p);this._emitCompleteOnItems("remove",q);if(!q||!q.length){return}q.forEach(function(r){r.remove();l.removeFrom(this.items,r)},this)};f.destroy=function(){var p=this.element.style;p.height="";p.position="";p.width="";
23this.items.forEach(function(r){r.destroy()});this.unbindResize();var q=this.element.outlayerGUID;delete a[q];delete this.element.outlayerGUID;if(o){o.removeData(this.element,this.constructor.namespace)}};g.data=function(p){p=l.getQueryElement(p);var q=p&&p.outlayerGUID;return q&&a[q]};g.create=function(r,p){var q=c(g);q.defaults=l.extend({},g.defaults);l.extend(q.defaults,p);q.compatOptions=l.extend({},g.compatOptions);q.namespace=r;q.data=g.data;q.Item=c(d);l.htmlInit(q,r);if(o&&o.bridget){o.bridget(r,q)}return q};function c(p){function q(){p.apply(this,arguments)}q.prototype=Object.create(p.prototype);q.prototype.constructor=q;return q}var k={ms:1,s:1000};function j(t){if(typeof t=="number"){return t}var r=t.match(/(^\d*\.?\d*)(\w*)/);var p=r&&r[1];var q=r&&r[2];if(!p.length){return 0}p=parseFloat(p);var s=k[q]||1;return p*s}g.Item=d;return g}));(function(b,a){if(typeof define=="function"&&define.amd){define("isotope/js/item",["outlayer/outlayer"],a)}else{if(typeof module=="object"&&module.exports){module.exports=a(require("outlayer"))}else{b.Isotope=b.Isotope||{};b.Isotope.Item=a(b.Outlayer)}}}(window,function factory(c){function b(){c.Item.apply(this,arguments)}var d=b.prototype=Object.create(c.Item.prototype);var e=d._create;d._create=function(){this.id=this.layout.itemGUID++;e.call(this);this.sortData={}};d.updateSortData=function(){if(this.isIgnored){return}this.sortData.id=this.id;this.sortData["original-order"]=this.id;this.sortData.random=Math.random();var g=this.layout.options.getSortData;var h=this.layout._sorters;for(var f in g){var i=h[f];this.sortData[f]=i(this.element,this)}};var a=d.destroy;d.destroy=function(){a.apply(this,arguments);this.css({display:""})};return b}));(function(b,a){if(typeof define=="function"&&define.amd){define("isotope/js/layout-mode",["get-size/get-size","outlayer/outlayer"],a)}else{if(typeof module=="object"&&module.exports){module.exports=a(require("get-size"),require("outlayer"))}else{b.Isotope=b.Isotope||{};b.Isotope.LayoutMode=a(b.getSize,b.Outlayer)}}}(window,function factory(e,c){function b(f){this.isotope=f;if(f){this.options=f.options[this.namespace];this.element=f.element;this.items=f.filteredItems;this.size=f.size}}var d=b.prototype;var a=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"];a.forEach(function(f){d[f]=function(){return c.prototype[f].apply(this.isotope,arguments)}});d.needsVerticalResizeLayout=function(){var g=e(this.isotope.element);var f=this.isotope.size&&g;return f&&g.innerHeight!=this.isotope.size.innerHeight};d._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)};d.getColumnWidth=function(){this.getSegmentSize("column","Width")};d.getRowHeight=function(){this.getSegmentSize("row","Height")};d.getSegmentSize=function(j,h){var i=j+h;var f="outer"+h;this._getMeasurement(i,f);if(this[i]){return}var g=this.getFirstItemSize();this[i]=g&&g[f]||this.isotope.size["inner"+h]};d.getFirstItemSize=function(){var f=this.isotope.filteredItems[0];return f&&f.element&&e(f.element)};d.layout=function(){this.isotope.layout.apply(this.isotope,arguments)};d.getSize=function(){this.isotope.getSize();this.size=this.isotope.size};b.modes={};b.create=function(g,f){function h(){b.apply(this,arguments)}h.prototype=Object.create(d);h.prototype.constructor=h;if(f){h.options=f}h.prototype.namespace=g;b.modes[g]=h;return h};return b})); 24/*! 25 * Masonry v4.1.0 26 * Cascading grid layout library 27 * http://masonry.desandro.com 28 * MIT License 29 * by David DeSandro 30 */ 31(function(b,a){if(typeof define=="function"&&define.amd){define("masonry/masonry",["outlayer/outlayer","get-size/get-size"],a)}else{if(typeof module=="object"&&module.exports){module.exports=a(require("outlayer"),require("get-size"))}else{b.Masonry=a(b.Outlayer,b.getSize)}}}(window,function factory(b,c){var a=b.create("masonry");a.compatOptions.fitWidth="isFitWidth";a.prototype._resetLayout=function(){this.getSize();this._getMeasurement("columnWidth","outerWidth");this._getMeasurement("gutter","outerWidth");this.measureColumns();this.colYs=[];for(var d=0;d<this.cols;d++){this.colYs.push(0)}this.maxY=0};a.prototype.measureColumns=function(){this.getContainerWidth();if(!this.columnWidth){var j=this.items[0];var f=j&&j.element;this.columnWidth=f&&c(f).outerWidth||this.containerWidth}var h=this.columnWidth+=this.gutter;var g=this.containerWidth+this.gutter;var i=g/h;var d=h-g%h;var e=d&&d<1?"round":"floor";i=Math[e](i);this.cols=Math.max(i,1)};a.prototype.getContainerWidth=function(){var f=this._getOption("fitWidth");var d=f?this.element.parentNode:this.element;var e=c(d);this.containerWidth=e&&e.innerWidth};
31a.prototype._getItemLayoutPosition=function(o){o.getSize();var n=o.size.outerWidth%this.columnWidth;var j=n&&n<1?"round":"ceil";var k=Math[j](o.size.outerWidth/this.columnWidth);k=Math.min(k,this.cols);var d=this._getColGroup(k);var e=Math.min.apply(Math,d);var l=d.indexOf(e);var h={x:this.columnWidth*l,y:e};var m=e+o.size.outerHeight;var f=this.cols+1-d.length;for(var g=0;g<f;g++){this.colYs[l+g]=m}return h};a.prototype._getColGroup=function(f){if(f<2){return this.colYs}var g=[];var h=this.cols+1-f;for(var d=0;d<h;d++){var e=this.colYs.slice(d,d+f);g[d]=Math.max.apply(Math,e)}return g};a.prototype._manageStamp=function(d){var k=c(d);var h=this._getElementOffset(d);var o=this._getOption("originLeft");var g=o?h.left:h.right;var e=g+k.outerWidth;var m=Math.floor(g/this.columnWidth);m=Math.max(0,m);var f=Math.floor(e/this.columnWidth);f-=e%this.columnWidth?0:1;f=Math.min(this.cols-1,f);var n=this._getOption("originTop");var l=(n?h.top:h.bottom)+k.outerHeight;for(var j=m;j<=f;j++){this.colYs[j]=Math.max(l,this.colYs[j])}};a.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var d={height:this.maxY};if(this._getOption("fitWidth")){d.width=this._getContainerFitWidth()}return d};a.prototype._getContainerFitWidth=function(){var e=0;var d=this.cols;while(--d){if(this.colYs[d]!==0){break}e++}return(this.cols-e)*this.columnWidth-this.gutter};a.prototype.needsResizeLayout=function(){var d=this.containerWidth;this.getContainerWidth();return d!=this.containerWidth};return a})); 32/*! 33 * Masonry layout mode 34 * sub-classes Masonry 35 * http://masonry.desandro.com 36 */ 37(function(b,a){if(typeof define=="function"&&define.amd){define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],a)}else{if(typeof module=="object"&&module.exports){module.exports=a(require("../layout-mode"),require("masonry-layout"))}else{a(b.Isotope.LayoutMode,b.Masonry)}}}(window,function factory(f,d){var c=f.create("masonry");var g=c.prototype;var a={_getElementOffset:true,layout:true,_getMeasurement:true};for(var h in d.prototype){if(!a[h]){g[h]=d.prototype[h]}}var e=g.measureColumns;g.measureColumns=function(){this.items=this.isotope.filteredItems;e.call(this)};var b=g._getOption;g._getOption=function(i){if(i=="fitWidth"){return this.options.isFitWidth!==undefined?this.options.isFitWidth:this.options.fitWidth}return b.apply(this.isotope,arguments)};return c}));(function(b,a){if(typeof define=="function"&&define.amd){define("isotope/js/layout-modes/fit-rows",["../layout-mode"],a)}else{if(typeof exports=="object"){module.exports=a(require("../layout-mode"))}else{a(b.Isotope.LayoutMode)}}}(window,function factory(b){var a=b.create("fitRows");var c=a.prototype;c._resetLayout=function(){this.x=0;this.y=0;this.maxY=0;this._getMeasurement("gutter","outerWidth")};c._getItemLayoutPosition=function(e){e.getSize();var g=e.size.outerWidth+this.gutter;var f=this.isotope.size.innerWidth+this.gutter;if(this.x!==0&&g+this.x>f){this.x=0;this.y=this.maxY}var d={x:this.x,y:this.y};this.maxY=Math.max(this.maxY,this.y+e.size.outerHeight);this.x+=g;return d};c._getContainerSize=function(){return{height:this.maxY}};return a}));(function(b,a){if(typeof define=="function"&&define.amd){define("isotope/js/layout-modes/vertical",["../layout-mode"],a)}else{if(typeof module=="object"&&module.exports){module.exports=a(require("../layout-mode"))}else{a(b.Isotope.LayoutMode)}}}(window,function factory(b){var a=b.create("vertical",{horizontalAlignment:0});var c=a.prototype;c._resetLayout=function(){this.y=0};c._getItemLayoutPosition=function(e){e.getSize();var d=(this.isotope.size.innerWidth-e.size.outerWidth)*this.options.horizontalAlignment;var f=this.y;this.y+=e.size.outerHeight;return{x:d,y:f}};c._getContainerSize=function(){return{height:this.y}};return a})); 38/*! 39 * Isotope v3.0.1 40 * 41 * Licensed GPLv3 for open source use 42 * or Isotope Commercial License for commercial use 43 * 44 * http://isotope.metafizzy.co 45 * Copyright 2016 Metafizzy 46 */ 47(function(b,a){if(typeof define=="function"&&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(g,h,d,c,e,f){return a(b,g,h,d,c,e,f)})}else{if(typeof module=="object"&&module.exports){module.exports=a(b,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"))}else{b.Isotope=a(b,b.Outlayer,b.getSize,b.matchesSelector,b.fizzyUIUtils,b.Isotope.Item,b.Isotope.LayoutMode)}}}(window,function factory(g,f,l,n,i,b,e){var m=g.jQuery;var a=String.prototype.trim?function(o){return o.trim()}:function(o){return o.replace(/^\s+|\s+$/g,"")};var h=f.create("isotope",{layoutMode:"masonry",isJQueryFiltering:true,sortAscending:true});h.Item=b;h.LayoutMode=e;var d=h.prototype;d._create=function(){this.itemGUID=0;this._sorters={};this._getSorters();f.prototype._create.call(this);this.modes={};this.filteredItems=this.items;this.sortHistory=["original-order"];for(var o in e.modes){this._initLayoutMode(o)}};d.reloadItems=function(){this.itemGUID=0;f.prototype.reloadItems.call(this)};d._itemize=function(){var o=f.prototype._itemize.apply(this,arguments);for(var p=0;p<o.length;p++){var q=o[p];q.id=this.itemGUID++}this._updateItemsSortData(o);return o};d._initLayoutMode=function(o){var p=e.modes[o];var q=this.options[o]||{};this.options[o]=p.options?i.extend(p.options,q):q;this.modes[o]=new p(this)};d.layout=function(){if(!this._isLayoutInited&&this._getOption("initLayout")){this.arrange();return}this._layout()};d._layout=function(){var o=this._getIsInstant();this._resetLayout();this._manageStamps();this.layoutItems(this.filteredItems,o);this._isLayoutInited=true};d.arrange=function(p){this.option(p);this._getIsInstant();var o=this._filter(this.items);this.filteredItems=o.matches;this._bindArrangeComplete();if(this._isInstant){this._noTransition(this._hideReveal,[o])}else{this._hideReveal(o)}this._sort();this._layout()};d._init=d.arrange;d._hideReveal=function(o){this.reveal(o.needReveal);this.hide(o.needHide)};d._getIsInstant=function(){var o=this._getOption("layoutInstant");var p=o!==undefined?o:!this._isLayoutInited;this._isInstant=p;return p};d._bindArrangeComplete=function(){var o,s,p;var r=this;function q(){if(o&&s&&p){r.dispatchEvent("arrangeComplete",null,[r.filteredItems])}}this.once("layoutComplete",function(){o=true;q()});this.once("hideComplete",function(){s=true;q()});this.once("revealComplete",function(){p=true;q()})};d._filter=function(v){var p=this.options.filter;p=p||"*";var r=[];var s=[];var o=[];var u=this._getFilterTest(p);for(var q=0;q<v.length;q++){var w=v[q];if(w.isIgnored){continue}var t=u(w);if(t){r.push(w)}if(t&&w.isHidden){s.push(w)}else{if(!t&&!w.isHidden){o.push(w)}}}return{matches:r,needReveal:s,needHide:o}};
47d._getFilterTest=function(o){if(m&&this.options.isJQueryFiltering){return function(p){return m(p.element).is(o)}}if(typeof o=="function"){return function(p){return o(p.element)}}return function(p){return n(p.element,o)}};d.updateSortData=function(p){var o;if(p){p=i.makeArray(p);o=this.getItems(p)}else{o=this.items}this._getSorters();this._updateItemsSortData(o)};d._getSorters=function(){var p=this.options.getSortData;for(var o in p){var q=p[o];this._sorters[o]=c(q)}};d._updateItemsSortData=function(p){var o=p&&p.length;for(var q=0;o&&q<o;q++){var r=p[q];r.updateSortData()}};var c=(function(){function p(w){if(typeof w!="string"){return w}var s=a(w).split(" ");var u=s[0];var t=u.match(/^\[(.+)\]$/);var q=t&&t[1];var r=o(q,u);var v=h.sortDataParsers[s[1]];w=v?function(x){return x&&v(r(x))}:function(x){return x&&r(x)};return w}function o(q,t){if(q){return function r(u){return u.getAttribute(q)}}return function s(u){var v=u.querySelector(t);return v&&v.textContent}}return p})();h.sortDataParsers={parseInt:function(o){return parseInt(o,10)},parseFloat:function(o){return parseFloat(o)}};d._sort=function(){var q=this.options.sortBy;if(!q){return}var o=[].concat.apply(q,this.sortHistory);var p=k(o,this.options.sortAscending);this.filteredItems.sort(p);if(q!=this.sortHistory[0]){this.sortHistory.unshift(q)}};function k(p,o){return function q(w,u){for(var t=0;t<p.length;t++){var y=p[t];var s=w.sortData[y];var r=u.sortData[y];if(s>r||s<r){var x=o[y]!==undefined?o[y]:o;var v=x?1:-1;return(s>r?1:-1)*v}}return 0}}d._mode=function(){var p=this.options.layoutMode;var o=this.modes[p];if(!o){throw new Error("No layout mode: "+p)}o.options=this.options[p];return o};d._resetLayout=function(){f.prototype._resetLayout.call(this);this._mode()._resetLayout()};d._getItemLayoutPosition=function(o){return this._mode()._getItemLayoutPosition(o)};d._manageStamp=function(o){this._mode()._manageStamp(o)};d._getContainerSize=function(){return this._mode()._getContainerSize()};d.needsResizeLayout=function(){return this._mode().needsResizeLayout()};d.appended=function(p){var o=this.addItems(p);if(!o.length){return}var q=this._filterRevealAdded(o);this.filteredItems=this.filteredItems.concat(q)};d.prepended=function(p){var o=this._itemize(p);if(!o.length){return}this._resetLayout();this._manageStamps();var q=this._filterRevealAdded(o);this.layoutItems(this.filteredItems);this.filteredItems=q.concat(this.filteredItems);this.items=o.concat(this.items)};d._filterRevealAdded=function(o){var p=this._filter(o);this.hide(p.needHide);this.reveal(p.matches);this.layoutItems(p.matches,true);return p.matches};d.insert=function(r){var q=this.addItems(r);if(!q.length){return}var s,t;var o=q.length;for(s=0;s<o;s++){t=q[s];this.element.appendChild(t.element)}var p=this._filter(q).matches;for(s=0;s<o;s++){q[s].isLayoutInstant=true}this.arrange();for(s=0;s<o;s++){delete q[s].isLayoutInstant}this.reveal(p)};var j=d.remove;d.remove=function(p){p=i.makeArray(p);var r=this.getItems(p);j.call(this,p);var o=r&&r.length;for(var q=0;o&&q<o;q++){var s=r[q];i.removeFrom(this.filteredItems,s)}};d.shuffle=function(){for(var o=0;o<this.items.length;o++){var p=this.items[o];p.sortData.random=Math.random()}this.options.sortBy="random";this._sort();this._layout()};d._noTransition=function(r,p){var o=this.options.transitionDuration;this.options.transitionDuration=0;var q=r.apply(this,p);this.options.transitionDuration=o;return q};d.getFilteredItemElements=function(){return this.filteredItems.map(function(o){return o.element})};return h})); 48 49/*! 50 * Packery layout mode PACKAGED v2.0.0 51 * sub-classes Packery 52 */ 53 54!function(a,b){"function"==typeof define&&define.amd?define("packery/js/rect",b):"object"==typeof module&&module.exports?module.exports=b():(a.Packery=a.Packery||{},a.Packery.Rect=b())}(window,function(){function a(b){for(var c in a.defaults)this[c]=a.defaults[c];for(c in b)this[c]=b[c]}a.defaults={x:0,y:0,width:0,height:0};var b=a.prototype;return b.contains=function(a){var b=a.width||0,c=a.height||0;return this.x<=a.x&&this.y<=a.y&&this.x+this.width>=a.x+b&&this.y+this.height>=a.y+c},b.overlaps=function(a){var b=this.x+this.width,c=this.y+this.height,d=a.x+a.width,e=a.y+a.height;return this.x<d&&b>a.x&&this.y<e&&c>a.y},b.getMaximalFreeRects=function(b){if(!this.overlaps(b))return!1;var c,d=[],e=this.x+this.width,f=this.y+this.height,g=b.x+b.width,h=b.y+b.height;return this.y<b.y&&(c=new a({x:this.x,y:this.y,width:this.width,height:b.y-this.y}),d.push(c)),e>g&&(c=new a({x:g,y:this.y,width:e-g,height:this.height}),d.push(c)),f>h&&(c=new a({x:this.x,y:h,width:this.width,height:f-h}),d.push(c)),this.x<b.x&&(c=new a({x:this.x,y:this.y,width:b.x-this.x,height:this.height}),d.push(c)),d},b.canFit=function(a){return this.width>=a.width&&this.height>=a.height},a}),function(a,b){if("function"==typeof define&&define.amd)define("packery/js/packer",["./rect"],b);else if("object"==typeof module&&module.exports)module.exports=b(require("./rect"));else{var c=a.Packery=a.Packery||{};c.Packer=b(c.Rect)}}(window,function(a){function b(a,b,c){this.width=a||0,this.height=b||0,this.sortDirection=c||"downwardLeftToRight",this.reset()}var c=b.prototype;c.reset=function(){this.spaces=[];var b=new a({x:0,y:0,width:this.width,height:this.height});this.spaces.push(b),this.sorter=d[this.sortDirection]||d.downwardLeftToRight},c.pack=function(a){for(var b=0;b<this.spaces.length;b++){var c=this.spaces[b];if(c.canFit(a)){this.placeInSpace(a,c);break}}},c.columnPack=function(a){for(var b=0;b<this.spaces.length;b++){var c=this.spaces[b],d=c.x<=a.x&&c.x+c.width>=a.x+a.width&&c.height>=a.height-.01;if(d){a.y=c.y,this.placed(a);break}}},c.rowPack=function(a){for(var b=0;b<this.spaces.length;b++){var c=this.spaces[b],d=c.y<=a.y&&c.y+c.height>=a.y+a.height&&c.width>=a.width-.01;if(d){a.x=c.x,this.placed(a);break}}},c.placeInSpace=function(a,b){a.x=b.x,a.y=b.y,this.placed(a)},c.placed=function(a){for(var b=[],c=0;c<this.spaces.length;c++){var d=this.spaces[c],e=d.getMaximalFreeRects(a);
vendor: 11,157 bytes, line 54
54e?b.push.apply(b,e):b.push(d)}this.spaces=b,this.mergeSortSpaces()},c.mergeSortSpaces=function(){b.mergeRects(this.spaces),this.spaces.sort(this.sorter)},c.addSpace=function(a){this.spaces.push(a),this.mergeSortSpaces()},b.mergeRects=function(a){var b=0,c=a[b];a:for(;c;){for(var d=0,e=a[b+d];e;){if(e==c)d++;else{if(e.contains(c)){a.splice(b,1),c=a[b];continue a}c.contains(e)?a.splice(b+d,1):d++}e=a[b+d]}b++,c=a[b]}return a};var d={downwardLeftToRight:function(a,b){return a.y-b.y||a.x-b.x},rightwardTopToBottom:function(a,b){return a.x-b.x||a.y-b.y}};return b}),function(a,b){"function"==typeof define&&define.amd?define("packery/js/item",["outlayer/outlayer","./rect"],b):"object"==typeof module&&module.exports?module.exports=b(require("outlayer"),require("./rect")):a.Packery.Item=b(a.Outlayer,a.Packery.Rect)}(window,function(a,b){var c=document.documentElement.style,d="string"==typeof c.transform?"transform":"WebkitTransform",e=function(){a.Item.apply(this,arguments)},f=e.prototype=Object.create(a.Item.prototype),g=f._create;f._create=function(){g.call(this),this.rect=new b};var h=f.moveTo;return f.moveTo=function(a,b){var c=Math.abs(this.position.x-a),d=Math.abs(this.position.y-b),e=this.layout.dragItemCount&&!this.isPlacing&&!this.isTransitioning&&1>c&&1>d;return e?void this.goTo(a,b):void h.apply(this,arguments)},f.enablePlacing=function(){this.removeTransitionStyles(),this.isTransitioning&&d&&(this.element.style[d]="none"),this.isTransitioning=!1,this.getSize(),this.layout._setRectSize(this.element,this.rect),this.isPlacing=!0},f.disablePlacing=function(){this.isPlacing=!1},f.removeElem=function(){this.element.parentNode.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent("remove",[this])},f.showDropPlaceholder=function(){var a=this.dropPlaceholder;a||(a=this.dropPlaceholder=document.createElement("div"),a.className="packery-drop-placeholder",a.style.position="absolute"),a.style.width=this.size.width+"px",a.style.height=this.size.height+"px",this.positionDropPlaceholder(),this.layout.element.appendChild(a)},f.positionDropPlaceholder=function(){this.dropPlaceholder.style[d]="translate("+this.rect.x+"px, "+this.rect.y+"px)"},f.hideDropPlaceholder=function(){this.layout.element.removeChild(this.dropPlaceholder)},e}),function(a,b){"function"==typeof define&&define.amd?define("packery/js/packery",["get-size/get-size","outlayer/outlayer","./rect","./packer","./item"],b):"object"==typeof module&&module.exports?module.exports=b(require("get-size"),require("outlayer"),require("./rect"),require("./packer"),require("./item")):a.Packery=b(a.getSize,a.Outlayer,a.Packery.Rect,a.Packery.Packer,a.Packery.Item)}(window,function(a,b,c,d,e){function f(a,b){return a.position.y-b.position.y||a.position.x-b.position.x}function g(a,b){return a.position.x-b.position.x||a.position.y-b.position.y}function h(a,b){var c=b.x-a.x,d=b.y-a.y;return Math.sqrt(c*c+d*d)}c.prototype.canFit=function(a){return this.width>=a.width-1&&this.height>=a.height-1};var i=b.create("packery");i.Item=e;var j=i.prototype;j._create=function(){b.prototype._create.call(this),this.packer=new d,this.shiftPacker=new d,this.isEnabled=!0,this.dragItemCount=0;var a=this;this.handleDraggabilly={dragStart:function(){a.itemDragStart(this.element)},dragMove:function(){a.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){a.itemDragEnd(this.element)}},this.handleUIDraggable={start:function(b,c){c&&a.itemDragStart(b.currentTarget)},drag:function(b,c){c&&a.itemDragMove(b.currentTarget,c.position.left,c.position.top)},stop:function(b,c){c&&a.itemDragEnd(b.currentTarget)}}},j._resetLayout=function(){this.getSize(),this._getMeasurements();var a,b,c;this._getOption("horizontal")?(a=1/0,b=this.size.innerHeight+this.gutter,c="rightwardTopToBottom"):(a=this.size.innerWidth+this.gutter,b=1/0,c="downwardLeftToRight"),this.packer.width=this.shiftPacker.width=a,this.packer.height=this.shiftPacker.height=b,this.packer.sortDirection=this.shiftPacker.sortDirection=c,this.packer.reset(),this.maxY=0,this.maxX=0},j._getMeasurements=function(){this._getMeasurement("columnWidth","width"),this._getMeasurement("rowHeight","height"),this._getMeasurement("gutter","width")},j._getItemLayoutPosition=function(a){if(this._setRectSize(a.element,a.rect),this.isShifting||this.dragItemCount>0){var b=this._getPackMethod();this.packer[b](a.rect)}else this.packer.pack(a.rect);return this._setMaxXY(a.rect),a.rect},j.shiftLayout=function(){this.isShifting=!0,this.layout(),delete this.isShifting},j._getPackMethod=function(){return this._getOption("horizontal")?"rowPack":"columnPack"},j._setMaxXY=function(a){this.maxX=Math.max(a.x+a.width,this.maxX),this.maxY=Math.max(a.y+a.height,this.maxY)},j._setRectSize=function(b,c){var d=a(b),e=d.outerWidth,f=d.outerHeight;(e||f)&&(e=this._applyGridGutter(e,this.columnWidth),f=this._applyGridGutter(f,this.rowHeight)),c.width=Math.min(e,this.packer.width),c.height=Math.min(f,this.packer.height)},j._applyGridGutter=function(a,b){if(!b)return a+this.gutter;b+=this.gutter;var c=a%b,d=c&&1>c?"round":"ceil";return a=Math[d](a/b)*b},j._getContainerSize=function(){return this._getOption("horizontal")?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}},j._manageStamp=function(a){var b,d=this.getItem(a);if(d&&d.isPlacing)b=d.rect;else{var e=this._getElementOffset(a);b=new c({x:this._getOption("originLeft")?e.left:e.right,y:this._getOption("originTop")?e.top:e.bottom})}this._setRectSize(a,b),this.packer.placed(b),this._setMaxXY(b)},j.sortItemsByPosition=function(){var a=this._getOption("horizontal")?g:f;this.items.sort(a)},j.fit=function(a,b,c){var d=this.getItem(a);d&&(this.stamp(d.element),d.enablePlacing(),this.updateShiftTargets(d),b=void 0===b?d.rect.x:b,c=void 0===c?d.rect.y:c,this.shift(d,b,c),this._bindFitEvents(d),d.moveTo(d.rect.x,d.rect.y),this.shiftLayout(),this.unstamp(d.element),this.sortItemsByPosition(),d.disablePlacing())},j._bindFitEvents=function(a){function b(){d++,2==d&&c.dispatchEvent("fitComplete",null,[a])}var c=this,d=0;a.once("layout",b),this.once("layoutComplete",b)},j.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&(this.options.shiftPercentResize?this.resizeShiftPercentLayout():this.layout())},j.needsResizeLayout=function(){var b=a(this.element),c=this._getOption("horizontal")?"innerHeight":"innerWidth";return b[c]!=this.size[c]},j.resizeShiftPercentLayout=function(){var b=this._getItemsForLayout(this.items),c=this._getOption("horizontal"),d=c?"y":"x",e=c?"height":"width",f=c?"rowHeight":"columnWidth",g=c?"innerHeight":"innerWidth",h=this[f];if(h=h&&h+this.gutter){this._getMeasurements();var i=this[f]+this.gutter;b.forEach(function(a){var b=Math.round(a.rect[d]/h);a.rect[d]=b*i})}else{var j=a(this.element)[g]+this.gutter,k=this.packer[e];b.forEach(function(a){a.rect[d]=a.rect[d]/k*j})}this.shiftLayout()},j.itemDragStart=function(a){if(this.isEnabled){this.stamp(a);var b=this.getItem(a);b&&(b.enablePlacing(),b.showDropPlaceholder(),this.dragItemCount++,this.updateShiftTargets(b))}},j.updateShiftTargets=function(a){this.shiftPacker.reset(),this._getBoundingRect();var b=this._getOption("originLeft"),d=this._getOption("originTop");this.stamps.forEach(function(a){var e=this.getItem(a);if(!e||!e.isPlacing){var f=this._getElementOffset(a),g=new c({x:b?f.left:f.right,y:d?f.top:f.bottom});this._setRectSize(a,g),this.shiftPacker.placed(g)}},this);var e=this._getOption("horizontal"),f=e?"rowHeight":"columnWidth",g=e?"height":"width";this.shiftTargetKeys=[],this.shiftTargets=[];var h,i=this[f];if(i=i&&i+this.gutter){var j=Math.ceil(a.rect[g]/i),k=Math.floor((this.shiftPacker[g]+this.gutter)/i);h=(k-j)*i;for(var l=0;k>l;l++)this._addShiftTarget(l*i,0,h)}else h=this.shiftPacker[g]+this.gutter-a.rect[g],this._addShiftTarget(0,0,h);var m=this._getItemsForLayout(this.items),n=this._getPackMethod();m.forEach(function(a){var b=a.rect;this._setRectSize(a.element,b),this.shiftPacker[n](b),this._addShiftTarget(b.x,b.y,h);var c=e?b.x+b.width:b.x,d=e?b.y:b.y+b.height;if(this._addShiftTarget(c,d,h),i)for(var f=Math.round(b[g]/i),j=1;f>j;j++){var k=e?c:b.x+i*j,l=e?b.y+i*j:d;this._addShiftTarget(k,l,h)}},this)},j._addShiftTarget=function(a,b,c){var d=this._getOption("horizontal")?b:a;if(!(0!==d&&d>c)){var e=a+","+b,f=-1!=this.shiftTargetKeys.indexOf(e);f||(this.shiftTargetKeys.push(e),this.shiftTargets.push({x:a,y:b}))}},j.shift=function(a,b,c){var d,e=1/0,f={x:b,y:c};this.shiftTargets.forEach(function(a){var b=h(a,f);e>b&&(d=a,e=b)}),a.rect.x=d.x,a.rect.y=d.y};var k=120;j.itemDragMove=function(a,b,c){function d(){f.shift(e,b,c),e.positionDropPlaceholder(),f.layout()}var e=this.isEnabled&&this.getItem(a);if(e){b-=this.size.paddingLeft,c-=this.size.paddingTop;var f=this,g=new Date;this._itemDragTime&&g-this._itemDragTime<k?(clearTimeout(this.dragTimeout),this.dragTimeout=setTimeout(d,k)):(d(),this._itemDragTime=g)}},j.itemDragEnd=function(a){function b(){d++,2==d&&(c.element.classList.remove("is-positioning-post-drag"),c.hideDropPlaceholder(),e.dispatchEvent("dragItemPositioned",null,[c]))}var c=this.isEnabled&&this.getItem(a);if(c){clearTimeout(this.dragTimeout),c.element.classList.add("is-positioning-post-drag");var d=0,e=this;c.once("layout",b),this.once("layoutComplete",b),c.moveTo(c.rect.x,c.rect.y),this.layout(),this.dragItemCount=Math.max(0,this.dragItemCount-1),this.sortItemsByPosition(),c.disablePlacing(),this.unstamp(c.element)}},j.bindDraggabillyEvents=function(a){this._bindDraggabillyEvents(a,"on")},j.unbindDraggabillyEvents=function(a){this._bindDraggabillyEvents(a,"off")},j._bindDraggabillyEvents=function(a,b){var c=this.handleDraggabilly;a[b]("dragStart",c.dragStart),a[b]("dragMove",c.dragMove),a[b]("dragEnd",c.dragEnd)},j.bindUIDraggableEvents=function(a){this._bindUIDraggableEvents(a,"on")},j.unbindUIDraggableEvents=function(a){this._bindUIDraggableEvents(a,"off")},j._bindUIDraggableEvents=function(a,b){var c=this.handleUIDraggable;a[b]("dragstart",c.start)[b]("drag",c.drag)[b]("dragstop",c.stop)};var l=j.destroy;return j.destroy=function(){l.apply(this,arguments),this.isEnabled=!1},i.Rect=c,i.Packer=d,i}),function(a,b){"function"==typeof define&&define.amd?define(["isotope/js/layout-mode","packery/js/packery"],b):"object"==typeof module&&module.exports?module.exports=b(require("isotope-layout/js/layout-mode"),require("packery")):b(a.Isotope.LayoutMode,a.Packery)}(window,function(a,b){var c=a.create("packery"),d=c.prototype,e={_getElementOffset:!0,_getMeasurement:!0};for(var f in b.prototype)e[f]||(d[f]=b.prototype[f]);var g=d._resetLayout;d._resetLayout=function(){this.packer=this.packer||new b.Packer,this.shiftPacker=this.shiftPacker||new b.Packer,g.apply(this,arguments)};var h=d._getItemLayoutPosition;d._getItemLayoutPosition=function(a){return a.rect=a.rect||new b.Rect,h.call(this,a)};var i=d.needsResizeLayout;d.needsResizeLayout=function(){return this._getOption("horizontal")?this.needsVerticalResizeLayout():i.call(this)};var j=d._getOption;return d._getOption=function(a){return"horizontal"==a?void 0!==this.options.isHorizontal?this.options.isHorizontal:this.options.horizontal:j.apply(this.isotope,arguments)},c});
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.