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