webshims.register("details",function(e,t,i,n,a,r){var o=function(t){var i=e(t).parent("details");return i[0]&&i.children(":first").get(0)===t?i:a},s=function(t,i){t=e(t),i=e(i);var n=e.data(i[0],"summaryElement");e.data(t[0],"detailsElement",i),n&&t[0]===n[0]||(n&&(n.hasClass("fallback-summary")?n.remove():n.unbind(".summaryPolyfill").removeData("detailsElement").removeAttr("role").removeAttr("tabindex").removeAttr("aria-expanded").removeClass("summary-button").find("span.details-open-indicator").remove()),e.data(i[0],"summaryElement",t),i.prop("open",i.prop("open")))},l=function(t){var i=e.data(t,"summaryElement");return i||(i=e("> summary:first-child",t),i[0]?s(i,t):(e(t).prependPolyfill('<summary class="fallback-summary">'+r.text+"</summary>"),i=e.data(t,"summaryElement"))),i};t.createElement("summary",function(){var i=o(this);if(i&&!e.data(this,"detailsElement")){var n,a,r=e.attr(this,"tabIndex")||"0";s(this,i),e(this).on({"focus.summaryPolyfill":function(){e(this).addClass("summary-has-focus")},"blur.summaryPolyfill":function(){e(this).removeClass("summary-has-focus")},"mouseenter.summaryPolyfill":function(){e(this).addClass("summary-has-hover")},"mouseleave.summaryPolyfill":function(){e(this).removeClass("summary-has-hover")},"click.summaryPolyfill":function(t){var i=o(this);if(i){if(!a&&t.originalEvent)return a=!0,t.stopImmediatePropagation(),t.preventDefault(),e(this).trigger("click"),a=!1,!1;clearTimeout(n),n=setTimeout(function(){t.isDefaultPrevented()||i.prop("open",!i.prop("open"))},0)}},"keydown.summaryPolyfill":function(t){13!=t.keyCode&&32!=t.keyCode||t.isDefaultPrevented()||(a=!0,t.preventDefault(),e(this).trigger("click"),a=!1)}}).attr({tabindex:r,role:"button"}).prepend('<span class="details-open-indicator" />'),t.moveToFirstEvent(this,"click")}});var u;t.defineNodeNamesBooleanProperty("details","open",function(t){var i=e(e.data(this,"summaryElement"));if(i){var n=t?"removeClass":"addClass",a=e(this);if(!u&&r.animate){a.stop().css({width:"",height:""});var o={width:a.width(),height:a.height()}}if(i.attr("aria-expanded",""+t),a[n]("closed-details-summary").children().not(i[0])[n]("closed-details-child"),!u&&r.animate){var s={width:a.width(),height:a.height()};a.css(o).animate(s,{complete:function(){e(this).css({width:"",height:""})}})}}}),t.createElement("details",function(){u=!0,l(this),e.prop(this,"open",e.prop(this,"open")),u=!1})});