/*! © SpryMedia Ltd - datatables.net/license */ import $ from"jquery";import DataTable from"datatables.net";function flattenJson(t,e,o){return o=o||{},e=e||"",$.isPlainObject(t)||Array.isArray(t)?$.each(t,function(t,a){flattenJson(a,""===e?t:e+"["+t.toString()+"]",o)}):o[e]=t,o}DataTable.ext.buttons.download={text:"Download",action:function(t,a,e,o){var n={},a=(a.page.info().serverSide&&$.extend(n,a.ajax.params()),"function"==typeof o.data?o.data(n):"object"==typeof o.data&&$.extend(n,o.data),flattenJson(n)),r=$("