YUI.add("moodle-mod_assign-history",function(o,s){var d={LINK:"mod-assign-history-link",OPEN:"mod-assign-history-link-open",CLOSED:"mod-assign-history-link-closed",PANEL:"mod-assign-history-panel"},a=0,h=function(){var s=this.get("for"),s=o.one("#"+s);this.hasClass(d.OPEN)?(this.removeClass(d.OPEN),this.addClass(d.CLOSED),this.setStyle("overflow","hidden"),s.hide()):(this.removeClass(d.CLOSED),this.addClass(d.OPEN),s.show())};o.Node.addMethod("history",function(){var s,i=null,e=null,t=this;this.get("children").each(function(){i=i?(a++,e=o.Node.create("<a/>"),s=this,t.insertBefore(e,i),i.remove(!1),e.appendChild(i),s.get("id")||s.set("id",d.PANEL+a),e.set("for",s.get("id")),s.set("aria-live","polite"),e.addClass(d.LINK),1==a?e.addClass(d.OPEN):e.addClass(d.CLOSED),s.addClass(d.PANEL),1==a?s.show():s.hide(),null):this}),this.delegate("click",h,"."+d.LINK)}),o.NodeList.importMethod(o.Node.prototype,"history")},"@VERSION@",{requires:["node","transition"]});