!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function($){var t=-1,e=-1,i=function(t){return parseFloat(t)||0},n=function(t){var e=1,n=$(t),o=null,a=[];return n.each(function(){var t=$(this),n=t.offset().top-i(t.css("margin-top")),r=a.length>0?a[a.length-1]:null;null===r?a.push(t):Math.floor(Math.abs(o-n))<=e?a[a.length-1]=r.add(t):a.push(t),o=n}),a},o=function(t){var e={byRow:!0,property:"height",target:null,remove:!1,minHeight:0};return"object"==typeof t?$.extend(e,t):("boolean"==typeof t?e.byRow=t:"remove"===t&&(e.remove=!0),e)},a=$.fn.matchHeight=function(t){var e=o(t);if(e.remove){var i=this;return this.css(e.property,""),$.each(a._groups,function(t,e){e.elements=e.elements.not(i)}),this}return this.length<=1&&!e.target?this:(a._groups.push({elements:this,options:e}),a._apply(this,e),this)};a.version="0.7.0",a._groups=[],a._throttle=80,a._maintainScroll=!1,a._beforeUpdate=null,a._afterUpdate=null,a._rows=n,a._parse=i,a._parseOptions=o,a._apply=function(t,e){var r=o(e),s=$(t),h=[s],l=$(window).scrollTop(),c=$("html").outerHeight(!0),p=s.parents().filter(":hidden");return p.each(function(){var t=$(this);t.data("style-cache",t.attr("style"))}),p.css("display","block"),r.byRow&&!r.target&&(s.each(function(){var t=$(this),e=t.css("display");"inline-block"!==e&&"flex"!==e&&"inline-flex"!==e&&(e="block"),t.data("style-cache",t.attr("style")),t.css({display:e,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),h=n(s),s.each(function(){var t=$(this);t.attr("style",t.data("style-cache")||"")})),$.each(h,function(t,e){var n=$(e),o=0;if(r.target)o=r.target.outerHeight(!1);else{if(r.byRow&&n.length<=1)return void n.css(r.property,"");n.each(function(){var t=$(this),e=t.attr("style"),i=t.css("display");"inline-block"!==i&&"flex"!==i&&"inline-flex"!==i&&(i="block");var n={display:i};n[r.property]="",t.css(n),t.outerHeight(!1)>o&&(o=t.outerHeight(!1)),e?t.attr("style",e):t.css("display","")})}n.each(function(){var t=$(this),e=0;r.target&&t.is(r.target)||("border-box"!==t.css("box-sizing")&&(e+=i(t.css("border-top-width"))+i(t.css("border-bottom-width")),e+=i(t.css("padding-top"))+i(t.css("padding-bottom"))),o<r.minHeight&&(o=r.minHeight),t.css(r.property,o-e+"px"))})}),p.each(function(){var t=$(this);t.attr("style",t.data("style-cache")||null)}),a._maintainScroll&&$(window).scrollTop(l/c*$("html").outerHeight(!0)),this},a._applyDataApi=function(){var t={};$("[data-match-height], [data-mh]").each(function(){var e=$(this),i=e.attr("data-mh")||e.attr("data-match-height");i in t?t[i]=t[i].add(e):t[i]=e}),$.each(t,function(){this.matchHeight(!0)})};var r=function(t){a._beforeUpdate&&a._beforeUpdate(t,a._groups),$.each(a._groups,function(){a._apply(this.elements,this.options)}),a._afterUpdate&&a._afterUpdate(t,a._groups)};a._update=function(i,n){if(n&&"resize"===n.type){var o=$(window).width();if(o===t)return;t=o}i?e===-1&&(e=setTimeout(function(){r(n),e=-1},a._throttle)):r(n)},$(a._applyDataApi),$(window).bind("load",function(t){a._update(!1,t)}),$(window).bind("resize orientationchange",function(t){a._update(!0,t)})});