!function(t){"use strict";t.fn.TextAreaExpander=function(e,i){var n=function(e,i,n){var r=t(e).attr("defaultHeight")||i;i&&ri&&(r=i),t(e).attr("defaultHeight",r)),e.style.height=r+"px";var h=e.clientHeight||i,a=e.scrollHeight||n;a>n?a=n:t(e).is(":hidden")&&(a=i),h!==a&&(e.style.height=a+2+"px")};return this.off(".TextAreaExpander").on("input.TextAreaExpander propertychange.TextAreaExpander",function(){n(this,e,i)}).on("focus",function(){n(this,e,i)}),this.each(function(){n(this,e,i)}),this}}(jQuery);