"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3356],{5179:(t,e,r)=>{r.r(e),r.d(e,{AcroForm:()=>tk,AcroFormAppearance:()=>t_,AcroFormButton:()=>ty,AcroFormCheckBox:()=>tL,AcroFormChoiceField:()=>tg,AcroFormComboBox:()=>tv,AcroFormEditBox:()=>tb,AcroFormListBox:()=>tm,AcroFormPasswordField:()=>tS,AcroFormPushButton:()=>tw,AcroFormRadioButton:()=>tx,AcroFormTextField:()=>tA,GState:()=>q,ShadingPattern:()=>B,TilingPattern:()=>R,default:()=>D,jsPDF:()=>D});var n=r(77530),i=r(86951),a=r(13994),o=r(76808),s=function(){return"u">typeof window?window:void 0!==r.g?r.g:"u">typeof self?self:this}();function c(){s.console&&"function"==typeof s.console.log&&s.console.log.apply(s.console,arguments)}var u=function(t){s.console&&("function"==typeof s.console.warn?s.console.warn.apply(s.console,arguments):c.call(null,arguments))},l=function(t){s.console&&("function"==typeof s.console.error?s.console.error.apply(s.console,arguments):c(t))};function h(t,e,r){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){p(n.response,e,r)},n.onerror=function(){l("could not download file")},n.send()}function f(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function d(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(r){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var p=s.saveAs||("object"!==("u"typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(t,e,r){var n=s.URL||s.webkitURL,i=document.createElement("a");i.download=e=e||t.name||"download",i.rel="noopener","string"==typeof t?(i.href=t,i.origin!==location.origin?f(i.href)?h(t,e,r):d(i,i.target="_blank"):d(i)):(i.href=n.createObjectURL(t),setTimeout(function(){n.revokeObjectURL(i.href)},4e4),setTimeout(function(){d(i)},0))}:"msSaveOrOpenBlob"in navigator?function(t,e,r){if(e=e||t.name||"download","string"==typeof t)if(f(t))h(t,e,r);else{var i,a=document.createElement("a");a.href=t,a.target="_blank",setTimeout(function(){d(a)})}else navigator.msSaveOrOpenBlob((void 0===(i=r)?i={autoBom:!1}:"object"!==(0,n.A)(i)&&(u("Deprecated: Expected third argument to be a object"),i={autoBom:!i}),i.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t),e)}:function(t,e,r,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return h(t,e,r);var a="application/octet-stream"===t.type,o=/constructor/i.test(s.HTMLElement)||s.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||a&&o)&&"object"===("u"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 t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==r.length&&(r="0"+r),"#"+t+e+r}}var m=s.atob.bind(s),v=s.btoa.bind(s);function b(t,e){var r=t[0],n=t[1],i=t[2],a=t[3];r=w(r,n,i,a,e[0],7,-0x28955b88),a=w(a,r,n,i,e[1],12,-0x173848aa),i=w(i,a,r,n,e[2],17,0x242070db),n=w(n,i,a,r,e[3],22,-0x3e423112),r=w(r,n,i,a,e[4],7,-0xa83f051),a=w(a,r,n,i,e[5],12,0x4787c62a),i=w(i,a,r,n,e[6],17,-0x57cfb9ed),n=w(n,i,a,r,e[7],22,-0x2b96aff),r=w(r,n,i,a,e[8],7,0x698098d8),a=w(a,r,n,i,e[9],12,-0x74bb0851),i=w(i,a,r,n,e[10],17,-42063),n=w(n,i,a,r,e[11],22,-0x76a32842),r=w(r,n,i,a,e[12],7,0x6b901122),a=w(a,r,n,i,e[13],12,-0x2678e6d),i=w(i,a,r,n,e[14],17,-0x5986bc72),r=x(r,n=w(n,i,a,r,e[15],22,0x49b40821),i,a,e[1],5,-0x9e1da9e),a=x(a,r,n,i,e[6],9,-0x3fbf4cc0),i=x(i,a,r,n,e[11],14,0x265e5a51),n=x(n,i,a,r,e[0],20,-0x16493856),r=x(r,n,i,a,e[5],5,-0x29d0efa3),a=x(a,r,n,i,e[10],9,0x2441453),i=x(i,a,r,n,e[15],14,-0x275e197f),n=x(n,i,a,r,e[4],20,-0x182c0438),r=x(r,n,i,a,e[9],5,0x21e1cde6),a=x(a,r,n,i,e[14],9,-0x3cc8f82a),i=x(i,a,r,n,e[3],14,-0xb2af279),n=x(n,i,a,r,e[8],20,0x455a14ed),r=x(r,n,i,a,e[13],5,-0x561c16fb),a=x(a,r,n,i,e[2],9,-0x3105c08),i=x(i,a,r,n,e[7],14,0x676f02d9),r=N(r,n=x(n,i,a,r,e[12],20,-0x72d5b376),i,a,e[5],4,-378558),a=N(a,r,n,i,e[8],11,-0x788e097f),i=N(i,a,r,n,e[11],16,0x6d9d6122),n=N(n,i,a,r,e[14],23,-0x21ac7f4),r=N(r,n,i,a,e[1],4,-0x5b4115bc),a=N(a,r,n,i,e[4],11,0x4bdecfa9),i=N(i,a,r,n,e[7],16,-0x944b4a0),n=N(n,i,a,r,e[10],23,-0x41404390),r=N(r,n,i,a,e[13],4,0x289b7ec6),a=N(a,r,n,i,e[0],11,-0x155ed806),i=N(i,a,r,n,e[3],16,-0x2b10cf7b),n=N(n,i,a,r,e[6],23,0x4881d05),r=N(r,n,i,a,e[9],4,-0x262b2fc7),a=N(a,r,n,i,e[12],11,-0x1924661b),i=N(i,a,r,n,e[15],16,0x1fa27cf8),r=L(r,n=N(n,i,a,r,e[2],23,-0x3b53a99b),i,a,e[0],6,-0xbd6ddbc),a=L(a,r,n,i,e[7],10,0x432aff97),i=L(i,a,r,n,e[14],15,-0x546bdc59),n=L(n,i,a,r,e[5],21,-0x36c5fc7),r=L(r,n,i,a,e[12],6,0x655b59c3),a=L(a,r,n,i,e[3],10,-0x70f3336e),i=L(i,a,r,n,e[10],15,-1051523),n=L(n,i,a,r,e[1],21,-0x7a7ba22f),r=L(r,n,i,a,e[8],6,0x6fa87e4f),a=L(a,r,n,i,e[15],10,-0x1d31920),i=L(i,a,r,n,e[6],15,-0x5cfebcec),n=L(n,i,a,r,e[13],21,0x4e0811a1),r=L(r,n,i,a,e[4],6,-0x8ac817e),a=L(a,r,n,i,e[11],10,-0x42c50dcb),i=L(i,a,r,n,e[2],15,0x2ad7d2bb),n=L(n,i,a,r,e[9],21,-0x14792c6f),t[0]=F(r,t[0]),t[1]=F(n,t[1]),t[2]=F(i,t[2]),t[3]=F(a,t[3])}function y(t,e,r,n,i,a){return e=F(F(e,t),F(n,a)),F(e<>>32-i,r)}function w(t,e,r,n,i,a,o){return y(e&r|~e&n,t,e,i,a,o)}function x(t,e,r,n,i,a,o){return y(e&n|r&~n,t,e,i,a,o)}function N(t,e,r,n,i,a,o){return y(e^r^n,t,e,i,a,o)}function L(t,e,r,n,i,a,o){return y(r^(e|~n),t,e,i,a,o)}function A(t){var e,r=t.length,n=[0x67452301,-0x10325477,-0x67452302,0x10325476];for(e=64;e<=t.length;e+=64)b(n,function(t){var e,r=[];for(e=0;e<64;e+=4)r[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return r}(t.substring(e-64,e)));t=t.substring(e-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e>2]|=t.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(b(n,i),e=0;e<16;e++)i[e]=0;return i[14]=8*r,b(n,i),n}var S="0123456789abcdef".split("");function _(t){return String.fromCharCode(255&t,(65280&t)>>8,(0xff0000&t)>>16,(0xff000000&t)>>24)}function P(t){return A(t).map(_).join("")}var k="5d41402abc4b2a76b9719d911017c592"!=function(t){for(var e=0;e>8*r+4&15]+S[t>>8*r&15];return e}(t[e]);return t.join("")}(A("hello"));function F(t,e){if(k){var r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}return t+e|0}function I(t,e){if(t!==r){for(var r,n,i=Array(1+(256/t.length|0)+1).join(t),a=[],o=0;o<256;o++)a[o]=o;var s=0;for(o=0;o<256;o++){var c=a[o];s=(s+c+i.charCodeAt(o))%256,a[o]=a[s],a[s]=c}r=t,n=a}else a=n;var u=e.length,l=0,h=0,f="";for(o=0;o\x80/\f\xa9\xfedSiz";var a=(e+this.padding).substr(0,32),o=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,o),this.P=-(1+(255^i)),this.encryptionKey=P(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=I(this.encryptionKey,this.padding)}function O(t){if(/[^\u0000-\u00ff]/.test(t))throw Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",r=t.length,n=0;n126?"#"+("0"+i.toString(16)).slice(-2):t[n]}return e}function M(t){if("object"!==(0,n.A)(t))throw Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,r,n){if(n=n||!1,"string"!=typeof t||"function"!=typeof r||"boolean"!=typeof n)throw Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var i=Math.random().toString(35);return e[t][i]=[r,!!n],i},this.unsubscribe=function(t){for(var r in e)if(e[r][t])return delete e[r][t],0===Object.keys(e[r]).length&&delete e[r],!0;return!1},this.publish=function(r){if(e.hasOwnProperty(r)){var n=Array.prototype.slice.call(arguments,1),i=[];for(var a in e[r]){var o=e[r][a];try{o[0].apply(t,n)}catch(t){s.console&&l("jsPDF PubSub Error",t.message,t)}o[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function q(t){if(!(this instanceof q))return new q(t);var e="opacity,stroke-opacity".split(",");for(var r in t)t.hasOwnProperty(r)&&e.indexOf(r)>=0&&(this[r]=t[r]);this.id="",this.objectNumber=-1}function E(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function B(t,e,r,n,i){if(!(this instanceof B))return new B(t,e,r,n,i);this.type="axial"===t?2:3,this.coords=e,this.colors=r,E.call(this,n,i)}function R(t,e,r,n,i){if(!(this instanceof R))return new R(t,e,r,n,i);this.boundingBox=t,this.xStep=e,this.yStep=r,this.stream="",this.cloneIndex=0,E.call(this,n,i)}function D(t){var e,r="string"==typeof arguments[0]?arguments[0]:"p",i=arguments[1],a=arguments[2],o=arguments[3],c=[],l=1,h=16,f="S",d=null;"object"===(0,n.A)(t=t||{})&&(r=t.orientation,i=t.unit||i,a=t.format||a,o=t.compress||t.compressPdf||o,null!==(d=t.encryption||null)&&(d.userPassword=d.userPassword||"",d.ownerPassword=d.ownerPassword||"",d.userPermissions=d.userPermissions||[]),l="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(e=t.precision),void 0!==t.floatPrecision&&(h=t.floatPrecision),f=t.defaultPathOperation||"S"),c=t.filters||(!0===o?["FlateEncode"]:c),i=i||"mm",r=(""+(r||"P")).toLowerCase();var m=t.putOnlyUsedFonts||!1,b={},y={internal:{},__private__:{}};y.__private__.PubSub=M;var w="1.3",x=y.__private__.getPdfVersion=function(){return w};y.__private__.setPdfVersion=function(t){w=t};var N={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]};y.__private__.getPageFormats=function(){return N};var L=y.__private__.getPageFormat=function(t){return N[t]};a=a||"a4";var A="compat",S="advanced",_=A;function P(){this.saveGraphicsState(),tl(new tW(tS,0,0,-tS,0,rs()*tS).toString()+" cm"),this.setFontSize(this.getFontSize()/tS),f="n",_=S}function k(){this.restoreGraphicsState(),f="S",_=A}var F=y.__private__.combineFontStyleAndFontWeight=function(t,e){if("bold"==t&&"normal"==e||"bold"==t&&400==e||"normal"==t&&"italic"==e||"bold"==t&&"italic"==e)throw Error("Invalid Combination of fontweight and fontstyle");return e&&(t=400==e||"normal"===e?"italic"===t?"italic":"normal":700!=e&&"bold"!==e||"normal"!==t?(700==e?"bold":e)+""+t:"bold"),t};y.advancedAPI=function(t){var e=_===A;return e&&P.call(this),"function"!=typeof t||(t(this),e&&k.call(this)),this},y.compatAPI=function(t){var e=_===S;return e&&k.call(this),"function"!=typeof t||(t(this),e&&P.call(this)),this},y.isAdvancedAPI=function(){return _===S};var I,C=function(t){if(_!==S)throw Error(t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},E=y.roundToPrecision=y.__private__.roundToPrecision=function(t,r){var n=e||r;if(isNaN(t)||isNaN(n))throw Error("Invalid argument passed to jsPDF.roundToPrecision");return t.toFixed(n).replace(/0+$/,"")};I=y.hpf=y.__private__.hpf="number"==typeof h?function(t){if(isNaN(t))throw Error("Invalid argument passed to jsPDF.hpf");return E(t,h)}:"smart"===h?function(t){if(isNaN(t))throw Error("Invalid argument passed to jsPDF.hpf");return E(t,t>-1&&t<1?16:5)}:function(t){if(isNaN(t))throw Error("Invalid argument passed to jsPDF.hpf");return E(t,16)};var T=y.f2=y.__private__.f2=function(t){if(isNaN(t))throw Error("Invalid argument passed to jsPDF.f2");return E(t,2)},z=y.__private__.f3=function(t){if(isNaN(t))throw Error("Invalid argument passed to jsPDF.f3");return E(t,3)},U=y.scale=y.__private__.scale=function(t){if(isNaN(t))throw Error("Invalid argument passed to jsPDF.scale");return _===A?t*tS:_===S?t:void 0},H=function(t){return U(_===A?rs()-t:_===S?t:void 0)};y.__private__.setPrecision=y.setPrecision=function(t){"number"==typeof parseInt(t,10)&&(e=parseInt(t,10))};var W,V="00000000000000000000000000000000",G=y.__private__.getFileId=function(){return V},Y=y.__private__.setFileId=function(t){return V=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():V.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),null!==d&&(eL=new j(d.userPermissions,d.userPassword,d.ownerPassword,V)),V};y.setFileId=function(t){return Y(t),this},y.getFileId=function(){return G()};var J=y.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),r=Math.floor(Math.abs(e/60)),n=Math.abs(e%60),i=(e<0?"+":"-")+Q(r)+"'"+Q(n)+"'";return"D:"+t.getFullYear()+Q(t.getMonth()+1)+Q(t.getDate())+Q(t.getHours())+Q(t.getMinutes())+Q(t.getSeconds())+i},X=y.__private__.convertPDFDateToDate=function(t){return new Date(parseInt(t.substr(2,4),10),parseInt(t.substr(6,2),10)-1,parseInt(t.substr(8,2),10),parseInt(t.substr(10,2),10),parseInt(t.substr(12,2),10),parseInt(t.substr(14,2),10),0)},K=y.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),t instanceof Date)e=J(t);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(t))throw Error("Invalid argument passed to jsPDF.setCreationDate");e=t}return W=e},Z=y.__private__.getCreationDate=function(t){var e=W;return"jsDate"===t&&(e=X(W)),e};y.setCreationDate=function(t){return K(t),this},y.getCreationDate=function(t){return Z(t)};var $,Q=y.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},tt=y.__private__.padd2Hex=function(t){return("00"+(t=t.toString())).substr(t.length)},te=0,tr=[],tn=[],ti=0,ta=[],to=[],ts=!1,tc=tn;y.__private__.setCustomOutputDestination=function(t){ts=!0,tc=t};var tu=function(t){ts||(tc=t)};y.__private__.resetCustomOutputDestination=function(){ts=!1,tc=tn};var tl=y.__private__.out=function(t){return t=t.toString(),ti+=t.length+1,tc.push(t),tc},th=y.__private__.write=function(t){return tl(1==arguments.length?t.toString():Array.prototype.join.call(arguments," "))},tf=y.__private__.getArrayBuffer=function(t){for(var e=t.length,r=new ArrayBuffer(e),n=new Uint8Array(r);e--;)n[e]=t.charCodeAt(e);return r},td=[["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]];y.__private__.getStandardFonts=function(){return td};var tp=t.fontSize||16;y.__private__.setFontSize=y.setFontSize=function(t){return tp=_===S?t/tS:t,this};var tg,tm=y.__private__.getFontSize=y.getFontSize=function(){return _===A?tp:tp*tS},tv=t.R2L||!1;y.__private__.setR2L=y.setR2L=function(t){return tv=t,this},y.__private__.getR2L=y.getR2L=function(){return tv};var tb,ty=y.__private__.setZoomMode=function(t){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(t))tg=t;else if(isNaN(t)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(t))throw Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+t+'" is not recognized.');tg=t}else tg=parseInt(t,10)};y.__private__.getZoomMode=function(){return tg};var tw,tx=y.__private__.setPageMode=function(t){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(t))throw Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+t+'" is not recognized.');tb=t};y.__private__.getPageMode=function(){return tb};var tN=y.__private__.setLayoutMode=function(t){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(t))throw Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+t+'" is not recognized.');tw=t};y.__private__.getLayoutMode=function(){return tw},y.__private__.setDisplayMode=y.setDisplayMode=function(t,e,r){return ty(t),tN(e),tx(r),this};var tL={title:"",subject:"",author:"",keywords:"",creator:""};y.__private__.getDocumentProperty=function(t){if(-1===Object.keys(tL).indexOf(t))throw Error("Invalid argument passed to jsPDF.getDocumentProperty");return tL[t]},y.__private__.getDocumentProperties=function(){return tL},y.__private__.setDocumentProperties=y.setProperties=y.setDocumentProperties=function(t){for(var e in tL)tL.hasOwnProperty(e)&&t[e]&&(tL[e]=t[e]);return this},y.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(tL).indexOf(t))throw Error("Invalid arguments passed to jsPDF.setDocumentProperty");return tL[t]=e};var tA,tS,t_,tP,tk,tF={},tI={},tC=[],tj={},tO={},tM={},tq={},tE=null,tB=0,tR=[],tD=new M(y),tT=t.hotfixes||[],tz={},tU={},tH=[],tW=function t(e,r,n,i,a,o){if(!(this instanceof t))return new t(e,r,n,i,a,o);isNaN(e)&&(e=1),isNaN(r)&&(r=0),isNaN(n)&&(n=0),isNaN(i)&&(i=1),isNaN(a)&&(a=0),isNaN(o)&&(o=0),this._matrix=[e,r,n,i,a,o]};Object.defineProperty(tW.prototype,"sx",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(tW.prototype,"shy",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(tW.prototype,"shx",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(tW.prototype,"sy",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(tW.prototype,"tx",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(tW.prototype,"ty",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(tW.prototype,"a",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(tW.prototype,"b",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(tW.prototype,"c",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(tW.prototype,"d",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(tW.prototype,"e",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(tW.prototype,"f",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(tW.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(tW.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(tW.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(tW.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),tW.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(I).join(t)},tW.prototype.multiply=function(t){return new tW(t.sx*this.sx+t.shy*this.shx,t.sx*this.shy+t.shy*this.sy,t.shx*this.sx+t.sy*this.shx,t.shx*this.shy+t.sy*this.sy,t.tx*this.sx+t.ty*this.shx+this.tx,t.tx*this.shy+t.ty*this.sy+this.ty)},tW.prototype.decompose=function(){var t=this.sx,e=this.shy,r=this.shx,n=this.sy,i=this.tx,a=this.ty,o=Math.sqrt(t*t+e*e),s=(t/=o)*r+(e/=o)*n,c=Math.sqrt((r-=t*s)*r+(n-=e*s)*n);return s/=c,t*(n/=c)>16&255,i=u>>8&255,a=255&u}if(void 0===i||void 0===o&&r===i&&i===a)e="string"==typeof r?r+" "+s[0]:2===t.precision?T(r/255)+" "+s[0]:z(r/255)+" "+s[0];else if(void 0===o||"object"===(0,n.A)(o)){if(o&&!isNaN(o.a)&&0===o.a)return["1. 1. 1.",s[1]].join(" ");e="string"==typeof r?[r,i,a,s[1]].join(" "):2===t.precision?[T(r/255),T(i/255),T(a/255),s[1]].join(" "):[z(r/255),z(i/255),z(a/255),s[1]].join(" ")}else e="string"==typeof r?[r,i,a,o,s[2]].join(" "):2===t.precision?[T(r),T(i),T(a),T(o),s[2]].join(" "):[z(r),z(i),z(a),z(o),s[2]].join(" ");return e},t0=y.__private__.getFilters=function(){return c},t3=y.__private__.putStream=function(t){var e=(t=t||{}).data||"",r=t.filters||t0(),n=t.alreadyAppliedFilters||[],i=t.addLength1||!1,a=e.length,o=t.objectId,s=function(t){return t};if(null!==d&&void 0===o)throw Error("ObjectId must be passed to putStream for file encryption");null!==d&&(s=eL.encryptor(o,0));var c={};!0===r&&(r=["FlateEncode"]);var u=t.additionalKeyValues||[],l=(c=void 0!==D.API.processDataByFilters?D.API.processDataByFilters(e,r):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(n)?n.join(" "):n.toString());if(0!==c.data.length&&(u.push({key:"Length",value:c.data.length}),!0===i&&u.push({key:"Length1",value:a})),0!=l.length)if(l.split("/").length-1==1)u.push({key:"Filter",value:l});else{u.push({key:"Filter",value:"["+l+"]"});for(var h=0;h>"),0!==c.data.length&&(tl("stream"),tl(s(c.data)),tl("endstream"))},t4=y.__private__.putPage=function(t){var e=t.number,r=t.data,n=t.objId,i=t.contentsObjId;tZ(n,!0),tl("<>"),tl("endobj");var a=r.join("\n");return _===S&&(a+="\nQ"),tZ(i,!0),t3({data:a,filters:t0(),objectId:i}),tl("endobj"),n},t6=y.__private__.putPages=function(){var t,e,r=[];for(t=1;t<=tB;t++)tR[t].objId=tK(),tR[t].contentsObjId=tK();for(t=1;t<=tB;t++)r.push(t4({number:t,data:to[t],objId:tR[t].objId,contentsObjId:tR[t].contentsObjId,mediaBox:tR[t].mediaBox,cropBox:tR[t].cropBox,bleedBox:tR[t].bleedBox,trimBox:tR[t].trimBox,artBox:tR[t].artBox,userUnit:tR[t].userUnit,rootDictionaryObjId:tQ,resourceDictionaryObjId:t1}));tZ(tQ,!0),tl("<>"),tl("endobj"),tD.publish("postPutPages")},t8=function(t){tD.publish("putFont",{font:t,out:tl,newObject:tX,putStream:t3}),!0!==t.isAlreadyPutted&&(t.objectNumber=tX(),tl("<<"),tl("/Type /Font"),tl("/BaseFont /"+O(t.postScriptName)),tl("/Subtype /Type1"),"string"==typeof t.encoding&&tl("/Encoding /"+t.encoding),tl("/FirstChar 32"),tl("/LastChar 255"),tl(">>"),tl("endobj"))},t7=function(t){t.objectNumber=tX();var e=[];e.push({key:"Type",value:"/XObject"}),e.push({key:"Subtype",value:"/Form"}),e.push({key:"BBox",value:"["+[I(t.x),I(t.y),I(t.x+t.width),I(t.y+t.height)].join(" ")+"]"}),e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),t3({data:t.pages[1].join("\n"),additionalKeyValues:e,objectId:t.objectNumber}),tl("endobj")},t9=function(t,e){e||(e=21);var r=tX(),n=function(t,e){var r,n=[],i=1/(e-1);for(r=0;r<1;r+=i)n.push(r);if(n.push(1),0!=t[0].offset){var a={offset:0,color:t[0].color};t.unshift(a)}if(1!=t[t.length-1].offset){var o={offset:1,color:t[t.length-1].color};t.push(o)}for(var s="",c=0,u=0;ut[c+1].offset;)c++;var l=t[c].offset,h=(r-l)/(t[c+1].offset-l),f=t[c].color,d=t[c+1].color;s+=tt(Math.round((1-h)*f[0]+h*d[0]).toString(16))+tt(Math.round((1-h)*f[1]+h*d[1]).toString(16))+tt(Math.round((1-h)*f[2]+h*d[2]).toString(16))}return s.trim()}(t.colors,e),i=[];i.push({key:"FunctionType",value:"0"}),i.push({key:"Domain",value:"[0.0 1.0]"}),i.push({key:"Size",value:"["+e+"]"}),i.push({key:"BitsPerSample",value:"8"}),i.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),i.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),t3({data:n,additionalKeyValues:i,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:r}),tl("endobj"),t.objectNumber=tX(),tl("<< /ShadingType "+t.type),tl("/ColorSpace /DeviceRGB");var a="/Coords ["+I(parseFloat(t.coords[0]))+" "+I(parseFloat(t.coords[1]))+" ";2===t.type?a+=I(parseFloat(t.coords[2]))+" "+I(parseFloat(t.coords[3])):a+=I(parseFloat(t.coords[2]))+" "+I(parseFloat(t.coords[3]))+" "+I(parseFloat(t.coords[4]))+" "+I(parseFloat(t.coords[5])),tl(a+="]"),t.matrix&&tl("/Matrix ["+t.matrix.toString()+"]"),tl("/Function "+r+" 0 R"),tl("/Extend [true true]"),tl(">>"),tl("endobj")},et=function(t,e){var r=tK(),n=tX();e.push({resourcesOid:r,objectOid:n}),t.objectNumber=n;var i=[];i.push({key:"Type",value:"/Pattern"}),i.push({key:"PatternType",value:"1"}),i.push({key:"PaintType",value:"1"}),i.push({key:"TilingType",value:"1"}),i.push({key:"BBox",value:"["+t.boundingBox.map(I).join(" ")+"]"}),i.push({key:"XStep",value:I(t.xStep)}),i.push({key:"YStep",value:I(t.yStep)}),i.push({key:"Resources",value:r+" 0 R"}),t.matrix&&i.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),t3({data:t.stream,additionalKeyValues:i,objectId:t.objectNumber}),tl("endobj")},ee=function(t){for(var e in t.objectNumber=tX(),tl("<<"),t)switch(e){case"opacity":tl("/ca "+T(t[e]));break;case"stroke-opacity":tl("/CA "+T(t[e]))}tl(">>"),tl("endobj")},er=function(t){tZ(t.resourcesOid,!0),tl("<<"),tl("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var t in tl("/Font <<"),tF)tF.hasOwnProperty(t)&&(!1===m||!0===m&&b.hasOwnProperty(t))&&tl("/"+t+" "+tF[t].objectNumber+" 0 R");tl(">>")}(),function(){if(Object.keys(tj).length>0){for(var t in tl("/Shading <<"),tj)tj.hasOwnProperty(t)&&tj[t]instanceof B&&tj[t].objectNumber>=0&&tl("/"+t+" "+tj[t].objectNumber+" 0 R");tD.publish("putShadingPatternDict"),tl(">>")}}(),function(t){if(Object.keys(tj).length>0){for(var e in tl("/Pattern <<"),tj)tj.hasOwnProperty(e)&&tj[e]instanceof y.TilingPattern&&tj[e].objectNumber>=0&&tj[e].objectNumber>")}}(t.objectOid),function(){if(Object.keys(tM).length>0){var t;for(t in tl("/ExtGState <<"),tM)tM.hasOwnProperty(t)&&tM[t].objectNumber>=0&&tl("/"+t+" "+tM[t].objectNumber+" 0 R");tD.publish("putGStateDict"),tl(">>")}}(),function(){for(var t in tl("/XObject <<"),tz)tz.hasOwnProperty(t)&&tz[t].objectNumber>=0&&tl("/"+t+" "+tz[t].objectNumber+" 0 R");tD.publish("putXobjectDict"),tl(">>")}(),tl(">>"),tl("endobj")},en=function(t){tI[t.fontName]=tI[t.fontName]||{},tI[t.fontName][t.fontStyle]=t.id},ei=function(t,e,r,n,i){var a={id:"F"+(Object.keys(tF).length+1).toString(10),postScriptName:t,fontName:e,fontStyle:r,encoding:n,isStandardFont:i||!1,metadata:{}};return tD.publish("addFont",{font:a,instance:this}),tF[a.id]=a,en(a),a.id},ea=y.__private__.pdfEscape=y.pdfEscape=function(t,e){return(function(t,e){var r,n,i,a,o,s,c,u,l;if(i=(e=e||{}).sourceEncoding||"Unicode",o=e.outputEncoding,(e.autoencode||o)&&tF[tA].metadata&&tF[tA].metadata[i]&&tF[tA].metadata[i].encoding&&(a=tF[tA].metadata[i].encoding,!o&&tF[tA].encoding&&(o=tF[tA].encoding),!o&&a.codePages&&(o=a.codePages[0]),"string"==typeof o&&(o=a[o]),o)){for(c=!1,s=[],r=0,n=t.length;r>8&&(c=!0);t=s.join("")}for(r=t.length;void 0===c&&0!==r;)t.charCodeAt(r-1)>>8&&(c=!0),r--;if(!c)return t;for(s=e.noBOM?[]:[254,255],r=0,n=t.length;r>8)>>8)throw Error("Character at position "+r+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(l),s.push(u-(l<<8))}return String.fromCharCode.apply(void 0,s)})(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},eo=y.__private__.beginPage=function(t){to[++tB]=[],tR[tB]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t[0]),topRightY:Number(t[1])}},eu(tB),tu(to[$])},es=function(t,e){var n,i,o;switch(r=e||r,"string"==typeof t&&Array.isArray(n=L(t.toLowerCase()))&&(i=n[0],o=n[1]),Array.isArray(t)&&(i=t[0]*tS,o=t[1]*tS),isNaN(i)&&(i=a[0],o=a[1]),(i>14400||o>14400)&&(u("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),i=Math.min(14400,i),o=Math.min(14400,o)),a=[i,o],r.substr(0,1)){case"l":o>i&&(a=[o,i]);break;case"p":i>o&&(a=[o,i])}eo(a),eH(ez),tl(eZ),0!==e0&&tl(e0+" J"),0!==e3&&tl(e3+" j"),tD.publish("addPage",{pageNumber:tB})},ec=function(t){t>0&&t<=tB&&(to.splice(t,1),tR.splice(t,1),tB--,$>tB&&($=tB),this.setPage($))},eu=function(t){t>0&&t<=tB&&($=t)},el=y.__private__.getNumberOfPages=y.getNumberOfPages=function(){return to.length-1},eh=function(t,e,r){var n,i=void 0;return r=r||{},t=void 0!==t?t:tF[tA].fontName,e=void 0!==e?e:tF[tA].fontStyle,void 0!==tI[n=t.toLowerCase()]&&void 0!==tI[n][e]?i=tI[n][e]:void 0!==tI[t]&&void 0!==tI[t][e]?i=tI[t][e]:!1===r.disableWarning&&u("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),i||r.noFallback||null==(i=tI.times[e])&&(i=tI.times.normal),i},ef=y.__private__.putInfo=function(){var t=tX(),e=function(t){return t};for(var r in null!==d&&(e=eL.encryptor(t,0)),tl("<<"),tl("/Producer ("+ea(e("jsPDF "+D.version))+")"),tL)tL.hasOwnProperty(r)&&tL[r]&&tl("/"+r.substr(0,1).toUpperCase()+r.substr(1)+" ("+ea(e(tL[r]))+")");tl("/CreationDate ("+ea(e(W))+")"),tl(">>"),tl("endobj")},ed=y.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||tQ;switch(tX(),tl("<<"),tl("/Type /Catalog"),tl("/Pages "+e+" 0 R"),tg||(tg="fullwidth"),tg){case"fullwidth":tl("/OpenAction [3 0 R /FitH null]");break;case"fullheight":tl("/OpenAction [3 0 R /FitV null]");break;case"fullpage":tl("/OpenAction [3 0 R /Fit]");break;case"original":tl("/OpenAction [3 0 R /XYZ null null 1]");break;default:var r=""+tg;"%"===r.substr(r.length-1)&&(tg=parseInt(tg)/100),"number"==typeof tg&&tl("/OpenAction [3 0 R /XYZ null null "+T(tg)+"]")}switch(tw||(tw="continuous"),tw){case"continuous":tl("/PageLayout /OneColumn");break;case"single":tl("/PageLayout /SinglePage");break;case"two":case"twoleft":tl("/PageLayout /TwoColumnLeft");break;case"tworight":tl("/PageLayout /TwoColumnRight")}tb&&tl("/PageMode /"+tb),tD.publish("putCatalog"),tl(">>"),tl("endobj")},ep=y.__private__.putTrailer=function(){tl("trailer"),tl("<<"),tl("/Size "+(te+1)),tl("/Root "+te+" 0 R"),tl("/Info "+(te-1)+" 0 R"),null!==d&&tl("/Encrypt "+eL.oid+" 0 R"),tl("/ID [ <"+V+"> <"+V+"> ]"),tl(">>")},eg=y.__private__.putHeader=function(){tl("%PDF-"+w),tl("%\xba\xdf\xac\xe0")},em=y.__private__.putXRef=function(){var t="0000000000";tl("xref"),tl("0 "+(te+1)),tl("0000000000 65535 f ");for(var e=1;e<=te;e++)"function"==typeof tr[e]?tl((t+tr[e]()).slice(-10)+" 00000 n "):void 0!==tr[e]?tl((t+tr[e]).slice(-10)+" 00000 n "):tl("0000000000 00000 n ")},ev=y.__private__.buildDocument=function(){te=0,ti=0,tn=[],tr=[],ta=[],tQ=tK(),t1=tK(),tu(tn),tD.publish("buildDocument"),eg(),t6(),function(){tD.publish("putAdditionalObjects");for(var t=0;t"),tl("/O <"+eL.toHexString(eL.O)+">"),tl("/P "+eL.P),tl(">>"),tl("endobj")),ef(),ed();var t,e=ti;return em(),ep(),tl("startxref"),tl(""+e),tl("%%EOF"),tu(to[$]),tn.join("\n")},eb=y.__private__.getBlob=function(t){return new Blob([tf(t)],{type:"application/pdf"})},ey=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},ew=function(t){var e,r=t.document,n=r.documentElement,i=r.head,a=r.body;return i||(i=r.createElement("head"),n.appendChild(i)),a||(a=r.createElement("body"),n.appendChild(a)),ey(i),ey(a),(e=r.createElement("style")).appendChild(r.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")),i.appendChild(e),{document:r,body:a}},ex=y.output=y.__private__.output=((tJ=function(t,e){switch("string"==typeof(e=e||{})?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return ev();case"save":y.save(e.filename);break;case"arraybuffer":return tf(ev());case"blob":return eb(ev());case"bloburi":case"bloburl":if(void 0!==s.URL&&"function"==typeof s.URL.createObjectURL)return s.URL&&s.URL.createObjectURL(eb(ev()))||void 0;u("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var r="",n=ev();try{r=v(n)}catch(t){r=v(unescape(encodeURIComponent(n)))}return"data:application/pdf;filename="+encodeURIComponent(e.filename)+";base64,"+r;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(s)){var i="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",a=!e.pdfObjectUrl;a||(i=e.pdfObjectUrl);var o=s.open();if(null!==o){var c=ew(o),l=c.document.createElement("script"),h=this;l.src=i,a&&(l.integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==",l.crossOrigin="anonymous"),l.onload=function(){o.PDFObject.embed(h.output("dataurlstring"),e)},c.body.appendChild(l)}return o}throw Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(s)){var f=e.pdfJsUrl||"examples/PDF.js/web/viewer.html",d=s.open();if(null!==d){var p=ew(d),g=p.document.createElement("iframe"),m=-1===f.indexOf("?")?"?":"&";h=this,g.id="pdfViewer",g.width="500px",g.height="400px",g.src=f+m+"file=&downloadName="+encodeURIComponent(e.filename),g.onload=function(){d.document.title=e.filename,g.contentWindow.PDFViewerApplication.open(h.output("bloburl"))},p.body.appendChild(g)}return d}throw Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(s))throw Error("The option dataurlnewwindow just works in a browser-environment.");var b=s.open();if(null!==b){var w=ew(b),x=w.document.createElement("iframe");x.src=this.output("datauristring",e),w.body.appendChild(x),b.document.title=e.filename}if(b||"u"-1};switch(i){case"pt":tS=1;break;case"mm":tS=72/25.4;break;case"cm":tS=72/2.54;break;case"in":tS=72;break;case"px":tS=1==eN("px_scaling")?.75:96/72;break;case"pc":case"em":tS=12;break;case"ex":tS=6;break;default:if("number"!=typeof i)throw Error("Invalid unit: "+i);tS=i}var eL=null;K(),Y();var eA=y.__private__.getPageInfo=y.getPageInfo=function(t){if(isNaN(t)||t%1!=0)throw Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:tR[t].objId,pageNumber:t,pageContext:tR[t]}},eS=y.__private__.getPageInfoByObjId=function(t){if(isNaN(t)||t%1!=0)throw Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var e in tR)if(tR[e].objId===t)break;return eA(e)},e_=y.__private__.getCurrentPageInfo=y.getCurrentPageInfo=function(){return{objId:tR[$].objId,pageNumber:$,pageContext:tR[$]}};y.addPage=function(){return es.apply(this,arguments),this},y.setPage=function(){return eu.apply(this,arguments),tu.call(this,to[$]),this},y.insertPage=function(t){return this.addPage(),this.movePage($,t),this},y.movePage=function(t,e){var r,n;if(t>e){r=to[t],n=tR[t];for(var i=t;i>e;i--)to[i]=to[i-1],tR[i]=tR[i-1];to[e]=r,tR[e]=n,this.setPage(e)}else if(t0&&("string"==typeof t?t=g.splitTextToSize(t,h):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce(function(t,e){return t.concat(g.splitTextToSize(e,h))},[]))),o={text:t,x:e,y:r,options:i,mutex:{pdfEscape:ea,activeFontKey:tA,fonts:tF,activeFontSize:tp}},tD.publish("preProcessText",o),t=o.text,c=(i=o.options).angle,p instanceof tW==0&&c&&"number"==typeof c){c*=Math.PI/180,0===i.rotationDirection&&(c=-c),_===S&&(c=-c);var q=Math.cos(c),E=Math.sin(c);p=new tW(q,E,-E,q,0,0)}else c&&c instanceof tW&&(p=c);_!==S||p||(p=tG),void 0!==(l=i.charSpace||e2)&&(y+=I(U(l))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(d=i.horizontalScale)&&(y+=I(100*d)+" Tz\n"),i.lang;var B=-1,R=void 0!==i.renderingMode?i.renderingMode:i.stroke,D=g.internal.getCurrentPageInfo().pageContext;switch(R){case 0:case!1:case"fill":B=0;break;case 1:case!0:case"stroke":B=1;break;case 2:case"fillThenStroke":B=2;break;case 3:case"invisible":B=3;break;case 4:case"fillAndAddForClipping":B=4;break;case 5:case"strokeAndAddPathForClipping":B=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":B=6;break;case 7:case"addToPathForClipping":B=7}var T=void 0!==D.usedRenderingMode?D.usedRenderingMode:-1;-1!==B?y+=B+" Tr\n":-1!==T&&(y+="0 Tr\n"),-1!==B&&(D.usedRenderingMode=B),u=i.align||"left";var z,H=tp*w,W=g.internal.pageSize.getWidth(),V=tF[tA];l=i.charSpace||e2,h=i.maxWidth||0,f=Object.assign({autoencode:!0,noBOM:!0},i.flags);var G=[],Y=function(t){return g.getStringUnitWidth(t,{font:V,charSpace:l,fontSize:tp,doKerning:!1})*tp/x};if("[object Array]"===Object.prototype.toString.call(t)){s=N(t),"left"!==u&&(z=s.map(Y));var J,X,K=0;if("right"===u){e-=z[0],t=[],j=s.length;for(var Z=0;Z0?(h-z[te])/to:0;te":")"),tu=parseFloat(s[tb][1]),th=parseFloat(s[tb][2]);break;case 0:tf=(v?"<":"(")+s[tb]+(v?">":")"),tu=eY(e),th=eJ(r)}void 0!==G&&void 0!==G[tb]&&(tg=G[tb]+" Tw\n"),0===tb?t.push(tg+tm(tu,th,p)+tf):0===td?t.push(tg+tf):1===td&&t.push(tg+tm(tu,th,p)+tf)}t=(0===td?t.join(" Tj\nT* "):t.join(" Tj\n"))+" Tj\n";var ty="BT\n/";return ty+=tA+" "+tp+" Tf\n",ty+=I(tp*w)+" TL\n",ty+=eQ+"\n",ty+=y,ty+=t,tl(ty+="ET"),b[tA]=!0,g};var eP=y.__private__.clip=y.clip=function(t){return tl("evenodd"===t?"W*":"W"),this};y.clipEvenOdd=function(){return eP("evenodd")},y.__private__.discardPath=y.discardPath=function(){return tl("n"),this};var ek=y.__private__.isValidStyle=function(t){var e=!1;return -1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(t)&&(e=!0),e};y.__private__.setDefaultPathOperation=y.setDefaultPathOperation=function(t){return ek(t)&&(f=t),this};var eF=y.__private__.getStyle=y.getStyle=function(t){var e=f;switch(t){case"D":case"S":e="S";break;case"F":e="f";break;case"FD":case"DF":e="B";break;case"f":case"f*":case"B":case"B*":e=t}return e},eI=y.close=function(){return tl("h"),this};y.stroke=function(){return tl("S"),this},y.fill=function(t){return eC("f",t),this},y.fillEvenOdd=function(t){return eC("f*",t),this},y.fillStroke=function(t){return eC("B",t),this},y.fillStrokeEvenOdd=function(t){return eC("B*",t),this};var eC=function(t,e){"object"===(0,n.A)(e)?eM(e,t):tl(t)},ej=function(t){null===t||_===S&&void 0===t||tl(t=eF(t))};function eO(t,e,r,n,i){var a=new R(e||this.boundingBox,r||this.xStep,n||this.yStep,this.gState,i||this.matrix);return a.stream=this.stream,tY(t+"$$"+this.cloneIndex+++"$$",a),a}var eM=function(t,e){var r=tO[t.key],n=tj[r];if(n instanceof B)tl("q"),tl(eq(e)),n.gState&&y.setGState(n.gState),tl(t.matrix.toString()+" cm"),tl("/"+r+" sh"),tl("Q");else if(n instanceof R){var i=new tW(1,0,0,-1,0,rs());t.matrix&&(i=i.multiply(t.matrix||tG),r=eO.call(n,t.key,t.boundingBox,t.xStep,t.yStep,i).id),tl("q"),tl("/Pattern cs"),tl("/"+r+" scn"),n.gState&&y.setGState(n.gState),tl(e),tl("Q")}},eq=function(t){switch(t){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},eE=y.moveTo=function(t,e){return tl(I(U(t))+" "+I(H(e))+" m"),this},eB=y.lineTo=function(t,e){return tl(I(U(t))+" "+I(H(e))+" l"),this},eR=y.curveTo=function(t,e,r,n,i,a){return tl([I(U(t)),I(H(e)),I(U(r)),I(H(n)),I(U(i)),I(H(a)),"c"].join(" ")),this};y.__private__.line=y.line=function(t,e,r,n,i){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||!ek(i))throw Error("Invalid arguments passed to jsPDF.line");return _===A?this.lines([[r-t,n-e]],t,e,[1,1],i||"S"):this.lines([[r-t,n-e]],t,e,[1,1]).stroke()},y.__private__.lines=y.lines=function(t,e,r,n,i,a){var o,s,c,u,l,h,f,d,p,g,m,v;if("number"==typeof t&&(v=r,r=e,e=t,t=v),n=n||[1,1],a=a||!1,isNaN(e)||isNaN(r)||!Array.isArray(t)||!Array.isArray(n)||!ek(i)||"boolean"!=typeof a)throw Error("Invalid arguments passed to jsPDF.lines");for(eE(e,r),o=n[0],s=n[1],u=t.length,g=e,m=r,c=0;c>8&255,t>>16&255,t>>24&255)},j.prototype.toHexString=function(t){return t.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},j.prototype.hexToBytes=function(t){for(var e=[],r=0;r>8&255,t>>16&255,255&e,e>>8&255)).substr(0,10);return function(t){return I(r,t)}},q.prototype.equals=function(t){var e,r="id,objectNumber,equals";if(!t||(0,n.A)(t)!==(0,n.A)(this))return!1;var i=0;for(e in this)if(!(r.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!t.hasOwnProperty(e)||this[e]!==t[e])return!1;i++}for(e in t)t.hasOwnProperty(e)&&0>r.indexOf(e)&&i--;return 0===i},D.API={events:[]},D.version="4.2.1";var T=D.API,z=1,U=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},H=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},W=function(t){return t.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,function(t){var e=t.charCodeAt(0).toString(16).toUpperCase();return"#"+(1===e.length?"0"+e:e)})},V=function(t){return t.toFixed(2)},G=function(t){return t.toFixed(5)};T.__acroform__={};var Y=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},J=function(t){return t*z},X=function(t){var e=new tf,r=t_.internal.getHeight(t)||0;return e.BBox=[0,0,Number(V(t_.internal.getWidth(t)||0)),Number(V(r))],e},K=T.__acroform__.setBit=function(t,e){if(e=e||0,isNaN(t=t||0)||isNaN(e))throw Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|1<0;){e="";var c,u,l=ta("3",t,--a).height,h=t.multiline?o-a:(o-l)/2,f=h+=2,d=0,p=0,g=0;if(a<=0){e="(...) Tj\n",e+="% Width of Text: "+ta(e,t,a=12).width+", FieldWidth:"+s+"\n";break}for(var m="",v=0,b=0;bo)continue t;m+=i[b][g],y=!0,p=b,b--}else{m=" "==(m+=i[b][g]+" ").substr(m.length-1)?m.substr(0,m.length-1):m;var w,x,N=parseInt(b),L=(w=m,x=a,N+1=i.length-1;if(L&&!A){m+=" ",g=0;continue}if(L||A){if(A)p=N;else if(t.multiline&&(l+2)*(v+2)+2>o)continue t}else{if(!t.multiline||(l+2)*(v+2)+2>o)continue t;p=N}}for(var S="",_=d;_<=p;_++){var P=i[_];if(t.multiline){if(_===p){S+=P[g]+" ",g=(g+1)%P.length;continue}if(_===d){S+=P[P.length-1]+" ";continue}}S+=P[0]+" "}switch(u=ta(S=" "==S.substr(S.length-1)?S.substr(0,S.length-1):S,t,a).width,t.textAlign){case"right":c=s-u-2;break;case"center":c=(s-u)/2;break;default:c=2}e+=V(c)+" "+V(f)+" Td\n",e+="("+U(S)+") Tj\n",e+=-V(c)+" 0 Td\n",f=-(a+2),u=0,d=y?p:p+1,v++,m=""}break}return n.text=e,n.fontSize=a,n},ta=function(t,e,r){var n=e.scope.internal.getFont(e.fontName,e.fontStyle),i=e.scope.getStringUnitWidth(t,{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:e.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:i}},to={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},ts=function(t,e){var r={type:"reference",object:t};void 0===e.internal.getPageInfo(t.page).pageContext.annotations.find(function(t){return t.type===r.type&&t.object===r.object})&&e.internal.getPageInfo(t.page).pageContext.annotations.push(r)},tc=function(t,e){if(e.scope=t,void 0!==t.internal&&(void 0===t.internal.acroformPlugin||!1===t.internal.acroformPlugin.isInitialized)){if(tp.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(to)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw Error("Exception while creating AcroformDictionary");z=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new td,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",function(){t.internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0}),t.internal.events.subscribe("buildDocument",function(){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var e=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];n.objId=void 0,n.hasAnnotation&&ts(n,t)}}),t.internal.events.subscribe("putCatalog",function(){if(void 0===t.internal.acroformPlugin.acroFormDictionaryRoot)throw Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}),t.internal.events.subscribe("postPutPages",function(e){!function(t,e){var r=!t;for(var i in t||(e.internal.newObjectDeferredBegin(e.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),e.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),t=t||e.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(t.hasOwnProperty(i)){var a=t[i],o=[],s=a.Rect;if(a.Rect&&(a.Rect=tr(a.Rect,e)),e.internal.newObjectDeferredBegin(a.objId,!0),a.DA=t_.createDefaultAppearanceStream(a),"object"===(0,n.A)(a)&&"function"==typeof a.getKeyValueListForStream&&(o=a.getKeyValueListForStream()),a.Rect=s,a.hasAppearanceStream&&!a.appearanceStreamContent){var c=tn(a);o.push({key:"AP",value:"<>"}),e.internal.acroformPlugin.xForms.push(c)}if(a.appearanceStreamContent){var u="";for(var l in a.appearanceStreamContent)if(a.appearanceStreamContent.hasOwnProperty(l)){var h=a.appearanceStreamContent[l];if(u+="/"+l+" <<",Object.keys(h).length>=1||Array.isArray(h)){for(var i in h)if(h.hasOwnProperty(i)){var f=h[i];"function"==typeof f&&(f=f.call(e,a)),u+="/"+i+" "+f+" ",e.internal.acroformPlugin.xForms.indexOf(f)>=0||e.internal.acroformPlugin.xForms.push(f)}}else"function"==typeof(f=h)&&(f=f.call(e,a)),u+="/"+i+" "+f,e.internal.acroformPlugin.xForms.indexOf(f)>=0||e.internal.acroformPlugin.xForms.push(f);u+=">>"}o.push({key:"AP",value:"<<\n"+u+">>"})}e.internal.putStream({additionalKeyValues:o,objectId:a.objId}),e.internal.out("endobj")}r&&function(t,e){for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];e.internal.newObjectDeferredBegin(i.objId,!0),"object"===(0,n.A)(i)&&"function"==typeof i.putStream&&i.putStream(),delete t[r]}}(e.internal.acroformPlugin.xForms,e)}(e,t)}),t.internal.acroformPlugin.isInitialized=!0}},tu=T.__acroform__.arrayToPdfArray=function(t,e,r){var i=function(t){return t};if(Array.isArray(t)){for(var a="[",o=0;o0?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(t){var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+U(e(t))+")"}},set:function(e){t=e}})};Y(td,th);var tp=function t(){th.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){if(isNaN(t))throw Error('Invalid value "'+t+'" for attribute F supplied.');e=t}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Q(e,3)},set:function(t){!0==!!t?this.F=tt(e,3):this.F=te(e,3)}});var r=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return r},set:function(t){if(isNaN(t))throw Error('Invalid value "'+t+'" for attribute Ff supplied.');r=t}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==n.length)return n},set:function(t){n=void 0!==t?t:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(t){n[0]=t}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(t){n[1]=t}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(t){n[2]=t}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(t){n[3]=t}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(t){switch(t){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=t;break;default:throw Error('Invalid value "'+t+'" for attribute FT supplied.')}}});var a=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!a||a.length<1){if(this instanceof tN)return;a="FieldObject"+t.FieldNum++}var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+U(e(a))+")"},set:function(t){a=t.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return a},set:function(t){a=t}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(t){o=t}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(t){s=t}});var c=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return c},set:function(t){c=t}});var u=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===u?50/z:u},set:function(t){u=t}});var l="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return l},set:function(t){l=t}});var h="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!h||this instanceof tN||this instanceof tA))return tl(h,this.objId,this.scope)},set:function(t){h=t.toString()}});var f=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof ty==0?tl(f,this.objId,this.scope):f},set:function(t){t=t.toString(),f=this instanceof ty==0?"("===t.substr(0,1)?H(t.substr(1,t.length-2)):H(t):t}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof ty==1?H(f.substr(1,f.length-1)):f},set:function(t){t=t.toString(),f=this instanceof ty==1?"/"+W(t):t}});var d=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(d)return d},set:function(t){this.V=t}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof ty==0?tl(d,this.objId,this.scope):d},set:function(t){t=t.toString(),d=this instanceof ty==0?"("===t.substr(0,1)?H(t.substr(1,t.length-2)):H(t):t}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof ty==1?H(d.substr(1,d.length-1)):d},set:function(t){t=t.toString(),d=this instanceof ty==1?"/"+W(t):t}}),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 p,g=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return g},set:function(t){g=!!t}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(p)return p},set:function(t){p=t}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Q(this.Ff,1)},set:function(t){!0==!!t?this.Ff=tt(this.Ff,1):this.Ff=te(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Q(this.Ff,2)},set:function(t){!0==!!t?this.Ff=tt(this.Ff,2):this.Ff=te(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Q(this.Ff,3)},set:function(t){!0==!!t?this.Ff=tt(this.Ff,3):this.Ff=te(this.Ff,3)}});var m=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==m)return m},set:function(t){if(-1===[0,1,2].indexOf(t))throw Error('Invalid value "'+t+'" for attribute Q supplied.');m=t}}),Object.defineProperty(this,"textAlign",{get:function(){var t;switch(m){case 0:default:t="left";break;case 1:t="center";break;case 2:t="right"}return t},configurable:!0,enumerable:!0,set:function(t){switch(t){case"right":case 2:m=2;break;case"center":case 1:m=1;break;default:m=0}}})};Y(tp,th);var tg=function(){tp.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){t=e}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return tu(e,this.objId,this.scope)},set:function(t){var r;r=[],"string"==typeof t&&(r=function(t,e,r){r||(r=1);for(var n,i=[];n=e.exec(t);)i.push(n[r]);return i}(t,/\((.*?)\)/g)),e=r}}),this.getOptions=function(){return e},this.setOptions=function(t){e=t,this.sort&&e.sort()},this.addOption=function(t){t=(t=t||"").toString(),e.push(t),this.sort&&e.sort()},this.removeOption=function(t,r){for(r=r||!1,t=(t=t||"").toString();-1!==e.indexOf(t)&&(e.splice(e.indexOf(t),1),!1!==r););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Q(this.Ff,18)},set:function(t){!0==!!t?this.Ff=tt(this.Ff,18):this.Ff=te(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Q(this.Ff,19)},set:function(t){!0===this.combo&&(!0==!!t?this.Ff=tt(this.Ff,19):this.Ff=te(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Q(this.Ff,20)},set:function(t){!0==!!t?(this.Ff=tt(this.Ff,20),e.sort()):this.Ff=te(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Q(this.Ff,22)},set:function(t){!0==!!t?this.Ff=tt(this.Ff,22):this.Ff=te(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Q(this.Ff,23)},set:function(t){!0==!!t?this.Ff=tt(this.Ff,23):this.Ff=te(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Q(this.Ff,27)},set:function(t){!0==!!t?this.Ff=tt(this.Ff,27):this.Ff=te(this.Ff,27)}}),this.hasAppearanceStream=!1};Y(tg,tp);var tm=function(){tg.call(this),this.fontName="helvetica",this.combo=!1};Y(tm,tg);var tv=function(){tm.call(this),this.combo=!0};Y(tv,tm);var tb=function(){tv.call(this),this.edit=!0};Y(tb,tv);var ty=function(){tp.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Q(this.Ff,15)},set:function(t){!0==!!t?this.Ff=tt(this.Ff,15):this.Ff=te(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Q(this.Ff,16)},set:function(t){!0==!!t?this.Ff=tt(this.Ff,16):this.Ff=te(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Q(this.Ff,17)},set:function(t){!0==!!t?this.Ff=tt(this.Ff,17):this.Ff=te(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Q(this.Ff,26)},set:function(t){!0==!!t?this.Ff=tt(this.Ff,26):this.Ff=te(this.Ff,26)}});var t,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(e).length){var r,n=[];for(r in n.push("<<"),e)n.push("/"+r+" ("+U(t(e[r]))+")");return n.push(">>"),n.join("\n")}},set:function(t){"object"===(0,n.A)(t)&&(e=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(t){"string"==typeof t&&(e.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){var r=null==e?"":e.toString();"/"===r.substr(0,1)&&(r=r.substr(1)),t="/"+W(r)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+W(e)}})};Y(ty,tp);var tw=function(){ty.call(this),this.pushButton=!0};Y(tw,ty);var tx=function(){ty.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=void 0!==e?e:[]}})};Y(tx,ty);var tN=function(){tp.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(t){e=t}});var t,e,r,i={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};this.scope&&(t=this.scope.internal.getEncryptor(this.objId));var e,r=[];for(e in r.push("<<"),i)r.push("/"+e+" ("+U(t(i[e]))+")");return r.push(">>"),r.join("\n")},set:function(t){"object"===(0,n.A)(t)&&(i=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return i.CA||""},set:function(t){"string"==typeof t&&(i.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(t){var e=null==t?"":t.toString();"/"===e.substr(0,1)&&(e=e.substr(1)),r="/"+W(e)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(t){var e=null==t?"":t.toString();"/"===e.substr(0,1)&&(e=e.substr(1)),r="/"+W(e)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=t_.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Y(tN,tp),tx.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw 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=t.createAppearanceStream(r.optionName),r.caption=t.getCA()}},tx.prototype.createOption=function(t){var e=new tN;return e.Parent=this,e.optionName=t,this.Kids.push(e),tP.call(this.scope,e),e};var tL=function(){ty.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=t_.CheckBox.createAppearanceStream()};Y(tL,ty);var tA=function(){tp.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Q(this.Ff,13)},set:function(t){!0==!!t?this.Ff=tt(this.Ff,13):this.Ff=te(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Q(this.Ff,21)},set:function(t){!0==!!t?this.Ff=tt(this.Ff,21):this.Ff=te(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Q(this.Ff,23)},set:function(t){!0==!!t?this.Ff=tt(this.Ff,23):this.Ff=te(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Q(this.Ff,24)},set:function(t){!0==!!t?this.Ff=tt(this.Ff,24):this.Ff=te(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Q(this.Ff,25)},set:function(t){!0==!!t?this.Ff=tt(this.Ff,25):this.Ff=te(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Q(this.Ff,26)},set:function(t){!0==!!t?this.Ff=tt(this.Ff,26):this.Ff=te(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){Number.isInteger(e)&&(t=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Y(tA,tp);var tS=function(){tA.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Q(this.Ff,14)},set:function(t){!0==!!t?this.Ff=tt(this.Ff,14):this.Ff=te(this.Ff,14)}}),this.password=!0};Y(tS,tA);var t_={CheckBox:{createAppearanceStream:function(){return{N:{On:t_.CheckBox.YesNormal},D:{On:t_.CheckBox.YesPushDown,Off:t_.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=X(t);e.scope=t.scope;var r=[],n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,i=t.scope.__private__.encodeColorString(t.color),a=ti(t,t.caption);return r.push("0.749023 g"),r.push("0 0 "+V(t_.internal.getWidth(t))+" "+V(t_.internal.getHeight(t))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+n+" "+V(a.fontSize)+" Tf "+i),r.push("BT"),r.push(a.text),r.push("ET"),r.push("Q"),r.push("EMC"),e.stream=r.join("\n"),e},YesNormal:function(t){var e=X(t);e.scope=t.scope;var r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,n=t.scope.__private__.encodeColorString(t.color),i=[],a=t_.internal.getHeight(t),o=t_.internal.getWidth(t),s=ti(t,t.caption);return i.push("1 g"),i.push("0 0 "+V(o)+" "+V(a)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+V(o-1)+" "+V(a-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+r+" "+V(s.fontSize)+" Tf "+n),i.push(s.text),i.push("ET"),i.push("Q"),e.stream=i.join("\n"),e},OffPushDown:function(t){var e=X(t);e.scope=t.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+V(t_.internal.getWidth(t))+" "+V(t_.internal.getHeight(t))+" re"),r.push("f"),e.stream=r.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:t_.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=t_.RadioButton.Circle.YesNormal,e.D[t]=t_.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=X(t);e.scope=t.scope;var r=[],n=t_.internal.getWidth(t)<=t_.internal.getHeight(t)?t_.internal.getWidth(t)/4:t_.internal.getHeight(t)/4,i=Number(((n=Number((.9*n).toFixed(5)))*t_.internal.Bezier_C).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+G(t_.internal.getWidth(t)/2)+" "+G(t_.internal.getHeight(t)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),r.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),r.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),r.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join("\n"),e},YesPushDown:function(t){var e=X(t);e.scope=t.scope;var r=[],n=t_.internal.getWidth(t)<=t_.internal.getHeight(t)?t_.internal.getWidth(t)/4:t_.internal.getHeight(t)/4,i=Number((2*(n=Number((.9*n).toFixed(5)))).toFixed(5)),a=Number((i*t_.internal.Bezier_C).toFixed(5)),o=Number((n*t_.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+G(t_.internal.getWidth(t)/2)+" "+G(t_.internal.getHeight(t)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),r.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),r.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),r.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),r.push("f"),r.push("Q"),r.push("0 g"),r.push("q"),r.push("1 0 0 1 "+G(t_.internal.getWidth(t)/2)+" "+G(t_.internal.getHeight(t)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+o+" "+o+" "+n+" 0 "+n+" c"),r.push("-"+o+" "+n+" -"+n+" "+o+" -"+n+" 0 c"),r.push("-"+n+" -"+o+" -"+o+" -"+n+" 0 -"+n+" c"),r.push(o+" -"+n+" "+n+" -"+o+" "+n+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(t){var e=X(t);e.scope=t.scope;var r=[],n=t_.internal.getWidth(t)<=t_.internal.getHeight(t)?t_.internal.getWidth(t)/4:t_.internal.getHeight(t)/4,i=Number((2*(n=Number((.9*n).toFixed(5)))).toFixed(5)),a=Number((i*t_.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+G(t_.internal.getWidth(t)/2)+" "+G(t_.internal.getHeight(t)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),r.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),r.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),r.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join("\n"),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:t_.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=t_.RadioButton.Cross.YesNormal,e.D[t]=t_.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=X(t);e.scope=t.scope;var r=[],n=t_.internal.calculateCross(t);return r.push("q"),r.push("1 1 "+V(t_.internal.getWidth(t)-2)+" "+V(t_.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(V(n.x1.x)+" "+V(n.x1.y)+" m"),r.push(V(n.x2.x)+" "+V(n.x2.y)+" l"),r.push(V(n.x4.x)+" "+V(n.x4.y)+" m"),r.push(V(n.x3.x)+" "+V(n.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join("\n"),e},YesPushDown:function(t){var e=X(t);e.scope=t.scope;var r=t_.internal.calculateCross(t),n=[];return n.push("0.749023 g"),n.push("0 0 "+V(t_.internal.getWidth(t))+" "+V(t_.internal.getHeight(t))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+V(t_.internal.getWidth(t)-2)+" "+V(t_.internal.getHeight(t)-2)+" re"),n.push("W"),n.push("n"),n.push(V(r.x1.x)+" "+V(r.x1.y)+" m"),n.push(V(r.x2.x)+" "+V(r.x2.y)+" l"),n.push(V(r.x4.x)+" "+V(r.x4.y)+" m"),n.push(V(r.x3.x)+" "+V(r.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join("\n"),e},OffPushDown:function(t){var e=X(t);e.scope=t.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+V(t_.internal.getWidth(t))+" "+V(t_.internal.getHeight(t))+" re"),r.push("f"),e.stream=r.join("\n"),e}}},createDefaultAppearanceStream:function(t){var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+r}};t_.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=t_.internal.getWidth(t),r=t_.internal.getHeight(t),n=Math.min(e,r);return{x1:{x:(e-n)/2,y:(r-n)/2+n},x2:{x:(e-n)/2+n,y:(r-n)/2},x3:{x:(e-n)/2,y:(r-n)/2},x4:{x:(e-n)/2+n,y:(r-n)/2+n}}}},t_.internal.getWidth=function(t){var e=0;return"object"===(0,n.A)(t)&&(e=J(t.Rect[2])),e},t_.internal.getHeight=function(t){var e=0;return"object"===(0,n.A)(t)&&(e=J(t.Rect[3])),e};var tP=T.addField=function(t){if(tc(this,t),!(t instanceof tp))throw Error("Invalid argument passed to jsPDF.addField.");return t.scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};T.AcroFormChoiceField=tg,T.AcroFormListBox=tm,T.AcroFormComboBox=tv,T.AcroFormEditBox=tb,T.AcroFormButton=ty,T.AcroFormPushButton=tw,T.AcroFormRadioButton=tx,T.AcroFormCheckBox=tL,T.AcroFormTextField=tA,T.AcroFormPasswordField=tS,T.AcroFormAppearance=t_,T.AcroForm={ChoiceField:tg,ListBox:tm,ComboBox:tv,EditBox:tb,Button:ty,PushButton:tw,RadioButton:tx,CheckBox:tL,TextField:tA,PasswordField:tS,Appearance:t_},D.AcroForm={ChoiceField:tg,ListBox:tm,ComboBox:tv,EditBox:tb,Button:ty,PushButton:tw,RadioButton:tx,CheckBox:tL,TextField:tA,PasswordField:tS,Appearance:t_};var tk=D.AcroForm;function tF(t){return t.reduce(function(t,e,r){return t[e]=r,t},{})}tz=D.API,tU="addImage_",tz.__addimage__={},tH="UNKNOWN",tW={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]]},tV=tz.__addimage__.getImageFileTypeByImageData=function(t,e){var r,n,i,a,o,s=tH;if("RGBA"===(e=e||tH)||void 0!==t.data&&t.data instanceof Uint8ClampedArray&&"height"in t&&"width"in t)return"RGBA";if(t9(t))for(o in tW)for(i=tW[o],r=0;r>"}),"transparency"in e&&Array.isArray(e.transparency)&&e.transparency.length>0){for(var o="",s=0,c=e.transparency.length;s>";var v=d.objId+" 0 R";n="<>",this.internal.write(d.objId,"0 R",p.objId,"0 R");break;case"freetext":r="/Rect ["+i(e.bounds.x)+" "+a(e.bounds.y)+" "+i(e.bounds.x+e.bounds.w)+" "+a(e.bounds.y+e.bounds.h)+"] ";var b="font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+(e.color||"#000000");n="<>",this.internal.write(n);break;case"link":if(e.options.name){var y=this.annotations._nameMap[e.options.name];e.options.pageNumber=y.page,e.options.top=y.y}else e.options.top||(e.options.top=0);if(r="/Rect ["+e.finalBounds.x+" "+e.finalBounds.y+" "+e.finalBounds.w+" "+e.finalBounds.h+"] ",n="",e.options.url)n="<>";else if(e.options.pageNumber)switch(n="<>",this.internal.write(n))}}this.internal.write("]")}}]),ei.createAnnotation=function(t){var e=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":e.pageContext.annotations.push(t)}},ei.link=function(t,e,r,n,i){var a=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;a.pageContext.annotations.push({finalBounds:{x:o(t),y:s(e),w:o(t+r),h:s(e+n)},options:i,type:"link"})},ei.textWithLink=function(t,e,r,n){var i,a,o=this.getTextWidth(t),s=this.internal.getLineHeight()/this.internal.scaleFactor;return void 0!==n.maxWidth?(a=n.maxWidth,i=Math.ceil(s*this.splitTextToSize(t,a).length)):(a=o,i=s),this.text(t,e,r,n),r+=.2*s,"center"===n.align&&(e-=o/2),"right"===n.align&&(e-=o),this.link(e,r-s,a,i,n),o},ei.getTextWidth=function(t){var e=this.internal.getFontSize();return this.getStringUnitWidth(t)*e/this.internal.scaleFactor},eo=D.API,es={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]},ec={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}},eu={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},el=[1570,1571,1573,1575],eo.__arabicParser__={},eh=eo.__arabicParser__.isInArabicSubstitutionA=function(t){return void 0!==es[t.charCodeAt(0)]},ef=eo.__arabicParser__.isArabicLetter=function(t){return"string"==typeof t&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(t)},ed=eo.__arabicParser__.isArabicEndLetter=function(t){return ef(t)&&eh(t)&&es[t.charCodeAt(0)].length<=2},ep=eo.__arabicParser__.isArabicAlfLetter=function(t){return ef(t)&&el.indexOf(t.charCodeAt(0))>=0},eo.__arabicParser__.arabicLetterHasIsolatedForm=function(t){return ef(t)&&eh(t)&&es[t.charCodeAt(0)].length>=1},eg=eo.__arabicParser__.arabicLetterHasFinalForm=function(t){return ef(t)&&eh(t)&&es[t.charCodeAt(0)].length>=2},eo.__arabicParser__.arabicLetterHasInitialForm=function(t){return ef(t)&&eh(t)&&es[t.charCodeAt(0)].length>=3},em=eo.__arabicParser__.arabicLetterHasMedialForm=function(t){return ef(t)&&eh(t)&&4==es[t.charCodeAt(0)].length},ev=eo.__arabicParser__.resolveLigatures=function(t){var e=0,r=ec,n="",i=0;for(e=0;e>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+e+" 0 R")})),this},ex=D.API,(eN=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(e){t=e}});var e=150;Object.defineProperty(this,"width",{get:function(){return e},set:function(t){e=isNaN(t)||!1===Number.isInteger(t)||t<0?150:t,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=e+1)}});var r=300;Object.defineProperty(this,"height",{get:function(){return r},set:function(t){r=isNaN(t)||!1===Number.isInteger(t)||t<0?300:t,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=r+1)}});var n=[];Object.defineProperty(this,"childNodes",{get:function(){return n},set:function(t){n=t}});var i={};Object.defineProperty(this,"style",{get:function(){return i},set:function(t){i=t}}),Object.defineProperty(this,"parentNode",{})}).prototype.getContext=function(t,e){var r;if("2d"!==(t=t||"2d"))return null;for(r in e)this.pdf.context2d.hasOwnProperty(r)&&(this.pdf.context2d[r]=e[r]);return this.pdf.context2d._canvas=this,this.pdf.context2d},eN.prototype.toDataURL=function(){throw Error("toDataURL is not implemented.")},ex.events.push(["initialized",function(){this.canvas=new eN,this.canvas.pdf=this}]),eL=D.API,eA={left:0,top:0,bottom:0,right:0},eS=!1,e_=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},eA),this.internal.__cell__.margins.width=this.getPageWidth(),eP.call(this))},eP=function(){this.internal.__cell__.lastCell=new ek,this.internal.__cell__.pages=1},(ek=function(){var t=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var e=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var r=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return r},set:function(t){r=t}});var n=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return n},set:function(t){n=t}});var i=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return i},set:function(t){i=t}});var a=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return a},set:function(t){a=t}});var o=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return o},set:function(t){o=t}}),this}).prototype.clone=function(){return new ek(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},ek.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},eL.setHeaderFunction=function(t){return e_.call(this),this.internal.__cell__.headerFunction="function"==typeof t?t:void 0,this},eL.getTextDimensions=function(t,e){e_.call(this);var r=(e=e||{}).fontSize||this.getFontSize(),n=e.font||this.getFont(),i=e.scaleFactor||this.internal.scaleFactor,a=0,o=0,s=0,c=this;if(!Array.isArray(t)&&"string"!=typeof t){if("number"!=typeof t)throw Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");t=String(t)}var u=e.maxWidth;u>0?"string"==typeof t?t=this.splitTextToSize(t,u):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce(function(t,e){return t.concat(c.splitTextToSize(e,u))},[])):t=Array.isArray(t)?t:[t];for(var l=0;lthis.getPageHeight()?(this.cellAddPage(),t.y=n.top,a&&i&&(this.printHeaderRow(t.lineNumber,!0),t.y+=i[0].height)):t.y=e.y+e.height||t.y),void 0!==t.text[0]&&(this.rect(t.x,t.y,t.width,t.height,!0===eS?"FD":void 0),"right"===t.align?this.text(t.text,t.x+t.width-r,t.y+r,{align:"right",baseline:"top"}):"center"===t.align?this.text(t.text,t.x+t.width/2,t.y+r,{align:"center",baseline:"top",maxWidth:t.width-r-r}):this.text(t.text,t.x+r,t.y+r,{align:"left",baseline:"top",maxWidth:t.width-r-r})),this.internal.__cell__.lastCell=t,this},eL.table=function(t,e,r,i,a){if(e_.call(this),!r)throw Error("No data for PDF table.");var o,s,c,u,l=[],h=[],f=[],d={},p={},g=[],m=[],v=(a=a||{}).autoSize||!1,b=!1!==a.printHeaders,y=a.css&&void 0!==a.css["font-size"]?16*a.css["font-size"]:a.fontSize||12,w=a.margins||Object.assign({width:this.getPageWidth()},eA),x="number"==typeof a.padding?a.padding:3,N=a.headerBackgroundColor||"#c8c8c8",L=a.headerTextColor||"#000";if(eP.call(this),this.internal.__cell__.printHeaders=b,this.internal.__cell__.margins=w,this.internal.__cell__.table_font_size=y,this.internal.__cell__.padding=x,this.internal.__cell__.headerBackgroundColor=N,this.internal.__cell__.headerTextColor=L,this.setFontSize(y),null==i)h=l=Object.keys(r[0]),f=l.map(function(){return"left"});else if(Array.isArray(i)&&"object"===(0,n.A)(i[0]))for(l=i.map(function(t){return t.name}),h=i.map(function(t){return t.prompt||t.name||""}),f=i.map(function(t){return t.align||"left"}),o=0;o0&&this.setTableHeaderRow(i),this.setFont(void 0,"normal"),eS=!1};var tI={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},tC=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],tj=tF(tC),tO=[100,200,300,400,500,600,700,800,900],tM=tF(tO);function tq(t){var e,r,n,i=t.family.replace(/"|'/g,"").toLowerCase(),a=tI[e=(e=t.style)||"normal"]?e:"normal",o=(r=t.weight)?"number"==typeof r?r>=100&&r<=900&&r%100==0?r:400:/^\d00$/.test(r)?parseInt(r):"bold"===r?700:400:400,s="number"==typeof tj[n=(n=t.stretch)||"normal"]?n:"normal";return{family:i,style:a,weight:o,stretch:s,src:t.src||[],ref:t.ref||{name:i,style:[s,a,o].join(" ")}}}function tE(t,e,r,n){var i;for(i=r;i>=0&&i=0&&i>>1)&255}return i}function eU(t,e,r){var n=t.length,i=[];i[0]=4;for(var a=0;a>a&(1<>8&255)}function eV(t,e){return e+1>7&&(o=e,s=a,e+=3*a);var c=!0,u=[],l=0,h=null,f=0,d=null;for(this.width=r,this.height=n;c&&e=0))throw Error("Invalid block size");if(0===g)break;e+=g}break;case 249:if(4!==t[e++]||0!==t[e+4])throw Error("Invalid graphics extension block.");var p=t[e++];l=t[e++]|t[e++]<<8,h=t[e++],1&p||(h=null),f=p>>2&7,e++;break;case 254:for(;;){if(!((g=t[e++])>=0))throw Error("Invalid block size");if(0===g)break;e+=g}break;default:throw Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var g,m=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,b=t[e++]|t[e++]<<8,y=t[e++]|t[e++]<<8,w=t[e++],x=w>>6&1,N=1<<1+(7&w),L=o,A=s,S=!1;w>>7&&(S=!0,L=e,A=N,e+=3*N);var _=e;for(e++;;){if(!((g=t[e++])>=0))throw Error("Invalid block size");if(0===g)break;e+=g}u.push({x:m,y:v,width:b,height:y,has_local_palette:S,palette_offset:L,palette_size:A,data_offset:_,data_length:e-_,transparent_index:h,interlaced:!!x,delay:l,disposal:f});break;case 59:c=!1;break;default:throw Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return d},this.frameInfo=function(t){if(t<0||t>=u.length)throw Error("Frame index out of range.");return u[t]},this.decodeAndBlitFrameBGRA=function(e,n){var i=this.frameInfo(e),a=i.width*i.height;if(a>0x20000000)throw Error("Image dimensions exceed 512MB, which is too large.");var o=new Uint8Array(a);eY(t,i.data_offset,o,a);var s=i.palette_offset,c=i.transparent_index;null===c&&(c=256);var u=i.width,l=r-u,h=u,f=4*(i.y*r+i.x),d=4*((i.y+i.height)*r+i.x),p=f,g=4*l;!0===i.interlaced&&(g+=4*r*7);for(var m=8,v=0,b=o.length;v=d&&(g=4*l+4*r*(m-1),p=f+(u+l)*(m<<1),m>>=1)),y===c)p+=4;else{var w=t[s+3*y],x=t[s+3*y+1],N=t[s+3*y+2];n[p++]=N,n[p++]=x,n[p++]=w,n[p++]=255}--h}},this.decodeAndBlitFrameRGBA=function(e,n){var i=this.frameInfo(e),a=i.width*i.height;if(a>0x20000000)throw Error("Image dimensions exceed 512MB, which is too large.");var o=new Uint8Array(a);eY(t,i.data_offset,o,a);var s=i.palette_offset,c=i.transparent_index;null===c&&(c=256);var u=i.width,l=r-u,h=u,f=4*(i.y*r+i.x),d=4*((i.y+i.height)*r+i.x),p=f,g=4*l;!0===i.interlaced&&(g+=4*r*7);for(var m=8,v=0,b=o.length;v=d&&(g=4*l+4*r*(m-1),p=f+(u+l)*(m<<1),m>>=1)),y===c)p+=4;else{var w=t[s+3*y],x=t[s+3*y+1],N=t[s+3*y+2];n[p++]=w,n[p++]=x,n[p++]=N,n[p++]=255}--h}}}function eY(t,e,r,n){for(var i=t[e++],a=1<>=u,h-=u,v!==a){if(v===o)break;for(var b=va;)w=g[w]>>8,++y;var x=w;if(d+y+ +(b!==v)>n)return void c("Warning, gif stream longer than expected.");r[d++]=x;var N=d+=y;for(b!==v&&(r[d++]=x),w=b;y--;)w=g[w],r[--N]=255&w,w>>=8;null!==m&&s<4096&&(g[s++]=m<<8|x,s>=l+1&&u<12&&(++u,l=l<<1|1)),m=v}else s=o+1,l=(1<<(u=i+1))-1,m=null}return d!==n&&c("Warning, gif stream shorter than expected."),r}function eJ(t){var e,r,n,i,a,o=Math.floor,s=Array(64),c=Array(64),u=Array(64),l=Array(64),h=Array(65535),f=Array(65535),d=Array(64),p=Array(64),g=[],m=0,v=7,b=Array(64),y=Array(64),w=Array(64),x=Array(256),N=Array(2048),L=[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],A=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],S=[0,1,2,3,4,5,6,7,8,9,10,11],_=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],P=[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],k=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],F=[0,1,2,3,4,5,6,7,8,9,10,11],I=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],C=[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 j(t,e){for(var r=0,n=0,i=[],a=1;a<=16;a++){for(var o=1;o<=t[a];o++)i[e[n]]=[],i[e[n]][0]=r,i[e[n]][1]=a,n++,r++;r*=2}return i}function O(t){for(var e=t[0],r=t[1]-1;r>=0;)e&1<>8&255),M(255&t)}function E(t,e,r,n,i){for(var a,o=i[0],s=i[240],c=function(t,e){var r,n,i,a,o,s,c,u,l,h,f=0;for(l=0;l<8;++l){r=t[f],n=t[f+1],i=t[f+2],a=t[f+3],o=t[f+4],s=t[f+5],c=t[f+6];var p=r+(u=t[f+7]),g=r-u,m=n+c,v=n-c,b=i+s,y=i-s,w=a+o,x=a-o,N=p+w,L=p-w,A=m+b,S=m-b;t[f]=N+A,t[f+4]=N-A;var _=.707106781*(S+L);t[f+2]=L+_,t[f+6]=L-_;var P=.382683433*((N=x+y)-(S=v+g)),k=.5411961*N+P,F=1.306562965*S+P,I=.707106781*(A=y+v),C=g+I,j=g-I;t[f+5]=j+k,t[f+3]=j-k,t[f+1]=C+F,t[f+7]=C-F,f+=8}for(f=0,l=0;l<8;++l){r=t[f],n=t[f+8],i=t[f+16],a=t[f+24],o=t[f+32],s=t[f+40],c=t[f+48];var O=r+(u=t[f+56]),M=r-u,q=n+c,E=n-c,B=i+s,R=i-s,D=a+o,T=a-o,z=O+D,U=O-D,H=q+B,W=q-B;t[f]=z+H,t[f+32]=z-H;var V=.707106781*(W+U);t[f+16]=U+V,t[f+48]=U-V;var G=.382683433*((z=T+R)-(W=E+M)),Y=.5411961*z+G,J=1.306562965*W+G,X=.707106781*(H=R+E),K=M+X,Z=M-X;t[f+40]=Z+Y,t[f+24]=Z-Y,t[f+8]=K+J,t[f+56]=K-J,f++}for(l=0;l<64;++l)h=t[l]*e[l],d[l]=h>0?h+.5|0:h-.5|0;return d}(t,e),u=0;u<64;++u)p[L[u]]=c[u];var l=p[0]-r;r=p[0],0==l?O(n[0]):(O(n[f[a=32767+l]]),O(h[a]));for(var g=63;g>0&&0==p[g];)g--;if(0==g)return O(o),r;for(var m,v=1;v<=g;){for(var b=v;0==p[v]&&v<=g;)++v;var y=v-b;if(y>=16){m=y>>4;for(var w=1;w<=m;++w)O(s);y&=15}O(i[(y<<4)+f[a=32767+p[v]]]),O(h[a]),v++}return 63!=g&&O(o),r}function B(t){a!=(t=Math.min(Math.max(t,1),100))&&(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],r=0;r<64;r++){var n=o((e[r]*t+50)/100);n=Math.min(Math.max(n,1),255),s[L[r]]=n}for(var i=[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],a=0;a<64;a++){var h=o((i[a]*t+50)/100);h=Math.min(Math.max(h,1),255),c[L[a]]=h}for(var f=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],d=0,p=0;p<8;p++)for(var g=0;g<8;g++)u[d]=1/(s[L[d]]*f[p]*f[g]*8),l[d]=1/(c[L[d]]*f[p]*f[g]*8),d++}(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),a=t)}this.encode=function(t,a){a&&B(a),g=[],m=0,v=7,q(65496),q(65504),q(16),M(74),M(70),M(73),M(70),M(0),M(1),M(1),M(0),q(1),q(1),M(0),M(0),function(){q(65499),q(132),M(0);for(var t=0;t<64;t++)M(s[t]);M(1);for(var e=0;e<64;e++)M(c[e])}(),d=t.width,p=t.height,q(65472),q(17),M(8),q(p),q(d),M(3),M(1),M(17),M(0),M(2),M(17),M(1),M(3),M(17),M(1),function(){q(65476),q(418),M(0);for(var t=0;t<16;t++)M(A[t+1]);for(var e=0;e<=11;e++)M(S[e]);M(16);for(var r=0;r<16;r++)M(_[r+1]);for(var n=0;n<=161;n++)M(P[n]);M(1);for(var i=0;i<16;i++)M(k[i+1]);for(var a=0;a<=11;a++)M(F[a]);M(17);for(var o=0;o<16;o++)M(I[o+1]);for(var s=0;s<=161;s++)M(C[s])}(),q(65498),q(12),M(3),M(1),M(0),M(2),M(17),M(3),M(17),M(0),M(63),M(0);var o=0,h=0,f=0;m=0,v=7,this.encode.displayName="_encode_";for(var d,p,x,L,j,R,D,T,z,U,H,W=t.data,V=t.width,G=t.height,Y=4*V,J=0;J>3)*Y+(z=4*(7&H)),J+U>=G&&(T-=Y*(J+1+U-G)),x+z>=Y&&(T-=x+z-Y+4),L=W[T++],j=W[T++],R=W[T++],b[H]=(N[L]+N[j+256|0]+N[R+512|0]>>16)-128,y[H]=(N[L+768|0]+N[j+1024|0]+N[R+1280|0]>>16)-128,w[H]=(N[L+1280|0]+N[j+1536|0]+N[R+1792|0]>>16)-128;o=E(b,u,o,e,n),h=E(y,l,h,r,i),f=E(w,l,f,r,i),x+=32}J+=8}if(v>=0){var X=[];X[1]=v+1,X[0]=(1<n;n++)if(t[e+n]!=r.charCodeAt(n))return!0;return!1}function n(t,e,r,n,i){for(var a=0;an+1?[]:new e),!(i.length>>0;t&r;)r>>>=1;return r?(t&r-1)+r:t}function u(t,r,n,i,a){e(!(i%n));do t[r+(i-=n)]=a;while(0=o),512>=o)var s=a(512);else if(null==(s=a(o)))return 0;return function(t,r,n,i,o,s){var l,f,d=r,p=1<l;++l){if(g[l]>1<(N-=g[l]))return 0;for(;0=l;++l,o<<=1){if(x+=N<<=1,0>(N-=g[l]))return 0;for(;0b&&!(0>=(v-=g[b]));)++b,v<<=1;p+=L=1<<(v=b-n),t[r+(b=w&y)].g=v+n,t[r+b].value=d-r-b}i.g=l-n,i.value=s[f++],u(t,d+(w>>n),o,L,i),w=c(w,l)}}return x!=2*m[15]-1?0:p}(t,r,n,i,o,s)}function h(){this.value=this.g=0}function f(){this.value=this.g=0}function d(){this.G=o(5,h),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(rm,f)}function p(t,r,n,i){e(null!=t),e(null!=r),e(0x80000000>i),t.Ca=254,t.I=0,t.b=-8,t.Ka=0,t.oa=r,t.pa=n,t.Jd=r,t.Yc=n+i,t.Zc=4<=i?n+i-4+1:n,_(t)}function g(t,e){for(var r=0;0i),t.Sb=i,t.Ra=0,t.u=0,t.h=0,4>>=8,t.Ra+=t.oa[t.pa+t.bb]<>>0,++t.bb,t.u-=8;L(t)&&(t.h=1,t.u=0)}function y(t,r){if(e(0<=r),!t.h&&r<=rb){var n=N(t)&rv[r];return t.u+=r,b(t),n}return t.h=1,t.u=0}function w(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function x(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function N(t){return t.Ra>>>(t.u&ry-1)>>>0}function L(t){return e(t.bb<=t.Sb),t.h||t.bb==t.Sb&&t.u>ry}function A(t,e){t.u=e,t.h=L(t)}function S(t){t.u>=rw&&(e(t.u>=rw),b(t))}function _(t){e(null!=t&&null!=t.oa),t.pa>>0,t.b+=8):(e(null!=t&&null!=t.oa),t.pat.b&&_(t);var n=t.b,i=r*e>>>8,a=(t.I>>>n>i)+0;for(a?(r-=i,t.I-=i+1<>>0):r=i+1,n=r,i=0;256<=n;)i+=8,n>>=8;return n=7^i+rx[n],t.b-=n,t.Ca=(r<>24&255,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=255&r}function I(t,e){return t[e+0]|t[e+1]<<8}function C(t,e){return I(t,e)|t[e+2]<<16}function j(t,e){return I(t,e)|I(t,e+2)<<16}function O(t,r){return e(null!=t),e(0=a||0>=o?0:(n[0]=a,i[0]=o,1)}function B(t,e){return t+(1<>>e}function R(t,e){return((0xff00ff00&t)+(0xff00ff00&e)>>>0&0xff00ff00)+((0xff00ff&t)+(0xff00ff&e)>>>0&0xff00ff)>>>0}function D(e,r){t[r]=function(r,n,i,a,o,s,c){var u;for(u=0;u>>1)+(t&e)>>>0}function U(t){return 0<=t&&256>t?t:0>t?0:255>1))}function W(t,e,r){return Math.abs(e-r)-Math.abs(t-r)}function V(t,e,r,n,i,a,o){for(n=a[o-1],r=0;r>8&255,c=0xff00ff&(c=(c=0xff00ff&o)+((s<<16)+s));n[i+a]=(0xff00ff00&o)+c>>>0}}function Y(t,e){e.jd=255&t,e.hd=t>>8&255,e.ud=t>>16&255}function J(t,e,r,n,i,a){var o;for(o=0;o>>8,u=s,l=255&(l=(l=s>>>16)+((t.jd<<24>>24)*(c<<24>>24)>>>5));u=255&(u=(u+=(t.hd<<24>>24)*(c<<24>>24)>>>5)+((t.ud<<24>>24)*(l<<24>>24)>>>5)),i[a+o]=(0xff00ff00&s)+(l<<16)+u}}function X(e,r,n,i,a){t[r]=function(t,e,r,n,o,s,c,u,l){for(n=c;n>e.b,f=e.Ea,d=e.K[0],p=e.w;if(8>h)for(e=(1<>=h}else t["VP8LMapColor"+n](s,c,d,p,u,l,r,o,f)}}function K(t,e,r,n,i){for(r=e+r;e>16&255,n[i++]=a>>8&255,n[i++]=255&a}}function Z(t,e,r,n,i){for(r=e+r;e>16&255,n[i++]=a>>8&255,n[i++]=255&a,n[i++]=a>>24&255}}function $(t,e,r,n,i){for(r=e+r;e>16&240|o>>12&15,o=240&o|o>>28&15;n[i++]=a,n[i++]=o}}function Q(t,e,r,n,i){for(r=e+r;e>16&248|o>>13&7,o=o>>5&224|o>>3&31;n[i++]=a,n[i++]=o}}function tt(t,e,r,n,i){for(r=e+r;e>8&255,n[i++]=a>>16&255}}function te(t,e,r,i,a,o){if(0==o)for(r=e+r;e>24|o[1]>>8&65280|o[2]<<8&0xff0000|o[3]<<24)>>>0),a+=32;else n(i,a,t,e,r)}function tr(e,r){t[r][0]=t[e+"0"],t[r][1]=t[e+"1"],t[r][2]=t[e+"2"],t[r][3]=t[e+"3"],t[r][4]=t[e+"4"],t[r][5]=t[e+"5"],t[r][6]=t[e+"6"],t[r][7]=t[e+"7"],t[r][8]=t[e+"8"],t[r][9]=t[e+"9"],t[r][10]=t[e+"10"],t[r][11]=t[e+"11"],t[r][12]=t[e+"12"],t[r][13]=t[e+"13"],t[r][14]=t[e+"0"],t[r][15]=t[e+"0"]}function tn(t){return t==nl||t==nh||t==nf||t==nd}function ti(){this.eb=[],this.size=this.A=this.fb=0}function ta(){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 to(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new ti,this.f.kb=new ta,this.sd=null}function ts(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function tc(){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 tu(t){return alert("todo:WebPSamplerProcessPlane"),t.T}function tl(t,e){var r=t.T,i=e.ba.f.RGBA,a=i.eb,o=i.fb+t.ka*i.A,s=nR[e.ba.S],c=t.y,u=t.O,l=t.f,h=t.N,f=t.ea,d=t.W,p=e.cc,g=e.dc,m=e.Mc,v=e.Nc,b=t.ka,y=t.ka+t.T,w=t.U,x=w+1>>1;for(0==b?s(c,u,null,null,l,h,f,d,l,h,f,d,a,o,null,null,w):(s(e.ec,e.fc,c,u,p,g,m,v,l,h,f,d,a,o-i.A,a,o,w),++r);b+2r,i=r==ni||r==no||r==ns||r==nc||12==r||tn(r);if(e.memory=null,e.Ib=null,e.Jb=null,e.Nd=null,!rd(e.Oa,t,i?11:12))return 0;if(i&&tn(r)&&e6(),t.da)alert("todo:use_scaling");else{if(n){if(e.Ib=tu,t.Kb){if(r=t.U+1>>1,e.memory=a(t.U+2*r),null==e.memory)return 0;e.ec=e.memory,e.fc=0,e.cc=e.ec,e.dc=e.fc+t.U,e.Mc=e.cc,e.Nc=e.dc+r,e.Ib=tl,e6()}}else alert("todo:EmitYUV");i&&(e.Jb=th,n&&e3())}if(n&&!n$){for(t=0;256>t;++t)nQ[t]=89858*(t-128)+nY>>nG,n5[t]=-22014*(t-128)+nY,n2[t]=-45773*(t-128),n1[t]=113618*(t-128)+nY>>nG;for(t=nJ;t>nG,n0[t-nJ]=tV(e,255),n3[t-nJ]=tV(e+8>>4,15);n$=1}return 1}function td(t){var r=t.ma,n=t.U,i=t.T;return e(!(1&t.ka)),0>=n||0>=i?0:(n=r.Ib(t,r),null!=r.Jb&&r.Jb(t,r,n),r.Dc+=n,1)}function tp(t){t.ma.memory=null}function tg(t,e,r,n){return 47!=y(t,8)?0:(e[0]=y(t,14)+1,r[0]=y(t,14)+1,n[0]=y(t,1),0!=y(t,3)?0:!t.h)}function tm(t,e){if(4>t)return t+1;var r=t-2>>1;return(2+(1&t)<>4)*t+(8-(15&r)))?r:1}function tb(t,e,r){var n=N(r),i=t[e+=255&n].g-8;return 0>>0,e(8>=n.g),t.g}function tw(t,r,n){var i=t.xc;return e((r=0==i?0:t.vc[t.md*(n>>i)+(r>>i)])>_.b)*A;vx&&(I=x),(0,rF[P[k++]>>8&15])(p,g+ +F,y,w+F-x,I-F,y,w+F),F=I}g+=x,w+=x,++v&L||(_+=A)}d!=h.nc&&n(l,u-m,l,u+(d-f-1)*m,m);break;case 1:for(m=p,b=g,x=(p=h.Ea)-(w=p&~(y=(g=1<>h.b)*v;f=a),0o.o&&(i=o.o),n=i?n=0:(a[0]+=4*o.v,o.ka=n-o.j,o.U=o.va-o.v,o.T=i-n,n=1),n){if(c=c[0],11>(n=t.ca).S){var h=n.f.RGBA,f=(i=n.S,a=o.U,o=o.T,l=h.eb,h.A),d=o;for(h=h.fb+t.Ma*h.A;0i){var a=t.l.width,o=n.ca,s=n.tb+a*i,c=t.V,u=t.Ba+t.c*i,l=t.gc;e(1==t.ab),e(3==l[0].hc),rP(l[0],i,r,c,u,o,s),tA(n,i,r,o,s,a)}t.C=t.Ma=r}function t_(t,r,n,i,a,o,s){var c=t.$/i,u=t.$%i,l=t.m,h=t.s,f=n+t.$,d=f;a=n+i*a;var p=n+i*o,g=280+h.ua,m=t.Pb?c:0x1000000,v=0=m){var _=f-n;e((m=t).Pb),m.wd=m.m,m.xd=_,0k.g?(A(x,x.u+k.g),_[P]=k.value,x=0):(A(x,x.u+k.g-256),e(256<=k.value),x=k.value),0==x&&(w=!0)}else x=tb(y.G[0],y.H[0],l);if(l.h)break;if(w||256>x){if(!w)if(y.nd)r[f]=(y.qb|x<<8)>>>0;else{if(S(l),w=tb(y.G[1],y.H[1],l),S(l),_=tb(y.G[2],y.H[2],l),P=tb(y.G[3],y.H[3],l),l.h)break;r[f]=(P<<24|w<<16|x<<8|_)>>>0}if(w=!1,++f,++u>=i&&(u=0,++c,null!=s&&c<=o&&!(c%16)&&s(t,c),null!=v))for(;d>>v.Mb]=x}else if(280>x){if(x=tm(x-256,l),_=tb(y.G[4],y.H[4],l),S(l),_=tv(i,_=tm(_,l)),l.h)break;if(f-n<_||a-f=i;)u-=i,++c,null!=s&&c<=o&&!(c%16)&&s(t,c);if(e(f<=a),u&b&&(y=tw(h,u,c)),null!=v)for(;d>>v.Mb]=x}else{if(!(x>>v.Mb]=x;x=f,e(!(w>>>(_=v).Xa)),r[x]=_.X[w],w=!0}w||e(l.h==L(l))}if(t.Pb&&l.h&&fo?o:c),t.a=0,t.$=f-n}return 1}return t.a=3,0}function tP(t){e(null!=t),t.vc=null,t.yc=null,t.Ya=null;var r=t.Wa;null!=r&&(r.X=null),t.vb=null,e(null!=t)}function tk(){var e=new eX;return null==e?null:(e.a=0,e.xb=nE,tr("Predictor","VP8LPredictors"),tr("Predictor","VP8LPredictors_C"),tr("PredictorAdd","VP8LPredictorsAdd"),tr("PredictorAdd","VP8LPredictorsAdd_C"),rA=G,rI=J,rC=K,rj=Z,rO=$,rM=Q,rq=tt,t.VP8LMapColor32b=r_,t.VP8LMapColor8b=rk,e)}function tF(t,r,n,s,c){for(var u=1,f=[t],p=[r],g=s.m,m=s.s,v=null,b=0;;){if(n)for(;u&&y(g,1);){var w=f,x=p,L=1,_=s.m,P=s.gc[s.ab],k=y(_,2);if(s.Oc&1<=s.ab),k){case 0:case 1:P.b=y(_,3)+2,L=tF(B(P.Ea,P.b),B(P.nc,P.b),0,s,P.K),P.K=P.K[0];break;case 3:var F,I=y(_,8)+1,C=16>P.b),q=a(M);if(null==q)F=0;else{var E=P.K[0],D=P.w;for(q[0]=P.K[0][0],j=1;j<+I;++j)q[j]=R(E[D+j],q[j-1]);for(;j<4*M;++j)q[j]=0;P.K[0]=null,P.K[0]=q,F=1}}L=F;break;case 2:break;default:e(0)}u=L}}if(f=f[0],p=p[0],u&&y(g,1)&&!(u=1<=(b=y(g,4))&&11>=b)){s.a=3;break}if(T=u)e:{var T,z,U,H,W=f,V=p,G=b,Y=s.m,J=s.s,X=[null],K=1,Z=0,$=nw[G];r:for(;;){if(n&&y(Y,1)){var Q=y(Y,3)+2,tt=B(W,Q),te=B(V,Q),tr=tt*te;if(!tF(tt,te,0,s,X))break;for(X=X[0],J.xc=Q,z=0;z>8&65535;X[z]=tn,tn>=K&&(K=tn+1)}}if(Y.h)break;for(U=0;5>U;++U){var ti=nm[U];!U&&0=to),tc=ts;var tu=a(Z);if(null==tc||null==tu||null==ta){s.a=1;break}for(z=H=0;zU;++U){ti=nm[U],tf[U]=ta,td[U]=H,!U&&0tb)break}else tM=tb;for(tq=0;tqtU)tu[tq++]=tU,0!=tU&&(tR=tU);else{var tH=16==tU,tW=tU-16,tV=ng[tW],tG=y(tB,np[tW])+tV;if(tq+tG>tb)break i;for(var tY=tH?tR:0;0=U){var tJ,tX=tu[0];for(tJ=1;tJtX&&(tX=tu[tJ]);tm+=tX}}if(th.nd=tg,th.Qb=0,tg&&(th.qb=(tf[3][td[3]+0].value<<24|tf[1][td[1]+0].value<<16|tf[2][td[2]+0].value)>>>0,0==tp&&256>tf[0][td[0]+0].value&&(th.Qb=1,th.qb+=tf[0][td[0]+0].value<<8)),th.jc=!th.Qb&&6>tm,th.jc)for(tl=0;tl>=ty(t$,8,tZ),tK>>=ty(th.G[1][th.H[1]+tK],16,tZ),tK>>=ty(th.G[2][th.H[2]+tK],0,tZ),ty(th.G[3][th.H[3]+tK],24,tZ))}}J.vc=X,J.Wb=K,J.Ya=tc,J.yc=ta,T=1;break e}T=0}if(!(u=T)){s.a=3;break}if(0r+1?[]:0),!(n.lengtht?0:t>e?e:t}function tG(){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 tY(){var t=new tW;return null!=t&&(t.a=0,t.sc="OK",t.cb=0,t.Xb=0,nA||(nA=tZ)),t}function tJ(t,e,r){return 0==t.a&&(t.a=e,t.sc=r,t.cb=0),0}function tX(t,e,r){return 3<=r&&157==t[e+0]&&1==t[e+1]&&42==t[e+2]}function tK(t,r){if(null==t)return 0;if(t.a=0,t.sc="OK",null==r)return tJ(t,2,"null VP8Io passed to VP8GetHeaders()");var n=r.data,a=r.w,o=r.ha;if(4>o)return tJ(t,7,"Truncated header.");var s=n[a+0]|n[a+1]<<8|n[a+2]<<16,c=t.Od;if(c.Rb=!(1&s),c.td=s>>1&7,c.yd=s>>4&1,c.ub=s>>5,3o)return tJ(t,7,"cannot parse picture header");if(!tX(n,a,o))return tJ(t,3,"Bad code word");u.c=16383&(n[a+4]<<8|n[a+3]),u.Td=n[a+4]>>6,u.i=16383&(n[a+6]<<8|n[a+5]),u.Ud=n[a+6]>>6,a+=7,o-=7,t.za=u.c+15>>4,t.Ub=u.i+15>>4,r.width=u.c,r.height=u.i,r.Da=0,r.j=0,r.v=0,r.va=r.width,r.o=r.height,r.da=0,r.ib=r.width,r.hb=r.height,r.U=r.width,r.T=r.height,i((s=t.Pa).jb,0,255,s.jb.length),e(null!=(s=t.Qa)),s.Cb=0,s.Bb=0,s.Fb=1,i(s.Zb,0,0,s.Zb.length),i(s.Lb,0,0,s.Lb)}if(c.ub>o)return tJ(t,7,"bad partition length");p(s=t.m,n,a,c.ub),a+=c.ub,o-=c.ub,c.Rb&&(u.Ld=P(s),u.Kd=P(s)),u=t.Qa;var l,h=t.Pa;if(e(null!=s),e(null!=u),u.Cb=P(s),u.Cb){if(u.Bb=P(s),P(s)){for(u.Fb=P(s),l=0;4>l;++l)u.Zb[l]=P(s)?m(s,7):0;for(l=0;4>l;++l)u.Lb[l]=P(s)?m(s,6):0}if(u.Bb)for(l=0;3>l;++l)h.jb[l]=P(s)?g(s,8):255}else u.Bb=0;if(s.Ka)return tJ(t,3,"cannot parse segment header");if((u=t.ed).zd=P(s),u.Tb=g(s,6),u.wb=g(s,3),u.Pc=P(s),u.Pc&&P(s)){for(h=0;4>h;++h)P(s)&&(u.vd[h]=m(s,6));for(h=0;4>h;++h)P(s)&&(u.od[h]=m(s,6))}if(t.L=0==u.Tb?0:u.zd?1:2,s.Ka)return tJ(t,3,"cannot parse filter header");var f=o;if(o=l=a,a=l+f,u=f,t.Xb=(1<u&&(d=u),p(t.Jc[+f],n,l,d),l+=d,u-=d,o+=3}p(t.Jc[+h],n,l,u),n=ld;++d){if(f.Cb){var v=f.Zb[d];f.Fb||(v+=n)}else{if(0>16,8>b.Eb[1]&&(b.Eb[1]=8),b.Qc[0]=nN[tV(v+h,117)],b.Qc[1]=nL[tV(v+l,127)],b.lc=v+l}if(!c.Rb)return tJ(t,4,"Not a key frame.");for(P(s),c=t.Pa,n=0;4>n;++n){for(o=0;8>o;++o)for(a=0;3>a;++a)for(u=0;11>u;++u)h=k(s,nI[n][o][a][u])?g(s,8):nk[n][o][a][u],c.Wc[n][o].Yb[a][u]=h;for(o=0;17>o;++o)c.Xc[n][o]=c.Wc[n][nC[o]]}return t.kc=P(s),t.kc&&(t.Bd=g(s,8)),t.cb=1}function tZ(t,e,r,n,i,a,o){var s=e[i].Yb[r];for(r=0;16>i;++i){if(!k(t,s[r+0]))return i;for(;!k(t,s[r+1]);)if(s=e[++i].Yb[0],r=0,16==i)return 16;var c=e[i+1].Yb;if(k(t,s[r+2])){var u=t,l=0;if(k(u,(f=s)[(h=r)+3]))if(k(u,f[h+6])){for(s=0,h=2*(l=k(u,f[h+8]))+(f=k(u,f[h+9+l])),l=0,f=nS[h];f[s];++s)l+=l+k(u,f[s]);l+=3+(8<(u=t).b&&_(u);var h,f=u.b,d=(h=u.Ca>>1)-(u.I>>f)>>31;--u.b,u.Ca+=d,u.Ca|=1,u.I-=(h+1&d)<>3),t[e+r+32*n]=-256&i?0>i?0:255:i}function t1(t,e,r,n,i,a){tQ(t,e,0,r,n+i),tQ(t,e,1,r,n+a),tQ(t,e,2,r,n-a),tQ(t,e,3,r,n-i)}function t2(t){return(20091*t>>16)+t}function t5(t,e,r,n){var i,o=0,s=a(16);for(i=0;4>i;++i){var c=t[e+0]+t[e+8],u=t[e+0]-t[e+8],l=(35468*t[e+4]>>16)-t2(t[e+12]),h=t2(t[e+4])+(35468*t[e+12]>>16);s[o+0]=c+h,s[o+1]=u+l,s[o+2]=u-l,s[o+3]=c-h,o+=4,e++}for(i=o=0;4>i;++i)c=(t=s[o+0]+4)+s[o+8],u=t-s[o+8],l=(35468*s[o+4]>>16)-t2(s[o+12]),tQ(r,n,0,0,c+(h=t2(s[o+4])+(35468*s[o+12]>>16))),tQ(r,n,1,0,u+l),tQ(r,n,2,0,u-l),tQ(r,n,3,0,c-h),o++,n+=32}function t0(t,e,r,n){var i=t[e+0]+4,a=35468*t[e+4]>>16,o=t2(t[e+4]),s=35468*t[e+1]>>16;t1(r,n,0,i+o,t=t2(t[e+1]),s),t1(r,n,1,i+a,t,s),t1(r,n,2,i-a,t,s),t1(r,n,3,i-o,t,s)}function t3(t,e,r,n,i){t5(t,e,r,n),i&&t5(t,e+16,r,n+4)}function t4(t,e,r,n){rB(t,e+0,r,n,1),rB(t,e+32,r,n+128,1)}function t6(t,e,r,n){var i;for(t=t[e+0]+4,i=0;4>i;++i)for(e=0;4>e;++e)tQ(r,n,e,i,t)}function t8(t,e,r,n){t[e+0]&&rT(t,e+0,r,n),t[e+16]&&rT(t,e+16,r,n+4),t[e+32]&&rT(t,e+32,r,n+128),t[e+48]&&rT(t,e+48,r,n+128+4)}function t7(t,e,r,n){var i,o=a(16);for(i=0;4>i;++i){var s=t[e+0+i]+t[e+12+i],c=t[e+4+i]+t[e+8+i],u=t[e+4+i]-t[e+8+i],l=t[e+0+i]-t[e+12+i];o[0+i]=s+c,o[8+i]=s-c,o[4+i]=l+u,o[12+i]=l-u}for(i=0;4>i;++i)s=(t=o[0+4*i]+3)+o[3+4*i],c=o[1+4*i]+o[2+4*i],u=o[1+4*i]-o[2+4*i],l=t-o[3+4*i],r[n+0]=s+c>>3,r[n+16]=l+u>>3,r[n+32]=s-c>>3,r[n+48]=l-u>>3,n+=64}function t9(t,e,r){var n,i=e-32,a=255-t[i-1];for(n=0;nr;++r)n(t,e+32*r,t,e-32,16)}function ei(t,e){var r;for(r=16;0n;++n)i(e,r+32*n,t,16)}function eo(t,e){var r,n=16;for(r=0;16>r;++r)n+=t[e-1+32*r]+t[e+r-32];ea(n>>5,t,e)}function es(t,e){var r,n=8;for(r=0;16>r;++r)n+=t[e-1+32*r];ea(n>>4,t,e)}function ec(t,e){var r,n=8;for(r=0;16>r;++r)n+=t[e+r-32];ea(n>>4,t,e)}function eu(t,e){ea(128,t,e)}function el(t,e,r){return t+2*e+r+2>>2}function eh(t,e){var r,i=e-32;for(i=new Uint8Array([el(t[i-1],t[i+0],t[i+1]),el(t[i+0],t[i+1],t[i+2]),el(t[i+1],t[i+2],t[i+3]),el(t[i+2],t[i+3],t[i+4])]),r=0;4>r;++r)n(t,e+32*r,i,0,i.length)}function ef(t,e){var r=t[e-1],n=t[e-1+32],i=t[e-1+64],a=t[e-1+96];F(t,e+0,0x1010101*el(t[e-1-32],r,n)),F(t,e+32,0x1010101*el(r,n,i)),F(t,e+64,0x1010101*el(n,i,a)),F(t,e+96,0x1010101*el(i,a,a))}function ed(t,e){var r,n=4;for(r=0;4>r;++r)n+=t[e+r-32]+t[e-1+32*r];for(n>>=3,r=0;4>r;++r)i(t,e+32*r,n,4)}function ep(t,e){var r=t[e-1+0],n=t[e-1+32],i=t[e-1+64],a=t[e-1-32],o=t[e+0-32],s=t[e+1-32],c=t[e+2-32],u=t[e+3-32];t[e+0+96]=el(n,i,t[e-1+96]),t[e+1+96]=t[e+0+64]=el(r,n,i),t[e+2+96]=t[e+1+64]=t[e+0+32]=el(a,r,n),t[e+3+96]=t[e+2+64]=t[e+1+32]=t[e+0+0]=el(o,a,r),t[e+3+64]=t[e+2+32]=t[e+1+0]=el(s,o,a),t[e+3+32]=t[e+2+0]=el(c,s,o),t[e+3+0]=el(u,c,s)}function eg(t,e){var r=t[e+1-32],n=t[e+2-32],i=t[e+3-32],a=t[e+4-32],o=t[e+5-32],s=t[e+6-32],c=t[e+7-32];t[e+0+0]=el(t[e+0-32],r,n),t[e+1+0]=t[e+0+32]=el(r,n,i),t[e+2+0]=t[e+1+32]=t[e+0+64]=el(n,i,a),t[e+3+0]=t[e+2+32]=t[e+1+64]=t[e+0+96]=el(i,a,o),t[e+3+32]=t[e+2+64]=t[e+1+96]=el(a,o,s),t[e+3+64]=t[e+2+96]=el(o,s,c),t[e+3+96]=el(s,c,c)}function em(t,e){var r=t[e-1+0],n=t[e-1+32],i=t[e-1+64],a=t[e-1-32],o=t[e+0-32],s=t[e+1-32],c=t[e+2-32],u=t[e+3-32];t[e+0+0]=t[e+1+64]=a+o+1>>1,t[e+1+0]=t[e+2+64]=o+s+1>>1,t[e+2+0]=t[e+3+64]=s+c+1>>1,t[e+3+0]=c+u+1>>1,t[e+0+96]=el(i,n,r),t[e+0+64]=el(n,r,a),t[e+0+32]=t[e+1+96]=el(r,a,o),t[e+1+32]=t[e+2+96]=el(a,o,s),t[e+2+32]=t[e+3+96]=el(o,s,c),t[e+3+32]=el(s,c,u)}function ev(t,e){var r=t[e+0-32],n=t[e+1-32],i=t[e+2-32],a=t[e+3-32],o=t[e+4-32],s=t[e+5-32],c=t[e+6-32],u=t[e+7-32];t[e+0+0]=r+n+1>>1,t[e+1+0]=t[e+0+64]=n+i+1>>1,t[e+2+0]=t[e+1+64]=i+a+1>>1,t[e+3+0]=t[e+2+64]=a+o+1>>1,t[e+0+32]=el(r,n,i),t[e+1+32]=t[e+0+96]=el(n,i,a),t[e+2+32]=t[e+1+96]=el(i,a,o),t[e+3+32]=t[e+2+96]=el(a,o,s),t[e+3+64]=el(o,s,c),t[e+3+96]=el(s,c,u)}function eb(t,e){var r=t[e-1+0],n=t[e-1+32],i=t[e-1+64],a=t[e-1+96];t[e+0+0]=r+n+1>>1,t[e+2+0]=t[e+0+32]=n+i+1>>1,t[e+2+32]=t[e+0+64]=i+a+1>>1,t[e+1+0]=el(r,n,i),t[e+3+0]=t[e+1+32]=el(n,i,a),t[e+3+32]=t[e+1+64]=el(i,a,a),t[e+3+64]=t[e+2+64]=t[e+0+96]=t[e+1+96]=t[e+2+96]=t[e+3+96]=a}function ey(t,e){var r=t[e-1+0],n=t[e-1+32],i=t[e-1+64],a=t[e-1+96],o=t[e-1-32],s=t[e+0-32],c=t[e+1-32],u=t[e+2-32];t[e+0+0]=t[e+2+32]=r+o+1>>1,t[e+0+32]=t[e+2+64]=n+r+1>>1,t[e+0+64]=t[e+2+96]=i+n+1>>1,t[e+0+96]=a+i+1>>1,t[e+3+0]=el(s,c,u),t[e+2+0]=el(o,s,c),t[e+1+0]=t[e+3+32]=el(r,o,s),t[e+1+32]=t[e+3+64]=el(n,r,o),t[e+1+64]=t[e+3+96]=el(i,n,r),t[e+1+96]=el(a,i,n)}function ew(t,e){var r;for(r=0;8>r;++r)n(t,e+32*r,t,e-32,8)}function ex(t,e){var r;for(r=0;8>r;++r)i(t,e,t[e-1],8),e+=32}function eN(t,e,r){var n;for(n=0;8>n;++n)i(e,r+32*n,t,8)}function eL(t,e){var r,n=8;for(r=0;8>r;++r)n+=t[e+r-32]+t[e-1+32*r];eN(n>>4,t,e)}function eA(t,e){var r,n=4;for(r=0;8>r;++r)n+=t[e+r-32];eN(n>>3,t,e)}function eS(t,e){var r,n=4;for(r=0;8>r;++r)n+=t[e-1+32*r];eN(n>>3,t,e)}function e_(t,e){eN(128,t,e)}function eP(t,e,r){var n=t[e-r],i=t[e+0],a=3*(i-n)+r9[1020+t[e-2*r]-t[e+r]],o=nt[112+(a+4>>3)];t[e-r]=ne[255+n+nt[112+(a+3>>3)]],t[e+0]=ne[255+i-o]}function ek(t,e,r,n){var i=t[e+0],a=t[e+r];return nr[255+t[e-2*r]-t[e-r]]>n||nr[255+a-i]>n}function eF(t,e,r,n){return 4*nr[255+t[e-r]-t[e+0]]+nr[255+t[e-2*r]-t[e+r]]<=n}function eI(t,e,r,n,i){var a=t[e-3*r],o=t[e-2*r],s=t[e-r],c=t[e+0],u=t[e+r],l=t[e+2*r],h=t[e+3*r];return 4*nr[255+s-c]+nr[255+o-u]>n?0:nr[255+t[e-4*r]-a]<=i&&nr[255+a-o]<=i&&nr[255+o-s]<=i&&nr[255+h-l]<=i&&nr[255+l-u]<=i&&nr[255+u-c]<=i}function eC(t,e,r,n){var i=2*n+1;for(n=0;16>n;++n)eF(t,e+n,r,i)&&eP(t,e+n,r)}function ej(t,e,r,n){var i=2*n+1;for(n=0;16>n;++n)eF(t,e+n*r,1,i)&&eP(t,e+n*r,1)}function eO(t,e,r,n){var i;for(i=3;0>7,g=18*m+63>>7,m=9*m+63>>7;t[c-3*r]=ne[255+t[c-3*r]+m],t[c-2*r]=ne[255+u+g],t[c-r]=ne[255+l+p],t[c+0]=ne[255+h-p],t[c+r]=ne[255+f-g],t[c+2*r]=ne[255+d-m]}e+=n}}function eE(t,e,r,n,i,a,o,s){for(a=2*a+1;0>3)],d=nt[112+(d+3>>3)],p=f+1>>1;t[c-2*r]=ne[255+t[c-2*r]+p],t[c-r]=ne[255+u+d],t[c+0]=ne[255+l-f],t[c+r]=ne[255+h-p]}e+=n}}function eB(t,e,r,n,i,a){eq(t,e,r,1,16,n,i,a)}function eR(t,e,r,n,i,a){eq(t,e,1,r,16,n,i,a)}function eD(t,e,r,n,i,a){var o;for(o=3;0u?0:255:u)&255,u=c,i[a+s]=l}}function e1(t,e,r,n,i,a){for(;0>23,t[s+4*o+1]=t[s+4*o+1]*u>>23,t[s+4*o+2]=t[s+4*o+2]*u>>23)}e+=a}}function e2(t,e,r,n,i){for(;0>4)*c>>16;t[e+2*a+0]=(240&o|o>>4)*c>>16&240|(15&o|o<<4)*c>>16>>4&15,t[e+2*a+1]=240&u|s}e+=i}}function e5(t,e,r,n,i,a,o,s){var c,u,l=255;for(u=0;u>8}function e3(){r1=e1,r2=e2,r5=e5,r0=e0}function e4(r,n,i){t[r]=function(t,r,a,o,s,c,u,l,h,f,d,p,g,m,v,b,y){var w,x=y-1>>1,N=s[c+0]|u[l+0]<<16,L=h[f+0]|d[p+0]<<16;e(null!=t);var A=3*N+L+131074>>2;for(n(t[r+0],255&A,A>>16,g,m),null!=a&&(A=3*L+N+131074>>2,n(a[o+0],255&A,A>>16,v,b)),w=1;w<=x;++w){var S=s[c+w]|u[l+w]<<16,_=h[f+w]|d[p+w]<<16,P=N+S+L+_+524296,k=P+2*(S+L)>>3;A=k+N>>1,N=(P=P+2*(N+_)>>3)+S>>1,n(t[r+2*w-1],255&A,A>>16,g,m+(2*w-1)*i),n(t[r+2*w-0],255&N,N>>16,g,m+(2*w-0)*i),null!=a&&(A=P+L>>1,N=k+_>>1,n(a[o+2*w-1],255&A,A>>16,v,b+(2*w-1)*i),n(a[o+2*w+0],255&N,N>>16,v,b+(2*w+0)*i)),N=S,L=_}1&y||(A=3*N+L+131074>>2,n(t[r+y-1],255&A,A>>16,g,m+(y-1)*i),null!=a&&(A=3*L+N+131074>>2,n(a[o+y-1],255&A,A>>16,v,b+(y-1)*i)))}}function e6(){nR[nn]=nD,nR[ni]=nz,nR[na]=nT,nR[no]=nU,nR[ns]=nH,nR[nc]=nW,nR[nu]=nV,nR[nl]=nz,nR[nh]=nU,nR[nf]=nH,nR[nd]=nW}function e8(t){return t&~nZ?0>t?0:255:t>>nK}function e7(t,e){return e8((19077*t>>8)+(26149*e>>8)-14234)}function e9(t,e,r){return e8((19077*t>>8)-(6419*e>>8)-(13320*r>>8)+8708)}function rt(t,e){return e8((19077*t>>8)+(33050*e>>8)-17685)}function re(t,e,r,n,i){n[i+0]=e7(t,r),n[i+1]=e9(t,e,r),n[i+2]=rt(t,e)}function rr(t,e,r,n,i){n[i+0]=rt(t,e),n[i+1]=e9(t,e,r),n[i+2]=e7(t,r)}function rn(t,e,r,n,i){var a=e9(t,e,r);e=a<<3&224|rt(t,e)>>3,n[i+0]=248&e7(t,r)|a>>5,n[i+1]=e}function ri(t,e,r,n,i){var a=240&rt(t,e)|15;n[i+0]=240&e7(t,r)|e9(t,e,r)>>4,n[i+1]=a}function ra(t,e,r,n,i){n[i+0]=255,re(t,e,r,n,i+1)}function ro(t,e,r,n,i){rr(t,e,r,n,i),n[i+3]=255}function rs(t,e,r,n,i){re(t,e,r,n,i),n[i+3]=255}function rc(e,r,n){t[e]=function(t,e,i,a,o,s,c,u,l){for(var h=u+(-2&l)*n;u!=h;)r(t[e+0],i[a+0],o[s+0],c,u),r(t[e+1],i[a+0],o[s+0],c,u+n),e+=2,++a,++s,u+=2*n;1&l&&r(t[e+0],i[a+0],o[s+0],c,u)}}function ru(t,e,r){return 0==r?0==t?0==e?6:5:4*(0==e):r}function rl(t,e,r,n,i){switch(t>>>30){case 3:rB(e,r,n,i,0);break;case 2:rR(e,r,n,i);break;case 1:rT(e,r,n,i)}}function rh(t,e){var r,a,o=e.M,s=e.Nb,c=t.oc,u=t.pc+40,l=t.oc,h=t.pc+584,f=t.oc,d=t.pc+600;for(r=0;16>r;++r)c[u+32*r-1]=129;for(r=0;8>r;++r)l[h+32*r-1]=129,f[d+32*r-1]=129;for(0r;++r)n(c,u+32*r-4,c,u+32*r+12,4);for(r=-1;8>r;++r)n(l,h+32*r-4,l,h+32*r+4,4),n(f,d+32*r-4,f,d+32*r+4,4)}var g=t.Gd,m=t.Hd+a,v=p.ad,b=p.Hc;if(0=t.za-1?i(y,w,g[m].y[15],4):n(y,w,g[m+1].y,0,4)),r=0;4>r;r++)y[w+128+r]=y[w+256+r]=y[w+384+r]=y[w+0+r];for(r=0;16>r;++r,b<<=2)y=c,w=u+n4[r],nO[p.Ob[r]](y,w),rl(b,v,16*r,y,w)}else if(nj[y=ru(a,o,p.Ob[0])](c,u),0!=b)for(r=0;16>r;++r,b<<=2)rl(b,v,16*r,c,u+n4[r]);for(r=p.Gc,nM[y=ru(a,o,p.Dd)](l,h),nM[y](f,d),b=v,y=l,w=h,255&(p=0|r)&&(170&p?rD(b,256,y,w):rz(b,256,y,w)),p=f,b=d,255&(r>>=8)&&(170&r?rD(v,320,p,b):rz(v,320,p,b)),or;++r)n(g,m+r*t.R,c,u+32*r,16);for(r=0;8>r;++r)n(v,p+r*t.B,l,h+32*r,8),n(b,y+r*t.B,f,d+32*r,8)}}function rf(t,n,i,a,o,s,c,u,l){var h=[0],f=[0],d=0,p=null!=l?l.kd:0,g=null!=l?l:new eG;if(null==t||12>i)return 7;g.data=t,g.w=n,g.ha=i,n=[n],i=[i],g.gb=[g.gb];t:{var m=n,b=i,y=g.gb;if(e(null!=t),e(null!=b),e(null!=y),y[0]=0,12<=b[0]&&!r(t,m[0],"RIFF")){if(r(t,m[0]+8,"WEBP")){y=3;break t}var w=j(t,m[0]+4);if(12>w||0xfffffff6b[0]-8){y=7;break t}y[0]=w,m[0]+=12,b[0]-=12}y=0}if(0!=y)return y;for(w=0y[0])y=7;else{if(!r(N,b[0],"VP8X")){if(10!=j(N,b[0]+4)){y=3;break t}if(18>y[0]){y=7;break t}var _=j(N,b[0]+8),P=1+C(N,b[0]+12);if(0x80000000<=P*(N=1+C(N,b[0]+15))){y=3;break t}null!=S&&(S[0]=_),null!=L&&(L[0]=P),null!=A&&(A[0]=N),b[0]+=18,y[0]-=18,k[0]=1}y=0}}if(d=d[0],m=m[0],0!=y)return y;if(b=!!(2&m),!w&&d)return 3;if(null!=s&&(s[0]=!!(16&m)),null!=c&&(c[0]=b),null!=u&&(u[0]=0),c=h[0],m=f[0],d&&b&&null==l){y=0;break}if(4>i){y=7;break}if(w&&d||!w&&!d&&!r(t,n[0],"ALPH")){i=[i],g.na=[g.na],g.P=[g.P],g.Sa=[g.Sa];t:{_=t,y=n,w=i;var k=g.gb;L=g.na,A=g.P,S=g.Sa,P=22,e(null!=_),e(null!=w),N=y[0];var F=w[0];for(e(null!=L),e(null!=S),L[0]=null,A[0]=null,S[0]=0;;){if(y[0]=N,w[0]=F,8>F){y=7;break t}var I=j(_,N+4);if(0xfffffff6k){y=3;break t}if(!r(_,N,"VP8 ")||!r(_,N,"VP8L")){y=0;break t}if(F[0]w[0])y=7;else{if(N||P){if(k=j(k,_+4),12<=L&&k>L-12){y=3;break t}if(p&&k>w[0]-8){y=7;break t}A[0]=k,y[0]+=8,w[0]-=8,S[0]=P}else S[0]=5<=w[0]&&47==k[_+0]&&!(k[_+4]>>5),A[0]=w[0];y=0}if(i=i[0],g.Ja=g.Ja[0],g.xa=g.xa[0],n=n[0],0!=y)break;if(0xfffffff6i){y=7;break}u=c,p=m,b=s,null==t||5>i?t=0:5<=i&&47==t[n+0]&&!(t[n+4]>>5)?(w=[0],k=[0],L=[0],v(A=new x,t,n,i),tg(A,w,k,L)?(null!=u&&(u[0]=w[0]),null!=p&&(p[0]=k[0]),null!=b&&(b[0]=L[0]),t=1):t=0):t=0}else{if(10>i){y=7;break}u=m,null==t||10>i||!tX(t,n+3,i-3)?t=0:(p=t[n+0]|t[n+1]<<8|t[n+2]<<16,b=16383&(t[n+7]<<8|t[n+6]),t=16383&(t[n+9]<<8|t[n+8]),1&p||3<(p>>1&7)||!(p>>4&1)||p>>5>=g.Ja||!b||!t?t=0:(c&&(c[0]=b),u&&(u[0]=t),t=1))}if(!t||(c=c[0],m=m[0],d&&(h[0]!=c||f[0]!=m)))return 3;null!=l&&(l[0]=g,l.offset=n-l.w,e(0xfffffff6>n-l.w),e(l.offset==l.ha-i));break}return 0==y||7==y&&d&&null==l?(null!=s&&(s[0]|=null!=g.na&&0r||(a&=-2,o&=-2),0>a||0>o||0>=s||0>=c||a+s>n||o+c>i))return 0;if(e.v=a,e.j=o,e.va=a+s,e.o=o+c,e.U=s,e.T=c,e.da=null!=t&&0t.S){var e=t.f.RGBA;e.fb+=(t.height-1)*e.A,e.A=-e.A}else e=t.f.kb,t=t.height,e.O+=(t-1)*e.fa,e.fa=-e.fa,e.N+=(t-1>>1)*e.Ab,e.Ab=-e.Ab,e.W+=(t-1>>1)*e.Db,e.Db=-e.Db,null!=e.F&&(e.J+=(t-1)*e.lb,e.lb=-e.lb);return 0}function rg(t,e,r,n){if(null==n||0>=t||0>=e)return 2;if(null!=r){if(r.Da){var i=r.cd,o=r.bd,s=-2&r.v,c=-2&r.j;if(0>s||0>c||0>=i||0>=o||s+i>t||c+o>e)return 2;t=i,e=o}if(r.da){if(!E(t,e,i=[r.ib],o=[r.hb]))return 2;t=i[0],e=o[0]}}n.width=t,n.height=e;t:{var u=n.width,l=n.height;if(t=n.S,0>=u||0>=l||!(t>=nn&&13>t))t=2;else{if(0>=n.Rd&&null==n.sd){s=o=i=e=0;var h=(c=u*n7[t])*l;if(11>t||(o=(l+1)/2*(e=(u+1)/2),12==t&&(s=(i=u)*l)),null==(l=a(h+2*o+s))){t=1;break t}n.sd=l,11>t?((u=n.f.RGBA).eb=l,u.fb=0,u.A=c,u.size=h):((u=n.f.kb).y=l,u.O=0,u.fa=c,u.Fd=h,u.f=l,u.N=0+h,u.Ab=e,u.Cd=o,u.ea=l,u.W=0+h+o,u.Db=e,u.Ed=o,12==t&&(u.F=l,u.J=0+h+2*o),u.Tc=s,u.lb=i)}if(e=1,i=n.S,o=n.width,s=n.height,i>=nn&&13>i)if(11>i)e&=(c=Math.abs((t=n.f.RGBA).A))*(s-1)+o<=t.size,e&=c>=o*n7[i],e&=null!=t.eb;else{t=n.f.kb,c=(o+1)/2,h=(s+1)/2,u=Math.abs(t.fa),l=Math.abs(t.Ab);var f=Math.abs(t.Db),d=Math.abs(t.lb),p=d*(s-1)+o;e&=u*(s-1)+o<=t.Fd,e&=l*(h-1)+c<=t.Cd,e=(e&=f*(h-1)+c<=t.Ed)&u>=o&l>=c&f>=c&null!=t.y&null!=t.f&null!=t.ea,12==i&&(e&=d>=o,e&=p<=t.Tc,e&=null!=t.F)}else e=0;t=2*!e}}return 0!=t||null!=r&&r.fd&&(t=rp(n)),t}var rm=64,rv=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,0xffffff],rb=24,ry=32,rw=8,rx=[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];D("Predictor0","PredictorAdd0"),t.Predictor0=function(){return 0xff000000},t.Predictor1=function(t){return t},t.Predictor2=function(t,e,r){return e[r+0]},t.Predictor3=function(t,e,r){return e[r+1]},t.Predictor4=function(t,e,r){return e[r-1]},t.Predictor5=function(t,e,r){return z(z(t,e[r+1]),e[r+0])},t.Predictor6=function(t,e,r){return z(t,e[r-1])},t.Predictor7=function(t,e,r){return z(t,e[r+0])},t.Predictor8=function(t,e,r){return z(e[r-1],e[r+0])},t.Predictor9=function(t,e,r){return z(e[r+0],e[r+1])},t.Predictor10=function(t,e,r){return z(z(t,e[r-1]),z(e[r+0],e[r+1]))},t.Predictor11=function(t,e,r){var n=e[r+0];return 0>=W(n>>24&255,t>>24&255,(e=e[r-1])>>24&255)+W(n>>16&255,t>>16&255,e>>16&255)+W(n>>8&255,t>>8&255,e>>8&255)+W(255&n,255&t,255&e)?n:t},t.Predictor12=function(t,e,r){var n=e[r+0];return(U((t>>24&255)+(n>>24&255)-((e=e[r-1])>>24&255))<<24|U((t>>16&255)+(n>>16&255)-(e>>16&255))<<16|U((t>>8&255)+(n>>8&255)-(e>>8&255))<<8|U((255&t)+(255&n)-(255&e)))>>>0},t.Predictor13=function(t,e,r){var n=e[r-1];return(H((t=z(t,e[r+0]))>>24&255,n>>24&255)<<24|H(t>>16&255,n>>16&255)<<16|H(t>>8&255,n>>8&255)<<8|H(255&t,255&n))>>>0};var rN=t.PredictorAdd0;t.PredictorAdd1=V,D("Predictor2","PredictorAdd2"),D("Predictor3","PredictorAdd3"),D("Predictor4","PredictorAdd4"),D("Predictor5","PredictorAdd5"),D("Predictor6","PredictorAdd6"),D("Predictor7","PredictorAdd7"),D("Predictor8","PredictorAdd8"),D("Predictor9","PredictorAdd9"),D("Predictor10","PredictorAdd10"),D("Predictor11","PredictorAdd11"),D("Predictor12","PredictorAdd12"),D("Predictor13","PredictorAdd13");var rL=t.PredictorAdd2;X("ColorIndexInverseTransform","MapARGB","32b",function(t){return t>>8&255},function(t){return t}),X("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(t){return t},function(t){return t>>8&255});var rA,rS=t.ColorIndexInverseTransform,r_=t.MapARGB,rP=t.VP8LColorIndexInverseTransformAlpha,rk=t.MapAlpha,rF=t.VP8LPredictorsAdd=[];rF.length=16,(t.VP8LPredictors=[]).length=16,(t.VP8LPredictorsAdd_C=[]).length=16,(t.VP8LPredictors_C=[]).length=16;var rI,rC,rj,rO,rM,rq,rE,rB,rR,rD,rT,rz,rU,rH,rW,rV,rG,rY,rJ,rX,rK,rZ,r$,rQ,r1,r2,r5,r0,r3=a(511),r4=a(2041),r6=a(225),r8=a(767),r7=0,r9=r4,nt=r6,ne=r8,nr=r3,nn=0,ni=1,na=2,no=3,ns=4,nc=5,nu=6,nl=7,nh=8,nf=9,nd=10,np=[2,3,7],ng=[3,3,11],nm=[280,256,256,256,40],nv=[0,1,1,1,0],nb=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],ny=[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],nw=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],nx=8,nN=[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],nL=[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],nA=null,nS=[[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]],n_=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],nP=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],nk=[[[[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]]]],nF=[[[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]]],nI=[[[[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]]]],nC=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],nj=[],nO=[],nM=[],nq=1,nE=2,nB=[],nR=[];e4("UpsampleRgbLinePair",re,3),e4("UpsampleBgrLinePair",rr,3),e4("UpsampleRgbaLinePair",rs,4),e4("UpsampleBgraLinePair",ro,4),e4("UpsampleArgbLinePair",ra,4),e4("UpsampleRgba4444LinePair",ri,2),e4("UpsampleRgb565LinePair",rn,2);var nD=t.UpsampleRgbLinePair,nT=t.UpsampleBgrLinePair,nz=t.UpsampleRgbaLinePair,nU=t.UpsampleBgraLinePair,nH=t.UpsampleArgbLinePair,nW=t.UpsampleRgba4444LinePair,nV=t.UpsampleRgb565LinePair,nG=16,nY=32768,nJ=-227,nX=482,nK=6,nZ=16383,n$=0,nQ=a(256),n1=a(256),n2=a(256),n5=a(256),n0=a(nX-nJ),n3=a(nX-nJ);rc("YuvToRgbRow",re,3),rc("YuvToBgrRow",rr,3),rc("YuvToRgbaRow",rs,4),rc("YuvToBgraRow",ro,4),rc("YuvToArgbRow",ra,4),rc("YuvToRgba4444Row",ri,2),rc("YuvToRgb565Row",rn,2);var n4=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],n6=[0,2,8],n8=[8,7,6,4,4,2,2,2,1,1,1,1];this.WebPDecodeRGBA=function(t,r,s,c,u){var l=ni,h=new eV,f=new to;h.ba=f,f.S=l,f.width=[f.width],f.height=[f.height];var d=f.width,p=f.height,g=new ts;if(null==g||null==t)var m=2;else e(null!=g),m=rf(t,r,s,g.width,g.height,g.Pd,g.Qd,g.format,null);if(0!=m?d=0:(null!=d&&(d[0]=g.width[0]),null!=p&&(p[0]=g.height[0]),d=1),d){f.width=f.width[0],f.height=f.height[0],null!=c&&(c[0]=f.width),null!=u&&(u[0]=f.height);t:{if(c=new tG,(u=new eG).data=t,u.w=r,u.ha=s,u.kd=1,r=[0],e(null!=u),(0==(t=rf(u.data,u.w,u.ha,null,null,null,r,null,u))||7==t)&&r[0]&&(t=4),0==(r=t)){if(e(null!=h),c.data=u.data,c.w=u.w+u.offset,c.ha=u.ha-u.offset,c.put=td,c.ac=tf,c.bc=tp,c.ma=h,u.xa){if(null==(t=tk())){h=1;break t}if(function(t,r){for(var n=[0],i=[0],a=[0];;){if(null==t)return 0;if(null==r)return t.a=2,0;if(t.l=r,t.a=0,v(t.m,r.data,r.w,r.ha),!tg(t.m,n,i,a)){t.a=3;break}if(t.xb=nE,r.width=n[0],r.height=i[0],!tF(n[0],i[0],1,t,null))break;return 1}return e(0!=t.a),0}(t,c)){if(c=0==(r=rg(c.width,c.height,h.Oa,h.ba))){e:{for(c=t;;){if(null==c){c=0;break e}if(e(null!=c.s.yc),e(null!=c.s.Ya),e(0c.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=c.ca.f.kb.F&&e3()),c.Pb&&0(d=s.Md)?0:100p;++p)12>(m=u.pb[p]).lc&&(m.ia=d*n8[0>m.lc?0:m.lc]>>3),g|=m.ia;g&&(alert("todo:VP8InitRandom"),u.ia=1)}u.Ga=s.Id,100u.Ga&&(u.Ga=0)}(function(t,r){if(null==t)return 0;if(null==r)return tJ(t,2,"NULL VP8Io parameter in VP8Decode().");if(!t.cb&&!tK(t,r))return 0;if(e(t.cb),null==r.ac||r.ac(r)){r.ob&&(t.L=0);var s=n6[t.L];if(2==t.L?(t.yb=0,t.zb=0):(t.yb=r.v-s>>4,t.zb=r.j-s>>4,0>t.yb&&(t.yb=0),0>t.zb&&(t.zb=0)),t.Va=r.o+15+s>>4,t.Hb=r.va+15+s>>4,t.Hb>t.za&&(t.Hb=t.za),t.Va>t.Ub&&(t.Va=t.Ub),0s;++s){if(t.Qa.Cb){var l=t.Qa.Lb[s];t.Qa.Fb||(l+=u.Tb)}else l=u.Tb;for(c=0;1>=c;++c){var h=t.gd[s][c],f=l;if(u.Pc&&(f+=u.vd[0],c&&(f+=u.od[0])),0<(f=0>f?0:63>2:d>>1)>9-u.wb&&(d=9-u.wb),1>d&&(d=1),h.dd=d,h.tc=2*f+d,h.ld=40<=f?2:+(15<=f)}else h.tc=0;h.La=c}}}s=0}else tJ(t,6,"Frame setup failed"),s=t.a;if(s=0==s){if(s){t.$c=0,0t.Vb){if(t.Vb=0,t.Ec=a(h),t.Fc=0,null==t.Ec){s=tJ(t,1,"no memory during frame initialization.");break e}t.Vb=h}h=t.Ec,f=t.Fc,t.Ac=h,t.Bc=f,f+=u,t.Gd=o(p,tH),t.Hd=0,t.rb=o(g+1,tD),t.sb=1,t.wa=m?o(m,tR):null,t.Y=0,t.D.Nb=0,t.D.wa=t.wa,t.D.Y=t.Y,0=s;++s)r3[255+s]=0>s?-s:s;for(s=-1020;1020>=s;++s)r4[1020+s]=-128>s?-128:127=s;++s)r6[112+s]=-16>s?-16:15=s;++s)r8[255+s]=0>s?0:255h;++h){var y,w=p[0+h];for(y=0;4>y;++y){w=nF[f[d+y]][w];for(var x=nP[k(l,w[0])];0>3;for(x=0;256>x;x+=16)h[m+x]=I}_=1,P=d[0]}var C=15&l.la,j=15&b.la;for(x=0;4>x;++x){var O=1&j;for(I=A=0;4>I;++I)C=C>>1|(O=(F=nA(f,P,F=O+(1&C),g.Sc,_,h,m))>_)<<7,A=A<<2|(3>=4,j=j>>1|O<<7,y=(y<<8|A)>>>0}for(P=C,_=j>>4,N=0;4>N;N+=2){for(A=0,C=l.la>>4+N,j=b.la>>4+N,x=0;2>x;++x){for(O=1&j,I=0;2>I;++I)F=O+(1&C),C=C>>1|(O=0<(F=nA(f,d[2],F,g.Qc,0,h,m)))<<3,A=A<<2|(3>=2,j=j>>1|O<<5}w|=A<<4*N,P|=C<<4<=s.zb&&s.M<=s.Va,0==s.Aa)e:{if(o.M=s.M,o.uc=l,rh(s,o),u=1,o=(A=s.D).Nb,l=(w=n6[s.L])*s.R,f=w/2*s.B,x=16*o*s.R,I=8*o*s.B,d=s.sa,p=s.ta-l+x,g=s.qa,h=s.ra-f+I,m=s.Ha,b=s.Ia-f+I,j=0==(C=A.M),y=C>=s.Va-1,2==s.Aa&&rh(s,A),A.uc)for(O=(F=s).D.M,e(F.D.uc),A=F.yb;Ac.o&&(C=c.o),c.F=null,c.J=null,null!=s.Fa&&0i||0>=o||i+o>c)return null;if(!t.Cc){if(null==t.ga){if(t.ga=new eK,(_=null==t.ga)||(_=r.width*r.o,e(0==t.Gb.length),t.Gb=a(_),t.Uc=0,null==t.Gb?_=0:(t.mb=t.Gb,t.nb=t.Uc,t.rc=null,_=1),_=!_),!_){_=t.ga;var u=t.Fa,l=t.P,h=t.qc,f=t.mb,d=t.nb,p=l+1,g=h-1,m=_.l;if(e(null!=u&&null!=f&&null!=r),nB[0]=null,nB[1]=eZ,nB[2]=e$,nB[3]=eQ,_.ca=f,_.tb=d,_.c=r.width,_.i=r.height,e(0<_.c&&0<_.i),1>=h)r=0;else if(_.$a=3&u[l+0],_.Z=u[l+0]>>2&3,_.Lc=u[l+0]>>4&3,l=u[l+0]>>6&3,0>_.$a||1<_.$a||4<=_.Z||1<_.Lc||l)r=0;else if(m.put=td,m.ac=tf,m.bc=tp,m.ma=_,m.width=r.width,m.height=r.height,m.Da=r.Da,m.v=r.v,m.va=r.va,m.j=r.j,m.o=r.o,_.$a)t:{for(e(1==_.$a),r=tk();;){if(null==r){r=0;break t}if(e(null!=_),_.mc=r,r.c=_.c,r.i=_.i,r.l=_.l,r.l.ma=_,r.l.width=_.c,r.l.height=_.i,r.a=0,v(r.m,u,p,g),!tF(_.c,_.i,1,r,null)||(1==r.ab&&3==r.gc[0].hc&&tL(r.s)?(_.ic=1,u=r.c*r.i,r.Ta=null,r.Ua=0,r.V=a(u),r.Ba=0,null==r.V?(r.a=1,r=0):r=1):(_.ic=0,r=tI(r,_.c)),!r))break;r=1;break t}_.mc=null,r=0}else r=g>=_.c*_.i;_=!r}if(_)return null;1!=t.ga.Lc?t.Ga=0:o=c-i}e(null!=t.ga),e(i+o<=c);t:{if(r=(u=t.ga).c,c=u.l.o,0==u.$a){if(p=t.rc,g=t.Vc,m=t.Fa,l=t.P+1+i*r,h=t.mb,f=t.nb+i*r,e(l<=t.P+t.qc),0!=u.Z)for(e(null!=nB[u.Z]),_=0;_=r)r=1;else if(u.ic||e3(),u.ic){u=_.V,p=_.Ba,g=_.c;var b=_.i,y=(m=1,l=_.$/g,h=_.$%g,f=_.m,d=_.s,_.$),w=g*b,x=g*r,N=d.wc,A=y(b=tb(A.G[0],A.H[0],f)))u[p+y]=b,++y,++h>=g&&(h=0,++l<=r&&!(l%16)&&tS(_,l));else{if(!(280>b)){m=0;break e}b=tm(b-256,f);var _,P,k=tb(A.G[4],A.H[4],f);if(S(f),!(y>=(k=tv(g,k=tm(k,f)))&&w-y>=b)){m=0;break e}for(P=0;P=g;)h-=g,++l<=r&&!(l%16)&&tS(_,l);yr?r:l);break}!m||f.h&&y=c&&(t.Cc=1),o=1}if(!o)return null;if(t.Cc&&(null!=(o=t.ga)&&(o.mc=null),t.ga=null,0>1),c.W+=s.B*(w>>1),null!=c.F&&(c.J+=c.width*w)),A>1,c.W+=c.v>>1,null!=c.F&&(c.J+=c.v),c.ka=A-c.j,c.U=c.va-c.v,c.T=C-A,u=c.put(c))}o+1!=s.Ic||y||(n(s.sa,s.ta-l,d,p+16*s.R,l),n(s.qa,s.ra-f,g,h+8*s.B,f),n(s.Ha,s.Ia-f,m,b+8*s.B,f))}if(!u)return tJ(t,6,"Output aborted.")}return 1}(t,r)),null!=r.bc&&r.bc(r),s&=1}return s?(t.cb=0,s):0})(t,c)||(r=t.a)}}else r=t.a;0==r&&null!=h.Oa&&h.Oa.fd&&(r=rp(h.ba))}h=r}l=0!=h?null:11>l?f.f.RGBA.eb:f.f.kb.y}else l=null;return l};var n7=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function u(t,e){return(t[e+0]|t[e+1]<<8|t[e+2]<<16)>>>0}function l(t,e){return(t[e+0]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}new c;var h=[0],f=[0],d=[],p=new c,g=function(t,e){var r={},n=0,i=!1,a=0,o=0;if(r.frames=[],!function(t,e){for(var r=0;r<4;r++)if(t[e+r]!="RIFF".charCodeAt(r))return!0;return!1}(t,e)){for(l(t,e+=4),e+=8;e>1&1}"ANMF"!=f&&(e+=p)}return r}}(t,0);g.response=t,g.rgbaoutput=!0,g.dataurl=!1;var m=g.header?g.header:null,v=g.frames?g.frames:null;if(m){m.loop_counter=m.loop_count,h=[m.canvas_height],f=[m.canvas_width];for(var b=0;b'+e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")+"",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+t.length+" >>"),this.internal.write("stream"),this.internal.write(t),this.internal.write("endstream"),this.internal.write("endobj")}function e$(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}eQ=D.API,e9=function(t){return t=t||{},this.isStrokeTransparent=t.isStrokeTransparent||!1,this.strokeOpacity=t.strokeOpacity||1,this.strokeStyle=t.strokeStyle||"#000000",this.fillStyle=t.fillStyle||"#000000",this.isFillTransparent=t.isFillTransparent||!1,this.fillOpacity=t.fillOpacity||1,this.font=t.font||"10px sans-serif",this.textBaseline=t.textBaseline||"alphabetic",this.textAlign=t.textAlign||"left",this.lineWidth=t.lineWidth||1,this.lineJoin=t.lineJoin||"miter",this.lineCap=t.lineCap||"butt",this.path=t.path||[],this.transform=void 0!==t.transform?t.transform.clone():new e8,this.globalCompositeOperation=t.globalCompositeOperation||"normal",this.globalAlpha=t.globalAlpha||1,this.clip_path=t.clip_path||[],this.currentPoint=t.currentPoint||new e4,this.miterLimit=t.miterLimit||10,this.lastPoint=t.lastPoint||new e4,this.lineDashOffset=t.lineDashOffset||0,this.lineDash=t.lineDash||[],this.margin=t.margin||[0,0,0,0],this.prevPageLastElemOffset=t.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof t.ignoreClearRect||t.ignoreClearRect,this},eQ.events.push(["initialized",function(){this.context2d=new rt(this),e1=this.internal.f2,e2=this.internal.getCoordinateString,e5=this.internal.getVerticalCoordinateString,e0=this.internal.getHorizontalCoordinate,e3=this.internal.getVerticalCoordinate,e4=this.internal.Point,e6=this.internal.Rectangle,e8=this.internal.Matrix,e7=new e9}]),(rt=function(t){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}}),Object.defineProperty(this,"pdf",{get:function(){return t}});var e=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return e},set:function(t){e=!!t}});var r=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return r},set:function(t){r=!!t}});var n=0;Object.defineProperty(this,"posX",{get:function(){return n},set:function(t){isNaN(t)||(n=t)}});var i=0;Object.defineProperty(this,"posY",{get:function(){return i},set:function(t){isNaN(t)||(i=t)}}),Object.defineProperty(this,"margin",{get:function(){return e7.margin},set:function(t){var e;"number"==typeof t?e=[t,t,t,t]:((e=[,,,,])[0]=t[0],e[1]=t.length>=2?t[1]:e[0],e[2]=t.length>=3?t[2]:e[0],e[3]=t.length>=4?t[3]:e[1]),e7.margin=e}});var a=!1;Object.defineProperty(this,"autoPaging",{get:function(){return a},set:function(t){a=t}});var o=0;Object.defineProperty(this,"lastBreak",{get:function(){return o},set:function(t){o=t}});var s=[];Object.defineProperty(this,"pageBreaks",{get:function(){return s},set:function(t){s=t}}),Object.defineProperty(this,"ctx",{get:function(){return e7},set:function(t){t instanceof e9&&(e7=t)}}),Object.defineProperty(this,"path",{get:function(){return e7.path},set:function(t){e7.path=t}});var c=[];Object.defineProperty(this,"ctxStack",{get:function(){return c},set:function(t){c=t}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(t){var e;e=re(t),this.ctx.fillStyle=e.style,this.ctx.isFillTransparent=0===e.a,this.ctx.fillOpacity=e.a,this.pdf.setFillColor(e.r,e.g,e.b,{a:e.a}),this.pdf.setTextColor(e.r,e.g,e.b,{a:e.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(t){var e=re(t);this.ctx.strokeStyle=e.style,this.ctx.isStrokeTransparent=0===e.a,this.ctx.strokeOpacity=e.a,0===e.a?this.pdf.setDrawColor(255,255,255):(e.a,this.pdf.setDrawColor(e.r,e.g,e.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(t){-1!==["butt","round","square"].indexOf(t)&&(this.ctx.lineCap=t,this.pdf.setLineCap(t))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(t){isNaN(t)||(this.ctx.lineWidth=t,this.pdf.setLineWidth(t))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(t){-1!==["bevel","round","miter"].indexOf(t)&&(this.ctx.lineJoin=t,this.pdf.setLineJoin(t))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(t){isNaN(t)||(this.ctx.miterLimit=t,this.pdf.setMiterLimit(t))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(t){this.ctx.textBaseline=t}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(t){-1!==["right","end","center","left","start"].indexOf(t)&&(this.ctx.textAlign=t)}});var u=null,l=null,h=null;Object.defineProperty(this,"fontFaces",{get:function(){return h},set:function(t){u=null,l=null,h=t}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(t){var e;if(this.ctx.font=t,null!==(e=/^\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-z0-9]+?)\s*$/i.exec(t))){var r=e[1];e[2];var n=e[3],i=e[4];e[5];var a=e[6],o=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(i)[2];i="px"===o?Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor):"em"===o?Math.floor(parseFloat(i)*this.pdf.getFontSize()):Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(i);var s=function(t){var e,r,n=[],i=t.trim();if(""===i)return eE;if(i in tR)return[tR[i]];for(;""!==i;){switch(r=null,e=(i=tT(i)).charAt(0)){case'"':case"'":r=function(t,e){for(var r=0;r=700||"bold"===r)&&(h="bold"),"italic"===r&&(h+="italic"),0===h.length&&(h="normal");for(var f="",d={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"},p=0;p=2*Math.PI&&(n=0,i=2*Math.PI),this.path.push({type:"arc",x:t,y:e,radius:r,startAngle:n,endAngle:i,counterclockwise:a})},rt.prototype.arcTo=function(t,e,r,n,i){throw Error("arcTo not implemented.")},rt.prototype.rect=function(t,e,r,n){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw l("jsPDF.context2d.rect: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(t,e),this.lineTo(t+r,e),this.lineTo(t+r,e+n),this.lineTo(t,e+n),this.lineTo(t,e),this.lineTo(t+r,e),this.lineTo(t,e)},rt.prototype.fillRect=function(t,e,r,n){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw l("jsPDF.context2d.fillRect: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!rr.call(this)){var i={};"butt"!==this.lineCap&&(i.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(i.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(t,e,r,n),this.fill(),i.hasOwnProperty("lineCap")&&(this.lineCap=i.lineCap),i.hasOwnProperty("lineJoin")&&(this.lineJoin=i.lineJoin)}},rt.prototype.strokeRect=function(t,e,r,n){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw l("jsPDF.context2d.strokeRect: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.strokeRect");rn.call(this)||(this.beginPath(),this.rect(t,e,r,n),this.stroke())},rt.prototype.clearRect=function(t,e,r,n){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw l("jsPDF.context2d.clearRect: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(t,e,r,n))},rt.prototype.save=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,r=0;r0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0},rt.prototype.drawImage=function(t,e,r,n,i,a,o,s,c){var u=this.pdf.getImageProperties(t),l=1,h=1,f=1,d=1;void 0!==n&&void 0!==s&&(f=s/n,d=c/i,l=u.width/n*s/n,h=u.height/i*c/i),void 0===a&&(a=e,o=r,e=0,r=0),void 0!==n&&void 0===s&&(s=n,c=i),void 0===n&&void 0===s&&(s=u.width,c=u.height);var p=this.ctx.transform.decompose(),g=rL(p.rotate.shx),m=new e8,v=(m=(m=(m=m.multiply(p.translate)).multiply(p.skew)).multiply(p.scale)).applyToRectangle(new e6(a-e*f,o-r*d,n*l,i*h));if(this.autoPaging){for(var b,y=ra.call(this,v),w=[],x=0;xN||Av||y0)){for(;c>=0;c--)if(!0!==i[c-1].close&&!0!==i[c-1].begin){i[c-1].deltas.push(r),i[c-1].abs.push(s);break}}break;case"bct":r=[s.x1-a[o-1].x,s.y1-a[o-1].y,s.x2-a[o-1].x,s.y2-a[o-1].y,s.x-a[o-1].x,s.y-a[o-1].y],i[i.length-1].deltas.push(r);break;case"qct":var u=a[o-1].x+2/3*(s.x1-a[o-1].x),l=a[o-1].y+2/3*(s.y1-a[o-1].y),h=s.x+2/3*(s.x1-s.x),f=s.y+2/3*(s.y1-s.y),d=s.x,p=s.y;r=[u-a[o-1].x,l-a[o-1].y,h-a[o-1].x,f-a[o-1].y,d-a[o-1].x,p-a[o-1].y],i[i.length-1].deltas.push(r);break;case"arc":i.push({deltas:[],abs:[],arc:!0}),Array.isArray(i[i.length-1].abs)&&i[i.length-1].abs.push(s)}}n=e?null:"stroke"===t?"stroke":"fill";for(var g=!1,m=0;m=.01&&(n=this.pdf.internal.getFontSize(),this.pdf.setFontSize(n*t.scale),i=this.lineWidth,this.lineWidth=i*t.scale);var k="text"!==this.autoPaging;if(k||P.y+P.h<=x){if(k||P.y>=y&&P.x<=L){var F=k?t.text:this.pdf.splitTextToSize(t.text,t.maxWidth||L-P.x)[0],I=rs([JSON.parse(JSON.stringify(h))],this.posX+this.margin[3],-S+y+this.ctx.prevPageLastElemOffset)[0],C=k&&(b>m||b=.01&&(this.pdf.setFontSize(n),this.lineWidth=i)}}else t.scale>=.01&&(n=this.pdf.internal.getFontSize(),this.pdf.setFontSize(n*t.scale),i=this.lineWidth,this.lineWidth=i*t.scale),this.pdf.text(t.text,c.x+this.posX,c.y+this.posY,{angle:t.angle,align:e,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),t.scale>=.01&&(this.pdf.setFontSize(n),this.lineWidth=i)},rb=function(t,e,r,n){r=r||0,n=n||0,this.pdf.internal.out(e2(t+r)+" "+e5(e+n)+" l")},ry=function(t,e,r){return this.pdf.lines(t,e,r,null,null)},rw=function(t,e,r,n,i,a,o,s){this.pdf.internal.out([e1(e0(r+t)),e1(e3(n+e)),e1(e0(i+t)),e1(e3(a+e)),e1(e0(o+t)),e1(e3(s+e)),"c"].join(" "))},rx=function(t,e,r,n){for(var i=2*Math.PI,a=Math.PI/2;e>r;)e-=i;var o=Math.abs(r-e);o1e-5;){var l=u+c*Math.min(o,a);s.push(rN.call(this,t,u,l)),o-=Math.abs(l-u),u=l}return s},rN=function(t,e,r){var n=(r-e)/2,i=t*Math.cos(n),a=t*Math.sin(n),o=-a,s=i*i+o*o,c=s+i*i+o*a,u=4/3*(Math.sqrt(2*s*c)-c)/(i*a-o*i),l=i-u*o,h=o+u*i,f=-h,d=n+e,p=Math.cos(d),g=Math.sin(d);return{x1:t*Math.cos(e),y1:t*Math.sin(e),x2:l*p-h*g,y2:l*g+h*p,x3:l*p-f*g,y3:l*g+f*p,x4:t*Math.cos(r),y4:t*Math.sin(r)}},rL=function(t){return 180*t/Math.PI},rA=function(t,e,r,n,i,a){var o=t+.5*(r-t),s=e+.5*(n-e),c=i+.5*(r-i),u=a+.5*(n-a),l=Math.min(t,i,o,c),h=Math.min(e,a,s,u);return new e6(l,h,Math.max(t,i,o,c)-l,Math.max(e,a,s,u)-h)},rS=function(t,e,r,n,i,a,o,s){var c,u,l,h,f,d,p,g,m,v,b,y,w,x,N=r-t,L=n-e,A=i-r,S=a-n,_=o-i,P=s-a;for(u=0;u<41;u++)m=(p=(l=t+(c=u/40)*N)+c*((f=r+c*A)-l))+c*(f+c*(i+c*_-f)-p),v=(g=(h=e+c*L)+c*((d=n+c*S)-h))+c*(d+c*(a+c*P-d)-g),0==u?(b=m,y=v,w=m,x=v):(b=Math.min(b,m),y=Math.min(y,v),w=Math.max(w,m),x=Math.max(x,v));return new e6(Math.round(b),Math.round(y),Math.round(w-b),Math.round(x-y))},r_=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var t=JSON.stringify({lineDash:this.ctx.lineDash,lineDashOffset:this.ctx.lineDashOffset});this.prevLineDash!==t&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=t)}},rP=D.API,rk=function(t){var e,r,n,i,a,o,s,c,u,l;for(/[^\x00-\xFF]/.test(t),r=[],n=0,i=(t+=e="\0\0\0\0".slice(t.length%4||4)).length;i>n;n+=4)0!==(a=(t.charCodeAt(n)<<24)+(t.charCodeAt(n+1)<<16)+(t.charCodeAt(n+2)<<8)+t.charCodeAt(n+3))?(o=(a=((a=((a=((a=(a-(l=a%85))/85)-(u=a%85))/85)-(c=a%85))/85)-(s=a%85))/85)%85,r.push(o+33,s+33,c+33,u+33,l+33)):r.push(122);return function(t,e){for(var r=e;r>0;r--)t.pop()}(r,e.length),String.fromCharCode.apply(String,r)+"~>"},rF=function(t){var e,r,n,i,a,o=String,s="length",c="charCodeAt",u="slice",l="replace";for(t[u](-2),t=t[u](0,-2)[l](/\s/g,"")[l]("z","!!!!!"),n=[],i=0,a=(t+=e="uuuuu"[u](t[s]%5||5))[s];a>i;i+=5)r=0x31c84b1*(t[c](i)-33)+614125*(t[c](i+1)-33)+7225*(t[c](i+2)-33)+85*(t[c](i+3)-33)+(t[c](i+4)-33),n.push(255&r>>24,255&r>>16,255&r>>8,255&r);return function(t,e){for(var r=e;r>0;r--)t.pop()}(n,e[s]),o.fromCharCode.apply(o,n)},rI=function(t){var e=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(t=t.replace(/\s/g,"")).indexOf(">")&&(t=t.substr(0,t.indexOf(">"))),t.length%2&&(t+="0"),!1===e.test(t))return"";for(var r="",n=0;n",i.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":n=rC(n),i.push("/FlateDecode");break;default:throw Error('The filter: "'+e[r]+'" is not implemented')}return{data:n,reverseChain:i.reverse().join(" ")}},(rj=D.API).loadFile=function(t,e,r){var n=e,i=r;n=!1!==n,i="function"==typeof i?i:function(){};var a=void 0;try{a=function(t,e,r){var n=new XMLHttpRequest,i=0,a=function(t){var e=t.length,r=[],n=String.fromCharCode;for(i=0;iu&&(c=l,l=u,u=c);else{if("l"!==t&&"landscape"!==t)throw"Invalid orientation: "+t;t="l",u>l&&(c=l,l=u,u=c)}return{width:l,height:u,unit:e,k:a,orientation:t}},t.html=function(t,e){(e=e||{}).callback=e.callback||function(){},e.html2canvas=e.html2canvas||{},e.html2canvas.canvas=e.html2canvas.canvas||this.canvas,e.jsPDF=e.jsPDF||this,e.fontFaces=e.fontFaces?e.fontFaces.map(tq):null;var r=new u(e);return e.worker?r:r.from(t).doCallback()}}(D.API),D.API.addJS=function(t){var e,r,n=function(t){for(var e="",r=0;r=0&&"\\"===t[a];a--)i++;e+=i%2==0?"\\"+n:n}else e+=n}return e}(t);return this.internal.events.subscribe("postPutResources",function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(e+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),r=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+n+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){void 0!==e&&void 0!==r&&this.internal.out("/Names <>")}),this},(rO=D.API).events.push(["postPutResources",function(){var t=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var e=this.outline.render().split(/\r\n/),r=0;r> endobj")}var l=this.internal.newObject();for(this.internal.write("<< /Names [ "),r=0;r>","endobj"),rM=this.internal.newObject(),this.internal.write("<< /Dests "+l+" 0 R"),this.internal.write(">>","endobj")}}]),rO.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 "+rM+" 0 R"))}]),rO.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(t,e,r){var n={title:e,options:r,children:[]};return null==t&&(t=this.root),t.children.push(n),n},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(e){e.id=t.internal.newObjectDeferred();for(var r=0;r0&&(this.line("/First "+this.makeRef(t.children[0])),this.line("/Last "+this.makeRef(t.children[t.children.length-1]))),this.line("/Count "+this.count_r({count:0},t)),this.objEnd()},t.outline.renderItems=function(e){for(var r=this.ctx.pdf.internal.getVerticalCoordinateString,n=0;n0&&this.line("/Prev "+this.makeRef(e.children[n-1])),n0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1])));var a=this.count=this.count_r({count:0},i);if(a>0&&this.line("/Count "+a),i.options&&i.options.pageNumber){var o=t.internal.getPageInfo(i.options.pageNumber);this.line("/Dest ["+o.objId+" 0 R /XYZ 0 "+r(0)+" 0]")}this.objEnd()}for(var s=0;s> \r\nendobj\r\n"},t.outline.count_r=function(t,e){for(var r=0;r1){s=!0,u=void 0;var y=e*r;l=new Uint8Array(y);for(var w=new DataView(n.buffer),x=0;x0x20000000)throw Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(e);try{this[t]()}catch(t){c("bit decode error:"+t)}},eX.prototype.bit1=function(){var t,e=Math.ceil(this.width/8),r=e%4;for(t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,i=0;i>7-s&1];this.data[o+4*s]=c.blue,this.data[o+4*s+1]=c.green,this.data[o+4*s+2]=c.red,this.data[o+4*s+3]=255}0!==r&&(this.pos+=4-r)}},eX.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i>4,c=15&a,u=this.palette[s];if(this.data[o]=u.blue,this.data[o+1]=u.green,this.data[o+2]=u.red,this.data[o+3]=255,2*i+1>=this.width)break;u=this.palette[c],this.data[o+4]=u.blue,this.data[o+4+1]=u.green,this.data[o+4+2]=u.red,this.data[o+4+3]=255}0!==e&&(this.pos+=4-e)}},eX.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i>5&e)/e*255|0,c=(a>>10&e)/e*255|0,u=a>>15?255:0,l=n*this.width*4+4*i;this.data[l]=c,this.data[l+1]=s,this.data[l+2]=o,this.data[l+3]=u}this.pos+=t}},eX.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),r=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,a=0;a>5&r)/r*255|0,u=(o>>11)/e*255|0,l=i*this.width*4+4*a;this.data[l]=u,this.data[l+1]=c,this.data[l+2]=s,this.data[l+3]=255}this.pos+=t}},eX.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,r=0;r=0;t--)for(var e=this.bottom_up?t:this.height-1-t,r=0;rn&&(i.push(t.slice(c,a)),s=0,c=a),s+=e[a],a++;return c!==a&&i.push(t.slice(c,a)),i},eq=function(t,e,r){r||(r={});var n,i,a,o,s,c,u,l=[],h=[l],f=r.textIndent||0,d=0,p=0,g=t.split(" "),m=ej.apply(this,[" ",r])[0];if(c=-1===r.lineIndent?g[0].length+2:r.lineIndent||0){var v=Array(c).join(" "),b=[];g.map(function(t){(t=t.split(/\s*\n/)).length>1?b=b.concat(t.map(function(t,e){return(e&&t.length?"\n":"")+t})):b.push(t[0])}),g=b,c=eO.apply(this,[v,r])}for(a=0,o=g.length;ae||y){if(p>e){for(s=eM.apply(this,[n,i,e-(f+d),e]),l.push(s.shift()),l=[s.pop()];s.length;)h.push([s.shift()]);p=i.slice(n.length-(l[0]?l[0].length:0)).reduce(function(t,e){return t+e},0)}else l=[n];h.push(l),f=p+c,d=m}else l.push(n),f+=d+p,d=m}return u=c?function(t,e){return(e?v:"")+t.join(" ")}:function(t){return t.join(" ")},h.map(u)},eC.splitTextToSize=function(t,e,r){var n,i=(r=r||{}).fontSize||this.internal.getFontSize(),a=(function(t){if(t.widths&&t.kerning)return{widths:t.widths,kerning:t.kerning};var e=this.internal.getFont(t.fontName,t.fontStyle),r="Unicode";return e.metadata[r]?{widths:e.metadata[r].widths||{0:1},kerning:e.metadata[r].kerning||{}}:{font:e.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,r);n=Array.isArray(t)?t:String(t).split(/\r?\n/);var o=this.internal.scaleFactor*e/i;a.textIndent=r.textIndent?r.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=r.lineIndent;var s,c,u=[];for(s=0,c=n.length;sparseInt(this.internal.getFont().id.substr(1),10)?(e=RegExp(t,"g"),r=this.internal.getNumberOfPages()):(e=RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i1){for(h=0;h>")}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=r,this},D.API.addMetadata=function(t,e){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:t,namespaceUri:null!=e?e:"http://jspdf.default.namespaceuri/",rawXml:"boolean"==typeof e&&e},this.internal.events.subscribe("putCatalog",e$),this.internal.events.subscribe("postPutResources",eZ)),this},rU=(rz=D.API).pdfEscape16=function(t,e){for(var r,n=e.metadata.Unicode.widths,i=["","0","00","000","0000"],a=[""],o=0,s=t.length;o=100&&(a+="\n"+n.length+" beginbfchar\n"+n.join("\n")+"\nendbfchar",n=[]),void 0!==t[e]&&null!==t[e]&&"function"==typeof t[e].toString&&(i=("0000"+t[e].toString(16)).slice(-4),e=("0000"+(+e).toString(16)).slice(-4),n.push("<"+e+"><"+i+">"));return n.length&&(a+="\n"+n.length+" beginbfchar\n"+n.join("\n")+"\nendbfchar\n"),a+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"},rz.events.push(["putFont",function(t){!function(t){var e=t.font,r=t.out,n=t.newObject,i=t.putStream;if(e.metadata instanceof D.API.TTFFont&&"Identity-H"===e.encoding){for(var a=e.metadata.Unicode.widths,o=e.metadata.subset.encode(e.metadata.glyIdsUsed,1),s="",c=0;c>"),r("endobj");var f=n();r("<<"),r("/Type /Font"),r("/BaseFont /"+O(e.fontName)),r("/FontDescriptor "+h+" 0 R"),r("/W "+D.API.PDFObject.convert(a)),r("/CIDToGIDMap /Identity"),r("/DW 1000"),r("/Subtype /CIDFontType2"),r("/CIDSystemInfo"),r("<<"),r("/Supplement 0"),r("/Registry (Adobe)"),r("/Ordering ("+e.encoding+")"),r(">>"),r(">>"),r("endobj"),e.objectNumber=n(),r("<<"),r("/Type /Font"),r("/Subtype /Type0"),r("/ToUnicode "+l+" 0 R"),r("/BaseFont /"+O(e.fontName)),r("/Encoding /"+e.encoding),r("/DescendantFonts ["+f+" 0 R]"),r(">>"),r("endobj"),e.isAlreadyPutted=!0}}(t)}]),rz.events.push(["putFont",function(t){!function(t){var e=t.font,r=t.out,n=t.newObject,i=t.putStream;if(e.metadata instanceof D.API.TTFFont&&"WinAnsiEncoding"===e.encoding){for(var a=e.metadata.rawData,o="",s=0;s>"),r("endobj"),e.objectNumber=n();for(var h=0;h>"),r("endobj"),e.isAlreadyPutted=!0}}(t)}]),rW=function(t){var e,r=t.text||"",n=t.x,i=t.y,a=t.options||{},o=t.mutex||{},s=o.pdfEscape,c=o.activeFontKey,u=o.fonts,l=c,h="",f=0,d="",p=u[l].encoding;if("Identity-H"!==u[l].encoding)return{text:r,x:n,y:i,options:a,mutex:o};for(d=r,l=c,Array.isArray(r)&&(d=r[0]),f=0;fd[f].charCodeAt(0)&&u[l].metadata.hasOwnProperty("Unicode")?h+=d[f]:h+="";var g="";return 14>parseInt(l.slice(1))||"WinAnsiEncoding"===p?g=s(h,l).split("").map(function(t){return t.charCodeAt(0).toString(16)}).join(""):"Identity-H"===p&&(g=rU(h,u[l])),o.isHex=!0,{text:g,x:n,y:i,options:a,mutex:o}},rz.events.push(["postProcessText",function(t){var e=t.text||"",r=[],n={text:e,x:t.x,y:t.y,options:t.options,mutex:t.mutex};if(Array.isArray(e)){var i=0;for(i=0;i","<","[","]","[","{","}","{","\xab","\xbb","\xab","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],d=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)$/),p=!1,g=0;this.__bidiEngine__={};var m=function(t){var e=t.charCodeAt(),r=e>>8,n=h[r];return void 0!==n?rY[256*n+(255&e)]:252===r||253===r?"AL":d.test(r)?"L":8===r?"R":"N"},v=function(t){for(var e,r=0;r=a.length||"EN"!==(c=o[s-1])&&"AN"!==c||"EN"!==(u=a[s+1])&&"AN"!==u?f="N":p&&(u="AN"),f=u===c?u:"N";break;case"ES":f="EN"===(c=s>0?o[s-1]:"B")&&s+10&&"EN"===o[s-1]){f="EN";break}if(p){f="N";break}for(l=s+1,h=a.length;l=1425&&d<=2303||64286===d)&&("R"===c||"AL"===c)){f="R";break}}}f=s<1||"B"===(c=a[s-1])?"N":o[s-1];break;case"B":p=!1,e=!0,f=g;break;case"S":r=!0,f="N"}return f},y=function(t,e,r){var n=t.split("");return r&&w(n,r,{hiLevel:g}),n.reverse(),e&&e.reverse(),n.join("")},w=function(t,n,i){var a,o,s,h,f,d=-1,v=t.length,y=0,w=[],x=g?u:c,N=[];for(p=!1,e=!1,r=!1,o=0;o0)if(16===a){for(o=d;o-1){for(o=d;o=0&&"WS"===t[i];i--)e[i]=g}}(N,n,v)},x=function(t,r,n,i,a){if(!(a.hiLevel=t){for(c=h+1;c=t;)c++;for(u=h,s=c-1;u=0&&(t[i]=f[n+1])}(n,r,i),x(2,n,e,r,i),x(1,n,e,r,i),n.join("")};return this.__bidiEngine__.doBidiReorder=function(t,e,r){if(function(t,e){if(e)for(var r=0;r>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+r)):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=1===(i=this.familyClass)||2===i||3===i||4===i||5===i||7===i,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(t){var e;return(null!=(e=this.cmap.unicode)?e.codeMap[t]:void 0)||0},t.prototype.widthOfGlyph=function(t){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*e},t.prototype.widthOfString=function(t,e,r){var n,i,a,o;for(a=0,i=0,o=(t=""+t).length;0<=o?io;i=0<=o?++i:--i)n=t.charCodeAt(i),a+=this.widthOfGlyph(this.characterToGlyph(n))+1e3/e*r||0;return e/1e3*a},t.prototype.lineHeight=function(t,e){var r;return null==e&&(e=!1),r=e?this.lineGap:0,(this.ascender+r-this.decender)/1e3*t},t}();var eQ,e1,e2,e5,e0,e3,e4,e6,e8,e7,e9,rt,re,rr,rn,ri,ra,ro,rs,rc,ru,rl,rh,rf,rd,rp,rg,rm,rv,rb,ry,rw,rx,rN,rL,rA,rS,r_,rP,rk,rF,rI,rC,rj,rO,rM,rq,rE,rB,rR,rD,rT,rz,rU,rH,rW,rV,rG,rY,rJ,rX,rK=function(){function t(t){this.data=null!=t?t:[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(t){return this.data[this.pos++]=t},t.prototype.readUInt32=function(){return 0x1000000*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=0x80000000?t-0x100000000:t},t.prototype.writeInt32=function(t){return t<0&&(t+=0x100000000),this.writeUInt32(t)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},t.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},t.prototype.readString=function(t){var e,r;for(r=[],e=0;0<=t?et;e=0<=t?++e:--e)r[e]=String.fromCharCode(this.readByte());return r.join("")},t.prototype.writeString=function(t){var e,r,n;for(n=[],e=0,r=t.length;0<=r?er;e=0<=r?++e:--e)n.push(this.writeByte(t.charCodeAt(e)));return n},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(t){return this.writeInt16(t)},t.prototype.readLongLong=function(){var t,e,r,n,i,a,o,s;return t=this.readByte(),e=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),a=this.readByte(),o=this.readByte(),s=this.readByte(),128&t?-1*(0x100000000000000*(255^t)+0x1000000000000*(255^e)+0x10000000000*(255^r)+0x100000000*(255^n)+0x1000000*(255^i)+65536*(255^a)+256*(255^o)+(255^s)+1):0x100000000000000*t+0x1000000000000*e+0x10000000000*r+0x100000000*n+0x1000000*i+65536*a+256*o+s},t.prototype.writeLongLong=function(t){var e,r;return e=Math.floor(t/0x100000000),r=0|t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(t){return this.writeInt32(t)},t.prototype.read=function(t){var e,r;for(e=[],r=0;0<=t?rt;r=0<=t?++r:--r)e.push(this.readByte());return e},t.prototype.write=function(t){var e,r,n,i;for(i=[],r=0,n=t.length;rn;r=0<=n?++r:--r)e={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[e.tag]=e}return e.prototype.encode=function(e){var r,n,i,a,o,s,c,u,l,h,f,d,p;for(p in a=Math.floor((l=16*Math.floor(Math.log(f=Object.keys(e).length)/(s=Math.log(2))))/s),u=16*f-l,(n=new rK).writeInt(this.scalarType),n.writeShort(f),n.writeShort(l),n.writeShort(a),n.writeShort(u),i=16*f,c=n.pos+i,o=null,d=[],e)for(h=e[p],n.writeString(p),n.writeInt(t(h)),n.writeInt(c),n.writeInt(h.length),d=d.concat(h),"head"===p&&(o=c),c+=h.length;c%4;)d.push(0),c++;return n.write(d),r=0xb1b0afba-t(n.data),n.pos=o+8,n.writeUInt32(r),n.data},t=function(t){var e,r,n,i;for(t=nt.call(t);t.length%4;)t.push(0);for(n=new rK(t),r=0,e=0,i=t.length;eh;s=0<=h?++e:--e)r.push(t.readUInt16());return r}(),t.pos+=2,d=function(){var e,r;for(r=[],s=e=0;0<=h?eh;s=0<=h?++e:--e)r.push(t.readUInt16());return r}(),c=function(){var e,r;for(r=[],s=e=0;0<=h?eh;s=0<=h?++e:--e)r.push(t.readUInt16());return r}(),u=function(){var e,r;for(r=[],s=e=0;0<=h?eh;s=0<=h?++e:--e)r.push(t.readUInt16());return r}(),n=(this.length-t.pos+this.offset)/2,o=function(){var e,r;for(r=[],s=e=0;0<=n?en;s=0<=n?++e:--e)r.push(t.readUInt16());return r}(),s=g=0,v=i.length;g=p;r=f<=p?++m:--m)0===u[s]?a=r+c[s]:0!==(a=o[u[s]/2+(r-f)-(h-s)]||0)&&(a+=c[s]),this.codeMap[r]=65535&a}t.pos=l}return t.encode=function(t,e){var r,n,i,a,o,s,c,u,l,h,f,d,p,g,m,v,b,y,w,x,N,L,A,S,_,P,k,F,I,C,j,O,M,q,E,B,R,D,T,z,U,H,W,V,G,Y;switch(F=new rK,a=Object.keys(t).sort(function(t,e){return t-e}),e){case"macroman":for(p=0,g=function(){var t=[];for(d=0;d<256;++d)t.push(0);return t}(),v={0:0},i={},I=0,M=a.length;I=32768)for(s.push(0),x.push(2*(f.length+A-d)),n=O=_;_<=u?O<=u:O>=u;n=_<=u?++O:--O)f.push(r[n].new);else s.push(k-_),x.push(0)}for(F.writeUInt16(3),F.writeUInt16(1),F.writeUInt32(12),F.writeUInt16(4),F.writeUInt16(16+8*A+2*f.length),F.writeUInt16(0),F.writeUInt16(S),F.writeUInt16(L),F.writeUInt16(h),F.writeUInt16(N),U=0,B=l.length;Un;r=0<=n?++r:--r)e=new r2(t,this.offset),this.tables.push(e),e.isUnicode&&null==this.unicode&&(this.unicode=e);return!0},t.encode=function(t,e){var r,n;return null==e&&(e="macroman"),r=r2.encode(t,e),(n=new rK).writeUInt16(0),n.writeUInt16(1),r.table=n.data.concat(r.subtable),r},t}(),r0=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return rQ(t,rX),t.prototype.tag="hhea",t.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},t}(),r3=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return rQ(t,rX),t.prototype.tag="OS/2",t.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var e,r;for(r=[],e=0;e<10;++e)r.push(t.readByte());return r}(),this.charRange=function(){var e,r;for(r=[],e=0;e<4;++e)r.push(t.readInt());return r}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var e,r;for(r=[],e=0;e<2;e=++e)r.push(t.readInt());return r}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},t}(),r4=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return rQ(t,rX),t.prototype.tag="post",t.prototype.parse=function(t){var e,r,n,i;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:case 196608:break;case 131072:for(r=t.readUInt16(),this.glyphNameIndex=[],i=0;0<=r?ir;i=0<=r?++i:--i)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],n=[];t.posr;i=0<=r?++e:--e)n.push(t.readUInt32());return n}).call(this)}},t}(),r6=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},r8=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return rQ(t,rX),t.prototype.tag="name",t.prototype.parse=function(t){var e,r,n,i,a,o,s,c,u,l;for(t.pos=this.offset,t.readShort(),e=t.readShort(),o=t.readShort(),r=[],i=0;0<=e?ie;i=0<=e?++i:--i)r.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+o+t.readShort()});for(s={},i=c=0,u=r.length;co;e=0<=o?++e:--e)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(n=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var r,i;for(i=[],e=r=0;0<=n?rn;e=0<=n?++r:--r)i.push(t.readInt16());return i}(),this.widths=(function(){var t,e,r,n;for(n=[],t=0,e=(r=this.metrics).length;tn;e=0<=n?++a:--a)s.push(this.widths.push(r));return s},t.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},t}(),nt=[].slice,ne=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return rQ(t,rX),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(t){var e,r,n,i,a,o,s,c,u,l;return t in this.cache?this.cache[t]:(i=this.file.loca,e=this.file.contents,r=i.indexOf(t),0===(n=i.lengthOf(t))?this.cache[t]=null:(e.pos=this.offset+r,a=(o=new rK(e.read(n))).readShort(),c=o.readShort(),l=o.readShort(),s=o.readShort(),u=o.readShort(),this.cache[t]=-1===a?new nn(o,c,l,s,u):new nr(o,a,c,l,s,u),this.cache[t]))},t.prototype.encode=function(t,e,r){var n,i,a,o,s;for(a=[],i=[],o=0,s=e.length;o0&&(n+=s)}for(var c=Array(4*r.length),u=0;u>8,c[4*u+1]=(0xff0000&r[u])>>16,c[4*u]=(0xff000000&r[u])>>24;return c},t}(),na=function(){function t(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var t,e,r,n,i;for(e in n=this.font.cmap.tables[0].codeMap,t={},i=this.subset)r=i[e],t[e]=n[r];return t},t.prototype.glyphsFor=function(t){var e,r,n,i,a,o,s;for(n={},a=0,o=t.length;a0)for(i in s=this.glyphsFor(e))r=s[i],n[i]=r;return n},t.prototype.encode=function(t,e){var r,n,i,a,o,s,c,u,l,h,f,d,p,g,m;for(n in r=r5.encode(this.generateCmap(),"unicode"),a=this.glyphsFor(t),f={0:0},m=r.charMap)f[(s=m[n]).old]=s.new;for(d in h=r.maxGlyphID,a)d in f||(f[d]=h++);return l=Object.keys(u=function(t){var e,r;for(e in r={},t)r[t[e]]=e;return r}(f)).sort(function(t,e){return t-e}),p=function(){var t,e,r;for(r=[],t=0,e=l.length;t>"),a.join("\n")}return""+r},e}()}}]);