{"ScriptPreparationCode":"window.source = \u0060/*! DataTables 1.11.3\r\n * \u00A92008-2021 SpryMedia Ltd - datatables.net/license\r\n */\r\n\r\n/**\r\n * @summary DataTables\r\n * @description Paginate, search and order HTML tables\r\n * @version 1.11.3\r\n * @file jquery.dataTables.js\r\n * @author SpryMedia Ltd\r\n * @contact www.datatables.net\r\n * @copyright Copyright 2008-2021 SpryMedia Ltd.\r\n *\r\n * This source file is free software, available under the following license:\r\n * MIT license - http://datatables.net/license\r\n *\r\n * This source file is distributed in the hope that it will be useful, but\r\n * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r\n * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.\r\n *\r\n * For details please refer to: http://www.datatables.net\r\n */\r\n\r\n/*jslint evil: true, undef: true, browser: true */\r\n/*globals $,require,jQuery,define,_selector_run,_selector_opts,_selector_first,_selector_row_indexes,_ext,_Api,_api_register,_api_registerPlural,_re_new_lines,_re_html,_re_formatted_numeric,_re_escape_regex,_empty,_intVal,_numToDecimal,_isNumber,_isHtml,_htmlNumeric,_pluck,_pluck_order,_range,_stripHtml,_unique,_fnBuildAjax,_fnAjaxUpdate,_fnAjaxParameters,_fnAjaxUpdateDraw,_fnAjaxDataSrc,_fnAddColumn,_fnColumnOptions,_fnAdjustColumnSizing,_fnVisibleToColumnIndex,_fnColumnIndexToVisible,_fnVisbleColumns,_fnGetColumns,_fnColumnTypes,_fnApplyColumnDefs,_fnHungarianMap,_fnCamelToHungarian,_fnLanguageCompat,_fnBrowserDetect,_fnAddData,_fnAddTr,_fnNodeToDataIndex,_fnNodeToColumnIndex,_fnGetCellData,_fnSetCellData,_fnSplitObjNotation,_fnGetObjectDataFn,_fnSetObjectDataFn,_fnGetDataMaster,_fnClearTable,_fnDeleteIndex,_fnInvalidate,_fnGetRowElements,_fnCreateTr,_fnBuildHead,_fnDrawHead,_fnDraw,_fnReDraw,_fnAddOptionsHtml,_fnDetectHeader,_fnGetUniqueThs,_fnFeatureHtmlFilter,_fnFilterComplete,_fnFilterCustom,_fnFilterColumn,_fnFilter,_fnFilterCreateSearch,_fnEscapeRegex,_fnFilterData,_fnFeatureHtmlInfo,_fnUpdateInfo,_fnInfoMacros,_fnInitialise,_fnInitComplete,_fnLengthChange,_fnFeatureHtmlLength,_fnFeatureHtmlPaginate,_fnPageChange,_fnFeatureHtmlProcessing,_fnProcessingDisplay,_fnFeatureHtmlTable,_fnScrollDraw,_fnApplyToChildren,_fnCalculateColumnWidths,_fnThrottle,_fnConvertToWidth,_fnGetWidestNode,_fnGetMaxLenString,_fnStringToCss,_fnSortFlatten,_fnSort,_fnSortAria,_fnSortListener,_fnSortAttachListener,_fnSortingClasses,_fnSortData,_fnSaveState,_fnLoadState,_fnSettingsFromNode,_fnLog,_fnMap,_fnBindAction,_fnCallbackReg,_fnCallbackFire,_fnLengthOverflow,_fnRenderer,_fnDataSource,_fnRowAttributes*/\r\n\r\n(function( factory ) {\r\n\t\u0022use strict\u0022;\r\n\r\n\tif ( typeof define === \u0027function\u0027 \u0026\u0026 define.amd ) {\r\n\t\t// AMD\r\n\t\tdefine( [\u0027jquery\u0027], function ( $ ) {\r\n\t\t\treturn factory( $, window, document );\r\n\t\t} );\r\n\t}\r\n\telse if ( typeof exports === \u0027object\u0027 ) {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = function (root, $) {\r\n\t\t\tif ( ! root ) {\r\n\t\t\t\t// CommonJS environments without a window global must pass a\r\n\t\t\t\t// root. This will give an error otherwise\r\n\t\t\t\troot = window;\r\n\t\t\t}\r\n\r\n\t\t\tif ( ! $ ) {\r\n\t\t\t\t$ = typeof window !== \u0027undefined\u0027 ? // jQuery\u0027s factory checks for a global window\r\n\t\t\t\t\trequire(\u0027jquery\u0027) :\r\n\t\t\t\t\trequire(\u0027jquery\u0027)( root );\r\n\t\t\t}\r\n\r\n\t\t\treturn factory( $, root, root.document );\r\n\t\t};\r\n\t}\r\n\telse {\r\n\t\t// Browser\r\n\t\twindow.DataTable = factory( jQuery, window, document );\r\n\t}\r\n}\r\n(function( $, window, document, undefined ) {\r\n\t\u0022use strict\u0022;\r\n\r\n\t/**\r\n\t * DataTables is a plug-in for the jQuery Javascript library. It is a highly\r\n\t * flexible tool, based upon the foundations of progressive enhancement,\r\n\t * which will add advanced interaction controls to any HTML table. For a\r\n\t * full list of features please refer to\r\n\t * [DataTables.net](href=\u0022http://datatables.net).\r\n\t *\r\n\t * Note that the \u00A7DataTable\u00A7 object is not a global variable but is aliased\r\n\t * to \u00A7jQuery.fn.DataTable\u00A7 and \u00A7jQuery.fn.dataTable\u00A7 through which it may\r\n\t * be accessed.\r\n\t *\r\n\t * @class\r\n\t * @param {object} [init={}] Configuration object for DataTables. Options\r\n\t * are defined by {@link DataTable.defaults}\r\n\t * @requires jQuery 1.7\u002B\r\n\t *\r\n\t * @example\r\n\t * // Basic initialisation\r\n\t * $(document).ready( function {\r\n\t * $(\u0027#example\u0027).dataTable();\r\n\t * } );\r\n\t *\r\n\t * @example\r\n\t * // Initialisation with configuration options - in this case, disable\r\n\t * // pagination and sorting.\r\n\t * $(document).ready( function {\r\n\t * $(\u0027#example\u0027).dataTable( {\r\n\t * \u0022paginate\u0022: false,\r\n\t * \u0022sort\u0022: false\r\n\t * } );\r\n\t * } );\r\n\t */\r\n\tvar DataTable = function ( selector, options )\r\n\t{\r\n\t\t// When creating with \u00A7new\u00A7, create a new DataTable, returning the API instance\r\n\t\tif (this instanceof DataTable) {\r\n\t\t\treturn $(selector).DataTable(options);\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// Argument switching\r\n\t\t\toptions = selector;\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Perform a jQuery selector action on the table\u0027s TR elements (from the tbody) and\r\n\t\t * return the resulting jQuery object.\r\n\t\t * @param {string|node|jQuery} sSelector jQuery selector or node collection to act on\r\n\t\t * @param {object} [oOpts] Optional parameters for modifying the rows to be included\r\n\t\t * @param {string} [oOpts.filter=none] Select TR elements that meet the current filter\r\n\t\t * criterion (\u0022applied\u0022) or all TR elements (i.e. no filter).\r\n\t\t * @param {string} [oOpts.order=current] Order of the TR elements in the processed array.\r\n\t\t * Can be either \u0027current\u0027, whereby the current sorting of the table is used, or\r\n\t\t * \u0027original\u0027 whereby the original order the data was read into the table is used.\r\n\t\t * @param {string} [oOpts.page=all] Limit the selection to the currently displayed page\r\n\t\t * (\u0022current\u0022) or not (\u0022all\u0022). If \u0027current\u0027 is given, then order is assumed to be\r\n\t\t * \u0027current\u0027 and filter is \u0027applied\u0027, regardless of what they might be given as.\r\n\t\t * @returns {object} jQuery object, filtered by the given selector.\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $(\u0027#example\u0027).dataTable();\r\n\t\t *\r\n\t\t * // Highlight every second row\r\n\t\t * oTable.$(\u0027tr:odd\u0027).css(\u0027backgroundColor\u0027, \u0027blue\u0027);\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $(\u0027#example\u0027).dataTable();\r\n\t\t *\r\n\t\t * // Filter to rows with \u0027Webkit\u0027 in them, add a background colour and then\r\n\t\t * // remove the filter, thus highlighting the \u0027Webkit\u0027 rows only.\r\n\t\t * oTable.fnFilter(\u0027Webkit\u0027);\r\n\t\t * oTable.$(\u0027tr\u0027, {\u0022search\u0022: \u0022applied\u0022}).css(\u0027backgroundColor\u0027, \u0027blue\u0027);\r\n\t\t * oTable.fnFilter(\u0027\u0027);\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.$ = function ( sSelector, oOpts )\r\n\t\t{\r\n\t\t\treturn this.api(true).$( sSelector, oOpts );\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Almost identical to $ in operation, but in this case returns the data for the matched\r\n\t\t * rows - as such, the jQuery selector used should match TR row nodes or TD/TH cell nodes\r\n\t\t * rather than any descendants, so the data can be obtained for the row/cell. If matching\r\n\t\t * rows are found, the data returned is the original data array/object that was used to\r\n\t\t * create the row (or a generated array if from a DOM source).\r\n\t\t *\r\n\t\t * This method is often useful in-combination with $ where both functions are given the\r\n\t\t * same parameters and the array indexes will match identically.\r\n\t\t * @param {string|node|jQuery} sSelector jQuery selector or node collection to act on\r\n\t\t * @param {object} [oOpts] Optional parameters for modifying the rows to be included\r\n\t\t * @param {string} [oOpts.filter=none] Select elements that meet the current filter\r\n\t\t * criterion (\u0022applied\u0022) or all elements (i.e. no filter).\r\n\t\t * @param {string} [oOpts.order=current] Order of the data in the processed array.\r\n\t\t * Can be either \u0027current\u0027, whereby the current sorting of the table is used, or\r\n\t\t * \u0027original\u0027 whereby the original order the data was read into the table is used.\r\n\t\t * @param {string} [oOpts.page=all] Limit the selection to the currently displayed page\r\n\t\t * (\u0022current\u0022) or not (\u0022all\u0022). If \u0027current\u0027 is given, then order is assumed to be\r\n\t\t * \u0027current\u0027 and filter is \u0027applied\u0027, regardless of what they might be given as.\r\n\t\t * @returns {array} Data for the matched elements. If any elements, as a result of the\r\n\t\t * selector, were not TR, TD or TH elements in the DataTable, they will have a null\r\n\t\t * entry in the array.\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $(\u0027#example\u0027).dataTable();\r\n\t\t *\r\n\t\t * // Get the data from the first row in the table\r\n\t\t * var data = oTable._(\u0027tr:first\u0027);\r\n\t\t *\r\n\t\t * // Do something useful with the data\r\n\t\t * alert( \u0022First cell is: \u0022\u002Bdata[0] );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $(\u0027#example\u0027).dataTable();\r\n\t\t *\r\n\t\t * // Filter to \u0027Webkit\u0027 and get all data for\r\n\t\t * oTable.fnFilter(\u0027Webkit\u0027);\r\n\t\t * var data = oTable._(\u0027tr\u0027, {\u0022search\u0022: \u0022applied\u0022});\r\n\t\t *\r\n\t\t * // Do something with the data\r\n\t\t * alert( data.length\u002B\u0022 rows matched the search\u0022 );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis._ = function ( sSelector, oOpts )\r\n\t\t{\r\n\t\t\treturn this.api(true).rows( sSelector, oOpts ).data();\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Create a DataTables Api instance, with the currently selected tables for\r\n\t\t * the Api\u0027s context.\r\n\t\t * @param {boolean} [traditional=false] Set the API instance\u0027s context to be\r\n\t\t * only the table referred to by the \u00A7DataTable.ext.iApiIndex\u00A7 option, as was\r\n\t\t * used in the API presented by DataTables 1.9- (i.e. the traditional mode),\r\n\t\t * or if all tables captured in the jQuery object should be used.\r\n\t\t * @return {DataTables.Api}\r\n\t\t */\r\n\t\tthis.api = function ( traditional )\r\n\t\t{\r\n\t\t\treturn traditional ?\r\n\t\t\t\tnew _Api(\r\n\t\t\t\t\t_fnSettingsFromNode( this[ _ext.iApiIndex ] )\r\n\t\t\t\t) :\r\n\t\t\t\tnew _Api( this );\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Add a single new row or multiple rows of data to the table. Please note\r\n\t\t * that this is suitable for client-side processing only - if you are using\r\n\t\t * server-side processing (i.e. \u0022bServerSide\u0022: true), then to add data, you\r\n\t\t * must add it to the data source, i.e. the server-side, through an Ajax call.\r\n\t\t * @param {array|object} data The data to be added to the table. This can be:\r\n\t\t * \u003Cul\u003E\r\n\t\t * \u003Cli\u003E1D array of data - add a single row with the data provided\u003C/li\u003E\r\n\t\t * \u003Cli\u003E2D array of arrays - add multiple rows in a single call\u003C/li\u003E\r\n\t\t * \u003Cli\u003Eobject - data object when using \u003Ci\u003EmData\u003C/i\u003E\u003C/li\u003E\r\n\t\t * \u003Cli\u003Earray of objects - multiple data objects when using \u003Ci\u003EmData\u003C/i\u003E\u003C/li\u003E\r\n\t\t * \u003C/ul\u003E\r\n\t\t * @param {bool} [redraw=true] redraw the table or not\r\n\t\t * @returns {array} An array of integers, representing the list of indexes in\r\n\t\t * \u003Ci\u003EaoData\u003C/i\u003E ({@link DataTable.models.oSettings}) that have been added to\r\n\t\t * the table.\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Global var for counter\r\n\t\t * var giCount = 2;\r\n\t\t *\r\n\t\t * $(document).ready(function() {\r\n\t\t * $(\u0027#example\u0027).dataTable();\r\n\t\t * } );\r\n\t\t *\r\n\t\t * function fnClickAddRow() {\r\n\t\t * $(\u0027#example\u0027).dataTable().fnAddData( [\r\n\t\t * giCount\u002B\u0022.1\u0022,\r\n\t\t * giCount\u002B\u0022.2\u0022,\r\n\t\t * giCount\u002B\u0022.3\u0022,\r\n\t\t * giCount\u002B\u0022.4\u0022 ]\r\n\t\t * );\r\n\t\t *\r\n\t\t * giCount\u002B\u002B;\r\n\t\t * }\r\n\t\t */\r\n\t\tthis.fnAddData = function( data, redraw )\r\n\t\t{\r\n\t\t\tvar api = this.api( true );\r\n\t\t\r\n\t\t\t/* Check if we want to add multiple rows or not */\r\n\t\t\tvar rows = Array.isArray(data) \u0026\u0026 ( Array.isArray(data[0]) || $.isPlainObject(data[0]) ) ?\r\n\t\t\t\tapi.rows.add( data ) :\r\n\t\t\t\tapi.row.add( data );\r\n\t\t\r\n\t\t\tif ( redraw === undefined || redraw ) {\r\n\t\t\t\tapi.draw();\r\n\t\t\t}\r\n\t\t\r\n\t\t\treturn rows.flatten().toArray();\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * This function will make DataTables recalculate the column sizes, based on the data\r\n\t\t * contained in the table and the sizes applied to the columns (in the DOM, CSS or\r\n\t\t * through the sWidth parameter). This can be useful when the width of the table\u0027s\r\n\t\t * parent element changes (for example a window resize).\r\n\t\t * @param {boolean} [bRedraw=true] Redraw the table or not, you will typically want to\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022sScrollY\u0022: \u0022200px\u0022,\r\n\t\t * \u0022bPaginate\u0022: false\r\n\t\t * } );\r\n\t\t *\r\n\t\t * $(window).on(\u0027resize\u0027, function () {\r\n\t\t * oTable.fnAdjustColumnSizing();\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnAdjustColumnSizing = function ( bRedraw )\r\n\t\t{\r\n\t\t\tvar api = this.api( true ).columns.adjust();\r\n\t\t\tvar settings = api.settings()[0];\r\n\t\t\tvar scroll = settings.oScroll;\r\n\t\t\r\n\t\t\tif ( bRedraw === undefined || bRedraw ) {\r\n\t\t\t\tapi.draw( false );\r\n\t\t\t}\r\n\t\t\telse if ( scroll.sX !== \u0022\u0022 || scroll.sY !== \u0022\u0022 ) {\r\n\t\t\t\t/* If not redrawing, but scrolling, we want to apply the new column sizes anyway */\r\n\t\t\t\t_fnScrollDraw( settings );\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Quickly and simply clear a table\r\n\t\t * @param {bool} [bRedraw=true] redraw the table or not\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $(\u0027#example\u0027).dataTable();\r\n\t\t *\r\n\t\t * // Immediately \u0027nuke\u0027 the current rows (perhaps waiting for an Ajax callback...)\r\n\t\t * oTable.fnClearTable();\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnClearTable = function( bRedraw )\r\n\t\t{\r\n\t\t\tvar api = this.api( true ).clear();\r\n\t\t\r\n\t\t\tif ( bRedraw === undefined || bRedraw ) {\r\n\t\t\t\tapi.draw();\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * The exact opposite of \u0027opening\u0027 a row, this function will close any rows which\r\n\t\t * are currently \u0027open\u0027.\r\n\t\t * @param {node} nTr the table row to \u0027close\u0027\r\n\t\t * @returns {int} 0 on success, or 1 if failed (can\u0027t find the row)\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable;\r\n\t\t *\r\n\t\t * // \u0027open\u0027 an information row when a row is clicked on\r\n\t\t * $(\u0027#example tbody tr\u0027).click( function () {\r\n\t\t * if ( oTable.fnIsOpen(this) ) {\r\n\t\t * oTable.fnClose( this );\r\n\t\t * } else {\r\n\t\t * oTable.fnOpen( this, \u0022Temporary row opened\u0022, \u0022info_row\u0022 );\r\n\t\t * }\r\n\t\t * } );\r\n\t\t *\r\n\t\t * oTable = $(\u0027#example\u0027).dataTable();\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnClose = function( nTr )\r\n\t\t{\r\n\t\t\tthis.api( true ).row( nTr ).child.hide();\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Remove a row for the table\r\n\t\t * @param {mixed} target The index of the row from aoData to be deleted, or\r\n\t\t * the TR element you want to delete\r\n\t\t * @param {function|null} [callBack] Callback function\r\n\t\t * @param {bool} [redraw=true] Redraw the table or not\r\n\t\t * @returns {array} The row that was deleted\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $(\u0027#example\u0027).dataTable();\r\n\t\t *\r\n\t\t * // Immediately remove the first row\r\n\t\t * oTable.fnDeleteRow( 0 );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnDeleteRow = function( target, callback, redraw )\r\n\t\t{\r\n\t\t\tvar api = this.api( true );\r\n\t\t\tvar rows = api.rows( target );\r\n\t\t\tvar settings = rows.settings()[0];\r\n\t\t\tvar data = settings.aoData[ rows[0][0] ];\r\n\t\t\r\n\t\t\trows.remove();\r\n\t\t\r\n\t\t\tif ( callback ) {\r\n\t\t\t\tcallback.call( this, settings, data );\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif ( redraw === undefined || redraw ) {\r\n\t\t\t\tapi.draw();\r\n\t\t\t}\r\n\t\t\r\n\t\t\treturn data;\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Restore the table to it\u0027s original state in the DOM by removing all of DataTables\r\n\t\t * enhancements, alterations to the DOM structure of the table and event listeners.\r\n\t\t * @param {boolean} [remove=false] Completely remove the table from the DOM\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * // This example is fairly pointless in reality, but shows how fnDestroy can be used\r\n\t\t * var oTable = $(\u0027#example\u0027).dataTable();\r\n\t\t * oTable.fnDestroy();\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnDestroy = function ( remove )\r\n\t\t{\r\n\t\t\tthis.api( true ).destroy( remove );\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Redraw the table\r\n\t\t * @param {bool} [complete=true] Re-filter and resort (if enabled) the table before the draw.\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $(\u0027#example\u0027).dataTable();\r\n\t\t *\r\n\t\t * // Re-draw the table - you wouldn\u0027t want to do it here, but it\u0027s an example :-)\r\n\t\t * oTable.fnDraw();\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnDraw = function( complete )\r\n\t\t{\r\n\t\t\t// Note that this isn\u0027t an exact match to the old call to _fnDraw - it takes\r\n\t\t\t// into account the new data, but can hold position.\r\n\t\t\tthis.api( true ).draw( complete );\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Filter the input based on data\r\n\t\t * @param {string} sInput String to filter the table on\r\n\t\t * @param {int|null} [iColumn] Column to limit filtering to\r\n\t\t * @param {bool} [bRegex=false] Treat as regular expression or not\r\n\t\t * @param {bool} [bSmart=true] Perform smart filtering or not\r\n\t\t * @param {bool} [bShowGlobal=true] Show the input global filter in it\u0027s input box(es)\r\n\t\t * @param {bool} [bCaseInsensitive=true] Do case-insensitive matching (true) or not (false)\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $(\u0027#example\u0027).dataTable();\r\n\t\t *\r\n\t\t * // Sometime later - filter...\r\n\t\t * oTable.fnFilter( \u0027test string\u0027 );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnFilter = function( sInput, iColumn, bRegex, bSmart, bShowGlobal, bCaseInsensitive )\r\n\t\t{\r\n\t\t\tvar api = this.api( true );\r\n\t\t\r\n\t\t\tif ( iColumn === null || iColumn === undefined ) {\r\n\t\t\t\tapi.search( sInput, bRegex, bSmart, bCaseInsensitive );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tapi.column( iColumn ).search( sInput, bRegex, bSmart, bCaseInsensitive );\r\n\t\t\t}\r\n\t\t\r\n\t\t\tapi.draw();\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Get the data for the whole table, an individual row or an individual cell based on the\r\n\t\t * provided parameters.\r\n\t\t * @param {int|node} [src] A TR row node, TD/TH cell node or an integer. If given as\r\n\t\t * a TR node then the data source for the whole row will be returned. If given as a\r\n\t\t * TD/TH cell node then iCol will be automatically calculated and the data for the\r\n\t\t * cell returned. If given as an integer, then this is treated as the aoData internal\r\n\t\t * data index for the row (see fnGetPosition) and the data for that row used.\r\n\t\t * @param {int} [col] Optional column index that you want the data of.\r\n\t\t * @returns {array|object|string} If mRow is undefined, then the data for all rows is\r\n\t\t * returned. If mRow is defined, just data for that row, and is iCol is\r\n\t\t * defined, only data for the designated cell is returned.\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Row data\r\n\t\t * $(document).ready(function() {\r\n\t\t * oTable = $(\u0027#example\u0027).dataTable();\r\n\t\t *\r\n\t\t * oTable.$(\u0027tr\u0027).click( function () {\r\n\t\t * var data = oTable.fnGetData( this );\r\n\t\t * // ... do something with the array / object of data for the row\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Individual cell data\r\n\t\t * $(document).ready(function() {\r\n\t\t * oTable = $(\u0027#example\u0027).dataTable();\r\n\t\t *\r\n\t\t * oTable.$(\u0027td\u0027).click( function () {\r\n\t\t * var sData = oTable.fnGetData( this );\r\n\t\t * alert( \u0027The cell clicked on had the value of \u0027\u002BsData );\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnGetData = function( src, col )\r\n\t\t{\r\n\t\t\tvar api = this.api( true );\r\n\t\t\r\n\t\t\tif ( src !== undefined ) {\r\n\t\t\t\tvar type = src.nodeName ? src.nodeName.toLowerCase() : \u0027\u0027;\r\n\t\t\r\n\t\t\t\treturn col !== undefined || type == \u0027td\u0027 || type == \u0027th\u0027 ?\r\n\t\t\t\t\tapi.cell( src, col ).data() :\r\n\t\t\t\t\tapi.row( src ).data() || null;\r\n\t\t\t}\r\n\t\t\r\n\t\t\treturn api.data().toArray();\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Get an array of the TR nodes that are used in the table\u0027s body. Note that you will\r\n\t\t * typically want to use the \u0027$\u0027 API method in preference to this as it is more\r\n\t\t * flexible.\r\n\t\t * @param {int} [iRow] Optional row index for the TR element you want\r\n\t\t * @returns {array|node} If iRow is undefined, returns an array of all TR elements\r\n\t\t * in the table\u0027s body, or iRow is defined, just the TR element requested.\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $(\u0027#example\u0027).dataTable();\r\n\t\t *\r\n\t\t * // Get the nodes from the table\r\n\t\t * var nNodes = oTable.fnGetNodes( );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnGetNodes = function( iRow )\r\n\t\t{\r\n\t\t\tvar api = this.api( true );\r\n\t\t\r\n\t\t\treturn iRow !== undefined ?\r\n\t\t\t\tapi.row( iRow ).node() :\r\n\t\t\t\tapi.rows().nodes().flatten().toArray();\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Get the array indexes of a particular cell from it\u0027s DOM element\r\n\t\t * and column index including hidden columns\r\n\t\t * @param {node} node this can either be a TR, TD or TH in the table\u0027s body\r\n\t\t * @returns {int} If nNode is given as a TR, then a single index is returned, or\r\n\t\t * if given as a cell, an array of [row index, column index (visible),\r\n\t\t * column index (all)] is given.\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * $(\u0027#example tbody td\u0027).click( function () {\r\n\t\t * // Get the position of the current data from the node\r\n\t\t * var aPos = oTable.fnGetPosition( this );\r\n\t\t *\r\n\t\t * // Get the data array for this row\r\n\t\t * var aData = oTable.fnGetData( aPos[0] );\r\n\t\t *\r\n\t\t * // Update the data array and return the value\r\n\t\t * aData[ aPos[1] ] = \u0027clicked\u0027;\r\n\t\t * this.innerHTML = \u0027clicked\u0027;\r\n\t\t * } );\r\n\t\t *\r\n\t\t * // Init DataTables\r\n\t\t * oTable = $(\u0027#example\u0027).dataTable();\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnGetPosition = function( node )\r\n\t\t{\r\n\t\t\tvar api = this.api( true );\r\n\t\t\tvar nodeName = node.nodeName.toUpperCase();\r\n\t\t\r\n\t\t\tif ( nodeName == \u0027TR\u0027 ) {\r\n\t\t\t\treturn api.row( node ).index();\r\n\t\t\t}\r\n\t\t\telse if ( nodeName == \u0027TD\u0027 || nodeName == \u0027TH\u0027 ) {\r\n\t\t\t\tvar cell = api.cell( node ).index();\r\n\t\t\r\n\t\t\t\treturn [\r\n\t\t\t\t\tcell.row,\r\n\t\t\t\t\tcell.columnVisible,\r\n\t\t\t\t\tcell.column\r\n\t\t\t\t];\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Check to see if a row is \u0027open\u0027 or not.\r\n\t\t * @param {node} nTr the table row to check\r\n\t\t * @returns {boolean} true if the row is currently open, false otherwise\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable;\r\n\t\t *\r\n\t\t * // \u0027open\u0027 an information row when a row is clicked on\r\n\t\t * $(\u0027#example tbody tr\u0027).click( function () {\r\n\t\t * if ( oTable.fnIsOpen(this) ) {\r\n\t\t * oTable.fnClose( this );\r\n\t\t * } else {\r\n\t\t * oTable.fnOpen( this, \u0022Temporary row opened\u0022, \u0022info_row\u0022 );\r\n\t\t * }\r\n\t\t * } );\r\n\t\t *\r\n\t\t * oTable = $(\u0027#example\u0027).dataTable();\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnIsOpen = function( nTr )\r\n\t\t{\r\n\t\t\treturn this.api( true ).row( nTr ).child.isShown();\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * This function will place a new row directly after a row which is currently\r\n\t\t * on display on the page, with the HTML contents that is passed into the\r\n\t\t * function. This can be used, for example, to ask for confirmation that a\r\n\t\t * particular record should be deleted.\r\n\t\t * @param {node} nTr The table row to \u0027open\u0027\r\n\t\t * @param {string|node|jQuery} mHtml The HTML to put into the row\r\n\t\t * @param {string} sClass Class to give the new TD cell\r\n\t\t * @returns {node} The row opened. Note that if the table row passed in as the\r\n\t\t * first parameter, is not found in the table, this method will silently\r\n\t\t * return.\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable;\r\n\t\t *\r\n\t\t * // \u0027open\u0027 an information row when a row is clicked on\r\n\t\t * $(\u0027#example tbody tr\u0027).click( function () {\r\n\t\t * if ( oTable.fnIsOpen(this) ) {\r\n\t\t * oTable.fnClose( this );\r\n\t\t * } else {\r\n\t\t * oTable.fnOpen( this, \u0022Temporary row opened\u0022, \u0022info_row\u0022 );\r\n\t\t * }\r\n\t\t * } );\r\n\t\t *\r\n\t\t * oTable = $(\u0027#example\u0027).dataTable();\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnOpen = function( nTr, mHtml, sClass )\r\n\t\t{\r\n\t\t\treturn this.api( true )\r\n\t\t\t\t.row( nTr )\r\n\t\t\t\t.child( mHtml, sClass )\r\n\t\t\t\t.show()\r\n\t\t\t\t.child()[0];\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Change the pagination - provides the internal logic for pagination in a simple API\r\n\t\t * function. With this function you can have a DataTables table go to the next,\r\n\t\t * previous, first or last pages.\r\n\t\t * @param {string|int} mAction Paging action to take: \u0022first\u0022, \u0022previous\u0022, \u0022next\u0022 or \u0022last\u0022\r\n\t\t * or page number to jump to (integer), note that page 0 is the first page.\r\n\t\t * @param {bool} [bRedraw=true] Redraw the table or not\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $(\u0027#example\u0027).dataTable();\r\n\t\t * oTable.fnPageChange( \u0027next\u0027 );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnPageChange = function ( mAction, bRedraw )\r\n\t\t{\r\n\t\t\tvar api = this.api( true ).page( mAction );\r\n\t\t\r\n\t\t\tif ( bRedraw === undefined || bRedraw ) {\r\n\t\t\t\tapi.draw(false);\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Show a particular column\r\n\t\t * @param {int} iCol The column whose display should be changed\r\n\t\t * @param {bool} bShow Show (true) or hide (false) the column\r\n\t\t * @param {bool} [bRedraw=true] Redraw the table or not\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $(\u0027#example\u0027).dataTable();\r\n\t\t *\r\n\t\t * // Hide the second column after initialisation\r\n\t\t * oTable.fnSetColumnVis( 1, false );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnSetColumnVis = function ( iCol, bShow, bRedraw )\r\n\t\t{\r\n\t\t\tvar api = this.api( true ).column( iCol ).visible( bShow );\r\n\t\t\r\n\t\t\tif ( bRedraw === undefined || bRedraw ) {\r\n\t\t\t\tapi.columns.adjust().draw();\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Get the settings for a particular table for external manipulation\r\n\t\t * @returns {object} DataTables settings object. See\r\n\t\t * {@link DataTable.models.oSettings}\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $(\u0027#example\u0027).dataTable();\r\n\t\t * var oSettings = oTable.fnSettings();\r\n\t\t *\r\n\t\t * // Show an example parameter from the settings\r\n\t\t * alert( oSettings._iDisplayStart );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnSettings = function()\r\n\t\t{\r\n\t\t\treturn _fnSettingsFromNode( this[_ext.iApiIndex] );\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Sort the table by a particular column\r\n\t\t * @param {int} iCol the data index to sort on. Note that this will not match the\r\n\t\t * \u0027display index\u0027 if you have hidden data entries\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $(\u0027#example\u0027).dataTable();\r\n\t\t *\r\n\t\t * // Sort immediately with columns 0 and 1\r\n\t\t * oTable.fnSort( [ [0,\u0027asc\u0027], [1,\u0027asc\u0027] ] );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnSort = function( aaSort )\r\n\t\t{\r\n\t\t\tthis.api( true ).order( aaSort ).draw();\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Attach a sort listener to an element for a given column\r\n\t\t * @param {node} nNode the element to attach the sort listener to\r\n\t\t * @param {int} iColumn the column that a click on this node will sort on\r\n\t\t * @param {function} [fnCallback] callback function when sort is run\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $(\u0027#example\u0027).dataTable();\r\n\t\t *\r\n\t\t * // Sort on column 1, when \u0027sorter\u0027 is clicked on\r\n\t\t * oTable.fnSortListener( document.getElementById(\u0027sorter\u0027), 1 );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnSortListener = function( nNode, iColumn, fnCallback )\r\n\t\t{\r\n\t\t\tthis.api( true ).order.listener( nNode, iColumn, fnCallback );\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Update a table cell or row - this method will accept either a single value to\r\n\t\t * update the cell with, an array of values with one element for each column or\r\n\t\t * an object in the same format as the original data source. The function is\r\n\t\t * self-referencing in order to make the multi column updates easier.\r\n\t\t * @param {object|array|string} mData Data to update the cell/row with\r\n\t\t * @param {node|int} mRow TR element you want to update or the aoData index\r\n\t\t * @param {int} [iColumn] The column to update, give as null or undefined to\r\n\t\t * update a whole row.\r\n\t\t * @param {bool} [bRedraw=true] Redraw the table or not\r\n\t\t * @param {bool} [bAction=true] Perform pre-draw actions or not\r\n\t\t * @returns {int} 0 on success, 1 on error\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $(\u0027#example\u0027).dataTable();\r\n\t\t * oTable.fnUpdate( \u0027Example update\u0027, 0, 0 ); // Single cell\r\n\t\t * oTable.fnUpdate( [\u0027a\u0027, \u0027b\u0027, \u0027c\u0027, \u0027d\u0027, \u0027e\u0027], $(\u0027tbody tr\u0027)[0] ); // Row\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnUpdate = function( mData, mRow, iColumn, bRedraw, bAction )\r\n\t\t{\r\n\t\t\tvar api = this.api( true );\r\n\t\t\r\n\t\t\tif ( iColumn === undefined || iColumn === null ) {\r\n\t\t\t\tapi.row( mRow ).data( mData );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tapi.cell( mRow, iColumn ).data( mData );\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif ( bAction === undefined || bAction ) {\r\n\t\t\t\tapi.columns.adjust();\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif ( bRedraw === undefined || bRedraw ) {\r\n\t\t\t\tapi.draw();\r\n\t\t\t}\r\n\t\t\treturn 0;\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Provide a common method for plug-ins to check the version of DataTables being used, in order\r\n\t\t * to ensure compatibility.\r\n\t\t * @param {string} sVersion Version string to check for, in the format \u0022X.Y.Z\u0022. Note that the\r\n\t\t * formats \u0022X\u0022 and \u0022X.Y\u0022 are also acceptable.\r\n\t\t * @returns {boolean} true if this version of DataTables is greater or equal to the required\r\n\t\t * version, or false if this version of DataTales is not suitable\r\n\t\t * @method\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $(\u0027#example\u0027).dataTable();\r\n\t\t * alert( oTable.fnVersionCheck( \u00271.9.0\u0027 ) );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnVersionCheck = _ext.fnVersionCheck;\r\n\t\t\r\n\r\n\t\tvar _that = this;\r\n\t\tvar emptyInit = options === undefined;\r\n\t\tvar len = this.length;\r\n\r\n\t\tif ( emptyInit ) {\r\n\t\t\toptions = {};\r\n\t\t}\r\n\r\n\t\tthis.oApi = this.internal = _ext.internal;\r\n\r\n\t\t// Extend with old style plug-in API methods\r\n\t\tfor ( var fn in DataTable.ext.internal ) {\r\n\t\t\tif ( fn ) {\r\n\t\t\t\tthis[fn] = _fnExternApiFunc(fn);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.each(function() {\r\n\t\t\t// For each initialisation we want to give it a clean initialisation\r\n\t\t\t// object that can be bashed around\r\n\t\t\tvar o = {};\r\n\t\t\tvar oInit = len \u003E 1 ? // optimisation for single table case\r\n\t\t\t\t_fnExtend( o, options, true ) :\r\n\t\t\t\toptions;\r\n\r\n\t\t\t/*global oInit,_that,emptyInit*/\r\n\t\t\tvar i=0, iLen, j, jLen, k, kLen;\r\n\t\t\tvar sId = this.getAttribute( \u0027id\u0027 );\r\n\t\t\tvar bInitHandedOff = false;\r\n\t\t\tvar defaults = DataTable.defaults;\r\n\t\t\tvar $this = $(this);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t/* Sanity check */\r\n\t\t\tif ( this.nodeName.toLowerCase() != \u0027table\u0027 )\r\n\t\t\t{\r\n\t\t\t\t_fnLog( null, 0, \u0027Non-table node initialisation (\u0027\u002Bthis.nodeName\u002B\u0027)\u0027, 2 );\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* Backwards compatibility for the defaults */\r\n\t\t\t_fnCompatOpts( defaults );\r\n\t\t\t_fnCompatCols( defaults.column );\r\n\t\t\t\r\n\t\t\t/* Convert the camel-case defaults to Hungarian */\r\n\t\t\t_fnCamelToHungarian( defaults, defaults, true );\r\n\t\t\t_fnCamelToHungarian( defaults.column, defaults.column, true );\r\n\t\t\t\r\n\t\t\t/* Setting up the initialisation object */\r\n\t\t\t_fnCamelToHungarian( defaults, $.extend( oInit, $this.data() ), true );\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t/* Check to see if we are re-initialising a table */\r\n\t\t\tvar allSettings = DataTable.settings;\r\n\t\t\tfor ( i=0, iLen=allSettings.length ; i\u003CiLen ; i\u002B\u002B )\r\n\t\t\t{\r\n\t\t\t\tvar s = allSettings[i];\r\n\t\t\t\r\n\t\t\t\t/* Base check on table node */\r\n\t\t\t\tif (\r\n\t\t\t\t\ts.nTable == this ||\r\n\t\t\t\t\t(s.nTHead \u0026\u0026 s.nTHead.parentNode == this) ||\r\n\t\t\t\t\t(s.nTFoot \u0026\u0026 s.nTFoot.parentNode == this)\r\n\t\t\t\t) {\r\n\t\t\t\t\tvar bRetrieve = oInit.bRetrieve !== undefined ? oInit.bRetrieve : defaults.bRetrieve;\r\n\t\t\t\t\tvar bDestroy = oInit.bDestroy !== undefined ? oInit.bDestroy : defaults.bDestroy;\r\n\t\t\t\r\n\t\t\t\t\tif ( emptyInit || bRetrieve )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\treturn s.oInstance;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( bDestroy )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ts.oInstance.fnDestroy();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t_fnLog( s, 0, \u0027Cannot reinitialise DataTable\u0027, 3 );\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\t/* If the element we are initialising has the same ID as a table which was previously\r\n\t\t\t\t * initialised, but the table nodes don\u0027t match (from before) then we destroy the old\r\n\t\t\t\t * instance by simply deleting it. This is under the assumption that the table has been\r\n\t\t\t\t * destroyed by other methods. Anyone using non-id selectors will need to do this manually\r\n\t\t\t\t */\r\n\t\t\t\tif ( s.sTableId == this.id )\r\n\t\t\t\t{\r\n\t\t\t\t\tallSettings.splice( i, 1 );\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* Ensure the table has an ID - required for accessibility */\r\n\t\t\tif ( sId === null || sId === \u0022\u0022 )\r\n\t\t\t{\r\n\t\t\t\tsId = \u0022DataTables_Table_\u0022\u002B(DataTable.ext._unique\u002B\u002B);\r\n\t\t\t\tthis.id = sId;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* Create the settings object for this table and set some of the default parameters */\r\n\t\t\tvar oSettings = $.extend( true, {}, DataTable.models.oSettings, {\r\n\t\t\t\t\u0022sDestroyWidth\u0022: $this[0].style.width,\r\n\t\t\t\t\u0022sInstance\u0022: sId,\r\n\t\t\t\t\u0022sTableId\u0022: sId\r\n\t\t\t} );\r\n\t\t\toSettings.nTable = this;\r\n\t\t\toSettings.oApi = _that.internal;\r\n\t\t\toSettings.oInit = oInit;\r\n\t\t\t\r\n\t\t\tallSettings.push( oSettings );\r\n\t\t\t\r\n\t\t\t// Need to add the instance after the instance after the settings object has been added\r\n\t\t\t// to the settings array, so we can self reference the table instance if more than one\r\n\t\t\toSettings.oInstance = (_that.length===1) ? _that : $this.dataTable();\r\n\t\t\t\r\n\t\t\t// Backwards compatibility, before we apply all the defaults\r\n\t\t\t_fnCompatOpts( oInit );\r\n\t\t\t_fnLanguageCompat( oInit.oLanguage );\r\n\t\t\t\r\n\t\t\t// If the length menu is given, but the init display length is not, use the length menu\r\n\t\t\tif ( oInit.aLengthMenu \u0026\u0026 ! oInit.iDisplayLength )\r\n\t\t\t{\r\n\t\t\t\toInit.iDisplayLength = Array.isArray( oInit.aLengthMenu[0] ) ?\r\n\t\t\t\t\toInit.aLengthMenu[0][0] : oInit.aLengthMenu[0];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Apply the defaults and init options to make a single init object will all\r\n\t\t\t// options defined from defaults and instance options.\r\n\t\t\toInit = _fnExtend( $.extend( true, {}, defaults ), oInit );\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t// Map the initialisation options onto the settings object\r\n\t\t\t_fnMap( oSettings.oFeatures, oInit, [\r\n\t\t\t\t\u0022bPaginate\u0022,\r\n\t\t\t\t\u0022bLengthChange\u0022,\r\n\t\t\t\t\u0022bFilter\u0022,\r\n\t\t\t\t\u0022bSort\u0022,\r\n\t\t\t\t\u0022bSortMulti\u0022,\r\n\t\t\t\t\u0022bInfo\u0022,\r\n\t\t\t\t\u0022bProcessing\u0022,\r\n\t\t\t\t\u0022bAutoWidth\u0022,\r\n\t\t\t\t\u0022bSortClasses\u0022,\r\n\t\t\t\t\u0022bServerSide\u0022,\r\n\t\t\t\t\u0022bDeferRender\u0022\r\n\t\t\t] );\r\n\t\t\t_fnMap( oSettings, oInit, [\r\n\t\t\t\t\u0022asStripeClasses\u0022,\r\n\t\t\t\t\u0022ajax\u0022,\r\n\t\t\t\t\u0022fnServerData\u0022,\r\n\t\t\t\t\u0022fnFormatNumber\u0022,\r\n\t\t\t\t\u0022sServerMethod\u0022,\r\n\t\t\t\t\u0022aaSorting\u0022,\r\n\t\t\t\t\u0022aaSortingFixed\u0022,\r\n\t\t\t\t\u0022aLengthMenu\u0022,\r\n\t\t\t\t\u0022sPaginationType\u0022,\r\n\t\t\t\t\u0022sAjaxSource\u0022,\r\n\t\t\t\t\u0022sAjaxDataProp\u0022,\r\n\t\t\t\t\u0022iStateDuration\u0022,\r\n\t\t\t\t\u0022sDom\u0022,\r\n\t\t\t\t\u0022bSortCellsTop\u0022,\r\n\t\t\t\t\u0022iTabIndex\u0022,\r\n\t\t\t\t\u0022fnStateLoadCallback\u0022,\r\n\t\t\t\t\u0022fnStateSaveCallback\u0022,\r\n\t\t\t\t\u0022renderer\u0022,\r\n\t\t\t\t\u0022searchDelay\u0022,\r\n\t\t\t\t\u0022rowId\u0022,\r\n\t\t\t\t[ \u0022iCookieDuration\u0022, \u0022iStateDuration\u0022 ], // backwards compat\r\n\t\t\t\t[ \u0022oSearch\u0022, \u0022oPreviousSearch\u0022 ],\r\n\t\t\t\t[ \u0022aoSearchCols\u0022, \u0022aoPreSearchCols\u0022 ],\r\n\t\t\t\t[ \u0022iDisplayLength\u0022, \u0022_iDisplayLength\u0022 ]\r\n\t\t\t] );\r\n\t\t\t_fnMap( oSettings.oScroll, oInit, [\r\n\t\t\t\t[ \u0022sScrollX\u0022, \u0022sX\u0022 ],\r\n\t\t\t\t[ \u0022sScrollXInner\u0022, \u0022sXInner\u0022 ],\r\n\t\t\t\t[ \u0022sScrollY\u0022, \u0022sY\u0022 ],\r\n\t\t\t\t[ \u0022bScrollCollapse\u0022, \u0022bCollapse\u0022 ]\r\n\t\t\t] );\r\n\t\t\t_fnMap( oSettings.oLanguage, oInit, \u0022fnInfoCallback\u0022 );\r\n\t\t\t\r\n\t\t\t/* Callback functions which are array driven */\r\n\t\t\t_fnCallbackReg( oSettings, \u0027aoDrawCallback\u0027, oInit.fnDrawCallback, \u0027user\u0027 );\r\n\t\t\t_fnCallbackReg( oSettings, \u0027aoServerParams\u0027, oInit.fnServerParams, \u0027user\u0027 );\r\n\t\t\t_fnCallbackReg( oSettings, \u0027aoStateSaveParams\u0027, oInit.fnStateSaveParams, \u0027user\u0027 );\r\n\t\t\t_fnCallbackReg( oSettings, \u0027aoStateLoadParams\u0027, oInit.fnStateLoadParams, \u0027user\u0027 );\r\n\t\t\t_fnCallbackReg( oSettings, \u0027aoStateLoaded\u0027, oInit.fnStateLoaded, \u0027user\u0027 );\r\n\t\t\t_fnCallbackReg( oSettings, \u0027aoRowCallback\u0027, oInit.fnRowCallback, \u0027user\u0027 );\r\n\t\t\t_fnCallbackReg( oSettings, \u0027aoRowCreatedCallback\u0027, oInit.fnCreatedRow, \u0027user\u0027 );\r\n\t\t\t_fnCallbackReg( oSettings, \u0027aoHeaderCallback\u0027, oInit.fnHeaderCallback, \u0027user\u0027 );\r\n\t\t\t_fnCallbackReg( oSettings, \u0027aoFooterCallback\u0027, oInit.fnFooterCallback, \u0027user\u0027 );\r\n\t\t\t_fnCallbackReg( oSettings, \u0027aoInitComplete\u0027, oInit.fnInitComplete, \u0027user\u0027 );\r\n\t\t\t_fnCallbackReg( oSettings, \u0027aoPreDrawCallback\u0027, oInit.fnPreDrawCallback, \u0027user\u0027 );\r\n\t\t\t\r\n\t\t\toSettings.rowIdFn = _fnGetObjectDataFn( oInit.rowId );\r\n\t\t\t\r\n\t\t\t/* Browser support detection */\r\n\t\t\t_fnBrowserDetect( oSettings );\r\n\t\t\t\r\n\t\t\tvar oClasses = oSettings.oClasses;\r\n\t\t\t\r\n\t\t\t$.extend( oClasses, DataTable.ext.classes, oInit.oClasses );\r\n\t\t\t$this.addClass( oClasses.sTable );\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif ( oSettings.iInitDisplayStart === undefined )\r\n\t\t\t{\r\n\t\t\t\t/* Display start point, taking into account the save saving */\r\n\t\t\t\toSettings.iInitDisplayStart = oInit.iDisplayStart;\r\n\t\t\t\toSettings._iDisplayStart = oInit.iDisplayStart;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif ( oInit.iDeferLoading !== null )\r\n\t\t\t{\r\n\t\t\t\toSettings.bDeferLoading = true;\r\n\t\t\t\tvar tmp = Array.isArray( oInit.iDeferLoading );\r\n\t\t\t\toSettings._iRecordsDisplay = tmp ? oInit.iDeferLoading[0] : oInit.iDeferLoading;\r\n\t\t\t\toSettings._iRecordsTotal = tmp ? oInit.iDeferLoading[1] : oInit.iDeferLoading;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* Language definitions */\r\n\t\t\tvar oLanguage = oSettings.oLanguage;\r\n\t\t\t$.extend( true, oLanguage, oInit.oLanguage );\r\n\t\t\t\r\n\t\t\tif ( oLanguage.sUrl )\r\n\t\t\t{\r\n\t\t\t\t/* Get the language definitions from a file - because this Ajax call makes the language\r\n\t\t\t\t * get async to the remainder of this function we use bInitHandedOff to indicate that\r\n\t\t\t\t * _fnInitialise will be fired by the returned Ajax handler, rather than the constructor\r\n\t\t\t\t */\r\n\t\t\t\t$.ajax( {\r\n\t\t\t\t\tdataType: \u0027json\u0027,\r\n\t\t\t\t\turl: oLanguage.sUrl,\r\n\t\t\t\t\tsuccess: function ( json ) {\r\n\t\t\t\t\t\t_fnCamelToHungarian( defaults.oLanguage, json );\r\n\t\t\t\t\t\t_fnLanguageCompat( json );\r\n\t\t\t\t\t\t$.extend( true, oLanguage, json );\r\n\t\t\t\r\n\t\t\t\t\t\t_fnCallbackFire( oSettings, null, \u0027i18n\u0027, [oSettings]);\r\n\t\t\t\t\t\t_fnInitialise( oSettings );\r\n\t\t\t\t\t},\r\n\t\t\t\t\terror: function () {\r\n\t\t\t\t\t\t// Error occurred loading language file, continue on as best we can\r\n\t\t\t\t\t\t_fnInitialise( oSettings );\r\n\t\t\t\t\t}\r\n\t\t\t\t} );\r\n\t\t\t\tbInitHandedOff = true;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t_fnCallbackFire( oSettings, null, \u0027i18n\u0027, [oSettings]);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\t * Stripes\r\n\t\t\t */\r\n\t\t\tif ( oInit.asStripeClasses === null )\r\n\t\t\t{\r\n\t\t\t\toSettings.asStripeClasses =[\r\n\t\t\t\t\toClasses.sStripeOdd,\r\n\t\t\t\t\toClasses.sStripeEven\r\n\t\t\t\t];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* Remove row stripe classes if they are already on the table row */\r\n\t\t\tvar stripeClasses = oSettings.asStripeClasses;\r\n\t\t\tvar rowOne = $this.children(\u0027tbody\u0027).find(\u0027tr\u0027).eq(0);\r\n\t\t\tif ( $.inArray( true, $.map( stripeClasses, function(el, i) {\r\n\t\t\t\treturn rowOne.hasClass(el);\r\n\t\t\t} ) ) !== -1 ) {\r\n\t\t\t\t$(\u0027tbody tr\u0027, this).removeClass( stripeClasses.join(\u0027 \u0027) );\r\n\t\t\t\toSettings.asDestroyStripes = stripeClasses.slice();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\t * Columns\r\n\t\t\t * See if we should load columns automatically or use defined ones\r\n\t\t\t */\r\n\t\t\tvar anThs = [];\r\n\t\t\tvar aoColumnsInit;\r\n\t\t\tvar nThead = this.getElementsByTagName(\u0027thead\u0027);\r\n\t\t\tif ( nThead.length !== 0 )\r\n\t\t\t{\r\n\t\t\t\t_fnDetectHeader( oSettings.aoHeader, nThead[0] );\r\n\t\t\t\tanThs = _fnGetUniqueThs( oSettings );\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* If not given a column array, generate one with nulls */\r\n\t\t\tif ( oInit.aoColumns === null )\r\n\t\t\t{\r\n\t\t\t\taoColumnsInit = [];\r\n\t\t\t\tfor ( i=0, iLen=anThs.length ; i\u003CiLen ; i\u002B\u002B )\r\n\t\t\t\t{\r\n\t\t\t\t\taoColumnsInit.push( null );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\taoColumnsInit = oInit.aoColumns;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* Add the columns */\r\n\t\t\tfor ( i=0, iLen=aoColumnsInit.length ; i\u003CiLen ; i\u002B\u002B )\r\n\t\t\t{\r\n\t\t\t\t_fnAddColumn( oSettings, anThs ? anThs[i] : null );\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* Apply the column definitions */\r\n\t\t\t_fnApplyColumnDefs( oSettings, oInit.aoColumnDefs, aoColumnsInit, function (iCol, oDef) {\r\n\t\t\t\t_fnColumnOptions( oSettings, iCol, oDef );\r\n\t\t\t} );\r\n\t\t\t\r\n\t\t\t/* HTML5 attribute detection - build an mData object automatically if the\r\n\t\t\t * attributes are found\r\n\t\t\t */\r\n\t\t\tif ( rowOne.length ) {\r\n\t\t\t\tvar a = function ( cell, name ) {\r\n\t\t\t\t\treturn cell.getAttribute( \u0027data-\u0027\u002Bname ) !== null ? name : null;\r\n\t\t\t\t};\r\n\t\t\t\r\n\t\t\t\t$( rowOne[0] ).children(\u0027th, td\u0027).each( function (i, cell) {\r\n\t\t\t\t\tvar col = oSettings.aoColumns[i];\r\n\t\t\t\r\n\t\t\t\t\tif ( col.mData === i ) {\r\n\t\t\t\t\t\tvar sort = a( cell, \u0027sort\u0027 ) || a( cell, \u0027order\u0027 );\r\n\t\t\t\t\t\tvar filter = a( cell, \u0027filter\u0027 ) || a( cell, \u0027search\u0027 );\r\n\t\t\t\r\n\t\t\t\t\t\tif ( sort !== null || filter !== null ) {\r\n\t\t\t\t\t\t\tcol.mData = {\r\n\t\t\t\t\t\t\t\t_: i\u002B\u0027.display\u0027,\r\n\t\t\t\t\t\t\t\tsort: sort !== null ? i\u002B\u0027.@data-\u0027\u002Bsort : undefined,\r\n\t\t\t\t\t\t\t\ttype: sort !== null ? i\u002B\u0027.@data-\u0027\u002Bsort : undefined,\r\n\t\t\t\t\t\t\t\tfilter: filter !== null ? i\u002B\u0027.@data-\u0027\u002Bfilter : undefined\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\r\n\t\t\t\t\t\t\t_fnColumnOptions( oSettings, i );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} );\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tvar features = oSettings.oFeatures;\r\n\t\t\tvar loadedInit = function () {\r\n\t\t\t\t/*\r\n\t\t\t\t * Sorting\r\n\t\t\t\t * @todo For modularisation (1.11) this needs to do into a sort start up handler\r\n\t\t\t\t */\r\n\t\t\t\r\n\t\t\t\t// If aaSorting is not defined, then we use the first indicator in asSorting\r\n\t\t\t\t// in case that has been altered, so the default sort reflects that option\r\n\t\t\t\tif ( oInit.aaSorting === undefined ) {\r\n\t\t\t\t\tvar sorting = oSettings.aaSorting;\r\n\t\t\t\t\tfor ( i=0, iLen=sorting.length ; i\u003CiLen ; i\u002B\u002B ) {\r\n\t\t\t\t\t\tsorting[i][1] = oSettings.aoColumns[ i ].asSorting[0];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\t/* Do a first pass on the sorting classes (allows any size changes to be taken into\r\n\t\t\t\t * account, and also will apply sorting disabled classes if disabled\r\n\t\t\t\t */\r\n\t\t\t\t_fnSortingClasses( oSettings );\r\n\t\t\t\r\n\t\t\t\tif ( features.bSort ) {\r\n\t\t\t\t\t_fnCallbackReg( oSettings, \u0027aoDrawCallback\u0027, function () {\r\n\t\t\t\t\t\tif ( oSettings.bSorted ) {\r\n\t\t\t\t\t\t\tvar aSort = _fnSortFlatten( oSettings );\r\n\t\t\t\t\t\t\tvar sortedColumns = {};\r\n\t\t\t\r\n\t\t\t\t\t\t\t$.each( aSort, function (i, val) {\r\n\t\t\t\t\t\t\t\tsortedColumns[ val.src ] = val.dir;\r\n\t\t\t\t\t\t\t} );\r\n\t\t\t\r\n\t\t\t\t\t\t\t_fnCallbackFire( oSettings, null, \u0027order\u0027, [oSettings, aSort, sortedColumns] );\r\n\t\t\t\t\t\t\t_fnSortAria( oSettings );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} );\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\t_fnCallbackReg( oSettings, \u0027aoDrawCallback\u0027, function () {\r\n\t\t\t\t\tif ( oSettings.bSorted || _fnDataSource( oSettings ) === \u0027ssp\u0027 || features.bDeferRender ) {\r\n\t\t\t\t\t\t_fnSortingClasses( oSettings );\r\n\t\t\t\t\t}\r\n\t\t\t\t}, \u0027sc\u0027 );\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t/*\r\n\t\t\t\t * Final init\r\n\t\t\t\t * Cache the header, body and footer as required, creating them if needed\r\n\t\t\t\t */\r\n\t\t\t\r\n\t\t\t\t// Work around for Webkit bug 83867 - store the caption-side before removing from doc\r\n\t\t\t\tvar captions = $this.children(\u0027caption\u0027).each( function () {\r\n\t\t\t\t\tthis._captionSide = $(this).css(\u0027caption-side\u0027);\r\n\t\t\t\t} );\r\n\t\t\t\r\n\t\t\t\tvar thead = $this.children(\u0027thead\u0027);\r\n\t\t\t\tif ( thead.length === 0 ) {\r\n\t\t\t\t\tthead = $(\u0027\u003Cthead/\u003E\u0027).appendTo($this);\r\n\t\t\t\t}\r\n\t\t\t\toSettings.nTHead = thead[0];\r\n\t\t\t\r\n\t\t\t\tvar tbody = $this.children(\u0027tbody\u0027);\r\n\t\t\t\tif ( tbody.length === 0 ) {\r\n\t\t\t\t\ttbody = $(\u0027\u003Ctbody/\u003E\u0027).insertAfter(thead);\r\n\t\t\t\t}\r\n\t\t\t\toSettings.nTBody = tbody[0];\r\n\t\t\t\r\n\t\t\t\tvar tfoot = $this.children(\u0027tfoot\u0027);\r\n\t\t\t\tif ( tfoot.length === 0 \u0026\u0026 captions.length \u003E 0 \u0026\u0026 (oSettings.oScroll.sX !== \u0022\u0022 || oSettings.oScroll.sY !== \u0022\u0022) ) {\r\n\t\t\t\t\t// If we are a scrolling table, and no footer has been given, then we need to create\r\n\t\t\t\t\t// a tfoot element for the caption element to be appended to\r\n\t\t\t\t\ttfoot = $(\u0027\u003Ctfoot/\u003E\u0027).appendTo($this);\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\tif ( tfoot.length === 0 || tfoot.children().length === 0 ) {\r\n\t\t\t\t\t$this.addClass( oClasses.sNoFooter );\r\n\t\t\t\t}\r\n\t\t\t\telse if ( tfoot.length \u003E 0 ) {\r\n\t\t\t\t\toSettings.nTFoot = tfoot[0];\r\n\t\t\t\t\t_fnDetectHeader( oSettings.aoFooter, oSettings.nTFoot );\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\t/* Check if there is data passing into the constructor */\r\n\t\t\t\tif ( oInit.aaData ) {\r\n\t\t\t\t\tfor ( i=0 ; i\u003CoInit.aaData.length ; i\u002B\u002B ) {\r\n\t\t\t\t\t\t_fnAddData( oSettings, oInit.aaData[ i ] );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if ( oSettings.bDeferLoading || _fnDataSource( oSettings ) == \u0027dom\u0027 ) {\r\n\t\t\t\t\t/* Grab the data from the page - only do this when deferred loading or no Ajax\r\n\t\t\t\t\t * source since there is no point in reading the DOM data if we are then going\r\n\t\t\t\t\t * to replace it with Ajax data\r\n\t\t\t\t\t */\r\n\t\t\t\t\t_fnAddTr( oSettings, $(oSettings.nTBody).children(\u0027tr\u0027) );\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\t/* Copy the data index array */\r\n\t\t\t\toSettings.aiDisplay = oSettings.aiDisplayMaster.slice();\r\n\t\t\t\r\n\t\t\t\t/* Initialisation complete - table can be drawn */\r\n\t\t\t\toSettings.bInitialised = true;\r\n\t\t\t\r\n\t\t\t\t/* Check if we need to initialise the table (it might not have been handed off to the\r\n\t\t\t\t * language processor)\r\n\t\t\t\t */\r\n\t\t\t\tif ( bInitHandedOff === false ) {\r\n\t\t\t\t\t_fnInitialise( oSettings );\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t\t\r\n\t\t\t/* Must be done after everything which can be overridden by the state saving! */\r\n\t\t\t_fnCallbackReg( oSettings, \u0027aoDrawCallback\u0027, _fnSaveState, \u0027state_save\u0027 );\r\n\t\t\t\r\n\t\t\tif ( oInit.bStateSave )\r\n\t\t\t{\r\n\t\t\t\tfeatures.bStateSave = true;\r\n\t\t\t\t_fnLoadState( oSettings, oInit, loadedInit );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tloadedInit();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} );\r\n\t\t_that = null;\r\n\t\treturn this;\r\n\t};\r\n\r\n\t\r\n\t/*\r\n\t * It is useful to have variables which are scoped locally so only the\r\n\t * DataTables functions can access them and they don\u0027t leak into global space.\r\n\t * At the same time these functions are often useful over multiple files in the\r\n\t * core and API, so we list, or at least document, all variables which are used\r\n\t * by DataTables as private variables here. This also ensures that there is no\r\n\t * clashing of variable names and that they can easily referenced for reuse.\r\n\t */\r\n\t\r\n\t\r\n\t// Defined else where\r\n\t// _selector_run\r\n\t// _selector_opts\r\n\t// _selector_first\r\n\t// _selector_row_indexes\r\n\t\r\n\tvar _ext; // DataTable.ext\r\n\tvar _Api; // DataTable.Api\r\n\tvar _api_register; // DataTable.Api.register\r\n\tvar _api_registerPlural; // DataTable.Api.registerPlural\r\n\t\r\n\tvar _re_dic = {};\r\n\tvar _re_new_lines = /[\\r\\n\\u2028]/g;\r\n\tvar _re_html = /\u003C.*?\u003E/g;\r\n\t\r\n\t// This is not strict ISO8601 - Date.parse() is quite lax, although\r\n\t// implementations differ between browsers.\r\n\tvar _re_date = /^\\d{2,4}[\\.\\/\\-]\\d{1,2}[\\.\\/\\-]\\d{1,2}([T ]{1}\\d{1,2}[:\\.]\\d{2}([\\.:]\\d{2})?)?$/;\r\n\t\r\n\t// Escape regular expression special characters\r\n\tvar _re_escape_regex = new RegExp( \u0027(\\\\\u0027 \u002B [ \u0027/\u0027, \u0027.\u0027, \u0027*\u0027, \u0027\u002B\u0027, \u0027?\u0027, \u0027|\u0027, \u0027(\u0027, \u0027)\u0027, \u0027[\u0027, \u0027]\u0027, \u0027{\u0027, \u0027}\u0027, \u0027\\\\\u0027, \u0027$\u0027, \u0027^\u0027, \u0027-\u0027 ].join(\u0027|\\\\\u0027) \u002B \u0027)\u0027, \u0027g\u0027 );\r\n\t\r\n\t// http://en.wikipedia.org/wiki/Foreign_exchange_market\r\n\t// - \\u20BD - Russian ruble.\r\n\t// - \\u20a9 - South Korean Won\r\n\t// - \\u20BA - Turkish Lira\r\n\t// - \\u20B9 - Indian Rupee\r\n\t// - R - Brazil (R$) and South Africa\r\n\t// - fr - Swiss Franc\r\n\t// - kr - Swedish krona, Norwegian krone and Danish krone\r\n\t// - \\u2009 is thin space and \\u202F is narrow no-break space, both used in many\r\n\t// - \u0243 - Bitcoin\r\n\t// - \u039E - Ethereum\r\n\t// standards as thousands separators.\r\n\tvar _re_formatted_numeric = /[\u0027\\u00A0,$\u00A3\u20AC\u00A5%\\u2009\\u202F\\u20BD\\u20a9\\u20BArfk\u0243\u039E]/gi;\r\n\t\r\n\t\r\n\tvar _empty = function ( d ) {\r\n\t\treturn !d || d === true || d === \u0027-\u0027 ? true : false;\r\n\t};\r\n\t\r\n\t\r\n\tvar _intVal = function ( s ) {\r\n\t\tvar integer = parseInt( s, 10 );\r\n\t\treturn !isNaN(integer) \u0026\u0026 isFinite(s) ? integer : null;\r\n\t};\r\n\t\r\n\t// Convert from a formatted number with characters other than \u00A7.\u00A7 as the\r\n\t// decimal place, to a Javascript number\r\n\tvar _numToDecimal = function ( num, decimalPoint ) {\r\n\t\t// Cache created regular expressions for speed as this function is called often\r\n\t\tif ( ! _re_dic[ decimalPoint ] ) {\r\n\t\t\t_re_dic[ decimalPoint ] = new RegExp( _fnEscapeRegex( decimalPoint ), \u0027g\u0027 );\r\n\t\t}\r\n\t\treturn typeof num === \u0027string\u0027 \u0026\u0026 decimalPoint !== \u0027.\u0027 ?\r\n\t\t\tnum.replace( /\\./g, \u0027\u0027 ).replace( _re_dic[ decimalPoint ], \u0027.\u0027 ) :\r\n\t\t\tnum;\r\n\t};\r\n\t\r\n\t\r\n\tvar _isNumber = function ( d, decimalPoint, formatted ) {\r\n\t\tvar strType = typeof d === \u0027string\u0027;\r\n\t\r\n\t\t// If empty return immediately so there must be a number if it is a\r\n\t\t// formatted string (this stops the string \u0022k\u0022, or \u0022kr\u0022, etc being detected\r\n\t\t// as a formatted number for currency\r\n\t\tif ( _empty( d ) ) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\r\n\t\tif ( decimalPoint \u0026\u0026 strType ) {\r\n\t\t\td = _numToDecimal( d, decimalPoint );\r\n\t\t}\r\n\t\r\n\t\tif ( formatted \u0026\u0026 strType ) {\r\n\t\t\td = d.replace( _re_formatted_numeric, \u0027\u0027 );\r\n\t\t}\r\n\t\r\n\t\treturn !isNaN( parseFloat(d) ) \u0026\u0026 isFinite( d );\r\n\t};\r\n\t\r\n\t\r\n\t// A string without HTML in it can be considered to be HTML still\r\n\tvar _isHtml = function ( d ) {\r\n\t\treturn _empty( d ) || typeof d === \u0027string\u0027;\r\n\t};\r\n\t\r\n\t\r\n\tvar _htmlNumeric = function ( d, decimalPoint, formatted ) {\r\n\t\tif ( _empty( d ) ) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\r\n\t\tvar html = _isHtml( d );\r\n\t\treturn ! html ?\r\n\t\t\tnull :\r\n\t\t\t_isNumber( _stripHtml( d ), decimalPoint, formatted ) ?\r\n\t\t\t\ttrue :\r\n\t\t\t\tnull;\r\n\t};\r\n\t\r\n\t\r\n\tvar _pluck = function ( a, prop, prop2 ) {\r\n\t\tvar out = [];\r\n\t\tvar i=0, ien=a.length;\r\n\t\r\n\t\t// Could have the test in the loop for slightly smaller code, but speed\r\n\t\t// is essential here\r\n\t\tif ( prop2 !== undefined ) {\r\n\t\t\tfor ( ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t\tif ( a[i] \u0026\u0026 a[i][ prop ] ) {\r\n\t\t\t\t\tout.push( a[i][ prop ][ prop2 ] );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tfor ( ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t\tif ( a[i] ) {\r\n\t\t\t\t\tout.push( a[i][ prop ] );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn out;\r\n\t};\r\n\t\r\n\t\r\n\t// Basically the same as _pluck, but rather than looping over \u00A7a\u00A7 we use \u00A7order\u00A7\r\n\t// as the indexes to pick from \u00A7a\u00A7\r\n\tvar _pluck_order = function ( a, order, prop, prop2 )\r\n\t{\r\n\t\tvar out = [];\r\n\t\tvar i=0, ien=order.length;\r\n\t\r\n\t\t// Could have the test in the loop for slightly smaller code, but speed\r\n\t\t// is essential here\r\n\t\tif ( prop2 !== undefined ) {\r\n\t\t\tfor ( ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t\tif ( a[ order[i] ][ prop ] ) {\r\n\t\t\t\t\tout.push( a[ order[i] ][ prop ][ prop2 ] );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tfor ( ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t\tout.push( a[ order[i] ][ prop ] );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn out;\r\n\t};\r\n\t\r\n\t\r\n\tvar _range = function ( len, start )\r\n\t{\r\n\t\tvar out = [];\r\n\t\tvar end;\r\n\t\r\n\t\tif ( start === undefined ) {\r\n\t\t\tstart = 0;\r\n\t\t\tend = len;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tend = start;\r\n\t\t\tstart = len;\r\n\t\t}\r\n\t\r\n\t\tfor ( var i=start ; i\u003Cend ; i\u002B\u002B ) {\r\n\t\t\tout.push( i );\r\n\t\t}\r\n\t\r\n\t\treturn out;\r\n\t};\r\n\t\r\n\t\r\n\tvar _removeEmpty = function ( a )\r\n\t{\r\n\t\tvar out = [];\r\n\t\r\n\t\tfor ( var i=0, ien=a.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\tif ( a[i] ) { // careful - will remove all falsy values!\r\n\t\t\t\tout.push( a[i] );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn out;\r\n\t};\r\n\t\r\n\t\r\n\tvar _stripHtml = function ( d ) {\r\n\t\treturn d.replace( _re_html, \u0027\u0027 );\r\n\t};\r\n\t\r\n\t\r\n\t/**\r\n\t * Determine if all values in the array are unique. This means we can short\r\n\t * cut the _unique method at the cost of a single loop. A sorted array is used\r\n\t * to easily check the values.\r\n\t *\r\n\t * @param {array} src Source array\r\n\t * @return {boolean} true if all unique, false otherwise\r\n\t * @ignore\r\n\t */\r\n\tvar _areAllUnique = function ( src ) {\r\n\t\tif ( src.length \u003C 2 ) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\r\n\t\tvar sorted = src.slice().sort();\r\n\t\tvar last = sorted[0];\r\n\t\r\n\t\tfor ( var i=1, ien=sorted.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\tif ( sorted[i] === last ) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\r\n\t\t\tlast = sorted[i];\r\n\t\t}\r\n\t\r\n\t\treturn true;\r\n\t};\r\n\t\r\n\t\r\n\t/**\r\n\t * Find the unique elements in a source array.\r\n\t *\r\n\t * @param {array} src Source array\r\n\t * @return {array} Array of unique items\r\n\t * @ignore\r\n\t */\r\n\tvar _unique = function ( src )\r\n\t{\r\n\t\tif ( _areAllUnique( src ) ) {\r\n\t\t\treturn src.slice();\r\n\t\t}\r\n\t\r\n\t\t// A faster unique method is to use object keys to identify used values,\r\n\t\t// but this doesn\u0027t work with arrays or objects, which we must also\r\n\t\t// consider. See jsperf.com/compare-array-unique-versions/4 for more\r\n\t\t// information.\r\n\t\tvar\r\n\t\t\tout = [],\r\n\t\t\tval,\r\n\t\t\ti, ien=src.length,\r\n\t\t\tj, k=0;\r\n\t\r\n\t\tagain: for ( i=0 ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\tval = src[i];\r\n\t\r\n\t\t\tfor ( j=0 ; j\u003Ck ; j\u002B\u002B ) {\r\n\t\t\t\tif ( out[j] === val ) {\r\n\t\t\t\t\tcontinue again;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\tout.push( val );\r\n\t\t\tk\u002B\u002B;\r\n\t\t}\r\n\t\r\n\t\treturn out;\r\n\t};\r\n\t\r\n\t// Surprisingly this is faster than [].concat.apply\r\n\t// https://jsperf.com/flatten-an-array-loop-vs-reduce/2\r\n\tvar _flatten = function (out, val) {\r\n\t\tif (Array.isArray(val)) {\r\n\t\t\tfor (var i=0 ; i\u003Cval.length ; i\u002B\u002B) {\r\n\t\t\t\t_flatten(out, val[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tout.push(val);\r\n\t\t}\r\n\t \r\n\t\treturn out;\r\n\t}\r\n\t\r\n\tvar _includes = function (search, start) {\r\n\t\tif (start === undefined) {\r\n\t\t\tstart = 0;\r\n\t\t}\r\n\t\r\n\t\treturn this.indexOf(search, start) !== -1;\t\r\n\t};\r\n\t\r\n\t// Array.isArray polyfill.\r\n\t// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray\r\n\tif (! Array.isArray) {\r\n\t Array.isArray = function(arg) {\r\n\t return Object.prototype.toString.call(arg) === \u0027[object Array]\u0027;\r\n\t };\r\n\t}\r\n\t\r\n\tif (! Array.prototype.includes) {\r\n\t\tArray.prototype.includes = _includes;\r\n\t}\r\n\t\r\n\t// .trim() polyfill\r\n\t// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trim\r\n\tif (!String.prototype.trim) {\r\n\t String.prototype.trim = function () {\r\n\t return this.replace(/^[\\s\\uFEFF\\xA0]\u002B|[\\s\\uFEFF\\xA0]\u002B$/g, \u0027\u0027);\r\n\t };\r\n\t}\r\n\t\r\n\tif (! String.prototype.includes) {\r\n\t\tString.prototype.includes = _includes;\r\n\t}\r\n\t\r\n\t/**\r\n\t * DataTables utility methods\r\n\t * \r\n\t * This namespace provides helper methods that DataTables uses internally to\r\n\t * create a DataTable, but which are not exclusively used only for DataTables.\r\n\t * These methods can be used by extension authors to save the duplication of\r\n\t * code.\r\n\t *\r\n\t * @namespace\r\n\t */\r\n\tDataTable.util = {\r\n\t\t/**\r\n\t\t * Throttle the calls to a function. Arguments and context are maintained\r\n\t\t * for the throttled function.\r\n\t\t *\r\n\t\t * @param {function} fn Function to be called\r\n\t\t * @param {integer} freq Call frequency in mS\r\n\t\t * @return {function} Wrapped function\r\n\t\t */\r\n\t\tthrottle: function ( fn, freq ) {\r\n\t\t\tvar\r\n\t\t\t\tfrequency = freq !== undefined ? freq : 200,\r\n\t\t\t\tlast,\r\n\t\t\t\ttimer;\r\n\t\r\n\t\t\treturn function () {\r\n\t\t\t\tvar\r\n\t\t\t\t\tthat = this,\r\n\t\t\t\t\tnow = \u002Bnew Date(),\r\n\t\t\t\t\targs = arguments;\r\n\t\r\n\t\t\t\tif ( last \u0026\u0026 now \u003C last \u002B frequency ) {\r\n\t\t\t\t\tclearTimeout( timer );\r\n\t\r\n\t\t\t\t\ttimer = setTimeout( function () {\r\n\t\t\t\t\t\tlast = undefined;\r\n\t\t\t\t\t\tfn.apply( that, args );\r\n\t\t\t\t\t}, frequency );\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tlast = now;\r\n\t\t\t\t\tfn.apply( that, args );\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Escape a string such that it can be used in a regular expression\r\n\t\t *\r\n\t\t * @param {string} val string to escape\r\n\t\t * @returns {string} escaped string\r\n\t\t */\r\n\t\tescapeRegex: function ( val ) {\r\n\t\t\treturn val.replace( _re_escape_regex, \u0027\\\\$1\u0027 );\r\n\t\t},\r\n\t\r\n\t\t/**\r\n\t\t * Create a function that will write to a nested object or array\r\n\t\t * @param {*} source JSON notation string\r\n\t\t * @returns Write function\r\n\t\t */\r\n\t\tset: function ( source ) {\r\n\t\t\tif ( $.isPlainObject( source ) ) {\r\n\t\t\t\t/* Unlike get, only the underscore (global) option is used for for\r\n\t\t\t\t * setting data since we don\u0027t know the type here. This is why an object\r\n\t\t\t\t * option is not documented for \u00A7mData\u00A7 (which is read/write), but it is\r\n\t\t\t\t * for \u00A7mRender\u00A7 which is read only.\r\n\t\t\t\t */\r\n\t\t\t\treturn DataTable.util.set( source._ );\r\n\t\t\t}\r\n\t\t\telse if ( source === null ) {\r\n\t\t\t\t// Nothing to do when the data source is null\r\n\t\t\t\treturn function () {};\r\n\t\t\t}\r\n\t\t\telse if ( typeof source === \u0027function\u0027 ) {\r\n\t\t\t\treturn function (data, val, meta) {\r\n\t\t\t\t\tsource( data, \u0027set\u0027, val, meta );\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t\telse if ( typeof source === \u0027string\u0027 \u0026\u0026 (source.indexOf(\u0027.\u0027) !== -1 ||\r\n\t\t\t\t\t source.indexOf(\u0027[\u0027) !== -1 || source.indexOf(\u0027(\u0027) !== -1) )\r\n\t\t\t{\r\n\t\t\t\t// Like the get, we need to get data from a nested object\r\n\t\t\t\tvar setData = function (data, val, src) {\r\n\t\t\t\t\tvar a = _fnSplitObjNotation( src ), b;\r\n\t\t\t\t\tvar aLast = a[a.length-1];\r\n\t\t\t\t\tvar arrayNotation, funcNotation, o, innerSrc;\r\n\t\t\r\n\t\t\t\t\tfor ( var i=0, iLen=a.length-1 ; i\u003CiLen ; i\u002B\u002B ) {\r\n\t\t\t\t\t\t// Protect against prototype pollution\r\n\t\t\t\t\t\tif (a[i] === \u0027__proto__\u0027 || a[i] === \u0027constructor\u0027) {\r\n\t\t\t\t\t\t\tthrow new Error(\u0027Cannot set prototype values\u0027);\r\n\t\t\t\t\t\t}\r\n\t\t\r\n\t\t\t\t\t\t// Check if we are dealing with an array notation request\r\n\t\t\t\t\t\tarrayNotation = a[i].match(__reArray);\r\n\t\t\t\t\t\tfuncNotation = a[i].match(__reFn);\r\n\t\t\r\n\t\t\t\t\t\tif ( arrayNotation ) {\r\n\t\t\t\t\t\t\ta[i] = a[i].replace(__reArray, \u0027\u0027);\r\n\t\t\t\t\t\t\tdata[ a[i] ] = [];\r\n\t\t\r\n\t\t\t\t\t\t\t// Get the remainder of the nested object to set so we can recurse\r\n\t\t\t\t\t\t\tb = a.slice();\r\n\t\t\t\t\t\t\tb.splice( 0, i\u002B1 );\r\n\t\t\t\t\t\t\tinnerSrc = b.join(\u0027.\u0027);\r\n\t\t\r\n\t\t\t\t\t\t\t// Traverse each entry in the array setting the properties requested\r\n\t\t\t\t\t\t\tif ( Array.isArray( val ) ) {\r\n\t\t\t\t\t\t\t\tfor ( var j=0, jLen=val.length ; j\u003CjLen ; j\u002B\u002B ) {\r\n\t\t\t\t\t\t\t\t\to = {};\r\n\t\t\t\t\t\t\t\t\tsetData( o, val[j], innerSrc );\r\n\t\t\t\t\t\t\t\t\tdata[ a[i] ].push( o );\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t// We\u0027ve been asked to save data to an array, but it\r\n\t\t\t\t\t\t\t\t// isn\u0027t array data to be saved. Best that can be done\r\n\t\t\t\t\t\t\t\t// is to just save the value.\r\n\t\t\t\t\t\t\t\tdata[ a[i] ] = val;\r\n\t\t\t\t\t\t\t}\r\n\t\t\r\n\t\t\t\t\t\t\t// The inner call to setData has already traversed through the remainder\r\n\t\t\t\t\t\t\t// of the source and has set the data, thus we can exit here\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if ( funcNotation ) {\r\n\t\t\t\t\t\t\t// Function call\r\n\t\t\t\t\t\t\ta[i] = a[i].replace(__reFn, \u0027\u0027);\r\n\t\t\t\t\t\t\tdata = data[ a[i] ]( val );\r\n\t\t\t\t\t\t}\r\n\t\t\r\n\t\t\t\t\t\t// If the nested object doesn\u0027t currently exist - since we are\r\n\t\t\t\t\t\t// trying to set the value - create it\r\n\t\t\t\t\t\tif ( data[ a[i] ] === null || data[ a[i] ] === undefined ) {\r\n\t\t\t\t\t\t\tdata[ a[i] ] = {};\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tdata = data[ a[i] ];\r\n\t\t\t\t\t}\r\n\t\t\r\n\t\t\t\t\t// Last item in the input - i.e, the actual set\r\n\t\t\t\t\tif ( aLast.match(__reFn ) ) {\r\n\t\t\t\t\t\t// Function call\r\n\t\t\t\t\t\tdata = data[ aLast.replace(__reFn, \u0027\u0027) ]( val );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\t// If array notation is used, we just want to strip it and use the property name\r\n\t\t\t\t\t\t// and assign the value. If it isn\u0027t used, then we get the result we want anyway\r\n\t\t\t\t\t\tdata[ aLast.replace(__reArray, \u0027\u0027) ] = val;\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\r\n\t\t\t\treturn function (data, val) { // meta is also passed in, but not used\r\n\t\t\t\t\treturn setData( data, val, source );\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// Array or flat object mapping\r\n\t\t\t\treturn function (data, val) { // meta is also passed in, but not used\r\n\t\t\t\t\tdata[source] = val;\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t},\r\n\t\r\n\t\t/**\r\n\t\t * Create a function that will read nested objects from arrays, based on JSON notation\r\n\t\t * @param {*} source JSON notation string\r\n\t\t * @returns Value read\r\n\t\t */\r\n\t\tget: function ( source ) {\r\n\t\t\tif ( $.isPlainObject( source ) ) {\r\n\t\t\t\t// Build an object of get functions, and wrap them in a single call\r\n\t\t\t\tvar o = {};\r\n\t\t\t\t$.each( source, function (key, val) {\r\n\t\t\t\t\tif ( val ) {\r\n\t\t\t\t\t\to[key] = DataTable.util.get( val );\r\n\t\t\t\t\t}\r\n\t\t\t\t} );\r\n\t\t\r\n\t\t\t\treturn function (data, type, row, meta) {\r\n\t\t\t\t\tvar t = o[type] || o._;\r\n\t\t\t\t\treturn t !== undefined ?\r\n\t\t\t\t\t\tt(data, type, row, meta) :\r\n\t\t\t\t\t\tdata;\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t\telse if ( source === null ) {\r\n\t\t\t\t// Give an empty string for rendering / sorting etc\r\n\t\t\t\treturn function (data) { // type, row and meta also passed, but not used\r\n\t\t\t\t\treturn data;\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t\telse if ( typeof source === \u0027function\u0027 ) {\r\n\t\t\t\treturn function (data, type, row, meta) {\r\n\t\t\t\t\treturn source( data, type, row, meta );\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t\telse if ( typeof source === \u0027string\u0027 \u0026\u0026 (source.indexOf(\u0027.\u0027) !== -1 ||\r\n\t\t\t\t\t source.indexOf(\u0027[\u0027) !== -1 || source.indexOf(\u0027(\u0027) !== -1) )\r\n\t\t\t{\r\n\t\t\t\t/* If there is a . in the source string then the data source is in a\r\n\t\t\t\t * nested object so we loop over the data for each level to get the next\r\n\t\t\t\t * level down. On each loop we test for undefined, and if found immediately\r\n\t\t\t\t * return. This allows entire objects to be missing and sDefaultContent to\r\n\t\t\t\t * be used if defined, rather than throwing an error\r\n\t\t\t\t */\r\n\t\t\t\tvar fetchData = function (data, type, src) {\r\n\t\t\t\t\tvar arrayNotation, funcNotation, out, innerSrc;\r\n\t\t\r\n\t\t\t\t\tif ( src !== \u0022\u0022 ) {\r\n\t\t\t\t\t\tvar a = _fnSplitObjNotation( src );\r\n\t\t\r\n\t\t\t\t\t\tfor ( var i=0, iLen=a.length ; i\u003CiLen ; i\u002B\u002B ) {\r\n\t\t\t\t\t\t\t// Check if we are dealing with special notation\r\n\t\t\t\t\t\t\tarrayNotation = a[i].match(__reArray);\r\n\t\t\t\t\t\t\tfuncNotation = a[i].match(__reFn);\r\n\t\t\r\n\t\t\t\t\t\t\tif ( arrayNotation ) {\r\n\t\t\t\t\t\t\t\t// Array notation\r\n\t\t\t\t\t\t\t\ta[i] = a[i].replace(__reArray, \u0027\u0027);\r\n\t\t\r\n\t\t\t\t\t\t\t\t// Condition allows simply [] to be passed in\r\n\t\t\t\t\t\t\t\tif ( a[i] !== \u0022\u0022 ) {\r\n\t\t\t\t\t\t\t\t\tdata = data[ a[i] ];\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tout = [];\r\n\t\t\r\n\t\t\t\t\t\t\t\t// Get the remainder of the nested object to get\r\n\t\t\t\t\t\t\t\ta.splice( 0, i\u002B1 );\r\n\t\t\t\t\t\t\t\tinnerSrc = a.join(\u0027.\u0027);\r\n\t\t\r\n\t\t\t\t\t\t\t\t// Traverse each entry in the array getting the properties requested\r\n\t\t\t\t\t\t\t\tif ( Array.isArray( data ) ) {\r\n\t\t\t\t\t\t\t\t\tfor ( var j=0, jLen=data.length ; j\u003CjLen ; j\u002B\u002B ) {\r\n\t\t\t\t\t\t\t\t\t\tout.push( fetchData( data[j], type, innerSrc ) );\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\r\n\t\t\t\t\t\t\t\t// If a string is given in between the array notation indicators, that\r\n\t\t\t\t\t\t\t\t// is used to join the strings together, otherwise an array is returned\r\n\t\t\t\t\t\t\t\tvar join = arrayNotation[0].substring(1, arrayNotation[0].length-1);\r\n\t\t\t\t\t\t\t\tdata = (join===\u0022\u0022) ? out : out.join(join);\r\n\t\t\r\n\t\t\t\t\t\t\t\t// The inner call to fetchData has already traversed through the remainder\r\n\t\t\t\t\t\t\t\t// of the source requested, so we exit from the loop\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if ( funcNotation ) {\r\n\t\t\t\t\t\t\t\t// Function call\r\n\t\t\t\t\t\t\t\ta[i] = a[i].replace(__reFn, \u0027\u0027);\r\n\t\t\t\t\t\t\t\tdata = data[ a[i] ]();\r\n\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\r\n\t\t\t\t\t\t\tif ( data === null || data[ a[i] ] === undefined ) {\r\n\t\t\t\t\t\t\t\treturn undefined;\r\n\t\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\t\tdata = data[ a[i] ];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\r\n\t\t\t\t\treturn data;\r\n\t\t\t\t};\r\n\t\t\r\n\t\t\t\treturn function (data, type) { // row and meta also passed, but not used\r\n\t\t\t\t\treturn fetchData( data, type, source );\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// Array or flat object mapping\r\n\t\t\t\treturn function (data, type) { // row and meta also passed, but not used\r\n\t\t\t\t\treturn data[source];\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Create a mapping object that allows camel case parameters to be looked up\r\n\t * for their Hungarian counterparts. The mapping is stored in a private\r\n\t * parameter called \u00A7_hungarianMap\u00A7 which can be accessed on the source object.\r\n\t * @param {object} o\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnHungarianMap ( o )\r\n\t{\r\n\t\tvar\r\n\t\t\thungarian = \u0027a aa ai ao as b fn i m o s \u0027,\r\n\t\t\tmatch,\r\n\t\t\tnewKey,\r\n\t\t\tmap = {};\r\n\t\r\n\t\t$.each( o, function (key, val) {\r\n\t\t\tmatch = key.match(/^([^A-Z]\u002B?)([A-Z])/);\r\n\t\r\n\t\t\tif ( match \u0026\u0026 hungarian.indexOf(match[1]\u002B\u0027 \u0027) !== -1 )\r\n\t\t\t{\r\n\t\t\t\tnewKey = key.replace( match[0], match[2].toLowerCase() );\r\n\t\t\t\tmap[ newKey ] = key;\r\n\t\r\n\t\t\t\tif ( match[1] === \u0027o\u0027 )\r\n\t\t\t\t{\r\n\t\t\t\t\t_fnHungarianMap( o[key] );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} );\r\n\t\r\n\t\to._hungarianMap = map;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Convert from camel case parameters to Hungarian, based on a Hungarian map\r\n\t * created by _fnHungarianMap.\r\n\t * @param {object} src The model object which holds all parameters that can be\r\n\t * mapped.\r\n\t * @param {object} user The object to convert from camel case to Hungarian.\r\n\t * @param {boolean} force When set to \u00A7true\u00A7, properties which already have a\r\n\t * Hungarian value in the \u00A7user\u00A7 object will be overwritten. Otherwise they\r\n\t * won\u0027t be.\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnCamelToHungarian ( src, user, force )\r\n\t{\r\n\t\tif ( ! src._hungarianMap ) {\r\n\t\t\t_fnHungarianMap( src );\r\n\t\t}\r\n\t\r\n\t\tvar hungarianKey;\r\n\t\r\n\t\t$.each( user, function (key, val) {\r\n\t\t\thungarianKey = src._hungarianMap[ key ];\r\n\t\r\n\t\t\tif ( hungarianKey !== undefined \u0026\u0026 (force || user[hungarianKey] === undefined) )\r\n\t\t\t{\r\n\t\t\t\t// For objects, we need to buzz down into the object to copy parameters\r\n\t\t\t\tif ( hungarianKey.charAt(0) === \u0027o\u0027 )\r\n\t\t\t\t{\r\n\t\t\t\t\t// Copy the camelCase options over to the hungarian\r\n\t\t\t\t\tif ( ! user[ hungarianKey ] ) {\r\n\t\t\t\t\t\tuser[ hungarianKey ] = {};\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$.extend( true, user[hungarianKey], user[key] );\r\n\t\r\n\t\t\t\t\t_fnCamelToHungarian( src[hungarianKey], user[hungarianKey], force );\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tuser[hungarianKey] = user[ key ];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Language compatibility - when certain options are given, and others aren\u0027t, we\r\n\t * need to duplicate the values over, in order to provide backwards compatibility\r\n\t * with older language files.\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnLanguageCompat( lang )\r\n\t{\r\n\t\t// Note the use of the Hungarian notation for the parameters in this method as\r\n\t\t// this is called after the mapping of camelCase to Hungarian\r\n\t\tvar defaults = DataTable.defaults.oLanguage;\r\n\t\r\n\t\t// Default mapping\r\n\t\tvar defaultDecimal = defaults.sDecimal;\r\n\t\tif ( defaultDecimal ) {\r\n\t\t\t_addNumericSort( defaultDecimal );\r\n\t\t}\r\n\t\r\n\t\tif ( lang ) {\r\n\t\t\tvar zeroRecords = lang.sZeroRecords;\r\n\t\r\n\t\t\t// Backwards compatibility - if there is no sEmptyTable given, then use the same as\r\n\t\t\t// sZeroRecords - assuming that is given.\r\n\t\t\tif ( ! lang.sEmptyTable \u0026\u0026 zeroRecords \u0026\u0026\r\n\t\t\t\tdefaults.sEmptyTable === \u0022No data available in table\u0022 )\r\n\t\t\t{\r\n\t\t\t\t_fnMap( lang, lang, \u0027sZeroRecords\u0027, \u0027sEmptyTable\u0027 );\r\n\t\t\t}\r\n\t\r\n\t\t\t// Likewise with loading records\r\n\t\t\tif ( ! lang.sLoadingRecords \u0026\u0026 zeroRecords \u0026\u0026\r\n\t\t\t\tdefaults.sLoadingRecords === \u0022Loading...\u0022 )\r\n\t\t\t{\r\n\t\t\t\t_fnMap( lang, lang, \u0027sZeroRecords\u0027, \u0027sLoadingRecords\u0027 );\r\n\t\t\t}\r\n\t\r\n\t\t\t// Old parameter name of the thousands separator mapped onto the new\r\n\t\t\tif ( lang.sInfoThousands ) {\r\n\t\t\t\tlang.sThousands = lang.sInfoThousands;\r\n\t\t\t}\r\n\t\r\n\t\t\tvar decimal = lang.sDecimal;\r\n\t\t\tif ( decimal \u0026\u0026 defaultDecimal !== decimal ) {\r\n\t\t\t\t_addNumericSort( decimal );\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Map one parameter onto another\r\n\t * @param {object} o Object to map\r\n\t * @param {*} knew The new parameter name\r\n\t * @param {*} old The old parameter name\r\n\t */\r\n\tvar _fnCompatMap = function ( o, knew, old ) {\r\n\t\tif ( o[ knew ] !== undefined ) {\r\n\t\t\to[ old ] = o[ knew ];\r\n\t\t}\r\n\t};\r\n\t\r\n\t\r\n\t/**\r\n\t * Provide backwards compatibility for the main DT options. Note that the new\r\n\t * options are mapped onto the old parameters, so this is an external interface\r\n\t * change only.\r\n\t * @param {object} init Object to map\r\n\t */\r\n\tfunction _fnCompatOpts ( init )\r\n\t{\r\n\t\t_fnCompatMap( init, \u0027ordering\u0027, \u0027bSort\u0027 );\r\n\t\t_fnCompatMap( init, \u0027orderMulti\u0027, \u0027bSortMulti\u0027 );\r\n\t\t_fnCompatMap( init, \u0027orderClasses\u0027, \u0027bSortClasses\u0027 );\r\n\t\t_fnCompatMap( init, \u0027orderCellsTop\u0027, \u0027bSortCellsTop\u0027 );\r\n\t\t_fnCompatMap( init, \u0027order\u0027, \u0027aaSorting\u0027 );\r\n\t\t_fnCompatMap( init, \u0027orderFixed\u0027, \u0027aaSortingFixed\u0027 );\r\n\t\t_fnCompatMap( init, \u0027paging\u0027, \u0027bPaginate\u0027 );\r\n\t\t_fnCompatMap( init, \u0027pagingType\u0027, \u0027sPaginationType\u0027 );\r\n\t\t_fnCompatMap( init, \u0027pageLength\u0027, \u0027iDisplayLength\u0027 );\r\n\t\t_fnCompatMap( init, \u0027searching\u0027, \u0027bFilter\u0027 );\r\n\t\r\n\t\t// Boolean initialisation of x-scrolling\r\n\t\tif ( typeof init.sScrollX === \u0027boolean\u0027 ) {\r\n\t\t\tinit.sScrollX = init.sScrollX ? \u0027100%\u0027 : \u0027\u0027;\r\n\t\t}\r\n\t\tif ( typeof init.scrollX === \u0027boolean\u0027 ) {\r\n\t\t\tinit.scrollX = init.scrollX ? \u0027100%\u0027 : \u0027\u0027;\r\n\t\t}\r\n\t\r\n\t\t// Column search objects are in an array, so it needs to be converted\r\n\t\t// element by element\r\n\t\tvar searchCols = init.aoSearchCols;\r\n\t\r\n\t\tif ( searchCols ) {\r\n\t\t\tfor ( var i=0, ien=searchCols.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t\tif ( searchCols[i] ) {\r\n\t\t\t\t\t_fnCamelToHungarian( DataTable.models.oSearch, searchCols[i] );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Provide backwards compatibility for column options. Note that the new options\r\n\t * are mapped onto the old parameters, so this is an external interface change\r\n\t * only.\r\n\t * @param {object} init Object to map\r\n\t */\r\n\tfunction _fnCompatCols ( init )\r\n\t{\r\n\t\t_fnCompatMap( init, \u0027orderable\u0027, \u0027bSortable\u0027 );\r\n\t\t_fnCompatMap( init, \u0027orderData\u0027, \u0027aDataSort\u0027 );\r\n\t\t_fnCompatMap( init, \u0027orderSequence\u0027, \u0027asSorting\u0027 );\r\n\t\t_fnCompatMap( init, \u0027orderDataType\u0027, \u0027sortDataType\u0027 );\r\n\t\r\n\t\t// orderData can be given as an integer\r\n\t\tvar dataSort = init.aDataSort;\r\n\t\tif ( typeof dataSort === \u0027number\u0027 \u0026\u0026 ! Array.isArray( dataSort ) ) {\r\n\t\t\tinit.aDataSort = [ dataSort ];\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Browser feature detection for capabilities, quirks\r\n\t * @param {object} settings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnBrowserDetect( settings )\r\n\t{\r\n\t\t// We don\u0027t need to do this every time DataTables is constructed, the values\r\n\t\t// calculated are specific to the browser and OS configuration which we\r\n\t\t// don\u0027t expect to change between initialisations\r\n\t\tif ( ! DataTable.__browser ) {\r\n\t\t\tvar browser = {};\r\n\t\t\tDataTable.__browser = browser;\r\n\t\r\n\t\t\t// Scrolling feature / quirks detection\r\n\t\t\tvar n = $(\u0027\u003Cdiv/\u003E\u0027)\r\n\t\t\t\t.css( {\r\n\t\t\t\t\tposition: \u0027fixed\u0027,\r\n\t\t\t\t\ttop: 0,\r\n\t\t\t\t\tleft: $(window).scrollLeft()*-1, // allow for scrolling\r\n\t\t\t\t\theight: 1,\r\n\t\t\t\t\twidth: 1,\r\n\t\t\t\t\toverflow: \u0027hidden\u0027\r\n\t\t\t\t} )\r\n\t\t\t\t.append(\r\n\t\t\t\t\t$(\u0027\u003Cdiv/\u003E\u0027)\r\n\t\t\t\t\t\t.css( {\r\n\t\t\t\t\t\t\tposition: \u0027absolute\u0027,\r\n\t\t\t\t\t\t\ttop: 1,\r\n\t\t\t\t\t\t\tleft: 1,\r\n\t\t\t\t\t\t\twidth: 100,\r\n\t\t\t\t\t\t\toverflow: \u0027scroll\u0027\r\n\t\t\t\t\t\t} )\r\n\t\t\t\t\t\t.append(\r\n\t\t\t\t\t\t\t$(\u0027\u003Cdiv/\u003E\u0027)\r\n\t\t\t\t\t\t\t\t.css( {\r\n\t\t\t\t\t\t\t\t\twidth: \u0027100%\u0027,\r\n\t\t\t\t\t\t\t\t\theight: 10\r\n\t\t\t\t\t\t\t\t} )\r\n\t\t\t\t\t\t)\r\n\t\t\t\t)\r\n\t\t\t\t.appendTo( \u0027body\u0027 );\r\n\t\r\n\t\t\tvar outer = n.children();\r\n\t\t\tvar inner = outer.children();\r\n\t\r\n\t\t\t// Numbers below, in order, are:\r\n\t\t\t// inner.offsetWidth, inner.clientWidth, outer.offsetWidth, outer.clientWidth\r\n\t\t\t//\r\n\t\t\t// IE6 XP: 100 100 100 83\r\n\t\t\t// IE7 Vista: 100 100 100 83\r\n\t\t\t// IE 8\u002B Windows: 83 83 100 83\r\n\t\t\t// Evergreen Windows: 83 83 100 83\r\n\t\t\t// Evergreen Mac with scrollbars: 85 85 100 85\r\n\t\t\t// Evergreen Mac without scrollbars: 100 100 100 100\r\n\t\r\n\t\t\t// Get scrollbar width\r\n\t\t\tbrowser.barWidth = outer[0].offsetWidth - outer[0].clientWidth;\r\n\t\r\n\t\t\t// IE6/7 will oversize a width 100% element inside a scrolling element, to\r\n\t\t\t// include the width of the scrollbar, while other browsers ensure the inner\r\n\t\t\t// element is contained without forcing scrolling\r\n\t\t\tbrowser.bScrollOversize = inner[0].offsetWidth === 100 \u0026\u0026 outer[0].clientWidth !== 100;\r\n\t\r\n\t\t\t// In rtl text layout, some browsers (most, but not all) will place the\r\n\t\t\t// scrollbar on the left, rather than the right.\r\n\t\t\tbrowser.bScrollbarLeft = Math.round( inner.offset().left ) !== 1;\r\n\t\r\n\t\t\t// IE8- don\u0027t provide height and width for getBoundingClientRect\r\n\t\t\tbrowser.bBounding = n[0].getBoundingClientRect().width ? true : false;\r\n\t\r\n\t\t\tn.remove();\r\n\t\t}\r\n\t\r\n\t\t$.extend( settings.oBrowser, DataTable.__browser );\r\n\t\tsettings.oScroll.iBarWidth = DataTable.__browser.barWidth;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Array.prototype reduce[Right] method, used for browsers which don\u0027t support\r\n\t * JS 1.6. Done this way to reduce code size, since we iterate either way\r\n\t * @param {object} settings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnReduce ( that, fn, init, start, end, inc )\r\n\t{\r\n\t\tvar\r\n\t\t\ti = start,\r\n\t\t\tvalue,\r\n\t\t\tisSet = false;\r\n\t\r\n\t\tif ( init !== undefined ) {\r\n\t\t\tvalue = init;\r\n\t\t\tisSet = true;\r\n\t\t}\r\n\t\r\n\t\twhile ( i !== end ) {\r\n\t\t\tif ( ! that.hasOwnProperty(i) ) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\r\n\t\t\tvalue = isSet ?\r\n\t\t\t\tfn( value, that[i], i, that ) :\r\n\t\t\t\tthat[i];\r\n\t\r\n\t\t\tisSet = true;\r\n\t\t\ti \u002B= inc;\r\n\t\t}\r\n\t\r\n\t\treturn value;\r\n\t}\r\n\t\r\n\t/**\r\n\t * Add a column to the list used for the table with default values\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {node} nTh The th element for this column\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnAddColumn( oSettings, nTh )\r\n\t{\r\n\t\t// Add column to aoColumns array\r\n\t\tvar oDefaults = DataTable.defaults.column;\r\n\t\tvar iCol = oSettings.aoColumns.length;\r\n\t\tvar oCol = $.extend( {}, DataTable.models.oColumn, oDefaults, {\r\n\t\t\t\u0022nTh\u0022: nTh ? nTh : document.createElement(\u0027th\u0027),\r\n\t\t\t\u0022sTitle\u0022: oDefaults.sTitle ? oDefaults.sTitle : nTh ? nTh.innerHTML : \u0027\u0027,\r\n\t\t\t\u0022aDataSort\u0022: oDefaults.aDataSort ? oDefaults.aDataSort : [iCol],\r\n\t\t\t\u0022mData\u0022: oDefaults.mData ? oDefaults.mData : iCol,\r\n\t\t\tidx: iCol\r\n\t\t} );\r\n\t\toSettings.aoColumns.push( oCol );\r\n\t\r\n\t\t// Add search object for column specific search. Note that the \u00A7searchCols[ iCol ]\u00A7\r\n\t\t// passed into extend can be undefined. This allows the user to give a default\r\n\t\t// with only some of the parameters defined, and also not give a default\r\n\t\tvar searchCols = oSettings.aoPreSearchCols;\r\n\t\tsearchCols[ iCol ] = $.extend( {}, DataTable.models.oSearch, searchCols[ iCol ] );\r\n\t\r\n\t\t// Use the default column options function to initialise classes etc\r\n\t\t_fnColumnOptions( oSettings, iCol, $(nTh).data() );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Apply options for a column\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {int} iCol column index to consider\r\n\t * @param {object} oOptions object with sType, bVisible and bSearchable etc\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnColumnOptions( oSettings, iCol, oOptions )\r\n\t{\r\n\t\tvar oCol = oSettings.aoColumns[ iCol ];\r\n\t\tvar oClasses = oSettings.oClasses;\r\n\t\tvar th = $(oCol.nTh);\r\n\t\r\n\t\t// Try to get width information from the DOM. We can\u0027t get it from CSS\r\n\t\t// as we\u0027d need to parse the CSS stylesheet. \u00A7width\u00A7 option can override\r\n\t\tif ( ! oCol.sWidthOrig ) {\r\n\t\t\t// Width attribute\r\n\t\t\toCol.sWidthOrig = th.attr(\u0027width\u0027) || null;\r\n\t\r\n\t\t\t// Style attribute\r\n\t\t\tvar t = (th.attr(\u0027style\u0027) || \u0027\u0027).match(/width:\\s*(\\d\u002B[pxem%]\u002B)/);\r\n\t\t\tif ( t ) {\r\n\t\t\t\toCol.sWidthOrig = t[1];\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t/* User specified column options */\r\n\t\tif ( oOptions !== undefined \u0026\u0026 oOptions !== null )\r\n\t\t{\r\n\t\t\t// Backwards compatibility\r\n\t\t\t_fnCompatCols( oOptions );\r\n\t\r\n\t\t\t// Map camel case parameters to their Hungarian counterparts\r\n\t\t\t_fnCamelToHungarian( DataTable.defaults.column, oOptions, true );\r\n\t\r\n\t\t\t/* Backwards compatibility for mDataProp */\r\n\t\t\tif ( oOptions.mDataProp !== undefined \u0026\u0026 !oOptions.mData )\r\n\t\t\t{\r\n\t\t\t\toOptions.mData = oOptions.mDataProp;\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( oOptions.sType )\r\n\t\t\t{\r\n\t\t\t\toCol._sManualType = oOptions.sType;\r\n\t\t\t}\r\n\t\r\n\t\t\t// \u00A7class\u00A7 is a reserved word in Javascript, so we need to provide\r\n\t\t\t// the ability to use a valid name for the camel case input\r\n\t\t\tif ( oOptions.className \u0026\u0026 ! oOptions.sClass )\r\n\t\t\t{\r\n\t\t\t\toOptions.sClass = oOptions.className;\r\n\t\t\t}\r\n\t\t\tif ( oOptions.sClass ) {\r\n\t\t\t\tth.addClass( oOptions.sClass );\r\n\t\t\t}\r\n\t\r\n\t\t\t$.extend( oCol, oOptions );\r\n\t\t\t_fnMap( oCol, oOptions, \u0022sWidth\u0022, \u0022sWidthOrig\u0022 );\r\n\t\r\n\t\t\t/* iDataSort to be applied (backwards compatibility), but aDataSort will take\r\n\t\t\t * priority if defined\r\n\t\t\t */\r\n\t\t\tif ( oOptions.iDataSort !== undefined )\r\n\t\t\t{\r\n\t\t\t\toCol.aDataSort = [ oOptions.iDataSort ];\r\n\t\t\t}\r\n\t\t\t_fnMap( oCol, oOptions, \u0022aDataSort\u0022 );\r\n\t\t}\r\n\t\r\n\t\t/* Cache the data get and set functions for speed */\r\n\t\tvar mDataSrc = oCol.mData;\r\n\t\tvar mData = _fnGetObjectDataFn( mDataSrc );\r\n\t\tvar mRender = oCol.mRender ? _fnGetObjectDataFn( oCol.mRender ) : null;\r\n\t\r\n\t\tvar attrTest = function( src ) {\r\n\t\t\treturn typeof src === \u0027string\u0027 \u0026\u0026 src.indexOf(\u0027@\u0027) !== -1;\r\n\t\t};\r\n\t\toCol._bAttrSrc = $.isPlainObject( mDataSrc ) \u0026\u0026 (\r\n\t\t\tattrTest(mDataSrc.sort) || attrTest(mDataSrc.type) || attrTest(mDataSrc.filter)\r\n\t\t);\r\n\t\toCol._setter = null;\r\n\t\r\n\t\toCol.fnGetData = function (rowData, type, meta) {\r\n\t\t\tvar innerData = mData( rowData, type, undefined, meta );\r\n\t\r\n\t\t\treturn mRender \u0026\u0026 type ?\r\n\t\t\t\tmRender( innerData, type, rowData, meta ) :\r\n\t\t\t\tinnerData;\r\n\t\t};\r\n\t\toCol.fnSetData = function ( rowData, val, meta ) {\r\n\t\t\treturn _fnSetObjectDataFn( mDataSrc )( rowData, val, meta );\r\n\t\t};\r\n\t\r\n\t\t// Indicate if DataTables should read DOM data as an object or array\r\n\t\t// Used in _fnGetRowElements\r\n\t\tif ( typeof mDataSrc !== \u0027number\u0027 ) {\r\n\t\t\toSettings._rowReadObject = true;\r\n\t\t}\r\n\t\r\n\t\t/* Feature sorting overrides column specific when off */\r\n\t\tif ( !oSettings.oFeatures.bSort )\r\n\t\t{\r\n\t\t\toCol.bSortable = false;\r\n\t\t\tth.addClass( oClasses.sSortableNone ); // Have to add class here as order event isn\u0027t called\r\n\t\t}\r\n\t\r\n\t\t/* Check that the class assignment is correct for sorting */\r\n\t\tvar bAsc = $.inArray(\u0027asc\u0027, oCol.asSorting) !== -1;\r\n\t\tvar bDesc = $.inArray(\u0027desc\u0027, oCol.asSorting) !== -1;\r\n\t\tif ( !oCol.bSortable || (!bAsc \u0026\u0026 !bDesc) )\r\n\t\t{\r\n\t\t\toCol.sSortingClass = oClasses.sSortableNone;\r\n\t\t\toCol.sSortingClassJUI = \u0022\u0022;\r\n\t\t}\r\n\t\telse if ( bAsc \u0026\u0026 !bDesc )\r\n\t\t{\r\n\t\t\toCol.sSortingClass = oClasses.sSortableAsc;\r\n\t\t\toCol.sSortingClassJUI = oClasses.sSortJUIAscAllowed;\r\n\t\t}\r\n\t\telse if ( !bAsc \u0026\u0026 bDesc )\r\n\t\t{\r\n\t\t\toCol.sSortingClass = oClasses.sSortableDesc;\r\n\t\t\toCol.sSortingClassJUI = oClasses.sSortJUIDescAllowed;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\toCol.sSortingClass = oClasses.sSortable;\r\n\t\t\toCol.sSortingClassJUI = oClasses.sSortJUI;\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Adjust the table column widths for new data. Note: you would probably want to\r\n\t * do a redraw after calling this function!\r\n\t * @param {object} settings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnAdjustColumnSizing ( settings )\r\n\t{\r\n\t\t/* Not interested in doing column width calculation if auto-width is disabled */\r\n\t\tif ( settings.oFeatures.bAutoWidth !== false )\r\n\t\t{\r\n\t\t\tvar columns = settings.aoColumns;\r\n\t\r\n\t\t\t_fnCalculateColumnWidths( settings );\r\n\t\t\tfor ( var i=0 , iLen=columns.length ; i\u003CiLen ; i\u002B\u002B )\r\n\t\t\t{\r\n\t\t\t\tcolumns[i].nTh.style.width = columns[i].sWidth;\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\tvar scroll = settings.oScroll;\r\n\t\tif ( scroll.sY !== \u0027\u0027 || scroll.sX !== \u0027\u0027)\r\n\t\t{\r\n\t\t\t_fnScrollDraw( settings );\r\n\t\t}\r\n\t\r\n\t\t_fnCallbackFire( settings, null, \u0027column-sizing\u0027, [settings] );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Convert the index of a visible column to the index in the data array (take account\r\n\t * of hidden columns)\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {int} iMatch Visible column index to lookup\r\n\t * @returns {int} i the data index\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnVisibleToColumnIndex( oSettings, iMatch )\r\n\t{\r\n\t\tvar aiVis = _fnGetColumns( oSettings, \u0027bVisible\u0027 );\r\n\t\r\n\t\treturn typeof aiVis[iMatch] === \u0027number\u0027 ?\r\n\t\t\taiVis[iMatch] :\r\n\t\t\tnull;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Convert the index of an index in the data array and convert it to the visible\r\n\t * column index (take account of hidden columns)\r\n\t * @param {int} iMatch Column index to lookup\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @returns {int} i the data index\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnColumnIndexToVisible( oSettings, iMatch )\r\n\t{\r\n\t\tvar aiVis = _fnGetColumns( oSettings, \u0027bVisible\u0027 );\r\n\t\tvar iPos = $.inArray( iMatch, aiVis );\r\n\t\r\n\t\treturn iPos !== -1 ? iPos : null;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Get the number of visible columns\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @returns {int} i the number of visible columns\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnVisbleColumns( oSettings )\r\n\t{\r\n\t\tvar vis = 0;\r\n\t\r\n\t\t// No reduce in IE8, use a loop for now\r\n\t\t$.each( oSettings.aoColumns, function ( i, col ) {\r\n\t\t\tif ( col.bVisible \u0026\u0026 $(col.nTh).css(\u0027display\u0027) !== \u0027none\u0027 ) {\r\n\t\t\t\tvis\u002B\u002B;\r\n\t\t\t}\r\n\t\t} );\r\n\t\r\n\t\treturn vis;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Get an array of column indexes that match a given property\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {string} sParam Parameter in aoColumns to look for - typically\r\n\t * bVisible or bSearchable\r\n\t * @returns {array} Array of indexes with matched properties\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnGetColumns( oSettings, sParam )\r\n\t{\r\n\t\tvar a = [];\r\n\t\r\n\t\t$.map( oSettings.aoColumns, function(val, i) {\r\n\t\t\tif ( val[sParam] ) {\r\n\t\t\t\ta.push( i );\r\n\t\t\t}\r\n\t\t} );\r\n\t\r\n\t\treturn a;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Calculate the \u0027type\u0027 of a column\r\n\t * @param {object} settings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnColumnTypes ( settings )\r\n\t{\r\n\t\tvar columns = settings.aoColumns;\r\n\t\tvar data = settings.aoData;\r\n\t\tvar types = DataTable.ext.type.detect;\r\n\t\tvar i, ien, j, jen, k, ken;\r\n\t\tvar col, cell, detectedType, cache;\r\n\t\r\n\t\t// For each column, spin over the \r\n\t\tfor ( i=0, ien=columns.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\tcol = columns[i];\r\n\t\t\tcache = [];\r\n\t\r\n\t\t\tif ( ! col.sType \u0026\u0026 col._sManualType ) {\r\n\t\t\t\tcol.sType = col._sManualType;\r\n\t\t\t}\r\n\t\t\telse if ( ! col.sType ) {\r\n\t\t\t\tfor ( j=0, jen=types.length ; j\u003Cjen ; j\u002B\u002B ) {\r\n\t\t\t\t\tfor ( k=0, ken=data.length ; k\u003Cken ; k\u002B\u002B ) {\r\n\t\t\t\t\t\t// Use a cache array so we only need to get the type data\r\n\t\t\t\t\t\t// from the formatter once (when using multiple detectors)\r\n\t\t\t\t\t\tif ( cache[k] === undefined ) {\r\n\t\t\t\t\t\t\tcache[k] = _fnGetCellData( settings, k, i, \u0027type\u0027 );\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\tdetectedType = types[j]( cache[k], settings );\r\n\t\r\n\t\t\t\t\t\t// If null, then this type can\u0027t apply to this column, so\r\n\t\t\t\t\t\t// rather than testing all cells, break out. There is an\r\n\t\t\t\t\t\t// exception for the last type which is \u00A7html\u00A7. We need to\r\n\t\t\t\t\t\t// scan all rows since it is possible to mix string and HTML\r\n\t\t\t\t\t\t// types\r\n\t\t\t\t\t\tif ( ! detectedType \u0026\u0026 j !== types.length-1 ) {\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\t// Only a single match is needed for html type since it is\r\n\t\t\t\t\t\t// bottom of the pile and very similar to string - but it\r\n\t\t\t\t\t\t// must not be empty\r\n\t\t\t\t\t\tif ( detectedType === \u0027html\u0027 \u0026\u0026 ! _empty(cache[k]) ) {\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t// Type is valid for all data points in the column - use this\r\n\t\t\t\t\t// type\r\n\t\t\t\t\tif ( detectedType ) {\r\n\t\t\t\t\t\tcol.sType = detectedType;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Fall back - if no type was detected, always use string\r\n\t\t\t\tif ( ! col.sType ) {\r\n\t\t\t\t\tcol.sType = \u0027string\u0027;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Take the column definitions and static columns arrays and calculate how\r\n\t * they relate to column indexes. The callback function will then apply the\r\n\t * definition found for a column to a suitable configuration object.\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {array} aoColDefs The aoColumnDefs array that is to be applied\r\n\t * @param {array} aoCols The aoColumns array that defines columns individually\r\n\t * @param {function} fn Callback function - takes two parameters, the calculated\r\n\t * column index and the definition for that column.\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnApplyColumnDefs( oSettings, aoColDefs, aoCols, fn )\r\n\t{\r\n\t\tvar i, iLen, j, jLen, k, kLen, def;\r\n\t\tvar columns = oSettings.aoColumns;\r\n\t\r\n\t\t// Column definitions with aTargets\r\n\t\tif ( aoColDefs )\r\n\t\t{\r\n\t\t\t/* Loop over the definitions array - loop in reverse so first instance has priority */\r\n\t\t\tfor ( i=aoColDefs.length-1 ; i\u003E=0 ; i-- )\r\n\t\t\t{\r\n\t\t\t\tdef = aoColDefs[i];\r\n\t\r\n\t\t\t\t/* Each definition can target multiple columns, as it is an array */\r\n\t\t\t\tvar aTargets = def.targets !== undefined ?\r\n\t\t\t\t\tdef.targets :\r\n\t\t\t\t\tdef.aTargets;\r\n\t\r\n\t\t\t\tif ( ! Array.isArray( aTargets ) )\r\n\t\t\t\t{\r\n\t\t\t\t\taTargets = [ aTargets ];\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tfor ( j=0, jLen=aTargets.length ; j\u003CjLen ; j\u002B\u002B )\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( typeof aTargets[j] === \u0027number\u0027 \u0026\u0026 aTargets[j] \u003E= 0 )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t/* Add columns that we don\u0027t yet know about */\r\n\t\t\t\t\t\twhile( columns.length \u003C= aTargets[j] )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t_fnAddColumn( oSettings );\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\t/* Integer, basic index */\r\n\t\t\t\t\t\tfn( aTargets[j], def );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( typeof aTargets[j] === \u0027number\u0027 \u0026\u0026 aTargets[j] \u003C 0 )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t/* Negative integer, right to left column counting */\r\n\t\t\t\t\t\tfn( columns.length\u002BaTargets[j], def );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( typeof aTargets[j] === \u0027string\u0027 )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t/* Class name matching on TH element */\r\n\t\t\t\t\t\tfor ( k=0, kLen=columns.length ; k\u003CkLen ; k\u002B\u002B )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif ( aTargets[j] == \u0022_all\u0022 ||\r\n\t\t\t\t\t\t\t $(columns[k].nTh).hasClass( aTargets[j] ) )\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tfn( k, def );\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t// Statically defined columns array\r\n\t\tif ( aoCols )\r\n\t\t{\r\n\t\t\tfor ( i=0, iLen=aoCols.length ; i\u003CiLen ; i\u002B\u002B )\r\n\t\t\t{\r\n\t\t\t\tfn( i, aoCols[i] );\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t/**\r\n\t * Add a data array to the table, creating DOM node etc. This is the parallel to\r\n\t * _fnGatherData, but for adding rows from a Javascript source, rather than a\r\n\t * DOM source.\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {array} aData data array to be added\r\n\t * @param {node} [nTr] TR element to add to the table - optional. If not given,\r\n\t * DataTables will create a row automatically\r\n\t * @param {array} [anTds] Array of TD|TH elements for the row - must be given\r\n\t * if nTr is.\r\n\t * @returns {int} \u003E=0 if successful (index of new aoData entry), -1 if failed\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnAddData ( oSettings, aDataIn, nTr, anTds )\r\n\t{\r\n\t\t/* Create the object for storing information about this new row */\r\n\t\tvar iRow = oSettings.aoData.length;\r\n\t\tvar oData = $.extend( true, {}, DataTable.models.oRow, {\r\n\t\t\tsrc: nTr ? \u0027dom\u0027 : \u0027data\u0027,\r\n\t\t\tidx: iRow\r\n\t\t} );\r\n\t\r\n\t\toData._aData = aDataIn;\r\n\t\toSettings.aoData.push( oData );\r\n\t\r\n\t\t/* Create the cells */\r\n\t\tvar nTd, sThisType;\r\n\t\tvar columns = oSettings.aoColumns;\r\n\t\r\n\t\t// Invalidate the column types as the new data needs to be revalidated\r\n\t\tfor ( var i=0, iLen=columns.length ; i\u003CiLen ; i\u002B\u002B )\r\n\t\t{\r\n\t\t\tcolumns[i].sType = null;\r\n\t\t}\r\n\t\r\n\t\t/* Add to the display array */\r\n\t\toSettings.aiDisplayMaster.push( iRow );\r\n\t\r\n\t\tvar id = oSettings.rowIdFn( aDataIn );\r\n\t\tif ( id !== undefined ) {\r\n\t\t\toSettings.aIds[ id ] = oData;\r\n\t\t}\r\n\t\r\n\t\t/* Create the DOM information, or register it if already present */\r\n\t\tif ( nTr || ! oSettings.oFeatures.bDeferRender )\r\n\t\t{\r\n\t\t\t_fnCreateTr( oSettings, iRow, nTr, anTds );\r\n\t\t}\r\n\t\r\n\t\treturn iRow;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Add one or more TR elements to the table. Generally we\u0027d expect to\r\n\t * use this for reading data from a DOM sourced table, but it could be\r\n\t * used for an TR element. Note that if a TR is given, it is used (i.e.\r\n\t * it is not cloned).\r\n\t * @param {object} settings dataTables settings object\r\n\t * @param {array|node|jQuery} trs The TR element(s) to add to the table\r\n\t * @returns {array} Array of indexes for the added rows\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnAddTr( settings, trs )\r\n\t{\r\n\t\tvar row;\r\n\t\r\n\t\t// Allow an individual node to be passed in\r\n\t\tif ( ! (trs instanceof $) ) {\r\n\t\t\ttrs = $(trs);\r\n\t\t}\r\n\t\r\n\t\treturn trs.map( function (i, el) {\r\n\t\t\trow = _fnGetRowElements( settings, el );\r\n\t\t\treturn _fnAddData( settings, row.data, el, row.cells );\r\n\t\t} );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Take a TR element and convert it to an index in aoData\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {node} n the TR element to find\r\n\t * @returns {int} index if the node is found, null if not\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnNodeToDataIndex( oSettings, n )\r\n\t{\r\n\t\treturn (n._DT_RowIndex!==undefined) ? n._DT_RowIndex : null;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Take a TD element and convert it into a column data index (not the visible index)\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {int} iRow The row number the TD/TH can be found in\r\n\t * @param {node} n The TD/TH element to find\r\n\t * @returns {int} index if the node is found, -1 if not\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnNodeToColumnIndex( oSettings, iRow, n )\r\n\t{\r\n\t\treturn $.inArray( n, oSettings.aoData[ iRow ].anCells );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Get the data for a given cell from the internal cache, taking into account data mapping\r\n\t * @param {object} settings dataTables settings object\r\n\t * @param {int} rowIdx aoData row id\r\n\t * @param {int} colIdx Column index\r\n\t * @param {string} type data get type (\u0027display\u0027, \u0027type\u0027 \u0027filter|search\u0027 \u0027sort|order\u0027)\r\n\t * @returns {*} Cell data\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnGetCellData( settings, rowIdx, colIdx, type )\r\n\t{\r\n\t\tif (type === \u0027search\u0027) {\r\n\t\t\ttype = \u0027filter\u0027;\r\n\t\t}\r\n\t\telse if (type === \u0027order\u0027) {\r\n\t\t\ttype = \u0027sort\u0027;\r\n\t\t}\r\n\t\r\n\t\tvar draw = settings.iDraw;\r\n\t\tvar col = settings.aoColumns[colIdx];\r\n\t\tvar rowData = settings.aoData[rowIdx]._aData;\r\n\t\tvar defaultContent = col.sDefaultContent;\r\n\t\tvar cellData = col.fnGetData( rowData, type, {\r\n\t\t\tsettings: settings,\r\n\t\t\trow: rowIdx,\r\n\t\t\tcol: colIdx\r\n\t\t} );\r\n\t\r\n\t\tif ( cellData === undefined ) {\r\n\t\t\tif ( settings.iDrawError != draw \u0026\u0026 defaultContent === null ) {\r\n\t\t\t\t_fnLog( settings, 0, \u0022Requested unknown parameter \u0022\u002B\r\n\t\t\t\t\t(typeof col.mData==\u0027function\u0027 ? \u0027{function}\u0027 : \u0022\u0027\u0022\u002Bcol.mData\u002B\u0022\u0027\u0022)\u002B\r\n\t\t\t\t\t\u0022 for row \u0022\u002BrowIdx\u002B\u0022, column \u0022\u002BcolIdx, 4 );\r\n\t\t\t\tsettings.iDrawError = draw;\r\n\t\t\t}\r\n\t\t\treturn defaultContent;\r\n\t\t}\r\n\t\r\n\t\t// When the data source is null and a specific data type is requested (i.e.\r\n\t\t// not the original data), we can use default column data\r\n\t\tif ( (cellData === rowData || cellData === null) \u0026\u0026 defaultContent !== null \u0026\u0026 type !== undefined ) {\r\n\t\t\tcellData = defaultContent;\r\n\t\t}\r\n\t\telse if ( typeof cellData === \u0027function\u0027 ) {\r\n\t\t\t// If the data source is a function, then we run it and use the return,\r\n\t\t\t// executing in the scope of the data object (for instances)\r\n\t\t\treturn cellData.call( rowData );\r\n\t\t}\r\n\t\r\n\t\tif ( cellData === null \u0026\u0026 type === \u0027display\u0027 ) {\r\n\t\t\treturn \u0027\u0027;\r\n\t\t}\r\n\t\r\n\t\tif ( type === \u0027filter\u0027 ) {\r\n\t\t\tvar fomatters = DataTable.ext.type.search;\r\n\t\r\n\t\t\tif ( fomatters[ col.sType ] ) {\r\n\t\t\t\tcellData = fomatters[ col.sType ]( cellData );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn cellData;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Set the value for a specific cell, into the internal data cache\r\n\t * @param {object} settings dataTables settings object\r\n\t * @param {int} rowIdx aoData row id\r\n\t * @param {int} colIdx Column index\r\n\t * @param {*} val Value to set\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnSetCellData( settings, rowIdx, colIdx, val )\r\n\t{\r\n\t\tvar col = settings.aoColumns[colIdx];\r\n\t\tvar rowData = settings.aoData[rowIdx]._aData;\r\n\t\r\n\t\tcol.fnSetData( rowData, val, {\r\n\t\t\tsettings: settings,\r\n\t\t\trow: rowIdx,\r\n\t\t\tcol: colIdx\r\n\t\t} );\r\n\t}\r\n\t\r\n\t\r\n\t// Private variable that is used to match action syntax in the data property object\r\n\tvar __reArray = /\\[.*?\\]$/;\r\n\tvar __reFn = /\\(\\)$/;\r\n\t\r\n\t/**\r\n\t * Split string on periods, taking into account escaped periods\r\n\t * @param {string} str String to split\r\n\t * @return {array} Split string\r\n\t */\r\n\tfunction _fnSplitObjNotation( str )\r\n\t{\r\n\t\treturn $.map( str.match(/(\\\\.|[^\\.])\u002B/g) || [\u0027\u0027], function ( s ) {\r\n\t\t\treturn s.replace(/\\\\\\./g, \u0027.\u0027);\r\n\t\t} );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Return a function that can be used to get data from a source object, taking\r\n\t * into account the ability to use nested objects as a source\r\n\t * @param {string|int|function} mSource The data source for the object\r\n\t * @returns {function} Data get function\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tvar _fnGetObjectDataFn = DataTable.util.get;\r\n\t\r\n\t\r\n\t/**\r\n\t * Return a function that can be used to set data from a source object, taking\r\n\t * into account the ability to use nested objects as a source\r\n\t * @param {string|int|function} mSource The data source for the object\r\n\t * @returns {function} Data set function\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tvar _fnSetObjectDataFn = DataTable.util.set;\r\n\t\r\n\t\r\n\t/**\r\n\t * Return an array with the full table data\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @returns array {array} aData Master data array\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnGetDataMaster ( settings )\r\n\t{\r\n\t\treturn _pluck( settings.aoData, \u0027_aData\u0027 );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Nuke the table\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnClearTable( settings )\r\n\t{\r\n\t\tsettings.aoData.length = 0;\r\n\t\tsettings.aiDisplayMaster.length = 0;\r\n\t\tsettings.aiDisplay.length = 0;\r\n\t\tsettings.aIds = {};\r\n\t}\r\n\t\r\n\t\r\n\t /**\r\n\t * Take an array of integers (index array) and remove a target integer (value - not\r\n\t * the key!)\r\n\t * @param {array} a Index array to target\r\n\t * @param {int} iTarget value to find\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnDeleteIndex( a, iTarget, splice )\r\n\t{\r\n\t\tvar iTargetIndex = -1;\r\n\t\r\n\t\tfor ( var i=0, iLen=a.length ; i\u003CiLen ; i\u002B\u002B )\r\n\t\t{\r\n\t\t\tif ( a[i] == iTarget )\r\n\t\t\t{\r\n\t\t\t\tiTargetIndex = i;\r\n\t\t\t}\r\n\t\t\telse if ( a[i] \u003E iTarget )\r\n\t\t\t{\r\n\t\t\t\ta[i]--;\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\tif ( iTargetIndex != -1 \u0026\u0026 splice === undefined )\r\n\t\t{\r\n\t\t\ta.splice( iTargetIndex, 1 );\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Mark cached data as invalid such that a re-read of the data will occur when\r\n\t * the cached data is next requested. Also update from the data source object.\r\n\t *\r\n\t * @param {object} settings DataTables settings object\r\n\t * @param {int} rowIdx Row index to invalidate\r\n\t * @param {string} [src] Source to invalidate from: undefined, \u0027auto\u0027, \u0027dom\u0027\r\n\t * or \u0027data\u0027\r\n\t * @param {int} [colIdx] Column index to invalidate. If undefined the whole\r\n\t * row will be invalidated\r\n\t * @memberof DataTable#oApi\r\n\t *\r\n\t * @todo For the modularisation of v1.11 this will need to become a callback, so\r\n\t * the sort and filter methods can subscribe to it. That will required\r\n\t * initialisation options for sorting, which is why it is not already baked in\r\n\t */\r\n\tfunction _fnInvalidate( settings, rowIdx, src, colIdx )\r\n\t{\r\n\t\tvar row = settings.aoData[ rowIdx ];\r\n\t\tvar i, ien;\r\n\t\tvar cellWrite = function ( cell, col ) {\r\n\t\t\t// This is very frustrating, but in IE if you just write directly\r\n\t\t\t// to innerHTML, and elements that are overwritten are GC\u0027ed,\r\n\t\t\t// even if there is a reference to them elsewhere\r\n\t\t\twhile ( cell.childNodes.length ) {\r\n\t\t\t\tcell.removeChild( cell.firstChild );\r\n\t\t\t}\r\n\t\r\n\t\t\tcell.innerHTML = _fnGetCellData( settings, rowIdx, col, \u0027display\u0027 );\r\n\t\t};\r\n\t\r\n\t\t// Are we reading last data from DOM or the data object?\r\n\t\tif ( src === \u0027dom\u0027 || ((! src || src === \u0027auto\u0027) \u0026\u0026 row.src === \u0027dom\u0027) ) {\r\n\t\t\t// Read the data from the DOM\r\n\t\t\trow._aData = _fnGetRowElements(\r\n\t\t\t\t\tsettings, row, colIdx, colIdx === undefined ? undefined : row._aData\r\n\t\t\t\t)\r\n\t\t\t\t.data;\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// Reading from data object, update the DOM\r\n\t\t\tvar cells = row.anCells;\r\n\t\r\n\t\t\tif ( cells ) {\r\n\t\t\t\tif ( colIdx !== undefined ) {\r\n\t\t\t\t\tcellWrite( cells[colIdx], colIdx );\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tfor ( i=0, ien=cells.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t\t\t\tcellWrite( cells[i], i );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t// For both row and cell invalidation, the cached data for sorting and\r\n\t\t// filtering is nulled out\r\n\t\trow._aSortData = null;\r\n\t\trow._aFilterData = null;\r\n\t\r\n\t\t// Invalidate the type for a specific column (if given) or all columns since\r\n\t\t// the data might have changed\r\n\t\tvar cols = settings.aoColumns;\r\n\t\tif ( colIdx !== undefined ) {\r\n\t\t\tcols[ colIdx ].sType = null;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tfor ( i=0, ien=cols.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t\tcols[i].sType = null;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Update DataTables special \u00A7DT_*\u00A7 attributes for the row\r\n\t\t\t_fnRowAttributes( settings, row );\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Build a data source object from an HTML row, reading the contents of the\r\n\t * cells that are in the row.\r\n\t *\r\n\t * @param {object} settings DataTables settings object\r\n\t * @param {node|object} TR element from which to read data or existing row\r\n\t * object from which to re-read the data from the cells\r\n\t * @param {int} [colIdx] Optional column index\r\n\t * @param {array|object} [d] Data source object. If \u00A7colIdx\u00A7 is given then this\r\n\t * parameter should also be given and will be used to write the data into.\r\n\t * Only the column in question will be written\r\n\t * @returns {object} Object with two parameters: \u00A7data\u00A7 the data read, in\r\n\t * document order, and \u00A7cells\u00A7 and array of nodes (they can be useful to the\r\n\t * caller, so rather than needing a second traversal to get them, just return\r\n\t * them from here).\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnGetRowElements( settings, row, colIdx, d )\r\n\t{\r\n\t\tvar\r\n\t\t\ttds = [],\r\n\t\t\ttd = row.firstChild,\r\n\t\t\tname, col, o, i=0, contents,\r\n\t\t\tcolumns = settings.aoColumns,\r\n\t\t\tobjectRead = settings._rowReadObject;\r\n\t\r\n\t\t// Allow the data object to be passed in, or construct\r\n\t\td = d !== undefined ?\r\n\t\t\td :\r\n\t\t\tobjectRead ?\r\n\t\t\t\t{} :\r\n\t\t\t\t[];\r\n\t\r\n\t\tvar attr = function ( str, td ) {\r\n\t\t\tif ( typeof str === \u0027string\u0027 ) {\r\n\t\t\t\tvar idx = str.indexOf(\u0027@\u0027);\r\n\t\r\n\t\t\t\tif ( idx !== -1 ) {\r\n\t\t\t\t\tvar attr = str.substring( idx\u002B1 );\r\n\t\t\t\t\tvar setter = _fnSetObjectDataFn( str );\r\n\t\t\t\t\tsetter( d, td.getAttribute( attr ) );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\r\n\t\t// Read data from a cell and store into the data object\r\n\t\tvar cellProcess = function ( cell ) {\r\n\t\t\tif ( colIdx === undefined || colIdx === i ) {\r\n\t\t\t\tcol = columns[i];\r\n\t\t\t\tcontents = (cell.innerHTML).trim();\r\n\t\r\n\t\t\t\tif ( col \u0026\u0026 col._bAttrSrc ) {\r\n\t\t\t\t\tvar setter = _fnSetObjectDataFn( col.mData._ );\r\n\t\t\t\t\tsetter( d, contents );\r\n\t\r\n\t\t\t\t\tattr( col.mData.sort, cell );\r\n\t\t\t\t\tattr( col.mData.type, cell );\r\n\t\t\t\t\tattr( col.mData.filter, cell );\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t// Depending on the \u00A7data\u00A7 option for the columns the data can\r\n\t\t\t\t\t// be read to either an object or an array.\r\n\t\t\t\t\tif ( objectRead ) {\r\n\t\t\t\t\t\tif ( ! col._setter ) {\r\n\t\t\t\t\t\t\t// Cache the setter function\r\n\t\t\t\t\t\t\tcol._setter = _fnSetObjectDataFn( col.mData );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcol._setter( d, contents );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\td[i] = contents;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\ti\u002B\u002B;\r\n\t\t};\r\n\t\r\n\t\tif ( td ) {\r\n\t\t\t// \u00A7tr\u00A7 element was passed in\r\n\t\t\twhile ( td ) {\r\n\t\t\t\tname = td.nodeName.toUpperCase();\r\n\t\r\n\t\t\t\tif ( name == \u0022TD\u0022 || name == \u0022TH\u0022 ) {\r\n\t\t\t\t\tcellProcess( td );\r\n\t\t\t\t\ttds.push( td );\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\ttd = td.nextSibling;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// Existing row object passed in\r\n\t\t\ttds = row.anCells;\r\n\t\r\n\t\t\tfor ( var j=0, jen=tds.length ; j\u003Cjen ; j\u002B\u002B ) {\r\n\t\t\t\tcellProcess( tds[j] );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t// Read the ID from the DOM if present\r\n\t\tvar rowNode = row.firstChild ? row : row.nTr;\r\n\t\r\n\t\tif ( rowNode ) {\r\n\t\t\tvar id = rowNode.getAttribute( \u0027id\u0027 );\r\n\t\r\n\t\t\tif ( id ) {\r\n\t\t\t\t_fnSetObjectDataFn( settings.rowId )( d, id );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn {\r\n\t\t\tdata: d,\r\n\t\t\tcells: tds\r\n\t\t};\r\n\t}\r\n\t/**\r\n\t * Create a new TR element (and it\u0027s TD children) for a row\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {int} iRow Row to consider\r\n\t * @param {node} [nTrIn] TR element to add to the table - optional. If not given,\r\n\t * DataTables will create a row automatically\r\n\t * @param {array} [anTds] Array of TD|TH elements for the row - must be given\r\n\t * if nTr is.\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnCreateTr ( oSettings, iRow, nTrIn, anTds )\r\n\t{\r\n\t\tvar\r\n\t\t\trow = oSettings.aoData[iRow],\r\n\t\t\trowData = row._aData,\r\n\t\t\tcells = [],\r\n\t\t\tnTr, nTd, oCol,\r\n\t\t\ti, iLen, create;\r\n\t\r\n\t\tif ( row.nTr === null )\r\n\t\t{\r\n\t\t\tnTr = nTrIn || document.createElement(\u0027tr\u0027);\r\n\t\r\n\t\t\trow.nTr = nTr;\r\n\t\t\trow.anCells = cells;\r\n\t\r\n\t\t\t/* Use a private property on the node to allow reserve mapping from the node\r\n\t\t\t * to the aoData array for fast look up\r\n\t\t\t */\r\n\t\t\tnTr._DT_RowIndex = iRow;\r\n\t\r\n\t\t\t/* Special parameters can be given by the data source to be used on the row */\r\n\t\t\t_fnRowAttributes( oSettings, row );\r\n\t\r\n\t\t\t/* Process each column */\r\n\t\t\tfor ( i=0, iLen=oSettings.aoColumns.length ; i\u003CiLen ; i\u002B\u002B )\r\n\t\t\t{\r\n\t\t\t\toCol = oSettings.aoColumns[i];\r\n\t\t\t\tcreate = nTrIn ? false : true;\r\n\t\r\n\t\t\t\tnTd = create ? document.createElement( oCol.sCellType ) : anTds[i];\r\n\t\t\t\tnTd._DT_CellIndex = {\r\n\t\t\t\t\trow: iRow,\r\n\t\t\t\t\tcolumn: i\r\n\t\t\t\t};\r\n\t\t\t\t\r\n\t\t\t\tcells.push( nTd );\r\n\t\r\n\t\t\t\t// Need to create the HTML if new, or if a rendering function is defined\r\n\t\t\t\tif ( create || ((oCol.mRender || oCol.mData !== i) \u0026\u0026\r\n\t\t\t\t\t (!$.isPlainObject(oCol.mData) || oCol.mData._ !== i\u002B\u0027.display\u0027)\r\n\t\t\t\t)) {\r\n\t\t\t\t\tnTd.innerHTML = _fnGetCellData( oSettings, iRow, i, \u0027display\u0027 );\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t/* Add user defined class */\r\n\t\t\t\tif ( oCol.sClass )\r\n\t\t\t\t{\r\n\t\t\t\t\tnTd.className \u002B= \u0027 \u0027\u002BoCol.sClass;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Visibility - add or remove as required\r\n\t\t\t\tif ( oCol.bVisible \u0026\u0026 ! nTrIn )\r\n\t\t\t\t{\r\n\t\t\t\t\tnTr.appendChild( nTd );\r\n\t\t\t\t}\r\n\t\t\t\telse if ( ! oCol.bVisible \u0026\u0026 nTrIn )\r\n\t\t\t\t{\r\n\t\t\t\t\tnTd.parentNode.removeChild( nTd );\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tif ( oCol.fnCreatedCell )\r\n\t\t\t\t{\r\n\t\t\t\t\toCol.fnCreatedCell.call( oSettings.oInstance,\r\n\t\t\t\t\t\tnTd, _fnGetCellData( oSettings, iRow, i ), rowData, iRow, i\r\n\t\t\t\t\t);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\t_fnCallbackFire( oSettings, \u0027aoRowCreatedCallback\u0027, null, [nTr, rowData, iRow, cells] );\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Add attributes to a row based on the special \u00A7DT_*\u00A7 parameters in a data\r\n\t * source object.\r\n\t * @param {object} settings DataTables settings object\r\n\t * @param {object} DataTables row object for the row to be modified\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnRowAttributes( settings, row )\r\n\t{\r\n\t\tvar tr = row.nTr;\r\n\t\tvar data = row._aData;\r\n\t\r\n\t\tif ( tr ) {\r\n\t\t\tvar id = settings.rowIdFn( data );\r\n\t\r\n\t\t\tif ( id ) {\r\n\t\t\t\ttr.id = id;\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( data.DT_RowClass ) {\r\n\t\t\t\t// Remove any classes added by DT_RowClass before\r\n\t\t\t\tvar a = data.DT_RowClass.split(\u0027 \u0027);\r\n\t\t\t\trow.__rowc = row.__rowc ?\r\n\t\t\t\t\t_unique( row.__rowc.concat( a ) ) :\r\n\t\t\t\t\ta;\r\n\t\r\n\t\t\t\t$(tr)\r\n\t\t\t\t\t.removeClass( row.__rowc.join(\u0027 \u0027) )\r\n\t\t\t\t\t.addClass( data.DT_RowClass );\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( data.DT_RowAttr ) {\r\n\t\t\t\t$(tr).attr( data.DT_RowAttr );\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( data.DT_RowData ) {\r\n\t\t\t\t$(tr).data( data.DT_RowData );\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Create the HTML header for the table\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnBuildHead( oSettings )\r\n\t{\r\n\t\tvar i, ien, cell, row, column;\r\n\t\tvar thead = oSettings.nTHead;\r\n\t\tvar tfoot = oSettings.nTFoot;\r\n\t\tvar createHeader = $(\u0027th, td\u0027, thead).length === 0;\r\n\t\tvar classes = oSettings.oClasses;\r\n\t\tvar columns = oSettings.aoColumns;\r\n\t\r\n\t\tif ( createHeader ) {\r\n\t\t\trow = $(\u0027\u003Ctr/\u003E\u0027).appendTo( thead );\r\n\t\t}\r\n\t\r\n\t\tfor ( i=0, ien=columns.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\tcolumn = columns[i];\r\n\t\t\tcell = $( column.nTh ).addClass( column.sClass );\r\n\t\r\n\t\t\tif ( createHeader ) {\r\n\t\t\t\tcell.appendTo( row );\r\n\t\t\t}\r\n\t\r\n\t\t\t// 1.11 move into sorting\r\n\t\t\tif ( oSettings.oFeatures.bSort ) {\r\n\t\t\t\tcell.addClass( column.sSortingClass );\r\n\t\r\n\t\t\t\tif ( column.bSortable !== false ) {\r\n\t\t\t\t\tcell\r\n\t\t\t\t\t\t.attr( \u0027tabindex\u0027, oSettings.iTabIndex )\r\n\t\t\t\t\t\t.attr( \u0027aria-controls\u0027, oSettings.sTableId );\r\n\t\r\n\t\t\t\t\t_fnSortAttachListener( oSettings, column.nTh, i );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( column.sTitle != cell[0].innerHTML ) {\r\n\t\t\t\tcell.html( column.sTitle );\r\n\t\t\t}\r\n\t\r\n\t\t\t_fnRenderer( oSettings, \u0027header\u0027 )(\r\n\t\t\t\toSettings, cell, column, classes\r\n\t\t\t);\r\n\t\t}\r\n\t\r\n\t\tif ( createHeader ) {\r\n\t\t\t_fnDetectHeader( oSettings.aoHeader, thead );\r\n\t\t}\r\n\t\r\n\t\t/* Deal with the footer - add classes if required */\r\n\t\t$(thead).children(\u0027tr\u0027).children(\u0027th, td\u0027).addClass( classes.sHeaderTH );\r\n\t\t$(tfoot).children(\u0027tr\u0027).children(\u0027th, td\u0027).addClass( classes.sFooterTH );\r\n\t\r\n\t\t// Cache the footer cells. Note that we only take the cells from the first\r\n\t\t// row in the footer. If there is more than one row the user wants to\r\n\t\t// interact with, they need to use the table().foot() method. Note also this\r\n\t\t// allows cells to be used for multiple columns using colspan\r\n\t\tif ( tfoot !== null ) {\r\n\t\t\tvar cells = oSettings.aoFooter[0];\r\n\t\r\n\t\t\tfor ( i=0, ien=cells.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t\tcolumn = columns[i];\r\n\t\t\t\tcolumn.nTf = cells[i].cell;\r\n\t\r\n\t\t\t\tif ( column.sClass ) {\r\n\t\t\t\t\t$(column.nTf).addClass( column.sClass );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Draw the header (or footer) element based on the column visibility states. The\r\n\t * methodology here is to use the layout array from _fnDetectHeader, modified for\r\n\t * the instantaneous column visibility, to construct the new layout. The grid is\r\n\t * traversed over cell at a time in a rows x columns grid fashion, although each\r\n\t * cell insert can cover multiple elements in the grid - which is tracks using the\r\n\t * aApplied array. Cell inserts in the grid will only occur where there isn\u0027t\r\n\t * already a cell in that position.\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param array {objects} aoSource Layout array from _fnDetectHeader\r\n\t * @param {boolean} [bIncludeHidden=false] If true then include the hidden columns in the calc,\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnDrawHead( oSettings, aoSource, bIncludeHidden )\r\n\t{\r\n\t\tvar i, iLen, j, jLen, k, kLen, n, nLocalTr;\r\n\t\tvar aoLocal = [];\r\n\t\tvar aApplied = [];\r\n\t\tvar iColumns = oSettings.aoColumns.length;\r\n\t\tvar iRowspan, iColspan;\r\n\t\r\n\t\tif ( ! aoSource )\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\tif ( bIncludeHidden === undefined )\r\n\t\t{\r\n\t\t\tbIncludeHidden = false;\r\n\t\t}\r\n\t\r\n\t\t/* Make a copy of the master layout array, but without the visible columns in it */\r\n\t\tfor ( i=0, iLen=aoSource.length ; i\u003CiLen ; i\u002B\u002B )\r\n\t\t{\r\n\t\t\taoLocal[i] = aoSource[i].slice();\r\n\t\t\taoLocal[i].nTr = aoSource[i].nTr;\r\n\t\r\n\t\t\t/* Remove any columns which are currently hidden */\r\n\t\t\tfor ( j=iColumns-1 ; j\u003E=0 ; j-- )\r\n\t\t\t{\r\n\t\t\t\tif ( !oSettings.aoColumns[j].bVisible \u0026\u0026 !bIncludeHidden )\r\n\t\t\t\t{\r\n\t\t\t\t\taoLocal[i].splice( j, 1 );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\t/* Prep the applied array - it needs an element for each row */\r\n\t\t\taApplied.push( [] );\r\n\t\t}\r\n\t\r\n\t\tfor ( i=0, iLen=aoLocal.length ; i\u003CiLen ; i\u002B\u002B )\r\n\t\t{\r\n\t\t\tnLocalTr = aoLocal[i].nTr;\r\n\t\r\n\t\t\t/* All cells are going to be replaced, so empty out the row */\r\n\t\t\tif ( nLocalTr )\r\n\t\t\t{\r\n\t\t\t\twhile( (n = nLocalTr.firstChild) )\r\n\t\t\t\t{\r\n\t\t\t\t\tnLocalTr.removeChild( n );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\tfor ( j=0, jLen=aoLocal[i].length ; j\u003CjLen ; j\u002B\u002B )\r\n\t\t\t{\r\n\t\t\t\tiRowspan = 1;\r\n\t\t\t\tiColspan = 1;\r\n\t\r\n\t\t\t\t/* Check to see if there is already a cell (row/colspan) covering our target\r\n\t\t\t\t * insert point. If there is, then there is nothing to do.\r\n\t\t\t\t */\r\n\t\t\t\tif ( aApplied[i][j] === undefined )\r\n\t\t\t\t{\r\n\t\t\t\t\tnLocalTr.appendChild( aoLocal[i][j].cell );\r\n\t\t\t\t\taApplied[i][j] = 1;\r\n\t\r\n\t\t\t\t\t/* Expand the cell to cover as many rows as needed */\r\n\t\t\t\t\twhile ( aoLocal[i\u002BiRowspan] !== undefined \u0026\u0026\r\n\t\t\t\t\t aoLocal[i][j].cell == aoLocal[i\u002BiRowspan][j].cell )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\taApplied[i\u002BiRowspan][j] = 1;\r\n\t\t\t\t\t\tiRowspan\u002B\u002B;\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t/* Expand the cell to cover as many columns as needed */\r\n\t\t\t\t\twhile ( aoLocal[i][j\u002BiColspan] !== undefined \u0026\u0026\r\n\t\t\t\t\t aoLocal[i][j].cell == aoLocal[i][j\u002BiColspan].cell )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t/* Must update the applied array over the rows for the columns */\r\n\t\t\t\t\t\tfor ( k=0 ; k\u003CiRowspan ; k\u002B\u002B )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\taApplied[i\u002Bk][j\u002BiColspan] = 1;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tiColspan\u002B\u002B;\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t/* Do the actual expansion in the DOM */\r\n\t\t\t\t\t$(aoLocal[i][j].cell)\r\n\t\t\t\t\t\t.attr(\u0027rowspan\u0027, iRowspan)\r\n\t\t\t\t\t\t.attr(\u0027colspan\u0027, iColspan);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Insert the required TR nodes into the table for display\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param ajaxComplete true after ajax call to complete rendering\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnDraw( oSettings, ajaxComplete )\r\n\t{\r\n\t\t/* Provide a pre-callback function which can be used to cancel the draw is false is returned */\r\n\t\tvar aPreDraw = _fnCallbackFire( oSettings, \u0027aoPreDrawCallback\u0027, \u0027preDraw\u0027, [oSettings] );\r\n\t\tif ( $.inArray( false, aPreDraw ) !== -1 )\r\n\t\t{\r\n\t\t\t_fnProcessingDisplay( oSettings, false );\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\tvar i, iLen, n;\r\n\t\tvar anRows = [];\r\n\t\tvar iRowCount = 0;\r\n\t\tvar asStripeClasses = oSettings.asStripeClasses;\r\n\t\tvar iStripes = asStripeClasses.length;\r\n\t\tvar iOpenRows = oSettings.aoOpenRows.length;\r\n\t\tvar oLang = oSettings.oLanguage;\r\n\t\tvar iInitDisplayStart = oSettings.iInitDisplayStart;\r\n\t\tvar bServerSide = _fnDataSource( oSettings ) == \u0027ssp\u0027;\r\n\t\tvar aiDisplay = oSettings.aiDisplay;\r\n\t\r\n\t\toSettings.bDrawing = true;\r\n\t\r\n\t\t/* Check and see if we have an initial draw position from state saving */\r\n\t\tif ( iInitDisplayStart !== undefined \u0026\u0026 iInitDisplayStart !== -1 )\r\n\t\t{\r\n\t\t\toSettings._iDisplayStart = bServerSide ?\r\n\t\t\t\tiInitDisplayStart :\r\n\t\t\t\tiInitDisplayStart \u003E= oSettings.fnRecordsDisplay() ?\r\n\t\t\t\t\t0 :\r\n\t\t\t\t\tiInitDisplayStart;\r\n\t\r\n\t\t\toSettings.iInitDisplayStart = -1;\r\n\t\t}\r\n\t\r\n\t\tvar iDisplayStart = oSettings._iDisplayStart;\r\n\t\tvar iDisplayEnd = oSettings.fnDisplayEnd();\r\n\t\r\n\t\t/* Server-side processing draw intercept */\r\n\t\tif ( oSettings.bDeferLoading )\r\n\t\t{\r\n\t\t\toSettings.bDeferLoading = false;\r\n\t\t\toSettings.iDraw\u002B\u002B;\r\n\t\t\t_fnProcessingDisplay( oSettings, false );\r\n\t\t}\r\n\t\telse if ( !bServerSide )\r\n\t\t{\r\n\t\t\toSettings.iDraw\u002B\u002B;\r\n\t\t}\r\n\t\telse if ( !oSettings.bDestroying \u0026\u0026 !ajaxComplete)\r\n\t\t{\r\n\t\t\t_fnAjaxUpdate( oSettings );\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\tif ( aiDisplay.length !== 0 )\r\n\t\t{\r\n\t\t\tvar iStart = bServerSide ? 0 : iDisplayStart;\r\n\t\t\tvar iEnd = bServerSide ? oSettings.aoData.length : iDisplayEnd;\r\n\t\r\n\t\t\tfor ( var j=iStart ; j\u003CiEnd ; j\u002B\u002B )\r\n\t\t\t{\r\n\t\t\t\tvar iDataIndex = aiDisplay[j];\r\n\t\t\t\tvar aoData = oSettings.aoData[ iDataIndex ];\r\n\t\t\t\tif ( aoData.nTr === null )\r\n\t\t\t\t{\r\n\t\t\t\t\t_fnCreateTr( oSettings, iDataIndex );\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tvar nRow = aoData.nTr;\r\n\t\r\n\t\t\t\t/* Remove the old striping classes and then add the new one */\r\n\t\t\t\tif ( iStripes !== 0 )\r\n\t\t\t\t{\r\n\t\t\t\t\tvar sStripe = asStripeClasses[ iRowCount % iStripes ];\r\n\t\t\t\t\tif ( aoData._sRowStripe != sStripe )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$(nRow).removeClass( aoData._sRowStripe ).addClass( sStripe );\r\n\t\t\t\t\t\taoData._sRowStripe = sStripe;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Row callback functions - might want to manipulate the row\r\n\t\t\t\t// iRowCount and j are not currently documented. Are they at all\r\n\t\t\t\t// useful?\r\n\t\t\t\t_fnCallbackFire( oSettings, \u0027aoRowCallback\u0027, null,\r\n\t\t\t\t\t[nRow, aoData._aData, iRowCount, j, iDataIndex] );\r\n\t\r\n\t\t\t\tanRows.push( nRow );\r\n\t\t\t\tiRowCount\u002B\u002B;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t/* Table is empty - create a row with an empty message in it */\r\n\t\t\tvar sZero = oLang.sZeroRecords;\r\n\t\t\tif ( oSettings.iDraw == 1 \u0026\u0026 _fnDataSource( oSettings ) == \u0027ajax\u0027 )\r\n\t\t\t{\r\n\t\t\t\tsZero = oLang.sLoadingRecords;\r\n\t\t\t}\r\n\t\t\telse if ( oLang.sEmptyTable \u0026\u0026 oSettings.fnRecordsTotal() === 0 )\r\n\t\t\t{\r\n\t\t\t\tsZero = oLang.sEmptyTable;\r\n\t\t\t}\r\n\t\r\n\t\t\tanRows[ 0 ] = $( \u0027\u003Ctr/\u003E\u0027, { \u0027class\u0027: iStripes ? asStripeClasses[0] : \u0027\u0027 } )\r\n\t\t\t\t.append( $(\u0027\u003Ctd /\u003E\u0027, {\r\n\t\t\t\t\t\u0027valign\u0027: \u0027top\u0027,\r\n\t\t\t\t\t\u0027colSpan\u0027: _fnVisbleColumns( oSettings ),\r\n\t\t\t\t\t\u0027class\u0027: oSettings.oClasses.sRowEmpty\r\n\t\t\t\t} ).html( sZero ) )[0];\r\n\t\t}\r\n\t\r\n\t\t/* Header and footer callbacks */\r\n\t\t_fnCallbackFire( oSettings, \u0027aoHeaderCallback\u0027, \u0027header\u0027, [ $(oSettings.nTHead).children(\u0027tr\u0027)[0],\r\n\t\t\t_fnGetDataMaster( oSettings ), iDisplayStart, iDisplayEnd, aiDisplay ] );\r\n\t\r\n\t\t_fnCallbackFire( oSettings, \u0027aoFooterCallback\u0027, \u0027footer\u0027, [ $(oSettings.nTFoot).children(\u0027tr\u0027)[0],\r\n\t\t\t_fnGetDataMaster( oSettings ), iDisplayStart, iDisplayEnd, aiDisplay ] );\r\n\t\r\n\t\tvar body = $(oSettings.nTBody);\r\n\t\r\n\t\tbody.children().detach();\r\n\t\tbody.append( $(anRows) );\r\n\t\r\n\t\t/* Call all required callback functions for the end of a draw */\r\n\t\t_fnCallbackFire( oSettings, \u0027aoDrawCallback\u0027, \u0027draw\u0027, [oSettings] );\r\n\t\r\n\t\t/* Draw is complete, sorting and filtering must be as well */\r\n\t\toSettings.bSorted = false;\r\n\t\toSettings.bFiltered = false;\r\n\t\toSettings.bDrawing = false;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Redraw the table - taking account of the various features which are enabled\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {boolean} [holdPosition] Keep the current paging position. By default\r\n\t * the paging is reset to the first page\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnReDraw( settings, holdPosition )\r\n\t{\r\n\t\tvar\r\n\t\t\tfeatures = settings.oFeatures,\r\n\t\t\tsort = features.bSort,\r\n\t\t\tfilter = features.bFilter;\r\n\t\r\n\t\tif ( sort ) {\r\n\t\t\t_fnSort( settings );\r\n\t\t}\r\n\t\r\n\t\tif ( filter ) {\r\n\t\t\t_fnFilterComplete( settings, settings.oPreviousSearch );\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// No filtering, so we want to just use the display master\r\n\t\t\tsettings.aiDisplay = settings.aiDisplayMaster.slice();\r\n\t\t}\r\n\t\r\n\t\tif ( holdPosition !== true ) {\r\n\t\t\tsettings._iDisplayStart = 0;\r\n\t\t}\r\n\t\r\n\t\t// Let any modules know about the draw hold position state (used by\r\n\t\t// scrolling internally)\r\n\t\tsettings._drawHold = holdPosition;\r\n\t\r\n\t\t_fnDraw( settings );\r\n\t\r\n\t\tsettings._drawHold = false;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Add the options to the page HTML for the table\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnAddOptionsHtml ( oSettings )\r\n\t{\r\n\t\tvar classes = oSettings.oClasses;\r\n\t\tvar table = $(oSettings.nTable);\r\n\t\tvar holding = $(\u0027\u003Cdiv/\u003E\u0027).insertBefore( table ); // Holding element for speed\r\n\t\tvar features = oSettings.oFeatures;\r\n\t\r\n\t\t// All DataTables are wrapped in a div\r\n\t\tvar insert = $(\u0027\u003Cdiv/\u003E\u0027, {\r\n\t\t\tid: oSettings.sTableId\u002B\u0027_wrapper\u0027,\r\n\t\t\t\u0027class\u0027: classes.sWrapper \u002B (oSettings.nTFoot ? \u0027\u0027 : \u0027 \u0027\u002Bclasses.sNoFooter)\r\n\t\t} );\r\n\t\r\n\t\toSettings.nHolding = holding[0];\r\n\t\toSettings.nTableWrapper = insert[0];\r\n\t\toSettings.nTableReinsertBefore = oSettings.nTable.nextSibling;\r\n\t\r\n\t\t/* Loop over the user set positioning and place the elements as needed */\r\n\t\tvar aDom = oSettings.sDom.split(\u0027\u0027);\r\n\t\tvar featureNode, cOption, nNewNode, cNext, sAttr, j;\r\n\t\tfor ( var i=0 ; i\u003CaDom.length ; i\u002B\u002B )\r\n\t\t{\r\n\t\t\tfeatureNode = null;\r\n\t\t\tcOption = aDom[i];\r\n\t\r\n\t\t\tif ( cOption == \u0027\u003C\u0027 )\r\n\t\t\t{\r\n\t\t\t\t/* New container div */\r\n\t\t\t\tnNewNode = $(\u0027\u003Cdiv/\u003E\u0027)[0];\r\n\t\r\n\t\t\t\t/* Check to see if we should append an id and/or a class name to the container */\r\n\t\t\t\tcNext = aDom[i\u002B1];\r\n\t\t\t\tif ( cNext == \u0022\u0027\u0022 || cNext == \u0027\u0022\u0027 )\r\n\t\t\t\t{\r\n\t\t\t\t\tsAttr = \u0022\u0022;\r\n\t\t\t\t\tj = 2;\r\n\t\t\t\t\twhile ( aDom[i\u002Bj] != cNext )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsAttr \u002B= aDom[i\u002Bj];\r\n\t\t\t\t\t\tj\u002B\u002B;\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t/* Replace jQuery UI constants @todo depreciated */\r\n\t\t\t\t\tif ( sAttr == \u0022H\u0022 )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsAttr = classes.sJUIHeader;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( sAttr == \u0022F\u0022 )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsAttr = classes.sJUIFooter;\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t/* The attribute can be in the format of \u0022#id.class\u0022, \u0022#id\u0022 or \u0022class\u0022 This logic\r\n\t\t\t\t\t * breaks the string into parts and applies them as needed\r\n\t\t\t\t\t */\r\n\t\t\t\t\tif ( sAttr.indexOf(\u0027.\u0027) != -1 )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tvar aSplit = sAttr.split(\u0027.\u0027);\r\n\t\t\t\t\t\tnNewNode.id = aSplit[0].substr(1, aSplit[0].length-1);\r\n\t\t\t\t\t\tnNewNode.className = aSplit[1];\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( sAttr.charAt(0) == \u0022#\u0022 )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tnNewNode.id = sAttr.substr(1, sAttr.length-1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tnNewNode.className = sAttr;\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\ti \u002B= j; /* Move along the position array */\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tinsert.append( nNewNode );\r\n\t\t\t\tinsert = $(nNewNode);\r\n\t\t\t}\r\n\t\t\telse if ( cOption == \u0027\u003E\u0027 )\r\n\t\t\t{\r\n\t\t\t\t/* End container div */\r\n\t\t\t\tinsert = insert.parent();\r\n\t\t\t}\r\n\t\t\t// @todo Move options into their own plugins?\r\n\t\t\telse if ( cOption == \u0027l\u0027 \u0026\u0026 features.bPaginate \u0026\u0026 features.bLengthChange )\r\n\t\t\t{\r\n\t\t\t\t/* Length */\r\n\t\t\t\tfeatureNode = _fnFeatureHtmlLength( oSettings );\r\n\t\t\t}\r\n\t\t\telse if ( cOption == \u0027f\u0027 \u0026\u0026 features.bFilter )\r\n\t\t\t{\r\n\t\t\t\t/* Filter */\r\n\t\t\t\tfeatureNode = _fnFeatureHtmlFilter( oSettings );\r\n\t\t\t}\r\n\t\t\telse if ( cOption == \u0027r\u0027 \u0026\u0026 features.bProcessing )\r\n\t\t\t{\r\n\t\t\t\t/* pRocessing */\r\n\t\t\t\tfeatureNode = _fnFeatureHtmlProcessing( oSettings );\r\n\t\t\t}\r\n\t\t\telse if ( cOption == \u0027t\u0027 )\r\n\t\t\t{\r\n\t\t\t\t/* Table */\r\n\t\t\t\tfeatureNode = _fnFeatureHtmlTable( oSettings );\r\n\t\t\t}\r\n\t\t\telse if ( cOption == \u0027i\u0027 \u0026\u0026 features.bInfo )\r\n\t\t\t{\r\n\t\t\t\t/* Info */\r\n\t\t\t\tfeatureNode = _fnFeatureHtmlInfo( oSettings );\r\n\t\t\t}\r\n\t\t\telse if ( cOption == \u0027p\u0027 \u0026\u0026 features.bPaginate )\r\n\t\t\t{\r\n\t\t\t\t/* Pagination */\r\n\t\t\t\tfeatureNode = _fnFeatureHtmlPaginate( oSettings );\r\n\t\t\t}\r\n\t\t\telse if ( DataTable.ext.feature.length !== 0 )\r\n\t\t\t{\r\n\t\t\t\t/* Plug-in features */\r\n\t\t\t\tvar aoFeatures = DataTable.ext.feature;\r\n\t\t\t\tfor ( var k=0, kLen=aoFeatures.length ; k\u003CkLen ; k\u002B\u002B )\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( cOption == aoFeatures[k].cFeature )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfeatureNode = aoFeatures[k].fnInit( oSettings );\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\t/* Add to the 2D features array */\r\n\t\t\tif ( featureNode )\r\n\t\t\t{\r\n\t\t\t\tvar aanFeatures = oSettings.aanFeatures;\r\n\t\r\n\t\t\t\tif ( ! aanFeatures[cOption] )\r\n\t\t\t\t{\r\n\t\t\t\t\taanFeatures[cOption] = [];\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\taanFeatures[cOption].push( featureNode );\r\n\t\t\t\tinsert.append( featureNode );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t/* Built our DOM structure - replace the holding div with what we want */\r\n\t\tholding.replaceWith( insert );\r\n\t\toSettings.nHolding = null;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Use the DOM source to create up an array of header cells. The idea here is to\r\n\t * create a layout grid (array) of rows x columns, which contains a reference\r\n\t * to the cell that that point in the grid (regardless of col/rowspan), such that\r\n\t * any column / row could be removed and the new grid constructed\r\n\t * @param array {object} aLayout Array to store the calculated layout in\r\n\t * @param {node} nThead The header/footer element for the table\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnDetectHeader ( aLayout, nThead )\r\n\t{\r\n\t\tvar nTrs = $(nThead).children(\u0027tr\u0027);\r\n\t\tvar nTr, nCell;\r\n\t\tvar i, k, l, iLen, jLen, iColShifted, iColumn, iColspan, iRowspan;\r\n\t\tvar bUnique;\r\n\t\tvar fnShiftCol = function ( a, i, j ) {\r\n\t\t\tvar k = a[i];\r\n\t while ( k[j] ) {\r\n\t\t\t\tj\u002B\u002B;\r\n\t\t\t}\r\n\t\t\treturn j;\r\n\t\t};\r\n\t\r\n\t\taLayout.splice( 0, aLayout.length );\r\n\t\r\n\t\t/* We know how many rows there are in the layout - so prep it */\r\n\t\tfor ( i=0, iLen=nTrs.length ; i\u003CiLen ; i\u002B\u002B )\r\n\t\t{\r\n\t\t\taLayout.push( [] );\r\n\t\t}\r\n\t\r\n\t\t/* Calculate a layout array */\r\n\t\tfor ( i=0, iLen=nTrs.length ; i\u003CiLen ; i\u002B\u002B )\r\n\t\t{\r\n\t\t\tnTr = nTrs[i];\r\n\t\t\tiColumn = 0;\r\n\t\r\n\t\t\t/* For every cell in the row... */\r\n\t\t\tnCell = nTr.firstChild;\r\n\t\t\twhile ( nCell ) {\r\n\t\t\t\tif ( nCell.nodeName.toUpperCase() == \u0022TD\u0022 ||\r\n\t\t\t\t nCell.nodeName.toUpperCase() == \u0022TH\u0022 )\r\n\t\t\t\t{\r\n\t\t\t\t\t/* Get the col and rowspan attributes from the DOM and sanitise them */\r\n\t\t\t\t\tiColspan = nCell.getAttribute(\u0027colspan\u0027) * 1;\r\n\t\t\t\t\tiRowspan = nCell.getAttribute(\u0027rowspan\u0027) * 1;\r\n\t\t\t\t\tiColspan = (!iColspan || iColspan===0 || iColspan===1) ? 1 : iColspan;\r\n\t\t\t\t\tiRowspan = (!iRowspan || iRowspan===0 || iRowspan===1) ? 1 : iRowspan;\r\n\t\r\n\t\t\t\t\t/* There might be colspan cells already in this row, so shift our target\r\n\t\t\t\t\t * accordingly\r\n\t\t\t\t\t */\r\n\t\t\t\t\tiColShifted = fnShiftCol( aLayout, i, iColumn );\r\n\t\r\n\t\t\t\t\t/* Cache calculation for unique columns */\r\n\t\t\t\t\tbUnique = iColspan === 1 ? true : false;\r\n\t\r\n\t\t\t\t\t/* If there is col / rowspan, copy the information into the layout grid */\r\n\t\t\t\t\tfor ( l=0 ; l\u003CiColspan ; l\u002B\u002B )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfor ( k=0 ; k\u003CiRowspan ; k\u002B\u002B )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\taLayout[i\u002Bk][iColShifted\u002Bl] = {\r\n\t\t\t\t\t\t\t\t\u0022cell\u0022: nCell,\r\n\t\t\t\t\t\t\t\t\u0022unique\u0022: bUnique\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\taLayout[i\u002Bk].nTr = nTr;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tnCell = nCell.nextSibling;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Get an array of unique th elements, one for each column\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {node} nHeader automatically detect the layout from this node - optional\r\n\t * @param {array} aLayout thead/tfoot layout from _fnDetectHeader - optional\r\n\t * @returns array {node} aReturn list of unique th\u0027s\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnGetUniqueThs ( oSettings, nHeader, aLayout )\r\n\t{\r\n\t\tvar aReturn = [];\r\n\t\tif ( !aLayout )\r\n\t\t{\r\n\t\t\taLayout = oSettings.aoHeader;\r\n\t\t\tif ( nHeader )\r\n\t\t\t{\r\n\t\t\t\taLayout = [];\r\n\t\t\t\t_fnDetectHeader( aLayout, nHeader );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\tfor ( var i=0, iLen=aLayout.length ; i\u003CiLen ; i\u002B\u002B )\r\n\t\t{\r\n\t\t\tfor ( var j=0, jLen=aLayout[i].length ; j\u003CjLen ; j\u002B\u002B )\r\n\t\t\t{\r\n\t\t\t\tif ( aLayout[i][j].unique \u0026\u0026\r\n\t\t\t\t\t (!aReturn[j] || !oSettings.bSortCellsTop) )\r\n\t\t\t\t{\r\n\t\t\t\t\taReturn[j] = aLayout[i][j].cell;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn aReturn;\r\n\t}\r\n\t\r\n\t/**\r\n\t * Create an Ajax call based on the table\u0027s settings, taking into account that\r\n\t * parameters can have multiple forms, and backwards compatibility.\r\n\t *\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {array} data Data to send to the server, required by\r\n\t * DataTables - may be augmented by developer callbacks\r\n\t * @param {function} fn Callback function to run when data is obtained\r\n\t */\r\n\tfunction _fnBuildAjax( oSettings, data, fn )\r\n\t{\r\n\t\t// Compatibility with 1.9-, allow fnServerData and event to manipulate\r\n\t\t_fnCallbackFire( oSettings, \u0027aoServerParams\u0027, \u0027serverParams\u0027, [data] );\r\n\t\r\n\t\t// Convert to object based for 1.10\u002B if using the old array scheme which can\r\n\t\t// come from server-side processing or serverParams\r\n\t\tif ( data \u0026\u0026 Array.isArray(data) ) {\r\n\t\t\tvar tmp = {};\r\n\t\t\tvar rbracket = /(.*?)\\[\\]$/;\r\n\t\r\n\t\t\t$.each( data, function (key, val) {\r\n\t\t\t\tvar match = val.name.match(rbracket);\r\n\t\r\n\t\t\t\tif ( match ) {\r\n\t\t\t\t\t// Support for arrays\r\n\t\t\t\t\tvar name = match[0];\r\n\t\r\n\t\t\t\t\tif ( ! tmp[ name ] ) {\r\n\t\t\t\t\t\ttmp[ name ] = [];\r\n\t\t\t\t\t}\r\n\t\t\t\t\ttmp[ name ].push( val.value );\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\ttmp[val.name] = val.value;\r\n\t\t\t\t}\r\n\t\t\t} );\r\n\t\t\tdata = tmp;\r\n\t\t}\r\n\t\r\n\t\tvar ajaxData;\r\n\t\tvar ajax = oSettings.ajax;\r\n\t\tvar instance = oSettings.oInstance;\r\n\t\tvar callback = function ( json ) {\r\n\t\t\tvar status = oSettings.jqXhr\r\n\t\t\t\t? oSettings.jqXhr.status\r\n\t\t\t\t: null;\r\n\t\r\n\t\t\tif ( json === null || (typeof status === \u0027number\u0027 \u0026\u0026 status == 204 ) ) {\r\n\t\t\t\tjson = {};\r\n\t\t\t\t_fnAjaxDataSrc( oSettings, json, [] );\r\n\t\t\t}\r\n\t\r\n\t\t\tvar error = json.error || json.sError;\r\n\t\t\tif ( error ) {\r\n\t\t\t\t_fnLog( oSettings, 0, error );\r\n\t\t\t}\r\n\t\r\n\t\t\toSettings.json = json;\r\n\t\r\n\t\t\t_fnCallbackFire( oSettings, null, \u0027xhr\u0027, [oSettings, json, oSettings.jqXHR] );\r\n\t\t\tfn( json );\r\n\t\t};\r\n\t\r\n\t\tif ( $.isPlainObject( ajax ) \u0026\u0026 ajax.data )\r\n\t\t{\r\n\t\t\tajaxData = ajax.data;\r\n\t\r\n\t\t\tvar newData = typeof ajaxData === \u0027function\u0027 ?\r\n\t\t\t\tajaxData( data, oSettings ) : // fn can manipulate data or return\r\n\t\t\t\tajaxData; // an object object or array to merge\r\n\t\r\n\t\t\t// If the function returned something, use that alone\r\n\t\t\tdata = typeof ajaxData === \u0027function\u0027 \u0026\u0026 newData ?\r\n\t\t\t\tnewData :\r\n\t\t\t\t$.extend( true, data, newData );\r\n\t\r\n\t\t\t// Remove the data property as we\u0027ve resolved it already and don\u0027t want\r\n\t\t\t// jQuery to do it again (it is restored at the end of the function)\r\n\t\t\tdelete ajax.data;\r\n\t\t}\r\n\t\r\n\t\tvar baseAjax = {\r\n\t\t\t\u0022data\u0022: data,\r\n\t\t\t\u0022success\u0022: callback,\r\n\t\t\t\u0022dataType\u0022: \u0022json\u0022,\r\n\t\t\t\u0022cache\u0022: false,\r\n\t\t\t\u0022type\u0022: oSettings.sServerMethod,\r\n\t\t\t\u0022error\u0022: function (xhr, error, thrown) {\r\n\t\t\t\tvar ret = _fnCallbackFire( oSettings, null, \u0027xhr\u0027, [oSettings, null, oSettings.jqXHR] );\r\n\t\r\n\t\t\t\tif ( $.inArray( true, ret ) === -1 ) {\r\n\t\t\t\t\tif ( error == \u0022parsererror\u0022 ) {\r\n\t\t\t\t\t\t_fnLog( oSettings, 0, \u0027Invalid JSON response\u0027, 1 );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( xhr.readyState === 4 ) {\r\n\t\t\t\t\t\t_fnLog( oSettings, 0, \u0027Ajax error\u0027, 7 );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t_fnProcessingDisplay( oSettings, false );\r\n\t\t\t}\r\n\t\t};\r\n\t\r\n\t\t// Store the data submitted for the API\r\n\t\toSettings.oAjaxData = data;\r\n\t\r\n\t\t// Allow plug-ins and external processes to modify the data\r\n\t\t_fnCallbackFire( oSettings, null, \u0027preXhr\u0027, [oSettings, data] );\r\n\t\r\n\t\tif ( oSettings.fnServerData )\r\n\t\t{\r\n\t\t\t// DataTables 1.9- compatibility\r\n\t\t\toSettings.fnServerData.call( instance,\r\n\t\t\t\toSettings.sAjaxSource,\r\n\t\t\t\t$.map( data, function (val, key) { // Need to convert back to 1.9 trad format\r\n\t\t\t\t\treturn { name: key, value: val };\r\n\t\t\t\t} ),\r\n\t\t\t\tcallback,\r\n\t\t\t\toSettings\r\n\t\t\t);\r\n\t\t}\r\n\t\telse if ( oSettings.sAjaxSource || typeof ajax === \u0027string\u0027 )\r\n\t\t{\r\n\t\t\t// DataTables 1.9- compatibility\r\n\t\t\toSettings.jqXHR = $.ajax( $.extend( baseAjax, {\r\n\t\t\t\turl: ajax || oSettings.sAjaxSource\r\n\t\t\t} ) );\r\n\t\t}\r\n\t\telse if ( typeof ajax === \u0027function\u0027 )\r\n\t\t{\r\n\t\t\t// Is a function - let the caller define what needs to be done\r\n\t\t\toSettings.jqXHR = ajax.call( instance, data, callback, oSettings );\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t// Object to extend the base settings\r\n\t\t\toSettings.jqXHR = $.ajax( $.extend( baseAjax, ajax ) );\r\n\t\r\n\t\t\t// Restore for next time around\r\n\t\t\tajax.data = ajaxData;\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Update the table using an Ajax call\r\n\t * @param {object} settings dataTables settings object\r\n\t * @returns {boolean} Block the table drawing or not\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnAjaxUpdate( settings )\r\n\t{\r\n\t\tsettings.iDraw\u002B\u002B;\r\n\t\t_fnProcessingDisplay( settings, true );\r\n\t\r\n\t\t_fnBuildAjax(\r\n\t\t\tsettings,\r\n\t\t\t_fnAjaxParameters( settings ),\r\n\t\t\tfunction(json) {\r\n\t\t\t\t_fnAjaxUpdateDraw( settings, json );\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Build up the parameters in an object needed for a server-side processing\r\n\t * request. Note that this is basically done twice, is different ways - a modern\r\n\t * method which is used by default in DataTables 1.10 which uses objects and\r\n\t * arrays, or the 1.9- method with is name / value pairs. 1.9 method is used if\r\n\t * the sAjaxSource option is used in the initialisation, or the legacyAjax\r\n\t * option is set.\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @returns {bool} block the table drawing or not\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnAjaxParameters( settings )\r\n\t{\r\n\t\tvar\r\n\t\t\tcolumns = settings.aoColumns,\r\n\t\t\tcolumnCount = columns.length,\r\n\t\t\tfeatures = settings.oFeatures,\r\n\t\t\tpreSearch = settings.oPreviousSearch,\r\n\t\t\tpreColSearch = settings.aoPreSearchCols,\r\n\t\t\ti, data = [], dataProp, column, columnSearch,\r\n\t\t\tsort = _fnSortFlatten( settings ),\r\n\t\t\tdisplayStart = settings._iDisplayStart,\r\n\t\t\tdisplayLength = features.bPaginate !== false ?\r\n\t\t\t\tsettings._iDisplayLength :\r\n\t\t\t\t-1;\r\n\t\r\n\t\tvar param = function ( name, value ) {\r\n\t\t\tdata.push( { \u0027name\u0027: name, \u0027value\u0027: value } );\r\n\t\t};\r\n\t\r\n\t\t// DataTables 1.9- compatible method\r\n\t\tparam( \u0027sEcho\u0027, settings.iDraw );\r\n\t\tparam( \u0027iColumns\u0027, columnCount );\r\n\t\tparam( \u0027sColumns\u0027, _pluck( columns, \u0027sName\u0027 ).join(\u0027,\u0027) );\r\n\t\tparam( \u0027iDisplayStart\u0027, displayStart );\r\n\t\tparam( \u0027iDisplayLength\u0027, displayLength );\r\n\t\r\n\t\t// DataTables 1.10\u002B method\r\n\t\tvar d = {\r\n\t\t\tdraw: settings.iDraw,\r\n\t\t\tcolumns: [],\r\n\t\t\torder: [],\r\n\t\t\tstart: displayStart,\r\n\t\t\tlength: displayLength,\r\n\t\t\tsearch: {\r\n\t\t\t\tvalue: preSearch.sSearch,\r\n\t\t\t\tregex: preSearch.bRegex\r\n\t\t\t}\r\n\t\t};\r\n\t\r\n\t\tfor ( i=0 ; i\u003CcolumnCount ; i\u002B\u002B ) {\r\n\t\t\tcolumn = columns[i];\r\n\t\t\tcolumnSearch = preColSearch[i];\r\n\t\t\tdataProp = typeof column.mData==\u0022function\u0022 ? \u0027function\u0027 : column.mData ;\r\n\t\r\n\t\t\td.columns.push( {\r\n\t\t\t\tdata: dataProp,\r\n\t\t\t\tname: column.sName,\r\n\t\t\t\tsearchable: column.bSearchable,\r\n\t\t\t\torderable: column.bSortable,\r\n\t\t\t\tsearch: {\r\n\t\t\t\t\tvalue: columnSearch.sSearch,\r\n\t\t\t\t\tregex: columnSearch.bRegex\r\n\t\t\t\t}\r\n\t\t\t} );\r\n\t\r\n\t\t\tparam( \u0022mDataProp_\u0022\u002Bi, dataProp );\r\n\t\r\n\t\t\tif ( features.bFilter ) {\r\n\t\t\t\tparam( \u0027sSearch_\u0027\u002Bi, columnSearch.sSearch );\r\n\t\t\t\tparam( \u0027bRegex_\u0027\u002Bi, columnSearch.bRegex );\r\n\t\t\t\tparam( \u0027bSearchable_\u0027\u002Bi, column.bSearchable );\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( features.bSort ) {\r\n\t\t\t\tparam( \u0027bSortable_\u0027\u002Bi, column.bSortable );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\tif ( features.bFilter ) {\r\n\t\t\tparam( \u0027sSearch\u0027, preSearch.sSearch );\r\n\t\t\tparam( \u0027bRegex\u0027, preSearch.bRegex );\r\n\t\t}\r\n\t\r\n\t\tif ( features.bSort ) {\r\n\t\t\t$.each( sort, function ( i, val ) {\r\n\t\t\t\td.order.push( { column: val.col, dir: val.dir } );\r\n\t\r\n\t\t\t\tparam( \u0027iSortCol_\u0027\u002Bi, val.col );\r\n\t\t\t\tparam( \u0027sSortDir_\u0027\u002Bi, val.dir );\r\n\t\t\t} );\r\n\t\r\n\t\t\tparam( \u0027iSortingCols\u0027, sort.length );\r\n\t\t}\r\n\t\r\n\t\t// If the legacy.ajax parameter is null, then we automatically decide which\r\n\t\t// form to use, based on sAjaxSource\r\n\t\tvar legacy = DataTable.ext.legacy.ajax;\r\n\t\tif ( legacy === null ) {\r\n\t\t\treturn settings.sAjaxSource ? data : d;\r\n\t\t}\r\n\t\r\n\t\t// Otherwise, if legacy has been specified then we use that to decide on the\r\n\t\t// form\r\n\t\treturn legacy ? data : d;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Data the data from the server (nuking the old) and redraw the table\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {object} json json data return from the server.\r\n\t * @param {string} json.sEcho Tracking flag for DataTables to match requests\r\n\t * @param {int} json.iTotalRecords Number of records in the data set, not accounting for filtering\r\n\t * @param {int} json.iTotalDisplayRecords Number of records in the data set, accounting for filtering\r\n\t * @param {array} json.aaData The data to display on this page\r\n\t * @param {string} [json.sColumns] Column ordering (sName, comma separated)\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnAjaxUpdateDraw ( settings, json )\r\n\t{\r\n\t\t// v1.10 uses camelCase variables, while 1.9 uses Hungarian notation.\r\n\t\t// Support both\r\n\t\tvar compat = function ( old, modern ) {\r\n\t\t\treturn json[old] !== undefined ? json[old] : json[modern];\r\n\t\t};\r\n\t\r\n\t\tvar data = _fnAjaxDataSrc( settings, json );\r\n\t\tvar draw = compat( \u0027sEcho\u0027, \u0027draw\u0027 );\r\n\t\tvar recordsTotal = compat( \u0027iTotalRecords\u0027, \u0027recordsTotal\u0027 );\r\n\t\tvar recordsFiltered = compat( \u0027iTotalDisplayRecords\u0027, \u0027recordsFiltered\u0027 );\r\n\t\r\n\t\tif ( draw !== undefined ) {\r\n\t\t\t// Protect against out of sequence returns\r\n\t\t\tif ( draw*1 \u003C settings.iDraw ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tsettings.iDraw = draw * 1;\r\n\t\t}\r\n\t\r\n\t\t// No data in returned object, so rather than an array, we show an empty table\r\n\t\tif ( ! data ) {\r\n\t\t\tdata = [];\r\n\t\t}\r\n\t\r\n\t\t_fnClearTable( settings );\r\n\t\tsettings._iRecordsTotal = parseInt(recordsTotal, 10);\r\n\t\tsettings._iRecordsDisplay = parseInt(recordsFiltered, 10);\r\n\t\r\n\t\tfor ( var i=0, ien=data.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t_fnAddData( settings, data[i] );\r\n\t\t}\r\n\t\tsettings.aiDisplay = settings.aiDisplayMaster.slice();\r\n\t\r\n\t\t_fnDraw( settings, true );\r\n\t\r\n\t\tif ( ! settings._bInitComplete ) {\r\n\t\t\t_fnInitComplete( settings, json );\r\n\t\t}\r\n\t\r\n\t\t_fnProcessingDisplay( settings, false );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Get the data from the JSON data source to use for drawing a table. Using\r\n\t * \u00A7_fnGetObjectDataFn\u00A7 allows the data to be sourced from a property of the\r\n\t * source object, or from a processing function.\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {object} json Data source object / array from the server\r\n\t * @return {array} Array of data to use\r\n\t */\r\n\t function _fnAjaxDataSrc ( oSettings, json, write )\r\n\t {\r\n\t\tvar dataSrc = $.isPlainObject( oSettings.ajax ) \u0026\u0026 oSettings.ajax.dataSrc !== undefined ?\r\n\t\t\toSettings.ajax.dataSrc :\r\n\t\t\toSettings.sAjaxDataProp; // Compatibility with 1.9-.\r\n\t\r\n\t\tif ( ! write ) {\r\n\t\t\tif ( dataSrc === \u0027data\u0027 ) {\r\n\t\t\t\t// If the default, then we still want to support the old style, and safely ignore\r\n\t\t\t\t// it if possible\r\n\t\t\t\treturn json.aaData || json[dataSrc];\r\n\t\t\t}\r\n\t\r\n\t\t\treturn dataSrc !== \u0022\u0022 ?\r\n\t\t\t\t_fnGetObjectDataFn( dataSrc )( json ) :\r\n\t\t\t\tjson;\r\n\t\t}\r\n\t\r\n\t\t// set\r\n\t\t_fnSetObjectDataFn( dataSrc )( json, write );\r\n\t}\r\n\t\r\n\t/**\r\n\t * Generate the node required for filtering text\r\n\t * @returns {node} Filter control element\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnFeatureHtmlFilter ( settings )\r\n\t{\r\n\t\tvar classes = settings.oClasses;\r\n\t\tvar tableId = settings.sTableId;\r\n\t\tvar language = settings.oLanguage;\r\n\t\tvar previousSearch = settings.oPreviousSearch;\r\n\t\tvar features = settings.aanFeatures;\r\n\t\tvar input = \u0027\u003Cinput type=\u0022search\u0022 class=\u0022\u0027\u002Bclasses.sFilterInput\u002B\u0027\u0022/\u003E\u0027;\r\n\t\r\n\t\tvar str = language.sSearch;\r\n\t\tstr = str.match(/_INPUT_/) ?\r\n\t\t\tstr.replace(\u0027_INPUT_\u0027, input) :\r\n\t\t\tstr\u002Binput;\r\n\t\r\n\t\tvar filter = $(\u0027\u003Cdiv/\u003E\u0027, {\r\n\t\t\t\t\u0027id\u0027: ! features.f ? tableId\u002B\u0027_filter\u0027 : null,\r\n\t\t\t\t\u0027class\u0027: classes.sFilter\r\n\t\t\t} )\r\n\t\t\t.append( $(\u0027\u003Clabel/\u003E\u0027 ).append( str ) );\r\n\t\r\n\t\tvar searchFn = function(event) {\r\n\t\t\t/* Update all other filter input elements for the new display */\r\n\t\t\tvar n = features.f;\r\n\t\t\tvar val = !this.value ? \u0022\u0022 : this.value; // mental IE8 fix :-(\r\n\t\t\tif(previousSearch.return \u0026\u0026 event.key !== \u0022Enter\u0022) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t/* Now do the filter */\r\n\t\t\tif ( val != previousSearch.sSearch ) {\r\n\t\t\t\t_fnFilterComplete( settings, {\r\n\t\t\t\t\t\u0022sSearch\u0022: val,\r\n\t\t\t\t\t\u0022bRegex\u0022: previousSearch.bRegex,\r\n\t\t\t\t\t\u0022bSmart\u0022: previousSearch.bSmart ,\r\n\t\t\t\t\t\u0022bCaseInsensitive\u0022: previousSearch.bCaseInsensitive,\r\n\t\t\t\t\t\u0022return\u0022: previousSearch.return\r\n\t\t\t\t} );\r\n\t\r\n\t\t\t\t// Need to redraw, without resorting\r\n\t\t\t\tsettings._iDisplayStart = 0;\r\n\t\t\t\t_fnDraw( settings );\r\n\t\t\t}\r\n\t\t};\r\n\t\r\n\t\tvar searchDelay = settings.searchDelay !== null ?\r\n\t\t\tsettings.searchDelay :\r\n\t\t\t_fnDataSource( settings ) === \u0027ssp\u0027 ?\r\n\t\t\t\t400 :\r\n\t\t\t\t0;\r\n\t\r\n\t\tvar jqFilter = $(\u0027input\u0027, filter)\r\n\t\t\t.val( previousSearch.sSearch )\r\n\t\t\t.attr( \u0027placeholder\u0027, language.sSearchPlaceholder )\r\n\t\t\t.on(\r\n\t\t\t\t\u0027keyup.DT search.DT input.DT paste.DT cut.DT\u0027,\r\n\t\t\t\tsearchDelay ?\r\n\t\t\t\t\t_fnThrottle( searchFn, searchDelay ) :\r\n\t\t\t\t\tsearchFn\r\n\t\t\t)\r\n\t\t\t.on( \u0027mouseup\u0027, function(e) {\r\n\t\t\t\t// Edge fix! Edge 17 does not trigger anything other than mouse events when clicking\r\n\t\t\t\t// on the clear icon (Edge bug 17584515). This is safe in other browsers as \u00A7searchFn\u00A7\r\n\t\t\t\t// checks the value to see if it has changed. In other browsers it won\u0027t have.\r\n\t\t\t\tsetTimeout( function () {\r\n\t\t\t\t\tsearchFn.call(jqFilter[0], e);\r\n\t\t\t\t}, 10);\r\n\t\t\t} )\r\n\t\t\t.on( \u0027keypress.DT\u0027, function(e) {\r\n\t\t\t\t/* Prevent form submission */\r\n\t\t\t\tif ( e.keyCode == 13 ) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t} )\r\n\t\t\t.attr(\u0027aria-controls\u0027, tableId);\r\n\t\r\n\t\t// Update the input elements whenever the table is filtered\r\n\t\t$(settings.nTable).on( \u0027search.dt.DT\u0027, function ( ev, s ) {\r\n\t\t\tif ( settings === s ) {\r\n\t\t\t\t// IE9 throws an \u0027unknown error\u0027 if document.activeElement is used\r\n\t\t\t\t// inside an iframe or frame...\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif ( jqFilter[0] !== document.activeElement ) {\r\n\t\t\t\t\t\tjqFilter.val( previousSearch.sSearch );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tcatch ( e ) {}\r\n\t\t\t}\r\n\t\t} );\r\n\t\r\n\t\treturn filter[0];\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Filter the table using both the global filter and column based filtering\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {object} oSearch search information\r\n\t * @param {int} [iForce] force a research of the master array (1) or not (undefined or 0)\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnFilterComplete ( oSettings, oInput, iForce )\r\n\t{\r\n\t\tvar oPrevSearch = oSettings.oPreviousSearch;\r\n\t\tvar aoPrevSearch = oSettings.aoPreSearchCols;\r\n\t\tvar fnSaveFilter = function ( oFilter ) {\r\n\t\t\t/* Save the filtering values */\r\n\t\t\toPrevSearch.sSearch = oFilter.sSearch;\r\n\t\t\toPrevSearch.bRegex = oFilter.bRegex;\r\n\t\t\toPrevSearch.bSmart = oFilter.bSmart;\r\n\t\t\toPrevSearch.bCaseInsensitive = oFilter.bCaseInsensitive;\r\n\t\t\toPrevSearch.return = oFilter.return;\r\n\t\t};\r\n\t\tvar fnRegex = function ( o ) {\r\n\t\t\t// Backwards compatibility with the bEscapeRegex option\r\n\t\t\treturn o.bEscapeRegex !== undefined ? !o.bEscapeRegex : o.bRegex;\r\n\t\t};\r\n\t\r\n\t\t// Resolve any column types that are unknown due to addition or invalidation\r\n\t\t// @todo As per sort - can this be moved into an event handler?\r\n\t\t_fnColumnTypes( oSettings );\r\n\t\r\n\t\t/* In server-side processing all filtering is done by the server, so no point hanging around here */\r\n\t\tif ( _fnDataSource( oSettings ) != \u0027ssp\u0027 )\r\n\t\t{\r\n\t\t\t/* Global filter */\r\n\t\t\t_fnFilter( oSettings, oInput.sSearch, iForce, fnRegex(oInput), oInput.bSmart, oInput.bCaseInsensitive, oInput.return );\r\n\t\t\tfnSaveFilter( oInput );\r\n\t\r\n\t\t\t/* Now do the individual column filter */\r\n\t\t\tfor ( var i=0 ; i\u003CaoPrevSearch.length ; i\u002B\u002B )\r\n\t\t\t{\r\n\t\t\t\t_fnFilterColumn( oSettings, aoPrevSearch[i].sSearch, i, fnRegex(aoPrevSearch[i]),\r\n\t\t\t\t\taoPrevSearch[i].bSmart, aoPrevSearch[i].bCaseInsensitive );\r\n\t\t\t}\r\n\t\r\n\t\t\t/* Custom filtering */\r\n\t\t\t_fnFilterCustom( oSettings );\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfnSaveFilter( oInput );\r\n\t\t}\r\n\t\r\n\t\t/* Tell the draw function we have been filtering */\r\n\t\toSettings.bFiltered = true;\r\n\t\t_fnCallbackFire( oSettings, null, \u0027search\u0027, [oSettings] );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Apply custom filtering functions\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnFilterCustom( settings )\r\n\t{\r\n\t\tvar filters = DataTable.ext.search;\r\n\t\tvar displayRows = settings.aiDisplay;\r\n\t\tvar row, rowIdx;\r\n\t\r\n\t\tfor ( var i=0, ien=filters.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\tvar rows = [];\r\n\t\r\n\t\t\t// Loop over each row and see if it should be included\r\n\t\t\tfor ( var j=0, jen=displayRows.length ; j\u003Cjen ; j\u002B\u002B ) {\r\n\t\t\t\trowIdx = displayRows[ j ];\r\n\t\t\t\trow = settings.aoData[ rowIdx ];\r\n\t\r\n\t\t\t\tif ( filters[i]( settings, row._aFilterData, rowIdx, row._aData, j ) ) {\r\n\t\t\t\t\trows.push( rowIdx );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\t// So the array reference doesn\u0027t break set the results into the\r\n\t\t\t// existing array\r\n\t\t\tdisplayRows.length = 0;\r\n\t\t\t$.merge( displayRows, rows );\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Filter the table on a per-column basis\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {string} sInput string to filter on\r\n\t * @param {int} iColumn column to filter\r\n\t * @param {bool} bRegex treat search string as a regular expression or not\r\n\t * @param {bool} bSmart use smart filtering or not\r\n\t * @param {bool} bCaseInsensitive Do case insensitive matching or not\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnFilterColumn ( settings, searchStr, colIdx, regex, smart, caseInsensitive )\r\n\t{\r\n\t\tif ( searchStr === \u0027\u0027 ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\tvar data;\r\n\t\tvar out = [];\r\n\t\tvar display = settings.aiDisplay;\r\n\t\tvar rpSearch = _fnFilterCreateSearch( searchStr, regex, smart, caseInsensitive );\r\n\t\r\n\t\tfor ( var i=0 ; i\u003Cdisplay.length ; i\u002B\u002B ) {\r\n\t\t\tdata = settings.aoData[ display[i] ]._aFilterData[ colIdx ];\r\n\t\r\n\t\t\tif ( rpSearch.test( data ) ) {\r\n\t\t\t\tout.push( display[i] );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\tsettings.aiDisplay = out;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Filter the data table based on user input and draw the table\r\n\t * @param {object} settings dataTables settings object\r\n\t * @param {string} input string to filter on\r\n\t * @param {int} force optional - force a research of the master array (1) or not (undefined or 0)\r\n\t * @param {bool} regex treat as a regular expression or not\r\n\t * @param {bool} smart perform smart filtering or not\r\n\t * @param {bool} caseInsensitive Do case insensitive matching or not\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnFilter( settings, input, force, regex, smart, caseInsensitive )\r\n\t{\r\n\t\tvar rpSearch = _fnFilterCreateSearch( input, regex, smart, caseInsensitive );\r\n\t\tvar prevSearch = settings.oPreviousSearch.sSearch;\r\n\t\tvar displayMaster = settings.aiDisplayMaster;\r\n\t\tvar display, invalidated, i;\r\n\t\tvar filtered = [];\r\n\t\r\n\t\t// Need to take account of custom filtering functions - always filter\r\n\t\tif ( DataTable.ext.search.length !== 0 ) {\r\n\t\t\tforce = true;\r\n\t\t}\r\n\t\r\n\t\t// Check if any of the rows were invalidated\r\n\t\tinvalidated = _fnFilterData( settings );\r\n\t\r\n\t\t// If the input is blank - we just want the full data set\r\n\t\tif ( input.length \u003C= 0 ) {\r\n\t\t\tsettings.aiDisplay = displayMaster.slice();\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// New search - start from the master array\r\n\t\t\tif ( invalidated ||\r\n\t\t\t\t force ||\r\n\t\t\t\t regex ||\r\n\t\t\t\t prevSearch.length \u003E input.length ||\r\n\t\t\t\t input.indexOf(prevSearch) !== 0 ||\r\n\t\t\t\t settings.bSorted // On resort, the display master needs to be\r\n\t\t\t\t // re-filtered since indexes will have changed\r\n\t\t\t) {\r\n\t\t\t\tsettings.aiDisplay = displayMaster.slice();\r\n\t\t\t}\r\n\t\r\n\t\t\t// Search the display array\r\n\t\t\tdisplay = settings.aiDisplay;\r\n\t\r\n\t\t\tfor ( i=0 ; i\u003Cdisplay.length ; i\u002B\u002B ) {\r\n\t\t\t\tif ( rpSearch.test( settings.aoData[ display[i] ]._sFilterRow ) ) {\r\n\t\t\t\t\tfiltered.push( display[i] );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\tsettings.aiDisplay = filtered;\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Build a regular expression object suitable for searching a table\r\n\t * @param {string} sSearch string to search for\r\n\t * @param {bool} bRegex treat as a regular expression or not\r\n\t * @param {bool} bSmart perform smart filtering or not\r\n\t * @param {bool} bCaseInsensitive Do case insensitive matching or not\r\n\t * @returns {RegExp} constructed object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnFilterCreateSearch( search, regex, smart, caseInsensitive )\r\n\t{\r\n\t\tsearch = regex ?\r\n\t\t\tsearch :\r\n\t\t\t_fnEscapeRegex( search );\r\n\t\t\r\n\t\tif ( smart ) {\r\n\t\t\t/* For smart filtering we want to allow the search to work regardless of\r\n\t\t\t * word order. We also want double quoted text to be preserved, so word\r\n\t\t\t * order is important - a la google. So this is what we want to\r\n\t\t\t * generate:\r\n\t\t\t * \r\n\t\t\t * ^(?=.*?\\bone\\b)(?=.*?\\btwo three\\b)(?=.*?\\bfour\\b).*$\r\n\t\t\t */\r\n\t\t\tvar a = $.map( search.match( /\u0022[^\u0022]\u002B\u0022|[^ ]\u002B/g ) || [\u0027\u0027], function ( word ) {\r\n\t\t\t\tif ( word.charAt(0) === \u0027\u0022\u0027 ) {\r\n\t\t\t\t\tvar m = word.match( /^\u0022(.*)\u0022$/ );\r\n\t\t\t\t\tword = m ? m[1] : word;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\treturn word.replace(\u0027\u0022\u0027, \u0027\u0027);\r\n\t\t\t} );\r\n\t\r\n\t\t\tsearch = \u0027^(?=.*?\u0027\u002Ba.join( \u0027)(?=.*?\u0027 )\u002B\u0027).*$\u0027;\r\n\t\t}\r\n\t\r\n\t\treturn new RegExp( search, caseInsensitive ? \u0027i\u0027 : \u0027\u0027 );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Escape a string such that it can be used in a regular expression\r\n\t * @param {string} sVal string to escape\r\n\t * @returns {string} escaped string\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tvar _fnEscapeRegex = DataTable.util.escapeRegex;\r\n\t\r\n\tvar __filter_div = $(\u0027\u003Cdiv\u003E\u0027)[0];\r\n\tvar __filter_div_textContent = __filter_div.textContent !== undefined;\r\n\t\r\n\t// Update the filtering data for each row if needed (by invalidation or first run)\r\n\tfunction _fnFilterData ( settings )\r\n\t{\r\n\t\tvar columns = settings.aoColumns;\r\n\t\tvar column;\r\n\t\tvar i, j, ien, jen, filterData, cellData, row;\r\n\t\tvar wasInvalidated = false;\r\n\t\r\n\t\tfor ( i=0, ien=settings.aoData.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\trow = settings.aoData[i];\r\n\t\r\n\t\t\tif ( ! row._aFilterData ) {\r\n\t\t\t\tfilterData = [];\r\n\t\r\n\t\t\t\tfor ( j=0, jen=columns.length ; j\u003Cjen ; j\u002B\u002B ) {\r\n\t\t\t\t\tcolumn = columns[j];\r\n\t\r\n\t\t\t\t\tif ( column.bSearchable ) {\r\n\t\t\t\t\t\tcellData = _fnGetCellData( settings, i, j, \u0027filter\u0027 );\r\n\t\r\n\t\t\t\t\t\t// Search in DataTables 1.10 is string based. In 1.11 this\r\n\t\t\t\t\t\t// should be altered to also allow strict type checking.\r\n\t\t\t\t\t\tif ( cellData === null ) {\r\n\t\t\t\t\t\t\tcellData = \u0027\u0027;\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\tif ( typeof cellData !== \u0027string\u0027 \u0026\u0026 cellData.toString ) {\r\n\t\t\t\t\t\t\tcellData = cellData.toString();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tcellData = \u0027\u0027;\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t// If it looks like there is an HTML entity in the string,\r\n\t\t\t\t\t// attempt to decode it so sorting works as expected. Note that\r\n\t\t\t\t\t// we could use a single line of jQuery to do this, but the DOM\r\n\t\t\t\t\t// method used here is much faster http://jsperf.com/html-decode\r\n\t\t\t\t\tif ( cellData.indexOf \u0026\u0026 cellData.indexOf(\u0027\u0026\u0027) !== -1 ) {\r\n\t\t\t\t\t\t__filter_div.innerHTML = cellData;\r\n\t\t\t\t\t\tcellData = __filter_div_textContent ?\r\n\t\t\t\t\t\t\t__filter_div.textContent :\r\n\t\t\t\t\t\t\t__filter_div.innerText;\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tif ( cellData.replace ) {\r\n\t\t\t\t\t\tcellData = cellData.replace(/[\\r\\n\\u2028]/g, \u0027\u0027);\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tfilterData.push( cellData );\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\trow._aFilterData = filterData;\r\n\t\t\t\trow._sFilterRow = filterData.join(\u0027 \u0027);\r\n\t\t\t\twasInvalidated = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn wasInvalidated;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Convert from the internal Hungarian notation to camelCase for external\r\n\t * interaction\r\n\t * @param {object} obj Object to convert\r\n\t * @returns {object} Inverted object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnSearchToCamel ( obj )\r\n\t{\r\n\t\treturn {\r\n\t\t\tsearch: obj.sSearch,\r\n\t\t\tsmart: obj.bSmart,\r\n\t\t\tregex: obj.bRegex,\r\n\t\t\tcaseInsensitive: obj.bCaseInsensitive\r\n\t\t};\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Convert from camelCase notation to the internal Hungarian. We could use the\r\n\t * Hungarian convert function here, but this is cleaner\r\n\t * @param {object} obj Object to convert\r\n\t * @returns {object} Inverted object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnSearchToHung ( obj )\r\n\t{\r\n\t\treturn {\r\n\t\t\tsSearch: obj.search,\r\n\t\t\tbSmart: obj.smart,\r\n\t\t\tbRegex: obj.regex,\r\n\t\t\tbCaseInsensitive: obj.caseInsensitive\r\n\t\t};\r\n\t}\r\n\t\r\n\t/**\r\n\t * Generate the node required for the info display\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @returns {node} Information element\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnFeatureHtmlInfo ( settings )\r\n\t{\r\n\t\tvar\r\n\t\t\ttid = settings.sTableId,\r\n\t\t\tnodes = settings.aanFeatures.i,\r\n\t\t\tn = $(\u0027\u003Cdiv/\u003E\u0027, {\r\n\t\t\t\t\u0027class\u0027: settings.oClasses.sInfo,\r\n\t\t\t\t\u0027id\u0027: ! nodes ? tid\u002B\u0027_info\u0027 : null\r\n\t\t\t} );\r\n\t\r\n\t\tif ( ! nodes ) {\r\n\t\t\t// Update display on each draw\r\n\t\t\tsettings.aoDrawCallback.push( {\r\n\t\t\t\t\u0022fn\u0022: _fnUpdateInfo,\r\n\t\t\t\t\u0022sName\u0022: \u0022information\u0022\r\n\t\t\t} );\r\n\t\r\n\t\t\tn\r\n\t\t\t\t.attr( \u0027role\u0027, \u0027status\u0027 )\r\n\t\t\t\t.attr( \u0027aria-live\u0027, \u0027polite\u0027 );\r\n\t\r\n\t\t\t// Table is described by our info div\r\n\t\t\t$(settings.nTable).attr( \u0027aria-describedby\u0027, tid\u002B\u0027_info\u0027 );\r\n\t\t}\r\n\t\r\n\t\treturn n[0];\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Update the information elements in the display\r\n\t * @param {object} settings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnUpdateInfo ( settings )\r\n\t{\r\n\t\t/* Show information about the table */\r\n\t\tvar nodes = settings.aanFeatures.i;\r\n\t\tif ( nodes.length === 0 ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\tvar\r\n\t\t\tlang = settings.oLanguage,\r\n\t\t\tstart = settings._iDisplayStart\u002B1,\r\n\t\t\tend = settings.fnDisplayEnd(),\r\n\t\t\tmax = settings.fnRecordsTotal(),\r\n\t\t\ttotal = settings.fnRecordsDisplay(),\r\n\t\t\tout = total ?\r\n\t\t\t\tlang.sInfo :\r\n\t\t\t\tlang.sInfoEmpty;\r\n\t\r\n\t\tif ( total !== max ) {\r\n\t\t\t/* Record set after filtering */\r\n\t\t\tout \u002B= \u0027 \u0027 \u002B lang.sInfoFiltered;\r\n\t\t}\r\n\t\r\n\t\t// Convert the macros\r\n\t\tout \u002B= lang.sInfoPostFix;\r\n\t\tout = _fnInfoMacros( settings, out );\r\n\t\r\n\t\tvar callback = lang.fnInfoCallback;\r\n\t\tif ( callback !== null ) {\r\n\t\t\tout = callback.call( settings.oInstance,\r\n\t\t\t\tsettings, start, end, max, total, out\r\n\t\t\t);\r\n\t\t}\r\n\t\r\n\t\t$(nodes).html( out );\r\n\t}\r\n\t\r\n\t\r\n\tfunction _fnInfoMacros ( settings, str )\r\n\t{\r\n\t\t// When infinite scrolling, we are always starting at 1. _iDisplayStart is used only\r\n\t\t// internally\r\n\t\tvar\r\n\t\t\tformatter = settings.fnFormatNumber,\r\n\t\t\tstart = settings._iDisplayStart\u002B1,\r\n\t\t\tlen = settings._iDisplayLength,\r\n\t\t\tvis = settings.fnRecordsDisplay(),\r\n\t\t\tall = len === -1;\r\n\t\r\n\t\treturn str.\r\n\t\t\treplace(/_START_/g, formatter.call( settings, start ) ).\r\n\t\t\treplace(/_END_/g, formatter.call( settings, settings.fnDisplayEnd() ) ).\r\n\t\t\treplace(/_MAX_/g, formatter.call( settings, settings.fnRecordsTotal() ) ).\r\n\t\t\treplace(/_TOTAL_/g, formatter.call( settings, vis ) ).\r\n\t\t\treplace(/_PAGE_/g, formatter.call( settings, all ? 1 : Math.ceil( start / len ) ) ).\r\n\t\t\treplace(/_PAGES_/g, formatter.call( settings, all ? 1 : Math.ceil( vis / len ) ) );\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Draw the table for the first time, adding all required features\r\n\t * @param {object} settings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnInitialise ( settings )\r\n\t{\r\n\t\tvar i, iLen, iAjaxStart=settings.iInitDisplayStart;\r\n\t\tvar columns = settings.aoColumns, column;\r\n\t\tvar features = settings.oFeatures;\r\n\t\tvar deferLoading = settings.bDeferLoading; // value modified by the draw\r\n\t\r\n\t\t/* Ensure that the table data is fully initialised */\r\n\t\tif ( ! settings.bInitialised ) {\r\n\t\t\tsetTimeout( function(){ _fnInitialise( settings ); }, 200 );\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\t/* Show the display HTML options */\r\n\t\t_fnAddOptionsHtml( settings );\r\n\t\r\n\t\t/* Build and draw the header / footer for the table */\r\n\t\t_fnBuildHead( settings );\r\n\t\t_fnDrawHead( settings, settings.aoHeader );\r\n\t\t_fnDrawHead( settings, settings.aoFooter );\r\n\t\r\n\t\t/* Okay to show that something is going on now */\r\n\t\t_fnProcessingDisplay( settings, true );\r\n\t\r\n\t\t/* Calculate sizes for columns */\r\n\t\tif ( features.bAutoWidth ) {\r\n\t\t\t_fnCalculateColumnWidths( settings );\r\n\t\t}\r\n\t\r\n\t\tfor ( i=0, iLen=columns.length ; i\u003CiLen ; i\u002B\u002B ) {\r\n\t\t\tcolumn = columns[i];\r\n\t\r\n\t\t\tif ( column.sWidth ) {\r\n\t\t\t\tcolumn.nTh.style.width = _fnStringToCss( column.sWidth );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t_fnCallbackFire( settings, null, \u0027preInit\u0027, [settings] );\r\n\t\r\n\t\t// If there is default sorting required - let\u0027s do it. The sort function\r\n\t\t// will do the drawing for us. Otherwise we draw the table regardless of the\r\n\t\t// Ajax source - this allows the table to look initialised for Ajax sourcing\r\n\t\t// data (show \u0027loading\u0027 message possibly)\r\n\t\t_fnReDraw( settings );\r\n\t\r\n\t\t// Server-side processing init complete is done by _fnAjaxUpdateDraw\r\n\t\tvar dataSrc = _fnDataSource( settings );\r\n\t\tif ( dataSrc != \u0027ssp\u0027 || deferLoading ) {\r\n\t\t\t// if there is an ajax source load the data\r\n\t\t\tif ( dataSrc == \u0027ajax\u0027 ) {\r\n\t\t\t\t_fnBuildAjax( settings, [], function(json) {\r\n\t\t\t\t\tvar aData = _fnAjaxDataSrc( settings, json );\r\n\t\r\n\t\t\t\t\t// Got the data - add it to the table\r\n\t\t\t\t\tfor ( i=0 ; i\u003CaData.length ; i\u002B\u002B ) {\r\n\t\t\t\t\t\t_fnAddData( settings, aData[i] );\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t// Reset the init display for cookie saving. We\u0027ve already done\r\n\t\t\t\t\t// a filter, and therefore cleared it before. So we need to make\r\n\t\t\t\t\t// it appear \u0027fresh\u0027\r\n\t\t\t\t\tsettings.iInitDisplayStart = iAjaxStart;\r\n\t\r\n\t\t\t\t\t_fnReDraw( settings );\r\n\t\r\n\t\t\t\t\t_fnProcessingDisplay( settings, false );\r\n\t\t\t\t\t_fnInitComplete( settings, json );\r\n\t\t\t\t}, settings );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t_fnProcessingDisplay( settings, false );\r\n\t\t\t\t_fnInitComplete( settings );\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Draw the table for the first time, adding all required features\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {object} [json] JSON from the server that completed the table, if using Ajax source\r\n\t * with client-side processing (optional)\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnInitComplete ( settings, json )\r\n\t{\r\n\t\tsettings._bInitComplete = true;\r\n\t\r\n\t\t// When data was added after the initialisation (data or Ajax) we need to\r\n\t\t// calculate the column sizing\r\n\t\tif ( json || settings.oInit.aaData ) {\r\n\t\t\t_fnAdjustColumnSizing( settings );\r\n\t\t}\r\n\t\r\n\t\t_fnCallbackFire( settings, null, \u0027plugin-init\u0027, [settings, json] );\r\n\t\t_fnCallbackFire( settings, \u0027aoInitComplete\u0027, \u0027init\u0027, [settings, json] );\r\n\t}\r\n\t\r\n\t\r\n\tfunction _fnLengthChange ( settings, val )\r\n\t{\r\n\t\tvar len = parseInt( val, 10 );\r\n\t\tsettings._iDisplayLength = len;\r\n\t\r\n\t\t_fnLengthOverflow( settings );\r\n\t\r\n\t\t// Fire length change event\r\n\t\t_fnCallbackFire( settings, null, \u0027length\u0027, [settings, len] );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Generate the node required for user display length changing\r\n\t * @param {object} settings dataTables settings object\r\n\t * @returns {node} Display length feature node\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnFeatureHtmlLength ( settings )\r\n\t{\r\n\t\tvar\r\n\t\t\tclasses = settings.oClasses,\r\n\t\t\ttableId = settings.sTableId,\r\n\t\t\tmenu = settings.aLengthMenu,\r\n\t\t\td2 = Array.isArray( menu[0] ),\r\n\t\t\tlengths = d2 ? menu[0] : menu,\r\n\t\t\tlanguage = d2 ? menu[1] : menu;\r\n\t\r\n\t\tvar select = $(\u0027\u003Cselect/\u003E\u0027, {\r\n\t\t\t\u0027name\u0027: tableId\u002B\u0027_length\u0027,\r\n\t\t\t\u0027aria-controls\u0027: tableId,\r\n\t\t\t\u0027class\u0027: classes.sLengthSelect\r\n\t\t} );\r\n\t\r\n\t\tfor ( var i=0, ien=lengths.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\tselect[0][ i ] = new Option(\r\n\t\t\t\ttypeof language[i] === \u0027number\u0027 ?\r\n\t\t\t\t\tsettings.fnFormatNumber( language[i] ) :\r\n\t\t\t\t\tlanguage[i],\r\n\t\t\t\tlengths[i]\r\n\t\t\t);\r\n\t\t}\r\n\t\r\n\t\tvar div = $(\u0027\u003Cdiv\u003E\u003Clabel/\u003E\u003C/div\u003E\u0027).addClass( classes.sLength );\r\n\t\tif ( ! settings.aanFeatures.l ) {\r\n\t\t\tdiv[0].id = tableId\u002B\u0027_length\u0027;\r\n\t\t}\r\n\t\r\n\t\tdiv.children().append(\r\n\t\t\tsettings.oLanguage.sLengthMenu.replace( \u0027_MENU_\u0027, select[0].outerHTML )\r\n\t\t);\r\n\t\r\n\t\t// Can\u0027t use \u00A7select\u00A7 variable as user might provide their own and the\r\n\t\t// reference is broken by the use of outerHTML\r\n\t\t$(\u0027select\u0027, div)\r\n\t\t\t.val( settings._iDisplayLength )\r\n\t\t\t.on( \u0027change.DT\u0027, function(e) {\r\n\t\t\t\t_fnLengthChange( settings, $(this).val() );\r\n\t\t\t\t_fnDraw( settings );\r\n\t\t\t} );\r\n\t\r\n\t\t// Update node value whenever anything changes the table\u0027s length\r\n\t\t$(settings.nTable).on( \u0027length.dt.DT\u0027, function (e, s, len) {\r\n\t\t\tif ( settings === s ) {\r\n\t\t\t\t$(\u0027select\u0027, div).val( len );\r\n\t\t\t}\r\n\t\t} );\r\n\t\r\n\t\treturn div[0];\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Note that most of the paging logic is done in\r\n\t * DataTable.ext.pager\r\n\t */\r\n\t\r\n\t/**\r\n\t * Generate the node required for default pagination\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @returns {node} Pagination feature node\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnFeatureHtmlPaginate ( settings )\r\n\t{\r\n\t\tvar\r\n\t\t\ttype = settings.sPaginationType,\r\n\t\t\tplugin = DataTable.ext.pager[ type ],\r\n\t\t\tmodern = typeof plugin === \u0027function\u0027,\r\n\t\t\tredraw = function( settings ) {\r\n\t\t\t\t_fnDraw( settings );\r\n\t\t\t},\r\n\t\t\tnode = $(\u0027\u003Cdiv/\u003E\u0027).addClass( settings.oClasses.sPaging \u002B type )[0],\r\n\t\t\tfeatures = settings.aanFeatures;\r\n\t\r\n\t\tif ( ! modern ) {\r\n\t\t\tplugin.fnInit( settings, node, redraw );\r\n\t\t}\r\n\t\r\n\t\t/* Add a draw callback for the pagination on first instance, to update the paging display */\r\n\t\tif ( ! features.p )\r\n\t\t{\r\n\t\t\tnode.id = settings.sTableId\u002B\u0027_paginate\u0027;\r\n\t\r\n\t\t\tsettings.aoDrawCallback.push( {\r\n\t\t\t\t\u0022fn\u0022: function( settings ) {\r\n\t\t\t\t\tif ( modern ) {\r\n\t\t\t\t\t\tvar\r\n\t\t\t\t\t\t\tstart = settings._iDisplayStart,\r\n\t\t\t\t\t\t\tlen = settings._iDisplayLength,\r\n\t\t\t\t\t\t\tvisRecords = settings.fnRecordsDisplay(),\r\n\t\t\t\t\t\t\tall = len === -1,\r\n\t\t\t\t\t\t\tpage = all ? 0 : Math.ceil( start / len ),\r\n\t\t\t\t\t\t\tpages = all ? 1 : Math.ceil( visRecords / len ),\r\n\t\t\t\t\t\t\tbuttons = plugin(page, pages),\r\n\t\t\t\t\t\t\ti, ien;\r\n\t\r\n\t\t\t\t\t\tfor ( i=0, ien=features.p.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t\t\t\t\t_fnRenderer( settings, \u0027pageButton\u0027 )(\r\n\t\t\t\t\t\t\t\tsettings, features.p[i], i, buttons, page, pages\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tplugin.fnUpdate( settings, redraw );\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t\u0022sName\u0022: \u0022pagination\u0022\r\n\t\t\t} );\r\n\t\t}\r\n\t\r\n\t\treturn node;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Alter the display settings to change the page\r\n\t * @param {object} settings DataTables settings object\r\n\t * @param {string|int} action Paging action to take: \u0022first\u0022, \u0022previous\u0022,\r\n\t * \u0022next\u0022 or \u0022last\u0022 or page number to jump to (integer)\r\n\t * @param [bool] redraw Automatically draw the update or not\r\n\t * @returns {bool} true page has changed, false - no change\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnPageChange ( settings, action, redraw )\r\n\t{\r\n\t\tvar\r\n\t\t\tstart = settings._iDisplayStart,\r\n\t\t\tlen = settings._iDisplayLength,\r\n\t\t\trecords = settings.fnRecordsDisplay();\r\n\t\r\n\t\tif ( records === 0 || len === -1 )\r\n\t\t{\r\n\t\t\tstart = 0;\r\n\t\t}\r\n\t\telse if ( typeof action === \u0022number\u0022 )\r\n\t\t{\r\n\t\t\tstart = action * len;\r\n\t\r\n\t\t\tif ( start \u003E records )\r\n\t\t\t{\r\n\t\t\t\tstart = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( action == \u0022first\u0022 )\r\n\t\t{\r\n\t\t\tstart = 0;\r\n\t\t}\r\n\t\telse if ( action == \u0022previous\u0022 )\r\n\t\t{\r\n\t\t\tstart = len \u003E= 0 ?\r\n\t\t\t\tstart - len :\r\n\t\t\t\t0;\r\n\t\r\n\t\t\tif ( start \u003C 0 )\r\n\t\t\t{\r\n\t\t\t start = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( action == \u0022next\u0022 )\r\n\t\t{\r\n\t\t\tif ( start \u002B len \u003C records )\r\n\t\t\t{\r\n\t\t\t\tstart \u002B= len;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( action == \u0022last\u0022 )\r\n\t\t{\r\n\t\t\tstart = Math.floor( (records-1) / len) * len;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t_fnLog( settings, 0, \u0022Unknown paging action: \u0022\u002Baction, 5 );\r\n\t\t}\r\n\t\r\n\t\tvar changed = settings._iDisplayStart !== start;\r\n\t\tsettings._iDisplayStart = start;\r\n\t\r\n\t\tif ( changed ) {\r\n\t\t\t_fnCallbackFire( settings, null, \u0027page\u0027, [settings] );\r\n\t\r\n\t\t\tif ( redraw ) {\r\n\t\t\t\t_fnDraw( settings );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn changed;\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Generate the node required for the processing node\r\n\t * @param {object} settings dataTables settings object\r\n\t * @returns {node} Processing element\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnFeatureHtmlProcessing ( settings )\r\n\t{\r\n\t\treturn $(\u0027\u003Cdiv/\u003E\u0027, {\r\n\t\t\t\t\u0027id\u0027: ! settings.aanFeatures.r ? settings.sTableId\u002B\u0027_processing\u0027 : null,\r\n\t\t\t\t\u0027class\u0027: settings.oClasses.sProcessing\r\n\t\t\t} )\r\n\t\t\t.html( settings.oLanguage.sProcessing )\r\n\t\t\t.insertBefore( settings.nTable )[0];\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Display or hide the processing indicator\r\n\t * @param {object} settings dataTables settings object\r\n\t * @param {bool} show Show the processing indicator (true) or not (false)\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnProcessingDisplay ( settings, show )\r\n\t{\r\n\t\tif ( settings.oFeatures.bProcessing ) {\r\n\t\t\t$(settings.aanFeatures.r).css( \u0027display\u0027, show ? \u0027block\u0027 : \u0027none\u0027 );\r\n\t\t}\r\n\t\r\n\t\t_fnCallbackFire( settings, null, \u0027processing\u0027, [settings, show] );\r\n\t}\r\n\t\r\n\t/**\r\n\t * Add any control elements for the table - specifically scrolling\r\n\t * @param {object} settings dataTables settings object\r\n\t * @returns {node} Node to add to the DOM\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnFeatureHtmlTable ( settings )\r\n\t{\r\n\t\tvar table = $(settings.nTable);\r\n\t\r\n\t\t// Scrolling from here on in\r\n\t\tvar scroll = settings.oScroll;\r\n\t\r\n\t\tif ( scroll.sX === \u0027\u0027 \u0026\u0026 scroll.sY === \u0027\u0027 ) {\r\n\t\t\treturn settings.nTable;\r\n\t\t}\r\n\t\r\n\t\tvar scrollX = scroll.sX;\r\n\t\tvar scrollY = scroll.sY;\r\n\t\tvar classes = settings.oClasses;\r\n\t\tvar caption = table.children(\u0027caption\u0027);\r\n\t\tvar captionSide = caption.length ? caption[0]._captionSide : null;\r\n\t\tvar headerClone = $( table[0].cloneNode(false) );\r\n\t\tvar footerClone = $( table[0].cloneNode(false) );\r\n\t\tvar footer = table.children(\u0027tfoot\u0027);\r\n\t\tvar _div = \u0027\u003Cdiv/\u003E\u0027;\r\n\t\tvar size = function ( s ) {\r\n\t\t\treturn !s ? null : _fnStringToCss( s );\r\n\t\t};\r\n\t\r\n\t\tif ( ! footer.length ) {\r\n\t\t\tfooter = null;\r\n\t\t}\r\n\t\r\n\t\t/*\r\n\t\t * The HTML structure that we want to generate in this function is:\r\n\t\t * div - scroller\r\n\t\t * div - scroll head\r\n\t\t * div - scroll head inner\r\n\t\t * table - scroll head table\r\n\t\t * thead - thead\r\n\t\t * div - scroll body\r\n\t\t * table - table (master table)\r\n\t\t * thead - thead clone for sizing\r\n\t\t * tbody - tbody\r\n\t\t * div - scroll foot\r\n\t\t * div - scroll foot inner\r\n\t\t * table - scroll foot table\r\n\t\t * tfoot - tfoot\r\n\t\t */\r\n\t\tvar scroller = $( _div, { \u0027class\u0027: classes.sScrollWrapper } )\r\n\t\t\t.append(\r\n\t\t\t\t$(_div, { \u0027class\u0027: classes.sScrollHead } )\r\n\t\t\t\t\t.css( {\r\n\t\t\t\t\t\toverflow: \u0027hidden\u0027,\r\n\t\t\t\t\t\tposition: \u0027relative\u0027,\r\n\t\t\t\t\t\tborder: 0,\r\n\t\t\t\t\t\twidth: scrollX ? size(scrollX) : \u0027100%\u0027\r\n\t\t\t\t\t} )\r\n\t\t\t\t\t.append(\r\n\t\t\t\t\t\t$(_div, { \u0027class\u0027: classes.sScrollHeadInner } )\r\n\t\t\t\t\t\t\t.css( {\r\n\t\t\t\t\t\t\t\t\u0027box-sizing\u0027: \u0027content-box\u0027,\r\n\t\t\t\t\t\t\t\twidth: scroll.sXInner || \u0027100%\u0027\r\n\t\t\t\t\t\t\t} )\r\n\t\t\t\t\t\t\t.append(\r\n\t\t\t\t\t\t\t\theaderClone\r\n\t\t\t\t\t\t\t\t\t.removeAttr(\u0027id\u0027)\r\n\t\t\t\t\t\t\t\t\t.css( \u0027margin-left\u0027, 0 )\r\n\t\t\t\t\t\t\t\t\t.append( captionSide === \u0027top\u0027 ? caption : null )\r\n\t\t\t\t\t\t\t\t\t.append(\r\n\t\t\t\t\t\t\t\t\t\ttable.children(\u0027thead\u0027)\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t)\r\n\t\t\t\t\t)\r\n\t\t\t)\r\n\t\t\t.append(\r\n\t\t\t\t$(_div, { \u0027class\u0027: classes.sScrollBody } )\r\n\t\t\t\t\t.css( {\r\n\t\t\t\t\t\tposition: \u0027relative\u0027,\r\n\t\t\t\t\t\toverflow: \u0027auto\u0027,\r\n\t\t\t\t\t\twidth: size( scrollX )\r\n\t\t\t\t\t} )\r\n\t\t\t\t\t.append( table )\r\n\t\t\t);\r\n\t\r\n\t\tif ( footer ) {\r\n\t\t\tscroller.append(\r\n\t\t\t\t$(_div, { \u0027class\u0027: classes.sScrollFoot } )\r\n\t\t\t\t\t.css( {\r\n\t\t\t\t\t\toverflow: \u0027hidden\u0027,\r\n\t\t\t\t\t\tborder: 0,\r\n\t\t\t\t\t\twidth: scrollX ? size(scrollX) : \u0027100%\u0027\r\n\t\t\t\t\t} )\r\n\t\t\t\t\t.append(\r\n\t\t\t\t\t\t$(_div, { \u0027class\u0027: classes.sScrollFootInner } )\r\n\t\t\t\t\t\t\t.append(\r\n\t\t\t\t\t\t\t\tfooterClone\r\n\t\t\t\t\t\t\t\t\t.removeAttr(\u0027id\u0027)\r\n\t\t\t\t\t\t\t\t\t.css( \u0027margin-left\u0027, 0 )\r\n\t\t\t\t\t\t\t\t\t.append( captionSide === \u0027bottom\u0027 ? caption : null )\r\n\t\t\t\t\t\t\t\t\t.append(\r\n\t\t\t\t\t\t\t\t\t\ttable.children(\u0027tfoot\u0027)\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t)\r\n\t\t\t\t\t)\r\n\t\t\t);\r\n\t\t}\r\n\t\r\n\t\tvar children = scroller.children();\r\n\t\tvar scrollHead = children[0];\r\n\t\tvar scrollBody = children[1];\r\n\t\tvar scrollFoot = footer ? children[2] : null;\r\n\t\r\n\t\t// When the body is scrolled, then we also want to scroll the headers\r\n\t\tif ( scrollX ) {\r\n\t\t\t$(scrollBody).on( \u0027scroll.DT\u0027, function (e) {\r\n\t\t\t\tvar scrollLeft = this.scrollLeft;\r\n\t\r\n\t\t\t\tscrollHead.scrollLeft = scrollLeft;\r\n\t\r\n\t\t\t\tif ( footer ) {\r\n\t\t\t\t\tscrollFoot.scrollLeft = scrollLeft;\r\n\t\t\t\t}\r\n\t\t\t} );\r\n\t\t}\r\n\t\r\n\t\t$(scrollBody).css(\u0027max-height\u0027, scrollY);\r\n\t\tif (! scroll.bCollapse) {\r\n\t\t\t$(scrollBody).css(\u0027height\u0027, scrollY);\r\n\t\t}\r\n\t\r\n\t\tsettings.nScrollHead = scrollHead;\r\n\t\tsettings.nScrollBody = scrollBody;\r\n\t\tsettings.nScrollFoot = scrollFoot;\r\n\t\r\n\t\t// On redraw - align columns\r\n\t\tsettings.aoDrawCallback.push( {\r\n\t\t\t\u0022fn\u0022: _fnScrollDraw,\r\n\t\t\t\u0022sName\u0022: \u0022scrolling\u0022\r\n\t\t} );\r\n\t\r\n\t\treturn scroller[0];\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Update the header, footer and body tables for resizing - i.e. column\r\n\t * alignment.\r\n\t *\r\n\t * Welcome to the most horrible function DataTables. The process that this\r\n\t * function follows is basically:\r\n\t * 1. Re-create the table inside the scrolling div\r\n\t * 2. Take live measurements from the DOM\r\n\t * 3. Apply the measurements to align the columns\r\n\t * 4. Clean up\r\n\t *\r\n\t * @param {object} settings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnScrollDraw ( settings )\r\n\t{\r\n\t\t// Given that this is such a monster function, a lot of variables are use\r\n\t\t// to try and keep the minimised size as small as possible\r\n\t\tvar\r\n\t\t\tscroll = settings.oScroll,\r\n\t\t\tscrollX = scroll.sX,\r\n\t\t\tscrollXInner = scroll.sXInner,\r\n\t\t\tscrollY = scroll.sY,\r\n\t\t\tbarWidth = scroll.iBarWidth,\r\n\t\t\tdivHeader = $(settings.nScrollHead),\r\n\t\t\tdivHeaderStyle = divHeader[0].style,\r\n\t\t\tdivHeaderInner = divHeader.children(\u0027div\u0027),\r\n\t\t\tdivHeaderInnerStyle = divHeaderInner[0].style,\r\n\t\t\tdivHeaderTable = divHeaderInner.children(\u0027table\u0027),\r\n\t\t\tdivBodyEl = settings.nScrollBody,\r\n\t\t\tdivBody = $(divBodyEl),\r\n\t\t\tdivBodyStyle = divBodyEl.style,\r\n\t\t\tdivFooter = $(settings.nScrollFoot),\r\n\t\t\tdivFooterInner = divFooter.children(\u0027div\u0027),\r\n\t\t\tdivFooterTable = divFooterInner.children(\u0027table\u0027),\r\n\t\t\theader = $(settings.nTHead),\r\n\t\t\ttable = $(settings.nTable),\r\n\t\t\ttableEl = table[0],\r\n\t\t\ttableStyle = tableEl.style,\r\n\t\t\tfooter = settings.nTFoot ? $(settings.nTFoot) : null,\r\n\t\t\tbrowser = settings.oBrowser,\r\n\t\t\tie67 = browser.bScrollOversize,\r\n\t\t\tdtHeaderCells = _pluck( settings.aoColumns, \u0027nTh\u0027 ),\r\n\t\t\theaderTrgEls, footerTrgEls,\r\n\t\t\theaderSrcEls, footerSrcEls,\r\n\t\t\theaderCopy, footerCopy,\r\n\t\t\theaderWidths=[], footerWidths=[],\r\n\t\t\theaderContent=[], footerContent=[],\r\n\t\t\tidx, correction, sanityWidth,\r\n\t\t\tzeroOut = function(nSizer) {\r\n\t\t\t\tvar style = nSizer.style;\r\n\t\t\t\tstyle.paddingTop = \u00220\u0022;\r\n\t\t\t\tstyle.paddingBottom = \u00220\u0022;\r\n\t\t\t\tstyle.borderTopWidth = \u00220\u0022;\r\n\t\t\t\tstyle.borderBottomWidth = \u00220\u0022;\r\n\t\t\t\tstyle.height = 0;\r\n\t\t\t};\r\n\t\r\n\t\t// If the scrollbar visibility has changed from the last draw, we need to\r\n\t\t// adjust the column sizes as the table width will have changed to account\r\n\t\t// for the scrollbar\r\n\t\tvar scrollBarVis = divBodyEl.scrollHeight \u003E divBodyEl.clientHeight;\r\n\t\t\r\n\t\tif ( settings.scrollBarVis !== scrollBarVis \u0026\u0026 settings.scrollBarVis !== undefined ) {\r\n\t\t\tsettings.scrollBarVis = scrollBarVis;\r\n\t\t\t_fnAdjustColumnSizing( settings );\r\n\t\t\treturn; // adjust column sizing will call this function again\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsettings.scrollBarVis = scrollBarVis;\r\n\t\t}\r\n\t\r\n\t\t/*\r\n\t\t * 1. Re-create the table inside the scrolling div\r\n\t\t */\r\n\t\r\n\t\t// Remove the old minimised thead and tfoot elements in the inner table\r\n\t\ttable.children(\u0027thead, tfoot\u0027).remove();\r\n\t\r\n\t\tif ( footer ) {\r\n\t\t\tfooterCopy = footer.clone().prependTo( table );\r\n\t\t\tfooterTrgEls = footer.find(\u0027tr\u0027); // the original tfoot is in its own table and must be sized\r\n\t\t\tfooterSrcEls = footerCopy.find(\u0027tr\u0027);\r\n\t\t}\r\n\t\r\n\t\t// Clone the current header and footer elements and then place it into the inner table\r\n\t\theaderCopy = header.clone().prependTo( table );\r\n\t\theaderTrgEls = header.find(\u0027tr\u0027); // original header is in its own table\r\n\t\theaderSrcEls = headerCopy.find(\u0027tr\u0027);\r\n\t\theaderCopy.find(\u0027th, td\u0027).removeAttr(\u0027tabindex\u0027);\r\n\t\r\n\t\r\n\t\t/*\r\n\t\t * 2. Take live measurements from the DOM - do not alter the DOM itself!\r\n\t\t */\r\n\t\r\n\t\t// Remove old sizing and apply the calculated column widths\r\n\t\t// Get the unique column headers in the newly created (cloned) header. We want to apply the\r\n\t\t// calculated sizes to this header\r\n\t\tif ( ! scrollX )\r\n\t\t{\r\n\t\t\tdivBodyStyle.width = \u0027100%\u0027;\r\n\t\t\tdivHeader[0].style.width = \u0027100%\u0027;\r\n\t\t}\r\n\t\r\n\t\t$.each( _fnGetUniqueThs( settings, headerCopy ), function ( i, el ) {\r\n\t\t\tidx = _fnVisibleToColumnIndex( settings, i );\r\n\t\t\tel.style.width = settings.aoColumns[idx].sWidth;\r\n\t\t} );\r\n\t\r\n\t\tif ( footer ) {\r\n\t\t\t_fnApplyToChildren( function(n) {\r\n\t\t\t\tn.style.width = \u0022\u0022;\r\n\t\t\t}, footerSrcEls );\r\n\t\t}\r\n\t\r\n\t\t// Size the table as a whole\r\n\t\tsanityWidth = table.outerWidth();\r\n\t\tif ( scrollX === \u0022\u0022 ) {\r\n\t\t\t// No x scrolling\r\n\t\t\ttableStyle.width = \u0022100%\u0022;\r\n\t\r\n\t\t\t// IE7 will make the width of the table when 100% include the scrollbar\r\n\t\t\t// - which is shouldn\u0027t. When there is a scrollbar we need to take this\r\n\t\t\t// into account.\r\n\t\t\tif ( ie67 \u0026\u0026 (table.find(\u0027tbody\u0027).height() \u003E divBodyEl.offsetHeight ||\r\n\t\t\t\tdivBody.css(\u0027overflow-y\u0027) == \u0022scroll\u0022)\r\n\t\t\t) {\r\n\t\t\t\ttableStyle.width = _fnStringToCss( table.outerWidth() - barWidth);\r\n\t\t\t}\r\n\t\r\n\t\t\t// Recalculate the sanity width\r\n\t\t\tsanityWidth = table.outerWidth();\r\n\t\t}\r\n\t\telse if ( scrollXInner !== \u0022\u0022 ) {\r\n\t\t\t// legacy x scroll inner has been given - use it\r\n\t\t\ttableStyle.width = _fnStringToCss(scrollXInner);\r\n\t\r\n\t\t\t// Recalculate the sanity width\r\n\t\t\tsanityWidth = table.outerWidth();\r\n\t\t}\r\n\t\r\n\t\t// Hidden header should have zero height, so remove padding and borders. Then\r\n\t\t// set the width based on the real headers\r\n\t\r\n\t\t// Apply all styles in one pass\r\n\t\t_fnApplyToChildren( zeroOut, headerSrcEls );\r\n\t\r\n\t\t// Read all widths in next pass\r\n\t\t_fnApplyToChildren( function(nSizer) {\r\n\t\t\tvar style = window.getComputedStyle ?\r\n\t\t\t\twindow.getComputedStyle(nSizer).width :\r\n\t\t\t\t_fnStringToCss( $(nSizer).width() );\r\n\t\r\n\t\t\theaderContent.push( nSizer.innerHTML );\r\n\t\t\theaderWidths.push( style );\r\n\t\t}, headerSrcEls );\r\n\t\r\n\t\t// Apply all widths in final pass\r\n\t\t_fnApplyToChildren( function(nToSize, i) {\r\n\t\t\tnToSize.style.width = headerWidths[i];\r\n\t\t}, headerTrgEls );\r\n\t\r\n\t\t$(headerSrcEls).height(0);\r\n\t\r\n\t\t/* Same again with the footer if we have one */\r\n\t\tif ( footer )\r\n\t\t{\r\n\t\t\t_fnApplyToChildren( zeroOut, footerSrcEls );\r\n\t\r\n\t\t\t_fnApplyToChildren( function(nSizer) {\r\n\t\t\t\tfooterContent.push( nSizer.innerHTML );\r\n\t\t\t\tfooterWidths.push( _fnStringToCss( $(nSizer).css(\u0027width\u0027) ) );\r\n\t\t\t}, footerSrcEls );\r\n\t\r\n\t\t\t_fnApplyToChildren( function(nToSize, i) {\r\n\t\t\t\tnToSize.style.width = footerWidths[i];\r\n\t\t\t}, footerTrgEls );\r\n\t\r\n\t\t\t$(footerSrcEls).height(0);\r\n\t\t}\r\n\t\r\n\t\r\n\t\t/*\r\n\t\t * 3. Apply the measurements\r\n\t\t */\r\n\t\r\n\t\t// \u0022Hide\u0022 the header and footer that we used for the sizing. We need to keep\r\n\t\t// the content of the cell so that the width applied to the header and body\r\n\t\t// both match, but we want to hide it completely. We want to also fix their\r\n\t\t// width to what they currently are\r\n\t\t_fnApplyToChildren( function(nSizer, i) {\r\n\t\t\tnSizer.innerHTML = \u0027\u003Cdiv class=\u0022dataTables_sizing\u0022\u003E\u0027\u002BheaderContent[i]\u002B\u0027\u003C/div\u003E\u0027;\r\n\t\t\tnSizer.childNodes[0].style.height = \u00220\u0022;\r\n\t\t\tnSizer.childNodes[0].style.overflow = \u0022hidden\u0022;\r\n\t\t\tnSizer.style.width = headerWidths[i];\r\n\t\t}, headerSrcEls );\r\n\t\r\n\t\tif ( footer )\r\n\t\t{\r\n\t\t\t_fnApplyToChildren( function(nSizer, i) {\r\n\t\t\t\tnSizer.innerHTML = \u0027\u003Cdiv class=\u0022dataTables_sizing\u0022\u003E\u0027\u002BfooterContent[i]\u002B\u0027\u003C/div\u003E\u0027;\r\n\t\t\t\tnSizer.childNodes[0].style.height = \u00220\u0022;\r\n\t\t\t\tnSizer.childNodes[0].style.overflow = \u0022hidden\u0022;\r\n\t\t\t\tnSizer.style.width = footerWidths[i];\r\n\t\t\t}, footerSrcEls );\r\n\t\t}\r\n\t\r\n\t\t// Sanity check that the table is of a sensible width. If not then we are going to get\r\n\t\t// misalignment - try to prevent this by not allowing the table to shrink below its min width\r\n\t\tif ( table.outerWidth() \u003C sanityWidth )\r\n\t\t{\r\n\t\t\t// The min width depends upon if we have a vertical scrollbar visible or not */\r\n\t\t\tcorrection = ((divBodyEl.scrollHeight \u003E divBodyEl.offsetHeight ||\r\n\t\t\t\tdivBody.css(\u0027overflow-y\u0027) == \u0022scroll\u0022)) ?\r\n\t\t\t\t\tsanityWidth\u002BbarWidth :\r\n\t\t\t\t\tsanityWidth;\r\n\t\r\n\t\t\t// IE6/7 are a law unto themselves...\r\n\t\t\tif ( ie67 \u0026\u0026 (divBodyEl.scrollHeight \u003E\r\n\t\t\t\tdivBodyEl.offsetHeight || divBody.css(\u0027overflow-y\u0027) == \u0022scroll\u0022)\r\n\t\t\t) {\r\n\t\t\t\ttableStyle.width = _fnStringToCss( correction-barWidth );\r\n\t\t\t}\r\n\t\r\n\t\t\t// And give the user a warning that we\u0027ve stopped the table getting too small\r\n\t\t\tif ( scrollX === \u0022\u0022 || scrollXInner !== \u0022\u0022 ) {\r\n\t\t\t\t_fnLog( settings, 1, \u0027Possible column misalignment\u0027, 6 );\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tcorrection = \u0027100%\u0027;\r\n\t\t}\r\n\t\r\n\t\t// Apply to the container elements\r\n\t\tdivBodyStyle.width = _fnStringToCss( correction );\r\n\t\tdivHeaderStyle.width = _fnStringToCss( correction );\r\n\t\r\n\t\tif ( footer ) {\r\n\t\t\tsettings.nScrollFoot.style.width = _fnStringToCss( correction );\r\n\t\t}\r\n\t\r\n\t\r\n\t\t/*\r\n\t\t * 4. Clean up\r\n\t\t */\r\n\t\tif ( ! scrollY ) {\r\n\t\t\t/* IE7\u003C puts a vertical scrollbar in place (when it shouldn\u0027t be) due to subtracting\r\n\t\t\t * the scrollbar height from the visible display, rather than adding it on. We need to\r\n\t\t\t * set the height in order to sort this. Don\u0027t want to do it in any other browsers.\r\n\t\t\t */\r\n\t\t\tif ( ie67 ) {\r\n\t\t\t\tdivBodyStyle.height = _fnStringToCss( tableEl.offsetHeight\u002BbarWidth );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t/* Finally set the width\u0027s of the header and footer tables */\r\n\t\tvar iOuterWidth = table.outerWidth();\r\n\t\tdivHeaderTable[0].style.width = _fnStringToCss( iOuterWidth );\r\n\t\tdivHeaderInnerStyle.width = _fnStringToCss( iOuterWidth );\r\n\t\r\n\t\t// Figure out if there are scrollbar present - if so then we need a the header and footer to\r\n\t\t// provide a bit more space to allow \u0022overflow\u0022 scrolling (i.e. past the scrollbar)\r\n\t\tvar bScrolling = table.height() \u003E divBodyEl.clientHeight || divBody.css(\u0027overflow-y\u0027) == \u0022scroll\u0022;\r\n\t\tvar padding = \u0027padding\u0027 \u002B (browser.bScrollbarLeft ? \u0027Left\u0027 : \u0027Right\u0027 );\r\n\t\tdivHeaderInnerStyle[ padding ] = bScrolling ? barWidth\u002B\u0022px\u0022 : \u00220px\u0022;\r\n\t\r\n\t\tif ( footer ) {\r\n\t\t\tdivFooterTable[0].style.width = _fnStringToCss( iOuterWidth );\r\n\t\t\tdivFooterInner[0].style.width = _fnStringToCss( iOuterWidth );\r\n\t\t\tdivFooterInner[0].style[padding] = bScrolling ? barWidth\u002B\u0022px\u0022 : \u00220px\u0022;\r\n\t\t}\r\n\t\r\n\t\t// Correct DOM ordering for colgroup - comes before the thead\r\n\t\ttable.children(\u0027colgroup\u0027).insertBefore( table.children(\u0027thead\u0027) );\r\n\t\r\n\t\t/* Adjust the position of the header in case we loose the y-scrollbar */\r\n\t\tdivBody.trigger(\u0027scroll\u0027);\r\n\t\r\n\t\t// If sorting or filtering has occurred, jump the scrolling back to the top\r\n\t\t// only if we aren\u0027t holding the position\r\n\t\tif ( (settings.bSorted || settings.bFiltered) \u0026\u0026 ! settings._drawHold ) {\r\n\t\t\tdivBodyEl.scrollTop = 0;\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Apply a given function to the display child nodes of an element array (typically\r\n\t * TD children of TR rows\r\n\t * @param {function} fn Method to apply to the objects\r\n\t * @param array {nodes} an1 List of elements to look through for display children\r\n\t * @param array {nodes} an2 Another list (identical structure to the first) - optional\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnApplyToChildren( fn, an1, an2 )\r\n\t{\r\n\t\tvar index=0, i=0, iLen=an1.length;\r\n\t\tvar nNode1, nNode2;\r\n\t\r\n\t\twhile ( i \u003C iLen ) {\r\n\t\t\tnNode1 = an1[i].firstChild;\r\n\t\t\tnNode2 = an2 ? an2[i].firstChild : null;\r\n\t\r\n\t\t\twhile ( nNode1 ) {\r\n\t\t\t\tif ( nNode1.nodeType === 1 ) {\r\n\t\t\t\t\tif ( an2 ) {\r\n\t\t\t\t\t\tfn( nNode1, nNode2, index );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tfn( nNode1, index );\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tindex\u002B\u002B;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tnNode1 = nNode1.nextSibling;\r\n\t\t\t\tnNode2 = an2 ? nNode2.nextSibling : null;\r\n\t\t\t}\r\n\t\r\n\t\t\ti\u002B\u002B;\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\tvar __re_html_remove = /\u003C.*?\u003E/g;\r\n\t\r\n\t\r\n\t/**\r\n\t * Calculate the width of columns for the table\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnCalculateColumnWidths ( oSettings )\r\n\t{\r\n\t\tvar\r\n\t\t\ttable = oSettings.nTable,\r\n\t\t\tcolumns = oSettings.aoColumns,\r\n\t\t\tscroll = oSettings.oScroll,\r\n\t\t\tscrollY = scroll.sY,\r\n\t\t\tscrollX = scroll.sX,\r\n\t\t\tscrollXInner = scroll.sXInner,\r\n\t\t\tcolumnCount = columns.length,\r\n\t\t\tvisibleColumns = _fnGetColumns( oSettings, \u0027bVisible\u0027 ),\r\n\t\t\theaderCells = $(\u0027th\u0027, oSettings.nTHead),\r\n\t\t\ttableWidthAttr = table.getAttribute(\u0027width\u0027), // from DOM element\r\n\t\t\ttableContainer = table.parentNode,\r\n\t\t\tuserInputs = false,\r\n\t\t\ti, column, columnIdx, width, outerWidth,\r\n\t\t\tbrowser = oSettings.oBrowser,\r\n\t\t\tie67 = browser.bScrollOversize;\r\n\t\r\n\t\tvar styleWidth = table.style.width;\r\n\t\tif ( styleWidth \u0026\u0026 styleWidth.indexOf(\u0027%\u0027) !== -1 ) {\r\n\t\t\ttableWidthAttr = styleWidth;\r\n\t\t}\r\n\t\r\n\t\t/* Convert any user input sizes into pixel sizes */\r\n\t\tfor ( i=0 ; i\u003CvisibleColumns.length ; i\u002B\u002B ) {\r\n\t\t\tcolumn = columns[ visibleColumns[i] ];\r\n\t\r\n\t\t\tif ( column.sWidth !== null ) {\r\n\t\t\t\tcolumn.sWidth = _fnConvertToWidth( column.sWidthOrig, tableContainer );\r\n\t\r\n\t\t\t\tuserInputs = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t/* If the number of columns in the DOM equals the number that we have to\r\n\t\t * process in DataTables, then we can use the offsets that are created by\r\n\t\t * the web- browser. No custom sizes can be set in order for this to happen,\r\n\t\t * nor scrolling used\r\n\t\t */\r\n\t\tif ( ie67 || ! userInputs \u0026\u0026 ! scrollX \u0026\u0026 ! scrollY \u0026\u0026\r\n\t\t columnCount == _fnVisbleColumns( oSettings ) \u0026\u0026\r\n\t\t columnCount == headerCells.length\r\n\t\t) {\r\n\t\t\tfor ( i=0 ; i\u003CcolumnCount ; i\u002B\u002B ) {\r\n\t\t\t\tvar colIdx = _fnVisibleToColumnIndex( oSettings, i );\r\n\t\r\n\t\t\t\tif ( colIdx !== null ) {\r\n\t\t\t\t\tcolumns[ colIdx ].sWidth = _fnStringToCss( headerCells.eq(i).width() );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t// Otherwise construct a single row, worst case, table with the widest\r\n\t\t\t// node in the data, assign any user defined widths, then insert it into\r\n\t\t\t// the DOM and allow the browser to do all the hard work of calculating\r\n\t\t\t// table widths\r\n\t\t\tvar tmpTable = $(table).clone() // don\u0027t use cloneNode - IE8 will remove events on the main table\r\n\t\t\t\t.css( \u0027visibility\u0027, \u0027hidden\u0027 )\r\n\t\t\t\t.removeAttr( \u0027id\u0027 );\r\n\t\r\n\t\t\t// Clean up the table body\r\n\t\t\ttmpTable.find(\u0027tbody tr\u0027).remove();\r\n\t\t\tvar tr = $(\u0027\u003Ctr/\u003E\u0027).appendTo( tmpTable.find(\u0027tbody\u0027) );\r\n\t\r\n\t\t\t// Clone the table header and footer - we can\u0027t use the header / footer\r\n\t\t\t// from the cloned table, since if scrolling is active, the table\u0027s\r\n\t\t\t// real header and footer are contained in different table tags\r\n\t\t\ttmpTable.find(\u0027thead, tfoot\u0027).remove();\r\n\t\t\ttmpTable\r\n\t\t\t\t.append( $(oSettings.nTHead).clone() )\r\n\t\t\t\t.append( $(oSettings.nTFoot).clone() );\r\n\t\r\n\t\t\t// Remove any assigned widths from the footer (from scrolling)\r\n\t\t\ttmpTable.find(\u0027tfoot th, tfoot td\u0027).css(\u0027width\u0027, \u0027\u0027);\r\n\t\r\n\t\t\t// Apply custom sizing to the cloned header\r\n\t\t\theaderCells = _fnGetUniqueThs( oSettings, tmpTable.find(\u0027thead\u0027)[0] );\r\n\t\r\n\t\t\tfor ( i=0 ; i\u003CvisibleColumns.length ; i\u002B\u002B ) {\r\n\t\t\t\tcolumn = columns[ visibleColumns[i] ];\r\n\t\r\n\t\t\t\theaderCells[i].style.width = column.sWidthOrig !== null \u0026\u0026 column.sWidthOrig !== \u0027\u0027 ?\r\n\t\t\t\t\t_fnStringToCss( column.sWidthOrig ) :\r\n\t\t\t\t\t\u0027\u0027;\r\n\t\r\n\t\t\t\t// For scrollX we need to force the column width otherwise the\r\n\t\t\t\t// browser will collapse it. If this width is smaller than the\r\n\t\t\t\t// width the column requires, then it will have no effect\r\n\t\t\t\tif ( column.sWidthOrig \u0026\u0026 scrollX ) {\r\n\t\t\t\t\t$( headerCells[i] ).append( $(\u0027\u003Cdiv/\u003E\u0027).css( {\r\n\t\t\t\t\t\twidth: column.sWidthOrig,\r\n\t\t\t\t\t\tmargin: 0,\r\n\t\t\t\t\t\tpadding: 0,\r\n\t\t\t\t\t\tborder: 0,\r\n\t\t\t\t\t\theight: 1\r\n\t\t\t\t\t} ) );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\t// Find the widest cell for each column and put it into the table\r\n\t\t\tif ( oSettings.aoData.length ) {\r\n\t\t\t\tfor ( i=0 ; i\u003CvisibleColumns.length ; i\u002B\u002B ) {\r\n\t\t\t\t\tcolumnIdx = visibleColumns[i];\r\n\t\t\t\t\tcolumn = columns[ columnIdx ];\r\n\t\r\n\t\t\t\t\t$( _fnGetWidestNode( oSettings, columnIdx ) )\r\n\t\t\t\t\t\t.clone( false )\r\n\t\t\t\t\t\t.append( column.sContentPadding )\r\n\t\t\t\t\t\t.appendTo( tr );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\t// Tidy the temporary table - remove name attributes so there aren\u0027t\r\n\t\t\t// duplicated in the dom (radio elements for example)\r\n\t\t\t$(\u0027[name]\u0027, tmpTable).removeAttr(\u0027name\u0027);\r\n\t\r\n\t\t\t// Table has been built, attach to the document so we can work with it.\r\n\t\t\t// A holding element is used, positioned at the top of the container\r\n\t\t\t// with minimal height, so it has no effect on if the container scrolls\r\n\t\t\t// or not. Otherwise it might trigger scrolling when it actually isn\u0027t\r\n\t\t\t// needed\r\n\t\t\tvar holder = $(\u0027\u003Cdiv/\u003E\u0027).css( scrollX || scrollY ?\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tposition: \u0027absolute\u0027,\r\n\t\t\t\t\t\ttop: 0,\r\n\t\t\t\t\t\tleft: 0,\r\n\t\t\t\t\t\theight: 1,\r\n\t\t\t\t\t\tright: 0,\r\n\t\t\t\t\t\toverflow: \u0027hidden\u0027\r\n\t\t\t\t\t} :\r\n\t\t\t\t\t{}\r\n\t\t\t\t)\r\n\t\t\t\t.append( tmpTable )\r\n\t\t\t\t.appendTo( tableContainer );\r\n\t\r\n\t\t\t// When scrolling (X or Y) we want to set the width of the table as \r\n\t\t\t// appropriate. However, when not scrolling leave the table width as it\r\n\t\t\t// is. This results in slightly different, but I think correct behaviour\r\n\t\t\tif ( scrollX \u0026\u0026 scrollXInner ) {\r\n\t\t\t\ttmpTable.width( scrollXInner );\r\n\t\t\t}\r\n\t\t\telse if ( scrollX ) {\r\n\t\t\t\ttmpTable.css( \u0027width\u0027, \u0027auto\u0027 );\r\n\t\t\t\ttmpTable.removeAttr(\u0027width\u0027);\r\n\t\r\n\t\t\t\t// If there is no width attribute or style, then allow the table to\r\n\t\t\t\t// collapse\r\n\t\t\t\tif ( tmpTable.width() \u003C tableContainer.clientWidth \u0026\u0026 tableWidthAttr ) {\r\n\t\t\t\t\ttmpTable.width( tableContainer.clientWidth );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if ( scrollY ) {\r\n\t\t\t\ttmpTable.width( tableContainer.clientWidth );\r\n\t\t\t}\r\n\t\t\telse if ( tableWidthAttr ) {\r\n\t\t\t\ttmpTable.width( tableWidthAttr );\r\n\t\t\t}\r\n\t\r\n\t\t\t// Get the width of each column in the constructed table - we need to\r\n\t\t\t// know the inner width (so it can be assigned to the other table\u0027s\r\n\t\t\t// cells) and the outer width so we can calculate the full width of the\r\n\t\t\t// table. This is safe since DataTables requires a unique cell for each\r\n\t\t\t// column, but if ever a header can span multiple columns, this will\r\n\t\t\t// need to be modified.\r\n\t\t\tvar total = 0;\r\n\t\t\tfor ( i=0 ; i\u003CvisibleColumns.length ; i\u002B\u002B ) {\r\n\t\t\t\tvar cell = $(headerCells[i]);\r\n\t\t\t\tvar border = cell.outerWidth() - cell.width();\r\n\t\r\n\t\t\t\t// Use getBounding... where possible (not IE8-) because it can give\r\n\t\t\t\t// sub-pixel accuracy, which we then want to round up!\r\n\t\t\t\tvar bounding = browser.bBounding ?\r\n\t\t\t\t\tMath.ceil( headerCells[i].getBoundingClientRect().width ) :\r\n\t\t\t\t\tcell.outerWidth();\r\n\t\r\n\t\t\t\t// Total is tracked to remove any sub-pixel errors as the outerWidth\r\n\t\t\t\t// of the table might not equal the total given here (IE!).\r\n\t\t\t\ttotal \u002B= bounding;\r\n\t\r\n\t\t\t\t// Width for each column to use\r\n\t\t\t\tcolumns[ visibleColumns[i] ].sWidth = _fnStringToCss( bounding - border );\r\n\t\t\t}\r\n\t\r\n\t\t\ttable.style.width = _fnStringToCss( total );\r\n\t\r\n\t\t\t// Finished with the table - ditch it\r\n\t\t\tholder.remove();\r\n\t\t}\r\n\t\r\n\t\t// If there is a width attr, we want to attach an event listener which\r\n\t\t// allows the table sizing to automatically adjust when the window is\r\n\t\t// resized. Use the width attr rather than CSS, since we can\u0027t know if the\r\n\t\t// CSS is a relative value or absolute - DOM read is always px.\r\n\t\tif ( tableWidthAttr ) {\r\n\t\t\ttable.style.width = _fnStringToCss( tableWidthAttr );\r\n\t\t}\r\n\t\r\n\t\tif ( (tableWidthAttr || scrollX) \u0026\u0026 ! oSettings._reszEvt ) {\r\n\t\t\tvar bindResize = function () {\r\n\t\t\t\t$(window).on(\u0027resize.DT-\u0027\u002BoSettings.sInstance, _fnThrottle( function () {\r\n\t\t\t\t\t_fnAdjustColumnSizing( oSettings );\r\n\t\t\t\t} ) );\r\n\t\t\t};\r\n\t\r\n\t\t\t// IE6/7 will crash if we bind a resize event handler on page load.\r\n\t\t\t// To be removed in 1.11 which drops IE6/7 support\r\n\t\t\tif ( ie67 ) {\r\n\t\t\t\tsetTimeout( bindResize, 1000 );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tbindResize();\r\n\t\t\t}\r\n\t\r\n\t\t\toSettings._reszEvt = true;\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Throttle the calls to a function. Arguments and context are maintained for\r\n\t * the throttled function\r\n\t * @param {function} fn Function to be called\r\n\t * @param {int} [freq=200] call frequency in mS\r\n\t * @returns {function} wrapped function\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tvar _fnThrottle = DataTable.util.throttle;\r\n\t\r\n\t\r\n\t/**\r\n\t * Convert a CSS unit width to pixels (e.g. 2em)\r\n\t * @param {string} width width to be converted\r\n\t * @param {node} parent parent to get the with for (required for relative widths) - optional\r\n\t * @returns {int} width in pixels\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnConvertToWidth ( width, parent )\r\n\t{\r\n\t\tif ( ! width ) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\r\n\t\tvar n = $(\u0027\u003Cdiv/\u003E\u0027)\r\n\t\t\t.css( \u0027width\u0027, _fnStringToCss( width ) )\r\n\t\t\t.appendTo( parent || document.body );\r\n\t\r\n\t\tvar val = n[0].offsetWidth;\r\n\t\tn.remove();\r\n\t\r\n\t\treturn val;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Get the widest node\r\n\t * @param {object} settings dataTables settings object\r\n\t * @param {int} colIdx column of interest\r\n\t * @returns {node} widest table node\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnGetWidestNode( settings, colIdx )\r\n\t{\r\n\t\tvar idx = _fnGetMaxLenString( settings, colIdx );\r\n\t\tif ( idx \u003C 0 ) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\r\n\t\tvar data = settings.aoData[ idx ];\r\n\t\treturn ! data.nTr ? // Might not have been created when deferred rendering\r\n\t\t\t$(\u0027\u003Ctd/\u003E\u0027).html( _fnGetCellData( settings, idx, colIdx, \u0027display\u0027 ) )[0] :\r\n\t\t\tdata.anCells[ colIdx ];\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Get the maximum strlen for each data column\r\n\t * @param {object} settings dataTables settings object\r\n\t * @param {int} colIdx column of interest\r\n\t * @returns {string} max string length for each column\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnGetMaxLenString( settings, colIdx )\r\n\t{\r\n\t\tvar s, max=-1, maxIdx = -1;\r\n\t\r\n\t\tfor ( var i=0, ien=settings.aoData.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\ts = _fnGetCellData( settings, i, colIdx, \u0027display\u0027 )\u002B\u0027\u0027;\r\n\t\t\ts = s.replace( __re_html_remove, \u0027\u0027 );\r\n\t\t\ts = s.replace( /\u0026nbsp;/g, \u0027 \u0027 );\r\n\t\r\n\t\t\tif ( s.length \u003E max ) {\r\n\t\t\t\tmax = s.length;\r\n\t\t\t\tmaxIdx = i;\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn maxIdx;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Append a CSS unit (only if required) to a string\r\n\t * @param {string} value to css-ify\r\n\t * @returns {string} value with css unit\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnStringToCss( s )\r\n\t{\r\n\t\tif ( s === null ) {\r\n\t\t\treturn \u00270px\u0027;\r\n\t\t}\r\n\t\r\n\t\tif ( typeof s == \u0027number\u0027 ) {\r\n\t\t\treturn s \u003C 0 ?\r\n\t\t\t\t\u00270px\u0027 :\r\n\t\t\t\ts\u002B\u0027px\u0027;\r\n\t\t}\r\n\t\r\n\t\t// Check it has a unit character already\r\n\t\treturn s.match(/\\d$/) ?\r\n\t\t\ts\u002B\u0027px\u0027 :\r\n\t\t\ts;\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\tfunction _fnSortFlatten ( settings )\r\n\t{\r\n\t\tvar\r\n\t\t\ti, iLen, k, kLen,\r\n\t\t\taSort = [],\r\n\t\t\taiOrig = [],\r\n\t\t\taoColumns = settings.aoColumns,\r\n\t\t\taDataSort, iCol, sType, srcCol,\r\n\t\t\tfixed = settings.aaSortingFixed,\r\n\t\t\tfixedObj = $.isPlainObject( fixed ),\r\n\t\t\tnestedSort = [],\r\n\t\t\tadd = function ( a ) {\r\n\t\t\t\tif ( a.length \u0026\u0026 ! Array.isArray( a[0] ) ) {\r\n\t\t\t\t\t// 1D array\r\n\t\t\t\t\tnestedSort.push( a );\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t// 2D array\r\n\t\t\t\t\t$.merge( nestedSort, a );\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\r\n\t\t// Build the sort array, with pre-fix and post-fix options if they have been\r\n\t\t// specified\r\n\t\tif ( Array.isArray( fixed ) ) {\r\n\t\t\tadd( fixed );\r\n\t\t}\r\n\t\r\n\t\tif ( fixedObj \u0026\u0026 fixed.pre ) {\r\n\t\t\tadd( fixed.pre );\r\n\t\t}\r\n\t\r\n\t\tadd( settings.aaSorting );\r\n\t\r\n\t\tif (fixedObj \u0026\u0026 fixed.post ) {\r\n\t\t\tadd( fixed.post );\r\n\t\t}\r\n\t\r\n\t\tfor ( i=0 ; i\u003CnestedSort.length ; i\u002B\u002B )\r\n\t\t{\r\n\t\t\tsrcCol = nestedSort[i][0];\r\n\t\t\taDataSort = aoColumns[ srcCol ].aDataSort;\r\n\t\r\n\t\t\tfor ( k=0, kLen=aDataSort.length ; k\u003CkLen ; k\u002B\u002B )\r\n\t\t\t{\r\n\t\t\t\tiCol = aDataSort[k];\r\n\t\t\t\tsType = aoColumns[ iCol ].sType || \u0027string\u0027;\r\n\t\r\n\t\t\t\tif ( nestedSort[i]._idx === undefined ) {\r\n\t\t\t\t\tnestedSort[i]._idx = $.inArray( nestedSort[i][1], aoColumns[iCol].asSorting );\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\taSort.push( {\r\n\t\t\t\t\tsrc: srcCol,\r\n\t\t\t\t\tcol: iCol,\r\n\t\t\t\t\tdir: nestedSort[i][1],\r\n\t\t\t\t\tindex: nestedSort[i]._idx,\r\n\t\t\t\t\ttype: sType,\r\n\t\t\t\t\tformatter: DataTable.ext.type.order[ sType\u002B\u0022-pre\u0022 ]\r\n\t\t\t\t} );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn aSort;\r\n\t}\r\n\t\r\n\t/**\r\n\t * Change the order of the table\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t * @todo This really needs split up!\r\n\t */\r\n\tfunction _fnSort ( oSettings )\r\n\t{\r\n\t\tvar\r\n\t\t\ti, ien, iLen, j, jLen, k, kLen,\r\n\t\t\tsDataType, nTh,\r\n\t\t\taiOrig = [],\r\n\t\t\toExtSort = DataTable.ext.type.order,\r\n\t\t\taoData = oSettings.aoData,\r\n\t\t\taoColumns = oSettings.aoColumns,\r\n\t\t\taDataSort, data, iCol, sType, oSort,\r\n\t\t\tformatters = 0,\r\n\t\t\tsortCol,\r\n\t\t\tdisplayMaster = oSettings.aiDisplayMaster,\r\n\t\t\taSort;\r\n\t\r\n\t\t// Resolve any column types that are unknown due to addition or invalidation\r\n\t\t// @todo Can this be moved into a \u0027data-ready\u0027 handler which is called when\r\n\t\t// data is going to be used in the table?\r\n\t\t_fnColumnTypes( oSettings );\r\n\t\r\n\t\taSort = _fnSortFlatten( oSettings );\r\n\t\r\n\t\tfor ( i=0, ien=aSort.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\tsortCol = aSort[i];\r\n\t\r\n\t\t\t// Track if we can use the fast sort algorithm\r\n\t\t\tif ( sortCol.formatter ) {\r\n\t\t\t\tformatters\u002B\u002B;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Load the data needed for the sort, for each cell\r\n\t\t\t_fnSortData( oSettings, sortCol.col );\r\n\t\t}\r\n\t\r\n\t\t/* No sorting required if server-side or no sorting array */\r\n\t\tif ( _fnDataSource( oSettings ) != \u0027ssp\u0027 \u0026\u0026 aSort.length !== 0 )\r\n\t\t{\r\n\t\t\t// Create a value - key array of the current row positions such that we can use their\r\n\t\t\t// current position during the sort, if values match, in order to perform stable sorting\r\n\t\t\tfor ( i=0, iLen=displayMaster.length ; i\u003CiLen ; i\u002B\u002B ) {\r\n\t\t\t\taiOrig[ displayMaster[i] ] = i;\r\n\t\t\t}\r\n\t\r\n\t\t\t/* Do the sort - here we want multi-column sorting based on a given data source (column)\r\n\t\t\t * and sorting function (from oSort) in a certain direction. It\u0027s reasonably complex to\r\n\t\t\t * follow on it\u0027s own, but this is what we want (example two column sorting):\r\n\t\t\t * fnLocalSorting = function(a,b){\r\n\t\t\t * var iTest;\r\n\t\t\t * iTest = oSort[\u0027string-asc\u0027](\u0027data11\u0027, \u0027data12\u0027);\r\n\t\t\t * if (iTest !== 0)\r\n\t\t\t * return iTest;\r\n\t\t\t * iTest = oSort[\u0027numeric-desc\u0027](\u0027data21\u0027, \u0027data22\u0027);\r\n\t\t\t * if (iTest !== 0)\r\n\t\t\t * return iTest;\r\n\t\t\t * return oSort[\u0027numeric-asc\u0027]( aiOrig[a], aiOrig[b] );\r\n\t\t\t * }\r\n\t\t\t * Basically we have a test for each sorting column, if the data in that column is equal,\r\n\t\t\t * test the next column. If all columns match, then we use a numeric sort on the row\r\n\t\t\t * positions in the original data array to provide a stable sort.\r\n\t\t\t *\r\n\t\t\t * Note - I know it seems excessive to have two sorting methods, but the first is around\r\n\t\t\t * 15% faster, so the second is only maintained for backwards compatibility with sorting\r\n\t\t\t * methods which do not have a pre-sort formatting function.\r\n\t\t\t */\r\n\t\t\tif ( formatters === aSort.length ) {\r\n\t\t\t\t// All sort types have formatting functions\r\n\t\t\t\tdisplayMaster.sort( function ( a, b ) {\r\n\t\t\t\t\tvar\r\n\t\t\t\t\t\tx, y, k, test, sort,\r\n\t\t\t\t\t\tlen=aSort.length,\r\n\t\t\t\t\t\tdataA = aoData[a]._aSortData,\r\n\t\t\t\t\t\tdataB = aoData[b]._aSortData;\r\n\t\r\n\t\t\t\t\tfor ( k=0 ; k\u003Clen ; k\u002B\u002B ) {\r\n\t\t\t\t\t\tsort = aSort[k];\r\n\t\r\n\t\t\t\t\t\tx = dataA[ sort.col ];\r\n\t\t\t\t\t\ty = dataB[ sort.col ];\r\n\t\r\n\t\t\t\t\t\ttest = x\u003Cy ? -1 : x\u003Ey ? 1 : 0;\r\n\t\t\t\t\t\tif ( test !== 0 ) {\r\n\t\t\t\t\t\t\treturn sort.dir === \u0027asc\u0027 ? test : -test;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tx = aiOrig[a];\r\n\t\t\t\t\ty = aiOrig[b];\r\n\t\t\t\t\treturn x\u003Cy ? -1 : x\u003Ey ? 1 : 0;\r\n\t\t\t\t} );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// Depreciated - remove in 1.11 (providing a plug-in option)\r\n\t\t\t\t// Not all sort types have formatting methods, so we have to call their sorting\r\n\t\t\t\t// methods.\r\n\t\t\t\tdisplayMaster.sort( function ( a, b ) {\r\n\t\t\t\t\tvar\r\n\t\t\t\t\t\tx, y, k, l, test, sort, fn,\r\n\t\t\t\t\t\tlen=aSort.length,\r\n\t\t\t\t\t\tdataA = aoData[a]._aSortData,\r\n\t\t\t\t\t\tdataB = aoData[b]._aSortData;\r\n\t\r\n\t\t\t\t\tfor ( k=0 ; k\u003Clen ; k\u002B\u002B ) {\r\n\t\t\t\t\t\tsort = aSort[k];\r\n\t\r\n\t\t\t\t\t\tx = dataA[ sort.col ];\r\n\t\t\t\t\t\ty = dataB[ sort.col ];\r\n\t\r\n\t\t\t\t\t\tfn = oExtSort[ sort.type\u002B\u0022-\u0022\u002Bsort.dir ] || oExtSort[ \u0022string-\u0022\u002Bsort.dir ];\r\n\t\t\t\t\t\ttest = fn( x, y );\r\n\t\t\t\t\t\tif ( test !== 0 ) {\r\n\t\t\t\t\t\t\treturn test;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tx = aiOrig[a];\r\n\t\t\t\t\ty = aiOrig[b];\r\n\t\t\t\t\treturn x\u003Cy ? -1 : x\u003Ey ? 1 : 0;\r\n\t\t\t\t} );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t/* Tell the draw function that we have sorted the data */\r\n\t\toSettings.bSorted = true;\r\n\t}\r\n\t\r\n\t\r\n\tfunction _fnSortAria ( settings )\r\n\t{\r\n\t\tvar label;\r\n\t\tvar nextSort;\r\n\t\tvar columns = settings.aoColumns;\r\n\t\tvar aSort = _fnSortFlatten( settings );\r\n\t\tvar oAria = settings.oLanguage.oAria;\r\n\t\r\n\t\t// ARIA attributes - need to loop all columns, to update all (removing old\r\n\t\t// attributes as needed)\r\n\t\tfor ( var i=0, iLen=columns.length ; i\u003CiLen ; i\u002B\u002B )\r\n\t\t{\r\n\t\t\tvar col = columns[i];\r\n\t\t\tvar asSorting = col.asSorting;\r\n\t\t\tvar sTitle = col.ariaTitle || col.sTitle.replace( /\u003C.*?\u003E/g, \u0022\u0022 );\r\n\t\t\tvar th = col.nTh;\r\n\t\r\n\t\t\t// IE7 is throwing an error when setting these properties with jQuery\u0027s\r\n\t\t\t// attr() and removeAttr() methods...\r\n\t\t\tth.removeAttribute(\u0027aria-sort\u0027);\r\n\t\r\n\t\t\t/* In ARIA only the first sorting column can be marked as sorting - no multi-sort option */\r\n\t\t\tif ( col.bSortable ) {\r\n\t\t\t\tif ( aSort.length \u003E 0 \u0026\u0026 aSort[0].col == i ) {\r\n\t\t\t\t\tth.setAttribute(\u0027aria-sort\u0027, aSort[0].dir==\u0022asc\u0022 ? \u0022ascending\u0022 : \u0022descending\u0022 );\r\n\t\t\t\t\tnextSort = asSorting[ aSort[0].index\u002B1 ] || asSorting[0];\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tnextSort = asSorting[0];\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tlabel = sTitle \u002B ( nextSort === \u0022asc\u0022 ?\r\n\t\t\t\t\toAria.sSortAscending :\r\n\t\t\t\t\toAria.sSortDescending\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tlabel = sTitle;\r\n\t\t\t}\r\n\t\r\n\t\t\tth.setAttribute(\u0027aria-label\u0027, label);\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Function to run on user sort request\r\n\t * @param {object} settings dataTables settings object\r\n\t * @param {node} attachTo node to attach the handler to\r\n\t * @param {int} colIdx column sorting index\r\n\t * @param {boolean} [append=false] Append the requested sort to the existing\r\n\t * sort if true (i.e. multi-column sort)\r\n\t * @param {function} [callback] callback function\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnSortListener ( settings, colIdx, append, callback )\r\n\t{\r\n\t\tvar col = settings.aoColumns[ colIdx ];\r\n\t\tvar sorting = settings.aaSorting;\r\n\t\tvar asSorting = col.asSorting;\r\n\t\tvar nextSortIdx;\r\n\t\tvar next = function ( a, overflow ) {\r\n\t\t\tvar idx = a._idx;\r\n\t\t\tif ( idx === undefined ) {\r\n\t\t\t\tidx = $.inArray( a[1], asSorting );\r\n\t\t\t}\r\n\t\r\n\t\t\treturn idx\u002B1 \u003C asSorting.length ?\r\n\t\t\t\tidx\u002B1 :\r\n\t\t\t\toverflow ?\r\n\t\t\t\t\tnull :\r\n\t\t\t\t\t0;\r\n\t\t};\r\n\t\r\n\t\t// Convert to 2D array if needed\r\n\t\tif ( typeof sorting[0] === \u0027number\u0027 ) {\r\n\t\t\tsorting = settings.aaSorting = [ sorting ];\r\n\t\t}\r\n\t\r\n\t\t// If appending the sort then we are multi-column sorting\r\n\t\tif ( append \u0026\u0026 settings.oFeatures.bSortMulti ) {\r\n\t\t\t// Are we already doing some kind of sort on this column?\r\n\t\t\tvar sortIdx = $.inArray( colIdx, _pluck(sorting, \u00270\u0027) );\r\n\t\r\n\t\t\tif ( sortIdx !== -1 ) {\r\n\t\t\t\t// Yes, modify the sort\r\n\t\t\t\tnextSortIdx = next( sorting[sortIdx], true );\r\n\t\r\n\t\t\t\tif ( nextSortIdx === null \u0026\u0026 sorting.length === 1 ) {\r\n\t\t\t\t\tnextSortIdx = 0; // can\u0027t remove sorting completely\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tif ( nextSortIdx === null ) {\r\n\t\t\t\t\tsorting.splice( sortIdx, 1 );\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tsorting[sortIdx][1] = asSorting[ nextSortIdx ];\r\n\t\t\t\t\tsorting[sortIdx]._idx = nextSortIdx;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// No sort on this column yet\r\n\t\t\t\tsorting.push( [ colIdx, asSorting[0], 0 ] );\r\n\t\t\t\tsorting[sorting.length-1]._idx = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( sorting.length \u0026\u0026 sorting[0][0] == colIdx ) {\r\n\t\t\t// Single column - already sorting on this column, modify the sort\r\n\t\t\tnextSortIdx = next( sorting[0] );\r\n\t\r\n\t\t\tsorting.length = 1;\r\n\t\t\tsorting[0][1] = asSorting[ nextSortIdx ];\r\n\t\t\tsorting[0]._idx = nextSortIdx;\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// Single column - sort only on this column\r\n\t\t\tsorting.length = 0;\r\n\t\t\tsorting.push( [ colIdx, asSorting[0] ] );\r\n\t\t\tsorting[0]._idx = 0;\r\n\t\t}\r\n\t\r\n\t\t// Run the sort by calling a full redraw\r\n\t\t_fnReDraw( settings );\r\n\t\r\n\t\t// callback used for async user interaction\r\n\t\tif ( typeof callback == \u0027function\u0027 ) {\r\n\t\t\tcallback( settings );\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Attach a sort handler (click) to a node\r\n\t * @param {object} settings dataTables settings object\r\n\t * @param {node} attachTo node to attach the handler to\r\n\t * @param {int} colIdx column sorting index\r\n\t * @param {function} [callback] callback function\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnSortAttachListener ( settings, attachTo, colIdx, callback )\r\n\t{\r\n\t\tvar col = settings.aoColumns[ colIdx ];\r\n\t\r\n\t\t_fnBindAction( attachTo, {}, function (e) {\r\n\t\t\t/* If the column is not sortable - don\u0027t to anything */\r\n\t\t\tif ( col.bSortable === false ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\r\n\t\t\t// If processing is enabled use a timeout to allow the processing\r\n\t\t\t// display to be shown - otherwise to it synchronously\r\n\t\t\tif ( settings.oFeatures.bProcessing ) {\r\n\t\t\t\t_fnProcessingDisplay( settings, true );\r\n\t\r\n\t\t\t\tsetTimeout( function() {\r\n\t\t\t\t\t_fnSortListener( settings, colIdx, e.shiftKey, callback );\r\n\t\r\n\t\t\t\t\t// In server-side processing, the draw callback will remove the\r\n\t\t\t\t\t// processing display\r\n\t\t\t\t\tif ( _fnDataSource( settings ) !== \u0027ssp\u0027 ) {\r\n\t\t\t\t\t\t_fnProcessingDisplay( settings, false );\r\n\t\t\t\t\t}\r\n\t\t\t\t}, 0 );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t_fnSortListener( settings, colIdx, e.shiftKey, callback );\r\n\t\t\t}\r\n\t\t} );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Set the sorting classes on table\u0027s body, Note: it is safe to call this function\r\n\t * when bSort and bSortClasses are false\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnSortingClasses( settings )\r\n\t{\r\n\t\tvar oldSort = settings.aLastSort;\r\n\t\tvar sortClass = settings.oClasses.sSortColumn;\r\n\t\tvar sort = _fnSortFlatten( settings );\r\n\t\tvar features = settings.oFeatures;\r\n\t\tvar i, ien, colIdx;\r\n\t\r\n\t\tif ( features.bSort \u0026\u0026 features.bSortClasses ) {\r\n\t\t\t// Remove old sorting classes\r\n\t\t\tfor ( i=0, ien=oldSort.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t\tcolIdx = oldSort[i].src;\r\n\t\r\n\t\t\t\t// Remove column sorting\r\n\t\t\t\t$( _pluck( settings.aoData, \u0027anCells\u0027, colIdx ) )\r\n\t\t\t\t\t.removeClass( sortClass \u002B (i\u003C2 ? i\u002B1 : 3) );\r\n\t\t\t}\r\n\t\r\n\t\t\t// Add new column sorting\r\n\t\t\tfor ( i=0, ien=sort.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t\tcolIdx = sort[i].src;\r\n\t\r\n\t\t\t\t$( _pluck( settings.aoData, \u0027anCells\u0027, colIdx ) )\r\n\t\t\t\t\t.addClass( sortClass \u002B (i\u003C2 ? i\u002B1 : 3) );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\tsettings.aLastSort = sort;\r\n\t}\r\n\t\r\n\t\r\n\t// Get the data to sort a column, be it from cache, fresh (populating the\r\n\t// cache), or from a sort formatter\r\n\tfunction _fnSortData( settings, idx )\r\n\t{\r\n\t\t// Custom sorting function - provided by the sort data type\r\n\t\tvar column = settings.aoColumns[ idx ];\r\n\t\tvar customSort = DataTable.ext.order[ column.sSortDataType ];\r\n\t\tvar customData;\r\n\t\r\n\t\tif ( customSort ) {\r\n\t\t\tcustomData = customSort.call( settings.oInstance, settings, idx,\r\n\t\t\t\t_fnColumnIndexToVisible( settings, idx )\r\n\t\t\t);\r\n\t\t}\r\n\t\r\n\t\t// Use / populate cache\r\n\t\tvar row, cellData;\r\n\t\tvar formatter = DataTable.ext.type.order[ column.sType\u002B\u0022-pre\u0022 ];\r\n\t\r\n\t\tfor ( var i=0, ien=settings.aoData.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\trow = settings.aoData[i];\r\n\t\r\n\t\t\tif ( ! row._aSortData ) {\r\n\t\t\t\trow._aSortData = [];\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( ! row._aSortData[idx] || customSort ) {\r\n\t\t\t\tcellData = customSort ?\r\n\t\t\t\t\tcustomData[i] : // If there was a custom sort function, use data from there\r\n\t\t\t\t\t_fnGetCellData( settings, i, idx, \u0027sort\u0027 );\r\n\t\r\n\t\t\t\trow._aSortData[ idx ] = formatter ?\r\n\t\t\t\t\tformatter( cellData ) :\r\n\t\t\t\t\tcellData;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Save the state of a table\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnSaveState ( settings )\r\n\t{\r\n\t\tif (settings._bLoadingState) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\t/* Store the interesting variables */\r\n\t\tvar state = {\r\n\t\t\ttime: \u002Bnew Date(),\r\n\t\t\tstart: settings._iDisplayStart,\r\n\t\t\tlength: settings._iDisplayLength,\r\n\t\t\torder: $.extend( true, [], settings.aaSorting ),\r\n\t\t\tsearch: _fnSearchToCamel( settings.oPreviousSearch ),\r\n\t\t\tcolumns: $.map( settings.aoColumns, function ( col, i ) {\r\n\t\t\t\treturn {\r\n\t\t\t\t\tvisible: col.bVisible,\r\n\t\t\t\t\tsearch: _fnSearchToCamel( settings.aoPreSearchCols[i] )\r\n\t\t\t\t};\r\n\t\t\t} )\r\n\t\t};\r\n\t\r\n\t\tsettings.oSavedState = state;\r\n\t\t_fnCallbackFire( settings, \u0022aoStateSaveParams\u0022, \u0027stateSaveParams\u0027, [settings, state] );\r\n\t\t\r\n\t\tif ( settings.oFeatures.bStateSave \u0026\u0026 !settings.bDestroying )\r\n\t\t{\r\n\t\t\tsettings.fnStateSaveCallback.call( settings.oInstance, settings, state );\r\n\t\t}\t\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Attempt to load a saved table state\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {object} oInit DataTables init object so we can override settings\r\n\t * @param {function} callback Callback to execute when the state has been loaded\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnLoadState ( settings, oInit, callback )\r\n\t{\r\n\t\tif ( ! settings.oFeatures.bStateSave ) {\r\n\t\t\tcallback();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\tvar loaded = function(state) {\r\n\t\t\t_fnImplementState(settings, state, callback);\r\n\t\t}\r\n\t\r\n\t\tvar state = settings.fnStateLoadCallback.call( settings.oInstance, settings, loaded );\r\n\t\r\n\t\tif ( state !== undefined ) {\r\n\t\t\t_fnImplementState( settings, state, callback );\r\n\t\t}\r\n\t\t// otherwise, wait for the loaded callback to be executed\r\n\t\r\n\t\treturn true;\r\n\t}\r\n\t\r\n\tfunction _fnImplementState ( settings, s, callback) {\r\n\t\tvar i, ien;\r\n\t\tvar columns = settings.aoColumns;\r\n\t\tsettings._bLoadingState = true;\r\n\t\r\n\t\t// When StateRestore was introduced the state could now be implemented at any time\r\n\t\t// Not just initialisation. To do this an api instance is required in some places\r\n\t\tvar api = settings._bInitComplete ? new DataTable.Api(settings) : null;\r\n\t\r\n\t\tif ( ! s || ! s.time ) {\r\n\t\t\tsettings._bLoadingState = false;\r\n\t\t\tcallback();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\t// Allow custom and plug-in manipulation functions to alter the saved data set and\r\n\t\t// cancelling of loading by returning false\r\n\t\tvar abStateLoad = _fnCallbackFire( settings, \u0027aoStateLoadParams\u0027, \u0027stateLoadParams\u0027, [settings, s] );\r\n\t\tif ( $.inArray( false, abStateLoad ) !== -1 ) {\r\n\t\t\tsettings._bLoadingState = false;\r\n\t\t\tcallback();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\t// Reject old data\r\n\t\tvar duration = settings.iStateDuration;\r\n\t\tif ( duration \u003E 0 \u0026\u0026 s.time \u003C \u002Bnew Date() - (duration*1000) ) {\r\n\t\t\tsettings._bLoadingState = false;\r\n\t\t\tcallback();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\t// Number of columns have changed - all bets are off, no restore of settings\r\n\t\tif ( s.columns \u0026\u0026 columns.length !== s.columns.length ) {\r\n\t\t\tsettings._bLoadingState = false;\r\n\t\t\tcallback();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\t// Store the saved state so it might be accessed at any time\r\n\t\tsettings.oLoadedState = $.extend( true, {}, s );\r\n\t\r\n\t\t// Restore key features - todo - for 1.11 this needs to be done by\r\n\t\t// subscribed events\r\n\t\tif ( s.start !== undefined ) {\r\n\t\t\tsettings._iDisplayStart = s.start;\r\n\t\t\tif(api === null) {\r\n\t\t\t\tsettings.iInitDisplayStart = s.start;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif ( s.length !== undefined ) {\r\n\t\t\tsettings._iDisplayLength = s.length;\r\n\t\t}\r\n\t\r\n\t\t// Order\r\n\t\tif ( s.order !== undefined ) {\r\n\t\t\tsettings.aaSorting = [];\r\n\t\t\t$.each( s.order, function ( i, col ) {\r\n\t\t\t\tsettings.aaSorting.push( col[0] \u003E= columns.length ?\r\n\t\t\t\t\t[ 0, col[1] ] :\r\n\t\t\t\t\tcol\r\n\t\t\t\t);\r\n\t\t\t} );\r\n\t\t}\r\n\t\r\n\t\t// Search\r\n\t\tif ( s.search !== undefined ) {\r\n\t\t\t$.extend( settings.oPreviousSearch, _fnSearchToHung( s.search ) );\r\n\t\t}\r\n\t\r\n\t\t// Columns\r\n\t\tif ( s.columns ) {\r\n\t\t\tfor ( i=0, ien=s.columns.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t\tvar col = s.columns[i];\r\n\t\r\n\t\t\t\t// Visibility\r\n\t\t\t\tif ( col.visible !== undefined ) {\r\n\t\t\t\t\t// If the api is defined, the table has been initialised so we need to use it rather than internal settings\r\n\t\t\t\t\tif (api) {\r\n\t\t\t\t\t\t// Don\u0027t redraw the columns on every iteration of this loop, we will do this at the end instead\r\n\t\t\t\t\t\tapi.column(i).visible(col.visible, false);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tcolumns[i].bVisible = col.visible;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Search\r\n\t\t\t\tif ( col.search !== undefined ) {\r\n\t\t\t\t\t$.extend( settings.aoPreSearchCols[i], _fnSearchToHung( col.search ) );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// If the api is defined then we need to adjust the columns once the visibility has been changed\r\n\t\t\tif (api) {\r\n\t\t\t\tapi.columns.adjust();\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\tsettings._bLoadingState = false;\r\n\t\t_fnCallbackFire( settings, \u0027aoStateLoaded\u0027, \u0027stateLoaded\u0027, [settings, s] );\r\n\t\tcallback();\r\n\t};\r\n\t\r\n\t\r\n\t/**\r\n\t * Return the settings object for a particular table\r\n\t * @param {node} table table we are using as a dataTable\r\n\t * @returns {object} Settings object - or null if not found\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnSettingsFromNode ( table )\r\n\t{\r\n\t\tvar settings = DataTable.settings;\r\n\t\tvar idx = $.inArray( table, _pluck( settings, \u0027nTable\u0027 ) );\r\n\t\r\n\t\treturn idx !== -1 ?\r\n\t\t\tsettings[ idx ] :\r\n\t\t\tnull;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Log an error message\r\n\t * @param {object} settings dataTables settings object\r\n\t * @param {int} level log error messages, or display them to the user\r\n\t * @param {string} msg error message\r\n\t * @param {int} tn Technical note id to get more information about the error.\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnLog( settings, level, msg, tn )\r\n\t{\r\n\t\tmsg = \u0027DataTables warning: \u0027\u002B\r\n\t\t\t(settings ? \u0027table id=\u0027\u002Bsettings.sTableId\u002B\u0027 - \u0027 : \u0027\u0027)\u002Bmsg;\r\n\t\r\n\t\tif ( tn ) {\r\n\t\t\tmsg \u002B= \u0027. For more information about this error, please see \u0027\u002B\r\n\t\t\t\u0027http://datatables.net/tn/\u0027\u002Btn;\r\n\t\t}\r\n\t\r\n\t\tif ( ! level ) {\r\n\t\t\t// Backwards compatibility pre 1.10\r\n\t\t\tvar ext = DataTable.ext;\r\n\t\t\tvar type = ext.sErrMode || ext.errMode;\r\n\t\r\n\t\t\tif ( settings ) {\r\n\t\t\t\t_fnCallbackFire( settings, null, \u0027error\u0027, [ settings, tn, msg ] );\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( type == \u0027alert\u0027 ) {\r\n\t\t\t\talert( msg );\r\n\t\t\t}\r\n\t\t\telse if ( type == \u0027throw\u0027 ) {\r\n\t\t\t\tthrow new Error(msg);\r\n\t\t\t}\r\n\t\t\telse if ( typeof type == \u0027function\u0027 ) {\r\n\t\t\t\ttype( settings, tn, msg );\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( window.console \u0026\u0026 console.log ) {\r\n\t\t\tconsole.log( msg );\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * See if a property is defined on one object, if so assign it to the other object\r\n\t * @param {object} ret target object\r\n\t * @param {object} src source object\r\n\t * @param {string} name property\r\n\t * @param {string} [mappedName] name to map too - optional, name used if not given\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnMap( ret, src, name, mappedName )\r\n\t{\r\n\t\tif ( Array.isArray( name ) ) {\r\n\t\t\t$.each( name, function (i, val) {\r\n\t\t\t\tif ( Array.isArray( val ) ) {\r\n\t\t\t\t\t_fnMap( ret, src, val[0], val[1] );\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t_fnMap( ret, src, val );\r\n\t\t\t\t}\r\n\t\t\t} );\r\n\t\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\tif ( mappedName === undefined ) {\r\n\t\t\tmappedName = name;\r\n\t\t}\r\n\t\r\n\t\tif ( src[name] !== undefined ) {\r\n\t\t\tret[mappedName] = src[name];\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Extend objects - very similar to jQuery.extend, but deep copy objects, and\r\n\t * shallow copy arrays. The reason we need to do this, is that we don\u0027t want to\r\n\t * deep copy array init values (such as aaSorting) since the dev wouldn\u0027t be\r\n\t * able to override them, but we do want to deep copy arrays.\r\n\t * @param {object} out Object to extend\r\n\t * @param {object} extender Object from which the properties will be applied to\r\n\t * out\r\n\t * @param {boolean} breakRefs If true, then arrays will be sliced to take an\r\n\t * independent copy with the exception of the \u00A7data\u00A7 or \u00A7aaData\u00A7 parameters\r\n\t * if they are present. This is so you can pass in a collection to\r\n\t * DataTables and have that used as your data source without breaking the\r\n\t * references\r\n\t * @returns {object} out Reference, just for convenience - out === the return.\r\n\t * @memberof DataTable#oApi\r\n\t * @todo This doesn\u0027t take account of arrays inside the deep copied objects.\r\n\t */\r\n\tfunction _fnExtend( out, extender, breakRefs )\r\n\t{\r\n\t\tvar val;\r\n\t\r\n\t\tfor ( var prop in extender ) {\r\n\t\t\tif ( extender.hasOwnProperty(prop) ) {\r\n\t\t\t\tval = extender[prop];\r\n\t\r\n\t\t\t\tif ( $.isPlainObject( val ) ) {\r\n\t\t\t\t\tif ( ! $.isPlainObject( out[prop] ) ) {\r\n\t\t\t\t\t\tout[prop] = {};\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$.extend( true, out[prop], val );\r\n\t\t\t\t}\r\n\t\t\t\telse if ( breakRefs \u0026\u0026 prop !== \u0027data\u0027 \u0026\u0026 prop !== \u0027aaData\u0027 \u0026\u0026 Array.isArray(val) ) {\r\n\t\t\t\t\tout[prop] = val.slice();\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tout[prop] = val;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn out;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Bind an event handers to allow a click or return key to activate the callback.\r\n\t * This is good for accessibility since a return on the keyboard will have the\r\n\t * same effect as a click, if the element has focus.\r\n\t * @param {element} n Element to bind the action to\r\n\t * @param {object} oData Data object to pass to the triggered function\r\n\t * @param {function} fn Callback function for when the event is triggered\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnBindAction( n, oData, fn )\r\n\t{\r\n\t\t$(n)\r\n\t\t\t.on( \u0027click.DT\u0027, oData, function (e) {\r\n\t\t\t\t\t$(n).trigger(\u0027blur\u0027); // Remove focus outline for mouse users\r\n\t\t\t\t\tfn(e);\r\n\t\t\t\t} )\r\n\t\t\t.on( \u0027keypress.DT\u0027, oData, function (e){\r\n\t\t\t\t\tif ( e.which === 13 ) {\r\n\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\tfn(e);\r\n\t\t\t\t\t}\r\n\t\t\t\t} )\r\n\t\t\t.on( \u0027selectstart.DT\u0027, function () {\r\n\t\t\t\t\t/* Take the brutal approach to cancelling text selection */\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t} );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Register a callback function. Easily allows a callback function to be added to\r\n\t * an array store of callback functions that can then all be called together.\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {string} sStore Name of the array storage for the callbacks in oSettings\r\n\t * @param {function} fn Function to be called back\r\n\t * @param {string} sName Identifying name for the callback (i.e. a label)\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnCallbackReg( oSettings, sStore, fn, sName )\r\n\t{\r\n\t\tif ( fn )\r\n\t\t{\r\n\t\t\toSettings[sStore].push( {\r\n\t\t\t\t\u0022fn\u0022: fn,\r\n\t\t\t\t\u0022sName\u0022: sName\r\n\t\t\t} );\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Fire callback functions and trigger events. Note that the loop over the\r\n\t * callback array store is done backwards! Further note that you do not want to\r\n\t * fire off triggers in time sensitive applications (for example cell creation)\r\n\t * as its slow.\r\n\t * @param {object} settings dataTables settings object\r\n\t * @param {string} callbackArr Name of the array storage for the callbacks in\r\n\t * oSettings\r\n\t * @param {string} eventName Name of the jQuery custom event to trigger. If\r\n\t * null no trigger is fired\r\n\t * @param {array} args Array of arguments to pass to the callback function /\r\n\t * trigger\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnCallbackFire( settings, callbackArr, eventName, args )\r\n\t{\r\n\t\tvar ret = [];\r\n\t\r\n\t\tif ( callbackArr ) {\r\n\t\t\tret = $.map( settings[callbackArr].slice().reverse(), function (val, i) {\r\n\t\t\t\treturn val.fn.apply( settings.oInstance, args );\r\n\t\t\t} );\r\n\t\t}\r\n\t\r\n\t\tif ( eventName !== null ) {\r\n\t\t\tvar e = $.Event( eventName\u002B\u0027.dt\u0027 );\r\n\t\r\n\t\t\t$(settings.nTable).trigger( e, args );\r\n\t\r\n\t\t\tret.push( e.result );\r\n\t\t}\r\n\t\r\n\t\treturn ret;\r\n\t}\r\n\t\r\n\t\r\n\tfunction _fnLengthOverflow ( settings )\r\n\t{\r\n\t\tvar\r\n\t\t\tstart = settings._iDisplayStart,\r\n\t\t\tend = settings.fnDisplayEnd(),\r\n\t\t\tlen = settings._iDisplayLength;\r\n\t\r\n\t\t/* If we have space to show extra rows (backing up from the end point - then do so */\r\n\t\tif ( start \u003E= end )\r\n\t\t{\r\n\t\t\tstart = end - len;\r\n\t\t}\r\n\t\r\n\t\t// Keep the start record on the current page\r\n\t\tstart -= (start % len);\r\n\t\r\n\t\tif ( len === -1 || start \u003C 0 )\r\n\t\t{\r\n\t\t\tstart = 0;\r\n\t\t}\r\n\t\r\n\t\tsettings._iDisplayStart = start;\r\n\t}\r\n\t\r\n\t\r\n\tfunction _fnRenderer( settings, type )\r\n\t{\r\n\t\tvar renderer = settings.renderer;\r\n\t\tvar host = DataTable.ext.renderer[type];\r\n\t\r\n\t\tif ( $.isPlainObject( renderer ) \u0026\u0026 renderer[type] ) {\r\n\t\t\t// Specific renderer for this type. If available use it, otherwise use\r\n\t\t\t// the default.\r\n\t\t\treturn host[renderer[type]] || host._;\r\n\t\t}\r\n\t\telse if ( typeof renderer === \u0027string\u0027 ) {\r\n\t\t\t// Common renderer - if there is one available for this type use it,\r\n\t\t\t// otherwise use the default\r\n\t\t\treturn host[renderer] || host._;\r\n\t\t}\r\n\t\r\n\t\t// Use the default\r\n\t\treturn host._;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Detect the data source being used for the table. Used to simplify the code\r\n\t * a little (ajax) and to make it compress a little smaller.\r\n\t *\r\n\t * @param {object} settings dataTables settings object\r\n\t * @returns {string} Data source\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnDataSource ( settings )\r\n\t{\r\n\t\tif ( settings.oFeatures.bServerSide ) {\r\n\t\t\treturn \u0027ssp\u0027;\r\n\t\t}\r\n\t\telse if ( settings.ajax || settings.sAjaxSource ) {\r\n\t\t\treturn \u0027ajax\u0027;\r\n\t\t}\r\n\t\treturn \u0027dom\u0027;\r\n\t}\r\n\t\r\n\r\n\t\r\n\t\r\n\t/**\r\n\t * Computed structure of the DataTables API, defined by the options passed to\r\n\t * \u00A7DataTable.Api.register()\u00A7 when building the API.\r\n\t *\r\n\t * The structure is built in order to speed creation and extension of the Api\r\n\t * objects since the extensions are effectively pre-parsed.\r\n\t *\r\n\t * The array is an array of objects with the following structure, where this\r\n\t * base array represents the Api prototype base:\r\n\t *\r\n\t * [\r\n\t * {\r\n\t * name: \u0027data\u0027 -- string - Property name\r\n\t * val: function () {}, -- function - Api method (or undefined if just an object\r\n\t * methodExt: [ ... ], -- array - Array of Api object definitions to extend the method result\r\n\t * propExt: [ ... ] -- array - Array of Api object definitions to extend the property\r\n\t * },\r\n\t * {\r\n\t * name: \u0027row\u0027\r\n\t * val: {},\r\n\t * methodExt: [ ... ],\r\n\t * propExt: [\r\n\t * {\r\n\t * name: \u0027data\u0027\r\n\t * val: function () {},\r\n\t * methodExt: [ ... ],\r\n\t * propExt: [ ... ]\r\n\t * },\r\n\t * ...\r\n\t * ]\r\n\t * }\r\n\t * ]\r\n\t *\r\n\t * @type {Array}\r\n\t * @ignore\r\n\t */\r\n\tvar __apiStruct = [];\r\n\t\r\n\t\r\n\t/**\r\n\t * \u00A7Array.prototype\u00A7 reference.\r\n\t *\r\n\t * @type object\r\n\t * @ignore\r\n\t */\r\n\tvar __arrayProto = Array.prototype;\r\n\t\r\n\t\r\n\t/**\r\n\t * Abstraction for \u00A7context\u00A7 parameter of the \u00A7Api\u00A7 constructor to allow it to\r\n\t * take several different forms for ease of use.\r\n\t *\r\n\t * Each of the input parameter types will be converted to a DataTables settings\r\n\t * object where possible.\r\n\t *\r\n\t * @param {string|node|jQuery|object} mixed DataTable identifier. Can be one\r\n\t * of:\r\n\t *\r\n\t * * \u00A7string\u00A7 - jQuery selector. Any DataTables\u0027 matching the given selector\r\n\t * with be found and used.\r\n\t * * \u00A7node\u00A7 - \u00A7TABLE\u00A7 node which has already been formed into a DataTable.\r\n\t * * \u00A7jQuery\u00A7 - A jQuery object of \u00A7TABLE\u00A7 nodes.\r\n\t * * \u00A7object\u00A7 - DataTables settings object\r\n\t * * \u00A7DataTables.Api\u00A7 - API instance\r\n\t * @return {array|null} Matching DataTables settings objects. \u00A7null\u00A7 or\r\n\t * \u00A7undefined\u00A7 is returned if no matching DataTable is found.\r\n\t * @ignore\r\n\t */\r\n\tvar _toSettings = function ( mixed )\r\n\t{\r\n\t\tvar idx, jq;\r\n\t\tvar settings = DataTable.settings;\r\n\t\tvar tables = $.map( settings, function (el, i) {\r\n\t\t\treturn el.nTable;\r\n\t\t} );\r\n\t\r\n\t\tif ( ! mixed ) {\r\n\t\t\treturn [];\r\n\t\t}\r\n\t\telse if ( mixed.nTable \u0026\u0026 mixed.oApi ) {\r\n\t\t\t// DataTables settings object\r\n\t\t\treturn [ mixed ];\r\n\t\t}\r\n\t\telse if ( mixed.nodeName \u0026\u0026 mixed.nodeName.toLowerCase() === \u0027table\u0027 ) {\r\n\t\t\t// Table node\r\n\t\t\tidx = $.inArray( mixed, tables );\r\n\t\t\treturn idx !== -1 ? [ settings[idx] ] : null;\r\n\t\t}\r\n\t\telse if ( mixed \u0026\u0026 typeof mixed.settings === \u0027function\u0027 ) {\r\n\t\t\treturn mixed.settings().toArray();\r\n\t\t}\r\n\t\telse if ( typeof mixed === \u0027string\u0027 ) {\r\n\t\t\t// jQuery selector\r\n\t\t\tjq = $(mixed);\r\n\t\t}\r\n\t\telse if ( mixed instanceof $ ) {\r\n\t\t\t// jQuery object (also DataTables instance)\r\n\t\t\tjq = mixed;\r\n\t\t}\r\n\t\r\n\t\tif ( jq ) {\r\n\t\t\treturn jq.map( function(i) {\r\n\t\t\t\tidx = $.inArray( this, tables );\r\n\t\t\t\treturn idx !== -1 ? settings[idx] : null;\r\n\t\t\t} ).toArray();\r\n\t\t}\r\n\t};\r\n\t\r\n\t\r\n\t/**\r\n\t * DataTables API class - used to control and interface with one or more\r\n\t * DataTables enhanced tables.\r\n\t *\r\n\t * The API class is heavily based on jQuery, presenting a chainable interface\r\n\t * that you can use to interact with tables. Each instance of the API class has\r\n\t * a \u0022context\u0022 - i.e. the tables that it will operate on. This could be a single\r\n\t * table, all tables on a page or a sub-set thereof.\r\n\t *\r\n\t * Additionally the API is designed to allow you to easily work with the data in\r\n\t * the tables, retrieving and manipulating it as required. This is done by\r\n\t * presenting the API class as an array like interface. The contents of the\r\n\t * array depend upon the actions requested by each method (for example\r\n\t * \u00A7rows().nodes()\u00A7 will return an array of nodes, while \u00A7rows().data()\u00A7 will\r\n\t * return an array of objects or arrays depending upon your table\u0027s\r\n\t * configuration). The API object has a number of array like methods (\u00A7push\u00A7,\r\n\t * \u00A7pop\u00A7, \u00A7reverse\u00A7 etc) as well as additional helper methods (\u00A7each\u00A7, \u00A7pluck\u00A7,\r\n\t * \u00A7unique\u00A7 etc) to assist your working with the data held in a table.\r\n\t *\r\n\t * Most methods (those which return an Api instance) are chainable, which means\r\n\t * the return from a method call also has all of the methods available that the\r\n\t * top level object had. For example, these two calls are equivalent:\r\n\t *\r\n\t * // Not chained\r\n\t * api.row.add( {...} );\r\n\t * api.draw();\r\n\t *\r\n\t * // Chained\r\n\t * api.row.add( {...} ).draw();\r\n\t *\r\n\t * @class DataTable.Api\r\n\t * @param {array|object|string|jQuery} context DataTable identifier. This is\r\n\t * used to define which DataTables enhanced tables this API will operate on.\r\n\t * Can be one of:\r\n\t *\r\n\t * * \u00A7string\u00A7 - jQuery selector. Any DataTables\u0027 matching the given selector\r\n\t * with be found and used.\r\n\t * * \u00A7node\u00A7 - \u00A7TABLE\u00A7 node which has already been formed into a DataTable.\r\n\t * * \u00A7jQuery\u00A7 - A jQuery object of \u00A7TABLE\u00A7 nodes.\r\n\t * * \u00A7object\u00A7 - DataTables settings object\r\n\t * @param {array} [data] Data to initialise the Api instance with.\r\n\t *\r\n\t * @example\r\n\t * // Direct initialisation during DataTables construction\r\n\t * var api = $(\u0027#example\u0027).DataTable();\r\n\t *\r\n\t * @example\r\n\t * // Initialisation using a DataTables jQuery object\r\n\t * var api = $(\u0027#example\u0027).dataTable().api();\r\n\t *\r\n\t * @example\r\n\t * // Initialisation as a constructor\r\n\t * var api = new $.fn.DataTable.Api( \u0027table.dataTable\u0027 );\r\n\t */\r\n\t_Api = function ( context, data )\r\n\t{\r\n\t\tif ( ! (this instanceof _Api) ) {\r\n\t\t\treturn new _Api( context, data );\r\n\t\t}\r\n\t\r\n\t\tvar settings = [];\r\n\t\tvar ctxSettings = function ( o ) {\r\n\t\t\tvar a = _toSettings( o );\r\n\t\t\tif ( a ) {\r\n\t\t\t\tsettings.push.apply( settings, a );\r\n\t\t\t}\r\n\t\t};\r\n\t\r\n\t\tif ( Array.isArray( context ) ) {\r\n\t\t\tfor ( var i=0, ien=context.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t\tctxSettings( context[i] );\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tctxSettings( context );\r\n\t\t}\r\n\t\r\n\t\t// Remove duplicates\r\n\t\tthis.context = _unique( settings );\r\n\t\r\n\t\t// Initial data\r\n\t\tif ( data ) {\r\n\t\t\t$.merge( this, data );\r\n\t\t}\r\n\t\r\n\t\t// selector\r\n\t\tthis.selector = {\r\n\t\t\trows: null,\r\n\t\t\tcols: null,\r\n\t\t\topts: null\r\n\t\t};\r\n\t\r\n\t\t_Api.extend( this, this, __apiStruct );\r\n\t};\r\n\t\r\n\tDataTable.Api = _Api;\r\n\t\r\n\t// Don\u0027t destroy the existing prototype, just extend it. Required for jQuery 2\u0027s\r\n\t// isPlainObject.\r\n\t$.extend( _Api.prototype, {\r\n\t\tany: function ()\r\n\t\t{\r\n\t\t\treturn this.count() !== 0;\r\n\t\t},\r\n\t\r\n\t\r\n\t\tconcat: __arrayProto.concat,\r\n\t\r\n\t\r\n\t\tcontext: [], // array of table settings objects\r\n\t\r\n\t\r\n\t\tcount: function ()\r\n\t\t{\r\n\t\t\treturn this.flatten().length;\r\n\t\t},\r\n\t\r\n\t\r\n\t\teach: function ( fn )\r\n\t\t{\r\n\t\t\tfor ( var i=0, ien=this.length ; i\u003Cien; i\u002B\u002B ) {\r\n\t\t\t\tfn.call( this, this[i], i, this );\r\n\t\t\t}\r\n\t\r\n\t\t\treturn this;\r\n\t\t},\r\n\t\r\n\t\r\n\t\teq: function ( idx )\r\n\t\t{\r\n\t\t\tvar ctx = this.context;\r\n\t\r\n\t\t\treturn ctx.length \u003E idx ?\r\n\t\t\t\tnew _Api( ctx[idx], this[idx] ) :\r\n\t\t\t\tnull;\r\n\t\t},\r\n\t\r\n\t\r\n\t\tfilter: function ( fn )\r\n\t\t{\r\n\t\t\tvar a = [];\r\n\t\r\n\t\t\tif ( __arrayProto.filter ) {\r\n\t\t\t\ta = __arrayProto.filter.call( this, fn, this );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// Compatibility for browsers without EMCA-252-5 (JS 1.6)\r\n\t\t\t\tfor ( var i=0, ien=this.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t\t\tif ( fn.call( this, this[i], i, this ) ) {\r\n\t\t\t\t\t\ta.push( this[i] );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\treturn new _Api( this.context, a );\r\n\t\t},\r\n\t\r\n\t\r\n\t\tflatten: function ()\r\n\t\t{\r\n\t\t\tvar a = [];\r\n\t\t\treturn new _Api( this.context, a.concat.apply( a, this.toArray() ) );\r\n\t\t},\r\n\t\r\n\t\r\n\t\tjoin: __arrayProto.join,\r\n\t\r\n\t\r\n\t\tindexOf: __arrayProto.indexOf || function (obj, start)\r\n\t\t{\r\n\t\t\tfor ( var i=(start || 0), ien=this.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t\tif ( this[i] === obj ) {\r\n\t\t\t\t\treturn i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn -1;\r\n\t\t},\r\n\t\r\n\t\titerator: function ( flatten, type, fn, alwaysNew ) {\r\n\t\t\tvar\r\n\t\t\t\ta = [], ret,\r\n\t\t\t\ti, ien, j, jen,\r\n\t\t\t\tcontext = this.context,\r\n\t\t\t\trows, items, item,\r\n\t\t\t\tselector = this.selector;\r\n\t\r\n\t\t\t// Argument shifting\r\n\t\t\tif ( typeof flatten === \u0027string\u0027 ) {\r\n\t\t\t\talwaysNew = fn;\r\n\t\t\t\tfn = type;\r\n\t\t\t\ttype = flatten;\r\n\t\t\t\tflatten = false;\r\n\t\t\t}\r\n\t\r\n\t\t\tfor ( i=0, ien=context.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t\tvar apiInst = new _Api( context[i] );\r\n\t\r\n\t\t\t\tif ( type === \u0027table\u0027 ) {\r\n\t\t\t\t\tret = fn.call( apiInst, context[i], i );\r\n\t\r\n\t\t\t\t\tif ( ret !== undefined ) {\r\n\t\t\t\t\t\ta.push( ret );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if ( type === \u0027columns\u0027 || type === \u0027rows\u0027 ) {\r\n\t\t\t\t\t// this has same length as context - one entry for each table\r\n\t\t\t\t\tret = fn.call( apiInst, context[i], this[i], i );\r\n\t\r\n\t\t\t\t\tif ( ret !== undefined ) {\r\n\t\t\t\t\t\ta.push( ret );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if ( type === \u0027column\u0027 || type === \u0027column-rows\u0027 || type === \u0027row\u0027 || type === \u0027cell\u0027 ) {\r\n\t\t\t\t\t// columns and rows share the same structure.\r\n\t\t\t\t\t// \u0027this\u0027 is an array of column indexes for each context\r\n\t\t\t\t\titems = this[i];\r\n\t\r\n\t\t\t\t\tif ( type === \u0027column-rows\u0027 ) {\r\n\t\t\t\t\t\trows = _selector_row_indexes( context[i], selector.opts );\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tfor ( j=0, jen=items.length ; j\u003Cjen ; j\u002B\u002B ) {\r\n\t\t\t\t\t\titem = items[j];\r\n\t\r\n\t\t\t\t\t\tif ( type === \u0027cell\u0027 ) {\r\n\t\t\t\t\t\t\tret = fn.call( apiInst, context[i], item.row, item.column, i, j );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tret = fn.call( apiInst, context[i], item, i, j, rows );\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\tif ( ret !== undefined ) {\r\n\t\t\t\t\t\t\ta.push( ret );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( a.length || alwaysNew ) {\r\n\t\t\t\tvar api = new _Api( context, flatten ? a.concat.apply( [], a ) : a );\r\n\t\t\t\tvar apiSelector = api.selector;\r\n\t\t\t\tapiSelector.rows = selector.rows;\r\n\t\t\t\tapiSelector.cols = selector.cols;\r\n\t\t\t\tapiSelector.opts = selector.opts;\r\n\t\t\t\treturn api;\r\n\t\t\t}\r\n\t\t\treturn this;\r\n\t\t},\r\n\t\r\n\t\r\n\t\tlastIndexOf: __arrayProto.lastIndexOf || function (obj, start)\r\n\t\t{\r\n\t\t\t// Bit cheeky...\r\n\t\t\treturn this.indexOf.apply( this.toArray.reverse(), arguments );\r\n\t\t},\r\n\t\r\n\t\r\n\t\tlength: 0,\r\n\t\r\n\t\r\n\t\tmap: function ( fn )\r\n\t\t{\r\n\t\t\tvar a = [];\r\n\t\r\n\t\t\tif ( __arrayProto.map ) {\r\n\t\t\t\ta = __arrayProto.map.call( this, fn, this );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// Compatibility for browsers without EMCA-252-5 (JS 1.6)\r\n\t\t\t\tfor ( var i=0, ien=this.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t\t\ta.push( fn.call( this, this[i], i ) );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\treturn new _Api( this.context, a );\r\n\t\t},\r\n\t\r\n\t\r\n\t\tpluck: function ( prop )\r\n\t\t{\r\n\t\t\treturn this.map( function ( el ) {\r\n\t\t\t\treturn el[ prop ];\r\n\t\t\t} );\r\n\t\t},\r\n\t\r\n\t\tpop: __arrayProto.pop,\r\n\t\r\n\t\r\n\t\tpush: __arrayProto.push,\r\n\t\r\n\t\r\n\t\t// Does not return an API instance\r\n\t\treduce: __arrayProto.reduce || function ( fn, init )\r\n\t\t{\r\n\t\t\treturn _fnReduce( this, fn, init, 0, this.length, 1 );\r\n\t\t},\r\n\t\r\n\t\r\n\t\treduceRight: __arrayProto.reduceRight || function ( fn, init )\r\n\t\t{\r\n\t\t\treturn _fnReduce( this, fn, init, this.length-1, -1, -1 );\r\n\t\t},\r\n\t\r\n\t\r\n\t\treverse: __arrayProto.reverse,\r\n\t\r\n\t\r\n\t\t// Object with rows, columns and opts\r\n\t\tselector: null,\r\n\t\r\n\t\r\n\t\tshift: __arrayProto.shift,\r\n\t\r\n\t\r\n\t\tslice: function () {\r\n\t\t\treturn new _Api( this.context, this );\r\n\t\t},\r\n\t\r\n\t\r\n\t\tsort: __arrayProto.sort, // ? name - order?\r\n\t\r\n\t\r\n\t\tsplice: __arrayProto.splice,\r\n\t\r\n\t\r\n\t\ttoArray: function ()\r\n\t\t{\r\n\t\t\treturn __arrayProto.slice.call( this );\r\n\t\t},\r\n\t\r\n\t\r\n\t\tto$: function ()\r\n\t\t{\r\n\t\t\treturn $( this );\r\n\t\t},\r\n\t\r\n\t\r\n\t\ttoJQuery: function ()\r\n\t\t{\r\n\t\t\treturn $( this );\r\n\t\t},\r\n\t\r\n\t\r\n\t\tunique: function ()\r\n\t\t{\r\n\t\t\treturn new _Api( this.context, _unique(this) );\r\n\t\t},\r\n\t\r\n\t\r\n\t\tunshift: __arrayProto.unshift\r\n\t} );\r\n\t\r\n\t\r\n\t_Api.extend = function ( scope, obj, ext )\r\n\t{\r\n\t\t// Only extend API instances and static properties of the API\r\n\t\tif ( ! ext.length || ! obj || ( ! (obj instanceof _Api) \u0026\u0026 ! obj.__dt_wrapper ) ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\tvar\r\n\t\t\ti, ien,\r\n\t\t\tstruct,\r\n\t\t\tmethodScoping = function ( scope, fn, struc ) {\r\n\t\t\t\treturn function () {\r\n\t\t\t\t\tvar ret = fn.apply( scope, arguments );\r\n\t\r\n\t\t\t\t\t// Method extension\r\n\t\t\t\t\t_Api.extend( ret, ret, struc.methodExt );\r\n\t\t\t\t\treturn ret;\r\n\t\t\t\t};\r\n\t\t\t};\r\n\t\r\n\t\tfor ( i=0, ien=ext.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\tstruct = ext[i];\r\n\t\r\n\t\t\t// Value\r\n\t\t\tobj[ struct.name ] = struct.type === \u0027function\u0027 ?\r\n\t\t\t\tmethodScoping( scope, struct.val, struct ) :\r\n\t\t\t\tstruct.type === \u0027object\u0027 ?\r\n\t\t\t\t\t{} :\r\n\t\t\t\t\tstruct.val;\r\n\t\r\n\t\t\tobj[ struct.name ].__dt_wrapper = true;\r\n\t\r\n\t\t\t// Property extension\r\n\t\t\t_Api.extend( scope, obj[ struct.name ], struct.propExt );\r\n\t\t}\r\n\t};\r\n\t\r\n\t\r\n\t// @todo - Is there need for an augment function?\r\n\t// _Api.augment = function ( inst, name )\r\n\t// {\r\n\t// \t// Find src object in the structure from the name\r\n\t// \tvar parts = name.split(\u0027.\u0027);\r\n\t\r\n\t// \t_Api.extend( inst, obj );\r\n\t// };\r\n\t\r\n\t\r\n\t// [\r\n\t// {\r\n\t// name: \u0027data\u0027 -- string - Property name\r\n\t// val: function () {}, -- function - Api method (or undefined if just an object\r\n\t// methodExt: [ ... ], -- array - Array of Api object definitions to extend the method result\r\n\t// propExt: [ ... ] -- array - Array of Api object definitions to extend the property\r\n\t// },\r\n\t// {\r\n\t// name: \u0027row\u0027\r\n\t// val: {},\r\n\t// methodExt: [ ... ],\r\n\t// propExt: [\r\n\t// {\r\n\t// name: \u0027data\u0027\r\n\t// val: function () {},\r\n\t// methodExt: [ ... ],\r\n\t// propExt: [ ... ]\r\n\t// },\r\n\t// ...\r\n\t// ]\r\n\t// }\r\n\t// ]\r\n\t\r\n\t_Api.register = _api_register = function ( name, val )\r\n\t{\r\n\t\tif ( Array.isArray( name ) ) {\r\n\t\t\tfor ( var j=0, jen=name.length ; j\u003Cjen ; j\u002B\u002B ) {\r\n\t\t\t\t_Api.register( name[j], val );\r\n\t\t\t}\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\tvar\r\n\t\t\ti, ien,\r\n\t\t\their = name.split(\u0027.\u0027),\r\n\t\t\tstruct = __apiStruct,\r\n\t\t\tkey, method;\r\n\t\r\n\t\tvar find = function ( src, name ) {\r\n\t\t\tfor ( var i=0, ien=src.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t\tif ( src[i].name === name ) {\r\n\t\t\t\t\treturn src[i];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t};\r\n\t\r\n\t\tfor ( i=0, ien=heir.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\tmethod = heir[i].indexOf(\u0027()\u0027) !== -1;\r\n\t\t\tkey = method ?\r\n\t\t\t\their[i].replace(\u0027()\u0027, \u0027\u0027) :\r\n\t\t\t\their[i];\r\n\t\r\n\t\t\tvar src = find( struct, key );\r\n\t\t\tif ( ! src ) {\r\n\t\t\t\tsrc = {\r\n\t\t\t\t\tname: key,\r\n\t\t\t\t\tval: {},\r\n\t\t\t\t\tmethodExt: [],\r\n\t\t\t\t\tpropExt: [],\r\n\t\t\t\t\ttype: \u0027object\u0027\r\n\t\t\t\t};\r\n\t\t\t\tstruct.push( src );\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( i === ien-1 ) {\r\n\t\t\t\tsrc.val = val;\r\n\t\t\t\tsrc.type = typeof val === \u0027function\u0027 ?\r\n\t\t\t\t\t\u0027function\u0027 :\r\n\t\t\t\t\t$.isPlainObject( val ) ?\r\n\t\t\t\t\t\t\u0027object\u0027 :\r\n\t\t\t\t\t\t\u0027other\u0027;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tstruct = method ?\r\n\t\t\t\t\tsrc.methodExt :\r\n\t\t\t\t\tsrc.propExt;\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\t\r\n\t_Api.registerPlural = _api_registerPlural = function ( pluralName, singularName, val ) {\r\n\t\t_Api.register( pluralName, val );\r\n\t\r\n\t\t_Api.register( singularName, function () {\r\n\t\t\tvar ret = val.apply( this, arguments );\r\n\t\r\n\t\t\tif ( ret === this ) {\r\n\t\t\t\t// Returned item is the API instance that was passed in, return it\r\n\t\t\t\treturn this;\r\n\t\t\t}\r\n\t\t\telse if ( ret instanceof _Api ) {\r\n\t\t\t\t// New API instance returned, want the value from the first item\r\n\t\t\t\t// in the returned array for the singular result.\r\n\t\t\t\treturn ret.length ?\r\n\t\t\t\t\tArray.isArray( ret[0] ) ?\r\n\t\t\t\t\t\tnew _Api( ret.context, ret[0] ) : // Array results are \u0027enhanced\u0027\r\n\t\t\t\t\t\tret[0] :\r\n\t\t\t\t\tundefined;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Non-API return - just fire it back\r\n\t\t\treturn ret;\r\n\t\t} );\r\n\t};\r\n\t\r\n\t\r\n\t/**\r\n\t * Selector for HTML tables. Apply the given selector to the give array of\r\n\t * DataTables settings objects.\r\n\t *\r\n\t * @param {string|integer} [selector] jQuery selector string or integer\r\n\t * @param {array} Array of DataTables settings objects to be filtered\r\n\t * @return {array}\r\n\t * @ignore\r\n\t */\r\n\tvar __table_selector = function ( selector, a )\r\n\t{\r\n\t\tif ( Array.isArray(selector) ) {\r\n\t\t\treturn $.map( selector, function (item) {\r\n\t\t\t\treturn __table_selector(item, a);\r\n\t\t\t} );\r\n\t\t}\r\n\t\r\n\t\t// Integer is used to pick out a table by index\r\n\t\tif ( typeof selector === \u0027number\u0027 ) {\r\n\t\t\treturn [ a[ selector ] ];\r\n\t\t}\r\n\t\r\n\t\t// Perform a jQuery selector on the table nodes\r\n\t\tvar nodes = $.map( a, function (el, i) {\r\n\t\t\treturn el.nTable;\r\n\t\t} );\r\n\t\r\n\t\treturn $(nodes)\r\n\t\t\t.filter( selector )\r\n\t\t\t.map( function (i) {\r\n\t\t\t\t// Need to translate back from the table node to the settings\r\n\t\t\t\tvar idx = $.inArray( this, nodes );\r\n\t\t\t\treturn a[ idx ];\r\n\t\t\t} )\r\n\t\t\t.toArray();\r\n\t};\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Context selector for the API\u0027s context (i.e. the tables the API instance\r\n\t * refers to.\r\n\t *\r\n\t * @name DataTable.Api#tables\r\n\t * @param {string|integer} [selector] Selector to pick which tables the iterator\r\n\t * should operate on. If not given, all tables in the current context are\r\n\t * used. This can be given as a jQuery selector (for example \u00A7\u0027:gt(0)\u0027\u00A7) to\r\n\t * select multiple tables or as an integer to select a single table.\r\n\t * @returns {DataTable.Api} Returns a new API instance if a selector is given.\r\n\t */\r\n\t_api_register( \u0027tables()\u0027, function ( selector ) {\r\n\t\t// A new instance is created if there was a selector specified\r\n\t\treturn selector !== undefined \u0026\u0026 selector !== null ?\r\n\t\t\tnew _Api( __table_selector( selector, this.context ) ) :\r\n\t\t\tthis;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( \u0027table()\u0027, function ( selector ) {\r\n\t\tvar tables = this.tables( selector );\r\n\t\tvar ctx = tables.context;\r\n\t\r\n\t\t// Truncate to the first matched table\r\n\t\treturn ctx.length ?\r\n\t\t\tnew _Api( ctx[0] ) :\r\n\t\t\ttables;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_registerPlural( \u0027tables().nodes()\u0027, \u0027table().node()\u0027 , function () {\r\n\t\treturn this.iterator( \u0027table\u0027, function ( ctx ) {\r\n\t\t\treturn ctx.nTable;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_registerPlural( \u0027tables().body()\u0027, \u0027table().body()\u0027 , function () {\r\n\t\treturn this.iterator( \u0027table\u0027, function ( ctx ) {\r\n\t\t\treturn ctx.nTBody;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_registerPlural( \u0027tables().header()\u0027, \u0027table().header()\u0027 , function () {\r\n\t\treturn this.iterator( \u0027table\u0027, function ( ctx ) {\r\n\t\t\treturn ctx.nTHead;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_registerPlural( \u0027tables().footer()\u0027, \u0027table().footer()\u0027 , function () {\r\n\t\treturn this.iterator( \u0027table\u0027, function ( ctx ) {\r\n\t\t\treturn ctx.nTFoot;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_registerPlural( \u0027tables().containers()\u0027, \u0027table().container()\u0027 , function () {\r\n\t\treturn this.iterator( \u0027table\u0027, function ( ctx ) {\r\n\t\t\treturn ctx.nTableWrapper;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Redraw the tables in the current context.\r\n\t */\r\n\t_api_register( \u0027draw()\u0027, function ( paging ) {\r\n\t\treturn this.iterator( \u0027table\u0027, function ( settings ) {\r\n\t\t\tif ( paging === \u0027page\u0027 ) {\r\n\t\t\t\t_fnDraw( settings );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif ( typeof paging === \u0027string\u0027 ) {\r\n\t\t\t\t\tpaging = paging === \u0027full-hold\u0027 ?\r\n\t\t\t\t\t\tfalse :\r\n\t\t\t\t\t\ttrue;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t_fnReDraw( settings, paging===false );\r\n\t\t\t}\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Get the current page index.\r\n\t *\r\n\t * @return {integer} Current page index (zero based)\r\n\t *//**\r\n\t * Set the current page.\r\n\t *\r\n\t * Note that if you attempt to show a page which does not exist, DataTables will\r\n\t * not throw an error, but rather reset the paging.\r\n\t *\r\n\t * @param {integer|string} action The paging action to take. This can be one of:\r\n\t * * \u00A7integer\u00A7 - The page index to jump to\r\n\t * * \u00A7string\u00A7 - An action to take:\r\n\t * * \u00A7first\u00A7 - Jump to first page.\r\n\t * * \u00A7next\u00A7 - Jump to the next page\r\n\t * * \u00A7previous\u00A7 - Jump to previous page\r\n\t * * \u00A7last\u00A7 - Jump to the last page.\r\n\t * @returns {DataTables.Api} this\r\n\t */\r\n\t_api_register( \u0027page()\u0027, function ( action ) {\r\n\t\tif ( action === undefined ) {\r\n\t\t\treturn this.page.info().page; // not an expensive call\r\n\t\t}\r\n\t\r\n\t\t// else, have an action to take on all tables\r\n\t\treturn this.iterator( \u0027table\u0027, function ( settings ) {\r\n\t\t\t_fnPageChange( settings, action );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t/**\r\n\t * Paging information for the first table in the current context.\r\n\t *\r\n\t * If you require paging information for another table, use the \u00A7table()\u00A7 method\r\n\t * with a suitable selector.\r\n\t *\r\n\t * @return {object} Object with the following properties set:\r\n\t * * \u00A7page\u00A7 - Current page index (zero based - i.e. the first page is \u00A70\u00A7)\r\n\t * * \u00A7pages\u00A7 - Total number of pages\r\n\t * * \u00A7start\u00A7 - Display index for the first record shown on the current page\r\n\t * * \u00A7end\u00A7 - Display index for the last record shown on the current page\r\n\t * * \u00A7length\u00A7 - Display length (number of records). Note that generally \u00A7start\r\n\t * \u002B length = end\u00A7, but this is not always true, for example if there are\r\n\t * only 2 records to show on the final page, with a length of 10.\r\n\t * * \u00A7recordsTotal\u00A7 - Full data set length\r\n\t * * \u00A7recordsDisplay\u00A7 - Data set length once the current filtering criterion\r\n\t * are applied.\r\n\t */\r\n\t_api_register( \u0027page.info()\u0027, function ( action ) {\r\n\t\tif ( this.context.length === 0 ) {\r\n\t\t\treturn undefined;\r\n\t\t}\r\n\t\r\n\t\tvar\r\n\t\t\tsettings = this.context[0],\r\n\t\t\tstart = settings._iDisplayStart,\r\n\t\t\tlen = settings.oFeatures.bPaginate ? settings._iDisplayLength : -1,\r\n\t\t\tvisRecords = settings.fnRecordsDisplay(),\r\n\t\t\tall = len === -1;\r\n\t\r\n\t\treturn {\r\n\t\t\t\u0022page\u0022: all ? 0 : Math.floor( start / len ),\r\n\t\t\t\u0022pages\u0022: all ? 1 : Math.ceil( visRecords / len ),\r\n\t\t\t\u0022start\u0022: start,\r\n\t\t\t\u0022end\u0022: settings.fnDisplayEnd(),\r\n\t\t\t\u0022length\u0022: len,\r\n\t\t\t\u0022recordsTotal\u0022: settings.fnRecordsTotal(),\r\n\t\t\t\u0022recordsDisplay\u0022: visRecords,\r\n\t\t\t\u0022serverSide\u0022: _fnDataSource( settings ) === \u0027ssp\u0027\r\n\t\t};\r\n\t} );\r\n\t\r\n\t\r\n\t/**\r\n\t * Get the current page length.\r\n\t *\r\n\t * @return {integer} Current page length. Note \u00A7-1\u00A7 indicates that all records\r\n\t * are to be shown.\r\n\t *//**\r\n\t * Set the current page length.\r\n\t *\r\n\t * @param {integer} Page length to set. Use \u00A7-1\u00A7 to show all records.\r\n\t * @returns {DataTables.Api} this\r\n\t */\r\n\t_api_register( \u0027page.len()\u0027, function ( len ) {\r\n\t\t// Note that we can\u0027t call this function \u0027length()\u0027 because \u00A7length\u00A7\r\n\t\t// is a Javascript property of functions which defines how many arguments\r\n\t\t// the function expects.\r\n\t\tif ( len === undefined ) {\r\n\t\t\treturn this.context.length !== 0 ?\r\n\t\t\t\tthis.context[0]._iDisplayLength :\r\n\t\t\t\tundefined;\r\n\t\t}\r\n\t\r\n\t\t// else, set the page length\r\n\t\treturn this.iterator( \u0027table\u0027, function ( settings ) {\r\n\t\t\t_fnLengthChange( settings, len );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\tvar __reload = function ( settings, holdPosition, callback ) {\r\n\t\t// Use the draw event to trigger a callback\r\n\t\tif ( callback ) {\r\n\t\t\tvar api = new _Api( settings );\r\n\t\r\n\t\t\tapi.one( \u0027draw\u0027, function () {\r\n\t\t\t\tcallback( api.ajax.json() );\r\n\t\t\t} );\r\n\t\t}\r\n\t\r\n\t\tif ( _fnDataSource( settings ) == \u0027ssp\u0027 ) {\r\n\t\t\t_fnReDraw( settings, holdPosition );\r\n\t\t}\r\n\t\telse {\r\n\t\t\t_fnProcessingDisplay( settings, true );\r\n\t\r\n\t\t\t// Cancel an existing request\r\n\t\t\tvar xhr = settings.jqXHR;\r\n\t\t\tif ( xhr \u0026\u0026 xhr.readyState !== 4 ) {\r\n\t\t\t\txhr.abort();\r\n\t\t\t}\r\n\t\r\n\t\t\t// Trigger xhr\r\n\t\t\t_fnBuildAjax( settings, [], function( json ) {\r\n\t\t\t\t_fnClearTable( settings );\r\n\t\r\n\t\t\t\tvar data = _fnAjaxDataSrc( settings, json );\r\n\t\t\t\tfor ( var i=0, ien=data.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t\t\t_fnAddData( settings, data[i] );\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t_fnReDraw( settings, holdPosition );\r\n\t\t\t\t_fnProcessingDisplay( settings, false );\r\n\t\t\t} );\r\n\t\t}\r\n\t};\r\n\t\r\n\t\r\n\t/**\r\n\t * Get the JSON response from the last Ajax request that DataTables made to the\r\n\t * server. Note that this returns the JSON from the first table in the current\r\n\t * context.\r\n\t *\r\n\t * @return {object} JSON received from the server.\r\n\t */\r\n\t_api_register( \u0027ajax.json()\u0027, function () {\r\n\t\tvar ctx = this.context;\r\n\t\r\n\t\tif ( ctx.length \u003E 0 ) {\r\n\t\t\treturn ctx[0].json;\r\n\t\t}\r\n\t\r\n\t\t// else return undefined;\r\n\t} );\r\n\t\r\n\t\r\n\t/**\r\n\t * Get the data submitted in the last Ajax request\r\n\t */\r\n\t_api_register( \u0027ajax.params()\u0027, function () {\r\n\t\tvar ctx = this.context;\r\n\t\r\n\t\tif ( ctx.length \u003E 0 ) {\r\n\t\t\treturn ctx[0].oAjaxData;\r\n\t\t}\r\n\t\r\n\t\t// else return undefined;\r\n\t} );\r\n\t\r\n\t\r\n\t/**\r\n\t * Reload tables from the Ajax data source. Note that this function will\r\n\t * automatically re-draw the table when the remote data has been loaded.\r\n\t *\r\n\t * @param {boolean} [reset=true] Reset (default) or hold the current paging\r\n\t * position. A full re-sort and re-filter is performed when this method is\r\n\t * called, which is why the pagination reset is the default action.\r\n\t * @returns {DataTables.Api} this\r\n\t */\r\n\t_api_register( \u0027ajax.reload()\u0027, function ( callback, resetPaging ) {\r\n\t\treturn this.iterator( \u0027table\u0027, function (settings) {\r\n\t\t\t__reload( settings, resetPaging===false, callback );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t/**\r\n\t * Get the current Ajax URL. Note that this returns the URL from the first\r\n\t * table in the current context.\r\n\t *\r\n\t * @return {string} Current Ajax source URL\r\n\t *//**\r\n\t * Set the Ajax URL. Note that this will set the URL for all tables in the\r\n\t * current context.\r\n\t *\r\n\t * @param {string} url URL to set.\r\n\t * @returns {DataTables.Api} this\r\n\t */\r\n\t_api_register( \u0027ajax.url()\u0027, function ( url ) {\r\n\t\tvar ctx = this.context;\r\n\t\r\n\t\tif ( url === undefined ) {\r\n\t\t\t// get\r\n\t\t\tif ( ctx.length === 0 ) {\r\n\t\t\t\treturn undefined;\r\n\t\t\t}\r\n\t\t\tctx = ctx[0];\r\n\t\r\n\t\t\treturn ctx.ajax ?\r\n\t\t\t\t$.isPlainObject( ctx.ajax ) ?\r\n\t\t\t\t\tctx.ajax.url :\r\n\t\t\t\t\tctx.ajax :\r\n\t\t\t\tctx.sAjaxSource;\r\n\t\t}\r\n\t\r\n\t\t// set\r\n\t\treturn this.iterator( \u0027table\u0027, function ( settings ) {\r\n\t\t\tif ( $.isPlainObject( settings.ajax ) ) {\r\n\t\t\t\tsettings.ajax.url = url;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tsettings.ajax = url;\r\n\t\t\t}\r\n\t\t\t// No need to consider sAjaxSource here since DataTables gives priority\r\n\t\t\t// to \u00A7ajax\u00A7 over \u00A7sAjaxSource\u00A7. So setting \u00A7ajax\u00A7 here, renders any\r\n\t\t\t// value of \u00A7sAjaxSource\u00A7 redundant.\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t/**\r\n\t * Load data from the newly set Ajax URL. Note that this method is only\r\n\t * available when \u00A7ajax.url()\u00A7 is used to set a URL. Additionally, this method\r\n\t * has the same effect as calling \u00A7ajax.reload()\u00A7 but is provided for\r\n\t * convenience when setting a new URL. Like \u00A7ajax.reload()\u00A7 it will\r\n\t * automatically redraw the table once the remote data has been loaded.\r\n\t *\r\n\t * @returns {DataTables.Api} this\r\n\t */\r\n\t_api_register( \u0027ajax.url().load()\u0027, function ( callback, resetPaging ) {\r\n\t\t// Same as a reload, but makes sense to present it for easy access after a\r\n\t\t// url change\r\n\t\treturn this.iterator( \u0027table\u0027, function ( ctx ) {\r\n\t\t\t__reload( ctx, resetPaging===false, callback );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\t\r\n\tvar _selector_run = function ( type, selector, selectFn, settings, opts )\r\n\t{\r\n\t\tvar\r\n\t\t\tout = [], res,\r\n\t\t\ta, i, ien, j, jen,\r\n\t\t\tselectorType = typeof selector;\r\n\t\r\n\t\t// Can\u0027t just check for isArray here, as an API or jQuery instance might be\r\n\t\t// given with their array like look\r\n\t\tif ( ! selector || selectorType === \u0027string\u0027 || selectorType === \u0027function\u0027 || selector.length === undefined ) {\r\n\t\t\tselector = [ selector ];\r\n\t\t}\r\n\t\r\n\t\tfor ( i=0, ien=selector.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t// Only split on simple strings - complex expressions will be jQuery selectors\r\n\t\t\ta = selector[i] \u0026\u0026 selector[i].split \u0026\u0026 ! selector[i].match(/[\\[\\(:]/) ?\r\n\t\t\t\tselector[i].split(\u0027,\u0027) :\r\n\t\t\t\t[ selector[i] ];\r\n\t\r\n\t\t\tfor ( j=0, jen=a.length ; j\u003Cjen ; j\u002B\u002B ) {\r\n\t\t\t\tres = selectFn( typeof a[j] === \u0027string\u0027 ? (a[j]).trim() : a[j] );\r\n\t\r\n\t\t\t\tif ( res \u0026\u0026 res.length ) {\r\n\t\t\t\t\tout = out.concat( res );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t// selector extensions\r\n\t\tvar ext = _ext.selector[ type ];\r\n\t\tif ( ext.length ) {\r\n\t\t\tfor ( i=0, ien=ext.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t\tout = ext[i]( settings, opts, out );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn _unique( out );\r\n\t};\r\n\t\r\n\t\r\n\tvar _selector_opts = function ( opts )\r\n\t{\r\n\t\tif ( ! opts ) {\r\n\t\t\topts = {};\r\n\t\t}\r\n\t\r\n\t\t// Backwards compatibility for 1.9- which used the terminology filter rather\r\n\t\t// than search\r\n\t\tif ( opts.filter \u0026\u0026 opts.search === undefined ) {\r\n\t\t\topts.search = opts.filter;\r\n\t\t}\r\n\t\r\n\t\treturn $.extend( {\r\n\t\t\tsearch: \u0027none\u0027,\r\n\t\t\torder: \u0027current\u0027,\r\n\t\t\tpage: \u0027all\u0027\r\n\t\t}, opts );\r\n\t};\r\n\t\r\n\t\r\n\tvar _selector_first = function ( inst )\r\n\t{\r\n\t\t// Reduce the API instance to the first item found\r\n\t\tfor ( var i=0, ien=inst.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\tif ( inst[i].length \u003E 0 ) {\r\n\t\t\t\t// Assign the first element to the first item in the instance\r\n\t\t\t\t// and truncate the instance and context\r\n\t\t\t\tinst[0] = inst[i];\r\n\t\t\t\tinst[0].length = 1;\r\n\t\t\t\tinst.length = 1;\r\n\t\t\t\tinst.context = [ inst.context[i] ];\r\n\t\r\n\t\t\t\treturn inst;\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t// Not found - return an empty instance\r\n\t\tinst.length = 0;\r\n\t\treturn inst;\r\n\t};\r\n\t\r\n\t\r\n\tvar _selector_row_indexes = function ( settings, opts )\r\n\t{\r\n\t\tvar\r\n\t\t\ti, ien, tmp, a=[],\r\n\t\t\tdisplayFiltered = settings.aiDisplay,\r\n\t\t\tdisplayMaster = settings.aiDisplayMaster;\r\n\t\r\n\t\tvar\r\n\t\t\tsearch = opts.search, // none, applied, removed\r\n\t\t\torder = opts.order, // applied, current, index (original - compatibility with 1.9)\r\n\t\t\tpage = opts.page; // all, current\r\n\t\r\n\t\tif ( _fnDataSource( settings ) == \u0027ssp\u0027 ) {\r\n\t\t\t// In server-side processing mode, most options are irrelevant since\r\n\t\t\t// rows not shown don\u0027t exist and the index order is the applied order\r\n\t\t\t// Removed is a special case - for consistency just return an empty\r\n\t\t\t// array\r\n\t\t\treturn search === \u0027removed\u0027 ?\r\n\t\t\t\t[] :\r\n\t\t\t\t_range( 0, displayMaster.length );\r\n\t\t}\r\n\t\telse if ( page == \u0027current\u0027 ) {\r\n\t\t\t// Current page implies that order=current and filter=applied, since it is\r\n\t\t\t// fairly senseless otherwise, regardless of what order and search actually\r\n\t\t\t// are\r\n\t\t\tfor ( i=settings._iDisplayStart, ien=settings.fnDisplayEnd() ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t\ta.push( displayFiltered[i] );\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( order == \u0027current\u0027 || order == \u0027applied\u0027 ) {\r\n\t\t\tif ( search == \u0027none\u0027) {\r\n\t\t\t\ta = displayMaster.slice();\r\n\t\t\t}\r\n\t\t\telse if ( search == \u0027applied\u0027 ) {\r\n\t\t\t\ta = displayFiltered.slice();\r\n\t\t\t}\r\n\t\t\telse if ( search == \u0027removed\u0027 ) {\r\n\t\t\t\t// O(n\u002Bm) solution by creating a hash map\r\n\t\t\t\tvar displayFilteredMap = {};\r\n\t\r\n\t\t\t\tfor ( var i=0, ien=displayFiltered.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t\t\tdisplayFilteredMap[displayFiltered[i]] = null;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\ta = $.map( displayMaster, function (el) {\r\n\t\t\t\t\treturn ! displayFilteredMap.hasOwnProperty(el) ?\r\n\t\t\t\t\t\tel :\r\n\t\t\t\t\t\tnull;\r\n\t\t\t\t} );\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( order == \u0027index\u0027 || order == \u0027original\u0027 ) {\r\n\t\t\tfor ( i=0, ien=settings.aoData.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t\tif ( search == \u0027none\u0027 ) {\r\n\t\t\t\t\ta.push( i );\r\n\t\t\t\t}\r\n\t\t\t\telse { // applied | removed\r\n\t\t\t\t\ttmp = $.inArray( i, displayFiltered );\r\n\t\r\n\t\t\t\t\tif ((tmp === -1 \u0026\u0026 search == \u0027removed\u0027) ||\r\n\t\t\t\t\t\t(tmp \u003E= 0 \u0026\u0026 search == \u0027applied\u0027) )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ta.push( i );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn a;\r\n\t};\r\n\t\r\n\t\r\n\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Rows\r\n\t *\r\n\t * {} - no selector - use all available rows\r\n\t * {integer} - row aoData index\r\n\t * {node} - TR node\r\n\t * {string} - jQuery selector to apply to the TR elements\r\n\t * {array} - jQuery array of nodes, or simply an array of TR nodes\r\n\t *\r\n\t */\r\n\tvar __row_selector = function ( settings, selector, opts )\r\n\t{\r\n\t\tvar rows;\r\n\t\tvar run = function ( sel ) {\r\n\t\t\tvar selInt = _intVal( sel );\r\n\t\t\tvar i, ien;\r\n\t\t\tvar aoData = settings.aoData;\r\n\t\r\n\t\t\t// Short cut - selector is a number and no options provided (default is\r\n\t\t\t// all records, so no need to check if the index is in there, since it\r\n\t\t\t// must be - dev error if the index doesn\u0027t exist).\r\n\t\t\tif ( selInt !== null \u0026\u0026 ! opts ) {\r\n\t\t\t\treturn [ selInt ];\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( ! rows ) {\r\n\t\t\t\trows = _selector_row_indexes( settings, opts );\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( selInt !== null \u0026\u0026 $.inArray( selInt, rows ) !== -1 ) {\r\n\t\t\t\t// Selector - integer\r\n\t\t\t\treturn [ selInt ];\r\n\t\t\t}\r\n\t\t\telse if ( sel === null || sel === undefined || sel === \u0027\u0027 ) {\r\n\t\t\t\t// Selector - none\r\n\t\t\t\treturn rows;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Selector - function\r\n\t\t\tif ( typeof sel === \u0027function\u0027 ) {\r\n\t\t\t\treturn $.map( rows, function (idx) {\r\n\t\t\t\t\tvar row = aoData[ idx ];\r\n\t\t\t\t\treturn sel( idx, row._aData, row.nTr ) ? idx : null;\r\n\t\t\t\t} );\r\n\t\t\t}\r\n\t\r\n\t\t\t// Selector - node\r\n\t\t\tif ( sel.nodeName ) {\r\n\t\t\t\tvar rowIdx = sel._DT_RowIndex; // Property added by DT for fast lookup\r\n\t\t\t\tvar cellIdx = sel._DT_CellIndex;\r\n\t\r\n\t\t\t\tif ( rowIdx !== undefined ) {\r\n\t\t\t\t\t// Make sure that the row is actually still present in the table\r\n\t\t\t\t\treturn aoData[ rowIdx ] \u0026\u0026 aoData[ rowIdx ].nTr === sel ?\r\n\t\t\t\t\t\t[ rowIdx ] :\r\n\t\t\t\t\t\t[];\r\n\t\t\t\t}\r\n\t\t\t\telse if ( cellIdx ) {\r\n\t\t\t\t\treturn aoData[ cellIdx.row ] \u0026\u0026 aoData[ cellIdx.row ].nTr === sel.parentNode ?\r\n\t\t\t\t\t\t[ cellIdx.row ] :\r\n\t\t\t\t\t\t[];\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tvar host = $(sel).closest(\u0027*[data-dt-row]\u0027);\r\n\t\t\t\t\treturn host.length ?\r\n\t\t\t\t\t\t[ host.data(\u0027dt-row\u0027) ] :\r\n\t\t\t\t\t\t[];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\t// ID selector. Want to always be able to select rows by id, regardless\r\n\t\t\t// of if the tr element has been created or not, so can\u0027t rely upon\r\n\t\t\t// jQuery here - hence a custom implementation. This does not match\r\n\t\t\t// Sizzle\u0027s fast selector or HTML4 - in HTML5 the ID can be anything,\r\n\t\t\t// but to select it using a CSS selector engine (like Sizzle or\r\n\t\t\t// querySelect) it would need to need to be escaped for some characters.\r\n\t\t\t// DataTables simplifies this for row selectors since you can select\r\n\t\t\t// only a row. A # indicates an id any anything that follows is the id -\r\n\t\t\t// unescaped.\r\n\t\t\tif ( typeof sel === \u0027string\u0027 \u0026\u0026 sel.charAt(0) === \u0027#\u0027 ) {\r\n\t\t\t\t// get row index from id\r\n\t\t\t\tvar rowObj = settings.aIds[ sel.replace( /^#/, \u0027\u0027 ) ];\r\n\t\t\t\tif ( rowObj !== undefined ) {\r\n\t\t\t\t\treturn [ rowObj.idx ];\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// need to fall through to jQuery in case there is DOM id that\r\n\t\t\t\t// matches\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Get nodes in the order from the \u00A7rows\u00A7 array with null values removed\r\n\t\t\tvar nodes = _removeEmpty(\r\n\t\t\t\t_pluck_order( settings.aoData, rows, \u0027nTr\u0027 )\r\n\t\t\t);\r\n\t\r\n\t\t\t// Selector - jQuery selector string, array of nodes or jQuery object/\r\n\t\t\t// As jQuery\u0027s .filter() allows jQuery objects to be passed in filter,\r\n\t\t\t// it also allows arrays, so this will cope with all three options\r\n\t\t\treturn $(nodes)\r\n\t\t\t\t.filter( sel )\r\n\t\t\t\t.map( function () {\r\n\t\t\t\t\treturn this._DT_RowIndex;\r\n\t\t\t\t} )\r\n\t\t\t\t.toArray();\r\n\t\t};\r\n\t\r\n\t\treturn _selector_run( \u0027row\u0027, selector, run, settings, opts );\r\n\t};\r\n\t\r\n\t\r\n\t_api_register( \u0027rows()\u0027, function ( selector, opts ) {\r\n\t\t// argument shifting\r\n\t\tif ( selector === undefined ) {\r\n\t\t\tselector = \u0027\u0027;\r\n\t\t}\r\n\t\telse if ( $.isPlainObject( selector ) ) {\r\n\t\t\topts = selector;\r\n\t\t\tselector = \u0027\u0027;\r\n\t\t}\r\n\t\r\n\t\topts = _selector_opts( opts );\r\n\t\r\n\t\tvar inst = this.iterator( \u0027table\u0027, function ( settings ) {\r\n\t\t\treturn __row_selector( settings, selector, opts );\r\n\t\t}, 1 );\r\n\t\r\n\t\t// Want argument shifting here and in __row_selector?\r\n\t\tinst.selector.rows = selector;\r\n\t\tinst.selector.opts = opts;\r\n\t\r\n\t\treturn inst;\r\n\t} );\r\n\t\r\n\t_api_register( \u0027rows().nodes()\u0027, function () {\r\n\t\treturn this.iterator( \u0027row\u0027, function ( settings, row ) {\r\n\t\t\treturn settings.aoData[ row ].nTr || undefined;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t_api_register( \u0027rows().data()\u0027, function () {\r\n\t\treturn this.iterator( true, \u0027rows\u0027, function ( settings, rows ) {\r\n\t\t\treturn _pluck_order( settings.aoData, rows, \u0027_aData\u0027 );\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t_api_registerPlural( \u0027rows().cache()\u0027, \u0027row().cache()\u0027, function ( type ) {\r\n\t\treturn this.iterator( \u0027row\u0027, function ( settings, row ) {\r\n\t\t\tvar r = settings.aoData[ row ];\r\n\t\t\treturn type === \u0027search\u0027 ? r._aFilterData : r._aSortData;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t_api_registerPlural( \u0027rows().invalidate()\u0027, \u0027row().invalidate()\u0027, function ( src ) {\r\n\t\treturn this.iterator( \u0027row\u0027, function ( settings, row ) {\r\n\t\t\t_fnInvalidate( settings, row, src );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t_api_registerPlural( \u0027rows().indexes()\u0027, \u0027row().index()\u0027, function () {\r\n\t\treturn this.iterator( \u0027row\u0027, function ( settings, row ) {\r\n\t\t\treturn row;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t_api_registerPlural( \u0027rows().ids()\u0027, \u0027row().id()\u0027, function ( hash ) {\r\n\t\tvar a = [];\r\n\t\tvar context = this.context;\r\n\t\r\n\t\t// \u00A7iterator\u00A7 will drop undefined values, but in this case we want them\r\n\t\tfor ( var i=0, ien=context.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\tfor ( var j=0, jen=this[i].length ; j\u003Cjen ; j\u002B\u002B ) {\r\n\t\t\t\tvar id = context[i].rowIdFn( context[i].aoData[ this[i][j] ]._aData );\r\n\t\t\t\ta.push( (hash === true ? \u0027#\u0027 : \u0027\u0027 )\u002B id );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn new _Api( context, a );\r\n\t} );\r\n\t\r\n\t_api_registerPlural( \u0027rows().remove()\u0027, \u0027row().remove()\u0027, function () {\r\n\t\tvar that = this;\r\n\t\r\n\t\tthis.iterator( \u0027row\u0027, function ( settings, row, thatIdx ) {\r\n\t\t\tvar data = settings.aoData;\r\n\t\t\tvar rowData = data[ row ];\r\n\t\t\tvar i, ien, j, jen;\r\n\t\t\tvar loopRow, loopCells;\r\n\t\r\n\t\t\tdata.splice( row, 1 );\r\n\t\r\n\t\t\t// Update the cached indexes\r\n\t\t\tfor ( i=0, ien=data.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t\tloopRow = data[i];\r\n\t\t\t\tloopCells = loopRow.anCells;\r\n\t\r\n\t\t\t\t// Rows\r\n\t\t\t\tif ( loopRow.nTr !== null ) {\r\n\t\t\t\t\tloopRow.nTr._DT_RowIndex = i;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Cells\r\n\t\t\t\tif ( loopCells !== null ) {\r\n\t\t\t\t\tfor ( j=0, jen=loopCells.length ; j\u003Cjen ; j\u002B\u002B ) {\r\n\t\t\t\t\t\tloopCells[j]._DT_CellIndex.row = i;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\t// Delete from the display arrays\r\n\t\t\t_fnDeleteIndex( settings.aiDisplayMaster, row );\r\n\t\t\t_fnDeleteIndex( settings.aiDisplay, row );\r\n\t\t\t_fnDeleteIndex( that[ thatIdx ], row, false ); // maintain local indexes\r\n\t\r\n\t\t\t// For server-side processing tables - subtract the deleted row from the count\r\n\t\t\tif ( settings._iRecordsDisplay \u003E 0 ) {\r\n\t\t\t\tsettings._iRecordsDisplay--;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Check for an \u0027overflow\u0027 they case for displaying the table\r\n\t\t\t_fnLengthOverflow( settings );\r\n\t\r\n\t\t\t// Remove the row\u0027s ID reference if there is one\r\n\t\t\tvar id = settings.rowIdFn( rowData._aData );\r\n\t\t\tif ( id !== undefined ) {\r\n\t\t\t\tdelete settings.aIds[ id ];\r\n\t\t\t}\r\n\t\t} );\r\n\t\r\n\t\tthis.iterator( \u0027table\u0027, function ( settings ) {\r\n\t\t\tfor ( var i=0, ien=settings.aoData.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t\tsettings.aoData[i].idx = i;\r\n\t\t\t}\r\n\t\t} );\r\n\t\r\n\t\treturn this;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( \u0027rows.add()\u0027, function ( rows ) {\r\n\t\tvar newRows = this.iterator( \u0027table\u0027, function ( settings ) {\r\n\t\t\t\tvar row, i, ien;\r\n\t\t\t\tvar out = [];\r\n\t\r\n\t\t\t\tfor ( i=0, ien=rows.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t\t\trow = rows[i];\r\n\t\r\n\t\t\t\t\tif ( row.nodeName \u0026\u0026 row.nodeName.toUpperCase() === \u0027TR\u0027 ) {\r\n\t\t\t\t\t\tout.push( _fnAddTr( settings, row )[0] );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tout.push( _fnAddData( settings, row ) );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\treturn out;\r\n\t\t\t}, 1 );\r\n\t\r\n\t\t// Return an Api.rows() extended instance, so rows().nodes() etc can be used\r\n\t\tvar modRows = this.rows( -1 );\r\n\t\tmodRows.pop();\r\n\t\t$.merge( modRows, newRows );\r\n\t\r\n\t\treturn modRows;\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t *\r\n\t */\r\n\t_api_register( \u0027row()\u0027, function ( selector, opts ) {\r\n\t\treturn _selector_first( this.rows( selector, opts ) );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( \u0027row().data()\u0027, function ( data ) {\r\n\t\tvar ctx = this.context;\r\n\t\r\n\t\tif ( data === undefined ) {\r\n\t\t\t// Get\r\n\t\t\treturn ctx.length \u0026\u0026 this.length ?\r\n\t\t\t\tctx[0].aoData[ this[0] ]._aData :\r\n\t\t\t\tundefined;\r\n\t\t}\r\n\t\r\n\t\t// Set\r\n\t\tvar row = ctx[0].aoData[ this[0] ];\r\n\t\trow._aData = data;\r\n\t\r\n\t\t// If the DOM has an id, and the data source is an array\r\n\t\tif ( Array.isArray( data ) \u0026\u0026 row.nTr \u0026\u0026 row.nTr.id ) {\r\n\t\t\t_fnSetObjectDataFn( ctx[0].rowId )( data, row.nTr.id );\r\n\t\t}\r\n\t\r\n\t\t// Automatically invalidate\r\n\t\t_fnInvalidate( ctx[0], this[0], \u0027data\u0027 );\r\n\t\r\n\t\treturn this;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( \u0027row().node()\u0027, function () {\r\n\t\tvar ctx = this.context;\r\n\t\r\n\t\treturn ctx.length \u0026\u0026 this.length ?\r\n\t\t\tctx[0].aoData[ this[0] ].nTr || null :\r\n\t\t\tnull;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( \u0027row.add()\u0027, function ( row ) {\r\n\t\t// Allow a jQuery object to be passed in - only a single row is added from\r\n\t\t// it though - the first element in the set\r\n\t\tif ( row instanceof $ \u0026\u0026 row.length ) {\r\n\t\t\trow = row[0];\r\n\t\t}\r\n\t\r\n\t\tvar rows = this.iterator( \u0027table\u0027, function ( settings ) {\r\n\t\t\tif ( row.nodeName \u0026\u0026 row.nodeName.toUpperCase() === \u0027TR\u0027 ) {\r\n\t\t\t\treturn _fnAddTr( settings, row )[0];\r\n\t\t\t}\r\n\t\t\treturn _fnAddData( settings, row );\r\n\t\t} );\r\n\t\r\n\t\t// Return an Api.rows() extended instance, with the newly added row selected\r\n\t\treturn this.row( rows[0] );\r\n\t} );\r\n\t\r\n\t\r\n\t$(document).on(\u0027plugin-init.dt\u0027, function (e, context) {\r\n\t\tvar api = new _Api( context );\r\n\t\tapi.on( \u0027stateSaveParams\u0027, function ( e, settings, data ) {\r\n\t\t\tvar indexes = api.rows().iterator( \u0027row\u0027, function ( settings, idx ) {\r\n\t\t\t\treturn settings.aoData[idx]._detailsShow ? idx : undefined;\r\n\t\t\t});\r\n\t\r\n\t\t\tdata.childRows = api.rows( indexes ).ids( true ).toArray();\r\n\t\t})\r\n\t\r\n\t\tvar loaded = api.state.loaded();\r\n\t\r\n\t\tif ( loaded \u0026\u0026 loaded.childRows ) {\r\n\t\t\tapi.rows( loaded.childRows ).every( function () {\r\n\t\t\t\t_fnCallbackFire( context, null, \u0027requestChild\u0027, [ this ] )\r\n\t\t\t})\r\n\t\t}\r\n\t})\r\n\t\r\n\tvar __details_add = function ( ctx, row, data, klass )\r\n\t{\r\n\t\t// Convert to array of TR elements\r\n\t\tvar rows = [];\r\n\t\tvar addRow = function ( r, k ) {\r\n\t\t\t// Recursion to allow for arrays of jQuery objects\r\n\t\t\tif ( Array.isArray( r ) || r instanceof $ ) {\r\n\t\t\t\tfor ( var i=0, ien=r.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t\t\taddRow( r[i], k );\r\n\t\t\t\t}\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\r\n\t\t\t// If we get a TR element, then just add it directly - up to the dev\r\n\t\t\t// to add the correct number of columns etc\r\n\t\t\tif ( r.nodeName \u0026\u0026 r.nodeName.toLowerCase() === \u0027tr\u0027 ) {\r\n\t\t\t\trows.push( r );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// Otherwise create a row with a wrapper\r\n\t\t\t\tvar created = $(\u0027\u003Ctr\u003E\u003Ctd\u003E\u003C/td\u003E\u003C/tr\u003E\u0027).addClass( k );\r\n\t\t\t\t$(\u0027td\u0027, created)\r\n\t\t\t\t\t.addClass( k )\r\n\t\t\t\t\t.html( r )\r\n\t\t\t\t\t[0].colSpan = _fnVisbleColumns( ctx );\r\n\t\r\n\t\t\t\trows.push( created[0] );\r\n\t\t\t}\r\n\t\t};\r\n\t\r\n\t\taddRow( data, klass );\r\n\t\r\n\t\tif ( row._details ) {\r\n\t\t\trow._details.detach();\r\n\t\t}\r\n\t\r\n\t\trow._details = $(rows);\r\n\t\r\n\t\t// If the children were already shown, that state should be retained\r\n\t\tif ( row._detailsShow ) {\r\n\t\t\trow._details.insertAfter( row.nTr );\r\n\t\t}\r\n\t};\r\n\t\r\n\t\r\n\tvar __details_remove = function ( api, idx )\r\n\t{\r\n\t\tvar ctx = api.context;\r\n\t\r\n\t\tif ( ctx.length ) {\r\n\t\t\tvar row = ctx[0].aoData[ idx !== undefined ? idx : api[0] ];\r\n\t\r\n\t\t\tif ( row \u0026\u0026 row._details ) {\r\n\t\t\t\trow._details.remove();\r\n\t\r\n\t\t\t\trow._detailsShow = undefined;\r\n\t\t\t\trow._details = undefined;\r\n\t\t\t\t$( row.nTr ).removeClass( \u0027dt-hasChild\u0027 );\r\n\t\t\t\t_fnSaveState( ctx[0] );\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\t\r\n\t\r\n\tvar __details_display = function ( api, show ) {\r\n\t\tvar ctx = api.context;\r\n\t\r\n\t\tif ( ctx.length \u0026\u0026 api.length ) {\r\n\t\t\tvar row = ctx[0].aoData[ api[0] ];\r\n\t\r\n\t\t\tif ( row._details ) {\r\n\t\t\t\trow._detailsShow = show;\r\n\t\r\n\t\t\t\tif ( show ) {\r\n\t\t\t\t\trow._details.insertAfter( row.nTr );\r\n\t\t\t\t\t$( row.nTr ).addClass( \u0027dt-hasChild\u0027 );\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\trow._details.detach();\r\n\t\t\t\t\t$( row.nTr ).removeClass( \u0027dt-hasChild\u0027 );\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t_fnCallbackFire( ctx[0], null, \u0027childRow\u0027, [ show, api.row( api[0] ) ] )\r\n\t\r\n\t\t\t\t__details_events( ctx[0] );\r\n\t\t\t\t_fnSaveState( ctx[0] );\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\t\r\n\t\r\n\tvar __details_events = function ( settings )\r\n\t{\r\n\t\tvar api = new _Api( settings );\r\n\t\tvar namespace = \u0027.dt.DT_details\u0027;\r\n\t\tvar drawEvent = \u0027draw\u0027\u002Bnamespace;\r\n\t\tvar colvisEvent = \u0027column-visibility\u0027\u002Bnamespace;\r\n\t\tvar destroyEvent = \u0027destroy\u0027\u002Bnamespace;\r\n\t\tvar data = settings.aoData;\r\n\t\r\n\t\tapi.off( drawEvent \u002B\u0027 \u0027\u002B colvisEvent \u002B\u0027 \u0027\u002B destroyEvent );\r\n\t\r\n\t\tif ( _pluck( data, \u0027_details\u0027 ).length \u003E 0 ) {\r\n\t\t\t// On each draw, insert the required elements into the document\r\n\t\t\tapi.on( drawEvent, function ( e, ctx ) {\r\n\t\t\t\tif ( settings !== ctx ) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tapi.rows( {page:\u0027current\u0027} ).eq(0).each( function (idx) {\r\n\t\t\t\t\t// Internal data grab\r\n\t\t\t\t\tvar row = data[ idx ];\r\n\t\r\n\t\t\t\t\tif ( row._detailsShow ) {\r\n\t\t\t\t\t\trow._details.insertAfter( row.nTr );\r\n\t\t\t\t\t}\r\n\t\t\t\t} );\r\n\t\t\t} );\r\n\t\r\n\t\t\t// Column visibility change - update the colspan\r\n\t\t\tapi.on( colvisEvent, function ( e, ctx, idx, vis ) {\r\n\t\t\t\tif ( settings !== ctx ) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Update the colspan for the details rows (note, only if it already has\r\n\t\t\t\t// a colspan)\r\n\t\t\t\tvar row, visible = _fnVisbleColumns( ctx );\r\n\t\r\n\t\t\t\tfor ( var i=0, ien=data.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t\t\trow = data[i];\r\n\t\r\n\t\t\t\t\tif ( row._details ) {\r\n\t\t\t\t\t\trow._details.children(\u0027td[colspan]\u0027).attr(\u0027colspan\u0027, visible );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} );\r\n\t\r\n\t\t\t// Table destroyed - nuke any child rows\r\n\t\t\tapi.on( destroyEvent, function ( e, ctx ) {\r\n\t\t\t\tif ( settings !== ctx ) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tfor ( var i=0, ien=data.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t\t\tif ( data[i]._details ) {\r\n\t\t\t\t\t\t__details_remove( api, i );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} );\r\n\t\t}\r\n\t};\r\n\t\r\n\t// Strings for the method names to help minification\r\n\tvar _emp = \u0027\u0027;\r\n\tvar _child_obj = _emp\u002B\u0027row().child\u0027;\r\n\tvar _child_mth = _child_obj\u002B\u0027()\u0027;\r\n\t\r\n\t// data can be:\r\n\t// tr\r\n\t// string\r\n\t// jQuery or array of any of the above\r\n\t_api_register( _child_mth, function ( data, klass ) {\r\n\t\tvar ctx = this.context;\r\n\t\r\n\t\tif ( data === undefined ) {\r\n\t\t\t// get\r\n\t\t\treturn ctx.length \u0026\u0026 this.length ?\r\n\t\t\t\tctx[0].aoData[ this[0] ]._details :\r\n\t\t\t\tundefined;\r\n\t\t}\r\n\t\telse if ( data === true ) {\r\n\t\t\t// show\r\n\t\t\tthis.child.show();\r\n\t\t}\r\n\t\telse if ( data === false ) {\r\n\t\t\t// remove\r\n\t\t\t__details_remove( this );\r\n\t\t}\r\n\t\telse if ( ctx.length \u0026\u0026 this.length ) {\r\n\t\t\t// set\r\n\t\t\t__details_add( ctx[0], ctx[0].aoData[ this[0] ], data, klass );\r\n\t\t}\r\n\t\r\n\t\treturn this;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( [\r\n\t\t_child_obj\u002B\u0027.show()\u0027,\r\n\t\t_child_mth\u002B\u0027.show()\u0027 // only when \u00A7child()\u00A7 was called with parameters (without\r\n\t], function ( show ) { // it returns an object and this method is not executed)\r\n\t\t__details_display( this, true );\r\n\t\treturn this;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( [\r\n\t\t_child_obj\u002B\u0027.hide()\u0027,\r\n\t\t_child_mth\u002B\u0027.hide()\u0027 // only when \u00A7child()\u00A7 was called with parameters (without\r\n\t], function () { // it returns an object and this method is not executed)\r\n\t\t__details_display( this, false );\r\n\t\treturn this;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( [\r\n\t\t_child_obj\u002B\u0027.remove()\u0027,\r\n\t\t_child_mth\u002B\u0027.remove()\u0027 // only when \u00A7child()\u00A7 was called with parameters (without\r\n\t], function () { // it returns an object and this method is not executed)\r\n\t\t__details_remove( this );\r\n\t\treturn this;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( _child_obj\u002B\u0027.isShown()\u0027, function () {\r\n\t\tvar ctx = this.context;\r\n\t\r\n\t\tif ( ctx.length \u0026\u0026 this.length ) {\r\n\t\t\t// _detailsShown as false or undefined will fall through to return false\r\n\t\t\treturn ctx[0].aoData[ this[0] ]._detailsShow || false;\r\n\t\t}\r\n\t\treturn false;\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Columns\r\n\t *\r\n\t * {integer} - column index (\u003E=0 count from left, \u003C0 count from right)\r\n\t * \u0022{integer}:visIdx\u0022 - visible column index (i.e. translate to column index) (\u003E=0 count from left, \u003C0 count from right)\r\n\t * \u0022{integer}:visible\u0022 - alias for {integer}:visIdx (\u003E=0 count from left, \u003C0 count from right)\r\n\t * \u0022{string}:name\u0022 - column name\r\n\t * \u0022{string}\u0022 - jQuery selector on column header nodes\r\n\t *\r\n\t */\r\n\t\r\n\t// can be an array of these items, comma separated list, or an array of comma\r\n\t// separated lists\r\n\t\r\n\tvar __re_column_selector = /^([^:]\u002B):(name|visIdx|visible)$/;\r\n\t\r\n\t\r\n\t// r1 and r2 are redundant - but it means that the parameters match for the\r\n\t// iterator callback in columns().data()\r\n\tvar __columnData = function ( settings, column, r1, r2, rows ) {\r\n\t\tvar a = [];\r\n\t\tfor ( var row=0, ien=rows.length ; row\u003Cien ; row\u002B\u002B ) {\r\n\t\t\ta.push( _fnGetCellData( settings, rows[row], column ) );\r\n\t\t}\r\n\t\treturn a;\r\n\t};\r\n\t\r\n\t\r\n\tvar __column_selector = function ( settings, selector, opts )\r\n\t{\r\n\t\tvar\r\n\t\t\tcolumns = settings.aoColumns,\r\n\t\t\tnames = _pluck( columns, \u0027sName\u0027 ),\r\n\t\t\tnodes = _pluck( columns, \u0027nTh\u0027 );\r\n\t\r\n\t\tvar run = function ( s ) {\r\n\t\t\tvar selInt = _intVal( s );\r\n\t\r\n\t\t\t// Selector - all\r\n\t\t\tif ( s === \u0027\u0027 ) {\r\n\t\t\t\treturn _range( columns.length );\r\n\t\t\t}\r\n\t\r\n\t\t\t// Selector - index\r\n\t\t\tif ( selInt !== null ) {\r\n\t\t\t\treturn [ selInt \u003E= 0 ?\r\n\t\t\t\t\tselInt : // Count from left\r\n\t\t\t\t\tcolumns.length \u002B selInt // Count from right (\u002B because its a negative value)\r\n\t\t\t\t];\r\n\t\t\t}\r\n\t\r\n\t\t\t// Selector = function\r\n\t\t\tif ( typeof s === \u0027function\u0027 ) {\r\n\t\t\t\tvar rows = _selector_row_indexes( settings, opts );\r\n\t\r\n\t\t\t\treturn $.map( columns, function (col, idx) {\r\n\t\t\t\t\treturn s(\r\n\t\t\t\t\t\t\tidx,\r\n\t\t\t\t\t\t\t__columnData( settings, idx, 0, 0, rows ),\r\n\t\t\t\t\t\t\tnodes[ idx ]\r\n\t\t\t\t\t\t) ? idx : null;\r\n\t\t\t\t} );\r\n\t\t\t}\r\n\t\r\n\t\t\t// jQuery or string selector\r\n\t\t\tvar match = typeof s === \u0027string\u0027 ?\r\n\t\t\t\ts.match( __re_column_selector ) :\r\n\t\t\t\t\u0027\u0027;\r\n\t\r\n\t\t\tif ( match ) {\r\n\t\t\t\tswitch( match[2] ) {\r\n\t\t\t\t\tcase \u0027visIdx\u0027:\r\n\t\t\t\t\tcase \u0027visible\u0027:\r\n\t\t\t\t\t\tvar idx = parseInt( match[1], 10 );\r\n\t\t\t\t\t\t// Visible index given, convert to column index\r\n\t\t\t\t\t\tif ( idx \u003C 0 ) {\r\n\t\t\t\t\t\t\t// Counting from the right\r\n\t\t\t\t\t\t\tvar visColumns = $.map( columns, function (col,i) {\r\n\t\t\t\t\t\t\t\treturn col.bVisible ? i : null;\r\n\t\t\t\t\t\t\t} );\r\n\t\t\t\t\t\t\treturn [ visColumns[ visColumns.length \u002B idx ] ];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// Counting from the left\r\n\t\t\t\t\t\treturn [ _fnVisibleToColumnIndex( settings, idx ) ];\r\n\t\r\n\t\t\t\t\tcase \u0027name\u0027:\r\n\t\t\t\t\t\t// match by name. \u00A7names\u00A7 is column index complete and in order\r\n\t\t\t\t\t\treturn $.map( names, function (name, i) {\r\n\t\t\t\t\t\t\treturn name === match[1] ? i : null;\r\n\t\t\t\t\t\t} );\r\n\t\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\treturn [];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\t// Cell in the table body\r\n\t\t\tif ( s.nodeName \u0026\u0026 s._DT_CellIndex ) {\r\n\t\t\t\treturn [ s._DT_CellIndex.column ];\r\n\t\t\t}\r\n\t\r\n\t\t\t// jQuery selector on the TH elements for the columns\r\n\t\t\tvar jqResult = $( nodes )\r\n\t\t\t\t.filter( s )\r\n\t\t\t\t.map( function () {\r\n\t\t\t\t\treturn $.inArray( this, nodes ); // \u00A7nodes\u00A7 is column index complete and in order\r\n\t\t\t\t} )\r\n\t\t\t\t.toArray();\r\n\t\r\n\t\t\tif ( jqResult.length || ! s.nodeName ) {\r\n\t\t\t\treturn jqResult;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Otherwise a node which might have a \u00A7dt-column\u00A7 data attribute, or be\r\n\t\t\t// a child or such an element\r\n\t\t\tvar host = $(s).closest(\u0027*[data-dt-column]\u0027);\r\n\t\t\treturn host.length ?\r\n\t\t\t\t[ host.data(\u0027dt-column\u0027) ] :\r\n\t\t\t\t[];\r\n\t\t};\r\n\t\r\n\t\treturn _selector_run( \u0027column\u0027, selector, run, settings, opts );\r\n\t};\r\n\t\r\n\t\r\n\tvar __setColumnVis = function ( settings, column, vis ) {\r\n\t\tvar\r\n\t\t\tcols = settings.aoColumns,\r\n\t\t\tcol = cols[ column ],\r\n\t\t\tdata = settings.aoData,\r\n\t\t\trow, cells, i, ien, tr;\r\n\t\r\n\t\t// Get\r\n\t\tif ( vis === undefined ) {\r\n\t\t\treturn col.bVisible;\r\n\t\t}\r\n\t\r\n\t\t// Set\r\n\t\t// No change\r\n\t\tif ( col.bVisible === vis ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\tif ( vis ) {\r\n\t\t\t// Insert column\r\n\t\t\t// Need to decide if we should use appendChild or insertBefore\r\n\t\t\tvar insertBefore = $.inArray( true, _pluck(cols, \u0027bVisible\u0027), column\u002B1 );\r\n\t\r\n\t\t\tfor ( i=0, ien=data.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t\ttr = data[i].nTr;\r\n\t\t\t\tcells = data[i].anCells;\r\n\t\r\n\t\t\t\tif ( tr ) {\r\n\t\t\t\t\t// insertBefore can act like appendChild if 2nd arg is null\r\n\t\t\t\t\ttr.insertBefore( cells[ column ], cells[ insertBefore ] || null );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// Remove column\r\n\t\t\t$( _pluck( settings.aoData, \u0027anCells\u0027, column ) ).detach();\r\n\t\t}\r\n\t\r\n\t\t// Common actions\r\n\t\tcol.bVisible = vis;\r\n\t};\r\n\t\r\n\t\r\n\t_api_register( \u0027columns()\u0027, function ( selector, opts ) {\r\n\t\t// argument shifting\r\n\t\tif ( selector === undefined ) {\r\n\t\t\tselector = \u0027\u0027;\r\n\t\t}\r\n\t\telse if ( $.isPlainObject( selector ) ) {\r\n\t\t\topts = selector;\r\n\t\t\tselector = \u0027\u0027;\r\n\t\t}\r\n\t\r\n\t\topts = _selector_opts( opts );\r\n\t\r\n\t\tvar inst = this.iterator( \u0027table\u0027, function ( settings ) {\r\n\t\t\treturn __column_selector( settings, selector, opts );\r\n\t\t}, 1 );\r\n\t\r\n\t\t// Want argument shifting here and in _row_selector?\r\n\t\tinst.selector.cols = selector;\r\n\t\tinst.selector.opts = opts;\r\n\t\r\n\t\treturn inst;\r\n\t} );\r\n\t\r\n\t_api_registerPlural( \u0027columns().header()\u0027, \u0027column().header()\u0027, function ( selector, opts ) {\r\n\t\treturn this.iterator( \u0027column\u0027, function ( settings, column ) {\r\n\t\t\treturn settings.aoColumns[column].nTh;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t_api_registerPlural( \u0027columns().footer()\u0027, \u0027column().footer()\u0027, function ( selector, opts ) {\r\n\t\treturn this.iterator( \u0027column\u0027, function ( settings, column ) {\r\n\t\t\treturn settings.aoColumns[column].nTf;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t_api_registerPlural( \u0027columns().data()\u0027, \u0027column().data()\u0027, function () {\r\n\t\treturn this.iterator( \u0027column-rows\u0027, __columnData, 1 );\r\n\t} );\r\n\t\r\n\t_api_registerPlural( \u0027columns().dataSrc()\u0027, \u0027column().dataSrc()\u0027, function () {\r\n\t\treturn this.iterator( \u0027column\u0027, function ( settings, column ) {\r\n\t\t\treturn settings.aoColumns[column].mData;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t_api_registerPlural( \u0027columns().cache()\u0027, \u0027column().cache()\u0027, function ( type ) {\r\n\t\treturn this.iterator( \u0027column-rows\u0027, function ( settings, column, i, j, rows ) {\r\n\t\t\treturn _pluck_order( settings.aoData, rows,\r\n\t\t\t\ttype === \u0027search\u0027 ? \u0027_aFilterData\u0027 : \u0027_aSortData\u0027, column\r\n\t\t\t);\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t_api_registerPlural( \u0027columns().nodes()\u0027, \u0027column().nodes()\u0027, function () {\r\n\t\treturn this.iterator( \u0027column-rows\u0027, function ( settings, column, i, j, rows ) {\r\n\t\t\treturn _pluck_order( settings.aoData, rows, \u0027anCells\u0027, column ) ;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t_api_registerPlural( \u0027columns().visible()\u0027, \u0027column().visible()\u0027, function ( vis, calc ) {\r\n\t\tvar that = this;\r\n\t\tvar ret = this.iterator( \u0027column\u0027, function ( settings, column ) {\r\n\t\t\tif ( vis === undefined ) {\r\n\t\t\t\treturn settings.aoColumns[ column ].bVisible;\r\n\t\t\t} // else\r\n\t\t\t__setColumnVis( settings, column, vis );\r\n\t\t} );\r\n\t\r\n\t\t// Group the column visibility changes\r\n\t\tif ( vis !== undefined ) {\r\n\t\t\tthis.iterator( \u0027table\u0027, function ( settings ) {\r\n\t\t\t\t// Redraw the header after changes\r\n\t\t\t\t_fnDrawHead( settings, settings.aoHeader );\r\n\t\t\t\t_fnDrawHead( settings, settings.aoFooter );\r\n\t\t\r\n\t\t\t\t// Update colspan for no records display. Child rows and extensions will use their own\r\n\t\t\t\t// listeners to do this - only need to update the empty table item here\r\n\t\t\t\tif ( ! settings.aiDisplay.length ) {\r\n\t\t\t\t\t$(settings.nTBody).find(\u0027td[colspan]\u0027).attr(\u0027colspan\u0027, _fnVisbleColumns(settings));\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t\t_fnSaveState( settings );\r\n\t\r\n\t\t\t\t// Second loop once the first is done for events\r\n\t\t\t\tthat.iterator( \u0027column\u0027, function ( settings, column ) {\r\n\t\t\t\t\t_fnCallbackFire( settings, null, \u0027column-visibility\u0027, [settings, column, vis, calc] );\r\n\t\t\t\t} );\r\n\t\r\n\t\t\t\tif ( calc === undefined || calc ) {\r\n\t\t\t\t\tthat.columns.adjust();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\r\n\t\treturn ret;\r\n\t} );\r\n\t\r\n\t_api_registerPlural( \u0027columns().indexes()\u0027, \u0027column().index()\u0027, function ( type ) {\r\n\t\treturn this.iterator( \u0027column\u0027, function ( settings, column ) {\r\n\t\t\treturn type === \u0027visible\u0027 ?\r\n\t\t\t\t_fnColumnIndexToVisible( settings, column ) :\r\n\t\t\t\tcolumn;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t_api_register( \u0027columns.adjust()\u0027, function () {\r\n\t\treturn this.iterator( \u0027table\u0027, function ( settings ) {\r\n\t\t\t_fnAdjustColumnSizing( settings );\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t_api_register( \u0027column.index()\u0027, function ( type, idx ) {\r\n\t\tif ( this.context.length !== 0 ) {\r\n\t\t\tvar ctx = this.context[0];\r\n\t\r\n\t\t\tif ( type === \u0027fromVisible\u0027 || type === \u0027toData\u0027 ) {\r\n\t\t\t\treturn _fnVisibleToColumnIndex( ctx, idx );\r\n\t\t\t}\r\n\t\t\telse if ( type === \u0027fromData\u0027 || type === \u0027toVisible\u0027 ) {\r\n\t\t\t\treturn _fnColumnIndexToVisible( ctx, idx );\r\n\t\t\t}\r\n\t\t}\r\n\t} );\r\n\t\r\n\t_api_register( \u0027column()\u0027, function ( selector, opts ) {\r\n\t\treturn _selector_first( this.columns( selector, opts ) );\r\n\t} );\r\n\t\r\n\tvar __cell_selector = function ( settings, selector, opts )\r\n\t{\r\n\t\tvar data = settings.aoData;\r\n\t\tvar rows = _selector_row_indexes( settings, opts );\r\n\t\tvar cells = _removeEmpty( _pluck_order( data, rows, \u0027anCells\u0027 ) );\r\n\t\tvar allCells = $(_flatten( [], cells ));\r\n\t\tvar row;\r\n\t\tvar columns = settings.aoColumns.length;\r\n\t\tvar a, i, ien, j, o, host;\r\n\t\r\n\t\tvar run = function ( s ) {\r\n\t\t\tvar fnSelector = typeof s === \u0027function\u0027;\r\n\t\r\n\t\t\tif ( s === null || s === undefined || fnSelector ) {\r\n\t\t\t\t// All cells and function selectors\r\n\t\t\t\ta = [];\r\n\t\r\n\t\t\t\tfor ( i=0, ien=rows.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t\t\trow = rows[i];\r\n\t\r\n\t\t\t\t\tfor ( j=0 ; j\u003Ccolumns ; j\u002B\u002B ) {\r\n\t\t\t\t\t\to = {\r\n\t\t\t\t\t\t\trow: row,\r\n\t\t\t\t\t\t\tcolumn: j\r\n\t\t\t\t\t\t};\r\n\t\r\n\t\t\t\t\t\tif ( fnSelector ) {\r\n\t\t\t\t\t\t\t// Selector - function\r\n\t\t\t\t\t\t\thost = data[ row ];\r\n\t\r\n\t\t\t\t\t\t\tif ( s( o, _fnGetCellData(settings, row, j), host.anCells ? host.anCells[j] : null ) ) {\r\n\t\t\t\t\t\t\t\ta.push( o );\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t// Selector - all\r\n\t\t\t\t\t\t\ta.push( o );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\treturn a;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Selector - index\r\n\t\t\tif ( $.isPlainObject( s ) ) {\r\n\t\t\t\t// Valid cell index and its in the array of selectable rows\r\n\t\t\t\treturn s.column !== undefined \u0026\u0026 s.row !== undefined \u0026\u0026 $.inArray( s.row, rows ) !== -1 ?\r\n\t\t\t\t\t[s] :\r\n\t\t\t\t\t[];\r\n\t\t\t}\r\n\t\r\n\t\t\t// Selector - jQuery filtered cells\r\n\t\t\tvar jqResult = allCells\r\n\t\t\t\t.filter( s )\r\n\t\t\t\t.map( function (i, el) {\r\n\t\t\t\t\treturn { // use a new object, in case someone changes the values\r\n\t\t\t\t\t\trow: el._DT_CellIndex.row,\r\n\t\t\t\t\t\tcolumn: el._DT_CellIndex.column\r\n\t \t\t\t\t};\r\n\t\t\t\t} )\r\n\t\t\t\t.toArray();\r\n\t\r\n\t\t\tif ( jqResult.length || ! s.nodeName ) {\r\n\t\t\t\treturn jqResult;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Otherwise the selector is a node, and there is one last option - the\r\n\t\t\t// element might be a child of an element which has dt-row and dt-column\r\n\t\t\t// data attributes\r\n\t\t\thost = $(s).closest(\u0027*[data-dt-row]\u0027);\r\n\t\t\treturn host.length ?\r\n\t\t\t\t[ {\r\n\t\t\t\t\trow: host.data(\u0027dt-row\u0027),\r\n\t\t\t\t\tcolumn: host.data(\u0027dt-column\u0027)\r\n\t\t\t\t} ] :\r\n\t\t\t\t[];\r\n\t\t};\r\n\t\r\n\t\treturn _selector_run( \u0027cell\u0027, selector, run, settings, opts );\r\n\t};\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t_api_register( \u0027cells()\u0027, function ( rowSelector, columnSelector, opts ) {\r\n\t\t// Argument shifting\r\n\t\tif ( $.isPlainObject( rowSelector ) ) {\r\n\t\t\t// Indexes\r\n\t\t\tif ( rowSelector.row === undefined ) {\r\n\t\t\t\t// Selector options in first parameter\r\n\t\t\t\topts = rowSelector;\r\n\t\t\t\trowSelector = null;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// Cell index objects in first parameter\r\n\t\t\t\topts = columnSelector;\r\n\t\t\t\tcolumnSelector = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif ( $.isPlainObject( columnSelector ) ) {\r\n\t\t\topts = columnSelector;\r\n\t\t\tcolumnSelector = null;\r\n\t\t}\r\n\t\r\n\t\t// Cell selector\r\n\t\tif ( columnSelector === null || columnSelector === undefined ) {\r\n\t\t\treturn this.iterator( \u0027table\u0027, function ( settings ) {\r\n\t\t\t\treturn __cell_selector( settings, rowSelector, _selector_opts( opts ) );\r\n\t\t\t} );\r\n\t\t}\r\n\t\r\n\t\t// The default built in options need to apply to row and columns\r\n\t\tvar internalOpts = opts ? {\r\n\t\t\tpage: opts.page,\r\n\t\t\torder: opts.order,\r\n\t\t\tsearch: opts.search\r\n\t\t} : {};\r\n\t\r\n\t\t// Row \u002B column selector\r\n\t\tvar columns = this.columns( columnSelector, internalOpts );\r\n\t\tvar rows = this.rows( rowSelector, internalOpts );\r\n\t\tvar i, ien, j, jen;\r\n\t\r\n\t\tvar cellsNoOpts = this.iterator( \u0027table\u0027, function ( settings, idx ) {\r\n\t\t\tvar a = [];\r\n\t\r\n\t\t\tfor ( i=0, ien=rows[idx].length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t\tfor ( j=0, jen=columns[idx].length ; j\u003Cjen ; j\u002B\u002B ) {\r\n\t\t\t\t\ta.push( {\r\n\t\t\t\t\t\trow: rows[idx][i],\r\n\t\t\t\t\t\tcolumn: columns[idx][j]\r\n\t\t\t\t\t} );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\treturn a;\r\n\t\t}, 1 );\r\n\t\r\n\t\t// There is currently only one extension which uses a cell selector extension\r\n\t\t// It is a _major_ performance drag to run this if it isn\u0027t needed, so this is\r\n\t\t// an extension specific check at the moment\r\n\t\tvar cells = opts \u0026\u0026 opts.selected ?\r\n\t\t\tthis.cells( cellsNoOpts, opts ) :\r\n\t\t\tcellsNoOpts;\r\n\t\r\n\t\t$.extend( cells.selector, {\r\n\t\t\tcols: columnSelector,\r\n\t\t\trows: rowSelector,\r\n\t\t\topts: opts\r\n\t\t} );\r\n\t\r\n\t\treturn cells;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_registerPlural( \u0027cells().nodes()\u0027, \u0027cell().node()\u0027, function () {\r\n\t\treturn this.iterator( \u0027cell\u0027, function ( settings, row, column ) {\r\n\t\t\tvar data = settings.aoData[ row ];\r\n\t\r\n\t\t\treturn data \u0026\u0026 data.anCells ?\r\n\t\t\t\tdata.anCells[ column ] :\r\n\t\t\t\tundefined;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( \u0027cells().data()\u0027, function () {\r\n\t\treturn this.iterator( \u0027cell\u0027, function ( settings, row, column ) {\r\n\t\t\treturn _fnGetCellData( settings, row, column );\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_registerPlural( \u0027cells().cache()\u0027, \u0027cell().cache()\u0027, function ( type ) {\r\n\t\ttype = type === \u0027search\u0027 ? \u0027_aFilterData\u0027 : \u0027_aSortData\u0027;\r\n\t\r\n\t\treturn this.iterator( \u0027cell\u0027, function ( settings, row, column ) {\r\n\t\t\treturn settings.aoData[ row ][ type ][ column ];\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_registerPlural( \u0027cells().render()\u0027, \u0027cell().render()\u0027, function ( type ) {\r\n\t\treturn this.iterator( \u0027cell\u0027, function ( settings, row, column ) {\r\n\t\t\treturn _fnGetCellData( settings, row, column, type );\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_registerPlural( \u0027cells().indexes()\u0027, \u0027cell().index()\u0027, function () {\r\n\t\treturn this.iterator( \u0027cell\u0027, function ( settings, row, column ) {\r\n\t\t\treturn {\r\n\t\t\t\trow: row,\r\n\t\t\t\tcolumn: column,\r\n\t\t\t\tcolumnVisible: _fnColumnIndexToVisible( settings, column )\r\n\t\t\t};\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_registerPlural( \u0027cells().invalidate()\u0027, \u0027cell().invalidate()\u0027, function ( src ) {\r\n\t\treturn this.iterator( \u0027cell\u0027, function ( settings, row, column ) {\r\n\t\t\t_fnInvalidate( settings, row, src, column );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\t_api_register( \u0027cell()\u0027, function ( rowSelector, columnSelector, opts ) {\r\n\t\treturn _selector_first( this.cells( rowSelector, columnSelector, opts ) );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( \u0027cell().data()\u0027, function ( data ) {\r\n\t\tvar ctx = this.context;\r\n\t\tvar cell = this[0];\r\n\t\r\n\t\tif ( data === undefined ) {\r\n\t\t\t// Get\r\n\t\t\treturn ctx.length \u0026\u0026 cell.length ?\r\n\t\t\t\t_fnGetCellData( ctx[0], cell[0].row, cell[0].column ) :\r\n\t\t\t\tundefined;\r\n\t\t}\r\n\t\r\n\t\t// Set\r\n\t\t_fnSetCellData( ctx[0], cell[0].row, cell[0].column, data );\r\n\t\t_fnInvalidate( ctx[0], cell[0].row, \u0027data\u0027, cell[0].column );\r\n\t\r\n\t\treturn this;\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Get current ordering (sorting) that has been applied to the table.\r\n\t *\r\n\t * @returns {array} 2D array containing the sorting information for the first\r\n\t * table in the current context. Each element in the parent array represents\r\n\t * a column being sorted upon (i.e. multi-sorting with two columns would have\r\n\t * 2 inner arrays). The inner arrays may have 2 or 3 elements. The first is\r\n\t * the column index that the sorting condition applies to, the second is the\r\n\t * direction of the sort (\u00A7desc\u00A7 or \u00A7asc\u00A7) and, optionally, the third is the\r\n\t * index of the sorting order from the \u00A7column.sorting\u00A7 initialisation array.\r\n\t *//**\r\n\t * Set the ordering for the table.\r\n\t *\r\n\t * @param {integer} order Column index to sort upon.\r\n\t * @param {string} direction Direction of the sort to be applied (\u00A7asc\u00A7 or \u00A7desc\u00A7)\r\n\t * @returns {DataTables.Api} this\r\n\t *//**\r\n\t * Set the ordering for the table.\r\n\t *\r\n\t * @param {array} order 1D array of sorting information to be applied.\r\n\t * @param {array} [...] Optional additional sorting conditions\r\n\t * @returns {DataTables.Api} this\r\n\t *//**\r\n\t * Set the ordering for the table.\r\n\t *\r\n\t * @param {array} order 2D array of sorting information to be applied.\r\n\t * @returns {DataTables.Api} this\r\n\t */\r\n\t_api_register( \u0027order()\u0027, function ( order, dir ) {\r\n\t\tvar ctx = this.context;\r\n\t\r\n\t\tif ( order === undefined ) {\r\n\t\t\t// get\r\n\t\t\treturn ctx.length !== 0 ?\r\n\t\t\t\tctx[0].aaSorting :\r\n\t\t\t\tundefined;\r\n\t\t}\r\n\t\r\n\t\t// set\r\n\t\tif ( typeof order === \u0027number\u0027 ) {\r\n\t\t\t// Simple column / direction passed in\r\n\t\t\torder = [ [ order, dir ] ];\r\n\t\t}\r\n\t\telse if ( order.length \u0026\u0026 ! Array.isArray( order[0] ) ) {\r\n\t\t\t// Arguments passed in (list of 1D arrays)\r\n\t\t\torder = Array.prototype.slice.call( arguments );\r\n\t\t}\r\n\t\t// otherwise a 2D array was passed in\r\n\t\r\n\t\treturn this.iterator( \u0027table\u0027, function ( settings ) {\r\n\t\t\tsettings.aaSorting = order.slice();\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t/**\r\n\t * Attach a sort listener to an element for a given column\r\n\t *\r\n\t * @param {node|jQuery|string} node Identifier for the element(s) to attach the\r\n\t * listener to. This can take the form of a single DOM node, a jQuery\r\n\t * collection of nodes or a jQuery selector which will identify the node(s).\r\n\t * @param {integer} column the column that a click on this node will sort on\r\n\t * @param {function} [callback] callback function when sort is run\r\n\t * @returns {DataTables.Api} this\r\n\t */\r\n\t_api_register( \u0027order.listener()\u0027, function ( node, column, callback ) {\r\n\t\treturn this.iterator( \u0027table\u0027, function ( settings ) {\r\n\t\t\t_fnSortAttachListener( settings, node, column, callback );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( \u0027order.fixed()\u0027, function ( set ) {\r\n\t\tif ( ! set ) {\r\n\t\t\tvar ctx = this.context;\r\n\t\t\tvar fixed = ctx.length ?\r\n\t\t\t\tctx[0].aaSortingFixed :\r\n\t\t\t\tundefined;\r\n\t\r\n\t\t\treturn Array.isArray( fixed ) ?\r\n\t\t\t\t{ pre: fixed } :\r\n\t\t\t\tfixed;\r\n\t\t}\r\n\t\r\n\t\treturn this.iterator( \u0027table\u0027, function ( settings ) {\r\n\t\t\tsettings.aaSortingFixed = $.extend( true, {}, set );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t// Order by the selected column(s)\r\n\t_api_register( [\r\n\t\t\u0027columns().order()\u0027,\r\n\t\t\u0027column().order()\u0027\r\n\t], function ( dir ) {\r\n\t\tvar that = this;\r\n\t\r\n\t\treturn this.iterator( \u0027table\u0027, function ( settings, i ) {\r\n\t\t\tvar sort = [];\r\n\t\r\n\t\t\t$.each( that[i], function (j, col) {\r\n\t\t\t\tsort.push( [ col, dir ] );\r\n\t\t\t} );\r\n\t\r\n\t\t\tsettings.aaSorting = sort;\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\t_api_register( \u0027search()\u0027, function ( input, regex, smart, caseInsen ) {\r\n\t\tvar ctx = this.context;\r\n\t\r\n\t\tif ( input === undefined ) {\r\n\t\t\t// get\r\n\t\t\treturn ctx.length !== 0 ?\r\n\t\t\t\tctx[0].oPreviousSearch.sSearch :\r\n\t\t\t\tundefined;\r\n\t\t}\r\n\t\r\n\t\t// set\r\n\t\treturn this.iterator( \u0027table\u0027, function ( settings ) {\r\n\t\t\tif ( ! settings.oFeatures.bFilter ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\r\n\t\t\t_fnFilterComplete( settings, $.extend( {}, settings.oPreviousSearch, {\r\n\t\t\t\t\u0022sSearch\u0022: input\u002B\u0022\u0022,\r\n\t\t\t\t\u0022bRegex\u0022: regex === null ? false : regex,\r\n\t\t\t\t\u0022bSmart\u0022: smart === null ? true : smart,\r\n\t\t\t\t\u0022bCaseInsensitive\u0022: caseInsen === null ? true : caseInsen\r\n\t\t\t} ), 1 );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_registerPlural(\r\n\t\t\u0027columns().search()\u0027,\r\n\t\t\u0027column().search()\u0027,\r\n\t\tfunction ( input, regex, smart, caseInsen ) {\r\n\t\t\treturn this.iterator( \u0027column\u0027, function ( settings, column ) {\r\n\t\t\t\tvar preSearch = settings.aoPreSearchCols;\r\n\t\r\n\t\t\t\tif ( input === undefined ) {\r\n\t\t\t\t\t// get\r\n\t\t\t\t\treturn preSearch[ column ].sSearch;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// set\r\n\t\t\t\tif ( ! settings.oFeatures.bFilter ) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t$.extend( preSearch[ column ], {\r\n\t\t\t\t\t\u0022sSearch\u0022: input\u002B\u0022\u0022,\r\n\t\t\t\t\t\u0022bRegex\u0022: regex === null ? false : regex,\r\n\t\t\t\t\t\u0022bSmart\u0022: smart === null ? true : smart,\r\n\t\t\t\t\t\u0022bCaseInsensitive\u0022: caseInsen === null ? true : caseInsen\r\n\t\t\t\t} );\r\n\t\r\n\t\t\t\t_fnFilterComplete( settings, settings.oPreviousSearch, 1 );\r\n\t\t\t} );\r\n\t\t}\r\n\t);\r\n\t\r\n\t/*\r\n\t * State API methods\r\n\t */\r\n\t\r\n\t_api_register( \u0027state()\u0027, function () {\r\n\t\treturn this.context.length ?\r\n\t\t\tthis.context[0].oSavedState :\r\n\t\t\tnull;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( \u0027state.clear()\u0027, function () {\r\n\t\treturn this.iterator( \u0027table\u0027, function ( settings ) {\r\n\t\t\t// Save an empty object\r\n\t\t\tsettings.fnStateSaveCallback.call( settings.oInstance, settings, {} );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( \u0027state.loaded()\u0027, function () {\r\n\t\treturn this.context.length ?\r\n\t\t\tthis.context[0].oLoadedState :\r\n\t\t\tnull;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( \u0027state.save()\u0027, function () {\r\n\t\treturn this.iterator( \u0027table\u0027, function ( settings ) {\r\n\t\t\t_fnSaveState( settings );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Provide a common method for plug-ins to check the version of DataTables being\r\n\t * used, in order to ensure compatibility.\r\n\t *\r\n\t * @param {string} version Version string to check for, in the format \u0022X.Y.Z\u0022.\r\n\t * Note that the formats \u0022X\u0022 and \u0022X.Y\u0022 are also acceptable.\r\n\t * @returns {boolean} true if this version of DataTables is greater or equal to\r\n\t * the required version, or false if this version of DataTales is not\r\n\t * suitable\r\n\t * @static\r\n\t * @dtopt API-Static\r\n\t *\r\n\t * @example\r\n\t * alert( $.fn.dataTable.versionCheck( \u00271.9.0\u0027 ) );\r\n\t */\r\n\tDataTable.versionCheck = DataTable.fnVersionCheck = function( version )\r\n\t{\r\n\t\tvar aThis = DataTable.version.split(\u0027.\u0027);\r\n\t\tvar aThat = version.split(\u0027.\u0027);\r\n\t\tvar iThis, iThat;\r\n\t\r\n\t\tfor ( var i=0, iLen=aThat.length ; i\u003CiLen ; i\u002B\u002B ) {\r\n\t\t\tiThis = parseInt( aThis[i], 10 ) || 0;\r\n\t\t\tiThat = parseInt( aThat[i], 10 ) || 0;\r\n\t\r\n\t\t\t// Parts are the same, keep comparing\r\n\t\t\tif (iThis === iThat) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Parts are different, return immediately\r\n\t\t\treturn iThis \u003E iThat;\r\n\t\t}\r\n\t\r\n\t\treturn true;\r\n\t};\r\n\t\r\n\t\r\n\t/**\r\n\t * Check if a \u00A7\u003Ctable\u003E\u00A7 node is a DataTable table already or not.\r\n\t *\r\n\t * @param {node|jquery|string} table Table node, jQuery object or jQuery\r\n\t * selector for the table to test. Note that if more than more than one\r\n\t * table is passed on, only the first will be checked\r\n\t * @returns {boolean} true the table given is a DataTable, or false otherwise\r\n\t * @static\r\n\t * @dtopt API-Static\r\n\t *\r\n\t * @example\r\n\t * if ( ! $.fn.DataTable.isDataTable( \u0027#example\u0027 ) ) {\r\n\t * $(\u0027#example\u0027).dataTable();\r\n\t * }\r\n\t */\r\n\tDataTable.isDataTable = DataTable.fnIsDataTable = function ( table )\r\n\t{\r\n\t\tvar t = $(table).get(0);\r\n\t\tvar is = false;\r\n\t\r\n\t\tif ( table instanceof DataTable.Api ) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\r\n\t\t$.each( DataTable.settings, function (i, o) {\r\n\t\t\tvar head = o.nScrollHead ? $(\u0027table\u0027, o.nScrollHead)[0] : null;\r\n\t\t\tvar foot = o.nScrollFoot ? $(\u0027table\u0027, o.nScrollFoot)[0] : null;\r\n\t\r\n\t\t\tif ( o.nTable === t || head === t || foot === t ) {\r\n\t\t\t\tis = true;\r\n\t\t\t}\r\n\t\t} );\r\n\t\r\n\t\treturn is;\r\n\t};\r\n\t\r\n\t\r\n\t/**\r\n\t * Get all DataTable tables that have been initialised - optionally you can\r\n\t * select to get only currently visible tables.\r\n\t *\r\n\t * @param {boolean} [visible=false] Flag to indicate if you want all (default)\r\n\t * or visible tables only.\r\n\t * @returns {array} Array of \u00A7table\u00A7 nodes (not DataTable instances) which are\r\n\t * DataTables\r\n\t * @static\r\n\t * @dtopt API-Static\r\n\t *\r\n\t * @example\r\n\t * $.each( $.fn.dataTable.tables(true), function () {\r\n\t * $(table).DataTable().columns.adjust();\r\n\t * } );\r\n\t */\r\n\tDataTable.tables = DataTable.fnTables = function ( visible )\r\n\t{\r\n\t\tvar api = false;\r\n\t\r\n\t\tif ( $.isPlainObject( visible ) ) {\r\n\t\t\tapi = visible.api;\r\n\t\t\tvisible = visible.visible;\r\n\t\t}\r\n\t\r\n\t\tvar a = $.map( DataTable.settings, function (o) {\r\n\t\t\tif ( !visible || (visible \u0026\u0026 $(o.nTable).is(\u0027:visible\u0027)) ) {\r\n\t\t\t\treturn o.nTable;\r\n\t\t\t}\r\n\t\t} );\r\n\t\r\n\t\treturn api ?\r\n\t\t\tnew _Api( a ) :\r\n\t\t\ta;\r\n\t};\r\n\t\r\n\t\r\n\t/**\r\n\t * Convert from camel case parameters to Hungarian notation. This is made public\r\n\t * for the extensions to provide the same ability as DataTables core to accept\r\n\t * either the 1.9 style Hungarian notation, or the 1.10\u002B style camelCase\r\n\t * parameters.\r\n\t *\r\n\t * @param {object} src The model object which holds all parameters that can be\r\n\t * mapped.\r\n\t * @param {object} user The object to convert from camel case to Hungarian.\r\n\t * @param {boolean} force When set to \u00A7true\u00A7, properties which already have a\r\n\t * Hungarian value in the \u00A7user\u00A7 object will be overwritten. Otherwise they\r\n\t * won\u0027t be.\r\n\t */\r\n\tDataTable.camelToHungarian = _fnCamelToHungarian;\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t *\r\n\t */\r\n\t_api_register( \u0027$()\u0027, function ( selector, opts ) {\r\n\t\tvar\r\n\t\t\trows = this.rows( opts ).nodes(), // Get all rows\r\n\t\t\tjqRows = $(rows);\r\n\t\r\n\t\treturn $( [].concat(\r\n\t\t\tjqRows.filter( selector ).toArray(),\r\n\t\t\tjqRows.find( selector ).toArray()\r\n\t\t) );\r\n\t} );\r\n\t\r\n\t\r\n\t// jQuery functions to operate on the tables\r\n\t$.each( [ \u0027on\u0027, \u0027one\u0027, \u0027off\u0027 ], function (i, key) {\r\n\t\t_api_register( key\u002B\u0027()\u0027, function ( /* event, handler */ ) {\r\n\t\t\tvar args = Array.prototype.slice.call(arguments);\r\n\t\r\n\t\t\t// Add the \u00A7dt\u00A7 namespace automatically if it isn\u0027t already present\r\n\t\t\targs[0] = $.map( args[0].split( /\\s/ ), function ( e ) {\r\n\t\t\t\treturn ! e.match(/\\.dt\\b/) ?\r\n\t\t\t\t\te\u002B\u0027.dt\u0027 :\r\n\t\t\t\t\te;\r\n\t\t\t\t} ).join( \u0027 \u0027 );\r\n\t\r\n\t\t\tvar inst = $( this.tables().nodes() );\r\n\t\t\tinst[key].apply( inst, args );\r\n\t\t\treturn this;\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( \u0027clear()\u0027, function () {\r\n\t\treturn this.iterator( \u0027table\u0027, function ( settings ) {\r\n\t\t\t_fnClearTable( settings );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( \u0027settings()\u0027, function () {\r\n\t\treturn new _Api( this.context, this.context );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( \u0027init()\u0027, function () {\r\n\t\tvar ctx = this.context;\r\n\t\treturn ctx.length ? ctx[0].oInit : null;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( \u0027data()\u0027, function () {\r\n\t\treturn this.iterator( \u0027table\u0027, function ( settings ) {\r\n\t\t\treturn _pluck( settings.aoData, \u0027_aData\u0027 );\r\n\t\t} ).flatten();\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( \u0027destroy()\u0027, function ( remove ) {\r\n\t\tremove = remove || false;\r\n\t\r\n\t\treturn this.iterator( \u0027table\u0027, function ( settings ) {\r\n\t\t\tvar orig = settings.nTableWrapper.parentNode;\r\n\t\t\tvar classes = settings.oClasses;\r\n\t\t\tvar table = settings.nTable;\r\n\t\t\tvar tbody = settings.nTBody;\r\n\t\t\tvar thead = settings.nTHead;\r\n\t\t\tvar tfoot = settings.nTFoot;\r\n\t\t\tvar jqTable = $(table);\r\n\t\t\tvar jqTbody = $(tbody);\r\n\t\t\tvar jqWrapper = $(settings.nTableWrapper);\r\n\t\t\tvar rows = $.map( settings.aoData, function (r) { return r.nTr; } );\r\n\t\t\tvar i, ien;\r\n\t\r\n\t\t\t// Flag to note that the table is currently being destroyed - no action\r\n\t\t\t// should be taken\r\n\t\t\tsettings.bDestroying = true;\r\n\t\r\n\t\t\t// Fire off the destroy callbacks for plug-ins etc\r\n\t\t\t_fnCallbackFire( settings, \u0022aoDestroyCallback\u0022, \u0022destroy\u0022, [settings] );\r\n\t\r\n\t\t\t// If not being removed from the document, make all columns visible\r\n\t\t\tif ( ! remove ) {\r\n\t\t\t\tnew _Api( settings ).columns().visible( true );\r\n\t\t\t}\r\n\t\r\n\t\t\t// Blitz all \u00A7DT\u00A7 namespaced events (these are internal events, the\r\n\t\t\t// lowercase, \u00A7dt\u00A7 events are user subscribed and they are responsible\r\n\t\t\t// for removing them\r\n\t\t\tjqWrapper.off(\u0027.DT\u0027).find(\u0027:not(tbody *)\u0027).off(\u0027.DT\u0027);\r\n\t\t\t$(window).off(\u0027.DT-\u0027\u002Bsettings.sInstance);\r\n\t\r\n\t\t\t// When scrolling we had to break the table up - restore it\r\n\t\t\tif ( table != thead.parentNode ) {\r\n\t\t\t\tjqTable.children(\u0027thead\u0027).detach();\r\n\t\t\t\tjqTable.append( thead );\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( tfoot \u0026\u0026 table != tfoot.parentNode ) {\r\n\t\t\t\tjqTable.children(\u0027tfoot\u0027).detach();\r\n\t\t\t\tjqTable.append( tfoot );\r\n\t\t\t}\r\n\t\r\n\t\t\tsettings.aaSorting = [];\r\n\t\t\tsettings.aaSortingFixed = [];\r\n\t\t\t_fnSortingClasses( settings );\r\n\t\r\n\t\t\t$( rows ).removeClass( settings.asStripeClasses.join(\u0027 \u0027) );\r\n\t\r\n\t\t\t$(\u0027th, td\u0027, thead).removeClass( classes.sSortable\u002B\u0027 \u0027\u002B\r\n\t\t\t\tclasses.sSortableAsc\u002B\u0027 \u0027\u002Bclasses.sSortableDesc\u002B\u0027 \u0027\u002Bclasses.sSortableNone\r\n\t\t\t);\r\n\t\r\n\t\t\t// Add the TR elements back into the table in their original order\r\n\t\t\tjqTbody.children().detach();\r\n\t\t\tjqTbody.append( rows );\r\n\t\r\n\t\t\t// Remove the DataTables generated nodes, events and classes\r\n\t\t\tvar removedMethod = remove ? \u0027remove\u0027 : \u0027detach\u0027;\r\n\t\t\tjqTable[ removedMethod ]();\r\n\t\t\tjqWrapper[ removedMethod ]();\r\n\t\r\n\t\t\t// If we need to reattach the table to the document\r\n\t\t\tif ( ! remove \u0026\u0026 orig ) {\r\n\t\t\t\t// insertBefore acts like appendChild if !arg[1]\r\n\t\t\t\torig.insertBefore( table, settings.nTableReinsertBefore );\r\n\t\r\n\t\t\t\t// Restore the width of the original table - was read from the style property,\r\n\t\t\t\t// so we can restore directly to that\r\n\t\t\t\tjqTable\r\n\t\t\t\t\t.css( \u0027width\u0027, settings.sDestroyWidth )\r\n\t\t\t\t\t.removeClass( classes.sTable );\r\n\t\r\n\t\t\t\t// If the were originally stripe classes - then we add them back here.\r\n\t\t\t\t// Note this is not fool proof (for example if not all rows had stripe\r\n\t\t\t\t// classes - but it\u0027s a good effort without getting carried away\r\n\t\t\t\tien = settings.asDestroyStripes.length;\r\n\t\r\n\t\t\t\tif ( ien ) {\r\n\t\t\t\t\tjqTbody.children().each( function (i) {\r\n\t\t\t\t\t\t$(this).addClass( settings.asDestroyStripes[i % ien] );\r\n\t\t\t\t\t} );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\t/* Remove the settings object from the settings array */\r\n\t\t\tvar idx = $.inArray( settings, DataTable.settings );\r\n\t\t\tif ( idx !== -1 ) {\r\n\t\t\t\tDataTable.settings.splice( idx, 1 );\r\n\t\t\t}\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t// Add the \u00A7every()\u00A7 method for rows, columns and cells in a compact form\r\n\t$.each( [ \u0027column\u0027, \u0027row\u0027, \u0027cell\u0027 ], function ( i, type ) {\r\n\t\t_api_register( type\u002B\u0027s().every()\u0027, function ( fn ) {\r\n\t\t\tvar opts = this.selector.opts;\r\n\t\t\tvar api = this;\r\n\t\r\n\t\t\treturn this.iterator( type, function ( settings, arg1, arg2, arg3, arg4 ) {\r\n\t\t\t\t// Rows and columns:\r\n\t\t\t\t// arg1 - index\r\n\t\t\t\t// arg2 - table counter\r\n\t\t\t\t// arg3 - loop counter\r\n\t\t\t\t// arg4 - undefined\r\n\t\t\t\t// Cells:\r\n\t\t\t\t// arg1 - row index\r\n\t\t\t\t// arg2 - column index\r\n\t\t\t\t// arg3 - table counter\r\n\t\t\t\t// arg4 - loop counter\r\n\t\t\t\tfn.call(\r\n\t\t\t\t\tapi[ type ](\r\n\t\t\t\t\t\targ1,\r\n\t\t\t\t\t\ttype===\u0027cell\u0027 ? arg2 : opts,\r\n\t\t\t\t\t\ttype===\u0027cell\u0027 ? opts : undefined\r\n\t\t\t\t\t),\r\n\t\t\t\t\targ1, arg2, arg3, arg4\r\n\t\t\t\t);\r\n\t\t\t} );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t// i18n method for extensions to be able to use the language object from the\r\n\t// DataTable\r\n\t_api_register( \u0027i18n()\u0027, function ( token, def, plural ) {\r\n\t\tvar ctx = this.context[0];\r\n\t\tvar resolved = _fnGetObjectDataFn( token )( ctx.oLanguage );\r\n\t\r\n\t\tif ( resolved === undefined ) {\r\n\t\t\tresolved = def;\r\n\t\t}\r\n\t\r\n\t\tif ( plural !== undefined \u0026\u0026 $.isPlainObject( resolved ) ) {\r\n\t\t\tresolved = resolved[ plural ] !== undefined ?\r\n\t\t\t\tresolved[ plural ] :\r\n\t\t\t\tresolved._;\r\n\t\t}\r\n\t\r\n\t\treturn resolved.replace( \u0027%d\u0027, plural ); // nb: plural might be undefined,\r\n\t} );\r\n\t/**\r\n\t * Version string for plug-ins to check compatibility. Allowed format is\r\n\t * \u00A7a.b.c-d\u00A7 where: a:int, b:int, c:int, d:string(dev|beta|alpha). \u00A7d\u00A7 is used\r\n\t * only for non-release builds. See http://semver.org/ for more information.\r\n\t * @member\r\n\t * @type string\r\n\t * @default Version number\r\n\t */\r\n\tDataTable.version = \u00221.11.3\u0022;\r\n\r\n\t/**\r\n\t * Private data store, containing all of the settings objects that are\r\n\t * created for the tables on a given page.\r\n\t *\r\n\t * Note that the \u00A7DataTable.settings\u00A7 object is aliased to\r\n\t * \u00A7jQuery.fn.dataTableExt\u00A7 through which it may be accessed and\r\n\t * manipulated, or \u00A7jQuery.fn.dataTable.settings\u00A7.\r\n\t * @member\r\n\t * @type array\r\n\t * @default []\r\n\t * @private\r\n\t */\r\n\tDataTable.settings = [];\r\n\r\n\t/**\r\n\t * Object models container, for the various models that DataTables has\r\n\t * available to it. These models define the objects that are used to hold\r\n\t * the active state and configuration of the table.\r\n\t * @namespace\r\n\t */\r\n\tDataTable.models = {};\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Template object for the way in which DataTables holds information about\r\n\t * search information for the global filter and individual column filters.\r\n\t * @namespace\r\n\t */\r\n\tDataTable.models.oSearch = {\r\n\t\t/**\r\n\t\t * Flag to indicate if the filtering should be case insensitive or not\r\n\t\t * @type boolean\r\n\t\t * @default true\r\n\t\t */\r\n\t\t\u0022bCaseInsensitive\u0022: true,\r\n\t\r\n\t\t/**\r\n\t\t * Applied search term\r\n\t\t * @type string\r\n\t\t * @default \u003Ci\u003EEmpty string\u003C/i\u003E\r\n\t\t */\r\n\t\t\u0022sSearch\u0022: \u0022\u0022,\r\n\t\r\n\t\t/**\r\n\t\t * Flag to indicate if the search term should be interpreted as a\r\n\t\t * regular expression (true) or not (false) and therefore and special\r\n\t\t * regex characters escaped.\r\n\t\t * @type boolean\r\n\t\t * @default false\r\n\t\t */\r\n\t\t\u0022bRegex\u0022: false,\r\n\t\r\n\t\t/**\r\n\t\t * Flag to indicate if DataTables is to use its smart filtering or not.\r\n\t\t * @type boolean\r\n\t\t * @default true\r\n\t\t */\r\n\t\t\u0022bSmart\u0022: true,\r\n\t\r\n\t\t/**\r\n\t\t * Flag to indicate if DataTables should only trigger a search when\r\n\t\t * the return key is pressed.\r\n\t\t * @type boolean\r\n\t\t * @default false\r\n\t\t */\r\n\t\t\u0022return\u0022: false\r\n\t};\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Template object for the way in which DataTables holds information about\r\n\t * each individual row. This is the object format used for the settings\r\n\t * aoData array.\r\n\t * @namespace\r\n\t */\r\n\tDataTable.models.oRow = {\r\n\t\t/**\r\n\t\t * TR element for the row\r\n\t\t * @type node\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\u0022nTr\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Array of TD elements for each row. This is null until the row has been\r\n\t\t * created.\r\n\t\t * @type array nodes\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\u0022anCells\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Data object from the original data source for the row. This is either\r\n\t\t * an array if using the traditional form of DataTables, or an object if\r\n\t\t * using mData options. The exact type will depend on the passed in\r\n\t\t * data from the data source, or will be an array if using DOM a data\r\n\t\t * source.\r\n\t\t * @type array|object\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\u0022_aData\u0022: [],\r\n\t\r\n\t\t/**\r\n\t\t * Sorting data cache - this array is ostensibly the same length as the\r\n\t\t * number of columns (although each index is generated only as it is\r\n\t\t * needed), and holds the data that is used for sorting each column in the\r\n\t\t * row. We do this cache generation at the start of the sort in order that\r\n\t\t * the formatting of the sort data need be done only once for each cell\r\n\t\t * per sort. This array should not be read from or written to by anything\r\n\t\t * other than the master sorting methods.\r\n\t\t * @type array\r\n\t\t * @default null\r\n\t\t * @private\r\n\t\t */\r\n\t\t\u0022_aSortData\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Per cell filtering data cache. As per the sort data cache, used to\r\n\t\t * increase the performance of the filtering in DataTables\r\n\t\t * @type array\r\n\t\t * @default null\r\n\t\t * @private\r\n\t\t */\r\n\t\t\u0022_aFilterData\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Filtering data cache. This is the same as the cell filtering cache, but\r\n\t\t * in this case a string rather than an array. This is easily computed with\r\n\t\t * a join on \u00A7_aFilterData\u00A7, but is provided as a cache so the join isn\u0027t\r\n\t\t * needed on every search (memory traded for performance)\r\n\t\t * @type array\r\n\t\t * @default null\r\n\t\t * @private\r\n\t\t */\r\n\t\t\u0022_sFilterRow\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Cache of the class name that DataTables has applied to the row, so we\r\n\t\t * can quickly look at this variable rather than needing to do a DOM check\r\n\t\t * on className for the nTr property.\r\n\t\t * @type string\r\n\t\t * @default \u003Ci\u003EEmpty string\u003C/i\u003E\r\n\t\t * @private\r\n\t\t */\r\n\t\t\u0022_sRowStripe\u0022: \u0022\u0022,\r\n\t\r\n\t\t/**\r\n\t\t * Denote if the original data source was from the DOM, or the data source\r\n\t\t * object. This is used for invalidating data, so DataTables can\r\n\t\t * automatically read data from the original source, unless uninstructed\r\n\t\t * otherwise.\r\n\t\t * @type string\r\n\t\t * @default null\r\n\t\t * @private\r\n\t\t */\r\n\t\t\u0022src\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Index in the aoData array. This saves an indexOf lookup when we have the\r\n\t\t * object, but want to know the index\r\n\t\t * @type integer\r\n\t\t * @default -1\r\n\t\t * @private\r\n\t\t */\r\n\t\t\u0022idx\u0022: -1\r\n\t};\r\n\t\r\n\t\r\n\t/**\r\n\t * Template object for the column information object in DataTables. This object\r\n\t * is held in the settings aoColumns array and contains all the information that\r\n\t * DataTables needs about each individual column.\r\n\t *\r\n\t * Note that this object is related to {@link DataTable.defaults.column}\r\n\t * but this one is the internal data store for DataTables\u0027s cache of columns.\r\n\t * It should NOT be manipulated outside of DataTables. Any configuration should\r\n\t * be done through the initialisation options.\r\n\t * @namespace\r\n\t */\r\n\tDataTable.models.oColumn = {\r\n\t\t/**\r\n\t\t * Column index. This could be worked out on-the-fly with $.inArray, but it\r\n\t\t * is faster to just hold it as a variable\r\n\t\t * @type integer\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\u0022idx\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * A list of the columns that sorting should occur on when this column\r\n\t\t * is sorted. That this property is an array allows multi-column sorting\r\n\t\t * to be defined for a column (for example first name / last name columns\r\n\t\t * would benefit from this). The values are integers pointing to the\r\n\t\t * columns to be sorted on (typically it will be a single integer pointing\r\n\t\t * at itself, but that doesn\u0027t need to be the case).\r\n\t\t * @type array\r\n\t\t */\r\n\t\t\u0022aDataSort\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Define the sorting directions that are applied to the column, in sequence\r\n\t\t * as the column is repeatedly sorted upon - i.e. the first value is used\r\n\t\t * as the sorting direction when the column if first sorted (clicked on).\r\n\t\t * Sort it again (click again) and it will move on to the next index.\r\n\t\t * Repeat until loop.\r\n\t\t * @type array\r\n\t\t */\r\n\t\t\u0022asSorting\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Flag to indicate if the column is searchable, and thus should be included\r\n\t\t * in the filtering or not.\r\n\t\t * @type boolean\r\n\t\t */\r\n\t\t\u0022bSearchable\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Flag to indicate if the column is sortable or not.\r\n\t\t * @type boolean\r\n\t\t */\r\n\t\t\u0022bSortable\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Flag to indicate if the column is currently visible in the table or not\r\n\t\t * @type boolean\r\n\t\t */\r\n\t\t\u0022bVisible\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Store for manual type assignment using the \u00A7column.type\u00A7 option. This\r\n\t\t * is held in store so we can manipulate the column\u0027s \u00A7sType\u00A7 property.\r\n\t\t * @type string\r\n\t\t * @default null\r\n\t\t * @private\r\n\t\t */\r\n\t\t\u0022_sManualType\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Flag to indicate if HTML5 data attributes should be used as the data\r\n\t\t * source for filtering or sorting. True is either are.\r\n\t\t * @type boolean\r\n\t\t * @default false\r\n\t\t * @private\r\n\t\t */\r\n\t\t\u0022_bAttrSrc\u0022: false,\r\n\t\r\n\t\t/**\r\n\t\t * Developer definable function that is called whenever a cell is created (Ajax source,\r\n\t\t * etc) or processed for input (DOM source). This can be used as a compliment to mRender\r\n\t\t * allowing you to modify the DOM element (add background colour for example) when the\r\n\t\t * element is available.\r\n\t\t * @type function\r\n\t\t * @param {element} nTd The TD node that has been created\r\n\t\t * @param {*} sData The Data for the cell\r\n\t\t * @param {array|object} oData The data for the whole row\r\n\t\t * @param {int} iRow The row index for the aoData data store\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\u0022fnCreatedCell\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Function to get data from a cell in a column. You should \u003Cb\u003Enever\u003C/b\u003E\r\n\t\t * access data directly through _aData internally in DataTables - always use\r\n\t\t * the method attached to this property. It allows mData to function as\r\n\t\t * required. This function is automatically assigned by the column\r\n\t\t * initialisation method\r\n\t\t * @type function\r\n\t\t * @param {array|object} oData The data array/object for the array\r\n\t\t * (i.e. aoData[]._aData)\r\n\t\t * @param {string} sSpecific The specific data type you want to get -\r\n\t\t * \u0027display\u0027, \u0027type\u0027 \u0027filter\u0027 \u0027sort\u0027\r\n\t\t * @returns {*} The data for the cell from the given row\u0027s data\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\u0022fnGetData\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Function to set data for a cell in the column. You should \u003Cb\u003Enever\u003C/b\u003E\r\n\t\t * set the data directly to _aData internally in DataTables - always use\r\n\t\t * this method. It allows mData to function as required. This function\r\n\t\t * is automatically assigned by the column initialisation method\r\n\t\t * @type function\r\n\t\t * @param {array|object} oData The data array/object for the array\r\n\t\t * (i.e. aoData[]._aData)\r\n\t\t * @param {*} sValue Value to set\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\u0022fnSetData\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Property to read the value for the cells in the column from the data\r\n\t\t * source array / object. If null, then the default content is used, if a\r\n\t\t * function is given then the return from the function is used.\r\n\t\t * @type function|int|string|null\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\u0022mData\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Partner property to mData which is used (only when defined) to get\r\n\t\t * the data - i.e. it is basically the same as mData, but without the\r\n\t\t * \u0027set\u0027 option, and also the data fed to it is the result from mData.\r\n\t\t * This is the rendering method to match the data method of mData.\r\n\t\t * @type function|int|string|null\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\u0022mRender\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Unique header TH/TD element for this column - this is what the sorting\r\n\t\t * listener is attached to (if sorting is enabled.)\r\n\t\t * @type node\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\u0022nTh\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Unique footer TH/TD element for this column (if there is one). Not used\r\n\t\t * in DataTables as such, but can be used for plug-ins to reference the\r\n\t\t * footer for each column.\r\n\t\t * @type node\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\u0022nTf\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * The class to apply to all TD elements in the table\u0027s TBODY for the column\r\n\t\t * @type string\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\u0022sClass\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * When DataTables calculates the column widths to assign to each column,\r\n\t\t * it finds the longest string in each column and then constructs a\r\n\t\t * temporary table and reads the widths from that. The problem with this\r\n\t\t * is that \u0022mmm\u0022 is much wider then \u0022iiii\u0022, but the latter is a longer\r\n\t\t * string - thus the calculation can go wrong (doing it properly and putting\r\n\t\t * it into an DOM object and measuring that is horribly(!) slow). Thus as\r\n\t\t * a \u0022work around\u0022 we provide this option. It will append its value to the\r\n\t\t * text that is found to be the longest string for the column - i.e. padding.\r\n\t\t * @type string\r\n\t\t */\r\n\t\t\u0022sContentPadding\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Allows a default value to be given for a column\u0027s data, and will be used\r\n\t\t * whenever a null data source is encountered (this can be because mData\r\n\t\t * is set to null, or because the data source itself is null).\r\n\t\t * @type string\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\u0022sDefaultContent\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Name for the column, allowing reference to the column by name as well as\r\n\t\t * by index (needs a lookup to work by name).\r\n\t\t * @type string\r\n\t\t */\r\n\t\t\u0022sName\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Custom sorting data type - defines which of the available plug-ins in\r\n\t\t * afnSortData the custom sorting will use - if any is defined.\r\n\t\t * @type string\r\n\t\t * @default std\r\n\t\t */\r\n\t\t\u0022sSortDataType\u0022: \u0027std\u0027,\r\n\t\r\n\t\t/**\r\n\t\t * Class to be applied to the header element when sorting on this column\r\n\t\t * @type string\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\u0022sSortingClass\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Class to be applied to the header element when sorting on this column -\r\n\t\t * when jQuery UI theming is used.\r\n\t\t * @type string\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\u0022sSortingClassJUI\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Title of the column - what is seen in the TH element (nTh).\r\n\t\t * @type string\r\n\t\t */\r\n\t\t\u0022sTitle\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Column sorting and filtering type\r\n\t\t * @type string\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\u0022sType\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Width of the column\r\n\t\t * @type string\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\u0022sWidth\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Width of the column when it was first \u0022encountered\u0022\r\n\t\t * @type string\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\u0022sWidthOrig\u0022: null\r\n\t};\r\n\t\r\n\t\r\n\t/*\r\n\t * Developer note: The properties of the object below are given in Hungarian\r\n\t * notation, that was used as the interface for DataTables prior to v1.10, however\r\n\t * from v1.10 onwards the primary interface is camel case. In order to avoid\r\n\t * breaking backwards compatibility utterly with this change, the Hungarian\r\n\t * version is still, internally the primary interface, but is is not documented\r\n\t * - hence the @name tags in each doc comment. This allows a Javascript function\r\n\t * to create a map from Hungarian notation to camel case (going the other direction\r\n\t * would require each property to be listed, which would add around 3K to the size\r\n\t * of DataTables, while this method is about a 0.5K hit).\r\n\t *\r\n\t * Ultimately this does pave the way for Hungarian notation to be dropped\r\n\t * completely, but that is a massive amount of work and will break current\r\n\t * installs (therefore is on-hold until v2).\r\n\t */\r\n\t\r\n\t/**\r\n\t * Initialisation options that can be given to DataTables at initialisation\r\n\t * time.\r\n\t * @namespace\r\n\t */\r\n\tDataTable.defaults = {\r\n\t\t/**\r\n\t\t * An array of data to use for the table, passed in at initialisation which\r\n\t\t * will be used in preference to any data which is already in the DOM. This is\r\n\t\t * particularly useful for constructing tables purely in Javascript, for\r\n\t\t * example with a custom Ajax call.\r\n\t\t * @type array\r\n\t\t * @default null\r\n\t\t *\r\n\t\t * @dtopt Option\r\n\t\t * @name DataTable.defaults.data\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using a 2D array data source\r\n\t\t * $(document).ready( function () {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022data\u0022: [\r\n\t\t * [\u0027Trident\u0027, \u0027Internet Explorer 4.0\u0027, \u0027Win 95\u002B\u0027, 4, \u0027X\u0027],\r\n\t\t * [\u0027Trident\u0027, \u0027Internet Explorer 5.0\u0027, \u0027Win 95\u002B\u0027, 5, \u0027C\u0027],\r\n\t\t * ],\r\n\t\t * \u0022columns\u0022: [\r\n\t\t * { \u0022title\u0022: \u0022Engine\u0022 },\r\n\t\t * { \u0022title\u0022: \u0022Browser\u0022 },\r\n\t\t * { \u0022title\u0022: \u0022Platform\u0022 },\r\n\t\t * { \u0022title\u0022: \u0022Version\u0022 },\r\n\t\t * { \u0022title\u0022: \u0022Grade\u0022 }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using an array of objects as a data source (\u00A7data\u00A7)\r\n\t\t * $(document).ready( function () {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022data\u0022: [\r\n\t\t * {\r\n\t\t * \u0022engine\u0022: \u0022Trident\u0022,\r\n\t\t * \u0022browser\u0022: \u0022Internet Explorer 4.0\u0022,\r\n\t\t * \u0022platform\u0022: \u0022Win 95\u002B\u0022,\r\n\t\t * \u0022version\u0022: 4,\r\n\t\t * \u0022grade\u0022: \u0022X\u0022\r\n\t\t * },\r\n\t\t * {\r\n\t\t * \u0022engine\u0022: \u0022Trident\u0022,\r\n\t\t * \u0022browser\u0022: \u0022Internet Explorer 5.0\u0022,\r\n\t\t * \u0022platform\u0022: \u0022Win 95\u002B\u0022,\r\n\t\t * \u0022version\u0022: 5,\r\n\t\t * \u0022grade\u0022: \u0022C\u0022\r\n\t\t * }\r\n\t\t * ],\r\n\t\t * \u0022columns\u0022: [\r\n\t\t * { \u0022title\u0022: \u0022Engine\u0022, \u0022data\u0022: \u0022engine\u0022 },\r\n\t\t * { \u0022title\u0022: \u0022Browser\u0022, \u0022data\u0022: \u0022browser\u0022 },\r\n\t\t * { \u0022title\u0022: \u0022Platform\u0022, \u0022data\u0022: \u0022platform\u0022 },\r\n\t\t * { \u0022title\u0022: \u0022Version\u0022, \u0022data\u0022: \u0022version\u0022 },\r\n\t\t * { \u0022title\u0022: \u0022Grade\u0022, \u0022data\u0022: \u0022grade\u0022 }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022aaData\u0022: null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * If ordering is enabled, then DataTables will perform a first pass sort on\r\n\t\t * initialisation. You can define which column(s) the sort is performed\r\n\t\t * upon, and the sorting direction, with this variable. The \u00A7sorting\u00A7 array\r\n\t\t * should contain an array for each column to be sorted initially containing\r\n\t\t * the column\u0027s index and a direction string (\u0027asc\u0027 or \u0027desc\u0027).\r\n\t\t * @type array\r\n\t\t * @default [[0,\u0027asc\u0027]]\r\n\t\t *\r\n\t\t * @dtopt Option\r\n\t\t * @name DataTable.defaults.order\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Sort by 3rd column first, and then 4th column\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022order\u0022: [[2,\u0027asc\u0027], [3,\u0027desc\u0027]]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * // No initial sorting\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022order\u0022: []\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022aaSorting\u0022: [[0,\u0027asc\u0027]],\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This parameter is basically identical to the \u00A7sorting\u00A7 parameter, but\r\n\t\t * cannot be overridden by user interaction with the table. What this means\r\n\t\t * is that you could have a column (visible or hidden) which the sorting\r\n\t\t * will always be forced on first - any sorting after that (from the user)\r\n\t\t * will then be performed as required. This can be useful for grouping rows\r\n\t\t * together.\r\n\t\t * @type array\r\n\t\t * @default null\r\n\t\t *\r\n\t\t * @dtopt Option\r\n\t\t * @name DataTable.defaults.orderFixed\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022orderFixed\u0022: [[0,\u0027asc\u0027]]\r\n\t\t * } );\r\n\t\t * } )\r\n\t\t */\r\n\t\t\u0022aaSortingFixed\u0022: [],\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * DataTables can be instructed to load data to display in the table from a\r\n\t\t * Ajax source. This option defines how that Ajax call is made and where to.\r\n\t\t *\r\n\t\t * The \u00A7ajax\u00A7 property has three different modes of operation, depending on\r\n\t\t * how it is defined. These are:\r\n\t\t *\r\n\t\t * * \u00A7string\u00A7 - Set the URL from where the data should be loaded from.\r\n\t\t * * \u00A7object\u00A7 - Define properties for \u00A7jQuery.ajax\u00A7.\r\n\t\t * * \u00A7function\u00A7 - Custom data get function\r\n\t\t *\r\n\t\t * \u00A7string\u00A7\r\n\t\t * --------\r\n\t\t *\r\n\t\t * As a string, the \u00A7ajax\u00A7 property simply defines the URL from which\r\n\t\t * DataTables will load data.\r\n\t\t *\r\n\t\t * \u00A7object\u00A7\r\n\t\t * --------\r\n\t\t *\r\n\t\t * As an object, the parameters in the object are passed to\r\n\t\t * [jQuery.ajax](http://api.jquery.com/jQuery.ajax/) allowing fine control\r\n\t\t * of the Ajax request. DataTables has a number of default parameters which\r\n\t\t * you can override using this option. Please refer to the jQuery\r\n\t\t * documentation for a full description of the options available, although\r\n\t\t * the following parameters provide additional options in DataTables or\r\n\t\t * require special consideration:\r\n\t\t *\r\n\t\t * * \u00A7data\u00A7 - As with jQuery, \u00A7data\u00A7 can be provided as an object, but it\r\n\t\t * can also be used as a function to manipulate the data DataTables sends\r\n\t\t * to the server. The function takes a single parameter, an object of\r\n\t\t * parameters with the values that DataTables has readied for sending. An\r\n\t\t * object may be returned which will be merged into the DataTables\r\n\t\t * defaults, or you can add the items to the object that was passed in and\r\n\t\t * not return anything from the function. This supersedes \u00A7fnServerParams\u00A7\r\n\t\t * from DataTables 1.9-.\r\n\t\t *\r\n\t\t * * \u00A7dataSrc\u00A7 - By default DataTables will look for the property \u00A7data\u00A7 (or\r\n\t\t * \u00A7aaData\u00A7 for compatibility with DataTables 1.9-) when obtaining data\r\n\t\t * from an Ajax source or for server-side processing - this parameter\r\n\t\t * allows that property to be changed. You can use Javascript dotted\r\n\t\t * object notation to get a data source for multiple levels of nesting, or\r\n\t\t * it my be used as a function. As a function it takes a single parameter,\r\n\t\t * the JSON returned from the server, which can be manipulated as\r\n\t\t * required, with the returned value being that used by DataTables as the\r\n\t\t * data source for the table. This supersedes \u00A7sAjaxDataProp\u00A7 from\r\n\t\t * DataTables 1.9-.\r\n\t\t *\r\n\t\t * * \u00A7success\u00A7 - Should not be overridden it is used internally in\r\n\t\t * DataTables. To manipulate / transform the data returned by the server\r\n\t\t * use \u00A7ajax.dataSrc\u00A7, or use \u00A7ajax\u00A7 as a function (see below).\r\n\t\t *\r\n\t\t * \u00A7function\u00A7\r\n\t\t * ----------\r\n\t\t *\r\n\t\t * As a function, making the Ajax call is left up to yourself allowing\r\n\t\t * complete control of the Ajax request. Indeed, if desired, a method other\r\n\t\t * than Ajax could be used to obtain the required data, such as Web storage\r\n\t\t * or an AIR database.\r\n\t\t *\r\n\t\t * The function is given four parameters and no return is required. The\r\n\t\t * parameters are:\r\n\t\t *\r\n\t\t * 1. _object_ - Data to send to the server\r\n\t\t * 2. _function_ - Callback function that must be executed when the required\r\n\t\t * data has been obtained. That data should be passed into the callback\r\n\t\t * as the only parameter\r\n\t\t * 3. _object_ - DataTables settings object for the table\r\n\t\t *\r\n\t\t * Note that this supersedes \u00A7fnServerData\u00A7 from DataTables 1.9-.\r\n\t\t *\r\n\t\t * @type string|object|function\r\n\t\t * @default null\r\n\t\t *\r\n\t\t * @dtopt Option\r\n\t\t * @name DataTable.defaults.ajax\r\n\t\t * @since 1.10.0\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Get JSON data from a file via Ajax.\r\n\t\t * // Note DataTables expects data in the form \u00A7{ data: [ ...data... ] }\u00A7 by default).\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022ajax\u0022: \u0022data.json\u0022\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Get JSON data from a file via Ajax, using \u00A7dataSrc\u00A7 to change\r\n\t\t * // \u00A7data\u00A7 to \u00A7tableData\u00A7 (i.e. \u00A7{ tableData: [ ...data... ] }\u00A7)\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022ajax\u0022: {\r\n\t\t * \u0022url\u0022: \u0022data.json\u0022,\r\n\t\t * \u0022dataSrc\u0022: \u0022tableData\u0022\r\n\t\t * }\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Get JSON data from a file via Ajax, using \u00A7dataSrc\u00A7 to read data\r\n\t\t * // from a plain array rather than an array in an object\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022ajax\u0022: {\r\n\t\t * \u0022url\u0022: \u0022data.json\u0022,\r\n\t\t * \u0022dataSrc\u0022: \u0022\u0022\r\n\t\t * }\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Manipulate the data returned from the server - add a link to data\r\n\t\t * // (note this can, should, be done using \u00A7render\u00A7 for the column - this\r\n\t\t * // is just a simple example of how the data can be manipulated).\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022ajax\u0022: {\r\n\t\t * \u0022url\u0022: \u0022data.json\u0022,\r\n\t\t * \u0022dataSrc\u0022: function ( json ) {\r\n\t\t * for ( var i=0, ien=json.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t * json[i][0] = \u0027\u003Ca href=\u0022/message/\u0027\u002Bjson[i][0]\u002B\u0027\u003EView message\u003C/a\u003E\u0027;\r\n\t\t * }\r\n\t\t * return json;\r\n\t\t * }\r\n\t\t * }\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Add data to the request\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022ajax\u0022: {\r\n\t\t * \u0022url\u0022: \u0022data.json\u0022,\r\n\t\t * \u0022data\u0022: function ( d ) {\r\n\t\t * return {\r\n\t\t * \u0022extra_search\u0022: $(\u0027#extra\u0027).val()\r\n\t\t * };\r\n\t\t * }\r\n\t\t * }\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Send request as POST\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022ajax\u0022: {\r\n\t\t * \u0022url\u0022: \u0022data.json\u0022,\r\n\t\t * \u0022type\u0022: \u0022POST\u0022\r\n\t\t * }\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Get the data from localStorage (could interface with a form for\r\n\t\t * // adding, editing and removing rows).\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022ajax\u0022: function (data, callback, settings) {\r\n\t\t * callback(\r\n\t\t * JSON.parse( localStorage.getItem(\u0027dataTablesData\u0027) )\r\n\t\t * );\r\n\t\t * }\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022ajax\u0022: null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This parameter allows you to readily specify the entries in the length drop\r\n\t\t * down menu that DataTables shows when pagination is enabled. It can be\r\n\t\t * either a 1D array of options which will be used for both the displayed\r\n\t\t * option and the value, or a 2D array which will use the array in the first\r\n\t\t * position as the value, and the array in the second position as the\r\n\t\t * displayed options (useful for language strings such as \u0027All\u0027).\r\n\t\t *\r\n\t\t * Note that the \u00A7pageLength\u00A7 property will be automatically set to the\r\n\t\t * first value given in this array, unless \u00A7pageLength\u00A7 is also provided.\r\n\t\t * @type array\r\n\t\t * @default [ 10, 25, 50, 100 ]\r\n\t\t *\r\n\t\t * @dtopt Option\r\n\t\t * @name DataTable.defaults.lengthMenu\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022lengthMenu\u0022: [[10, 25, 50, -1], [10, 25, 50, \u0022All\u0022]]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022aLengthMenu\u0022: [ 10, 25, 50, 100 ],\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * The \u00A7columns\u00A7 option in the initialisation parameter allows you to define\r\n\t\t * details about the way individual columns behave. For a full list of\r\n\t\t * column options that can be set, please see\r\n\t\t * {@link DataTable.defaults.column}. Note that if you use \u00A7columns\u00A7 to\r\n\t\t * define your columns, you must have an entry in the array for every single\r\n\t\t * column that you have in your table (these can be null if you don\u0027t which\r\n\t\t * to specify any options).\r\n\t\t * @member\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column\r\n\t\t */\r\n\t\t\u0022aoColumns\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Very similar to \u00A7columns\u00A7, \u00A7columnDefs\u00A7 allows you to target a specific\r\n\t\t * column, multiple columns, or all columns, using the \u00A7targets\u00A7 property of\r\n\t\t * each object in the array. This allows great flexibility when creating\r\n\t\t * tables, as the \u00A7columnDefs\u00A7 arrays can be of any length, targeting the\r\n\t\t * columns you specifically want. \u00A7columnDefs\u00A7 may use any of the column\r\n\t\t * options available: {@link DataTable.defaults.column}, but it _must_\r\n\t\t * have \u00A7targets\u00A7 defined in each object in the array. Values in the \u00A7targets\u00A7\r\n\t\t * array may be:\r\n\t\t * \u003Cul\u003E\r\n\t\t * \u003Cli\u003Ea string - class name will be matched on the TH for the column\u003C/li\u003E\r\n\t\t * \u003Cli\u003E0 or a positive integer - column index counting from the left\u003C/li\u003E\r\n\t\t * \u003Cli\u003Ea negative integer - column index counting from the right\u003C/li\u003E\r\n\t\t * \u003Cli\u003Ethe string \u0022_all\u0022 - all columns (i.e. assign a default)\u003C/li\u003E\r\n\t\t * \u003C/ul\u003E\r\n\t\t * @member\r\n\t\t *\r\n\t\t * @name DataTable.defaults.columnDefs\r\n\t\t */\r\n\t\t\u0022aoColumnDefs\u0022: null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Basically the same as \u00A7search\u00A7, this parameter defines the individual column\r\n\t\t * filtering state at initialisation time. The array must be of the same size\r\n\t\t * as the number of columns, and each element be an object with the parameters\r\n\t\t * \u00A7search\u00A7 and \u00A7escapeRegex\u00A7 (the latter is optional). \u0027null\u0027 is also\r\n\t\t * accepted and the default will be used.\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t *\r\n\t\t * @dtopt Option\r\n\t\t * @name DataTable.defaults.searchCols\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022searchCols\u0022: [\r\n\t\t * null,\r\n\t\t * { \u0022search\u0022: \u0022My filter\u0022 },\r\n\t\t * null,\r\n\t\t * { \u0022search\u0022: \u0022^[0-9]\u0022, \u0022escapeRegex\u0022: false }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } )\r\n\t\t */\r\n\t\t\u0022aoSearchCols\u0022: [],\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * An array of CSS classes that should be applied to displayed rows. This\r\n\t\t * array may be of any length, and DataTables will apply each class\r\n\t\t * sequentially, looping when required.\r\n\t\t * @type array\r\n\t\t * @default null \u003Ci\u003EWill take the values determined by the \u00A7oClasses.stripe*\u00A7\r\n\t\t * options\u003C/i\u003E\r\n\t\t *\r\n\t\t * @dtopt Option\r\n\t\t * @name DataTable.defaults.stripeClasses\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022stripeClasses\u0022: [ \u0027strip1\u0027, \u0027strip2\u0027, \u0027strip3\u0027 ]\r\n\t\t * } );\r\n\t\t * } )\r\n\t\t */\r\n\t\t\u0022asStripeClasses\u0022: null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or disable automatic column width calculation. This can be disabled\r\n\t\t * as an optimisation (it takes some time to calculate the widths) if the\r\n\t\t * tables widths are passed in using \u00A7columns\u00A7.\r\n\t\t * @type boolean\r\n\t\t * @default true\r\n\t\t *\r\n\t\t * @dtopt Features\r\n\t\t * @name DataTable.defaults.autoWidth\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function () {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022autoWidth\u0022: false\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022bAutoWidth\u0022: true,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Deferred rendering can provide DataTables with a huge speed boost when you\r\n\t\t * are using an Ajax or JS data source for the table. This option, when set to\r\n\t\t * true, will cause DataTables to defer the creation of the table elements for\r\n\t\t * each row until they are needed for a draw - saving a significant amount of\r\n\t\t * time.\r\n\t\t * @type boolean\r\n\t\t * @default false\r\n\t\t *\r\n\t\t * @dtopt Features\r\n\t\t * @name DataTable.defaults.deferRender\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022ajax\u0022: \u0022sources/arrays.txt\u0022,\r\n\t\t * \u0022deferRender\u0022: true\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022bDeferRender\u0022: false,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Replace a DataTable which matches the given selector and replace it with\r\n\t\t * one which has the properties of the new initialisation object passed. If no\r\n\t\t * table matches the selector, then the new DataTable will be constructed as\r\n\t\t * per normal.\r\n\t\t * @type boolean\r\n\t\t * @default false\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @name DataTable.defaults.destroy\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022srollY\u0022: \u0022200px\u0022,\r\n\t\t * \u0022paginate\u0022: false\r\n\t\t * } );\r\n\t\t *\r\n\t\t * // Some time later....\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022filter\u0022: false,\r\n\t\t * \u0022destroy\u0022: true\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022bDestroy\u0022: false,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or disable filtering of data. Filtering in DataTables is \u0022smart\u0022 in\r\n\t\t * that it allows the end user to input multiple words (space separated) and\r\n\t\t * will match a row containing those words, even if not in the order that was\r\n\t\t * specified (this allow matching across multiple columns). Note that if you\r\n\t\t * wish to use filtering in DataTables this must remain \u0027true\u0027 - to remove the\r\n\t\t * default filtering input box and retain filtering abilities, please use\r\n\t\t * {@link DataTable.defaults.dom}.\r\n\t\t * @type boolean\r\n\t\t * @default true\r\n\t\t *\r\n\t\t * @dtopt Features\r\n\t\t * @name DataTable.defaults.searching\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function () {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022searching\u0022: false\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022bFilter\u0022: true,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or disable the table information display. This shows information\r\n\t\t * about the data that is currently visible on the page, including information\r\n\t\t * about filtered data if that action is being performed.\r\n\t\t * @type boolean\r\n\t\t * @default true\r\n\t\t *\r\n\t\t * @dtopt Features\r\n\t\t * @name DataTable.defaults.info\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function () {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022info\u0022: false\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022bInfo\u0022: true,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Allows the end user to select the size of a formatted page from a select\r\n\t\t * menu (sizes are 10, 25, 50 and 100). Requires pagination (\u00A7paginate\u00A7).\r\n\t\t * @type boolean\r\n\t\t * @default true\r\n\t\t *\r\n\t\t * @dtopt Features\r\n\t\t * @name DataTable.defaults.lengthChange\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function () {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022lengthChange\u0022: false\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022bLengthChange\u0022: true,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or disable pagination.\r\n\t\t * @type boolean\r\n\t\t * @default true\r\n\t\t *\r\n\t\t * @dtopt Features\r\n\t\t * @name DataTable.defaults.paging\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function () {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022paging\u0022: false\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022bPaginate\u0022: true,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or disable the display of a \u0027processing\u0027 indicator when the table is\r\n\t\t * being processed (e.g. a sort). This is particularly useful for tables with\r\n\t\t * large amounts of data where it can take a noticeable amount of time to sort\r\n\t\t * the entries.\r\n\t\t * @type boolean\r\n\t\t * @default false\r\n\t\t *\r\n\t\t * @dtopt Features\r\n\t\t * @name DataTable.defaults.processing\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function () {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022processing\u0022: true\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022bProcessing\u0022: false,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Retrieve the DataTables object for the given selector. Note that if the\r\n\t\t * table has already been initialised, this parameter will cause DataTables\r\n\t\t * to simply return the object that has already been set up - it will not take\r\n\t\t * account of any changes you might have made to the initialisation object\r\n\t\t * passed to DataTables (setting this parameter to true is an acknowledgement\r\n\t\t * that you understand this). \u00A7destroy\u00A7 can be used to reinitialise a table if\r\n\t\t * you need.\r\n\t\t * @type boolean\r\n\t\t * @default false\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @name DataTable.defaults.retrieve\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * initTable();\r\n\t\t * tableActions();\r\n\t\t * } );\r\n\t\t *\r\n\t\t * function initTable ()\r\n\t\t * {\r\n\t\t * return $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022scrollY\u0022: \u0022200px\u0022,\r\n\t\t * \u0022paginate\u0022: false,\r\n\t\t * \u0022retrieve\u0022: true\r\n\t\t * } );\r\n\t\t * }\r\n\t\t *\r\n\t\t * function tableActions ()\r\n\t\t * {\r\n\t\t * var table = initTable();\r\n\t\t * // perform API operations with oTable\r\n\t\t * }\r\n\t\t */\r\n\t\t\u0022bRetrieve\u0022: false,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * When vertical (y) scrolling is enabled, DataTables will force the height of\r\n\t\t * the table\u0027s viewport to the given height at all times (useful for layout).\r\n\t\t * However, this can look odd when filtering data down to a small data set,\r\n\t\t * and the footer is left \u0022floating\u0022 further down. This parameter (when\r\n\t\t * enabled) will cause DataTables to collapse the table\u0027s viewport down when\r\n\t\t * the result set will fit within the given Y height.\r\n\t\t * @type boolean\r\n\t\t * @default false\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @name DataTable.defaults.scrollCollapse\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022scrollY\u0022: \u0022200\u0022,\r\n\t\t * \u0022scrollCollapse\u0022: true\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022bScrollCollapse\u0022: false,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Configure DataTables to use server-side processing. Note that the\r\n\t\t * \u00A7ajax\u00A7 parameter must also be given in order to give DataTables a\r\n\t\t * source to obtain the required data for each draw.\r\n\t\t * @type boolean\r\n\t\t * @default false\r\n\t\t *\r\n\t\t * @dtopt Features\r\n\t\t * @dtopt Server-side\r\n\t\t * @name DataTable.defaults.serverSide\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function () {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022serverSide\u0022: true,\r\n\t\t * \u0022ajax\u0022: \u0022xhr.php\u0022\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022bServerSide\u0022: false,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or disable sorting of columns. Sorting of individual columns can be\r\n\t\t * disabled by the \u00A7sortable\u00A7 option for each column.\r\n\t\t * @type boolean\r\n\t\t * @default true\r\n\t\t *\r\n\t\t * @dtopt Features\r\n\t\t * @name DataTable.defaults.ordering\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function () {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022ordering\u0022: false\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022bSort\u0022: true,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or display DataTables\u0027 ability to sort multiple columns at the\r\n\t\t * same time (activated by shift-click by the user).\r\n\t\t * @type boolean\r\n\t\t * @default true\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @name DataTable.defaults.orderMulti\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Disable multiple column sorting ability\r\n\t\t * $(document).ready( function () {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022orderMulti\u0022: false\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022bSortMulti\u0022: true,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Allows control over whether DataTables should use the top (true) unique\r\n\t\t * cell that is found for a single column, or the bottom (false - default).\r\n\t\t * This is useful when using complex headers.\r\n\t\t * @type boolean\r\n\t\t * @default false\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @name DataTable.defaults.orderCellsTop\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022orderCellsTop\u0022: true\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022bSortCellsTop\u0022: false,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or disable the addition of the classes \u00A7sorting\\_1\u00A7, \u00A7sorting\\_2\u00A7 and\r\n\t\t * \u00A7sorting\\_3\u00A7 to the columns which are currently being sorted on. This is\r\n\t\t * presented as a feature switch as it can increase processing time (while\r\n\t\t * classes are removed and added) so for large data sets you might want to\r\n\t\t * turn this off.\r\n\t\t * @type boolean\r\n\t\t * @default true\r\n\t\t *\r\n\t\t * @dtopt Features\r\n\t\t * @name DataTable.defaults.orderClasses\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function () {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022orderClasses\u0022: false\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022bSortClasses\u0022: true,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or disable state saving. When enabled HTML5 \u00A7localStorage\u00A7 will be\r\n\t\t * used to save table display information such as pagination information,\r\n\t\t * display length, filtering and sorting. As such when the end user reloads\r\n\t\t * the page the display display will match what thy had previously set up.\r\n\t\t *\r\n\t\t * Due to the use of \u00A7localStorage\u00A7 the default state saving is not supported\r\n\t\t * in IE6 or 7. If state saving is required in those browsers, use\r\n\t\t * \u00A7stateSaveCallback\u00A7 to provide a storage solution such as cookies.\r\n\t\t * @type boolean\r\n\t\t * @default false\r\n\t\t *\r\n\t\t * @dtopt Features\r\n\t\t * @name DataTable.defaults.stateSave\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function () {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022stateSave\u0022: true\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022bStateSave\u0022: false,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This function is called when a TR element is created (and all TD child\r\n\t\t * elements have been inserted), or registered if using a DOM source, allowing\r\n\t\t * manipulation of the TR element (adding classes etc).\r\n\t\t * @type function\r\n\t\t * @param {node} row \u0022TR\u0022 element for the current row\r\n\t\t * @param {array} data Raw data array for this row\r\n\t\t * @param {int} dataIndex The index of this row in the internal aoData array\r\n\t\t *\r\n\t\t * @dtopt Callbacks\r\n\t\t * @name DataTable.defaults.createdRow\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022createdRow\u0022: function( row, data, dataIndex ) {\r\n\t\t * // Bold the grade for all \u0027A\u0027 grade browsers\r\n\t\t * if ( data[4] == \u0022A\u0022 )\r\n\t\t * {\r\n\t\t * $(\u0027td:eq(4)\u0027, row).html( \u0027\u003Cb\u003EA\u003C/b\u003E\u0027 );\r\n\t\t * }\r\n\t\t * }\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022fnCreatedRow\u0022: null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This function is called on every \u0027draw\u0027 event, and allows you to\r\n\t\t * dynamically modify any aspect you want about the created DOM.\r\n\t\t * @type function\r\n\t\t * @param {object} settings DataTables settings object\r\n\t\t *\r\n\t\t * @dtopt Callbacks\r\n\t\t * @name DataTable.defaults.drawCallback\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022drawCallback\u0022: function( settings ) {\r\n\t\t * alert( \u0027DataTables has redrawn the table\u0027 );\r\n\t\t * }\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022fnDrawCallback\u0022: null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Identical to fnHeaderCallback() but for the table footer this function\r\n\t\t * allows you to modify the table footer on every \u0027draw\u0027 event.\r\n\t\t * @type function\r\n\t\t * @param {node} foot \u0022TR\u0022 element for the footer\r\n\t\t * @param {array} data Full table data (as derived from the original HTML)\r\n\t\t * @param {int} start Index for the current display starting point in the\r\n\t\t * display array\r\n\t\t * @param {int} end Index for the current display ending point in the\r\n\t\t * display array\r\n\t\t * @param {array int} display Index array to translate the visual position\r\n\t\t * to the full data array\r\n\t\t *\r\n\t\t * @dtopt Callbacks\r\n\t\t * @name DataTable.defaults.footerCallback\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022footerCallback\u0022: function( tfoot, data, start, end, display ) {\r\n\t\t * tfoot.getElementsByTagName(\u0027th\u0027)[0].innerHTML = \u0022Starting index is \u0022\u002Bstart;\r\n\t\t * }\r\n\t\t * } );\r\n\t\t * } )\r\n\t\t */\r\n\t\t\u0022fnFooterCallback\u0022: null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * When rendering large numbers in the information element for the table\r\n\t\t * (i.e. \u0022Showing 1 to 10 of 57 entries\u0022) DataTables will render large numbers\r\n\t\t * to have a comma separator for the \u0027thousands\u0027 units (e.g. 1 million is\r\n\t\t * rendered as \u00221,000,000\u0022) to help readability for the end user. This\r\n\t\t * function will override the default method DataTables uses.\r\n\t\t * @type function\r\n\t\t * @member\r\n\t\t * @param {int} toFormat number to be formatted\r\n\t\t * @returns {string} formatted string for DataTables to show the number\r\n\t\t *\r\n\t\t * @dtopt Callbacks\r\n\t\t * @name DataTable.defaults.formatNumber\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Format a number using a single quote for the separator (note that\r\n\t\t * // this can also be done with the language.thousands option)\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022formatNumber\u0022: function ( toFormat ) {\r\n\t\t * return toFormat.toString().replace(\r\n\t\t * /\\B(?=(\\d{3})\u002B(?!\\d))/g, \u0022\u0027\u0022\r\n\t\t * );\r\n\t\t * };\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022fnFormatNumber\u0022: function ( toFormat ) {\r\n\t\t\treturn toFormat.toString().replace(\r\n\t\t\t\t/\\B(?=(\\d{3})\u002B(?!\\d))/g,\r\n\t\t\t\tthis.oLanguage.sThousands\r\n\t\t\t);\r\n\t\t},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This function is called on every \u0027draw\u0027 event, and allows you to\r\n\t\t * dynamically modify the header row. This can be used to calculate and\r\n\t\t * display useful information about the table.\r\n\t\t * @type function\r\n\t\t * @param {node} head \u0022TR\u0022 element for the header\r\n\t\t * @param {array} data Full table data (as derived from the original HTML)\r\n\t\t * @param {int} start Index for the current display starting point in the\r\n\t\t * display array\r\n\t\t * @param {int} end Index for the current display ending point in the\r\n\t\t * display array\r\n\t\t * @param {array int} display Index array to translate the visual position\r\n\t\t * to the full data array\r\n\t\t *\r\n\t\t * @dtopt Callbacks\r\n\t\t * @name DataTable.defaults.headerCallback\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022fheaderCallback\u0022: function( head, data, start, end, display ) {\r\n\t\t * head.getElementsByTagName(\u0027th\u0027)[0].innerHTML = \u0022Displaying \u0022\u002B(end-start)\u002B\u0022 records\u0022;\r\n\t\t * }\r\n\t\t * } );\r\n\t\t * } )\r\n\t\t */\r\n\t\t\u0022fnHeaderCallback\u0022: null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * The information element can be used to convey information about the current\r\n\t\t * state of the table. Although the internationalisation options presented by\r\n\t\t * DataTables are quite capable of dealing with most customisations, there may\r\n\t\t * be times where you wish to customise the string further. This callback\r\n\t\t * allows you to do exactly that.\r\n\t\t * @type function\r\n\t\t * @param {object} oSettings DataTables settings object\r\n\t\t * @param {int} start Starting position in data for the draw\r\n\t\t * @param {int} end End position in data for the draw\r\n\t\t * @param {int} max Total number of rows in the table (regardless of\r\n\t\t * filtering)\r\n\t\t * @param {int} total Total number of rows in the data set, after filtering\r\n\t\t * @param {string} pre The string that DataTables has formatted using it\u0027s\r\n\t\t * own rules\r\n\t\t * @returns {string} The string to be displayed in the information element.\r\n\t\t *\r\n\t\t * @dtopt Callbacks\r\n\t\t * @name DataTable.defaults.infoCallback\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022infoCallback\u0022: function( settings, start, end, max, total, pre ) {\r\n\t\t * return start \u002B\u0022 to \u0022\u002B end;\r\n\t\t * }\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022fnInfoCallback\u0022: null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Called when the table has been initialised. Normally DataTables will\r\n\t\t * initialise sequentially and there will be no need for this function,\r\n\t\t * however, this does not hold true when using external language information\r\n\t\t * since that is obtained using an async XHR call.\r\n\t\t * @type function\r\n\t\t * @param {object} settings DataTables settings object\r\n\t\t * @param {object} json The JSON object request from the server - only\r\n\t\t * present if client-side Ajax sourced data is used\r\n\t\t *\r\n\t\t * @dtopt Callbacks\r\n\t\t * @name DataTable.defaults.initComplete\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022initComplete\u0022: function(settings, json) {\r\n\t\t * alert( \u0027DataTables has finished its initialisation.\u0027 );\r\n\t\t * }\r\n\t\t * } );\r\n\t\t * } )\r\n\t\t */\r\n\t\t\u0022fnInitComplete\u0022: null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Called at the very start of each table draw and can be used to cancel the\r\n\t\t * draw by returning false, any other return (including undefined) results in\r\n\t\t * the full draw occurring).\r\n\t\t * @type function\r\n\t\t * @param {object} settings DataTables settings object\r\n\t\t * @returns {boolean} False will cancel the draw, anything else (including no\r\n\t\t * return) will allow it to complete.\r\n\t\t *\r\n\t\t * @dtopt Callbacks\r\n\t\t * @name DataTable.defaults.preDrawCallback\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022preDrawCallback\u0022: function( settings ) {\r\n\t\t * if ( $(\u0027#test\u0027).val() == 1 ) {\r\n\t\t * return false;\r\n\t\t * }\r\n\t\t * }\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022fnPreDrawCallback\u0022: null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This function allows you to \u0027post process\u0027 each row after it have been\r\n\t\t * generated for each table draw, but before it is rendered on screen. This\r\n\t\t * function might be used for setting the row class name etc.\r\n\t\t * @type function\r\n\t\t * @param {node} row \u0022TR\u0022 element for the current row\r\n\t\t * @param {array} data Raw data array for this row\r\n\t\t * @param {int} displayIndex The display index for the current table draw\r\n\t\t * @param {int} displayIndexFull The index of the data in the full list of\r\n\t\t * rows (after filtering)\r\n\t\t *\r\n\t\t * @dtopt Callbacks\r\n\t\t * @name DataTable.defaults.rowCallback\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022rowCallback\u0022: function( row, data, displayIndex, displayIndexFull ) {\r\n\t\t * // Bold the grade for all \u0027A\u0027 grade browsers\r\n\t\t * if ( data[4] == \u0022A\u0022 ) {\r\n\t\t * $(\u0027td:eq(4)\u0027, row).html( \u0027\u003Cb\u003EA\u003C/b\u003E\u0027 );\r\n\t\t * }\r\n\t\t * }\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022fnRowCallback\u0022: null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * __Deprecated__ The functionality provided by this parameter has now been\r\n\t\t * superseded by that provided through \u00A7ajax\u00A7, which should be used instead.\r\n\t\t *\r\n\t\t * This parameter allows you to override the default function which obtains\r\n\t\t * the data from the server so something more suitable for your application.\r\n\t\t * For example you could use POST data, or pull information from a Gears or\r\n\t\t * AIR database.\r\n\t\t * @type function\r\n\t\t * @member\r\n\t\t * @param {string} source HTTP source to obtain the data from (\u00A7ajax\u00A7)\r\n\t\t * @param {array} data A key/value pair object containing the data to send\r\n\t\t * to the server\r\n\t\t * @param {function} callback to be called on completion of the data get\r\n\t\t * process that will draw the data on the page.\r\n\t\t * @param {object} settings DataTables settings object\r\n\t\t *\r\n\t\t * @dtopt Callbacks\r\n\t\t * @dtopt Server-side\r\n\t\t * @name DataTable.defaults.serverData\r\n\t\t *\r\n\t\t * @deprecated 1.10. Please use \u00A7ajax\u00A7 for this functionality now.\r\n\t\t */\r\n\t\t\u0022fnServerData\u0022: null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * __Deprecated__ The functionality provided by this parameter has now been\r\n\t\t * superseded by that provided through \u00A7ajax\u00A7, which should be used instead.\r\n\t\t *\r\n\t\t * It is often useful to send extra data to the server when making an Ajax\r\n\t\t * request - for example custom filtering information, and this callback\r\n\t\t * function makes it trivial to send extra information to the server. The\r\n\t\t * passed in parameter is the data set that has been constructed by\r\n\t\t * DataTables, and you can add to this or modify it as you require.\r\n\t\t * @type function\r\n\t\t * @param {array} data Data array (array of objects which are name/value\r\n\t\t * pairs) that has been constructed by DataTables and will be sent to the\r\n\t\t * server. In the case of Ajax sourced data with server-side processing\r\n\t\t * this will be an empty array, for server-side processing there will be a\r\n\t\t * significant number of parameters!\r\n\t\t * @returns {undefined} Ensure that you modify the data array passed in,\r\n\t\t * as this is passed by reference.\r\n\t\t *\r\n\t\t * @dtopt Callbacks\r\n\t\t * @dtopt Server-side\r\n\t\t * @name DataTable.defaults.serverParams\r\n\t\t *\r\n\t\t * @deprecated 1.10. Please use \u00A7ajax\u00A7 for this functionality now.\r\n\t\t */\r\n\t\t\u0022fnServerParams\u0022: null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Load the table state. With this function you can define from where, and how, the\r\n\t\t * state of a table is loaded. By default DataTables will load from \u00A7localStorage\u00A7\r\n\t\t * but you might wish to use a server-side database or cookies.\r\n\t\t * @type function\r\n\t\t * @member\r\n\t\t * @param {object} settings DataTables settings object\r\n\t\t * @param {object} callback Callback that can be executed when done. It\r\n\t\t * should be passed the loaded state object.\r\n\t\t * @return {object} The DataTables state object to be loaded\r\n\t\t *\r\n\t\t * @dtopt Callbacks\r\n\t\t * @name DataTable.defaults.stateLoadCallback\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022stateSave\u0022: true,\r\n\t\t * \u0022stateLoadCallback\u0022: function (settings, callback) {\r\n\t\t * $.ajax( {\r\n\t\t * \u0022url\u0022: \u0022/state_load\u0022,\r\n\t\t * \u0022dataType\u0022: \u0022json\u0022,\r\n\t\t * \u0022success\u0022: function (json) {\r\n\t\t * callback( json );\r\n\t\t * }\r\n\t\t * } );\r\n\t\t * }\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022fnStateLoadCallback\u0022: function ( settings ) {\r\n\t\t\ttry {\r\n\t\t\t\treturn JSON.parse(\r\n\t\t\t\t\t(settings.iStateDuration === -1 ? sessionStorage : localStorage).getItem(\r\n\t\t\t\t\t\t\u0027DataTables_\u0027\u002Bsettings.sInstance\u002B\u0027_\u0027\u002Blocation.pathname\r\n\t\t\t\t\t)\r\n\t\t\t\t);\r\n\t\t\t} catch (e) {\r\n\t\t\t\treturn {};\r\n\t\t\t}\r\n\t\t},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Callback which allows modification of the saved state prior to loading that state.\r\n\t\t * This callback is called when the table is loading state from the stored data, but\r\n\t\t * prior to the settings object being modified by the saved state. Note that for\r\n\t\t * plug-in authors, you should use the \u00A7stateLoadParams\u00A7 event to load parameters for\r\n\t\t * a plug-in.\r\n\t\t * @type function\r\n\t\t * @param {object} settings DataTables settings object\r\n\t\t * @param {object} data The state object that is to be loaded\r\n\t\t *\r\n\t\t * @dtopt Callbacks\r\n\t\t * @name DataTable.defaults.stateLoadParams\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Remove a saved filter, so filtering is never loaded\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022stateSave\u0022: true,\r\n\t\t * \u0022stateLoadParams\u0022: function (settings, data) {\r\n\t\t * data.oSearch.sSearch = \u0022\u0022;\r\n\t\t * }\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Disallow state loading by returning false\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022stateSave\u0022: true,\r\n\t\t * \u0022stateLoadParams\u0022: function (settings, data) {\r\n\t\t * return false;\r\n\t\t * }\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022fnStateLoadParams\u0022: null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Callback that is called when the state has been loaded from the state saving method\r\n\t\t * and the DataTables settings object has been modified as a result of the loaded state.\r\n\t\t * @type function\r\n\t\t * @param {object} settings DataTables settings object\r\n\t\t * @param {object} data The state object that was loaded\r\n\t\t *\r\n\t\t * @dtopt Callbacks\r\n\t\t * @name DataTable.defaults.stateLoaded\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Show an alert with the filtering value that was saved\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022stateSave\u0022: true,\r\n\t\t * \u0022stateLoaded\u0022: function (settings, data) {\r\n\t\t * alert( \u0027Saved filter was: \u0027\u002Bdata.oSearch.sSearch );\r\n\t\t * }\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022fnStateLoaded\u0022: null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Save the table state. This function allows you to define where and how the state\r\n\t\t * information for the table is stored By default DataTables will use \u00A7localStorage\u00A7\r\n\t\t * but you might wish to use a server-side database or cookies.\r\n\t\t * @type function\r\n\t\t * @member\r\n\t\t * @param {object} settings DataTables settings object\r\n\t\t * @param {object} data The state object to be saved\r\n\t\t *\r\n\t\t * @dtopt Callbacks\r\n\t\t * @name DataTable.defaults.stateSaveCallback\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022stateSave\u0022: true,\r\n\t\t * \u0022stateSaveCallback\u0022: function (settings, data) {\r\n\t\t * // Send an Ajax request to the server with the state object\r\n\t\t * $.ajax( {\r\n\t\t * \u0022url\u0022: \u0022/state_save\u0022,\r\n\t\t * \u0022data\u0022: data,\r\n\t\t * \u0022dataType\u0022: \u0022json\u0022,\r\n\t\t * \u0022method\u0022: \u0022POST\u0022\r\n\t\t * \u0022success\u0022: function () {}\r\n\t\t * } );\r\n\t\t * }\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022fnStateSaveCallback\u0022: function ( settings, data ) {\r\n\t\t\ttry {\r\n\t\t\t\t(settings.iStateDuration === -1 ? sessionStorage : localStorage).setItem(\r\n\t\t\t\t\t\u0027DataTables_\u0027\u002Bsettings.sInstance\u002B\u0027_\u0027\u002Blocation.pathname,\r\n\t\t\t\t\tJSON.stringify( data )\r\n\t\t\t\t);\r\n\t\t\t} catch (e) {}\r\n\t\t},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Callback which allows modification of the state to be saved. Called when the table\r\n\t\t * has changed state a new state save is required. This method allows modification of\r\n\t\t * the state saving object prior to actually doing the save, including addition or\r\n\t\t * other state properties or modification. Note that for plug-in authors, you should\r\n\t\t * use the \u00A7stateSaveParams\u00A7 event to save parameters for a plug-in.\r\n\t\t * @type function\r\n\t\t * @param {object} settings DataTables settings object\r\n\t\t * @param {object} data The state object to be saved\r\n\t\t *\r\n\t\t * @dtopt Callbacks\r\n\t\t * @name DataTable.defaults.stateSaveParams\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Remove a saved filter, so filtering is never saved\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022stateSave\u0022: true,\r\n\t\t * \u0022stateSaveParams\u0022: function (settings, data) {\r\n\t\t * data.oSearch.sSearch = \u0022\u0022;\r\n\t\t * }\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022fnStateSaveParams\u0022: null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Duration for which the saved state information is considered valid. After this period\r\n\t\t * has elapsed the state will be returned to the default.\r\n\t\t * Value is given in seconds.\r\n\t\t * @type int\r\n\t\t * @default 7200 \u003Ci\u003E(2 hours)\u003C/i\u003E\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @name DataTable.defaults.stateDuration\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022stateDuration\u0022: 60*60*24; // 1 day\r\n\t\t * } );\r\n\t\t * } )\r\n\t\t */\r\n\t\t\u0022iStateDuration\u0022: 7200,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * When enabled DataTables will not make a request to the server for the first\r\n\t\t * page draw - rather it will use the data already on the page (no sorting etc\r\n\t\t * will be applied to it), thus saving on an XHR at load time. \u00A7deferLoading\u00A7\r\n\t\t * is used to indicate that deferred loading is required, but it is also used\r\n\t\t * to tell DataTables how many records there are in the full table (allowing\r\n\t\t * the information element and pagination to be displayed correctly). In the case\r\n\t\t * where a filtering is applied to the table on initial load, this can be\r\n\t\t * indicated by giving the parameter as an array, where the first element is\r\n\t\t * the number of records available after filtering and the second element is the\r\n\t\t * number of records without filtering (allowing the table information element\r\n\t\t * to be shown correctly).\r\n\t\t * @type int | array\r\n\t\t * @default null\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @name DataTable.defaults.deferLoading\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // 57 records available in the table, no filtering applied\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022serverSide\u0022: true,\r\n\t\t * \u0022ajax\u0022: \u0022scripts/server_processing.php\u0022,\r\n\t\t * \u0022deferLoading\u0022: 57\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // 57 records after filtering, 100 without filtering (an initial filter applied)\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022serverSide\u0022: true,\r\n\t\t * \u0022ajax\u0022: \u0022scripts/server_processing.php\u0022,\r\n\t\t * \u0022deferLoading\u0022: [ 57, 100 ],\r\n\t\t * \u0022search\u0022: {\r\n\t\t * \u0022search\u0022: \u0022my_filter\u0022\r\n\t\t * }\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022iDeferLoading\u0022: null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Number of rows to display on a single page when using pagination. If\r\n\t\t * feature enabled (\u00A7lengthChange\u00A7) then the end user will be able to override\r\n\t\t * this to a custom setting using a pop-up menu.\r\n\t\t * @type int\r\n\t\t * @default 10\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @name DataTable.defaults.pageLength\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022pageLength\u0022: 50\r\n\t\t * } );\r\n\t\t * } )\r\n\t\t */\r\n\t\t\u0022iDisplayLength\u0022: 10,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Define the starting point for data display when using DataTables with\r\n\t\t * pagination. Note that this parameter is the number of records, rather than\r\n\t\t * the page number, so if you have 10 records per page and want to start on\r\n\t\t * the third page, it should be \u002220\u0022.\r\n\t\t * @type int\r\n\t\t * @default 0\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @name DataTable.defaults.displayStart\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022displayStart\u0022: 20\r\n\t\t * } );\r\n\t\t * } )\r\n\t\t */\r\n\t\t\u0022iDisplayStart\u0022: 0,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * By default DataTables allows keyboard navigation of the table (sorting, paging,\r\n\t\t * and filtering) by adding a \u00A7tabindex\u00A7 attribute to the required elements. This\r\n\t\t * allows you to tab through the controls and press the enter key to activate them.\r\n\t\t * The tabindex is default 0, meaning that the tab follows the flow of the document.\r\n\t\t * You can overrule this using this parameter if you wish. Use a value of -1 to\r\n\t\t * disable built-in keyboard navigation.\r\n\t\t * @type int\r\n\t\t * @default 0\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @name DataTable.defaults.tabIndex\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022tabIndex\u0022: 1\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022iTabIndex\u0022: 0,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Classes that DataTables assigns to the various components and features\r\n\t\t * that it adds to the HTML table. This allows classes to be configured\r\n\t\t * during initialisation in addition to through the static\r\n\t\t * {@link DataTable.ext.oStdClasses} object).\r\n\t\t * @namespace\r\n\t\t * @name DataTable.defaults.classes\r\n\t\t */\r\n\t\t\u0022oClasses\u0022: {},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * All strings that DataTables uses in the user interface that it creates\r\n\t\t * are defined in this object, allowing you to modified them individually or\r\n\t\t * completely replace them all as required.\r\n\t\t * @namespace\r\n\t\t * @name DataTable.defaults.language\r\n\t\t */\r\n\t\t\u0022oLanguage\u0022: {\r\n\t\t\t/**\r\n\t\t\t * Strings that are used for WAI-ARIA labels and controls only (these are not\r\n\t\t\t * actually visible on the page, but will be read by screenreaders, and thus\r\n\t\t\t * must be internationalised as well).\r\n\t\t\t * @namespace\r\n\t\t\t * @name DataTable.defaults.language.aria\r\n\t\t\t */\r\n\t\t\t\u0022oAria\u0022: {\r\n\t\t\t\t/**\r\n\t\t\t\t * ARIA label that is added to the table headers when the column may be\r\n\t\t\t\t * sorted ascending by activing the column (click or return when focused).\r\n\t\t\t\t * Note that the column header is prefixed to this string.\r\n\t\t\t\t * @type string\r\n\t\t\t\t * @default : activate to sort column ascending\r\n\t\t\t\t *\r\n\t\t\t\t * @dtopt Language\r\n\t\t\t\t * @name DataTable.defaults.language.aria.sortAscending\r\n\t\t\t\t *\r\n\t\t\t\t * @example\r\n\t\t\t\t * $(document).ready( function() {\r\n\t\t\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t\t\t * \u0022language\u0022: {\r\n\t\t\t\t * \u0022aria\u0022: {\r\n\t\t\t\t * \u0022sortAscending\u0022: \u0022 - click/return to sort ascending\u0022\r\n\t\t\t\t * }\r\n\t\t\t\t * }\r\n\t\t\t\t * } );\r\n\t\t\t\t * } );\r\n\t\t\t\t */\r\n\t\t\t\t\u0022sSortAscending\u0022: \u0022: activate to sort column ascending\u0022,\r\n\t\r\n\t\t\t\t/**\r\n\t\t\t\t * ARIA label that is added to the table headers when the column may be\r\n\t\t\t\t * sorted descending by activing the column (click or return when focused).\r\n\t\t\t\t * Note that the column header is prefixed to this string.\r\n\t\t\t\t * @type string\r\n\t\t\t\t * @default : activate to sort column ascending\r\n\t\t\t\t *\r\n\t\t\t\t * @dtopt Language\r\n\t\t\t\t * @name DataTable.defaults.language.aria.sortDescending\r\n\t\t\t\t *\r\n\t\t\t\t * @example\r\n\t\t\t\t * $(document).ready( function() {\r\n\t\t\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t\t\t * \u0022language\u0022: {\r\n\t\t\t\t * \u0022aria\u0022: {\r\n\t\t\t\t * \u0022sortDescending\u0022: \u0022 - click/return to sort descending\u0022\r\n\t\t\t\t * }\r\n\t\t\t\t * }\r\n\t\t\t\t * } );\r\n\t\t\t\t * } );\r\n\t\t\t\t */\r\n\t\t\t\t\u0022sSortDescending\u0022: \u0022: activate to sort column descending\u0022\r\n\t\t\t},\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Pagination string used by DataTables for the built-in pagination\r\n\t\t\t * control types.\r\n\t\t\t * @namespace\r\n\t\t\t * @name DataTable.defaults.language.paginate\r\n\t\t\t */\r\n\t\t\t\u0022oPaginate\u0022: {\r\n\t\t\t\t/**\r\n\t\t\t\t * Text to use when using the \u0027full_numbers\u0027 type of pagination for the\r\n\t\t\t\t * button to take the user to the first page.\r\n\t\t\t\t * @type string\r\n\t\t\t\t * @default First\r\n\t\t\t\t *\r\n\t\t\t\t * @dtopt Language\r\n\t\t\t\t * @name DataTable.defaults.language.paginate.first\r\n\t\t\t\t *\r\n\t\t\t\t * @example\r\n\t\t\t\t * $(document).ready( function() {\r\n\t\t\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t\t\t * \u0022language\u0022: {\r\n\t\t\t\t * \u0022paginate\u0022: {\r\n\t\t\t\t * \u0022first\u0022: \u0022First page\u0022\r\n\t\t\t\t * }\r\n\t\t\t\t * }\r\n\t\t\t\t * } );\r\n\t\t\t\t * } );\r\n\t\t\t\t */\r\n\t\t\t\t\u0022sFirst\u0022: \u0022First\u0022,\r\n\t\r\n\t\r\n\t\t\t\t/**\r\n\t\t\t\t * Text to use when using the \u0027full_numbers\u0027 type of pagination for the\r\n\t\t\t\t * button to take the user to the last page.\r\n\t\t\t\t * @type string\r\n\t\t\t\t * @default Last\r\n\t\t\t\t *\r\n\t\t\t\t * @dtopt Language\r\n\t\t\t\t * @name DataTable.defaults.language.paginate.last\r\n\t\t\t\t *\r\n\t\t\t\t * @example\r\n\t\t\t\t * $(document).ready( function() {\r\n\t\t\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t\t\t * \u0022language\u0022: {\r\n\t\t\t\t * \u0022paginate\u0022: {\r\n\t\t\t\t * \u0022last\u0022: \u0022Last page\u0022\r\n\t\t\t\t * }\r\n\t\t\t\t * }\r\n\t\t\t\t * } );\r\n\t\t\t\t * } );\r\n\t\t\t\t */\r\n\t\t\t\t\u0022sLast\u0022: \u0022Last\u0022,\r\n\t\r\n\t\r\n\t\t\t\t/**\r\n\t\t\t\t * Text to use for the \u0027next\u0027 pagination button (to take the user to the\r\n\t\t\t\t * next page).\r\n\t\t\t\t * @type string\r\n\t\t\t\t * @default Next\r\n\t\t\t\t *\r\n\t\t\t\t * @dtopt Language\r\n\t\t\t\t * @name DataTable.defaults.language.paginate.next\r\n\t\t\t\t *\r\n\t\t\t\t * @example\r\n\t\t\t\t * $(document).ready( function() {\r\n\t\t\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t\t\t * \u0022language\u0022: {\r\n\t\t\t\t * \u0022paginate\u0022: {\r\n\t\t\t\t * \u0022next\u0022: \u0022Next page\u0022\r\n\t\t\t\t * }\r\n\t\t\t\t * }\r\n\t\t\t\t * } );\r\n\t\t\t\t * } );\r\n\t\t\t\t */\r\n\t\t\t\t\u0022sNext\u0022: \u0022Next\u0022,\r\n\t\r\n\t\r\n\t\t\t\t/**\r\n\t\t\t\t * Text to use for the \u0027previous\u0027 pagination button (to take the user to\r\n\t\t\t\t * the previous page).\r\n\t\t\t\t * @type string\r\n\t\t\t\t * @default Previous\r\n\t\t\t\t *\r\n\t\t\t\t * @dtopt Language\r\n\t\t\t\t * @name DataTable.defaults.language.paginate.previous\r\n\t\t\t\t *\r\n\t\t\t\t * @example\r\n\t\t\t\t * $(document).ready( function() {\r\n\t\t\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t\t\t * \u0022language\u0022: {\r\n\t\t\t\t * \u0022paginate\u0022: {\r\n\t\t\t\t * \u0022previous\u0022: \u0022Previous page\u0022\r\n\t\t\t\t * }\r\n\t\t\t\t * }\r\n\t\t\t\t * } );\r\n\t\t\t\t * } );\r\n\t\t\t\t */\r\n\t\t\t\t\u0022sPrevious\u0022: \u0022Previous\u0022\r\n\t\t\t},\r\n\t\r\n\t\t\t/**\r\n\t\t\t * This string is shown in preference to \u00A7zeroRecords\u00A7 when the table is\r\n\t\t\t * empty of data (regardless of filtering). Note that this is an optional\r\n\t\t\t * parameter - if it is not given, the value of \u00A7zeroRecords\u00A7 will be used\r\n\t\t\t * instead (either the default or given value).\r\n\t\t\t * @type string\r\n\t\t\t * @default No data available in table\r\n\t\t\t *\r\n\t\t\t * @dtopt Language\r\n\t\t\t * @name DataTable.defaults.language.emptyTable\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * $(document).ready( function() {\r\n\t\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t\t * \u0022language\u0022: {\r\n\t\t\t * \u0022emptyTable\u0022: \u0022No data available in table\u0022\r\n\t\t\t * }\r\n\t\t\t * } );\r\n\t\t\t * } );\r\n\t\t\t */\r\n\t\t\t\u0022sEmptyTable\u0022: \u0022No data available in table\u0022,\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * This string gives information to the end user about the information\r\n\t\t\t * that is current on display on the page. The following tokens can be\r\n\t\t\t * used in the string and will be dynamically replaced as the table\r\n\t\t\t * display updates. This tokens can be placed anywhere in the string, or\r\n\t\t\t * removed as needed by the language requires:\r\n\t\t\t *\r\n\t\t\t * * \u00A7\\_START\\_\u00A7 - Display index of the first record on the current page\r\n\t\t\t * * \u00A7\\_END\\_\u00A7 - Display index of the last record on the current page\r\n\t\t\t * * \u00A7\\_TOTAL\\_\u00A7 - Number of records in the table after filtering\r\n\t\t\t * * \u00A7\\_MAX\\_\u00A7 - Number of records in the table without filtering\r\n\t\t\t * * \u00A7\\_PAGE\\_\u00A7 - Current page number\r\n\t\t\t * * \u00A7\\_PAGES\\_\u00A7 - Total number of pages of data in the table\r\n\t\t\t *\r\n\t\t\t * @type string\r\n\t\t\t * @default Showing _START_ to _END_ of _TOTAL_ entries\r\n\t\t\t *\r\n\t\t\t * @dtopt Language\r\n\t\t\t * @name DataTable.defaults.language.info\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * $(document).ready( function() {\r\n\t\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t\t * \u0022language\u0022: {\r\n\t\t\t * \u0022info\u0022: \u0022Showing page _PAGE_ of _PAGES_\u0022\r\n\t\t\t * }\r\n\t\t\t * } );\r\n\t\t\t * } );\r\n\t\t\t */\r\n\t\t\t\u0022sInfo\u0022: \u0022Showing _START_ to _END_ of _TOTAL_ entries\u0022,\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Display information string for when the table is empty. Typically the\r\n\t\t\t * format of this string should match \u00A7info\u00A7.\r\n\t\t\t * @type string\r\n\t\t\t * @default Showing 0 to 0 of 0 entries\r\n\t\t\t *\r\n\t\t\t * @dtopt Language\r\n\t\t\t * @name DataTable.defaults.language.infoEmpty\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * $(document).ready( function() {\r\n\t\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t\t * \u0022language\u0022: {\r\n\t\t\t * \u0022infoEmpty\u0022: \u0022No entries to show\u0022\r\n\t\t\t * }\r\n\t\t\t * } );\r\n\t\t\t * } );\r\n\t\t\t */\r\n\t\t\t\u0022sInfoEmpty\u0022: \u0022Showing 0 to 0 of 0 entries\u0022,\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * When a user filters the information in a table, this string is appended\r\n\t\t\t * to the information (\u00A7info\u00A7) to give an idea of how strong the filtering\r\n\t\t\t * is. The variable _MAX_ is dynamically updated.\r\n\t\t\t * @type string\r\n\t\t\t * @default (filtered from _MAX_ total entries)\r\n\t\t\t *\r\n\t\t\t * @dtopt Language\r\n\t\t\t * @name DataTable.defaults.language.infoFiltered\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * $(document).ready( function() {\r\n\t\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t\t * \u0022language\u0022: {\r\n\t\t\t * \u0022infoFiltered\u0022: \u0022 - filtering from _MAX_ records\u0022\r\n\t\t\t * }\r\n\t\t\t * } );\r\n\t\t\t * } );\r\n\t\t\t */\r\n\t\t\t\u0022sInfoFiltered\u0022: \u0022(filtered from _MAX_ total entries)\u0022,\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * If can be useful to append extra information to the info string at times,\r\n\t\t\t * and this variable does exactly that. This information will be appended to\r\n\t\t\t * the \u00A7info\u00A7 (\u00A7infoEmpty\u00A7 and \u00A7infoFiltered\u00A7 in whatever combination they are\r\n\t\t\t * being used) at all times.\r\n\t\t\t * @type string\r\n\t\t\t * @default \u003Ci\u003EEmpty string\u003C/i\u003E\r\n\t\t\t *\r\n\t\t\t * @dtopt Language\r\n\t\t\t * @name DataTable.defaults.language.infoPostFix\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * $(document).ready( function() {\r\n\t\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t\t * \u0022language\u0022: {\r\n\t\t\t * \u0022infoPostFix\u0022: \u0022All records shown are derived from real information.\u0022\r\n\t\t\t * }\r\n\t\t\t * } );\r\n\t\t\t * } );\r\n\t\t\t */\r\n\t\t\t\u0022sInfoPostFix\u0022: \u0022\u0022,\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * This decimal place operator is a little different from the other\r\n\t\t\t * language options since DataTables doesn\u0027t output floating point\r\n\t\t\t * numbers, so it won\u0027t ever use this for display of a number. Rather,\r\n\t\t\t * what this parameter does is modify the sort methods of the table so\r\n\t\t\t * that numbers which are in a format which has a character other than\r\n\t\t\t * a period (\u00A7.\u00A7) as a decimal place will be sorted numerically.\r\n\t\t\t *\r\n\t\t\t * Note that numbers with different decimal places cannot be shown in\r\n\t\t\t * the same table and still be sortable, the table must be consistent.\r\n\t\t\t * However, multiple different tables on the page can use different\r\n\t\t\t * decimal place characters.\r\n\t\t\t * @type string\r\n\t\t\t * @default \r\n\t\t\t *\r\n\t\t\t * @dtopt Language\r\n\t\t\t * @name DataTable.defaults.language.decimal\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * $(document).ready( function() {\r\n\t\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t\t * \u0022language\u0022: {\r\n\t\t\t * \u0022decimal\u0022: \u0022,\u0022\r\n\t\t\t * \u0022thousands\u0022: \u0022.\u0022\r\n\t\t\t * }\r\n\t\t\t * } );\r\n\t\t\t * } );\r\n\t\t\t */\r\n\t\t\t\u0022sDecimal\u0022: \u0022\u0022,\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * DataTables has a build in number formatter (\u00A7formatNumber\u00A7) which is\r\n\t\t\t * used to format large numbers that are used in the table information.\r\n\t\t\t * By default a comma is used, but this can be trivially changed to any\r\n\t\t\t * character you wish with this parameter.\r\n\t\t\t * @type string\r\n\t\t\t * @default ,\r\n\t\t\t *\r\n\t\t\t * @dtopt Language\r\n\t\t\t * @name DataTable.defaults.language.thousands\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * $(document).ready( function() {\r\n\t\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t\t * \u0022language\u0022: {\r\n\t\t\t * \u0022thousands\u0022: \u0022\u0027\u0022\r\n\t\t\t * }\r\n\t\t\t * } );\r\n\t\t\t * } );\r\n\t\t\t */\r\n\t\t\t\u0022sThousands\u0022: \u0022,\u0022,\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Detail the action that will be taken when the drop down menu for the\r\n\t\t\t * pagination length option is changed. The \u0027_MENU_\u0027 variable is replaced\r\n\t\t\t * with a default select list of 10, 25, 50 and 100, and can be replaced\r\n\t\t\t * with a custom select box if required.\r\n\t\t\t * @type string\r\n\t\t\t * @default Show _MENU_ entries\r\n\t\t\t *\r\n\t\t\t * @dtopt Language\r\n\t\t\t * @name DataTable.defaults.language.lengthMenu\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * // Language change only\r\n\t\t\t * $(document).ready( function() {\r\n\t\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t\t * \u0022language\u0022: {\r\n\t\t\t * \u0022lengthMenu\u0022: \u0022Display _MENU_ records\u0022\r\n\t\t\t * }\r\n\t\t\t * } );\r\n\t\t\t * } );\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * // Language and options change\r\n\t\t\t * $(document).ready( function() {\r\n\t\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t\t * \u0022language\u0022: {\r\n\t\t\t * \u0022lengthMenu\u0022: \u0027Display \u003Cselect\u003E\u0027\u002B\r\n\t\t\t * \u0027\u003Coption value=\u002210\u0022\u003E10\u003C/option\u003E\u0027\u002B\r\n\t\t\t * \u0027\u003Coption value=\u002220\u0022\u003E20\u003C/option\u003E\u0027\u002B\r\n\t\t\t * \u0027\u003Coption value=\u002230\u0022\u003E30\u003C/option\u003E\u0027\u002B\r\n\t\t\t * \u0027\u003Coption value=\u002240\u0022\u003E40\u003C/option\u003E\u0027\u002B\r\n\t\t\t * \u0027\u003Coption value=\u002250\u0022\u003E50\u003C/option\u003E\u0027\u002B\r\n\t\t\t * \u0027\u003Coption value=\u0022-1\u0022\u003EAll\u003C/option\u003E\u0027\u002B\r\n\t\t\t * \u0027\u003C/select\u003E records\u0027\r\n\t\t\t * }\r\n\t\t\t * } );\r\n\t\t\t * } );\r\n\t\t\t */\r\n\t\t\t\u0022sLengthMenu\u0022: \u0022Show _MENU_ entries\u0022,\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * When using Ajax sourced data and during the first draw when DataTables is\r\n\t\t\t * gathering the data, this message is shown in an empty row in the table to\r\n\t\t\t * indicate to the end user the the data is being loaded. Note that this\r\n\t\t\t * parameter is not used when loading data by server-side processing, just\r\n\t\t\t * Ajax sourced data with client-side processing.\r\n\t\t\t * @type string\r\n\t\t\t * @default Loading...\r\n\t\t\t *\r\n\t\t\t * @dtopt Language\r\n\t\t\t * @name DataTable.defaults.language.loadingRecords\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * $(document).ready( function() {\r\n\t\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t\t * \u0022language\u0022: {\r\n\t\t\t * \u0022loadingRecords\u0022: \u0022Please wait - loading...\u0022\r\n\t\t\t * }\r\n\t\t\t * } );\r\n\t\t\t * } );\r\n\t\t\t */\r\n\t\t\t\u0022sLoadingRecords\u0022: \u0022Loading...\u0022,\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Text which is displayed when the table is processing a user action\r\n\t\t\t * (usually a sort command or similar).\r\n\t\t\t * @type string\r\n\t\t\t * @default Processing...\r\n\t\t\t *\r\n\t\t\t * @dtopt Language\r\n\t\t\t * @name DataTable.defaults.language.processing\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * $(document).ready( function() {\r\n\t\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t\t * \u0022language\u0022: {\r\n\t\t\t * \u0022processing\u0022: \u0022DataTables is currently busy\u0022\r\n\t\t\t * }\r\n\t\t\t * } );\r\n\t\t\t * } );\r\n\t\t\t */\r\n\t\t\t\u0022sProcessing\u0022: \u0022Processing...\u0022,\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Details the actions that will be taken when the user types into the\r\n\t\t\t * filtering input text box. The variable \u0022_INPUT_\u0022, if used in the string,\r\n\t\t\t * is replaced with the HTML text box for the filtering input allowing\r\n\t\t\t * control over where it appears in the string. If \u0022_INPUT_\u0022 is not given\r\n\t\t\t * then the input box is appended to the string automatically.\r\n\t\t\t * @type string\r\n\t\t\t * @default Search:\r\n\t\t\t *\r\n\t\t\t * @dtopt Language\r\n\t\t\t * @name DataTable.defaults.language.search\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * // Input text box will be appended at the end automatically\r\n\t\t\t * $(document).ready( function() {\r\n\t\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t\t * \u0022language\u0022: {\r\n\t\t\t * \u0022search\u0022: \u0022Filter records:\u0022\r\n\t\t\t * }\r\n\t\t\t * } );\r\n\t\t\t * } );\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * // Specify where the filter should appear\r\n\t\t\t * $(document).ready( function() {\r\n\t\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t\t * \u0022language\u0022: {\r\n\t\t\t * \u0022search\u0022: \u0022Apply filter _INPUT_ to table\u0022\r\n\t\t\t * }\r\n\t\t\t * } );\r\n\t\t\t * } );\r\n\t\t\t */\r\n\t\t\t\u0022sSearch\u0022: \u0022Search:\u0022,\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Assign a \u00A7placeholder\u00A7 attribute to the search \u00A7input\u00A7 element\r\n\t\t\t * @type string\r\n\t\t\t * @default \r\n\t\t\t *\r\n\t\t\t * @dtopt Language\r\n\t\t\t * @name DataTable.defaults.language.searchPlaceholder\r\n\t\t\t */\r\n\t\t\t\u0022sSearchPlaceholder\u0022: \u0022\u0022,\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * All of the language information can be stored in a file on the\r\n\t\t\t * server-side, which DataTables will look up if this parameter is passed.\r\n\t\t\t * It must store the URL of the language file, which is in a JSON format,\r\n\t\t\t * and the object has the same properties as the oLanguage object in the\r\n\t\t\t * initialiser object (i.e. the above parameters). Please refer to one of\r\n\t\t\t * the example language files to see how this works in action.\r\n\t\t\t * @type string\r\n\t\t\t * @default \u003Ci\u003EEmpty string - i.e. disabled\u003C/i\u003E\r\n\t\t\t *\r\n\t\t\t * @dtopt Language\r\n\t\t\t * @name DataTable.defaults.language.url\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * $(document).ready( function() {\r\n\t\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t\t * \u0022language\u0022: {\r\n\t\t\t * \u0022url\u0022: \u0022http://www.sprymedia.co.uk/dataTables/lang.txt\u0022\r\n\t\t\t * }\r\n\t\t\t * } );\r\n\t\t\t * } );\r\n\t\t\t */\r\n\t\t\t\u0022sUrl\u0022: \u0022\u0022,\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Text shown inside the table records when the is no information to be\r\n\t\t\t * displayed after filtering. \u00A7emptyTable\u00A7 is shown when there is simply no\r\n\t\t\t * information in the table at all (regardless of filtering).\r\n\t\t\t * @type string\r\n\t\t\t * @default No matching records found\r\n\t\t\t *\r\n\t\t\t * @dtopt Language\r\n\t\t\t * @name DataTable.defaults.language.zeroRecords\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * $(document).ready( function() {\r\n\t\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t\t * \u0022language\u0022: {\r\n\t\t\t * \u0022zeroRecords\u0022: \u0022No records to display\u0022\r\n\t\t\t * }\r\n\t\t\t * } );\r\n\t\t\t * } );\r\n\t\t\t */\r\n\t\t\t\u0022sZeroRecords\u0022: \u0022No matching records found\u0022\r\n\t\t},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This parameter allows you to have define the global filtering state at\r\n\t\t * initialisation time. As an object the \u00A7search\u00A7 parameter must be\r\n\t\t * defined, but all other parameters are optional. When \u00A7regex\u00A7 is true,\r\n\t\t * the search string will be treated as a regular expression, when false\r\n\t\t * (default) it will be treated as a straight string. When \u00A7smart\u00A7\r\n\t\t * DataTables will use it\u0027s smart filtering methods (to word match at\r\n\t\t * any point in the data), when false this will not be done.\r\n\t\t * @namespace\r\n\t\t * @extends DataTable.models.oSearch\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @name DataTable.defaults.search\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022search\u0022: {\u0022search\u0022: \u0022Initial search\u0022}\r\n\t\t * } );\r\n\t\t * } )\r\n\t\t */\r\n\t\t\u0022oSearch\u0022: $.extend( {}, DataTable.models.oSearch ),\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * __Deprecated__ The functionality provided by this parameter has now been\r\n\t\t * superseded by that provided through \u00A7ajax\u00A7, which should be used instead.\r\n\t\t *\r\n\t\t * By default DataTables will look for the property \u00A7data\u00A7 (or \u00A7aaData\u00A7 for\r\n\t\t * compatibility with DataTables 1.9-) when obtaining data from an Ajax\r\n\t\t * source or for server-side processing - this parameter allows that\r\n\t\t * property to be changed. You can use Javascript dotted object notation to\r\n\t\t * get a data source for multiple levels of nesting.\r\n\t\t * @type string\r\n\t\t * @default data\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @dtopt Server-side\r\n\t\t * @name DataTable.defaults.ajaxDataProp\r\n\t\t *\r\n\t\t * @deprecated 1.10. Please use \u00A7ajax\u00A7 for this functionality now.\r\n\t\t */\r\n\t\t\u0022sAjaxDataProp\u0022: \u0022data\u0022,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * __Deprecated__ The functionality provided by this parameter has now been\r\n\t\t * superseded by that provided through \u00A7ajax\u00A7, which should be used instead.\r\n\t\t *\r\n\t\t * You can instruct DataTables to load data from an external\r\n\t\t * source using this parameter (use aData if you want to pass data in you\r\n\t\t * already have). Simply provide a url a JSON object can be obtained from.\r\n\t\t * @type string\r\n\t\t * @default null\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @dtopt Server-side\r\n\t\t * @name DataTable.defaults.ajaxSource\r\n\t\t *\r\n\t\t * @deprecated 1.10. Please use \u00A7ajax\u00A7 for this functionality now.\r\n\t\t */\r\n\t\t\u0022sAjaxSource\u0022: null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This initialisation variable allows you to specify exactly where in the\r\n\t\t * DOM you want DataTables to inject the various controls it adds to the page\r\n\t\t * (for example you might want the pagination controls at the top of the\r\n\t\t * table). DIV elements (with or without a custom class) can also be added to\r\n\t\t * aid styling. The follow syntax is used:\r\n\t\t * \u003Cul\u003E\r\n\t\t * \u003Cli\u003EThe following options are allowed:\r\n\t\t * \u003Cul\u003E\r\n\t\t * \u003Cli\u003E\u0027l\u0027 - Length changing\u003C/li\u003E\r\n\t\t * \u003Cli\u003E\u0027f\u0027 - Filtering input\u003C/li\u003E\r\n\t\t * \u003Cli\u003E\u0027t\u0027 - The table!\u003C/li\u003E\r\n\t\t * \u003Cli\u003E\u0027i\u0027 - Information\u003C/li\u003E\r\n\t\t * \u003Cli\u003E\u0027p\u0027 - Pagination\u003C/li\u003E\r\n\t\t * \u003Cli\u003E\u0027r\u0027 - pRocessing\u003C/li\u003E\r\n\t\t * \u003C/ul\u003E\r\n\t\t * \u003C/li\u003E\r\n\t\t * \u003Cli\u003EThe following constants are allowed:\r\n\t\t * \u003Cul\u003E\r\n\t\t * \u003Cli\u003E\u0027H\u0027 - jQueryUI theme \u0022header\u0022 classes (\u0027fg-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix\u0027)\u003C/li\u003E\r\n\t\t * \u003Cli\u003E\u0027F\u0027 - jQueryUI theme \u0022footer\u0022 classes (\u0027fg-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix\u0027)\u003C/li\u003E\r\n\t\t * \u003C/ul\u003E\r\n\t\t * \u003C/li\u003E\r\n\t\t * \u003Cli\u003EThe following syntax is expected:\r\n\t\t * \u003Cul\u003E\r\n\t\t * \u003Cli\u003E\u0027\u0026lt;\u0027 and \u0027\u0026gt;\u0027 - div elements\u003C/li\u003E\r\n\t\t * \u003Cli\u003E\u0027\u0026lt;\u0022class\u0022 and \u0027\u0026gt;\u0027 - div with a class\u003C/li\u003E\r\n\t\t * \u003Cli\u003E\u0027\u0026lt;\u0022#id\u0022 and \u0027\u0026gt;\u0027 - div with an ID\u003C/li\u003E\r\n\t\t * \u003C/ul\u003E\r\n\t\t * \u003C/li\u003E\r\n\t\t * \u003Cli\u003EExamples:\r\n\t\t * \u003Cul\u003E\r\n\t\t * \u003Cli\u003E\u0027\u0026lt;\u0022wrapper\u0022flipt\u0026gt;\u0027\u003C/li\u003E\r\n\t\t * \u003Cli\u003E\u0027\u0026lt;lf\u0026lt;t\u0026gt;ip\u0026gt;\u0027\u003C/li\u003E\r\n\t\t * \u003C/ul\u003E\r\n\t\t * \u003C/li\u003E\r\n\t\t * \u003C/ul\u003E\r\n\t\t * @type string\r\n\t\t * @default lfrtip \u003Ci\u003E(when \u00A7jQueryUI\u00A7 is false)\u003C/i\u003E \u003Cb\u003Eor\u003C/b\u003E\r\n\t\t * \u003C\u0022H\u0022lfr\u003Et\u003C\u0022F\u0022ip\u003E \u003Ci\u003E(when \u00A7jQueryUI\u00A7 is true)\u003C/i\u003E\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @name DataTable.defaults.dom\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022dom\u0022: \u0027\u0026lt;\u0022top\u0022i\u0026gt;rt\u0026lt;\u0022bottom\u0022flp\u0026gt;\u0026lt;\u0022clear\u0022\u0026gt;\u0027\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022sDom\u0022: \u0022lfrtip\u0022,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Search delay option. This will throttle full table searches that use the\r\n\t\t * DataTables provided search input element (it does not effect calls to\r\n\t\t * \u00A7dt-api search()\u00A7, providing a delay before the search is made.\r\n\t\t * @type integer\r\n\t\t * @default 0\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @name DataTable.defaults.searchDelay\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022searchDelay\u0022: 200\r\n\t\t * } );\r\n\t\t * } )\r\n\t\t */\r\n\t\t\u0022searchDelay\u0022: null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * DataTables features six different built-in options for the buttons to\r\n\t\t * display for pagination control:\r\n\t\t *\r\n\t\t * * \u00A7numbers\u00A7 - Page number buttons only\r\n\t\t * * \u00A7simple\u00A7 - \u0027Previous\u0027 and \u0027Next\u0027 buttons only\r\n\t\t * * \u0027simple_numbers\u00A7 - \u0027Previous\u0027 and \u0027Next\u0027 buttons, plus page numbers\r\n\t\t * * \u00A7full\u00A7 - \u0027First\u0027, \u0027Previous\u0027, \u0027Next\u0027 and \u0027Last\u0027 buttons\r\n\t\t * * \u00A7full_numbers\u00A7 - \u0027First\u0027, \u0027Previous\u0027, \u0027Next\u0027 and \u0027Last\u0027 buttons, plus page numbers\r\n\t\t * * \u00A7first_last_numbers\u00A7 - \u0027First\u0027 and \u0027Last\u0027 buttons, plus page numbers\r\n\t\t * \r\n\t\t * Further methods can be added using {@link DataTable.ext.oPagination}.\r\n\t\t * @type string\r\n\t\t * @default simple_numbers\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @name DataTable.defaults.pagingType\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022pagingType\u0022: \u0022full_numbers\u0022\r\n\t\t * } );\r\n\t\t * } )\r\n\t\t */\r\n\t\t\u0022sPaginationType\u0022: \u0022simple_numbers\u0022,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable horizontal scrolling. When a table is too wide to fit into a\r\n\t\t * certain layout, or you have a large number of columns in the table, you\r\n\t\t * can enable x-scrolling to show the table in a viewport, which can be\r\n\t\t * scrolled. This property can be \u00A7true\u00A7 which will allow the table to\r\n\t\t * scroll horizontally when needed, or any CSS unit, or a number (in which\r\n\t\t * case it will be treated as a pixel measurement). Setting as simply \u00A7true\u00A7\r\n\t\t * is recommended.\r\n\t\t * @type boolean|string\r\n\t\t * @default \u003Ci\u003Eblank string - i.e. disabled\u003C/i\u003E\r\n\t\t *\r\n\t\t * @dtopt Features\r\n\t\t * @name DataTable.defaults.scrollX\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022scrollX\u0022: true,\r\n\t\t * \u0022scrollCollapse\u0022: true\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022sScrollX\u0022: \u0022\u0022,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This property can be used to force a DataTable to use more width than it\r\n\t\t * might otherwise do when x-scrolling is enabled. For example if you have a\r\n\t\t * table which requires to be well spaced, this parameter is useful for\r\n\t\t * \u0022over-sizing\u0022 the table, and thus forcing scrolling. This property can by\r\n\t\t * any CSS unit, or a number (in which case it will be treated as a pixel\r\n\t\t * measurement).\r\n\t\t * @type string\r\n\t\t * @default \u003Ci\u003Eblank string - i.e. disabled\u003C/i\u003E\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @name DataTable.defaults.scrollXInner\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022scrollX\u0022: \u0022100%\u0022,\r\n\t\t * \u0022scrollXInner\u0022: \u0022110%\u0022\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022sScrollXInner\u0022: \u0022\u0022,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable vertical scrolling. Vertical scrolling will constrain the DataTable\r\n\t\t * to the given height, and enable scrolling for any data which overflows the\r\n\t\t * current viewport. This can be used as an alternative to paging to display\r\n\t\t * a lot of data in a small area (although paging and scrolling can both be\r\n\t\t * enabled at the same time). This property can be any CSS unit, or a number\r\n\t\t * (in which case it will be treated as a pixel measurement).\r\n\t\t * @type string\r\n\t\t * @default \u003Ci\u003Eblank string - i.e. disabled\u003C/i\u003E\r\n\t\t *\r\n\t\t * @dtopt Features\r\n\t\t * @name DataTable.defaults.scrollY\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022scrollY\u0022: \u0022200px\u0022,\r\n\t\t * \u0022paginate\u0022: false\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022sScrollY\u0022: \u0022\u0022,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * __Deprecated__ The functionality provided by this parameter has now been\r\n\t\t * superseded by that provided through \u00A7ajax\u00A7, which should be used instead.\r\n\t\t *\r\n\t\t * Set the HTTP method that is used to make the Ajax call for server-side\r\n\t\t * processing or Ajax sourced data.\r\n\t\t * @type string\r\n\t\t * @default GET\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @dtopt Server-side\r\n\t\t * @name DataTable.defaults.serverMethod\r\n\t\t *\r\n\t\t * @deprecated 1.10. Please use \u00A7ajax\u00A7 for this functionality now.\r\n\t\t */\r\n\t\t\u0022sServerMethod\u0022: \u0022GET\u0022,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * DataTables makes use of renderers when displaying HTML elements for\r\n\t\t * a table. These renderers can be added or modified by plug-ins to\r\n\t\t * generate suitable mark-up for a site. For example the Bootstrap\r\n\t\t * integration plug-in for DataTables uses a paging button renderer to\r\n\t\t * display pagination buttons in the mark-up required by Bootstrap.\r\n\t\t *\r\n\t\t * For further information about the renderers available see\r\n\t\t * DataTable.ext.renderer\r\n\t\t * @type string|object\r\n\t\t * @default null\r\n\t\t *\r\n\t\t * @name DataTable.defaults.renderer\r\n\t\t *\r\n\t\t */\r\n\t\t\u0022renderer\u0022: null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Set the data property name that DataTables should use to get a row\u0027s id\r\n\t\t * to set as the \u00A7id\u00A7 property in the node.\r\n\t\t * @type string\r\n\t\t * @default DT_RowId\r\n\t\t *\r\n\t\t * @name DataTable.defaults.rowId\r\n\t\t */\r\n\t\t\u0022rowId\u0022: \u0022DT_RowId\u0022\r\n\t};\r\n\t\r\n\t_fnHungarianMap( DataTable.defaults );\r\n\t\r\n\t\r\n\t\r\n\t/*\r\n\t * Developer note - See note in model.defaults.js about the use of Hungarian\r\n\t * notation and camel case.\r\n\t */\r\n\t\r\n\t/**\r\n\t * Column options that can be given to DataTables at initialisation time.\r\n\t * @namespace\r\n\t */\r\n\tDataTable.defaults.column = {\r\n\t\t/**\r\n\t\t * Define which column(s) an order will occur on for this column. This\r\n\t\t * allows a column\u0027s ordering to take multiple columns into account when\r\n\t\t * doing a sort or use the data from a different column. For example first\r\n\t\t * name / last name columns make sense to do a multi-column sort over the\r\n\t\t * two columns.\r\n\t\t * @type array|int\r\n\t\t * @default null \u003Ci\u003ETakes the value of the column index automatically\u003C/i\u003E\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column.orderData\r\n\t\t * @dtopt Columns\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using \u00A7columnDefs\u00A7\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022columnDefs\u0022: [\r\n\t\t * { \u0022orderData\u0022: [ 0, 1 ], \u0022targets\u0022: [ 0 ] },\r\n\t\t * { \u0022orderData\u0022: [ 1, 0 ], \u0022targets\u0022: [ 1 ] },\r\n\t\t * { \u0022orderData\u0022: 2, \u0022targets\u0022: [ 2 ] }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using \u00A7columns\u00A7\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022columns\u0022: [\r\n\t\t * { \u0022orderData\u0022: [ 0, 1 ] },\r\n\t\t * { \u0022orderData\u0022: [ 1, 0 ] },\r\n\t\t * { \u0022orderData\u0022: 2 },\r\n\t\t * null,\r\n\t\t * null\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022aDataSort\u0022: null,\r\n\t\t\u0022iDataSort\u0022: -1,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * You can control the default ordering direction, and even alter the\r\n\t\t * behaviour of the sort handler (i.e. only allow ascending ordering etc)\r\n\t\t * using this parameter.\r\n\t\t * @type array\r\n\t\t * @default [ \u0027asc\u0027, \u0027desc\u0027 ]\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column.orderSequence\r\n\t\t * @dtopt Columns\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using \u00A7columnDefs\u00A7\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022columnDefs\u0022: [\r\n\t\t * { \u0022orderSequence\u0022: [ \u0022asc\u0022 ], \u0022targets\u0022: [ 1 ] },\r\n\t\t * { \u0022orderSequence\u0022: [ \u0022desc\u0022, \u0022asc\u0022, \u0022asc\u0022 ], \u0022targets\u0022: [ 2 ] },\r\n\t\t * { \u0022orderSequence\u0022: [ \u0022desc\u0022 ], \u0022targets\u0022: [ 3 ] }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using \u00A7columns\u00A7\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022columns\u0022: [\r\n\t\t * null,\r\n\t\t * { \u0022orderSequence\u0022: [ \u0022asc\u0022 ] },\r\n\t\t * { \u0022orderSequence\u0022: [ \u0022desc\u0022, \u0022asc\u0022, \u0022asc\u0022 ] },\r\n\t\t * { \u0022orderSequence\u0022: [ \u0022desc\u0022 ] },\r\n\t\t * null\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022asSorting\u0022: [ \u0027asc\u0027, \u0027desc\u0027 ],\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or disable filtering on the data in this column.\r\n\t\t * @type boolean\r\n\t\t * @default true\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column.searchable\r\n\t\t * @dtopt Columns\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using \u00A7columnDefs\u00A7\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022columnDefs\u0022: [\r\n\t\t * { \u0022searchable\u0022: false, \u0022targets\u0022: [ 0 ] }\r\n\t\t * ] } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using \u00A7columns\u00A7\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022columns\u0022: [\r\n\t\t * { \u0022searchable\u0022: false },\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * null\r\n\t\t * ] } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022bSearchable\u0022: true,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or disable ordering on this column.\r\n\t\t * @type boolean\r\n\t\t * @default true\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column.orderable\r\n\t\t * @dtopt Columns\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using \u00A7columnDefs\u00A7\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022columnDefs\u0022: [\r\n\t\t * { \u0022orderable\u0022: false, \u0022targets\u0022: [ 0 ] }\r\n\t\t * ] } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using \u00A7columns\u00A7\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022columns\u0022: [\r\n\t\t * { \u0022orderable\u0022: false },\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * null\r\n\t\t * ] } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022bSortable\u0022: true,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or disable the display of this column.\r\n\t\t * @type boolean\r\n\t\t * @default true\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column.visible\r\n\t\t * @dtopt Columns\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using \u00A7columnDefs\u00A7\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022columnDefs\u0022: [\r\n\t\t * { \u0022visible\u0022: false, \u0022targets\u0022: [ 0 ] }\r\n\t\t * ] } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using \u00A7columns\u00A7\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022columns\u0022: [\r\n\t\t * { \u0022visible\u0022: false },\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * null\r\n\t\t * ] } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022bVisible\u0022: true,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Developer definable function that is called whenever a cell is created (Ajax source,\r\n\t\t * etc) or processed for input (DOM source). This can be used as a compliment to mRender\r\n\t\t * allowing you to modify the DOM element (add background colour for example) when the\r\n\t\t * element is available.\r\n\t\t * @type function\r\n\t\t * @param {element} td The TD node that has been created\r\n\t\t * @param {*} cellData The Data for the cell\r\n\t\t * @param {array|object} rowData The data for the whole row\r\n\t\t * @param {int} row The row index for the aoData data store\r\n\t\t * @param {int} col The column index for aoColumns\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column.createdCell\r\n\t\t * @dtopt Columns\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022columnDefs\u0022: [ {\r\n\t\t * \u0022targets\u0022: [3],\r\n\t\t * \u0022createdCell\u0022: function (td, cellData, rowData, row, col) {\r\n\t\t * if ( cellData == \u00221.7\u0022 ) {\r\n\t\t * $(td).css(\u0027color\u0027, \u0027blue\u0027)\r\n\t\t * }\r\n\t\t * }\r\n\t\t * } ]\r\n\t\t * });\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022fnCreatedCell\u0022: null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This parameter has been replaced by \u00A7data\u00A7 in DataTables to ensure naming\r\n\t\t * consistency. \u00A7dataProp\u00A7 can still be used, as there is backwards\r\n\t\t * compatibility in DataTables for this option, but it is strongly\r\n\t\t * recommended that you use \u00A7data\u00A7 in preference to \u00A7dataProp\u00A7.\r\n\t\t * @name DataTable.defaults.column.dataProp\r\n\t\t */\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This property can be used to read data from any data source property,\r\n\t\t * including deeply nested objects / properties. \u00A7data\u00A7 can be given in a\r\n\t\t * number of different ways which effect its behaviour:\r\n\t\t *\r\n\t\t * * \u00A7integer\u00A7 - treated as an array index for the data source. This is the\r\n\t\t * default that DataTables uses (incrementally increased for each column).\r\n\t\t * * \u00A7string\u00A7 - read an object property from the data source. There are\r\n\t\t * three \u0027special\u0027 options that can be used in the string to alter how\r\n\t\t * DataTables reads the data from the source object:\r\n\t\t * * \u00A7.\u00A7 - Dotted Javascript notation. Just as you use a \u00A7.\u00A7 in\r\n\t\t * Javascript to read from nested objects, so to can the options\r\n\t\t * specified in \u00A7data\u00A7. For example: \u00A7browser.version\u00A7 or\r\n\t\t * \u00A7browser.name\u00A7. If your object parameter name contains a period, use\r\n\t\t * \u00A7\\\\\u00A7 to escape it - i.e. \u00A7first\\\\.name\u00A7.\r\n\t\t * * \u00A7[]\u00A7 - Array notation. DataTables can automatically combine data\r\n\t\t * from and array source, joining the data with the characters provided\r\n\t\t * between the two brackets. For example: \u00A7name[, ]\u00A7 would provide a\r\n\t\t * comma-space separated list from the source array. If no characters\r\n\t\t * are provided between the brackets, the original array source is\r\n\t\t * returned.\r\n\t\t * * \u00A7()\u00A7 - Function notation. Adding \u00A7()\u00A7 to the end of a parameter will\r\n\t\t * execute a function of the name given. For example: \u00A7browser()\u00A7 for a\r\n\t\t * simple function on the data source, \u00A7browser.version()\u00A7 for a\r\n\t\t * function in a nested property or even \u00A7browser().version\u00A7 to get an\r\n\t\t * object property if the function called returns an object. Note that\r\n\t\t * function notation is recommended for use in \u00A7render\u00A7 rather than\r\n\t\t * \u00A7data\u00A7 as it is much simpler to use as a renderer.\r\n\t\t * * \u00A7null\u00A7 - use the original data source for the row rather than plucking\r\n\t\t * data directly from it. This action has effects on two other\r\n\t\t * initialisation options:\r\n\t\t * * \u00A7defaultContent\u00A7 - When null is given as the \u00A7data\u00A7 option and\r\n\t\t * \u00A7defaultContent\u00A7 is specified for the column, the value defined by\r\n\t\t * \u00A7defaultContent\u00A7 will be used for the cell.\r\n\t\t * * \u00A7render\u00A7 - When null is used for the \u00A7data\u00A7 option and the \u00A7render\u00A7\r\n\t\t * option is specified for the column, the whole data source for the\r\n\t\t * row is used for the renderer.\r\n\t\t * * \u00A7function\u00A7 - the function given will be executed whenever DataTables\r\n\t\t * needs to set or get the data for a cell in the column. The function\r\n\t\t * takes three parameters:\r\n\t\t * * Parameters:\r\n\t\t * * \u00A7{array|object}\u00A7 The data source for the row\r\n\t\t * * \u00A7{string}\u00A7 The type call data requested - this will be \u0027set\u0027 when\r\n\t\t * setting data or \u0027filter\u0027, \u0027display\u0027, \u0027type\u0027, \u0027sort\u0027 or undefined\r\n\t\t * when gathering data. Note that when \u00A7undefined\u00A7 is given for the\r\n\t\t * type DataTables expects to get the raw data for the object back\u003C\r\n\t\t * * \u00A7{*}\u00A7 Data to set when the second parameter is \u0027set\u0027.\r\n\t\t * * Return:\r\n\t\t * * The return value from the function is not required when \u0027set\u0027 is\r\n\t\t * the type of call, but otherwise the return is what will be used\r\n\t\t * for the data requested.\r\n\t\t *\r\n\t\t * Note that \u00A7data\u00A7 is a getter and setter option. If you just require\r\n\t\t * formatting of data for output, you will likely want to use \u00A7render\u00A7 which\r\n\t\t * is simply a getter and thus simpler to use.\r\n\t\t *\r\n\t\t * Note that prior to DataTables 1.9.2 \u00A7data\u00A7 was called \u00A7mDataProp\u00A7. The\r\n\t\t * name change reflects the flexibility of this property and is consistent\r\n\t\t * with the naming of mRender. If \u0027mDataProp\u0027 is given, then it will still\r\n\t\t * be used by DataTables, as it automatically maps the old name to the new\r\n\t\t * if required.\r\n\t\t *\r\n\t\t * @type string|int|function|null\r\n\t\t * @default null \u003Ci\u003EUse automatically calculated column index\u003C/i\u003E\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column.data\r\n\t\t * @dtopt Columns\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Read table data from objects\r\n\t\t * // JSON structure for each row:\r\n\t\t * // {\r\n\t\t * // \u0022engine\u0022: {value},\r\n\t\t * // \u0022browser\u0022: {value},\r\n\t\t * // \u0022platform\u0022: {value},\r\n\t\t * // \u0022version\u0022: {value},\r\n\t\t * // \u0022grade\u0022: {value}\r\n\t\t * // }\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022ajaxSource\u0022: \u0022sources/objects.txt\u0022,\r\n\t\t * \u0022columns\u0022: [\r\n\t\t * { \u0022data\u0022: \u0022engine\u0022 },\r\n\t\t * { \u0022data\u0022: \u0022browser\u0022 },\r\n\t\t * { \u0022data\u0022: \u0022platform\u0022 },\r\n\t\t * { \u0022data\u0022: \u0022version\u0022 },\r\n\t\t * { \u0022data\u0022: \u0022grade\u0022 }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Read information from deeply nested objects\r\n\t\t * // JSON structure for each row:\r\n\t\t * // {\r\n\t\t * // \u0022engine\u0022: {value},\r\n\t\t * // \u0022browser\u0022: {value},\r\n\t\t * // \u0022platform\u0022: {\r\n\t\t * // \u0022inner\u0022: {value}\r\n\t\t * // },\r\n\t\t * // \u0022details\u0022: [\r\n\t\t * // {value}, {value}\r\n\t\t * // ]\r\n\t\t * // }\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022ajaxSource\u0022: \u0022sources/deep.txt\u0022,\r\n\t\t * \u0022columns\u0022: [\r\n\t\t * { \u0022data\u0022: \u0022engine\u0022 },\r\n\t\t * { \u0022data\u0022: \u0022browser\u0022 },\r\n\t\t * { \u0022data\u0022: \u0022platform.inner\u0022 },\r\n\t\t * { \u0022data\u0022: \u0022details.0\u0022 },\r\n\t\t * { \u0022data\u0022: \u0022details.1\u0022 }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using \u00A7data\u00A7 as a function to provide different information for\r\n\t\t * // sorting, filtering and display. In this case, currency (price)\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022columnDefs\u0022: [ {\r\n\t\t * \u0022targets\u0022: [ 0 ],\r\n\t\t * \u0022data\u0022: function ( source, type, val ) {\r\n\t\t * if (type === \u0027set\u0027) {\r\n\t\t * source.price = val;\r\n\t\t * // Store the computed display and filter values for efficiency\r\n\t\t * source.price_display = val==\u0022\u0022 ? \u0022\u0022 : \u0022$\u0022\u002BnumberFormat(val);\r\n\t\t * source.price_filter = val==\u0022\u0022 ? \u0022\u0022 : \u0022$\u0022\u002BnumberFormat(val)\u002B\u0022 \u0022\u002Bval;\r\n\t\t * return;\r\n\t\t * }\r\n\t\t * else if (type === \u0027display\u0027) {\r\n\t\t * return source.price_display;\r\n\t\t * }\r\n\t\t * else if (type === \u0027filter\u0027) {\r\n\t\t * return source.price_filter;\r\n\t\t * }\r\n\t\t * // \u0027sort\u0027, \u0027type\u0027 and undefined all just use the integer\r\n\t\t * return source.price;\r\n\t\t * }\r\n\t\t * } ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using default content\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022columnDefs\u0022: [ {\r\n\t\t * \u0022targets\u0022: [ 0 ],\r\n\t\t * \u0022data\u0022: null,\r\n\t\t * \u0022defaultContent\u0022: \u0022Click to edit\u0022\r\n\t\t * } ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using array notation - outputting a list from an array\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022columnDefs\u0022: [ {\r\n\t\t * \u0022targets\u0022: [ 0 ],\r\n\t\t * \u0022data\u0022: \u0022name[, ]\u0022\r\n\t\t * } ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t */\r\n\t\t\u0022mData\u0022: null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This property is the rendering partner to \u00A7data\u00A7 and it is suggested that\r\n\t\t * when you want to manipulate data for display (including filtering,\r\n\t\t * sorting etc) without altering the underlying data for the table, use this\r\n\t\t * property. \u00A7render\u00A7 can be considered to be the the read only companion to\r\n\t\t * \u00A7data\u00A7 which is read / write (then as such more complex). Like \u00A7data\u00A7\r\n\t\t * this option can be given in a number of different ways to effect its\r\n\t\t * behaviour:\r\n\t\t *\r\n\t\t * * \u00A7integer\u00A7 - treated as an array index for the data source. This is the\r\n\t\t * default that DataTables uses (incrementally increased for each column).\r\n\t\t * * \u00A7string\u00A7 - read an object property from the data source. There are\r\n\t\t * three \u0027special\u0027 options that can be used in the string to alter how\r\n\t\t * DataTables reads the data from the source object:\r\n\t\t * * \u00A7.\u00A7 - Dotted Javascript notation. Just as you use a \u00A7.\u00A7 in\r\n\t\t * Javascript to read from nested objects, so to can the options\r\n\t\t * specified in \u00A7data\u00A7. For example: \u00A7browser.version\u00A7 or\r\n\t\t * \u00A7browser.name\u00A7. If your object parameter name contains a period, use\r\n\t\t * \u00A7\\\\\u00A7 to escape it - i.e. \u00A7first\\\\.name\u00A7.\r\n\t\t * * \u00A7[]\u00A7 - Array notation. DataTables can automatically combine data\r\n\t\t * from and array source, joining the data with the characters provided\r\n\t\t * between the two brackets. For example: \u00A7name[, ]\u00A7 would provide a\r\n\t\t * comma-space separated list from the source array. If no characters\r\n\t\t * are provided between the brackets, the original array source is\r\n\t\t * returned.\r\n\t\t * * \u00A7()\u00A7 - Function notation. Adding \u00A7()\u00A7 to the end of a parameter will\r\n\t\t * execute a function of the name given. For example: \u00A7browser()\u00A7 for a\r\n\t\t * simple function on the data source, \u00A7browser.version()\u00A7 for a\r\n\t\t * function in a nested property or even \u00A7browser().version\u00A7 to get an\r\n\t\t * object property if the function called returns an object.\r\n\t\t * * \u00A7object\u00A7 - use different data for the different data types requested by\r\n\t\t * DataTables (\u0027filter\u0027, \u0027display\u0027, \u0027type\u0027 or \u0027sort\u0027). The property names\r\n\t\t * of the object is the data type the property refers to and the value can\r\n\t\t * defined using an integer, string or function using the same rules as\r\n\t\t * \u00A7render\u00A7 normally does. Note that an \u00A7_\u00A7 option _must_ be specified.\r\n\t\t * This is the default value to use if you haven\u0027t specified a value for\r\n\t\t * the data type requested by DataTables.\r\n\t\t * * \u00A7function\u00A7 - the function given will be executed whenever DataTables\r\n\t\t * needs to set or get the data for a cell in the column. The function\r\n\t\t * takes three parameters:\r\n\t\t * * Parameters:\r\n\t\t * * {array|object} The data source for the row (based on \u00A7data\u00A7)\r\n\t\t * * {string} The type call data requested - this will be \u0027filter\u0027,\r\n\t\t * \u0027display\u0027, \u0027type\u0027 or \u0027sort\u0027.\r\n\t\t * * {array|object} The full data source for the row (not based on\r\n\t\t * \u00A7data\u00A7)\r\n\t\t * * Return:\r\n\t\t * * The return value from the function is what will be used for the\r\n\t\t * data requested.\r\n\t\t *\r\n\t\t * @type string|int|function|object|null\r\n\t\t * @default null Use the data source value.\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column.render\r\n\t\t * @dtopt Columns\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Create a comma separated list from an array of objects\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022ajaxSource\u0022: \u0022sources/deep.txt\u0022,\r\n\t\t * \u0022columns\u0022: [\r\n\t\t * { \u0022data\u0022: \u0022engine\u0022 },\r\n\t\t * { \u0022data\u0022: \u0022browser\u0022 },\r\n\t\t * {\r\n\t\t * \u0022data\u0022: \u0022platform\u0022,\r\n\t\t * \u0022render\u0022: \u0022[, ].name\u0022\r\n\t\t * }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Execute a function to obtain data\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022columnDefs\u0022: [ {\r\n\t\t * \u0022targets\u0022: [ 0 ],\r\n\t\t * \u0022data\u0022: null, // Use the full data source object for the renderer\u0027s source\r\n\t\t * \u0022render\u0022: \u0022browserName()\u0022\r\n\t\t * } ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // As an object, extracting different data for the different types\r\n\t\t * // This would be used with a data source such as:\r\n\t\t * // { \u0022phone\u0022: 5552368, \u0022phone_filter\u0022: \u00225552368 555-2368\u0022, \u0022phone_display\u0022: \u0022555-2368\u0022 }\r\n\t\t * // Here the \u00A7phone\u00A7 integer is used for sorting and type detection, while \u00A7phone_filter\u00A7\r\n\t\t * // (which has both forms) is used for filtering for if a user inputs either format, while\r\n\t\t * // the formatted phone number is the one that is shown in the table.\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022columnDefs\u0022: [ {\r\n\t\t * \u0022targets\u0022: [ 0 ],\r\n\t\t * \u0022data\u0022: null, // Use the full data source object for the renderer\u0027s source\r\n\t\t * \u0022render\u0022: {\r\n\t\t * \u0022_\u0022: \u0022phone\u0022,\r\n\t\t * \u0022filter\u0022: \u0022phone_filter\u0022,\r\n\t\t * \u0022display\u0022: \u0022phone_display\u0022\r\n\t\t * }\r\n\t\t * } ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Use as a function to create a link from the data source\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022columnDefs\u0022: [ {\r\n\t\t * \u0022targets\u0022: [ 0 ],\r\n\t\t * \u0022data\u0022: \u0022download_link\u0022,\r\n\t\t * \u0022render\u0022: function ( data, type, full ) {\r\n\t\t * return \u0027\u003Ca href=\u0022\u0027\u002Bdata\u002B\u0027\u0022\u003EDownload\u003C/a\u003E\u0027;\r\n\t\t * }\r\n\t\t * } ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022mRender\u0022: null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Change the cell type created for the column - either TD cells or TH cells. This\r\n\t\t * can be useful as TH cells have semantic meaning in the table body, allowing them\r\n\t\t * to act as a header for a row (you may wish to add scope=\u0027row\u0027 to the TH elements).\r\n\t\t * @type string\r\n\t\t * @default td\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column.cellType\r\n\t\t * @dtopt Columns\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Make the first column use TH cells\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022columnDefs\u0022: [ {\r\n\t\t * \u0022targets\u0022: [ 0 ],\r\n\t\t * \u0022cellType\u0022: \u0022th\u0022\r\n\t\t * } ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022sCellType\u0022: \u0022td\u0022,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Class to give to each cell in this column.\r\n\t\t * @type string\r\n\t\t * @default \u003Ci\u003EEmpty string\u003C/i\u003E\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column.class\r\n\t\t * @dtopt Columns\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using \u00A7columnDefs\u00A7\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022columnDefs\u0022: [\r\n\t\t * { \u0022class\u0022: \u0022my_class\u0022, \u0022targets\u0022: [ 0 ] }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using \u00A7columns\u00A7\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022columns\u0022: [\r\n\t\t * { \u0022class\u0022: \u0022my_class\u0022 },\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * null\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022sClass\u0022: \u0022\u0022,\r\n\t\r\n\t\t/**\r\n\t\t * When DataTables calculates the column widths to assign to each column,\r\n\t\t * it finds the longest string in each column and then constructs a\r\n\t\t * temporary table and reads the widths from that. The problem with this\r\n\t\t * is that \u0022mmm\u0022 is much wider then \u0022iiii\u0022, but the latter is a longer\r\n\t\t * string - thus the calculation can go wrong (doing it properly and putting\r\n\t\t * it into an DOM object and measuring that is horribly(!) slow). Thus as\r\n\t\t * a \u0022work around\u0022 we provide this option. It will append its value to the\r\n\t\t * text that is found to be the longest string for the column - i.e. padding.\r\n\t\t * Generally you shouldn\u0027t need this!\r\n\t\t * @type string\r\n\t\t * @default \u003Ci\u003EEmpty string\u003Ci\u003E\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column.contentPadding\r\n\t\t * @dtopt Columns\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using \u00A7columns\u00A7\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022columns\u0022: [\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * {\r\n\t\t * \u0022contentPadding\u0022: \u0022mmm\u0022\r\n\t\t * }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022sContentPadding\u0022: \u0022\u0022,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Allows a default value to be given for a column\u0027s data, and will be used\r\n\t\t * whenever a null data source is encountered (this can be because \u00A7data\u00A7\r\n\t\t * is set to null, or because the data source itself is null).\r\n\t\t * @type string\r\n\t\t * @default null\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column.defaultContent\r\n\t\t * @dtopt Columns\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using \u00A7columnDefs\u00A7\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022columnDefs\u0022: [\r\n\t\t * {\r\n\t\t * \u0022data\u0022: null,\r\n\t\t * \u0022defaultContent\u0022: \u0022Edit\u0022,\r\n\t\t * \u0022targets\u0022: [ -1 ]\r\n\t\t * }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using \u00A7columns\u00A7\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022columns\u0022: [\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * {\r\n\t\t * \u0022data\u0022: null,\r\n\t\t * \u0022defaultContent\u0022: \u0022Edit\u0022\r\n\t\t * }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022sDefaultContent\u0022: null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This parameter is only used in DataTables\u0027 server-side processing. It can\r\n\t\t * be exceptionally useful to know what columns are being displayed on the\r\n\t\t * client side, and to map these to database fields. When defined, the names\r\n\t\t * also allow DataTables to reorder information from the server if it comes\r\n\t\t * back in an unexpected order (i.e. if you switch your columns around on the\r\n\t\t * client-side, your server-side code does not also need updating).\r\n\t\t * @type string\r\n\t\t * @default \u003Ci\u003EEmpty string\u003C/i\u003E\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column.name\r\n\t\t * @dtopt Columns\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using \u00A7columnDefs\u00A7\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022columnDefs\u0022: [\r\n\t\t * { \u0022name\u0022: \u0022engine\u0022, \u0022targets\u0022: [ 0 ] },\r\n\t\t * { \u0022name\u0022: \u0022browser\u0022, \u0022targets\u0022: [ 1 ] },\r\n\t\t * { \u0022name\u0022: \u0022platform\u0022, \u0022targets\u0022: [ 2 ] },\r\n\t\t * { \u0022name\u0022: \u0022version\u0022, \u0022targets\u0022: [ 3 ] },\r\n\t\t * { \u0022name\u0022: \u0022grade\u0022, \u0022targets\u0022: [ 4 ] }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using \u00A7columns\u00A7\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022columns\u0022: [\r\n\t\t * { \u0022name\u0022: \u0022engine\u0022 },\r\n\t\t * { \u0022name\u0022: \u0022browser\u0022 },\r\n\t\t * { \u0022name\u0022: \u0022platform\u0022 },\r\n\t\t * { \u0022name\u0022: \u0022version\u0022 },\r\n\t\t * { \u0022name\u0022: \u0022grade\u0022 }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022sName\u0022: \u0022\u0022,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Defines a data source type for the ordering which can be used to read\r\n\t\t * real-time information from the table (updating the internally cached\r\n\t\t * version) prior to ordering. This allows ordering to occur on user\r\n\t\t * editable elements such as form inputs.\r\n\t\t * @type string\r\n\t\t * @default std\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column.orderDataType\r\n\t\t * @dtopt Columns\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using \u00A7columnDefs\u00A7\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022columnDefs\u0022: [\r\n\t\t * { \u0022orderDataType\u0022: \u0022dom-text\u0022, \u0022targets\u0022: [ 2, 3 ] },\r\n\t\t * { \u0022type\u0022: \u0022numeric\u0022, \u0022targets\u0022: [ 3 ] },\r\n\t\t * { \u0022orderDataType\u0022: \u0022dom-select\u0022, \u0022targets\u0022: [ 4 ] },\r\n\t\t * { \u0022orderDataType\u0022: \u0022dom-checkbox\u0022, \u0022targets\u0022: [ 5 ] }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using \u00A7columns\u00A7\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022columns\u0022: [\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * { \u0022orderDataType\u0022: \u0022dom-text\u0022 },\r\n\t\t * { \u0022orderDataType\u0022: \u0022dom-text\u0022, \u0022type\u0022: \u0022numeric\u0022 },\r\n\t\t * { \u0022orderDataType\u0022: \u0022dom-select\u0022 },\r\n\t\t * { \u0022orderDataType\u0022: \u0022dom-checkbox\u0022 }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022sSortDataType\u0022: \u0022std\u0022,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * The title of this column.\r\n\t\t * @type string\r\n\t\t * @default null \u003Ci\u003EDerived from the \u0027TH\u0027 value for this column in the\r\n\t\t * original HTML table.\u003C/i\u003E\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column.title\r\n\t\t * @dtopt Columns\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using \u00A7columnDefs\u00A7\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022columnDefs\u0022: [\r\n\t\t * { \u0022title\u0022: \u0022My column title\u0022, \u0022targets\u0022: [ 0 ] }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using \u00A7columns\u00A7\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022columns\u0022: [\r\n\t\t * { \u0022title\u0022: \u0022My column title\u0022 },\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * null\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022sTitle\u0022: null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * The type allows you to specify how the data for this column will be\r\n\t\t * ordered. Four types (string, numeric, date and html (which will strip\r\n\t\t * HTML tags before ordering)) are currently available. Note that only date\r\n\t\t * formats understood by Javascript\u0027s Date() object will be accepted as type\r\n\t\t * date. For example: \u0022Mar 26, 2008 5:03 PM\u0022. May take the values: \u0027string\u0027,\r\n\t\t * \u0027numeric\u0027, \u0027date\u0027 or \u0027html\u0027 (by default). Further types can be adding\r\n\t\t * through plug-ins.\r\n\t\t * @type string\r\n\t\t * @default null \u003Ci\u003EAuto-detected from raw data\u003C/i\u003E\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column.type\r\n\t\t * @dtopt Columns\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using \u00A7columnDefs\u00A7\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022columnDefs\u0022: [\r\n\t\t * { \u0022type\u0022: \u0022html\u0022, \u0022targets\u0022: [ 0 ] }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using \u00A7columns\u00A7\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022columns\u0022: [\r\n\t\t * { \u0022type\u0022: \u0022html\u0022 },\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * null\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022sType\u0022: null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Defining the width of the column, this parameter may take any CSS value\r\n\t\t * (3em, 20px etc). DataTables applies \u0027smart\u0027 widths to columns which have not\r\n\t\t * been given a specific width through this interface ensuring that the table\r\n\t\t * remains readable.\r\n\t\t * @type string\r\n\t\t * @default null \u003Ci\u003EAutomatic\u003C/i\u003E\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column.width\r\n\t\t * @dtopt Columns\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using \u00A7columnDefs\u00A7\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022columnDefs\u0022: [\r\n\t\t * { \u0022width\u0022: \u002220%\u0022, \u0022targets\u0022: [ 0 ] }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using \u00A7columns\u00A7\r\n\t\t * $(document).ready( function() {\r\n\t\t * $(\u0027#example\u0027).dataTable( {\r\n\t\t * \u0022columns\u0022: [\r\n\t\t * { \u0022width\u0022: \u002220%\u0022 },\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * null\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\u0022sWidth\u0022: null\r\n\t};\r\n\t\r\n\t_fnHungarianMap( DataTable.defaults.column );\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * DataTables settings object - this holds all the information needed for a\r\n\t * given table, including configuration, data and current application of the\r\n\t * table options. DataTables does not have a single instance for each DataTable\r\n\t * with the settings attached to that instance, but rather instances of the\r\n\t * DataTable \u0022class\u0022 are created on-the-fly as needed (typically by a\r\n\t * $().dataTable() call) and the settings object is then applied to that\r\n\t * instance.\r\n\t *\r\n\t * Note that this object is related to {@link DataTable.defaults} but this\r\n\t * one is the internal data store for DataTables\u0027s cache of columns. It should\r\n\t * NOT be manipulated outside of DataTables. Any configuration should be done\r\n\t * through the initialisation options.\r\n\t * @namespace\r\n\t * @todo Really should attach the settings object to individual instances so we\r\n\t * don\u0027t need to create new instances on each $().dataTable() call (if the\r\n\t * table already exists). It would also save passing oSettings around and\r\n\t * into every single function. However, this is a very significant\r\n\t * architecture change for DataTables and will almost certainly break\r\n\t * backwards compatibility with older installations. This is something that\r\n\t * will be done in 2.0.\r\n\t */\r\n\tDataTable.models.oSettings = {\r\n\t\t/**\r\n\t\t * Primary features of DataTables and their enablement state.\r\n\t\t * @namespace\r\n\t\t */\r\n\t\t\u0022oFeatures\u0022: {\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Flag to say if DataTables should automatically try to calculate the\r\n\t\t\t * optimum table and columns widths (true) or not (false).\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t * @type boolean\r\n\t\t\t */\r\n\t\t\t\u0022bAutoWidth\u0022: null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Delay the creation of TR and TD elements until they are actually\r\n\t\t\t * needed by a driven page draw. This can give a significant speed\r\n\t\t\t * increase for Ajax source and Javascript source data, but makes no\r\n\t\t\t * difference at all for DOM and server-side processing tables.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t * @type boolean\r\n\t\t\t */\r\n\t\t\t\u0022bDeferRender\u0022: null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Enable filtering on the table or not. Note that if this is disabled\r\n\t\t\t * then there is no filtering at all on the table, including fnFilter.\r\n\t\t\t * To just remove the filtering input use sDom and remove the \u0027f\u0027 option.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t * @type boolean\r\n\t\t\t */\r\n\t\t\t\u0022bFilter\u0022: null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Table information element (the \u0027Showing x of y records\u0027 div) enable\r\n\t\t\t * flag.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t * @type boolean\r\n\t\t\t */\r\n\t\t\t\u0022bInfo\u0022: null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Present a user control allowing the end user to change the page size\r\n\t\t\t * when pagination is enabled.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t * @type boolean\r\n\t\t\t */\r\n\t\t\t\u0022bLengthChange\u0022: null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Pagination enabled or not. Note that if this is disabled then length\r\n\t\t\t * changing must also be disabled.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t * @type boolean\r\n\t\t\t */\r\n\t\t\t\u0022bPaginate\u0022: null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Processing indicator enable flag whenever DataTables is enacting a\r\n\t\t\t * user request - typically an Ajax request for server-side processing.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t * @type boolean\r\n\t\t\t */\r\n\t\t\t\u0022bProcessing\u0022: null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Server-side processing enabled flag - when enabled DataTables will\r\n\t\t\t * get all data from the server for every draw - there is no filtering,\r\n\t\t\t * sorting or paging done on the client-side.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t * @type boolean\r\n\t\t\t */\r\n\t\t\t\u0022bServerSide\u0022: null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Sorting enablement flag.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t * @type boolean\r\n\t\t\t */\r\n\t\t\t\u0022bSort\u0022: null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Multi-column sorting\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t * @type boolean\r\n\t\t\t */\r\n\t\t\t\u0022bSortMulti\u0022: null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Apply a class to the columns which are being sorted to provide a\r\n\t\t\t * visual highlight or not. This can slow things down when enabled since\r\n\t\t\t * there is a lot of DOM interaction.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t * @type boolean\r\n\t\t\t */\r\n\t\t\t\u0022bSortClasses\u0022: null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * State saving enablement flag.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t * @type boolean\r\n\t\t\t */\r\n\t\t\t\u0022bStateSave\u0022: null\r\n\t\t},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Scrolling settings for a table.\r\n\t\t * @namespace\r\n\t\t */\r\n\t\t\u0022oScroll\u0022: {\r\n\t\t\t/**\r\n\t\t\t * When the table is shorter in height than sScrollY, collapse the\r\n\t\t\t * table container down to the height of the table (when true).\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t * @type boolean\r\n\t\t\t */\r\n\t\t\t\u0022bCollapse\u0022: null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Width of the scrollbar for the web-browser\u0027s platform. Calculated\r\n\t\t\t * during table initialisation.\r\n\t\t\t * @type int\r\n\t\t\t * @default 0\r\n\t\t\t */\r\n\t\t\t\u0022iBarWidth\u0022: 0,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Viewport width for horizontal scrolling. Horizontal scrolling is\r\n\t\t\t * disabled if an empty string.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t * @type string\r\n\t\t\t */\r\n\t\t\t\u0022sX\u0022: null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Width to expand the table to when using x-scrolling. Typically you\r\n\t\t\t * should not need to use this.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t * @type string\r\n\t\t\t * @deprecated\r\n\t\t\t */\r\n\t\t\t\u0022sXInner\u0022: null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Viewport height for vertical scrolling. Vertical scrolling is disabled\r\n\t\t\t * if an empty string.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t * @type string\r\n\t\t\t */\r\n\t\t\t\u0022sY\u0022: null\r\n\t\t},\r\n\t\r\n\t\t/**\r\n\t\t * Language information for the table.\r\n\t\t * @namespace\r\n\t\t * @extends DataTable.defaults.oLanguage\r\n\t\t */\r\n\t\t\u0022oLanguage\u0022: {\r\n\t\t\t/**\r\n\t\t\t * Information callback function. See\r\n\t\t\t * {@link DataTable.defaults.fnInfoCallback}\r\n\t\t\t * @type function\r\n\t\t\t * @default null\r\n\t\t\t */\r\n\t\t\t\u0022fnInfoCallback\u0022: null\r\n\t\t},\r\n\t\r\n\t\t/**\r\n\t\t * Browser support parameters\r\n\t\t * @namespace\r\n\t\t */\r\n\t\t\u0022oBrowser\u0022: {\r\n\t\t\t/**\r\n\t\t\t * Indicate if the browser incorrectly calculates width:100% inside a\r\n\t\t\t * scrolling element (IE6/7)\r\n\t\t\t * @type boolean\r\n\t\t\t * @default false\r\n\t\t\t */\r\n\t\t\t\u0022bScrollOversize\u0022: false,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Determine if the vertical scrollbar is on the right or left of the\r\n\t\t\t * scrolling container - needed for rtl language layout, although not\r\n\t\t\t * all browsers move the scrollbar (Safari).\r\n\t\t\t * @type boolean\r\n\t\t\t * @default false\r\n\t\t\t */\r\n\t\t\t\u0022bScrollbarLeft\u0022: false,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Flag for if \u00A7getBoundingClientRect\u00A7 is fully supported or not\r\n\t\t\t * @type boolean\r\n\t\t\t * @default false\r\n\t\t\t */\r\n\t\t\t\u0022bBounding\u0022: false,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Browser scrollbar width\r\n\t\t\t * @type integer\r\n\t\t\t * @default 0\r\n\t\t\t */\r\n\t\t\t\u0022barWidth\u0022: 0\r\n\t\t},\r\n\t\r\n\t\r\n\t\t\u0022ajax\u0022: null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Array referencing the nodes which are used for the features. The\r\n\t\t * parameters of this object match what is allowed by sDom - i.e.\r\n\t\t * \u003Cul\u003E\r\n\t\t * \u003Cli\u003E\u0027l\u0027 - Length changing\u003C/li\u003E\r\n\t\t * \u003Cli\u003E\u0027f\u0027 - Filtering input\u003C/li\u003E\r\n\t\t * \u003Cli\u003E\u0027t\u0027 - The table!\u003C/li\u003E\r\n\t\t * \u003Cli\u003E\u0027i\u0027 - Information\u003C/li\u003E\r\n\t\t * \u003Cli\u003E\u0027p\u0027 - Pagination\u003C/li\u003E\r\n\t\t * \u003Cli\u003E\u0027r\u0027 - pRocessing\u003C/li\u003E\r\n\t\t * \u003C/ul\u003E\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\u0022aanFeatures\u0022: [],\r\n\t\r\n\t\t/**\r\n\t\t * Store data information - see {@link DataTable.models.oRow} for detailed\r\n\t\t * information.\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\u0022aoData\u0022: [],\r\n\t\r\n\t\t/**\r\n\t\t * Array of indexes which are in the current display (after filtering etc)\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\u0022aiDisplay\u0022: [],\r\n\t\r\n\t\t/**\r\n\t\t * Array of indexes for display - no filtering\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\u0022aiDisplayMaster\u0022: [],\r\n\t\r\n\t\t/**\r\n\t\t * Map of row ids to data indexes\r\n\t\t * @type object\r\n\t\t * @default {}\r\n\t\t */\r\n\t\t\u0022aIds\u0022: {},\r\n\t\r\n\t\t/**\r\n\t\t * Store information about each column that is in use\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\u0022aoColumns\u0022: [],\r\n\t\r\n\t\t/**\r\n\t\t * Store information about the table\u0027s header\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\u0022aoHeader\u0022: [],\r\n\t\r\n\t\t/**\r\n\t\t * Store information about the table\u0027s footer\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\u0022aoFooter\u0022: [],\r\n\t\r\n\t\t/**\r\n\t\t * Store the applied global search information in case we want to force a\r\n\t\t * research or compare the old search to a new one.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t * @namespace\r\n\t\t * @extends DataTable.models.oSearch\r\n\t\t */\r\n\t\t\u0022oPreviousSearch\u0022: {},\r\n\t\r\n\t\t/**\r\n\t\t * Store the applied search for each column - see\r\n\t\t * {@link DataTable.models.oSearch} for the format that is used for the\r\n\t\t * filtering information for each column.\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\u0022aoPreSearchCols\u0022: [],\r\n\t\r\n\t\t/**\r\n\t\t * Sorting that is applied to the table. Note that the inner arrays are\r\n\t\t * used in the following manner:\r\n\t\t * \u003Cul\u003E\r\n\t\t * \u003Cli\u003EIndex 0 - column number\u003C/li\u003E\r\n\t\t * \u003Cli\u003EIndex 1 - current sorting direction\u003C/li\u003E\r\n\t\t * \u003C/ul\u003E\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t * @type array\r\n\t\t * @todo These inner arrays should really be objects\r\n\t\t */\r\n\t\t\u0022aaSorting\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Sorting that is always applied to the table (i.e. prefixed in front of\r\n\t\t * aaSorting).\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\u0022aaSortingFixed\u0022: [],\r\n\t\r\n\t\t/**\r\n\t\t * Classes to use for the striping of a table.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\u0022asStripeClasses\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * If restoring a table - we should restore its striping classes as well\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\u0022asDestroyStripes\u0022: [],\r\n\t\r\n\t\t/**\r\n\t\t * If restoring a table - we should restore its width\r\n\t\t * @type int\r\n\t\t * @default 0\r\n\t\t */\r\n\t\t\u0022sDestroyWidth\u0022: 0,\r\n\t\r\n\t\t/**\r\n\t\t * Callback functions array for every time a row is inserted (i.e. on a draw).\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\u0022aoRowCallback\u0022: [],\r\n\t\r\n\t\t/**\r\n\t\t * Callback functions for the header on each draw.\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\u0022aoHeaderCallback\u0022: [],\r\n\t\r\n\t\t/**\r\n\t\t * Callback function for the footer on each draw.\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\u0022aoFooterCallback\u0022: [],\r\n\t\r\n\t\t/**\r\n\t\t * Array of callback functions for draw callback functions\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\u0022aoDrawCallback\u0022: [],\r\n\t\r\n\t\t/**\r\n\t\t * Array of callback functions for row created function\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\u0022aoRowCreatedCallback\u0022: [],\r\n\t\r\n\t\t/**\r\n\t\t * Callback functions for just before the table is redrawn. A return of\r\n\t\t * false will be used to cancel the draw.\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\u0022aoPreDrawCallback\u0022: [],\r\n\t\r\n\t\t/**\r\n\t\t * Callback functions for when the table has been initialised.\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\u0022aoInitComplete\u0022: [],\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Callbacks for modifying the settings to be stored for state saving, prior to\r\n\t\t * saving state.\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\u0022aoStateSaveParams\u0022: [],\r\n\t\r\n\t\t/**\r\n\t\t * Callbacks for modifying the settings that have been stored for state saving\r\n\t\t * prior to using the stored values to restore the state.\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\u0022aoStateLoadParams\u0022: [],\r\n\t\r\n\t\t/**\r\n\t\t * Callbacks for operating on the settings object once the saved state has been\r\n\t\t * loaded\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\u0022aoStateLoaded\u0022: [],\r\n\t\r\n\t\t/**\r\n\t\t * Cache the table ID for quick access\r\n\t\t * @type string\r\n\t\t * @default \u003Ci\u003EEmpty string\u003C/i\u003E\r\n\t\t */\r\n\t\t\u0022sTableId\u0022: \u0022\u0022,\r\n\t\r\n\t\t/**\r\n\t\t * The TABLE node for the main table\r\n\t\t * @type node\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\u0022nTable\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Permanent ref to the thead element\r\n\t\t * @type node\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\u0022nTHead\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Permanent ref to the tfoot element - if it exists\r\n\t\t * @type node\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\u0022nTFoot\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Permanent ref to the tbody element\r\n\t\t * @type node\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\u0022nTBody\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Cache the wrapper node (contains all DataTables controlled elements)\r\n\t\t * @type node\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\u0022nTableWrapper\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Indicate if when using server-side processing the loading of data\r\n\t\t * should be deferred until the second draw.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t * @type boolean\r\n\t\t * @default false\r\n\t\t */\r\n\t\t\u0022bDeferLoading\u0022: false,\r\n\t\r\n\t\t/**\r\n\t\t * Indicate if all required information has been read in\r\n\t\t * @type boolean\r\n\t\t * @default false\r\n\t\t */\r\n\t\t\u0022bInitialised\u0022: false,\r\n\t\r\n\t\t/**\r\n\t\t * Information about open rows. Each object in the array has the parameters\r\n\t\t * \u0027nTr\u0027 and \u0027nParent\u0027\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\u0022aoOpenRows\u0022: [],\r\n\t\r\n\t\t/**\r\n\t\t * Dictate the positioning of DataTables\u0027 control elements - see\r\n\t\t * {@link DataTable.model.oInit.sDom}.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t * @type string\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\u0022sDom\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Search delay (in mS)\r\n\t\t * @type integer\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\u0022searchDelay\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Which type of pagination should be used.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t * @type string\r\n\t\t * @default two_button\r\n\t\t */\r\n\t\t\u0022sPaginationType\u0022: \u0022two_button\u0022,\r\n\t\r\n\t\t/**\r\n\t\t * The state duration (for \u00A7stateSave\u00A7) in seconds.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t * @type int\r\n\t\t * @default 0\r\n\t\t */\r\n\t\t\u0022iStateDuration\u0022: 0,\r\n\t\r\n\t\t/**\r\n\t\t * Array of callback functions for state saving. Each array element is an\r\n\t\t * object with the following parameters:\r\n\t\t * \u003Cul\u003E\r\n\t\t * \u003Cli\u003Efunction:fn - function to call. Takes two parameters, oSettings\r\n\t\t * and the JSON string to save that has been thus far created. Returns\r\n\t\t * a JSON string to be inserted into a json object\r\n\t\t * (i.e. \u0027\u0022param\u0022: [ 0, 1, 2]\u0027)\u003C/li\u003E\r\n\t\t * \u003Cli\u003Estring:sName - name of callback\u003C/li\u003E\r\n\t\t * \u003C/ul\u003E\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\u0022aoStateSave\u0022: [],\r\n\t\r\n\t\t/**\r\n\t\t * Array of callback functions for state loading. Each array element is an\r\n\t\t * object with the following parameters:\r\n\t\t * \u003Cul\u003E\r\n\t\t * \u003Cli\u003Efunction:fn - function to call. Takes two parameters, oSettings\r\n\t\t * and the object stored. May return false to cancel state loading\u003C/li\u003E\r\n\t\t * \u003Cli\u003Estring:sName - name of callback\u003C/li\u003E\r\n\t\t * \u003C/ul\u003E\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\u0022aoStateLoad\u0022: [],\r\n\t\r\n\t\t/**\r\n\t\t * State that was saved. Useful for back reference\r\n\t\t * @type object\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\u0022oSavedState\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * State that was loaded. Useful for back reference\r\n\t\t * @type object\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\u0022oLoadedState\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Source url for AJAX data for the table.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t * @type string\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\u0022sAjaxSource\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Property from a given object from which to read the table data from. This\r\n\t\t * can be an empty string (when not server-side processing), in which case\r\n\t\t * it is assumed an an array is given directly.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t * @type string\r\n\t\t */\r\n\t\t\u0022sAjaxDataProp\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * The last jQuery XHR object that was used for server-side data gathering.\r\n\t\t * This can be used for working with the XHR information in one of the\r\n\t\t * callbacks\r\n\t\t * @type object\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\u0022jqXHR\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * JSON returned from the server in the last Ajax request\r\n\t\t * @type object\r\n\t\t * @default undefined\r\n\t\t */\r\n\t\t\u0022json\u0022: undefined,\r\n\t\r\n\t\t/**\r\n\t\t * Data submitted as part of the last Ajax request\r\n\t\t * @type object\r\n\t\t * @default undefined\r\n\t\t */\r\n\t\t\u0022oAjaxData\u0022: undefined,\r\n\t\r\n\t\t/**\r\n\t\t * Function to get the server-side data.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t * @type function\r\n\t\t */\r\n\t\t\u0022fnServerData\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Functions which are called prior to sending an Ajax request so extra\r\n\t\t * parameters can easily be sent to the server\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\u0022aoServerParams\u0022: [],\r\n\t\r\n\t\t/**\r\n\t\t * Send the XHR HTTP method - GET or POST (could be PUT or DELETE if\r\n\t\t * required).\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t * @type string\r\n\t\t */\r\n\t\t\u0022sServerMethod\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Format numbers for display.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t * @type function\r\n\t\t */\r\n\t\t\u0022fnFormatNumber\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * List of options that can be used for the user selectable length menu.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\u0022aLengthMenu\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Counter for the draws that the table does. Also used as a tracker for\r\n\t\t * server-side processing\r\n\t\t * @type int\r\n\t\t * @default 0\r\n\t\t */\r\n\t\t\u0022iDraw\u0022: 0,\r\n\t\r\n\t\t/**\r\n\t\t * Indicate if a redraw is being done - useful for Ajax\r\n\t\t * @type boolean\r\n\t\t * @default false\r\n\t\t */\r\n\t\t\u0022bDrawing\u0022: false,\r\n\t\r\n\t\t/**\r\n\t\t * Draw index (iDraw) of the last error when parsing the returned data\r\n\t\t * @type int\r\n\t\t * @default -1\r\n\t\t */\r\n\t\t\u0022iDrawError\u0022: -1,\r\n\t\r\n\t\t/**\r\n\t\t * Paging display length\r\n\t\t * @type int\r\n\t\t * @default 10\r\n\t\t */\r\n\t\t\u0022_iDisplayLength\u0022: 10,\r\n\t\r\n\t\t/**\r\n\t\t * Paging start point - aiDisplay index\r\n\t\t * @type int\r\n\t\t * @default 0\r\n\t\t */\r\n\t\t\u0022_iDisplayStart\u0022: 0,\r\n\t\r\n\t\t/**\r\n\t\t * Server-side processing - number of records in the result set\r\n\t\t * (i.e. before filtering), Use fnRecordsTotal rather than\r\n\t\t * this property to get the value of the number of records, regardless of\r\n\t\t * the server-side processing setting.\r\n\t\t * @type int\r\n\t\t * @default 0\r\n\t\t * @private\r\n\t\t */\r\n\t\t\u0022_iRecordsTotal\u0022: 0,\r\n\t\r\n\t\t/**\r\n\t\t * Server-side processing - number of records in the current display set\r\n\t\t * (i.e. after filtering). Use fnRecordsDisplay rather than\r\n\t\t * this property to get the value of the number of records, regardless of\r\n\t\t * the server-side processing setting.\r\n\t\t * @type boolean\r\n\t\t * @default 0\r\n\t\t * @private\r\n\t\t */\r\n\t\t\u0022_iRecordsDisplay\u0022: 0,\r\n\t\r\n\t\t/**\r\n\t\t * The classes to use for the table\r\n\t\t * @type object\r\n\t\t * @default {}\r\n\t\t */\r\n\t\t\u0022oClasses\u0022: {},\r\n\t\r\n\t\t/**\r\n\t\t * Flag attached to the settings object so you can check in the draw\r\n\t\t * callback if filtering has been done in the draw. Deprecated in favour of\r\n\t\t * events.\r\n\t\t * @type boolean\r\n\t\t * @default false\r\n\t\t * @deprecated\r\n\t\t */\r\n\t\t\u0022bFiltered\u0022: false,\r\n\t\r\n\t\t/**\r\n\t\t * Flag attached to the settings object so you can check in the draw\r\n\t\t * callback if sorting has been done in the draw. Deprecated in favour of\r\n\t\t * events.\r\n\t\t * @type boolean\r\n\t\t * @default false\r\n\t\t * @deprecated\r\n\t\t */\r\n\t\t\u0022bSorted\u0022: false,\r\n\t\r\n\t\t/**\r\n\t\t * Indicate that if multiple rows are in the header and there is more than\r\n\t\t * one unique cell per column, if the top one (true) or bottom one (false)\r\n\t\t * should be used for sorting / title by DataTables.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t * @type boolean\r\n\t\t */\r\n\t\t\u0022bSortCellsTop\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Initialisation object that is used for the table\r\n\t\t * @type object\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\u0022oInit\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Destroy callback functions - for plug-ins to attach themselves to the\r\n\t\t * destroy so they can clean up markup and events.\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\u0022aoDestroyCallback\u0022: [],\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Get the number of records in the current record set, before filtering\r\n\t\t * @type function\r\n\t\t */\r\n\t\t\u0022fnRecordsTotal\u0022: function ()\r\n\t\t{\r\n\t\t\treturn _fnDataSource( this ) == \u0027ssp\u0027 ?\r\n\t\t\t\tthis._iRecordsTotal * 1 :\r\n\t\t\t\tthis.aiDisplayMaster.length;\r\n\t\t},\r\n\t\r\n\t\t/**\r\n\t\t * Get the number of records in the current record set, after filtering\r\n\t\t * @type function\r\n\t\t */\r\n\t\t\u0022fnRecordsDisplay\u0022: function ()\r\n\t\t{\r\n\t\t\treturn _fnDataSource( this ) == \u0027ssp\u0027 ?\r\n\t\t\t\tthis._iRecordsDisplay * 1 :\r\n\t\t\t\tthis.aiDisplay.length;\r\n\t\t},\r\n\t\r\n\t\t/**\r\n\t\t * Get the display end point - aiDisplay index\r\n\t\t * @type function\r\n\t\t */\r\n\t\t\u0022fnDisplayEnd\u0022: function ()\r\n\t\t{\r\n\t\t\tvar\r\n\t\t\t\tlen = this._iDisplayLength,\r\n\t\t\t\tstart = this._iDisplayStart,\r\n\t\t\t\tcalc = start \u002B len,\r\n\t\t\t\trecords = this.aiDisplay.length,\r\n\t\t\t\tfeatures = this.oFeatures,\r\n\t\t\t\tpaginate = features.bPaginate;\r\n\t\r\n\t\t\tif ( features.bServerSide ) {\r\n\t\t\t\treturn paginate === false || len === -1 ?\r\n\t\t\t\t\tstart \u002B records :\r\n\t\t\t\t\tMath.min( start\u002Blen, this._iRecordsDisplay );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treturn ! paginate || calc\u003Erecords || len===-1 ?\r\n\t\t\t\t\trecords :\r\n\t\t\t\t\tcalc;\r\n\t\t\t}\r\n\t\t},\r\n\t\r\n\t\t/**\r\n\t\t * The DataTables object for this table\r\n\t\t * @type object\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\u0022oInstance\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Unique identifier for each instance of the DataTables object. If there\r\n\t\t * is an ID on the table node, then it takes that value, otherwise an\r\n\t\t * incrementing internal counter is used.\r\n\t\t * @type string\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\u0022sInstance\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * tabindex attribute value that is added to DataTables control elements, allowing\r\n\t\t * keyboard navigation of the table and its controls.\r\n\t\t */\r\n\t\t\u0022iTabIndex\u0022: 0,\r\n\t\r\n\t\t/**\r\n\t\t * DIV container for the footer scrolling table if scrolling\r\n\t\t */\r\n\t\t\u0022nScrollHead\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * DIV container for the footer scrolling table if scrolling\r\n\t\t */\r\n\t\t\u0022nScrollFoot\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Last applied sort\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\u0022aLastSort\u0022: [],\r\n\t\r\n\t\t/**\r\n\t\t * Stored plug-in instances\r\n\t\t * @type object\r\n\t\t * @default {}\r\n\t\t */\r\n\t\t\u0022oPlugins\u0022: {},\r\n\t\r\n\t\t/**\r\n\t\t * Function used to get a row\u0027s id from the row\u0027s data\r\n\t\t * @type function\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\u0022rowIdFn\u0022: null,\r\n\t\r\n\t\t/**\r\n\t\t * Data location where to store a row\u0027s id\r\n\t\t * @type string\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\u0022rowId\u0022: null\r\n\t};\r\n\r\n\t/**\r\n\t * Extension object for DataTables that is used to provide all extension\r\n\t * options.\r\n\t *\r\n\t * Note that the \u00A7DataTable.ext\u00A7 object is available through\r\n\t * \u00A7jQuery.fn.dataTable.ext\u00A7 where it may be accessed and manipulated. It is\r\n\t * also aliased to \u00A7jQuery.fn.dataTableExt\u00A7 for historic reasons.\r\n\t * @namespace\r\n\t * @extends DataTable.models.ext\r\n\t */\r\n\t\r\n\t\r\n\t/**\r\n\t * DataTables extensions\r\n\t * \r\n\t * This namespace acts as a collection area for plug-ins that can be used to\r\n\t * extend DataTables capabilities. Indeed many of the build in methods\r\n\t * use this method to provide their own capabilities (sorting methods for\r\n\t * example).\r\n\t *\r\n\t * Note that this namespace is aliased to \u00A7jQuery.fn.dataTableExt\u00A7 for legacy\r\n\t * reasons\r\n\t *\r\n\t * @namespace\r\n\t */\r\n\tDataTable.ext = _ext = {\r\n\t\t/**\r\n\t\t * Buttons. For use with the Buttons extension for DataTables. This is\r\n\t\t * defined here so other extensions can define buttons regardless of load\r\n\t\t * order. It is _not_ used by DataTables core.\r\n\t\t *\r\n\t\t * @type object\r\n\t\t * @default {}\r\n\t\t */\r\n\t\tbuttons: {},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Element class names\r\n\t\t *\r\n\t\t * @type object\r\n\t\t * @default {}\r\n\t\t */\r\n\t\tclasses: {},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * DataTables build type (expanded by the download builder)\r\n\t\t *\r\n\t\t * @type string\r\n\t\t */\r\n\t\tbuilder: \u0022-source-\u0022,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Error reporting.\r\n\t\t * \r\n\t\t * How should DataTables report an error. Can take the value \u0027alert\u0027,\r\n\t\t * \u0027throw\u0027, \u0027none\u0027 or a function.\r\n\t\t *\r\n\t\t * @type string|function\r\n\t\t * @default alert\r\n\t\t */\r\n\t\terrMode: \u0022alert\u0022,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Feature plug-ins.\r\n\t\t * \r\n\t\t * This is an array of objects which describe the feature plug-ins that are\r\n\t\t * available to DataTables. These feature plug-ins are then available for\r\n\t\t * use through the \u00A7dom\u00A7 initialisation option.\r\n\t\t * \r\n\t\t * Each feature plug-in is described by an object which must have the\r\n\t\t * following properties:\r\n\t\t * \r\n\t\t * * \u00A7fnInit\u00A7 - function that is used to initialise the plug-in,\r\n\t\t * * \u00A7cFeature\u00A7 - a character so the feature can be enabled by the \u00A7dom\u00A7\r\n\t\t * instillation option. This is case sensitive.\r\n\t\t *\r\n\t\t * The \u00A7fnInit\u00A7 function has the following input parameters:\r\n\t\t *\r\n\t\t * 1. \u00A7{object}\u00A7 DataTables settings object: see\r\n\t\t * {@link DataTable.models.oSettings}\r\n\t\t *\r\n\t\t * And the following return is expected:\r\n\t\t * \r\n\t\t * * {node|null} The element which contains your feature. Note that the\r\n\t\t * return may also be void if your plug-in does not require to inject any\r\n\t\t * DOM elements into DataTables control (\u00A7dom\u00A7) - for example this might\r\n\t\t * be useful when developing a plug-in which allows table control via\r\n\t\t * keyboard entry\r\n\t\t *\r\n\t\t * @type array\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $.fn.dataTable.ext.features.push( {\r\n\t\t * \u0022fnInit\u0022: function( oSettings ) {\r\n\t\t * return new TableTools( { \u0022oDTSettings\u0022: oSettings } );\r\n\t\t * },\r\n\t\t * \u0022cFeature\u0022: \u0022T\u0022\r\n\t\t * } );\r\n\t\t */\r\n\t\tfeature: [],\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Row searching.\r\n\t\t * \r\n\t\t * This method of searching is complimentary to the default type based\r\n\t\t * searching, and a lot more comprehensive as it allows you complete control\r\n\t\t * over the searching logic. Each element in this array is a function\r\n\t\t * (parameters described below) that is called for every row in the table,\r\n\t\t * and your logic decides if it should be included in the searching data set\r\n\t\t * or not.\r\n\t\t *\r\n\t\t * Searching functions have the following input parameters:\r\n\t\t *\r\n\t\t * 1. \u00A7{object}\u00A7 DataTables settings object: see\r\n\t\t * {@link DataTable.models.oSettings}\r\n\t\t * 2. \u00A7{array|object}\u00A7 Data for the row to be processed (same as the\r\n\t\t * original format that was passed in as the data source, or an array\r\n\t\t * from a DOM data source\r\n\t\t * 3. \u00A7{int}\u00A7 Row index ({@link DataTable.models.oSettings.aoData}), which\r\n\t\t * can be useful to retrieve the \u00A7TR\u00A7 element if you need DOM interaction.\r\n\t\t *\r\n\t\t * And the following return is expected:\r\n\t\t *\r\n\t\t * * {boolean} Include the row in the searched result set (true) or not\r\n\t\t * (false)\r\n\t\t *\r\n\t\t * Note that as with the main search ability in DataTables, technically this\r\n\t\t * is \u0022filtering\u0022, since it is subtractive. However, for consistency in\r\n\t\t * naming we call it searching here.\r\n\t\t *\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // The following example shows custom search being applied to the\r\n\t\t * // fourth column (i.e. the data[3] index) based on two input values\r\n\t\t * // from the end-user, matching the data in a certain range.\r\n\t\t * $.fn.dataTable.ext.search.push(\r\n\t\t * function( settings, data, dataIndex ) {\r\n\t\t * var min = document.getElementById(\u0027min\u0027).value * 1;\r\n\t\t * var max = document.getElementById(\u0027max\u0027).value * 1;\r\n\t\t * var version = data[3] == \u0022-\u0022 ? 0 : data[3]*1;\r\n\t\t *\r\n\t\t * if ( min == \u0022\u0022 \u0026\u0026 max == \u0022\u0022 ) {\r\n\t\t * return true;\r\n\t\t * }\r\n\t\t * else if ( min == \u0022\u0022 \u0026\u0026 version \u003C max ) {\r\n\t\t * return true;\r\n\t\t * }\r\n\t\t * else if ( min \u003C version \u0026\u0026 \u0022\u0022 == max ) {\r\n\t\t * return true;\r\n\t\t * }\r\n\t\t * else if ( min \u003C version \u0026\u0026 version \u003C max ) {\r\n\t\t * return true;\r\n\t\t * }\r\n\t\t * return false;\r\n\t\t * }\r\n\t\t * );\r\n\t\t */\r\n\t\tsearch: [],\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Selector extensions\r\n\t\t *\r\n\t\t * The \u00A7selector\u00A7 option can be used to extend the options available for the\r\n\t\t * selector modifier options (\u00A7selector-modifier\u00A7 object data type) that\r\n\t\t * each of the three built in selector types offer (row, column and cell \u002B\r\n\t\t * their plural counterparts). For example the Select extension uses this\r\n\t\t * mechanism to provide an option to select only rows, columns and cells\r\n\t\t * that have been marked as selected by the end user (\u00A7{selected: true}\u00A7),\r\n\t\t * which can be used in conjunction with the existing built in selector\r\n\t\t * options.\r\n\t\t *\r\n\t\t * Each property is an array to which functions can be pushed. The functions\r\n\t\t * take three attributes:\r\n\t\t *\r\n\t\t * * Settings object for the host table\r\n\t\t * * Options object (\u00A7selector-modifier\u00A7 object type)\r\n\t\t * * Array of selected item indexes\r\n\t\t *\r\n\t\t * The return is an array of the resulting item indexes after the custom\r\n\t\t * selector has been applied.\r\n\t\t *\r\n\t\t * @type object\r\n\t\t */\r\n\t\tselector: {\r\n\t\t\tcell: [],\r\n\t\t\tcolumn: [],\r\n\t\t\trow: []\r\n\t\t},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Internal functions, exposed for used in plug-ins.\r\n\t\t * \r\n\t\t * Please note that you should not need to use the internal methods for\r\n\t\t * anything other than a plug-in (and even then, try to avoid if possible).\r\n\t\t * The internal function may change between releases.\r\n\t\t *\r\n\t\t * @type object\r\n\t\t * @default {}\r\n\t\t */\r\n\t\tinternal: {},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Legacy configuration options. Enable and disable legacy options that\r\n\t\t * are available in DataTables.\r\n\t\t *\r\n\t\t * @type object\r\n\t\t */\r\n\t\tlegacy: {\r\n\t\t\t/**\r\n\t\t\t * Enable / disable DataTables 1.9 compatible server-side processing\r\n\t\t\t * requests\r\n\t\t\t *\r\n\t\t\t * @type boolean\r\n\t\t\t * @default null\r\n\t\t\t */\r\n\t\t\tajax: null\r\n\t\t},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Pagination plug-in methods.\r\n\t\t * \r\n\t\t * Each entry in this object is a function and defines which buttons should\r\n\t\t * be shown by the pagination rendering method that is used for the table:\r\n\t\t * {@link DataTable.ext.renderer.pageButton}. The renderer addresses how the\r\n\t\t * buttons are displayed in the document, while the functions here tell it\r\n\t\t * what buttons to display. This is done by returning an array of button\r\n\t\t * descriptions (what each button will do).\r\n\t\t *\r\n\t\t * Pagination types (the four built in options and any additional plug-in\r\n\t\t * options defined here) can be used through the \u00A7paginationType\u00A7\r\n\t\t * initialisation parameter.\r\n\t\t *\r\n\t\t * The functions defined take two parameters:\r\n\t\t *\r\n\t\t * 1. \u00A7{int} page\u00A7 The current page index\r\n\t\t * 2. \u00A7{int} pages\u00A7 The number of pages in the table\r\n\t\t *\r\n\t\t * Each function is expected to return an array where each element of the\r\n\t\t * array can be one of:\r\n\t\t *\r\n\t\t * * \u00A7first\u00A7 - Jump to first page when activated\r\n\t\t * * \u00A7last\u00A7 - Jump to last page when activated\r\n\t\t * * \u00A7previous\u00A7 - Show previous page when activated\r\n\t\t * * \u00A7next\u00A7 - Show next page when activated\r\n\t\t * * \u00A7{int}\u00A7 - Show page of the index given\r\n\t\t * * \u00A7{array}\u00A7 - A nested array containing the above elements to add a\r\n\t\t * containing \u0027DIV\u0027 element (might be useful for styling).\r\n\t\t *\r\n\t\t * Note that DataTables v1.9- used this object slightly differently whereby\r\n\t\t * an object with two functions would be defined for each plug-in. That\r\n\t\t * ability is still supported by DataTables 1.10\u002B to provide backwards\r\n\t\t * compatibility, but this option of use is now decremented and no longer\r\n\t\t * documented in DataTables 1.10\u002B.\r\n\t\t *\r\n\t\t * @type object\r\n\t\t * @default {}\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Show previous, next and current page buttons only\r\n\t\t * $.fn.dataTableExt.oPagination.current = function ( page, pages ) {\r\n\t\t * return [ \u0027previous\u0027, page, \u0027next\u0027 ];\r\n\t\t * };\r\n\t\t */\r\n\t\tpager: {},\r\n\t\r\n\t\r\n\t\trenderer: {\r\n\t\t\tpageButton: {},\r\n\t\t\theader: {}\r\n\t\t},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Ordering plug-ins - custom data source\r\n\t\t * \r\n\t\t * The extension options for ordering of data available here is complimentary\r\n\t\t * to the default type based ordering that DataTables typically uses. It\r\n\t\t * allows much greater control over the the data that is being used to\r\n\t\t * order a column, but is necessarily therefore more complex.\r\n\t\t * \r\n\t\t * This type of ordering is useful if you want to do ordering based on data\r\n\t\t * live from the DOM (for example the contents of an \u0027input\u0027 element) rather\r\n\t\t * than just the static string that DataTables knows of.\r\n\t\t * \r\n\t\t * The way these plug-ins work is that you create an array of the values you\r\n\t\t * wish to be ordering for the column in question and then return that\r\n\t\t * array. The data in the array much be in the index order of the rows in\r\n\t\t * the table (not the currently ordering order!). Which order data gathering\r\n\t\t * function is run here depends on the \u00A7dt-init columns.orderDataType\u00A7\r\n\t\t * parameter that is used for the column (if any).\r\n\t\t *\r\n\t\t * The functions defined take two parameters:\r\n\t\t *\r\n\t\t * 1. \u00A7{object}\u00A7 DataTables settings object: see\r\n\t\t * {@link DataTable.models.oSettings}\r\n\t\t * 2. \u00A7{int}\u00A7 Target column index\r\n\t\t *\r\n\t\t * Each function is expected to return an array:\r\n\t\t *\r\n\t\t * * \u00A7{array}\u00A7 Data for the column to be ordering upon\r\n\t\t *\r\n\t\t * @type array\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Ordering using \u00A7input\u00A7 node values\r\n\t\t * $.fn.dataTable.ext.order[\u0027dom-text\u0027] = function ( settings, col )\r\n\t\t * {\r\n\t\t * return this.api().column( col, {order:\u0027index\u0027} ).nodes().map( function ( td, i ) {\r\n\t\t * return $(\u0027input\u0027, td).val();\r\n\t\t * } );\r\n\t\t * }\r\n\t\t */\r\n\t\torder: {},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Type based plug-ins.\r\n\t\t *\r\n\t\t * Each column in DataTables has a type assigned to it, either by automatic\r\n\t\t * detection or by direct assignment using the \u00A7type\u00A7 option for the column.\r\n\t\t * The type of a column will effect how it is ordering and search (plug-ins\r\n\t\t * can also make use of the column type if required).\r\n\t\t *\r\n\t\t * @namespace\r\n\t\t */\r\n\t\ttype: {\r\n\t\t\t/**\r\n\t\t\t * Type detection functions.\r\n\t\t\t *\r\n\t\t\t * The functions defined in this object are used to automatically detect\r\n\t\t\t * a column\u0027s type, making initialisation of DataTables super easy, even\r\n\t\t\t * when complex data is in the table.\r\n\t\t\t *\r\n\t\t\t * The functions defined take two parameters:\r\n\t\t\t *\r\n\t\t * 1. \u00A7{*}\u00A7 Data from the column cell to be analysed\r\n\t\t * 2. \u00A7{settings}\u00A7 DataTables settings object. This can be used to\r\n\t\t * perform context specific type detection - for example detection\r\n\t\t * based on language settings such as using a comma for a decimal\r\n\t\t * place. Generally speaking the options from the settings will not\r\n\t\t * be required\r\n\t\t\t *\r\n\t\t\t * Each function is expected to return:\r\n\t\t\t *\r\n\t\t\t * * \u00A7{string|null}\u00A7 Data type detected, or null if unknown (and thus\r\n\t\t\t * pass it on to the other type detection functions.\r\n\t\t\t *\r\n\t\t\t * @type array\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * // Currency type detection plug-in:\r\n\t\t\t * $.fn.dataTable.ext.type.detect.push(\r\n\t\t\t * function ( data, settings ) {\r\n\t\t\t * // Check the numeric part\r\n\t\t\t * if ( ! data.substring(1).match(/[0-9]/) ) {\r\n\t\t\t * return null;\r\n\t\t\t * }\r\n\t\t\t *\r\n\t\t\t * // Check prefixed by currency\r\n\t\t\t * if ( data.charAt(0) == \u0027$\u0027 || data.charAt(0) == \u0027\u0026pound;\u0027 ) {\r\n\t\t\t * return \u0027currency\u0027;\r\n\t\t\t * }\r\n\t\t\t * return null;\r\n\t\t\t * }\r\n\t\t\t * );\r\n\t\t\t */\r\n\t\t\tdetect: [],\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Type based search formatting.\r\n\t\t\t *\r\n\t\t\t * The type based searching functions can be used to pre-format the\r\n\t\t\t * data to be search on. For example, it can be used to strip HTML\r\n\t\t\t * tags or to de-format telephone numbers for numeric only searching.\r\n\t\t\t *\r\n\t\t\t * Note that is a search is not defined for a column of a given type,\r\n\t\t\t * no search formatting will be performed.\r\n\t\t\t * \r\n\t\t\t * Pre-processing of searching data plug-ins - When you assign the sType\r\n\t\t\t * for a column (or have it automatically detected for you by DataTables\r\n\t\t\t * or a type detection plug-in), you will typically be using this for\r\n\t\t\t * custom sorting, but it can also be used to provide custom searching\r\n\t\t\t * by allowing you to pre-processing the data and returning the data in\r\n\t\t\t * the format that should be searched upon. This is done by adding\r\n\t\t\t * functions this object with a parameter name which matches the sType\r\n\t\t\t * for that target column. This is the corollary of \u003Ci\u003EafnSortData\u003C/i\u003E\r\n\t\t\t * for searching data.\r\n\t\t\t *\r\n\t\t\t * The functions defined take a single parameter:\r\n\t\t\t *\r\n\t\t * 1. \u00A7{*}\u00A7 Data from the column cell to be prepared for searching\r\n\t\t\t *\r\n\t\t\t * Each function is expected to return:\r\n\t\t\t *\r\n\t\t\t * * \u00A7{string|null}\u00A7 Formatted string that will be used for the searching.\r\n\t\t\t *\r\n\t\t\t * @type object\r\n\t\t\t * @default {}\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * $.fn.dataTable.ext.type.search[\u0027title-numeric\u0027] = function ( d ) {\r\n\t\t\t * return d.replace(/\\n/g,\u0022 \u0022).replace( /\u003C.*?\u003E/g, \u0022\u0022 );\r\n\t\t\t * }\r\n\t\t\t */\r\n\t\t\tsearch: {},\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Type based ordering.\r\n\t\t\t *\r\n\t\t\t * The column type tells DataTables what ordering to apply to the table\r\n\t\t\t * when a column is sorted upon. The order for each type that is defined,\r\n\t\t\t * is defined by the functions available in this object.\r\n\t\t\t *\r\n\t\t\t * Each ordering option can be described by three properties added to\r\n\t\t\t * this object:\r\n\t\t\t *\r\n\t\t\t * * \u00A7{type}-pre\u00A7 - Pre-formatting function\r\n\t\t\t * * \u00A7{type}-asc\u00A7 - Ascending order function\r\n\t\t\t * * \u00A7{type}-desc\u00A7 - Descending order function\r\n\t\t\t *\r\n\t\t\t * All three can be used together, only \u00A7{type}-pre\u00A7 or only\r\n\t\t\t * \u00A7{type}-asc\u00A7 and \u00A7{type}-desc\u00A7 together. It is generally recommended\r\n\t\t\t * that only \u00A7{type}-pre\u00A7 is used, as this provides the optimal\r\n\t\t\t * implementation in terms of speed, although the others are provided\r\n\t\t\t * for compatibility with existing Javascript sort functions.\r\n\t\t\t *\r\n\t\t\t * \u00A7{type}-pre\u00A7: Functions defined take a single parameter:\r\n\t\t\t *\r\n\t\t * 1. \u00A7{*}\u00A7 Data from the column cell to be prepared for ordering\r\n\t\t\t *\r\n\t\t\t * And return:\r\n\t\t\t *\r\n\t\t\t * * \u00A7{*}\u00A7 Data to be sorted upon\r\n\t\t\t *\r\n\t\t\t * \u00A7{type}-asc\u00A7 and \u00A7{type}-desc\u00A7: Functions are typical Javascript sort\r\n\t\t\t * functions, taking two parameters:\r\n\t\t\t *\r\n\t\t * 1. \u00A7{*}\u00A7 Data to compare to the second parameter\r\n\t\t * 2. \u00A7{*}\u00A7 Data to compare to the first parameter\r\n\t\t\t *\r\n\t\t\t * And returning:\r\n\t\t\t *\r\n\t\t\t * * \u00A7{*}\u00A7 Ordering match: \u003C0 if first parameter should be sorted lower\r\n\t\t\t * than the second parameter, ===0 if the two parameters are equal and\r\n\t\t\t * \u003E0 if the first parameter should be sorted height than the second\r\n\t\t\t * parameter.\r\n\t\t\t * \r\n\t\t\t * @type object\r\n\t\t\t * @default {}\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * // Numeric ordering of formatted numbers with a pre-formatter\r\n\t\t\t * $.extend( $.fn.dataTable.ext.type.order, {\r\n\t\t\t * \u0022string-pre\u0022: function(x) {\r\n\t\t\t * a = (a === \u0022-\u0022 || a === \u0022\u0022) ? 0 : a.replace( /[^\\d\\-\\.]/g, \u0022\u0022 );\r\n\t\t\t * return parseFloat( a );\r\n\t\t\t * }\r\n\t\t\t * } );\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * // Case-sensitive string ordering, with no pre-formatting method\r\n\t\t\t * $.extend( $.fn.dataTable.ext.order, {\r\n\t\t\t * \u0022string-case-asc\u0022: function(x,y) {\r\n\t\t\t * return ((x \u003C y) ? -1 : ((x \u003E y) ? 1 : 0));\r\n\t\t\t * },\r\n\t\t\t * \u0022string-case-desc\u0022: function(x,y) {\r\n\t\t\t * return ((x \u003C y) ? 1 : ((x \u003E y) ? -1 : 0));\r\n\t\t\t * }\r\n\t\t\t * } );\r\n\t\t\t */\r\n\t\t\torder: {}\r\n\t\t},\r\n\t\r\n\t\t/**\r\n\t\t * Unique DataTables instance counter\r\n\t\t *\r\n\t\t * @type int\r\n\t\t * @private\r\n\t\t */\r\n\t\t_unique: 0,\r\n\t\r\n\t\r\n\t\t//\r\n\t\t// Depreciated\r\n\t\t// The following properties are retained for backwards compatibility only.\r\n\t\t// The should not be used in new projects and will be removed in a future\r\n\t\t// version\r\n\t\t//\r\n\t\r\n\t\t/**\r\n\t\t * Version check function.\r\n\t\t * @type function\r\n\t\t * @depreciated Since 1.10\r\n\t\t */\r\n\t\tfnVersionCheck: DataTable.fnVersionCheck,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Index for what \u0027this\u0027 index API functions should use\r\n\t\t * @type int\r\n\t\t * @deprecated Since v1.10\r\n\t\t */\r\n\t\tiApiIndex: 0,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * jQuery UI class container\r\n\t\t * @type object\r\n\t\t * @deprecated Since v1.10\r\n\t\t */\r\n\t\toJUIClasses: {},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Software version\r\n\t\t * @type string\r\n\t\t * @deprecated Since v1.10\r\n\t\t */\r\n\t\tsVersion: DataTable.version\r\n\t};\r\n\t\r\n\t\r\n\t//\r\n\t// Backwards compatibility. Alias to pre 1.10 Hungarian notation counter parts\r\n\t//\r\n\t$.extend( _ext, {\r\n\t\tafnFiltering: _ext.search,\r\n\t\taTypes: _ext.type.detect,\r\n\t\tofnSearch: _ext.type.search,\r\n\t\toSort: _ext.type.order,\r\n\t\tafnSortData: _ext.order,\r\n\t\taoFeatures: _ext.feature,\r\n\t\toApi: _ext.internal,\r\n\t\toStdClasses: _ext.classes,\r\n\t\toPagination: _ext.pager\r\n\t} );\r\n\t\r\n\t\r\n\t$.extend( DataTable.ext.classes, {\r\n\t\t\u0022sTable\u0022: \u0022dataTable\u0022,\r\n\t\t\u0022sNoFooter\u0022: \u0022no-footer\u0022,\r\n\t\r\n\t\t/* Paging buttons */\r\n\t\t\u0022sPageButton\u0022: \u0022paginate_button\u0022,\r\n\t\t\u0022sPageButtonActive\u0022: \u0022current\u0022,\r\n\t\t\u0022sPageButtonDisabled\u0022: \u0022disabled\u0022,\r\n\t\r\n\t\t/* Striping classes */\r\n\t\t\u0022sStripeOdd\u0022: \u0022odd\u0022,\r\n\t\t\u0022sStripeEven\u0022: \u0022even\u0022,\r\n\t\r\n\t\t/* Empty row */\r\n\t\t\u0022sRowEmpty\u0022: \u0022dataTables_empty\u0022,\r\n\t\r\n\t\t/* Features */\r\n\t\t\u0022sWrapper\u0022: \u0022dataTables_wrapper\u0022,\r\n\t\t\u0022sFilter\u0022: \u0022dataTables_filter\u0022,\r\n\t\t\u0022sInfo\u0022: \u0022dataTables_info\u0022,\r\n\t\t\u0022sPaging\u0022: \u0022dataTables_paginate paging_\u0022, /* Note that the type is postfixed */\r\n\t\t\u0022sLength\u0022: \u0022dataTables_length\u0022,\r\n\t\t\u0022sProcessing\u0022: \u0022dataTables_processing\u0022,\r\n\t\r\n\t\t/* Sorting */\r\n\t\t\u0022sSortAsc\u0022: \u0022sorting_asc\u0022,\r\n\t\t\u0022sSortDesc\u0022: \u0022sorting_desc\u0022,\r\n\t\t\u0022sSortable\u0022: \u0022sorting\u0022, /* Sortable in both directions */\r\n\t\t\u0022sSortableAsc\u0022: \u0022sorting_desc_disabled\u0022,\r\n\t\t\u0022sSortableDesc\u0022: \u0022sorting_asc_disabled\u0022,\r\n\t\t\u0022sSortableNone\u0022: \u0022sorting_disabled\u0022,\r\n\t\t\u0022sSortColumn\u0022: \u0022sorting_\u0022, /* Note that an int is postfixed for the sorting order */\r\n\t\r\n\t\t/* Filtering */\r\n\t\t\u0022sFilterInput\u0022: \u0022\u0022,\r\n\t\r\n\t\t/* Page length */\r\n\t\t\u0022sLengthSelect\u0022: \u0022\u0022,\r\n\t\r\n\t\t/* Scrolling */\r\n\t\t\u0022sScrollWrapper\u0022: \u0022dataTables_scroll\u0022,\r\n\t\t\u0022sScrollHead\u0022: \u0022dataTables_scrollHead\u0022,\r\n\t\t\u0022sScrollHeadInner\u0022: \u0022dataTables_scrollHeadInner\u0022,\r\n\t\t\u0022sScrollBody\u0022: \u0022dataTables_scrollBody\u0022,\r\n\t\t\u0022sScrollFoot\u0022: \u0022dataTables_scrollFoot\u0022,\r\n\t\t\u0022sScrollFootInner\u0022: \u0022dataTables_scrollFootInner\u0022,\r\n\t\r\n\t\t/* Misc */\r\n\t\t\u0022sHeaderTH\u0022: \u0022\u0022,\r\n\t\t\u0022sFooterTH\u0022: \u0022\u0022,\r\n\t\r\n\t\t// Deprecated\r\n\t\t\u0022sSortJUIAsc\u0022: \u0022\u0022,\r\n\t\t\u0022sSortJUIDesc\u0022: \u0022\u0022,\r\n\t\t\u0022sSortJUI\u0022: \u0022\u0022,\r\n\t\t\u0022sSortJUIAscAllowed\u0022: \u0022\u0022,\r\n\t\t\u0022sSortJUIDescAllowed\u0022: \u0022\u0022,\r\n\t\t\u0022sSortJUIWrapper\u0022: \u0022\u0022,\r\n\t\t\u0022sSortIcon\u0022: \u0022\u0022,\r\n\t\t\u0022sJUIHeader\u0022: \u0022\u0022,\r\n\t\t\u0022sJUIFooter\u0022: \u0022\u0022\r\n\t} );\r\n\t\r\n\t\r\n\tvar extPagination = DataTable.ext.pager;\r\n\t\r\n\tfunction _numbers ( page, pages ) {\r\n\t\tvar\r\n\t\t\tnumbers = [],\r\n\t\t\tbuttons = extPagination.numbers_length,\r\n\t\t\thalf = Math.floor( buttons / 2 ),\r\n\t\t\ti = 1;\r\n\t\r\n\t\tif ( pages \u003C= buttons ) {\r\n\t\t\tnumbers = _range( 0, pages );\r\n\t\t}\r\n\t\telse if ( page \u003C= half ) {\r\n\t\t\tnumbers = _range( 0, buttons-2 );\r\n\t\t\tnumbers.push( \u0027ellipsis\u0027 );\r\n\t\t\tnumbers.push( pages-1 );\r\n\t\t}\r\n\t\telse if ( page \u003E= pages - 1 - half ) {\r\n\t\t\tnumbers = _range( pages-(buttons-2), pages );\r\n\t\t\tnumbers.splice( 0, 0, \u0027ellipsis\u0027 ); // no unshift in ie6\r\n\t\t\tnumbers.splice( 0, 0, 0 );\r\n\t\t}\r\n\t\telse {\r\n\t\t\tnumbers = _range( page-half\u002B2, page\u002Bhalf-1 );\r\n\t\t\tnumbers.push( \u0027ellipsis\u0027 );\r\n\t\t\tnumbers.push( pages-1 );\r\n\t\t\tnumbers.splice( 0, 0, \u0027ellipsis\u0027 );\r\n\t\t\tnumbers.splice( 0, 0, 0 );\r\n\t\t}\r\n\t\r\n\t\tnumbers.DT_el = \u0027span\u0027;\r\n\t\treturn numbers;\r\n\t}\r\n\t\r\n\t\r\n\t$.extend( extPagination, {\r\n\t\tsimple: function ( page, pages ) {\r\n\t\t\treturn [ \u0027previous\u0027, \u0027next\u0027 ];\r\n\t\t},\r\n\t\r\n\t\tfull: function ( page, pages ) {\r\n\t\t\treturn [ \u0027first\u0027, \u0027previous\u0027, \u0027next\u0027, \u0027last\u0027 ];\r\n\t\t},\r\n\t\r\n\t\tnumbers: function ( page, pages ) {\r\n\t\t\treturn [ _numbers(page, pages) ];\r\n\t\t},\r\n\t\r\n\t\tsimple_numbers: function ( page, pages ) {\r\n\t\t\treturn [ \u0027previous\u0027, _numbers(page, pages), \u0027next\u0027 ];\r\n\t\t},\r\n\t\r\n\t\tfull_numbers: function ( page, pages ) {\r\n\t\t\treturn [ \u0027first\u0027, \u0027previous\u0027, _numbers(page, pages), \u0027next\u0027, \u0027last\u0027 ];\r\n\t\t},\r\n\t\t\r\n\t\tfirst_last_numbers: function (page, pages) {\r\n\t \t\treturn [\u0027first\u0027, _numbers(page, pages), \u0027last\u0027];\r\n\t \t},\r\n\t\r\n\t\t// For testing and plug-ins to use\r\n\t\t_numbers: _numbers,\r\n\t\r\n\t\t// Number of number buttons (including ellipsis) to show. _Must be odd!_\r\n\t\tnumbers_length: 7\r\n\t} );\r\n\t\r\n\t\r\n\t$.extend( true, DataTable.ext.renderer, {\r\n\t\tpageButton: {\r\n\t\t\t_: function ( settings, host, idx, buttons, page, pages ) {\r\n\t\t\t\tvar classes = settings.oClasses;\r\n\t\t\t\tvar lang = settings.oLanguage.oPaginate;\r\n\t\t\t\tvar aria = settings.oLanguage.oAria.paginate || {};\r\n\t\t\t\tvar btnDisplay, btnClass, counter=0;\r\n\t\r\n\t\t\t\tvar attach = function( container, buttons ) {\r\n\t\t\t\t\tvar i, ien, node, button, tabIndex;\r\n\t\t\t\t\tvar disabledClass = classes.sPageButtonDisabled;\r\n\t\t\t\t\tvar clickHandler = function ( e ) {\r\n\t\t\t\t\t\t_fnPageChange( settings, e.data.action, true );\r\n\t\t\t\t\t};\r\n\t\r\n\t\t\t\t\tfor ( i=0, ien=buttons.length ; i\u003Cien ; i\u002B\u002B ) {\r\n\t\t\t\t\t\tbutton = buttons[i];\r\n\t\r\n\t\t\t\t\t\tif ( Array.isArray( button ) ) {\r\n\t\t\t\t\t\t\tvar inner = $( \u0027\u003C\u0027\u002B(button.DT_el || \u0027div\u0027)\u002B\u0027/\u003E\u0027 )\r\n\t\t\t\t\t\t\t\t.appendTo( container );\r\n\t\t\t\t\t\t\tattach( inner, button );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tbtnDisplay = null;\r\n\t\t\t\t\t\t\tbtnClass = button;\r\n\t\t\t\t\t\t\ttabIndex = settings.iTabIndex;\r\n\t\r\n\t\t\t\t\t\t\tswitch ( button ) {\r\n\t\t\t\t\t\t\t\tcase \u0027ellipsis\u0027:\r\n\t\t\t\t\t\t\t\t\tcontainer.append(\u0027\u003Cspan class=\u0022ellipsis\u0022\u003E\u0026#x2026;\u003C/span\u003E\u0027);\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\r\n\t\t\t\t\t\t\t\tcase \u0027first\u0027:\r\n\t\t\t\t\t\t\t\t\tbtnDisplay = lang.sFirst;\r\n\t\r\n\t\t\t\t\t\t\t\t\tif ( page === 0 ) {\r\n\t\t\t\t\t\t\t\t\t\ttabIndex = -1;\r\n\t\t\t\t\t\t\t\t\t\tbtnClass \u002B= \u0027 \u0027 \u002B disabledClass;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\r\n\t\t\t\t\t\t\t\tcase \u0027previous\u0027:\r\n\t\t\t\t\t\t\t\t\tbtnDisplay = lang.sPrevious;\r\n\t\r\n\t\t\t\t\t\t\t\t\tif ( page === 0 ) {\r\n\t\t\t\t\t\t\t\t\t\ttabIndex = -1;\r\n\t\t\t\t\t\t\t\t\t\tbtnClass \u002B= \u0027 \u0027 \u002B disabledClass;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\r\n\t\t\t\t\t\t\t\tcase \u0027next\u0027:\r\n\t\t\t\t\t\t\t\t\tbtnDisplay = lang.sNext;\r\n\t\r\n\t\t\t\t\t\t\t\t\tif ( pages === 0 || page === pages-1 ) {\r\n\t\t\t\t\t\t\t\t\t\ttabIndex = -1;\r\n\t\t\t\t\t\t\t\t\t\tbtnClass \u002B= \u0027 \u0027 \u002B disabledClass;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\r\n\t\t\t\t\t\t\t\tcase \u0027last\u0027:\r\n\t\t\t\t\t\t\t\t\tbtnDisplay = lang.sLast;\r\n\t\r\n\t\t\t\t\t\t\t\t\tif ( pages === 0 || page === pages-1 ) {\r\n\t\t\t\t\t\t\t\t\t\ttabIndex = -1;\r\n\t\t\t\t\t\t\t\t\t\tbtnClass \u002B= \u0027 \u0027 \u002B disabledClass;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\r\n\t\t\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\t\t\tbtnDisplay = settings.fnFormatNumber( button \u002B 1 );\r\n\t\t\t\t\t\t\t\t\tbtnClass = page === button ?\r\n\t\t\t\t\t\t\t\t\t\tclasses.sPageButtonActive : \u0027\u0027;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\t\tif ( btnDisplay !== null ) {\r\n\t\t\t\t\t\t\t\tnode = $(\u0027\u003Ca\u003E\u0027, {\r\n\t\t\t\t\t\t\t\t\t\t\u0027class\u0027: classes.sPageButton\u002B\u0027 \u0027\u002BbtnClass,\r\n\t\t\t\t\t\t\t\t\t\t\u0027aria-controls\u0027: settings.sTableId,\r\n\t\t\t\t\t\t\t\t\t\t\u0027aria-label\u0027: aria[ button ],\r\n\t\t\t\t\t\t\t\t\t\t\u0027data-dt-idx\u0027: counter,\r\n\t\t\t\t\t\t\t\t\t\t\u0027tabindex\u0027: tabIndex,\r\n\t\t\t\t\t\t\t\t\t\t\u0027id\u0027: idx === 0 \u0026\u0026 typeof button === \u0027string\u0027 ?\r\n\t\t\t\t\t\t\t\t\t\t\tsettings.sTableId \u002B\u0027_\u0027\u002B button :\r\n\t\t\t\t\t\t\t\t\t\t\tnull\r\n\t\t\t\t\t\t\t\t\t} )\r\n\t\t\t\t\t\t\t\t\t.html( btnDisplay )\r\n\t\t\t\t\t\t\t\t\t.appendTo( container );\r\n\t\r\n\t\t\t\t\t\t\t\t_fnBindAction(\r\n\t\t\t\t\t\t\t\t\tnode, {action: button}, clickHandler\r\n\t\t\t\t\t\t\t\t);\r\n\t\r\n\t\t\t\t\t\t\t\tcounter\u002B\u002B;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\r\n\t\t\t\t// IE9 throws an \u0027unknown error\u0027 if document.activeElement is used\r\n\t\t\t\t// inside an iframe or frame. Try / catch the error. Not good for\r\n\t\t\t\t// accessibility, but neither are frames.\r\n\t\t\t\tvar activeEl;\r\n\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// Because this approach is destroying and recreating the paging\r\n\t\t\t\t\t// elements, focus is lost on the select button which is bad for\r\n\t\t\t\t\t// accessibility. So we want to restore focus once the draw has\r\n\t\t\t\t\t// completed\r\n\t\t\t\t\tactiveEl = $(host).find(document.activeElement).data(\u0027dt-idx\u0027);\r\n\t\t\t\t}\r\n\t\t\t\tcatch (e) {}\r\n\t\r\n\t\t\t\tattach( $(host).empty(), buttons );\r\n\t\r\n\t\t\t\tif ( activeEl !== undefined ) {\r\n\t\t\t\t\t$(host).find( \u0027[data-dt-idx=\u0027\u002BactiveEl\u002B\u0027]\u0027 ).trigger(\u0027focus\u0027);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\t// Built in type detection. See model.ext.aTypes for information about\r\n\t// what is required from this methods.\r\n\t$.extend( DataTable.ext.type.detect, [\r\n\t\t// Plain numbers - first since V8 detects some plain numbers as dates\r\n\t\t// e.g. Date.parse(\u002755\u0027) (but not all, e.g. Date.parse(\u002722\u0027)...).\r\n\t\tfunction ( d, settings )\r\n\t\t{\r\n\t\t\tvar decimal = settings.oLanguage.sDecimal;\r\n\t\t\treturn _isNumber( d, decimal ) ? \u0027num\u0027\u002Bdecimal : null;\r\n\t\t},\r\n\t\r\n\t\t// Dates (only those recognised by the browser\u0027s Date.parse)\r\n\t\tfunction ( d, settings )\r\n\t\t{\r\n\t\t\t// V8 tries _very_ hard to make a string passed into \u00A7Date.parse()\u00A7\r\n\t\t\t// valid, so we need to use a regex to restrict date formats. Use a\r\n\t\t\t// plug-in for anything other than ISO8601 style strings\r\n\t\t\tif ( d \u0026\u0026 !(d instanceof Date) \u0026\u0026 ! _re_date.test(d) ) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\tvar parsed = Date.parse(d);\r\n\t\t\treturn (parsed !== null \u0026\u0026 !isNaN(parsed)) || _empty(d) ? \u0027date\u0027 : null;\r\n\t\t},\r\n\t\r\n\t\t// Formatted numbers\r\n\t\tfunction ( d, settings )\r\n\t\t{\r\n\t\t\tvar decimal = settings.oLanguage.sDecimal;\r\n\t\t\treturn _isNumber( d, decimal, true ) ? \u0027num-fmt\u0027\u002Bdecimal : null;\r\n\t\t},\r\n\t\r\n\t\t// HTML numeric\r\n\t\tfunction ( d, settings )\r\n\t\t{\r\n\t\t\tvar decimal = settings.oLanguage.sDecimal;\r\n\t\t\treturn _htmlNumeric( d, decimal ) ? \u0027html-num\u0027\u002Bdecimal : null;\r\n\t\t},\r\n\t\r\n\t\t// HTML numeric, formatted\r\n\t\tfunction ( d, settings )\r\n\t\t{\r\n\t\t\tvar decimal = settings.oLanguage.sDecimal;\r\n\t\t\treturn _htmlNumeric( d, decimal, true ) ? \u0027html-num-fmt\u0027\u002Bdecimal : null;\r\n\t\t},\r\n\t\r\n\t\t// HTML (this is strict checking - there must be html)\r\n\t\tfunction ( d, settings )\r\n\t\t{\r\n\t\t\treturn _empty( d ) || (typeof d === \u0027string\u0027 \u0026\u0026 d.indexOf(\u0027\u003C\u0027) !== -1) ?\r\n\t\t\t\t\u0027html\u0027 : null;\r\n\t\t}\r\n\t] );\r\n\t\r\n\t\r\n\t\r\n\t// Filter formatting functions. See model.ext.ofnSearch for information about\r\n\t// what is required from these methods.\r\n\t// \r\n\t// Note that additional search methods are added for the html numbers and\r\n\t// html formatted numbers by \u00A7_addNumericSort()\u00A7 when we know what the decimal\r\n\t// place is\r\n\t\r\n\t\r\n\t$.extend( DataTable.ext.type.search, {\r\n\t\thtml: function ( data ) {\r\n\t\t\treturn _empty(data) ?\r\n\t\t\t\tdata :\r\n\t\t\t\ttypeof data === \u0027string\u0027 ?\r\n\t\t\t\t\tdata\r\n\t\t\t\t\t\t.replace( _re_new_lines, \u0022 \u0022 )\r\n\t\t\t\t\t\t.replace( _re_html, \u0022\u0022 ) :\r\n\t\t\t\t\t\u0027\u0027;\r\n\t\t},\r\n\t\r\n\t\tstring: function ( data ) {\r\n\t\t\treturn _empty(data) ?\r\n\t\t\t\tdata :\r\n\t\t\t\ttypeof data === \u0027string\u0027 ?\r\n\t\t\t\t\tdata.replace( _re_new_lines, \u0022 \u0022 ) :\r\n\t\t\t\t\tdata;\r\n\t\t}\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\tvar __numericReplace = function ( d, decimalPlace, re1, re2 ) {\r\n\t\tif ( d !== 0 \u0026\u0026 (!d || d === \u0027-\u0027) ) {\r\n\t\t\treturn -Infinity;\r\n\t\t}\r\n\t\r\n\t\t// If a decimal place other than \u00A7.\u00A7 is used, it needs to be given to the\r\n\t\t// function so we can detect it and replace with a \u00A7.\u00A7 which is the only\r\n\t\t// decimal place Javascript recognises - it is not locale aware.\r\n\t\tif ( decimalPlace ) {\r\n\t\t\td = _numToDecimal( d, decimalPlace );\r\n\t\t}\r\n\t\r\n\t\tif ( d.replace ) {\r\n\t\t\tif ( re1 ) {\r\n\t\t\t\td = d.replace( re1, \u0027\u0027 );\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( re2 ) {\r\n\t\t\t\td = d.replace( re2, \u0027\u0027 );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn d * 1;\r\n\t};\r\n\t\r\n\t\r\n\t// Add the numeric \u0027deformatting\u0027 functions for sorting and search. This is done\r\n\t// in a function to provide an easy ability for the language options to add\r\n\t// additional methods if a non-period decimal place is used.\r\n\tfunction _addNumericSort ( decimalPlace ) {\r\n\t\t$.each(\r\n\t\t\t{\r\n\t\t\t\t// Plain numbers\r\n\t\t\t\t\u0022num\u0022: function ( d ) {\r\n\t\t\t\t\treturn __numericReplace( d, decimalPlace );\r\n\t\t\t\t},\r\n\t\r\n\t\t\t\t// Formatted numbers\r\n\t\t\t\t\u0022num-fmt\u0022: function ( d ) {\r\n\t\t\t\t\treturn __numericReplace( d, decimalPlace, _re_formatted_numeric );\r\n\t\t\t\t},\r\n\t\r\n\t\t\t\t// HTML numeric\r\n\t\t\t\t\u0022html-num\u0022: function ( d ) {\r\n\t\t\t\t\treturn __numericReplace( d, decimalPlace, _re_html );\r\n\t\t\t\t},\r\n\t\r\n\t\t\t\t// HTML numeric, formatted\r\n\t\t\t\t\u0022html-num-fmt\u0022: function ( d ) {\r\n\t\t\t\t\treturn __numericReplace( d, decimalPlace, _re_html, _re_formatted_numeric );\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tfunction ( key, fn ) {\r\n\t\t\t\t// Add the ordering method\r\n\t\t\t\t_ext.type.order[ key\u002BdecimalPlace\u002B\u0027-pre\u0027 ] = fn;\r\n\t\r\n\t\t\t\t// For HTML types add a search formatter that will strip the HTML\r\n\t\t\t\tif ( key.match(/^html\\-/) ) {\r\n\t\t\t\t\t_ext.type.search[ key\u002BdecimalPlace ] = _ext.type.search.html;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\t\r\n\t\r\n\t// Default sort methods\r\n\t$.extend( _ext.type.order, {\r\n\t\t// Dates\r\n\t\t\u0022date-pre\u0022: function ( d ) {\r\n\t\t\tvar ts = Date.parse( d );\r\n\t\t\treturn isNaN(ts) ? -Infinity : ts;\r\n\t\t},\r\n\t\r\n\t\t// html\r\n\t\t\u0022html-pre\u0022: function ( a ) {\r\n\t\t\treturn _empty(a) ?\r\n\t\t\t\t\u0027\u0027 :\r\n\t\t\t\ta.replace ?\r\n\t\t\t\t\ta.replace( /\u003C.*?\u003E/g, \u0022\u0022 ).toLowerCase() :\r\n\t\t\t\t\ta\u002B\u0027\u0027;\r\n\t\t},\r\n\t\r\n\t\t// string\r\n\t\t\u0022string-pre\u0022: function ( a ) {\r\n\t\t\t// This is a little complex, but faster than always calling toString,\r\n\t\t\t// http://jsperf.com/tostring-v-check\r\n\t\t\treturn _empty(a) ?\r\n\t\t\t\t\u0027\u0027 :\r\n\t\t\t\ttypeof a === \u0027string\u0027 ?\r\n\t\t\t\t\ta.toLowerCase() :\r\n\t\t\t\t\t! a.toString ?\r\n\t\t\t\t\t\t\u0027\u0027 :\r\n\t\t\t\t\t\ta.toString();\r\n\t\t},\r\n\t\r\n\t\t// string-asc and -desc are retained only for compatibility with the old\r\n\t\t// sort methods\r\n\t\t\u0022string-asc\u0022: function ( x, y ) {\r\n\t\t\treturn ((x \u003C y) ? -1 : ((x \u003E y) ? 1 : 0));\r\n\t\t},\r\n\t\r\n\t\t\u0022string-desc\u0022: function ( x, y ) {\r\n\t\t\treturn ((x \u003C y) ? 1 : ((x \u003E y) ? -1 : 0));\r\n\t\t}\r\n\t} );\r\n\t\r\n\t\r\n\t// Numeric sorting types - order doesn\u0027t matter here\r\n\t_addNumericSort( \u0027\u0027 );\r\n\t\r\n\t\r\n\t$.extend( true, DataTable.ext.renderer, {\r\n\t\theader: {\r\n\t\t\t_: function ( settings, cell, column, classes ) {\r\n\t\t\t\t// No additional mark-up required\r\n\t\t\t\t// Attach a sort listener to update on sort - note that using the\r\n\t\t\t\t// \u00A7DT\u00A7 namespace will allow the event to be removed automatically\r\n\t\t\t\t// on destroy, while the \u00A7dt\u00A7 namespaced event is the one we are\r\n\t\t\t\t// listening for\r\n\t\t\t\t$(settings.nTable).on( \u0027order.dt.DT\u0027, function ( e, ctx, sorting, columns ) {\r\n\t\t\t\t\tif ( settings !== ctx ) { // need to check this this is the host\r\n\t\t\t\t\t\treturn; // table, not a nested one\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tvar colIdx = column.idx;\r\n\t\r\n\t\t\t\t\tcell\r\n\t\t\t\t\t\t.removeClass(\r\n\t\t\t\t\t\t\tclasses.sSortAsc \u002B\u0027 \u0027\u002B\r\n\t\t\t\t\t\t\tclasses.sSortDesc\r\n\t\t\t\t\t\t)\r\n\t\t\t\t\t\t.addClass( columns[ colIdx ] == \u0027asc\u0027 ?\r\n\t\t\t\t\t\t\tclasses.sSortAsc : columns[ colIdx ] == \u0027desc\u0027 ?\r\n\t\t\t\t\t\t\t\tclasses.sSortDesc :\r\n\t\t\t\t\t\t\t\tcolumn.sSortingClass\r\n\t\t\t\t\t\t);\r\n\t\t\t\t} );\r\n\t\t\t},\r\n\t\r\n\t\t\tjqueryui: function ( settings, cell, column, classes ) {\r\n\t\t\t\t$(\u0027\u003Cdiv/\u003E\u0027)\r\n\t\t\t\t\t.addClass( classes.sSortJUIWrapper )\r\n\t\t\t\t\t.append( cell.contents() )\r\n\t\t\t\t\t.append( $(\u0027\u003Cspan/\u003E\u0027)\r\n\t\t\t\t\t\t.addClass( classes.sSortIcon\u002B\u0027 \u0027\u002Bcolumn.sSortingClassJUI )\r\n\t\t\t\t\t)\r\n\t\t\t\t\t.appendTo( cell );\r\n\t\r\n\t\t\t\t// Attach a sort listener to update on sort\r\n\t\t\t\t$(settings.nTable).on( \u0027order.dt.DT\u0027, function ( e, ctx, sorting, columns ) {\r\n\t\t\t\t\tif ( settings !== ctx ) {\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tvar colIdx = column.idx;\r\n\t\r\n\t\t\t\t\tcell\r\n\t\t\t\t\t\t.removeClass( classes.sSortAsc \u002B\u0022 \u0022\u002Bclasses.sSortDesc )\r\n\t\t\t\t\t\t.addClass( columns[ colIdx ] == \u0027asc\u0027 ?\r\n\t\t\t\t\t\t\tclasses.sSortAsc : columns[ colIdx ] == \u0027desc\u0027 ?\r\n\t\t\t\t\t\t\t\tclasses.sSortDesc :\r\n\t\t\t\t\t\t\t\tcolumn.sSortingClass\r\n\t\t\t\t\t\t);\r\n\t\r\n\t\t\t\t\tcell\r\n\t\t\t\t\t\t.find( \u0027span.\u0027\u002Bclasses.sSortIcon )\r\n\t\t\t\t\t\t.removeClass(\r\n\t\t\t\t\t\t\tclasses.sSortJUIAsc \u002B\u0022 \u0022\u002B\r\n\t\t\t\t\t\t\tclasses.sSortJUIDesc \u002B\u0022 \u0022\u002B\r\n\t\t\t\t\t\t\tclasses.sSortJUI \u002B\u0022 \u0022\u002B\r\n\t\t\t\t\t\t\tclasses.sSortJUIAscAllowed \u002B\u0022 \u0022\u002B\r\n\t\t\t\t\t\t\tclasses.sSortJUIDescAllowed\r\n\t\t\t\t\t\t)\r\n\t\t\t\t\t\t.addClass( columns[ colIdx ] == \u0027asc\u0027 ?\r\n\t\t\t\t\t\t\tclasses.sSortJUIAsc : columns[ colIdx ] == \u0027desc\u0027 ?\r\n\t\t\t\t\t\t\t\tclasses.sSortJUIDesc :\r\n\t\t\t\t\t\t\t\tcolumn.sSortingClassJUI\r\n\t\t\t\t\t\t);\r\n\t\t\t\t} );\r\n\t\t\t}\r\n\t\t}\r\n\t} );\r\n\t\r\n\t/*\r\n\t * Public helper functions. These aren\u0027t used internally by DataTables, or\r\n\t * called by any of the options passed into DataTables, but they can be used\r\n\t * externally by developers working with DataTables. They are helper functions\r\n\t * to make working with DataTables a little bit easier.\r\n\t */\r\n\t\r\n\tvar __htmlEscapeEntities = function ( d ) {\r\n\t\tif (Array.isArray(d)) {\r\n\t\t\td = d.join(\u0027,\u0027);\r\n\t\t}\r\n\t\r\n\t\treturn typeof d === \u0027string\u0027 ?\r\n\t\t\td\r\n\t\t\t\t.replace(/\u0026/g, \u0027\u0026amp;\u0027)\r\n\t\t\t\t.replace(/\u003C/g, \u0027\u0026lt;\u0027)\r\n\t\t\t\t.replace(/\u003E/g, \u0027\u0026gt;\u0027)\r\n\t\t\t\t.replace(/\u0022/g, \u0027\u0026quot;\u0027) :\r\n\t\t\td;\r\n\t};\r\n\t\r\n\t/**\r\n\t * Helpers for \u00A7columns.render\u00A7.\r\n\t *\r\n\t * The options defined here can be used with the \u00A7columns.render\u00A7 initialisation\r\n\t * option to provide a display renderer. The following functions are defined:\r\n\t *\r\n\t * * \u00A7number\u00A7 - Will format numeric data (defined by \u00A7columns.data\u00A7) for\r\n\t * display, retaining the original unformatted data for sorting and filtering.\r\n\t * It takes 5 parameters:\r\n\t * * \u00A7string\u00A7 - Thousands grouping separator\r\n\t * * \u00A7string\u00A7 - Decimal point indicator\r\n\t * * \u00A7integer\u00A7 - Number of decimal points to show\r\n\t * * \u00A7string\u00A7 (optional) - Prefix.\r\n\t * * \u00A7string\u00A7 (optional) - Postfix (/suffix).\r\n\t * * \u00A7text\u00A7 - Escape HTML to help prevent XSS attacks. It has no optional\r\n\t * parameters.\r\n\t *\r\n\t * @example\r\n\t * // Column definition using the number renderer\r\n\t * {\r\n\t * data: \u0022salary\u0022,\r\n\t * render: $.fn.dataTable.render.number( \u0027\\\u0027\u0027, \u0027.\u0027, 0, \u0027$\u0027 )\r\n\t * }\r\n\t *\r\n\t * @namespace\r\n\t */\r\n\tDataTable.render = {\r\n\t\tnumber: function ( thousands, decimal, precision, prefix, postfix ) {\r\n\t\t\treturn {\r\n\t\t\t\tdisplay: function ( d ) {\r\n\t\t\t\t\tif ( typeof d !== \u0027number\u0027 \u0026\u0026 typeof d !== \u0027string\u0027 ) {\r\n\t\t\t\t\t\treturn d;\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tvar negative = d \u003C 0 ? \u0027-\u0027 : \u0027\u0027;\r\n\t\t\t\t\tvar flo = parseFloat( d );\r\n\t\r\n\t\t\t\t\t// If NaN then there isn\u0027t much formatting that we can do - just\r\n\t\t\t\t\t// return immediately, escaping any HTML (this was supposed to\r\n\t\t\t\t\t// be a number after all)\r\n\t\t\t\t\tif ( isNaN( flo ) ) {\r\n\t\t\t\t\t\treturn __htmlEscapeEntities( d );\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tflo = flo.toFixed( precision );\r\n\t\t\t\t\td = Math.abs( flo );\r\n\t\r\n\t\t\t\t\tvar intPart = parseInt( d, 10 );\r\n\t\t\t\t\tvar floatPart = precision ?\r\n\t\t\t\t\t\tdecimal\u002B(d - intPart).toFixed( precision ).substring( 2 ):\r\n\t\t\t\t\t\t\u0027\u0027;\r\n\t\r\n\t\t\t\t\t// If zero, then can\u0027t have a negative prefix\r\n\t\t\t\t\tif (intPart === 0 \u0026\u0026 parseFloat(floatPart) === 0) {\r\n\t\t\t\t\t\tnegative = \u0027\u0027;\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\treturn negative \u002B (prefix||\u0027\u0027) \u002B\r\n\t\t\t\t\t\tintPart.toString().replace(\r\n\t\t\t\t\t\t\t/\\B(?=(\\d{3})\u002B(?!\\d))/g, thousands\r\n\t\t\t\t\t\t) \u002B\r\n\t\t\t\t\t\tfloatPart \u002B\r\n\t\t\t\t\t\t(postfix||\u0027\u0027);\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t},\r\n\t\r\n\t\ttext: function () {\r\n\t\t\treturn {\r\n\t\t\t\tdisplay: __htmlEscapeEntities,\r\n\t\t\t\tfilter: __htmlEscapeEntities\r\n\t\t\t};\r\n\t\t}\r\n\t};\r\n\t\r\n\t\r\n\t/*\r\n\t * This is really a good bit rubbish this method of exposing the internal methods\r\n\t * publicly... - To be fixed in 2.0 using methods on the prototype\r\n\t */\r\n\t\r\n\t\r\n\t/**\r\n\t * Create a wrapper function for exporting an internal functions to an external API.\r\n\t * @param {string} fn API function name\r\n\t * @returns {function} wrapped function\r\n\t * @memberof DataTable#internal\r\n\t */\r\n\tfunction _fnExternApiFunc (fn)\r\n\t{\r\n\t\treturn function() {\r\n\t\t\tvar args = [_fnSettingsFromNode( this[DataTable.ext.iApiIndex] )].concat(\r\n\t\t\t\tArray.prototype.slice.call(arguments)\r\n\t\t\t);\r\n\t\t\treturn DataTable.ext.internal[fn].apply( this, args );\r\n\t\t};\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Reference to internal functions for use by plug-in developers. Note that\r\n\t * these methods are references to internal functions and are considered to be\r\n\t * private. If you use these methods, be aware that they are liable to change\r\n\t * between versions.\r\n\t * @namespace\r\n\t */\r\n\t$.extend( DataTable.ext.internal, {\r\n\t\t_fnExternApiFunc: _fnExternApiFunc,\r\n\t\t_fnBuildAjax: _fnBuildAjax,\r\n\t\t_fnAjaxUpdate: _fnAjaxUpdate,\r\n\t\t_fnAjaxParameters: _fnAjaxParameters,\r\n\t\t_fnAjaxUpdateDraw: _fnAjaxUpdateDraw,\r\n\t\t_fnAjaxDataSrc: _fnAjaxDataSrc,\r\n\t\t_fnAddColumn: _fnAddColumn,\r\n\t\t_fnColumnOptions: _fnColumnOptions,\r\n\t\t_fnAdjustColumnSizing: _fnAdjustColumnSizing,\r\n\t\t_fnVisibleToColumnIndex: _fnVisibleToColumnIndex,\r\n\t\t_fnColumnIndexToVisible: _fnColumnIndexToVisible,\r\n\t\t_fnVisbleColumns: _fnVisbleColumns,\r\n\t\t_fnGetColumns: _fnGetColumns,\r\n\t\t_fnColumnTypes: _fnColumnTypes,\r\n\t\t_fnApplyColumnDefs: _fnApplyColumnDefs,\r\n\t\t_fnHungarianMap: _fnHungarianMap,\r\n\t\t_fnCamelToHungarian: _fnCamelToHungarian,\r\n\t\t_fnLanguageCompat: _fnLanguageCompat,\r\n\t\t_fnBrowserDetect: _fnBrowserDetect,\r\n\t\t_fnAddData: _fnAddData,\r\n\t\t_fnAddTr: _fnAddTr,\r\n\t\t_fnNodeToDataIndex: _fnNodeToDataIndex,\r\n\t\t_fnNodeToColumnIndex: _fnNodeToColumnIndex,\r\n\t\t_fnGetCellData: _fnGetCellData,\r\n\t\t_fnSetCellData: _fnSetCellData,\r\n\t\t_fnSplitObjNotation: _fnSplitObjNotation,\r\n\t\t_fnGetObjectDataFn: _fnGetObjectDataFn,\r\n\t\t_fnSetObjectDataFn: _fnSetObjectDataFn,\r\n\t\t_fnGetDataMaster: _fnGetDataMaster,\r\n\t\t_fnClearTable: _fnClearTable,\r\n\t\t_fnDeleteIndex: _fnDeleteIndex,\r\n\t\t_fnInvalidate: _fnInvalidate,\r\n\t\t_fnGetRowElements: _fnGetRowElements,\r\n\t\t_fnCreateTr: _fnCreateTr,\r\n\t\t_fnBuildHead: _fnBuildHead,\r\n\t\t_fnDrawHead: _fnDrawHead,\r\n\t\t_fnDraw: _fnDraw,\r\n\t\t_fnReDraw: _fnReDraw,\r\n\t\t_fnAddOptionsHtml: _fnAddOptionsHtml,\r\n\t\t_fnDetectHeader: _fnDetectHeader,\r\n\t\t_fnGetUniqueThs: _fnGetUniqueThs,\r\n\t\t_fnFeatureHtmlFilter: _fnFeatureHtmlFilter,\r\n\t\t_fnFilterComplete: _fnFilterComplete,\r\n\t\t_fnFilterCustom: _fnFilterCustom,\r\n\t\t_fnFilterColumn: _fnFilterColumn,\r\n\t\t_fnFilter: _fnFilter,\r\n\t\t_fnFilterCreateSearch: _fnFilterCreateSearch,\r\n\t\t_fnEscapeRegex: _fnEscapeRegex,\r\n\t\t_fnFilterData: _fnFilterData,\r\n\t\t_fnFeatureHtmlInfo: _fnFeatureHtmlInfo,\r\n\t\t_fnUpdateInfo: _fnUpdateInfo,\r\n\t\t_fnInfoMacros: _fnInfoMacros,\r\n\t\t_fnInitialise: _fnInitialise,\r\n\t\t_fnInitComplete: _fnInitComplete,\r\n\t\t_fnLengthChange: _fnLengthChange,\r\n\t\t_fnFeatureHtmlLength: _fnFeatureHtmlLength,\r\n\t\t_fnFeatureHtmlPaginate: _fnFeatureHtmlPaginate,\r\n\t\t_fnPageChange: _fnPageChange,\r\n\t\t_fnFeatureHtmlProcessing: _fnFeatureHtmlProcessing,\r\n\t\t_fnProcessingDisplay: _fnProcessingDisplay,\r\n\t\t_fnFeatureHtmlTable: _fnFeatureHtmlTable,\r\n\t\t_fnScrollDraw: _fnScrollDraw,\r\n\t\t_fnApplyToChildren: _fnApplyToChildren,\r\n\t\t_fnCalculateColumnWidths: _fnCalculateColumnWidths,\r\n\t\t_fnThrottle: _fnThrottle,\r\n\t\t_fnConvertToWidth: _fnConvertToWidth,\r\n\t\t_fnGetWidestNode: _fnGetWidestNode,\r\n\t\t_fnGetMaxLenString: _fnGetMaxLenString,\r\n\t\t_fnStringToCss: _fnStringToCss,\r\n\t\t_fnSortFlatten: _fnSortFlatten,\r\n\t\t_fnSort: _fnSort,\r\n\t\t_fnSortAria: _fnSortAria,\r\n\t\t_fnSortListener: _fnSortListener,\r\n\t\t_fnSortAttachListener: _fnSortAttachListener,\r\n\t\t_fnSortingClasses: _fnSortingClasses,\r\n\t\t_fnSortData: _fnSortData,\r\n\t\t_fnSaveState: _fnSaveState,\r\n\t\t_fnLoadState: _fnLoadState,\r\n\t\t_fnImplementState: _fnImplementState,\r\n\t\t_fnSettingsFromNode: _fnSettingsFromNode,\r\n\t\t_fnLog: _fnLog,\r\n\t\t_fnMap: _fnMap,\r\n\t\t_fnBindAction: _fnBindAction,\r\n\t\t_fnCallbackReg: _fnCallbackReg,\r\n\t\t_fnCallbackFire: _fnCallbackFire,\r\n\t\t_fnLengthOverflow: _fnLengthOverflow,\r\n\t\t_fnRenderer: _fnRenderer,\r\n\t\t_fnDataSource: _fnDataSource,\r\n\t\t_fnRowAttributes: _fnRowAttributes,\r\n\t\t_fnExtend: _fnExtend,\r\n\t\t_fnCalculateEnd: function () {} // Used by a lot of plug-ins, but redundant\r\n\t\t // in 1.10, so this dead-end function is\r\n\t\t // added to prevent errors\r\n\t} );\r\n\t\r\n\r\n\t// jQuery access\r\n\t$.fn.dataTable = DataTable;\r\n\r\n\t// Provide access to the host jQuery object (circular reference)\r\n\tDataTable.$ = $;\r\n\r\n\t// Legacy aliases\r\n\t$.fn.dataTableSettings = DataTable.settings;\r\n\t$.fn.dataTableExt = DataTable.ext;\r\n\r\n\t// With a capital \u00A7D\u00A7 we return a DataTables API instance rather than a\r\n\t// jQuery object\r\n\t$.fn.DataTable = function ( opts ) {\r\n\t\treturn $(this).dataTable( opts ).api();\r\n\t};\r\n\r\n\t// All properties that are available to $.fn.dataTable should also be\r\n\t// available on $.fn.DataTable\r\n\t$.each( DataTable, function ( prop, val ) {\r\n\t\t$.fn.DataTable[ prop ] = val;\r\n\t} );\r\n\r\n\treturn DataTable;\r\n}));\r\n\u0060","TestCases":[{"Name":"measure by splitting","Code":" const lines = window.source.split(/\\r?\\n/g)\r\n const count = lines.length\r\n","IsDeferred":false},{"Name":"measure by searching","Code":"let count = 1\r\nfor (let source = window.source, len = source.length, pos = 0, next; pos \u003C len; \u002B\u002Bcount, pos = next) {\r\n next = source.indexOf(\u0027\\n\u0027, pos \u002B 1)\r\n if (next \u003C 0) break\r\n}\r\n","IsDeferred":false}]}