/** layui-v2.4.0 MIT License By https://www.layui.com */ ;layui.define(["laytpl","laypage","layer","form","util"],function(e){"use strict";var t=layui.$,i=layui.laytpl,a=layui.laypage,l=layui.layer,n=layui.form,o=(layui.util,layui.hint()),d=layui.device(),c={config:{checkName:"LAY_CHECKED",indexName:"LAY_TABLE_INDEX"},cache:{},index:layui.table?layui.table.index+1e4:0,set:function(e){var i=this;return i.config=t.extend({},i.config,e),i},on:function(e,t){return layui.onevent.call(this,s,e,t)}},r=function(){var e=this,t=e.config,i=t.id;return i&&(r.config[i]=t),{reload:function(t){e.reload.call(e,t)},setColsWidth:function(){e.setColsWidth.call(e)},config:t}},s="table",u=".layui-table",h="layui-hide",y="layui-none",f="layui-table-view",p=".layui-table-tool",v=".layui-table-box",m=".layui-table-init",g=".layui-table-header",b=".layui-table-body",x=".layui-table-main",k=".layui-table-fixed",C=".layui-table-fixed-l",w=".layui-table-fixed-r",T=".layui-table-total",L=".layui-table-page",W=".layui-table-sort",A="layui-table-edit",N="layui-table-hover",S=function(e){var t='{{#if(item2.colspan){}} colspan="{{item2.colspan}}"{{#} if(item2.rowspan){}} rowspan="{{item2.rowspan}}"{{#}}}';return e=e||{},['',"","{{# layui.each(d.data.cols, function(i1, item1){ }}","","{{# layui.each(item1, function(i2, item2){ }}",'{{# if(item2.fixed && item2.fixed !== "right"){ left = true; } }}','{{# if(item2.fixed === "right"){ right = true; } }}',function(){return e.fixed&&"right"!==e.fixed?'{{# if(item2.fixed && item2.fixed !== "right"){ }}':"right"===e.fixed?'{{# if(item2.fixed === "right"){ }}':""}(),"{{# var isSort = !(item2.colspan > 1) && item2.sort; }}",'",e.fixed?"{{# }; }}":"","{{# }); }}","","{{# }); }}","","
','
1){ }}","group","{{# } else { }}","{{d.index}}-{{item2.field || i2}}",'{{# if(item2.type !== "normal"){ }}'," laytable-cell-{{ item2.type }}","{{# } }}","{{# } }}",'" {{#if(item2.align){}}align="{{item2.align}}"{{#}}}>','{{# if(item2.type === "checkbox"){ }}','',"{{# } else { }}",'{{item2.title||""}}',"{{# if(isSort){ }}",'',"{{# } }}","{{# } }}","
","
"].join("")},R=['',"","
"].join(""),z=['
',"{{# if(d.data.toolbar){ }}",'
','
','
','
','
',"
",'
','
','
','
',"
","
","{{# } }}",'
','
','',"
","{{# var left, right; }}",'
',S(),"
",'
',R,"
","{{# if(left){ }}",'
','
',S({fixed:!0}),"
",'
',R,"
","
","{{# }; }}","{{# if(right){ }}",'
','
',S({fixed:"right"}),'
',"
",'
',R,"
","
","{{# }; }}","
","{{# if(d.data.totalRow){ }}",'
','','',"
","
","{{# } }}","{{# if(d.data.page){ }}",'
','
',"
","{{# } }}","","
"].join(""),F=t(window),M=t(document),_=function(e){var i=this;i.index=++c.index,i.config=t.extend({},i.config,c.config,e),i.render()};_.prototype.config={limit:10,loading:!0,cellMinWidth:60,text:{none:"无数据"}},_.prototype.render=function(){var e=this,a=e.config;if(a.elem=t(a.elem),a.where=a.where||{},a.id=a.id||a.elem.attr("id")||a.index,a.request=t.extend({pageName:"page",limitName:"limit"},a.request),a.response=t.extend({statusName:"code",statusCode:0,msgName:"msg",dataName:"data",countName:"count"},a.response),"object"==typeof a.page&&(a.limit=a.page.limit||a.limit,a.limits=a.page.limits||a.limits,e.page=a.page.curr=a.page.curr||1,delete a.page.elem,delete a.page.jump),!a.elem[0])return e;a.height&&/^full-\d+$/.test(a.height)&&(e.fullHeightGap=a.height.split("-")[1],a.height=F.height()-e.fullHeightGap),e.setInit();var l=a.elem,n=l.next("."+f),o=e.elem=t(i(z).render({VIEW_CLASS:f,data:a,index:e.index}));a.index=e.index,n[0]&&n.remove(),l.after(o),e.layTool=o.find(p),e.layBox=o.find(v),e.layHeader=o.find(g),e.layMain=o.find(x),e.layBody=o.find(b),e.layFixed=o.find(k),e.layFixLeft=o.find(C),e.layFixRight=o.find(w),e.layTotal=o.find(T),e.layPage=o.find(L);var d=t(a.toolbar).html()||"";if(a.toolbar&&d&&e.layTool.find(".layui-table-tool-temp").html(i(d).render(a)),e.fullSize(),a.cols.length>1){var c=e.layFixed.find(g).find("th");c.height(e.layHeader.height()-1-parseFloat(c.css("padding-top"))-parseFloat(c.css("padding-bottom")))}e.pullData(e.page),e.events()},_.prototype.initOpts=function(e){var t=this,i=(t.config,{checkbox:48,radio:48,space:15,numbers:40});e.checkbox&&(e.type="checkbox"),e.space&&(e.type="space"),e.type||(e.type="normal"),"normal"!==e.type&&(e.unresize=!0,e.width=e.width||i[e.type])},_.prototype.setInit=function(e){var t=this,i=t.config;return i.clientWidth=i.width||function(){var e=function(t){var a,l;t=t||i.elem.parent(),a=t.width();try{l="none"===t.css("display")}catch(n){}return!t[0]||a&&!l?a:e(t.parent())};return e()}(),"width"===e?i.clientWidth:void layui.each(i.cols,function(e,a){layui.each(a,function(e,l){l.minWidth||i.cellMinWidth;return l?void t.initOpts(l):void a.splice(e,1)})})},_.prototype.setColsWidth=function(){var e=this,t=e.config,i=0,a=0,l=0,n=0,o=e.setInit("width");e.eachCols(function(e,t){t.hide||i++}),o=o-function(){return"line"===t.skin||"nob"===t.skin?2:i+1}()-e.getScrollWidth(e.layMain[0])-1;var d=function(e){layui.each(t.cols,function(i,d){layui.each(d,function(i,c){var r=0,s=c.minWidth||t.cellMinWidth;return c?void(c.colspan>1||(e?l&&ln&&a&&(l=(o-n)/a)};d(),d(!0),e.autoColNums=a,e.eachCols(function(i,a){var n=a.minWidth||t.cellMinWidth,d=a.field||i;a.colspan>1||(0===a.width?e.getCssRule(d,function(e){e.style.width=Math.floor(l>=n?l:n)+"px"}):/\d+%$/.test(a.width)&&e.getCssRule(d,function(e){e.style.width=Math.floor(parseFloat(a.width)/100*o)+"px"}))});var c=e.layMain.width()-e.getScrollWidth(e.layMain[0])-e.layMain.children("table").outerWidth();if(e.autoColNums&&c>=-i&&c<=i){var r=function(t){var i;return t=t||e.layHeader.eq(0).find("thead th:last-child"),i=t.data("field"),!i&&t.prev()[0]?r(t.prev()):t},s=r(),u=s.data("field");e.getCssRule(u,function(t){var i=t.style.width||s.outerWidth();t.style.width=parseFloat(i)+c+"px",e.layMain.height()-e.layMain.prop("clientHeight")>0&&(t.style.width=parseFloat(t.style.width)-1+"px")})}e.loading(!0)},_.prototype.reload=function(e){var i=this;i.config.data&&i.config.data.constructor===Array&&delete i.config.data,i.config=t.extend({},i.config,e),i.render()},_.prototype.page=1,_.prototype.pullData=function(e){var i=this,a=i.config,l=a.request,n=a.response,o=function(){"object"==typeof a.initSort&&i.sort(a.initSort.field,a.initSort.type)};if(i.startTime=(new Date).getTime(),a.url){var d={};d[l.pageName]=e,d[l.limitName]=a.limit;var c=t.extend(d,a.where);a.contentType&&0==a.contentType.indexOf("application/json")&&(c=JSON.stringify(c)),t.ajax({type:a.method||"get",url:a.url,contentType:a.contentType,data:c,dataType:"json",headers:a.headers||{},success:function(t){"function"==typeof a.parseData&&(t=a.parseData(t)||t),t[n.statusName]!=n.statusCode?(i.renderForm(),i.layMain.html('
'+(t[n.msgName]||"返回的数据不符合规范,正确的成功状态码 ("+n.statusName+") 应为:"+n.statusCode)+"
")):(i.renderData(t,e,t[n.countName]),o(),a.time=(new Date).getTime()-i.startTime+" ms"),i.setColsWidth(),"function"==typeof a.done&&a.done(t,e,t[n.countName])},error:function(e,t){i.layMain.html('
数据接口请求异常:'+t+"
"),i.renderForm(),i.setColsWidth()}})}else if(a.data&&a.data.constructor===Array){var r={},s=e*a.limit-a.limit;r[n.dataName]=a.data.concat().splice(s,a.limit),r[n.countName]=a.data.length,i.renderData(r,e,a.data.length),o(),i.setColsWidth(),"function"==typeof a.done&&a.done(r,e,r[n.countName])}},_.prototype.eachCols=function(e){var t=this;return c.eachCols(null,e,t.config.cols),t},_.prototype.renderData=function(e,n,o,d){var r=this,s=r.config,u=e[s.response.dataName]||[],f=[],p=[],v=[],m=function(){var e;return!d&&r.sortKey?r.sort(r.sortKey.field,r.sortKey.sort,!0):(layui.each(u,function(a,l){var o=[],u=[],h=[],y=a+s.limit*(n-1)+1;0!==l.length&&(d||(l[c.config.indexName]=a),r.eachCols(function(n,d){var r=d.field||n,f=l[r];if(void 0!==f&&null!==f||(f=""),!(d.colspan>1||d.hide)){var p=['",'
'+function(){var n=t.extend(!0,{LAY_INDEX:y},l),o=c.config.checkName;switch(d.type){case"checkbox":return'";case"radio":return n[o]&&(e=a),'';case"numbers":return y}return d.toolbar?i(t(d.toolbar).html()||"").render(n):d.templet?function(){return"function"==typeof d.templet?d.templet(n):i(t(d.templet).html()||String(f)).render(n)}():f}(),"
"].join("");o.push(p),d.fixed&&"right"!==d.fixed&&u.push(p),"right"===d.fixed&&h.push(p)}}),f.push(''+o.join("")+""),p.push(''+u.join("")+""),v.push(''+h.join("")+""))}),r.layBody.scrollTop(0),r.layMain.find("."+y).remove(),r.layMain.find("tbody").html(f.join("")),r.layFixLeft.find("tbody").html(p.join("")),r.layFixRight.find("tbody").html(v.join("")),r.renderForm(),"number"==typeof e&&r.setThisRowChecked(e),r.syncCheckAll(),r.haveInit?r.scrollPatch():setTimeout(function(){r.scrollPatch()},50),r.haveInit=!0,void l.close(r.tipsIndex))};return r.key=s.id||s.index,c.cache[r.key]=u,r.layPage[0==o||0===u.length&&1==n?"addClass":"removeClass"](h),d?m():0===u.length?(r.renderForm(),r.layFixed.remove(),r.layMain.find("tbody").html(""),r.layMain.find("."+y).remove(),r.layMain.append('
'+s.text.none+"
")):(m(),r.renderTotal(u),void(s.page&&(s.page=t.extend({elem:"layui-table-page"+s.index,count:o,limit:s.limit,limits:s.limits||[10,20,30,40,50,60,70,80,90],groups:3,layout:["prev","page","next","skip","count","limit"],prev:'',next:'',jump:function(e,t){t||(r.page=e.curr,s.limit=e.limit,r.loading(),r.pullData(e.curr))}},s.page),s.page.count=o,a.render(s.page))))},_.prototype.renderTotal=function(e){var t=this,i=t.config,a={};if(i.totalRow){layui.each(e,function(e,i){0!==i.length&&t.eachCols(function(e,t){var l=t.field||e,n=i[l];t.totalRow&&(a[l]=(a[l]||0)+parseFloat(n))})});var l=[];t.eachCols(function(e,t){var n=t.field||e;if(!t.hide){var o=['",'
'+function(){var e=t.totalRowText||"";return t.totalRow?a[n]||e:e}(),"
"].join("");l.push(o)}}),t.layTotal.find("tbody").html(""+l.join("")+"")}},_.prototype.getColElem=function(e,t){var i=this,a=i.config;return e.eq(0).find(".laytable-cell-"+(a.index+"-"+t)+":eq(0)")},_.prototype.renderForm=function(e){n.render(e,"LAY-table-"+this.index)},_.prototype.setThisRowChecked=function(e){var t=this,i=(t.config,"layui-table-click"),a=t.layBody.find('tr[data-index="'+e+'"]');a.addClass(i).siblings("tr").removeClass(i)},_.prototype.sort=function(e,i,a,l){var n,d,r=this,u={},h=r.config,y=h.elem.attr("lay-filter"),f=c.cache[r.key];"string"==typeof e&&r.layHeader.find("th").each(function(i,a){var l=t(this),o=l.data("field");if(o===e)return e=l,n=o,!1});try{var n=n||e.data("field");if(r.sortKey&&!a&&n===r.sortKey.field&&i===r.sortKey.sort)return;var p=r.layHeader.find("th .laytable-cell-"+h.index+"-"+n).find(W);r.layHeader.find("th").find(W).removeAttr("lay-sort"),p.attr("lay-sort",i||null),r.layFixed.find("th")}catch(v){return o.error("Table modules: Did not match to field")}r.sortKey={field:n,sort:i},"asc"===i?d=layui.sort(f,n):"desc"===i?d=layui.sort(f,n,!0):(d=layui.sort(f,c.config.indexName),delete r.sortKey),u[h.response.dataName]=d,r.renderData(u,r.page,r.count,!0),l&&layui.event.call(e,s,"sort("+y+")",{field:n,type:i})},_.prototype.loading=function(e){var i=this,a=i.config;a.loading&&(e?(i.layInit&&i.layInit.remove(),delete i.layInit,i.layBox.find(m).remove()):(i.layInit=t(['
','',"
"].join("")),i.layBox.append(i.layInit)))},_.prototype.setCheckData=function(e,t){var i=this,a=i.config,l=c.cache[i.key];l[e]&&l[e].constructor!==Array&&(l[e][a.checkName]=t)},_.prototype.syncCheckAll=function(){var e=this,t=e.config,i=e.layHeader.find('input[name="layTableCheckbox"]'),a=function(i){return e.eachCols(function(e,a){"checkbox"===a.type&&(a[t.checkName]=i)}),i};i[0]&&(c.checkStatus(e.key).isAll?(i[0].checked||(i.prop("checked",!0),e.renderForm("checkbox")),a(!0)):(i[0].checked&&(i.prop("checked",!1),e.renderForm("checkbox")),a(!1)))},_.prototype.getCssRule=function(e,t){var i=this,a=i.elem.find("style")[0],l=a.sheet||a.styleSheet||{},n=l.cssRules||l.rules;layui.each(n,function(a,l){if(l.selectorText===".laytable-cell-"+i.index+"-"+e)return t(l),!0})},_.prototype.fullSize=function(){var e,t=this,i=t.config,a=i.height;t.fullHeightGap&&(a=F.height()-t.fullHeightGap,a<135&&(a=135),t.elem.css("height",a)),a&&(e=parseFloat(a)-(t.layHeader.outerHeight()||38),i.toolbar&&(e-=t.layTool.outerHeight()||50),i.totalRow&&(e-=t.layTotal.outerHeight()||40),i.page&&(e=e-(t.layPage.outerHeight()||41)-2),t.layMain.css("height",e))},_.prototype.getScrollWidth=function(e){var t=0;return e?t=e.offsetWidth-e.clientWidth:(e=document.createElement("div"),e.style.width="100px",e.style.height="100px",e.style.overflowY="scroll",document.body.appendChild(e),t=e.offsetWidth-e.clientWidth,document.body.removeChild(e)),t},_.prototype.scrollPatch=function(){var e=this,i=e.layMain.children("table"),a=e.layMain.width()-e.layMain.prop("clientWidth"),l=e.layMain.height()-e.layMain.prop("clientHeight"),n=(e.getScrollWidth(e.layMain[0]),i.outerWidth()-e.layMain.width()),o=function(e){if(a&&l){if(e=e.eq(0),!e.find(".layui-table-patch")[0]){var i=t('
');i.find("div").css({width:a}),e.find("tr").append(i)}}else e.find(".layui-table-patch").remove()};o(e.layHeader),o(e.layTotal);var d=e.layMain.height(),c=d-l;e.layFixed.find(b).css("height",i.height()>c?c:"auto"),e.layFixRight[n>0?"removeClass":"addClass"](h),e.layFixRight.css("right",a-1)},_.prototype.events=function(){var e,a=this,o=a.config,r=t("body"),u={},y=a.layHeader.find("th"),f=".layui-table-cell",p=o.elem.attr("lay-filter");a.layTool.on("click","*[lay-event]",function(e){var i=t(this),r=i.attr("lay-event"),u=function(e){var l=t(e.list),n=t('');n.html(l),i.find(".layui-table-tool-panel")[0]||i.append(n),a.renderForm(),n.on("click",function(e){layui.stope(e)}),e.done&&e.done(n,l)};switch(layui.stope(e),M.trigger("table.tool.panel.remove"),l.close(a.tipsIndex),r){case"LAYTABLE_COLS":u({list:function(){var e=[];return a.eachCols(function(t,i){i.field&&"normal"==i.type&&e.push('
  • ')}),e.join("")}(),done:function(){n.on("checkbox(LAY_TABLE_TOOL_COLS)",function(e){layui.each(o.cols,function(t,i){layui.each(i,function(t,i){i.field===e.elem.name&&(i.hide=!e.elem.checked,a.elem.find('*[data-field="'+e.elem.name+'"]')[e.elem.checked?"removeClass":"addClass"](h),a.fullSize(),a.scrollPatch(),a.setColsWidth())})})})}});break;case"LAYTABLE_EXPORT":d.ie?l.tips("导出功能不支持 IE,请用 Chrome 等高级浏览器导出",this,{tips:3}):u({list:function(){return['
  • 导出到 Csv 文件
  • ','
  • 导出到 Excel 文件
  • '].join("")}(),done:function(e,i){i.on("click",function(){var e=t(this).data("type");c.exportFile(o.id,null,e)})}});break;case"LAYTABLE_PRINT":var y=window.open("打印窗口","_blank"),f=[""].join(""),v=t(a.layHeader.html());v.find("th.layui-table-patch").remove(),v.append(a.layMain.find("table").html()),y.document.write(f+v.prop("outerHTML")),y.document.close(),y.print(),y.close()}layui.event.call(this,s,"toolbar("+p+")",t.extend({event:r,config:o},{}))}),y.on("mousemove",function(e){var i=t(this),a=i.offset().left,l=e.clientX-a;i.attr("colspan")>1||i.data("unresize")||u.resizeStart||(u.allowResize=i.width()-l<=10,r.css("cursor",u.allowResize?"col-resize":""))}).on("mouseleave",function(){t(this);u.resizeStart||r.css("cursor","")}).on("mousedown",function(e){var i=t(this);if(u.allowResize){var l=i.data("field");e.preventDefault(),u.resizeStart=!0,u.offset=[e.clientX,e.clientY],a.getCssRule(l,function(e){var t=e.style.width||i.outerWidth();u.rule=e,u.ruleWidth=parseFloat(t),u.minWidth=i.data("minwidth")||o.cellMinWidth})}}),M.on("mousemove",function(t){if(u.resizeStart){if(t.preventDefault(),u.rule){var i=u.ruleWidth+t.clientX-u.offset[0];i');return l[0].value=e.data("content")||a.text(),e.find("."+A)[0]||e.append(l),void l.focus()}}).on("mouseenter","td",function(){x.call(this)}).on("mouseleave","td",function(){x.call(this,"hide")});var g="layui-table-grid-down",x=function(e){var i=t(this),a=i.children(f);if(e)i.find(".layui-table-grid-down").remove();else if(a.prop("scrollWidth")>a.outerWidth()){if(a.find("."+g)[0])return;i.append('
    ')}};a.layBody.on("click","."+g,function(){var e=t(this),i=e.parent(),n=i.children(f);a.tipsIndex=l.tips(['
    ',n.html(),"
    ",''].join(""),n[0],{tips:[3,""],time:-1,anim:-1,maxWidth:d.ios||d.android?300:a.elem.width()/2,isOutAnim:!1,skin:"layui-table-tips",success:function(e,t){e.find(".layui-table-tips-c").on("click",function(){l.close(t)})}})}),a.layBody.on("click","*[lay-event]",function(){var e=t(this),i=e.parents("tr").eq(0).data("index");layui.event.call(this,s,"tool("+p+")",v.call(this,{event:e.attr("lay-event")})),a.setThisRowChecked(i)}),a.layMain.on("scroll",function(){var e=t(this),i=e.scrollLeft(),n=e.scrollTop();a.layHeader.scrollLeft(i),a.layTotal.scrollLeft(i),a.layFixed.find(b).scrollTop(n),l.close(a.tipsIndex)}),M.on("click",function(){M.trigger("table.remove.tool.panel")}),M.on("table.remove.tool.panel",function(){t(".layui-table-tool-panel").remove()}),F.on("resize",function(){a.fullSize(),a.scrollPatch(),a.setColsWidth()})},c.init=function(e,i){i=i||{};var a=this,l=t(e?'table[lay-filter="'+e+'"]':u+"[lay-data]"),n="Table element property lay-data configuration item has a syntax error: ";return l.each(function(){var a=t(this),l=a.attr("lay-data");try{l=new Function("return "+l)()}catch(d){o.error(n+l)}var r=[],s=t.extend({elem:this,cols:[],data:[],skin:a.attr("lay-skin"),size:a.attr("lay-size"),even:"string"==typeof a.attr("lay-even")},c.config,i,l);e&&a.hide(),a.find("thead>tr").each(function(e){s.cols[e]=[],t(this).children().each(function(i){var a=t(this),l=a.attr("lay-data");try{l=new Function("return "+l)()}catch(d){return o.error(n+l)}var c=t.extend({title:a.text(),colspan:a.attr("colspan")||0,rowspan:a.attr("rowspan")||0},l);c.colspan<2&&r.push(c),s.cols[e].push(c)})}),a.find("tbody>tr").each(function(e){var i=t(this),a={};i.children("td").each(function(e,i){var l=t(this),n=l.data("field");if(n)return a[n]=l.html()}),layui.each(r,function(e,t){var l=i.children("td").eq(e);a[t.field]=l.html()}),s.data[e]=a}),c.render(s)}),a},r.config={},c.eachCols=function(e,i,a){var l=r.config[e]||{},n=[],o=0;a=t.extend(!0,[],a||l.cols),layui.each(a,function(e,t){layui.each(t,function(t,i){if(i.colspan>1){var l=0;o++,i.CHILD_COLS=[],layui.each(a[e+1],function(e,t){t.PARENT_COL||l==i.colspan||(t.PARENT_COL=o,i.CHILD_COLS.push(t),l+=t.colspan>1?t.colspan:1)})}i.PARENT_COL||n.push(i)})});var d=function(e){layui.each(e||n,function(e,t){return t.CHILD_COLS?d(t.CHILD_COLS):void i(e,t)})};d()},c.checkStatus=function(e){var t=0,i=0,a=[],l=c.cache[e]||[];return layui.each(l,function(e,l){return l.constructor===Array?void i++:void(l[c.config.checkName]&&(t++,a.push(c.clearCacheKey(l))))}),{data:a,isAll:!!l.length&&t===l.length-i}},c.exportFile=function(e,t,i){t=t||c.clearCacheKey(c.cache[e]),i=i||"csv";var a=r.config[e]||{},l={csv:"text/csv",xls:"application/vnd.ms-excel"}[i],n=document.createElement("a");return d.ie?o.error("IE_NOT_SUPPORT_EXPORTS"):(n.href="data:"+l+";charset=utf-8,\ufeff"+encodeURIComponent(function(){var i=[],a=[];return layui.each(t,function(t,l){var n=[];"object"==typeof e?(layui.each(e,function(e,a){0==t&&i.push(a||"")}),layui.each(c.clearCacheKey(l),function(e,t){n.push(t)})):c.eachCols(e,function(e,a){a.field&&"normal"==a.type&&!a.hide&&(0==t&&i.push(a.title||""),n.push(l[a.field]))}),a.push(n.join(","))}),i.join(",")+"\r\n"+a.join("\r\n")}()),n.download=(a.title||"table_"+(a.index||""))+"."+i,document.body.appendChild(n),n.click(),void document.body.removeChild(n))},c.reload=function(e,i){var a=r.config[e];return i=i||{},a?(i.data&&i.data.constructor===Array&&delete a.data,c.render(t.extend(!0,{},a,i))):o.error("The ID option was not found in the table instance")},c.render=function(e){var t=new _(e);return r.call(t)},c.clearCacheKey=function(e){return e=t.extend({},e),delete e[c.config.checkName],delete e[c.config.indexName],e},c.init(),e(s,c)});