/**
 * @license
 * (c) 2009-2013 Michael Leibman
 * michael{dot}leibman{at}gmail{dot}com
 * http://github.com/mleibman/slickgrid
 *
 * Distributed under MIT license.
 * All rights reserved.
 *
 * SlickGrid v2.2
 *
 * NOTES:
 *     Cell/row DOM manipulations are done directly bypassing jQuery's DOM manipulation methods.
 *     This increases the speed dramatically, but can only be done safely because there are no event handlers
 *     or data associated with any cell/row DOM nodes.  Cell editors must make sure they implement .destroy()
 *     and do proper cleanup.
 */
if(typeof jQuery=="undefined")throw"SlickGrid requires jquery module to be loaded";if(!jQuery.fn.drag)throw"SlickGrid requires jquery.event.drag module to be loaded";if(typeof Slick=="undefined")throw"slick.core.js not loaded";(function(n){function r(r,u,f,e){function ns(){var o,u;if(y=n(r),y.length<1)throw new Error("SlickGrid requires a valid container, "+r+" does not exist in the DOM.");for(i=i||os(),t=t||fs(),e=n.extend({},ko,e),se(),su.width=e.defaultColumnWidth,fr={},o=0;o<f.length;o++)u=f[o]=n.extend({},su,f[o]),fr[u.id]=o,u.minWidth&&u.width<u.minWidth&&(u.width=u.minWidth),u.maxWidth&&u.width>u.maxWidth&&(u.width=u.maxWidth);if(e.enableColumnReorder&&!n.fn.sortable)throw new Error("SlickGrid's 'enableColumnReorder = true' option requires jquery-ui.sortable module to be loaded");ar={commitCurrentEdit:hl,cancelCurrentEdit:cl};y.empty().css("overflow","hidden").css("outline",0).addClass(ft).addClass("ui-widget");/relative|absolute|fixed/.test(y.css("position"))||y.css("position","relative");wi=n("<div class='slick-header ui-state-default' style='overflow:hidden;position:relative;' />").appendTo(y);w=n("<div class='slick-header-columns' style='left:-1000px' />").appendTo(wi);w.width(ku());yt=n("<div class='slick-headerrow ui-state-default' style='overflow:hidden;position:relative;' />").appendTo(y);oi=n("<div class='slick-headerrow-columns' />").appendTo(yt);af=n("<div style='display:block;height:1px;position:absolute;top:0;left:0;'><\/div>").css("width",ne()+t.width+"px").appendTo(yt);si=n("<div class='slick-top-panel-scroller ui-state-default' style='overflow:hidden;position:relative;' />").appendTo(y);vf=n("<div class='slick-top-panel' style='width:10000px' />").appendTo(si);e.showTopPanel||si.hide();e.showHeaderRow||yt.hide();k=n("<div class='slick-viewport' style='width:100%;overflow:auto;outline:0;position:relative;;'>").appendTo(y);k.css("overflow-y",e.autoHeight?"hidden":"auto");nt=n("<div class='grid-canvas' />").appendTo(k);e.explicitInitialization||df()}function df(){vt||(vt=!0,et=parseFloat(n.css(y[0],"width",!0)),ps(),es(w),e.enableTextSelectionOnCells||k.bind("selectstart.ui",function(t){return n(t.target).is("input,textarea")}),rf(),te(),vs(),re(),gt(),ss(),y.bind("resize.slickgrid",gt),k.bind("scroll",hr),wi.bind("contextmenu",vc).bind("click",yc).delegate(".slick-header-column","mouseenter",lc).delegate(".slick-header-column","mouseleave",ac),yt.bind("scroll",kh),nt.bind("keydown",oc).bind("click",sc).bind("dblclick",cc).bind("contextmenu",hc).bind("draginit",rc).bind("dragstart",{distance:3},uc).bind("drag",fc).bind("dragend",ec).delegate(".slick-cell","mouseenter",pc).delegate(".slick-cell","mouseleave",wc),navigator.userAgent.toLowerCase().match(/webkit/)&&navigator.userAgent.toLowerCase().match(/macintosh/)&&nt.bind("mousewheel",ic))}function ts(n){ti.unshift(n);n.init(o)}function gf(n){for(var t=ti.length;t>=0;t--)if(ti[t]===n){ti[t].destroy&&ti[t].destroy();ti.splice(t,1);break}}function is(n){ot&&(ot.onSelectedRangesChanged.unsubscribe(ee),ot.destroy&&ot.destroy());ot=n;ot&&(ot.init(o),ot.onSelectedRangesChanged.subscribe(ee))}function rs(){return ot}function us(){return nt[0]}function fs(){var t=n("<div style='position:absolute; top:-10000px; left:-10000px; width:100px; height:100px; overflow:scroll;'><\/div>").appendTo("body"),i={width:t.width()-t[0].clientWidth,height:t.height()-t[0].clientHeight};return t.remove(),i}function ku(){for(var r,n=0,i=0,u=f.length;i<u;i++)r=f[i].width,n+=r;return n+=t.width,Math.max(n,et)+1e3}function ne(){for(var r=di?et-t.width:et,n=0,i=f.length;i--;)n+=f[i].width;return e.fullWidthRows?Math.max(n,r):n}function du(n){var i=pt;pt=ne();pt!=i&&(nt.width(pt),oi.width(pt),w.width(ku()),lu=pt>et-t.width);af.width(pt+(di?t.width:0));(pt!=i||n)&&tf()}function es(n){n&&n.jquery&&n.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return!1})}function os(){for(var i=1e6,u=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,r=n("<div style='display:none' />").appendTo(document.body),t;;)if(t=i*2,r.css("height",t),t>u||r.height()!==t)break;else i=t;return r.remove(),i}function ss(){for(var t=nt[0],i;(t=t.parentNode)!=document.body&&t!=null;)(t==k[0]||t.scrollWidth!=t.clientWidth||t.scrollHeight!=t.clientHeight)&&(i=n(t),hi=hi?hi.add(i):i,i.bind("scroll."+ft,ro))}function hs(){hi&&(hi.unbind("scroll."+ft),hi=null)}function cs(n,t,i){var r,e,u;vt&&(r=kt(n),r!=null)&&(e=f[r],u=w.children().eq(r),u&&(t!==undefined&&(f[r].name=t),i!==undefined&&(f[r].toolTip=i),h(o.onBeforeHeaderCellDestroy,{node:u[0],column:e}),u.attr("title",i||"").children().eq(0).html(t),h(o.onHeaderCellRendered,{node:u[0],column:e})))}function ls(){return oi[0]}function as(n){var i=kt(n),t=oi.children().eq(i);return t&&t[0]}function te(){function s(){n(this).addClass("ui-state-hover")}function c(){n(this).removeClass("ui-state-hover")}var i,t,r,u;for(w.find(".slick-header-column").each(function(){var t=n(this).data("column");t&&h(o.onBeforeHeaderCellDestroy,{node:this,column:t})}),w.empty(),w.width(ku()),oi.find(".slick-headerrow-column").each(function(){var t=n(this).data("column");t&&h(o.onBeforeHeaderRowCellDestroy,{node:this,column:t})}),oi.empty(),i=0;i<f.length;i++){if(t=f[i],r=n("<div class='ui-state-default slick-header-column' />").html("<span class='slick-column-name'>"+t.name+"<\/span>").width(t.width-ci).attr("id",""+ft+t.id).attr("title",t.toolTip||"").data("column",t).addClass(t.headerCssClass||"").appendTo(w),e.enableColumnReorder||t.sortable)r.on("mouseenter",s).on("mouseleave",c);t.sortable&&(r.addClass("slick-header-sortable"),r.append("<span class='slick-sort-indicator' />"));h(o.onHeaderCellRendered,{node:r[0],column:t});e.showHeaderRow&&(u=n("<div class='ui-state-default slick-headerrow-column l"+i+" r"+i+"'><\/div>").data("column",t).appendTo(oi),h(o.onHeaderRowCellRendered,{node:u[0],column:t}))}br(it);ie();e.enableColumnReorder&&ys()}function vs(){w.click(function(t){var s,r,i,u;if((t.metaKey=t.metaKey||t.ctrlKey,!n(t.target).hasClass("slick-resizable-handle"))&&(s=n(t.target).closest(".slick-header-column"),s.length)&&(r=s.data("column"),r.sortable)){if(!d().commitCurrentEdit())return;for(i=null,u=0;u<it.length;u++)if(it[u].columnId==r.id){i=it[u];i.sortAsc=!i.sortAsc;break}t.metaKey&&e.multiColumnSort?i&&it.splice(u,1):((t.shiftKey||t.metaKey)&&e.multiColumnSort||(it=[]),i?it.length==0&&it.push(i):(i={columnId:r.id,sortAsc:r.defaultSortAsc},it.push(i)));br(it);e.multiColumnSort?h(o.onSort,{multiColumnSort:!0,sortCols:n.map(it,function(n){return{sortCol:f[kt(n.columnId)],sortAsc:n.sortAsc}})},t):h(o.onSort,{multiColumnSort:!1,sortCol:r,sortAsc:i.sortAsc},t)}})}function ys(){w.filter(":ui-sortable").sortable("destroy");w.sortable({containment:"parent",distance:3,axis:"x",cursor:"default",tolerance:"intersection",helper:"clone",placeholder:"slick-sortable-placeholder ui-state-default slick-header-column",start:function(t,i){i.placeholder.width(i.helper.outerWidth()-ci);n(i.helper).addClass("slick-header-column-active")},beforeStop:function(t,i){n(i.helper).removeClass("slick-header-column-active")},stop:function(t){var r,u,i;if(!d().commitCurrentEdit()){n(this).sortable("cancel");return}for(r=w.sortable("toArray"),u=[],i=0;i<r.length;i++)u.push(f[kt(r[i].replace(ft,""))]);oe(u);h(o.onColumnsReordered,{});t.stopPropagation();ie()}})}function ie(){var v,i,t,u,r,c,l,s,a;(r=w.children(),r.find(".slick-resizable-handle").remove(),r.each(function(n){f[n].resizable&&(s===undefined&&(s=n),a=n)}),s!==undefined)&&r.each(function(y,p){y<s||e.forceFitColumns&&y>=a||(v=n(p),n("<div class='slick-resizable-handle' />").appendTo(p).bind("dragstart",function(o){var a,s,v,h;if(!d().commitCurrentEdit())return!1;if(u=o.pageX,n(this).parent().addClass("slick-header-column-active"),a=null,s=null,r.each(function(t,i){f[t].previousWidth=n(i).outerWidth()}),e.forceFitColumns)for(a=0,s=0,i=y+1;i<r.length;i++)t=f[i],t.resizable&&(s!==null&&(t.maxWidth?s+=t.maxWidth-t.previousWidth:s=null),a+=t.previousWidth-Math.max(t.minWidth||0,ni));for(v=0,h=0,i=0;i<=y;i++)t=f[i],t.resizable&&(h!==null&&(t.maxWidth?h+=t.maxWidth-t.previousWidth:h=null),v+=t.previousWidth-Math.max(t.minWidth||0,ni));a===null&&(a=1e5);v===null&&(v=1e5);s===null&&(s=1e5);h===null&&(h=1e5);l=u+Math.min(a,h);c=u-Math.min(v,s)}).bind("drag",function(n){var s,h=Math.min(l,Math.max(c,n.pageX))-u,o;if(h<0){for(o=h,i=y;i>=0;i--)t=f[i],t.resizable&&(s=Math.max(t.minWidth||0,ni),o&&t.previousWidth+o<s?(o+=t.previousWidth-s,t.width=s):(t.width=t.previousWidth+o,o=0));if(e.forceFitColumns)for(o=-h,i=y+1;i<r.length;i++)t=f[i],t.resizable&&(o&&t.maxWidth&&t.maxWidth-t.previousWidth<o?(o-=t.maxWidth-t.previousWidth,t.width=t.maxWidth):(t.width=t.previousWidth+o,o=0))}else{for(o=h,i=y;i>=0;i--)t=f[i],t.resizable&&(o&&t.maxWidth&&t.maxWidth-t.previousWidth<o?(o-=t.maxWidth-t.previousWidth,t.width=t.maxWidth):(t.width=t.previousWidth+o,o=0));if(e.forceFitColumns)for(o=-h,i=y+1;i<r.length;i++)t=f[i],t.resizable&&(s=Math.max(t.minWidth||0,ni),o&&t.previousWidth+o<s?(o+=t.previousWidth-s,t.width=s):(t.width=t.previousWidth+o,o=0))}fe();e.syncColumnCellResize&&tf()}).bind("dragend",function(){var u;for(n(this).parent().removeClass("slick-header-column-active"),i=0;i<r.length;i++)t=f[i],u=n(r[i]).outerWidth(),t.previousWidth!==u&&t.rerenderOnResize&&li();du(!0);ut();h(o.onColumnsResized,{})}))})}function gu(t){var i=0;return n.each(["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],function(n,r){i+=parseFloat(t.css(r))||0}),i}function ps(){var t,r=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],u=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],i;t=n("<div class='ui-state-default slick-header-column' style='visibility:hidden'>-<\/div>").appendTo(w);ci=yf=0;t.css("box-sizing")!="border-box"&&t.css("-moz-box-sizing")!="border-box"&&t.css("-webkit-box-sizing")!="border-box"&&(n.each(r,function(n,i){ci+=parseFloat(t.css(i))||0}),n.each(u,function(n,i){yf+=parseFloat(t.css(i))||0}));t.remove();i=n("<div class='slick-row' />").appendTo(nt);t=n("<div class='slick-cell' id='' style='visibility:hidden'>-<\/div>").appendTo(i);au=vu=0;t.css("box-sizing")!="border-box"&&t.css("-moz-box-sizing")!="border-box"&&t.css("-webkit-box-sizing")!="border-box"&&(n.each(r,function(n,i){au+=parseFloat(t.css(i))||0}),n.each(u,function(n,i){vu+=parseFloat(t.css(i))||0}));i.remove();ni=Math.max(ci,au)}function re(){var r,t,i;for(bi=n("<style type='text/css' rel='stylesheet' />").appendTo(n("head")),r=e.rowHeight-vu,t=["."+ft+" .slick-header-column { left: 1000px; }","."+ft+" .slick-top-panel { height:"+e.topPanelHeight+"px; }","."+ft+" .slick-headerrow-columns { height:"+e.headerRowHeight+"px; }","."+ft+" .slick-cell { height:"+r+"px; }","."+ft+" .slick-row { height:"+e.rowHeight+"px; }"],i=0;i<f.length;i++)t.push("."+ft+" .l"+i+" { }"),t.push("."+ft+" .r"+i+" { }");bi[0].styleSheet?bi[0].styleSheet.cssText=t.join(" "):bi[0].appendChild(document.createTextNode(t.join(" ")))}function ws(n){var r,u,i,f,t,e;if(!ki){for(r=document.styleSheets,t=0;t<r.length;t++)if((r[t].ownerNode||r[t].owningElement)==bi[0]){ki=r[t];break}if(!ki)throw new Error("Cannot find stylesheet.");for(hu=[],cu=[],u=ki.cssRules||ki.rules,t=0;t<u.length;t++)e=u[t].selectorText,(i=/\.l\d+/.exec(e))?(f=parseInt(i[0].substr(2,i[0].length-2),10),hu[f]=u[t]):(i=/\.r\d+/.exec(e))&&(f=parseInt(i[0].substr(2,i[0].length-2),10),cu[f]=u[t])}return{left:hu[n],right:cu[n]}}function ue(){bi.remove();ki=null}function bs(){d().cancelCurrentEdit();h(o.onBeforeDestroy,{});for(var n=ti.length;n--;)gf(ti[n]);e.enableColumnReorder&&w.filter(":ui-sortable").sortable("destroy");hs();y.unbind(".slickgrid");ue();nt.unbind("draginit dragstart dragend drag");y.empty().removeClass(ft)}function h(n,t,i){return i=i||new Slick.EventData,t=t||{},t.grid=o,n.notify(t,i,o)}function d(){return e.editorLock}function ks(){return ar}function kt(n){return fr[n]}function nf(){for(var r,u=[],l=0,i=0,e,o=di?et-t.width:et,p,h,a,s,w,c,v,y,n=0;n<f.length;n++)r=f[n],u.push(r.width),i+=r.width,r.resizable&&(l+=r.width-Math.max(r.minWidth,ni));for(e=i;i>o&&l;){for(p=(i-o)/l,n=0;n<f.length&&i>o;n++)(r=f[n],h=u[n],!r.resizable||h<=r.minWidth||h<=ni)||(a=Math.max(r.minWidth,ni),s=Math.floor(p*(h-a))||1,s=Math.min(s,h-a),i-=s,l-=s,u[n]-=s);if(e<=i)break;e=i}for(e=i;i<o;){for(w=o/i,n=0;n<f.length&&i<o;n++)r=f[n],c=u[n],v=!r.resizable||r.maxWidth<=c?0:Math.min(Math.floor(w*c)-c,r.maxWidth-c||1e6)||1,i+=v,u[n]+=v;if(e>=i)break;e=i}for(y=!1,n=0;n<f.length;n++)f[n].rerenderOnResize&&f[n].width!=u[n]&&(y=!0),f[n].width=u[n];fe();du(!0);y&&(li(),ut())}function fe(){var i;if(vt){for(var t=0,r=w.children(),u=r.length;t<u;t++)i=n(r[t]),i.width()!==f[t].width-ci&&i.width(f[t].width-ci);rf()}}function tf(){for(var t=0,r,i,n=0;n<f.length;n++)r=f[n].width,i=ws(n),i.left.style.left=t+"px",i.right.style.right=pt-t-r+"px",t+=f[n].width}function ds(n,t){br([{columnId:n,sortAsc:t}])}function br(t){it=t;var i=w.children();i.removeClass("slick-header-column-sorted").find(".slick-sort-indicator").removeClass("slick-sort-indicator-asc slick-sort-indicator-desc");n.each(it,function(n,t){t.sortAsc==null&&(t.sortAsc=!0);var r=kt(t.columnId);r!=null&&i.eq(r).addClass("slick-header-column-sorted").find(".slick-sort-indicator").addClass(t.sortAsc?"slick-sort-indicator-asc":"slick-sort-indicator-desc")})}function gs(){return it}function ee(n,t){var u,r,i,s;for(pu=[],u={},r=0;r<t.length;r++)for(i=t[r].fromRow;i<=t[r].toRow;i++)for(u[i]||(pu.push(i),u[i]={}),s=t[r].fromCell;s<=t[r].toCell;s++)po(i,s)&&(u[i][f[s].id]=e.selectedCellCssClass);be(e.selectedCellCssClass,u);h(o.onSelectedRowsChanged,{rows:bo()},n)}function nh(){return f}function rf(){var t,n,i;for(tr=[],ir=[],t=0,n=0,i=f.length;n<i;n++)tr[n]=t,ir[n]=t+f[n].width,t+=f[n].width}function oe(t){var r,i;for(f=t,fr={},r=0;r<f.length;r++)i=f[r]=n.extend({},su,f[r]),fr[i.id]=r,i.minWidth&&i.width<i.minWidth&&(i.width=i.minWidth),i.maxWidth&&i.width>i.maxWidth&&(i.width=i.maxWidth);rf();vt&&(li(),te(),ue(),re(),gt(),tf(),hr())}function th(){return e}function ih(t){d().commitCurrentEdit()&&(bt(),e.enableAddRow!==t.enableAddRow&&ve(rt()),e=n.extend(e,t),se(),k.css("overflow-y",e.autoHeight?"hidden":"auto"),ut())}function se(){e.autoHeight&&(e.leaveSpaceForNewRows=!1)}function rh(n,t){u=n;li();tu();t&&ri(0)}function uh(){return u}function rt(){return u.getLength?u.getLength():u.length}function dt(){return rt()+(e.enableAddRow?1:0)}function wt(n){return u.getItem?u.getItem(n):u[n]}function fh(){return vf[0]}function eh(n){e.showTopPanel!=n&&(e.showTopPanel=n,n?si.slideDown("fast",gt):si.slideUp("fast",gt))}function oh(n){e.showHeaderRow!=n&&(e.showHeaderRow=n,n?yt.slideDown("fast",gt):yt.slideUp("fast",gt))}function sh(){return y.get(0)}function uf(n){return e.rowHeight*n-g}function kr(n){return Math.floor((n+g)/e.rowHeight)}function ri(n){var r,i,u;n=Math.max(n,0);n=Math.min(n,lt-b+(lu?t.height:0));r=g;fi=Math.min(pi-1,Math.floor(n/yi));g=Math.round(fi*lr);i=n-g;g!=r&&(u=iu(i),le(u),bh());nr!=i&&(ei=nr+r<i+g?1:-1,k[0].scrollTop=yr=p=nr=i,h(o.onViewportChanged,{}))}function hh(n,t,i){return i==null?"":(i+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function dr(n,t){var i=u.getItemMetadata&&u.getItemMetadata(n),r=i&&i.columns&&(i.columns[t.id]||i.columns[kt(t.id)]);return r&&r.formatter||i&&i.formatter||t.formatter||e.formatterFactory&&e.formatterFactory.getFormatter(t)||e.defaultFormatter}function he(n,t){var r=f[t],o=u.getItemMetadata&&u.getItemMetadata(n),i=o&&o.columns;return i&&i[r.id]&&i[r.id].editor!==undefined?i[r.id].editor:i&&i[t]&&i[t].editor!==undefined?i[t].editor:r.editor||e.editorFactory&&e.editorFactory.getEditor(r)}function gr(n,t){return e.dataItemColumnValueExtractor?e.dataItemColumnValueExtractor(n,t):n[t.field]}function ch(n,t,i,r){var a=wt(t),w=t<r&&!a,v="slick-row"+(w?" loading":"")+(t===s?" active":"")+(t%2==1?" odd":" even"),h,c,p,o,l,y;for(a||(v+=" "+e.addNewRowCssClass),h=u.getItemMetadata&&u.getItemMetadata(t),h&&h.cssClasses&&(v+=" "+h.cssClasses),n.push("<div class='ui-widget-content "+v+"' style='top:"+uf(t)+"px'>"),o=0,l=f.length;o<l;o++){if(p=f[o],c=1,h&&h.columns&&(y=h.columns[p.id]||h.columns[o],c=y&&y.colspan||1,c==="*"&&(c=l-o)),ir[Math.min(l-1,o+c-1)]>i.leftPx){if(tr[o]>i.rightPx)break;ce(n,t,o,c,a)}c>1&&(o+=c-1)}n.push("<\/div>")}function ce(n,t,i,r,u){var e=f[i],h="slick-cell l"+i+" r"+Math.min(f.length-1,i+r-1)+(e.cssClass?" "+e.cssClass:""),o,c;t===s&&i===v&&(h+=" active");for(o in st)st[o][t]&&st[o][t][e.id]&&(h+=" "+st[o][t][e.id]);n.push("<div class='"+h+"'>");u&&(c=gr(u,e),n.push(dr(t,e)(t,i,c,e,u)));n.push("<\/div>");a[t].cellRenderQueue.push(i);a[t].cellColSpans[i]=r}function le(n){for(var t in a)(t=parseInt(t,10))!==s&&(t<n.top||t>n.bottom)&&nu(t)}function lh(){tu();li();ut()}function li(){c&&bt();for(var n in a)nu(n)}function nu(n){var t=a[n];t&&(wr==t.rowNode?(t.rowNode.style.display="none",sr=wr):nt[0].removeChild(t.rowNode),delete a[n],delete ii[n],yu--,kf++)}function ae(n){var t,i;if(n&&n.length)for(ei=0,t=0,i=n.length;t<i;t++)c&&s===n[t]&&bt(),a[n[t]]&&nu(n[t])}function ve(n){ae([n])}function ah(n,t){var u=ht(n,t),r,i;u&&(r=f[t],i=wt(n),c&&s===n&&v===t?c.loadValue(i):(u.innerHTML=i?dr(n,r)(n,t,gr(i,r),r,i):"",ef(n)))}function ff(n){var r=a[n],i,t,u,e;if(r){ru(n);i=wt(n);for(t in r.cellNodesByColumnIdx)r.cellNodesByColumnIdx.hasOwnProperty(t)&&(t=t|0,u=f[t],e=r.cellNodesByColumnIdx[t],n===s&&t===v&&c?c.loadValue(i):e.innerHTML=i?dr(n,u)(n,t,gr(i,u),u,i):"");ef(n)}}function vh(){return parseFloat(n.css(y[0],"height",!0))-parseFloat(n.css(y[0],"paddingTop",!0))-parseFloat(n.css(y[0],"paddingBottom",!0))-parseFloat(n.css(wi[0],"height"))-gu(wi)-(e.showTopPanel?e.topPanelHeight+gu(si):0)-(e.showHeaderRow?e.headerRowHeight+gu(yt):0)}function gt(){vt&&(b=e.autoHeight?e.rowHeight*dt():vh(),vr=Math.ceil(b/e.rowHeight),et=parseFloat(n.css(y[0],"width",!0)),e.autoHeight||k.height(b),e.forceFitColumns&&nf(),tu(),hr(),ur=-1,ut())}function tu(){var n,r,u,h;if(vt){var f=dt(),o=f+(e.leaveSpaceForNewRows?vr-1:0),c=di;di=!e.autoHeight&&o*e.rowHeight>b;bt();n=f-1;for(r in a)r>=n&&nu(r);l&&s>n&&hf();u=at;lt=Math.max(e.rowHeight*o,b-t.height);lt<i?(at=yi=lt,pi=1,lr=0):(at=i,yi=at/100,pi=Math.floor(lt/yi),lr=(lt-at)/(pi-1));at!==u&&(nt.css("height",at),p=k[0].scrollTop);h=p+g<=lt-b;lt==0||p==0?fi=g=0:h?ri(p+g):ri(lt-b);at!=u&&e.autoHeight&&gt();e.forceFitColumns&&c!=di&&nf();du(!1)}}function iu(n,t){return n==null&&(n=p),t==null&&(t=tt),{top:kr(n),bottom:kr(n+b)+1,leftPx:t,rightPx:t+et}}function ye(n,t){var i=iu(n,t),u=Math.round(b/e.rowHeight),r=3;return ei==-1?(i.top-=u,i.bottom+=r):ei==1?(i.top-=r,i.bottom+=u):(i.top-=r,i.bottom+=r),i.top=Math.max(0,i.top),i.bottom=Math.min(dt()-1,i.bottom),i.leftPx-=et,i.rightPx+=et,i.leftPx=Math.max(0,i.leftPx),i.rightPx=Math.min(pt,i.rightPx),i}function ru(n){var t=a[n],i,r;if(t&&t.cellRenderQueue.length)for(i=t.rowNode.lastChild;t.cellRenderQueue.length;)r=t.cellRenderQueue.pop(),t.cellNodesByColumnIdx[r]=i,i=i.previousSibling}function yh(n,t){var h=0,r=a[t],e=[],i,o,u;for(i in r.cellNodesByColumnIdx)r.cellNodesByColumnIdx.hasOwnProperty(i)&&(i=i|0,o=r.cellColSpans[i],(tr[i]>n.rightPx||ir[Math.min(f.length-1,i+o-1)]<n.leftPx)&&(t==s&&i==v||e.push(i)));while((u=e.pop())!=null)r.rowNode.removeChild(r.cellNodesByColumnIdx[u]),delete r.cellColSpans[u],delete r.cellNodesByColumnIdx[u],ii[t]&&delete ii[t][u],h++}function ph(n){for(var o,w,t,h,l,v,b,y,k,e,c=[],p=[],s,d=0,i,r=n.top,g=n.bottom;r<=g;r++)if(e=a[r],e){for(ru(r),yh(n,r),s=0,o=u.getItemMetadata&&u.getItemMetadata(r),o=o&&o.columns,w=wt(r),t=0,h=f.length;t<h;t++){if(tr[t]>n.rightPx)break;if((i=e.cellColSpans[t])!=null){t+=i>1?i-1:0;continue}i=1;o&&(l=o[f[t].id]||o[t],i=l&&l.colspan||1,i==="*"&&(i=h-t));ir[Math.min(h-1,t+i-1)]>n.leftPx&&(ce(c,r,t,i,w),s++);t+=i>1?i-1:0}s&&(d+=s,p.push(r))}if(c.length)for(v=document.createElement("div"),v.innerHTML=c.join("");(b=p.pop())!=null;)for(e=a[b];(k=e.cellRenderQueue.pop())!=null;)y=v.lastChild,e.rowNode.appendChild(y),e.cellNodesByColumnIdx[k]=y}function wh(n){for(var u,o=nt[0],f=[],i=[],e=!1,h=rt(),t=n.top,r=n.bottom;t<=r;t++)a[t]||(yu++,i.push(t),a[t]={rowNode:null,cellColSpans:[],cellNodesByColumnIdx:[],cellRenderQueue:[]},ch(f,t,n,h),l&&s===t&&(e=!0),bf++);if(i.length){for(u=document.createElement("div"),u.innerHTML=f.join(""),t=0,r=i.length;t<r;t++)a[i[t]].rowNode=o.appendChild(u.firstChild);e&&(l=ht(s,v))}}function pe(){e.enableAsyncPostRender&&(clearTimeout(bu),bu=setTimeout(we,e.asyncPostRenderDelay))}function ef(n){delete ii[n];or=Math.min(or,n);er=Math.max(er,n);pe()}function bh(){for(var n in a)a[n].rowNode.style.top=uf(n)+"px"}function ut(){if(vt){var t=iu(),n=ye();le(n);ur!=tt&&ph(n);wh(n);or=t.top;er=Math.min(dt()-1,t.bottom);pe();yr=p;ur=tt;pr=null}}function kh(){var n=yt[0].scrollLeft;n!=k[0].scrollLeft&&(k[0].scrollLeft=n)}function hr(){var n,t,i;p=k[0].scrollTop;tt=k[0].scrollLeft;n=Math.abs(p-nr);t=Math.abs(tt-wf);t&&(wf=tt,wi[0].scrollLeft=tt,si[0].scrollLeft=tt,yt[0].scrollLeft=tt);n&&(ei=nr<p?1:-1,nr=p,n<b?ri(p+g):(i=g,fi=at==b?0:Math.min(pi-1,Math.floor(p*((lt-b)/(at-b))*(1/yi))),g=Math.round(fi*lr),i!=g&&li()));(t||n)&&(pr&&clearTimeout(pr),(Math.abs(yr-p)>20||Math.abs(ur-tt)>20)&&(e.forceSyncScrolling||Math.abs(yr-p)<b&&Math.abs(ur-tt)<et?ut():pr=setTimeout(ut,50),h(o.onViewportChanged,{})));h(o.onScroll,{scrollLeft:tt,scrollTop:p})}function we(){for(var o=rt(),n,i,t,r,u;or<=er;)if(n=ei>=0?or++:er--,i=a[n],i&&!(n>=o)){ii[n]||(ii[n]={});ru(n);for(t in i.cellNodesByColumnIdx)i.cellNodesByColumnIdx.hasOwnProperty(t)&&(t=t|0,r=f[t],r.asyncPostRender&&!ii[n][t]&&(u=i.cellNodesByColumnIdx[t],u&&r.asyncPostRender(u,n,wt(n),r),ii[n][t]=!0));bu=setTimeout(we,e.asyncPostRenderDelay);return}}function of(t,i){var e,r,u,f;for(var o in a){if(f=i&&i[o],u=t&&t[o],f)for(r in f)u&&f[r]==u[r]||(e=ht(o,kt(r)),e&&n(e).removeClass(f[r]));if(u)for(r in u)f&&f[r]==u[r]||(e=ht(o,kt(r)),e&&n(e).addClass(u[r]))}}function dh(n,t){if(st[n])throw"addCellCssStyles: cell CSS hash with key '"+n+"' already exists.";st[n]=t;of(t,null);h(o.onCellCssStylesChanged,{key:n,hash:t})}function gh(n){st[n]&&(of(null,st[n]),delete st[n],h(o.onCellCssStylesChanged,{key:n,hash:null}))}function be(n,t){var i=st[n];st[n]=t;of(t,i);h(o.onCellCssStylesChanged,{key:n,hash:t})}function nc(n){return st[n]}function tc(t,i,r){if(r=r||100,a[t]){var u=n(ht(t,i));function f(n){n&&setTimeout(function(){u.queue(function(){u.toggleClass(e.cellFlashingCssClass).dequeue();f(n-1)})},r)}f(4)}}function ic(t){var i=n(t.target).closest(".slick-row")[0];i!=wr&&(sr&&sr!=i&&(nt[0].removeChild(sr),sr=null),wr=i)}function rc(n,t){var i=cr(n),r;return!i||!sf(i.row,i.cell)?!1:(r=h(o.onDragInit,t,n),n.isImmediatePropagationStopped())?r:!1}function uc(n,t){var i=cr(n),r;return!i||!sf(i.row,i.cell)?!1:(r=h(o.onDragStart,t,n),n.isImmediatePropagationStopped())?r:!1}function fc(n,t){return h(o.onDrag,t,n)}function ec(n,t){h(o.onDragEnd,t,n)}function oc(n){h(o.onKeyDown,{row:s,cell:v},n);var t=n.isImmediatePropagationStopped();if(!t)if(n.shiftKey||n.altKey||n.ctrlKey)n.which!=9||!n.shiftKey||n.ctrlKey||n.altKey||(t=yo());else if(n.which==27){if(!d().isActive())return;to()}else n.which==34?(eo(),t=!0):n.which==33?(oo(),t=!0):n.which==37?t=lo():n.which==39?t=co():n.which==38?t=ao():n.which==40?t=ou():n.which==9?t=vo():n.which==13&&(e.editable&&(c?s===rt()?ou():no():d().commitCurrentEdit()&&fu()),t=!0);if(t){n.stopPropagation();n.preventDefault();try{n.originalEvent.keyCode=0}catch(i){}}}function sc(t){c||(t.target!=document.activeElement||n(t.target).hasClass("slick-cell"))&&ui();var i=cr(t);i&&(c===null||s!=i.row||v!=i.cell)&&((h(o.onClick,{row:i.row,cell:i.cell},t),t.isImmediatePropagationStopped())||(v!=i.cell||s!=i.row)&&ct(i.row,i.cell)&&(!d().isActive()||d().commitCurrentEdit())&&(cf(i.row,!1),ai(ht(i.row,i.cell)),ui()))}function hc(t){var i=n(t.target).closest(".slick-cell",nt);i.length!==0&&(l!==i[0]||c===null)&&h(o.onContextMenu,{},t)}function cc(n){var t=cr(n);t&&(c===null||s!=t.row||v!=t.cell)&&((h(o.onDblClick,{row:t.row,cell:t.cell},n),n.isImmediatePropagationStopped())||e.editable&&wo(t.row,t.cell,!0))}function lc(t){h(o.onHeaderMouseEnter,{column:n(this).data("column")},t)}function ac(t){h(o.onHeaderMouseLeave,{column:n(this).data("column")},t)}function vc(t){var i=n(t.target).closest(".slick-header-column",".slick-header-columns"),r=i&&i.data("column");h(o.onHeaderContextMenu,{column:r},t)}function yc(t){var i=n(t.target).closest(".slick-header-column",".slick-header-columns"),r=i&&i.data("column");r&&h(o.onHeaderClick,{column:r},t)}function pc(n){h(o.onMouseEnter,{},n)}function wc(n){h(o.onMouseLeave,{},n)}function sf(n,t){return!(n<0||n>=rt()||t<0||t>=f.length)}function bc(n,t){for(var e=kr(t),i=0,u=0,r=0;r<f.length&&u<n;r++)u+=f[r].width,i++;return i<0&&(i=0),{row:e,cell:i-1}}function ke(n){var t=/l\d+/.exec(n.className);if(!t)throw"getCellFromNode: cannot get cell - "+n.className;return parseInt(t[0].substr(1,t[0].length-1),10)}function de(n){for(var t in a)if(a[t].rowNode===n)return t|0;return null}function cr(t){var i=n(t.target).closest(".slick-cell",nt),r,u;return i.length?(r=de(i[0].parentNode),u=ke(i[0]),r==null||u==null?null:{row:r,cell:u}):null}function kc(n,t){var i,o;if(!sf(n,t))return null;var u=uf(n),s=u+e.rowHeight-1,r=0;for(i=0;i<t;i++)r+=f[i].width;return o=r+f[t].width,{top:u,left:r,bottom:s,right:o}}function hf(){ai(null,!1)}function ui(){n(l).focus()}function uu(n,t,i){cf(n,i);var u=vi(n,t),r=tr[t],f=ir[t+(u>1?u-1:0)],e=tt+et;r<tt?(k.scrollLeft(r),hr(),ut()):f>e&&(k.scrollLeft(Math.min(r,f-k[0].clientWidth)),hr(),ut())}function ai(t,i){var r,u;l!==null&&(bt(),n(l).removeClass("active"),a[s]&&n(a[s].rowNode).removeClass("active"));r=l!==t;n(l).removeAttr("tabindex");u=document.activeElement==null||document.activeElement==l;l=t;l!=null?(s=de(l.parentNode),v=gi=ke(l),i==null&&(i=s==rt()||e.autoEdit),n(l).addClass("active"),n(a[s].rowNode).addClass("active"),n(l).attr("tabindex","1"),u&&(n(l).focus(),n(l).focus()),e.editable&&i&&ge(s,v)&&(clearTimeout(wu),e.asyncEditorLoading?wu=setTimeout(function(){fu()},e.asyncEditorLoadDelay):fu())):s=v=null;r&&h(o.onActiveCellChanged,uo())}function dc(){if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(t){}else if(window.getSelection){var n=window.getSelection();n&&n.removeAllRanges&&n.removeAllRanges()}}function ge(n,t){var i=rt();return n<i&&!wt(n)?!1:f[t].cannotTriggerInsert&&n>=i?!1:he(n,t)?!0:!1}function bt(){var t,i,r;c&&(h(o.onBeforeCellEditorDestroy,{editor:c}),c.destroy(),c=null,l&&(t=wt(s),n(l).removeClass("editable invalid"),t&&(i=f[v],r=dr(s,i),l.innerHTML=r(s,v,gr(t,i),i,t),ef(s))),navigator.userAgent.toLowerCase().match(/msie/)&&dc(),d().deactivate(ar))}function fu(t){if(l){if(!e.editable)throw"Grid : makeActiveCellEditable : should never get called when options.editable is false";if(clearTimeout(wu),ge(s,v)){var r=f[v],i=wt(s);if(h(o.onBeforeEditCell,{row:s,cell:v,item:i,column:r})===!1){ui();return}d().activate(ar);n(l).addClass("editable");t||(l.innerHTML="");c=new(t||he(s,v))({grid:o,gridPosition:eu(y[0]),position:eu(l),container:l,column:r,item:i||{},commitChanges:no,cancelChanges:to});i&&c.loadValue(i);pf=c.serializeValue();c.position&&ro()}}}function no(){d().commitCurrentEdit()&&(ui(),e.autoEdit&&ou())}function to(){d().cancelCurrentEdit()&&ui()}function eu(t){var i={top:t.offsetTop,left:t.offsetLeft,bottom:0,right:0,width:n(t).outerWidth(),height:n(t).outerHeight(),visible:!0},r;for(i.bottom=i.top+i.height,i.right=i.left+i.width,r=t.offsetParent;(t=t.parentNode)!=document.body;)i.visible&&t.scrollHeight!=t.offsetHeight&&n(t).css("overflowY")!="visible"&&(i.visible=i.bottom>t.scrollTop&&i.top<t.scrollTop+t.clientHeight),i.visible&&t.scrollWidth!=t.offsetWidth&&n(t).css("overflowX")!="visible"&&(i.visible=i.right>t.scrollLeft&&i.left<t.scrollLeft+t.clientWidth),i.left-=t.scrollLeft,i.top-=t.scrollTop,t===r&&(i.left+=t.offsetLeft,i.top+=t.offsetTop,r=t.offsetParent),i.bottom=i.top+i.height,i.right=i.left+i.width;return i}function io(){return eu(l)}function gc(){return eu(y[0])}function ro(){if(l&&(h(o.onActiveCellPositionChanged,{}),c)){var n=io();c.show&&c.hide&&(n.visible?c.show():c.hide());c.position&&c.position(n)}}function nl(){return c}function uo(){return l?{row:s,cell:v}:null}function tl(){return l}function cf(n,i){var r=n*e.rowHeight,u=(n+1)*e.rowHeight-b+(lu?t.height:0);(n+1)*e.rowHeight>p+b+g?(ri(i?r:u),ut()):n*e.rowHeight<p+g&&(ri(i?u:r),ut())}function il(n){ri(n*e.rowHeight);ut()}function fo(n){var f=n*vr,t,r;if(ri((kr(p)+f)*e.rowHeight),ut(),e.enableCellNavigation&&s!=null){t=s+f;r=dt();t>=r&&(t=r-1);t<0&&(t=0);for(var i=0,u=null,o=gi;i<=gi;)ct(t,i)&&(u=i),i+=vi(t,i);u!==null?(ai(ht(t,u)),gi=o):hf()}}function eo(){fo(1)}function oo(){fo(-1)}function vi(n,t){var i=u.getItemMetadata&&u.getItemMetadata(n),r,e;return!i||!i.columns?1:(r=i.columns[f[t].id]||i.columns[t],e=r&&r.colspan,e==="*"?f.length-t:e||1)}function so(n){for(var t=0;t<f.length;){if(ct(n,t))return t;t+=vi(n,t)}return null}function rl(n){for(var t=0,i=null;t<f.length;)ct(n,t)&&(i=t),t+=vi(n,t);return i}function lf(n,t){if(t>=f.length)return null;do t+=vi(n,t);while(t<f.length&&!ct(n,t));return t<f.length?{row:n,cell:t,posX:t}:null}function ho(n,t){var r,i,u;if(t<=0||(r=so(n),r===null||r>=t))return null;for(i={row:n,cell:r,posX:r};;){if(u=lf(i.row,i.cell,i.posX),!u)return null;if(u.cell>=t)return i;i=u}}function ul(n,t,i){for(var r,u=dt();;){if(++n>=u)return null;for(r=t=0;t<=i;)r=t,t+=vi(n,t);if(ct(n,r))return{row:n,cell:r,posX:i}}}function fl(n,t,i){for(var r;;){if(--n<0)return null;for(r=t=0;t<=i;)r=t,t+=vi(n,t);if(ct(n,r))return{row:n,cell:r,posX:i}}}function el(n,t,i){var u,r,f;if(n==null&&t==null&&(n=t=i=0,ct(n,t)))return{row:n,cell:t,posX:t};if(u=lf(n,t,i),u)return u;for(r=null,f=dt();++n<f;)if(r=so(n),r!==null)return{row:n,cell:r,posX:r};return null}function ol(n,t,i){if(n==null&&t==null&&(n=dt()-1,t=i=f.length-1,ct(n,t)))return{row:n,cell:t,posX:t};for(var r,u;!r;){if(r=ho(n,t,i),r)break;if(--n<0)return null;t=0;u=rl(n);u!==null&&(r={row:n,cell:u,posX:u})}return r}function co(){return rr("right")}function lo(){return rr("left")}function ou(){return rr("down")}function ao(){return rr("up")}function vo(){return rr("next")}function yo(){return rr("prev")}function rr(n){var i,r;if(!e.enableCellNavigation||!l&&n!="prev"&&n!="next")return!1;if(!d().commitCurrentEdit())return!0;ui();i={up:-1,down:1,left:-1,right:1,prev:-1,next:1};go=i[n];var u={up:fl,down:ul,left:ho,right:lf,prev:ol,next:el},f=u[n],t=f(s,v,gi);return t?(r=t.row==rt(),uu(t.row,t.cell,!r),ai(ht(t.row,t.cell)),gi=t.posX,!0):(ai(ht(s,v)),!1)}function ht(n,t){return a[n]?(ru(n),a[n].cellNodesByColumnIdx[t]):null}function sl(n,t){vt&&(n>rt()||n<0||t>=f.length||t<0||e.enableCellNavigation&&(uu(n,t,!1),ai(ht(n,t),!1)))}function ct(n,t){var r,i;return!e.enableCellNavigation||n>=dt()||n<0||t>=f.length||t<0?!1:(r=u.getItemMetadata&&u.getItemMetadata(n),r&&typeof r.focusable=="boolean")?r.focusable:(i=r&&r.columns,i&&i[f[t].id]&&typeof i[f[t].id].focusable=="boolean")?i[f[t].id].focusable:i&&i[t]&&typeof i[t].focusable=="boolean"?i[t].focusable:f[t].focusable}function po(n,t){var i,r;return n>=rt()||n<0||t>=f.length||t<0?!1:(i=u.getItemMetadata&&u.getItemMetadata(n),i&&typeof i.selectable=="boolean")?i.selectable:(r=i&&i.columns&&(i.columns[f[t].id]||i.columns[t]),r&&typeof r.selectable=="boolean")?r.selectable:f[t].selectable}function wo(n,t,i){if(vt&&ct(n,t)&&d().commitCurrentEdit()){uu(n,t,!1);var r=ht(n,t);ai(r,i||n===rt()||e.autoEdit);c||ui()}}function hl(){var t=wt(s),i=f[v],r,u,a;if(c){if(c.isValueChanged())return r=c.validate(),r.valid?(s<rt()?(u={row:s,cell:v,editor:c,serializedValue:c.serializeValue(),prevSerializedValue:pf,execute:function(){this.editor.applyValue(t,this.serializedValue);ff(this.row);h(o.onCellChange,{row:s,cell:v,item:t})},undo:function(){this.editor.applyValue(t,this.prevSerializedValue);ff(this.row);h(o.onCellChange,{row:s,cell:v,item:t})}},e.editCommandHandler?(bt(),e.editCommandHandler(t,i,u)):(u.execute(),bt())):(a={},c.applyValue(a,c.serializeValue()),bt(),h(o.onAddNewRow,{item:a,column:i})),!d().isActive()):(n(l).removeClass("invalid"),n(l).width(),n(l).addClass("invalid"),h(o.onValidationError,{editor:c,cellNode:l,validationResults:r,row:s,cell:v,column:i}),c.focus(),!1);bt()}return!0}function cl(){return bt(),!0}function ll(n){for(var i=[],r=f.length-1,t=0;t<n.length;t++)i.push(new Slick.Range(n[t],0,n[t],r));return i}function bo(){if(!ot)throw"Selection model is not set";return pu}function al(n){if(!ot)throw"Selection model is not set";ot.setSelectedRanges(ll(n))}var ko={explicitInitialization:!1,rowHeight:25,defaultColumnWidth:80,enableAddRow:!1,leaveSpaceForNewRows:!1,editable:!1,autoEdit:!0,enableCellNavigation:!0,enableColumnReorder:!0,asyncEditorLoading:!1,asyncEditorLoadDelay:100,forceFitColumns:!1,enableAsyncPostRender:!1,asyncPostRenderDelay:50,autoHeight:!1,editorLock:Slick.GlobalEditorLock,showHeaderRow:!1,headerRowHeight:25,showTopPanel:!1,topPanelHeight:25,formatterFactory:null,editorFactory:null,cellFlashingCssClass:"flashing",selectedCellCssClass:"selected",multiSelect:!0,enableTextSelectionOnCells:!1,dataItemColumnValueExtractor:null,fullWidthRows:!1,multiColumnSort:!1,defaultFormatter:hh,forceSyncScrolling:!1,addNewRowCssClass:"new-row"},su={name:"",resizable:!0,sortable:!1,minWidth:30,rerenderOnResize:!1,headerCssClass:null,defaultSortAsc:!0,focusable:!0,selectable:!0},lt,at,yi,pi,lr,fi=0,g=0,ei=1,vt=!1,y,ft="slickgrid_"+Math.round(1e6*Math.random()),o=this,wi,w,oi,yt,af,si,vf,k,nt,bi,hi,ki,hu,cu,b,et,pt,lu,di,ci=0,yf=0,au=0,vu=0,ni,go=1,gi,s,v,l=null,c=null,pf,ar,a={},yu=0,vr,nr=0,p=0,yr=0,ur=0,wf=0,tt=0,ot,pu=[],ti=[],st={},fr={},it=[],tr=[],ir=[],wu=null,pr=null,bu=null,ii={},er=null,or=null,bf=0,kf=0,wr,sr;this.debug=function(){var n="";n+="\ncounter_rows_rendered:  "+bf;n+="\ncounter_rows_removed:  "+kf;n+="\nrenderedRows:  "+yu;n+="\nnumVisibleRows:  "+vr;n+="\nmaxSupportedCssHeight:  "+i;n+="\nn(umber of pages):  "+pi;n+="\n(current) page:  "+fi;n+="\npage height (ph):  "+yi;n+="\nvScrollDir:  "+ei;alert(n)};this.eval=function(n){return eval(n)};n.extend(this,{slickGridVersion:"2.1",onScroll:new Slick.Event,onSort:new Slick.Event,onHeaderMouseEnter:new Slick.Event,onHeaderMouseLeave:new Slick.Event,onHeaderContextMenu:new Slick.Event,onHeaderClick:new Slick.Event,onHeaderCellRendered:new Slick.Event,onBeforeHeaderCellDestroy:new Slick.Event,onHeaderRowCellRendered:new Slick.Event,onBeforeHeaderRowCellDestroy:new Slick.Event,onMouseEnter:new Slick.Event,onMouseLeave:new Slick.Event,onClick:new Slick.Event,onDblClick:new Slick.Event,onContextMenu:new Slick.Event,onKeyDown:new Slick.Event,onAddNewRow:new Slick.Event,onValidationError:new Slick.Event,onViewportChanged:new Slick.Event,onColumnsReordered:new Slick.Event,onColumnsResized:new Slick.Event,onCellChange:new Slick.Event,onBeforeEditCell:new Slick.Event,onBeforeCellEditorDestroy:new Slick.Event,onBeforeDestroy:new Slick.Event,onActiveCellChanged:new Slick.Event,onActiveCellPositionChanged:new Slick.Event,onDragInit:new Slick.Event,onDragStart:new Slick.Event,onDrag:new Slick.Event,onDragEnd:new Slick.Event,onSelectedRowsChanged:new Slick.Event,onCellCssStylesChanged:new Slick.Event,registerPlugin:ts,unregisterPlugin:gf,getColumns:nh,setColumns:oe,getColumnIndex:kt,updateColumnHeader:cs,setSortColumn:ds,setSortColumns:br,getSortColumns:gs,autosizeColumns:nf,getOptions:th,setOptions:ih,getData:uh,getDataLength:rt,getDataItem:wt,setData:rh,getSelectionModel:rs,setSelectionModel:is,getSelectedRows:bo,setSelectedRows:al,getContainerNode:sh,render:ut,invalidate:lh,invalidateRow:ve,invalidateRows:ae,invalidateAllRows:li,updateCell:ah,updateRow:ff,getViewport:iu,getRenderedRange:ye,resizeCanvas:gt,updateRowCount:tu,scrollRowIntoView:cf,scrollRowToTop:il,scrollCellIntoView:uu,getCanvasNode:us,focus:ui,getCellFromPoint:bc,getCellFromEvent:cr,getActiveCell:uo,setActiveCell:sl,getActiveCellNode:tl,getActiveCellPosition:io,resetActiveCell:hf,editActiveCell:fu,getCellEditor:nl,getCellNode:ht,getCellNodeBox:kc,canCellBeSelected:po,canCellBeActive:ct,navigatePrev:yo,navigateNext:vo,navigateUp:ao,navigateDown:ou,navigateLeft:lo,navigateRight:co,navigatePageUp:oo,navigatePageDown:eo,gotoCell:wo,getTopPanel:fh,setTopPanelVisibility:eh,setHeaderRowVisibility:oh,getHeaderRow:ls,getHeaderRowColumn:as,getGridPosition:gc,flashCell:tc,addCellCssStyles:dh,setCellCssStyles:be,removeCellCssStyles:gh,getCellCssStyles:nc,init:df,destroy:bs,getEditorLock:d,getEditController:ks});ns()}n.extend(!0,window,{Slick:{Grid:r}});var t,i})(jQuery)
//# sourceMappingURL=slick.grid.min.js.map
