{"version":3,"file":"../js/minimasonry_min.js","names":["MiniMasonry","t","_sizes","_columns","_container","_count","_width","_removeListener","_resizeTimeout","conf","baseWidth","gutterX","gutterY","gutter","container","minify","ultimateGutter","surroundingGutter","direction","wedge","init","prototype","i","nodeName","document","querySelector","Error","n","resizeThrottler","bind","window","addEventListener","removeEventListener","layout","reset","clientWidth","style","minWidth","getCount","Math","floor","computeWidth","Number","parseFloat","toFixed","e","o","children","s","length","width","clientHeight","r","h","getShortest","getNextColumn","u","c","transform","round","height","getLongest","console","error","setTimeout","destroy","removeProperty"],"sources":["minimasonry_min.js"],"sourcesContent":["var MiniMasonry=function(){\"use strict\";function t(t){return this._sizes=[],this._columns=[],this._container=null,this._count=null,this._width=0,this._removeListener=null,this._resizeTimeout=null,this.conf={baseWidth:255,gutterX:null,gutterY:null,gutter:10,container:null,minify:!0,ultimateGutter:5,surroundingGutter:!0,direction:\"ltr\",wedge:!1},this.init(t),this}return t.prototype.init=function(t){for(var i in this.conf)null!=t[i]&&(this.conf[i]=t[i]);if(null!=this.conf.gutterX&&null!=this.conf.gutterY||(this.conf.gutterX=this.conf.gutterY=this.conf.gutter),this._container=\"object\"==typeof this.conf.container&&this.conf.container.nodeName?this.conf.container:document.querySelector(this.conf.container),!this._container)throw new Error(\"Container not found or missing\");var n=this.resizeThrottler.bind(this);window.addEventListener(\"resize\",n),this._removeListener=function(){window.removeEventListener(\"resize\",n)},this.layout()},t.prototype.reset=function(){this._sizes=[],this._columns=[],this._count=null,this._width=this._container.clientWidth;var t=this.conf.baseWidth;this._widththis._sizes.length&&(e=this._sizes.length*(t+this.conf.gutterX)-this.conf.gutterX,!1===this.conf.wedge?n=\"ltr\"==this.conf.direction?(this._width-e)/2:this._width-(this._width-e)/2:\"ltr\"==this.conf.direction||(n=this._width-this.conf.gutterX));for(var r=0;rthis._columns[t]&&(t=i);return t},t.prototype.resizeThrottler=function(){this._resizeTimeout||(this._resizeTimeout=setTimeout(function(){this._resizeTimeout=null,this._container.clientWidth!=this._width&&this.layout()}.bind(this),33))},t.prototype.destroy=function(){\"function\"==typeof this._removeListener&&this._removeListener();for(var t=this._container.children,i=0;i