YUI.add("datatable-column-widths",function(n,t){var d=n.Lang.isNumber,o=n.Array.indexOf;function e(){}n.Features.add("table","badColWidth",{test:function(){var t,e=n.one("body");return e&&(t="1px"!==(e=e.insertBefore('<table style="position:absolute;visibility:hidden;border:0 none"><colgroup><col style="width:9px"></colgroup><tbody><tr><td style="padding:0 4px;font:normal 2px/2px arial;border:0 none">.</td></tr></tbody></table>',e.get("firstChild"))).one("td").getComputedStyle("width"),e.remove(!0)),t}}),n.mix(e.prototype,{COL_TEMPLATE:"<col/>",COLGROUP_TEMPLATE:"<colgroup/>",setColumnWidth:function(t,e){var t=this.getColumn(t),i=t&&o(this._displayColumns,t);return-1<i&&(d(e)&&(e+="px"),t.width=e,this._setColumnWidth(i,e)),this},_createColumnGroup:function(){return n.Node.create(this.COLGROUP_TEMPLATE)},initializer:function(){this.after(["renderView","columnsChange"],this._uiSetColumnWidths)},_setColumnWidth:function(t,e){var i,o=this._colgroupNode,o=o&&o.all("col").item(t);o&&(e&&d(e)&&(e+="px"),o.setStyle("width",e),e&&n.Features.test("table","badColWidth")&&(i=this.getCell([0,t]))&&(t=function(t){return parseInt(i.getComputedStyle(t),10)||0},o.setStyle("width",parseInt(e,10)-t("paddingLeft")-t("paddingRight")-t("borderLeftWidth")-t("borderRightWidth")+"px")))},_uiSetColumnWidths:function(){if(this.view){var t,e,i=this.COL_TEMPLATE,o=this._colgroupNode,n=this._displayColumns;for(o?o.empty():(o=this._colgroupNode=this._createColumnGroup(),this._tableNode.insertBefore(o,this._tableNode.one("> thead, > tfoot, > tbody"))),t=0,e=n.length;t<e;++t)o.append(i),this._setColumnWidth(t,n[t].width)}}},!0),n.DataTable.ColumnWidths=e,n.Base.mix(n.DataTable,[e])},"patched-v3.18.4",{requires:["datatable-base"]});