/*! For license information please see 14.812f108f.chunk.js.LICENSE.txt */ (this["webpackJsonpsimpro-web"]=this["webpackJsonpsimpro-web"]||[]).push([[14,4,5,7],{1002:function(e,t,r){var n=r(914);e.exports=function(e){if(Array.isArray(e))return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports},1003:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},1040:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(this.props,[]);return function(e){l.forEach((function(t){return delete e[t]}))}(a),a.className=this.props.inputClassName,a.id=this.state.inputId,a.style=r,o.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),o.default.createElement("input",n({},a,{ref:this.inputRef})),o.default.createElement("div",{ref:this.sizerRef,style:c},e),this.props.placeholder?o.default.createElement("div",{ref:this.placeHolderSizerRef,style:c},this.props.placeholder):null)}}]),t}(i.Component);d.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},d.defaultProps={minWidth:1,injectStyles:!0},t.default=d},1054:function(e,t,r){var n=r(1141);e.exports=function(e,t){if(e){if("string"===typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}},1056:function(e,t,r){"use strict";r.d(t,"a",(function(){return B}));var n=r(839),a=r.n(n),i=r(619),o=r.n(i),s=r(889),A=r.n(s),c=r(712),l=r.n(c),u=r(662),f=r.n(u),h=r(872),d=r.n(h),p=r(2),g=r(886),m=r(903),v=r(840),b={position:"absolute",top:0,left:0,opacity:0,pointerEvents:"none"},w={},y=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),a=0;a=0;n(t.key,!a)},e.onItemRemove=function(t){var r=e.props.onItemRemove;null===r||void 0===r||r([t.key])},e.onPageChange=function(t){e.setState({current:t})},e.getItems=function(){var t=e.state.current,r=e.props,n=r.pagination,a=r.filteredRenderItems,i=T(n),o=a;return i&&(o=a.slice((t-1)*i.pageSize,t*i.pageSize)),o},e}return Object(s.a)(r,[{key:"render",value:function(){var e=this,t=this.state.current,r=this.props,a=r.prefixCls,i=r.onScroll,o=r.filteredRenderItems,s=r.selectedKeys,A=r.disabled,c=r.showRemove,l=T(r.pagination),h=null;return l&&(h=f.createElement(x.a,{simple:l.simple,showSizeChanger:l.showSizeChanger,showLessItems:l.showLessItems,size:"small",disabled:A,className:"".concat(a,"-pagination"),total:o.length,pageSize:l.pageSize,current:t,onChange:this.onPageChange})),f.createElement(f.Fragment,null,f.createElement("ul",{className:u()("".concat(a,"-content"),Object(n.a)({},"".concat(a,"-content-show-remove"),c)),onScroll:i},this.getItems().map((function(t){var r=t.renderedEl,n=t.renderedText,i=t.item,o=i.disabled,l=s.indexOf(i.key)>=0;return f.createElement(k,{disabled:A||o,key:i.key,item:i,renderedText:n,renderedEl:r,checked:l,prefixCls:a,onClick:e.onItemSelect,onRemove:e.onItemRemove,showRemove:c})}))),h)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=e.filteredRenderItems,n=e.pagination,a=t.current,i=T(n);if(i){var o=Math.ceil(r.length/i.pageSize);if(a>o)return{current:o}}return null}}]),r}(f.Component),L=r(612),P=r(741);function D(e){var t=e.placeholder,r=void 0===t?"":t,n=e.value,a=e.prefixCls,i=e.disabled,o=e.onChange,s=e.handleClear,A=f.useCallback((function(e){null===o||void 0===o||o(e),""===e.target.value&&(null===s||void 0===s||s())}),[o]);return f.createElement(P.default,{placeholder:r,className:a,value:n,onChange:A,disabled:i,allowClear:!0,prefix:f.createElement(L.a,null)})}var Q=function(){return null};function R(e){return e.filter((function(e){return!e.disabled})).map((function(e){return e.key}))}var M=function(e){Object(A.a)(r,e);var t=Object(c.a)(r);function r(e){var n;return Object(o.a)(this,r),(n=t.call(this,e)).defaultListBodyRef=f.createRef(),n.handleFilter=function(e){var t=n.props.handleFilter,r=e.target.value;n.setState({filterValue:r}),t(e)},n.handleClear=function(){var e=n.props.handleClear;n.setState({filterValue:""}),e()},n.matchFilter=function(e,t){var r=n.state.filterValue,a=n.props.filterOption;return a?a(r,t):e.indexOf(r)>=0},n.renderListBody=function(e,t){var r=e?e(t):null,a=!!r;return a||(r=f.createElement(U,Object(i.a)({ref:n.defaultListBodyRef},t))),{customize:a,bodyContent:r}},n.renderItem=function(e){var t,r=n.props.render,a=(void 0===r?Q:r)(e),i=!(!(t=a)||Object(E.b)(t)||"[object Object]"!==Object.prototype.toString.call(t));return{renderedText:i?a.value:a,renderedEl:i?a.label:a,item:e}},n.getSelectAllLabel=function(e,t){var r=n.props,a=r.itemsUnit,i=r.itemUnit,o=r.selectAllLabel;if(o)return"function"===typeof o?o({selectedCount:e,totalCount:t}):o;var s=t>1?a:i;return f.createElement(f.Fragment,null,(e>0?"".concat(e,"/"):"")+t," ",s)},n.state={filterValue:""},n}return Object(s.a)(r,[{key:"componentWillUnmount",value:function(){clearTimeout(this.triggerScrollTimer)}},{key:"getCheckStatus",value:function(e){var t=this.props.checkedKeys;return 0===t.length?"none":e.every((function(e){return t.indexOf(e.key)>=0||!!e.disabled}))?"all":"part"}},{key:"getFilteredItems",value:function(e,t){var r=this,n=[],a=[];return e.forEach((function(e){var i=r.renderItem(e),o=i.renderedText;if(t&&!r.matchFilter(o,e))return null;n.push(e),a.push(i)})),{filteredItems:n,filteredRenderItems:a}}},{key:"getListBody",value:function(e,t,r,n,a,o,s,A,c,l){var h,d=this,p=c?f.createElement("div",{className:"".concat(e,"-body-search-wrapper")},f.createElement(D,{prefixCls:"".concat(e,"-search"),onChange:this.handleFilter,handleClear:this.handleClear,placeholder:t,value:r,disabled:l})):null,g=this.renderListBody(A,Object(i.a)(Object(i.a)({},Object(w.a)(this.props,N)),{filteredItems:n,filteredRenderItems:o,selectedKeys:s})),m=g.bodyContent;return h=g.customize?f.createElement("div",{className:"".concat(e,"-body-customize-wrapper")},m):n.length?m:f.createElement("div",{className:"".concat(e,"-body-not-found")},function(){var e="left"===d.props.direction?0:1;return Array.isArray(a)?a[e]:a}()),f.createElement("div",{className:u()(c?"".concat(e,"-body ").concat(e,"-body-with-search"):"".concat(e,"-body"))},p,h)}},{key:"getCheckBox",value:function(e){var t=e.filteredItems,r=e.onItemSelectAll,n=e.disabled,a=e.prefixCls,i=this.getCheckStatus(t),o="all"===i;return f.createElement(y.default,{disabled:n,checked:o,indeterminate:"part"===i,className:"".concat(a,"-checkbox"),onChange:function(){r(t.filter((function(e){return!e.disabled})).map((function(e){return e.key})),!o)}})}},{key:"render",value:function(){var e,t=this,r=this.state.filterValue,a=this.props,i=a.prefixCls,o=a.dataSource,s=a.titleText,A=a.checkedKeys,c=a.disabled,l=a.footer,h=a.showSearch,d=a.style,p=a.searchPlaceholder,g=a.notFoundContent,m=a.selectAll,v=a.selectCurrent,w=a.selectInvert,y=a.removeAll,E=a.removeCurrent,S=a.renderList,x=a.onItemSelectAll,F=a.onItemRemove,O=a.showSelectAll,_=void 0===O||O,I=a.showRemove,k=a.pagination,N=a.direction,T=l&&(l.length<2?l(this.props):l(this.props,{direction:N})),U=u()(i,(e={},Object(n.a)(e,"".concat(i,"-with-pagination"),!!k),Object(n.a)(e,"".concat(i,"-with-footer"),!!T),e)),L=this.getFilteredItems(o,r),P=L.filteredItems,D=L.filteredRenderItems,Q=this.getListBody(i,p,r,P,g,D,A,S,h,c),M=T?f.createElement("div",{className:"".concat(i,"-footer")},T):null,j=!I&&!k&&this.getCheckBox({filteredItems:P,onItemSelectAll:x,disabled:c,prefixCls:i}),H=null;if(I){var V=[k?{key:"removeCurrent",onClick:function(){var e,r=R(((null===(e=t.defaultListBodyRef.current)||void 0===e?void 0:e.getItems())||[]).map((function(e){return e.item})));null===F||void 0===F||F(r)},label:E}:null,{key:"removeAll",onClick:function(){null===F||void 0===F||F(R(P))},label:y}].filter((function(e){return e}));H=f.createElement(C.a,{items:V})}else{var K=[{key:"selectAll",onClick:function(){var e=R(P);x(e,e.length!==A.length)},label:m},k?{key:"selectCurrent",onClick:function(){var e,r=(null===(e=t.defaultListBodyRef.current)||void 0===e?void 0:e.getItems())||[];x(R(r.map((function(e){return e.item}))),!0)},label:v}:null,{key:"selectInvert",onClick:function(){var e,r;r=R(k?((null===(e=t.defaultListBodyRef.current)||void 0===e?void 0:e.getItems())||[]).map((function(e){return e.item})):P);var n=new Set(A),a=[],i=[];r.forEach((function(e){n.has(e)?i.push(e):a.push(e)})),x(a,!0),x(i,!1)},label:w}];H=f.createElement(C.a,{items:K})}var z=f.createElement(B.default,{className:"".concat(i,"-header-dropdown"),overlay:H,disabled:c},f.createElement(b.a,null));return f.createElement("div",{className:U,style:d},f.createElement("div",{className:"".concat(i,"-header")},_?f.createElement(f.Fragment,null,j,z):null,f.createElement("span",{className:"".concat(i,"-header-selected")},this.getSelectAllLabel(A.length,P.length)),f.createElement("span",{className:"".concat(i,"-header-title")},s)),Q,M)}}]),r}(f.PureComponent);M.defaultProps={dataSource:[],titleText:"",showSearch:!1};var j=r(624),H=r(606),V=r(603),K=function(e){var t=e.disabled,r=e.moveToLeft,n=e.moveToRight,a=e.leftArrowText,i=void 0===a?"":a,o=e.rightArrowText,s=void 0===o?"":o,A=e.leftActive,c=e.rightActive,l=e.className,u=e.style,h=e.direction,d=e.oneWay;return f.createElement("div",{className:l,style:u},f.createElement(V.default,{type:"primary",size:"small",disabled:t||!c,onClick:n,icon:"rtl"!==h?f.createElement(H.a,null):f.createElement(j.a,null)},s),!d&&f.createElement(V.default,{type:"primary",size:"small",disabled:t||!A,onClick:r,icon:"rtl"!==h?f.createElement(j.a,null):f.createElement(H.a,null)},i))},z=function(e){Object(A.a)(r,e);var t=Object(c.a)(r);function r(e){var s;Object(o.a)(this,r),(s=t.call(this,e)).separatedDataSource=null,s.setStateKeys=function(e,t){"left"===e?s.setState((function(e){var r=e.sourceSelectedKeys;return{sourceSelectedKeys:"function"===typeof t?t(r||[]):t}})):s.setState((function(e){var r=e.targetSelectedKeys;return{targetSelectedKeys:"function"===typeof t?t(r||[]):t}}))},s.getLocale=function(e,t){return Object(i.a)(Object(i.a)(Object(i.a)({},e),{notFoundContent:t("Transfer")}),s.props.locale)},s.moveTo=function(e){var t=s.props,r=t.targetKeys,n=void 0===r?[]:r,a=t.dataSource,i=void 0===a?[]:a,o=t.onChange,A=s.state,c=A.sourceSelectedKeys,l=A.targetSelectedKeys,u=("right"===e?c:l).filter((function(e){return!i.some((function(t){return!(e!==t.key||!t.disabled)}))})),f="right"===e?u.concat(n):n.filter((function(e){return-1===u.indexOf(e)})),h="right"===e?"left":"right";s.setStateKeys(h,[]),s.handleSelectChange(h,[]),null===o||void 0===o||o(f,e,u)},s.moveToLeft=function(){return s.moveTo("left")},s.moveToRight=function(){return s.moveTo("right")},s.onItemSelectAll=function(e,t,r){s.setStateKeys(e,(function(n){var i=[];return i=r?Array.from(new Set([].concat(Object(a.a)(n),Object(a.a)(t)))):n.filter((function(e){return-1===t.indexOf(e)})),s.handleSelectChange(e,i),i}))},s.onLeftItemSelectAll=function(e,t){return s.onItemSelectAll("left",e,t)},s.onRightItemSelectAll=function(e,t){return s.onItemSelectAll("right",e,t)},s.handleFilter=function(e,t){var r=s.props.onSearch,n=t.target.value;null===r||void 0===r||r(e,n)},s.handleLeftFilter=function(e){return s.handleFilter("left",e)},s.handleRightFilter=function(e){return s.handleFilter("right",e)},s.handleClear=function(e){var t=s.props.onSearch;null===t||void 0===t||t(e,"")},s.handleLeftClear=function(){return s.handleClear("left")},s.handleRightClear=function(){return s.handleClear("right")},s.onItemSelect=function(e,t,r){var n=s.state,i=n.sourceSelectedKeys,o=n.targetSelectedKeys,A="left"===e?Object(a.a)(i):Object(a.a)(o),c=A.indexOf(t);c>-1&&A.splice(c,1),r&&A.push(t),s.handleSelectChange(e,A),s.props.selectedKeys||s.setStateKeys(e,A)},s.onLeftItemSelect=function(e,t){return s.onItemSelect("left",e,t)},s.onRightItemSelect=function(e,t){return s.onItemSelect("right",e,t)},s.onRightItemRemove=function(e){var t=s.props,r=t.targetKeys,n=void 0===r?[]:r,i=t.onChange;s.setStateKeys("right",[]),null===i||void 0===i||i(n.filter((function(t){return!e.includes(t)})),"left",Object(a.a)(e))},s.handleScroll=function(e,t){var r=s.props.onScroll;null===r||void 0===r||r(e,t)},s.handleLeftScroll=function(e){return s.handleScroll("left",e)},s.handleRightScroll=function(e){return s.handleScroll("right",e)},s.handleListStyle=function(e,t){return"function"===typeof e?e({direction:t}):e},s.renderTransfer=function(e){return f.createElement(h.a,null,(function(t){var r=t.getPrefixCls,a=t.renderEmpty,o=t.direction;return f.createElement(p.b.Consumer,null,(function(t){var A,c=t.hasFeedback,l=t.status,h=s.props,p=h.prefixCls,g=h.className,m=h.disabled,b=h.operations,w=void 0===b?[]:b,y=h.showSearch,B=h.footer,C=h.style,E=h.listStyle,S=h.operationStyle,x=h.filterOption,F=h.render,O=h.children,_=h.showSelectAll,I=h.oneWay,k=h.pagination,N=h.status,T=r("transfer",p),U=s.getLocale(e,a||d.a),L=s.state,P=L.sourceSelectedKeys,D=L.targetSelectedKeys,Q=Object(v.a)(l,N),R=!O&&k,j=s.separateDataSource(),H=j.leftDataSource,V=j.rightDataSource,z=D.length>0,W=P.length>0,G=u()(T,(A={},Object(n.a)(A,"".concat(T,"-disabled"),m),Object(n.a)(A,"".concat(T,"-customize-list"),!!O),Object(n.a)(A,"".concat(T,"-rtl"),"rtl"===o),A),Object(v.b)(T,Q,c),g),Y=s.getTitles(U),X=s.props.selectAllLabels||[];return f.createElement("div",{className:G,style:C},f.createElement(M,Object(i.a)({prefixCls:"".concat(T,"-list"),titleText:Y[0],dataSource:H,filterOption:x,style:s.handleListStyle(E,"left"),checkedKeys:P,handleFilter:s.handleLeftFilter,handleClear:s.handleLeftClear,onItemSelect:s.onLeftItemSelect,onItemSelectAll:s.onLeftItemSelectAll,render:F,showSearch:y,renderList:O,footer:B,onScroll:s.handleLeftScroll,disabled:m,direction:"rtl"===o?"right":"left",showSelectAll:_,selectAllLabel:X[0],pagination:R},U)),f.createElement(K,{className:"".concat(T,"-operation"),rightActive:W,rightArrowText:w[0],moveToRight:s.moveToRight,leftActive:z,leftArrowText:w[1],moveToLeft:s.moveToLeft,style:S,disabled:m,direction:o,oneWay:I}),f.createElement(M,Object(i.a)({prefixCls:"".concat(T,"-list"),titleText:Y[1],dataSource:V,filterOption:x,style:s.handleListStyle(E,"right"),checkedKeys:D,handleFilter:s.handleRightFilter,handleClear:s.handleRightClear,onItemSelect:s.onRightItemSelect,onItemSelectAll:s.onRightItemSelectAll,onItemRemove:s.onRightItemRemove,render:F,showSearch:y,renderList:O,footer:B,onScroll:s.handleRightScroll,disabled:m,direction:"rtl"===o?"left":"right",showSelectAll:_,selectAllLabel:X[1],showRemove:I,pagination:R},U)))}))}))};var A=e.selectedKeys,c=void 0===A?[]:A,l=e.targetKeys,g=void 0===l?[]:l;return s.state={sourceSelectedKeys:c.filter((function(e){return-1===g.indexOf(e)})),targetSelectedKeys:c.filter((function(e){return g.indexOf(e)>-1}))},s}return Object(s.a)(r,[{key:"getTitles",value:function(e){var t;return null!==(t=this.props.titles)&&void 0!==t?t:e.titles}},{key:"handleSelectChange",value:function(e,t){var r=this.state,n=r.sourceSelectedKeys,a=r.targetSelectedKeys,i=this.props.onSelectChange;i&&("left"===e?i(t,a):i(n,t))}},{key:"separateDataSource",value:function(){var e=this.props,t=e.dataSource,r=e.rowKey,n=e.targetKeys,a=void 0===n?[]:n,o=[],s=new Array(a.length);return t.forEach((function(e){r&&(e=Object(i.a)(Object(i.a)({},e),{key:r(e)}));var t=a.indexOf(e.key);-1!==t?s[t]=e:o.push(e)})),{leftDataSource:o,rightDataSource:s}}},{key:"render",value:function(){return f.createElement(g.a,{componentName:"Transfer",defaultLocale:m.a.Transfer},this.renderTransfer)}}],[{key:"getDerivedStateFromProps",value:function(e){var t=e.selectedKeys,r=e.targetKeys;e.pagination,e.children;if(t){var n=r||[];return{sourceSelectedKeys:t.filter((function(e){return!n.includes(e)})),targetSelectedKeys:t.filter((function(e){return n.includes(e)}))}}return null}}]),r}(f.Component);z.List=M,z.Operation=K,z.Search=D,z.defaultProps={dataSource:[],locale:{},showSearch:!1,listStyle:function(){}};t.a=z},1141:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i,o=!0,s=!1;return{s:function(){a=e[Symbol.iterator]()},n:function(){var e=a.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==a.return||a.return()}finally{if(s)throw i}}}}},1481:function(e,t,r){var n=r(1482),a=r(1483),i=r(1054),o=r(1484);e.exports=function(e){return n(e)||a(e)||i(e)||o()}},1482:function(e,t,r){var n=r(1141);e.exports=function(e){if(Array.isArray(e))return n(e)}},1483:function(e,t){e.exports=function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},1484:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},1546:function(e,t){function r(e,t,r,n,a,i,o){try{var s=e[i](o),A=s.value}catch(c){return void r(c)}s.done?t(A):Promise.resolve(A).then(n,a)}e.exports=function(e){return function(){var t=this,n=arguments;return new Promise((function(a,i){var o=e.apply(t,n);function s(e){r(o,a,i,s,A,"next",e)}function A(e){r(o,a,i,s,A,"throw",e)}s(void 0)}))}}},1550:function(e,t,r){"use strict";var n=r(19),a=r(561),i=r(58),o=r(33),s=r(2),A=r.n(s),c=r(79),l=r.n(c),u=r(183),f=r.n(u),h=r(559),d=r.n(h),p=r(1056),g=r(865),m=r(568),v=["className","cssModule","right","tag","flip","modifiers","persist","positionFixed","container"];function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function w(e){for(var t=1;t-1?this.getRole():void 0,r=Object(d.q)(this.props,["toggle"]),i=r.className,o=r.cssModule,s=r.divider,c=r.tag,l=r.header,u=r.active,h=r.text,g=Object(a.a)(r,p),m=Object(d.p)(f()(i,{disabled:g.disabled,"dropdown-item":!s&&!l&&!h,active:u,"dropdown-header":l,"dropdown-divider":s,"dropdown-item-text":h}),o);return"button"===c&&(l?c="h6":s?c="div":g.href?c="a":h&&(c="span")),A.a.createElement(c,Object(n.a)({type:"button"===c&&(g.onClick||this.props.toggle)?"button":void 0},g,{tabIndex:e,role:t,className:m,onClick:this.onClick}))},t}(A.a.Component);m.propTypes=g,m.defaultProps={tag:"button",toggle:!0},m.contextType=h.a,t.a=m},1637:function(e,t,r){"use strict";var n=r(19),a=r(58),i=r(580),o=r(33),s=r(2),A=r.n(s),c=r(79),l=r.n(c),u=r(559),f=r.n(u),h=r(619),d=r.n(h),p=r(889),g=r.n(p),m=r(712),v=r.n(m),b=r(662),w=r.n(b),y=r(989),B=r.n(y),C=r(903),E=r(840),S=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),a=0;a>18&63,r=i>>12&63,n=i>>6&63,a=63&i,c[s++]=f.charAt(t)+f.charAt(r)+f.charAt(n)+f.charAt(a),o>16&255,r=o>>8&255,n=255&o,c[A++]=64==a?String.fromCharCode(t):64==i?String.fromCharCode(t,r):String.fromCharCode(t,r,n),s>>0,n=new Array(r),a=1>>0,a=0;a>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var n=arguments[1],a=0;a>16&255,n=c>>8&255,i=255&c}if(void 0===n||void 0===o&&r===n&&n===i)if("string"==typeof r)t=r+" "+s[0];else switch(e.precision){case 2:t=b(r/255)+" "+s[0];break;case 3:default:t=w(r/255)+" "+s[0]}else if(void 0===o||"object"===a(o)){if(o&&!isNaN(o.a)&&0===o.a)return["1.000","1.000","1.000",s[1]].join(" ");if("string"==typeof r)t=[r,n,i,s[1]].join(" ");else switch(e.precision){case 2:t=[b(r/255),b(n/255),b(i/255),s[1]].join(" ");break;default:case 3:t=[w(r/255),w(n/255),w(i/255),s[1]].join(" ")}}else if("string"==typeof r)t=[r,n,i,o,s[2]].join(" ");else switch(e.precision){case 2:t=[b(r/255),b(n/255),b(i/255),b(o/255),s[2]].join(" ");break;case 3:default:t=[w(r/255),w(n/255),w(i/255),w(o/255),s[2]].join(" ")}return t},pe=h.__private__.getFilters=function(){return c},ge=h.__private__.putStream=function(e){var t,r=(e=e||{}).data||"",n=e.filters||pe(),a=e.alreadyAppliedFilters||[],i=e.addLength1||!1,o=r.length;!0===n&&(n=["FlateEncode"]);var A=e.additionalKeyValues||[],c=(t=void 0!==s.API.processDataByFilters?s.API.processDataByFilters(r,n):{data:r,reverseChain:[]}).reverseChain+(Array.isArray(a)?a.join(" "):a.toString());0!==t.data.length&&(A.push({key:"Length",value:t.data.length}),!0===i&&A.push({key:"Length1",value:o})),0!=c.length&&(c.split("/").length-1==1?A.push({key:"Filter",value:c}):A.push({key:"Filter",value:"["+c+"]"})),j("<<");for(var l=0;l>"),0!==t.data.length&&(j("stream"),j(t.data),j("endstream"))},me=h.__private__.putPage=function(e){e.mediaBox;var t=e.number,r=e.data,n=e.objId,a=e.contentsObjId;ce(n,!0),ne[O].mediaBox.topRightX,ne[O].mediaBox.bottomLeftX,ne[O].mediaBox.topRightY,ne[O].mediaBox.bottomLeftY,j("<>"),j("endobj");var i=r.join("\n");return ce(a,!0),ge({data:i,filters:pe()}),j("endobj"),n},ve=h.__private__.putPages=function(){var e,t,r=[];for(e=1;e<=re;e++)ne[e].objId=Ae(),ne[e].contentsObjId=Ae();for(e=1;e<=re;e++)r.push(me({number:e,data:Q[e],objId:ne[e].objId,contentsObjId:ne[e].contentsObjId,mediaBox:ne[e].mediaBox,cropBox:ne[e].cropBox,bleedBox:ne[e].bleedBox,trimBox:ne[e].trimBox,artBox:ne[e].artBox,userUnit:ne[e].userUnit,rootDictionaryObjId:ue,resourceDictionaryObjId:fe}));ce(ue,!0),j("<>"),j("endobj"),ie.publish("postPutPages")},be=function(e,t,r){te.hasOwnProperty(t)||(te[t]={}),te[t][r]=e},we=function(e,t,r,n,a){a=a||!1;var i="F"+(Object.keys(ee).length+1).toString(10),o={id:i,postScriptName:e,fontName:t,fontStyle:r,encoding:n,isStandardFont:a,metadata:{}};return ie.publish("addFont",{font:o,instance:this}),void 0!==i&&(ee[i]=o,be(i,t,r)),i},ye=h.__private__.pdfEscape=h.pdfEscape=function(e,t){return function(e,t){var r,n,a,i,o,s,A,c,l;if(a=(t=t||{}).sourceEncoding||"Unicode",o=t.outputEncoding,(t.autoencode||o)&&ee[T].metadata&&ee[T].metadata[a]&&ee[T].metadata[a].encoding&&(i=ee[T].metadata[a].encoding,!o&&ee[T].encoding&&(o=ee[T].encoding),!o&&i.codePages&&(o=i.codePages[0]),"string"==typeof o&&(o=i[o]),o)){for(A=!1,s=[],r=0,n=e.length;r>8&&(A=!0);e=s.join("")}for(r=e.length;void 0===A&&0!==r;)e.charCodeAt(r-1)>>8&&(A=!0),r--;if(!A)return e;for(s=t.noBOM?[]:[254,255],r=0,n=e.length;r>8)>>8)throw new Error("Character at position "+r+" of string '"+e+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(l),s.push(c-(l<<8))}return String.fromCharCode.apply(void 0,s)}(e,t).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Be=h.__private__.beginPage=function(e,t){var n,a="string"==typeof t&&t.toLowerCase();if("string"==typeof e&&(n=m(e.toLowerCase()))&&(e=n[0],t=n[1]),Array.isArray(e)&&(t=e[1],e=e[0]),(isNaN(e)||isNaN(t))&&(e=r[0],t=r[1]),a){switch(a.substr(0,1)){case"l":e>"),j("endobj")},Oe=h.__private__.putCatalog=function(e){var t=(e=e||{}).rootDictionaryObjId||ue;switch(se(),j("<<"),j("/Type /Catalog"),j("/Pages "+t+" 0 R"),I||(I="fullwidth"),I){case"fullwidth":j("/OpenAction [3 0 R /FitH null]");break;case"fullheight":j("/OpenAction [3 0 R /FitV null]");break;case"fullpage":j("/OpenAction [3 0 R /Fit]");break;case"original":j("/OpenAction [3 0 R /XYZ null null 1]");break;default:var r=""+I;"%"===r.substr(r.length-1)&&(I=parseInt(I)/100),"number"==typeof I&&j("/OpenAction [3 0 R /XYZ null null "+b(I)+"]")}switch(N||(N="continuous"),N){case"continuous":j("/PageLayout /OneColumn");break;case"single":j("/PageLayout /SinglePage");break;case"two":case"twoleft":j("/PageLayout /TwoColumnLeft");break;case"tworight":j("/PageLayout /TwoColumnRight")}k&&j("/PageMode /"+k),ie.publish("putCatalog"),j(">>"),j("endobj")},_e=h.__private__.putTrailer=function(){j("trailer"),j("<<"),j("/Size "+(Z+1)),j("/Root "+Z+" 0 R"),j("/Info "+(Z-1)+" 0 R"),j("/ID [ <"+y+"> <"+y+"> ]"),j(">>")},ke=h.__private__.putHeader=function(){j("%PDF-"+d),j("%\xba\xdf\xac\xe0")},Ne=h.__private__.putXRef=function(){var e=1,t="0000000000";for(j("xref"),j("0 "+(Z+1)),j("0000000000 65535 f "),e=1;e<=Z;e++)"function"==typeof $[e]?j((t+$[e]()).slice(-10)+" 00000 n "):void 0!==$[e]?j((t+$[e]).slice(-10)+" 00000 n "):j("0000000000 00000 n ")},Te=h.__private__.buildDocument=function(){D=!1,M=Z=0,R=[],$=[],ae=[],ue=Ae(),fe=Ae(),ie.publish("buildDocument"),ke(),ve(),function(){ie.publish("putAdditionalObjects");for(var e=0;e>"),j("endobj")));var t}(),ie.publish("putResources"),ce(fe,!0),j("<<"),function(){for(var e in j("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),j("/Font <<"),ee)ee.hasOwnProperty(e)&&(!1===u||!0===u&&f.hasOwnProperty(e))&&j("/"+e+" "+ee[e].objectNumber+" 0 R");j(">>"),j("/XObject <<"),ie.publish("putXobjectDict"),j(">>")}(),j(">>"),j("endobj"),ie.publish("postPutResources"),Fe(),Oe();var e=M;return Ne(),_e(),j("startxref"),j(""+e),j("%%EOF"),D=!0,R.join("\n")},Ue=h.__private__.getBlob=function(e){return new Blob([V(e)],{type:"application/pdf"})},Le=h.output=h.__private__.output=((L=function(e,t){t=t||{};var r=Te();switch("string"==typeof t?t={filename:t}:t.filename=t.filename||"generated.pdf",e){case void 0:return r;case"save":h.save(t.filename);break;case"arraybuffer":return V(r);case"blob":return Ue(r);case"bloburi":case"bloburl":if(void 0!==n.URL&&"function"==typeof n.URL.createObjectURL)return n.URL&&n.URL.createObjectURL(Ue(r))||void 0;console.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":return"data:application/pdf;filename="+t.filename+";base64,"+btoa(r);case"dataurlnewwindow":var a='',i=n.open();if(null!==i&&i.document.write(a),i||"undefined"==typeof safari)return i;case"datauri":case"dataurl":return n.document.location.href="data:application/pdf;filename="+t.filename+";base64,"+btoa(r);default:return null}}).foo=function(){try{return L.apply(this,arguments)}catch(e){var t=e.stack||"";~t.indexOf(" at ")&&(t=t.split(" at ")[1]);var r="Error in function "+t.split("\n")[0].split("<")[0]+": "+e.message;if(!n.console)throw new Error(r);n.console.error(r,e),n.alert&&alert(r)}},(L.foo.bar=L).foo),Pe=function(e){return!0===Array.isArray(oe)&&-1":")"),te=1):(J=Ye(t),Z=Xe(r),$=(c?"<":"(")+B[q]+(c?">":")")),void 0!==V&&void 0!==V[q]&&(re=V[q]+" Tw\n"),0!==_.length&&0===q?e.push(re+_.join(" ")+" "+J.toFixed(2)+" "+Z.toFixed(2)+" Tm\n"+$):1===te||0===te&&0===q?e.push(re+J.toFixed(2)+" "+Z.toFixed(2)+" Td\n"+$):e.push(re+$);e=0===te?e.join(" Tj\nT* "):e.join(" Tj\n"),e+=" Tj\n";var ne="BT\n/"+T+" "+z+" Tf\n"+(z*u).toFixed(2)+" TL\n"+et+"\n";return ne+=l,ne+=e,j(ne+="ET"),f[T]=!0,h},h.__private__.lstext=h.lstext=function(e,t,r,n){return console.warn("jsPDF.lstext is deprecated"),this.text(e,t,r,{charSpace:n})},h.__private__.clip=h.clip=function(e){j("evenodd"===e?"W*":"W"),j("n")},h.__private__.clip_fixed=h.clip_fixed=function(e){console.log("clip_fixed is deprecated"),h.clip(e)};var Me=h.__private__.isValidStyle=function(e){var t=!1;return-1!==[void 0,null,"S","F","DF","FD","f","f*","B","B*"].indexOf(e)&&(t=!0),t},je=h.__private__.getStyle=function(e){var t="S";return"F"===e?t="f":"FD"===e||"DF"===e?t="B":"f"!==e&&"f*"!==e&&"B"!==e&&"B*"!==e||(t=e),t};h.__private__.line=h.line=function(e,t,r,n){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.line");return this.lines([[r-e,n-t]],e,t)},h.__private__.lines=h.lines=function(e,t,r,n,a,i){var o,s,A,c,l,u,f,h,d,p,g,m;if("number"==typeof e&&(m=r,r=t,t=e,e=m),n=n||[1,1],i=i||!1,isNaN(t)||isNaN(r)||!Array.isArray(e)||!Array.isArray(n)||!Me(a)||"boolean"!=typeof i)throw new Error("Invalid arguments passed to jsPDF.lines");for(j(w(Ye(t))+" "+w(Xe(r))+" m "),o=n[0],s=n[1],c=e.length,p=t,g=r,A=0;A=o.length-1;if(E&&!S){b+=" ";continue}if(E||S){if(S)m=C;else if(e.multiline&&c<(f+2)*(w+2)+2)continue e}else{if(!e.multiline)continue e;if(c<(f+2)*(w+2)+2)continue e;m=C}for(var x="",F=g;F<=m;F++)x+=o[F]+" ";switch(x=" "==x.substr(x.length-1)?x.substr(0,x.length-1):x,v=B(x,e,A).width,e.textAlign){case"right":d=l-v-2;break;case"center":d=(l-v)/2;break;case"left":default:d=2}t+=s(d)+" "+s(p)+" Td\n",t+="("+i(x)+") Tj\n",t+=-s(d)+" 0 Td\n",p=-(A+2),v=0,g=m+1,w++,b=""}break}return a.text=t,a.fontSize=A,a},B=function(e,t,n){var a=r.internal.getFont(t.fontName,t.fontStyle),i=r.getStringUnitWidth(e,{font:a,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:r.getStringUnitWidth("3",{font:a,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:i}},C={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},E=function(){r.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var e=r.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];n.objId=void 0,n.hasAnnotation&&S.call(r,n)}},S=function(e){var t={type:"reference",object:e};void 0===r.internal.getPageInfo(e.page).pageContext.annotations.find((function(e){return e.type===t.type&&e.object===t.object}))&&r.internal.getPageInfo(e.page).pageContext.annotations.push(t)},x=function(){if(void 0===r.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");r.internal.write("/AcroForm "+r.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")},F=function(){r.internal.events.unsubscribe(r.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete r.internal.acroformPlugin.acroFormDictionaryRoot._eventID,r.internal.acroformPlugin.printedOut=!0},O=function(e){var t=!e;for(var n in e||(r.internal.newObjectDeferredBegin(r.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),r.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),e=e||r.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(e.hasOwnProperty(n)){var i=e[n],o=[],s=i.Rect;if(i.Rect&&(i.Rect=b.call(this,i.Rect)),r.internal.newObjectDeferredBegin(i.objId,!0),i.DA=Y.createDefaultAppearanceStream(i),"object"===a(i)&&"function"==typeof i.getKeyValueListForStream&&(o=i.getKeyValueListForStream()),i.Rect=s,i.hasAppearanceStream&&!i.appearanceStreamContent){var A=w.call(this,i);o.push({key:"AP",value:"<>"}),r.internal.acroformPlugin.xForms.push(A)}if(i.appearanceStreamContent){var c="";for(var l in i.appearanceStreamContent)if(i.appearanceStreamContent.hasOwnProperty(l)){var u=i.appearanceStreamContent[l];if(c+="/"+l+" ",c+="<<",1<=Object.keys(u).length||Array.isArray(u))for(var n in u){var f;u.hasOwnProperty(n)&&("function"==typeof(f=u[n])&&(f=f.call(this,i)),c+="/"+n+" "+f+" ",0<=r.internal.acroformPlugin.xForms.indexOf(f)||r.internal.acroformPlugin.xForms.push(f))}else"function"==typeof(f=u)&&(f=f.call(this,i)),c+="/"+n+" "+f,0<=r.internal.acroformPlugin.xForms.indexOf(f)||r.internal.acroformPlugin.xForms.push(f);c+=">>"}o.push({key:"AP",value:"<<\n"+c+">>"})}r.internal.putStream({additionalKeyValues:o}),r.internal.out("endobj")}t&&_.call(this,r.internal.acroformPlugin.xForms)},_=function(e){for(var t in e)if(e.hasOwnProperty(t)){var n=t,i=e[t];r.internal.newObjectDeferredBegin(i&&i.objId,!0),"object"===a(i)&&"function"==typeof i.putStream&&i.putStream(),delete e[n]}},I=function(){if(void 0!==this.internal&&(void 0===this.internal.acroformPlugin||!1===this.internal.acroformPlugin.isInitialized)){if(r=this,P.FieldNum=0,this.internal.acroformPlugin=JSON.parse(JSON.stringify(C)),this.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");n=r.internal.scaleFactor,r.internal.acroformPlugin.acroFormDictionaryRoot=new L,r.internal.acroformPlugin.acroFormDictionaryRoot._eventID=r.internal.events.subscribe("postPutResources",F),r.internal.events.subscribe("buildDocument",E),r.internal.events.subscribe("putCatalog",x),r.internal.events.subscribe("postPutPages",O),r.internal.acroformPlugin.isInitialized=!0}},k=e.__acroform__.arrayToPdfArray=function(e){if(Array.isArray(e)){for(var t="[",r=0;r>"),r.join("\n")}},set:function(e){"object"===a(e)&&(t=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(e){"string"==typeof e&&(t.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e="/"+t}})};c(j,P);var H=function(){j.call(this),this.pushButton=!0};c(H,j);var V=function(){j.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=void 0!==t?t:[]}})};c(V,j);var K=function(){var e,t;P.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(e){t=e}});var r,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e,t=[];for(e in t.push("<<"),n)t.push("/"+e+" ("+n[e]+")");return t.push(">>"),t.join("\n")},set:function(e){"object"===a(e)&&(n=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(e){"string"==typeof e&&(n.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(e){r=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(e){r="/"+e}}),this.optionName=name,this.caption="l",this.appearanceState="Off",this._AppearanceType=Y.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(name)};c(K,P),V.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var r=this.Kids[t];r.appearanceStreamContent=e.createAppearanceStream(r.optionName),r.caption=e.getCA()}},V.prototype.createOption=function(e){this.Kids.length;var t=new K;return t.Parent=this,t.optionName=e,this.Kids.push(t),X.call(this,t),t};var z=function(){j.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Y.CheckBox.createAppearanceStream()};c(z,j);var W=function(){P.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(this.Ff,13))},set:function(e){!0===Boolean(e)?this.Ff=m(this.Ff,13):this.Ff=v(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(this.Ff,21))},set:function(e){!0===Boolean(e)?this.Ff=m(this.Ff,21):this.Ff=v(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=m(this.Ff,23):this.Ff=v(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(this.Ff,24))},set:function(e){!0===Boolean(e)?this.Ff=m(this.Ff,24):this.Ff=v(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(this.Ff,25))},set:function(e){!0===Boolean(e)?this.Ff=m(this.Ff,25):this.Ff=v(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=m(this.Ff,26):this.Ff=v(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};c(W,P);var G=function(){W.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(this.Ff,14))},set:function(e){!0===Boolean(e)?this.Ff=m(this.Ff,14):this.Ff=v(this.Ff,14)}}),this.password=!0};c(G,W);var Y={CheckBox:{createAppearanceStream:function(){return{N:{On:Y.CheckBox.YesNormal},D:{On:Y.CheckBox.YesPushDown,Off:Y.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=f(e),n=[],a=r.internal.getFont(e.fontName,e.fontStyle).id,i=r.__private__.encodeColorString(e.color),o=y(e,e.caption);return n.push("0.749023 g"),n.push("0 0 "+s(Y.internal.getWidth(e))+" "+s(Y.internal.getHeight(e))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+a+" "+s(o.fontSize)+" Tf "+i),n.push("BT"),n.push(o.text),n.push("ET"),n.push("Q"),n.push("EMC"),t.stream=n.join("\n"),t},YesNormal:function(e){var t=f(e),n=r.internal.getFont(e.fontName,e.fontStyle).id,a=r.__private__.encodeColorString(e.color),i=[],o=Y.internal.getHeight(e),A=Y.internal.getWidth(e),c=y(e,e.caption);return i.push("1 g"),i.push("0 0 "+s(A)+" "+s(o)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+s(A-1)+" "+s(o-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+n+" "+s(c.fontSize)+" Tf "+a),i.push(c.text),i.push("ET"),i.push("Q"),t.stream=i.join("\n"),t},OffPushDown:function(e){var t=f(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+s(Y.internal.getWidth(e))+" "+s(Y.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join("\n"),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:Y.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=Y.RadioButton.Circle.YesNormal,t.D[e]=Y.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=f(e),r=[],n=Y.internal.getWidth(e)<=Y.internal.getHeight(e)?Y.internal.getWidth(e)/4:Y.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var a=Y.internal.Bezier_C,i=Number((n*a).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+A(Y.internal.getWidth(e)/2)+" "+A(Y.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),r.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),r.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),r.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join("\n"),t},YesPushDown:function(e){var t=f(e),r=[],n=Y.internal.getWidth(e)<=Y.internal.getHeight(e)?Y.internal.getWidth(e)/4:Y.internal.getHeight(e)/4,a=(n=Number((.9*n).toFixed(5)),Number((2*n).toFixed(5))),i=Number((a*Y.internal.Bezier_C).toFixed(5)),o=Number((n*Y.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+A(Y.internal.getWidth(e)/2)+" "+A(Y.internal.getHeight(e)/2)+" cm"),r.push(a+" 0 m"),r.push(a+" "+i+" "+i+" "+a+" 0 "+a+" c"),r.push("-"+i+" "+a+" -"+a+" "+i+" -"+a+" 0 c"),r.push("-"+a+" -"+i+" -"+i+" -"+a+" 0 -"+a+" c"),r.push(i+" -"+a+" "+a+" -"+i+" "+a+" 0 c"),r.push("f"),r.push("Q"),r.push("0 g"),r.push("q"),r.push("1 0 0 1 "+A(Y.internal.getWidth(e)/2)+" "+A(Y.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+o+" "+o+" "+n+" 0 "+n+" c"),r.push("-"+o+" "+n+" -"+n+" "+o+" -"+n+" 0 c"),r.push("-"+n+" -"+o+" -"+o+" -"+n+" 0 -"+n+" c"),r.push(o+" -"+n+" "+n+" -"+o+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join("\n"),t},OffPushDown:function(e){var t=f(e),r=[],n=Y.internal.getWidth(e)<=Y.internal.getHeight(e)?Y.internal.getWidth(e)/4:Y.internal.getHeight(e)/4,a=(n=Number((.9*n).toFixed(5)),Number((2*n).toFixed(5))),i=Number((a*Y.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+A(Y.internal.getWidth(e)/2)+" "+A(Y.internal.getHeight(e)/2)+" cm"),r.push(a+" 0 m"),r.push(a+" "+i+" "+i+" "+a+" 0 "+a+" c"),r.push("-"+i+" "+a+" -"+a+" "+i+" -"+a+" 0 c"),r.push("-"+a+" -"+i+" -"+i+" -"+a+" 0 -"+a+" c"),r.push(i+" -"+a+" "+a+" -"+i+" "+a+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join("\n"),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:Y.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=Y.RadioButton.Cross.YesNormal,t.D[e]=Y.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=f(e),r=[],n=Y.internal.calculateCross(e);return r.push("q"),r.push("1 1 "+s(Y.internal.getWidth(e)-2)+" "+s(Y.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(s(n.x1.x)+" "+s(n.x1.y)+" m"),r.push(s(n.x2.x)+" "+s(n.x2.y)+" l"),r.push(s(n.x4.x)+" "+s(n.x4.y)+" m"),r.push(s(n.x3.x)+" "+s(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join("\n"),t},YesPushDown:function(e){var t=f(e),r=Y.internal.calculateCross(e),n=[];return n.push("0.749023 g"),n.push("0 0 "+s(Y.internal.getWidth(e))+" "+s(Y.internal.getHeight(e))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+s(Y.internal.getWidth(e)-2)+" "+s(Y.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(s(r.x1.x)+" "+s(r.x1.y)+" m"),n.push(s(r.x2.x)+" "+s(r.x2.y)+" l"),n.push(s(r.x4.x)+" "+s(r.x4.y)+" m"),n.push(s(r.x3.x)+" "+s(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join("\n"),t},OffPushDown:function(e){var t=f(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+s(Y.internal.getWidth(e))+" "+s(Y.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join("\n"),t}}},createDefaultAppearanceStream:function(e){var t=r.internal.getFont(e.fontName,e.fontStyle).id,n=r.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+n}};Y.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=Y.internal.getWidth(e),r=Y.internal.getHeight(e),n=Math.min(t,r);return{x1:{x:(t-n)/2,y:(r-n)/2+n},x2:{x:(t-n)/2+n,y:(r-n)/2},x3:{x:(t-n)/2,y:(r-n)/2},x4:{x:(t-n)/2+n,y:(r-n)/2+n}}}},Y.internal.getWidth=function(e){var t=0;return"object"===a(e)&&(t=l(e.Rect[2])),t},Y.internal.getHeight=function(e){var t=0;return"object"===a(e)&&(t=l(e.Rect[3])),t};var X=e.addField=function(e){if(I.call(this),!(e instanceof P))throw new Error("Invalid argument passed to jsPDF.addField.");return function(e){r.internal.acroformPlugin.printedOut&&(r.internal.acroformPlugin.printedOut=!1,r.internal.acroformPlugin.acroFormDictionaryRoot=null),r.internal.acroformPlugin.acroFormDictionaryRoot||I.call(r),r.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e)}.call(this,e),e.page=r.internal.getCurrentPageInfo().pageNumber,this};e.addButton=function(e){if(e instanceof j==0)throw new Error("Invalid argument passed to jsPDF.addButton.");return X.call(this,e)},e.addTextField=function(e){if(e instanceof W==0)throw new Error("Invalid argument passed to jsPDF.addTextField.");return X.call(this,e)},e.addChoiceField=function(e){if(e instanceof D==0)throw new Error("Invalid argument passed to jsPDF.addChoiceField.");return X.call(this,e)},"object"==a(t)&&void 0===t.ChoiceField&&void 0===t.ListBox&&void 0===t.ComboBox&&void 0===t.EditBox&&void 0===t.Button&&void 0===t.PushButton&&void 0===t.RadioButton&&void 0===t.CheckBox&&void 0===t.TextField&&void 0===t.PasswordField?(t.ChoiceField=D,t.ListBox=Q,t.ComboBox=R,t.EditBox=M,t.Button=j,t.PushButton=H,t.RadioButton=V,t.CheckBox=z,t.TextField=W,t.PasswordField=G,t.AcroForm={Appearance:Y}):console.warn("AcroForm-Classes are not populated into global-namespace, because the class-Names exist already."),e.AcroFormChoiceField=D,e.AcroFormListBox=Q,e.AcroFormComboBox=R,e.AcroFormEditBox=M,e.AcroFormButton=j,e.AcroFormPushButton=H,e.AcroFormRadioButton=V,e.AcroFormCheckBox=z,e.AcroFormTextField=W,e.AcroFormPasswordField=G,e.AcroFormAppearance=Y,e.AcroForm={ChoiceField:D,ListBox:Q,ComboBox:R,EditBox:M,Button:j,PushButton:H,RadioButton:V,CheckBox:z,TextField:W,PasswordField:G,Appearance:Y}})((window.tmp=de).API,"undefined"!=typeof window&&window||"undefined"!=typeof n&&n),function(e){var t="addImage_",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},n=e.getImageFileTypeByImageData=function(t,n){var a,i;n=n||"UNKNOWN";var o,s,A,c="UNKNOWN";for(A in e.isArrayBufferView(t)&&(t=e.arrayBufferToBinaryString(t)),r)for(o=r[A],a=0;a>"}),"trns"in t&&t.trns.constructor==Array){for(var s="",A=0,c=t.trns.length;A>18]+n[(258048&t)>>12]+n[(4032&t)>>6]+n[63&t];return 1==o?r+=n[(252&(t=a[s]))>>2]+n[(3&t)<<4]+"==":2==o&&(r+=n[(64512&(t=a[s]<<8|a[s+1]))>>10]+n[(1008&t)>>4]+n[(15&t)<<2]+"="),r},e.createImageInfo=function(e,t,r,n,a,i,o,s,A,c,l,u,f){var h={alias:s,w:t,h:r,cs:n,bpc:a,i:o,data:e};return i&&(h.f=i),A&&(h.dp=A),c&&(h.trns=c),l&&(h.pal=l),u&&(h.smask=u),f&&(h.p=f),h},e.addImage=function(r,n,i,f,h,d,p,g,m){var v="";if("string"!=typeof n){var b=d;d=h,h=f,f=i,i=n,n=b}if("object"===a(r)&&!c(r)&&"imageData"in r){var w=r;r=w.imageData,n=w.format||n||"UNKNOWN",i=w.x||i||0,f=w.y||f||0,h=w.w||h,d=w.h||d,p=w.alias||p,g=w.compression||g,m=w.rotation||w.angle||m}var y=this.internal.getFilters();if(void 0===g&&-1!==y.indexOf("FlateEncode")&&(g="SLOW"),"string"==typeof r&&(r=unescape(r)),isNaN(i)||isNaN(f))throw console.error("jsPDF.addImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addImage");var B,C,E,S,x,F,O,_=function(){var e=this.internal.collections[t+"images"];return e||(this.internal.collections[t+"images"]=e={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",s)),e}.call(this);if(!((B=u(r,_))||(c(r)&&(r=l(r,n)),(null==(O=p)||0===O.length)&&(p="string"==typeof(F=r)?e.sHashCode(F):e.isArrayBufferView(F)?e.sHashCode(e.arrayBufferToBinaryString(F)):null),B=u(p,_)))){if(this.isString(r)&&(""!==(v=this.convertStringToImageData(r))||void 0!==(v=e.loadFile(r)))&&(r=v),n=this.getImageFileTypeByImageData(r,n),!A(n))throw new Error("addImage does not support files of type '"+n+"', please ensure that a plugin for '"+n+"' support is added.");if(this.supportsArrayBuffer()&&(r instanceof Uint8Array||(C=r,r=this.binaryStringToUint8Array(r))),!(B=this["process"+n.toUpperCase()](r,(x=0,(S=_)&&(x=Object.keys?Object.keys(S).length:function(e){var t=0;for(var r in e)e.hasOwnProperty(r)&&t++;return t}(S)),x),p,((E=g)&&"string"==typeof E&&(E=E.toUpperCase()),E in e.image_compression?E:e.image_compression.NONE),C)))throw new Error("An unknown error occurred whilst processing the image")}return function(e,t,r,n,a,i,o,s){var A=function(e,t,r){return e||t||(t=e=-96),e<0&&(e=-1*r.w*72/e/this.internal.scaleFactor),t<0&&(t=-1*r.h*72/t/this.internal.scaleFactor),0===e&&(e=t*r.w/r.h),0===t&&(t=e*r.h/r.w),[e,t]}.call(this,r,n,a),c=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString;if(r=A[0],n=A[1],o[i]=a,s){s*=Math.PI/180;var u=Math.cos(s),f=Math.sin(s),h=function(e){return e.toFixed(4)},d=[h(u),h(f),h(-1*f),h(u),0,0,"cm"]}this.internal.write("q"),s?(this.internal.write([1,"0","0",1,c(e),l(t+n),"cm"].join(" ")),this.internal.write(d.join(" ")),this.internal.write([c(r),"0","0",c(n),"0","0","cm"].join(" "))):this.internal.write([c(r),"0","0",c(n),c(e),l(t+n),"cm"].join(" ")),this.internal.write("/I"+a.i+" Do"),this.internal.write("Q")}.call(this,i,f,h,d,B,B.i,_,m),this},e.convertStringToImageData=function(t){var r,n="";if(this.isString(t)){var a;r=null!==(a=this.extractImageFromDataUrl(t))?a.data:t;try{n=atob(r)}catch(t){throw e.validateStringAsBase64(r)?new Error("atob-Error in jsPDF.convertStringToImageData "+t.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertStringToImageData ")}}return n};var f=function(e,t){return e.subarray(t,t+5)};e.processJPEG=function(e,t,r,a,i,o){var s,A=this.decode.DCT_DECODE;if(!this.isString(e)&&!this.isArrayBuffer(e)&&!this.isArrayBufferView(e))return null;if(this.isString(e)&&(s=function(e){var t;if("JPEG"!==n(e))throw new Error("getJpegSize requires a binary string jpeg file");for(var r=256*e.charCodeAt(4)+e.charCodeAt(5),a=4,i=e.length;a>",c.content=g;var f=c.objId+" 0 R";g="<>";else if(A.options.pageNumber)switch(g="<>",this.internal.write(g))}}this.internal.write("]")}}]),o.createAnnotation=function(e){var t=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":t.pageContext.annotations.push(e)}},o.link=function(e,t,r,n,a){this.internal.getCurrentPageInfo().pageContext.annotations.push({x:e,y:t,w:r,h:n,options:a,type:"link"})},o.textWithLink=function(e,t,r,n){var a=this.getTextWidth(e),i=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(e,t,r),r+=.2*i,this.link(t,r-i,a,i,n),a},o.getTextWidth=function(e){var t=this.internal.getFontSize();return this.getStringUnitWidth(e)*t/this.internal.scaleFactor},function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},r={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},n={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},a=[1570,1571,1573,1575];e.__arabicParser__={};var i=e.__arabicParser__.isInArabicSubstitutionA=function(e){return void 0!==t[e.charCodeAt(0)]},o=e.__arabicParser__.isArabicLetter=function(e){return"string"==typeof e&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(e)},s=e.__arabicParser__.isArabicEndLetter=function(e){return o(e)&&i(e)&&t[e.charCodeAt(0)].length<=2},A=e.__arabicParser__.isArabicAlfLetter=function(e){return o(e)&&0<=a.indexOf(e.charCodeAt(0))},c=(e.__arabicParser__.arabicLetterHasIsolatedForm=function(e){return o(e)&&i(e)&&1<=t[e.charCodeAt(0)].length},e.__arabicParser__.arabicLetterHasFinalForm=function(e){return o(e)&&i(e)&&2<=t[e.charCodeAt(0)].length}),l=(e.__arabicParser__.arabicLetterHasInitialForm=function(e){return o(e)&&i(e)&&3<=t[e.charCodeAt(0)].length},e.__arabicParser__.arabicLetterHasMedialForm=function(e){return o(e)&&i(e)&&4==t[e.charCodeAt(0)].length}),u=e.__arabicParser__.resolveLigatures=function(e){var t=0,n=r,a=0,i="",o=0;for(t=0;t>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+t+" 0 R")}))}return this},s=de.API,(A=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(t){e=t}});var t=150;Object.defineProperty(this,"width",{get:function(){return t},set:function(e){t=isNaN(e)||!1===Number.isInteger(e)||e<0?150:e,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=t+1)}});var r=300;Object.defineProperty(this,"height",{get:function(){return r},set:function(e){r=isNaN(e)||!1===Number.isInteger(e)||e<0?300:e,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=r+1)}});var n=[];Object.defineProperty(this,"childNodes",{get:function(){return n},set:function(e){n=e}});var a={};Object.defineProperty(this,"style",{get:function(){return a},set:function(e){a=e}}),Object.defineProperty(this,"parentNode",{get:function(){return!1}})}).prototype.getContext=function(e,t){var r;if("2d"!==(e=e||"2d"))return null;for(r in t)this.pdf.context2d.hasOwnProperty(r)&&(this.pdf.context2d[r]=t[r]);return(this.pdf.context2d._canvas=this).pdf.context2d},A.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},s.events.push(["initialized",function(){this.canvas=new A,this.canvas.pdf=this}]),c=de.API,u={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},f=1,h=function(e,t,r,n,a){u={x:e,y:t,w:r,h:n,ln:a}},d=function(){return u},p={left:0,top:0,bottom:0},c.setHeaderFunction=function(e){l=e},c.getTextDimensions=function(e,t){var r=this.table_font_size||this.internal.getFontSize(),n=(this.internal.getFont().fontStyle,(t=t||{}).scaleFactor||this.internal.scaleFactor),a=0,i=0,o=0;if("string"==typeof e)0!=(a=this.getStringUnitWidth(e)*r)&&(i=1);else{if("[object Array]"!==Object.prototype.toString.call(e))throw new Error("getTextDimensions expects text-parameter to be of type String or an Array of Strings.");for(var s=0;s=this.internal.pageSize.getHeight()-c.bottom&&(this.cellAddPage(),A=!0,this.printHeaders&&this.tableHeaderRow&&this.printHeaderRow(i,!0)),t=d().y+d().h,A&&(t=23)}if(void 0!==a[0])if(this.printingHeaderRow?this.rect(e,t,r,n,"FD"):this.rect(e,t,r,n),"right"===o){a instanceof Array||(a=[a]);for(var l=0;l=2*Math.PI&&(n=0,a=2*Math.PI),this.path.push({type:"arc",x:e,y:t,radius:r,startAngle:n,endAngle:a,counterclockwise:i})},c.prototype.arcTo=function(e,t,r,n,a){throw new Error("arcTo not implemented.")},c.prototype.rect=function(e,t,r,n){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n))throw console.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(e,t),this.lineTo(e+r,t),this.lineTo(e+r,t+n),this.lineTo(e,t+n),this.lineTo(e,t),this.lineTo(e+r,t),this.lineTo(e,t)},c.prototype.fillRect=function(e,t,r,n){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n))throw console.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!u.call(this)){var a={};"butt"!==this.lineCap&&(a.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(a.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(e,t,r,n),this.fill(),a.hasOwnProperty("lineCap")&&(this.lineCap=a.lineCap),a.hasOwnProperty("lineJoin")&&(this.lineJoin=a.lineJoin)}},c.prototype.strokeRect=function(e,t,r,n){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n))throw console.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");f.call(this)||(this.beginPath(),this.rect(e,t,r,n),this.stroke())},c.prototype.clearRect=function(e,t,r,n){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n))throw console.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(e,t,r,n))},c.prototype.save=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,r=0;r"},v=function(e){var t,r,n,a,i,o=String,s="length",A="charCodeAt",c="slice",l="replace";for(e[c](-2),e=e[c](0,-2)[l](/\s/g,"")[l]("z","!!!!!"),n=[],a=0,i=(e+=t="uuuuu"[c](e[s]%5||5))[s];a>24,255&r>>16,255&r>>8,255&r);return function(e,r){for(var n=t[s];0"},w=function(e){var t=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(e=e.replace(/\s/g,"")).indexOf(">")&&(e=e.substr(0,e.indexOf(">"))),e.length%2&&(e+="0"),!1===t.test(e))return"";for(var r="",n=0;n>8&255,r>>16&255,r>>24&255]),e.length+2),String.fromCharCode.apply(null,a)},g.processDataByFilters=function(e,t){var r=0,n=e||"",a=[];for("string"==typeof(t=t||[])&&(t=[t]),r=0;r>"),this.internal.out("endobj"),_=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+I+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==O&&void 0!==_&&this.internal.out("/Names <>")})),this},(k=de.API).events.push(["postPutResources",function(){var e=this,t=/^(\d+) 0 obj$/;if(0> endobj")}var u=e.internal.newObject();for(e.internal.write("<< /Names [ "),n=0;n>","endobj"),e.internal.newObject(),e.internal.write("<< /Dests "+u+" 0 R"),e.internal.write(">>","endobj")}}]),k.events.push(["putCatalog",function(){0> \r\nendobj\r\n"},e.outline.count_r=function(e,t){for(var r=0;r>>24&255,f[u++]=s>>>16&255,f[u++]=s>>>8&255,f[u++]=255&s,N.arrayBufferToBinaryString(f)},L=function(e,t){var r=Math.LOG2E*Math.log(32768)-8<<4|8,n=r<<8;return n|=Math.min(3,(t-1&255)>>1)<<6,n|=0,[r,255&(n+=31-n%31)]},P=function(e,t){for(var r,n=1,a=0,i=e.length,o=0;0>>0},D=function(e,t,r,n){for(var a,i,o,s=e.length/t,A=new Uint8Array(e.length+s),c=K(),l=0;l>>1)&255;return i},H=function(e,t,r){var n,a,i,o,s=[],A=0,c=e.length;for(s[0]=4;A>>d&255,d+=i.bits;m[b]=y>>>d&255}if(16===i.bits){p=(x=new Uint32Array(i.decodePixels().buffer)).length,g=new Uint8Array(p*(32/i.pixelBitlength)*i.colors),m=new Uint8Array(p*(32/i.pixelBitlength));for(var y,B=1>>0&255,B&&(g[w++]=y>>>16&255,y=x[b++],g[w++]=y>>>0&255),m[C++]=y>>>16&255;h=8}n!==N.image_compression.NONE&&T()?(e=U(g,i.width*i.colors,i.colors,n),l=U(m,i.width,1,n)):(e=g,l=m,f=null)}if(3===i.colorType&&(u=this.color_spaces.INDEXED,c=i.palette,i.transparency.indexed)){var E=i.transparency.indexed,S=0;for(b=0,p=E.length;bn&&(a.push(e.slice(A,i)),s=0,A=i),s+=t[i],i++;return A!==i&&a.push(e.slice(A,i)),a},ee=function(e,t,r){r||(r={});var n,a,i,o,s,A,c=[],l=[c],u=r.textIndent||0,f=0,h=0,d=e.split(" "),p=q.apply(this,[" ",r])[0];if(A=-1===r.lineIndent?d[0].length+2:r.lineIndent||0){var g=Array(A).join(" "),m=[];d.map((function(e){1<(e=e.split(/\s*\n/)).length?m=m.concat(e.map((function(e,t){return(t&&e.length?"\n":"")+e}))):m.push(e[0])})),d=m,A=Z.apply(this,[g,r])}for(i=0,o=d.length;i>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=r,this},Ae=de.API,ue=le=ce="",Ae.addMetadata=function(e,t){return le=t||"http://jspdf.default.namespaceuri/",ce=e,this.internal.events.subscribe("postPutResources",(function(){if(ce){var e='',t=unescape(encodeURIComponent('')),r=unescape(encodeURIComponent(e)),n=unescape(encodeURIComponent(ce)),a=unescape(encodeURIComponent("")),i=unescape(encodeURIComponent("")),o=r.length+n.length+a.length+t.length+i.length;ue=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+o+" >>"),this.internal.write("stream"),this.internal.write(t+r+n+a+i),this.internal.write("endstream"),this.internal.write("endobj")}else ue=""})),this.internal.events.subscribe("putCatalog",(function(){ue&&this.internal.write("/Metadata "+ue+" 0 R")})),this},function(e,t){var r=e.API,n=r.pdfEscape16=function(e,t){for(var r,n=t.metadata.Unicode.widths,a=["","0","00","000","0000"],i=[""],o=0,s=e.length;o<"+a+">");return n.length&&(i+="\n"+n.length+" beginbfchar\n"+n.join("\n")+"\nendbfchar\n"),i+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};r.events.push(["putFont",function(t){!function(t,r,n,i){if(t.metadata instanceof e.API.TTFFont&&"Identity-H"===t.encoding){for(var o=t.metadata.Unicode.widths,s=t.metadata.subset.encode(t.metadata.glyIdsUsed,1),A="",c=0;c>"),r("endobj");var h=n();r("<<"),r("/Type /Font"),r("/BaseFont /"+t.fontName),r("/FontDescriptor "+f+" 0 R"),r("/W "+e.API.PDFObject.convert(o)),r("/CIDToGIDMap /Identity"),r("/DW 1000"),r("/Subtype /CIDFontType2"),r("/CIDSystemInfo"),r("<<"),r("/Supplement 0"),r("/Registry (Adobe)"),r("/Ordering ("+t.encoding+")"),r(">>"),r(">>"),r("endobj"),t.objectNumber=n(),r("<<"),r("/Type /Font"),r("/Subtype /Type0"),r("/ToUnicode "+u+" 0 R"),r("/BaseFont /"+t.fontName),r("/Encoding /"+t.encoding),r("/DescendantFonts ["+h+" 0 R]"),r(">>"),r("endobj"),t.isAlreadyPutted=!0}}(t.font,t.out,t.newObject,t.putStream)}]),r.events.push(["putFont",function(t){!function(t,r,n,i){if(t.metadata instanceof e.API.TTFFont&&"WinAnsiEncoding"===t.encoding){t.metadata.Unicode.widths;for(var o=t.metadata.rawData,s="",A=0;A>"),r("endobj"),t.objectNumber=n(),A=0;A>"),r("endobj"),t.isAlreadyPutted=!0}}(t.font,t.out,t.newObject,t.putStream)}]);var i=function(e){var t,r,a=e.text||"",i=e.x,o=e.y,s=e.options||{},A=e.mutex||{},c=A.pdfEscape,l=A.activeFontKey,u=A.fonts,f=(A.activeFontSize,""),h=0,d="",p=u[r=l].encoding;if("Identity-H"!==u[r].encoding)return{text:a,x:i,y:o,options:s,mutex:A};for(d=a,r=l,"[object Array]"===Object.prototype.toString.call(a)&&(d=a[0]),h=0;hA-c.top-c.bottom&&n.pagesplit){var d=function(e,t,r,a,i){var o=document.createElement("canvas");o.height=i,o.width=a;var s=o.getContext("2d");return s.mozImageSmoothingEnabled=!1,s.webkitImageSmoothingEnabled=!1,s.msImageSmoothingEnabled=!1,s.imageSmoothingEnabled=!1,s.fillStyle=n.backgroundColor||"#ffffff",s.fillRect(0,0,a,i),s.drawImage(e,t,r,a,i,0,0,a,i),o},p=function(){for(var n,i,l=0,p=0,g={},m=!1;;){var v;if(p=0,g.top=0!==l?c.top:r,g.left=0!==l?c.left:t,m=(s-c.left-c.right)*o=e.width)break;this.addPage()}else b=[v=d(e,0,l,n,i),g.left,g.top,v.width/o,v.height/o,f,null,h],this.addImage.apply(this,b);if((l+=i)>=e.height)break;this.addPage()}a(u,l,null,b)}.bind(this);if("CANVAS"===e.nodeName){var g=new Image;g.onload=p,g.src=e.toDataURL("image/png"),e=g}else p()}else{var m=Math.random().toString(35),v=[e,t,r,u,l,f,m,h];this.addImage.apply(this,v),a(u,l,m,v)}}.bind(this),"undefined"!=typeof html2canvas&&!n.rstz)return html2canvas(e,n);if("undefined"==typeof rasterizeHTML)return null;var c="drawDocument";return"string"==typeof e&&(c=/^http/.test(e)?"drawURL":"drawHTML"),n.width=n.width||s*o,rasterizeHTML[c](e,void 0,n).then((function(e){n.onrendered(e.image)}),(function(e){a(null,e)}))},function(e){var t,r,n,i,o,s,A,c,l,u,f,h,d,p,g,m,v,b,w,y;t=function(){return function(t){return e.prototype=t,new e};function e(){}}(),u=function(e){var t,r,n,a,i,o,s;for(r=0,n=e.length,t=void 0,o=a=!1;!a&&r!==n;)(t=e[r]=e[r].trimLeft())&&(a=!0),r++;for(r=n-1;n&&!o&&-1!==r;)(t=e[r]=e[r].trimRight())&&(o=!0),r--;for(i=/\s+$/g,s=!0,r=0;r!==n;)"\u2028"!=e[r]&&(t=e[r].replace(/\s+/g," "),s&&(t=t.trimLeft()),t&&(s=i.test(t)),e[r]=t),r++;return e},h=function(e){var t,r,a;for(t=void 0,r=(a=e.split(",")).shift();!t&&r;)t=n[r.trim().toLowerCase()],r=a.shift();return t},d=function(e){var t;return-1<(e="auto"===e?"0px":e).indexOf("em")&&!isNaN(Number(e.replace("em","")))&&(e=18.719*Number(e.replace("em",""))+"px"),-1n.pdf.margins_doc.top&&(n.pdf.addPage(),n.y=n.pdf.margins_doc.top,n.executeWatchFunctions(o));var _=l(o),I=n.x,k=12/n.pdf.internal.scaleFactor,N=(_["margin-left"]+_["padding-left"])*k,T=(_["margin-right"]+_["padding-right"])*k,U=(_["margin-top"]+_["padding-top"])*k,L=(_["margin-bottom"]+_["padding-bottom"])*k;void 0!==_.float&&"right"===_.float?I+=n.settings.width-o.width-T:I+=N,n.pdf.addImage(F,I,n.y+U,o.width,o.height),F=void 0,"right"===_.float||"left"===_.float?(n.watchFunctions.push(function(e,t,r,a){return n.y>=t?(n.x+=e,n.settings.width+=r,!0):!!(a&&1===a.nodeType&&!B[a.nodeName]&&n.x+a.width>n.pdf.margins_doc.left+n.pdf.margins_doc.width)&&(n.x+=e,n.y=t,n.settings.width+=r,!0)}.bind(this,"left"===_.float?-o.width-N-T:0,n.y+o.height+U+L,o.width)),n.watchFunctions.push(function(e,t,r){return!(n.y]*?>/gi,""),l="jsPDFhtmlText"+Date.now().toString()+(1e3*Math.random()).toFixed(0),(c=document.createElement("div")).style.cssText="position: absolute !important;clip: rect(1px 1px 1px 1px); /* IE6, IE7 */clip: rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height: 1px !important;width: 1px !important; top:auto;left:-100px;overflow: hidden;",c.innerHTML='