hrms-manual/dist/assets/MainOrgChart-f6c49c05.js

265 lines
556 KiB
JavaScript
Raw Normal View History

2023-09-06 14:51:44 +07:00
import{Q as xl}from"./QTooltip-5ceb1b84.js";import{ar as hB,aq as rf,a as Bn,d as Ou,a9 as nf,o as Ku,w as Ba,e as or,f as ar,A as mt,g as yr,m as wt,as as fB,aA as BB,K as gB,aB as dB,ab as pB,x as wB,F as bi,C as ga,D as No,v as Nl,j as Ui,I as mB,i as Hl,J as CB,G as FB,at as QB,au as yB,ag as Sl,ac as Pl,a2 as vB,ah as bB}from"./index-3a2b6cd5.js";import{c as Dl}from"./app.config-a8647d06.js";import{u as UB}from"./mixin-183f301b.js";/*!
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
* Released under MIT License
*//*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var iu=function(e,A){return iu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},iu(e,A)};function cr(e,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");iu(e,A);function t(){this.constructor=e}e.prototype=A===null?Object.create(A):(t.prototype=A.prototype,new t)}var su=function(){return su=Object.assign||function(e){for(var A,t=1,r=arguments.length;t<r;t++){A=arguments[t];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},su.apply(this,arguments)};function de(e,A,t,r){function n(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function c(B){try{f(r.next(B))}catch(p){o(p)}}function u(B){try{f(r.throw(B))}catch(p){o(p)}}function f(B){B.done?i(B.value):n(B.value).then(c,u)}f((r=r.apply(e,A||[])).next())})}function fe(e,A){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,n,i,o;return o={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(f){return function(B){return u([f,B])}}function u(f){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,n&&(i=f[0]&2?n.return:f[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,f[1])).done)return i;switch(n=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return t.label++,{value:f[1],done:!1};case 5:t.label++,n=f[1],f=[0];continue;case 7:f=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){t=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){t.label=f[1];break}if(f[0]===6&&t.label<i[1]){t.label=i[1],i=f;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(f);break}i[2]&&t.ops.pop(),t.trys.pop();continue}f=A.call(e,t)}catch(B){f=[6,B],n=0}finally{r=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function Ho(e,A,t){if(t||arguments.length===2)for(var r=0,n=A.length,i;r<n;r++)(i||!(r in A))&&(i||(i=Array.prototype.slice.call(A,0,r)),i[r]=A[r]);return e.concat(i||A)}var Vr=function(){function e(A,t,r,n){this.left=A,this.top=t,this.width=r,this.height=n}return e.prototype.add=function(A,t,r,n){return new e(this.left+A,this.top+t,this.width+r,this.height+n)},e.fromClientRect=function(A,t){return new e(t.left+A.windowBounds.left,t.top+A.windowBounds.top,t.width,t.height)},e.fromDOMRectList=function(A,t){var r=Array.from(t).find(function(n){return n.width!==0});return r?new e(r.left+A.windowBounds.left,r.top+A.windowBounds.top,r.width,r.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),Ia=function(e,A){return Vr.fromClientRect(e,A.getBoundingClientRect())},LB=function(e){var A=e.body,t=e.documentElement;if(!A||!t)throw new Error("Unable to get document size");var r=Math.max(Math.max(A.scrollWidth,t.scrollWidth),Math.max(A.offsetWidth,t.offsetWidth),Math.max(A.clientWidth,t.clientWidth)),n=Math.max(Math.max(A.scrollHeight,t.scrollHeight),Math.max(A.offsetHeight,t.offsetHeight),Math.max(A.clientHeight,t.clientHeight));return new Vr(0,0,r,n)},Ea=function(e){for(var A=[],t=0,r=e.length;t<r;){var n=e.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){var i=e.charCodeAt(t++);(i&64512)===56320?A.push(((n&1023)<<10)+(i&1023)+65536):(A.push(n),t--)}else A.push(n)}return A},Ot=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var t=e.length;if(!t)return"";for(var r=[],n=-1,i="";++n<t;){var o=e[n];o<=65535?r.push(o):(o-=65536,r.push((o>>10)+55296,o%1024+56320)),(n+1===t||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},kl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",IB=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var So=0;So<kl.length;So++)IB[kl.charCodeAt(So)]=So;var Ml="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrst
content: "" !important;
display: none !important;
}`,h5=function(e){f5(e,"."+bu+u5+Hh+`
.`+Uu+l5+Hh)},f5=function(e,A){var t=e.ownerDocument;if(t){var r=t.createElement("style");r.textContent=A,e.appendChild(r)}},e1=function(){function e(){}return e.getOrigin=function(A){var t=e._link;return t?(t.href=A,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},e.isSameOrigin=function(A){return e.getOrigin(A)===e._origin},e.setContext=function(A){e._link=A.document.createElement("a"),e._origin=e.getOrigin(A.location.href)},e._origin="about:blank",e}(),B5=function(){function e(A,t){this.context=A,this._options=t,this._cache={}}return e.prototype.addImage=function(A){var t=Promise.resolve();return this.has(A)||(zc(A)||w5(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),t},e.prototype.match=function(A){return this._cache[A]},e.prototype.loadImage=function(A){return de(this,void 0,void 0,function(){var t,r,n,i,o=this;return fe(this,function(c){switch(c.label){case 0:return t=e1.isSameOrigin(A),r=!Xc(A)&&this._options.useCORS===!0&&ne.SUPPORT_CORS_IMAGES&&!t,n=!Xc(A)&&!t&&!zc(A)&&typeof this._options.proxy=="string"&&ne.SUPPORT_CORS_XHR&&!r,!t&&this._options.allowTaint===!1&&!Xc(A)&&!zc(A)&&!n&&!r?[2]:(i=A,n?[4,this.proxy(i)]:[3,2]);case 1:i=c.sent(),c.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(u,f){var B=new Image;B.onload=function(){return u(B)},B.onerror=f,(m5(i)||r)&&(B.crossOrigin="anonymous"),B.src=i,B.complete===!0&&setTimeout(function(){return u(B)},500),o._options.imageTimeout>0&&setTimeout(function(){return f("Timed out ("+o._options.imageTimeout+"ms) loading image")},o._options.imageTimeout)})];case 3:return[2,c.sent()]}})})},e.prototype.has=function(A){return typeof this._cache[A]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(A){var t=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var n=A.substring(0,256);return new Promise(function(i,o){var c=ne.SUPPORT_RESPONSE_TYPE?"blob":"text",u=new XMLHttpRequest;u.onload=function(){if(u.status===200)if(c==="text")i(u.response);else{var p=new FileReader;p.addEventListener("load",function(){return i(p.result)},!1),p.addEventListener("error",function(w){return o(w)},!1),p.readAsDataURL(u.response)}else o("Failed to proxy resource "+n+" with status code "+u.status)},u.onerror=o;var f=r.indexOf("?")>-1?"&":"?";if(u.open("GET",""+r+f+"url="+encodeURIComponent(A)+"&responseType="+c),c!=="text"&&u instanceof XMLHttpRequest&&(u.responseType=c),t._options.imageTimeout){var B=t._options.imageTimeout;u.timeout=B,u.ontimeout=function(){return o("Timed out ("+B+"ms) proxying "+n)}}u.send()})},e}(),g5=/^data:image\/svg\+xml/i,d5=/^data:image\/.*;base64,/i,p5=/^data:image\/.*/i,w5=function(e){return ne.SUPPORT_SVG_DRAWING||!C5(e)},Xc=function(e){return p5.test(e)},m5=function(e){return d5.test(e)},zc=function(e){return e.substr(0,4)==="blob"},C5=function(e){return e.substr(-3).toLowerCase()==="svg"||g5.test(e)},NA=function(){function e(A,t){this.type=0,this.x=A,this.y=t}return e.prototype.add=function(A,t){return new e(this.x+A,this.y+t)},e}(),Fi=function(e,A,t){return new NA(e.x+(A.x-e.x)*t,e.y+(A.y-e.y)*t)},Yo=function(){function e(A,t,r,n){this.type=1,this.start=A,this.startControl=t,this.endControl=r,this.end=n}return e.prototype.subdivide=function(A,t){var r=Fi(this.start,this.startControl,A),n=Fi(this.startControl,this.endControl,A),i=Fi(this.endControl,this.end,A),o=Fi(r,n,A),c=Fi(n,i,A),u=Fi(o,c,A);return t?new e(this.start,r,o,u):new e(u,c,i,this.end)},e.prototype.add=function(A,t){return new e(this.start.add(A,t),this.startControl.add(A,t),this.endControl.add(A,t),this.end.add(A,t))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),Ke=function(e){return e.type===1},F5=function(){function e(A){var t=A.styles,r=A.bounds,n=Us(t.borderTopLeftRadius,r.width,r.height),i=n[0],o=n[1],c=Us(t.borderTopRightRadius,r.width,r.height),u=c[0],f=c[1],B=Us(t.borderBottomRightRadius,r.width,r.height),p=B[0],w=B[1],g=Us(t.borderBottomLeftRadius,r.width,r.height)
*
* jsPDF - PDF Document creation from JavaScript
* Version 2.5.1 Built on 2022-01-28T15:37:57.791Z
* CommitID 00000000
*
* Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
* 2015-2021 yWorks GmbH, http://www.yworks.com
* 2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
* 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
* 2010 Aaron Spike, https://github.com/acspike
* 2012 Willow Systems Corporation, https://github.com/willowsystems
* 2012 Pablo Hess, https://github.com/pablohess
* 2012 Florian Jenett, https://github.com/fjenett
* 2013 Warren Weckesser, https://github.com/warrenweckesser
* 2013 Youssef Beddad, https://github.com/lifof
* 2013 Lee Driscoll, https://github.com/lsdriscoll
* 2013 Stefan Slonevskiy, https://github.com/stefslon
* 2013 Jeremy Morel, https://github.com/jmorel
* 2013 Christoph Hartmann, https://github.com/chris-rock
* 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
* 2014 James Makes, https://github.com/dollaruw
* 2014 Diego Casorran, https://github.com/diegocr
* 2014 Steven Spungin, https://github.com/Flamenco
* 2014 Kenneth Glassey, https://github.com/Gavvers
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* Contributor(s):
* siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
* kim3er, mfo, alnorth, Flamenco
*/var VA=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function Au(){VA.console&&typeof VA.console.log=="function"&&VA.console.log.apply(VA.console,arguments)}var yt={log:Au,warn:function(e){VA.console&&(typeof VA.console.warn=="function"?VA.console.warn.apply(VA.console,arguments):Au.call(null,arguments))},error:function(e){VA.console&&(typeof VA.console.error=="function"?VA.console.error.apply(VA.console,arguments):Au(e))}};function tu(e,A,t){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){Dn(r.response,A,t)},r.onerror=function(){yt.error("could not download file")},r.send()}function Oh(e){var A=new XMLHttpRequest;A.open("HEAD",e,!1);try{A.send()}catch{}return A.status>=200&&A.status<=299}function ta(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var A=document.createEvent("MouseEvents");A.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(A)}}var Ps,Su,Dn=VA.saveAs||((typeof window>"u"?"undefined":gt(window))!=="object"||window!==VA?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,A,t){var r=VA.URL||VA.webkitURL,n=document.createElement("a");A=A||e.name||"download",n.download=A,n.rel="noopener",typeof e=="string"?(n.href=e,n.origin!==location.origin?Oh(n.href)?tu(e,A,t):ta(n,n.target="_blank"):ta(n)):(n.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(n.href)},4e4),setTimeout(function(){ta(n)},0))}:"msSaveOrOpenBlob"in navigator?function(e,A,t){if(A=A||e.name||"download",typeof e=="string")if(Oh(e))tu(e,A,t);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){ta(r)})}else navigator.msSaveOrOpenBlob(function(n,i){return i===void 0?i={autoBom:!1}:gt(i)!=="object"&&(yt.warn("Deprecated: Expected third argument to be a object"),i={autoBom:!i}),i.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(n.type)?new Blob([String.fromCharCode(65279),n],{type:n.type}):n}(e,t),A)}:function(e,A,t,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return tu(e,A,t);var n=e.type==="application/octet-stream",i=/constructor/i.test(VA.HTMLElement)||VA.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||n&&i)&&(typeof FileReader>"u"?"undefined":gt(FileReader))==="object"){var c=new FileReader;c.onloadend=function(){var B=c.result;B=o?B:B.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=B:location=B,r=null},c.readAsDataURL(e)}else{var u=VA.URL||VA.webkitURL,f=u.createObjectURL(e);r?r.location=f:location.href=f,r=null,setTimeout(function(){u.revokeObjectURL(f)},4e4)}});/**
* A class to parse color values
* @author Stoyan Stefanov <sstoo@gmail.com>
* {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
* @license Use it if you like it
*/function g1(e){var A;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var t=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(c){return[parseInt(c[1]),parseInt(c[2]),parseInt(c[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(c){return[parseInt(c[1],16),parseInt(c[2],16),parseInt(c[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(c){return[parseInt(c[1]+c[1],16),parseInt(c[2]+c[2],16),parseInt(c[3]+c[3],16)]}}],r=0;r<t.length;r++){var n=t[r].re,i=t[r].process,o=n.exec(e);o&&(A=i(o),this.r=A[0],this.g=A[1],this.b=A[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var c=this.r.toString(16),u=this.g.toString(16),f=this.b.toString(16);return c.length==1&&(c="0"+c),u.length==1&&(u="0"+u),f.length==1&&(f="0"+f),"#"+c+u+f}}/**
* @license
* Joseph Myers does not specify a particular license for his work.
*
* Author: Joseph Myers
* Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
*
* Modified by: Owen Leong
*/function eu(e,A){var t=e[0],r=e[1],n=e[2],i=e[3];t=ce(t,r,n,i,A[0],7,-680876936),i=ce(i,t,r,n,A[1],12,-389564586),n=ce(n,i,t,r,A[2],17,606105819),r=ce(r,n,i,t,A[3],22,-1044525330),t=ce(t,r,n,i,A[4],7,-176418897),i=ce(i,t,r,n,A[5],12,1200080426),n=ce(n,i,t,r,A[6],17,-1473231341),r=ce(r,n,i,t,A[7],22,-45705983),t=ce(t,r,n,i,A[8],7,1770035416),i=ce(i,t,r,n,A[9],12,-1958414417),n=ce(n,i,t,r,A[10],17,-42063),r=ce(r,n,i,t,A[11],22,-1990404162),t=ce(t,r,n,i,A[12],7,1804603682),i=ce(i,t,r,n,A[13],12,-40341101),n=ce(n,i,t,r,A[14],17,-1502002290),t=ue(t,r=ce(r,n,i,t,A[15],22,1236535329),n,i,A[1],5,-165796510),i=ue(i,t,r,n,A[6],9,-1069501632),n=ue(n,i,t,r,A[11],14,643717713),r=ue(r,n,i,t,A[0],20,-373897302),t=ue(t,r,n,i,A[5],5,-701558691),i=ue(i,t,r,n,A[10],9,38016083),n=ue(n,i,t,r,A[15],14,-660478335),r=ue(r,n,i,t,A[4],20,-405537848),t=ue(t,r,n,i,A[9],5,568446438),i=ue(i,t,r,n,A[14],9,-1019803690),n=ue(n,i,t,r,A[3],14,-187363961),r=ue(r,n,i,t,A[8],20,1163531501),t=ue(t,r,n,i,A[13],5,-1444681467),i=ue(i,t,r,n,A[2],9,-51403784),n=ue(n,i,t,r,A[7],14,1735328473),t=le(t,r=ue(r,n,i,t,A[12],20,-1926607734),n,i,A[5],4,-378558),i=le(i,t,r,n,A[8],11,-2022574463),n=le(n,i,t,r,A[11],16,1839030562),r=le(r,n,i,t,A[14],23,-35309556),t=le(t,r,n,i,A[1],4,-1530992060),i=le(i,t,r,n,A[4],11,1272893353),n=le(n,i,t,r,A[7],16,-155497632),r=le(r,n,i,t,A[10],23,-1094730640),t=le(t,r,n,i,A[13],4,681279174),i=le(i,t,r,n,A[0],11,-358537222),n=le(n,i,t,r,A[3],16,-722521979),r=le(r,n,i,t,A[6],23,76029189),t=le(t,r,n,i,A[9],4,-640364487),i=le(i,t,r,n,A[12],11,-421815835),n=le(n,i,t,r,A[15],16,530742520),t=he(t,r=le(r,n,i,t,A[2],23,-995338651),n,i,A[0],6,-198630844),i=he(i,t,r,n,A[7],10,1126891415),n=he(n,i,t,r,A[14],15,-1416354905),r=he(r,n,i,t,A[5],21,-57434055),t=he(t,r,n,i,A[12],6,1700485571),i=he(i,t,r,n,A[3],10,-1894986606),n=he(n,i,t,r,A[10],15,-1051523),r=he(r,n,i,t,A[1],21,-2054922799),t=he(t,r,n,i,A[8],6,1873313359),i=he(i,t,r,n,A[15],10,-30611744),n=he(n,i,t,r,A[6],15,-1560198380),r=he(r,n,i,t,A[13],21,1309151649),t=he(t,r,n,i,A[4],6,-145523070),i=he(i,t,r,n,A[11],10,-1120210379),n=he(n,i,t,r,A[2],15,718787259),r=he(r,n,i,t,A[9],21,-343485551),e[0]=wn(t,e[0]),e[1]=wn(r,e[1]),e[2]=wn(n,e[2]),e[3]=wn(i,e[3])}function Ka(e,A,t,r,n,i){return A=wn(wn(A,e),wn(r,i)),wn(A<<n|A>>>32-n,t)}function ce(e,A,t,r,n,i,o){return Ka(A&t|~A&r,e,A,n,i,o)}function ue(e,A,t,r,n,i,o){return Ka(A&r|t&~r,e,A,n,i,o)}function le(e,A,t,r,n,i,o){return Ka(A^t^r,e,A,n,i,o)}function he(e,A,t,r,n,i,o){return Ka(t^(A|~r),e,A,n,i,o)}function d1(e){var A,t=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(A=64;A<=e.length;A+=64)eu(r,fp(e.substring(A-64,A)));e=e.substring(A-64);var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(A=0;A<e.length;A++)n[A>>2]|=e.charCodeAt(A)<<(A%4<<3);if(n[A>>2]|=128<<(A%4<<3),A>55)for(eu(r,n),A=0;A<16;A++)n[A]=0;return n[14]=8*t,eu(r,n),r}function fp(e){var A,t=[];for(A=0;A<64;A+=4)t[A>>2]=e.charCodeAt(A)+(e.charCodeAt(A+1)<<8)+(e.charCodeAt(A+2)<<16)+(e.charCodeAt(A+3)<<24);return t}Ps=VA.atob.bind(VA),Su=VA.btoa.bind(VA);var Kh="0123456789abcdef".split("");function Bp(e){for(var A="",t=0;t<4;t++)A+=Kh[e>>8*t+4&15]+Kh[e>>8*t&15];return A}function gp(e){return String.fromCharCode((255&e)>>0,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function Pu(e){return d1(e).map(gp).join("")}var dp=function(e){for(var A=0;A<e.length;A++)e[A]=Bp(e[A]);return e.join("")}(d1("hello"))!="5d41402abc4b2a76b9719d911017c592";function wn(e,A){if(dp){var t=(65535&e)+(65535&A);return(e>>16)+(A>>16)+(t>>16)<<16|65535&t}return e+A&4294967295}/**
* @license
* FPDF is released under a permissive license: there is no usage restriction.
* You may embed it freely in your application (commercial or not), with or
* without modifications.
*
* Reference: http://www.fpdf.org/en/script/script37.php
*/function Du(e,A){var t,r,n,i;if(e!==t){for(var o=(n=e,i=1+(256/e.length>>0),new Array(i+1).join(n)),c=[],u=0;u<256;u++)c[u]=u;var f=0;for(u=0;u<256;u++){var B=c[u];f=(f+B+o.charCodeAt(u))%256,c[u]=c[f],c[f]=B}t=e,r=c}else c=r;var p=A.length,w=0,g=0,U="";for(u=0;u<p;u++)g=(g+(B=c[w=(w+1)%256]))%256,c[w]=c[g],c[g]=B,o=c[(c[w]+c[g])%256],U+=String.fromCharCode(A.charCodeAt(u)^o);return U}/**
* @license
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
* Author: Owen Leong (@owenl131)
* Date: 15 Oct 2020
* References:
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
* http://www.fpdf.org/en/script/script37.php
*/var Th={print:4,modify:8,copy:16,"annot-forms":32};function Ei(e,A,t,r){this.v=1,this.r=2;var n=192;e.forEach(function(c){if(Th.perm!==void 0)throw new Error("Invalid permission: "+c);n+=Th[c]}),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var i=(A+this.padding).substr(0,32),o=(t+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,o),this.P=-(1+(255^n)),this.encryptionKey=Pu(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=Du(this.encryptionKey,this.padding)}function xi(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var A="",t=e.length,r=0;r<t;r++){var n=e.charCodeAt(r);n<33||n===35||n===37||n===40||n===41||n===47||n===60||n===62||n===91||n===93||n===123||n===125||n>126?A+="#"+("0"+n.toString(16)).slice(-2):A+=e[r]}return A}function Rh(e){if(gt(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var A={};this.subscribe=function(t,r,n){if(n=n||!1,typeof t!="string"||typeof r!="function"||typeof n!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");A.hasOwnProperty(t)||(A[t]={});var i=Math.random().toString(35);return A[t][i]=[r,!!n],i},this.unsubscribe=function(t){for(var r in A)if(A[r][t])return delete A[r][t],Object.keys(A[r]).length===0&&delete A[r],!0;return!1},this.publish=function(t){if(A.hasOwnProperty(t)){var r=Array.prototype.slice.call(arguments,1),n=[];for(var i in A[t]){var o=A[t][i];try{o[0].apply(e,r)}catch(c){VA.console&&yt.error("jsPDF PubSub Error",c.message,c)}o[1]&&n.push(i)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return A}}function Ua(e){if(!(this instanceof Ua))return new Ua(e);var A="opacity,stroke-opacity".split(",");for(var t in e)e.hasOwnProperty(t)&&A.indexOf(t)>=0&&(this[t]=e[t]);this.id="",this.objectNumber=-1}function p1(e,A){this.gState=e,this.matrix=A,this.id="",this.objectNumber=-1}function kn(e,A,t,r,n){if(!(this instanceof kn))return new kn(e,A,t,r,n);this.type=e==="axial"?2:3,this.coords=A,this.colors=t,p1.call(this,r,n)}function Si(e,A,t,r,n){if(!(this instanceof Si))return new Si(e,A,t,r,n);this.boundingBox=e,this.xStep=A,this.yStep=t,this.stream="",this.cloneIndex=0,p1.call(this,r,n)}function jA(e){var A,t=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],n=arguments[2],i=arguments[3],o=[],c=1,u=16,f="S",B=null;gt(e=e||{})==="object"&&(t=e.orientation,r=e.unit||r,n=e.format||n,i=e.compress||e.compressPdf||i,(B=e.encryption||null)!==null&&(B.userPassword=B.userPassword||"",B.ownerPassword=B.ownerPassword||"",B.userPermissions=B.userPermissions||[]),c=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(A=e.precision),e.floatPrecision!==void 0&&(u=e.floatPrecision),f=e.defaultPathOperation||"S"),o=e.filters||(i===!0?["FlateEncode"]:o),r=r||"mm",t=(""+(t||"P")).toLowerCase();var p=e.putOnlyUsedFonts||!1,w={},g={internal:{},__private__:{}};g.__private__.PubSub=Rh;var U="1.3",b=g.__private__.getPdfVersion=function(){return U};g.__private__.setPdfVersion=function(l){U=l};var 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]};g.__private__.getPageFormats=function(){return S};var y=g.__private__.getPageFormat=function(l){return S[l]};n=n||"a4";var E={COMPAT:"compat",ADVANCED:"advanc
`),Ce(l,C),lt.publish("endTilingPattern",C),Br.pop().restore()};var Xt=g.__private__.newObject=function(){var l=Gt();return Ie(l,!0),l},Gt=g.__private__.newObjectDeferred=function(){return z++,nA[z]=function(){return cA},z},Ie=function(l,C){return C=typeof C=="boolean"&&C,nA[l]=cA,C&&O(l+" 0 obj"),l},Gn=g.__private__.newAdditionalObject=function(){var l={objId:Gt(),content:""};return yA.push(l),l},xr=Gt(),qe=Gt(),We=g.__private__.decodeColorString=function(l){var C=l.split(" ");if(C.length!==2||C[1]!=="g"&&C[1]!=="G")C.length===5&&(C[4]==="k"||C[4]==="K")&&(C=[(1-C[0])*(1-C[3]),(1-C[1])*(1-C[3]),(1-C[2])*(1-C[3]),"r"]);else{var D=parseFloat(C[0]);C=[D,D,D,"r"]}for(var T="#",$=0;$<3;$++)T+=("0"+Math.floor(255*parseFloat(C[$])).toString(16)).slice(-2);return T},Xe=g.__private__.encodeColorString=function(l){var C;typeof l=="string"&&(l={ch1:l});var D=l.ch1,T=l.ch2,$=l.ch3,BA=l.ch4,CA=l.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof D=="string"&&D.charAt(0)!=="#"){var SA=new g1(D);if(SA.ok)D=SA.toHex();else if(!/^\d*\.?\d*$/.test(D))throw new Error('Invalid color "'+D+'" passed to jsPDF.encodeColorString.')}if(typeof D=="string"&&/^#[0-9A-Fa-f]{3}$/.test(D)&&(D="#"+D[1]+D[1]+D[2]+D[2]+D[3]+D[3]),typeof D=="string"&&/^#[0-9A-Fa-f]{6}$/.test(D)){var KA=parseInt(D.substr(1),16);D=KA>>16&255,T=KA>>8&255,$=255&KA}if(T===void 0||BA===void 0&&D===T&&T===$)if(typeof D=="string")C=D+" "+CA[0];else switch(l.precision){case 2:C=sA(D/255)+" "+CA[0];break;case 3:default:C=x(D/255)+" "+CA[0]}else if(BA===void 0||gt(BA)==="object"){if(BA&&!isNaN(BA.a)&&BA.a===0)return C=["1.","1.","1.",CA[1]].join(" ");if(typeof D=="string")C=[D,T,$,CA[1]].join(" ");else switch(l.precision){case 2:C=[sA(D/255),sA(T/255),sA($/255),CA[1]].join(" ");break;default:case 3:C=[x(D/255),x(T/255),x($/255),CA[1]].join(" ")}}else if(typeof D=="string")C=[D,T,$,BA,CA[2]].join(" ");else switch(l.precision){case 2:C=[sA(D),sA(T),sA($),sA(BA),CA[2]].join(" ");break;case 3:default:C=[x(D),x(T),x($),x(BA),CA[2]].join(" ")}return C},dr=g.__private__.getFilters=function(){return o},Se=g.__private__.putStream=function(l){var C=(l=l||{}).data||"",D=l.filters||dr(),T=l.alreadyAppliedFilters||[],$=l.addLength1||!1,BA=C.length,CA=l.objectId,SA=function(ae){return ae};if(B!==null&&CA===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");B!==null&&(SA=oe.encryptor(CA,0));var KA={};D===!0&&(D=["FlateEncode"]);var ZA=l.additionalKeyValues||[],tt=(KA=jA.API.processDataByFilters!==void 0?jA.API.processDataByFilters(C,D):{data:C,reverseChain:[]}).reverseChain+(Array.isArray(T)?T.join(" "):T.toString());if(KA.data.length!==0&&(ZA.push({key:"Length",value:KA.data.length}),$===!0&&ZA.push({key:"Length1",value:BA})),tt.length!=0)if(tt.split("/").length-1==1)ZA.push({key:"Filter",value:tt});else{ZA.push({key:"Filter",value:"["+tt+"]"});for(var it=0;it<ZA.length;it+=1)if(ZA[it].key==="DecodeParms"){for(var xt=[],kt=0;kt<KA.reverseChain.split("/").length-1;kt+=1)xt.push("null");xt.push(ZA[it].value),ZA[it].value="["+xt.join(" ")+"]"}}O("<<");for(var jt=0;jt<ZA.length;jt++)O("/"+ZA[jt].key+" "+ZA[jt].value);O(">>"),KA.data.length!==0&&(O("stream"),O(SA(KA.data)),O("endstream"))},pr=g.__private__.putPage=function(l){var C=l.number,D=l.data,T=l.objId,$=l.contentsObjId;Ie(T,!0),O("<</Type /Page"),O("/Parent "+l.rootDictionaryObjId+" 0 R"),O("/Resources "+l.resourceDictionaryObjId+" 0 R"),O("/MediaBox ["+parseFloat(X(l.mediaBox.bottomLeftX))+" "+parseFloat(X(l.mediaBox.bottomLeftY))+" "+X(l.mediaBox.topRightX)+" "+X(l.mediaBox.topRightY)+"]"),l.cropBox!==null&&O("/CropBox ["+X(l.cropBox.bottomLeftX)+" "+X(l.cropBox.bottomLeftY)+" "+X(l.cropBox.topRightX)+" "+X(l.cropBox.topRightY)+"]"),l.bleedBox!==null&&O("/BleedBox ["+X(l.bleedBox.bottomLeftX)+" "+X(l.bleedBox.bottomLeftY)+" "+X(l.bleedBox.topRightX)+" "+X(l.bleedBox.topRightY)+"]"),l.trimBox!==null&&O("/TrimBox ["+X(l.trimBox.bottomLeftX)+" "+X(l.trimBox.bottomLeftY)+" "+X(l.trimBox.topRightX)+" "+X(l.trimBox.topRightY)+"]"),l.artBox!==null&&O("/ArtBox ["+X(l.artBox.bottomLeftX)+" "+X(l.artBox.bott
`);return G===E.ADVANCED&&(BA+=`
Q`),Ie($,!0),Se({data:BA,filters:dr(),objectId:$}),O("endobj"),T},Un=g.__private__.putPages=function(){var l,C,D=[];for(l=1;l<=Ht;l++)zA[l].objId=Gt(),zA[l].contentsObjId=Gt();for(l=1;l<=Ht;l++)D.push(pr({number:l,data:QA[l],objId:zA[l].objId,contentsObjId:zA[l].contentsObjId,mediaBox:zA[l].mediaBox,cropBox:zA[l].cropBox,bleedBox:zA[l].bleedBox,trimBox:zA[l].trimBox,artBox:zA[l].artBox,userUnit:zA[l].userUnit,rootDictionaryObjId:xr,resourceDictionaryObjId:qe}));Ie(xr,!0),O("<</Type /Pages");var T="/Kids [";for(C=0;C<Ht;C++)T+=D[C]+" 0 R ";O(T+"]"),O("/Count "+Ht),O(">>"),O("endobj"),lt.publish("postPutPages")},jn=function(l){lt.publish("putFont",{font:l,out:O,newObject:Xt,putStream:Se}),l.isAlreadyPutted!==!0&&(l.objectNumber=Xt(),O("<<"),O("/Type /Font"),O("/BaseFont /"+xi(l.postScriptName)),O("/Subtype /Type1"),typeof l.encoding=="string"&&O("/Encoding /"+l.encoding),O("/FirstChar 32"),O("/LastChar 255"),O(">>"),O("endobj"))},Vn=function(){for(var l in Ft)Ft.hasOwnProperty(l)&&(p===!1||p===!0&&w.hasOwnProperty(l))&&jn(Ft[l])},qn=function(l){l.objectNumber=Xt();var C=[];C.push({key:"Type",value:"/XObject"}),C.push({key:"Subtype",value:"/Form"}),C.push({key:"BBox",value:"["+[X(l.x),X(l.y),X(l.x+l.width),X(l.y+l.height)].join(" ")+"]"}),C.push({key:"Matrix",value:"["+l.matrix.toString()+"]"});var D=l.pages[1].join(`
`);Se({data:D,additionalKeyValues:C,objectId:l.objectNumber}),O("endobj")},Wn=function(){for(var l in ee)ee.hasOwnProperty(l)&&qn(ee[l])},Gs=function(l,C){var D,T=[],$=1/(C-1);for(D=0;D<1;D+=$)T.push(D);if(T.push(1),l[0].offset!=0){var BA={offset:0,color:l[0].color};l.unshift(BA)}if(l[l.length-1].offset!=1){var CA={offset:1,color:l[l.length-1].color};l.push(CA)}for(var SA="",KA=0,ZA=0;ZA<T.length;ZA++){for(D=T[ZA];D>l[KA+1].offset;)KA++;var tt=l[KA].offset,it=(D-tt)/(l[KA+1].offset-tt),xt=l[KA].color,kt=l[KA+1].color;SA+=R(Math.round((1-it)*xt[0]+it*kt[0]).toString(16))+R(Math.round((1-it)*xt[1]+it*kt[1]).toString(16))+R(Math.round((1-it)*xt[2]+it*kt[2]).toString(16))}return SA.trim()},Ta=function(l,C){C||(C=21);var D=Xt(),T=Gs(l.colors,C),$=[];$.push({key:"FunctionType",value:"0"}),$.push({key:"Domain",value:"[0.0 1.0]"}),$.push({key:"Size",value:"["+C+"]"}),$.push({key:"BitsPerSample",value:"8"}),$.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),$.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Se({data:T,additionalKeyValues:$,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:D}),O("endobj"),l.objectNumber=Xt(),O("<< /ShadingType "+l.type),O("/ColorSpace /DeviceRGB");var BA="/Coords ["+X(parseFloat(l.coords[0]))+" "+X(parseFloat(l.coords[1]))+" ";l.type===2?BA+=X(parseFloat(l.coords[2]))+" "+X(parseFloat(l.coords[3])):BA+=X(parseFloat(l.coords[2]))+" "+X(parseFloat(l.coords[3]))+" "+X(parseFloat(l.coords[4]))+" "+X(parseFloat(l.coords[5])),O(BA+="]"),l.matrix&&O("/Matrix ["+l.matrix.toString()+"]"),O("/Function "+D+" 0 R"),O("/Extend [true true]"),O(">>"),O("endobj")},Ra=function(l,C){var D=Gt(),T=Xt();C.push({resourcesOid:D,objectOid:T}),l.objectNumber=T;var $=[];$.push({key:"Type",value:"/Pattern"}),$.push({key:"PatternType",value:"1"}),$.push({key:"PaintType",value:"1"}),$.push({key:"TilingType",value:"1"}),$.push({key:"BBox",value:"["+l.boundingBox.map(X).join(" ")+"]"}),$.push({key:"XStep",value:X(l.xStep)}),$.push({key:"YStep",value:X(l.yStep)}),$.push({key:"Resources",value:D+" 0 R"}),l.matrix&&$.push({key:"Matrix",value:"["+l.matrix.toString()+"]"}),Se({data:l.stream,additionalKeyValues:$,objectId:l.objectNumber}),O("endobj")},Xn=function(l){var C;for(C in ut)ut.hasOwnProperty(C)&&(ut[C]instanceof kn?Ta(ut[C]):ut[C]instanceof Si&&Ra(ut[C],l))},js=function(l){for(var C in l.objectNumber=Xt(),O("<<"),l)switch(C){case"opacity":O("/ca "+sA(l[C]));break;case"stroke-opacity":O("/CA "+sA(l[C]))}O(">>"),O("endobj")},Ga=function(){var l;for(l in Nt)Nt.hasOwnProperty(l)&&js(Nt[l])},Ti=function(){for(var l in O("/XObject <<"),ee)ee.hasOwnProperty(l)&&ee[l].objectNumber>=0&&O("/"+l+" "+ee[l].objectNumber+" 0 R");lt.publish("putXobjectDict"),O(">>")},ja=function(){oe.oid=Xt(),O("<<"),O("/Filter /Standard"),O("/V "+oe.v),O("/R "+oe.r),O("/U <"+oe.toHexString(oe.U)+">"),O("/O <"+oe.toHexString(oe.O)+">"),O("/P "+oe.P),O(">>"),O("endobj")},Vs=function(){for(var l in O("/Font <<"),Ft)Ft.hasOwnProperty(l)&&(p===!1||p===!0&&w.hasOwnProperty(l))&&O("/"+l+" "+Ft[l].objectNumber+" 0 R");O(">>")},Va=function(){if(Object.keys(ut).length>0){for(var l in O("/Shading <<"),ut)ut.hasOwnProperty(l)&&ut[l]instanceof kn&&ut[l].objectNumber>=0&&O("/"+l+" "+ut[l].objectNumber+" 0 R");lt.publish("putShadingPatternDict"),O(">>")}},zn=function(l){if(Object.keys(ut).length>0){for(var C in O("/Pattern <<"),ut)ut.hasOwnProperty(C)&&ut[C]instanceof g.TilingPattern&&ut[C].objectNumber>=0&&ut[C].objectNumber<l&&O("/"+C+" "+ut[C].objectNumber+" 0 R");lt.publish("putTilingPatternDict"),O(">>")}},qa=function(){if(Object.keys(Nt).length>0){var l;for(l in O("/ExtGState <<"),Nt)Nt.hasOwnProperty(l)&&Nt[l].objectNumber>=0&&O("/"+l+" "+Nt[l].objectNumber+" 0 R");lt.publish("putGStateDict"),O(">>")}},Dt=function(l){Ie(l.resourcesOid,!0),O("<<"),O("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Vs(),Va(),zn(l.objectOid),qa(),Ti(),O(">>"),O("endobj")},qs=function(){var l=[];Vn(),Ga(),Wn(),Xn(l),lt.publish("putResources"),l.forEach(Dt),Dt({resourcesOid:qe,objectOid:Number.MAX_SAFE_INTEGER}),lt.publish("postPutResources")},Ws=function(){lt.publish("p
`)[0].split("<")[0]+": "+T.message;if(!VA.console)throw new Error(D);VA.console.error(D,T),VA.alert&&alert(D)}},l.foo.bar=l,l.foo},Jn=function(l,C){var D,T,$,BA,CA,SA,KA,ZA,tt;if($=(C=C||{}).sourceEncoding||"Unicode",CA=C.outputEncoding,(C.autoencode||CA)&&Ft[rt].metadata&&Ft[rt].metadata[$]&&Ft[rt].metadata[$].encoding&&(BA=Ft[rt].metadata[$].encoding,!CA&&Ft[rt].encoding&&(CA=Ft[rt].encoding),!CA&&BA.codePages&&(CA=BA.codePages[0]),typeof CA=="string"&&(CA=BA[CA]),CA)){for(KA=!1,SA=[],D=0,T=l.length;D<T;D++)(ZA=CA[l.charCodeAt(D)])?SA.push(String.fromCharCode(ZA)):SA.push(l[D]),SA[D].charCodeAt(0)>>8&&(KA=!0);l=SA.join("")}for(D=l.length;KA===void 0&&D!==0;)l.charCodeAt(D-1)>>8&&(KA=!0),D--;if(!KA)return l;for(SA=C.noBOM?[]:[254,255],D=0,T=l.length;D<T;D++){if((tt=(ZA=l.charCodeAt(D))>>8)>>8)throw new Error("Character at position "+D+" of string '"+l+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");SA.push(tt),SA.push(ZA-(tt<<8))}return String.fromCharCode.apply(void 0,SA)},Fe=g.__private__.pdfEscape=g.pdfEscape=function(l,C){return Jn(l,C).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Gi=g.__private__.beginPage=function(l){QA[++Ht]=[],zA[Ht]={objId:0,contentsObjId:0,userUnit:Number(c),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(l[0]),topRightY:Number(l[1])}},Js(Ht),gA(QA[P])},zs=function(l,C){var D,T,$;switch(t=C||t,typeof l=="string"&&(D=y(l.toLowerCase()),Array.isArray(D)&&(T=D[0],$=D[1])),Array.isArray(l)&&(T=l[0]*xA,$=l[1]*xA),isNaN(T)&&(T=n[0],$=n[1]),(T>14400||$>14400)&&(yt.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),T=Math.min(14400,T),$=Math.min(14400,$)),n=[T,$],t.substr(0,1)){case"l":$>T&&(n=[$,T]);break;case"p":T>$&&(n=[$,T])}Gi(n),eo(Wi),O(Je),zi!==0&&O(zi+" J"),Ji!==0&&O(Ji+" j"),lt.publish("addPage",{pageNumber:Ht})},Xa=function(l){l>0&&l<=Ht&&(QA.splice(l,1),zA.splice(l,1),Ht--,P>Ht&&(P=Ht),this.setPage(P))},Js=function(l){l>0&&l<=Ht&&(P=l)},za=g.__private__.getNumberOfPages=g.getNumberOfPages=function(){return QA.length-1},Ys=function(l,C,D){var T,$=void 0;return D=D||{},l=l!==void 0?l:Ft[rt].fontName,C=C!==void 0?C:Ft[rt].fontStyle,T=l.toLowerCase(),It[T]!==void 0&&It[T][C]!==void 0?$=It[T][C]:It[l]!==void 0&&It[l][C]!==void 0?$=It[l][C]:D.disableWarning===!1&&yt.warn("Unable to look up font label for font '"+l+"', '"+C+"'. Refer to getFontList() for available fonts."),$||D.noFallback||($=It.times[C])==null&&($=It.times.normal),$},Ja=g.__private__.putInfo=function(){var l=Xt(),C=function(T){return T};for(var D in B!==null&&(C=oe.encryptor(l,0)),O("<<"),O("/Producer ("+Fe(C("jsPDF "+jA.version))+")"),qA)qA.hasOwnProperty(D)&&qA[D]&&O("/"+D.substr(0,1).toUpperCase()+D.substr(1)+" ("+Fe(C(qA[D]))+")");O("/CreationDate ("+Fe(C(aA))+")"),O(">>"),O("endobj")},ji=g.__private__.putCatalog=function(l){var C=(l=l||{}).rootDictionaryObjId||xr;switch(Xt(),O("<<"),O("/Type /Catalog"),O("/Pages "+C+" 0 R"),EA||(EA="fullwidth"),EA){case"fullwidth":O("/OpenAction [3 0 R /FitH null]");break;case"fullheight":O("/OpenAction [3 0 R /FitV null]");break;case"fullpage":O("/OpenAction [3 0 R /Fit]");break;case"original":O("/OpenAction [3 0 R /XYZ null null 1]");break;default:var D=""+EA;D.substr(D.length-1)==="%"&&(EA=parseInt(EA)/100),typeof EA=="number"&&O("/OpenAction [3 0 R /XYZ null null "+sA(EA)+"]")}switch(et||(et="continuous"),et){case"continuous":O("/PageLayout /OneColumn");break;case"single":O("/PageLayout /SinglePage");break;case"two":case"twoleft":O("/PageLayout /TwoColumnLeft");break;case"tworight":O("/PageLayout /TwoColumnRight")}XA&&O("/PageMode /"+XA),lt.publish("putCatalog"),O(">>"),O("endobj")},Ya=g.__private__.putTrailer=function(){O("trailer"),O("<<"),O("/Size "+(z+1)),O("/Root "+z+" 0 R"),O("/Info "+(z-1)+" 0 R"),B!==null&&O("/Encrypt "+oe.oid+" 0 R"),O("/ID [ <"+iA+"> <"+iA+"> ]"),O(">>")},Za=g.__private__.putHeader=function(){O("%PDF-"+U),O("%ºß¬à")},$a=g.__private__.putXRef=function(){var l="0000000000";O("xref"),O("0 "+(z+1)),O("0000000000 65535
`)},Yn=g.__private__.getBlob=function(l){return new Blob([_A(l)],{type:"application/pdf"})},Zn=g.output=g.__private__.output=ze(function(l,C){switch(typeof(C=C||{})=="string"?C={filename:C}:C.filename=C.filename||"generated.pdf",l){case void 0:return Nr();case"save":g.save(C.filename);break;case"arraybuffer":return _A(Nr());case"blob":return Yn(Nr());case"bloburi":case"bloburl":if(VA.URL!==void 0&&typeof VA.URL.createObjectURL=="function")return VA.URL&&VA.URL.createObjectURL(Yn(Nr()))||void 0;yt.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var D="",T=Nr();try{D=Su(T)}catch{D=Su(unescape(encodeURIComponent(T)))}return"data:application/pdf;filename="+C.filename+";base64,"+D;case"pdfobjectnewwindow":if(Object.prototype.toString.call(VA)==="[object Window]"){var $="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",BA=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';C.pdfObjectUrl&&($=C.pdfObjectUrl,BA="");var CA='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+$+'"'+BA+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(C)+");<\/script></body></html>",SA=VA.open();return SA!==null&&SA.document.write(CA),SA}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(VA)==="[object Window]"){var KA='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(C.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+C.filename+'" width="500px" height="400px" /></body></html>',ZA=VA.open();if(ZA!==null){ZA.document.write(KA);var tt=this;ZA.document.documentElement.querySelector("#pdfViewer").onload=function(){ZA.document.title=C.filename,ZA.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(tt.output("bloburl"))}}return ZA}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(VA)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var it='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",C)+'"></iframe></body></html>',xt=VA.open();if(xt!==null&&(xt.document.write(it),xt.document.title=C.filename),xt||typeof safari>"u")return xt;break;case"datauri":case"dataurl":return VA.document.location.href=this.output("datauristring",C);default:return null}}),Zs=function(l){return Array.isArray(bn)===!0&&bn.indexOf(l)>-1};switch(r){case"pt":xA=1;break;case"mm":xA=72/25.4;break;case"cm":xA=72/2.54;break;case"in":xA=72;break;case"px":xA=Zs("px_scaling")==1?.75:96/72;break;case"pc":case"em":xA=12;break;case"ex":xA=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);xA=r}var oe=null;vA(),tA();var Ac=function(l){return B!==null?oe.encryptor(l,0):function(C){return C}},$s=g.__private__.getPageInfo=g.getPageInfo=function(l){if(isNaN(l)||l%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:zA[l].objId,pageNumber:l,pageContext:zA[l]}},WA=g.__private__.getPageInfoByObjId=function(l){if(isNaN(l)||l%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var C in zA)if(zA[C].objId===l)break;return $s(C)},tc=g.__private__.getCurrentPageInfo=g.getCurrentPageInfo=function(){return{objId:zA[P].objId,pageNumber:P,pageContext:zA[P]}};g.addPage=function(){return zs.apply(this,arguments),this},g.setPage=function(){return Js.apply(this,arguments),gA.call(this,QA[P]),this},g.insertPage=function(l){return this.addPage(),this.movePage(P,l),this},g.movePage=function(l,C){var D,T;if(l>C){D=QA[l],T=zA[
`,this.setCharSpace(this.getCharSpace()||0)),(xt=T.horizontalScale)!==void 0&&(Yt+=X(100*xt)+` Tz
`),T.lang;var ye=-1,lc=T.renderingMode!==void 0?T.renderingMode:T.stroke,ss=jt.internal.getCurrentPageInfo().pageContext;switch(lc){case 0:case!1:case"fill":ye=0;break;case 1:case!0:case"stroke":ye=1;break;case 2:case"fillThenStroke":ye=2;break;case 3:case"invisible":ye=3;break;case 4:case"fillAndAddForClipping":ye=4;break;case 5:case"strokeAndAddPathForClipping":ye=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":ye=6;break;case 7:case"addToPathForClipping":ye=7}var co=ss.usedRenderingMode!==void 0?ss.usedRenderingMode:-1;ye!==-1?Yt+=ye+` Tr
`:co!==-1&&(Yt+=`0 Tr
`),ye!==-1&&(ss.usedRenderingMode=ye),KA=T.align||"left";var Ze,os=bA*Pe,hc=jt.internal.pageSize.getWidth(),fc=Ft[rt];ZA=T.charSpace||ti,tt=T.maxWidth||0,it=Object.assign({autoencode:!0,noBOM:!0},T.flags);var Jr=[];if(Object.prototype.toString.call(l)==="[object Array]"){var De;CA=ts(l),KA!=="left"&&(Ze=CA.map(function(vt){return jt.getStringUnitWidth(vt,{font:fc,charSpace:ZA,fontSize:bA,doKerning:!1})*bA/Sr}));var $e,Yr=0;if(KA==="right"){C-=Ze[0],l=[],Qe=CA.length;for(var mr=0;mr<Qe;mr++)mr===0?($e=Hr(C),De=Wr(D)):($e=N(Yr-Ze[mr]),De=-os),l.push([CA[mr],$e,De]),Yr=Ze[mr]}else if(KA==="center"){C-=Ze[0]/2,l=[],Qe=CA.length;for(var Pr=0;Pr<Qe;Pr++)Pr===0?($e=Hr(C),De=Wr(D)):($e=N((Yr-Ze[Pr])/2),De=-os),l.push([CA[Pr],$e,De]),Yr=Ze[Pr]}else if(KA==="left"){l=[],Qe=CA.length;for(var ci=0;ci<Qe;ci++)l.push(CA[ci])}else{if(KA!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');l=[],Qe=CA.length,tt=tt!==0?tt:hc;for(var Ar=0;Ar<Qe;Ar++)De=Ar===0?Wr(D):-os,$e=Ar===0?Hr(C):0,Ar<Qe-1?Jr.push(X(N((tt-Ze[Ar])/(CA[Ar].split(" ").length-1)))):Jr.push(0),l.push([CA[Ar],$e,De])}}var ui=typeof T.R2L=="boolean"?T.R2L:OA;ui===!0&&(l=es(l,function(vt,bt,Mt){return[vt.split("").reverse().join(""),bt,Mt]})),BA={text:l,x:C,y:D,options:T,mutex:{pdfEscape:Fe,activeFontKey:rt,fonts:Ft,activeFontSize:bA}},lt.publish("postProcessText",BA),l=BA.text,Ye=BA.mutex.isHex||!1;var as=Ft[rt].encoding;as!=="WinAnsiEncoding"&&as!=="StandardEncoding"||(l=es(l,function(vt,bt,Mt){return[ao(vt),bt,Mt]})),CA=ts(l),l=[];for(var Zr,tr,Dr,Nn=0,li=1,Hn=Array.isArray(CA[0])?li:Nn,$r="",cs=function(vt,bt,Mt){var zt="";return Mt instanceof RA?(Mt=typeof T.angle=="number"?Ve(Mt,new RA(1,0,0,1,vt,bt)):Ve(new RA(1,0,0,1,vt,bt),Mt),G===E.ADVANCED&&(Mt=Ve(new RA(1,0,0,-1,0,0),Mt)),zt=Mt.join(" ")+` Tm
`):zt=X(vt)+" "+X(bt)+` Td
`,zt},ke=0;ke<CA.length;ke++){switch($r="",Hn){case li:Dr=(Ye?"<":"(")+CA[ke][0]+(Ye?">":")"),Zr=parseFloat(CA[ke][1]),tr=parseFloat(CA[ke][2]);break;case Nn:Dr=(Ye?"<":"(")+CA[ke]+(Ye?">":")"),Zr=Hr(C),tr=Wr(D)}Jr!==void 0&&Jr[ke]!==void 0&&($r=Jr[ke]+` Tw
`),ke===0?l.push($r+cs(Zr,tr,kt)+Dr):Hn===Nn?l.push($r+Dr):Hn===li&&l.push($r+cs(Zr,tr,kt)+Dr)}l=Hn===Nn?l.join(` Tj
T* `):l.join(` Tj
`),l+=` Tj
`;var kr=`BT
/`;return kr+=rt+" "+bA+` Tf
`,kr+=X(bA*Pe)+` TL
`,kr+=En+`
`,kr+=Yt,kr+=l,O(kr+="ET"),w[rt]=!0,jt};var ec=g.__private__.clip=g.clip=function(l){return O(l==="evenodd"?"W*":"W"),this};g.clipEvenOdd=function(){return ec("evenodd")},g.__private__.discardPath=g.discardPath=function(){return O("n"),this};var wr=g.__private__.isValidStyle=function(l){var C=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(l)!==-1&&(C=!0),C};g.__private__.setDefaultPathOperation=g.setDefaultPathOperation=function(l){return wr(l)&&(f=l),this};var Ao=g.__private__.getStyle=g.getStyle=function(l){var C=f;switch(l){case"D":case"S":C="S";break;case"F":C="f";break;case"FD":case"DF":C="B";break;case"f":case"f*":case"B":case"B*":C=l}return C},to=g.close=function(){return O("h"),this};g.stroke=function(){return O("S"),this},g.fill=function(l){return $n("f",l),this},g.fillEvenOdd=function(l){return $n("f*",l),this},g.fillStroke=function(l){return $n("B",l),this},g.fillStrokeEvenOdd=function(l){return $n("B*",l),this};var $n=function(l,C){gt(C)==="object"?nc(C,l):O(l)},Vi=function(l){l===null||G===E.ADVANCED&&l===void 0||(l=Ao(l),O(l))};function rc(l,C,D,T,$){var BA=new Si(C||this.boundingBox,D||this.xStep,T||this.yStep,this.gState,$||this.matrix);BA.stream=this.stream;var CA=l+"$$"+this.cloneIndex+++"$$";return Ce(CA,BA),BA}var nc=function(l,C){var D=vn[l.key],T=ut[D];if(T instanceof kn)O("q"),O(ic(C)),T.gState&&g.setGState(T.gState),O(l.matrix.toString()+" cm"),O("/"+D+" sh"),O("Q");else if(T instanceof Si){var $=new RA(1,0,0,-1,0,zr());l.matrix&&($=$.multiply(l.matrix||gr),D=rc.call(T,l.key,l.boundingBox,l.xStep,l.yStep,$).id),O("q"),O("/Pattern cs"),O("/"+D+" scn"),T.gState&&g.setGState(T.gState),O(C),O("Q")}},ic=function(l){switch(l){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},qi=g.moveTo=function(l,C){return O(X(N(l))+" "+X(_(C))+" m"),this},Ln=g.lineTo=function(l,C){return O(X(N(l))+" "+X(_(C))+" l"),this},qr=g.curveTo=function(l,C,D,T,$,BA){return O([X(N(l)),X(_(C)),X(N(D)),X(_(T)),X(N($)),X(_(BA)),"c"].join(" ")),this};g.__private__.line=g.line=function(l,C,D,T,$){if(isNaN(l)||isNaN(C)||isNaN(D)||isNaN(T)||!wr($))throw new Error("Invalid arguments passed to jsPDF.line");return G===E.COMPAT?this.lines([[D-l,T-C]],l,C,[1,1],$||"S"):this.lines([[D-l,T-C]],l,C,[1,1]).stroke()},g.__private__.lines=g.lines=function(l,C,D,T,$,BA){var CA,SA,KA,ZA,tt,it,xt,kt,jt,ae,Yt,Ye;if(typeof l=="number"&&(Ye=D,D=C,C=l,l=Ye),T=T||[1,1],BA=BA||!1,isNaN(C)||isNaN(D)||!Array.isArray(l)||!Array.isArray(T)||!wr($)||typeof BA!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(qi(C,D),CA=T[0],SA=T[1],ZA=l.length,ae=C,Yt=D,KA=0;KA<ZA;KA++)(tt=l[KA]).length===2?(ae=tt[0]*CA+ae,Yt=tt[1]*SA+Yt,Ln(ae,Yt)):(it=tt[0]*CA+ae,xt=tt[1]*SA+Yt,kt=tt[2]*CA+ae,jt=tt[3]*SA+Yt,ae=tt[4]*CA+ae,Yt=tt[5]*SA+Yt,qr(it,xt,kt,jt,ae,Yt));return BA&&to(),Vi($),this},g.path=function(l){for(var C=0;C<l.length;C++){var D=l[C],T=D.c;switch(D.op){case"m":qi(T[0],T[1]);break;case"l":Ln(T[0],T[1]);break;case"c":qr.apply(this,T);break;case"h":to()}}return this},g.__private__.rect=g.rect=function(l,C,D,T,$){if(isNaN(l)||isNaN(C)||isNaN(D)||isNaN(T)||!wr($))throw new Error("Invalid arguments passed to jsPDF.rect");return G===E.COMPAT&&(T=-T),O([X(N(l)),X(_(C)),X(N(D)),X(N(T)),"re"].join(" ")),Vi($),this},g.__private__.triangle=g.triangle=function(l,C,D,T,$,BA,CA){if(isNaN(l)||isNaN(C)||isNaN(D)||isNaN(T)||isNaN($)||isNaN(BA)||!wr(CA))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[D-l,T-C],[$-D,BA-T],[l-$,C-BA]],l,C,[1,1],CA,!0),this},g.__private__.roundedRect=g.roundedRect=function(l,C,D,T,$,BA,CA){if(isNaN(l)||isNaN(C)||isNaN(D)||isNaN(T)||isNaN($)||isNaN(BA)||!wr(CA))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var SA=4/3*(Math.SQRT2-1);return $=Math.min($,.5*D),BA=Math.min(BA,.5*T),this.lines([[D-2*$,0],[$*SA,0,$,BA-BA*SA,$,BA],[0,T-2*BA],[0,BA*SA,-$*SA,BA,-$,BA],[2*$-D,0],[-$*SA,0,-$,-BA*SA,-$,-BA],[0,2*BA-T],[0,-BA*SA,$*SA,-BA,$,-BA]],l+$,C,[1,1],CA,!0),this},g.__private__
`),i}},ku=function(e,A){var t=e.fontSize===0?e.maxFontSize:e.fontSize,r={text:"",fontSize:""},n=(A=(A=A.substr(0,1)=="("?A.substr(1):A).substr(A.length-1)==")"?A.substr(0,A.length-1):A).split(" ");n=e.multiline?n.map(function(x){return x.split(`
`)}):n.map(function(x){return[x]});var i=t,o=MA.internal.getHeight(e)||0;o=o<0?-o:o;var c=MA.internal.getWidth(e)||0;c=c<0?-c:c;var u=function(x,N,K){if(x+1<n.length){var _=N+" "+n[x+1][0];return ea(_,e,K).width<=c-4}return!1};i++;A:for(;i>0;){A="",i--;var f,B,p=ea("3",e,i).height,w=e.multiline?o-i:(o-p)/2,g=w+=2,U=0,b=0,S=0;if(i<=0){A=`(...) Tj
`,A+="% Width of Text: "+ea(A,e,i=12).width+", FieldWidth:"+c+`
`;break}for(var y="",E=0,G=0;G<n.length;G++)if(n.hasOwnProperty(G)){var Y=!1;if(n[G].length!==1&&S!==n[G].length-1){if((p+2)*(E+2)+2>o)continue A;y+=n[G][S],Y=!0,b=G,G--}else{y=(y+=n[G][S]+" ").substr(y.length-1)==" "?y.substr(0,y.length-1):y;var W=parseInt(G),Z=u(W,y,i),X=G>=n.length-1;if(Z&&!X){y+=" ",S=0;continue}if(Z||X){if(X)b=W;else if(e.multiline&&(p+2)*(E+2)+2>o)continue A}else{if(!e.multiline||(p+2)*(E+2)+2>o)continue A;b=W}}for(var M="",AA=U;AA<=b;AA++){var sA=n[AA];if(e.multiline){if(AA===b){M+=sA[S]+" ",S=(S+1)%sA.length;continue}if(AA===U){M+=sA[sA.length-1]+" ";continue}}M+=sA[0]+" "}switch(M=M.substr(M.length-1)==" "?M.substr(0,M.length-1):M,B=ea(M,e,i).width,e.textAlign){case"right":f=c-B-2;break;case"center":f=(c-B)/2;break;case"left":default:f=2}A+=JA(f)+" "+JA(g)+` Td
`,A+="("+Rn(M)+`) Tj
`,A+=-JA(f)+` 0 Td
`,g=-(i+2),B=0,U=Y?b:b+1,E++,y=""}break}return r.text=A,r.fontSize=i,r},ea=function(e,A,t){var r=A.scope.internal.getFont(A.fontName,A.fontStyle),n=A.scope.getStringUnitWidth(e,{font:r,fontSize:parseFloat(t),charSpace:0})*parseFloat(t);return{height:A.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(t),charSpace:0})*parseFloat(t)*1.5,width:n}},Qp={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},yp=function(e,A){var t={type:"reference",object:e};A.internal.getPageInfo(e.page).pageContext.annotations.find(function(r){return r.type===t.type&&r.object===t.object})===void 0&&A.internal.getPageInfo(e.page).pageContext.annotations.push(t)},vp=function(e,A){for(var t in e)if(e.hasOwnProperty(t)){var r=t,n=e[t];A.internal.newObjectDeferredBegin(n.objId,!0),gt(n)==="object"&&typeof n.putStream=="function"&&n.putStream(),delete e[r]}},bp=function(e,A){if(A.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(ur.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(Qp)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");zu=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new C1,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){(function(t){t.internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0})(e)}),e.internal.events.subscribe("buildDocument",function(){(function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in r)if(r.hasOwnProperty(n)){var i=r[n];i.objId=void 0,i.hasAnnotation&&yp(i,t)}})(e)}),e.internal.events.subscribe("putCatalog",function(){(function(t){if(t.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)}),e.internal.events.subscribe("postPutPages",function(t){(function(r,n){var i=!r;for(var o in r||(n.internal.newObjectDeferredBegin(n.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),n.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||n.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(o)){var c=r[o],u=[],f=c.Rect;if(c.Rect&&(c.Rect=Cp(c.Rect,n)),n.internal.newObjectDeferredBegin(c.objId,!0),c.DA=MA.createDefaultAppearanceStream(c),gt(c)==="object"&&typeof c.getKeyValueListForStream=="function"&&(u=c.getKeyValueListForStream()),c.Rect=f,c.hasAppearanceStream&&!c.appearanceStreamContent){var B=Fp(c);u.push({key:"AP",value:"<</N "+B+">>"}),n.internal.acroformPlugin.xForms.push(B)}if(c.appearanceStreamContent){var p="";for(var w in c.appearanceStreamContent)if(c.appearanceStreamContent.hasOwnProperty(w)){var g=c.appearanceStreamContent[w];if(p+="/"+w+" ",p+="<<",Object.keys(g).length>=1||Array.isArray(g)){for(var o in g)if(g.hasOwnProperty(o)){var U=g[o];typeof U=="function"&&(U=U.call(n,c)),p+="/"+o+" "+U+" ",n.internal.acroformPlugin.xForms.indexOf(U)>=0||n.internal.acroformPlugin.xForms.push(U)}}else typeof(U=g)=="function"&&(U=U.call(n,c)),p+="/"+o+" "+U,n.internal.acroformPlugin.xForms.indexOf(U)>=0||n.internal.acroformPlugin.xForms.push(U);p+=">>"}u.push({key:"AP",value:`<<
`+p+">>"})}n.internal.putStream({additionalKeyValues:u,objectId:c.objId}),n.internal.out("endobj")}i&&vp(n.internal.acroformPlugin.xForms,n)})(t,e)}),e.internal.acroformPlugin.isInitialized=!0}},w1=Pt.__acroform__.arrayToPdfArray=function(e,A,t){var r=function(o){return o};if(Array.isArray(e)){for(var n="[",i=0;i<e.length;i++)switch(i!==0&&(n+=" "),gt(e[i])){case"boolean":case"number":case"object":n+=e[i].toString();break;case"string":e[i].substr(0,1)!=="/"?(A!==void 0&&t&&(r=t.internal.getEncryptor(A)),n+="("+Rn(r(e[i].toString()))+")"):n+=e[i].toString()}return n+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},ru=function(e,A,t){var r=function(n){return n};return A!==void 0&&t&&(r=t.internal.getEncryptor(A)),(e=e||"").toString(),e="("+Rn(r(e))+")"},vr=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};vr.prototype.toString=function(){return this.objId+" 0 R"},vr.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},vr.prototype.getKeyValueListForStream=function(){var e=[],A=Object.getOwnPropertyNames(this).filter(function(i){return i!="content"&&i!="appearanceStreamContent"&&i!="scope"&&i!="objId"&&i.substring(0,1)!="_"});for(var t in A)if(Object.getOwnPropertyDescriptor(this,A[t]).configurable===!1){var r=A[t],n=this[r];n&&(Array.isArray(n)?e.push({key:r,value:w1(n,this.objId,this.scope)}):n instanceof vr?(n.scope=this.scope,e.push({key:r,value:n.objId+" 0 R"})):typeof n!="function"&&e.push({key:r,value:n}))}return e};var m1=function(){vr.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,A=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){e=t.trim()},get:function(){return e||null}})};Le(m1,vr);var C1=function(){vr.call(this);var e,A=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return A.length>0?A:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return A}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var t=function(r){return r};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+Rn(t(e))+")"}},set:function(t){e=t}})};Le(C1,vr);var ur=function e(){vr.call(this);var A=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return A},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute F supplied.');A=y}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Kt(A,3)},set:function(y){y?this.F=Tt(A,3):this.F=Rt(A,3)}});var t=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return t},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute Ff supplied.');t=y}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(y){r=y!==void 0?y:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(y){r[0]=y}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(y){r[1]=y}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r
`)}},set:function(t){gt(t)==="object"&&(A=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return A.CA||""},set:function(t){typeof t=="string"&&(A.CA=t)}}),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}})};Le(te,ur);var la=function(){te.call(this),this.pushButton=!0};Le(la,te);var _i=function(){te.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(A){e=A!==void 0?A:[]}})};Le(_i,te);var La=function(){var e,A;ur.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(n){e=n}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return A},set:function(n){A=n}});var t,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(c){return c};this.scope&&(n=this.scope.internal.getEncryptor(this.objId));var i,o=[];for(i in o.push("<<"),r)o.push("/"+i+" ("+Rn(n(r[i]))+")");return o.push(">>"),o.join(`
`)},set:function(n){gt(n)==="object"&&(r=n)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(n){typeof n=="string"&&(r.CA=n)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(n){t="/"+n}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=MA.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Le(La,ur),_i.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 A in this.Kids)if(this.Kids.hasOwnProperty(A)){var t=this.Kids[A];t.appearanceStreamContent=e.createAppearanceStream(t.optionName),t.caption=e.getCA()}},_i.prototype.createOption=function(e){var A=new La;return A.Parent=this,A.optionName=e,this.Kids.push(A),Up.call(this.scope,A),A};var ha=function(){te.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=MA.CheckBox.createAppearanceStream()};Le(ha,te);var Tn=function(){ur.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Kt(this.Ff,13)},set:function(A){A?this.Ff=Tt(this.Ff,13):this.Ff=Rt(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Kt(this.Ff,21)},set:function(A){A?this.Ff=Tt(this.Ff,21):this.Ff=Rt(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Kt(this.Ff,23)},set:function(A){A?this.Ff=Tt(this.Ff,23):this.Ff=Rt(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Kt(this.Ff,24)},set:function(A){A?this.Ff=Tt(this.Ff,24):this.Ff=Rt(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Kt(this.Ff,25)},set:function(A){A?this.Ff=Tt(this.Ff,25):this.Ff=Rt(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Kt(this.Ff,26)},set:function(A){A?this.Ff=Tt(this.Ff,26):this.Ff=Rt(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(A){e=A}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(A){Number.isInteger(A)&&(e=A)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Le(Tn,ur);var fa=function(){Tn.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Kt(this.Ff,14)},set:function(e){e?this.Ff=Tt(this.Ff,14):this.Ff=Rt(this.Ff,14)}}),this.password=!0};Le(fa,Tn);var MA={CheckBox:{createAppearanceStream:function(){return{N:{On:MA.CheckBox.YesNormal},D:{On:MA.CheckBox.YesPushDown,Off:MA.CheckBox.OffPushDown}}},YesPushDown:function(e){var A=Qr(e);A.scope=e.scope;var t=[],r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color),i=ku(e,e.caption);return t.push("0.749023 g"),t.push("0 0 "+JA(MA.internal.getWidth(e))+" "+JA(MA.internal.getHeight(e))+" re"),t.push("f"),t.push("BMC"),t.push("q"),t.push("0 0 1 rg"),t.push("/"+r+" "+JA(i.fontSize)+" Tf "+n),t.push("BT"),t.push(i.text),t.push("ET"),t.push("Q"),t.push("EMC"),A.stream=t.join(`
`),A},YesNormal:function(e){var A=Qr(e);A.scope=e.scope;var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),n=[],i=MA.internal.getHeight(e),o=MA.internal.getWidth(e),c=ku(e,e.caption);return n.push("1 g"),n.push("0 0 "+JA(o)+" "+JA(i)+" re"),n.push("f"),n.push("q"),n.push("0 0 1 rg"),n.push("0 0 "+JA(o-1)+" "+JA(i-1)+" re"),n.push("W"),n.push("n"),n.push("0 g"),n.push("BT"),n.push("/"+t+" "+JA(c.fontSize)+" Tf "+r),n.push(c.text),n.push("ET"),n.push("Q"),A.stream=n.join(`
`),A},OffPushDown:function(e){var A=Qr(e);A.scope=e.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+JA(MA.internal.getWidth(e))+" "+JA(MA.internal.getHeight(e))+" re"),t.push("f"),A.stream=t.join(`
`),A}},RadioButton:{Circle:{createAppearanceStream:function(e){var A={D:{Off:MA.RadioButton.Circle.OffPushDown},N:{}};return A.N[e]=MA.RadioButton.Circle.YesNormal,A.D[e]=MA.RadioButton.Circle.YesPushDown,A},getCA:function(){return"l"},YesNormal:function(e){var A=Qr(e);A.scope=e.scope;var t=[],r=MA.internal.getWidth(e)<=MA.internal.getHeight(e)?MA.internal.getWidth(e)/4:MA.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var n=MA.internal.Bezier_C,i=Number((r*n).toFixed(5));return t.push("q"),t.push("1 0 0 1 "+un(MA.internal.getWidth(e)/2)+" "+un(MA.internal.getHeight(e)/2)+" cm"),t.push(r+" 0 m"),t.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),t.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),t.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),t.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),t.push("f"),t.push("Q"),A.stream=t.join(`
`),A},YesPushDown:function(e){var A=Qr(e);A.scope=e.scope;var t=[],r=MA.internal.getWidth(e)<=MA.internal.getHeight(e)?MA.internal.getWidth(e)/4:MA.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*MA.internal.Bezier_C).toFixed(5)),o=Number((r*MA.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+un(MA.internal.getWidth(e)/2)+" "+un(MA.internal.getHeight(e)/2)+" cm"),t.push(n+" 0 m"),t.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),t.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),t.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),t.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),t.push("f"),t.push("Q"),t.push("0 g"),t.push("q"),t.push("1 0 0 1 "+un(MA.internal.getWidth(e)/2)+" "+un(MA.internal.getHeight(e)/2)+" cm"),t.push(r+" 0 m"),t.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),t.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),t.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),t.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),t.push("f"),t.push("Q"),A.stream=t.join(`
`),A},OffPushDown:function(e){var A=Qr(e);A.scope=e.scope;var t=[],r=MA.internal.getWidth(e)<=MA.internal.getHeight(e)?MA.internal.getWidth(e)/4:MA.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*MA.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+un(MA.internal.getWidth(e)/2)+" "+un(MA.internal.getHeight(e)/2)+" cm"),t.push(n+" 0 m"),t.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),t.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),t.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),t.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),t.push("f"),t.push("Q"),A.stream=t.join(`
`),A}},Cross:{createAppearanceStream:function(e){var A={D:{Off:MA.RadioButton.Cross.OffPushDown},N:{}};return A.N[e]=MA.RadioButton.Cross.YesNormal,A.D[e]=MA.RadioButton.Cross.YesPushDown,A},getCA:function(){return"8"},YesNormal:function(e){var A=Qr(e);A.scope=e.scope;var t=[],r=MA.internal.calculateCross(e);return t.push("q"),t.push("1 1 "+JA(MA.internal.getWidth(e)-2)+" "+JA(MA.internal.getHeight(e)-2)+" re"),t.push("W"),t.push("n"),t.push(JA(r.x1.x)+" "+JA(r.x1.y)+" m"),t.push(JA(r.x2.x)+" "+JA(r.x2.y)+" l"),t.push(JA(r.x4.x)+" "+JA(r.x4.y)+" m"),t.push(JA(r.x3.x)+" "+JA(r.x3.y)+" l"),t.push("s"),t.push("Q"),A.stream=t.join(`
`),A},YesPushDown:function(e){var A=Qr(e);A.scope=e.scope;var t=MA.internal.calculateCross(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+JA(MA.internal.getWidth(e))+" "+JA(MA.internal.getHeight(e))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+JA(MA.internal.getWidth(e)-2)+" "+JA(MA.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(JA(t.x1.x)+" "+JA(t.x1.y)+" m"),r.push(JA(t.x2.x)+" "+JA(t.x2.y)+" l"),r.push(JA(t.x4.x)+" "+JA(t.x4.y)+" m"),r.push(JA(t.x3.x)+" "+JA(t.x3.y)+" l"),r.push("s"),r.push("Q"),A.stream=r.join(`
`),A},OffPushDown:function(e){var A=Qr(e);A.scope=e.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+JA(MA.internal.getWidth(e))+" "+JA(MA.internal.getHeight(e))+" re"),t.push("f"),A.stream=t.join(`
`),A}}},createDefaultAppearanceStream:function(e){var A=e.scope.internal.getFont(e.fontName,e.fontStyle).id,t=e.scope.__private__.encodeColorString(e.color);return"/"+A+" "+e.fontSize+" Tf "+t}};MA.internal={Bezier_C:.551915024494,calculateCross:function(e){var A=MA.internal.getWidth(e),t=MA.internal.getHeight(e),r=Math.min(A,t);return{x1:{x:(A-r)/2,y:(t-r)/2+r},x2:{x:(A-r)/2+r,y:(t-r)/2},x3:{x:(A-r)/2,y:(t-r)/2},x4:{x:(A-r)/2+r,y:(t-r)/2+r}}}},MA.internal.getWidth=function(e){var A=0;return gt(e)==="object"&&(A=Gh(e.Rect[2])),A},MA.internal.getHeight=function(e){var A=0;return gt(e)==="object"&&(A=Gh(e.Rect[3])),A};var Up=Pt.addField=function(e){if(bp(this,e),!(e instanceof ur))throw new Error("Invalid argument passed to jsPDF.addField.");var A;return(A=e).scope.internal.acroformPlugin.printedOut&&(A.scope.internal.acroformPlugin.printedOut=!1,A.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),A.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(A),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};Pt.AcroFormChoiceField=Di,Pt.AcroFormListBox=ki,Pt.AcroFormComboBox=Mi,Pt.AcroFormEditBox=ua,Pt.AcroFormButton=te,Pt.AcroFormPushButton=la,Pt.AcroFormRadioButton=_i,Pt.AcroFormCheckBox=ha,Pt.AcroFormTextField=Tn,Pt.AcroFormPasswordField=fa,Pt.AcroFormAppearance=MA,Pt.AcroForm={ChoiceField:Di,ListBox:ki,ComboBox:Mi,EditBox:ua,Button:te,PushButton:la,RadioButton:_i,CheckBox:ha,TextField:Tn,PasswordField:fa,Appearance:MA},jA.AcroForm={ChoiceField:Di,ListBox:ki,ComboBox:Mi,EditBox:ua,Button:te,PushButton:la,RadioButton:_i,CheckBox:ha,TextField:Tn,PasswordField:fa,Appearance:MA};function F1(e){return e.reduce(function(A,t,r){return A[t]=r,A},{})}(function(e){e.__addimage__={};var A="UNKNOWN",t={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],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=e.__addimage__.getImageFileTypeByImageData=function(x,N){var K,_,aA,iA,uA,tA=A;if((N=N||A)==="RGBA"||x.data!==void 0&&x.data instanceof Uint8ClampedArray&&"height"in x&&"width"in x)return"RGBA";if(Z(x))for(uA in t)for(aA=t[uA],K=0;K<aA.length;K+=1){for(iA=!0,_=0;_<aA[K].length;_+=1)if(aA[K][_]!==void 0&&aA[K][_]!==x[_]){iA=!1;break}if(iA===!0){tA=uA;break}}else for(uA in t)for(aA=t[uA],K=0;K<aA.length;K+=1){for(iA=!0,_=0;_<aA[K].length;_+=1)if(aA[K][_]!==void 0&&aA[K][_]!==x.charCodeAt(_)){iA=!1;break}if(iA===!0){tA=uA;break}}return tA===A&&N!==A&&(tA=N),tA},n=function x(N){for(var K=this.internal.write,_=this.internal.putStream,aA=(0,this.internal.getFilters)();aA.indexOf("FlateEncode")!==-1;)aA.splice(aA.indexOf("FlateEncode"),1);N.objectId=this.internal.newObject();var iA=[];if(iA.push({key:"Type",value:"/XObject"}),iA.push({key:"Subtype",value:"/Image"}),iA.push({key:"Width",value:N.width}),iA.push({key:"Height",value:N.height}),N.colorSpace===S.INDEXED?iA.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(N.palette.length/3-1)+" "+("sMask"in N&&N.sMask!==void 0?N.objectId+2:N.objectId+1)+" 0 R]"}):(iA.push({key:"ColorSpace",value:"/"+N.colorSpace}),N.colorSpace===S.DEVICE_CMYK&&iA.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),iA.push({key:"BitsPerComponent",value:N.bitsPerComponent}),"decodeParameters"in N&&N.decodeParameters!==void 0&&iA.push({key:"DecodeParms",value:"<<"+N.decodeParameters+">>"}),"transparency"in N&&Array.isArray(N.transparency)){for(var uA="",tA=0,fA=N.transparency.length;tA<fA;tA++)uA+=N.transparency[tA]+" "+N.transparency[tA]+" ";iA.push({key:"Mask",value:"["+uA+"]"})}N.sMask!==void 0&&iA.push({key:"SMask",value:N.objectId+1+" 0 R"});var hA=N.filter!==void 0?["/"+N.filter]:void 0;if(_({data:N.data,additionalKeyValues:iA,alreadyAppliedFilters:hA,objectId:N.objectId}),K("endobj"),"sMask"in N&&N.sMask!==void 0){var vA="/Predictor "+N.predictor+" /Colors 1 /BitsPerComponent "+N.bi
`},t.outline.makeRef=function(r){return r.id+" 0 R"},t.outline.makeString=function(r){return"("+t.internal.pdfEscape(r)+")"},t.outline.objStart=function(r){this.ctx.val+=`\r
`+r.id+` 0 obj\r
<<\r
`},t.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},t.outline.count_r=function(r,n){for(var i=0;i<n.children.length;i++)r.count++,this.count_r(r,n.children[i]);return r.count}}])}(jA.API),function(e){var A=[192,193,194,195,196,197,198,199];e.processJPEG=function(t,r,n,i,o,c){var u,f=this.decode.DCT_DECODE,B=null;if(typeof t=="string"||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=o||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,(u=function(p){for(var w,g=256*p.charCodeAt(4)+p.charCodeAt(5),U=p.length,b={width:0,height:0,numcomponents:1},S=4;S<U;S+=2){if(S+=g,A.indexOf(p.charCodeAt(S+1))!==-1){w=256*p.charCodeAt(S+5)+p.charCodeAt(S+6),b={width:256*p.charCodeAt(S+7)+p.charCodeAt(S+8),height:w,numcomponents:p.charCodeAt(S+9)};break}g=256*p.charCodeAt(S+2)+p.charCodeAt(S+3)}return b}(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t)).numcomponents){case 1:c=this.color_spaces.DEVICE_GRAY;break;case 4:c=this.color_spaces.DEVICE_CMYK;break;case 3:c=this.color_spaces.DEVICE_RGB}B={data:t,width:u.width,height:u.height,colorSpace:c,bitsPerComponent:8,filter:f,index:r,alias:n}}return B}}(jA.API);var vi,na,Yh,Zh,$h,Hp=function(){var e,A,t;function r(i){var o,c,u,f,B,p,w,g,U,b,S,y,E,G;for(this.data=i,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},p=null;;){switch(o=this.readUInt32(),U=function(){var Y,W;for(W=[],Y=0;Y<4;++Y)W.push(String.fromCharCode(this.data[this.pos++]));return W}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(o);break;case"fcTL":p&&this.animation.frames.push(p),this.pos+=4,p={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},B=this.readUInt16(),f=this.readUInt16()||100,p.delay=1e3*B/f,p.disposeOp=this.data[this.pos++],p.blendOp=this.data[this.pos++],p.data=[];break;case"IDAT":case"fdAT":for(U==="fdAT"&&(this.pos+=4,o-=4),i=p?.data||this.imgData,y=0;0<=o?y<o:y>o;0<=o?++y:--y)i.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(u=this.palette.length/3,this.transparency.indexed=this.read(o),this.transparency.indexed.length>u)throw new Error("More transparent colors than palette size");if((b=u-this.transparency.indexed.length)>0)for(E=0;0<=b?E<b:E>b;0<=b?++E:--E)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(o)[0];break;case 2:this.transparency.rgb=this.read(o)}break;case"tEXt":w=(S=this.read(o)).indexOf(0),g=String.fromCharCode.apply(String,S.slice(0,w)),this.text[g]=String.fromCharCode.apply(String,S.slice(w+1));break;case"IEND":return p&&this.animation.frames.push(p),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(G=this.colorType)===4||G===6,c=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*c,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=o}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}r.prototype.read=function(i){var o,c;for(c=[],o=0;0<=i?o<i:o>i;0<=i?++o:--o)c.push(this.data[this.pos++]);return c},r.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.decodePixels=function(i){var o=this.pixelBitlength/8,c=new Uint8Array(this.width*this.height*o),u=0,f=this;if(i==null&&(i=this.imgData),i.length===0)return new Uint8Array(0);function B(p,w,g,U){
* @license
*
* Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* ====================================================================
*//**
* @license
* (c) Dean McNamee <dean@gmail.com>, 2013.
*
* https://github.com/deanm/omggif
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*
* omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
* including animation and compression. It does not rely on any specific
* underlying system, so should run in the browser, Node, or Plask.
*/function Sp(e){var A=0;if(e[A++]!==71||e[A++]!==73||e[A++]!==70||e[A++]!==56||(e[A++]+1&253)!=56||e[A++]!==97)throw new Error("Invalid GIF 87a/89a header.");var t=e[A++]|e[A++]<<8,r=e[A++]|e[A++]<<8,n=e[A++],i=n>>7,o=1<<(7&n)+1;e[A++],e[A++];var c=null,u=null;i&&(c=A,u=o,A+=3*o);var f=!0,B=[],p=0,w=null,g=0,U=null;for(this.width=t,this.height=r;f&&A<e.length;)switch(e[A++]){case 33:switch(e[A++]){case 255:if(e[A]!==11||e[A+1]==78&&e[A+2]==69&&e[A+3]==84&&e[A+4]==83&&e[A+5]==67&&e[A+6]==65&&e[A+7]==80&&e[A+8]==69&&e[A+9]==50&&e[A+10]==46&&e[A+11]==48&&e[A+12]==3&&e[A+13]==1&&e[A+16]==0)A+=14,U=e[A++]|e[A++]<<8,A++;else for(A+=12;;){if(!((x=e[A++])>=0))throw Error("Invalid block size");if(x===0)break;A+=x}break;case 249:if(e[A++]!==4||e[A+4]!==0)throw new Error("Invalid graphics extension block.");var b=e[A++];p=e[A++]|e[A++]<<8,w=e[A++],!(1&b)&&(w=null),g=b>>2&7,A++;break;case 254:for(;;){if(!((x=e[A++])>=0))throw Error("Invalid block size");if(x===0)break;A+=x}break;default:throw new Error("Unknown graphic control label: 0x"+e[A-1].toString(16))}break;case 44:var S=e[A++]|e[A++]<<8,y=e[A++]|e[A++]<<8,E=e[A++]|e[A++]<<8,G=e[A++]|e[A++]<<8,Y=e[A++],W=Y>>6&1,Z=1<<(7&Y)+1,X=c,M=u,AA=!1;Y>>7&&(AA=!0,X=A,M=Z,A+=3*Z);var sA=A;for(A++;;){var x;if(!((x=e[A++])>=0))throw Error("Invalid block size");if(x===0)break;A+=x}B.push({x:S,y,width:E,height:G,has_local_palette:AA,palette_offset:X,palette_size:M,data_offset:sA,data_length:A-sA,transparent_index:w,interlaced:!!W,delay:p,disposal:g});break;case 59:f=!1;break;default:throw new Error("Unknown gif block: 0x"+e[A-1].toString(16))}this.numFrames=function(){return B.length},this.loopCount=function(){return U},this.frameInfo=function(N){if(N<0||N>=B.length)throw new Error("Frame index out of range.");return B[N]},this.decodeAndBlitFrameBGRA=function(N,K){var _=this.frameInfo(N),aA=_.width*_.height,iA=new Uint8Array(aA);Af(e,_.data_offset,iA,aA);var uA=_.palette_offset,tA=_.transparent_index;tA===null&&(tA=256);var fA=_.width,hA=t-fA,vA=fA,Q=4*(_.y*t+_.x),P=4*((_.y+_.height)*t+_.x),k=Q,R=4*hA;_.interlaced===!0&&(R+=4*t*7);for(var z=8,nA=0,oA=iA.length;nA<oA;++nA){var cA=iA[nA];if(vA===0&&(vA=fA,(k+=R)>=P&&(R=4*hA+4*t*(z-1),k=Q+(fA+hA)*(z<<1),z>>=1)),cA===tA)k+=4;else{var yA=e[uA+3*cA],QA=e[uA+3*cA+1],HA=e[uA+3*cA+2];K[k++]=HA,K[k++]=QA,K[k++]=yA,K[k++]=255}--vA}},this.decodeAndBlitFrameRGBA=function(N,K){var _=this.frameInfo(N),aA=_.width*_.height,iA=new Uint8Array(aA);Af(e,_.data_offset,iA,aA);var uA=_.palette_offset,tA=_.transparent_index;tA===null&&(tA=256);var fA=_.width,hA=t-fA,vA=fA,Q=4*(_.y*t+_.x),P=4*((_.y+_.height)*t+_.x),k=Q,R=4*hA;_.interlaced===!0&&(R+=4*t*7);for(var z=8,nA=0,oA=iA.length;nA<oA;++nA){var cA=iA[nA];if(vA===0&&(vA=fA,(k+=R)>=P&&(R=4*hA+4*t*(z-1),k=Q+(fA+hA)*(z<<1),z>>=1)),cA===tA)k+=4;else{var yA=e[uA+3*cA],QA=e[uA+3*cA+1],HA=e[uA+3*cA+2];K[k++]=yA,K[k++]=QA,K[k++]=HA,K[k++]=255}--vA}}}function Af(e,A,t,r){for(var n=e[A++],i=1<<n,o=i+1,c=o+1,u=n+1,f=(1<<u)-1,B=0,p=0,w=0,g=e[A++],U=new Int32Array(4096),b=null;;){for(;B<16&&g!==0;)p|=e[A++]<<B,B+=8,g===1?g=e[A++]:--g;if(B<u)break;var S=p&f;if(p>>=u,B-=u,S!==i){if(S===o)break;for(var y=S<c?S:b,E=0,G=y;G>i;)G=U[G]>>8,++E;var Y=G;if(w+E+(y!==S?1:0)>r)return void yt.log("Warning, gif stream longer than expected.");t[w++]=Y;var W=w+=E;for(y!==S&&(t[w++]=Y),G=y;E--;)G=U[G],t[--W]=255&G,G>>=8;b!==null&&c<4096&&(U[c++]=b<<8|Y,c>=f+1&&u<12&&(++u,f=f<<1|1)),b=S}else c=o+1,f=(1<<(u=n+1))-1,b=null}return w!==r&&yt.log("Warning, gif stream shorter than expected."),t}/**
* @license
Copyright (c) 2008, Adobe Systems Incorporated
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Adobe Systems Incorporated nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/function nu(e){var A,t,r,n,i,o=Math.floor,c=new Array(64),u=new Array(64),f=new Array(64),B=new Array(64),p=new Array(65535),w=new Array(65535),g=new Array(64),U=new Array(64),b=[],S=0,y=7,E=new Array(64),G=new Array(64),Y=new Array(64),W=new Array(256),Z=new Array(2048),X=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],M=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],AA=[0,1,2,3,4,5,6,7,8,9,10,11],sA=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],x=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],N=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],K=[0,1,2,3,4,5,6,7,8,9,10,11],_=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],aA=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function iA(Q,P){for(var k=0,R=0,z=new Array,nA=1;nA<=16;nA++){for(var oA=1;oA<=Q[nA];oA++)z[P[R]]=[],z[P[R]][0]=k,z[P[R]][1]=nA,R++,k++;k*=2}return z}function uA(Q){for(var P=Q[0],k=Q[1]-1;k>=0;)P&1<<k&&(S|=1<<y),k--,--y<0&&(S==255?(tA(255),tA(0)):tA(S),y=7,S=0)}function tA(Q){b.push(Q)}function fA(Q){tA(Q>>8&255),tA(255&Q)}function hA(Q,P,k,R,z){for(var nA,oA=z[0],cA=z[240],yA=function(FA,bA){var EA,IA,OA,XA,At,et,st,dt,qA,rt,xA=0;for(qA=0;qA<8;++qA){EA=FA[xA],IA=FA[xA+1],OA=FA[xA+2],XA=FA[xA+3],At=FA[xA+4],et=FA[xA+5],st=FA[xA+6];var se=EA+(dt=FA[xA+7]),at=EA-dt,Ge=IA+st,Ft=IA-st,It=OA+et,hr=OA-et,ut=XA+At,vn=XA-At,Nt=se+ut,je=se-ut,Er=Ge+It,Ht=Ge-It;FA[xA]=Nt+Er,FA[xA+4]=Nt-Er;var zA=.707106781*(Ht+je);FA[xA+2]=je+zA,FA[xA+6]=je-zA;var lt=.382683433*((Nt=vn+hr)-(Ht=Ft+at)),bn=.5411961*Nt+lt,ee=1.306562965*Ht+lt,fr=.707106781*(Er=hr+Ft),Br=at+fr,RA=at-fr;FA[xA+5]=RA+bn,FA[xA+3]=RA-bn,FA[xA+1]=Br+ee,FA[xA+7]=Br-ee,xA+=8}for(xA=0,qA=0;qA<8;++qA){EA=FA[xA],IA=FA[xA+8],OA=FA[xA+16],XA=FA[xA+24],At=FA[xA+32],et=FA[xA+40],st=FA[xA+48];var Ve=EA+(dt=FA[xA+56]),gr=EA-dt,Ce=IA+st,Xt=IA-st,Gt=OA+et,Ie=OA-et,Gn=XA+At,xr=XA-At,qe=Ve+Gn,We=Ve-Gn,Xe=Ce+Gt,dr=Ce-Gt;FA[xA]=qe+Xe,FA[xA+32]=qe-Xe;var Se=.707106781*(dr+We);FA[xA+16]=We+Se,FA[xA+48]=We-Se;var pr=.382683433*((qe=xr+Ie)-(dr=Xt+gr)),Un=.5411961*qe+pr,jn=1.306562965*dr+pr,Vn=.707106781*(Xe=Ie+Xt),qn=gr+Vn,Wn=gr-Vn;FA[xA+40]=Wn+Un,FA[xA+24]=Wn-Un,FA[xA+8]=qn+jn,FA[xA+56]=qn-jn,xA++}for(qA=0;qA<64;++qA)rt=FA[qA]*bA[qA],g[qA]=rt>0?rt+.5|0:rt-.5|0;return g}(Q,P),QA=0;QA<64;++QA)U[X[QA]]=yA[QA];var HA=U[0]-k;k=U[0],HA==0?uA(R[0]):(uA(R[w[nA=32767+HA]]),uA(p[nA]));for(var DA=63;DA>0&&U[DA]==0;)DA--;if(DA==0)return uA(oA),k;for(var GA,gA=1;gA<=DA;){for(var O=gA;U[gA]==0&&gA<=DA;)++gA;var YA=gA-O;if(YA>=16){GA=YA>>4;for(var _A=1;_A<=GA;++_A)uA(cA);YA&=15}nA=32767+U[gA],uA(z[(YA<<4)+w[nA]]),uA(p[nA]),gA++}return DA!=63&&uA(oA),k}function vA(Q){Q=Math.min(Math.max(Q,1),100),i!=Q&&(function(P){for(var k=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],R=0;R<64;R++){var z=o((k[R]*P+50)/100);z=Math.min(Math.max(z,1),255),c[X[R]]=z}for
* @license
* Copyright (c) 2017 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/function ir(e,A){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!A,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function tf(e){function A(M){if(!M)throw Error("assert :P")}function t(M,AA,sA){for(var x=0;4>x;x++)if(M[AA+x]!=sA.charCodeAt(x))return!0;return!1}function r(M,AA,sA,x,N){for(var K=0;K<N;K++)M[AA+K]=sA[x+K]}function n(M,AA,sA,x){for(var N=0;N<x;N++)M[AA+N]=sA}function i(M){return new Int32Array(M)}function o(M,AA){for(var sA=[],x=0;x<M;x++)sA.push(new AA);return sA}function c(M,AA){var sA=[];return function x(N,K,_){for(var aA=_[K],iA=0;iA<aA&&(N.push(_.length>K+1?[]:new AA),!(_.length<K+1));iA++)x(N[iA],K+1,_)}(sA,0,M),sA}var u=function(){var M=this;function AA(s,a){for(var h=1<<a-1>>>0;s&h;)h>>>=1;return h?(s&h-1)+h:s}function sA(s,a,h,d,m){A(!(d%h));do s[a+(d-=h)]=m;while(0<d)}function x(s,a,h,d,m){if(A(2328>=m),512>=m)var F=i(512);else if((F=i(m))==null)return 0;return function(v,L,I,H,j,eA){var rA,J,wA=L,lA=1<<I,V=i(16),q=i(16);for(A(j!=0),A(H!=null),A(v!=null),A(0<I),J=0;J<j;++J){if(15<H[J])return 0;++V[H[J]]}if(V[0]==j)return 0;for(q[1]=0,rA=1;15>rA;++rA){if(V[rA]>1<<rA)return 0;q[rA+1]=q[rA]+V[rA]}for(J=0;J<j;++J)rA=H[J],0<H[J]&&(eA[q[rA]++]=J);if(q[15]==1)return(H=new N).g=0,H.value=eA[0],sA(v,wA,1,lA,H),lA;var dA,mA=-1,pA=lA-1,PA=0,UA=1,TA=1,LA=1<<I;for(J=0,rA=1,j=2;rA<=I;++rA,j<<=1){if(UA+=TA<<=1,0>(TA-=V[rA]))return 0;for(;0<V[rA];--V[rA])(H=new N).g=rA,H.value=eA[J++],sA(v,wA+PA,j,LA,H),PA=AA(PA,rA)}for(rA=I+1,j=2;15>=rA;++rA,j<<=1){if(UA+=TA<<=1,0>(TA-=V[rA]))return 0;for(;0<V[rA];--V[rA]){if(H=new N,(PA&pA)!=mA){for(wA+=LA,dA=1<<(mA=rA)-I;15>mA&&!(0>=(dA-=V[mA]));)++mA,dA<<=1;lA+=LA=1<<(dA=mA-I),v[L+(mA=PA&pA)].g=dA+I,v[L+mA].value=wA-L-mA}H.g=rA-I,H.value=eA[J++],sA(v,wA+(PA>>I),j,LA,H),PA=AA(PA,rA)}}return UA!=2*q[15]-1?0:lA}(s,a,h,d,m,F)}function N(){this.value=this.g=0}function K(){this.value=this.g=0}function _(){this.G=o(5,N),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(Qe,K)}function aA(s,a,h,d){A(s!=null),A(a!=null),A(2147483648>d),s.Ca=254,s.I=0,s.b=-8,s.Ka=0,s.oa=a,s.pa=h,s.Jd=a,s.Yc=h+d,s.Zc=4<=d?h+d-4+1:h,nA(s)}function iA(s,a){for(var h=0;0<a--;)h|=cA(s,128)<<a;return h}function uA(s,a){var h=iA(s,a);return oA(s)?-h:h}function tA(s,a,h,d){var m,F=0;for(A(s!=null),A(a!=null),A(4294967288>d),s.Sb=d,s.Ra=0,s.u=0,s.h=0,4<d&&(d=4),m=0;m<d;++m)F+=a[h+m]<<8*m;s.Ra=F,s.bb=d,s.oa=a,s.pa=h}function fA(s){for(;8<=s.u&&s.bb<s.Sb;)s.Ra>>>=8,s.Ra+=s.oa[s.pa+s.bb]<<ai-8>>>0,++s.bb,s.u-=8;k(s)&&(s.h=1,s.u=0)}function hA(s,a){if(A(0<=a),!s.h&&a<=oi){var h=P(s)&si[a];return s.u+=a,fA(s),h}return s.h=1,s.u=0}function vA(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function Q(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function P(s){return s.Ra>>>(s.u&ai-1)>>>0}function k(s){return A(s.bb<=s.Sb),s.h||s.bb==s.Sb&&s.u>ai}function R(s,a){s.u=a,s.h=k(s)}function z(s){s.u>=is&&(A(s.u>=is),fA(s))}function nA(s){A(s!=null&&s.oa!=null),s.pa<s.Zc?(s.I=(s.oa[s.pa++]|s.I<<8)>>>0,s.b+=8):(A(s!=null&&s.oa!=null),s.pa<s.Yc?(s.b+=8,s.I=s.oa[s.pa++]|s.I<<8):s.Ka?s.b=0:(s.I<<=8,s.b+=8,s.Ka=1))}function oA(s){return iA(s,1)}function cA(s,a){var h=s.Ca;0>s.b&&nA(s);var d=s.b,m=h*a>>>8,F=(s.I>>>d>m)+0;for(F?(h-=m,s.I-=m+1<<d>>>0):h=m+1,d=h,m=0;256<=d;)m+=8,d>>=8;return d=7^m+ye[d],s.b-=d,s.Ca=(h<<d)-1,F}function yA(s,a,h){s[a+0]=h>>24&255,s[a+1]=h>>16&255,s[a+2]=h>>8&255,s[a+3]=h>>0&255}function QA(s,a){return s[a+0]<<0|s[a+1]<<8}function HA(s,a){return QA(s,a)|s[a+2]<<16}function DA(s,a){return QA(s,a)|QA(s,a+2)<<16}function GA(s,a){var h=1<<a;return A(s!=null),A(0<a),s.X=i(h),s.X==null?0:(s.Mb=32-a,s.Xa=a,1)}function gA(s,a){A(s!=null),A(a!=null),A(s.Xa==a.Xa),r(a.X,0,s.X,0,1<<a.Xa)}function O(){this.X=[],this.Xa=this.Mb=0}function YA(s,a,h,d){A(h!=null),A(d!=null);var m=h[0],F=d[0];return m==0&&(m=(s*F+a/2)/a),F==0&&(F
`:"")+W})):E.push(Y[0])}),b=E,u=Yh.apply(this,[y,t])}for(i=0,o=b.length;i<o;i++){var G=0;if(r=b[i],u&&r[0]==`
`&&(r=r.substr(1),G=1),w+g+(U=(n=na.apply(this,[r,t])).reduce(function(Y,W){return Y+W},0))>A||G){if(U>A){for(c=Zh.apply(this,[r,n,A-(w+g),A]),B.push(c.shift()),B=[c.pop()];c.length;)p.push([c.shift()]);U=n.slice(r.length-(B[0]?B[0].length:0)).reduce(function(Y,W){return Y+W},0)}else B=[r];p.push(B),w=U+u,g=S}else B.push(r),w+=g+U,g=S}return f=u?function(Y,W){return(W?y:"")+Y.join(" ")}:function(Y){return Y.join(" ")},p.map(f)},vi.splitTextToSize=function(e,A,t){var r,n=(t=t||{}).fontSize||this.internal.getFontSize(),i=function(B){if(B.widths&&B.kerning)return{widths:B.widths,kerning:B.kerning};var p=this.internal.getFont(B.fontName,B.fontStyle);return p.metadata.Unicode?{widths:p.metadata.Unicode.widths||{0:1},kerning:p.metadata.Unicode.kerning||{}}:{font:p.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,t);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var o=1*this.internal.scaleFactor*A/n;i.textIndent=t.textIndent?1*t.textIndent*this.internal.scaleFactor/n:0,i.lineIndent=t.lineIndent;var c,u,f=[];for(c=0,u=r.length;c<u;c++)f=f.concat($h.apply(this,[r[c],o,i]));return f},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var A="klmnopqrstuvwxyz",t={},r={},n=0;n<A.length;n++)t[A[n]]="0123456789abcdef"[n],r["0123456789abcdef"[n]]=A[n];var i=function(p){return"0x"+parseInt(p,10).toString(16)},o=e.__fontmetrics__.compress=function(p){var w,g,U,b,S=["{"];for(var y in p){if(w=p[y],isNaN(parseInt(y,10))?g="'"+y+"'":(y=parseInt(y,10),g=(g=i(y).slice(2)).slice(0,-1)+r[g.slice(-1)]),typeof w=="number")w<0?(U=i(w).slice(3),b="-"):(U=i(w).slice(2),b=""),U=b+U.slice(0,-1)+r[U.slice(-1)];else{if(gt(w)!=="object")throw new Error("Don't know what to do with value type "+gt(w)+".");U=o(w)}S.push(g+U)}return S.push("}"),S.join("")},c=e.__fontmetrics__.uncompress=function(p){if(typeof p!="string")throw new Error("Invalid argument passed to uncompress.");for(var w,g,U,b,S={},y=1,E=S,G=[],Y="",W="",Z=p.length-1,X=1;X<Z;X+=1)(b=p[X])=="'"?w?(U=w.join(""),w=void 0):w=[]:w?w.push(b):b=="{"?(G.push([E,U]),E={},U=void 0):b=="}"?((g=G.pop())[0][g[1]]=E,U=void 0,E=g[0]):b=="-"?y=-1:U===void 0?t.hasOwnProperty(b)?(Y+=t[b],U=parseInt(Y,16)*y,y=1,Y=""):Y+=b:t.hasOwnProperty(b)?(W+=t[b],E[U]=parseInt(W,16)*y,y=1,U=void 0,W=""):W+=b;return S},u={codePages:["WinAnsiEncoding"],WinAnsiEncoding:c("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},f={Unicode:{Courier:u,"Courier-Bold":u,"Courier-BoldOblique":u,"Courier-Oblique":u,Helvetica:u,"Helvetica-Bold":u,"Helvetica-BoldOblique":u,"Helvetica-Oblique":u,"Times-Roman":u,"Times-Bold":u,"Times-BoldItalic":u,"Times-Italic":u}},B={Unicode:{"Courier-Oblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":c("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu
<<
`+b.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=t,this},function(e){var A=function(){var r='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',n=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),i=unescape(encodeURIComponent(r)),o=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),c=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),u=unescape(encodeURIComponent("</x:xmpmeta>")),f=i.length+o.length+c.length+n.length+u.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+f+" >>"),this.internal.write("stream"),this.internal.write(n+i+o+c+u),this.internal.write("endstream"),this.internal.write("endobj")},t=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};e.addMetadata=function(r,n){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:r,namespaceuri:n||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",t),this.internal.events.subscribe("postPutResources",A)),this}}(jA.API),function(e){var A=e.API,t=A.pdfEscape16=function(i,o){for(var c,u=o.metadata.Unicode.widths,f=["","0","00","000","0000"],B=[""],p=0,w=i.length;p<w;++p){if(c=o.metadata.characterToGlyph(i.charCodeAt(p)),o.metadata.glyIdsUsed.push(c),o.metadata.toUnicode[c]=i.charCodeAt(p),u.indexOf(c)==-1&&(u.push(c),u.push([parseInt(o.metadata.widthOfGlyph(c),10)])),c=="0")return B.join("");c=c.toString(16),B.push(f[4-c.length],c)}return B.join("")},r=function(i){var o,c,u,f,B,p,w;for(B=`/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo <<
/Registry (Adobe)
/Ordering (UCS)
/Supplement 0
>> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0000><ffff>
endcodespacerange`,u=[],p=0,w=(c=Object.keys(i).sort(function(g,U){return g-U})).length;p<w;p++)o=c[p],u.length>=100&&(B+=`
`+u.length+` beginbfchar
`+u.join(`
`)+`
endbfchar`,u=[]),i[o]!==void 0&&i[o]!==null&&typeof i[o].toString=="function"&&(f=("0000"+i[o].toString(16)).slice(-4),o=("0000"+(+o).toString(16)).slice(-4),u.push("<"+o+"><"+f+">"));return u.length&&(B+=`
`+u.length+` beginbfchar
`+u.join(`
`)+`
endbfchar
`),B+=`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};A.events.push(["putFont",function(i){(function(o){var c=o.font,u=o.out,f=o.newObject,B=o.putStream;if(c.metadata instanceof e.API.TTFFont&&c.encoding==="Identity-H"){for(var p=c.metadata.Unicode.widths,w=c.metadata.subset.encode(c.metadata.glyIdsUsed,1),g="",U=0;U<w.length;U++)g+=String.fromCharCode(w[U]);var b=f();B({data:g,addLength1:!0,objectId:b}),u("endobj");var S=f();B({data:r(c.metadata.toUnicode),addLength1:!0,objectId:S}),u("endobj");var y=f();u("<<"),u("/Type /FontDescriptor"),u("/FontName /"+xi(c.fontName)),u("/FontFile2 "+b+" 0 R"),u("/FontBBox "+e.API.PDFObject.convert(c.metadata.bbox)),u("/Flags "+c.metadata.flags),u("/StemV "+c.metadata.stemV),u("/ItalicAngle "+c.metadata.italicAngle),u("/Ascent "+c.metadata.ascender),u("/Descent "+c.metadata.decender),u("/CapHeight "+c.metadata.capHeight),u(">>"),u("endobj");var E=f();u("<<"),u("/Type /Font"),u("/BaseFont /"+xi(c.fontName)),u("/FontDescriptor "+y+" 0 R"),u("/W "+e.API.PDFObject.convert(p)),u("/CIDToGIDMap /Identity"),u("/DW 1000"),u("/Subtype /CIDFontType2"),u("/CIDSystemInfo"),u("<<"),u("/Supplement 0"),u("/Registry (Adobe)"),u("/Ordering ("+c.encoding+")"),u(">>"),u(">>"),u("endobj"),c.objectNumber=f(),u("<<"),u("/Type /Font"),u("/Subtype /Type0"),u("/ToUnicode "+S+" 0 R"),u("/BaseFont /"+xi(c.fontName)),u("/Encoding /"+c.encoding),u("/DescendantFonts ["+E+" 0 R]"),u(">>"),u("endobj"),c.isAlreadyPutted=!0}})(i)}]),A.events.push(["putFont",function(i){(function(o){var c=o.font,u=o.out,f=o.newObject,B=o.putStream;if(c.metadata instanceof e.API.TTFFont&&c.encoding==="WinAnsiEncoding"){for(var p=c.metadata.rawData,w="",g=0;g<p.length;g++)w+=String.fromCharCode(p[g]);var U=f();B({data:w,addLength1:!0,objectId:U}),u("endobj");var b=f();B({data:r(c.metadata.toUnicode),addLength1:!0,objectId:b}),u("endobj");var S=f();u("<<"),u("/Descent "+c.metadata.decender),u("/CapHeight "+c.metadata.capHeight),u("/StemV "+c.metadata.stemV),u("/Type /FontDescriptor"),u("/FontFile2 "+U+" 0 R"),u("/Flags 96"),u("/FontBBox "+e.API.PDFObject.convert(c.metadata.bbox)),u("/FontName /"+xi(c.fontName)),u("/ItalicAngle "+c.metadata.italicAngle),u("/Ascent "+c.metadata.ascender),u(">>"),u("endobj"),c.objectNumber=f();for(var y=0;y<c.metadata.hmtx.widths.length;y++)c.metadata.hmtx.widths[y]=parseInt(c.metadata.hmtx.widths[y]*(1e3/c.metadata.head.unitsPerEm));u("<</Subtype/TrueType/Type/Font/ToUnicode "+b+" 0 R/BaseFont/"+xi(c.fontName)+"/FontDescriptor "+S+" 0 R/Encoding/"+c.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(c.metadata.hmtx.widths)+">>"),u("endobj"),c.isAlreadyPutted=!0}})(i)}]);var n=function(i){var o,c=i.text||"",u=i.x,f=i.y,B=i.options||{},p=i.mutex||{},w=p.pdfEscape,g=p.activeFontKey,U=p.fonts,b=g,S="",y=0,E="",G=U[b].encoding;if(U[b].encoding!=="Identity-H")return{text:c,x:u,y:f,options:B,mutex:p};for(E=c,b=g,Array.isArray(c)&&(E=c[0]),y=0;y<E.length;y+=1)U[b].metadata.hasOwnProperty("cmap")&&(o=U[b].metadata.cmap.unicode.codeMap[E[y].charCodeAt(0)]),o||E[y].charCodeAt(0)<256&&U[b].metadata.hasOwnProperty("Unicode")?S+=E[y]:S+="";var Y="";return parseInt(b.slice(1))<14||G==="WinAnsiEncoding"?Y=w(S,b).split("").map(function(W){return W.charCodeAt(0).toString(16)}).join(""):G==="Identity-H"&&(Y=t(S,U[b])),p.isHex=!0,{text:Y,x:u,y:f,options:B,mutex:p}};A.events.push(["postProcessText",function(i){var o=i.text||"",c=[],u={text:o,x:i.x,y:i.y,options:i.options,mutex:i.mutex};if(Array.isArray(o)){var f=0;for(f=0;f<o.length;f+=1)Array.isArray(o[f])&&o[f].length===3?c.push([n(Object.assign({},u,{text:o[f][0]})).text,o[f][1],o[f][2]]):c.push(n(Object.assign({},u,{text:o[f]})).text);i.text=c}else i.text=n(Object.assign({},u,{text:o})).text}])}(jA),function(e){var A=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(t){return A.call(this),this.internal.vFS[t]!==void 0},e.addFileToVFS=function(t,r){return A.call(this),this.internal.vFS[t]=r,this},e.getFileFromVFS=function(t){return A.call(this),this.internal.vFS[t]!==void 0?this.internal.vFS[t]:null}}(jA.API),function(e){e.__bidiEngine__=e.prototype._
`)}return""+t},A}();const L1=hB("StructStore",()=>{const e=Bn(),A=Bn();return{dataSource:e,selectedElement:A}}),Rs=e=>(QB("data-v-83904042"),e=e(),yB(),e),zp={class:"node-container"},Jp={class:"root-node"},Yp=["colspan"],Zp=["id"],$p={class:"section-list"},Aw={class:"column-avatar"},tw=["src"],ew={class:"column-content"},rw={class:"header"},nw={class:"subheader"},iw={class:"caption"},sw={class:"column-side"},ow={key:0},aw=["colspan"],cw={class:"node-container"},uw={class:"nodeline"},lw=["colspan"],hw=Rs(()=>mt("div",{class:"nodeline-down"},null,-1)),fw=[hw],Bw={class:"nodeline"},gw=Rs(()=>mt("td",{class:"nodeline-right"},null,-1)),dw=Rs(()=>mt("td",{class:"nodeline-left nodeline-top"},null,-1)),pw=Rs(()=>mt("td",{class:"nodeline-right nodeline-top"},null,-1)),ww=Rs(()=>mt("td",{class:"nodeline-left"},null,-1)),mw={class:"node-children"},Cw=Ou({__name:"OrgChartNode",props:{dataSource:Object},setup(e){const A=e,{selectedElement:t}=nf(L1()),r=fB(A).dataSource,n=Bn(!1);BB(()=>{A.dataSource?.depth<1?n.value=!0:n.value=!1}),gB(()=>{A.dataSource?.depth<1?n.value=!0:n.value=!1}),Ku(()=>{}),Ba(()=>A.dataSource,f=>{});const i=Bn();Ba(()=>n,f=>{}),dB(()=>{n.value?(i.value?.classList.remove("oncollapse"),i.value?.classList.add("onexpand")):(i.value?.classList.remove("onexpand"),i.value?.classList.add("oncollapse"))});const o=f=>{t.value=f},c=()=>{n.value=!n.value},u=()=>n.value;return(f,B)=>{const p=pB("OrgChartNode",!0);return or(),ar("table",zp,[mt("tbody",null,[mt("tr",Jp,[mt("td",{colspan:wt(r)?.children&&wt(r)?.children.length?wt(r)?.children.length*2:0},[mt("div",{class:wB(wt(r)?.personID==1?"element-container root-element":"element-container child-element"),id:wt(r)?.personID,onClik:B[1]||(B[1]=w=>o(wt(r)?.persosnID))},[mt("div",$p,[mt("div",Aw,[mt("img",{src:wt(r)?.avatar&&wt(r)?.avatar!==""?wt(r)?.avatar:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjwhLS0gVXBsb2FkZWQgdG86IFNWRyBSZXBvLCB3d3cuc3ZncmVwby5jb20sIEdlbmVyYXRvcjogU1ZHIFJlcG8gTWl4ZXIgVG9vbHMgLS0+Cjxzdmcgd2lkdGg9IjgwMHB4IiBoZWlnaHQ9IjgwMHB4IiB2aWV3Qm94PSIwIDAgMTYgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQogICAgPHBhdGggZD0ibSA4IDEgYyAtMS42NTYyNSAwIC0zIDEuMzQzNzUgLTMgMyBzIDEuMzQzNzUgMyAzIDMgcyAzIC0xLjM0Mzc1IDMgLTMgcyAtMS4zNDM3NSAtMyAtMyAtMyB6IG0gLTEuNSA3IGMgLTIuNDkyMTg4IDAgLTQuNSAyLjAwNzgxMiAtNC41IDQuNSB2IDAuNSBjIDAgMS4xMDkzNzUgMC44OTA2MjUgMiAyIDIgaCA4IGMgMS4xMDkzNzUgMCAyIC0wLjg5MDYyNSAyIC0yIHYgLTAuNSBjIDAgLTIuNDkyMTg4IC0yLjAwNzgxMiAtNC41IC00LjUgLTQuNSB6IG0gMCAwIiBmaWxsPSIjMmUzNDM2Ii8+DQo8L3N2Zz4=",alt:"{{ propDataSource?.name }}"},null,8,tw)]),mt("div",ew,[mt("div",rw,[wt(r)?.name.trim()!==""?(or(),ar(bi,{key:0},[ga(No(wt(r)?.name),1)],64)):(or(),ar(bi,{key:1},[ga(No(wt(r)?.depth>0?"ว่าง":"")+" ",1)],64))]),mt("div",nw,No(wt(r)?.positionName?wt(r)?.positionName:""),1),mt("div",iw,No(wt(r)?.departmentName?wt(r)?.departmentName:""),1)]),mt("div",sw,[wt(r)?.children&&wt(r)?.children.length>0?(or(),ar("button",{key:0,ref_key:"sideButton",ref:i,class:"side-button",onClick:B[0]||(B[0]=w=>c())},null,512)):Nl("",!0)])])],42,Zp)],8,Yp)]),wt(r)?.children&&wt(r)?.children.length?(or(),ar("tr",ow,[mt("td",{colspan:wt(r)?.children&&wt(r)?.children.length?wt(r)?.children.length*2:0},[yr(FB,{name:"slide-fade"},{default:Ui(()=>[mB(mt("table",cw,[mt("tr",uw,[mt("td",{colspan:wt(r)?.children.length*2},fw,8,lw)]),mt("tr",Bw,[gw,(or(!0),ar(bi,null,Hl(wt(r)?.children.length-1,w=>(or(),ar(bi,{key:w},[dw,pw],64))),128)),ww]),mt("tr",mw,[(or(!0),ar(bi,null,Hl(wt(r)?.children,w=>(or(),ar("td",{colspan:"2",key:w.id},[yr(p,{dataSource:w},null,8,["dataSource"])]))),128))])],512),[[CB,u()]])]),_:1})],8,aw)])):Nl("",!0)])])}}}),I1=(e,A)=>{const t=e.__vccOpts||e;for(const[r,n]of A)t[r]=n;return t},Fw=I1(Cw,[["__scopeId","data-v-83904042"]]),Qw={class:"org-chart"},yw={class:"org-chart-container"},vw=Ou({__name:"OrgChart",props:{dataSource:Object},emits:["onElementClick"],setup(e,{expose:A,emit:t}){const r=e,{dataSource:n,selectedElement:i}=nf(L1()),o=async(f=3)=>await c1(document.querySelector(".org-chart-container"),{scale:f,width:document.que