@ -116,10 +116,10 @@ require.config({
'moment/locale/zh-cn' ,
// 'css!../libs/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css',
] ,
'bootstrap-select' : [ 'css!../libs/bootstrap-select/dist/css/bootstrap-select.min.css' , ] ,
// 'bootstrap-select': ['css!../libs/bootstrap-select/dist/css/bootstrap-select.min.css',],
'bootstrap-select-lang' : [ 'bootstrap-select' ] ,
// 'toastr': ['css!../libs/toastr/toastr.min.css'],
'jstree' : [ 'css!../libs/jstree/dist/themes/default/style.css' , ] ,
'jstree' : [ 'css!../libs/jstree/dist/themes/default/style.css' , ] ,
'plupload' : {
deps : [ '../libs/plupload/js/moxie.min' ] ,
exports : "plupload"
@ -5669,7 +5669,7 @@ define("bootstrap-table-lang", ["bootstrap-table"], (function (global) {
/ *
tableExport . jquery . plugin
Version 1.9 . 9
Version 1.9 . 11
Copyright ( c ) 2015 - 2018 hhurz , https : //github.com/hhurz
@ -5677,72 +5677,76 @@ define("bootstrap-table-lang", ["bootstrap-table"], (function (global) {
Licensed under the MIT License
* /
var $jscomp = $jscomp || { } ; $jscomp . scope = { } ; $jscomp . findInternal = function ( c , h , u ) { c instanceof String && ( c = String ( c ) ) ; for ( var C = c . length , D = 0 ; D < C ; D ++ ) { var O= c [ D ] ; if ( h . call ( u , O , D , c ) ) return { i : D , v : O } } return { i : - 1 , v : void 0 } } ; $jscomp . ASSUME _ES5 = ! 1 ; $jscomp . ASSUME _NO _NATIVE _MAP = ! 1 ; $jscomp . ASSUME _NO _NATIVE _SET = ! 1 ; $jscomp . defineProperty = $jscomp . ASSUME _ES5 || "function" == typeof Object . defineProperties ? Object . defineProperty : function ( c , h , u ) { c != Array . prototype && c != Object . prototype && ( c [ h ] = u . value ) } ;
$jscomp . getGlobal = function ( c ) { return "undefined" != typeof window && window === c ? c : "undefined" != typeof global && null != global ? global : c } ; $jscomp . global = $jscomp . getGlobal ( this ) ; $jscomp . polyfill = function ( c , h, u , C ) { if ( h ) { u = $jscomp . global ; c = c . split ( "." ) ; for ( C = 0 ; C < c . length - 1 ; C ++ ) { var D = c [ C ] ; D in u || ( u [ D ] = { } ) ; u = u [ D ] } c = c [ c . length - 1 ] ; C = u [ c ] ; h= h ( C ) ; h != C && null != h && $jscomp . defineProperty ( u , c , { configurable : ! 0 , writable : ! 0 , value : h } ) } } ;
var $jscomp = $jscomp || { } ; $jscomp . scope = { } ; $jscomp . findInternal = function ( c , g , u ) { c instanceof String && ( c = String ( c ) ) ; for ( var C = c . length , D = 0 ; D < C ; D ++ ) { var P= c [ D ] ; if ( g . call ( u , P , D , c ) ) return { i : D , v : P } } return { i : - 1 , v : void 0 } } ; $jscomp . ASSUME _ES5 = ! 1 ; $jscomp . ASSUME _NO _NATIVE _MAP = ! 1 ; $jscomp . ASSUME _NO _NATIVE _SET = ! 1 ; $jscomp . defineProperty = $jscomp . ASSUME _ES5 || "function" == typeof Object . defineProperties ? Object . defineProperty : function ( c , g , u ) { c != Array . prototype && c != Object . prototype && ( c [ g ] = u . value ) } ;
$jscomp . getGlobal = function ( c ) { return "undefined" != typeof window && window === c ? c : "undefined" != typeof global && null != global ? global : c } ; $jscomp . global = $jscomp . getGlobal ( this ) ; $jscomp . polyfill = function ( c , g, u , C ) { if ( g ) { u = $jscomp . global ; c = c . split ( "." ) ; for ( C = 0 ; C < c . length - 1 ; C ++ ) { var D = c [ C ] ; D in u || ( u [ D ] = { } ) ; u = u [ D ] } c = c [ c . length - 1 ] ; C = u [ c ] ; g= g ( C ) ; g != C && null != g && $jscomp . defineProperty ( u , c , { configurable : ! 0 , writable : ! 0 , value : g } ) } } ;
$jscomp . polyfill ( "Array.prototype.find" , function ( c ) { return c ? c : function ( c , u ) { return $jscomp . findInternal ( this , c , u ) . v } } , "es6" , "es3" ) ;
( function ( c ) { c . fn . tableExport = function ( h ) { function u ( b ) { var d = [ ] ; C ( b , "tbody" ) . each ( function ( ) { d . push . apply ( d , D ( c ( this ) , a . tbodySelector ) . toArray ( ) ) } ) ; a . tfootSelector . length && C ( b , "tfoot" ) . each ( function ( ) { d . push . apply ( d , D ( c ( this ) , a . tfootSelector ) . toArray ( ) ) } ) ; return d } function C ( b , d ) { var a = b . parents ( "table" ) . length ; return b . find ( d ) . filter ( function ( ) { return c ( this ) . closest ( "table" ) . parents ( "table" ) . length === a } ) } function D ( b , d ) { return b . find ( d ) . filter ( function ( ) { return 0 === c ( this ) . find ( "table" ) . length &&
1 === c ( this ) . parents ( "table" ) . length } ) } function O ( b ) { var d = [ ] ; c ( b ) . find ( "thead" ) . first ( ) . find ( "th" ) . each ( function ( b , a ) { void 0 !== c ( a ) . attr ( "data-field" ) ? d [ b ] = c ( a ) . attr ( "data-field" ) : d [ b ] = b . toString ( ) } ) ; return d } function P ( b ) { var d = "undefined" !== typeof b [ 0 ] . cellIndex , a = "undefined" !== typeof b [ 0 ] . rowIndex , p = d || a ? Aa ( b ) : b . is ( ":visible" ) , g = b . data ( "tableexport-display" ) ; d && "none" != g && "always" != g && ( b = c ( b [ 0 ] . parentNode ) , a = "undefined" !== typeof b [ 0 ] . rowIndex , g = b . data ( "tableexport-display" ) ) ; a && "none" != g && "always" !=
g && ( g = b . closest ( "table" ) . data ( "tableexport-display" ) ) ; return "none" !== g && ( 1 == p || "always" == g ) } function Aa ( b ) { var d = [ ] ; T && ( d = K . filter ( function ( ) { var d = ! 1 ; this . nodeType == b [ 0 ] . nodeType && ( "undefined" !== typeof this . rowIndex && this . rowIndex == b [ 0 ] . rowIndex ? d = ! 0 : "undefined" !== typeof this . cellIndex && this . cellIndex == b [ 0 ] . cellIndex && "undefined" !== typeof this . parentNode . rowIndex && "undefined" !== typeof b [ 0 ] . parentNode . rowIndex && this . parentNode . rowIndex == b [ 0 ] . parentNode . rowIndex && ( d = ! 0 ) ) ; return d } ) ) ; return 0 == T || 0 ==
d . length } function Ba ( b , d , f ) { var p = ! 1 ; P ( b ) ? 0 < a . ignoreColumn . length && ( - 1 != c . inArray ( f , a . ignoreColumn ) || - 1 != c . inArray ( f - d , a . ignoreColumn ) || Q . length > f && "undefined" != typeof Q [ f ] && - 1 != c . inArray ( Q [ f ] , a . ignoreColumn ) ) && ( p = ! 0 ) : p = ! 0 ; return p } function B ( b , d , f , p , g ) { if ( "function" === typeof g ) { var l = ! 1 ; "function" === typeof a . onIgnoreRow && ( l = a . onIgnoreRow ( c ( b ) , f ) ) ; if ( ! 1 === l && - 1 == c . inArray ( f , a . ignoreRow ) && - 1 == c . inArray ( f - p , a . ignoreRow ) && P ( c ( b ) ) ) { var x = c ( b ) . find ( d ) , r = 0 ; x . each ( function ( b ) { var d = c ( this ) , a , l = R ( this ) , p =
S ( this ) ; c . each ( G , function ( ) { if ( f >= this . s . r && f <= this . e . r && r >= this . s . c && r <= this . e . c ) for ( a = 0 ; a <= this . e . c - this . s . c ; ++ a ) g ( null , f , r ++ ) } ) ; if ( ! 1 === Ba ( d , x . length , b ) ) { if ( p || l ) l = l || 1 , G . push ( { s : { r : f , c : r } , e : { r : f + ( p || 1 ) - 1 , c : r + l - 1 } } ) ; g ( this , f , r ++ ) } if ( l ) for ( a = 0 ; a < l - 1 ; ++ a ) g ( null , f , r ++ ) } ) ; c . each ( G , function ( ) { if ( f >= this . s . r && f <= this . e . r && r >= this . s . c && r <= this . e . c ) for ( aa = 0 ; aa <= this . e . c - this . s . c ; ++ aa ) g ( null , f , r ++ ) } ) } } } function na ( b , d ) { ! 0 === a . consoleLog && console . log ( b . output ( ) ) ; if ( "string" === a . outputMode ) return b . output ( ) ;
if ( "base64" === a . outputMode ) return L ( b . output ( ) ) ; if ( "window" === a . outputMode ) window . URL = window . URL || window . webkitURL , window . open ( window . URL . createObjectURL ( b . output ( "blob" ) ) ) ; else try { var f = b . output ( "blob" ) ; saveAs ( f , a . fileName + ".pdf" ) } catch ( p ) { H ( a . fileName + ".pdf" , "data:application/pdf" + ( d ? "" : ";base64" ) + "," , d ? b . output ( "blob" ) : b . output ( ) ) } } function oa ( b , d , a ) { var f = 0 ; "undefined" !== typeof a && ( f = a . colspan ) ; if ( 0 <= f ) { for ( var g = b . width , c = b . textPos . x , x = d . table . columns . indexOf ( d . column ) , r = 1 ; r < f ; r ++ ) g += d . table . columns [ x +
r ] . width ; 1 < f && ( "right" === b . styles . halign ? c = b . textPos . x + g - b . width : "center" === b . styles . halign && ( c = b . textPos . x + ( g - b . width ) / 2 ) ) ; b . width = g ; b . textPos . x = c ; "undefined" !== typeof a && 1 < a . rowspan && ( b . height *= a . rowspan ) ; if ( "middle" === b . styles . valign || "bottom" === b . styles . valign ) a = ( "string" === typeof b . text ? b . text . split ( /\r\n|\r|\n/g ) : b . text ) . length || 1 , 2 < a && ( b . textPos . y -= ( 2 - 1.15 ) / 2 * d . row . styles . fontSize * ( a - 2 ) / 3 ) ; return ! 0 } return ! 1 } function pa ( b , d , a ) { "undefined" != typeof a . images && d . each ( function ( ) { var d = c ( this ) . children ( ) ;
if ( c ( this ) . is ( "img" ) ) { var g = qa ( this . src ) ; a . images [ g ] = { url : this . src , src : this . src } } "undefined" != typeof d && 0 < d . length && pa ( b , d , a ) } ) } function Ca ( b , d ) { function a ( b ) { if ( b . url ) { var a = new Image ; g = ++ l ; a . crossOrigin = "Anonymous" ; a . onerror = a . onload = function ( ) { if ( a . complete && ( 0 === a . src . indexOf ( "data:image/" ) && ( a . width = b . width || a . width || 0 , a . height = b . height || a . height || 0 ) , a . width + a . height ) ) { var c = document . createElement ( "canvas" ) , f = c . getContext ( "2d" ) ; c . width = a . width ; c . height = a . height ; f . drawImage ( a , 0 , 0 ) ; b . src = c . toDataURL ( "image/jpeg" ) } -- l ||
d ( g ) } ; a . src = b . url } } var c , g = 0 , l = 0 ; if ( "undefined" != typeof b . images ) for ( c in b . images ) b . images . hasOwnProperty ( c ) && a ( b . images [ c ] ) ; ( b = l ) || ( d ( g ) , b = void 0 ) ; return b } function ra ( b , d , f ) { d . each ( function ( ) { var d = c ( this ) . children ( ) , g = 0 ; if ( c ( this ) . is ( "div" ) ) { var l = ba ( M ( this , "background-color" ) , [ 255 , 255 , 255 ] ) , x = ba ( M ( this , "border-top-color" ) , [ 0 , 0 , 0 ] ) , r = ca ( this , "border-top-width" , a . jspdf . unit ) , e = this . getBoundingClientRect ( ) , h = this . offsetLeft * f . dw ; g = this . offsetTop * f . dh ; var k = e . width * f . dw ; e = e . height * f . dh ; f . doc . setDrawColor . apply ( void 0 ,
x ) ; f . doc . setFillColor . apply ( void 0 , l ) ; f . doc . setLineWidth ( r ) ; f . doc . rect ( b . x + h , b . y + g , k , e , r ? "FD" : "F" ) } else if ( c ( this ) . is ( "img" ) && "undefined" != typeof f . images && ( l = qa ( this . src ) , l = f . images [ l ] , "undefined" != typeof l ) ) { x = b . width / b . height ; r = this . width / this . height ; h = b . width ; k = b . height ; e = 19.049976 / 25.4 ; r <= x ? ( k = Math . min ( b . height , this . height ) , h = this . width * k / this . height ) : r > x && ( h = Math . min ( b . width , this . width ) , k = this . height * h / this . width ) ; h *= e ; k *= e ; k < b . height && ( g = ( b . height - k ) / 2 ) ; try { f . doc . addImage ( l . src , b . textPos . x ,
b . y + g , h , k ) } catch ( Ga ) { } b . textPos . x += h } "undefined" != typeof d && 0 < d . length && ra ( b , d , f ) } ) } function sa ( b , a , f ) { if ( "function" === typeof f . onAutotableText ) f . onAutotableText ( f . doc , b , a ) ; else { var d = b . textPos . x , g = b . textPos . y , l = { halign : b . styles . halign , valign : b . styles . valign } ; if ( a . length ) { for ( a = a [ 0 ] ; a . previousSibling ; ) a = a . previousSibling ; for ( var x = ! 1 , r = ! 1 ; a ; ) { var e = a . innerText || a . textContent || "" ; e = ( e . length && " " == e [ 0 ] ? " " : "" ) + c . trim ( e ) + ( 1 < e . length && " " == e [ e . length - 1 ] ? " " : "" ) ; c ( a ) . is ( "br" ) && ( d = b . textPos . x , g += f . doc . internal . getFontSize ( ) ) ;
c ( a ) . is ( "b" ) ? x = ! 0 : c ( a ) . is ( "i" ) && ( r = ! 0 ) ; ( x || r ) && f . doc . setFontType ( x && r ? "bolditalic" : x ? "bold" : "italic" ) ; var h = f . doc . getStringUnitWidth ( e ) * f . doc . internal . getFontSize ( ) ; if ( h ) { if ( "linebreak" === b . styles . overflow && d > b . textPos . x && d + h > b . textPos . x + b . width ) { if ( 0 <= ".,!%*;:=-" . indexOf ( e . charAt ( 0 ) ) ) { var k = e . charAt ( 0 ) ; h = f . doc . getStringUnitWidth ( k ) * f . doc . internal . getFontSize ( ) ; d + h <= b . textPos . x + b . width && ( f . doc . autoTableText ( k , d , g , l ) , e = e . substring ( 1 , e . length ) ) ; h = f . doc . getStringUnitWidth ( e ) * f . doc . internal . getFontSize ( ) } d =
b . textPos . x ; g += f . doc . internal . getFontSize ( ) } for ( ; e . length && d + h > b . textPos . x + b . width ; ) e = e . substring ( 0 , e . length - 1 ) , h = f . doc . getStringUnitWidth ( e ) * f . doc . internal . getFontSize ( ) ; f . doc . autoTableText ( e , d , g , l ) ; d += h } if ( x || r ) c ( a ) . is ( "b" ) ? x = ! 1 : c ( a ) . is ( "i" ) && ( r = ! 1 ) , f . doc . setFontType ( x || r ? x ? "bold" : "italic" : "normal" ) ; a = a . nextSibling } b . textPos . x = d ; b . textPos . y = g } else f . doc . autoTableText ( b . text , b . textPos . x , b . textPos . y , l ) } } function da ( b , a , c ) { return b . replace ( new RegExp ( a . replace ( /([.*+?^=!:${}()|\[\]\/\\])/g , "\\$1" ) ,
"g" ) , c ) } function ha ( b ) { b = da ( b || "0" , a . numbers . html . thousandsSeparator , "" ) ; b = da ( b , a . numbers . html . decimalMark , "." ) ; return "number" === typeof b || ! 1 !== jQuery . isNumeric ( b ) ? b : ! 1 } function Da ( b ) { - 1 < b . indexOf ( "%" ) ? ( b = ha ( b . replace ( /%/g , "" ) ) , ! 1 !== b && ( b /= 100 ) ) : b = ! 1 ; return b } function z ( b , d , f ) { var p = "" ; if ( null !== b ) { var g = c ( b ) ; if ( g [ 0 ] . hasAttribute ( "data-tableexport-value" ) ) var l = ( l = g . data ( "tableexport-value" ) ) ? l + "" : "" ; else if ( l = g . html ( ) , "function" === typeof a . onCellHtmlData ) l = a . onCellHtmlData ( g , d , f , l ) ; else if ( "" != l ) { var e =
c . parseHTML ( l ) , h = 0 , k = 0 ; l = "" ; c . each ( e , function ( ) { if ( c ( this ) . is ( "input" ) ) l += g . find ( "input" ) . eq ( h ++ ) . val ( ) ; else if ( c ( this ) . is ( "select" ) ) l += g . find ( "select option:selected" ) . eq ( k ++ ) . text ( ) ; else if ( "undefined" === typeof c ( this ) . html ( ) ) l += c ( this ) . text ( ) ; else if ( void 0 === jQuery ( ) . bootstrapTable || ! 0 !== c ( this ) . hasClass ( "filterControl" ) && 0 === c ( b ) . parents ( ".detail-view" ) . length ) l += c ( this ) . html ( ) } ) } if ( ! 0 === a . htmlContent ) p = c . trim ( l ) ; else if ( l && "" != l ) if ( "" != c ( b ) . data ( "tableexport-cellformat" ) ) { var n = l . replace ( /\n/g ,
"\u2028" ) . replace ( /<br\s*[\/]?>/gi , "\u2060" ) , m = c ( "<div/>" ) . html ( n ) . contents ( ) ; e = ! 1 ; n = "" ; c . each ( m . text ( ) . split ( "\u2028" ) , function ( b , a ) { 0 < b && ( n += " " ) ; n += c . trim ( a ) } ) ; c . each ( n . split ( "\u2060" ) , function ( b , a ) { 0 < b && ( p += "\n" ) ; p += c . trim ( a ) . replace ( /\u00AD/g , "" ) } ) ; if ( "json" == a . type || "excel" === a . type && "xmlss" === a . excelFileFormat || ! 1 === a . numbers . output ) e = ha ( p ) , ! 1 !== e && ( p = Number ( e ) ) ; else if ( a . numbers . html . decimalMark != a . numbers . output . decimalMark || a . numbers . html . thousandsSeparator != a . numbers . output . thousandsSeparator ) if ( e =
ha ( p ) , ! 1 !== e ) { m = ( "" + e . substr ( 0 > e ? 1 : 0 ) ) . split ( "." ) ; 1 == m . length && ( m [ 1 ] = "" ) ; var q = 3 < m [ 0 ] . length ? m [ 0 ] . length % 3 : 0 ; p = ( 0 > e ? "-" : "" ) + ( a . numbers . output . thousandsSeparator ? ( q ? m [ 0 ] . substr ( 0 , q ) + a . numbers . output . thousandsSeparator : "" ) + m [ 0 ] . substr ( q ) . replace ( /(\d{3})(?=\d)/g , "$1" + a . numbers . output . thousandsSeparator ) : m [ 0 ] ) + ( m [ 1 ] . length ? a . numbers . output . decimalMark + m [ 1 ] : "" ) } } else p = l ; ! 0 === a . escape && ( p = escape ( p ) ) ; "function" === typeof a . onCellData && ( p = a . onCellData ( g , d , f , p ) ) } return p } function Ea ( b , a , c ) { return a + "-" + c . toLowerCase ( ) }
function ba ( b , a ) { ( b = /^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/ . exec ( b ) ) && ( a = [ parseInt ( b [ 1 ] ) , parseInt ( b [ 2 ] ) , parseInt ( b [ 3 ] ) ] ) ; return a } function ta ( b ) { var a = M ( b , "text-align" ) , c = M ( b , "font-weight" ) , p = M ( b , "font-style" ) , g = "" ; "start" == a && ( a = "rtl" == M ( b , "direction" ) ? "right" : "left" ) ; 700 <= c && ( g = "bold" ) ; "italic" == p && ( g += p ) ; "" === g && ( g = "normal" ) ; a = { style : { align : a , bcolor : ba ( M ( b , "background-color" ) , [ 255 , 255 , 255 ] ) , color : ba ( M ( b , "color" ) , [ 0 , 0 , 0 ] ) , fstyle : g } , colspan : R ( b ) , rowspan : S ( b ) } ; null !== b && ( b = b . getBoundingClientRect ( ) ,
a . rect = { width : b . width , height : b . height } ) ; return a } function R ( b ) { var a = c ( b ) . data ( "tableexport-colspan" ) ; "undefined" == typeof a && c ( b ) . is ( "[colspan]" ) && ( a = c ( b ) . attr ( "colspan" ) ) ; return parseInt ( a ) || 0 } function S ( b ) { var a = c ( b ) . data ( "tableexport-rowspan" ) ; "undefined" == typeof a && c ( b ) . is ( "[rowspan]" ) && ( a = c ( b ) . attr ( "rowspan" ) ) ; return parseInt ( a ) || 0 } function M ( b , a ) { try { return window . getComputedStyle ? ( a = a . replace ( /([a-z])([A-Z])/ , Ea ) , window . getComputedStyle ( b , null ) . getPropertyValue ( a ) ) : b . currentStyle ? b . currentStyle [ a ] :
b . style [ a ] } catch ( f ) { } return "" } function ca ( b , a , c ) { a = M ( b , a ) . match ( /\d+/ ) ; if ( null !== a ) { a = a [ 0 ] ; b = b . parentElement ; var d = document . createElement ( "div" ) ; d . style . overflow = "hidden" ; d . style . visibility = "hidden" ; b . appendChild ( d ) ; d . style . width = 100 + c ; c = 100 / d . offsetWidth ; b . removeChild ( d ) ; return a * c } return 0 } function ia ( ) { if ( ! ( this instanceof ia ) ) return new ia ; this . SheetNames = [ ] ; this . Sheets = { } } function ua ( a ) { for ( var b = new ArrayBuffer ( a . length ) , c = new Uint8Array ( b ) , e = 0 ; e != a . length ; ++ e ) c [ e ] = a . charCodeAt ( e ) & 255 ; return b }
function Fa ( a ) { for ( var b = { } , c = { s : { c : 1E7 , r : 1E7 } , e : { c : 0 , r : 0 } } , e = 0 ; e != a . length ; ++ e ) for ( var g = 0 ; g != a [ e ] . length ; ++ g ) { c . s . r > e && ( c . s . r = e ) ; c . s . c > g && ( c . s . c = g ) ; c . e . r < e && ( c . e . r = e ) ; c . e . c < g && ( c . e . c = g ) ; var l = { v : a [ e ] [ g ] } ; if ( null !== l . v ) { var h = XLSX . utils . encode _cell ( { c : g , r : e } ) ; if ( "number" === typeof l . v ) l . t = "n" ; else if ( "boolean" === typeof l . v ) l . t = "b" ; else if ( l . v instanceof Date ) { l . t = "n" ; l . z = XLSX . SSF . _table [ 14 ] ; var r = l ; var k = ( Date . parse ( l . v ) - new Date ( Date . UTC ( 1899 , 11 , 30 ) ) ) / 864E5 ; r . v = k } else l . t = "s" ; b [ h ] = l } } 1E7 > c . s . c &&
( b [ "!ref" ] = XLSX . utils . encode _range ( c ) ) ; return b } function qa ( a ) { var b = 0 , c ; if ( 0 === a . length ) return b ; var e = 0 ; for ( c = a . length ; e < c ; e ++ ) { var g = a . charCodeAt ( e ) ; b = ( b << 5 ) - b + g ; b |= 0 } return b } function H ( a , c , f ) { var b = window . navigator . userAgent ; if ( ! 1 !== a && window . navigator . msSaveOrOpenBlob ) window . navigator . msSaveOrOpenBlob ( new Blob ( [ f ] ) , a ) ; else if ( ! 1 !== a && ( 0 < b . indexOf ( "MSIE " ) || b . match ( /Trident.*rv\:11\./ ) ) ) { if ( c = document . createElement ( "iframe" ) ) { document . body . appendChild ( c ) ; c . setAttribute ( "style" , "display:none" ) ;
c . contentDocument . open ( "txt/plain" , "replace" ) ; c . contentDocument . write ( f ) ; c . contentDocument . close ( ) ; c . contentDocument . focus ( ) ; switch ( a . substr ( a . lastIndexOf ( "." ) + 1 ) ) { case "doc" : case "json" : case "png" : case "pdf" : case "xls" : case "xlsx" : a += ".txt" } c . contentDocument . execCommand ( "SaveAs" , ! 0 , a ) ; document . body . removeChild ( c ) } } else { var g = document . createElement ( "a" ) ; if ( g ) { var d = null ; g . style . display = "none" ; ! 1 !== a ? g . download = a : g . target = "_blank" ; "object" == typeof f ? ( window . URL = window . URL || window . webkitURL , d = window . URL . createObjectURL ( f ) ,
g . href = d ) : 0 <= c . toLowerCase ( ) . indexOf ( "base64," ) ? g . href = c + L ( f ) : g . href = c + encodeURIComponent ( f ) ; document . body . appendChild ( g ) ; if ( document . createEvent ) null === ea && ( ea = document . createEvent ( "MouseEvents" ) ) , ea . initEvent ( "click" , ! 0 , ! 1 ) , g . dispatchEvent ( ea ) ; else if ( document . createEventObject ) g . fireEvent ( "onclick" ) ; else if ( "function" == typeof g . onclick ) g . onclick ( ) ; setTimeout ( function ( ) { d && window . URL . revokeObjectURL ( d ) ; document . body . removeChild ( g ) } , 100 ) } } } function L ( a ) { var b , c = "" , e = 0 ; if ( "string" === typeof a ) { a = a . replace ( /\x0d\x0a/g ,
"\n" ) ; var g = "" ; for ( b = 0 ; b < a . length ; b ++ ) { var l = a . charCodeAt ( b ) ; 128 > l ? g += String . fromCharCode ( l ) : ( 127 < l && 2048 > l ? g += String . fromCharCode ( l >> 6 | 192 ) : ( g += String . fromCharCode ( l >> 12 | 224 ) , g += String . fromCharCode ( l >> 6 & 63 | 128 ) ) , g += String . fromCharCode ( l & 63 | 128 ) ) } a = g } for ( ; e < a . length ; ) { var h = a . charCodeAt ( e ++ ) ; g = a . charCodeAt ( e ++ ) ; b = a . charCodeAt ( e ++ ) ; l = h >> 2 ; h = ( h & 3 ) << 4 | g >> 4 ; var r = ( g & 15 ) << 2 | b >> 6 ; var k = b & 63 ; isNaN ( g ) ? r = k = 64 : isNaN ( b ) && ( k = 64 ) ; c = c + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" . charAt ( l ) +
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" . charAt ( h ) + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" . charAt ( r ) + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" . charAt ( k ) } return c } var a = { consoleLog : ! 1 , csvEnclosure : '"' , csvSeparator : "," , csvUseBOM : ! 0 , displayTableName : ! 1 , escape : ! 1 , excelFileFormat : "xlshtml" , excelRTL : ! 1 , excelstyles : [ ] , exportHiddenCells : ! 1 , fileName : "tableExport" , htmlContent : ! 1 , ignoreColumn : [ ] , ignoreRow : [ ] , jsonScope : "all" , jspdf : { orientation : "p" ,
unit : "pt" , format : "a4" , margins : { left : 20 , right : 10 , top : 10 , bottom : 10 } , onDocCreated : null , autotable : { styles : { cellPadding : 2 , rowHeight : 12 , fontSize : 8 , fillColor : 255 , textColor : 50 , fontStyle : "normal" , overflow : "ellipsize" , halign : "left" , valign : "middle" } , headerStyles : { fillColor : [ 52 , 73 , 94 ] , textColor : 255 , fontStyle : "bold" , halign : "center" } , alternateRowStyles : { fillColor : 245 } , tableExport : { doc : null , onAfterAutotable : null , onBeforeAutotable : null , onAutotableText : null , onTable : null , outputImages : ! 0 } } } , numbers : { html : { decimalMark : "." ,
thousandsSeparator : "," } , output : { decimalMark : "." , thousandsSeparator : "," } } , onCellData : null , onCellHtmlData : null , onIgnoreRow : null , onMsoNumberFormat : null , outputMode : "file" , pdfmake : { enabled : ! 1 , docDefinition : { pageOrientation : "portrait" , defaultStyle : { font : "Roboto" } } , fonts : { } } , tbodySelector : "tr" , tfootSelector : "tr" , theadSelector : "tr" , tableName : "Table" , type : "csv" , worksheetName : "" } , v = this , ea = null , q = [ ] , t = [ ] , k = 0 , m = "" , Q = [ ] , G = [ ] , K = [ ] , T = ! 1 ; c . extend ( ! 0 , a , h ) ; Q = O ( v ) ; if ( "csv" == a . type || "tsv" == a . type || "txt" == a . type ) { var I =
"" , W = 0 ; G = [ ] ; k = 0 ; var ja = function ( b , d , f ) { b . each ( function ( ) { m = "" ; B ( this , d , k , f + b . length , function ( b , c , d ) { var g = m , f = "" ; if ( null !== b ) if ( b = z ( b , c , d ) , c = null === b || "" === b ? "" : b . toString ( ) , "tsv" == a . type ) b instanceof Date && b . toLocaleString ( ) , f = da ( c , "\t" , " " ) ; else if ( b instanceof Date ) f = a . csvEnclosure + b . toLocaleString ( ) + a . csvEnclosure ; else if ( f = da ( c , a . csvEnclosure , a . csvEnclosure + a . csvEnclosure ) , 0 <= f . indexOf ( a . csvSeparator ) || /[\r\n ]/g . test ( f ) ) f = a . csvEnclosure + f + a . csvEnclosure ; m = g + ( f + ( "tsv" == a . type ? "\t" : a . csvSeparator ) ) } ) ;
m = c . trim ( m ) . substring ( 0 , m . length - 1 ) ; 0 < m . length && ( 0 < I . length && ( I += "\n" ) , I += m ) ; k ++ } ) ; return b . length } ; W += ja ( c ( v ) . find ( "thead" ) . first ( ) . find ( a . theadSelector ) , "th,td" , W ) ; C ( c ( v ) , "tbody" ) . each ( function ( ) { W += ja ( D ( c ( this ) , a . tbodySelector ) , "td,th" , W ) } ) ; a . tfootSelector . length && ja ( c ( v ) . find ( "tfoot" ) . first ( ) . find ( a . tfootSelector ) , "td,th" , W ) ; I += "\n" ; ! 0 === a . consoleLog && console . log ( I ) ; if ( "string" === a . outputMode ) return I ; if ( "base64" === a . outputMode ) return L ( I ) ; if ( "window" === a . outputMode ) { H ( ! 1 , "data:text/" + ( "csv" ==
a . type ? "csv" : "plain" ) + ";charset=utf-8," , I ) ; return } try { var A = new Blob ( [ I ] , { type : "text/" + ( "csv" == a . type ? "csv" : "plain" ) + ";charset=utf-8" } ) ; saveAs ( A , a . fileName + "." + a . type , "csv" != a . type || ! 1 === a . csvUseBOM ) } catch ( b ) { H ( a . fileName + "." + a . type , "data:text/" + ( "csv" == a . type ? "csv" : "plain" ) + ";charset=utf-8," + ( "csv" == a . type && a . csvUseBOM ? "\ufeff" : "" ) , I ) } } else if ( "sql" == a . type ) { k = 0 ; G = [ ] ; var w = "INSERT INTO `" + a . tableName + "` (" ; q = c ( v ) . find ( "thead" ) . first ( ) . find ( a . theadSelector ) ; q . each ( function ( ) { B ( this , "th,td" , k , q . length ,
function ( a , c , f ) { w += "'" + z ( a , c , f ) + "'," } ) ; k ++ ; w = c . trim ( w ) . substring ( 0 , w . length - 1 ) } ) ; w += ") VALUES " ; t = u ( c ( v ) ) ; c ( t ) . each ( function ( ) { m = "" ; B ( this , "td,th" , k , q . length + t . length , function ( a , c , f ) { m += "'" + z ( a , c , f ) + "'," } ) ; 3 < m . length && ( w += "(" + m , w = c . trim ( w ) . substring ( 0 , w . length - 1 ) , w += ")," ) ; k ++ } ) ; w = c . trim ( w ) . substring ( 0 , w . length - 1 ) ; w += ";" ; ! 0 === a . consoleLog && console . log ( w ) ; if ( "string" === a . outputMode ) return w ; if ( "base64" === a . outputMode ) return L ( w ) ; try { A = new Blob ( [ w ] , { type : "text/plain;charset=utf-8" } ) , saveAs ( A , a . fileName +
".sql" ) } catch ( b ) { H ( a . fileName + ".sql" , "data:application/sql;charset=utf-8," , w ) } } else if ( "json" == a . type ) { var U = [ ] ; G = [ ] ; q = c ( v ) . find ( "thead" ) . first ( ) . find ( a . theadSelector ) ; q . each ( function ( ) { var a = [ ] ; B ( this , "th,td" , k , q . length , function ( b , c , e ) { a . push ( z ( b , c , e ) ) } ) ; U . push ( a ) } ) ; var ka = [ ] ; t = u ( c ( v ) ) ; c ( t ) . each ( function ( ) { var a = { } , d = 0 ; B ( this , "td,th" , k , q . length + t . length , function ( b , c , g ) { U . length ? a [ U [ U . length - 1 ] [ d ] ] = z ( b , c , g ) : a [ d ] = z ( b , c , g ) ; d ++ } ) ; ! 1 === c . isEmptyObject ( a ) && ka . push ( a ) ; k ++ } ) ; h = "" ; h = "head" == a . jsonScope ? JSON . stringify ( U ) :
"data" == a . jsonScope ? JSON . stringify ( ka ) : JSON . stringify ( { header : U , data : ka } ) ; ! 0 === a . consoleLog && console . log ( h ) ; if ( "string" === a . outputMode ) return h ; if ( "base64" === a . outputMode ) return L ( h ) ; try { A = new Blob ( [ h ] , { type : "application/json;charset=utf-8" } ) , saveAs ( A , a . fileName + ".json" ) } catch ( b ) { H ( a . fileName + ".json" , "data:application/json;charset=utf-8;base64," , h ) } } else if ( "xml" === a . type ) { k = 0 ; G = [ ] ; var J = '<?xml version="1.0" encoding="utf-8"?>' ; J += "<tabledata><fields>" ; q = c ( v ) . find ( "thead" ) . first ( ) . find ( a . theadSelector ) ;
q . each ( function ( ) { B ( this , "th,td" , k , q . length , function ( a , c , f ) { J += "<field>" + z ( a , c , f ) + "</field>" } ) ; k ++ } ) ; J += "</fields><data>" ; var va = 1 ; t = u ( c ( v ) ) ; c ( t ) . each ( function ( ) { var a = 1 ; m = "" ; B ( this , "td,th" , k , q . length + t . length , function ( b , c , e ) { m += "<column-" + a + ">" + z ( b , c , e ) + "</column-" + a + ">" ; a ++ } ) ; 0 < m . length && "<column-1></column-1>" != m && ( J += '<row id="' + va + '">' + m + "</row>" , va ++ ) ; k ++ } ) ; J += "</data></tabledata>" ; ! 0 === a . consoleLog && console . log ( J ) ; if ( "string" === a . outputMode ) return J ; if ( "base64" === a . outputMode ) return L ( J ) ; try { A =
new Blob ( [ J ] , { type : "application/xml;charset=utf-8" } ) , saveAs ( A , a . fileName + ".xml" ) } catch ( b ) { H ( a . fileName + ".xml" , "data:application/xml;charset=utf-8;base64," , J ) } } else if ( "excel" === a . type && "xmlss" === a . excelFileFormat ) { var la = [ ] , F = [ ] ; c ( v ) . filter ( function ( ) { return P ( c ( this ) ) } ) . each ( function ( ) { function b ( a , b , d ) { var g = [ ] ; c ( a ) . each ( function ( ) { var b = 0 , f = 0 ; m = "" ; B ( this , "td,th" , k , d + a . length , function ( a , d , l ) { if ( null !== a ) { var e = "" ; d = z ( a , d , l ) ; l = "String" ; if ( ! 1 !== jQuery . isNumeric ( d ) ) l = "Number" ; else { var h = Da ( d ) ; ! 1 !==
h && ( d = h , l = "Number" , e += ' ss:StyleID="pct1"' ) } "Number" !== l && ( d = d . replace ( /\n/g , "<br>" ) ) ; h = R ( a ) ; a = S ( a ) ; c . each ( g , function ( ) { if ( k >= this . s . r && k <= this . e . r && f >= this . s . c && f <= this . e . c ) for ( var a = 0 ; a <= this . e . c - this . s . c ; ++ a ) f ++ , b ++ } ) ; if ( a || h ) a = a || 1 , h = h || 1 , g . push ( { s : { r : k , c : f } , e : { r : k + a - 1 , c : f + h - 1 } } ) ; 1 < h && ( e += ' ss:MergeAcross="' + ( h - 1 ) + '"' , f += h - 1 ) ; 1 < a && ( e += ' ss:MergeDown="' + ( a - 1 ) + '" ss:StyleID="rsp1"' ) ; 0 < b && ( e += ' ss:Index="' + ( f + 1 ) + '"' , b = 0 ) ; m += "<Cell" + e + '><Data ss:Type="' + l + '">' + c ( "<div />" ) . text ( d ) . html ( ) + "</Data></Cell>\r" ;
f ++ } } ) ; 0 < m . length && ( E += '<Row ss:AutoFitHeight="0">\r' + m + "</Row>\r" ) ; k ++ } ) ; return a . length } var d = c ( this ) , f = "" ; "string" === typeof a . worksheetName && a . worksheetName . length ? f = a . worksheetName + " " + ( F . length + 1 ) : "undefined" !== typeof a . worksheetName [ F . length ] && ( f = a . worksheetName [ F . length ] ) ; f . length || ( f = d . find ( "caption" ) . text ( ) || "" ) ; f . length || ( f = "Table " + ( F . length + 1 ) ) ; f = c . trim ( f . replace ( /[\\\/[\]*:?'"]/g , "" ) . substring ( 0 , 31 ) ) ; F . push ( c ( "<div />" ) . text ( f ) . html ( ) ) ; ! 1 === a . exportHiddenCells && ( K = d . find ( "tr, th, td" ) . filter ( ":hidden" ) ,
T = 0 < K . length ) ; k = 0 ; Q = O ( this ) ; E = "<Table>\r" ; f = 0 ; f += b ( d . find ( "thead" ) . first ( ) . find ( a . theadSelector ) , "th,td" , f ) ; b ( u ( d ) , "td,th" , f ) ; E += "</Table>\r" ; la . push ( E ) ; ! 0 === a . consoleLog && console . log ( E ) } ) ; h = { } ; for ( var y = { } , n , N , V = 0 , aa = F . length ; V < aa ; V ++ ) n = F [ V ] , N = h [ n ] , N = h [ n ] = null == N ? 1 : N + 1 , 2 == N && ( F [ y [ n ] ] = F [ y [ n ] ] . substring ( 0 , 29 ) + "-1" ) , 1 < h [ n ] ? F [ V ] = F [ V ] . substring ( 0 , 29 ) + "-" + h [ n ] : y [ n ] = V ; h = '<?xml version="1.0" encoding="UTF-8"?>\r<?mso-application progid="Excel.Sheet"?>\r<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"\r xmlns:o="urn:schemas-microsoft-com:office:office"\r xmlns:x="urn:schemas-microsoft-com:office:excel"\r xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"\r xmlns:html="http://www.w3.org/TR/REC-html40">\r<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">\r <Created>' +
( new Date ) . toISOString ( ) + '</Created>\r</DocumentProperties>\r<OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">\r <AllowPNG/>\r</OfficeDocumentSettings>\r<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">\r <WindowHeight>9000</WindowHeight>\r <WindowWidth>13860</WindowWidth>\r <WindowTopX>0</WindowTopX>\r <WindowTopY>0</WindowTopY>\r <ProtectStructure>False</ProtectStructure>\r <ProtectWindows>False</ProtectWindows>\r</ExcelWorkbook>\r<Styles>\r <Style ss:ID="Default" ss:Name="Normal">\r <Alignment ss:Vertical="Bottom"/>\r <Borders/>\r <Font/>\r <Interior/>\r <NumberFormat/>\r <Protection/>\r </Style>\r <Style ss:ID="rsp1">\r <Alignment ss:Vertical="Center"/>\r </Style>\r <Style ss:ID="pct1">\r <NumberFormat ss:Format="Percent"/>\r </Style>\r</Styles>\r' ;
for ( y = 0 ; y < la . length ; y ++ ) h += '<Worksheet ss:Name="' + F [ y ] + '" ss:RightToLeft="' + ( a . excelRTL ? "1" : "0" ) + '">\r' + la [ y ] , h = a . excelRTL ? h + '<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">\r<DisplayRightToLeft/>\r</WorksheetOptions>\r' : h + '<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel"/>\r' , h += "</Worksheet>\r" ; h += "</Workbook>\r" ; ! 0 === a . consoleLog && console . log ( h ) ; if ( "string" === a . outputMode ) return h ; if ( "base64" === a . outputMode ) return L ( h ) ; try { A = new Blob ( [ h ] , { type : "application/xml;charset=utf-8" } ) ,
saveAs ( A , a . fileName + ".xml" ) } catch ( b ) { H ( a . fileName + ".xml" , "data:application/xml;charset=utf-8;base64," , h ) } } else if ( "excel" == a . type || "xls" == a . type || "word" == a . type || "doc" == a . type ) { h = "excel" == a . type || "xls" == a . type ? "excel" : "word" ; y = "excel" == h ? "xls" : "doc" ; n = 'xmlns:x="urn:schemas-microsoft-com:office:' + h + '"' ; var E = "" , X = "" ; c ( v ) . filter ( function ( ) { return P ( c ( this ) ) } ) . each ( function ( ) { var b = c ( this ) ; "" === X && ( X = a . worksheetName || b . find ( "caption" ) . text ( ) || "Table" , X = c . trim ( X . replace ( /[\\\/[\]*:?'"]/g , "" ) . substring ( 0 ,
31 ) ) ) ; ! 1 === a . exportHiddenCells && ( K = b . find ( "tr, th, td" ) . filter ( ":hidden" ) , T = 0 < K . length ) ; k = 0 ; G = [ ] ; Q = O ( this ) ; E += "<table><thead>" ; q = b . find ( "thead" ) . first ( ) . find ( a . theadSelector ) ; q . each ( function ( ) { m = "" ; B ( this , "th,td" , k , q . length , function ( b , f , e ) { if ( null !== b ) { var g = "" ; m += "<th" ; for ( var d in a . excelstyles ) if ( a . excelstyles . hasOwnProperty ( d ) ) { var h = c ( b ) . css ( a . excelstyles [ d ] ) ; "" !== h && "0px none rgb(0, 0, 0)" != h && "rgba(0, 0, 0, 0)" != h && ( g += "" === g ? 'style="' : ";" , g += a . excelstyles [ d ] + ":" + h ) } "" !== g && ( m += " " + g + '"' ) ;
g = R ( b ) ; 0 < g && ( m += ' colspan="' + g + '"' ) ; g = S ( b ) ; 0 < g && ( m += ' rowspan="' + g + '"' ) ; m += ">" + z ( b , f , e ) + "</th>" } } ) ; 0 < m . length && ( E += "<tr>" + m + "</tr>" ) ; k ++ } ) ; E += "</thead><tbody>" ; t = u ( b ) ; c ( t ) . each ( function ( ) { var b = c ( this ) ; m = "" ; B ( this , "td,th" , k , q . length + t . length , function ( d , e , g ) { if ( null !== d ) { var f = z ( d , e , g ) , h = "" , k = c ( d ) . data ( "tableexport-msonumberformat" ) ; "undefined" == typeof k && "function" === typeof a . onMsoNumberFormat && ( k = a . onMsoNumberFormat ( d , e , g ) ) ; "undefined" != typeof k && "" !== k && ( h = "style=\"mso-number-format:'" + k + "'" ) ; for ( var p in a . excelstyles ) a . excelstyles . hasOwnProperty ( p ) &&
( k = c ( d ) . css ( a . excelstyles [ p ] ) , "" === k && ( k = b . css ( a . excelstyles [ p ] ) ) , "" !== k && "0px none rgb(0, 0, 0)" != k && "rgba(0, 0, 0, 0)" != k && ( h += "" === h ? 'style="' : ";" , h += a . excelstyles [ p ] + ":" + k ) ) ; m += "<td" ; "" !== h && ( m += " " + h + '"' ) ; e = R ( d ) ; 0 < e && ( m += ' colspan="' + e + '"' ) ; d = S ( d ) ; 0 < d && ( m += ' rowspan="' + d + '"' ) ; "string" === typeof f && "" != f && ( f = f . replace ( /\n/g , "<br>" ) ) ; m += ">" + f + "</td>" } } ) ; 0 < m . length && ( E += "<tr>" + m + "</tr>" ) ; k ++ } ) ; a . displayTableName && ( E += "<tr><td></td></tr><tr><td></td></tr><tr><td>" + z ( c ( "<p>" + a . tableName + "</p>" ) ) + "</td></tr>" ) ;
E += "</tbody></table>" ; ! 0 === a . consoleLog && console . log ( E ) } ) ; n = '<html xmlns:o="urn:schemas-microsoft-com:office:office" ' + n + ' xmlns="http://www.w3.org/TR/REC-html40">' + ( '<meta http-equiv="content-type" content="application/vnd.ms-' + h + '; charset=UTF-8">' ) + "<head>" ; "excel" === h && ( n += "\x3c!--[if gte mso 9]>" , n += "<xml>" , n += "<x:ExcelWorkbook>" , n += "<x:ExcelWorksheets>" , n += "<x:ExcelWorksheet>" , n += "<x:Name>" , n += X , n += "</x:Name>" , n += "<x:WorksheetOptions>" , n += "<x:DisplayGridlines/>" , a . excelRTL && ( n += "<x:DisplayRightToLeft/>" ) ,
n += "</x:WorksheetOptions>" , n += "</x:ExcelWorksheet>" , n += "</x:ExcelWorksheets>" , n += "</x:ExcelWorkbook>" , n += "</xml>" , n += "<![endif]--\x3e" ) ; n += "<style>br {mso-data-placement:same-cell;}</style>" ; n += "</head>" ; n += "<body>" ; n += E ; n += "</body>" ; n += "</html>" ; ! 0 === a . consoleLog && console . log ( n ) ; if ( "string" === a . outputMode ) return n ; if ( "base64" === a . outputMode ) return L ( n ) ; try { A = new Blob ( [ n ] , { type : "application/vnd.ms-" + a . type } ) , saveAs ( A , a . fileName + "." + y ) } catch ( b ) { H ( a . fileName + "." + y , "data:application/vnd.ms-" + h + ";base64," ,
n ) } } else if ( "xlsx" == a . type ) { var wa = [ ] , ma = [ ] ; k = 0 ; t = c ( v ) . find ( "thead" ) . first ( ) . find ( a . theadSelector ) . toArray ( ) ; t . push . apply ( t , u ( c ( v ) ) ) ; c ( t ) . each ( function ( ) { var b = [ ] ; B ( this , "th,td" , k , t . length , function ( d , e , h ) { if ( "undefined" !== typeof d && null !== d ) { h = z ( d , e , h ) ; e = R ( d ) ; d = S ( d ) ; c . each ( ma , function ( ) { if ( k >= this . s . r && k <= this . e . r && b . length >= this . s . c && b . length <= this . e . c ) for ( var a = 0 ; a <= this . e . c - this . s . c ; ++ a ) b . push ( null ) } ) ; if ( d || e ) e = e || 1 , ma . push ( { s : { r : k , c : b . length } , e : { r : k + ( d || 1 ) - 1 , c : b . length + e - 1 } } ) ; "function" !== typeof a . onCellData &&
"" !== h && h == + h && ( h = + h ) ; b . push ( "" !== h ? h : null ) ; if ( e ) for ( d = 0 ; d < e - 1 ; ++ d ) b . push ( null ) } } ) ; wa . push ( b ) ; k ++ } ) ; h = new ia ; y = Fa ( wa ) ; y [ "!merges" ] = ma ; h . SheetNames . push ( a . worksheetName ) ; h . Sheets [ a . worksheetName ] = y ; h = XLSX . write ( h , { bookType : a . type , bookSST : ! 1 , type : "binary" } ) ; try { A = new Blob ( [ ua ( h ) ] , { type : "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8" } ) , saveAs ( A , a . fileName + "." + a . type ) } catch ( b ) { H ( a . fileName + "." + a . type , "data:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8," ,
ua ( h ) ) } } else if ( "png" == a . type ) html2canvas ( c ( v ) [ 0 ] ) . then ( function ( b ) { b = b . toDataURL ( ) ; for ( var c = atob ( b . substring ( 22 ) ) , e = new ArrayBuffer ( c . length ) , h = new Uint8Array ( e ) , g = 0 ; g < c . length ; g ++ ) h [ g ] = c . charCodeAt ( g ) ; ! 0 === a . consoleLog && console . log ( c ) ; if ( "string" === a . outputMode ) return c ; if ( "base64" === a . outputMode ) return L ( b ) ; if ( "window" === a . outputMode ) window . open ( b ) ; else try { A = new Blob ( [ e ] , { type : "image/png" } ) , saveAs ( A , a . fileName + ".png" ) } catch ( l ) { H ( a . fileName + ".png" , "data:image/png," , A ) } } ) ; else if ( "pdf" == a . type ) if ( ! 0 ===
a . pdfmake . enabled ) { h = [ ] ; var xa = [ ] ; k = 0 ; G = [ ] ; y = function ( a , d , e ) { var b = 0 ; c ( a ) . each ( function ( ) { var a = [ ] ; B ( this , d , k , e , function ( b , c , d ) { if ( "undefined" !== typeof b && null !== b ) { var g = R ( b ) , e = S ( b ) ; b = z ( b , c , d ) || " " ; 1 < g || 1 < e ? a . push ( { colSpan : g || 1 , rowSpan : e || 1 , text : b } ) : a . push ( b ) } else a . push ( " " ) } ) ; a . length && xa . push ( a ) ; b < a . length && ( b = a . length ) ; k ++ } ) ; return b } ; q = c ( this ) . find ( "thead" ) . first ( ) . find ( a . theadSelector ) ; n = y ( q , "th,td" , q . length ) ; for ( N = h . length ; N < n ; N ++ ) h . push ( "*" ) ; t = u ( c ( this ) ) ; y ( t , "th,td" , q . length + t . length ) ; h =
{ content : [ { table : { headerRows : q . length , widths : h , body : xa } } ] } ; c . extend ( ! 0 , h , a . pdfmake . docDefinition ) ; pdfMake . fonts = { Roboto : { normal : "Roboto-Regular.ttf" , bold : "Roboto-Medium.ttf" , italics : "Roboto-Italic.ttf" , bolditalics : "Roboto-MediumItalic.ttf" } } ; c . extend ( ! 0 , pdfMake . fonts , a . pdfmake . fonts ) ; pdfMake . createPdf ( h ) . getBuffer ( function ( b ) { try { var c = new Blob ( [ b ] , { type : "application/pdf" } ) ; saveAs ( c , a . fileName + ".pdf" ) } catch ( f ) { H ( a . fileName + ".pdf" , "data:application/pdf;base64," , b ) } } ) } else if ( ! 1 === a . jspdf . autotable ) { h =
{ dim : { w : ca ( c ( v ) . first ( ) . get ( 0 ) , "width" , "mm" ) , h : ca ( c ( v ) . first ( ) . get ( 0 ) , "height" , "mm" ) } , pagesplit : ! 1 } ; var ya = new jsPDF ( a . jspdf . orientation , a . jspdf . unit , a . jspdf . format ) ; ya . addHTML ( c ( v ) . first ( ) , a . jspdf . margins . left , a . jspdf . margins . top , h , function ( ) { na ( ya , ! 1 ) } ) } else { var e = a . jspdf . autotable . tableExport ; if ( "string" === typeof a . jspdf . format && "bestfit" === a . jspdf . format . toLowerCase ( ) ) { var Y = { a0 : [ 2383.94 , 3370.39 ] , a1 : [ 1683.78 , 2383.94 ] , a2 : [ 1190.55 , 1683.78 ] , a3 : [ 841.89 , 1190.55 ] , a4 : [ 595.28 , 841.89 ] } , fa = "" , Z = "" , za = 0 ;
c ( v ) . each ( function ( ) { if ( P ( c ( this ) ) ) { var a = ca ( c ( this ) . get ( 0 ) , "width" , "pt" ) ; if ( a > za ) { a > Y . a0 [ 0 ] && ( fa = "a0" , Z = "l" ) ; for ( var d in Y ) Y . hasOwnProperty ( d ) && Y [ d ] [ 1 ] > a && ( fa = d , Z = "l" , Y [ d ] [ 0 ] > a && ( Z = "p" ) ) ; za = a } } } ) ; a . jspdf . format = "" === fa ? "a4" : fa ; a . jspdf . orientation = "" === Z ? "w" : Z } if ( null == e . doc && ( e . doc = new jsPDF ( a . jspdf . orientation , a . jspdf . unit , a . jspdf . format ) , "function" === typeof a . jspdf . onDocCreated ) ) a . jspdf . onDocCreated ( e . doc ) ; ! 0 === e . outputImages && ( e . images = { } ) ; "undefined" != typeof e . images && ( c ( v ) . filter ( function ( ) { return P ( c ( this ) ) } ) . each ( function ( ) { var b =
0 ; G = [ ] ; ! 1 === a . exportHiddenCells && ( K = c ( this ) . find ( "tr, th, td" ) . filter ( ":hidden" ) , T = 0 < K . length ) ; q = c ( this ) . find ( "thead" ) . find ( a . theadSelector ) ; t = u ( c ( this ) ) ; c ( t ) . each ( function ( ) { B ( this , "td,th" , q . length + b , q . length + t . length , function ( a ) { if ( "undefined" !== typeof a && null !== a ) { var b = c ( a ) . children ( ) ; "undefined" != typeof b && 0 < b . length && pa ( a , b , e ) } } ) ; b ++ } ) } ) , q = [ ] , t = [ ] ) ; Ca ( e , function ( ) { c ( v ) . filter ( function ( ) { return P ( c ( this ) ) } ) . each ( function ( ) { var b ; k = 0 ; G = [ ] ; ! 1 === a . exportHiddenCells && ( K = c ( this ) . find ( "tr, th, td" ) . filter ( ":hidden" ) ,
T = 0 < K . length ) ; Q = O ( this ) ; e . columns = [ ] ; e . rows = [ ] ; e . rowoptions = { } ; if ( "function" === typeof e . onTable && ! 1 === e . onTable ( c ( this ) , a ) ) return ! 0 ; a . jspdf . autotable . tableExport = null ; var d = c . extend ( ! 0 , { } , a . jspdf . autotable ) ; a . jspdf . autotable . tableExport = e ; d . margin = { } ; c . extend ( ! 0 , d . margin , a . jspdf . margins ) ; d . tableExport = e ; "function" !== typeof d . beforePageContent && ( d . beforePageContent = function ( a ) { if ( 1 == a . pageCount ) { var b = a . table . rows . concat ( a . table . headerRow ) ; c . each ( b , function ( ) { 0 < this . height && ( this . height += ( 2 - 1.15 ) /
2 * this . styles . fontSize , a . table . height += ( 2 - 1.15 ) / 2 * this . styles . fontSize ) } ) } } ) ; "function" !== typeof d . createdHeaderCell && ( d . createdHeaderCell = function ( a , b ) { a . styles = c . extend ( { } , b . row . styles ) ; if ( "undefined" != typeof e . columns [ b . column . dataKey ] ) { var g = e . columns [ b . column . dataKey ] ; if ( "undefined" != typeof g . rect ) { a . contentWidth = g . rect . width ; if ( "undefined" == typeof e . heightRatio || 0 === e . heightRatio ) { var f = b . row . raw [ b . column . dataKey ] . rowspan ? b . row . raw [ b . column . dataKey ] . rect . height / b . row . raw [ b . column . dataKey ] . rowspan :
b . row . raw [ b . column . dataKey ] . rect . height ; e . heightRatio = a . styles . rowHeight / f } f = b . row . raw [ b . column . dataKey ] . rect . height * e . heightRatio ; f > a . styles . rowHeight && ( a . styles . rowHeight = f ) } "undefined" != typeof g . style && ! 0 !== g . style . hidden && ( a . styles . halign = g . style . align , "inherit" === d . styles . fillColor && ( a . styles . fillColor = g . style . bcolor ) , "inherit" === d . styles . textColor && ( a . styles . textColor = g . style . color ) , "inherit" === d . styles . fontStyle && ( a . styles . fontStyle = g . style . fstyle ) ) } } ) ; "function" !== typeof d . createdCell && ( d . createdCell =
function ( a , b ) { b = e . rowoptions [ b . row . index + ":" + b . column . dataKey ] ; "undefined" != typeof b && "undefined" != typeof b . style && ! 0 !== b . style . hidden && ( a . styles . halign = b . style . align , "inherit" === d . styles . fillColor && ( a . styles . fillColor = b . style . bcolor ) , "inherit" === d . styles . textColor && ( a . styles . textColor = b . style . color ) , "inherit" === d . styles . fontStyle && ( a . styles . fontStyle = b . style . fstyle ) ) } ) ; "function" !== typeof d . drawHeaderCell && ( d . drawHeaderCell = function ( a , b ) { var c = e . columns [ b . column . dataKey ] ; return ( ! 0 !== c . style . hasOwnProperty ( "hidden" ) ||
! 0 !== c . style . hidden ) && 0 <= c . rowIndex ? oa ( a , b , c ) : ! 1 } ) ; "function" !== typeof d . drawCell && ( d . drawCell = function ( a , b ) { var c = e . rowoptions [ b . row . index + ":" + b . column . dataKey ] ; if ( oa ( a , b , c ) ) if ( e . doc . rect ( a . x , a . y , a . width , a . height , a . styles . fillStyle ) , "undefined" != typeof c && "undefined" != typeof c . kids && 0 < c . kids . length ) { b = a . height / c . rect . height ; if ( b > e . dh || "undefined" == typeof e . dh ) e . dh = b ; e . dw = a . width / c . rect . width ; b = a . textPos . y ; ra ( a , c . kids , e ) ; a . textPos . y = b ; sa ( a , c . kids , e ) } else sa ( a , { } , e ) ; return ! 1 } ) ; e . headerrows = [ ] ; q = c ( this ) . find ( "thead" ) . find ( a . theadSelector ) ;
q . each ( function ( ) { b = 0 ; e . headerrows [ k ] = [ ] ; B ( this , "th,td" , k , q . length , function ( a , c , d ) { var g = ta ( a ) ; g . title = z ( a , c , d ) ; g . key = b ++ ; g . rowIndex = k ; e . headerrows [ k ] . push ( g ) } ) ; k ++ } ) ; if ( 0 < k ) for ( var f = k - 1 ; 0 <= f ; ) c . each ( e . headerrows [ f ] , function ( ) { var a = this ; 0 < f && null === this . rect && ( a = e . headerrows [ f - 1 ] [ this . key ] ) ; null !== a && 0 <= a . rowIndex && ( ! 0 !== a . style . hasOwnProperty ( "hidden" ) || ! 0 !== a . style . hidden ) && e . columns . push ( a ) } ) , f = 0 < e . columns . length ? - 1 : f - 1 ; var h = 0 ; t = [ ] ; t = u ( c ( this ) ) ; c ( t ) . each ( function ( ) { var a = [ ] ; b = 0 ; B ( this , "td,th" ,
k , q . length + t . length , function ( d , f , g ) { if ( "undefined" === typeof e . columns [ b ] ) { var k = { title : "" , key : b , style : { hidden : ! 0 } } ; e . columns . push ( k ) } "undefined" !== typeof d && null !== d ? ( k = ta ( d ) , k . kids = c ( d ) . children ( ) ) : ( k = c . extend ( ! 0 , { } , e . rowoptions [ h + ":" + ( b - 1 ) ] ) , k . colspan = - 1 ) ; e . rowoptions [ h + ":" + b ++ ] = k ; a . push ( z ( d , f , g ) ) } ) ; a . length && ( e . rows . push ( a ) , h ++ ) ; k ++ } ) ; if ( "function" === typeof e . onBeforeAutotable ) e . onBeforeAutotable ( c ( this ) , e . columns , e . rows , d ) ; e . doc . autoTable ( e . columns , e . rows , d ) ; if ( "function" === typeof e . onAfterAutotable ) e . onAfterAutotable ( c ( this ) ,
d ) ; a . jspdf . autotable . startY = e . doc . autoTableEndPosY ( ) + d . margin . top } ) ; na ( e . doc , "undefined" != typeof e . images && ! 1 === jQuery . isEmptyObject ( e . images ) ) ; "undefined" != typeof e . headerrows && ( e . headerrows . length = 0 ) ; "undefined" != typeof e . columns && ( e . columns . length = 0 ) ; "undefined" != typeof e . rows && ( e . rows . length = 0 ) ; delete e . doc ; e . doc = null } ) } return this } } ) ( jQuery ) ;
( function ( c ) { c . fn . tableExport = function ( g ) { function u ( b ) { var d = [ ] ; C ( b , "tbody" ) . each ( function ( ) { d . push . apply ( d , D ( c ( this ) , a . tbodySelector ) . toArray ( ) ) } ) ; a . tfootSelector . length && C ( b , "tfoot" ) . each ( function ( ) { d . push . apply ( d , D ( c ( this ) , a . tfootSelector ) . toArray ( ) ) } ) ; return d } function C ( b , a ) { var d = b . parents ( "table" ) . length ; return b . find ( a ) . filter ( function ( ) { return c ( this ) . closest ( "table" ) . parents ( "table" ) . length === d } ) } function D ( b , d ) { return b . find ( d ) . filter ( function ( ) { return 0 === a . maxNestedTables || c ( this ) . find ( "table" ) . length <
a . maxNestedTables && c ( this ) . parents ( "table" ) . length <= a . maxNestedTables } ) } function P ( b ) { var a = [ ] ; c ( b ) . find ( "thead" ) . first ( ) . find ( "th" ) . each ( function ( b , d ) { void 0 !== c ( d ) . attr ( "data-field" ) ? a [ b ] = c ( d ) . attr ( "data-field" ) : a [ b ] = b . toString ( ) } ) ; return a } function Q ( b ) { var a = "undefined" !== typeof b [ 0 ] . cellIndex , e = "undefined" !== typeof b [ 0 ] . rowIndex , t = a || e ? Aa ( b ) : b . is ( ":visible" ) , h = b . data ( "tableexport-display" ) ; a && "none" !== h && "always" !== h && ( b = c ( b [ 0 ] . parentNode ) , e = "undefined" !== typeof b [ 0 ] . rowIndex , h = b . data ( "tableexport-display" ) ) ;
e && "none" !== h && "always" !== h && ( h = b . closest ( "table" ) . data ( "tableexport-display" ) ) ; return "none" !== h && ( ! 0 === t || "always" === h ) } function Aa ( b ) { var a = [ ] ; U && ( a = I . filter ( function ( ) { var a = ! 1 ; this . nodeType === b [ 0 ] . nodeType && ( "undefined" !== typeof this . rowIndex && this . rowIndex === b [ 0 ] . rowIndex ? a = ! 0 : "undefined" !== typeof this . cellIndex && this . cellIndex === b [ 0 ] . cellIndex && "undefined" !== typeof this . parentNode . rowIndex && "undefined" !== typeof b [ 0 ] . parentNode . rowIndex && this . parentNode . rowIndex === b [ 0 ] . parentNode . rowIndex && ( a =
! 0 ) ) ; return a } ) ) ; return ! 1 === U || 0 === a . length } function Ba ( b , d , e ) { var t = ! 1 ; Q ( b ) ? 0 < a . ignoreColumn . length && ( - 1 !== c . inArray ( e , a . ignoreColumn ) || - 1 !== c . inArray ( e - d , a . ignoreColumn ) || R . length > e && "undefined" !== typeof R [ e ] && - 1 !== c . inArray ( R [ e ] , a . ignoreColumn ) ) && ( t = ! 0 ) : t = ! 0 ; return t } function B ( b , d , e , t , h ) { if ( "function" === typeof h ) { var l = ! 1 ; "function" === typeof a . onIgnoreRow && ( l = a . onIgnoreRow ( c ( b ) , e ) ) ; if ( ! 1 === l && - 1 === c . inArray ( e , a . ignoreRow ) && - 1 === c . inArray ( e - t , a . ignoreRow ) && Q ( c ( b ) ) ) { var w = c ( b ) . find ( d ) , p = 0 ; w . each ( function ( b ) { var a =
c ( this ) , d , l = S ( this ) , t = T ( this ) ; c . each ( F , function ( ) { if ( e >= this . s . r && e <= this . e . r && p >= this . s . c && p <= this . e . c ) for ( d = 0 ; d <= this . e . c - this . s . c ; ++ d ) h ( null , e , p ++ ) } ) ; if ( ! 1 === Ba ( a , w . length , b ) ) { if ( t || l ) l = l || 1 , F . push ( { s : { r : e , c : p } , e : { r : e + ( t || 1 ) - 1 , c : p + l - 1 } } ) ; h ( this , e , p ++ ) } if ( l ) for ( d = 0 ; d < l - 1 ; ++ d ) h ( null , e , p ++ ) } ) ; c . each ( F , function ( ) { if ( e >= this . s . r && e <= this . e . r && p >= this . s . c && p <= this . e . c ) for ( aa = 0 ; aa <= this . e . c - this . s . c ; ++ aa ) h ( null , e , p ++ ) } ) } } } function na ( b , d ) { if ( "string" === a . outputMode ) return b . output ( ) ; if ( "base64" === a . outputMode ) return J ( b . output ( ) ) ;
if ( "window" === a . outputMode ) window . URL = window . URL || window . webkitURL , window . open ( window . URL . createObjectURL ( b . output ( "blob" ) ) ) ; else try { var e = b . output ( "blob" ) ; saveAs ( e , a . fileName + ".pdf" ) } catch ( t ) { G ( a . fileName + ".pdf" , "data:application/pdf" + ( d ? "" : ";base64" ) + "," , d ? b . output ( "blob" ) : b . output ( ) ) } } function oa ( b , a , e ) { var d = 0 ; "undefined" !== typeof e && ( d = e . colspan ) ; if ( 0 <= d ) { for ( var h = b . width , c = b . textPos . x , w = a . table . columns . indexOf ( a . column ) , p = 1 ; p < d ; p ++ ) h += a . table . columns [ w + p ] . width ; 1 < d && ( "right" === b . styles . halign ?
c = b . textPos . x + h - b . width : "center" === b . styles . halign && ( c = b . textPos . x + ( h - b . width ) / 2 ) ) ; b . width = h ; b . textPos . x = c ; "undefined" !== typeof e && 1 < e . rowspan && ( b . height *= e . rowspan ) ; if ( "middle" === b . styles . valign || "bottom" === b . styles . valign ) e = ( "string" === typeof b . text ? b . text . split ( /\r\n|\r|\n/g ) : b . text ) . length || 1 , 2 < e && ( b . textPos . y -= ( 2 - 1.15 ) / 2 * a . row . styles . fontSize * ( e - 2 ) / 3 ) ; return ! 0 } return ! 1 } function pa ( b , a , e ) { "undefined" !== typeof e . images && a . each ( function ( ) { var a = c ( this ) . children ( ) ; if ( c ( this ) . is ( "img" ) ) { var d = qa ( this . src ) ;
e . images [ d ] = { url : this . src , src : this . src } } "undefined" !== typeof a && 0 < a . length && pa ( b , a , e ) } ) } function Ca ( b , a ) { function d ( b ) { if ( b . url ) { var d = new Image ; h = ++ l ; d . crossOrigin = "Anonymous" ; d . onerror = d . onload = function ( ) { if ( d . complete && ( 0 === d . src . indexOf ( "data:image/" ) && ( d . width = b . width || d . width || 0 , d . height = b . height || d . height || 0 ) , d . width + d . height ) ) { var e = document . createElement ( "canvas" ) , c = e . getContext ( "2d" ) ; e . width = d . width ; e . height = d . height ; c . drawImage ( d , 0 , 0 ) ; b . src = e . toDataURL ( "image/jpeg" ) } -- l || a ( h ) } ; d . src = b . url } }
var c , h = 0 , l = 0 ; if ( "undefined" !== typeof b . images ) for ( c in b . images ) b . images . hasOwnProperty ( c ) && d ( b . images [ c ] ) ; ( b = l ) || ( a ( h ) , b = void 0 ) ; return b } function ra ( b , d , e ) { d . each ( function ( ) { var d = c ( this ) . children ( ) , h = 0 ; if ( c ( this ) . is ( "div" ) ) { var l = ba ( K ( this , "background-color" ) , [ 255 , 255 , 255 ] ) , w = ba ( K ( this , "border-top-color" ) , [ 0 , 0 , 0 ] ) , p = ca ( this , "border-top-width" , a . jspdf . unit ) , f = this . getBoundingClientRect ( ) , g = this . offsetLeft * e . dw ; h = this . offsetTop * e . dh ; var k = f . width * e . dw ; f = f . height * e . dh ; e . doc . setDrawColor . apply ( void 0 ,
w ) ; e . doc . setFillColor . apply ( void 0 , l ) ; e . doc . setLineWidth ( p ) ; e . doc . rect ( b . x + g , b . y + h , k , f , p ? "FD" : "F" ) } else if ( c ( this ) . is ( "img" ) && "undefined" !== typeof e . images && ( l = qa ( this . src ) , l = e . images [ l ] , "undefined" !== typeof l ) ) { w = b . width / b . height ; p = this . width / this . height ; g = b . width ; k = b . height ; f = 19.049976 / 25.4 ; p <= w ? ( k = Math . min ( b . height , this . height ) , g = this . width * k / this . height ) : p > w && ( g = Math . min ( b . width , this . width ) , k = this . height * g / this . width ) ; g *= f ; k *= f ; k < b . height && ( h = ( b . height - k ) / 2 ) ; try { e . doc . addImage ( l . src , b . textPos . x ,
b . y + h , g , k ) } catch ( Ga ) { } b . textPos . x += g } "undefined" !== typeof d && 0 < d . length && ra ( b , d , e ) } ) } function sa ( b , a , e ) { if ( "function" === typeof e . onAutotableText ) e . onAutotableText ( e . doc , b , a ) ; else { var d = b . textPos . x , h = b . textPos . y , l = { halign : b . styles . halign , valign : b . styles . valign } ; if ( a . length ) { for ( a = a [ 0 ] ; a . previousSibling ; ) a = a . previousSibling ; for ( var w = ! 1 , p = ! 1 ; a ; ) { var f = a . innerText || a . textContent || "" ; f = ( f . length && " " === f [ 0 ] ? " " : "" ) + c . trim ( f ) + ( 1 < f . length && " " === f [ f . length - 1 ] ? " " : "" ) ; c ( a ) . is ( "br" ) && ( d = b . textPos . x , h += e . doc . internal . getFontSize ( ) ) ;
c ( a ) . is ( "b" ) ? w = ! 0 : c ( a ) . is ( "i" ) && ( p = ! 0 ) ; ( w || p ) && e . doc . setFontType ( w && p ? "bolditalic" : w ? "bold" : "italic" ) ; var g = e . doc . getStringUnitWidth ( f ) * e . doc . internal . getFontSize ( ) ; if ( g ) { if ( "linebreak" === b . styles . overflow && d > b . textPos . x && d + g > b . textPos . x + b . width ) { if ( 0 <= ".,!%*;:=-" . indexOf ( f . charAt ( 0 ) ) ) { var k = f . charAt ( 0 ) ; g = e . doc . getStringUnitWidth ( k ) * e . doc . internal . getFontSize ( ) ; d + g <= b . textPos . x + b . width && ( e . doc . autoTableText ( k , d , h , l ) , f = f . substring ( 1 , f . length ) ) ; g = e . doc . getStringUnitWidth ( f ) * e . doc . internal . getFontSize ( ) } d =
b . textPos . x ; h += e . doc . internal . getFontSize ( ) } if ( "visible" !== b . styles . overflow ) for ( ; f . length && d + g > b . textPos . x + b . width ; ) f = f . substring ( 0 , f . length - 1 ) , g = e . doc . getStringUnitWidth ( f ) * e . doc . internal . getFontSize ( ) ; e . doc . autoTableText ( f , d , h , l ) ; d += g } if ( w || p ) c ( a ) . is ( "b" ) ? w = ! 1 : c ( a ) . is ( "i" ) && ( p = ! 1 ) , e . doc . setFontType ( w || p ? w ? "bold" : "italic" : "normal" ) ; a = a . nextSibling } b . textPos . x = d ; b . textPos . y = h } else e . doc . autoTableText ( b . text , b . textPos . x , b . textPos . y , l ) } } function da ( b , a , e ) { return b . replace ( new RegExp ( a . replace ( /([.*+?^=!:${}()|\[\]\/\\])/g ,
"\\$1" ) , "g" ) , e ) } function ha ( b ) { b = da ( b || "0" , a . numbers . html . thousandsSeparator , "" ) ; b = da ( b , a . numbers . html . decimalMark , "." ) ; return "number" === typeof b || ! 1 !== jQuery . isNumeric ( b ) ? b : ! 1 } function Da ( b ) { - 1 < b . indexOf ( "%" ) ? ( b = ha ( b . replace ( /%/g , "" ) ) , ! 1 !== b && ( b /= 100 ) ) : b = ! 1 ; return b } function z ( b , d , e ) { var t = "" ; if ( null !== b ) { var h = c ( b ) ; if ( h [ 0 ] . hasAttribute ( "data-tableexport-value" ) ) var l = ( l = h . data ( "tableexport-value" ) ) ? l + "" : "" ; else if ( l = h . html ( ) , "function" === typeof a . onCellHtmlData ) l = a . onCellHtmlData ( h , d , e , l ) ; else if ( "" !==
l ) { var f = c . parseHTML ( l ) , p = 0 , g = 0 ; l = "" ; c . each ( f , function ( ) { if ( c ( this ) . is ( "input" ) ) l += h . find ( "input" ) . eq ( p ++ ) . val ( ) ; else if ( c ( this ) . is ( "select" ) ) l += h . find ( "select option:selected" ) . eq ( g ++ ) . text ( ) ; else if ( "undefined" === typeof c ( this ) . html ( ) ) l += c ( this ) . text ( ) ; else if ( void 0 === jQuery ( ) . bootstrapTable || ! 0 !== c ( this ) . hasClass ( "filterControl" ) && 0 === c ( b ) . parents ( ".detail-view" ) . length ) l += c ( this ) . html ( ) } ) } if ( ! 0 === a . htmlContent ) t = c . trim ( l ) ; else if ( l && "" !== l ) if ( "" !== c ( b ) . data ( "tableexport-cellformat" ) ) { var k = l . replace ( /\n/g ,
"\u2028" ) . replace ( /<br\s*[\/]?>/gi , "\u2060" ) , m = c ( "<div/>" ) . html ( k ) . contents ( ) ; f = ! 1 ; k = "" ; c . each ( m . text ( ) . split ( "\u2028" ) , function ( b , a ) { 0 < b && ( k += " " ) ; k += c . trim ( a ) } ) ; c . each ( k . split ( "\u2060" ) , function ( b , a ) { 0 < b && ( t += "\n" ) ; t += c . trim ( a ) . replace ( /\u00AD/g , "" ) } ) ; if ( "json" === a . type || "excel" === a . type && "xmlss" === a . mso . fileFormat || ! 1 === a . numbers . output ) f = ha ( t ) , ! 1 !== f && ( t = Number ( f ) ) ; else if ( a . numbers . html . decimalMark !== a . numbers . output . decimalMark || a . numbers . html . thousandsSeparator !== a . numbers . output . thousandsSeparator ) if ( f =
ha ( t ) , ! 1 !== f ) { m = ( "" + f . substr ( 0 > f ? 1 : 0 ) ) . split ( "." ) ; 1 === m . length && ( m [ 1 ] = "" ) ; var n = 3 < m [ 0 ] . length ? m [ 0 ] . length % 3 : 0 ; t = ( 0 > f ? "-" : "" ) + ( a . numbers . output . thousandsSeparator ? ( n ? m [ 0 ] . substr ( 0 , n ) + a . numbers . output . thousandsSeparator : "" ) + m [ 0 ] . substr ( n ) . replace ( /(\d{3})(?=\d)/g , "$1" + a . numbers . output . thousandsSeparator ) : m [ 0 ] ) + ( m [ 1 ] . length ? a . numbers . output . decimalMark + m [ 1 ] : "" ) } } else t = l ; ! 0 === a . escape && ( t = escape ( t ) ) ; "function" === typeof a . onCellData && ( t = a . onCellData ( h , d , e , t ) ) } return t } function Ea ( b , a , e ) { return a + "-" +
e . toLowerCase ( ) } function ba ( b , a ) { ( b = /^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/ . exec ( b ) ) && ( a = [ parseInt ( b [ 1 ] ) , parseInt ( b [ 2 ] ) , parseInt ( b [ 3 ] ) ] ) ; return a } function ta ( b ) { var a = K ( b , "text-align" ) , e = K ( b , "font-weight" ) , c = K ( b , "font-style" ) , h = "" ; "start" === a && ( a = "rtl" === K ( b , "direction" ) ? "right" : "left" ) ; 700 <= e && ( h = "bold" ) ; "italic" === c && ( h += c ) ; "" === h && ( h = "normal" ) ; a = { style : { align : a , bcolor : ba ( K ( b , "background-color" ) , [ 255 , 255 , 255 ] ) , color : ba ( K ( b , "color" ) , [ 0 , 0 , 0 ] ) , fstyle : h } , colspan : S ( b ) , rowspan : T ( b ) } ; null !== b &&
( b = b . getBoundingClientRect ( ) , a . rect = { width : b . width , height : b . height } ) ; return a } function S ( a ) { var b = c ( a ) . data ( "tableexport-colspan" ) ; "undefined" === typeof b && c ( a ) . is ( "[colspan]" ) && ( b = c ( a ) . attr ( "colspan" ) ) ; return parseInt ( b ) || 0 } function T ( a ) { var b = c ( a ) . data ( "tableexport-rowspan" ) ; "undefined" === typeof b && c ( a ) . is ( "[rowspan]" ) && ( b = c ( a ) . attr ( "rowspan" ) ) ; return parseInt ( b ) || 0 } function K ( a , d ) { try { return window . getComputedStyle ? ( d = d . replace ( /([a-z])([A-Z])/ , Ea ) , window . getComputedStyle ( a , null ) . getPropertyValue ( d ) ) :
a . currentStyle ? a . currentStyle [ d ] : a . style [ d ] } catch ( e ) { } return "" } function ca ( a , d , e ) { d = K ( a , d ) . match ( /\d+/ ) ; if ( null !== d ) { d = d [ 0 ] ; a = a . parentElement ; var b = document . createElement ( "div" ) ; b . style . overflow = "hidden" ; b . style . visibility = "hidden" ; a . appendChild ( b ) ; b . style . width = 100 + e ; e = 100 / b . offsetWidth ; a . removeChild ( b ) ; return d * e } return 0 } function ia ( ) { if ( ! ( this instanceof ia ) ) return new ia ; this . SheetNames = [ ] ; this . Sheets = { } } function ua ( a ) { for ( var b = new ArrayBuffer ( a . length ) , e = new Uint8Array ( b ) , c = 0 ; c !== a . length ; ++ c ) e [ c ] =
a . charCodeAt ( c ) & 255 ; return b } function Fa ( a ) { for ( var b = { } , e = { s : { c : 1E7 , r : 1E7 } , e : { c : 0 , r : 0 } } , c = 0 ; c !== a . length ; ++ c ) for ( var h = 0 ; h !== a [ c ] . length ; ++ h ) { e . s . r > c && ( e . s . r = c ) ; e . s . c > h && ( e . s . c = h ) ; e . e . r < c && ( e . e . r = c ) ; e . e . c < h && ( e . e . c = h ) ; var l = { v : a [ c ] [ h ] } ; if ( null !== l . v ) { var f = XLSX . utils . encode _cell ( { c : h , r : c } ) ; if ( "number" === typeof l . v ) l . t = "n" ; else if ( "boolean" === typeof l . v ) l . t = "b" ; else if ( l . v instanceof Date ) { l . t = "n" ; l . z = XLSX . SSF . _table [ 14 ] ; var g = l ; var k = ( Date . parse ( l . v ) - new Date ( Date . UTC ( 1899 , 11 , 30 ) ) ) / 864E5 ; g . v = k } else l . t =
"s" ; b [ f ] = l } } 1E7 > e . s . c && ( b [ "!ref" ] = XLSX . utils . encode _range ( e ) ) ; return b } function qa ( a ) { var b = 0 , c ; if ( 0 === a . length ) return b ; var f = 0 ; for ( c = a . length ; f < c ; f ++ ) { var h = a . charCodeAt ( f ) ; b = ( b << 5 ) - b + h ; b |= 0 } return b } function G ( a , c , e ) { var b = window . navigator . userAgent ; if ( ! 1 !== a && window . navigator . msSaveOrOpenBlob ) window . navigator . msSaveOrOpenBlob ( new Blob ( [ e ] ) , a ) ; else if ( ! 1 !== a && ( 0 < b . indexOf ( "MSIE " ) || b . match ( /Trident.*rv:11\./ ) ) ) { if ( c = document . createElement ( "iframe" ) ) { document . body . appendChild ( c ) ; c . setAttribute ( "style" ,
"display:none" ) ; c . contentDocument . open ( "txt/plain" , "replace" ) ; c . contentDocument . write ( e ) ; c . contentDocument . close ( ) ; c . contentDocument . focus ( ) ; switch ( a . substr ( a . lastIndexOf ( "." ) + 1 ) ) { case "doc" : case "json" : case "png" : case "pdf" : case "xls" : case "xlsx" : a += ".txt" } c . contentDocument . execCommand ( "SaveAs" , ! 0 , a ) ; document . body . removeChild ( c ) } } else { var d = document . createElement ( "a" ) ; if ( d ) { var l = null ; d . style . display = "none" ; ! 1 !== a ? d . download = a : d . target = "_blank" ; "object" === typeof e ? ( window . URL = window . URL || window . webkitURL ,
l = window . URL . createObjectURL ( e ) , d . href = l ) : 0 <= c . toLowerCase ( ) . indexOf ( "base64," ) ? d . href = c + J ( e ) : d . href = c + encodeURIComponent ( e ) ; document . body . appendChild ( d ) ; if ( document . createEvent ) null === ea && ( ea = document . createEvent ( "MouseEvents" ) ) , ea . initEvent ( "click" , ! 0 , ! 1 ) , d . dispatchEvent ( ea ) ; else if ( document . createEventObject ) d . fireEvent ( "onclick" ) ; else if ( "function" === typeof d . onclick ) d . onclick ( ) ; setTimeout ( function ( ) { l && window . URL . revokeObjectURL ( l ) ; document . body . removeChild ( d ) } , 100 ) } } } function J ( a ) { var b , c = "" ,
f = 0 ; if ( "string" === typeof a ) { a = a . replace ( /\x0d\x0a/g , "\n" ) ; var h = "" ; for ( b = 0 ; b < a . length ; b ++ ) { var l = a . charCodeAt ( b ) ; 128 > l ? h += String . fromCharCode ( l ) : ( 127 < l && 2048 > l ? h += String . fromCharCode ( l >> 6 | 192 ) : ( h += String . fromCharCode ( l >> 12 | 224 ) , h += String . fromCharCode ( l >> 6 & 63 | 128 ) ) , h += String . fromCharCode ( l & 63 | 128 ) ) } a = h } for ( ; f < a . length ; ) { var g = a . charCodeAt ( f ++ ) ; h = a . charCodeAt ( f ++ ) ; b = a . charCodeAt ( f ++ ) ; l = g >> 2 ; g = ( g & 3 ) << 4 | h >> 4 ; var k = ( h & 15 ) << 2 | b >> 6 ; var m = b & 63 ; isNaN ( h ) ? k = m = 64 : isNaN ( b ) && ( m = 64 ) ; c = c + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" . charAt ( l ) +
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" . charAt ( g ) + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" . charAt ( k ) + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" . charAt ( m ) } return c } var a = { csvEnclosure : '"' , csvSeparator : "," , csvUseBOM : ! 0 , displayTableName : ! 1 , escape : ! 1 , exportHiddenCells : ! 1 , fileName : "tableExport" , htmlContent : ! 1 , ignoreColumn : [ ] , ignoreRow : [ ] , jsonScope : "all" , jspdf : { orientation : "p" , unit : "pt" , format : "a4" , margins : { left : 20 , right : 10 ,
top : 10 , bottom : 10 } , onDocCreated : null , autotable : { styles : { cellPadding : 2 , rowHeight : 12 , fontSize : 8 , fillColor : 255 , textColor : 50 , fontStyle : "normal" , overflow : "ellipsize" , halign : "left" , valign : "middle" } , headerStyles : { fillColor : [ 52 , 73 , 94 ] , textColor : 255 , fontStyle : "bold" , halign : "center" } , alternateRowStyles : { fillColor : 245 } , tableExport : { doc : null , onAfterAutotable : null , onBeforeAutotable : null , onAutotableText : null , onTable : null , outputImages : ! 0 } } } , maxNestedTables : 1 , mso : { fileFormat : "xlshtml" , onMsoNumberFormat : null , pageFormat : "a4" ,
pageOrientation : "portrait" , rtl : ! 1 , styles : [ ] , worksheetName : "" } , numbers : { html : { decimalMark : "." , thousandsSeparator : "," } , output : { decimalMark : "." , thousandsSeparator : "," } } , onCellData : null , onCellHtmlData : null , onIgnoreRow : null , outputMode : "file" , pdfmake : { enabled : ! 1 , docDefinition : { pageOrientation : "portrait" , defaultStyle : { font : "Roboto" } } , fonts : { } } , tbodySelector : "tr" , tfootSelector : "tr" , theadSelector : "tr" , tableName : "Table" , type : "csv" } , L = { a0 : [ 2383.94 , 3370.39 ] , a1 : [ 1683.78 , 2383.94 ] , a2 : [ 1190.55 , 1683.78 ] , a3 : [ 841.89 ,
1190.55 ] , a4 : [ 595.28 , 841.89 ] , a5 : [ 419.53 , 595.28 ] , a6 : [ 297.64 , 419.53 ] , a7 : [ 209.76 , 297.64 ] , a8 : [ 147.4 , 209.76 ] , a9 : [ 104.88 , 147.4 ] , a10 : [ 73.7 , 104.88 ] , b0 : [ 2834.65 , 4008.19 ] , b1 : [ 2004.09 , 2834.65 ] , b2 : [ 1417.32 , 2004.09 ] , b3 : [ 1000.63 , 1417.32 ] , b4 : [ 708.66 , 1000.63 ] , b5 : [ 498.9 , 708.66 ] , b6 : [ 354.33 , 498.9 ] , b7 : [ 249.45 , 354.33 ] , b8 : [ 175.75 , 249.45 ] , b9 : [ 124.72 , 175.75 ] , b10 : [ 87.87 , 124.72 ] , c0 : [ 2599.37 , 3676.54 ] , c1 : [ 1836.85 , 2599.37 ] , c2 : [ 1298.27 , 1836.85 ] , c3 : [ 918.43 , 1298.27 ] , c4 : [ 649.13 , 918.43 ] , c5 : [ 459.21 , 649.13 ] , c6 : [ 323.15 , 459.21 ] , c7 : [ 229.61 ,
323.15 ] , c8 : [ 161.57 , 229.61 ] , c9 : [ 113.39 , 161.57 ] , c10 : [ 79.37 , 113.39 ] , dl : [ 311.81 , 623.62 ] , letter : [ 612 , 792 ] , "government-letter" : [ 576 , 756 ] , legal : [ 612 , 1008 ] , "junior-legal" : [ 576 , 360 ] , ledger : [ 1224 , 792 ] , tabloid : [ 792 , 1224 ] , "credit-card" : [ 153 , 243 ] } , v = this , ea = null , q = [ ] , r = [ ] , m = 0 , n = "" , R = [ ] , F = [ ] , I = [ ] , U = ! 1 ; c . extend ( ! 0 , a , g ) ; "xlsx" === a . type && ( a . mso . fileFormat = a . type , a . type = "excel" ) ; "undefined" !== typeof a . excelFileFormat && "undefined" === a . mso . fileFormat && ( a . mso . fileFormat = a . excelFileFormat ) ; "undefined" !== typeof a . excelPageFormat &&
"undefined" === a . mso . pageFormat && ( a . mso . pageFormat = a . excelPageFormat ) ; "undefined" !== typeof a . excelPageOrientation && "undefined" === a . mso . pageOrientation && ( a . mso . pageOrientation = a . excelPageOrientation ) ; "undefined" !== typeof a . excelRTL && "undefined" === a . mso . rtl && ( a . mso . rtl = a . excelRTL ) ; "undefined" !== typeof a . excelstyles && "undefined" === a . mso . styles && ( a . mso . styles = a . excelstyles ) ; "undefined" !== typeof a . onMsoNumberFormat && "undefined" === a . mso . onMsoNumberFormat && ( a . mso . onMsoNumberFormat = a . onMsoNumberFormat ) ; "undefined" !==
typeof a . worksheetName && "undefined" === a . mso . worksheetName && ( a . mso . worksheetName = a . worksheetName ) ; a . mso . pageOrientation = "l" === a . mso . pageOrientation . substr ( 0 , 1 ) ? "landscape" : "portrait" ; a . maxNestedTables = 0 <= a . maxNestedTables ? a . maxNestedTables : 1 ; R = P ( v ) ; if ( "csv" === a . type || "tsv" === a . type || "txt" === a . type ) { var M = "" , X = 0 ; F = [ ] ; m = 0 ; var ja = function ( b , d , e ) { b . each ( function ( ) { n = "" ; B ( this , d , m , e + b . length , function ( b , c , d ) { var e = n , h = "" ; if ( null !== b ) if ( b = z ( b , c , d ) , c = null === b || "" === b ? "" : b . toString ( ) , "tsv" === a . type ) b instanceof
Date && b . toLocaleString ( ) , h = da ( c , "\t" , " " ) ; else if ( b instanceof Date ) h = a . csvEnclosure + b . toLocaleString ( ) + a . csvEnclosure ; else if ( h = da ( c , a . csvEnclosure , a . csvEnclosure + a . csvEnclosure ) , 0 <= h . indexOf ( a . csvSeparator ) || /[\r\n ]/g . test ( h ) ) h = a . csvEnclosure + h + a . csvEnclosure ; n = e + ( h + ( "tsv" === a . type ? "\t" : a . csvSeparator ) ) } ) ; n = c . trim ( n ) . substring ( 0 , n . length - 1 ) ; 0 < n . length && ( 0 < M . length && ( M += "\n" ) , M += n ) ; m ++ } ) ; return b . length } ; X += ja ( c ( v ) . find ( "thead" ) . first ( ) . find ( a . theadSelector ) , "th,td" , X ) ; C ( c ( v ) , "tbody" ) . each ( function ( ) { X +=
ja ( D ( c ( this ) , a . tbodySelector ) , "td,th" , X ) } ) ; a . tfootSelector . length && ja ( c ( v ) . find ( "tfoot" ) . first ( ) . find ( a . tfootSelector ) , "td,th" , X ) ; M += "\n" ; if ( "string" === a . outputMode ) return M ; if ( "base64" === a . outputMode ) return J ( M ) ; if ( "window" === a . outputMode ) { G ( ! 1 , "data:text/" + ( "csv" === a . type ? "csv" : "plain" ) + ";charset=utf-8," , M ) ; return } try { var A = new Blob ( [ M ] , { type : "text/" + ( "csv" === a . type ? "csv" : "plain" ) + ";charset=utf-8" } ) ; saveAs ( A , a . fileName + "." + a . type , "csv" !== a . type || ! 1 === a . csvUseBOM ) } catch ( b ) { G ( a . fileName + "." + a . type ,
"data:text/" + ( "csv" === a . type ? "csv" : "plain" ) + ";charset=utf-8," + ( "csv" === a . type && a . csvUseBOM ? "\ufeff" : "" ) , M ) } } else if ( "sql" === a . type ) { m = 0 ; F = [ ] ; var x = "INSERT INTO `" + a . tableName + "` (" ; q = c ( v ) . find ( "thead" ) . first ( ) . find ( a . theadSelector ) ; q . each ( function ( ) { B ( this , "th,td" , m , q . length , function ( a , c , e ) { x += "'" + z ( a , c , e ) + "'," } ) ; m ++ ; x = c . trim ( x ) . substring ( 0 , x . length - 1 ) } ) ; x += ") VALUES " ; r = u ( c ( v ) ) ; c ( r ) . each ( function ( ) { n = "" ; B ( this , "td,th" , m , q . length + r . length , function ( a , c , e ) { n += "'" + z ( a , c , e ) + "'," } ) ; 3 < n . length && ( x += "(" +
n , x = c . trim ( x ) . substring ( 0 , x . length - 1 ) , x += ")," ) ; m ++ } ) ; x = c . trim ( x ) . substring ( 0 , x . length - 1 ) ; x += ";" ; if ( "string" === a . outputMode ) return x ; if ( "base64" === a . outputMode ) return J ( x ) ; try { A = new Blob ( [ x ] , { type : "text/plain;charset=utf-8" } ) , saveAs ( A , a . fileName + ".sql" ) } catch ( b ) { G ( a . fileName + ".sql" , "data:application/sql;charset=utf-8," , x ) } } else if ( "json" === a . type ) { var V = [ ] ; F = [ ] ; q = c ( v ) . find ( "thead" ) . first ( ) . find ( a . theadSelector ) ; q . each ( function ( ) { var a = [ ] ; B ( this , "th,td" , m , q . length , function ( b , c , f ) { a . push ( z ( b , c , f ) ) } ) ;
V . push ( a ) } ) ; var ka = [ ] ; r = u ( c ( v ) ) ; c ( r ) . each ( function ( ) { var a = { } , d = 0 ; B ( this , "td,th" , m , q . length + r . length , function ( b , c , h ) { V . length ? a [ V [ V . length - 1 ] [ d ] ] = z ( b , c , h ) : a [ d ] = z ( b , c , h ) ; d ++ } ) ; ! 1 === c . isEmptyObject ( a ) && ka . push ( a ) ; m ++ } ) ; g = "" ; g = "head" === a . jsonScope ? JSON . stringify ( V ) : "data" === a . jsonScope ? JSON . stringify ( ka ) : JSON . stringify ( { header : V , data : ka } ) ; if ( "string" === a . outputMode ) return g ; if ( "base64" === a . outputMode ) return J ( g ) ; try { A = new Blob ( [ g ] , { type : "application/json;charset=utf-8" } ) , saveAs ( A , a . fileName + ".json" ) } catch ( b ) { G ( a . fileName +
".json" , "data:application/json;charset=utf-8;base64," , g ) } } else if ( "xml" === a . type ) { m = 0 ; F = [ ] ; var N = '<?xml version="1.0" encoding="utf-8"?>' ; N += "<tabledata><fields>" ; q = c ( v ) . find ( "thead" ) . first ( ) . find ( a . theadSelector ) ; q . each ( function ( ) { B ( this , "th,td" , m , q . length , function ( a , c , e ) { N += "<field>" + z ( a , c , e ) + "</field>" } ) ; m ++ } ) ; N += "</fields><data>" ; var va = 1 ; r = u ( c ( v ) ) ; c ( r ) . each ( function ( ) { var a = 1 ; n = "" ; B ( this , "td,th" , m , q . length + r . length , function ( b , c , f ) { n += "<column-" + a + ">" + z ( b , c , f ) + "</column-" + a + ">" ; a ++ } ) ; 0 < n . length &&
"<column-1></column-1>" !== n && ( N += '<row id="' + va + '">' + n + "</row>" , va ++ ) ; m ++ } ) ; N += "</data></tabledata>" ; if ( "string" === a . outputMode ) return N ; if ( "base64" === a . outputMode ) return J ( N ) ; try { A = new Blob ( [ N ] , { type : "application/xml;charset=utf-8" } ) , saveAs ( A , a . fileName + ".xml" ) } catch ( b ) { G ( a . fileName + ".xml" , "data:application/xml;charset=utf-8;base64," , N ) } } else if ( "excel" === a . type && "xmlss" === a . mso . fileFormat ) { var la = [ ] , E = [ ] ; c ( v ) . filter ( function ( ) { return Q ( c ( this ) ) } ) . each ( function ( ) { function b ( a , b , d ) { var e = [ ] ; c ( a ) . each ( function ( ) { var b =
0 , h = 0 ; n = "" ; B ( this , "td,th" , m , d + a . length , function ( a , d , l ) { if ( null !== a ) { var f = "" ; d = z ( a , d , l ) ; l = "String" ; if ( ! 1 !== jQuery . isNumeric ( d ) ) l = "Number" ; else { var g = Da ( d ) ; ! 1 !== g && ( d = g , l = "Number" , f += ' ss:StyleID="pct1"' ) } "Number" !== l && ( d = d . replace ( /\n/g , "<br>" ) ) ; g = S ( a ) ; a = T ( a ) ; c . each ( e , function ( ) { if ( m >= this . s . r && m <= this . e . r && h >= this . s . c && h <= this . e . c ) for ( var a = 0 ; a <= this . e . c - this . s . c ; ++ a ) h ++ , b ++ } ) ; if ( a || g ) a = a || 1 , g = g || 1 , e . push ( { s : { r : m , c : h } , e : { r : m + a - 1 , c : h + g - 1 } } ) ; 1 < g && ( f += ' ss:MergeAcross="' + ( g - 1 ) + '"' , h += g - 1 ) ; 1 < a && ( f +=
' ss:MergeDown="' + ( a - 1 ) + '" ss:StyleID="rsp1"' ) ; 0 < b && ( f += ' ss:Index="' + ( h + 1 ) + '"' , b = 0 ) ; n += "<Cell" + f + '><Data ss:Type="' + l + '">' + c ( "<div />" ) . text ( d ) . html ( ) + "</Data></Cell>\r" ; h ++ } } ) ; 0 < n . length && ( H += '<Row ss:AutoFitHeight="0">\r' + n + "</Row>\r" ) ; m ++ } ) ; return a . length } var d = c ( this ) , e = "" ; "string" === typeof a . mso . worksheetName && a . mso . worksheetName . length ? e = a . mso . worksheetName + " " + ( E . length + 1 ) : "undefined" !== typeof a . mso . worksheetName [ E . length ] && ( e = a . mso . worksheetName [ E . length ] ) ; e . length || ( e = d . find ( "caption" ) . text ( ) ||
"" ) ; e . length || ( e = "Table " + ( E . length + 1 ) ) ; e = c . trim ( e . replace ( /[\\\/[\]*:?'"]/g , "" ) . substring ( 0 , 31 ) ) ; E . push ( c ( "<div />" ) . text ( e ) . html ( ) ) ; ! 1 === a . exportHiddenCells && ( I = d . find ( "tr, th, td" ) . filter ( ":hidden" ) , U = 0 < I . length ) ; m = 0 ; R = P ( this ) ; H = "<Table>\r" ; e = 0 ; e += b ( d . find ( "thead" ) . first ( ) . find ( a . theadSelector ) , "th,td" , e ) ; b ( u ( d ) , "td,th" , e ) ; H += "</Table>\r" ; la . push ( H ) } ) ; g = { } ; for ( var y = { } , k , O , W = 0 , aa = E . length ; W < aa ; W ++ ) k = E [ W ] , O = g [ k ] , O = g [ k ] = null == O ? 1 : O + 1 , 2 === O && ( E [ y [ k ] ] = E [ y [ k ] ] . substring ( 0 , 29 ) + "-1" ) , 1 < g [ k ] ? E [ W ] = E [ W ] . substring ( 0 ,
29 ) + "-" + g [ k ] : y [ k ] = W ; g = '<?xml version="1.0" encoding="UTF-8"?>\r<?mso-application progid="Excel.Sheet"?>\r<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"\r xmlns:o="urn:schemas-microsoft-com:office:office"\r xmlns:x="urn:schemas-microsoft-com:office:excel"\r xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"\r xmlns:html="http://www.w3.org/TR/REC-html40">\r<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">\r <Created>' + ( new Date ) . toISOString ( ) + '</Created>\r</DocumentProperties>\r<OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">\r <AllowPNG/>\r</OfficeDocumentSettings>\r<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">\r <WindowHeight>9000</WindowHeight>\r <WindowWidth>13860</WindowWidth>\r <WindowTopX>0</WindowTopX>\r <WindowTopY>0</WindowTopY>\r <ProtectStructure>False</ProtectStructure>\r <ProtectWindows>False</ProtectWindows>\r</ExcelWorkbook>\r<Styles>\r <Style ss:ID="Default" ss:Name="Normal">\r <Alignment ss:Vertical="Bottom"/>\r <Borders/>\r <Font/>\r <Interior/>\r <NumberFormat/>\r <Protection/>\r </Style>\r <Style ss:ID="rsp1">\r <Alignment ss:Vertical="Center"/>\r </Style>\r <Style ss:ID="pct1">\r <NumberFormat ss:Format="Percent"/>\r </Style>\r</Styles>\r' ;
for ( y = 0 ; y < la . length ; y ++ ) g += '<Worksheet ss:Name="' + E [ y ] + '" ss:RightToLeft="' + ( a . mso . rtl ? "1" : "0" ) + '">\r' + la [ y ] , g = a . mso . rtl ? g + '<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">\r<DisplayRightToLeft/>\r</WorksheetOptions>\r' : g + '<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel"/>\r' , g += "</Worksheet>\r" ; g += "</Workbook>\r" ; if ( "string" === a . outputMode ) return g ; if ( "base64" === a . outputMode ) return J ( g ) ; try { A = new Blob ( [ g ] , { type : "application/xml;charset=utf-8" } ) , saveAs ( A , a . fileName +
".xml" ) } catch ( b ) { G ( a . fileName + ".xml" , "data:application/xml;charset=utf-8;base64," , g ) } } else if ( "excel" === a . type && "xlsx" === a . mso . fileFormat ) { var wa = [ ] , ma = [ ] ; m = 0 ; r = c ( v ) . find ( "thead" ) . first ( ) . find ( a . theadSelector ) . toArray ( ) ; r . push . apply ( r , u ( c ( v ) ) ) ; c ( r ) . each ( function ( ) { var b = [ ] ; B ( this , "th,td" , m , r . length , function ( d , e , f ) { if ( "undefined" !== typeof d && null !== d ) { f = z ( d , e , f ) ; e = S ( d ) ; d = T ( d ) ; c . each ( ma , function ( ) { if ( m >= this . s . r && m <= this . e . r && b . length >= this . s . c && b . length <= this . e . c ) for ( var a = 0 ; a <= this . e . c - this . s . c ; ++ a ) b . push ( null ) } ) ;
if ( d || e ) e = e || 1 , ma . push ( { s : { r : m , c : b . length } , e : { r : m + ( d || 1 ) - 1 , c : b . length + e - 1 } } ) ; "function" !== typeof a . onCellData && "" !== f && f === + f && ( f = + f ) ; b . push ( "" !== f ? f : null ) ; if ( e ) for ( d = 0 ; d < e - 1 ; ++ d ) b . push ( null ) } } ) ; wa . push ( b ) ; m ++ } ) ; g = new ia ; y = Fa ( wa ) ; y [ "!merges" ] = ma ; XLSX . utils . book _append _sheet ( g , y , a . mso . worksheetName ) ; g = XLSX . write ( g , { type : "binary" , bookType : a . mso . fileFormat , bookSST : ! 1 } ) ; try { A = new Blob ( [ ua ( g ) ] , { type : "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8" } ) , saveAs ( A , a . fileName +
"." + a . mso . fileFormat ) } catch ( b ) { G ( a . fileName + "." + a . mso . fileFormat , "data:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8," , ua ( g ) ) } } else if ( "excel" === a . type || "xls" === a . type || "word" === a . type || "doc" === a . type ) { g = "excel" === a . type || "xls" === a . type ? "excel" : "word" ; y = "excel" === g ? "xls" : "doc" ; k = 'xmlns:x="urn:schemas-microsoft-com:office:' + g + '"' ; var H = "" , Y = "" ; c ( v ) . filter ( function ( ) { return Q ( c ( this ) ) } ) . each ( function ( ) { var b = c ( this ) ; "" === Y && ( Y = a . mso . worksheetName || b . find ( "caption" ) . text ( ) ||
"Table" , Y = c . trim ( Y . replace ( /[\\\/[\]*:?'"]/g , "" ) . substring ( 0 , 31 ) ) ) ; ! 1 === a . exportHiddenCells && ( I = b . find ( "tr, th, td" ) . filter ( ":hidden" ) , U = 0 < I . length ) ; m = 0 ; F = [ ] ; R = P ( this ) ; H += "<table><thead>" ; q = b . find ( "thead" ) . first ( ) . find ( a . theadSelector ) ; q . each ( function ( ) { n = "" ; B ( this , "th,td" , m , q . length , function ( b , e , f ) { if ( null !== b ) { var d = "" ; n += "<th" ; for ( var l in a . mso . styles ) if ( a . mso . styles . hasOwnProperty ( l ) ) { var g = c ( b ) . css ( a . mso . styles [ l ] ) ; "" !== g && "0px none rgb(0, 0, 0)" !== g && "rgba(0, 0, 0, 0)" !== g && ( d += "" === d ? 'style="' :
";" , d += a . mso . styles [ l ] + ":" + g ) } "" !== d && ( n += " " + d + '"' ) ; d = S ( b ) ; 0 < d && ( n += ' colspan="' + d + '"' ) ; d = T ( b ) ; 0 < d && ( n += ' rowspan="' + d + '"' ) ; n += ">" + z ( b , e , f ) + "</th>" } } ) ; 0 < n . length && ( H += "<tr>" + n + "</tr>" ) ; m ++ } ) ; H += "</thead><tbody>" ; r = u ( b ) ; c ( r ) . each ( function ( ) { var b = c ( this ) ; n = "" ; B ( this , "td,th" , m , q . length + r . length , function ( d , f , h ) { if ( null !== d ) { var e = z ( d , f , h ) , g = "" , k = c ( d ) . data ( "tableexport-msonumberformat" ) ; "undefined" === typeof k && "function" === typeof a . mso . onMsoNumberFormat && ( k = a . mso . onMsoNumberFormat ( d , f , h ) ) ; "undefined" !==
typeof k && "" !== k && ( g = "style=\"mso-number-format:'" + k + "'" ) ; for ( var m in a . mso . styles ) a . mso . styles . hasOwnProperty ( m ) && ( k = c ( d ) . css ( a . mso . styles [ m ] ) , "" === k && ( k = b . css ( a . mso . styles [ m ] ) ) , "" !== k && "0px none rgb(0, 0, 0)" !== k && "rgba(0, 0, 0, 0)" !== k && ( g += "" === g ? 'style="' : ";" , g += a . mso . styles [ m ] + ":" + k ) ) ; n += "<td" ; "" !== g && ( n += " " + g + '"' ) ; f = S ( d ) ; 0 < f && ( n += ' colspan="' + f + '"' ) ; d = T ( d ) ; 0 < d && ( n += ' rowspan="' + d + '"' ) ; "string" === typeof e && "" !== e && ( e = e . replace ( /\n/g , "<br>" ) ) ; n += ">" + e + "</td>" } } ) ; 0 < n . length && ( H += "<tr>" + n + "</tr>" ) ;
m ++ } ) ; a . displayTableName && ( H += "<tr><td></td></tr><tr><td></td></tr><tr><td>" + z ( c ( "<p>" + a . tableName + "</p>" ) ) + "</td></tr>" ) ; H += "</tbody></table>" } ) ; k = '<html xmlns:o="urn:schemas-microsoft-com:office:office" ' + k + ' xmlns="http://www.w3.org/TR/REC-html40">' + ( '<meta http-equiv="content-type" content="application/vnd.ms-' + g + '; charset=UTF-8">' ) + "<head>" ; "excel" === g && ( k += "\x3c!--[if gte mso 9]>" , k += "<xml>" , k += "<x:ExcelWorkbook>" , k += "<x:ExcelWorksheets>" , k += "<x:ExcelWorksheet>" , k += "<x:Name>" , k += Y , k += "</x:Name>" ,
k += "<x:WorksheetOptions>" , k += "<x:DisplayGridlines/>" , a . mso . rtl && ( k += "<x:DisplayRightToLeft/>" ) , k += "</x:WorksheetOptions>" , k += "</x:ExcelWorksheet>" , k += "</x:ExcelWorksheets>" , k += "</x:ExcelWorkbook>" , k += "</xml>" , k += "<![endif]--\x3e" ) ; k += "<style>" ; k += "@page { size:" + a . mso . pageOrientation + "; mso-page-orientation:" + a . mso . pageOrientation + "; }" ; k += "@page Section1 {size:" + L [ a . mso . pageFormat ] [ 0 ] + "pt " + L [ a . mso . pageFormat ] [ 1 ] + "pt" ; k += "; margin:1.0in 1.25in 1.0in 1.25in;mso-header-margin:.5in;mso-footer-margin:.5in;mso-paper-source:0;}" ;
k += "div.Section1 {page:Section1;}" ; k += "@page Section2 {size:" + L [ a . mso . pageFormat ] [ 1 ] + "pt " + L [ a . mso . pageFormat ] [ 0 ] + "pt" ; k += ";mso-page-orientation:" + a . mso . pageOrientation + ";margin:1.25in 1.0in 1.25in 1.0in;mso-header-margin:.5in;mso-footer-margin:.5in;mso-paper-source:0;}" ; k += "div.Section2 {page:Section2;}" ; k += "br {mso-data-placement:same-cell;}" ; k += "</style>" ; k += "</head>" ; k += "<body>" ; k += '<div class="Section' + ( "landscape" === a . mso . pageOrientation ? "2" : "1" ) + '">' ; k += H ; k += "</div>" ; k += "</body>" ; k += "</html>" ;
if ( "string" === a . outputMode ) return k ; if ( "base64" === a . outputMode ) return J ( k ) ; try { A = new Blob ( [ k ] , { type : "application/vnd.ms-" + a . type } ) , saveAs ( A , a . fileName + "." + y ) } catch ( b ) { G ( a . fileName + "." + y , "data:application/vnd.ms-" + g + ";base64," , k ) } } else if ( "png" === a . type ) html2canvas ( c ( v ) [ 0 ] ) . then ( function ( b ) { b = b . toDataURL ( ) ; for ( var c = atob ( b . substring ( 22 ) ) , e = new ArrayBuffer ( c . length ) , f = new Uint8Array ( e ) , h = 0 ; h < c . length ; h ++ ) f [ h ] = c . charCodeAt ( h ) ; if ( "string" === a . outputMode ) return c ; if ( "base64" === a . outputMode ) return J ( b ) ;
if ( "window" === a . outputMode ) window . open ( b ) ; else try { A = new Blob ( [ e ] , { type : "image/png" } ) , saveAs ( A , a . fileName + ".png" ) } catch ( l ) { G ( a . fileName + ".png" , "data:image/png," , A ) } } ) ; else if ( "pdf" === a . type ) if ( ! 0 === a . pdfmake . enabled ) { g = [ ] ; var xa = [ ] ; m = 0 ; F = [ ] ; y = function ( a , d , e ) { var b = 0 ; c ( a ) . each ( function ( ) { var a = [ ] ; B ( this , d , m , e , function ( b , c , d ) { if ( "undefined" !== typeof b && null !== b ) { var e = S ( b ) , h = T ( b ) ; b = z ( b , c , d ) || " " ; 1 < e || 1 < h ? a . push ( { colSpan : e || 1 , rowSpan : h || 1 , text : b } ) : a . push ( b ) } else a . push ( " " ) } ) ; a . length && xa . push ( a ) ; b <
a . length && ( b = a . length ) ; m ++ } ) ; return b } ; q = c ( this ) . find ( "thead" ) . first ( ) . find ( a . theadSelector ) ; k = y ( q , "th,td" , q . length ) ; for ( O = g . length ; O < k ; O ++ ) g . push ( "*" ) ; r = u ( c ( this ) ) ; y ( r , "th,td" , q . length + r . length ) ; g = { content : [ { table : { headerRows : q . length , widths : g , body : xa } } ] } ; c . extend ( ! 0 , g , a . pdfmake . docDefinition ) ; pdfMake . fonts = { Roboto : { normal : "Roboto-Regular.ttf" , bold : "Roboto-Medium.ttf" , italics : "Roboto-Italic.ttf" , bolditalics : "Roboto-MediumItalic.ttf" } } ; c . extend ( ! 0 , pdfMake . fonts , a . pdfmake . fonts ) ; pdfMake . createPdf ( g ) . getBuffer ( function ( b ) { try { var c =
new Blob ( [ b ] , { type : "application/pdf" } ) ; saveAs ( c , a . fileName + ".pdf" ) } catch ( e ) { G ( a . fileName + ".pdf" , "data:application/pdf;base64," , b ) } } ) } else if ( ! 1 === a . jspdf . autotable ) { g = { dim : { w : ca ( c ( v ) . first ( ) . get ( 0 ) , "width" , "mm" ) , h : ca ( c ( v ) . first ( ) . get ( 0 ) , "height" , "mm" ) } , pagesplit : ! 1 } ; var ya = new jsPDF ( a . jspdf . orientation , a . jspdf . unit , a . jspdf . format ) ; ya . addHTML ( c ( v ) . first ( ) , a . jspdf . margins . left , a . jspdf . margins . top , g , function ( ) { na ( ya , ! 1 ) } ) } else { var f = a . jspdf . autotable . tableExport ; if ( "string" === typeof a . jspdf . format &&
"bestfit" === a . jspdf . format . toLowerCase ( ) ) { var fa = "" , Z = "" , za = 0 ; c ( v ) . each ( function ( ) { if ( Q ( c ( this ) ) ) { var a = ca ( c ( this ) . get ( 0 ) , "width" , "pt" ) ; if ( a > za ) { a > L . a0 [ 0 ] && ( fa = "a0" , Z = "l" ) ; for ( var d in L ) L . hasOwnProperty ( d ) && L [ d ] [ 1 ] > a && ( fa = d , Z = "l" , L [ d ] [ 0 ] > a && ( Z = "p" ) ) ; za = a } } } ) ; a . jspdf . format = "" === fa ? "a4" : fa ; a . jspdf . orientation = "" === Z ? "w" : Z } if ( null == f . doc && ( f . doc = new jsPDF ( a . jspdf . orientation , a . jspdf . unit , a . jspdf . format ) , "function" === typeof a . jspdf . onDocCreated ) ) a . jspdf . onDocCreated ( f . doc ) ; ! 0 === f . outputImages && ( f . images =
{ } ) ; "undefined" !== typeof f . images && ( c ( v ) . filter ( function ( ) { return Q ( c ( this ) ) } ) . each ( function ( ) { var b = 0 ; F = [ ] ; ! 1 === a . exportHiddenCells && ( I = c ( this ) . find ( "tr, th, td" ) . filter ( ":hidden" ) , U = 0 < I . length ) ; q = c ( this ) . find ( "thead" ) . find ( a . theadSelector ) ; r = u ( c ( this ) ) ; c ( r ) . each ( function ( ) { B ( this , "td,th" , q . length + b , q . length + r . length , function ( a ) { if ( "undefined" !== typeof a && null !== a ) { var b = c ( a ) . children ( ) ; "undefined" !== typeof b && 0 < b . length && pa ( a , b , f ) } } ) ; b ++ } ) } ) , q = [ ] , r = [ ] ) ; Ca ( f , function ( ) { c ( v ) . filter ( function ( ) { return Q ( c ( this ) ) } ) . each ( function ( ) { var b ;
m = 0 ; F = [ ] ; ! 1 === a . exportHiddenCells && ( I = c ( this ) . find ( "tr, th, td" ) . filter ( ":hidden" ) , U = 0 < I . length ) ; R = P ( this ) ; f . columns = [ ] ; f . rows = [ ] ; f . rowoptions = { } ; if ( "function" === typeof f . onTable && ! 1 === f . onTable ( c ( this ) , a ) ) return ! 0 ; a . jspdf . autotable . tableExport = null ; var d = c . extend ( ! 0 , { } , a . jspdf . autotable ) ; a . jspdf . autotable . tableExport = f ; d . margin = { } ; c . extend ( ! 0 , d . margin , a . jspdf . margins ) ; d . tableExport = f ; "function" !== typeof d . beforePageContent && ( d . beforePageContent = function ( a ) { if ( 1 === a . pageCount ) { var b = a . table . rows . concat ( a . table . headerRow ) ;
c . each ( b , function ( ) { 0 < this . height && ( this . height += ( 2 - 1.15 ) / 2 * this . styles . fontSize , a . table . height += ( 2 - 1.15 ) / 2 * this . styles . fontSize ) } ) } } ) ; "function" !== typeof d . createdHeaderCell && ( d . createdHeaderCell = function ( a , b ) { a . styles = c . extend ( { } , b . row . styles ) ; if ( "undefined" !== typeof f . columns [ b . column . dataKey ] ) { var e = f . columns [ b . column . dataKey ] ; if ( "undefined" !== typeof e . rect ) { a . contentWidth = e . rect . width ; if ( "undefined" === typeof f . heightRatio || 0 === f . heightRatio ) { var h = b . row . raw [ b . column . dataKey ] . rowspan ? b . row . raw [ b . column . dataKey ] . rect . height /
b . row . raw [ b . column . dataKey ] . rowspan : b . row . raw [ b . column . dataKey ] . rect . height ; f . heightRatio = a . styles . rowHeight / h } h = b . row . raw [ b . column . dataKey ] . rect . height * f . heightRatio ; h > a . styles . rowHeight && ( a . styles . rowHeight = h ) } "undefined" !== typeof e . style && ! 0 !== e . style . hidden && ( a . styles . halign = e . style . align , "inherit" === d . styles . fillColor && ( a . styles . fillColor = e . style . bcolor ) , "inherit" === d . styles . textColor && ( a . styles . textColor = e . style . color ) , "inherit" === d . styles . fontStyle && ( a . styles . fontStyle = e . style . fstyle ) ) } } ) ;
"function" !== typeof d . createdCell && ( d . createdCell = function ( a , b ) { b = f . rowoptions [ b . row . index + ":" + b . column . dataKey ] ; "undefined" !== typeof b && "undefined" !== typeof b . style && ! 0 !== b . style . hidden && ( a . styles . halign = b . style . align , "inherit" === d . styles . fillColor && ( a . styles . fillColor = b . style . bcolor ) , "inherit" === d . styles . textColor && ( a . styles . textColor = b . style . color ) , "inherit" === d . styles . fontStyle && ( a . styles . fontStyle = b . style . fstyle ) ) } ) ; "function" !== typeof d . drawHeaderCell && ( d . drawHeaderCell = function ( a , b ) { var c =
f . columns [ b . column . dataKey ] ; return ( ! 0 !== c . style . hasOwnProperty ( "hidden" ) || ! 0 !== c . style . hidden ) && 0 <= c . rowIndex ? oa ( a , b , c ) : ! 1 } ) ; "function" !== typeof d . drawCell && ( d . drawCell = function ( a , b ) { var c = f . rowoptions [ b . row . index + ":" + b . column . dataKey ] ; if ( oa ( a , b , c ) ) if ( f . doc . rect ( a . x , a . y , a . width , a . height , a . styles . fillStyle ) , "undefined" !== typeof c && "undefined" !== typeof c . kids && 0 < c . kids . length ) { b = a . height / c . rect . height ; if ( b > f . dh || "undefined" === typeof f . dh ) f . dh = b ; f . dw = a . width / c . rect . width ; b = a . textPos . y ; ra ( a , c . kids , f ) ;
a . textPos . y = b ; sa ( a , c . kids , f ) } else sa ( a , { } , f ) ; return ! 1 } ) ; f . headerrows = [ ] ; q = c ( this ) . find ( "thead" ) . find ( a . theadSelector ) ; q . each ( function ( ) { b = 0 ; f . headerrows [ m ] = [ ] ; B ( this , "th,td" , m , q . length , function ( a , c , d ) { var e = ta ( a ) ; e . title = z ( a , c , d ) ; e . key = b ++ ; e . rowIndex = m ; f . headerrows [ m ] . push ( e ) } ) ; m ++ } ) ; if ( 0 < m ) for ( var e = m - 1 ; 0 <= e ; ) c . each ( f . headerrows [ e ] , function ( ) { var a = this ; 0 < e && null === this . rect && ( a = f . headerrows [ e - 1 ] [ this . key ] ) ; null !== a && 0 <= a . rowIndex && ( ! 0 !== a . style . hasOwnProperty ( "hidden" ) || ! 0 !== a . style . hidden ) && f . columns . push ( a ) } ) ,
e = 0 < f . columns . length ? - 1 : e - 1 ; var g = 0 ; r = [ ] ; r = u ( c ( this ) ) ; c ( r ) . each ( function ( ) { var a = [ ] ; b = 0 ; B ( this , "td,th" , m , q . length + r . length , function ( d , e , h ) { if ( "undefined" === typeof f . columns [ b ] ) { var k = { title : "" , key : b , style : { hidden : ! 0 } } ; f . columns . push ( k ) } "undefined" !== typeof d && null !== d ? ( k = ta ( d ) , k . kids = c ( d ) . children ( ) ) : ( k = c . extend ( ! 0 , { } , f . rowoptions [ g + ":" + ( b - 1 ) ] ) , k . colspan = - 1 ) ; f . rowoptions [ g + ":" + b ++ ] = k ; a . push ( z ( d , e , h ) ) } ) ; a . length && ( f . rows . push ( a ) , g ++ ) ; m ++ } ) ; if ( "function" === typeof f . onBeforeAutotable ) f . onBeforeAutotable ( c ( this ) ,
f . columns , f . rows , d ) ; f . doc . autoTable ( f . columns , f . rows , d ) ; if ( "function" === typeof f . onAfterAutotable ) f . onAfterAutotable ( c ( this ) , d ) ; a . jspdf . autotable . startY = f . doc . autoTableEndPosY ( ) + d . margin . top } ) ; na ( f . doc , "undefined" !== typeof f . images && ! 1 === jQuery . isEmptyObject ( f . images ) ) ; "undefined" !== typeof f . headerrows && ( f . headerrows . length = 0 ) ; "undefined" !== typeof f . columns && ( f . columns . length = 0 ) ; "undefined" !== typeof f . rows && ( f . rows . length = 0 ) ; delete f . doc ; f . doc = null } ) } return this } } ) ( jQuery ) ;
define ( "tableexport" , [ "jquery" ] , ( function ( global ) {
return function ( ) {
@ -6118,16 +6122,16 @@ define('upload',['jquery', 'bootstrap', 'plupload', 'template'], function ($, un
return Upload ;
} ) ;
/ * ! n i c e - v a l i d a t o r 1 . 1 . 3
* ( c ) 2012 - 201 7 Jony Zhang < niceue @ live . com > , MIT Licensed
/ * ! n i c e - v a l i d a t o r 1 . 1 . 4
* ( c ) 2012 - 201 8 Jony Zhang < niceue @ live . com > , MIT Licensed
* https : //github.com/niceue/nice-validator
* /
; ( function ( factory ) {
typeof module === "object" && module . exports ? module . exports = factory ( require ( "jquery" ) ) :
typeof module === 'object' && module . exports ? module . exports = factory ( require ( 'jquery' ) ) :
typeof define === 'function' && define . amd ? define ( 'validator-core' , [ 'jquery' ] , factory ) :
factory ( jQuery ) ;
} ( function ( $ , undefined ) {
"use strict" ;
'use strict' ;
var NS = 'validator' ,
CLS _NS = '.' + NS ,
@ -6406,7 +6410,7 @@ define('upload',['jquery', 'bootstrap', 'plupload', 'template'], function ($, un
}
options = me . _opt = options || { } ;
dataOpt = attr ( element , 'data-' + NS + '-option' ) ;
dataOpt = me . _dataOpt = dataOpt && dataOpt . charAt ( 0 ) === '{' ? ( new Function ( "return " + dataOpt ) ) ( ) : { } ;
dataOpt = me . _dataOpt = dataOpt && dataOpt . charAt ( 0 ) === '{' ? ( new Function ( 'return ' + dataOpt ) ) ( ) : { } ;
themeOpt = me . _themeOpt = themes [ options . theme || dataOpt . theme || defaults . theme ] ;
opt = me . options = $ . extend ( { } , defaults , fieldDefaults , themeOpt , me . options , options , dataOpt ) ;
@ -6456,19 +6460,16 @@ define('upload',['jquery', 'bootstrap', 'plupload', 'template'], function ($, un
if ( ! ( me . isAjaxSubmit = ! ! me . options . valid ) ) {
// if there is a "valid.form" event
var events = ( $ . _data || $ . data ) ( form , "events" ) ;
var events = ( $ . _data || $ . data ) ( form , 'events' ) ;
me . isAjaxSubmit = issetEvent ( events , 'valid' , 'form' ) || issetEvent ( events , 'submit' , 'form-plugin' ) ;
}
function issetEvent ( events , name , namespace ) {
if ( events && events [ name ] &&
$ . map ( events [ name ] , function ( e ) {
return ! ! (
events && events [ name ]
&& $ . map ( events [ name ] , function ( e ) {
return ~ e . namespace . indexOf ( namespace ) ? 1 : null ;
} ) . length
) {
return true ;
}
return false ;
} ) . length )
}
} ,
@ -6584,9 +6585,9 @@ define('upload',['jquery', 'bootstrap', 'plupload', 'template'], function ($, un
var args = arguments ;
args [ 4 ] = args [ 4 ] || args [ 5 ] ;
field . _rules . push ( {
and : args [ 1 ] === "&" ,
not : args [ 2 ] === "!" ,
or : args [ 6 ] === "|" ,
and : args [ 1 ] === '&' ,
not : args [ 2 ] === '!' ,
or : args [ 6 ] === '|' ,
method : args [ 3 ] ,
params : args [ 4 ] ? $ . map ( args [ 4 ] . split ( ', ' ) , trim ) : undefined
} ) ;
@ -6901,7 +6902,7 @@ define('upload',['jquery', 'bootstrap', 'plupload', 'template'], function ($, un
me . showMsg ( type )
}
else if ( type === 'tip' ) {
me . $el . find ( INPUT _SELECTOR + "[" + DATA _TIP + "]" , el ) . each ( function ( ) {
me . $el . find ( INPUT _SELECTOR + '[' + DATA _TIP + ']' , el ) . each ( function ( ) {
me . showMsg ( this , { type : type , msg : msg } ) ;
} ) ;
}
@ -7017,7 +7018,7 @@ define('upload',['jquery', 'bootstrap', 'plupload', 'template'], function ($, un
rule = field . _rules [ field . _i ] ;
if ( rule . not ) {
msg = undefined ;
isValid = method === "required" || ! isValid ;
isValid = method === 'required' || ! isValid ;
}
if ( rule . or ) {
if ( isValid ) {
@ -7535,7 +7536,7 @@ define('upload',['jquery', 'bootstrap', 'plupload', 'template'], function ($, un
} ,
getValue : function ( ) {
var elem = this . element ;
if ( elem . type === "number" && elem . validity && elem . validity . badInput ) {
if ( elem . type === 'number' && elem . validity && elem . validity . badInput ) {
return 'NaN' ;
}
return $ ( elem ) [ this . _valHook ( ) ] ( ) ;
@ -7643,10 +7644,11 @@ define('upload',['jquery', 'bootstrap', 'plupload', 'template'], function ($, un
var k , that = context ? context === true ? this : context : Rules . prototype ;
for ( k in obj ) {
if ( _checkRuleName ( k ) )
if ( _checkRuleName ( k ) ) {
that [ k ] = _getRule ( obj [ k ] ) ;
}
}
}
/ * *
* Create Messages
@ -7718,7 +7720,7 @@ define('upload',['jquery', 'bootstrap', 'plupload', 'template'], function ($, un
function _getDataRule ( el , method ) {
var fn = trim ( attr ( el , DATA _RULE + '-' + method ) ) ;
if ( fn && ( fn = new Function ( "return " + fn ) ( ) ) ) {
if ( fn && ( fn = new Function ( 'return ' + fn ) ( ) ) ) {
return _getRule ( fn ) ;
}
}
@ -7761,8 +7763,8 @@ define('upload',['jquery', 'bootstrap', 'plupload', 'template'], function ($, un
// Translate field key to jQuery selector.
function _key2selector ( key ) {
var isID = key . charAt ( 0 ) === "#" ;
key = key . replace ( /([:.{(|)}/\[\]])/g , "\\$1" ) ;
var isID = key . charAt ( 0 ) === '#' ;
key = key . replace ( /([:.{(|)}/\[\]])/g , '\\$1' ) ;
return isID ? key : '[name="' + key + '"]:first' ;
}
@ -7803,7 +7805,7 @@ define('upload',['jquery', 'bootstrap', 'plupload', 'template'], function ($, un
} ) ;
new Messages ( {
fallback : "This field is not valid." ,
fallback : 'This field is not valid.' ,
loading : 'Validating...'
} ) ;
@ -7816,6 +7818,7 @@ define('upload',['jquery', 'bootstrap', 'plupload', 'template'], function ($, un
*
* @ example :
required
required ( jqSelector )
required ( anotherRule )
required ( not , - 1 )
required ( from , . contact )
@ -7956,7 +7959,7 @@ define('upload',['jquery', 'bootstrap', 'plupload', 'template'], function ($, un
}
// If both fields are blank
if ( ! me . required && a === "" && b === "" ) {
if ( ! me . required && a === '' && b === '' ) {
return null ;
}
@ -7972,7 +7975,7 @@ define('upload',['jquery', 'bootstrap', 'plupload', 'template'], function ($, un
}
// If the compared field is incorrect, we only ensure that this field is correct.
if ( type !== "eq" && ! isNaN ( + a ) && isNaN ( + b ) ) {
if ( type !== 'eq' && ! isNaN ( + a ) && isNaN ( + b ) ) {
return true ;
}
@ -7993,7 +7996,7 @@ define('upload',['jquery', 'bootstrap', 'plupload', 'template'], function ($, un
return isValid || (
isObject ( me . messages . match )
&& me . messages . match [ type ] . replace ( '{1}' , me . _getDisplay ( elem ent , field2 . display || key ) )
&& me . messages . match [ type ] . replace ( '{1}' , me . _getDisplay ( elem 2 , field2 . display || key ) )
) ;
} ,
@ -8077,6 +8080,8 @@ define('upload',['jquery', 'bootstrap', 'plupload', 'template'], function ($, un
By GET : remote ( get : path / to / server , name1 , name2 , ... ) ;
Name proxy : remote ( path / to / server , name1 , proxyname2 : name2 , proxyname3 : # id3 , ... )
Query String remote ( path / to / server , foo = 1 & bar = 2 , name1 , name2 , ... )
CORS remote ( cors : path / to / server )
JSONP remote ( jsonp : path / to / server )
* /
remote : function ( element , params ) {
if ( ! params ) return ;
@ -8137,7 +8142,7 @@ define('upload',['jquery', 'bootstrap', 'plupload', 'template'], function ($, un
* /
filter : function ( element , params ) {
var value = this . value ,
temp = value . replace ( params ? ( new RegExp ( "[" + params [ 0 ] + "]" , "gm" ) ) : rUnsafe , '' ) ;
temp = value . replace ( params ? ( new RegExp ( '[' + params [ 0 ] + ']' , 'gm' ) ) : rUnsafe , '' ) ;
if ( temp !== value ) this . setValue ( temp ) ;
}
} ) ;
@ -9052,7 +9057,7 @@ define('form',['jquery', 'bootstrap', 'upload', 'validator'], function ($, undef
}
} else {
value = $ ( "[name='" + name + "']:checked" , that . $commonsearch ) . val ( ) ;
value = ( vObjCol && typeof vObjCol . process === 'function' ) ? vObjCol . process ( obj. val ( ) ) : obj . val ( ) ;
value = ( vObjCol && typeof vObjCol . process === 'function' ) ? vObjCol . process ( value) : value ;
}
} else {
value = ( vObjCol && typeof vObjCol . process === 'function' ) ? vObjCol . process ( obj . val ( ) ) : obj . val ( ) ;
@ -9156,7 +9161,7 @@ define('form',['jquery', 'bootstrap', 'upload', 'validator'], function ($, undef
var that = this ,
html = [ ] ;
if ( that . options . showSearch ) {
if ( that . options . showSearch ) {
html . push ( sprintf ( '<div class="columns-%s pull-%s" style="margin-top:10px;margin-bottom:10px;">' , this . options . buttonsAlign , this . options . buttonsAlign ) ) ;
html . push ( sprintf ( '<button class="btn btn-default%s' + '" type="button" name="commonSearch" title="%s">' , that . options . iconSize === undefined ? '' : ' btn-' + that . options . iconSize , that . options . formatCommonSearch ( ) ) ) ;
html . push ( sprintf ( '<i class="%s %s"></i>' , that . options . iconsPrefix , that . options . icons . commonSearchIcon ) )
@ -9179,7 +9184,16 @@ define('form',['jquery', 'bootstrap', 'upload', 'validator'], function ($, undef
that . $container . on ( "click" , "." + that . options . searchClass , function ( ) {
var obj = $ ( "form [name='" + $ ( this ) . data ( "field" ) + "']" , that . $commonsearch ) ;
if ( obj . size ( ) > 0 ) {
obj . val ( $ ( this ) . data ( "value" ) ) ;
var value = $ ( this ) . data ( "value" ) ;
if ( obj . is ( "select" ) ) {
console . log ( $ ( "option[value='" + value + "']" , obj ) ) ;
$ ( "option[value='" + value + "']" , obj ) . prop ( "selected" , true ) ;
} else if ( obj . size ( ) > 1 ) {
$ ( "form [name='" + $ ( this ) . data ( "field" ) + "'][value='" + value + "']" , that . $commonsearch ) . prop ( "checked" , true ) ;
} else {
obj . val ( value ) ;
}
obj . trigger ( "change" ) ;
$ ( "form" , that . $commonsearch ) . trigger ( "submit" ) ;
}
} ) ;
@ -9698,7 +9712,7 @@ define('table',['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstr
image : function ( value , row , index ) {
value = value ? value : '/assets/img/blank.gif' ;
var classname = typeof this . classname !== 'undefined' ? this . classname : 'img-sm img-center' ;
return '< img class="' + classname + '" src="' + Fast . api . cdnurl ( value ) + '" / >';
return '< a href="' + Fast . api . cdnurl ( value ) + '" target="_blank">< img class="' + classname + '" src="' + Fast . api . cdnurl ( value ) + '" / ></a >';
} ,
images : function ( value , row , index ) {
value = value === null ? '' : value . toString ( ) ;
@ -9707,7 +9721,7 @@ define('table',['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstr
var html = [ ] ;
$ . each ( arr , function ( i , value ) {
value = value ? value : '/assets/img/blank.gif' ;
html . push ( '< img class="' + classname + '" src="' + Fast . api . cdnurl ( value ) + '" / >') ;
html . push ( '< a href="' + Fast . api . cdnurl ( value ) + '" target="_blank">< img class="' + classname + '" src="' + Fast . api . cdnurl ( value ) + '" / ></a >') ;
} ) ;
return html . join ( ' ' ) ;
} ,
@ -9720,9 +9734,12 @@ define('table',['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstr
}
value = value === null ? '' : value . toString ( ) ;
var color = value && typeof colorArr [ value ] !== 'undefined' ? colorArr [ value ] : 'primary' ;
v alue = value . charAt ( 0 ) . toUpperCase ( ) + value . slice ( 1 ) ;
var newV alue = value . charAt ( 0 ) . toUpperCase ( ) + value . slice ( 1 ) ;
//渲染状态
var html = '<span class="text-' + color + '"><i class="fa fa-circle"></i> ' + _ _ ( value ) + '</span>' ;
var html = '<span class="text-' + color + '"><i class="fa fa-circle"></i> ' + _ _ ( newValue ) + '</span>' ;
if ( this . operate != false ) {
html = '<a href="javascript:;" class="searchit" data-toggle="tooltip" title="' + _ _ ( 'Click to search %s' , _ _ ( newValue ) ) + '" data-field="' + this . field + '" data-value="' + value + '">' + html + '</a>' ;
}
return html ;
} ,
url : function ( value , row , index ) {
@ -9768,7 +9785,12 @@ define('table',['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstr
return Table . api . formatter . flag . call ( this , value , row , index ) ;
} ,
datetime : function ( value , row , index ) {
return value ? Moment ( parseInt ( value ) * 1000 ) . format ( "YYYY-MM-DD HH:mm:ss" ) : _ _ ( 'None' ) ;
var datetimeFormat = typeof this . datetimeFormat === 'undefined' ? 'YYYY-MM-DD HH:mm:ss' : this . datetimeFormat ;
if ( isNaN ( value ) ) {
return value ? Moment ( value ) . format ( datetimeFormat ) : _ _ ( 'None' ) ;
} else {
return value ? Moment ( parseInt ( value ) * 1000 ) . format ( datetimeFormat ) : _ _ ( 'None' ) ;
}
} ,
operate : function ( value , row , index ) {
var table = this . table ;
@ -10320,8 +10342,12 @@ define("drop", function(){});
/ * *
* http : //git.oschina.net/hbbcs/bootStrap-addTabs
* Created by joe on 2015 - 12 - 19.
* Modified by Karson
* /
$ . fn . addtabs = function ( options ) {
( function ( $ ) {
$ . fn . addtabs = function ( options ) {
var obj = $ ( this ) ;
options = $ . extend ( {
content : '' , //直接指定所有页面TABS内容
@ -10366,7 +10392,7 @@ $.fn.addtabs = function (options) {
var pushurl = url . indexOf ( "ref=addtabs" ) == - 1 ? ( url + ( url . indexOf ( "?" ) > - 1 ? "&" : "?" ) + "ref=addtabs" ) : url ;
try {
window . history . pushState ( state , title , pushurl ) ;
} catch ( e ) {
} catch ( e ) {
}
}
@ -10394,11 +10420,19 @@ $.fn.addtabs = function (options) {
} ) ;
$ ( window ) . resize ( function ( ) {
if ( typeof options . nav == 'object' ) {
var siblingsWidth = 0 ;
navobj . siblings ( ) . each ( function ( ) {
siblingsWidth += $ ( this ) . outerWidth ( ) ;
} ) ;
navobj . width ( navobj . parent ( ) . width ( ) - siblingsWidth ) ;
} else {
$ ( "#nav" ) . width ( $ ( "#header > .navbar" ) . width ( ) - $ ( ".sidebar-toggle" ) . outerWidth ( ) - $ ( ".navbar-custom-menu" ) . outerWidth ( ) - 20 ) ;
}
_drop ( ) ;
} ) ;
_add = function ( opts ) {
var _add = function ( opts ) {
var id , tabid , conid , url ;
id = opts . id ;
tabid = 'tab_' + opts . id ;
@ -10450,7 +10484,7 @@ $.fn.addtabs = function (options) {
_drop ( ) ;
} ;
_close = function ( id ) {
var _close = function ( id ) {
var tabid = 'tab_' + id ;
var conid = 'con_' + id ;
//如果关闭的是当前激活的TAB, 激活他的前一个TAB
@ -10470,40 +10504,44 @@ $.fn.addtabs = function (options) {
options . callback ( ) ;
} ;
_drop = function ( ) {
//创建下拉标签
var _drop = function ( ) {
navobj . refreshAddtabs ( ) ;
} ;
} ;
//刷新Addtabs
$ . fn . refreshAddtabs = function ( ) {
var navobj = $ ( this ) ;
var dropdown = $ ( ".tabdrop" , navobj ) ;
if ( dropdown . size ( ) == 0 ) {
var dropdown = $ ( '<li class="dropdown pull-right hide tabdrop"><a class="dropdown-toggle" data-toggle="dropdown" href="javascript:;">' +
'<i class="glyphicon glyphicon-align-justify"></i>' +
' <b class="caret"></b></a><ul class="dropdown-menu"></ul></li>' ) ;
//检测是否已增加
if ( ! $ ( '.tabdrop' ) . html ( ) ) {
dropdown . prependTo ( navobj ) ;
} else {
dropdown = navobj . find ( '.tabdrop' ) ;
dropdown . appendTo ( navobj ) ;
}
//检测是否有下拉样式
if ( navobj . parent ( ) . is ( '.tabs-below' ) ) {
dropdown . addClass ( 'dropup' ) ;
}
var collection = 0 ;
var maxwidth = navobj . width ( ) - 60 ;
var collection = 0 ;
var maxwidth = navobj . width ( ) - 65 ;
var liwidth = 0 ;
//检查超过一行的标签页
var litabs = navobj . append ( dropdown . find ( 'li' ) ) . find ( '>li' ) . not ( '.tabdrop' ) ;
var lisize = litabs . size ( ) ;
var totalwidth = 0 ;
litabs . each ( function ( i , j ) {
liwidth += $ ( this ) . width ( ) ;
if ( collection == 0 && i == lisize - 1 && liwidth <= navobj . width ( ) ) {
return true ;
}
totalwidth += $ ( this ) . outerWidth ( true ) ;
} ) ;
if ( navobj . width ( ) < totalwidth ) {
litabs . each ( function ( i , j ) {
liwidth += $ ( this ) . outerWidth ( true ) ;
if ( liwidth > maxwidth ) {
dropdown . find ( 'ul' ) . append ( $ ( this ) ) ;
collection ++ ;
}
} ) ;
//如果有超出的,显示下拉标签
if ( collection > 0 ) {
dropdown . removeClass ( 'hide' ) ;
if ( dropdown . find ( '.active' ) . length == 1 ) {
@ -10511,11 +10549,14 @@ $.fn.addtabs = function (options) {
} else {
dropdown . removeClass ( 'active' ) ;
}
}
} else {
dropdown . addClass ( 'hide' ) ;
}
} ;
} ;
} ) ( jQuery ) ;
define ( "addtabs" , function ( ) { } ) ;