import{_ as bo,u as nl,f as Xc,o as en,c as Qn,b as ne,t as ks,$ as _c,a4 as $c,A as rl,B as il,a5 as Is,i as vn,F as Kc,O as al,h as ma,p as Zc,e as Qc,r as pa,C as ol,D as sl,E as cl,G as ul,d as He,S as Sc,w as Mr,H as ds,J as ps,I as gs,K as ms,j as Fs,P as ll,T as vs,M as bs,Q as Pc}from"./index.1ae0b595.js";import{u as wo,a as hl}from"./apartments.4eae0434.js";import{_ as tu}from"./NoData.47d208fe.js";import{u as Us,M as fl}from"./ModalContainer.35e80a91.js";import{_ as dl,D as kc,a as ha}from"./DataPage.ae86e96e.js";import{I as pl}from"./InputWrapper.85fad3e2.js";const gl={class:"apartment-card__wrapper"},ml={class:"apartment-card__headline"},vl={class:"static-text"},bl={class:"apartment-card__content"},wl={class:"text"},yl=$c("Fenster"),Al={class:"text"},Nl=$c("Heizk\xF6rper"),Ll={__name:"ApartmentCard",props:["data"],setup(r){const e=r,n=nl(),a=wo();function s(){a.setActiveApartment(e.data._id),n.push({name:"buildings.dashboard.apartment"})}function o(h){if(h){const{largeHeatingElements:f,mediumHeatingElements:g,smallHeatingElements:v,workingHeatingInstallations:N}=h.data;let S=f+g+v;if(S===0)return"--icon-color: var(--clr-basic)";const[p]=rl(S,N);if(p<.75)return"--icon-color: var(--clr-critical)";if(p<.8)return"--icon-color: var(--clr-danger)";if(p<.95)return"--icon-color: var(--clr-warning)";if(p<=1)return"--icon-color: var(--clr-success)"}return"--icon-color: var(--clr-basic)"}function u(h){if(h){const{averageWindowAge:f,averageWindowCondition:g,windowGlazing:v}=h.data,[N]=il(f,g,v);if(N<1.5)return"--icon-color: var(--clr-critical)";if(N<2.5)return"--icon-color: var(--clr-danger)";if(N<3.5)return"--icon-color: var(--clr-warning)";if(N>=3.5)return"--icon-color: var(--clr-success)"}return"--icon-color: var(--clr-basic)"}return Xc(async()=>{await a.fetchFile(e.data._id)}),(h,f)=>(en(),Qn("div",{class:"apartment-card",onClick:s},[ne("div",gl,[ne("div",ml,[ne("span",vl,"Id: "+ks(e.data._id),1)]),ne("div",bl,[ne("span",null,ks(e.data.name),1),ne("span",wl,[ne("i",{class:"apartment-card__icon",style:_c(u(e.data))},null,4),yl]),ne("span",Al,[ne("i",{class:"apartment-card__icon",style:_c(o(e.data))},null,4),Nl])])])]))}},xl=bo(Ll,[["__scopeId","data-v-5f346416"]]);function de(r){return de=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},de(r)}var nn=Uint8Array,rn=Uint16Array,va=Uint32Array,yo=new nn([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Ao=new nn([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Cs=new nn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),eu=function(r,e){for(var n=new rn(31),a=0;a<31;++a)n[a]=e+=1<>>1|(Ae&21845)<<1;jr=(jr&52428)>>>2|(jr&13107)<<2,jr=(jr&61680)>>>4|(jr&3855)<<4,Os[Ae]=((jr&65280)>>>8|(jr&255)<<8)>>>1}var er=function(r,e,n){for(var a=r.length,s=0,o=new rn(e);s>>f]=g}else for(h=new rn(a),s=0;s>>15-r[s];return h},Er=new nn(288);for(var Ae=0;Ae<144;++Ae)Er[Ae]=8;for(var Ae=144;Ae<256;++Ae)Er[Ae]=9;for(var Ae=256;Ae<280;++Ae)Er[Ae]=7;for(var Ae=280;Ae<288;++Ae)Er[Ae]=8;var ba=new nn(32);for(var Ae=0;Ae<32;++Ae)ba[Ae]=5;var Sl=er(Er,9,0),Pl=er(Er,9,1),kl=er(ba,5,0),Il=er(ba,5,1),ws=function(r){for(var e=r[0],n=1;ne&&(e=r[n]);return e},Rn=function(r,e,n){var a=e/8>>0;return(r[a]|r[a+1]<<8)>>>(e&7)&n},ys=function(r,e){var n=e/8>>0;return(r[n]|r[n+1]<<8|r[n+2]<<16)>>>(e&7)},Hs=function(r){return(r/8>>0)+(r&7&&1)},au=function(r,e,n){(e==null||e<0)&&(e=0),(n==null||n>r.length)&&(n=r.length);var a=new(r instanceof rn?rn:r instanceof va?va:nn)(n-e);return a.set(r.subarray(e,n)),a},Fl=function(r,e,n){var a=r.length,s=!e||n,o=!n||n.i;n||(n={}),e||(e=new nn(a*3));var u=function(Y){var Q=e.length;if(Y>Q){var et=new nn(Math.max(Q*2,Y));et.set(e),e=et}},h=n.f||0,f=n.p||0,g=n.b||0,v=n.l,N=n.d,S=n.m,p=n.n,M=a*8;do{if(!v){n.f=h=Rn(r,f,1);var I=Rn(r,f+1,3);if(f+=3,I)if(I==1)v=Pl,N=Il,S=9,p=5;else if(I==2){var J=Rn(r,f,31)+257,ot=Rn(r,f+10,15)+4,ut=J+Rn(r,f+5,31)+1;f+=14;for(var wt=new nn(ut),tt=new nn(19),R=0;RM)break;for(var F=er(tt,gt,1),R=0;R>>4;if(B<16)wt[R++]=B;else{var z=0,q=0;for(B==16?(q=3+Rn(r,f,3),f+=2,z=wt[R-1]):B==17?(q=3+Rn(r,f,7),f+=3):B==18&&(q=11+Rn(r,f,127),f+=7);q--;)wt[R++]=z}}var at=wt.subarray(0,J),nt=wt.subarray(J);S=ws(at),p=ws(nt),v=er(at,S,1),N=er(nt,p,1)}else throw"invalid block type";else{var B=Hs(f)+4,_=r[B-4]|r[B-3]<<8,O=B+_;if(O>a){if(o)throw"unexpected EOF";break}s&&u(g+_),e.set(r.subarray(B,O),g),n.b=g+=_,n.p=f=O*8;continue}if(f>M)throw"unexpected EOF"}s&&u(g+131072);for(var lt=(1<>>4;if(f+=z&15,f>M)throw"unexpected EOF";if(!z)throw"invalid length/literal";if(ht<256)e[g++]=ht;else if(ht==256){v=null;break}else{var kt=ht-254;if(ht>264){var R=ht-257,A=yo[R];kt=Rn(r,f,(1<>>4;if(!j)throw"invalid distance";f+=j&15;var nt=_l[E];if(E>3){var A=Ao[E];nt+=ys(r,f)&(1<M)throw"unexpected EOF";s&&u(g+131072);for(var W=g+kt;g>0;r[a]|=n,r[a+1]|=n>>>8},fa=function(r,e,n){n<<=e&7;var a=e/8>>0;r[a]|=n,r[a+1]|=n>>>8,r[a+2]|=n>>>16},As=function(r,e){for(var n=[],a=0;aS&&(S=o[a].s);var p=new rn(S+1),M=Ms(n[v-1],p,0);if(M>e){var a=0,I=0,B=M-e,_=1<e)I+=_-(1<>>=B;I>0;){var J=o[a].s;p[J]=0&&I;--a){var ot=o[a].s;p[ot]==e&&(--p[ot],++I)}M=e}return[new nn(p),M]},Ms=function(r,e,n){return r.s==-1?Math.max(Ms(r.l,e,n+1),Ms(r.r,e,n+1)):e[r.s]=n},Fc=function(r){for(var e=r.length;e&&!r[--e];);for(var n=new rn(++e),a=0,s=r[0],o=1,u=function(f){n[a++]=f},h=1;h<=e;++h)if(r[h]==s&&h!=e)++o;else{if(!s&&o>2){for(;o>138;o-=138)u(32754);o>2&&(u(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(u(s),--o;o>6;o-=6)u(8304);o>2&&(u(o-3<<5|8208),o=0)}for(;o--;)u(s);o=1,s=r[h]}return[n.subarray(0,a),e]},da=function(r,e){for(var n=0,a=0;a>>8,r[s+2]=r[s]^255,r[s+3]=r[s+1]^255;for(var o=0;o4&&!dt[Cs[P-1]];--P);var z=g+5<<3,q=da(s,Er)+da(o,ba)+u,at=da(s,S)+da(o,I)+u+14+3*P+da(tt,dt)+(2*tt[16]+3*tt[17]+7*tt[18]);if(z<=q&&z<=at)return lo(e,v,r.subarray(f,f+g));var nt,lt,Z,ft;if(gr(e,v,1+(at15&&(gr(e,v,j[R]>>>5&127),v+=j[R]>>>12)}}else nt=Sl,lt=Er,Z=kl,ft=ba;for(var R=0;R255){var E=a[R]>>>18&31;fa(e,v,nt[E+257]),v+=lt[E+257],E>7&&(gr(e,v,a[R]>>>23&31),v+=yo[E]);var W=a[R]&31;fa(e,v,Z[W]),v+=ft[W],W>3&&(fa(e,v,a[R]>>>5&8191),v+=Ao[W])}else fa(e,v,nt[a[R]]),v+=lt[a[R]];return fa(e,v,nt[256]),v+lt[256]},Cl=new va([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),jl=new nn(0),Ol=function(r,e,n,a,s,o){var u=r.length,h=new nn(a+u+5*(1+Math.floor(u/7e3))+s),f=h.subarray(a,h.length-s),g=0;if(!e||u<8)for(var v=0;v<=u;v+=65535){var N=v+65535;N>>13,M=S&8191,I=(1<7e3||dt>24576)&&nt>423){g=Cc(r,f,0,ut,wt,tt,gt,dt,P,v-P,g),dt=R=gt=0,P=v;for(var lt=0;lt<286;++lt)wt[lt]=0;for(var lt=0;lt<30;++lt)tt[lt]=0}var Z=2,ft=0,ht=M,kt=q-at&32767;if(nt>2&&z==ot(v-kt))for(var A=Math.min(p,nt)-1,j=Math.min(32767,v),E=Math.min(258,nt);kt<=j&&--ht&&q!=at;){if(r[v+Z]==r[v+Z-kt]){for(var W=0;WZ){if(Z=W,ft=kt,W>A)break;for(var Y=Math.min(kt,W-2),Q=0,lt=0;ltQ&&(Q=Lt,at=et)}}}q=at,at=B[q],kt+=q-at+32768&32767}if(ft){ut[dt++]=268435456|js[Z]<<18|Ic[ft];var Nt=js[Z]&31,Ct=Ic[ft]&31;gt+=yo[Nt]+Ao[Ct],++wt[257+Nt],++tt[Ct],F=v+Z,++R}else ut[dt++]=r[v],++wt[r[v]]}}g=Cc(r,f,o,ut,wt,tt,gt,dt,P,v-P,g),o||(g=lo(f,g,jl))}return au(h,0,a+Hs(g)+s)},Ml=function(){var r=1,e=0;return{p:function(n){for(var a=r,s=e,o=n.length,u=0;u!=o;){for(var h=Math.min(u+5552,o);u>>8<<16|(e&255)<<8|e>>>8)+((r&255)<<23)*2}}},Bl=function(r,e,n,a,s){return Ol(r,e.level==null?6:e.level,e.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):12+e.mem,n,a,!s)},El=function(r,e,n){for(;n;++e)r[e]=n,n>>>=8},Dl=function(r,e){var n=e.level,a=n==0?0:n<6?1:n==9?3:2;r[0]=120,r[1]=a<<6|(a?32-2*a:1)},ql=function(r){if((r[0]&15)!=8||r[0]>>>4>7||(r[0]<<8|r[1])%31)throw"invalid zlib data";if(r[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function Bs(r,e){e===void 0&&(e={});var n=Ml();n.p(r);var a=Bl(r,e,2,4);return Dl(a,e),El(a,a.length-4,n.d()),a}function Rl(r,e){return Fl((ql(r),r.subarray(2,-4)),e)}var Ht=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function Ns(){Ht.console&&typeof Ht.console.log=="function"&&Ht.console.log.apply(Ht.console,arguments)}var be={log:Ns,warn:function(r){Ht.console&&(typeof Ht.console.warn=="function"?Ht.console.warn.apply(Ht.console,arguments):Ns.call(null,arguments))},error:function(r){Ht.console&&(typeof Ht.console.error=="function"?Ht.console.error.apply(Ht.console,arguments):Ns(r))}};function Ls(r,e,n){var a=new XMLHttpRequest;a.open("GET",r),a.responseType="blob",a.onload=function(){Jr(a.response,e,n)},a.onerror=function(){be.error("could not download file")},a.send()}function jc(r){var e=new XMLHttpRequest;e.open("HEAD",r,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function oo(r){try{r.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),r.dispatchEvent(e)}}var ga,Es,Jr=Ht.saveAs||((typeof window>"u"?"undefined":de(window))!=="object"||window!==Ht?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(r,e,n){var a=Ht.URL||Ht.webkitURL,s=document.createElement("a");e=e||r.name||"download",s.download=e,s.rel="noopener",typeof r=="string"?(s.href=r,s.origin!==location.origin?jc(s.href)?Ls(r,e,n):oo(s,s.target="_blank"):oo(s)):(s.href=a.createObjectURL(r),setTimeout(function(){a.revokeObjectURL(s.href)},4e4),setTimeout(function(){oo(s)},0))}:"msSaveOrOpenBlob"in navigator?function(r,e,n){if(e=e||r.name||"download",typeof r=="string")if(jc(r))Ls(r,e,n);else{var a=document.createElement("a");a.href=r,a.target="_blank",setTimeout(function(){oo(a)})}else navigator.msSaveOrOpenBlob(function(s,o){return o===void 0?o={autoBom:!1}:de(o)!=="object"&&(be.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(s.type)?new Blob([String.fromCharCode(65279),s],{type:s.type}):s}(r,n),e)}:function(r,e,n,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),typeof r=="string")return Ls(r,e,n);var s=r.type==="application/octet-stream",o=/constructor/i.test(Ht.HTMLElement)||Ht.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||s&&o)&&(typeof FileReader>"u"?"undefined":de(FileReader))==="object"){var h=new FileReader;h.onloadend=function(){var v=h.result;v=u?v:v.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=v:location=v,a=null},h.readAsDataURL(r)}else{var f=Ht.URL||Ht.webkitURL,g=f.createObjectURL(r);a?a.location=g:location.href=g,a=null,setTimeout(function(){f.revokeObjectURL(g)},4e4)}});/** * A class to parse color values * @author Stoyan Stefanov * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} * @license Use it if you like it */function ou(r){var e;r=r||"",this.ok=!1,r.charAt(0)=="#"&&(r=r.substr(1,6)),r={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[r=(r=r.replace(/ /g,"")).toLowerCase()]||r;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(h){return[parseInt(h[1]),parseInt(h[2]),parseInt(h[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(h){return[parseInt(h[1],16),parseInt(h[2],16),parseInt(h[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(h){return[parseInt(h[1]+h[1],16),parseInt(h[2]+h[2],16),parseInt(h[3]+h[3],16)]}}],a=0;a255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var h=this.r.toString(16),f=this.g.toString(16),g=this.b.toString(16);return h.length==1&&(h="0"+h),f.length==1&&(f="0"+f),g.length==1&&(g="0"+g),"#"+h+f+g}}/** * @license * Joseph Myers does not specify a particular license for his work. * * Author: Joseph Myers * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js * * Modified by: Owen Leong */function xs(r,e){var n=r[0],a=r[1],s=r[2],o=r[3];n=$e(n,a,s,o,e[0],7,-680876936),o=$e(o,n,a,s,e[1],12,-389564586),s=$e(s,o,n,a,e[2],17,606105819),a=$e(a,s,o,n,e[3],22,-1044525330),n=$e(n,a,s,o,e[4],7,-176418897),o=$e(o,n,a,s,e[5],12,1200080426),s=$e(s,o,n,a,e[6],17,-1473231341),a=$e(a,s,o,n,e[7],22,-45705983),n=$e(n,a,s,o,e[8],7,1770035416),o=$e(o,n,a,s,e[9],12,-1958414417),s=$e(s,o,n,a,e[10],17,-42063),a=$e(a,s,o,n,e[11],22,-1990404162),n=$e(n,a,s,o,e[12],7,1804603682),o=$e(o,n,a,s,e[13],12,-40341101),s=$e(s,o,n,a,e[14],17,-1502002290),n=Ke(n,a=$e(a,s,o,n,e[15],22,1236535329),s,o,e[1],5,-165796510),o=Ke(o,n,a,s,e[6],9,-1069501632),s=Ke(s,o,n,a,e[11],14,643717713),a=Ke(a,s,o,n,e[0],20,-373897302),n=Ke(n,a,s,o,e[5],5,-701558691),o=Ke(o,n,a,s,e[10],9,38016083),s=Ke(s,o,n,a,e[15],14,-660478335),a=Ke(a,s,o,n,e[4],20,-405537848),n=Ke(n,a,s,o,e[9],5,568446438),o=Ke(o,n,a,s,e[14],9,-1019803690),s=Ke(s,o,n,a,e[3],14,-187363961),a=Ke(a,s,o,n,e[8],20,1163531501),n=Ke(n,a,s,o,e[13],5,-1444681467),o=Ke(o,n,a,s,e[2],9,-51403784),s=Ke(s,o,n,a,e[7],14,1735328473),n=Ze(n,a=Ke(a,s,o,n,e[12],20,-1926607734),s,o,e[5],4,-378558),o=Ze(o,n,a,s,e[8],11,-2022574463),s=Ze(s,o,n,a,e[11],16,1839030562),a=Ze(a,s,o,n,e[14],23,-35309556),n=Ze(n,a,s,o,e[1],4,-1530992060),o=Ze(o,n,a,s,e[4],11,1272893353),s=Ze(s,o,n,a,e[7],16,-155497632),a=Ze(a,s,o,n,e[10],23,-1094730640),n=Ze(n,a,s,o,e[13],4,681279174),o=Ze(o,n,a,s,e[0],11,-358537222),s=Ze(s,o,n,a,e[3],16,-722521979),a=Ze(a,s,o,n,e[6],23,76029189),n=Ze(n,a,s,o,e[9],4,-640364487),o=Ze(o,n,a,s,e[12],11,-421815835),s=Ze(s,o,n,a,e[15],16,530742520),n=Qe(n,a=Ze(a,s,o,n,e[2],23,-995338651),s,o,e[0],6,-198630844),o=Qe(o,n,a,s,e[7],10,1126891415),s=Qe(s,o,n,a,e[14],15,-1416354905),a=Qe(a,s,o,n,e[5],21,-57434055),n=Qe(n,a,s,o,e[12],6,1700485571),o=Qe(o,n,a,s,e[3],10,-1894986606),s=Qe(s,o,n,a,e[10],15,-1051523),a=Qe(a,s,o,n,e[1],21,-2054922799),n=Qe(n,a,s,o,e[8],6,1873313359),o=Qe(o,n,a,s,e[15],10,-30611744),s=Qe(s,o,n,a,e[6],15,-1560198380),a=Qe(a,s,o,n,e[13],21,1309151649),n=Qe(n,a,s,o,e[4],6,-145523070),o=Qe(o,n,a,s,e[11],10,-1120210379),s=Qe(s,o,n,a,e[2],15,718787259),a=Qe(a,s,o,n,e[9],21,-343485551),r[0]=Br(n,r[0]),r[1]=Br(a,r[1]),r[2]=Br(s,r[2]),r[3]=Br(o,r[3])}function No(r,e,n,a,s,o){return e=Br(Br(e,r),Br(a,o)),Br(e<>>32-s,n)}function $e(r,e,n,a,s,o,u){return No(e&n|~e&a,r,e,s,o,u)}function Ke(r,e,n,a,s,o,u){return No(e&a|n&~a,r,e,s,o,u)}function Ze(r,e,n,a,s,o,u){return No(e^n^a,r,e,s,o,u)}function Qe(r,e,n,a,s,o,u){return No(n^(e|~a),r,e,s,o,u)}function su(r){var e,n=r.length,a=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=r.length;e+=64)xs(a,Tl(r.substring(e-64,e)));r=r.substring(e-64);var s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e>2]|=r.charCodeAt(e)<<(e%4<<3);if(s[e>>2]|=128<<(e%4<<3),e>55)for(xs(a,s),e=0;e<16;e++)s[e]=0;return s[14]=8*n,xs(a,s),a}function Tl(r){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=r.charCodeAt(e)+(r.charCodeAt(e+1)<<8)+(r.charCodeAt(e+2)<<16)+(r.charCodeAt(e+3)<<24);return n}ga=Ht.atob.bind(Ht),Es=Ht.btoa.bind(Ht);var Oc="0123456789abcdef".split("");function zl(r){for(var e="",n=0;n<4;n++)e+=Oc[r>>8*n+4&15]+Oc[r>>8*n&15];return e}function Ul(r){return String.fromCharCode((255&r)>>0,(65280&r)>>8,(16711680&r)>>16,(4278190080&r)>>24)}function Ds(r){return su(r).map(Ul).join("")}var Hl=function(r){for(var e=0;e>16)+(e>>16)+(n>>16)<<16|65535&n}return r+e&4294967295}/** * @license * FPDF is released under a permissive license: there is no usage restriction. * You may embed it freely in your application (commercial or not), with or * without modifications. * * Reference: http://www.fpdf.org/en/script/script37.php */function qs(r,e){var n,a,s,o;if(r!==n){for(var u=(s=r,o=1+(256/r.length>>0),new Array(o+1).join(s)),h=[],f=0;f<256;f++)h[f]=f;var g=0;for(f=0;f<256;f++){var v=h[f];g=(g+v+u.charCodeAt(f))%256,h[f]=h[g],h[g]=v}n=r,a=h}else h=a;var N=e.length,S=0,p=0,M="";for(f=0;f\x80/\f\xA9\xFEdSiz";var o=(e+this.padding).substr(0,32),u=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,u),this.P=-(1+(255^s)),this.encryptionKey=Ds(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(a)).substr(0,5),this.U=qs(this.encryptionKey,this.padding)}function Fi(r){if(/[^\u0000-\u00ff]/.test(r))throw new Error("Invalid PDF Name Object: "+r+", Only accept ASCII characters.");for(var e="",n=r.length,a=0;a126?e+="#"+("0"+s.toString(16)).slice(-2):e+=r[a]}return e}function Bc(r){if(de(r)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(n,a,s){if(s=s||!1,typeof n!="string"||typeof a!="function"||typeof s!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(n)||(e[n]={});var o=Math.random().toString(35);return e[n][o]=[a,!!s],o},this.unsubscribe=function(n){for(var a in e)if(e[a][n])return delete e[a][n],Object.keys(e[a]).length===0&&delete e[a],!0;return!1},this.publish=function(n){if(e.hasOwnProperty(n)){var a=Array.prototype.slice.call(arguments,1),s=[];for(var o in e[n]){var u=e[n][o];try{u[0].apply(r,a)}catch(h){Ht.console&&be.error("jsPDF PubSub Error",h.message,h)}u[1]&&s.push(o)}s.length&&s.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function mo(r){if(!(this instanceof mo))return new mo(r);var e="opacity,stroke-opacity".split(",");for(var n in r)r.hasOwnProperty(n)&&e.indexOf(n)>=0&&(this[n]=r[n]);this.id="",this.objectNumber=-1}function cu(r,e){this.gState=r,this.matrix=e,this.id="",this.objectNumber=-1}function Xr(r,e,n,a,s){if(!(this instanceof Xr))return new Xr(r,e,n,a,s);this.type=r==="axial"?2:3,this.coords=e,this.colors=n,cu.call(this,a,s)}function Ci(r,e,n,a,s){if(!(this instanceof Ci))return new Ci(r,e,n,a,s);this.boundingBox=r,this.xStep=e,this.yStep=n,this.stream="",this.cloneIndex=0,cu.call(this,a,s)}function zt(r){var e,n=typeof arguments[0]=="string"?arguments[0]:"p",a=arguments[1],s=arguments[2],o=arguments[3],u=[],h=1,f=16,g="S",v=null;de(r=r||{})==="object"&&(n=r.orientation,a=r.unit||a,s=r.format||s,o=r.compress||r.compressPdf||o,(v=r.encryption||null)!==null&&(v.userPassword=v.userPassword||"",v.ownerPassword=v.ownerPassword||"",v.userPermissions=v.userPermissions||[]),h=typeof r.userUnit=="number"?Math.abs(r.userUnit):1,r.precision!==void 0&&(e=r.precision),r.floatPrecision!==void 0&&(f=r.floatPrecision),g=r.defaultPathOperation||"S"),u=r.filters||(o===!0?["FlateEncode"]:u),a=a||"mm",n=(""+(n||"P")).toLowerCase();var N=r.putOnlyUsedFonts||!1,S={},p={internal:{},__private__:{}};p.__private__.PubSub=Bc;var M="1.3",I=p.__private__.getPdfVersion=function(){return M};p.__private__.setPdfVersion=function(c){M=c};var B={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};p.__private__.getPageFormats=function(){return B};var _=p.__private__.getPageFormat=function(c){return B[c]};s=s||"a4";var O={COMPAT:"compat",ADVANCED:"advanced"},J=O.COMPAT;function ot(){this.saveGraphicsState(),D(new Tt(Ft,0,0,-Ft,0,wr()*Ft).toString()+" cm"),this.setFontSize(this.getFontSize()/Ft),g="n",J=O.ADVANCED}function ut(){this.restoreGraphicsState(),g="S",J=O.COMPAT}var wt=p.__private__.combineFontStyleAndFontWeight=function(c,b){if(c=="bold"&&b=="normal"||c=="bold"&&b==400||c=="normal"&&b=="italic"||c=="bold"&&b=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return b&&(c=b==400||b==="normal"?c==="italic"?"italic":"normal":b!=700&&b!=="bold"||c!=="normal"?(b==700?"bold":b)+""+c:"bold"),c};p.advancedAPI=function(c){var b=J===O.COMPAT;return b&&ot.call(this),typeof c!="function"||(c(this),b&&ut.call(this)),this},p.compatAPI=function(c){var b=J===O.ADVANCED;return b&&ut.call(this),typeof c!="function"||(c(this),b&&ot.call(this)),this},p.isAdvancedAPI=function(){return J===O.ADVANCED};var tt,R=function(c){if(J!==O.ADVANCED)throw new Error(c+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},gt=p.roundToPrecision=p.__private__.roundToPrecision=function(c,b){var C=e||b;if(isNaN(c)||isNaN(C))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return c.toFixed(C).replace(/0+$/,"")};tt=p.hpf=p.__private__.hpf=typeof f=="number"?function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.hpf");return gt(c,f)}:f==="smart"?function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.hpf");return gt(c,c>-1&&c<1?16:5)}:function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.hpf");return gt(c,16)};var dt=p.f2=p.__private__.f2=function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.f2");return gt(c,2)},F=p.__private__.f3=function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.f3");return gt(c,3)},P=p.scale=p.__private__.scale=function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.scale");return J===O.COMPAT?c*Ft:J===O.ADVANCED?c:void 0},z=function(c){return J===O.COMPAT?wr()-c:J===O.ADVANCED?c:void 0},q=function(c){return P(z(c))};p.__private__.setPrecision=p.setPrecision=function(c){typeof parseInt(c,10)=="number"&&(e=parseInt(c,10))};var at,nt="00000000000000000000000000000000",lt=p.__private__.getFileId=function(){return nt},Z=p.__private__.setFileId=function(c){return nt=c!==void 0&&/^[a-fA-F0-9]{32}$/.test(c)?c.toUpperCase():nt.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),v!==null&&(Je=new Ii(v.userPermissions,v.userPassword,v.ownerPassword,nt)),nt};p.setFileId=function(c){return Z(c),this},p.getFileId=function(){return lt()};var ft=p.__private__.convertDateToPDFDate=function(c){var b=c.getTimezoneOffset(),C=b<0?"+":"-",T=Math.floor(Math.abs(b/60)),X=Math.abs(b%60),st=[C,E(T),"'",E(X),"'"].join("");return["D:",c.getFullYear(),E(c.getMonth()+1),E(c.getDate()),E(c.getHours()),E(c.getMinutes()),E(c.getSeconds()),st].join("")},ht=p.__private__.convertPDFDateToDate=function(c){var b=parseInt(c.substr(2,4),10),C=parseInt(c.substr(6,2),10)-1,T=parseInt(c.substr(8,2),10),X=parseInt(c.substr(10,2),10),st=parseInt(c.substr(12,2),10),yt=parseInt(c.substr(14,2),10);return new Date(b,C,T,X,st,yt,0)},kt=p.__private__.setCreationDate=function(c){var b;if(c===void 0&&(c=new Date),c instanceof Date)b=ft(c);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(c))throw new Error("Invalid argument passed to jsPDF.setCreationDate");b=c}return at=b},A=p.__private__.getCreationDate=function(c){var b=at;return c==="jsDate"&&(b=ht(at)),b};p.setCreationDate=function(c){return kt(c),this},p.getCreationDate=function(c){return A(c)};var j,E=p.__private__.padd2=function(c){return("0"+parseInt(c)).slice(-2)},W=p.__private__.padd2Hex=function(c){return("00"+(c=c.toString())).substr(c.length)},Y=0,Q=[],et=[],rt=0,Lt=[],Nt=[],Ct=!1,Mt=et,Ut=function(){Y=0,rt=0,et=[],Q=[],Lt=[],ir=Me(),Pn=Me()};p.__private__.setCustomOutputDestination=function(c){Ct=!0,Mt=c};var ct=function(c){Ct||(Mt=c)};p.__private__.resetCustomOutputDestination=function(){Ct=!1,Mt=et};var D=p.__private__.out=function(c){return c=c.toString(),rt+=c.length+1,Mt.push(c),Mt},Xt=p.__private__.write=function(c){return D(arguments.length===1?c.toString():Array.prototype.join.call(arguments," "))},Et=p.__private__.getArrayBuffer=function(c){for(var b=c.length,C=new ArrayBuffer(b),T=new Uint8Array(C);b--;)T[b]=c.charCodeAt(b);return C},At=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];p.__private__.getStandardFonts=function(){return At};var xt=r.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(c){return xt=J===O.ADVANCED?c/Ft:c,this};var It,Pt=p.__private__.getFontSize=p.getFontSize=function(){return J===O.COMPAT?xt:xt*Ft},Dt=r.R2L||!1;p.__private__.setR2L=p.setR2L=function(c){return Dt=c,this},p.__private__.getR2L=p.getR2L=function(){return Dt};var Gt,Zt=p.__private__.setZoomMode=function(c){var b=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(c))It=c;else if(isNaN(c)){if(b.indexOf(c)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+c+'" is not recognized.');It=c}else It=parseInt(c,10)};p.__private__.getZoomMode=function(){return It};var te,ae=p.__private__.setPageMode=function(c){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(c)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+c+'" is not recognized.');Gt=c};p.__private__.getPageMode=function(){return Gt};var pe=p.__private__.setLayoutMode=function(c){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(c)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+c+'" is not recognized.');te=c};p.__private__.getLayoutMode=function(){return te},p.__private__.setDisplayMode=p.setDisplayMode=function(c,b,C){return Zt(c),pe(b),ae(C),this};var Wt={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(c){if(Object.keys(Wt).indexOf(c)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Wt[c]},p.__private__.getDocumentProperties=function(){return Wt},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(c){for(var b in Wt)Wt.hasOwnProperty(b)&&c[b]&&(Wt[b]=c[b]);return this},p.__private__.setDocumentProperty=function(c,b){if(Object.keys(Wt).indexOf(c)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Wt[c]=b};var ee,Ft,Ye,se,xn,me={},Ne={},Hn=[],ue={},qr={},xe={},_n={},rr=null,_e=0,Yt=[],le=new Bc(p),Rr=r.hotfixes||[],Ve={},Wn={},Vn=[],Tt=function c(b,C,T,X,st,yt){if(!(this instanceof c))return new c(b,C,T,X,st,yt);isNaN(b)&&(b=1),isNaN(C)&&(C=0),isNaN(T)&&(T=0),isNaN(X)&&(X=1),isNaN(st)&&(st=0),isNaN(yt)&&(yt=0),this._matrix=[b,C,T,X,st,yt]};Object.defineProperty(Tt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(c){this._matrix[0]=c}}),Object.defineProperty(Tt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(c){this._matrix[1]=c}}),Object.defineProperty(Tt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(c){this._matrix[2]=c}}),Object.defineProperty(Tt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(c){this._matrix[3]=c}}),Object.defineProperty(Tt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(c){this._matrix[4]=c}}),Object.defineProperty(Tt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(c){this._matrix[5]=c}}),Object.defineProperty(Tt.prototype,"a",{get:function(){return this._matrix[0]},set:function(c){this._matrix[0]=c}}),Object.defineProperty(Tt.prototype,"b",{get:function(){return this._matrix[1]},set:function(c){this._matrix[1]=c}}),Object.defineProperty(Tt.prototype,"c",{get:function(){return this._matrix[2]},set:function(c){this._matrix[2]=c}}),Object.defineProperty(Tt.prototype,"d",{get:function(){return this._matrix[3]},set:function(c){this._matrix[3]=c}}),Object.defineProperty(Tt.prototype,"e",{get:function(){return this._matrix[4]},set:function(c){this._matrix[4]=c}}),Object.defineProperty(Tt.prototype,"f",{get:function(){return this._matrix[5]},set:function(c){this._matrix[5]=c}}),Object.defineProperty(Tt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Tt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Tt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Tt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Tt.prototype.join=function(c){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(tt).join(c)},Tt.prototype.multiply=function(c){var b=c.sx*this.sx+c.shy*this.shx,C=c.sx*this.shy+c.shy*this.sy,T=c.shx*this.sx+c.sy*this.shx,X=c.shx*this.shy+c.sy*this.sy,st=c.tx*this.sx+c.ty*this.shx+this.tx,yt=c.tx*this.shy+c.ty*this.sy+this.ty;return new Tt(b,C,T,X,st,yt)},Tt.prototype.decompose=function(){var c=this.sx,b=this.shy,C=this.shx,T=this.sy,X=this.tx,st=this.ty,yt=Math.sqrt(c*c+b*b),jt=(c/=yt)*C+(b/=yt)*T;C-=c*jt,T-=b*jt;var qt=Math.sqrt(C*C+T*T);return jt/=qt,c*(T/=qt)>16&255,T=qt>>8&255,X=255&qt}if(T===void 0||st===void 0&&C===T&&T===X)if(typeof C=="string")b=C+" "+yt[0];else switch(c.precision){case 2:b=dt(C/255)+" "+yt[0];break;case 3:default:b=F(C/255)+" "+yt[0]}else if(st===void 0||de(st)==="object"){if(st&&!isNaN(st.a)&&st.a===0)return b=["1.","1.","1.",yt[1]].join(" ");if(typeof C=="string")b=[C,T,X,yt[1]].join(" ");else switch(c.precision){case 2:b=[dt(C/255),dt(T/255),dt(X/255),yt[1]].join(" ");break;default:case 3:b=[F(C/255),F(T/255),F(X/255),yt[1]].join(" ")}}else if(typeof C=="string")b=[C,T,X,st,yt[2]].join(" ");else switch(c.precision){case 2:b=[dt(C),dt(T),dt(X),dt(st),yt[2]].join(" ");break;case 3:default:b=[F(C),F(T),F(X),F(st),yt[2]].join(" ")}return b},Yn=p.__private__.getFilters=function(){return u},bn=p.__private__.putStream=function(c){var b=(c=c||{}).data||"",C=c.filters||Yn(),T=c.alreadyAppliedFilters||[],X=c.addLength1||!1,st=b.length,yt=c.objectId,jt=function(Xe){return Xe};if(v!==null&&yt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");v!==null&&(jt=Je.encryptor(yt,0));var qt={};C===!0&&(C=["FlateEncode"]);var $t=c.additionalKeyValues||[],Qt=(qt=zt.API.processDataByFilters!==void 0?zt.API.processDataByFilters(b,C):{data:b,reverseChain:[]}).reverseChain+(Array.isArray(T)?T.join(" "):T.toString());if(qt.data.length!==0&&($t.push({key:"Length",value:qt.data.length}),X===!0&&$t.push({key:"Length1",value:st})),Qt.length!=0)if(Qt.split("/").length-1==1)$t.push({key:"Filter",value:Qt});else{$t.push({key:"Filter",value:"["+Qt+"]"});for(var ie=0;ie<$t.length;ie+=1)if($t[ie].key==="DecodeParms"){for(var Le=[],Se=0;Se>"),qt.data.length!==0&&(D("stream"),D(jt(qt.data)),D("endstream"))},Jn=p.__private__.putPage=function(c){var b=c.number,C=c.data,T=c.objId,X=c.contentsObjId;fn(T,!0),D("<>"),D("endobj");var st=C.join(` `);return J===O.ADVANCED&&(st+=` Q`),fn(X,!0),bn({data:st,filters:Yn(),objectId:X}),D("endobj"),T},Tr=p.__private__.putPages=function(){var c,b,C=[];for(c=1;c<=_e;c++)Yt[c].objId=Me(),Yt[c].contentsObjId=Me();for(c=1;c<=_e;c++)C.push(Jn({number:c,data:Nt[c],objId:Yt[c].objId,contentsObjId:Yt[c].contentsObjId,mediaBox:Yt[c].mediaBox,cropBox:Yt[c].cropBox,bleedBox:Yt[c].bleedBox,trimBox:Yt[c].trimBox,artBox:Yt[c].artBox,userUnit:Yt[c].userUnit,rootDictionaryObjId:ir,resourceDictionaryObjId:Pn}));fn(ir,!0),D("<>"),D("endobj"),le.publish("postPutPages")},ti=function(c){le.publish("putFont",{font:c,out:D,newObject:qe,putStream:bn}),c.isAlreadyPutted!==!0&&(c.objectNumber=qe(),D("<<"),D("/Type /Font"),D("/BaseFont /"+Fi(c.postScriptName)),D("/Subtype /Type1"),typeof c.encoding=="string"&&D("/Encoding /"+c.encoding),D("/FirstChar 32"),D("/LastChar 255"),D(">>"),D("endobj"))},ei=function(){for(var c in me)me.hasOwnProperty(c)&&(N===!1||N===!0&&S.hasOwnProperty(c))&&ti(me[c])},ni=function(c){c.objectNumber=qe();var b=[];b.push({key:"Type",value:"/XObject"}),b.push({key:"Subtype",value:"/Form"}),b.push({key:"BBox",value:"["+[tt(c.x),tt(c.y),tt(c.x+c.width),tt(c.y+c.height)].join(" ")+"]"}),b.push({key:"Matrix",value:"["+c.matrix.toString()+"]"});var C=c.pages[1].join(` `);bn({data:C,additionalKeyValues:b,objectId:c.objectNumber}),D("endobj")},ri=function(){for(var c in Ve)Ve.hasOwnProperty(c)&&ni(Ve[c])},wa=function(c,b){var C,T=[],X=1/(b-1);for(C=0;C<1;C+=X)T.push(C);if(T.push(1),c[0].offset!=0){var st={offset:0,color:c[0].color};c.unshift(st)}if(c[c.length-1].offset!=1){var yt={offset:1,color:c[c.length-1].color};c.push(yt)}for(var jt="",qt=0,$t=0;$tc[qt+1].offset;)qt++;var Qt=c[qt].offset,ie=(C-Qt)/(c[qt+1].offset-Qt),Le=c[qt].color,Se=c[qt+1].color;jt+=W(Math.round((1-ie)*Le[0]+ie*Se[0]).toString(16))+W(Math.round((1-ie)*Le[1]+ie*Se[1]).toString(16))+W(Math.round((1-ie)*Le[2]+ie*Se[2]).toString(16))}return jt.trim()},Lo=function(c,b){b||(b=21);var C=qe(),T=wa(c.colors,b),X=[];X.push({key:"FunctionType",value:"0"}),X.push({key:"Domain",value:"[0.0 1.0]"}),X.push({key:"Size",value:"["+b+"]"}),X.push({key:"BitsPerSample",value:"8"}),X.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),X.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),bn({data:T,additionalKeyValues:X,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:C}),D("endobj"),c.objectNumber=qe(),D("<< /ShadingType "+c.type),D("/ColorSpace /DeviceRGB");var st="/Coords ["+tt(parseFloat(c.coords[0]))+" "+tt(parseFloat(c.coords[1]))+" ";c.type===2?st+=tt(parseFloat(c.coords[2]))+" "+tt(parseFloat(c.coords[3])):st+=tt(parseFloat(c.coords[2]))+" "+tt(parseFloat(c.coords[3]))+" "+tt(parseFloat(c.coords[4]))+" "+tt(parseFloat(c.coords[5])),D(st+="]"),c.matrix&&D("/Matrix ["+c.matrix.toString()+"]"),D("/Function "+C+" 0 R"),D("/Extend [true true]"),D(">>"),D("endobj")},xo=function(c,b){var C=Me(),T=qe();b.push({resourcesOid:C,objectOid:T}),c.objectNumber=T;var X=[];X.push({key:"Type",value:"/Pattern"}),X.push({key:"PatternType",value:"1"}),X.push({key:"PaintType",value:"1"}),X.push({key:"TilingType",value:"1"}),X.push({key:"BBox",value:"["+c.boundingBox.map(tt).join(" ")+"]"}),X.push({key:"XStep",value:tt(c.xStep)}),X.push({key:"YStep",value:tt(c.yStep)}),X.push({key:"Resources",value:C+" 0 R"}),c.matrix&&X.push({key:"Matrix",value:"["+c.matrix.toString()+"]"}),bn({data:c.stream,additionalKeyValues:X,objectId:c.objectNumber}),D("endobj")},ii=function(c){var b;for(b in ue)ue.hasOwnProperty(b)&&(ue[b]instanceof Xr?Lo(ue[b]):ue[b]instanceof Ci&&xo(ue[b],c))},ya=function(c){for(var b in c.objectNumber=qe(),D("<<"),c)switch(b){case"opacity":D("/ca "+dt(c[b]));break;case"stroke-opacity":D("/CA "+dt(c[b]))}D(">>"),D("endobj")},_o=function(){var c;for(c in xe)xe.hasOwnProperty(c)&&ya(xe[c])},Ei=function(){for(var c in D("/XObject <<"),Ve)Ve.hasOwnProperty(c)&&Ve[c].objectNumber>=0&&D("/"+c+" "+Ve[c].objectNumber+" 0 R");le.publish("putXobjectDict"),D(">>")},So=function(){Je.oid=qe(),D("<<"),D("/Filter /Standard"),D("/V "+Je.v),D("/R "+Je.r),D("/U <"+Je.toHexString(Je.U)+">"),D("/O <"+Je.toHexString(Je.O)+">"),D("/P "+Je.P),D(">>"),D("endobj")},Aa=function(){for(var c in D("/Font <<"),me)me.hasOwnProperty(c)&&(N===!1||N===!0&&S.hasOwnProperty(c))&&D("/"+c+" "+me[c].objectNumber+" 0 R");D(">>")},Po=function(){if(Object.keys(ue).length>0){for(var c in D("/Shading <<"),ue)ue.hasOwnProperty(c)&&ue[c]instanceof Xr&&ue[c].objectNumber>=0&&D("/"+c+" "+ue[c].objectNumber+" 0 R");le.publish("putShadingPatternDict"),D(">>")}},ai=function(c){if(Object.keys(ue).length>0){for(var b in D("/Pattern <<"),ue)ue.hasOwnProperty(b)&&ue[b]instanceof p.TilingPattern&&ue[b].objectNumber>=0&&ue[b].objectNumber>")}},ko=function(){if(Object.keys(xe).length>0){var c;for(c in D("/ExtGState <<"),xe)xe.hasOwnProperty(c)&&xe[c].objectNumber>=0&&D("/"+c+" "+xe[c].objectNumber+" 0 R");le.publish("putGStateDict"),D(">>")}},Ie=function(c){fn(c.resourcesOid,!0),D("<<"),D("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Aa(),Po(),ai(c.objectOid),ko(),Ei(),D(">>"),D("endobj")},Na=function(){var c=[];ei(),_o(),ri(),ii(c),le.publish("putResources"),c.forEach(Ie),Ie({resourcesOid:Pn,objectOid:Number.MAX_SAFE_INTEGER}),le.publish("postPutResources")},La=function(){le.publish("putAdditionalObjects");for(var c=0;c>8&&(qt=!0);c=jt.join("")}for(C=c.length;qt===void 0&&C!==0;)c.charCodeAt(C-1)>>8&&(qt=!0),C--;if(!qt)return c;for(jt=b.noBOM?[]:[254,255],C=0,T=c.length;C>8)>>8)throw new Error("Character at position "+C+" of string '"+c+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");jt.push(Qt),jt.push($t-(Qt<<8))}return String.fromCharCode.apply(void 0,jt)},on=p.__private__.pdfEscape=p.pdfEscape=function(c,b){return oi(c,b).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},qi=p.__private__.beginPage=function(c){Nt[++_e]=[],Yt[_e]={objId:0,contentsObjId:0,userUnit:Number(h),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(c[0]),topRightY:Number(c[1])}},Sa(_e),ct(Nt[j])},_a=function(c,b){var C,T,X;switch(n=b||n,typeof c=="string"&&(C=_(c.toLowerCase()),Array.isArray(C)&&(T=C[0],X=C[1])),Array.isArray(c)&&(T=c[0]*Ft,X=c[1]*Ft),isNaN(T)&&(T=s[0],X=s[1]),(T>14400||X>14400)&&(be.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),T=Math.min(14400,T),X=Math.min(14400,X)),s=[T,X],n.substr(0,1)){case"l":X>T&&(s=[X,T]);break;case"p":T>X&&(s=[X,T])}qi(s),ja(Ui),D(Cn),Wi!==0&&D(Wi+" J"),Vi!==0&&D(Vi+" j"),le.publish("addPage",{pageNumber:_e})},Fo=function(c){c>0&&c<=_e&&(Nt.splice(c,1),Yt.splice(c,1),_e--,j>_e&&(j=_e),this.setPage(j))},Sa=function(c){c>0&&c<=_e&&(j=c)},Co=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return Nt.length-1},Pa=function(c,b,C){var T,X=void 0;return C=C||{},c=c!==void 0?c:me[ee].fontName,b=b!==void 0?b:me[ee].fontStyle,T=c.toLowerCase(),Ne[T]!==void 0&&Ne[T][b]!==void 0?X=Ne[T][b]:Ne[c]!==void 0&&Ne[c][b]!==void 0?X=Ne[c][b]:C.disableWarning===!1&&be.warn("Unable to look up font label for font '"+c+"', '"+b+"'. Refer to getFontList() for available fonts."),X||C.noFallback||(X=Ne.times[b])==null&&(X=Ne.times.normal),X},jo=p.__private__.putInfo=function(){var c=qe(),b=function(T){return T};for(var C in v!==null&&(b=Je.encryptor(c,0)),D("<<"),D("/Producer ("+on(b("jsPDF "+zt.version))+")"),Wt)Wt.hasOwnProperty(C)&&Wt[C]&&D("/"+C.substr(0,1).toUpperCase()+C.substr(1)+" ("+on(b(Wt[C]))+")");D("/CreationDate ("+on(b(at))+")"),D(">>"),D("endobj")},Ri=p.__private__.putCatalog=function(c){var b=(c=c||{}).rootDictionaryObjId||ir;switch(qe(),D("<<"),D("/Type /Catalog"),D("/Pages "+b+" 0 R"),It||(It="fullwidth"),It){case"fullwidth":D("/OpenAction [3 0 R /FitH null]");break;case"fullheight":D("/OpenAction [3 0 R /FitV null]");break;case"fullpage":D("/OpenAction [3 0 R /Fit]");break;case"original":D("/OpenAction [3 0 R /XYZ null null 1]");break;default:var C=""+It;C.substr(C.length-1)==="%"&&(It=parseInt(It)/100),typeof It=="number"&&D("/OpenAction [3 0 R /XYZ null null "+dt(It)+"]")}switch(te||(te="continuous"),te){case"continuous":D("/PageLayout /OneColumn");break;case"single":D("/PageLayout /SinglePage");break;case"two":case"twoleft":D("/PageLayout /TwoColumnLeft");break;case"tworight":D("/PageLayout /TwoColumnRight")}Gt&&D("/PageMode /"+Gt),le.publish("putCatalog"),D(">>"),D("endobj")},Oo=p.__private__.putTrailer=function(){D("trailer"),D("<<"),D("/Size "+(Y+1)),D("/Root "+Y+" 0 R"),D("/Info "+(Y-1)+" 0 R"),v!==null&&D("/Encrypt "+Je.oid+" 0 R"),D("/ID [ <"+nt+"> <"+nt+"> ]"),D(">>")},Mo=p.__private__.putHeader=function(){D("%PDF-"+M),D("%\xBA\xDF\xAC\xE0")},Bo=p.__private__.putXRef=function(){var c="0000000000";D("xref"),D("0 "+(Y+1)),D("0000000000 65535 f ");for(var b=1;b<=Y;b++)typeof Q[b]=="function"?D((c+Q[b]()).slice(-10)+" 00000 n "):Q[b]!==void 0?D((c+Q[b]).slice(-10)+" 00000 n "):D("0000000000 00000 n ")},ar=p.__private__.buildDocument=function(){Ut(),ct(et),le.publish("buildDocument"),Mo(),Tr(),La(),Na(),v!==null&&So(),jo(),Ri();var c=rt;return Bo(),Oo(),D("startxref"),D(""+c),D("%%EOF"),ct(Nt[j]),et.join(` `)},si=p.__private__.getBlob=function(c){return new Blob([Et(c)],{type:"application/pdf"})},ci=p.output=p.__private__.output=Fn(function(c,b){switch(typeof(b=b||{})=="string"?b={filename:b}:b.filename=b.filename||"generated.pdf",c){case void 0:return ar();case"save":p.save(b.filename);break;case"arraybuffer":return Et(ar());case"blob":return si(ar());case"bloburi":case"bloburl":if(Ht.URL!==void 0&&typeof Ht.URL.createObjectURL=="function")return Ht.URL&&Ht.URL.createObjectURL(si(ar()))||void 0;be.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var C="",T=ar();try{C=Es(T)}catch{C=Es(unescape(encodeURIComponent(T)))}return"data:application/pdf;filename="+b.filename+";base64,"+C;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Ht)==="[object Window]"){var X="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",st=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';b.pdfObjectUrl&&(X=b.pdfObjectUrl,st="");var yt='