/*! For license information please see 7164.js.LICENSE.txt */ (globalThis.webpackChunkb_blocks=globalThis.webpackChunkb_blocks||[]).push([[7164],{7164(t){var e;Object("undefined"!=typeof self?self:this),e=()=>(()=>{var t={7133(t,e,n){"use strict";n.d(e,{default:()=>oe}),n(187);var r=n(1771);function i(t){return"string"==typeof t||t instanceof String}function s(t){return("number"==typeof t||t instanceof Number)&&!Number.isNaN(t)}function o(t){return!(!s(t)||!Number.isInteger(t)||t<=0)}function a(t){return null!==t&&!Array.isArray(t)&&!i(t)&&!s(t)&&"object"==typeof t}function l(t){return a(t)&&0===Object.keys(t).length}function h(t){return null!=t}var u=n(783).Buffer;class c extends r.A{constructor(t,e,n,r,i,s,o){void 0===t&&(t={}),void 0===e&&(e={}),void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i={}),void 0===s&&(s=null),void 0===o&&(o=void 0),super(i),this.fonts={},this.fontCache={};for(let e in t)if(t.hasOwnProperty(e)){let n=t[e];this.fonts[e]={normal:n.normal,bold:n.bold,italics:n.italics,bolditalics:n.bolditalics}}this.patterns={};for(let t in n)if(n.hasOwnProperty(t)){let e=n[t];this.patterns[t]=this.pattern(e.boundingBox,e.xStep,e.yStep,e.pattern,e.colored)}this.images=e,this.attachments=r,this.virtualfs=s,this.localAccessPolicy=o}getFontType(t,e){return((t,e)=>{let n="normal";return t&&e?n="bolditalics":t?n="bold":e&&(n="italics"),n})(t,e)}getFontFile(t,e,n){let r=this.getFontType(e,n);return this.fonts[t]&&this.fonts[t][r]?this.fonts[t][r]:null}provideFont(t,e,n){let r=this.getFontType(e,n);if(null===this.getFontFile(t,e,n))throw new Error(`Font '${t}' in style '${r}' is not defined in the font section of the document definition.`);if(this.fontCache[t]=this.fontCache[t]||{},!this.fontCache[t][r]){let e=this.fonts[t][r];Array.isArray(e)||(e=[e]),this.virtualfs&&this.virtualfs.existsSync(e[0])?e[0]=this.virtualfs.readFileSync(e[0]):this.validateLocalFile(e[0]),this.fontCache[t][r]=this.font(...e)._font}return this.fontCache[t][r]}provideImage(t){if(this._imageRegistry[t])return this._imageRegistry[t];let e,n=(t=>{let e=this.images[t];if(!e)return t;if(this.virtualfs&&this.virtualfs.existsSync(e))return this.virtualfs.readFileSync(e);let n=e.indexOf("base64,");return n<0?this.images[t]:u.from(e.substring(n+7),"base64")})(t);this.validateLocalFile(n);try{if(e=this.openImage(n),!e)throw new Error("No image")}catch(t){throw new Error(`Invalid image: ${t.toString()}\nImages dictionary should contain dataURL entries (or local file paths in node.js)`,{cause:t})}return e.embed(this),this._imageRegistry[t]=e,e}providePattern(t){return Array.isArray(t)&&2===t.length?[this.patterns[t[0]],t[1]]:null}provideAttachment(t){const e=t=>{if(!t)throw new Error("No attachment");if(!t.src)throw new Error('The "src" key is required for attachments');return t};if("object"==typeof t)return e(t);let n=e(this.attachments[t]);return this.virtualfs&&this.virtualfs.existsSync(n.src)?this.virtualfs.readFileSync(n.src):(this.validateLocalFile(n.src),n)}resolveColor(t,e){return t=t||e,"function"==typeof this._normalizeColor&&i(t)&&null===this._normalizeColor(t)?e:t}setOpenActionAsPrint(){let t=this.ref({Type:"Action",S:"Named",N:"Print"});this._root.data.OpenAction=t,t.end()}file(t,e){return void 0===e&&(e={}),this.validateLocalFile(t),super.file(t,e)}validateLocalFile(t){if(void 0!==this.localAccessPolicy&&i(t)&&!/^data:/.test(t)&&!0!==this.localAccessPolicy(t))throw new Error(`Access to local file denied by resource access policy: ${t}`)}}const f=c;function d(t,e){return"font"===t?"font":e}function p(t){return JSON.stringify(t,d)}function g(t){if(t.id)return t.id;if(Array.isArray(t.text))for(let e of t.text){let t=g(e);if(t)return t}return null}var y=n(783).Buffer;const m=t=>i(t)?t.replace(/\t/g," "):s(t)||"boolean"==typeof t?t.toString():!h(t)||l(t)?"":t,b=class{preprocessDocument(t){return this.parentNode=null,this.tocs=[],this.nodeReferences=[],this.preprocessNode(t,!0)}preprocessBlock(t){return this.parentNode=null,this.tocs=[],this.nodeReferences=[],this.preprocessNode(t)}preprocessNode(t,e){if(void 0===e&&(e=!1),Array.isArray(t)?t={stack:t}:i(t)||s(t)||"boolean"==typeof t||!h(t)||l(t)?t={text:m(t)}:"text"in t&&(t.text=m(t.text)),t.section){if(!e)throw new Error(`Incorrect document structure, section node is only allowed at the root level of document structure: ${p(t)}`);return this.preprocessSection(t)}if(t.columns)return this.preprocessColumns(t);if(t.stack)return this.preprocessVerticalContainer(t,e);if(t.ul)return this.preprocessList(t);if(t.ol)return this.preprocessList(t);if(t.table)return this.preprocessTable(t);if(void 0!==t.text)return this.preprocessText(t);if(t.toc)return this.preprocessToc(t);if(t.image)return this.preprocessImage(t);if(t.svg)return this.preprocessSVG(t);if(t.canvas)return this.preprocessCanvas(t);if(t.qr)return this.preprocessQr(t);if(t.attachment)return this.preprocessAttachment(t);if(t.pageReference||t.textReference)return this.preprocessText(t);throw new Error(`Unrecognized document structure: ${p(t)}`)}preprocessSection(t){return t.section=this.preprocessNode(t.section),t}preprocessColumns(t){let e=t.columns;for(let t=0,n=e.length;t{t.styleOverrides.push(e)})),t}push(t){this.styleOverrides.push(t)}pop(t){for(void 0===t&&(t=1);t-- >0;)this.styleOverrides.pop()}autopush(t){if(i(t))return 0;if(void 0!==t.section)return 0;let e=[];t.style&&(e=Array.isArray(t.style)?t.style:[t.style]);for(let t=0,n=e.length;t0&&this.pop(n),r}getProperty(t){var e=this;const n=function(t,r,i){if(void 0===i&&(i=new Set),i.has(t))return;i.add(t);const s=e.styleDictionary[t];if(s){if(h(s[r]))return s[r];if(s.extends){let t=Array.isArray(s.extends)?s.extends:[s.extends];for(let e=t.length-1;e>=0;e--){let s=n(t[e],r,i);if(h(s))return s}}}};if(this.styleOverrides)for(let e=this.styleOverrides.length-1;e>=0;e--){let r=this.styleOverrides[e];if(i(r)){let e=n(r,t);if(h(e))return e}else if(h(r[t]))return r[t]}return this.defaultStyle&&this.defaultStyle[t]}static getStyleProperty(t,e,n,r){let i;return h(t[n])?t[n]:e?(e.auto(t,(()=>{i=e.getProperty(n)})),h(i)?i:r):r}static copyStyle(t,e){void 0===t&&(t={}),void 0===e&&(e={});for(let n in t)"text"!=n&&t.hasOwnProperty(n)&&(e[n]=t[n]);return e}}const E=P,T=function(t,e,n){void 0===n&&(n=!1);let r=[];if(t=null==t?"":String(t),e)return r.push({text:t}),r;if(n)return t.split("").map((t=>t.match(/^\n$|^\r$/)?{text:"",lineEnd:!0}:{text:t}));if(0===t.length)return r.push({text:""}),r;let i,s=new w(t),o=0;for(;i=s.nextBreak();){let e=t.slice(o,i.position);i.required||e.match(/\r?\n$|\r$/)?(e=e.replace(/\r?\n$|\r$/,""),r.push({text:e,lineEnd:!0})):r.push({text:e}),o=i.position}return r},O=(t,e)=>{let n=t[0];if(void 0===n)return null;if(e){let t=T(n.text,!1);if(void 0===t[0])return null;n=t[0]}return n.text},I=(t,e)=>{let n=t[t.length-1];if(void 0===n)return null;if(n.lineEnd)return null;if(e){let t=T(n.text,!1);if(void 0===t[t.length-1])return null;n=t[t.length-1]}return n.text},L=class{getBreaks(t,e){let n=[];Array.isArray(t)||(t=[t]);let r=null;for(let i=0,s=t.length;iMath.max(0,t.width-t.leadingCut-t.trailingCut);let r,i=0,s=0,o=(a=t,Array.isArray(a)||(a=[a]),function t(e){return e.reduce(((e,n)=>{let r=Array.isArray(n.text)?t(n.text):n,i=[].concat(r).some(Array.isArray);return e.concat(i?t(r):r)}),[])}(a));var a;let l=(new L).getBreaks(o,e),h=this.measure(l,e);return h.forEach((t=>{i=Math.max(i,n(t)),r||(r={width:0,leadingCut:t.leadingCut,trailingCut:0}),r.width+=t.width,r.trailingCut=t.trailingCut,s=Math.max(s,n(r)),t.lineEnd&&(r=null)})),E.getStyleProperty({},e,"noWrap",!1)&&(i=s),{items:h,minWidth:i,maxWidth:s}}measure(t,e){if(t.length){let n=E.getStyleProperty(t[0],e,"leadingIndent",0);n&&(t[0].leadingCut=-n,t[0].leadingIndent=n)}return t.forEach((t=>{let n=E.getStyleProperty(t,e,"font","Roboto"),r=E.getStyleProperty(t,e,"bold",!1),i=E.getStyleProperty(t,e,"italics",!1);t.font=this.pdfDocument.provideFont(n,r,i),t.alignment=E.getStyleProperty(t,e,"alignment","left"),t.fontSize=E.getStyleProperty(t,e,"fontSize",12),t.fontFeatures=E.getStyleProperty(t,e,"fontFeatures",null),t.characterSpacing=E.getStyleProperty(t,e,"characterSpacing",0),t.color=E.getStyleProperty(t,e,"color","black"),t.decoration=E.getStyleProperty(t,e,"decoration",null),t.decorationColor=E.getStyleProperty(t,e,"decorationColor",null),t.decorationStyle=E.getStyleProperty(t,e,"decorationStyle",null),t.decorationThickness=E.getStyleProperty(t,e,"decorationThickness",null),t.background=E.getStyleProperty(t,e,"background",null),t.link=E.getStyleProperty(t,e,"link",null),t.linkToPage=E.getStyleProperty(t,e,"linkToPage",null),t.linkToDestination=E.getStyleProperty(t,e,"linkToDestination",null),t.noWrap=E.getStyleProperty(t,e,"noWrap",null),t.opacity=E.getStyleProperty(t,e,"opacity",1),t.sup=E.getStyleProperty(t,e,"sup",!1),t.sub=E.getStyleProperty(t,e,"sub",!1),(t.sup||t.sub)&&(t.fontSize*=.58);let s=E.getStyleProperty(t,e,"lineHeight",1);if(t.width=this.widthOfText(t.text,t),t.height=t.font.lineHeight(t.fontSize)*s,t.leadingCut||(t.leadingCut=0),!E.getStyleProperty(t,e,"preserveLeadingSpaces",!1)){let e=t.text.match(B);e&&(t.leadingCut+=this.widthOfText(e[0],t))}if(t.trailingCut=0,!E.getStyleProperty(t,e,"preserveTrailingSpaces",!1)){let e=t.text.match(M);e&&(t.trailingCut=this.widthOfText(e[0],t))}}),this),t}widthOfText(t,e){return e.font.widthOfString(t,e.fontSize,e.fontFeatures)+(e.characterSpacing||0)*(t.length-1)}sizeOfText(t,e){let n=E.getStyleProperty({},e,"font","Roboto"),r=E.getStyleProperty({},e,"fontSize",12),i=E.getStyleProperty({},e,"fontFeatures",null),s=E.getStyleProperty({},e,"bold",!1),o=E.getStyleProperty({},e,"italics",!1),a=E.getStyleProperty({},e,"lineHeight",1),l=E.getStyleProperty({},e,"characterSpacing",0),h=this.pdfDocument.provideFont(n,s,o);return{width:this.widthOfText(t,{font:h,fontSize:r,characterSpacing:l,fontFeatures:i}),height:h.lineHeight(r)*a,fontSize:r,lineHeight:a,ascender:h.ascender/1e3*r,descender:h.descender/1e3*r}}sizeOfRotatedText(t,e,n){let r=e*Math.PI/-180,i=this.sizeOfText(t,n);return{width:Math.abs(i.height*Math.sin(r))+Math.abs(i.width*Math.cos(r)),height:Math.abs(i.width*Math.sin(r))+Math.abs(i.height*Math.cos(r))}}};function R(t){return"auto"===t.width}function N(t){return null===t.width||void 0===t.width||"*"===t.width||"star"===t.width}const F=function(t,e,n,r){void 0===n&&(n=0);let s=[],o=0,a=0,l=[],h=0,u=0,c=[],f=e;t.forEach((t=>{R(t)?(s.push(t),o+=t._minWidth,a+=t._maxWidth):N(t)?(l.push(t),h=Math.max(h,t._minWidth),u=Math.max(u,t._maxWidth)):c.push(t)})),c.forEach(((t,s)=>{if(i(t.width)&&/\d+%/.test(t.width)){let e=0;if(r){const t=r._layout.paddingLeft(s,r),n=r._layout.paddingRight(s,r),i=r._layout.vLineWidth(s,r),o=r._layout.vLineWidth(s+1,r);e=0===s?t+n+i+o/2:s===c.length-1?t+n+i/2+o:t+n+i/2+o/2}const i=f+n;t.width=parseFloat(t.width)*i/100-e}t.width=e)s.forEach((t=>{t._calcWidth=t._minWidth})),l.forEach((t=>{t._calcWidth=h}));else{if(p{t._calcWidth=t._maxWidth,e-=t._calcWidth}));else{let t=e-d,n=p-d;s.forEach((r=>{let i=r._maxWidth-r._minWidth;r._calcWidth=r._minWidth+i*t/n,e-=r._calcWidth}))}if(l.length>0){let t=e/l.length;l.forEach((e=>{e._calcWidth=t}))}}},U=function(t){let e={min:0,max:0},n={min:0,max:0},r=0;for(let i=0,s=t.length;i0,vLineWidth:t=>0,paddingLeft:t=>t?4:0,paddingRight:(t,e)=>t0===t||t===e.table.body.length?0:t===e.table.headerRows?2:0,vLineWidth:t=>0,paddingLeft:t=>0===t?0:8,paddingRight:(t,e)=>t===e.table.widths.length-1?0:8},lightHorizontalLines:{hLineWidth:(t,e)=>0===t||t===e.table.body.length?0:t===e.table.headerRows?2:1,vLineWidth:t=>0,hLineColor:t=>1===t?"black":"#aaa",paddingLeft:t=>0===t?0:8,paddingRight:(t,e)=>t===e.table.widths.length-1?0:8}},W={hLineWidth:(t,e)=>1,vLineWidth:(t,e)=>1,hLineColor:(t,e)=>"black",vLineColor:(t,e)=>"black",hLineStyle:(t,e)=>null,vLineStyle:(t,e)=>null,paddingLeft:(t,e)=>4,paddingRight:(t,e)=>4,paddingTop:(t,e)=>2,paddingBottom:(t,e)=>2,fillColor:(t,e)=>null,fillOpacity:(t,e)=>1,defaultBorder:!0};function j(){let t={};for(let e=0,n=arguments.length;eJSON.parse(JSON.stringify(t))}for(var G=[null,[[10,7,17,13],[1,1,1,1],[]],[[16,10,28,22],[1,1,1,1],[4,16]],[[26,15,22,18],[1,1,2,2],[4,20]],[[18,20,16,26],[2,1,4,2],[4,24]],[[24,26,22,18],[2,1,4,4],[4,28]],[[16,18,28,24],[4,2,4,4],[4,32]],[[18,20,26,18],[4,2,5,6],[4,20,36]],[[22,24,26,22],[4,2,6,6],[4,22,40]],[[22,30,24,20],[5,2,8,8],[4,24,44]],[[26,18,28,24],[5,4,8,8],[4,26,48]],[[30,20,24,28],[5,4,11,8],[4,28,52]],[[22,24,28,26],[8,4,11,10],[4,30,56]],[[22,26,22,24],[9,4,16,12],[4,32,60]],[[24,30,24,20],[9,4,16,16],[4,24,44,64]],[[24,22,24,30],[10,6,18,12],[4,24,46,68]],[[28,24,30,24],[10,6,16,17],[4,24,48,72]],[[28,28,28,28],[11,6,19,16],[4,28,52,76]],[[26,30,28,28],[13,6,21,18],[4,28,54,80]],[[26,28,26,26],[14,7,25,21],[4,28,56,84]],[[26,28,28,30],[16,8,25,20],[4,32,60,88]],[[26,28,30,28],[17,8,25,23],[4,26,48,70,92]],[[28,28,24,30],[17,9,34,23],[4,24,48,72,96]],[[28,30,30,30],[18,9,30,25],[4,28,52,76,100]],[[28,30,30,30],[20,10,32,27],[4,26,52,78,104]],[[28,26,30,30],[21,12,35,29],[4,30,56,82,108]],[[28,28,30,28],[23,12,37,34],[4,28,56,84,112]],[[28,30,30,30],[25,12,40,34],[4,32,60,88,116]],[[28,30,30,30],[26,13,42,35],[4,24,48,72,96,120]],[[28,30,30,30],[28,14,45,38],[4,28,52,76,100,124]],[[28,30,30,30],[29,15,48,40],[4,24,50,76,102,128]],[[28,30,30,30],[31,16,51,43],[4,28,54,80,106,132]],[[28,30,30,30],[33,17,54,45],[4,32,58,84,110,136]],[[28,30,30,30],[35,18,57,48],[4,28,56,84,112,140]],[[28,30,30,30],[37,19,60,51],[4,32,60,88,116,144]],[[28,30,30,30],[38,19,63,53],[4,28,52,76,100,124,148]],[[28,30,30,30],[40,20,66,56],[4,22,48,74,100,126,152]],[[28,30,30,30],[43,21,70,59],[4,26,52,78,104,130,156]],[[28,30,30,30],[45,22,74,62],[4,30,56,82,108,134,160]],[[28,30,30,30],[47,24,77,65],[4,24,52,80,108,136,164]],[[28,30,30,30],[49,25,81,68],[4,28,56,84,112,140,168]]],q=/^\d*$/,X=/^[A-Za-z0-9 $%*+\-./:]*$/,Z=/^[A-Z0-9 $%*+\-./:]*$/,Y=[],K=[-1],J=0,Q=1;J<255;++J)Y.push(Q),K[Q]=J,Q=2*Q^(Q>=128?285:0);var $=[[]];for(J=0;J<30;++J){for(var tt=$[J],et=[],nt=0;nt<=J;++nt){var rt=nt6},lt=function(t,e){var n=-8&function(t){var e=G[t],n=16*t*t+128*t+64;return at(t)&&(n-=36),e[2].length&&(n-=25*e[2].length*e[2].length-10*e[2].length-55),n}(t),r=G[t];return n-8*r[0][e]*r[1][e]},ht=function(t,e){switch(e){case 1:return t<10?10:t<27?12:14;case 2:return t<10?9:t<27?11:13;case 4:return t<10?8:16;case 8:return t<10?8:t<27?10:12}},ut=function(t,e,n){var r=lt(t,n)-4-ht(t,e);switch(e){case 1:return 3*(r/10|0)+(r%10<4?0:r%10<7?1:2);case 2:return 2*(r/11|0)+(r%11<6?0:1);case 4:return r/8|0;case 8:return r/13|0}},ct=function(t,e){for(var n=t.slice(0),r=t.length,i=e.length,s=0;s=0)for(var a=0;a=0;--s)i>>r+s&1&&(i^=n<>o&1}return t},gt=function(t){for(var e=function(t){for(var e=0,n=0;n=5&&(e+=t[n]-5+3);for(n=5;n=4*r||t[n+1]>=4*r)&&(e+=40)}return e},n=t.length,r=0,i=0,s=0;s>6,128|63&i):i<65536?n.push(224|i>>12,128|i>>6&63,128|63&i):n.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i)}return n}return e}}(i,t),null===t)throw"invalid data format";if(r<0||r>3)throw"invalid ECC level";if(n<0){for(n=1;n<=40&&!(t.length<=ut(n,i,r));++n);if(n>40)throw"too large data for the Qr format"}else if(n<1||n>40)throw"invalid Qr version! should be between 1 and 40";if(-1!=s&&(s<0||s>8))throw"invalid mask";return function(t,e,n,r,i){var s=G[e],o=function(t,e,n,r){var i=[],s=0,o=8,a=n.length,l=function(t,e){if(e>=o){for(i.push(s|t>>(e-=o));e>=8;)i.push(t>>(e-=8)&255);s=0,o=8}e>0&&(s|=(t&(1<>3);o=function(t,e,n){for(var r=[],i=t.length/e|0,s=0,o=e-t.length%e,a=0;a>l&1,i[t+a][e+l]=1};for(o(0,0,9,9,[127,65,93,93,93,65,383,0,64]),o(n-8,0,8,9,[256,127,65,93,93,93,65,127]),o(0,n-8,9,8,[254,130,186,186,186,130,254,0,0]),s=9;s>f++&1,i[s][n-11+u]=i[n-11+u][s]=1}return{matrix:r,reserved:i}}(e),l=a.matrix,h=a.reserved;if(function(t,e,n){for(var r=t.length,i=0,s=-1,o=r-1;o>=0;o-=2){6==o&&--o;for(var a=s<0?r-1:0,l=0;lo-2;--h)e[a][h]||(t[a][h]=n[i>>3]>>(7&~i)&1,++i);a+=s}s=-s}}(l,h,o),i<0){dt(l,h,0),pt(l,0,r,0);var u=0,c=gt(l);for(dt(l,h,0),i=1;i<8;++i){dt(l,h,i),pt(l,0,r,i);var f=gt(l);c>f&&(c=f,u=i),dt(l,h,i)}i=u}return dt(l,h,i),pt(l,0,r,i),l}(t,n,i,r,s)}const mt=function(t){var e=function(t,e){var n=[],r=e.background||"#fff",i=e.foreground||"#000",s=e.padding||0,o=yt(t,e),a=o.length,l=Math.floor(e.fit?e.fit/a:5),h=a*l+l*s*2,u=l*s;n.push({type:"rect",x:0,y:0,w:h,h,lineWidth:0,color:r});for(var c=0;c{if(t._margin=function(t,e){function n(t,e,n){return void 0===n&&(n=0),void 0!==t.marginLeft||void 0!==t.marginTop||void 0!==t.marginRight||void 0!==t.marginBottom?[t.marginLeft??e[0]??n,t.marginTop??e[1]??n,t.marginRight??e[2]??n,t.marginBottom??e[3]??n]:e}function r(t){return s(t)?t=[t,t,t,t]:Array.isArray(t)&&2===t.length&&(t=[t[0],t[1],t[0],t[1]]),t}let o=[void 0,void 0,void 0,void 0];if(t.style){let s=function t(e,s,o){if(void 0===o&&(o=new Set),!(e=Array.isArray(e)?e:[e]).every((t=>i(t))))return{};let a={};for(let i=0;it.fit[0]/t.fit[1]?t.fit[0]/e.width:t.fit[1]/e.height;t._width=t._minWidth=t._maxWidth=e.width*n,t._height=e.height*n}else if(t.cover)t._width=t._minWidth=t._maxWidth=t.cover.width,t._height=t._minHeight=t._maxHeight=t.cover.height;else{let n=s(t.width)?t.width:void 0,r=s(t.height)?t.height:void 0,i=e.width/e.height;t._width=t._minWidth=t._maxWidth=n||(r?r*i:e.width),t._height=r||(n?n/i:e.height),s(t.maxWidth)&&t.maxWidtht._width&&(t._width=t._minWidth=t._maxWidth=t.minWidth,t._height=t._width*e.height/e.width),s(t.minHeight)&&t.minHeight>t._height&&(t._height=t.minHeight,t._width=t._minWidth=t._maxWidth=t._height*e.width/e.height)}t._alignment=this.styleStack.getProperty("alignment")}convertIfBase64Image(t){if(/^data:image\/(jpeg|jpg|png);base64,/.test(t.image)){let e="$$pdfmake$$"+this.autoImageIndex++;this.pdfDocument.images[e]=t.image,t.image=e}}measureImage(t){this.convertIfBase64Image(t);let e=this.pdfDocument.provideImage(t.image),n={width:e.width,height:e.height};return e.orientation>4&&(n={width:e.height,height:e.width}),this.measureImageWithDimensions(t,n),t}measureSVG(t){let e=this.svgMeasure.measureSVG(t.svg);if(this.measureImageWithDimensions(t,e),t.font=this.styleStack.getProperty("font"),!s(t._width)&&!s(t._height))throw new Error("SVG is missing defined width and height.");if(!s(t._width))throw new Error("SVG is missing defined width.");if(!s(t._height))throw new Error("SVG is missing defined height.");return t.svg=this.svgMeasure.writeDimensions(t.svg,{width:t._width,height:t._height}),t}measureLeaf(t){t._textRef&&t._textRef._textNodeRef.text&&(t.text=t._textRef._textNodeRef.text);let e=this.styleStack.clone();e.push(t);let n=this.textInlines.buildInlines(t.text,e);return t._inlines=n.items,t._minWidth=n.minWidth,t._maxWidth=n.maxWidth,t}measureToc(t){if(t.toc.title&&(t.toc.title=this.measureNode(t.toc.title)),t.toc._items.length>0){let e=[],n=t.toc.textStyle||{},r=t.toc.numberStyle||n,i=t.toc.textMargin||[0,0,0,0];"title"===t.toc.sortBy&&t.toc._items.sort(((e,n)=>e._textNodeRef.text.localeCompare(n._textNodeRef.text,t.toc.sortLocale)));for(let s=0,o=t.toc._items.length;s=26?t((e/26|0)-1):"")+"abcdefghijklmnopqrstuvwxyz"[e%26|0]}(t-1)}function o(t){if(t<1||t>4999)return t.toString();let e=t,n={M:1e3,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1},r="";for(let t in n)for(;e>=n[t];)r+=t,e-=n[t];return r}let a;switch(r){case"none":a=null;break;case"upper-alpha":a=s(e).toUpperCase();break;case"lower-alpha":a=s(e);break;case"upper-roman":a=o(e);break;case"lower-roman":a=o(e).toLowerCase();break;default:a=function(t){return t.toString()}(e)}if(null===a)return{};i&&(Array.isArray(i)?(i[0]&&(a=i[0]+a),i[1]&&(a+=i[1]),a+=" "):a+=`${i} `);let l={text:a,color:E.getStyleProperty(t,n,"markerColor",void 0)||n.getProperty("color")||"black"};return{_inlines:this.textInlines.buildInlines(l,n).items}}measureUnorderedList(t){let e=this.styleStack.clone(),n=t.ul;t.type=t.type||"disc",t._gapSize=this.gapSizeForList(),t._minWidth=0,t._maxWidth=0;for(let r=0,i=n.length;r0?e.length-1:0;return t._minWidth=n.min+t._gap*r,t._maxWidth=n.max+t._gap*r,t}measureTable(t){!function(t){if(t.table.widths||(t.table.widths="auto"),i(t.table.widths))for(t.table.widths=[t.table.widths];t.table.widths.length1?(f(i,e,s.colSpan),l.push({col:e,span:s.colSpan,minWidth:s._minWidth,maxWidth:s._maxWidth})):(r._minWidth=Math.max(r._minWidth,s._minWidth),r._maxWidth=Math.max(r._maxWidth,s._maxWidth))),s.rowSpan&&s.rowSpan>1&&d(t.table,n,e,s.rowSpan)}}!function(){let e,n;for(let r=0,i=l.length;r0)for(e=o/i.span,n=0;n0)for(e=a/i.span,n=0;n(a(e)&&(e.fillColor=t.styleStack.getProperty("fillColor"),e.fillOpacity=t.styleStack.getProperty("fillOpacity")),t.measureNode(e))}function c(e,n,r){let i={minWidth:0,maxWidth:0};for(let s=0;s=0;t--)if(this.snapshots[t].snakingColumns)return this.snapshots[t];return null}inSnakingColumns(){return!!this.getSnakingSnapshot()}isInNestedNonSnakingGroup(){for(let t=this.snapshots.length-1;t>=0;t--){let e=this.snapshots[t];if(e.snakingColumns)return!1;if(!e.overflowed)return!0}return!1}beginColumn(t,e,n){let r=this.snapshots[this.snapshots.length-1];if(r&&r.overflowed)for(let t=this.snapshots.length-1;t>=0;t--)if(!this.snapshots[t].overflowed){r=this.snapshots[t];break}this.calculateBottomMost(r,n),this.page=r.page,this.x=this.x+this.lastColumnWidth+(e||0),this.y=r.y,this.availableWidth=t,this.availableHeight=r.availableHeight,this.lastColumnWidth=t}calculateBottomMost(t,e){e?this.saveContextInEndingCell(e):t.bottomMost=xt(this,t.bottomMost)}markEnding(t,e,n){this.page=t._columnEndingContext.page,this.x=t._columnEndingContext.x+e,this.y=t._columnEndingContext.y-n,this.availableWidth=t._columnEndingContext.availableWidth,this.availableHeight=t._columnEndingContext.availableHeight,this.lastColumnWidth=t._columnEndingContext.lastColumnWidth}saveContextInEndingCell(t){t._columnEndingContext={page:this.page,x:this.x,y:this.y,availableHeight:this.availableHeight,availableWidth:this.availableWidth,lastColumnWidth:this.lastColumnWidth}}completeColumnGroup(t,e){let n=this.snapshots.pop(),r=this.y,i=this.page,s=this.availableHeight,o=n.overflowed;for(;n&&n.overflowed;){let t=xt({page:i,y:r,availableHeight:s},n.bottomMost||{});i=t.page,r=t.y,s=t.availableHeight,n=this.snapshots.pop()}if(!n)return{};o&&(i>n.bottomMost.page||i===n.bottomMost.page&&r>n.bottomMost.y)&&(n.bottomMost={x:n.x,y:r,page:i,availableHeight:s,availableWidth:n.availableWidth}),this.calculateBottomMost(n,e),this.x=n.x;let a=n.bottomMost.y;return t&&(n.page===n.bottomMost.page?n.y+t>a&&(a=n.y+t):a+=t),this.y=a,this.page=n.bottomMost.page,this.availableWidth=n.availableWidth,this.availableHeight=n.bottomMost.availableHeight,t&&(this.availableHeight-=a-n.bottomMost.y),t&&n.bottomMost.y-n.y=0&&this.snapshots[t].overflowed;t--)n++;let r=e.columnWidths&&e.columnWidths[n]||this.lastColumnWidth||this.availableWidth,i=e.columnWidths&&e.columnWidths[n+1]||r;this.lastColumnWidth=i;let s=this.x+(r||0)+(e.gap||0),o=e.y;this.snapshots.push({x:s,y:o,availableHeight:e.availableHeight,availableWidth:i,page:this.page,overflowed:!0,bottomMost:{x:s,y:o,availableHeight:e.availableHeight,availableWidth:i,page:this.page},lastColumnWidth:i,snakingColumns:!0,gap:e.gap,columnWidths:e.columnWidths}),this.x=s,this.y=o,this.availableHeight=e.availableHeight,this.availableWidth=i;for(let t=this.snapshots.length-2;t>=0;t--){let n=this.snapshots[t];if(n.overflowed||n.snakingColumns)break;n.x=s,n.y=o,n.page=this.page,n.availableHeight=e.availableHeight,n.bottomMost&&(n.bottomMost.x=s,n.bottomMost.y=o,n.bottomMost.page=this.page,n.bottomMost.availableHeight=e.availableHeight)}return{prevY:t,y:this.y}}resetSnakingColumnsForNewPage(){let t=this.getSnakingSnapshot();if(!t)return;let e=this.pageMargins.top,n=this.getCurrentPage().pageSize.height-this.pageMargins.top-this.pageMargins.bottom,r=t.columnWidths?t.columnWidths[0]:this.lastColumnWidth||this.availableWidth;for(;this.snapshots.length>1&&this.snapshots[this.snapshots.length-1].overflowed;)this.snapshots.pop();this.marginXTopParent?this.x=this.pageMargins.left+this.marginXTopParent[0]:this.x=this.pageMargins.left,this.availableWidth=r,this.lastColumnWidth=r;for(let t=0;t0}initializePage(){this.y=this.pageMargins.top,this.availableHeight=this.getCurrentPage().pageSize.height-this.pageMargins.top-this.pageMargins.bottom;const t=this.pageSnapshot(),e=t.pageCtx,n=t.isSnapshot;e.availableWidth=this.getCurrentPage().pageSize.width-this.pageMargins.left-this.pageMargins.right,n&&this.marginXTopParent&&(e.availableWidth-=this.marginXTopParent[0],e.availableWidth-=this.marginXTopParent[1])}pageSnapshot(){return this.snapshots[0]?{pageCtx:this.snapshots[0],isSnapshot:!0}:{pageCtx:this,isSnapshot:!1}}moveTo(t,e){null!=t&&(this.x=t,this.availableWidth=this.getCurrentPage().pageSize.width-this.x-this.pageMargins.right),null!=e&&(this.y=e,this.availableHeight=this.getCurrentPage().pageSize.height-this.y-this.pageMargins.bottom)}moveToRelative(t,e){null!=t&&(this.x=this.x+t),null!=e&&(this.y=this.y+e)}beginDetachedBlock(){this.snapshots.push({x:this.x,y:this.y,availableHeight:this.availableHeight,availableWidth:this.availableWidth,page:this.page,lastColumnWidth:this.lastColumnWidth})}endDetachedBlock(){let t=this.snapshots.pop();this.x=t.x,this.y=t.y,this.availableWidth=t.availableWidth,this.availableHeight=t.availableHeight,this.page=t.page,this.lastColumnWidth=t.lastColumnWidth}moveToNextPage(t){let e=this.page+1,n=this.page,r=this.y;if(this.snapshots.length>0){let t=this.snapshots[this.snapshots.length-1];t.bottomMost&&t.bottomMost.y&&(r=Math.max(this.y,t.bottomMost.y))}let i=e>=this.pages.length;if(i){let e=this.availableWidth,n=this.getCurrentPage().pageSize.orientation,r=At(this.getCurrentPage(),t);this.addPage(r,null,this.getCurrentPage().customProperties),n===r.orientation&&(this.availableWidth=e)}else this.page=e,this.initializePage();return{newPageCreated:i,prevPage:n,prevY:r,y:this.y}}addPage(t,e,n){void 0===e&&(e=null),void 0===n&&(n={}),null!==e&&(this.pageMargins=e,this.x=e.left,this.availableWidth=t.width-e.left-e.right);let r={items:[],pageSize:t,pageMargins:this.pageMargins,customProperties:n};return this.pages.push(r),this.backgroundLength.push(0),this.page=this.pages.length-1,this.initializePage(),this.emit("pageAdded",r),r}getCurrentPage(){return this.page<0||this.page>=this.pages.length?null:this.pages[this.page]}getCurrentPosition(){let t=this.getCurrentPage().pageSize,e=t.height-this.pageMargins.top-this.pageMargins.bottom,n=t.width-this.pageMargins.left-this.pageMargins.right;return{pageNumber:this.page+1,pageOrientation:t.orientation,pageInnerHeight:e,pageInnerWidth:n,left:this.x,top:this.y,verticalRatio:(this.y-this.pageMargins.top)/e,horizontalRatio:(this.x-this.pageMargins.left)/n}}}const At=(t,e)=>{var n,r;return n=e,r=t.pageSize.orientation,(e=void 0===n?r:i(n)&&"landscape"===n.toLowerCase()?"landscape":"portrait")!==t.pageSize.orientation?{orientation:e,width:t.pageSize.height,height:t.pageSize.width}:{orientation:t.pageSize.orientation,width:t.pageSize.width,height:t.pageSize.height}};function xt(t,e){let n;return n=t.page>e.page?t:e.page>t.page?e:t.y>e.y?t:e,{page:n.page,x:n.x,y:n.y,availableHeight:n.availableHeight,availableWidth:n.availableWidth}}const St=vt;class _t extends wt.EventEmitter{constructor(t){super(),this._context=t,this.contextStack=[]}context(){return this._context}addLine(t,e,n){let r=t.getHeight(),i=this.context(),s=i.getCurrentPage(),o=this.getCurrentPositionOnPage();return!(i.availableHeight0&&t.inlines[0].alignment,i=0;switch(r){case"right":i=e-n;break;case"center":i=(e-n)/2}if(i&&(t.x=(t.x||0)+i),"justify"===r&&!t.newLineForced&&!t.lastLineInParagraph&&t.inlines.length>1){let r=(e-n)/(t.inlines.length-1);for(let e=1,n=t.inlines.length;e0)&&(void 0===t._x&&(t._x=t.x||0),t.x=n.x+t._x,t.y=n.y,this.alignImage(t),Ct(r,{type:"image",item:t},e),n.moveDown(t._height),i)}addCanvas(t,e){let n=this.context(),r=n.getCurrentPage(),i=[],s=t._minHeight;return!(!r||void 0===t.absolutePosition&&n.availableHeight0)&&(void 0===t._x&&(t._x=t.x||0),t.x=n.x+t._x,t.y=n.y,this.alignImage(t),Ct(r,{type:"svg",item:t},e),n.moveDown(t._height),i)}addQr(t,e){let n=this.context(),r=n.getCurrentPage(),i=this.getCurrentPositionOnPage();if(!r||void 0===t.absolutePosition&&n.availableHeight0)&&(void 0===t._x&&(t._x=t.x||0),t.x=n.x+t._x,t.y=n.y,Ct(r,{type:"attachment",item:t},e),n.moveDown(t._height),i)}alignImage(t){let e=this.context().availableWidth,n=t._minWidth,r=0;switch(t._alignment){case"right":r=e-n;break;case"center":r=(e-n)/2}r&&(t.x=(t.x||0)+r)}alignCanvas(t){let e=this.context().availableWidth,n=t._minWidth,r=0;switch(t._alignment){case"right":r=e-n;break;case"center":r=(e-n)/2}r&&t.canvas.forEach((t=>{V(t,r,0)}))}addVector(t,e,n,r,i){let o=this.context(),a=o.getCurrentPage();s(i)&&(a=o.pages[i]);let l=this.getCurrentPositionOnPage();if(a)return V(t,e?0:o.x,n?0:o.y),Ct(a,{type:"vector",item:t},r),l}beginClip(t,e){let n=this.context();return n.getCurrentPage().items.push({type:"beginClip",item:{x:n.x,y:n.y,width:t,height:e}}),!0}endClip(){return this.context().getCurrentPage().items.push({type:"endClip"}),!0}beginVerticalAlignment(t){let e={type:"beginVerticalAlignment",item:{verticalAlignment:t}};return this.context().getCurrentPage().items.push(e),e}endVerticalAlignment(t){let e={type:"endVerticalAlignment",item:{verticalAlignment:t}};return this.context().getCurrentPage().items.push(e),e}addFragment(t,e,n,r){let i=this.context(),s=i.getCurrentPage();return!(!e&&t.height>i.availableHeight||(t.items.forEach((r=>{switch(r.type){case"line":var o=r.item.clone();o._node&&(o._node.positions[0].pageNumber=i.page+1),o.x=(o.x||0)+(e?t.xOffset||0:i.x),o.y=(o.y||0)+(n?t.yOffset||0:i.y),s.items.push({type:"line",item:o});break;case"vector":var a=j(r.item);if(V(a,e?t.xOffset||0:i.x,n?t.yOffset||0:i.y),a._isFillColorFromUnbreakable){delete a._isFillColorFromUnbreakable;const t=i.backgroundLength[i.page];s.items.splice(t,0,{type:"vector",item:a})}else s.items.push({type:"vector",item:a});break;case"image":case"svg":case"beginClip":case"endClip":case"beginVerticalAlignment":case"endVerticalAlignment":var l=j(r.item);l.x=(l.x||0)+(e?t.xOffset||0:i.x),l.y=(l.y||0)+(n?t.yOffset||0:i.y),s.items.push({type:r.type,item:l})}})),r||i.moveDown(t.height),0))}pushContext(t,e){if(void 0===t&&(e=this.context().getCurrentPage().height-this.context().pageMargins.top-this.context().pageMargins.bottom,t=this.context().availableWidth),s(t)){let n=t;(t=new St).addPage({width:n,height:e},{left:0,right:0,top:0,bottom:0})}this.contextStack.push(this.context()),this._context=t}popContext(){this._context=this.contextStack.pop()}getCurrentPositionOnPage(){return(this.contextStack[0]||this.context()).getCurrentPosition()}}function Ct(t,e,n){null==n||n<0||n>t.items.length?t.items.push(e):t.items.splice(n,0,e)}const kt=_t,Pt={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],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],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],EXECUTIVE:[521.86,756],FOLIO:[612,936],LEGAL:[612,1008],LETTER:[612,792],TABLOID:[792,1224]};function Et(t,e){t&&"auto"===t.height&&(t.height=1/0);let n=function(t){if(i(t)){let e=Pt[t.toUpperCase()];if(!e)throw new Error(`Page size ${t} not recognized`);return{width:e[0],height:e[1]}}return t}(t||"A4");return function(t){return!!i(t)&&("portrait"===(t=t.toLowerCase())&&n.width>n.height||"landscape"===t&&n.widthn.height?"landscape":"portrait",n}function Tt(t){if(s(t))t={left:t,right:t,top:t,bottom:t};else if(Array.isArray(t))if(2===t.length)t={left:t[0],top:t[1],right:t[0],bottom:t[1]};else{if(4!==t.length)throw new Error("Invalid pageMargins definition");t={left:t[0],top:t[1],right:t[2],bottom:t[3]}}return t}const Ot=class extends kt{constructor(t){super(t),this.transactionLevel=0,this.repeatables=[]}addLine(t,e,n){return this._fitOnPage((()=>super.addLine(t,e,n)))}addImage(t,e){return this._fitOnPage((()=>super.addImage(t,e)))}addCanvas(t,e){return this._fitOnPage((()=>super.addCanvas(t,e)))}addSVG(t,e){return this._fitOnPage((()=>super.addSVG(t,e)))}addQr(t,e){return this._fitOnPage((()=>super.addQr(t,e)))}addAttachment(t,e){return this._fitOnPage((()=>super.addAttachment(t,e)))}addVector(t,e,n,r,i){return super.addVector(t,e,n,r,i)}beginClip(t,e){return super.beginClip(t,e)}endClip(){return super.endClip()}beginVerticalAlignment(t){return super.beginVerticalAlignment(t)}endVerticalAlignment(t){return super.endVerticalAlignment(t)}addFragment(t,e,n,r){return this._fitOnPage((()=>super.addFragment(t,e,n,r)))}moveToNextPage(t){let e=this.context().moveToNextPage(t);this.repeatables.forEach((function(t){void 0===t.insertedOnPages[this.context().page]?(t.insertedOnPages[this.context().page]=!0,this.addFragment(t,!0)):this.context().moveDown(t.height)}),this),this.emit("pageChanged",{prevPage:e.prevPage,prevY:e.prevY,y:this.context().y})}addPage(t,e,n,r){void 0===r&&(r={});let i=this.page,s=this.y;this.context().addPage(Et(t,e),Tt(n),r),this.emit("pageChanged",{prevPage:i,prevY:s,y:this.context().y})}beginUnbreakableBlock(t,e){0==this.transactionLevel++&&(this.originalX=this.context().x,this.pushContext(t,e))}commitUnbreakableBlock(t,e){if(0==--this.transactionLevel){let n=this.context();this.popContext();let r=n.pages.length;if(r>0){let i=n.pages[0];if(i.xOffset=t,i.yOffset=e,r>1)if(void 0!==t||void 0!==e)i.height=n.getCurrentPage().pageSize.height-n.pageMargins.top-n.pageMargins.bottom;else{i.height=this.context().getCurrentPage().pageSize.height-this.context().pageMargins.top-this.context().pageMargins.bottom;for(let t=0,e=this.repeatables.length;t{e.items.push(t)})),e.xOffset=this.originalX,e.height=t.y,e.insertedOnPages=[],e}pushToRepeatables(t){this.repeatables.push(t)}popFromRepeatables(){this.repeatables.pop()}moveToNextColumn(){let t=this.context().moveToNextColumn();this.repeatables.forEach((function(t){this.addFragment(t,!1)}),this),this.emit("columnChanged",{prevY:t.prevY,y:this.context().y})}canMoveToNextColumn(){let t=this.context(),e=t.getSnakingSnapshot();if(e){for(let e=t.snapshots.length-1;e>=0;e--){let n=t.snapshots[e];if(n.snakingColumns)break;if(!n.overflowed)return!1}let n=0;for(let e=t.snapshots.length-1;e>=0&&t.snapshots[e].overflowed;e--)n++;if(e.columnWidths&&n>=e.columnWidths.length-1)return!1;let r=t.availableWidth||t.lastColumnWidth||0,i=e.columnWidths?e.columnWidths[n+1]:r,s=t.x+r+(e.gap||0),o=t.getCurrentPage();return s+i<=o.pageSize.width-(o.pageMargins?o.pageMargins.right:0)-(t.marginXTopParent?t.marginXTopParent[1]:0)+1}return!1}_fitOnPage(t){let e=t();if(!e&&(this.canMoveToNextColumn()&&(this.moveToNextColumn(),e=t()),!e)){let n=this.context();if(n.getSnakingSnapshot()){if(n.isInNestedNonSnakingGroup())this.moveToNextPage();else{this.moveToNextPage();let t=n.lastColumnWidth;n.resetSnakingColumnsForNewPage(),n.lastColumnWidth=t}e=t()}else{for(;n.snapshots.length>0&&n.snapshots[n.snapshots.length-1].overflowed;){let t=n.snapshots.pop(),e=n.snapshots[n.snapshots.length-1];e&&(n.x=e.x,n.y=e.y,n.availableHeight=e.availableHeight,n.availableWidth=t.availableWidth,n.lastColumnWidth=e.lastColumnWidth)}this.moveToNextPage(),e=t()}}return e}},It=new Set(["before","beforeOdd","beforeEven","after","afterOdd","afterEven"]),Lt=t=>!(!t||"object"!=typeof t)&&It.has(t.pageBreak),Bt=class{constructor(t){this.tableNode=t,this._isCurrentRowUnbreakable=!1}beginTable(t){let e,n;e=this.tableNode,this.offsets=e._offsets,this.layout=e._layout,n=t.context().availableWidth-this.offsets.total,F(e.table.widths,n,this.offsets.total,e),this.tableWidth=e._offsets.total+(()=>{let t=0;return e.table.widths.forEach((e=>{t+=e._calcWidth})),t})(),this.rowSpanData=(()=>{let t,e=[],n=0;e.push({left:0,rowSpan:0});for(let r=0,i=this.tableNode.table.body[0].length;re.table.body.length)throw new Error(`Too few rows in the table. Property headerRows requires at least ${this.headerRows}, contains only ${e.table.body.length}`);this.rowsWithoutPageBreak=this.headerRows;const t=e.table.keepWithHeaderRows;o(t)&&(this.rowsWithoutPageBreak+=t)}this.dontBreakRows=e.table.dontBreakRows||!1,(this.rowsWithoutPageBreak||this.dontBreakRows)&&(t.beginUnbreakableBlock(),this.drawHorizontalLine(0,t),this.rowsWithoutPageBreak&&this.dontBreakRows&&t.beginUnbreakableBlock()),(t=>{for(let n=0;n0&&e(n+o,t,0,i.border[0]),void 0!==i.border[2]&&e(n+o,t+s-1,2,i.border[2]);for(let o=0;o0&&e(n,t+o,1,i.border[1]),void 0!==i.border[3]&&e(n+r-1,t+o,3,i.border[3])}}}function e(e,n,r,i){let s=t[e][n];s.border=s.border||{},s.border[r]=i}})(this.tableNode.table.body)}onRowBreak(t,e){return()=>{let t=this.rowPaddingTop+(this.headerRows?0:this.topLineWidth);e.context().availableHeight-=this.reservedAtBottom,e.context().moveDown(t)}}beginRow(t,e){this.topLineWidth=this.layout.hLineWidth(t,this.tableNode),this.rowPaddingTop=this.layout.paddingTop(t,this.tableNode),this.bottomLineWidth=this.layout.hLineWidth(t+1,this.tableNode),this.rowPaddingBottom=this.layout.paddingBottom(t,this.tableNode),this.rowCallback=this.onRowBreak(t,e),e.addListener("pageChanged",this.rowCallback),0!=t||this.dontBreakRows||this.rowsWithoutPageBreak||(this._tableTopBorderY=e.context().y,e.context().moveDown(this.topLineWidth)),this.rowTopPageY=e.context().y+this.rowPaddingTop;const n=(this.tableNode.table.body[t]||[]).some(Lt);this._isCurrentRowUnbreakable=this.dontBreakRows&&t>0&&!n,this._isCurrentRowUnbreakable&&e.beginUnbreakableBlock(),this.rowTopY=e.context().y,this.reservedAtBottom=this.bottomLineWidth+this.rowPaddingBottom,e.context().availableHeight-=this.reservedAtBottom,e.context().moveDown(this.rowPaddingTop)}drawHorizontalLine(t,e,n,r,i){void 0===r&&(r=!0);let o=this.layout.hLineWidth(t,this.tableNode);if(o){let u,c=this.layout.hLineStyle(t,this.tableNode);c&&c.dash&&(u=c.dash);let f,d,p,g=o/2,y=null,m=this.tableNode.table.body;for(let r=0,c=this.rowSpanData.length;r0&&(f=m[t-1][r],(l=f.border?f.border[3]:this.layout.defaultBorder)&&f.borderColor&&(v=f.borderColor[3])),tt;)y.width+=this.rowSpanData[r+t++].width||0;r+=t-1}else if(f&&f.colSpan&&l){for(;f.colSpan>t;)y.width+=this.rowSpanData[r+t++].width||0;r+=t-1}else if(d&&d.colSpan&&a){for(;d.colSpan>t;)y.width+=this.rowSpanData[r+t++].width||0;r+=t-1}else y.width+=this.rowSpanData[r].width||0}let A=(n||0)+g;w&&y&&y.width&&(e.addVector({type:"line",x1:y.left,x2:y.left+y.width,y1:A,y2:A,lineWidth:o,dash:u,lineColor:v},!1,s(n),null,i),y=null,f=null,d=null,p=null)}r&&e.context().moveDown(o)}}drawVerticalLine(t,e,n,r,i,s,o){let a=this.layout.vLineWidth(r,this.tableNode);if(0===a)return;let l,h=this.layout.vLineStyle(r,this.tableNode);h&&h.dash&&(l=h.dash);let u,c,f,d=this.tableNode.table.body;if(r>0&&(u=d[s][o],u&&u.borderColor&&(u.border?u.border[2]:this.layout.defaultBorder)&&(f=u.borderColor[2])),null==f&&r{let e=[],n=0;for(let r=0,i=this.tableNode.table.body[t].length;r0&&n--}return e.push({x:this.rowSpanData[this.rowSpanData.length-1].left,index:this.rowSpanData.length-1}),e})(),a=[],l=n&&n.length>0,h=this.tableNode.table.body;if(a.push({y0:this.rowTopY,page:l?n[0].prevPage:r}),l)for(let t=0,e=n.length;t0&&(t=n[0].prevPage),this.drawHorizontalLine(0,e,this._tableTopBorderY,!1,t)}for(let n=u?1:0,r=a.length;n0&&!this.headerRows,l=i?0:this.topLineWidth,u=a[n].y0,g=a[n].y1;r&&(g+=this.rowPaddingBottom),e.context().page!=a[n].page&&(e.context().page=a[n].page,this.reservedAtBottom=0),r&&!1!==this.layout.hLineWhenBroken&&this.drawHorizontalLine(t+1,e,g),i&&!1!==this.layout.hLineWhenBroken&&this.drawHorizontalLine(t,e,u);for(let i=0,y=o.length;i0&&!m){let e=h[t][w-1];m=e.border?e.border[2]:this.layout.defaultBorder}if(w+11)for(let n=1;n1)for(let n=1;n0&&this.rowSpanData[e].rowSpan--}if(this.drawHorizontalLine(t+1,e),this.headerRows&&t===this.headerRows-1&&(this.headerRepeatable=e.currentBlockToRepeatable()),this.dontBreakRows&&(0===t||this._isCurrentRowUnbreakable)){const n=()=>{t>0&&!this.headerRows&&!1!==this.layout.hLineWhenBroken&&this.drawHorizontalLine(t,e)};e.addListener("pageChanged",n),e.commitUnbreakableBlock(),e.removeListener("pageChanged",n)}this._isCurrentRowUnbreakable=!1,!this.headerRepeatable||t!==this.rowsWithoutPageBreak-1&&t!==this.tableNode.table.body.length-1||(e.commitUnbreakableBlock(),e.pushToRepeatables(this.headerRepeatable),this.cleanUpRepeatables=!0,this.headerRepeatable=null)}};class Mt{constructor(t){this.maxWidth=t,this.leadingCut=0,this.trailingCut=0,this.inlineWidths=0,this.inlines=[]}addInline(t){0===this.inlines.length&&(this.leadingCut=t.leadingCut||0),this.trailingCut=t.trailingCut||0,t.x=this.inlineWidths-this.leadingCut,this.inlines.push(t),this.inlineWidths+=t.width,t.lineEnd&&(this.newLineForced=!0)}getHeight(){let t=0;return this.inlines.forEach((e=>{t=Math.max(t,e.height||0)})),t}getAscenderHeight(){let t=0;return this.inlines.forEach((e=>{t=Math.max(t,e.font.ascender/1e3*e.fontSize)})),t}getWidth(){return this.inlineWidths-this.leadingCut-this.trailingCut}getAvailableWidth(){return this.maxWidth-this.getWidth()}hasEnoughSpaceForInline(t,e){if(void 0===e&&(e=[]),0===this.inlines.length)return!0;if(this.newLineForced)return!1;let n=t.width,r=t.trailingCut||0;if(t.noNewLine)for(let t=0,i=e.length;t{t.push(e)}))}const Nt=class{constructor(t,e,n){this.pageSize=t,this.pageMargins=e,this.svgMeasure=n,this.tableLayouts={},this.nestedLevel=0,this.verticalAlignmentItemStack=[]}registerTableLayouts(t){this.tableLayouts=j(this.tableLayouts,t)}layoutDocument(t,e,n,r,i,s,o,a,l){function h(t,e){if("function"!=typeof l)return!1;(t=t.filter((t=>!(!t||0===t.positions.length||""===t.text&&!t.listMarker)))).forEach((t=>{let n={};["id","text","ul","ol","table","image","qr","canvas","svg","columns","headlineLevel","style","pageBreak","pageOrientation","width","height"].forEach((e=>{void 0!==t[e]&&(n[e]=t[e])})),n.startPosition=t.positions[0],n.pageNumbers=Array.from(new Set(t.positions.map((t=>t.pageNumber)))),n.pages=e.length,n.stack=Array.isArray(t.stack),t.nodeInfo=n}));for(let e=0;e{let n=[];for(let i=e+1,s=t.length;i-1&&n.push(t[i].nodeInfo);return n},getNodesOnNextPage:()=>{let n=[];for(let i=e+1,s=t.length;i-1&&n.push(t[i].nodeInfo);return n},getPreviousNodesOnPage:()=>{let n=[];for(let i=0;i-1&&n.push(t[i].nodeInfo);return n}}))return n.pageBreak="before",!0}}return!1}function u(t){t.linearNodeList.forEach((t=>{t.resetXY()}))}this.docPreprocessor=new b,this.docMeasure=new bt(e,n,r,this.svgMeasure,this.tableLayouts);let c=this.tryLayoutDocument(t,e,n,r,i,s,o,a);for(;h(c.linearNodeList,c.pages);)u(c),c=this.tryLayoutDocument(t,e,n,r,i,s,o,a);return c.pages}tryLayoutDocument(t,e,n,r,i,s,o,a){return this.linearNodeList=[],t=this.docPreprocessor.preprocessDocument(t),t=this.docMeasure.measureDocument(t),this.writer=new Ot(new St),this.writer.context().addListener("pageAdded",(t=>{let e=i;(t.customProperties.background||null===t.customProperties.background)&&(e=t.customProperties.background),this.addBackground(e)})),(t=>!(t.stack&&t.stack.length>0&&t.stack[0].section||t.section))(t)&&this.writer.addPage(this.pageSize,null,this.pageMargins),this.processNode(t),this.addHeadersAndFooters(s,o),this.addWatermark(a,e,r),{pages:this.writer.context().pages,linearNodeList:this.linearNodeList}}addBackground(t){let e="function"==typeof t?t:()=>t,n=this.writer.context(),r=n.getCurrentPage().pageSize,i=e(n.page+1,r);i&&(this.writer.beginUnbreakableBlock(r.width,r.height),i=this.docPreprocessor.preprocessBlock(i),this.processNode(this.docMeasure.measureBlock(i)),this.writer.commitUnbreakableBlock(0,0),n.backgroundLength[n.page]+=i.positions.length)}addDynamicRepeatable(t,e,n){for(let r=0,i=this.writer.context().pages.length;r({x:0,y:0,width:t.width,height:e.top})),"header"),this.addDynamicRepeatable(e,((t,e)=>({x:0,y:t.height-e.bottom,width:t.width,height:e.bottom})),"footer")}addWatermark(t,e,n){let r=this.writer.context().pages;for(let s=0,a=r.length;s1;)s.push({fontSize:l}),r=i.sizeOfRotatedText(e.text,e.angle,s),r.width>t.width?(a=l,l=(o+a)/2):r.widtht.height?(a=l,l=(o+a)/2):(o=l,l=(o+a)/2)),s.pop();return l}(e,t,n));let i={text:t.text,font:n.provideFont(t.font,t.bold,t.italics),fontSize:t.fontSize,color:t.color,opacity:t.opacity,angle:t.angle};return i._size=function(t,e){let n=new D(e),r=new E(null,{font:t.font,bold:t.bold,italics:t.italics});return r.push({fontSize:t.fontSize}),{size:n.sizeOfText(t.text,r),rotatedSize:n.sizeOfRotatedText(t.text,t.angle,r)}}(t,n),i}}processNode(t,e){if(void 0===e&&(e=!1),this.linearNodeList.push(t),function(t){let e=t.x,n=t.y;t.positions=[],Array.isArray(t.canvas)&&t.canvas.forEach((t=>{let e=t.x,n=t.y,r=t.x1,i=t.y1,s=t.x2,o=t.y2;t.resetXY=()=>{t.x=e,t.y=n,t.x1=r,t.y1=i,t.x2=s,t.y2=o}})),t.resetXY=()=>{t.x=e,t.y=n,Array.isArray(t.canvas)&&t.canvas.forEach((t=>{t.resetXY()}))}}(t),null!==this.writer.context().getCurrentPage())var n=this.writer.context().getCurrentPosition().top;(e=>{let n=t._margin;"before"===t.pageBreak?this.writer.moveToNextPage(t.pageOrientation):"beforeOdd"===t.pageBreak?(this.writer.moveToNextPage(t.pageOrientation),(this.writer.context().page+1)%2==1&&this.writer.moveToNextPage(t.pageOrientation)):"beforeEven"===t.pageBreak&&(this.writer.moveToNextPage(t.pageOrientation),(this.writer.context().page+1)%2==0&&this.writer.moveToNextPage(t.pageOrientation));const r=t.relativePosition||t.absolutePosition;if(n&&!r){const e=this.writer.context().availableHeight;e-n[1]<0?(this.writer.context().moveDown(e),this.writer.context().inSnakingColumns()&&!this.writer.context().isInNestedNonSnakingGroup()?this.snakingAwarePageBreak(t.pageOrientation):this.writer.moveToNextPage(t.pageOrientation)):this.writer.context().moveDown(n[1]),this.writer.context().addMargin(n[0],n[2])}if(e(),n&&!r){const e=this.writer.context().availableHeight;e-n[3]<0?(this.writer.context().moveDown(e),this.writer.context().inSnakingColumns()&&!this.writer.context().isInNestedNonSnakingGroup()?this.snakingAwarePageBreak(t.pageOrientation):this.writer.moveToNextPage(t.pageOrientation)):this.writer.context().moveDown(n[3]),this.writer.context().addMargin(-n[0],-n[2])}"after"===t.pageBreak?this.writer.moveToNextPage(t.pageOrientation):"afterOdd"===t.pageBreak?(this.writer.moveToNextPage(t.pageOrientation),(this.writer.context().page+1)%2==1&&this.writer.moveToNextPage(t.pageOrientation)):"afterEven"===t.pageBreak&&(this.writer.moveToNextPage(t.pageOrientation),(this.writer.context().page+1)%2==0&&this.writer.moveToNextPage(t.pageOrientation))})((()=>{let n=t.verticalAlignment;if(e&&n)var r=this.writer.beginVerticalAlignment(n);let i=t.unbreakable;i&&this.writer.beginUnbreakableBlock();let s=t.absolutePosition;s&&(this.writer.context().beginDetachedBlock(),this.writer.context().moveTo(s.x||0,s.y||0));let o=t.relativePosition;if(o&&(this.writer.context().beginDetachedBlock(),this.writer.context().moveToRelative(o.x||0,o.y||0)),t.stack)this.processVerticalContainer(t);else if(t.section)this.processSection(t);else if(t.columns)this.processColumns(t);else if(t.ul)this.processList(!1,t);else if(t.ol)this.processList(!0,t);else if(t.table)this.processTable(t);else if(void 0!==t.text)this.processLeaf(t);else if(t.toc)this.processToc(t);else if(t.image)this.processImage(t);else if(t.svg)this.processSVG(t);else if(t.canvas)this.processCanvas(t);else if(t.qr)this.processQr(t);else if(t.attachment)this.processAttachment(t);else if(!t._span)throw new Error(`Unrecognized document structure: ${p(t)}`);(s||o)&&this.writer.context().endDetachedBlock(),i&&this.writer.commitUnbreakableBlock(),e&&n&&this.verticalAlignmentItemStack.push({begin:r,end:this.writer.endVerticalAlignment(n)})})),void 0!==n&&(t.__height=this.writer.context().getCurrentPosition().top-n)}snakingAwarePageBreak(t){let e=this.writer.context();if(!e.getSnakingSnapshot())return;if(this.writer.canMoveToNextColumn())return void this.writer.moveToNextColumn();this.writer.moveToNextPage(t);let n=e.lastColumnWidth;e.resetSnakingColumnsForNewPage(),e.lastColumnWidth=n}processVerticalContainer(t){t.stack.forEach((e=>{this.processNode(e),Rt(t.positions,e.positions)}),this)}processSection(t){let e=this.writer.context().getCurrentPage();if(!e||e&&e.items.length){"inherit"===t.pageSize&&(t.pageSize=e?{width:e.pageSize.width,height:e.pageSize.height}:void 0),"inherit"===t.pageOrientation&&(t.pageOrientation=e?e.pageSize.orientation:void 0),"inherit"===t.pageMargins&&(t.pageMargins=e?e.pageMargins:void 0),"inherit"===t.header&&(t.header=e?e.customProperties.header:void 0),"inherit"===t.footer&&(t.footer=e?e.customProperties.footer:void 0),"inherit"===t.background&&(t.background=e?e.customProperties.background:void 0),"inherit"===t.watermark&&(t.watermark=e?e.customProperties.watermark:void 0),t.header&&"function"!=typeof t.header&&null!==t.header&&(t.header=H(t.header)),t.footer&&"function"!=typeof t.footer&&null!==t.footer&&(t.footer=H(t.footer));let n={};void 0!==t.header&&(n.header=t.header),void 0!==t.footer&&(n.footer=t.footer),void 0!==t.background&&(n.background=t.background),void 0!==t.watermark&&(n.watermark=t.watermark),this.writer.addPage(t.pageSize||this.pageSize,t.pageOrientation,t.pageMargins||this.pageMargins,n)}this.processNode(t.section)}processColumns(t){this.nestedLevel++;let e=t.columns,n=this.writer.context().availableWidth,r=function(t){if(!t)return null;let n=[];n.push(0);for(let r=e.length-1;r>0;r--)n.push(t);return n}(t._gap);r&&(n-=(r.length-1)*t._gap),F(e,n);let i=this.processRow({marginX:t._margin?[t._margin[0],t._margin[2]]:[0,0],cells:e,widths:e,gaps:r,snakingColumns:t.snakingColumns});Rt(t.positions,i.positions),this.nestedLevel--,0===this.nestedLevel&&this.writer.context().resetMarginXTopParent()}_findStartingRowSpanCell(t,e){let n=1;for(let r=e-1;r>=0;r--){if(!t[r]._span)return t[r].rowSpan>1&&(t[r].colSpan||1)===n?t[r]:null;n++}return null}_getPageBreak(t,e){return t.find((t=>t.prevPage===e))}_getPageBreakListBySpan(t,e,n){if(!t||!t._breaksBySpan)return null;const r=t._breaksBySpan.filter((t=>t.prevPage===e&&n<=t.rowIndexOfSpanEnd));let i=Number.MAX_VALUE,s=Number.MIN_VALUE;return r.forEach((t=>{s=Math.max(t.prevY,s),i=Math.min(t.y,i)})),{prevPage:e,prevY:s,y:i}}_findSameRowPageBreakByRowSpanData(t,e,n){return t?t.find((t=>t.prevPage===e&&n===t.rowIndexOfSpanEnd)):null}_updatePageBreaksData(t,e,n){Object.keys(e._bottomByPage).forEach((r=>{const i=Number(r),s=this._getPageBreak(t,i);if(s&&(s.prevY=Math.max(s.prevY,e._bottomByPage[i])),e._breaksBySpan&&e._breaksBySpan.length>0){const t=e._breaksBySpan.filter((t=>t.prevPage===i&&n<=t.rowIndexOfSpanEnd));t&&t.length>0&&t.forEach((t=>{t.prevY=Math.max(t.prevY,e._bottomByPage[i])}))}}))}_resolveBreakY(t,e,n){n.prevY=Math.max(t.prevY,e.prevY),n.y=Math.min(t.y,e.y)}_storePageBreakData(t,e,n,r){if(e){const e=r&&r._breaksBySpan||null;let i=this._findSameRowPageBreakByRowSpanData(e,t.prevPage,t.rowIndex);i||(i={...t,rowIndexOfSpanEnd:t.rowIndex+t.rowSpan-1},r._breaksBySpan||(r._breaksBySpan=[]),r._breaksBySpan.push(i)),i.prevY=Math.max(i.prevY,t.prevY),i.y=Math.min(i.y,t.y);let s=this._getPageBreak(n,t.prevPage);s&&this._resolveBreakY(s,i,s)}else{let e=this._getPageBreak(n,t.prevPage),i=this._getPageBreakListBySpan(r,t.prevPage,t.rowIndex);e||(e={...t},n.push(e)),i&&this._resolveBreakY(e,i,e),this._resolveBreakY(e,t,e)}}_colLeftOffset(t,e){return e&&e.length>t?e[t]:0}_getRowSpanEndingCell(t,e,n,r){if(n.rowSpan&&n.rowSpan>1){let i=e+n.rowSpan-1;if(i>=t.length)throw new Error(`Row span for column ${r} (with indexes starting from 0) exceeded row count`);return t[i][r]}return null}processRow(t){let e=t.marginX,n=void 0===e?[0,0]:e,r=t.dontBreakRows,i=void 0!==r&&r,s=t.rowsWithoutPageBreak,o=void 0===s?0:s,a=t.cells,l=t.widths,h=t.gaps,u=t.tableNode,c=t.tableBody,f=t.rowIndex,d=t.height,p=t.snakingColumns,g=void 0!==p&&p;const y=i||f<=o-1;let m=[],b=[],w=!1,v={};l=l||a,!y&&d>this.writer.context().availableHeight&&(w=!0);const A=1===this.nestedLevel?n:null,x=u?u._bottomByPage:null,S=h&&h.length>1?h[1]:0,_=l.map((t=>t._calcWidth));this.writer.context().beginColumnGroup(A,x,g,S,_);for(let t=0,e=a.length;t{const n=e.rowSpan&&e.rowSpan>1;n&&(t.rowSpan=e.rowSpan),t.rowIndex=f,this._storePageBreakData(t,n,m,u)};this.writer.addListener("pageChanged",r);let s=l[t]._calcWidth,o=this._colLeftOffset(t,h),d=this._findStartingRowSpanCell(a,t);if(e.colSpan&&e.colSpan>1)for(let n=1;n0&&(w._isUnbreakableContext=!0,w._originalXOffset=this.writer.originalX)),this.writer.context().beginColumn(s,o,w);const A=g&&t>0;if(e._span||A){if(e._columnEndingContext){let t=0;if(i){const n=this.writer.contextStack[this.writer.contextStack.length-1];"number"==typeof e._startingRowSpanPage&&e._startingRowSpanPage===n.page&&"number"==typeof e._startingRowSpanY&&(t=n.y-e._startingRowSpanY),t=Math.max(0,t)}let n=0;e._isUnbreakableContext&&!this.writer.transactionLevel&&(n=e._originalXOffset),this.writer.context().markEnding(e,n,t)}}else this.processNode(e,!0),this.writer.context().updateBottomByPage(),e.verticalAlignment&&(v[n]=this.verticalAlignmentItemStack.length-1),Rt(b,e.positions);this.writer.removeListener("pageChanged",r)}let C=null;const k=a.length>0?a[a.length-1]:null;if(k)if(k._endingCell)C=k._endingCell;else if(!0===k._span){const t=this._findStartingRowSpanCell(a,a.length);t&&(C=t._endingCell,this.writer.transactionLevel>0&&(C._isUnbreakableContext=!0,C._originalXOffset=this.writer.originalX))}w&&!y&&0===m.length&&(this.writer.context().moveDown(this.writer.context().availableHeight),g?this.snakingAwarePageBreak():this.writer.moveToNextPage());const P=this.writer.context().completeColumnGroup(d,C);u&&(u._bottomByPage=P,this._updatePageBreaksData(m,u,f));let E=this.writer.context().height;for(let t=0,e=a.length;tt.pageNumber===n.cell.positions[0].pageNumber)),n.getViewHeight=function(){if(this.cell._willBreak)return this.cell._bottomY-this.cell._rowTopPageY;if(this.cell.rowSpan&&this.cell.rowSpan>1){if(i){let t=this.cell._leftEndingCell._startingRowSpanY+this.cell._leftEndingCell._rowTopPageYPadding;return this.cell._leftEndingCell._rowTopPageY-t+this.cell._leftEndingCell._bottomY}return this.cell.positions[0].pageNumber!==this.cell._leftEndingCell._lastPageNumber?this.bottomY-this.cell._leftEndingCell._bottomY:this.viewHeight+this.cell._leftEndingCell._bottomY-this.bottomY}return this.viewHeight},n.getNodeHeight=function(){return this.nodeHeight},this.verticalAlignmentItemStack[v[t]].end.item.isCellContentMultiPage=n.isCellContentMultiPage}}return{pageBreaksBySpan:[],pageBreaks:m,positions:b}}processList(t,e){const n=t=>{if(r){let e=r;if(r=null,e.canvas){let t=e.canvas[0];V(t,-e._minWidth,0),this.writer.addVector(t)}else if(e._inlines){let n=new Dt(this.pageSize.width);n.addInline(e._inlines[0]),n.x=-e._minWidth,n.y=t.getAscenderHeight()-n.getAscenderHeight(),this.writer.addLine(n,!0)}}};let r,i=t?e.ol:e.ul,s=e._gapSize;this.writer.context().addMargin(s.width),this.writer.addListener("lineAdded",n),i.forEach((t=>{r=t.listMarker,this.processNode(t),Rt(e.positions,t.positions)})),this.writer.removeListener("lineAdded",n),this.writer.context().addMargin(-s.width)}processTable(t){this.nestedLevel++;let e=new Bt(t);e.beginTable(this.writer);let n=t.table.heights,r=0;for(let i=0,s=t.table.body.length;i0&&this.writer.context().inSnakingColumns()){let t=r>0?r:e.rowPaddingTop+14+e.rowPaddingBottom+e.bottomLineWidth+e.topLineWidth;this.writer.context().availableHeight{t.rowSpan&&t.rowSpan>1&&(t._startingRowSpanY=this.writer.context().y,t._startingRowSpanPage=this.writer.context().page)})),e.beginRow(i,this.writer),s="function"==typeof n?n(i):Array.isArray(n)?n[i]:n,"auto"===s&&(s=void 0);const a=this.writer.context().page;let l=this.processRow({marginX:t._margin?[t._margin[0],t._margin[2]]:[0,0],dontBreakRows:e.dontBreakRows,rowsWithoutPageBreak:e.rowsWithoutPageBreak,cells:t.table.body[i],widths:t.table.widths,gaps:t._offsets.offsets,tableBody:t.table.body,tableNode:t,rowIndex:i,height:s});if(Rt(t.positions,l.positions),!l.pageBreaks||0===l.pageBreaks.length){const e=t&&t._breaksBySpan||null,n=this._findSameRowPageBreakByRowSpanData(e,a,i);if(n){const e=this._getPageBreakListBySpan(t,n.prevPage,i);l.pageBreaks.push(e)}}e.endRow(i,this.writer,l.pageBreaks);let h=this.writer.context().y;this.writer.context().page===a&&(r=h-o)}e.endTable(this.writer),this.nestedLevel--,0===this.nestedLevel&&this.writer.context().resetMarginXTopParent()}processLeaf(t){let e=this.buildNextLine(t);e&&(t.tocItem||t.id)&&(e._node=t);let n=e?e.getHeight():0,r=t.maxHeight||-1;if(e){let n=g(t);n&&(e.id=n)}if(t.outline)e._outline={id:t.id,parentId:t.outlineParentId,text:t.outlineText||t.text,expanded:t.outlineExpanded||!1};else if(Array.isArray(t.text))for(let n=0,r=t.text.length;nthis.writer.context().availableHeight&&this.writer.context().y>this.writer.context().pageMargins.top){if(this.writer.context().inSnakingColumns()&&!this.writer.context().isInNestedNonSnakingGroup()){this.snakingAwarePageBreak(t.pageOrientation),e.inlines&&e.inlines.length>0&&t._inlines.unshift(...e.inlines),e=this.buildNextLine(t);continue}this.writer.moveToNextPage(t.pageOrientation)}let r=this.writer.addLine(e);t.positions.push(r),e=this.buildNextLine(t),e&&(n+=e.getHeight())}}processToc(t){(t.toc._table||!0!==t.toc.hideEmpty)&&(t.toc.title&&this.processNode(t.toc.title),t.toc._table&&this.processNode(t.toc._table))}buildNextLine(t){function e(t){let e=t.constructor();for(let n in t)e[n]=t[n];return e}function n(t,e,n){let r=1,i=t.length,s=1;for(;r<=i;){const o=Math.floor((r+i)/2);n(t.substring(0,o))<=e?(s=o,r=o+1):i=o-1}return s}if(!t._inlines||0===t._inlines.length)return null;let r=new Dt(this.writer.context().availableWidth);const i=new D(null);let s=!1;for(;t._inlines&&t._inlines.length>0&&(r.hasEnoughSpaceForInline(t._inlines[0],t._inlines.slice(1))||s);){let o=!1,a=t._inlines.shift();if(!a.noWrap&&a.text.length>1&&a.width>r.getAvailableWidth()){let s=n(a.text,r.getAvailableWidth(),(t=>i.widthOfText(t,a)));if(s{let e=parseFloat(t);if("number"==typeof e&&!isNaN(e))return e},zt=t=>{let e;try{e=new Ft.XmlDocument(t)}catch(t){throw new Error("Invalid svg document ("+t+")",{cause:t})}if("svg"!==e.name)throw new Error("Invalid svg document (expected )");return e},Wt=class{constructor(){}measureSVG(t){let e,n,r;if(i(t)){let i=zt(t);e=i.attr.width,n=i.attr.height,r=i.attr.viewBox}else{if(!("undefined"!=typeof SVGElement&&t instanceof SVGElement&&"function"==typeof getComputedStyle))throw new Error("Invalid SVG document");e=t.getAttribute("width"),n=t.getAttribute("height"),r=t.getAttribute("viewBox")}let s=Ut(e),o=Ut(n);if((void 0===s||void 0===o)&&"string"==typeof r){let t=r.split(/[,\s]+/);if(4!==t.length)throw new Error("Unexpected svg viewBox format, should have 4 entries but found: '"+r+"'");void 0===s&&(s=Ut(t[2])),void 0===o&&(o=Ut(t[3]))}return{width:s,height:o}}writeDimensions(t,e){if(i(t)){let n=zt(t);return"string"!=typeof n.attr.viewBox&&(n.attr.viewBox=`0 0 ${Ut(n.attr.width)} ${Ut(n.attr.height)}`),n.attr.width=""+e.width,n.attr.height=""+e.height,n.toString()}return t.hasAttribute("viewBox")||t.setAttribute("viewBox",`0 0 ${Ut(t.getAttribute("width"))} ${Ut(t.getAttribute("height"))}`),t.setAttribute("width",""+e.width),t.setAttribute("height",""+e.height),t}},jt=class{constructor(t){this.pdfDocument=t}drawBackground(t,e,n){let r=t.getHeight();for(let i=0,s=t.inlines.length;i{let n=[],r=null;for(let i=0,o=t.inlines.length;i{let e=0;for(let n=0,r=t.inlines.length;ne?n:e;return t.inlines[e]})(),o=(()=>{let e=0;for(let n=0,r=t.inlines.length;n{let n=t;return e.sup&&(n-=.75*e.fontSize),e.sub&&(n+=.35*e.fontSize),n},Gt=class{constructor(t,e){this.pdfDocument=t,this.progressCallback=e,this.outlineMap=[]}renderPages(t){this.pdfDocument._pdfMakePages=t;let e=0;this.progressCallback&&t.forEach((t=>{e+=t.items.length}));let n=0;for(let r=0;r1){let e=t.points[0],n=t.points[t.points.length-1];(t.closePath||e.x===n.x&&e.y===n.y)&&this.pdfDocument.closePath()}break;case"path":this.pdfDocument.path(t.d)}if(t.linearGradient&&e){let n=1/(t.linearGradient.length-1);for(let r=0;r{let i=e.split(",").map((t=>t.trim().replace(/('|")/g,""))),s=((t,e,n)=>{for(let n=0;n-1&&(o=o.slice(0,a)),o.forEach((t=>{t.pageSize.height===1/0&&(t.pageSize.height=function(t,e){let n=Tt(e||40),r=n.top;return t.items.forEach((t=>{let e=function(t){return(t.item.y||0)+function(t){return"function"==typeof t.item.getHeight?t.item.getHeight():t.item._height?t.item._height:"vector"===t.type?void 0!==t.item.y1?t.item.y1>t.item.y2?t.item.y1:t.item.y2:t.item.h:0}(t)}(t);e>r&&(r=e)})),r+=n.bottom,r}(t,t.pageMargins))})),new Gt(this.pdfKitDoc,e.progressCallback).renderPages(o),this.pdfKitDoc}async resolveUrls(t){const e=t=>"object"==typeof t?{url:t.url,headers:t.headers}:{url:t,headers:{}};for(let t in this.fontDescriptors)if(this.fontDescriptors.hasOwnProperty(t)){if(this.fontDescriptors[t].normal)if(Array.isArray(this.fontDescriptors[t].normal)){let n=e(this.fontDescriptors[t].normal[0]);this.urlResolver.resolve(n.url,n.headers),this.fontDescriptors[t].normal[0]=n.url}else{let n=e(this.fontDescriptors[t].normal);this.urlResolver.resolve(n.url,n.headers),this.fontDescriptors[t].normal=n.url}if(this.fontDescriptors[t].bold)if(Array.isArray(this.fontDescriptors[t].bold)){let n=e(this.fontDescriptors[t].bold[0]);this.urlResolver.resolve(n.url,n.headers),this.fontDescriptors[t].bold[0]=n.url}else{let n=e(this.fontDescriptors[t].bold);this.urlResolver.resolve(n.url,n.headers),this.fontDescriptors[t].bold=n.url}if(this.fontDescriptors[t].italics)if(Array.isArray(this.fontDescriptors[t].italics)){let n=e(this.fontDescriptors[t].italics[0]);this.urlResolver.resolve(n.url,n.headers),this.fontDescriptors[t].italics[0]=n.url}else{let n=e(this.fontDescriptors[t].italics);this.urlResolver.resolve(n.url,n.headers),this.fontDescriptors[t].italics=n.url}if(this.fontDescriptors[t].bolditalics)if(Array.isArray(this.fontDescriptors[t].bolditalics)){let n=e(this.fontDescriptors[t].bolditalics[0]);this.urlResolver.resolve(n.url,n.headers),this.fontDescriptors[t].bolditalics[0]=n.url}else{let n=e(this.fontDescriptors[t].bolditalics);this.urlResolver.resolve(n.url,n.headers),this.fontDescriptors[t].bolditalics=n.url}}if(t.images)for(let n in t.images)if(t.images.hasOwnProperty(n)){let r=e(t.images[n]);this.urlResolver.resolve(r.url,r.headers),t.images[n]=r.url}if(t.attachments)for(let n in t.attachments)if(t.attachments.hasOwnProperty(n)&&t.attachments[n].src){let r=e(t.attachments[n].src);this.urlResolver.resolve(r.url,r.headers),t.attachments[n].src=r.url}if(t.files)for(let n in t.files)if(t.files.hasOwnProperty(n)&&t.files[n].src){let r=e(t.files[n].src);this.urlResolver.resolve(r.url,r.headers),t.files[n].src=r.url}await this.urlResolver.resolved()}};var Zt=n(6811);const Yt=class{constructor(t){this.fs=t,this.resolving={},this.urlAccessPolicy=void 0}setUrlAccessPolicy(t){this.urlAccessPolicy=t}resolve(t,e){void 0===e&&(e={});return this.resolving[t]||(this.resolving[t]=(async()=>{if(t.toLowerCase().startsWith("https://")||t.toLowerCase().startsWith("http://")){if(this.fs.existsSync(t))return;const n=await async function(t,e,n){void 0===e&&(e={});for(let r=0;r<=30;r++){if(void 0!==n&&!0!==n(t))throw new Error(`Access to URL denied by resource access policy: ${t}`);try{let n=await fetch(t,{headers:e,redirect:"manual"});if(n.status>=300&&n.status<400){let e=n.headers.get("location");if(!e)throw new Error("Redirect response missing Location header");t=new URL(e,t).href;continue}if("opaqueredirect"===n.type&&(n=await fetch(t,{headers:e})),!n.ok)throw new Error(`Failed to fetch (status code: ${n.status})`);return n}catch(e){throw new Error(`Network request failed (url: "${t}", error: ${e.message})`,{cause:e})}}throw new Error(`Network request failed (url: "${t}", error: Too many redirects)`)}(t,e,this.urlAccessPolicy);if(n.redirected&&void 0!==this.urlAccessPolicy&&!0!==this.urlAccessPolicy(n.url))throw new Error(`Access to URL denied by resource access policy: ${n.url}`);const r=await n.arrayBuffer();this.fs.writeFileSync(t,r)}})()),this.resolving[t]}resolved(){return Promise.all(Object.values(this.resolving))}};var Kt=n(9964);const Jt=class{constructor(){this.virtualfs=Zt.default,this.urlAccessPolicy=void 0,this.localAccessPolicy=void 0}createPdf(t,e){if(void 0===e&&(e={}),!a(t))throw new Error("Parameter 'docDefinition' has an invalid type. Object expected.");if(!a(e))throw new Error("Parameter 'options' has an invalid type. Object expected.");e.progressCallback=this.progressCallback,e.tableLayouts=this.tableLayouts;const n=void 0!==Kt&&Kt?.versions?.node;void 0===this.urlAccessPolicy&&n&&console.warn("No URL access policy defined. Consider using setUrlAccessPolicy() to restrict external resource downloads."),void 0===this.localAccessPolicy&&n&&console.warn("No local access policy defined. Consider using setLocalAccessPolicy() to restrict local file system access.");let r=new Yt(this.virtualfs);r.setUrlAccessPolicy(this.urlAccessPolicy);const i=new Xt(this.fonts,this.virtualfs,r,this.localAccessPolicy).createPdfKitDocument(t,e);return this._transformToDocument(i)}setUrlAccessPolicy(t){if(void 0!==t&&"function"!=typeof t)throw new Error("Parameter 'callback' has an invalid type. Function or undefined expected.");this.urlAccessPolicy=t}setProgressCallback(t){this.progressCallback=t}addTableLayouts(t){this.tableLayouts=j(this.tableLayouts,t)}setTableLayouts(t){this.tableLayouts=t}clearTableLayouts(){this.tableLayouts={}}addFonts(t){this.fonts=j(this.fonts,t)}setFonts(t){this.fonts=t}clearFonts(){this.fonts={}}_transformToDocument(t){return t}};var Qt=n(783).Buffer;const $t=class{constructor(t){this.bufferSize=1073741824,this.pdfDocumentPromise=t,this.bufferPromise=null}getStream(){return this.pdfDocumentPromise}getBuffer(){return null===this.bufferPromise&&(this.bufferPromise=(async()=>{const t=await this.getStream();return new Promise((e=>{let n=[];t.on("readable",(()=>{let e;for(;null!==(e=t.read(this.bufferSize));)n.push(e)})),t.on("end",(()=>{e(Qt.concat(n))})),t.end()}))})()),this.bufferPromise}async getBase64(){return(await this.getBuffer()).toString("base64")}async getDataUrl(){return"data:application/pdf;base64,"+await this.getBase64()}};var te=n(5127);const ee=class extends $t{async getBlob(){const t=await this.getBuffer();return new Blob([t],{type:"application/pdf"})}async download(t){void 0===t&&(t="file.pdf");const e=await this.getBlob();(0,te.saveAs)(e,t)}async open(t){void 0===t&&(t=null),t||(t=(()=>{let t=window.open("","_blank");if(null===t)throw new Error("Open PDF in new window blocked by browser");return t})());const e=await this.getBlob();try{let n=(window.URL||window.webkitURL).createObjectURL(e);t.location.href=n}catch(e){throw t.close(),e}}async print(t){void 0===t&&(t=null),(await this.getStream()).setOpenActionAsPrint(),await this.open(t)}};var ne=n(2416),re=n.n(ne),ie=n(890);n.n(ie)()({useNative:["Promise"]});let se={Roboto:{normal:"Roboto-Regular.ttf",bold:"Roboto-Medium.ttf",italics:"Roboto-Italic.ttf",bolditalics:"Roboto-MediumItalic.ttf"}};const oe=new class extends Jt{constructor(){super(),this.fonts=se}addFontContainer(t){this.addVirtualFileSystem(t.vfs),this.addFonts(t.fonts)}addVirtualFileSystem(t){for(let e in t)if(t.hasOwnProperty(e)){let n,r;"object"==typeof t[e]?(n=t[e].data,r=t[e].encoding||"base64"):(n=t[e],r="base64"),re().writeFileSync(e,n,r)}}_transformToDocument(t){return new ee(t)}}},2736(t,e,n){t.exports=n(7133).default},2416(t,e,n){t.exports=n(6811).default},6811(t,e,n){"use strict";n.d(e,{default:()=>s});var r=n(783).Buffer;const i=t=>(0===t.indexOf("/")&&(t=t.substring(1)),0===t.indexOf("/")&&(t=t.substring(1)),t),s=new class{constructor(){this.storage={}}existsSync(t){const e=i(t);return void 0!==this.storage[e]}readFileSync(t,e){const n=i(t),r="object"==typeof e?e.encoding:e;if(!this.existsSync(n))throw new Error(`File '${n}' not found in virtual file system`);const s=this.storage[n];return r?s.toString(r):s}writeFileSync(t,e,n){const s=i(t),o="object"==typeof n?n.encoding:n;if(!e&&!n)throw new Error("No content");this.storage[s]=o||"string"==typeof e?new r(e,o):e}}},6582(t,e,n){"use strict";e.A=void 0;var r,i=(r=n(7696))&&r.__esModule?r:{default:r};e.A=i.default},7696(t,e,n){"use strict";(t=n.nmd(t))&&void 0!==t.exports&&(t.exports=function(t,e,n,r,i){const s={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgrey:[211,211,211],lightgreen:[144,238,144],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0]},o={black:[s.black,1],white:[s.white,1],transparent:[s.black,0]},a={quot:34,amp:38,lt:60,gt:62,apos:39,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,circ:710,tilde:732,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,permil:8240,lsaquo:8249,rsaquo:8250,euro:8364,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,fnof:402,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,bull:8226,hellip:8230,prime:8242,Prime:8243,oline:8254,frasl:8260,weierp:8472,image:8465,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},l={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0},h={A3:!0,A4:!0,a3:!0,a4:!0},u={color:{inherit:!0,initial:void 0},visibility:{inherit:!0,initial:"visible",values:{hidden:"hidden",collapse:"hidden",visible:"visible"}},fill:{inherit:!0,initial:o.black},stroke:{inherit:!0,initial:"none"},"stop-color":{inherit:!1,initial:o.black},"fill-opacity":{inherit:!0,initial:1},"stroke-opacity":{inherit:!0,initial:1},"stop-opacity":{inherit:!1,initial:1},"fill-rule":{inherit:!0,initial:"nonzero",values:{nonzero:"nonzero",evenodd:"evenodd"}},"clip-rule":{inherit:!0,initial:"nonzero",values:{nonzero:"nonzero",evenodd:"evenodd"}},"stroke-width":{inherit:!0,initial:1},"stroke-dasharray":{inherit:!0,initial:[]},"stroke-dashoffset":{inherit:!0,initial:0},"stroke-miterlimit":{inherit:!0,initial:4},"stroke-linejoin":{inherit:!0,initial:"miter",values:{miter:"miter",round:"round",bevel:"bevel"}},"stroke-linecap":{inherit:!0,initial:"butt",values:{butt:"butt",round:"round",square:"square"}},"font-size":{inherit:!0,initial:16,values:{"xx-small":9,"x-small":10,small:13,medium:16,large:18,"x-large":24,"xx-large":32}},"font-family":{inherit:!0,initial:"sans-serif"},"font-weight":{inherit:!0,initial:"normal",values:{600:"bold",700:"bold",800:"bold",900:"bold",bold:"bold",bolder:"bold",500:"normal",400:"normal",300:"normal",200:"normal",100:"normal",normal:"normal",lighter:"normal"}},"font-style":{inherit:!0,initial:"normal",values:{italic:"italic",oblique:"italic",normal:"normal"}},"text-anchor":{inherit:!0,initial:"start",values:{start:"start",middle:"middle",end:"end"}},direction:{inherit:!0,initial:"ltr",values:{ltr:"ltr",rtl:"rtl"}},"dominant-baseline":{inherit:!0,initial:"baseline",values:{auto:"baseline",baseline:"baseline","before-edge":"before-edge","text-before-edge":"before-edge",middle:"middle",central:"central","after-edge":"after-edge","text-after-edge":"after-edge",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"mathematical"}},"alignment-baseline":{inherit:!1,initial:void 0,values:{auto:"baseline",baseline:"baseline","before-edge":"before-edge","text-before-edge":"before-edge",middle:"middle",central:"central","after-edge":"after-edge","text-after-edge":"after-edge",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"mathematical"}},"baseline-shift":{inherit:!0,initial:"baseline",values:{baseline:"baseline",sub:"sub",super:"super"}},"word-spacing":{inherit:!0,initial:0,values:{normal:0}},"letter-spacing":{inherit:!0,initial:0,values:{normal:0}},"text-decoration":{inherit:!1,initial:"none",values:{none:"none",underline:"underline",overline:"overline","line-through":"line-through"}},"xml:space":{inherit:!0,initial:"default",css:"white-space",values:{preserve:"preserve",default:"default",pre:"preserve","pre-line":"preserve","pre-wrap":"preserve",nowrap:"default"}},"marker-start":{inherit:!0,initial:"none"},"marker-mid":{inherit:!0,initial:"none"},"marker-end":{inherit:!0,initial:"none"},opacity:{inherit:!1,initial:1},transform:{inherit:!1,initial:[1,0,0,1,0,0]},display:{inherit:!1,initial:"inline",values:{none:"none",inline:"inline",block:"inline"}},"clip-path":{inherit:!1,initial:"none"},mask:{inherit:!1,initial:"none"},overflow:{inherit:!1,initial:"hidden",values:{hidden:"hidden",scroll:"hidden",visible:"visible"}},"vector-effect":{inherit:!0,initial:"none",values:{none:"none","non-scaling-stroke":"non-scaling-stroke"}}};function c(e){let n=new function(){};return n.name="G"+(t._groupCount=(t._groupCount||0)+1),n.resources=t.ref(),n.xobj=t.ref({Type:"XObject",Subtype:"Form",FormType:1,BBox:e,Group:{S:"Transparency",CS:"DeviceRGB",I:!0,K:!1},Resources:n.resources}),n.xobj.write(""),n.savedMatrix=t._ctm,n.savedPage=t.page,Nt.push(n),t._ctm=[1,0,0,1,0,0],t.page={width:t.page.width,height:t.page.height,write:function(t){n.xobj.write(t)},fonts:{},xobjects:{},ext_gstates:{},patterns:{}},n}function f(e){if(e!==Nt.pop())throw"Group not matching";Object.keys(t.page.fonts).length&&(e.resources.data.Font=t.page.fonts),Object.keys(t.page.xobjects).length&&(e.resources.data.XObject=t.page.xobjects),Object.keys(t.page.ext_gstates).length&&(e.resources.data.ExtGState=t.page.ext_gstates),Object.keys(t.page.patterns).length&&(e.resources.data.Pattern=t.page.patterns),e.resources.end(),e.xobj.end(),t._ctm=e.savedMatrix,t.page=e.savedPage}function d(e){t.page.xobjects[e.name]=e.xobj,t.addContent("/"+e.name+" Do")}function p(e,n){let r="M"+(t._maskCount=(t._maskCount||0)+1),i=t.ref({Type:"ExtGState",CA:1,ca:1,BM:"Normal",SMask:{S:"Luminosity",G:e.xobj,BC:n?[0,0,0]:[1,1,1]}});i.end(),t.page.ext_gstates[r]=i,t.addContent("/"+r+" gs")}function g(t,e,n,r){return{type:"PDFPattern",group:t,dx:e,dy:n,matrix:r||[1,0,0,1,0,0]}}function y(e,n){let r="P"+(t._patternCount=(t._patternCount||0)+1),i=t.ref({Type:"Pattern",PatternType:1,PaintType:1,TilingType:2,BBox:[0,0,e.dx,e.dy],XStep:e.dx,YStep:e.dy,Matrix:k(t._ctm,e.matrix),Resources:{ProcSet:["PDF","Text","ImageB","ImageC","ImageI"],XObject:function(){let t={};return t[e.group.name]=e.group.xobj,t}()}});i.write("/"+e.group.name+" Do"),i.end(),t.page.patterns[r]=i,n?(t.addContent("/Pattern CS"),t.addContent("/"+r+" SCN")):(t.addContent("/Pattern cs"),t.addContent("/"+r+" scn"))}function m(e,n){let r=e&&n?2:n?1:e?0:3;t.addContent(r+" Tr")}function b(e,n){let r=[],i="";const s=n.fauxItalic?-.25:0;function o(t){i+=t.glyph,0!==t.kern&&(r.push(`<${i}> ${R(t.kern)}`),i="")}function a(){i.length&&(r.push(`<${i}> 0`),i=""),r.length&&(t.addContent(`[${r.join(" ")}] TJ`),r=[])}for(let n=0;n0)for(;n<0;)n+=i;t.dash(e,{phase:n})}function x(t){let e=function(t,e,n,r){this.error=r,this.nodeName=t,this.nodeValue=n,this.nodeType=e,this.attributes=Object.create(null),this.childNodes=[],this.parentNode=null,this.id="",this.textContent="",this.classList=[]};e.prototype.getAttribute=function(t){return null!=this.attributes[t]?this.attributes[t]:null},e.prototype.getElementById=function(t){let e=null;return function n(r){if(!e&&1===r.nodeType){r.id===t&&(e=r);for(let t=0;t/)){for(;n=o();)r.childNodes.push(n),n.parentNode=r,r.textContent+=3===n.nodeType||4===n.nodeType?n.nodeValue:n.textContent;return(t=i.match(/^<\/([\w:.-]+)\s*>/,!0))?(t[1]===r.nodeName||(It('parseXml: tag not matching, opening "'+r.nodeName+'" & closing "'+t[1]+'"'),s=!0),r):(It('parseXml: tag not matching, opening "'+r.nodeName+'" & not closing'),s=!0,r)}if(i.match(/^\/>/))return r;It('parseXml: tag could not be parsed "'+r.nodeName+'"'),s=!0}else{if(t=i.match(/^/))return new e(null,8,t,s);if(t=i.match(/^<\?[\s\S]*?\?>/))return new e(null,7,t,s);if(t=i.match(/^/))return new e(null,10,t,s);if(t=i.match(/^/,!0))return new e("#cdata-section",4,t[1],s);if(t=i.match(/^([^<]+)/,!0))return new e("#text",3,S(t[1]),s)}};for(;r=o();)1!==r.nodeType||n?(1===r.nodeType||3===r.nodeType&&""!==r.nodeValue.trim())&&It("parseXml: data after document end has been discarded"):n=r;return i.matchAll()&&It("parseXml: parsing error"),n}function S(t){return t.replace(/&(?:#([0-9]+)|#[xX]([0-9A-Fa-f]+)|([0-9A-Za-z]+));/g,(function(t,e,n,r){return e?String.fromCharCode(parseInt(e,10)):n?String.fromCharCode(parseInt(n,16)):r&&a[r]?String.fromCharCode(a[r]):t}))}function _(t){let e,n;return t=(t||"").trim(),(e=s[t])?n=[e.slice(),1]:(e=t.match(/^cmyk\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)$/i))?(e[1]=parseInt(e[1]),e[2]=parseInt(e[2]),e[3]=parseInt(e[3]),e[4]=parseFloat(e[4]),e[1]<=100&&e[2]<=100&&e[3]<=100&&e[4]<=100&&(n=[e.slice(1,5),1])):(e=t.match(/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)$/i))?(e[1]=parseInt(e[1]),e[2]=parseInt(e[2]),e[3]=parseInt(e[3]),e[4]=parseFloat(e[4]),e[1]<256&&e[2]<256&&e[3]<256&&e[4]<=1&&(n=[e.slice(1,4),e[4]])):(e=t.match(/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)$/i))?(e[1]=parseInt(e[1]),e[2]=parseInt(e[2]),e[3]=parseInt(e[3]),e[1]<256&&e[2]<256&&e[3]<256&&(n=[e.slice(1,4),1])):(e=t.match(/^rgb\(\s*([0-9.]+)%\s*,\s*([0-9.]+)%\s*,\s*([0-9.]+)%\s*\)$/i))?(e[1]=2.55*parseFloat(e[1]),e[2]=2.55*parseFloat(e[2]),e[3]=2.55*parseFloat(e[3]),e[1]<256&&e[2]<256&&e[3]<256&&(n=[e.slice(1,4),1])):(e=t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i))?n=[[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)],1]:(e=t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i))&&(n=[[17*parseInt(e[1],16),17*parseInt(e[2],16),17*parseInt(e[3],16)],1]),Mt?Mt(n,t):n}function C(t,e,n){let r=t[0].slice(),i=t[1]*e;if(n){for(let e=0;e=0;t--)e=k(Nt[t].savedMatrix,e);return e}function T(){return(new J).M(0,0).L(t.page.width,0).L(t.page.width,t.page.height).L(0,t.page.height).transform(O(E())).getBoundingBox()}function O(t){let e=t[0]*t[3]-t[1]*t[2];return[t[3]/e,-t[1]/e,-t[2]/e,t[0]/e,(t[2]*t[5]-t[3]*t[4])/e,(t[1]*t[4]-t[0]*t[5])/e]}function I(t){let e=R(t[0]),n=R(t[1]),r=R(t[2]),i=R(t[3]),s=R(t[4]),o=R(t[5]);if(D(e*i-n*r,0))return[e,n,r,i,s,o]}function L(t){let e=t[2]||0,n=t[1]||0,r=t[0]||0;if(M(e,0)&&M(n,0))return[];if(M(e,0))return[-r/n];{let t=n*n-4*e*r;return D(t,0)&&t>0?[(-n+Math.sqrt(t))/(2*e),(-n-Math.sqrt(t))/(2*e)]:M(t,0)?[-n/(2*e)]:[]}}function B(t,e){return(e[0]||0)+(e[1]||0)*t+(e[2]||0)*t*t+(e[3]||0)*t*t*t}function M(t,e){return Math.abs(t-e)<1e-10}function D(t,e){return Math.abs(t-e)>=1e-10}function R(t){return t>-1e21&&t<1e21?Math.round(1e6*t)/1e6:0}function N(t){let e,n=new Z((t||"").trim()),r=[1,0,0,1,0,0];for(;e=n.match(/^([A-Za-z]+)\s*[(]([^(]+)[)]/,!0);){let t,i=e[1],s=[],o=new Z(e[2].trim());for(;t=o.matchNumber();)s.push(Number(t)),o.matchSeparator();if("matrix"===i&&6===s.length)r=k(r,[s[0],s[1],s[2],s[3],s[4],s[5]]);else if("translate"===i&&2===s.length)r=k(r,[1,0,0,1,s[0],s[1]]);else if("translate"===i&&1===s.length)r=k(r,[1,0,0,1,s[0],0]);else if("scale"===i&&2===s.length)r=k(r,[s[0],0,0,s[1],0,0]);else if("scale"===i&&1===s.length)r=k(r,[s[0],0,0,s[0],0,0]);else if("rotate"===i&&3===s.length){let t=s[0]*Math.PI/180;r=k(r,[1,0,0,1,s[1],s[2]],[Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0],[1,0,0,1,-s[1],-s[2]])}else if("rotate"===i&&1===s.length){let t=s[0]*Math.PI/180;r=k(r,[Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0])}else if("skewX"===i&&1===s.length){let t=s[0]*Math.PI/180;r=k(r,[1,0,Math.tan(t),1,0,0])}else{if("skewY"!==i||1!==s.length)return;{let t=s[0]*Math.PI/180;r=k(r,[1,Math.tan(t),0,1,0,0])}}n.matchSeparator()}if(!n.matchAll())return r}function F(t,e,n,r,i,s){let o=(t||"").trim().match(/^(none)$|^x(Min|Mid|Max)Y(Min|Mid|Max)(?:\s+(meet|slice))?$/)||[],a=o[1]||o[4]||"meet",l=o[2]||"Mid",h=o[3]||"Mid",u=e/r,c=n/i,f={Min:0,Mid:.5,Max:1}[l]-(s||0),d={Min:0,Mid:.5,Max:1}[h]-(s||0);return"slice"===a?c=u=Math.max(u,c):"meet"===a&&(c=u=Math.min(u,c)),[u,0,0,c,f*(e-r*u),d*(n-i*c)]}function U(t){let e=Object.create(null);t=(t||"").trim().split(/;/);for(let n=0;nr&&(t=r,r=e,e=t),n>i&&(t=i,i=n,n=t);let s=L(c);for(let t=0;t=0&&s[t]<=1){let n=B(s[t],h);nr&&(r=n)}let o=L(f);for(let t=0;t=0&&o[t]<=1){let e=B(o[t],u);ei&&(i=e)}return[e,n,r,i]},this.getPointAtLength=function(t){if(M(t,0))return this.startPoint;if(M(t,this.totalLength))return this.endPoint;if(!(t<0||t>this.totalLength))for(let e=1;e<=l;e++){let n=d[e-1],r=d[e];if(n<=t&&t<=r){let i=(e-(r-t)/(r-n))/l,s=B(i,h),o=B(i,u),a=B(i,c),d=B(i,f);return[s,o,Math.atan2(d,a)]}}}},K=function(t,e,n,r){this.totalLength=Math.sqrt((n-t)*(n-t)+(r-e)*(r-e)),this.startPoint=[t,e,Math.atan2(r-e,n-t)],this.endPoint=[n,r,Math.atan2(r-e,n-t)],this.getBoundingBox=function(){return[Math.min(this.startPoint[0],this.endPoint[0]),Math.min(this.startPoint[1],this.endPoint[1]),Math.max(this.startPoint[0],this.endPoint[0]),Math.max(this.startPoint[1],this.endPoint[1])]},this.getPointAtLength=function(t){if(t>=0&&t<=this.totalLength){let e=t/this.totalLength||0;return[this.startPoint[0]+e*(this.endPoint[0]-this.startPoint[0]),this.startPoint[1]+e*(this.endPoint[1]-this.startPoint[1]),this.startPoint[2]]}}},J=function(){this.pathCommands=[],this.pathSegments=[],this.startPoint=null,this.endPoint=null,this.totalLength=0;let e,n,r,i=0,s=0,o=0,a=0;this.move=function(t,e){return i=o=t,s=a=e,null},this.line=function(t,e){let n=new K(o,a,t,e);return o=t,a=e,n},this.curve=function(t,e,n,r,i,s){let l=new Y(o,a,t,e,n,r,i,s);return o=i,a=s,l},this.close=function(){let t=new K(o,a,i,s);return o=i,a=s,t},this.addCommand=function(t){this.pathCommands.push(t);let e=this[t[0]].apply(this,t.slice(3));e&&(e.hasStart=t[1],e.hasEnd=t[2],this.startPoint=this.startPoint||e.startPoint,this.endPoint=e.endPoint,this.pathSegments.push(e),this.totalLength+=e.totalLength)},this.M=function(t,n){return this.addCommand(["move",!0,!0,t,n]),e="M",this},this.m=function(t,e){return this.M(o+t,a+e)},this.Z=this.z=function(){return this.addCommand(["close",!0,!0]),e="Z",this},this.L=function(t,n){return this.addCommand(["line",!0,!0,t,n]),e="L",this},this.l=function(t,e){return this.L(o+t,a+e)},this.H=function(t){return this.L(t,a)},this.h=function(t){return this.L(o+t,a)},this.V=function(t){return this.L(o,t)},this.v=function(t){return this.L(o,a+t)},this.C=function(t,i,s,o,a,l){return this.addCommand(["curve",!0,!0,t,i,s,o,a,l]),e="C",n=s,r=o,this},this.c=function(t,e,n,r,i,s){return this.C(o+t,a+e,o+n,a+r,o+i,a+s)},this.S=function(t,i,s,l){return this.C(o+("C"===e?o-n:0),a+("C"===e?a-r:0),t,i,s,l)},this.s=function(t,i,s,l){return this.C(o+("C"===e?o-n:0),a+("C"===e?a-r:0),o+t,a+i,o+s,a+l)},this.Q=function(t,i,s,l){let h=o+2/3*(t-o),u=a+2/3*(i-a),c=s+2/3*(t-s),f=l+2/3*(i-l);return this.addCommand(["curve",!0,!0,h,u,c,f,s,l]),e="Q",n=t,r=i,this},this.q=function(t,e,n,r){return this.Q(o+t,a+e,o+n,a+r)},this.T=function(t,i){return this.Q(o+("Q"===e?o-n:0),a+("Q"===e?a-r:0),t,i)},this.t=function(t,i){return this.Q(o+("Q"===e?o-n:0),a+("Q"===e?a-r:0),o+t,a+i)},this.A=function(t,n,r,i,s,l,h){if(M(t,0)||M(n,0))this.addCommand(["line",!0,!0,l,h]);else{r*=Math.PI/180,t=Math.abs(t),n=Math.abs(n),i=1*!!i,s=1*!!s;let e=Math.cos(r)*(o-l)/2+Math.sin(r)*(a-h)/2,u=Math.cos(r)*(a-h)/2-Math.sin(r)*(o-l)/2,c=e*e/(t*t)+u*u/(n*n);c>1&&(t*=Math.sqrt(c),n*=Math.sqrt(c));let f=Math.sqrt(Math.max(0,t*t*n*n-t*t*u*u-n*n*e*e)/(t*t*u*u+n*n*e*e)),d=(i===s?-1:1)*f*t*u/n,p=(i===s?1:-1)*f*n*e/t,g=Math.cos(r)*d-Math.sin(r)*p+(o+l)/2,y=Math.sin(r)*d+Math.cos(r)*p+(a+h)/2,m=Math.atan2((u-p)/n,(e-d)/t),b=Math.atan2((-u-p)/n,(-e-d)/t);0===s&&b-m>0?b-=2*Math.PI:1===s&&b-m<0&&(b+=2*Math.PI);let w=Math.ceil(Math.abs(b-m)/(Math.PI/Rt));for(let e=0;et[2]&&(t[2]=e[2]),e[1]t[3]&&(t[3]=e[3]);var e;return t[0]===1/0&&(t[0]=0),t[1]===1/0&&(t[1]=0),t[2]===-1/0&&(t[2]=0),t[3]===-1/0&&(t[3]=0),t},this.getPointAtLength=function(t){if(t>=0&&t<=this.totalLength){let e;for(let n=0;ni.selector.specificity||(e[t]=i.css[t],n[t]=i.selector.specificity)}return e}(t),this.allowedChildren=[],this.attr=function(e){if("function"==typeof t.getAttribute)return t.getAttribute(e)},this.resolveUrl=function(t){let n=(t||"").match(/^\s*(?:url\("(.*)#(.*)"\)|url\('(.*)#(.*)'\)|url\((.*)#(.*)\)|(.*)#(.*))\s*$/)||[],r=n[1]||n[3]||n[5]||n[7],i=n[2]||n[4]||n[6]||n[8];if(i){if(!r){let t=e.getElementById(i);if(t)return-1===this.stack.indexOf(t)?t:void It('SVGtoPDF: loop of circular references for id "'+i+'"')}if(Dt){let t=Ft[r];if(!t){t=Dt(r),("object"!=typeof(s=t)||null===s||"number"!=typeof s.length)&&(t=[t]);for(let e=0;e=0&&n[3]>=0?n:e},this.getPercent=function(t,e){let n=this.attr(t),r=new Z((n||"").trim()),i=r.matchNumber();return i?(r.match("%")&&(i*=.01),r.matchAll()?e:Math.max(0,Math.min(1,i))):e},this.chooseValue=function(t){for(let t=0;t=0&&(n=s);break;case"stroke-miterlimit":s=parseFloat(e),null!=s&&s>=1&&(n=s);break;case"word-spacing":case"letter-spacing":case"stroke-dashoffset":n=this.computeLength(e,this.getViewport())}if(null!=n)return r[t]=n}}return r[t]=i.inherit&&this.inherits?this.inherits.get(t):i.initial},this.getChildren=function(){if(null!=i)return i;let e=[];for(let n=0;n0?t:this.ref?this.ref.getChildren():[]},this.getPaint=function(e,n,i,s){let o="userSpaceOnUse"!==this.attr("patternUnits"),a="objectBoundingBox"===this.attr("patternContentUnits"),l=this.getLength("x",o?1:this.getParentVWidth(),0),h=this.getLength("y",o?1:this.getParentVHeight(),0),u=this.getLength("width",o?1:this.getParentVWidth(),0),d=this.getLength("height",o?1:this.getParentVHeight(),0);a&&!o?(l=(l-e[0])/(e[2]-e[0])||0,h=(h-e[1])/(e[3]-e[1])||0,u=u/(e[2]-e[0])||0,d=d/(e[3]-e[1])||0):!a&&o&&(l=e[0]+l*(e[2]-e[0]),h=e[1]+h*(e[3]-e[1]),u*=e[2]-e[0],d*=e[3]-e[1]);let p=this.getViewbox("viewBox",[0,0,u,d]),y=k(F((this.attr("preserveAspectRatio")||"").trim(),u,d,p[2],p[3],0),[1,0,0,1,-p[0],-p[1]]),m=N(this.attr("patternTransform"));if(a&&(m=k([e[2]-e[0],0,0,e[3]-e[1],e[0],e[1]],m)),m=k(m,[1,0,0,1,l,h]),(m=I(m))&&(y=I(y))&&(u=R(u))&&(d=R(d))){let e=c([0,0,u,d]);return t.transform.apply(t,y),this.drawChildren(i,s),f(e),[g(e,u,d,m),n]}return r?[r[0],r[1]*n]:void 0},this.getVWidth=function(){let t="userSpaceOnUse"!==this.attr("patternUnits"),e=this.getLength("width",t?1:this.getParentVWidth(),0);return this.getViewbox("viewBox",[0,0,e,0])[2]},this.getVHeight=function(){let t="userSpaceOnUse"!==this.attr("patternUnits"),e=this.getLength("height",t?1:this.getParentVHeight(),0);return this.getViewbox("viewBox",[0,0,0,e])[3]}},ht=function(e,n,r){Q.call(this,e,n),this.allowedChildren=["stop"],this.ref=function(){let t=this.getUrl("href")||this.getUrl("xlink:href");if(t&&t.nodeName===e.nodeName)return new ht(t,n,r)}.call(this);let i=this.attr;this.attr=function(t){let e=i.call(this,t);return null!=e||"href"===t||"xlink:href"===t?e:this.ref?this.ref.attr(t):null};let s=this.getChildren;this.getChildren=function(){let t=s.call(this);return t.length>0?t:this.ref?this.ref.getChildren():[]},this.getPaint=function(e,n,i,s){let a=this.getChildren();if(0===a.length)return;if(1===a.length){let t=a[0],e=t.get("stop-color");if("none"===e)return;return C(e,t.get("stop-opacity")*n,s)}let l,h,u,c,f,d,p="userSpaceOnUse"!==this.attr("gradientUnits"),g=N(this.attr("gradientTransform")),y=this.attr("spreadMethod"),m=0,b=0,w=1;if(p&&(g=k([e[2]-e[0],0,0,e[3]-e[1],e[0],e[1]],g)),g=I(g)){if("linearGradient"===this.name)h=this.getLength("x1",p?1:this.getVWidth(),0),u=this.getLength("x2",p?1:this.getVWidth(),p?1:this.getVWidth()),c=this.getLength("y1",p?1:this.getVHeight(),0),f=this.getLength("y2",p?1:this.getVHeight(),0);else{u=this.getLength("cx",p?1:this.getVWidth(),p?.5:.5*this.getVWidth()),f=this.getLength("cy",p?1:this.getVHeight(),p?.5:.5*this.getVHeight()),d=this.getLength("r",p?1:this.getViewport(),p?.5:.5*this.getViewport()),h=this.getLength("fx",p?1:this.getVWidth(),u),c=this.getLength("fy",p?1:this.getVHeight(),f),d<0&&It("SvgElemGradient: negative r value");let t=Math.sqrt(Math.pow(u-h,2)+Math.pow(f-c,2)),e=1;t>d&&(e=d/t,h=u+(h-u)*e,c=f+(c-f)*e),d=Math.max(d,t*e*1.000001)}if("reflect"===y||"repeat"===y){let t=O(g),n=P([e[0],e[1]],t),r=P([e[2],e[1]],t),i=P([e[2],e[3]],t),s=P([e[0],e[3]],t);"linearGradient"===this.name?(m=Math.max((n[0]-u)*(u-h)+(n[1]-f)*(f-c),(r[0]-u)*(u-h)+(r[1]-f)*(f-c),(i[0]-u)*(u-h)+(i[1]-f)*(f-c),(s[0]-u)*(u-h)+(s[1]-f)*(f-c))/(Math.pow(u-h,2)+Math.pow(f-c,2)),b=Math.max((n[0]-h)*(h-u)+(n[1]-c)*(c-f),(r[0]-h)*(h-u)+(r[1]-c)*(c-f),(i[0]-h)*(h-u)+(i[1]-c)*(c-f),(s[0]-h)*(h-u)+(s[1]-c)*(c-f))/(Math.pow(u-h,2)+Math.pow(f-c,2))):m=Math.sqrt(Math.max(Math.pow(n[0]-u,2)+Math.pow(n[1]-f,2),Math.pow(r[0]-u,2)+Math.pow(r[1]-f,2),Math.pow(i[0]-u,2)+Math.pow(i[1]-f,2),Math.pow(s[0]-u,2)+Math.pow(s[1]-f,2)))/d-1,m=Math.ceil(m+.5),b=Math.ceil(b+.5),w=b+1+m}l="linearGradient"===this.name?t.linearGradient(h-b*(u-h),c-b*(f-c),u+m*(u-h),f+m*(f-c)):t.radialGradient(h,c,0,u,f,d+m*d);for(let t=0;t0&&l.stop((t+0)/w,u[0],u[1]),l.stop((t+e)/(m+b+1),u[0],u[1]),i===a.length-1&&e<1&&l.stop((t+1)/w,u[0],u[1])}}return l.setTransform.apply(l,g),[l,1]}return r?[r[0],r[1]*n]:void 0}},ut=function(e,n){$.call(this,e,n),this.dashScale=1,this.getBoundingShape=function(){return this.shape},this.getTransformation=function(){return this.get("transform")},this.drawInDocument=function(e,n){if("hidden"!==this.get("visibility")&&this.shape){if(t.save(),"non-scaling-stroke"===this.get("vector-effect")?this.shape.transform(this.getTransformation()):this.transform(),this.clip(),e)this.shape.insertInDocument(),w(o.white),t.fill(this.get("clip-rule"));else{let r;this.mask()&&(r=c(T()));let i=this.shape.getSubPaths(),s=this.getFill(e,n),o=this.getStroke(e,n),a=this.get("stroke-width"),l=this.get("stroke-linecap");if("non-scaling-stroke"===this.get("vector-effect")&&(a/=function(){const e=T();return t.page.width/e[2]}()),s||o){if(s&&w(s),o){for(let e=0;e0&&i[e].startPoint&&i[e].startPoint.length>1){let n=i[e].startPoint[0],r=i[e].startPoint[1];w(o),"square"===l?t.rect(n-.5*a,r-.5*a,a,a):"round"===l&&t.circle(n,r,.5*a),t.fill()}let e=this.get("stroke-dasharray"),n=this.get("stroke-dashoffset");if(D(this.dashScale,1)){for(let t=0;t0&&i[t].insertInDocument();s&&o?t.fillAndStroke(this.get("fill-rule")):s?t.fill(this.get("fill-rule")):o&&t.stroke()}let h=this.get("marker-start"),u=this.get("marker-mid"),p=this.get("marker-end");if("none"!==h||"none"!==u||"none"!==p){let t=this.shape.getMarkers();if("none"!==h&&t.length>0&&new bt(h,null).drawMarker(!1,n,t[0],a),"none"!==u)for(let e=1;e0&&new bt(p,null).drawMarker(!1,n,t[t.length-1],a)}r&&(f(r),d(r))}t.restore()}}},ct=function(t,e){ut.call(this,t,e);let n=this.getLength("x",this.getVWidth(),0),r=this.getLength("y",this.getVHeight(),0),i=this.getLength("width",this.getVWidth(),0),s=this.getLength("height",this.getVHeight(),0),o=this.getLength("rx",this.getVWidth()),a=this.getLength("ry",this.getVHeight());void 0===o&&void 0===a?o=a=0:void 0===o&&void 0!==a?o=a:void 0!==o&&void 0===a&&(a=o),i>0&&s>0?o&&a?(o=Math.min(o,.5*i),a=Math.min(a,.5*s),this.shape=(new J).M(n+o,r).L(n+i-o,r).A(o,a,0,0,1,n+i,r+a).L(n+i,r+s-a).A(o,a,0,0,1,n+i-o,r+s).L(n+o,r+s).A(o,a,0,0,1,n,r+s-a).L(n,r+a).A(o,a,0,0,1,n+o,r).Z()):this.shape=(new J).M(n,r).L(n+i,r).L(n+i,r+s).L(n,r+s).Z():this.shape=new J},ft=function(t,e){ut.call(this,t,e);let n=this.getLength("cx",this.getVWidth(),0),r=this.getLength("cy",this.getVHeight(),0),i=this.getLength("r",this.getViewport(),0);this.shape=i>0?(new J).M(n+i,r).A(i,i,0,0,1,n-i,r).A(i,i,0,0,1,n+i,r).Z():new J},dt=function(t,e){ut.call(this,t,e);let n=this.getLength("cx",this.getVWidth(),0),r=this.getLength("cy",this.getVHeight(),0),i=this.getLength("rx",this.getVWidth(),0),s=this.getLength("ry",this.getVHeight(),0);this.shape=i>0&&s>0?(new J).M(n+i,r).A(i,s,0,0,1,n-i,r).A(i,s,0,0,1,n+i,r).Z():new J},pt=function(t,e){ut.call(this,t,e);let n=this.getLength("x1",this.getVWidth(),0),r=this.getLength("y1",this.getVHeight(),0),i=this.getLength("x2",this.getVWidth(),0),s=this.getLength("y2",this.getVHeight(),0);this.shape=(new J).M(n,r).L(i,s)},gt=function(t,e){ut.call(this,t,e);let n=this.getNumberList("points");this.shape=new J;for(let t=0;t0?n:void 0,this.dashScale=void 0!==this.pathLength?this.shape.totalLength/this.pathLength:1},bt=function(e,n){tt.call(this,e,n);let r=this.getLength("markerWidth",this.getParentVWidth(),3),i=this.getLength("markerHeight",this.getParentVHeight(),3),s=this.getViewbox("viewBox",[0,0,r,i]);this.getVWidth=function(){return s[2]},this.getVHeight=function(){return s[3]},this.drawMarker=function(e,n,o,a){t.save();let l=this.attr("orient"),h=this.attr("markerUnits"),u="auto"===l?o[2]:(parseFloat(l)||0)*Math.PI/180,p="userSpaceOnUse"===h?1:a;t.transform(Math.cos(u)*p,Math.sin(u)*p,-Math.sin(u)*p,Math.cos(u)*p,o[0],o[1]);let g,y=this.getLength("refX",this.getVWidth(),0),m=this.getLength("refY",this.getVHeight(),0),b=F(this.attr("preserveAspectRatio"),r,i,s[2],s[3],.5);"hidden"===this.get("overflow")&&t.rect(b[0]*(s[0]+s[2]/2-y)-r/2,b[3]*(s[1]+s[3]/2-m)-i/2,r,i).clip(),t.transform.apply(t,b),t.translate(-y,-m),this.get("opacity")<1&&!e&&(g=c(T())),this.drawChildren(e,n),g&&(f(g),t.fillOpacity(this.get("opacity")),d(g)),t.restore()}},wt=function(e,n){tt.call(this,e,n),this.useMask=function(e){let n=c(T());t.save(),t.transform.apply(t,this.get("transform")),"objectBoundingBox"===this.attr("clipPathUnits")&&t.transform(e[2]-e[0],0,0,e[3]-e[1],e[0],e[1]),this.clip(),this.drawChildren(!0,!1),t.restore(),f(n),p(n,!0)}},vt=function(e,n){tt.call(this,e,n),this.useMask=function(e){let n,r,i,s,o=c(T());t.save(),"userSpaceOnUse"===this.attr("maskUnits")?(n=this.getLength("x",this.getVWidth(),-.1*(e[2]-e[0])+e[0]),r=this.getLength("y",this.getVHeight(),-.1*(e[3]-e[1])+e[1]),i=this.getLength("width",this.getVWidth(),1.2*(e[2]-e[0])),s=this.getLength("height",this.getVHeight(),1.2*(e[3]-e[1]))):(n=this.getLength("x",this.getVWidth(),-.1)*(e[2]-e[0])+e[0],r=this.getLength("y",this.getVHeight(),-.1)*(e[3]-e[1])+e[1],i=this.getLength("width",this.getVWidth(),1.2)*(e[2]-e[0]),s=this.getLength("height",this.getVHeight(),1.2)*(e[3]-e[1])),"objectBoundingBox"===this.attr("maskContentUnits")&&t.transform(e[2]-e[0],0,0,e[3]-e[1],e[0],e[1]),this.clip(),this.drawChildren(!1,!0),t.restore(),f(o),p(o,!0)}},At=function(e,n){$.call(this,e,n),this.allowedChildren=["tspan","#text","#cdata-section","a"],this.isText=!0,this.getBoundingShape=function(){let t=new J;for(let e=0;e0?t:this.pathObject.totalLength,this.pathScale=this.pathObject.totalLength/this.pathLength}else if((n=this.getUrl("href")||this.getUrl("xlink:href"))&&"path"===n.nodeName){let t=new mt(n,this);this.pathObject=t.shape.clone().transform(t.get("transform")),this.pathLength=this.chooseValue(t.pathLength,this.pathObject.totalLength),this.pathScale=this.pathObject.totalLength/this.pathLength}},Ct=function(e,n){At.call(this,e,n),this.allowedChildren=["textPath","tspan","#text","#cdata-section","a"],function(n){let r,i,s="",o=e.textContent,a=[],l=[],h=0,u=0;function c(){if(l.length){let t=l[l.length-1],e=l[0],n=t.x+t.width-e.x,s={startltr:0,middleltr:.5,endltr:1,startrtl:1,middlertl:.5,endrtl:0}[r+i]*n||0;for(let t=0;tn||o<0)t._pos[s].hidden=!0;else{let n=e.getPointAtLength(o*r);D(r,1)&&(t._pos[s].scale*=r,t._pos[s].width*=r),t._pos[s].x=n[0]-.5*t._pos[s].width*Math.cos(n[2])-t._pos[s].y*Math.sin(n[2]),t._pos[s].y=n[1]-.5*t._pos[s].width*Math.sin(n[2])+t._pos[s].y*Math.cos(n[2]),t._pos[s].rotate=n[2]+t._pos[s].rotate,t._pos[s].continuous=!1}}}else for(let e=0;e0&&n<1/0)for(let e=0;e=2){let n=(e-(o-s))/(t.length-1);for(let e=0;eo)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,l.prototype),e}function l(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return c(t)}return h(t,e,n)}function h(t,e,n){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!l.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=0|g(t,e);let r=a(n);const i=r.write(t,e);return i!==n&&(r=r.slice(0,i)),r}(t,e);if(ArrayBuffer.isView(t))return function(t){if(Y(t,Uint8Array)){const e=new Uint8Array(t);return d(e.buffer,e.byteOffset,e.byteLength)}return f(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Y(t,ArrayBuffer)||t&&Y(t.buffer,ArrayBuffer))return d(t,e,n);if("undefined"!=typeof SharedArrayBuffer&&(Y(t,SharedArrayBuffer)||t&&Y(t.buffer,SharedArrayBuffer)))return d(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return l.from(r,e,n);const i=function(t){if(l.isBuffer(t)){const e=0|p(t.length),n=a(e);return 0===n.length||t.copy(n,0,0,e),n}return void 0!==t.length?"number"!=typeof t.length||K(t.length)?a(0):f(t):"Buffer"===t.type&&Array.isArray(t.data)?f(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return l.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function c(t){return u(t),a(t<0?0:0|p(t))}function f(t){const e=t.length<0?0:0|p(t.length),n=a(e);for(let r=0;r=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function g(t,e){if(l.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Y(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return X(t).length;default:if(i)return r?-1:q(t).length;e=(""+e).toLowerCase(),i=!0}}function y(t,e,n){let r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return O(this,e,n);case"utf8":case"utf-8":return k(this,e,n);case"ascii":return E(this,e,n);case"latin1":case"binary":return T(this,e,n);case"base64":return C(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function m(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function b(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),K(n=+n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=l.from(e,r)),l.isBuffer(e))return 0===e.length?-1:w(t,e,n,r,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):w(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function w(t,e,n,r,i){let s,o=1,a=t.length,l=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;o=2,a/=2,l/=2,n/=2}function h(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){let r=-1;for(s=n;sa&&(n=a-l),s=n;s>=0;s--){let n=!0;for(let r=0;ri&&(r=i):r=i;const s=e.length;let o;for(r>s/2&&(r=s/2),o=0;o>8,i=n%256,s.push(i),s.push(r);return s}(e,t.length-n),t,n,r)}function C(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function k(t,e,n){n=Math.min(t.length,n);const r=[];let i=e;for(;i239?4:e>223?3:e>191?2:1;if(i+o<=n){let n,r,a,l;switch(o){case 1:e<128&&(s=e);break;case 2:n=t[i+1],128==(192&n)&&(l=(31&e)<<6|63&n,l>127&&(s=l));break;case 3:n=t[i+1],r=t[i+2],128==(192&n)&&128==(192&r)&&(l=(15&e)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(s=l));break;case 4:n=t[i+1],r=t[i+2],a=t[i+3],128==(192&n)&&128==(192&r)&&128==(192&a)&&(l=(15&e)<<18|(63&n)<<12|(63&r)<<6|63&a,l>65535&&l<1114112&&(s=l))}}null===s?(s=65533,o=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),i+=o}return function(t){const e=t.length;if(e<=P)return String.fromCharCode.apply(String,t);let n="",r=0;for(;rr.length?(l.isBuffer(e)||(e=l.from(e)),e.copy(r,i)):Uint8Array.prototype.set.call(r,e,i);else{if(!l.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(r,i)}i+=e.length}return r},l.byteLength=g,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;en&&(t+=" ... "),""},s&&(l.prototype[s]=l.prototype.inspect),l.prototype.compare=function(t,e,n,r,i){if(Y(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;let s=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(e>>>=0);const a=Math.min(s,o),h=this.slice(r,i),u=t.slice(e,n);for(let t=0;t>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let s=!1;for(;;)switch(r){case"hex":return v(this,t,e,n);case"utf8":case"utf-8":return A(this,t,e,n);case"ascii":case"latin1":case"binary":return x(this,t,e,n);case"base64":return S(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,t,e,n);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),s=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const P=4096;function E(t,e,n){let r="";n=Math.min(t.length,n);for(let i=e;ir)&&(n=r);let i="";for(let r=e;rn)throw new RangeError("Trying to access beyond buffer length")}function B(t,e,n,r,i,s){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function M(t,e,n,r,i){j(e,r,i,t,n,7);let s=Number(e&BigInt(4294967295));t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s;let o=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o,n}function D(t,e,n,r,i){j(e,r,i,t,n,7);let s=Number(e&BigInt(4294967295));t[n+7]=s,s>>=8,t[n+6]=s,s>>=8,t[n+5]=s,s>>=8,t[n+4]=s;let o=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=o,o>>=8,t[n+2]=o,o>>=8,t[n+1]=o,o>>=8,t[n]=o,n+8}function R(t,e,n,r,i,s){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(t,e,n,r,s){return e=+e,n>>>=0,s||R(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function F(t,e,n,r,s){return e=+e,n>>>=0,s||R(t,0,n,8),i.write(t,e,n,r,52,8),n+8}l.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e>>=0,e>>>=0,n||L(t,e,this.length);let r=this[t],i=1,s=0;for(;++s>>=0,e>>>=0,n||L(t,e,this.length);let r=this[t+--e],i=1;for(;e>0&&(i*=256);)r+=this[t+--e]*i;return r},l.prototype.readUint8=l.prototype.readUInt8=function(t,e){return t>>>=0,e||L(t,1,this.length),this[t]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(t,e){return t>>>=0,e||L(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(t,e){return t>>>=0,e||L(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(t,e){return t>>>=0,e||L(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(t,e){return t>>>=0,e||L(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readBigUInt64LE=Q((function(t){V(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||H(t,this.length-8);const r=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(r)+(BigInt(i)<>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||H(t,this.length-8);const r=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(r)<>>=0,e>>>=0,n||L(t,e,this.length);let r=this[t],i=1,s=0;for(;++s=i&&(r-=Math.pow(2,8*e)),r},l.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||L(t,e,this.length);let r=e,i=1,s=this[t+--r];for(;r>0&&(i*=256);)s+=this[t+--r]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*e)),s},l.prototype.readInt8=function(t,e){return t>>>=0,e||L(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){t>>>=0,e||L(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(t,e){t>>>=0,e||L(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(t,e){return t>>>=0,e||L(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return t>>>=0,e||L(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readBigInt64LE=Q((function(t){V(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||H(t,this.length-8);const r=this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24);return(BigInt(r)<>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||H(t,this.length-8);const r=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(r)<>>=0,e||L(t,4,this.length),i.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return t>>>=0,e||L(t,4,this.length),i.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return t>>>=0,e||L(t,8,this.length),i.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return t>>>=0,e||L(t,8,this.length),i.read(this,t,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(t,e,n,r){t=+t,e>>>=0,n>>>=0,r||B(this,t,e,n,Math.pow(2,8*n)-1,0);let i=1,s=0;for(this[e]=255&t;++s>>=0,n>>>=0,r||B(this,t,e,n,Math.pow(2,8*n)-1,0);let i=n-1,s=1;for(this[e+i]=255&t;--i>=0&&(s*=256);)this[e+i]=t/s&255;return e+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,1,255,0),this[e]=255&t,e+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},l.prototype.writeBigUInt64LE=Q((function(t,e){return void 0===e&&(e=0),M(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=Q((function(t,e){return void 0===e&&(e=0),D(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);B(this,t,e,n,r-1,-r)}let i=0,s=1,o=0;for(this[e]=255&t;++i>>=0,!r){const r=Math.pow(2,8*n-1);B(this,t,e,n,r-1,-r)}let i=n-1,s=1,o=0;for(this[e+i]=255&t;--i>=0&&(s*=256);)t<0&&0===o&&0!==this[e+i+1]&&(o=1),this[e+i]=(t/s|0)-o&255;return e+n},l.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},l.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},l.prototype.writeBigInt64LE=Q((function(t,e){return void 0===e&&(e=0),M(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=Q((function(t,e){return void 0===e&&(e=0),D(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(t,e,n){return N(this,t,e,!0,n)},l.prototype.writeFloatBE=function(t,e,n){return N(this,t,e,!1,n)},l.prototype.writeDoubleLE=function(t,e,n){return F(this,t,e,!0,n)},l.prototype.writeDoubleBE=function(t,e,n){return F(this,t,e,!1,n)},l.prototype.copy=function(t,e,n,r){if(!l.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function j(t,e,n,r,i,s){if(t>n||t3?0===e||e===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(s+1)}${r}`:`>= -(2${r} ** ${8*(s+1)-1}${r}) and < 2 ** ${8*(s+1)-1}${r}`:`>= ${e}${r} and <= ${n}${r}`,new U.ERR_OUT_OF_RANGE("value",i,t)}!function(t,e,n){V(e,"offset"),void 0!==t[e]&&void 0!==t[e+n]||H(e,t.length-(n+1))}(r,i,s)}function V(t,e){if("number"!=typeof t)throw new U.ERR_INVALID_ARG_TYPE(e,"number",t)}function H(t,e,n){if(Math.floor(t)!==t)throw V(t,n),new U.ERR_OUT_OF_RANGE(n||"offset","an integer",t);if(e<0)throw new U.ERR_BUFFER_OUT_OF_BOUNDS;throw new U.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${e}`,t)}z("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),z("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),z("ERR_OUT_OF_RANGE",(function(t,e,n){let r=`The value of "${t}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=W(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=W(i)),i+="n"),r+=` It must be ${e}. Received ${i}`,r}),RangeError);const G=/[^+/0-9A-Za-z-_]/g;function q(t,e){let n;e=e||1/0;const r=t.length;let i=null;const s=[];for(let o=0;o55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&s.push(239,191,189);continue}if(o+1===r){(e-=3)>-1&&s.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&s.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&s.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;s.push(n)}else if(n<2048){if((e-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function X(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(G,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Z(t,e,n,r){let i;for(i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function Y(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function K(t){return t!=t}const J=function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)e[r+i]=t[n]+t[i]}return e}();function Q(t){return"undefined"==typeof BigInt?$:t}function $(){throw new Error("BigInt not supported")}},4406(t){"use strict";t.exports=class{constructor(t){this.stateTable=t.stateTable,this.accepting=t.accepting,this.tags=t.tags}match(t){var e=this;return{*[Symbol.iterator](){for(var n=1,r=null,i=null,s=null,o=0;o=r&&(yield[r,i,e.tags[s]]),n=e.stateTable[1][a],r=null),0!==n&&null==r&&(r=o),e.accepting[n]&&(i=o),0===n&&(n=1)}null!=r&&null!=i&&i>=r&&(yield[r,i,e.tags[n]])}}}apply(t,e){for(var n of this.match(t)){var r=n[0],i=n[1],s=n[2];for(var o of s)"function"==typeof e[o]&&e[o](r,i,t.slice(r,i+1))}}}},3915(t,e,n){"use strict";n(8376),n(6401),n(2017),function(t){var e="undefined"!=typeof Uint8Array?Uint8Array:Array,n="+".charCodeAt(0),r="/".charCodeAt(0),i="0".charCodeAt(0),s="a".charCodeAt(0),o="A".charCodeAt(0),a="-".charCodeAt(0),l="_".charCodeAt(0);function h(t){var e=t.charCodeAt(0);return e===n||e===a?62:e===r||e===l?63:e0)throw new Error("Invalid string. Length must be a multiple of 4");var l=t.length;o="="===t.charAt(l-2)?2:"="===t.charAt(l-1)?1:0,a=new e(3*t.length/4-o),i=o>0?t.length-4:t.length;var u=0;function c(t){a[u++]=t}for(n=0,r=0;n>16),c((65280&s)>>8),c(255&s);return 2===o?c(255&(s=h(t.charAt(n))<<2|h(t.charAt(n+1))>>4)):1===o&&(c((s=h(t.charAt(n))<<10|h(t.charAt(n+1))<<4|h(t.charAt(n+2))>>2)>>8&255),c(255&s)),a},t.fromByteArray=function(t){var e,n,r,i,s=t.length%3,o="";function a(t){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)}for(e=0,r=t.length-s;e>18&63)+a(i>>12&63)+a(i>>6&63)+a(63&i);switch(s){case 1:o+=a((n=t[t.length-1])>>2),o+=a(n<<4&63),o+="==";break;case 2:o+=a((n=(t[t.length-2]<<8)+t[t.length-1])>>10),o+=a(n>>4&63),o+=a(n<<2&63),o+="="}return o}}(e)},182(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n}},{key:"concat",value:function(t){if(0===this.length)return l.alloc(0);for(var e,n,r,i=l.allocUnsafe(t>>>0),s=this.head,o=0;s;)e=s.data,n=i,r=o,l.prototype.copy.call(e,n,r),o+=s.data.length,s=s.next;return i}},{key:"consume",value:function(t,e){var n;return ti.length?i.length:t;if(s===i.length?r+=i:r+=i.slice(0,t),0==(t-=s)){s===i.length?(++n,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(s));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(t){var e=l.allocUnsafe(t),n=this.head,r=1;for(n.data.copy(e),t-=n.data.length;n=n.next;){var i=n.data,s=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,s),0==(t-=s)){s===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(s));break}++r}return this.length-=r,e}},{key:u,value:function(t,e){return h(this,i(i({},e),{},{depth:0,customInspect:!1}))}}])&&o(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}()},5691(t,e,n){"use strict";var r=n(783),i=r.Buffer;function s(t,e){for(var n in t)e[n]=t[n]}function o(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(s(r,e),e.Buffer=o),s(i,o),o.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},o.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},7571(t,e,n){"use strict";n(8376),n(6401),n(2017);const r=n(3483),i=n(6016).swap32LE;t.exports=class{constructor(t){const e="function"==typeof t.readUInt32BE&&"function"==typeof t.slice;if(e||t instanceof Uint8Array){let n;if(e)this.highStart=t.readUInt32LE(0),this.errorValue=t.readUInt32LE(4),n=t.readUInt32LE(8),t=t.slice(12);else{const e=new DataView(t.buffer);this.highStart=e.getUint32(0,!0),this.errorValue=e.getUint32(4,!0),n=e.getUint32(8,!0),t=t.subarray(12)}t=r(t,new Uint8Array(n)),t=r(t,new Uint8Array(n)),i(t),this.data=new Uint32Array(t.buffer)}else{var n=t;this.data=n.data,this.highStart=n.highStart,this.errorValue=n.errorValue}}get(t){let e;return t<0||t>1114111?this.errorValue:t<55296||t>56319&&t<=65535?(e=(this.data[t>>5]<<2)+(31&t),this.data[e]):t<=65535?(e=(this.data[2048+(t-55296>>5)]<<2)+(31&t),this.data[e]):t>11)],e=this.data[e+(t>>5&63)],e=(e<<2)+(31&t),this.data[e]):this.data[this.data.length-4]}}},6016(t,e,n){"use strict";n(8376),n(6401),n(2017);const r=18===new Uint8Array(new Uint32Array([305419896]).buffer)[0],i=(t,e,n)=>{let r=t[e];t[e]=t[n],t[n]=r};t.exports={swap32LE:t=>{r&&(t=>{const e=t.length;for(let n=0;nthis._compareKeys(t,e))),e=["<<"];if(this.limits&&t.length>1){const n=t[0],r=t[t.length-1];e.push(` /Limits ${S.convert([this._dataForKey(n),this._dataForKey(r)])}`)}e.push(` /${this._keysName()} [`);for(let n of t)e.push(` ${S.convert(this._dataForKey(n))} ${S.convert(this._items[n])}`);return e.push("]"),e.push(">>"),e.join("\n")}_compareKeys(){throw new Error("Must be implemented by subclasses")}_keysName(){throw new Error("Must be implemented by subclasses")}_dataForKey(){throw new Error("Must be implemented by subclasses")}}class m{constructor(t,e,n,r,i,s){this.id="CS"+Object.keys(t.spotColors).length,this.name=e,this.values=[n,r,i,s],this.ref=t.ref(["Separation",x(this.name),"DeviceCMYK",{Range:[0,1,0,1,0,1,0,1],C0:[0,0,0,0],C1:this.values.map((t=>t/100)),FunctionType:2,Domain:[0,1],N:1}]),this.ref.end()}toString(){return`${this.ref.id} 0 R`}}const b=(t,e)=>(Array(e+1).join("0")+t).slice(-e),w=t=>t>127||t>32&&127!==t&&35!==t&&37!==t&&40!==t&&41!==t&&47!==t&&60!==t&&62!==t&&91!==t&&93!==t&&123!==t&&125!==t,v=/[\n\r\t\b\f()\\]/g,A={"\n":"\\n","\r":"\\r","\t":"\\t","\b":"\\b","\f":"\\f","\\":"\\\\","(":"\\(",")":"\\)"},x=function(t){let e="";for(const n of t){const t=n.charCodeAt(0);w(t)?e+=n:e+=`#${t.toString(16).toUpperCase().padStart(2,"0")}`}return e};class S{static convert(t,e){if(void 0===e&&(e=null),"string"==typeof t)return`/${t}`;if(t instanceof String){let n,i=t,s=!1;for(let t=0,e=i.length;t127){s=!0;break}return n=s?function(t){const e=t.length;if(1&e)throw new Error("Buffer length must be even");for(let n=0,r=e-1;nA[t])),`(${i})`}if(r.isBuffer(t))return`<${t.toString("hex")}>`;if(t instanceof g||t instanceof y||t instanceof m)return t.toString();if(t instanceof Date){let n=`D:${b(t.getUTCFullYear(),4)}`+b(t.getUTCMonth()+1,2)+b(t.getUTCDate(),2)+b(t.getUTCHours(),2)+b(t.getUTCMinutes(),2)+b(t.getUTCSeconds(),2)+"Z";return e&&(n=e(r.from(n,"ascii")).toString("binary"),n=n.replace(v,(t=>A[t]))),`(${n})`}if(Array.isArray(t))return`[${t.map((t=>S.convert(t,e))).join(" ")}]`;if("[object Object]"==={}.toString.call(t)){const n=["<<"];for(let r in t){const i=t[r];n.push(`/${r} ${S.convert(i,e)}`)}return n.push(">>"),n.join("\n")}return"number"==typeof t?S.number(t):`${t}`}static number(t){if(t>-1e21&&t<1e21)return Math.round(1e6*t)/1e6;throw new Error(`unsupported number: ${t}`)}}class _ extends g{constructor(t,e,n){void 0===n&&(n={}),super(),this.document=t,this.id=e,this.data=n,this.gen=0,this.compress=this.document.compress&&!this.data.Filter,this.uncompressedLength=0,this.buffer=[]}write(t){t instanceof Uint8Array||(t=r.from(t+"\n","binary")),this.uncompressedLength+=t.length,null==this.data.Length&&(this.data.Length=0),this.buffer.push(t),this.data.Length+=t.length,this.compress&&(this.data.Filter="FlateDecode")}end(t){t&&this.write(t),this.finalize()}finalize(){this.offset=this.document._offset;const t=this.document._security?this.document._security.getEncryptFn(this.id,this.gen):null;this.buffer.length&&(this.buffer=r.concat(this.buffer),this.compress&&(this.buffer=s.default.deflateSync(this.buffer)),t&&(this.buffer=t(this.buffer)),this.data.Length=this.buffer.length),this.document._write(`${this.id} ${this.gen} obj`),this.document._write(S.convert(this.data,t)),this.buffer.length&&(this.document._write("stream"),this.document._write(this.buffer),this.buffer=[],this.document._write("\nendstream")),this.document._write("endobj"),this.document._refEnd(this)}toString(){return`${this.id} ${this.gen} R`}}const C=new Float32Array(1),k=new Uint32Array(C.buffer);function P(t){const e=Math.fround(t);return e<=t?e:(C[0]=t,t<=0?k[0]+=1:k[0]-=1,C[0])}function E(t,e,n){return void 0===e&&(e=void 0),void 0===n&&(n=t=>t),(null==t||"object"==typeof t&&0===Object.keys(t).length)&&(t=e),null==t||"object"!=typeof t?t={top:t,right:t,bottom:t,left:t}:Array.isArray(t)&&(t=2===t.length?{vertical:t[0],horizontal:t[1]}:{top:t[0],right:t[1],bottom:t[2],left:t[3]}),("vertical"in t||"horizontal"in t)&&(t={top:t.vertical,right:t.horizontal,bottom:t.vertical,left:t.horizontal}),{top:n(t.top),right:n(t.right),bottom:n(t.bottom),left:n(t.left)}}const T=1/2.54;function O(t){return 0===t?1:90===t?0:180===t?-1:270===t?0:Math.cos(t*Math.PI/180)}function I(t){return 0===t?0:90===t?1:180===t?0:270===t?-1:Math.sin(t*Math.PI/180)}const L={top:72,left:72,bottom:72,right:72},B={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],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],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],EXECUTIVE:[521.86,756],FOLIO:[612,936],LEGAL:[612,1008],LETTER:[612,792],TABLOID:[792,1224]};class M{constructor(t,e){void 0===e&&(e={}),this.document=t,this._options=e,this.size=e.size||"letter",this.layout=e.layout||"portrait",this.userUnit=e.userUnit||1;const n=Array.isArray(this.size)?this.size:B[this.size.toUpperCase()];this.width=n["portrait"===this.layout?0:1],this.height=n["portrait"===this.layout?1:0],this.content=this.document.ref(),e.font&&t.font(e.font,e.fontFamily),e.fontSize&&t.fontSize(e.fontSize),this.margins=E(e.margin??e.margins,L,(e=>t.sizeToPoint(e,0,this))),this.resources=this.document.ref({ProcSet:["PDF","Text","ImageB","ImageC","ImageI"]}),this.dictionary=this.document.ref({Type:"Page",Parent:this.document._root.data.Pages,MediaBox:[0,0,this.width,this.height],Contents:this.content,Resources:this.resources,UserUnit:this.userUnit}),this.markings=[]}get fonts(){const t=this.resources.data;return null!=t.Font?t.Font:t.Font={}}get xobjects(){const t=this.resources.data;return null!=t.XObject?t.XObject:t.XObject={}}get ext_gstates(){const t=this.resources.data;return null!=t.ExtGState?t.ExtGState:t.ExtGState={}}get patterns(){const t=this.resources.data;return null!=t.Pattern?t.Pattern:t.Pattern={}}get colorSpaces(){const t=this.resources.data;return t.ColorSpace||(t.ColorSpace={})}get annotations(){const t=this.dictionary.data;return null!=t.Annots?t.Annots:t.Annots=[]}get structParentTreeKey(){const t=this.dictionary.data;return null!=t.StructParents?t.StructParents:t.StructParents=this.document.createStructParentTreeNextKey()}get contentWidth(){return this.width-this.margins.left-this.margins.right}get contentHeight(){return this.height-this.margins.top-this.margins.bottom}maxY(){return this.height-this.margins.bottom}write(t){return this.content.write(t)}_setTabOrder(){!this.dictionary.Tabs&&this.document.hasMarkInfoDictionary()&&(this.dictionary.data.Tabs="S")}end(){this._setTabOrder(),this.dictionary.end(),this.resources.data.ColorSpace=this.resources.data.ColorSpace||{};for(let t of Object.values(this.document.spotColors))this.resources.data.ColorSpace[t.id]=t;return this.resources.end(),this.content.end()}}class D extends y{_compareKeys(t,e){return t.localeCompare(e)}_keysName(){return"Names"}_dataForKey(t){return new String(t)}}function R(t){return new Uint8Array(a.default.arrayBuffer(t))}function N(t){return(0,l.sha256)(t)}function F(t,e,n,r){return void 0===r&&(r=!0),(0,h.cbc)(e,n,{disablePadding:!r}).encrypt(t)}function U(t,e){const n=new Uint8Array(256);for(let t=0;t<256;t++)n[t]=t;let r=0;for(let t=0;t<256;t++){r=r+n[t]+e[t%e.length]&255;var i=[n[r],n[t]];n[t]=i[0],n[r]=i[1]}const s=new Uint8Array(t.length);for(let e=0,r=0,i=0;i=e[s]&&t<=e[s+1])return!0;t>e[s+1]?n=i+1:r=i-1}return!1}const W=[545,545,564,591,686,687,751,767,848,863,880,883,886,889,891,893,895,899,907,907,909,909,930,930,975,975,1015,1023,1159,1159,1231,1231,1270,1271,1274,1279,1296,1328,1367,1368,1376,1376,1416,1416,1419,1424,1442,1442,1466,1466,1477,1487,1515,1519,1525,1547,1549,1562,1564,1566,1568,1568,1595,1599,1622,1631,1774,1775,1791,1791,1806,1806,1837,1839,1867,1919,1970,2304,2308,2308,2362,2363,2382,2383,2389,2391,2417,2432,2436,2436,2445,2446,2449,2450,2473,2473,2481,2481,2483,2485,2490,2491,2493,2493,2501,2502,2505,2506,2510,2518,2520,2523,2526,2526,2532,2533,2555,2561,2563,2564,2571,2574,2577,2578,2601,2601,2609,2609,2612,2612,2615,2615,2618,2619,2621,2621,2627,2630,2633,2634,2638,2648,2653,2653,2655,2661,2677,2688,2692,2692,2700,2700,2702,2702,2706,2706,2729,2729,2737,2737,2740,2740,2746,2747,2758,2758,2762,2762,2766,2767,2769,2783,2785,2789,2800,2816,2820,2820,2829,2830,2833,2834,2857,2857,2865,2865,2868,2869,2874,2875,2884,2886,2889,2890,2894,2901,2904,2907,2910,2910,2914,2917,2929,2945,2948,2948,2955,2957,2961,2961,2966,2968,2971,2971,2973,2973,2976,2978,2981,2983,2987,2989,2998,2998,3002,3005,3011,3013,3017,3017,3022,3030,3032,3046,3059,3072,3076,3076,3085,3085,3089,3089,3113,3113,3124,3124,3130,3133,3141,3141,3145,3145,3150,3156,3159,3167,3170,3173,3184,3201,3204,3204,3213,3213,3217,3217,3241,3241,3252,3252,3258,3261,3269,3269,3273,3273,3278,3284,3287,3293,3295,3295,3298,3301,3312,3329,3332,3332,3341,3341,3345,3345,3369,3369,3386,3389,3396,3397,3401,3401,3406,3414,3416,3423,3426,3429,3440,3457,3460,3460,3479,3481,3506,3506,3516,3516,3518,3519,3527,3529,3531,3534,3541,3541,3543,3543,3552,3569,3573,3584,3643,3646,3676,3712,3715,3715,3717,3718,3721,3721,3723,3724,3726,3731,3736,3736,3744,3744,3748,3748,3750,3750,3752,3753,3756,3756,3770,3770,3774,3775,3781,3781,3783,3783,3790,3791,3802,3803,3806,3839,3912,3912,3947,3952,3980,3983,3992,3992,4029,4029,4045,4046,4048,4095,4130,4130,4136,4136,4139,4139,4147,4149,4154,4159,4186,4255,4294,4303,4345,4346,4348,4351,4442,4446,4515,4519,4602,4607,4615,4615,4679,4679,4681,4681,4686,4687,4695,4695,4697,4697,4702,4703,4743,4743,4745,4745,4750,4751,4783,4783,4785,4785,4790,4791,4799,4799,4801,4801,4806,4807,4815,4815,4823,4823,4847,4847,4879,4879,4881,4881,4886,4887,4895,4895,4935,4935,4955,4960,4989,5023,5109,5120,5751,5759,5789,5791,5873,5887,5901,5901,5909,5919,5943,5951,5972,5983,5997,5997,6001,6001,6004,6015,6109,6111,6122,6143,6159,6159,6170,6175,6264,6271,6314,7679,7836,7839,7930,7935,7958,7959,7966,7967,8006,8007,8014,8015,8024,8024,8026,8026,8028,8028,8030,8030,8062,8063,8117,8117,8133,8133,8148,8149,8156,8156,8176,8177,8181,8181,8191,8191,8275,8278,8280,8286,8292,8297,8306,8307,8335,8351,8370,8399,8427,8447,8507,8508,8524,8530,8580,8591,9167,9215,9255,9279,9291,9311,9471,9471,9748,9749,9752,9752,9854,9855,9866,9984,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10079,10080,10133,10135,10160,10160,10175,10191,10220,10223,11008,11903,11930,11930,12020,12031,12246,12271,12284,12287,12352,12352,12439,12440,12544,12548,12589,12592,12687,12687,12728,12783,12829,12831,12868,12880,12924,12926,13004,13007,13055,13055,13175,13178,13278,13279,13311,13311,19894,19967,40870,40959,42125,42127,42183,44031,55204,55295,64046,64047,64107,64255,64263,64274,64280,64284,64311,64311,64317,64317,64319,64319,64322,64322,64325,64325,64434,64466,64832,64847,64912,64913,64968,64975,65021,65023,65040,65055,65060,65071,65095,65096,65107,65107,65127,65127,65132,65135,65141,65141,65277,65278,65280,65280,65471,65473,65480,65481,65488,65489,65496,65497,65501,65503,65511,65511,65519,65528,65536,66303,66335,66335,66340,66351,66379,66559,66598,66599,66638,118783,119030,119039,119079,119081,119262,119807,119893,119893,119965,119965,119968,119969,119971,119972,119975,119976,119981,119981,119994,119994,119996,119996,120001,120001,120004,120004,120070,120070,120075,120076,120085,120085,120093,120093,120122,120122,120127,120127,120133,120133,120135,120137,120145,120145,120484,120487,120778,120781,120832,131069,173783,194559,195102,196605,196608,262141,262144,327677,327680,393213,393216,458749,458752,524285,524288,589821,589824,655357,655360,720893,720896,786429,786432,851965,851968,917501,917504,917504,917506,917535,917632,983037],j=t=>z(t,W),V=[173,173,847,847,6150,6150,6155,6155,6156,6156,6157,6157,8203,8203,8204,8204,8205,8205,8288,8288,65024,65024,65025,65025,65026,65026,65027,65027,65028,65028,65029,65029,65030,65030,65031,65031,65032,65032,65033,65033,65034,65034,65035,65035,65036,65036,65037,65037,65038,65038,65039,65039,65279,65279],H=[160,160,5760,5760,8192,8192,8193,8193,8194,8194,8195,8195,8196,8196,8197,8197,8198,8198,8199,8199,8200,8200,8201,8201,8202,8202,8203,8203,8239,8239,8287,8287,12288,12288],G=[128,159,1757,1757,1807,1807,6158,6158,8204,8204,8205,8205,8232,8232,8233,8233,8288,8288,8289,8289,8290,8290,8291,8291,8298,8303,65279,65279,65529,65532,119155,119162],q=[64976,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1114110,1114111],X=[0,31,127,127,832,832,833,833,8206,8206,8207,8207,8234,8234,8235,8235,8236,8236,8237,8237,8238,8238,8298,8298,8299,8299,8300,8300,8301,8301,8302,8302,8303,8303,12272,12283,55296,57343,57344,63743,65529,65529,65530,65530,65531,65531,65532,65532,65533,65533,917505,917505,917536,917631,983040,1048573,1048576,1114109],Z=t=>z(t,H)||z(t,X)||z(t,G)||z(t,q),Y=[1470,1470,1472,1472,1475,1475,1488,1514,1520,1524,1563,1563,1567,1567,1569,1594,1600,1610,1645,1647,1649,1749,1757,1757,1765,1766,1786,1790,1792,1805,1808,1808,1810,1836,1920,1957,1969,1969,8207,8207,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65020,65136,65140,65142,65276],K=t=>z(t,Y),J=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,544,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,1013,1024,1154,1162,1230,1232,1269,1272,1273,1280,1295,1329,1366,1369,1375,1377,1415,1417,1417,2307,2307,2309,2361,2365,2368,2377,2380,2384,2384,2392,2401,2404,2416,2434,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2494,2496,2503,2504,2507,2508,2519,2519,2524,2525,2527,2529,2534,2545,2548,2554,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2622,2624,2649,2652,2654,2654,2662,2671,2674,2676,2691,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2752,2761,2761,2763,2764,2768,2768,2784,2784,2790,2799,2818,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2878,2880,2880,2887,2888,2891,2892,2903,2903,2908,2909,2911,2913,2918,2928,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3007,3009,3010,3014,3016,3018,3020,3031,3031,3047,3058,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3137,3140,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3262,3264,3268,3271,3272,3274,3275,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3392,3398,3400,3402,3404,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3535,3537,3544,3551,3570,3572,3585,3632,3634,3635,3648,3654,3663,3675,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3792,3801,3804,3805,3840,3863,3866,3892,3894,3894,3896,3896,3902,3911,3913,3946,3967,3967,3973,3973,3976,3979,4030,4037,4039,4044,4047,4047,4096,4129,4131,4135,4137,4138,4140,4140,4145,4145,4152,4152,4160,4183,4256,4293,4304,4344,4347,4347,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4961,4988,5024,5108,5121,5750,5761,5786,5792,5872,5888,5900,5902,5905,5920,5937,5941,5942,5952,5969,5984,5996,5998,6e3,6016,6070,6078,6085,6087,6088,6100,6106,6108,6108,6112,6121,6160,6169,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8206,8206,8305,8305,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8509,8511,8517,8521,8544,8579,9014,9082,9109,9109,9372,9449,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12588,12593,12686,12688,12727,12784,12828,12832,12867,12896,12923,12927,12976,12992,13003,13008,13054,13056,13174,13179,13277,13280,13310,13312,19893,19968,40869,40960,42124,44032,55203,55296,64045,64048,64106,64256,64262,64275,64279,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,66304,66334,66336,66339,66352,66378,66560,66597,66600,66637,118784,119029,119040,119078,119082,119142,119146,119154,119171,119172,119180,119209,119214,119261,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,12e4,120002,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120483,120488,120777,131072,173782,194560,195101,983040,1048573,1048576,1114109],Q=t=>z(t,J),$=t=>t.codePointAt(0);function tt(t){const e=[],n=t.length;for(let r=0;r=55296&&i<=56319&&n>r+1){const n=t.charCodeAt(r+1);if(n>=56320&&n<=57343){e.push(1024*(i-55296)+n-56320+65536),r+=1;continue}}e.push(i)}return e}class et{static generateFileID(t){void 0===t&&(t={});let e=`${t.CreationDate.getTime()}\n`;for(let n in t)t.hasOwnProperty(n)&&(e+=`${n}: ${t[n].valueOf()}\n`);return r.from(R(e))}static generateRandomWordArray(t){return function(t){const e=new Uint8Array(t);return globalThis.crypto.getRandomValues(e),e}(t)}static create(t,e){return void 0===e&&(e={}),e.ownerPassword||e.userPassword?new et(t,e):null}constructor(t,e){if(void 0===e&&(e={}),!e.ownerPassword&&!e.userPassword)throw new Error("None of owner password and user password is defined.");this.document=t,this._setupEncryption(e)}_setupEncryption(t){switch(t.pdfVersion){case"1.4":case"1.5":this.version=2;break;case"1.6":case"1.7":this.version=4;break;case"1.7ext3":this.version=5;break;default:this.version=1}const e={Filter:"Standard"};switch(this.version){case 1:case 2:case 4:this._setupEncryptionV1V2V4(this.version,e,t);break;case 5:this._setupEncryptionV5(e,t)}this.dictionary=this.document.ref(e)}_setupEncryptionV1V2V4(t,e,n){let i,s;switch(t){case 1:i=2,this.keyBits=40,s=function(t){void 0===t&&(t={});let e=-64;return t.printing&&(e|=4),t.modifying&&(e|=8),t.copying&&(e|=16),t.annotating&&(e|=32),e}(n.permissions);break;case 2:i=3,this.keyBits=128,s=nt(n.permissions);break;case 4:i=4,this.keyBits=128,s=nt(n.permissions)}const a=rt(n.userPassword),l=n.ownerPassword?rt(n.ownerPassword):a,h=function(t,e,n,r){let i=r,s=t>=3?51:1;for(let t=0;t=3?20:1;for(let t=0;t>8&255,s>>16&255,s>>24&255]);let l=(0,o.concatBytes)(r,i,a,new Uint8Array(n));const h=t>=3?51:1,u=e/8;for(let t=0;t=2&&(e.Length=this.keyBits),4===t&&(e.CF={StdCF:{AuthEvent:"DocOpen",CFM:"AESV2",Length:this.keyBits/8}},e.StmF="StdCF",e.StrF="StdCF"),e.R=i,e.O=r.from(h),e.U=r.from(u),e.P=s}_setupEncryptionV5(t,e){this.keyBits=256;const n=nt(e.permissions),i=it(e.userPassword),s=e.ownerPassword?it(e.ownerPassword):i;this.encryptionKey=(0,et.generateRandomWordArray)(32);const a=function(t,e){const n=e(8),r=e(8),i=N((0,o.concatBytes)(t,n));return(0,o.concatBytes)(i,n,r)}(i,et.generateRandomWordArray),l=function(t,e,n){return F(n,N((0,o.concatBytes)(t,e)),new Uint8Array(16),!1)}(i,a.slice(40,48),this.encryptionKey),u=function(t,e,n){const r=n(8),i=n(8),s=N((0,o.concatBytes)(t,r,e));return(0,o.concatBytes)(s,r,i)}(s,a,et.generateRandomWordArray),c=function(t,e,n,r){return F(r,N((0,o.concatBytes)(t,e,n)),new Uint8Array(16),!1)}(s,u.slice(40,48),a,this.encryptionKey),f=function(t,e,n){const r=new Uint8Array(16);r[0]=255&t,r[1]=t>>8&255,r[2]=t>>16&255,r[3]=t>>24&255,r[4]=255,r[5]=255,r[6]=255,r[7]=255,r[8]=84,r[9]=97,r[10]=100,r[11]=98;const i=n(4);return r.set(i,12),function(t,e){return(0,h.ecb)(e,{disablePadding:!0}).encrypt(t)}(r,e)}(n,this.encryptionKey,et.generateRandomWordArray);t.V=5,t.Length=this.keyBits,t.CF={StdCF:{AuthEvent:"DocOpen",CFM:"AESV3",Length:this.keyBits/8}},t.StmF="StdCF",t.StrF="StdCF",t.R=5,t.O=r.from(u),t.OE=r.from(c),t.U=r.from(a),t.UE=r.from(l),t.P=n,t.Perms=r.from(f)}getEncryptFn(t,e){let n,i;if(this.version<5){const r=new Uint8Array([255&t,t>>8&255,t>>16&255,255&e,e>>8&255]);n=(0,o.concatBytes)(this.encryptionKey,r)}if(1===this.version||2===this.version){let t=R(n);const e=Math.min(16,this.keyBits/8+5);return t=t.slice(0,e),e=>r.from(U(new Uint8Array(e),t))}if(4===this.version){const t=new Uint8Array([115,65,108,84]);i=R((0,o.concatBytes)(n,t))}else i=this.encryptionKey;const s=et.generateRandomWordArray(16);return t=>{const e=F(new Uint8Array(t),i,s,!0);return r.from((0,o.concatBytes)(s,e))}}end(){this.dictionary.end()}}function nt(t){void 0===t&&(t={});let e=-3904;return"lowResolution"===t.printing&&(e|=4),"highResolution"===t.printing&&(e|=2052),t.modifying&&(e|=8),t.copying&&(e|=16),t.annotating&&(e|=32),t.fillingForms&&(e|=256),t.contentAccessibility&&(e|=512),t.documentAssembly&&(e|=1024),e}function rt(t){void 0===t&&(t="");const e=new Uint8Array(32),n=t.length;let r=0;for(;r255)throw new Error("Password contains one or more invalid characters.");e[r]=n,r++}for(;r<32;)e[r]=st[r-n],r++;return e}function it(t){void 0===t&&(t=""),t=unescape(encodeURIComponent(function(t,e){if(void 0===e&&(e={}),"string"!=typeof t)throw new TypeError("Expected string.");if(0===t.length)return"";const n=tt(t).map((t=>(t=>z(t,H))(t)?32:t)).filter((t=>!(t=>z(t,V))(t))),r=String.fromCodePoint.apply(null,n).normalize("NFKC"),i=tt(r);if(i.some(Z))throw new Error("Prohibited character, see https://tools.ietf.org/html/rfc4013#section-2.3");if(!0!==e.allowUnassigned&&i.some(j))throw new Error("Unassigned code point, see https://tools.ietf.org/html/rfc4013#section-2.5");const s=i.some(K),o=i.some(Q);if(s&&o)throw new Error("String must not contain RandALCat and LCat at the same time, see https://tools.ietf.org/html/rfc3454#section-6");const a=K($(r[0])),l=K($((h=r)[h.length-1]));var h;if(s&&(!a||!l))throw new Error("Bidirectional RandALCat character must be the first and the last character of the string, see https://tools.ietf.org/html/rfc3454#section-6");return r}(t)));const e=Math.min(127,t.length),n=new Uint8Array(e);for(let r=0;rt[2]<1))){let t=this.opacityGradient();t._colorSpace="DeviceGray";for(let e of this.stops)t.stop(e[0],[e[2]]);t=t.embed(this.matrix);const e=[0,0,this.doc.page.width,this.doc.page.height],n=this.doc.ref({Type:"XObject",Subtype:"Form",FormType:1,BBox:e,Group:{Type:"Group",S:"Transparency",CS:"DeviceGray"},Resources:{ProcSet:["PDF","Text","ImageB","ImageC","ImageI"],Pattern:{Sh1:t}}});n.write("/Pattern cs /Sh1 scn"),n.end(`${e.join(" ")} re f`);const r=this.doc.ref({Type:"ExtGState",SMask:{Type:"Mask",S:"Luminosity",G:n}});r.end();const i=this.doc.ref({Type:"Pattern",PatternType:1,PaintType:1,TilingType:2,BBox:e,XStep:e[2],YStep:e[3],Resources:{ProcSet:["PDF","Text","ImageB","ImageC","ImageI"],Pattern:{Sh1:l},ExtGState:{Gs1:r}}});i.write("/Gs1 gs /Pattern cs /Sh1 scn"),i.end(`${e.join(" ")} re f`),this.doc.page.patterns[this.id]=i}else this.doc.page.patterns[this.id]=l;return l}apply(t){const e=this.doc._ctm,n=e[0],r=e[1],i=e[2],s=e[3],o=e[4],a=e[5],l=this.transform,h=l[0],u=l[1],c=l[2],f=l[3],d=l[4],p=l[5],g=[n*h+i*u,r*h+s*u,n*c+i*f,r*c+s*f,n*d+i*p+o,r*d+s*p+a];this.embedded&&g.join(" ")===this.matrix.join(" ")||this.embed(g),this.doc._setColorSpace("Pattern",t);const y=t?"SCN":"scn";return this.doc.addContent(`/${this.id} ${y}`)}};var lt=at;const ht=["DeviceCMYK","DeviceRGB"];const ut=lt,ct=class t extends at{constructor(t,e,n,r,i){super(t),this.x1=e,this.y1=n,this.x2=r,this.y2=i}shader(t){return this.doc.ref({ShadingType:2,ColorSpace:this._colorSpace,Coords:[this.x1,this.y1,this.x2,this.y2],Function:t,Extend:[!0,!0]})}opacityGradient(){return new t(this.doc,this.x1,this.y1,this.x2,this.y2)}},ft=class t extends at{constructor(t,e,n,r,i,s,o){super(t),this.doc=t,this.x1=e,this.y1=n,this.r1=r,this.x2=i,this.y2=s,this.r2=o}shader(t){return this.doc.ref({ShadingType:3,ColorSpace:this._colorSpace,Coords:[this.x1,this.y1,this.r1,this.x2,this.y2,this.r2],Function:t,Extend:[!0,!0]})}opacityGradient(){return new t(this.doc,this.x1,this.y1,this.r1,this.x2,this.y2,this.r2)}},dt=class{constructor(t,e,n,r,i){this.doc=t,this.bBox=e,this.xStep=n,this.yStep=r,this.stream=i}createPattern(){const t=this.doc.ref();t.end();const e=this.doc._ctm,n=e[0],r=e[1],i=e[2],s=e[3],o=[1*n+0*i,1*r+0*s,0*n+1*i,0*r+1*s,0*n+0*i+e[4],0*r+0*s+e[5]],a=this.doc.ref({Type:"Pattern",PatternType:1,PaintType:2,TilingType:2,BBox:this.bBox,XStep:this.xStep,YStep:this.yStep,Matrix:o.map((t=>+t.toFixed(5))),Resources:t});return a.end(this.stream),a}embedPatternColorSpaces(){ht.forEach((t=>{const e=this.getPatternColorSpaceId(t);if(this.doc.page.colorSpaces[e])return;const n=this.doc.ref(["Pattern",t]);n.end(),this.doc.page.colorSpaces[e]=n}))}getPatternColorSpaceId(t){return`CsP${t}`}embed(){this.id||(this.doc._patternCount=this.doc._patternCount+1,this.id="P"+this.doc._patternCount,this.pattern=this.createPattern()),this.doc.page.patterns[this.id]||(this.doc.page.patterns[this.id]=this.pattern)}apply(t,e){this.embedPatternColorSpaces(),this.embed();const n=this.doc._normalizeColor(e);if(!n)throw Error(`invalid pattern color. (value: ${e})`);const r=this.getPatternColorSpaceId(this.doc._getColorSpace(n));this.doc._setColorSpace(r,t);const i=t?"SCN":"scn";return this.doc.addContent(`${n.join(" ")} /${this.id} ${i}`)}};var pt={initColor(){this.spotColors={},this._opacityRegistry={},this._opacityCount=0,this._patternCount=0,this._gradCount=0},_normalizeColor(t){if("string"==typeof t)if("#"===t.charAt(0)){4===t.length&&(t=t.replace(/#([0-9A-F])([0-9A-F])([0-9A-F])/i,"#$1$1$2$2$3$3"));const e=parseInt(t.slice(1),16);t=[e>>16,e>>8&255,255&e]}else if(gt[t])t=gt[t];else if(this.spotColors[t])return this.spotColors[t];return Array.isArray(t)?(3===t.length?t=t.map((t=>t/255)):4===t.length&&(t=t.map((t=>t/100))),t):null},_setColor(t,e){return t instanceof ut?(t.apply(e),!0):Array.isArray(t)&&t[0]instanceof dt?(t[0].apply(e,t[1]),!0):this._setColorCore(t,e)},_setColorCore(t,e){if(!(t=this._normalizeColor(t)))return!1;const n=e?"SCN":"scn",r=this._getColorSpace(t);return this._setColorSpace(r,e),t instanceof m?(this.page.colorSpaces[t.id]=t.ref,this.addContent(`1 ${n}`)):this.addContent(`${t.join(" ")} ${n}`),!0},_setColorSpace(t,e){const n=e?"CS":"cs";return this.addContent(`/${t} ${n}`)},_getColorSpace:t=>t instanceof m?t.id:4===t.length?"DeviceCMYK":"DeviceRGB",fillColor(t,e){return this._setColor(t,!1)&&this.fillOpacity(e),this._fillColor=[t,e],this},strokeColor(t,e){return this._setColor(t,!0)&&this.strokeOpacity(e),this},opacity(t){return this._doOpacity(t,t),this},fillOpacity(t){return this._doOpacity(t,null),this},strokeOpacity(t){return this._doOpacity(null,t),this},_doOpacity(t,e){let n,r;if(null==t&&null==e)return;null!=t&&(t=Math.max(0,Math.min(1,t))),null!=e&&(e=Math.max(0,Math.min(1,e)));const i=`${t}_${e}`;if(this._opacityRegistry[i]){var s=this._opacityRegistry[i];n=s[0],r=s[1]}else n={Type:"ExtGState"},null!=t&&(n.ca=t),null!=e&&(n.CA=e),n=this.ref(n),n.end(),r="Gs"+ ++this._opacityCount,this._opacityRegistry[i]=[n,r];return this.page.ext_gstates[r]=n,this.addContent(`/${r} gs`)},linearGradient(t,e,n,r){return new ct(this,t,e,n,r)},radialGradient(t,e,n,r,i,s){return new ft(this,t,e,n,r,i,s)},pattern(t,e,n,r){return new dt(this,t,e,n,r)},addSpotColor(t,e,n,r,i){const s=new m(this,t,e,n,r,i);return this.spotColors[t]=s,this}},gt={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};let yt,mt,bt,wt,vt,At;yt=mt=bt=wt=vt=At=0;const xt={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0},St=function(t){return t in xt},_t=function(t){const e=t.codePointAt(0);return 32===e||9===e||13===e||10===e},Ct=function(t){const e=t.codePointAt(0);return null!=e&&48<=e&&e<=57},kt=function(t,e){let n=e,r="",i="none";for(;n(yt=e[0],mt=e[1],bt=wt=null,vt=yt,At=mt,t.moveTo(yt,mt)),m:(t,e)=>(yt+=e[0],mt+=e[1],bt=wt=null,vt=yt,At=mt,t.moveTo(yt,mt)),C:(t,e)=>(yt=e[4],mt=e[5],bt=e[2],wt=e[3],t.bezierCurveTo(...e)),c:(t,e)=>(t.bezierCurveTo(e[0]+yt,e[1]+mt,e[2]+yt,e[3]+mt,e[4]+yt,e[5]+mt),bt=yt+e[2],wt=mt+e[3],yt+=e[4],mt+=e[5]),S:(t,e)=>(null===bt&&(bt=yt,wt=mt),t.bezierCurveTo(yt-(bt-yt),mt-(wt-mt),e[0],e[1],e[2],e[3]),bt=e[0],wt=e[1],yt=e[2],mt=e[3]),s:(t,e)=>(null===bt&&(bt=yt,wt=mt),t.bezierCurveTo(yt-(bt-yt),mt-(wt-mt),yt+e[0],mt+e[1],yt+e[2],mt+e[3]),bt=yt+e[0],wt=mt+e[1],yt+=e[2],mt+=e[3]),Q:(t,e)=>(bt=e[0],wt=e[1],yt=e[2],mt=e[3],t.quadraticCurveTo(e[0],e[1],yt,mt)),q:(t,e)=>(t.quadraticCurveTo(e[0]+yt,e[1]+mt,e[2]+yt,e[3]+mt),bt=yt+e[0],wt=mt+e[1],yt+=e[2],mt+=e[3]),T:(t,e)=>(null===bt?(bt=yt,wt=mt):(bt=yt-(bt-yt),wt=mt-(wt-mt)),t.quadraticCurveTo(bt,wt,e[0],e[1]),bt=yt-(bt-yt),wt=mt-(wt-mt),yt=e[0],mt=e[1]),t:(t,e)=>(null===bt?(bt=yt,wt=mt):(bt=yt-(bt-yt),wt=mt-(wt-mt)),t.quadraticCurveTo(bt,wt,yt+e[0],mt+e[1]),yt+=e[0],mt+=e[1]),A:(t,e)=>(Et(t,yt,mt,e),yt=e[5],mt=e[6]),a:(t,e)=>(e[5]+=yt,e[6]+=mt,Et(t,yt,mt,e),yt=e[5],mt=e[6]),L:(t,e)=>(yt=e[0],mt=e[1],bt=wt=null,t.lineTo(yt,mt)),l:(t,e)=>(yt+=e[0],mt+=e[1],bt=wt=null,t.lineTo(yt,mt)),H:(t,e)=>(yt=e[0],bt=wt=null,t.lineTo(yt,mt)),h:(t,e)=>(yt+=e[0],bt=wt=null,t.lineTo(yt,mt)),V:(t,e)=>(mt=e[0],bt=wt=null,t.lineTo(yt,mt)),v:(t,e)=>(mt+=e[0],bt=wt=null,t.lineTo(yt,mt)),Z:t=>(t.closePath(),yt=vt,mt=At),z:t=>(t.closePath(),yt=vt,mt=At)},Et=function(t,e,n,r){const i=r[0],s=r[1],o=r[2],a=r[3],l=r[4],h=r[5],u=r[6],c=Tt(h,u,i,s,a,l,o,e,n);for(let e of c){const n=Ot(...e);t.bezierCurveTo(...n)}},Tt=function(t,e,n,r,i,s,o,a,l){const h=o*(Math.PI/180),u=Math.sin(h),c=Math.cos(h);n=Math.abs(n),r=Math.abs(r),bt=c*(a-t)*.5+u*(l-e)*.5,wt=c*(l-e)*.5-u*(a-t)*.5;let f=bt*bt/(n*n)+wt*wt/(r*r);f>1&&(f=Math.sqrt(f),n*=f,r*=f);const d=c/n,p=u/n,g=-u/r,y=c/r,m=d*a+p*l,b=g*a+y*l,w=d*t+p*e,v=g*t+y*e;let A=1/((w-m)*(w-m)+(v-b)*(v-b))-.25;A<0&&(A=0);let x=Math.sqrt(A);s===i&&(x=-x);const S=.5*(m+w)-x*(v-b),_=.5*(b+v)+x*(w-m),C=Math.atan2(b-_,m-S);let k=Math.atan2(v-_,w-S)-C;k<0&&1===s?k+=2*Math.PI:k>0&&0===s&&(k-=2*Math.PI);const P=Math.ceil(Math.abs(k/(.5*Math.PI+.001))),E=[];for(let t=0;tNumber.isFinite(t)&&t>0)))throw new Error(`dash(${JSON.stringify(n)}, ${JSON.stringify(e)}) invalid, lengths must be numeric and greater than zero`);return t=t.map(Lt).join(" "),this.addContent(`[${t}] ${Lt(e.phase||0)} d`)},undash(){return this.addContent("[] 0 d")},moveTo(t,e){return this.addContent(`${Lt(t)} ${Lt(e)} m`)},lineTo(t,e){return this.addContent(`${Lt(t)} ${Lt(e)} l`)},bezierCurveTo(t,e,n,r,i,s){return this.addContent(`${Lt(t)} ${Lt(e)} ${Lt(n)} ${Lt(r)} ${Lt(i)} ${Lt(s)} c`)},quadraticCurveTo(t,e,n,r){return this.addContent(`${Lt(t)} ${Lt(e)} ${Lt(n)} ${Lt(r)} v`)},rect(t,e,n,r){return this.addContent(`${Lt(t)} ${Lt(e)} ${Lt(n)} ${Lt(r)} re`)},roundedRect(t,e,n,r,i){let s;null==i&&(i=0),s=Array.isArray(i)?i.slice(0,4):[i,i,i,i];const o=Math.min(.5*n,.5*r),a=Math.max(0,Math.min(s[0]||0,o)),l=Math.max(0,Math.min(s[1]||0,o)),h=Math.max(0,Math.min(s[2]||0,o)),u=Math.max(0,Math.min(s[3]||0,o)),c=l*(1-Bt),f=h*(1-Bt),d=u*(1-Bt),p=a*(1-Bt);return this.moveTo(t+a,e),this.lineTo(t+n-l,e),l>0&&this.bezierCurveTo(t+n-c,e,t+n,e+c,t+n,e+l),this.lineTo(t+n,e+r-h),h>0&&this.bezierCurveTo(t+n,e+r-f,t+n-f,e+r,t+n-h,e+r),this.lineTo(t+u,e+r),u>0&&this.bezierCurveTo(t+d,e+r,t,e+r-d,t,e+r-u),this.lineTo(t,e+a),a>0&&this.bezierCurveTo(t,e+p,t+p,e,t+a,e),this.closePath()},ellipse(t,e,n,r){null==r&&(r=n);const i=n*Bt,s=r*Bt,o=(t-=n)+2*n,a=(e-=r)+2*r,l=t+n,h=e+r;return this.moveTo(t,h),this.bezierCurveTo(t,h-s,l-i,e,l,e),this.bezierCurveTo(l+i,e,o,h-s,o,h),this.bezierCurveTo(o,h+s,l+i,a,l,a),this.bezierCurveTo(l-i,a,t,h+s,t,h),this.closePath()},circle(t,e,n){return this.ellipse(t,e,n)},arc(t,e,n,r,i,s){null==s&&(s=!1);const o=2*Math.PI,a=.5*Math.PI;let l=i-r;Math.abs(l)>o?l=o:0!==l&&s!==l<0&&(l=(s?-1:1)*o+l);const h=Math.ceil(Math.abs(l)/a),u=l/h,c=u/a*Bt*n;let f=r,d=-Math.sin(f)*c,p=Math.cos(f)*c,g=t+Math.cos(f)*n,y=e+Math.sin(f)*n;this.moveTo(g,y);for(let r=0;r/even-?odd/.test(t)?"*":"",fill(t,e){return/(even-?odd)|(non-?zero)/.test(t)&&(e=t,t=null),t&&this.fillColor(t),this.addContent(`f${this._windingRule(e)}`)},stroke(t){return t&&this.strokeColor(t),this.addContent("S")},fillAndStroke(t,e,n){null==e&&(e=t);const r=/(even-?odd)|(non-?zero)/;return r.test(t)&&(n=t,t=null),r.test(e)&&(n=e,e=t),t&&(this.fillColor(t),this.strokeColor(e)),this.addContent(`B${this._windingRule(n)}`)},clip(t){return this.addContent(`W${this._windingRule(t)} n`)},transform(t,e,n,r,i,s){if(1===t&&0===e&&0===n&&1===r&&0===i&&0===s)return this;const o=this._ctm,a=o[0],l=o[1],h=o[2],u=o[3],c=o[4],f=o[5];o[0]=a*t+h*e,o[1]=l*t+u*e,o[2]=a*n+h*r,o[3]=l*n+u*r,o[4]=a*i+h*s+c,o[5]=l*i+u*s+f;const d=[t,e,n,r,i,s].map((t=>Lt(t))).join(" ");return this.addContent(`${d} cm`)},translate(t,e){return this.transform(1,0,0,1,t,e)},rotate(t,e){let n;void 0===e&&(e={});const r=t*Math.PI/180,i=Math.cos(r),s=Math.sin(r);let o=n=0;if(null!=e.origin){var a=e.origin;o=a[0],n=a[1];const t=o*s+n*i;o-=o*i-n*s,n-=t}return this.transform(i,s,-s,i,o,n)},scale(t,e,n){let r;void 0===n&&(n={}),null==e&&(e=t),"object"==typeof e&&(n=e,e=t);let i=r=0;if(null!=n.origin){var s=n.origin;i=s[0],r=s[1],i-=t*i,r-=e*r}return this.transform(t,0,0,e,i,r)}};const Dt={402:131,8211:150,8212:151,8216:145,8217:146,8218:130,8220:147,8221:148,8222:132,8224:134,8225:135,8226:149,8230:133,8364:128,8240:137,8249:139,8250:155,710:136,8482:153,338:140,339:156,732:152,352:138,353:154,376:159,381:142,382:158},Rt=".notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n \nspace exclam quotedbl numbersign\ndollar percent ampersand quotesingle\nparenleft parenright asterisk plus\ncomma hyphen period slash\nzero one two three\nfour five six seven\neight nine colon semicolon\nless equal greater question\n \nat A B C\nD E F G\nH I J K\nL M N O\nP Q R S\nT U V W\nX Y Z bracketleft\nbackslash bracketright asciicircum underscore\n \ngrave a b c\nd e f g\nh i j k\nl m n o\np q r s\nt u v w\nx y z braceleft\nbar braceright asciitilde .notdef\n \nEuro .notdef quotesinglbase florin\nquotedblbase ellipsis dagger daggerdbl\ncircumflex perthousand Scaron guilsinglleft\nOE .notdef Zcaron .notdef\n.notdef quoteleft quoteright quotedblleft\nquotedblright bullet endash emdash\ntilde trademark scaron guilsinglright\noe .notdef zcaron ydieresis\n \nspace exclamdown cent sterling\ncurrency yen brokenbar section\ndieresis copyright ordfeminine guillemotleft\nlogicalnot hyphen registered macron\ndegree plusminus twosuperior threesuperior\nacute mu paragraph periodcentered\ncedilla onesuperior ordmasculine guillemotright\nonequarter onehalf threequarters questiondown\n \nAgrave Aacute Acircumflex Atilde\nAdieresis Aring AE Ccedilla\nEgrave Eacute Ecircumflex Edieresis\nIgrave Iacute Icircumflex Idieresis\nEth Ntilde Ograve Oacute\nOcircumflex Otilde Odieresis multiply\nOslash Ugrave Uacute Ucircumflex\nUdieresis Yacute Thorn germandbls\n \nagrave aacute acircumflex atilde\nadieresis aring ae ccedilla\negrave eacute ecircumflex edieresis\nigrave iacute icircumflex idieresis\neth ntilde ograve oacute\nocircumflex otilde odieresis divide\noslash ugrave uacute ucircumflex\nudieresis yacute thorn ydieresis".split(/\s+/);class Nt{constructor(t){this.attributes={},this.glyphWidths={},this.boundingBoxes={},this.kernPairs={},this.parse(t),this.bbox=this.attributes.FontBBox.split(/\s+/).map((t=>+t)),this.ascender=+(this.attributes.Ascender||0),this.descender=+(this.attributes.Descender||0),this.xHeight=+(this.attributes.XHeight||0),this.capHeight=+(this.attributes.CapHeight||0),this.lineGap=this.bbox[3]-this.bbox[1]-(this.ascender-this.descender)}parse(t){let e="";for(let a of t.split("\n")){var n,r;if(n=a.match(/^Start(\w+)/))e=n[1];else if(a.match(/^End(\w+)/))e="";else switch(e){case"FontMetrics":var i=(n=a.match(/(^\w+)\s+(.*)/))[1],s=n[2];(r=this.attributes[i])?(Array.isArray(r)||(r=this.attributes[i]=[r]),r.push(s)):this.attributes[i]=s;break;case"CharMetrics":if(!/^CH?\s/.test(a))continue;var o=a.match(/\bN\s+(\.?\w+)\s*;/)[1];this.glyphWidths[o]=+a.match(/\bWX\s+(\d+)\s*;/)[1];break;case"KernPairs":(n=a.match(/^KPX\s+(\.?\w+)\s+(\.?\w+)\s+(-?\d+)/))&&(this.kernPairs[n[1]+"\0"+n[2]]=parseInt(n[3]))}}}encodeText(t){const e=[];for(let n=0,r=t.length;np.readFileSync("//data/Courier.afm","utf8"),"Courier-Bold":()=>p.readFileSync("//data/Courier-Bold.afm","utf8"),"Courier-Oblique":()=>p.readFileSync("//data/Courier-Oblique.afm","utf8"),"Courier-BoldOblique":()=>p.readFileSync("//data/Courier-BoldOblique.afm","utf8"),Helvetica:()=>p.readFileSync("//data/Helvetica.afm","utf8"),"Helvetica-Bold":()=>p.readFileSync("//data/Helvetica-Bold.afm","utf8"),"Helvetica-Oblique":()=>p.readFileSync("//data/Helvetica-Oblique.afm","utf8"),"Helvetica-BoldOblique":()=>p.readFileSync("//data/Helvetica-BoldOblique.afm","utf8"),"Times-Roman":()=>p.readFileSync("//data/Times-Roman.afm","utf8"),"Times-Bold":()=>p.readFileSync("//data/Times-Bold.afm","utf8"),"Times-Italic":()=>p.readFileSync("//data/Times-Italic.afm","utf8"),"Times-BoldItalic":()=>p.readFileSync("//data/Times-BoldItalic.afm","utf8"),Symbol:()=>p.readFileSync("//data/Symbol.afm","utf8"),ZapfDingbats:()=>p.readFileSync("//data/ZapfDingbats.afm","utf8")};class zt extends Ft{constructor(t,e,n){super(),this.document=t,this.name=e,this.id=n,this.font=new Nt(Ut[this.name]());var r=this.font;this.ascender=r.ascender,this.descender=r.descender,this.bbox=r.bbox,this.lineGap=r.lineGap,this.xHeight=r.xHeight,this.capHeight=r.capHeight}embed(){return this.dictionary.data={Type:"Font",BaseFont:this.name,Subtype:"Type1",Encoding:"WinAnsiEncoding"},this.dictionary.end()}encode(t){const e=this.font.encodeText(t),n=this.font.glyphsForString(`${t}`),r=this.font.advancesForGlyphs(n),i=[];for(let t=0;t>8;let i=0;this.font.post.isFixedPitch&&(i|=1),1<=n&&n<=7&&(i|=2),i|=4,10===n&&(i|=8),this.font.head.macStyle.italic&&(i|=64);const s=[1,2,3,4,5,6].map((t=>String.fromCharCode((this.id.charCodeAt(t)||73)+17))).join("")+"+"+this.font.postscriptName?.replaceAll(" ","_"),o=this.font.bbox,a=this.document.ref({Type:"FontDescriptor",FontName:s,Flags:i,FontBBox:[o.minX*this.scale,o.minY*this.scale,o.maxX*this.scale,o.maxY*this.scale],ItalicAngle:this.font.italicAngle,Ascent:this.ascender,Descent:this.descender,CapHeight:(this.font.capHeight||this.font.ascent)*this.scale,XHeight:(this.font.xHeight||0)*this.scale,StemV:0});if(t?a.data.FontFile3=e:a.data.FontFile2=e,this.document.subset&&1===this.document.subset){const t=this.widths.length-1,e=r.alloc(Math.ceil((t+1)/8),0);for(let n=0;n<=t;n++)null!=this.widths[n]&&(e[Math.floor(n/8)]|=128>>n%8);const n=this.document.ref();n.write(e),n.end(),a.data.CIDSet=n}a.end();const l={Type:"Font",Subtype:"CIDFontType0",BaseFont:s,CIDSystemInfo:{Registry:new String("Adobe"),Ordering:new String("Identity"),Supplement:0},FontDescriptor:a,W:[0,this.widths]};t||(l.Subtype="CIDFontType2",l.CIDToGIDMap="Identity");const h=this.document.ref(l);return h.end(),this.dictionary.data={Type:"Font",Subtype:"Type0",BaseFont:s,Encoding:"Identity-H",DescendantFonts:[h],ToUnicode:this.toUnicodeCmap()},this.dictionary.end()}toUnicodeCmap(){const t=this.document.ref(),e=[];for(let t of this.unicode){const n=[];for(let e of t)e>65535&&(e-=65536,n.push(Wt(e>>>10&1023|55296)),e=56320|1023&e),n.push(Wt(e));e.push(`<${n.join(" ")}>`)}const n=Math.ceil(e.length/256),r=[];for(let t=0;t <${Wt(i-1)}> [${e.slice(n,i).join(" ")}]`)}return t.end(`/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000>\nendcodespacerange\n${r.length} beginbfrange\n${r.join("\n")}\nendbfrange\nendcmap\nCMapName currentdict /CMap defineresource pop\nend\nend`),t}}class Vt{static open(t,e,n,r){let i;if("string"==typeof e){if(zt.isStandardFont(e))return new zt(t,e,r);e=p.readFileSync(e)}if(e instanceof Uint8Array?i=(0,u.create)(e,n):e instanceof ArrayBuffer&&(i=(0,u.create)(new Uint8Array(e),n)),null==i)throw new Error("Not a supported font format or standard PDF font.");return new jt(t,i,r)}}var Ht={initFonts(t,e,n){void 0===t&&(t="Helvetica"),void 0===e&&(e=null),void 0===n&&(n=12),this._fontFamilies={},this._fontCount=0,this._fontSource=t,this._fontFamily=e,this._fontSize=n,this._font=null,this._remSize=n,this._registeredFonts={},t&&this.font(t,e)},font(t,e,n){let r,i;if("number"==typeof e&&(n=e,e=null),"string"==typeof t&&this._registeredFonts[t]){r=t;var s=this._registeredFonts[t];t=s.src,e=s.family}else r=e||t,"string"!=typeof r&&(r=null);if(this._fontSource=t,this._fontFamily=e,null!=n&&this.fontSize(n),i=this._fontFamilies[r])return this._font=i,this;const o="F"+ ++this._fontCount;return this._font=Vt.open(this,t,e,o),(i=this._fontFamilies[this._font.name])&&(a=this._font,l=i,a.font._tables?.head?.checkSumAdjustment===l.font._tables?.head?.checkSumAdjustment&&JSON.stringify(a.font._tables?.name?.records)===JSON.stringify(l.font._tables?.name?.records))?(this._font=i,this):(r&&(this._fontFamilies[r]=this._font),this._font.name&&!this._fontFamilies[this._font.name]&&(this._fontFamilies[this._font.name]=this._font),r||this._font.name&&this._fontFamilies[this._font.name]===this._font||(this._fontFamilies[this._font.id]=this._font),this);var a,l},fontSize(t){return this._fontSize=this.sizeToPoint(t),this},currentLineHeight(t){return this._font.lineHeight(this._fontSize,t)},registerFont(t,e,n){return this._registeredFonts[t]={src:e,family:n},this},sizeToPoint(t,e,n,r){if(void 0===e&&(e=0),void 0===n&&(n=this.page),void 0===r&&(r=void 0),r||(r=this._fontSize),"number"!=typeof e&&(e=this.sizeToPoint(e)),void 0===t)return e;if("number"==typeof t)return t;if("boolean"==typeof t)return Number(t);const i=String(t).match(/((\d+)?(\.\d+)?)(em|in|px|cm|mm|pc|ex|ch|rem|vw|vh|vmin|vmax|%|pt)?/);if(!i)throw new Error(`Unsupported size '${t}'`);let s;switch(i[4]){case"em":s=this._fontSize;break;case"in":s=72;break;case"px":s=.75;break;case"cm":s=72*T;break;case"mm":s=.1*T*72;break;case"pc":s=12;break;case"ex":s=this.currentLineHeight();break;case"ch":s=this.widthOfString("0");break;case"rem":s=this._remSize;break;case"vw":s=n.width/100;break;case"vh":s=n.height/100;break;case"vmin":s=Math.min(n.width,n.height)/100;break;case"vmax":s=Math.max(n.width,n.height)/100;break;case"%":s=r/100;break;default:s=1}return s*Number(i[1])}};class Gt{constructor(t,e){this._listeners=Object.create(null),this.document=t,this.horizontalScaling=e.horizontalScaling||100,this.indent=(e.indent||0)*this.horizontalScaling/100,this.indentAllLines=e.indentAllLines||!1,this.characterSpacing=(e.characterSpacing||0)*this.horizontalScaling/100,this.wordSpacing=(0===e.wordSpacing)*this.horizontalScaling/100,this.columns=e.columns||1,this.columnGap=(null!=e.columnGap?e.columnGap:18)*this.horizontalScaling/100,this.lineWidth=(e.width*this.horizontalScaling/100-this.columnGap*(this.columns-1))/this.columns,this.spaceLeft=this.lineWidth,this.startX=this.document.x,this.startY=this.document.y,this.column=1,this.ellipsis=e.ellipsis,this.continuedX=0,this.features=e.features,null!=e.height?(this.height=e.height,this.maxY=P(this.startY+e.height)):this.maxY=P(this.document.page.maxY()),this.on("firstLine",(t=>{const e=this.continuedX||this.indent;this.document.x+=e,this.lineWidth-=e,t.indentAllLines||this.once("line",(()=>{this.document.x-=e,this.lineWidth+=e,t.continued&&!this.continuedX&&(this.continuedX=this.indent),t.continued||(this.continuedX=0)}))})),this.on("lastLine",(t=>{const e=t.align;"justify"===e&&(t.align="left"),this.lastLine=!0,this.once("line",(()=>(this.document.y+=t.paragraphGap||0,t.align=e,this.lastLine=!1)))}))}on(t,e){(this._listeners[t]||(this._listeners[t]=[])).push(e)}once(t,e){var n=this;const r=function(){const i=n._listeners[t];i.splice(i.indexOf(r),1),e(...arguments)};this.on(t,r)}emit(t){const e=this._listeners[t];if(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;ithis.lineWidth+this.continuedX){let t=i;const s={};for(;r.length;){var a,l;h>this.spaceLeft?(a=Math.ceil(this.spaceLeft/(h/r.length)),h=this.wordWidth(r.slice(0,a)),l=h<=this.spaceLeft&&athis.spaceLeft&&a>0;for(;i||l;)i?(h=this.wordWidth(r.slice(0,--a)),i=h>this.spaceLeft&&a>0):(h=this.wordWidth(r.slice(0,++a)),i=h>this.spaceLeft&&a>0,l=h<=this.spaceLeft&&athis.maxY||r>this.maxY)&&this.nextSection();let i="",s=0,o=0,a=0,l=n.y;const h=()=>(e.textWidth=s+this.wordSpacing*(o-1),e.wordCount=o,e.lineWidth=this.lineWidth,l=n.y,this.emit("line",i,e,this),a++);this.emit("sectionStart",e,this),this.eachWord(t,((t,r,a,l)=>{if((null==l||l.required)&&(this.emit("firstLine",e,this),this.spaceLeft=this.lineWidth),this.canFit(t,r)&&(i+=t,s+=r,o++),a.required||!this.canFit(t,r)){const l=n.currentLineHeight(!0);if(null!=this.height&&this.ellipsis&&P(n.y+2*l)>this.maxY&&this.column>=this.columns){for(!0===this.ellipsis&&(this.ellipsis="…"),i=i.replace(/\s+$/,""),s=this.wordWidth(i+this.ellipsis);i&&s>this.lineWidth;)i=i.slice(0,-1).replace(/\s+$/,""),s=this.wordWidth(i+this.ellipsis);s<=this.lineWidth&&(i+=this.ellipsis),s=this.wordWidth(i)}if(a.required&&(r>this.spaceLeft&&(h(),i=t,s=r,o=1),this.emit("lastLine",e,this)),"­"==i[i.length-1]&&(i=i.slice(0,-1)+"-",this.spaceLeft-=this.wordWidth("-")),h(),P(n.y+l)>this.maxY){if(this.emit("sectionEnd",e,this),!this.nextSection())return o=0,i="",!1;this.emit("sectionStart",e,this)}return a.required?(this.spaceLeft=this.lineWidth,i="",s=0,o=0):(this.spaceLeft=this.lineWidth-r,i=t,s=r,o=1)}return this.spaceLeft-=r})),o>0&&(this.emit("lastLine",e,this),h()),this.emit("sectionEnd",e,this),!0===e.continued?(a>1&&(this.continuedX=0),this.continuedX+=e.textWidth||0,n.y=l):n.x=this.startX}nextSection(t){if(++this.column>this.columns){if(null!=this.height)return!1;if(this.document.continueOnNewPage(),this.column=1,this.startY=this.document.page.margins.top,this.maxY=this.document.page.maxY(),this.indentAllLines){const t=this.continuedX||this.indent;this.document.x+=t,this.lineWidth-=t}else this.document.x=this.startX;this.document._fillColor&&this.document.fillColor(...this.document._fillColor),this.emit("pageBreak",t,this)}else this.document.x+=this.lineWidth+this.columnGap,this.document.y=this.startY,this.emit("columnBreak",t,this);return!0}}const qt=S.number;var Xt={initText(){this._line=this._line.bind(this),this.x=0,this.y=0,this._lineGap=0},lineGap(t){return this._lineGap=t,this},moveDown(t){return null==t&&(t=1),this.y+=this.currentLineHeight(!0)*t+this._lineGap,this},moveUp(t){return null==t&&(t=1),this.y-=this.currentLineHeight(!0)*t+this._lineGap,this},_text(t,e,n,r,i){t=null==t?"":`${t}`,(r=this._initOptions(e,n,r)).wordSpacing&&(t=t.replace(/\s{2,}/g," "));const s=()=>{r.structParent&&r.structParent.add(this.struct(r.structType||"P",[this.markStructureContent(r.structType||"P")]))};if(0!==r.rotation&&(this.save(),this.rotate(-r.rotation,{origin:[this.x,this.y]})),r.width){let e=this._wrapper;e||(e=new Gt(this,r),e.on("line",i),e.on("firstLine",s)),this._wrapper=r.continued?e:null,this._textOptions=r.continued?r:null,e.wrap(t,r)}else for(let e of t.split("\n"))s(),i(e,r);return 0!==r.rotation&&this.restore(),this},text(t,e,n,r){return this._text(t,e,n,r,this._line)},widthOfString(t,e){void 0===e&&(e={});const n=e.horizontalScaling||100;return(this._font.widthOfString(t,this._fontSize,e.features)+(e.characterSpacing||0)*(t.length-1))*n/100},boundsOfString(t,e,n,r){r=this._initOptions(e,n,r),e=this.x,n=this.y;const i=r.lineGap??this._lineGap??0,s=this.currentLineHeight(!0)+i;let o=0;if(t=String(t??""),r.wordSpacing&&(t=t.replace(/\s{2,}/g," ")),r.width){let e=new Gt(this,r);e.on("line",((t,e)=>{if(this.y+=s,(t=t.replace(/\n/g,"")).length){let n=e.wordSpacing??0;const r=e.characterSpacing??0;if(e.width&&"justify"===e.align){const i=t.trim().split(/\s+/),s=this.widthOfString(t.replace(/\s+/g,""),e),o=this.widthOfString(" ")+r;n=Math.max(0,(e.lineWidth-s)/Math.max(1,i.length-1)-o)}o=Math.max(o,e.textWidth+n*(e.wordCount-1)+r*(t.length-1))}})),e.wrap(t,r)}else for(let e of t.split("\n")){const t=this.widthOfString(e,r);this.y+=s,o=Math.max(o,t)}let a=this.y-n;if(r.height&&(a=Math.min(a,r.height)),this.x=e,this.y=n,0===r.rotation)return{x:e,y:n,width:o,height:a};if(90===r.rotation)return{x:e,y:n-o,width:a,height:o};if(180===r.rotation)return{x:e-o,y:n-a,width:o,height:a};if(270===r.rotation)return{x:e-a,y:n,width:a,height:o};const l=O(r.rotation),h=I(r.rotation),u=e,c=n,f=e+o*l,d=n-o*h,p=e+o*l+a*h,g=n-o*h+a*l,y=e+a*h,m=n+a*l,b=Math.min(u,f,p,y),w=Math.max(u,f,p,y),v=Math.min(c,d,g,m);return{x:b,y:v,width:w-b,height:Math.max(c,d,g,m)-v}},heightOfString(t,e){const n=this.x,r=this.y;(e=this._initOptions(e)).height=1/0;const i=e.lineGap||this._lineGap||0;this._text(t,this.x,this.y,e,(()=>{this.y+=this.currentLineHeight(!0)+i}));const s=this.y-r;return this.x=n,this.y=r,s},list(t,e,n,r){const i=(r=this._initOptions(e,n,r)).listType||"bullet",s=Math.round(this._font.ascender/1e3*this._fontSize),o=s/2,a=r.bulletRadius||s/3,l=r.textIndent||("bullet"===i?5*a:2*s),h=r.bulletIndent||("bullet"===i?8*a:2*s);let u=1;const c=[],f=[],d=[];var p=function(t){let e=1;for(let n=0;n{let t,s,c,p,g;if(r.structParent)if(r.structTypes){var y=r.structTypes;s=y[0],c=y[1],p=y[2]}else s="LI",c="Lbl",p="LBody";if(s?(t=this.struct(s),r.structParent.add(t)):r.structParent&&(t=r.structParent),(g=f[e++])!==u){const t=h*(g-u);this.x+=t,n.lineWidth-=t,u=g}switch(t&&(c||p)&&t.add(this.struct(c||p,[this.markStructureContent(c||p)])),i){case"bullet":this.circle(this.x-l+a,this.y+o,a),this.fill();break;case"numbered":case"lettered":var m=function(t,e){if("numbered"===e)return`${t}.`;var n=String.fromCharCode((t-1)%26+65),r=Math.floor((t-1)/26+1);return`${Array(r+1).join(n)}.`}(d[e-1],i);this._fragment(m,this.x-l,this.y,r)}t&&c&&p&&t.add(this.struct(p,[this.markStructureContent(p)])),t&&t!==r.structParent&&t.end()})),n.on("sectionStart",(()=>{const t=l+h*(u-1);this.x+=t,n.lineWidth-=t})),n.on("sectionEnd",(()=>{const t=l+h*(u-1);this.x-=t,n.lineWidth+=t})),n.wrap(t,r)};for(let t=0;t{if(v ${qt(-n)}`)}v=t},S=t=>{x(t),w.length>0&&(this.addContent(`[${w.join(" ")}] TJ`),w.length=0)};for(o=0;o{let e="";for(let n=0;n>>0},Kt=[65472,65473,65474,65475,65477,65478,65479,65480,65481,65482,65483,65484,65485,65486,65487],Jt={1:"DeviceGray",3:"DeviceRGB",4:"DeviceCMYK"};class Qt{constructor(t,e){let n;if(this.data=t,this.label=e,65496!==this.data.readUInt16BE(0))throw"SOI not found in JPEG";this.orientation=(t=>{if(!t||t.length<20)return null;let e=2;for(;e=t.length-4)return null;const n=Yt(t,e);if(e+=2,65498===n)return null;if(n>=65488&&n<=65497||65281===n)continue;if(e+2>t.length)return null;const r=Yt(t,e);if(65505===n&&e+8<=t.length&&"Exif\0\0"===Zt(t.subarray(e+2,e+8))){const n=e+8;if(n+8>t.length)return null;const r=Zt(t.subarray(n,n+2)),i="II"===r;if(!i&&"MM"!==r)return null;const s=i?e=>{return void 0===(r=e)&&(r=0),((n=t)[r+1]<<8|n[r])>>>0;var n,r}:e=>Yt(t,e),o=i?e=>{return void 0===(r=e)&&(r=0),((n=t)[r]|n[r+1]<<8|n[r+2]<<16)+16777216*n[r+3]>>>0;var n,r}:e=>{return void 0===(r=e)&&(r=0),16777216*(n=t)[r]+(n[r+1]<<16|n[r+2]<<8|n[r+3])>>>0;var n,r};if(42!==s(n+2))return null;const a=n+o(n+4);if(a+2>t.length)return null;const l=s(a);for(let e=0;et.length)return null;if(274===s(n)){const t=s(n+8);return t>=1&&t<=8?t:null}}return null}e+=r}return null})(this.data)||1;let r=2;for(;r=this.data.length)break;if(n=this.data.readUInt16BE(r),r+=2,Kt.includes(n))break;r+=this.data.readUInt16BE(r)}if(!Kt.includes(n))throw"Invalid JPEG.";r+=2,this.bits=this.data[r++],this.height=this.data.readUInt16BE(r),r+=2,this.width=this.data.readUInt16BE(r),r+=2;const i=this.data[r];this.colorSpace=Jt[i],this.obj=null}embed(t){if(!this.obj)return this.obj=t.ref({Type:"XObject",Subtype:"Image",BitsPerComponent:this.bits,Width:this.width,Height:this.height,ColorSpace:this.colorSpace,Filter:"DCTDecode"}),"DeviceCMYK"===this.colorSpace&&(this.obj.data.Decode=[1,0,1,0,1,0,1,0]),this.obj.end(this.data),this.data=null}}class $t{constructor(t,e){this.label=e,this.image=new f.default(t),this.width=this.image.width,this.height=this.image.height,this.imgData=this.image.imgData,this.obj=null}embed(t){if(this.document=t,this.obj)return;const e=this.image,n=this.height,i=this.width,s=e.hasAlphaChannel,o=1===e.interlaceMethod,a=this.obj=t.ref({Type:"XObject",Subtype:"Image",BitsPerComponent:s?8:e.bits,Width:i,Height:n,Filter:"FlateDecode"});if(!s){const n=t.ref({Predictor:o?1:15,Colors:e.colors,BitsPerComponent:e.bits,Columns:i});a.data.DecodeParms=n,n.end()}if(0===e.palette.length)a.data.ColorSpace=e.colorSpace;else{const n=t.ref();n.end(r.from(e.palette)),a.data.ColorSpace=["Indexed","DeviceRGB",e.palette.length/3-1,n]}if(null!=e.transparency.grayscale){const t=e.transparency.grayscale;a.data.Mask=[t,t]}else if(e.transparency.rgb){const t=e.transparency.rgb,n=[];for(let e of t)n.push(e,e);a.data.Mask=n}else{if(e.transparency.indexed)return this.loadIndexedAlphaChannel();if(s)return this.splitAlphaChannel()}if(o)return this.decodeData();this.finalize()}finalize(){if(this.alphaChannel){const t=this.document.ref({Type:"XObject",Subtype:"Image",Height:this.height,Width:this.width,BitsPerComponent:8,Filter:"FlateDecode",ColorSpace:"DeviceGray",Decode:[0,1]});t.end(this.alphaChannel),this.obj.data.SMask=t}return this.obj.end(this.imgData),this.image=null,this.imgData=null}splitAlphaChannel(){return this.image.decodePixels((t=>{let e,n;const i=this.image.colors,o=this.width*this.height,a=r.alloc(o*i),l=r.alloc(o);let h=n=e=0;const u=t.length,c=16===this.image.bits?1:0;for(;h{const i=r.alloc(this.width*this.height);let o=0;for(let e=0,r=n.length;e{this.imgData=s.default.deflateSync(t),this.finalize()}))}}class te{static open(t,e){let n;if(r.isBuffer(t))n=t;else if(t instanceof ArrayBuffer)n=r.from(new Uint8Array(t));else{const e=/^data:.+?;base64,(.*)$/.exec(t);if(e)n=r.from(e[1],"base64");else if(n=p.readFileSync(t),!n)return}if(255===n[0]&&216===n[1])return new Qt(n,e);if(137===n[0]&&80===n[1]&&78===n[2]&&71===n[3])return new $t(n,e);throw new Error("Unknown image format.")}}var ee={initImages(){this._imageRegistry={},this._imageCount=0},image(t,e,n,r){let i,s,o,a,l,h,u,c,f;void 0===r&&(r={}),"object"==typeof e&&(r=e,e=null);const d=r.ignoreOrientation||!1!==r.ignoreOrientation&&this.options.ignoreOrientation,p="number"!=typeof n;e=null!=(h=null!=e?e:r.x)?h:this.x,n=null!=(u=null!=n?n:r.y)?u:this.y,"string"==typeof t&&(a=this._imageRegistry[t]),a||(a=t.width&&t.height?t:this.openImage(t)),a.obj||a.embed(this),null==this.page.xobjects[a.label]&&(this.page.xobjects[a.label]=a.obj);let g=a,y=g.width,m=g.height;if(!d&&a.orientation>4){var b=[m,y];y=b[0],m=b[1]}let w=r.width||y,v=r.height||m;if(r.width&&!r.height){const t=w/y;w=y*t,v=m*t}else if(r.height&&!r.width){const t=v/m;w=y*t,v=m*t}else if(r.scale)w=y*r.scale,v=m*r.scale;else if(r.fit){var A=r.fit;o=A[0],i=A[1],s=o/i,l=y/m,l>s?(w=o,v=o/l):(v=i,w=i*l)}else if(r.cover){var x=r.cover;o=x[0],i=x[1],s=o/i,l=y/m,l>s?(v=i,w=i*l):(w=o,v=o/l)}(r.fit||r.cover)&&("center"===r.align?e=e+o/2-w/2:"right"===r.align&&(e=e+o-w),"center"===r.valign?n=n+i/2-v/2:"bottom"===r.valign&&(n=n+i-v));let S=0,_=e,C=n,k=v,P=w;if(d)k=-v,C+=v;else switch(a.orientation){default:case 1:k=-v,C+=v;break;case 2:P=-w,k=-v,_+=w,C+=v;break;case 3:c=e,f=n,k=-v,_-=w,S=180;break;case 4:break;case 5:c=e,f=n,P=v,k=w,C-=k,S=90;break;case 6:c=e,f=n,P=v,k=-w,S=90;break;case 7:c=e,f=n,k=-w,P=-v,_+=v,S=90;break;case 8:c=e,f=n,P=v,k=-w,_-=v,C+=w,S=-90}return null!=r.link&&this.link(e,n,w,v,r.link),null!=r.goTo&&this.goTo(e,n,w,v,r.goTo),null!=r.destination&&this.addNamedDestination(r.destination,"XYZ",e,n,null),p&&(this.y+=v),this.save(),null!=r.opacity&&this._doOpacity(r.opacity,null),S&&this.rotate(S,{origin:[c,f]}),this.transform(P,0,0,k,_,C),this.addContent(`/${a.label} Do`),this.restore(),this},openImage(t){let e;return"string"==typeof t&&(e=this._imageRegistry[t]),e||(e=te.open(t,"I"+ ++this._imageCount),"string"==typeof t&&(this._imageRegistry[t]=e)),e}};class ne{constructor(t){this.annotationRef=t}}var re={annotate(t,e,n,r,i){i.Type="Annot",i.Rect=this._convertRect(t,e,n,r),i.Border=[0,0,0],"Link"===i.Subtype&&void 0===i.F&&(i.F=4),"Link"!==i.Subtype&&null==i.C&&(i.C=this._normalizeColor(i.color||[0,0,0])),delete i.color,"string"==typeof i.Dest&&(i.Dest=new String(i.Dest));const s=i.structParent;delete i.structParent;for(let t in i){const e=i[t];i[t[0].toUpperCase()+t.slice(1)]=e}const o=this.ref(i);if(this.page.annotations.push(o),s&&"function"==typeof s.add){const t=new ne(o);s.add(t)}return o.end(),this},note(t,e,n,r,i,s){return void 0===s&&(s={}),s.Subtype="Text",s.Contents=new String(i),null==s.Name&&(s.Name="Comment"),null==s.color&&(s.color=[243,223,92]),this.annotate(t,e,n,r,s)},goTo(t,e,n,r,i,s){return void 0===s&&(s={}),s.Subtype="Link",s.A=this.ref({S:"GoTo",D:new String(i)}),s.A.end(),this.annotate(t,e,n,r,s)},link(t,e,n,r,i,s){if(void 0===s&&(s={}),s.Subtype="Link","number"==typeof i){const t=this._root.data.Pages.data;if(!(i>=0&&i0){this.options.expanded&&(this.outlineData.Count=this.children.length);const t=this.children[0],e=this.children[this.children.length-1];this.outlineData.First=t.dictionary,this.outlineData.Last=e.dictionary;for(let t=0,e=this.children.length;t0&&(e.outlineData.Prev=this.children[t-1].dictionary),t0)return this._root.data.Outlines=this.outline.dictionary,this._root.data.PageMode=this._root.data.PageMode||"UseOutlines"}};class ae{constructor(t,e){this.refs=[{pageRef:t,mcid:e}]}push(t){t.refs.forEach((t=>this.refs.push(t)))}}class le{constructor(t,e,n,r){void 0===n&&(n={}),void 0===r&&(r=null),this.document=t,this._attached=!1,this._ended=!1,this._flushed=!1,this.dictionary=t.ref({S:e});const i=this.dictionary.data;(Array.isArray(n)||this._isValidChild(n))&&(r=n,n={}),n.title&&(i.T=new String(n.title)),n.lang&&(i.Lang=new String(n.lang)),n.alt&&(i.Alt=new String(n.alt)),n.expanded&&(i.E=new String(n.expanded)),n.actual&&(i.ActualText=new String(n.actual));const s=Array.isArray(n.bbox)&&4===n.bbox.length,o="string"==typeof n.placement;if(s||o){const e={O:"Layout"};if(e.Placement=o?n.placement:"Block",s){const r=t.page.height;e.BBox=[n.bbox[0],r-n.bbox[3],n.bbox[2],r-n.bbox[1]]}i.A=e}n.scope&&(i.A={...i.A||{},O:"Table",Scope:n.scope}),this._children=[],r&&(Array.isArray(r)||(r=[r]),r.forEach((t=>this.add(t))),this.end())}add(t){if(this._ended)throw new Error("Cannot add child to already-ended structure element");if(!this._isValidChild(t))throw new Error("Invalid structure element child");return t instanceof le&&(t.setParent(this.dictionary),this._attached&&t.setAttached()),t instanceof ae&&this._addContentToParentTree(t),t instanceof ne&&this._addAnnotationToParentTree(t.annotationRef),"function"==typeof t&&this._attached&&(t=this._contentForClosure(t)),this._children.push(t),this}_addContentToParentTree(t){t.refs.forEach((t=>{let e=t.pageRef,n=t.mcid;this.document.getStructParentTree().get(e.data.StructParents)[n]=this.dictionary}))}_addAnnotationToParentTree(t){const e=this.document.createStructParentTreeNextKey();t.data.StructParent=e,this.document.getStructParentTree().add(e,this.dictionary)}setParent(t){if(this.dictionary.data.P)throw new Error("Structure element added to more than one parent");this.dictionary.data.P=t,this._flush()}setAttached(){this._attached||(this._children.forEach(((t,e)=>{t instanceof le&&t.setAttached(),"function"==typeof t&&(this._children[e]=this._contentForClosure(t))})),this._attached=!0,this._flush())}end(){this._ended||(this._children.filter((t=>t instanceof le)).forEach((t=>t.end())),this._ended=!0,this._flush())}_isValidChild(t){return t instanceof le||t instanceof ae||t instanceof ne||"function"==typeof t}_contentForClosure(t){const e=this.document.markStructureContent(this.dictionary.data.S),n=this.document._currentStructureElement;this.document._currentStructureElement=this;const r=this._ended;return this._ended=!1,t(),this._ended=r,this.document._currentStructureElement=n,this.document.endMarkedContent(),this._addContentToParentTree(e),e}_isFlushable(){return!(!this.dictionary.data.P||!this._ended)&&this._children.every((t=>"function"!=typeof t&&(!(t instanceof le)||t._isFlushable())))}_flush(){!this._flushed&&this._isFlushable()&&(this.dictionary.data.K=[],this._children.forEach((t=>this._flushChild(t))),this.dictionary.end(),this._children=[],this.dictionary.data.K=null,this._flushed=!0)}_flushChild(t){if(t instanceof le&&this.dictionary.data.K.push(t.dictionary),t instanceof ae&&t.refs.forEach((t=>{let e=t.pageRef,n=t.mcid;this.dictionary.data.Pg||(this.dictionary.data.Pg=e),this.dictionary.data.Pg===e?this.dictionary.data.K.push(n):this.dictionary.data.K.push({Type:"MCR",Pg:e,MCID:n})})),t instanceof ne){const e=this.document.page.dictionary,n={Type:"OBJR",Obj:t.annotationRef,Pg:e};this.dictionary.data.K.push(n)}}}class he extends y{_compareKeys(t,e){return parseInt(t)-parseInt(e)}_keysName(){return"Nums"}_dataForKey(t){return parseInt(t)}}var ue={initMarkings(t){this.structChildren=[],t.tagged&&(this.getMarkInfoDictionary().data.Marked=!0,this.getStructTreeRoot())},markContent(t,e){if(void 0===e&&(e=null),"Artifact"===t||e&&e.mcid){let t=0;for(this.page.markings.forEach((e=>{(t||e.structContent||"Artifact"===e.tag)&&t++}));t--;)this.endMarkedContent()}if(!e)return this.page.markings.push({tag:t}),this.addContent(`/${t} BMC`),this;this.page.markings.push({tag:t,options:e});const n={};return void 0!==e.mcid&&(n.MCID=e.mcid),"Artifact"===t&&("string"==typeof e.type&&(n.Type=e.type),Array.isArray(e.bbox)&&(n.BBox=[e.bbox[0],this.page.height-e.bbox[3],e.bbox[2],this.page.height-e.bbox[1]]),Array.isArray(e.attached)&&e.attached.every((t=>"string"==typeof t))&&(n.Attached=e.attached)),"Span"===t&&(e.lang&&(n.Lang=new String(e.lang)),e.alt&&(n.Alt=new String(e.alt)),e.expanded&&(n.E=new String(e.expanded)),e.actual&&(n.ActualText=new String(e.actual))),this.addContent(`/${t} ${S.convert(n)} BDC`),this},markStructureContent(t,e){void 0===e&&(e={});const n=this.getStructParentTree().get(this.page.structParentTreeKey),r=n.length;n.push(null),this.markContent(t,{...e,mcid:r});const i=new ae(this.page.dictionary,r);return this.page.markings.slice(-1)[0].structContent=i,i},endMarkedContent(){return this.page.markings.pop(),this.addContent("EMC"),this._textOptions&&(delete this._textOptions.link,delete this._textOptions.goTo,delete this._textOptions.destination,delete this._textOptions.underline,delete this._textOptions.strike),this},struct(t,e,n){return void 0===e&&(e={}),void 0===n&&(n=null),new le(this,t,e,n)},addStructure(t){const e=this.getStructTreeRoot();return t.setParent(e),t.setAttached(),this.structChildren.push(t),e.data.K||(e.data.K=[]),e.data.K.push(t.dictionary),this},initPageMarkings(t){t.forEach((t=>{if(t.structContent){const e=t.structContent,n=this.markStructureContent(t.tag,t.options);e.push(n),this.page.markings.slice(-1)[0].structContent=e}else this.markContent(t.tag,t.options)}))},endPageMarkings(t){const e=t.markings;return e.forEach((()=>t.write("EMC"))),t.markings=[],e},getMarkInfoDictionary(){return this._root.data.MarkInfo||(this._root.data.MarkInfo=this.ref({})),this._root.data.MarkInfo},hasMarkInfoDictionary(){return!!this._root.data.MarkInfo},getStructTreeRoot(){return this._root.data.StructTreeRoot||(this._root.data.StructTreeRoot=this.ref({Type:"StructTreeRoot",ParentTree:new he,ParentTreeNextKey:0})),this._root.data.StructTreeRoot},getStructParentTree(){return this.getStructTreeRoot().data.ParentTree},createStructParentTreeNextKey(){this.getMarkInfoDictionary();const t=this.getStructTreeRoot(),e=t.data.ParentTreeNextKey++;return t.data.ParentTree.add(e,[]),e},endMarkings(){const t=this._root.data.StructTreeRoot;t&&(t.end(),this.structChildren.forEach((t=>t.end()))),this._root.data.MarkInfo&&this._root.data.MarkInfo.end()}};const ce={readOnly:1,required:2,noExport:4,multiline:4096,password:8192,toggleToOffButton:16384,radioButton:32768,pushButton:65536,combo:131072,edit:262144,sort:524288,multiSelect:2097152,noSpell:4194304},fe={left:0,center:1,right:2},de={value:"V",defaultValue:"DV"},pe={zip:"0",zipPlus4:"1",zip4:"1",phone:"2",ssn:"3"},ge={nDec:0,sepComma:!1,negStyle:"MinusBlack",currency:"",currencyPrepend:!0},ye={nDec:0,sepComma:!1};var me={initForm(){if(!this._font)throw new Error("Must set a font before calling initForm method");this._acroform={fonts:{},defaultFont:this._font.name},this._acroform.fonts[this._font.id]=this._font.ref();let t={Fields:[],NeedAppearances:!0,DA:new String(`/${this._font.id} 0 Tf 0 g`),DR:{Font:{}}};t.DR.Font[this._font.id]=this._font.ref();const e=this.ref(t);return this._root.data.AcroForm=e,this},endAcroForm(){if(this._root.data.AcroForm){if(!Object.keys(this._acroform.fonts).length&&!this._acroform.defaultFont)throw new Error("No fonts specified for PDF form");let t=this._root.data.AcroForm.data.DR.Font;Object.keys(this._acroform.fonts).forEach((e=>{t[e]=this._acroform.fonts[e]})),this._root.data.AcroForm.data.Fields.forEach((t=>{this._endChild(t)})),this._root.data.AcroForm.end()}return this},_endChild(t){return Array.isArray(t.data.Kids)&&(t.data.Kids.forEach((t=>{this._endChild(t)})),t.end()),this},formField(t,e){void 0===e&&(e={});let n=this._fieldDict(t,null,e),r=this.ref(n);return this._addToParent(r),r},formAnnotation(t,e,n,r,i,s,o){void 0===o&&(o={});let a=this._fieldDict(t,e,o);a.Subtype="Widget",void 0===a.F&&(a.F=4),this.annotate(n,r,i,s,a);let l=this.page.annotations[this.page.annotations.length-1];return this._addToParent(l)},formText(t,e,n,r,i,s){return void 0===s&&(s={}),this.formAnnotation(t,"text",e,n,r,i,s)},formPushButton(t,e,n,r,i,s){return void 0===s&&(s={}),this.formAnnotation(t,"pushButton",e,n,r,i,s)},formCombo(t,e,n,r,i,s){return void 0===s&&(s={}),this.formAnnotation(t,"combo",e,n,r,i,s)},formList(t,e,n,r,i,s){return void 0===s&&(s={}),this.formAnnotation(t,"list",e,n,r,i,s)},formRadioButton(t,e,n,r,i,s){return void 0===s&&(s={}),this.formAnnotation(t,"radioButton",e,n,r,i,s)},formCheckbox(t,e,n,r,i,s){return void 0===s&&(s={}),this.formAnnotation(t,"checkbox",e,n,r,i,s)},_addToParent(t){let e=t.data.Parent;return e?(e.data.Kids||(e.data.Kids=[]),e.data.Kids.push(t)):this._root.data.AcroForm.data.Fields.push(t),this},_fieldDict(t,e,n){if(void 0===n&&(n={}),!this._acroform)throw new Error("Call document.initForm() method before adding form elements to document");let r=Object.assign({},n);return null!==e&&(r=this._resolveType(e,n)),r=this._resolveFlags(r),r=this._resolveJustify(r),r=this._resolveFont(r),r=this._resolveStrings(r),r=this._resolveColors(r),r=this._resolveFormat(r),r.T=new String(t),r.parent&&(r.Parent=r.parent,delete r.parent),r},_resolveType(t,e){if("text"===t)e.FT="Tx";else if("pushButton"===t)e.FT="Btn",e.pushButton=!0;else if("radioButton"===t)e.FT="Btn",e.radioButton=!0;else if("checkbox"===t)e.FT="Btn";else if("combo"===t)e.FT="Ch",e.combo=!0;else{if("list"!==t)throw new Error(`Invalid form annotation type '${t}'`);e.FT="Ch"}return e},_resolveFormat(t){const e=t.format;if(e&&e.type){let n,r,i="";if(void 0!==pe[e.type])n="AFSpecial_Keystroke",r="AFSpecial_Format",i=pe[e.type];else{let t=e.type.charAt(0).toUpperCase()+e.type.slice(1);if(n=`AF${t}_Keystroke`,r=`AF${t}_Format`,"date"===e.type)n+="Ex",i=String(e.param);else if("time"===e.type)i=String(e.param);else if("number"===e.type){let t=Object.assign({},ge,e);i=String([String(t.nDec),t.sepComma?"0":"1",'"'+t.negStyle+'"',"null",'"'+t.currency+'"',String(t.currencyPrepend)].join(","))}else if("percent"===e.type){let t=Object.assign({},ye,e);i=String([String(t.nDec),t.sepComma?"0":"1"].join(","))}}t.AA=t.AA?t.AA:{},t.AA.K={S:"JavaScript",JS:new String(`${n}(${i});`)},t.AA.F={S:"JavaScript",JS:new String(`${r}(${i});`)}}return delete t.format,t},_resolveColors(t){let e=this._normalizeColor(t.backgroundColor);return e&&(t.MK||(t.MK={}),t.MK.BG=e),e=this._normalizeColor(t.borderColor),e&&(t.MK||(t.MK={}),t.MK.BC=e),delete t.backgroundColor,delete t.borderColor,t},_resolveFlags(t){let e=0;return Object.keys(t).forEach((n=>{ce[n]&&(t[n]&&(e|=ce[n]),delete t[n])})),0!==e&&(t.Ff=t.Ff?t.Ff:0,t.Ff|=e),t},_resolveJustify(t){let e=0;return void 0!==t.align&&("number"==typeof fe[t.align]&&(e=fe[t.align]),delete t.align),0!==e&&(t.Q=e),t},_resolveFont(t){if(null==this._acroform.fonts[this._font.id]&&(this._acroform.fonts[this._font.id]=this._font.ref()),this._acroform.defaultFont!==this._font.name){t.DR={Font:{}};const e=t.fontSize||0;t.DR.Font[this._font.id]=this._font.ref(),t.DA=new String(`/${this._font.id} ${e} Tf 0 g`)}return t},_resolveStrings(t){let e=[];function n(t){if(Array.isArray(t))for(let n=0;n{void 0!==t[e]&&(t[de[e]]=t[e],delete t[e])})),["V","DV"].forEach((e=>{"string"==typeof t[e]&&(t[e]=new String(t[e]))})),t.MK&&t.MK.CA&&(t.MK.CA=new String(t.MK.CA)),t.label&&(t.MK=t.MK?t.MK:{},t.MK.CA=new String(t.label),delete t.label),t}},be={file(t,e){void 0===e&&(e={}),e.name=e.name||t,e.relationship=e.relationship||"Unspecified";const n={Type:"EmbeddedFile",Params:{}};let i;if(!t)throw new Error("No src specified");if(r.isBuffer(t))i=t;else if(t instanceof ArrayBuffer)i=r.from(new Uint8Array(t));else{const e=/^data:(.*?);base64,(.*)$/.exec(t);if(e)e[1]&&(n.Subtype=x(e[1])),i=r.from(e[2],"base64");else{if(i=p.readFileSync(t),!i)throw new Error(`Could not read contents of file at filepath ${t}`);const e=p.statSync(t),r=e.birthtime,s=e.ctime;n.Params.CreationDate=r,n.Params.ModDate=s}}e.creationDate instanceof Date&&(n.Params.CreationDate=e.creationDate),e.modifiedDate instanceof Date&&(n.Params.ModDate=e.modifiedDate),e.type&&(n.Subtype=x(e.type));const s=function(t){return(0,a.default)(t)}(new Uint8Array(i));let o;n.Params.CheckSum=new String(s),n.Params.Size=i.byteLength,this._fileRegistry||(this._fileRegistry={});let l=this._fileRegistry[e.name];var h,u;l&&(u=l,(h=n).Subtype===u.Subtype&&h.Params.CheckSum.toString()===u.Params.CheckSum.toString()&&h.Params.Size===u.Params.Size&&h.Params.CreationDate.getTime()===u.Params.CreationDate.getTime()&&(void 0===h.Params.ModDate&&void 0===u.Params.ModDate||h.Params.ModDate.getTime()===u.Params.ModDate.getTime()))?o=l.ref:(o=this.ref(n),o.end(i),this._fileRegistry[e.name]={...n,ref:o});const c={Type:"Filespec",AFRelationship:e.relationship,F:new String(e.name),EF:{F:o},UF:new String(e.name)};e.description&&(c.Desc=new String(e.description));const f=this.ref(c);return f.end(),e.hidden||this.addNamedEmbeddedFile(e.name,f),this._root.data.AF?this._root.data.AF.push(f):this._root.data.AF=[f],f}},we={initPDFA(t){"-"===t.charAt(t.length-3)?(this.subset_conformance=t.charAt(t.length-1).toUpperCase(),this.subset=parseInt(t.charAt(t.length-2))):(this.subset_conformance="B",this.subset=parseInt(t.charAt(t.length-1)))},endSubset(){this._addPdfaMetadata(),this._addColorOutputIntent()},_addColorOutputIntent(){const t=r("AAAL0AAAAAACAAAAbW50clJHQiBYWVogB98AAgAPAAAAAAAAYWNzcAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAPbWAAEAAAAA0y0AAAAAPQ6y3q6Tl76bZybOjApDzgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQZGVzYwAAAUQAAABjYlhZWgAAAagAAAAUYlRSQwAAAbwAAAgMZ1RSQwAAAbwAAAgMclRSQwAAAbwAAAgMZG1kZAAACcgAAACIZ1hZWgAAClAAAAAUbHVtaQAACmQAAAAUbWVhcwAACngAAAAkYmtwdAAACpwAAAAUclhZWgAACrAAAAAUdGVjaAAACsQAAAAMdnVlZAAACtAAAACHd3RwdAAAC1gAAAAUY3BydAAAC2wAAAA3Y2hhZAAAC6QAAAAsZGVzYwAAAAAAAAAJc1JHQjIwMTQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFhZWiAAAAAAAAAkoAAAD4QAALbPY3VydgAAAAAAAAQAAAAABQAKAA8AFAAZAB4AIwAoAC0AMgA3ADsAQABFAEoATwBUAFkAXgBjAGgAbQByAHcAfACBAIYAiwCQAJUAmgCfAKQAqQCuALIAtwC8AMEAxgDLANAA1QDbAOAA5QDrAPAA9gD7AQEBBwENARMBGQEfASUBKwEyATgBPgFFAUwBUgFZAWABZwFuAXUBfAGDAYsBkgGaAaEBqQGxAbkBwQHJAdEB2QHhAekB8gH6AgMCDAIUAh0CJgIvAjgCQQJLAlQCXQJnAnECegKEAo4CmAKiAqwCtgLBAssC1QLgAusC9QMAAwsDFgMhAy0DOANDA08DWgNmA3IDfgOKA5YDogOuA7oDxwPTA+AD7AP5BAYEEwQgBC0EOwRIBFUEYwRxBH4EjASaBKgEtgTEBNME4QTwBP4FDQUcBSsFOgVJBVgFZwV3BYYFlgWmBbUFxQXVBeUF9gYGBhYGJwY3BkgGWQZqBnsGjAadBq8GwAbRBuMG9QcHBxkHKwc9B08HYQd0B4YHmQesB78H0gflB/gICwgfCDIIRghaCG4IggiWCKoIvgjSCOcI+wkQCSUJOglPCWQJeQmPCaQJugnPCeUJ+woRCicKPQpUCmoKgQqYCq4KxQrcCvMLCwsiCzkLUQtpC4ALmAuwC8gL4Qv5DBIMKgxDDFwMdQyODKcMwAzZDPMNDQ0mDUANWg10DY4NqQ3DDd4N+A4TDi4OSQ5kDn8Omw62DtIO7g8JDyUPQQ9eD3oPlg+zD88P7BAJECYQQxBhEH4QmxC5ENcQ9RETETERTxFtEYwRqhHJEegSBxImEkUSZBKEEqMSwxLjEwMTIxNDE2MTgxOkE8UT5RQGFCcUSRRqFIsUrRTOFPAVEhU0FVYVeBWbFb0V4BYDFiYWSRZsFo8WshbWFvoXHRdBF2UXiReuF9IX9xgbGEAYZRiKGK8Y1Rj6GSAZRRlrGZEZtxndGgQaKhpRGncanhrFGuwbFBs7G2MbihuyG9ocAhwqHFIcexyjHMwc9R0eHUcdcB2ZHcMd7B4WHkAeah6UHr4e6R8THz4faR+UH78f6iAVIEEgbCCYIMQg8CEcIUghdSGhIc4h+yInIlUigiKvIt0jCiM4I2YjlCPCI/AkHyRNJHwkqyTaJQklOCVoJZclxyX3JicmVyaHJrcm6CcYJ0kneierJ9woDSg/KHEooijUKQYpOClrKZ0p0CoCKjUqaCqbKs8rAis2K2krnSvRLAUsOSxuLKIs1y0MLUEtdi2rLeEuFi5MLoIuty7uLyQvWi+RL8cv/jA1MGwwpDDbMRIxSjGCMbox8jIqMmMymzLUMw0zRjN/M7gz8TQrNGU0njTYNRM1TTWHNcI1/TY3NnI2rjbpNyQ3YDecN9c4FDhQOIw4yDkFOUI5fzm8Ofk6Njp0OrI67zstO2s7qjvoPCc8ZTykPOM9Ij1hPaE94D4gPmA+oD7gPyE/YT+iP+JAI0BkQKZA50EpQWpBrEHuQjBCckK1QvdDOkN9Q8BEA0RHRIpEzkUSRVVFmkXeRiJGZ0arRvBHNUd7R8BIBUhLSJFI10kdSWNJqUnwSjdKfUrESwxLU0uaS+JMKkxyTLpNAk1KTZNN3E4lTm5Ot08AT0lPk0/dUCdQcVC7UQZRUFGbUeZSMVJ8UsdTE1NfU6pT9lRCVI9U21UoVXVVwlYPVlxWqVb3V0RXklfgWC9YfVjLWRpZaVm4WgdaVlqmWvVbRVuVW+VcNVyGXNZdJ114XcleGl5sXr1fD19hX7NgBWBXYKpg/GFPYaJh9WJJYpxi8GNDY5dj62RAZJRk6WU9ZZJl52Y9ZpJm6Gc9Z5Nn6Wg/aJZo7GlDaZpp8WpIap9q92tPa6dr/2xXbK9tCG1gbbluEm5rbsRvHm94b9FwK3CGcOBxOnGVcfByS3KmcwFzXXO4dBR0cHTMdSh1hXXhdj52m3b4d1Z3s3gReG54zHkqeYl553pGeqV7BHtje8J8IXyBfOF9QX2hfgF+Yn7CfyN/hH/lgEeAqIEKgWuBzYIwgpKC9INXg7qEHYSAhOOFR4Wrhg6GcobXhzuHn4gEiGmIzokziZmJ/opkisqLMIuWi/yMY4zKjTGNmI3/jmaOzo82j56QBpBukNaRP5GokhGSepLjk02TtpQglIqU9JVflcmWNJaflwqXdZfgmEyYuJkkmZCZ/JpomtWbQpuvnByciZz3nWSd0p5Anq6fHZ+Ln/qgaaDYoUehtqImopajBqN2o+akVqTHpTilqaYapoum/adup+CoUqjEqTepqaocqo+rAqt1q+msXKzQrUStuK4trqGvFq+LsACwdbDqsWCx1rJLssKzOLOutCW0nLUTtYq2AbZ5tvC3aLfguFm40blKucK6O7q1uy67p7whvJu9Fb2Pvgq+hL7/v3q/9cBwwOzBZ8Hjwl/C28NYw9TEUcTOxUvFyMZGxsPHQce/yD3IvMk6ybnKOMq3yzbLtsw1zLXNNc21zjbOts83z7jQOdC60TzRvtI/0sHTRNPG1EnUy9VO1dHWVdbY11zX4Nhk2OjZbNnx2nba+9uA3AXcit0Q3ZbeHN6i3ynfr+A24L3hROHM4lPi2+Nj4+vkc+T85YTmDeaW5x/nqegy6LzpRunQ6lvq5etw6/vshu0R7ZzuKO6070DvzPBY8OXxcvH/8ozzGfOn9DT0wvVQ9d72bfb794r4Gfio+Tj5x/pX+uf7d/wH/Jj9Kf26/kv+3P9t//9kZXNjAAAAAAAAAC5JRUMgNjE5NjYtMi0xIERlZmF1bHQgUkdCIENvbG91ciBTcGFjZSAtIHNSR0IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWFlaIAAAAAAAAGKZAAC3hQAAGNpYWVogAAAAAAAAAAAAUAAAAAAAAG1lYXMAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlhZWiAAAAAAAAAAngAAAKQAAACHWFlaIAAAAAAAAG+iAAA49QAAA5BzaWcgAAAAAENSVCBkZXNjAAAAAAAAAC1SZWZlcmVuY2UgVmlld2luZyBDb25kaXRpb24gaW4gSUVDIDYxOTY2LTItMQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWFlaIAAAAAAAAPbWAAEAAAAA0y10ZXh0AAAAAENvcHlyaWdodCBJbnRlcm5hdGlvbmFsIENvbG9yIENvbnNvcnRpdW0sIDIwMTUAAHNmMzIAAAAAAAEMRAAABd////MmAAAHlAAA/Y////uh///9ogAAA9sAAMB1","base64"),e=this.ref({Length:t.length,N:3});e.write(t),e.end();const n=this.ref({Type:"OutputIntent",S:"GTS_PDFA1",Info:new String("sRGB IEC61966-2.1"),OutputConditionIdentifier:new String("sRGB IEC61966-2.1"),DestOutputProfile:e});n.end(),this._root.data.OutputIntents=[n]},_getPdfaid(){return`\n \n ${this.subset}\n ${this.subset_conformance}\n \n `},_addPdfaMetadata(){this.appendXML(this._getPdfaid())}},ve={initPDFUA(){this.subset=1},endSubset(){this._addPdfuaMetadata()},_addPdfuaMetadata(){this.appendXML(this._getPdfuaid())},_getPdfuaid(){return`\n \n ${this.subset}\n \n `}},Ae={_importSubset(t){Object.assign(this,t)},initSubset(t){switch(t.subset){case"PDF/A-1":case"PDF/A-1a":case"PDF/A-1b":case"PDF/A-2":case"PDF/A-2a":case"PDF/A-2b":case"PDF/A-3":case"PDF/A-3a":case"PDF/A-3b":this._importSubset(we),this.initPDFA(t.subset);break;case"PDF/UA":this._importSubset(ve),this.initPDFUA()}}};const xe=["height","minHeight","maxHeight"],Se=["width","minWidth","maxWidth"];function _e(t,e){const n=new Map;return function(){const r=arguments.length<=0?void 0:arguments[0];return n.has(r)||(n.set(r,t(...arguments)),n.size>e&&n.delete(n.keys().next())),n.get(r)}}function Ce(t){return t&&"object"==typeof t&&!Array.isArray(t)}function ke(t){if(!Ce(t))return t;t=Pe(t);for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r{let e=t[0];return xe.includes(e)}))),r=Object.fromEntries(Object.entries(e).filter((t=>{let e=t[0];return Se.includes(e)})));return e.padding=E(e.padding),e.border=E(e.border),e.borderColor=E(e.borderColor),e.align=Oe(e.align),{defaultStyle:e,defaultRowStyle:n,defaultColStyle:r}}(e.defaultStyle),i=r.defaultStyle,s=r.defaultColStyle,o=r.defaultRowStyle;let a,l;this._defaultStyle=i,e.columnStyles&&(Array.isArray(e.columnStyles)?a=t=>e.columnStyles[t]:"function"==typeof e.columnStyles?a=_e((t=>e.columnStyles(t)),1/0):"object"==typeof e.columnStyles&&(a=()=>e.columnStyles)),a||(a=()=>({})),this._colStyle=Te.bind(this,s,a),e.rowStyles&&(Array.isArray(e.rowStyles)?l=t=>e.rowStyles[t]:"function"==typeof e.rowStyles?l=_e((t=>e.rowStyles(t)),10):"object"==typeof e.rowStyles&&(l=()=>e.rowStyles)),l||(l=()=>({})),this._rowStyle=Ee.bind(this,o,l)}function Le(t,e,n){const r=this._colStyle(n);let i=this._rowStyle(e);const s=ke({},r.font,i.font,t.font),o=Object.values(s).filter((t=>null!=t)).length>0,a=this.document,l=a._fontSource,h=a._fontSize,u=a._fontFamily;o&&(s.src&&a.font(s.src,s.family),s.size&&a.fontSize(s.size),i=this._rowStyle(e)),t.padding=E(t.padding),t.border=E(t.border),t.borderColor=E(t.borderColor);const c=ke(this._defaultStyle,r,i,t);var f;return c.rowIndex=e,c.colIndex=n,c.font=s??{},c.customFont=o,c.text=(null!=(f=c.text)&&(f=`${f}`),f),c.rowSpan=c.rowSpan??1,c.colSpan=c.colSpan??1,c.padding=E(c.padding,"0.25em",(t=>a.sizeToPoint(t,"0.25em"))),c.border=E(c.border,1,(t=>a.sizeToPoint(t,1))),c.borderColor=E(c.borderColor,"black",(t=>t??"black")),c.align=Oe(c.align),c.align.x=c.align.x??"left",c.align.y=c.align.y??"top",c.textStroke=a.sizeToPoint(c.textStroke,0),c.textStrokeColor=c.textStrokeColor??"black",c.textColor=c.textColor??"black",c.textOptions=c.textOptions??{},c.id=new String(c.id??`${this._id}-${e}-${n}`),c.type="TH"===c.type?.toUpperCase()?"TH":"TD",c.scope&&(c.scope=c.scope.toLowerCase(),"row"===c.scope?c.scope="Row":"both"===c.scope?c.scope="Both":"column"===c.scope&&(c.scope="Column")),"boolean"==typeof this.opts.debug&&(c.debug=this.opts.debug),o&&a.font(l,u,h),c}function Be(t,e){this._cellClaim||(this._cellClaim=new Set);let n=0;return t.map((t=>{for(null!=t&&"object"==typeof t||(t={text:t});this._cellClaim.has(`${e},${n}`);)n++;t=Le.call(this,t,e,n);for(let r=0;rt+e.colSpan),0)),this._rowHeights=[],this._rowYPos=[this._position.y],this._rowBuffer=new Set}function De(t){let e=[],n=0,r=this._maxWidth;for(let i=0;it+1),0);n>=r?e.forEach(((t,e)=>{this._columnWidths[e]=t.minWidth})):i>0&&e.forEach(((t,e)=>{let n=r/i;this._columnWidths[e]=Math.max(n,t.minWidth),t.maxWidth>0&&(this._columnWidths[e]=Math.min(this._columnWidths[e],t.maxWidth)),r-=this._columnWidths[e],i--}));let s=this._position.x;this._columnXPos=Array.from(this._columnWidths,(t=>{const e=s;return s+=t,e}))}function Re(t,e){t.forEach((t=>this._rowBuffer.add(t))),e>0&&(this._rowYPos[e]=this._rowYPos[e-1]+this._rowHeights[e-1]);const n=this._rowStyle(e);let r=[];this._rowBuffer.forEach((t=>{t.rowIndex+t.rowSpan-1===e&&(r.push(Ne.call(this,t,n.height)),this._rowBuffer.delete(t))}));let i=n.height;"auto"===i&&(i=r.reduce(((t,e)=>{let n=e.textBounds.height+e.padding.top+e.padding.bottom;for(let t=0;t0&&(i=Math.min(i,n.maxHeight)),this._rowHeights[e]=i;let s=!1;return i>this.document.page.contentHeight?(console.warn(new Error(`Row ${e} requested more than the safe page height, row has been clamped`).stack.slice(7)),this._rowHeights[e]=this.document.page.maxY()-this._rowYPos[e]):this._rowYPos[e]+i>=this.document.page.maxY()&&(this._rowYPos[e]=this.document.page.margins.top,s=!0),{newPage:s,toRender:r.map((t=>Ne.call(this,t,i)))}}function Ne(t,e){let n=0;for(let e=0;e180&&t<270?(r=e/(2*s),i=e/(2*o)):(i=e/(2*s),r=e/(2*o));if(o*r+s*i>n){const a=s*s-o*o;0===t||180===t?(r=e,i=n):90===t||270===t?(r=n,i=e):t<90||t>180&&t<270?(r=(e*s-n*o)/a,i=(n*s-e*o)/a):(i=(e*s-n*o)/a,r=(n*s-e*o)/a)}return{width:Math.abs(r),height:Math.abs(i)}}(o,i,s),l=a.width,h=a.height,u={align:t.align.x,ellipsis:!0,stroke:t.textStroke>0,fill:!0,width:l,height:h,rotation:o,...t.textOptions};let c={x:0,y:0,width:0,height:0};if(t.text){const e=this.document._fontSource,n=this.document._fontSize,r=this.document._fontFamily;t.font?.src&&this.document.font(t.font.src,t.font?.family),t.font?.size&&this.document.fontSize(t.font.size);const i=this.document.boundsOfString(t.text,0,0,{...u,rotation:0});u.width=i.width,u.height=i.height,c=this.document.boundsOfString(t.text,0,0,u),this.document.font(e,r,n)}return{...t,textOptions:u,x:this._columnXPos[t.colIndex],y:this._rowYPos[t.rowIndex],textX:this._columnXPos[t.colIndex]+t.padding.left,textY:this._rowYPos[t.rowIndex]+t.padding.top,width:n,height:r,textAllocatedHeight:s,textAllocatedWidth:i,textBounds:c}}function Fe(){const t=this.opts.structParent;t&&(this._tableStruct=this.document.struct("Table"),this._tableStruct.dictionary.data.ID=this._id,t instanceof le?t.add(this._tableStruct):t instanceof Ke&&t.addStructure(this._tableStruct),this._headerRowLookup={},this._headerColumnLookup={})}function Ue(){this._tableStruct&&this._tableStruct.end()}function ze(t,e,n){const r=this.document.struct("TR");r.dictionary.data.ID=new String(`${this._id}-${e}`),this._tableStruct.add(r),t.forEach((t=>n(t,r))),r.end()}function We(t,e,n){const r=this.document,i=r.struct(t.type,{title:t.title});i.dictionary.data.ID=t.id,e.add(i);const s=t.padding,o=t.border,a={O:"Table",Width:t.width,Height:t.height,Padding:[s.top,s.bottom,s.left,s.right],RowSpan:t.rowSpan>1?t.rowSpan:void 0,ColSpan:t.colSpan>1?t.colSpan:void 0,BorderThickness:[o.top,o.bottom,o.left,o.right]};if("TH"===t.type){if("Row"===t.scope||"Both"===t.scope){for(let e=0;ethis._headerColumnLookup[t.colIndex+n])).flat(),...Array.from({length:t.rowSpan},((e,n)=>this._headerRowLookup[t.rowIndex+n])).flat()].filter(Boolean));l.size&&(a.Headers=Array.from(l));const h=r._normalizeColor;null!=t.backgroundColor&&(a.BackgroundColor=h(t.backgroundColor));const u=[o.top,o.bottom,o.left,o.right];if(u.some((t=>t))){const e=t.borderColor;a.BorderColor=[u[0]?h(e.top):null,u[1]?h(e.bottom):null,u[2]?h(e.left):null,u[3]?h(e.right):null]}Object.keys(a).forEach((t=>void 0===a[t]&&delete a[t])),i.dictionary.data.A=r.ref(a),i.add(n),i.end(),i.dictionary.data.A.end()}function je(t,e){return this._tableStruct?ze.call(this,t,e,Ve.bind(this)):t.forEach((t=>Ve.call(this,t))),this._rowYPos[e]+this._rowHeights[e]}function Ve(t,e){const n=()=>{null!=t.backgroundColor&&this.document.save().fillColor(t.backgroundColor).rect(t.x,t.y,t.width,t.height).fill().restore(),Ge.call(this,t.border,t.borderColor,t.x,t.y,t.width,t.height),t.debug&&(this.document.save(),this.document.dash(1,{space:1}).lineWidth(1).strokeOpacity(.3),this.document.rect(t.x,t.y,t.width,t.height).stroke("green"),this.document.restore()),t.text&&He.call(this,t)};e?We.call(this,t,e,n):n()}function He(t){const e=this.document,n=e._fontSource,r=e._fontSize,i=e._fontFamily;t.customFont&&(t.font.src&&e.font(t.font.src,t.font.family),t.font.size&&e.fontSize(t.font.size));const s=t.textX,o=t.textY,a=t.textAllocatedHeight,l=t.textAllocatedWidth,h=t.textBounds.width,u=t.textBounds.height,c=-t.textBounds.x,f=-t.textBounds.y,d=(l-h)*("right"===t.align.x?1:"center"===t.align.x?.5:0),p=(a-u)*("bottom"===t.align.y?1:"center"===t.align.y?.5:0),g=d+c,y=p+f;t.debug&&(e.save(),e.dash(1,{space:1}).lineWidth(1).strokeOpacity(.3),t.text&&e.moveTo(s+d,o).lineTo(s+d,o+a).moveTo(s+d+h,o).lineTo(s+d+h,o+a).stroke("blue").moveTo(s,o+p).lineTo(s+l,o+p).moveTo(s,o+p+u).lineTo(s+l,o+p+u).stroke("green"),e.rect(s,o,l,a).stroke("orange"),e.restore()),e.save().rect(s,o,l,a).clip(),e.fillColor(t.textColor).strokeColor(t.textStrokeColor),t.textStroke>0&&e.lineWidth(t.textStroke),e.text(t.text,s+g,o+y,t.textOptions),e.restore(),t.font&&e.font(n,i,r)}function Ge(t,e,n,r,i,s,o){t=Object.fromEntries(Object.entries(t).map((t=>{let e=t[0],n=t[1];return[e,o&&!o[e]?0:n]})));const a=this.document;[t.right,t.bottom,t.left].every((e=>e===t.top))?t.top>0&&a.save().lineWidth(t.top).strokeColor(e.top).rect(n,r,i,s).stroke().restore():(t.top>0&&a.save().lineWidth(t.top).moveTo(n,r).strokeColor(e.top).lineTo(n+i,r).stroke().restore(),t.right>0&&a.save().lineWidth(t.right).moveTo(n+i,r).strokeColor(e.right).lineTo(n+i,r+s).stroke().restore(),t.bottom>0&&a.save().lineWidth(t.bottom).moveTo(n+i,r+s).strokeColor(e.bottom).lineTo(n,r+s).stroke().restore(),t.left>0&&a.save().lineWidth(t.left).moveTo(n,r+s).strokeColor(e.left).lineTo(n,r).stroke().restore())}class qe{constructor(t,e){if(void 0===e&&(e={}),this.document=t,this.opts=Object.freeze(e),Ie.call(this),Fe.call(this),this._currRowIndex=0,this._ended=!1,e.data){for(const t of e.data)this.row(t);return this.end()}}row(t,e){if(void 0===e&&(e=!1),this._ended)throw new Error(`Table was marked as ended on row ${this._currRowIndex}`);t=Array.from(t),t=Be.call(this,t,this._currRowIndex),0===this._currRowIndex&&Me.call(this,t);const n=Re.call(this,t,this._currRowIndex),r=n.newPage,i=n.toRender;r&&this.document.continueOnNewPage();const s=je.call(this,i,this._currRowIndex);return this.document.x=this._position.x,this.document.y=s,e?this.end():(this._currRowIndex++,this)}end(){for(;this._rowBuffer?.size;)this.row([]);return this._ended=!0,Ue.call(this),this.document}}var Xe={initTables(){this._tableIndex=0},table(t){return new qe(this,t)}};class Ze{constructor(){this._metadata='\n \n \n \n '}_closeTags(){this._metadata=this._metadata.concat('\n \n \n \n ')}append(t,e){void 0===e&&(e=!0),this._metadata=this._metadata.concat(t),e&&(this._metadata=this._metadata.concat("\n"))}getXML(){return this._metadata}getLength(){return this._metadata.length}end(){this._closeTags(),this._metadata=this._metadata.trim()}}var Ye={initMetadata(){this.metadata=new Ze},appendXML(t,e){void 0===e&&(e=!0),this.metadata.append(t,e)},_addInfo(){this.appendXML(`\n \n ${this.info.CreationDate.toISOString().split(".")[0]+"Z"}\n ${this.info.Creator}\n \n `),(this.info.Title||this.info.Author||this.info.Subject)&&(this.appendXML('\n \n '),this.info.Title&&this.appendXML(`\n \n \n ${this.info.Title}\n \n \n `),this.info.Author&&this.appendXML(`\n \n \n ${this.info.Author}\n \n \n `),this.info.Subject&&this.appendXML(`\n \n \n ${this.info.Subject}\n \n \n `),this.appendXML("\n \n ")),this.appendXML(`\n \n ${this.info.Producer}`,!1),this.info.Keywords&&this.appendXML(`\n ${this.info.Keywords}`,!1),this.appendXML("\n \n ")},endMetadata(){this._addInfo(),this.metadata.end(),1.3!=this.version&&(this.metadataRef=this.ref({length:this.metadata.getLength(),Type:"Metadata",Subtype:"XML"}),this.metadataRef.compress=!1,this.metadataRef.write(r.from(this.metadata.getXML(),"utf-8")),this.metadataRef.end(),this._root.data.Metadata=this.metadataRef)}};class Ke extends i.default.Readable{constructor(t){switch(void 0===t&&(t={}),super(t),this.options=t,t.pdfVersion){case"1.4":this.version=1.4;break;case"1.5":this.version=1.5;break;case"1.6":this.version=1.6;break;case"1.7":case"1.7ext3":this.version=1.7;break;default:this.version=1.3}this.compress=null==this.options.compress||this.options.compress,this._pageBuffer=[],this._pageBufferStart=0,this._offsets=[],this._waiting=0,this._ended=!1,this._offset=0;const e=this.ref({Type:"Pages",Count:0,Kids:[]}),n=this.ref({Dests:new D});if(this._root=this.ref({Type:"Catalog",Pages:e,Names:n}),this.options.lang&&(this._root.data.Lang=new String(this.options.lang)),this.options.pageLayout){const t=this.options.pageLayout;this._root.data.PageLayout=t.charAt(0).toUpperCase()+t.slice(1)}if(this.page=null,this.initMetadata(),this.initColor(),this.initVector(),this.initFonts(t.font),this.initText(),this.initImages(),this.initOutline(),this.initMarkings(t),this.initTables(),this.initSubset(t),this.info={Producer:"PDFKit",Creator:"PDFKit",CreationDate:new Date},this.options.info)for(let t in this.options.info){const e=this.options.info[t];this.info[t]=e}this.options.displayTitle&&(this._root.data.ViewerPreferences=this.ref({DisplayDocTitle:!0})),this._id=et.generateFileID(this.info),this._security=et.create(this,t),this._write(`%PDF-${this.version}`),this._write("%ÿÿÿÿ"),!1!==this.options.autoFirstPage&&this.addPage()}addPage(t){null==t&&(t=this.options),this.options.bufferPages||this.flushPages(),this.page=new M(this,t),this._pageBuffer.push(this.page);const e=this._root.data.Pages.data;return e.Kids.push(this.page.dictionary),e.Count++,this.x=this.page.margins.left,this.y=this.page.margins.top,this._ctm=[1,0,0,1,0,0],this.transform(1,0,0,-1,0,this.page.height),this.emit("pageAdded"),this}continueOnNewPage(t){const e=this.endPageMarkings(this.page);return this.addPage(t??this.page._options),this.initPageMarkings(e),this}bufferedPageRange(){return{start:this._pageBufferStart,count:this._pageBuffer.length}}switchToPage(t){let e;if(!(e=this._pageBuffer[t-this._pageBufferStart]))throw new Error(`switchToPage(${t}) out of bounds, current buffer covers pages ${this._pageBufferStart} to ${this._pageBufferStart+this._pageBuffer.length-1}`);return this.page=e}flushPages(){const t=this._pageBuffer;this._pageBuffer=[],this._pageBufferStart+=t.length;for(let e of t)this.endPageMarkings(e),e.end()}addNamedDestination(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r{Object.assign(Ke.prototype,t)};Je(Ye),Je(pt),Je(Mt),Je(Ht),Je(Xt),Je(ee),Je(re),Je(oe),Je(ue),Je(me),Je(be),Je(Ae),Je(Xe),Ke.LineWrapper=Gt},6092(t,e,n){var r=n(2736),i=n(2022);void 0===i.pdfMake&&(i.pdfMake=r),t.exports=r},656(t,e,n){"use strict";e.polyval=e.ghash=void 0;const r=n(5181),i=16,s=new Uint8Array(16),o=(0,r.u32)(s),a=t=>(t>>>0&255)<<24|(t>>>8&255)<<16|(t>>>16&255)<<8|t>>>24&255;class l{constructor(t,e){this.blockLen=i,this.outputLen=i,this.s0=0,this.s1=0,this.s2=0,this.s3=0,this.finished=!1,t=(0,r.toBytes)(t),(0,r.abytes)(t,16);const n=(0,r.createView)(t);let s=n.getUint32(0,!1),o=n.getUint32(4,!1),l=n.getUint32(8,!1),h=n.getUint32(12,!1);const u=[];for(let t=0;t<128;t++)u.push({s0:a(s),s1:a(o),s2:a(l),s3:a(h)}),({s0:s,s1:o,s2:l,s3:h}={s3:(d=l)<<31|(p=h)>>>1,s2:(f=o)<<31|d>>>1,s1:(c=s)<<31|f>>>1,s0:c>>>1^225<<24&-(1&p)});var c,f,d,p;const g=(y=e||1024)>65536?8:y>1024?4:2;var y;if(![1,2,4,8].includes(g))throw new Error("ghash: invalid window size, expected 2, 4 or 8");this.W=g;const m=128/g,b=this.windowSize=2**g,w=[];for(let t=0;t>>g-o-1&1))continue;const{s0:a,s1:l,s2:h,s3:c}=u[g*t+o];n^=a,r^=l,i^=h,s^=c}w.push({s0:n,s1:r,s2:i,s3:s})}this.t=w}_updateBlock(t,e,n,r){t^=this.s0,e^=this.s1,n^=this.s2,r^=this.s3;const{W:i,t:s,windowSize:o}=this;let a=0,l=0,h=0,u=0;const c=(1<>>8*t&255;for(let t=8/i-1;t>=0;t--){const n=e>>>i*t&c,{s0:r,s1:d,s2:p,s3:g}=s[f*o+n];a^=r,l^=d,h^=p,u^=g,f+=1}}this.s0=a,this.s1=l,this.s2=h,this.s3=u}update(t){(0,r.aexists)(this),t=(0,r.toBytes)(t),(0,r.abytes)(t);const e=(0,r.u32)(t),n=Math.floor(t.length/i),a=t.length%i;for(let t=0;t>>1|n,n=(1&r)<<7}return t[0]^=225&-e,t}((0,r.copyBytes)(t));super(n,e),(0,r.clean)(n)}update(t){t=(0,r.toBytes)(t),(0,r.aexists)(this);const e=(0,r.u32)(t),n=t.length%i,l=Math.floor(t.length/i);for(let t=0;tt(n,e.length).update((0,r.toBytes)(e)).digest(),n=t(new Uint8Array(16),0);return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=(e,n)=>t(e,n),e}e.ghash=u(((t,e)=>new l(t,e))),e.polyval=u(((t,e)=>new h(t,e)))},2651(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unsafe=e.aeskwp=e.aeskw=e.siv=e.gcmsiv=e.gcm=e.cfb=e.cbc=e.ecb=e.ctr=void 0;const r=n(656),i=n(5181),s=16,o=new Uint8Array(s);function a(t){return t<<1^283&-(t>>7)}function l(t,e){let n=0;for(;e>0;e>>=1)n^=t&-(1&e),t=a(t);return n}const h=(()=>{const t=new Uint8Array(256);for(let e=0,n=1;e<256;e++,n^=a(n))t[e]=n;const e=new Uint8Array(256);e[0]=99;for(let n=0;n<255;n++){let r=t[255-n];r|=r<<8,e[t[n]]=255&(r^r>>4^r>>5^r>>6^r>>7^99)}return(0,i.clean)(t),e})(),u=h.map(((t,e)=>h.indexOf(e))),c=t=>t<<8|t>>>24,f=t=>t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255;function d(t,e){if(256!==t.length)throw new Error("Wrong sbox length");const n=new Uint32Array(256).map(((n,r)=>e(t[r]))),r=n.map(c),i=r.map(c),s=i.map(c),o=new Uint32Array(65536),a=new Uint32Array(65536),l=new Uint16Array(65536);for(let e=0;e<256;e++)for(let h=0;h<256;h++){const u=256*e+h;o[u]=n[e]^r[h],a[u]=i[e]^s[h],l[u]=t[e]<<8|t[h]}return{sbox:t,sbox2:l,T0:n,T1:r,T2:i,T3:s,T01:o,T23:a}}const p=d(h,(t=>l(t,3)<<24|t<<16|t<<8|l(t,2))),g=d(u,(t=>l(t,11)<<24|l(t,13)<<16|l(t,9)<<8|l(t,14))),y=(()=>{const t=new Uint8Array(16);for(let e=0,n=1;e<16;e++,n=a(n))t[e]=n;return t})();function m(t){(0,i.abytes)(t);const e=t.length;if(![16,24,32].includes(e))throw new Error("aes: invalid key size, should be 16, 24 or 32, got "+e);const{sbox2:n}=p,r=[];(0,i.isAligned32)(t)||r.push(t=(0,i.copyBytes)(t));const s=(0,i.u32)(t),o=s.length,a=t=>v(n,t,t,t,t),l=new Uint32Array(e+28);l.set(s);for(let t=o;t>>8)^y[t/o-1]:o>6&&t%o==4&&(e=a(e)),l[t]=l[t-o]^e}var h;return(0,i.clean)(...r),l}function b(t){const e=m(t),n=e.slice(),r=e.length,{sbox2:s}=p,{T0:o,T1:a,T2:l,T3:h}=g;for(let t=0;t>>8&255]^l[r>>>16&255]^h[r>>>24]}return n}function w(t,e,n,r,i,s){return t[n<<8&65280|r>>>8&255]^e[i>>>8&65280|s>>>24&255]}function v(t,e,n,r,i){return t[255&e|65280&n]|t[r>>>16&255|i>>>16&65280]<<16}function A(t,e,n,r,i){const{sbox2:s,T01:o,T23:a}=p;let l=0;e^=t[l++],n^=t[l++],r^=t[l++],i^=t[l++];const h=t.length/4-2;for(let s=0;s=0;t--)n=n+(255&a[t])|0,a[t]=255&n,n>>>=8;({s0:h,s1:u,s2:c,s3:f}=A(t,l[0],l[1],l[2],l[3]))}const g=s*Math.floor(d.length/4);if(g>>0,h.setUint32(f,p,e),({s0:g,s1:y,s2:m,s3:b}=A(t,l[0],l[1],l[2],l[3]));const w=s*Math.floor(u.length/4);if(w16)throw new Error("aes/pcks5: wrong padding");const i=t.subarray(0,-r);for(let e=0;en(t,e),decrypt:(t,e)=>n(t,e)}})),e.ecb=(0,i.wrapCipher)({blockSize:16},(function(t,e={}){const n=!e.disablePadding;return{encrypt(e,r){const{b:s,o,out:a}=k(e,n,r),l=m(t);let h=0;for(;h+4<=s.length;){const{s0:t,s1:e,s2:n,s3:r}=A(l,s[h+0],s[h+1],s[h+2],s[h+3]);o[h++]=t,o[h++]=e,o[h++]=n,o[h++]=r}if(n){const t=E(e.subarray(4*h)),{s0:n,s1:r,s2:i,s3:s}=A(l,t[0],t[1],t[2],t[3]);o[h++]=n,o[h++]=r,o[h++]=i,o[h++]=s}return(0,i.clean)(l),a},decrypt(e,r){C(e);const s=b(t);r=(0,i.getOutput)(e.length,r);const o=[s];(0,i.isAligned32)(e)||o.push(e=(0,i.copyBytes)(e)),(0,i.complexOverlapBytes)(e,r);const a=(0,i.u32)(e),l=(0,i.u32)(r);for(let t=0;t+4<=a.length;){const{s0:e,s1:n,s2:r,s3:i}=x(s,a[t+0],a[t+1],a[t+2],a[t+3]);l[t++]=e,l[t++]=n,l[t++]=r,l[t++]=i}return(0,i.clean)(...o),P(r,n)}}})),e.cbc=(0,i.wrapCipher)({blockSize:16,nonceLength:16},(function(t,e,n={}){const r=!n.disablePadding;return{encrypt(n,s){const o=m(t),{b:a,o:l,out:h}=k(n,r,s);let u=e;const c=[o];(0,i.isAligned32)(u)||c.push(u=(0,i.copyBytes)(u));const f=(0,i.u32)(u);let d=f[0],p=f[1],g=f[2],y=f[3],b=0;for(;b+4<=a.length;)d^=a[b+0],p^=a[b+1],g^=a[b+2],y^=a[b+3],({s0:d,s1:p,s2:g,s3:y}=A(o,d,p,g,y)),l[b++]=d,l[b++]=p,l[b++]=g,l[b++]=y;if(r){const t=E(n.subarray(4*b));d^=t[0],p^=t[1],g^=t[2],y^=t[3],({s0:d,s1:p,s2:g,s3:y}=A(o,d,p,g,y)),l[b++]=d,l[b++]=p,l[b++]=g,l[b++]=y}return(0,i.clean)(...c),h},decrypt(n,s){C(n);const o=b(t);let a=e;const l=[o];(0,i.isAligned32)(a)||l.push(a=(0,i.copyBytes)(a));const h=(0,i.u32)(a);s=(0,i.getOutput)(n.length,s),(0,i.isAligned32)(n)||l.push(n=(0,i.copyBytes)(n)),(0,i.complexOverlapBytes)(n,s);const u=(0,i.u32)(n),c=(0,i.u32)(s);let f=h[0],d=h[1],p=h[2],g=h[3];for(let t=0;t+4<=u.length;){const e=f,n=d,r=p,i=g;f=u[t+0],d=u[t+1],p=u[t+2],g=u[t+3];const{s0:s,s1:a,s2:l,s3:h}=x(o,f,d,p,g);c[t++]=s^e,c[t++]=a^n,c[t++]=l^r,c[t++]=h^i}return(0,i.clean)(...l),P(s,r)}}})),e.cfb=(0,i.wrapCipher)({blockSize:16,nonceLength:16},(function(t,e){function n(n,r,o){(0,i.abytes)(n);const a=n.length;if(o=(0,i.getOutput)(a,o),(0,i.overlapBytes)(n,o))throw new Error("overlapping src and dst not supported.");const l=m(t);let h=e;const u=[l];(0,i.isAligned32)(h)||u.push(h=(0,i.copyBytes)(h)),(0,i.isAligned32)(n)||u.push(n=(0,i.copyBytes)(n));const c=(0,i.u32)(n),f=(0,i.u32)(o),d=r?f:c,p=(0,i.u32)(h);let g=p[0],y=p[1],b=p[2],w=p[3];for(let t=0;t+4<=c.length;){const{s0:e,s1:n,s2:r,s3:i}=A(l,g,y,b,w);f[t+0]=c[t+0]^e,f[t+1]=c[t+1]^n,f[t+2]=c[t+2]^r,f[t+3]=c[t+3]^i,g=d[t++],y=d[t++],b=d[t++],w=d[t++]}const v=s*Math.floor(c.length/4);if(vn(t,!0,e),decrypt:(t,e)=>n(t,!1,e)}})),e.gcm=(0,i.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16,varSizeNonce:!0},(function(t,e,n){if(e.length<8)throw new Error("aes/gcm: invalid nonce length");function s(t,e,i){const s=T(r.ghash,!1,t,i,n);for(let t=0;tr=>{if(!Number.isSafeInteger(r)||e>r||r>n)throw new Error(t+": expected value in range ["+e+".."+n+"], got "+r)};function I(t){return t instanceof Uint32Array||ArrayBuffer.isView(t)&&"Uint32Array"===t.constructor.name}function L(t,e){if((0,i.abytes)(e,16),!I(t))throw new Error("_encryptBlock accepts result of expandKeyLE");const n=(0,i.u32)(e);let{s0:r,s1:s,s2:o,s3:a}=A(t,n[0],n[1],n[2],n[3]);return n[0]=r,n[1]=s,n[2]=o,n[3]=a,e}function B(t,e){if((0,i.abytes)(e,16),!I(t))throw new Error("_decryptBlock accepts result of expandKeyLE");const n=(0,i.u32)(e);let{s0:r,s1:s,s2:o,s3:a}=x(t,n[0],n[1],n[2],n[3]);return n[0]=r,n[1]=s,n[2]=o,n[3]=a,e}e.gcmsiv=(0,i.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16,varSizeNonce:!0},(function(t,e,n){const s=O("AAD",0,2**36),o=O("plaintext",0,2**36),a=O("nonce",12,12),l=O("ciphertext",16,2**36+16);function h(){const n=m(t),r=new Uint8Array(t.length),s=new Uint8Array(16),o=[n,r];let a=e;(0,i.isAligned32)(a)||o.push(a=(0,i.copyBytes)(a));const l=(0,i.u32)(a);let h=0,u=l[0],c=l[1],f=l[2],d=0;for(const t of[s,r].map(i.u32)){const e=(0,i.u32)(t);for(let t=0;t=2**32)throw new Error("plaintext should be less than 4gb");const n=m(t);if(16===e.length)L(n,e);else{const t=(0,i.u32)(e);let r=t[0],s=t[1];for(let e=0,i=1;e<6;e++)for(let e=2;e=2**32)throw new Error("ciphertext should be less than 4gb");const n=b(t),r=e.length/8-1;if(1===r)B(n,e);else{const t=(0,i.u32)(e);let s=t[0],o=t[1];for(let e=0,i=6*r;e<6;e++)for(let e=2*r;e>=1;e-=2,i--){o^=f(i);const{s0:r,s1:a,s2:l,s3:h}=x(n,s,o,t[e],t[e+1]);s=r,o=a,t[e]=l,t[e+1]=h}t[0]=s,t[1]=o}n.fill(0)}},D=new Uint8Array(8).fill(166);e.aeskw=(0,i.wrapCipher)({blockSize:8},(t=>({encrypt(e){if(!e.length||e.length%8!=0)throw new Error("invalid plaintext length");if(8===e.length)throw new Error("8-byte keys not allowed in AESKW, use AESKWP instead");const n=(0,i.concatBytes)(D,e);return M.encrypt(t,n),n},decrypt(e){if(e.length%8!=0||e.length<24)throw new Error("invalid ciphertext length");const n=(0,i.copyBytes)(e);if(M.decrypt(t,n),!(0,i.equalBytes)(n.subarray(0,8),D))throw new Error("integrity check failed");return n.subarray(0,8).fill(0),n.subarray(8)}})));const R=2790873510;e.aeskwp=(0,i.wrapCipher)({blockSize:8},(t=>({encrypt(e){if(!e.length)throw new Error("invalid plaintext length");const n=8*Math.ceil(e.length/8),r=new Uint8Array(8+n);r.set(e,8);const s=(0,i.u32)(r);return s[0]=R,s[1]=f(e.length),M.encrypt(t,r),r},decrypt(e){if(e.length<16)throw new Error("invalid ciphertext length");const n=(0,i.copyBytes)(e),r=(0,i.u32)(n);M.decrypt(t,n);const s=f(r[1])>>>0,o=8*Math.ceil(s/8);if(r[0]!==R||n.length-8!==o)throw new Error("integrity check failed");for(let t=s;t0&&!e.includes(t.length))throw new Error("Uint8Array expected of length "+e+", got length="+t.length)}function i(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function s(t,e){return t.buffer===e.buffer&&t.byteOffset>i&s),a=Number(n&s),l=r?4:0,h=r?0:4;t.setUint32(e+l,o,r),t.setUint32(e+h,a,r)}function a(t){return t.byteOffset%4==0}function l(t){return Uint8Array.from(t)}e.wrapCipher=e.qv=void 0,e.abytes=r,e.aexists=function(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")},e.aoutput=function(t,e){r(t);const n=e.outputLen;if(t.length{function i(i,...s){if(r(i),!e.qv)throw new Error("Non little-endian hardware is not yet supported");if(void 0!==t.nonceLength){const e=s[0];if(!e)throw new Error("nonce / iv required");t.varSizeNonce?r(e):r(e,t.nonceLength)}const o=t.tagLength;o&&void 0!==s[1]&&r(s[1]);const a=n(i,...s),l=(t,e)=>{if(void 0!==e){if(2!==t)throw new Error("cipher output not supported");r(e)}};let h=!1;return{encrypt(t,e){if(h)throw new Error("cannot encrypt() twice with same key + nonce");return h=!0,r(t),l(a.encrypt.length,e),a.encrypt(t,e)},decrypt(t,e){if(r(t),o&&t.lengthi-o&&(this.process(n,0),o=0);for(let t=o;t>i&s),a=Number(n&s),l=r?4:0,h=r?0:4;t.setUint32(e+l,o,r),t.setUint32(e+h,a,r)})(n,i-8,BigInt(8*this.length),s),this.process(n,0);const a=(0,r.createView)(t),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const h=l/4,u=this.get();if(h>u.length)throw new Error("_sha2: outputLen bigger than state");for(let t=0;t>>0)+(r>>>0);return{h:t+n+(i/2**32|0)|0,l:0|i}},e.split=function(t,e=!1){const n=t.length;let r=new Uint32Array(n),s=new Uint32Array(n);for(let o=0;o>r&n)}:{h:0|Number(t>>r&n),l:0|Number(t&n)}}e.shrSH=(t,e,n)=>t>>>n;e.shrSL=(t,e,n)=>t<<32-n|e>>>n;e.rotrSH=(t,e,n)=>t>>>n|e<<32-n;e.rotrSL=(t,e,n)=>t<<32-n|e>>>n;e.rotrBH=(t,e,n)=>t<<64-n|e>>>n-32;e.rotrBL=(t,e,n)=>t>>>n-32|e<<64-n;e.add3L=(t,e,n)=>(t>>>0)+(e>>>0)+(n>>>0);e.add3H=(t,e,n,r)=>e+n+r+(t/2**32|0)|0;e.add4L=(t,e,n,r)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0);e.add4H=(t,e,n,r,i)=>e+n+r+i+(t/2**32|0)|0;e.add5L=(t,e,n,r,i)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0)+(i>>>0);e.add5H=(t,e,n,r,i,s)=>e+n+r+i+s+(t/2**32|0)|0},2491(t,e){"use strict";e.crypto=void 0,e.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},2650(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sha512_224=e.sha512_256=e.sha384=e.sha512=e.sha224=e.sha256=e.SHA512_256=e.SHA512_224=e.SHA384=e.SHA512=e.SHA224=e.SHA256=void 0;const r=n(6784),i=n(4996),s=n(3973),o=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),a=new Uint32Array(64);class l extends r.HashMD{constructor(t=32){super(64,t,8,!1),this.A=0|r.SHA256_IV[0],this.B=0|r.SHA256_IV[1],this.C=0|r.SHA256_IV[2],this.D=0|r.SHA256_IV[3],this.E=0|r.SHA256_IV[4],this.F=0|r.SHA256_IV[5],this.G=0|r.SHA256_IV[6],this.H=0|r.SHA256_IV[7]}get(){const{A:t,B:e,C:n,D:r,E:i,F:s,G:o,H:a}=this;return[t,e,n,r,i,s,o,a]}set(t,e,n,r,i,s,o,a){this.A=0|t,this.B=0|e,this.C=0|n,this.D=0|r,this.E=0|i,this.F=0|s,this.G=0|o,this.H=0|a}process(t,e){for(let n=0;n<16;n++,e+=4)a[n]=t.getUint32(e,!1);for(let t=16;t<64;t++){const e=a[t-15],n=a[t-2],r=(0,s.rotr)(e,7)^(0,s.rotr)(e,18)^e>>>3,i=(0,s.rotr)(n,17)^(0,s.rotr)(n,19)^n>>>10;a[t]=i+a[t-7]+r+a[t-16]|0}let{A:n,B:i,C:l,D:h,E:u,F:c,G:f,H:d}=this;for(let t=0;t<64;t++){const e=d+((0,s.rotr)(u,6)^(0,s.rotr)(u,11)^(0,s.rotr)(u,25))+(0,r.Chi)(u,c,f)+o[t]+a[t]|0,p=((0,s.rotr)(n,2)^(0,s.rotr)(n,13)^(0,s.rotr)(n,22))+(0,r.Maj)(n,i,l)|0;d=f,f=c,c=u,u=h+e|0,h=l,l=i,i=n,n=e+p|0}n=n+this.A|0,i=i+this.B|0,l=l+this.C|0,h=h+this.D|0,u=u+this.E|0,c=c+this.F|0,f=f+this.G|0,d=d+this.H|0,this.set(n,i,l,h,u,c,f,d)}roundClean(){(0,s.clean)(a)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,s.clean)(this.buffer)}}e.SHA256=l;class h extends l{constructor(){super(28),this.A=0|r.SHA224_IV[0],this.B=0|r.SHA224_IV[1],this.C=0|r.SHA224_IV[2],this.D=0|r.SHA224_IV[3],this.E=0|r.SHA224_IV[4],this.F=0|r.SHA224_IV[5],this.G=0|r.SHA224_IV[6],this.H=0|r.SHA224_IV[7]}}e.SHA224=h;const u=(()=>i.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map((t=>BigInt(t)))))(),c=(()=>u[0])(),f=(()=>u[1])(),d=new Uint32Array(80),p=new Uint32Array(80);class g extends r.HashMD{constructor(t=64){super(128,t,16,!1),this.Ah=0|r.SHA512_IV[0],this.Al=0|r.SHA512_IV[1],this.Bh=0|r.SHA512_IV[2],this.Bl=0|r.SHA512_IV[3],this.Ch=0|r.SHA512_IV[4],this.Cl=0|r.SHA512_IV[5],this.Dh=0|r.SHA512_IV[6],this.Dl=0|r.SHA512_IV[7],this.Eh=0|r.SHA512_IV[8],this.El=0|r.SHA512_IV[9],this.Fh=0|r.SHA512_IV[10],this.Fl=0|r.SHA512_IV[11],this.Gh=0|r.SHA512_IV[12],this.Gl=0|r.SHA512_IV[13],this.Hh=0|r.SHA512_IV[14],this.Hl=0|r.SHA512_IV[15]}get(){const{Ah:t,Al:e,Bh:n,Bl:r,Ch:i,Cl:s,Dh:o,Dl:a,Eh:l,El:h,Fh:u,Fl:c,Gh:f,Gl:d,Hh:p,Hl:g}=this;return[t,e,n,r,i,s,o,a,l,h,u,c,f,d,p,g]}set(t,e,n,r,i,s,o,a,l,h,u,c,f,d,p,g){this.Ah=0|t,this.Al=0|e,this.Bh=0|n,this.Bl=0|r,this.Ch=0|i,this.Cl=0|s,this.Dh=0|o,this.Dl=0|a,this.Eh=0|l,this.El=0|h,this.Fh=0|u,this.Fl=0|c,this.Gh=0|f,this.Gl=0|d,this.Hh=0|p,this.Hl=0|g}process(t,e){for(let n=0;n<16;n++,e+=4)d[n]=t.getUint32(e),p[n]=t.getUint32(e+=4);for(let t=16;t<80;t++){const e=0|d[t-15],n=0|p[t-15],r=i.rotrSH(e,n,1)^i.rotrSH(e,n,8)^i.shrSH(e,n,7),s=i.rotrSL(e,n,1)^i.rotrSL(e,n,8)^i.shrSL(e,n,7),o=0|d[t-2],a=0|p[t-2],l=i.rotrSH(o,a,19)^i.rotrBH(o,a,61)^i.shrSH(o,a,6),h=i.rotrSL(o,a,19)^i.rotrBL(o,a,61)^i.shrSL(o,a,6),u=i.add4L(s,h,p[t-7],p[t-16]),c=i.add4H(u,r,l,d[t-7],d[t-16]);d[t]=0|c,p[t]=0|u}let{Ah:n,Al:r,Bh:s,Bl:o,Ch:a,Cl:l,Dh:h,Dl:u,Eh:g,El:y,Fh:m,Fl:b,Gh:w,Gl:v,Hh:A,Hl:x}=this;for(let t=0;t<80;t++){const e=i.rotrSH(g,y,14)^i.rotrSH(g,y,18)^i.rotrBH(g,y,41),S=i.rotrSL(g,y,14)^i.rotrSL(g,y,18)^i.rotrBL(g,y,41),_=g&m^~g&w,C=y&b^~y&v,k=i.add5L(x,S,C,f[t],p[t]),P=i.add5H(k,A,e,_,c[t],d[t]),E=0|k,T=i.rotrSH(n,r,28)^i.rotrBH(n,r,34)^i.rotrBH(n,r,39),O=i.rotrSL(n,r,28)^i.rotrBL(n,r,34)^i.rotrBL(n,r,39),I=n&s^n&a^s&a,L=r&o^r&l^o&l;A=0|w,x=0|v,w=0|m,v=0|b,m=0|g,b=0|y,({h:g,l:y}=i.add(0|h,0|u,0|P,0|E)),h=0|a,u=0|l,a=0|s,l=0|o,s=0|n,o=0|r;const B=i.add3L(E,O,L);n=i.add3H(B,P,T,I),r=0|B}({h:n,l:r}=i.add(0|this.Ah,0|this.Al,0|n,0|r)),({h:s,l:o}=i.add(0|this.Bh,0|this.Bl,0|s,0|o)),({h:a,l}=i.add(0|this.Ch,0|this.Cl,0|a,0|l)),({h,l:u}=i.add(0|this.Dh,0|this.Dl,0|h,0|u)),({h:g,l:y}=i.add(0|this.Eh,0|this.El,0|g,0|y)),({h:m,l:b}=i.add(0|this.Fh,0|this.Fl,0|m,0|b)),({h:w,l:v}=i.add(0|this.Gh,0|this.Gl,0|w,0|v)),({h:A,l:x}=i.add(0|this.Hh,0|this.Hl,0|A,0|x)),this.set(n,r,s,o,a,l,h,u,g,y,m,b,w,v,A,x)}roundClean(){(0,s.clean)(d,p)}destroy(){(0,s.clean)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}e.SHA512=g;class y extends g{constructor(){super(48),this.Ah=0|r.SHA384_IV[0],this.Al=0|r.SHA384_IV[1],this.Bh=0|r.SHA384_IV[2],this.Bl=0|r.SHA384_IV[3],this.Ch=0|r.SHA384_IV[4],this.Cl=0|r.SHA384_IV[5],this.Dh=0|r.SHA384_IV[6],this.Dl=0|r.SHA384_IV[7],this.Eh=0|r.SHA384_IV[8],this.El=0|r.SHA384_IV[9],this.Fh=0|r.SHA384_IV[10],this.Fl=0|r.SHA384_IV[11],this.Gh=0|r.SHA384_IV[12],this.Gl=0|r.SHA384_IV[13],this.Hh=0|r.SHA384_IV[14],this.Hl=0|r.SHA384_IV[15]}}e.SHA384=y;const m=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),b=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]);class w extends g{constructor(){super(28),this.Ah=0|m[0],this.Al=0|m[1],this.Bh=0|m[2],this.Bl=0|m[3],this.Ch=0|m[4],this.Cl=0|m[5],this.Dh=0|m[6],this.Dl=0|m[7],this.Eh=0|m[8],this.El=0|m[9],this.Fh=0|m[10],this.Fl=0|m[11],this.Gh=0|m[12],this.Gl=0|m[13],this.Hh=0|m[14],this.Hl=0|m[15]}}e.SHA512_224=w;class v extends g{constructor(){super(32),this.Ah=0|b[0],this.Al=0|b[1],this.Bh=0|b[2],this.Bl=0|b[3],this.Ch=0|b[4],this.Cl=0|b[5],this.Dh=0|b[6],this.Dl=0|b[7],this.Eh=0|b[8],this.El=0|b[9],this.Fh=0|b[10],this.Fl=0|b[11],this.Gh=0|b[12],this.Gl=0|b[13],this.Hh=0|b[14],this.Hl=0|b[15]}}e.SHA512_256=v,e.sha256=(0,s.createHasher)((()=>new l)),e.sha224=(0,s.createHasher)((()=>new h)),e.sha512=(0,s.createHasher)((()=>new g)),e.sha384=(0,s.createHasher)((()=>new y)),e.sha512_256=(0,s.createHasher)((()=>new v)),e.sha512_224=(0,s.createHasher)((()=>new w))},3973(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wrapXOFConstructorWithOpts=e.wrapConstructorWithOpts=e.wrapConstructor=e.Hash=e.nextTick=e.swap32IfBE=e.byteSwapIfBE=e.swap8IfBE=e.isLE=void 0,e.isBytes=i,e.anumber=s,e.abytes=o,e.ahash=function(t){if("function"!=typeof t||"function"!=typeof t.create)throw new Error("Hash should be wrapped by utils.createHasher");s(t.outputLen),s(t.blockLen)},e.aexists=function(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")},e.aoutput=function(t,e){o(t);const n=e.outputLen;if(t.length>>e},e.rotl=function(t,e){return t<>>32-e>>>0},e.byteSwap=a,e.byteSwap32=l,e.bytesToHex=function(t){if(o(t),h)return t.toHex();let e="";for(let n=0;n=0&&t0&&!e.includes(t.length))throw new Error("Uint8Array expected of length "+e+", got length="+t.length)}function a(t){return t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255}function l(t){for(let e=0;et:t=>a(t),e.byteSwapIfBE=e.swap8IfBE,e.swap32IfBE=e.isLE?t=>t:l;const h=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),u=Array.from({length:256},((t,e)=>e.toString(16).padStart(2,"0")));function c(t){return t>=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:void 0}function f(t){if("string"!=typeof t)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(t))}function d(t){return"string"==typeof t&&(t=f(t)),o(t),t}function p(t){const e=e=>t().update(d(e)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function g(t){const e=(e,n)=>t(n).update(d(e)).digest(),n=t({});return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=e=>t(e),e}function y(t){const e=(e,n)=>t(n).update(d(e)).digest(),n=t({});return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=e=>t(e),e}e.nextTick=async()=>{},e.Hash=class{},e.wrapConstructor=p,e.wrapConstructorWithOpts=g,e.wrapXOFConstructorWithOpts=y},7801(t,e,n){"use strict";var r=n(9964);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function s(t,e){for(var n=0;n1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;it.length)&&(n=t.length),t.substring(n-e.length,n)===e}var w="",v="",A="",x="",S={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function _(t){var e=Object.keys(t),n=Object.create(Object.getPrototypeOf(t));return e.forEach((function(e){n[e]=t[e]})),Object.defineProperty(n,"message",{value:t.message}),n}function C(t){return y(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var k=function(t,e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(k,t);var n,i,a,u,c=(n=k,i=f(),function(){var t,e=p(n);if(i){var r=p(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return l(this,t)});function k(t){var e;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,k),"object"!==g(t)||null===t)throw new m("options","Object",t);var n=t.message,i=t.operator,s=t.stackStartFn,o=t.actual,a=t.expected,u=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=n)e=c.call(this,String(n));else if(r.stderr&&r.stderr.isTTY&&(r.stderr&&r.stderr.getColorDepth&&1!==r.stderr.getColorDepth()?(w="",v="",x="",A=""):(w="",v="",x="",A="")),"object"===g(o)&&null!==o&&"object"===g(a)&&null!==a&&"stack"in o&&o instanceof Error&&"stack"in a&&a instanceof Error&&(o=_(o),a=_(a)),"deepStrictEqual"===i||"strictEqual"===i)e=c.call(this,function(t,e,n){var i="",s="",o=0,a="",l=!1,h=C(t),u=h.split("\n"),c=C(e).split("\n"),f=0,d="";if("strictEqual"===n&&"object"===g(t)&&"object"===g(e)&&null!==t&&null!==e&&(n="strictEqualObject"),1===u.length&&1===c.length&&u[0]!==c[0]){var p=u[0].length+c[0].length;if(p<=10){if(!("object"===g(t)&&null!==t||"object"===g(e)&&null!==e||0===t&&0===e))return"".concat(S[n],"\n\n")+"".concat(u[0]," !== ").concat(c[0],"\n")}else if("strictEqualObject"!==n&&p<(r.stderr&&r.stderr.isTTY?r.stderr.columns:80)){for(;u[0][f]===c[0][f];)f++;f>2&&(d="\n ".concat(function(t,e){if(e=Math.floor(e),0==t.length||0==e)return"";var n=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+t.substring(0,n-t.length)}(" ",f),"^"),f=0)}}for(var y=u[u.length-1],m=c[c.length-1];y===m&&(f++<2?a="\n ".concat(y).concat(a):i=y,u.pop(),c.pop(),0!==u.length&&0!==c.length);)y=u[u.length-1],m=c[c.length-1];var _=Math.max(u.length,c.length);if(0===_){var k=h.split("\n");if(k.length>30)for(k[26]="".concat(w,"...").concat(x);k.length>27;)k.pop();return"".concat(S.notIdentical,"\n\n").concat(k.join("\n"),"\n")}f>3&&(a="\n".concat(w,"...").concat(x).concat(a),l=!0),""!==i&&(a="\n ".concat(i).concat(a),i="");var P=0,E=S[n]+"\n".concat(v,"+ actual").concat(x," ").concat(A,"- expected").concat(x),T=" ".concat(w,"...").concat(x," Lines skipped");for(f=0;f<_;f++){var O=f-o;if(u.length1&&f>2&&(O>4?(s+="\n".concat(w,"...").concat(x),l=!0):O>3&&(s+="\n ".concat(c[f-2]),P++),s+="\n ".concat(c[f-1]),P++),o=f,i+="\n".concat(A,"-").concat(x," ").concat(c[f]),P++;else if(c.length1&&f>2&&(O>4?(s+="\n".concat(w,"...").concat(x),l=!0):O>3&&(s+="\n ".concat(u[f-2]),P++),s+="\n ".concat(u[f-1]),P++),o=f,s+="\n".concat(v,"+").concat(x," ").concat(u[f]),P++;else{var I=c[f],L=u[f],B=L!==I&&(!b(L,",")||L.slice(0,-1)!==I);B&&b(I,",")&&I.slice(0,-1)===L&&(B=!1,L+=","),B?(O>1&&f>2&&(O>4?(s+="\n".concat(w,"...").concat(x),l=!0):O>3&&(s+="\n ".concat(u[f-2]),P++),s+="\n ".concat(u[f-1]),P++),o=f,s+="\n".concat(v,"+").concat(x," ").concat(L),i+="\n".concat(A,"-").concat(x," ").concat(I),P+=2):(s+=i,i="",1!==O&&0!==f||(s+="\n ".concat(L),P++))}if(P>20&&f<_-2)return"".concat(E).concat(T,"\n").concat(s,"\n").concat(w,"...").concat(x).concat(i,"\n")+"".concat(w,"...").concat(x)}return"".concat(E).concat(l?T:"","\n").concat(s).concat(i).concat(a).concat(d)}(o,a,i));else if("notDeepStrictEqual"===i||"notStrictEqual"===i){var f=S[i],d=C(o).split("\n");if("notStrictEqual"===i&&"object"===g(o)&&null!==o&&(f=S.notStrictEqualObject),d.length>30)for(d[26]="".concat(w,"...").concat(x);d.length>27;)d.pop();e=1===d.length?c.call(this,"".concat(f," ").concat(d[0])):c.call(this,"".concat(f,"\n\n").concat(d.join("\n"),"\n"))}else{var p=C(o),y="",P=S[i];"notDeepEqual"===i||"notEqual"===i?(p="".concat(S[i],"\n\n").concat(p)).length>1024&&(p="".concat(p.slice(0,1021),"...")):(y="".concat(C(a)),p.length>512&&(p="".concat(p.slice(0,509),"...")),y.length>512&&(y="".concat(y.slice(0,509),"...")),"deepEqual"===i||"equal"===i?p="".concat(P,"\n\n").concat(p,"\n\nshould equal\n\n"):y=" ".concat(i," ").concat(y)),e=c.call(this,"".concat(p).concat(y))}return Error.stackTraceLimit=u,e.generatedMessage=!n,Object.defineProperty(h(e),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),e.code="ERR_ASSERTION",e.actual=o,e.expected=a,e.operator=i,Error.captureStackTrace&&Error.captureStackTrace(h(e),s),e.stack,e.name="AssertionError",l(e)}return a=k,(u=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:e,value:function(t,e){return y(this,s(s({},e),{},{customInspect:!1,depth:0}))}}])&&o(a.prototype,u),Object.defineProperty(a,"prototype",{writable:!1}),k}(u(Error),y.custom);t.exports=k},5403(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}var o,a,l={};function h(t,e,n){n||(n=Error);var o=function(n){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(u,n);var o,a,l,h=(a=u,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=s(a);if(l){var n=s(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(n,r,i){var s;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),s=h.call(this,function(t,n,r){return"string"==typeof e?e:e(t,n,r)}(n,r,i)),s.code=t,s}return o=u,Object.defineProperty(o,"prototype",{writable:!1}),o}(n);l[t]=o}function u(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map((function(t){return String(t)})),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}h("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),h("ERR_INVALID_ARG_TYPE",(function(t,e,i){var s,a,l,h,c;if(void 0===o&&(o=n(7801)),o("string"==typeof t,"'name' must be a string"),"string"==typeof e&&(a="not ",e.substr(0,4)===a)?(s="must not be",e=e.replace(/^not /,"")):s="must be",function(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-9,n)===e}(t," argument"))l="The ".concat(t," ").concat(s," ").concat(u(e,"type"));else{var f=("number"!=typeof c&&(c=0),c+1>(h=t).length||-1===h.indexOf(".",c)?"argument":"property");l='The "'.concat(t,'" ').concat(f," ").concat(s," ").concat(u(e,"type"))}return l+". Received type ".concat(r(i))}),TypeError),h("ERR_INVALID_ARG_VALUE",(function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===a&&(a=n(7187));var i=a.inspect(e);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(r,". Received ").concat(i)}),TypeError,RangeError),h("ERR_INVALID_RETURN_VALUE",(function(t,e,n){var i;return i=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(i,".")}),TypeError),h("ERR_MISSING_ARGS",(function(){for(var t=arguments.length,e=new Array(t),r=0;r0,"At least one arg needs to be specified");var i="The ",s=e.length;switch(e=e.map((function(t){return'"'.concat(t,'"')})),s){case 1:i+="".concat(e[0]," argument");break;case 2:i+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:i+=e.slice(0,s-1).join(", "),i+=", and ".concat(e[s-1]," arguments")}return"".concat(i," must be specified")}),TypeError),t.exports.codes=l},6781(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,s,o,a=[],l=!0,h=!1;try{if(s=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=s.call(n)).done)&&(a.push(r.value),a.length!==e);l=!0);}catch(t){h=!0,i=t}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(h)throw i}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n10)return!0;for(var e=0;e57)return!0}return 10===t.length&&t>=Math.pow(2,32)}function B(t){return Object.keys(t).filter(L).concat(u(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))}function M(t,e){if(t===e)return 0;for(var n=t.length,r=e.length,i=0,s=Math.min(n,r);i0?o-4:o;for(n=0;n>16&255,h[u++]=e>>8&255,h[u++]=255&e;return 2===l&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,h[u++]=255&e),1===l&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,h[u++]=e>>8&255,h[u++]=255&e),h},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,s=[],o=16383,a=0,h=r-i;ah?h:a+o));return 1===i?(e=t[r-1],s.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],s.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),s.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)n[o]=s[o],r[s.charCodeAt(o)]=o;function a(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function l(t,e,r){for(var i,s,o=[],a=e;a>18&63]+n[s>>12&63]+n[s>>6&63]+n[63&s]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},4097(t){var e=4096,n=new Uint32Array([0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215]);function r(t){this.buf_=new Uint8Array(8224),this.input_=t,this.reset()}r.READ_SIZE=e,r.IBUF_MASK=8191,r.prototype.reset=function(){this.buf_ptr_=0,this.val_=0,this.pos_=0,this.bit_pos_=0,this.bit_end_pos_=0,this.eos_=0,this.readMoreInput();for(var t=0;t<4;t++)this.val_|=this.buf_[this.pos_]<<8*t,++this.pos_;return this.bit_end_pos_>0},r.prototype.readMoreInput=function(){if(!(this.bit_end_pos_>256))if(this.eos_){if(this.bit_pos_>this.bit_end_pos_)throw new Error("Unexpected end of input "+this.bit_pos_+" "+this.bit_end_pos_)}else{var t=this.buf_ptr_,n=this.input_.read(this.buf_,t,e);if(n<0)throw new Error("Unexpected end of input");if(n=8;)this.val_>>>=8,this.val_|=this.buf_[8191&this.pos_]<<24,++this.pos_,this.bit_pos_=this.bit_pos_-8>>>0,this.bit_end_pos_=this.bit_end_pos_-8>>>0},r.prototype.readBits=function(t){32-this.bit_pos_>>this.bit_pos_&n[t];return this.bit_pos_+=t,e},t.exports=r},7043(t,e){e.lookup=new Uint8Array([0,0,0,0,0,0,0,0,0,4,4,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,12,16,12,12,20,12,16,24,28,12,12,32,12,36,12,44,44,44,44,44,44,44,44,44,44,32,32,24,40,28,12,12,48,52,52,52,48,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,24,12,28,12,12,12,56,60,60,60,56,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,24,12,28,12,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,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,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,7,0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,56,0,1,2,3,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,59,60,61,62,63,0,1,2,3,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,59,60,61,62,63,0,1,2,3,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,59,60,61,62,63,0,1,2,3,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,59,60,61,62,63,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,8,9,9,9,9,10,10,10,10,11,11,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,22,22,22,22,23,23,23,23,24,24,24,24,25,25,25,25,26,26,26,26,27,27,27,27,28,28,28,28,29,29,29,29,30,30,30,30,31,31,31,31,32,32,32,32,33,33,33,33,34,34,34,34,35,35,35,35,36,36,36,36,37,37,37,37,38,38,38,38,39,39,39,39,40,40,40,40,41,41,41,41,42,42,42,42,43,43,43,43,44,44,44,44,45,45,45,45,46,46,46,46,47,47,47,47,48,48,48,48,49,49,49,49,50,50,50,50,51,51,51,51,52,52,52,52,53,53,53,53,54,54,54,54,55,55,55,55,56,56,56,56,57,57,57,57,58,58,58,58,59,59,59,59,60,60,60,60,61,61,61,61,62,62,62,62,63,63,63,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),e.lookupOffsets=new Uint16Array([1024,1536,1280,1536,0,256,768,512])},980(t,e,n){var r=n(8197).z,i=n(8197).y,s=n(4097),o=n(614),a=n(1561).z,l=n(1561).u,h=n(7043),u=n(2210),c=n(7984),f=1080,d=new Uint8Array([1,2,3,4,0,5,17,6,16,7,8,9,10,11,12,13,14,15]),p=new Uint8Array([3,2,1,0,3,3,3,3,3,3,2,2,2,2,2,2]),g=new Int8Array([0,0,0,0,-1,1,-2,2,-3,3,-1,1,-2,2,-3,3]),y=new Uint16Array([256,402,436,468,500,534,566,598,630,662,694,726,758,790,822,854,886,920,952,984,1016,1048,1080]);function m(t){var e;return 0===t.readBits(1)?16:(e=t.readBits(3))>0?17+e:(e=t.readBits(3))>0?8+e:17}function b(t){if(t.readBits(1)){var e=t.readBits(3);return 0===e?1:t.readBits(e)+(1<1&&0===s)throw new Error("Invalid size byte");i.meta_block_length|=s<<8*r}}else for(r=0;r4&&0===o)throw new Error("Invalid size nibble");i.meta_block_length|=o<<4*r}return++i.meta_block_length,i.input_end||i.is_metadata||(i.is_uncompressed=t.readBits(1)),i}function A(t,e,n){var r;return n.fillBitWindow(),(r=t[e+=n.val_>>>n.bit_pos_&255].bits-8)>0&&(n.bit_pos_+=8,e+=t[e].value,e+=n.val_>>>n.bit_pos_&(1<>=1,++u;for(p=0;p0;++p){var w,v=d[p],A=0;r.fillBitWindow(),A+=r.val_>>>r.bit_pos_&15,r.bit_pos_+=b[A].bits,w=b[A].value,g[v]=w,0!==w&&(y-=32>>w,++m)}if(1!==m&&0!==y)throw new Error("[ReadHuffmanCode] invalid num_codes or space");!function(t,e,n,r){for(var i=0,s=8,o=0,h=0,u=32768,c=[],f=0;f<32;f++)c.push(new a(0,0));for(l(c,0,5,t,18);i0;){var d,p=0;if(r.readMoreInput(),r.fillBitWindow(),p+=r.val_>>>r.bit_pos_&31,r.bit_pos_+=c[p].bits,(d=255&c[p].value)<16)o=0,n[i++]=d,0!==d&&(s=d,u-=32768>>d);else{var g,y,m=d-14,b=0;if(16===d&&(b=s),h!==b&&(o=0,h=b),g=o,o>0&&(o-=2,o<<=m),i+(y=(o+=r.readBits(m)+3)-g)>e)throw new Error("[ReadHuffmanCodeLengths] symbol + repeat_delta > num_symbols");for(var w=0;w>>5]),this.htrees=new Uint32Array(e)}function P(t,e){var n,r,i={num_htrees:null,context_map:null},s=0;e.readMoreInput();var o=i.num_htrees=b(e)+1,l=i.context_map=new Uint8Array(t);if(o<=1)return i;for(e.readBits(1)&&(s=e.readBits(4)+1),n=[],r=0;r=t)throw new Error("[DecodeContextMap] i >= context_map_size");l[r]=0,++r}else l[r]=h-s,++r}return e.readBits(1)&&function(t,e){var n,r=new Uint8Array(256);for(n=0;n<256;++n)r[n]=n;for(n=0;n=t&&(a-=t),r[n]=a,i[l+(1&s[h])]=a,++s[h]}function T(t,e,n,r,i,o){var a,l=i+1,h=n&i,u=o.pos_&s.IBUF_MASK;if(e<8||o.bit_pos_+(e<<3)0;)o.readMoreInput(),r[h++]=o.readBits(8),h===l&&(t.write(r,l),h=0);else{if(o.bit_end_pos_<32)throw new Error("[CopyUncompressedBlockToOutput] br.bit_end_pos_ < 32");for(;o.bit_pos_<32;)r[h]=o.val_>>>o.bit_pos_,o.bit_pos_+=8,++h,--e;if(u+(a=o.bit_end_pos_-o.bit_pos_>>3)>s.IBUF_MASK){for(var c=s.IBUF_MASK+1-u,f=0;f=l)for(t.write(r,l),h-=l,f=0;f=l;){if(a=l-h,o.input_.read(r,h,a)e.buffer.length){var ft=new Uint8Array(I+Q);ft.set(e.buffer),e.buffer=ft}if(L=ct.input_end,W=ct.is_uncompressed,ct.is_metadata)for(O(C);Q>0;--Q)C.readMoreInput(),C.readBits(8);else if(0!==Q)if(W)C.bit_pos_=C.bit_pos_+7&-8,T(e,Q,I,p,d,C),I+=Q;else{for(n=0;n<3;++n)et[n]=b(C)+1,et[n]>=2&&(x(et[n]+2,y,n*f,C),x(26,w,n*f,C),$[n]=S(w,n*f,C),rt[n]=1);for(C.readMoreInput(),H=(1<<(j=C.readBits(2)))-1,G=(V=16+(C.readBits(4)<0;){var gt,yt,mt,bt,wt,vt,At,xt,St,_t,Ct,kt;for(C.readMoreInput(),0===$[1]&&(E(et[1],y,1,tt,nt,rt,C),$[1]=S(w,f,C),J=F[1].htrees[tt[1]]),--$[1],(yt=(gt=A(F[1].codes,J,C))>>6)>=2?(yt-=2,At=-1):At=0,mt=u.kInsertRangeLut[yt]+(gt>>3&7),bt=u.kCopyRangeLut[yt]+(7>),wt=u.kInsertLengthPrefixCode[mt].offset+C.readBits(u.kInsertLengthPrefixCode[mt].nbits),vt=u.kCopyLengthPrefixCode[bt].offset+C.readBits(u.kCopyLengthPrefixCode[bt].nbits),R=p[I-1&d],N=p[I-2&d],St=0;St4?3:vt-2))],(At=A(F[2].codes,F[2].htrees[lt],C))>=V&&(kt=(At-=V)&H,At=V+((Pt=(2+(1&(At>>=j))<<(Ct=1+(At>>1)))-4)+C.readBits(Ct)<(B=I=o.minDictionaryWordLength&&vt<=o.maxDictionaryWordLength))throw new Error("Invalid backward reference. pos: "+I+" distance: "+xt+" len: "+vt+" bytes left: "+Q);var Pt=o.offsetsByLength[vt],Et=xt-B-1,Tt=o.sizeBitsByLength[vt],Ot=Et>>Tt;if(Pt+=(Et&(1<=g){e.write(p,l);for(var Lt=0;Lt<_t-g;Lt++)p[Lt]=p[g+Lt]}}else{if(At>0&&(M[3&D]=xt,++D),vt>Q)throw new Error("Invalid backward reference. pos: "+I+" distance: "+xt+" len: "+vt+" bytes left: "+Q);for(St=0;St>=1;return(t&n-1)+n}function i(t,e,r,i,s){do{t[e+(i-=r)]=new n(s.bits,s.value)}while(i>0)}function s(t,e,n){for(var r=1<0;--v[h])i(t,e+c,f,y,new n(255&h,65535&b[u++])),c=r(c,h);for(p=m-1,d=-1,h=o+1,f=2;h<=15;++h,f<<=1)for(;v[h]>0;--v[h])(c&p)!==d&&(e+=y,m+=y=1<<(g=s(v,h,o)),t[w+(d=c&p)]=new n(g+o&255,e-w-d&65535)),i(t,e+(c>>o),f,y,new n(h-o&255,65535&b[u++])),c=r(c,h);return m}},2210(t,e){function n(t,e){this.offset=t,this.nbits=e}e.kBlockLengthPrefixCode=[new n(1,2),new n(5,2),new n(9,2),new n(13,2),new n(17,3),new n(25,3),new n(33,3),new n(41,3),new n(49,4),new n(65,4),new n(81,4),new n(97,4),new n(113,5),new n(145,5),new n(177,5),new n(209,5),new n(241,6),new n(305,6),new n(369,7),new n(497,8),new n(753,9),new n(1265,10),new n(2289,11),new n(4337,12),new n(8433,13),new n(16625,24)],e.kInsertLengthPrefixCode=[new n(0,0),new n(1,0),new n(2,0),new n(3,0),new n(4,0),new n(5,0),new n(6,1),new n(8,1),new n(10,2),new n(14,2),new n(18,3),new n(26,3),new n(34,4),new n(50,4),new n(66,5),new n(98,5),new n(130,6),new n(194,7),new n(322,8),new n(578,9),new n(1090,10),new n(2114,12),new n(6210,14),new n(22594,24)],e.kCopyLengthPrefixCode=[new n(2,0),new n(3,0),new n(4,0),new n(5,0),new n(6,0),new n(7,0),new n(8,0),new n(9,0),new n(10,1),new n(12,1),new n(14,2),new n(18,2),new n(22,3),new n(30,3),new n(38,4),new n(54,4),new n(70,5),new n(102,5),new n(134,6),new n(198,7),new n(326,8),new n(582,9),new n(1094,10),new n(2118,24)],e.kInsertRangeLut=[0,0,8,8,0,16,8,16,16],e.kCopyRangeLut=[0,8,0,8,16,0,16,8,16]},8197(t,e){function n(t){this.buffer=t,this.pos=0}function r(t){this.buffer=t,this.pos=0}n.prototype.read=function(t,e,n){this.pos+n>this.buffer.length&&(n=this.buffer.length-this.pos);for(var r=0;rthis.buffer.length)throw new Error("Output buffer is not large enough");return this.buffer.set(t.subarray(0,e),this.pos),this.pos+=e,e},e.y=r},7984(t,e,n){var r=n(614),i=10,s=11;function o(t,e,n){this.prefix=new Uint8Array(t.length),this.transform=e,this.suffix=new Uint8Array(n.length);for(var r=0;r'),new o("",0,"\n"),new o("",3,""),new o("",0,"]"),new o("",0," for "),new o("",14,""),new o("",2,""),new o("",0," a "),new o("",0," that "),new o(" ",i,""),new o("",0,". "),new o(".",0,""),new o(" ",0,", "),new o("",15,""),new o("",0," with "),new o("",0,"'"),new o("",0," from "),new o("",0," by "),new o("",16,""),new o("",17,""),new o(" the ",0,""),new o("",4,""),new o("",0,". The "),new o("",s,""),new o("",0," on "),new o("",0," as "),new o("",0," is "),new o("",7,""),new o("",1,"ing "),new o("",0,"\n\t"),new o("",0,":"),new o(" ",0,". "),new o("",0,"ed "),new o("",20,""),new o("",18,""),new o("",6,""),new o("",0,"("),new o("",i,", "),new o("",8,""),new o("",0," at "),new o("",0,"ly "),new o(" the ",0," of "),new o("",5,""),new o("",9,""),new o(" ",i,", "),new o("",i,'"'),new o(".",0,"("),new o("",s," "),new o("",i,'">'),new o("",0,'="'),new o(" ",0,"."),new o(".com/",0,""),new o(" the ",0," of the "),new o("",i,"'"),new o("",0,". This "),new o("",0,","),new o(".",0," "),new o("",i,"("),new o("",i,"."),new o("",0," not "),new o(" ",0,'="'),new o("",0,"er "),new o(" ",s," "),new o("",0,"al "),new o(" ",s,""),new o("",0,"='"),new o("",s,'"'),new o("",i,". "),new o(" ",0,"("),new o("",0,"ful "),new o(" ",i,". "),new o("",0,"ive "),new o("",0,"less "),new o("",s,"'"),new o("",0,"est "),new o(" ",i,"."),new o("",s,'">'),new o(" ",0,"='"),new o("",i,","),new o("",0,"ize "),new o("",s,"."),new o(" ",0,""),new o(" ",0,","),new o("",i,'="'),new o("",s,'="'),new o("",0,"ous "),new o("",s,", "),new o("",i,"='"),new o(" ",i,","),new o(" ",s,'="'),new o(" ",s,", "),new o("",s,","),new o("",s,"("),new o("",s,". "),new o(" ",s,"."),new o("",s,"='"),new o(" ",s,". "),new o(" ",i,'="'),new o(" ",s,"='"),new o(" ",i,"='")];function l(t,e){return t[e]<192?(t[e]>=97&&t[e]<=122&&(t[e]^=32),1):t[e]<224?(t[e+1]^=32,2):(t[e+2]^=5,3)}e.kTransforms=a,e.kNumTransforms=a.length,e.transformDictionaryWord=function(t,e,n,o,h){var u,c=a[h].prefix,f=a[h].suffix,d=a[h].transform,p=d<12?0:d-11,g=0,y=e;p>o&&(p=o);for(var m=0;m0;){var b=l(t,u);u+=b,o-=b}for(var w=0;we.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=t,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}e.NONE=0,e.DEFLATE=1,e.INFLATE=2,e.GZIP=3,e.GUNZIP=4,e.DEFLATERAW=5,e.INFLATERAW=6,e.UNZIP=7,c.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,s(this.init_done,"close before init"),s(this.mode<=e.UNZIP),this.mode===e.DEFLATE||this.mode===e.GZIP||this.mode===e.DEFLATERAW?a.deflateEnd(this.strm):this.mode!==e.INFLATE&&this.mode!==e.GUNZIP&&this.mode!==e.INFLATERAW&&this.mode!==e.UNZIP||l.inflateEnd(this.strm),this.mode=e.NONE,this.dictionary=null)},c.prototype.write=function(t,e,n,r,i,s,o){return this._write(!0,t,e,n,r,i,s,o)},c.prototype.writeSync=function(t,e,n,r,i,s,o){return this._write(!1,t,e,n,r,i,s,o)},c.prototype._write=function(t,n,o,a,l,h,u,c){if(s.equal(arguments.length,8),s(this.init_done,"write before init"),s(this.mode!==e.NONE,"already finalized"),s.equal(!1,this.write_in_progress,"write already in progress"),s.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,s.equal(!1,void 0===n,"must provide flush value"),this.write_in_progress=!0,n!==e.Z_NO_FLUSH&&n!==e.Z_PARTIAL_FLUSH&&n!==e.Z_SYNC_FLUSH&&n!==e.Z_FULL_FLUSH&&n!==e.Z_FINISH&&n!==e.Z_BLOCK)throw new Error("Invalid flush value");if(null==o&&(o=r.alloc(0),l=0,a=0),this.strm.avail_in=l,this.strm.input=o,this.strm.next_in=a,this.strm.avail_out=c,this.strm.output=h,this.strm.next_out=u,this.flush=n,!t)return this._process(),this._checkError()?this._afterSync():void 0;var f=this;return i.nextTick((function(){f._process(),f._after()})),this},c.prototype._afterSync=function(){var t=this.strm.avail_out,e=this.strm.avail_in;return this.write_in_progress=!1,[e,t]},c.prototype._process=function(){var t=null;switch(this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=a.deflate(this.strm,this.flush);break;case e.UNZIP:switch(this.strm.avail_in>0&&(t=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===t)break;if(31!==this.strm.input[t]){this.mode=e.INFLATE;break}if(this.gzip_id_bytes_read=1,t++,1===this.strm.avail_in)break;case 1:if(null===t)break;139===this.strm.input[t]?(this.gzip_id_bytes_read=2,this.mode=e.GUNZIP):this.mode=e.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:for(this.err=l.inflate(this.strm,this.flush),this.err===e.Z_NEED_DICT&&this.dictionary&&(this.err=l.inflateSetDictionary(this.strm,this.dictionary),this.err===e.Z_OK?this.err=l.inflate(this.strm,this.flush):this.err===e.Z_DATA_ERROR&&(this.err=e.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===e.GUNZIP&&this.err===e.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=l.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},c.prototype._checkError=function(){switch(this.err){case e.Z_OK:case e.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===e.Z_FINISH)return this._error("unexpected end of file"),!1;break;case e.Z_STREAM_END:break;case e.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},c.prototype._after=function(){if(this._checkError()){var t=this.strm.avail_out,e=this.strm.avail_in;this.write_in_progress=!1,this.callback(e,t),this.pending_close&&this.close()}},c.prototype._error=function(t){this.strm.msg&&(t=this.strm.msg),this.onerror(t,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},c.prototype.init=function(t,n,r,i,o){s(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),s(t>=8&&t<=15,"invalid windowBits"),s(n>=-1&&n<=9,"invalid compression level"),s(r>=1&&r<=9,"invalid memlevel"),s(i===e.Z_FILTERED||i===e.Z_HUFFMAN_ONLY||i===e.Z_RLE||i===e.Z_FIXED||i===e.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(n,t,r,i,o),this._setDictionary()},c.prototype.params=function(){throw new Error("deflateParams Not supported")},c.prototype.reset=function(){this._reset(),this._setDictionary()},c.prototype._init=function(t,n,r,i,s){switch(this.level=t,this.windowBits=n,this.memLevel=r,this.strategy=i,this.flush=e.Z_NO_FLUSH,this.err=e.Z_OK,this.mode!==e.GZIP&&this.mode!==e.GUNZIP||(this.windowBits+=16),this.mode===e.UNZIP&&(this.windowBits+=32),this.mode!==e.DEFLATERAW&&this.mode!==e.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new o,this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=a.deflateInit2(this.strm,this.level,e.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:case e.UNZIP:this.err=l.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==e.Z_OK&&this._error("Init error"),this.dictionary=s,this.write_in_progress=!1,this.init_done=!0},c.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:this.err=a.deflateSetDictionary(this.strm,this.dictionary)}this.err!==e.Z_OK&&this._error("Failed to set dictionary")}},c.prototype._reset=function(){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:case e.GZIP:this.err=a.deflateReset(this.strm);break;case e.INFLATE:case e.INFLATERAW:case e.GUNZIP:this.err=l.inflateReset(this.strm)}this.err!==e.Z_OK&&this._error("Failed to reset stream")},e.Zlib=c},6729(t,e,n){"use strict";var r=n(9964),i=n(783).Buffer,s=n(9760).Transform,o=n(2908),a=n(7187),l=n(7801).ok,h=n(783).kMaxLength,u="Cannot create final Buffer. It would be larger than 0x"+h.toString(16)+" bytes";o.Z_MIN_WINDOWBITS=8,o.Z_MAX_WINDOWBITS=15,o.Z_DEFAULT_WINDOWBITS=15,o.Z_MIN_CHUNK=64,o.Z_MAX_CHUNK=1/0,o.Z_DEFAULT_CHUNK=16384,o.Z_MIN_MEMLEVEL=1,o.Z_MAX_MEMLEVEL=9,o.Z_DEFAULT_MEMLEVEL=8,o.Z_MIN_LEVEL=-1,o.Z_MAX_LEVEL=9,o.Z_DEFAULT_LEVEL=o.Z_DEFAULT_COMPRESSION;for(var c=Object.keys(o),f=0;f=h?o=new RangeError(u):e=i.concat(r,s),r=[],t.close(),n(o,e)}t.on("error",(function(e){t.removeListener("end",a),t.removeListener("readable",o),n(e)})),t.on("end",a),t.end(e),o()}function w(t,e){if("string"==typeof e&&(e=i.from(e)),!i.isBuffer(e))throw new TypeError("Not a string or buffer");var n=t._finishFlushFlag;return t._processChunk(e,n)}function v(t){if(!(this instanceof v))return new v(t);E.call(this,t,o.DEFLATE)}function A(t){if(!(this instanceof A))return new A(t);E.call(this,t,o.INFLATE)}function x(t){if(!(this instanceof x))return new x(t);E.call(this,t,o.GZIP)}function S(t){if(!(this instanceof S))return new S(t);E.call(this,t,o.GUNZIP)}function _(t){if(!(this instanceof _))return new _(t);E.call(this,t,o.DEFLATERAW)}function C(t){if(!(this instanceof C))return new C(t);E.call(this,t,o.INFLATERAW)}function k(t){if(!(this instanceof k))return new k(t);E.call(this,t,o.UNZIP)}function P(t){return t===o.Z_NO_FLUSH||t===o.Z_PARTIAL_FLUSH||t===o.Z_SYNC_FLUSH||t===o.Z_FULL_FLUSH||t===o.Z_FINISH||t===o.Z_BLOCK}function E(t,n){var r=this;if(this._opts=t=t||{},this._chunkSize=t.chunkSize||e.Z_DEFAULT_CHUNK,s.call(this,t),t.flush&&!P(t.flush))throw new Error("Invalid flush flag: "+t.flush);if(t.finishFlush&&!P(t.finishFlush))throw new Error("Invalid flush flag: "+t.finishFlush);if(this._flushFlag=t.flush||o.Z_NO_FLUSH,this._finishFlushFlag=void 0!==t.finishFlush?t.finishFlush:o.Z_FINISH,t.chunkSize&&(t.chunkSizee.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+t.chunkSize);if(t.windowBits&&(t.windowBitse.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+t.windowBits);if(t.level&&(t.levele.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+t.level);if(t.memLevel&&(t.memLevele.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+t.memLevel);if(t.strategy&&t.strategy!=e.Z_FILTERED&&t.strategy!=e.Z_HUFFMAN_ONLY&&t.strategy!=e.Z_RLE&&t.strategy!=e.Z_FIXED&&t.strategy!=e.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+t.strategy);if(t.dictionary&&!i.isBuffer(t.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new o.Zlib(n);var a=this;this._hadError=!1,this._handle.onerror=function(t,n){T(a),a._hadError=!0;var r=new Error(t);r.errno=n,r.code=e.codes[n],a.emit("error",r)};var l=e.Z_DEFAULT_COMPRESSION;"number"==typeof t.level&&(l=t.level);var h=e.Z_DEFAULT_STRATEGY;"number"==typeof t.strategy&&(h=t.strategy),this._handle.init(t.windowBits||e.Z_DEFAULT_WINDOWBITS,l,t.memLevel||e.Z_DEFAULT_MEMLEVEL,h,t.dictionary),this._buffer=i.allocUnsafe(this._chunkSize),this._offset=0,this._level=l,this._strategy=h,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!r._handle},configurable:!0,enumerable:!0})}function T(t,e){e&&r.nextTick(e),t._handle&&(t._handle.close(),t._handle=null)}function O(t){t.emit("close")}Object.defineProperty(e,"codes",{enumerable:!0,value:Object.freeze(p),writable:!1}),e.Deflate=v,e.Inflate=A,e.Gzip=x,e.Gunzip=S,e.DeflateRaw=_,e.InflateRaw=C,e.Unzip=k,e.createDeflate=function(t){return new v(t)},e.createInflate=function(t){return new A(t)},e.createDeflateRaw=function(t){return new _(t)},e.createInflateRaw=function(t){return new C(t)},e.createGzip=function(t){return new x(t)},e.createGunzip=function(t){return new S(t)},e.createUnzip=function(t){return new k(t)},e.deflate=function(t,e,n){return"function"==typeof e&&(n=e,e={}),b(new v(e),t,n)},e.deflateSync=function(t,e){return w(new v(e),t)},e.gzip=function(t,e,n){return"function"==typeof e&&(n=e,e={}),b(new x(e),t,n)},e.gzipSync=function(t,e){return w(new x(e),t)},e.deflateRaw=function(t,e,n){return"function"==typeof e&&(n=e,e={}),b(new _(e),t,n)},e.deflateRawSync=function(t,e){return w(new _(e),t)},e.unzip=function(t,e,n){return"function"==typeof e&&(n=e,e={}),b(new k(e),t,n)},e.unzipSync=function(t,e){return w(new k(e),t)},e.inflate=function(t,e,n){return"function"==typeof e&&(n=e,e={}),b(new A(e),t,n)},e.inflateSync=function(t,e){return w(new A(e),t)},e.gunzip=function(t,e,n){return"function"==typeof e&&(n=e,e={}),b(new S(e),t,n)},e.gunzipSync=function(t,e){return w(new S(e),t)},e.inflateRaw=function(t,e,n){return"function"==typeof e&&(n=e,e={}),b(new C(e),t,n)},e.inflateRawSync=function(t,e){return w(new C(e),t)},a.inherits(E,s),E.prototype.params=function(t,n,i){if(te.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+t);if(n!=e.Z_FILTERED&&n!=e.Z_HUFFMAN_ONLY&&n!=e.Z_RLE&&n!=e.Z_FIXED&&n!=e.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+n);if(this._level!==t||this._strategy!==n){var s=this;this.flush(o.Z_SYNC_FLUSH,(function(){l(s._handle,"zlib binding closed"),s._handle.params(t,n),s._hadError||(s._level=t,s._strategy=n,i&&i())}))}else r.nextTick(i)},E.prototype.reset=function(){return l(this._handle,"zlib binding closed"),this._handle.reset()},E.prototype._flush=function(t){this._transform(i.alloc(0),"",t)},E.prototype.flush=function(t,e){var n=this,s=this._writableState;("function"==typeof t||void 0===t&&!e)&&(e=t,t=o.Z_FULL_FLUSH),s.ended?e&&r.nextTick(e):s.ending?e&&this.once("end",e):s.needDrain?e&&this.once("drain",(function(){return n.flush(t,e)})):(this._flushFlag=t,this.write(i.alloc(0),"",e))},E.prototype.close=function(t){T(this,t),r.nextTick(O,this)},E.prototype._transform=function(t,e,n){var r,s=this._writableState,a=(s.ending||s.ended)&&(!t||s.length===t.length);return null===t||i.isBuffer(t)?this._handle?(a?r=this._finishFlushFlag:(r=this._flushFlag,t.length>=s.length&&(this._flushFlag=this._opts.flush||o.Z_NO_FLUSH)),void this._processChunk(t,r,n)):n(new Error("zlib binding closed")):n(new Error("invalid input"))},E.prototype._processChunk=function(t,e,n){var r=t&&t.length,s=this._chunkSize-this._offset,o=0,a=this,c="function"==typeof n;if(!c){var f,d=[],p=0;this.on("error",(function(t){f=t})),l(this._handle,"zlib binding closed");do{var g=this._handle.writeSync(e,t,o,r,this._buffer,this._offset,s)}while(!this._hadError&&b(g[0],g[1]));if(this._hadError)throw f;if(p>=h)throw T(this),new RangeError(u);var y=i.concat(d,p);return T(this),y}l(this._handle,"zlib binding closed");var m=this._handle.write(e,t,o,r,this._buffer,this._offset,s);function b(h,u){if(this&&(this.buffer=null,this.callback=null),!a._hadError){var f=s-u;if(l(f>=0,"have should not go down"),f>0){var g=a._buffer.slice(a._offset,a._offset+f);a._offset+=f,c?a.push(g):(d.push(g),p+=g.length)}if((0===u||a._offset>=a._chunkSize)&&(s=a._chunkSize,a._offset=0,a._buffer=i.allocUnsafe(a._chunkSize)),0===u){if(o+=r-h,r=h,!c)return!0;var y=a._handle.write(e,t,o,r,a._buffer,a._offset,a._chunkSize);return y.callback=b,void(y.buffer=t)}if(!c)return!1;n()}}m.buffer=t,m.callback=b},a.inherits(v,E),a.inherits(A,E),a.inherits(x,E),a.inherits(S,E),a.inherits(_,E),a.inherits(C,E),a.inherits(k,E)},7802(t,e,n){"use strict";var r=n(5049),i=n(3036),s=n(78),o=n(1909);t.exports=o||r.call(s,i)},8619(t,e,n){"use strict";var r=n(5049),i=n(3036),s=n(7802);t.exports=function(){return s(r,i,arguments)}},3036(t){"use strict";t.exports=Function.prototype.apply},78(t){"use strict";t.exports=Function.prototype.call},6688(t,e,n){"use strict";var r=n(5049),i=n(6785),s=n(78),o=n(7802);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new i("a function is required");return o(r,s,t)}},1909(t){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},7913(t,e,n){"use strict";var r=n(8651),i=n(6601),s=i(r("String.prototype.indexOf"));t.exports=function(t,e){var n=r(t,!!e);return"function"==typeof n&&s(t,".prototype.")>-1?i(n):n}},6601(t,e,n){"use strict";var r=n(6255),i=n(6649),s=n(6688),o=n(8619);t.exports=function(t){var e=s(arguments),n=1+t.length-(arguments.length-1);return r(e,n>0?n:0,!0)},i?i(t.exports,"apply",{value:o}):t.exports.apply=o},2774(t,e,n){"use strict";var r=n(8651),i=n(6688),s=i([r("%String.prototype.indexOf%")]);t.exports=function(t,e){var n=r(t,!!e);return"function"==typeof n&&s(t,".prototype.")>-1?i([n]):n}},1613(t,e,n){var r=n(783).Buffer,i=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}var e,n,i;try{e=Map}catch(t){e=function(){}}try{n=Set}catch(t){n=function(){}}try{i=Promise}catch(t){i=function(){}}function s(o,l,h,u,c){"object"==typeof l&&(h=l.depth,u=l.prototype,c=l.includeNonEnumerable,l=l.circular);var f=[],d=[],p=void 0!==r;return void 0===l&&(l=!0),void 0===h&&(h=1/0),function o(h,g){if(null===h)return null;if(0===g)return h;var y,m;if("object"!=typeof h)return h;if(t(h,e))y=new e;else if(t(h,n))y=new n;else if(t(h,i))y=new i((function(t,e){h.then((function(e){t(o(e,g-1))}),(function(t){e(o(t,g-1))}))}));else if(s.__isArray(h))y=[];else if(s.__isRegExp(h))y=new RegExp(h.source,a(h)),h.lastIndex&&(y.lastIndex=h.lastIndex);else if(s.__isDate(h))y=new Date(h.getTime());else{if(p&&r.isBuffer(h))return y=r.allocUnsafe?r.allocUnsafe(h.length):new r(h.length),h.copy(y),y;t(h,Error)?y=Object.create(h):void 0===u?(m=Object.getPrototypeOf(h),y=Object.create(m)):(y=Object.create(u),m=u)}if(l){var b=f.indexOf(h);if(-1!=b)return d[b];f.push(h),d.push(y)}for(var w in t(h,e)&&h.forEach((function(t,e){var n=o(e,g-1),r=o(t,g-1);y.set(n,r)})),t(h,n)&&h.forEach((function(t){var e=o(t,g-1);y.add(e)})),h){var v;m&&(v=Object.getOwnPropertyDescriptor(m,w)),v&&null==v.set||(y[w]=o(h[w],g-1))}if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(h);for(w=0;w3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new s("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,h=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],c=!!o&&o(t,e);if(r)r(t,e,{configurable:null===h&&c?c.configurable:!h,enumerable:null===a&&c?c.enumerable:!a,value:n,writable:null===l&&c?c.writable:!l});else{if(!u&&(a||l||h))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=n}}},5421(t,e,n){"use strict";var r=n(5643),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),s=Object.prototype.toString,o=Array.prototype.concat,a=n(9295),l=n(8890)(),h=function(t,e,n,r){if(e in t)if(!0===r){if(t[e]===n)return}else if("function"!=typeof(i=r)||"[object Function]"!==s.call(i)||!r())return;var i;l?a(t,e,n,!0):a(t,e,n)},u=function(t,e){var n=arguments.length>2?arguments[2]:{},s=r(e);i&&(s=o.call(s,Object.getOwnPropertySymbols(e)));for(var a=0;a0&&o.length>i&&!o.warned){o.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=o.length,h=u,console&&console.warn&&console.warn(h)}return t}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function c(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=u.bind(r);return i.listener=n,r.wrapFn=i,i}function f(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(t){for(var e=new Array(t.length),n=0;n0&&(o=e[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var l=s[t];if(void 0===l)return!1;if("function"==typeof l)r(l,this,e);else{var h=l.length,u=p(l,h);for(n=0;n=0;s--)if(n[s]===e||n[s].listener===e){o=n[s].listener,i=s;break}if(i<0)return this;0===i?n.shift():function(t,e){for(;e+1=0;r--)this.removeListener(t,e[r]);return this},s.prototype.listeners=function(t){return f(this,t,!0)},s.prototype.rawListeners=function(t){return f(this,t,!1)},s.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):d.call(t,e)},s.prototype.listenerCount=d,s.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},2022(t,e,n){"use strict";t.exports=function(){if("object"==typeof globalThis)return globalThis;var t;try{t=this||new Function("return this")()}catch(t){if("object"==typeof window)return window;if("object"==typeof self)return self;if(void 0!==n.g)return n.g}return t}()},453(t){"use strict";t.exports=function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(e.constructor!==n.constructor)return!1;var r,i,s;if(Array.isArray(e)){if((r=e.length)!=n.length)return!1;for(i=r;0!=i--;)if(!t(e[i],n[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if((r=(s=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,s[i]))return!1;for(i=r;0!=i--;){var o=s[i];if(!t(e[o],n[o]))return!1}return!0}return e!=e&&n!=n}},8404(t,e,n){"use strict";var r=n(3746),i=Object.prototype.toString,s=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){if(!r(e))throw new TypeError("iterator must be a function");var o,a;arguments.length>=3&&(o=n),a=t,"[object Array]"===i.call(a)?function(t,e,n){for(var r=0,i=t.length;re},8651(t,e,n){"use strict";var r,i=n(5846),s=n(5293),o=n(9055),a=n(8888),l=n(7900),h=n(7770),u=n(6785),c=n(4055),f=n(716),d=n(7450),p=n(3774),g=n(7552),y=n(5874),m=n(9292),b=n(6071),w=Function,v=function(t){try{return w('"use strict"; return ('+t+").constructor;")()}catch(t){}},A=n(8109),x=n(6649),S=function(){throw new u},_=A?function(){try{return S}catch(t){try{return A(arguments,"callee").get}catch(t){return S}}}():S,C=n(3257)(),k=n(7106),P=n(3766),E=n(6822),T=n(3036),O=n(78),I={},L="undefined"!=typeof Uint8Array&&k?k(Uint8Array):r,B={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":C&&k?k([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":s,"%eval%":eval,"%EvalError%":o,"%Float16Array%":"undefined"==typeof Float16Array?r:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":w,"%GeneratorFunction%":I,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":C&&k?k(k([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&C&&k?k((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":A,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&C&&k?k((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C&&k?k(""[Symbol.iterator]()):r,"%Symbol%":C?Symbol:r,"%SyntaxError%":h,"%ThrowTypeError%":_,"%TypedArray%":L,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet,"%Function.prototype.call%":O,"%Function.prototype.apply%":T,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":P,"%Math.abs%":f,"%Math.floor%":d,"%Math.max%":p,"%Math.min%":g,"%Math.pow%":y,"%Math.round%":m,"%Math.sign%":b,"%Reflect.getPrototypeOf%":E};if(k)try{null.error}catch(t){var M=k(k(t));B["%Error.prototype%"]=M}var D=function t(e){var n;if("%AsyncFunction%"===e)n=v("async function () {}");else if("%GeneratorFunction%"===e)n=v("function* () {}");else if("%AsyncGeneratorFunction%"===e)n=v("async function* () {}");else if("%AsyncGenerator%"===e){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&k&&(n=k(i.prototype))}return B[e]=n,n},R={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},N=n(5049),F=n(5215),U=N.call(O,Array.prototype.concat),z=N.call(T,Array.prototype.splice),W=N.call(O,String.prototype.replace),j=N.call(O,String.prototype.slice),V=N.call(O,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G=/\\(\\)?/g,q=function(t,e){var n,r=t;if(F(R,r)&&(r="%"+(n=R[r])[0]+"%"),F(B,r)){var i=B[r];if(i===I&&(i=D(r)),void 0===i&&!e)throw new u("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new h("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new u('"allowMissing" argument must be a boolean');if(null===V(/^%?[^%]*%?$/,t))throw new h("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(t){var e=j(t,0,1),n=j(t,-1);if("%"===e&&"%"!==n)throw new h("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new h("invalid intrinsic syntax, expected opening `%`");var r=[];return W(t,H,(function(t,e,n,i){r[r.length]=n?W(i,G,"$1"):e||t})),r}(t),r=n.length>0?n[0]:"",i=q("%"+r+"%",e),s=i.name,o=i.value,a=!1,l=i.alias;l&&(r=l[0],z(n,U([0,1],l)));for(var c=1,f=!0;c=n.length){var y=A(o,d);o=(f=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:o[d]}else f=F(o,d),o=o[d];f&&!a&&(B[s]=o)}}return o}},3766(t,e,n){"use strict";var r=n(5846);t.exports=r.getPrototypeOf||null},6822(t){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},7106(t,e,n){"use strict";var r=n(6822),i=n(3766),s=n(9302);t.exports=r?function(t){return r(t)}:i?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return i(t)}:s?function(t){return s(t)}:null},5567(t){"use strict";t.exports=Object.getOwnPropertyDescriptor},8109(t,e,n){"use strict";var r=n(5567);if(r)try{r([],"length")}catch(t){r=null}t.exports=r},8890(t,e,n){"use strict";var r=n(6649),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(t){return!0}},t.exports=i},3257(t,e,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(2843);t.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},2843(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var s=Object.getOwnPropertyDescriptor(t,e);if(42!==s.value||!0!==s.enumerable)return!1}return!0}},6626(t,e,n){"use strict";var r=n(2843);t.exports=function(){return r()&&!!Symbol.toStringTag}},5215(t,e,n){"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,s=n(5049);t.exports=s.call(r,i)},9029(t,e){e.read=function(t,e,n,r,i){var s,o,a=8*i-r-1,l=(1<>1,u=-7,c=n?i-1:0,f=n?-1:1,d=t[e+c];for(c+=f,s=d&(1<<-u)-1,d>>=-u,u+=a;u>0;s=256*s+t[e+c],c+=f,u-=8);for(o=s&(1<<-u)-1,s>>=-u,u+=r;u>0;o=256*o+t[e+c],c+=f,u-=8);if(0===s)s=1-h;else{if(s===l)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,r),s-=h}return(d?-1:1)*o*Math.pow(2,s-r)},e.write=function(t,e,n,r,i,s){var o,a,l,h=8*s-i-1,u=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:s-1,p=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),(e+=o+c>=1?f/l:f*Math.pow(2,1-c))*l>=2&&(o++,l/=2),o+c>=u?(a=0,o=u):o+c>=1?(a=(e*l-1)*Math.pow(2,i),o+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;t[n+d]=255&a,d+=p,a/=256,i-=8);for(o=o<0;t[n+d]=255&o,d+=p,o/=256,h-=8);t[n+d-p]|=128*g}},9784(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},7906(t,e,n){"use strict";var r=n(6626)(),i=n(2774)("Object.prototype.toString"),s=function(t){return!(r&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===i(t)},o=function(t){return!!s(t)||null!==t&&"object"==typeof t&&"length"in t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==i(t)&&"callee"in t&&"[object Function]"===i(t.callee)},a=function(){return s(arguments)}();s.isLegacyArguments=o,t.exports=a?s:o},3746(t){"use strict";var e,n,r=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i((function(){throw 42}),null,e)}catch(t){t!==n&&(i=null)}else i=null;var s=/^\s*class\b/,o=function(t){try{var e=r.call(t);return s.test(e)}catch(t){return!1}},a=function(t){try{return!o(t)&&(r.call(t),!0)}catch(t){return!1}},l=Object.prototype.toString,h="function"==typeof Symbol&&!!Symbol.toStringTag,u=!(0 in[,]),c=function(){return!1};if("object"==typeof document){var f=document.all;l.call(f)===l.call(document.all)&&(c=function(t){if((u||!t)&&(void 0===t||"object"==typeof t))try{var e=l.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=i?function(t){if(c(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{i(t,null,e)}catch(t){if(t!==n)return!1}return!o(t)&&a(t)}:function(t){if(c(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(h)return a(t);if(o(t))return!1;var e=l.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&a(t)}},4610(t,e,n){"use strict";var r=n(2774),i=n(8843)(/^\s*(?:function)?\*/),s=n(6626)(),o=n(7106),a=r("Object.prototype.toString"),l=r("Function.prototype.toString"),h=n(9294).c;t.exports=function(t){if("function"!=typeof t)return!1;if(i(l(t)))return!0;if(!s)return"[object GeneratorFunction]"===a(t);if(!o)return!1;var e=h();return e&&o(t)===e.prototype}},2621(t){"use strict";t.exports=function(t){return t!=t}},7051(t,e,n){"use strict";var r=n(6601),i=n(5421),s=n(2621),o=n(1320),a=n(5074),l=r(o(),Number);i(l,{getPolyfill:o,implementation:s,shim:a}),t.exports=l},1320(t,e,n){"use strict";var r=n(2621);t.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},5074(t,e,n){"use strict";var r=n(5421),i=n(1320);t.exports=function(){var t=i();return r(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}},1689(t,e,n){"use strict";var r,i=n(2774),s=n(6626)(),o=n(5215),a=n(8109);if(s){var l=i("RegExp.prototype.exec"),h={},u=function(){throw h},c={toString:u,valueOf:u};"symbol"==typeof Symbol.toPrimitive&&(c[Symbol.toPrimitive]=u),r=function(t){if(!t||"object"!=typeof t)return!1;var e=a(t,"lastIndex");if(!e||!o(e,"value"))return!1;try{l(t,c)}catch(t){return t===h}}}else{var f=i("Object.prototype.toString");r=function(t){return!(!t||"object"!=typeof t&&"function"!=typeof t)&&"[object RegExp]"===f(t)}}t.exports=r},6094(t,e,n){"use strict";var r=n(3381);t.exports=function(t){return!!r(t)}},1632(t,e,n){var r,i=n(9964);!function(){"use strict";var e="input is invalid type",s="object"==typeof window,o=s?window:{};o.JS_MD5_NO_WINDOW&&(s=!1);var a=!s&&"object"==typeof self,l=!o.JS_MD5_NO_NODE_JS&&"object"==typeof i&&i.versions&&i.versions.node;l?o=n.g:a&&(o=self);var h,u=!o.JS_MD5_NO_COMMON_JS&&t.exports,c=n.amdO,f=!o.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,d="0123456789abcdef".split(""),p=[128,32768,8388608,-2147483648],g=[0,8,16,24],y=["hex","array","digest","buffer","arrayBuffer","base64"],m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),b=[];if(f){var w=new ArrayBuffer(68);h=new Uint8Array(w),b=new Uint32Array(w)}var v=Array.isArray;!o.JS_MD5_NO_NODE_JS&&v||(v=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var A=ArrayBuffer.isView;!f||!o.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&A||(A=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var x=function(t){var n=typeof t;if("string"===n)return[t,!0];if("object"!==n||null===t)throw new Error(e);if(f&&t.constructor===ArrayBuffer)return[new Uint8Array(t),!1];if(!v(t)&&!A(t))throw new Error(e);return[t,!1]},S=function(t){return function(e){return new C(!0).update(e)[t]()}},_=function(t){return function(e,n){return new k(e,!0).update(n)[t]()}};function C(t){if(t)b[0]=b[16]=b[1]=b[2]=b[3]=b[4]=b[5]=b[6]=b[7]=b[8]=b[9]=b[10]=b[11]=b[12]=b[13]=b[14]=b[15]=0,this.blocks=b,this.buffer8=h;else if(f){var e=new ArrayBuffer(68);this.buffer8=new Uint8Array(e),this.blocks=new Uint32Array(e)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}function k(t,e){var n,r=x(t);if(t=r[0],r[1]){var i,s=[],o=t.length,a=0;for(n=0;n>>6,s[a++]=128|63&i):i<55296||i>=57344?(s[a++]=224|i>>>12,s[a++]=128|i>>>6&63,s[a++]=128|63&i):(i=65536+((1023&i)<<10|1023&t.charCodeAt(++n)),s[a++]=240|i>>>18,s[a++]=128|i>>>12&63,s[a++]=128|i>>>6&63,s[a++]=128|63&i);t=s}t.length>64&&(t=new C(!0).update(t).array());var l=[],h=[];for(n=0;n<64;++n){var u=t[n]||0;l[n]=92^u,h[n]=54^u}C.call(this,e),this.update(h),this.oKeyPad=l,this.inner=!0,this.sharedMemory=e}C.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var e=x(t);t=e[0];for(var n,r,i=e[1],s=0,o=t.length,a=this.blocks,l=this.buffer8;s>>6,l[r++]=128|63&n):n<55296||n>=57344?(l[r++]=224|n>>>12,l[r++]=128|n>>>6&63,l[r++]=128|63&n):(n=65536+((1023&n)<<10|1023&t.charCodeAt(++s)),l[r++]=240|n>>>18,l[r++]=128|n>>>12&63,l[r++]=128|n>>>6&63,l[r++]=128|63&n);else for(r=this.start;s>>2]|=n<>>2]|=(192|n>>>6)<>>2]|=(128|63&n)<=57344?(a[r>>>2]|=(224|n>>>12)<>>2]|=(128|n>>>6&63)<>>2]|=(128|63&n)<>>2]|=(240|n>>>18)<>>2]|=(128|n>>>12&63)<>>2]|=(128|n>>>6&63)<>>2]|=(128|63&n)<>>2]|=t[s]<=64?(this.start=r-64,this.hash(),this.hashed=!0):this.start=r}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},C.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[e>>>2]|=p[3&e],e>=56&&(this.hashed||this.hash(),t[0]=t[16],t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.bytes<<3,t[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},C.prototype.hash=function(){var t,e,n,r,i,s,o=this.blocks;this.first?e=((e=((t=((t=o[0]-680876937)<<7|t>>>25)-271733879|0)^(n=((n=(-271733879^(r=((r=(-1732584194^2004318071&t)+o[1]-117830708)<<12|r>>>20)+t|0)&(-271733879^t))+o[2]-1126478375)<<17|n>>>15)+r|0)&(r^t))+o[3]-1316259209)<<22|e>>>10)+n|0:(t=this.h0,e=this.h1,n=this.h2,e=((e+=((t=((t+=((r=this.h3)^e&(n^r))+o[0]-680876936)<<7|t>>>25)+e|0)^(n=((n+=(e^(r=((r+=(n^t&(e^n))+o[1]-389564586)<<12|r>>>20)+t|0)&(t^e))+o[2]+606105819)<<17|n>>>15)+r|0)&(r^t))+o[3]-1044525330)<<22|e>>>10)+n|0),e=((e+=((t=((t+=(r^e&(n^r))+o[4]-176418897)<<7|t>>>25)+e|0)^(n=((n+=(e^(r=((r+=(n^t&(e^n))+o[5]+1200080426)<<12|r>>>20)+t|0)&(t^e))+o[6]-1473231341)<<17|n>>>15)+r|0)&(r^t))+o[7]-45705983)<<22|e>>>10)+n|0,e=((e+=((t=((t+=(r^e&(n^r))+o[8]+1770035416)<<7|t>>>25)+e|0)^(n=((n+=(e^(r=((r+=(n^t&(e^n))+o[9]-1958414417)<<12|r>>>20)+t|0)&(t^e))+o[10]-42063)<<17|n>>>15)+r|0)&(r^t))+o[11]-1990404162)<<22|e>>>10)+n|0,e=((e+=((t=((t+=(r^e&(n^r))+o[12]+1804603682)<<7|t>>>25)+e|0)^(n=((n+=(e^(r=((r+=(n^t&(e^n))+o[13]-40341101)<<12|r>>>20)+t|0)&(t^e))+o[14]-1502002290)<<17|n>>>15)+r|0)&(r^t))+o[15]+1236535329)<<22|e>>>10)+n|0,e=((e+=((r=((r+=(e^n&((t=((t+=(n^r&(e^n))+o[1]-165796510)<<5|t>>>27)+e|0)^e))+o[6]-1069501632)<<9|r>>>23)+t|0)^t&((n=((n+=(t^e&(r^t))+o[11]+643717713)<<14|n>>>18)+r|0)^r))+o[0]-373897302)<<20|e>>>12)+n|0,e=((e+=((r=((r+=(e^n&((t=((t+=(n^r&(e^n))+o[5]-701558691)<<5|t>>>27)+e|0)^e))+o[10]+38016083)<<9|r>>>23)+t|0)^t&((n=((n+=(t^e&(r^t))+o[15]-660478335)<<14|n>>>18)+r|0)^r))+o[4]-405537848)<<20|e>>>12)+n|0,e=((e+=((r=((r+=(e^n&((t=((t+=(n^r&(e^n))+o[9]+568446438)<<5|t>>>27)+e|0)^e))+o[14]-1019803690)<<9|r>>>23)+t|0)^t&((n=((n+=(t^e&(r^t))+o[3]-187363961)<<14|n>>>18)+r|0)^r))+o[8]+1163531501)<<20|e>>>12)+n|0,e=((e+=((r=((r+=(e^n&((t=((t+=(n^r&(e^n))+o[13]-1444681467)<<5|t>>>27)+e|0)^e))+o[2]-51403784)<<9|r>>>23)+t|0)^t&((n=((n+=(t^e&(r^t))+o[7]+1735328473)<<14|n>>>18)+r|0)^r))+o[12]-1926607734)<<20|e>>>12)+n|0,e=((e+=((s=(r=((r+=((i=e^n)^(t=((t+=(i^r)+o[5]-378558)<<4|t>>>28)+e|0))+o[8]-2022574463)<<11|r>>>21)+t|0)^t)^(n=((n+=(s^e)+o[11]+1839030562)<<16|n>>>16)+r|0))+o[14]-35309556)<<23|e>>>9)+n|0,e=((e+=((s=(r=((r+=((i=e^n)^(t=((t+=(i^r)+o[1]-1530992060)<<4|t>>>28)+e|0))+o[4]+1272893353)<<11|r>>>21)+t|0)^t)^(n=((n+=(s^e)+o[7]-155497632)<<16|n>>>16)+r|0))+o[10]-1094730640)<<23|e>>>9)+n|0,e=((e+=((s=(r=((r+=((i=e^n)^(t=((t+=(i^r)+o[13]+681279174)<<4|t>>>28)+e|0))+o[0]-358537222)<<11|r>>>21)+t|0)^t)^(n=((n+=(s^e)+o[3]-722521979)<<16|n>>>16)+r|0))+o[6]+76029189)<<23|e>>>9)+n|0,e=((e+=((s=(r=((r+=((i=e^n)^(t=((t+=(i^r)+o[9]-640364487)<<4|t>>>28)+e|0))+o[12]-421815835)<<11|r>>>21)+t|0)^t)^(n=((n+=(s^e)+o[15]+530742520)<<16|n>>>16)+r|0))+o[2]-995338651)<<23|e>>>9)+n|0,e=((e+=((r=((r+=(e^((t=((t+=(n^(e|~r))+o[0]-198630844)<<6|t>>>26)+e|0)|~n))+o[7]+1126891415)<<10|r>>>22)+t|0)^((n=((n+=(t^(r|~e))+o[14]-1416354905)<<15|n>>>17)+r|0)|~t))+o[5]-57434055)<<21|e>>>11)+n|0,e=((e+=((r=((r+=(e^((t=((t+=(n^(e|~r))+o[12]+1700485571)<<6|t>>>26)+e|0)|~n))+o[3]-1894986606)<<10|r>>>22)+t|0)^((n=((n+=(t^(r|~e))+o[10]-1051523)<<15|n>>>17)+r|0)|~t))+o[1]-2054922799)<<21|e>>>11)+n|0,e=((e+=((r=((r+=(e^((t=((t+=(n^(e|~r))+o[8]+1873313359)<<6|t>>>26)+e|0)|~n))+o[15]-30611744)<<10|r>>>22)+t|0)^((n=((n+=(t^(r|~e))+o[6]-1560198380)<<15|n>>>17)+r|0)|~t))+o[13]+1309151649)<<21|e>>>11)+n|0,e=((e+=((r=((r+=(e^((t=((t+=(n^(e|~r))+o[4]-145523070)<<6|t>>>26)+e|0)|~n))+o[11]-1120210379)<<10|r>>>22)+t|0)^((n=((n+=(t^(r|~e))+o[2]+718787259)<<15|n>>>17)+r|0)|~t))+o[9]-343485551)<<21|e>>>11)+n|0,this.first?(this.h0=t+1732584193|0,this.h1=e-271733879|0,this.h2=n-1732584194|0,this.h3=r+271733878|0,this.first=!1):(this.h0=this.h0+t|0,this.h1=this.h1+e|0,this.h2=this.h2+n|0,this.h3=this.h3+r|0)},C.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,r=this.h3;return d[t>>>4&15]+d[15&t]+d[t>>>12&15]+d[t>>>8&15]+d[t>>>20&15]+d[t>>>16&15]+d[t>>>28&15]+d[t>>>24&15]+d[e>>>4&15]+d[15&e]+d[e>>>12&15]+d[e>>>8&15]+d[e>>>20&15]+d[e>>>16&15]+d[e>>>28&15]+d[e>>>24&15]+d[n>>>4&15]+d[15&n]+d[n>>>12&15]+d[n>>>8&15]+d[n>>>20&15]+d[n>>>16&15]+d[n>>>28&15]+d[n>>>24&15]+d[r>>>4&15]+d[15&r]+d[r>>>12&15]+d[r>>>8&15]+d[r>>>20&15]+d[r>>>16&15]+d[r>>>28&15]+d[r>>>24&15]},C.prototype.toString=C.prototype.hex,C.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,r=this.h3;return[255&t,t>>>8&255,t>>>16&255,t>>>24&255,255&e,e>>>8&255,e>>>16&255,e>>>24&255,255&n,n>>>8&255,n>>>16&255,n>>>24&255,255&r,r>>>8&255,r>>>16&255,r>>>24&255]},C.prototype.array=C.prototype.digest,C.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(16),e=new Uint32Array(t);return e[0]=this.h0,e[1]=this.h1,e[2]=this.h2,e[3]=this.h3,t},C.prototype.buffer=C.prototype.arrayBuffer,C.prototype.base64=function(){for(var t,e,n,r="",i=this.array(),s=0;s<15;)t=i[s++],e=i[s++],n=i[s++],r+=m[t>>>2]+m[63&(t<<4|e>>>4)]+m[63&(e<<2|n>>>6)]+m[63&n];return t=i[s],r+(m[t>>>2]+m[t<<4&63]+"==")},k.prototype=new C,k.prototype.finalize=function(){if(C.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();C.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(t),C.prototype.finalize.call(this)}};var P=function(){var t=S("hex");l&&(t=function(t){var r,i=n(8535),s=n(6274).Buffer;return r=s.from&&!o.JS_MD5_NO_BUFFER_FROM?s.from:function(t){return new s(t)},function(n){if("string"==typeof n)return i.createHash("md5").update(n,"utf8").digest("hex");if(null==n)throw new Error(e);return n.constructor===ArrayBuffer&&(n=new Uint8Array(n)),v(n)||A(n)||n.constructor===s?i.createHash("md5").update(r(n)).digest("hex"):t(n)}}(t)),t.create=function(){return new C},t.update=function(e){return t.create().update(e)};for(var r=0;r0&&!i.call(t,0))for(var g=0;g0)for(var y=0;y=0&&"[object Function]"===e.call(t.callee)),r}},6521(t,e,n){"use strict";var r=n(5643),i=n(2843)(),s=n(2774),o=n(5846),a=s("Array.prototype.push"),l=s("Object.prototype.propertyIsEnumerable"),h=i?o.getOwnPropertySymbols:null;t.exports=function(t,e){if(null==t)throw new TypeError("target must be an object");var n=o(t);if(1===arguments.length)return n;for(var s=1;s>>16&65535,o=0;0!==n;){n-=o=n>2e3?2e3:n;do{s=s+(i=i+e[r++]|0)|0}while(--o);i%=65521,s%=65521}return i|s<<16}},1607(t){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},9049(t){"use strict";var e=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();t.exports=function(t,n,r,i){var s=e,o=i+r;t^=-1;for(var a=i;a>>8^s[255&(t^n[a])];return~t}},2925(t,e,n){"use strict";var r,i=n(2519),s=n(2367),o=n(6911),a=n(9049),l=n(6228),h=-2,u=258,c=262,f=103,d=113,p=666;function g(t,e){return t.msg=l[e],e}function y(t){return(t<<1)-(t>4?9:0)}function m(t){for(var e=t.length;--e>=0;)t[e]=0}function b(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(i.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function w(t,e){s._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,b(t.strm)}function v(t,e){t.pending_buf[t.pending++]=e}function A(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function x(t,e){var n,r,i=t.max_chain_length,s=t.strstart,o=t.prev_length,a=t.nice_match,l=t.strstart>t.w_size-c?t.strstart-(t.w_size-c):0,h=t.window,f=t.w_mask,d=t.prev,p=t.strstart+u,g=h[s+o-1],y=h[s+o];t.prev_length>=t.good_match&&(i>>=2),a>t.lookahead&&(a=t.lookahead);do{if(h[(n=e)+o]===y&&h[n+o-1]===g&&h[n]===h[s]&&h[++n]===h[s+1]){s+=2,n++;do{}while(h[++s]===h[++n]&&h[++s]===h[++n]&&h[++s]===h[++n]&&h[++s]===h[++n]&&h[++s]===h[++n]&&h[++s]===h[++n]&&h[++s]===h[++n]&&h[++s]===h[++n]&&so){if(t.match_start=e,o=r,r>=a)break;g=h[s+o-1],y=h[s+o]}}}while((e=d[e&f])>l&&0!=--i);return o<=t.lookahead?o:t.lookahead}function S(t){var e,n,r,s,l,h,u,f,d,p,g=t.w_size;do{if(s=t.window_size-t.lookahead-t.strstart,t.strstart>=g+(g-c)){i.arraySet(t.window,t.window,g,g,0),t.match_start-=g,t.strstart-=g,t.block_start-=g,e=n=t.hash_size;do{r=t.head[--e],t.head[e]=r>=g?r-g:0}while(--n);e=n=g;do{r=t.prev[--e],t.prev[e]=r>=g?r-g:0}while(--n);s+=g}if(0===t.strm.avail_in)break;if(h=t.strm,u=t.window,f=t.strstart+t.lookahead,d=s,p=void 0,(p=h.avail_in)>d&&(p=d),n=0===p?0:(h.avail_in-=p,i.arraySet(u,h.input,h.next_in,p,f),1===h.state.wrap?h.adler=o(h.adler,u,p,f):2===h.state.wrap&&(h.adler=a(h.adler,u,p,f)),h.next_in+=p,h.total_in+=p,p),t.lookahead+=n,t.lookahead+t.insert>=3)for(l=t.strstart-t.insert,t.ins_h=t.window[l],t.ins_h=(t.ins_h<=3&&(t.ins_h=(t.ins_h<=3)if(r=s._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<=3&&(t.ins_h=(t.ins_h<4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,r=s._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<15&&(a=2,r-=16),s<1||s>9||8!==n||r<8||r>15||e<0||e>9||o<0||o>4)return g(t,h);8===r&&(r=9);var l=new P;return t.state=l,l.strm=t,l.wrap=a,l.gzhead=null,l.w_bits=r,l.w_size=1<t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(S(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,w(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-c&&(w(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(w(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(w(t,!1),t.strm.avail_out),1)})),new k(4,4,8,4,_),new k(4,5,16,8,_),new k(4,6,32,32,_),new k(4,4,16,16,C),new k(8,16,32,32,C),new k(8,16,128,128,C),new k(8,32,128,256,C),new k(32,128,258,1024,C),new k(32,258,258,4096,C)],e.deflateInit=function(t,e){return O(t,e,8,15,8,0)},e.deflateInit2=O,e.deflateReset=T,e.deflateResetKeep=E,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?h:(t.state.gzhead=e,0):h},e.deflate=function(t,e){var n,i,o,l;if(!t||!t.state||e>5||e<0)return t?g(t,h):h;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||i.status===p&&4!==e)return g(t,0===t.avail_out?-5:h);if(i.strm=t,n=i.last_flush,i.last_flush=e,42===i.status)if(2===i.wrap)t.adler=0,v(i,31),v(i,139),v(i,8),i.gzhead?(v(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),v(i,255&i.gzhead.time),v(i,i.gzhead.time>>8&255),v(i,i.gzhead.time>>16&255),v(i,i.gzhead.time>>24&255),v(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),v(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(v(i,255&i.gzhead.extra.length),v(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=a(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(v(i,0),v(i,0),v(i,0),v(i,0),v(i,0),v(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),v(i,3),i.status=d);else{var c=8+(i.w_bits-8<<4)<<8;c|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(c|=32),c+=31-c%31,i.status=d,A(i,c),0!==i.strstart&&(A(i,t.adler>>>16),A(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(t.adler=a(t.adler,i.pending_buf,i.pending-o,o)),b(t),o=i.pending,i.pending!==i.pending_buf_size));)v(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(t.adler=a(t.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(t.adler=a(t.adler,i.pending_buf,i.pending-o,o)),b(t),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindexo&&(t.adler=a(t.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(t.adler=a(t.adler,i.pending_buf,i.pending-o,o)),b(t),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindexo&&(t.adler=a(t.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.status=f)}else i.status=f;if(i.status===f&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&b(t),i.pending+2<=i.pending_buf_size&&(v(i,255&t.adler),v(i,t.adler>>8&255),t.adler=0,i.status=d)):i.status=d),0!==i.pending){if(b(t),0===t.avail_out)return i.last_flush=-1,0}else if(0===t.avail_in&&y(e)<=y(n)&&4!==e)return g(t,-5);if(i.status===p&&0!==t.avail_in)return g(t,-5);if(0!==t.avail_in||0!==i.lookahead||0!==e&&i.status!==p){var x=2===i.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(S(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,n=s._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(w(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(w(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(w(t,!1),0===t.strm.avail_out)?1:2}(i,e):3===i.strategy?function(t,e){for(var n,r,i,o,a=t.window;;){if(t.lookahead<=u){if(S(t),t.lookahead<=u&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(r=a[i=t.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){o=t.strstart+u;do{}while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&it.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(n=s._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=s._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(w(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(w(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(w(t,!1),0===t.strm.avail_out)?1:2}(i,e):r[i.level].func(i,e);if(3!==x&&4!==x||(i.status=p),1===x||3===x)return 0===t.avail_out&&(i.last_flush=-1),0;if(2===x&&(1===e?s._tr_align(i):5!==e&&(s._tr_stored_block(i,0,0,!1),3===e&&(m(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),b(t),0===t.avail_out))return i.last_flush=-1,0}return 4!==e?0:i.wrap<=0?1:(2===i.wrap?(v(i,255&t.adler),v(i,t.adler>>8&255),v(i,t.adler>>16&255),v(i,t.adler>>24&255),v(i,255&t.total_in),v(i,t.total_in>>8&255),v(i,t.total_in>>16&255),v(i,t.total_in>>24&255)):(A(i,t.adler>>>16),A(i,65535&t.adler)),b(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},e.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&e!==f&&e!==d&&e!==p?g(t,h):(t.state=null,e===d?g(t,-3):0):h},e.deflateSetDictionary=function(t,e){var n,r,s,a,l,u,c,f,d=e.length;if(!t||!t.state)return h;if(2===(a=(n=t.state).wrap)||1===a&&42!==n.status||n.lookahead)return h;for(1===a&&(t.adler=o(t.adler,e,d,0)),n.wrap=0,d>=n.w_size&&(0===a&&(m(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new i.Buf8(n.w_size),i.arraySet(f,e,d-n.w_size,n.w_size,0),e=f,d=n.w_size),l=t.avail_in,u=t.next_in,c=t.input,t.avail_in=d,t.next_in=0,t.input=e,S(n);n.lookahead>=3;){r=n.strstart,s=n.lookahead-2;do{n.ins_h=(n.ins_h<>>=v=w>>>24,p-=v,0==(v=w>>>16&255))k[s++]=65535&w;else{if(!(16&v)){if(64&v){if(32&v){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}w=g[(65535&w)+(d&(1<>>=v,p-=v),p<15&&(d+=C[r++]<>>=v=w>>>24,p-=v,16&(v=w>>>16&255)){if(x=65535&w,p<(v&=15)&&(d+=C[r++]<l){t.msg="invalid distance too far back",n.mode=30;break t}if(d>>>=v,p-=v,x>(v=s-o)){if((v=x-v)>u&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(S=0,_=f,0===c){if(S+=h-v,v2;)k[s++]=_[S++],k[s++]=_[S++],k[s++]=_[S++],A-=3;A&&(k[s++]=_[S++],A>1&&(k[s++]=_[S++]))}else{S=s-x;do{k[s++]=k[S++],k[s++]=k[S++],k[s++]=k[S++],A-=3}while(A>2);A&&(k[s++]=k[S++],A>1&&(k[s++]=k[S++]))}break}if(64&v){t.msg="invalid distance code",n.mode=30;break t}w=y[(65535&w)+(d&(1<>3,d&=(1<<(p-=A<<3))-1,t.next_in=r,t.next_out=s,t.avail_in=r>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function f(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function d(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new r.Buf32(852),e.distcode=e.distdyn=new r.Buf32(592),e.sane=1,e.back=-1,0):l}function p(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,d(t)):l}function g(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?l:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,p(t))):l}function y(t,e){var n,r;return t?(r=new f,t.state=r,r.window=null,0!==(n=g(t,e))&&(t.state=null),n):l}var m,b,w=!0;function v(t){if(w){var e;for(m=new r.Buf32(512),b=new r.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(a(1,t.lens,0,288,m,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;a(2,t.lens,0,32,b,0,t.work,{bits:5}),w=!1}t.lencode=m,t.lenbits=9,t.distcode=b,t.distbits=5}function A(t,e,n,i){var s,o=t.state;return null===o.window&&(o.wsize=1<=o.wsize?(r.arraySet(o.window,e,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((s=o.wsize-o.wnext)>i&&(s=i),r.arraySet(o.window,e,n-i,s,o.wnext),(i-=s)?(r.arraySet(o.window,e,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=s,o.wnext===o.wsize&&(o.wnext=0),o.whave>>8&255,n.check=s(n.check,F,2,0),b=0,w=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&b)<<8)+(b>>8))%31){t.msg="incorrect header check",n.mode=u;break}if(8!=(15&b)){t.msg="unknown compression method",n.mode=u;break}if(w-=4,B=8+(15&(b>>>=4)),0===n.wbits)n.wbits=B;else if(B>n.wbits){t.msg="invalid window size",n.mode=u;break}n.dmax=1<>8&1),512&n.flags&&(F[0]=255&b,F[1]=b>>>8&255,n.check=s(n.check,F,2,0)),b=0,w=0,n.mode=3;case 3:for(;w<32;){if(0===y)break t;y--,b+=f[p++]<>>8&255,F[2]=b>>>16&255,F[3]=b>>>24&255,n.check=s(n.check,F,4,0)),b=0,w=0,n.mode=4;case 4:for(;w<16;){if(0===y)break t;y--,b+=f[p++]<>8),512&n.flags&&(F[0]=255&b,F[1]=b>>>8&255,n.check=s(n.check,F,2,0)),b=0,w=0,n.mode=5;case 5:if(1024&n.flags){for(;w<16;){if(0===y)break t;y--,b+=f[p++]<>>8&255,n.check=s(n.check,F,2,0)),b=0,w=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((_=n.length)>y&&(_=y),_&&(n.head&&(B=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,f,p,_,B)),512&n.flags&&(n.check=s(n.check,f,_,p)),y-=_,p+=_,n.length-=_),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===y)break t;_=0;do{B=f[p+_++],n.head&&B&&n.length<65536&&(n.head.name+=String.fromCharCode(B))}while(B&&_>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=h;break;case 10:for(;w<32;){if(0===y)break t;y--,b+=f[p++]<>>=7&w,w-=7&w,n.mode=27;break}for(;w<3;){if(0===y)break t;y--,b+=f[p++]<>>=1)){case 0:n.mode=14;break;case 1:if(v(n),n.mode=20,6===e){b>>>=2,w-=2;break t}break;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=u}b>>>=2,w-=2;break;case 14:for(b>>>=7&w,w-=7&w;w<32;){if(0===y)break t;y--,b+=f[p++]<>>16^65535)){t.msg="invalid stored block lengths",n.mode=u;break}if(n.length=65535&b,b=0,w=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(_=n.length){if(_>y&&(_=y),_>m&&(_=m),0===_)break t;r.arraySet(d,f,p,_,g),y-=_,p+=_,m-=_,g+=_,n.length-=_;break}n.mode=h;break;case 17:for(;w<14;){if(0===y)break t;y--,b+=f[p++]<>>=5,w-=5,n.ndist=1+(31&b),b>>>=5,w-=5,n.ncode=4+(15&b),b>>>=4,w-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=u;break}n.have=0,n.mode=18;case 18:for(;n.have>>=3,w-=3}for(;n.have<19;)n.lens[U[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,D={bits:n.lenbits},M=a(0,n.lens,0,19,n.lencode,0,n.work,D),n.lenbits=D.bits,M){t.msg="invalid code lengths set",n.mode=u;break}n.have=0,n.mode=19;case 19:for(;n.have>>16&255,T=65535&N,!((P=N>>>24)<=w);){if(0===y)break t;y--,b+=f[p++]<>>=P,w-=P,n.lens[n.have++]=T;else{if(16===T){for(R=P+2;w>>=P,w-=P,0===n.have){t.msg="invalid bit length repeat",n.mode=u;break}B=n.lens[n.have-1],_=3+(3&b),b>>>=2,w-=2}else if(17===T){for(R=P+3;w>>=P)),b>>>=3,w-=3}else{for(R=P+7;w>>=P)),b>>>=7,w-=7}if(n.have+_>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=u;break}for(;_--;)n.lens[n.have++]=B}}if(n.mode===u)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=u;break}if(n.lenbits=9,D={bits:n.lenbits},M=a(1,n.lens,0,n.nlen,n.lencode,0,n.work,D),n.lenbits=D.bits,M){t.msg="invalid literal/lengths set",n.mode=u;break}if(n.distbits=6,n.distcode=n.distdyn,D={bits:n.distbits},M=a(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,D),n.distbits=D.bits,M){t.msg="invalid distances set",n.mode=u;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(y>=6&&m>=258){t.next_out=g,t.avail_out=m,t.next_in=p,t.avail_in=y,n.hold=b,n.bits=w,o(t,S),g=t.next_out,d=t.output,m=t.avail_out,p=t.next_in,f=t.input,y=t.avail_in,b=n.hold,w=n.bits,n.mode===h&&(n.back=-1);break}for(n.back=0;E=(N=n.lencode[b&(1<>>16&255,T=65535&N,!((P=N>>>24)<=w);){if(0===y)break t;y--,b+=f[p++]<>O)])>>>16&255,T=65535&N,!(O+(P=N>>>24)<=w);){if(0===y)break t;y--,b+=f[p++]<>>=O,w-=O,n.back+=O}if(b>>>=P,w-=P,n.back+=P,n.length=T,0===E){n.mode=26;break}if(32&E){n.back=-1,n.mode=h;break}if(64&E){t.msg="invalid literal/length code",n.mode=u;break}n.extra=15&E,n.mode=22;case 22:if(n.extra){for(R=n.extra;w>>=n.extra,w-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;E=(N=n.distcode[b&(1<>>16&255,T=65535&N,!((P=N>>>24)<=w);){if(0===y)break t;y--,b+=f[p++]<>O)])>>>16&255,T=65535&N,!(O+(P=N>>>24)<=w);){if(0===y)break t;y--,b+=f[p++]<>>=O,w-=O,n.back+=O}if(b>>>=P,w-=P,n.back+=P,64&E){t.msg="invalid distance code",n.mode=u;break}n.offset=T,n.extra=15&E,n.mode=24;case 24:if(n.extra){for(R=n.extra;w>>=n.extra,w-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=u;break}n.mode=25;case 25:if(0===m)break t;if(_=S-m,n.offset>_){if((_=n.offset-_)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=u;break}_>n.wnext?(_-=n.wnext,C=n.wsize-_):C=n.wnext-_,_>n.length&&(_=n.length),k=n.window}else k=d,C=g-n.offset,_=n.length;_>m&&(_=m),m-=_,n.length-=_;do{d[g++]=k[C++]}while(--_);0===n.length&&(n.mode=21);break;case 26:if(0===m)break t;d[g++]=n.length,m--,n.mode=21;break;case 27:if(n.wrap){for(;w<32;){if(0===y)break t;y--,b|=f[p++]<=1&&0===D[k];k--);if(P>k&&(P=k),0===k)return h[u++]=20971520,h[u++]=20971520,f.bits=1,0;for(C=1;C0&&(0===t||1!==k))return-1;for(R[1]=0,S=1;S<15;S++)R[S+1]=R[S]+D[S];for(_=0;_852||2===t&&I>592)return 1;for(;;){w=S-T,c[_]b?(v=N[F+c[_]],A=B[M+c[_]]):(v=96,A=0),d=1<>T)+(p-=d)]=w<<24|v<<16|A}while(0!==p);for(d=1<>=1;if(0!==d?(L&=d-1,L+=d):L=0,_++,0==--D[S]){if(S===k)break;S=e[n+c[_]]}if(S>P&&(L&y)!==g){for(0===T&&(T=P),m+=C,O=1<<(E=S-T);E+T852||2===t&&I>592)return 1;h[g=L&y]=P<<24|E<<16|m-u}}return 0!==L&&(h[m+L]=S-T<<24|64<<16),f.bits=P,0}},6228(t){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},2367(t,e,n){"use strict";var r=n(2519);function i(t){for(var e=t.length;--e>=0;)t[e]=0}var s=[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],o=[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],a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],l=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],h=new Array(576);i(h);var u=new Array(60);i(u);var c=new Array(512);i(c);var f=new Array(256);i(f);var d=new Array(29);i(d);var p,g,y,m=new Array(30);function b(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function v(t){return t<256?c[t]:c[256+(t>>>7)]}function A(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function x(t,e,n){t.bi_valid>16-n?(t.bi_buf|=e<>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<>>=1,n<<=1}while(--e>0);return n>>>1}function C(t,e,n){var r,i,s=new Array(16),o=0;for(r=1;r<=15;r++)s[r]=o=o+n[r-1]<<1;for(i=0;i<=e;i++){var a=t[2*i+1];0!==a&&(t[2*i]=_(s[a]++,a))}}function k(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function P(t){t.bi_valid>8?A(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function E(t,e,n,r){var i=2*e,s=2*n;return t[i]>1;n>=1;n--)T(t,s,n);i=l;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],T(t,s,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,s[2*i]=s[2*n]+s[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,s[2*n+1]=s[2*r+1]=i,t.heap[1]=i++,T(t,s,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,s,o,a,l=e.dyn_tree,h=e.max_code,u=e.stat_desc.static_tree,c=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(s=0;s<=15;s++)t.bl_count[s]=0;for(l[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<573;n++)(s=l[2*l[2*(r=t.heap[n])+1]+1]+1)>p&&(s=p,g++),l[2*r+1]=s,r>h||(t.bl_count[s]++,o=0,r>=d&&(o=f[r-d]),a=l[2*r],t.opt_len+=a*(s+o),c&&(t.static_len+=a*(u[2*r+1]+o)));if(0!==g){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(s=p;0!==s;s--)for(r=t.bl_count[s];0!==r;)(i=t.heap[--n])>h||(l[2*i+1]!==s&&(t.opt_len+=(s-l[2*i+1])*l[2*i],l[2*i+1]=s),r--)}}(t,e),C(s,h,t.bl_count)}function L(t,e,n){var r,i,s=-1,o=e[1],a=0,l=7,h=4;for(0===o&&(l=138,h=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=e[2*(r+1)+1],++a>=7;r<30;r++)for(m[r]=i<<7,t=0;t<1<0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),I(t,t.l_desc),I(t,t.d_desc),o=function(t){var e;for(L(t,t.dyn_ltree,t.l_desc.max_code),L(t,t.dyn_dtree,t.d_desc.max_code),I(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*l[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=n+5,n+4<=i&&-1!==e?D(t,e,n,r):4===t.strategy||s===i?(x(t,2+(r?1:0),3),O(t,h,u)):(x(t,4+(r?1:0),3),function(t,e,n,r){var i;for(x(t,e-257,5),x(t,n-1,5),x(t,r-4,4),i=0;i>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(f[n]+256+1)]++,t.dyn_dtree[2*v(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){x(t,2,3),S(t,256,h),function(t){16===t.bi_valid?(A(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},7468(t){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},884(t){"use strict";t.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},9964(t){var e,n,r=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function o(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(t){n=s}}();var a,l=[],h=!1,u=-1;function c(){h&&a&&(h=!1,a.length?l=a.concat(l):u=-1,l.length&&f())}function f(){if(!h){var t=o(c);h=!0;for(var e=l.length;e;){for(a=l,l=[];++u1)for(var n=1;n"===s?(O(n,"onsgmldeclaration",n.sgmlDecl),n.sgmlDecl="",n.state=C.TEXT):b(s)?(n.state=C.SGML_DECL_QUOTED,n.sgmlDecl+=s):n.sgmlDecl+=s;continue;case C.SGML_DECL_QUOTED:s===n.q&&(n.state=C.SGML_DECL,n.q=""),n.sgmlDecl+=s;continue;case C.DOCTYPE:">"===s?(n.state=C.TEXT,O(n,"ondoctype",n.doctype),n.doctype=!0):(n.doctype+=s,"["===s?n.state=C.DOCTYPE_DTD:b(s)&&(n.state=C.DOCTYPE_QUOTED,n.q=s));continue;case C.DOCTYPE_QUOTED:n.doctype+=s,s===n.q&&(n.q="",n.state=C.DOCTYPE);continue;case C.DOCTYPE_DTD:"]"===s?(n.doctype+=s,n.state=C.DOCTYPE):"<"===s?(n.state=C.OPEN_WAKA,n.startTagPosition=n.position):b(s)?(n.doctype+=s,n.state=C.DOCTYPE_DTD_QUOTED,n.q=s):n.doctype+=s;continue;case C.DOCTYPE_DTD_QUOTED:n.doctype+=s,s===n.q&&(n.state=C.DOCTYPE_DTD,n.q="");continue;case C.COMMENT:"-"===s?n.state=C.COMMENT_ENDING:n.comment+=s;continue;case C.COMMENT_ENDING:"-"===s?(n.state=C.COMMENT_ENDED,n.comment=L(n.opt,n.comment),n.comment&&O(n,"oncomment",n.comment),n.comment=""):(n.comment+="-"+s,n.state=C.COMMENT);continue;case C.COMMENT_ENDED:">"!==s?(D(n,"Malformed comment"),n.comment+="--"+s,n.state=C.COMMENT):n.doctype&&!0!==n.doctype?n.state=C.DOCTYPE_DTD:n.state=C.TEXT;continue;case C.CDATA:for(o=r-1;s&&"]"!==s;)(s=V(e,r++))&&n.trackPosition&&(n.position++,"\n"===s?(n.line++,n.column=0):n.column++);n.cdata+=e.substring(o,r-1),"]"===s&&(n.state=C.CDATA_ENDING);continue;case C.CDATA_ENDING:"]"===s?n.state=C.CDATA_ENDING_2:(n.cdata+="]"+s,n.state=C.CDATA);continue;case C.CDATA_ENDING_2:">"===s?(n.cdata&&O(n,"oncdata",n.cdata),O(n,"onclosecdata"),n.cdata="",n.state=C.TEXT):"]"===s?n.cdata+="]":(n.cdata+="]]"+s,n.state=C.CDATA);continue;case C.PROC_INST:"?"===s?n.state=C.PROC_INST_ENDING:m(s)?n.state=C.PROC_INST_BODY:n.procInstName+=s;continue;case C.PROC_INST_BODY:if(!n.procInstBody&&m(s))continue;"?"===s?n.state=C.PROC_INST_ENDING:n.procInstBody+=s;continue;case C.PROC_INST_ENDING:if(">"===s){const t={name:n.procInstName,body:n.procInstBody};T(n,t),O(n,"onprocessinginstruction",t),n.procInstName=n.procInstBody="",n.state=C.TEXT}else n.procInstBody+="?"+s,n.state=C.PROC_INST_BODY;continue;case C.OPEN_TAG:v(p,s)?n.tagName+=s:(R(n),">"===s?U(n):"/"===s?n.state=C.OPEN_TAG_SLASH:(m(s)||D(n,"Invalid character in tag name"),n.state=C.ATTRIB));continue;case C.OPEN_TAG_SLASH:">"===s?(U(n,!0),z(n)):(D(n,"Forward-slash in opening tag not followed by >"),n.state=C.ATTRIB);continue;case C.ATTRIB:if(m(s))continue;">"===s?U(n):"/"===s?n.state=C.OPEN_TAG_SLASH:v(d,s)?(n.attribName=s,n.attribValue="",n.state=C.ATTRIB_NAME):D(n,"Invalid attribute name");continue;case C.ATTRIB_NAME:"="===s?n.state=C.ATTRIB_VALUE:">"===s?(D(n,"Attribute without value"),n.attribValue=n.attribName,F(n),U(n)):m(s)?n.state=C.ATTRIB_NAME_SAW_WHITE:v(p,s)?n.attribName+=s:D(n,"Invalid attribute name");continue;case C.ATTRIB_NAME_SAW_WHITE:if("="===s)n.state=C.ATTRIB_VALUE;else{if(m(s))continue;D(n,"Attribute without value"),n.tag.attributes[n.attribName]="",n.attribValue="",O(n,"onattribute",{name:n.attribName,value:""}),n.attribName="",">"===s?U(n):v(d,s)?(n.attribName=s,n.state=C.ATTRIB_NAME):(D(n,"Invalid attribute name"),n.state=C.ATTRIB)}continue;case C.ATTRIB_VALUE:if(m(s))continue;b(s)?(n.q=s,n.state=C.ATTRIB_VALUE_QUOTED):(n.opt.unquotedAttributeValues||B(n,"Unquoted attribute value"),n.state=C.ATTRIB_VALUE_UNQUOTED,n.attribValue=s);continue;case C.ATTRIB_VALUE_QUOTED:if(s!==n.q){"&"===s?n.state=C.ATTRIB_VALUE_ENTITY_Q:n.attribValue+=s;continue}F(n),n.q="",n.state=C.ATTRIB_VALUE_CLOSED;continue;case C.ATTRIB_VALUE_CLOSED:m(s)?n.state=C.ATTRIB:">"===s?U(n):"/"===s?n.state=C.OPEN_TAG_SLASH:v(d,s)?(D(n,"No whitespace between attributes"),n.attribName=s,n.attribValue="",n.state=C.ATTRIB_NAME):D(n,"Invalid attribute name");continue;case C.ATTRIB_VALUE_UNQUOTED:if(!w(s)){"&"===s?n.state=C.ATTRIB_VALUE_ENTITY_U:n.attribValue+=s;continue}F(n),">"===s?U(n):n.state=C.ATTRIB;continue;case C.CLOSE_TAG:if(n.tagName)">"===s?z(n):v(p,s)?n.tagName+=s:n.script?(n.script+=""===s?z(n):D(n,"Invalid characters in closing tag");continue;case C.TEXT_ENTITY:case C.ATTRIB_VALUE_ENTITY_Q:case C.ATTRIB_VALUE_ENTITY_U:var u,c;switch(n.state){case C.TEXT_ENTITY:u=C.TEXT,c="textNode";break;case C.ATTRIB_VALUE_ENTITY_Q:u=C.ATTRIB_VALUE_QUOTED,c="attribValue";break;case C.ATTRIB_VALUE_ENTITY_U:u=C.ATTRIB_VALUE_UNQUOTED,c="attribValue"}if(";"===s){var f=W(n);n.opt.unparsedEntities&&!Object.values(t.XML_ENTITIES).includes(f)?((n.entityCount+=1)>n.opt.maxEntityCount&&B(n,"Parsed entity count exceeds max entity count"),(n.entityDepth+=1)>n.opt.maxEntityDepth&&B(n,"Parsed entity depth exceeds max entity depth"),n.entity="",n.state=u,n.write(f),n.entityDepth-=1):(n[c]+=f,n.entity="",n.state=u)}else v(n.entity.length?y:g,s)?n.entity+=s:(D(n,"Invalid character in entity name"),n[c]+="&"+n.entity+s,n.entity="",n.state=u);continue;default:throw new Error(n,"Unknown state: "+n.state)}return n.position>=n.bufferCheckPosition&&function(e){for(var n=Math.max(t.MAX_BUFFER_LENGTH,10),r=0,s=0,o=i.length;sn)switch(i[s]){case"textNode":I(e);break;case"cdata":O(e,"oncdata",e.cdata),e.cdata="";break;case"script":O(e,"onscript",e.script),e.script="";break;default:B(e,"Max buffer length exceeded: "+i[s])}r=Math.max(r,a)}var l=t.MAX_BUFFER_LENGTH-r;e.bufferCheckPosition=l+e.position}(n),n},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var t;I(t=this),""!==t.cdata&&(O(t,"oncdata",t.cdata),t.cdata=""),""!==t.script&&(O(t,"onscript",t.script),t.script="")}};try{e=n(9760).Stream}catch(t){e=function(){}}e||(e=function(){});var o=t.EVENTS.filter((function(t){return"error"!==t&&"end"!==t}));function a(t,n){if(!(this instanceof a))return new a(t,n);e.apply(this),this._parser=new s(t,n),this.writable=!0,this.readable=!0;var r=this;this._parser.onend=function(){r.emit("end")},this._parser.onerror=function(t){r.emit("error",t),r._parser.error=null},this._decoder=null,this._decoderBuffer=null,o.forEach((function(t){Object.defineProperty(r,"on"+t,{get:function(){return r._parser["on"+t]},set:function(e){if(!e)return r.removeAllListeners(t),r._parser["on"+t]=e,e;r.on(t,e)},enumerable:!0,configurable:!1})}))}a.prototype=Object.create(e.prototype,{constructor:{value:a}}),a.prototype._decodeBuffer=function(t,e){if(this._decoderBuffer&&(t=r.concat([this._decoderBuffer,t]),this._decoderBuffer=null),!this._decoder){var n=function(t,e){if(t.length>=2){if(255===t[0]&&254===t[1])return"utf-16le";if(254===t[0]&&255===t[1])return"utf-16be"}return t.length>=3&&239===t[0]&&187===t[1]&&191===t[2]?"utf8":t.length>=4?60===t[0]&&0===t[1]&&63===t[2]&&0===t[3]?"utf-16le":0===t[0]&&60===t[1]&&0===t[2]&&63===t[3]?"utf-16be":"utf8":e?"utf8":null}(t,e);if(!n)return this._decoderBuffer=t,"";this._parser.encoding=n,this._decoder=new TextDecoder(n)}return this._decoder.decode(t,{stream:!e})},a.prototype.write=function(t){if("function"==typeof r&&"function"==typeof r.isBuffer&&r.isBuffer(t))t=this._decodeBuffer(t,!1);else if(this._decoderBuffer){var e=this._decodeBuffer(r.alloc(0),!0);e&&(this._parser.write(e),this.emit("data",e))}return this._parser.write(t.toString()),this.emit("data",t),!0},a.prototype.end=function(t){if(t&&t.length&&this.write(t),this._decoderBuffer){var e=this._decodeBuffer(r.alloc(0),!0);e&&(this._parser.write(e),this.emit("data",e))}else if(this._decoder){var n=this._decoder.decode();n&&(this._parser.write(n),this.emit("data",n))}return this._parser.end(),!0},a.prototype.on=function(t,n){var r=this;return r._parser["on"+t]||-1===o.indexOf(t)||(r._parser["on"+t]=function(){var e=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),r.emit.apply(r,e)}),e.prototype.on.call(r,t,n)};var l="[CDATA[",h="DOCTYPE",u="http://www.w3.org/XML/1998/namespace",c="http://www.w3.org/2000/xmlns/",f={xml:u,xmlns:c},d=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,p=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,g=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,y=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function m(t){return" "===t||"\n"===t||"\r"===t||"\t"===t}function b(t){return'"'===t||"'"===t}function w(t){return">"===t||m(t)}function v(t,e){return t.test(e)}function A(t,e){return!v(t,e)}var x,S,_,C=0;for(var k in t.STATE={BEGIN:C++,BEGIN_WHITESPACE:C++,TEXT:C++,TEXT_ENTITY:C++,OPEN_WAKA:C++,SGML_DECL:C++,SGML_DECL_QUOTED:C++,DOCTYPE:C++,DOCTYPE_QUOTED:C++,DOCTYPE_DTD:C++,DOCTYPE_DTD_QUOTED:C++,COMMENT_STARTING:C++,COMMENT:C++,COMMENT_ENDING:C++,COMMENT_ENDED:C++,CDATA:C++,CDATA_ENDING:C++,CDATA_ENDING_2:C++,PROC_INST:C++,PROC_INST_BODY:C++,PROC_INST_ENDING:C++,OPEN_TAG:C++,OPEN_TAG_SLASH:C++,ATTRIB:C++,ATTRIB_NAME:C++,ATTRIB_NAME_SAW_WHITE:C++,ATTRIB_VALUE:C++,ATTRIB_VALUE_QUOTED:C++,ATTRIB_VALUE_CLOSED:C++,ATTRIB_VALUE_UNQUOTED:C++,ATTRIB_VALUE_ENTITY_Q:C++,ATTRIB_VALUE_ENTITY_U:C++,CLOSE_TAG:C++,CLOSE_TAG_SAW_WHITE:C++,SCRIPT:C++,SCRIPT_ENDING:C++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach((function(e){var n=t.ENTITIES[e],r="number"==typeof n?String.fromCharCode(n):n;t.ENTITIES[e]=r})),t.STATE)t.STATE[t.STATE[k]]=k;function P(t,e,n){t[e]&&t[e](n)}function E(t){return t?t.toLowerCase().replace(/[^a-z0-9]/g,""):null}function T(t,e){if(t.strict&&t.encoding&&e&&"xml"===e.name){var n,r,i=(r=(n=e.body)&&n.match(/(?:^|\s)encoding\s*=\s*(['"])([^'"]+)\1/i))?r[2]:null;i&&!function(t,e){const n=E(t),r=E(e);return!n||!r||("utf16"===r?"utf16le"===n||"utf16be"===n:n===r)}(t.encoding,i)&&D(t,"XML declaration encoding "+i+" does not match detected stream encoding "+t.encoding.toUpperCase())}}function O(t,e,n){t.textNode&&I(t),P(t,e,n)}function I(t){t.textNode=L(t.opt,t.textNode),t.textNode&&P(t,"ontext",t.textNode),t.textNode=""}function L(t,e){return t.trim&&(e=e.trim()),t.normalize&&(e=e.replace(/\s+/g," ")),e}function B(t,e){return I(t),t.trackPosition&&(e+="\nLine: "+t.line+"\nColumn: "+t.column+"\nChar: "+t.c),e=new Error(e),t.error=e,P(t,"onerror",e),t}function M(t){return t.sawRoot&&!t.closedRoot&&D(t,"Unclosed root tag"),t.state!==C.BEGIN&&t.state!==C.BEGIN_WHITESPACE&&t.state!==C.TEXT&&B(t,"Unexpected end"),I(t),t.c="",t.closed=!0,P(t,"onend"),s.call(t,t.strict,t.opt),t}function D(t,e){if("object"!=typeof t||!(t instanceof s))throw new Error("bad call to strictFail");t.strict&&B(t,e)}function R(t){t.strict||(t.tagName=t.tagName[t.looseCase]());var e=t.tags[t.tags.length-1]||t,n=t.tag={name:t.tagName,attributes:{}};t.opt.xmlns&&(n.ns=e.ns),t.attribList.length=0,O(t,"onopentagstart",n)}function N(t,e){var n=t.indexOf(":")<0?["",t]:t.split(":"),r=n[0],i=n[1];return e&&"xmlns"===t&&(r="xmlns",i=""),{prefix:r,local:i}}function F(t){if(t.strict||(t.attribName=t.attribName[t.looseCase]()),-1!==t.attribList.indexOf(t.attribName)||t.tag.attributes.hasOwnProperty(t.attribName))t.attribName=t.attribValue="";else{if(t.opt.xmlns){var e=N(t.attribName,!0),n=e.prefix,r=e.local;if("xmlns"===n)if("xml"===r&&t.attribValue!==u)D(t,"xml: prefix must be bound to "+u+"\nActual: "+t.attribValue);else if("xmlns"===r&&t.attribValue!==c)D(t,"xmlns: prefix must be bound to "+c+"\nActual: "+t.attribValue);else{var i=t.tag,s=t.tags[t.tags.length-1]||t;i.ns===s.ns&&(i.ns=Object.create(s.ns)),i.ns[r]=t.attribValue}t.attribList.push([t.attribName,t.attribValue])}else t.tag.attributes[t.attribName]=t.attribValue,O(t,"onattribute",{name:t.attribName,value:t.attribValue});t.attribName=t.attribValue=""}}function U(t,e){if(t.opt.xmlns){var n=t.tag,r=N(t.tagName);n.prefix=r.prefix,n.local=r.local,n.uri=n.ns[r.prefix]||"",n.prefix&&!n.uri&&(D(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),n.uri=r.prefix);var i=t.tags[t.tags.length-1]||t;n.ns&&i.ns!==n.ns&&Object.keys(n.ns).forEach((function(e){O(t,"onopennamespace",{prefix:e,uri:n.ns[e]})}));for(var s=0,o=t.attribList.length;s",t.tagName="",void(t.state=C.SCRIPT);O(t,"onscript",t.script),t.script=""}var e=t.tags.length,n=t.tagName;t.strict||(n=n[t.looseCase]());for(var r=n;e--&&t.tags[e].name!==r;)D(t,"Unexpected close tag");if(e<0)return D(t,"Unmatched closing tag: "+t.tagName),t.textNode+="",void(t.state=C.TEXT);t.tagName=n;for(var i=t.tags.length;i-- >e;){var s=t.tag=t.tags.pop();t.tagName=t.tag.name,O(t,"onclosetag",t.tagName);var o={};for(var a in s.ns)o[a]=s.ns[a];var l=t.tags[t.tags.length-1]||t;t.opt.xmlns&&s.ns!==l.ns&&Object.keys(s.ns).forEach((function(e){var n=s.ns[e];O(t,"onclosenamespace",{prefix:e,uri:n})}))}0===e&&(t.closedRoot=!0),t.tagName=t.attribValue=t.attribName="",t.attribList.length=0,t.state=C.TEXT}function W(t){var e,n=t.entity,r=n.toLowerCase(),i="";return t.ENTITIES[n]?t.ENTITIES[n]:t.ENTITIES[r]?t.ENTITIES[r]:("#"===(n=r).charAt(0)&&("x"===n.charAt(1)?(n=n.slice(2),i=(e=parseInt(n,16)).toString(16)):(n=n.slice(1),i=(e=parseInt(n,10)).toString(10))),n=n.replace(/^0+/,""),isNaN(e)||i.toLowerCase()!==n||e<0||e>1114111?(D(t,"Invalid character entity"),"&"+t.entity+";"):String.fromCodePoint(e))}function j(t,e){"<"===e?(t.state=C.OPEN_WAKA,t.startTagPosition=t.position):m(e)||(D(t,"Non-whitespace before first tag."),t.textNode=e,t.state=C.TEXT)}function V(t,e){var n="";return e1114111||S(o)!==o)throw RangeError("Invalid code point: "+o);o<=65535?n.push(o):(t=55296+((o-=65536)>>10),e=o%1024+56320,n.push(t,e)),(r+1===i||n.length>16384)&&(s+=x.apply(null,n),n.length=0)}return s},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:_,configurable:!0,writable:!0}):String.fromCodePoint=_)}(e)},6255(t,e,n){"use strict";var r=n(8651),i=n(9295),s=n(8890)(),o=n(8109),a=n(6785),l=r("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new a("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||l(e)!==e)throw new a("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,h=!0;if("length"in t&&o){var u=o(t,"length");u&&!u.configurable&&(r=!1),u&&!u.writable&&(h=!1)}return(r||h||!n)&&(s?i(t,"length",e,!0,!0):i(t,"length",e)),t}},9760(t,e,n){t.exports=i;var r=n(4785).EventEmitter;function i(){r.call(this)}n(9784)(i,r),i.Readable=n(8261),i.Writable=n(9781),i.Duplex=n(4903),i.Transform=n(8569),i.PassThrough=n(7723),i.finished=n(2167),i.pipeline=n(3765),i.Stream=i,i.prototype.pipe=function(t,e){var n=this;function i(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function s(){n.readable&&n.resume&&n.resume()}n.on("data",i),t.on("drain",s),t._isStdio||e&&!1===e.end||(n.on("end",a),n.on("close",l));var o=!1;function a(){o||(o=!0,t.end())}function l(){o||(o=!0,"function"==typeof t.destroy&&t.destroy())}function h(t){if(u(),0===r.listenerCount(this,"error"))throw t}function u(){n.removeListener("data",i),t.removeListener("drain",s),n.removeListener("end",a),n.removeListener("close",l),n.removeListener("error",h),t.removeListener("error",h),n.removeListener("end",u),n.removeListener("close",u),t.removeListener("close",u)}return n.on("error",h),t.on("error",h),n.on("end",u),n.on("close",u),t.on("close",u),t.emit("pipe",n),t}},3797(t){"use strict";var e={};function n(t,n,r){r||(r=Error);var i=function(t){var e,r;function i(e,r,i){return t.call(this,function(t,e,r){return"string"==typeof n?n:n(t,e,r)}(e,r,i))||this}return r=t,(e=i).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,i}(r);i.prototype.name=r.name,i.prototype.code=t,e[t]=i}function r(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map((function(t){return String(t)})),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}n("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),n("ERR_INVALID_ARG_TYPE",(function(t,e,n){var i,s,o,a,l;if("string"==typeof e&&(s="not ",e.substr(0,4)===s)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-9,n)===e}(t," argument"))o="The ".concat(t," ").concat(i," ").concat(r(e,"type"));else{var h=("number"!=typeof l&&(l=0),l+1>(a=t).length||-1===a.indexOf(".",l)?"argument":"property");o='The "'.concat(t,'" ').concat(h," ").concat(i," ").concat(r(e,"type"))}return o+". Received type ".concat(typeof n)}),TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.F=e},4903(t,e,n){"use strict";var r=n(9964),i=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=u;var s=n(8261),o=n(9781);n(9784)(u,s);for(var a=i(o.prototype),l=0;l0)if("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===l.prototype||(e=function(t){return l.from(t)}(e)),r)a.endEmitted?x(t,new A):P(t,a,e,!0);else if(a.ended)x(t,new w);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?P(t,a,e,!1):L(t,a)):P(t,a,e,!1)}else r||(a.reading=!1,L(t,a));return!a.ended&&(a.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=E?t=E:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function O(t){var e=t._readableState;s("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(s("emitReadable",e.flowing),e.emittedReadable=!0,i.nextTick(I,t))}function I(t){var e=t._readableState;s("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,N(t)}function L(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(B,t,e))}function B(t,e){for(;!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function D(t){s("readable nexttick read 0"),t.read(0)}function R(t,e){s("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),N(t),e.flowing&&!e.reading&&t.read(0)}function N(t){var e=t._readableState;for(s("flow",e.flowing);e.flowing&&null!==t.read(););}function F(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n);var n}function U(t){var e=t._readableState;s("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,i.nextTick(z,e,t))}function z(t,e){if(s("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}function W(t,e){for(var n=0,r=t.length;n=e.highWaterMark:e.length>0)||e.ended))return s("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?U(this):O(this),null;if(0===(t=T(t,e))&&e.ended)return 0===e.length&&U(this),null;var r,i=e.needReadable;return s("need readable",i),(0===e.length||e.length-t0?F(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&U(this)),null!==r&&this.emit("data",r),r},C.prototype._read=function(t){x(this,new v("_read()"))},C.prototype.pipe=function(t,e){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=t;break;case 1:r.pipes=[r.pipes,t];break;default:r.pipes.push(t)}r.pipesCount+=1,s("pipe count=%d opts=%j",r.pipesCount,e);var a=e&&!1===e.end||t===i.stdout||t===i.stderr?g:l;function l(){s("onend"),t.end()}r.endEmitted?i.nextTick(a):n.once("end",a),t.on("unpipe",(function e(i,o){s("onunpipe"),i===n&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,s("cleanup"),t.removeListener("close",d),t.removeListener("finish",p),t.removeListener("drain",h),t.removeListener("error",f),t.removeListener("unpipe",e),n.removeListener("end",l),n.removeListener("end",g),n.removeListener("data",c),u=!0,!r.awaitDrain||t._writableState&&!t._writableState.needDrain||h())}));var h=function(t){return function(){var e=t._readableState;s("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,N(t))}}(n);t.on("drain",h);var u=!1;function c(e){s("ondata");var i=t.write(e);s("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===t||r.pipesCount>1&&-1!==W(r.pipes,t))&&!u&&(s("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function f(e){s("onerror",e),g(),t.removeListener("error",f),0===o(t,"error")&&x(t,e)}function d(){t.removeListener("finish",p),g()}function p(){s("onfinish"),t.removeListener("close",d),g()}function g(){s("unpipe"),n.unpipe(t)}return n.on("data",c),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",f),t.once("close",d),t.once("finish",p),t.emit("pipe",n),r.flowing||(s("pipe resume"),n.resume()),t},C.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s0,!1!==r.flowing&&this.resume()):"readable"===t&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,s("on readable",r.length,r.reading),r.length?O(this):r.reading||i.nextTick(D,this))),n},C.prototype.addListener=C.prototype.on,C.prototype.removeListener=function(t,e){var n=a.prototype.removeListener.call(this,t,e);return"readable"===t&&i.nextTick(M,this),n},C.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||i.nextTick(M,this),e},C.prototype.resume=function(){var t=this._readableState;return t.flowing||(s("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(R,t,e))}(this,t)),t.paused=!1,this},C.prototype.pause=function(){return s("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(s("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},C.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",(function(){if(s("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){s("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i||(n.objectMode||i&&i.length)&&(e.push(i)||(r=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o-1))throw new A(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(C.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(C.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),C.prototype._write=function(t,e,n){n(new g("_write()"))},C.prototype._writev=null,C.prototype.end=function(t,e,n){var r=this._writableState;return"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||function(t,e,n){e.ending=!0,I(t,e),n&&(e.finished?i.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}(this,r,n),this},Object.defineProperty(C.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(C.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),C.prototype.destroy=c.destroy,C.prototype._undestroy=c.undestroy,C.prototype._destroy=function(t,e){e(t)}},9676(t,e,n){"use strict";var r,i=n(9964);function s(t,e,n){return(e=function(t){var e=function(t){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(2167),a=Symbol("lastResolve"),l=Symbol("lastReject"),h=Symbol("error"),u=Symbol("ended"),c=Symbol("lastPromise"),f=Symbol("handlePromise"),d=Symbol("stream");function p(t,e){return{value:t,done:e}}function g(t){var e=t[a];if(null!==e){var n=t[d].read();null!==n&&(t[c]=null,t[a]=null,t[l]=null,e(p(n,!1)))}}function y(t){i.nextTick(g,t)}var m=Object.getPrototypeOf((function(){})),b=Object.setPrototypeOf((s(r={get stream(){return this[d]},next:function(){var t=this,e=this[h];if(null!==e)return Promise.reject(e);if(this[u])return Promise.resolve(p(void 0,!0));if(this[d].destroyed)return new Promise((function(e,n){i.nextTick((function(){t[h]?n(t[h]):e(p(void 0,!0))}))}));var n,r=this[c];if(r)n=new Promise(function(t,e){return function(n,r){t.then((function(){e[u]?n(p(void 0,!0)):e[f](n,r)}),r)}}(r,this));else{var s=this[d].read();if(null!==s)return Promise.resolve(p(s,!1));n=new Promise(this[f])}return this[c]=n,n}},Symbol.asyncIterator,(function(){return this})),s(r,"return",(function(){var t=this;return new Promise((function(e,n){t[d].destroy(null,(function(t){t?n(t):e(p(void 0,!0))}))}))})),r),m);t.exports=function(t){var e,n=Object.create(b,(s(e={},d,{value:t,writable:!0}),s(e,a,{value:null,writable:!0}),s(e,l,{value:null,writable:!0}),s(e,h,{value:null,writable:!0}),s(e,u,{value:t._readableState.endEmitted,writable:!0}),s(e,f,{value:function(t,e){var r=n[d].read();r?(n[c]=null,n[a]=null,n[l]=null,t(p(r,!1))):(n[a]=t,n[l]=e)},writable:!0}),e));return n[c]=null,o(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=n[l];return null!==e&&(n[c]=null,n[a]=null,n[l]=null,e(t)),void(n[h]=t)}var r=n[a];null!==r&&(n[c]=null,n[a]=null,n[l]=null,r(p(void 0,!0))),n[u]=!0})),t.on("readable",y.bind(null,n)),n}},7385(t,e,n){"use strict";var r=n(9964);function i(t,e){o(t,e),s(t)}function s(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function o(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var n=this,a=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return a||l?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(o,this,t)):r.nextTick(o,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?n._writableState?n._writableState.errorEmitted?r.nextTick(s,n):(n._writableState.errorEmitted=!0,r.nextTick(i,n,t)):r.nextTick(i,n,t):e?(r.nextTick(s,n),e(t)):r.nextTick(s,n)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var n=t._readableState,r=t._writableState;n&&n.autoDestroy||r&&r.autoDestroy?t.destroy(e):t.emit("error",e)}}},2167(t,e,n){"use strict";var r=n(3797).F.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function t(e,n,s){if("function"==typeof n)return t(e,null,n);n||(n={}),s=function(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,r=new Array(n),i=0;i0,(function(t){u||(u=t),t&&f.forEach(l),s||(f.forEach(l),c(u))}))}));return e.reduce(h)}},8130(t,e,n){"use strict";var r=n(3797).F.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,n,i){var s=function(t,e,n){return null!=t.highWaterMark?t.highWaterMark:e?t[n]:null}(e,i,n);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0)throw new r(i?n:"highWaterMark",s);return Math.floor(s)}return t.objectMode?16:16384}}},9018(t,e,n){t.exports=n(4785).EventEmitter},3143(t,e,n){"use strict";var r=n(5691).Buffer,i=r.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(r.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=l,this.end=h,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=u,this.end=c,e=3;break;default:return this.write=f,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function o(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,n=function(t,e){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function l(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function h(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function u(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function c(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function f(t){return t.toString(this.encoding)}function d(t){return t&&t.length?this.write(t):""}e.I=s,s.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0?(i>0&&(t.lastNeed=i-1),i):--r=0?(i>0&&(t.lastNeed=i-2),i):--r=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},s.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},3483(t){function e(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function n(t,n){this.source=t,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=n,this.destLen=0,this.ltree=new e,this.dtree=new e}var r=new e,i=new e,s=new Uint8Array(30),o=new Uint16Array(30),a=new Uint8Array(30),l=new Uint16Array(30),h=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),u=new e,c=new Uint8Array(320);function f(t,e,n,r){var i,s;for(i=0;i>>=1,e}function y(t,e,n){if(!e)return n;for(;t.bitcount<24;)t.tag|=t.source[t.sourceIndex++]<>>16-e;return t.tag>>>=e,t.bitcount-=e,r+n}function m(t,e){for(;t.bitcount<24;)t.tag|=t.source[t.sourceIndex++]<>>=1,++i,n+=e.table[i],r-=e.table[i]}while(r>=0);return t.tag=s,t.bitcount-=i,e.trans[n+r]}function b(t,e,n){var r,i,s,o,a,l;for(r=y(t,5,257),i=y(t,5,1),s=y(t,4,4),o=0;o<19;++o)c[o]=0;for(o=0;o8;)t.sourceIndex--,t.bitcount-=8;if((e=256*(e=t.source[t.sourceIndex+1])+t.source[t.sourceIndex])!==(65535&~(256*t.source[t.sourceIndex+3]+t.source[t.sourceIndex+2])))return-3;for(t.sourceIndex+=4,n=e;n;--n)t.dest[t.destLen++]=t.source[t.sourceIndex++];return t.bitcount=0,0}!function(t,e){var n;for(n=0;n<7;++n)t.table[n]=0;for(t.table[7]=24,t.table[8]=152,t.table[9]=112,n=0;n<24;++n)t.trans[n]=256+n;for(n=0;n<144;++n)t.trans[24+n]=n;for(n=0;n<8;++n)t.trans[168+n]=280+n;for(n=0;n<112;++n)t.trans[176+n]=144+n;for(n=0;n<5;++n)e.table[n]=0;for(e.table[5]=32,n=0;n<32;++n)e.trans[n]=n}(r,i),f(s,o,4,3),f(a,l,2,1),s[28]=0,o[28]=258,t.exports=function(t,e){var s,o,a=new n(t,e);do{switch(s=g(a),y(a,2,0)){case 0:o=v(a);break;case 1:o=w(a,r,i);break;case 2:b(a,a.ltree,a.dtree),o=w(a,a.ltree,a.dtree);break;default:o=-3}if(0!==o)throw new Error("Data error")}while(!s);return a.destLen=i)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}})),a=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(n)?r.showHidden=n:n&&e._extend(r,n),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),f(r,t,r.depth)}function u(t,e){var n=h.styles[e];return n?"["+h.colors[n][0]+"m"+t+"["+h.colors[n][1]+"m":t}function c(t,e){return t}function f(t,n,r){if(t.customInspect&&n&&C(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,t);return w(i)||(i=f(t,i,r)),i}var s=function(t,e){if(v(e))return t.stylize("undefined","undefined");if(w(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return b(e)?t.stylize(""+e,"number"):y(e)?t.stylize(""+e,"boolean"):m(e)?t.stylize("null","null"):void 0}(t,n);if(s)return s;var o=Object.keys(n),a=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(n)),_(n)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return d(n);if(0===o.length){if(C(n)){var l=n.name?": "+n.name:"";return t.stylize("[Function"+l+"]","special")}if(A(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(S(n))return t.stylize(Date.prototype.toString.call(n),"date");if(_(n))return d(n)}var h,u="",c=!1,x=["{","}"];return g(n)&&(c=!0,x=["[","]"]),C(n)&&(u=" [Function"+(n.name?": "+n.name:"")+"]"),A(n)&&(u=" "+RegExp.prototype.toString.call(n)),S(n)&&(u=" "+Date.prototype.toUTCString.call(n)),_(n)&&(u=" "+d(n)),0!==o.length||c&&0!=n.length?r<0?A(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),h=c?function(t,e,n,r,i){for(var s=[],o=0,a=e.length;o60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}(h,u,x)):x[0]+u+x[1]}function d(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,n,r,i,s){var o,a,l;if((l=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=l.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):l.set&&(a=t.stylize("[Setter]","special")),T(r,i)||(o="["+i+"]"),a||(t.seen.indexOf(l.value)<0?(a=m(n)?f(t,l.value,null):f(t,l.value,n-1)).indexOf("\n")>-1&&(a=s?a.split("\n").map((function(t){return" "+t})).join("\n").slice(2):"\n"+a.split("\n").map((function(t){return" "+t})).join("\n")):a=t.stylize("[Circular]","special")),v(o)){if(s&&i.match(/^\d+$/))return a;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+a}function g(t){return Array.isArray(t)}function y(t){return"boolean"==typeof t}function m(t){return null===t}function b(t){return"number"==typeof t}function w(t){return"string"==typeof t}function v(t){return void 0===t}function A(t){return x(t)&&"[object RegExp]"===k(t)}function x(t){return"object"==typeof t&&null!==t}function S(t){return x(t)&&"[object Date]"===k(t)}function _(t){return x(t)&&("[object Error]"===k(t)||t instanceof Error)}function C(t){return"function"==typeof t}function k(t){return Object.prototype.toString.call(t)}function P(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!o[t])if(a.test(t)){var n=r.pid;o[t]=function(){var r=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,r)}}else o[t]=function(){};return o[t]},e.inspect=h,h.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},h.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=n(9490),e.isArray=g,e.isBoolean=y,e.isNull=m,e.isNullOrUndefined=function(t){return null==t},e.isNumber=b,e.isString=w,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=v,e.isRegExp=A,e.types.isRegExp=A,e.isObject=x,e.isDate=S,e.types.isDate=S,e.isError=_,e.types.isNativeError=_,e.isFunction=C,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=n(1201);var E=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,n;console.log("%s - %s",(n=[P((t=new Date).getHours()),P(t.getMinutes()),P(t.getSeconds())].join(":"),[t.getDate(),E[t.getMonth()],n].join(" ")),e.format.apply(e,arguments))},e.inherits=n(9784),e._extend=function(t,e){if(!e||!x(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t};var O="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function I(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(O&&t[O]){var e;if("function"!=typeof(e=t[O]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,O,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,n,r=new Promise((function(t,r){e=t,n=r})),i=[],s=0;s-1}(e)?e:"Object"===e&&function(t){var e=!1;return r(g,(function(n,r){if(!e)try{n(t),e=d(r,1)}catch(t){}})),e}(t)}return a?function(t){var e=!1;return r(g,(function(n,r){if(!e)try{"$"+n(t)===r&&(e=d(r,1))}catch(t){}})),e}(t):null}},5127(t,e,n){var r,i;void 0===(i="function"==typeof(r=function(){"use strict";function e(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){a(r.response,e,n)},r.onerror=function(){console.error("could not download file")},r.send()}function r(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function i(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){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 s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,o=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),a=s.saveAs||("object"!=typeof window||window!==s?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype&&!o?function(t,n,o){var a=s.URL||s.webkitURL,l=document.createElement("a");n=n||t.name||"download",l.download=n,l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?i(l):r(l.href)?e(t,n,o):i(l,l.target="_blank")):(l.href=a.createObjectURL(t),setTimeout((function(){a.revokeObjectURL(l.href)}),4e4),setTimeout((function(){i(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,n,s){if(n=n||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,s),n);else if(r(t))e(t,n,s);else{var o=document.createElement("a");o.href=t,o.target="_blank",setTimeout((function(){i(o)}))}}:function(t,n,r,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return e(t,n,r);var a="application/octet-stream"===t.type,l=/constructor/i.test(s.HTMLElement)||s.safari,h=/CriOS\/[\d]+/.test(navigator.userAgent);if((h||a&&l||o)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var t=u.result;t=h?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},u.readAsDataURL(t)}else{var c=s.URL||s.webkitURL,f=c.createObjectURL(t);i?i.location=f:location.href=f,i=null,setTimeout((function(){c.revokeObjectURL(f)}),4e4)}});s.saveAs=a.saveAs=a,t.exports=a})?r.apply(e,[]):r)||(t.exports=i)},6274(){},8535(){},3779(){},7199(){},5117(t){"use strict";t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},4074(t,e,n){"use strict";var r,i,s,o=n(5117),a=n(5144),l=n(7756),h=n(8681),u=n(3598),c=n(6341),f=n(9391),d=n(8819),p=n(5719),g=n(4092),y=n(1182),m=n(9877),b=n(8607),w=n(443),v=n(8663),A=n(6044),x=n(6921),S=x.enforce,_=x.get,C=l.Int8Array,k=C&&C.prototype,P=l.Uint8ClampedArray,E=P&&P.prototype,T=C&&b(C),O=k&&b(k),I=Object.prototype,L=l.TypeError,B=v("toStringTag"),M=A("TYPED_ARRAY_TAG"),D="TypedArrayConstructor",R=o&&!!w&&"Opera"!==f(l.opera),N=!1,F={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},U={BigInt64Array:8,BigUint64Array:8},z=function(t){var e=b(t);if(u(e)){var n=_(e);return n&&c(n,D)?n[D]:z(e)}},W=function(t){if(!u(t))return!1;var e=f(t);return c(F,e)||c(U,e)};for(r in F)(s=(i=l[r])&&i.prototype)?S(s)[D]=i:R=!1;for(r in U)(s=(i=l[r])&&i.prototype)&&(S(s)[D]=i);if((!R||!h(T)||T===Function.prototype)&&(T=function(){throw new L("Incorrect invocation")},R))for(r in F)l[r]&&w(l[r],T);if((!R||!O||O===I)&&(O=T.prototype,R))for(r in F)l[r]&&w(l[r].prototype,O);if(R&&b(E)!==O&&w(E,O),a&&!c(O,B))for(r in N=!0,y(O,B,{configurable:!0,get:function(){return u(this)?this[M]:void 0}}),F)l[r]&&p(l[r].prototype,M,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:R,TYPED_ARRAY_TAG:N&&M,aTypedArray:function(t){if(W(t))return t;throw new L("Target is not a typed array")},aTypedArrayConstructor:function(t){if(h(t)&&(!w||m(T,t)))return t;throw new L(d(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,e,n,r){if(a){if(n)for(var i in F){var s=l[i];if(s&&c(s.prototype,t))try{delete s.prototype[t]}catch(n){try{s.prototype[t]=e}catch(t){}}}O[t]&&!n||g(O,t,n?e:R&&k[t]||e,r)}},exportTypedArrayStaticMethod:function(t,e,n){var r,i;if(a){if(w){if(n)for(r in F)if((i=l[r])&&c(i,t))try{delete i[t]}catch(t){}if(T[t]&&!n)return;try{return g(T,t,n?e:R&&T[t]||e)}catch(t){}}for(r in F)!(i=l[r])||i[t]&&!n||g(i,t,e)}},getTypedArrayConstructor:z,isView:function(t){if(!u(t))return!1;var e=f(t);return"DataView"===e||c(F,e)||c(U,e)},isTypedArray:W,TypedArray:T,TypedArrayPrototype:O}},4415(t,e){"use strict";e._=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},8395(t,e,n){"use strict";e._=n(1635).__decorate},821(t,e,n){"use strict";var r=n(884),i="undefined"==typeof globalThis?n.g:globalThis;t.exports=function(){for(var t=[],e=0;e1?arguments[1]:void 0,n),l=o>2?arguments[2]:void 0,h=void 0===l?n:i(l,n);h>a;)e[a++]=t;return e}},789(t,e,n){"use strict";var r=n(5137),i=n(4918),s=n(4730),o=function(t){return function(e,n,o){var a=r(e),l=s(a);if(0===l)return!t&&-1;var h,u=i(o,l);if(t&&n!=n){for(;l>u;)if((h=a[u++])!=h)return!0}else for(;l>u;u++)if((t||u in a)&&a[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},2740(t,e,n){"use strict";var r=n(1212);t.exports=r([].slice)},644(t,e,n){"use strict";var r=n(2740),i=Math.floor,s=function(t,e){var n=t.length;if(n<8)for(var o,a,l=1;l0;)t[a]=t[--a];a!==l++&&(t[a]=o)}else for(var h=i(n/2),u=s(r(t,0,h),e),c=s(r(t,h),e),f=u.length,d=c.length,p=0,g=0;p0&&r[0]<4?1:+(r[0]+r[1])),!i&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},4507(t,e,n){"use strict";var r=n(8115).match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},3762(t,e,n){"use strict";var r=n(7756),i=n(423).f,s=n(5719),o=n(4092),a=n(7309),l=n(8032),h=n(5888);t.exports=function(t,e){var n,u,c,f,d,p=t.target,g=t.global,y=t.stat;if(n=g?r:y?r[p]||a(p,{}):r[p]&&r[p].prototype)for(u in e){if(f=e[u],c=t.dontCallGetSet?(d=i(n,u))&&d.value:n[u],!h(g?u:p+(y?".":"#")+u,t.forced)&&void 0!==c){if(typeof f==typeof c)continue;l(f,c)}(t.sham||c&&c.sham)&&s(f,"sham",!0),o(n,u,f,t)}}},299(t){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},1676(t,e,n){"use strict";var r=n(299);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},8993(t,e,n){"use strict";var r=n(1676),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},4378(t,e,n){"use strict";var r=n(5144),i=n(6341),s=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,a=i(s,"name"),l=a&&"something"===function(){}.name,h=a&&(!r||r&&o(s,"name").configurable);t.exports={EXISTS:a,PROPER:l,CONFIGURABLE:h}},4494(t,e,n){"use strict";var r=n(1212),i=n(1078);t.exports=function(t,e,n){try{return r(i(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}},5336(t,e,n){"use strict";var r=n(8420),i=n(1212);t.exports=function(t){if("Function"===r(t))return i(t)}},1212(t,e,n){"use strict";var r=n(1676),i=Function.prototype,s=i.call,o=r&&i.bind.bind(s,s);t.exports=r?o:function(t){return function(){return s.apply(t,arguments)}}},7139(t,e,n){"use strict";var r=n(7756),i=n(8681);t.exports=function(t,e){return arguments.length<2?(n=r[t],i(n)?n:void 0):r[t]&&r[t][e];var n}},9738(t,e,n){"use strict";var r=n(1078),i=n(6297);t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},7756(t,e,n){"use strict";var r=function(t){return t&&t.Math===Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},6341(t,e,n){"use strict";var r=n(1212),i=n(3297),s=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return s(i(t),e)}},2993(t){"use strict";t.exports={}},4329(t,e,n){"use strict";var r=n(7139);t.exports=r("document","documentElement")},7657(t,e,n){"use strict";var r=n(5144),i=n(299),s=n(2283);t.exports=!r&&!i((function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))},2203(t,e,n){"use strict";var r=n(1212),i=n(299),s=n(8420),o=Object,a=r("".split);t.exports=i((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"===s(t)?a(t,""):o(t)}:o},4550(t,e,n){"use strict";var r=n(1212),i=n(8681),s=n(3793),o=r(Function.toString);i(s.inspectSource)||(s.inspectSource=function(t){return o(t)}),t.exports=s.inspectSource},6921(t,e,n){"use strict";var r,i,s,o=n(1194),a=n(7756),l=n(3598),h=n(5719),u=n(6341),c=n(3793),f=n(7099),d=n(2993),p="Object already initialized",g=a.TypeError,y=a.WeakMap;if(o||c.state){var m=c.state||(c.state=new y);m.get=m.get,m.has=m.has,m.set=m.set,r=function(t,e){if(m.has(t))throw new g(p);return e.facade=t,m.set(t,e),e},i=function(t){return m.get(t)||{}},s=function(t){return m.has(t)}}else{var b=f("state");d[b]=!0,r=function(t,e){if(u(t,b))throw new g(p);return e.facade=t,h(t,b,e),e},i=function(t){return u(t,b)?t[b]:{}},s=function(t){return u(t,b)}}t.exports={set:r,get:i,has:s,enforce:function(t){return s(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!l(e)||(n=i(e)).type!==t)throw new g("Incompatible receiver, "+t+" required");return n}}}},8468(t,e,n){"use strict";var r=n(8420);t.exports=Array.isArray||function(t){return"Array"===r(t)}},8681(t){"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},5888(t,e,n){"use strict";var r=n(299),i=n(8681),s=/#|\.prototype\./,o=function(t,e){var n=l[a(t)];return n===u||n!==h&&(i(e)?r(e):!!e)},a=o.normalize=function(t){return String(t).replace(s,".").toLowerCase()},l=o.data={},h=o.NATIVE="N",u=o.POLYFILL="P";t.exports=o},6297(t){"use strict";t.exports=function(t){return null==t}},3598(t,e,n){"use strict";var r=n(8681);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},2657(t,e,n){"use strict";var r=n(3598);t.exports=function(t){return r(t)||null===t}},7695(t){"use strict";t.exports=!1},5985(t,e,n){"use strict";var r=n(7139),i=n(8681),s=n(9877),o=n(8300),a=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&s(e.prototype,a(t))}},4730(t,e,n){"use strict";var r=n(8266);t.exports=function(t){return r(t.length)}},3383(t,e,n){"use strict";var r=n(1212),i=n(299),s=n(8681),o=n(6341),a=n(5144),l=n(4378).CONFIGURABLE,h=n(4550),u=n(6921),c=u.enforce,f=u.get,d=String,p=Object.defineProperty,g=r("".slice),y=r("".replace),m=r([].join),b=a&&!i((function(){return 8!==p((function(){}),"length",{value:8}).length})),w=String(String).split("String"),v=t.exports=function(t,e,n){"Symbol("===g(d(e),0,7)&&(e="["+y(d(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!o(t,"name")||l&&t.name!==e)&&(a?p(t,"name",{value:e,configurable:!0}):t.name=e),b&&n&&o(n,"arity")&&t.length!==n.arity&&p(t,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?a&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=c(t);return o(r,"source")||(r.source=m(w,"string"==typeof e?e:"")),t};Function.prototype.toString=v((function(){return s(this)&&f(this).source||h(this)}),"toString")},2537(t){"use strict";var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},4860(t,e,n){"use strict";var r,i=n(2091),s=n(2197),o=n(2555),a=n(2993),l=n(4329),h=n(2283),u=n(7099),c="prototype",f="script",d=u("IE_PROTO"),p=function(){},g=function(t){return"<"+f+">"+t+""},y=function(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e},m=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;m="undefined"!=typeof document?document.domain&&r?y(r):(e=h("iframe"),n="java"+f+":",e.style.display="none",l.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(g("document.F=Object")),t.close(),t.F):y(r);for(var i=o.length;i--;)delete m[c][o[i]];return m()};a[d]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p[c]=i(t),n=new p,p[c]=null,n[d]=t):n=m(),void 0===e?n:s.f(n,e)}},2197(t,e,n){"use strict";var r=n(5144),i=n(2538),s=n(2333),o=n(2091),a=n(5137),l=n(9428);e.f=r&&!i?Object.defineProperties:function(t,e){o(t);for(var n,r=a(e),i=l(e),h=i.length,u=0;h>u;)s.f(t,n=i[u++],r[n]);return t}},2333(t,e,n){"use strict";var r=n(5144),i=n(7657),s=n(2538),o=n(2091),a=n(1413),l=TypeError,h=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c="enumerable",f="configurable",d="writable";e.f=r?s?function(t,e,n){if(o(t),e=a(e),o(n),"function"==typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]){var r=u(t,e);r&&r[d]&&(t[e]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:c in n?n[c]:r[c],writable:!1})}return h(t,e,n)}:h:function(t,e,n){if(o(t),e=a(e),o(n),i)try{return h(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},423(t,e,n){"use strict";var r=n(5144),i=n(8993),s=n(4961),o=n(8264),a=n(5137),l=n(1413),h=n(6341),u=n(7657),c=Object.getOwnPropertyDescriptor;e.f=r?c:function(t,e){if(t=a(t),e=l(e),u)try{return c(t,e)}catch(t){}if(h(t,e))return o(!i(s.f,t,e),t[e])}},5412(t,e,n){"use strict";var r=n(3120),i=n(2555).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},4073(t,e){"use strict";e.f=Object.getOwnPropertySymbols},8607(t,e,n){"use strict";var r=n(6341),i=n(8681),s=n(3297),o=n(7099),a=n(5071),l=o("IE_PROTO"),h=Object,u=h.prototype;t.exports=a?h.getPrototypeOf:function(t){var e=s(t);if(r(e,l))return e[l];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof h?u:null}},9877(t,e,n){"use strict";var r=n(1212);t.exports=r({}.isPrototypeOf)},3120(t,e,n){"use strict";var r=n(1212),i=n(6341),s=n(5137),o=n(789).indexOf,a=n(2993),l=r([].push);t.exports=function(t,e){var n,r=s(t),h=0,u=[];for(n in r)!i(a,n)&&i(r,n)&&l(u,n);for(;e.length>h;)i(r,n=e[h++])&&(~o(u,n)||l(u,n));return u}},9428(t,e,n){"use strict";var r=n(3120),i=n(2555);t.exports=Object.keys||function(t){return r(t,i)}},4961(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},443(t,e,n){"use strict";var r=n(4494),i=n(3598),s=n(5034),o=n(7222);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return s(n),o(r),i(n)?(e?t(n,r):n.__proto__=r,n):n}}():void 0)},290(t,e,n){"use strict";var r=n(8993),i=n(8681),s=n(3598),o=TypeError;t.exports=function(t,e){var n,a;if("string"===e&&i(n=t.toString)&&!s(a=r(n,t)))return a;if(i(n=t.valueOf)&&!s(a=r(n,t)))return a;if("string"!==e&&i(n=t.toString)&&!s(a=r(n,t)))return a;throw new o("Can't convert object to primitive value")}},7523(t,e,n){"use strict";var r=n(7139),i=n(1212),s=n(5412),o=n(4073),a=n(2091),l=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=s.f(a(t)),n=o.f;return n?l(e,n(t)):e}},5034(t,e,n){"use strict";var r=n(6297),i=TypeError;t.exports=function(t){if(r(t))throw new i("Can't call method on "+t);return t}},7099(t,e,n){"use strict";var r=n(997),i=n(6044),s=r("keys");t.exports=function(t){return s[t]||(s[t]=i(t))}},3793(t,e,n){"use strict";var r=n(7695),i=n(7756),s=n(7309),o="__core-js_shared__",a=t.exports=i[o]||s(o,{});(a.versions||(a.versions=[])).push({version:"3.49.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},997(t,e,n){"use strict";var r=n(3793);t.exports=function(t,e){return r[t]||(r[t]=e||{})}},4483(t,e,n){"use strict";var r=n(2227),i=n(299),s=n(7756).String;t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol("symbol detection");return!s(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},4918(t,e,n){"use strict";var r=n(2119),i=Math.max,s=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):s(n,e)}},3018(t,e,n){"use strict";var r=n(3301),i=TypeError;t.exports=function(t){var e=r(t,"number");if("number"==typeof e)throw new i("Can't convert number to bigint");return BigInt(e)}},5137(t,e,n){"use strict";var r=n(2203),i=n(5034);t.exports=function(t){return r(i(t))}},2119(t,e,n){"use strict";var r=n(2537);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},8266(t,e,n){"use strict";var r=n(2119),i=Math.min;t.exports=function(t){var e=r(t);return e>0?i(e,9007199254740991):0}},3297(t,e,n){"use strict";var r=n(5034),i=Object;t.exports=function(t){return i(r(t))}},4001(t,e,n){"use strict";var r=n(7866),i=RangeError;t.exports=function(t,e){var n=r(t);if(n%e)throw new i("Wrong offset");return n}},7866(t,e,n){"use strict";var r=n(2119),i=RangeError;t.exports=function(t){var e=r(t);if(e<0)throw new i("The argument can't be less than 0");return e}},3301(t,e,n){"use strict";var r=n(8993),i=n(3598),s=n(5985),o=n(9738),a=n(290),l=n(8663),h=TypeError,u=l("toPrimitive");t.exports=function(t,e){if(!i(t)||s(t))return t;var n,l=o(t,u);if(l){if(void 0===e&&(e="default"),n=r(l,t,e),!i(n)||s(n))return n;throw new h("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},1413(t,e,n){"use strict";var r=n(3301),i=n(5985);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},7920(t,e,n){"use strict";var r={};r[n(8663)("toStringTag")]="z",t.exports="[object z]"===String(r)},8819(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},6044(t,e,n){"use strict";var r=n(1212),i=0,s=Math.random(),o=r(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++i+s,36)}},8300(t,e,n){"use strict";var r=n(4483);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},2538(t,e,n){"use strict";var r=n(5144),i=n(299);t.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1194(t,e,n){"use strict";var r=n(7756),i=n(8681),s=r.WeakMap;t.exports=i(s)&&/native code/.test(String(s))},8663(t,e,n){"use strict";var r=n(7756),i=n(997),s=n(6341),o=n(6044),a=n(4483),l=n(8300),h=r.Symbol,u=i("wks"),c=l?h.for||h:h&&h.withoutSetter||o;t.exports=function(t){return s(u,t)||(u[t]=a&&s(h,t)?h[t]:c("Symbol."+t)),u[t]}},187(t,e,n){"use strict";var r=n(3762),i=n(789).includes,s=n(299),o=n(1825),a=s((function(){return!Array(1).includes()})),l=s((function(){return[,1].includes(void 0,1)}));r({target:"Array",proto:!0,forced:a||l},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},8376(t,e,n){"use strict";var r=n(4074),i=n(3161),s=n(3018),o=n(9391),a=n(8993),l=n(1212),h=n(299),u=r.aTypedArray,c=r.exportTypedArrayMethod,f=l("".slice);c("fill",(function(t){var e=arguments.length;u(this);var n="Big"===f(o(this),0,3)?s(t):+t;return a(i,this,n,e>1?arguments[1]:void 0,e>2?arguments[2]:void 0)}),h((function(){var t=0;return new Int8Array(2).fill({valueOf:function(){return t++}}),1!==t})))},6401(t,e,n){"use strict";var r=n(7756),i=n(8993),s=n(4074),o=n(4730),a=n(4001),l=n(3297),h=n(299),u=r.RangeError,c=r.Int8Array,f=c&&c.prototype,d=f&&f.set,p=s.aTypedArray,g=s.exportTypedArrayMethod,y=!h((function(){var t=new Uint8ClampedArray(2);return i(d,t,{length:1,0:3},1),3!==t[1]})),m=y&&s.NATIVE_ARRAY_BUFFER_VIEWS&&h((function(){var t=new c(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));g("set",(function(t){p(this);var e=a(arguments.length>1?arguments[1]:void 0,1),n=l(t);if(y)return i(d,this,n,e);var r=this.length,s=o(n),h=0;if(s+e>r)throw new u("Wrong length");for(;h0?1/n>0?0:1:1/n>0?-1:0:e>n?1:ey)),d(g,"registerFormat",(()=>b)),d(g,"create",(()=>w)),d(g,"defaultLanguage",(()=>v)),d(g,"setDefaultLanguage",(()=>A));let y=!1,m=[];function b(t){m.push(t)}function w(t,e){for(let n=0;n0?e[0]:"value";if(n.has(r))return n.get(r);let i=t.apply(this,e);return n.set(r,i),i}return Object.defineProperty(this,e,{value:r}),r}}}}let S=new r.Struct({firstCode:r.uint16,entryCount:r.uint16,idDelta:r.int16,idRangeOffset:r.uint16}),_=new r.Struct({startCharCode:r.uint32,endCharCode:r.uint32,glyphID:r.uint32}),C=new r.Struct({startUnicodeValue:r.uint24,additionalCount:r.uint8}),k=new r.Struct({unicodeValue:r.uint24,glyphID:r.uint16}),P=new r.Array(C,r.uint32),E=new r.Array(k,r.uint32),T=new r.Struct({varSelector:r.uint24,defaultUVS:new r.Pointer(r.uint32,P,{type:"parent"}),nonDefaultUVS:new r.Pointer(r.uint32,E,{type:"parent"})}),O=new r.VersionedStruct(r.uint16,{0:{length:r.uint16,language:r.uint16,codeMap:new r.LazyArray(r.uint8,256)},2:{length:r.uint16,language:r.uint16,subHeaderKeys:new r.Array(r.uint16,256),subHeaderCount:t=>Math.max.apply(Math,t.subHeaderKeys),subHeaders:new r.LazyArray(S,"subHeaderCount"),glyphIndexArray:new r.LazyArray(r.uint16,"subHeaderCount")},4:{length:r.uint16,language:r.uint16,segCountX2:r.uint16,segCount:t=>t.segCountX2>>1,searchRange:r.uint16,entrySelector:r.uint16,rangeShift:r.uint16,endCode:new r.LazyArray(r.uint16,"segCount"),reservedPad:new r.Reserved(r.uint16),startCode:new r.LazyArray(r.uint16,"segCount"),idDelta:new r.LazyArray(r.int16,"segCount"),idRangeOffset:new r.LazyArray(r.uint16,"segCount"),glyphIndexArray:new r.LazyArray(r.uint16,(t=>(t.length-t._currentOffset)/2))},6:{length:r.uint16,language:r.uint16,firstCode:r.uint16,entryCount:r.uint16,glyphIndices:new r.LazyArray(r.uint16,"entryCount")},8:{reserved:new r.Reserved(r.uint16),length:r.uint32,language:r.uint16,is32:new r.LazyArray(r.uint8,8192),nGroups:r.uint32,groups:new r.LazyArray(_,"nGroups")},10:{reserved:new r.Reserved(r.uint16),length:r.uint32,language:r.uint32,firstCode:r.uint32,entryCount:r.uint32,glyphIndices:new r.LazyArray(r.uint16,"numChars")},12:{reserved:new r.Reserved(r.uint16),length:r.uint32,language:r.uint32,nGroups:r.uint32,groups:new r.LazyArray(_,"nGroups")},13:{reserved:new r.Reserved(r.uint16),length:r.uint32,language:r.uint32,nGroups:r.uint32,groups:new r.LazyArray(_,"nGroups")},14:{length:r.uint32,numRecords:r.uint32,varSelectors:new r.LazyArray(T,"numRecords")}}),I=new r.Struct({platformID:r.uint16,encodingID:r.uint16,table:new r.Pointer(r.uint32,O,{type:"parent",lazy:!0})});var L=new r.Struct({version:r.uint16,numSubtables:r.uint16,tables:new r.Array(I,"numSubtables")}),B=new r.Struct({version:r.int32,revision:r.int32,checkSumAdjustment:r.uint32,magicNumber:r.uint32,flags:r.uint16,unitsPerEm:r.uint16,created:new r.Array(r.int32,2),modified:new r.Array(r.int32,2),xMin:r.int16,yMin:r.int16,xMax:r.int16,yMax:r.int16,macStyle:new r.Bitfield(r.uint16,["bold","italic","underline","outline","shadow","condensed","extended"]),lowestRecPPEM:r.uint16,fontDirectionHint:r.int16,indexToLocFormat:r.int16,glyphDataFormat:r.int16}),M=new r.Struct({version:r.int32,ascent:r.int16,descent:r.int16,lineGap:r.int16,advanceWidthMax:r.uint16,minLeftSideBearing:r.int16,minRightSideBearing:r.int16,xMaxExtent:r.int16,caretSlopeRise:r.int16,caretSlopeRun:r.int16,caretOffset:r.int16,reserved:new r.Reserved(r.int16,4),metricDataFormat:r.int16,numberOfMetrics:r.uint16});let D=new r.Struct({advance:r.uint16,bearing:r.int16});var R=new r.Struct({metrics:new r.LazyArray(D,(t=>t.parent.hhea.numberOfMetrics)),bearings:new r.LazyArray(r.int16,(t=>t.parent.maxp.numGlyphs-t.parent.hhea.numberOfMetrics))}),N=new r.Struct({version:r.int32,numGlyphs:r.uint16,maxPoints:r.uint16,maxContours:r.uint16,maxComponentPoints:r.uint16,maxComponentContours:r.uint16,maxZones:r.uint16,maxTwilightPoints:r.uint16,maxStorage:r.uint16,maxFunctionDefs:r.uint16,maxInstructionDefs:r.uint16,maxStackElements:r.uint16,maxSizeOfInstructions:r.uint16,maxComponentElements:r.uint16,maxComponentDepth:r.uint16});function F(t,e,n=0){return 1===t&&H[n]?H[n]:V[t][e]}const U=new Set(["x-mac-roman","x-mac-cyrillic","iso-8859-6","iso-8859-8"]),z={"x-mac-croatian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ","x-mac-gaelic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ","x-mac-greek":"Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­","x-mac-icelandic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-inuit":"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł","x-mac-ce":"ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ","x-mac-romanian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-turkish":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ"},W=new Map;function j(t){let e=W.get(t);if(e)return e;let n=z[t];if(n){let e=new Map;for(let t=0;tF(t.platformID,t.encodingID,t.languageID))),{type:"parent",relativeTo:t=>t.parent.stringOffset,allowNull:!1})}),X=new r.Struct({length:r.uint16,tag:new r.Pointer(r.uint16,new r.String("length","utf16be"),{type:"parent",relativeTo:t=>t.stringOffset})});var Z=new r.VersionedStruct(r.uint16,{0:{count:r.uint16,stringOffset:r.uint16,records:new r.Array(q,"count")},1:{count:r.uint16,stringOffset:r.uint16,records:new r.Array(q,"count"),langTagCount:r.uint16,langTags:new r.Array(X,"langTagCount")}}),Y=Z;const K=["copyright","fontFamily","fontSubfamily","uniqueSubfamily","fullName","version","postscriptName","trademark","manufacturer","designer","description","vendorURL","designerURL","license","licenseURL",null,"preferredFamily","preferredSubfamily","compatibleFull","sampleText","postscriptCIDFontName","wwsFamilyName","wwsSubfamilyName"];Z.process=function(t){var e={};for(let t of this.records){let n=G[t.platformID][t.languageID];null==n&&null!=this.langTags&&t.languageID>=32768&&(n=this.langTags[t.languageID-32768].tag),null==n&&(n=t.platformID+"-"+t.languageID);let r=t.nameID>=256?"fontFeatures":K[t.nameID]||t.nameID;null==e[r]&&(e[r]={});let i=e[r];t.nameID>=256&&(i=i[t.nameID]||(i[t.nameID]={})),"string"!=typeof t.string&&"string"==typeof i[n]||(i[n]=t.string)}this.records=e},Z.preEncode=function(){if(Array.isArray(this.records))return;this.version=0;let t=[];for(let e in this.records){let n=this.records[e];"fontFeatures"!==e&&(t.push({platformID:3,encodingID:1,languageID:1033,nameID:K.indexOf(e),length:2*n.en.length,string:n.en}),"postscriptName"===e&&t.push({platformID:1,encodingID:0,languageID:0,nameID:K.indexOf(e),length:n.en.length,string:n.en}))}this.records=t,this.count=t.length,this.stringOffset=Z.size(this,null,!1)};var J=new r.VersionedStruct(r.uint16,{header:{xAvgCharWidth:r.int16,usWeightClass:r.uint16,usWidthClass:r.uint16,fsType:new r.Bitfield(r.uint16,[null,"noEmbedding","viewOnly","editable",null,null,null,null,"noSubsetting","bitmapOnly"]),ySubscriptXSize:r.int16,ySubscriptYSize:r.int16,ySubscriptXOffset:r.int16,ySubscriptYOffset:r.int16,ySuperscriptXSize:r.int16,ySuperscriptYSize:r.int16,ySuperscriptXOffset:r.int16,ySuperscriptYOffset:r.int16,yStrikeoutSize:r.int16,yStrikeoutPosition:r.int16,sFamilyClass:r.int16,panose:new r.Array(r.uint8,10),ulCharRange:new r.Array(r.uint32,4),vendorID:new r.String(4),fsSelection:new r.Bitfield(r.uint16,["italic","underscore","negative","outlined","strikeout","bold","regular","useTypoMetrics","wws","oblique"]),usFirstCharIndex:r.uint16,usLastCharIndex:r.uint16},0:{},1:{typoAscender:r.int16,typoDescender:r.int16,typoLineGap:r.int16,winAscent:r.uint16,winDescent:r.uint16,codePageRange:new r.Array(r.uint32,2)},2:{typoAscender:r.int16,typoDescender:r.int16,typoLineGap:r.int16,winAscent:r.uint16,winDescent:r.uint16,codePageRange:new r.Array(r.uint32,2),xHeight:r.int16,capHeight:r.int16,defaultChar:r.uint16,breakChar:r.uint16,maxContent:r.uint16},5:{typoAscender:r.int16,typoDescender:r.int16,typoLineGap:r.int16,winAscent:r.uint16,winDescent:r.uint16,codePageRange:new r.Array(r.uint32,2),xHeight:r.int16,capHeight:r.int16,defaultChar:r.uint16,breakChar:r.uint16,maxContent:r.uint16,usLowerOpticalPointSize:r.uint16,usUpperOpticalPointSize:r.uint16}});let Q=J.versions;Q[3]=Q[4]=Q[2];var $=J,tt=new r.VersionedStruct(r.fixed32,{header:{italicAngle:r.fixed32,underlinePosition:r.int16,underlineThickness:r.int16,isFixedPitch:r.uint32,minMemType42:r.uint32,maxMemType42:r.uint32,minMemType1:r.uint32,maxMemType1:r.uint32},1:{},2:{numberOfGlyphs:r.uint16,glyphNameIndex:new r.Array(r.uint16,"numberOfGlyphs"),names:new r.Array(new r.String(r.uint8))},2.5:{numberOfGlyphs:r.uint16,offsets:new r.Array(r.uint8,"numberOfGlyphs")},3:{},4:{map:new r.Array(r.uint32,(t=>t.parent.maxp.numGlyphs))}}),et=new r.Struct({controlValues:new r.Array(r.int16)}),nt=new r.Struct({instructions:new r.Array(r.uint8)});let rt=new r.VersionedStruct("head.indexToLocFormat",{0:{offsets:new r.Array(r.uint16)},1:{offsets:new r.Array(r.uint32)}});rt.process=function(){if(0===this.version&&!this._processed){for(let t=0;t>>=1;this._processed=!1}};var it=rt,st=new r.Struct({controlValueProgram:new r.Array(r.uint8)}),ot=new r.Array(new r.Buffer);class at{getCFFVersion(t){for(;t&&!t.hdrSize;)t=t.parent;return t?t.version:-1}decode(t,e){let n=this.getCFFVersion(e)>=2?t.readUInt32BE():t.readUInt16BE();if(0===n)return[];let i,s=t.readUInt8();if(1===s)i=r.uint8;else if(2===s)i=r.uint16;else if(3===s)i=r.uint24;else{if(4!==s)throw new Error(`Bad offset size in CFFIndex: ${s} ${t.pos}`);i=r.uint32}let o=[],a=t.pos+(n+1)*s-1,l=i.decode(t);for(let r=0;r>4;if(15===r)break;e+=lt[r];let i=15&n;if(15===i)break;e+=lt[i]}return parseFloat(e)}return null}static size(t){if(t.forceLarge&&(t=32768),(0|t)!==t){let e=""+t;return 1+Math.ceil((e.length+1)/2)}return-107<=t&&t<=107?1:108<=t&&t<=1131||-1131<=t&&t<=-108?2:-32768<=t&&t<=32767?3:5}static encode(t,e){let n=Number(e);if(e.forceLarge)return t.writeUInt8(29),t.writeInt32BE(n);if((0|n)===n)return-107<=n&&n<=107?t.writeUInt8(n+139):108<=n&&n<=1131?(n-=108,t.writeUInt8(247+(n>>8)),t.writeUInt8(255&n)):-1131<=n&&n<=-108?(n=-n-108,t.writeUInt8(251+(n>>8)),t.writeUInt8(255&n)):-32768<=n&&n<=32767?(t.writeUInt8(28),t.writeInt16BE(n)):(t.writeUInt8(29),t.writeInt32BE(n));{t.writeUInt8(30);let e=""+n;for(let n=0;nthis.decodeOperands(t[i],e,n,[r])));if(null!=t.decode)return t.decode(e,n,r);switch(t){case"number":case"offset":case"sid":return r[0];case"boolean":return!!r[0];default:return r}}encodeOperands(t,e,n,r){return Array.isArray(t)?r.map(((r,i)=>this.encodeOperands(t[i],e,n,r)[0])):null!=t.encode?t.encode(e,r,n):"number"==typeof r?[r]:"boolean"==typeof r?[+r]:Array.isArray(r)?r:[r]}decode(t,e){let n=t.pos+e.length,i={},s=[];Object.defineProperties(i,{parent:{value:e},_startOffset:{value:t.pos}});for(let t in this.fields){let e=this.fields[t];i[e[1]]=e[3]}for(;t.posn[0]},super.decode(t,e,n)}encode(t,e,n){if(!t)return this.offsetType={size:()=>0},this.size(e,n),[new dt(0)];let r=null;return this.offsetType={encode:(t,e)=>r=e},super.encode(t,e,n),[new dt(r)]}constructor(t,e={}){null==e.type&&(e.type="global"),super(null,t,e)}}class dt{valueOf(){return this.val}constructor(t){this.val=t,this.forceLarge=!0}}var pt=new ct([[6,"BlueValues","delta",null],[7,"OtherBlues","delta",null],[8,"FamilyBlues","delta",null],[9,"FamilyOtherBlues","delta",null],[[12,9],"BlueScale","number",.039625],[[12,10],"BlueShift","number",7],[[12,11],"BlueFuzz","number",1],[10,"StdHW","number",null],[11,"StdVW","number",null],[[12,12],"StemSnapH","delta",null],[[12,13],"StemSnapV","delta",null],[[12,14],"ForceBold","boolean",!1],[[12,17],"LanguageGroup","number",0],[[12,18],"ExpansionFactor","number",.06],[[12,19],"initialRandomSeed","number",0],[20,"defaultWidthX","number",0],[21,"nominalWidthX","number",0],[22,"vsindex","number",0],[23,"blend",class{static decode(t,e,n){let r=n.pop();for(;n.length>r;)n.pop()}},null],[19,"Subrs",new ft(new at,{type:"local"}),null]]),gt=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"];let yt=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls"],mt=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron"],bt=new r.Struct({reserved:new r.Reserved(r.uint16),reqFeatureIndex:r.uint16,featureCount:r.uint16,featureIndexes:new r.Array(r.uint16,"featureCount")}),wt=new r.Struct({tag:new r.String(4),langSys:new r.Pointer(r.uint16,bt,{type:"parent"})}),vt=new r.Struct({defaultLangSys:new r.Pointer(r.uint16,bt),count:r.uint16,langSysRecords:new r.Array(wt,"count")}),At=new r.Struct({tag:new r.String(4),script:new r.Pointer(r.uint16,vt,{type:"parent"})}),xt=new r.Array(At,r.uint16),St=new r.Struct({version:r.uint16,nameID:r.uint16}),_t=new r.Struct({featureParams:new r.Pointer(r.uint16,St),lookupCount:r.uint16,lookupListIndexes:new r.Array(r.uint16,"lookupCount")}),Ct=new r.Struct({tag:new r.String(4),feature:new r.Pointer(r.uint16,_t,{type:"parent"})}),kt=new r.Array(Ct,r.uint16),Pt=new r.Struct({markAttachmentType:r.uint8,flags:new r.Bitfield(r.uint8,["rightToLeft","ignoreBaseGlyphs","ignoreLigatures","ignoreMarks","useMarkFilteringSet"])});function Et(t){let e=new r.Struct({lookupType:r.uint16,flags:Pt,subTableCount:r.uint16,subTables:new r.Array(new r.Pointer(r.uint16,t),"subTableCount"),markFilteringSet:new r.Optional(r.uint16,(t=>t.flags.flags.useMarkFilteringSet))});return new r.LazyArray(new r.Pointer(r.uint16,e),r.uint16)}let Tt=new r.Struct({start:r.uint16,end:r.uint16,startCoverageIndex:r.uint16}),Ot=new r.VersionedStruct(r.uint16,{1:{glyphCount:r.uint16,glyphs:new r.Array(r.uint16,"glyphCount")},2:{rangeCount:r.uint16,rangeRecords:new r.Array(Tt,"rangeCount")}}),It=new r.Struct({start:r.uint16,end:r.uint16,class:r.uint16}),Lt=new r.VersionedStruct(r.uint16,{1:{startGlyph:r.uint16,glyphCount:r.uint16,classValueArray:new r.Array(r.uint16,"glyphCount")},2:{classRangeCount:r.uint16,classRangeRecord:new r.Array(It,"classRangeCount")}}),Bt=new r.Struct({a:r.uint16,b:r.uint16,deltaFormat:r.uint16}),Mt=new r.Struct({sequenceIndex:r.uint16,lookupListIndex:r.uint16}),Dt=new r.Struct({glyphCount:r.uint16,lookupCount:r.uint16,input:new r.Array(r.uint16,(t=>t.glyphCount-1)),lookupRecords:new r.Array(Mt,"lookupCount")}),Rt=new r.Array(new r.Pointer(r.uint16,Dt),r.uint16),Nt=new r.Struct({glyphCount:r.uint16,lookupCount:r.uint16,classes:new r.Array(r.uint16,(t=>t.glyphCount-1)),lookupRecords:new r.Array(Mt,"lookupCount")}),Ft=new r.Array(new r.Pointer(r.uint16,Nt),r.uint16),Ut=new r.VersionedStruct(r.uint16,{1:{coverage:new r.Pointer(r.uint16,Ot),ruleSetCount:r.uint16,ruleSets:new r.Array(new r.Pointer(r.uint16,Rt),"ruleSetCount")},2:{coverage:new r.Pointer(r.uint16,Ot),classDef:new r.Pointer(r.uint16,Lt),classSetCnt:r.uint16,classSet:new r.Array(new r.Pointer(r.uint16,Ft),"classSetCnt")},3:{glyphCount:r.uint16,lookupCount:r.uint16,coverages:new r.Array(new r.Pointer(r.uint16,Ot),"glyphCount"),lookupRecords:new r.Array(Mt,"lookupCount")}}),zt=new r.Struct({backtrackGlyphCount:r.uint16,backtrack:new r.Array(r.uint16,"backtrackGlyphCount"),inputGlyphCount:r.uint16,input:new r.Array(r.uint16,(t=>t.inputGlyphCount-1)),lookaheadGlyphCount:r.uint16,lookahead:new r.Array(r.uint16,"lookaheadGlyphCount"),lookupCount:r.uint16,lookupRecords:new r.Array(Mt,"lookupCount")}),Wt=new r.Array(new r.Pointer(r.uint16,zt),r.uint16),jt=new r.VersionedStruct(r.uint16,{1:{coverage:new r.Pointer(r.uint16,Ot),chainCount:r.uint16,chainRuleSets:new r.Array(new r.Pointer(r.uint16,Wt),"chainCount")},2:{coverage:new r.Pointer(r.uint16,Ot),backtrackClassDef:new r.Pointer(r.uint16,Lt),inputClassDef:new r.Pointer(r.uint16,Lt),lookaheadClassDef:new r.Pointer(r.uint16,Lt),chainCount:r.uint16,chainClassSet:new r.Array(new r.Pointer(r.uint16,Wt),"chainCount")},3:{backtrackGlyphCount:r.uint16,backtrackCoverage:new r.Array(new r.Pointer(r.uint16,Ot),"backtrackGlyphCount"),inputGlyphCount:r.uint16,inputCoverage:new r.Array(new r.Pointer(r.uint16,Ot),"inputGlyphCount"),lookaheadGlyphCount:r.uint16,lookaheadCoverage:new r.Array(new r.Pointer(r.uint16,Ot),"lookaheadGlyphCount"),lookupCount:r.uint16,lookupRecords:new r.Array(Mt,"lookupCount")}}),Vt=new r.Fixed(16,"BE",14),Ht=new r.Struct({startCoord:Vt,peakCoord:Vt,endCoord:Vt}),Gt=new r.Struct({axisCount:r.uint16,regionCount:r.uint16,variationRegions:new r.Array(new r.Array(Ht,"axisCount"),"regionCount")}),qt=new r.Struct({shortDeltas:new r.Array(r.int16,(t=>t.parent.shortDeltaCount)),regionDeltas:new r.Array(r.int8,(t=>t.parent.regionIndexCount-t.parent.shortDeltaCount)),deltas:t=>t.shortDeltas.concat(t.regionDeltas)}),Xt=new r.Struct({itemCount:r.uint16,shortDeltaCount:r.uint16,regionIndexCount:r.uint16,regionIndexes:new r.Array(r.uint16,"regionIndexCount"),deltaSets:new r.Array(qt,"itemCount")}),Zt=new r.Struct({format:r.uint16,variationRegionList:new r.Pointer(r.uint32,Gt),variationDataCount:r.uint16,itemVariationData:new r.Array(new r.Pointer(r.uint32,Xt),"variationDataCount")}),Yt=new r.VersionedStruct(r.uint16,{1:{axisIndex:r.uint16,axisIndex:r.uint16,filterRangeMinValue:Vt,filterRangeMaxValue:Vt}}),Kt=new r.Struct({conditionCount:r.uint16,conditionTable:new r.Array(new r.Pointer(r.uint32,Yt),"conditionCount")}),Jt=new r.Struct({featureIndex:r.uint16,alternateFeatureTable:new r.Pointer(r.uint32,_t,{type:"parent"})}),Qt=new r.Struct({version:r.fixed32,substitutionCount:r.uint16,substitutions:new r.Array(Jt,"substitutionCount")}),$t=new r.Struct({conditionSet:new r.Pointer(r.uint32,Kt,{type:"parent"}),featureTableSubstitution:new r.Pointer(r.uint32,Qt,{type:"parent"})}),te=new r.Struct({majorVersion:r.uint16,minorVersion:r.uint16,featureVariationRecordCount:r.uint32,featureVariationRecords:new r.Array($t,"featureVariationRecordCount")});class ee{decode(t,e,n){return this.predefinedOps[n[0]]?this.predefinedOps[n[0]]:this.type.decode(t,e,n)}size(t,e){return this.type.size(t,e)}encode(t,e,n){let r=this.predefinedOps.indexOf(e);return-1!==r?r:this.type.encode(t,e,n)}constructor(t,e){this.predefinedOps=t,this.type=e}}class ne extends r.Number{decode(t){return 127&r.uint8.decode(t)}constructor(){super("UInt8")}}let re=new r.Struct({first:r.uint16,nLeft:r.uint8}),ie=new r.Struct({first:r.uint16,nLeft:r.uint16}),se=new ee([yt,["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"]],new ft(new r.VersionedStruct(new ne,{0:{nCodes:r.uint8,codes:new r.Array(r.uint8,"nCodes")},1:{nRanges:r.uint8,ranges:new r.Array(re,"nRanges")}}),{lazy:!0}));class oe extends r.Array{decode(t,e){let n=(0,r.resolveLength)(this.length,t,e),i=0,s=[];for(;it.parent.CharStrings.length-1))},1:{ranges:new oe(re,(t=>t.parent.CharStrings.length-1))},2:{ranges:new oe(ie,(t=>t.parent.CharStrings.length-1))}}),{lazy:!0})),le=new r.Struct({first:r.uint16,fd:r.uint8}),he=new r.Struct({first:r.uint32,fd:r.uint16}),ue=new r.VersionedStruct(r.uint8,{0:{fds:new r.Array(r.uint8,(t=>t.parent.CharStrings.length))},3:{nRanges:r.uint16,ranges:new r.Array(le,"nRanges"),sentinel:r.uint16},4:{nRanges:r.uint32,ranges:new r.Array(he,"nRanges"),sentinel:r.uint32}}),ce=new ft(pt);class fe{decode(t,e,n){return e.length=n[0],ce.decode(t,e,[n[1]])}size(t,e){return[pt.size(t,e,!1),ce.size(t,e)[0]]}encode(t,e,n){return[pt.size(e,n,!1),ce.encode(t,e,n)[0]]}}let de=new ct([[18,"Private",new fe,null],[[12,38],"FontName","sid",null],[[12,7],"FontMatrix","array",[.001,0,0,.001,0,0]],[[12,5],"PaintType","number",0]]),pe=new ct([[[12,30],"ROS",["sid","sid","number"],null],[0,"version","sid",null],[1,"Notice","sid",null],[[12,0],"Copyright","sid",null],[2,"FullName","sid",null],[3,"FamilyName","sid",null],[4,"Weight","sid",null],[[12,1],"isFixedPitch","boolean",!1],[[12,2],"ItalicAngle","number",0],[[12,3],"UnderlinePosition","number",-100],[[12,4],"UnderlineThickness","number",50],[[12,5],"PaintType","number",0],[[12,6],"CharstringType","number",2],[[12,7],"FontMatrix","array",[.001,0,0,.001,0,0]],[13,"UniqueID","number",null],[5,"FontBBox","array",[0,0,0,0]],[[12,8],"StrokeWidth","number",0],[14,"XUID","array",null],[15,"charset",ae,mt],[16,"Encoding",se,yt],[17,"CharStrings",new ft(new at),null],[18,"Private",new fe,null],[[12,20],"SyntheticBase","number",null],[[12,21],"PostScript","sid",null],[[12,22],"BaseFontName","sid",null],[[12,23],"BaseFontBlend","delta",null],[[12,31],"CIDFontVersion","number",0],[[12,32],"CIDFontRevision","number",0],[[12,33],"CIDFontType","number",0],[[12,34],"CIDCount","number",8720],[[12,35],"UIDBase","number",null],[[12,37],"FDSelect",new ft(ue),null],[[12,36],"FDArray",new ft(new at(de)),null],[[12,38],"FontName","sid",null]]),ge=new r.Struct({length:r.uint16,itemVariationStore:Zt}),ye=new ct([[[12,7],"FontMatrix","array",[.001,0,0,.001,0,0]],[17,"CharStrings",new ft(new at),null],[[12,37],"FDSelect",new ft(ue),null],[[12,36],"FDArray",new ft(new at(de)),null],[24,"vstore",new ft(ge),null],[25,"maxstack","number",193]]);var me=new r.VersionedStruct(r.fixed16,{1:{hdrSize:r.uint8,offSize:r.uint8,nameIndex:new at(new r.String("length")),topDictIndex:new at(pe),stringIndex:new at(new r.String("length")),globalSubrIndex:new at},2:{hdrSize:r.uint8,length:r.uint16,topDict:ye,globalSubrIndex:new at}});class be{static decode(t){return new be(t)}decode(){this.stream.pos;let t=me.decode(this.stream);for(let e in t){let n=t[e];this[e]=n}if(this.version<2){if(1!==this.topDictIndex.length)throw new Error("Only a single font is allowed in CFF");this.topDict=this.topDictIndex[0]}return this.isCIDFont=null!=this.topDict.ROS,this}string(t){return this.version>=2?null:t=2)return null;if(this.isCIDFont)return null;let{charset:e}=this.topDict;if(Array.isArray(e))return e[t];if(0===t)return".notdef";switch(t-=1,e.version){case 0:return this.string(e.glyphs[t]);case 1:case 2:for(let n=0;n>1;if(t=e[i+1].first))return e[i].fd;n=i+1}}default:throw new Error(`Unknown FDSelect version: ${this.topDict.FDSelect.version}`)}}privateDictForGlyph(t){if(this.topDict.FDSelect){let e=this.fdForGlyph(t);return this.topDict.FDArray[e]?this.topDict.FDArray[e].Private:null}return this.version<2?this.topDict.Private:this.topDict.FDArray[0].Private}constructor(t){this.stream=t,this.decode()}}var we=be;let ve=new r.Struct({glyphIndex:r.uint16,vertOriginY:r.int16});var Ae=new r.Struct({majorVersion:r.uint16,minorVersion:r.uint16,defaultVertOriginY:r.int16,numVertOriginYMetrics:r.uint16,metrics:new r.Array(ve,"numVertOriginYMetrics")});let xe=new r.Struct({height:r.uint8,width:r.uint8,horiBearingX:r.int8,horiBearingY:r.int8,horiAdvance:r.uint8,vertBearingX:r.int8,vertBearingY:r.int8,vertAdvance:r.uint8}),Se=new r.Struct({height:r.uint8,width:r.uint8,bearingX:r.int8,bearingY:r.int8,advance:r.uint8}),_e=new r.Struct({glyph:r.uint16,xOffset:r.int8,yOffset:r.int8});class Ce{}class ke{}new r.VersionedStruct("version",{1:{metrics:Se,data:Ce},2:{metrics:Se,data:ke},5:{data:ke},6:{metrics:xe,data:Ce},7:{metrics:xe,data:ke},8:{metrics:Se,pad:new r.Reserved(r.uint8),numComponents:r.uint16,components:new r.Array(_e,"numComponents")},9:{metrics:xe,pad:new r.Reserved(r.uint8),numComponents:r.uint16,components:new r.Array(_e,"numComponents")},17:{metrics:Se,dataLen:r.uint32,data:new r.Buffer("dataLen")},18:{metrics:xe,dataLen:r.uint32,data:new r.Buffer("dataLen")},19:{dataLen:r.uint32,data:new r.Buffer("dataLen")}});let Pe=new r.Struct({ascender:r.int8,descender:r.int8,widthMax:r.uint8,caretSlopeNumerator:r.int8,caretSlopeDenominator:r.int8,caretOffset:r.int8,minOriginSB:r.int8,minAdvanceSB:r.int8,maxBeforeBL:r.int8,minAfterBL:r.int8,pad:new r.Reserved(r.int8,2)}),Ee=new r.Struct({glyphCode:r.uint16,offset:r.uint16}),Te=new r.VersionedStruct(r.uint16,{header:{imageFormat:r.uint16,imageDataOffset:r.uint32},1:{offsetArray:new r.Array(r.uint32,(t=>t.parent.lastGlyphIndex-t.parent.firstGlyphIndex+1))},2:{imageSize:r.uint32,bigMetrics:xe},3:{offsetArray:new r.Array(r.uint16,(t=>t.parent.lastGlyphIndex-t.parent.firstGlyphIndex+1))},4:{numGlyphs:r.uint32,glyphArray:new r.Array(Ee,(t=>t.numGlyphs+1))},5:{imageSize:r.uint32,bigMetrics:xe,numGlyphs:r.uint32,glyphCodeArray:new r.Array(r.uint16,"numGlyphs")}}),Oe=new r.Struct({firstGlyphIndex:r.uint16,lastGlyphIndex:r.uint16,subtable:new r.Pointer(r.uint32,Te)}),Ie=new r.Struct({indexSubTableArray:new r.Pointer(r.uint32,new r.Array(Oe,1),{type:"parent"}),indexTablesSize:r.uint32,numberOfIndexSubTables:r.uint32,colorRef:r.uint32,hori:Pe,vert:Pe,startGlyphIndex:r.uint16,endGlyphIndex:r.uint16,ppemX:r.uint8,ppemY:r.uint8,bitDepth:r.uint8,flags:new r.Bitfield(r.uint8,["horizontal","vertical"])});var Le=new r.Struct({version:r.uint32,numSizes:r.uint32,sizes:new r.Array(Ie,"numSizes")});let Be=new r.Struct({ppem:r.uint16,resolution:r.uint16,imageOffsets:new r.Array(new r.Pointer(r.uint32,"void"),(t=>t.parent.parent.maxp.numGlyphs+1))});var Me=new r.Struct({version:r.uint16,flags:new r.Bitfield(r.uint16,["renderOutlines"]),numImgTables:r.uint32,imageTables:new r.Array(new r.Pointer(r.uint32,Be),"numImgTables")});let De=new r.Struct({gid:r.uint16,paletteIndex:r.uint16}),Re=new r.Struct({gid:r.uint16,firstLayerIndex:r.uint16,numLayers:r.uint16});var Ne=new r.Struct({version:r.uint16,numBaseGlyphRecords:r.uint16,baseGlyphRecord:new r.Pointer(r.uint32,new r.Array(Re,"numBaseGlyphRecords")),layerRecords:new r.Pointer(r.uint32,new r.Array(De,"numLayerRecords"),{lazy:!0}),numLayerRecords:r.uint16});let Fe=new r.Struct({blue:r.uint8,green:r.uint8,red:r.uint8,alpha:r.uint8});var Ue=new r.VersionedStruct(r.uint16,{header:{numPaletteEntries:r.uint16,numPalettes:r.uint16,numColorRecords:r.uint16,colorRecords:new r.Pointer(r.uint32,new r.Array(Fe,"numColorRecords")),colorRecordIndices:new r.Array(r.uint16,"numPalettes")},0:{},1:{offsetPaletteTypeArray:new r.Pointer(r.uint32,new r.Array(r.uint32,"numPalettes")),offsetPaletteLabelArray:new r.Pointer(r.uint32,new r.Array(r.uint16,"numPalettes")),offsetPaletteEntryLabelArray:new r.Pointer(r.uint32,new r.Array(r.uint16,"numPaletteEntries"))}});let ze=new r.VersionedStruct(r.uint16,{1:{coordinate:r.int16},2:{coordinate:r.int16,referenceGlyph:r.uint16,baseCoordPoint:r.uint16},3:{coordinate:r.int16,deviceTable:new r.Pointer(r.uint16,Bt)}}),We=new r.Struct({defaultIndex:r.uint16,baseCoordCount:r.uint16,baseCoords:new r.Array(new r.Pointer(r.uint16,ze),"baseCoordCount")}),je=new r.Struct({tag:new r.String(4),minCoord:new r.Pointer(r.uint16,ze,{type:"parent"}),maxCoord:new r.Pointer(r.uint16,ze,{type:"parent"})}),Ve=new r.Struct({minCoord:new r.Pointer(r.uint16,ze),maxCoord:new r.Pointer(r.uint16,ze),featMinMaxCount:r.uint16,featMinMaxRecords:new r.Array(je,"featMinMaxCount")}),He=new r.Struct({tag:new r.String(4),minMax:new r.Pointer(r.uint16,Ve,{type:"parent"})}),Ge=new r.Struct({baseValues:new r.Pointer(r.uint16,We),defaultMinMax:new r.Pointer(r.uint16,Ve),baseLangSysCount:r.uint16,baseLangSysRecords:new r.Array(He,"baseLangSysCount")}),qe=new r.Struct({tag:new r.String(4),script:new r.Pointer(r.uint16,Ge,{type:"parent"})}),Xe=new r.Array(qe,r.uint16),Ze=new r.Array(new r.String(4),r.uint16),Ye=new r.Struct({baseTagList:new r.Pointer(r.uint16,Ze),baseScriptList:new r.Pointer(r.uint16,Xe)});var Ke=new r.VersionedStruct(r.uint32,{header:{horizAxis:new r.Pointer(r.uint16,Ye),vertAxis:new r.Pointer(r.uint16,Ye)},65536:{},65537:{itemVariationStore:new r.Pointer(r.uint32,Zt)}});let Je=new r.Array(r.uint16,r.uint16),Qe=new r.Struct({coverage:new r.Pointer(r.uint16,Ot),glyphCount:r.uint16,attachPoints:new r.Array(new r.Pointer(r.uint16,Je),"glyphCount")}),$e=new r.VersionedStruct(r.uint16,{1:{coordinate:r.int16},2:{caretValuePoint:r.uint16},3:{coordinate:r.int16,deviceTable:new r.Pointer(r.uint16,Bt)}}),tn=new r.Array(new r.Pointer(r.uint16,$e),r.uint16),en=new r.Struct({coverage:new r.Pointer(r.uint16,Ot),ligGlyphCount:r.uint16,ligGlyphs:new r.Array(new r.Pointer(r.uint16,tn),"ligGlyphCount")}),nn=new r.Struct({markSetTableFormat:r.uint16,markSetCount:r.uint16,coverage:new r.Array(new r.Pointer(r.uint32,Ot),"markSetCount")});var rn=new r.VersionedStruct(r.uint32,{header:{glyphClassDef:new r.Pointer(r.uint16,Lt),attachList:new r.Pointer(r.uint16,Qe),ligCaretList:new r.Pointer(r.uint16,en),markAttachClassDef:new r.Pointer(r.uint16,Lt)},65536:{},65538:{markGlyphSetsDef:new r.Pointer(r.uint16,nn)},65539:{markGlyphSetsDef:new r.Pointer(r.uint16,nn),itemVariationStore:new r.Pointer(r.uint32,Zt)}});let sn=new r.Bitfield(r.uint16,["xPlacement","yPlacement","xAdvance","yAdvance","xPlaDevice","yPlaDevice","xAdvDevice","yAdvDevice"]),on={xPlacement:r.int16,yPlacement:r.int16,xAdvance:r.int16,yAdvance:r.int16,xPlaDevice:new r.Pointer(r.uint16,Bt,{type:"global",relativeTo:t=>t.rel}),yPlaDevice:new r.Pointer(r.uint16,Bt,{type:"global",relativeTo:t=>t.rel}),xAdvDevice:new r.Pointer(r.uint16,Bt,{type:"global",relativeTo:t=>t.rel}),yAdvDevice:new r.Pointer(r.uint16,Bt,{type:"global",relativeTo:t=>t.rel})};class an{buildStruct(t){let e=t;for(;!e[this.key]&&e.parent;)e=e.parent;if(!e[this.key])return;let n={rel:()=>e._startOffset},i=e[this.key];for(let t in i)i[t]&&(n[t]=on[t]);return new r.Struct(n)}size(t,e){return this.buildStruct(e).size(t,e)}decode(t,e){let n=this.buildStruct(e).decode(t,e);return delete n.rel,n}constructor(t="valueFormat"){this.key=t}}let ln=new r.Struct({secondGlyph:r.uint16,value1:new an("valueFormat1"),value2:new an("valueFormat2")}),hn=new r.Array(ln,r.uint16),un=new r.Struct({value1:new an("valueFormat1"),value2:new an("valueFormat2")}),cn=new r.VersionedStruct(r.uint16,{1:{xCoordinate:r.int16,yCoordinate:r.int16},2:{xCoordinate:r.int16,yCoordinate:r.int16,anchorPoint:r.uint16},3:{xCoordinate:r.int16,yCoordinate:r.int16,xDeviceTable:new r.Pointer(r.uint16,Bt),yDeviceTable:new r.Pointer(r.uint16,Bt)}}),fn=new r.Struct({entryAnchor:new r.Pointer(r.uint16,cn,{type:"parent"}),exitAnchor:new r.Pointer(r.uint16,cn,{type:"parent"})}),dn=new r.Struct({class:r.uint16,markAnchor:new r.Pointer(r.uint16,cn,{type:"parent"})}),pn=new r.Array(dn,r.uint16),gn=new r.Array(new r.Pointer(r.uint16,cn),(t=>t.parent.classCount)),yn=new r.Array(gn,r.uint16),mn=new r.Array(new r.Pointer(r.uint16,cn),(t=>t.parent.parent.classCount)),bn=new r.Array(mn,r.uint16),wn=new r.Array(new r.Pointer(r.uint16,bn),r.uint16),vn=new r.VersionedStruct("lookupType",{1:new r.VersionedStruct(r.uint16,{1:{coverage:new r.Pointer(r.uint16,Ot),valueFormat:sn,value:new an},2:{coverage:new r.Pointer(r.uint16,Ot),valueFormat:sn,valueCount:r.uint16,values:new r.LazyArray(new an,"valueCount")}}),2:new r.VersionedStruct(r.uint16,{1:{coverage:new r.Pointer(r.uint16,Ot),valueFormat1:sn,valueFormat2:sn,pairSetCount:r.uint16,pairSets:new r.LazyArray(new r.Pointer(r.uint16,hn),"pairSetCount")},2:{coverage:new r.Pointer(r.uint16,Ot),valueFormat1:sn,valueFormat2:sn,classDef1:new r.Pointer(r.uint16,Lt),classDef2:new r.Pointer(r.uint16,Lt),class1Count:r.uint16,class2Count:r.uint16,classRecords:new r.LazyArray(new r.LazyArray(un,"class2Count"),"class1Count")}}),3:{format:r.uint16,coverage:new r.Pointer(r.uint16,Ot),entryExitCount:r.uint16,entryExitRecords:new r.Array(fn,"entryExitCount")},4:{format:r.uint16,markCoverage:new r.Pointer(r.uint16,Ot),baseCoverage:new r.Pointer(r.uint16,Ot),classCount:r.uint16,markArray:new r.Pointer(r.uint16,pn),baseArray:new r.Pointer(r.uint16,yn)},5:{format:r.uint16,markCoverage:new r.Pointer(r.uint16,Ot),ligatureCoverage:new r.Pointer(r.uint16,Ot),classCount:r.uint16,markArray:new r.Pointer(r.uint16,pn),ligatureArray:new r.Pointer(r.uint16,wn)},6:{format:r.uint16,mark1Coverage:new r.Pointer(r.uint16,Ot),mark2Coverage:new r.Pointer(r.uint16,Ot),classCount:r.uint16,mark1Array:new r.Pointer(r.uint16,pn),mark2Array:new r.Pointer(r.uint16,yn)},7:Ut,8:jt,9:{posFormat:r.uint16,lookupType:r.uint16,extension:new r.Pointer(r.uint32,null)}});vn.versions[9].extension.type=vn;var An=new r.VersionedStruct(r.uint32,{header:{scriptList:new r.Pointer(r.uint16,xt),featureList:new r.Pointer(r.uint16,kt),lookupList:new r.Pointer(r.uint16,new Et(vn))},65536:{},65537:{featureVariations:new r.Pointer(r.uint32,te)}});let xn=new r.Array(r.uint16,r.uint16),Sn=xn,_n=new r.Struct({glyph:r.uint16,compCount:r.uint16,components:new r.Array(r.uint16,(t=>t.compCount-1))}),Cn=new r.Array(new r.Pointer(r.uint16,_n),r.uint16),kn=new r.VersionedStruct("lookupType",{1:new r.VersionedStruct(r.uint16,{1:{coverage:new r.Pointer(r.uint16,Ot),deltaGlyphID:r.int16},2:{coverage:new r.Pointer(r.uint16,Ot),glyphCount:r.uint16,substitute:new r.LazyArray(r.uint16,"glyphCount")}}),2:{substFormat:r.uint16,coverage:new r.Pointer(r.uint16,Ot),count:r.uint16,sequences:new r.LazyArray(new r.Pointer(r.uint16,xn),"count")},3:{substFormat:r.uint16,coverage:new r.Pointer(r.uint16,Ot),count:r.uint16,alternateSet:new r.LazyArray(new r.Pointer(r.uint16,Sn),"count")},4:{substFormat:r.uint16,coverage:new r.Pointer(r.uint16,Ot),count:r.uint16,ligatureSets:new r.LazyArray(new r.Pointer(r.uint16,Cn),"count")},5:Ut,6:jt,7:{substFormat:r.uint16,lookupType:r.uint16,extension:new r.Pointer(r.uint32,null)},8:{substFormat:r.uint16,coverage:new r.Pointer(r.uint16,Ot),backtrackCoverage:new r.Array(new r.Pointer(r.uint16,Ot),"backtrackGlyphCount"),lookaheadGlyphCount:r.uint16,lookaheadCoverage:new r.Array(new r.Pointer(r.uint16,Ot),"lookaheadGlyphCount"),glyphCount:r.uint16,substitutes:new r.Array(r.uint16,"glyphCount")}});kn.versions[7].extension.type=kn;var Pn=new r.VersionedStruct(r.uint32,{header:{scriptList:new r.Pointer(r.uint16,xt),featureList:new r.Pointer(r.uint16,kt),lookupList:new r.Pointer(r.uint16,new Et(kn))},65536:{},65537:{featureVariations:new r.Pointer(r.uint32,te)}});let En=new r.Array(r.uint16,r.uint16),Tn=new r.Struct({shrinkageEnableGSUB:new r.Pointer(r.uint16,En),shrinkageDisableGSUB:new r.Pointer(r.uint16,En),shrinkageEnableGPOS:new r.Pointer(r.uint16,En),shrinkageDisableGPOS:new r.Pointer(r.uint16,En),shrinkageJstfMax:new r.Pointer(r.uint16,new Et(vn)),extensionEnableGSUB:new r.Pointer(r.uint16,En),extensionDisableGSUB:new r.Pointer(r.uint16,En),extensionEnableGPOS:new r.Pointer(r.uint16,En),extensionDisableGPOS:new r.Pointer(r.uint16,En),extensionJstfMax:new r.Pointer(r.uint16,new Et(vn))}),On=new r.Array(new r.Pointer(r.uint16,Tn),r.uint16),In=new r.Struct({tag:new r.String(4),jstfLangSys:new r.Pointer(r.uint16,On)}),Ln=new r.Struct({extenderGlyphs:new r.Pointer(r.uint16,new r.Array(r.uint16,r.uint16)),defaultLangSys:new r.Pointer(r.uint16,On),langSysCount:r.uint16,langSysRecords:new r.Array(In,"langSysCount")}),Bn=new r.Struct({tag:new r.String(4),script:new r.Pointer(r.uint16,Ln,{type:"parent"})});var Mn=new r.Struct({version:r.uint32,scriptCount:r.uint16,scriptList:new r.Array(Bn,"scriptCount")});let Dn=new r.Struct({entry:new class{decode(t,e){switch(this.size(0,e)){case 1:return t.readUInt8();case 2:return t.readUInt16BE();case 3:return t.readUInt24BE();case 4:return t.readUInt32BE()}}size(t,e){return(0,r.resolveLength)(this._size,null,e)}constructor(t){this._size=t}}((t=>1+((48&t.parent.entryFormat)>>4))),outerIndex:t=>t.entry>>1+(15&t.parent.entryFormat),innerIndex:t=>t.entry&(1<<1+(15&t.parent.entryFormat))-1}),Rn=new r.Struct({entryFormat:r.uint16,mapCount:r.uint16,mapData:new r.Array(Dn,"mapCount")});var Nn=new r.Struct({majorVersion:r.uint16,minorVersion:r.uint16,itemVariationStore:new r.Pointer(r.uint32,Zt),advanceWidthMapping:new r.Pointer(r.uint32,Rn),LSBMapping:new r.Pointer(r.uint32,Rn),RSBMapping:new r.Pointer(r.uint32,Rn)});let Fn=new r.Struct({format:r.uint32,length:r.uint32,offset:r.uint32}),Un=new r.Struct({reserved:new r.Reserved(r.uint16,2),cbSignature:r.uint32,signature:new r.Buffer("cbSignature")});var zn=new r.Struct({ulVersion:r.uint32,usNumSigs:r.uint16,usFlag:r.uint16,signatures:new r.Array(Fn,"usNumSigs"),signatureBlocks:new r.Array(Un,"usNumSigs")});let Wn=new r.Struct({rangeMaxPPEM:r.uint16,rangeGaspBehavior:new r.Bitfield(r.uint16,["grayscale","gridfit","symmetricSmoothing","symmetricGridfit"])});var jn=new r.Struct({version:r.uint16,numRanges:r.uint16,gaspRanges:new r.Array(Wn,"numRanges")});let Vn=new r.Struct({pixelSize:r.uint8,maximumWidth:r.uint8,widths:new r.Array(r.uint8,(t=>t.parent.parent.maxp.numGlyphs))});var Hn=new r.Struct({version:r.uint16,numRecords:r.int16,sizeDeviceRecord:r.int32,records:new r.Array(Vn,"numRecords")});let Gn=new r.Struct({left:r.uint16,right:r.uint16,value:r.int16}),qn=new r.Struct({firstGlyph:r.uint16,nGlyphs:r.uint16,offsets:new r.Array(r.uint16,"nGlyphs"),max:t=>t.offsets.length&&Math.max.apply(Math,t.offsets)}),Xn=new r.Struct({off:t=>t._startOffset-t.parent.parent._startOffset,len:t=>((t.parent.leftTable.max-t.off)/t.parent.rowWidth+1)*(t.parent.rowWidth/2),values:new r.LazyArray(r.int16,"len")}),Zn=new r.VersionedStruct("format",{0:{nPairs:r.uint16,searchRange:r.uint16,entrySelector:r.uint16,rangeShift:r.uint16,pairs:new r.Array(Gn,"nPairs")},2:{rowWidth:r.uint16,leftTable:new r.Pointer(r.uint16,qn,{type:"parent"}),rightTable:new r.Pointer(r.uint16,qn,{type:"parent"}),array:new r.Pointer(r.uint16,Xn,{type:"parent"})},3:{glyphCount:r.uint16,kernValueCount:r.uint8,leftClassCount:r.uint8,rightClassCount:r.uint8,flags:r.uint8,kernValue:new r.Array(r.int16,"kernValueCount"),leftClass:new r.Array(r.uint8,"glyphCount"),rightClass:new r.Array(r.uint8,"glyphCount"),kernIndex:new r.Array(r.uint8,(t=>t.leftClassCount*t.rightClassCount))}}),Yn=new r.VersionedStruct("version",{0:{subVersion:r.uint16,length:r.uint16,format:r.uint8,coverage:new r.Bitfield(r.uint8,["horizontal","minimum","crossStream","override"]),subtable:Zn,padding:new r.Reserved(r.uint8,(t=>t.length-t._currentOffset))},1:{length:r.uint32,coverage:new r.Bitfield(r.uint8,[null,null,null,null,null,"variation","crossStream","vertical"]),format:r.uint8,tupleIndex:r.uint16,subtable:Zn,padding:new r.Reserved(r.uint8,(t=>t.length-t._currentOffset))}});var Kn=new r.VersionedStruct(r.uint16,{0:{nTables:r.uint16,tables:new r.Array(Yn,"nTables")},1:{reserved:new r.Reserved(r.uint16),nTables:r.uint32,tables:new r.Array(Yn,"nTables")}}),Jn=new r.Struct({version:r.uint16,numGlyphs:r.uint16,yPels:new r.Array(r.uint8,"numGlyphs")}),Qn=new r.Struct({version:r.uint16,fontNumber:r.uint32,pitch:r.uint16,xHeight:r.uint16,style:r.uint16,typeFamily:r.uint16,capHeight:r.uint16,symbolSet:r.uint16,typeface:new r.String(16),characterComplement:new r.String(8),fileName:new r.String(6),strokeWeight:new r.String(1),widthType:new r.String(1),serifStyle:r.uint8,reserved:new r.Reserved(r.uint8)});let $n=new r.Struct({bCharSet:r.uint8,xRatio:r.uint8,yStartRatio:r.uint8,yEndRatio:r.uint8}),tr=new r.Struct({yPelHeight:r.uint16,yMax:r.int16,yMin:r.int16}),er=new r.Struct({recs:r.uint16,startsz:r.uint8,endsz:r.uint8,entries:new r.Array(tr,"recs")});var nr=new r.Struct({version:r.uint16,numRecs:r.uint16,numRatios:r.uint16,ratioRanges:new r.Array($n,"numRatios"),offsets:new r.Array(r.uint16,"numRatios"),groups:new r.Array(er,"numRecs")}),rr=new r.Struct({version:r.uint16,ascent:r.int16,descent:r.int16,lineGap:r.int16,advanceHeightMax:r.int16,minTopSideBearing:r.int16,minBottomSideBearing:r.int16,yMaxExtent:r.int16,caretSlopeRise:r.int16,caretSlopeRun:r.int16,caretOffset:r.int16,reserved:new r.Reserved(r.int16,4),metricDataFormat:r.int16,numberOfMetrics:r.uint16});let ir=new r.Struct({advance:r.uint16,bearing:r.int16});var sr=new r.Struct({metrics:new r.LazyArray(ir,(t=>t.parent.vhea.numberOfMetrics)),bearings:new r.LazyArray(r.int16,(t=>t.parent.maxp.numGlyphs-t.parent.vhea.numberOfMetrics))});let or=new r.Fixed(16,"BE",14),ar=new r.Struct({fromCoord:or,toCoord:or}),lr=new r.Struct({pairCount:r.uint16,correspondence:new r.Array(ar,"pairCount")});var hr=new r.Struct({version:r.fixed32,axisCount:r.uint32,segment:new r.Array(lr,"axisCount")});class ur{getItem(t){if(null==this._items[t]){let e=this.stream.pos;this.stream.pos=this.base+this.type.size(null,this.parent)*t,this._items[t]=this.type.decode(this.stream,this.parent),this.stream.pos=e}return this._items[t]}inspect(){return`[UnboundedArray ${this.type.constructor.name}]`}constructor(t,e,n){this.type=t,this.stream=e,this.parent=n,this.base=this.stream.pos,this._items=[]}}class cr extends r.Array{decode(t,e){return new ur(this.type,t,e)}constructor(t){super(t,0)}}let fr=function(t=r.uint16){t=new class{decode(t,e){return e=e.parent.parent,this.type.decode(t,e)}size(t,e){return e=e.parent.parent,this.type.size(t,e)}encode(t,e,n){return n=n.parent.parent,this.type.encode(t,e,n)}constructor(t){this.type=t}}(t);let e=new r.Struct({unitSize:r.uint16,nUnits:r.uint16,searchRange:r.uint16,entrySelector:r.uint16,rangeShift:r.uint16}),n=new r.Struct({lastGlyph:r.uint16,firstGlyph:r.uint16,value:t}),i=new r.Struct({lastGlyph:r.uint16,firstGlyph:r.uint16,values:new r.Pointer(r.uint16,new r.Array(t,(t=>t.lastGlyph-t.firstGlyph+1)),{type:"parent"})}),s=new r.Struct({glyph:r.uint16,value:t});return new r.VersionedStruct(r.uint16,{0:{values:new cr(t)},2:{binarySearchHeader:e,segments:new r.Array(n,(t=>t.binarySearchHeader.nUnits))},4:{binarySearchHeader:e,segments:new r.Array(i,(t=>t.binarySearchHeader.nUnits))},6:{binarySearchHeader:e,segments:new r.Array(s,(t=>t.binarySearchHeader.nUnits))},8:{firstGlyph:r.uint16,count:r.uint16,values:new r.Array(t,"count")}})};function dr(t={},e=r.uint16){let n=Object.assign({newState:r.uint16,flags:r.uint16},t),i=new r.Struct(n),s=new cr(new r.Array(r.uint16,(t=>t.nClasses)));return new r.Struct({nClasses:r.uint32,classTable:new r.Pointer(r.uint32,new fr(e)),stateArray:new r.Pointer(r.uint32,s),entryTable:new r.Pointer(r.uint32,new cr(i))})}let pr=new r.VersionedStruct("format",{0:{deltas:new r.Array(r.int16,32)},1:{deltas:new r.Array(r.int16,32),mappingData:new fr(r.uint16)},2:{standardGlyph:r.uint16,controlPoints:new r.Array(r.uint16,32)},3:{standardGlyph:r.uint16,controlPoints:new r.Array(r.uint16,32),mappingData:new fr(r.uint16)}});var gr=new r.Struct({version:r.fixed32,format:r.uint16,defaultBaseline:r.uint16,subtable:pr});let yr=new r.Struct({setting:r.uint16,nameIndex:r.int16,name:t=>t.parent.parent.parent.name.records.fontFeatures[t.nameIndex]}),mr=new r.Struct({feature:r.uint16,nSettings:r.uint16,settingTable:new r.Pointer(r.uint32,new r.Array(yr,"nSettings"),{type:"parent"}),featureFlags:new r.Bitfield(r.uint8,[null,null,null,null,null,null,"hasDefault","exclusive"]),defaultSetting:r.uint8,nameIndex:r.int16,name:t=>t.parent.parent.name.records.fontFeatures[t.nameIndex]});var br=new r.Struct({version:r.fixed32,featureNameCount:r.uint16,reserved1:new r.Reserved(r.uint16),reserved2:new r.Reserved(r.uint32),featureNames:new r.Array(mr,"featureNameCount")});let wr=new r.Struct({axisTag:new r.String(4),minValue:r.fixed32,defaultValue:r.fixed32,maxValue:r.fixed32,flags:r.uint16,nameID:r.uint16,name:t=>t.parent.parent.name.records.fontFeatures[t.nameID]}),vr=new r.Struct({nameID:r.uint16,name:t=>t.parent.parent.name.records.fontFeatures[t.nameID],flags:r.uint16,coord:new r.Array(r.fixed32,(t=>t.parent.axisCount)),postscriptNameID:new r.Optional(r.uint16,(t=>t.parent.instanceSize-t._currentOffset>0))});var Ar=new r.Struct({version:r.fixed32,offsetToData:r.uint16,countSizePairs:r.uint16,axisCount:r.uint16,axisSize:r.uint16,instanceCount:r.uint16,instanceSize:r.uint16,axis:new r.Array(wr,"axisCount"),instance:new r.Array(vr,"instanceCount")});let xr=new r.Fixed(16,"BE",14);var Sr=new r.Struct({version:r.uint16,reserved:new r.Reserved(r.uint16),axisCount:r.uint16,globalCoordCount:r.uint16,globalCoords:new r.Pointer(r.uint32,new r.Array(new r.Array(xr,"axisCount"),"globalCoordCount")),glyphCount:r.uint16,flags:r.uint16,offsetToData:r.uint32,offsets:new r.Array(new r.Pointer(class{static decode(t,e){return e.flags?t.readUInt32BE():2*t.readUInt16BE()}},"void",{relativeTo:t=>t.offsetToData,allowNull:!1}),(t=>t.glyphCount+1))});let _r=new r.Struct({length:r.uint16,coverage:r.uint16,subFeatureFlags:r.uint32,stateTable:new function(t={}){let e=new r.Struct({version:()=>8,firstGlyph:r.uint16,values:new r.Array(r.uint8,r.uint16)}),n=Object.assign({newStateOffset:r.uint16,newState:t=>(t.newStateOffset-(t.parent.stateArray.base-t.parent._startOffset))/t.parent.nClasses,flags:r.uint16},t),i=new r.Struct(n),s=new cr(new r.Array(r.uint8,(t=>t.nClasses)));return new r.Struct({nClasses:r.uint16,classTable:new r.Pointer(r.uint16,e),stateArray:new r.Pointer(r.uint16,s),entryTable:new r.Pointer(r.uint16,new cr(i))})}}),Cr=new r.Struct({justClass:r.uint32,beforeGrowLimit:r.fixed32,beforeShrinkLimit:r.fixed32,afterGrowLimit:r.fixed32,afterShrinkLimit:r.fixed32,growFlags:r.uint16,shrinkFlags:r.uint16}),kr=new r.Array(Cr,r.uint32),Pr=new r.VersionedStruct("actionType",{0:{lowerLimit:r.fixed32,upperLimit:r.fixed32,order:r.uint16,glyphs:new r.Array(r.uint16,r.uint16)},1:{addGlyph:r.uint16},2:{substThreshold:r.fixed32,addGlyph:r.uint16,substGlyph:r.uint16},3:{},4:{variationAxis:r.uint32,minimumLimit:r.fixed32,noStretchValue:r.fixed32,maximumLimit:r.fixed32},5:{flags:r.uint16,glyph:r.uint16}}),Er=new r.Struct({actionClass:r.uint16,actionType:r.uint16,actionLength:r.uint32,actionData:Pr,padding:new r.Reserved(r.uint8,(t=>t.actionLength-t._currentOffset))}),Tr=new r.Array(Er,r.uint32),Or=new r.Struct({lookupTable:new fr(new r.Pointer(r.uint16,Tr))}),Ir=new r.Struct({classTable:new r.Pointer(r.uint16,_r,{type:"parent"}),wdcOffset:r.uint16,postCompensationTable:new r.Pointer(r.uint16,Or,{type:"parent"}),widthDeltaClusters:new fr(new r.Pointer(r.uint16,kr,{type:"parent",relativeTo:t=>t.wdcOffset}))});var Lr=new r.Struct({version:r.uint32,format:r.uint16,horizontal:new r.Pointer(r.uint16,Ir),vertical:new r.Pointer(r.uint16,Ir)});let Br={action:r.uint16},Mr={markIndex:r.uint16,currentIndex:r.uint16},Dr={currentInsertIndex:r.uint16,markedInsertIndex:r.uint16},Rr=new r.Struct({items:new cr(new r.Pointer(r.uint32,new fr))}),Nr=new r.VersionedStruct("type",{0:{stateTable:new dr},1:{stateTable:new dr(Mr),substitutionTable:new r.Pointer(r.uint32,Rr)},2:{stateTable:new dr(Br),ligatureActions:new r.Pointer(r.uint32,new cr(r.uint32)),components:new r.Pointer(r.uint32,new cr(r.uint16)),ligatureList:new r.Pointer(r.uint32,new cr(r.uint16))},4:{lookupTable:new fr},5:{stateTable:new dr(Dr),insertionActions:new r.Pointer(r.uint32,new cr(r.uint16))}}),Fr=new r.Struct({length:r.uint32,coverage:r.uint24,type:r.uint8,subFeatureFlags:r.uint32,table:Nr,padding:new r.Reserved(r.uint8,(t=>t.length-t._currentOffset))}),Ur=new r.Struct({featureType:r.uint16,featureSetting:r.uint16,enableFlags:r.uint32,disableFlags:r.uint32}),zr=new r.Struct({defaultFlags:r.uint32,chainLength:r.uint32,nFeatureEntries:r.uint32,nSubtables:r.uint32,features:new r.Array(Ur,"nFeatureEntries"),subtables:new r.Array(Fr,"nSubtables")});var Wr=new r.Struct({version:r.uint16,unused:new r.Reserved(r.uint16),nChains:r.uint32,chains:new r.Array(zr,"nChains")});let jr=new r.Struct({left:r.int16,top:r.int16,right:r.int16,bottom:r.int16});var Vr=new r.Struct({version:r.fixed32,format:r.uint16,lookupTable:new fr(jr)});let Hr={};var Gr=Hr;Hr.cmap=L,Hr.head=B,Hr.hhea=M,Hr.hmtx=R,Hr.maxp=N,Hr.name=Y,Hr["OS/2"]=$,Hr.post=tt,Hr.fpgm=nt,Hr.loca=it,Hr.prep=st,Hr["cvt "]=et,Hr.glyf=ot,Hr["CFF "]=we,Hr.CFF2=we,Hr.VORG=Ae,Hr.EBLC=Le,Hr.CBLC=Hr.EBLC,Hr.sbix=Me,Hr.COLR=Ne,Hr.CPAL=Ue,Hr.BASE=Ke,Hr.GDEF=rn,Hr.GPOS=An,Hr.GSUB=Pn,Hr.JSTF=Mn,Hr.HVAR=Nn,Hr.DSIG=zn,Hr.gasp=jn,Hr.hdmx=Hn,Hr.kern=Kn,Hr.LTSH=Jn,Hr.PCLT=Qn,Hr.VDMX=nr,Hr.vhea=rr,Hr.vmtx=sr,Hr.avar=hr,Hr.bsln=gr,Hr.feat=br,Hr.fvar=Ar,Hr.gvar=Sr,Hr.just=Lr,Hr.morx=Wr,Hr.opbd=Vr;let qr=new r.Struct({tag:new r.String(4),checkSum:r.uint32,offset:new r.Pointer(r.uint32,"void",{type:"global"}),length:r.uint32}),Xr=new r.Struct({tag:new r.String(4),numTables:r.uint16,searchRange:r.uint16,entrySelector:r.uint16,rangeShift:r.uint16,tables:new r.Array(qr,"numTables")});Xr.process=function(){let t={};for(let e of this.tables)t[e.tag]=e;this.tables=t},Xr.preEncode=function(){if(!Array.isArray(this.tables)){let t=[];for(let e in this.tables){let n=this.tables[e];n&&t.push({tag:e,checkSum:0,offset:new r.VoidPointer(Gr[e],n),length:Gr[e].size(n)})}this.tables=t}this.tag="true",this.numTables=this.tables.length;let t=Math.floor(Math.log(this.numTables)/Math.LN2),e=Math.pow(2,t);this.searchRange=16*e,this.entrySelector=Math.log(e)/Math.LN2,this.rangeShift=16*this.numTables-this.searchRange};var Zr=Xr;function Yr(t,e){let n=0,r=t.length-1;for(;n<=r;){let i=n+r>>1,s=e(t[i]);if(s<0)r=i-1;else{if(!(s>0))return i;n=i+1}}return-1}function Kr(t,e){let n=[];for(;t>4,n[r++]=(15&s)<<4|o>>2,n[r++]=(3&o)<<6|63&a}return n}class ti{findSubtable(t,e){for(let[n,r]of e)for(let e of t.tables)if(e.platformID===n&&e.encodingID===r)return e.table;return null}lookup(t,e){if(this.encoding)t=this.encoding.get(t)||t;else if(e){let n=this.getVariationSelector(t,e);if(n)return n}let n=this.cmap;switch(n.version){case 0:return n.codeMap.get(t)||0;case 4:{let e=0,r=n.segCount-1;for(;e<=r;){let i=e+r>>1;if(tn.endCode.get(i))){let e,r=n.idRangeOffset.get(i);if(0===r)e=t+n.idDelta.get(i);else{let s=r/2+(t-n.startCode.get(i))-(n.segCount-i);e=n.glyphIndexArray.get(s)||0,0!==e&&(e+=n.idDelta.get(i))}return 65535&e}e=i+1}}return 0}case 8:throw new Error("TODO: cmap format 8");case 6:case 10:return n.glyphIndices.get(t-n.firstCode)||0;case 12:case 13:{let e=0,r=n.nGroups-1;for(;e<=r;){let i=e+r>>1,s=n.groups.get(i);if(ts.endCharCode))return 12===n.version?s.glyphID+(t-s.startCharCode):s.glyphID;e=i+1}}return 0}case 14:throw new Error("TODO: cmap format 14");default:throw new Error(`Unknown cmap format ${n.version}`)}}getVariationSelector(t,e){if(!this.uvs)return 0;let n=this.uvs.varSelectors.toArray(),r=Yr(n,(t=>e-t.varSelector)),i=n[r];return-1!==r&&i.defaultUVS&&(r=Yr(i.defaultUVS,(e=>te.startUnicodeValue+e.additionalCount?1:0))),-1!==r&&i.nonDefaultUVS&&(r=Yr(i.nonDefaultUVS,(e=>t-e.unicodeValue)),-1!==r)?i.nonDefaultUVS[r].glyphID:0}getCharacterSet(){let t=this.cmap;switch(t.version){case 0:return Kr(0,t.codeMap.length);case 4:{let e=[],n=t.endCode.toArray();for(let r=0;r=r.glyphID&&t<=r.glyphID+(r.endCharCode-r.startCharCode)&&n.push(r.startCharCode+(t-r.glyphID));return n}case 13:{let n=[];for(let r of e.groups.toArray())t===r.glyphID&&n.push(...Kr(r.startCharCode,r.endCharCode+1));return n}default:throw new Error(`Unknown cmap format ${e.version}`)}}constructor(t){if(this.encoding=null,this.cmap=this.findSubtable(t,[[3,10],[0,6],[0,4],[3,1],[0,3],[0,2],[0,1],[0,0]]),!this.cmap)for(let e of t.tables){let t=j(F(e.platformID,e.encodingID,e.table.language-1));t&&(this.cmap=e.table,this.encoding=t)}if(!this.cmap)throw new Error("Could not find a supported cmap table");this.uvs=this.findSubtable(t,[[0,5]]),this.uvs&&14!==this.uvs.version&&(this.uvs=null)}}(0,s._)([x],ti.prototype,"getCharacterSet",null),(0,s._)([x],ti.prototype,"codePointsForGlyph",null);class ei{process(t,e){for(let n=0;n=0&&(i=s.pairs[n].value);break;case 2:let o=0,a=0;o=t>=s.leftTable.firstGlyph&&t=s.rightTable.firstGlyph&&e=s.glyphCount||e>=s.glyphCount)return 0;i=s.kernValue[s.kernIndex[s.leftClass[t]*s.rightClassCount+s.rightClass[e]]];break;default:throw new Error(`Unsupported kerning sub-table format ${r.format}`)}r.coverage.override?n=i:n+=i}return n}constructor(t){this.kern=t.kern}}class ni{positionGlyphs(t,e){let n=0,r=0;for(let i=0;i1&&(s.minX+=(i.codePoints.length-1)*s.width/i.codePoints.length);let o=-e[n].xAdvance,a=0,l=this.font.unitsPerEm/16;for(let i=n+1;i<=r;i++){let n=t[i],r=n.cbox,h=e[i],u=this.getCombiningClass(n.codePoints[0]);if("Not_Reordered"!==u){switch(h.xOffset=h.yOffset=0,u){case"Double_Above":case"Double_Below":h.xOffset+=s.minX-r.width/2-r.minX;break;case"Attached_Below_Left":case"Below_Left":case"Above_Left":h.xOffset+=s.minX-r.minX;break;case"Attached_Above_Right":case"Below_Right":case"Above_Right":h.xOffset+=s.maxX-r.width-r.minX;break;default:h.xOffset+=s.minX+(s.width-r.width)/2-r.minX}switch(u){case"Double_Below":case"Below_Left":case"Below":case"Below_Right":case"Attached_Below_Left":case"Attached_Below":"Attached_Below_Left"!==u&&"Attached_Below"!==u||(s.minY+=l),h.yOffset=-s.minY-r.maxY,s.minY+=r.height;break;case"Double_Above":case"Above_Left":case"Above":case"Above_Right":case"Attached_Above":case"Attached_Above_Right":"Attached_Above"!==u&&"Attached_Above_Right"!==u||(s.maxY+=l),h.yOffset=s.maxY-r.minY,s.maxY+=r.height}h.xAdvance=h.yAdvance=0,h.xOffset+=o,h.yOffset+=a}else o-=h.xAdvance,a-=h.yAdvance}}getCombiningClass(t){let e=(0,a.getCombiningClass)(t);if(3584==(-256&t))if("Not_Reordered"===e)switch(t){case 3633:case 3636:case 3637:case 3638:case 3639:case 3655:case 3660:case 3645:case 3662:return"Above_Right";case 3761:case 3764:case 3765:case 3766:case 3767:case 3771:case 3788:case 3789:return"Above";case 3772:return"Below"}else if(3642===t)return"Below_Right";switch(e){case"CCC10":case"CCC11":case"CCC12":case"CCC13":case"CCC14":case"CCC15":case"CCC16":case"CCC17":case"CCC18":case"CCC20":case"CCC22":case"CCC29":case"CCC32":case"CCC118":case"CCC129":case"CCC132":return"Below";case"CCC23":return"Attached_Above";case"CCC24":case"CCC107":return"Above_Right";case"CCC25":case"CCC19":return"Above_Left";case"CCC26":case"CCC27":case"CCC28":case"CCC30":case"CCC31":case"CCC33":case"CCC34":case"CCC35":case"CCC36":case"CCC122":case"CCC130":return"Above";case"CCC21":break;case"CCC103":return"Below_Right"}return e}constructor(t){this.font=t}}class ri{get width(){return this.maxX-this.minX}get height(){return this.maxY-this.minY}addPoint(t,e){Math.abs(t)!==1/0&&(tthis.maxX&&(this.maxX=t)),Math.abs(e)!==1/0&&(ethis.maxY&&(this.maxY=e))}copy(){return new ri(this.minX,this.minY,this.maxX,this.maxY)}constructor(t=1/0,e=1/0,n=-1/0,r=-1/0){this.minX=t,this.minY=e,this.maxX=n,this.maxY=r}}const ii={Caucasian_Albanian:"aghb",Arabic:"arab",Imperial_Aramaic:"armi",Armenian:"armn",Avestan:"avst",Balinese:"bali",Bamum:"bamu",Bassa_Vah:"bass",Batak:"batk",Bengali:["bng2","beng"],Bopomofo:"bopo",Brahmi:"brah",Braille:"brai",Buginese:"bugi",Buhid:"buhd",Chakma:"cakm",Canadian_Aboriginal:"cans",Carian:"cari",Cham:"cham",Cherokee:"cher",Coptic:"copt",Cypriot:"cprt",Cyrillic:"cyrl",Devanagari:["dev2","deva"],Deseret:"dsrt",Duployan:"dupl",Egyptian_Hieroglyphs:"egyp",Elbasan:"elba",Ethiopic:"ethi",Georgian:"geor",Glagolitic:"glag",Gothic:"goth",Grantha:"gran",Greek:"grek",Gujarati:["gjr2","gujr"],Gurmukhi:["gur2","guru"],Hangul:"hang",Han:"hani",Hanunoo:"hano",Hebrew:"hebr",Hiragana:"hira",Pahawh_Hmong:"hmng",Katakana_Or_Hiragana:"hrkt",Old_Italic:"ital",Javanese:"java",Kayah_Li:"kali",Katakana:"kana",Kharoshthi:"khar",Khmer:"khmr",Khojki:"khoj",Kannada:["knd2","knda"],Kaithi:"kthi",Tai_Tham:"lana",Lao:"lao ",Latin:"latn",Lepcha:"lepc",Limbu:"limb",Linear_A:"lina",Linear_B:"linb",Lisu:"lisu",Lycian:"lyci",Lydian:"lydi",Mahajani:"mahj",Mandaic:"mand",Manichaean:"mani",Mende_Kikakui:"mend",Meroitic_Cursive:"merc",Meroitic_Hieroglyphs:"mero",Malayalam:["mlm2","mlym"],Modi:"modi",Mongolian:"mong",Mro:"mroo",Meetei_Mayek:"mtei",Myanmar:["mym2","mymr"],Old_North_Arabian:"narb",Nabataean:"nbat",Nko:"nko ",Ogham:"ogam",Ol_Chiki:"olck",Old_Turkic:"orkh",Oriya:["ory2","orya"],Osmanya:"osma",Palmyrene:"palm",Pau_Cin_Hau:"pauc",Old_Permic:"perm",Phags_Pa:"phag",Inscriptional_Pahlavi:"phli",Psalter_Pahlavi:"phlp",Phoenician:"phnx",Miao:"plrd",Inscriptional_Parthian:"prti",Rejang:"rjng",Runic:"runr",Samaritan:"samr",Old_South_Arabian:"sarb",Saurashtra:"saur",Shavian:"shaw",Sharada:"shrd",Siddham:"sidd",Khudawadi:"sind",Sinhala:"sinh",Sora_Sompeng:"sora",Sundanese:"sund",Syloti_Nagri:"sylo",Syriac:"syrc",Tagbanwa:"tagb",Takri:"takr",Tai_Le:"tale",New_Tai_Lue:"talu",Tamil:["tml2","taml"],Tai_Viet:"tavt",Telugu:["tel2","telu"],Tifinagh:"tfng",Tagalog:"tglg",Thaana:"thaa",Thai:"thai",Tibetan:"tibt",Tirhuta:"tirh",Ugaritic:"ugar",Vai:"vai ",Warang_Citi:"wara",Old_Persian:"xpeo",Cuneiform:"xsux",Yi:"yi ",Inherited:"zinh",Common:"zyyy",Unknown:"zzzz"},si={};for(let t in ii){let e=ii[t];if(Array.isArray(e))for(let n of e)si[n]=t;else si[e]=t}const oi={arab:!0,hebr:!0,syrc:!0,thaa:!0,cprt:!0,khar:!0,phnx:!0,"nko ":!0,lydi:!0,avst:!0,armi:!0,phli:!0,prti:!0,sarb:!0,orkh:!0,samr:!0,mand:!0,merc:!0,mero:!0,mani:!0,mend:!0,nbat:!0,narb:!0,palm:!0,phlp:!0};function ai(t){return oi[t]?"rtl":"ltr"}class li{get advanceWidth(){let t=0;for(let e of this.positions)t+=e.xAdvance;return t}get advanceHeight(){let t=0;for(let e of this.positions)t+=e.yAdvance;return t}get bbox(){let t=new ri,e=0,n=0;for(let r=0;r[ui[t].code,ui[t][e]],fi={rlig:ci("ligatures","requiredLigatures"),clig:ci("ligatures","contextualLigatures"),dlig:ci("ligatures","rareLigatures"),hlig:ci("ligatures","historicalLigatures"),liga:ci("ligatures","commonLigatures"),hist:ci("ligatures","historicalLigatures"),smcp:ci("lowerCase","lowerCaseSmallCaps"),pcap:ci("lowerCase","lowerCasePetiteCaps"),frac:ci("fractions","diagonalFractions"),dnom:ci("fractions","diagonalFractions"),numr:ci("fractions","diagonalFractions"),afrc:ci("fractions","verticalFractions"),case:ci("caseSensitiveLayout","caseSensitiveLayout"),ccmp:ci("unicodeDecomposition","canonicalComposition"),cpct:ci("CJKVerticalRomanPlacement","CJKVerticalRomanCentered"),valt:ci("CJKVerticalRomanPlacement","CJKVerticalRomanCentered"),swsh:ci("contextualAlternates","swashAlternates"),cswh:ci("contextualAlternates","contextualSwashAlternates"),curs:ci("cursiveConnection","cursive"),c2pc:ci("upperCase","upperCasePetiteCaps"),c2sc:ci("upperCase","upperCaseSmallCaps"),init:ci("smartSwash","wordInitialSwashes"),fin2:ci("smartSwash","wordFinalSwashes"),medi:ci("smartSwash","nonFinalSwashes"),med2:ci("smartSwash","nonFinalSwashes"),fin3:ci("smartSwash","wordFinalSwashes"),fina:ci("smartSwash","wordFinalSwashes"),pkna:ci("kanaSpacing","proportionalKana"),half:ci("textSpacing","halfWidthText"),halt:ci("textSpacing","altHalfWidthText"),hkna:ci("alternateKana","alternateHorizKana"),vkna:ci("alternateKana","alternateVertKana"),ital:ci("italicCJKRoman","CJKItalicRoman"),lnum:ci("numberCase","upperCaseNumbers"),onum:ci("numberCase","lowerCaseNumbers"),mgrk:ci("mathematicalExtras","mathematicalGreek"),calt:ci("contextualAlternates","contextualAlternates"),vrt2:ci("verticalSubstitution","substituteVerticalForms"),vert:ci("verticalSubstitution","substituteVerticalForms"),tnum:ci("numberSpacing","monospacedNumbers"),pnum:ci("numberSpacing","proportionalNumbers"),sups:ci("verticalPosition","superiors"),subs:ci("verticalPosition","inferiors"),ordn:ci("verticalPosition","ordinals"),pwid:ci("textSpacing","proportionalText"),hwid:ci("textSpacing","halfWidthText"),qwid:ci("textSpacing","quarterWidthText"),twid:ci("textSpacing","thirdWidthText"),fwid:ci("textSpacing","proportionalText"),palt:ci("textSpacing","altProportionalText"),trad:ci("characterShape","traditionalCharacters"),smpl:ci("characterShape","simplifiedCharacters"),jp78:ci("characterShape","JIS1978Characters"),jp83:ci("characterShape","JIS1983Characters"),jp90:ci("characterShape","JIS1990Characters"),jp04:ci("characterShape","JIS2004Characters"),expt:ci("characterShape","expertCharacters"),hojo:ci("characterShape","hojoCharacters"),nlck:ci("characterShape","NLCCharacters"),tnam:ci("characterShape","traditionalNamesCharacters"),ruby:ci("rubyKana","rubyKana"),titl:ci("styleOptions","titlingCaps"),zero:ci("typographicExtras","slashedZero"),ss01:ci("stylisticAlternatives","stylisticAltOne"),ss02:ci("stylisticAlternatives","stylisticAltTwo"),ss03:ci("stylisticAlternatives","stylisticAltThree"),ss04:ci("stylisticAlternatives","stylisticAltFour"),ss05:ci("stylisticAlternatives","stylisticAltFive"),ss06:ci("stylisticAlternatives","stylisticAltSix"),ss07:ci("stylisticAlternatives","stylisticAltSeven"),ss08:ci("stylisticAlternatives","stylisticAltEight"),ss09:ci("stylisticAlternatives","stylisticAltNine"),ss10:ci("stylisticAlternatives","stylisticAltTen"),ss11:ci("stylisticAlternatives","stylisticAltEleven"),ss12:ci("stylisticAlternatives","stylisticAltTwelve"),ss13:ci("stylisticAlternatives","stylisticAltThirteen"),ss14:ci("stylisticAlternatives","stylisticAltFourteen"),ss15:ci("stylisticAlternatives","stylisticAltFifteen"),ss16:ci("stylisticAlternatives","stylisticAltSixteen"),ss17:ci("stylisticAlternatives","stylisticAltSeventeen"),ss18:ci("stylisticAlternatives","stylisticAltEighteen"),ss19:ci("stylisticAlternatives","stylisticAltNineteen"),ss20:ci("stylisticAlternatives","stylisticAltTwenty")};for(let t=1;t<=99;t++)fi[`cv${`00${t}`.slice(-2)}`]=[ui.characterAlternatives.code,t];let di={};for(let t in fi){let e=fi[t];null==di[e[0]]&&(di[e[0]]={}),di[e[0]][e[1]]=t}function pi(t){let[e,n]=t;if(isNaN(e))var r=ui[e]&&ui[e].code;else r=e;if(isNaN(n))var i=ui[e]&&ui[e][n];else i=n;return[r,i]}class gi{lookup(t){switch(this.table.version){case 0:return this.table.values.getItem(t);case 2:case 4:{let r=0,i=this.table.binarySearchHeader.nUnits-1;for(;r<=i;){var e=r+i>>1;if(65535===(n=this.table.segments[e]).firstGlyph)return null;if(tn.lastGlyph))return 2===this.table.version?n.value:n.values[t-n.firstGlyph];r=e+1}}return null}case 6:{let r=0,i=this.table.binarySearchHeader.nUnits-1;for(;r<=i;){var n;if(e=r+i>>1,65535===(n=this.table.segments[e]).glyph)return null;if(tn.glyph))return n.value;r=e+1}}return null}case 8:return this.table.values[t-this.table.firstGlyph];default:throw new Error(`Unknown lookup table format: ${this.table.version}`)}}glyphsForValue(t){let e=[];switch(this.table.version){case 2:case 4:for(let n of this.table.segments)if(2===this.table.version&&n.value===t)e.push(...Kr(n.firstGlyph,n.lastGlyph+1));else for(let r=0;r=-1;){let e=null,o=1,a=!0;i===t.length||-1===i?o=0:(e=t[i],65535===e.id?o=2:(o=this.lookupTable.lookup(e.id),null==o&&(o=1)));let l=this.stateTable.stateArray.getItem(r)[o],h=this.stateTable.entryTable.getItem(l);0!==o&&2!==o&&(n(e,h,i),a=!(16384&h.flags)),r=h.newState,a&&(i+=s)}return t}traverse(t,e=0,n=new Set){if(n.has(e))return;n.add(e);let{nClasses:r,stateArray:i,entryTable:s}=this.stateTable,o=i.getItem(e);for(let e=4;e=0;)65535===t[n].id&&t.splice(n,1),n--;return t}processSubtable(t,e){if(this.subtable=t,this.glyphs=e,4===this.subtable.type)return void this.processNoncontextualSubstitutions(this.subtable,this.glyphs);this.ligatureStack=[],this.markedGlyph=null,this.firstGlyph=null,this.lastGlyph=null,this.markedIndex=null;let n=this.getStateMachine(t),r=this.getProcessor(),i=!!(this.subtable.coverage&mi);return n.process(this.glyphs,i,r)}getStateMachine(t){return new yi(t.table.stateTable)}getProcessor(){switch(this.subtable.type){case 0:return this.processIndicRearragement;case 1:return this.processContextualSubstitution;case 2:return this.processLigature;case 4:return this.processNoncontextualSubstitutions;case 5:return this.processGlyphInsertion;default:throw new Error(`Invalid morx subtable type: ${this.subtable.type}`)}}processIndicRearragement(t,e,n){32768&e.flags&&(this.firstGlyph=n),8192&e.flags&&(this.lastGlyph=n),function(t,e,n,r){switch(e){case 0:return t;case 1:return wi(t,[n,1],[r,0]);case 2:return wi(t,[n,0],[r,1]);case 3:return wi(t,[n,1],[r,1]);case 4:return wi(t,[n,2],[r,0]);case 5:return wi(t,[n,2],[r,0],!0,!1);case 6:return wi(t,[n,0],[r,2]);case 7:return wi(t,[n,0],[r,2],!1,!0);case 8:return wi(t,[n,1],[r,2]);case 9:return wi(t,[n,1],[r,2],!1,!0);case 10:return wi(t,[n,2],[r,1]);case 11:return wi(t,[n,2],[r,1],!0,!1);case 12:return wi(t,[n,2],[r,2]);case 13:return wi(t,[n,2],[r,2],!0,!1);case 14:return wi(t,[n,2],[r,2],!1,!0);case 15:return wi(t,[n,2],[r,2],!0,!0);default:throw new Error(`Unknown verb: ${e}`)}}(this.glyphs,15&e.flags,this.firstGlyph,this.lastGlyph)}processContextualSubstitution(t,e,n){let r=this.subtable.table.substitutionTable.items;if(65535!==e.markIndex){let n=r.getItem(e.markIndex),s=new gi(n);t=this.glyphs[this.markedGlyph],(i=s.lookup(t.id))&&(this.glyphs[this.markedGlyph]=this.font.getGlyph(i,t.codePoints))}if(65535!==e.currentIndex){let s=r.getItem(e.currentIndex),o=new gi(s);var i;t=this.glyphs[n],(i=o.lookup(t.id))&&(this.glyphs[n]=this.font.getGlyph(i,t.codePoints))}32768&e.flags&&(this.markedGlyph=n)}processLigature(t,e,n){if(32768&e.flags&&this.ligatureStack.push(n),8192&e.flags){let t=this.subtable.table.ligatureActions,n=this.subtable.table.components,r=this.subtable.table.ligatureList,i=e.action,s=!1,o=0,a=[],l=[];for(;!s;){let e=this.ligatureStack.pop();a.unshift(...this.glyphs[e].codePoints);let h=t.getItem(i++);s=!!(2147483648&h);let u=!!(1073741824&h),c=(1073741823&h)<<2>>2;if(c+=this.glyphs[e].id,o+=n.getItem(c),s||u){let t=r.getItem(o);this.glyphs[e]=this.font.getGlyph(t,a),l.push(e),o=0,a=[]}else this.glyphs[e]=this.font.getGlyph(65535)}this.ligatureStack.push(...l)}}processNoncontextualSubstitutions(t,e,n){let r=new gi(t.table.lookupTable);for(n=0;n>>5,n=!!(1024&e.flags);this._insertGlyphs(this.markedIndex,e.markedInsertIndex,t,n)}if(65535!==e.currentInsertIndex){let t=(992&e.flags)>>>5,r=!!(2048&e.flags);this._insertGlyphs(n,e.currentInsertIndex,t,r)}}getSupportedFeatures(){let t=[];for(let e of this.morx.chains)for(let n of e.features)t.push([n.featureType,n.featureSetting]);return t}generateInputs(t){return this.inputCache||this.generateInputCache(),this.inputCache[t]||[]}generateInputCache(){this.inputCache={};for(let t of this.morx.chains){let e=t.defaultFlags;for(let n of t.subtables)n.subFeatureFlags&e&&this.generateInputsForSubtable(n)}}generateInputsForSubtable(t){if(2!==t.type)return;if(t.coverage&mi)throw new Error("Reverse subtable, not supported.");this.subtable=t,this.ligatureStack=[];let e=this.getStateMachine(t),n=this.getProcessor(),r=[],i=[];this.glyphs=[],e.traverse({enter:(t,e)=>{let s=this.glyphs;i.push({glyphs:s.slice(),ligatureStack:this.ligatureStack.slice()});let o=this.font.getGlyph(t);r.push(o),s.push(r[r.length-1]),n(s[s.length-1],e,s.length-1);let a=0,l=0;for(let t=0;tt.id)),e=this.inputCache[l];e?e.push(t):this.inputCache[l]=[t]}},exit:()=>{({glyphs:this.glyphs,ligatureStack:this.ligatureStack}=i.pop()),r.pop()}})}constructor(t){this.processIndicRearragement=this.processIndicRearragement.bind(this),this.processContextualSubstitution=this.processContextualSubstitution.bind(this),this.processLigature=this.processLigature.bind(this),this.processNoncontextualSubstitutions=this.processNoncontextualSubstitutions.bind(this),this.processGlyphInsertion=this.processGlyphInsertion.bind(this),this.font=t,this.morx=t.morx,this.inputCache=null}}function wi(t,e,n,r=!1,i=!1){let s=t.splice(n[0]-(n[1]-1),n[1]);i&&s.reverse();let o=t.splice(e[0],e[1],...s);return r&&o.reverse(),t.splice(n[0]-(e[1]-1),0,...o),t}(0,s._)([x],bi.prototype,"getStateMachine",null);class vi{substitute(t){"rtl"===t.direction&&t.glyphs.reverse(),this.morxProcessor.process(t.glyphs,function(t){let e={};for(let n in t){let r;(r=fi[n])&&(null==e[r[0]]&&(e[r[0]]={}),e[r[0]][r[1]]=t[n])}return e}(t.features))}getAvailableFeatures(t,e){return function(t){let e={};if(Array.isArray(t))for(let n=0;n0&&t.applyFeatures(r,e,n)}constructor(t,e,n){this.font=t,this.script=e,this.direction=n,this.stages=[],this.globalFeatures={},this.allFeatures={}}}const xi=["rvrn"],Si=["ccmp","locl","rlig","mark","mkmk"],_i=["frac","numr","dnom"],Ci=["calt","clig","liga","rclt","curs","kern"],ki={ltr:["ltra","ltrm"],rtl:["rtla","rtlm"]};class Pi{static plan(t,e,n){this.planPreprocessing(t),this.planFeatures(t),this.planPostprocessing(t,n),t.assignGlobalFeatures(e),this.assignFeatures(t,e)}static planPreprocessing(t){t.add({global:[...xi,...ki[t.direction]],local:_i})}static planFeatures(t){}static planPostprocessing(t,e){t.add([...Si,...Ci]),t.setFeatureOverrides(e)}static assignFeatures(t,e){for(let t=0;t0&&(0,a.isDigit)(e[r-1].codePoints[0]);)e[r-1].features.numr=!0,e[r-1].features.frac=!0,r--;for(;ithis.index||this.index>=this.glyphs.length?null:this.glyphs[this.index]}next(){return this.move(1)}prev(){return this.move(-1)}peek(t=1){let e=this.index,n=this.increment(t);return this.index=e,n}peekIndex(t=1){let e=this.index;this.increment(t);let n=this.index;return this.index=e,n}increment(t=1){let e=t<0?-1:1;for(t=Math.abs(t);t--;)this.move(e);return this.glyphs[this.index]}constructor(t,e){this.glyphs=t,this.reset(e)}}const Wi=["DFLT","dflt","latn"];class ji{findScript(t){if(null==this.table.scriptList)return null;Array.isArray(t)||(t=[t]);for(let e of t)for(let t of this.table.scriptList)if(t.tag===e)return t;return null}selectScript(t,e,n){let r,i=!1;if(!this.script||t!==this.scriptTag){if(r=this.findScript(t),r||(r=this.findScript(Wi)),!r)return this.scriptTag;this.scriptTag=r.tag,this.script=r.script,this.language=null,this.languageTag=null,i=!0}if(n&&n===this.direction||(this.direction=n||ai(t)),e&&e.length<4&&(e+=" ".repeat(4-e.length)),!e||e!==this.languageTag){this.language=null;for(let t of this.script.langSysRecords)if(t.tag===e){this.language=t.langSys,this.languageTag=t.tag;break}this.language||(this.language=this.script.defaultLangSys,this.languageTag=null),i=!0}if(i&&(this.features={},this.language))for(let t of this.language.featureIndexes){let e=this.table.featureList[t],n=this.substituteFeatureForVariations(t);this.features[e.tag]=n||e.feature}return this.scriptTag}lookupsForFeatures(t=[],e){let n=[];for(let r of t){let t=this.features[r];if(t)for(let i of t.lookupListIndexes)e&&-1!==e.indexOf(i)||n.push({feature:r,index:i,lookup:this.table.lookupList.get(i)})}return n.sort(((t,e)=>t.index-e.index)),n}substituteFeatureForVariations(t){if(-1===this.variationsIndex)return null;let e=this.table.featureVariations.featureVariationRecords[this.variationsIndex].featureTableSubstitution.substitutions;for(let n of e)if(n.featureIndex===t)return n.alternateFeatureTable;return null}findVariationsIndex(t){let e=this.table.featureVariations;if(!e)return-1;let n=e.featureVariationRecords;for(let e=0;e{let n=t.axisIndext===e.id))}sequenceMatchIndices(t,e){return this.match(t,e,((t,e)=>this.currentFeature in e.features&&t===e.id),[])}coverageSequenceMatches(t,e){return this.match(t,e,((t,e)=>this.coverageIndex(t,e.id)>=0))}getClassID(t,e){switch(e.version){case 1:let n=t-e.startGlyph;if(n>=0&&nt===this.getClassID(e.id,n)))}applyContext(t){let e,n;switch(t.version){case 1:if(e=this.coverageIndex(t.coverage),-1===e)return!1;n=t.ruleSets[e];for(let t of n)if(this.sequenceMatches(1,t.input))return this.applyLookupList(t.lookupRecords);break;case 2:if(-1===this.coverageIndex(t.coverage))return!1;if(e=this.getClassID(this.glyphIterator.cur.id,t.classDef),-1===e)return!1;n=t.classSet[e];for(let e of n)if(this.classSequenceMatches(1,e.classes,t.classDef))return this.applyLookupList(e.lookupRecords);break;case 3:if(this.coverageSequenceMatches(0,t.coverages))return this.applyLookupList(t.lookupRecords)}return!1}applyChainingContext(t){let e;switch(t.version){case 1:if(e=this.coverageIndex(t.coverage),-1===e)return!1;let n=t.chainRuleSets[e];for(let t of n)if(this.sequenceMatches(-t.backtrack.length,t.backtrack)&&this.sequenceMatches(1,t.input)&&this.sequenceMatches(1+t.input.length,t.lookahead))return this.applyLookupList(t.lookupRecords);break;case 2:if(-1===this.coverageIndex(t.coverage))return!1;e=this.getClassID(this.glyphIterator.cur.id,t.inputClassDef);let r=t.chainClassSet[e];if(!r)return!1;for(let e of r)if(this.classSequenceMatches(-e.backtrack.length,e.backtrack,t.backtrackClassDef)&&this.classSequenceMatches(1,e.input,t.inputClassDef)&&this.classSequenceMatches(1+e.input.length,e.lookahead,t.lookaheadClassDef))return this.applyLookupList(e.lookupRecords);break;case 3:if(this.coverageSequenceMatches(-t.backtrackGlyphCount,t.backtrackCoverage)&&this.coverageSequenceMatches(0,t.inputCoverage)&&this.coverageSequenceMatches(t.inputGlyphCount,t.lookaheadCoverage))return this.applyLookupList(t.lookupRecords)}return!1}constructor(t,e){this.font=t,this.table=e,this.script=null,this.scriptTag=null,this.language=null,this.languageTag=null,this.features={},this.lookups={},this.variationsIndex=t._variationProcessor?this.findVariationsIndex(t._variationProcessor.normalizedCoords):-1,this.selectScript(),this.glyphs=[],this.positions=[],this.ligatureID=1,this.currentFeature=null}}class Vi{get id(){return this._id}set id(t){this._id=t,this.substituted=!0;let e=this._font.GDEF;if(e&&e.glyphClassDef){let n=ji.prototype.getClassID(t,e.glyphClassDef);this.isBase=1===n,this.isLigature=2===n,this.isMark=3===n,this.markAttachmentType=e.markAttachClassDef?ji.prototype.getClassID(t,e.markAttachClassDef):0}else this.isMark=this.codePoints.length>0&&this.codePoints.every(a.isMark),this.isBase=!this.isMark,this.isLigature=this.codePoints.length>1,this.markAttachmentType=0}copy(){return new Vi(this._font,this.id,this.codePoints,this.features)}constructor(t,e,n=[],r){if(this._font=t,this.codePoints=n,this.id=e,this.features={},Array.isArray(r))for(let t=0;t4352<=t&&t<=4447||43360<=t&&t<=43388)(t)?1:(t=>4448<=t&&t<=4519||55216<=t&&t<=55238)(t)?2:(t=>4520<=t&&t<=4607||55243<=t&&t<=55291)(t)?3:(t=>t-Gi<11173&&(t-Gi)%28==0)(t)?4:(t=>Gi<=t&&t<=55204)(t)?5:(t=>12334<=t&&t<=12335)(t)?6:0}const Ki=1,Ji=2,Qi=4,$i=5,ts=[[[0,0],[0,1],[0,0],[0,0],[Ki,2],[Ki,3],[$i,0]],[[0,0],[0,1],[Ji,2],[0,0],[Ki,2],[Ki,3],[$i,0]],[[0,0],[0,1],[0,0],[Ji,3],[Ki,2],[Ki,3],[Qi,0]],[[0,0],[0,1],[0,0],[0,0],[Ki,2],[Ki,3],[Qi,0]]];function es(t,e,n){return new Vi(t,t.glyphForCodePoint(e).id,[e],n)}function ns(t,e,n){let r=t[e],i=r.codePoints[0]-Gi,s=Zi+i%28;i=i/28|0;let o=qi+i/21|0,a=Xi+i%21;if(!n.hasGlyphForCodePoint(o)||!n.hasGlyphForCodePoint(a)||s!==Zi&&!n.hasGlyphForCodePoint(s))return e;let l=es(n,o,r.features);l.features.ljmo=!0;let h=es(n,a,r.features);h.features.vjmo=!0;let u=[l,h];if(s>Zi){let t=es(n,s,r.features);t.features.tjmo=!0,u.push(t)}return t.splice(e,1,...u),e+u.length-1}function rs(t,e,n){let r,i,s,o,a=t[e],l=Yi(t[e].codePoints[0]),h=t[e-1].codePoints[0],u=Yi(h);if(4===u&&3===l)r=h,o=a;else{2===l?(i=t[e-1],s=a):(i=t[e-2],s=t[e-1],o=a);let n=i.codePoints[0],h=s.codePoints[0];qi<=(c=n)&&c<=4370&&(t=>Xi<=t&&t<=4469)(h)&&(r=Gi+28*(21*(n-qi)+(h-Xi)))}var c;let f=o&&o.codePoints[0]||Zi;if(null!=r&&(f===Zi||(t=>1<=t&&t<=4546)(f))){let i=r+(f-Zi);if(n.hasGlyphForCodePoint(i)){let r=2===u?3:2;return t.splice(e-r+1,r,es(n,i,a.features)),e-r+1}}return i&&(i.features.ljmo=!0),s&&(s.features.vjmo=!0),o&&(o.features.tjmo=!0),4===u?(ns(t,e-1,n),e+1):e}function is(t,e,n){let r=t[e],i=t[e].codePoints[0];if(0===n.glyphForCodePoint(i).advanceWidth)return;let s=function(t){switch(Yi(t)){case 4:case 5:return 1;case 2:return 2;case 3:return 3}}(t[e-1].codePoints[0]);return t.splice(e,1),t.splice(e-s,0,r)}function ss(t,e,n){let r=t[e],i=t[e].codePoints[0];if(n.hasGlyphForCodePoint(9676)){let s=es(n,9676,r.features),o=0===n.glyphForCodePoint(i).advanceWidth?e:e+1;t.splice(o,0,s),e++}return e}var os,as;os=JSON.parse('{"stateTable":[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,2,3,4,5,6,7,8,9,0,10,11,11,12,13,14,15,16,17],[0,0,0,18,19,20,21,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,28,29,30,31,32,33,0,34,0,0,35,36,0,0,37,0],[0,0,0,38,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,39,0,0,0,40,41,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,43,44,44,8,9,0,0,0,0,12,43,0,0,0,0],[0,0,0,0,43,44,44,8,9,0,0,0,0,0,43,0,0,0,0],[0,0,0,45,46,47,48,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,50,0,0,51,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,52,0,0,0,0,0,0,0,0],[0,0,0,53,54,55,56,57,58,0,59,0,0,60,61,0,0,62,0],[0,0,0,4,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,63,64,0,0,40,41,0,9,0,10,0,0,0,42,0,63,0,0],[0,2,3,4,5,6,7,8,9,0,10,11,11,12,13,0,2,16,0],[0,0,0,18,65,20,21,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,0,66,67,67,8,9,0,10,0,0,0,68,0,0,0,0],[0,0,0,69,0,70,70,0,71,0,72,0,0,0,0,0,0,0,0],[0,0,0,73,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,75,0,0,0,76,77,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,79,80,80,22,23,0,0,0,0,25,79,0,0,0,0],[0,0,0,18,19,20,74,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,81,82,83,84,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,86,0,0,87,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,88,0,0,0,0,0,0,0,0],[0,0,0,18,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,89,90,0,0,76,77,0,23,0,24,0,0,0,78,0,89,0,0],[0,0,0,0,91,92,92,22,23,0,24,0,0,0,93,0,0,0,0],[0,0,0,94,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,96,0,0,0,97,98,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,35,100,0,0,0,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,0,100,0,0,0,0],[0,0,0,102,103,104,105,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,107,0,0,108,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,109,0,0,0,0,0,0,0,0],[0,0,0,28,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,110,111,0,0,97,98,0,33,0,34,0,0,0,99,0,110,0,0],[0,0,0,0,112,113,113,32,33,0,34,0,0,0,114,0,0,0,0],[0,0,0,0,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,0,0,115,116,117,118,8,9,0,10,0,0,119,120,0,0,16,0],[0,0,0,0,0,121,121,0,9,0,10,0,0,0,42,0,0,0,0],[0,39,0,122,0,123,123,8,9,0,10,0,0,0,42,0,39,0,0],[0,124,64,0,0,0,0,0,0,0,0,0,0,0,0,0,124,0,0],[0,39,0,0,0,121,125,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,126,126,8,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,46,47,48,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,47,47,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,127,127,49,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,128,127,127,49,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,129,130,131,132,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,50,0,0,0,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,134,0,0,0,0,0,0,0,0],[0,0,0,135,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,136,0,0,0,137,138,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,140,141,141,57,58,0,0,0,0,60,140,0,0,0,0],[0,0,0,0,140,141,141,57,58,0,0,0,0,0,140,0,0,0,0],[0,0,0,142,143,144,145,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,147,0,0,148,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,149,0,0,0,0,0,0,0,0],[0,0,0,53,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,150,151,0,0,137,138,0,58,0,59,0,0,0,139,0,150,0,0],[0,0,0,0,152,153,153,57,58,0,59,0,0,0,154,0,0,0,0],[0,0,0,155,116,156,157,8,9,0,10,0,0,158,120,0,0,16,0],[0,0,0,0,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,75,3,4,5,159,160,8,161,0,162,0,11,12,163,0,75,16,0],[0,0,0,0,0,40,164,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,0,165,0,0,0,0],[0,124,64,0,0,40,164,0,9,0,10,0,0,0,42,0,124,0,0],[0,0,0,0,0,70,70,0,71,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,71,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,166,0,0,167,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,168,0,0,0,0,0,0,0,0],[0,0,0,0,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,0,0,0,79,80,80,22,23,0,0,0,0,0,79,0,0,0,0],[0,0,0,169,170,171,172,22,23,0,24,0,0,173,174,0,0,27,0],[0,0,0,0,0,175,175,0,23,0,24,0,0,0,78,0,0,0,0],[0,75,0,176,0,177,177,22,23,0,24,0,0,0,78,0,75,0,0],[0,178,90,0,0,0,0,0,0,0,0,0,0,0,0,0,178,0,0],[0,75,0,0,0,175,179,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,180,180,22,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,82,83,84,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,83,83,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,181,181,85,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,182,181,181,85,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,183,184,185,186,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,86,0,0,0,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,188,0,0,0,0,0,0,0,0],[0,0,0,189,170,190,191,22,23,0,24,0,0,192,174,0,0,27,0],[0,0,0,0,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,76,193,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,0,194,0,0,0,0],[0,178,90,0,0,76,193,0,23,0,24,0,0,0,78,0,178,0,0],[0,0,0,0,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,0,100,0,0,0,0],[0,0,0,195,196,197,198,32,33,0,34,0,0,199,200,0,0,37,0],[0,0,0,0,0,201,201,0,33,0,34,0,0,0,99,0,0,0,0],[0,96,0,202,0,203,203,32,33,0,34,0,0,0,99,0,96,0,0],[0,204,111,0,0,0,0,0,0,0,0,0,0,0,0,0,204,0,0],[0,96,0,0,0,201,205,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,206,206,32,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,103,104,105,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,104,104,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,207,207,106,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,208,207,207,106,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,209,210,211,212,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,107,0,0,0,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,214,0,0,0,0,0,0,0,0],[0,0,0,215,196,216,217,32,33,0,34,0,0,218,200,0,0,37,0],[0,0,0,0,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,97,219,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,0,220,0,0,0,0],[0,204,111,0,0,97,219,0,33,0,34,0,0,0,99,0,204,0,0],[0,0,0,221,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,223,0,0,0,40,224,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,119,225,0,0,0,0],[0,0,0,115,116,117,222,8,9,0,10,0,0,119,120,0,0,16,0],[0,0,0,115,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,226,64,0,0,40,224,0,9,0,10,0,0,0,42,0,226,0,0],[0,0,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0],[0,39,0,0,0,121,121,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,44,44,8,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,227,0,228,229,0,9,0,10,0,0,230,0,0,0,0,0],[0,39,0,122,0,121,121,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,231,231,49,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,232,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,130,131,132,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,131,131,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,233,233,133,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,234,233,233,133,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,235,236,237,238,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,0,0,240,241,242,243,57,58,0,59,0,0,244,245,0,0,62,0],[0,0,0,0,0,246,246,0,58,0,59,0,0,0,139,0,0,0,0],[0,136,0,247,0,248,248,57,58,0,59,0,0,0,139,0,136,0,0],[0,249,151,0,0,0,0,0,0,0,0,0,0,0,0,0,249,0,0],[0,136,0,0,0,246,250,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,251,251,57,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,143,144,145,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,144,144,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,252,252,146,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,253,252,252,146,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,254,255,256,257,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,147,0,0,0,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,259,0,0,0,0,0,0,0,0],[0,0,0,260,241,261,262,57,58,0,59,0,0,263,245,0,0,62,0],[0,0,0,0,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,137,264,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,0,265,0,0,0,0],[0,249,151,0,0,137,264,0,58,0,59,0,0,0,139,0,249,0,0],[0,0,0,221,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,158,225,0,0,0,0],[0,0,0,155,116,156,222,8,9,0,10,0,0,158,120,0,0,16,0],[0,0,0,155,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,43,266,266,8,161,0,24,0,0,12,267,0,0,0,0],[0,75,0,176,43,268,268,269,161,0,24,0,0,0,267,0,75,0,0],[0,0,0,0,0,270,0,0,271,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,272,0,0,0,0,0,0,0,0],[0,273,274,0,0,40,41,0,9,0,10,0,0,0,42,0,273,0,0],[0,0,0,40,0,123,123,8,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,121,275,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,166,0,0,0,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,276,0,0,0,0,0,0,0,0],[0,0,0,277,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,279,0,0,0,76,280,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,173,281,0,0,0,0],[0,0,0,169,170,171,278,22,23,0,24,0,0,173,174,0,0,27,0],[0,0,0,169,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,282,90,0,0,76,280,0,23,0,24,0,0,0,78,0,282,0,0],[0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0],[0,75,0,0,0,175,175,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,80,80,22,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,283,0,284,285,0,23,0,24,0,0,286,0,0,0,0,0],[0,75,0,176,0,175,175,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,0,0,22,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,287,287,85,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,288,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,184,185,186,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,185,185,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,289,289,187,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,290,289,289,187,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,291,292,293,294,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,277,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,192,281,0,0,0,0],[0,0,0,189,170,190,278,22,23,0,24,0,0,192,174,0,0,27,0],[0,0,0,189,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,76,0,177,177,22,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,175,296,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,297,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,299,0,0,0,97,300,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,199,301,0,0,0,0],[0,0,0,195,196,197,298,32,33,0,34,0,0,199,200,0,0,37,0],[0,0,0,195,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,302,111,0,0,97,300,0,33,0,34,0,0,0,99,0,302,0,0],[0,0,0,0,0,0,0,0,33,0,0,0,0,0,0,0,0,0,0],[0,96,0,0,0,201,201,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,101,101,32,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,303,0,304,305,0,33,0,34,0,0,306,0,0,0,0,0],[0,96,0,202,0,201,201,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,307,307,106,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,308,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,210,211,212,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,211,211,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,309,309,213,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,310,309,309,213,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,311,312,313,314,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,297,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,218,301,0,0,0,0],[0,0,0,215,196,216,298,32,33,0,34,0,0,218,200,0,0,37,0],[0,0,0,215,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,97,0,203,203,32,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,201,316,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,0,225,0,0,0,0],[0,0,0,317,318,319,320,8,9,0,10,0,0,321,322,0,0,16,0],[0,223,0,323,0,123,123,8,9,0,10,0,0,0,42,0,223,0,0],[0,223,0,0,0,121,324,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,325,318,326,327,8,9,0,10,0,0,328,322,0,0,16,0],[0,0,0,64,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,9,0,0,0,0,230,0,0,0,0,0],[0,0,0,227,0,228,121,0,9,0,10,0,0,230,0,0,0,0,0],[0,0,0,227,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,49,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,46,0,0],[0,0,0,0,0,329,329,133,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,330,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,236,237,238,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,237,237,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,331,331,239,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,332,331,331,239,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,333,40,121,334,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,335,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,337,0,0,0,137,338,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,244,339,0,0,0,0],[0,0,0,240,241,242,336,57,58,0,59,0,0,244,245,0,0,62,0],[0,0,0,240,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,340,151,0,0,137,338,0,58,0,59,0,0,0,139,0,340,0,0],[0,0,0,0,0,0,0,0,58,0,0,0,0,0,0,0,0,0,0],[0,136,0,0,0,246,246,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,141,141,57,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,341,0,342,343,0,58,0,59,0,0,344,0,0,0,0,0],[0,136,0,247,0,246,246,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,0,0,57,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,345,345,146,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,346,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,255,256,257,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,256,256,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,347,347,258,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,348,347,347,258,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,349,350,351,352,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,335,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,263,339,0,0,0,0],[0,0,0,260,241,261,336,57,58,0,59,0,0,263,245,0,0,62,0],[0,0,0,260,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,137,0,248,248,57,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,246,354,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,126,126,8,23,0,0,0,0,0,0,0,0,0,0],[0,355,90,0,0,121,125,0,9,0,10,0,0,0,42,0,355,0,0],[0,0,0,0,0,356,356,269,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,357,358,359,360,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,270,0,0,0,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,363,0,0,0,0,0,0,0,0],[0,0,0,364,116,365,366,8,161,0,162,0,0,367,120,0,0,16,0],[0,0,0,0,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,40,0,121,121,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,0,281,0,0,0,0],[0,0,0,369,370,371,372,22,23,0,24,0,0,373,374,0,0,27,0],[0,279,0,375,0,177,177,22,23,0,24,0,0,0,78,0,279,0,0],[0,279,0,0,0,175,376,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,377,370,378,379,22,23,0,24,0,0,380,374,0,0,27,0],[0,0,0,90,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,23,0,0,0,0,286,0,0,0,0,0],[0,0,0,283,0,284,175,0,23,0,24,0,0,286,0,0,0,0,0],[0,0,0,283,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,85,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,82,0,0],[0,0,0,0,0,381,381,187,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,382,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,292,293,294,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,293,293,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,383,383,295,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,384,383,383,295,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,385,76,175,386,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,76,0,175,175,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,0,301,0,0,0,0],[0,0,0,387,388,389,390,32,33,0,34,0,0,391,392,0,0,37,0],[0,299,0,393,0,203,203,32,33,0,34,0,0,0,99,0,299,0,0],[0,299,0,0,0,201,394,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,395,388,396,397,32,33,0,34,0,0,398,392,0,0,37,0],[0,0,0,111,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,33,0,0,0,0,306,0,0,0,0,0],[0,0,0,303,0,304,201,0,33,0,34,0,0,306,0,0,0,0,0],[0,0,0,303,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,106,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,0,0],[0,0,0,0,0,399,399,213,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,400,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,312,313,314,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,313,313,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,401,401,315,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,402,401,401,315,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,403,97,201,404,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,97,0,201,201,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,405,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,407,0,0,0,40,408,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,321,409,0,0,0,0],[0,0,0,317,318,319,406,8,9,0,10,0,0,321,322,0,0,16,0],[0,0,0,317,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,410,64,0,0,40,408,0,9,0,10,0,0,0,42,0,410,0,0],[0,223,0,0,0,121,121,0,9,0,10,0,0,0,42,0,223,0,0],[0,223,0,323,0,121,121,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,405,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,328,409,0,0,0,0],[0,0,0,325,318,326,406,8,9,0,10,0,0,328,322,0,0,16,0],[0,0,0,325,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,0,0,0,133,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,130,0,0],[0,0,0,0,0,411,411,239,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,412,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,40,121,334,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,413,0,0,0,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,0,339,0,0,0,0],[0,0,0,414,415,416,417,57,58,0,59,0,0,418,419,0,0,62,0],[0,337,0,420,0,248,248,57,58,0,59,0,0,0,139,0,337,0,0],[0,337,0,0,0,246,421,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,422,415,423,424,57,58,0,59,0,0,425,419,0,0,62,0],[0,0,0,151,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,58,0,0,0,0,344,0,0,0,0,0],[0,0,0,341,0,342,246,0,58,0,59,0,0,344,0,0,0,0,0],[0,0,0,341,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,146,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,143,0,0],[0,0,0,0,0,426,426,258,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,427,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,350,351,352,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,351,351,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,428,428,353,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,429,428,428,353,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,430,137,246,431,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,137,0,246,246,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,432,116,433,434,8,161,0,162,0,0,435,120,0,0,16,0],[0,0,0,0,0,180,180,269,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,358,359,360,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,359,359,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,436,436,361,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,437,436,436,361,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,438,439,440,441,442,161,0,162,0,0,0,362,0,0,0,0],[0,443,274,0,0,0,0,0,0,0,0,0,0,0,0,0,443,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,444,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,367,225,0,0,0,0],[0,0,0,364,116,365,445,8,161,0,162,0,0,367,120,0,0,16,0],[0,0,0,364,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,0,0,0,0,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,446,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,448,0,0,0,76,449,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,373,450,0,0,0,0],[0,0,0,369,370,371,447,22,23,0,24,0,0,373,374,0,0,27,0],[0,0,0,369,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,451,90,0,0,76,449,0,23,0,24,0,0,0,78,0,451,0,0],[0,279,0,0,0,175,175,0,23,0,24,0,0,0,78,0,279,0,0],[0,279,0,375,0,175,175,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,446,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,380,450,0,0,0,0],[0,0,0,377,370,378,447,22,23,0,24,0,0,380,374,0,0,27,0],[0,0,0,377,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,0,0,0,187,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,184,0,0],[0,0,0,0,0,452,452,295,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,453,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,76,175,386,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,454,0,0,0,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,455,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,457,0,0,0,97,458,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,391,459,0,0,0,0],[0,0,0,387,388,389,456,32,33,0,34,0,0,391,392,0,0,37,0],[0,0,0,387,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,460,111,0,0,97,458,0,33,0,34,0,0,0,99,0,460,0,0],[0,299,0,0,0,201,201,0,33,0,34,0,0,0,99,0,299,0,0],[0,299,0,393,0,201,201,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,455,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,398,459,0,0,0,0],[0,0,0,395,388,396,456,32,33,0,34,0,0,398,392,0,0,37,0],[0,0,0,395,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,0,0,0,213,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,210,0,0],[0,0,0,0,0,461,461,315,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,462,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,97,201,404,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,463,0,0,0,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,0,409,0,0,0,0],[0,0,0,464,465,466,467,8,9,0,10,0,0,468,469,0,0,16,0],[0,407,0,470,0,123,123,8,9,0,10,0,0,0,42,0,407,0,0],[0,407,0,0,0,121,471,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,472,465,473,474,8,9,0,10,0,0,475,469,0,0,16,0],[0,0,0,0,0,0,0,239,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,236,0,0],[0,0,0,0,0,0,476,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,477,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,479,0,0,0,137,480,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,418,481,0,0,0,0],[0,0,0,414,415,416,478,57,58,0,59,0,0,418,419,0,0,62,0],[0,0,0,414,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,482,151,0,0,137,480,0,58,0,59,0,0,0,139,0,482,0,0],[0,337,0,0,0,246,246,0,58,0,59,0,0,0,139,0,337,0,0],[0,337,0,420,0,246,246,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,477,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,425,481,0,0,0,0],[0,0,0,422,415,423,478,57,58,0,59,0,0,425,419,0,0,62,0],[0,0,0,422,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,0,0,0,258,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,0,0],[0,0,0,0,0,483,483,353,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,484,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,137,246,431,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,485,0,0,0,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,444,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,435,225,0,0,0,0],[0,0,0,432,116,433,445,8,161,0,162,0,0,435,120,0,0,16,0],[0,0,0,432,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,0,486,486,361,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,487,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,439,440,441,442,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,440,440,442,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,488,488,442,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,489,488,488,442,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,490,491,492,493,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,495,0,496,497,0,161,0,162,0,0,498,0,0,0,0,0],[0,0,0,0,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,0,225,0,0,0,0],[0,0,0,0,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,0,450,0,0,0,0],[0,0,0,499,500,501,502,22,23,0,24,0,0,503,504,0,0,27,0],[0,448,0,505,0,177,177,22,23,0,24,0,0,0,78,0,448,0,0],[0,448,0,0,0,175,506,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,507,500,508,509,22,23,0,24,0,0,510,504,0,0,27,0],[0,0,0,0,0,0,0,295,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,292,0,0],[0,0,0,0,0,0,511,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,0,459,0,0,0,0],[0,0,0,512,513,514,515,32,33,0,34,0,0,516,517,0,0,37,0],[0,457,0,518,0,203,203,32,33,0,34,0,0,0,99,0,457,0,0],[0,457,0,0,0,201,519,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,520,513,521,522,32,33,0,34,0,0,523,517,0,0,37,0],[0,0,0,0,0,0,0,315,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,312,0,0],[0,0,0,0,0,0,524,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,525,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,527,0,0,0,40,528,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,468,529,0,0,0,0],[0,0,0,464,465,466,526,8,9,0,10,0,0,468,469,0,0,16,0],[0,0,0,464,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,530,64,0,0,40,528,0,9,0,10,0,0,0,42,0,530,0,0],[0,407,0,0,0,121,121,0,9,0,10,0,0,0,42,0,407,0,0],[0,407,0,470,0,121,121,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,525,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,475,529,0,0,0,0],[0,0,0,472,465,473,526,8,9,0,10,0,0,475,469,0,0,16,0],[0,0,0,472,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,40,0,0],[0,0,0,0,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,0,481,0,0,0,0],[0,0,0,531,532,533,534,57,58,0,59,0,0,535,536,0,0,62,0],[0,479,0,537,0,248,248,57,58,0,59,0,0,0,139,0,479,0,0],[0,479,0,0,0,246,538,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,539,532,540,541,57,58,0,59,0,0,542,536,0,0,62,0],[0,0,0,0,0,0,0,353,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,350,0,0],[0,0,0,0,0,0,543,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,361,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,358,0,0],[0,0,0,0,0,544,544,442,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,545,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,491,492,493,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,492,492,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,546,546,494,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,547,546,546,494,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,548,549,368,550,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,274,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,161,0,0,0,0,498,0,0,0,0,0],[0,0,0,495,0,496,368,0,161,0,162,0,0,498,0,0,0,0,0],[0,0,0,495,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,551,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,553,0,0,0,76,554,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,503,555,0,0,0,0],[0,0,0,499,500,501,552,22,23,0,24,0,0,503,504,0,0,27,0],[0,0,0,499,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,556,90,0,0,76,554,0,23,0,24,0,0,0,78,0,556,0,0],[0,448,0,0,0,175,175,0,23,0,24,0,0,0,78,0,448,0,0],[0,448,0,505,0,175,175,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,551,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,510,555,0,0,0,0],[0,0,0,507,500,508,552,22,23,0,24,0,0,510,504,0,0,27,0],[0,0,0,507,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,76,0,0],[0,0,0,557,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,559,0,0,0,97,560,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,516,561,0,0,0,0],[0,0,0,512,513,514,558,32,33,0,34,0,0,516,517,0,0,37,0],[0,0,0,512,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,562,111,0,0,97,560,0,33,0,34,0,0,0,99,0,562,0,0],[0,457,0,0,0,201,201,0,33,0,34,0,0,0,99,0,457,0,0],[0,457,0,518,0,201,201,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,557,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,523,561,0,0,0,0],[0,0,0,520,513,521,558,32,33,0,34,0,0,523,517,0,0,37,0],[0,0,0,520,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,0,0],[0,0,0,0,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,0,529,0,0,0,0],[0,0,0,563,66,564,565,8,9,0,10,0,0,566,68,0,0,16,0],[0,527,0,567,0,123,123,8,9,0,10,0,0,0,42,0,527,0,0],[0,527,0,0,0,121,568,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,569,66,570,571,8,9,0,10,0,0,572,68,0,0,16,0],[0,0,0,573,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,575,0,0,0,137,576,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,535,577,0,0,0,0],[0,0,0,531,532,533,574,57,58,0,59,0,0,535,536,0,0,62,0],[0,0,0,531,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,578,151,0,0,137,576,0,58,0,59,0,0,0,139,0,578,0,0],[0,479,0,0,0,246,246,0,58,0,59,0,0,0,139,0,479,0,0],[0,479,0,537,0,246,246,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,573,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,542,577,0,0,0,0],[0,0,0,539,532,540,574,57,58,0,59,0,0,542,536,0,0,62,0],[0,0,0,539,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,137,0,0],[0,0,0,0,0,0,0,442,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,439,0,0],[0,0,0,0,0,579,579,494,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,580,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,549,368,550,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,368,368,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,581,0,0,0,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,0,555,0,0,0,0],[0,0,0,582,91,583,584,22,23,0,24,0,0,585,93,0,0,27,0],[0,553,0,586,0,177,177,22,23,0,24,0,0,0,78,0,553,0,0],[0,553,0,0,0,175,587,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,588,91,589,590,22,23,0,24,0,0,591,93,0,0,27,0],[0,0,0,0,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,0,561,0,0,0,0],[0,0,0,592,112,593,594,32,33,0,34,0,0,595,114,0,0,37,0],[0,559,0,596,0,203,203,32,33,0,34,0,0,0,99,0,559,0,0],[0,559,0,0,0,201,597,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,598,112,599,600,32,33,0,34,0,0,601,114,0,0,37,0],[0,0,0,602,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,566,165,0,0,0,0],[0,0,0,563,66,564,67,8,9,0,10,0,0,566,68,0,0,16,0],[0,0,0,563,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,527,0,0,0,121,121,0,9,0,10,0,0,0,42,0,527,0,0],[0,527,0,567,0,121,121,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,602,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,572,165,0,0,0,0],[0,0,0,569,66,570,67,8,9,0,10,0,0,572,68,0,0,16,0],[0,0,0,569,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,0,577,0,0,0,0],[0,0,0,603,152,604,605,57,58,0,59,0,0,606,154,0,0,62,0],[0,575,0,607,0,248,248,57,58,0,59,0,0,0,139,0,575,0,0],[0,575,0,0,0,246,608,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,609,152,610,611,57,58,0,59,0,0,612,154,0,0,62,0],[0,0,0,0,0,0,0,494,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,491,0,0],[0,0,0,0,0,0,613,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,614,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,585,194,0,0,0,0],[0,0,0,582,91,583,92,22,23,0,24,0,0,585,93,0,0,27,0],[0,0,0,582,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,553,0,0,0,175,175,0,23,0,24,0,0,0,78,0,553,0,0],[0,553,0,586,0,175,175,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,614,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,591,194,0,0,0,0],[0,0,0,588,91,589,92,22,23,0,24,0,0,591,93,0,0,27,0],[0,0,0,588,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,615,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,595,220,0,0,0,0],[0,0,0,592,112,593,113,32,33,0,34,0,0,595,114,0,0,37,0],[0,0,0,592,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,559,0,0,0,201,201,0,33,0,34,0,0,0,99,0,559,0,0],[0,559,0,596,0,201,201,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,615,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,601,220,0,0,0,0],[0,0,0,598,112,599,113,32,33,0,34,0,0,601,114,0,0,37,0],[0,0,0,598,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,616,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,606,265,0,0,0,0],[0,0,0,603,152,604,153,57,58,0,59,0,0,606,154,0,0,62,0],[0,0,0,603,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,575,0,0,0,246,246,0,58,0,59,0,0,0,139,0,575,0,0],[0,575,0,607,0,246,246,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,616,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,612,265,0,0,0,0],[0,0,0,609,152,610,153,57,58,0,59,0,0,612,154,0,0,62,0],[0,0,0,609,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,549,0,0],[0,0,0,0,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0]],"accepting":[false,true,true,true,true,true,false,false,true,true,true,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,true,true,true,true,true,true,false,true,false,true,true,false,false,true,true,true,true,true,true,false,false,true,true,true,true,true,true,true,true,true,true,false,true,true,false,true,true,true,false,true,true,true,false,true,false,true,true,false,false,true,true,true,true,true,true,true,false,true,true,false,true,true,true,false,true,false,true,true,false,false,true,true,true,true,true,true,true,false,true,true,true,false,true,true,true,false,true,false,true,true,false,false,false,true,true,false,false,true,true,true,true,true,true,false,true,false,true,true,false,false,true,true,true,true,true,true,true,false,true,true,false,true,true,true,true,true,true,true,true,true,true,true,true,true,true,false,true,true,true,false,true,false,true,true,false,false,false,true,true,false,false,true,true,true,false,true,true,true,true,true,true,false,true,true,true,false,true,false,true,true,false,false,false,true,true,false,false,true,true,true,false,true,true,true,true,true,false,true,true,true,true,true,false,true,true,false,false,false,false,true,true,false,false,true,true,true,false,true,true,true,false,true,false,true,true,false,false,false,true,true,false,false,true,true,true,false,true,true,true,true,false,true,false,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,false,true,true,false,false,false,false,true,true,false,false,true,true,true,false,true,true,true,true,true,false,true,true,false,false,false,false,true,true,false,false,true,true,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,true,false,true,false,true,true,true,true,true,false,true,true,false,false,false,false,true,true,false,false,true,true,true,false,true,true,false,false,true,false,true,true,false,true,true,false,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,true,false,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,true,false,true,false,true,true,true,true,false,false,false,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,true,false,true,false,true,true,false,false,true,true,false,false,true,true,true,false,true,false,true,true,true,true,false,false,false,true,false,true,true,true,true,false,false,false,true,true,false,true,true,true,true,true,true,false,true,true,false,true,false,true,true,true,true,false,false,false,false,false,false,false,true,true,false,false,true,true,false,true,true,true,true,false,true,true,true,true,true,true,false,true,true,false,true,true,false,true,true,true,true,true,true,false,true,true,false,true,false,true,true,true,true,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,false,true,true,false,true,false,true,true,true,true,true,false,true,true,true,true,true,false,true,true,true,true,true,false,true,true,true,false,true,true,true,true,false,false,false,true,false,true,true,true,true,true,false,true,true,true,false,true,true,true,true,true,false,true,true,true,true,false,true,true,true,true,true,false,true,true,false,true,true,true],"tags":[[],["broken_cluster"],["consonant_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["consonant_syllable"],["broken_cluster"],["symbol_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["broken_cluster"],["broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],[],["broken_cluster"],["symbol_cluster"],[],["symbol_cluster"],["symbol_cluster"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["symbol_cluster"],["symbol_cluster"],["symbol_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],["symbol_cluster"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],[],["broken_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],[],["consonant_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],[],["vowel_syllable"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],[],[],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],["standalone_cluster"],[],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],[],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],[],[],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],[],[],[],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],["consonant_syllable"],["vowel_syllable"],["standalone_cluster"]]}'),as=JSON.parse('{"categories":["O","IND","S","GB","B","FM","CGJ","VMAbv","VMPst","VAbv","VPst","CMBlw","VPre","VBlw","H","VMBlw","CMAbv","MBlw","CS","R","SUB","MPst","MPre","FAbv","FPst","FBlw","null","SMAbv","SMBlw","VMPre","ZWNJ","ZWJ","WJ","M","VS","N","HN","MAbv"],"decompositions":{"2507":[2503,2494],"2508":[2503,2519],"2888":[2887,2902],"2891":[2887,2878],"2892":[2887,2903],"3018":[3014,3006],"3019":[3015,3006],"3020":[3014,3031],"3144":[3142,3158],"3264":[3263,3285],"3271":[3270,3285],"3272":[3270,3286],"3274":[3270,3266],"3275":[3270,3266,3285],"3402":[3398,3390],"3403":[3399,3390],"3404":[3398,3415],"3546":[3545,3530],"3548":[3545,3535],"3549":[3545,3535,3530],"3550":[3545,3551],"3635":[3661,3634],"3763":[3789,3762],"3955":[3953,3954],"3957":[3953,3956],"3958":[4018,3968],"3959":[4018,3953,3968],"3960":[4019,3968],"3961":[4019,3953,3968],"3969":[3953,3968],"6971":[6970,6965],"6973":[6972,6965],"6976":[6974,6965],"6977":[6975,6965],"6979":[6978,6965],"69934":[69937,69927],"69935":[69938,69927],"70475":[70471,70462],"70476":[70471,70487],"70843":[70841,70842],"70844":[70841,70832],"70846":[70841,70845],"71098":[71096,71087],"71099":[71097,71087]},"stateTable":[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[2,2,3,4,4,5,0,6,7,8,9,10,11,12,13,14,15,16,0,17,18,11,19,20,21,22,0,0,0,23,0,0,2,0,0,24,0,25],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,26,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,27,28,0,0,0,0,0,27,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,39,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,39,0,0,47],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,0,0,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,9,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,10,11,12,13,14,0,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,9,0,0,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,10,11,12,13,14,15,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,0,0,0,0,11,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,4,4,5,0,6,7,8,9,10,11,12,13,14,15,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,48,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,49,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,16,0,0,0,11,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,50,0,51,0],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,16,0,0,0,11,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,27,28,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,28,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,31,0,0,0,0,0,0,0,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,0,0,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,33,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,0,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,33,0,0,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,41,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,39,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,0,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,52,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,53,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,40,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,40,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,0,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,48,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,51,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,0,0],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,0,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,52,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,50,0,51,0]],"accepting":[false,true,true,true,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true],"tags":[[],["broken_cluster"],["independent_cluster"],["symbol_cluster"],["standard_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["numeral_cluster"],["broken_cluster"],["independent_cluster"],["symbol_cluster"],["symbol_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["virama_terminated_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["broken_cluster"],["broken_cluster"],["numeral_cluster"],["number_joiner_terminated_cluster"],["standard_cluster"],["standard_cluster"],["numeral_cluster"]]}');const ls=1,hs=8,us=16,cs=32,fs=64,ds=128,ps=8192,gs=32768,ys=65536,ms=131072,bs={Start:1,Ra_To_Become_Reph:2,Pre_M:4,Pre_C:8,Base_C:16,After_Main:32,Above_C:64,Before_Sub:128,Below_C:256,After_Sub:512,Before_Post:1024,Post_C:2048,After_Post:4096,Final_C:8192,SMVD:16384,End:32768},ws=2|ys|ms|4|2048|4096,vs=fs|cs,As=us|16384,xs={Default:{hasOldSpec:!1,virama:0,basePos:"Last",rephPos:bs.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Devanagari:{hasOldSpec:!0,virama:2381,basePos:"Last",rephPos:bs.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Bengali:{hasOldSpec:!0,virama:2509,basePos:"Last",rephPos:bs.After_Sub,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Gurmukhi:{hasOldSpec:!0,virama:2637,basePos:"Last",rephPos:bs.Before_Sub,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Gujarati:{hasOldSpec:!0,virama:2765,basePos:"Last",rephPos:bs.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Oriya:{hasOldSpec:!0,virama:2893,basePos:"Last",rephPos:bs.After_Main,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Tamil:{hasOldSpec:!0,virama:3021,basePos:"Last",rephPos:bs.After_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Telugu:{hasOldSpec:!0,virama:3149,basePos:"Last",rephPos:bs.After_Post,rephMode:"Explicit",blwfMode:"Post_Only"},Kannada:{hasOldSpec:!0,virama:3277,basePos:"Last",rephPos:bs.After_Post,rephMode:"Implicit",blwfMode:"Post_Only"},Malayalam:{hasOldSpec:!0,virama:3405,basePos:"Last",rephPos:bs.After_Main,rephMode:"Log_Repha",blwfMode:"Pre_And_Post"},Khmer:{hasOldSpec:!1,virama:6098,basePos:"First",rephPos:bs.Ra_To_Become_Reph,rephMode:"Vis_Repha",blwfMode:"Pre_And_Post"}},Ss={6078:[6081,6078],6079:[6081,6079],6080:[6081,6080],6084:[6081,6084],6085:[6081,6085]},{decompositions:_s}=p(as),Cs=new(p(l))($r("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")),ks=new(p(h))(p(os));class Ps extends Pi{static planFeatures(t){var e;t.addStage(Is),t.addStage(["locl","ccmp"]),t.addStage(Ns),t.addStage("nukt"),t.addStage("akhn"),t.addStage("rphf",!1),t.addStage("rkrf"),t.addStage("pref",!1),t.addStage("blwf",!1),t.addStage("abvf",!1),t.addStage("half",!1),t.addStage("pstf",!1),t.addStage("vatu"),t.addStage("cjct"),t.addStage("cfar",!1),t.addStage(Fs),t.addStage({local:["init"],global:["pres","abvs","blws","psts","haln","dist","abvm","blwm","calt","clig"]}),t.unicodeScript=(e=t.script,si[e]),t.indicConfig=xs[t.unicodeScript]||xs.Default,t.isOldSpec=t.indicConfig.hasOldSpec&&"2"!==t.script[t.script.length-1]}static assignFeatures(t,e){for(let n=e.length-1;n>=0;n--){let r=e[n].codePoints[0],i=Ss[r]||_s[r];if(i){let r=i.map((r=>{let i=t.font.glyphForCodePoint(r);return new Vi(t.font,i.id,[r],e[n].features)}));e.splice(n,1,...r)}}}}function Es(t){return Cs.get(t.codePoints[0])>>8}function Ts(t){return 1<<(255&Cs.get(t.codePoints[0]))}(0,i._)(Ps,"zeroMarkWidths","NONE");class Os{constructor(t,e,n,r){this.category=t,this.position=e,this.syllableType=n,this.syllable=r}}function Is(t,e){let n=0,r=0;for(let[t,i,s]of ks.match(e.map(Es))){if(t>r){++n;for(let i=r;ic);break}case"First":u=o;for(let t=u+1;tn&&!(Ls(e[r])||t&&e[r].shaperInfo.category===us);r--);if(e[r].shaperInfo.category!==us&&r>n){let t=e[n];e.splice(n,0,...e.splice(n+1,r-n)),e[r]=t}break}}let d=bs.Start;for(let t=o;to;r--)if(e[r-1].shaperInfo.position!==bs.Pre_M){n.position=e[r-1].shaperInfo.position;break}}else n.position!==bs.SMVD&&(d=n.position)}let p=u;for(let t=u+1;tt.shaperInfo.position-e.shaperInfo.position)),e.splice(o,g.length,...g);for(let t=o;to&&!Ls(e[r]))}}}function Fs(t,e,n){let r=n.indicConfig,i=t._layoutEngine.engine.GSUBProcessor.features;for(let t=0,s=Us(e,0);t=bs.Base_C){if(o&&l+1bs.Base_C&&l--;break}if(l===s&&tt&&!(e[r].shaperInfo.category&(ds|As));)r--;Ms(e[r])&&e[r].shaperInfo.position!==bs.Pre_M?r+1t;n--)if(e[n-1].shaperInfo.position===bs.Pre_M){let t=n-1;tt&&e[n].shaperInfo.position===bs.SMVD;)n--;if(Ms(e[n]))for(let t=l+1;tt&&!(e[i-1].shaperInfo.category&(ds|As));)i--;if(i>t&&e[i-1].shaperInfo.category===ds){let t=r;for(let n=l+1;nt&&Ms(e[i-1])&&i=t.length)return e;let n=t[e].shaperInfo.syllable;for(;++e=0;n--){let r=e[n].codePoints[0];if(Ws[r]){let i=Ws[r].map((r=>{let i=t.font.glyphForCodePoint(r);return new Vi(t.font,i.id,[r],e[n].features)}));e.splice(n,1,...i)}}}}function Gs(t){return js.get(t.codePoints[0])}(0,i._)(Hs,"zeroMarkWidths","BEFORE_GPOS");class qs{constructor(t,e,n){this.category=t,this.syllableType=e,this.syllable=n}}function Xs(t,e){let n=0;for(let[t,r,i]of Vs.match(e.map(Gs))){++n;for(let s=t;s<=r;s++)e[s].shaperInfo=new qs(zs[Gs(e[s])],i[0],n);let s="R"===e[t].shaperInfo.category?1:Math.min(3,r-t);for(let n=t;n1)for(s=r+1;s=t.length)return e;let n=t[e].shaperInfo.syllable;for(;++e{let n=new Vi(this.font,t,void 0,r);return n.shaperInfo=i.shaperInfo,n.isLigated=i.isLigated,n.ligatureComponent=e+1,n.substituted=!0,n.isMultiplied=!0,n}));return this.glyphs.splice(this.glyphIterator.index+1,0,...s),!0}return!1}case 3:{let t=this.coverageIndex(e.coverage);if(-1!==t){let n=0;return this.glyphIterator.cur.id=e.alternateSet.get(t)[n],!0}return!1}case 4:{let t=this.coverageIndex(e.coverage);if(-1===t)return!1;for(let r of e.ligatureSets.get(t)){let t=this.sequenceMatchIndices(1,r.components);if(!t)continue;let e=this.glyphIterator.cur,i=e.codePoints.slice();for(let e of t)i.push(...this.glyphs[e].codePoints);let s=new Vi(this.font,r.glyph,i,e.features);s.shaperInfo=e.shaperInfo,s.isLigated=!0,s.substituted=!0;let o=e.isMark;for(let e=0;e=0;e--)this.glyphs.splice(t[e],1);return this.glyphs[this.glyphIterator.index]=s,!0}return!1}case 5:return this.applyContext(e);case 6:return this.applyChainingContext(e);case 7:return this.applyLookup(e.lookupType,e.extension);default:throw new Error(`GSUB lookupType ${t} is not supported`)}}}class ro extends ji{applyPositionValue(t,e){let n=this.positions[this.glyphIterator.peekIndex(t)];null!=e.xAdvance&&(n.xAdvance+=e.xAdvance),null!=e.yAdvance&&(n.yAdvance+=e.yAdvance),null!=e.xPlacement&&(n.xOffset+=e.xPlacement),null!=e.yPlacement&&(n.yOffset+=e.yPlacement);let r=this.font._variationProcessor,i=this.font.GDEF&&this.font.GDEF.itemVariationStore;r&&i&&(e.xPlaDevice&&(n.xOffset+=r.getDelta(i,e.xPlaDevice.a,e.xPlaDevice.b)),e.yPlaDevice&&(n.yOffset+=r.getDelta(i,e.yPlaDevice.a,e.yPlaDevice.b)),e.xAdvDevice&&(n.xAdvance+=r.getDelta(i,e.xAdvDevice.a,e.xAdvDevice.b)),e.yAdvDevice&&(n.yAdvance+=r.getDelta(i,e.yAdvDevice.a,e.yAdvDevice.b)))}applyLookup(t,e){switch(t){case 1:{let t=this.coverageIndex(e.coverage);if(-1===t)return!1;switch(e.version){case 1:this.applyPositionValue(0,e.value);break;case 2:this.applyPositionValue(0,e.values.get(t))}return!0}case 2:{let t=this.glyphIterator.peek();if(!t)return!1;let r=this.coverageIndex(e.coverage);if(-1===r)return!1;switch(e.version){case 1:let i=e.pairSets.get(r);for(let e of i)if(e.secondGlyph===t.id)return this.applyPositionValue(0,e.value1),this.applyPositionValue(1,e.value2),!0;return!1;case 2:let s=this.getClassID(this.glyphIterator.cur.id,e.classDef1),o=this.getClassID(t.id,e.classDef2);if(-1===s||-1===o)return!1;var n=e.classRecords.get(s).get(o);return this.applyPositionValue(0,n.value1),this.applyPositionValue(1,n.value2),!0}}case 3:{let t=this.glyphIterator.peekIndex(),n=this.glyphs[t];if(!n)return!1;let r=e.entryExitRecords[this.coverageIndex(e.coverage)];if(!r||!r.exitAnchor)return!1;let i=e.entryExitRecords[this.coverageIndex(e.coverage,n.id)];if(!i||!i.entryAnchor)return!1;let s,o=this.getAnchor(i.entryAnchor),a=this.getAnchor(r.exitAnchor),l=this.positions[this.glyphIterator.index],h=this.positions[t];switch(this.direction){case"ltr":l.xAdvance=a.x+l.xOffset,s=o.x+h.xOffset,h.xAdvance-=s,h.xOffset-=s;break;case"rtl":s=a.x+l.xOffset,l.xAdvance-=s,l.xOffset-=s,h.xAdvance=o.x+h.xOffset}return this.glyphIterator.flags.rightToLeft?(this.glyphIterator.cur.cursiveAttachment=t,l.yOffset=o.y-a.y):(n.cursiveAttachment=this.glyphIterator.index,l.yOffset=a.y-o.y),!0}case 4:{let t=this.coverageIndex(e.markCoverage);if(-1===t)return!1;let n=this.glyphIterator.index;for(;--n>=0&&(this.glyphs[n].isMark||this.glyphs[n].ligatureComponent>0););if(n<0)return!1;let r=this.coverageIndex(e.baseCoverage,this.glyphs[n].id);if(-1===r)return!1;let i=e.markArray[t],s=e.baseArray[r][i.class];return this.applyAnchor(i,s,n),!0}case 5:{let t=this.coverageIndex(e.markCoverage);if(-1===t)return!1;let n=this.glyphIterator.index;for(;--n>=0&&this.glyphs[n].isMark;);if(n<0)return!1;let r=this.coverageIndex(e.ligatureCoverage,this.glyphs[n].id);if(-1===r)return!1;let i=e.ligatureArray[r],s=this.glyphIterator.cur,o=this.glyphs[n],a=o.ligatureID&&o.ligatureID===s.ligatureID&&s.ligatureComponent>0?Math.min(s.ligatureComponent,o.codePoints.length)-1:o.codePoints.length-1,l=e.markArray[t],h=i[a][l.class];return this.applyAnchor(l,h,n),!0}case 6:{let t=this.coverageIndex(e.mark1Coverage);if(-1===t)return!1;let n=this.glyphIterator.peekIndex(-1),r=this.glyphs[n];if(!r||!r.isMark)return!1;let i=this.glyphIterator.cur,s=!1;if(i.ligatureID===r.ligatureID?i.ligatureID?i.ligatureComponent===r.ligatureComponent&&(s=!0):s=!0:(i.ligatureID&&!i.ligatureComponent||r.ligatureID&&!r.ligatureComponent)&&(s=!0),!s)return!1;let o=this.coverageIndex(e.mark2Coverage,r.id);if(-1===o)return!1;let a=e.mark1Array[t],l=e.mark2Array[o][a.class];return this.applyAnchor(a,l,n),!0}case 7:return this.applyContext(e);case 8:return this.applyChainingContext(e);case 9:return this.applyLookup(e.lookupType,e.extension);default:throw new Error(`Unsupported GPOS table: ${t}`)}}applyAnchor(t,e,n){let r=this.getAnchor(e),i=this.getAnchor(t.markAnchor),s=(this.positions[n],this.positions[this.glyphIterator.index]);s.xOffset=r.x-i.x,s.yOffset=r.y-i.y,this.glyphIterator.cur.markAttachment=n}getAnchor(t){let e=t.xCoordinate,n=t.yCoordinate,r=this.font._variationProcessor,i=this.font.GDEF&&this.font.GDEF.itemVariationStore;return r&&i&&(t.xDeviceTable&&(e+=r.getDelta(i,t.xDeviceTable.a,t.xDeviceTable.b)),t.yDeviceTable&&(n+=r.getDelta(i,t.yDeviceTable.a,t.yDeviceTable.b))),{x:e,y:n}}applyFeatures(t,e,n){super.applyFeatures(t,e,n);for(var r=0;rnew Vi(this.font,t.id,[...t.codePoints])));let e=null;this.GPOSProcessor&&(e=this.GPOSProcessor.selectScript(t.script,t.language,t.direction)),this.GSUBProcessor&&(e=this.GSUBProcessor.selectScript(t.script,t.language,t.direction)),this.shaper=function(t){Array.isArray(t)||(t=[t]);for(let e of t){let t=eo[e];if(t)return t}return Pi}(e),this.plan=new Ai(this.font,e,t.direction),this.shaper.plan(this.plan,this.glyphInfos,t.features);for(let e in this.plan.allFeatures)t.features[e]=!0}substitute(t){this.GSUBProcessor&&(this.plan.process(this.GSUBProcessor,this.glyphInfos),t.glyphs=this.glyphInfos.map((t=>this.font.getGlyph(t.id,t.codePoints))))}position(t){return"BEFORE_GPOS"===this.shaper.zeroMarkWidths&&this.zeroMarkAdvances(t.positions),this.GPOSProcessor&&this.plan.process(this.GPOSProcessor,this.glyphInfos,t.positions),"AFTER_GPOS"===this.shaper.zeroMarkWidths&&this.zeroMarkAdvances(t.positions),"rtl"===t.direction&&(t.glyphs.reverse(),t.positions.reverse()),this.GPOSProcessor&&this.GPOSProcessor.features}zeroMarkAdvances(t){for(let e=0;enew hi(t.advanceWidth)));let e=null;this.engine&&this.engine.position&&(e=this.engine.position(t)),e||this.engine&&!this.engine.fallbackPosition||(this.unicodeLayoutEngine||(this.unicodeLayoutEngine=new ni(this.font)),this.unicodeLayoutEngine.positionGlyphs(t.glyphs,t.positions)),e&&e.kern||!1===t.features.kern||!this.font.kern||(this.kernProcessor||(this.kernProcessor=new ei(this.font)),this.kernProcessor.process(t.glyphs,t.positions),t.features.kern=!0)}hideDefaultIgnorables(t,e){let n=this.font.glyphForCodePoint(32);for(let r=0;r>16;if(0===e)switch(t>>8){case 0:return 173===t;case 3:return 847===t;case 6:return 1564===t;case 23:return 6068<=t&&t<=6069;case 24:return 6155<=t&&t<=6158;case 32:return 8203<=t&&t<=8207||8234<=t&&t<=8238||8288<=t&&t<=8303;case 254:return 65024<=t&&t<=65039||65279===t;case 255:return 65520<=t&&t<=65528;default:return!1}else switch(e){case 1:return 113824<=t&&t<=113827||119155<=t&&t<=119162;case 14:return 917504<=t&&t<=921599;default:return!1}}getAvailableFeatures(t,e){let n=[];return this.engine&&n.push(...this.engine.getAvailableFeatures(t,e)),this.font.kern&&-1===n.indexOf("kern")&&n.push("kern"),n}stringsForGlyph(t){let e=new Set,n=this.font._cmapProcessor.codePointsForGlyph(t);for(let t of n)e.add(String.fromCodePoint(t));if(this.engine&&this.engine.stringsForGlyph)for(let n of this.engine.stringsForGlyph(t))e.add(n);return Array.from(e)}constructor(t){this.font=t,this.unicodeLayoutEngine=null,this.kernProcessor=null,this.font.morx?this.engine=new vi(this.font):(this.font.GSUB||this.font.GPOS)&&(this.engine=new io(this.font))}}const oo={moveTo:"M",lineTo:"L",quadraticCurveTo:"Q",bezierCurveTo:"C",closePath:"Z"};class ao{toFunction(){return t=>{this.commands.forEach((e=>t[e.command].apply(t,e.args)))}}toSVG(){return this.commands.map((t=>{let e=t.args.map((t=>Math.round(100*t)/100));return`${oo[t.command]}${e.join(" ")}`})).join("")}get cbox(){if(!this._cbox){let t=new ri;for(let e of this.commands)for(let n=0;nMath.pow(1-t,3)*f[y]+3*Math.pow(1-t,2)*t*d[y]+3*(1-t)*Math.pow(t,2)*p[y]+Math.pow(t,3)*g[y];for(let m of this.commands)switch(m.command){case"moveTo":case"lineTo":let[b,w]=m.args;t.addPoint(b,w),e=b,n=w;break;case"quadraticCurveTo":case"bezierCurveTo":if("quadraticCurveTo"===m.command)var[i,s,o,a]=m.args,l=e+2/3*(i-e),h=n+2/3*(s-n),u=o+2/3*(i-o),c=a+2/3*(s-a);else var[l,h,u,c,o,a]=m.args;t.addPoint(o,a);for(var f=[e,n],d=[l,h],p=[u,c],g=[o,a],y=0;y<=1;y++){let e=6*f[y]-12*d[y]+6*p[y],n=-3*f[y]+9*d[y]-9*p[y]+3*g[y];if(m=3*d[y]-3*f[y],0===n){if(0===e)continue;let n=-m/e;0[t*o+n*a+i,e*o+r*a+s]))}translate(t,e){return this.transform(1,0,0,1,t,e)}rotate(t){let e=Math.cos(t),n=Math.sin(t);return this.transform(e,n,-n,e,0,0)}scale(t,e=t){return this.transform(t,0,0,e,0,0)}constructor(){this.commands=[],this._bbox=null,this._cbox=null}}for(let t of["moveTo","lineTo","quadraticCurveTo","bezierCurveTo","closePath"])ao.prototype[t]=function(...e){return this._bbox=this._cbox=null,this.commands.push({command:t,args:e}),this};var lo=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];class ho{_getPath(){return new ao}_getCBox(){return this.path.cbox}_getBBox(){return this.path.bbox}_getTableMetrics(t){if(this.id0)r=Math.abs(e.typoAscender-e.typoDescender),i=e.typoAscender-t.maxY;else{let{hhea:e}=this._font;var r=Math.abs(e.ascent-e.descent),i=e.ascent-t.maxY}}return this._font._variationProcessor&&this._font.HVAR&&(e+=this._font._variationProcessor.getAdvanceAdjustment(this.id,this._font.HVAR)),this._metrics={advanceWidth:e,advanceHeight:r,leftBearing:n,topBearing:i}}get cbox(){return this._getCBox()}get bbox(){return this._getBBox()}get path(){return this._getPath()}getScaledPath(t){let e=1/this._font.unitsPerEm*t;return this.path.scale(e)}get advanceWidth(){return this._getMetrics().advanceWidth}get advanceHeight(){return this._getMetrics().advanceHeight}get ligatureCaretPositions(){}_getName(){let{post:t}=this._font;if(!t)return null;switch(t.version){case 1:return lo[this.id];case 2:let e=t.glyphNameIndex[this.id];return e0&&this.codePoints.every(a.isMark),this.isLigature=this.codePoints.length>1}}(0,s._)([x],ho.prototype,"cbox",null),(0,s._)([x],ho.prototype,"bbox",null),(0,s._)([x],ho.prototype,"path",null),(0,s._)([x],ho.prototype,"advanceWidth",null),(0,s._)([x],ho.prototype,"advanceHeight",null),(0,s._)([x],ho.prototype,"name",null);let uo=new r.Struct({numberOfContours:r.int16,xMin:r.int16,yMin:r.int16,xMax:r.int16,yMax:r.int16});class co{copy(){return new co(this.onCurve,this.endContour,this.x,this.y)}constructor(t,e,n=0,r=0){this.onCurve=t,this.endContour=e,this.x=n,this.y=r}}class fo{constructor(t,e,n){this.glyphID=t,this.dx=e,this.dy=n,this.pos=0,this.scaleX=this.scaleY=1,this.scale01=this.scale10=0}}class po extends ho{_getCBox(t){if(this._font._variationProcessor&&!t)return this.path.cbox;let e=this._font._getTableStream("glyf");e.pos+=this._font.loca.offsets[this.id];let n=uo.decode(e),r=new ri(n.xMin,n.yMin,n.xMax,n.yMax);return Object.freeze(r)}_parseGlyphCoord(t,e,n,r){if(n){var i=t.readUInt8();r||(i=-i),i+=e}else i=r?e:e+t.readInt16BE();return i}_decode(){let t=this._font.loca.offsets[this.id];if(t===this._font.loca.offsets[this.id+1])return null;let e=this._font._getTableStream("glyf");e.pos+=t;let n=e.pos,r=uo.decode(e);return r.numberOfContours>0?this._decodeSimple(r,e):r.numberOfContours<0&&this._decodeComposite(r,e,n),r}_decodeSimple(t,e){t.points=[];let n=new r.Array(r.uint16,t.numberOfContours).decode(e);t.instructions=new r.Array(r.uint8,r.uint16).decode(e);let i=[],s=n[n.length-1]+1;for(;i.length=0,0,0);t.points.push(e)}let l=0;for(a=0;a>1,a.length=0}function _(t,e){d&&o.closePath(),o.moveTo(t,e),d=!0}let C=function(){for(;e.pos1&&x(),f+=a.shift(),_(c,f);break;case 5:for(;a.length>=2;)c+=a.shift(),f+=a.shift(),o.lineTo(c,f);break;case 6:case 7:for(P=6===y;a.length>=1;)P?c+=a.shift():f+=a.shift(),o.lineTo(c,f),P=!P;break;case 8:for(;a.length>0;)E=c+a.shift(),T=f+a.shift(),O=E+a.shift(),I=T+a.shift(),c=O+a.shift(),f=I+a.shift(),o.bezierCurveTo(E,T,O,I,c,f);break;case 10:if(h=a.pop()+b,k=m[h],k){s[h]=!0;let t=e.pos,n=r;e.pos=k.offset,r=k.offset+k.length,C(),e.pos=t,r=n}break;case 11:if(t.version>=2)break;return;case 14:if(t.version>=2)break;a.length>0&&x(),d&&(o.closePath(),d=!1);break;case 15:if(t.version<2)throw new Error("vsindex operator not supported in CFF v1");v=a.pop();break;case 16:{if(t.version<2)throw new Error("blend operator not supported in CFF v1");if(!A)throw new Error("blend operator in non-variation font");let e=A.getBlendVector(w,v),n=a.pop(),r=n*e.length,i=a.length-r,s=i-n;for(let t=0;t>3;break;case 21:a.length>2&&x(),c+=a.shift(),f+=a.shift(),_(c,f);break;case 22:a.length>1&&x(),c+=a.shift(),_(c,f);break;case 24:for(;a.length>=8;)E=c+a.shift(),T=f+a.shift(),O=E+a.shift(),I=T+a.shift(),c=O+a.shift(),f=I+a.shift(),o.bezierCurveTo(E,T,O,I,c,f);c+=a.shift(),f+=a.shift(),o.lineTo(c,f);break;case 25:for(;a.length>=8;)c+=a.shift(),f+=a.shift(),o.lineTo(c,f);E=c+a.shift(),T=f+a.shift(),O=E+a.shift(),I=T+a.shift(),c=O+a.shift(),f=I+a.shift(),o.bezierCurveTo(E,T,O,I,c,f);break;case 26:for(a.length%2&&(c+=a.shift());a.length>=4;)E=c,T=f+a.shift(),O=E+a.shift(),I=T+a.shift(),c=O,f=I+a.shift(),o.bezierCurveTo(E,T,O,I,c,f);break;case 27:for(a.length%2&&(f+=a.shift());a.length>=4;)E=c+a.shift(),T=f,O=E+a.shift(),I=T+a.shift(),c=O+a.shift(),f=I,o.bezierCurveTo(E,T,O,I,c,f);break;case 28:a.push(e.readInt16BE());break;case 29:if(h=a.pop()+g,k=p[h],k){i[h]=!0;let t=e.pos,n=r;e.pos=k.offset,r=k.offset+k.length,C(),e.pos=t,r=n}break;case 30:case 31:for(P=31===y;a.length>=4;)P?(E=c+a.shift(),T=f,O=E+a.shift(),I=T+a.shift(),f=I+a.shift(),c=O+(1===a.length?a.shift():0)):(E=c,T=f+a.shift(),O=E+a.shift(),I=T+a.shift(),c=O+a.shift(),f=I+(1===a.length?a.shift():0)),o.bezierCurveTo(E,T,O,I,c,f),P=!P;break;case 12:switch(y=e.readUInt8(),y){case 3:let t=a.pop(),e=a.pop();a.push(t&&e?1:0);break;case 4:t=a.pop(),e=a.pop(),a.push(t||e?1:0);break;case 5:t=a.pop(),a.push(t?0:1);break;case 9:t=a.pop(),a.push(Math.abs(t));break;case 10:t=a.pop(),e=a.pop(),a.push(t+e);break;case 11:t=a.pop(),e=a.pop(),a.push(t-e);break;case 12:t=a.pop(),e=a.pop(),a.push(t/e);break;case 14:t=a.pop(),a.push(-t);break;case 15:t=a.pop(),e=a.pop(),a.push(t===e?1:0);break;case 18:a.pop();break;case 20:let r=a.pop(),i=a.pop();l[i]=r;break;case 21:i=a.pop(),a.push(l[i]||0);break;case 22:let s=a.pop(),h=a.pop(),u=a.pop(),d=a.pop();a.push(u<=d?s:h);break;case 23:a.push(Math.random());break;case 24:t=a.pop(),e=a.pop(),a.push(t*e);break;case 26:t=a.pop(),a.push(Math.sqrt(t));break;case 27:t=a.pop(),a.push(t,t);break;case 28:t=a.pop(),e=a.pop(),a.push(e,t);break;case 29:i=a.pop(),i<0?i=0:i>a.length-1&&(i=a.length-1),a.push(a[i]);break;case 30:let p=a.pop(),g=a.pop();if(g>=0)for(;g>0;){var n=a[p-1];for(let t=p-2;t>=0;t--)a[t+1]=a[t];a[0]=n,g--}else for(;g<0;){n=a[0];for(let t=0;t<=p;t++)a[t]=a[t+1];a[p-1]=n,g++}break;case 34:E=c+a.shift(),T=f,O=E+a.shift(),I=T+a.shift(),L=O+a.shift(),B=I,M=L+a.shift(),D=B,R=M+a.shift(),N=D,F=R+a.shift(),U=N,c=F,f=U,o.bezierCurveTo(E,T,O,I,L,B),o.bezierCurveTo(M,D,R,N,F,U);break;case 35:z=[];for(let t=0;t<=5;t++)c+=a.shift(),f+=a.shift(),z.push(c,f);o.bezierCurveTo(...z.slice(0,6)),o.bezierCurveTo(...z.slice(6)),a.shift();break;case 36:E=c+a.shift(),T=f+a.shift(),O=E+a.shift(),I=T+a.shift(),L=O+a.shift(),B=I,M=L+a.shift(),D=B,R=M+a.shift(),N=D+a.shift(),F=R+a.shift(),U=N,c=F,f=U,o.bezierCurveTo(E,T,O,I,L,B),o.bezierCurveTo(M,D,R,N,F,U);break;case 37:let m=c,b=f;z=[];for(let t=0;t<=4;t++)c+=a.shift(),f+=a.shift(),z.push(c,f);Math.abs(c-m)>Math.abs(f-b)?(c+=a.shift(),f=b):(c=m,f+=a.shift()),z.push(c,f),o.bezierCurveTo(...z.slice(0,6)),o.bezierCurveTo(...z.slice(6));break;default:throw new Error(`Unknown op: 12 ${y}`)}break;default:throw new Error(`Unknown op: ${y}`)}}else if(y<247)a.push(y-139);else if(y<251){var h=e.readUInt8();a.push(256*(y-247)+h+108)}else y<255?(h=e.readUInt8(),a.push(256*-(y-251)-h-108)):a.push(e.readInt32BE()/65536)}};return C(),d&&o.closePath(),o}constructor(...t){super(...t),(0,i._)(this,"type","CFF")}}let yo=new r.Struct({originX:r.uint16,originY:r.uint16,type:new r.String(4),data:new r.Buffer((t=>t.parent.buflen-t._currentOffset))});class mo extends po{getImageForSize(t){for(let n=0;n=t)break}let n=e.imageOffsets,r=n[this.id],i=n[this.id+1];return r===i?null:(this._font.stream.pos=r,yo.decode(this._font.stream,{buflen:i-r}))}render(t,e){let n=this.getImageForSize(e);if(null!=n){let r=e/this._font.unitsPerEm;t.image(n.data,{height:e,x:n.originX,y:(this.bbox.minY-n.originY)*r})}this._font.sbix.flags.renderOutlines&&super.render(t,e)}constructor(...t){super(...t),(0,i._)(this,"type","SBIX")}}class bo{constructor(t,e){this.glyph=t,this.color=e}}class wo extends ho{_getBBox(){let t=new ri;for(let e=0;e>1;var i=e.baseGlyphRecord[t];if(this.idi.gid)){var s=i;break}n=t+1}}if(null==s){var o=this._font._getBaseGlyph(this.id);return[new bo(o,l={red:0,green:0,blue:0,alpha:255})]}let a=[];for(let n=s.firstLayerIndex;n=1&&e[n]=n.glyphCount)return;let r=n.offsets[t];if(r===n.offsets[t+1])return;let{stream:i}=this.font;if(i.pos=r,i.pos>=i.length)return;let s=i.readUInt16BE(),o=r+i.readUInt16BE();if(32768&s){var a=i.pos;i.pos=o;var l=this.decodePoints();o=i.pos,i.pos=a}let h=e.map((t=>t.copy()));s&=4095;for(let t=0;t=n.globalCoordCount)throw new Error("Invalid gvar table");u=n.globalCoords[4095&r]}if(16384&r){var c=[];for(let t=0;tt.copy())),n=e.map((()=>!1));for(let r=0;rr[a])return 0;o=i[a]Math.max(0,e[a]))return 0;o=(o*i[a]+Number.EPSILON)/(e[a]+Number.EPSILON)}}return o}interpolateMissingDeltas(t,e,n){if(0===t.length)return;let r=0;for(;rs)continue;let a=r,l=r;for(r++;r<=s;)n[r]&&(this.deltaInterpolate(l+1,r-1,l,r,e,t),l=r),r++;l===a?this.deltaShift(i,s,l,e,t):(this.deltaInterpolate(l+1,s,l,a,e,t),a>0&&this.deltaInterpolate(i,a-1,l,a,e,t)),r=s+1}}deltaInterpolate(t,e,n,r,i,s){if(t>e)return;let o=["x","y"];for(let l=0;li[r][h]){var a=n;n=r,r=a}let u=i[n][h],c=i[r][h],f=s[n][h],d=s[r][h];if(u!==c||f===d){let n=u===c?0:(d-f)/(c-u);for(let r=t;r<=e;r++){let t=i[r][h];t<=u?t+=f-u:t>=c?t+=d-c:t=f+(t-u)*n,s[r][h]=t}}}}deltaShift(t,e,n,r,i){let s=i[n].x-r[n].x,o=i[n].y-r[n].y;if(0!==s||0!==o)for(let r=t;r<=e;r++)r!==n&&(i[r].x+=s,i[r].y+=o)}getAdvanceAdjustment(t,e){let n,r;if(e.advanceWidthMapping){let i=t;i>=e.advanceWidthMapping.mapCount&&(i=e.advanceWidthMapping.mapCount-1),e.advanceWidthMapping.entryFormat,({outerIndex:n,innerIndex:r}=e.advanceWidthMapping.mapData[i])}else n=0,r=t;return this.getDelta(e.itemVariationStore,n,r)}getDelta(t,e,n){if(e>=t.itemVariationData.length)return 0;let r=t.itemVariationData[e];if(n>=r.deltaSets.length)return 0;let i=r.deltaSets[n],s=this.getBlendVector(t,e),o=0;for(let t=0;tn.peakCoord||n.peakCoord>n.endCoord||n.startCoord<0&&n.endCoord>0&&0!==n.peakCoord||0===n.peakCoord?1:r[t]n.endCoord?0:r[t]===n.peakCoord?1:r[t]=0&&t<=255?1:2}static encode(t,e){e>=0&&e<=255?t.writeUInt8(e):t.writeInt16BE(e)}}let So=new r.Struct({numberOfContours:r.int16,xMin:r.int16,yMin:r.int16,xMax:r.int16,yMax:r.int16,endPtsOfContours:new r.Array(r.uint16,"numberOfContours"),instructions:new r.Array(r.uint8,r.uint16),flags:new r.Array(r.uint8,0),xPoints:new r.Array(xo,0),yPoints:new r.Array(xo,0)});class _o{encodeSimple(t,e=[]){let n=[],i=[],s=[],o=[],a=0,l=0,h=0,u=0,c=0;for(let e=0;e0&&(o.push(a),a=0),o.push(p),u=p),l=f,h=d,c++}"closePath"===r.command&&n.push(c-1)}t.commands.length>1&&"closePath"!==t.commands[t.commands.length-1].command&&n.push(c-1);let f=t.bbox,d={numberOfContours:n.length,xMin:f.minX,yMin:f.minY,xMax:f.maxX,yMax:f.maxY,endPtsOfContours:n,instructions:e,flags:o,xPoints:i,yPoints:s},p=So.size(d),g=4-p%4,y=new r.EncodeStream(p+g);return So.encode(y,d),0!==g&&y.fill(0,g),y.buffer}_encodePoint(t,e,n,r,i,s){let o=t-e;return t===e?r|=s:(-255<=o&&o<=255&&(r|=i,o<0?o=-o:r|=s),n.push(o)),r}}class Co extends Ao{_addGlyph(t){let e=this.font.getGlyph(t),n=e._decode(),r=this.font.loca.offsets[t],i=this.font.loca.offsets[t+1],s=this.font._getTableStream("glyf");s.pos+=r;let o=s.readBuffer(i-r);if(n&&n.numberOfContours<0){o=new Uint8Array(o);let e=new DataView(o.buffer);for(let r of n.components)t=this.includeGlyph(r.glyphID),e.setUint16(r.pos,t)}else n&&this.font._variationProcessor&&(o=this.glyphEncoder.encodeSimple(e.path,n.instructions));return this.glyf.push(o),this.loca.offsets.push(this.offset),this.hmtx.metrics.push({advance:e.advanceWidth,bearing:e._getMetrics().leftBearing}),this.offset+=o.length,this.glyf.length-1}encode(){this.glyf=[],this.offset=0,this.loca={offsets:[],version:this.font.loca.version},this.hmtx={metrics:[],bearings:[]};let t=0;for(;t255?2:1,ranges:[{first:1,nLeft:this.charstrings.length-2}]},e=Object.assign({},this.cff.topDict);e.Private=null,e.charset=t,e.Encoding=null,e.CharStrings=this.charstrings;for(let t of["version","Notice","Copyright","FullName","FamilyName","Weight","PostScript","BaseFontName","FontName"])e[t]=this.addString(this.cff.string(e[t]));e.ROS=[this.addString("Adobe"),this.addString("Identity"),0],e.CIDCount=this.charstrings.length,this.cff.isCIDFont?this.subsetFontdict(e):this.createCIDFontdict(e);let n={version:1,hdrSize:this.cff.hdrSize,offSize:4,header:this.cff.header,nameIndex:[this.cff.postscriptName],topDictIndex:[e],stringIndex:this.strings,globalSubrIndex:this.gsubrs};return me.toBuffer(n)}constructor(t){if(super(t),this.cff=this.font["CFF "],!this.cff)throw new Error("Not a CFF Font")}}class Po{static probe(t){let e=Jr.decode(t.slice(0,4));return"true"===e||"OTTO"===e||e===String.fromCharCode(0,1,0,0)}setDefaultLanguage(t=null){this.defaultLanguage=t}_getTable(t){if(!(t.tag in this._tables))try{this._tables[t.tag]=this._decodeTable(t)}catch(e){y&&(console.error(`Error decoding table ${t.tag}`),console.error(e.stack))}return this._tables[t.tag]}_getTableStream(t){let e=this.directory.tables[t];return e?(this.stream.pos=e.offset,this.stream):null}_decodeDirectory(){return this.directory=Zr.decode(this.stream,{_startOffset:0})}_decodeTable(t){let e=this.stream.pos,n=this._getTableStream(t.tag),r=Gr[t.tag].decode(n,this,t.length);return this.stream.pos=e,r}getName(t,e=this.defaultLanguage||v){let n=this.name&&this.name.records[t];return n&&(n[e]||n[this.defaultLanguage]||n[v]||n.en||n[Object.keys(n)[0]])||null}get postscriptName(){return this.getName("postscriptName")}get fullName(){return this.getName("fullName")}get familyName(){return this.getName("fontFamily")}get subfamilyName(){return this.getName("fontSubfamily")}get copyright(){return this.getName("copyright")}get version(){return this.getName("version")}get ascent(){return this.hhea.ascent}get descent(){return this.hhea.descent}get lineGap(){return this.hhea.lineGap}get underlinePosition(){return this.post.underlinePosition}get underlineThickness(){return this.post.underlineThickness}get italicAngle(){return this.post.italicAngle}get capHeight(){let t=this["OS/2"];return t?t.capHeight:this.ascent}get xHeight(){let t=this["OS/2"];return t?t.xHeight:0}get numGlyphs(){return this.maxp.numGlyphs}get unitsPerEm(){return this.head.unitsPerEm}get bbox(){return Object.freeze(new ri(this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax))}get _cmapProcessor(){return new ti(this.cmap)}get characterSet(){return this._cmapProcessor.getCharacterSet()}hasGlyphForCodePoint(t){return!!this._cmapProcessor.lookup(t)}glyphForCodePoint(t){return this.getGlyph(this._cmapProcessor.lookup(t),[t])}glyphsForString(t){let e=[],n=t.length,r=0,i=-1,s=-1;for(;r<=n;){let o=0,a=0;if(r{let r=e.axisTag.trim();return r in t?Math.max(e.minValue,Math.min(e.maxValue,t[r])):e.defaultValue})),n=new r.DecodeStream(this.stream.buffer);n.pos=this._directoryPos;let i=new Po(n,e);return i._tables=this._tables,i}get _variationProcessor(){if(!this.fvar)return null;let t=this.variationCoords;return t||this.CFF2?(t||(t=this.fvar.axis.map((t=>t.defaultValue))),new vo(this,t)):null}getFont(t){return this.getVariation(t)}constructor(t,e=null){(0,i._)(this,"type","TTF"),this.defaultLanguage=null,this.stream=t,this.variationCoords=e,this._directoryPos=this.stream.pos,this._tables={},this._glyphs={},this._decodeDirectory();for(let t in this.directory.tables){let e=this.directory.tables[t];Gr[t]&&e.length>0&&Object.defineProperty(this,t,{get:this._getTable.bind(this,e)})}}}(0,s._)([x],Po.prototype,"bbox",null),(0,s._)([x],Po.prototype,"_cmapProcessor",null),(0,s._)([x],Po.prototype,"characterSet",null),(0,s._)([x],Po.prototype,"_layoutEngine",null),(0,s._)([x],Po.prototype,"variationAxes",null),(0,s._)([x],Po.prototype,"namedVariations",null),(0,s._)([x],Po.prototype,"_variationProcessor",null);let Eo=new r.Struct({tag:new r.String(4),offset:new r.Pointer(r.uint32,"void",{type:"global"}),compLength:r.uint32,length:r.uint32,origChecksum:r.uint32}),To=new r.Struct({tag:new r.String(4),flavor:r.uint32,length:r.uint32,numTables:r.uint16,reserved:new r.Reserved(r.uint16),totalSfntSize:r.uint32,majorVersion:r.uint16,minorVersion:r.uint16,metaOffset:r.uint32,metaLength:r.uint32,metaOrigLength:r.uint32,privOffset:r.uint32,privLength:r.uint32,tables:new r.Array(Eo,"numTables")});To.process=function(){let t={};for(let e of this.tables)t[e.tag]=e;this.tables=t};var Oo=To;class Io extends po{_decode(){return this._font._transformedGlyphs[this.id]}_getCBox(){return this.path.bbox}constructor(...t){super(...t),(0,i._)(this,"type","WOFF2")}}const Lo={decode(t){let e=0,n=[0,1,2,3,4];for(let r=0;r!(63&~t.flags))),tag:t=>t.customTag||Bo[63&t.flags],length:Lo,transformVersion:t=>t.flags>>>6&3,transformed:t=>"glyf"===t.tag||"loca"===t.tag?0===t.transformVersion:0!==t.transformVersion,transformLength:new r.Optional(Lo,(t=>t.transformed))}),Do=new r.Struct({tag:new r.String(4),flavor:r.uint32,length:r.uint32,numTables:r.uint16,reserved:new r.Reserved(r.uint16),totalSfntSize:r.uint32,totalCompressedSize:r.uint32,majorVersion:r.uint16,minorVersion:r.uint16,metaOffset:r.uint32,metaLength:r.uint32,metaOrigLength:r.uint32,privOffset:r.uint32,privLength:r.uint32,tables:new r.Array(Mo,"numTables")});Do.process=function(){let t={};for(let e=0;e>7);if(h&=127,h<10)n=0,l=zo(h,((14&h)<<7)+e.readUInt8());else if(h<20)n=zo(h,((h-10&14)<<7)+e.readUInt8()),l=0;else if(h<84)n=zo(h,1+(48&(o=h-20))+((a=e.readUInt8())>>4)),l=zo(h>>1,1+((12&o)<<2)+(15&a));else if(h<120){var o;n=zo(h,1+((o=h-84)/12<<8)+e.readUInt8()),l=zo(h>>1,1+(o%12>>2<<8)+e.readUInt8())}else if(h<124){var a=e.readUInt8();let t=e.readUInt8();n=zo(h,(a<<4)+(t>>4)),l=zo(h>>1,((15&t)<<8)+e.readUInt8())}else n=zo(h,e.readUInt16BE()),l=zo(h>>1,e.readUInt16BE());i+=n,r+=l,s.push(new co(u,!1,i,r))}return s}let jo=new r.VersionedStruct(r.uint32,{65536:{numFonts:r.uint32,offsets:new r.Array(r.uint32,"numFonts")},131072:{numFonts:r.uint32,offsets:new r.Array(r.uint32,"numFonts"),dsigTag:r.uint32,dsigLength:r.uint32,dsigOffset:r.uint32}}),Vo=new r.String(r.uint8),Ho=(new r.Struct({len:r.uint32,buf:new r.Buffer("len")}),new r.Struct({id:r.uint16,nameOffset:r.int16,attr:r.uint8,dataOffset:r.uint24,handle:r.uint32})),Go=new r.Struct({name:new r.String(4),maxTypeIndex:r.uint16,refList:new r.Pointer(r.uint16,new r.Array(Ho,(t=>t.maxTypeIndex+1)),{type:"parent"})}),qo=new r.Struct({length:r.uint16,types:new r.Array(Go,(t=>t.length+1))}),Xo=new r.Struct({reserved:new r.Reserved(r.uint8,24),typeList:new r.Pointer(r.uint16,qo),nameListOffset:new r.Pointer(r.uint16,"void")}),Zo=new r.Struct({dataOffset:r.uint32,map:new r.Pointer(r.uint32,Xo),dataLength:r.uint32,mapLength:r.uint32});var Yo,Ko;b(Po),b(class extends Po{static probe(t){return"wOFF"===Jr.decode(t.slice(0,4))}_decodeDirectory(){this.directory=Oo.decode(this.stream,{_startOffset:0})}_getTableStream(t){let e=this.directory.tables[t];if(e){if(this.stream.pos=e.offset,e.compLength0){let e=[],i=0;for(let n=0;nt[n]===e)))return i}return null}get fonts(){let t=[];for(let e of this.header.offsets){let n=new r.DecodeStream(this.stream.buffer);n.pos=e,t.push(new Po(n))}return t}constructor(t){if((0,i._)(this,"type","TTC"),this.stream=t,"ttcf"!==t.readString(4))throw new Error("Not a TrueType collection");this.header=jo.decode(t)}}),b(class{static probe(t){let e=new r.DecodeStream(t);try{var n=Zo.decode(e)}catch(t){return!1}for(let t of n.map.typeList.types)if("sfnt"===t.name)return!0;return!1}getFont(t){if(!this.sfnt)return null;for(let e of this.sfnt.refList){let n=this.header.dataOffset+e.dataOffset+4,i=new r.DecodeStream(this.stream.buffer.slice(n)),s=new Po(i);if(s.postscriptName===t||s.postscriptName instanceof Uint8Array&&t instanceof Uint8Array&&s.postscriptName.every(((e,n)=>t[n]===e)))return s}return null}get fonts(){let t=[];for(let e of this.sfnt.refList){let n=this.header.dataOffset+e.dataOffset+4,i=new r.DecodeStream(this.stream.buffer.slice(n));t.push(new Po(i))}return t}constructor(t){(0,i._)(this,"type","DFont"),this.stream=t,this.header=Zo.decode(this.stream);for(let t of this.header.map.typeList.types){for(let e of t.refList)e.nameOffset>=0?(this.stream.pos=e.nameOffset+this.header.map.nameListOffset,e.name=Vo.decode(this.stream)):e.name=null;"sfnt"===t.name&&(this.sfnt=t)}}}),Yo=t.exports,Ko=g,Object.keys(Ko).forEach((function(t){"default"===t||"__esModule"===t||Object.prototype.hasOwnProperty.call(Yo,t)||Object.defineProperty(Yo,t,{enumerable:!0,get:function(){return Ko[t]}})}))},2532(t,e,n){var r=n(7571),i=n(3915);function s(t){return t&&t.__esModule?t.default:t}const o=[[4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4],[0,4,4,1,1,4,4,4,4,1,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,1,4,4,4,4,1,1,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[4,4,4,1,1,1,4,4,4,1,1,1,1,1,1,1,1,1,1,1,4,2,4,1,1,1,1,1,1,1,1,1,1],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,1,1,1,1,1,1,4,2,4,1,1,1,1,1,1,1,1,1,1],[0,4,4,1,1,1,4,4,4,0,0,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,0,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,0,1,0,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,0,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[1,4,4,1,1,1,4,4,4,0,0,1,1,1,1,1,1,1,0,0,4,2,4,1,1,1,1,1,0,1,1,1,0],[1,4,4,1,1,1,4,4,4,0,0,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,0,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,0,1,4,4,4,0,0,1,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,0,1,4,4,4,0,0,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,1,1,1,1,1,1,4,2,4,1,1,1,1,1,1,1,1,1,0],[0,4,4,1,1,1,4,4,4,0,0,0,0,0,0,1,1,1,0,4,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,1,1,1,1,1,1,4,2,4,1,1,1,1,1,1,1,1,1,1],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,1,1,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,1,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,1,1,1,1,0,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,1,1,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,1,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,0,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,1,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,1,1,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,1,0,4,4,4,0,0,0,0,0,0,0,0,0,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0]],a=s(i).toByteArray("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"),l=new(s(r))(a),h=function(t){switch(t){case 33:case 39:case 40:case 42:return 12;case 35:return 5;default:return t}},u=function(t){switch(t){case 37:case 38:return 34;case 41:return 22;default:return t}};class c{constructor(t,e=!1){this.position=t,this.required=e}}t.exports=class{nextCodePoint(){const t=this.string.charCodeAt(this.pos++),e=this.string.charCodeAt(this.pos);return 55296<=t&&t<=56319&&56320<=e&&e<=57343?(this.pos++,1024*(t-55296)+(e-56320)+65536):t}nextCharClass(){return h(l.get(this.nextCodePoint()))}getSimpleBreak(){switch(this.nextClass){case 41:return!1;case 34:case 37:case 38:return this.curClass=34,!1;case 36:return this.curClass=36,!1}return null}getPairTableBreak(t){let e=!1;switch(o[this.curClass][this.nextClass]){case 0:e=!0;break;case 1:e=41===t;break;case 2:if(e=41===t,!e)return e=!1,e;break;case 3:if(41!==t)return e}return this.LB8a&&(e=!1),!this.LB21a||16!==this.curClass&&17!==this.curClass?this.LB21a=13===this.curClass:(e=!1,this.LB21a=!1),28===this.curClass?(this.LB30a++,2==this.LB30a&&28===this.nextClass&&(e=!0,this.LB30a=0)):this.LB30a=0,this.curClass=this.nextClass,e}nextBreak(){if(null==this.curClass){let t=this.nextCharClass();this.curClass=u(t),this.nextClass=t,this.LB8a=31===t,this.LB30a=0}for(;this.pos0)for(e=0;ethis.data.length)throw new Error("Incomplete or corrupt PNG file")}}read(t){const e=new Array(t);for(let n=0;n{if(e)throw e;const{width:i,height:s}=this,o=this.pixelBitlength/8,a=r.alloc(i*s*o),{length:l}=n;let h=0;function u(t,e,u,c,f=!1){const d=Math.ceil((i-t)/u),p=Math.ceil((s-e)/c),g=o*d,y=f?a:r.alloc(g*p);let m=0,b=0;for(;m(this.copyToImageData(e,n),t(e))))}}},5233(t){function e(t,e){return Object.keys(e).forEach((function(n){"default"===n||"__esModule"===n||Object.prototype.hasOwnProperty.call(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[n]}})})),t}function n(t,e,n,r){Object.defineProperty(t,e,{get:n,set:r,enumerable:!0,configurable:!0})}n(t.exports,"EncodeStream",(()=>a)),n(t.exports,"DecodeStream",(()=>i)),n(t.exports,"Array",(()=>Z)),n(t.exports,"LazyArray",(()=>Y)),n(t.exports,"Bitfield",(()=>J)),n(t.exports,"Boolean",(()=>Q)),n(t.exports,"Buffer",(()=>$)),n(t.exports,"Enum",(()=>tt)),n(t.exports,"Optional",(()=>et)),n(t.exports,"Reserved",(()=>nt)),n(t.exports,"String",(()=>rt)),n(t.exports,"Struct",(()=>ot)),n(t.exports,"VersionedStruct",(()=>at));const r={utf16le:"utf-16le",ucs2:"utf-16le",utf16be:"utf-16be"};class i{constructor(t){this.buffer=t,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength),this.pos=0,this.length=this.buffer.length}readString(t,e="ascii"){e=r[e]||e;let n=this.readBuffer(t);try{return new TextDecoder(e).decode(n)}catch(t){return n}}readBuffer(t){return this.buffer.slice(this.pos,this.pos+=t)}readUInt24BE(){return(this.readUInt16BE()<<8)+this.readUInt8()}readUInt24LE(){return this.readUInt16LE()+(this.readUInt8()<<16)}readInt24BE(){return(this.readInt16BE()<<8)+this.readUInt8()}readInt24LE(){return this.readUInt16LE()+(this.readInt8()<<16)}}i.TYPES={UInt8:1,UInt16:2,UInt24:3,UInt32:4,Int8:1,Int16:2,Int24:3,Int32:4,Float:4,Double:8};for(let t of Object.getOwnPropertyNames(DataView.prototype))if("get"===t.slice(0,3)){let e=t.slice(3).replace("Ui","UI");"Float32"===e?e="Float":"Float64"===e&&(e="Double");let n=i.TYPES[e];i.prototype["read"+e+(1===n?"":"BE")]=function(){const e=this.view[t](this.pos,!1);return this.pos+=n,e},1!==n&&(i.prototype["read"+e+"LE"]=function(){const e=this.view[t](this.pos,!0);return this.pos+=n,e})}const s=new TextEncoder,o=18==new Uint8Array(new Uint16Array([4660]).buffer)[0];class a{constructor(t){this.buffer=t,this.view=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),this.pos=0}writeBuffer(t){this.buffer.set(t,this.pos),this.pos+=t.length}writeString(t,e="ascii"){let n;switch(e){case"utf16le":case"utf16-le":case"ucs2":n=l(t,o);break;case"utf16be":case"utf16-be":n=l(t,!o);break;case"utf8":n=s.encode(t);break;case"ascii":n=function(t){let e=new Uint8Array(t.length);for(let n=0;n>>16&255,this.buffer[this.pos++]=t>>>8&255,this.buffer[this.pos++]=255&t}writeUInt24LE(t){this.buffer[this.pos++]=255&t,this.buffer[this.pos++]=t>>>8&255,this.buffer[this.pos++]=t>>>16&255}writeInt24BE(t){t>=0?this.writeUInt24BE(t):this.writeUInt24BE(t+16777215+1)}writeInt24LE(t){t>=0?this.writeUInt24LE(t):this.writeUInt24LE(t+16777215+1)}fill(t,e){if(e>8|(255&i)<<8),n[r]=i}return new Uint8Array(n.buffer)}for(let t of Object.getOwnPropertyNames(DataView.prototype))if("set"===t.slice(0,3)){let e=t.slice(3).replace("Ui","UI");"Float32"===e?e="Float":"Float64"===e&&(e="Double");let n=i.TYPES[e];a.prototype["write"+e+(1===n?"":"BE")]=function(e){this.view[t](this.pos,e,!1),this.pos+=n},1!==n&&(a.prototype["write"+e+"LE"]=function(e){this.view[t](this.pos,e,!0),this.pos+=n})}class h{fromBuffer(t){let e=new i(t);return this.decode(e)}toBuffer(t){let e=this.size(t),n=new Uint8Array(e),r=new a(n);return this.encode(r,t),n}}var u={};n(u,"Number",(()=>c)),n(u,"uint8",(()=>f)),n(u,"uint16be",(()=>d)),n(u,"uint16",(()=>p)),n(u,"uint16le",(()=>g)),n(u,"uint24be",(()=>y)),n(u,"uint24",(()=>m)),n(u,"uint24le",(()=>b)),n(u,"uint32be",(()=>w)),n(u,"uint32",(()=>v)),n(u,"uint32le",(()=>A)),n(u,"int8",(()=>x)),n(u,"int16be",(()=>S)),n(u,"int16",(()=>_)),n(u,"int16le",(()=>C)),n(u,"int24be",(()=>k)),n(u,"int24",(()=>P)),n(u,"int24le",(()=>E)),n(u,"int32be",(()=>T)),n(u,"int32",(()=>O)),n(u,"int32le",(()=>I)),n(u,"floatbe",(()=>L)),n(u,"float",(()=>B)),n(u,"floatle",(()=>M)),n(u,"doublebe",(()=>D)),n(u,"double",(()=>R)),n(u,"doublele",(()=>N)),n(u,"Fixed",(()=>F)),n(u,"fixed16be",(()=>U)),n(u,"fixed16",(()=>z)),n(u,"fixed16le",(()=>W)),n(u,"fixed32be",(()=>j)),n(u,"fixed32",(()=>V)),n(u,"fixed32le",(()=>H));class c extends h{constructor(t,e="BE"){super(),this.type=t,this.endian=e,this.fn=this.type,"8"!==this.type[this.type.length-1]&&(this.fn+=this.endian)}size(){return i.TYPES[this.type]}decode(t){return t[`read${this.fn}`]()}encode(t,e){return t[`write${this.fn}`](e)}}const f=new c("UInt8"),d=new c("UInt16","BE"),p=d,g=new c("UInt16","LE"),y=new c("UInt24","BE"),m=y,b=new c("UInt24","LE"),w=new c("UInt32","BE"),v=w,A=new c("UInt32","LE"),x=new c("Int8"),S=new c("Int16","BE"),_=S,C=new c("Int16","LE"),k=new c("Int24","BE"),P=k,E=new c("Int24","LE"),T=new c("Int32","BE"),O=T,I=new c("Int32","LE"),L=new c("Float","BE"),B=L,M=new c("Float","LE"),D=new c("Double","BE"),R=D,N=new c("Double","LE");class F extends c{constructor(t,e,n=t>>1){super(`Int${t}`,e),this._point=1<q)),n(G,"PropertyDescriptor",(()=>X));class X{constructor(t={}){this.enumerable=!0,this.configurable=!0;for(let e in t){const n=t[e];this[e]=n}}}class Z extends h{constructor(t,e,n="count"){super(),this.type=t,this.length=e,this.lengthType=n}decode(t,e){let n;const{pos:r}=t,i=[];let s=e;if(null!=this.length&&(n=q(this.length,t,e)),this.length instanceof c&&(Object.defineProperties(i,{parent:{value:e},_startOffset:{value:r},_currentOffset:{value:0,writable:!0},_length:{value:n}}),s=i),null==n||"bytes"===this.lengthType){const r=null!=n?t.pos+n:(null!=e?e._length:void 0)?e._startOffset+e._length:t.length;for(;t.pos=this.length)){if(null==this.items[t]){const{pos:e}=this.stream;this.stream.pos=this.base+this.type.size(null,this.ctx)*t,this.items[t]=this.type.decode(this.stream,this.ctx),this.stream.pos=e}return this.items[t]}}toArray(){const t=[];for(let e=0,n=this.length;e=55296&&r<=56319&&et&&t[e]),i)):r.version=this.type.decode(t),this.versions.header&&this._parseFields(t,r,this.versions.header);const s=this.versions[r.version];if(null==s)throw new Error(`Unknown version ${r.version}`);return s instanceof at?s.decode(t,e):(this._parseFields(t,r,s),null!=this.process&&this.process.call(r,t),r)}size(t,e,n=!0){let r,i;if(!t)throw new Error("Not a fixed size");null!=this.preEncode&&this.preEncode.call(t);const s={parent:e,val:t,pointerSize:0};let o=0;if("string"!=typeof this.type&&(o+=this.type.size(t.version,s)),this.versions.header)for(r in this.versions.header)i=this.versions.header[r],null!=i.size&&(o+=i.size(t[r],s));const a=this.versions[t.version];if(null==a)throw new Error(`Unknown version ${t.version}`);for(r in a)i=a[r],null!=i.size&&(o+=i.size(t[r],s));return n&&(o+=s.pointerSize),o}encode(t,e,n){let r,i;null!=this.preEncode&&this.preEncode.call(e,t);const s={pointers:[],startOffset:t.pos,parent:n,val:e,pointerSize:0};if(s.pointerOffset=t.pos+this.size(e,s,!1),"string"!=typeof this.type&&this.type.encode(t,e.version),this.versions.header)for(r in this.versions.header)i=this.versions.header[r],null!=i.encode&&i.encode(t,e[r],s);const o=this.versions[e.version];for(r in o)i=o[r],null!=i.encode&&i.encode(t,e[r],s);let a=0;for(;aht)),n(lt,"VoidPointer",(()=>ut));class ht extends h{constructor(t,e,n={}){if(super(),this.offsetType=t,this.type=e,this.options=n,"void"===this.type&&(this.type=null),null==this.options.type&&(this.options.type="local"),null==this.options.allowNull&&(this.options.allowNull=!0),null==this.options.nullValue&&(this.options.nullValue=0),null==this.options.lazy&&(this.options.lazy=!1),this.options.relativeTo){if("function"!=typeof this.options.relativeTo)throw new Error("relativeTo option must be a function");this.relativeToGetter=n.relativeTo}}decode(t,e){const n=this.offsetType.decode(t,e);if(n===this.options.nullValue&&this.options.allowNull)return null;let r;switch(this.options.type){case"local":r=e._startOffset;break;case"immediate":r=t.pos-this.offsetType.size();break;case"parent":r=e.parent._startOffset;break;default:for(var i=e;i.parent;)i=i.parent;r=i._startOffset||0}this.options.relativeTo&&(r+=this.relativeToGetter(e));const s=n+r;if(null!=this.type){let n=null;const r=()=>{if(null!=n)return n;const{pos:r}=t;return t.pos=s,n=this.type.decode(t,e),t.pos=r,n};return this.options.lazy?new X({get:r}):r()}return s}size(t,e){const n=e;switch(this.options.type){case"local":case"immediate":break;case"parent":e=e.parent;break;default:for(;e.parent;)e=e.parent}let{type:r}=this;if(null==r){if(!(t instanceof ut))throw new Error("Must be a VoidPointer");({type:r}=t),t=t.value}if(t&&e){let i=r.size(t,n);e.pointerSize+=i}return this.offsetType.size()}encode(t,e,n){let r;const i=n;if(null==e)return void this.offsetType.encode(t,this.options.nullValue);switch(this.options.type){case"local":r=n.startOffset;break;case"immediate":r=t.pos+this.offsetType.size(e,i);break;case"parent":r=(n=n.parent).startOffset;break;default:for(r=0;n.parent;)n=n.parent}this.options.relativeTo&&(r+=this.relativeToGetter(i.val)),this.offsetType.encode(t,n.pointerOffset-r);let{type:s}=this;if(null==s){if(!(e instanceof ut))throw new Error("Must be a VoidPointer");({type:s}=e),e=e.value}return n.pointers.push({type:s,val:e,parent:i}),n.pointerOffset+=s.size(e,i)}}class ut{constructor(t,e){this.type=t,this.value=e}}e(t.exports,G),e(t.exports,u),e(t.exports,lt)},4766(t,e,n){var r,i,s=n(2504),o=n(7571);function a(t){return t&&t.__esModule?t.default:t}function l(t,e,n,r){Object.defineProperty(t,e,{get:n,set:r,enumerable:!0,configurable:!0})}r=t.exports,Object.defineProperty(r,"__esModule",{value:!0,configurable:!0}),l(t.exports,"getCategory",(()=>S)),l(t.exports,"getCombiningClass",(()=>_)),l(t.exports,"getScript",(()=>C)),l(t.exports,"getEastAsianWidth",(()=>k)),l(t.exports,"getNumericValue",(()=>P)),l(t.exports,"isAlphabetic",(()=>E)),l(t.exports,"isDigit",(()=>T)),l(t.exports,"isPunctuation",(()=>O)),l(t.exports,"isLowerCase",(()=>I)),l(t.exports,"isUpperCase",(()=>L)),l(t.exports,"isTitleCase",(()=>B)),l(t.exports,"isWhiteSpace",(()=>M)),l(t.exports,"isBaseForm",(()=>D)),l(t.exports,"isMark",(()=>R)),l(t.exports,"default",(()=>N)),i=JSON.parse('{"categories":["Cc","Zs","Po","Sc","Ps","Pe","Sm","Pd","Nd","Lu","Sk","Pc","Ll","So","Lo","Pi","Cf","No","Pf","Lt","Lm","Mn","Me","Mc","Nl","Zl","Zp","Cs","Co"],"combiningClasses":["Not_Reordered","Above","Above_Right","Below","Attached_Above_Right","Attached_Below","Overlay","Iota_Subscript","Double_Below","Double_Above","Below_Right","Above_Left","CCC10","CCC11","CCC12","CCC13","CCC14","CCC15","CCC16","CCC17","CCC18","CCC19","CCC20","CCC21","CCC22","CCC23","CCC24","CCC25","CCC30","CCC31","CCC32","CCC27","CCC28","CCC29","CCC33","CCC34","CCC35","CCC36","Nukta","Virama","CCC84","CCC91","CCC103","CCC107","CCC118","CCC122","CCC129","CCC130","CCC132","Attached_Above","Below_Left","Left","Kana_Voicing","CCC26","Right"],"scripts":["Common","Latin","Bopomofo","Inherited","Greek","Coptic","Cyrillic","Armenian","Hebrew","Arabic","Syriac","Thaana","Nko","Samaritan","Mandaic","Devanagari","Bengali","Gurmukhi","Gujarati","Oriya","Tamil","Telugu","Kannada","Malayalam","Sinhala","Thai","Lao","Tibetan","Myanmar","Georgian","Hangul","Ethiopic","Cherokee","Canadian_Aboriginal","Ogham","Runic","Tagalog","Hanunoo","Buhid","Tagbanwa","Khmer","Mongolian","Limbu","Tai_Le","New_Tai_Lue","Buginese","Tai_Tham","Balinese","Sundanese","Batak","Lepcha","Ol_Chiki","Braille","Glagolitic","Tifinagh","Han","Hiragana","Katakana","Yi","Lisu","Vai","Bamum","Syloti_Nagri","Phags_Pa","Saurashtra","Kayah_Li","Rejang","Javanese","Cham","Tai_Viet","Meetei_Mayek","null","Linear_B","Lycian","Carian","Old_Italic","Gothic","Old_Permic","Ugaritic","Old_Persian","Deseret","Shavian","Osmanya","Osage","Elbasan","Caucasian_Albanian","Linear_A","Cypriot","Imperial_Aramaic","Palmyrene","Nabataean","Hatran","Phoenician","Lydian","Meroitic_Hieroglyphs","Meroitic_Cursive","Kharoshthi","Old_South_Arabian","Old_North_Arabian","Manichaean","Avestan","Inscriptional_Parthian","Inscriptional_Pahlavi","Psalter_Pahlavi","Old_Turkic","Old_Hungarian","Hanifi_Rohingya","Old_Sogdian","Sogdian","Elymaic","Brahmi","Kaithi","Sora_Sompeng","Chakma","Mahajani","Sharada","Khojki","Multani","Khudawadi","Grantha","Newa","Tirhuta","Siddham","Modi","Takri","Ahom","Dogra","Warang_Citi","Nandinagari","Zanabazar_Square","Soyombo","Pau_Cin_Hau","Bhaiksuki","Marchen","Masaram_Gondi","Gunjala_Gondi","Makasar","Cuneiform","Egyptian_Hieroglyphs","Anatolian_Hieroglyphs","Mro","Bassa_Vah","Pahawh_Hmong","Medefaidrin","Miao","Tangut","Nushu","Duployan","SignWriting","Nyiakeng_Puachue_Hmong","Wancho","Mende_Kikakui","Adlam"],"eaw":["N","Na","A","W","H","F"]}');const h=new(a(o))(a(s).toByteArray("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")),u=Math.log2||(t=>Math.log(t)/Math.LN2),c=t=>u(t)+1|0,f=c(a(i).categories.length-1),d=c(a(i).combiningClasses.length-1),p=c(a(i).scripts.length-1),g=c(a(i).eaw.length-1),y=d+p+g+10,m=p+g+10,b=g+10,w=(1<>y&w]}function _(t){const e=h.get(t);return a(i).combiningClasses[e>>m&v]}function C(t){const e=h.get(t);return a(i).scripts[e>>b&A]}function k(t){const e=h.get(t);return a(i).eaw[e>>10&x]}function P(t){let e=h.get(t),n=1023&e;if(0===n)return null;if(n<=50)return n-1;if(n<480)return((n>>4)-12)/(1+(15&n));if(n<768){e=(n>>5)-14;let t=2+(31&n);for(;t>0;)e*=10,t--;return e}{e=(n>>2)-191;let t=1+(3&n);for(;t>0;)e*=60,t--;return e}}function E(t){const e=S(t);return"Lu"===e||"Ll"===e||"Lt"===e||"Lm"===e||"Lo"===e||"Nl"===e}function T(t){return"Nd"===S(t)}function O(t){const e=S(t);return"Pc"===e||"Pd"===e||"Pe"===e||"Pf"===e||"Pi"===e||"Po"===e||"Ps"===e}function I(t){return"Ll"===S(t)}function L(t){return"Lu"===S(t)}function B(t){return"Lt"===S(t)}function M(t){const e=S(t);return"Zs"===e||"Zl"===e||"Zp"===e}function D(t){const e=S(t);return"Nd"===e||"No"===e||"Nl"===e||"Lu"===e||"Ll"===e||"Lt"===e||"Lm"===e||"Lo"===e||"Me"===e||"Mc"===e}function R(t){const e=S(t);return"Mn"===e||"Me"===e||"Mc"===e}var N={getCategory:S,getCombiningClass:_,getScript:C,getEastAsianWidth:k,getNumericValue:P,isAlphabetic:E,isDigit:T,isPunctuation:O,isLowerCase:I,isUpperCase:L,isTitleCase:B,isWhiteSpace:M,isBaseForm:D,isMark:R}},7507(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.XmlDocument=e.XmlElement=e.XmlCommentNode=e.XmlCDataNode=e.XmlTextNode=void 0;const i=r(n(1733));class s{constructor(t){this.text=t,this.type="text"}toString(t){return f(c(this.text),t)}toStringWithIndent(t,e){return t+this.toString(e)}}e.XmlTextNode=s;class o{constructor(t){this.cdata=t,this.type="cdata"}toString(t){return`${f(this.cdata,t)}`}toStringWithIndent(t,e){return t+this.toString(e)}}e.XmlCDataNode=o;class a{constructor(t){this.comment=t,this.type="comment"}toString(t){return`\x3c!--${f(c(this.comment),t)}--\x3e`}toStringWithIndent(t,e){return t+this.toString(e)}}e.XmlCommentNode=a;class l{constructor(t,e){if(this.type="element",!e&&u.length){var n=u[u.length-1];"parser"in n&&(e=n.parser)}this.name=t.name,this.attr=t.attributes,this.val="",this.children=[],this.firstChild=null,this.lastChild=null,this.line=e?e.line:null,this.column=e?e.column:null,this.position=e?e.position:null,this.startTagPosition=e?e.startTagPosition:null}_addChild(t){this.children.push(t),this.firstChild||(this.firstChild=t),this.lastChild=t}_opentag(t){const e=new l(t);this._addChild(e),u.unshift(e)}_closetag(){u.shift()}_text(t){this.val+=t,this._addChild(new s(t))}_cdata(t){this.val+=t,this._addChild(new o(t))}_comment(t){this._addChild(new a(t))}_error(t){throw t}eachChild(t,e){for(let n=0,r=this.children.length;n1?n.attr[e[1]]:n.val:void 0}toString(t){return this.toStringWithIndent("",t)}toStringWithIndent(t,e){let n=`${t}<${this.name}`;const r=(null==e?void 0:e.compressed)?"":"\n";for(const t in this.attr)Object.prototype.hasOwnProperty.call(this.attr,t)&&(n+=` ${t}="${c(this.attr[t])}"`);if(1===this.children.length&&"element"!==this.children[0].type)n+=`>${this.children[0].toString(e)}`;else if(this.children.length){n+=`>${r}`;const i=t+((null==e?void 0:e.compressed)?"":" ");for(let t=0,s=this.children.length;t`}else(null==e?void 0:e.html)?["area","base","br","col","embed","frame","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"].includes(this.name)?n+="/>":n+=`>`:n+="/>";return n}}e.XmlElement=l;class h extends l{constructor(t){if(super({name:"",attributes:{}}),!(t=t.toString().trim()))throw new Error("No XML to parse!");var e;this.doctype="",this.parser=i.default.parser(!0),(e=this.parser).onopentag=t=>{var e;return null===(e=u[0])||void 0===e?void 0:e._opentag(t)},e.onclosetag=()=>{var t;return null===(t=u[0])||void 0===t?void 0:t._closetag()},e.ontext=t=>{var e;return null===(e=u[0])||void 0===e?void 0:e._text(t)},e.oncdata=t=>{var e;return null===(e=u[0])||void 0===e?void 0:e._cdata(t)},e.oncomment=t=>{var e;return null===(e=u[0])||void 0===e?void 0:e._comment(t)},e.ondoctype=t=>{const e=u[0];e._doctype&&e._doctype(t)},e.onerror=t=>{var e;return null===(e=u[0])||void 0===e?void 0:e._error(t)},u=[this];try{this.parser.write(t)}finally{delete this.parser}}_opentag(t){""===this.name?(this.name=t.name,this.attr=t.attributes):super._opentag(t)}_doctype(t){this.doctype+=t}}e.XmlDocument=h;let u=[];function c(t){return t.toString().replace(/&/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")}function f(t,e){let n=t;return(null==e?void 0:e.trimmed)&&t.length>25&&(n=n.substring(0,25).trim()+"…"),(null==e?void 0:e.preserveWhitespace)||(n=n.trim()),n}e.default=h},9294(t,e,n){"use strict";n.d(e,{c:()=>r});var r=n(3011)},1635(t,e,n){"use strict";function r(t,e,n,r){var i,s=arguments.length,o=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,n,o):i(e,n))||o);return s>3&&o&&Object.defineProperty(e,n,o),o}n.d(e,{__decorate:()=>r}),Object.create,Object.create}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={id:r,loaded:!1,exports:{}};return t[r].call(s.exports,s,s.exports,n),s.loaded=!0,s.exports}return n.amdO={},n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),n(6092)})(),t.exports=e()}}]);