(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+W7E":function(t,e,n){"use strict";var r=n("Q1FS"),i=n("mbIT"),o=n("pshJ"),s=n("q3Kh");e.fromEventPattern=function t(e,n,a){return a?t(e,n).pipe(s.map(function(t){return i.isArray(t)?a.apply(void 0,t):a(t)})):new r.Observable(function(t){var r,i=function(){for(var e=[],n=0;nthis._bufferSize&&n.shift(),t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this._events.push(new c(this._getNow(),e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new u.ObjectUnsubscribedError;if(this.isStopped||this.hasError?e=s.Subscription.EMPTY:(this.observers.push(t),e=new l.SubjectSubscription(this,t)),i&&t.add(t=new a.ObserveOnSubscriber(t,i)),n)for(var c=0;ce&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r},e}(i.Subject);var c=function(){return function(t,e){this.time=t,this.value=e}}()},"+vT+":function(t,e,n){var r=n("mrSG").__extends,i=n("MC6w"),o=n("24jU"),s=n("Y4kR"),a=n("cSoz");e.audit=function(t){return function(e){return e.lift(new u(t))}};var u=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.durationSelector))},t}(),l=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r}return r(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=i.tryCatch(this.durationSelector)(t);if(e===o.errorObject)this.destination.error(o.errorObject.e);else{var n=a.subscribeToResult(this,e);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},e.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))},e.prototype.notifyNext=function(t,e,n,r){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(s.OuterSubscriber)},"/JYr":function(t,e,n){var r=n("mrSG").__extends,i=n("Y4kR"),o=n("Vi6O"),s=n("cSoz"),a=n("q3Kh"),u=n("gTqA");e.exhaustMap=function t(e,n){return n?function(r){return r.pipe(t(function(t,r){return u.from(e(t,r)).pipe(a.map(function(e,i){return n(t,e,r,i)}))}))}:function(t){return t.lift(new l(e))}};var l=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.project))},t}(),c=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}return r(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.hasSubscription=!0,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=new o.InnerSubscriber(this,void 0,void 0);this.destination.add(r),s.subscribeToResult(this,t,e,n,r)},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(i.OuterSubscriber)},0:function(t,e,n){t.exports=n("zUnb")},"067Y":function(t,e,n){var r=n("mrSG").__extends,i=n("ds6q"),o=n("1pIY"),s=n("FWf1"),a=n("p0+S"),u=n("nzqU");e.windowTime=function(t){var e=o.async,n=null,r=Number.POSITIVE_INFINITY;return u.isScheduler(arguments[3])&&(e=arguments[3]),u.isScheduler(arguments[2])?e=arguments[2]:a.isNumeric(arguments[2])&&(r=arguments[2]),u.isScheduler(arguments[1])?e=arguments[1]:a.isNumeric(arguments[1])&&(n=arguments[1]),function(i){return i.lift(new l(t,n,r,e))}};var l=function(){function t(t,e,n,r){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._numberOfNextedValues=0,e}return r(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(i.Subject),h=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;s.destination=e,s.windowTimeSpan=n,s.windowCreationInterval=r,s.maxWindowSize=i,s.scheduler=o,s.windows=[];var a=s.openWindow();if(null!==r&&r>=0){var u={windowTimeSpan:n,windowCreationInterval:r,subscriber:s,scheduler:o};s.add(o.schedule(d,n,{subscriber:s,window:a,context:null})),s.add(o.schedule(p,r,u))}else s.add(o.schedule(f,n,{subscriber:s,window:a,windowTimeSpan:n}));return s}return r(e,t),e.prototype._next=function(t){for(var e=this.windows,n=e.length,r=0;r=this.maxWindowSize&&this.closeWindow(i))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new c;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},e}(s.Subscriber);function f(t){var e=t.subscriber,n=t.windowTimeSpan,r=t.window;r&&e.closeWindow(r),t.window=e.openWindow(),this.schedule(t,n)}function p(t){var e=t.windowTimeSpan,n=t.subscriber,r=t.scheduler,i=t.windowCreationInterval,o=n.openWindow(),s={action:this,subscription:null};s.subscription=r.schedule(d,e,{subscriber:n,window:o,context:s}),this.add(s.subscription),this.schedule(t,i)}function d(t){var e=t.subscriber,n=t.window,r=t.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),e.closeWindow(n)}},"0BvR":function(t,e,n){"use strict";var r=n("1pIY"),i=n("+vT+"),o=n("eJ3O");e.auditTime=function(t,e){return void 0===e&&(e=r.async),i.audit(function(){return o.timer(t,e)})}},"0FX9":function(t,e,n){var r=n("Z92M"),i=n("qmMu"),o=n("QUaw"),s=n("QAZZ");function a(t,e,n,o,s){var a=[].slice.call(arguments,1),u=a.length,l="function"==typeof a[u-1];if(!l&&!r())throw new Error("Callback required as last argument");if(!l){if(u<1)throw new Error("Too few arguments provided");return 1===u?(n=e,e=o=void 0):2!==u||e.getContext||(o=n,n=e,e=void 0),new Promise(function(r,s){try{var a=i.create(n,o);r(t(a,e,o))}catch(u){s(u)}})}if(u<2)throw new Error("Too few arguments provided");2===u?(s=n,n=e,e=o=void 0):3===u&&(e.getContext&&void 0===s?(s=o,o=void 0):(s=o,o=n,n=e,e=void 0));try{var c=i.create(n,o);s(null,t(c,e,o))}catch(h){s(h)}}e.create=i.create,e.toCanvas=a.bind(null,o.render),e.toDataURL=a.bind(null,o.renderToDataURL),e.toString=a.bind(null,function(t,e,n){return s.render(t,n)})},"0alx":function(t,e,n){"use strict";var r=n("VKeD");e.isIterable=function(t){return t&&"function"==typeof t[r.iterator]}},"0z0v":function(t,e,n){"use strict";function r(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}r.prototype=Object.create(Error.prototype),e.EmptyError=r},"1VEF":function(t,e,n){var r=n("mrSG").__extends,i=n("Y4kR"),o=n("Vi6O"),s=n("cSoz");e.skipUntil=function(t){return function(e){return e.lift(new a(t))}};var a=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.notifier))},t}(),u=function(t){function e(e,n){var r=t.call(this,e)||this;r.hasValue=!1;var i=new o.InnerSubscriber(r,void 0,void 0);return r.add(i),r.innerSubscription=i,s.subscribeToResult(r,n,void 0,void 0,i),r}return r(e,t),e.prototype._next=function(e){this.hasValue&&t.prototype._next.call(this,e)},e.prototype.notifyNext=function(t,e,n,r,i){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},e.prototype.notifyComplete=function(){},e}(i.OuterSubscriber)},"1Z+e":function(t,e,n){var r=n("mrSG").__extends,i=n("FWf1");e.defaultIfEmpty=function(t){return void 0===t&&(t=null),function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.defaultValue))},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.defaultValue=n,r.isEmpty=!0,r}return r(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(i.Subscriber)},"1pIY":function(t,e,n){"use strict";var r=n("2tF/");e.async=new(n("NTcF").AsyncScheduler)(r.AsyncAction)},"1sBl":function(t,e,n){var r=n("e/Dd").getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];for(var e=Math.floor(t/7)+2,n=r(t),i=145===n?26:2*Math.ceil((n-13)/(2*e-2)),o=[n-7],s=1;s0){var s=o.indexOf(n);-1!==s&&o.splice(s,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(i.OuterSubscriber)},"2tF/":function(t,e,n){var r=n("mrSG").__extends;e.AsyncAction=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return r(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(n("Dz+M").Action)},"3/+b":function(t,e,n){var r=n("mrSG").__extends,i=n("Y4kR"),o=n("cSoz");e.debounce=function(t){return function(e){return e.lift(new s(t))}};var s=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.durationSelector))},t}(),a=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r.durationSubscription=null,r}return r(e,t),e.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(n){this.destination.error(n)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,e){var n=this.durationSubscription;this.value=t,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=o.subscribeToResult(this,e))&&!n.closed&&this.add(this.durationSubscription=n)},e.prototype.notifyNext=function(t,e,n,r,i){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var e=this.value,n=this.durationSubscription;n&&(this.durationSubscription=null,n.unsubscribe(),this.remove(n)),this.value=null,this.hasValue=!1,t.prototype._next.call(this,e)}},e}(i.OuterSubscriber)},"3X7Y":function(t,e,n){var r=n("u/Db");function i(t){this.mode=r.NUMERIC,this.data=t.toString()}i.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){var e,n,r;for(e=0;e+3<=this.data.length;e+=3)n=this.data.substr(e,3),r=parseInt(n,10),t.put(r,10);var i=this.data.length-e;i>0&&(n=this.data.substr(e),r=parseInt(n,10),t.put(r,3*i+1))},t.exports=i},"3n9G":function(t,e,n){"use strict";var r=n("1pIY"),i=n("zk/k"),o=n("Vf9T"),s=n("vLqr");e.timeout=function(t,e){return void 0===e&&(e=r.async),o.timeoutWith(t,s.throwError(new i.TimeoutError),e)}},"44p1":function(t,e,n){var r=n("mrSG").__extends,i=n("FWf1"),o=n("zB/H");e.finalize=function(t){return function(e){return e.lift(new s(t))}};var s=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.callback))},t}(),a=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new o.Subscription(n)),r}return r(e,t),e}(i.Subscriber)},"4ik+":function(t,e,n){var r=n("mrSG").__extends,i=n("FWf1");e.filter=function(t,e){return function(n){return n.lift(new o(t,e))}};var o=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return r(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)},e}(i.Subscriber)},"4mvG":function(t,e,n){var r=n("mrSG").__extends,i=n("FWf1");e.refCount=function(){return function(t){return t.lift(new o(t))}};var o=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new s(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(i.Subscriber)},"4xzy":function(t,e,n){"use strict";var r=n("P+eR");e.subscribeOn=function(t,e){return void 0===e&&(e=0),function(n){return n.lift(new i(t,e))}};var i=function(){function t(t,e){this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return new r.SubscribeOnObservable(e,this.delay,this.scheduler).subscribe(t)},t}()},"5Qfn":function(t,e,n){"use strict";var r=n("b/k1"),i=n("aJGj");e.iif=function(t,e,n){return void 0===e&&(e=i.EMPTY),void 0===n&&(n=i.EMPTY),r.defer(function(){return t()?e:n})}},"5RHE":function(t,e,n){var r,i;t.exports=function(){"use strict";var o,s,a,u,l,c,h,f,p,d,g,m,v,y,b,w,_,x,C,S,E,k,T,O,I,A,P,R,j,N,D,M,F,V,B,U,L,q,z,H,W,G,Y,Z,K,Q,J,X,$,tt,et,nt,rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},it=function(i){var o="1.3",s={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};function a(t){var e={};this.subscribe=function(t,n,r){if("function"!=typeof n)return!1;e.hasOwnProperty(t)||(e[t]={});var i=Math.random().toString(35);return e[t][i]=[n,!!r],i},this.unsubscribe=function(t){for(var n in e)if(e[n][t])return delete e[n][t],!0;return!1},this.publish=function(n){if(e.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),o=[];for(var s in e[n]){var a=e[n][s];try{a[0].apply(t,r)}catch(n){i.console&&console.error("jsPDF PubSub Error",n.message,n)}a[1]&&o.push(s)}o.length&&o.forEach(this.unsubscribe)}}}function u(t,e,n,r){var l={};"object"===(void 0===t?"undefined":rt(t))&&(t=(l=t).orientation,e=l.unit||e,n=l.format||n,r=l.compress||l.compressPdf||r),e=e||"mm",n=n||"a4",t=(""+(t||"P")).toLowerCase(),(""+n).toLowerCase();var c,h,f,p,d,g,m,v,y,b,w,_=!!r&&"function"==typeof Uint8Array,x=l.textColor||"0 g",C=l.drawColor||"0 G",S=l.fontSize||16,E=l.charSpace||0,k=l.R2L||!1,T=l.lineHeight||1.15,O=l.lineWidth||.200025,I="00000000000000000000000000000000",A=2,P=!1,R=[],j={},N={},D=0,M=[],F=[],V=[],B=[],U=[],L=0,q=0,z=0,H={title:"",subject:"",author:"",keywords:"",creator:""},W={},G=new a(W),Y=l.hotfixes||[],Z=function(t){var e,n=t.ch1,r=t.ch2,i=t.ch3,o=t.ch4,s="draw"===t.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof n&&"#"!==n.charAt(0)){var a=new RGBColor(n);a.ok&&(n=a.toHex())}if("string"==typeof n&&/^#[0-9A-Fa-f]{3}$/.test(n)&&(n="#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),"string"==typeof n&&/^#[0-9A-Fa-f]{6}$/.test(n)){var u=parseInt(n.substr(1),16);n=u>>16&255,r=u>>8&255,i=255&u}if(void 0===r||void 0===o&&n===r&&r===i)if("string"==typeof n)e=n+" "+s[0];else switch(t.precision){case 2:e=X(n/255)+" "+s[0];break;case 3:default:e=$(n/255)+" "+s[0]}else if(void 0===o||"object"===(void 0===o?"undefined":rt(o))){if("string"==typeof n)e=[n,r,i,s[1]].join(" ");else switch(t.precision){case 2:e=[X(n/255),X(r/255),X(i/255),s[1]].join(" ");break;default:case 3:e=[$(n/255),$(r/255),$(i/255),s[1]].join(" ")}o&&0===o.a&&(e=["255","255","255",s[1]].join(" "))}else if("string"==typeof n)e=[n,r,i,o,s[2]].join(" ");else switch(t.precision){case 2:e=[X(n),X(r),X(i),X(o),s[2]].join(" ");break;case 3:default:e=[$(n),$(r),$(i),$(o),s[2]].join(" ")}return e},K=function(t){var e=function(t){return("0"+parseInt(t)).slice(-2)},n=t.getTimezoneOffset(),r=n<0?"+":"-",i=Math.floor(Math.abs(n/60)),o=Math.abs(n%60),s=[r,e(i),"'",e(o),"'"].join("");return["D:",t.getFullYear(),e(t.getMonth()+1),e(t.getDate()),e(t.getHours()),e(t.getMinutes()),e(t.getSeconds()),s].join("")},Q=function(t){var e;return void 0===(void 0===t?"undefined":rt(t))&&(t=new Date),e="object"===(void 0===t?"undefined":rt(t))&&"[object Date]"===Object.prototype.toString.call(t)?K(t):/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|\-0[0-9]|\-1[0-1])\'(0[0-9]|[1-5][0-9])\'?$/.test(t)?t:K(new Date),b=e},J=function(t){return t=t||"12345678901234567890123456789012".split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),I=t},X=function(t){return t.toFixed(2)},$=function(t){return t.toFixed(3)},tt=function(t){t="string"==typeof t?t:t.toString(),P?M[p].push(t):(z+=t.length+1,B.push(t))},et=function(){return R[++A]=z,tt(A+" 0 obj"),A},nt=function(t){tt("stream"),tt(t),tt("endstream")},it=function(t,e,n){N.hasOwnProperty(e)||(N[e]={}),N[e][n]=t},ot=function(t,e,n,r){var i="F"+(Object.keys(j).length+1).toString(10),o=j[i]={id:i,postScriptName:t,fontName:e,fontStyle:n,encoding:r,metadata:{}};return it(i,e,n),G.publish("addFont",o),i},st=function(t,e){return function(t,e){var n,r,i,o,s,a,u,l,h;if(i=(e=e||{}).sourceEncoding||"Unicode",s=e.outputEncoding,(e.autoencode||s)&&j[c].metadata&&j[c].metadata[i]&&j[c].metadata[i].encoding&&(o=j[c].metadata[i].encoding,!s&&j[c].encoding&&(s=j[c].encoding),!s&&o.codePages&&(s=o.codePages[0]),"string"==typeof s&&(s=o[s]),s)){for(u=!1,a=[],n=0,r=t.length;n>8&&(u=!0);t=a.join("")}for(n=t.length;void 0===u&&0!==n;)t.charCodeAt(n-1)>>8&&(u=!0),n--;if(!u)return t;for(a=e.noBOM?[]:[254,255],n=0,r=t.length;n>8)>>8)throw new Error("Character at position "+n+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");a.push(h),a.push(l-(h<<8))}return String.fromCharCode.apply(void 0,a)}(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},at=function(){(function(t,e){var n="string"==typeof e&&e.toLowerCase();if("string"==typeof t){var r=t.toLowerCase();s.hasOwnProperty(r)&&(t=s[r][0]/h,e=s[r][1]/h)}if(Array.isArray(t)&&(e=t[1],t=t[0]),n){switch(n.substr(0,1)){case"l":t>"),tt("endobj"),e=M[t].join("\n"),et(),_){for(n=[],r=e.length;r--;)n[r]=e.charCodeAt(r);s=a.from(e),(o=new Deflater(6)).append(new Uint8Array(n)),e=o.flush(),(n=new Uint8Array(e.length+6)).set(new Uint8Array([120,156])),n.set(e,2),n.set(new Uint8Array([255&s,s>>8&255,s>>16&255,s>>24&255]),e.length+2),e=String.fromCharCode.apply(null,n),tt("<>")}else tt("<>");nt(e),tt("endobj")}R[1]=z,tt("1 0 obj"),tt("<>"),tt("endobj"),G.publish("postPutPages")}(),function(){G.publish("putAdditionalObjects");for(var t=0;t>"),tt("endobj")));var e}(),G.publish("putResources"),R[2]=z,tt("2 0 obj"),tt("<<"),function(){for(var t in tt("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),tt("/Font <<"),j)j.hasOwnProperty(t)&&tt("/"+t+" "+j[t].objectNumber+" 0 R");tt(">>"),tt("/XObject <<"),G.publish("putXobjectDict"),tt(">>")}(),tt(">>"),tt("endobj"),G.publish("postPutResources"),et(),tt("<<"),function(){for(var t in tt("/Producer (jsPDF "+u.version+")"),H)H.hasOwnProperty(t)&&H[t]&&tt("/"+t.substr(0,1).toUpperCase()+t.substr(1)+" ("+st(H[t])+")");tt("/CreationDate ("+b+")")}(),tt(">>"),tt("endobj"),et(),tt("<<"),function(){switch(tt("/Type /Catalog"),tt("/Pages 1 0 R"),v||(v="fullwidth"),v){case"fullwidth":tt("/OpenAction [3 0 R /FitH null]");break;case"fullheight":tt("/OpenAction [3 0 R /FitV null]");break;case"fullpage":tt("/OpenAction [3 0 R /Fit]");break;case"original":tt("/OpenAction [3 0 R /XYZ null null 1]");break;default:var t=""+v;"%"===t.substr(t.length-1)&&(v=parseInt(v)/100),"number"==typeof v&&tt("/OpenAction [3 0 R /XYZ null null "+X(v)+"]")}switch(y||(y="continuous"),y){case"continuous":tt("/PageLayout /OneColumn");break;case"single":tt("/PageLayout /SinglePage");break;case"two":case"twoleft":tt("/PageLayout /TwoColumnLeft");break;case"tworight":tt("/PageLayout /TwoColumnRight")}m&&tt("/PageMode /"+m),G.publish("putCatalog")}(),tt(">>"),tt("endobj");var t,e=z,n="0000000000";for(tt("xref"),tt("0 "+(A+1)),tt(n+" 65535 f "),t=1;t<=A;t++)tt("function"==typeof R[t]?(n+R[t]()).slice(-10)+" 00000 n ":(n+R[t]).slice(-10)+" 00000 n ");return tt("trailer"),tt("<<"),tt("/Size "+(A+1)),tt("/Root "+A+" 0 R"),tt("/Info "+(A-1)+" 0 R"),tt("/ID [ <"+I+"> <"+I+"> ]"),tt(">>"),tt("startxref"),tt(""+e),tt("%%EOF"),P=!0,B.join("\n")},ht=function(t){var e="S";return"F"===t?e="f":"FD"===t||"DF"===t?e="B":"f"!==t&&"f*"!==t&&"B"!==t&&"B*"!==t||(e=t),e},ft=function(){for(var t=ct(),e=t.length,n=new ArrayBuffer(e),r=new Uint8Array(n);e--;)r[e]=t.charCodeAt(e);return n},pt=function(){return new Blob([ft()],{type:"application/pdf"})},dt=((w=function(t,e){var n="dataur"===(""+t).substr(0,6)?"data:application/pdf;base64,"+btoa(ct()):0;switch(t){case void 0:return ct();case"save":if("object"===("undefined"==typeof navigator?"undefined":rt(navigator))&&navigator.getUserMedia&&(void 0===i.URL||void 0===i.URL.createObjectURL))return W.output("dataurlnewwindow");_t(pt(),e),"function"==typeof _t.unload&&i.setTimeout&&setTimeout(_t.unload,911);break;case"arraybuffer":return ft();case"blob":return pt();case"bloburi":case"bloburl":return i.URL&&i.URL.createObjectURL(pt())||void 0;case"datauristring":case"dataurlstring":return n;case"dataurlnewwindow":var r=i.open(n);if(r||"undefined"==typeof safari)return r;case"datauri":case"dataurl":return i.document.location.href=n;default:throw new Error('Output type "'+t+'" is not supported.')}}).foo=function(){try{return w.apply(this,arguments)}catch(t){var e=t.stack||"";~e.indexOf(" at ")&&(e=e.split(" at ")[1]);var n="Error in function "+e.split("\n")[0].split("<")[0]+": "+t.message;if(!i.console)throw new Error(n);i.console.error(n,t),i.alert&&alert(n)}},(w.foo.bar=w).foo),gt=function(t){return!0===Array.isArray(Y)&&-1":")")):"[object Array]"===Object.prototype.toString.call(b[K])&&(Q=parseFloat(b[K][1]).toFixed(2),J=parseFloat(b[K][2]).toFixed(2),X=(i?"<":"(")+b[K][0]+(i?">":")"),$=1),void 0!==z&&void 0!==z[K]&&(et=z[K]+" Tw\n"),t.push(0!==I.length&&0===K?et+I.join(" ")+" "+Q+" "+J+" Tm\n"+X:1===$||0===$&&0===K?et+Q+" "+J+" Td\n"+X:et+X);t=t.join(0===$?" Tj\nT* ":" Tj\n"),t+=" Tj\n";var nt="BT\n/"+c+" "+S+" Tf\n"+(S*a).toFixed(2)+" TL\n"+x+"\n";return nt+=s,nt+=t,tt(nt+="ET"),u},W.lstext=function(t,e,n,r){console.warn("jsPDF.lstext is deprecated");for(var i=0,o=t.length;i=o.length-1;if(!x||C){if(x||C){if(C)m=_;else if(t.multiline&&a<(c+2)*(b+2)+2)continue t}else{if(!t.multiline)continue t;if(a<(c+2)*(b+2)+2)continue t;m=_}for(var S="",E=g;E<=m;E++)S+=o[E]+" ";switch(S=" "==S.substr(S.length-1)?S.substr(0,S.length-1):S,v=p(S,s+"px",n).width,t.Q){case 2:f=u-v-2;break;case 1:f=(u-v)/2;break;case 0:default:f=2}e+=f.toFixed(2)+" "+d.toFixed(2)+" Td\n",e+="("+S+") Tj\n",e+=-f.toFixed(2)+" 0 Td\n",d=-(s+2),v=0,g=m+1,b++,y=""}else y+=" "}break}return i.text=e,i.fontSize=s,i},p=function(t,e,r){var i=n.internal.getFont(r=r||"helvetica"),o=n.getStringUnitWidth(t,{font:i,fontSize:parseFloat(e),charSpace:0})*parseFloat(e);return{height:n.getStringUnitWidth("3",{font:i,fontSize:parseFloat(e),charSpace:0})*parseFloat(e)*1.5,width:o}},d={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},g=function(){for(var t in n.internal.acroformPlugin.acroFormDictionaryRoot.Fields){var e=n.internal.acroformPlugin.acroFormDictionaryRoot.Fields[t];e.hasAnnotation&&v.call(n,e)}},m=function(t){n.internal.acroformPlugin.printedOut&&(n.internal.acroformPlugin.printedOut=!1,n.internal.acroformPlugin.acroFormDictionaryRoot=null),n.internal.acroformPlugin.acroFormDictionaryRoot||x.call(n),n.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t)},v=function(t){var e={type:"reference",object:t};n.annotationPlugin.annotations[n.internal.getPageInfo(t.page).pageNumber].push(e)},y=function(){void 0!==n.internal.acroformPlugin.acroFormDictionaryRoot?n.internal.write("/AcroForm "+n.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R"):console.log("Root missing...")},b=function(){n.internal.events.unsubscribe(n.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete n.internal.acroformPlugin.acroFormDictionaryRoot._eventID,n.internal.acroformPlugin.printedOut=!0},w=function(t){var e=!t;for(var r in t||(n.internal.newObjectDeferredBegin(n.internal.acroformPlugin.acroFormDictionaryRoot.objId),n.internal.out(n.internal.acroformPlugin.acroFormDictionaryRoot.getString())),t=t||n.internal.acroformPlugin.acroFormDictionaryRoot.Kids){var i=t[r],o=i.Rect;i.Rect&&(i.Rect=c.call(this,i.Rect)),n.internal.newObjectDeferredBegin(i.objId);var s=i.objId+" 0 obj\n<<\n";if("object"===(void 0===i?"undefined":rt(i))&&"function"==typeof i.getContent&&(s+=i.getContent()),i.Rect=o,i.hasAppearanceStream&&!i.appearanceStreamContent){var a=h.call(this,i);s+="/AP << /N "+a+" >>\n",n.internal.acroformPlugin.xForms.push(a)}if(i.appearanceStreamContent){for(var u in s+="/AP << ",i.appearanceStreamContent){var l=i.appearanceStreamContent[u];if(s+="/"+u+" ",s+="<< ",1<=Object.keys(l).length||Array.isArray(l))for(var r in l){var f;"function"==typeof(f=l[r])&&(f=f.call(this,i)),s+="/"+r+" "+f+" ",0<=n.internal.acroformPlugin.xForms.indexOf(f)||n.internal.acroformPlugin.xForms.push(f)}else"function"==typeof(f=l)&&(f=f.call(this,i)),s+="/"+r+" "+f+" \n",0<=n.internal.acroformPlugin.xForms.indexOf(f)||n.internal.acroformPlugin.xForms.push(f);s+=" >>\n"}s+=">>\n"}n.internal.out(s+=">>\nendobj\n")}e&&_.call(this,n.internal.acroformPlugin.xForms)},_=function(t){for(var e in t){var r=e,i=t[e];n.internal.newObjectDeferredBegin(i&&i.objId);var o="";"object"===(void 0===i?"undefined":rt(i))&&"function"==typeof i.getString&&(o=i.getString()),n.internal.out(o),delete t[r]}},x=function(){if(void 0!==this.internal&&(void 0===this.internal.acroformPlugin||!1===this.internal.acroformPlugin.isInitialized)){if(n=this,O.FieldNum=0,this.internal.acroformPlugin=JSON.parse(JSON.stringify(d)),this.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");i=n.internal.scaleFactor,r=n.internal.pageSize.getHeight(),n.internal.acroformPlugin.acroFormDictionaryRoot=new T,n.internal.acroformPlugin.acroFormDictionaryRoot._eventID=n.internal.events.subscribe("postPutResources",b),n.internal.events.subscribe("buildDocument",g),n.internal.events.subscribe("putCatalog",y),n.internal.events.subscribe("postPutPages",w),n.internal.acroformPlugin.isInitialized=!0}},C=function(t){if(Array.isArray(t)){var e=" [";for(var n in t)e+=t[n].toString(),e+=n>\n",this.stream&&(t+="stream\n",t+=this.stream,t+="\nendstream\n"),t+"endobj\n"},E.prototype.getContent=function(){return""+function(t){var e="",n=Object.keys(t).filter(function(t){return"content"!=t&&"appearanceStreamContent"!=t&&"_"!=t.substring(0,1)});for(var r in n){var i=n[r],o=t[i];o&&(Array.isArray(o)?e+="/"+i+" "+C(o)+"\n":e+=o instanceof E?"/"+i+" "+o.objId+" 0 R\n":"/"+i+" "+o+"\n")}return e}(this)};var k=function(){var t;E.call(this),this.Type="/XObject",this.Subtype="/Form",this.FormType=1,this.Resources="2 0 R",Object.defineProperty(this,"Length",{enumerable:!0,get:function(){return void 0!==t?t.length:0}}),Object.defineProperty(this,"stream",{enumerable:!1,set:function(e){t=e.trim()},get:function(){return t||null}})};o(k,E);var T=function(){E.call(this);var t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return 0>"},YesPushDown:function(t){var e=a(t),r=[],i=n.internal.getFont("zapfdingbats","normal").id;t.Q=1;var o=f(t,"3","ZapfDingbats",50);return r.push("0.749023 g"),r.push("0 0 "+U.internal.getWidth(t).toFixed(2)+" "+U.internal.getHeight(t).toFixed(2)+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+i+" "+o.fontSize.toFixed(2)+" Tf 0 g"),r.push("BT"),r.push(o.text),r.push("ET"),r.push("Q"),r.push("EMC"),e.stream=r.join("\n"),e},YesNormal:function(t){var e=a(t),r=n.internal.getFont("zapfdingbats","normal").id,i=[];t.Q=1;var o=U.internal.getHeight(t),s=U.internal.getWidth(t),u=f(t,"3","ZapfDingbats",.9*o);return i.push("1 g"),i.push("0 0 "+s.toFixed(2)+" "+o.toFixed(2)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+(s-1).toFixed(2)+" "+(o-1).toFixed(2)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+r+" "+u.fontSize.toFixed(2)+" Tf 0 g"),i.push(u.text),i.push("ET"),i.push("Q"),e.stream=i.join("\n"),e},OffPushDown:function(t){var e=a(t),n=[];return n.push("0.749023 g"),n.push("0 0 "+U.internal.getWidth(t).toFixed(2)+" "+U.internal.getHeight(t).toFixed(2)+" re"),n.push("f"),e.stream=n.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:U.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=U.RadioButton.Circle.YesNormal,e.D[t]=U.RadioButton.Circle.YesPushDown,e},createMK:function(){return"<< /CA (l)>>"},YesNormal:function(t){var e=a(t),n=[],r=U.internal.getWidth(t)<=U.internal.getHeight(t)?U.internal.getWidth(t)/4:U.internal.getHeight(t)/4;r*=.9;var i=U.internal.Bezier_C;return n.push("q"),n.push("1 0 0 1 "+U.internal.getWidth(t)/2+" "+U.internal.getHeight(t)/2+" cm"),n.push(r+" 0 m"),n.push(r+" "+r*i+" "+r*i+" "+r+" 0 "+r+" c"),n.push("-"+r*i+" "+r+" -"+r+" "+r*i+" -"+r+" 0 c"),n.push("-"+r+" -"+r*i+" -"+r*i+" -"+r+" 0 -"+r+" c"),n.push(r*i+" -"+r+" "+r+" -"+r*i+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=a(t),n=[],r=U.internal.getWidth(t)<=U.internal.getHeight(t)?U.internal.getWidth(t)/4:U.internal.getHeight(t)/4,i=2*(r*=.9),o=i*U.internal.Bezier_C,s=r*U.internal.Bezier_C;return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+(U.internal.getWidth(t)/2).toFixed(2)+" "+(U.internal.getHeight(t)/2).toFixed(2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+(U.internal.getWidth(t)/2).toFixed(2)+" "+(U.internal.getHeight(t)/2).toFixed(2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+s+" "+s+" "+r+" 0 "+r+" c"),n.push("-"+s+" "+r+" -"+r+" "+s+" -"+r+" 0 c"),n.push("-"+r+" -"+s+" -"+s+" -"+r+" 0 -"+r+" c"),n.push(s+" -"+r+" "+r+" -"+s+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},OffPushDown:function(t){var e=a(t),n=[],r=U.internal.getWidth(t)<=U.internal.getHeight(t)?U.internal.getWidth(t)/4:U.internal.getHeight(t)/4,i=2*(r*=.9),o=i*U.internal.Bezier_C;return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+(U.internal.getWidth(t)/2).toFixed(2)+" "+(U.internal.getHeight(t)/2).toFixed(2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:U.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=U.RadioButton.Cross.YesNormal,e.D[t]=U.RadioButton.Cross.YesPushDown,e},createMK:function(){return"<< /CA (8)>>"},YesNormal:function(t){var e=a(t),n=[],r=U.internal.calculateCross(t);return n.push("q"),n.push("1 1 "+(U.internal.getWidth(t)-2).toFixed(2)+" "+(U.internal.getHeight(t)-2).toFixed(2)+" re"),n.push("W"),n.push("n"),n.push(r.x1.x.toFixed(2)+" "+r.x1.y.toFixed(2)+" m"),n.push(r.x2.x.toFixed(2)+" "+r.x2.y.toFixed(2)+" l"),n.push(r.x4.x.toFixed(2)+" "+r.x4.y.toFixed(2)+" m"),n.push(r.x3.x.toFixed(2)+" "+r.x3.y.toFixed(2)+" l"),n.push("s"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=a(t),n=U.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+U.internal.getWidth(t).toFixed(2)+" "+U.internal.getHeight(t).toFixed(2)+" re"),r.push("f"),r.push("q"),r.push("1 1 "+(U.internal.getWidth(t)-2).toFixed(2)+" "+(U.internal.getHeight(t)-2).toFixed(2)+" re"),r.push("W"),r.push("n"),r.push(n.x1.x.toFixed(2)+" "+n.x1.y.toFixed(2)+" m"),r.push(n.x2.x.toFixed(2)+" "+n.x2.y.toFixed(2)+" l"),r.push(n.x4.x.toFixed(2)+" "+n.x4.y.toFixed(2)+" m"),r.push(n.x3.x.toFixed(2)+" "+n.x3.y.toFixed(2)+" l"),r.push("s"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(t){var e=a(t),n=[];return n.push("0.749023 g"),n.push("0 0 "+U.internal.getWidth(t).toFixed(2)+" "+U.internal.getHeight(t).toFixed(2)+" re"),n.push("f"),e.stream=n.join("\n"),e}}},createDefaultAppearanceStream:function(t){return"/F1 0 Tf 0 g"}};U.internal={Bezier_C:.551915024494,calculateCross:function(t){var e,n,r=U.internal.getWidth(t),i=U.internal.getHeight(t),o=(n=i)<(e=r)?n:e;return{x1:{x:(r-o)/2,y:(i-o)/2+o},x2:{x:(r-o)/2+o,y:(i-o)/2},x3:{x:(r-o)/2,y:(i-o)/2},x4:{x:(r-o)/2+o,y:(i-o)/2+o}}}},U.internal.getWidth=function(t){var e=0;return"object"===(void 0===t?"undefined":rt(t))&&(e=s(t.Rect[2])),e},U.internal.getHeight=function(t){var e=0;return"object"===(void 0===t?"undefined":rt(t))&&(e=s(t.Rect[3])),e},t.addField=function(t){return x.call(this),t instanceof V?this.addTextField.call(this,t):t instanceof I?this.addChoiceField.call(this,t):t instanceof j?this.addButton.call(this,t):t instanceof M?m.call(this,t):t&&m.call(this,t),t.page=n.internal.getCurrentPageInfo().pageNumber,this},t.addButton=function(t){x.call(this);var e=t||new O;e.FT="/Btn",e.Ff=l(e.Ff,t,n.internal.getPDFVersion()),m.call(this,e)},t.addTextField=function(t){x.call(this);var e=t||new O;e.FT="/Tx",e.Ff=l(e.Ff,t,n.internal.getPDFVersion()),m.call(this,e)},t.addChoiceField=function(t){x.call(this);var e=t||new O;e.FT="/Ch",e.Ff=l(e.Ff,t,n.internal.getPDFVersion()),m.call(this,e)},"object"==(void 0===e?"undefined":rt(e))&&(e.ChoiceField=I,e.ListBox=A,e.ComboBox=P,e.EditBox=R,e.Button=j,e.PushButton=N,e.RadioButton=D,e.CheckBox=F,e.TextField=V,e.PasswordField=B,e.AcroForm={Appearance:U}),t.AcroFormChoiceField=I,t.AcroFormListBox=A,t.AcroFormComboBox=P,t.AcroFormEditBox=R,t.AcroFormButton=j,t.AcroFormPushButton=N,t.AcroFormRadioButton=D,t.AcroFormCheckBox=F,t.AcroFormTextField=V,t.AcroFormPasswordField=B,t.AcroForm={ChoiceField:I,ListBox:A,ComboBox:P,EditBox:R,Button:j,PushButton:N,RadioButton:D,CheckBox:F,TextField:V,PasswordField:B}}(it.API,"undefined"!=typeof window&&window||"undefined"!=typeof global&&global),it.API.addHTML=function(t,e,n,r,i){if("undefined"==typeof html2canvas&&"undefined"==typeof rasterizeHTML)throw new Error("You need either https://github.com/niklasvh/html2canvas or https://github.com/cburgmer/rasterizeHTML.js");"number"!=typeof e&&(r=e,i=n),"function"==typeof r&&(i=r,r=null),"function"!=typeof i&&(i=function(){});var o=this.internal,s=o.scaleFactor,a=o.pageSize.getWidth(),u=o.pageSize.getHeight();if((r=r||{}).onrendered=(function(t){e=parseInt(e)||0,n=parseInt(n)||0;var o=r.dim||{},l=Object.assign({top:0,right:0,bottom:0,left:0,useFor:"content"},r.margin),c=o.h||Math.min(u,t.height/s),h=o.w||Math.min(a,t.width/s)-e,f=r.format||"JPEG",p=r.imageCompression||"SLOW";if(t.height>u-l.top-l.bottom&&r.pagesplit){var d=function(t,e,n,i,o){var s=document.createElement("canvas");s.height=o,s.width=i;var a=s.getContext("2d");return a.mozImageSmoothingEnabled=!1,a.webkitImageSmoothingEnabled=!1,a.msImageSmoothingEnabled=!1,a.imageSmoothingEnabled=!1,a.fillStyle=r.backgroundColor||"#ffffff",a.fillRect(0,0,i,o),a.drawImage(t,e,n,i,o,0,0,i,o),s},g=(function(){for(var r,o,c=0,g=0,m={},v=!1;;){var y;if(g=0,m.top=0!==c?l.top:n,m.left=0!==c?l.left:e,v=(a-l.left-l.right)*s=t.width)break;this.addPage()}else b=[y=d(t,0,c,r,o),m.left,m.top,y.width/s,y.height/s,f,null,p],this.addImage.apply(this,b);if((c+=o)>=t.height)break;this.addPage()}i(h,c,null,b)}).bind(this);if("CANVAS"===t.nodeName){var m=new Image;m.onload=g,m.src=t.toDataURL("image/png"),t=m}else g()}else{var v=Math.random().toString(35),y=[t,e,n,h,c,f,v,p];this.addImage.apply(this,y),i(h,c,v,y)}}).bind(this),"undefined"!=typeof html2canvas&&!r.rstz)return html2canvas(t,r);if("undefined"!=typeof rasterizeHTML){var l="drawDocument";return"string"==typeof t&&(l=/^http/.test(t)?"drawURL":"drawHTML"),r.width=r.width||a*s,rasterizeHTML[l](t,void 0,r).then(function(t){r.onrendered(t.image)},function(t){i(null,t)})}return null},function(t){var e="addImage_",n={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]]};t.getImageFileTypeByImageData=function(t,e){var r,i;e=e||"UNKNOWN";var o,s,a,u="UNKNOWN";for(a in n)for(o=n[a],r=0;r>"),"trns"in e&&e.trns.constructor==Array){for(var o="",s=0,a=e.trns.length;s>"),i(e.data),r("endobj"),"smask"in e){var u={w:e.w,h:e.h,cs:"DeviceGray",bpc:e.bpc,dp:"/Predictor "+e.p+" /Colors 1 /BitsPerComponent "+e.bpc+" /Columns "+e.w,data:e.smask};"f"in e&&(u.f=e.f),t.call(this,u)}e.cs===this.color_spaces.INDEXED&&(this.internal.newObject(),r("<< /Length "+e.pal.length+">>"),i(this.arrayBufferToBinaryString(new Uint8Array(e.pal))),r("endobj"))},i=function(){var t=this.internal.collections[e+"images"];for(var n in t)r.call(this,t[n])},o=function(){var t,n=this.internal.collections[e+"images"],r=this.internal.write;for(var i in n)r("/I"+(t=n[i]).i,t.n,"0","R")},s=function(e){return"function"==typeof t["process"+e.toUpperCase()]},a=function(t){return"object"===(void 0===t?"undefined":rt(t))&&1===t.nodeType},u=function(t,e){if("IMG"===t.nodeName&&t.hasAttribute("src")){var n=""+t.getAttribute("src");if(0===n.indexOf("data:image/"))return n;!e&&/\.png(?:[?#].*)?$/i.test(n)&&(e="png")}if("CANVAS"===t.nodeName)var r=t;else{(r=document.createElement("canvas")).width=t.clientWidth||t.width,r.height=t.clientHeight||t.height;var i=r.getContext("2d");if(!i)throw"addImage requires canvas to be supported by browser.";i.drawImage(t,0,0,r.width,r.height)}return r.toDataURL("png"==(""+e).toLowerCase()?"image/png":"image/jpeg")},l=function(t,e){var n;if(e)for(var r in e)if(t===e[r].alias){n=e[r];break}return n};t.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"},t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"},t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},t.sHashCode=function(t){return t=t||"",Array.prototype.reduce&&t.split("").reduce(function(t,e){return(t=(t<<5)-t+e.charCodeAt(0))&t},0)},t.isString=function(t){return"string"==typeof t},t.validateStringAsBase64=function(t){var e=!0;return(t=t||"").length%4!=0&&(e=!1),!1===/[A-Za-z0-9\/]+/.test(t.substr(0,t.length-2))&&(e=!1),!1===/[A-Za-z0-9\/][A-Za-z0-9+\/]|[A-Za-z0-9+\/]=|==/.test(t.substr(-2))&&(e=!1),e},t.extractInfoFromBase64DataURI=function(t){return/^data:([\w]+?\/([\w]+?));base64,(.+)$/g.exec(t)},t.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array},t.isArrayBuffer=function(t){return!!this.supportsArrayBuffer()&&t instanceof ArrayBuffer},t.isArrayBufferView=function(t){return!!this.supportsArrayBuffer()&&"undefined"!=typeof Uint32Array&&(t instanceof Int8Array||t instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)},t.binaryStringToUint8Array=function(t){for(var e=t.length,n=new Uint8Array(e),r=0;r>18]+r[(258048&e)>>12]+r[(4032&e)>>6]+r[63&e];return 1==s?n+=r[(252&(e=i[a]))>>2]+r[(3&e)<<4]+"==":2==s&&(n+=r[(64512&(e=i[a]<<8|i[a+1]))>>10]+r[(1008&e)>>4]+r[(15&e)<<2]+"="),n},t.createImageInfo=function(t,e,n,r,i,o,s,a,u,l,c,h,f){var p={alias:a,w:e,h:n,cs:r,bpc:i,i:s,data:t};return o&&(p.f=o),u&&(p.dp=u),l&&(p.trns=l),c&&(p.pal=c),h&&(p.smask=h),f&&(p.p=f),p},t.addImage=function(n,r,c,h,f,p,d,g,m){var v="";if("string"!=typeof r){var y=p;p=f,f=h,h=c,c=r,r=y}if("object"===(void 0===n?"undefined":rt(n))&&!a(n)&&"imageData"in n){var b=n;n=b.imageData,r=b.format||r,c=b.x||c||0,h=b.y||h||0,f=b.w||f,p=b.h||p,d=b.alias||d,g=b.compression||g,m=b.rotation||b.angle||m}if(isNaN(c)||isNaN(h))throw console.error("jsPDF.addImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addImage");var w,_,x,C,S,E,k,T=(function(){var t=this.internal.collections[e+"images"];return t||(this.internal.collections[e+"images"]=t={},this.internal.events.subscribe("putResources",i),this.internal.events.subscribe("putXobjectDict",o)),t}).call(this);if(!((w=l(n,T))||(a(n)&&(n=u(n,r)),(null==(k=d)||0===k.length)&&(d="string"==typeof(E=n)&&t.sHashCode(E)),w=l(d,T)))){if(this.isString(n)&&(""!==(v=this.convertStringToImageData(n))?n=v:void 0!==(v=this.loadImageFile(n))&&(n=v)),r=this.getImageFileTypeByImageData(n,r),!s(r))throw new Error("addImage does not support files of type '"+r+"', please ensure that a plugin for '"+r+"' support is added.");if(this.supportsArrayBuffer()&&(n instanceof Uint8Array||(_=n,n=this.binaryStringToUint8Array(n))),!(w=this["process"+r.toUpperCase()](n,(S=0,(C=T)&&(S=Object.keys?Object.keys(C).length:function(t){var e=0;for(var n in t)t.hasOwnProperty(n)&&e++;return e}(C)),S),d,((x=g)&&"string"==typeof x&&(x=x.toUpperCase()),x in t.image_compression?x:t.image_compression.NONE),_)))throw new Error("An unkwown error occurred whilst processing the image")}return(function(t,e,n,r,i,o,s,a){var u=(function(t,e,n){return t||e||(e=t=-96),t<0&&(t=-1*n.w*72/t/this.internal.scaleFactor),e<0&&(e=-1*n.h*72/e/this.internal.scaleFactor),0===t&&(t=e*n.w/n.h),0===e&&(e=t*n.h/n.w),[t,e]}).call(this,n,r,i),l=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString;if(n=u[0],r=u[1],s[o]=i,a){a*=Math.PI/180;var h=Math.cos(a),f=Math.sin(a),p=function(t){return t.toFixed(4)},d=[p(h),p(f),p(-1*f),p(h),0,0,"cm"]}this.internal.write("q"),a?(this.internal.write([1,"0","0",1,l(t),c(e+r),"cm"].join(" ")),this.internal.write(d.join(" ")),this.internal.write([l(n),"0","0",l(r),"0","0","cm"].join(" "))):this.internal.write([l(n),"0","0",l(r),l(t),c(e+r),"cm"].join(" ")),this.internal.write("/I"+i.i+" Do"),this.internal.write("Q")}).call(this,c,h,f,p,w,w.i,T,m),this},t.convertStringToImageData=function(e){var n,r="";return this.isString(e)&&(null!==(n=this.extractInfoFromBase64DataURI(e))?t.validateStringAsBase64(n[3])&&(r=atob(n[3])):t.validateStringAsBase64(e)&&(r=atob(e))),r};var c=function(t,e){return t.subarray(e,e+5)};t.processJPEG=function(t,e,n,r,i,o){var s,a=this.decode.DCT_DECODE;if(!this.isString(t)&&!this.isArrayBuffer(t)&&!this.isArrayBufferView(t))return null;if(this.isString(t)&&(s=function(t){var e;if(255===!t.charCodeAt(0)||216===!t.charCodeAt(1)||255===!t.charCodeAt(2)||224===!t.charCodeAt(3)||!t.charCodeAt(6)==="J".charCodeAt(0)||!t.charCodeAt(7)==="F".charCodeAt(0)||!t.charCodeAt(8)==="I".charCodeAt(0)||!t.charCodeAt(9)==="F".charCodeAt(0)||0===!t.charCodeAt(10))throw new Error("getJpegSize requires a binary string jpeg file");for(var n=256*t.charCodeAt(4)+t.charCodeAt(5),r=4,i=t.length;r>";var p=c.objId+" 0 R";m="<>",this.internal.write(c.objId,"0 R",h.objId,"0 R");break;case"freetext":var d="/Rect ["+i(l.bounds.x*o)+" "+i((a-l.bounds.y)*o)+" "+i(l.bounds.x+l.bounds.w*o)+" "+i(a-(l.bounds.y+l.bounds.h)*o)+"] ";m="<>";else if(l.options.pageNumber)switch(m="<>")}}this.internal.write("]")}}]),o.createAnnotation=function(t){switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":this.annotationPlugin.annotations[this.internal.getCurrentPageInfo().pageNumber].push(t)}},o.link=function(t,e,n,r,i){this.annotationPlugin.annotations[this.internal.getCurrentPageInfo().pageNumber].push({x:t,y:e,w:n,h:r,options:i,type:"link"})},o.textWithLink=function(t,e,n,r){var i=this.getTextWidth(t),o=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(t,e,n),this.link(e,(n+=.2*o)-o,i,o,r),i},o.getTextWidth=function(t){var e=this.internal.getFontSize();return this.getStringUnitWidth(t)*e/this.internal.scaleFactor},o.getLineHeight=function(){return this.internal.getLineHeight()},function(t){var e=Object.keys({ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",fa:"Persian","fa-IR":"Persian/Iran",ur:"Urdu"}),n={1569:[65152],1570:[65153,65154,65153,65154],1571:[65155,65156,65155,65156],1572:[65157,65158],1573:[65159,65160,65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166,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,65193],1584:[65195,65196,65195],1585:[65197,65198,65197],1586:[65199,65200,65199],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,65261],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,64394],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={1570:[65269,65270,65269,65270],1571:[65271,65272,65271,65272],1573:[65273,65274,65273,65274],1575:[65275,65276,65275,65276]},i={1570:[65153,65154,65153,65154],1571:[65155,65156,65155,65156],1573:[65159,65160,65159,65160],1575:[65165,65166,65165,65166]},o={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},s=[1570,1571,1573,1575],a=[1569,1570,1571,1572,1573,1575,1577,1583,1584,1585,1586,1608,1688],u=0,l=1,c=2,h=3;function f(t){return void 0!==t&&void 0!==n[t.charCodeAt(0)]}function p(t){return void 0!==t&&0<=a.indexOf(t.charCodeAt(0))}function d(t){return void 0!==t&&0<=s.indexOf(t.charCodeAt(0))}function g(t){return f(t)&&2<=n[t.charCodeAt(0)].length}function m(t,e,r,o){return f(t)?(o=o||{},n=Object.assign(n,o),!g(t)||!f(e)&&!f(r)||!f(r)&&p(e)||p(t)&&!f(e)||p(t)&&d(e)||p(t)&&p(e)?(n=Object.assign(n,i),u):f(s=t)&&4==n[s.charCodeAt(0)].length&&f(e)&&!p(e)&&f(r)&&g(r)?(n=Object.assign(n,i),h):p(t)||!f(r)?(n=Object.assign(n,i),l):(n=Object.assign(n,i),c)):-1;var s}var v=t.processArabic=function(t,e){t=t||"",e=e||!1;var s,a,u,l="",c=0,h=0,p="",g="",v="";for(c=0;c>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+e+" 0 R")})}return this},(a=it.API).events.push(["initialized",function(){this.canvas.pdf=this}]),a.canvas={getContext:function(t){return(this.pdf.context2d._canvas=this).pdf.context2d},childNodes:[]},Object.defineProperty(a.canvas,"width",{get:function(){return this._width},set:function(t){this._width=t,this.getContext("2d").pageWrapX=t+1}}),Object.defineProperty(a.canvas,"height",{get:function(){return this._height},set:function(t){this._height=t,this.getContext("2d").pageWrapY=t+1}}),p={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},d=1,g=function(t,e,n,r,i){p={x:t,y:e,w:n,h:r,ln:i}},m=function(){return p},v={left:0,top:0,bottom:0},(u=it.API).setHeaderFunction=function(t){f=t},u.getTextDimensions=function(t){l=this.internal.getFont().fontName,c=this.table_font_size||this.internal.getFontSize(),h=this.internal.getFont().fontStyle;var e,n,r=19.049976/25.4;(n=document.createElement("font")).id="jsPDFCell";try{n.style.fontStyle=h}catch(e){n.style.fontWeight=h}n.style.fontSize=c+"pt",n.style.fontFamily=l;try{n.textContent=t}catch(e){n.innerText=t}return document.body.appendChild(n),e={w:(n.offsetWidth+1)*r,h:(n.offsetHeight+1)*r},document.body.removeChild(n),e},u.cellAddPage=function(){var t=this.margins||v;this.addPage(),g(t.left,t.top,void 0,void 0),d+=1},u.cellInitialize=function(){p={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},d=1},u.cell=function(t,e,n,r,i,o,s){var a=m(),u=!1;if(void 0!==a.ln)if(a.ln===o)t=a.x+a.w,e=a.y;else{var l=this.margins||v;a.y+a.h+r+13>=this.internal.pageSize.getHeight()-l.bottom&&(this.cellAddPage(),u=!0,this.printHeaders&&this.tableHeaderRow&&this.printHeaderRow(o,!0)),e=m().y+m().h,u&&(e=23)}if(void 0!==i[0])if(this.printingHeaderRow?this.rect(t,e,n,r,"FD"):this.rect(t,e,n,r),"right"===s){i instanceof Array||(i=[i]);for(var c=0;c=this.pageBreaks[r]){e++,0===this.lastBreak&&n++;var i=this.pageBreaks[r]-this.lastBreak;this.lastBreak=this.pageBreaks[r],n+=Math.floor(i/this.pageWrapY)}return 0===this.lastBreak&&(n+=Math.floor(t/this.pageWrapY)+1),n+e}return this.pdf.internal.getCurrentPageInfo().pageNumber},_gotoPage:function(t){},lineTo:function(t,e){t=this._wrapX(t),e=this._wrapY(e);var n=this._matrix_map_point(this.ctx._transform,[t,e]),r={type:"lt",x:t=n[0],y:e=n[1]};this.path.push(r)},bezierCurveTo:function(t,e,n,r,i,o){var s;t=this._wrapX(t),e=this._wrapY(e),n=this._wrapX(n),r=this._wrapY(r),i=this._wrapX(i),o=this._wrapY(o),i=(s=this._matrix_map_point(this.ctx._transform,[i,o]))[0],o=s[1];var a={type:"bct",x1:t=(s=this._matrix_map_point(this.ctx._transform,[t,e]))[0],y1:e=s[1],x2:n=(s=this._matrix_map_point(this.ctx._transform,[n,r]))[0],y2:r=s[1],x:i,y:o};this.path.push(a)},quadraticCurveTo:function(t,e,n,r){var i;t=this._wrapX(t),e=this._wrapY(e),n=this._wrapX(n),r=this._wrapY(r),n=(i=this._matrix_map_point(this.ctx._transform,[n,r]))[0],r=i[1];var o={type:"qct",x1:t=(i=this._matrix_map_point(this.ctx._transform,[t,e]))[0],y1:e=i[1],x:n,y:r};this.path.push(o)},arc:function(t,e,n,r,i,o){if(t=this._wrapX(t),e=this._wrapY(e),!this._matrix_is_identity(this.ctx._transform)){var s=this._matrix_map_point(this.ctx._transform,[t,e]);t=s[0],e=s[1];var a=this._matrix_map_point(this.ctx._transform,[0,0]),u=this._matrix_map_point(this.ctx._transform,[0,n]);n=Math.sqrt(Math.pow(u[0]-a[0],2)+Math.pow(u[1]-a[1],2))}this.path.push({type:"arc",x:t,y:e,radius:n,startAngle:r,endAngle:i,anticlockwise:o})},drawImage:function(t,e,n,r,i,o,s,a,u){void 0!==o&&(e=o,n=s,r=a,i=u),e=this._wrapX(e),n=this._wrapY(n);var l=this._matrix_map_rect(this.ctx._transform,{x:e,y:n,w:r,h:i}),c=(this._matrix_map_rect(this.ctx._transform,{x:o,y:s,w:a,h:u}),/data:image\/(\w+).*/i.exec(t));this.pdf.addImage(t,null!=c?c[1]:"png",l.x,l.y,l.w,l.h)},_matrix_multiply:function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],s=e[4],a=e[5],u=n*t[0]+r*t[2],l=i*t[0]+o*t[2],c=s*t[0]+a*t[2]+t[4];return r=n*t[1]+r*t[3],o=i*t[1]+o*t[3],a=s*t[1]+a*t[3]+t[5],[n=u,r,i=l,o,s=c,a]},_matrix_rotation:function(t){return Math.atan2(t[2],t[0])},_matrix_decompose:function(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=Math.sqrt(e*e+n*n),s=(e/=o)*r+(n/=o)*i;r-=e*s,i-=n*s;var a=Math.sqrt(r*r+i*i);return s/=a,e*(i/=a)>"),u.push(">>");var l="MASK"+u.objId;this.pdf.internal.addGraphicsState(l,u.objId);var c="/"+l+" gs";r.splice(0,0,"q"),r.splice(1,0,c),r.push("Q"),window.outIntercept=a;break;default:var h="/"+this.pdf.internal.blendModeMap[this.ctx.globalCompositeOperation.toUpperCase()];h&&this.pdf.internal.out(h+" gs")}var f=this.ctx.globalAlpha;if(this.ctx._fillOpacity<1&&(f=this.ctx._fillOpacity),i){var p=this.pdf.internal.newObject2();p.push("<>"),this.pdf.internal.addGraphicsState(l="GS_O_"+p.objId,p.objId),this.pdf.internal.out("/"+l+" gs")}for(var d=this.path,g=0;g>"),e.push(">>");var n="MASK"+e.objId;this.pdf.internal.addGraphicsState(n,e.objId),this.pdf.internal.out("/"+n+" gs")}else console.log("jsPDF v2 not enabled")},clip:function(){if(0r.pdf.margins_doc.top&&(r.pdf.addPage(),r.y=r.pdf.margins_doc.top,r.executeWatchFunctions(o));var O=l(o),I=r.x,A=12/r.pdf.internal.scaleFactor,P=(O["margin-left"]+O["padding-left"])*A,R=(O["margin-right"]+O["padding-right"])*A,j=(O["margin-top"]+O["padding-top"])*A,N=(O["margin-bottom"]+O["padding-bottom"])*A;r.pdf.addImage(k,I+=void 0!==O.float&&"right"===O.float?r.settings.width-o.width-R:P,r.y+j,o.width,o.height),k=void 0,"right"===O.float||"left"===O.float?(r.watchFunctions.push((function(t,e,n,i){return r.y>=e?(r.x+=t,r.settings.width+=n,!0):!!(i&&1===i.nodeType&&!_[i.nodeName]&&r.x+i.width>r.pdf.margins_doc.left+r.pdf.margins_doc.width)&&(r.x+=t,r.y=e,r.settings.width+=n,!0)}).bind(this,"left"===O.float?-o.width-P-R:0,r.y+o.height+j+N,o.width)),r.watchFunctions.push((function(t,e,n){return!(r.y]*?>/gi,""),c="jsPDFhtmlText"+Date.now().toString()+(1e3*Math.random()).toFixed(0),(l=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;",l.innerHTML='