197 lines
342 KiB
JavaScript
197 lines
342 KiB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/canvg-zpqZurcc.js","assets/core-js-C6zEoSaD.js","assets/lodash-D3kF6u-c.js","assets/@babel/runtime-BanGtE2-.js","assets/raf-B8cP2cCt.js","assets/performance-now-DzowmezO.js","assets/rgbcolor-B_i-tANe.js","assets/svg-pathdata-DmAmzc8P.js","assets/stackblur-canvas-CBjRDurV.js"])))=>i.map(i=>d[i]);
|
||
import{_ as ve}from"./@babel/runtime-BanGtE2-.js";import{z as Zs,u as Ju}from"./fflate-_ayOYiT1.js";const Yu="modulepreload",Xu=function(i){return"/admin/"+i},Bo={},$s=function(e,r,a){let c=Promise.resolve();if(r&&r.length>0){let l=function(g){return Promise.all(g.map(A=>Promise.resolve(A).then(N=>({status:"fulfilled",value:N}),N=>({status:"rejected",reason:N}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),f=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));c=l(r.map(g=>{if(g=Xu(g),g in Bo)return;Bo[g]=!0;const A=g.endsWith(".css"),N=A?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${N}`))return;const S=document.createElement("link");if(S.rel=A?"stylesheet":Yu,A||(S.as="script"),S.crossOrigin="",S.href=g,f&&S.setAttribute("nonce",f),document.head.appendChild(S),A)return new Promise((p,B)=>{S.addEventListener("load",p),S.addEventListener("error",()=>B(new Error(`Unable to preload CSS for ${g}`)))})}))}function s(l){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=l,window.dispatchEvent(h),!h.defaultPrevented)throw l}return c.then(l=>{for(const h of l||[])h.status==="rejected"&&s(h.reason);return e().catch(s)})};var Ut=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function Vs(){Ut.console&&typeof Ut.console.log=="function"&&Ut.console.log.apply(Ut.console,arguments)}var me={log:Vs,warn:function(i){Ut.console&&(typeof Ut.console.warn=="function"?Ut.console.warn.apply(Ut.console,arguments):Vs.call(null,arguments))},error:function(i){Ut.console&&(typeof Ut.console.error=="function"?Ut.console.error.apply(Ut.console,arguments):Vs(i))}};function Gs(i,e,r){var a=new XMLHttpRequest;a.open("GET",i),a.responseType="blob",a.onload=function(){qn(a.response,e,r)},a.onerror=function(){me.error("could not download file")},a.send()}function Eo(i){var e=new XMLHttpRequest;e.open("HEAD",i,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function Ga(i){try{i.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),i.dispatchEvent(e)}}var ea,Qs,qn=Ut.saveAs||((typeof window>"u"?"undefined":ve(window))!=="object"||window!==Ut?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(i,e,r){var a=Ut.URL||Ut.webkitURL,c=document.createElement("a");e=e||i.name||"download",c.download=e,c.rel="noopener",typeof i=="string"?(c.href=i,c.origin!==location.origin?Eo(c.href)?Gs(i,e,r):Ga(c,c.target="_blank"):Ga(c)):(c.href=a.createObjectURL(i),setTimeout((function(){a.revokeObjectURL(c.href)}),4e4),setTimeout((function(){Ga(c)}),0))}:"msSaveOrOpenBlob"in navigator?function(i,e,r){if(e=e||i.name||"download",typeof i=="string")if(Eo(i))Gs(i,e,r);else{var a=document.createElement("a");a.href=i,a.target="_blank",setTimeout((function(){Ga(a)}))}else navigator.msSaveOrOpenBlob((function(c,s){return s===void 0?s={autoBom:!1}:ve(s)!=="object"&&(me.warn("Deprecated: Expected third argument to be a object"),s={autoBom:!s}),s.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c})(i,r),e)}:function(i,e,r,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),typeof i=="string")return Gs(i,e,r);var c=i.type==="application/octet-stream",s=/constructor/i.test(Ut.HTMLElement)||Ut.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||c&&s)&&(typeof FileReader>"u"?"undefined":ve(FileReader))==="object"){var h=new FileReader;h.onloadend=function(){var A=h.result;A=l?A:A.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=A:location=A,a=null},h.readAsDataURL(i)}else{var f=Ut.URL||Ut.webkitURL,g=f.createObjectURL(i);a?a.location=g:location.href=g,a=null,setTimeout((function(){f.revokeObjectURL(g)}),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 $o(i){var e;i=i||"",this.ok=!1,i.charAt(0)=="#"&&(i=i.substr(1,6)),i={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"}[i=(i=i.replace(/ /g,"")).toLowerCase()]||i;for(var r=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(h){return[parseInt(h[1]),parseInt(h[2]),parseInt(h[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(h){return[parseInt(h[1],16),parseInt(h[2],16),parseInt(h[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(h){return[parseInt(h[1]+h[1],16),parseInt(h[2]+h[2],16),parseInt(h[3]+h[3],16)]}}],a=0;a<r.length;a++){var c=r[a].re,s=r[a].process,l=c.exec(i);l&&(e=s(l),this.r=e[0],this.g=e[1],this.b=e[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 h=this.r.toString(16),f=this.g.toString(16),g=this.b.toString(16);return h.length==1&&(h="0"+h),f.length==1&&(f="0"+f),g.length==1&&(g="0"+g),"#"+h+f+g}}/**
|
||
* @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 Js(i,e){var r=i[0],a=i[1],c=i[2],s=i[3];r=Xe(r,a,c,s,e[0],7,-680876936),s=Xe(s,r,a,c,e[1],12,-389564586),c=Xe(c,s,r,a,e[2],17,606105819),a=Xe(a,c,s,r,e[3],22,-1044525330),r=Xe(r,a,c,s,e[4],7,-176418897),s=Xe(s,r,a,c,e[5],12,1200080426),c=Xe(c,s,r,a,e[6],17,-1473231341),a=Xe(a,c,s,r,e[7],22,-45705983),r=Xe(r,a,c,s,e[8],7,1770035416),s=Xe(s,r,a,c,e[9],12,-1958414417),c=Xe(c,s,r,a,e[10],17,-42063),a=Xe(a,c,s,r,e[11],22,-1990404162),r=Xe(r,a,c,s,e[12],7,1804603682),s=Xe(s,r,a,c,e[13],12,-40341101),c=Xe(c,s,r,a,e[14],17,-1502002290),r=Ke(r,a=Xe(a,c,s,r,e[15],22,1236535329),c,s,e[1],5,-165796510),s=Ke(s,r,a,c,e[6],9,-1069501632),c=Ke(c,s,r,a,e[11],14,643717713),a=Ke(a,c,s,r,e[0],20,-373897302),r=Ke(r,a,c,s,e[5],5,-701558691),s=Ke(s,r,a,c,e[10],9,38016083),c=Ke(c,s,r,a,e[15],14,-660478335),a=Ke(a,c,s,r,e[4],20,-405537848),r=Ke(r,a,c,s,e[9],5,568446438),s=Ke(s,r,a,c,e[14],9,-1019803690),c=Ke(c,s,r,a,e[3],14,-187363961),a=Ke(a,c,s,r,e[8],20,1163531501),r=Ke(r,a,c,s,e[13],5,-1444681467),s=Ke(s,r,a,c,e[2],9,-51403784),c=Ke(c,s,r,a,e[7],14,1735328473),r=Ze(r,a=Ke(a,c,s,r,e[12],20,-1926607734),c,s,e[5],4,-378558),s=Ze(s,r,a,c,e[8],11,-2022574463),c=Ze(c,s,r,a,e[11],16,1839030562),a=Ze(a,c,s,r,e[14],23,-35309556),r=Ze(r,a,c,s,e[1],4,-1530992060),s=Ze(s,r,a,c,e[4],11,1272893353),c=Ze(c,s,r,a,e[7],16,-155497632),a=Ze(a,c,s,r,e[10],23,-1094730640),r=Ze(r,a,c,s,e[13],4,681279174),s=Ze(s,r,a,c,e[0],11,-358537222),c=Ze(c,s,r,a,e[3],16,-722521979),a=Ze(a,c,s,r,e[6],23,76029189),r=Ze(r,a,c,s,e[9],4,-640364487),s=Ze(s,r,a,c,e[12],11,-421815835),c=Ze(c,s,r,a,e[15],16,530742520),r=$e(r,a=Ze(a,c,s,r,e[2],23,-995338651),c,s,e[0],6,-198630844),s=$e(s,r,a,c,e[7],10,1126891415),c=$e(c,s,r,a,e[14],15,-1416354905),a=$e(a,c,s,r,e[5],21,-57434055),r=$e(r,a,c,s,e[12],6,1700485571),s=$e(s,r,a,c,e[3],10,-1894986606),c=$e(c,s,r,a,e[10],15,-1051523),a=$e(a,c,s,r,e[1],21,-2054922799),r=$e(r,a,c,s,e[8],6,1873313359),s=$e(s,r,a,c,e[15],10,-30611744),c=$e(c,s,r,a,e[6],15,-1560198380),a=$e(a,c,s,r,e[13],21,1309151649),r=$e(r,a,c,s,e[4],6,-145523070),s=$e(s,r,a,c,e[11],10,-1120210379),c=$e(c,s,r,a,e[2],15,718787259),a=$e(a,c,s,r,e[9],21,-343485551),i[0]=Nn(r,i[0]),i[1]=Nn(a,i[1]),i[2]=Nn(c,i[2]),i[3]=Nn(s,i[3])}function rs(i,e,r,a,c,s){return e=Nn(Nn(e,i),Nn(a,s)),Nn(e<<c|e>>>32-c,r)}function Xe(i,e,r,a,c,s,l){return rs(e&r|~e&a,i,e,c,s,l)}function Ke(i,e,r,a,c,s,l){return rs(e&a|r&~a,i,e,c,s,l)}function Ze(i,e,r,a,c,s,l){return rs(e^r^a,i,e,c,s,l)}function $e(i,e,r,a,c,s,l){return rs(r^(e|~a),i,e,c,s,l)}function Qo(i){var e,r=i.length,a=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=i.length;e+=64)Js(a,Ku(i.substring(e-64,e)));i=i.substring(e-64);var c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<i.length;e++)c[e>>2]|=i.charCodeAt(e)<<(e%4<<3);if(c[e>>2]|=128<<(e%4<<3),e>55)for(Js(a,c),e=0;e<16;e++)c[e]=0;return c[14]=8*r,Js(a,c),a}function Ku(i){var e,r=[];for(e=0;e<64;e+=4)r[e>>2]=i.charCodeAt(e)+(i.charCodeAt(e+1)<<8)+(i.charCodeAt(e+2)<<16)+(i.charCodeAt(e+3)<<24);return r}ea=Ut.atob.bind(Ut),Qs=Ut.btoa.bind(Ut);var Mo="0123456789abcdef".split("");function Zu(i){for(var e="",r=0;r<4;r++)e+=Mo[i>>8*r+4&15]+Mo[i>>8*r&15];return e}function $u(i){return String.fromCharCode((255&i)>>0,(65280&i)>>8,(16711680&i)>>16,(4278190080&i)>>24)}function to(i){return Qo(i).map($u).join("")}var Qu=(function(i){for(var e=0;e<i.length;e++)i[e]=Zu(i[e]);return i.join("")})(Qo("hello"))!="5d41402abc4b2a76b9719d911017c592";function Nn(i,e){if(Qu){var r=(65535&i)+(65535&e);return(i>>16)+(e>>16)+(r>>16)<<16|65535&r}return i+e&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 eo(i,e){var r,a,c,s;if(i!==r){for(var l=(c=i,s=1+(256/i.length>>0),new Array(s+1).join(c)),h=[],f=0;f<256;f++)h[f]=f;var g=0;for(f=0;f<256;f++){var A=h[f];g=(g+A+l.charCodeAt(f))%256,h[f]=h[g],h[g]=A}r=i,a=h}else h=a;var N=e.length,S=0,p=0,B="";for(f=0;f<N;f++)p=(p+(A=h[S=(S+1)%256]))%256,h[S]=h[p],h[p]=A,l=h[(h[S]+h[p])%256],B+=String.fromCharCode(e.charCodeAt(f)^l);return B}/**
|
||
* @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 qo={print:4,modify:8,copy:16,"annot-forms":32};function bi(i,e,r,a){this.v=1,this.r=2;var c=192;i.forEach((function(h){if(qo.perm!==void 0)throw new Error("Invalid permission: "+h);c+=qo[h]})),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var s=(e+this.padding).substr(0,32),l=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(s,l),this.P=-(1+(255^c)),this.encryptionKey=to(s+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(a)).substr(0,5),this.U=eo(this.encryptionKey,this.padding)}function yi(i){if(/[^\u0000-\u00ff]/.test(i))throw new Error("Invalid PDF Name Object: "+i+", Only accept ASCII characters.");for(var e="",r=i.length,a=0;a<r;a++){var c=i.charCodeAt(a);c<33||c===35||c===37||c===40||c===41||c===47||c===60||c===62||c===91||c===93||c===123||c===125||c>126?e+="#"+("0"+c.toString(16)).slice(-2):e+=i[a]}return e}function Do(i){if(ve(i)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(r,a,c){if(c=c||!1,typeof r!="string"||typeof a!="function"||typeof c!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(r)||(e[r]={});var s=Math.random().toString(35);return e[r][s]=[a,!!c],s},this.unsubscribe=function(r){for(var a in e)if(e[a][r])return delete e[a][r],Object.keys(e[a]).length===0&&delete e[a],!0;return!1},this.publish=function(r){if(e.hasOwnProperty(r)){var a=Array.prototype.slice.call(arguments,1),c=[];for(var s in e[r]){var l=e[r][s];try{l[0].apply(i,a)}catch(h){Ut.console&&me.error("jsPDF PubSub Error",h.message,h)}l[1]&&c.push(s)}c.length&&c.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function ts(i){if(!(this instanceof ts))return new ts(i);var e="opacity,stroke-opacity".split(",");for(var r in i)i.hasOwnProperty(r)&&e.indexOf(r)>=0&&(this[r]=i[r]);this.id="",this.objectNumber=-1}function tu(i,e){this.gState=i,this.matrix=e,this.id="",this.objectNumber=-1}function Dn(i,e,r,a,c){if(!(this instanceof Dn))return new Dn(i,e,r,a,c);this.type=i==="axial"?2:3,this.coords=e,this.colors=r,tu.call(this,a,c)}function wi(i,e,r,a,c){if(!(this instanceof wi))return new wi(i,e,r,a,c);this.boundingBox=i,this.xStep=e,this.yStep=r,this.stream="",this.cloneIndex=0,tu.call(this,a,c)}function zt(i){var e,r=typeof arguments[0]=="string"?arguments[0]:"p",a=arguments[1],c=arguments[2],s=arguments[3],l=[],h=1,f=16,g="S",A=null;ve(i=i||{})==="object"&&(r=i.orientation,a=i.unit||a,c=i.format||c,s=i.compress||i.compressPdf||s,(A=i.encryption||null)!==null&&(A.userPassword=A.userPassword||"",A.ownerPassword=A.ownerPassword||"",A.userPermissions=A.userPermissions||[]),h=typeof i.userUnit=="number"?Math.abs(i.userUnit):1,i.precision!==void 0&&(e=i.precision),i.floatPrecision!==void 0&&(f=i.floatPrecision),g=i.defaultPathOperation||"S"),l=i.filters||(s===!0?["FlateEncode"]:l),a=a||"mm",r=(""+(r||"P")).toLowerCase();var N=i.putOnlyUsedFonts||!1,S={},p={internal:{},__private__:{}};p.__private__.PubSub=Do;var B="1.3",F=p.__private__.getPdfVersion=function(){return B};p.__private__.setPdfVersion=function(o){B=o};var q={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]};p.__private__.getPageFormats=function(){return q};var _=p.__private__.getPageFormat=function(o){return q[o]};c=c||"a4";var E={COMPAT:"compat",ADVANCED:"advanced"},Z=E.COMPAT;function ot(){this.saveGraphicsState(),O(new Tt(It,0,0,-It,0,cn()*It).toString()+" cm"),this.setFontSize(this.getFontSize()/It),g="n",Z=E.ADVANCED}function dt(){this.restoreGraphicsState(),g="S",Z=E.COMPAT}var Nt=p.__private__.combineFontStyleAndFontWeight=function(o,v){if(o=="bold"&&v=="normal"||o=="bold"&&v==400||o=="normal"&&v=="italic"||o=="bold"&&v=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return v&&(o=v==400||v==="normal"?o==="italic"?"italic":"normal":v!=700&&v!=="bold"||o!=="normal"?(v==700?"bold":v)+""+o:"bold"),o};p.advancedAPI=function(o){var v=Z===E.COMPAT;return v&&ot.call(this),typeof o!="function"||(o(this),v&&dt.call(this)),this},p.compatAPI=function(o){var v=Z===E.ADVANCED;return v&&dt.call(this),typeof o!="function"||(o(this),v&&ot.call(this)),this},p.isAdvancedAPI=function(){return Z===E.ADVANCED};var nt,G=function(o){if(Z!==E.ADVANCED)throw new Error(o+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},vt=p.roundToPrecision=p.__private__.roundToPrecision=function(o,v){var C=e||v;if(isNaN(o)||isNaN(C))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return o.toFixed(C).replace(/0+$/,"")};nt=p.hpf=p.__private__.hpf=typeof f=="number"?function(o){if(isNaN(o))throw new Error("Invalid argument passed to jsPDF.hpf");return vt(o,f)}:f==="smart"?function(o){if(isNaN(o))throw new Error("Invalid argument passed to jsPDF.hpf");return vt(o,o>-1&&o<1?16:5)}:function(o){if(isNaN(o))throw new Error("Invalid argument passed to jsPDF.hpf");return vt(o,16)};var bt=p.f2=p.__private__.f2=function(o){if(isNaN(o))throw new Error("Invalid argument passed to jsPDF.f2");return vt(o,2)},k=p.__private__.f3=function(o){if(isNaN(o))throw new Error("Invalid argument passed to jsPDF.f3");return vt(o,3)},I=p.scale=p.__private__.scale=function(o){if(isNaN(o))throw new Error("Invalid argument passed to jsPDF.scale");return Z===E.COMPAT?o*It:Z===E.ADVANCED?o:void 0},H=function(o){return Z===E.COMPAT?cn()-o:Z===E.ADVANCED?o:void 0},R=function(o){return I(H(o))};p.__private__.setPrecision=p.setPrecision=function(o){typeof parseInt(o,10)=="number"&&(e=parseInt(o,10))};var ut,st="00000000000000000000000000000000",mt=p.__private__.getFileId=function(){return st},tt=p.__private__.setFileId=function(o){return st=o!==void 0&&/^[a-fA-F0-9]{32}$/.test(o)?o.toUpperCase():st.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),A!==null&&(Je=new bi(A.userPermissions,A.userPassword,A.ownerPassword,st)),st};p.setFileId=function(o){return tt(o),this},p.getFileId=function(){return mt()};var pt=p.__private__.convertDateToPDFDate=function(o){var v=o.getTimezoneOffset(),C=v<0?"+":"-",D=Math.floor(Math.abs(v/60)),Y=Math.abs(v%60),it=[C,M(D),"'",M(Y),"'"].join("");return["D:",o.getFullYear(),M(o.getMonth()+1),M(o.getDate()),M(o.getHours()),M(o.getMinutes()),M(o.getSeconds()),it].join("")},ft=p.__private__.convertPDFDateToDate=function(o){var v=parseInt(o.substr(2,4),10),C=parseInt(o.substr(6,2),10)-1,D=parseInt(o.substr(8,2),10),Y=parseInt(o.substr(10,2),10),it=parseInt(o.substr(12,2),10),yt=parseInt(o.substr(14,2),10);return new Date(v,C,D,Y,it,yt,0)},Mt=p.__private__.setCreationDate=function(o){var v;if(o===void 0&&(o=new Date),o instanceof Date)v=pt(o);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(o))throw new Error("Invalid argument passed to jsPDF.setCreationDate");v=o}return ut=v},w=p.__private__.getCreationDate=function(o){var v=ut;return o==="jsDate"&&(v=ft(ut)),v};p.setCreationDate=function(o){return Mt(o),this},p.getCreationDate=function(o){return w(o)};var j,M=p.__private__.padd2=function(o){return("0"+parseInt(o)).slice(-2)},W=p.__private__.padd2Hex=function(o){return("00"+(o=o.toString())).substr(o.length)},J=0,$=[],et=[],Q=0,At=[],Lt=[],Ot=!1,jt=et,Wt=function(){J=0,Q=0,et=[],$=[],At=[],Kr=Oe(),Sr=Oe()};p.__private__.setCustomOutputDestination=function(o){Ot=!0,jt=o};var at=function(o){Ot||(jt=o)};p.__private__.resetCustomOutputDestination=function(){Ot=!1,jt=et};var O=p.__private__.out=function(o){return o=o.toString(),Q+=o.length+1,jt.push(o),jt},Kt=p.__private__.write=function(o){return O(arguments.length===1?o.toString():Array.prototype.join.call(arguments," "))},Et=p.__private__.getArrayBuffer=function(o){for(var v=o.length,C=new ArrayBuffer(v),D=new Uint8Array(C);v--;)D[v]=o.charCodeAt(v);return C},wt=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];p.__private__.getStandardFonts=function(){return wt};var xt=i.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(o){return xt=Z===E.ADVANCED?o/It:o,this};var kt,Pt=p.__private__.getFontSize=p.getFontSize=function(){return Z===E.COMPAT?xt:xt*It},qt=i.R2L||!1;p.__private__.setR2L=p.setR2L=function(o){return qt=o,this},p.__private__.getR2L=p.getR2L=function(){return qt};var Gt,Qt=p.__private__.setZoomMode=function(o){var v=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(o))kt=o;else if(isNaN(o)){if(v.indexOf(o)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+o+'" is not recognized.');kt=o}else kt=parseInt(o,10)};p.__private__.getZoomMode=function(){return kt};var te,ie=p.__private__.setPageMode=function(o){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(o)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+o+'" is not recognized.');Gt=o};p.__private__.getPageMode=function(){return Gt};var fe=p.__private__.setLayoutMode=function(o){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(o)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+o+'" is not recognized.');te=o};p.__private__.getLayoutMode=function(){return te},p.__private__.setDisplayMode=p.setDisplayMode=function(o,v,C){return Qt(o),fe(v),ie(C),this};var Ht={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(o){if(Object.keys(Ht).indexOf(o)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Ht[o]},p.__private__.getDocumentProperties=function(){return Ht},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(o){for(var v in Ht)Ht.hasOwnProperty(v)&&o[v]&&(Ht[v]=o[v]);return this},p.__private__.setDocumentProperty=function(o,v){if(Object.keys(Ht).indexOf(o)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Ht[o]=v};var ee,It,Ge,se,Nr,pe={},we={},Mr=[],ue={},xn={},Ne={},Ar={},Xr=null,Ae=0,Jt=[],ce=new Do(p),Sn=i.hotfixes||[],He={},qr={},Dr=[],Tt=function o(v,C,D,Y,it,yt){if(!(this instanceof o))return new o(v,C,D,Y,it,yt);isNaN(v)&&(v=1),isNaN(C)&&(C=0),isNaN(D)&&(D=0),isNaN(Y)&&(Y=1),isNaN(it)&&(it=0),isNaN(yt)&&(yt=0),this._matrix=[v,C,D,Y,it,yt]};Object.defineProperty(Tt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(o){this._matrix[0]=o}}),Object.defineProperty(Tt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(o){this._matrix[1]=o}}),Object.defineProperty(Tt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(o){this._matrix[2]=o}}),Object.defineProperty(Tt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(o){this._matrix[3]=o}}),Object.defineProperty(Tt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(o){this._matrix[4]=o}}),Object.defineProperty(Tt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(o){this._matrix[5]=o}}),Object.defineProperty(Tt.prototype,"a",{get:function(){return this._matrix[0]},set:function(o){this._matrix[0]=o}}),Object.defineProperty(Tt.prototype,"b",{get:function(){return this._matrix[1]},set:function(o){this._matrix[1]=o}}),Object.defineProperty(Tt.prototype,"c",{get:function(){return this._matrix[2]},set:function(o){this._matrix[2]=o}}),Object.defineProperty(Tt.prototype,"d",{get:function(){return this._matrix[3]},set:function(o){this._matrix[3]=o}}),Object.defineProperty(Tt.prototype,"e",{get:function(){return this._matrix[4]},set:function(o){this._matrix[4]=o}}),Object.defineProperty(Tt.prototype,"f",{get:function(){return this._matrix[5]},set:function(o){this._matrix[5]=o}}),Object.defineProperty(Tt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Tt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Tt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Tt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Tt.prototype.join=function(o){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(nt).join(o)},Tt.prototype.multiply=function(o){var v=o.sx*this.sx+o.shy*this.shx,C=o.sx*this.shy+o.shy*this.sy,D=o.shx*this.sx+o.sy*this.shx,Y=o.shx*this.shy+o.sy*this.sy,it=o.tx*this.sx+o.ty*this.shx+this.tx,yt=o.tx*this.shy+o.ty*this.sy+this.ty;return new Tt(v,C,D,Y,it,yt)},Tt.prototype.decompose=function(){var o=this.sx,v=this.shy,C=this.shx,D=this.sy,Y=this.tx,it=this.ty,yt=Math.sqrt(o*o+v*v),Ft=(o/=yt)*C+(v/=yt)*D;C-=o*Ft,D-=v*Ft;var Dt=Math.sqrt(C*C+D*D);return Ft/=Dt,o*(D/=Dt)<v*(C/=Dt)&&(o=-o,v=-v,Ft=-Ft,yt=-yt),{scale:new Tt(yt,0,0,Dt,0,0),translate:new Tt(1,0,0,1,Y,it),rotate:new Tt(o,v,-v,o,0,0),skew:new Tt(1,0,Ft,1,0,0)}},Tt.prototype.toString=function(o){return this.join(" ")},Tt.prototype.inversed=function(){var o=this.sx,v=this.shy,C=this.shx,D=this.sy,Y=this.tx,it=this.ty,yt=1/(o*D-v*C),Ft=D*yt,Dt=-v*yt,Zt=-C*yt,Yt=o*yt;return new Tt(Ft,Dt,Zt,Yt,-Ft*Y-Zt*it,-Dt*Y-Yt*it)},Tt.prototype.applyToPoint=function(o){var v=o.x*this.sx+o.y*this.shx+this.tx,C=o.x*this.shy+o.y*this.sy+this.ty;return new ti(v,C)},Tt.prototype.applyToRectangle=function(o){var v=this.applyToPoint(o),C=this.applyToPoint(new ti(o.x+o.w,o.y+o.h));return new Ei(v.x,v.y,C.x-v.x,C.y-v.y)},Tt.prototype.clone=function(){var o=this.sx,v=this.shy,C=this.shx,D=this.sy,Y=this.tx,it=this.ty;return new Tt(o,v,C,D,Y,it)},p.Matrix=Tt;var xr=p.matrixMult=function(o,v){return v.multiply(o)},Rr=new Tt(1,0,0,1,0,0);p.unitMatrix=p.identityMatrix=Rr;var rr=function(o,v){if(!xn[o]){var C=(v instanceof Dn?"Sh":"P")+(Object.keys(ue).length+1).toString(10);v.id=C,xn[o]=C,ue[C]=v,ce.publish("addPattern",v)}};p.ShadingPattern=Dn,p.TilingPattern=wi,p.addShadingPattern=function(o,v){return G("addShadingPattern()"),rr(o,v),this},p.beginTilingPattern=function(o){G("beginTilingPattern()"),wa(o.boundingBox[0],o.boundingBox[1],o.boundingBox[2]-o.boundingBox[0],o.boundingBox[3]-o.boundingBox[1],o.matrix)},p.endTilingPattern=function(o,v){G("endTilingPattern()"),v.stream=Lt[j].join(`
|
||
`),rr(o,v),ce.publish("endTilingPattern",v),Dr.pop().restore()};var qe=p.__private__.newObject=function(){var o=Oe();return cr(o,!0),o},Oe=p.__private__.newObjectDeferred=function(){return J++,$[J]=function(){return Q},J},cr=function(o,v){return v=typeof v=="boolean"&&v,$[o]=Q,v&&O(o+" 0 obj"),o},zn=p.__private__.newAdditionalObject=function(){var o={objId:Oe(),content:""};return At.push(o),o},Kr=Oe(),Sr=Oe(),_r=p.__private__.decodeColorString=function(o){var v=o.split(" ");if(v.length!==2||v[1]!=="g"&&v[1]!=="G")v.length===5&&(v[4]==="k"||v[4]==="K")&&(v=[(1-v[0])*(1-v[3]),(1-v[1])*(1-v[3]),(1-v[2])*(1-v[3]),"r"]);else{var C=parseFloat(v[0]);v=[C,C,C,"r"]}for(var D="#",Y=0;Y<3;Y++)D+=("0"+Math.floor(255*parseFloat(v[Y])).toString(16)).slice(-2);return D},Pr=p.__private__.encodeColorString=function(o){var v;typeof o=="string"&&(o={ch1:o});var C=o.ch1,D=o.ch2,Y=o.ch3,it=o.ch4,yt=o.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof C=="string"&&C.charAt(0)!=="#"){var Ft=new $o(C);if(Ft.ok)C=Ft.toHex();else if(!/^\d*\.?\d*$/.test(C))throw new Error('Invalid color "'+C+'" passed to jsPDF.encodeColorString.')}if(typeof C=="string"&&/^#[0-9A-Fa-f]{3}$/.test(C)&&(C="#"+C[1]+C[1]+C[2]+C[2]+C[3]+C[3]),typeof C=="string"&&/^#[0-9A-Fa-f]{6}$/.test(C)){var Dt=parseInt(C.substr(1),16);C=Dt>>16&255,D=Dt>>8&255,Y=255&Dt}if(D===void 0||it===void 0&&C===D&&D===Y)if(typeof C=="string")v=C+" "+yt[0];else switch(o.precision){case 2:v=bt(C/255)+" "+yt[0];break;case 3:default:v=k(C/255)+" "+yt[0]}else if(it===void 0||ve(it)==="object"){if(it&&!isNaN(it.a)&&it.a===0)return v=["1.","1.","1.",yt[1]].join(" ");if(typeof C=="string")v=[C,D,Y,yt[1]].join(" ");else switch(o.precision){case 2:v=[bt(C/255),bt(D/255),bt(Y/255),yt[1]].join(" ");break;default:case 3:v=[k(C/255),k(D/255),k(Y/255),yt[1]].join(" ")}}else if(typeof C=="string")v=[C,D,Y,it,yt[2]].join(" ");else switch(o.precision){case 2:v=[bt(C),bt(D),bt(Y),bt(it),yt[2]].join(" ");break;case 3:default:v=[k(C),k(D),k(Y),k(it),yt[2]].join(" ")}return v},Tr=p.__private__.getFilters=function(){return l},pr=p.__private__.putStream=function(o){var v=(o=o||{}).data||"",C=o.filters||Tr(),D=o.alreadyAppliedFilters||[],Y=o.addLength1||!1,it=v.length,yt=o.objectId,Ft=function(Ye){return Ye};if(A!==null&&yt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");A!==null&&(Ft=Je.encryptor(yt,0));var Dt={};C===!0&&(C=["FlateEncode"]);var Zt=o.additionalKeyValues||[],Yt=(Dt=zt.API.processDataByFilters!==void 0?zt.API.processDataByFilters(v,C):{data:v,reverseChain:[]}).reverseChain+(Array.isArray(D)?D.join(" "):D.toString());if(Dt.data.length!==0&&(Zt.push({key:"Length",value:Dt.data.length}),Y===!0&&Zt.push({key:"Length1",value:it})),Yt.length!=0)if(Yt.split("/").length-1==1)Zt.push({key:"Filter",value:Yt});else{Zt.push({key:"Filter",value:"["+Yt+"]"});for(var ne=0;ne<Zt.length;ne+=1)if(Zt[ne].key==="DecodeParms"){for(var Le=[],xe=0;xe<Dt.reverseChain.split("/").length-1;xe+=1)Le.push("null");Le.push(Zt[ne].value),Zt[ne].value="["+Le.join(" ")+"]"}}O("<<");for(var Be=0;Be<Zt.length;Be++)O("/"+Zt[Be].key+" "+Zt[Be].value);O(">>"),Dt.data.length!==0&&(O("stream"),O(Ft(Dt.data)),O("endstream"))},zr=p.__private__.putPage=function(o){var v=o.number,C=o.data,D=o.objId,Y=o.contentsObjId;cr(D,!0),O("<</Type /Page"),O("/Parent "+o.rootDictionaryObjId+" 0 R"),O("/Resources "+o.resourceDictionaryObjId+" 0 R"),O("/MediaBox ["+parseFloat(nt(o.mediaBox.bottomLeftX))+" "+parseFloat(nt(o.mediaBox.bottomLeftY))+" "+nt(o.mediaBox.topRightX)+" "+nt(o.mediaBox.topRightY)+"]"),o.cropBox!==null&&O("/CropBox ["+nt(o.cropBox.bottomLeftX)+" "+nt(o.cropBox.bottomLeftY)+" "+nt(o.cropBox.topRightX)+" "+nt(o.cropBox.topRightY)+"]"),o.bleedBox!==null&&O("/BleedBox ["+nt(o.bleedBox.bottomLeftX)+" "+nt(o.bleedBox.bottomLeftY)+" "+nt(o.bleedBox.topRightX)+" "+nt(o.bleedBox.topRightY)+"]"),o.trimBox!==null&&O("/TrimBox ["+nt(o.trimBox.bottomLeftX)+" "+nt(o.trimBox.bottomLeftY)+" "+nt(o.trimBox.topRightX)+" "+nt(o.trimBox.topRightY)+"]"),o.artBox!==null&&O("/ArtBox ["+nt(o.artBox.bottomLeftX)+" "+nt(o.artBox.bottomLeftY)+" "+nt(o.artBox.topRightX)+" "+nt(o.artBox.topRightY)+"]"),typeof o.userUnit=="number"&&o.userUnit!==1&&O("/UserUnit "+o.userUnit),ce.publish("putPage",{objId:D,pageContext:Jt[v],pageNumber:v,page:C}),O("/Contents "+Y+" 0 R"),O(">>"),O("endobj");var it=C.join(`
|
||
`);return Z===E.ADVANCED&&(it+=`
|
||
Q`),cr(Y,!0),pr({data:it,filters:Tr(),objectId:Y}),O("endobj"),D},_n=p.__private__.putPages=function(){var o,v,C=[];for(o=1;o<=Ae;o++)Jt[o].objId=Oe(),Jt[o].contentsObjId=Oe();for(o=1;o<=Ae;o++)C.push(zr({number:o,data:Lt[o],objId:Jt[o].objId,contentsObjId:Jt[o].contentsObjId,mediaBox:Jt[o].mediaBox,cropBox:Jt[o].cropBox,bleedBox:Jt[o].bleedBox,trimBox:Jt[o].trimBox,artBox:Jt[o].artBox,userUnit:Jt[o].userUnit,rootDictionaryObjId:Kr,resourceDictionaryObjId:Sr}));cr(Kr,!0),O("<</Type /Pages");var D="/Kids [";for(v=0;v<Ae;v++)D+=C[v]+" 0 R ";O(D+"]"),O("/Count "+Ae),O(">>"),O("endobj"),ce.publish("postPutPages")},Un=function(o){ce.publish("putFont",{font:o,out:O,newObject:qe,putStream:pr}),o.isAlreadyPutted!==!0&&(o.objectNumber=qe(),O("<<"),O("/Type /Font"),O("/BaseFont /"+yi(o.postScriptName)),O("/Subtype /Type1"),typeof o.encoding=="string"&&O("/Encoding /"+o.encoding),O("/FirstChar 32"),O("/LastChar 255"),O(">>"),O("endobj"))},Hn=function(){for(var o in pe)pe.hasOwnProperty(o)&&(N===!1||N===!0&&S.hasOwnProperty(o))&&Un(pe[o])},Wn=function(o){o.objectNumber=qe();var v=[];v.push({key:"Type",value:"/XObject"}),v.push({key:"Subtype",value:"/Form"}),v.push({key:"BBox",value:"["+[nt(o.x),nt(o.y),nt(o.x+o.width),nt(o.y+o.height)].join(" ")+"]"}),v.push({key:"Matrix",value:"["+o.matrix.toString()+"]"});var C=o.pages[1].join(`
|
||
`);pr({data:C,additionalKeyValues:v,objectId:o.objectNumber}),O("endobj")},Vn=function(){for(var o in He)He.hasOwnProperty(o)&&Wn(He[o])},ra=function(o,v){var C,D=[],Y=1/(v-1);for(C=0;C<1;C+=Y)D.push(C);if(D.push(1),o[0].offset!=0){var it={offset:0,color:o[0].color};o.unshift(it)}if(o[o.length-1].offset!=1){var yt={offset:1,color:o[o.length-1].color};o.push(yt)}for(var Ft="",Dt=0,Zt=0;Zt<D.length;Zt++){for(C=D[Zt];C>o[Dt+1].offset;)Dt++;var Yt=o[Dt].offset,ne=(C-Yt)/(o[Dt+1].offset-Yt),Le=o[Dt].color,xe=o[Dt+1].color;Ft+=W(Math.round((1-ne)*Le[0]+ne*xe[0]).toString(16))+W(Math.round((1-ne)*Le[1]+ne*xe[1]).toString(16))+W(Math.round((1-ne)*Le[2]+ne*xe[2]).toString(16))}return Ft.trim()},ns=function(o,v){v||(v=21);var C=qe(),D=ra(o.colors,v),Y=[];Y.push({key:"FunctionType",value:"0"}),Y.push({key:"Domain",value:"[0.0 1.0]"}),Y.push({key:"Size",value:"["+v+"]"}),Y.push({key:"BitsPerSample",value:"8"}),Y.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Y.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),pr({data:D,additionalKeyValues:Y,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:C}),O("endobj"),o.objectNumber=qe(),O("<< /ShadingType "+o.type),O("/ColorSpace /DeviceRGB");var it="/Coords ["+nt(parseFloat(o.coords[0]))+" "+nt(parseFloat(o.coords[1]))+" ";o.type===2?it+=nt(parseFloat(o.coords[2]))+" "+nt(parseFloat(o.coords[3])):it+=nt(parseFloat(o.coords[2]))+" "+nt(parseFloat(o.coords[3]))+" "+nt(parseFloat(o.coords[4]))+" "+nt(parseFloat(o.coords[5])),O(it+="]"),o.matrix&&O("/Matrix ["+o.matrix.toString()+"]"),O("/Function "+C+" 0 R"),O("/Extend [true true]"),O(">>"),O("endobj")},is=function(o,v){var C=Oe(),D=qe();v.push({resourcesOid:C,objectOid:D}),o.objectNumber=D;var Y=[];Y.push({key:"Type",value:"/Pattern"}),Y.push({key:"PatternType",value:"1"}),Y.push({key:"PaintType",value:"1"}),Y.push({key:"TilingType",value:"1"}),Y.push({key:"BBox",value:"["+o.boundingBox.map(nt).join(" ")+"]"}),Y.push({key:"XStep",value:nt(o.xStep)}),Y.push({key:"YStep",value:nt(o.yStep)}),Y.push({key:"Resources",value:C+" 0 R"}),o.matrix&&Y.push({key:"Matrix",value:"["+o.matrix.toString()+"]"}),pr({data:o.stream,additionalKeyValues:Y,objectId:o.objectNumber}),O("endobj")},Gn=function(o){var v;for(v in ue)ue.hasOwnProperty(v)&&(ue[v]instanceof Dn?ns(ue[v]):ue[v]instanceof wi&&is(ue[v],o))},na=function(o){for(var v in o.objectNumber=qe(),O("<<"),o)switch(v){case"opacity":O("/ca "+bt(o[v]));break;case"stroke-opacity":O("/CA "+bt(o[v]))}O(">>"),O("endobj")},as=function(){var o;for(o in Ne)Ne.hasOwnProperty(o)&&na(Ne[o])},Si=function(){for(var o in O("/XObject <<"),He)He.hasOwnProperty(o)&&He[o].objectNumber>=0&&O("/"+o+" "+He[o].objectNumber+" 0 R");ce.publish("putXobjectDict"),O(">>")},ss=function(){Je.oid=qe(),O("<<"),O("/Filter /Standard"),O("/V "+Je.v),O("/R "+Je.r),O("/U <"+Je.toHexString(Je.U)+">"),O("/O <"+Je.toHexString(Je.O)+">"),O("/P "+Je.P),O(">>"),O("endobj")},ia=function(){for(var o in O("/Font <<"),pe)pe.hasOwnProperty(o)&&(N===!1||N===!0&&S.hasOwnProperty(o))&&O("/"+o+" "+pe[o].objectNumber+" 0 R");O(">>")},os=function(){if(Object.keys(ue).length>0){for(var o in O("/Shading <<"),ue)ue.hasOwnProperty(o)&&ue[o]instanceof Dn&&ue[o].objectNumber>=0&&O("/"+o+" "+ue[o].objectNumber+" 0 R");ce.publish("putShadingPatternDict"),O(">>")}},Jn=function(o){if(Object.keys(ue).length>0){for(var v in O("/Pattern <<"),ue)ue.hasOwnProperty(v)&&ue[v]instanceof p.TilingPattern&&ue[v].objectNumber>=0&&ue[v].objectNumber<o&&O("/"+v+" "+ue[v].objectNumber+" 0 R");ce.publish("putTilingPatternDict"),O(">>")}},us=function(){if(Object.keys(Ne).length>0){var o;for(o in O("/ExtGState <<"),Ne)Ne.hasOwnProperty(o)&&Ne[o].objectNumber>=0&&O("/"+o+" "+Ne[o].objectNumber+" 0 R");ce.publish("putGStateDict"),O(">>")}},Pe=function(o){cr(o.resourcesOid,!0),O("<<"),O("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),ia(),os(),Jn(o.objectOid),us(),Si(),O(">>"),O("endobj")},aa=function(){var o=[];Hn(),as(),Vn(),Gn(o),ce.publish("putResources"),o.forEach(Pe),Pe({resourcesOid:Sr,objectOid:Number.MAX_SAFE_INTEGER}),ce.publish("postPutResources")},sa=function(){ce.publish("putAdditionalObjects");for(var o=0;o<At.length;o++){var v=At[o];cr(v.objId,!0),O(v.content),O("endobj")}ce.publish("postPutAdditionalObjects")},oa=function(o){we[o.fontName]=we[o.fontName]||{},we[o.fontName][o.fontStyle]=o.id},_i=function(o,v,C,D,Y){var it={id:"F"+(Object.keys(pe).length+1).toString(10),postScriptName:o,fontName:v,fontStyle:C,encoding:D,isStandardFont:Y||!1,metadata:{}};return ce.publish("addFont",{font:it,instance:this}),pe[it.id]=it,oa(it),it.id},cs=function(o){for(var v=0,C=wt.length;v<C;v++){var D=_i.call(this,o[v][0],o[v][1],o[v][2],wt[v][3],!0);N===!1&&(S[D]=!0);var Y=o[v][0].split("-");oa({id:D,fontName:Y[0],fontStyle:Y[1]||""})}ce.publish("addFonts",{fonts:pe,dictionary:we})},kr=function(o){return o.foo=function(){try{return o.apply(this,arguments)}catch(D){var v=D.stack||"";~v.indexOf(" at ")&&(v=v.split(" at ")[1]);var C="Error in function "+v.split(`
|
||
`)[0].split("<")[0]+": "+D.message;if(!Ut.console)throw new Error(C);Ut.console.error(C,D),Ut.alert&&alert(C)}},o.foo.bar=o,o.foo},Yn=function(o,v){var C,D,Y,it,yt,Ft,Dt,Zt,Yt;if(Y=(v=v||{}).sourceEncoding||"Unicode",yt=v.outputEncoding,(v.autoencode||yt)&&pe[ee].metadata&&pe[ee].metadata[Y]&&pe[ee].metadata[Y].encoding&&(it=pe[ee].metadata[Y].encoding,!yt&&pe[ee].encoding&&(yt=pe[ee].encoding),!yt&&it.codePages&&(yt=it.codePages[0]),typeof yt=="string"&&(yt=it[yt]),yt)){for(Dt=!1,Ft=[],C=0,D=o.length;C<D;C++)(Zt=yt[o.charCodeAt(C)])?Ft.push(String.fromCharCode(Zt)):Ft.push(o[C]),Ft[C].charCodeAt(0)>>8&&(Dt=!0);o=Ft.join("")}for(C=o.length;Dt===void 0&&C!==0;)o.charCodeAt(C-1)>>8&&(Dt=!0),C--;if(!Dt)return o;for(Ft=v.noBOM?[]:[254,255],C=0,D=o.length;C<D;C++){if((Yt=(Zt=o.charCodeAt(C))>>8)>>8)throw new Error("Character at position "+C+" of string '"+o+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Ft.push(Yt),Ft.push(Zt-(Yt<<8))}return String.fromCharCode.apply(void 0,Ft)},nr=p.__private__.pdfEscape=p.pdfEscape=function(o,v){return Yn(o,v).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Pi=p.__private__.beginPage=function(o){Lt[++Ae]=[],Jt[Ae]={objId:0,contentsObjId:0,userUnit:Number(h),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(o[0]),topRightY:Number(o[1])}},ca(Ae),at(Lt[j])},ua=function(o,v){var C,D,Y;switch(r=v||r,typeof o=="string"&&(C=_(o.toLowerCase()),Array.isArray(C)&&(D=C[0],Y=C[1])),Array.isArray(o)&&(D=o[0]*It,Y=o[1]*It),isNaN(D)&&(D=c[0],Y=c[1]),(D>14400||Y>14400)&&(me.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),D=Math.min(14400,D),Y=Math.min(14400,Y)),c=[D,Y],r.substr(0,1)){case"l":Y>D&&(c=[Y,D]);break;case"p":D>Y&&(c=[Y,D])}Pi(c),ga(Ci),O(Ir),Oi!==0&&O(Oi+" J"),Bi!==0&&O(Bi+" j"),ce.publish("addPage",{pageNumber:Ae})},ls=function(o){o>0&&o<=Ae&&(Lt.splice(o,1),Jt.splice(o,1),Ae--,j>Ae&&(j=Ae),this.setPage(j))},ca=function(o){o>0&&o<=Ae&&(j=o)},hs=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return Lt.length-1},la=function(o,v,C){var D,Y=void 0;return C=C||{},o=o!==void 0?o:pe[ee].fontName,v=v!==void 0?v:pe[ee].fontStyle,D=o.toLowerCase(),we[D]!==void 0&&we[D][v]!==void 0?Y=we[D][v]:we[o]!==void 0&&we[o][v]!==void 0?Y=we[o][v]:C.disableWarning===!1&&me.warn("Unable to look up font label for font '"+o+"', '"+v+"'. Refer to getFontList() for available fonts."),Y||C.noFallback||(Y=we.times[v])==null&&(Y=we.times.normal),Y},fs=p.__private__.putInfo=function(){var o=qe(),v=function(D){return D};for(var C in A!==null&&(v=Je.encryptor(o,0)),O("<<"),O("/Producer ("+nr(v("jsPDF "+zt.version))+")"),Ht)Ht.hasOwnProperty(C)&&Ht[C]&&O("/"+C.substr(0,1).toUpperCase()+C.substr(1)+" ("+nr(v(Ht[C]))+")");O("/CreationDate ("+nr(v(ut))+")"),O(">>"),O("endobj")},ki=p.__private__.putCatalog=function(o){var v=(o=o||{}).rootDictionaryObjId||Kr;switch(qe(),O("<<"),O("/Type /Catalog"),O("/Pages "+v+" 0 R"),kt||(kt="fullwidth"),kt){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 C=""+kt;C.substr(C.length-1)==="%"&&(kt=parseInt(kt)/100),typeof kt=="number"&&O("/OpenAction [3 0 R /XYZ null null "+bt(kt)+"]")}switch(te||(te="continuous"),te){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")}Gt&&O("/PageMode /"+Gt),ce.publish("putCatalog"),O(">>"),O("endobj")},ds=p.__private__.putTrailer=function(){O("trailer"),O("<<"),O("/Size "+(J+1)),O("/Root "+J+" 0 R"),O("/Info "+(J-1)+" 0 R"),A!==null&&O("/Encrypt "+Je.oid+" 0 R"),O("/ID [ <"+st+"> <"+st+"> ]"),O(">>")},ps=p.__private__.putHeader=function(){O("%PDF-"+B),O("%ºß¬à")},gs=p.__private__.putXRef=function(){var o="0000000000";O("xref"),O("0 "+(J+1)),O("0000000000 65535 f ");for(var v=1;v<=J;v++)typeof $[v]=="function"?O((o+$[v]()).slice(-10)+" 00000 n "):$[v]!==void 0?O((o+$[v]).slice(-10)+" 00000 n "):O("0000000000 00000 n ")},Zr=p.__private__.buildDocument=function(){Wt(),at(et),ce.publish("buildDocument"),ps(),_n(),sa(),aa(),A!==null&&ss(),fs(),ki();var o=Q;return gs(),ds(),O("startxref"),O(""+o),O("%%EOF"),at(Lt[j]),et.join(`
|
||
`)},Xn=p.__private__.getBlob=function(o){return new Blob([Et(o)],{type:"application/pdf"})},Kn=p.output=p.__private__.output=kr((function(o,v){switch(typeof(v=v||{})=="string"?v={filename:v}:v.filename=v.filename||"generated.pdf",o){case void 0:return Zr();case"save":p.save(v.filename);break;case"arraybuffer":return Et(Zr());case"blob":return Xn(Zr());case"bloburi":case"bloburl":if(Ut.URL!==void 0&&typeof Ut.URL.createObjectURL=="function")return Ut.URL&&Ut.URL.createObjectURL(Xn(Zr()))||void 0;me.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var C="",D=Zr();try{C=Qs(D)}catch{C=Qs(unescape(encodeURIComponent(D)))}return"data:application/pdf;filename="+v.filename+";base64,"+C;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Ut)==="[object Window]"){var Y="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",it=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';v.pdfObjectUrl&&(Y=v.pdfObjectUrl,it="");var yt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+Y+'"'+it+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(v)+");<\/script></body></html>",Ft=Ut.open();return Ft!==null&&Ft.document.write(yt),Ft}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Ut)==="[object Window]"){var Dt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(v.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+v.filename+'" width="500px" height="400px" /></body></html>',Zt=Ut.open();if(Zt!==null){Zt.document.write(Dt);var Yt=this;Zt.document.documentElement.querySelector("#pdfViewer").onload=function(){Zt.document.title=v.filename,Zt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Yt.output("bloburl"))}}return Zt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Ut)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var ne='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",v)+'"></iframe></body></html>',Le=Ut.open();if(Le!==null&&(Le.document.write(ne),Le.document.title=v.filename),Le||typeof safari>"u")return Le;break;case"datauri":case"dataurl":return Ut.document.location.href=this.output("datauristring",v);default:return null}})),ha=function(o){return Array.isArray(Sn)===!0&&Sn.indexOf(o)>-1};switch(a){case"pt":It=1;break;case"mm":It=72/25.4;break;case"cm":It=72/2.54;break;case"in":It=72;break;case"px":It=ha("px_scaling")==1?.75:96/72;break;case"pc":case"em":It=12;break;case"ex":It=6;break;default:if(typeof a!="number")throw new Error("Invalid unit: "+a);It=a}var Je=null;Mt(),tt();var ms=function(o){return A!==null?Je.encryptor(o,0):function(v){return v}},fa=p.__private__.getPageInfo=p.getPageInfo=function(o){if(isNaN(o)||o%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Jt[o].objId,pageNumber:o,pageContext:Jt[o]}},Vt=p.__private__.getPageInfoByObjId=function(o){if(isNaN(o)||o%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var v in Jt)if(Jt[v].objId===o)break;return fa(v)},vs=p.__private__.getCurrentPageInfo=p.getCurrentPageInfo=function(){return{objId:Jt[j].objId,pageNumber:j,pageContext:Jt[j]}};p.addPage=function(){return ua.apply(this,arguments),this},p.setPage=function(){return ca.apply(this,arguments),at.call(this,Lt[j]),this},p.insertPage=function(o){return this.addPage(),this.movePage(j,o),this},p.movePage=function(o,v){var C,D;if(o>v){C=Lt[o],D=Jt[o];for(var Y=o;Y>v;Y--)Lt[Y]=Lt[Y-1],Jt[Y]=Jt[Y-1];Lt[v]=C,Jt[v]=D,this.setPage(v)}else if(o<v){C=Lt[o],D=Jt[o];for(var it=o;it<v;it++)Lt[it]=Lt[it+1],Jt[it]=Jt[it+1];Lt[v]=C,Jt[v]=D,this.setPage(v)}return this},p.deletePage=function(){return ls.apply(this,arguments),this},p.__private__.text=p.text=function(o,v,C,D,Y){var it,yt,Ft,Dt,Zt,Yt,ne,Le,xe,Be=(D=D||{}).scope||this;if(typeof o=="number"&&typeof v=="number"&&(typeof C=="string"||Array.isArray(C))){var Ye=C;C=v,v=o,o=Ye}if(arguments[3]instanceof Tt?(G("The transform parameter of text() with a Matrix value"),xe=Y):(Ft=arguments[4],Dt=arguments[5],ve(ne=arguments[3])==="object"&&ne!==null||(typeof Ft=="string"&&(Dt=Ft,Ft=null),typeof ne=="string"&&(Dt=ne,ne=null),typeof ne=="number"&&(Ft=ne,ne=null),D={flags:ne,angle:Ft,align:Dt})),isNaN(v)||isNaN(C)||o==null)throw new Error("Invalid arguments passed to jsPDF.text");if(o.length===0)return Be;var Re="",Fr=!1,lr=typeof D.lineHeightFactor=="number"?D.lineHeightFactor:kn,Wr=Be.internal.scaleFactor;function La(be){return be=be.split(" ").join(Array(D.TabLen||9).join(" ")),nr(be,ne)}function Ri(be){for(var ye,Ie=be.concat(),De=[],rn=Ie.length;rn--;)typeof(ye=Ie.shift())=="string"?De.push(ye):Array.isArray(be)&&(ye.length===1||ye[1]===void 0&&ye[2]===void 0)?De.push(ye[0]):De.push([ye[0],ye[1],ye[2]]);return De}function Ti(be,ye){var Ie;if(typeof be=="string")Ie=ye(be)[0];else if(Array.isArray(be)){for(var De,rn,Yi=be.concat(),hi=[],_a=Yi.length;_a--;)typeof(De=Yi.shift())=="string"?hi.push(ye(De)[0]):Array.isArray(De)&&typeof De[0]=="string"&&(rn=ye(De[0],De[1],De[2]),hi.push([rn[0],rn[1],rn[2]]));Ie=hi}return Ie}var ri=!1,zi=!0;if(typeof o=="string")ri=!0;else if(Array.isArray(o)){var Ui=o.concat();yt=[];for(var ni,We=Ui.length;We--;)(typeof(ni=Ui.shift())!="string"||Array.isArray(ni)&&typeof ni[0]!="string")&&(zi=!1);ri=zi}if(ri===!1)throw new Error('Type of text must be string or Array. "'+o+'" is not recognized.');typeof o=="string"&&(o=o.match(/[\r?\n]/)?o.split(/\r\n|\r|\n/g):[o]);var ii=xt/Be.internal.scaleFactor,ai=ii*(lr-1);switch(D.baseline){case"bottom":C-=ai;break;case"top":C+=ii-ai;break;case"hanging":C+=ii-2*ai;break;case"middle":C+=ii/2-ai}if((Yt=D.maxWidth||0)>0&&(typeof o=="string"?o=Be.splitTextToSize(o,Yt):Object.prototype.toString.call(o)==="[object Array]"&&(o=o.reduce((function(be,ye){return be.concat(Be.splitTextToSize(ye,Yt))}),[]))),it={text:o,x:v,y:C,options:D,mutex:{pdfEscape:nr,activeFontKey:ee,fonts:pe,activeFontSize:xt}},ce.publish("preProcessText",it),o=it.text,Ft=(D=it.options).angle,!(xe instanceof Tt)&&Ft&&typeof Ft=="number"){Ft*=Math.PI/180,D.rotationDirection===0&&(Ft=-Ft),Z===E.ADVANCED&&(Ft=-Ft);var si=Math.cos(Ft),Hi=Math.sin(Ft);xe=new Tt(si,Hi,-Hi,si,0,0)}else Ft&&Ft instanceof Tt&&(xe=Ft);Z!==E.ADVANCED||xe||(xe=Rr),(Zt=D.charSpace||Qn)!==void 0&&(Re+=nt(I(Zt))+` Tc
|
||
`,this.setCharSpace(this.getCharSpace()||0)),(Le=D.horizontalScale)!==void 0&&(Re+=nt(100*Le)+` Tz
|
||
`),D.lang;var ir=-1,Ps=D.renderingMode!==void 0?D.renderingMode:D.stroke,Wi=Be.internal.getCurrentPageInfo().pageContext;switch(Ps){case 0:case!1:case"fill":ir=0;break;case 1:case!0:case"stroke":ir=1;break;case 2:case"fillThenStroke":ir=2;break;case 3:case"invisible":ir=3;break;case 4:case"fillAndAddForClipping":ir=4;break;case 5:case"strokeAndAddPathForClipping":ir=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":ir=6;break;case 7:case"addToPathForClipping":ir=7}var Na=Wi.usedRenderingMode!==void 0?Wi.usedRenderingMode:-1;ir!==-1?Re+=ir+` Tr
|
||
`:Na!==-1&&(Re+=`0 Tr
|
||
`),ir!==-1&&(Wi.usedRenderingMode=ir),Dt=D.align||"left";var gr,oi=xt*lr,Aa=Be.internal.pageSize.getWidth(),xa=pe[ee];Zt=D.charSpace||Qn,Yt=D.maxWidth||0,ne=Object.assign({autoencode:!0,noBOM:!0},D.flags);var ln=[],Cn=function(be){return Be.getStringUnitWidth(be,{font:xa,charSpace:Zt,fontSize:xt,doKerning:!1})*xt/Wr};if(Object.prototype.toString.call(o)==="[object Array]"){var ar;yt=Ri(o),Dt!=="left"&&(gr=yt.map(Cn));var Qe,hn=0;if(Dt==="right"){v-=gr[0],o=[],We=yt.length;for(var Qr=0;Qr<We;Qr++)Qr===0?(Qe=Hr(v),ar=$r(C)):(Qe=I(hn-gr[Qr]),ar=-oi),o.push([yt[Qr],Qe,ar]),hn=gr[Qr]}else if(Dt==="center"){v-=gr[0]/2,o=[],We=yt.length;for(var tn=0;tn<We;tn++)tn===0?(Qe=Hr(v),ar=$r(C)):(Qe=I((hn-gr[tn])/2),ar=-oi),o.push([yt[tn],Qe,ar]),hn=gr[tn]}else if(Dt==="left"){o=[],We=yt.length;for(var ui=0;ui<We;ui++)o.push(yt[ui])}else if(Dt==="justify"&&xa.encoding==="Identity-H"){o=[],We=yt.length,Yt=Yt!==0?Yt:Aa;for(var en=0,ke=0;ke<We;ke++)if(ar=ke===0?$r(C):-oi,Qe=ke===0?Hr(v):en,ke<We-1){var Vi=I((Yt-gr[ke])/(yt[ke].split(" ").length-1)),tr=yt[ke].split(" ");o.push([tr[0]+" ",Qe,ar]),en=0;for(var mr=1;mr<tr.length;mr++){var ci=(Cn(tr[mr-1]+" "+tr[mr])-Cn(tr[mr]))*Wr+Vi;mr==tr.length-1?o.push([tr[mr],ci,0]):o.push([tr[mr]+" ",ci,0]),en-=ci}}else o.push([yt[ke],Qe,ar]);o.push(["",en,0])}else{if(Dt!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(o=[],We=yt.length,Yt=Yt!==0?Yt:Aa,ke=0;ke<We;ke++)ar=ke===0?$r(C):-oi,Qe=ke===0?Hr(v):0,ke<We-1?ln.push(nt(I((Yt-gr[ke])/(yt[ke].split(" ").length-1)))):ln.push(0),o.push([yt[ke],Qe,ar])}}var Sa=typeof D.R2L=="boolean"?D.R2L:qt;Sa===!0&&(o=Ti(o,(function(be,ye,Ie){return[be.split("").reverse().join(""),ye,Ie]}))),it={text:o,x:v,y:C,options:D,mutex:{pdfEscape:nr,activeFontKey:ee,fonts:pe,activeFontSize:xt}},ce.publish("postProcessText",it),o=it.text,Fr=it.mutex.isHex||!1;var Gi=pe[ee].encoding;Gi!=="WinAnsiEncoding"&&Gi!=="StandardEncoding"||(o=Ti(o,(function(be,ye,Ie){return[La(be),ye,Ie]}))),yt=Ri(o),o=[];for(var jn,On,fn,Bn=0,li=1,En=Array.isArray(yt[0])?li:Bn,dn="",Ji=function(be,ye,Ie){var De="";return Ie instanceof Tt?(Ie=typeof D.angle=="number"?xr(Ie,new Tt(1,0,0,1,be,ye)):xr(new Tt(1,0,0,1,be,ye),Ie),Z===E.ADVANCED&&(Ie=xr(new Tt(1,0,0,-1,0,0),Ie)),De=Ie.join(" ")+` Tm
|
||
`):De=nt(be)+" "+nt(ye)+` Td
|
||
`,De},vr=0;vr<yt.length;vr++){switch(dn="",En){case li:fn=(Fr?"<":"(")+yt[vr][0]+(Fr?">":")"),jn=parseFloat(yt[vr][1]),On=parseFloat(yt[vr][2]);break;case Bn:fn=(Fr?"<":"(")+yt[vr]+(Fr?">":")"),jn=Hr(v),On=$r(C)}ln!==void 0&&ln[vr]!==void 0&&(dn=ln[vr]+` Tw
|
||
`),vr===0?o.push(dn+Ji(jn,On,xe)+fn):En===Bn?o.push(dn+fn):En===li&&o.push(dn+Ji(jn,On,xe)+fn)}o=En===Bn?o.join(` Tj
|
||
T* `):o.join(` Tj
|
||
`),o+=` Tj
|
||
`;var br=`BT
|
||
/`;return br+=ee+" "+xt+` Tf
|
||
`,br+=nt(xt*lr)+` TL
|
||
`,br+=In+`
|
||
`,br+=Re,br+=o,O(br+="ET"),S[ee]=!0,Be};var bs=p.__private__.clip=p.clip=function(o){return O(o==="evenodd"?"W*":"W"),this};p.clipEvenOdd=function(){return bs("evenodd")},p.__private__.discardPath=p.discardPath=function(){return O("n"),this};var Ur=p.__private__.isValidStyle=function(o){var v=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(o)!==-1&&(v=!0),v};p.__private__.setDefaultPathOperation=p.setDefaultPathOperation=function(o){return Ur(o)&&(g=o),this};var da=p.__private__.getStyle=p.getStyle=function(o){var v=g;switch(o){case"D":case"S":v="S";break;case"F":v="f";break;case"FD":case"DF":v="B";break;case"f":case"f*":case"B":case"B*":v=o}return v},pa=p.close=function(){return O("h"),this};p.stroke=function(){return O("S"),this},p.fill=function(o){return Zn("f",o),this},p.fillEvenOdd=function(o){return Zn("f*",o),this},p.fillStroke=function(o){return Zn("B",o),this},p.fillStrokeEvenOdd=function(o){return Zn("B*",o),this};var Zn=function(o,v){ve(v)==="object"?ws(v,o):O(o)},Ii=function(o){o===null||Z===E.ADVANCED&&o===void 0||(o=da(o),O(o))};function ys(o,v,C,D,Y){var it=new wi(v||this.boundingBox,C||this.xStep,D||this.yStep,this.gState,Y||this.matrix);it.stream=this.stream;var yt=o+"$$"+this.cloneIndex+++"$$";return rr(yt,it),it}var ws=function(o,v){var C=xn[o.key],D=ue[C];if(D instanceof Dn)O("q"),O(Ls(v)),D.gState&&p.setGState(D.gState),O(o.matrix.toString()+" cm"),O("/"+C+" sh"),O("Q");else if(D instanceof wi){var Y=new Tt(1,0,0,-1,0,cn());o.matrix&&(Y=Y.multiply(o.matrix||Rr),C=ys.call(D,o.key,o.boundingBox,o.xStep,o.yStep,Y).id),O("q"),O("/Pattern cs"),O("/"+C+" scn"),D.gState&&p.setGState(D.gState),O(v),O("Q")}},Ls=function(o){switch(o){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"}},Fi=p.moveTo=function(o,v){return O(nt(I(o))+" "+nt(R(v))+" m"),this},Pn=p.lineTo=function(o,v){return O(nt(I(o))+" "+nt(R(v))+" l"),this},on=p.curveTo=function(o,v,C,D,Y,it){return O([nt(I(o)),nt(R(v)),nt(I(C)),nt(R(D)),nt(I(Y)),nt(R(it)),"c"].join(" ")),this};p.__private__.line=p.line=function(o,v,C,D,Y){if(isNaN(o)||isNaN(v)||isNaN(C)||isNaN(D)||!Ur(Y))throw new Error("Invalid arguments passed to jsPDF.line");return Z===E.COMPAT?this.lines([[C-o,D-v]],o,v,[1,1],Y||"S"):this.lines([[C-o,D-v]],o,v,[1,1]).stroke()},p.__private__.lines=p.lines=function(o,v,C,D,Y,it){var yt,Ft,Dt,Zt,Yt,ne,Le,xe,Be,Ye,Re,Fr;if(typeof o=="number"&&(Fr=C,C=v,v=o,o=Fr),D=D||[1,1],it=it||!1,isNaN(v)||isNaN(C)||!Array.isArray(o)||!Array.isArray(D)||!Ur(Y)||typeof it!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Fi(v,C),yt=D[0],Ft=D[1],Zt=o.length,Ye=v,Re=C,Dt=0;Dt<Zt;Dt++)(Yt=o[Dt]).length===2?(Ye=Yt[0]*yt+Ye,Re=Yt[1]*Ft+Re,Pn(Ye,Re)):(ne=Yt[0]*yt+Ye,Le=Yt[1]*Ft+Re,xe=Yt[2]*yt+Ye,Be=Yt[3]*Ft+Re,Ye=Yt[4]*yt+Ye,Re=Yt[5]*Ft+Re,on(ne,Le,xe,Be,Ye,Re));return it&&pa(),Ii(Y),this},p.path=function(o){for(var v=0;v<o.length;v++){var C=o[v],D=C.c;switch(C.op){case"m":Fi(D[0],D[1]);break;case"l":Pn(D[0],D[1]);break;case"c":on.apply(this,D);break;case"h":pa()}}return this},p.__private__.rect=p.rect=function(o,v,C,D,Y){if(isNaN(o)||isNaN(v)||isNaN(C)||isNaN(D)||!Ur(Y))throw new Error("Invalid arguments passed to jsPDF.rect");return Z===E.COMPAT&&(D=-D),O([nt(I(o)),nt(R(v)),nt(I(C)),nt(I(D)),"re"].join(" ")),Ii(Y),this},p.__private__.triangle=p.triangle=function(o,v,C,D,Y,it,yt){if(isNaN(o)||isNaN(v)||isNaN(C)||isNaN(D)||isNaN(Y)||isNaN(it)||!Ur(yt))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[C-o,D-v],[Y-C,it-D],[o-Y,v-it]],o,v,[1,1],yt,!0),this},p.__private__.roundedRect=p.roundedRect=function(o,v,C,D,Y,it,yt){if(isNaN(o)||isNaN(v)||isNaN(C)||isNaN(D)||isNaN(Y)||isNaN(it)||!Ur(yt))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Ft=4/3*(Math.SQRT2-1);return Y=Math.min(Y,.5*C),it=Math.min(it,.5*D),this.lines([[C-2*Y,0],[Y*Ft,0,Y,it-it*Ft,Y,it],[0,D-2*it],[0,it*Ft,-Y*Ft,it,-Y,it],[2*Y-C,0],[-Y*Ft,0,-Y,-it*Ft,-Y,-it],[0,2*it-D],[0,-it*Ft,Y*Ft,-it,Y,-it]],o+Y,v,[1,1],yt,!0),this},p.__private__.ellipse=p.ellipse=function(o,v,C,D,Y){if(isNaN(o)||isNaN(v)||isNaN(C)||isNaN(D)||!Ur(Y))throw new Error("Invalid arguments passed to jsPDF.ellipse");var it=4/3*(Math.SQRT2-1)*C,yt=4/3*(Math.SQRT2-1)*D;return Fi(o+C,v),on(o+C,v-yt,o+it,v-D,o,v-D),on(o-it,v-D,o-C,v-yt,o-C,v),on(o-C,v+yt,o-it,v+D,o,v+D),on(o+it,v+D,o+C,v+yt,o+C,v),Ii(Y),this},p.__private__.circle=p.circle=function(o,v,C,D){if(isNaN(o)||isNaN(v)||isNaN(C)||!Ur(D))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(o,v,C,C,D)},p.setFont=function(o,v,C){return C&&(v=Nt(v,C)),ee=la(o,v,{disableWarning:!1}),this};var Ns=p.__private__.getFont=p.getFont=function(){return pe[la.apply(p,arguments)]};p.__private__.getFontList=p.getFontList=function(){var o,v,C={};for(o in we)if(we.hasOwnProperty(o))for(v in C[o]=[],we[o])we[o].hasOwnProperty(v)&&C[o].push(v);return C},p.addFont=function(o,v,C,D,Y){var it=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&it.indexOf(arguments[3])!==-1?Y=arguments[3]:arguments[3]&&it.indexOf(arguments[3])==-1&&(C=Nt(C,D)),Y=Y||"Identity-H",_i.call(this,o,v,C,Y)};var kn,Ci=i.lineWidth||.200025,$n=p.__private__.getLineWidth=p.getLineWidth=function(){return Ci},ga=p.__private__.setLineWidth=p.setLineWidth=function(o){return Ci=o,O(nt(I(o))+" w"),this};p.__private__.setLineDash=zt.API.setLineDash=zt.API.setLineDashPattern=function(o,v){if(o=o||[],v=v||0,isNaN(v)||!Array.isArray(o))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return o=o.map((function(C){return nt(I(C))})).join(" "),v=nt(I(v)),O("["+o+"] "+v+" d"),this};var ma=p.__private__.getLineHeight=p.getLineHeight=function(){return xt*kn};p.__private__.getLineHeight=p.getLineHeight=function(){return xt*kn};var va=p.__private__.setLineHeightFactor=p.setLineHeightFactor=function(o){return typeof(o=o||1.15)=="number"&&(kn=o),this},ba=p.__private__.getLineHeightFactor=p.getLineHeightFactor=function(){return kn};va(i.lineHeight);var Hr=p.__private__.getHorizontalCoordinate=function(o){return I(o)},$r=p.__private__.getVerticalCoordinate=function(o){return Z===E.ADVANCED?o:Jt[j].mediaBox.topRightY-Jt[j].mediaBox.bottomLeftY-I(o)},As=p.__private__.getHorizontalCoordinateString=p.getHorizontalCoordinateString=function(o){return nt(Hr(o))},un=p.__private__.getVerticalCoordinateString=p.getVerticalCoordinateString=function(o){return nt($r(o))},Ir=i.strokeColor||"0 G";p.__private__.getStrokeColor=p.getDrawColor=function(){return _r(Ir)},p.__private__.setStrokeColor=p.setDrawColor=function(o,v,C,D){return Ir=Pr({ch1:o,ch2:v,ch3:C,ch4:D,pdfColorType:"draw",precision:2}),O(Ir),this};var ji=i.fillColor||"0 g";p.__private__.getFillColor=p.getFillColor=function(){return _r(ji)},p.__private__.setFillColor=p.setFillColor=function(o,v,C,D){return ji=Pr({ch1:o,ch2:v,ch3:C,ch4:D,pdfColorType:"fill",precision:2}),O(ji),this};var In=i.textColor||"0 g",xs=p.__private__.getTextColor=p.getTextColor=function(){return _r(In)};p.__private__.setTextColor=p.setTextColor=function(o,v,C,D){return In=Pr({ch1:o,ch2:v,ch3:C,ch4:D,pdfColorType:"text",precision:3}),this};var Qn=i.charSpace,Ss=p.__private__.getCharSpace=p.getCharSpace=function(){return parseFloat(Qn||0)};p.__private__.setCharSpace=p.setCharSpace=function(o){if(isNaN(o))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Qn=o,this};var Oi=0;p.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},p.__private__.setLineCap=p.setLineCap=function(o){var v=p.CapJoinStyles[o];if(v===void 0)throw new Error("Line cap style of '"+o+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Oi=v,O(v+" J"),this};var Bi=0;p.__private__.setLineJoin=p.setLineJoin=function(o){var v=p.CapJoinStyles[o];if(v===void 0)throw new Error("Line join style of '"+o+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Bi=v,O(v+" j"),this},p.__private__.setLineMiterLimit=p.__private__.setMiterLimit=p.setLineMiterLimit=p.setMiterLimit=function(o){if(o=o||0,isNaN(o))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return O(nt(I(o))+" M"),this},p.GState=ts,p.setGState=function(o){(o=typeof o=="string"?Ne[Ar[o]]:ya(null,o)).equals(Xr)||(O("/"+o.id+" gs"),Xr=o)};var ya=function(o,v){if(!o||!Ar[o]){var C=!1;for(var D in Ne)if(Ne.hasOwnProperty(D)&&Ne[D].equals(v)){C=!0;break}if(C)v=Ne[D];else{var Y="GS"+(Object.keys(Ne).length+1).toString(10);Ne[Y]=v,v.id=Y}return o&&(Ar[o]=v.id),ce.publish("addGState",v),v}};p.addGState=function(o,v){return ya(o,v),this},p.saveGraphicsState=function(){return O("q"),Mr.push({key:ee,size:xt,color:In}),this},p.restoreGraphicsState=function(){O("Q");var o=Mr.pop();return ee=o.key,xt=o.size,In=o.color,Xr=null,this},p.setCurrentTransformationMatrix=function(o){return O(o.toString()+" cm"),this},p.comment=function(o){return O("#"+o),this};var ti=function(o,v){var C=o||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return C},set:function(it){isNaN(it)||(C=parseFloat(it))}});var D=v||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return D},set:function(it){isNaN(it)||(D=parseFloat(it))}});var Y="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Y},set:function(it){Y=it.toString()}}),this},Ei=function(o,v,C,D){ti.call(this,o,v),this.type="rect";var Y=C||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Y},set:function(yt){isNaN(yt)||(Y=parseFloat(yt))}});var it=D||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return it},set:function(yt){isNaN(yt)||(it=parseFloat(yt))}}),this},Mi=function(){this.page=Ae,this.currentPage=j,this.pages=Lt.slice(0),this.pagesContext=Jt.slice(0),this.x=Ge,this.y=se,this.matrix=Nr,this.width=Fn(j),this.height=cn(j),this.outputDestination=jt,this.id="",this.objectNumber=-1};Mi.prototype.restore=function(){Ae=this.page,j=this.currentPage,Jt=this.pagesContext,Lt=this.pages,Ge=this.x,se=this.y,Nr=this.matrix,qi(j,this.width),Di(j,this.height),jt=this.outputDestination};var wa=function(o,v,C,D,Y){Dr.push(new Mi),Ae=j=0,Lt=[],Ge=o,se=v,Nr=Y,Pi([C,D])},_s=function(o){if(qr[o])Dr.pop().restore();else{var v=new Mi,C="Xo"+(Object.keys(He).length+1).toString(10);v.id=C,qr[o]=C,He[C]=v,ce.publish("addFormObject",v),Dr.pop().restore()}};for(var ei in p.beginFormObject=function(o,v,C,D,Y){return wa(o,v,C,D,Y),this},p.endFormObject=function(o){return _s(o),this},p.doFormObject=function(o,v){var C=He[qr[o]];return O("q"),O(v.toString()+" cm"),O("/"+C.id+" Do"),O("Q"),this},p.getFormObject=function(o){var v=He[qr[o]];return{x:v.x,y:v.y,width:v.width,height:v.height,matrix:v.matrix}},p.save=function(o,v){return o=o||"generated.pdf",(v=v||{}).returnPromise=v.returnPromise||!1,v.returnPromise===!1?(qn(Xn(Zr()),o),typeof qn.unload=="function"&&Ut.setTimeout&&setTimeout(qn.unload,911),this):new Promise((function(C,D){try{var Y=qn(Xn(Zr()),o);typeof qn.unload=="function"&&Ut.setTimeout&&setTimeout(qn.unload,911),C(Y)}catch(it){D(it.message)}}))},zt.API)zt.API.hasOwnProperty(ei)&&(ei==="events"&&zt.API.events.length?(function(o,v){var C,D,Y;for(Y=v.length-1;Y!==-1;Y--)C=v[Y][0],D=v[Y][1],o.subscribe.apply(o,[C].concat(typeof D=="function"?[D]:D))})(ce,zt.API.events):p[ei]=zt.API[ei]);var Fn=p.getPageWidth=function(o){return(Jt[o=o||j].mediaBox.topRightX-Jt[o].mediaBox.bottomLeftX)/It},qi=p.setPageWidth=function(o,v){Jt[o].mediaBox.topRightX=v*It+Jt[o].mediaBox.bottomLeftX},cn=p.getPageHeight=function(o){return(Jt[o=o||j].mediaBox.topRightY-Jt[o].mediaBox.bottomLeftY)/It},Di=p.setPageHeight=function(o,v){Jt[o].mediaBox.topRightY=v*It+Jt[o].mediaBox.bottomLeftY};return p.internal={pdfEscape:nr,getStyle:da,getFont:Ns,getFontSize:Pt,getCharSpace:Ss,getTextColor:xs,getLineHeight:ma,getLineHeightFactor:ba,getLineWidth:$n,write:Kt,getHorizontalCoordinate:Hr,getVerticalCoordinate:$r,getCoordinateString:As,getVerticalCoordinateString:un,collections:{},newObject:qe,newAdditionalObject:zn,newObjectDeferred:Oe,newObjectDeferredBegin:cr,getFilters:Tr,putStream:pr,events:ce,scaleFactor:It,pageSize:{getWidth:function(){return Fn(j)},setWidth:function(o){qi(j,o)},getHeight:function(){return cn(j)},setHeight:function(o){Di(j,o)}},encryptionOptions:A,encryption:Je,getEncryptor:ms,output:Kn,getNumberOfPages:hs,pages:Lt,out:O,f2:bt,f3:k,getPageInfo:fa,getPageInfoByObjId:Vt,getCurrentPageInfo:vs,getPDFVersion:F,Point:ti,Rectangle:Ei,Matrix:Tt,hasHotfix:ha},Object.defineProperty(p.internal.pageSize,"width",{get:function(){return Fn(j)},set:function(o){qi(j,o)},enumerable:!0,configurable:!0}),Object.defineProperty(p.internal.pageSize,"height",{get:function(){return cn(j)},set:function(o){Di(j,o)},enumerable:!0,configurable:!0}),cs.call(p,wt),ee="F1",ua(c,r),ce.publish("initialized"),p}bi.prototype.lsbFirstWord=function(i){return String.fromCharCode(i>>0&255,i>>8&255,i>>16&255,i>>24&255)},bi.prototype.toHexString=function(i){return i.split("").map((function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)})).join("")},bi.prototype.hexToBytes=function(i){for(var e=[],r=0;r<i.length;r+=2)e.push(String.fromCharCode(parseInt(i.substr(r,2),16)));return e.join("")},bi.prototype.processOwnerPassword=function(i,e){return eo(to(e).substr(0,5),i)},bi.prototype.encryptor=function(i,e){var r=to(this.encryptionKey+String.fromCharCode(255&i,i>>8&255,i>>16&255,255&e,e>>8&255)).substr(0,10);return function(a){return eo(r,a)}},ts.prototype.equals=function(i){var e,r="id,objectNumber,equals";if(!i||ve(i)!==ve(this))return!1;var a=0;for(e in this)if(!(r.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!i.hasOwnProperty(e)||this[e]!==i[e])return!1;a++}for(e in i)i.hasOwnProperty(e)&&r.indexOf(e)<0&&a--;return a===0},zt.API={events:[]},zt.version="2.5.2";var _e=zt.API,ao=1,Tn=function(i){return i.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},mi=function(i){return i.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Xt=function(i){return i.toFixed(2)},Ln=function(i){return i.toFixed(5)};_e.__acroform__={};var ur=function(i,e){i.prototype=Object.create(e.prototype),i.prototype.constructor=i},Ro=function(i){return i*ao},Gr=function(i){var e=new ru,r=Bt.internal.getHeight(i)||0,a=Bt.internal.getWidth(i)||0;return e.BBox=[0,0,Number(Xt(a)),Number(Xt(r))],e},tc=_e.__acroform__.setBit=function(i,e){if(i=i||0,e=e||0,isNaN(i)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return i|=1<<e},ec=_e.__acroform__.clearBit=function(i,e){if(i=i||0,e=e||0,isNaN(i)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return i&=~(1<<e)},rc=_e.__acroform__.getBit=function(i,e){if(isNaN(i)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return(i&1<<e)==0?0:1},Fe=_e.__acroform__.getBitForPdf=function(i,e){if(isNaN(i)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return rc(i,e-1)},Ce=_e.__acroform__.setBitForPdf=function(i,e){if(isNaN(i)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return tc(i,e-1)},je=_e.__acroform__.clearBitForPdf=function(i,e){if(isNaN(i)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return ec(i,e-1)},nc=_e.__acroform__.calculateCoordinates=function(i,e){var r=e.internal.getHorizontalCoordinate,a=e.internal.getVerticalCoordinate,c=i[0],s=i[1],l=i[2],h=i[3],f={};return f.lowerLeft_X=r(c)||0,f.lowerLeft_Y=a(s+h)||0,f.upperRight_X=r(c+l)||0,f.upperRight_Y=a(s)||0,[Number(Xt(f.lowerLeft_X)),Number(Xt(f.lowerLeft_Y)),Number(Xt(f.upperRight_X)),Number(Xt(f.upperRight_Y))]},ic=function(i){if(i.appearanceStreamContent)return i.appearanceStreamContent;if(i.V||i.DV){var e=[],r=i._V||i.DV,a=ro(i,r),c=i.scope.internal.getFont(i.fontName,i.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(i.scope.__private__.encodeColorString(i.color)),e.push("/"+c+" "+Xt(a.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(a.text),e.push("ET"),e.push("Q"),e.push("EMC");var s=Gr(i);return s.scope=i.scope,s.stream=e.join(`
|
||
`),s}},ro=function(i,e){var r=i.fontSize===0?i.maxFontSize:i.fontSize,a={text:"",fontSize:""},c=(e=(e=e.substr(0,1)=="("?e.substr(1):e).substr(e.length-1)==")"?e.substr(0,e.length-1):e).split(" ");c=i.multiline?c.map((function(k){return k.split(`
|
||
`)})):c.map((function(k){return[k]}));var s=r,l=Bt.internal.getHeight(i)||0;l=l<0?-l:l;var h=Bt.internal.getWidth(i)||0;h=h<0?-h:h;var f=function(k,I,H){if(k+1<c.length){var R=I+" "+c[k+1][0];return Ja(R,i,H).width<=h-4}return!1};s++;t:for(;s>0;){e="",s--;var g,A,N=Ja("3",i,s).height,S=i.multiline?l-s:(l-N)/2,p=S+=2,B=0,F=0,q=0;if(s<=0){e=`(...) Tj
|
||
`,e+="% Width of Text: "+Ja(e,i,s=12).width+", FieldWidth:"+h+`
|
||
`;break}for(var _="",E=0,Z=0;Z<c.length;Z++)if(c.hasOwnProperty(Z)){var ot=!1;if(c[Z].length!==1&&q!==c[Z].length-1){if((N+2)*(E+2)+2>l)continue t;_+=c[Z][q],ot=!0,F=Z,Z--}else{_=(_+=c[Z][q]+" ").substr(_.length-1)==" "?_.substr(0,_.length-1):_;var dt=parseInt(Z),Nt=f(dt,_,s),nt=Z>=c.length-1;if(Nt&&!nt){_+=" ",q=0;continue}if(Nt||nt){if(nt)F=dt;else if(i.multiline&&(N+2)*(E+2)+2>l)continue t}else{if(!i.multiline||(N+2)*(E+2)+2>l)continue t;F=dt}}for(var G="",vt=B;vt<=F;vt++){var bt=c[vt];if(i.multiline){if(vt===F){G+=bt[q]+" ",q=(q+1)%bt.length;continue}if(vt===B){G+=bt[bt.length-1]+" ";continue}}G+=bt[0]+" "}switch(G=G.substr(G.length-1)==" "?G.substr(0,G.length-1):G,A=Ja(G,i,s).width,i.textAlign){case"right":g=h-A-2;break;case"center":g=(h-A)/2;break;case"left":default:g=2}e+=Xt(g)+" "+Xt(p)+` Td
|
||
`,e+="("+Tn(G)+`) Tj
|
||
`,e+=-Xt(g)+` 0 Td
|
||
`,p=-(s+2),A=0,B=ot?F:F+1,E++,_=""}break}return a.text=e,a.fontSize=s,a},Ja=function(i,e,r){var a=e.scope.internal.getFont(e.fontName,e.fontStyle),c=e.scope.getStringUnitWidth(i,{font:a,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:e.scope.getStringUnitWidth("3",{font:a,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:c}},ac={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},sc=function(i,e){var r={type:"reference",object:i};e.internal.getPageInfo(i.page).pageContext.annotations.find((function(a){return a.type===r.type&&a.object===r.object}))===void 0&&e.internal.getPageInfo(i.page).pageContext.annotations.push(r)},oc=function(i,e){for(var r in i)if(i.hasOwnProperty(r)){var a=r,c=i[r];e.internal.newObjectDeferredBegin(c.objId,!0),ve(c)==="object"&&typeof c.putStream=="function"&&c.putStream(),delete i[a]}},uc=function(i,e){if(e.scope=i,i.internal!==void 0&&(i.internal.acroformPlugin===void 0||i.internal.acroformPlugin.isInitialized===!1)){if(Br.FieldNum=0,i.internal.acroformPlugin=JSON.parse(JSON.stringify(ac)),i.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");ao=i.internal.scaleFactor,i.internal.acroformPlugin.acroFormDictionaryRoot=new nu,i.internal.acroformPlugin.acroFormDictionaryRoot.scope=i,i.internal.acroformPlugin.acroFormDictionaryRoot._eventID=i.internal.events.subscribe("postPutResources",(function(){(function(r){r.internal.events.unsubscribe(r.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete r.internal.acroformPlugin.acroFormDictionaryRoot._eventID,r.internal.acroformPlugin.printedOut=!0})(i)})),i.internal.events.subscribe("buildDocument",(function(){(function(r){r.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var a=r.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var c in a)if(a.hasOwnProperty(c)){var s=a[c];s.objId=void 0,s.hasAnnotation&&sc(s,r)}})(i)})),i.internal.events.subscribe("putCatalog",(function(){(function(r){if(r.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");r.internal.write("/AcroForm "+r.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(i)})),i.internal.events.subscribe("postPutPages",(function(r){(function(a,c){var s=!a;for(var l in a||(c.internal.newObjectDeferredBegin(c.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),c.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),a=a||c.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(a.hasOwnProperty(l)){var h=a[l],f=[],g=h.Rect;if(h.Rect&&(h.Rect=nc(h.Rect,c)),c.internal.newObjectDeferredBegin(h.objId,!0),h.DA=Bt.createDefaultAppearanceStream(h),ve(h)==="object"&&typeof h.getKeyValueListForStream=="function"&&(f=h.getKeyValueListForStream()),h.Rect=g,h.hasAppearanceStream&&!h.appearanceStreamContent){var A=ic(h);f.push({key:"AP",value:"<</N "+A+">>"}),c.internal.acroformPlugin.xForms.push(A)}if(h.appearanceStreamContent){var N="";for(var S in h.appearanceStreamContent)if(h.appearanceStreamContent.hasOwnProperty(S)){var p=h.appearanceStreamContent[S];if(N+="/"+S+" ",N+="<<",Object.keys(p).length>=1||Array.isArray(p)){for(var l in p)if(p.hasOwnProperty(l)){var B=p[l];typeof B=="function"&&(B=B.call(c,h)),N+="/"+l+" "+B+" ",c.internal.acroformPlugin.xForms.indexOf(B)>=0||c.internal.acroformPlugin.xForms.push(B)}}else typeof(B=p)=="function"&&(B=B.call(c,h)),N+="/"+l+" "+B,c.internal.acroformPlugin.xForms.indexOf(B)>=0||c.internal.acroformPlugin.xForms.push(B);N+=">>"}f.push({key:"AP",value:`<<
|
||
`+N+">>"})}c.internal.putStream({additionalKeyValues:f,objectId:h.objId}),c.internal.out("endobj")}s&&oc(c.internal.acroformPlugin.xForms,c)})(r,i)})),i.internal.acroformPlugin.isInitialized=!0}},eu=_e.__acroform__.arrayToPdfArray=function(i,e,r){var a=function(l){return l};if(Array.isArray(i)){for(var c="[",s=0;s<i.length;s++)switch(s!==0&&(c+=" "),ve(i[s])){case"boolean":case"number":case"object":c+=i[s].toString();break;case"string":i[s].substr(0,1)!=="/"?(e!==void 0&&r&&(a=r.internal.getEncryptor(e)),c+="("+Tn(a(i[s].toString()))+")"):c+=i[s].toString()}return c+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Ys=function(i,e,r){var a=function(c){return c};return e!==void 0&&r&&(a=r.internal.getEncryptor(e)),(i=i||"").toString(),i="("+Tn(a(i))+")"},Jr=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(i){this._objId=i}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Jr.prototype.toString=function(){return this.objId+" 0 R"},Jr.prototype.putStream=function(){var i=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:i,objectId:this.objId}),this.scope.internal.out("endobj")},Jr.prototype.getKeyValueListForStream=function(){var i=[],e=Object.getOwnPropertyNames(this).filter((function(s){return s!="content"&&s!="appearanceStreamContent"&&s!="scope"&&s!="objId"&&s.substring(0,1)!="_"}));for(var r in e)if(Object.getOwnPropertyDescriptor(this,e[r]).configurable===!1){var a=e[r],c=this[a];c&&(Array.isArray(c)?i.push({key:a,value:eu(c,this.objId,this.scope)}):c instanceof Jr?(c.scope=this.scope,i.push({key:a,value:c.objId+" 0 R"})):typeof c!="function"&&i.push({key:a,value:c}))}return i};var ru=function(){Jr.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 i,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(r){e=r}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(r){i=r.trim()},get:function(){return i||null}})};ur(ru,Jr);var nu=function(){Jr.call(this);var i,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(i){var r=function(a){return a};return this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),"("+Tn(r(i))+")"}},set:function(r){i=r}})};ur(nu,Jr);var Br=function i(){Jr.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(_){if(isNaN(_))throw new Error('Invalid value "'+_+'" for attribute F supplied.');e=_}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Fe(e,3)},set:function(_){_?this.F=Ce(e,3):this.F=je(e,3)}});var r=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return r},set:function(_){if(isNaN(_))throw new Error('Invalid value "'+_+'" for attribute Ff supplied.');r=_}});var a=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(a.length!==0)return a},set:function(_){a=_!==void 0?_:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[0])?0:a[0]},set:function(_){a[0]=_}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[1])?0:a[1]},set:function(_){a[1]=_}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[2])?0:a[2]},set:function(_){a[2]=_}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[3])?0:a[3]},set:function(_){a[3]=_}});var c="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return c},set:function(_){switch(_){case"/Btn":case"/Tx":case"/Ch":case"/Sig":c=_;break;default:throw new Error('Invalid value "'+_+'" for attribute FT supplied.')}}});var s=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!s||s.length<1){if(this instanceof es)return;s="FieldObject"+i.FieldNum++}var _=function(E){return E};return this.scope&&(_=this.scope.internal.getEncryptor(this.objId)),"("+Tn(_(s))+")"},set:function(_){s=_.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return s},set:function(_){s=_}});var l="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return l},set:function(_){l=_}});var h="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return h},set:function(_){h=_}});var f=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return f},set:function(_){f=_}});var g=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return g===void 0?50/ao:g},set:function(_){g=_}});var A="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return A},set:function(_){A=_}});var N="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!N||this instanceof es||this instanceof Rn))return Ys(N,this.objId,this.scope)},set:function(_){_=_.toString(),N=_}});var S=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(S)return this instanceof Ue?S:Ys(S,this.objId,this.scope)},set:function(_){_=_.toString(),S=this instanceof Ue?_:_.substr(0,1)==="("?mi(_.substr(1,_.length-2)):mi(_)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ue?mi(S.substr(1,S.length-1)):S},set:function(_){_=_.toString(),S=this instanceof Ue?"/"+_:_}});var p=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(p)return p},set:function(_){this.V=_}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(p)return this instanceof Ue?p:Ys(p,this.objId,this.scope)},set:function(_){_=_.toString(),p=this instanceof Ue?_:_.substr(0,1)==="("?mi(_.substr(1,_.length-2)):mi(_)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ue?mi(p.substr(1,p.length-1)):p},set:function(_){_=_.toString(),p=this instanceof Ue?"/"+_:_}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var B,F=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return F},set:function(_){_=!!_,F=_}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(B)return B},set:function(_){B=_}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Fe(this.Ff,1)},set:function(_){_?this.Ff=Ce(this.Ff,1):this.Ff=je(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Fe(this.Ff,2)},set:function(_){_?this.Ff=Ce(this.Ff,2):this.Ff=je(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Fe(this.Ff,3)},set:function(_){_?this.Ff=Ce(this.Ff,3):this.Ff=je(this.Ff,3)}});var q=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(q!==null)return q},set:function(_){if([0,1,2].indexOf(_)===-1)throw new Error('Invalid value "'+_+'" for attribute Q supplied.');q=_}}),Object.defineProperty(this,"textAlign",{get:function(){var _;switch(q){case 0:default:_="left";break;case 1:_="center";break;case 2:_="right"}return _},configurable:!0,enumerable:!0,set:function(_){switch(_){case"right":case 2:q=2;break;case"center":case 1:q=1;break;case"left":case 0:default:q=0}}})};ur(Br,Jr);var Li=function(){Br.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var i=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return i},set:function(r){i=r}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return i},set:function(r){i=r}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return eu(e,this.objId,this.scope)},set:function(r){var a,c;c=[],typeof(a=r)=="string"&&(c=(function(s,l,h){h||(h=1);for(var f,g=[];f=l.exec(s);)g.push(f[h]);return g})(a,/\((.*?)\)/g)),e=c}}),this.getOptions=function(){return e},this.setOptions=function(r){e=r,this.sort&&e.sort()},this.addOption=function(r){r=(r=r||"").toString(),e.push(r),this.sort&&e.sort()},this.removeOption=function(r,a){for(a=a||!1,r=(r=r||"").toString();e.indexOf(r)!==-1&&(e.splice(e.indexOf(r),1),a!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Fe(this.Ff,18)},set:function(r){r?this.Ff=Ce(this.Ff,18):this.Ff=je(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Fe(this.Ff,19)},set:function(r){this.combo===!0&&(r?this.Ff=Ce(this.Ff,19):this.Ff=je(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Fe(this.Ff,20)},set:function(r){r?(this.Ff=Ce(this.Ff,20),e.sort()):this.Ff=je(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Fe(this.Ff,22)},set:function(r){r?this.Ff=Ce(this.Ff,22):this.Ff=je(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Fe(this.Ff,23)},set:function(r){r?this.Ff=Ce(this.Ff,23):this.Ff=je(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Fe(this.Ff,27)},set:function(r){r?this.Ff=Ce(this.Ff,27):this.Ff=je(this.Ff,27)}}),this.hasAppearanceStream=!1};ur(Li,Br);var Ni=function(){Li.call(this),this.fontName="helvetica",this.combo=!1};ur(Ni,Li);var Ai=function(){Ni.call(this),this.combo=!0};ur(Ai,Ni);var Ka=function(){Ai.call(this),this.edit=!0};ur(Ka,Ai);var Ue=function(){Br.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Fe(this.Ff,15)},set:function(r){r?this.Ff=Ce(this.Ff,15):this.Ff=je(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Fe(this.Ff,16)},set:function(r){r?this.Ff=Ce(this.Ff,16):this.Ff=je(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Fe(this.Ff,17)},set:function(r){r?this.Ff=Ce(this.Ff,17):this.Ff=je(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Fe(this.Ff,26)},set:function(r){r?this.Ff=Ce(this.Ff,26):this.Ff=je(this.Ff,26)}});var i,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var r=function(s){return s};if(this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),Object.keys(e).length!==0){var a,c=[];for(a in c.push("<<"),e)c.push("/"+a+" ("+Tn(r(e[a]))+")");return c.push(">>"),c.join(`
|
||
`)}},set:function(r){ve(r)==="object"&&(e=r)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(r){typeof r=="string"&&(e.CA=r)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return i},set:function(r){i=r}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return i.substr(1,i.length-1)},set:function(r){i="/"+r}})};ur(Ue,Br);var Za=function(){Ue.call(this),this.pushButton=!0};ur(Za,Ue);var xi=function(){Ue.call(this),this.radio=!0,this.pushButton=!1;var i=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return i},set:function(e){i=e!==void 0?e:[]}})};ur(xi,Ue);var es=function(){var i,e;Br.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return i},set:function(c){i=c}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(c){e=c}});var r,a={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var c=function(h){return h};this.scope&&(c=this.scope.internal.getEncryptor(this.objId));var s,l=[];for(s in l.push("<<"),a)l.push("/"+s+" ("+Tn(c(a[s]))+")");return l.push(">>"),l.join(`
|
||
`)},set:function(c){ve(c)==="object"&&(a=c)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return a.CA||""},set:function(c){typeof c=="string"&&(a.CA=c)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(c){r=c}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(c){r="/"+c}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Bt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};ur(es,Br),xi.prototype.setAppearance=function(i){if(!("createAppearanceStream"in i)||!("getCA"in i))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var r=this.Kids[e];r.appearanceStreamContent=i.createAppearanceStream(r.optionName),r.caption=i.getCA()}},xi.prototype.createOption=function(i){var e=new es;return e.Parent=this,e.optionName=i,this.Kids.push(e),cc.call(this.scope,e),e};var $a=function(){Ue.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Bt.CheckBox.createAppearanceStream()};ur($a,Ue);var Rn=function(){Br.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Fe(this.Ff,13)},set:function(e){e?this.Ff=Ce(this.Ff,13):this.Ff=je(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Fe(this.Ff,21)},set:function(e){e?this.Ff=Ce(this.Ff,21):this.Ff=je(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Fe(this.Ff,23)},set:function(e){e?this.Ff=Ce(this.Ff,23):this.Ff=je(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Fe(this.Ff,24)},set:function(e){e?this.Ff=Ce(this.Ff,24):this.Ff=je(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Fe(this.Ff,25)},set:function(e){e?this.Ff=Ce(this.Ff,25):this.Ff=je(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Fe(this.Ff,26)},set:function(e){e?this.Ff=Ce(this.Ff,26):this.Ff=je(this.Ff,26)}});var i=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return i},set:function(e){i=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return i},set:function(e){Number.isInteger(e)&&(i=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};ur(Rn,Br);var Qa=function(){Rn.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Fe(this.Ff,14)},set:function(i){i?this.Ff=Ce(this.Ff,14):this.Ff=je(this.Ff,14)}}),this.password=!0};ur(Qa,Rn);var Bt={CheckBox:{createAppearanceStream:function(){return{N:{On:Bt.CheckBox.YesNormal},D:{On:Bt.CheckBox.YesPushDown,Off:Bt.CheckBox.OffPushDown}}},YesPushDown:function(i){var e=Gr(i);e.scope=i.scope;var r=[],a=i.scope.internal.getFont(i.fontName,i.fontStyle).id,c=i.scope.__private__.encodeColorString(i.color),s=ro(i,i.caption);return r.push("0.749023 g"),r.push("0 0 "+Xt(Bt.internal.getWidth(i))+" "+Xt(Bt.internal.getHeight(i))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+a+" "+Xt(s.fontSize)+" Tf "+c),r.push("BT"),r.push(s.text),r.push("ET"),r.push("Q"),r.push("EMC"),e.stream=r.join(`
|
||
`),e},YesNormal:function(i){var e=Gr(i);e.scope=i.scope;var r=i.scope.internal.getFont(i.fontName,i.fontStyle).id,a=i.scope.__private__.encodeColorString(i.color),c=[],s=Bt.internal.getHeight(i),l=Bt.internal.getWidth(i),h=ro(i,i.caption);return c.push("1 g"),c.push("0 0 "+Xt(l)+" "+Xt(s)+" re"),c.push("f"),c.push("q"),c.push("0 0 1 rg"),c.push("0 0 "+Xt(l-1)+" "+Xt(s-1)+" re"),c.push("W"),c.push("n"),c.push("0 g"),c.push("BT"),c.push("/"+r+" "+Xt(h.fontSize)+" Tf "+a),c.push(h.text),c.push("ET"),c.push("Q"),e.stream=c.join(`
|
||
`),e},OffPushDown:function(i){var e=Gr(i);e.scope=i.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+Xt(Bt.internal.getWidth(i))+" "+Xt(Bt.internal.getHeight(i))+" re"),r.push("f"),e.stream=r.join(`
|
||
`),e}},RadioButton:{Circle:{createAppearanceStream:function(i){var e={D:{Off:Bt.RadioButton.Circle.OffPushDown},N:{}};return e.N[i]=Bt.RadioButton.Circle.YesNormal,e.D[i]=Bt.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(i){var e=Gr(i);e.scope=i.scope;var r=[],a=Bt.internal.getWidth(i)<=Bt.internal.getHeight(i)?Bt.internal.getWidth(i)/4:Bt.internal.getHeight(i)/4;a=Number((.9*a).toFixed(5));var c=Bt.internal.Bezier_C,s=Number((a*c).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+Ln(Bt.internal.getWidth(i)/2)+" "+Ln(Bt.internal.getHeight(i)/2)+" cm"),r.push(a+" 0 m"),r.push(a+" "+s+" "+s+" "+a+" 0 "+a+" c"),r.push("-"+s+" "+a+" -"+a+" "+s+" -"+a+" 0 c"),r.push("-"+a+" -"+s+" -"+s+" -"+a+" 0 -"+a+" c"),r.push(s+" -"+a+" "+a+" -"+s+" "+a+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join(`
|
||
`),e},YesPushDown:function(i){var e=Gr(i);e.scope=i.scope;var r=[],a=Bt.internal.getWidth(i)<=Bt.internal.getHeight(i)?Bt.internal.getWidth(i)/4:Bt.internal.getHeight(i)/4;a=Number((.9*a).toFixed(5));var c=Number((2*a).toFixed(5)),s=Number((c*Bt.internal.Bezier_C).toFixed(5)),l=Number((a*Bt.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+Ln(Bt.internal.getWidth(i)/2)+" "+Ln(Bt.internal.getHeight(i)/2)+" cm"),r.push(c+" 0 m"),r.push(c+" "+s+" "+s+" "+c+" 0 "+c+" c"),r.push("-"+s+" "+c+" -"+c+" "+s+" -"+c+" 0 c"),r.push("-"+c+" -"+s+" -"+s+" -"+c+" 0 -"+c+" c"),r.push(s+" -"+c+" "+c+" -"+s+" "+c+" 0 c"),r.push("f"),r.push("Q"),r.push("0 g"),r.push("q"),r.push("1 0 0 1 "+Ln(Bt.internal.getWidth(i)/2)+" "+Ln(Bt.internal.getHeight(i)/2)+" cm"),r.push(a+" 0 m"),r.push(a+" "+l+" "+l+" "+a+" 0 "+a+" c"),r.push("-"+l+" "+a+" -"+a+" "+l+" -"+a+" 0 c"),r.push("-"+a+" -"+l+" -"+l+" -"+a+" 0 -"+a+" c"),r.push(l+" -"+a+" "+a+" -"+l+" "+a+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join(`
|
||
`),e},OffPushDown:function(i){var e=Gr(i);e.scope=i.scope;var r=[],a=Bt.internal.getWidth(i)<=Bt.internal.getHeight(i)?Bt.internal.getWidth(i)/4:Bt.internal.getHeight(i)/4;a=Number((.9*a).toFixed(5));var c=Number((2*a).toFixed(5)),s=Number((c*Bt.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+Ln(Bt.internal.getWidth(i)/2)+" "+Ln(Bt.internal.getHeight(i)/2)+" cm"),r.push(c+" 0 m"),r.push(c+" "+s+" "+s+" "+c+" 0 "+c+" c"),r.push("-"+s+" "+c+" -"+c+" "+s+" -"+c+" 0 c"),r.push("-"+c+" -"+s+" -"+s+" -"+c+" 0 -"+c+" c"),r.push(s+" -"+c+" "+c+" -"+s+" "+c+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join(`
|
||
`),e}},Cross:{createAppearanceStream:function(i){var e={D:{Off:Bt.RadioButton.Cross.OffPushDown},N:{}};return e.N[i]=Bt.RadioButton.Cross.YesNormal,e.D[i]=Bt.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(i){var e=Gr(i);e.scope=i.scope;var r=[],a=Bt.internal.calculateCross(i);return r.push("q"),r.push("1 1 "+Xt(Bt.internal.getWidth(i)-2)+" "+Xt(Bt.internal.getHeight(i)-2)+" re"),r.push("W"),r.push("n"),r.push(Xt(a.x1.x)+" "+Xt(a.x1.y)+" m"),r.push(Xt(a.x2.x)+" "+Xt(a.x2.y)+" l"),r.push(Xt(a.x4.x)+" "+Xt(a.x4.y)+" m"),r.push(Xt(a.x3.x)+" "+Xt(a.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join(`
|
||
`),e},YesPushDown:function(i){var e=Gr(i);e.scope=i.scope;var r=Bt.internal.calculateCross(i),a=[];return a.push("0.749023 g"),a.push("0 0 "+Xt(Bt.internal.getWidth(i))+" "+Xt(Bt.internal.getHeight(i))+" re"),a.push("f"),a.push("q"),a.push("1 1 "+Xt(Bt.internal.getWidth(i)-2)+" "+Xt(Bt.internal.getHeight(i)-2)+" re"),a.push("W"),a.push("n"),a.push(Xt(r.x1.x)+" "+Xt(r.x1.y)+" m"),a.push(Xt(r.x2.x)+" "+Xt(r.x2.y)+" l"),a.push(Xt(r.x4.x)+" "+Xt(r.x4.y)+" m"),a.push(Xt(r.x3.x)+" "+Xt(r.x3.y)+" l"),a.push("s"),a.push("Q"),e.stream=a.join(`
|
||
`),e},OffPushDown:function(i){var e=Gr(i);e.scope=i.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+Xt(Bt.internal.getWidth(i))+" "+Xt(Bt.internal.getHeight(i))+" re"),r.push("f"),e.stream=r.join(`
|
||
`),e}}},createDefaultAppearanceStream:function(i){var e=i.scope.internal.getFont(i.fontName,i.fontStyle).id,r=i.scope.__private__.encodeColorString(i.color);return"/"+e+" "+i.fontSize+" Tf "+r}};Bt.internal={Bezier_C:.551915024494,calculateCross:function(i){var e=Bt.internal.getWidth(i),r=Bt.internal.getHeight(i),a=Math.min(e,r);return{x1:{x:(e-a)/2,y:(r-a)/2+a},x2:{x:(e-a)/2+a,y:(r-a)/2},x3:{x:(e-a)/2,y:(r-a)/2},x4:{x:(e-a)/2+a,y:(r-a)/2+a}}}},Bt.internal.getWidth=function(i){var e=0;return ve(i)==="object"&&(e=Ro(i.Rect[2])),e},Bt.internal.getHeight=function(i){var e=0;return ve(i)==="object"&&(e=Ro(i.Rect[3])),e};var cc=_e.addField=function(i){if(uc(this,i),!(i instanceof Br))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=i).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),i.page=i.scope.internal.getCurrentPageInfo().pageNumber,this};_e.AcroFormChoiceField=Li,_e.AcroFormListBox=Ni,_e.AcroFormComboBox=Ai,_e.AcroFormEditBox=Ka,_e.AcroFormButton=Ue,_e.AcroFormPushButton=Za,_e.AcroFormRadioButton=xi,_e.AcroFormCheckBox=$a,_e.AcroFormTextField=Rn,_e.AcroFormPasswordField=Qa,_e.AcroFormAppearance=Bt,_e.AcroForm={ChoiceField:Li,ListBox:Ni,ComboBox:Ai,EditBox:Ka,Button:Ue,PushButton:Za,RadioButton:xi,CheckBox:$a,TextField:Rn,PasswordField:Qa,Appearance:Bt},zt.AcroForm={ChoiceField:Li,ListBox:Ni,ComboBox:Ai,EditBox:Ka,Button:Ue,PushButton:Za,RadioButton:xi,CheckBox:$a,TextField:Rn,PasswordField:Qa,Appearance:Bt};zt.AcroForm;function iu(i){return i.reduce((function(e,r,a){return e[r]=a,e}),{})}(function(i){i.__addimage__={};var e="UNKNOWN",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[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]]},a=i.__addimage__.getImageFileTypeByImageData=function(k,I){var H,R,ut,st,mt,tt=e;if((I=I||e)==="RGBA"||k.data!==void 0&&k.data instanceof Uint8ClampedArray&&"height"in k&&"width"in k)return"RGBA";if(Nt(k))for(mt in r)for(ut=r[mt],H=0;H<ut.length;H+=1){for(st=!0,R=0;R<ut[H].length;R+=1)if(ut[H][R]!==void 0&&ut[H][R]!==k[R]){st=!1;break}if(st===!0){tt=mt;break}}else for(mt in r)for(ut=r[mt],H=0;H<ut.length;H+=1){for(st=!0,R=0;R<ut[H].length;R+=1)if(ut[H][R]!==void 0&&ut[H][R]!==k.charCodeAt(R)){st=!1;break}if(st===!0){tt=mt;break}}return tt===e&&I!==e&&(tt=I),tt},c=function k(I){for(var H=this.internal.write,R=this.internal.putStream,ut=(0,this.internal.getFilters)();ut.indexOf("FlateEncode")!==-1;)ut.splice(ut.indexOf("FlateEncode"),1);I.objectId=this.internal.newObject();var st=[];if(st.push({key:"Type",value:"/XObject"}),st.push({key:"Subtype",value:"/Image"}),st.push({key:"Width",value:I.width}),st.push({key:"Height",value:I.height}),I.colorSpace===q.INDEXED?st.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(I.palette.length/3-1)+" "+("sMask"in I&&I.sMask!==void 0?I.objectId+2:I.objectId+1)+" 0 R]"}):(st.push({key:"ColorSpace",value:"/"+I.colorSpace}),I.colorSpace===q.DEVICE_CMYK&&st.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),st.push({key:"BitsPerComponent",value:I.bitsPerComponent}),"decodeParameters"in I&&I.decodeParameters!==void 0&&st.push({key:"DecodeParms",value:"<<"+I.decodeParameters+">>"}),"transparency"in I&&Array.isArray(I.transparency)){for(var mt="",tt=0,pt=I.transparency.length;tt<pt;tt++)mt+=I.transparency[tt]+" "+I.transparency[tt]+" ";st.push({key:"Mask",value:"["+mt+"]"})}I.sMask!==void 0&&st.push({key:"SMask",value:I.objectId+1+" 0 R"});var ft=I.filter!==void 0?["/"+I.filter]:void 0;if(R({data:I.data,additionalKeyValues:st,alreadyAppliedFilters:ft,objectId:I.objectId}),H("endobj"),"sMask"in I&&I.sMask!==void 0){var Mt="/Predictor "+I.predictor+" /Colors 1 /BitsPerComponent "+I.bitsPerComponent+" /Columns "+I.width,w={width:I.width,height:I.height,colorSpace:"DeviceGray",bitsPerComponent:I.bitsPerComponent,decodeParameters:Mt,data:I.sMask};"filter"in I&&(w.filter=I.filter),k.call(this,w)}if(I.colorSpace===q.INDEXED){var j=this.internal.newObject();R({data:G(new Uint8Array(I.palette)),objectId:j}),H("endobj")}},s=function(){var k=this.internal.collections.addImage_images;for(var I in k)c.call(this,k[I])},l=function(){var k,I=this.internal.collections.addImage_images,H=this.internal.write;for(var R in I)H("/I"+(k=I[R]).index,k.objectId,"0","R")},h=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",s),this.internal.events.subscribe("putXobjectDict",l))},f=function(){var k=this.internal.collections.addImage_images;return h.call(this),k},g=function(){return Object.keys(this.internal.collections.addImage_images).length},A=function(k){return typeof i["process"+k.toUpperCase()]=="function"},N=function(k){return ve(k)==="object"&&k.nodeType===1},S=function(k,I){if(k.nodeName==="IMG"&&k.hasAttribute("src")){var H=""+k.getAttribute("src");if(H.indexOf("data:image/")===0)return ea(unescape(H).split("base64,").pop());var R=i.loadFile(H,!0);if(R!==void 0)return R}if(k.nodeName==="CANVAS"){if(k.width===0||k.height===0)throw new Error("Given canvas must have data. Canvas width: "+k.width+", height: "+k.height);var ut;switch(I){case"PNG":ut="image/png";break;case"WEBP":ut="image/webp";break;case"JPEG":case"JPG":default:ut="image/jpeg"}return ea(k.toDataURL(ut,1).split("base64,").pop())}},p=function(k){var I=this.internal.collections.addImage_images;if(I){for(var H in I)if(k===I[H].alias)return I[H]}},B=function(k,I,H){return k||I||(k=-96,I=-96),k<0&&(k=-1*H.width*72/k/this.internal.scaleFactor),I<0&&(I=-1*H.height*72/I/this.internal.scaleFactor),k===0&&(k=I*H.width/H.height),I===0&&(I=k*H.height/H.width),[k,I]},F=function(k,I,H,R,ut,st){var mt=B.call(this,H,R,ut),tt=this.internal.getCoordinateString,pt=this.internal.getVerticalCoordinateString,ft=f.call(this);if(H=mt[0],R=mt[1],ft[ut.index]=ut,st){st*=Math.PI/180;var Mt=Math.cos(st),w=Math.sin(st),j=function(W){return W.toFixed(4)},M=[j(Mt),j(w),j(-1*w),j(Mt),0,0,"cm"]}this.internal.write("q"),st?(this.internal.write([1,"0","0",1,tt(k),pt(I+R),"cm"].join(" ")),this.internal.write(M.join(" ")),this.internal.write([tt(H),"0","0",tt(R),"0","0","cm"].join(" "))):this.internal.write([tt(H),"0","0",tt(R),tt(k),pt(I+R),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+ut.index+" Do"),this.internal.write("Q")},q=i.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};i.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var _=i.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},E=i.__addimage__.sHashCode=function(k){var I,H,R=0;if(typeof k=="string")for(H=k.length,I=0;I<H;I++)R=(R<<5)-R+k.charCodeAt(I),R|=0;else if(Nt(k))for(H=k.byteLength/2,I=0;I<H;I++)R=(R<<5)-R+k[I],R|=0;return R},Z=i.__addimage__.validateStringAsBase64=function(k){(k=k||"").toString().trim();var I=!0;return k.length===0&&(I=!1),k.length%4!=0&&(I=!1),/^[A-Za-z0-9+/]+$/.test(k.substr(0,k.length-2))===!1&&(I=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(k.substr(-2))===!1&&(I=!1),I},ot=i.__addimage__.extractImageFromDataUrl=function(k){var I=(k=k||"").split("base64,"),H=null;if(I.length===2){var R=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(I[0]);Array.isArray(R)&&(H={mimeType:R[1],charset:R[2],data:I[1]})}return H},dt=i.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};i.__addimage__.isArrayBuffer=function(k){return dt()&&k instanceof ArrayBuffer};var Nt=i.__addimage__.isArrayBufferView=function(k){return dt()&&typeof Uint32Array<"u"&&(k instanceof Int8Array||k instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&k instanceof Uint8ClampedArray||k instanceof Int16Array||k instanceof Uint16Array||k instanceof Int32Array||k instanceof Uint32Array||k instanceof Float32Array||k instanceof Float64Array)},nt=i.__addimage__.binaryStringToUint8Array=function(k){for(var I=k.length,H=new Uint8Array(I),R=0;R<I;R++)H[R]=k.charCodeAt(R);return H},G=i.__addimage__.arrayBufferToBinaryString=function(k){for(var I="",H=Nt(k)?k:new Uint8Array(k),R=0;R<H.length;R+=8192)I+=String.fromCharCode.apply(null,H.subarray(R,R+8192));return I};i.addImage=function(){var k,I,H,R,ut,st,mt,tt,pt;if(typeof arguments[1]=="number"?(I=e,H=arguments[1],R=arguments[2],ut=arguments[3],st=arguments[4],mt=arguments[5],tt=arguments[6],pt=arguments[7]):(I=arguments[1],H=arguments[2],R=arguments[3],ut=arguments[4],st=arguments[5],mt=arguments[6],tt=arguments[7],pt=arguments[8]),ve(k=arguments[0])==="object"&&!N(k)&&"imageData"in k){var ft=k;k=ft.imageData,I=ft.format||I||e,H=ft.x||H||0,R=ft.y||R||0,ut=ft.w||ft.width||ut,st=ft.h||ft.height||st,mt=ft.alias||mt,tt=ft.compression||tt,pt=ft.rotation||ft.angle||pt}var Mt=this.internal.getFilters();if(tt===void 0&&Mt.indexOf("FlateEncode")!==-1&&(tt="SLOW"),isNaN(H)||isNaN(R))throw new Error("Invalid coordinates passed to jsPDF.addImage");h.call(this);var w=vt.call(this,k,I,mt,tt);return F.call(this,H,R,ut,st,w,pt),this};var vt=function(k,I,H,R){var ut,st,mt;if(typeof k=="string"&&a(k)===e){k=unescape(k);var tt=bt(k,!1);(tt!==""||(tt=i.loadFile(k,!0))!==void 0)&&(k=tt)}if(N(k)&&(k=S(k,I)),I=a(k,I),!A(I))throw new Error("addImage does not support files of type '"+I+"', please ensure that a plugin for '"+I+"' support is added.");if(((mt=H)==null||mt.length===0)&&(H=(function(pt){return typeof pt=="string"||Nt(pt)?E(pt):Nt(pt.data)?E(pt.data):null})(k)),(ut=p.call(this,H))||(dt()&&(k instanceof Uint8Array||I==="RGBA"||(st=k,k=nt(k))),ut=this["process"+I.toUpperCase()](k,g.call(this),H,(function(pt){return pt&&typeof pt=="string"&&(pt=pt.toUpperCase()),pt in i.image_compression?pt:_.NONE})(R),st)),!ut)throw new Error("An unknown error occurred whilst processing the image.");return ut},bt=i.__addimage__.convertBase64ToBinaryString=function(k,I){var H;I=typeof I!="boolean"||I;var R,ut="";if(typeof k=="string"){R=(H=ot(k))!==null?H.data:k;try{ut=ea(R)}catch(st){if(I)throw Z(R)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+st.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return ut};i.getImageProperties=function(k){var I,H,R="";if(N(k)&&(k=S(k)),typeof k=="string"&&a(k)===e&&((R=bt(k,!1))===""&&(R=i.loadFile(k)||""),k=R),H=a(k),!A(H))throw new Error("addImage does not support files of type '"+H+"', please ensure that a plugin for '"+H+"' support is added.");if(!dt()||k instanceof Uint8Array||(k=nt(k)),!(I=this["process"+H.toUpperCase()](k)))throw new Error("An unknown error occurred whilst processing the image");return I.fileType=H,I}})(zt.API),(function(i){var e=function(r){if(r!==void 0&&r!="")return!0};zt.API.events.push(["addPage",function(r){this.internal.getPageInfo(r.pageNumber).pageContext.annotations=[]}]),i.events.push(["putPage",function(r){for(var a,c,s,l=this.internal.getCoordinateString,h=this.internal.getVerticalCoordinateString,f=this.internal.getPageInfoByObjId(r.objId),g=r.pageContext.annotations,A=!1,N=0;N<g.length&&!A;N++)switch((a=g[N]).type){case"link":(e(a.options.url)||e(a.options.pageNumber))&&(A=!0);break;case"reference":case"text":case"freetext":A=!0}if(A!=0){this.internal.write("/Annots [");for(var S=0;S<g.length;S++){a=g[S];var p=this.internal.pdfEscape,B=this.internal.getEncryptor(r.objId);switch(a.type){case"reference":this.internal.write(" "+a.object.objId+" 0 R ");break;case"text":var F=this.internal.newAdditionalObject(),q=this.internal.newAdditionalObject(),_=this.internal.getEncryptor(F.objId),E=a.title||"Note";s="<</Type /Annot /Subtype /Text "+(c="/Rect ["+l(a.bounds.x)+" "+h(a.bounds.y+a.bounds.h)+" "+l(a.bounds.x+a.bounds.w)+" "+h(a.bounds.y)+"] ")+"/Contents ("+p(_(a.contents))+")",s+=" /Popup "+q.objId+" 0 R",s+=" /P "+f.objId+" 0 R",s+=" /T ("+p(_(E))+") >>",F.content=s;var Z=F.objId+" 0 R";s="<</Type /Annot /Subtype /Popup "+(c="/Rect ["+l(a.bounds.x+30)+" "+h(a.bounds.y+a.bounds.h)+" "+l(a.bounds.x+a.bounds.w+30)+" "+h(a.bounds.y)+"] ")+" /Parent "+Z,a.open&&(s+=" /Open true"),s+=" >>",q.content=s,this.internal.write(F.objId,"0 R",q.objId,"0 R");break;case"freetext":c="/Rect ["+l(a.bounds.x)+" "+h(a.bounds.y)+" "+l(a.bounds.x+a.bounds.w)+" "+h(a.bounds.y+a.bounds.h)+"] ";var ot=a.color||"#000000";s="<</Type /Annot /Subtype /FreeText "+c+"/Contents ("+p(B(a.contents))+")",s+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+ot+")",s+=" /Border [0 0 0]",s+=" >>",this.internal.write(s);break;case"link":if(a.options.name){var dt=this.annotations._nameMap[a.options.name];a.options.pageNumber=dt.page,a.options.top=dt.y}else a.options.top||(a.options.top=0);if(c="/Rect ["+a.finalBounds.x+" "+a.finalBounds.y+" "+a.finalBounds.w+" "+a.finalBounds.h+"] ",s="",a.options.url)s="<</Type /Annot /Subtype /Link "+c+"/Border [0 0 0] /A <</S /URI /URI ("+p(B(a.options.url))+") >>";else if(a.options.pageNumber)switch(s="<</Type /Annot /Subtype /Link "+c+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(a.options.pageNumber).objId+" 0 R",a.options.magFactor=a.options.magFactor||"XYZ",a.options.magFactor){case"Fit":s+=" /Fit]";break;case"FitH":s+=" /FitH "+a.options.top+"]";break;case"FitV":a.options.left=a.options.left||0,s+=" /FitV "+a.options.left+"]";break;case"XYZ":default:var Nt=h(a.options.top);a.options.left=a.options.left||0,a.options.zoom===void 0&&(a.options.zoom=0),s+=" /XYZ "+a.options.left+" "+Nt+" "+a.options.zoom+"]"}s!=""&&(s+=" >>",this.internal.write(s))}}this.internal.write("]")}}]),i.createAnnotation=function(r){var a=this.internal.getCurrentPageInfo();switch(r.type){case"link":this.link(r.bounds.x,r.bounds.y,r.bounds.w,r.bounds.h,r);break;case"text":case"freetext":a.pageContext.annotations.push(r)}},i.link=function(r,a,c,s,l){var h=this.internal.getCurrentPageInfo(),f=this.internal.getCoordinateString,g=this.internal.getVerticalCoordinateString;h.pageContext.annotations.push({finalBounds:{x:f(r),y:g(a),w:f(r+c),h:g(a+s)},options:l,type:"link"})},i.textWithLink=function(r,a,c,s){var l,h,f=this.getTextWidth(r),g=this.internal.getLineHeight()/this.internal.scaleFactor;if(s.maxWidth!==void 0){h=s.maxWidth;var A=this.splitTextToSize(r,h).length;l=Math.ceil(g*A)}else h=f,l=g;return this.text(r,a,c,s),c+=.2*g,s.align==="center"&&(a-=f/2),s.align==="right"&&(a-=f),this.link(a,c-g,h,l,s),f},i.getTextWidth=function(r){var a=this.internal.getFontSize();return this.getStringUnitWidth(r)*a/this.internal.scaleFactor}})(zt.API),(function(i){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},r={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},a={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},c=[1570,1571,1573,1575];i.__arabicParser__={};var s=i.__arabicParser__.isInArabicSubstitutionA=function(F){return e[F.charCodeAt(0)]!==void 0},l=i.__arabicParser__.isArabicLetter=function(F){return typeof F=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(F)},h=i.__arabicParser__.isArabicEndLetter=function(F){return l(F)&&s(F)&&e[F.charCodeAt(0)].length<=2},f=i.__arabicParser__.isArabicAlfLetter=function(F){return l(F)&&c.indexOf(F.charCodeAt(0))>=0};i.__arabicParser__.arabicLetterHasIsolatedForm=function(F){return l(F)&&s(F)&&e[F.charCodeAt(0)].length>=1};var g=i.__arabicParser__.arabicLetterHasFinalForm=function(F){return l(F)&&s(F)&&e[F.charCodeAt(0)].length>=2};i.__arabicParser__.arabicLetterHasInitialForm=function(F){return l(F)&&s(F)&&e[F.charCodeAt(0)].length>=3};var A=i.__arabicParser__.arabicLetterHasMedialForm=function(F){return l(F)&&s(F)&&e[F.charCodeAt(0)].length==4},N=i.__arabicParser__.resolveLigatures=function(F){var q=0,_=r,E="",Z=0;for(q=0;q<F.length;q+=1)_[F.charCodeAt(q)]!==void 0?(Z++,typeof(_=_[F.charCodeAt(q)])=="number"&&(E+=String.fromCharCode(_),_=r,Z=0),q===F.length-1&&(_=r,E+=F.charAt(q-(Z-1)),q-=Z-1,Z=0)):(_=r,E+=F.charAt(q-Z),q-=Z,Z=0);return E};i.__arabicParser__.isArabicDiacritic=function(F){return F!==void 0&&a[F.charCodeAt(0)]!==void 0};var S=i.__arabicParser__.getCorrectForm=function(F,q,_){return l(F)?s(F)===!1?-1:!g(F)||!l(q)&&!l(_)||!l(_)&&h(q)||h(F)&&!l(q)||h(F)&&f(q)||h(F)&&h(q)?0:A(F)&&l(q)&&!h(q)&&l(_)&&g(_)?3:h(F)||!l(_)?1:2:-1},p=function(F){var q=0,_=0,E=0,Z="",ot="",dt="",Nt=(F=F||"").split("\\s+"),nt=[];for(q=0;q<Nt.length;q+=1){for(nt.push(""),_=0;_<Nt[q].length;_+=1)Z=Nt[q][_],ot=Nt[q][_-1],dt=Nt[q][_+1],l(Z)?(E=S(Z,ot,dt),nt[q]+=E!==-1?String.fromCharCode(e[Z.charCodeAt(0)][E]):Z):nt[q]+=Z;nt[q]=N(nt[q])}return nt.join(" ")},B=i.__arabicParser__.processArabic=i.processArabic=function(){var F,q=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,_=[];if(Array.isArray(q)){var E=0;for(_=[],E=0;E<q.length;E+=1)Array.isArray(q[E])?_.push([p(q[E][0]),q[E][1],q[E][2]]):_.push([p(q[E])]);F=_}else F=p(q);return typeof arguments[0]=="string"?F:(arguments[0].text=F,arguments[0])};i.events.push(["preProcessText",B])})(zt.API),zt.API.autoPrint=function(i){var e;switch((i=i||{}).variant=i.variant||"non-conform",i.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",(function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+e+" 0 R")}))}return this},(function(i){var e=function(){var r=void 0;Object.defineProperty(this,"pdf",{get:function(){return r},set:function(h){r=h}});var a=150;Object.defineProperty(this,"width",{get:function(){return a},set:function(h){a=isNaN(h)||Number.isInteger(h)===!1||h<0?150:h,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=a+1)}});var c=300;Object.defineProperty(this,"height",{get:function(){return c},set:function(h){c=isNaN(h)||Number.isInteger(h)===!1||h<0?300:h,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=c+1)}});var s=[];Object.defineProperty(this,"childNodes",{get:function(){return s},set:function(h){s=h}});var l={};Object.defineProperty(this,"style",{get:function(){return l},set:function(h){l=h}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(r,a){var c;if((r=r||"2d")!=="2d")return null;for(c in a)this.pdf.context2d.hasOwnProperty(c)&&(this.pdf.context2d[c]=a[c]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},i.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])})(zt.API),(function(i){var e={left:0,top:0,bottom:0,right:0},r=!1,a=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},e),this.internal.__cell__.margins.width=this.getPageWidth(),c.call(this))},c=function(){this.internal.__cell__.lastCell=new s,this.internal.__cell__.pages=1},s=function(){var f=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return f},set:function(F){f=F}});var g=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return g},set:function(F){g=F}});var A=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return A},set:function(F){A=F}});var N=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return N},set:function(F){N=F}});var S=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return S},set:function(F){S=F}});var p=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return p},set:function(F){p=F}});var B=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return B},set:function(F){B=F}}),this};s.prototype.clone=function(){return new s(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},s.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},i.setHeaderFunction=function(f){return a.call(this),this.internal.__cell__.headerFunction=typeof f=="function"?f:void 0,this},i.getTextDimensions=function(f,g){a.call(this);var A=(g=g||{}).fontSize||this.getFontSize(),N=g.font||this.getFont(),S=g.scaleFactor||this.internal.scaleFactor,p=0,B=0,F=0,q=this;if(!Array.isArray(f)&&typeof f!="string"){if(typeof f!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");f=String(f)}var _=g.maxWidth;_>0?typeof f=="string"?f=this.splitTextToSize(f,_):Object.prototype.toString.call(f)==="[object Array]"&&(f=f.reduce((function(Z,ot){return Z.concat(q.splitTextToSize(ot,_))}),[])):f=Array.isArray(f)?f:[f];for(var E=0;E<f.length;E++)p<(F=this.getStringUnitWidth(f[E],{font:N})*A)&&(p=F);return p!==0&&(B=f.length),{w:p/=S,h:Math.max((B*A*this.getLineHeightFactor()-A*(this.getLineHeightFactor()-1))/S,0)}},i.cellAddPage=function(){a.call(this),this.addPage();var f=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new s(f.left,f.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var l=i.cell=function(){var f;f=arguments[0]instanceof s?arguments[0]:new s(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),a.call(this);var g=this.internal.__cell__.lastCell,A=this.internal.__cell__.padding,N=this.internal.__cell__.margins||e,S=this.internal.__cell__.tableHeaderRow,p=this.internal.__cell__.printHeaders;return g.lineNumber!==void 0&&(g.lineNumber===f.lineNumber?(f.x=(g.x||0)+(g.width||0),f.y=g.y||0):g.y+g.height+f.height+N.bottom>this.getPageHeight()?(this.cellAddPage(),f.y=N.top,p&&S&&(this.printHeaderRow(f.lineNumber,!0),f.y+=S[0].height)):f.y=g.y+g.height||f.y),f.text[0]!==void 0&&(this.rect(f.x,f.y,f.width,f.height,r===!0?"FD":void 0),f.align==="right"?this.text(f.text,f.x+f.width-A,f.y+A,{align:"right",baseline:"top"}):f.align==="center"?this.text(f.text,f.x+f.width/2,f.y+A,{align:"center",baseline:"top",maxWidth:f.width-A-A}):this.text(f.text,f.x+A,f.y+A,{align:"left",baseline:"top",maxWidth:f.width-A-A})),this.internal.__cell__.lastCell=f,this};i.table=function(f,g,A,N,S){if(a.call(this),!A)throw new Error("No data for PDF table.");var p,B,F,q,_=[],E=[],Z=[],ot={},dt={},Nt=[],nt=[],G=(S=S||{}).autoSize||!1,vt=S.printHeaders!==!1,bt=S.css&&S.css["font-size"]!==void 0?16*S.css["font-size"]:S.fontSize||12,k=S.margins||Object.assign({width:this.getPageWidth()},e),I=typeof S.padding=="number"?S.padding:3,H=S.headerBackgroundColor||"#c8c8c8",R=S.headerTextColor||"#000";if(c.call(this),this.internal.__cell__.printHeaders=vt,this.internal.__cell__.margins=k,this.internal.__cell__.table_font_size=bt,this.internal.__cell__.padding=I,this.internal.__cell__.headerBackgroundColor=H,this.internal.__cell__.headerTextColor=R,this.setFontSize(bt),N==null)E=_=Object.keys(A[0]),Z=_.map((function(){return"left"}));else if(Array.isArray(N)&&ve(N[0])==="object")for(_=N.map((function(ft){return ft.name})),E=N.map((function(ft){return ft.prompt||ft.name||""})),Z=N.map((function(ft){return ft.align||"left"})),p=0;p<N.length;p+=1)dt[N[p].name]=N[p].width*(19.049976/25.4);else Array.isArray(N)&&typeof N[0]=="string"&&(E=_=N,Z=_.map((function(){return"left"})));if(G||Array.isArray(N)&&typeof N[0]=="string")for(p=0;p<_.length;p+=1){for(ot[q=_[p]]=A.map((function(ft){return ft[q]})),this.setFont(void 0,"bold"),Nt.push(this.getTextDimensions(E[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),B=ot[q],this.setFont(void 0,"normal"),F=0;F<B.length;F+=1)Nt.push(this.getTextDimensions(B[F],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);dt[q]=Math.max.apply(null,Nt)+I+I,Nt=[]}if(vt){var ut={};for(p=0;p<_.length;p+=1)ut[_[p]]={},ut[_[p]].text=E[p],ut[_[p]].align=Z[p];var st=h.call(this,ut,dt);nt=_.map((function(ft){return new s(f,g,dt[ft],st,ut[ft].text,void 0,ut[ft].align)})),this.setTableHeaderRow(nt),this.printHeaderRow(1,!1)}var mt=N.reduce((function(ft,Mt){return ft[Mt.name]=Mt.align,ft}),{});for(p=0;p<A.length;p+=1){"rowStart"in S&&S.rowStart instanceof Function&&S.rowStart({row:p,data:A[p]},this);var tt=h.call(this,A[p],dt);for(F=0;F<_.length;F+=1){var pt=A[p][_[F]];"cellStart"in S&&S.cellStart instanceof Function&&S.cellStart({row:p,col:F,data:pt},this),l.call(this,new s(f,g,dt[_[F]],tt,pt,p+2,mt[_[F]]))}}return this.internal.__cell__.table_x=f,this.internal.__cell__.table_y=g,this};var h=function(f,g){var A=this.internal.__cell__.padding,N=this.internal.__cell__.table_font_size,S=this.internal.scaleFactor;return Object.keys(f).map((function(p){var B=f[p];return this.splitTextToSize(B.hasOwnProperty("text")?B.text:B,g[p]-A-A)}),this).map((function(p){return this.getLineHeightFactor()*p.length*N/S+A+A}),this).reduce((function(p,B){return Math.max(p,B)}),0)};i.setTableHeaderRow=function(f){a.call(this),this.internal.__cell__.tableHeaderRow=f},i.printHeaderRow=function(f,g){if(a.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var A;if(r=!0,typeof this.internal.__cell__.headerFunction=="function"){var N=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new s(N[0],N[1],N[2],N[3],void 0,-1)}this.setFont(void 0,"bold");for(var S=[],p=0;p<this.internal.__cell__.tableHeaderRow.length;p+=1){A=this.internal.__cell__.tableHeaderRow[p].clone(),g&&(A.y=this.internal.__cell__.margins.top||0,S.push(A)),A.lineNumber=f;var B=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),l.call(this,A),this.setTextColor(B)}S.length>0&&this.setTableHeaderRow(S),this.setFont(void 0,"normal"),r=!1}})(zt.API);var au={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},su=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],no=iu(su),ou=[100,200,300,400,500,600,700,800,900],lc=iu(ou);function io(i){var e=i.family.replace(/"|'/g,"").toLowerCase(),r=(function(s){return au[s=s||"normal"]?s:"normal"})(i.style),a=(function(s){if(!s)return 400;if(typeof s=="number")return s>=100&&s<=900&&s%100==0?s:400;if(/^\d00$/.test(s))return parseInt(s);switch(s){case"bold":return 700;case"normal":default:return 400}})(i.weight),c=(function(s){return typeof no[s=s||"normal"]=="number"?s:"normal"})(i.stretch);return{family:e,style:r,weight:a,stretch:c,src:i.src||[],ref:i.ref||{name:e,style:[c,r,a].join(" ")}}}function To(i,e,r,a){var c;for(c=r;c>=0&&c<e.length;c+=a)if(i[e[c]])return i[e[c]];for(c=r;c>=0&&c<e.length;c-=a)if(i[e[c]])return i[e[c]]}var hc={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},zo={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Uo(i){return[i.stretch,i.style,i.weight,i.family].join(" ")}function fc(i,e,r){for(var a=(r=r||{}).defaultFontFamily||"times",c=Object.assign({},hc,r.genericFontFamilies||{}),s=null,l=null,h=0;h<e.length;++h)if(c[(s=io(e[h])).family]&&(s.family=c[s.family]),i.hasOwnProperty(s.family)){l=i[s.family];break}if(!(l=l||i[a]))throw new Error("Could not find a font-family for the rule '"+Uo(s)+"' and default family '"+a+"'.");if(l=(function(f,g){if(g[f])return g[f];var A=no[f],N=A<=no.normal?-1:1,S=To(g,su,A,N);if(!S)throw new Error("Could not find a matching font-stretch value for "+f);return S})(s.stretch,l),l=(function(f,g){if(g[f])return g[f];for(var A=au[f],N=0;N<A.length;++N)if(g[A[N]])return g[A[N]];throw new Error("Could not find a matching font-style for "+f)})(s.style,l),!(l=(function(f,g){if(g[f])return g[f];if(f===400&&g[500])return g[500];if(f===500&&g[400])return g[400];var A=lc[f],N=To(g,ou,A,f<400?-1:1);if(!N)throw new Error("Could not find a matching font-weight for value "+f);return N})(s.weight,l)))throw new Error("Failed to resolve a font for the rule '"+Uo(s)+"'.");return l}function Ho(i){return i.trimLeft()}function dc(i,e){for(var r=0;r<i.length;){if(i.charAt(r)===e)return[i.substring(0,r),i.substring(r+1)];r+=1}return null}function pc(i){var e=i.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return e===null?null:[e[0],i.substring(e[0].length)]}var Ya,Wo,Vo,Xs=["times"];(function(i){var e,r,a,c,s,l,h,f,g,A=function(w){return w=w||{},this.isStrokeTransparent=w.isStrokeTransparent||!1,this.strokeOpacity=w.strokeOpacity||1,this.strokeStyle=w.strokeStyle||"#000000",this.fillStyle=w.fillStyle||"#000000",this.isFillTransparent=w.isFillTransparent||!1,this.fillOpacity=w.fillOpacity||1,this.font=w.font||"10px sans-serif",this.textBaseline=w.textBaseline||"alphabetic",this.textAlign=w.textAlign||"left",this.lineWidth=w.lineWidth||1,this.lineJoin=w.lineJoin||"miter",this.lineCap=w.lineCap||"butt",this.path=w.path||[],this.transform=w.transform!==void 0?w.transform.clone():new f,this.globalCompositeOperation=w.globalCompositeOperation||"normal",this.globalAlpha=w.globalAlpha||1,this.clip_path=w.clip_path||[],this.currentPoint=w.currentPoint||new l,this.miterLimit=w.miterLimit||10,this.lastPoint=w.lastPoint||new l,this.lineDashOffset=w.lineDashOffset||0,this.lineDash=w.lineDash||[],this.margin=w.margin||[0,0,0,0],this.prevPageLastElemOffset=w.prevPageLastElemOffset||0,this.ignoreClearRect=typeof w.ignoreClearRect!="boolean"||w.ignoreClearRect,this};i.events.push(["initialized",function(){this.context2d=new N(this),e=this.internal.f2,r=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,c=this.internal.getHorizontalCoordinate,s=this.internal.getVerticalCoordinate,l=this.internal.Point,h=this.internal.Rectangle,f=this.internal.Matrix,g=new A}]);var N=function(w){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var j=w;Object.defineProperty(this,"pdf",{get:function(){return j}});var M=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return M},set:function(at){M=!!at}});var W=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return W},set:function(at){W=!!at}});var J=0;Object.defineProperty(this,"posX",{get:function(){return J},set:function(at){isNaN(at)||(J=at)}});var $=0;Object.defineProperty(this,"posY",{get:function(){return $},set:function(at){isNaN(at)||($=at)}}),Object.defineProperty(this,"margin",{get:function(){return g.margin},set:function(at){var O;typeof at=="number"?O=[at,at,at,at]:((O=new Array(4))[0]=at[0],O[1]=at.length>=2?at[1]:O[0],O[2]=at.length>=3?at[2]:O[0],O[3]=at.length>=4?at[3]:O[1]),g.margin=O}});var et=!1;Object.defineProperty(this,"autoPaging",{get:function(){return et},set:function(at){et=at}});var Q=0;Object.defineProperty(this,"lastBreak",{get:function(){return Q},set:function(at){Q=at}});var At=[];Object.defineProperty(this,"pageBreaks",{get:function(){return At},set:function(at){At=at}}),Object.defineProperty(this,"ctx",{get:function(){return g},set:function(at){at instanceof A&&(g=at)}}),Object.defineProperty(this,"path",{get:function(){return g.path},set:function(at){g.path=at}});var Lt=[];Object.defineProperty(this,"ctxStack",{get:function(){return Lt},set:function(at){Lt=at}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(at){var O;O=S(at),this.ctx.fillStyle=O.style,this.ctx.isFillTransparent=O.a===0,this.ctx.fillOpacity=O.a,this.pdf.setFillColor(O.r,O.g,O.b,{a:O.a}),this.pdf.setTextColor(O.r,O.g,O.b,{a:O.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(at){var O=S(at);this.ctx.strokeStyle=O.style,this.ctx.isStrokeTransparent=O.a===0,this.ctx.strokeOpacity=O.a,O.a===0?this.pdf.setDrawColor(255,255,255):(O.a,this.pdf.setDrawColor(O.r,O.g,O.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(at){["butt","round","square"].indexOf(at)!==-1&&(this.ctx.lineCap=at,this.pdf.setLineCap(at))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(at){isNaN(at)||(this.ctx.lineWidth=at,this.pdf.setLineWidth(at))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(at){["bevel","round","miter"].indexOf(at)!==-1&&(this.ctx.lineJoin=at,this.pdf.setLineJoin(at))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(at){isNaN(at)||(this.ctx.miterLimit=at,this.pdf.setMiterLimit(at))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(at){this.ctx.textBaseline=at}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(at){["right","end","center","left","start"].indexOf(at)!==-1&&(this.ctx.textAlign=at)}});var Ot=null;function jt(at,O){if(Ot===null){var Kt=(function(Et){var wt=[];return Object.keys(Et).forEach((function(xt){Et[xt].forEach((function(kt){var Pt=null;switch(kt){case"bold":Pt={family:xt,weight:"bold"};break;case"italic":Pt={family:xt,style:"italic"};break;case"bolditalic":Pt={family:xt,weight:"bold",style:"italic"};break;case"":case"normal":Pt={family:xt}}Pt!==null&&(Pt.ref={name:xt,style:kt},wt.push(Pt))}))})),wt})(at.getFontList());Ot=(function(Et){for(var wt={},xt=0;xt<Et.length;++xt){var kt=io(Et[xt]),Pt=kt.family,qt=kt.stretch,Gt=kt.style,Qt=kt.weight;wt[Pt]=wt[Pt]||{},wt[Pt][qt]=wt[Pt][qt]||{},wt[Pt][qt][Gt]=wt[Pt][qt][Gt]||{},wt[Pt][qt][Gt][Qt]=kt}return wt})(Kt.concat(O))}return Ot}var Wt=null;Object.defineProperty(this,"fontFaces",{get:function(){return Wt},set:function(at){Ot=null,Wt=at}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(at){var O;if(this.ctx.font=at,(O=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(at))!==null){var Kt=O[1],Et=(O[2],O[3]),wt=O[4],xt=(O[5],O[6]),kt=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(wt)[2];wt=Math.floor(kt==="px"?parseFloat(wt)*this.pdf.internal.scaleFactor:kt==="em"?parseFloat(wt)*this.pdf.getFontSize():parseFloat(wt)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(wt);var Pt=(function(Ht){var ee,It,Ge=[],se=Ht.trim();if(se==="")return Xs;if(se in zo)return[zo[se]];for(;se!=="";){switch(It=null,ee=(se=Ho(se)).charAt(0)){case'"':case"'":It=dc(se.substring(1),ee);break;default:It=pc(se)}if(It===null||(Ge.push(It[0]),(se=Ho(It[1]))!==""&&se.charAt(0)!==","))return Xs;se=se.replace(/^,/,"")}return Ge})(xt);if(this.fontFaces){var qt=fc(jt(this.pdf,this.fontFaces),Pt.map((function(Ht){return{family:Ht,stretch:"normal",weight:Et,style:Kt}})));this.pdf.setFont(qt.ref.name,qt.ref.style)}else{var Gt="";(Et==="bold"||parseInt(Et,10)>=700||Kt==="bold")&&(Gt="bold"),Kt==="italic"&&(Gt+="italic"),Gt.length===0&&(Gt="normal");for(var Qt="",te={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},ie=0;ie<Pt.length;ie++){if(this.pdf.internal.getFont(Pt[ie],Gt,{noFallback:!0,disableWarning:!0})!==void 0){Qt=Pt[ie];break}if(Gt==="bolditalic"&&this.pdf.internal.getFont(Pt[ie],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Qt=Pt[ie],Gt="bold";else if(this.pdf.internal.getFont(Pt[ie],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Qt=Pt[ie],Gt="normal";break}}if(Qt===""){for(var fe=0;fe<Pt.length;fe++)if(te[Pt[fe]]){Qt=te[Pt[fe]];break}}Qt=Qt===""?"Times":Qt,this.pdf.setFont(Qt,Gt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(at){this.ctx.globalCompositeOperation=at}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(at){this.ctx.globalAlpha=at}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(at){this.ctx.lineDashOffset=at,Mt.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(at){this.ctx.lineDash=at,Mt.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(at){this.ctx.ignoreClearRect=!!at}})};N.prototype.setLineDash=function(w){this.lineDash=w},N.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},N.prototype.fill=function(){ot.call(this,"fill",!1)},N.prototype.stroke=function(){ot.call(this,"stroke",!1)},N.prototype.beginPath=function(){this.path=[{type:"begin"}]},N.prototype.moveTo=function(w,j){if(isNaN(w)||isNaN(j))throw me.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var M=this.ctx.transform.applyToPoint(new l(w,j));this.path.push({type:"mt",x:M.x,y:M.y}),this.ctx.lastPoint=new l(w,j)},N.prototype.closePath=function(){var w=new l(0,0),j=0;for(j=this.path.length-1;j!==-1;j--)if(this.path[j].type==="begin"&&ve(this.path[j+1])==="object"&&typeof this.path[j+1].x=="number"){w=new l(this.path[j+1].x,this.path[j+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new l(w.x,w.y)},N.prototype.lineTo=function(w,j){if(isNaN(w)||isNaN(j))throw me.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var M=this.ctx.transform.applyToPoint(new l(w,j));this.path.push({type:"lt",x:M.x,y:M.y}),this.ctx.lastPoint=new l(M.x,M.y)},N.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),ot.call(this,null,!0)},N.prototype.quadraticCurveTo=function(w,j,M,W){if(isNaN(M)||isNaN(W)||isNaN(w)||isNaN(j))throw me.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var J=this.ctx.transform.applyToPoint(new l(M,W)),$=this.ctx.transform.applyToPoint(new l(w,j));this.path.push({type:"qct",x1:$.x,y1:$.y,x:J.x,y:J.y}),this.ctx.lastPoint=new l(J.x,J.y)},N.prototype.bezierCurveTo=function(w,j,M,W,J,$){if(isNaN(J)||isNaN($)||isNaN(w)||isNaN(j)||isNaN(M)||isNaN(W))throw me.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var et=this.ctx.transform.applyToPoint(new l(J,$)),Q=this.ctx.transform.applyToPoint(new l(w,j)),At=this.ctx.transform.applyToPoint(new l(M,W));this.path.push({type:"bct",x1:Q.x,y1:Q.y,x2:At.x,y2:At.y,x:et.x,y:et.y}),this.ctx.lastPoint=new l(et.x,et.y)},N.prototype.arc=function(w,j,M,W,J,$){if(isNaN(w)||isNaN(j)||isNaN(M)||isNaN(W)||isNaN(J))throw me.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if($=!!$,!this.ctx.transform.isIdentity){var et=this.ctx.transform.applyToPoint(new l(w,j));w=et.x,j=et.y;var Q=this.ctx.transform.applyToPoint(new l(0,M)),At=this.ctx.transform.applyToPoint(new l(0,0));M=Math.sqrt(Math.pow(Q.x-At.x,2)+Math.pow(Q.y-At.y,2))}Math.abs(J-W)>=2*Math.PI&&(W=0,J=2*Math.PI),this.path.push({type:"arc",x:w,y:j,radius:M,startAngle:W,endAngle:J,counterclockwise:$})},N.prototype.arcTo=function(w,j,M,W,J){throw new Error("arcTo not implemented.")},N.prototype.rect=function(w,j,M,W){if(isNaN(w)||isNaN(j)||isNaN(M)||isNaN(W))throw me.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(w,j),this.lineTo(w+M,j),this.lineTo(w+M,j+W),this.lineTo(w,j+W),this.lineTo(w,j),this.lineTo(w+M,j),this.lineTo(w,j)},N.prototype.fillRect=function(w,j,M,W){if(isNaN(w)||isNaN(j)||isNaN(M)||isNaN(W))throw me.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.call(this)){var J={};this.lineCap!=="butt"&&(J.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(J.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(w,j,M,W),this.fill(),J.hasOwnProperty("lineCap")&&(this.lineCap=J.lineCap),J.hasOwnProperty("lineJoin")&&(this.lineJoin=J.lineJoin)}},N.prototype.strokeRect=function(w,j,M,W){if(isNaN(w)||isNaN(j)||isNaN(M)||isNaN(W))throw me.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");B.call(this)||(this.beginPath(),this.rect(w,j,M,W),this.stroke())},N.prototype.clearRect=function(w,j,M,W){if(isNaN(w)||isNaN(j)||isNaN(M)||isNaN(W))throw me.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(w,j,M,W))},N.prototype.save=function(w){w=typeof w!="boolean"||w;for(var j=this.pdf.internal.getCurrentPageInfo().pageNumber,M=0;M<this.pdf.internal.getNumberOfPages();M++)this.pdf.setPage(M+1),this.pdf.internal.out("q");if(this.pdf.setPage(j),w){this.ctx.fontSize=this.pdf.internal.getFontSize();var W=new A(this.ctx);this.ctxStack.push(this.ctx),this.ctx=W}},N.prototype.restore=function(w){w=typeof w!="boolean"||w;for(var j=this.pdf.internal.getCurrentPageInfo().pageNumber,M=0;M<this.pdf.internal.getNumberOfPages();M++)this.pdf.setPage(M+1),this.pdf.internal.out("Q");this.pdf.setPage(j),w&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},N.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var S=function(w){var j,M,W,J;if(w.isCanvasGradient===!0&&(w=w.getColor()),!w)return{r:0,g:0,b:0,a:0,style:w};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(w))j=0,M=0,W=0,J=0;else{var $=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(w);if($!==null)j=parseInt($[1]),M=parseInt($[2]),W=parseInt($[3]),J=1;else if(($=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(w))!==null)j=parseInt($[1]),M=parseInt($[2]),W=parseInt($[3]),J=parseFloat($[4]);else{if(J=1,typeof w=="string"&&w.charAt(0)!=="#"){var et=new $o(w);w=et.ok?et.toHex():"#000000"}w.length===4?(j=w.substring(1,2),j+=j,M=w.substring(2,3),M+=M,W=w.substring(3,4),W+=W):(j=w.substring(1,3),M=w.substring(3,5),W=w.substring(5,7)),j=parseInt(j,16),M=parseInt(M,16),W=parseInt(W,16)}}return{r:j,g:M,b:W,a:J,style:w}},p=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},B=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};N.prototype.fillText=function(w,j,M,W){if(isNaN(j)||isNaN(M)||typeof w!="string")throw me.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(W=isNaN(W)?void 0:W,!p.call(this)){var J=tt(this.ctx.transform.rotation),$=this.ctx.transform.scaleX;I.call(this,{text:w,x:j,y:M,scale:$,angle:J,align:this.textAlign,maxWidth:W})}},N.prototype.strokeText=function(w,j,M,W){if(isNaN(j)||isNaN(M)||typeof w!="string")throw me.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!B.call(this)){W=isNaN(W)?void 0:W;var J=tt(this.ctx.transform.rotation),$=this.ctx.transform.scaleX;I.call(this,{text:w,x:j,y:M,scale:$,renderingMode:"stroke",angle:J,align:this.textAlign,maxWidth:W})}},N.prototype.measureText=function(w){if(typeof w!="string")throw me.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var j=this.pdf,M=this.pdf.internal.scaleFactor,W=j.internal.getFontSize(),J=j.getStringUnitWidth(w)*W/j.internal.scaleFactor,$=function(et){var Q=(et=et||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Q}}),this};return new $({width:J*=Math.round(96*M/72*1e4)/1e4})},N.prototype.scale=function(w,j){if(isNaN(w)||isNaN(j))throw me.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var M=new f(w,0,0,j,0,0);this.ctx.transform=this.ctx.transform.multiply(M)},N.prototype.rotate=function(w){if(isNaN(w))throw me.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var j=new f(Math.cos(w),Math.sin(w),-Math.sin(w),Math.cos(w),0,0);this.ctx.transform=this.ctx.transform.multiply(j)},N.prototype.translate=function(w,j){if(isNaN(w)||isNaN(j))throw me.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var M=new f(1,0,0,1,w,j);this.ctx.transform=this.ctx.transform.multiply(M)},N.prototype.transform=function(w,j,M,W,J,$){if(isNaN(w)||isNaN(j)||isNaN(M)||isNaN(W)||isNaN(J)||isNaN($))throw me.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var et=new f(w,j,M,W,J,$);this.ctx.transform=this.ctx.transform.multiply(et)},N.prototype.setTransform=function(w,j,M,W,J,$){w=isNaN(w)?1:w,j=isNaN(j)?0:j,M=isNaN(M)?0:M,W=isNaN(W)?1:W,J=isNaN(J)?0:J,$=isNaN($)?0:$,this.ctx.transform=new f(w,j,M,W,J,$)};var F=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};N.prototype.drawImage=function(w,j,M,W,J,$,et,Q,At){var Lt=this.pdf.getImageProperties(w),Ot=1,jt=1,Wt=1,at=1;W!==void 0&&Q!==void 0&&(Wt=Q/W,at=At/J,Ot=Lt.width/W*Q/W,jt=Lt.height/J*At/J),$===void 0&&($=j,et=M,j=0,M=0),W!==void 0&&Q===void 0&&(Q=W,At=J),W===void 0&&Q===void 0&&(Q=Lt.width,At=Lt.height);for(var O,Kt=this.ctx.transform.decompose(),Et=tt(Kt.rotate.shx),wt=new f,xt=(wt=(wt=(wt=wt.multiply(Kt.translate)).multiply(Kt.skew)).multiply(Kt.scale)).applyToRectangle(new h($-j*Wt,et-M*at,W*Ot,J*jt)),kt=q.call(this,xt),Pt=[],qt=0;qt<kt.length;qt+=1)Pt.indexOf(kt[qt])===-1&&Pt.push(kt[qt]);if(Z(Pt),this.autoPaging)for(var Gt=Pt[0],Qt=Pt[Pt.length-1],te=Gt;te<Qt+1;te++){this.pdf.setPage(te);var ie=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],fe=te===1?this.posY+this.margin[0]:this.margin[0],Ht=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ee=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],It=te===1?0:Ht+(te-2)*ee;if(this.ctx.clip_path.length!==0){var Ge=this.path;O=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=E(O,this.posX+this.margin[3],-It+fe+this.ctx.prevPageLastElemOffset),dt.call(this,"fill",!0),this.path=Ge}var se=JSON.parse(JSON.stringify(xt));se=E([se],this.posX+this.margin[3],-It+fe+this.ctx.prevPageLastElemOffset)[0];var Nr=(te>Gt||te<Qt)&&F.call(this);Nr&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ie,ee,null).clip().discardPath()),this.pdf.addImage(w,"JPEG",se.x,se.y,se.w,se.h,null,null,Et),Nr&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(w,"JPEG",xt.x,xt.y,xt.w,xt.h,null,null,Et)};var q=function(w,j,M){var W=[];j=j||this.pdf.internal.pageSize.width,M=M||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var J=this.posY+this.ctx.prevPageLastElemOffset;switch(w.type){default:case"mt":case"lt":W.push(Math.floor((w.y+J)/M)+1);break;case"arc":W.push(Math.floor((w.y+J-w.radius)/M)+1),W.push(Math.floor((w.y+J+w.radius)/M)+1);break;case"qct":var $=pt(this.ctx.lastPoint.x,this.ctx.lastPoint.y,w.x1,w.y1,w.x,w.y);W.push(Math.floor(($.y+J)/M)+1),W.push(Math.floor(($.y+$.h+J)/M)+1);break;case"bct":var et=ft(this.ctx.lastPoint.x,this.ctx.lastPoint.y,w.x1,w.y1,w.x2,w.y2,w.x,w.y);W.push(Math.floor((et.y+J)/M)+1),W.push(Math.floor((et.y+et.h+J)/M)+1);break;case"rect":W.push(Math.floor((w.y+J)/M)+1),W.push(Math.floor((w.y+w.h+J)/M)+1)}for(var Q=0;Q<W.length;Q+=1)for(;this.pdf.internal.getNumberOfPages()<W[Q];)_.call(this);return W},_=function(){var w=this.fillStyle,j=this.strokeStyle,M=this.font,W=this.lineCap,J=this.lineWidth,$=this.lineJoin;this.pdf.addPage(),this.fillStyle=w,this.strokeStyle=j,this.font=M,this.lineCap=W,this.lineWidth=J,this.lineJoin=$},E=function(w,j,M){for(var W=0;W<w.length;W++)switch(w[W].type){case"bct":w[W].x2+=j,w[W].y2+=M;case"qct":w[W].x1+=j,w[W].y1+=M;case"mt":case"lt":case"arc":default:w[W].x+=j,w[W].y+=M}return w},Z=function(w){return w.sort((function(j,M){return j-M}))},ot=function(w,j){for(var M,W,J=this.fillStyle,$=this.strokeStyle,et=this.lineCap,Q=this.lineWidth,At=Math.abs(Q*this.ctx.transform.scaleX),Lt=this.lineJoin,Ot=JSON.parse(JSON.stringify(this.path)),jt=JSON.parse(JSON.stringify(this.path)),Wt=[],at=0;at<jt.length;at++)if(jt[at].x!==void 0)for(var O=q.call(this,jt[at]),Kt=0;Kt<O.length;Kt+=1)Wt.indexOf(O[Kt])===-1&&Wt.push(O[Kt]);for(var Et=0;Et<Wt.length;Et++)for(;this.pdf.internal.getNumberOfPages()<Wt[Et];)_.call(this);if(Z(Wt),this.autoPaging)for(var wt=Wt[0],xt=Wt[Wt.length-1],kt=wt;kt<xt+1;kt++){this.pdf.setPage(kt),this.fillStyle=J,this.strokeStyle=$,this.lineCap=et,this.lineWidth=At,this.lineJoin=Lt;var Pt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],qt=kt===1?this.posY+this.margin[0]:this.margin[0],Gt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Qt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],te=kt===1?0:Gt+(kt-2)*Qt;if(this.ctx.clip_path.length!==0){var ie=this.path;M=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=E(M,this.posX+this.margin[3],-te+qt+this.ctx.prevPageLastElemOffset),dt.call(this,w,!0),this.path=ie}if(W=JSON.parse(JSON.stringify(Ot)),this.path=E(W,this.posX+this.margin[3],-te+qt+this.ctx.prevPageLastElemOffset),j===!1||kt===0){var fe=(kt>wt||kt<xt)&&F.call(this);fe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Pt,Qt,null).clip().discardPath()),dt.call(this,w,j),fe&&this.pdf.restoreGraphicsState()}this.lineWidth=Q}else this.lineWidth=At,dt.call(this,w,j),this.lineWidth=Q;this.path=Ot},dt=function(w,j){if((w!=="stroke"||j||!B.call(this))&&(w==="stroke"||j||!p.call(this))){for(var M,W,J=[],$=this.path,et=0;et<$.length;et++){var Q=$[et];switch(Q.type){case"begin":J.push({begin:!0});break;case"close":J.push({close:!0});break;case"mt":J.push({start:Q,deltas:[],abs:[]});break;case"lt":var At=J.length;if($[et-1]&&!isNaN($[et-1].x)&&(M=[Q.x-$[et-1].x,Q.y-$[et-1].y],At>0)){for(;At>=0;At--)if(J[At-1].close!==!0&&J[At-1].begin!==!0){J[At-1].deltas.push(M),J[At-1].abs.push(Q);break}}break;case"bct":M=[Q.x1-$[et-1].x,Q.y1-$[et-1].y,Q.x2-$[et-1].x,Q.y2-$[et-1].y,Q.x-$[et-1].x,Q.y-$[et-1].y],J[J.length-1].deltas.push(M);break;case"qct":var Lt=$[et-1].x+2/3*(Q.x1-$[et-1].x),Ot=$[et-1].y+2/3*(Q.y1-$[et-1].y),jt=Q.x+2/3*(Q.x1-Q.x),Wt=Q.y+2/3*(Q.y1-Q.y),at=Q.x,O=Q.y;M=[Lt-$[et-1].x,Ot-$[et-1].y,jt-$[et-1].x,Wt-$[et-1].y,at-$[et-1].x,O-$[et-1].y],J[J.length-1].deltas.push(M);break;case"arc":J.push({deltas:[],abs:[],arc:!0}),Array.isArray(J[J.length-1].abs)&&J[J.length-1].abs.push(Q)}}W=j?null:w==="stroke"?"stroke":"fill";for(var Kt=!1,Et=0;Et<J.length;Et++)if(J[Et].arc)for(var wt=J[Et].abs,xt=0;xt<wt.length;xt++){var kt=wt[xt];kt.type==="arc"?G.call(this,kt.x,kt.y,kt.radius,kt.startAngle,kt.endAngle,kt.counterclockwise,void 0,j,!Kt):H.call(this,kt.x,kt.y),Kt=!0}else if(J[Et].close===!0)this.pdf.internal.out("h"),Kt=!1;else if(J[Et].begin!==!0){var Pt=J[Et].start.x,qt=J[Et].start.y;R.call(this,J[Et].deltas,Pt,qt),Kt=!0}W&&vt.call(this,W),j&&bt.call(this)}},Nt=function(w){var j=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,M=j*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return w-M;case"top":return w+j-M;case"hanging":return w+j-2*M;case"middle":return w+j/2-M;case"ideographic":return w;case"alphabetic":default:return w}},nt=function(w){return w+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};N.prototype.createLinearGradient=function(){var w=function(){};return w.colorStops=[],w.addColorStop=function(j,M){this.colorStops.push([j,M])},w.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},w.isCanvasGradient=!0,w},N.prototype.createPattern=function(){return this.createLinearGradient()},N.prototype.createRadialGradient=function(){return this.createLinearGradient()};var G=function(w,j,M,W,J,$,et,Q,At){for(var Lt=st.call(this,M,W,J,$),Ot=0;Ot<Lt.length;Ot++){var jt=Lt[Ot];Ot===0&&(At?k.call(this,jt.x1+w,jt.y1+j):H.call(this,jt.x1+w,jt.y1+j)),ut.call(this,w,j,jt.x2,jt.y2,jt.x3,jt.y3,jt.x4,jt.y4)}Q?bt.call(this):vt.call(this,et)},vt=function(w){switch(w){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},bt=function(){this.pdf.clip(),this.pdf.discardPath()},k=function(w,j){this.pdf.internal.out(r(w)+" "+a(j)+" m")},I=function(w){var j;switch(w.align){case"right":case"end":j="right";break;case"center":j="center";break;case"left":case"start":default:j="left"}var M=this.pdf.getTextDimensions(w.text),W=Nt.call(this,w.y),J=nt.call(this,W)-M.h,$=this.ctx.transform.applyToPoint(new l(w.x,W)),et=this.ctx.transform.decompose(),Q=new f;Q=(Q=(Q=Q.multiply(et.translate)).multiply(et.skew)).multiply(et.scale);for(var At,Lt,Ot,jt=this.ctx.transform.applyToRectangle(new h(w.x,W,M.w,M.h)),Wt=Q.applyToRectangle(new h(w.x,J,M.w,M.h)),at=q.call(this,Wt),O=[],Kt=0;Kt<at.length;Kt+=1)O.indexOf(at[Kt])===-1&&O.push(at[Kt]);if(Z(O),this.autoPaging)for(var Et=O[0],wt=O[O.length-1],xt=Et;xt<wt+1;xt++){this.pdf.setPage(xt);var kt=xt===1?this.posY+this.margin[0]:this.margin[0],Pt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],qt=this.pdf.internal.pageSize.height-this.margin[2],Gt=qt-this.margin[0],Qt=this.pdf.internal.pageSize.width-this.margin[1],te=Qt-this.margin[3],ie=xt===1?0:Pt+(xt-2)*Gt;if(this.ctx.clip_path.length!==0){var fe=this.path;At=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=E(At,this.posX+this.margin[3],-1*ie+kt),dt.call(this,"fill",!0),this.path=fe}var Ht=E([JSON.parse(JSON.stringify(Wt))],this.posX+this.margin[3],-ie+kt+this.ctx.prevPageLastElemOffset)[0];w.scale>=.01&&(Lt=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Lt*w.scale),Ot=this.lineWidth,this.lineWidth=Ot*w.scale);var ee=this.autoPaging!=="text";if(ee||Ht.y+Ht.h<=qt){if(ee||Ht.y>=kt&&Ht.x<=Qt){var It=ee?w.text:this.pdf.splitTextToSize(w.text,w.maxWidth||Qt-Ht.x)[0],Ge=E([JSON.parse(JSON.stringify(jt))],this.posX+this.margin[3],-ie+kt+this.ctx.prevPageLastElemOffset)[0],se=ee&&(xt>Et||xt<wt)&&F.call(this);se&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],te,Gt,null).clip().discardPath()),this.pdf.text(It,Ge.x,Ge.y,{angle:w.angle,align:j,renderingMode:w.renderingMode}),se&&this.pdf.restoreGraphicsState()}}else Ht.y<qt&&(this.ctx.prevPageLastElemOffset+=qt-Ht.y);w.scale>=.01&&(this.pdf.setFontSize(Lt),this.lineWidth=Ot)}else w.scale>=.01&&(Lt=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Lt*w.scale),Ot=this.lineWidth,this.lineWidth=Ot*w.scale),this.pdf.text(w.text,$.x+this.posX,$.y+this.posY,{angle:w.angle,align:j,renderingMode:w.renderingMode,maxWidth:w.maxWidth}),w.scale>=.01&&(this.pdf.setFontSize(Lt),this.lineWidth=Ot)},H=function(w,j,M,W){M=M||0,W=W||0,this.pdf.internal.out(r(w+M)+" "+a(j+W)+" l")},R=function(w,j,M){return this.pdf.lines(w,j,M,null,null)},ut=function(w,j,M,W,J,$,et,Q){this.pdf.internal.out([e(c(M+w)),e(s(W+j)),e(c(J+w)),e(s($+j)),e(c(et+w)),e(s(Q+j)),"c"].join(" "))},st=function(w,j,M,W){for(var J=2*Math.PI,$=Math.PI/2;j>M;)j-=J;var et=Math.abs(M-j);et<J&&W&&(et=J-et);for(var Q=[],At=W?-1:1,Lt=j;et>1e-5;){var Ot=Lt+At*Math.min(et,$);Q.push(mt.call(this,w,Lt,Ot)),et-=Math.abs(Ot-Lt),Lt=Ot}return Q},mt=function(w,j,M){var W=(M-j)/2,J=w*Math.cos(W),$=w*Math.sin(W),et=J,Q=-$,At=et*et+Q*Q,Lt=At+et*J+Q*$,Ot=4/3*(Math.sqrt(2*At*Lt)-Lt)/(et*$-Q*J),jt=et-Ot*Q,Wt=Q+Ot*et,at=jt,O=-Wt,Kt=W+j,Et=Math.cos(Kt),wt=Math.sin(Kt);return{x1:w*Math.cos(j),y1:w*Math.sin(j),x2:jt*Et-Wt*wt,y2:jt*wt+Wt*Et,x3:at*Et-O*wt,y3:at*wt+O*Et,x4:w*Math.cos(M),y4:w*Math.sin(M)}},tt=function(w){return 180*w/Math.PI},pt=function(w,j,M,W,J,$){var et=w+.5*(M-w),Q=j+.5*(W-j),At=J+.5*(M-J),Lt=$+.5*(W-$),Ot=Math.min(w,J,et,At),jt=Math.max(w,J,et,At),Wt=Math.min(j,$,Q,Lt),at=Math.max(j,$,Q,Lt);return new h(Ot,Wt,jt-Ot,at-Wt)},ft=function(w,j,M,W,J,$,et,Q){var At,Lt,Ot,jt,Wt,at,O,Kt,Et,wt,xt,kt,Pt,qt,Gt=M-w,Qt=W-j,te=J-M,ie=$-W,fe=et-J,Ht=Q-$;for(Lt=0;Lt<41;Lt++)Et=(O=(Ot=w+(At=Lt/40)*Gt)+At*((Wt=M+At*te)-Ot))+At*(Wt+At*(J+At*fe-Wt)-O),wt=(Kt=(jt=j+At*Qt)+At*((at=W+At*ie)-jt))+At*(at+At*($+At*Ht-at)-Kt),Lt==0?(xt=Et,kt=wt,Pt=Et,qt=wt):(xt=Math.min(xt,Et),kt=Math.min(kt,wt),Pt=Math.max(Pt,Et),qt=Math.max(qt,wt));return new h(Math.round(xt),Math.round(kt),Math.round(Pt-xt),Math.round(qt-kt))},Mt=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var w,j,M=(w=this.ctx.lineDash,j=this.ctx.lineDashOffset,JSON.stringify({lineDash:w,lineDashOffset:j}));this.prevLineDash!==M&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=M)}}})(zt.API),(function(i){var e=function(s){var l,h,f,g,A,N,S,p,B,F;for(h=[],f=0,g=(s+=l="\0\0\0\0".slice(s.length%4||4)).length;g>f;f+=4)(A=(s.charCodeAt(f)<<24)+(s.charCodeAt(f+1)<<16)+(s.charCodeAt(f+2)<<8)+s.charCodeAt(f+3))!==0?(N=(A=((A=((A=((A=(A-(F=A%85))/85)-(B=A%85))/85)-(p=A%85))/85)-(S=A%85))/85)%85,h.push(N+33,S+33,p+33,B+33,F+33)):h.push(122);return(function(q,_){for(var E=_;E>0;E--)q.pop()})(h,l.length),String.fromCharCode.apply(String,h)+"~>"},r=function(s){var l,h,f,g,A,N=String,S="length",p=255,B="charCodeAt",F="slice",q="replace";for(s[F](-2),s=s[F](0,-2)[q](/\s/g,"")[q]("z","!!!!!"),f=[],g=0,A=(s+=l="uuuuu"[F](s[S]%5||5))[S];A>g;g+=5)h=52200625*(s[B](g)-33)+614125*(s[B](g+1)-33)+7225*(s[B](g+2)-33)+85*(s[B](g+3)-33)+(s[B](g+4)-33),f.push(p&h>>24,p&h>>16,p&h>>8,p&h);return(function(_,E){for(var Z=E;Z>0;Z--)_.pop()})(f,l[S]),N.fromCharCode.apply(N,f)},a=function(s){var l=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((s=s.replace(/\s/g,"")).indexOf(">")!==-1&&(s=s.substr(0,s.indexOf(">"))),s.length%2&&(s+="0"),l.test(s)===!1)return"";for(var h="",f=0;f<s.length;f+=2)h+=String.fromCharCode("0x"+(s[f]+s[f+1]));return h},c=function(s){for(var l=new Uint8Array(s.length),h=s.length;h--;)l[h]=s.charCodeAt(h);return s=(l=Zs(l)).reduce((function(f,g){return f+String.fromCharCode(g)}),"")};i.processDataByFilters=function(s,l){var h=0,f=s||"",g=[];for(typeof(l=l||[])=="string"&&(l=[l]),h=0;h<l.length;h+=1)switch(l[h]){case"ASCII85Decode":case"/ASCII85Decode":f=r(f),g.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":f=e(f),g.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":f=a(f),g.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":f=f.split("").map((function(A){return("0"+A.charCodeAt().toString(16)).slice(-2)})).join("")+">",g.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":f=c(f),g.push("/FlateDecode");break;default:throw new Error('The filter: "'+l[h]+'" is not implemented')}return{data:f,reverseChain:g.reverse().join(" ")}}})(zt.API),(function(i){i.loadFile=function(e,r,a){return(function(c,s,l){s=s!==!1,l=typeof l=="function"?l:function(){};var h=void 0;try{h=(function(f,g,A){var N=new XMLHttpRequest,S=0,p=function(B){var F=B.length,q=[],_=String.fromCharCode;for(S=0;S<F;S+=1)q.push(_(255&B.charCodeAt(S)));return q.join("")};if(N.open("GET",f,!g),N.overrideMimeType("text/plain; charset=x-user-defined"),g===!1&&(N.onload=function(){N.status===200?A(p(this.responseText)):A(void 0)}),N.send(null),g&&N.status===200)return p(N.responseText)})(c,s,l)}catch{}return h})(e,r,a)},i.loadImageFile=i.loadFile})(zt.API),(function(i){function e(){return(Ut.html2canvas?Promise.resolve(Ut.html2canvas):$s(()=>import("./html2canvas-QH1iLAAe.js"),[])).catch((function(l){return Promise.reject(new Error("Could not load html2canvas: "+l))})).then((function(l){return l.default?l.default:l}))}function r(){return(Ut.DOMPurify?Promise.resolve(Ut.DOMPurify):$s(()=>import("./dompurify-BwoZCkIS.js"),[])).catch((function(l){return Promise.reject(new Error("Could not load dompurify: "+l))})).then((function(l){return l.default?l.default:l}))}var a=function(l){var h=ve(l);return h==="undefined"?"undefined":h==="string"||l instanceof String?"string":h==="number"||l instanceof Number?"number":h==="function"||l instanceof Function?"function":l&&l.constructor===Array?"array":l&&l.nodeType===1?"element":h==="object"?"object":"unknown"},c=function(l,h){var f=document.createElement(l);for(var g in h.className&&(f.className=h.className),h.innerHTML&&h.dompurify&&(f.innerHTML=h.dompurify.sanitize(h.innerHTML)),h.style)f.style[g]=h.style[g];return f},s=function l(h){var f=Object.assign(l.convert(Promise.resolve()),JSON.parse(JSON.stringify(l.template))),g=l.convert(Promise.resolve(),f);return g=(g=g.setProgress(1,l,1,[l])).set(h)};(s.prototype=Object.create(Promise.prototype)).constructor=s,s.convert=function(l,h){return l.__proto__=h||s.prototype,l},s.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},s.prototype.from=function(l,h){return this.then((function(){switch(h=h||(function(f){switch(a(f)){case"string":return"string";case"element":return f.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(l)){case"string":return this.then(r).then((function(f){return this.set({src:c("div",{innerHTML:l,dompurify:f})})}));case"element":return this.set({src:l});case"canvas":return this.set({canvas:l});case"img":return this.set({img:l});default:return this.error("Unknown source type.")}}))},s.prototype.to=function(l){switch(l){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},s.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var l={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},h=(function f(g,A){for(var N=g.nodeType===3?document.createTextNode(g.nodeValue):g.cloneNode(!1),S=g.firstChild;S;S=S.nextSibling)A!==!0&&S.nodeType===1&&S.nodeName==="SCRIPT"||N.appendChild(f(S,A));return g.nodeType===1&&(g.nodeName==="CANVAS"?(N.width=g.width,N.height=g.height,N.getContext("2d").drawImage(g,0,0)):g.nodeName!=="TEXTAREA"&&g.nodeName!=="SELECT"||(N.value=g.value),N.addEventListener("load",(function(){N.scrollTop=g.scrollTop,N.scrollLeft=g.scrollLeft}),!0)),N})(this.prop.src,this.opt.html2canvas.javascriptEnabled);h.tagName==="BODY"&&(l.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=c("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=c("div",{className:"html2pdf__container",style:l}),this.prop.container.appendChild(h),this.prop.container.firstChild.appendChild(c("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"}))},s.prototype.toCanvas=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(e).then((function(h){var f=Object.assign({},this.opt.html2canvas);return delete f.onrendered,h(this.prop.container,f)})).then((function(h){(this.opt.html2canvas.onrendered||function(){})(h),this.prop.canvas=h,document.body.removeChild(this.prop.overlay)}))},s.prototype.toContext2d=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(e).then((function(h){var f=this.opt.jsPDF,g=this.opt.fontFaces,A=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,N=Object.assign({async:!0,allowTaint:!0,scale:A,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete N.onrendered,f.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,f.context2d.posX=this.opt.x,f.context2d.posY=this.opt.y,f.context2d.margin=this.opt.margin,f.context2d.fontFaces=g,g)for(var S=0;S<g.length;++S){var p=g[S],B=p.src.find((function(F){return F.format==="truetype"}));B&&f.addFont(B.url,p.ref.name,p.ref.style)}return N.windowHeight=N.windowHeight||0,N.windowHeight=N.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):N.windowHeight,f.context2d.save(!0),h(this.prop.container,N)})).then((function(h){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(h),this.prop.canvas=h,document.body.removeChild(this.prop.overlay)}))},s.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var l=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=l}))},s.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},s.prototype.output=function(l,h,f){return(f=f||"pdf").toLowerCase()==="img"||f.toLowerCase()==="image"?this.outputImg(l,h):this.outputPdf(l,h)},s.prototype.outputPdf=function(l,h){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(l,h)}))},s.prototype.outputImg=function(l){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(l){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+l+'" is not supported.'}}))},s.prototype.save=function(l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(l?{filename:l}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},s.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},s.prototype.set=function(l){if(a(l)!=="object")return this;var h=Object.keys(l||{}).map((function(f){if(f in s.template.prop)return function(){this.prop[f]=l[f]};switch(f){case"margin":return this.setMargin.bind(this,l.margin);case"jsPDF":return function(){return this.opt.jsPDF=l.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,l.pageSize);default:return function(){this.opt[f]=l[f]}}}),this);return this.then((function(){return this.thenList(h)}))},s.prototype.get=function(l,h){return this.then((function(){var f=l in s.template.prop?this.prop[l]:this.opt[l];return h?h(f):f}))},s.prototype.setMargin=function(l){return this.then((function(){switch(a(l)){case"number":l=[l,l,l,l];case"array":if(l.length===2&&(l=[l[0],l[1],l[0],l[1]]),l.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=l})).then(this.setPageSize)},s.prototype.setPageSize=function(l){function h(f,g){return Math.floor(f*g/72*96)}return this.then((function(){(l=l||zt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(l.inner={width:l.width-this.opt.margin[1]-this.opt.margin[3],height:l.height-this.opt.margin[0]-this.opt.margin[2]},l.inner.px={width:h(l.inner.width,l.k),height:h(l.inner.height,l.k)},l.inner.ratio=l.inner.height/l.inner.width),this.prop.pageSize=l}))},s.prototype.setProgress=function(l,h,f,g){return l!=null&&(this.progress.val=l),h!=null&&(this.progress.state=h),f!=null&&(this.progress.n=f),g!=null&&(this.progress.stack=g),this.progress.ratio=this.progress.val/this.progress.state,this},s.prototype.updateProgress=function(l,h,f,g){return this.setProgress(l?this.progress.val+l:null,h||null,f?this.progress.n+f:null,g?this.progress.stack.concat(g):null)},s.prototype.then=function(l,h){var f=this;return this.thenCore(l,h,(function(g,A){return f.updateProgress(null,null,1,[g]),Promise.prototype.then.call(this,(function(N){return f.updateProgress(null,g),N})).then(g,A).then((function(N){return f.updateProgress(1),N}))}))},s.prototype.thenCore=function(l,h,f){f=f||Promise.prototype.then,l&&(l=l.bind(this)),h&&(h=h.bind(this));var g=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:s.convert(Object.assign({},this),Promise.prototype),A=f.call(g,l,h);return s.convert(A,this.__proto__)},s.prototype.thenExternal=function(l,h){return Promise.prototype.then.call(this,l,h)},s.prototype.thenList=function(l){var h=this;return l.forEach((function(f){h=h.thenCore(f)})),h},s.prototype.catch=function(l){l&&(l=l.bind(this));var h=Promise.prototype.catch.call(this,l);return s.convert(h,this)},s.prototype.catchExternal=function(l){return Promise.prototype.catch.call(this,l)},s.prototype.error=function(l){return this.then((function(){throw new Error(l)}))},s.prototype.using=s.prototype.set,s.prototype.saveAs=s.prototype.save,s.prototype.export=s.prototype.output,s.prototype.run=s.prototype.then,zt.getPageSize=function(l,h,f){if(ve(l)==="object"){var g=l;l=g.orientation,h=g.unit||h,f=g.format||f}h=h||"mm",f=f||"a4",l=(""+(l||"P")).toLowerCase();var A,N=(""+f).toLowerCase(),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]};switch(h){case"pt":A=1;break;case"mm":A=72/25.4;break;case"cm":A=72/2.54;break;case"in":A=72;break;case"px":A=.75;break;case"pc":case"em":A=12;break;case"ex":A=6;break;default:throw"Invalid unit: "+h}var p,B=0,F=0;if(S.hasOwnProperty(N))B=S[N][1]/A,F=S[N][0]/A;else try{B=f[1],F=f[0]}catch{throw new Error("Invalid format: "+f)}if(l==="p"||l==="portrait")l="p",F>B&&(p=F,F=B,B=p);else{if(l!=="l"&&l!=="landscape")throw"Invalid orientation: "+l;l="l",B>F&&(p=F,F=B,B=p)}return{width:F,height:B,unit:h,k:A,orientation:l}},i.html=function(l,h){(h=h||{}).callback=h.callback||function(){},h.html2canvas=h.html2canvas||{},h.html2canvas.canvas=h.html2canvas.canvas||this.canvas,h.jsPDF=h.jsPDF||this,h.fontFaces=h.fontFaces?h.fontFaces.map(io):null;var f=new s(h);return h.worker?f:f.from(l).doCallback()}})(zt.API),zt.API.addJS=function(i){return Vo=i,this.internal.events.subscribe("postPutResources",(function(){Ya=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Ya+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Wo=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Vo+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){Ya!==void 0&&Wo!==void 0&&this.internal.out("/Names <</JavaScript "+Ya+" 0 R>>")})),this},(function(i){var e;i.events.push(["postPutResources",function(){var r=this,a=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var c=r.outline.render().split(/\r\n/),s=0;s<c.length;s++){var l=c[s],h=a.exec(l);if(h!=null){var f=h[1];r.internal.newObjectDeferredBegin(f,!1)}r.internal.write(l)}if(this.outline.createNamedDestinations){var g=this.internal.pages.length,A=[];for(s=0;s<g;s++){var N=r.internal.newObject();A.push(N);var S=r.internal.getPageInfo(s+1);r.internal.write("<< /D["+S.objId+" 0 R /XYZ null null null]>> endobj")}var p=r.internal.newObject();for(r.internal.write("<< /Names [ "),s=0;s<A.length;s++)r.internal.write("(page_"+(s+1)+")"+A[s]+" 0 R");r.internal.write(" ] >>","endobj"),e=r.internal.newObject(),r.internal.write("<< /Dests "+p+" 0 R"),r.internal.write(">>","endobj")}}]),i.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+e+" 0 R"))}]),i.events.push(["initialized",function(){var r=this;r.outline={createNamedDestinations:!1,root:{children:[]}},r.outline.add=function(a,c,s){var l={title:c,options:s,children:[]};return a==null&&(a=this.root),a.children.push(l),l},r.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=r,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},r.outline.genIds_r=function(a){a.id=r.internal.newObjectDeferred();for(var c=0;c<a.children.length;c++)this.genIds_r(a.children[c])},r.outline.renderRoot=function(a){this.objStart(a),this.line("/Type /Outlines"),a.children.length>0&&(this.line("/First "+this.makeRef(a.children[0])),this.line("/Last "+this.makeRef(a.children[a.children.length-1]))),this.line("/Count "+this.count_r({count:0},a)),this.objEnd()},r.outline.renderItems=function(a){for(var c=this.ctx.pdf.internal.getVerticalCoordinateString,s=0;s<a.children.length;s++){var l=a.children[s];this.objStart(l),this.line("/Title "+this.makeString(l.title)),this.line("/Parent "+this.makeRef(a)),s>0&&this.line("/Prev "+this.makeRef(a.children[s-1])),s<a.children.length-1&&this.line("/Next "+this.makeRef(a.children[s+1])),l.children.length>0&&(this.line("/First "+this.makeRef(l.children[0])),this.line("/Last "+this.makeRef(l.children[l.children.length-1])));var h=this.count=this.count_r({count:0},l);if(h>0&&this.line("/Count "+h),l.options&&l.options.pageNumber){var f=r.internal.getPageInfo(l.options.pageNumber);this.line("/Dest ["+f.objId+" 0 R /XYZ 0 "+c(0)+" 0]")}this.objEnd()}for(var g=0;g<a.children.length;g++)this.renderItems(a.children[g])},r.outline.line=function(a){this.ctx.val+=a+`\r
|
||
`},r.outline.makeRef=function(a){return a.id+" 0 R"},r.outline.makeString=function(a){return"("+r.internal.pdfEscape(a)+")"},r.outline.objStart=function(a){this.ctx.val+=`\r
|
||
`+a.id+` 0 obj\r
|
||
<<\r
|
||
`},r.outline.objEnd=function(){this.ctx.val+=`>> \r
|
||
endobj\r
|
||
`},r.outline.count_r=function(a,c){for(var s=0;s<c.children.length;s++)a.count++,this.count_r(a,c.children[s]);return a.count}}])})(zt.API),(function(i){var e=[192,193,194,195,196,197,198,199];i.processJPEG=function(r,a,c,s,l,h){var f,g=this.decode.DCT_DECODE,A=null;if(typeof r=="string"||this.__addimage__.isArrayBuffer(r)||this.__addimage__.isArrayBufferView(r)){switch(r=l||r,r=this.__addimage__.isArrayBuffer(r)?new Uint8Array(r):r,(f=(function(N){for(var S,p=256*N.charCodeAt(4)+N.charCodeAt(5),B=N.length,F={width:0,height:0,numcomponents:1},q=4;q<B;q+=2){if(q+=p,e.indexOf(N.charCodeAt(q+1))!==-1){S=256*N.charCodeAt(q+5)+N.charCodeAt(q+6),F={width:256*N.charCodeAt(q+7)+N.charCodeAt(q+8),height:S,numcomponents:N.charCodeAt(q+9)};break}p=256*N.charCodeAt(q+2)+N.charCodeAt(q+3)}return F})(r=this.__addimage__.isArrayBufferView(r)?this.__addimage__.arrayBufferToBinaryString(r):r)).numcomponents){case 1:h=this.color_spaces.DEVICE_GRAY;break;case 4:h=this.color_spaces.DEVICE_CMYK;break;case 3:h=this.color_spaces.DEVICE_RGB}A={data:r,width:f.width,height:f.height,colorSpace:h,bitsPerComponent:8,filter:g,index:a,alias:c}}return A}})(zt.API);var vi,Xa,Go,Jo,Yo,gc=(function(){var i,e,r;function a(s){var l,h,f,g,A,N,S,p,B,F,q,_,E,Z;for(this.data=s,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},N=null;;){switch(l=this.readUInt32(),B=(function(){var ot,dt;for(dt=[],ot=0;ot<4;++ot)dt.push(String.fromCharCode(this.data[this.pos++]));return dt}).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(l);break;case"fcTL":N&&this.animation.frames.push(N),this.pos+=4,N={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},A=this.readUInt16(),g=this.readUInt16()||100,N.delay=1e3*A/g,N.disposeOp=this.data[this.pos++],N.blendOp=this.data[this.pos++],N.data=[];break;case"IDAT":case"fdAT":for(B==="fdAT"&&(this.pos+=4,l-=4),s=(N!=null?N.data:void 0)||this.imgData,_=0;0<=l?_<l:_>l;0<=l?++_:--_)s.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(f=this.palette.length/3,this.transparency.indexed=this.read(l),this.transparency.indexed.length>f)throw new Error("More transparent colors than palette size");if((F=f-this.transparency.indexed.length)>0)for(E=0;0<=F?E<F:E>F;0<=F?++E:--E)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(l)[0];break;case 2:this.transparency.rgb=this.read(l)}break;case"tEXt":S=(q=this.read(l)).indexOf(0),p=String.fromCharCode.apply(String,q.slice(0,S)),this.text[p]=String.fromCharCode.apply(String,q.slice(S+1));break;case"IEND":return N&&this.animation.frames.push(N),this.colors=(function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}).call(this),this.hasAlphaChannel=(Z=this.colorType)===4||Z===6,h=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*h,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+=l}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}a.prototype.read=function(s){var l,h;for(h=[],l=0;0<=s?l<s:l>s;0<=s?++l:--l)h.push(this.data[this.pos++]);return h},a.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},a.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},a.prototype.decodePixels=function(s){var l=this.pixelBitlength/8,h=new Uint8Array(this.width*this.height*l),f=0,g=this;if(s==null&&(s=this.imgData),s.length===0)return new Uint8Array(0);function A(N,S,p,B){var F,q,_,E,Z,ot,dt,Nt,nt,G,vt,bt,k,I,H,R,ut,st,mt,tt,pt,ft=Math.ceil((g.width-N)/p),Mt=Math.ceil((g.height-S)/B),w=g.width==ft&&g.height==Mt;for(I=l*ft,bt=w?h:new Uint8Array(I*Mt),ot=s.length,k=0,q=0;k<Mt&&f<ot;){switch(s[f++]){case 0:for(E=ut=0;ut<I;E=ut+=1)bt[q++]=s[f++];break;case 1:for(E=st=0;st<I;E=st+=1)F=s[f++],Z=E<l?0:bt[q-l],bt[q++]=(F+Z)%256;break;case 2:for(E=mt=0;mt<I;E=mt+=1)F=s[f++],_=(E-E%l)/l,H=k&&bt[(k-1)*I+_*l+E%l],bt[q++]=(H+F)%256;break;case 3:for(E=tt=0;tt<I;E=tt+=1)F=s[f++],_=(E-E%l)/l,Z=E<l?0:bt[q-l],H=k&&bt[(k-1)*I+_*l+E%l],bt[q++]=(F+Math.floor((Z+H)/2))%256;break;case 4:for(E=pt=0;pt<I;E=pt+=1)F=s[f++],_=(E-E%l)/l,Z=E<l?0:bt[q-l],k===0?H=R=0:(H=bt[(k-1)*I+_*l+E%l],R=_&&bt[(k-1)*I+(_-1)*l+E%l]),dt=Z+H-R,Nt=Math.abs(dt-Z),G=Math.abs(dt-H),vt=Math.abs(dt-R),nt=Nt<=G&&Nt<=vt?Z:G<=vt?H:R,bt[q++]=(F+nt)%256;break;default:throw new Error("Invalid filter algorithm: "+s[f-1])}if(!w){var j=((S+k*B)*g.width+N)*l,M=k*I;for(E=0;E<ft;E+=1){for(var W=0;W<l;W+=1)h[j++]=bt[M++];j+=(p-1)*l}}k++}}return s=Ju(s),g.interlaceMethod==1?(A(0,0,8,8),A(4,0,8,8),A(0,4,4,8),A(2,0,4,4),A(0,2,2,4),A(1,0,2,2),A(0,1,1,2)):A(0,0,1,1),h},a.prototype.decodePalette=function(){var s,l,h,f,g,A,N,S,p;for(h=this.palette,A=this.transparency.indexed||[],g=new Uint8Array((A.length||0)+h.length),f=0,s=0,l=N=0,S=h.length;N<S;l=N+=3)g[f++]=h[l],g[f++]=h[l+1],g[f++]=h[l+2],g[f++]=(p=A[s++])!=null?p:255;return g},a.prototype.copyToImageData=function(s,l){var h,f,g,A,N,S,p,B,F,q,_;if(f=this.colors,F=null,h=this.hasAlphaChannel,this.palette.length&&(F=(_=this._decodedPalette)!=null?_:this._decodedPalette=this.decodePalette(),f=4,h=!0),B=(g=s.data||s).length,N=F||l,A=S=0,f===1)for(;A<B;)p=F?4*l[A/4]:S,q=N[p++],g[A++]=q,g[A++]=q,g[A++]=q,g[A++]=h?N[p++]:255,S=p;else for(;A<B;)p=F?4*l[A/4]:S,g[A++]=N[p++],g[A++]=N[p++],g[A++]=N[p++],g[A++]=h?N[p++]:255,S=p},a.prototype.decode=function(){var s;return s=new Uint8Array(this.width*this.height*4),this.copyToImageData(s,this.decodePixels()),s};var c=function(){if(Object.prototype.toString.call(Ut)==="[object Window]"){try{e=Ut.document.createElement("canvas"),r=e.getContext("2d")}catch{return!1}return!0}return!1};return c(),i=function(s){var l;if(c()===!0)return r.width=s.width,r.height=s.height,r.clearRect(0,0,s.width,s.height),r.putImageData(s,0,0),(l=new Image).src=e.toDataURL(),l;throw new Error("This method requires a Browser with Canvas-capability.")},a.prototype.decodeFrames=function(s){var l,h,f,g,A,N,S,p;if(this.animation){for(p=[],h=A=0,N=(S=this.animation.frames).length;A<N;h=++A)l=S[h],f=s.createImageData(l.width,l.height),g=this.decodePixels(new Uint8Array(l.data)),this.copyToImageData(f,g),l.imageData=f,p.push(l.image=i(f));return p}},a.prototype.renderFrame=function(s,l){var h,f,g;return h=(f=this.animation.frames)[l],g=f[l-1],l===0&&s.clearRect(0,0,this.width,this.height),(g!=null?g.disposeOp:void 0)===1?s.clearRect(g.xOffset,g.yOffset,g.width,g.height):(g!=null?g.disposeOp:void 0)===2&&s.putImageData(g.imageData,g.xOffset,g.yOffset),h.blendOp===0&&s.clearRect(h.xOffset,h.yOffset,h.width,h.height),s.drawImage(h.image,h.xOffset,h.yOffset)},a.prototype.animate=function(s){var l,h,f,g,A,N,S=this;return h=0,N=this.animation,g=N.numFrames,f=N.frames,A=N.numPlays,(l=function(){var p,B;if(p=h++%g,B=f[p],S.renderFrame(s,p),g>1&&h/g<A)return S.animation._timeout=setTimeout(l,B.delay)})()},a.prototype.stopAnimation=function(){var s;return clearTimeout((s=this.animation)!=null?s._timeout:void 0)},a.prototype.render=function(s){var l,h;return s._png&&s._png.stopAnimation(),s._png=this,s.width=this.width,s.height=this.height,l=s.getContext("2d"),this.animation?(this.decodeFrames(l),this.animate(l)):(h=l.createImageData(this.width,this.height),this.copyToImageData(h,this.decodePixels()),l.putImageData(h,0,0))},a})();/**
|
||
* @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 mc(i){var e=0;if(i[e++]!==71||i[e++]!==73||i[e++]!==70||i[e++]!==56||(i[e++]+1&253)!=56||i[e++]!==97)throw new Error("Invalid GIF 87a/89a header.");var r=i[e++]|i[e++]<<8,a=i[e++]|i[e++]<<8,c=i[e++],s=c>>7,l=1<<(7&c)+1;i[e++],i[e++];var h=null,f=null;s&&(h=e,f=l,e+=3*l);var g=!0,A=[],N=0,S=null,p=0,B=null;for(this.width=r,this.height=a;g&&e<i.length;)switch(i[e++]){case 33:switch(i[e++]){case 255:if(i[e]!==11||i[e+1]==78&&i[e+2]==69&&i[e+3]==84&&i[e+4]==83&&i[e+5]==67&&i[e+6]==65&&i[e+7]==80&&i[e+8]==69&&i[e+9]==50&&i[e+10]==46&&i[e+11]==48&&i[e+12]==3&&i[e+13]==1&&i[e+16]==0)e+=14,B=i[e++]|i[e++]<<8,e++;else for(e+=12;;){if(!((k=i[e++])>=0))throw Error("Invalid block size");if(k===0)break;e+=k}break;case 249:if(i[e++]!==4||i[e+4]!==0)throw new Error("Invalid graphics extension block.");var F=i[e++];N=i[e++]|i[e++]<<8,S=i[e++],(1&F)==0&&(S=null),p=F>>2&7,e++;break;case 254:for(;;){if(!((k=i[e++])>=0))throw Error("Invalid block size");if(k===0)break;e+=k}break;default:throw new Error("Unknown graphic control label: 0x"+i[e-1].toString(16))}break;case 44:var q=i[e++]|i[e++]<<8,_=i[e++]|i[e++]<<8,E=i[e++]|i[e++]<<8,Z=i[e++]|i[e++]<<8,ot=i[e++],dt=ot>>6&1,Nt=1<<(7&ot)+1,nt=h,G=f,vt=!1;ot>>7&&(vt=!0,nt=e,G=Nt,e+=3*Nt);var bt=e;for(e++;;){var k;if(!((k=i[e++])>=0))throw Error("Invalid block size");if(k===0)break;e+=k}A.push({x:q,y:_,width:E,height:Z,has_local_palette:vt,palette_offset:nt,palette_size:G,data_offset:bt,data_length:e-bt,transparent_index:S,interlaced:!!dt,delay:N,disposal:p});break;case 59:g=!1;break;default:throw new Error("Unknown gif block: 0x"+i[e-1].toString(16))}this.numFrames=function(){return A.length},this.loopCount=function(){return B},this.frameInfo=function(I){if(I<0||I>=A.length)throw new Error("Frame index out of range.");return A[I]},this.decodeAndBlitFrameBGRA=function(I,H){var R=this.frameInfo(I),ut=R.width*R.height,st=new Uint8Array(ut);Xo(i,R.data_offset,st,ut);var mt=R.palette_offset,tt=R.transparent_index;tt===null&&(tt=256);var pt=R.width,ft=r-pt,Mt=pt,w=4*(R.y*r+R.x),j=4*((R.y+R.height)*r+R.x),M=w,W=4*ft;R.interlaced===!0&&(W+=4*r*7);for(var J=8,$=0,et=st.length;$<et;++$){var Q=st[$];if(Mt===0&&(Mt=pt,(M+=W)>=j&&(W=4*ft+4*r*(J-1),M=w+(pt+ft)*(J<<1),J>>=1)),Q===tt)M+=4;else{var At=i[mt+3*Q],Lt=i[mt+3*Q+1],Ot=i[mt+3*Q+2];H[M++]=Ot,H[M++]=Lt,H[M++]=At,H[M++]=255}--Mt}},this.decodeAndBlitFrameRGBA=function(I,H){var R=this.frameInfo(I),ut=R.width*R.height,st=new Uint8Array(ut);Xo(i,R.data_offset,st,ut);var mt=R.palette_offset,tt=R.transparent_index;tt===null&&(tt=256);var pt=R.width,ft=r-pt,Mt=pt,w=4*(R.y*r+R.x),j=4*((R.y+R.height)*r+R.x),M=w,W=4*ft;R.interlaced===!0&&(W+=4*r*7);for(var J=8,$=0,et=st.length;$<et;++$){var Q=st[$];if(Mt===0&&(Mt=pt,(M+=W)>=j&&(W=4*ft+4*r*(J-1),M=w+(pt+ft)*(J<<1),J>>=1)),Q===tt)M+=4;else{var At=i[mt+3*Q],Lt=i[mt+3*Q+1],Ot=i[mt+3*Q+2];H[M++]=At,H[M++]=Lt,H[M++]=Ot,H[M++]=255}--Mt}}}function Xo(i,e,r,a){for(var c=i[e++],s=1<<c,l=s+1,h=l+1,f=c+1,g=(1<<f)-1,A=0,N=0,S=0,p=i[e++],B=new Int32Array(4096),F=null;;){for(;A<16&&p!==0;)N|=i[e++]<<A,A+=8,p===1?p=i[e++]:--p;if(A<f)break;var q=N&g;if(N>>=f,A-=f,q!==s){if(q===l)break;for(var _=q<h?q:F,E=0,Z=_;Z>s;)Z=B[Z]>>8,++E;var ot=Z;if(S+E+(_!==q?1:0)>a)return void me.log("Warning, gif stream longer than expected.");r[S++]=ot;var dt=S+=E;for(_!==q&&(r[S++]=ot),Z=_;E--;)Z=B[Z],r[--dt]=255&Z,Z>>=8;F!==null&&h<4096&&(B[h++]=F<<8|ot,h>=g+1&&f<12&&(++f,g=g<<1|1)),F=q}else h=l+1,g=(1<<(f=c+1))-1,F=null}return S!==a&&me.log("Warning, gif stream shorter than expected."),r}/**
|
||
* @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 Ks(i){var e,r,a,c,s,l=Math.floor,h=new Array(64),f=new Array(64),g=new Array(64),A=new Array(64),N=new Array(65535),S=new Array(65535),p=new Array(64),B=new Array(64),F=[],q=0,_=7,E=new Array(64),Z=new Array(64),ot=new Array(64),dt=new Array(256),Nt=new Array(2048),nt=[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],G=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],vt=[0,1,2,3,4,5,6,7,8,9,10,11],bt=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],k=[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],I=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],H=[0,1,2,3,4,5,6,7,8,9,10,11],R=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],ut=[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 st(w,j){for(var M=0,W=0,J=new Array,$=1;$<=16;$++){for(var et=1;et<=w[$];et++)J[j[W]]=[],J[j[W]][0]=M,J[j[W]][1]=$,W++,M++;M*=2}return J}function mt(w){for(var j=w[0],M=w[1]-1;M>=0;)j&1<<M&&(q|=1<<_),M--,--_<0&&(q==255?(tt(255),tt(0)):tt(q),_=7,q=0)}function tt(w){F.push(w)}function pt(w){tt(w>>8&255),tt(255&w)}function ft(w,j,M,W,J){for(var $,et=J[0],Q=J[240],At=(function(wt,xt){var kt,Pt,qt,Gt,Qt,te,ie,fe,Ht,ee,It=0;for(Ht=0;Ht<8;++Ht){kt=wt[It],Pt=wt[It+1],qt=wt[It+2],Gt=wt[It+3],Qt=wt[It+4],te=wt[It+5],ie=wt[It+6];var Ge=kt+(fe=wt[It+7]),se=kt-fe,Nr=Pt+ie,pe=Pt-ie,we=qt+te,Mr=qt-te,ue=Gt+Qt,xn=Gt-Qt,Ne=Ge+ue,Ar=Ge-ue,Xr=Nr+we,Ae=Nr-we;wt[It]=Ne+Xr,wt[It+4]=Ne-Xr;var Jt=.707106781*(Ae+Ar);wt[It+2]=Ar+Jt,wt[It+6]=Ar-Jt;var ce=.382683433*((Ne=xn+Mr)-(Ae=pe+se)),Sn=.5411961*Ne+ce,He=1.306562965*Ae+ce,qr=.707106781*(Xr=Mr+pe),Dr=se+qr,Tt=se-qr;wt[It+5]=Tt+Sn,wt[It+3]=Tt-Sn,wt[It+1]=Dr+He,wt[It+7]=Dr-He,It+=8}for(It=0,Ht=0;Ht<8;++Ht){kt=wt[It],Pt=wt[It+8],qt=wt[It+16],Gt=wt[It+24],Qt=wt[It+32],te=wt[It+40],ie=wt[It+48];var xr=kt+(fe=wt[It+56]),Rr=kt-fe,rr=Pt+ie,qe=Pt-ie,Oe=qt+te,cr=qt-te,zn=Gt+Qt,Kr=Gt-Qt,Sr=xr+zn,_r=xr-zn,Pr=rr+Oe,Tr=rr-Oe;wt[It]=Sr+Pr,wt[It+32]=Sr-Pr;var pr=.707106781*(Tr+_r);wt[It+16]=_r+pr,wt[It+48]=_r-pr;var zr=.382683433*((Sr=Kr+cr)-(Tr=qe+Rr)),_n=.5411961*Sr+zr,Un=1.306562965*Tr+zr,Hn=.707106781*(Pr=cr+qe),Wn=Rr+Hn,Vn=Rr-Hn;wt[It+40]=Vn+_n,wt[It+24]=Vn-_n,wt[It+8]=Wn+Un,wt[It+56]=Wn-Un,It++}for(Ht=0;Ht<64;++Ht)ee=wt[Ht]*xt[Ht],p[Ht]=ee>0?ee+.5|0:ee-.5|0;return p})(w,j),Lt=0;Lt<64;++Lt)B[nt[Lt]]=At[Lt];var Ot=B[0]-M;M=B[0],Ot==0?mt(W[0]):(mt(W[S[$=32767+Ot]]),mt(N[$]));for(var jt=63;jt>0&&B[jt]==0;)jt--;if(jt==0)return mt(et),M;for(var Wt,at=1;at<=jt;){for(var O=at;B[at]==0&&at<=jt;)++at;var Kt=at-O;if(Kt>=16){Wt=Kt>>4;for(var Et=1;Et<=Wt;++Et)mt(Q);Kt&=15}$=32767+B[at],mt(J[(Kt<<4)+S[$]]),mt(N[$]),at++}return jt!=63&&mt(et),M}function Mt(w){w=Math.min(Math.max(w,1),100),s!=w&&((function(j){for(var M=[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],W=0;W<64;W++){var J=l((M[W]*j+50)/100);J=Math.min(Math.max(J,1),255),h[nt[W]]=J}for(var $=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],et=0;et<64;et++){var Q=l(($[et]*j+50)/100);Q=Math.min(Math.max(Q,1),255),f[nt[et]]=Q}for(var At=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Lt=0,Ot=0;Ot<8;Ot++)for(var jt=0;jt<8;jt++)g[Lt]=1/(h[nt[Lt]]*At[Ot]*At[jt]*8),A[Lt]=1/(f[nt[Lt]]*At[Ot]*At[jt]*8),Lt++})(w<50?Math.floor(5e3/w):Math.floor(200-2*w)),s=w)}this.encode=function(w,j){j&&Mt(j),F=new Array,q=0,_=7,pt(65496),pt(65504),pt(16),tt(74),tt(70),tt(73),tt(70),tt(0),tt(1),tt(1),tt(0),pt(1),pt(1),tt(0),tt(0),(function(){pt(65499),pt(132),tt(0);for(var Pt=0;Pt<64;Pt++)tt(h[Pt]);tt(1);for(var qt=0;qt<64;qt++)tt(f[qt])})(),(function(Pt,qt){pt(65472),pt(17),tt(8),pt(qt),pt(Pt),tt(3),tt(1),tt(17),tt(0),tt(2),tt(17),tt(1),tt(3),tt(17),tt(1)})(w.width,w.height),(function(){pt(65476),pt(418),tt(0);for(var Pt=0;Pt<16;Pt++)tt(G[Pt+1]);for(var qt=0;qt<=11;qt++)tt(vt[qt]);tt(16);for(var Gt=0;Gt<16;Gt++)tt(bt[Gt+1]);for(var Qt=0;Qt<=161;Qt++)tt(k[Qt]);tt(1);for(var te=0;te<16;te++)tt(I[te+1]);for(var ie=0;ie<=11;ie++)tt(H[ie]);tt(17);for(var fe=0;fe<16;fe++)tt(R[fe+1]);for(var Ht=0;Ht<=161;Ht++)tt(ut[Ht])})(),pt(65498),pt(12),tt(3),tt(1),tt(0),tt(2),tt(17),tt(3),tt(17),tt(0),tt(63),tt(0);var M=0,W=0,J=0;q=0,_=7,this.encode.displayName="_encode_";for(var $,et,Q,At,Lt,Ot,jt,Wt,at,O=w.data,Kt=w.width,Et=w.height,wt=4*Kt,xt=0;xt<Et;){for($=0;$<wt;){for(Lt=wt*xt+$,jt=-1,Wt=0,at=0;at<64;at++)Ot=Lt+(Wt=at>>3)*wt+(jt=4*(7&at)),xt+Wt>=Et&&(Ot-=wt*(xt+1+Wt-Et)),$+jt>=wt&&(Ot-=$+jt-wt+4),et=O[Ot++],Q=O[Ot++],At=O[Ot++],E[at]=(Nt[et]+Nt[Q+256>>0]+Nt[At+512>>0]>>16)-128,Z[at]=(Nt[et+768>>0]+Nt[Q+1024>>0]+Nt[At+1280>>0]>>16)-128,ot[at]=(Nt[et+1280>>0]+Nt[Q+1536>>0]+Nt[At+1792>>0]>>16)-128;M=ft(E,g,M,e,a),W=ft(Z,A,W,r,c),J=ft(ot,A,J,r,c),$+=32}xt+=8}if(_>=0){var kt=[];kt[1]=_+1,kt[0]=(1<<_+1)-1,mt(kt)}return pt(65497),new Uint8Array(F)},i=i||50,(function(){for(var w=String.fromCharCode,j=0;j<256;j++)dt[j]=w(j)})(),e=st(G,vt),r=st(I,H),a=st(bt,k),c=st(R,ut),(function(){for(var w=1,j=2,M=1;M<=15;M++){for(var W=w;W<j;W++)S[32767+W]=M,N[32767+W]=[],N[32767+W][1]=M,N[32767+W][0]=W;for(var J=-(j-1);J<=-w;J++)S[32767+J]=M,N[32767+J]=[],N[32767+J][1]=M,N[32767+J][0]=j-1+J;w<<=1,j<<=1}})(),(function(){for(var w=0;w<256;w++)Nt[w]=19595*w,Nt[w+256>>0]=38470*w,Nt[w+512>>0]=7471*w+32768,Nt[w+768>>0]=-11059*w,Nt[w+1024>>0]=-21709*w,Nt[w+1280>>0]=32768*w+8421375,Nt[w+1536>>0]=-27439*w,Nt[w+1792>>0]=-5329*w})(),Mt(i)}/**
|
||
* @license
|
||
* Copyright (c) 2017 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/function Or(i,e){if(this.pos=0,this.buffer=i,this.datav=new DataView(i.buffer),this.is_with_alpha=!!e,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 Ko(i){function e(G){if(!G)throw Error("assert :P")}function r(G,vt,bt){for(var k=0;4>k;k++)if(G[vt+k]!=bt.charCodeAt(k))return!0;return!1}function a(G,vt,bt,k,I){for(var H=0;H<I;H++)G[vt+H]=bt[k+H]}function c(G,vt,bt,k){for(var I=0;I<k;I++)G[vt+I]=bt}function s(G){return new Int32Array(G)}function l(G,vt){for(var bt=[],k=0;k<G;k++)bt.push(new vt);return bt}function h(G,vt){var bt=[];return(function k(I,H,R){for(var ut=R[H],st=0;st<ut&&(I.push(R.length>H+1?[]:new vt),!(R.length<H+1));st++)k(I[st],H+1,R)})(bt,0,G),bt}var f=function(){var G=this;function vt(t,n){for(var u=1<<n-1>>>0;t&u;)u>>>=1;return u?(t&u-1)+u:t}function bt(t,n,u,d,m){e(!(d%u));do t[n+(d-=u)]=m;while(0<d)}function k(t,n,u,d,m){if(e(2328>=m),512>=m)var b=s(512);else if((b=s(m))==null)return 0;return(function(y,L,x,P,T,X){var K,V,ht=L,rt=1<<x,z=s(16),U=s(16);for(e(T!=0),e(P!=null),e(y!=null),e(0<x),V=0;V<T;++V){if(15<P[V])return 0;++z[P[V]]}if(z[0]==T)return 0;for(U[1]=0,K=1;15>K;++K){if(z[K]>1<<K)return 0;U[K+1]=U[K]+z[K]}for(V=0;V<T;++V)K=P[V],0<P[V]&&(X[U[K]++]=V);if(U[15]==1)return(P=new I).g=0,P.value=X[0],bt(y,ht,1,rt,P),rt;var ct,gt=-1,lt=rt-1,Ct=0,St=1,Rt=1,_t=1<<x;for(V=0,K=1,T=2;K<=x;++K,T<<=1){if(St+=Rt<<=1,0>(Rt-=z[K]))return 0;for(;0<z[K];--z[K])(P=new I).g=K,P.value=X[V++],bt(y,ht+Ct,T,_t,P),Ct=vt(Ct,K)}for(K=x+1,T=2;15>=K;++K,T<<=1){if(St+=Rt<<=1,0>(Rt-=z[K]))return 0;for(;0<z[K];--z[K]){if(P=new I,(Ct<)!=gt){for(ht+=_t,ct=1<<(gt=K)-x;15>gt&&!(0>=(ct-=z[gt]));)++gt,ct<<=1;rt+=_t=1<<(ct=gt-x),y[L+(gt=Ct<)].g=ct+x,y[L+gt].value=ht-L-gt}P.g=K-x,P.value=X[V++],bt(y,ht+(Ct>>x),T,_t,P),Ct=vt(Ct,K)}}return St!=2*U[15]-1?0:rt})(t,n,u,d,m,b)}function I(){this.value=this.g=0}function H(){this.value=this.g=0}function R(){this.G=l(5,I),this.H=s(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=l(We,H)}function ut(t,n,u,d){e(t!=null),e(n!=null),e(2147483648>d),t.Ca=254,t.I=0,t.b=-8,t.Ka=0,t.oa=n,t.pa=u,t.Jd=n,t.Yc=u+d,t.Zc=4<=d?u+d-4+1:u,$(t)}function st(t,n){for(var u=0;0<n--;)u|=Q(t,128)<<n;return u}function mt(t,n){var u=st(t,n);return et(t)?-u:u}function tt(t,n,u,d){var m,b=0;for(e(t!=null),e(n!=null),e(4294967288>d),t.Sb=d,t.Ra=0,t.u=0,t.h=0,4<d&&(d=4),m=0;m<d;++m)b+=n[u+m]<<8*m;t.Ra=b,t.bb=d,t.oa=n,t.pa=u}function pt(t){for(;8<=t.u&&t.bb<t.Sb;)t.Ra>>>=8,t.Ra+=t.oa[t.pa+t.bb]<<si-8>>>0,++t.bb,t.u-=8;M(t)&&(t.h=1,t.u=0)}function ft(t,n){if(e(0<=n),!t.h&&n<=ai){var u=j(t)&ii[n];return t.u+=n,pt(t),u}return t.h=1,t.u=0}function Mt(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function w(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function j(t){return t.Ra>>>(t.u&si-1)>>>0}function M(t){return e(t.bb<=t.Sb),t.h||t.bb==t.Sb&&t.u>si}function W(t,n){t.u=n,t.h=M(t)}function J(t){t.u>=Hi&&(e(t.u>=Hi),pt(t))}function $(t){e(t!=null&&t.oa!=null),t.pa<t.Zc?(t.I=(t.oa[t.pa++]|t.I<<8)>>>0,t.b+=8):(e(t!=null&&t.oa!=null),t.pa<t.Yc?(t.b+=8,t.I=t.oa[t.pa++]|t.I<<8):t.Ka?t.b=0:(t.I<<=8,t.b+=8,t.Ka=1))}function et(t){return st(t,1)}function Q(t,n){var u=t.Ca;0>t.b&&$(t);var d=t.b,m=u*n>>>8,b=(t.I>>>d>m)+0;for(b?(u-=m,t.I-=m+1<<d>>>0):u=m+1,d=u,m=0;256<=d;)m+=8,d>>=8;return d=7^m+ir[d],t.b-=d,t.Ca=(u<<d)-1,b}function At(t,n,u){t[n+0]=u>>24&255,t[n+1]=u>>16&255,t[n+2]=u>>8&255,t[n+3]=u>>0&255}function Lt(t,n){return t[n+0]<<0|t[n+1]<<8}function Ot(t,n){return Lt(t,n)|t[n+2]<<16}function jt(t,n){return Lt(t,n)|Lt(t,n+2)<<16}function Wt(t,n){var u=1<<n;return e(t!=null),e(0<n),t.X=s(u),t.X==null?0:(t.Mb=32-n,t.Xa=n,1)}function at(t,n){e(t!=null),e(n!=null),e(t.Xa==n.Xa),a(n.X,0,t.X,0,1<<n.Xa)}function O(){this.X=[],this.Xa=this.Mb=0}function Kt(t,n,u,d){e(u!=null),e(d!=null);var m=u[0],b=d[0];return m==0&&(m=(t*b+n/2)/n),b==0&&(b=(n*m+t/2)/t),0>=m||0>=b?0:(u[0]=m,d[0]=b,1)}function Et(t,n){return t+(1<<n)-1>>>n}function wt(t,n){return((4278255360&t)+(4278255360&n)>>>0&4278255360)+((16711935&t)+(16711935&n)>>>0&16711935)>>>0}function xt(t,n){G[n]=function(u,d,m,b,y,L,x){var P;for(P=0;P<y;++P){var T=G[t](L[x+P-1],m,b+P);L[x+P]=wt(u[d+P],T)}}}function kt(){this.ud=this.hd=this.jd=0}function Pt(t,n){return((4278124286&(t^n))>>>1)+(t&n)>>>0}function qt(t){return 0<=t&&256>t?t:0>t?0:255<t?255:void 0}function Gt(t,n){return qt(t+(t-n+.5>>1))}function Qt(t,n,u){return Math.abs(n-u)-Math.abs(t-u)}function te(t,n,u,d,m,b,y){for(d=b[y-1],u=0;u<m;++u)b[y+u]=d=wt(t[n+u],d)}function ie(t,n,u,d,m){var b;for(b=0;b<u;++b){var y=t[n+b],L=y>>8&255,x=16711935&(x=(x=16711935&y)+((L<<16)+L));d[m+b]=(4278255360&y)+x>>>0}}function fe(t,n){n.jd=t>>0&255,n.hd=t>>8&255,n.ud=t>>16&255}function Ht(t,n,u,d,m,b){var y;for(y=0;y<d;++y){var L=n[u+y],x=L>>>8,P=L,T=255&(T=(T=L>>>16)+((t.jd<<24>>24)*(x<<24>>24)>>>5));P=255&(P=(P=P+((t.hd<<24>>24)*(x<<24>>24)>>>5))+((t.ud<<24>>24)*(T<<24>>24)>>>5)),m[b+y]=(4278255360&L)+(T<<16)+P}}function ee(t,n,u,d,m){G[n]=function(b,y,L,x,P,T,X,K,V){for(x=X;x<K;++x)for(X=0;X<V;++X)P[T++]=m(L[d(b[y++])])},G[t]=function(b,y,L,x,P,T,X){var K=8>>b.b,V=b.Ea,ht=b.K[0],rt=b.w;if(8>K)for(b=(1<<b.b)-1,rt=(1<<K)-1;y<L;++y){var z,U=0;for(z=0;z<V;++z)z&b||(U=d(x[P++])),T[X++]=m(ht[U&rt]),U>>=K}else G["VP8LMapColor"+u](x,P,ht,rt,T,X,y,L,V)}}function It(t,n,u,d,m){for(u=n+u;n<u;){var b=t[n++];d[m++]=b>>16&255,d[m++]=b>>8&255,d[m++]=b>>0&255}}function Ge(t,n,u,d,m){for(u=n+u;n<u;){var b=t[n++];d[m++]=b>>16&255,d[m++]=b>>8&255,d[m++]=b>>0&255,d[m++]=b>>24&255}}function se(t,n,u,d,m){for(u=n+u;n<u;){var b=(y=t[n++])>>16&240|y>>12&15,y=y>>0&240|y>>28&15;d[m++]=b,d[m++]=y}}function Nr(t,n,u,d,m){for(u=n+u;n<u;){var b=(y=t[n++])>>16&248|y>>13&7,y=y>>5&224|y>>3&31;d[m++]=b,d[m++]=y}}function pe(t,n,u,d,m){for(u=n+u;n<u;){var b=t[n++];d[m++]=b>>0&255,d[m++]=b>>8&255,d[m++]=b>>16&255}}function we(t,n,u,d,m,b){if(b==0)for(u=n+u;n<u;)At(d,((b=t[n++])[0]>>24|b[1]>>8&65280|b[2]<<8&16711680|b[3]<<24)>>>0),m+=32;else a(d,m,t,n,u)}function Mr(t,n){G[n][0]=G[t+"0"],G[n][1]=G[t+"1"],G[n][2]=G[t+"2"],G[n][3]=G[t+"3"],G[n][4]=G[t+"4"],G[n][5]=G[t+"5"],G[n][6]=G[t+"6"],G[n][7]=G[t+"7"],G[n][8]=G[t+"8"],G[n][9]=G[t+"9"],G[n][10]=G[t+"10"],G[n][11]=G[t+"11"],G[n][12]=G[t+"12"],G[n][13]=G[t+"13"],G[n][14]=G[t+"0"],G[n][15]=G[t+"0"]}function ue(t){return t==Fs||t==Cs||t==ja||t==js}function xn(){this.eb=[],this.size=this.A=this.fb=0}function Ne(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function Ar(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new xn,this.f.kb=new Ne,this.sd=null}function Xr(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Ae(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function Jt(t){return alert("todo:WebPSamplerProcessPlane"),t.T}function ce(t,n){var u=t.T,d=n.ba.f.RGBA,m=d.eb,b=d.fb+t.ka*d.A,y=wr[n.ba.S],L=t.y,x=t.O,P=t.f,T=t.N,X=t.ea,K=t.W,V=n.cc,ht=n.dc,rt=n.Mc,z=n.Nc,U=t.ka,ct=t.ka+t.T,gt=t.U,lt=gt+1>>1;for(U==0?y(L,x,null,null,P,T,X,K,P,T,X,K,m,b,null,null,gt):(y(n.ec,n.fc,L,x,V,ht,rt,z,P,T,X,K,m,b-d.A,m,b,gt),++u);U+2<ct;U+=2)V=P,ht=T,rt=X,z=K,T+=t.Rc,K+=t.Rc,b+=2*d.A,y(L,(x+=2*t.fa)-t.fa,L,x,V,ht,rt,z,P,T,X,K,m,b-d.A,m,b,gt);return x+=t.fa,t.j+ct<t.o?(a(n.ec,n.fc,L,x,gt),a(n.cc,n.dc,P,T,lt),a(n.Mc,n.Nc,X,K,lt),u--):1&ct||y(L,x,null,null,P,T,X,K,P,T,X,K,m,b+d.A,null,null,gt),u}function Sn(t,n,u){var d=t.F,m=[t.J];if(d!=null){var b=t.U,y=n.ba.S,L=y==Ca||y==ja;n=n.ba.f.RGBA;var x=[0],P=t.ka;x[0]=t.T,t.Kb&&(P==0?--x[0]:(--P,m[0]-=t.width),t.j+t.ka+t.T==t.o&&(x[0]=t.o-t.j-P));var T=n.eb;P=n.fb+P*n.A,t=ye(d,m[0],t.width,b,x,T,P+(L?0:3),n.A),e(u==x),t&&ue(y)&&br(T,P,L,b,x,n.A)}return 0}function He(t){var n=t.ma,u=n.ba.S,d=11>u,m=u==Ia||u==Fa||u==Ca||u==Is||u==12||ue(u);if(n.memory=null,n.Ib=null,n.Jb=null,n.Nd=null,!zi(n.Oa,t,m?11:12))return 0;if(m&&ue(u)&&yt(),t.da)alert("todo:use_scaling");else{if(d){if(n.Ib=Jt,t.Kb){if(u=t.U+1>>1,n.memory=s(t.U+2*u),n.memory==null)return 0;n.ec=n.memory,n.fc=0,n.cc=n.ec,n.dc=n.fc+t.U,n.Mc=n.cc,n.Nc=n.dc+u,n.Ib=ce,yt()}}else alert("todo:EmitYUV");m&&(n.Jb=Sn,d&&Y())}if(d&&!mo){for(t=0;256>t;++t)ku[t]=89858*(t-128)+Ba>>Oa,Cu[t]=-22014*(t-128)+Ba,Fu[t]=-45773*(t-128),Iu[t]=113618*(t-128)+Ba>>Oa;for(t=Ki;t<Es;++t)n=76283*(t-16)+Ba>>Oa,ju[t-Ki]=lr(n,255),Ou[t-Ki]=lr(n+8>>4,15);mo=1}return 1}function qr(t){var n=t.ma,u=t.U,d=t.T;return e(!(1&t.ka)),0>=u||0>=d?0:(u=n.Ib(t,n),n.Jb!=null&&n.Jb(t,n,u),n.Dc+=u,1)}function Dr(t){t.ma.memory=null}function Tt(t,n,u,d){return ft(t,8)!=47?0:(n[0]=ft(t,14)+1,u[0]=ft(t,14)+1,d[0]=ft(t,1),ft(t,3)!=0?0:!t.h)}function xr(t,n){if(4>t)return t+1;var u=t-2>>1;return(2+(1&t)<<u)+ft(n,u)+1}function Rr(t,n){return 120<n?n-120:1<=(u=((u=pu[n-1])>>4)*t+(8-(15&u)))?u:1;var u}function rr(t,n,u){var d=j(u),m=t[n+=255&d].g-8;return 0<m&&(W(u,u.u+8),d=j(u),n+=t[n].value,n+=d&(1<<m)-1),W(u,u.u+t[n].g),t[n].value}function qe(t,n,u){return u.g+=t.g,u.value+=t.value<<n>>>0,e(8>=u.g),t.g}function Oe(t,n,u){var d=t.xc;return e((n=d==0?0:t.vc[t.md*(u>>d)+(n>>d)])<t.Wb),t.Ya[n]}function cr(t,n,u,d){var m=t.ab,b=t.c*n,y=t.C;n=y+n;var L=u,x=d;for(d=t.Ta,u=t.Ua;0<m--;){var P=t.gc[m],T=y,X=n,K=L,V=x,ht=(x=d,L=u,P.Ea);switch(e(T<X),e(X<=P.nc),P.hc){case 2:Na(K,V,(X-T)*ht,x,L);break;case 0:var rt=T,z=X,U=x,ct=L,gt=(_t=P).Ea;rt==0&&(Ps(K,V,null,null,1,U,ct),te(K,V+1,0,0,gt-1,U,ct+1),V+=gt,ct+=gt,++rt);for(var lt=1<<_t.b,Ct=lt-1,St=Et(gt,_t.b),Rt=_t.K,_t=_t.w+(rt>>_t.b)*St;rt<z;){var oe=Rt,le=_t,ae=1;for(Wi(K,V,U,ct-gt,1,U,ct);ae<gt;){var re=(ae&~Ct)+lt;re>gt&&(re=gt),(0,ln[oe[le++]>>8&15])(K,V+ +ae,U,ct+ae-gt,re-ae,U,ct+ae),ae=re}V+=gt,ct+=gt,++rt&Ct||(_t+=St)}X!=P.nc&&a(x,L-ht,x,L+(X-T-1)*ht,ht);break;case 1:for(ht=K,z=V,gt=(K=P.Ea)-(ct=K&~(U=(V=1<<P.b)-1)),rt=Et(K,P.b),lt=P.K,P=P.w+(T>>P.b)*rt;T<X;){for(Ct=lt,St=P,Rt=new kt,_t=z+ct,oe=z+K;z<_t;)fe(Ct[St++],Rt),Cn(Rt,ht,z,V,x,L),z+=V,L+=V;z<oe&&(fe(Ct[St++],Rt),Cn(Rt,ht,z,gt,x,L),z+=gt,L+=gt),++T&U||(P+=rt)}break;case 3:if(K==x&&V==L&&0<P.b){for(z=x,K=ht=L+(X-T)*ht-(ct=(X-T)*Et(P.Ea,P.b)),V=x,U=L,rt=[],ct=(gt=ct)-1;0<=ct;--ct)rt[ct]=V[U+ct];for(ct=gt-1;0<=ct;--ct)z[K+ct]=rt[ct];gr(P,T,X,x,ht,x,L)}else gr(P,T,X,K,V,x,L)}L=d,x=u}x!=u&&a(d,u,L,x,b)}function zn(t,n){var u=t.V,d=t.Ba+t.c*t.C,m=n-t.C;if(e(n<=t.l.o),e(16>=m),0<m){var b=t.l,y=t.Ta,L=t.Ua,x=b.width;if(cr(t,m,u,d),m=L=[L],e((u=t.C)<(d=n)),e(b.v<b.va),d>b.o&&(d=b.o),u<b.j){var P=b.j-u;u=b.j,m[0]+=P*x}if(u>=d?u=0:(m[0]+=4*b.v,b.ka=u-b.j,b.U=b.va-b.v,b.T=d-u,u=1),u){if(L=L[0],11>(u=t.ca).S){var T=u.f.RGBA,X=(d=u.S,m=b.U,b=b.T,P=T.eb,T.A),K=b;for(T=T.fb+t.Ma*T.A;0<K--;){var V=y,ht=L,rt=m,z=P,U=T;switch(d){case ka:ar(V,ht,rt,z,U);break;case Ia:Qe(V,ht,rt,z,U);break;case Fs:Qe(V,ht,rt,z,U),br(z,U,0,rt,1,0);break;case so:tn(V,ht,rt,z,U);break;case Fa:we(V,ht,rt,z,U,1);break;case Cs:we(V,ht,rt,z,U,1),br(z,U,0,rt,1,0);break;case Ca:we(V,ht,rt,z,U,0);break;case ja:we(V,ht,rt,z,U,0),br(z,U,1,rt,1,0);break;case Is:hn(V,ht,rt,z,U);break;case js:hn(V,ht,rt,z,U),be(z,U,rt,1,0);break;case oo:Qr(V,ht,rt,z,U);break;default:e(0)}L+=x,T+=X}t.Ma+=b}else alert("todo:EmitRescaledRowsYUVA");e(t.Ma<=u.height)}}t.C=n,e(t.C<=t.i)}function Kr(t){var n;if(0<t.ua)return 0;for(n=0;n<t.Wb;++n){var u=t.Ya[n].G,d=t.Ya[n].H;if(0<u[1][d[1]+0].g||0<u[2][d[2]+0].g||0<u[3][d[3]+0].g)return 0}return 1}function Sr(t,n,u,d,m,b){if(t.Z!=0){var y=t.qd,L=t.rd;for(e(gn[t.Z]!=null);n<u;++n)gn[t.Z](y,L,d,m,d,m,b),y=d,L=m,m+=b;t.qd=y,t.rd=L}}function _r(t,n){var u=t.l.ma,d=u.Z==0||u.Z==1?t.l.j:t.C;if(d=t.C<d?d:t.C,e(n<=t.l.o),n>d){var m=t.l.width,b=u.ca,y=u.tb+m*d,L=t.V,x=t.Ba+t.c*d,P=t.gc;e(t.ab==1),e(P[0].hc==3),Aa(P[0],d,n,L,x,b,y),Sr(u,d,n,b,y,m)}t.C=t.Ma=n}function Pr(t,n,u,d,m,b,y){var L=t.$/d,x=t.$%d,P=t.m,T=t.s,X=u+t.$,K=X;m=u+d*m;var V=u+d*b,ht=280+T.ua,rt=t.Pb?L:16777216,z=0<T.ua?T.Wa:null,U=T.wc,ct=X<V?Oe(T,x,L):null;e(t.C<b),e(V<=m);var gt=!1;t:for(;;){for(;gt||X<V;){var lt=0;if(L>=rt){var Ct=X-u;e((rt=t).Pb),rt.wd=rt.m,rt.xd=Ct,0<rt.s.ua&&at(rt.s.Wa,rt.s.vb),rt=L+mu}if(x&U||(ct=Oe(T,x,L)),e(ct!=null),ct.Qb&&(n[X]=ct.qb,gt=!0),!gt)if(J(P),ct.jc){lt=P,Ct=n;var St=X,Rt=ct.pd[j(lt)&We-1];e(ct.jc),256>Rt.g?(W(lt,lt.u+Rt.g),Ct[St]=Rt.value,lt=0):(W(lt,lt.u+Rt.g-256),e(256<=Rt.value),lt=Rt.value),lt==0&&(gt=!0)}else lt=rr(ct.G[0],ct.H[0],P);if(P.h)break;if(gt||256>lt){if(!gt)if(ct.nd)n[X]=(ct.qb|lt<<8)>>>0;else{if(J(P),gt=rr(ct.G[1],ct.H[1],P),J(P),Ct=rr(ct.G[2],ct.H[2],P),St=rr(ct.G[3],ct.H[3],P),P.h)break;n[X]=(St<<24|gt<<16|lt<<8|Ct)>>>0}if(gt=!1,++X,++x>=d&&(x=0,++L,y!=null&&L<=b&&!(L%16)&&y(t,L),z!=null))for(;K<X;)lt=n[K++],z.X[(506832829*lt&4294967295)>>>z.Mb]=lt}else if(280>lt){if(lt=xr(lt-256,P),Ct=rr(ct.G[4],ct.H[4],P),J(P),Ct=Rr(d,Ct=xr(Ct,P)),P.h)break;if(X-u<Ct||m-X<lt)break t;for(St=0;St<lt;++St)n[X+St]=n[X+St-Ct];for(X+=lt,x+=lt;x>=d;)x-=d,++L,y!=null&&L<=b&&!(L%16)&&y(t,L);if(e(X<=m),x&U&&(ct=Oe(T,x,L)),z!=null)for(;K<X;)lt=n[K++],z.X[(506832829*lt&4294967295)>>>z.Mb]=lt}else{if(!(lt<ht))break t;for(gt=lt-280,e(z!=null);K<X;)lt=n[K++],z.X[(506832829*lt&4294967295)>>>z.Mb]=lt;lt=X,e(!(gt>>>(Ct=z).Xa)),n[lt]=Ct.X[gt],gt=!0}gt||e(P.h==M(P))}if(t.Pb&&P.h&&X<m)e(t.m.h),t.a=5,t.m=t.wd,t.$=t.xd,0<t.s.ua&&at(t.s.vb,t.s.Wa);else{if(P.h)break t;y!=null&&y(t,L>b?b:L),t.a=0,t.$=X-u}return 1}return t.a=3,0}function Tr(t){e(t!=null),t.vc=null,t.yc=null,t.Ya=null;var n=t.Wa;n!=null&&(n.X=null),t.vb=null,e(t!=null)}function pr(){var t=new _s;return t==null?null:(t.a=0,t.xb=lo,Mr("Predictor","VP8LPredictors"),Mr("Predictor","VP8LPredictors_C"),Mr("PredictorAdd","VP8LPredictorsAdd"),Mr("PredictorAdd","VP8LPredictorsAdd_C"),Na=ie,Cn=Ht,ar=It,Qe=Ge,hn=se,Qr=Nr,tn=pe,G.VP8LMapColor32b=oi,G.VP8LMapColor8b=xa,t)}function zr(t,n,u,d,m){var b=1,y=[t],L=[n],x=d.m,P=d.s,T=null,X=0;t:for(;;){if(u)for(;b&&ft(x,1);){var K=y,V=L,ht=d,rt=1,z=ht.m,U=ht.gc[ht.ab],ct=ft(z,2);if(ht.Oc&1<<ct)b=0;else{switch(ht.Oc|=1<<ct,U.hc=ct,U.Ea=K[0],U.nc=V[0],U.K=[null],++ht.ab,e(4>=ht.ab),ct){case 0:case 1:U.b=ft(z,3)+2,rt=zr(Et(U.Ea,U.b),Et(U.nc,U.b),0,ht,U.K),U.K=U.K[0];break;case 3:var gt,lt=ft(z,8)+1,Ct=16<lt?0:4<lt?1:2<lt?2:3;if(K[0]=Et(U.Ea,Ct),U.b=Ct,gt=rt=zr(lt,1,0,ht,U.K)){var St,Rt=lt,_t=U,oe=1<<(8>>_t.b),le=s(oe);if(le==null)gt=0;else{var ae=_t.K[0],re=_t.w;for(le[0]=_t.K[0][0],St=1;St<1*Rt;++St)le[St]=wt(ae[re+St],le[St-1]);for(;St<4*oe;++St)le[St]=0;_t.K[0]=null,_t.K[0]=le,gt=1}}rt=gt;break;case 2:break;default:e(0)}b=rt}}if(y=y[0],L=L[0],b&&ft(x,1)&&!(b=1<=(X=ft(x,4))&&11>=X)){d.a=3;break t}var ge;if(ge=b)e:{var de,$t,Ee,sr=d,Me=y,or=L,he=X,fr=u,dr=sr.m,Te=sr.s,Ve=[null],er=1,Lr=0,Vr=gu[he];r:for(;;){if(fr&&ft(dr,1)){var ze=ft(dr,3)+2,an=Et(Me,ze),Mn=Et(or,ze),fi=an*Mn;if(!zr(an,Mn,0,sr,Ve))break r;for(Ve=Ve[0],Te.xc=ze,de=0;de<fi;++de){var mn=Ve[de]>>8&65535;Ve[de]=mn,mn>=er&&(er=mn+1)}}if(dr.h)break r;for($t=0;5>$t;++$t){var Se=uo[$t];!$t&&0<he&&(Se+=1<<he),Lr<Se&&(Lr=Se)}var Ms=l(er*Vr,I),yo=er,wo=l(yo,R);if(wo==null)var Ma=null;else e(65536>=yo),Ma=wo;var Zi=s(Lr);if(Ma==null||Zi==null||Ms==null){sr.a=1;break r}var qa=Ms;for(de=Ee=0;de<er;++de){var jr=Ma[de],di=jr.G,pi=jr.H,Lo=0,Da=1,No=0;for($t=0;5>$t;++$t){Se=uo[$t],di[$t]=qa,pi[$t]=Ee,!$t&&0<he&&(Se+=1<<he);i:{var Ra,qs=Se,Ta=sr,$i=Zi,Mu=qa,qu=Ee,Ds=0,vn=Ta.m,Du=ft(vn,1);if(c($i,0,0,qs),Du){var Ru=ft(vn,1)+1,Tu=ft(vn,1),Ao=ft(vn,Tu==0?1:8);$i[Ao]=1,Ru==2&&($i[Ao=ft(vn,8)]=1);var za=1}else{var xo=s(19),So=ft(vn,4)+4;if(19<So){Ta.a=3;var Ua=0;break i}for(Ra=0;Ra<So;++Ra)xo[du[Ra]]=ft(vn,3);var Rs=void 0,Qi=void 0,_o=Ta,zu=xo,Ha=qs,Po=$i,Ts=0,bn=_o.m,ko=8,Io=l(128,I);n:for(;k(Io,0,7,zu,19);){if(ft(bn,1)){var Uu=2+2*ft(bn,3);if((Rs=2+ft(bn,Uu))>Ha)break n}else Rs=Ha;for(Qi=0;Qi<Ha&&Rs--;){J(bn);var Fo=Io[0+(127&j(bn))];W(bn,bn.u+Fo.g);var gi=Fo.value;if(16>gi)Po[Qi++]=gi,gi!=0&&(ko=gi);else{var Hu=gi==16,Co=gi-16,Wu=hu[Co],jo=ft(bn,lu[Co])+Wu;if(Qi+jo>Ha)break n;for(var Vu=Hu?ko:0;0<jo--;)Po[Qi++]=Vu}}Ts=1;break n}Ts||(_o.a=3),za=Ts}(za=za&&!vn.h)&&(Ds=k(Mu,qu,8,$i,qs)),za&&Ds!=0?Ua=Ds:(Ta.a=3,Ua=0)}if(Ua==0)break r;if(Da&&fu[$t]==1&&(Da=qa[Ee].g==0),Lo+=qa[Ee].g,Ee+=Ua,3>=$t){var ta,zs=Zi[0];for(ta=1;ta<Se;++ta)Zi[ta]>zs&&(zs=Zi[ta]);No+=zs}}if(jr.nd=Da,jr.Qb=0,Da&&(jr.qb=(di[3][pi[3]+0].value<<24|di[1][pi[1]+0].value<<16|di[2][pi[2]+0].value)>>>0,Lo==0&&256>di[0][pi[0]+0].value&&(jr.Qb=1,jr.qb+=di[0][pi[0]+0].value<<8)),jr.jc=!jr.Qb&&6>No,jr.jc){var Wa,sn=jr;for(Wa=0;Wa<We;++Wa){var yn=Wa,wn=sn.pd[yn],Va=sn.G[0][sn.H[0]+yn];256<=Va.value?(wn.g=Va.g+256,wn.value=Va.value):(wn.g=0,wn.value=0,yn>>=qe(Va,8,wn),yn>>=qe(sn.G[1][sn.H[1]+yn],16,wn),yn>>=qe(sn.G[2][sn.H[2]+yn],0,wn),qe(sn.G[3][sn.H[3]+yn],24,wn))}}}Te.vc=Ve,Te.Wb=er,Te.Ya=Ma,Te.yc=Ms,ge=1;break e}ge=0}if(!(b=ge)){d.a=3;break t}if(0<X){if(P.ua=1<<X,!Wt(P.Wa,X)){d.a=1,b=0;break t}}else P.ua=0;var Us=d,Oo=y,Gu=L,Hs=Us.s,Ws=Hs.xc;if(Us.c=Oo,Us.i=Gu,Hs.md=Et(Oo,Ws),Hs.wc=Ws==0?-1:(1<<Ws)-1,u){d.xb=Au;break t}if((T=s(y*L))==null){d.a=1,b=0;break t}b=(b=Pr(d,T,0,y,L,L,null))&&!x.h;break t}return b?(m!=null?m[0]=T:(e(T==null),e(u)),d.$=0,u||Tr(P)):Tr(P),b}function _n(t,n){var u=t.c*t.i,d=u+n+16*n;return e(t.c<=n),t.V=s(d),t.V==null?(t.Ta=null,t.Ua=0,t.a=1,0):(t.Ta=t.V,t.Ua=t.Ba+u+n,1)}function Un(t,n){var u=t.C,d=n-u,m=t.V,b=t.Ba+t.c*u;for(e(n<=t.l.o);0<d;){var y=16<d?16:d,L=t.l.ma,x=t.l.width,P=x*y,T=L.ca,X=L.tb+x*u,K=t.Ta,V=t.Ua;cr(t,y,m,b),Ie(K,V,T,X,P),Sr(L,u,u+y,T,X,x),d-=y,m+=y*t.c,u+=y}e(u==n),t.C=t.Ma=n}function Hn(){this.ub=this.yd=this.td=this.Rb=0}function Wn(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Vn(){this.Fb=this.Bb=this.Cb=0,this.Zb=s(4),this.Lb=s(4)}function ra(){this.Yb=(function(){var t=[];return(function n(u,d,m){for(var b=m[d],y=0;y<b&&(u.push(m.length>d+1?[]:0),!(m.length<d+1));y++)n(u[y],d+1,m)})(t,0,[3,11]),t})()}function ns(){this.jb=s(3),this.Wc=h([4,8],ra),this.Xc=h([4,17],ra)}function is(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new s(4),this.od=new s(4)}function Gn(){this.ld=this.La=this.dd=this.tc=0}function na(){this.Na=this.la=0}function as(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Si(){this.ad=s(384),this.Za=0,this.Ob=s(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function ss(){this.uc=this.M=this.Nb=0,this.wa=Array(new Gn),this.Y=0,this.ya=Array(new Si),this.aa=0,this.l=new Jn}function ia(){this.y=s(16),this.f=s(8),this.ea=s(8)}function os(){this.cb=this.a=0,this.sc="",this.m=new Mt,this.Od=new Hn,this.Kc=new Wn,this.ed=new is,this.Qa=new Vn,this.Ic=this.$c=this.Aa=0,this.D=new ss,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=l(8,Mt),this.ia=0,this.pb=l(4,as),this.Pa=new ns,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new ia),this.Hd=0,this.rb=Array(new na),this.sb=0,this.wa=Array(new Gn),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Si),this.L=this.aa=0,this.gd=h([4,2],Gn),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Jn(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function us(){var t=new os;return t!=null&&(t.a=0,t.sc="OK",t.cb=0,t.Xb=0,Xi||(Xi=oa)),t}function Pe(t,n,u){return t.a==0&&(t.a=n,t.sc=u,t.cb=0),0}function aa(t,n,u){return 3<=u&&t[n+0]==157&&t[n+1]==1&&t[n+2]==42}function sa(t,n){if(t==null)return 0;if(t.a=0,t.sc="OK",n==null)return Pe(t,2,"null VP8Io passed to VP8GetHeaders()");var u=n.data,d=n.w,m=n.ha;if(4>m)return Pe(t,7,"Truncated header.");var b=u[d+0]|u[d+1]<<8|u[d+2]<<16,y=t.Od;if(y.Rb=!(1&b),y.td=b>>1&7,y.yd=b>>4&1,y.ub=b>>5,3<y.td)return Pe(t,3,"Incorrect keyframe parameters.");if(!y.yd)return Pe(t,4,"Frame not displayable.");d+=3,m-=3;var L=t.Kc;if(y.Rb){if(7>m)return Pe(t,7,"cannot parse picture header");if(!aa(u,d,m))return Pe(t,3,"Bad code word");L.c=16383&(u[d+4]<<8|u[d+3]),L.Td=u[d+4]>>6,L.i=16383&(u[d+6]<<8|u[d+5]),L.Ud=u[d+6]>>6,d+=7,m-=7,t.za=L.c+15>>4,t.Ub=L.i+15>>4,n.width=L.c,n.height=L.i,n.Da=0,n.j=0,n.v=0,n.va=n.width,n.o=n.height,n.da=0,n.ib=n.width,n.hb=n.height,n.U=n.width,n.T=n.height,c((b=t.Pa).jb,0,255,b.jb.length),e((b=t.Qa)!=null),b.Cb=0,b.Bb=0,b.Fb=1,c(b.Zb,0,0,b.Zb.length),c(b.Lb,0,0,b.Lb)}if(y.ub>m)return Pe(t,7,"bad partition length");ut(b=t.m,u,d,y.ub),d+=y.ub,m-=y.ub,y.Rb&&(L.Ld=et(b),L.Kd=et(b)),L=t.Qa;var x,P=t.Pa;if(e(b!=null),e(L!=null),L.Cb=et(b),L.Cb){if(L.Bb=et(b),et(b)){for(L.Fb=et(b),x=0;4>x;++x)L.Zb[x]=et(b)?mt(b,7):0;for(x=0;4>x;++x)L.Lb[x]=et(b)?mt(b,6):0}if(L.Bb)for(x=0;3>x;++x)P.jb[x]=et(b)?st(b,8):255}else L.Bb=0;if(b.Ka)return Pe(t,3,"cannot parse segment header");if((L=t.ed).zd=et(b),L.Tb=st(b,6),L.wb=st(b,3),L.Pc=et(b),L.Pc&&et(b)){for(P=0;4>P;++P)et(b)&&(L.vd[P]=mt(b,6));for(P=0;4>P;++P)et(b)&&(L.od[P]=mt(b,6))}if(t.L=L.Tb==0?0:L.zd?1:2,b.Ka)return Pe(t,3,"cannot parse filter header");var T=m;if(m=x=d,d=x+T,L=T,t.Xb=(1<<st(t.m,2))-1,T<3*(P=t.Xb))u=7;else{for(x+=3*P,L-=3*P,T=0;T<P;++T){var X=u[m+0]|u[m+1]<<8|u[m+2]<<16;X>L&&(X=L),ut(t.Jc[+T],u,x,X),x+=X,L-=X,m+=3}ut(t.Jc[+P],u,x,L),u=x<d?0:5}if(u!=0)return Pe(t,u,"cannot parse partitions");for(u=st(x=t.m,7),m=et(x)?mt(x,4):0,d=et(x)?mt(x,4):0,L=et(x)?mt(x,4):0,P=et(x)?mt(x,4):0,x=et(x)?mt(x,4):0,T=t.Qa,X=0;4>X;++X){if(T.Cb){var K=T.Zb[X];T.Fb||(K+=u)}else{if(0<X){t.pb[X]=t.pb[0];continue}K=u}var V=t.pb[X];V.Sc[0]=Os[lr(K+m,127)],V.Sc[1]=Bs[lr(K+0,127)],V.Eb[0]=2*Os[lr(K+d,127)],V.Eb[1]=101581*Bs[lr(K+L,127)]>>16,8>V.Eb[1]&&(V.Eb[1]=8),V.Qc[0]=Os[lr(K+P,117)],V.Qc[1]=Bs[lr(K+x,127)],V.lc=K+x}if(!y.Rb)return Pe(t,4,"Not a key frame.");for(et(b),y=t.Pa,u=0;4>u;++u){for(m=0;8>m;++m)for(d=0;3>d;++d)for(L=0;11>L;++L)P=Q(b,Lu[u][m][d][L])?st(b,8):yu[u][m][d][L],y.Wc[u][m].Yb[d][L]=P;for(m=0;17>m;++m)y.Xc[u][m]=y.Wc[u][Nu[m]]}return t.kc=et(b),t.kc&&(t.Bd=st(b,8)),t.cb=1}function oa(t,n,u,d,m,b,y){var L=n[m].Yb[u];for(u=0;16>m;++m){if(!Q(t,L[u+0]))return m;for(;!Q(t,L[u+1]);)if(L=n[++m].Yb[0],u=0,m==16)return 16;var x=n[m+1].Yb;if(Q(t,L[u+2])){var P=t,T=0;if(Q(P,(K=L)[(X=u)+3]))if(Q(P,K[X+6])){for(L=0,X=2*(T=Q(P,K[X+8]))+(K=Q(P,K[X+9+T])),T=0,K=vu[X];K[L];++L)T+=T+Q(P,K[L]);T+=3+(8<<X)}else Q(P,K[X+7])?(T=7+2*Q(P,165),T+=Q(P,145)):T=5+Q(P,159);else T=Q(P,K[X+4])?3+Q(P,K[X+5]):2;L=x[2]}else T=1,L=x[1];x=y+bu[m],0>(P=t).b&&$(P);var X,K=P.b,V=(X=P.Ca>>1)-(P.I>>K)>>31;--P.b,P.Ca+=V,P.Ca|=1,P.I-=(X+1&V)<<K,b[x]=((T^V)-V)*d[(0<m)+0]}return 16}function _i(t){var n=t.rb[t.sb-1];n.la=0,n.Na=0,c(t.zc,0,0,t.zc.length),t.ja=0}function cs(t,n){if(t==null)return 0;if(n==null)return Pe(t,2,"NULL VP8Io parameter in VP8Decode().");if(!t.cb&&!sa(t,n))return 0;if(e(t.cb),n.ac==null||n.ac(n)){n.ob&&(t.L=0);var u=Ea[t.L];if(t.L==2?(t.yb=0,t.zb=0):(t.yb=n.v-u>>4,t.zb=n.j-u>>4,0>t.yb&&(t.yb=0),0>t.zb&&(t.zb=0)),t.Va=n.o+15+u>>4,t.Hb=n.va+15+u>>4,t.Hb>t.za&&(t.Hb=t.za),t.Va>t.Ub&&(t.Va=t.Ub),0<t.L){var d=t.ed;for(u=0;4>u;++u){var m;if(t.Qa.Cb){var b=t.Qa.Lb[u];t.Qa.Fb||(b+=d.Tb)}else b=d.Tb;for(m=0;1>=m;++m){var y=t.gd[u][m],L=b;if(d.Pc&&(L+=d.vd[0],m&&(L+=d.od[0])),0<(L=0>L?0:63<L?63:L)){var x=L;0<d.wb&&(x=4<d.wb?x>>2:x>>1)>9-d.wb&&(x=9-d.wb),1>x&&(x=1),y.dd=x,y.tc=2*L+x,y.ld=40<=L?2:15<=L?1:0}else y.tc=0;y.La=m}}}u=0}else Pe(t,6,"Frame setup failed"),u=t.a;if(u=u==0){if(u){t.$c=0,0<t.Aa||(t.Ic=Eu);t:{u=t.Ic,d=4*(x=t.za);var P=32*x,T=x+1,X=0<t.L?x*(0<t.Aa?2:1):0,K=(t.Aa==2?2:1)*x;if((y=d+832+(m=3*(16*u+Ea[t.L])/2*P)+(b=t.Fa!=null&&0<t.Fa.length?t.Kc.c*t.Kc.i:0))!=y)u=0;else{if(y>t.Vb){if(t.Vb=0,t.Ec=s(y),t.Fc=0,t.Ec==null){u=Pe(t,1,"no memory during frame initialization.");break t}t.Vb=y}y=t.Ec,L=t.Fc,t.Ac=y,t.Bc=L,L+=d,t.Gd=l(P,ia),t.Hd=0,t.rb=l(T+1,na),t.sb=1,t.wa=X?l(X,Gn):null,t.Y=0,t.D.Nb=0,t.D.wa=t.wa,t.D.Y=t.Y,0<t.Aa&&(t.D.Y+=x),e(!0),t.oc=y,t.pc=L,L+=832,t.ya=l(K,Si),t.aa=0,t.D.ya=t.ya,t.D.aa=t.aa,t.Aa==2&&(t.D.aa+=x),t.R=16*x,t.B=8*x,x=(P=Ea[t.L])*t.R,P=P/2*t.B,t.sa=y,t.ta=L+x,t.qa=t.sa,t.ra=t.ta+16*u*t.R+P,t.Ha=t.qa,t.Ia=t.ra+8*u*t.B+P,t.$c=0,L+=m,t.mb=b?y:null,t.nb=b?L:null,e(L+b<=t.Fc+t.Vb),_i(t),c(t.Ac,t.Bc,0,d),u=1}}if(u){if(n.ka=0,n.y=t.sa,n.O=t.ta,n.f=t.qa,n.N=t.ra,n.ea=t.Ha,n.Vd=t.Ia,n.fa=t.R,n.Rc=t.B,n.F=null,n.J=0,!_a){for(u=-255;255>=u;++u)De[255+u]=0>u?-u:u;for(u=-1020;1020>=u;++u)rn[1020+u]=-128>u?-128:127<u?127:u;for(u=-112;112>=u;++u)Yi[112+u]=-16>u?-16:15<u?15:u;for(u=-255;510>=u;++u)hi[255+u]=0>u?0:255<u?255:u;_a=1}ui=fs,en=ls,Vi=ca,tr=hs,mr=la,ke=ua,ci=ji,Sa=In,Gi=Ss,jn=Oi,On=xs,fn=Qn,Bn=Bi,li=ya,En=ba,dn=Hr,Ji=$r,vr=As,Cr[0]=Ur,Cr[1]=ds,Cr[2]=vs,Cr[3]=bs,Cr[4]=da,Cr[5]=Zn,Cr[6]=pa,Cr[7]=Ii,Cr[8]=ws,Cr[9]=ys,pn[0]=ha,pn[1]=gs,pn[2]=Zr,pn[3]=Xn,pn[4]=Je,pn[5]=ms,pn[6]=fa,nn[0]=on,nn[1]=ps,nn[2]=Ls,nn[3]=Fi,nn[4]=kn,nn[5]=Ns,nn[6]=Ci,u=1}else u=0}u&&(u=(function(V,ht){for(V.M=0;V.M<V.Va;++V.M){var rt,z=V.Jc[V.M&V.Xb],U=V.m,ct=V;for(rt=0;rt<ct.za;++rt){var gt=U,lt=ct,Ct=lt.Ac,St=lt.Bc+4*rt,Rt=lt.zc,_t=lt.ya[lt.aa+rt];if(lt.Qa.Bb?_t.$b=Q(gt,lt.Pa.jb[0])?2+Q(gt,lt.Pa.jb[2]):Q(gt,lt.Pa.jb[1]):_t.$b=0,lt.kc&&(_t.Ad=Q(gt,lt.Bd)),_t.Za=!Q(gt,145)+0,_t.Za){var oe=_t.Ob,le=0;for(lt=0;4>lt;++lt){var ae,re=Rt[0+lt];for(ae=0;4>ae;++ae){re=wu[Ct[St+ae]][re];for(var ge=co[Q(gt,re[0])];0<ge;)ge=co[2*ge+Q(gt,re[ge])];re=-ge,Ct[St+ae]=re}a(oe,le,Ct,St,4),le+=4,Rt[0+lt]=re}}else re=Q(gt,156)?Q(gt,128)?1:3:Q(gt,163)?2:0,_t.Ob[0]=re,c(Ct,St,re,4),c(Rt,0,re,4);_t.Dd=Q(gt,142)?Q(gt,114)?Q(gt,183)?1:3:2:0}if(ct.m.Ka)return Pe(V,7,"Premature end-of-partition0 encountered.");for(;V.ja<V.za;++V.ja){if(ct=z,gt=(U=V).rb[U.sb-1],Ct=U.rb[U.sb+U.ja],rt=U.ya[U.aa+U.ja],St=U.kc?rt.Ad:0)gt.la=Ct.la=0,rt.Za||(gt.Na=Ct.Na=0),rt.Hc=0,rt.Gc=0,rt.ia=0;else{var de,$t;if(gt=Ct,Ct=ct,St=U.Pa.Xc,Rt=U.ya[U.aa+U.ja],_t=U.pb[Rt.$b],lt=Rt.ad,oe=0,le=U.rb[U.sb-1],re=ae=0,c(lt,oe,0,384),Rt.Za)var Ee=0,sr=St[3];else{ge=s(16);var Me=gt.Na+le.Na;if(Me=Xi(Ct,St[1],Me,_t.Eb,0,ge,0),gt.Na=le.Na=(0<Me)+0,1<Me)ui(ge,0,lt,oe);else{var or=ge[0]+3>>3;for(ge=0;256>ge;ge+=16)lt[oe+ge]=or}Ee=1,sr=St[0]}var he=15>.la,fr=15&le.la;for(ge=0;4>ge;++ge){var dr=1&fr;for(or=$t=0;4>or;++or)he=he>>1|(dr=(Me=Xi(Ct,sr,Me=dr+(1&he),_t.Sc,Ee,lt,oe))>Ee)<<7,$t=$t<<2|(3<Me?3:1<Me?2:lt[oe+0]!=0),oe+=16;he>>=4,fr=fr>>1|dr<<7,ae=(ae<<8|$t)>>>0}for(sr=he,Ee=fr>>4,de=0;4>de;de+=2){for($t=0,he=gt.la>>4+de,fr=le.la>>4+de,ge=0;2>ge;++ge){for(dr=1&fr,or=0;2>or;++or)Me=dr+(1&he),he=he>>1|(dr=0<(Me=Xi(Ct,St[2],Me,_t.Qc,0,lt,oe)))<<3,$t=$t<<2|(3<Me?3:1<Me?2:lt[oe+0]!=0),oe+=16;he>>=2,fr=fr>>1|dr<<5}re|=$t<<4*de,sr|=he<<4<<de,Ee|=(240&fr)<<de}gt.la=sr,le.la=Ee,Rt.Hc=ae,Rt.Gc=re,Rt.ia=43690&re?0:_t.ia,St=!(ae|re)}if(0<U.L&&(U.wa[U.Y+U.ja]=U.gd[rt.$b][rt.Za],U.wa[U.Y+U.ja].La|=!St),ct.Ka)return Pe(V,7,"Premature end-of-file encountered.")}if(_i(V),U=ht,ct=1,rt=(z=V).D,gt=0<z.L&&z.M>=z.zb&&z.M<=z.Va,z.Aa==0)t:{if(rt.M=z.M,rt.uc=gt,Ti(z,rt),ct=1,rt=($t=z.D).Nb,gt=(re=Ea[z.L])*z.R,Ct=re/2*z.B,ge=16*rt*z.R,or=8*rt*z.B,St=z.sa,Rt=z.ta-gt+ge,_t=z.qa,lt=z.ra-Ct+or,oe=z.Ha,le=z.Ia-Ct+or,fr=(he=$t.M)==0,ae=he>=z.Va-1,z.Aa==2&&Ti(z,$t),$t.uc)for(dr=(Me=z).D.M,e(Me.D.uc),$t=Me.yb;$t<Me.Hb;++$t){Ee=$t,sr=dr;var Te=(Ve=(Se=Me).D).Nb;de=Se.R;var Ve=Ve.wa[Ve.Y+Ee],er=Se.sa,Lr=Se.ta+16*Te*de+16*Ee,Vr=Ve.dd,ze=Ve.tc;if(ze!=0)if(e(3<=ze),Se.L==1)0<Ee&&dn(er,Lr,de,ze+4),Ve.La&&vr(er,Lr,de,ze),0<sr&&En(er,Lr,de,ze+4),Ve.La&&Ji(er,Lr,de,ze);else{var an=Se.B,Mn=Se.qa,fi=Se.ra+8*Te*an+8*Ee,mn=Se.Ha,Se=Se.Ia+8*Te*an+8*Ee;Te=Ve.ld,0<Ee&&(Sa(er,Lr,de,ze+4,Vr,Te),jn(Mn,fi,mn,Se,an,ze+4,Vr,Te)),Ve.La&&(fn(er,Lr,de,ze,Vr,Te),li(Mn,fi,mn,Se,an,ze,Vr,Te)),0<sr&&(ci(er,Lr,de,ze+4,Vr,Te),Gi(Mn,fi,mn,Se,an,ze+4,Vr,Te)),Ve.La&&(On(er,Lr,de,ze,Vr,Te),Bn(Mn,fi,mn,Se,an,ze,Vr,Te))}}if(z.ia&&alert("todo:DitherRow"),U.put!=null){if($t=16*he,he=16*(he+1),fr?(U.y=z.sa,U.O=z.ta+ge,U.f=z.qa,U.N=z.ra+or,U.ea=z.Ha,U.W=z.Ia+or):($t-=re,U.y=St,U.O=Rt,U.f=_t,U.N=lt,U.ea=oe,U.W=le),ae||(he-=re),he>U.o&&(he=U.o),U.F=null,U.J=null,z.Fa!=null&&0<z.Fa.length&&$t<he&&(U.J=Di(z,U,$t,he-$t),U.F=z.mb,U.F==null&&U.F.length==0)){ct=Pe(z,3,"Could not decode alpha data.");break t}$t<U.j&&(re=U.j-$t,$t=U.j,e(!(1&re)),U.O+=z.R*re,U.N+=z.B*(re>>1),U.W+=z.B*(re>>1),U.F!=null&&(U.J+=U.width*re)),$t<he&&(U.O+=U.v,U.N+=U.v>>1,U.W+=U.v>>1,U.F!=null&&(U.J+=U.v),U.ka=$t-U.j,U.U=U.va-U.v,U.T=he-$t,ct=U.put(U))}rt+1!=z.Ic||ae||(a(z.sa,z.ta-gt,St,Rt+16*z.R,gt),a(z.qa,z.ra-Ct,_t,lt+8*z.B,Ct),a(z.Ha,z.Ia-Ct,oe,le+8*z.B,Ct))}if(!ct)return Pe(V,6,"Output aborted.")}return 1})(t,n)),n.bc!=null&&n.bc(n),u&=1}return u?(t.cb=0,u):0}function kr(t,n,u,d,m){m=t[n+u+32*d]+(m>>3),t[n+u+32*d]=-256&m?0>m?0:255:m}function Yn(t,n,u,d,m,b){kr(t,n,0,u,d+m),kr(t,n,1,u,d+b),kr(t,n,2,u,d-b),kr(t,n,3,u,d-m)}function nr(t){return(20091*t>>16)+t}function Pi(t,n,u,d){var m,b=0,y=s(16);for(m=0;4>m;++m){var L=t[n+0]+t[n+8],x=t[n+0]-t[n+8],P=(35468*t[n+4]>>16)-nr(t[n+12]),T=nr(t[n+4])+(35468*t[n+12]>>16);y[b+0]=L+T,y[b+1]=x+P,y[b+2]=x-P,y[b+3]=L-T,b+=4,n++}for(m=b=0;4>m;++m)L=(t=y[b+0]+4)+y[b+8],x=t-y[b+8],P=(35468*y[b+4]>>16)-nr(y[b+12]),kr(u,d,0,0,L+(T=nr(y[b+4])+(35468*y[b+12]>>16))),kr(u,d,1,0,x+P),kr(u,d,2,0,x-P),kr(u,d,3,0,L-T),b++,d+=32}function ua(t,n,u,d){var m=t[n+0]+4,b=35468*t[n+4]>>16,y=nr(t[n+4]),L=35468*t[n+1]>>16;Yn(u,d,0,m+y,t=nr(t[n+1]),L),Yn(u,d,1,m+b,t,L),Yn(u,d,2,m-b,t,L),Yn(u,d,3,m-y,t,L)}function ls(t,n,u,d,m){Pi(t,n,u,d),m&&Pi(t,n+16,u,d+4)}function ca(t,n,u,d){en(t,n+0,u,d,1),en(t,n+32,u,d+128,1)}function hs(t,n,u,d){var m;for(t=t[n+0]+4,m=0;4>m;++m)for(n=0;4>n;++n)kr(u,d,n,m,t)}function la(t,n,u,d){t[n+0]&&tr(t,n+0,u,d),t[n+16]&&tr(t,n+16,u,d+4),t[n+32]&&tr(t,n+32,u,d+128),t[n+48]&&tr(t,n+48,u,d+128+4)}function fs(t,n,u,d){var m,b=s(16);for(m=0;4>m;++m){var y=t[n+0+m]+t[n+12+m],L=t[n+4+m]+t[n+8+m],x=t[n+4+m]-t[n+8+m],P=t[n+0+m]-t[n+12+m];b[0+m]=y+L,b[8+m]=y-L,b[4+m]=P+x,b[12+m]=P-x}for(m=0;4>m;++m)y=(t=b[0+4*m]+3)+b[3+4*m],L=b[1+4*m]+b[2+4*m],x=b[1+4*m]-b[2+4*m],P=t-b[3+4*m],u[d+0]=y+L>>3,u[d+16]=P+x>>3,u[d+32]=y-L>>3,u[d+48]=P-x>>3,d+=64}function ki(t,n,u){var d,m=n-32,b=hr,y=255-t[m-1];for(d=0;d<u;++d){var L,x=b,P=y+t[n-1];for(L=0;L<u;++L)t[n+L]=x[P+t[m+L]];n+=32}}function ds(t,n){ki(t,n,4)}function ps(t,n){ki(t,n,8)}function gs(t,n){ki(t,n,16)}function Zr(t,n){var u;for(u=0;16>u;++u)a(t,n+32*u,t,n-32,16)}function Xn(t,n){var u;for(u=16;0<u;--u)c(t,n,t[n-1],16),n+=32}function Kn(t,n,u){var d;for(d=0;16>d;++d)c(n,u+32*d,t,16)}function ha(t,n){var u,d=16;for(u=0;16>u;++u)d+=t[n-1+32*u]+t[n+u-32];Kn(d>>5,t,n)}function Je(t,n){var u,d=8;for(u=0;16>u;++u)d+=t[n-1+32*u];Kn(d>>4,t,n)}function ms(t,n){var u,d=8;for(u=0;16>u;++u)d+=t[n+u-32];Kn(d>>4,t,n)}function fa(t,n){Kn(128,t,n)}function Vt(t,n,u){return t+2*n+u+2>>2}function vs(t,n){var u,d=n-32;for(d=new Uint8Array([Vt(t[d-1],t[d+0],t[d+1]),Vt(t[d+0],t[d+1],t[d+2]),Vt(t[d+1],t[d+2],t[d+3]),Vt(t[d+2],t[d+3],t[d+4])]),u=0;4>u;++u)a(t,n+32*u,d,0,d.length)}function bs(t,n){var u=t[n-1],d=t[n-1+32],m=t[n-1+64],b=t[n-1+96];At(t,n+0,16843009*Vt(t[n-1-32],u,d)),At(t,n+32,16843009*Vt(u,d,m)),At(t,n+64,16843009*Vt(d,m,b)),At(t,n+96,16843009*Vt(m,b,b))}function Ur(t,n){var u,d=4;for(u=0;4>u;++u)d+=t[n+u-32]+t[n-1+32*u];for(d>>=3,u=0;4>u;++u)c(t,n+32*u,d,4)}function da(t,n){var u=t[n-1+0],d=t[n-1+32],m=t[n-1+64],b=t[n-1-32],y=t[n+0-32],L=t[n+1-32],x=t[n+2-32],P=t[n+3-32];t[n+0+96]=Vt(d,m,t[n-1+96]),t[n+1+96]=t[n+0+64]=Vt(u,d,m),t[n+2+96]=t[n+1+64]=t[n+0+32]=Vt(b,u,d),t[n+3+96]=t[n+2+64]=t[n+1+32]=t[n+0+0]=Vt(y,b,u),t[n+3+64]=t[n+2+32]=t[n+1+0]=Vt(L,y,b),t[n+3+32]=t[n+2+0]=Vt(x,L,y),t[n+3+0]=Vt(P,x,L)}function pa(t,n){var u=t[n+1-32],d=t[n+2-32],m=t[n+3-32],b=t[n+4-32],y=t[n+5-32],L=t[n+6-32],x=t[n+7-32];t[n+0+0]=Vt(t[n+0-32],u,d),t[n+1+0]=t[n+0+32]=Vt(u,d,m),t[n+2+0]=t[n+1+32]=t[n+0+64]=Vt(d,m,b),t[n+3+0]=t[n+2+32]=t[n+1+64]=t[n+0+96]=Vt(m,b,y),t[n+3+32]=t[n+2+64]=t[n+1+96]=Vt(b,y,L),t[n+3+64]=t[n+2+96]=Vt(y,L,x),t[n+3+96]=Vt(L,x,x)}function Zn(t,n){var u=t[n-1+0],d=t[n-1+32],m=t[n-1+64],b=t[n-1-32],y=t[n+0-32],L=t[n+1-32],x=t[n+2-32],P=t[n+3-32];t[n+0+0]=t[n+1+64]=b+y+1>>1,t[n+1+0]=t[n+2+64]=y+L+1>>1,t[n+2+0]=t[n+3+64]=L+x+1>>1,t[n+3+0]=x+P+1>>1,t[n+0+96]=Vt(m,d,u),t[n+0+64]=Vt(d,u,b),t[n+0+32]=t[n+1+96]=Vt(u,b,y),t[n+1+32]=t[n+2+96]=Vt(b,y,L),t[n+2+32]=t[n+3+96]=Vt(y,L,x),t[n+3+32]=Vt(L,x,P)}function Ii(t,n){var u=t[n+0-32],d=t[n+1-32],m=t[n+2-32],b=t[n+3-32],y=t[n+4-32],L=t[n+5-32],x=t[n+6-32],P=t[n+7-32];t[n+0+0]=u+d+1>>1,t[n+1+0]=t[n+0+64]=d+m+1>>1,t[n+2+0]=t[n+1+64]=m+b+1>>1,t[n+3+0]=t[n+2+64]=b+y+1>>1,t[n+0+32]=Vt(u,d,m),t[n+1+32]=t[n+0+96]=Vt(d,m,b),t[n+2+32]=t[n+1+96]=Vt(m,b,y),t[n+3+32]=t[n+2+96]=Vt(b,y,L),t[n+3+64]=Vt(y,L,x),t[n+3+96]=Vt(L,x,P)}function ys(t,n){var u=t[n-1+0],d=t[n-1+32],m=t[n-1+64],b=t[n-1+96];t[n+0+0]=u+d+1>>1,t[n+2+0]=t[n+0+32]=d+m+1>>1,t[n+2+32]=t[n+0+64]=m+b+1>>1,t[n+1+0]=Vt(u,d,m),t[n+3+0]=t[n+1+32]=Vt(d,m,b),t[n+3+32]=t[n+1+64]=Vt(m,b,b),t[n+3+64]=t[n+2+64]=t[n+0+96]=t[n+1+96]=t[n+2+96]=t[n+3+96]=b}function ws(t,n){var u=t[n-1+0],d=t[n-1+32],m=t[n-1+64],b=t[n-1+96],y=t[n-1-32],L=t[n+0-32],x=t[n+1-32],P=t[n+2-32];t[n+0+0]=t[n+2+32]=u+y+1>>1,t[n+0+32]=t[n+2+64]=d+u+1>>1,t[n+0+64]=t[n+2+96]=m+d+1>>1,t[n+0+96]=b+m+1>>1,t[n+3+0]=Vt(L,x,P),t[n+2+0]=Vt(y,L,x),t[n+1+0]=t[n+3+32]=Vt(u,y,L),t[n+1+32]=t[n+3+64]=Vt(d,u,y),t[n+1+64]=t[n+3+96]=Vt(m,d,u),t[n+1+96]=Vt(b,m,d)}function Ls(t,n){var u;for(u=0;8>u;++u)a(t,n+32*u,t,n-32,8)}function Fi(t,n){var u;for(u=0;8>u;++u)c(t,n,t[n-1],8),n+=32}function Pn(t,n,u){var d;for(d=0;8>d;++d)c(n,u+32*d,t,8)}function on(t,n){var u,d=8;for(u=0;8>u;++u)d+=t[n+u-32]+t[n-1+32*u];Pn(d>>4,t,n)}function Ns(t,n){var u,d=4;for(u=0;8>u;++u)d+=t[n+u-32];Pn(d>>3,t,n)}function kn(t,n){var u,d=4;for(u=0;8>u;++u)d+=t[n-1+32*u];Pn(d>>3,t,n)}function Ci(t,n){Pn(128,t,n)}function $n(t,n,u){var d=t[n-u],m=t[n+0],b=3*(m-d)+ks[1020+t[n-2*u]-t[n+u]],y=Pa[112+(b+4>>3)];t[n-u]=hr[255+d+Pa[112+(b+3>>3)]],t[n+0]=hr[255+m-y]}function ga(t,n,u,d){var m=t[n+0],b=t[n+u];return yr[255+t[n-2*u]-t[n-u]]>d||yr[255+b-m]>d}function ma(t,n,u,d){return 4*yr[255+t[n-u]-t[n+0]]+yr[255+t[n-2*u]-t[n+u]]<=d}function va(t,n,u,d,m){var b=t[n-3*u],y=t[n-2*u],L=t[n-u],x=t[n+0],P=t[n+u],T=t[n+2*u],X=t[n+3*u];return 4*yr[255+L-x]+yr[255+y-P]>d?0:yr[255+t[n-4*u]-b]<=m&&yr[255+b-y]<=m&&yr[255+y-L]<=m&&yr[255+X-T]<=m&&yr[255+T-P]<=m&&yr[255+P-x]<=m}function ba(t,n,u,d){var m=2*d+1;for(d=0;16>d;++d)ma(t,n+d,u,m)&&$n(t,n+d,u)}function Hr(t,n,u,d){var m=2*d+1;for(d=0;16>d;++d)ma(t,n+d*u,1,m)&&$n(t,n+d*u,1)}function $r(t,n,u,d){var m;for(m=3;0<m;--m)ba(t,n+=4*u,u,d)}function As(t,n,u,d){var m;for(m=3;0<m;--m)Hr(t,n+=4,u,d)}function un(t,n,u,d,m,b,y,L){for(b=2*b+1;0<m--;){if(va(t,n,u,b,y))if(ga(t,n,u,L))$n(t,n,u);else{var x=t,P=n,T=u,X=x[P-2*T],K=x[P-T],V=x[P+0],ht=x[P+T],rt=x[P+2*T],z=27*(ct=ks[1020+3*(V-K)+ks[1020+X-ht]])+63>>7,U=18*ct+63>>7,ct=9*ct+63>>7;x[P-3*T]=hr[255+x[P-3*T]+ct],x[P-2*T]=hr[255+X+U],x[P-T]=hr[255+K+z],x[P+0]=hr[255+V-z],x[P+T]=hr[255+ht-U],x[P+2*T]=hr[255+rt-ct]}n+=d}}function Ir(t,n,u,d,m,b,y,L){for(b=2*b+1;0<m--;){if(va(t,n,u,b,y))if(ga(t,n,u,L))$n(t,n,u);else{var x=t,P=n,T=u,X=x[P-T],K=x[P+0],V=x[P+T],ht=Pa[112+((rt=3*(K-X))+4>>3)],rt=Pa[112+(rt+3>>3)],z=ht+1>>1;x[P-2*T]=hr[255+x[P-2*T]+z],x[P-T]=hr[255+X+rt],x[P+0]=hr[255+K-ht],x[P+T]=hr[255+V-z]}n+=d}}function ji(t,n,u,d,m,b){un(t,n,u,1,16,d,m,b)}function In(t,n,u,d,m,b){un(t,n,1,u,16,d,m,b)}function xs(t,n,u,d,m,b){var y;for(y=3;0<y;--y)Ir(t,n+=4*u,u,1,16,d,m,b)}function Qn(t,n,u,d,m,b){var y;for(y=3;0<y;--y)Ir(t,n+=4,1,u,16,d,m,b)}function Ss(t,n,u,d,m,b,y,L){un(t,n,m,1,8,b,y,L),un(u,d,m,1,8,b,y,L)}function Oi(t,n,u,d,m,b,y,L){un(t,n,1,m,8,b,y,L),un(u,d,1,m,8,b,y,L)}function Bi(t,n,u,d,m,b,y,L){Ir(t,n+4*m,m,1,8,b,y,L),Ir(u,d+4*m,m,1,8,b,y,L)}function ya(t,n,u,d,m,b,y,L){Ir(t,n+4,1,m,8,b,y,L),Ir(u,d+4,1,m,8,b,y,L)}function ti(){this.ba=new Ar,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Ae,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Ei(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Mi(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function wa(){this.ua=0,this.Wa=new O,this.vb=new O,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new R,this.yc=new I}function _s(){this.xb=this.a=0,this.l=new Jn,this.ca=new Ar,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new w,this.Pb=0,this.wd=new w,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new wa,this.ab=0,this.gc=l(4,Mi),this.Oc=0}function ei(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Jn,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Fn(t,n,u,d,m,b,y){for(t=t==null?0:t[n+0],n=0;n<y;++n)m[b+n]=t+u[d+n]&255,t=m[b+n]}function qi(t,n,u,d,m,b,y){var L;if(t==null)Fn(null,null,u,d,m,b,y);else for(L=0;L<y;++L)m[b+L]=t[n+L]+u[d+L]&255}function cn(t,n,u,d,m,b,y){if(t==null)Fn(null,null,u,d,m,b,y);else{var L,x=t[n+0],P=x,T=x;for(L=0;L<y;++L)P=T+(x=t[n+L])-P,T=u[d+L]+(-256&P?0>P?0:255:P)&255,P=x,m[b+L]=T}}function Di(t,n,u,d){var m=n.width,b=n.o;if(e(t!=null&&n!=null),0>u||0>=d||u+d>b)return null;if(!t.Cc){if(t.ga==null){var y;if(t.ga=new ei,(y=t.ga==null)||(y=n.width*n.o,e(t.Gb.length==0),t.Gb=s(y),t.Uc=0,t.Gb==null?y=0:(t.mb=t.Gb,t.nb=t.Uc,t.rc=null,y=1),y=!y),!y){y=t.ga;var L=t.Fa,x=t.P,P=t.qc,T=t.mb,X=t.nb,K=x+1,V=P-1,ht=y.l;if(e(L!=null&&T!=null&&n!=null),gn[0]=null,gn[1]=Fn,gn[2]=qi,gn[3]=cn,y.ca=T,y.tb=X,y.c=n.width,y.i=n.height,e(0<y.c&&0<y.i),1>=P)n=0;else if(y.$a=L[x+0]>>0&3,y.Z=L[x+0]>>2&3,y.Lc=L[x+0]>>4&3,x=L[x+0]>>6&3,0>y.$a||1<y.$a||4<=y.Z||1<y.Lc||x)n=0;else if(ht.put=qr,ht.ac=He,ht.bc=Dr,ht.ma=y,ht.width=n.width,ht.height=n.height,ht.Da=n.Da,ht.v=n.v,ht.va=n.va,ht.j=n.j,ht.o=n.o,y.$a)t:{e(y.$a==1),n=pr();e:for(;;){if(n==null){n=0;break t}if(e(y!=null),y.mc=n,n.c=y.c,n.i=y.i,n.l=y.l,n.l.ma=y,n.l.width=y.c,n.l.height=y.i,n.a=0,tt(n.m,L,K,V),!zr(y.c,y.i,1,n,null)||(n.ab==1&&n.gc[0].hc==3&&Kr(n.s)?(y.ic=1,L=n.c*n.i,n.Ta=null,n.Ua=0,n.V=s(L),n.Ba=0,n.V==null?(n.a=1,n=0):n=1):(y.ic=0,n=_n(n,y.c)),!n))break e;n=1;break t}y.mc=null,n=0}else n=V>=y.c*y.i;y=!n}if(y)return null;t.ga.Lc!=1?t.Ga=0:d=b-u}e(t.ga!=null),e(u+d<=b);t:{if(n=(L=t.ga).c,b=L.l.o,L.$a==0){if(K=t.rc,V=t.Vc,ht=t.Fa,x=t.P+1+u*n,P=t.mb,T=t.nb+u*n,e(x<=t.P+t.qc),L.Z!=0)for(e(gn[L.Z]!=null),y=0;y<d;++y)gn[L.Z](K,V,ht,x,P,T,n),K=P,V=T,T+=n,x+=n;else for(y=0;y<d;++y)a(P,T,ht,x,n),K=P,V=T,T+=n,x+=n;t.rc=K,t.Vc=V}else{if(e(L.mc!=null),n=u+d,e((y=L.mc)!=null),e(n<=y.i),y.C>=n)n=1;else if(L.ic||Y(),L.ic){L=y.V,K=y.Ba,V=y.c;var rt=y.i,z=(ht=1,x=y.$/V,P=y.$%V,T=y.m,X=y.s,y.$),U=V*rt,ct=V*n,gt=X.wc,lt=z<ct?Oe(X,P,x):null;e(z<=U),e(n<=rt),e(Kr(X));e:for(;;){for(;!T.h&&z<ct;){if(P>||(lt=Oe(X,P,x)),e(lt!=null),J(T),256>(rt=rr(lt.G[0],lt.H[0],T)))L[K+z]=rt,++z,++P>=V&&(P=0,++x<=n&&!(x%16)&&_r(y,x));else{if(!(280>rt)){ht=0;break e}rt=xr(rt-256,T);var Ct,St=rr(lt.G[4],lt.H[4],T);if(J(T),!(z>=(St=Rr(V,St=xr(St,T)))&&U-z>=rt)){ht=0;break e}for(Ct=0;Ct<rt;++Ct)L[K+z+Ct]=L[K+z+Ct-St];for(z+=rt,P+=rt;P>=V;)P-=V,++x<=n&&!(x%16)&&_r(y,x);z<ct&&P>&&(lt=Oe(X,P,x))}e(T.h==M(T))}_r(y,x>n?n:x);break e}!ht||T.h&&z<U?(ht=0,y.a=T.h?5:3):y.$=z,n=ht}else n=Pr(y,y.V,y.Ba,y.c,y.i,n,Un);if(!n){d=0;break t}}u+d>=b&&(t.Cc=1),d=1}if(!d)return null;if(t.Cc&&((d=t.ga)!=null&&(d.mc=null),t.ga=null,0<t.Ga))return alert("todo:WebPDequantizeLevels"),null}return t.nb+u*m}function o(t,n,u,d,m,b){for(;0<m--;){var y,L=t,x=n+(u?1:0),P=t,T=n+(u?0:3);for(y=0;y<d;++y){var X=P[T+4*y];X!=255&&(X*=32897,L[x+4*y+0]=L[x+4*y+0]*X>>23,L[x+4*y+1]=L[x+4*y+1]*X>>23,L[x+4*y+2]=L[x+4*y+2]*X>>23)}n+=b}}function v(t,n,u,d,m){for(;0<d--;){var b;for(b=0;b<u;++b){var y=t[n+2*b+0],L=15&(P=t[n+2*b+1]),x=4369*L,P=(240&P|P>>4)*x>>16;t[n+2*b+0]=(240&y|y>>4)*x>>16&240|(15&y|y<<4)*x>>16>>4&15,t[n+2*b+1]=240&P|L}n+=m}}function C(t,n,u,d,m,b,y,L){var x,P,T=255;for(P=0;P<m;++P){for(x=0;x<d;++x){var X=t[n+x];b[y+4*x]=X,T&=X}n+=u,y+=L}return T!=255}function D(t,n,u,d,m){var b;for(b=0;b<m;++b)u[d+b]=t[n+b]>>8}function Y(){br=o,be=v,ye=C,Ie=D}function it(t,n,u){G[t]=function(d,m,b,y,L,x,P,T,X,K,V,ht,rt,z,U,ct,gt){var lt,Ct=gt-1>>1,St=L[x+0]|P[T+0]<<16,Rt=X[K+0]|V[ht+0]<<16;e(d!=null);var _t=3*St+Rt+131074>>2;for(n(d[m+0],255&_t,_t>>16,rt,z),b!=null&&(_t=3*Rt+St+131074>>2,n(b[y+0],255&_t,_t>>16,U,ct)),lt=1;lt<=Ct;++lt){var oe=L[x+lt]|P[T+lt]<<16,le=X[K+lt]|V[ht+lt]<<16,ae=St+oe+Rt+le+524296,re=ae+2*(oe+Rt)>>3;_t=re+St>>1,St=(ae=ae+2*(St+le)>>3)+oe>>1,n(d[m+2*lt-1],255&_t,_t>>16,rt,z+(2*lt-1)*u),n(d[m+2*lt-0],255&St,St>>16,rt,z+(2*lt-0)*u),b!=null&&(_t=ae+Rt>>1,St=re+le>>1,n(b[y+2*lt-1],255&_t,_t>>16,U,ct+(2*lt-1)*u),n(b[y+2*lt+0],255&St,St>>16,U,ct+(2*lt+0)*u)),St=oe,Rt=le}1>||(_t=3*St+Rt+131074>>2,n(d[m+gt-1],255&_t,_t>>16,rt,z+(gt-1)*u),b!=null&&(_t=3*Rt+St+131074>>2,n(b[y+gt-1],255&_t,_t>>16,U,ct+(gt-1)*u)))}}function yt(){wr[ka]=xu,wr[Ia]=ho,wr[so]=Su,wr[Fa]=fo,wr[Ca]=po,wr[Is]=go,wr[oo]=_u,wr[Fs]=ho,wr[Cs]=fo,wr[ja]=po,wr[js]=go}function Ft(t){return t&-16384?0>t?0:255:t>>Pu}function Dt(t,n){return Ft((19077*t>>8)+(26149*n>>8)-14234)}function Zt(t,n,u){return Ft((19077*t>>8)-(6419*n>>8)-(13320*u>>8)+8708)}function Yt(t,n){return Ft((19077*t>>8)+(33050*n>>8)-17685)}function ne(t,n,u,d,m){d[m+0]=Dt(t,u),d[m+1]=Zt(t,n,u),d[m+2]=Yt(t,n)}function Le(t,n,u,d,m){d[m+0]=Yt(t,n),d[m+1]=Zt(t,n,u),d[m+2]=Dt(t,u)}function xe(t,n,u,d,m){var b=Zt(t,n,u);n=b<<3&224|Yt(t,n)>>3,d[m+0]=248&Dt(t,u)|b>>5,d[m+1]=n}function Be(t,n,u,d,m){var b=240&Yt(t,n)|15;d[m+0]=240&Dt(t,u)|Zt(t,n,u)>>4,d[m+1]=b}function Ye(t,n,u,d,m){d[m+0]=255,ne(t,n,u,d,m+1)}function Re(t,n,u,d,m){Le(t,n,u,d,m),d[m+3]=255}function Fr(t,n,u,d,m){ne(t,n,u,d,m),d[m+3]=255}function lr(t,n){return 0>t?0:t>n?n:t}function Wr(t,n,u){G[t]=function(d,m,b,y,L,x,P,T,X){for(var K=T+(-2&X)*u;T!=K;)n(d[m+0],b[y+0],L[x+0],P,T),n(d[m+1],b[y+0],L[x+0],P,T+u),m+=2,++y,++x,T+=2*u;1&X&&n(d[m+0],b[y+0],L[x+0],P,T)}}function La(t,n,u){return u==0?t==0?n==0?6:5:n==0?4:0:u}function Ri(t,n,u,d,m){switch(t>>>30){case 3:en(n,u,d,m,0);break;case 2:ke(n,u,d,m);break;case 1:tr(n,u,d,m)}}function Ti(t,n){var u,d,m=n.M,b=n.Nb,y=t.oc,L=t.pc+40,x=t.oc,P=t.pc+584,T=t.oc,X=t.pc+600;for(u=0;16>u;++u)y[L+32*u-1]=129;for(u=0;8>u;++u)x[P+32*u-1]=129,T[X+32*u-1]=129;for(0<m?y[L-1-32]=x[P-1-32]=T[X-1-32]=129:(c(y,L-32-1,127,21),c(x,P-32-1,127,9),c(T,X-32-1,127,9)),d=0;d<t.za;++d){var K=n.ya[n.aa+d];if(0<d){for(u=-1;16>u;++u)a(y,L+32*u-4,y,L+32*u+12,4);for(u=-1;8>u;++u)a(x,P+32*u-4,x,P+32*u+4,4),a(T,X+32*u-4,T,X+32*u+4,4)}var V=t.Gd,ht=t.Hd+d,rt=K.ad,z=K.Hc;if(0<m&&(a(y,L-32,V[ht].y,0,16),a(x,P-32,V[ht].f,0,8),a(T,X-32,V[ht].ea,0,8)),K.Za){var U=y,ct=L-32+16;for(0<m&&(d>=t.za-1?c(U,ct,V[ht].y[15],4):a(U,ct,V[ht+1].y,0,4)),u=0;4>u;u++)U[ct+128+u]=U[ct+256+u]=U[ct+384+u]=U[ct+0+u];for(u=0;16>u;++u,z<<=2)U=y,ct=L+vo[u],Cr[K.Ob[u]](U,ct),Ri(z,rt,16*+u,U,ct)}else if(U=La(d,m,K.Ob[0]),pn[U](y,L),z!=0)for(u=0;16>u;++u,z<<=2)Ri(z,rt,16*+u,y,L+vo[u]);for(u=K.Gc,U=La(d,m,K.Dd),nn[U](x,P),nn[U](T,X),z=rt,U=x,ct=P,255&(K=u>>0)&&(170&K?Vi(z,256,U,ct):mr(z,256,U,ct)),K=T,z=X,255&(u>>=8)&&(170&u?Vi(rt,320,K,z):mr(rt,320,K,z)),m<t.Ub-1&&(a(V[ht].y,0,y,L+480,16),a(V[ht].f,0,x,P+224,8),a(V[ht].ea,0,T,X+224,8)),u=8*b*t.B,V=t.sa,ht=t.ta+16*d+16*b*t.R,rt=t.qa,K=t.ra+8*d+u,z=t.Ha,U=t.Ia+8*d+u,u=0;16>u;++u)a(V,ht+u*t.R,y,L+32*u,16);for(u=0;8>u;++u)a(rt,K+u*t.B,x,P+32*u,8),a(z,U+u*t.B,T,X+32*u,8)}}function ri(t,n,u,d,m,b,y,L,x){var P=[0],T=[0],X=0,K=x!=null?x.kd:0,V=x??new Ei;if(t==null||12>u)return 7;V.data=t,V.w=n,V.ha=u,n=[n],u=[u],V.gb=[V.gb];t:{var ht=n,rt=u,z=V.gb;if(e(t!=null),e(rt!=null),e(z!=null),z[0]=0,12<=rt[0]&&!r(t,ht[0],"RIFF")){if(r(t,ht[0]+8,"WEBP")){z=3;break t}var U=jt(t,ht[0]+4);if(12>U||4294967286<U){z=3;break t}if(K&&U>rt[0]-8){z=7;break t}z[0]=U,ht[0]+=12,rt[0]-=12}z=0}if(z!=0)return z;for(U=0<V.gb[0],u=u[0];;){t:{var ct=t;rt=n,z=u;var gt=P,lt=T,Ct=ht=[0];if((_t=X=[X])[0]=0,8>z[0])z=7;else{if(!r(ct,rt[0],"VP8X")){if(jt(ct,rt[0]+4)!=10){z=3;break t}if(18>z[0]){z=7;break t}var St=jt(ct,rt[0]+8),Rt=1+Ot(ct,rt[0]+12);if(2147483648<=Rt*(ct=1+Ot(ct,rt[0]+15))){z=3;break t}Ct!=null&&(Ct[0]=St),gt!=null&&(gt[0]=Rt),lt!=null&&(lt[0]=ct),rt[0]+=18,z[0]-=18,_t[0]=1}z=0}}if(X=X[0],ht=ht[0],z!=0)return z;if(rt=!!(2&ht),!U&&X)return 3;if(b!=null&&(b[0]=!!(16&ht)),y!=null&&(y[0]=rt),L!=null&&(L[0]=0),y=P[0],ht=T[0],X&&rt&&x==null){z=0;break}if(4>u){z=7;break}if(U&&X||!U&&!X&&!r(t,n[0],"ALPH")){u=[u],V.na=[V.na],V.P=[V.P],V.Sa=[V.Sa];t:{St=t,z=n,U=u;var _t=V.gb;gt=V.na,lt=V.P,Ct=V.Sa,Rt=22,e(St!=null),e(U!=null),ct=z[0];var oe=U[0];for(e(gt!=null),e(Ct!=null),gt[0]=null,lt[0]=null,Ct[0]=0;;){if(z[0]=ct,U[0]=oe,8>oe){z=7;break t}var le=jt(St,ct+4);if(4294967286<le){z=3;break t}var ae=8+le+1&-2;if(Rt+=ae,0<_t&&Rt>_t){z=3;break t}if(!r(St,ct,"VP8 ")||!r(St,ct,"VP8L")){z=0;break t}if(oe[0]<ae){z=7;break t}r(St,ct,"ALPH")||(gt[0]=St,lt[0]=ct+8,Ct[0]=le),ct+=ae,oe-=ae}}if(u=u[0],V.na=V.na[0],V.P=V.P[0],V.Sa=V.Sa[0],z!=0)break}u=[u],V.Ja=[V.Ja],V.xa=[V.xa];t:if(_t=t,z=n,U=u,gt=V.gb[0],lt=V.Ja,Ct=V.xa,St=z[0],ct=!r(_t,St,"VP8 "),Rt=!r(_t,St,"VP8L"),e(_t!=null),e(U!=null),e(lt!=null),e(Ct!=null),8>U[0])z=7;else{if(ct||Rt){if(_t=jt(_t,St+4),12<=gt&&_t>gt-12){z=3;break t}if(K&&_t>U[0]-8){z=7;break t}lt[0]=_t,z[0]+=8,U[0]-=8,Ct[0]=Rt}else Ct[0]=5<=U[0]&&_t[St+0]==47&&!(_t[St+4]>>5),lt[0]=U[0];z=0}if(u=u[0],V.Ja=V.Ja[0],V.xa=V.xa[0],n=n[0],z!=0)break;if(4294967286<V.Ja)return 3;if(L==null||rt||(L[0]=V.xa?2:1),y=[y],ht=[ht],V.xa){if(5>u){z=7;break}L=y,K=ht,rt=b,t==null||5>u?t=0:5<=u&&t[n+0]==47&&!(t[n+4]>>5)?(U=[0],_t=[0],gt=[0],tt(lt=new w,t,n,u),Tt(lt,U,_t,gt)?(L!=null&&(L[0]=U[0]),K!=null&&(K[0]=_t[0]),rt!=null&&(rt[0]=gt[0]),t=1):t=0):t=0}else{if(10>u){z=7;break}L=ht,t==null||10>u||!aa(t,n+3,u-3)?t=0:(K=t[n+0]|t[n+1]<<8|t[n+2]<<16,rt=16383&(t[n+7]<<8|t[n+6]),t=16383&(t[n+9]<<8|t[n+8]),1&K||3<(K>>1&7)||!(K>>4&1)||K>>5>=V.Ja||!rt||!t?t=0:(y&&(y[0]=rt),L&&(L[0]=t),t=1))}if(!t||(y=y[0],ht=ht[0],X&&(P[0]!=y||T[0]!=ht)))return 3;x!=null&&(x[0]=V,x.offset=n-x.w,e(4294967286>n-x.w),e(x.offset==x.ha-u));break}return z==0||z==7&&X&&x==null?(b!=null&&(b[0]|=V.na!=null&&0<V.na.length),d!=null&&(d[0]=y),m!=null&&(m[0]=ht),0):z}function zi(t,n,u){var d=n.width,m=n.height,b=0,y=0,L=d,x=m;if(n.Da=t!=null&&0<t.Da,n.Da&&(L=t.cd,x=t.bd,b=t.v,y=t.j,11>u||(b&=-2,y&=-2),0>b||0>y||0>=L||0>=x||b+L>d||y+x>m))return 0;if(n.v=b,n.j=y,n.va=b+L,n.o=y+x,n.U=L,n.T=x,n.da=t!=null&&0<t.da,n.da){if(!Kt(L,x,u=[t.ib],b=[t.hb]))return 0;n.ib=u[0],n.hb=b[0]}return n.ob=t!=null&&t.ob,n.Kb=t==null||!t.Sd,n.da&&(n.ob=n.ib<3*d/4&&n.hb<3*m/4,n.Kb=0),1}function Ui(t){if(t==null)return 2;if(11>t.S){var n=t.f.RGBA;n.fb+=(t.height-1)*n.A,n.A=-n.A}else n=t.f.kb,t=t.height,n.O+=(t-1)*n.fa,n.fa=-n.fa,n.N+=(t-1>>1)*n.Ab,n.Ab=-n.Ab,n.W+=(t-1>>1)*n.Db,n.Db=-n.Db,n.F!=null&&(n.J+=(t-1)*n.lb,n.lb=-n.lb);return 0}function ni(t,n,u,d){if(d==null||0>=t||0>=n)return 2;if(u!=null){if(u.Da){var m=u.cd,b=u.bd,y=-2&u.v,L=-2&u.j;if(0>y||0>L||0>=m||0>=b||y+m>t||L+b>n)return 2;t=m,n=b}if(u.da){if(!Kt(t,n,m=[u.ib],b=[u.hb]))return 2;t=m[0],n=b[0]}}d.width=t,d.height=n;t:{var x=d.width,P=d.height;if(t=d.S,0>=x||0>=P||!(t>=ka&&13>t))t=2;else{if(0>=d.Rd&&d.sd==null){y=b=m=n=0;var T=(L=x*bo[t])*P;if(11>t||(b=(P+1)/2*(n=(x+1)/2),t==12&&(y=(m=x)*P)),(P=s(T+2*b+y))==null){t=1;break t}d.sd=P,11>t?((x=d.f.RGBA).eb=P,x.fb=0,x.A=L,x.size=T):((x=d.f.kb).y=P,x.O=0,x.fa=L,x.Fd=T,x.f=P,x.N=0+T,x.Ab=n,x.Cd=b,x.ea=P,x.W=0+T+b,x.Db=n,x.Ed=b,t==12&&(x.F=P,x.J=0+T+2*b),x.Tc=y,x.lb=m)}if(n=1,m=d.S,b=d.width,y=d.height,m>=ka&&13>m)if(11>m)t=d.f.RGBA,n&=(L=Math.abs(t.A))*(y-1)+b<=t.size,n&=L>=b*bo[m],n&=t.eb!=null;else{t=d.f.kb,L=(b+1)/2,T=(y+1)/2,x=Math.abs(t.fa),P=Math.abs(t.Ab);var X=Math.abs(t.Db),K=Math.abs(t.lb),V=K*(y-1)+b;n&=x*(y-1)+b<=t.Fd,n&=P*(T-1)+L<=t.Cd,n=(n&=X*(T-1)+L<=t.Ed)&x>=b&P>=L&X>=L,n&=t.y!=null,n&=t.f!=null,n&=t.ea!=null,m==12&&(n&=K>=b,n&=V<=t.Tc,n&=t.F!=null)}else n=0;t=n?0:2}}return t!=0||u!=null&&u.fd&&(t=Ui(d)),t}var We=64,ii=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],ai=24,si=32,Hi=8,ir=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];xt("Predictor0","PredictorAdd0"),G.Predictor0=function(){return 4278190080},G.Predictor1=function(t){return t},G.Predictor2=function(t,n,u){return n[u+0]},G.Predictor3=function(t,n,u){return n[u+1]},G.Predictor4=function(t,n,u){return n[u-1]},G.Predictor5=function(t,n,u){return Pt(Pt(t,n[u+1]),n[u+0])},G.Predictor6=function(t,n,u){return Pt(t,n[u-1])},G.Predictor7=function(t,n,u){return Pt(t,n[u+0])},G.Predictor8=function(t,n,u){return Pt(n[u-1],n[u+0])},G.Predictor9=function(t,n,u){return Pt(n[u+0],n[u+1])},G.Predictor10=function(t,n,u){return Pt(Pt(t,n[u-1]),Pt(n[u+0],n[u+1]))},G.Predictor11=function(t,n,u){var d=n[u+0];return 0>=Qt(d>>24&255,t>>24&255,(n=n[u-1])>>24&255)+Qt(d>>16&255,t>>16&255,n>>16&255)+Qt(d>>8&255,t>>8&255,n>>8&255)+Qt(255&d,255&t,255&n)?d:t},G.Predictor12=function(t,n,u){var d=n[u+0];return(qt((t>>24&255)+(d>>24&255)-((n=n[u-1])>>24&255))<<24|qt((t>>16&255)+(d>>16&255)-(n>>16&255))<<16|qt((t>>8&255)+(d>>8&255)-(n>>8&255))<<8|qt((255&t)+(255&d)-(255&n)))>>>0},G.Predictor13=function(t,n,u){var d=n[u-1];return(Gt((t=Pt(t,n[u+0]))>>24&255,d>>24&255)<<24|Gt(t>>16&255,d>>16&255)<<16|Gt(t>>8&255,d>>8&255)<<8|Gt(t>>0&255,d>>0&255))>>>0};var Ps=G.PredictorAdd0;G.PredictorAdd1=te,xt("Predictor2","PredictorAdd2"),xt("Predictor3","PredictorAdd3"),xt("Predictor4","PredictorAdd4"),xt("Predictor5","PredictorAdd5"),xt("Predictor6","PredictorAdd6"),xt("Predictor7","PredictorAdd7"),xt("Predictor8","PredictorAdd8"),xt("Predictor9","PredictorAdd9"),xt("Predictor10","PredictorAdd10"),xt("Predictor11","PredictorAdd11"),xt("Predictor12","PredictorAdd12"),xt("Predictor13","PredictorAdd13");var Wi=G.PredictorAdd2;ee("ColorIndexInverseTransform","MapARGB","32b",(function(t){return t>>8&255}),(function(t){return t})),ee("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(t){return t}),(function(t){return t>>8&255}));var Na,gr=G.ColorIndexInverseTransform,oi=G.MapARGB,Aa=G.VP8LColorIndexInverseTransformAlpha,xa=G.MapAlpha,ln=G.VP8LPredictorsAdd=[];ln.length=16,(G.VP8LPredictors=[]).length=16,(G.VP8LPredictorsAdd_C=[]).length=16,(G.VP8LPredictors_C=[]).length=16;var Cn,ar,Qe,hn,Qr,tn,ui,en,ke,Vi,tr,mr,ci,Sa,Gi,jn,On,fn,Bn,li,En,dn,Ji,vr,br,be,ye,Ie,De=s(511),rn=s(2041),Yi=s(225),hi=s(767),_a=0,ks=rn,Pa=Yi,hr=hi,yr=De,ka=0,Ia=1,so=2,Fa=3,Ca=4,Is=5,oo=6,Fs=7,Cs=8,ja=9,js=10,lu=[2,3,7],hu=[3,3,11],uo=[280,256,256,256,40],fu=[0,1,1,1,0],du=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],pu=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],gu=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],mu=8,Os=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],Bs=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Xi=null,vu=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],bu=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],co=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],yu=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],wu=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],Lu=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],Nu=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],pn=[],Cr=[],nn=[],Au=1,lo=2,gn=[],wr=[];it("UpsampleRgbLinePair",ne,3),it("UpsampleBgrLinePair",Le,3),it("UpsampleRgbaLinePair",Fr,4),it("UpsampleBgraLinePair",Re,4),it("UpsampleArgbLinePair",Ye,4),it("UpsampleRgba4444LinePair",Be,2),it("UpsampleRgb565LinePair",xe,2);var xu=G.UpsampleRgbLinePair,Su=G.UpsampleBgrLinePair,ho=G.UpsampleRgbaLinePair,fo=G.UpsampleBgraLinePair,po=G.UpsampleArgbLinePair,go=G.UpsampleRgba4444LinePair,_u=G.UpsampleRgb565LinePair,Oa=16,Ba=1<<Oa-1,Ki=-227,Es=482,Pu=6,mo=0,ku=s(256),Iu=s(256),Fu=s(256),Cu=s(256),ju=s(Es-Ki),Ou=s(Es-Ki);Wr("YuvToRgbRow",ne,3),Wr("YuvToBgrRow",Le,3),Wr("YuvToRgbaRow",Fr,4),Wr("YuvToBgraRow",Re,4),Wr("YuvToArgbRow",Ye,4),Wr("YuvToRgba4444Row",Be,2),Wr("YuvToRgb565Row",xe,2);var vo=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Ea=[0,2,8],Bu=[8,7,6,4,4,2,2,2,1,1,1,1],Eu=1;this.WebPDecodeRGBA=function(t,n,u,d,m){var b=Ia,y=new ti,L=new Ar;y.ba=L,L.S=b,L.width=[L.width],L.height=[L.height];var x=L.width,P=L.height,T=new Xr;if(T==null||t==null)var X=2;else e(T!=null),X=ri(t,n,u,T.width,T.height,T.Pd,T.Qd,T.format,null);if(X!=0?x=0:(x!=null&&(x[0]=T.width[0]),P!=null&&(P[0]=T.height[0]),x=1),x){L.width=L.width[0],L.height=L.height[0],d!=null&&(d[0]=L.width),m!=null&&(m[0]=L.height);t:{if(d=new Jn,(m=new Ei).data=t,m.w=n,m.ha=u,m.kd=1,n=[0],e(m!=null),((t=ri(m.data,m.w,m.ha,null,null,null,n,null,m))==0||t==7)&&n[0]&&(t=4),(n=t)==0){if(e(y!=null),d.data=m.data,d.w=m.w+m.offset,d.ha=m.ha-m.offset,d.put=qr,d.ac=He,d.bc=Dr,d.ma=y,m.xa){if((t=pr())==null){y=1;break t}if((function(K,V){var ht=[0],rt=[0],z=[0];e:for(;;){if(K==null)return 0;if(V==null)return K.a=2,0;if(K.l=V,K.a=0,tt(K.m,V.data,V.w,V.ha),!Tt(K.m,ht,rt,z)){K.a=3;break e}if(K.xb=lo,V.width=ht[0],V.height=rt[0],!zr(ht[0],rt[0],1,K,null))break e;return 1}return e(K.a!=0),0})(t,d)){if(d=(n=ni(d.width,d.height,y.Oa,y.ba))==0){e:{d=t;r:for(;;){if(d==null){d=0;break e}if(e(d.s.yc!=null),e(d.s.Ya!=null),e(0<d.s.Wb),e((u=d.l)!=null),e((m=u.ma)!=null),d.xb!=0){if(d.ca=m.ba,d.tb=m.tb,e(d.ca!=null),!zi(m.Oa,u,Fa)){d.a=2;break r}if(!_n(d,u.width)||u.da)break r;if((u.da||ue(d.ca.S))&&Y(),11>d.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),d.ca.f.kb.F!=null&&Y()),d.Pb&&0<d.s.ua&&d.s.vb.X==null&&!Wt(d.s.vb,d.s.Wa.Xa)){d.a=1;break r}d.xb=0}if(!Pr(d,d.V,d.Ba,d.c,d.i,u.o,zn))break r;m.Dc=d.Ma,d=1;break e}e(d.a!=0),d=0}d=!d}d&&(n=t.a)}else n=t.a}else{if((t=new us)==null){y=1;break t}if(t.Fa=m.na,t.P=m.P,t.qc=m.Sa,sa(t,d)){if((n=ni(d.width,d.height,y.Oa,y.ba))==0){if(t.Aa=0,u=y.Oa,e((m=t)!=null),u!=null){if(0<(x=0>(x=u.Md)?0:100<x?255:255*x/100)){for(P=T=0;4>P;++P)12>(X=m.pb[P]).lc&&(X.ia=x*Bu[0>X.lc?0:X.lc]>>3),T|=X.ia;T&&(alert("todo:VP8InitRandom"),m.ia=1)}m.Ga=u.Id,100<m.Ga?m.Ga=100:0>m.Ga&&(m.Ga=0)}cs(t,d)||(n=t.a)}}else n=t.a}n==0&&y.Oa!=null&&y.Oa.fd&&(n=Ui(y.ba))}y=n}b=y!=0?null:11>b?L.f.RGBA.eb:L.f.kb.y}else b=null;return b};var bo=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function g(G,vt){for(var bt="",k=0;k<4;k++)bt+=String.fromCharCode(G[vt++]);return bt}function A(G,vt){return(G[vt+0]<<0|G[vt+1]<<8|G[vt+2]<<16)>>>0}function N(G,vt){return(G[vt+0]<<0|G[vt+1]<<8|G[vt+2]<<16|G[vt+3]<<24)>>>0}new f;var S=[0],p=[0],B=[],F=new f,q=i,_=(function(G,vt){var bt={},k=0,I=!1,H=0,R=0;if(bt.frames=[],!(function(j,M,W,J){for(var $=0;$<J;$++)if(j[M+$]!=W.charCodeAt($))return!0;return!1})(G,vt,"RIFF",4)){var ut,st;for(N(G,vt+=4),vt+=8;vt<G.length;){var mt=g(G,vt),tt=N(G,vt+=4);vt+=4;var pt=tt+(1&tt);switch(mt){case"VP8 ":case"VP8L":bt.frames[k]===void 0&&(bt.frames[k]={}),(w=bt.frames[k]).src_off=I?R:vt-8,w.src_size=H+tt+8,k++,I&&(I=!1,H=0,R=0);break;case"VP8X":(w=bt.header={}).feature_flags=G[vt];var ft=vt+4;w.canvas_width=1+A(G,ft),ft+=3,w.canvas_height=1+A(G,ft),ft+=3;break;case"ALPH":I=!0,H=pt+8,R=vt-8;break;case"ANIM":(w=bt.header).bgcolor=N(G,vt),ft=vt+4,w.loop_count=(ut=G)[(st=ft)+0]<<0|ut[st+1]<<8,ft+=2;break;case"ANMF":var Mt,w;(w=bt.frames[k]={}).offset_x=2*A(G,vt),vt+=3,w.offset_y=2*A(G,vt),vt+=3,w.width=1+A(G,vt),vt+=3,w.height=1+A(G,vt),vt+=3,w.duration=A(G,vt),vt+=3,Mt=G[vt++],w.dispose=1&Mt,w.blend=Mt>>1&1}mt!="ANMF"&&(vt+=pt)}return bt}})(q,0);_.response=q,_.rgbaoutput=!0,_.dataurl=!1;var E=_.header?_.header:null,Z=_.frames?_.frames:null;if(E){E.loop_counter=E.loop_count,S=[E.canvas_height],p=[E.canvas_width];for(var ot=0;ot<Z.length&&Z[ot].blend!=0;ot++);}var dt=Z[0],Nt=F.WebPDecodeRGBA(q,dt.src_off,dt.src_size,p,S);dt.rgba=Nt,dt.imgwidth=p[0],dt.imgheight=S[0];for(var nt=0;nt<p[0]*S[0]*4;nt++)B[nt]=Nt[nt];return this.width=p,this.height=S,this.data=B,this}(function(i){var e=function(){return typeof Zs=="function"},r=function(S,p,B,F){var q=4,_=l;switch(F){case i.image_compression.FAST:q=1,_=s;break;case i.image_compression.MEDIUM:q=6,_=h;break;case i.image_compression.SLOW:q=9,_=f}S=a(S,p,B,_);var E=Zs(S,{level:q});return i.__addimage__.arrayBufferToBinaryString(E)},a=function(S,p,B,F){for(var q,_,E,Z=S.length/p,ot=new Uint8Array(S.length+Z),dt=A(),Nt=0;Nt<Z;Nt+=1){if(E=Nt*p,q=S.subarray(E,E+p),F)ot.set(F(q,B,_),E+Nt);else{for(var nt,G=dt.length,vt=[];nt<G;nt+=1)vt[nt]=dt[nt](q,B,_);var bt=N(vt.concat());ot.set(vt[bt],E+Nt)}_=q}return ot},c=function(S){var p=Array.apply([],S);return p.unshift(0),p},s=function(S,p){var B,F=[],q=S.length;F[0]=1;for(var _=0;_<q;_+=1)B=S[_-p]||0,F[_+1]=S[_]-B+256&255;return F},l=function(S,p,B){var F,q=[],_=S.length;q[0]=2;for(var E=0;E<_;E+=1)F=B&&B[E]||0,q[E+1]=S[E]-F+256&255;return q},h=function(S,p,B){var F,q,_=[],E=S.length;_[0]=3;for(var Z=0;Z<E;Z+=1)F=S[Z-p]||0,q=B&&B[Z]||0,_[Z+1]=S[Z]+256-(F+q>>>1)&255;return _},f=function(S,p,B){var F,q,_,E,Z=[],ot=S.length;Z[0]=4;for(var dt=0;dt<ot;dt+=1)F=S[dt-p]||0,q=B&&B[dt]||0,_=B&&B[dt-p]||0,E=g(F,q,_),Z[dt+1]=S[dt]-E+256&255;return Z},g=function(S,p,B){if(S===p&&p===B)return S;var F=Math.abs(p-B),q=Math.abs(S-B),_=Math.abs(S+p-B-B);return F<=q&&F<=_?S:q<=_?p:B},A=function(){return[c,s,l,h,f]},N=function(S){var p=S.map((function(B){return B.reduce((function(F,q){return F+Math.abs(q)}),0)}));return p.indexOf(Math.min.apply(null,p))};i.processPNG=function(S,p,B,F){var q,_,E,Z,ot,dt,Nt,nt,G,vt,bt,k,I,H,R,ut=this.decode.FLATE_DECODE,st="";if(this.__addimage__.isArrayBuffer(S)&&(S=new Uint8Array(S)),this.__addimage__.isArrayBufferView(S)){if(S=(E=new gc(S)).imgData,_=E.bits,q=E.colorSpace,ot=E.colors,[4,6].indexOf(E.colorType)!==-1){if(E.bits===8){G=(nt=E.pixelBitlength==32?new Uint32Array(E.decodePixels().buffer):E.pixelBitlength==16?new Uint16Array(E.decodePixels().buffer):new Uint8Array(E.decodePixels().buffer)).length,bt=new Uint8Array(G*E.colors),vt=new Uint8Array(G);var mt,tt=E.pixelBitlength-E.bits;for(H=0,R=0;H<G;H++){for(I=nt[H],mt=0;mt<tt;)bt[R++]=I>>>mt&255,mt+=E.bits;vt[H]=I>>>mt&255}}if(E.bits===16){G=(nt=new Uint32Array(E.decodePixels().buffer)).length,bt=new Uint8Array(G*(32/E.pixelBitlength)*E.colors),vt=new Uint8Array(G*(32/E.pixelBitlength)),k=E.colors>1,H=0,R=0;for(var pt=0;H<G;)I=nt[H++],bt[R++]=I>>>0&255,k&&(bt[R++]=I>>>16&255,I=nt[H++],bt[R++]=I>>>0&255),vt[pt++]=I>>>16&255;_=8}F!==i.image_compression.NONE&&e()?(S=r(bt,E.width*E.colors,E.colors,F),Nt=r(vt,E.width,1,F)):(S=bt,Nt=vt,ut=void 0)}if(E.colorType===3&&(q=this.color_spaces.INDEXED,dt=E.palette,E.transparency.indexed)){var ft=E.transparency.indexed,Mt=0;for(H=0,G=ft.length;H<G;++H)Mt+=ft[H];if((Mt/=255)===G-1&&ft.indexOf(0)!==-1)Z=[ft.indexOf(0)];else if(Mt!==G){for(nt=E.decodePixels(),vt=new Uint8Array(nt.length),H=0,G=nt.length;H<G;H++)vt[H]=ft[nt[H]];Nt=r(vt,E.width,1)}}var w=(function(j){var M;switch(j){case i.image_compression.FAST:M=11;break;case i.image_compression.MEDIUM:M=13;break;case i.image_compression.SLOW:M=14;break;default:M=12}return M})(F);return ut===this.decode.FLATE_DECODE&&(st="/Predictor "+w+" "),st+="/Colors "+ot+" /BitsPerComponent "+_+" /Columns "+E.width,(this.__addimage__.isArrayBuffer(S)||this.__addimage__.isArrayBufferView(S))&&(S=this.__addimage__.arrayBufferToBinaryString(S)),(Nt&&this.__addimage__.isArrayBuffer(Nt)||this.__addimage__.isArrayBufferView(Nt))&&(Nt=this.__addimage__.arrayBufferToBinaryString(Nt)),{alias:B,data:S,index:p,filter:ut,decodeParameters:st,transparency:Z,palette:dt,sMask:Nt,predictor:w,width:E.width,height:E.height,bitsPerComponent:_,colorSpace:q}}}})(zt.API),(function(i){i.processGIF89A=function(e,r,a,c){var s=new mc(e),l=s.width,h=s.height,f=[];s.decodeAndBlitFrameRGBA(0,f);var g={data:f,width:l,height:h},A=new Ks(100).encode(g,100);return i.processJPEG.call(this,A,r,a,c)},i.processGIF87A=i.processGIF89A})(zt.API),Or.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var i=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(i);for(var e=0;e<i;e++){var r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),c=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:c,green:a,blue:r,quad:s}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Or.prototype.parseBGR=function(){this.pos=this.offset;try{var i="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[i]()}catch(r){me.log("bit decode error:"+r)}},Or.prototype.bit1=function(){var i,e=Math.ceil(this.width/8),r=e%4;for(i=this.height-1;i>=0;i--){for(var a=this.bottom_up?i:this.height-1-i,c=0;c<e;c++)for(var s=this.datav.getUint8(this.pos++,!0),l=a*this.width*4+8*c*4,h=0;h<8&&8*c+h<this.width;h++){var f=this.palette[s>>7-h&1];this.data[l+4*h]=f.blue,this.data[l+4*h+1]=f.green,this.data[l+4*h+2]=f.red,this.data[l+4*h+3]=255}r!==0&&(this.pos+=4-r)}},Or.prototype.bit4=function(){for(var i=Math.ceil(this.width/2),e=i%4,r=this.height-1;r>=0;r--){for(var a=this.bottom_up?r:this.height-1-r,c=0;c<i;c++){var s=this.datav.getUint8(this.pos++,!0),l=a*this.width*4+2*c*4,h=s>>4,f=15&s,g=this.palette[h];if(this.data[l]=g.blue,this.data[l+1]=g.green,this.data[l+2]=g.red,this.data[l+3]=255,2*c+1>=this.width)break;g=this.palette[f],this.data[l+4]=g.blue,this.data[l+4+1]=g.green,this.data[l+4+2]=g.red,this.data[l+4+3]=255}e!==0&&(this.pos+=4-e)}},Or.prototype.bit8=function(){for(var i=this.width%4,e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,a=0;a<this.width;a++){var c=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+4*a;if(c<this.palette.length){var l=this.palette[c];this.data[s]=l.red,this.data[s+1]=l.green,this.data[s+2]=l.blue,this.data[s+3]=255}else this.data[s]=255,this.data[s+1]=255,this.data[s+2]=255,this.data[s+3]=255}i!==0&&(this.pos+=4-i)}},Or.prototype.bit15=function(){for(var i=this.width%3,e=parseInt("11111",2),r=this.height-1;r>=0;r--){for(var a=this.bottom_up?r:this.height-1-r,c=0;c<this.width;c++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var l=(s&e)/e*255|0,h=(s>>5&e)/e*255|0,f=(s>>10&e)/e*255|0,g=s>>15?255:0,A=a*this.width*4+4*c;this.data[A]=f,this.data[A+1]=h,this.data[A+2]=l,this.data[A+3]=g}this.pos+=i}},Or.prototype.bit16=function(){for(var i=this.width%3,e=parseInt("11111",2),r=parseInt("111111",2),a=this.height-1;a>=0;a--){for(var c=this.bottom_up?a:this.height-1-a,s=0;s<this.width;s++){var l=this.datav.getUint16(this.pos,!0);this.pos+=2;var h=(l&e)/e*255|0,f=(l>>5&r)/r*255|0,g=(l>>11)/e*255|0,A=c*this.width*4+4*s;this.data[A]=g,this.data[A+1]=f,this.data[A+2]=h,this.data[A+3]=255}this.pos+=i}},Or.prototype.bit24=function(){for(var i=this.height-1;i>=0;i--){for(var e=this.bottom_up?i:this.height-1-i,r=0;r<this.width;r++){var a=this.datav.getUint8(this.pos++,!0),c=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),l=e*this.width*4+4*r;this.data[l]=s,this.data[l+1]=c,this.data[l+2]=a,this.data[l+3]=255}this.pos+=this.width%4}},Or.prototype.bit32=function(){for(var i=this.height-1;i>=0;i--)for(var e=this.bottom_up?i:this.height-1-i,r=0;r<this.width;r++){var a=this.datav.getUint8(this.pos++,!0),c=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),l=this.datav.getUint8(this.pos++,!0),h=e*this.width*4+4*r;this.data[h]=s,this.data[h+1]=c,this.data[h+2]=a,this.data[h+3]=l}},Or.prototype.getData=function(){return this.data},(function(i){i.processBMP=function(e,r,a,c){var s=new Or(e,!1),l=s.width,h=s.height,f={data:s.getData(),width:l,height:h},g=new Ks(100).encode(f,100);return i.processJPEG.call(this,g,r,a,c)}})(zt.API),Ko.prototype.getData=function(){return this.data},(function(i){i.processWEBP=function(e,r,a,c){var s=new Ko(e),l=s.width,h=s.height,f={data:s.getData(),width:l,height:h},g=new Ks(100).encode(f,100);return i.processJPEG.call(this,g,r,a,c)}})(zt.API),zt.API.processRGBA=function(i,e,r){for(var a=i.data,c=a.length,s=new Uint8Array(c/4*3),l=new Uint8Array(c/4),h=0,f=0,g=0;g<c;g+=4){var A=a[g],N=a[g+1],S=a[g+2],p=a[g+3];s[h++]=A,s[h++]=N,s[h++]=S,l[f++]=p}var B=this.__addimage__.arrayBufferToBinaryString(s);return{alpha:this.__addimage__.arrayBufferToBinaryString(l),data:B,index:e,alias:r,colorSpace:"DeviceRGB",bitsPerComponent:8,width:i.width,height:i.height}},zt.API.setLanguage=function(i){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[i]!==void 0&&(this.internal.languageSettings.languageCode=i,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",(function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")})),this.internal.languageSettings.isSubscribed=!0)),this},vi=zt.API,Xa=vi.getCharWidthsArray=function(i,e){var r,a,c=(e=e||{}).font||this.internal.getFont(),s=e.fontSize||this.internal.getFontSize(),l=e.charSpace||this.internal.getCharSpace(),h=e.widths?e.widths:c.metadata.Unicode.widths,f=h.fof?h.fof:1,g=e.kerning?e.kerning:c.metadata.Unicode.kerning,A=g.fof?g.fof:1,N=e.doKerning!==!1,S=0,p=i.length,B=0,F=h[0]||f,q=[];for(r=0;r<p;r++)a=i.charCodeAt(r),typeof c.metadata.widthOfString=="function"?q.push((c.metadata.widthOfGlyph(c.metadata.characterToGlyph(a))+l*(1e3/s)||0)/1e3):(S=N&&ve(g[a])==="object"&&!isNaN(parseInt(g[a][B],10))?g[a][B]/A:0,q.push((h[a]||F)/f+S)),B=a;return q},Go=vi.getStringUnitWidth=function(i,e){var r=(e=e||{}).fontSize||this.internal.getFontSize(),a=e.font||this.internal.getFont(),c=e.charSpace||this.internal.getCharSpace();return vi.processArabic&&(i=vi.processArabic(i)),typeof a.metadata.widthOfString=="function"?a.metadata.widthOfString(i,r,c)/r:Xa.apply(this,arguments).reduce((function(s,l){return s+l}),0)},Jo=function(i,e,r,a){for(var c=[],s=0,l=i.length,h=0;s!==l&&h+e[s]<r;)h+=e[s],s++;c.push(i.slice(0,s));var f=s;for(h=0;s!==l;)h+e[s]>a&&(c.push(i.slice(f,s)),h=0,f=s),h+=e[s],s++;return f!==s&&c.push(i.slice(f,s)),c},Yo=function(i,e,r){r||(r={});var a,c,s,l,h,f,g,A=[],N=[A],S=r.textIndent||0,p=0,B=0,F=i.split(" "),q=Xa.apply(this,[" ",r])[0];if(f=r.lineIndent===-1?F[0].length+2:r.lineIndent||0){var _=Array(f).join(" "),E=[];F.map((function(ot){(ot=ot.split(/\s*\n/)).length>1?E=E.concat(ot.map((function(dt,Nt){return(Nt&&dt.length?`
|
||
`:"")+dt}))):E.push(ot[0])})),F=E,f=Go.apply(this,[_,r])}for(s=0,l=F.length;s<l;s++){var Z=0;if(a=F[s],f&&a[0]==`
|
||
`&&(a=a.substr(1),Z=1),S+p+(B=(c=Xa.apply(this,[a,r])).reduce((function(ot,dt){return ot+dt}),0))>e||Z){if(B>e){for(h=Jo.apply(this,[a,c,e-(S+p),e]),A.push(h.shift()),A=[h.pop()];h.length;)N.push([h.shift()]);B=c.slice(a.length-(A[0]?A[0].length:0)).reduce((function(ot,dt){return ot+dt}),0)}else A=[a];N.push(A),S=B+f,p=q}else A.push(a),S+=p+B,p=q}return g=f?function(ot,dt){return(dt?_:"")+ot.join(" ")}:function(ot){return ot.join(" ")},N.map(g)},vi.splitTextToSize=function(i,e,r){var a,c=(r=r||{}).fontSize||this.internal.getFontSize(),s=(function(A){if(A.widths&&A.kerning)return{widths:A.widths,kerning:A.kerning};var N=this.internal.getFont(A.fontName,A.fontStyle);return N.metadata.Unicode?{widths:N.metadata.Unicode.widths||{0:1},kerning:N.metadata.Unicode.kerning||{}}:{font:N.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,r);a=Array.isArray(i)?i:String(i).split(/\r?\n/);var l=1*this.internal.scaleFactor*e/c;s.textIndent=r.textIndent?1*r.textIndent*this.internal.scaleFactor/c:0,s.lineIndent=r.lineIndent;var h,f,g=[];for(h=0,f=a.length;h<f;h++)g=g.concat(Yo.apply(this,[a[h],l,s]));return g},(function(i){i.__fontmetrics__=i.__fontmetrics__||{};for(var e="klmnopqrstuvwxyz",r={},a={},c=0;c<e.length;c++)r[e[c]]="0123456789abcdef"[c],a["0123456789abcdef"[c]]=e[c];var s=function(N){return"0x"+parseInt(N,10).toString(16)},l=i.__fontmetrics__.compress=function(N){var S,p,B,F,q=["{"];for(var _ in N){if(S=N[_],isNaN(parseInt(_,10))?p="'"+_+"'":(_=parseInt(_,10),p=(p=s(_).slice(2)).slice(0,-1)+a[p.slice(-1)]),typeof S=="number")S<0?(B=s(S).slice(3),F="-"):(B=s(S).slice(2),F=""),B=F+B.slice(0,-1)+a[B.slice(-1)];else{if(ve(S)!=="object")throw new Error("Don't know what to do with value type "+ve(S)+".");B=l(S)}q.push(p+B)}return q.push("}"),q.join("")},h=i.__fontmetrics__.uncompress=function(N){if(typeof N!="string")throw new Error("Invalid argument passed to uncompress.");for(var S,p,B,F,q={},_=1,E=q,Z=[],ot="",dt="",Nt=N.length-1,nt=1;nt<Nt;nt+=1)(F=N[nt])=="'"?S?(B=S.join(""),S=void 0):S=[]:S?S.push(F):F=="{"?(Z.push([E,B]),E={},B=void 0):F=="}"?((p=Z.pop())[0][p[1]]=E,B=void 0,E=p[0]):F=="-"?_=-1:B===void 0?r.hasOwnProperty(F)?(ot+=r[F],B=parseInt(ot,16)*_,_=1,ot=""):ot+=F:r.hasOwnProperty(F)?(dt+=r[F],E[B]=parseInt(dt,16)*_,_=1,B=void 0,dt=""):dt+=F;return q},f={codePages:["WinAnsiEncoding"],WinAnsiEncoding:h("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},g={Unicode:{Courier:f,"Courier-Bold":f,"Courier-BoldOblique":f,"Courier-Oblique":f,Helvetica:f,"Helvetica-Bold":f,"Helvetica-BoldOblique":f,"Helvetica-Oblique":f,"Times-Roman":f,"Times-Bold":f,"Times-BoldItalic":f,"Times-Italic":f}},A={Unicode:{"Courier-Oblique":h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":h("{'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{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":h("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":h("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:h("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:h("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":h("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:h("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":h("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":h("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":h("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};i.events.push(["addFont",function(N){var S=N.font,p=A.Unicode[S.postScriptName];p&&(S.metadata.Unicode={},S.metadata.Unicode.widths=p.widths,S.metadata.Unicode.kerning=p.kerning);var B=g.Unicode[S.postScriptName];B&&(S.metadata.Unicode.encoding=B,S.encoding=B.codePages[0])}])})(zt.API),(function(i){var e=function(r){for(var a=r.length,c=new Uint8Array(a),s=0;s<a;s++)c[s]=r.charCodeAt(s);return c};i.API.events.push(["addFont",function(r){var a=void 0,c=r.font,s=r.instance;if(!c.isStandardFont){if(s===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+c.postScriptName+"').");if(typeof(a=s.existsFileInVFS(c.postScriptName)===!1?s.loadFile(c.postScriptName):s.getFileFromVFS(c.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+c.postScriptName+"').");(function(l,h){h=/^\x00\x01\x00\x00/.test(h)?e(h):e(ea(h)),l.metadata=i.API.TTFFont.open(h),l.metadata.Unicode=l.metadata.Unicode||{encoding:{},kerning:{},widths:[]},l.metadata.glyIdsUsed=[0]})(c,a)}}])})(zt),(function(i){function e(){return(Ut.canvg?Promise.resolve(Ut.canvg):$s(()=>import("./canvg-zpqZurcc.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))).catch((function(r){return Promise.reject(new Error("Could not load canvg: "+r))})).then((function(r){return r.default?r.default:r}))}zt.API.addSvgAsImage=function(r,a,c,s,l,h,f,g){if(isNaN(a)||isNaN(c))throw me.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(s)||isNaN(l))throw me.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var A=document.createElement("canvas");A.width=s,A.height=l;var N=A.getContext("2d");N.fillStyle="#fff",N.fillRect(0,0,A.width,A.height);var S={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},p=this;return e().then((function(B){return B.fromString(N,r,S)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(B){return B.render(S)})).then((function(){p.addImage(A.toDataURL("image/jpeg",1),a,c,s,l,f,g)}))}})(),zt.API.putTotalPages=function(i){var e,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(i,"g"),r=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(i,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var a=1;a<=this.internal.getNumberOfPages();a++)for(var c=0;c<this.internal.pages[a].length;c++)this.internal.pages[a][c]=this.internal.pages[a][c].replace(e,r);return this},zt.API.viewerPreferences=function(i,e){var r;i=i||{},e=e||!1;var a,c,s,l={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},h=Object.keys(l),f=[],g=0,A=0,N=0;function S(B,F){var q,_=!1;for(q=0;q<B.length;q+=1)B[q]===F&&(_=!0);return _}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(l)),this.internal.viewerpreferences.isSubscribed=!1),r=this.internal.viewerpreferences.configuration,i==="reset"||e===!0){var p=h.length;for(N=0;N<p;N+=1)r[h[N]].value=r[h[N]].defaultValue,r[h[N]].explicitSet=!1}if(ve(i)==="object"){for(c in i)if(s=i[c],S(h,c)&&s!==void 0){if(r[c].type==="boolean"&&typeof s=="boolean")r[c].value=s;else if(r[c].type==="name"&&S(r[c].valueSet,s))r[c].value=s;else if(r[c].type==="integer"&&Number.isInteger(s))r[c].value=s;else if(r[c].type==="array"){for(g=0;g<s.length;g+=1)if(a=!0,s[g].length===1&&typeof s[g][0]=="number")f.push(String(s[g]-1));else if(s[g].length>1){for(A=0;A<s[g].length;A+=1)typeof s[g][A]!="number"&&(a=!1);a===!0&&f.push([s[g][0]-1,s[g][1]-1].join(" "))}r[c].value="["+f.join(" ")+"]"}else r[c].value=r[c].defaultValue;r[c].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",(function(){var B,F=[];for(B in r)r[B].explicitSet===!0&&(r[B].type==="name"?F.push("/"+B+" /"+r[B].value):F.push("/"+B+" "+r[B].value));F.length!==0&&this.internal.write(`/ViewerPreferences
|
||
<<
|
||
`+F.join(`
|
||
`)+`
|
||
>>`)})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=r,this},(function(i){var e=function(){var a='<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>',c=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),s=unescape(encodeURIComponent(a)),l=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),h=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),f=unescape(encodeURIComponent("</x:xmpmeta>")),g=s.length+l.length+h.length+c.length+f.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+g+" >>"),this.internal.write("stream"),this.internal.write(c+s+l+h+f),this.internal.write("endstream"),this.internal.write("endobj")},r=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};i.addMetadata=function(a,c){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:a,namespaceuri:c||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",r),this.internal.events.subscribe("postPutResources",e)),this}})(zt.API),(function(i){var e=i.API,r=e.pdfEscape16=function(s,l){for(var h,f=l.metadata.Unicode.widths,g=["","0","00","000","0000"],A=[""],N=0,S=s.length;N<S;++N){if(h=l.metadata.characterToGlyph(s.charCodeAt(N)),l.metadata.glyIdsUsed.push(h),l.metadata.toUnicode[h]=s.charCodeAt(N),f.indexOf(h)==-1&&(f.push(h),f.push([parseInt(l.metadata.widthOfGlyph(h),10)])),h=="0")return A.join("");h=h.toString(16),A.push(g[4-h.length],h)}return A.join("")},a=function(s){var l,h,f,g,A,N,S;for(A=`/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`,f=[],N=0,S=(h=Object.keys(s).sort((function(p,B){return p-B}))).length;N<S;N++)l=h[N],f.length>=100&&(A+=`
|
||
`+f.length+` beginbfchar
|
||
`+f.join(`
|
||
`)+`
|
||
endbfchar`,f=[]),s[l]!==void 0&&s[l]!==null&&typeof s[l].toString=="function"&&(g=("0000"+s[l].toString(16)).slice(-4),l=("0000"+(+l).toString(16)).slice(-4),f.push("<"+l+"><"+g+">"));return f.length&&(A+=`
|
||
`+f.length+` beginbfchar
|
||
`+f.join(`
|
||
`)+`
|
||
endbfchar
|
||
`),A+=`endcmap
|
||
CMapName currentdict /CMap defineresource pop
|
||
end
|
||
end`};e.events.push(["putFont",function(s){(function(l){var h=l.font,f=l.out,g=l.newObject,A=l.putStream;if(h.metadata instanceof i.API.TTFFont&&h.encoding==="Identity-H"){for(var N=h.metadata.Unicode.widths,S=h.metadata.subset.encode(h.metadata.glyIdsUsed,1),p="",B=0;B<S.length;B++)p+=String.fromCharCode(S[B]);var F=g();A({data:p,addLength1:!0,objectId:F}),f("endobj");var q=g();A({data:a(h.metadata.toUnicode),addLength1:!0,objectId:q}),f("endobj");var _=g();f("<<"),f("/Type /FontDescriptor"),f("/FontName /"+yi(h.fontName)),f("/FontFile2 "+F+" 0 R"),f("/FontBBox "+i.API.PDFObject.convert(h.metadata.bbox)),f("/Flags "+h.metadata.flags),f("/StemV "+h.metadata.stemV),f("/ItalicAngle "+h.metadata.italicAngle),f("/Ascent "+h.metadata.ascender),f("/Descent "+h.metadata.decender),f("/CapHeight "+h.metadata.capHeight),f(">>"),f("endobj");var E=g();f("<<"),f("/Type /Font"),f("/BaseFont /"+yi(h.fontName)),f("/FontDescriptor "+_+" 0 R"),f("/W "+i.API.PDFObject.convert(N)),f("/CIDToGIDMap /Identity"),f("/DW 1000"),f("/Subtype /CIDFontType2"),f("/CIDSystemInfo"),f("<<"),f("/Supplement 0"),f("/Registry (Adobe)"),f("/Ordering ("+h.encoding+")"),f(">>"),f(">>"),f("endobj"),h.objectNumber=g(),f("<<"),f("/Type /Font"),f("/Subtype /Type0"),f("/ToUnicode "+q+" 0 R"),f("/BaseFont /"+yi(h.fontName)),f("/Encoding /"+h.encoding),f("/DescendantFonts ["+E+" 0 R]"),f(">>"),f("endobj"),h.isAlreadyPutted=!0}})(s)}]),e.events.push(["putFont",function(s){(function(l){var h=l.font,f=l.out,g=l.newObject,A=l.putStream;if(h.metadata instanceof i.API.TTFFont&&h.encoding==="WinAnsiEncoding"){for(var N=h.metadata.rawData,S="",p=0;p<N.length;p++)S+=String.fromCharCode(N[p]);var B=g();A({data:S,addLength1:!0,objectId:B}),f("endobj");var F=g();A({data:a(h.metadata.toUnicode),addLength1:!0,objectId:F}),f("endobj");var q=g();f("<<"),f("/Descent "+h.metadata.decender),f("/CapHeight "+h.metadata.capHeight),f("/StemV "+h.metadata.stemV),f("/Type /FontDescriptor"),f("/FontFile2 "+B+" 0 R"),f("/Flags 96"),f("/FontBBox "+i.API.PDFObject.convert(h.metadata.bbox)),f("/FontName /"+yi(h.fontName)),f("/ItalicAngle "+h.metadata.italicAngle),f("/Ascent "+h.metadata.ascender),f(">>"),f("endobj"),h.objectNumber=g();for(var _=0;_<h.metadata.hmtx.widths.length;_++)h.metadata.hmtx.widths[_]=parseInt(h.metadata.hmtx.widths[_]*(1e3/h.metadata.head.unitsPerEm));f("<</Subtype/TrueType/Type/Font/ToUnicode "+F+" 0 R/BaseFont/"+yi(h.fontName)+"/FontDescriptor "+q+" 0 R/Encoding/"+h.encoding+" /FirstChar 29 /LastChar 255 /Widths "+i.API.PDFObject.convert(h.metadata.hmtx.widths)+">>"),f("endobj"),h.isAlreadyPutted=!0}})(s)}]);var c=function(s){var l,h=s.text||"",f=s.x,g=s.y,A=s.options||{},N=s.mutex||{},S=N.pdfEscape,p=N.activeFontKey,B=N.fonts,F=p,q="",_=0,E="",Z=B[F].encoding;if(B[F].encoding!=="Identity-H")return{text:h,x:f,y:g,options:A,mutex:N};for(E=h,F=p,Array.isArray(h)&&(E=h[0]),_=0;_<E.length;_+=1)B[F].metadata.hasOwnProperty("cmap")&&(l=B[F].metadata.cmap.unicode.codeMap[E[_].charCodeAt(0)]),l||E[_].charCodeAt(0)<256&&B[F].metadata.hasOwnProperty("Unicode")?q+=E[_]:q+="";var ot="";return parseInt(F.slice(1))<14||Z==="WinAnsiEncoding"?ot=S(q,F).split("").map((function(dt){return dt.charCodeAt(0).toString(16)})).join(""):Z==="Identity-H"&&(ot=r(q,B[F])),N.isHex=!0,{text:ot,x:f,y:g,options:A,mutex:N}};e.events.push(["postProcessText",function(s){var l=s.text||"",h=[],f={text:l,x:s.x,y:s.y,options:s.options,mutex:s.mutex};if(Array.isArray(l)){var g=0;for(g=0;g<l.length;g+=1)Array.isArray(l[g])&&l[g].length===3?h.push([c(Object.assign({},f,{text:l[g][0]})).text,l[g][1],l[g][2]]):h.push(c(Object.assign({},f,{text:l[g]})).text);s.text=h}else s.text=c(Object.assign({},f,{text:l})).text}])})(zt),(function(i){var e=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};i.existsFileInVFS=function(r){return e.call(this),this.internal.vFS[r]!==void 0},i.addFileToVFS=function(r,a){return e.call(this),this.internal.vFS[r]=a,this},i.getFileFromVFS=function(r){return e.call(this),this.internal.vFS[r]!==void 0?this.internal.vFS[r]:null}})(zt.API),(function(i){i.__bidiEngine__=i.prototype.__bidiEngine__=function(a){var c,s,l,h,f,g,A,N=e,S=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],p=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],B={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},F={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},q=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],_=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),E=!1,Z=0;this.__bidiEngine__={};var ot=function(k){var I=k.charCodeAt(),H=I>>8,R=F[H];return R!==void 0?N[256*R+(255&I)]:H===252||H===253?"AL":_.test(H)?"L":H===8?"R":"N"},dt=function(k){for(var I,H=0;H<k.length;H++){if((I=ot(k.charAt(H)))==="L")return!1;if(I==="R")return!0}return!1},Nt=function(k,I,H,R){var ut,st,mt,tt,pt=I[R];switch(pt){case"L":case"R":E=!1;break;case"N":case"AN":break;case"EN":E&&(pt="AN");break;case"AL":E=!0,pt="R";break;case"WS":pt="N";break;case"CS":R<1||R+1>=I.length||(ut=H[R-1])!=="EN"&&ut!=="AN"||(st=I[R+1])!=="EN"&&st!=="AN"?pt="N":E&&(st="AN"),pt=st===ut?st:"N";break;case"ES":pt=(ut=R>0?H[R-1]:"B")==="EN"&&R+1<I.length&&I[R+1]==="EN"?"EN":"N";break;case"ET":if(R>0&&H[R-1]==="EN"){pt="EN";break}if(E){pt="N";break}for(mt=R+1,tt=I.length;mt<tt&&I[mt]==="ET";)mt++;pt=mt<tt&&I[mt]==="EN"?"EN":"N";break;case"NSM":if(l&&!h){for(tt=I.length,mt=R+1;mt<tt&&I[mt]==="NSM";)mt++;if(mt<tt){var ft=k[R],Mt=ft>=1425&&ft<=2303||ft===64286;if(ut=I[mt],Mt&&(ut==="R"||ut==="AL")){pt="R";break}}}pt=R<1||(ut=I[R-1])==="B"?"N":H[R-1];break;case"B":E=!1,c=!0,pt=Z;break;case"S":s=!0,pt="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":E=!1;break;case"BN":pt="N"}return pt},nt=function(k,I,H){var R=k.split("");return H&&G(R,H,{hiLevel:Z}),R.reverse(),I&&I.reverse(),R.join("")},G=function(k,I,H){var R,ut,st,mt,tt,pt=-1,ft=k.length,Mt=0,w=[],j=Z?p:S,M=[];for(E=!1,c=!1,s=!1,ut=0;ut<ft;ut++)M[ut]=ot(k[ut]);for(st=0;st<ft;st++){if(tt=Mt,w[st]=Nt(k,M,w,st),R=240&(Mt=j[tt][B[w[st]]]),Mt&=15,I[st]=mt=j[Mt][5],R>0)if(R===16){for(ut=pt;ut<st;ut++)I[ut]=1;pt=-1}else pt=-1;if(j[Mt][6])pt===-1&&(pt=st);else if(pt>-1){for(ut=pt;ut<st;ut++)I[ut]=mt;pt=-1}M[st]==="B"&&(I[st]=0),H.hiLevel|=mt}s&&(function(W,J,$){for(var et=0;et<$;et++)if(W[et]==="S"){J[et]=Z;for(var Q=et-1;Q>=0&&W[Q]==="WS";Q--)J[Q]=Z}})(M,I,ft)},vt=function(k,I,H,R,ut){if(!(ut.hiLevel<k)){if(k===1&&Z===1&&!c)return I.reverse(),void(H&&H.reverse());for(var st,mt,tt,pt,ft=I.length,Mt=0;Mt<ft;){if(R[Mt]>=k){for(tt=Mt+1;tt<ft&&R[tt]>=k;)tt++;for(pt=Mt,mt=tt-1;pt<mt;pt++,mt--)st=I[pt],I[pt]=I[mt],I[mt]=st,H&&(st=H[pt],H[pt]=H[mt],H[mt]=st);Mt=tt}Mt++}}},bt=function(k,I,H){var R=k.split(""),ut={hiLevel:Z};return H||(H=[]),G(R,H,ut),(function(st,mt,tt){if(tt.hiLevel!==0&&A)for(var pt,ft=0;ft<st.length;ft++)mt[ft]===1&&(pt=q.indexOf(st[ft]))>=0&&(st[ft]=q[pt+1])})(R,H,ut),vt(2,R,I,H,ut),vt(1,R,I,H,ut),R.join("")};return this.__bidiEngine__.doBidiReorder=function(k,I,H){if((function(ut,st){if(st)for(var mt=0;mt<ut.length;mt++)st[mt]=mt;h===void 0&&(h=dt(ut)),g===void 0&&(g=dt(ut))})(k,I),l||!f||g)if(l&&f&&h^g)Z=h?1:0,k=nt(k,I,H);else if(!l&&f&&g)Z=h?1:0,k=bt(k,I,H),k=nt(k,I);else if(!l||h||f||g){if(l&&!f&&h^g)k=nt(k,I),h?(Z=0,k=bt(k,I,H)):(Z=1,k=bt(k,I,H),k=nt(k,I));else if(l&&h&&!f&&g)Z=1,k=bt(k,I,H),k=nt(k,I);else if(!l&&!f&&h^g){var R=A;h?(Z=1,k=bt(k,I,H),Z=0,A=!1,k=bt(k,I,H),A=R):(Z=0,k=bt(k,I,H),k=nt(k,I),Z=1,A=!1,k=bt(k,I,H),A=R,k=nt(k,I))}}else Z=0,k=bt(k,I,H);else Z=h?1:0,k=bt(k,I,H);return k},this.__bidiEngine__.setOptions=function(k){k&&(l=k.isInputVisual,f=k.isOutputVisual,h=k.isInputRtl,g=k.isOutputRtl,A=k.isSymmetricSwapping)},this.__bidiEngine__.setOptions(a),this.__bidiEngine__};var e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],r=new i.__bidiEngine__({isInputVisual:!0});i.API.events.push(["postProcessText",function(a){var c=a.text,s=(a.x,a.y,a.options||{}),l=(a.mutex,s.lang,[]);if(s.isInputVisual=typeof s.isInputVisual!="boolean"||s.isInputVisual,r.setOptions(s),Object.prototype.toString.call(c)==="[object Array]"){var h=0;for(l=[],h=0;h<c.length;h+=1)Object.prototype.toString.call(c[h])==="[object Array]"?l.push([r.doBidiReorder(c[h][0]),c[h][1],c[h][2]]):l.push([r.doBidiReorder(c[h])]);a.text=l}else a.text=r.doBidiReorder(c);r.setOptions({isInputVisual:!0})}])})(zt),zt.API.TTFFont=(function(){function i(e){var r;if(this.rawData=e,r=this.contents=new An(e),this.contents.pos=4,r.readString(4)==="ttcf")throw new Error("TTCF not supported.");r.pos=0,this.parse(),this.subset=new Cc(this),this.registerTTF()}return i.open=function(e){return new i(e)},i.prototype.parse=function(){return this.directory=new vc(this.contents),this.head=new yc(this),this.name=new xc(this),this.cmap=new uu(this),this.toUnicode={},this.hhea=new wc(this),this.maxp=new Sc(this),this.hmtx=new _c(this),this.post=new Nc(this),this.os2=new Lc(this),this.loca=new Fc(this),this.glyf=new Pc(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},i.prototype.registerTTF=function(){var e,r,a,c,s;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var l,h,f,g;for(g=[],l=0,h=(f=this.bbox).length;l<h;l++)e=f[l],g.push(Math.round(e*this.scaleFactor));return g}).call(this),this.stemV=0,this.post.exists?(a=255&(c=this.post.italic_angle),(32768&(r=c>>16))!=0&&(r=-(1+(65535^r))),this.italicAngle=+(r+"."+a)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(s=this.familyClass)===1||s===2||s===3||s===4||s===5||s===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},i.prototype.characterToGlyph=function(e){var r;return((r=this.cmap.unicode)!=null?r.codeMap[e]:void 0)||0},i.prototype.widthOfGlyph=function(e){var r;return r=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*r},i.prototype.widthOfString=function(e,r,a){var c,s,l,h;for(l=0,s=0,h=(e=""+e).length;0<=h?s<h:s>h;s=0<=h?++s:--s)c=e.charCodeAt(s),l+=this.widthOfGlyph(this.characterToGlyph(c))+a*(1e3/r)||0;return l*(r/1e3)},i.prototype.lineHeight=function(e,r){var a;return r==null&&(r=!1),a=r?this.lineGap:0,(this.ascender+a-this.decender)/1e3*e},i})();var Er,An=(function(){function i(e){this.data=e??[],this.pos=0,this.length=this.data.length}return i.prototype.readByte=function(){return this.data[this.pos++]},i.prototype.writeByte=function(e){return this.data[this.pos++]=e},i.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},i.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},i.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},i.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},i.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},i.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},i.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},i.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},i.prototype.readString=function(e){var r,a;for(a=[],r=0;0<=e?r<e:r>e;r=0<=e?++r:--r)a[r]=String.fromCharCode(this.readByte());return a.join("")},i.prototype.writeString=function(e){var r,a,c;for(c=[],r=0,a=e.length;0<=a?r<a:r>a;r=0<=a?++r:--r)c.push(this.writeByte(e.charCodeAt(r)));return c},i.prototype.readShort=function(){return this.readInt16()},i.prototype.writeShort=function(e){return this.writeInt16(e)},i.prototype.readLongLong=function(){var e,r,a,c,s,l,h,f;return e=this.readByte(),r=this.readByte(),a=this.readByte(),c=this.readByte(),s=this.readByte(),l=this.readByte(),h=this.readByte(),f=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^r)+1099511627776*(255^a)+4294967296*(255^c)+16777216*(255^s)+65536*(255^l)+256*(255^h)+(255^f)+1):72057594037927940*e+281474976710656*r+1099511627776*a+4294967296*c+16777216*s+65536*l+256*h+f},i.prototype.writeLongLong=function(e){var r,a;return r=Math.floor(e/4294967296),a=4294967295&e,this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r),this.writeByte(a>>24&255),this.writeByte(a>>16&255),this.writeByte(a>>8&255),this.writeByte(255&a)},i.prototype.readInt=function(){return this.readInt32()},i.prototype.writeInt=function(e){return this.writeInt32(e)},i.prototype.read=function(e){var r,a;for(r=[],a=0;0<=e?a<e:a>e;a=0<=e?++a:--a)r.push(this.readByte());return r},i.prototype.write=function(e){var r,a,c,s;for(s=[],a=0,c=e.length;a<c;a++)r=e[a],s.push(this.writeByte(r));return s},i})(),vc=(function(){var i;function e(r){var a,c,s;for(this.scalarType=r.readInt(),this.tableCount=r.readShort(),this.searchRange=r.readShort(),this.entrySelector=r.readShort(),this.rangeShift=r.readShort(),this.tables={},c=0,s=this.tableCount;0<=s?c<s:c>s;c=0<=s?++c:--c)a={tag:r.readString(4),checksum:r.readInt(),offset:r.readInt(),length:r.readInt()},this.tables[a.tag]=a}return e.prototype.encode=function(r){var a,c,s,l,h,f,g,A,N,S,p,B,F;for(F in p=Object.keys(r).length,f=Math.log(2),N=16*Math.floor(Math.log(p)/f),l=Math.floor(N/f),A=16*p-N,(c=new An).writeInt(this.scalarType),c.writeShort(p),c.writeShort(N),c.writeShort(l),c.writeShort(A),s=16*p,g=c.pos+s,h=null,B=[],r)for(S=r[F],c.writeString(F),c.writeInt(i(S)),c.writeInt(g),c.writeInt(S.length),B=B.concat(S),F==="head"&&(h=g),g+=S.length;g%4;)B.push(0),g++;return c.write(B),a=2981146554-i(c.data),c.pos=h+8,c.writeUInt32(a),c.data},i=function(r){var a,c,s,l;for(r=cu.call(r);r.length%4;)r.push(0);for(s=new An(r),c=0,a=0,l=r.length;a<l;a=a+=4)c+=s.readUInt32();return 4294967295&c},e})(),bc={}.hasOwnProperty,Yr=function(i,e){for(var r in e)bc.call(e,r)&&(i[r]=e[r]);function a(){this.constructor=i}return a.prototype=e.prototype,i.prototype=new a,i.__super__=e.prototype,i};Er=(function(){function i(e){var r;this.file=e,r=this.file.directory.tables[this.tag],this.exists=!!r,r&&(this.offset=r.offset,this.length=r.length,this.parse(this.file.contents))}return i.prototype.parse=function(){},i.prototype.encode=function(){},i.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},i})();var yc=(function(i){function e(){return e.__super__.constructor.apply(this,arguments)}return Yr(e,Er),e.prototype.tag="head",e.prototype.parse=function(r){return r.pos=this.offset,this.version=r.readInt(),this.revision=r.readInt(),this.checkSumAdjustment=r.readInt(),this.magicNumber=r.readInt(),this.flags=r.readShort(),this.unitsPerEm=r.readShort(),this.created=r.readLongLong(),this.modified=r.readLongLong(),this.xMin=r.readShort(),this.yMin=r.readShort(),this.xMax=r.readShort(),this.yMax=r.readShort(),this.macStyle=r.readShort(),this.lowestRecPPEM=r.readShort(),this.fontDirectionHint=r.readShort(),this.indexToLocFormat=r.readShort(),this.glyphDataFormat=r.readShort()},e.prototype.encode=function(r){var a;return(a=new An).writeInt(this.version),a.writeInt(this.revision),a.writeInt(this.checkSumAdjustment),a.writeInt(this.magicNumber),a.writeShort(this.flags),a.writeShort(this.unitsPerEm),a.writeLongLong(this.created),a.writeLongLong(this.modified),a.writeShort(this.xMin),a.writeShort(this.yMin),a.writeShort(this.xMax),a.writeShort(this.yMax),a.writeShort(this.macStyle),a.writeShort(this.lowestRecPPEM),a.writeShort(this.fontDirectionHint),a.writeShort(r),a.writeShort(this.glyphDataFormat),a.data},e})(),Zo=(function(){function i(e,r){var a,c,s,l,h,f,g,A,N,S,p,B,F,q,_,E,Z;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=r+e.readInt(),N=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(f=0;f<256;++f)this.codeMap[f]=e.readByte();break;case 4:for(p=e.readUInt16(),S=p/2,e.pos+=6,s=(function(){var ot,dt;for(dt=[],f=ot=0;0<=S?ot<S:ot>S;f=0<=S?++ot:--ot)dt.push(e.readUInt16());return dt})(),e.pos+=2,F=(function(){var ot,dt;for(dt=[],f=ot=0;0<=S?ot<S:ot>S;f=0<=S?++ot:--ot)dt.push(e.readUInt16());return dt})(),g=(function(){var ot,dt;for(dt=[],f=ot=0;0<=S?ot<S:ot>S;f=0<=S?++ot:--ot)dt.push(e.readUInt16());return dt})(),A=(function(){var ot,dt;for(dt=[],f=ot=0;0<=S?ot<S:ot>S;f=0<=S?++ot:--ot)dt.push(e.readUInt16());return dt})(),c=(this.length-e.pos+this.offset)/2,h=(function(){var ot,dt;for(dt=[],f=ot=0;0<=c?ot<c:ot>c;f=0<=c?++ot:--ot)dt.push(e.readUInt16());return dt})(),f=_=0,Z=s.length;_<Z;f=++_)for(q=s[f],a=E=B=F[f];B<=q?E<=q:E>=q;a=B<=q?++E:--E)A[f]===0?l=a+g[f]:(l=h[A[f]/2+(a-B)-(S-f)]||0)!==0&&(l+=g[f]),this.codeMap[a]=65535&l}e.pos=N}return i.encode=function(e,r){var a,c,s,l,h,f,g,A,N,S,p,B,F,q,_,E,Z,ot,dt,Nt,nt,G,vt,bt,k,I,H,R,ut,st,mt,tt,pt,ft,Mt,w,j,M,W,J,$,et,Q,At,Lt,Ot;switch(R=new An,l=Object.keys(e).sort((function(jt,Wt){return jt-Wt})),r){case"macroman":for(F=0,q=(function(){var jt=[];for(B=0;B<256;++B)jt.push(0);return jt})(),E={0:0},s={},ut=0,pt=l.length;ut<pt;ut++)E[Q=e[c=l[ut]]]==null&&(E[Q]=++F),s[c]={old:e[c],new:E[e[c]]},q[c]=E[e[c]];return R.writeUInt16(1),R.writeUInt16(0),R.writeUInt32(12),R.writeUInt16(0),R.writeUInt16(262),R.writeUInt16(0),R.write(q),{charMap:s,subtable:R.data,maxGlyphID:F+1};case"unicode":for(I=[],N=[],Z=0,E={},a={},_=g=null,st=0,ft=l.length;st<ft;st++)E[dt=e[c=l[st]]]==null&&(E[dt]=++Z),a[c]={old:dt,new:E[dt]},h=E[dt]-c,_!=null&&h===g||(_&&N.push(_),I.push(c),g=h),_=c;for(_&&N.push(_),N.push(65535),I.push(65535),bt=2*(vt=I.length),G=2*Math.pow(Math.log(vt)/Math.LN2,2),S=Math.log(G/2)/Math.LN2,nt=2*vt-G,f=[],Nt=[],p=[],B=mt=0,Mt=I.length;mt<Mt;B=++mt){if(k=I[B],A=N[B],k===65535){f.push(0),Nt.push(0);break}if(k-(H=a[k].new)>=32768)for(f.push(0),Nt.push(2*(p.length+vt-B)),c=tt=k;k<=A?tt<=A:tt>=A;c=k<=A?++tt:--tt)p.push(a[c].new);else f.push(H-k),Nt.push(0)}for(R.writeUInt16(3),R.writeUInt16(1),R.writeUInt32(12),R.writeUInt16(4),R.writeUInt16(16+8*vt+2*p.length),R.writeUInt16(0),R.writeUInt16(bt),R.writeUInt16(G),R.writeUInt16(S),R.writeUInt16(nt),$=0,w=N.length;$<w;$++)c=N[$],R.writeUInt16(c);for(R.writeUInt16(0),et=0,j=I.length;et<j;et++)c=I[et],R.writeUInt16(c);for(At=0,M=f.length;At<M;At++)h=f[At],R.writeUInt16(h);for(Lt=0,W=Nt.length;Lt<W;Lt++)ot=Nt[Lt],R.writeUInt16(ot);for(Ot=0,J=p.length;Ot<J;Ot++)F=p[Ot],R.writeUInt16(F);return{charMap:a,subtable:R.data,maxGlyphID:Z+1}}},i})(),uu=(function(i){function e(){return e.__super__.constructor.apply(this,arguments)}return Yr(e,Er),e.prototype.tag="cmap",e.prototype.parse=function(r){var a,c,s;for(r.pos=this.offset,this.version=r.readUInt16(),s=r.readUInt16(),this.tables=[],this.unicode=null,c=0;0<=s?c<s:c>s;c=0<=s?++c:--c)a=new Zo(r,this.offset),this.tables.push(a),a.isUnicode&&this.unicode==null&&(this.unicode=a);return!0},e.encode=function(r,a){var c,s;return a==null&&(a="macroman"),c=Zo.encode(r,a),(s=new An).writeUInt16(0),s.writeUInt16(1),c.table=s.data.concat(c.subtable),c},e})(),wc=(function(i){function e(){return e.__super__.constructor.apply(this,arguments)}return Yr(e,Er),e.prototype.tag="hhea",e.prototype.parse=function(r){return r.pos=this.offset,this.version=r.readInt(),this.ascender=r.readShort(),this.decender=r.readShort(),this.lineGap=r.readShort(),this.advanceWidthMax=r.readShort(),this.minLeftSideBearing=r.readShort(),this.minRightSideBearing=r.readShort(),this.xMaxExtent=r.readShort(),this.caretSlopeRise=r.readShort(),this.caretSlopeRun=r.readShort(),this.caretOffset=r.readShort(),r.pos+=8,this.metricDataFormat=r.readShort(),this.numberOfMetrics=r.readUInt16()},e})(),Lc=(function(i){function e(){return e.__super__.constructor.apply(this,arguments)}return Yr(e,Er),e.prototype.tag="OS/2",e.prototype.parse=function(r){if(r.pos=this.offset,this.version=r.readUInt16(),this.averageCharWidth=r.readShort(),this.weightClass=r.readUInt16(),this.widthClass=r.readUInt16(),this.type=r.readShort(),this.ySubscriptXSize=r.readShort(),this.ySubscriptYSize=r.readShort(),this.ySubscriptXOffset=r.readShort(),this.ySubscriptYOffset=r.readShort(),this.ySuperscriptXSize=r.readShort(),this.ySuperscriptYSize=r.readShort(),this.ySuperscriptXOffset=r.readShort(),this.ySuperscriptYOffset=r.readShort(),this.yStrikeoutSize=r.readShort(),this.yStrikeoutPosition=r.readShort(),this.familyClass=r.readShort(),this.panose=(function(){var a,c;for(c=[],a=0;a<10;++a)c.push(r.readByte());return c})(),this.charRange=(function(){var a,c;for(c=[],a=0;a<4;++a)c.push(r.readInt());return c})(),this.vendorID=r.readString(4),this.selection=r.readShort(),this.firstCharIndex=r.readShort(),this.lastCharIndex=r.readShort(),this.version>0&&(this.ascent=r.readShort(),this.descent=r.readShort(),this.lineGap=r.readShort(),this.winAscent=r.readShort(),this.winDescent=r.readShort(),this.codePageRange=(function(){var a,c;for(c=[],a=0;a<2;a=++a)c.push(r.readInt());return c})(),this.version>1))return this.xHeight=r.readShort(),this.capHeight=r.readShort(),this.defaultChar=r.readShort(),this.breakChar=r.readShort(),this.maxContext=r.readShort()},e})(),Nc=(function(i){function e(){return e.__super__.constructor.apply(this,arguments)}return Yr(e,Er),e.prototype.tag="post",e.prototype.parse=function(r){var a,c,s;switch(r.pos=this.offset,this.format=r.readInt(),this.italicAngle=r.readInt(),this.underlinePosition=r.readShort(),this.underlineThickness=r.readShort(),this.isFixedPitch=r.readInt(),this.minMemType42=r.readInt(),this.maxMemType42=r.readInt(),this.minMemType1=r.readInt(),this.maxMemType1=r.readInt(),this.format){case 65536:break;case 131072:var l;for(c=r.readUInt16(),this.glyphNameIndex=[],l=0;0<=c?l<c:l>c;l=0<=c?++l:--l)this.glyphNameIndex.push(r.readUInt16());for(this.names=[],s=[];r.pos<this.offset+this.length;)a=r.readByte(),s.push(this.names.push(r.readString(a)));return s;case 151552:return c=r.readUInt16(),this.offsets=r.read(c);case 196608:break;case 262144:return this.map=(function(){var h,f,g;for(g=[],l=h=0,f=this.file.maxp.numGlyphs;0<=f?h<f:h>f;l=0<=f?++h:--h)g.push(r.readUInt32());return g}).call(this)}},e})(),Ac=function(i,e){this.raw=i,this.length=i.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},xc=(function(i){function e(){return e.__super__.constructor.apply(this,arguments)}return Yr(e,Er),e.prototype.tag="name",e.prototype.parse=function(r){var a,c,s,l,h,f,g,A,N,S,p;for(r.pos=this.offset,r.readShort(),a=r.readShort(),f=r.readShort(),c=[],l=0;0<=a?l<a:l>a;l=0<=a?++l:--l)c.push({platformID:r.readShort(),encodingID:r.readShort(),languageID:r.readShort(),nameID:r.readShort(),length:r.readShort(),offset:this.offset+f+r.readShort()});for(g={},l=N=0,S=c.length;N<S;l=++N)s=c[l],r.pos=s.offset,A=r.readString(s.length),h=new Ac(A,s),g[p=s.nameID]==null&&(g[p]=[]),g[s.nameID].push(h);this.strings=g,this.copyright=g[0],this.fontFamily=g[1],this.fontSubfamily=g[2],this.uniqueSubfamily=g[3],this.fontName=g[4],this.version=g[5];try{this.postscriptName=g[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=g[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=g[7],this.manufacturer=g[8],this.designer=g[9],this.description=g[10],this.vendorUrl=g[11],this.designerUrl=g[12],this.license=g[13],this.licenseUrl=g[14],this.preferredFamily=g[15],this.preferredSubfamily=g[17],this.compatibleFull=g[18],this.sampleText=g[19]},e})(),Sc=(function(i){function e(){return e.__super__.constructor.apply(this,arguments)}return Yr(e,Er),e.prototype.tag="maxp",e.prototype.parse=function(r){return r.pos=this.offset,this.version=r.readInt(),this.numGlyphs=r.readUInt16(),this.maxPoints=r.readUInt16(),this.maxContours=r.readUInt16(),this.maxCompositePoints=r.readUInt16(),this.maxComponentContours=r.readUInt16(),this.maxZones=r.readUInt16(),this.maxTwilightPoints=r.readUInt16(),this.maxStorage=r.readUInt16(),this.maxFunctionDefs=r.readUInt16(),this.maxInstructionDefs=r.readUInt16(),this.maxStackElements=r.readUInt16(),this.maxSizeOfInstructions=r.readUInt16(),this.maxComponentElements=r.readUInt16(),this.maxComponentDepth=r.readUInt16()},e})(),_c=(function(i){function e(){return e.__super__.constructor.apply(this,arguments)}return Yr(e,Er),e.prototype.tag="hmtx",e.prototype.parse=function(r){var a,c,s,l,h,f,g;for(r.pos=this.offset,this.metrics=[],a=0,f=this.file.hhea.numberOfMetrics;0<=f?a<f:a>f;a=0<=f?++a:--a)this.metrics.push({advance:r.readUInt16(),lsb:r.readInt16()});for(s=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var A,N;for(N=[],a=A=0;0<=s?A<s:A>s;a=0<=s?++A:--A)N.push(r.readInt16());return N})(),this.widths=(function(){var A,N,S,p;for(p=[],A=0,N=(S=this.metrics).length;A<N;A++)l=S[A],p.push(l.advance);return p}).call(this),c=this.widths[this.widths.length-1],g=[],a=h=0;0<=s?h<s:h>s;a=0<=s?++h:--h)g.push(this.widths.push(c));return g},e.prototype.forGlyph=function(r){return r in this.metrics?this.metrics[r]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[r-this.metrics.length]}},e})(),cu=[].slice,Pc=(function(i){function e(){return e.__super__.constructor.apply(this,arguments)}return Yr(e,Er),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(r){var a,c,s,l,h,f,g,A,N,S;return r in this.cache?this.cache[r]:(l=this.file.loca,a=this.file.contents,c=l.indexOf(r),(s=l.lengthOf(r))===0?this.cache[r]=null:(a.pos=this.offset+c,h=(f=new An(a.read(s))).readShort(),A=f.readShort(),S=f.readShort(),g=f.readShort(),N=f.readShort(),this.cache[r]=h===-1?new Ic(f,A,S,g,N):new kc(f,h,A,S,g,N),this.cache[r]))},e.prototype.encode=function(r,a,c){var s,l,h,f,g;for(h=[],l=[],f=0,g=a.length;f<g;f++)s=r[a[f]],l.push(h.length),s&&(h=h.concat(s.encode(c)));return l.push(h.length),{table:h,offsets:l}},e})(),kc=(function(){function i(e,r,a,c,s,l){this.raw=e,this.numberOfContours=r,this.xMin=a,this.yMin=c,this.xMax=s,this.yMax=l,this.compound=!1}return i.prototype.encode=function(){return this.raw.data},i})(),Ic=(function(){function i(e,r,a,c,s){var l,h;for(this.raw=e,this.xMin=r,this.yMin=a,this.xMax=c,this.yMax=s,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],l=this.raw;h=l.readShort(),this.glyphOffsets.push(l.pos),this.glyphIDs.push(l.readUInt16()),32&h;)l.pos+=1&h?4:2,128&h?l.pos+=8:64&h?l.pos+=4:8&h&&(l.pos+=2)}return i.prototype.encode=function(){var e,r,a;for(r=new An(cu.call(this.raw.data)),e=0,a=this.glyphIDs.length;e<a;++e)r.pos=this.glyphOffsets[e];return r.data},i})(),Fc=(function(i){function e(){return e.__super__.constructor.apply(this,arguments)}return Yr(e,Er),e.prototype.tag="loca",e.prototype.parse=function(r){var a,c;return r.pos=this.offset,a=this.file.head.indexToLocFormat,this.offsets=a===0?(function(){var s,l;for(l=[],c=0,s=this.length;c<s;c+=2)l.push(2*r.readUInt16());return l}).call(this):(function(){var s,l;for(l=[],c=0,s=this.length;c<s;c+=4)l.push(r.readUInt32());return l}).call(this)},e.prototype.indexOf=function(r){return this.offsets[r]},e.prototype.lengthOf=function(r){return this.offsets[r+1]-this.offsets[r]},e.prototype.encode=function(r,a){for(var c=new Uint32Array(this.offsets.length),s=0,l=0,h=0;h<c.length;++h)if(c[h]=s,l<a.length&&a[l]==h){++l,c[h]=s;var f=this.offsets[h],g=this.offsets[h+1]-f;g>0&&(s+=g)}for(var A=new Array(4*c.length),N=0;N<c.length;++N)A[4*N+3]=255&c[N],A[4*N+2]=(65280&c[N])>>8,A[4*N+1]=(16711680&c[N])>>16,A[4*N]=(4278190080&c[N])>>24;return A},e})(),Cc=(function(){function i(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return i.prototype.generateCmap=function(){var e,r,a,c,s;for(r in c=this.font.cmap.tables[0].codeMap,e={},s=this.subset)a=s[r],e[r]=c[a];return e},i.prototype.glyphsFor=function(e){var r,a,c,s,l,h,f;for(c={},l=0,h=e.length;l<h;l++)c[s=e[l]]=this.font.glyf.glyphFor(s);for(s in r=[],c)(a=c[s])!=null&&a.compound&&r.push.apply(r,a.glyphIDs);if(r.length>0)for(s in f=this.glyphsFor(r))a=f[s],c[s]=a;return c},i.prototype.encode=function(e,r){var a,c,s,l,h,f,g,A,N,S,p,B,F,q,_;for(c in a=uu.encode(this.generateCmap(),"unicode"),l=this.glyphsFor(e),p={0:0},_=a.charMap)p[(f=_[c]).old]=f.new;for(B in S=a.maxGlyphID,l)B in p||(p[B]=S++);return A=(function(E){var Z,ot;for(Z in ot={},E)ot[E[Z]]=Z;return ot})(p),N=Object.keys(A).sort((function(E,Z){return E-Z})),F=(function(){var E,Z,ot;for(ot=[],E=0,Z=N.length;E<Z;E++)h=N[E],ot.push(A[h]);return ot})(),s=this.font.glyf.encode(l,F,p),g=this.font.loca.encode(s.offsets,F),q={cmap:this.font.cmap.raw(),glyf:s.table,loca:g,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(r)},this.font.os2.exists&&(q["OS/2"]=this.font.os2.raw()),this.font.directory.encode(q)},i})();zt.API.PDFObject=(function(){var i;function e(){}return i=function(r,a){return(Array(a+1).join("0")+r).slice(-a)},e.convert=function(r){var a,c,s,l;if(Array.isArray(r))return"["+(function(){var h,f,g;for(g=[],h=0,f=r.length;h<f;h++)a=r[h],g.push(e.convert(a));return g})().join(" ")+"]";if(typeof r=="string")return"/"+r;if(r!=null&&r.isString)return"("+r+")";if(r instanceof Date)return"(D:"+i(r.getUTCFullYear(),4)+i(r.getUTCMonth(),2)+i(r.getUTCDate(),2)+i(r.getUTCHours(),2)+i(r.getUTCMinutes(),2)+i(r.getUTCSeconds(),2)+"Z)";if({}.toString.call(r)==="[object Object]"){for(c in s=["<<"],r)l=r[c],s.push("/"+c+" "+e.convert(l));return s.push(">>"),s.join(`
|
||
`)}return""+r},e})();export{zt as E,$s as _};
|