/*!
 * 
 *             jsPDF AutoTable plugin v3.5.14
 *             
 *             Copyright (c) 2021 Simon Bengtsson, https://github.com/simonbengtsson/jsPDF-AutoTable
 *             Licensed under the MIT License.
 *             http://opensource.org/licenses/mit-license
 *         
 */
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(function(){try{return require("jspdf")}catch(t){}}());else if("function"==typeof define&&define.amd)define(["jspdf"],e);else{var n="object"==typeof exports?e(function(){try{return require("jspdf")}catch(t){}}()):e(t.jspdf);for(var o in n)("object"==typeof exports?exports:t)[o]=n[o]}}(void 0!==this?this:window,(function(t){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=11)}([function(t,e,n){"use strict";function o(t,e){var n=t>0,o=e||0===e;return n&&o?"DF":n?"S":o?"F":null}Object.defineProperty(e,"__esModule",{value:!0}),e.parseSpacing=e.getFillStyle=e.addTableBorder=e.getStringWidth=void 0,e.getStringWidth=function(t,e,n){return n.applyStyles(e,!0),(Array.isArray(t)?t:[t]).map((function(t){return n.getTextWidth(t)})).reduce((function(t,e){return Math.max(t,e)}),0)},e.addTableBorder=function(t,e,n,i){var r=e.settings.tableLineWidth,l=e.settings.tableLineColor;t.applyStyles({lineWidth:r,lineColor:l});var a=o(r,!1);a&&t.rect(n.x,n.y,e.getWidth(t.pageSize().width),i.y-n.y,a)},e.getFillStyle=o,e.parseSpacing=function(t,e){var n,o,i,r;if(t=t||e,Array.isArray(t)){if(t.length>=4)return{top:t[0],right:t[1],bottom:t[2],left:t[3]};if(3===t.length)return{top:t[0],right:t[1],bottom:t[2],left:t[1]};if(2===t.length)return{top:t[0],right:t[1],bottom:t[0],left:t[1]};t=1===t.length?t[0]:e}return"object"==typeof t?("number"==typeof t.vertical&&(t.top=t.vertical,t.bottom=t.vertical),"number"==typeof t.horizontal&&(t.right=t.horizontal,t.left=t.horizontal),{left:null!==(n=t.left)&&void 0!==n?n:e,top:null!==(o=t.top)&&void 0!==o?o:e,right:null!==(i=t.right)&&void 0!==i?i:e,bottom:null!==(r=t.bottom)&&void 0!==r?r:e}):("number"!=typeof t&&(t=e),{top:t,right:t,bottom:t,left:t})}},function(t,e,n){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.getTheme=e.defaultStyles=e.HtmlRowInput=e.FONT_ROW_RATIO=void 0,e.FONT_ROW_RATIO=1.15;var r=function(t){function e(e){var n=t.call(this)||this;return n._element=e,n}return i(e,t),e}(Array);e.HtmlRowInput=r,e.defaultStyles=function(t){return{font:"helvetica",fontStyle:"normal",overflow:"linebreak",fillColor:!1,textColor:20,halign:"left",valign:"top",fontSize:10,cellPadding:5/t,lineColor:200,lineWidth:0,cellWidth:"auto",minCellHeight:0,minCellWidth:0}},e.getTheme=function(t){return{striped:{table:{fillColor:255,textColor:80,fontStyle:"normal"},head:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},body:{},foot:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},alternateRow:{fillColor:245}},grid:{table:{fillColor:255,textColor:80,fontStyle:"normal",lineWidth:.1},head:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},body:{},foot:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},alternateRow:{}},plain:{head:{fontStyle:"bold"},foot:{fontStyle:"bold"}}}[t]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DocHandler=void 0;var o={},i=function(){function t(t){this.jsPDFDocument=t,this.userStyles={textColor:t.getTextColor?this.jsPDFDocument.getTextColor():0,fontSize:t.internal.getFontSize(),fontStyle:t.internal.getFont().fontStyle,font:t.internal.getFont().fontName}}return t.setDefaults=function(t,e){void 0===e&&(e=null),e?e.__autoTableDocumentDefaults=t:o=t},t.unifyColor=function(t){return Array.isArray(t)?t:"number"==typeof t?[t,t,t]:"string"==typeof t?[t]:null},t.prototype.applyStyles=function(e,n){var o,i,r;void 0===n&&(n=!1),e.fontStyle&&this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(e.fontStyle);var l=this.jsPDFDocument.internal.getFont(),a=l.fontStyle,s=l.fontName;if(e.font&&(s=e.font),e.fontStyle){a=e.fontStyle;var u=this.getFontList()[s];u&&-1===u.indexOf(a)&&(this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(u[0]),a=u[0])}if(this.jsPDFDocument.setFont(s,a),e.fontSize&&this.jsPDFDocument.setFontSize(e.fontSize),!n){var d=t.unifyColor(e.fillColor);d&&(o=this.jsPDFDocument).setFillColor.apply(o,d),(d=t.unifyColor(e.textColor))&&(i=this.jsPDFDocument).setTextColor.apply(i,d),(d=t.unifyColor(e.lineColor))&&(r=this.jsPDFDocument).setDrawColor.apply(r,d),"number"==typeof e.lineWidth&&this.jsPDFDocument.setLineWidth(e.lineWidth)}},t.prototype.splitTextToSize=function(t,e,n){return this.jsPDFDocument.splitTextToSize(t,e,n)},t.prototype.rect=function(t,e,n,o,i){return this.jsPDFDocument.rect(t,e,n,o,i)},t.prototype.getLastAutoTable=function(){return this.jsPDFDocument.lastAutoTable||null},t.prototype.getTextWidth=function(t){return this.jsPDFDocument.getTextWidth(t)},t.prototype.getDocument=function(){return this.jsPDFDocument},t.prototype.setPage=function(t){this.jsPDFDocument.setPage(t)},t.prototype.addPage=function(){return this.jsPDFDocument.addPage()},t.prototype.getFontList=function(){return this.jsPDFDocument.getFontList()},t.prototype.getGlobalOptions=function(){return o||{}},t.prototype.getDocumentOptions=function(){return this.jsPDFDocument.__autoTableDocumentDefaults||{}},t.prototype.pageSize=function(){var t=this.jsPDFDocument.internal.pageSize;return null==t.width&&(t={width:t.getWidth(),height:t.getHeight()}),t},t.prototype.scaleFactor=function(){return this.jsPDFDocument.internal.scaleFactor},t.prototype.pageNumber=function(){var t=this.jsPDFDocument.internal.getCurrentPageInfo();return t?t.pageNumber:this.jsPDFDocument.internal.getNumberOfPages()},t}();e.DocHandler=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Column=e.Cell=e.Row=e.Table=void 0;var o=n(1),i=n(9),r=n(0),l=function(){function t(t,e){this.pageNumber=1,this.pageCount=1,this.id=t.id,this.settings=t.settings,this.styles=t.styles,this.hooks=t.hooks,this.columns=e.columns,this.head=e.head,this.body=e.body,this.foot=e.foot}return t.prototype.getHeadHeight=function(t){return this.head.reduce((function(e,n){return e+n.getMaxCellHeight(t)}),0)},t.prototype.getFootHeight=function(t){return this.foot.reduce((function(e,n){return e+n.getMaxCellHeight(t)}),0)},t.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},t.prototype.callCellHooks=function(t,e,n,o,r,l){for(var a=0,s=e;a<s.length;a++){var u=!1===(0,s[a])(new i.CellHookData(t,this,n,o,r,l));if(n.text=Array.isArray(n.text)?n.text:[n.text],u)return!1}return!0},t.prototype.callEndPageHooks=function(t,e){t.applyStyles(t.userStyles);for(var n=0,o=this.hooks.didDrawPage;n<o.length;n++)(0,o[n])(new i.HookData(t,this,e))},t.prototype.getWidth=function(t){if("number"==typeof this.settings.tableWidth)return this.settings.tableWidth;if("wrap"===this.settings.tableWidth)return this.columns.reduce((function(t,e){return t+e.wrappedWidth}),0);var e=this.settings.margin;return t-e.left-e.right},t}();e.Table=l;var a=function(){function t(t,e,n,i,r){void 0===r&&(r=!1),this.height=0,this.raw=t,t instanceof o.HtmlRowInput&&(this.raw=t._element,this.element=t._element),this.index=e,this.section=n,this.cells=i,this.spansMultiplePages=r}return t.prototype.getMaxCellHeight=function(t){var e=this;return t.reduce((function(t,n){var o;return Math.max(t,(null===(o=e.cells[n.index])||void 0===o?void 0:o.height)||0)}),0)},t.prototype.hasRowSpan=function(t){var e=this;return t.filter((function(t){var n=e.cells[t.index];return!!n&&n.rowSpan>1})).length>0},t.prototype.canEntireRowFit=function(t,e){return this.getMaxCellHeight(e)<=t},t.prototype.getMinimumRowHeight=function(t,e){var n=this;return t.reduce((function(t,i){var r=n.cells[i.index];if(!r)return 0;var l=r.styles.fontSize/e.scaleFactor()*o.FONT_ROW_RATIO,a=r.padding("vertical")+l;return a>t?a:t}),0)},t}();e.Row=a;var s=function(){function t(t,e,n){var o,i;this.contentHeight=0,this.contentWidth=0,this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.height=0,this.x=0,this.y=0,this.styles=e,this.section=n,this.raw=t;var r=t;null==t||"object"!=typeof t||Array.isArray(t)?(this.rowSpan=1,this.colSpan=1):(this.rowSpan=t.rowSpan||1,this.colSpan=t.colSpan||1,r=null!==(i=null!==(o=t.content)&&void 0!==o?o:t.title)&&void 0!==i?i:t,t._element&&(this.raw=t._element));var l=null!=r?""+r:"";this.text=l.split(/\r\n|\r|\n/g)}return t.prototype.getTextPos=function(){var t,e;if("top"===this.styles.valign)t=this.y+this.padding("top");else if("bottom"===this.styles.valign)t=this.y+this.height-this.padding("bottom");else{var n=this.height-this.padding("vertical");t=this.y+n/2+this.padding("top")}if("right"===this.styles.halign)e=this.x+this.width-this.padding("right");else if("center"===this.styles.halign){var o=this.width-this.padding("horizontal");e=this.x+o/2+this.padding("left")}else e=this.x+this.padding("left");return{x:e,y:t}},t.prototype.getContentHeight=function(t){var e=(Array.isArray(this.text)?this.text.length:1)*(this.styles.fontSize/t*o.FONT_ROW_RATIO)+this.padding("vertical");return Math.max(e,this.styles.minCellHeight)},t.prototype.padding=function(t){var e=r.parseSpacing(this.styles.cellPadding,0);return"vertical"===t?e.top+e.bottom:"horizontal"===t?e.left+e.right:e[t]},t}();e.Cell=s;var u=function(){function t(t,e,n){this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.dataKey=t,this.raw=e,this.index=n}return t.prototype.getMaxCustomCellWidth=function(t){for(var e=0,n=0,o=t.allRows();n<o.length;n++){var i=o[n].cells[this.index];i&&"number"==typeof i.styles.cellWidth&&(e=Math.max(e,i.styles.cellWidth))}return e},t}();e.Column=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assign=void 0,e.assign=function(t,e,n,o,i){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(t),l=1;l<arguments.length;l++){var a=arguments[l];if(null!=a)for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(r[s]=a[s])}return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseHtml=void 0;var o=n(13),i=n(1);function r(t,e,n,r,a,s){for(var u=new i.HtmlRowInput(r),d=0;d<r.cells.length;d++){var h=r.cells[d],c=n.getComputedStyle(h);if(a||"none"!==c.display){var f=void 0;s&&(f=o.parseCss(t,h,e,c,n)),u.push({rowSpan:h.rowSpan,colSpan:h.colSpan,styles:f,_element:h,content:l(h)})}}var p=n.getComputedStyle(r);if(u.length>0&&(a||"none"!==p.display))return u}function l(t){var e=t.cloneNode(!0);return e.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/ +/g," "),e.innerHTML=e.innerHTML.split(/\<br.*?\>/).map((function(t){return t.trim()})).join("\n"),e.innerText||e.textContent||""}e.parseHtml=function(t,e,n,o,i){var l,a,s;void 0===o&&(o=!1),void 0===i&&(i=!1),s="string"==typeof e?n.document.querySelector(e):e;var u=Object.keys(t.getFontList()),d=t.scaleFactor(),h=[],c=[],f=[];if(!s)return{head:h,body:c,foot:f};for(var p=0;p<s.rows.length;p++){var g=s.rows[p],y=null===(a=null===(l=null==g?void 0:g.parentElement)||void 0===l?void 0:l.tagName)||void 0===a?void 0:a.toLowerCase(),v=r(u,d,n,g,o,i);v&&("thead"===y?h.push(v):"tfoot"===y?f.push(v):c.push(v))}return{head:h,body:c,foot:f}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,o,i){o=o||{};var r=1.15,l=i.internal.scaleFactor,a=i.internal.getFontSize()/l,s="",u=1;if("middle"!==o.valign&&"bottom"!==o.valign&&"center"!==o.halign&&"right"!==o.halign||(u=(s="string"==typeof t?t.split(/\r\n|\r|\n/g):t).length||1),n+=a*(2-r),"middle"===o.valign?n-=u/2*a*r:"bottom"===o.valign&&(n-=u*a*r),"center"===o.halign||"right"===o.halign){var d=a;if("center"===o.halign&&(d*=.5),s&&u>=1){for(var h=0;h<s.length;h++)i.text(s[h],e-i.getStringUnitWidth(s[h])*d,n),n+=a*r;return i}e-=i.getStringUnitWidth(t)*d}return"justify"===o.halign?i.text(t,e,n,{maxWidth:o.maxWidth||100,align:"justify"}):i.text(t,e,n),i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseInput=void 0;var o=n(5),i=n(4),r=n(0),l=n(2),a=n(14);function s(t,e,n){var o=t[0]||e[0]||n[0]||[],i=[];return Object.keys(o).filter((function(t){return"_element"!==t})).forEach((function(t){var e,n=1;"object"!=typeof(e=Array.isArray(o)?o[parseInt(t)]:o[t])||Array.isArray(e)||(n=(null==e?void 0:e.colSpan)||1);for(var r=0;r<n;r++){var l={dataKey:Array.isArray(o)?i.length:t+(r>0?"_"+r:"")};i.push(l)}})),i}e.parseInput=function(t,e){var n=new l.DocHandler(t),u=n.getDocumentOptions(),d=n.getGlobalOptions();a.default(n,d,u,e);var h,c=i.assign({},d,u,e);"undefined"!=typeof window&&(h=window);var f=function(t,e,n){for(var o={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},r=function(r){if("columnStyles"===r){var l=t[r],a=e[r],s=n[r];o.columnStyles=i.assign({},l,a,s)}else{var u=[t,e,n].map((function(t){return t[r]||{}}));o[r]=i.assign({},u[0],u[1],u[2])}},l=0,a=Object.keys(o);l<a.length;l++)r(a[l]);return o}(d,u,e),p=function(t,e,n){for(var o={didParseCell:[],willDrawCell:[],didDrawCell:[],didDrawPage:[]},i=0,r=[t,e,n];i<r.length;i++){var l=r[i];l.didParseCell&&o.didParseCell.push(l.didParseCell),l.willDrawCell&&o.willDrawCell.push(l.willDrawCell),l.didDrawCell&&o.didDrawCell.push(l.didDrawCell),l.didDrawPage&&o.didDrawPage.push(l.didDrawPage)}return o}(d,u,e),g=function(t,e){var n,o,i,l,a,s,u,d,h,c,f,p,g=r.parseSpacing(e.margin,40/t.scaleFactor()),y=null!==(n=function(t,e){var n=t.getLastAutoTable(),o=t.scaleFactor(),i=t.pageNumber(),r=!1;return n&&n.startPageNumber&&(r=n.startPageNumber+n.pageNumber-1===i),"number"==typeof e?e:null!=e&&!1!==e||!r||null==(null==n?void 0:n.finalY)?null:n.finalY+20/o}(t,e.startY))&&void 0!==n?n:g.top;f=!0===e.showFoot?"everyPage":!1===e.showFoot?"never":null!==(o=e.showFoot)&&void 0!==o?o:"everyPage",p=!0===e.showHead?"everyPage":!1===e.showHead?"never":null!==(i=e.showHead)&&void 0!==i?i:"everyPage";var v=null!==(l=e.useCss)&&void 0!==l&&l,m=e.theme||(v?"plain":"striped"),b=!!e.horizontalPageBreak;return{includeHiddenHtml:null!==(a=e.includeHiddenHtml)&&void 0!==a&&a,useCss:v,theme:m,startY:y,margin:g,pageBreak:null!==(s=e.pageBreak)&&void 0!==s?s:"auto",rowPageBreak:null!==(u=e.rowPageBreak)&&void 0!==u?u:"auto",tableWidth:null!==(d=e.tableWidth)&&void 0!==d?d:"auto",showHead:p,showFoot:f,tableLineWidth:null!==(h=e.tableLineWidth)&&void 0!==h?h:0,tableLineColor:null!==(c=e.tableLineColor)&&void 0!==c?c:200,horizontalPageBreak:b}}(n,c),y=function(t,e,n){var i=e.head||[],r=e.body||[],l=e.foot||[];if(e.html){var a=e.includeHiddenHtml;if(n){var u=o.parseHtml(t,e.html,n,a,e.useCss)||{};i=u.head||i,r=u.body||i,l=u.foot||i}}return{columns:e.columns||s(i,r,l),head:i,body:r,foot:l}}(n,c,h);return{id:e.tableId,content:y,hooks:p,styles:f,settings:g}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addPage=e.drawTable=void 0;var o=n(1),i=n(0),r=n(3),l=n(2),a=n(4),s=n(6),u=n(15);function d(t,e,n){var i=t.styles.fontSize/n.scaleFactor()*o.FONT_ROW_RATIO,r=t.padding("vertical"),l=Math.floor((e-r)/i);return Math.max(0,l)}function h(t,e,n,o,i,l,s){var u=function(t,e,n,o){var i=e.settings.margin.bottom,r=e.settings.showFoot;return("everyPage"===r||"lastPage"===r&&n)&&(i+=e.getFootHeight(e.columns)),t.pageSize().height-o.y-i}(t,e,o,l);if(n.canEntireRowFit(u,s))c(t,e,n,l,s);else if(function(t,e,n,o){var i=t.pageSize().height,r=o.settings.margin,l=i-(r.top+r.bottom);"body"===e.section&&(l-=o.getHeadHeight(o.columns)+o.getFootHeight(o.columns));var a=e.getMinimumRowHeight(o.columns,t);if(a>l)return!0;if(!(a<n))return!1;var s=e.hasRowSpan(o.columns);return!!(e.getMaxCellHeight(o.columns)>l)||!s&&"avoid"!==o.settings.rowPageBreak}(t,n,u,e)){var f=function(t,e,n,o){var i={};t.spansMultiplePages=!0,t.height=0;for(var l=0,s=0,u=n.columns;s<u.length;s++){var h=u[s];if(m=t.cells[h.index]){Array.isArray(m.text)||(m.text=[m.text]);var c=new r.Cell(m.raw,m.styles,m.section);(c=a.assign(c,m)).text=[];var f=d(m,e,o);m.text.length>f&&(c.text=m.text.splice(f,m.text.length));var p=o.scaleFactor();m.contentHeight=m.getContentHeight(p),m.contentHeight>=e&&(m.contentHeight=e,c.styles.minCellHeight-=e),m.contentHeight>t.height&&(t.height=m.contentHeight),c.contentHeight=c.getContentHeight(p),c.contentHeight>l&&(l=c.contentHeight),i[h.index]=c}}var g=new r.Row(t.raw,-1,t.section,i,!0);g.height=l;for(var y=0,v=n.columns;y<v.length;y++){var m;h=v[y],(c=g.cells[h.index])&&(c.height=g.height),(m=t.cells[h.index])&&(m.height=t.height)}return g}(n,u,e,t);c(t,e,n,l,s),p(t,e,i,l,s),h(t,e,f,o,i,l,s)}else p(t,e,i,l,s),h(t,e,n,o,i,l,s)}function c(t,e,n,o,i){o.x=e.settings.margin.left;for(var r=0,l=i;r<l.length;r++){var a=l[r],u=n.cells[a.index];if(u)if(t.applyStyles(u.styles),u.x=o.x,u.y=o.y,!1!==e.callCellHooks(t,e.hooks.willDrawCell,u,n,a,o)){f(t,u,o);var d=u.getTextPos();s.default(u.text,d.x,d.y,{halign:u.styles.halign,valign:u.styles.valign,maxWidth:Math.ceil(u.width-u.padding("left")-u.padding("right"))},t.getDocument()),e.callCellHooks(t,e.hooks.didDrawCell,u,n,a,o),o.x+=a.width}else o.x+=a.width;else o.x+=a.width}o.y+=n.height}function f(t,e,n){var o=e.styles;if("number"==typeof o.lineWidth){var r=i.getFillStyle(o.lineWidth,o.fillColor);r&&t.rect(e.x,n.y,e.width,e.height,r)}else if("object"==typeof o.lineWidth){var l=Object.keys(o.lineWidth),a=o.lineWidth;l.map((function(r){var l=i.getFillStyle(a[r],o.fillColor);!function(t,e,n,o,i,r){var l,a,s,u;switch(o){case"top":l=n.x,a=n.y,s=n.x+e.width,u=n.y;break;case"left":l=n.x,a=n.y,s=n.x,u=n.y+e.height;break;case"right":l=n.x+e.width,a=n.y,s=n.x+e.width,u=n.y+e.height;break;default:l=n.x,a=n.y+e.height,s=n.x+e.width,u=n.y+e.height}t.getDocument().setLineWidth(r),t.getDocument().line(l,a,s,u,i)}(t,e,n,r,l||"S",a[r])}))}}function p(t,e,n,o,r){void 0===r&&(r=[]),t.applyStyles(t.userStyles),"everyPage"===e.settings.showFoot&&e.foot.forEach((function(n){return c(t,e,n,o,r)})),e.callEndPageHooks(t,o);var l=e.settings.margin;i.addTableBorder(t,e,n,o),g(t),e.pageNumber++,e.pageCount++,o.x=l.left,o.y=l.top,"everyPage"===e.settings.showHead&&e.head.forEach((function(n){return c(t,e,n,o,r)}))}function g(t){var e=t.pageNumber();t.setPage(e+1),t.pageNumber()===e&&t.addPage()}e.drawTable=function(t,e){var n=e.settings,o=n.startY,r=n.margin,s={x:r.left,y:o},d=e.getHeadHeight(e.columns)+e.getFootHeight(e.columns),f=o+r.bottom+d;"avoid"===n.pageBreak&&(f+=e.allRows().reduce((function(t,e){return t+e.height}),0));var y=new l.DocHandler(t);("always"===n.pageBreak||null!=n.startY&&f>y.pageSize().height)&&(g(y),s.y=r.top);var v=a.assign({},s);e.startPageNumber=y.pageNumber(),!0===n.horizontalPageBreak?function(t,e,n,o){u.default.calculateAllColumnsCanFitInPage(t,e).map((function(i,r){t.applyStyles(t.userStyles),r>0?p(t,e,n,o,i.columns):function(t,e,n,o){var i=e.settings;t.applyStyles(t.userStyles),("firstPage"===i.showHead||"everyPage"===i.showHead)&&e.head.forEach((function(i){return c(t,e,i,n,o)}))}(t,e,o,i.columns),function(t,e,n,o,i){t.applyStyles(t.userStyles),e.body.forEach((function(r,l){var a=l===e.body.length-1;h(t,e,r,a,n,o,i)}))}(t,e,n,o,i.columns),function(t,e,n,o){var i=e.settings;t.applyStyles(t.userStyles),("lastPage"===i.showFoot||"everyPage"===i.showFoot)&&e.foot.forEach((function(i){return c(t,e,i,n,o)}))}(t,e,o,i.columns)}))}(y,e,v,s):(y.applyStyles(y.userStyles),"firstPage"!==n.showHead&&"everyPage"!==n.showHead||e.head.forEach((function(t){return c(y,e,t,s,e.columns)})),y.applyStyles(y.userStyles),e.body.forEach((function(t,n){var o=n===e.body.length-1;h(y,e,t,o,v,s,e.columns)})),y.applyStyles(y.userStyles),"lastPage"!==n.showFoot&&"everyPage"!==n.showFoot||e.foot.forEach((function(t){return c(y,e,t,s,e.columns)}))),i.addTableBorder(y,e,v,s),e.callEndPageHooks(y,s),e.finalY=s.y,t.lastAutoTable=e,t.previousAutoTable=e,t.autoTable&&(t.autoTable.previous=e),y.applyStyles(y.userStyles)},e.addPage=p},function(t,e,n){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CellHookData=e.HookData=void 0;var r=function(t,e,n){this.table=e,this.pageNumber=e.pageNumber,this.pageCount=this.pageNumber,this.settings=e.settings,this.cursor=n,this.doc=t.getDocument()};e.HookData=r;var l=function(t){function e(e,n,o,i,r,l){var a=t.call(this,e,n,l)||this;return a.cell=o,a.row=i,a.column=r,a.section=i.section,a}return i(e,t),e}(r);e.CellHookData=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createTable=void 0;var o=n(2),i=n(3),r=n(16),l=n(1),a=n(4);function s(t,e,n,o,r,l){var a={};return e.map((function(e,s){for(var u=0,h={},c=0,f=0,p=0,g=n;p<g.length;p++){var y=g[p];if(null==a[y.index]||0===a[y.index].left)if(0===f){var v=void 0,m={};"object"!=typeof(v=Array.isArray(e)?e[y.index-c-u]:e[y.dataKey])||Array.isArray(v)||(m=(null==v?void 0:v.styles)||{});var b=d(t,y,s,r,o,l,m),w=new i.Cell(v,b,t);h[y.dataKey]=w,h[y.index]=w,f=w.colSpan-1,a[y.index]={left:w.rowSpan-1,times:f}}else f--,c++;else a[y.index].left--,f=a[y.index].times,u++}return new i.Row(e,s,t,h)}))}function u(t,e){var n={};return t.forEach((function(t){if(null!=t.raw){var o=function(t,e){if("head"===t){if("object"==typeof e)return e.header||e.title||null;if("string"==typeof e||"number"==typeof e)return e}else if("foot"===t&&"object"==typeof e)return e.footer;return null}(e,t.raw);null!=o&&(n[t.dataKey]=o)}})),Object.keys(n).length>0?n:null}function d(t,e,n,o,i,r,s){var u,d=l.getTheme(o);"head"===t?u=i.headStyles:"body"===t?u=i.bodyStyles:"foot"===t&&(u=i.footStyles);var h=a.assign({},d.table,d[t],i.styles,u),c=i.columnStyles[e.dataKey]||i.columnStyles[e.index]||{},f="body"===t?c:{},p="body"===t&&n%2==0?a.assign({},d.alternateRow,i.alternateRowStyles):{},g=l.defaultStyles(r),y=a.assign({},g,h,p,f);return a.assign(y,s)}e.createTable=function(t,e){var n=new o.DocHandler(t),l=function(t,e){var n=t.content,o=function(t){return t.map((function(t,e){var n,o,r;return r="object"==typeof t&&null!==(o=null!==(n=t.dataKey)&&void 0!==n?n:t.key)&&void 0!==o?o:e,new i.Column(r,t,e)}))}(n.columns),r;(0===n.head.length&&(r=u(o,"head"))&&n.head.push(r),0===n.foot.length)&&((r=u(o,"foot"))&&n.foot.push(r));var l=t.settings.theme,a=t.styles;return{columns:o,head:s("head",n.head,o,a,l,e),body:s("body",n.body,o,a,l,e),foot:s("foot",n.foot,o,a,l,e)}}(e,n.scaleFactor()),a=new i.Table(e,l);return r.calculateWidths(n,a),n.applyStyles(n.userStyles),a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Cell=e.Column=e.Row=e.Table=e.CellHookData=e.__drawTable=e.__createTable=e.applyPlugin=void 0;var o=n(12),i=n(7),r=n(8),l=n(10),a=n(3);Object.defineProperty(e,"Table",{enumerable:!0,get:function(){return a.Table}});var s=n(9);Object.defineProperty(e,"CellHookData",{enumerable:!0,get:function(){return s.CellHookData}});var u=n(3);function d(t){o.default(t)}Object.defineProperty(e,"Cell",{enumerable:!0,get:function(){return u.Cell}}),Object.defineProperty(e,"Column",{enumerable:!0,get:function(){return u.Column}}),Object.defineProperty(e,"Row",{enumerable:!0,get:function(){return u.Row}}),e.applyPlugin=d,e.default=function(t,e){var n=i.parseInput(t,e),o=l.createTable(t,n);r.drawTable(t,o)},e.__createTable=function(t,e){var n=i.parseInput(t,e);return l.createTable(t,n)},e.__drawTable=function(t,e){r.drawTable(t,e)};try{var h=n(17);h.jsPDF&&(h=h.jsPDF),d(h)}catch(t){}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),i=n(6),r=n(2),l=n(7),a=n(8),s=n(10);e.default=function(t){t.API.autoTable=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];1===e.length?t=e[0]:((t=e[2]||{}).columns=e[0],t.body=e[1]);var o=l.parseInput(this,t),i=s.createTable(this,o);return a.drawTable(this,i),this},t.API.lastAutoTable=!1,t.API.previousAutoTable=!1,t.API.autoTable.previous=!1,t.API.autoTableText=function(t,e,n,o){i.default(t,e,n,o,this)},t.API.autoTableSetDefaults=function(t){return r.DocHandler.setDefaults(t,this),this},t.autoTableSetDefaults=function(t,e){r.DocHandler.setDefaults(t,e)},t.API.autoTableHtmlToJson=function(t,e){if(void 0===e&&(e=!1),"undefined"==typeof window)return null;var n=new r.DocHandler(this),i=o.parseHtml(n,t,window,e,!1),l=i.head,a=i.body;return{columns:l[0].map((function(t){return t.content})),rows:a,data:a}},t.API.autoTableEndPosY=function(){var t=this.lastAutoTable;return t&&t.finalY?t.finalY:0},t.API.autoTableAddPageContent=function(e){return t.API.autoTable.globalDefaults||(t.API.autoTable.globalDefaults={}),t.API.autoTable.globalDefaults.addPageContent=e,this},t.API.autoTableAddPage=function(){return this.addPage(),this}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseCss=void 0;var o=n(0);function i(t,e){var n=r(t,e);if(!n)return null;var o=n.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!o||!Array.isArray(o))return null;var i=[parseInt(o[1]),parseInt(o[2]),parseInt(o[3])];return 0===parseInt(o[4])||isNaN(i[0])||isNaN(i[1])||isNaN(i[2])?null:i}function r(t,e){var n=e(t);return"rgba(0, 0, 0, 0)"===n||"transparent"===n||"initial"===n||"inherit"===n?null==t.parentElement?null:r(t.parentElement,e):n}e.parseCss=function(t,e,n,r,l){var a={},s=96/72,u=i(e,(function(t){return l.getComputedStyle(t).backgroundColor}));null!=u&&(a.fillColor=u),null!=(u=i(e,(function(t){return l.getComputedStyle(t).color})))&&(a.textColor=u),null!=(u=i(e,(function(t){return l.getComputedStyle(t).borderTopColor})))&&(a.lineColor=u);var d=function(t,e){var n=[t.paddingTop,t.paddingRight,t.paddingBottom,t.paddingLeft],i=96/(72/e),r=(parseInt(t.lineHeight)-parseInt(t.fontSize))/e/2,l=n.map((function(t){return parseInt(t)/i})),a=o.parseSpacing(l,0);return r>a.top&&(a.top=r),r>a.bottom&&(a.bottom=r),a}(r,n);d&&(a.cellPadding=d);var h=parseInt(r.borderTopWidth||"");(h=h/s/n)&&(a.lineWidth=h);var c=["left","right","center","justify"];-1!==c.indexOf(r.textAlign)&&(a.halign=r.textAlign),-1!==(c=["middle","bottom","top"]).indexOf(r.verticalAlign)&&(a.valign=r.verticalAlign);var f=parseInt(r.fontSize||"");isNaN(f)||(a.fontSize=f/s);var p=function(t){var e="";return("bold"===t.fontWeight||"bolder"===t.fontWeight||parseInt(t.fontWeight)>=700)&&(e="bold"),"italic"!==t.fontStyle&&"oblique"!==t.fontStyle||(e+="italic"),e}(r);p&&(a.fontStyle=p);var g=(r.fontFamily||"").toLowerCase();return-1!==t.indexOf(g)&&(a.font=g),a}},function(t,e,n){"use strict";function o(t){t.rowHeight?t.minCellHeight||(t.minCellHeight=t.rowHeight):t.columnWidth&&(t.cellWidth||(t.cellWidth=t.columnWidth))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,i){for(var r=function(e){void 0!==e.extendWidth&&(e.tableWidth=e.extendWidth?"auto":"wrap"),void 0!==e.margins&&void 0===e.margin&&(e.margin=e.margins),e.startY&&"number"!=typeof e.startY&&delete e.startY,!e.didDrawPage&&(e.afterPageContent||e.beforePageContent||e.afterPageAdd)&&(e.didDrawPage=function(n){t.applyStyles(t.userStyles),e.beforePageContent&&e.beforePageContent(n),t.applyStyles(t.userStyles),e.afterPageContent&&e.afterPageContent(n),t.applyStyles(t.userStyles),e.afterPageAdd&&n.pageNumber>1&&n.afterPageAdd(n),t.applyStyles(t.userStyles)}),["createdHeaderCell","drawHeaderRow","drawRow","drawHeaderCell"].forEach((function(t){e[t]})),[["showFoot","showFooter"],["showHead","showHeader"],["didDrawPage","addPageContent"],["didParseCell","createdCell"],["headStyles","headerStyles"]].forEach((function(t){var n=t[0],o=t[1];e[o]&&(e[n]=e[o])})),[["padding","cellPadding"],["lineHeight","rowHeight"],"fontSize","overflow"].forEach((function(t){var n="string"==typeof t?t:t[0],o="string"==typeof t?t:t[1];void 0!==e[n]&&void 0===e.styles[o]&&(e.styles[o]=e[n])}));for(var n=0,i=["styles","bodyStyles","headStyles","footStyles"];n<i.length;n++)o(e[i[n]]||{});for(var r=e.columnStyles||{},l=0,a=Object.keys(r);l<a.length;l++)o(r[a[l]]||{})},l=0,a=[e,n,i];l<a.length;l++)r(a[l])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(t,e,n){void 0===n&&(n={});for(var o=e.settings.margin,i=t.pageSize().width-(o.left+o.right),r=[],l=[],a=e.columns.length,s=n&&n.start?n.start:0;s<a;){var u=e.columns[s].wrappedWidth;if(i<u){0!==s&&s!==n.start||(r.push(s),l.push(e.columns[s]));break}r.push(s),l.push(e.columns[s]),i-=u,s++}return{colIndexes:r,columns:l}};e.default={getColumnsCanFitInPage:o,calculateAllColumnsCanFitInPage:function(t,e){for(var n=[],i=0,r=e.columns.length;i<r;){var l=o(t,e,{start:0===i?0:i});l&&l.columns&&l.columns.length?(i+=l.columns.length,n.push(l)):i++}return n}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ellipsize=e.resizeColumns=e.calculateWidths=void 0;var o=n(0);function i(t,e,n){for(var o=e,r=t.reduce((function(t,e){return t+e.wrappedWidth}),0),l=0;l<t.length;l++){var a=t[l],s=o*(a.wrappedWidth/r),u=a.width+s,d=n(a),h=u<d?d:u;e-=h-a.width,a.width=h}if(e=Math.round(1e10*e)/1e10){var c=t.filter((function(t){return!(e<0)||t.width>n(t)}));c.length&&(e=i(c,e,n))}return e}function r(t,e,n,i,r){return t.map((function(t){return function(t,e,n,i,r){var l=1e4*i.scaleFactor();if((e=Math.ceil(e*l)/l)>=o.getStringWidth(t,n,i))return t;for(;e<o.getStringWidth(t+r,n,i)&&!(t.length<=1);)t=t.substring(0,t.length-1);return t.trim()+r}(t,e,n,i,r)}))}e.calculateWidths=function(t,e){!function(t,e){var n=t.scaleFactor();e.allRows().forEach((function(i){for(var r=0,l=e.columns;r<l.length;r++){var a=l[r],s=i.cells[a.index];if(s){var u=e.hooks.didParseCell;e.callCellHooks(t,u,s,i,a,null);var d=s.padding("horizontal");s.contentWidth=o.getStringWidth(s.text,s.styles,t)+d;var h=o.getStringWidth(s.text.join(" ").split(/\s+/),s.styles,t);if(s.minReadableWidth=h+s.padding("horizontal"),"number"==typeof s.styles.cellWidth)s.minWidth=s.styles.cellWidth,s.wrappedWidth=s.styles.cellWidth;else if("wrap"===s.styles.cellWidth)s.minWidth=s.contentWidth,s.wrappedWidth=s.contentWidth;else{var c=10/n;s.minWidth=s.styles.minCellWidth||c,s.wrappedWidth=s.contentWidth,s.minWidth>s.wrappedWidth&&(s.wrappedWidth=s.minWidth)}}}})),e.allRows().forEach((function(t){for(var n=0,o=e.columns;n<o.length;n++){var i=o[n],r=t.cells[i.index];if(r&&1===r.colSpan)i.wrappedWidth=Math.max(i.wrappedWidth,r.wrappedWidth),i.minWidth=Math.max(i.minWidth,r.minWidth),i.minReadableWidth=Math.max(i.minReadableWidth,r.minReadableWidth);else{var l=e.styles.columnStyles[i.dataKey]||e.styles.columnStyles[i.index]||{},a=l.cellWidth||l.minCellWidth;a&&"number"==typeof a&&(i.minWidth=a,i.wrappedWidth=a)}r&&(r.colSpan>1&&!i.minWidth&&(i.minWidth=r.minWidth),r.colSpan>1&&!i.wrappedWidth&&(i.wrappedWidth=r.minWidth))}}))}(t,e);var n=[],l=0;e.columns.forEach((function(t){var o=t.getMaxCustomCellWidth(e);o?t.width=o:(t.width=t.wrappedWidth,n.push(t)),l+=t.width}));var a=e.getWidth(t.pageSize().width)-l;a&&(a=i(n,a,(function(t){return Math.max(t.minReadableWidth,t.minWidth)}))),a&&(a=i(n,a,(function(t){return t.minWidth}))),a=Math.abs(a),!e.settings.horizontalPageBreak&&a>.1/t.scaleFactor()&&(a=a<1?a:Math.round(a)),function(t){for(var e=t.allRows(),n=0;n<e.length;n++)for(var o=e[n],i=null,r=0,l=0,a=0;a<t.columns.length;a++){var s=t.columns[a];if((l-=1)>1&&t.columns[a+1])r+=s.width,delete o.cells[s.index];else if(i){var u=i;delete o.cells[s.index],i=null,u.width=s.width+r}else{if(!(u=o.cells[s.index]))continue;if(l=u.colSpan,r=0,u.colSpan>1){i=u,r+=s.width;continue}u.width=s.width+r}}}(e),function(t,e){for(var n={count:0,height:0},o=0,i=t.allRows();o<i.length;o++){for(var l=i[o],a=0,s=t.columns;a<s.length;a++){var u=s[a],d=l.cells[u.index];if(d){e.applyStyles(d.styles,!0);var h=d.width-d.padding("horizontal");"linebreak"===d.styles.overflow?d.text=e.splitTextToSize(d.text,h+1/e.scaleFactor(),{fontSize:d.styles.fontSize}):"ellipsize"===d.styles.overflow?d.text=r(d.text,h,d.styles,e,"..."):"hidden"===d.styles.overflow?d.text=r(d.text,h,d.styles,e,""):"function"==typeof d.styles.overflow&&(d.text=d.styles.overflow(d.text,h)),d.contentHeight=d.getContentHeight(e.scaleFactor());var c=d.contentHeight/d.rowSpan;d.rowSpan>1&&n.count*n.height<c*d.rowSpan?n={height:c,count:d.rowSpan}:n&&n.count>0&&n.height>c&&(c=n.height),c>l.height&&(l.height=c)}}n.count--}}(e,t),function(t){for(var e={},n=1,o=t.allRows(),i=0;i<o.length;i++)for(var r=o[i],l=0,a=t.columns;l<a.length;l++){var s=a[l],u=e[s.index];if(n>1)n--,delete r.cells[s.index];else if(u)u.cell.height+=r.height,n=u.cell.colSpan,delete r.cells[s.index],u.left--,u.left<=1&&delete e[s.index];else{var d=r.cells[s.index];if(!d)continue;if(d.height=r.height,d.rowSpan>1){var h=o.length-i,c=d.rowSpan>h?h:d.rowSpan;e[s.index]={cell:d,left:c,row:r}}}}}(e)},e.resizeColumns=i,e.ellipsize=r},function(e,n){if(void 0===t){var o=new Error("Cannot find module 'undefined'");throw o.code="MODULE_NOT_FOUND",o}e.exports=t}])}));