newBlob([C],{type:"text/"+("csv"==a.type?"csv":"plain")+";charset=utf-8"});saveAs(w,a.fileName+"."+a.type,"csv"!=a.type||!1===a.csvUseBOM)}catch(b){A(a.fileName+"."+a.type,"data:text/"+("csv"==a.type?"csv":"plain")+";charset=utf-8,"+("csv"==a.type&&a.csvUseBOM?"\ufeff":""),C)}}elseif("sql"==a.type){varp=0,u="INSERT INTO `"+a.tableName+"` (",q=c(t).find("thead").first().find(a.theadSelector);q.each(function(){x(this,"th,td",p,q.length,function(a,c,e){u+="'"+v(a,c,e)+"',"});p++;u=c.trim(u);u=c.trim(u).substring(0,