@marcusumn/html2pdf.js 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +304 -0
- package/dist/html2pdf.bundle.js +40561 -0
- package/dist/html2pdf.bundle.min.js +3 -0
- package/dist/html2pdf.bundle.min.js.LICENSE.txt +2115 -0
- package/dist/html2pdf.bundle.min.js.map +1 -0
- package/dist/html2pdf.js +32733 -0
- package/dist/html2pdf.min.js +3 -0
- package/dist/html2pdf.min.js.LICENSE.txt +2094 -0
- package/dist/html2pdf.min.js.map +1 -0
- package/package.json +65 -0
- package/src/index.js +29 -0
- package/src/plugin/hyperlinks.js +59 -0
- package/src/plugin/jspdf-plugin.js +99 -0
- package/src/plugin/pagebreaks.js +134 -0
- package/src/snapdom/clone.js +212 -0
- package/src/utils.js +47 -0
- package/src/worker.js +484 -0
- package/type.d.ts +49 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see html2pdf.min.js.LICENSE.txt */
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("html2canvas")):"function"==typeof define&&define.amd?define("html2pdf",["html2canvas"],t):"object"==typeof exports?exports.html2pdf=t(require("html2canvas")):e.html2pdf=t(e.html2canvas)}(self,function(e){return function(){var t,n,r={"./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.r(t),n.d(t,{default:function(){return r}})},"./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js":function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.r(t),n.d(t,{default:function(){return r}})},"./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js":function(e,t,n){"use strict";function r(e,t,n,r,s,i,o){try{var a=e[i](o),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,s)}function s(e){return function(){var t=this,n=arguments;return new Promise(function(s,i){var o=e.apply(t,n);function a(e){r(o,s,i,a,l,"next",e)}function l(e){r(o,s,i,a,l,"throw",e)}a(void 0)})}}n.r(t),n.d(t,{default:function(){return s}})},"./node_modules/@babel/runtime/helpers/esm/defineProperty.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n("./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js");function s(e,t,n){return(t=(0,r.default)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},"./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js":function(e,t,n){"use strict";function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,s,i,o,a=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){u=!0,s=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw s}}return a}}n.r(t),n.d(t,{default:function(){return r}})},"./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js":function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.r(t),n.d(t,{default:function(){return r}})},"./node_modules/@babel/runtime/helpers/esm/slicedToArray.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n("./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js"),s=n("./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js"),i=n("./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"),o=n("./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js");function a(e,t){return(0,r.default)(e)||(0,s.default)(e,t)||(0,i.default)(e,t)||(0,o.default)()}},"./node_modules/@babel/runtime/helpers/esm/toPrimitive.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n("./node_modules/@babel/runtime/helpers/esm/typeof.js");function s(e,t){if("object"!=(0,r.default)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var s=n.call(e,t||"default");if("object"!=(0,r.default)(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},"./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n("./node_modules/@babel/runtime/helpers/esm/typeof.js"),s=n("./node_modules/@babel/runtime/helpers/esm/toPrimitive.js");function i(e){var t=(0,s.default)(e,"string");return"symbol"==(0,r.default)(t)?t:t+""}},"./node_modules/@babel/runtime/helpers/esm/typeof.js":function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.r(t),n.d(t,{default:function(){return r}})},"./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n("./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");function s(e,t){if(e){if("string"==typeof e)return(0,r.default)(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.default)(e,t):void 0}}},"./node_modules/canvg/lib/index.es.js":function(e,t,n){"use strict";n.r(t),n.d(t,{AElement:function(){return De},AnimateColorElement:function(){return Oe},AnimateElement:function(){return Ce},AnimateTransformElement:function(){return Te},BoundingBox:function(){return le},CB1:function(){return C},CB2:function(){return O},CB3:function(){return T},CB4:function(){return I},Canvg:function(){return mt},CircleElement:function(){return ye},ClipPathElement:function(){return tt},DefsElement:function(){return Se},DescElement:function(){return lt},Document:function(){return dt},Element:function(){return ne},EllipseElement:function(){return be},FeColorMatrixElement:function(){return Je},FeCompositeElement:function(){return it},FeDropShadowElement:function(){return rt},FeGaussianBlurElement:function(){return ot},FeMorphologyElement:function(){return st},FilterElement:function(){return nt},Font:function(){return ae},FontElement:function(){return Ie},FontFaceElement:function(){return Me},GElement:function(){return Ne},GlyphElement:function(){return de},GradientElement:function(){return Le},ImageElement:function(){return Ve},LineElement:function(){return _e},LinearGradientElement:function(){return ke},MarkerElement:function(){return Ae},MaskElement:function(){return Qe},Matrix:function(){return K},MissingGlyphElement:function(){return Re},Mouse:function(){return U},PSEUDO_ZERO:function(){return L},Parser:function(){return Y},PathElement:function(){return he},PathParser:function(){return ue},PatternElement:function(){return xe},Point:function(){return z},PolygonElement:function(){return we},PolylineElement:function(){return je},Property:function(){return D},QB1:function(){return M},QB2:function(){return R},QB3:function(){return F},RadialGradientElement:function(){return Pe},RectElement:function(){return ve},RenderedElement:function(){return ce},Rotate:function(){return Z},SVGElement:function(){return ge},SVGFontLoader:function(){return We},Scale:function(){return $},Screen:function(){return H},Skew:function(){return J},SkewX:function(){return Q},SkewY:function(){return ee},StopElement:function(){return Ee},StyleElement:function(){return Ge},SymbolElement:function(){return He},TRefElement:function(){return Fe},TSpanElement:function(){return pe},TextElement:function(){return fe},TextPathElement:function(){return Ue},TitleElement:function(){return at},Transform:function(){return te},Translate:function(){return X},UnknownElement:function(){return re},UseElement:function(){return Ye},ViewPort:function(){return B},compressSpaces:function(){return c},default:function(){return mt},getSelectorSpecificity:function(){return N},normalizeAttributeName:function(){return m},normalizeColor:function(){return v},parseExternalUrl:function(){return g},presets:function(){return u},toNumbers:function(){return f},trimLeft:function(){return h},trimRight:function(){return d},vectorMagnitude:function(){return k},vectorsAngle:function(){return E},vectorsRatio:function(){return P}}),n("./node_modules/core-js/modules/es.promise.js");var r=n("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),s=(n("./node_modules/core-js/modules/es.string.match.js"),n("./node_modules/core-js/modules/es.string.replace.js"),n("./node_modules/core-js/modules/es.string.starts-with.js"),n("./node_modules/core-js/modules/es.array.iterator.js"),n("./node_modules/core-js/modules/web.dom-collections.iterator.js"),n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js")),i=(n("./node_modules/core-js/modules/es.array.reduce.js"),n("./node_modules/core-js/modules/es.string.ends-with.js"),n("./node_modules/core-js/modules/es.string.split.js"),n("./node_modules/raf/index.js")),o=(n("./node_modules/core-js/modules/es.string.trim.js"),n("./node_modules/rgbcolor/index.js")),a=(n("./node_modules/core-js/modules/es.array.index-of.js"),n("./node_modules/core-js/modules/es.string.includes.js"),n("./node_modules/core-js/modules/es.array.reverse.js"),n("./node_modules/svg-pathdata/lib/SVGPathData.module.js")),l=(n("./node_modules/core-js/modules/es.regexp.to-string.js"),n("./node_modules/stackblur-canvas/dist/stackblur-es.js")),u=Object.freeze({__proto__:null,offscreen:function(){var{DOMParser:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,createCanvas(e,t){return new OffscreenCanvas(e,t)},createImage(e){return(0,r.default)(function*(){var t=yield fetch(e),n=yield t.blob();return yield createImageBitmap(n)})()}};return"undefined"==typeof DOMParser&&void 0!==e||Reflect.deleteProperty(t,"DOMParser"),t},node:function(e){var{DOMParser:t,canvas:n,fetch:r}=e;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,fetch:r,createCanvas:n.createCanvas,createImage:n.loadImage}}});function c(e){return e.replace(/(?!\u3000)\s+/gm," ")}function h(e){return e.replace(/^[\n \t]+/,"")}function d(e){return e.replace(/[\n \t]+$/,"")}function f(e){return((e||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}var p=/^[A-Z-]+$/;function m(e){return p.test(e)?e.toLowerCase():e}function g(e){var t=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(e)||[];return t[2]||t[3]||t[4]}function v(e){if(!e.startsWith("rgb"))return e;var t=3;return e.replace(/\d+(\.\d+)?/g,(e,n)=>t--&&n?String(Math.round(parseFloat(e))):e)}var y=/(\[[^\]]+\])/g,b=/(#[^\s+>~.[:]+)/g,_=/(\.[^\s+>~.[:]+)/g,j=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,w=/(:[\w-]+\([^)]*\))/gi,x=/(:[^\s+>~.[:]+)/g,A=/([^\s+>~.[:]+)/g;function S(e,t){var n=t.exec(e);return n?[e.replace(t," "),n.length]:[e,0]}function N(e){var t=[0,0,0],n=e.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),r=0;return[n,r]=S(n,y),t[1]+=r,[n,r]=S(n,b),t[0]+=r,[n,r]=S(n,_),t[1]+=r,[n,r]=S(n,j),t[2]+=r,[n,r]=S(n,w),t[1]+=r,[n,r]=S(n,x),t[1]+=r,n=n.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[n,r]=S(n,A),t[2]+=r,t.join("")}var L=1e-8;function k(e){return Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2))}function P(e,t){return(e[0]*t[0]+e[1]*t[1])/(k(e)*k(t))}function E(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(P(e,t))}function C(e){return e*e*e}function O(e){return 3*e*e*(1-e)}function T(e){return 3*e*(1-e)*(1-e)}function I(e){return(1-e)*(1-e)*(1-e)}function M(e){return e*e}function R(e){return 2*e*(1-e)}function F(e){return(1-e)*(1-e)}class D{constructor(e,t,n){this.document=e,this.name=t,this.value=n,this.isNormalizedColor=!1}static empty(e){return new D(e,"EMPTY","")}split(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",{document:t,name:n}=this;return c(this.getString()).trim().split(e).map(e=>new D(t,n,e))}hasValue(e){var{value:t}=this;return null!==t&&""!==t&&(e||0!==t)&&void 0!==t}isString(e){var{value:t}=this,n="string"==typeof t;return n&&e?e.test(t):n}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case e.endsWith("px"):case/^[0-9]+$/.test(e):return!0;default:return!1}}setValue(e){return this.value=e,this}getValue(e){return void 0===e||this.hasValue()?this.value:e}getNumber(e){if(!this.hasValue())return void 0===e?0:parseFloat(e);var{value:t}=this,n=parseFloat(t);return this.isString(/%$/)&&(n/=100),n}getString(e){return void 0===e||this.hasValue()?void 0===this.value?"":String(this.value):String(e)}getColor(e){var t=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,t=v(t),this.value=t),t}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var[n,r]="boolean"==typeof e?[void 0,e]:[e],{viewPort:s}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(s.computeSize("x"),s.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(s.computeSize("x"),s.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*s.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*s.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&r:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*s.computeSize(n);default:var i=this.getNumber();return t&&i<1?i*s.computeSize(n):i}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var e=this.getString(),t=/#([^)'"]+)/.exec(e);return t&&(t=t[1]),t||(t=e),this.document.definitions[t]}getFillStyleDefinition(e,t){var n=this.getDefinition();if(!n)return null;if("function"==typeof n.createGradient)return n.createGradient(this.document.ctx,e,t);if("function"==typeof n.createPattern){if(n.getHrefAttribute().hasValue()){var r=n.getAttribute("patternTransform");n=n.getHrefAttribute().getDefinition(),r.hasValue()&&n.getAttribute("patternTransform",!0).setValue(r.value)}return n.createPattern(this.document.ctx,e,t)}return null}getTextBaseline(){return this.hasValue()?D.textBaselineMapping[this.getString()]:null}addOpacity(e){for(var t=this.getColor(),n=t.length,r=0,s=0;s<n&&(","===t[s]&&r++,3!==r);s++);if(e.hasValue()&&this.isString()&&3!==r){var i=new o(t);i.ok&&(i.alpha=e.getNumber(),t=i.toRGBA())}return new D(this.document,this.name,t)}}D.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};class B{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(e,t){this.viewPorts.push({width:e,height:t})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:e}=this;return e[e.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(e){return"number"==typeof e?e:"x"===e?this.width:"y"===e?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class z{constructor(e,t){this.x=e,this.y=t}static parse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,[n=t,r=t]=f(e);return new z(n,r)}static parseScale(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,[n=t,r=n]=f(e);return new z(n,r)}static parsePath(e){for(var t=f(e),n=t.length,r=[],s=0;s<n;s+=2)r.push(new z(t[s],t[s+1]));return r}angleTo(e){return Math.atan2(e.y-this.y,e.x-this.x)}applyTransform(e){var{x:t,y:n}=this,r=t*e[0]+n*e[2]+e[4],s=t*e[1]+n*e[3]+e[5];this.x=r,this.y=s}}class U{constructor(e){this.screen=e,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:e,onClick:t,onMouseMove:n}=this,r=e.ctx.canvas;r.onclick=t,r.onmousemove=n,this.working=!0}}stop(){if(this.working){var e=this.screen.ctx.canvas;this.working=!1,e.onclick=null,e.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:e,events:t,eventElements:n}=this,{style:r}=e.ctx.canvas;r&&(r.cursor=""),t.forEach((e,t)=>{for(var{run:r}=e,s=n[t];s;)r(s),s=s.parent}),this.events=[],this.eventElements=[]}}checkPath(e,t){if(this.working&&t){var{events:n,eventElements:r}=this;n.forEach((n,s)=>{var{x:i,y:o}=n;!r[s]&&t.isPointInPath&&t.isPointInPath(i,o)&&(r[s]=e)})}}checkBoundingBox(e,t){if(this.working&&t){var{events:n,eventElements:r}=this;n.forEach((n,s)=>{var{x:i,y:o}=n;!r[s]&&t.isPointInBox(i,o)&&(r[s]=e)})}}mapXY(e,t){for(var{window:n,ctx:r}=this.screen,s=new z(e,t),i=r.canvas;i;)s.x-=i.offsetLeft,s.y-=i.offsetTop,i=i.offsetParent;return n.scrollX&&(s.x+=n.scrollX),n.scrollY&&(s.y+=n.scrollY),s}onClick(e){var{x:t,y:n}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onclick",x:t,y:n,run(e){e.onClick&&e.onClick()}})}onMouseMove(e){var{x:t,y:n}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onmousemove",x:t,y:n,run(e){e.onMouseMove&&e.onMouseMove()}})}}var q="undefined"!=typeof window?window:null,V="undefined"!=typeof fetch?fetch.bind(void 0):null;class H{constructor(e){var{fetch:t=V,window:n=q}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new B,this.mouse=new U(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=n,this.fetch=t}wait(e){this.waits.push(e)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var e=this.waits.every(e=>e());return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}setDefaults(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4}setViewBox(e){var{document:t,ctx:n,aspectRatio:r,width:s,desiredWidth:i,height:o,desiredHeight:a,minX:l=0,minY:u=0,refX:h,refY:d,clip:f=!1,clipX:p=0,clipY:m=0}=e,g=c(r).replace(/^defer\s/,""),[v,y]=g.split(" "),b=v||"xMidYMid",_=y||"meet",j=s/i,w=o/a,x=Math.min(j,w),A=Math.max(j,w),S=i,N=a;"meet"===_&&(S*=x,N*=x),"slice"===_&&(S*=A,N*=A);var L=new D(t,"refX",h),k=new D(t,"refY",d),P=L.hasValue()&&k.hasValue();if(P&&n.translate(-x*L.getPixels("x"),-x*k.getPixels("y")),f){var E=x*p,C=x*m;n.beginPath(),n.moveTo(E,C),n.lineTo(s,C),n.lineTo(s,o),n.lineTo(E,o),n.closePath(),n.clip()}if(!P){var O="meet"===_&&x===w,T="slice"===_&&A===w,I="meet"===_&&x===j,M="slice"===_&&A===j;b.startsWith("xMid")&&(O||T)&&n.translate(s/2-S/2,0),b.endsWith("YMid")&&(I||M)&&n.translate(0,o/2-N/2),b.startsWith("xMax")&&(O||T)&&n.translate(s-S,0),b.endsWith("YMax")&&(I||M)&&n.translate(0,o-N)}switch(!0){case"none"===b:n.scale(j,w);break;case"meet"===_:n.scale(x,x);break;case"slice"===_:n.scale(A,A)}n.translate(-l,-u)}start(e){var{enableRedraw:t=!1,ignoreMouse:n=!1,ignoreAnimation:r=!1,ignoreDimensions:s=!1,ignoreClear:o=!1,forceRedraw:a,scaleWidth:l,scaleHeight:u,offsetX:c,offsetY:h}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{FRAMERATE:d,mouse:f}=this,p=1e3/d;if(this.frameDuration=p,this.readyPromise=new Promise(e=>{this.resolveReady=e}),this.isReady()&&this.render(e,s,o,l,u,c,h),t){var m=Date.now(),g=m,v=0,y=()=>{m=Date.now(),(v=m-g)>=p&&(g=m-v%p,this.shouldUpdate(r,a)&&(this.render(e,s,o,l,u,c,h),f.runEvents())),this.intervalId=i(y)};n||f.start(),this.intervalId=i(y)}}stop(){this.intervalId&&(i.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(e,t){if(!e){var{frameDuration:n}=this;if(this.animations.reduce((e,t)=>t.update(n)||e,!1))return!0}return!("function"!=typeof t||!t())||!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents()}render(e,t,n,r,s,i,o){var{CLIENT_WIDTH:a,CLIENT_HEIGHT:l,viewPort:u,ctx:c,isFirstRender:h}=this,d=c.canvas;u.clear(),d.width&&d.height?u.setCurrent(d.width,d.height):u.setCurrent(a,l);var p=e.getStyle("width"),m=e.getStyle("height");!t&&(h||"number"!=typeof r&&"number"!=typeof s)&&(p.hasValue()&&(d.width=p.getPixels("x"),d.style&&(d.style.width="".concat(d.width,"px"))),m.hasValue()&&(d.height=m.getPixels("y"),d.style&&(d.style.height="".concat(d.height,"px"))));var g=d.clientWidth||d.width,v=d.clientHeight||d.height;if(t&&p.hasValue()&&m.hasValue()&&(g=p.getPixels("x"),v=m.getPixels("y")),u.setCurrent(g,v),"number"==typeof i&&e.getAttribute("x",!0).setValue(i),"number"==typeof o&&e.getAttribute("y",!0).setValue(o),"number"==typeof r||"number"==typeof s){var y=f(e.getAttribute("viewBox").getString()),b=0,_=0;if("number"==typeof r){var j=e.getStyle("width");j.hasValue()?b=j.getPixels("x")/r:isNaN(y[2])||(b=y[2]/r)}if("number"==typeof s){var w=e.getStyle("height");w.hasValue()?_=w.getPixels("y")/s:isNaN(y[3])||(_=y[3]/s)}b||(b=_),_||(_=b),e.getAttribute("width",!0).setValue(r),e.getAttribute("height",!0).setValue(s);var x=e.getStyle("transform",!0,!0);x.setValue("".concat(x.getString()," scale(").concat(1/b,", ").concat(1/_,")"))}n||c.clearRect(0,0,g,v),e.render(c),h&&(this.isFirstRender=!1)}}H.defaultWindow=q,H.defaultFetch=V;var{defaultFetch:W}=H,G="undefined"!=typeof DOMParser?DOMParser:null;class Y{constructor(){var{fetch:e=W,DOMParser:t=G}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.fetch=e,this.DOMParser=t}parse(e){var t=this;return(0,r.default)(function*(){return e.startsWith("<")?t.parseFromString(e):t.load(e)})()}parseFromString(e){var t=new this.DOMParser;try{return this.checkDocument(t.parseFromString(e,"image/svg+xml"))}catch(n){return this.checkDocument(t.parseFromString(e,"text/xml"))}}checkDocument(e){var t=e.getElementsByTagName("parsererror")[0];if(t)throw new Error(t.textContent);return e}load(e){var t=this;return(0,r.default)(function*(){var n=yield t.fetch(e),r=yield n.text();return t.parseFromString(r)})()}}class X{constructor(e,t){this.type="translate",this.point=null,this.point=z.parse(t)}apply(e){var{x:t,y:n}=this.point;e.translate(t||0,n||0)}unapply(e){var{x:t,y:n}=this.point;e.translate(-1*t||0,-1*n||0)}applyToPoint(e){var{x:t,y:n}=this.point;e.applyTransform([1,0,0,1,t||0,n||0])}}class Z{constructor(e,t,n){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var r=f(t);this.angle=new D(e,"angle",r[0]),this.originX=n[0],this.originY=n[1],this.cx=r[1]||0,this.cy=r[2]||0}apply(e){var{cx:t,cy:n,originX:r,originY:s,angle:i}=this,o=t+r.getPixels("x"),a=n+s.getPixels("y");e.translate(o,a),e.rotate(i.getRadians()),e.translate(-o,-a)}unapply(e){var{cx:t,cy:n,originX:r,originY:s,angle:i}=this,o=t+r.getPixels("x"),a=n+s.getPixels("y");e.translate(o,a),e.rotate(-1*i.getRadians()),e.translate(-o,-a)}applyToPoint(e){var{cx:t,cy:n,angle:r}=this,s=r.getRadians();e.applyTransform([1,0,0,1,t||0,n||0]),e.applyTransform([Math.cos(s),Math.sin(s),-Math.sin(s),Math.cos(s),0,0]),e.applyTransform([1,0,0,1,-t||0,-n||0])}}class ${constructor(e,t,n){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var r=z.parseScale(t);0!==r.x&&0!==r.y||(r.x=L,r.y=L),this.scale=r,this.originX=n[0],this.originY=n[1]}apply(e){var{scale:{x:t,y:n},originX:r,originY:s}=this,i=r.getPixels("x"),o=s.getPixels("y");e.translate(i,o),e.scale(t,n||t),e.translate(-i,-o)}unapply(e){var{scale:{x:t,y:n},originX:r,originY:s}=this,i=r.getPixels("x"),o=s.getPixels("y");e.translate(i,o),e.scale(1/t,1/n||t),e.translate(-i,-o)}applyToPoint(e){var{x:t,y:n}=this.scale;e.applyTransform([t||0,0,0,n||0,0,0])}}class K{constructor(e,t,n){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=f(t),this.originX=n[0],this.originY=n[1]}apply(e){var{originX:t,originY:n,matrix:r}=this,s=t.getPixels("x"),i=n.getPixels("y");e.translate(s,i),e.transform(r[0],r[1],r[2],r[3],r[4],r[5]),e.translate(-s,-i)}unapply(e){var{originX:t,originY:n,matrix:r}=this,s=r[0],i=r[2],o=r[4],a=r[1],l=r[3],u=r[5],c=1/(s*(1*l-0*u)-i*(1*a-0*u)+o*(0*a-0*l)),h=t.getPixels("x"),d=n.getPixels("y");e.translate(h,d),e.transform(c*(1*l-0*u),c*(0*u-1*a),c*(0*o-1*i),c*(1*s-0*o),c*(i*u-o*l),c*(o*a-s*u)),e.translate(-h,-d)}applyToPoint(e){e.applyTransform(this.matrix)}}class J extends K{constructor(e,t,n){super(e,t,n),this.type="skew",this.angle=null,this.angle=new D(e,"angle",t)}}class Q extends J{constructor(e,t,n){super(e,t,n),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class ee extends J{constructor(e,t,n){super(e,t,n),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}class te{constructor(e,t,n){this.document=e,this.transforms=[];var r=function(e){return c(e).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(t);r.forEach(e=>{if("none"!==e){var[t,r]=function(e){var[t,n]=e.split("(");return[t.trim(),n.trim().replace(")","")]}(e),s=te.transformTypes[t];void 0!==s&&this.transforms.push(new s(this.document,r,n))}})}static fromElement(e,t){var n=t.getStyle("transform",!1,!0),[r,s=r]=t.getStyle("transform-origin",!1,!0).split(),i=[r,s];return n.hasValue()?new te(e,n.getString(),i):null}apply(e){for(var{transforms:t}=this,n=t.length,r=0;r<n;r++)t[r].apply(e)}unapply(e){for(var{transforms:t}=this,n=t.length-1;n>=0;n--)t[n].unapply(e)}applyToPoint(e){for(var{transforms:t}=this,n=t.length,r=0;r<n;r++)t[r].applyToPoint(e)}}te.transformTypes={translate:X,rotate:Z,scale:$,matrix:K,skewX:Q,skewY:ee};class ne{constructor(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.document=e,this.node=t,this.captureTextNodes=n,this.attributes=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],t&&1===t.nodeType){Array.from(t.attributes).forEach(t=>{var n=m(t.nodeName);this.attributes[n]=new D(e,n,t.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()&&this.getAttribute("style").getString().split(";").map(e=>e.trim()).forEach(t=>{if(t){var[n,r]=t.split(":").map(e=>e.trim());this.styles[n]=new D(e,n,r)}});var{definitions:r}=e,s=this.getAttribute("id");s.hasValue()&&(r[s.getString()]||(r[s.getString()]=this)),Array.from(t.childNodes).forEach(t=>{if(1===t.nodeType)this.addChild(t);else if(n&&(3===t.nodeType||4===t.nodeType)){var r=e.createTextNode(t);r.getText().length>0&&this.addChild(r)}})}}getAttribute(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.attributes[e];if(!n&&t){var r=new D(this.document,e,"");return this.attributes[e]=r,r}return n||D.empty(this.document)}getHrefAttribute(){for(var e in this.attributes)if("href"===e||e.endsWith(":href"))return this.attributes[e];return D.empty(this.document)}getStyle(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.styles[e];if(r)return r;var s=this.getAttribute(e);if(null!=s&&s.hasValue())return this.styles[e]=s,s;if(!n){var{parent:i}=this;if(i){var o=i.getStyle(e);if(null!=o&&o.hasValue())return o}}if(t){var a=new D(this.document,e,"");return this.styles[e]=a,a}return r||D.empty(this.document)}render(e){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(e.save(),this.getStyle("mask").hasValue()){var t=this.getStyle("mask").getDefinition();t&&(this.applyEffects(e),t.apply(e,this))}else if("none"!==this.getStyle("filter").getValue("none")){var n=this.getStyle("filter").getDefinition();n&&(this.applyEffects(e),n.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}setContext(e){}applyEffects(e){var t=te.fromElement(this.document,this);t&&t.apply(e);var n=this.getStyle("clip-path",!1,!0);if(n.hasValue()){var r=n.getDefinition();r&&r.apply(e)}}clearContext(e){}renderChildren(e){this.children.forEach(t=>{t.render(e)})}addChild(e){var t=e instanceof ne?e:this.document.createElement(e);t.parent=this,ne.ignoreChildTypes.includes(t.type)||this.children.push(t)}matchesSelector(e){var t,{node:n}=this;if("function"==typeof n.matches)return n.matches(e);var r=null===(t=n.getAttribute)||void 0===t?void 0:t.call(n,"class");return!(!r||""===r)&&r.split(" ").some(t=>".".concat(t)===e)}addStylesFromStyleDefinition(){var{styles:e,stylesSpecificity:t}=this.document;for(var n in e)if(!n.startsWith("@")&&this.matchesSelector(n)){var r=e[n],s=t[n];if(r)for(var i in r){var o=this.stylesSpecificity[i];void 0===o&&(o="000"),s>=o&&(this.styles[i]=r[i],this.stylesSpecificity[i]=s)}}}removeStyles(e,t){return t.reduce((t,n)=>{var r=e.getStyle(n);if(!r.hasValue())return t;var s=r.getString();return r.setValue(""),[...t,[n,s]]},[])}restoreStyles(e,t){t.forEach(t=>{var[n,r]=t;e.getStyle(n,!0).setValue(r)})}isFirstChild(){var e;return 0===(null===(e=this.parent)||void 0===e?void 0:e.children.indexOf(this))}}ne.ignoreChildTypes=["title"];class re extends ne{constructor(e,t,n){super(e,t,n)}}function se(e){var t=e.trim();return/^('|")/.test(t)?t:'"'.concat(t,'"')}function ie(e){if(!e)return"";var t=e.trim().toLowerCase();switch(t){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return t;default:return/^oblique\s+(-|)\d+deg$/.test(t)?t:""}}function oe(e){if(!e)return"";var t=e.trim().toLowerCase();switch(t){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return t;default:return/^[\d.]+$/.test(t)?t:""}}class ae{constructor(e,t,n,r,s,i){var o=i?"string"==typeof i?ae.parse(i):i:{};this.fontFamily=s||o.fontFamily,this.fontSize=r||o.fontSize,this.fontStyle=e||o.fontStyle,this.fontWeight=n||o.fontWeight,this.fontVariant=t||o.fontVariant}static parse(){var e=arguments.length>1?arguments[1]:void 0,t="",n="",r="",s="",i="",o=c(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().split(" "),a={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return o.forEach(e=>{switch(!0){case!a.fontStyle&&ae.styles.includes(e):"inherit"!==e&&(t=e),a.fontStyle=!0;break;case!a.fontVariant&&ae.variants.includes(e):"inherit"!==e&&(n=e),a.fontStyle=!0,a.fontVariant=!0;break;case!a.fontWeight&&ae.weights.includes(e):"inherit"!==e&&(r=e),a.fontStyle=!0,a.fontVariant=!0,a.fontWeight=!0;break;case!a.fontSize:"inherit"!==e&&([s]=e.split("/")),a.fontStyle=!0,a.fontVariant=!0,a.fontWeight=!0,a.fontSize=!0;break;default:"inherit"!==e&&(i+=e)}}),new ae(t,n,r,s,i,e)}toString(){return[ie(this.fontStyle),this.fontVariant,oe(this.fontWeight),this.fontSize,(e=this.fontFamily,"undefined"==typeof process?e:e.trim().split(",").map(se).join(","))].join(" ").trim();var e}}ae.styles="normal|italic|oblique|inherit",ae.variants="normal|small-caps|inherit",ae.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class le{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;this.x1=e,this.y1=t,this.x2=n,this.y2=r,this.addPoint(e,t),this.addPoint(n,r)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(e,t){void 0!==e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),void 0!==t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))}addX(e){this.addPoint(e,null)}addY(e){this.addPoint(null,e)}addBoundingBox(e){if(e){var{x1:t,y1:n,x2:r,y2:s}=e;this.addPoint(t,n),this.addPoint(r,s)}}sumCubic(e,t,n,r,s){return Math.pow(1-e,3)*t+3*Math.pow(1-e,2)*e*n+3*(1-e)*Math.pow(e,2)*r+Math.pow(e,3)*s}bezierCurveAdd(e,t,n,r,s){var i=6*t-12*n+6*r,o=-3*t+9*n-9*r+3*s,a=3*n-3*t;if(0!==o){var l=Math.pow(i,2)-4*a*o;if(!(l<0)){var u=(-i+Math.sqrt(l))/(2*o);0<u&&u<1&&(e?this.addX(this.sumCubic(u,t,n,r,s)):this.addY(this.sumCubic(u,t,n,r,s)));var c=(-i-Math.sqrt(l))/(2*o);0<c&&c<1&&(e?this.addX(this.sumCubic(c,t,n,r,s)):this.addY(this.sumCubic(c,t,n,r,s)))}}else{if(0===i)return;var h=-a/i;0<h&&h<1&&(e?this.addX(this.sumCubic(h,t,n,r,s)):this.addY(this.sumCubic(h,t,n,r,s)))}}addBezierCurve(e,t,n,r,s,i,o,a){this.addPoint(e,t),this.addPoint(o,a),this.bezierCurveAdd(!0,e,n,s,o),this.bezierCurveAdd(!1,t,r,i,a)}addQuadraticCurve(e,t,n,r,s,i){var o=e+2/3*(n-e),a=t+2/3*(r-t),l=o+1/3*(s-e),u=a+1/3*(i-t);this.addBezierCurve(e,t,o,l,a,u,s,i)}isPointInBox(e,t){var{x1:n,y1:r,x2:s,y2:i}=this;return n<=e&&e<=s&&r<=t&&t<=i}}class ue extends a.SVGPathData{constructor(e){super(e.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new z(0,0),this.control=new z(0,0),this.current=new z(0,0),this.points=[],this.angles=[]}isEnd(){var{i:e,commands:t}=this;return e>=t.length-1}next(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}getPoint(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",n=new z(this.command[e],this.command[t]);return this.makeAbsolute(n)}getAsControlPoint(e,t){var n=this.getPoint(e,t);return this.control=n,n}getAsCurrentPoint(e,t){var n=this.getPoint(e,t);return this.current=n,n}getReflectedControlPoint(){var e=this.previousCommand.type;if(e!==a.SVGPathData.CURVE_TO&&e!==a.SVGPathData.SMOOTH_CURVE_TO&&e!==a.SVGPathData.QUAD_TO&&e!==a.SVGPathData.SMOOTH_QUAD_TO)return this.current;var{current:{x:t,y:n},control:{x:r,y:s}}=this;return new z(2*t-r,2*n-s)}makeAbsolute(e){if(this.command.relative){var{x:t,y:n}=this.current;e.x+=t,e.y+=n}return e}addMarker(e,t,n){var{points:r,angles:s}=this;n&&s.length>0&&!s[s.length-1]&&(s[s.length-1]=r[r.length-1].angleTo(n)),this.addMarkerAngle(e,t?t.angleTo(e):null)}addMarkerAngle(e,t){this.points.push(e),this.angles.push(t)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:e}=this,t=e.length,n=0;n<t;n++)if(!e[n])for(var r=n+1;r<t;r++)if(e[r]){e[n]=e[r];break}return e}}class ce extends ne{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var e=1,t=this;t;){var n=t.getStyle("opacity",!1,!0);n.hasValue(!0)&&(e*=n.getNumber()),t=t.parent}return e}setContext(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t){var n=this.getStyle("fill"),r=this.getStyle("fill-opacity"),s=this.getStyle("stroke"),i=this.getStyle("stroke-opacity");if(n.isUrlDefinition()){var o=n.getFillStyleDefinition(this,r);o&&(e.fillStyle=o)}else if(n.hasValue()){"currentColor"===n.getString()&&n.setValue(this.getStyle("color").getColor());var a=n.getColor();"inherit"!==a&&(e.fillStyle="none"===a?"rgba(0,0,0,0)":a)}if(r.hasValue()){var l=new D(this.document,"fill",e.fillStyle).addOpacity(r).getColor();e.fillStyle=l}if(s.isUrlDefinition()){var u=s.getFillStyleDefinition(this,i);u&&(e.strokeStyle=u)}else if(s.hasValue()){"currentColor"===s.getString()&&s.setValue(this.getStyle("color").getColor());var c=s.getString();"inherit"!==c&&(e.strokeStyle="none"===c?"rgba(0,0,0,0)":c)}if(i.hasValue()){var h=new D(this.document,"stroke",e.strokeStyle).addOpacity(i).getString();e.strokeStyle=h}var d=this.getStyle("stroke-width");if(d.hasValue()){var p=d.getPixels();e.lineWidth=p||L}var m=this.getStyle("stroke-linecap"),g=this.getStyle("stroke-linejoin"),v=this.getStyle("stroke-miterlimit"),y=this.getStyle("stroke-dasharray"),b=this.getStyle("stroke-dashoffset");if(m.hasValue()&&(e.lineCap=m.getString()),g.hasValue()&&(e.lineJoin=g.getString()),v.hasValue()&&(e.miterLimit=v.getNumber()),y.hasValue()&&"none"!==y.getString()){var _=f(y.getString());void 0!==e.setLineDash?e.setLineDash(_):void 0!==e.webkitLineDash?e.webkitLineDash=_:void 0===e.mozDash||1===_.length&&0===_[0]||(e.mozDash=_);var j=b.getPixels();void 0!==e.lineDashOffset?e.lineDashOffset=j:void 0!==e.webkitLineDashOffset?e.webkitLineDashOffset=j:void 0!==e.mozDashOffset&&(e.mozDashOffset=j)}}if(this.modifiedEmSizeStack=!1,void 0!==e.font){var w=this.getStyle("font"),x=this.getStyle("font-style"),A=this.getStyle("font-variant"),S=this.getStyle("font-weight"),N=this.getStyle("font-size"),k=this.getStyle("font-family"),P=new ae(x.getString(),A.getString(),S.getString(),N.hasValue()?"".concat(N.getPixels(!0),"px"):"",k.getString(),ae.parse(w.getString(),e.font));x.setValue(P.fontStyle),A.setValue(P.fontVariant),S.setValue(P.fontWeight),N.setValue(P.fontSize),k.setValue(P.fontFamily),e.font=P.toString(),N.isPixels()&&(this.document.emSize=N.getPixels(),this.modifiedEmSizeStack=!0)}t||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}clearContext(e){super.clearContext(e),this.modifiedEmSizeStack&&this.document.popEmSize()}}class he extends ce{constructor(e,t,n){super(e,t,n),this.type="path",this.pathParser=null,this.pathParser=new ue(this.getAttribute("d").getString())}path(e){var{pathParser:t}=this,n=new le;for(t.reset(),e&&e.beginPath();!t.isEnd();)switch(t.next().type){case ue.MOVE_TO:this.pathM(e,n);break;case ue.LINE_TO:this.pathL(e,n);break;case ue.HORIZ_LINE_TO:this.pathH(e,n);break;case ue.VERT_LINE_TO:this.pathV(e,n);break;case ue.CURVE_TO:this.pathC(e,n);break;case ue.SMOOTH_CURVE_TO:this.pathS(e,n);break;case ue.QUAD_TO:this.pathQ(e,n);break;case ue.SMOOTH_QUAD_TO:this.pathT(e,n);break;case ue.ARC:this.pathA(e,n);break;case ue.CLOSE_PATH:this.pathZ(e,n)}return n}getBoundingBox(e){return this.path()}getMarkers(){var{pathParser:e}=this,t=e.getMarkerPoints(),n=e.getMarkerAngles();return t.map((e,t)=>[e,n[t]])}renderChildren(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var t=this.getStyle("fill-rule");""!==e.fillStyle&&("inherit"!==t.getString("inherit")?e.fill(t.getString()):e.fill()),""!==e.strokeStyle&&("non-scaling-stroke"===this.getAttribute("vector-effect").getString()?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var n=this.getMarkers();if(n){var r=n.length-1,s=this.getStyle("marker-start"),i=this.getStyle("marker-mid"),o=this.getStyle("marker-end");if(s.isUrlDefinition()){var a=s.getDefinition(),[l,u]=n[0];a.render(e,l,u)}if(i.isUrlDefinition())for(var c=i.getDefinition(),h=1;h<r;h++){var[d,f]=n[h];c.render(e,d,f)}if(o.isUrlDefinition()){var p=o.getDefinition(),[m,g]=n[r];p.render(e,m,g)}}}static pathM(e){var t=e.getAsCurrentPoint();return e.start=e.current,{point:t}}pathM(e,t){var{pathParser:n}=this,{point:r}=he.pathM(n),{x:s,y:i}=r;n.addMarker(r),t.addPoint(s,i),e&&e.moveTo(s,i)}static pathL(e){var{current:t}=e;return{current:t,point:e.getAsCurrentPoint()}}pathL(e,t){var{pathParser:n}=this,{current:r,point:s}=he.pathL(n),{x:i,y:o}=s;n.addMarker(s,r),t.addPoint(i,o),e&&e.lineTo(i,o)}static pathH(e){var{current:t,command:n}=e,r=new z((n.relative?t.x:0)+n.x,t.y);return e.current=r,{current:t,point:r}}pathH(e,t){var{pathParser:n}=this,{current:r,point:s}=he.pathH(n),{x:i,y:o}=s;n.addMarker(s,r),t.addPoint(i,o),e&&e.lineTo(i,o)}static pathV(e){var{current:t,command:n}=e,r=new z(t.x,(n.relative?t.y:0)+n.y);return e.current=r,{current:t,point:r}}pathV(e,t){var{pathParser:n}=this,{current:r,point:s}=he.pathV(n),{x:i,y:o}=s;n.addMarker(s,r),t.addPoint(i,o),e&&e.lineTo(i,o)}static pathC(e){var{current:t}=e;return{current:t,point:e.getPoint("x1","y1"),controlPoint:e.getAsControlPoint("x2","y2"),currentPoint:e.getAsCurrentPoint()}}pathC(e,t){var{pathParser:n}=this,{current:r,point:s,controlPoint:i,currentPoint:o}=he.pathC(n);n.addMarker(o,i,s),t.addBezierCurve(r.x,r.y,s.x,s.y,i.x,i.y,o.x,o.y),e&&e.bezierCurveTo(s.x,s.y,i.x,i.y,o.x,o.y)}static pathS(e){var{current:t}=e;return{current:t,point:e.getReflectedControlPoint(),controlPoint:e.getAsControlPoint("x2","y2"),currentPoint:e.getAsCurrentPoint()}}pathS(e,t){var{pathParser:n}=this,{current:r,point:s,controlPoint:i,currentPoint:o}=he.pathS(n);n.addMarker(o,i,s),t.addBezierCurve(r.x,r.y,s.x,s.y,i.x,i.y,o.x,o.y),e&&e.bezierCurveTo(s.x,s.y,i.x,i.y,o.x,o.y)}static pathQ(e){var{current:t}=e;return{current:t,controlPoint:e.getAsControlPoint("x1","y1"),currentPoint:e.getAsCurrentPoint()}}pathQ(e,t){var{pathParser:n}=this,{current:r,controlPoint:s,currentPoint:i}=he.pathQ(n);n.addMarker(i,s,s),t.addQuadraticCurve(r.x,r.y,s.x,s.y,i.x,i.y),e&&e.quadraticCurveTo(s.x,s.y,i.x,i.y)}static pathT(e){var{current:t}=e,n=e.getReflectedControlPoint();return e.control=n,{current:t,controlPoint:n,currentPoint:e.getAsCurrentPoint()}}pathT(e,t){var{pathParser:n}=this,{current:r,controlPoint:s,currentPoint:i}=he.pathT(n);n.addMarker(i,s,s),t.addQuadraticCurve(r.x,r.y,s.x,s.y,i.x,i.y),e&&e.quadraticCurveTo(s.x,s.y,i.x,i.y)}static pathA(e){var{current:t,command:n}=e,{rX:r,rY:s,xRot:i,lArcFlag:o,sweepFlag:a}=n,l=i*(Math.PI/180),u=e.getAsCurrentPoint(),c=new z(Math.cos(l)*(t.x-u.x)/2+Math.sin(l)*(t.y-u.y)/2,-Math.sin(l)*(t.x-u.x)/2+Math.cos(l)*(t.y-u.y)/2),h=Math.pow(c.x,2)/Math.pow(r,2)+Math.pow(c.y,2)/Math.pow(s,2);h>1&&(r*=Math.sqrt(h),s*=Math.sqrt(h));var d=(o===a?-1:1)*Math.sqrt((Math.pow(r,2)*Math.pow(s,2)-Math.pow(r,2)*Math.pow(c.y,2)-Math.pow(s,2)*Math.pow(c.x,2))/(Math.pow(r,2)*Math.pow(c.y,2)+Math.pow(s,2)*Math.pow(c.x,2)));isNaN(d)&&(d=0);var f=new z(d*r*c.y/s,d*-s*c.x/r),p=new z((t.x+u.x)/2+Math.cos(l)*f.x-Math.sin(l)*f.y,(t.y+u.y)/2+Math.sin(l)*f.x+Math.cos(l)*f.y),m=E([1,0],[(c.x-f.x)/r,(c.y-f.y)/s]),g=[(c.x-f.x)/r,(c.y-f.y)/s],v=[(-c.x-f.x)/r,(-c.y-f.y)/s],y=E(g,v);return P(g,v)<=-1&&(y=Math.PI),P(g,v)>=1&&(y=0),{currentPoint:u,rX:r,rY:s,sweepFlag:a,xAxisRotation:l,centp:p,a1:m,ad:y}}pathA(e,t){var{pathParser:n}=this,{currentPoint:r,rX:s,rY:i,sweepFlag:o,xAxisRotation:a,centp:l,a1:u,ad:c}=he.pathA(n),h=1-o?1:-1,d=u+h*(c/2),f=new z(l.x+s*Math.cos(d),l.y+i*Math.sin(d));if(n.addMarkerAngle(f,d-h*Math.PI/2),n.addMarkerAngle(r,d-h*Math.PI),t.addPoint(r.x,r.y),e&&!isNaN(u)&&!isNaN(c)){var p=s>i?s:i,m=s>i?1:s/i,g=s>i?i/s:1;e.translate(l.x,l.y),e.rotate(a),e.scale(m,g),e.arc(0,0,p,u,u+c,Boolean(1-o)),e.scale(1/m,1/g),e.rotate(-a),e.translate(-l.x,-l.y)}}static pathZ(e){e.current=e.start}pathZ(e,t){he.pathZ(this.pathParser),e&&t.x1!==t.x2&&t.y1!==t.y2&&e.closePath()}}class de extends he{constructor(e,t,n){super(e,t,n),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class fe extends ce{constructor(e,t,n){super(e,t,new.target===fe||n),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.setContext(e,t);var n=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();n&&(e.textBaseline=n)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(e){if("text"!==this.type)return this.getTElementBoundingBox(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e);var t=null;return this.children.forEach((n,r)=>{var s=this.getChildBoundingBox(e,this,this,r);t?t.addBoundingBox(s):t=s}),t}getFontSize(){var{document:e,parent:t}=this,n=ae.parse(e.ctx.font).fontSize;return t.getStyle("font-size").getNumber(n)}getTElementBoundingBox(e){var t=this.getFontSize();return new le(this.x,this.y-t,this.x+this.measureText(e),this.y)}getGlyph(e,t,n){var r=t[n],s=null;if(e.isArabic){var i=t.length,o=t[n-1],a=t[n+1],l="isolated";if((0===n||" "===o)&&n<i-1&&" "!==a&&(l="terminal"),n>0&&" "!==o&&n<i-1&&" "!==a&&(l="medial"),n>0&&" "!==o&&(n===i-1||" "===a)&&(l="initial"),void 0!==e.glyphs[r]){var u=e.glyphs[r];s=u instanceof de?u:u[l]}}else s=e.glyphs[r];return s||(s=e.missingGlyph),s}getText(){return""}getTextFromNode(e){var t=e||this.node,n=Array.from(t.parentNode.childNodes),r=n.indexOf(t),s=n.length-1,i=c(t.textContent||"");return 0===r&&(i=h(i)),r===s&&(i=d(i)),i}renderChildren(e){if("text"===this.type){this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach((t,n)=>{this.renderChild(e,this,this,n)});var{mouse:t}=this.document.screen;t.isWorking()&&t.checkBoundingBox(this,this.getBoundingBox(e))}else this.renderTElementChildren(e)}renderTElementChildren(e){var{document:t,parent:n}=this,r=this.getText(),s=n.getStyle("font-family").getDefinition();if(s)for(var{unitsPerEm:i}=s.fontFace,o=ae.parse(t.ctx.font),a=n.getStyle("font-size").getNumber(o.fontSize),l=n.getStyle("font-style").getString(o.fontStyle),u=a/i,c=s.isRTL?r.split("").reverse().join(""):r,h=f(n.getAttribute("dx").getString()),d=c.length,p=0;p<d;p++){var m=this.getGlyph(s,c,p);e.translate(this.x,this.y),e.scale(u,-u);var g=e.lineWidth;e.lineWidth=e.lineWidth*i/a,"italic"===l&&e.transform(1,0,.4,1,0,0),m.render(e),"italic"===l&&e.transform(1,0,-.4,1,0,0),e.lineWidth=g,e.scale(1/u,-1/u),e.translate(-this.x,-this.y),this.x+=a*(m.horizAdvX||s.horizAdvX)/i,void 0===h[p]||isNaN(h[p])||(this.x+=h[p])}else{var{x:v,y:y}=this;e.fillStyle&&e.fillText(r,v,y),e.strokeStyle&&e.strokeText(r,v,y)}}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var e,t=this.leafTexts[this.textChunkStart],n=t.getStyle("text-anchor").getString("start");e="start"===n?t.x-this.minX:"end"===n?t.x-this.maxX:t.x-(this.minX+this.maxX)/2;for(var r=this.textChunkStart;r<this.leafTexts.length;r++)this.leafTexts[r].x+=e;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(e){this.children.forEach((t,n)=>{this.adjustChildCoordinatesRecursiveCore(e,this,this,n)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(e,t,n,r){var s=n.children[r];s.children.length>0?s.children.forEach((n,r)=>{t.adjustChildCoordinatesRecursiveCore(e,t,s,r)}):this.adjustChildCoordinates(e,t,n,r)}adjustChildCoordinates(e,t,n,r){var s=n.children[r];if("function"!=typeof s.measureText)return s;e.save(),s.setContext(e,!0);var i=s.getAttribute("x"),o=s.getAttribute("y"),a=s.getAttribute("dx"),l=s.getAttribute("dy"),u=s.getStyle("font-family").getDefinition(),c=Boolean(u)&&u.isRTL;0===r&&(i.hasValue()||i.setValue(s.getInheritedAttribute("x")),o.hasValue()||o.setValue(s.getInheritedAttribute("y")),a.hasValue()||a.setValue(s.getInheritedAttribute("dx")),l.hasValue()||l.setValue(s.getInheritedAttribute("dy")));var h=s.measureText(e);return c&&(t.x-=h),i.hasValue()?(t.applyAnchoring(),s.x=i.getPixels("x"),a.hasValue()&&(s.x+=a.getPixels("x"))):(a.hasValue()&&(t.x+=a.getPixels("x")),s.x=t.x),t.x=s.x,c||(t.x+=h),o.hasValue()?(s.y=o.getPixels("y"),l.hasValue()&&(s.y+=l.getPixels("y"))):(l.hasValue()&&(t.y+=l.getPixels("y")),s.y=t.y),t.y=s.y,t.leafTexts.push(s),t.minX=Math.min(t.minX,s.x,s.x+h),t.maxX=Math.max(t.maxX,s.x,s.x+h),s.clearContext(e),e.restore(),s}getChildBoundingBox(e,t,n,r){var s=n.children[r];if("function"!=typeof s.getBoundingBox)return null;var i=s.getBoundingBox(e);return i?(s.children.forEach((n,r)=>{var o=t.getChildBoundingBox(e,t,s,r);i.addBoundingBox(o)}),i):null}renderChild(e,t,n,r){var s=n.children[r];s.render(e),s.children.forEach((n,r)=>{t.renderChild(e,t,s,r)})}measureText(e){var{measureCache:t}=this;if(~t)return t;var n=this.getText(),r=this.measureTargetText(e,n);return this.measureCache=r,r}measureTargetText(e,t){if(!t.length)return 0;var{parent:n}=this,r=n.getStyle("font-family").getDefinition();if(r){for(var s=this.getFontSize(),i=r.isRTL?t.split("").reverse().join(""):t,o=f(n.getAttribute("dx").getString()),a=i.length,l=0,u=0;u<a;u++)l+=(this.getGlyph(r,i,u).horizAdvX||r.horizAdvX)*s/r.fontFace.unitsPerEm,void 0===o[u]||isNaN(o[u])||(l+=o[u]);return l}if(!e.measureText)return 10*t.length;e.save(),this.setContext(e,!0);var{width:c}=e.measureText(t);return this.clearContext(e),e.restore(),c}getInheritedAttribute(e){for(var t=this;t instanceof fe&&t.isFirstChild();){var n=t.parent.getAttribute(e);if(n.hasValue(!0))return n.getValue("0");t=t.parent}return null}}class pe extends fe{constructor(e,t,n){super(e,t,new.target===pe||n),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class me extends pe{constructor(){super(...arguments),this.type="textNode"}}class ge extends ce{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(e){var t,{document:n}=this,{screen:r,window:s}=n,i=e.canvas;if(r.setDefaults(e),i.style&&void 0!==e.font&&s&&void 0!==s.getComputedStyle){e.font=s.getComputedStyle(i).getPropertyValue("font");var o=new D(n,"fontSize",ae.parse(e.font).fontSize);o.hasValue()&&(n.rootEmSize=o.getPixels("y"),n.emSize=n.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:a,height:l}=r.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var u=this.getAttribute("refX"),c=this.getAttribute("refY"),h=this.getAttribute("viewBox"),d=h.hasValue()?f(h.getString()):null,p=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),m=0,g=0,v=0,y=0;d&&(m=d[0],g=d[1]),this.root||(a=this.getStyle("width").getPixels("x"),l=this.getStyle("height").getPixels("y"),"marker"===this.type&&(v=m,y=g,m=0,g=0)),r.viewPort.setCurrent(a,l),!this.node||this.parent&&"foreignObject"!==(null===(t=this.node.parentNode)||void 0===t?void 0:t.nodeName)||!this.getStyle("transform",!1,!0).hasValue()||this.getStyle("transform-origin",!1,!0).hasValue()||this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(e),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),d&&(a=d[2],l=d[3]),n.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:r.viewPort.width,desiredWidth:a,height:r.viewPort.height,desiredHeight:l,minX:m,minY:g,refX:u.getValue(),refY:c.getValue(),clip:p,clipX:v,clipY:y}),d&&(r.viewPort.removeCurrent(),r.viewPort.setCurrent(a,l))}clearContext(e){super.clearContext(e),this.document.screen.viewPort.removeCurrent()}resize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.getAttribute("width",!0),s=this.getAttribute("height",!0),i=this.getAttribute("viewBox"),o=this.getAttribute("style"),a=r.getNumber(0),l=s.getNumber(0);if(n)if("string"==typeof n)this.getAttribute("preserveAspectRatio",!0).setValue(n);else{var u=this.getAttribute("preserveAspectRatio");u.hasValue()&&u.setValue(u.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(r.setValue(e),s.setValue(t),i.hasValue()||i.setValue("0 0 ".concat(a||e," ").concat(l||t)),o.hasValue()){var c=this.getStyle("width"),h=this.getStyle("height");c.hasValue()&&c.setValue("".concat(e,"px")),h.hasValue()&&h.setValue("".concat(t,"px"))}}}class ve extends he{constructor(){super(...arguments),this.type="rect"}path(e){var t=this.getAttribute("x").getPixels("x"),n=this.getAttribute("y").getPixels("y"),r=this.getStyle("width",!1,!0).getPixels("x"),s=this.getStyle("height",!1,!0).getPixels("y"),i=this.getAttribute("rx"),o=this.getAttribute("ry"),a=i.getPixels("x"),l=o.getPixels("y");if(i.hasValue()&&!o.hasValue()&&(l=a),o.hasValue()&&!i.hasValue()&&(a=l),a=Math.min(a,r/2),l=Math.min(l,s/2),e){var u=(Math.sqrt(2)-1)/3*4;e.beginPath(),s>0&&r>0&&(e.moveTo(t+a,n),e.lineTo(t+r-a,n),e.bezierCurveTo(t+r-a+u*a,n,t+r,n+l-u*l,t+r,n+l),e.lineTo(t+r,n+s-l),e.bezierCurveTo(t+r,n+s-l+u*l,t+r-a+u*a,n+s,t+r-a,n+s),e.lineTo(t+a,n+s),e.bezierCurveTo(t+a-u*a,n+s,t,n+s-l+u*l,t,n+s-l),e.lineTo(t,n+l),e.bezierCurveTo(t,n+l-u*l,t+a-u*a,n,t+a,n),e.closePath())}return new le(t,n,t+r,n+s)}getMarkers(){return null}}class ye extends he{constructor(){super(...arguments),this.type="circle"}path(e){var t=this.getAttribute("cx").getPixels("x"),n=this.getAttribute("cy").getPixels("y"),r=this.getAttribute("r").getPixels();return e&&r>0&&(e.beginPath(),e.arc(t,n,r,0,2*Math.PI,!1),e.closePath()),new le(t-r,n-r,t+r,n+r)}getMarkers(){return null}}class be extends he{constructor(){super(...arguments),this.type="ellipse"}path(e){var t=(Math.sqrt(2)-1)/3*4,n=this.getAttribute("rx").getPixels("x"),r=this.getAttribute("ry").getPixels("y"),s=this.getAttribute("cx").getPixels("x"),i=this.getAttribute("cy").getPixels("y");return e&&n>0&&r>0&&(e.beginPath(),e.moveTo(s+n,i),e.bezierCurveTo(s+n,i+t*r,s+t*n,i+r,s,i+r),e.bezierCurveTo(s-t*n,i+r,s-n,i+t*r,s-n,i),e.bezierCurveTo(s-n,i-t*r,s-t*n,i-r,s,i-r),e.bezierCurveTo(s+t*n,i-r,s+n,i-t*r,s+n,i),e.closePath()),new le(s-n,i-r,s+n,i+r)}getMarkers(){return null}}class _e extends he{constructor(){super(...arguments),this.type="line"}getPoints(){return[new z(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new z(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(e){var[{x:t,y:n},{x:r,y:s}]=this.getPoints();return e&&(e.beginPath(),e.moveTo(t,n),e.lineTo(r,s)),new le(t,n,r,s)}getMarkers(){var[e,t]=this.getPoints(),n=e.angleTo(t);return[[e,n],[t,n]]}}class je extends he{constructor(e,t,n){super(e,t,n),this.type="polyline",this.points=[],this.points=z.parsePath(this.getAttribute("points").getString())}path(e){var{points:t}=this,[{x:n,y:r}]=t,s=new le(n,r);return e&&(e.beginPath(),e.moveTo(n,r)),t.forEach(t=>{var{x:n,y:r}=t;s.addPoint(n,r),e&&e.lineTo(n,r)}),s}getMarkers(){var{points:e}=this,t=e.length-1,n=[];return e.forEach((r,s)=>{s!==t&&n.push([r,r.angleTo(e[s+1])])}),n.length>0&&n.push([e[e.length-1],n[n.length-1][1]]),n}}class we extends je{constructor(){super(...arguments),this.type="polygon"}path(e){var t=super.path(e),[{x:n,y:r}]=this.points;return e&&(e.lineTo(n,r),e.closePath()),t}}class xe extends ne{constructor(){super(...arguments),this.type="pattern"}createPattern(e,t,n){var r=this.getStyle("width").getPixels("x",!0),s=this.getStyle("height").getPixels("y",!0),i=new ge(this.document,null);i.attributes.viewBox=new D(this.document,"viewBox",this.getAttribute("viewBox").getValue()),i.attributes.width=new D(this.document,"width","".concat(r,"px")),i.attributes.height=new D(this.document,"height","".concat(s,"px")),i.attributes.transform=new D(this.document,"transform",this.getAttribute("patternTransform").getValue()),i.children=this.children;var o=this.document.createCanvas(r,s),a=o.getContext("2d"),l=this.getAttribute("x"),u=this.getAttribute("y");l.hasValue()&&u.hasValue()&&a.translate(l.getPixels("x",!0),u.getPixels("y",!0)),n.hasValue()?this.styles["fill-opacity"]=n:Reflect.deleteProperty(this.styles,"fill-opacity");for(var c=-1;c<=1;c++)for(var h=-1;h<=1;h++)a.save(),i.attributes.x=new D(this.document,"x",c*o.width),i.attributes.y=new D(this.document,"y",h*o.height),i.render(a),a.restore();return e.createPattern(o,"repeat")}}class Ae extends ne{constructor(){super(...arguments),this.type="marker"}render(e,t,n){if(t){var{x:r,y:s}=t,i=this.getAttribute("orient").getString("auto"),o=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(r,s),"auto"===i&&e.rotate(n),"strokeWidth"===o&&e.scale(e.lineWidth,e.lineWidth),e.save();var a=new ge(this.document,null);a.type=this.type,a.attributes.viewBox=new D(this.document,"viewBox",this.getAttribute("viewBox").getValue()),a.attributes.refX=new D(this.document,"refX",this.getAttribute("refX").getValue()),a.attributes.refY=new D(this.document,"refY",this.getAttribute("refY").getValue()),a.attributes.width=new D(this.document,"width",this.getAttribute("markerWidth").getValue()),a.attributes.height=new D(this.document,"height",this.getAttribute("markerHeight").getValue()),a.attributes.overflow=new D(this.document,"overflow",this.getAttribute("overflow").getValue()),a.attributes.fill=new D(this.document,"fill",this.getAttribute("fill").getColor("black")),a.attributes.stroke=new D(this.document,"stroke",this.getAttribute("stroke").getValue("none")),a.children=this.children,a.render(e),e.restore(),"strokeWidth"===o&&e.scale(1/e.lineWidth,1/e.lineWidth),"auto"===i&&e.rotate(-n),e.translate(-r,-s)}}}class Se extends ne{constructor(){super(...arguments),this.type="defs"}render(){}}class Ne extends ce{constructor(){super(...arguments),this.type="g"}getBoundingBox(e){var t=new le;return this.children.forEach(n=>{t.addBoundingBox(n.getBoundingBox(e))}),t}}class Le extends ne{constructor(e,t,n){super(e,t,n),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:r,children:s}=this;s.forEach(e=>{"stop"===e.type&&r.push(e)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(e,t,n){var r=this;this.getHrefAttribute().hasValue()&&(r=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(r));var{stops:s}=r,i=this.getGradient(e,t);if(!i)return this.addParentOpacity(n,s[s.length-1].color);if(s.forEach(e=>{i.addColorStop(e.offset,this.addParentOpacity(n,e.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:o}=this,{MAX_VIRTUAL_PIXELS:a,viewPort:l}=o.screen,[u]=l.viewPorts,c=new ve(o,null);c.attributes.x=new D(o,"x",-a/3),c.attributes.y=new D(o,"y",-a/3),c.attributes.width=new D(o,"width",a),c.attributes.height=new D(o,"height",a);var h=new Ne(o,null);h.attributes.transform=new D(o,"transform",this.getAttribute("gradientTransform").getValue()),h.children=[c];var d=new ge(o,null);d.attributes.x=new D(o,"x",0),d.attributes.y=new D(o,"y",0),d.attributes.width=new D(o,"width",u.width),d.attributes.height=new D(o,"height",u.height),d.children=[h];var f=o.createCanvas(u.width,u.height),p=f.getContext("2d");return p.fillStyle=i,d.render(p),p.createPattern(f,"no-repeat")}return i}inheritStopContainer(e){this.attributesToInherit.forEach(t=>{!this.getAttribute(t).hasValue()&&e.getAttribute(t).hasValue()&&this.getAttribute(t,!0).setValue(e.getAttribute(t).getValue())})}addParentOpacity(e,t){return e.hasValue()?new D(this.document,"color",t).addOpacity(e).getColor():t}}class ke extends Le{constructor(e,t,n){super(e,t,n),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(e,t){var n="objectBoundingBox"===this.getGradientUnits(),r=n?t.getBoundingBox(e):null;if(n&&!r)return null;this.getAttribute("x1").hasValue()||this.getAttribute("y1").hasValue()||this.getAttribute("x2").hasValue()||this.getAttribute("y2").hasValue()||(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var s=n?r.x+r.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),i=n?r.y+r.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),o=n?r.x+r.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),a=n?r.y+r.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return s===o&&i===a?null:e.createLinearGradient(s,i,o,a)}}class Pe extends Le{constructor(e,t,n){super(e,t,n),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(e,t){var n="objectBoundingBox"===this.getGradientUnits(),r=t.getBoundingBox(e);if(n&&!r)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var s=n?r.x+r.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),i=n?r.y+r.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),o=s,a=i;this.getAttribute("fx").hasValue()&&(o=n?r.x+r.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(a=n?r.y+r.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var l=n?(r.width+r.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),u=this.getAttribute("fr").getPixels();return e.createRadialGradient(o,a,u,s,i,l)}}class Ee extends ne{constructor(e,t,n){super(e,t,n),this.type="stop";var r=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),s=this.getStyle("stop-opacity"),i=this.getStyle("stop-color",!0);""===i.getString()&&i.setValue("#000"),s.hasValue()&&(i=i.addOpacity(s)),this.offset=r,this.color=i.getColor()}}class Ce extends ne{constructor(e,t,n){super(e,t,n),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,e.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new D(e,"values",null);var r=this.getAttribute("values");r.hasValue()&&this.values.setValue(r.getString().split(";"))}getProperty(){var e=this.getAttribute("attributeType").getString(),t=this.getAttribute("attributeName").getString();return"CSS"===e?this.parent.getStyle(t,!0):this.parent.getAttribute(t,!0)}calcValue(){var{initialUnits:e}=this,{progress:t,from:n,to:r}=this.getProgress(),s=n.getNumber()+(r.getNumber()-n.getNumber())*t;return"%"===e&&(s*=100),"".concat(s).concat(e)}update(e){var{parent:t}=this,n=this.getProperty();if(this.initialValue||(this.initialValue=n.getString(),this.initialUnits=n.getUnits()),this.duration>this.maxDuration){var r=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==r||this.frozen){if("remove"===r&&!this.removed)return this.removed=!0,n.setValue(t.animationFrozen?t.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,t.animationFrozen=!0,t.animationFrozenValue=n.getString();return!1}this.duration+=e;var s=!1;if(this.begin<this.duration){var i=this.calcValue(),o=this.getAttribute("type");if(o.hasValue()){var a=o.getString();i="".concat(a,"(").concat(i,")")}n.setValue(i),s=!0}return s}getProgress(){var{document:e,values:t}=this,n={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(t.hasValue()){var r=n.progress*(t.getValue().length-1),s=Math.floor(r),i=Math.ceil(r);n.from=new D(e,"from",parseFloat(t.getValue()[s])),n.to=new D(e,"to",parseFloat(t.getValue()[i])),n.progress=(r-s)/(i-s)}else n.from=this.from,n.to=this.to;return n}}class Oe extends Ce{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:e,from:t,to:n}=this.getProgress(),r=new o(t.getColor()),s=new o(n.getColor());if(r.ok&&s.ok){var i=r.r+(s.r-r.r)*e,a=r.g+(s.g-r.g)*e,l=r.b+(s.b-r.b)*e;return"rgb(".concat(Math.floor(i),", ").concat(Math.floor(a),", ").concat(Math.floor(l),")")}return this.getAttribute("from").getColor()}}class Te extends Ce{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:e,from:t,to:n}=this.getProgress(),r=f(t.getString()),s=f(n.getString()),i=r.map((t,n)=>t+(s[n]-t)*e).join(" ");return i}}class Ie extends ne{constructor(e,t,n){super(e,t,n),this.type="font",this.glyphs=Object.create(null),this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:r}=e,{children:s}=this;for(var i of s)switch(i.type){case"font-face":this.fontFace=i;var o=i.getStyle("font-family");o.hasValue()&&(r[o.getString()]=this);break;case"missing-glyph":this.missingGlyph=i;break;case"glyph":var a=i;a.arabicForm?(this.isRTL=!0,this.isArabic=!0,void 0===this.glyphs[a.unicode]&&(this.glyphs[a.unicode]=Object.create(null)),this.glyphs[a.unicode][a.arabicForm]=a):this.glyphs[a.unicode]=a}}render(){}}class Me extends ne{constructor(e,t,n){super(e,t,n),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class Re extends he{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class Fe extends fe{constructor(){super(...arguments),this.type="tref"}getText(){var e=this.getHrefAttribute().getDefinition();if(e){var t=e.children[0];if(t)return t.getText()}return""}}class De extends fe{constructor(e,t,n){super(e,t,n),this.type="a";var{childNodes:r}=t,s=r[0],i=r.length>0&&Array.from(r).every(e=>3===e.nodeType);this.hasText=i,this.text=i?this.getTextFromNode(s):""}getText(){return this.text}renderChildren(e){if(this.hasText){super.renderChildren(e);var{document:t,x:n,y:r}=this,{mouse:s}=t.screen,i=new D(t,"fontSize",ae.parse(t.ctx.font).fontSize);s.isWorking()&&s.checkBoundingBox(this,new le(n,r-i.getPixels("y"),n+this.measureText(e),r))}else if(this.children.length>0){var o=new Ne(this.document,null);o.children=this.children,o.parent=this,o.render(e)}}onClick(){var{window:e}=this.document;e&&e.open(this.getHrefAttribute().getString())}onMouseMove(){this.document.ctx.canvas.style.cursor="pointer"}}function Be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(n),!0).forEach(function(t){(0,s.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Be(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}class Ue extends fe{constructor(e,t,n){super(e,t,n),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var r=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(r)}getText(){return this.text}path(e){var{dataArray:t}=this;e&&e.beginPath(),t.forEach(t=>{var{type:n,points:r}=t;switch(n){case ue.LINE_TO:e&&e.lineTo(r[0],r[1]);break;case ue.MOVE_TO:e&&e.moveTo(r[0],r[1]);break;case ue.CURVE_TO:e&&e.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);break;case ue.QUAD_TO:e&&e.quadraticCurveTo(r[0],r[1],r[2],r[3]);break;case ue.ARC:var[s,i,o,a,l,u,c,h]=r,d=o>a?o:a,f=o>a?1:o/a,p=o>a?a/o:1;e&&(e.translate(s,i),e.rotate(c),e.scale(f,p),e.arc(0,0,d,l,l+u,Boolean(1-h)),e.scale(1/f,1/p),e.rotate(-c),e.translate(-s,-i));break;case ue.CLOSE_PATH:e&&e.closePath()}})}renderChildren(e){this.setTextData(e),e.save();var t=this.parent.getStyle("text-decoration").getString(),n=this.getFontSize(),{glyphInfo:r}=this,s=e.fillStyle;"underline"===t&&e.beginPath(),r.forEach((r,s)=>{var{p0:i,p1:o,rotation:a,text:l}=r;e.save(),e.translate(i.x,i.y),e.rotate(a),e.fillStyle&&e.fillText(l,0,0),e.strokeStyle&&e.strokeText(l,0,0),e.restore(),"underline"===t&&(0===s&&e.moveTo(i.x,i.y+n/8),e.lineTo(o.x,o.y+n/5))}),"underline"===t&&(e.lineWidth=n/20,e.strokeStyle=s,e.stroke(),e.closePath()),e.restore()}getLetterSpacingAt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[e]||0}findSegmentToFitChar(e,t,n,r,s,i,o,a,l){var u=i,c=this.measureText(e,a);" "===a&&"justify"===t&&n<r&&(c+=(r-n)/s),l>-1&&(u+=this.getLetterSpacingAt(l));var h=this.textHeight/20,d=this.getEquidistantPointOnPath(u,h,0),f=this.getEquidistantPointOnPath(u+c,h,0),p={p0:d,p1:f},m=d&&f?Math.atan2(f.y-d.y,f.x-d.x):0;if(o){var g=Math.cos(Math.PI/2+m)*o,v=Math.cos(-m)*o;p.p0=ze(ze({},d),{},{x:d.x+g,y:d.y+v}),p.p1=ze(ze({},f),{},{x:f.x+g,y:f.y+v})}return{offset:u+=c,segment:p,rotation:m}}measureText(e,t){var{measuresCache:n}=this,r=t||this.getText();if(n.has(r))return n.get(r);var s=this.measureTargetText(e,r);return n.set(r,s),s}setTextData(e){if(!this.glyphInfo){var t=this.getText(),n=t.split(""),r=t.split(" ").length-1,s=this.parent.getAttribute("dx").split().map(e=>e.getPixels("x")),i=this.parent.getAttribute("dy").getPixels("y"),o=this.parent.getStyle("text-anchor").getString("start"),a=this.getStyle("letter-spacing"),l=this.parent.getStyle("letter-spacing"),u=0;a.hasValue()&&"inherit"!==a.getValue()?a.hasValue()&&"initial"!==a.getValue()&&"unset"!==a.getValue()&&(u=a.getPixels()):u=l.getPixels();var c=[],h=t.length;this.letterSpacingCache=c;for(var d=0;d<h;d++)c.push(void 0!==s[d]?s[d]:u);var f=c.reduce((e,t,n)=>0===n?0:e+t||0,0),p=this.measureText(e),m=Math.max(p+f,0);this.textWidth=p,this.textHeight=this.getFontSize(),this.glyphInfo=[];var g=this.getPathLength(),v=this.getStyle("startOffset").getNumber(0)*g,y=0;"middle"!==o&&"center"!==o||(y=-m/2),"end"!==o&&"right"!==o||(y=-m),y+=v,n.forEach((t,s)=>{var{offset:a,segment:l,rotation:u}=this.findSegmentToFitChar(e,o,m,g,r,y,i,t,s);y=a,l.p0&&l.p1&&this.glyphInfo.push({text:n[s],p0:l.p0,p1:l.p1,rotation:u})})}}parsePathData(e){if(this.pathLength=-1,!e)return[];var t=[],{pathParser:n}=e;for(n.reset();!n.isEnd();){var{current:r}=n,s=r?r.x:0,i=r?r.y:0,o=n.next(),a=o.type,l=[];switch(o.type){case ue.MOVE_TO:this.pathM(n,l);break;case ue.LINE_TO:a=this.pathL(n,l);break;case ue.HORIZ_LINE_TO:a=this.pathH(n,l);break;case ue.VERT_LINE_TO:a=this.pathV(n,l);break;case ue.CURVE_TO:this.pathC(n,l);break;case ue.SMOOTH_CURVE_TO:a=this.pathS(n,l);break;case ue.QUAD_TO:this.pathQ(n,l);break;case ue.SMOOTH_QUAD_TO:a=this.pathT(n,l);break;case ue.ARC:l=this.pathA(n);break;case ue.CLOSE_PATH:he.pathZ(n)}o.type!==ue.CLOSE_PATH?t.push({type:a,points:l,start:{x:s,y:i},pathLength:this.calcLength(s,i,a,l)}):t.push({type:ue.CLOSE_PATH,points:[],pathLength:0})}return t}pathM(e,t){var{x:n,y:r}=he.pathM(e).point;t.push(n,r)}pathL(e,t){var{x:n,y:r}=he.pathL(e).point;return t.push(n,r),ue.LINE_TO}pathH(e,t){var{x:n,y:r}=he.pathH(e).point;return t.push(n,r),ue.LINE_TO}pathV(e,t){var{x:n,y:r}=he.pathV(e).point;return t.push(n,r),ue.LINE_TO}pathC(e,t){var{point:n,controlPoint:r,currentPoint:s}=he.pathC(e);t.push(n.x,n.y,r.x,r.y,s.x,s.y)}pathS(e,t){var{point:n,controlPoint:r,currentPoint:s}=he.pathS(e);return t.push(n.x,n.y,r.x,r.y,s.x,s.y),ue.CURVE_TO}pathQ(e,t){var{controlPoint:n,currentPoint:r}=he.pathQ(e);t.push(n.x,n.y,r.x,r.y)}pathT(e,t){var{controlPoint:n,currentPoint:r}=he.pathT(e);return t.push(n.x,n.y,r.x,r.y),ue.QUAD_TO}pathA(e){var{rX:t,rY:n,sweepFlag:r,xAxisRotation:s,centp:i,a1:o,ad:a}=he.pathA(e);return 0===r&&a>0&&(a-=2*Math.PI),1===r&&a<0&&(a+=2*Math.PI),[i.x,i.y,t,n,o,a,s,r]}calcLength(e,t,n,r){var s=0,i=null,o=null,a=0;switch(n){case ue.LINE_TO:return this.getLineLength(e,t,r[0],r[1]);case ue.CURVE_TO:for(s=0,i=this.getPointOnCubicBezier(0,e,t,r[0],r[1],r[2],r[3],r[4],r[5]),a=.01;a<=1;a+=.01)o=this.getPointOnCubicBezier(a,e,t,r[0],r[1],r[2],r[3],r[4],r[5]),s+=this.getLineLength(i.x,i.y,o.x,o.y),i=o;return s;case ue.QUAD_TO:for(s=0,i=this.getPointOnQuadraticBezier(0,e,t,r[0],r[1],r[2],r[3]),a=.01;a<=1;a+=.01)o=this.getPointOnQuadraticBezier(a,e,t,r[0],r[1],r[2],r[3]),s+=this.getLineLength(i.x,i.y,o.x,o.y),i=o;return s;case ue.ARC:s=0;var l=r[4],u=r[5],c=r[4]+u,h=Math.PI/180;if(Math.abs(l-c)<h&&(h=Math.abs(l-c)),i=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],l,0),u<0)for(a=l-h;a>c;a-=h)o=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],a,0),s+=this.getLineLength(i.x,i.y,o.x,o.y),i=o;else for(a=l+h;a<c;a+=h)o=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],a,0),s+=this.getLineLength(i.x,i.y,o.x,o.y),i=o;return o=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],c,0),s+this.getLineLength(i.x,i.y,o.x,o.y)}return 0}getPointOnLine(e,t,n,r,s){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:n,a=(s-n)/(r-t+L),l=Math.sqrt(e*e/(1+a*a));r<t&&(l*=-1);var u=a*l,c=null;if(r===t)c={x:i,y:o+u};else if((o-n)/(i-t+L)===a)c={x:i+l,y:o+u};else{var h,d,f=this.getLineLength(t,n,r,s);if(f<L)return null;var p=(i-t)*(r-t)+(o-n)*(s-n);h=t+(p/=f*f)*(r-t),d=n+p*(s-n);var m=this.getLineLength(i,o,h,d),g=Math.sqrt(e*e-m*m);l=Math.sqrt(g*g/(1+a*a)),r<t&&(l*=-1),c={x:h+l,y:d+(u=a*l)}}return c}getPointOnPath(e){var t=this.getPathLength(),n=0,r=null;if(e<-5e-5||e-5e-5>t)return null;var{dataArray:s}=this;for(var i of s){if(!i||!(i.pathLength<5e-5||n+i.pathLength+5e-5<e)){var o=e-n,a=0;switch(i.type){case ue.LINE_TO:r=this.getPointOnLine(o,i.start.x,i.start.y,i.points[0],i.points[1],i.start.x,i.start.y);break;case ue.ARC:var l=i.points[4],u=i.points[5],c=i.points[4]+u;if(a=l+o/i.pathLength*u,u<0&&a<c||u>=0&&a>c)break;r=this.getPointOnEllipticalArc(i.points[0],i.points[1],i.points[2],i.points[3],a,i.points[6]);break;case ue.CURVE_TO:(a=o/i.pathLength)>1&&(a=1),r=this.getPointOnCubicBezier(a,i.start.x,i.start.y,i.points[0],i.points[1],i.points[2],i.points[3],i.points[4],i.points[5]);break;case ue.QUAD_TO:(a=o/i.pathLength)>1&&(a=1),r=this.getPointOnQuadraticBezier(a,i.start.x,i.start.y,i.points[0],i.points[1],i.points[2],i.points[3])}if(r)return r;break}n+=i.pathLength}return null}getLineLength(e,t,n,r){return Math.sqrt((n-e)*(n-e)+(r-t)*(r-t))}getPathLength(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce((e,t)=>t.pathLength>0?e+t.pathLength:e,0)),this.pathLength}getPointOnCubicBezier(e,t,n,r,s,i,o,a,l){return{x:a*C(e)+i*O(e)+r*T(e)+t*I(e),y:l*C(e)+o*O(e)+s*T(e)+n*I(e)}}getPointOnQuadraticBezier(e,t,n,r,s,i,o){return{x:i*M(e)+r*R(e)+t*F(e),y:o*M(e)+s*R(e)+n*F(e)}}getPointOnEllipticalArc(e,t,n,r,s,i){var o=Math.cos(i),a=Math.sin(i),l=n*Math.cos(s),u=r*Math.sin(s);return{x:e+(l*o-u*a),y:t+(l*a+u*o)}}buildEquidistantCache(e,t){var n=this.getPathLength(),r=t||.25,s=e||n/100;if(!this.equidistantCache||this.equidistantCache.step!==s||this.equidistantCache.precision!==r){this.equidistantCache={step:s,precision:r,points:[]};for(var i=0,o=0;o<=n;o+=r){var a=this.getPointOnPath(o),l=this.getPointOnPath(o+r);a&&l&&(i+=this.getLineLength(a.x,a.y,l.x,l.y))>=s&&(this.equidistantCache.points.push({x:a.x,y:a.y,distance:o}),i-=s)}}}getEquidistantPointOnPath(e,t,n){if(this.buildEquidistantCache(t,n),e<0||e-this.getPathLength()>5e-5)return null;var r=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[r]||null}}var qe=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class Ve extends ce{constructor(e,t,n){super(e,t,n),this.type="image",this.loaded=!1;var r=this.getHrefAttribute().getString();if(r){var s=r.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(r);e.images.push(this),s?this.loadSvg(r):this.loadImage(r),this.isSvg=s}}loadImage(e){var t=this;return(0,r.default)(function*(){try{var n=yield t.document.createImage(e);t.image=n}catch(t){console.error('Error while loading image "'.concat(e,'":'),t)}t.loaded=!0})()}loadSvg(e){var t=this;return(0,r.default)(function*(){var n=qe.exec(e);if(n){var r=n[5];"base64"===n[4]?t.image=atob(r):t.image=decodeURIComponent(r)}else try{var s=yield t.document.fetch(e),i=yield s.text();t.image=i}catch(t){console.error('Error while loading image "'.concat(e,'":'),t)}t.loaded=!0})()}renderChildren(e){var{document:t,image:n,loaded:r}=this,s=this.getAttribute("x").getPixels("x"),i=this.getAttribute("y").getPixels("y"),o=this.getStyle("width").getPixels("x"),a=this.getStyle("height").getPixels("y");if(r&&n&&o&&a){if(e.save(),e.translate(s,i),this.isSvg){var l=t.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:o,scaleHeight:a});l.document.documentElement.parent=this,l.render()}else{var u=this.image;t.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:o,desiredWidth:u.width,height:a,desiredHeight:u.height}),this.loaded&&(void 0===u.complete||u.complete)&&e.drawImage(u,0,0)}e.restore()}}getBoundingBox(){var e=this.getAttribute("x").getPixels("x"),t=this.getAttribute("y").getPixels("y"),n=this.getStyle("width").getPixels("x"),r=this.getStyle("height").getPixels("y");return new le(e,t,e+n,t+r)}}class He extends ce{constructor(){super(...arguments),this.type="symbol"}render(e){}}class We{constructor(e){this.document=e,this.loaded=!1,e.fonts.push(this)}load(e,t){var n=this;return(0,r.default)(function*(){try{var{document:r}=n,s=(yield r.canvg.parser.load(t)).getElementsByTagName("font");Array.from(s).forEach(t=>{var n=r.createElement(t);r.definitions[e]=n})}catch(e){console.error('Error while loading font "'.concat(t,'":'),e)}n.loaded=!0})()}}class Ge extends ne{constructor(e,t,n){super(e,t,n),this.type="style",c(Array.from(t.childNodes).map(e=>e.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}").forEach(t=>{var n=t.trim();if(n){var r=n.split("{"),s=r[0].split(","),i=r[1].split(";");s.forEach(t=>{var n=t.trim();if(n){var r=e.styles[n]||{};if(i.forEach(t=>{var n=t.indexOf(":"),s=t.substr(0,n).trim(),i=t.substr(n+1,t.length-n).trim();s&&i&&(r[s]=new D(e,s,i))}),e.styles[n]=r,e.stylesSpecificity[n]=N(n),"@font-face"===n){var s=r["font-family"].getString().replace(/"|'/g,"");r.src.getString().split(",").forEach(t=>{if(t.indexOf('format("svg")')>0){var n=g(t);n&&new We(e).load(s,n)}})}}})}})}}Ge.parseExternalUrl=g;class Ye extends ce{constructor(){super(...arguments),this.type="use"}setContext(e){super.setContext(e);var t=this.getAttribute("x"),n=this.getAttribute("y");t.hasValue()&&e.translate(t.getPixels("x"),0),n.hasValue()&&e.translate(0,n.getPixels("y"))}path(e){var{element:t}=this;t&&t.path(e)}renderChildren(e){var{document:t,element:n}=this;if(n){var r=n;if("symbol"===n.type&&((r=new ge(t,null)).attributes.viewBox=new D(t,"viewBox",n.getAttribute("viewBox").getString()),r.attributes.preserveAspectRatio=new D(t,"preserveAspectRatio",n.getAttribute("preserveAspectRatio").getString()),r.attributes.overflow=new D(t,"overflow",n.getAttribute("overflow").getString()),r.children=n.children,n.styles.opacity=new D(t,"opacity",this.calculateOpacity())),"svg"===r.type){var s=this.getStyle("width",!1,!0),i=this.getStyle("height",!1,!0);s.hasValue()&&(r.attributes.width=new D(t,"width",s.getString())),i.hasValue()&&(r.attributes.height=new D(t,"height",i.getString()))}var o=r.parent;r.parent=this,r.render(e),r.parent=o}}getBoundingBox(e){var{element:t}=this;return t?t.getBoundingBox(e):null}elementTransform(){var{document:e,element:t}=this;return te.fromElement(e,t)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function Xe(e,t,n,r,s,i){return e[n*r*4+4*t+i]}function Ze(e,t,n,r,s,i,o){e[n*r*4+4*t+i]=o}function $e(e,t,n){return e[t]*n}function Ke(e,t,n,r){return t+Math.cos(e)*n+Math.sin(e)*r}class Je extends ne{constructor(e,t,n){super(e,t,n),this.type="feColorMatrix";var r=f(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":var s=r[0];r=[.213+.787*s,.715-.715*s,.072-.072*s,0,0,.213-.213*s,.715+.285*s,.072-.072*s,0,0,.213-.213*s,.715-.715*s,.072+.928*s,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var i=r[0]*Math.PI/180;r=[Ke(i,.213,.787,-.213),Ke(i,.715,-.715,-.715),Ke(i,.072,-.072,.928),0,0,Ke(i,.213,-.213,.143),Ke(i,.715,.285,.14),Ke(i,.072,-.072,-.283),0,0,Ke(i,.213,-.213,-.787),Ke(i,.715,-.715,.715),Ke(i,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}this.matrix=r,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(e,t,n,r,s){for(var{includeOpacity:i,matrix:o}=this,a=e.getImageData(0,0,r,s),l=0;l<s;l++)for(var u=0;u<r;u++){var c=Xe(a.data,u,l,r,0,0),h=Xe(a.data,u,l,r,0,1),d=Xe(a.data,u,l,r,0,2),f=Xe(a.data,u,l,r,0,3),p=$e(o,0,c)+$e(o,1,h)+$e(o,2,d)+$e(o,3,f)+$e(o,4,1),m=$e(o,5,c)+$e(o,6,h)+$e(o,7,d)+$e(o,8,f)+$e(o,9,1),g=$e(o,10,c)+$e(o,11,h)+$e(o,12,d)+$e(o,13,f)+$e(o,14,1),v=$e(o,15,c)+$e(o,16,h)+$e(o,17,d)+$e(o,18,f)+$e(o,19,1);i&&(p=0,m=0,g=0,v*=f/255),Ze(a.data,u,l,r,0,0,p),Ze(a.data,u,l,r,0,1,m),Ze(a.data,u,l,r,0,2,g),Ze(a.data,u,l,r,0,3,v)}e.clearRect(0,0,r,s),e.putImageData(a,0,0)}}class Qe extends ne{constructor(){super(...arguments),this.type="mask"}apply(e,t){var{document:n}=this,r=this.getAttribute("x").getPixels("x"),s=this.getAttribute("y").getPixels("y"),i=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");if(!i&&!o){var a=new le;this.children.forEach(t=>{a.addBoundingBox(t.getBoundingBox(e))}),r=Math.floor(a.x1),s=Math.floor(a.y1),i=Math.floor(a.width),o=Math.floor(a.height)}var l=this.removeStyles(t,Qe.ignoreStyles),u=n.createCanvas(r+i,s+o),c=u.getContext("2d");n.screen.setDefaults(c),this.renderChildren(c),new Je(n,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(c,0,0,r+i,s+o);var h=n.createCanvas(r+i,s+o),d=h.getContext("2d");n.screen.setDefaults(d),t.render(d),d.globalCompositeOperation="destination-in",d.fillStyle=c.createPattern(u,"no-repeat"),d.fillRect(0,0,r+i,s+o),e.fillStyle=d.createPattern(h,"no-repeat"),e.fillRect(0,0,r+i,s+o),this.restoreStyles(t,l)}render(e){}}Qe.ignoreStyles=["mask","transform","clip-path"];var et=()=>{};class tt extends ne{constructor(){super(...arguments),this.type="clipPath"}apply(e){var{document:t}=this,n=Reflect.getPrototypeOf(e),{beginPath:r,closePath:s}=e;n&&(n.beginPath=et,n.closePath=et),Reflect.apply(r,e,[]),this.children.forEach(r=>{if(void 0!==r.path){var i=void 0!==r.elementTransform?r.elementTransform():null;i||(i=te.fromElement(t,r)),i&&i.apply(e),r.path(e),n&&(n.closePath=s),i&&i.unapply(e)}}),Reflect.apply(s,e,[]),e.clip(),n&&(n.beginPath=r,n.closePath=s)}render(e){}}class nt extends ne{constructor(){super(...arguments),this.type="filter"}apply(e,t){var{document:n,children:r}=this,s=t.getBoundingBox(e);if(s){var i=0,o=0;r.forEach(e=>{var t=e.extraFilterDistance||0;i=Math.max(i,t),o=Math.max(o,t)});var a=Math.floor(s.width),l=Math.floor(s.height),u=a+2*i,c=l+2*o;if(!(u<1||c<1)){var h=Math.floor(s.x),d=Math.floor(s.y),f=this.removeStyles(t,nt.ignoreStyles),p=n.createCanvas(u,c),m=p.getContext("2d");n.screen.setDefaults(m),m.translate(-h+i,-d+o),t.render(m),r.forEach(e=>{"function"==typeof e.apply&&e.apply(m,0,0,u,c)}),e.drawImage(p,0,0,u,c,h-i,d-o,u,c),this.restoreStyles(t,f)}}}render(e){}}nt.ignoreStyles=["filter","transform","clip-path"];class rt extends ne{constructor(e,t,n){super(e,t,n),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(e,t,n,r,s){}}class st extends ne{constructor(){super(...arguments),this.type="feMorphology"}apply(e,t,n,r,s){}}class it extends ne{constructor(){super(...arguments),this.type="feComposite"}apply(e,t,n,r,s){}}class ot extends ne{constructor(e,t,n){super(e,t,n),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(e,t,n,r,s){var{document:i,blurRadius:o}=this,a=i.window?i.window.document.body:null,u=e.canvas;u.id=i.getUniqueId(),a&&(u.style.display="none",a.appendChild(u)),(0,l.canvasRGBA)(u,t,n,r,s,o),a&&a.removeChild(u)}}class at extends ne{constructor(){super(...arguments),this.type="title"}}class lt extends ne{constructor(){super(...arguments),this.type="desc"}}var ut={svg:ge,rect:ve,circle:ye,ellipse:be,line:_e,polyline:je,polygon:we,path:he,pattern:xe,marker:Ae,defs:Se,linearGradient:ke,radialGradient:Pe,stop:Ee,animate:Ce,animateColor:Oe,animateTransform:Te,font:Ie,"font-face":Me,"missing-glyph":Re,glyph:de,text:fe,tspan:pe,tref:Fe,a:De,textPath:Ue,image:Ve,g:Ne,symbol:He,style:Ge,use:Ye,mask:Qe,clipPath:tt,filter:nt,feDropShadow:rt,feMorphology:st,feComposite:it,feColorMatrix:Je,feGaussianBlur:ot,title:at,desc:lt};function ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ht(){return ht=(0,r.default)(function*(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.createElement("img");return t&&(n.crossOrigin="Anonymous"),new Promise((t,r)=>{n.onload=()=>{t(n)},n.onerror=(e,t,n,s,i)=>{r(i)},n.src=e})}),ht.apply(this,arguments)}class dt{constructor(e){var{rootEmSize:t=12,emSize:n=12,createCanvas:r=dt.createCanvas,createImage:s=dt.createImage,anonymousCrossOrigin:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.canvg=e,this.definitions=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=t,this.emSize=n,this.createCanvas=r,this.createImage=this.bindCreateImage(s,i),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(e,t){return"boolean"==typeof t?(n,r)=>e(n,"boolean"==typeof r?r:t):e}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:e}=this;return e[e.length-1]}set emSize(e){var{emSizeStack:t}=this;t.push(e)}popEmSize(){var{emSizeStack:e}=this;e.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(e=>e.loaded)}isFontsLoaded(){return this.fonts.every(e=>e.loaded)}createDocumentElement(e){var t=this.createElement(e.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t,t}createElement(e){var t=e.nodeName.replace(/^[^:]+:/,""),n=dt.elementTypes[t];return void 0!==n?new n(this,e):new re(this,e)}createTextNode(e){return new me(this,e)}setViewBox(e){this.screen.setViewBox(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ct(Object(n),!0).forEach(function(t){(0,s.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({document:this},e))}}function ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ft(Object(n),!0).forEach(function(t){(0,s.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ft(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}dt.createCanvas=function(e,t){var n=document.createElement("canvas");return n.width=e,n.height=t,n},dt.createImage=function(e){return ht.apply(this,arguments)},dt.elementTypes=ut;class mt{constructor(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.parser=new Y(n),this.screen=new H(e,n),this.options=n;var r=new dt(this,n),s=r.createDocumentElement(t);this.document=r,this.documentElement=s}static from(e,t){var n=arguments;return(0,r.default)(function*(){var r=n.length>2&&void 0!==n[2]?n[2]:{},s=new Y(r),i=yield s.parse(t);return new mt(e,i,r)})()}static fromString(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new Y(n).parseFromString(t);return new mt(e,r,n)}fork(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return mt.from(e,t,pt(pt({},this.options),n))}forkString(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return mt.fromString(e,t,pt(pt({},this.options),n))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var e=arguments,t=this;return(0,r.default)(function*(){var n=e.length>0&&void 0!==e[0]?e[0]:{};t.start(pt({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},n)),yield t.ready(),t.stop()})()}start(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{documentElement:t,screen:n,options:r}=this;n.start(t,pt(pt({enableRedraw:!0},r),e))}stop(){this.screen.stop()}resize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(e,t,n)}}},"./node_modules/core-js/internals/a-callable.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/is-callable.js"),s=n("./node_modules/core-js/internals/try-to-string.js"),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(s(e)+" is not a function")}},"./node_modules/core-js/internals/a-constructor.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/is-constructor.js"),s=n("./node_modules/core-js/internals/try-to-string.js"),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(s(e)+" is not a constructor")}},"./node_modules/core-js/internals/a-possible-prototype.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/is-possible-prototype.js"),s=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i("Can't set "+s(e)+" as a prototype")}},"./node_modules/core-js/internals/a-set.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/set-helpers.js").has;e.exports=function(e){return r(e),e}},"./node_modules/core-js/internals/add-to-unscopables.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/well-known-symbol.js"),s=n("./node_modules/core-js/internals/object-create.js"),i=n("./node_modules/core-js/internals/object-define-property.js").f,o=r("unscopables"),a=Array.prototype;void 0===a[o]&&i(a,o,{configurable:!0,value:s(null)}),e.exports=function(e){a[o][e]=!0}},"./node_modules/core-js/internals/advance-string-index.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/string-multibyte.js").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"./node_modules/core-js/internals/an-instance.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/object-is-prototype-of.js"),s=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new s("Incorrect invocation")}},"./node_modules/core-js/internals/an-object.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/is-object.js"),s=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(s(e)+" is not an object")}},"./node_modules/core-js/internals/array-buffer-non-extensible.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/fails.js");e.exports=r(function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})},"./node_modules/core-js/internals/array-for-each.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/array-iteration.js").forEach,s=n("./node_modules/core-js/internals/array-method-is-strict.js")("forEach");e.exports=s?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-from.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-bind-context.js"),s=n("./node_modules/core-js/internals/function-call.js"),i=n("./node_modules/core-js/internals/to-object.js"),o=n("./node_modules/core-js/internals/call-with-safe-iteration-closing.js"),a=n("./node_modules/core-js/internals/is-array-iterator-method.js"),l=n("./node_modules/core-js/internals/is-constructor.js"),u=n("./node_modules/core-js/internals/length-of-array-like.js"),c=n("./node_modules/core-js/internals/create-property.js"),h=n("./node_modules/core-js/internals/get-iterator.js"),d=n("./node_modules/core-js/internals/get-iterator-method.js"),f=Array;e.exports=function(e){var t=i(e),n=l(this),p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m;g&&(m=r(m,p>2?arguments[2]:void 0));var v,y,b,_,j,w,x=d(t),A=0;if(!x||this===f&&a(x))for(v=u(t),y=n?new this(v):f(v);v>A;A++)w=g?m(t[A],A):t[A],c(y,A,w);else for(y=n?new this:[],j=(_=h(t,x)).next;!(b=s(j,_)).done;A++)w=g?o(_,m,[b.value,A],!0):b.value,c(y,A,w);return y.length=A,y}},"./node_modules/core-js/internals/array-includes.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/to-indexed-object.js"),s=n("./node_modules/core-js/internals/to-absolute-index.js"),i=n("./node_modules/core-js/internals/length-of-array-like.js"),o=function(e){return function(t,n,o){var a=r(t),l=i(a);if(0===l)return!e&&-1;var u,c=s(o,l);if(e&&n!=n){for(;l>c;)if((u=a[c++])!=u)return!0}else for(;l>c;c++)if((e||c in a)&&a[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-bind-context.js"),s=n("./node_modules/core-js/internals/function-uncurry-this.js"),i=n("./node_modules/core-js/internals/indexed-object.js"),o=n("./node_modules/core-js/internals/to-object.js"),a=n("./node_modules/core-js/internals/length-of-array-like.js"),l=n("./node_modules/core-js/internals/array-species-create.js"),u=s([].push),c=function(e){var t=1===e,n=2===e,s=3===e,c=4===e,h=6===e,d=7===e,f=5===e||h;return function(p,m,g,v){for(var y,b,_=o(p),j=i(_),w=a(j),x=r(m,g),A=0,S=v||l,N=t?S(p,w):n||d?S(p,0):void 0;w>A;A++)if((f||A in j)&&(b=x(y=j[A],A,_),e))if(t)N[A]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return A;case 2:u(N,y)}else switch(e){case 4:return!1;case 7:u(N,y)}return h?-1:s||c?c:N}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/fails.js"),s=n("./node_modules/core-js/internals/well-known-symbol.js"),i=n("./node_modules/core-js/internals/environment-v8-version.js"),o=s("species");e.exports=function(e){return i>=51||!r(function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/fails.js");e.exports=function(e,t){var n=[][e];return!!n&&r(function(){n.call(null,t||function(){return 1},1)})}},"./node_modules/core-js/internals/array-reduce.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/a-callable.js"),s=n("./node_modules/core-js/internals/to-object.js"),i=n("./node_modules/core-js/internals/indexed-object.js"),o=n("./node_modules/core-js/internals/length-of-array-like.js"),a=TypeError,l="Reduce of empty array with no initial value",u=function(e){return function(t,n,u,c){var h=s(t),d=i(h),f=o(h);if(r(n),0===f&&u<2)throw new a(l);var p=e?f-1:0,m=e?-1:1;if(u<2)for(;;){if(p in d){c=d[p],p+=m;break}if(p+=m,e?p<0:f<=p)throw new a(l)}for(;e?p>=0:f>p;p+=m)p in d&&(c=n(c,d[p],p,h));return c}};e.exports={left:u(!1),right:u(!0)}},"./node_modules/core-js/internals/array-slice.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js");e.exports=r([].slice)},"./node_modules/core-js/internals/array-species-constructor.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/is-array.js"),s=n("./node_modules/core-js/internals/is-constructor.js"),i=n("./node_modules/core-js/internals/is-object.js"),o=n("./node_modules/core-js/internals/well-known-symbol.js")("species"),a=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(s(t)&&(t===a||r(t.prototype))||i(t)&&null===(t=t[o]))&&(t=void 0)),void 0===t?a:t}},"./node_modules/core-js/internals/array-species-create.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/array-species-constructor.js");e.exports=function(e,t){return new(r(e))(0===t?0:t)}},"./node_modules/core-js/internals/call-with-safe-iteration-closing.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/an-object.js"),s=n("./node_modules/core-js/internals/iterator-close.js");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){s(e,"throw",t)}}},"./node_modules/core-js/internals/check-correctness-of-iteration.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/well-known-symbol.js")("iterator"),s=!1;try{var i=0,o={next:function(){return{done:!!i++}},return:function(){s=!0}};o[r]=function(){return this},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){try{if(!t&&!s)return!1}catch(e){return!1}var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},"./node_modules/core-js/internals/classof-raw.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js"),s=r({}.toString),i=r("".slice);e.exports=function(e){return i(s(e),8,-1)}},"./node_modules/core-js/internals/classof.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/to-string-tag-support.js"),s=n("./node_modules/core-js/internals/is-callable.js"),i=n("./node_modules/core-js/internals/classof-raw.js"),o=n("./node_modules/core-js/internals/well-known-symbol.js")("toStringTag"),a=Object,l="Arguments"===i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?n:l?i(t):"Object"===(r=i(t))&&s(t.callee)?"Arguments":r}},"./node_modules/core-js/internals/collection-strong.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/object-create.js"),s=n("./node_modules/core-js/internals/define-built-in-accessor.js"),i=n("./node_modules/core-js/internals/define-built-ins.js"),o=n("./node_modules/core-js/internals/function-bind-context.js"),a=n("./node_modules/core-js/internals/an-instance.js"),l=n("./node_modules/core-js/internals/is-null-or-undefined.js"),u=n("./node_modules/core-js/internals/iterate.js"),c=n("./node_modules/core-js/internals/iterator-define.js"),h=n("./node_modules/core-js/internals/create-iter-result-object.js"),d=n("./node_modules/core-js/internals/set-species.js"),f=n("./node_modules/core-js/internals/descriptors.js"),p=n("./node_modules/core-js/internals/internal-metadata.js").fastKey,m=n("./node_modules/core-js/internals/internal-state.js"),g=m.set,v=m.getterFor;e.exports={getConstructor:function(e,t,n,c){var h=e(function(e,s){a(e,d),g(e,{type:t,index:r(null),first:null,last:null,size:0}),f||(e.size=0),l(s)||u(s,e[c],{that:e,AS_ENTRIES:n})}),d=h.prototype,m=v(t),y=function(e,t,n){var r,s,i=m(e),o=b(e,t);return o?o.value=n:(i.last=o={index:s=p(t,!0),key:t,value:n,previous:r=i.last,next:null,removed:!1},i.first||(i.first=o),r&&(r.next=o),f?i.size++:e.size++,"F"!==s&&(i.index[s]=o)),e},b=function(e,t){var n,r=m(e),s=p(t);if("F"!==s)return r.index[s];for(n=r.first;n;n=n.next)if(n.key===t)return n};return i(d,{clear:function(){for(var e=m(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=null),t=t.next;e.first=e.last=null,e.index=r(null),f?e.size=0:this.size=0},delete:function(e){var t=this,n=m(t),r=b(t,e);if(r){var s=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=s),s&&(s.previous=i),n.first===r&&(n.first=s),n.last===r&&(n.last=i),f?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=m(this),r=o(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!b(this,e)}}),i(d,n?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),f&&s(d,"size",{configurable:!0,get:function(){return m(this).size}}),h},setStrong:function(e,t,n){var r=t+" Iterator",s=v(t),i=v(r);c(e,t,function(e,t){g(this,{type:r,target:e,state:s(e),kind:t,last:null})},function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?h("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=null,h(void 0,!0))},n?"entries":"values",!n,!0),d(t)}}},"./node_modules/core-js/internals/collection.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/global-this.js"),i=n("./node_modules/core-js/internals/function-uncurry-this.js"),o=n("./node_modules/core-js/internals/is-forced.js"),a=n("./node_modules/core-js/internals/define-built-in.js"),l=n("./node_modules/core-js/internals/internal-metadata.js"),u=n("./node_modules/core-js/internals/iterate.js"),c=n("./node_modules/core-js/internals/an-instance.js"),h=n("./node_modules/core-js/internals/is-callable.js"),d=n("./node_modules/core-js/internals/is-null-or-undefined.js"),f=n("./node_modules/core-js/internals/is-object.js"),p=n("./node_modules/core-js/internals/fails.js"),m=n("./node_modules/core-js/internals/check-correctness-of-iteration.js"),g=n("./node_modules/core-js/internals/set-to-string-tag.js"),v=n("./node_modules/core-js/internals/inherit-if-required.js");e.exports=function(e,t,n){var y=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),_=y?"set":"add",j=s[e],w=j&&j.prototype,x=j,A={},S=function(e){var t=i(w[e]);a(w,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(b&&!f(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return b&&!f(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(b&&!f(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(o(e,!h(j)||!(b||w.forEach&&!p(function(){(new j).entries().next()}))))x=n.getConstructor(t,e,y,_),l.enable();else if(o(e,!0)){var N=new x,L=N[_](b?{}:-0,1)!==N,k=p(function(){N.has(1)}),P=m(function(e){new j(e)}),E=!b&&p(function(){for(var e=new j,t=5;t--;)e[_](t,t);return!e.has(-0)});P||((x=t(function(e,t){c(e,w);var n=v(new j,e,x);return d(t)||u(t,n[_],{that:n,AS_ENTRIES:y}),n})).prototype=w,w.constructor=x),(k||E)&&(S("delete"),S("has"),y&&S("get")),(E||L)&&S(_),b&&w.clear&&delete w.clear}return A[e]=x,r({global:!0,constructor:!0,forced:x!==j},A),g(x,e),b||n.setStrong(x,e,y),x}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/has-own-property.js"),s=n("./node_modules/core-js/internals/own-keys.js"),i=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),o=n("./node_modules/core-js/internals/object-define-property.js");e.exports=function(e,t,n){for(var a=s(t),l=o.f,u=i.f,c=0;c<a.length;c++){var h=a[c];r(e,h)||n&&r(n,h)||l(e,h,u(t,h))}}},"./node_modules/core-js/internals/correct-is-regexp-logic.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/well-known-symbol.js")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/fails.js");e.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},"./node_modules/core-js/internals/create-html.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js"),s=n("./node_modules/core-js/internals/require-object-coercible.js"),i=n("./node_modules/core-js/internals/to-string.js"),o=/"/g,a=r("".replace);e.exports=function(e,t,n,r){var l=i(s(e)),u="<"+t;return""!==n&&(u+=" "+n+'="'+a(i(r),o,""")+'"'),u+">"+l+"</"+t+">"}},"./node_modules/core-js/internals/create-iter-result-object.js":function(e){"use strict";e.exports=function(e,t){return{value:e,done:t}}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/object-define-property.js"),i=n("./node_modules/core-js/internals/create-property-descriptor.js");e.exports=r?function(e,t,n){return s.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"./node_modules/core-js/internals/create-property-descriptor.js":function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"./node_modules/core-js/internals/create-property.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/object-define-property.js"),i=n("./node_modules/core-js/internals/create-property-descriptor.js");e.exports=function(e,t,n){r?s.f(e,t,i(0,n)):e[t]=n}},"./node_modules/core-js/internals/define-built-in-accessor.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/make-built-in.js"),s=n("./node_modules/core-js/internals/object-define-property.js");e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),s.f(e,t,n)}},"./node_modules/core-js/internals/define-built-in.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/is-callable.js"),s=n("./node_modules/core-js/internals/object-define-property.js"),i=n("./node_modules/core-js/internals/make-built-in.js"),o=n("./node_modules/core-js/internals/define-global-property.js");e.exports=function(e,t,n,a){a||(a={});var l=a.enumerable,u=void 0!==a.name?a.name:t;if(r(n)&&i(n,u,a),a.global)l?e[t]=n:o(t,n);else{try{a.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:s.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},"./node_modules/core-js/internals/define-built-ins.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/define-built-in.js");e.exports=function(e,t,n){for(var s in t)r(e,s,t[s],n);return e}},"./node_modules/core-js/internals/define-global-property.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/global-this.js"),s=Object.defineProperty;e.exports=function(e,t){try{s(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},"./node_modules/core-js/internals/descriptors.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/fails.js");e.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},"./node_modules/core-js/internals/document-create-element.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/global-this.js"),s=n("./node_modules/core-js/internals/is-object.js"),i=r.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},"./node_modules/core-js/internals/does-not-exceed-safe-integer.js":function(e){"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},"./node_modules/core-js/internals/dom-iterables.js":function(e){"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/core-js/internals/dom-token-list-prototype.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/document-create-element.js")("span").classList,s=r&&r.constructor&&r.constructor.prototype;e.exports=s===Object.prototype?void 0:s},"./node_modules/core-js/internals/enum-bug-keys.js":function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/environment-is-ios-pebble.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/environment-user-agent.js");e.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},"./node_modules/core-js/internals/environment-is-ios.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/environment-user-agent.js");e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},"./node_modules/core-js/internals/environment-is-node.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/environment.js");e.exports="NODE"===r},"./node_modules/core-js/internals/environment-is-webos-webkit.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/environment-user-agent.js");e.exports=/web0s(?!.*chrome)/i.test(r)},"./node_modules/core-js/internals/environment-user-agent.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/global-this.js").navigator,s=r&&r.userAgent;e.exports=s?String(s):""},"./node_modules/core-js/internals/environment-v8-version.js":function(e,t,n){"use strict";var r,s,i=n("./node_modules/core-js/internals/global-this.js"),o=n("./node_modules/core-js/internals/environment-user-agent.js"),a=i.process,l=i.Deno,u=a&&a.versions||l&&l.version,c=u&&u.v8;c&&(s=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!s&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(s=+r[1]),e.exports=s},"./node_modules/core-js/internals/environment.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/global-this.js"),s=n("./node_modules/core-js/internals/environment-user-agent.js"),i=n("./node_modules/core-js/internals/classof-raw.js"),o=function(e){return s.slice(0,e.length)===e};e.exports=o("Bun/")?"BUN":o("Cloudflare-Workers")?"CLOUDFLARE":o("Deno/")?"DENO":o("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"},"./node_modules/core-js/internals/export.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/global-this.js"),s=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,i=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),o=n("./node_modules/core-js/internals/define-built-in.js"),a=n("./node_modules/core-js/internals/define-global-property.js"),l=n("./node_modules/core-js/internals/copy-constructor-properties.js"),u=n("./node_modules/core-js/internals/is-forced.js");e.exports=function(e,t){var n,c,h,d,f,p=e.target,m=e.global,g=e.stat;if(n=m?r:g?r[p]||a(p,{}):r[p]&&r[p].prototype)for(c in t){if(d=t[c],h=e.dontCallGetSet?(f=s(n,c))&&f.value:n[c],!u(m?c:p+(g?".":"#")+c,e.forced)&&void 0!==h){if(typeof d==typeof h)continue;l(d,h)}(e.sham||h&&h.sham)&&i(d,"sham",!0),o(n,c,d,e)}}},"./node_modules/core-js/internals/fails.js":function(e){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},"./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js":function(e,t,n){"use strict";n("./node_modules/core-js/modules/es.regexp.exec.js");var r=n("./node_modules/core-js/internals/function-call.js"),s=n("./node_modules/core-js/internals/define-built-in.js"),i=n("./node_modules/core-js/internals/regexp-exec.js"),o=n("./node_modules/core-js/internals/fails.js"),a=n("./node_modules/core-js/internals/well-known-symbol.js"),l=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),u=a("species"),c=RegExp.prototype;e.exports=function(e,t,n,h){var d=a(e),f=!o(function(){var t={};return t[d]=function(){return 7},7!==""[e](t)}),p=f&&!o(function(){var t=!1,n=/a/;if("split"===e){var r={};r[u]=function(){return n},(n={constructor:r,flags:""})[d]=/./[d]}return n.exec=function(){return t=!0,null},n[d](""),!t});if(!f||!p||n){var m=/./[d],g=t(d,""[e],function(e,t,n,s,o){var a=t.exec;return a===i||a===c.exec?f&&!o?{done:!0,value:r(m,t,n,s)}:{done:!0,value:r(e,n,t,s)}:{done:!1}});s(String.prototype,e,g[0]),s(c,d,g[1])}h&&l(c[d],"sham",!0)}},"./node_modules/core-js/internals/freezing.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/fails.js");e.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},"./node_modules/core-js/internals/function-apply.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-bind-native.js"),s=Function.prototype,i=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(i):function(){return o.apply(i,arguments)})},"./node_modules/core-js/internals/function-bind-context.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this-clause.js"),s=n("./node_modules/core-js/internals/a-callable.js"),i=n("./node_modules/core-js/internals/function-bind-native.js"),o=r(r.bind);e.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},"./node_modules/core-js/internals/function-bind-native.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/fails.js");e.exports=!r(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},"./node_modules/core-js/internals/function-call.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-bind-native.js"),s=Function.prototype.call;e.exports=r?s.bind(s):function(){return s.apply(s,arguments)}},"./node_modules/core-js/internals/function-name.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/has-own-property.js"),i=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,a=s(i,"name"),l=a&&"something"===function(){}.name,u=a&&(!r||r&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:l,CONFIGURABLE:u}},"./node_modules/core-js/internals/function-uncurry-this-accessor.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js"),s=n("./node_modules/core-js/internals/a-callable.js");e.exports=function(e,t,n){try{return r(s(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},"./node_modules/core-js/internals/function-uncurry-this-clause.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/classof-raw.js"),s=n("./node_modules/core-js/internals/function-uncurry-this.js");e.exports=function(e){if("Function"===r(e))return s(e)}},"./node_modules/core-js/internals/function-uncurry-this.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-bind-native.js"),s=Function.prototype,i=s.call,o=r&&s.bind.bind(i,i);e.exports=r?o:function(e){return function(){return i.apply(e,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/global-this.js"),s=n("./node_modules/core-js/internals/is-callable.js");e.exports=function(e,t){return arguments.length<2?(n=r[e],s(n)?n:void 0):r[e]&&r[e][t];var n}},"./node_modules/core-js/internals/get-iterator-direct.js":function(e){"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},"./node_modules/core-js/internals/get-iterator-method.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/classof.js"),s=n("./node_modules/core-js/internals/get-method.js"),i=n("./node_modules/core-js/internals/is-null-or-undefined.js"),o=n("./node_modules/core-js/internals/iterators.js"),a=n("./node_modules/core-js/internals/well-known-symbol.js")("iterator");e.exports=function(e){if(!i(e))return s(e,a)||s(e,"@@iterator")||o[r(e)]}},"./node_modules/core-js/internals/get-iterator.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-call.js"),s=n("./node_modules/core-js/internals/a-callable.js"),i=n("./node_modules/core-js/internals/an-object.js"),o=n("./node_modules/core-js/internals/try-to-string.js"),a=n("./node_modules/core-js/internals/get-iterator-method.js"),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?a(e):t;if(s(n))return i(r(n,e));throw new l(o(e)+" is not iterable")}},"./node_modules/core-js/internals/get-method.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/a-callable.js"),s=n("./node_modules/core-js/internals/is-null-or-undefined.js");e.exports=function(e,t){var n=e[t];return s(n)?void 0:r(n)}},"./node_modules/core-js/internals/get-set-record.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/a-callable.js"),s=n("./node_modules/core-js/internals/an-object.js"),i=n("./node_modules/core-js/internals/function-call.js"),o=n("./node_modules/core-js/internals/to-integer-or-infinity.js"),a=n("./node_modules/core-js/internals/get-iterator-direct.js"),l="Invalid size",u=RangeError,c=TypeError,h=Math.max,d=function(e,t){this.set=e,this.size=h(t,0),this.has=r(e.has),this.keys=r(e.keys)};d.prototype={getIterator:function(){return a(s(i(this.keys,this.set)))},includes:function(e){return i(this.has,this.set,e)}},e.exports=function(e){s(e);var t=+e.size;if(t!=t)throw new c(l);var n=o(t);if(n<0)throw new u(l);return new d(e,n)}},"./node_modules/core-js/internals/get-substitution.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js"),s=n("./node_modules/core-js/internals/to-object.js"),i=Math.floor,o=r("".charAt),a=r("".replace),l=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,h,d){var f=n+e.length,p=r.length,m=c;return void 0!==h&&(h=s(h),m=u),a(d,m,function(s,a){var u;switch(o(a,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,f);case"<":u=h[l(a,1,-1)];break;default:var c=+a;if(0===c)return s;if(c>p){var d=i(c/10);return 0===d?s:d<=p?void 0===r[d-1]?o(a,1):r[d-1]+o(a,1):s}u=r[c-1]}return void 0===u?"":u})}},"./node_modules/core-js/internals/global-this.js":function(e){"use strict";var t=function(e){return e&&e.Math===Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||t("object"==typeof this&&this)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has-own-property.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js"),s=n("./node_modules/core-js/internals/to-object.js"),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},"./node_modules/core-js/internals/hidden-keys.js":function(e){"use strict";e.exports={}},"./node_modules/core-js/internals/host-report-errors.js":function(e){"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},"./node_modules/core-js/internals/html.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/get-built-in.js");e.exports=r("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/fails.js"),i=n("./node_modules/core-js/internals/document-create-element.js");e.exports=!r&&!s(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},"./node_modules/core-js/internals/indexed-object.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js"),s=n("./node_modules/core-js/internals/fails.js"),i=n("./node_modules/core-js/internals/classof-raw.js"),o=Object,a=r("".split);e.exports=s(function(){return!o("z").propertyIsEnumerable(0)})?function(e){return"String"===i(e)?a(e,""):o(e)}:o},"./node_modules/core-js/internals/inherit-if-required.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/is-callable.js"),s=n("./node_modules/core-js/internals/is-object.js"),i=n("./node_modules/core-js/internals/object-set-prototype-of.js");e.exports=function(e,t,n){var o,a;return i&&r(o=t.constructor)&&o!==n&&s(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},"./node_modules/core-js/internals/inspect-source.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js"),s=n("./node_modules/core-js/internals/is-callable.js"),i=n("./node_modules/core-js/internals/shared-store.js"),o=r(Function.toString);s(i.inspectSource)||(i.inspectSource=function(e){return o(e)}),e.exports=i.inspectSource},"./node_modules/core-js/internals/internal-metadata.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/function-uncurry-this.js"),i=n("./node_modules/core-js/internals/hidden-keys.js"),o=n("./node_modules/core-js/internals/is-object.js"),a=n("./node_modules/core-js/internals/has-own-property.js"),l=n("./node_modules/core-js/internals/object-define-property.js").f,u=n("./node_modules/core-js/internals/object-get-own-property-names.js"),c=n("./node_modules/core-js/internals/object-get-own-property-names-external.js"),h=n("./node_modules/core-js/internals/object-is-extensible.js"),d=n("./node_modules/core-js/internals/uid.js"),f=n("./node_modules/core-js/internals/freezing.js"),p=!1,m=d("meta"),g=0,v=function(e){l(e,m,{value:{objectID:"O"+g++,weakData:{}}})},y=e.exports={enable:function(){y.enable=function(){},p=!0;var e=u.f,t=s([].splice),n={};n[m]=1,e(n).length&&(u.f=function(n){for(var r=e(n),s=0,i=r.length;s<i;s++)if(r[s]===m){t(r,s,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,m)){if(!h(e))return"F";if(!t)return"E";v(e)}return e[m].objectID},getWeakData:function(e,t){if(!a(e,m)){if(!h(e))return!0;if(!t)return!1;v(e)}return e[m].weakData},onFreeze:function(e){return f&&p&&h(e)&&!a(e,m)&&v(e),e}};i[m]=!0},"./node_modules/core-js/internals/internal-state.js":function(e,t,n){"use strict";var r,s,i,o=n("./node_modules/core-js/internals/weak-map-basic-detection.js"),a=n("./node_modules/core-js/internals/global-this.js"),l=n("./node_modules/core-js/internals/is-object.js"),u=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),c=n("./node_modules/core-js/internals/has-own-property.js"),h=n("./node_modules/core-js/internals/shared-store.js"),d=n("./node_modules/core-js/internals/shared-key.js"),f=n("./node_modules/core-js/internals/hidden-keys.js"),p="Object already initialized",m=a.TypeError,g=a.WeakMap;if(o||h.state){var v=h.state||(h.state=new g);v.get=v.get,v.has=v.has,v.set=v.set,r=function(e,t){if(v.has(e))throw new m(p);return t.facade=e,v.set(e,t),t},s=function(e){return v.get(e)||{}},i=function(e){return v.has(e)}}else{var y=d("state");f[y]=!0,r=function(e,t){if(c(e,y))throw new m(p);return t.facade=e,u(e,y,t),t},s=function(e){return c(e,y)?e[y]:{}},i=function(e){return c(e,y)}}e.exports={set:r,get:s,has:i,enforce:function(e){return i(e)?s(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=s(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return n}}}},"./node_modules/core-js/internals/is-array-iterator-method.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/well-known-symbol.js"),s=n("./node_modules/core-js/internals/iterators.js"),i=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||o[i]===e)}},"./node_modules/core-js/internals/is-array.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/classof-raw.js");e.exports=Array.isArray||function(e){return"Array"===r(e)}},"./node_modules/core-js/internals/is-callable.js":function(e){"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},"./node_modules/core-js/internals/is-constructor.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js"),s=n("./node_modules/core-js/internals/fails.js"),i=n("./node_modules/core-js/internals/is-callable.js"),o=n("./node_modules/core-js/internals/classof.js"),a=n("./node_modules/core-js/internals/get-built-in.js"),l=n("./node_modules/core-js/internals/inspect-source.js"),u=function(){},c=a("Reflect","construct"),h=/^\s*(?:class|function)\b/,d=r(h.exec),f=!h.test(u),p=function(e){if(!i(e))return!1;try{return c(u,[],e),!0}catch(e){return!1}},m=function(e){if(!i(e))return!1;switch(o(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!d(h,l(e))}catch(e){return!0}};m.sham=!0,e.exports=!c||s(function(){var e;return p(p.call)||!p(Object)||!p(function(){e=!0})||e})?m:p},"./node_modules/core-js/internals/is-forced.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/fails.js"),s=n("./node_modules/core-js/internals/is-callable.js"),i=/#|\.prototype\./,o=function(e,t){var n=l[a(e)];return n===c||n!==u&&(s(t)?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},"./node_modules/core-js/internals/is-iterable.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/classof.js"),s=n("./node_modules/core-js/internals/has-own-property.js"),i=n("./node_modules/core-js/internals/is-null-or-undefined.js"),o=n("./node_modules/core-js/internals/well-known-symbol.js"),a=n("./node_modules/core-js/internals/iterators.js"),l=o("iterator"),u=Object;e.exports=function(e){if(i(e))return!1;var t=u(e);return void 0!==t[l]||"@@iterator"in t||s(a,r(t))}},"./node_modules/core-js/internals/is-null-or-undefined.js":function(e){"use strict";e.exports=function(e){return null==e}},"./node_modules/core-js/internals/is-object.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/is-callable.js");e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},"./node_modules/core-js/internals/is-possible-prototype.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/is-object.js");e.exports=function(e){return r(e)||null===e}},"./node_modules/core-js/internals/is-pure.js":function(e){"use strict";e.exports=!1},"./node_modules/core-js/internals/is-raw-json.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/is-object.js"),s=n("./node_modules/core-js/internals/internal-state.js").get;e.exports=function(e){if(!r(e))return!1;var t=s(e);return!!t&&"RawJSON"===t.type}},"./node_modules/core-js/internals/is-regexp.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/is-object.js"),s=n("./node_modules/core-js/internals/classof-raw.js"),i=n("./node_modules/core-js/internals/well-known-symbol.js")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===s(e))}},"./node_modules/core-js/internals/is-symbol.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/get-built-in.js"),s=n("./node_modules/core-js/internals/is-callable.js"),i=n("./node_modules/core-js/internals/object-is-prototype-of.js"),o=n("./node_modules/core-js/internals/use-symbol-as-uid.js"),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return s(t)&&i(t.prototype,a(e))}},"./node_modules/core-js/internals/iterate-simple.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-call.js");e.exports=function(e,t,n){for(var s,i,o=n?e:e.iterator,a=e.next;!(s=r(a,o)).done;)if(void 0!==(i=t(s.value)))return i}},"./node_modules/core-js/internals/iterate.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-bind-context.js"),s=n("./node_modules/core-js/internals/function-call.js"),i=n("./node_modules/core-js/internals/an-object.js"),o=n("./node_modules/core-js/internals/try-to-string.js"),a=n("./node_modules/core-js/internals/is-array-iterator-method.js"),l=n("./node_modules/core-js/internals/length-of-array-like.js"),u=n("./node_modules/core-js/internals/object-is-prototype-of.js"),c=n("./node_modules/core-js/internals/get-iterator.js"),h=n("./node_modules/core-js/internals/get-iterator-method.js"),d=n("./node_modules/core-js/internals/iterator-close.js"),f=TypeError,p=function(e,t){this.stopped=e,this.result=t},m=p.prototype;e.exports=function(e,t,n){var g,v,y,b,_,j,w,x=n&&n.that,A=!(!n||!n.AS_ENTRIES),S=!(!n||!n.IS_RECORD),N=!(!n||!n.IS_ITERATOR),L=!(!n||!n.INTERRUPTED),k=r(t,x),P=function(e){return g&&d(g,"normal"),new p(!0,e)},E=function(e){return A?(i(e),L?k(e[0],e[1],P):k(e[0],e[1])):L?k(e,P):k(e)};if(S)g=e.iterator;else if(N)g=e;else{if(!(v=h(e)))throw new f(o(e)+" is not iterable");if(a(v)){for(y=0,b=l(e);b>y;y++)if((_=E(e[y]))&&u(m,_))return _;return new p(!1)}g=c(e,v)}for(j=S?e.next:g.next;!(w=s(j,g)).done;){try{_=E(w.value)}catch(e){d(g,"throw",e)}if("object"==typeof _&&_&&u(m,_))return _}return new p(!1)}},"./node_modules/core-js/internals/iterator-close-all.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/iterator-close.js");e.exports=function(e,t,n){for(var s=e.length-1;s>=0;s--)if(void 0!==e[s])try{n=r(e[s].iterator,t,n)}catch(e){t="throw",n=e}if("throw"===t)throw n;return n}},"./node_modules/core-js/internals/iterator-close.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-call.js"),s=n("./node_modules/core-js/internals/an-object.js"),i=n("./node_modules/core-js/internals/get-method.js");e.exports=function(e,t,n){var o,a;s(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw n;return n}o=r(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw n;if(a)throw o;return s(o),n}},"./node_modules/core-js/internals/iterator-create-constructor.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,s=n("./node_modules/core-js/internals/object-create.js"),i=n("./node_modules/core-js/internals/create-property-descriptor.js"),o=n("./node_modules/core-js/internals/set-to-string-tag.js"),a=n("./node_modules/core-js/internals/iterators.js"),l=function(){return this};e.exports=function(e,t,n,u){var c=t+" Iterator";return e.prototype=s(r,{next:i(+!u,n)}),o(e,c,!1,!0),a[c]=l,e}},"./node_modules/core-js/internals/iterator-create-proxy.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-call.js"),s=n("./node_modules/core-js/internals/object-create.js"),i=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),o=n("./node_modules/core-js/internals/define-built-ins.js"),a=n("./node_modules/core-js/internals/well-known-symbol.js"),l=n("./node_modules/core-js/internals/internal-state.js"),u=n("./node_modules/core-js/internals/get-method.js"),c=n("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,h=n("./node_modules/core-js/internals/create-iter-result-object.js"),d=n("./node_modules/core-js/internals/iterator-close.js"),f=n("./node_modules/core-js/internals/iterator-close-all.js"),p=a("toStringTag"),m="IteratorHelper",g="WrapForValidIterator",v="normal",y="throw",b=l.set,_=function(e){var t=l.getterFor(e?g:m);return o(s(c),{next:function(){var n=t(this);if(e)return n.nextHandler();if(n.done)return h(void 0,!0);try{var r=n.nextHandler();return n.returnHandlerResult?r:h(r,n.done)}catch(e){throw n.done=!0,e}},return:function(){var n=t(this),s=n.iterator;if(n.done=!0,e){var i=u(s,"return");return i?r(i,s):h(void 0,!0)}if(n.inner)try{d(n.inner.iterator,v)}catch(e){return d(s,y,e)}if(n.openIters)try{f(n.openIters,v)}catch(e){return d(s,y,e)}return s&&d(s,v),h(void 0,!0)}})},j=_(!0),w=_(!1);i(w,p,"Iterator Helper"),e.exports=function(e,t,n){var r=function(r,s){s?(s.iterator=r.iterator,s.next=r.next):s=r,s.type=t?g:m,s.returnHandlerResult=!!n,s.nextHandler=e,s.counter=0,s.done=!1,b(this,s)};return r.prototype=t?j:w,r}},"./node_modules/core-js/internals/iterator-define.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/function-call.js"),i=n("./node_modules/core-js/internals/is-pure.js"),o=n("./node_modules/core-js/internals/function-name.js"),a=n("./node_modules/core-js/internals/is-callable.js"),l=n("./node_modules/core-js/internals/iterator-create-constructor.js"),u=n("./node_modules/core-js/internals/object-get-prototype-of.js"),c=n("./node_modules/core-js/internals/object-set-prototype-of.js"),h=n("./node_modules/core-js/internals/set-to-string-tag.js"),d=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),f=n("./node_modules/core-js/internals/define-built-in.js"),p=n("./node_modules/core-js/internals/well-known-symbol.js"),m=n("./node_modules/core-js/internals/iterators.js"),g=n("./node_modules/core-js/internals/iterators-core.js"),v=o.PROPER,y=o.CONFIGURABLE,b=g.IteratorPrototype,_=g.BUGGY_SAFARI_ITERATORS,j=p("iterator"),w="keys",x="values",A="entries",S=function(){return this};e.exports=function(e,t,n,o,p,g,N){l(n,t,o);var L,k,P,E=function(e){if(e===p&&M)return M;if(!_&&e&&e in T)return T[e];switch(e){case w:case x:case A:return function(){return new n(this,e)}}return function(){return new n(this)}},C=t+" Iterator",O=!1,T=e.prototype,I=T[j]||T["@@iterator"]||p&&T[p],M=!_&&I||E(p),R="Array"===t&&T.entries||I;if(R&&(L=u(R.call(new e)))!==Object.prototype&&L.next&&(i||u(L)===b||(c?c(L,b):a(L[j])||f(L,j,S)),h(L,C,!0,!0),i&&(m[C]=S)),v&&p===x&&I&&I.name!==x&&(!i&&y?d(T,"name",x):(O=!0,M=function(){return s(I,this)})),p)if(k={values:E(x),keys:g?M:E(w),entries:E(A)},N)for(P in k)(_||O||!(P in T))&&f(T,P,k[P]);else r({target:t,proto:!0,forced:_||O},k);return i&&!N||T[j]===M||f(T,j,M,{name:p}),m[t]=M,k}},"./node_modules/core-js/internals/iterator-helper-throws-on-invalid-iterator.js":function(e){"use strict";e.exports=function(e,t){var n="function"==typeof Iterator&&Iterator.prototype[e];if(n)try{n.call({next:null},t).next()}catch(e){return!0}}},"./node_modules/core-js/internals/iterator-helper-without-closing-on-early-error.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/global-this.js");e.exports=function(e,t){var n=r.Iterator,s=n&&n.prototype,i=s&&s[e],o=!1;if(i)try{i.call({next:function(){return{done:!0}},return:function(){o=!0}},-1)}catch(e){e instanceof t||(o=!1)}if(!o)return i}},"./node_modules/core-js/internals/iterators-core.js":function(e,t,n){"use strict";var r,s,i,o=n("./node_modules/core-js/internals/fails.js"),a=n("./node_modules/core-js/internals/is-callable.js"),l=n("./node_modules/core-js/internals/is-object.js"),u=n("./node_modules/core-js/internals/object-create.js"),c=n("./node_modules/core-js/internals/object-get-prototype-of.js"),h=n("./node_modules/core-js/internals/define-built-in.js"),d=n("./node_modules/core-js/internals/well-known-symbol.js"),f=n("./node_modules/core-js/internals/is-pure.js"),p=d("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(s=c(c(i)))!==Object.prototype&&(r=s):m=!0),!l(r)||o(function(){var e={};return r[p].call(e)!==e})?r={}:f&&(r=u(r)),a(r[p])||h(r,p,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:m}},"./node_modules/core-js/internals/iterators.js":function(e){"use strict";e.exports={}},"./node_modules/core-js/internals/length-of-array-like.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/to-length.js");e.exports=function(e){return r(e.length)}},"./node_modules/core-js/internals/make-built-in.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js"),s=n("./node_modules/core-js/internals/fails.js"),i=n("./node_modules/core-js/internals/is-callable.js"),o=n("./node_modules/core-js/internals/has-own-property.js"),a=n("./node_modules/core-js/internals/descriptors.js"),l=n("./node_modules/core-js/internals/function-name.js").CONFIGURABLE,u=n("./node_modules/core-js/internals/inspect-source.js"),c=n("./node_modules/core-js/internals/internal-state.js"),h=c.enforce,d=c.get,f=String,p=Object.defineProperty,m=r("".slice),g=r("".replace),v=r([].join),y=a&&!s(function(){return 8!==p(function(){},"length",{value:8}).length}),b=String(String).split("String"),_=e.exports=function(e,t,n){"Symbol("===m(f(t),0,7)&&(t="["+g(f(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!o(e,"name")||l&&e.name!==t)&&(a?p(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&o(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?a&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=h(e);return o(r,"source")||(r.source=v(b,"string"==typeof t?t:"")),e};Function.prototype.toString=_(function(){return i(this)&&d(this).source||u(this)},"toString")},"./node_modules/core-js/internals/math-trunc.js":function(e){"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},"./node_modules/core-js/internals/microtask.js":function(e,t,n){"use strict";var r,s,i,o,a,l=n("./node_modules/core-js/internals/global-this.js"),u=n("./node_modules/core-js/internals/safe-get-built-in.js"),c=n("./node_modules/core-js/internals/function-bind-context.js"),h=n("./node_modules/core-js/internals/task.js").set,d=n("./node_modules/core-js/internals/queue.js"),f=n("./node_modules/core-js/internals/environment-is-ios.js"),p=n("./node_modules/core-js/internals/environment-is-ios-pebble.js"),m=n("./node_modules/core-js/internals/environment-is-webos-webkit.js"),g=n("./node_modules/core-js/internals/environment-is-node.js"),v=l.MutationObserver||l.WebKitMutationObserver,y=l.document,b=l.process,_=l.Promise,j=u("queueMicrotask");if(!j){var w=new d,x=function(){var e,t;for(g&&(e=b.domain)&&e.exit();t=w.get();)try{t()}catch(e){throw w.head&&r(),e}e&&e.enter()};f||g||m||!v||!y?!p&&_&&_.resolve?((o=_.resolve(void 0)).constructor=_,a=c(o.then,o),r=function(){a(x)}):g?r=function(){b.nextTick(x)}:(h=c(h,l),r=function(){h(x)}):(s=!0,i=y.createTextNode(""),new v(x).observe(i,{characterData:!0}),r=function(){i.data=s=!s}),j=function(e){w.head||r(),w.add(e)}}e.exports=j},"./node_modules/core-js/internals/native-raw-json.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/fails.js");e.exports=!r(function(){var e="9007199254740993",t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e})},"./node_modules/core-js/internals/new-promise-capability.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/a-callable.js"),s=TypeError,i=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw new s("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},"./node_modules/core-js/internals/not-a-regexp.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/is-regexp.js"),s=TypeError;e.exports=function(e){if(r(e))throw new s("The method doesn't accept regular expressions");return e}},"./node_modules/core-js/internals/object-assign.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/function-uncurry-this.js"),i=n("./node_modules/core-js/internals/function-call.js"),o=n("./node_modules/core-js/internals/fails.js"),a=n("./node_modules/core-js/internals/object-keys.js"),l=n("./node_modules/core-js/internals/object-get-own-property-symbols.js"),u=n("./node_modules/core-js/internals/object-property-is-enumerable.js"),c=n("./node_modules/core-js/internals/to-object.js"),h=n("./node_modules/core-js/internals/indexed-object.js"),d=Object.assign,f=Object.defineProperty,p=s([].concat);e.exports=!d||o(function(){if(r&&1!==d({b:1},d(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),s="abcdefghijklmnopqrst";return e[n]=7,s.split("").forEach(function(e){t[e]=e}),7!==d({},e)[n]||a(d({},t)).join("")!==s})?function(e,t){for(var n=c(e),s=arguments.length,o=1,d=l.f,f=u.f;s>o;)for(var m,g=h(arguments[o++]),v=d?p(a(g),d(g)):a(g),y=v.length,b=0;y>b;)m=v[b++],r&&!i(f,g,m)||(n[m]=g[m]);return n}:d},"./node_modules/core-js/internals/object-create.js":function(e,t,n){"use strict";var r,s=n("./node_modules/core-js/internals/an-object.js"),i=n("./node_modules/core-js/internals/object-define-properties.js"),o=n("./node_modules/core-js/internals/enum-bug-keys.js"),a=n("./node_modules/core-js/internals/hidden-keys.js"),l=n("./node_modules/core-js/internals/html.js"),u=n("./node_modules/core-js/internals/document-create-element.js"),c=n("./node_modules/core-js/internals/shared-key.js"),h="prototype",d="script",f=c("IE_PROTO"),p=function(){},m=function(e){return"<"+d+">"+e+"</"+d+">"},g=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;v="undefined"!=typeof document?document.domain&&r?g(r):(t=u("iframe"),n="java"+d+":",t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):g(r);for(var s=o.length;s--;)delete v[h][o[s]];return v()};a[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p[h]=s(e),n=new p,p[h]=null,n[f]=e):n=v(),void 0===t?n:i.f(n,t)}},"./node_modules/core-js/internals/object-define-properties.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/v8-prototype-define-bug.js"),i=n("./node_modules/core-js/internals/object-define-property.js"),o=n("./node_modules/core-js/internals/an-object.js"),a=n("./node_modules/core-js/internals/to-indexed-object.js"),l=n("./node_modules/core-js/internals/object-keys.js");t.f=r&&!s?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=l(t),u=s.length,c=0;u>c;)i.f(e,n=s[c++],r[n]);return e}},"./node_modules/core-js/internals/object-define-property.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/ie8-dom-define.js"),i=n("./node_modules/core-js/internals/v8-prototype-define-bug.js"),o=n("./node_modules/core-js/internals/an-object.js"),a=n("./node_modules/core-js/internals/to-property-key.js"),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",f="writable";t.f=r?i?function(e,t,n){if(o(e),t=a(t),o(n),"function"==typeof e&&"prototype"===t&&"value"in n&&f in n&&!n[f]){var r=c(e,t);r&&r[f]&&(e[t]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:h in n?n[h]:r[h],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(o(e),t=a(t),o(n),s)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/function-call.js"),i=n("./node_modules/core-js/internals/object-property-is-enumerable.js"),o=n("./node_modules/core-js/internals/create-property-descriptor.js"),a=n("./node_modules/core-js/internals/to-indexed-object.js"),l=n("./node_modules/core-js/internals/to-property-key.js"),u=n("./node_modules/core-js/internals/has-own-property.js"),c=n("./node_modules/core-js/internals/ie8-dom-define.js"),h=Object.getOwnPropertyDescriptor;t.f=r?h:function(e,t){if(e=a(e),t=l(t),c)try{return h(e,t)}catch(e){}if(u(e,t))return o(!s(i.f,e,t),e[t])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/classof-raw.js"),s=n("./node_modules/core-js/internals/to-indexed-object.js"),i=n("./node_modules/core-js/internals/object-get-own-property-names.js").f,o=n("./node_modules/core-js/internals/array-slice.js"),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"Window"===r(e)?function(e){try{return i(e)}catch(e){return o(a)}}(e):i(s(e))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/object-keys-internal.js"),s=n("./node_modules/core-js/internals/enum-bug-keys.js").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,s)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/has-own-property.js"),s=n("./node_modules/core-js/internals/is-callable.js"),i=n("./node_modules/core-js/internals/to-object.js"),o=n("./node_modules/core-js/internals/shared-key.js"),a=n("./node_modules/core-js/internals/correct-prototype-getter.js"),l=o("IE_PROTO"),u=Object,c=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var t=i(e);if(r(t,l))return t[l];var n=t.constructor;return s(n)&&t instanceof n?n.prototype:t instanceof u?c:null}},"./node_modules/core-js/internals/object-is-extensible.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/fails.js"),s=n("./node_modules/core-js/internals/is-object.js"),i=n("./node_modules/core-js/internals/classof-raw.js"),o=n("./node_modules/core-js/internals/array-buffer-non-extensible.js"),a=Object.isExtensible,l=r(function(){a(1)});e.exports=l||o?function(e){return!!s(e)&&(!o||"ArrayBuffer"!==i(e))&&(!a||a(e))}:a},"./node_modules/core-js/internals/object-is-prototype-of.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js");e.exports=r({}.isPrototypeOf)},"./node_modules/core-js/internals/object-keys-internal.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js"),s=n("./node_modules/core-js/internals/has-own-property.js"),i=n("./node_modules/core-js/internals/to-indexed-object.js"),o=n("./node_modules/core-js/internals/array-includes.js").indexOf,a=n("./node_modules/core-js/internals/hidden-keys.js"),l=r([].push);e.exports=function(e,t){var n,r=i(e),u=0,c=[];for(n in r)!s(a,n)&&s(r,n)&&l(c,n);for(;t.length>u;)s(r,n=t[u++])&&(~o(c,n)||l(c,n));return c}},"./node_modules/core-js/internals/object-keys.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/object-keys-internal.js"),s=n("./node_modules/core-js/internals/enum-bug-keys.js");e.exports=Object.keys||function(e){return r(e,s)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,s=r&&!n.call({1:2},1);t.f=s?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},"./node_modules/core-js/internals/object-set-prototype-of.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this-accessor.js"),s=n("./node_modules/core-js/internals/is-object.js"),i=n("./node_modules/core-js/internals/require-object-coercible.js"),o=n("./node_modules/core-js/internals/a-possible-prototype.js");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return i(n),o(r),s(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/to-string-tag-support.js"),s=n("./node_modules/core-js/internals/classof.js");e.exports=r?{}.toString:function(){return"[object "+s(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-call.js"),s=n("./node_modules/core-js/internals/is-callable.js"),i=n("./node_modules/core-js/internals/is-object.js"),o=TypeError;e.exports=function(e,t){var n,a;if("string"===t&&s(n=e.toString)&&!i(a=r(n,e)))return a;if(s(n=e.valueOf)&&!i(a=r(n,e)))return a;if("string"!==t&&s(n=e.toString)&&!i(a=r(n,e)))return a;throw new o("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/get-built-in.js"),s=n("./node_modules/core-js/internals/function-uncurry-this.js"),i=n("./node_modules/core-js/internals/object-get-own-property-names.js"),o=n("./node_modules/core-js/internals/object-get-own-property-symbols.js"),a=n("./node_modules/core-js/internals/an-object.js"),l=s([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?l(t,n(e)):t}},"./node_modules/core-js/internals/parse-json-string.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js"),s=n("./node_modules/core-js/internals/has-own-property.js"),i=SyntaxError,o=parseInt,a=String.fromCharCode,l=r("".charAt),u=r("".slice),c=r(/./.exec),h={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},d=/^[\da-f]{4}$/i,f=/^[\u0000-\u001F]$/;e.exports=function(e,t){for(var n=!0,r="";t<e.length;){var p=l(e,t);if("\\"===p){var m=u(e,t,t+2);if(s(h,m))r+=h[m],t+=2;else{if("\\u"!==m)throw new i('Unknown escape sequence: "'+m+'"');var g=u(e,t+=2,t+4);if(!c(d,g))throw new i("Bad Unicode escape at: "+t);r+=a(o(g,16)),t+=4}}else{if('"'===p){n=!1,t++;break}if(c(f,p))throw new i("Bad control character in string literal at: "+t);r+=p,t++}}if(n)throw new i("Unterminated string at: "+t);return{value:r,end:t}}},"./node_modules/core-js/internals/path.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/global-this.js");e.exports=r},"./node_modules/core-js/internals/perform.js":function(e){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},"./node_modules/core-js/internals/promise-constructor-detection.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/global-this.js"),s=n("./node_modules/core-js/internals/promise-native-constructor.js"),i=n("./node_modules/core-js/internals/is-callable.js"),o=n("./node_modules/core-js/internals/is-forced.js"),a=n("./node_modules/core-js/internals/inspect-source.js"),l=n("./node_modules/core-js/internals/well-known-symbol.js"),u=n("./node_modules/core-js/internals/environment.js"),c=n("./node_modules/core-js/internals/is-pure.js"),h=n("./node_modules/core-js/internals/environment-v8-version.js"),d=s&&s.prototype,f=l("species"),p=!1,m=i(r.PromiseRejectionEvent),g=o("Promise",function(){var e=a(s),t=e!==String(s);if(!t&&66===h)return!0;if(c&&(!d.catch||!d.finally))return!0;if(!h||h<51||!/native code/.test(e)){var n=new s(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((n.constructor={})[f]=r,!(p=n.then(function(){})instanceof r))return!0}return!(t||"BROWSER"!==u&&"DENO"!==u||m)});e.exports={CONSTRUCTOR:g,REJECTION_EVENT:m,SUBCLASSING:p}},"./node_modules/core-js/internals/promise-native-constructor.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/global-this.js");e.exports=r.Promise},"./node_modules/core-js/internals/promise-resolve.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/an-object.js"),s=n("./node_modules/core-js/internals/is-object.js"),i=n("./node_modules/core-js/internals/new-promise-capability.js");e.exports=function(e,t){if(r(e),s(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},"./node_modules/core-js/internals/promise-statics-incorrect-iteration.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/promise-native-constructor.js"),s=n("./node_modules/core-js/internals/check-correctness-of-iteration.js"),i=n("./node_modules/core-js/internals/promise-constructor-detection.js").CONSTRUCTOR;e.exports=i||!s(function(e){r.all(e).then(void 0,function(){})})},"./node_modules/core-js/internals/queue.js":function(e){"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},"./node_modules/core-js/internals/regexp-exec-abstract.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-call.js"),s=n("./node_modules/core-js/internals/an-object.js"),i=n("./node_modules/core-js/internals/is-callable.js"),o=n("./node_modules/core-js/internals/classof-raw.js"),a=n("./node_modules/core-js/internals/regexp-exec.js"),l=TypeError;e.exports=function(e,t){var n=e.exec;if(i(n)){var u=r(n,e,t);return null!==u&&s(u),u}if("RegExp"===o(e))return r(a,e,t);throw new l("RegExp#exec called on incompatible receiver")}},"./node_modules/core-js/internals/regexp-exec.js":function(e,t,n){"use strict";var r,s,i=n("./node_modules/core-js/internals/function-call.js"),o=n("./node_modules/core-js/internals/function-uncurry-this.js"),a=n("./node_modules/core-js/internals/to-string.js"),l=n("./node_modules/core-js/internals/regexp-flags.js"),u=n("./node_modules/core-js/internals/regexp-sticky-helpers.js"),c=n("./node_modules/core-js/internals/shared.js"),h=n("./node_modules/core-js/internals/object-create.js"),d=n("./node_modules/core-js/internals/internal-state.js").get,f=n("./node_modules/core-js/internals/regexp-unsupported-dot-all.js"),p=n("./node_modules/core-js/internals/regexp-unsupported-ncg.js"),m=c("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,v=g,y=o("".charAt),b=o("".indexOf),_=o("".replace),j=o("".slice),w=(s=/b*/g,i(g,r=/a/,"a"),i(g,s,"a"),0!==r.lastIndex||0!==s.lastIndex),x=u.BROKEN_CARET,A=void 0!==/()??/.exec("")[1];(w||A||x||f||p)&&(v=function(e){var t,n,r,s,o,u,c,f=this,p=d(f),S=a(e),N=p.raw;if(N)return N.lastIndex=f.lastIndex,t=i(v,N,S),f.lastIndex=N.lastIndex,t;var L=p.groups,k=x&&f.sticky,P=i(l,f),E=f.source,C=0,O=S;if(k&&(P=_(P,"y",""),-1===b(P,"g")&&(P+="g"),O=j(S,f.lastIndex),f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==y(S,f.lastIndex-1))&&(E="(?: "+E+")",O=" "+O,C++),n=new RegExp("^(?:"+E+")",P)),A&&(n=new RegExp("^"+E+"$(?!\\s)",P)),w&&(r=f.lastIndex),s=i(g,k?n:f,O),k?s?(s.input=j(s.input,C),s[0]=j(s[0],C),s.index=f.lastIndex,f.lastIndex+=s[0].length):f.lastIndex=0:w&&s&&(f.lastIndex=f.global?s.index+s[0].length:r),A&&s&&s.length>1&&i(m,s[0],n,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(s[o]=void 0)}),s&&L)for(s.groups=u=h(null),o=0;o<L.length;o++)u[(c=L[o])[0]]=s[c[1]];return s}),e.exports=v},"./node_modules/core-js/internals/regexp-flags-detection.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/global-this.js"),s=n("./node_modules/core-js/internals/fails.js"),i=r.RegExp,o=!s(function(){var e=!0;try{i(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",s=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(o.hasIndices="d"),o)s(a,o[a]);return Object.getOwnPropertyDescriptor(i.prototype,"flags").get.call(t)!==r||n!==r});e.exports={correct:o}},"./node_modules/core-js/internals/regexp-flags.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/an-object.js");e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},"./node_modules/core-js/internals/regexp-get-flags.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-call.js"),s=n("./node_modules/core-js/internals/has-own-property.js"),i=n("./node_modules/core-js/internals/object-is-prototype-of.js"),o=n("./node_modules/core-js/internals/regexp-flags-detection.js"),a=n("./node_modules/core-js/internals/regexp-flags.js"),l=RegExp.prototype;e.exports=o.correct?function(e){return e.flags}:function(e){return o.correct||!i(l,e)||s(e,"flags")?e.flags:r(a,e)}},"./node_modules/core-js/internals/regexp-sticky-helpers.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/fails.js"),s=n("./node_modules/core-js/internals/global-this.js").RegExp,i=r(function(){var e=s("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),o=i||r(function(){return!s("a","y").sticky}),a=i||r(function(){var e=s("^r","gy");return e.lastIndex=2,null!==e.exec("str")});e.exports={BROKEN_CARET:a,MISSED_STICKY:o,UNSUPPORTED_Y:i}},"./node_modules/core-js/internals/regexp-unsupported-dot-all.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/fails.js"),s=n("./node_modules/core-js/internals/global-this.js").RegExp;e.exports=r(function(){var e=s(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})},"./node_modules/core-js/internals/regexp-unsupported-ncg.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/fails.js"),s=n("./node_modules/core-js/internals/global-this.js").RegExp;e.exports=r(function(){var e=s("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})},"./node_modules/core-js/internals/require-object-coercible.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/is-null-or-undefined.js"),s=TypeError;e.exports=function(e){if(r(e))throw new s("Can't call method on "+e);return e}},"./node_modules/core-js/internals/safe-get-built-in.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/global-this.js"),s=n("./node_modules/core-js/internals/descriptors.js"),i=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!s)return r[e];var t=i(r,e);return t&&t.value}},"./node_modules/core-js/internals/schedulers-fix.js":function(e,t,n){"use strict";var r,s=n("./node_modules/core-js/internals/global-this.js"),i=n("./node_modules/core-js/internals/function-apply.js"),o=n("./node_modules/core-js/internals/is-callable.js"),a=n("./node_modules/core-js/internals/environment.js"),l=n("./node_modules/core-js/internals/environment-user-agent.js"),u=n("./node_modules/core-js/internals/array-slice.js"),c=n("./node_modules/core-js/internals/validate-arguments-length.js"),h=s.Function,d=/MSIE .\./.test(l)||"BUN"===a&&((r=s.Bun.version.split(".")).length<3||"0"===r[0]&&(r[1]<3||"3"===r[1]&&"0"===r[2]));e.exports=function(e,t){var n=t?2:1;return d?function(r,s){var a=c(arguments.length,1)>n,l=o(r)?r:h(r),d=a?u(arguments,n):[],f=a?function(){i(l,this,d)}:l;return t?e(f,s):e(f)}:e}},"./node_modules/core-js/internals/set-clone.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/set-helpers.js"),s=n("./node_modules/core-js/internals/set-iterate.js"),i=r.Set,o=r.add;e.exports=function(e){var t=new i;return s(e,function(e){o(t,e)}),t}},"./node_modules/core-js/internals/set-difference.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/a-set.js"),s=n("./node_modules/core-js/internals/set-helpers.js"),i=n("./node_modules/core-js/internals/set-clone.js"),o=n("./node_modules/core-js/internals/set-size.js"),a=n("./node_modules/core-js/internals/get-set-record.js"),l=n("./node_modules/core-js/internals/set-iterate.js"),u=n("./node_modules/core-js/internals/iterate-simple.js"),c=s.has,h=s.remove;e.exports=function(e){var t=r(this),n=a(e),s=i(t);return o(t)<=n.size?l(t,function(e){n.includes(e)&&h(s,e)}):u(n.getIterator(),function(e){c(s,e)&&h(s,e)}),s}},"./node_modules/core-js/internals/set-helpers.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js"),s=Set.prototype;e.exports={Set:Set,add:r(s.add),has:r(s.has),remove:r(s.delete),proto:s}},"./node_modules/core-js/internals/set-intersection.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/a-set.js"),s=n("./node_modules/core-js/internals/set-helpers.js"),i=n("./node_modules/core-js/internals/set-size.js"),o=n("./node_modules/core-js/internals/get-set-record.js"),a=n("./node_modules/core-js/internals/set-iterate.js"),l=n("./node_modules/core-js/internals/iterate-simple.js"),u=s.Set,c=s.add,h=s.has;e.exports=function(e){var t=r(this),n=o(e),s=new u;return i(t)>n.size?l(n.getIterator(),function(e){h(t,e)&&c(s,e)}):a(t,function(e){n.includes(e)&&c(s,e)}),s}},"./node_modules/core-js/internals/set-is-disjoint-from.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/a-set.js"),s=n("./node_modules/core-js/internals/set-helpers.js").has,i=n("./node_modules/core-js/internals/set-size.js"),o=n("./node_modules/core-js/internals/get-set-record.js"),a=n("./node_modules/core-js/internals/set-iterate.js"),l=n("./node_modules/core-js/internals/iterate-simple.js"),u=n("./node_modules/core-js/internals/iterator-close.js");e.exports=function(e){var t=r(this),n=o(e);if(i(t)<=n.size)return!1!==a(t,function(e){if(n.includes(e))return!1},!0);var c=n.getIterator();return!1!==l(c,function(e){if(s(t,e))return u(c,"normal",!1)})}},"./node_modules/core-js/internals/set-is-subset-of.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/a-set.js"),s=n("./node_modules/core-js/internals/set-size.js"),i=n("./node_modules/core-js/internals/set-iterate.js"),o=n("./node_modules/core-js/internals/get-set-record.js");e.exports=function(e){var t=r(this),n=o(e);return!(s(t)>n.size)&&!1!==i(t,function(e){if(!n.includes(e))return!1},!0)}},"./node_modules/core-js/internals/set-is-superset-of.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/a-set.js"),s=n("./node_modules/core-js/internals/set-helpers.js").has,i=n("./node_modules/core-js/internals/set-size.js"),o=n("./node_modules/core-js/internals/get-set-record.js"),a=n("./node_modules/core-js/internals/iterate-simple.js"),l=n("./node_modules/core-js/internals/iterator-close.js");e.exports=function(e){var t=r(this),n=o(e);if(i(t)<n.size)return!1;var u=n.getIterator();return!1!==a(u,function(e){if(!s(t,e))return l(u,"normal",!1)})}},"./node_modules/core-js/internals/set-iterate.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js"),s=n("./node_modules/core-js/internals/iterate-simple.js"),i=n("./node_modules/core-js/internals/set-helpers.js"),o=i.Set,a=i.proto,l=r(a.forEach),u=r(a.keys),c=u(new o).next;e.exports=function(e,t,n){return n?s({iterator:u(e),next:c},t):l(e,t)}},"./node_modules/core-js/internals/set-size.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this-accessor.js"),s=n("./node_modules/core-js/internals/set-helpers.js");e.exports=r(s.proto,"size","get")||function(e){return e.size}},"./node_modules/core-js/internals/set-species.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/get-built-in.js"),s=n("./node_modules/core-js/internals/define-built-in-accessor.js"),i=n("./node_modules/core-js/internals/well-known-symbol.js"),o=n("./node_modules/core-js/internals/descriptors.js"),a=i("species");e.exports=function(e){var t=r(e);o&&t&&!t[a]&&s(t,a,{configurable:!0,get:function(){return this}})}},"./node_modules/core-js/internals/set-symmetric-difference.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/a-set.js"),s=n("./node_modules/core-js/internals/set-helpers.js"),i=n("./node_modules/core-js/internals/set-clone.js"),o=n("./node_modules/core-js/internals/get-set-record.js"),a=n("./node_modules/core-js/internals/iterate-simple.js"),l=s.add,u=s.has,c=s.remove;e.exports=function(e){var t=r(this),n=o(e).getIterator(),s=i(t);return a(n,function(e){u(t,e)?c(s,e):l(s,e)}),s}},"./node_modules/core-js/internals/set-to-string-tag.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/object-define-property.js").f,s=n("./node_modules/core-js/internals/has-own-property.js"),i=n("./node_modules/core-js/internals/well-known-symbol.js")("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!s(e,i)&&r(e,i,{configurable:!0,value:t})}},"./node_modules/core-js/internals/set-union.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/a-set.js"),s=n("./node_modules/core-js/internals/set-helpers.js").add,i=n("./node_modules/core-js/internals/set-clone.js"),o=n("./node_modules/core-js/internals/get-set-record.js"),a=n("./node_modules/core-js/internals/iterate-simple.js");e.exports=function(e){var t=r(this),n=o(e).getIterator(),l=i(t);return a(n,function(e){s(l,e)}),l}},"./node_modules/core-js/internals/shared-key.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/shared.js"),s=n("./node_modules/core-js/internals/uid.js"),i=r("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},"./node_modules/core-js/internals/shared-store.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/is-pure.js"),s=n("./node_modules/core-js/internals/global-this.js"),i=n("./node_modules/core-js/internals/define-global-property.js"),o="__core-js_shared__",a=e.exports=s[o]||i(o,{});(a.versions||(a.versions=[])).push({version:"3.47.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"})},"./node_modules/core-js/internals/shared.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/shared-store.js");e.exports=function(e,t){return r[e]||(r[e]=t||{})}},"./node_modules/core-js/internals/species-constructor.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/an-object.js"),s=n("./node_modules/core-js/internals/a-constructor.js"),i=n("./node_modules/core-js/internals/is-null-or-undefined.js"),o=n("./node_modules/core-js/internals/well-known-symbol.js")("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||i(n=r(a)[o])?t:s(n)}},"./node_modules/core-js/internals/string-html-forced.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/fails.js");e.exports=function(e){return r(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js"),s=n("./node_modules/core-js/internals/to-integer-or-infinity.js"),i=n("./node_modules/core-js/internals/to-string.js"),o=n("./node_modules/core-js/internals/require-object-coercible.js"),a=r("".charAt),l=r("".charCodeAt),u=r("".slice),c=function(e){return function(t,n){var r,c,h=i(o(t)),d=s(n),f=h.length;return d<0||d>=f?e?"":void 0:(r=l(h,d))<55296||r>56319||d+1===f||(c=l(h,d+1))<56320||c>57343?e?a(h,d):r:e?u(h,d,d+2):c-56320+(r-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},"./node_modules/core-js/internals/string-trim-forced.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-name.js").PROPER,s=n("./node_modules/core-js/internals/fails.js"),i=n("./node_modules/core-js/internals/whitespaces.js");e.exports=function(e){return s(function(){return!!i[e]()||"
"!=="
"[e]()||r&&i[e].name!==e})}},"./node_modules/core-js/internals/string-trim.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js"),s=n("./node_modules/core-js/internals/require-object-coercible.js"),i=n("./node_modules/core-js/internals/to-string.js"),o=n("./node_modules/core-js/internals/whitespaces.js"),a=r("".replace),l=RegExp("^["+o+"]+"),u=RegExp("(^|[^"+o+"])["+o+"]+$"),c=function(e){return function(t){var n=i(s(t));return 1&e&&(n=a(n,l,"")),2&e&&(n=a(n,u,"$1")),n}};e.exports={start:c(1),end:c(2),trim:c(3)}},"./node_modules/core-js/internals/symbol-constructor-detection.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/environment-v8-version.js"),s=n("./node_modules/core-js/internals/fails.js"),i=n("./node_modules/core-js/internals/global-this.js").String;e.exports=!!Object.getOwnPropertySymbols&&!s(function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},"./node_modules/core-js/internals/symbol-define-to-primitive.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-call.js"),s=n("./node_modules/core-js/internals/get-built-in.js"),i=n("./node_modules/core-js/internals/well-known-symbol.js"),o=n("./node_modules/core-js/internals/define-built-in.js");e.exports=function(){var e=s("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,a=i("toPrimitive");t&&!t[a]&&o(t,a,function(e){return r(n,this)},{arity:1})}},"./node_modules/core-js/internals/symbol-registry-detection.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/symbol-constructor-detection.js");e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},"./node_modules/core-js/internals/task.js":function(e,t,n){"use strict";var r,s,i,o,a=n("./node_modules/core-js/internals/global-this.js"),l=n("./node_modules/core-js/internals/function-apply.js"),u=n("./node_modules/core-js/internals/function-bind-context.js"),c=n("./node_modules/core-js/internals/is-callable.js"),h=n("./node_modules/core-js/internals/has-own-property.js"),d=n("./node_modules/core-js/internals/fails.js"),f=n("./node_modules/core-js/internals/html.js"),p=n("./node_modules/core-js/internals/array-slice.js"),m=n("./node_modules/core-js/internals/document-create-element.js"),g=n("./node_modules/core-js/internals/validate-arguments-length.js"),v=n("./node_modules/core-js/internals/environment-is-ios.js"),y=n("./node_modules/core-js/internals/environment-is-node.js"),b=a.setImmediate,_=a.clearImmediate,j=a.process,w=a.Dispatch,x=a.Function,A=a.MessageChannel,S=a.String,N=0,L={},k="onreadystatechange";d(function(){r=a.location});var P=function(e){if(h(L,e)){var t=L[e];delete L[e],t()}},E=function(e){return function(){P(e)}},C=function(e){P(e.data)},O=function(e){a.postMessage(S(e),r.protocol+"//"+r.host)};b&&_||(b=function(e){g(arguments.length,1);var t=c(e)?e:x(e),n=p(arguments,1);return L[++N]=function(){l(t,void 0,n)},s(N),N},_=function(e){delete L[e]},y?s=function(e){j.nextTick(E(e))}:w&&w.now?s=function(e){w.now(E(e))}:A&&!v?(o=(i=new A).port2,i.port1.onmessage=C,s=u(o.postMessage,o)):a.addEventListener&&c(a.postMessage)&&!a.importScripts&&r&&"file:"!==r.protocol&&!d(O)?(s=O,a.addEventListener("message",C,!1)):s=k in m("script")?function(e){f.appendChild(m("script"))[k]=function(){f.removeChild(this),P(e)}}:function(e){setTimeout(E(e),0)}),e.exports={set:b,clear:_}},"./node_modules/core-js/internals/this-number-value.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js");e.exports=r(1.1.valueOf)},"./node_modules/core-js/internals/to-absolute-index.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/to-integer-or-infinity.js"),s=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?s(n+t,0):i(n,t)}},"./node_modules/core-js/internals/to-indexed-object.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/indexed-object.js"),s=n("./node_modules/core-js/internals/require-object-coercible.js");e.exports=function(e){return r(s(e))}},"./node_modules/core-js/internals/to-integer-or-infinity.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/math-trunc.js");e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},"./node_modules/core-js/internals/to-length.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/to-integer-or-infinity.js"),s=Math.min;e.exports=function(e){var t=r(e);return t>0?s(t,9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/require-object-coercible.js"),s=Object;e.exports=function(e){return s(r(e))}},"./node_modules/core-js/internals/to-primitive.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-call.js"),s=n("./node_modules/core-js/internals/is-object.js"),i=n("./node_modules/core-js/internals/is-symbol.js"),o=n("./node_modules/core-js/internals/get-method.js"),a=n("./node_modules/core-js/internals/ordinary-to-primitive.js"),l=n("./node_modules/core-js/internals/well-known-symbol.js"),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!s(e)||i(e))return e;var n,l=o(e,c);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!s(n)||i(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},"./node_modules/core-js/internals/to-property-key.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/to-primitive.js"),s=n("./node_modules/core-js/internals/is-symbol.js");e.exports=function(e){var t=r(e,"string");return s(t)?t:t+""}},"./node_modules/core-js/internals/to-set-like.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/get-built-in.js"),s=n("./node_modules/core-js/internals/is-callable.js"),i=n("./node_modules/core-js/internals/is-iterable.js"),o=n("./node_modules/core-js/internals/is-object.js"),a=r("Set");e.exports=function(e){return function(e){return o(e)&&"number"==typeof e.size&&s(e.has)&&s(e.keys)}(e)?e:i(e)?new a(e):e}},"./node_modules/core-js/internals/to-string-tag-support.js":function(e,t,n){"use strict";var r={};r[n("./node_modules/core-js/internals/well-known-symbol.js")("toStringTag")]="z",e.exports="[object z]"===String(r)},"./node_modules/core-js/internals/to-string.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/classof.js"),s=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},"./node_modules/core-js/internals/try-to-string.js":function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},"./node_modules/core-js/internals/uid.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js"),s=0,i=Math.random(),o=r(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/symbol-constructor-detection.js");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"./node_modules/core-js/internals/v8-prototype-define-bug.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/fails.js");e.exports=r&&s(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},"./node_modules/core-js/internals/validate-arguments-length.js":function(e){"use strict";var t=TypeError;e.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},"./node_modules/core-js/internals/weak-map-basic-detection.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/global-this.js"),s=n("./node_modules/core-js/internals/is-callable.js"),i=r.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},"./node_modules/core-js/internals/well-known-symbol-define.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/path.js"),s=n("./node_modules/core-js/internals/has-own-property.js"),i=n("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),o=n("./node_modules/core-js/internals/object-define-property.js").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});s(t,e)||o(t,e,{value:i.f(e)})}},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/well-known-symbol.js");t.f=r},"./node_modules/core-js/internals/well-known-symbol.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/global-this.js"),s=n("./node_modules/core-js/internals/shared.js"),i=n("./node_modules/core-js/internals/has-own-property.js"),o=n("./node_modules/core-js/internals/uid.js"),a=n("./node_modules/core-js/internals/symbol-constructor-detection.js"),l=n("./node_modules/core-js/internals/use-symbol-as-uid.js"),u=r.Symbol,c=s("wks"),h=l?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(c,e)||(c[e]=a&&i(u,e)?u[e]:h("Symbol."+e)),c[e]}},"./node_modules/core-js/internals/whitespaces.js":function(e){"use strict";e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"./node_modules/core-js/modules/es.array.concat.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/fails.js"),i=n("./node_modules/core-js/internals/is-array.js"),o=n("./node_modules/core-js/internals/is-object.js"),a=n("./node_modules/core-js/internals/to-object.js"),l=n("./node_modules/core-js/internals/length-of-array-like.js"),u=n("./node_modules/core-js/internals/does-not-exceed-safe-integer.js"),c=n("./node_modules/core-js/internals/create-property.js"),h=n("./node_modules/core-js/internals/array-species-create.js"),d=n("./node_modules/core-js/internals/array-method-has-species-support.js"),f=n("./node_modules/core-js/internals/well-known-symbol.js"),p=n("./node_modules/core-js/internals/environment-v8-version.js"),m=f("isConcatSpreadable"),g=p>=51||!s(function(){var e=[];return e[m]=!1,e.concat()[0]!==e}),v=function(e){if(!o(e))return!1;var t=e[m];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,arity:1,forced:!g||!d("concat")},{concat:function(e){var t,n,r,s,i,o=a(this),d=h(o,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(v(i=-1===t?o:arguments[t]))for(s=l(i),u(f+s),n=0;n<s;n++,f++)n in i&&c(d,f,i[n]);else u(f+1),c(d,f++,i);return d.length=f,d}})},"./node_modules/core-js/modules/es.array.from.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/array-from.js");r({target:"Array",stat:!0,forced:!n("./node_modules/core-js/internals/check-correctness-of-iteration.js")(function(e){Array.from(e)})},{from:s})},"./node_modules/core-js/modules/es.array.index-of.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/function-uncurry-this-clause.js"),i=n("./node_modules/core-js/internals/array-includes.js").indexOf,o=n("./node_modules/core-js/internals/array-method-is-strict.js"),a=s([].indexOf),l=!!a&&1/a([1],1,-0)<0;r({target:"Array",proto:!0,forced:l||!o("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return l?a(this,e,t)||0:i(this,e,t)}})},"./node_modules/core-js/modules/es.array.iterator.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/to-indexed-object.js"),s=n("./node_modules/core-js/internals/add-to-unscopables.js"),i=n("./node_modules/core-js/internals/iterators.js"),o=n("./node_modules/core-js/internals/internal-state.js"),a=n("./node_modules/core-js/internals/object-define-property.js").f,l=n("./node_modules/core-js/internals/iterator-define.js"),u=n("./node_modules/core-js/internals/create-iter-result-object.js"),c=n("./node_modules/core-js/internals/is-pure.js"),h=n("./node_modules/core-js/internals/descriptors.js"),d="Array Iterator",f=o.set,p=o.getterFor(d);e.exports=l(Array,"Array",function(e,t){f(this,{type:d,target:r(e),index:0,kind:t})},function(){var e=p(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,u(void 0,!0);switch(e.kind){case"keys":return u(n,!1);case"values":return u(t[n],!1)}return u([n,t[n]],!1)},"values");var m=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!c&&h&&"values"!==m.name)try{a(m,"name",{value:"values"})}catch(e){}},"./node_modules/core-js/modules/es.array.join.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/function-uncurry-this.js"),i=n("./node_modules/core-js/internals/indexed-object.js"),o=n("./node_modules/core-js/internals/to-indexed-object.js"),a=n("./node_modules/core-js/internals/array-method-is-strict.js"),l=s([].join);r({target:"Array",proto:!0,forced:i!==Object||!a("join",",")},{join:function(e){return l(o(this),void 0===e?",":e)}})},"./node_modules/core-js/modules/es.array.map.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/array-iteration.js").map;r({target:"Array",proto:!0,forced:!n("./node_modules/core-js/internals/array-method-has-species-support.js")("map")},{map:function(e){return s(this,e,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.reduce.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/array-reduce.js").left,i=n("./node_modules/core-js/internals/array-method-is-strict.js"),o=n("./node_modules/core-js/internals/environment-v8-version.js");r({target:"Array",proto:!0,forced:!n("./node_modules/core-js/internals/environment-is-node.js")&&o>79&&o<83||!i("reduce")},{reduce:function(e){var t=arguments.length;return s(this,e,t,t>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.reverse.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/function-uncurry-this.js"),i=n("./node_modules/core-js/internals/is-array.js"),o=s([].reverse),a=[1,2];r({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),o(this)}})},"./node_modules/core-js/modules/es.array.slice.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/is-array.js"),i=n("./node_modules/core-js/internals/is-constructor.js"),o=n("./node_modules/core-js/internals/is-object.js"),a=n("./node_modules/core-js/internals/to-absolute-index.js"),l=n("./node_modules/core-js/internals/length-of-array-like.js"),u=n("./node_modules/core-js/internals/to-indexed-object.js"),c=n("./node_modules/core-js/internals/create-property.js"),h=n("./node_modules/core-js/internals/well-known-symbol.js"),d=n("./node_modules/core-js/internals/array-method-has-species-support.js"),f=n("./node_modules/core-js/internals/array-slice.js"),p=d("slice"),m=h("species"),g=Array,v=Math.max;r({target:"Array",proto:!0,forced:!p},{slice:function(e,t){var n,r,h,d=u(this),p=l(d),y=a(e,p),b=a(void 0===t?p:t,p);if(s(d)&&(n=d.constructor,(i(n)&&(n===g||s(n.prototype))||o(n)&&null===(n=n[m]))&&(n=void 0),n===g||void 0===n))return f(d,y,b);for(r=new(void 0===n?g:n)(v(b-y,0)),h=0;y<b;y++,h++)y in d&&c(r,h,d[y]);return r.length=h,r}})},"./node_modules/core-js/modules/es.function.name.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/function-name.js").EXISTS,i=n("./node_modules/core-js/internals/function-uncurry-this.js"),o=n("./node_modules/core-js/internals/define-built-in-accessor.js"),a=Function.prototype,l=i(a.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=i(u.exec);r&&!s&&o(a,"name",{configurable:!0,get:function(){try{return c(u,l(this))[1]}catch(e){return""}}})},"./node_modules/core-js/modules/es.iterator.constructor.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/global-this.js"),i=n("./node_modules/core-js/internals/an-instance.js"),o=n("./node_modules/core-js/internals/an-object.js"),a=n("./node_modules/core-js/internals/is-callable.js"),l=n("./node_modules/core-js/internals/object-get-prototype-of.js"),u=n("./node_modules/core-js/internals/define-built-in-accessor.js"),c=n("./node_modules/core-js/internals/create-property.js"),h=n("./node_modules/core-js/internals/fails.js"),d=n("./node_modules/core-js/internals/has-own-property.js"),f=n("./node_modules/core-js/internals/well-known-symbol.js"),p=n("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,m=n("./node_modules/core-js/internals/descriptors.js"),g=n("./node_modules/core-js/internals/is-pure.js"),v="constructor",y="Iterator",b=f("toStringTag"),_=TypeError,j=s[y],w=g||!a(j)||j.prototype!==p||!h(function(){j({})}),x=function(){if(i(this,p),l(this)===p)throw new _("Abstract class Iterator not directly constructable")},A=function(e,t){m?u(p,e,{configurable:!0,get:function(){return t},set:function(t){if(o(this),this===p)throw new _("You can't redefine this property");d(this,e)?this[e]=t:c(this,e,t)}}):p[e]=t};d(p,b)||A(b,y),!w&&d(p,v)&&p[v]!==Object||A(v,x),x.prototype=p,r({global:!0,constructor:!0,forced:w},{Iterator:x})},"./node_modules/core-js/modules/es.iterator.for-each.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/function-call.js"),i=n("./node_modules/core-js/internals/iterate.js"),o=n("./node_modules/core-js/internals/a-callable.js"),a=n("./node_modules/core-js/internals/an-object.js"),l=n("./node_modules/core-js/internals/get-iterator-direct.js"),u=n("./node_modules/core-js/internals/iterator-close.js"),c=n("./node_modules/core-js/internals/iterator-helper-without-closing-on-early-error.js")("forEach",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:c},{forEach:function(e){a(this);try{o(e)}catch(e){u(this,"throw",e)}if(c)return s(c,this,e);var t=l(this),n=0;i(t,function(t){e(t,n++)},{IS_RECORD:!0})}})},"./node_modules/core-js/modules/es.iterator.map.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/function-call.js"),i=n("./node_modules/core-js/internals/a-callable.js"),o=n("./node_modules/core-js/internals/an-object.js"),a=n("./node_modules/core-js/internals/get-iterator-direct.js"),l=n("./node_modules/core-js/internals/iterator-create-proxy.js"),u=n("./node_modules/core-js/internals/call-with-safe-iteration-closing.js"),c=n("./node_modules/core-js/internals/iterator-close.js"),h=n("./node_modules/core-js/internals/iterator-helper-throws-on-invalid-iterator.js"),d=n("./node_modules/core-js/internals/iterator-helper-without-closing-on-early-error.js"),f=n("./node_modules/core-js/internals/is-pure.js"),p=!f&&!h("map",function(){}),m=!f&&!p&&d("map",TypeError),g=f||p||m,v=l(function(){var e=this.iterator,t=o(s(this.next,e));if(!(this.done=!!t.done))return u(e,this.mapper,[t.value,this.counter++],!0)});r({target:"Iterator",proto:!0,real:!0,forced:g},{map:function(e){o(this);try{i(e)}catch(e){c(this,"throw",e)}return m?s(m,this,e):new v(a(this),{mapper:e})}})},"./node_modules/core-js/modules/es.json.stringify.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/get-built-in.js"),i=n("./node_modules/core-js/internals/function-apply.js"),o=n("./node_modules/core-js/internals/function-call.js"),a=n("./node_modules/core-js/internals/function-uncurry-this.js"),l=n("./node_modules/core-js/internals/fails.js"),u=n("./node_modules/core-js/internals/is-array.js"),c=n("./node_modules/core-js/internals/is-callable.js"),h=n("./node_modules/core-js/internals/is-raw-json.js"),d=n("./node_modules/core-js/internals/is-symbol.js"),f=n("./node_modules/core-js/internals/classof-raw.js"),p=n("./node_modules/core-js/internals/to-string.js"),m=n("./node_modules/core-js/internals/array-slice.js"),g=n("./node_modules/core-js/internals/parse-json-string.js"),v=n("./node_modules/core-js/internals/uid.js"),y=n("./node_modules/core-js/internals/symbol-constructor-detection.js"),b=n("./node_modules/core-js/internals/native-raw-json.js"),_=String,j=s("JSON","stringify"),w=a(/./.exec),x=a("".charAt),A=a("".charCodeAt),S=a("".replace),N=a("".slice),L=a([].push),k=a(1.1.toString),P=/[\uD800-\uDFFF]/g,E=/^[\uD800-\uDBFF]$/,C=/^[\uDC00-\uDFFF]$/,O=v(),T=O.length,I=!y||l(function(){var e=s("Symbol")("stringify detection");return"[null]"!==j([e])||"{}"!==j({a:e})||"{}"!==j(Object(e))}),M=l(function(){return'"\\udf06\\ud834"'!==j("\udf06\ud834")||'"\\udead"'!==j("\udead")}),R=I?function(e,t){var n=m(arguments),r=D(t);if(c(r)||void 0!==e&&!d(e))return n[1]=function(e,t){if(c(r)&&(t=o(r,this,_(e),t)),!d(t))return t},i(j,null,n)}:j,F=function(e,t,n){var r=x(n,t-1),s=x(n,t+1);return w(E,e)&&!w(C,s)||w(C,e)&&!w(E,r)?"\\u"+k(A(e,0),16):e},D=function(e){if(c(e))return e;if(u(e)){for(var t=e.length,n=[],r=0;r<t;r++){var s=e[r];"string"==typeof s?L(n,s):"number"!=typeof s&&"Number"!==f(s)&&"String"!==f(s)||L(n,p(s))}var i=n.length,o=!0;return function(e,t){if(o)return o=!1,t;if(u(this))return t;for(var r=0;r<i;r++)if(n[r]===e)return t}}};j&&r({target:"JSON",stat:!0,arity:3,forced:I||M||!b},{stringify:function(e,t,n){var r=D(t),s=[],i=R(e,function(e,t){var n=c(r)?o(r,this,_(e),t):t;return!b&&h(n)?O+(L(s,n.rawJSON)-1):n},n);if("string"!=typeof i)return i;if(M&&(i=S(i,P,F)),b)return i;for(var a="",l=i.length,u=0;u<l;u++){var d=x(i,u);if('"'===d){var f=g(i,++u).end-1,p=N(i,u,f);a+=N(p,0,T)===O?s[N(p,T)]:'"'+p+'"',u=f}else a+=d}return a}})},"./node_modules/core-js/modules/es.number.constructor.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/is-pure.js"),i=n("./node_modules/core-js/internals/descriptors.js"),o=n("./node_modules/core-js/internals/global-this.js"),a=n("./node_modules/core-js/internals/path.js"),l=n("./node_modules/core-js/internals/function-uncurry-this.js"),u=n("./node_modules/core-js/internals/is-forced.js"),c=n("./node_modules/core-js/internals/has-own-property.js"),h=n("./node_modules/core-js/internals/inherit-if-required.js"),d=n("./node_modules/core-js/internals/object-is-prototype-of.js"),f=n("./node_modules/core-js/internals/is-symbol.js"),p=n("./node_modules/core-js/internals/to-primitive.js"),m=n("./node_modules/core-js/internals/fails.js"),g=n("./node_modules/core-js/internals/object-get-own-property-names.js").f,v=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,y=n("./node_modules/core-js/internals/object-define-property.js").f,b=n("./node_modules/core-js/internals/this-number-value.js"),_=n("./node_modules/core-js/internals/string-trim.js").trim,j="Number",w=o[j],x=a[j],A=w.prototype,S=o.TypeError,N=l("".slice),L=l("".charCodeAt),k=u(j,!w(" 0o1")||!w("0b1")||w("+0x1")),P=function(e){var t,n=arguments.length<1?0:w(function(e){var t=p(e,"number");return"bigint"==typeof t?t:function(e){var t,n,r,s,i,o,a,l,u=p(e,"number");if(f(u))throw new S("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=_(u),43===(t=L(u,0))||45===t){if(88===(n=L(u,2))||120===n)return NaN}else if(48===t){switch(L(u,1)){case 66:case 98:r=2,s=49;break;case 79:case 111:r=8,s=55;break;default:return+u}for(o=(i=N(u,2)).length,a=0;a<o;a++)if((l=L(i,a))<48||l>s)return NaN;return parseInt(i,r)}return+u}(t)}(e));return d(A,t=this)&&m(function(){b(t)})?h(Object(n),this,P):n};P.prototype=A,k&&!s&&(A.constructor=P),r({global:!0,constructor:!0,wrap:!0,forced:k},{Number:P});var E=function(e,t){for(var n,r=i?g(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),s=0;r.length>s;s++)c(t,n=r[s])&&!c(e,n)&&y(e,n,v(t,n))};s&&x&&E(a[j],x),(k||s)&&E(a[j],w)},"./node_modules/core-js/modules/es.object.assign.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/object-assign.js");r({target:"Object",stat:!0,arity:2,forced:Object.assign!==s},{assign:s})},"./node_modules/core-js/modules/es.object.get-own-property-symbols.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/symbol-constructor-detection.js"),i=n("./node_modules/core-js/internals/fails.js"),o=n("./node_modules/core-js/internals/object-get-own-property-symbols.js"),a=n("./node_modules/core-js/internals/to-object.js");r({target:"Object",stat:!0,forced:!s||i(function(){o.f(1)})},{getOwnPropertySymbols:function(e){var t=o.f;return t?t(a(e)):[]}})},"./node_modules/core-js/modules/es.object.keys.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/to-object.js"),i=n("./node_modules/core-js/internals/object-keys.js");r({target:"Object",stat:!0,forced:n("./node_modules/core-js/internals/fails.js")(function(){i(1)})},{keys:function(e){return i(s(e))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/to-string-tag-support.js"),s=n("./node_modules/core-js/internals/define-built-in.js"),i=n("./node_modules/core-js/internals/object-to-string.js");r||s(Object.prototype,"toString",i,{unsafe:!0})},"./node_modules/core-js/modules/es.promise.all.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/function-call.js"),i=n("./node_modules/core-js/internals/a-callable.js"),o=n("./node_modules/core-js/internals/new-promise-capability.js"),a=n("./node_modules/core-js/internals/perform.js"),l=n("./node_modules/core-js/internals/iterate.js");r({target:"Promise",stat:!0,forced:n("./node_modules/core-js/internals/promise-statics-incorrect-iteration.js")},{all:function(e){var t=this,n=o.f(t),r=n.resolve,u=n.reject,c=a(function(){var n=i(t.resolve),o=[],a=0,c=1;l(e,function(e){var i=a++,l=!1;c++,s(n,t,e).then(function(e){l||(l=!0,o[i]=e,--c||r(o))},u)}),--c||r(o)});return c.error&&u(c.value),n.promise}})},"./node_modules/core-js/modules/es.promise.catch.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/is-pure.js"),i=n("./node_modules/core-js/internals/promise-constructor-detection.js").CONSTRUCTOR,o=n("./node_modules/core-js/internals/promise-native-constructor.js"),a=n("./node_modules/core-js/internals/get-built-in.js"),l=n("./node_modules/core-js/internals/is-callable.js"),u=n("./node_modules/core-js/internals/define-built-in.js"),c=o&&o.prototype;if(r({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!s&&l(o)){var h=a("Promise").prototype.catch;c.catch!==h&&u(c,"catch",h,{unsafe:!0})}},"./node_modules/core-js/modules/es.promise.constructor.js":function(e,t,n){"use strict";var r,s,i,o,a=n("./node_modules/core-js/internals/export.js"),l=n("./node_modules/core-js/internals/is-pure.js"),u=n("./node_modules/core-js/internals/environment-is-node.js"),c=n("./node_modules/core-js/internals/global-this.js"),h=n("./node_modules/core-js/internals/path.js"),d=n("./node_modules/core-js/internals/function-call.js"),f=n("./node_modules/core-js/internals/define-built-in.js"),p=n("./node_modules/core-js/internals/object-set-prototype-of.js"),m=n("./node_modules/core-js/internals/set-to-string-tag.js"),g=n("./node_modules/core-js/internals/set-species.js"),v=n("./node_modules/core-js/internals/a-callable.js"),y=n("./node_modules/core-js/internals/is-callable.js"),b=n("./node_modules/core-js/internals/is-object.js"),_=n("./node_modules/core-js/internals/an-instance.js"),j=n("./node_modules/core-js/internals/species-constructor.js"),w=n("./node_modules/core-js/internals/task.js").set,x=n("./node_modules/core-js/internals/microtask.js"),A=n("./node_modules/core-js/internals/host-report-errors.js"),S=n("./node_modules/core-js/internals/perform.js"),N=n("./node_modules/core-js/internals/queue.js"),L=n("./node_modules/core-js/internals/internal-state.js"),k=n("./node_modules/core-js/internals/promise-native-constructor.js"),P=n("./node_modules/core-js/internals/promise-constructor-detection.js"),E=n("./node_modules/core-js/internals/new-promise-capability.js"),C="Promise",O=P.CONSTRUCTOR,T=P.REJECTION_EVENT,I=P.SUBCLASSING,M=L.getterFor(C),R=L.set,F=k&&k.prototype,D=k,B=F,z=c.TypeError,U=c.document,q=c.process,V=E.f,H=V,W=!!(U&&U.createEvent&&c.dispatchEvent),G="unhandledrejection",Y=function(e){var t;return!(!b(e)||!y(t=e.then))&&t},X=function(e,t){var n,r,s,i=t.value,o=1===t.state,a=o?e.ok:e.fail,l=e.resolve,u=e.reject,c=e.domain;try{a?(o||(2===t.rejection&&Q(t),t.rejection=1),!0===a?n=i:(c&&c.enter(),n=a(i),c&&(c.exit(),s=!0)),n===e.promise?u(new z("Promise-chain cycle")):(r=Y(n))?d(r,n,l,u):l(n)):u(i)}catch(e){c&&!s&&c.exit(),u(e)}},Z=function(e,t){e.notified||(e.notified=!0,x(function(){for(var n,r=e.reactions;n=r.get();)X(n,e);e.notified=!1,t&&!e.rejection&&K(e)}))},$=function(e,t,n){var r,s;W?((r=U.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},!T&&(s=c["on"+e])?s(r):e===G&&A("Unhandled promise rejection",n)},K=function(e){d(w,c,function(){var t,n=e.facade,r=e.value;if(J(e)&&(t=S(function(){u?q.emit("unhandledRejection",r,n):$(G,n,r)}),e.rejection=u||J(e)?2:1,t.error))throw t.value})},J=function(e){return 1!==e.rejection&&!e.parent},Q=function(e){d(w,c,function(){var t=e.facade;u?q.emit("rejectionHandled",t):$("rejectionhandled",t,e.value)})},ee=function(e,t,n){return function(r){e(t,r,n)}},te=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Z(e,!0))},ne=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new z("Promise can't be resolved itself");var r=Y(t);r?x(function(){var n={done:!1};try{d(r,t,ee(ne,n,e),ee(te,n,e))}catch(t){te(n,t,e)}}):(e.value=t,e.state=1,Z(e,!1))}catch(t){te({done:!1},t,e)}}};if(O&&(B=(D=function(e){_(this,B),v(e),d(r,this);var t=M(this);try{e(ee(ne,t),ee(te,t))}catch(e){te(t,e)}}).prototype,(r=function(e){R(this,{type:C,done:!1,notified:!1,parent:!1,reactions:new N,rejection:!1,state:0,value:null})}).prototype=f(B,"then",function(e,t){var n=M(this),r=V(j(this,D));return n.parent=!0,r.ok=!y(e)||e,r.fail=y(t)&&t,r.domain=u?q.domain:void 0,0===n.state?n.reactions.add(r):x(function(){X(r,n)}),r.promise}),s=function(){var e=new r,t=M(e);this.promise=e,this.resolve=ee(ne,t),this.reject=ee(te,t)},E.f=V=function(e){return e===D||e===i?new s(e):H(e)},!l&&y(k)&&F!==Object.prototype)){o=F.then,I||f(F,"then",function(e,t){var n=this;return new D(function(e,t){d(o,n,e,t)}).then(e,t)},{unsafe:!0});try{delete F.constructor}catch(e){}p&&p(F,B)}a({global:!0,constructor:!0,wrap:!0,forced:O},{Promise:D}),i=h.Promise,m(D,C,!1,!0),g(C)},"./node_modules/core-js/modules/es.promise.js":function(e,t,n){"use strict";n("./node_modules/core-js/modules/es.promise.constructor.js"),n("./node_modules/core-js/modules/es.promise.all.js"),n("./node_modules/core-js/modules/es.promise.catch.js"),n("./node_modules/core-js/modules/es.promise.race.js"),n("./node_modules/core-js/modules/es.promise.reject.js"),n("./node_modules/core-js/modules/es.promise.resolve.js")},"./node_modules/core-js/modules/es.promise.race.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/function-call.js"),i=n("./node_modules/core-js/internals/a-callable.js"),o=n("./node_modules/core-js/internals/new-promise-capability.js"),a=n("./node_modules/core-js/internals/perform.js"),l=n("./node_modules/core-js/internals/iterate.js");r({target:"Promise",stat:!0,forced:n("./node_modules/core-js/internals/promise-statics-incorrect-iteration.js")},{race:function(e){var t=this,n=o.f(t),r=n.reject,u=a(function(){var o=i(t.resolve);l(e,function(e){s(o,t,e).then(n.resolve,r)})});return u.error&&r(u.value),n.promise}})},"./node_modules/core-js/modules/es.promise.reject.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/new-promise-capability.js");r({target:"Promise",stat:!0,forced:n("./node_modules/core-js/internals/promise-constructor-detection.js").CONSTRUCTOR},{reject:function(e){var t=s.f(this);return(0,t.reject)(e),t.promise}})},"./node_modules/core-js/modules/es.promise.resolve.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/get-built-in.js"),i=n("./node_modules/core-js/internals/is-pure.js"),o=n("./node_modules/core-js/internals/promise-native-constructor.js"),a=n("./node_modules/core-js/internals/promise-constructor-detection.js").CONSTRUCTOR,l=n("./node_modules/core-js/internals/promise-resolve.js"),u=s("Promise"),c=i&&!a;r({target:"Promise",stat:!0,forced:i||a},{resolve:function(e){return l(c&&this===u?o:this,e)}})},"./node_modules/core-js/modules/es.regexp.exec.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/regexp-exec.js");r({target:"RegExp",proto:!0,forced:/./.exec!==s},{exec:s})},"./node_modules/core-js/modules/es.regexp.test.js":function(e,t,n){"use strict";n("./node_modules/core-js/modules/es.regexp.exec.js");var r,s,i=n("./node_modules/core-js/internals/export.js"),o=n("./node_modules/core-js/internals/function-call.js"),a=n("./node_modules/core-js/internals/is-callable.js"),l=n("./node_modules/core-js/internals/an-object.js"),u=n("./node_modules/core-js/internals/to-string.js"),c=(r=!1,(s=/[ac]/).exec=function(){return r=!0,/./.exec.apply(this,arguments)},!0===s.test("abc")&&r),h=/./.test;i({target:"RegExp",proto:!0,forced:!c},{test:function(e){var t=l(this),n=u(e),r=t.exec;if(!a(r))return o(h,t,n);var s=o(r,t,n);return null!==s&&(l(s),!0)}})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-name.js").PROPER,s=n("./node_modules/core-js/internals/define-built-in.js"),i=n("./node_modules/core-js/internals/an-object.js"),o=n("./node_modules/core-js/internals/to-string.js"),a=n("./node_modules/core-js/internals/fails.js"),l=n("./node_modules/core-js/internals/regexp-get-flags.js"),u="toString",c=RegExp.prototype,h=c[u],d=a(function(){return"/a/b"!==h.call({source:"a",flags:"b"})}),f=r&&h.name!==u;(d||f)&&s(c,u,function(){var e=i(this);return"/"+o(e.source)+"/"+o(l(e))},{unsafe:!0})},"./node_modules/core-js/modules/es.set.constructor.js":function(e,t,n){"use strict";n("./node_modules/core-js/internals/collection.js")("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},n("./node_modules/core-js/internals/collection-strong.js"))},"./node_modules/core-js/modules/es.set.js":function(e,t,n){"use strict";n("./node_modules/core-js/modules/es.set.constructor.js")},"./node_modules/core-js/modules/es.string.ends-with.js":function(e,t,n){"use strict";var r,s=n("./node_modules/core-js/internals/export.js"),i=n("./node_modules/core-js/internals/function-uncurry-this-clause.js"),o=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,a=n("./node_modules/core-js/internals/to-length.js"),l=n("./node_modules/core-js/internals/to-string.js"),u=n("./node_modules/core-js/internals/not-a-regexp.js"),c=n("./node_modules/core-js/internals/require-object-coercible.js"),h=n("./node_modules/core-js/internals/correct-is-regexp-logic.js"),d=n("./node_modules/core-js/internals/is-pure.js"),f=i("".slice),p=Math.min,m=h("endsWith");s({target:"String",proto:!0,forced:!(!d&&!m&&(r=o(String.prototype,"endsWith"),r&&!r.writable)||m)},{endsWith:function(e){var t=l(c(this));u(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,s=void 0===n?r:p(a(n),r),i=l(e);return f(t,s-i.length,s)===i}})},"./node_modules/core-js/modules/es.string.includes.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/function-uncurry-this.js"),i=n("./node_modules/core-js/internals/not-a-regexp.js"),o=n("./node_modules/core-js/internals/require-object-coercible.js"),a=n("./node_modules/core-js/internals/to-string.js"),l=n("./node_modules/core-js/internals/correct-is-regexp-logic.js"),u=s("".indexOf);r({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~u(a(o(this)),a(i(e)),arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.string.iterator.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/string-multibyte.js").charAt,s=n("./node_modules/core-js/internals/to-string.js"),i=n("./node_modules/core-js/internals/internal-state.js"),o=n("./node_modules/core-js/internals/iterator-define.js"),a=n("./node_modules/core-js/internals/create-iter-result-object.js"),l="String Iterator",u=i.set,c=i.getterFor(l);o(String,"String",function(e){u(this,{type:l,string:s(e),index:0})},function(){var e,t=c(this),n=t.string,s=t.index;return s>=n.length?a(void 0,!0):(e=r(n,s),t.index+=e.length,a(e,!1))})},"./node_modules/core-js/modules/es.string.link.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/create-html.js");r({target:"String",proto:!0,forced:n("./node_modules/core-js/internals/string-html-forced.js")("link")},{link:function(e){return s(this,"a","href",e)}})},"./node_modules/core-js/modules/es.string.match.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-call.js"),s=n("./node_modules/core-js/internals/function-uncurry-this.js"),i=n("./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js"),o=n("./node_modules/core-js/internals/an-object.js"),a=n("./node_modules/core-js/internals/is-object.js"),l=n("./node_modules/core-js/internals/to-length.js"),u=n("./node_modules/core-js/internals/to-string.js"),c=n("./node_modules/core-js/internals/require-object-coercible.js"),h=n("./node_modules/core-js/internals/get-method.js"),d=n("./node_modules/core-js/internals/advance-string-index.js"),f=n("./node_modules/core-js/internals/regexp-get-flags.js"),p=n("./node_modules/core-js/internals/regexp-exec-abstract.js"),m=s("".indexOf);i("match",function(e,t,n){return[function(t){var n=c(this),s=a(t)?h(t,e):void 0;return s?r(s,t,n):new RegExp(t)[e](u(n))},function(e){var r=o(this),s=u(e),i=n(t,r,s);if(i.done)return i.value;var a=u(f(r));if(-1===m(a,"g"))return p(r,s);var c=-1!==m(a,"u");r.lastIndex=0;for(var h,g=[],v=0;null!==(h=p(r,s));){var y=u(h[0]);g[v]=y,""===y&&(r.lastIndex=d(s,l(r.lastIndex),c)),v++}return 0===v?null:g}]})},"./node_modules/core-js/modules/es.string.replace.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-apply.js"),s=n("./node_modules/core-js/internals/function-call.js"),i=n("./node_modules/core-js/internals/function-uncurry-this.js"),o=n("./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js"),a=n("./node_modules/core-js/internals/fails.js"),l=n("./node_modules/core-js/internals/an-object.js"),u=n("./node_modules/core-js/internals/is-callable.js"),c=n("./node_modules/core-js/internals/is-object.js"),h=n("./node_modules/core-js/internals/to-integer-or-infinity.js"),d=n("./node_modules/core-js/internals/to-length.js"),f=n("./node_modules/core-js/internals/to-string.js"),p=n("./node_modules/core-js/internals/require-object-coercible.js"),m=n("./node_modules/core-js/internals/advance-string-index.js"),g=n("./node_modules/core-js/internals/get-method.js"),v=n("./node_modules/core-js/internals/get-substitution.js"),y=n("./node_modules/core-js/internals/regexp-get-flags.js"),b=n("./node_modules/core-js/internals/regexp-exec-abstract.js"),_=n("./node_modules/core-js/internals/well-known-symbol.js")("replace"),j=Math.max,w=Math.min,x=i([].concat),A=i([].push),S=i("".indexOf),N=i("".slice),L=function(e){return void 0===e?e:String(e)},k="$0"==="a".replace(/./,"$0"),P=!!/./[_]&&""===/./[_]("a","$0");o("replace",function(e,t,n){var i=P?"$":"$0";return[function(e,n){var r=p(this),i=c(e)?g(e,_):void 0;return i?s(i,e,r,n):s(t,f(r),e,n)},function(e,s){var o=l(this),a=f(e);if("string"==typeof s&&-1===S(s,i)&&-1===S(s,"$<")){var c=n(t,o,a,s);if(c.done)return c.value}var p=u(s);p||(s=f(s));var g,_=f(y(o)),k=-1!==S(_,"g");k&&(g=-1!==S(_,"u"),o.lastIndex=0);for(var P,E=[];null!==(P=b(o,a))&&(A(E,P),k);)""===f(P[0])&&(o.lastIndex=m(a,d(o.lastIndex),g));for(var C="",O=0,T=0;T<E.length;T++){for(var I,M=f((P=E[T])[0]),R=j(w(h(P.index),a.length),0),F=[],D=1;D<P.length;D++)A(F,L(P[D]));var B=P.groups;if(p){var z=x([M],F,R,a);void 0!==B&&A(z,B),I=f(r(s,void 0,z))}else I=v(M,a,R,F,B,s);R>=O&&(C+=N(a,O,R)+I,O=R+M.length)}return C+N(a,O)}]},!!a(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!k||P)},"./node_modules/core-js/modules/es.string.split.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-call.js"),s=n("./node_modules/core-js/internals/function-uncurry-this.js"),i=n("./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js"),o=n("./node_modules/core-js/internals/an-object.js"),a=n("./node_modules/core-js/internals/is-object.js"),l=n("./node_modules/core-js/internals/require-object-coercible.js"),u=n("./node_modules/core-js/internals/species-constructor.js"),c=n("./node_modules/core-js/internals/advance-string-index.js"),h=n("./node_modules/core-js/internals/to-length.js"),d=n("./node_modules/core-js/internals/to-string.js"),f=n("./node_modules/core-js/internals/get-method.js"),p=n("./node_modules/core-js/internals/regexp-exec-abstract.js"),m=n("./node_modules/core-js/internals/regexp-sticky-helpers.js"),g=n("./node_modules/core-js/internals/fails.js"),v=m.UNSUPPORTED_Y,y=Math.min,b=s([].push),_=s("".slice),j=!g(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),w="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;i("split",function(e,t,n){var s="0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:r(t,this,e,n)}:t;return[function(t,n){var i=l(this),o=a(t)?f(t,e):void 0;return o?r(o,t,i,n):r(s,d(i),t,n)},function(e,r){var i=o(this),a=d(e);if(!w){var l=n(s,i,a,r,s!==t);if(l.done)return l.value}var f=u(i,RegExp),m=i.unicode,g=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(v?"g":"y"),j=new f(v?"^(?:"+i.source+")":i,g),x=void 0===r?4294967295:r>>>0;if(0===x)return[];if(0===a.length)return null===p(j,a)?[a]:[];for(var A=0,S=0,N=[];S<a.length;){j.lastIndex=v?0:S;var L,k=p(j,v?_(a,S):a);if(null===k||(L=y(h(j.lastIndex+(v?S:0)),a.length))===A)S=c(a,S,m);else{if(b(N,_(a,A,S)),N.length===x)return N;for(var P=1;P<=k.length-1;P++)if(b(N,k[P]),N.length===x)return N;S=A=L}}return b(N,_(a,A)),N}]},w||!j,v)},"./node_modules/core-js/modules/es.string.starts-with.js":function(e,t,n){"use strict";var r,s=n("./node_modules/core-js/internals/export.js"),i=n("./node_modules/core-js/internals/function-uncurry-this-clause.js"),o=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,a=n("./node_modules/core-js/internals/to-length.js"),l=n("./node_modules/core-js/internals/to-string.js"),u=n("./node_modules/core-js/internals/not-a-regexp.js"),c=n("./node_modules/core-js/internals/require-object-coercible.js"),h=n("./node_modules/core-js/internals/correct-is-regexp-logic.js"),d=n("./node_modules/core-js/internals/is-pure.js"),f=i("".slice),p=Math.min,m=h("startsWith");s({target:"String",proto:!0,forced:!(!d&&!m&&(r=o(String.prototype,"startsWith"),r&&!r.writable)||m)},{startsWith:function(e){var t=l(c(this));u(e);var n=a(p(arguments.length>1?arguments[1]:void 0,t.length)),r=l(e);return f(t,n,n+r.length)===r}})},"./node_modules/core-js/modules/es.string.trim.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/string-trim.js").trim;r({target:"String",proto:!0,forced:n("./node_modules/core-js/internals/string-trim-forced.js")("trim")},{trim:function(){return s(this)}})},"./node_modules/core-js/modules/es.symbol.constructor.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/global-this.js"),i=n("./node_modules/core-js/internals/function-call.js"),o=n("./node_modules/core-js/internals/function-uncurry-this.js"),a=n("./node_modules/core-js/internals/is-pure.js"),l=n("./node_modules/core-js/internals/descriptors.js"),u=n("./node_modules/core-js/internals/symbol-constructor-detection.js"),c=n("./node_modules/core-js/internals/fails.js"),h=n("./node_modules/core-js/internals/has-own-property.js"),d=n("./node_modules/core-js/internals/object-is-prototype-of.js"),f=n("./node_modules/core-js/internals/an-object.js"),p=n("./node_modules/core-js/internals/to-indexed-object.js"),m=n("./node_modules/core-js/internals/to-property-key.js"),g=n("./node_modules/core-js/internals/to-string.js"),v=n("./node_modules/core-js/internals/create-property-descriptor.js"),y=n("./node_modules/core-js/internals/object-create.js"),b=n("./node_modules/core-js/internals/object-keys.js"),_=n("./node_modules/core-js/internals/object-get-own-property-names.js"),j=n("./node_modules/core-js/internals/object-get-own-property-names-external.js"),w=n("./node_modules/core-js/internals/object-get-own-property-symbols.js"),x=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),A=n("./node_modules/core-js/internals/object-define-property.js"),S=n("./node_modules/core-js/internals/object-define-properties.js"),N=n("./node_modules/core-js/internals/object-property-is-enumerable.js"),L=n("./node_modules/core-js/internals/define-built-in.js"),k=n("./node_modules/core-js/internals/define-built-in-accessor.js"),P=n("./node_modules/core-js/internals/shared.js"),E=n("./node_modules/core-js/internals/shared-key.js"),C=n("./node_modules/core-js/internals/hidden-keys.js"),O=n("./node_modules/core-js/internals/uid.js"),T=n("./node_modules/core-js/internals/well-known-symbol.js"),I=n("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),M=n("./node_modules/core-js/internals/well-known-symbol-define.js"),R=n("./node_modules/core-js/internals/symbol-define-to-primitive.js"),F=n("./node_modules/core-js/internals/set-to-string-tag.js"),D=n("./node_modules/core-js/internals/internal-state.js"),B=n("./node_modules/core-js/internals/array-iteration.js").forEach,z=E("hidden"),U="Symbol",q="prototype",V=D.set,H=D.getterFor(U),W=Object[q],G=s.Symbol,Y=G&&G[q],X=s.RangeError,Z=s.TypeError,$=s.QObject,K=x.f,J=A.f,Q=j.f,ee=N.f,te=o([].push),ne=P("symbols"),re=P("op-symbols"),se=P("wks"),ie=!$||!$[q]||!$[q].findChild,oe=function(e,t,n){var r=K(W,t);r&&delete W[t],J(e,t,n),r&&e!==W&&J(W,t,r)},ae=l&&c(function(){return 7!==y(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a})?oe:J,le=function(e,t){var n=ne[e]=y(Y);return V(n,{type:U,tag:e,description:t}),l||(n.description=t),n},ue=function(e,t,n){e===W&&ue(re,t,n),f(e);var r=m(t);return f(n),h(ne,r)?(n.enumerable?(h(e,z)&&e[z][r]&&(e[z][r]=!1),n=y(n,{enumerable:v(0,!1)})):(h(e,z)||J(e,z,v(1,y(null))),e[z][r]=!0),ae(e,r,n)):J(e,r,n)},ce=function(e,t){f(e);var n=p(t),r=b(n).concat(pe(n));return B(r,function(t){l&&!i(he,n,t)||ue(e,t,n[t])}),e},he=function(e){var t=m(e),n=i(ee,this,t);return!(this===W&&h(ne,t)&&!h(re,t))&&(!(n||!h(this,t)||!h(ne,t)||h(this,z)&&this[z][t])||n)},de=function(e,t){var n=p(e),r=m(t);if(n!==W||!h(ne,r)||h(re,r)){var s=K(n,r);return!s||!h(ne,r)||h(n,z)&&n[z][r]||(s.enumerable=!0),s}},fe=function(e){var t=Q(p(e)),n=[];return B(t,function(e){h(ne,e)||h(C,e)||te(n,e)}),n},pe=function(e){var t=e===W,n=Q(t?re:p(e)),r=[];return B(n,function(e){!h(ne,e)||t&&!h(W,e)||te(r,ne[e])}),r};u||(G=function(){if(d(Y,this))throw new Z("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,t=O(e),n=function(e){var r=void 0===this?s:this;r===W&&i(n,re,e),h(r,z)&&h(r[z],t)&&(r[z][t]=!1);var o=v(1,e);try{ae(r,t,o)}catch(e){if(!(e instanceof X))throw e;oe(r,t,o)}};return l&&ie&&ae(W,t,{configurable:!0,set:n}),le(t,e)},L(Y=G[q],"toString",function(){return H(this).tag}),L(G,"withoutSetter",function(e){return le(O(e),e)}),N.f=he,A.f=ue,S.f=ce,x.f=de,_.f=j.f=fe,w.f=pe,I.f=function(e){return le(T(e),e)},l&&(k(Y,"description",{configurable:!0,get:function(){return H(this).description}}),a||L(W,"propertyIsEnumerable",he,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:G}),B(b(se),function(e){M(e)}),r({target:U,stat:!0,forced:!u},{useSetter:function(){ie=!0},useSimple:function(){ie=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!l},{create:function(e,t){return void 0===t?y(e):ce(y(e),t)},defineProperty:ue,defineProperties:ce,getOwnPropertyDescriptor:de}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:fe}),R(),F(G,U),C[z]=!0},"./node_modules/core-js/modules/es.symbol.description.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/descriptors.js"),i=n("./node_modules/core-js/internals/global-this.js"),o=n("./node_modules/core-js/internals/function-uncurry-this.js"),a=n("./node_modules/core-js/internals/has-own-property.js"),l=n("./node_modules/core-js/internals/is-callable.js"),u=n("./node_modules/core-js/internals/object-is-prototype-of.js"),c=n("./node_modules/core-js/internals/to-string.js"),h=n("./node_modules/core-js/internals/define-built-in-accessor.js"),d=n("./node_modules/core-js/internals/copy-constructor-properties.js"),f=i.Symbol,p=f&&f.prototype;if(s&&l(f)&&(!("description"in p)||void 0!==f().description)){var m={},g=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=u(p,this)?new f(e):void 0===e?f():f(e);return""===e&&(m[t]=!0),t};d(g,f),g.prototype=p,p.constructor=g;var v="Symbol(description detection)"===String(f("description detection")),y=o(p.valueOf),b=o(p.toString),_=/^Symbol\((.*)\)[^)]+$/,j=o("".replace),w=o("".slice);h(p,"description",{configurable:!0,get:function(){var e=y(this);if(a(m,e))return"";var t=b(e),n=v?w(t,7,-1):j(t,_,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:g})}},"./node_modules/core-js/modules/es.symbol.for.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/get-built-in.js"),i=n("./node_modules/core-js/internals/has-own-property.js"),o=n("./node_modules/core-js/internals/to-string.js"),a=n("./node_modules/core-js/internals/shared.js"),l=n("./node_modules/core-js/internals/symbol-registry-detection.js"),u=a("string-to-symbol-registry"),c=a("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=o(e);if(i(u,t))return u[t];var n=s("Symbol")(t);return u[t]=n,c[n]=t,n}})},"./node_modules/core-js/modules/es.symbol.iterator.js":function(e,t,n){"use strict";n("./node_modules/core-js/internals/well-known-symbol-define.js")("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(e,t,n){"use strict";n("./node_modules/core-js/modules/es.symbol.constructor.js"),n("./node_modules/core-js/modules/es.symbol.for.js"),n("./node_modules/core-js/modules/es.symbol.key-for.js"),n("./node_modules/core-js/modules/es.json.stringify.js"),n("./node_modules/core-js/modules/es.object.get-own-property-symbols.js")},"./node_modules/core-js/modules/es.symbol.key-for.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/has-own-property.js"),i=n("./node_modules/core-js/internals/is-symbol.js"),o=n("./node_modules/core-js/internals/try-to-string.js"),a=n("./node_modules/core-js/internals/shared.js"),l=n("./node_modules/core-js/internals/symbol-registry-detection.js"),u=a("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!i(e))throw new TypeError(o(e)+" is not a symbol");if(s(u,e))return u[e]}})},"./node_modules/core-js/modules/esnext.iterator.constructor.js":function(e,t,n){"use strict";n("./node_modules/core-js/modules/es.iterator.constructor.js")},"./node_modules/core-js/modules/esnext.iterator.for-each.js":function(e,t,n){"use strict";n("./node_modules/core-js/modules/es.iterator.for-each.js")},"./node_modules/core-js/modules/esnext.iterator.map.js":function(e,t,n){"use strict";n("./node_modules/core-js/modules/es.iterator.map.js")},"./node_modules/core-js/modules/esnext.set.add-all.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/a-set.js"),i=n("./node_modules/core-js/internals/set-helpers.js").add;r({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var e=s(this),t=0,n=arguments.length;t<n;t++)i(e,arguments[t]);return e}})},"./node_modules/core-js/modules/esnext.set.delete-all.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/a-set.js"),i=n("./node_modules/core-js/internals/set-helpers.js").remove;r({target:"Set",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=s(this),n=!0,r=0,o=arguments.length;r<o;r++)e=i(t,arguments[r]),n=n&&e;return!!n}})},"./node_modules/core-js/modules/esnext.set.difference.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/function-call.js"),i=n("./node_modules/core-js/internals/to-set-like.js"),o=n("./node_modules/core-js/internals/set-difference.js");r({target:"Set",proto:!0,real:!0,forced:!0},{difference:function(e){return s(o,this,i(e))}})},"./node_modules/core-js/modules/esnext.set.every.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/function-bind-context.js"),i=n("./node_modules/core-js/internals/a-set.js"),o=n("./node_modules/core-js/internals/set-iterate.js");r({target:"Set",proto:!0,real:!0,forced:!0},{every:function(e){var t=i(this),n=s(e,arguments.length>1?arguments[1]:void 0);return!1!==o(t,function(e){if(!n(e,e,t))return!1},!0)}})},"./node_modules/core-js/modules/esnext.set.filter.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/function-bind-context.js"),i=n("./node_modules/core-js/internals/a-set.js"),o=n("./node_modules/core-js/internals/set-helpers.js"),a=n("./node_modules/core-js/internals/set-iterate.js"),l=o.Set,u=o.add;r({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(e){var t=i(this),n=s(e,arguments.length>1?arguments[1]:void 0),r=new l;return a(t,function(e){n(e,e,t)&&u(r,e)}),r}})},"./node_modules/core-js/modules/esnext.set.find.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/function-bind-context.js"),i=n("./node_modules/core-js/internals/a-set.js"),o=n("./node_modules/core-js/internals/set-iterate.js");r({target:"Set",proto:!0,real:!0,forced:!0},{find:function(e){var t=i(this),n=s(e,arguments.length>1?arguments[1]:void 0),r=o(t,function(e){if(n(e,e,t))return{value:e}},!0);return r&&r.value}})},"./node_modules/core-js/modules/esnext.set.intersection.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/function-call.js"),i=n("./node_modules/core-js/internals/to-set-like.js"),o=n("./node_modules/core-js/internals/set-intersection.js");r({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(e){return s(o,this,i(e))}})},"./node_modules/core-js/modules/esnext.set.is-disjoint-from.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/function-call.js"),i=n("./node_modules/core-js/internals/to-set-like.js"),o=n("./node_modules/core-js/internals/set-is-disjoint-from.js");r({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(e){return s(o,this,i(e))}})},"./node_modules/core-js/modules/esnext.set.is-subset-of.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/function-call.js"),i=n("./node_modules/core-js/internals/to-set-like.js"),o=n("./node_modules/core-js/internals/set-is-subset-of.js");r({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(e){return s(o,this,i(e))}})},"./node_modules/core-js/modules/esnext.set.is-superset-of.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/function-call.js"),i=n("./node_modules/core-js/internals/to-set-like.js"),o=n("./node_modules/core-js/internals/set-is-superset-of.js");r({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(e){return s(o,this,i(e))}})},"./node_modules/core-js/modules/esnext.set.join.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/function-uncurry-this.js"),i=n("./node_modules/core-js/internals/a-set.js"),o=n("./node_modules/core-js/internals/set-iterate.js"),a=n("./node_modules/core-js/internals/to-string.js"),l=s([].join),u=s([].push);r({target:"Set",proto:!0,real:!0,forced:!0},{join:function(e){var t=i(this),n=void 0===e?",":a(e),r=[];return o(t,function(e){u(r,e)}),l(r,n)}})},"./node_modules/core-js/modules/esnext.set.map.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/function-bind-context.js"),i=n("./node_modules/core-js/internals/a-set.js"),o=n("./node_modules/core-js/internals/set-helpers.js"),a=n("./node_modules/core-js/internals/set-iterate.js"),l=o.Set,u=o.add;r({target:"Set",proto:!0,real:!0,forced:!0},{map:function(e){var t=i(this),n=s(e,arguments.length>1?arguments[1]:void 0),r=new l;return a(t,function(e){u(r,n(e,e,t))}),r}})},"./node_modules/core-js/modules/esnext.set.reduce.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/a-callable.js"),i=n("./node_modules/core-js/internals/a-set.js"),o=n("./node_modules/core-js/internals/set-iterate.js"),a=TypeError;r({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=i(this),n=arguments.length<2,r=n?void 0:arguments[1];if(s(e),o(t,function(s){n?(n=!1,r=s):r=e(r,s,s,t)}),n)throw new a("Reduce of empty set with no initial value");return r}})},"./node_modules/core-js/modules/esnext.set.some.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/function-bind-context.js"),i=n("./node_modules/core-js/internals/a-set.js"),o=n("./node_modules/core-js/internals/set-iterate.js");r({target:"Set",proto:!0,real:!0,forced:!0},{some:function(e){var t=i(this),n=s(e,arguments.length>1?arguments[1]:void 0);return!0===o(t,function(e){if(n(e,e,t))return!0},!0)}})},"./node_modules/core-js/modules/esnext.set.symmetric-difference.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/function-call.js"),i=n("./node_modules/core-js/internals/to-set-like.js"),o=n("./node_modules/core-js/internals/set-symmetric-difference.js");r({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(e){return s(o,this,i(e))}})},"./node_modules/core-js/modules/esnext.set.union.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/function-call.js"),i=n("./node_modules/core-js/internals/to-set-like.js"),o=n("./node_modules/core-js/internals/set-union.js");r({target:"Set",proto:!0,real:!0,forced:!0},{union:function(e){return s(o,this,i(e))}})},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/global-this.js"),s=n("./node_modules/core-js/internals/dom-iterables.js"),i=n("./node_modules/core-js/internals/dom-token-list-prototype.js"),o=n("./node_modules/core-js/internals/array-for-each.js"),a=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),l=function(e){if(e&&e.forEach!==o)try{a(e,"forEach",o)}catch(t){e.forEach=o}};for(var u in s)s[u]&&l(r[u]&&r[u].prototype);l(i)},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/global-this.js"),s=n("./node_modules/core-js/internals/dom-iterables.js"),i=n("./node_modules/core-js/internals/dom-token-list-prototype.js"),o=n("./node_modules/core-js/modules/es.array.iterator.js"),a=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),l=n("./node_modules/core-js/internals/set-to-string-tag.js"),u=n("./node_modules/core-js/internals/well-known-symbol.js")("iterator"),c=o.values,h=function(e,t){if(e){if(e[u]!==c)try{a(e,u,c)}catch(t){e[u]=c}if(l(e,t,!0),s[t])for(var n in o)if(e[n]!==o[n])try{a(e,n,o[n])}catch(t){e[n]=o[n]}}};for(var d in s)h(r[d]&&r[d].prototype,d);h(i,"DOMTokenList")},"./node_modules/core-js/modules/web.set-interval.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/global-this.js"),i=n("./node_modules/core-js/internals/schedulers-fix.js")(s.setInterval,!0);r({global:!0,bind:!0,forced:s.setInterval!==i},{setInterval:i})},"./node_modules/core-js/modules/web.set-timeout.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/global-this.js"),i=n("./node_modules/core-js/internals/schedulers-fix.js")(s.setTimeout,!0);r({global:!0,bind:!0,forced:s.setTimeout!==i},{setTimeout:i})},"./node_modules/core-js/modules/web.timers.js":function(e,t,n){"use strict";n("./node_modules/core-js/modules/web.set-interval.js"),n("./node_modules/core-js/modules/web.set-timeout.js")},"./node_modules/dompurify/dist/purify.es.mjs":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ne}});const{entries:r,setPrototypeOf:s,isFrozen:i,getPrototypeOf:o,getOwnPropertyDescriptor:a}=Object;let{freeze:l,seal:u,create:c}=Object,{apply:h,construct:d}="undefined"!=typeof Reflect&&Reflect;l||(l=function(e){return e}),u||(u=function(e){return e}),h||(h=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),s=2;s<n;s++)r[s-2]=arguments[s];return e.apply(t,r)}),d||(d=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const f=k(Array.prototype.forEach),p=k(Array.prototype.lastIndexOf),m=k(Array.prototype.pop),g=k(Array.prototype.push),v=k(Array.prototype.splice),y=k(String.prototype.toLowerCase),b=k(String.prototype.toString),_=k(String.prototype.match),j=k(String.prototype.replace),w=k(String.prototype.indexOf),x=k(String.prototype.trim),A=k(Object.prototype.hasOwnProperty),S=k(RegExp.prototype.test),N=(L=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d(L,t)});var L;function k(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return h(e,t,r)}}function P(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;s&&s(e,null);let r=t.length;for(;r--;){let s=t[r];if("string"==typeof s){const e=n(s);e!==s&&(i(t)||(t[r]=e),s=e)}e[s]=!0}return e}function E(e){for(let t=0;t<e.length;t++)A(e,t)||(e[t]=null);return e}function C(e){const t=c(null);for(const[n,s]of r(e))A(e,n)&&(Array.isArray(s)?t[n]=E(s):s&&"object"==typeof s&&s.constructor===Object?t[n]=C(s):t[n]=s);return t}function O(e,t){for(;null!==e;){const n=a(e,t);if(n){if(n.get)return k(n.get);if("function"==typeof n.value)return k(n.value)}e=o(e)}return function(){return null}}const T=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),I=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),M=l(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),R=l(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),F=l(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),D=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),B=l(["#text"]),z=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),U=l(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),q=l(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),V=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),H=u(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=u(/<%[\w\W]*|[\w\W]*%>/gm),G=u(/\$\{[\w\W]*/gm),Y=u(/^data-[\-\w.\u00B7-\uFFFF]+$/),X=u(/^aria-[\-\w]+$/),Z=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$=u(/^(?:\w+script|data):/i),K=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),J=u(/^html$/i),Q=u(/^[a-z][.\w]*(-[.\w]+)+$/i);var ee=Object.freeze({__proto__:null,ARIA_ATTR:X,ATTR_WHITESPACE:K,CUSTOM_ELEMENT:Q,DATA_ATTR:Y,DOCTYPE_NAME:J,ERB_EXPR:W,IS_ALLOWED_URI:Z,IS_SCRIPT_OR_DATA:$,MUSTACHE_EXPR:H,TMPLIT_EXPR:G});const te=function(){return"undefined"==typeof window?null:window};var ne=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te();const n=t=>e(t);if(n.version="3.3.0",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:s}=t;const i=s,o=i.currentScript,{DocumentFragment:a,HTMLTemplateElement:u,Node:h,Element:d,NodeFilter:L,NamedNodeMap:k=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:E,DOMParser:H,trustedTypes:W}=t,G=d.prototype,Y=O(G,"cloneNode"),X=O(G,"remove"),$=O(G,"nextSibling"),K=O(G,"childNodes"),Q=O(G,"parentNode");if("function"==typeof u){const e=s.createElement("template");e.content&&e.content.ownerDocument&&(s=e.content.ownerDocument)}let ne,re="";const{implementation:se,createNodeIterator:ie,createDocumentFragment:oe,getElementsByTagName:ae}=s,{importNode:le}=i;let ue={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof r&&"function"==typeof Q&&se&&void 0!==se.createHTMLDocument;const{MUSTACHE_EXPR:ce,ERB_EXPR:he,TMPLIT_EXPR:de,DATA_ATTR:fe,ARIA_ATTR:pe,IS_SCRIPT_OR_DATA:me,ATTR_WHITESPACE:ge,CUSTOM_ELEMENT:ve}=ee;let{IS_ALLOWED_URI:ye}=ee,be=null;const _e=P({},[...T,...I,...M,...F,...B]);let je=null;const we=P({},[...z,...U,...q,...V]);let xe=Object.seal(c(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ae=null,Se=null;const Ne=Object.seal(c(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Le=!0,ke=!0,Pe=!1,Ee=!0,Ce=!1,Oe=!0,Te=!1,Ie=!1,Me=!1,Re=!1,Fe=!1,De=!1,Be=!0,ze=!1,Ue=!0,qe=!1,Ve={},He=null;const We=P({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ge=null;const Ye=P({},["audio","video","img","source","image","track"]);let Xe=null;const Ze=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),$e="http://www.w3.org/1998/Math/MathML",Ke="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml";let Qe=Je,et=!1,tt=null;const nt=P({},[$e,Ke,Je],b);let rt=P({},["mi","mo","mn","ms","mtext"]),st=P({},["annotation-xml"]);const it=P({},["title","style","font","a","script"]);let ot=null;const at=["application/xhtml+xml","text/html"];let lt=null,ut=null;const ct=s.createElement("form"),ht=function(e){return e instanceof RegExp||e instanceof Function},dt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ut||ut!==e){if(e&&"object"==typeof e||(e={}),e=C(e),ot=-1===at.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,lt="application/xhtml+xml"===ot?b:y,be=A(e,"ALLOWED_TAGS")?P({},e.ALLOWED_TAGS,lt):_e,je=A(e,"ALLOWED_ATTR")?P({},e.ALLOWED_ATTR,lt):we,tt=A(e,"ALLOWED_NAMESPACES")?P({},e.ALLOWED_NAMESPACES,b):nt,Xe=A(e,"ADD_URI_SAFE_ATTR")?P(C(Ze),e.ADD_URI_SAFE_ATTR,lt):Ze,Ge=A(e,"ADD_DATA_URI_TAGS")?P(C(Ye),e.ADD_DATA_URI_TAGS,lt):Ye,He=A(e,"FORBID_CONTENTS")?P({},e.FORBID_CONTENTS,lt):We,Ae=A(e,"FORBID_TAGS")?P({},e.FORBID_TAGS,lt):C({}),Se=A(e,"FORBID_ATTR")?P({},e.FORBID_ATTR,lt):C({}),Ve=!!A(e,"USE_PROFILES")&&e.USE_PROFILES,Le=!1!==e.ALLOW_ARIA_ATTR,ke=!1!==e.ALLOW_DATA_ATTR,Pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ee=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ce=e.SAFE_FOR_TEMPLATES||!1,Oe=!1!==e.SAFE_FOR_XML,Te=e.WHOLE_DOCUMENT||!1,Re=e.RETURN_DOM||!1,Fe=e.RETURN_DOM_FRAGMENT||!1,De=e.RETURN_TRUSTED_TYPE||!1,Me=e.FORCE_BODY||!1,Be=!1!==e.SANITIZE_DOM,ze=e.SANITIZE_NAMED_PROPS||!1,Ue=!1!==e.KEEP_CONTENT,qe=e.IN_PLACE||!1,ye=e.ALLOWED_URI_REGEXP||Z,Qe=e.NAMESPACE||Je,rt=e.MATHML_TEXT_INTEGRATION_POINTS||rt,st=e.HTML_INTEGRATION_POINTS||st,xe=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ht(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(xe.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ht(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(xe.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(xe.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ce&&(ke=!1),Fe&&(Re=!0),Ve&&(be=P({},B),je=[],!0===Ve.html&&(P(be,T),P(je,z)),!0===Ve.svg&&(P(be,I),P(je,U),P(je,V)),!0===Ve.svgFilters&&(P(be,M),P(je,U),P(je,V)),!0===Ve.mathMl&&(P(be,F),P(je,q),P(je,V))),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?Ne.tagCheck=e.ADD_TAGS:(be===_e&&(be=C(be)),P(be,e.ADD_TAGS,lt))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?Ne.attributeCheck=e.ADD_ATTR:(je===we&&(je=C(je)),P(je,e.ADD_ATTR,lt))),e.ADD_URI_SAFE_ATTR&&P(Xe,e.ADD_URI_SAFE_ATTR,lt),e.FORBID_CONTENTS&&(He===We&&(He=C(He)),P(He,e.FORBID_CONTENTS,lt)),Ue&&(be["#text"]=!0),Te&&P(be,["html","head","body"]),be.table&&(P(be,["tbody"]),delete Ae.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw N('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw N('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ne=e.TRUSTED_TYPES_POLICY,re=ne.createHTML("")}else void 0===ne&&(ne=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const s="dompurify"+(n?"#"+n:"");try{return e.createPolicy(s,{createHTML(e){return e},createScriptURL(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+s+" could not be created."),null}}(W,o)),null!==ne&&"string"==typeof re&&(re=ne.createHTML(""));l&&l(e),ut=e}},ft=P({},[...I,...M,...R]),pt=P({},[...F,...D]),mt=function(e){g(n.removed,{element:e});try{Q(e).removeChild(e)}catch(t){X(e)}},gt=function(e,t){try{g(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){g(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Re||Fe)try{mt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},vt=function(e){let t=null,n=null;if(Me)e="<remove></remove>"+e;else{const t=_(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ot&&Qe===Je&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=ne?ne.createHTML(e):e;if(Qe===Je)try{t=(new H).parseFromString(r,ot)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(Qe,"template",null);try{t.documentElement.innerHTML=et?re:r}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(s.createTextNode(n),i.childNodes[0]||null),Qe===Je?ae.call(t,Te?"html":"body")[0]:Te?t.documentElement:i},yt=function(e){return ie.call(e.ownerDocument||e,e,L.SHOW_ELEMENT|L.SHOW_COMMENT|L.SHOW_TEXT|L.SHOW_PROCESSING_INSTRUCTION|L.SHOW_CDATA_SECTION,null)},bt=function(e){return e instanceof E&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof k)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},_t=function(e){return"function"==typeof h&&e instanceof h};function jt(e,t,r){f(e,e=>{e.call(n,t,r,ut)})}const wt=function(e){let t=null;if(jt(ue.beforeSanitizeElements,e,null),bt(e))return mt(e),!0;const r=lt(e.nodeName);if(jt(ue.uponSanitizeElement,e,{tagName:r,allowedTags:be}),Oe&&e.hasChildNodes()&&!_t(e.firstElementChild)&&S(/<[/\w!]/g,e.innerHTML)&&S(/<[/\w!]/g,e.textContent))return mt(e),!0;if(7===e.nodeType)return mt(e),!0;if(Oe&&8===e.nodeType&&S(/<[/\w]/g,e.data))return mt(e),!0;if(!(Ne.tagCheck instanceof Function&&Ne.tagCheck(r))&&(!be[r]||Ae[r])){if(!Ae[r]&&At(r)){if(xe.tagNameCheck instanceof RegExp&&S(xe.tagNameCheck,r))return!1;if(xe.tagNameCheck instanceof Function&&xe.tagNameCheck(r))return!1}if(Ue&&!He[r]){const t=Q(e)||e.parentNode,n=K(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const s=Y(n[r],!0);s.__removalCount=(e.__removalCount||0)+1,t.insertBefore(s,$(e))}}return mt(e),!0}return e instanceof d&&!function(e){let t=Q(e);t&&t.tagName||(t={namespaceURI:Qe,tagName:"template"});const n=y(e.tagName),r=y(t.tagName);return!!tt[e.namespaceURI]&&(e.namespaceURI===Ke?t.namespaceURI===Je?"svg"===n:t.namespaceURI===$e?"svg"===n&&("annotation-xml"===r||rt[r]):Boolean(ft[n]):e.namespaceURI===$e?t.namespaceURI===Je?"math"===n:t.namespaceURI===Ke?"math"===n&&st[r]:Boolean(pt[n]):e.namespaceURI===Je?!(t.namespaceURI===Ke&&!st[r])&&!(t.namespaceURI===$e&&!rt[r])&&!pt[n]&&(it[n]||!ft[n]):!("application/xhtml+xml"!==ot||!tt[e.namespaceURI]))}(e)?(mt(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!S(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ce&&3===e.nodeType&&(t=e.textContent,f([ce,he,de],e=>{t=j(t,e," ")}),e.textContent!==t&&(g(n.removed,{element:e.cloneNode()}),e.textContent=t)),jt(ue.afterSanitizeElements,e,null),!1):(mt(e),!0)},xt=function(e,t,n){if(Be&&("id"===t||"name"===t)&&(n in s||n in ct))return!1;if(ke&&!Se[t]&&S(fe,t));else if(Le&&S(pe,t));else if(Ne.attributeCheck instanceof Function&&Ne.attributeCheck(t,e));else if(!je[t]||Se[t]){if(!(At(e)&&(xe.tagNameCheck instanceof RegExp&&S(xe.tagNameCheck,e)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(e))&&(xe.attributeNameCheck instanceof RegExp&&S(xe.attributeNameCheck,t)||xe.attributeNameCheck instanceof Function&&xe.attributeNameCheck(t,e))||"is"===t&&xe.allowCustomizedBuiltInElements&&(xe.tagNameCheck instanceof RegExp&&S(xe.tagNameCheck,n)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(n))))return!1}else if(Xe[t]);else if(S(ye,j(n,ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==w(n,"data:")||!Ge[e])if(Pe&&!S(me,j(n,ge,"")));else if(n)return!1;return!0},At=function(e){return"annotation-xml"!==e&&_(e,ve)},St=function(e){jt(ue.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||bt(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:je,forceKeepAttr:void 0};let s=t.length;for(;s--;){const i=t[s],{name:o,namespaceURI:a,value:l}=i,u=lt(o),c=l;let h="value"===o?c:x(c);if(r.attrName=u,r.attrValue=h,r.keepAttr=!0,r.forceKeepAttr=void 0,jt(ue.uponSanitizeAttribute,e,r),h=r.attrValue,!ze||"id"!==u&&"name"!==u||(gt(o,e),h="user-content-"+h),Oe&&S(/((--!?|])>)|<\/(style|title|textarea)/i,h)){gt(o,e);continue}if("attributename"===u&&_(h,"href")){gt(o,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){gt(o,e);continue}if(!Ee&&S(/\/>/i,h)){gt(o,e);continue}Ce&&f([ce,he,de],e=>{h=j(h,e," ")});const d=lt(e.nodeName);if(xt(d,u,h)){if(ne&&"object"==typeof W&&"function"==typeof W.getAttributeType)if(a);else switch(W.getAttributeType(d,u)){case"TrustedHTML":h=ne.createHTML(h);break;case"TrustedScriptURL":h=ne.createScriptURL(h)}if(h!==c)try{a?e.setAttributeNS(a,o,h):e.setAttribute(o,h),bt(e)?mt(e):m(n.removed)}catch(t){gt(o,e)}}else gt(o,e)}jt(ue.afterSanitizeAttributes,e,null)},Nt=function e(t){let n=null;const r=yt(t);for(jt(ue.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)jt(ue.uponSanitizeShadowNode,n,null),wt(n),St(n),n.content instanceof a&&e(n.content);jt(ue.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,s=null,o=null,l=null;if(et=!e,et&&(e="\x3c!--\x3e"),"string"!=typeof e&&!_t(e)){if("function"!=typeof e.toString)throw N("toString is not a function");if("string"!=typeof(e=e.toString()))throw N("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Ie||dt(t),n.removed=[],"string"==typeof e&&(qe=!1),qe){if(e.nodeName){const t=lt(e.nodeName);if(!be[t]||Ae[t])throw N("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof h)r=vt("\x3c!----\x3e"),s=r.ownerDocument.importNode(e,!0),1===s.nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?r=s:r.appendChild(s);else{if(!Re&&!Ce&&!Te&&-1===e.indexOf("<"))return ne&&De?ne.createHTML(e):e;if(r=vt(e),!r)return Re?null:De?re:""}r&&Me&&mt(r.firstChild);const u=yt(qe?e:r);for(;o=u.nextNode();)wt(o),St(o),o.content instanceof a&&Nt(o.content);if(qe)return e;if(Re){if(Fe)for(l=oe.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(je.shadowroot||je.shadowrootmode)&&(l=le.call(i,l,!0)),l}let c=Te?r.outerHTML:r.innerHTML;return Te&&be["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&S(J,r.ownerDocument.doctype.name)&&(c="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+c),Ce&&f([ce,he,de],e=>{c=j(c,e," ")}),ne&&De?ne.createHTML(c):c},n.setConfig=function(){dt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ie=!0},n.clearConfig=function(){ut=null,Ie=!1},n.isValidAttribute=function(e,t,n){ut||dt({});const r=lt(e),s=lt(t);return xt(r,s,n)},n.addHook=function(e,t){"function"==typeof t&&g(ue[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=p(ue[e],t);return-1===n?void 0:v(ue[e],n,1)[0]}return m(ue[e])},n.removeHooks=function(e){ue[e]=[]},n.removeAllHooks=function(){ue={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}()},"./node_modules/fast-png/lib-esm/PngDecoder.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var r=n("./node_modules/iobuffer/lib-esm/IOBuffer.js"),s=n("./node_modules/pako/dist/pako.esm.mjs"),i=n("./node_modules/fast-png/lib-esm/helpers/crc.js"),o=n("./node_modules/fast-png/lib-esm/helpers/decodeInterlaceAdam7.js"),a=n("./node_modules/fast-png/lib-esm/helpers/decodeInterlaceNull.js"),l=n("./node_modules/fast-png/lib-esm/helpers/signature.js"),u=n("./node_modules/fast-png/lib-esm/helpers/text.js"),c=n("./node_modules/fast-png/lib-esm/internalTypes.js");class h extends r.IOBuffer{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(e,t={}){super(e);const{checkCrc:n=!1}=t;this._checkCrc=n,this._inflator=new s.Inflate,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=c.CompressionMethod.UNKNOWN,this._filterMethod=c.FilterMethod.UNKNOWN,this._interlaceMethod=c.InterlaceMethod.UNKNOWN,this._colorType=c.ColorType.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for((0,l.checkSignature)(this);!this._end;){const e=this.readUint32(),t=this.readChars(4);this.decodeChunk(e,t)}return this.decodeImage(),this._png}decodeApng(){for((0,l.checkSignature)(this);!this._end;){const e=this.readUint32(),t=this.readChars(4);this.decodeApngChunk(e,t)}return this.decodeApngImage(),this._apng}decodeChunk(e,t){const n=this.offset;switch(t){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(e);break;case"IDAT":this.decodeIDAT(e);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(e);break;case"iCCP":this.decodeiCCP(e);break;case u.textChunkName:(0,u.decodetEXt)(this._png.text,this,e);break;case"pHYs":this.decodepHYs();break;default:this.skip(e)}if(this.offset-n!==e)throw new Error(`Length mismatch while decoding chunk ${t}`);this._checkCrc?(0,i.checkCrc)(this,e+4,t):this.skip(4)}decodeApngChunk(e,t){const n=this.offset;switch("fdAT"!==t&&"IDAT"!==t&&this._writingDataChunks&&this.pushDataToFrame(),t){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(e);break;default:this.decodeChunk(e,t),this.offset=n+e}if(this.offset-n!==e)throw new Error(`Length mismatch while decoding chunk ${t}`);this._checkCrc?(0,i.checkCrc)(this,e+4,t):this.skip(4)}decodeIHDR(){const e=this._png;e.width=this.readUint32(),e.height=this.readUint32(),e.depth=function(e){if(1!==e&&2!==e&&4!==e&&8!==e&&16!==e)throw new Error(`invalid bit depth: ${e}`);return e}(this.readUint8());const t=this.readUint8();let n;switch(this._colorType=t,t){case c.ColorType.GREYSCALE:n=1;break;case c.ColorType.TRUECOLOUR:n=3;break;case c.ColorType.INDEXED_COLOUR:n=1;break;case c.ColorType.GREYSCALE_ALPHA:n=2;break;case c.ColorType.TRUECOLOUR_ALPHA:n=4;break;case c.ColorType.UNKNOWN:default:throw new Error(`Unknown color type: ${t}`)}if(this._png.channels=n,this._compressionMethod=this.readUint8(),this._compressionMethod!==c.CompressionMethod.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const e={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(e)}decodePLTE(e){if(e%3!=0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${e}`);const t=e/3;this._hasPalette=!0;const n=[];this._palette=n;for(let e=0;e<t;e++)n.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(e){this._writingDataChunks=!0;const t=e,n=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,n,t)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodeFDAT(e){this._writingDataChunks=!0;let t=e,n=this.offset+this.byteOffset;if(n+=4,t-=4,this._inflator.push(new Uint8Array(this.buffer,n,t)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodetRNS(e){switch(this._colorType){case c.ColorType.GREYSCALE:case c.ColorType.TRUECOLOUR:if(e%2!=0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${e}`);if(e/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${e/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(e/2);for(let t=0;t<e/2;t++)this._transparency[t]=this.readUint16();break;case c.ColorType.INDEXED_COLOUR:{if(e>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${e} vs ${this._palette.length})`);let t=0;for(;t<e;t++){const e=this.readByte();this._palette[t].push(e)}for(;t<this._palette.length;t++)this._palette[t].push(255);break}case c.ColorType.UNKNOWN:case c.ColorType.GREYSCALE_ALPHA:case c.ColorType.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(e){const t=(0,u.readKeyword)(this),n=this.readUint8();if(n!==c.CompressionMethod.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${n}`);const r=this.readBytes(e-t.length-2);this._png.iccEmbeddedProfile={name:t,profile:(0,s.inflate)(r)}}decodepHYs(){const e=this.readUint32(),t=this.readUint32(),n=this.readByte();this._png.resolution={x:e,y:t,unit:n}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let e=0;e<this._numberOfFrames;e++){const t={sequenceNumber:this._frames[e].sequenceNumber,delayNumber:this._frames[e].delayNumber,delayDenominator:this._frames[e].delayDenominator,data:8===this._apng.depth?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},n=this._frames.at(e);if(n){if(n.data=(0,a.decodeInterlaceNull)({data:n.data,width:n.width,height:n.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),0===e||0===n.xOffset&&0===n.yOffset&&n.width===this._png.width&&n.height===this._png.height)t.data=n.data;else{const r=this._apng.frames.at(e-1);this.disposeFrame(n,r,t),this.addFrameDataToCanvas(t,n)}this._apng.frames.push(t)}}return this._apng}disposeFrame(e,t,n){switch(e.disposeOp){case c.DisposeOpType.NONE:break;case c.DisposeOpType.BACKGROUND:for(let t=0;t<this._png.height;t++)for(let r=0;r<this._png.width;r++){const s=(t*e.width+r)*this._png.channels;for(let e=0;e<this._png.channels;e++)n.data[s+e]=0}break;case c.DisposeOpType.PREVIOUS:n.data.set(t.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(e,t){const n=1<<this._png.depth,r=(e,n)=>({index:((e+t.yOffset)*this._png.width+t.xOffset+n)*this._png.channels,frameIndex:(e*t.width+n)*this._png.channels});switch(t.blendOp){case c.BlendOpType.SOURCE:for(let n=0;n<t.height;n++)for(let s=0;s<t.width;s++){const{index:i,frameIndex:o}=r(n,s);for(let n=0;n<this._png.channels;n++)e.data[i+n]=t.data[o+n]}break;case c.BlendOpType.OVER:for(let s=0;s<t.height;s++)for(let i=0;i<t.width;i++){const{index:o,frameIndex:a}=r(s,i);for(let r=0;r<this._png.channels;r++){const s=t.data[a+this._png.channels-1]/n,i=r%(this._png.channels-1)==0?1:t.data[a+r],l=Math.floor(s*i+(1-s)*e.data[o+r]);e.data[o+r]+=l}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const e=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==c.FilterMethod.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===c.InterlaceMethod.NO_INTERLACE)this._png.data=(0,a.decodeInterlaceNull)({data:e,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else{if(this._interlaceMethod!==c.InterlaceMethod.ADAM7)throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._png.data=(0,o.decodeInterlaceAdam7)({data:e,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth})}this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const e=this._inflator.result,t=this._frames.at(-1);t?t.data=e:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:c.DisposeOpType.NONE,blendOp:c.BlendOpType.SOURCE,data:e}),this._inflator=new s.Inflate,this._writingDataChunks=!1}}},"./node_modules/fast-png/lib-esm/PngEncoder.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n("./node_modules/iobuffer/lib-esm/IOBuffer.js"),s=n("./node_modules/pako/dist/pako.esm.mjs"),i=n("./node_modules/fast-png/lib-esm/helpers/crc.js"),o=n("./node_modules/fast-png/lib-esm/helpers/signature.js"),a=n("./node_modules/fast-png/lib-esm/helpers/text.js"),l=n("./node_modules/fast-png/lib-esm/internalTypes.js");const u={level:3};class c extends r.IOBuffer{_png;_zlibOptions;_colorType;_interlaceMethod;constructor(e,t={}){super(),this._colorType=l.ColorType.UNKNOWN,this._zlibOptions={...u,...t.zlib},this._png=this._checkData(e),this._interlaceMethod=("Adam7"===t.interlace?l.InterlaceMethod.ADAM7:l.InterlaceMethod.NO_INTERLACE)??l.InterlaceMethod.NO_INTERLACE,this.setBigEndian()}encode(){if((0,o.writeSignature)(this),this.encodeIHDR(),this._png.palette&&(this.encodePLTE(),4===this._png.palette[0].length&&this.encodeTRNS()),this.encodeData(),this._png.text)for(const[e,t]of Object.entries(this._png.text))(0,a.encodetEXt)(this,e,t);return this.encodeIEND(),this.toArray()}encodeIHDR(){this.writeUint32(13),this.writeChars("IHDR"),this.writeUint32(this._png.width),this.writeUint32(this._png.height),this.writeByte(this._png.depth),this.writeByte(this._colorType),this.writeByte(l.CompressionMethod.DEFLATE),this.writeByte(l.FilterMethod.ADAPTIVE),this.writeByte(this._interlaceMethod),(0,i.writeCrc)(this,17)}encodeIEND(){this.writeUint32(0),this.writeChars("IEND"),(0,i.writeCrc)(this,4)}encodePLTE(){const e=3*this._png.palette?.length;this.writeUint32(e),this.writeChars("PLTE");for(const e of this._png.palette)this.writeByte(e[0]),this.writeByte(e[1]),this.writeByte(e[2]);(0,i.writeCrc)(this,4+e)}encodeTRNS(){const e=this._png.palette.filter(e=>255!==e.at(-1));this.writeUint32(e.length),this.writeChars("tRNS");for(const t of e)this.writeByte(t.at(-1));(0,i.writeCrc)(this,4+e.length)}encodeIDAT(e){this.writeUint32(e.length),this.writeChars("IDAT"),this.writeBytes(e),(0,i.writeCrc)(this,e.length+4)}encodeData(){const{width:e,height:t,channels:n,depth:i,data:o}=this._png,a=i<=8?Math.ceil(e*i/8)*n:Math.ceil(e*i/8*n/2),u=(new r.IOBuffer).setBigEndian();let c=0;if(this._interlaceMethod===l.InterlaceMethod.NO_INTERLACE)for(let e=0;e<t;e++)u.writeByte(0),c=16===i?f(o,u,a,c):d(o,u,a,c);else this._interlaceMethod===l.InterlaceMethod.ADAM7&&(c=function(e,t,n,r){const s=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],{width:i,height:o,channels:a,depth:l}=e;let u=0;u=16===l?a*l/8/2:a*l/8;for(let e=0;e<7;e++){const r=s[e],a=Math.floor((i-r.x+r.xStep-1)/r.xStep),c=Math.floor((o-r.y+r.yStep-1)/r.yStep);if(a<=0||c<=0)continue;const h=a*u;for(let e=0;e<c;e++){const s=r.y+e*r.yStep,c=l<=8?new Uint8Array(h):new Uint16Array(h);let d=0;for(let e=0;e<a;e++){const n=r.x+e*r.xStep;if(n<i&&s<o){const e=(s*i+n)*u;for(let n=0;n<u;n++)c[d++]=t[e+n]}}if(n.writeByte(0),8===l)n.writeBytes(c);else if(16===l)for(const e of c)n.writeByte(e>>8&255),n.writeByte(255&e)}}return r}(this._png,o,u,c));const h=u.toArray(),p=(0,s.deflate)(h,this._zlibOptions);this.encodeIDAT(p)}_checkData(e){const{colorType:t,channels:n,depth:r}=function(e,t){const{channels:n=4,depth:r=8}=e;if(4!==n&&3!==n&&2!==n&&1!==n)throw new RangeError(`unsupported number of channels: ${n}`);const s={channels:n,depth:r,colorType:l.ColorType.UNKNOWN};switch(n){case 4:s.colorType=l.ColorType.TRUECOLOUR_ALPHA;break;case 3:s.colorType=l.ColorType.TRUECOLOUR;break;case 1:s.colorType=t?l.ColorType.INDEXED_COLOUR:l.ColorType.GREYSCALE;break;case 2:s.colorType=l.ColorType.GREYSCALE_ALPHA;break;default:throw new Error("unsupported number of channels")}return s}(e,e.palette),s={width:h(e.width,"width"),height:h(e.height,"height"),channels:n,data:e.data,depth:r,text:e.text,palette:e.palette};this._colorType=t;const i=r<8?Math.ceil(s.width*r/8)*s.height*n:s.width*s.height*n;if(s.data.length!==i)throw new RangeError(`wrong data size. Found ${s.data.length}, expected ${i}`);return s}}function h(e,t){if(Number.isInteger(e)&&e>0)return e;throw new TypeError(`${t} must be a positive integer`)}function d(e,t,n,r){for(let s=0;s<n;s++)t.writeByte(e[r++]);return r}function f(e,t,n,r){for(let s=0;s<n;s++)t.writeUint16(e[r++]);return r}},"./node_modules/fast-png/lib-esm/convertIndexedToRgb.js":function(e,t,n){"use strict";function r(e){const t=e.palette,n=e.depth;if(!t)throw new Error("Color palette is undefined.");!function(e){const t=e.depth<8?Math.ceil(e.width*e.depth/8)*e.height*e.channels:e.width*e.height*e.channels;if(e.data.length!==t)throw new RangeError(`wrong data size. Found ${e.data.length}, expected ${t}`)}(e);const r=e.width*e.height,s=r*t[0].length,i=new Uint8Array(s);let o=0,a=0;const l=new Uint8Array(r);let u=255;switch(n){case 1:u=128;break;case 2:u=192;break;case 4:u=240;break;case 8:u=255;break;default:throw new Error("Incorrect depth value")}for(const t of e.data){let r=u,s=8;for(;r&&(s-=n,l[o++]=(t&r)>>s,r>>=n,o%e.width!==0););}if(e.palette)for(const t of l){const n=e.palette.at(t);if(!n)throw new Error("Incorrect index of palette color");i.set(n,a),a+=n.length}return i}n.r(t),n.d(t,{convertIndexedToRgb:function(){return r}})},"./node_modules/fast-png/lib-esm/helpers/applyUnfilter.js":function(e,t,n){"use strict";n.r(t),n.d(t,{applyUnfilter:function(){return s}});var r=n("./node_modules/fast-png/lib-esm/helpers/unfilter.js");function s(e,t,n,s,i,o){switch(e){case 0:(0,r.unfilterNone)(t,n,i);break;case 1:(0,r.unfilterSub)(t,n,i,o);break;case 2:(0,r.unfilterUp)(t,n,s,i);break;case 3:(0,r.unfilterAverage)(t,n,s,i,o);break;case 4:(0,r.unfilterPaeth)(t,n,s,i,o);break;default:throw new Error(`Unsupported filter: ${e}`)}}},"./node_modules/fast-png/lib-esm/helpers/crc.js":function(e,t,n){"use strict";n.r(t),n.d(t,{checkCrc:function(){return o},writeCrc:function(){return a}});const r=[];for(let e=0;e<256;e++){let t=e;for(let e=0;e<8;e++)1&t?t=3988292384^t>>>1:t>>>=1;r[e]=t}const s=4294967295;function i(e,t){return(function(e,t,n){let s=e;for(let e=0;e<n;e++)s=r[255&(s^t[e])]^s>>>8;return s}(s,e,t)^s)>>>0}function o(e,t,n){const r=e.readUint32(),s=i(new Uint8Array(e.buffer,e.byteOffset+e.offset-t-4,t),t);if(s!==r)throw new Error(`CRC mismatch for chunk ${n}. Expected ${r}, found ${s}`)}function a(e,t){e.writeUint32(i(new Uint8Array(e.buffer,e.byteOffset+e.offset-t,t),t))}},"./node_modules/fast-png/lib-esm/helpers/decodeInterlaceAdam7.js":function(e,t,n){"use strict";n.r(t),n.d(t,{decodeInterlaceAdam7:function(){return o}});var r=n("./node_modules/fast-png/lib-esm/helpers/applyUnfilter.js");const s=new Uint16Array([255]),i=255===new Uint8Array(s.buffer)[0];function o(e){const{data:t,width:n,height:s,channels:o,depth:l}=e,u=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],c=Math.ceil(l/8)*o,h=new Uint8Array(s*n*c);let d=0;for(let e=0;e<7;e++){const i=u[e],o=Math.ceil((n-i.x)/i.xStep),a=Math.ceil((s-i.y)/i.yStep);if(o<=0||a<=0)continue;const l=o*c,f=new Uint8Array(l);for(let e=0;e<a;e++){const a=t[d++],u=t.subarray(d,d+l);d+=l;const p=new Uint8Array(l);(0,r.applyUnfilter)(a,u,p,f,l,c),f.set(p);for(let t=0;t<o;t++){const r=i.x+t*i.xStep,o=i.y+e*i.yStep;if(!(r>=n||o>=s))for(let e=0;e<c;e++)h[(o*n+r)*c+e]=p[t*c+e]}}}if(16===l){const e=new Uint16Array(h.buffer);if(i)for(let t=0;t<e.length;t++)e[t]=a(e[t]);return e}return h}function a(e){return(255&e)<<8|e>>8&255}},"./node_modules/fast-png/lib-esm/helpers/decodeInterlaceNull.js":function(e,t,n){"use strict";n.r(t),n.d(t,{decodeInterlaceNull:function(){return a}});var r=n("./node_modules/fast-png/lib-esm/helpers/unfilter.js");const s=new Uint16Array([255]),i=255===new Uint8Array(s.buffer)[0],o=new Uint8Array(0);function a(e){const{data:t,width:n,height:s,channels:a,depth:u}=e,c=Math.ceil(u/8)*a,h=Math.ceil(u/8*a*n),d=new Uint8Array(s*h);let f,p,m=o,g=0;for(let e=0;e<s;e++){switch(f=t.subarray(g+1,g+1+h),p=d.subarray(e*h,(e+1)*h),t[g]){case 0:(0,r.unfilterNone)(f,p,h);break;case 1:(0,r.unfilterSub)(f,p,h,c);break;case 2:(0,r.unfilterUp)(f,p,m,h);break;case 3:(0,r.unfilterAverage)(f,p,m,h,c);break;case 4:(0,r.unfilterPaeth)(f,p,m,h,c);break;default:throw new Error(`Unsupported filter: ${t[g]}`)}m=p,g+=h+1}if(16===u){const e=new Uint16Array(d.buffer);if(i)for(let t=0;t<e.length;t++)e[t]=l(e[t]);return e}return d}function l(e){return(255&e)<<8|e>>8&255}},"./node_modules/fast-png/lib-esm/helpers/signature.js":function(e,t,n){"use strict";n.r(t),n.d(t,{checkSignature:function(){return i},hasPngSignature:function(){return o},writeSignature:function(){return s}});const r=Uint8Array.of(137,80,78,71,13,10,26,10);function s(e){e.writeBytes(r)}function i(e){if(!o(e.readBytes(r.length)))throw new Error("wrong PNG signature")}function o(e){if(e.length<r.length)return!1;for(let t=0;t<r.length;t++)if(e[t]!==r[t])return!1;return!0}},"./node_modules/fast-png/lib-esm/helpers/text.js":function(e,t,n){"use strict";n.r(t),n.d(t,{decodetEXt:function(){return c},encodetEXt:function(){return h},readKeyword:function(){return d},readLatin1:function(){return f},textChunkName:function(){return s}});var r=n("./node_modules/fast-png/lib-esm/helpers/crc.js");const s="tEXt",i=0,o=new TextDecoder("latin1");function a(e){if(u(e),0===e.length||e.length>79)throw new Error("keyword length must be between 1 and 79")}const l=/^[\u0000-\u00FF]*$/;function u(e){if(!l.test(e))throw new Error("invalid latin1 text")}function c(e,t,n){const r=d(t);e[r]=f(t,n-r.length-1)}function h(e,t,n){a(t),u(n);const o=t.length+1+n.length;e.writeUint32(o),e.writeChars(s),e.writeChars(t),e.writeByte(i),e.writeChars(n),(0,r.writeCrc)(e,o+4)}function d(e){for(e.mark();e.readByte()!==i;);const t=e.offset;e.reset();const n=o.decode(e.readBytes(t-e.offset-1));return e.skip(1),a(n),n}function f(e,t){return o.decode(e.readBytes(t))}},"./node_modules/fast-png/lib-esm/helpers/unfilter.js":function(e,t,n){"use strict";function r(e,t,n){for(let r=0;r<n;r++)t[r]=e[r]}function s(e,t,n,r){let s=0;for(;s<r;s++)t[s]=e[s];for(;s<n;s++)t[s]=e[s]+t[s-r]&255}function i(e,t,n,r){let s=0;if(0===n.length)for(;s<r;s++)t[s]=e[s];else for(;s<r;s++)t[s]=e[s]+n[s]&255}function o(e,t,n,r,s){let i=0;if(0===n.length){for(;i<s;i++)t[i]=e[i];for(;i<r;i++)t[i]=e[i]+(t[i-s]>>1)&255}else{for(;i<s;i++)t[i]=e[i]+(n[i]>>1)&255;for(;i<r;i++)t[i]=e[i]+(t[i-s]+n[i]>>1)&255}}function a(e,t,n,r,s){let i=0;if(0===n.length){for(;i<s;i++)t[i]=e[i];for(;i<r;i++)t[i]=e[i]+t[i-s]&255}else{for(;i<s;i++)t[i]=e[i]+n[i]&255;for(;i<r;i++)t[i]=e[i]+l(t[i-s],n[i],n[i-s])&255}}function l(e,t,n){const r=e+t-n,s=Math.abs(r-e),i=Math.abs(r-t),o=Math.abs(r-n);return s<=i&&s<=o?e:i<=o?t:n}n.r(t),n.d(t,{unfilterAverage:function(){return o},unfilterNone:function(){return r},unfilterPaeth:function(){return a},unfilterSub:function(){return s},unfilterUp:function(){return i}})},"./node_modules/fast-png/lib-esm/index.js":function(e,t,n){"use strict";n.r(t),n.d(t,{ResolutionUnitSpecifier:function(){return o.ResolutionUnitSpecifier},convertIndexedToRgb:function(){return a.convertIndexedToRgb},decode:function(){return l},decodeApng:function(){return c},encode:function(){return u},hasPngSignature:function(){return i.hasPngSignature}});var r=n("./node_modules/fast-png/lib-esm/PngDecoder.js"),s=n("./node_modules/fast-png/lib-esm/PngEncoder.js"),i=n("./node_modules/fast-png/lib-esm/helpers/signature.js"),o=n("./node_modules/fast-png/lib-esm/types.js"),a=n("./node_modules/fast-png/lib-esm/convertIndexedToRgb.js");function l(e,t){return new r.default(e,t).decode()}function u(e,t){return new s.default(e,t).encode()}function c(e,t){return new r.default(e,t).decodeApng()}},"./node_modules/fast-png/lib-esm/internalTypes.js":function(e,t,n){"use strict";n.r(t),n.d(t,{BlendOpType:function(){return l},ColorType:function(){return r},CompressionMethod:function(){return s},DisposeOpType:function(){return a},FilterMethod:function(){return i},InterlaceMethod:function(){return o}});const r={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},s={UNKNOWN:-1,DEFLATE:0},i={UNKNOWN:-1,ADAPTIVE:0},o={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},a={NONE:0,BACKGROUND:1,PREVIOUS:2},l={SOURCE:0,OVER:1}},"./node_modules/fast-png/lib-esm/types.js":function(e,t,n){"use strict";var r;n.r(t),n.d(t,{ResolutionUnitSpecifier:function(){return r}}),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.METRE=1]="METRE"}(r||(r={}))},"./node_modules/fflate/esm/browser.js":function(e,t,n){"use strict";n.r(t),n.d(t,{AsyncCompress:function(){return Oe},AsyncDecompress:function(){return Xe},AsyncDeflate:function(){return Ae},AsyncGunzip:function(){return Re},AsyncGzip:function(){return Oe},AsyncInflate:function(){return ke},AsyncUnzipInflate:function(){return jt},AsyncUnzlib:function(){return He},AsyncZipDeflate:function(){return mt},AsyncZlib:function(){return ze},Compress:function(){return Ce},DecodeUTF8:function(){return nt},Decompress:function(){return Ye},Deflate:function(){return xe},EncodeUTF8:function(){return rt},FlateErrorCode:function(){return O},Gunzip:function(){return Me},Gzip:function(){return Ce},Inflate:function(){return Le},Unzip:function(){return wt},UnzipInflate:function(){return _t},UnzipPassThrough:function(){return bt},Unzlib:function(){return Ve},Zip:function(){return gt},ZipDeflate:function(){return pt},ZipPassThrough:function(){return ft},Zlib:function(){return Be},compress:function(){return Te},compressSync:function(){return Ie},decompress:function(){return Ze},decompressSync:function(){return $e},deflate:function(){return Se},deflateSync:function(){return Ne},gunzip:function(){return Fe},gunzipSync:function(){return De},gzip:function(){return Te},gzipSync:function(){return Ie},inflate:function(){return Pe},inflateSync:function(){return Ee},strFromU8:function(){return it},strToU8:function(){return st},unzip:function(){return At},unzipSync:function(){return St},unzlib:function(){return We},unzlibSync:function(){return Ge},zip:function(){return vt},zipSync:function(){return yt},zlib:function(){return Ue},zlibSync:function(){return qe}});var r={},s=Uint8Array,i=Uint16Array,o=Int32Array,a=new 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,0,0,0]),l=new s([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),u=new s([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),c=function(e,t){for(var n=new i(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var s=new o(n[30]);for(r=1;r<30;++r)for(var a=n[r];a<n[r+1];++a)s[a]=a-n[r]<<5|r;return{b:n,r:s}},h=c(a,2),d=h.b,f=h.r;d[28]=258,f[258]=28;for(var p=c(l,0),m=p.b,g=p.r,v=new i(32768),y=0;y<32768;++y){var b=(43690&y)>>1|(21845&y)<<1;b=(61680&(b=(52428&b)>>2|(13107&b)<<2))>>4|(3855&b)<<4,v[y]=((65280&b)>>8|(255&b)<<8)>>1}var _=function(e,t,n){for(var r=e.length,s=0,o=new i(t);s<r;++s)e[s]&&++o[e[s]-1];var a,l=new i(t);for(s=1;s<t;++s)l[s]=l[s-1]+o[s-1]<<1;if(n){a=new i(1<<t);var u=15-t;for(s=0;s<r;++s)if(e[s])for(var c=s<<4|e[s],h=t-e[s],d=l[e[s]-1]++<<h,f=d|(1<<h)-1;d<=f;++d)a[v[d]>>u]=c}else for(a=new i(r),s=0;s<r;++s)e[s]&&(a[s]=v[l[e[s]-1]++]>>15-e[s]);return a},j=new s(288);for(y=0;y<144;++y)j[y]=8;for(y=144;y<256;++y)j[y]=9;for(y=256;y<280;++y)j[y]=7;for(y=280;y<288;++y)j[y]=8;var w=new s(32);for(y=0;y<32;++y)w[y]=5;var x=_(j,9,0),A=_(j,9,1),S=_(w,5,0),N=_(w,5,1),L=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},k=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(7&t)&n},P=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)},E=function(e){return(e+7)/8|0},C=function(e,t,n){return(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length),new s(e.subarray(t,n))},O={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},T=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],I=function(e,t,n){var r=new Error(t||T[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,I),!n)throw r;return r},M=function(e,t,n,r){var i=e.length,o=r?r.length:0;if(!i||t.f&&!t.l)return n||new s(0);var c=!n,h=c||2!=t.i,f=t.i;c&&(n=new s(3*i));var p=function(e){var t=n.length;if(e>t){var r=new s(Math.max(2*t,e));r.set(n),n=r}},g=t.f||0,v=t.p||0,y=t.b||0,b=t.l,j=t.d,w=t.m,x=t.n,S=8*i;do{if(!b){g=k(e,v,1);var O=k(e,v+1,3);if(v+=3,!O){var T=e[(W=E(v)+4)-4]|e[W-3]<<8,M=W+T;if(M>i){f&&I(0);break}h&&p(y+T),n.set(e.subarray(W,M),y),t.b=y+=T,t.p=v=8*M,t.f=g;continue}if(1==O)b=A,j=N,w=9,x=5;else if(2==O){var R=k(e,v,31)+257,F=k(e,v+10,15)+4,D=R+k(e,v+5,31)+1;v+=14;for(var B=new s(D),z=new s(19),U=0;U<F;++U)z[u[U]]=k(e,v+3*U,7);v+=3*F;var q=L(z),V=(1<<q)-1,H=_(z,q,1);for(U=0;U<D;){var W,G=H[k(e,v,V)];if(v+=15&G,(W=G>>4)<16)B[U++]=W;else{var Y=0,X=0;for(16==W?(X=3+k(e,v,3),v+=2,Y=B[U-1]):17==W?(X=3+k(e,v,7),v+=3):18==W&&(X=11+k(e,v,127),v+=7);X--;)B[U++]=Y}}var Z=B.subarray(0,R),$=B.subarray(R);w=L(Z),x=L($),b=_(Z,w,1),j=_($,x,1)}else I(1);if(v>S){f&&I(0);break}}h&&p(y+131072);for(var K=(1<<w)-1,J=(1<<x)-1,Q=v;;Q=v){var ee=(Y=b[P(e,v)&K])>>4;if((v+=15&Y)>S){f&&I(0);break}if(Y||I(2),ee<256)n[y++]=ee;else{if(256==ee){Q=v,b=null;break}var te=ee-254;if(ee>264){var ne=a[U=ee-257];te=k(e,v,(1<<ne)-1)+d[U],v+=ne}var re=j[P(e,v)&J],se=re>>4;if(re||I(3),v+=15&re,$=m[se],se>3&&(ne=l[se],$+=P(e,v)&(1<<ne)-1,v+=ne),v>S){f&&I(0);break}h&&p(y+131072);var ie=y+te;if(y<$){var oe=o-$,ae=Math.min($,ie);for(oe+y<0&&I(3);y<ae;++y)n[y]=r[oe+y]}for(;y<ie;++y)n[y]=n[y-$]}}t.l=b,t.p=Q,t.b=y,t.f=g,b&&(g=1,t.m=w,t.d=j,t.n=x)}while(!g);return y!=n.length&&c?C(n,0,y):n.subarray(0,y)},R=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},F=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8,e[r+2]|=n>>16},D=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var o=n.length,a=n.slice();if(!o)return{t:W,l:0};if(1==o){var l=new s(n[0].s+1);return l[n[0].s]=1,{t:l,l:1}}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var u=n[0],c=n[1],h=0,d=1,f=2;for(n[0]={s:-1,f:u.f+c.f,l:u,r:c};d!=o-1;)u=n[n[h].f<n[f].f?h++:f++],c=n[h!=d&&n[h].f<n[f].f?h++:f++],n[d++]={s:-1,f:u.f+c.f,l:u,r:c};var p=a[0].s;for(r=1;r<o;++r)a[r].s>p&&(p=a[r].s);var m=new i(p+1),g=B(n[d-1],m,0);if(g>t){r=0;var v=0,y=g-t,b=1<<y;for(a.sort(function(e,t){return m[t.s]-m[e.s]||e.f-t.f});r<o;++r){var _=a[r].s;if(!(m[_]>t))break;v+=b-(1<<g-m[_]),m[_]=t}for(v>>=y;v>0;){var j=a[r].s;m[j]<t?v-=1<<t-m[j]++-1:++r}for(;r>=0&&v;--r){var w=a[r].s;m[w]==t&&(--m[w],++v)}g=t}return{t:new s(m),l:g}},B=function(e,t,n){return-1==e.s?Math.max(B(e.l,t,n+1),B(e.r,t,n+1)):t[e.s]=n},z=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new i(++t),r=0,s=e[0],o=1,a=function(e){n[r++]=e},l=1;l<=t;++l)if(e[l]==s&&l!=t)++o;else{if(!s&&o>2){for(;o>138;o-=138)a(32754);o>2&&(a(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(a(s),--o;o>6;o-=6)a(8304);o>2&&(a(o-3<<5|8208),o=0)}for(;o--;)a(s);o=1,s=e[l]}return{c:n.subarray(0,r),n:t}},U=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},q=function(e,t,n){var r=n.length,s=E(t+2);e[s]=255&r,e[s+1]=r>>8,e[s+2]=255^e[s],e[s+3]=255^e[s+1];for(var i=0;i<r;++i)e[s+i+4]=n[i];return 8*(s+4+r)},V=function(e,t,n,r,s,o,c,h,d,f,p){R(t,p++,n),++s[256];for(var m=D(s,15),g=m.t,v=m.l,y=D(o,15),b=y.t,A=y.l,N=z(g),L=N.c,k=N.n,P=z(b),E=P.c,C=P.n,O=new i(19),T=0;T<L.length;++T)++O[31&L[T]];for(T=0;T<E.length;++T)++O[31&E[T]];for(var I=D(O,7),M=I.t,B=I.l,V=19;V>4&&!M[u[V-1]];--V);var H,W,G,Y,X=f+5<<3,Z=U(s,j)+U(o,w)+c,$=U(s,g)+U(o,b)+c+14+3*V+U(O,M)+2*O[16]+3*O[17]+7*O[18];if(d>=0&&X<=Z&&X<=$)return q(t,p,e.subarray(d,d+f));if(R(t,p,1+($<Z)),p+=2,$<Z){H=_(g,v,0),W=g,G=_(b,A,0),Y=b;var K=_(M,B,0);for(R(t,p,k-257),R(t,p+5,C-1),R(t,p+10,V-4),p+=14,T=0;T<V;++T)R(t,p+3*T,M[u[T]]);p+=3*V;for(var J=[L,E],Q=0;Q<2;++Q){var ee=J[Q];for(T=0;T<ee.length;++T){var te=31&ee[T];R(t,p,K[te]),p+=M[te],te>15&&(R(t,p,ee[T]>>5&127),p+=ee[T]>>12)}}}else H=x,W=j,G=S,Y=w;for(T=0;T<h;++T){var ne=r[T];if(ne>255){F(t,p,H[257+(te=ne>>18&31)]),p+=W[te+257],te>7&&(R(t,p,ne>>23&31),p+=a[te]);var re=31≠F(t,p,G[re]),p+=Y[re],re>3&&(F(t,p,ne>>5&8191),p+=l[re])}else F(t,p,H[ne]),p+=W[ne]}return F(t,p,H[256]),p+W[256]},H=new o([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),W=new s(0),G=function(e,t,n,r,u,c){var h=c.z||e.length,d=new s(r+h+5*(1+Math.ceil(h/7e3))+u),p=d.subarray(r,d.length-u),m=c.l,v=7&(c.r||0);if(t){v&&(p[0]=c.r>>3);for(var y=H[t-1],b=y>>13,_=8191&y,j=(1<<n)-1,w=c.p||new i(32768),x=c.h||new i(j+1),A=Math.ceil(n/3),S=2*A,N=function(t){return(e[t]^e[t+1]<<A^e[t+2]<<S)&j},L=new o(25e3),k=new i(288),P=new i(32),O=0,T=0,I=c.i||0,M=0,R=c.w||0,F=0;I+2<h;++I){var D=N(I),B=32767&I,z=x[D];if(w[B]=z,x[D]=B,R<=I){var U=h-I;if((O>7e3||M>24576)&&(U>423||!m)){v=V(e,p,0,L,k,P,T,M,F,I-F,v),M=O=T=0,F=I;for(var W=0;W<286;++W)k[W]=0;for(W=0;W<30;++W)P[W]=0}var G=2,Y=0,X=_,Z=B-z&32767;if(U>2&&D==N(I-Z))for(var $=Math.min(b,U)-1,K=Math.min(32767,I),J=Math.min(258,U);Z<=K&&--X&&B!=z;){if(e[I+G]==e[I+G-Z]){for(var Q=0;Q<J&&e[I+Q]==e[I+Q-Z];++Q);if(Q>G){if(G=Q,Y=Z,Q>$)break;var ee=Math.min(Z,Q-2),te=0;for(W=0;W<ee;++W){var ne=I-Z+W&32767,re=ne-w[ne]&32767;re>te&&(te=re,z=ne)}}}Z+=(B=z)-(z=w[B])&32767}if(Y){L[M++]=268435456|f[G]<<18|g[Y];var se=31&f[G],ie=31&g[Y];T+=a[se]+l[ie],++k[257+se],++P[ie],R=I+G,++O}else L[M++]=e[I],++k[e[I]]}}for(I=Math.max(I,R);I<h;++I)L[M++]=e[I],++k[e[I]];v=V(e,p,m,L,k,P,T,M,F,I-F,v),m||(c.r=7&v|p[v/8|0]<<3,v-=7,c.h=x,c.p=w,c.i=I,c.w=R)}else{for(I=c.w||0;I<h+m;I+=65535){var oe=I+65535;oe>=h&&(p[v/8|0]=m,oe=h),v=q(p,v+1,e.subarray(I,oe))}c.i=h}return C(d,0,r+E(v)+u)},Y=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&-306674912)^n>>>1;e[t]=n}return e}(),X=function(){var e=-1;return{p:function(t){for(var n=e,r=0;r<t.length;++r)n=Y[255&n^t[r]]^n>>>8;e=n},d:function(){return~e}}},Z=function(){var e=1,t=0;return{p:function(n){for(var r=e,s=t,i=0|n.length,o=0;o!=i;){for(var a=Math.min(o+2655,i);o<a;++o)s+=r+=n[o];r=(65535&r)+15*(r>>16),s=(65535&s)+15*(s>>16)}e=r,t=s},d:function(){return(255&(e%=65521))<<24|(65280&e)<<8|(255&(t%=65521))<<8|t>>8}}},$=function(e,t,n,r,i){if(!i&&(i={l:1},t.dictionary)){var o=t.dictionary.subarray(-32768),a=new s(o.length+e.length);a.set(o),a.set(e,o.length),e=a,i.w=o.length}return G(e,null==t.level?6:t.level,null==t.mem?i.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):20:12+t.mem,n,r,i)},K=function(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n},J=function(e,t,n){for(var r=e(),s=e.toString(),i=s.slice(s.indexOf("[")+1,s.lastIndexOf("]")).replace(/\s+/g,"").split(","),o=0;o<r.length;++o){var a=r[o],l=i[o];if("function"==typeof a){t+=";"+l+"=";var u=a.toString();if(a.prototype)if(-1!=u.indexOf("[native code]")){var c=u.indexOf(" ",8)+1;t+=u.slice(c,u.indexOf("(",c))}else for(var h in t+=u,a.prototype)t+=";"+l+".prototype."+h+"="+a.prototype[h].toString();else t+=u}else n[l]=a}return t},Q=[],ee=function(e,t,n,s){if(!Q[n]){for(var i="",o={},a=e.length-1,l=0;l<a;++l)i=J(e[l],i,o);Q[n]={c:J(e[a],i,o),e:o}}var u=K({},Q[n].e);return function(e,t,n,s,i){var o=new Worker(r[t]||(r[t]=URL.createObjectURL(new Blob([e+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return o.onmessage=function(e){var t=e.data,n=t.$e$;if(n){var r=new Error(n[0]);r.code=n[1],r.stack=n[2],i(r,null)}else i(null,t)},o.postMessage(n,s),o}(Q[n].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",n,u,function(e){var t=[];for(var n in e)e[n].buffer&&t.push((e[n]=new e[n].constructor(e[n])).buffer);return t}(u),s)},te=function(){return[s,i,o,a,l,u,d,m,A,N,v,T,_,L,k,P,E,C,I,M,Ee,ae,le]},ne=function(){return[s,i,o,a,l,u,f,g,x,j,S,w,v,H,W,_,R,F,D,B,z,U,q,V,E,C,G,$,Ne,ae]},re=function(){return[ge,be,me,X,Y]},se=function(){return[ve,ye]},ie=function(){return[_e,me,Z]},oe=function(){return[je]},ae=function(e){return postMessage(e,[e.buffer])},le=function(e){return e&&{out:e.size&&new s(e.size),dictionary:e.dictionary}},ue=function(e,t,n,r,s,i){var o=ee(n,r,s,function(e,t){o.terminate(),i(e,t)});return o.postMessage([e,t],t.consume?[e.buffer]:[]),function(){o.terminate()}},ce=function(e){return e.ondata=function(e,t){return postMessage([e,t],[e.buffer])},function(t){t.data.length?(e.push(t.data[0],t.data[1]),postMessage([t.data[0].length])):e.flush()}},he=function(e,t,n,r,s,i,o){var a,l=ee(e,r,s,function(e,n){e?(l.terminate(),t.ondata.call(t,e)):Array.isArray(n)?1==n.length?(t.queuedSize-=n[0],t.ondrain&&t.ondrain(n[0])):(n[1]&&l.terminate(),t.ondata.call(t,e,n[0],n[1])):o(n)});l.postMessage(n),t.queuedSize=0,t.push=function(e,n){t.ondata||I(5),a&&t.ondata(I(4,0,1),null,!!n),t.queuedSize+=e.length,l.postMessage([e,a=n],[e.buffer])},t.terminate=function(){l.terminate()},i&&(t.flush=function(){l.postMessage([])})},de=function(e,t){return e[t]|e[t+1]<<8},fe=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},pe=function(e,t){return fe(e,t)+4294967296*fe(e,t+4)},me=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},ge=function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&me(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}},ve=function(e){31==e[0]&&139==e[1]&&8==e[2]||I(6,"invalid gzip data");var t=e[3],n=10;4&t&&(n+=2+(e[10]|e[11]<<8));for(var r=(t>>3&1)+(t>>4&1);r>0;r-=!e[n++]);return n+(2&t)},ye=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},be=function(e){return 10+(e.filename?e.filename.length+1:0)},_e=function(e,t){var n=t.level,r=0==n?0:n<6?1:9==n?3:2;if(e[0]=120,e[1]=r<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var s=Z();s.p(t.dictionary),me(e,2,s.d())}},je=function(e,t){return(8!=(15&e[0])||e[0]>>4>7||(e[0]<<8|e[1])%31)&&I(6,"invalid zlib data"),(e[1]>>5&1)==+!t&&I(6,"invalid zlib data: "+(32&e[1]?"need":"unexpected")+" dictionary"),2+(e[1]>>3&4)};function we(e,t){return"function"==typeof e&&(t=e,e={}),this.ondata=t,e}var xe=function(){function e(e,t){if("function"==typeof e&&(t=e,e={}),this.ondata=t,this.o=e||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new s(98304),this.o.dictionary){var n=this.o.dictionary.subarray(-32768);this.b.set(n,32768-n.length),this.s.i=32768-n.length}}return e.prototype.p=function(e,t){this.ondata($(e,this.o,0,0,this.s),t)},e.prototype.push=function(e,t){this.ondata||I(5),this.s.l&&I(4);var n=e.length+this.s.z;if(n>this.b.length){if(n>2*this.b.length-32768){var r=new s(-32768&n);r.set(this.b.subarray(0,this.s.z)),this.b=r}var i=this.b.length-this.s.z;this.b.set(e.subarray(0,i),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(e.subarray(i),32768),this.s.z=e.length-i+32768,this.s.i=32766,this.s.w=32768}else this.b.set(e,this.s.z),this.s.z+=e.length;this.s.l=1&t,(this.s.z>this.s.w+8191||t)&&(this.p(this.b,t||!1),this.s.w=this.s.i,this.s.i-=2)},e.prototype.flush=function(){this.ondata||I(5),this.s.l&&I(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},e}(),Ae=function(){return function(e,t){he([ne,function(){return[ce,xe]}],this,we.call(this,e,t),function(e){var t=new xe(e.data);onmessage=ce(t)},6,1)}}();function Se(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&I(7),ue(e,t,[ne],function(e){return ae(Ne(e.data[0],e.data[1]))},0,n)}function Ne(e,t){return $(e,t||{},0,0)}var Le=function(){function e(e,t){"function"==typeof e&&(t=e,e={}),this.ondata=t;var n=e&&e.dictionary&&e.dictionary.subarray(-32768);this.s={i:0,b:n?n.length:0},this.o=new s(32768),this.p=new s(0),n&&this.o.set(n)}return e.prototype.e=function(e){if(this.ondata||I(5),this.d&&I(4),this.p.length){if(e.length){var t=new s(this.p.length+e.length);t.set(this.p),t.set(e,this.p.length),this.p=t}}else this.p=e},e.prototype.c=function(e){this.s.i=+(this.d=e||!1);var t=this.s.b,n=M(this.p,this.s,this.o);this.ondata(C(n,t,this.s.b),this.d),this.o=C(n,this.s.b-32768),this.s.b=this.o.length,this.p=C(this.p,this.s.p/8|0),this.s.p&=7},e.prototype.push=function(e,t){this.e(e),this.c(t)},e}(),ke=function(){return function(e,t){he([te,function(){return[ce,Le]}],this,we.call(this,e,t),function(e){var t=new Le(e.data);onmessage=ce(t)},7,0)}}();function Pe(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&I(7),ue(e,t,[te],function(e){return ae(Ee(e.data[0],le(e.data[1])))},1,n)}function Ee(e,t){return M(e,{i:2},t&&t.out,t&&t.dictionary)}var Ce=function(){function e(e,t){this.c=X(),this.l=0,this.v=1,xe.call(this,e,t)}return e.prototype.push=function(e,t){this.c.p(e),this.l+=e.length,xe.prototype.push.call(this,e,t)},e.prototype.p=function(e,t){var n=$(e,this.o,this.v&&be(this.o),t&&8,this.s);this.v&&(ge(n,this.o),this.v=0),t&&(me(n,n.length-8,this.c.d()),me(n,n.length-4,this.l)),this.ondata(n,t)},e.prototype.flush=function(){xe.prototype.flush.call(this)},e}(),Oe=function(){return function(e,t){he([ne,re,function(){return[ce,xe,Ce]}],this,we.call(this,e,t),function(e){var t=new Ce(e.data);onmessage=ce(t)},8,1)}}();function Te(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&I(7),ue(e,t,[ne,re,function(){return[Ie]}],function(e){return ae(Ie(e.data[0],e.data[1]))},2,n)}function Ie(e,t){t||(t={});var n=X(),r=e.length;n.p(e);var s=$(e,t,be(t),8),i=s.length;return ge(s,t),me(s,i-8,n.d()),me(s,i-4,r),s}var Me=function(){function e(e,t){this.v=1,this.r=0,Le.call(this,e,t)}return e.prototype.push=function(e,t){if(Le.prototype.e.call(this,e),this.r+=e.length,this.v){var n=this.p.subarray(this.v-1),r=n.length>3?ve(n):4;if(r>n.length){if(!t)return}else this.v>1&&this.onmember&&this.onmember(this.r-n.length);this.p=n.subarray(r),this.v=0}Le.prototype.c.call(this,t),!this.s.f||this.s.l||t||(this.v=E(this.s.p)+9,this.s={i:0},this.o=new s(0),this.push(new s(0),t))},e}(),Re=function(){return function(e,t){var n=this;he([te,se,function(){return[ce,Le,Me]}],this,we.call(this,e,t),function(e){var t=new Me(e.data);t.onmember=function(e){return postMessage(e)},onmessage=ce(t)},9,0,function(e){return n.onmember&&n.onmember(e)})}}();function Fe(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&I(7),ue(e,t,[te,se,function(){return[De]}],function(e){return ae(De(e.data[0],e.data[1]))},3,n)}function De(e,t){var n=ve(e);return n+8>e.length&&I(6,"invalid gzip data"),M(e.subarray(n,-8),{i:2},t&&t.out||new s(ye(e)),t&&t.dictionary)}var Be=function(){function e(e,t){this.c=Z(),this.v=1,xe.call(this,e,t)}return e.prototype.push=function(e,t){this.c.p(e),xe.prototype.push.call(this,e,t)},e.prototype.p=function(e,t){var n=$(e,this.o,this.v&&(this.o.dictionary?6:2),t&&4,this.s);this.v&&(_e(n,this.o),this.v=0),t&&me(n,n.length-4,this.c.d()),this.ondata(n,t)},e.prototype.flush=function(){xe.prototype.flush.call(this)},e}(),ze=function(){return function(e,t){he([ne,ie,function(){return[ce,xe,Be]}],this,we.call(this,e,t),function(e){var t=new Be(e.data);onmessage=ce(t)},10,1)}}();function Ue(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&I(7),ue(e,t,[ne,ie,function(){return[qe]}],function(e){return ae(qe(e.data[0],e.data[1]))},4,n)}function qe(e,t){t||(t={});var n=Z();n.p(e);var r=$(e,t,t.dictionary?6:2,4);return _e(r,t),me(r,r.length-4,n.d()),r}var Ve=function(){function e(e,t){Le.call(this,e,t),this.v=e&&e.dictionary?2:1}return e.prototype.push=function(e,t){if(Le.prototype.e.call(this,e),this.v){if(this.p.length<6&&!t)return;this.p=this.p.subarray(je(this.p,this.v-1)),this.v=0}t&&(this.p.length<4&&I(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),Le.prototype.c.call(this,t)},e}(),He=function(){return function(e,t){he([te,oe,function(){return[ce,Le,Ve]}],this,we.call(this,e,t),function(e){var t=new Ve(e.data);onmessage=ce(t)},11,0)}}();function We(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&I(7),ue(e,t,[te,oe,function(){return[Ge]}],function(e){return ae(Ge(e.data[0],le(e.data[1])))},5,n)}function Ge(e,t){return M(e.subarray(je(e,t&&t.dictionary),-4),{i:2},t&&t.out,t&&t.dictionary)}var Ye=function(){function e(e,t){this.o=we.call(this,e,t)||{},this.G=Me,this.I=Le,this.Z=Ve}return e.prototype.i=function(){var e=this;this.s.ondata=function(t,n){e.ondata(t,n)}},e.prototype.push=function(e,t){if(this.ondata||I(5),this.s)this.s.push(e,t);else{if(this.p&&this.p.length){var n=new s(this.p.length+e.length);n.set(this.p),n.set(e,this.p.length)}else this.p=e;this.p.length>2&&(this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(this.o):8!=(15&this.p[0])||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,t),this.p=null)}},e}(),Xe=function(){function e(e,t){Ye.call(this,e,t),this.queuedSize=0,this.G=Re,this.I=ke,this.Z=He}return e.prototype.i=function(){var e=this;this.s.ondata=function(t,n,r){e.ondata(t,n,r)},this.s.ondrain=function(t){e.queuedSize-=t,e.ondrain&&e.ondrain(t)}},e.prototype.push=function(e,t){this.queuedSize+=e.length,Ye.prototype.push.call(this,e,t)},e}();function Ze(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&I(7),31==e[0]&&139==e[1]&&8==e[2]?Fe(e,t,n):8!=(15&e[0])||e[0]>>4>7||(e[0]<<8|e[1])%31?Pe(e,t,n):We(e,t,n)}function $e(e,t){return 31==e[0]&&139==e[1]&&8==e[2]?De(e,t):8!=(15&e[0])||e[0]>>4>7||(e[0]<<8|e[1])%31?Ee(e,t):Ge(e,t)}var Ke=function(e,t,n,r){for(var i in e){var o=e[i],a=t+i,l=r;Array.isArray(o)&&(l=K(r,o[1]),o=o[0]),o instanceof s?n[a]=[o,l]:(n[a+="/"]=[new s(0),l],Ke(o,a,n,r))}},Je="undefined"!=typeof TextEncoder&&new TextEncoder,Qe="undefined"!=typeof TextDecoder&&new TextDecoder,et=0;try{Qe.decode(W,{stream:!0}),et=1}catch(e){}var tt=function(e){for(var t="",n=0;;){var r=e[n++],s=(r>127)+(r>223)+(r>239);if(n+s>e.length)return{s:t,r:C(e,n-1)};s?3==s?(r=((15&r)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536,t+=String.fromCharCode(55296|r>>10,56320|1023&r)):t+=1&s?String.fromCharCode((31&r)<<6|63&e[n++]):String.fromCharCode((15&r)<<12|(63&e[n++])<<6|63&e[n++]):t+=String.fromCharCode(r)}},nt=function(){function e(e){this.ondata=e,et?this.t=new TextDecoder:this.p=W}return e.prototype.push=function(e,t){if(this.ondata||I(5),t=!!t,this.t)return this.ondata(this.t.decode(e,{stream:!0}),t),void(t&&(this.t.decode().length&&I(8),this.t=null));this.p||I(4);var n=new s(this.p.length+e.length);n.set(this.p),n.set(e,this.p.length);var r=tt(n),i=r.s,o=r.r;t?(o.length&&I(8),this.p=null):this.p=o,this.ondata(i,t)},e}(),rt=function(){function e(e){this.ondata=e}return e.prototype.push=function(e,t){this.ondata||I(5),this.d&&I(4),this.ondata(st(e),this.d=t||!1)},e}();function st(e,t){if(t){for(var n=new s(e.length),r=0;r<e.length;++r)n[r]=e.charCodeAt(r);return n}if(Je)return Je.encode(e);var i=e.length,o=new s(e.length+(e.length>>1)),a=0,l=function(e){o[a++]=e};for(r=0;r<i;++r){if(a+5>o.length){var u=new s(a+8+(i-r<<1));u.set(o),o=u}var c=e.charCodeAt(r);c<128||t?l(c):c<2048?(l(192|c>>6),l(128|63&c)):c>55295&&c<57344?(l(240|(c=65536+(1047552&c)|1023&e.charCodeAt(++r))>>18),l(128|c>>12&63),l(128|c>>6&63),l(128|63&c)):(l(224|c>>12),l(128|c>>6&63),l(128|63&c))}return C(o,0,a)}function it(e,t){if(t){for(var n="",r=0;r<e.length;r+=16384)n+=String.fromCharCode.apply(null,e.subarray(r,r+16384));return n}if(Qe)return Qe.decode(e);var s=tt(e),i=s.s;return(n=s.r).length&&I(8),i}var ot=function(e){return 1==e?3:e<6?2:9==e?1:0},at=function(e,t){return t+30+de(e,t+26)+de(e,t+28)},lt=function(e,t,n){var r=de(e,t+28),s=it(e.subarray(t+46,t+46+r),!(2048&de(e,t+8))),i=t+46+r,o=fe(e,t+20),a=n&&4294967295==o?ut(e,i):[o,fe(e,t+24),fe(e,t+42)],l=a[0],u=a[1],c=a[2];return[de(e,t+10),l,u,s,i+de(e,t+30)+de(e,t+32),c]},ut=function(e,t){for(;1!=de(e,t);t+=4+de(e,t+2));return[pe(e,t+12),pe(e,t+4),pe(e,t+20)]},ct=function(e){var t=0;if(e)for(var n in e){var r=e[n].length;r>65535&&I(9),t+=r+4}return t},ht=function(e,t,n,r,s,i,o,a){var l=r.length,u=n.extra,c=a&&a.length,h=ct(u);me(e,t,null!=o?33639248:67324752),t+=4,null!=o&&(e[t++]=20,e[t++]=n.os),e[t]=20,t+=2,e[t++]=n.flag<<1|(i<0&&8),e[t++]=s&&8,e[t++]=255&n.compression,e[t++]=n.compression>>8;var d=new Date(null==n.mtime?Date.now():n.mtime),f=d.getFullYear()-1980;if((f<0||f>119)&&I(10),me(e,t,f<<25|d.getMonth()+1<<21|d.getDate()<<16|d.getHours()<<11|d.getMinutes()<<5|d.getSeconds()>>1),t+=4,-1!=i&&(me(e,t,n.crc),me(e,t+4,i<0?-i-2:i),me(e,t+8,n.size)),me(e,t+12,l),me(e,t+14,h),t+=16,null!=o&&(me(e,t,c),me(e,t+6,n.attrs),me(e,t+10,o),t+=14),e.set(r,t),t+=l,h)for(var p in u){var m=u[p],g=m.length;me(e,t,+p),me(e,t+2,g),e.set(m,t+4),t+=4+g}return c&&(e.set(a,t),t+=c),t},dt=function(e,t,n,r,s){me(e,t,101010256),me(e,t+8,n),me(e,t+10,n),me(e,t+12,r),me(e,t+16,s)},ft=function(){function e(e){this.filename=e,this.c=X(),this.size=0,this.compression=0}return e.prototype.process=function(e,t){this.ondata(null,e,t)},e.prototype.push=function(e,t){this.ondata||I(5),this.c.p(e),this.size+=e.length,t&&(this.crc=this.c.d()),this.process(e,t||!1)},e}(),pt=function(){function e(e,t){var n=this;t||(t={}),ft.call(this,e),this.d=new xe(t,function(e,t){n.ondata(null,e,t)}),this.compression=8,this.flag=ot(t.level)}return e.prototype.process=function(e,t){try{this.d.push(e,t)}catch(e){this.ondata(e,null,t)}},e.prototype.push=function(e,t){ft.prototype.push.call(this,e,t)},e}(),mt=function(){function e(e,t){var n=this;t||(t={}),ft.call(this,e),this.d=new Ae(t,function(e,t,r){n.ondata(e,t,r)}),this.compression=8,this.flag=ot(t.level),this.terminate=this.d.terminate}return e.prototype.process=function(e,t){this.d.push(e,t)},e.prototype.push=function(e,t){ft.prototype.push.call(this,e,t)},e}(),gt=function(){function e(e){this.ondata=e,this.u=[],this.d=1}return e.prototype.add=function(e){var t=this;if(this.ondata||I(5),2&this.d)this.ondata(I(4+8*(1&this.d),0,1),null,!1);else{var n=st(e.filename),r=n.length,i=e.comment,o=i&&st(i),a=r!=e.filename.length||o&&i.length!=o.length,l=r+ct(e.extra)+30;r>65535&&this.ondata(I(11,0,1),null,!1);var u=new s(l);ht(u,0,e,n,a,-1);var c=[u],h=function(){for(var e=0,n=c;e<n.length;e++){var r=n[e];t.ondata(null,r,!1)}c=[]},d=this.d;this.d=0;var f=this.u.length,p=K(e,{f:n,u:a,o:o,t:function(){e.terminate&&e.terminate()},r:function(){if(h(),d){var e=t.u[f+1];e?e.r():t.d=1}d=1}}),m=0;e.ondata=function(n,r,i){if(n)t.ondata(n,r,i),t.terminate();else if(m+=r.length,c.push(r),i){var o=new s(16);me(o,0,134695760),me(o,4,e.crc),me(o,8,m),me(o,12,e.size),c.push(o),p.c=m,p.b=l+m+16,p.crc=e.crc,p.size=e.size,d&&p.r(),d=1}else d&&h()},this.u.push(p)}},e.prototype.end=function(){var e=this;2&this.d?this.ondata(I(4+8*(1&this.d),0,1),null,!0):(this.d?this.e():this.u.push({r:function(){1&e.d&&(e.u.splice(-1,1),e.e())},t:function(){}}),this.d=3)},e.prototype.e=function(){for(var e=0,t=0,n=0,r=0,i=this.u;r<i.length;r++)n+=46+(u=i[r]).f.length+ct(u.extra)+(u.o?u.o.length:0);for(var o=new s(n+22),a=0,l=this.u;a<l.length;a++){var u=l[a];ht(o,e,u,u.f,u.u,-u.c-2,t,u.o),e+=46+u.f.length+ct(u.extra)+(u.o?u.o.length:0),t+=u.b}dt(o,e,this.u.length,n,t),this.ondata(null,o,!0),this.d=2},e.prototype.terminate=function(){for(var e=0,t=this.u;e<t.length;e++)t[e].t();this.d=2},e}();function vt(e,t,n){n||(n=t,t={}),"function"!=typeof n&&I(7);var r={};Ke(e,"",r,t);var i=Object.keys(r),o=i.length,a=0,l=0,u=o,c=new Array(o),h=[],d=function(){for(var e=0;e<h.length;++e)h[e]()},f=function(e,t){xt(function(){n(e,t)})};xt(function(){f=n});var p=function(){var e=new s(l+22),t=a,n=l-a;l=0;for(var r=0;r<u;++r){var i=c[r];try{var o=i.c.length;ht(e,l,i,i.f,i.u,o);var h=30+i.f.length+ct(i.extra),d=l+h;e.set(i.c,d),ht(e,a,i,i.f,i.u,o,l,i.m),a+=16+h+(i.m?i.m.length:0),l=d+o}catch(e){return f(e,null)}}dt(e,a,c.length,n,t),f(null,e)};o||p();for(var m=function(e){var t=i[e],n=r[t],s=n[0],u=n[1],m=X(),g=s.length;m.p(s);var v=st(t),y=v.length,b=u.comment,_=b&&st(b),j=_&&_.length,w=ct(u.extra),x=0==u.level?0:8,A=function(n,r){if(n)d(),f(n,null);else{var s=r.length;c[e]=K(u,{size:g,crc:m.d(),c:r,f:v,m:_,u:y!=t.length||_&&b.length!=j,compression:x}),a+=30+y+w+s,l+=76+2*(y+w)+(j||0)+s,--o||p()}};if(y>65535&&A(I(11,0,1),null),x)if(g<16e4)try{A(null,Ne(s,u))}catch(e){A(e,null)}else h.push(Se(s,u,A));else A(null,s)},g=0;g<u;++g)m(g);return d}function yt(e,t){t||(t={});var n={},r=[];Ke(e,"",n,t);var i=0,o=0;for(var a in n){var l=n[a],u=l[0],c=l[1],h=0==c.level?0:8,d=(A=st(a)).length,f=c.comment,p=f&&st(f),m=p&&p.length,g=ct(c.extra);d>65535&&I(11);var v=h?Ne(u,c):u,y=v.length,b=X();b.p(u),r.push(K(c,{size:u.length,crc:b.d(),c:v,f:A,m:p,u:d!=a.length||p&&f.length!=m,o:i,compression:h})),i+=30+d+g+y,o+=76+2*(d+g)+(m||0)+y}for(var _=new s(o+22),j=i,w=o-i,x=0;x<r.length;++x){var A=r[x];ht(_,A.o,A,A.f,A.u,A.c.length);var S=30+A.f.length+ct(A.extra);_.set(A.c,A.o+S),ht(_,i,A,A.f,A.u,A.c.length,A.o,A.m),i+=16+S+(A.m?A.m.length:0)}return dt(_,i,r.length,w,j),_}var bt=function(){function e(){}return e.prototype.push=function(e,t){this.ondata(null,e,t)},e.compression=0,e}(),_t=function(){function e(){var e=this;this.i=new Le(function(t,n){e.ondata(null,t,n)})}return e.prototype.push=function(e,t){try{this.i.push(e,t)}catch(e){this.ondata(e,null,t)}},e.compression=8,e}(),jt=function(){function e(e,t){var n=this;t<32e4?this.i=new Le(function(e,t){n.ondata(null,e,t)}):(this.i=new ke(function(e,t,r){n.ondata(e,t,r)}),this.terminate=this.i.terminate)}return e.prototype.push=function(e,t){this.i.terminate&&(e=C(e,0)),this.i.push(e,t)},e.compression=8,e}(),wt=function(){function e(e){this.onfile=e,this.k=[],this.o={0:bt},this.p=W}return e.prototype.push=function(e,t){var n=this;if(this.onfile||I(5),this.p||I(4),this.c>0){var r=Math.min(this.c,e.length),i=e.subarray(0,r);if(this.c-=r,this.d?this.d.push(i,!this.c):this.k[0].push(i),(e=e.subarray(r)).length)return this.push(e,t)}else{var o=0,a=0,l=void 0,u=void 0;this.p.length?e.length?((u=new s(this.p.length+e.length)).set(this.p),u.set(e,this.p.length)):u=this.p:u=e;for(var c=u.length,h=this.c,d=h&&this.d,f=function(){var e,t=fe(u,a);if(67324752==t){o=1,l=a,p.d=null,p.c=0;var r=de(u,a+6),s=de(u,a+8),i=2048&r,d=8&r,f=de(u,a+26),m=de(u,a+28);if(c>a+30+f+m){var g=[];p.k.unshift(g),o=2;var v,y=fe(u,a+18),b=fe(u,a+22),_=it(u.subarray(a+30,a+=30+f),!i);4294967295==y?(e=d?[-2]:ut(u,a),y=e[0],b=e[1]):d&&(y=-1),a+=m,p.c=y;var j={name:_,compression:s,start:function(){if(j.ondata||I(5),y){var e=n.o[s];e||j.ondata(I(14,"unknown compression type "+s,1),null,!1),(v=y<0?new e(_):new e(_,y,b)).ondata=function(e,t,n){j.ondata(e,t,n)};for(var t=0,r=g;t<r.length;t++){var i=r[t];v.push(i,!1)}n.k[0]==g&&n.c?n.d=v:v.push(W,!0)}else j.ondata(null,W,!0)},terminate:function(){v&&v.terminate&&v.terminate()}};y>=0&&(j.size=y,j.originalSize=b),p.onfile(j)}return"break"}if(h){if(134695760==t)return l=a+=12+(-2==h&&8),o=3,p.c=0,"break";if(33639248==t)return l=a-=4,o=3,p.c=0,"break"}},p=this;a<c-4&&"break"!==f();++a);if(this.p=W,h<0){var m=o?u.subarray(0,l-12-(-2==h&&8)-(134695760==fe(u,l-16)&&4)):u.subarray(0,a);d?d.push(m,!!o):this.k[+(2==o)].push(m)}if(2&o)return this.push(u.subarray(a),t);this.p=u.subarray(a)}t&&(this.c&&I(13),this.p=null)},e.prototype.register=function(e){this.o[e.compression]=e},e}(),xt="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(e){e()};function At(e,t,n){n||(n=t,t={}),"function"!=typeof n&&I(7);var r=[],i=function(){for(var e=0;e<r.length;++e)r[e]()},o={},a=function(e,t){xt(function(){n(e,t)})};xt(function(){a=n});for(var l=e.length-22;101010256!=fe(e,l);--l)if(!l||e.length-l>65558)return a(I(13,0,1),null),i;var u=de(e,l+8);if(u){var c=u,h=fe(e,l+16),d=4294967295==h||65535==c;if(d){var f=fe(e,l-12);(d=101075792==fe(e,f))&&(c=u=fe(e,f+32),h=fe(e,f+48))}for(var p=t&&t.filter,m=function(t){var n=lt(e,h,d),l=n[0],c=n[1],f=n[2],m=n[3],g=n[4],v=n[5],y=at(e,v);h=g;var b=function(e,t){e?(i(),a(e,null)):(t&&(o[m]=t),--u||a(null,o))};if(!p||p({name:m,size:c,originalSize:f,compression:l}))if(l)if(8==l){var _=e.subarray(y,y+c);if(f<524288||c>.8*f)try{b(null,Ee(_,{out:new s(f)}))}catch(e){b(e,null)}else r.push(Pe(_,{size:f},b))}else b(I(14,"unknown compression type "+l,1),null);else b(null,C(e,y,y+c));else b(null,null)},g=0;g<c;++g)m()}else a(null,{});return i}function St(e,t){for(var n={},r=e.length-22;101010256!=fe(e,r);--r)(!r||e.length-r>65558)&&I(13);var i=de(e,r+8);if(!i)return{};var o=fe(e,r+16),a=4294967295==o||65535==i;if(a){var l=fe(e,r-12);(a=101075792==fe(e,l))&&(i=fe(e,l+32),o=fe(e,l+48))}for(var u=t&&t.filter,c=0;c<i;++c){var h=lt(e,o,a),d=h[0],f=h[1],p=h[2],m=h[3],g=h[4],v=h[5],y=at(e,v);o=g,u&&!u({name:m,size:f,originalSize:p,compression:d})||(d?8==d?n[m]=Ee(e.subarray(y,y+f),{out:new s(p)}):I(14,"unknown compression type "+d):n[m]=C(e,y,y+f))}return n}},"./node_modules/iobuffer/lib-esm/IOBuffer.js":function(e,t,n){"use strict";n.r(t),n.d(t,{IOBuffer:function(){return o}});var r=n("./node_modules/iobuffer/lib-esm/text.js");const s=(()=>{const e=new Uint8Array(4);return!((new Uint32Array(e.buffer)[0]=1)&e[0])})(),i={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class o{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(e=8192,t={}){let n=!1;"number"==typeof e?e=new ArrayBuffer(e):(n=!0,this.lastWrittenByte=e.byteLength);const r=t.offset?t.offset>>>0:0,s=e.byteLength-r;let i=r;(ArrayBuffer.isView(e)||e instanceof o)&&(e.byteLength!==e.buffer.byteLength&&(i=e.byteOffset+r),e=e.buffer),this.lastWrittenByte=n?s:0,this.buffer=e,this.length=s,this.byteLength=s,this.byteOffset=i,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,i,s),this._mark=0,this._marks=[]}available(e=1){return this.offset+e<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(e=1){return this.offset+=e,this}back(e=1){return this.offset-=e,this}seek(e){return this.offset=e,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const e=this._marks.pop();if(void 0===e)throw new Error("Mark stack empty");return this.seek(e),this}rewind(){return this.offset=0,this}ensureAvailable(e=1){if(!this.available(e)){const t=2*(this.offset+e),n=new Uint8Array(t);n.set(new Uint8Array(this.buffer)),this.buffer=n.buffer,this.length=t,this.byteLength=t,this._data=new DataView(this.buffer)}return this}readBoolean(){return 0!==this.readUint8()}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(e=1){return this.readArray(e,"uint8")}readArray(e,t){const n=i[t].BYTES_PER_ELEMENT*e,r=this.byteOffset+this.offset,o=this.buffer.slice(r,r+n);if(this.littleEndian===s&&"uint8"!==t&&"int8"!==t){const e=new Uint8Array(this.buffer.slice(r,r+n));e.reverse();const s=new i[t](e.buffer);return this.offset+=n,s.reverse(),s}const a=new i[t](o);return this.offset+=n,a}readInt16(){const e=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,e}readUint16(){const e=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,e}readInt32(){const e=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,e}readUint32(){const e=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat32(){const e=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat64(){const e=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,e}readBigInt64(){const e=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,e}readBigUint64(){const e=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,e}readChar(){return String.fromCharCode(this.readInt8())}readChars(e=1){let t="";for(let n=0;n<e;n++)t+=this.readChar();return t}readUtf8(e=1){return(0,r.decode)(this.readBytes(e))}decodeText(e=1,t="utf8"){return(0,r.decode)(this.readBytes(e),t)}writeBoolean(e){return this.writeUint8(e?255:0),this}writeInt8(e){return this.ensureAvailable(1),this._data.setInt8(this.offset++,e),this._updateLastWrittenByte(),this}writeUint8(e){return this.ensureAvailable(1),this._data.setUint8(this.offset++,e),this._updateLastWrittenByte(),this}writeByte(e){return this.writeUint8(e)}writeBytes(e){this.ensureAvailable(e.length);for(let t=0;t<e.length;t++)this._data.setUint8(this.offset++,e[t]);return this._updateLastWrittenByte(),this}writeInt16(e){return this.ensureAvailable(2),this._data.setInt16(this.offset,e,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(e){return this.ensureAvailable(2),this._data.setUint16(this.offset,e,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(e){return this.ensureAvailable(4),this._data.setInt32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(e){return this.ensureAvailable(4),this._data.setUint32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(e){return this.ensureAvailable(4),this._data.setFloat32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(e){return this.ensureAvailable(8),this._data.setFloat64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(e){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(e){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(e){return this.writeUint8(e.charCodeAt(0))}writeChars(e){for(let t=0;t<e.length;t++)this.writeUint8(e.charCodeAt(t));return this}writeUtf8(e){return this.writeBytes((0,r.encode)(e))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}},"./node_modules/iobuffer/lib-esm/text.js":function(e,t,n){"use strict";function r(e,t="utf8"){return new TextDecoder(t).decode(e)}n.r(t),n.d(t,{decode:function(){return r},encode:function(){return i}});const s=new TextEncoder;function i(e){return s.encode(e)}},"./node_modules/jspdf/dist/jspdf.es.min.js":function(e,t,n){"use strict";n.r(t),n.d(t,{AcroForm:function(){return Pe},AcroFormAppearance:function(){return Se},AcroFormButton:function(){return ye},AcroFormCheckBox:function(){return we},AcroFormChoiceField:function(){return pe},AcroFormComboBox:function(){return ge},AcroFormEditBox:function(){return ve},AcroFormListBox:function(){return me},AcroFormPasswordField:function(){return Ae},AcroFormPushButton:function(){return be},AcroFormRadioButton:function(){return _e},AcroFormTextField:function(){return xe},GState:function(){return R},ShadingPattern:function(){return D},TilingPattern:function(){return B},default:function(){return z},jsPDF:function(){return z}});var r=n("./node_modules/@babel/runtime/helpers/esm/typeof.js"),s=n("./node_modules/fflate/esm/browser.js"),i=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),o=n("./node_modules/fast-png/lib-esm/index.js"),a=function(){return"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this}();function l(){a.console&&"function"==typeof a.console.log&&a.console.log.apply(a.console,arguments)}var u={log:l,warn:function(e){a.console&&("function"==typeof a.console.warn?a.console.warn.apply(a.console,arguments):l.call(null,arguments))},error:function(e){a.console&&("function"==typeof a.console.error?a.console.error.apply(a.console,arguments):l(e))}};function c(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){f(r.response,t,n)},r.onerror=function(){u.error("could not download file")},r.send()}function h(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}function d(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var f=a.saveAs||("object"!==("undefined"==typeof window?"undefined":(0,r.default)(window))||window!==a?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(e,t,n){var r=a.URL||a.webkitURL,s=document.createElement("a");t=t||e.name||"download",s.download=t,s.rel="noopener","string"==typeof e?(s.href=e,s.origin!==location.origin?h(s.href)?c(e,t,n):d(s,s.target="_blank"):d(s)):(s.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(s.href)},4e4),setTimeout(function(){d(s)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,n){if(t=t||e.name||"download","string"==typeof e)if(h(e))c(e,t,n);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout(function(){d(s)})}else navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!==(0,r.default)(t)&&(u.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}(e,n),t)}:function(e,t,n,s){if((s=s||open("","_blank"))&&(s.document.title=s.document.body.innerText="downloading..."),"string"==typeof e)return c(e,t,n);var i="application/octet-stream"===e.type,o=/constructor/i.test(a.HTMLElement)||a.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||i&&o)&&"object"===("undefined"==typeof FileReader?"undefined":(0,r.default)(FileReader))){var u=new FileReader;u.onloadend=function(){var e=u.result;e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),s?s.location.href=e:location=e,s=null},u.readAsDataURL(e)}else{var h=a.URL||a.webkitURL,d=h.createObjectURL(e);s?s.location=d:location.href=d,s=null,setTimeout(function(){h.revokeObjectURL(d)},4e4)}});function p(e){var t;e=e||"",this.ok=!1,"#"==e.charAt(0)&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],r=0;r<n.length;r++){var s=n[r].re,i=n[r].process,o=s.exec(e);o&&(t=i(o),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var e=this.r.toString(16),t=this.g.toString(16),n=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==n.length&&(n="0"+n),"#"+e+t+n}}var m=a.atob.bind(a),g=a.btoa.bind(a);function v(e,t){var n=e[0],r=e[1],s=e[2],i=e[3];n=b(n,r,s,i,t[0],7,-680876936),i=b(i,n,r,s,t[1],12,-389564586),s=b(s,i,n,r,t[2],17,606105819),r=b(r,s,i,n,t[3],22,-1044525330),n=b(n,r,s,i,t[4],7,-176418897),i=b(i,n,r,s,t[5],12,1200080426),s=b(s,i,n,r,t[6],17,-1473231341),r=b(r,s,i,n,t[7],22,-45705983),n=b(n,r,s,i,t[8],7,1770035416),i=b(i,n,r,s,t[9],12,-1958414417),s=b(s,i,n,r,t[10],17,-42063),r=b(r,s,i,n,t[11],22,-1990404162),n=b(n,r,s,i,t[12],7,1804603682),i=b(i,n,r,s,t[13],12,-40341101),s=b(s,i,n,r,t[14],17,-1502002290),n=_(n,r=b(r,s,i,n,t[15],22,1236535329),s,i,t[1],5,-165796510),i=_(i,n,r,s,t[6],9,-1069501632),s=_(s,i,n,r,t[11],14,643717713),r=_(r,s,i,n,t[0],20,-373897302),n=_(n,r,s,i,t[5],5,-701558691),i=_(i,n,r,s,t[10],9,38016083),s=_(s,i,n,r,t[15],14,-660478335),r=_(r,s,i,n,t[4],20,-405537848),n=_(n,r,s,i,t[9],5,568446438),i=_(i,n,r,s,t[14],9,-1019803690),s=_(s,i,n,r,t[3],14,-187363961),r=_(r,s,i,n,t[8],20,1163531501),n=_(n,r,s,i,t[13],5,-1444681467),i=_(i,n,r,s,t[2],9,-51403784),s=_(s,i,n,r,t[7],14,1735328473),n=j(n,r=_(r,s,i,n,t[12],20,-1926607734),s,i,t[5],4,-378558),i=j(i,n,r,s,t[8],11,-2022574463),s=j(s,i,n,r,t[11],16,1839030562),r=j(r,s,i,n,t[14],23,-35309556),n=j(n,r,s,i,t[1],4,-1530992060),i=j(i,n,r,s,t[4],11,1272893353),s=j(s,i,n,r,t[7],16,-155497632),r=j(r,s,i,n,t[10],23,-1094730640),n=j(n,r,s,i,t[13],4,681279174),i=j(i,n,r,s,t[0],11,-358537222),s=j(s,i,n,r,t[3],16,-722521979),r=j(r,s,i,n,t[6],23,76029189),n=j(n,r,s,i,t[9],4,-640364487),i=j(i,n,r,s,t[12],11,-421815835),s=j(s,i,n,r,t[15],16,530742520),n=w(n,r=j(r,s,i,n,t[2],23,-995338651),s,i,t[0],6,-198630844),i=w(i,n,r,s,t[7],10,1126891415),s=w(s,i,n,r,t[14],15,-1416354905),r=w(r,s,i,n,t[5],21,-57434055),n=w(n,r,s,i,t[12],6,1700485571),i=w(i,n,r,s,t[3],10,-1894986606),s=w(s,i,n,r,t[10],15,-1051523),r=w(r,s,i,n,t[1],21,-2054922799),n=w(n,r,s,i,t[8],6,1873313359),i=w(i,n,r,s,t[15],10,-30611744),s=w(s,i,n,r,t[6],15,-1560198380),r=w(r,s,i,n,t[13],21,1309151649),n=w(n,r,s,i,t[4],6,-145523070),i=w(i,n,r,s,t[11],10,-1120210379),s=w(s,i,n,r,t[2],15,718787259),r=w(r,s,i,n,t[9],21,-343485551),e[0]=E(n,e[0]),e[1]=E(r,e[1]),e[2]=E(s,e[2]),e[3]=E(i,e[3])}function y(e,t,n,r,s,i){return t=E(E(t,e),E(r,i)),E(t<<s|t>>>32-s,n)}function b(e,t,n,r,s,i,o){return y(t&n|~t&r,e,t,s,i,o)}function _(e,t,n,r,s,i,o){return y(t&r|n&~r,e,t,s,i,o)}function j(e,t,n,r,s,i,o){return y(t^n^r,e,t,s,i,o)}function w(e,t,n,r,s,i,o){return y(n^(t|~r),e,t,s,i,o)}function x(e){var t,n=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)v(r,A(e.substring(t-64,t)));e=e.substring(t-64);var s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)s[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(s[t>>2]|=128<<(t%4<<3),t>55)for(v(r,s),t=0;t<16;t++)s[t]=0;return s[14]=8*n,v(r,s),r}function A(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}var S="0123456789abcdef".split("");function N(e){for(var t="",n=0;n<4;n++)t+=S[e>>8*n+4&15]+S[e>>8*n&15];return t}function L(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function k(e){return x(e).map(L).join("")}var P="5d41402abc4b2a76b9719d911017c592"!=function(e){for(var t=0;t<e.length;t++)e[t]=N(e[t]);return e.join("")}(x("hello"));function E(e,t){if(P){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}return e+t&4294967295}function C(e,t){var n,r,s,i;if(e!==n){for(var o=(s=e,i=1+(256/e.length|0),new Array(i+1).join(s)),a=[],l=0;l<256;l++)a[l]=l;var u=0;for(l=0;l<256;l++){var c=a[l];u=(u+c+o.charCodeAt(l))%256,a[l]=a[u],a[u]=c}n=e,r=a}else a=r;var h=t.length,d=0,f=0,p="";for(l=0;l<h;l++)f=(f+(c=a[d=(d+1)%256]))%256,a[d]=a[f],a[f]=c,o=a[(a[d]+a[f])%256],p+=String.fromCharCode(t.charCodeAt(l)^o);return p}var O={print:4,modify:8,copy:16,"annot-forms":32};function T(e,t,n,r){this.v=1,this.r=2;var s=192;e.forEach(function(e){if(void 0!==O.perm)throw new Error("Invalid permission: "+e);s+=O[e]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var i=(t+this.padding).substr(0,32),o=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,o),this.P=-(1+(255^s)),this.encryptionKey=k(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=C(this.encryptionKey,this.padding)}function I(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",n=e.length,r=0;r<n;r++){var s=e.charCodeAt(r);t+=s<33||35===s||37===s||40===s||41===s||47===s||60===s||62===s||91===s||93===s||123===s||125===s||s>126?"#"+("0"+s.toString(16)).slice(-2):e[r]}return t}function M(e){if("object"!==(0,r.default)(e))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(e,n,r){if(r=r||!1,"string"!=typeof e||"function"!=typeof n||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(e)||(t[e]={});var s=Math.random().toString(35);return t[e][s]=[n,!!r],s},this.unsubscribe=function(e){for(var n in t)if(t[n][e])return delete t[n][e],0===Object.keys(t[n]).length&&delete t[n],!0;return!1},this.publish=function(n){if(t.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),s=[];for(var i in t[n]){var o=t[n][i];try{o[0].apply(e,r)}catch(e){a.console&&u.error("jsPDF PubSub Error",e.message,e)}o[1]&&s.push(i)}s.length&&s.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function R(e){if(!(this instanceof R))return new R(e);var t="opacity,stroke-opacity".split(",");for(var n in e)e.hasOwnProperty(n)&&t.indexOf(n)>=0&&(this[n]=e[n]);this.id="",this.objectNumber=-1}function F(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function D(e,t,n,r,s){if(!(this instanceof D))return new D(e,t,n,r,s);this.type="axial"===e?2:3,this.coords=t,this.colors=n,F.call(this,r,s)}function B(e,t,n,r,s){if(!(this instanceof B))return new B(e,t,n,r,s);this.boundingBox=e,this.xStep=t,this.yStep=n,this.stream="",this.cloneIndex=0,F.call(this,r,s)}function z(e){var t,n="string"==typeof arguments[0]?arguments[0]:"p",s=arguments[1],i=arguments[2],o=arguments[3],l=[],c=1,h=16,d="S",m=null;"object"===(0,r.default)(e=e||{})&&(n=e.orientation,s=e.unit||s,i=e.format||i,o=e.compress||e.compressPdf||o,null!==(m=e.encryption||null)&&(m.userPassword=m.userPassword||"",m.ownerPassword=m.ownerPassword||"",m.userPermissions=m.userPermissions||[]),c="number"==typeof e.userUnit?Math.abs(e.userUnit):1,void 0!==e.precision&&(t=e.precision),void 0!==e.floatPrecision&&(h=e.floatPrecision),d=e.defaultPathOperation||"S"),l=e.filters||(!0===o?["FlateEncode"]:l),s=s||"mm",n=(""+(n||"P")).toLowerCase();var v=e.putOnlyUsedFonts||!1,y={},b={internal:{},__private__:{}};b.__private__.PubSub=M;var _="1.3",j=b.__private__.getPdfVersion=function(){return _};b.__private__.setPdfVersion=function(e){_=e};var w={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};b.__private__.getPageFormats=function(){return w};var x=b.__private__.getPageFormat=function(e){return w[e]};i=i||"a4";var A="compat",S="advanced",N=A;function L(){this.saveGraphicsState(),ce(new He(Se,0,0,-Se,0,Nn()*Se).toString()+" cm"),this.setFontSize(this.getFontSize()/Se),d="n",N=S}function k(){this.restoreGraphicsState(),d="S",N=A}var P=b.__private__.combineFontStyleAndFontWeight=function(e,t){if("bold"==e&&"normal"==t||"bold"==e&&400==t||"normal"==e&&"italic"==t||"bold"==e&&"italic"==t)throw new Error("Invalid Combination of fontweight and fontstyle");return t&&(e=400==t||"normal"===t?"italic"===e?"italic":"normal":700!=t&&"bold"!==t||"normal"!==e?(700==t?"bold":t)+""+e:"bold"),e};b.advancedAPI=function(e){var t=N===A;return t&&L.call(this),"function"!=typeof e||(e(this),t&&k.call(this)),this},b.compatAPI=function(e){var t=N===S;return t&&k.call(this),"function"!=typeof e||(e(this),t&&L.call(this)),this},b.isAdvancedAPI=function(){return N===S};var E,C=function(e){if(N!==S)throw new Error(e+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},O=b.roundToPrecision=b.__private__.roundToPrecision=function(e,n){var r=t||n;if(isNaN(e)||isNaN(r))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return e.toFixed(r).replace(/0+$/,"")};E=b.hpf=b.__private__.hpf="number"==typeof h?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return O(e,h)}:"smart"===h?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return O(e,e>-1&&e<1?16:5)}:function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return O(e,16)};var F=b.f2=b.__private__.f2=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f2");return O(e,2)},U=b.__private__.f3=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f3");return O(e,3)},q=b.scale=b.__private__.scale=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.scale");return N===A?e*Se:N===S?e:void 0},V=function(e){return q(function(e){return N===A?Nn()-e:N===S?e:void 0}(e))};b.__private__.setPrecision=b.setPrecision=function(e){"number"==typeof parseInt(e,10)&&(t=parseInt(e,10))};var H,W="00000000000000000000000000000000",G=b.__private__.getFileId=function(){return W},Y=b.__private__.setFileId=function(e){return W=void 0!==e&&/^[a-fA-F0-9]{32}$/.test(e)?e.toUpperCase():W.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),null!==m&&(Ct=new T(m.userPermissions,m.userPassword,m.ownerPassword,W)),W};b.setFileId=function(e){return Y(e),this},b.getFileId=function(){return G()};var X=b.__private__.convertDateToPDFDate=function(e){var t=e.getTimezoneOffset(),n=t<0?"+":"-",r=Math.floor(Math.abs(t/60)),s=Math.abs(t%60),i=[n,Q(r),"'",Q(s),"'"].join("");return["D:",e.getFullYear(),Q(e.getMonth()+1),Q(e.getDate()),Q(e.getHours()),Q(e.getMinutes()),Q(e.getSeconds()),i].join("")},Z=b.__private__.convertPDFDateToDate=function(e){var t=parseInt(e.substr(2,4),10),n=parseInt(e.substr(6,2),10)-1,r=parseInt(e.substr(8,2),10),s=parseInt(e.substr(10,2),10),i=parseInt(e.substr(12,2),10),o=parseInt(e.substr(14,2),10);return new Date(t,n,r,s,i,o,0)},$=b.__private__.setCreationDate=function(e){var t;if(void 0===e&&(e=new Date),e instanceof Date)t=X(e);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(e))throw new Error("Invalid argument passed to jsPDF.setCreationDate");t=e}return H=t},K=b.__private__.getCreationDate=function(e){var t=H;return"jsDate"===e&&(t=Z(H)),t};b.setCreationDate=function(e){return $(e),this},b.getCreationDate=function(e){return K(e)};var J,Q=b.__private__.padd2=function(e){return("0"+parseInt(e)).slice(-2)},ee=b.__private__.padd2Hex=function(e){return("00"+(e=e.toString())).substr(e.length)},te=0,ne=[],re=[],se=0,ie=[],oe=[],ae=!1,le=re;b.__private__.setCustomOutputDestination=function(e){ae=!0,le=e};var ue=function(e){ae||(le=e)};b.__private__.resetCustomOutputDestination=function(){ae=!1,le=re};var ce=b.__private__.out=function(e){return e=e.toString(),se+=e.length+1,le.push(e),le},he=b.__private__.write=function(e){return ce(1===arguments.length?e.toString():Array.prototype.join.call(arguments," "))},de=b.__private__.getArrayBuffer=function(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n);t--;)r[t]=e.charCodeAt(t);return n},fe=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];b.__private__.getStandardFonts=function(){return fe};var pe=e.fontSize||16;b.__private__.setFontSize=b.setFontSize=function(e){return pe=N===S?e/Se:e,this};var me,ge=b.__private__.getFontSize=b.getFontSize=function(){return N===A?pe:pe*Se},ve=e.R2L||!1;b.__private__.setR2L=b.setR2L=function(e){return ve=e,this},b.__private__.getR2L=b.getR2L=function(){return ve};var ye,be=b.__private__.setZoomMode=function(e){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(e))me=e;else if(isNaN(e)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(e))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+e+'" is not recognized.');me=e}else me=parseInt(e,10)};b.__private__.getZoomMode=function(){return me};var _e,je=b.__private__.setPageMode=function(e){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(e))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+e+'" is not recognized.');ye=e};b.__private__.getPageMode=function(){return ye};var we=b.__private__.setLayoutMode=function(e){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(e))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+e+'" is not recognized.');_e=e};b.__private__.getLayoutMode=function(){return _e},b.__private__.setDisplayMode=b.setDisplayMode=function(e,t,n){return be(e),we(t),je(n),this};var xe={title:"",subject:"",author:"",keywords:"",creator:""};b.__private__.getDocumentProperty=function(e){if(-1===Object.keys(xe).indexOf(e))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return xe[e]},b.__private__.getDocumentProperties=function(){return xe},b.__private__.setDocumentProperties=b.setProperties=b.setDocumentProperties=function(e){for(var t in xe)xe.hasOwnProperty(t)&&e[t]&&(xe[t]=e[t]);return this},b.__private__.setDocumentProperty=function(e,t){if(-1===Object.keys(xe).indexOf(e))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return xe[e]=t};var Ae,Se,Ne,Le,ke,Pe={},Ee={},Ce=[],Oe={},Te={},Ie={},Me={},Re=null,Fe=0,De=[],Be=new M(b),ze=e.hotfixes||[],Ue={},qe={},Ve=[],He=function e(t,n,r,s,i,o){if(!(this instanceof e))return new e(t,n,r,s,i,o);isNaN(t)&&(t=1),isNaN(n)&&(n=0),isNaN(r)&&(r=0),isNaN(s)&&(s=1),isNaN(i)&&(i=0),isNaN(o)&&(o=0),this._matrix=[t,n,r,s,i,o]};Object.defineProperty(He.prototype,"sx",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(He.prototype,"shy",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(He.prototype,"shx",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(He.prototype,"sy",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(He.prototype,"tx",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(He.prototype,"ty",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(He.prototype,"a",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(He.prototype,"b",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(He.prototype,"c",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(He.prototype,"d",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(He.prototype,"e",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(He.prototype,"f",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(He.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(He.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(He.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(He.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),He.prototype.join=function(e){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(E).join(e)},He.prototype.multiply=function(e){var t=e.sx*this.sx+e.shy*this.shx,n=e.sx*this.shy+e.shy*this.sy,r=e.shx*this.sx+e.sy*this.shx,s=e.shx*this.shy+e.sy*this.sy,i=e.tx*this.sx+e.ty*this.shx+this.tx,o=e.tx*this.shy+e.ty*this.sy+this.ty;return new He(t,n,r,s,i,o)},He.prototype.decompose=function(){var e=this.sx,t=this.shy,n=this.shx,r=this.sy,s=this.tx,i=this.ty,o=Math.sqrt(e*e+t*t),a=(e/=o)*n+(t/=o)*r;n-=e*a,r-=t*a;var l=Math.sqrt(n*n+r*r);return a/=l,e*(r/=l)<t*(n/=l)&&(e=-e,t=-t,a=-a,o=-o),{scale:new He(o,0,0,l,0,0),translate:new He(1,0,0,1,s,i),rotate:new He(e,t,-t,e,0,0),skew:new He(1,0,a,1,0,0)}},He.prototype.toString=function(e){return this.join(" ")},He.prototype.inversed=function(){var e=this.sx,t=this.shy,n=this.shx,r=this.sy,s=this.tx,i=this.ty,o=1/(e*r-t*n),a=r*o,l=-t*o,u=-n*o,c=e*o;return new He(a,l,u,c,-a*s-u*i,-l*s-c*i)},He.prototype.applyToPoint=function(e){var t=e.x*this.sx+e.y*this.shx+this.tx,n=e.x*this.shy+e.y*this.sy+this.ty;return new mn(t,n)},He.prototype.applyToRectangle=function(e){var t=this.applyToPoint(e),n=this.applyToPoint(new mn(e.x+e.w,e.y+e.h));return new gn(t.x,t.y,n.x-t.x,n.y-t.y)},He.prototype.clone=function(){var e=this.sx,t=this.shy,n=this.shx,r=this.sy,s=this.tx,i=this.ty;return new He(e,t,n,r,s,i)},b.Matrix=He;var We=b.matrixMult=function(e,t){return t.multiply(e)},Ge=new He(1,0,0,1,0,0);b.unitMatrix=b.identityMatrix=Ge;var Ye=function(e,t){if(!Te[e]){var n=(t instanceof D?"Sh":"P")+(Object.keys(Oe).length+1).toString(10);t.id=n,Te[e]=n,Oe[n]=t,Be.publish("addPattern",t)}};b.ShadingPattern=D,b.TilingPattern=B,b.addShadingPattern=function(e,t){return C("addShadingPattern()"),Ye(e,t),this},b.beginTilingPattern=function(e){C("beginTilingPattern()"),yn(e.boundingBox[0],e.boundingBox[1],e.boundingBox[2]-e.boundingBox[0],e.boundingBox[3]-e.boundingBox[1],e.matrix)},b.endTilingPattern=function(e,t){C("endTilingPattern()"),t.stream=oe[J].join("\n"),Ye(e,t),Be.publish("endTilingPattern",t),Ve.pop().restore()};var Xe,Ze=b.__private__.newObject=function(){var e=$e();return Ke(e,!0),e},$e=b.__private__.newObjectDeferred=function(){return te++,ne[te]=function(){return se},te},Ke=function(e,t){return t="boolean"==typeof t&&t,ne[e]=se,t&&ce(e+" 0 obj"),e},Je=b.__private__.newAdditionalObject=function(){var e={objId:$e(),content:""};return ie.push(e),e},Qe=$e(),et=$e(),tt=b.__private__.decodeColorString=function(e){var t=e.split(" ");if(2!==t.length||"g"!==t[1]&&"G"!==t[1])5!==t.length||"k"!==t[4]&&"K"!==t[4]||(t=[(1-t[0])*(1-t[3]),(1-t[1])*(1-t[3]),(1-t[2])*(1-t[3]),"r"]);else{var n=parseFloat(t[0]);t=[n,n,n,"r"]}for(var r="#",s=0;s<3;s++)r+=("0"+Math.floor(255*parseFloat(t[s])).toString(16)).slice(-2);return r},nt=b.__private__.encodeColorString=function(e){var t;"string"==typeof e&&(e={ch1:e});var n=e.ch1,s=e.ch2,i=e.ch3,o=e.ch4,a="draw"===e.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof n&&"#"!==n.charAt(0)){var l=new p(n);if(l.ok)n=l.toHex();else if(!/^\d*\.?\d*$/.test(n))throw new Error('Invalid color "'+n+'" passed to jsPDF.encodeColorString.')}if("string"==typeof n&&/^#[0-9A-Fa-f]{3}$/.test(n)&&(n="#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),"string"==typeof n&&/^#[0-9A-Fa-f]{6}$/.test(n)){var u=parseInt(n.substr(1),16);n=u>>16&255,s=u>>8&255,i=255&u}if(void 0===s||void 0===o&&n===s&&s===i)t="string"==typeof n?n+" "+a[0]:2===e.precision?F(n/255)+" "+a[0]:U(n/255)+" "+a[0];else if(void 0===o||"object"===(0,r.default)(o)){if(o&&!isNaN(o.a)&&0===o.a)return["1.","1.","1.",a[1]].join(" ");t="string"==typeof n?[n,s,i,a[1]].join(" "):2===e.precision?[F(n/255),F(s/255),F(i/255),a[1]].join(" "):[U(n/255),U(s/255),U(i/255),a[1]].join(" ")}else t="string"==typeof n?[n,s,i,o,a[2]].join(" "):2===e.precision?[F(n),F(s),F(i),F(o),a[2]].join(" "):[U(n),U(s),U(i),U(o),a[2]].join(" ");return t},rt=b.__private__.getFilters=function(){return l},st=b.__private__.putStream=function(e){var t=(e=e||{}).data||"",n=e.filters||rt(),r=e.alreadyAppliedFilters||[],s=e.addLength1||!1,i=t.length,o=e.objectId,a=function(e){return e};if(null!==m&&void 0===o)throw new Error("ObjectId must be passed to putStream for file encryption");null!==m&&(a=Ct.encryptor(o,0));var l={};!0===n&&(n=["FlateEncode"]);var u=e.additionalKeyValues||[],c=(l=void 0!==z.API.processDataByFilters?z.API.processDataByFilters(t,n):{data:t,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());if(0!==l.data.length&&(u.push({key:"Length",value:l.data.length}),!0===s&&u.push({key:"Length1",value:i})),0!=c.length)if(c.split("/").length-1==1)u.push({key:"Filter",value:c});else{u.push({key:"Filter",value:"["+c+"]"});for(var h=0;h<u.length;h+=1)if("DecodeParms"===u[h].key){for(var d=[],f=0;f<l.reverseChain.split("/").length-1;f+=1)d.push("null");d.push(u[h].value),u[h].value="["+d.join(" ")+"]"}}ce("<<");for(var p=0;p<u.length;p++)ce("/"+u[p].key+" "+u[p].value);ce(">>"),0!==l.data.length&&(ce("stream"),ce(a(l.data)),ce("endstream"))},it=b.__private__.putPage=function(e){var t=e.number,n=e.data,r=e.objId,s=e.contentsObjId;Ke(r,!0),ce("<</Type /Page"),ce("/Parent "+e.rootDictionaryObjId+" 0 R"),ce("/Resources "+e.resourceDictionaryObjId+" 0 R"),ce("/MediaBox ["+parseFloat(E(e.mediaBox.bottomLeftX))+" "+parseFloat(E(e.mediaBox.bottomLeftY))+" "+E(e.mediaBox.topRightX)+" "+E(e.mediaBox.topRightY)+"]"),null!==e.cropBox&&ce("/CropBox ["+E(e.cropBox.bottomLeftX)+" "+E(e.cropBox.bottomLeftY)+" "+E(e.cropBox.topRightX)+" "+E(e.cropBox.topRightY)+"]"),null!==e.bleedBox&&ce("/BleedBox ["+E(e.bleedBox.bottomLeftX)+" "+E(e.bleedBox.bottomLeftY)+" "+E(e.bleedBox.topRightX)+" "+E(e.bleedBox.topRightY)+"]"),null!==e.trimBox&&ce("/TrimBox ["+E(e.trimBox.bottomLeftX)+" "+E(e.trimBox.bottomLeftY)+" "+E(e.trimBox.topRightX)+" "+E(e.trimBox.topRightY)+"]"),null!==e.artBox&&ce("/ArtBox ["+E(e.artBox.bottomLeftX)+" "+E(e.artBox.bottomLeftY)+" "+E(e.artBox.topRightX)+" "+E(e.artBox.topRightY)+"]"),"number"==typeof e.userUnit&&1!==e.userUnit&&ce("/UserUnit "+e.userUnit),Be.publish("putPage",{objId:r,pageContext:De[t],pageNumber:t,page:n}),ce("/Contents "+s+" 0 R"),ce(">>"),ce("endobj");var i=n.join("\n");return N===S&&(i+="\nQ"),Ke(s,!0),st({data:i,filters:rt(),objectId:s}),ce("endobj"),r},ot=b.__private__.putPages=function(){var e,t,n=[];for(e=1;e<=Fe;e++)De[e].objId=$e(),De[e].contentsObjId=$e();for(e=1;e<=Fe;e++)n.push(it({number:e,data:oe[e],objId:De[e].objId,contentsObjId:De[e].contentsObjId,mediaBox:De[e].mediaBox,cropBox:De[e].cropBox,bleedBox:De[e].bleedBox,trimBox:De[e].trimBox,artBox:De[e].artBox,userUnit:De[e].userUnit,rootDictionaryObjId:Qe,resourceDictionaryObjId:et}));Ke(Qe,!0),ce("<</Type /Pages");var r="/Kids [";for(t=0;t<Fe;t++)r+=n[t]+" 0 R ";ce(r+"]"),ce("/Count "+Fe),ce(">>"),ce("endobj"),Be.publish("postPutPages")},at=function(e){Be.publish("putFont",{font:e,out:ce,newObject:Ze,putStream:st}),!0!==e.isAlreadyPutted&&(e.objectNumber=Ze(),ce("<<"),ce("/Type /Font"),ce("/BaseFont /"+I(e.postScriptName)),ce("/Subtype /Type1"),"string"==typeof e.encoding&&ce("/Encoding /"+e.encoding),ce("/FirstChar 32"),ce("/LastChar 255"),ce(">>"),ce("endobj"))},lt=function(e){e.objectNumber=Ze();var t=[];t.push({key:"Type",value:"/XObject"}),t.push({key:"Subtype",value:"/Form"}),t.push({key:"BBox",value:"["+[E(e.x),E(e.y),E(e.x+e.width),E(e.y+e.height)].join(" ")+"]"}),t.push({key:"Matrix",value:"["+e.matrix.toString()+"]"});var n=e.pages[1].join("\n");st({data:n,additionalKeyValues:t,objectId:e.objectNumber}),ce("endobj")},ut=function(e,t){t||(t=21);var n=Ze(),r=function(e,t){var n,r=[],s=1/(t-1);for(n=0;n<1;n+=s)r.push(n);if(r.push(1),0!=e[0].offset){var i={offset:0,color:e[0].color};e.unshift(i)}if(1!=e[e.length-1].offset){var o={offset:1,color:e[e.length-1].color};e.push(o)}for(var a="",l=0,u=0;u<r.length;u++){for(n=r[u];n>e[l+1].offset;)l++;var c=e[l].offset,h=(n-c)/(e[l+1].offset-c),d=e[l].color,f=e[l+1].color;a+=ee(Math.round((1-h)*d[0]+h*f[0]).toString(16))+ee(Math.round((1-h)*d[1]+h*f[1]).toString(16))+ee(Math.round((1-h)*d[2]+h*f[2]).toString(16))}return a.trim()}(e.colors,t),s=[];s.push({key:"FunctionType",value:"0"}),s.push({key:"Domain",value:"[0.0 1.0]"}),s.push({key:"Size",value:"["+t+"]"}),s.push({key:"BitsPerSample",value:"8"}),s.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),s.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),st({data:r,additionalKeyValues:s,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:n}),ce("endobj"),e.objectNumber=Ze(),ce("<< /ShadingType "+e.type),ce("/ColorSpace /DeviceRGB");var i="/Coords ["+E(parseFloat(e.coords[0]))+" "+E(parseFloat(e.coords[1]))+" ";2===e.type?i+=E(parseFloat(e.coords[2]))+" "+E(parseFloat(e.coords[3])):i+=E(parseFloat(e.coords[2]))+" "+E(parseFloat(e.coords[3]))+" "+E(parseFloat(e.coords[4]))+" "+E(parseFloat(e.coords[5])),ce(i+="]"),e.matrix&&ce("/Matrix ["+e.matrix.toString()+"]"),ce("/Function "+n+" 0 R"),ce("/Extend [true true]"),ce(">>"),ce("endobj")},ct=function(e,t){var n=$e(),r=Ze();t.push({resourcesOid:n,objectOid:r}),e.objectNumber=r;var s=[];s.push({key:"Type",value:"/Pattern"}),s.push({key:"PatternType",value:"1"}),s.push({key:"PaintType",value:"1"}),s.push({key:"TilingType",value:"1"}),s.push({key:"BBox",value:"["+e.boundingBox.map(E).join(" ")+"]"}),s.push({key:"XStep",value:E(e.xStep)}),s.push({key:"YStep",value:E(e.yStep)}),s.push({key:"Resources",value:n+" 0 R"}),e.matrix&&s.push({key:"Matrix",value:"["+e.matrix.toString()+"]"}),st({data:e.stream,additionalKeyValues:s,objectId:e.objectNumber}),ce("endobj")},ht=function(e){for(var t in e.objectNumber=Ze(),ce("<<"),e)switch(t){case"opacity":ce("/ca "+F(e[t]));break;case"stroke-opacity":ce("/CA "+F(e[t]))}ce(">>"),ce("endobj")},dt=function(e){Ke(e.resourcesOid,!0),ce("<<"),ce("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var e in ce("/Font <<"),Pe)Pe.hasOwnProperty(e)&&(!1===v||!0===v&&y.hasOwnProperty(e))&&ce("/"+e+" "+Pe[e].objectNumber+" 0 R");ce(">>")}(),function(){if(Object.keys(Oe).length>0){for(var e in ce("/Shading <<"),Oe)Oe.hasOwnProperty(e)&&Oe[e]instanceof D&&Oe[e].objectNumber>=0&&ce("/"+e+" "+Oe[e].objectNumber+" 0 R");Be.publish("putShadingPatternDict"),ce(">>")}}(),function(e){if(Object.keys(Oe).length>0){for(var t in ce("/Pattern <<"),Oe)Oe.hasOwnProperty(t)&&Oe[t]instanceof b.TilingPattern&&Oe[t].objectNumber>=0&&Oe[t].objectNumber<e&&ce("/"+t+" "+Oe[t].objectNumber+" 0 R");Be.publish("putTilingPatternDict"),ce(">>")}}(e.objectOid),function(){if(Object.keys(Ie).length>0){var e;for(e in ce("/ExtGState <<"),Ie)Ie.hasOwnProperty(e)&&Ie[e].objectNumber>=0&&ce("/"+e+" "+Ie[e].objectNumber+" 0 R");Be.publish("putGStateDict"),ce(">>")}}(),function(){for(var e in ce("/XObject <<"),Ue)Ue.hasOwnProperty(e)&&Ue[e].objectNumber>=0&&ce("/"+e+" "+Ue[e].objectNumber+" 0 R");Be.publish("putXobjectDict"),ce(">>")}(),ce(">>"),ce("endobj")},ft=function(e){Ee[e.fontName]=Ee[e.fontName]||{},Ee[e.fontName][e.fontStyle]=e.id},pt=function(e,t,n,r,s){var i={id:"F"+(Object.keys(Pe).length+1).toString(10),postScriptName:e,fontName:t,fontStyle:n,encoding:r,isStandardFont:s||!1,metadata:{}};return Be.publish("addFont",{font:i,instance:this}),Pe[i.id]=i,ft(i),i.id},mt=b.__private__.pdfEscape=b.pdfEscape=function(e,t){return function(e,t){var n,r,s,i,o,a,l,u,c;if(s=(t=t||{}).sourceEncoding||"Unicode",o=t.outputEncoding,(t.autoencode||o)&&Pe[Ae].metadata&&Pe[Ae].metadata[s]&&Pe[Ae].metadata[s].encoding&&(i=Pe[Ae].metadata[s].encoding,!o&&Pe[Ae].encoding&&(o=Pe[Ae].encoding),!o&&i.codePages&&(o=i.codePages[0]),"string"==typeof o&&(o=i[o]),o)){for(l=!1,a=[],n=0,r=e.length;n<r;n++)(u=o[e.charCodeAt(n)])?a.push(String.fromCharCode(u)):a.push(e[n]),a[n].charCodeAt(0)>>8&&(l=!0);e=a.join("")}for(n=e.length;void 0===l&&0!==n;)e.charCodeAt(n-1)>>8&&(l=!0),n--;if(!l)return e;for(a=t.noBOM?[]:[254,255],n=0,r=e.length;n<r;n++){if((c=(u=e.charCodeAt(n))>>8)>>8)throw new Error("Character at position "+n+" of string '"+e+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");a.push(c),a.push(u-(c<<8))}return String.fromCharCode.apply(void 0,a)}(e,t).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},gt=b.__private__.beginPage=function(e){oe[++Fe]=[],De[Fe]={objId:0,contentsObjId:0,userUnit:Number(c),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(e[0]),topRightY:Number(e[1])}},bt(Fe),ue(oe[J])},vt=function(e,t){var r,s,o;switch(n=t||n,"string"==typeof e&&(r=x(e.toLowerCase()),Array.isArray(r)&&(s=r[0],o=r[1])),Array.isArray(e)&&(s=e[0]*Se,o=e[1]*Se),isNaN(s)&&(s=i[0],o=i[1]),(s>14400||o>14400)&&(u.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),s=Math.min(14400,s),o=Math.min(14400,o)),i=[s,o],n.substr(0,1)){case"l":o>s&&(i=[o,s]);break;case"p":s>o&&(i=[o,s])}gt(i),Kt(Zt),ce(on),0!==dn&&ce(dn+" J"),0!==fn&&ce(fn+" j"),Be.publish("addPage",{pageNumber:Fe})},yt=function(e){e>0&&e<=Fe&&(oe.splice(e,1),De.splice(e,1),Fe--,J>Fe&&(J=Fe),this.setPage(J))},bt=function(e){e>0&&e<=Fe&&(J=e)},_t=b.__private__.getNumberOfPages=b.getNumberOfPages=function(){return oe.length-1},jt=function(e,t,n){var r,s=void 0;return n=n||{},e=void 0!==e?e:Pe[Ae].fontName,t=void 0!==t?t:Pe[Ae].fontStyle,r=e.toLowerCase(),void 0!==Ee[r]&&void 0!==Ee[r][t]?s=Ee[r][t]:void 0!==Ee[e]&&void 0!==Ee[e][t]?s=Ee[e][t]:!1===n.disableWarning&&u.warn("Unable to look up font label for font '"+e+"', '"+t+"'. Refer to getFontList() for available fonts."),s||n.noFallback||null==(s=Ee.times[t])&&(s=Ee.times.normal),s},wt=b.__private__.putInfo=function(){var e=Ze(),t=function(e){return e};for(var n in null!==m&&(t=Ct.encryptor(e,0)),ce("<<"),ce("/Producer ("+mt(t("jsPDF "+z.version))+")"),xe)xe.hasOwnProperty(n)&&xe[n]&&ce("/"+n.substr(0,1).toUpperCase()+n.substr(1)+" ("+mt(t(xe[n]))+")");ce("/CreationDate ("+mt(t(H))+")"),ce(">>"),ce("endobj")},xt=b.__private__.putCatalog=function(e){var t=(e=e||{}).rootDictionaryObjId||Qe;switch(Ze(),ce("<<"),ce("/Type /Catalog"),ce("/Pages "+t+" 0 R"),me||(me="fullwidth"),me){case"fullwidth":ce("/OpenAction [3 0 R /FitH null]");break;case"fullheight":ce("/OpenAction [3 0 R /FitV null]");break;case"fullpage":ce("/OpenAction [3 0 R /Fit]");break;case"original":ce("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+me;"%"===n.substr(n.length-1)&&(me=parseInt(me)/100),"number"==typeof me&&ce("/OpenAction [3 0 R /XYZ null null "+F(me)+"]")}switch(_e||(_e="continuous"),_e){case"continuous":ce("/PageLayout /OneColumn");break;case"single":ce("/PageLayout /SinglePage");break;case"two":case"twoleft":ce("/PageLayout /TwoColumnLeft");break;case"tworight":ce("/PageLayout /TwoColumnRight")}ye&&ce("/PageMode /"+ye),Be.publish("putCatalog"),ce(">>"),ce("endobj")},At=b.__private__.putTrailer=function(){ce("trailer"),ce("<<"),ce("/Size "+(te+1)),ce("/Root "+te+" 0 R"),ce("/Info "+(te-1)+" 0 R"),null!==m&&ce("/Encrypt "+Ct.oid+" 0 R"),ce("/ID [ <"+W+"> <"+W+"> ]"),ce(">>")},St=b.__private__.putHeader=function(){ce("%PDF-"+_),ce("%ºß¬à")},Nt=b.__private__.putXRef=function(){var e="0000000000";ce("xref"),ce("0 "+(te+1)),ce("0000000000 65535 f ");for(var t=1;t<=te;t++)"function"==typeof ne[t]?ce((e+ne[t]()).slice(-10)+" 00000 n "):void 0!==ne[t]?ce((e+ne[t]).slice(-10)+" 00000 n "):ce("0000000000 00000 n ")},Lt=b.__private__.buildDocument=function(){var e;te=0,se=0,re=[],ne=[],ie=[],Qe=$e(),et=$e(),ue(re),Be.publish("buildDocument"),St(),ot(),function(){Be.publish("putAdditionalObjects");for(var e=0;e<ie.length;e++){var t=ie[e];Ke(t.objId,!0),ce(t.content),ce("endobj")}Be.publish("postPutAdditionalObjects")}(),e=[],function(){for(var e in Pe)Pe.hasOwnProperty(e)&&(!1===v||!0===v&&y.hasOwnProperty(e))&&at(Pe[e])}(),function(){var e;for(e in Ie)Ie.hasOwnProperty(e)&&ht(Ie[e])}(),function(){for(var e in Ue)Ue.hasOwnProperty(e)&<(Ue[e])}(),function(e){var t;for(t in Oe)Oe.hasOwnProperty(t)&&(Oe[t]instanceof D?ut(Oe[t]):Oe[t]instanceof B&&ct(Oe[t],e))}(e),Be.publish("putResources"),e.forEach(dt),dt({resourcesOid:et,objectOid:Number.MAX_SAFE_INTEGER}),Be.publish("postPutResources"),null!==m&&(Ct.oid=Ze(),ce("<<"),ce("/Filter /Standard"),ce("/V "+Ct.v),ce("/R "+Ct.r),ce("/U <"+Ct.toHexString(Ct.U)+">"),ce("/O <"+Ct.toHexString(Ct.O)+">"),ce("/P "+Ct.P),ce(">>"),ce("endobj")),wt(),xt();var t=se;return Nt(),At(),ce("startxref"),ce(""+t),ce("%%EOF"),ue(oe[J]),re.join("\n")},kt=b.__private__.getBlob=function(e){return new Blob([de(e)],{type:"application/pdf"})},Pt=b.output=b.__private__.output=(Xe=function(e,t){switch("string"==typeof(t=t||{})?t={filename:t}:t.filename=t.filename||"generated.pdf",e){case void 0:return Lt();case"save":b.save(t.filename);break;case"arraybuffer":return de(Lt());case"blob":return kt(Lt());case"bloburi":case"bloburl":if(void 0!==a.URL&&"function"==typeof a.URL.createObjectURL)return a.URL&&a.URL.createObjectURL(kt(Lt()))||void 0;u.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var n="",r=Lt();try{n=g(r)}catch(e){n=g(unescape(encodeURIComponent(r)))}return"data:application/pdf;filename="+t.filename+";base64,"+n;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(a)){var s="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",i=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';t.pdfObjectUrl&&(s=t.pdfObjectUrl,i="");var o='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+s+'"'+i+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(t)+");<\/script></body></html>",l=a.open();return null!==l&&l.document.write(o),l}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(a)){var c='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(t.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+t.filename+'" width="500px" height="400px" /></body></html>',h=a.open();if(null!==h){h.document.write(c);var d=this;h.document.documentElement.querySelector("#pdfViewer").onload=function(){h.document.title=t.filename,h.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(d.output("bloburl"))}}return h}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(a))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var f='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",t)+'"></iframe></body></html>',p=a.open();if(null!==p&&(p.document.write(f),p.document.title=t.filename),p||"undefined"==typeof safari)return p;break;case"datauri":case"dataurl":return a.document.location.href=this.output("datauristring",t);default:return null}},Xe.foo=function(){try{return Xe.apply(this,arguments)}catch(n){var e=n.stack||"";~e.indexOf(" at ")&&(e=e.split(" at ")[1]);var t="Error in function "+e.split("\n")[0].split("<")[0]+": "+n.message;if(!a.console)throw new Error(t);a.console.error(t,n),a.alert&&alert(t)}},Xe.foo.bar=Xe,Xe.foo),Et=function(e){return!0===Array.isArray(ze)&&ze.indexOf(e)>-1};switch(s){case"pt":Se=1;break;case"mm":Se=72/25.4;break;case"cm":Se=72/2.54;break;case"in":Se=72;break;case"px":Se=1==Et("px_scaling")?.75:96/72;break;case"pc":case"em":Se=12;break;case"ex":Se=6;break;default:if("number"!=typeof s)throw new Error("Invalid unit: "+s);Se=s}var Ct=null;$(),Y();var Ot=b.__private__.getPageInfo=b.getPageInfo=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:De[e].objId,pageNumber:e,pageContext:De[e]}},Tt=b.__private__.getPageInfoByObjId=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var t in De)if(De[t].objId===e)break;return Ot(t)},It=b.__private__.getCurrentPageInfo=b.getCurrentPageInfo=function(){return{objId:De[J].objId,pageNumber:J,pageContext:De[J]}};b.addPage=function(){return vt.apply(this,arguments),this},b.setPage=function(){return bt.apply(this,arguments),ue.call(this,oe[J]),this},b.insertPage=function(e){return this.addPage(),this.movePage(J,e),this},b.movePage=function(e,t){var n,r;if(e>t){n=oe[e],r=De[e];for(var s=e;s>t;s--)oe[s]=oe[s-1],De[s]=De[s-1];oe[t]=n,De[t]=r,this.setPage(t)}else if(e<t){n=oe[e],r=De[e];for(var i=e;i<t;i++)oe[i]=oe[i+1],De[i]=De[i+1];oe[t]=n,De[t]=r,this.setPage(t)}return this},b.deletePage=function(){return yt.apply(this,arguments),this},b.__private__.text=b.text=function(e,t,n,s,i){var o,a,l,u,c,h,d,f,p,m=(s=s||{}).scope||this;if("number"==typeof e&&"number"==typeof t&&("string"==typeof n||Array.isArray(n))){var g=n;n=t,t=e,e=g}if(arguments[3]instanceof He==0?(l=arguments[4],u=arguments[5],"object"===(0,r.default)(d=arguments[3])&&null!==d||("string"==typeof l&&(u=l,l=null),"string"==typeof d&&(u=d,d=null),"number"==typeof d&&(l=d,d=null),s={flags:d,angle:l,align:u})):(C("The transform parameter of text() with a Matrix value"),p=i),isNaN(t)||isNaN(n)||null==e)throw new Error("Invalid arguments passed to jsPDF.text");if(0===e.length)return m;var v,b="",_="number"==typeof s.lineHeightFactor?s.lineHeightFactor:Xt,j=m.internal.scaleFactor;function w(e){return e=e.split("\t").join(Array(s.TabLen||9).join(" ")),mt(e,d)}function x(e){for(var t,n=e.concat(),r=[],s=n.length;s--;)"string"==typeof(t=n.shift())?r.push(t):Array.isArray(e)&&(1===t.length||void 0===t[1]&&void 0===t[2])?r.push(t[0]):r.push([t[0],t[1],t[2]]);return r}function A(e,t){var n;if("string"==typeof e)n=t(e)[0];else if(Array.isArray(e)){for(var r,s,i=e.concat(),o=[],a=i.length;a--;)"string"==typeof(r=i.shift())?o.push(t(r)[0]):Array.isArray(r)&&"string"==typeof r[0]&&(s=t(r[0],r[1],r[2]),o.push([s[0],s[1],s[2]]));n=o}return n}var L=!1,k=!0;if("string"==typeof e)L=!0;else if(Array.isArray(e)){var P=e.concat();a=[];for(var O,T=P.length;T--;)("string"!=typeof(O=P.shift())||Array.isArray(O)&&"string"!=typeof O[0])&&(k=!1);L=k}if(!1===L)throw new Error('Type of text must be string or Array. "'+e+'" is not recognized.');"string"==typeof e&&(e=e.match(/[\r?\n]/)?e.split(/\r\n|\r|\n/g):[e]);var I=pe/m.internal.scaleFactor,M=I*(_-1);switch(s.baseline){case"bottom":n-=M;break;case"top":n+=I-M;break;case"hanging":n+=I-2*M;break;case"middle":n+=I/2-M}if((h=s.maxWidth||0)>0&&("string"==typeof e?e=m.splitTextToSize(e,h):"[object Array]"===Object.prototype.toString.call(e)&&(e=e.reduce(function(e,t){return e.concat(m.splitTextToSize(t,h))},[]))),o={text:e,x:t,y:n,options:s,mutex:{pdfEscape:mt,activeFontKey:Ae,fonts:Pe,activeFontSize:pe}},Be.publish("preProcessText",o),e=o.text,l=(s=o.options).angle,p instanceof He==0&&l&&"number"==typeof l){l*=Math.PI/180,0===s.rotationDirection&&(l=-l),N===S&&(l=-l);var R=Math.cos(l),F=Math.sin(l);p=new He(R,F,-F,R,0,0)}else l&&l instanceof He&&(p=l);N!==S||p||(p=Ge),void 0!==(c=s.charSpace||cn)&&(b+=E(q(c))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(f=s.horizontalScale)&&(b+=E(100*f)+" Tz\n"),s.lang;var D=-1,B=void 0!==s.renderingMode?s.renderingMode:s.stroke,z=m.internal.getCurrentPageInfo().pageContext;switch(B){case 0:case!1:case"fill":D=0;break;case 1:case!0:case"stroke":D=1;break;case 2:case"fillThenStroke":D=2;break;case 3:case"invisible":D=3;break;case 4:case"fillAndAddForClipping":D=4;break;case 5:case"strokeAndAddPathForClipping":D=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":D=6;break;case 7:case"addToPathForClipping":D=7}var U=void 0!==z.usedRenderingMode?z.usedRenderingMode:-1;-1!==D?b+=D+" Tr\n":-1!==U&&(b+="0 Tr\n"),-1!==D&&(z.usedRenderingMode=D),u=s.align||"left";var V,H=pe*_,W=m.internal.pageSize.getWidth(),G=Pe[Ae];c=s.charSpace||cn,h=s.maxWidth||0,d=Object.assign({autoencode:!0,noBOM:!0},s.flags);var Y=[],X=function(e){return m.getStringUnitWidth(e,{font:G,charSpace:c,fontSize:pe,doKerning:!1})*pe/j};if("[object Array]"===Object.prototype.toString.call(e)){var Z;a=x(e),"left"!==u&&(V=a.map(X));var $,K=0;if("right"===u){t-=V[0],e=[],T=a.length;for(var J=0;J<T;J++)0===J?($=tn(t),Z=nn(n)):($=q(K-V[J]),Z=-H),e.push([a[J],$,Z]),K=V[J]}else if("center"===u){t-=V[0]/2,e=[],T=a.length;for(var Q=0;Q<T;Q++)0===Q?($=tn(t),Z=nn(n)):($=q((K-V[Q])/2),Z=-H),e.push([a[Q],$,Z]),K=V[Q]}else if("left"===u){e=[],T=a.length;for(var ee=0;ee<T;ee++)e.push(a[ee])}else if("justify"===u&&"Identity-H"===G.encoding){e=[],T=a.length,h=0!==h?h:W;for(var te=0,ne=0;ne<T;ne++)if(Z=0===ne?nn(n):-H,$=0===ne?tn(t):te,ne<T-1){var re=q((h-V[ne])/(a[ne].split(" ").length-1)),se=a[ne].split(" ");e.push([se[0]+" ",$,Z]),te=0;for(var ie=1;ie<se.length;ie++){var oe=(X(se[ie-1]+" "+se[ie])-X(se[ie]))*j+re;ie==se.length-1?e.push([se[ie],oe,0]):e.push([se[ie]+" ",oe,0]),te-=oe}}else e.push([a[ne],$,Z]);e.push(["",te,0])}else{if("justify"!==u)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(e=[],T=a.length,h=0!==h?h:W,ne=0;ne<T;ne++){Z=0===ne?nn(n):-H,$=0===ne?tn(t):0;var ae=a[ne].split(" ").length-1,le=ae>0?(h-V[ne])/ae:0;ne<T-1?Y.push(E(q(le))):Y.push(0),e.push([a[ne],$,Z])}}}!0===("boolean"==typeof s.R2L?s.R2L:ve)&&(e=A(e,function(e,t,n){return[e.split("").reverse().join(""),t,n]})),o={text:e,x:t,y:n,options:s,mutex:{pdfEscape:mt,activeFontKey:Ae,fonts:Pe,activeFontSize:pe}},Be.publish("postProcessText",o),e=o.text,v=o.mutex.isHex||!1;var ue=Pe[Ae].encoding;"WinAnsiEncoding"!==ue&&"StandardEncoding"!==ue||(e=A(e,function(e,t,n){return[w(e),t,n]})),a=x(e),e=[];for(var he,de,fe,me=Array.isArray(a[0])?1:0,ge="",ye=function(e,t,n){var r="";return n instanceof He?(n="number"==typeof s.angle?We(n,new He(1,0,0,1,e,t)):We(new He(1,0,0,1,e,t),n),N===S&&(n=We(new He(1,0,0,-1,0,0),n)),r=n.join(" ")+" Tm\n"):r=E(e)+" "+E(t)+" Td\n",r},be=0;be<a.length;be++){switch(ge="",me){case 1:fe=(v?"<":"(")+a[be][0]+(v?">":")"),he=parseFloat(a[be][1]),de=parseFloat(a[be][2]);break;case 0:fe=(v?"<":"(")+a[be]+(v?">":")"),he=tn(t),de=nn(n)}void 0!==Y&&void 0!==Y[be]&&(ge=Y[be]+" Tw\n"),0===be?e.push(ge+ye(he,de,p)+fe):0===me?e.push(ge+fe):1===me&&e.push(ge+ye(he,de,p)+fe)}e=0===me?e.join(" Tj\nT* "):e.join(" Tj\n"),e+=" Tj\n";var _e="BT\n/";return _e+=Ae+" "+pe+" Tf\n",_e+=E(pe*_)+" TL\n",_e+=ln+"\n",_e+=b,_e+=e,ce(_e+="ET"),y[Ae]=!0,m};var Mt=b.__private__.clip=b.clip=function(e){return ce("evenodd"===e?"W*":"W"),this};b.clipEvenOdd=function(){return Mt("evenodd")},b.__private__.discardPath=b.discardPath=function(){return ce("n"),this};var Rt=b.__private__.isValidStyle=function(e){var t=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(e)&&(t=!0),t};b.__private__.setDefaultPathOperation=b.setDefaultPathOperation=function(e){return Rt(e)&&(d=e),this};var Ft=b.__private__.getStyle=b.getStyle=function(e){var t=d;switch(e){case"D":case"S":t="S";break;case"F":t="f";break;case"FD":case"DF":t="B";break;case"f":case"f*":case"B":case"B*":t=e}return t},Dt=b.close=function(){return ce("h"),this};b.stroke=function(){return ce("S"),this},b.fill=function(e){return Bt("f",e),this},b.fillEvenOdd=function(e){return Bt("f*",e),this},b.fillStroke=function(e){return Bt("B",e),this},b.fillStrokeEvenOdd=function(e){return Bt("B*",e),this};var Bt=function(e,t){"object"===(0,r.default)(t)?qt(t,e):ce(e)},zt=function(e){null===e||N===S&&void 0===e||(e=Ft(e),ce(e))};function Ut(e,t,n,r,s){var i=new B(t||this.boundingBox,n||this.xStep,r||this.yStep,this.gState,s||this.matrix);i.stream=this.stream;var o=e+"$$"+this.cloneIndex+++"$$";return Ye(o,i),i}var qt=function(e,t){var n=Te[e.key],r=Oe[n];if(r instanceof D)ce("q"),ce(Vt(t)),r.gState&&b.setGState(r.gState),ce(e.matrix.toString()+" cm"),ce("/"+n+" sh"),ce("Q");else if(r instanceof B){var s=new He(1,0,0,-1,0,Nn());e.matrix&&(s=s.multiply(e.matrix||Ge),n=Ut.call(r,e.key,e.boundingBox,e.xStep,e.yStep,s).id),ce("q"),ce("/Pattern cs"),ce("/"+n+" scn"),r.gState&&b.setGState(r.gState),ce(t),ce("Q")}},Vt=function(e){switch(e){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Ht=b.moveTo=function(e,t){return ce(E(q(e))+" "+E(V(t))+" m"),this},Wt=b.lineTo=function(e,t){return ce(E(q(e))+" "+E(V(t))+" l"),this},Gt=b.curveTo=function(e,t,n,r,s,i){return ce([E(q(e)),E(V(t)),E(q(n)),E(V(r)),E(q(s)),E(V(i)),"c"].join(" ")),this};b.__private__.line=b.line=function(e,t,n,r,s){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||!Rt(s))throw new Error("Invalid arguments passed to jsPDF.line");return N===A?this.lines([[n-e,r-t]],e,t,[1,1],s||"S"):this.lines([[n-e,r-t]],e,t,[1,1]).stroke()},b.__private__.lines=b.lines=function(e,t,n,r,s,i){var o,a,l,u,c,h,d,f,p,m,g,v;if("number"==typeof e&&(v=n,n=t,t=e,e=v),r=r||[1,1],i=i||!1,isNaN(t)||isNaN(n)||!Array.isArray(e)||!Array.isArray(r)||!Rt(s)||"boolean"!=typeof i)throw new Error("Invalid arguments passed to jsPDF.lines");for(Ht(t,n),o=r[0],a=r[1],u=e.length,m=t,g=n,l=0;l<u;l++)2===(c=e[l]).length?(m=c[0]*o+m,g=c[1]*a+g,Wt(m,g)):(h=c[0]*o+m,d=c[1]*a+g,f=c[2]*o+m,p=c[3]*a+g,m=c[4]*o+m,g=c[5]*a+g,Gt(h,d,f,p,m,g));return i&&Dt(),zt(s),this},b.path=function(e){for(var t=0;t<e.length;t++){var n=e[t],r=n.c;switch(n.op){case"m":Ht(r[0],r[1]);break;case"l":Wt(r[0],r[1]);break;case"c":Gt.apply(this,r);break;case"h":Dt()}}return this},b.__private__.rect=b.rect=function(e,t,n,r,s){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||!Rt(s))throw new Error("Invalid arguments passed to jsPDF.rect");return N===A&&(r=-r),ce([E(q(e)),E(V(t)),E(q(n)),E(q(r)),"re"].join(" ")),zt(s),this},b.__private__.triangle=b.triangle=function(e,t,n,r,s,i,o){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(s)||isNaN(i)||!Rt(o))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[n-e,r-t],[s-n,i-r],[e-s,t-i]],e,t,[1,1],o,!0),this},b.__private__.roundedRect=b.roundedRect=function(e,t,n,r,s,i,o){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(s)||isNaN(i)||!Rt(o))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var a=4/3*(Math.SQRT2-1);return s=Math.min(s,.5*n),i=Math.min(i,.5*r),this.lines([[n-2*s,0],[s*a,0,s,i-i*a,s,i],[0,r-2*i],[0,i*a,-s*a,i,-s,i],[2*s-n,0],[-s*a,0,-s,-i*a,-s,-i],[0,2*i-r],[0,-i*a,s*a,-i,s,-i]],e+s,t,[1,1],o,!0),this},b.__private__.ellipse=b.ellipse=function(e,t,n,r,s){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||!Rt(s))throw new Error("Invalid arguments passed to jsPDF.ellipse");var i=4/3*(Math.SQRT2-1)*n,o=4/3*(Math.SQRT2-1)*r;return Ht(e+n,t),Gt(e+n,t-o,e+i,t-r,e,t-r),Gt(e-i,t-r,e-n,t-o,e-n,t),Gt(e-n,t+o,e-i,t+r,e,t+r),Gt(e+i,t+r,e+n,t+o,e+n,t),zt(s),this},b.__private__.circle=b.circle=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||!Rt(r))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(e,t,n,n,r)},b.setFont=function(e,t,n){return n&&(t=P(t,n)),Ae=jt(e,t,{disableWarning:!1}),this};var Yt=b.__private__.getFont=b.getFont=function(){return Pe[jt.apply(b,arguments)]};b.__private__.getFontList=b.getFontList=function(){var e,t,n={};for(e in Ee)if(Ee.hasOwnProperty(e))for(t in n[e]=[],Ee[e])Ee[e].hasOwnProperty(t)&&n[e].push(t);return n},b.addFont=function(e,t,n,r,s){var i=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==i.indexOf(arguments[3])?s=arguments[3]:arguments[3]&&-1==i.indexOf(arguments[3])&&(n=P(n,r)),pt.call(this,e,t,n,s=s||"Identity-H")};var Xt,Zt=e.lineWidth||.200025,$t=b.__private__.getLineWidth=b.getLineWidth=function(){return Zt},Kt=b.__private__.setLineWidth=b.setLineWidth=function(e){return Zt=e,ce(E(q(e))+" w"),this};b.__private__.setLineDash=z.API.setLineDash=z.API.setLineDashPattern=function(e,t){if(e=e||[],t=t||0,isNaN(t)||!Array.isArray(e))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return e=e.map(function(e){return E(q(e))}).join(" "),t=E(q(t)),ce("["+e+"] "+t+" d"),this};var Jt=b.__private__.getLineHeight=b.getLineHeight=function(){return pe*Xt};b.__private__.getLineHeight=b.getLineHeight=function(){return pe*Xt};var Qt=b.__private__.setLineHeightFactor=b.setLineHeightFactor=function(e){return"number"==typeof(e=e||1.15)&&(Xt=e),this},en=b.__private__.getLineHeightFactor=b.getLineHeightFactor=function(){return Xt};Qt(e.lineHeight);var tn=b.__private__.getHorizontalCoordinate=function(e){return q(e)},nn=b.__private__.getVerticalCoordinate=function(e){return N===S?e:De[J].mediaBox.topRightY-De[J].mediaBox.bottomLeftY-q(e)},rn=b.__private__.getHorizontalCoordinateString=b.getHorizontalCoordinateString=function(e){return E(tn(e))},sn=b.__private__.getVerticalCoordinateString=b.getVerticalCoordinateString=function(e){return E(nn(e))},on=e.strokeColor||"0 G";b.__private__.getStrokeColor=b.getDrawColor=function(){return tt(on)},b.__private__.setStrokeColor=b.setDrawColor=function(e,t,n,r){return on=nt({ch1:e,ch2:t,ch3:n,ch4:r,pdfColorType:"draw",precision:2}),ce(on),this};var an=e.fillColor||"0 g";b.__private__.getFillColor=b.getFillColor=function(){return tt(an)},b.__private__.setFillColor=b.setFillColor=function(e,t,n,r){return an=nt({ch1:e,ch2:t,ch3:n,ch4:r,pdfColorType:"fill",precision:2}),ce(an),this};var ln=e.textColor||"0 g",un=b.__private__.getTextColor=b.getTextColor=function(){return tt(ln)};b.__private__.setTextColor=b.setTextColor=function(e,t,n,r){return ln=nt({ch1:e,ch2:t,ch3:n,ch4:r,pdfColorType:"text",precision:3}),this};var cn=e.charSpace,hn=b.__private__.getCharSpace=b.getCharSpace=function(){return parseFloat(cn||0)};b.__private__.setCharSpace=b.setCharSpace=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return cn=e,this};var dn=0;b.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},b.__private__.setLineCap=b.setLineCap=function(e){var t=b.CapJoinStyles[e];if(void 0===t)throw new Error("Line cap style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return dn=t,ce(t+" J"),this};var fn=0;b.__private__.setLineJoin=b.setLineJoin=function(e){var t=b.CapJoinStyles[e];if(void 0===t)throw new Error("Line join style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return fn=t,ce(t+" j"),this},b.__private__.setLineMiterLimit=b.__private__.setMiterLimit=b.setLineMiterLimit=b.setMiterLimit=function(e){if(e=e||0,isNaN(e))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return ce(E(q(e))+" M"),this},b.GState=R,b.setGState=function(e){(e="string"==typeof e?Ie[Me[e]]:pn(null,e)).equals(Re)||(ce("/"+e.id+" gs"),Re=e)};var pn=function(e,t){if(!e||!Me[e]){var n=!1;for(var r in Ie)if(Ie.hasOwnProperty(r)&&Ie[r].equals(t)){n=!0;break}if(n)t=Ie[r];else{var s="GS"+(Object.keys(Ie).length+1).toString(10);Ie[s]=t,t.id=s}return e&&(Me[e]=t.id),Be.publish("addGState",t),t}};b.addGState=function(e,t){return pn(e,t),this},b.saveGraphicsState=function(){return ce("q"),Ce.push({key:Ae,size:pe,color:ln}),this},b.restoreGraphicsState=function(){ce("Q");var e=Ce.pop();return Ae=e.key,pe=e.size,ln=e.color,Re=null,this},b.setCurrentTransformationMatrix=function(e){return ce(e.toString()+" cm"),this},b.comment=function(e){return ce("#"+e),this};var mn=function(e,t){var n=e||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return n},set:function(e){isNaN(e)||(n=parseFloat(e))}});var r=t||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return r},set:function(e){isNaN(e)||(r=parseFloat(e))}});var s="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return s},set:function(e){s=e.toString()}}),this},gn=function(e,t,n,r){mn.call(this,e,t),this.type="rect";var s=n||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return s},set:function(e){isNaN(e)||(s=parseFloat(e))}});var i=r||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return i},set:function(e){isNaN(e)||(i=parseFloat(e))}}),this},vn=function(){this.page=Fe,this.currentPage=J,this.pages=oe.slice(0),this.pagesContext=De.slice(0),this.x=Ne,this.y=Le,this.matrix=ke,this.width=_n(J),this.height=wn(J),this.outputDestination=le,this.id="",this.objectNumber=-1};vn.prototype.restore=function(){Fe=this.page,J=this.currentPage,De=this.pagesContext,oe=this.pages,Ne=this.x,Le=this.y,ke=this.matrix,jn(J,this.width),xn(J,this.height),le=this.outputDestination};var yn=function(e,t,n,r,s){Ve.push(new vn),Fe=J=0,oe=[],Ne=e,Le=t,ke=s,gt([n,r])};for(var bn in b.beginFormObject=function(e,t,n,r,s){return yn(e,t,n,r,s),this},b.endFormObject=function(e){return function(e){if(qe[e])Ve.pop().restore();else{var t=new vn,n="Xo"+(Object.keys(Ue).length+1).toString(10);t.id=n,qe[e]=n,Ue[n]=t,Be.publish("addFormObject",t),Ve.pop().restore()}}(e),this},b.doFormObject=function(e,t){var n=Ue[qe[e]];return ce("q"),ce(t.toString()+" cm"),ce("/"+n.id+" Do"),ce("Q"),this},b.getFormObject=function(e){var t=Ue[qe[e]];return{x:t.x,y:t.y,width:t.width,height:t.height,matrix:t.matrix}},b.save=function(e,t){return e=e||"generated.pdf",(t=t||{}).returnPromise=t.returnPromise||!1,!1===t.returnPromise?(f(kt(Lt()),e),"function"==typeof f.unload&&a.setTimeout&&setTimeout(f.unload,911),this):new Promise(function(t,n){try{var r=f(kt(Lt()),e);"function"==typeof f.unload&&a.setTimeout&&setTimeout(f.unload,911),t(r)}catch(e){n(e.message)}})},z.API)z.API.hasOwnProperty(bn)&&("events"===bn&&z.API.events.length?function(e,t){var n,r,s;for(s=t.length-1;-1!==s;s--)n=t[s][0],r=t[s][1],e.subscribe.apply(e,[n].concat("function"==typeof r?[r]:r))}(Be,z.API.events):b[bn]=z.API[bn]);function _n(e){return De[e].mediaBox.topRightX-De[e].mediaBox.bottomLeftX}function jn(e,t){De[e].mediaBox.topRightX=t+De[e].mediaBox.bottomLeftX}function wn(e){return De[e].mediaBox.topRightY-De[e].mediaBox.bottomLeftY}function xn(e,t){De[e].mediaBox.topRightY=t+De[e].mediaBox.bottomLeftY}var An=b.getPageWidth=function(e){return _n(e=e||J)/Se},Sn=b.setPageWidth=function(e,t){jn(e,t*Se)},Nn=b.getPageHeight=function(e){return wn(e=e||J)/Se},Ln=b.setPageHeight=function(e,t){xn(e,t*Se)};return b.internal={pdfEscape:mt,getStyle:Ft,getFont:Yt,getFontSize:ge,getCharSpace:hn,getTextColor:un,getLineHeight:Jt,getLineHeightFactor:en,getLineWidth:$t,write:he,getHorizontalCoordinate:tn,getVerticalCoordinate:nn,getCoordinateString:rn,getVerticalCoordinateString:sn,collections:{},newObject:Ze,newAdditionalObject:Je,newObjectDeferred:$e,newObjectDeferredBegin:Ke,getFilters:rt,putStream:st,events:Be,scaleFactor:Se,pageSize:{getWidth:function(){return An(J)},setWidth:function(e){Sn(J,e)},getHeight:function(){return Nn(J)},setHeight:function(e){Ln(J,e)}},encryptionOptions:m,encryption:Ct,getEncryptor:function(e){return null!==m?Ct.encryptor(e,0):function(e){return e}},output:Pt,getNumberOfPages:_t,get pages(){return oe},out:ce,f2:F,f3:U,getPageInfo:Ot,getPageInfoByObjId:Tt,getCurrentPageInfo:It,getPDFVersion:j,Point:mn,Rectangle:gn,Matrix:He,hasHotfix:Et},Object.defineProperty(b.internal.pageSize,"width",{get:function(){return An(J)},set:function(e){Sn(J,e)},enumerable:!0,configurable:!0}),Object.defineProperty(b.internal.pageSize,"height",{get:function(){return Nn(J)},set:function(e){Ln(J,e)},enumerable:!0,configurable:!0}),function(e){for(var t=0,n=fe.length;t<n;t++){var r=pt.call(this,e[t][0],e[t][1],e[t][2],fe[t][3],!0);!1===v&&(y[r]=!0);var s=e[t][0].split("-");ft({id:r,fontName:s[0],fontStyle:s[1]||""})}Be.publish("addFonts",{fonts:Pe,dictionary:Ee})}.call(b,fe),Ae="F1",vt(i,n),Be.publish("initialized"),b}T.prototype.lsbFirstWord=function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)},T.prototype.toHexString=function(e){return e.split("").map(function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)}).join("")},T.prototype.hexToBytes=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(String.fromCharCode(parseInt(e.substr(n,2),16)));return t.join("")},T.prototype.processOwnerPassword=function(e,t){return C(k(t).substr(0,5),e)},T.prototype.encryptor=function(e,t){var n=k(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(e){return C(n,e)}},R.prototype.equals=function(e){var t,n="id,objectNumber,equals";if(!e||(0,r.default)(e)!==(0,r.default)(this))return!1;var s=0;for(t in this)if(!(n.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t))return!1;if(this[t]!==e[t])return!1;s++}for(t in e)e.hasOwnProperty(t)&&n.indexOf(t)<0&&s--;return 0===s},z.API={events:[]},z.version="4.0.0";var U=z.API,q=1,V=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},H=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},W=function(e){return e.toFixed(2)},G=function(e){return e.toFixed(5)};U.__acroform__={};var Y=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},X=function(e){return e*q},Z=function(e){var t=new he,n=Se.internal.getHeight(e)||0,r=Se.internal.getWidth(e)||0;return t.BBox=[0,0,Number(W(r)),Number(W(n))],t},$=U.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|1<<t},K=U.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&~(1<<t)},J=U.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return e&1<<t?1:0},Q=U.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return J(e,t-1)},ee=U.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return $(e,t-1)},te=U.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return K(e,t-1)},ne=U.__acroform__.calculateCoordinates=function(e,t){var n=t.internal.getHorizontalCoordinate,r=t.internal.getVerticalCoordinate,s=e[0],i=e[1],o=e[2],a=e[3],l={};return l.lowerLeft_X=n(s)||0,l.lowerLeft_Y=r(i+a)||0,l.upperRight_X=n(s+o)||0,l.upperRight_Y=r(i)||0,[Number(W(l.lowerLeft_X)),Number(W(l.lowerLeft_Y)),Number(W(l.upperRight_X)),Number(W(l.upperRight_Y))]},re=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],n=e._V||e.DV,r=se(e,n),s=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+s+" "+W(r.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(r.text),t.push("ET"),t.push("Q"),t.push("EMC");var i=Z(e);return i.scope=e.scope,i.stream=t.join("\n"),i}},se=function(e,t){var n=0===e.fontSize?e.maxFontSize:e.fontSize,r={text:"",fontSize:""},s=(t=")"==(t="("==t.substr(0,1)?t.substr(1):t).substr(t.length-1)?t.substr(0,t.length-1):t).split(" ");s=e.multiline?s.map(function(e){return e.split("\n")}):s.map(function(e){return[e]});var i=n,o=Se.internal.getHeight(e)||0;o=o<0?-o:o;var a=Se.internal.getWidth(e)||0;a=a<0?-a:a;var l=function(t,n,r){if(t+1<s.length){var i=n+" "+s[t+1][0];return ie(i,e,r).width<=a-4}return!1};i++;e:for(;i>0;){t="",i--;var u,c,h=ie("3",e,i).height,d=e.multiline?o-i:(o-h)/2,f=d+=2,p=0,m=0,g=0;if(i<=0){t="(...) Tj\n",t+="% Width of Text: "+ie(t,e,i=12).width+", FieldWidth:"+a+"\n";break}for(var v="",y=0,b=0;b<s.length;b++)if(s.hasOwnProperty(b)){var _=!1;if(1!==s[b].length&&g!==s[b].length-1){if((h+2)*(y+2)+2>o)continue e;v+=s[b][g],_=!0,m=b,b--}else{v=" "==(v+=s[b][g]+" ").substr(v.length-1)?v.substr(0,v.length-1):v;var j=parseInt(b),w=l(j,v,i),x=b>=s.length-1;if(w&&!x){v+=" ",g=0;continue}if(w||x){if(x)m=j;else if(e.multiline&&(h+2)*(y+2)+2>o)continue e}else{if(!e.multiline)continue e;if((h+2)*(y+2)+2>o)continue e;m=j}}for(var A="",S=p;S<=m;S++){var N=s[S];if(e.multiline){if(S===m){A+=N[g]+" ",g=(g+1)%N.length;continue}if(S===p){A+=N[N.length-1]+" ";continue}}A+=N[0]+" "}switch(A=" "==A.substr(A.length-1)?A.substr(0,A.length-1):A,c=ie(A,e,i).width,e.textAlign){case"right":u=a-c-2;break;case"center":u=(a-c)/2;break;default:u=2}t+=W(u)+" "+W(f)+" Td\n",t+="("+V(A)+") Tj\n",t+=-W(u)+" 0 Td\n",f=-(i+2),c=0,p=_?m:m+1,y++,v=""}break}return r.text=t,r.fontSize=i,r},ie=function(e,t,n){var r=t.scope.internal.getFont(t.fontName,t.fontStyle),s=t.scope.getStringUnitWidth(e,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:t.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:s}},oe={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},ae=function(e,t){var n={type:"reference",object:e};void 0===t.internal.getPageInfo(e.page).pageContext.annotations.find(function(e){return e.type===n.type&&e.object===n.object})&&t.internal.getPageInfo(e.page).pageContext.annotations.push(n)},le=U.__acroform__.arrayToPdfArray=function(e,t,n){var s=function(e){return e};if(Array.isArray(e)){for(var i="[",o=0;o<e.length;o++)switch(0!==o&&(i+=" "),(0,r.default)(e[o])){case"boolean":case"number":case"object":i+=e[o].toString();break;case"string":"/"!==e[o].substr(0,1)?(void 0!==t&&n&&(s=n.internal.getEncryptor(t)),i+="("+V(s(e[o].toString()))+")"):i+=e[o].toString()}return i+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},ue=function(e,t,n){var r=function(e){return e};return void 0!==t&&n&&(r=n.internal.getEncryptor(t)),(e=e||"").toString(),"("+V(r(e))+")"},ce=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};ce.prototype.toString=function(){return this.objId+" 0 R"},ce.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},ce.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter(function(e){return"content"!=e&&"appearanceStreamContent"!=e&&"scope"!=e&&"objId"!=e&&"_"!=e.substring(0,1)});for(var n in t)if(!1===Object.getOwnPropertyDescriptor(this,t[n]).configurable){var r=t[n],s=this[r];s&&(Array.isArray(s)?e.push({key:r,value:le(s,this.objId,this.scope)}):s instanceof ce?(s.scope=this.scope,e.push({key:r,value:s.objId+" 0 R"})):"function"!=typeof s&&e.push({key:r,value:s}))}return e};var he=function(){ce.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){e=t.trim()},get:function(){return e||null}})};Y(he,ce);var de=function(){ce.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+V(t(e))+")"}},set:function(t){e=t}})};Y(de,ce);var fe=function e(){ce.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){if(isNaN(e))throw new Error('Invalid value "'+e+'" for attribute F supplied.');t=e}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(t,3))},set:function(e){!0===Boolean(e)?this.F=ee(t,3):this.F=te(t,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){if(isNaN(e))throw new Error('Invalid value "'+e+'" for attribute Ff supplied.');n=e}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==r.length)return r},set:function(e){r=void 0!==e?e:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(e){r[0]=e}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(e){r[1]=e}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(e){r[2]=e}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(e){r[3]=e}});var s="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return s},set:function(e){switch(e){case"/Btn":case"/Tx":case"/Ch":case"/Sig":s=e;break;default:throw new Error('Invalid value "'+e+'" for attribute FT supplied.')}}});var i=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!i||i.length<1){if(this instanceof je)return;i="FieldObject"+e.FieldNum++}var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+V(t(i))+")"},set:function(e){i=e.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(e){i=e}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(e){o=e}});var a="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return a},set:function(e){a=e}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(e){l=e}});var u=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===u?50/q:u},set:function(e){u=e}});var c="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return c},set:function(e){c=e}});var h="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!h||this instanceof je||this instanceof xe))return ue(h,this.objId,this.scope)},set:function(e){e=e.toString(),h=e}});var d=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof ye==0?ue(d,this.objId,this.scope):d},set:function(e){e=e.toString(),d=this instanceof ye==0?"("===e.substr(0,1)?H(e.substr(1,e.length-2)):H(e):e}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof ye==1?H(d.substr(1,d.length-1)):d},set:function(e){e=e.toString(),d=this instanceof ye==1?"/"+e:e}});var f=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(f)return f},set:function(e){this.V=e}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof ye==0?ue(f,this.objId,this.scope):f},set:function(e){e=e.toString(),f=this instanceof ye==0?"("===e.substr(0,1)?H(e.substr(1,e.length-2)):H(e):e}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof ye==1?H(f.substr(1,f.length-1)):f},set:function(e){e=e.toString(),f=this instanceof ye==1?"/"+e:e}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var p,m=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return m},set:function(e){e=Boolean(e),m=e}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(p)return p},set:function(e){p=e}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,1))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,1):this.Ff=te(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,2))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,2):this.Ff=te(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,3))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,3):this.Ff=te(this.Ff,3)}});var g=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==g)return g},set:function(e){if(-1===[0,1,2].indexOf(e))throw new Error('Invalid value "'+e+'" for attribute Q supplied.');g=e}}),Object.defineProperty(this,"textAlign",{get:function(){var e;switch(g){case 0:default:e="left";break;case 1:e="center";break;case 2:e="right"}return e},configurable:!0,enumerable:!0,set:function(e){switch(e){case"right":case 2:g=2;break;case"center":case 1:g=1;break;default:g=0}}})};Y(fe,ce);var pe=function(){fe.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){e=t}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return le(t,this.objId,this.scope)},set:function(e){var n,r;r=[],"string"==typeof(n=e)&&(r=function(e,t,n){n||(n=1);for(var r,s=[];r=t.exec(e);)s.push(r[n]);return s}(n,/\((.*?)\)/g)),t=r}}),this.getOptions=function(){return t},this.setOptions=function(e){t=e,this.sort&&t.sort()},this.addOption=function(e){e=(e=e||"").toString(),t.push(e),this.sort&&t.sort()},this.removeOption=function(e,n){for(n=n||!1,e=(e=e||"").toString();-1!==t.indexOf(e)&&(t.splice(t.indexOf(e),1),!1!==n););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,18))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,18):this.Ff=te(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,19))},set:function(e){!0===this.combo&&(!0===Boolean(e)?this.Ff=ee(this.Ff,19):this.Ff=te(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,20))},set:function(e){!0===Boolean(e)?(this.Ff=ee(this.Ff,20),t.sort()):this.Ff=te(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,22))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,22):this.Ff=te(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,23):this.Ff=te(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,27))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,27):this.Ff=te(this.Ff,27)}}),this.hasAppearanceStream=!1};Y(pe,fe);var me=function(){pe.call(this),this.fontName="helvetica",this.combo=!1};Y(me,pe);var ge=function(){me.call(this),this.combo=!0};Y(ge,me);var ve=function(){ge.call(this),this.edit=!0};Y(ve,ge);var ye=function(){fe.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,15))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,15):this.Ff=te(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,16))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,16):this.Ff=te(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,17))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,17):this.Ff=te(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,26):this.Ff=te(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(t).length){var n,r=[];for(n in r.push("<<"),t)r.push("/"+n+" ("+V(e(t[n]))+")");return r.push(">>"),r.join("\n")}},set:function(e){"object"===(0,r.default)(e)&&(t=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(e){"string"==typeof e&&(t.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e="/"+t}})};Y(ye,fe);var be=function(){ye.call(this),this.pushButton=!0};Y(be,ye);var _e=function(){ye.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=void 0!==t?t:[]}})};Y(_e,ye);var je=function(){var e,t;fe.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(e){t=e}});var n,s={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};this.scope&&(e=this.scope.internal.getEncryptor(this.objId));var t,n=[];for(t in n.push("<<"),s)n.push("/"+t+" ("+V(e(s[t]))+")");return n.push(">>"),n.join("\n")},set:function(e){"object"===(0,r.default)(e)&&(s=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return s.CA||""},set:function(e){"string"==typeof e&&(s.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){n=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(e){n="/"+e}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Se.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Y(je,fe),_e.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var n=this.Kids[t];n.appearanceStreamContent=e.createAppearanceStream(n.optionName),n.caption=e.getCA()}},_e.prototype.createOption=function(e){var t=new je;return t.Parent=this,t.optionName=e,this.Kids.push(t),Ne.call(this.scope,t),t};var we=function(){ye.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Se.CheckBox.createAppearanceStream()};Y(we,ye);var xe=function(){fe.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,13))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,13):this.Ff=te(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,21))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,21):this.Ff=te(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,23):this.Ff=te(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,24))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,24):this.Ff=te(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,25))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,25):this.Ff=te(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,26):this.Ff=te(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Y(xe,fe);var Ae=function(){xe.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,14))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,14):this.Ff=te(this.Ff,14)}}),this.password=!0};Y(Ae,xe);var Se={CheckBox:{createAppearanceStream:function(){return{N:{On:Se.CheckBox.YesNormal},D:{On:Se.CheckBox.YesPushDown,Off:Se.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=Z(e);t.scope=e.scope;var n=[],r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,s=e.scope.__private__.encodeColorString(e.color),i=se(e,e.caption);return n.push("0.749023 g"),n.push("0 0 "+W(Se.internal.getWidth(e))+" "+W(Se.internal.getHeight(e))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+r+" "+W(i.fontSize)+" Tf "+s),n.push("BT"),n.push(i.text),n.push("ET"),n.push("Q"),n.push("EMC"),t.stream=n.join("\n"),t},YesNormal:function(e){var t=Z(e);t.scope=e.scope;var n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),s=[],i=Se.internal.getHeight(e),o=Se.internal.getWidth(e),a=se(e,e.caption);return s.push("1 g"),s.push("0 0 "+W(o)+" "+W(i)+" re"),s.push("f"),s.push("q"),s.push("0 0 1 rg"),s.push("0 0 "+W(o-1)+" "+W(i-1)+" re"),s.push("W"),s.push("n"),s.push("0 g"),s.push("BT"),s.push("/"+n+" "+W(a.fontSize)+" Tf "+r),s.push(a.text),s.push("ET"),s.push("Q"),t.stream=s.join("\n"),t},OffPushDown:function(e){var t=Z(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+W(Se.internal.getWidth(e))+" "+W(Se.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join("\n"),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:Se.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=Se.RadioButton.Circle.YesNormal,t.D[e]=Se.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=Z(e);t.scope=e.scope;var n=[],r=Se.internal.getWidth(e)<=Se.internal.getHeight(e)?Se.internal.getWidth(e)/4:Se.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var s=Se.internal.Bezier_C,i=Number((r*s).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+G(Se.internal.getWidth(e)/2)+" "+G(Se.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),n.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),n.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),n.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t},YesPushDown:function(e){var t=Z(e);t.scope=e.scope;var n=[],r=Se.internal.getWidth(e)<=Se.internal.getHeight(e)?Se.internal.getWidth(e)/4:Se.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var s=Number((2*r).toFixed(5)),i=Number((s*Se.internal.Bezier_C).toFixed(5)),o=Number((r*Se.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+G(Se.internal.getWidth(e)/2)+" "+G(Se.internal.getHeight(e)/2)+" cm"),n.push(s+" 0 m"),n.push(s+" "+i+" "+i+" "+s+" 0 "+s+" c"),n.push("-"+i+" "+s+" -"+s+" "+i+" -"+s+" 0 c"),n.push("-"+s+" -"+i+" -"+i+" -"+s+" 0 -"+s+" c"),n.push(i+" -"+s+" "+s+" -"+i+" "+s+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+G(Se.internal.getWidth(e)/2)+" "+G(Se.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),n.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),n.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),n.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t},OffPushDown:function(e){var t=Z(e);t.scope=e.scope;var n=[],r=Se.internal.getWidth(e)<=Se.internal.getHeight(e)?Se.internal.getWidth(e)/4:Se.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var s=Number((2*r).toFixed(5)),i=Number((s*Se.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+G(Se.internal.getWidth(e)/2)+" "+G(Se.internal.getHeight(e)/2)+" cm"),n.push(s+" 0 m"),n.push(s+" "+i+" "+i+" "+s+" 0 "+s+" c"),n.push("-"+i+" "+s+" -"+s+" "+i+" -"+s+" 0 c"),n.push("-"+s+" -"+i+" -"+i+" -"+s+" 0 -"+s+" c"),n.push(i+" -"+s+" "+s+" -"+i+" "+s+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:Se.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=Se.RadioButton.Cross.YesNormal,t.D[e]=Se.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=Z(e);t.scope=e.scope;var n=[],r=Se.internal.calculateCross(e);return n.push("q"),n.push("1 1 "+W(Se.internal.getWidth(e)-2)+" "+W(Se.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(W(r.x1.x)+" "+W(r.x1.y)+" m"),n.push(W(r.x2.x)+" "+W(r.x2.y)+" l"),n.push(W(r.x4.x)+" "+W(r.x4.y)+" m"),n.push(W(r.x3.x)+" "+W(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join("\n"),t},YesPushDown:function(e){var t=Z(e);t.scope=e.scope;var n=Se.internal.calculateCross(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+W(Se.internal.getWidth(e))+" "+W(Se.internal.getHeight(e))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+W(Se.internal.getWidth(e)-2)+" "+W(Se.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(W(n.x1.x)+" "+W(n.x1.y)+" m"),r.push(W(n.x2.x)+" "+W(n.x2.y)+" l"),r.push(W(n.x4.x)+" "+W(n.x4.y)+" m"),r.push(W(n.x3.x)+" "+W(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join("\n"),t},OffPushDown:function(e){var t=Z(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+W(Se.internal.getWidth(e))+" "+W(Se.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join("\n"),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+n}};Se.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=Se.internal.getWidth(e),n=Se.internal.getHeight(e),r=Math.min(t,n);return{x1:{x:(t-r)/2,y:(n-r)/2+r},x2:{x:(t-r)/2+r,y:(n-r)/2},x3:{x:(t-r)/2,y:(n-r)/2},x4:{x:(t-r)/2+r,y:(n-r)/2+r}}}},Se.internal.getWidth=function(e){var t=0;return"object"===(0,r.default)(e)&&(t=X(e.Rect[2])),t},Se.internal.getHeight=function(e){var t=0;return"object"===(0,r.default)(e)&&(t=X(e.Rect[3])),t};var Ne=U.addField=function(e){if(function(e,t){if(t.scope=e,void 0!==e.internal&&(void 0===e.internal.acroformPlugin||!1===e.internal.acroformPlugin.isInitialized)){if(fe.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(oe)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");q=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new de,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){var t;(t=e).internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0}),e.internal.events.subscribe("buildDocument",function(){!function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var t=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];r.objId=void 0,r.hasAnnotation&&ae(r,e)}}(e)}),e.internal.events.subscribe("putCatalog",function(){!function(e){if(void 0===e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");e.internal.write("/AcroForm "+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(e)}),e.internal.events.subscribe("postPutPages",function(t){!function(e,t){var n=!e;for(var s in e||(t.internal.newObjectDeferredBegin(t.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),t.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),e=e||t.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(e.hasOwnProperty(s)){var i=e[s],o=[],a=i.Rect;if(i.Rect&&(i.Rect=ne(i.Rect,t)),t.internal.newObjectDeferredBegin(i.objId,!0),i.DA=Se.createDefaultAppearanceStream(i),"object"===(0,r.default)(i)&&"function"==typeof i.getKeyValueListForStream&&(o=i.getKeyValueListForStream()),i.Rect=a,i.hasAppearanceStream&&!i.appearanceStreamContent){var l=re(i);o.push({key:"AP",value:"<</N "+l+">>"}),t.internal.acroformPlugin.xForms.push(l)}if(i.appearanceStreamContent){var u="";for(var c in i.appearanceStreamContent)if(i.appearanceStreamContent.hasOwnProperty(c)){var h=i.appearanceStreamContent[c];if(u+="/"+c+" ",u+="<<",Object.keys(h).length>=1||Array.isArray(h)){for(var s in h)if(h.hasOwnProperty(s)){var d=h[s];"function"==typeof d&&(d=d.call(t,i)),u+="/"+s+" "+d+" ",t.internal.acroformPlugin.xForms.indexOf(d)>=0||t.internal.acroformPlugin.xForms.push(d)}}else"function"==typeof(d=h)&&(d=d.call(t,i)),u+="/"+s+" "+d,t.internal.acroformPlugin.xForms.indexOf(d)>=0||t.internal.acroformPlugin.xForms.push(d);u+=">>"}o.push({key:"AP",value:"<<\n"+u+">>"})}t.internal.putStream({additionalKeyValues:o,objectId:i.objId}),t.internal.out("endobj")}n&&function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var s=n,i=e[n];t.internal.newObjectDeferredBegin(i.objId,!0),"object"===(0,r.default)(i)&&"function"==typeof i.putStream&&i.putStream(),delete e[s]}}(t.internal.acroformPlugin.xForms,t)}(t,e)}),e.internal.acroformPlugin.isInitialized=!0}}(this,e),!(e instanceof fe))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};U.AcroFormChoiceField=pe,U.AcroFormListBox=me,U.AcroFormComboBox=ge,U.AcroFormEditBox=ve,U.AcroFormButton=ye,U.AcroFormPushButton=be,U.AcroFormRadioButton=_e,U.AcroFormCheckBox=we,U.AcroFormTextField=xe,U.AcroFormPasswordField=Ae,U.AcroFormAppearance=Se,U.AcroForm={ChoiceField:pe,ListBox:me,ComboBox:ge,EditBox:ve,Button:ye,PushButton:be,RadioButton:_e,CheckBox:we,TextField:xe,PasswordField:Ae,Appearance:Se},z.AcroForm={ChoiceField:pe,ListBox:me,ComboBox:ge,EditBox:ve,Button:ye,PushButton:be,RadioButton:_e,CheckBox:we,TextField:xe,PasswordField:Ae,Appearance:Se};var Le,ke,Pe=z.AcroForm;function Ee(e){return e.reduce(function(e,t,n){return e[t]=n,e},{})}!function(e){var t="addImage_";e.__addimage__={};var n="UNKNOWN",s={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},i=e.__addimage__.getImageFileTypeByImageData=function(e,t){var r,i,o,a,l,u=n;if("RGBA"===(t=t||n)||void 0!==e.data&&e.data instanceof Uint8ClampedArray&&"height"in e&&"width"in e)return"RGBA";if(A(e))for(l in s)for(o=s[l],r=0;r<o.length;r+=1){for(a=!0,i=0;i<o[r].length;i+=1)if(void 0!==o[r][i]&&o[r][i]!==e[i]){a=!1;break}if(!0===a){u=l;break}}else for(l in s)for(o=s[l],r=0;r<o.length;r+=1){for(a=!0,i=0;i<o[r].length;i+=1)if(void 0!==o[r][i]&&o[r][i]!==e.charCodeAt(i)){a=!1;break}if(!0===a){u=l;break}}return u===n&&t!==n&&(u=t),u},o=function e(t){for(var n=this.internal.write,r=this.internal.putStream,s=(0,this.internal.getFilters)();-1!==s.indexOf("FlateEncode");)s.splice(s.indexOf("FlateEncode"),1);t.objectId=this.internal.newObject();var i=[];if(i.push({key:"Type",value:"/XObject"}),i.push({key:"Subtype",value:"/Image"}),i.push({key:"Width",value:t.width}),i.push({key:"Height",value:t.height}),t.colorSpace===b.INDEXED?i.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(t.palette.length/3-1)+" "+("sMask"in t&&void 0!==t.sMask?t.objectId+2:t.objectId+1)+" 0 R]"}):(i.push({key:"ColorSpace",value:"/"+t.colorSpace}),t.colorSpace===b.DEVICE_CMYK&&i.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),i.push({key:"BitsPerComponent",value:t.bitsPerComponent}),"decodeParameters"in t&&void 0!==t.decodeParameters&&i.push({key:"DecodeParms",value:"<<"+t.decodeParameters+">>"}),"transparency"in t&&Array.isArray(t.transparency)&&t.transparency.length>0){for(var o="",a=0,l=t.transparency.length;a<l;a++)o+=t.transparency[a]+" "+t.transparency[a]+" ";i.push({key:"Mask",value:"["+o+"]"})}void 0!==t.sMask&&i.push({key:"SMask",value:t.objectId+1+" 0 R"});var u=void 0!==t.filter?["/"+t.filter]:void 0;if(r({data:t.data,additionalKeyValues:i,alreadyAppliedFilters:u,objectId:t.objectId}),n("endobj"),"sMask"in t&&void 0!==t.sMask){var c,h=null!==(c=t.sMaskBitsPerComponent)&&void 0!==c?c:t.bitsPerComponent,d={width:t.width,height:t.height,colorSpace:"DeviceGray",bitsPerComponent:h,data:t.sMask};"filter"in t&&(d.decodeParameters="/Predictor ".concat(t.predictor," /Colors 1 /BitsPerComponent ").concat(h," /Columns ").concat(t.width),d.filter=t.filter),e.call(this,d)}if(t.colorSpace===b.INDEXED){var f=this.internal.newObject();r({data:N(new Uint8Array(t.palette)),objectId:f}),n("endobj")}},a=function(){var e=this.internal.collections[t+"images"];for(var n in e)o.call(this,e[n])},l=function(){var e,n=this.internal.collections[t+"images"],r=this.internal.write;for(var s in n)r("/I"+(e=n[s]).index,e.objectId,"0","R")},u=function(){this.internal.collections[t+"images"]||(this.internal.collections[t+"images"]={},this.internal.events.subscribe("putResources",a),this.internal.events.subscribe("putXobjectDict",l))},c=function(){var e=this.internal.collections[t+"images"];return u.call(this),e},h=function(){return Object.keys(this.internal.collections[t+"images"]).length},d=function(t){return"function"==typeof e["process"+t.toUpperCase()]},f=function(e){return"object"===(0,r.default)(e)&&1===e.nodeType},p=function(t,n){if("IMG"===t.nodeName&&t.hasAttribute("src")){var r=""+t.getAttribute("src");if(0===r.indexOf("data:image/"))return m(unescape(r).split("base64,").pop());var s=e.loadFile(r,!0);if(void 0!==s)return s}if("CANVAS"===t.nodeName){if(0===t.width||0===t.height)throw new Error("Given canvas must have data. Canvas width: "+t.width+", height: "+t.height);var i;switch(n){case"PNG":i="image/png";break;case"WEBP":i="image/webp";break;default:i="image/jpeg"}return m(t.toDataURL(i,1).split("base64,").pop())}},g=function(e){var n=this.internal.collections[t+"images"];if(n)for(var r in n)if(e===n[r].alias)return n[r]},v=function(e,t,n){return e||t||(e=-96,t=-96),e<0&&(e=-1*n.width*72/e/this.internal.scaleFactor),t<0&&(t=-1*n.height*72/t/this.internal.scaleFactor),0===e&&(e=t*n.width/n.height),0===t&&(t=e*n.height/n.width),[e,t]},y=function(e,t,n,r,s,i){var o=v.call(this,n,r,s),a=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,u=c.call(this);if(n=o[0],r=o[1],u[s.index]=s,i){i*=Math.PI/180;var h=Math.cos(i),d=Math.sin(i),f=function(e){return e.toFixed(4)},p=[f(h),f(d),f(-1*d),f(h),0,0,"cm"]}this.internal.write("q"),i?(this.internal.write([1,"0","0",1,a(e),l(t+r),"cm"].join(" ")),this.internal.write(p.join(" ")),this.internal.write([a(n),"0","0",a(r),"0","0","cm"].join(" "))):this.internal.write([a(n),"0","0",a(r),a(e),l(t+r),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+s.index+" Do"),this.internal.write("Q")},b=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var _=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},j=e.__addimage__.sHashCode=function(e){var t,n,r=0;if("string"==typeof e)for(n=e.length,t=0;t<n;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;else if(A(e))for(n=e.byteLength/2,t=0;t<n;t++)r=(r<<5)-r+e[t],r|=0;return r},w=e.__addimage__.validateStringAsBase64=function(e){(e=e||"").toString().trim();var t=!0;return 0===e.length&&(t=!1),e.length%4!=0&&(t=!1),!1===/^[A-Za-z0-9+/]+$/.test(e.substr(0,e.length-2))&&(t=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(e.substr(-2))&&(t=!1),t},x=e.__addimage__.extractImageFromDataUrl=function(e){if(null==e)return null;if(!(e=e.trim()).startsWith("data:"))return null;var t=e.indexOf(",");return t<0?null:e.substring(0,t).trim().endsWith("base64")?e.substring(t+1):null};e.__addimage__.isArrayBuffer=function(e){return e instanceof ArrayBuffer};var A=e.__addimage__.isArrayBufferView=function(e){return e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array},S=e.__addimage__.binaryStringToUint8Array=function(e){for(var t=e.length,n=new Uint8Array(t),r=0;r<t;r++)n[r]=e.charCodeAt(r);return n},N=e.__addimage__.arrayBufferToBinaryString=function(e){for(var t="",n=A(e)?e:new Uint8Array(e),r=0;r<n.length;r+=8192)t+=String.fromCharCode.apply(null,n.subarray(r,r+8192));return t};e.addImage=function(){var e,t,s,i,o,a,l,c,h;if("number"==typeof arguments[1]?(t=n,s=arguments[1],i=arguments[2],o=arguments[3],a=arguments[4],l=arguments[5],c=arguments[6],h=arguments[7]):(t=arguments[1],s=arguments[2],i=arguments[3],o=arguments[4],a=arguments[5],l=arguments[6],c=arguments[7],h=arguments[8]),"object"===(0,r.default)(e=arguments[0])&&!f(e)&&"imageData"in e){var d=e;e=d.imageData,t=d.format||t||n,s=d.x||s||0,i=d.y||i||0,o=d.w||d.width||o,a=d.h||d.height||a,l=d.alias||l,c=d.compression||c,h=d.rotation||d.angle||h}var p=this.internal.getFilters();if(void 0===c&&-1!==p.indexOf("FlateEncode")&&(c="SLOW"),isNaN(s)||isNaN(i))throw new Error("Invalid coordinates passed to jsPDF.addImage");u.call(this);var m=L.call(this,e,t,l,c);return y.call(this,s,i,o,a,m,h),this};var L=function(t,r,s,o){var a,l,u;if("string"==typeof t&&i(t)===n){t=unescape(t);var c=k(t,!1);(""!==c||void 0!==(c=e.loadFile(t,!0)))&&(t=c)}if(f(t)&&(t=p(t,r)),r=i(t,r),!d(r))throw new Error("addImage does not support files of type '"+r+"', please ensure that a plugin for '"+r+"' support is added.");if((null==(u=s)||0===u.length)&&(s=function(e){return"string"==typeof e||A(e)?j(e):A(e.data)?j(e.data):null}(t)),(a=g.call(this,s))||(t instanceof Uint8Array||"RGBA"===r||(l=t,t=S(t)),a=this["process"+r.toUpperCase()](t,h.call(this),s,function(t){return t&&"string"==typeof t&&(t=t.toUpperCase()),t in e.image_compression?t:_.NONE}(o),l)),!a)throw new Error("An unknown error occurred whilst processing the image.");return a},k=e.__addimage__.convertBase64ToBinaryString=function(e,t){t="boolean"!=typeof t||t;var n,r="";if("string"==typeof e){var s;n=null!==(s=x(e))&&void 0!==s?s:e;try{r=m(n)}catch(e){if(t)throw w(n)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+e.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return r};e.getImageProperties=function(t){var r,s,o="";if(f(t)&&(t=p(t)),"string"==typeof t&&i(t)===n&&(""===(o=k(t,!1))&&(o=e.loadFile(t)||""),t=o),s=i(t),!d(s))throw new Error("addImage does not support files of type '"+s+"', please ensure that a plugin for '"+s+"' support is added.");if(t instanceof Uint8Array||(t=S(t)),!(r=this["process"+s.toUpperCase()](t)))throw new Error("An unknown error occurred whilst processing the image");return r.fileType=s,r}}(z.API),Le=z.API,ke=function(e){if(void 0!==e&&""!=e)return!0},z.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),Le.events.push(["putPage",function(e){for(var t,n,r,s=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,o=this.internal.getPageInfoByObjId(e.objId),a=e.pageContext.annotations,l=!1,u=0;u<a.length&&!l;u++)switch((t=a[u]).type){case"link":(ke(t.options.url)||ke(t.options.pageNumber))&&(l=!0);break;case"reference":case"text":case"freetext":l=!0}if(0!=l){this.internal.write("/Annots [");for(var c=0;c<a.length;c++){t=a[c];var h=this.internal.pdfEscape,d=this.internal.getEncryptor(e.objId);switch(t.type){case"reference":this.internal.write(" "+t.object.objId+" 0 R ");break;case"text":var f=this.internal.newAdditionalObject(),p=this.internal.newAdditionalObject(),m=this.internal.getEncryptor(f.objId),g=t.title||"Note";r="<</Type /Annot /Subtype /Text "+(n="/Rect ["+s(t.bounds.x)+" "+i(t.bounds.y+t.bounds.h)+" "+s(t.bounds.x+t.bounds.w)+" "+i(t.bounds.y)+"] ")+"/Contents ("+h(m(t.contents))+")",r+=" /Popup "+p.objId+" 0 R",r+=" /P "+o.objId+" 0 R",r+=" /T ("+h(m(g))+") >>",f.content=r;var v=f.objId+" 0 R";r="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+s(t.bounds.x+30)+" "+i(t.bounds.y+t.bounds.h)+" "+s(t.bounds.x+t.bounds.w+30)+" "+i(t.bounds.y)+"] ")+" /Parent "+v,t.open&&(r+=" /Open true"),r+=" >>",p.content=r,this.internal.write(f.objId,"0 R",p.objId,"0 R");break;case"freetext":n="/Rect ["+s(t.bounds.x)+" "+i(t.bounds.y)+" "+s(t.bounds.x+t.bounds.w)+" "+i(t.bounds.y+t.bounds.h)+"] ";var y=t.color||"#000000";r="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+h(d(t.contents))+")",r+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+y+")",r+=" /Border [0 0 0]",r+=" >>",this.internal.write(r);break;case"link":if(t.options.name){var b=this.annotations._nameMap[t.options.name];t.options.pageNumber=b.page,t.options.top=b.y}else t.options.top||(t.options.top=0);if(n="/Rect ["+t.finalBounds.x+" "+t.finalBounds.y+" "+t.finalBounds.w+" "+t.finalBounds.h+"] ",r="",t.options.url)r="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+h(d(t.options.url))+") >>";else if(t.options.pageNumber)switch(r="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(t.options.pageNumber).objId+" 0 R",t.options.magFactor=t.options.magFactor||"XYZ",t.options.magFactor){case"Fit":r+=" /Fit]";break;case"FitH":r+=" /FitH "+t.options.top+"]";break;case"FitV":t.options.left=t.options.left||0,r+=" /FitV "+t.options.left+"]";break;default:var _=i(t.options.top);t.options.left=t.options.left||0,void 0===t.options.zoom&&(t.options.zoom=0),r+=" /XYZ "+t.options.left+" "+_+" "+t.options.zoom+"]"}""!=r&&(r+=" >>",this.internal.write(r))}}this.internal.write("]")}}]),Le.createAnnotation=function(e){var t=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":t.pageContext.annotations.push(e)}},Le.link=function(e,t,n,r,s){var i=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString;i.pageContext.annotations.push({finalBounds:{x:o(e),y:a(t),w:o(e+n),h:a(t+r)},options:s,type:"link"})},Le.textWithLink=function(e,t,n,r){var s,i,o=this.getTextWidth(e),a=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==r.maxWidth){i=r.maxWidth;var l=this.splitTextToSize(e,i).length;s=Math.ceil(a*l)}else i=o,s=a;return this.text(e,t,n,r),n+=.2*a,"center"===r.align&&(t-=o/2),"right"===r.align&&(t-=o),this.link(t,n-a,i,s,r),o},Le.getTextWidth=function(e){var t=this.internal.getFontSize();return this.getStringUnitWidth(e)*t/this.internal.scaleFactor},function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},s=[1570,1571,1573,1575];e.__arabicParser__={};var i=e.__arabicParser__.isInArabicSubstitutionA=function(e){return void 0!==t[e.charCodeAt(0)]},o=e.__arabicParser__.isArabicLetter=function(e){return"string"==typeof e&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(e)},a=e.__arabicParser__.isArabicEndLetter=function(e){return o(e)&&i(e)&&t[e.charCodeAt(0)].length<=2},l=e.__arabicParser__.isArabicAlfLetter=function(e){return o(e)&&s.indexOf(e.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(e){return o(e)&&i(e)&&t[e.charCodeAt(0)].length>=1};var u=e.__arabicParser__.arabicLetterHasFinalForm=function(e){return o(e)&&i(e)&&t[e.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(e){return o(e)&&i(e)&&t[e.charCodeAt(0)].length>=3};var c=e.__arabicParser__.arabicLetterHasMedialForm=function(e){return o(e)&&i(e)&&4==t[e.charCodeAt(0)].length},h=e.__arabicParser__.resolveLigatures=function(e){var t=0,r=n,s="",i=0;for(t=0;t<e.length;t+=1)void 0!==r[e.charCodeAt(t)]?(i++,"number"==typeof(r=r[e.charCodeAt(t)])&&(s+=String.fromCharCode(r),r=n,i=0),t===e.length-1&&(r=n,s+=e.charAt(t-(i-1)),t-=i-1,i=0)):(r=n,s+=e.charAt(t-i),t-=i,i=0);return s};e.__arabicParser__.isArabicDiacritic=function(e){return void 0!==e&&void 0!==r[e.charCodeAt(0)]};var d=e.__arabicParser__.getCorrectForm=function(e,t,n){return o(e)?!1===i(e)?-1:!u(e)||!o(t)&&!o(n)||!o(n)&&a(t)||a(e)&&!o(t)||a(e)&&l(t)||a(e)&&a(t)?0:c(e)&&o(t)&&!a(t)&&o(n)&&u(n)?3:a(e)||!o(n)?1:2:-1},f=function(e){var n=0,r=0,s=0,i="",a="",l="",u=(e=e||"").split("\\s+"),c=[];for(n=0;n<u.length;n+=1){for(c.push(""),r=0;r<u[n].length;r+=1)i=u[n][r],a=u[n][r-1],l=u[n][r+1],o(i)?(s=d(i,a,l),c[n]+=-1!==s?String.fromCharCode(t[i.charCodeAt(0)][s]):i):c[n]+=i;c[n]=h(c[n])}return c.join(" ")},p=e.__arabicParser__.processArabic=e.processArabic=function(){var e,t="string"==typeof arguments[0]?arguments[0]:arguments[0].text,n=[];if(Array.isArray(t)){var r=0;for(n=[],r=0;r<t.length;r+=1)Array.isArray(t[r])?n.push([f(t[r][0]),t[r][1],t[r][2]]):n.push([f(t[r])]);e=n}else e=f(t);return"string"==typeof arguments[0]?e:(arguments[0].text=e,arguments[0])};e.events.push(["preProcessText",p])}(z.API),z.API.autoPrint=function(e){var t;return(e=e||{}).variant=e.variant||"non-conform","javascript"===e.variant?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+t+" 0 R")})),this},function(e){var t=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(t){e=t}});var t=150;Object.defineProperty(this,"width",{get:function(){return t},set:function(e){t=isNaN(e)||!1===Number.isInteger(e)||e<0?150:e,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=t+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(e){n=isNaN(e)||!1===Number.isInteger(e)||e<0?300:e,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(e){r=e}});var s={};Object.defineProperty(this,"style",{get:function(){return s},set:function(e){s=e}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(e,t){var n;if("2d"!==(e=e||"2d"))return null;for(n in t)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=t[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(z.API),function(e){var t={left:0,top:0,bottom:0,right:0},n=!1,s=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var e=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var t=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var n=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return n},set:function(e){n=e}});var r=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return r},set:function(e){r=e}});var s=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return s},set:function(e){s=e}});var i=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return i},set:function(e){i=e}});var o=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return o},set:function(e){o=e}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(e){return s.call(this),this.internal.__cell__.headerFunction="function"==typeof e?e:void 0,this},e.getTextDimensions=function(e,t){s.call(this);var n=(t=t||{}).fontSize||this.getFontSize(),r=t.font||this.getFont(),i=t.scaleFactor||this.internal.scaleFactor,o=0,a=0,l=0,u=this;if(!Array.isArray(e)&&"string"!=typeof e){if("number"!=typeof e)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");e=String(e)}var c=t.maxWidth;c>0?"string"==typeof e?e=this.splitTextToSize(e,c):"[object Array]"===Object.prototype.toString.call(e)&&(e=e.reduce(function(e,t){return e.concat(u.splitTextToSize(t,c))},[])):e=Array.isArray(e)?e:[e];for(var h=0;h<e.length;h++)o<(l=this.getStringUnitWidth(e[h],{font:r})*n)&&(o=l);return 0!==o&&(a=e.length),{w:o/=i,h:Math.max((a*n*this.getLineHeightFactor()-n*(this.getLineHeightFactor()-1))/i,0)}},e.cellAddPage=function(){s.call(this),this.addPage();var e=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new o(e.left,e.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var a=e.cell=function(){var e;e=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),s.call(this);var r=this.internal.__cell__.lastCell,i=this.internal.__cell__.padding,a=this.internal.__cell__.margins||t,l=this.internal.__cell__.tableHeaderRow,u=this.internal.__cell__.printHeaders;return void 0!==r.lineNumber&&(r.lineNumber===e.lineNumber?(e.x=(r.x||0)+(r.width||0),e.y=r.y||0):r.y+r.height+e.height+a.bottom>this.getPageHeight()?(this.cellAddPage(),e.y=a.top,u&&l&&(this.printHeaderRow(e.lineNumber,!0),e.y+=l[0].height)):e.y=r.y+r.height||e.y),void 0!==e.text[0]&&(this.rect(e.x,e.y,e.width,e.height,!0===n?"FD":void 0),"right"===e.align?this.text(e.text,e.x+e.width-i,e.y+i,{align:"right",baseline:"top"}):"center"===e.align?this.text(e.text,e.x+e.width/2,e.y+i,{align:"center",baseline:"top",maxWidth:e.width-i-i}):this.text(e.text,e.x+i,e.y+i,{align:"left",baseline:"top",maxWidth:e.width-i-i})),this.internal.__cell__.lastCell=e,this};e.table=function(e,n,u,c,h){if(s.call(this),!u)throw new Error("No data for PDF table.");var d,f,p,m,g=[],v=[],y=[],b={},_={},j=[],w=[],x=(h=h||{}).autoSize||!1,A=!1!==h.printHeaders,S=h.css&&void 0!==h.css["font-size"]?16*h.css["font-size"]:h.fontSize||12,N=h.margins||Object.assign({width:this.getPageWidth()},t),L="number"==typeof h.padding?h.padding:3,k=h.headerBackgroundColor||"#c8c8c8",P=h.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=A,this.internal.__cell__.margins=N,this.internal.__cell__.table_font_size=S,this.internal.__cell__.padding=L,this.internal.__cell__.headerBackgroundColor=k,this.internal.__cell__.headerTextColor=P,this.setFontSize(S),null==c)v=g=Object.keys(u[0]),y=g.map(function(){return"left"});else if(Array.isArray(c)&&"object"===(0,r.default)(c[0]))for(g=c.map(function(e){return e.name}),v=c.map(function(e){return e.prompt||e.name||""}),y=c.map(function(e){return e.align||"left"}),d=0;d<c.length;d+=1)_[c[d].name]=.7499990551181103*c[d].width;else Array.isArray(c)&&"string"==typeof c[0]&&(v=g=c,y=g.map(function(){return"left"}));if(x||Array.isArray(c)&&"string"==typeof c[0])for(d=0;d<g.length;d+=1){for(b[m=g[d]]=u.map(function(e){return e[m]}),this.setFont(void 0,"bold"),j.push(this.getTextDimensions(v[d],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),f=b[m],this.setFont(void 0,"normal"),p=0;p<f.length;p+=1)j.push(this.getTextDimensions(f[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);_[m]=Math.max.apply(null,j)+L+L,j=[]}if(A){var E={};for(d=0;d<g.length;d+=1)E[g[d]]={},E[g[d]].text=v[d],E[g[d]].align=y[d];var C=l.call(this,E,_);w=g.map(function(t){return new o(e,n,_[t],C,E[t].text,void 0,E[t].align)}),this.setTableHeaderRow(w),this.printHeaderRow(1,!1)}var O=c.reduce(function(e,t){return e[t.name]=t.align,e},{});for(d=0;d<u.length;d+=1){"rowStart"in h&&h.rowStart instanceof Function&&h.rowStart({row:d,data:u[d]},this);var T=l.call(this,u[d],_);for(p=0;p<g.length;p+=1){var I=u[d][g[p]];"cellStart"in h&&h.cellStart instanceof Function&&h.cellStart({row:d,col:p,data:I},this),a.call(this,new o(e,n,_[g[p]],T,I,d+2,O[g[p]]))}}return this.internal.__cell__.table_x=e,this.internal.__cell__.table_y=n,this};var l=function(e,t){var n=this.internal.__cell__.padding,r=this.internal.__cell__.table_font_size,s=this.internal.scaleFactor;return Object.keys(e).map(function(r){var s=e[r];return this.splitTextToSize(s.hasOwnProperty("text")?s.text:s,t[r]-n-n)},this).map(function(e){return this.getLineHeightFactor()*e.length*r/s+n+n},this).reduce(function(e,t){return Math.max(e,t)},0)};e.setTableHeaderRow=function(e){s.call(this),this.internal.__cell__.tableHeaderRow=e},e.printHeaderRow=function(e,t){if(s.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var r;if(n=!0,"function"==typeof this.internal.__cell__.headerFunction){var i=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(i[0],i[1],i[2],i[3],void 0,-1)}this.setFont(void 0,"bold");for(var l=[],u=0;u<this.internal.__cell__.tableHeaderRow.length;u+=1){r=this.internal.__cell__.tableHeaderRow[u].clone(),t&&(r.y=this.internal.__cell__.margins.top||0,l.push(r)),r.lineNumber=e;var c=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),a.call(this,r),this.setTextColor(c)}l.length>0&&this.setTableHeaderRow(l),this.setFont(void 0,"normal"),n=!1}}(z.API);var Ce={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Oe=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Te=Ee(Oe),Ie=[100,200,300,400,500,600,700,800,900],Me=Ee(Ie);function Re(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),n=function(e){return Ce[e=e||"normal"]?e:"normal"}(e.style),r=function(e){return e?"number"==typeof e?e>=100&&e<=900&&e%100==0?e:400:/^\d00$/.test(e)?parseInt(e):"bold"===e?700:400:400}(e.weight),s=function(e){return"number"==typeof Te[e=e||"normal"]?e:"normal"}(e.stretch);return{family:t,style:n,weight:r,stretch:s,src:e.src||[],ref:e.ref||{name:t,style:[s,n,r].join(" ")}}}function Fe(e,t,n,r){var s;for(s=n;s>=0&&s<t.length;s+=r)if(e[t[s]])return e[t[s]];for(s=n;s>=0&&s<t.length;s-=r)if(e[t[s]])return e[t[s]]}var De={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Be={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function ze(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function Ue(e){return e.trimLeft()}function qe(e,t){for(var n=0;n<e.length;){if(e.charAt(n)===t)return[e.substring(0,n),e.substring(n+1)];n+=1}return null}function Ve(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===t?null:[t[0],e.substring(t[0].length)]}var He,We,Ge,Ye,Xe,Ze,$e,Ke,Je=["times"];function Qe(e,t,n,r,i){var o=4,a=nt;switch(i){case z.API.image_compression.FAST:o=1,a=tt;break;case z.API.image_compression.MEDIUM:o=6,a=rt;break;case z.API.image_compression.SLOW:o=9,a=st}e=function(e,t,n,r){for(var s,i=e.length/t,o=new Uint8Array(e.length+i),a=[et,tt,nt,rt,st],l=0;l<i;l+=1){var u=l*t,c=e.subarray(u,u+t);if(r)o.set(r(c,n,s),u+l);else{for(var h=a.length,d=[],f=0;f<h;f+=1)d[f]=a[f](c,n,s);var p=ot(d.concat());o.set(d[p],u+l)}s=c}return o}(e,t,Math.ceil(n*r/8),a);var l=(0,s.zlibSync)(e,{level:o});return z.API.__addimage__.arrayBufferToBinaryString(l)}function et(e){var t=Array.apply([],e);return t.unshift(0),t}function tt(e,t){var n=e.length,r=[];r[0]=1;for(var s=0;s<n;s+=1){var i=e[s-t]||0;r[s+1]=e[s]-i+256&255}return r}function nt(e,t,n){var r=e.length,s=[];s[0]=2;for(var i=0;i<r;i+=1){var o=n&&n[i]||0;s[i+1]=e[i]-o+256&255}return s}function rt(e,t,n){var r=e.length,s=[];s[0]=3;for(var i=0;i<r;i+=1){var o=e[i-t]||0,a=n&&n[i]||0;s[i+1]=e[i]+256-(o+a>>>1)&255}return s}function st(e,t,n){var r=e.length,s=[];s[0]=4;for(var i=0;i<r;i+=1){var o=it(e[i-t]||0,n&&n[i]||0,n&&n[i-t]||0);s[i+1]=e[i]-o+256&255}return s}function it(e,t,n){if(e===t&&t===n)return e;var r=Math.abs(t-n),s=Math.abs(e-n),i=Math.abs(e+t-n-n);return r<=s&&r<=i?e:s<=i?t:n}function ot(e){var t=e.map(function(e){return e.reduce(function(e,t){return e+Math.abs(t)},0)});return t.indexOf(Math.min.apply(null,t))}function at(e,t,n){var r=t*n,s=Math.floor(r/8),i=16-(r-8*s+n),o=(1<<n)-1;return ut(e,s)>>i&o}function lt(e,t,n,r){var s=n*r,i=Math.floor(s/8),o=16-(s-8*i+r),a=(1<<r)-1,l=(t&a)<<o;!function(e,t,n){if(t+1<e.byteLength)e.setUint16(t,n,!1);else{var r=n>>8&255;e.setUint8(t,r)}}(e,i,ut(e,i)&~(a<<o)&65535|l)}function ut(e,t){return t+1<e.byteLength?e.getUint16(t,!1):e.getUint8(t)<<8}function ct(e){var t=0;if(71!==e[t++]||73!==e[t++]||70!==e[t++]||56!==e[t++]||56!=(e[t++]+1&253)||97!==e[t++])throw new Error("Invalid GIF 87a/89a header.");var n=e[t++]|e[t++]<<8,r=e[t++]|e[t++]<<8,s=e[t++],i=s>>7,o=1<<1+(7&s);e[t++],e[t++];var a=null,l=null;i&&(a=t,l=o,t+=3*o);var u=!0,c=[],h=0,d=null,f=0,p=null;for(this.width=n,this.height=r;u&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(11!==e[t]||78==e[t+1]&&69==e[t+2]&&84==e[t+3]&&83==e[t+4]&&67==e[t+5]&&65==e[t+6]&&80==e[t+7]&&69==e[t+8]&&50==e[t+9]&&46==e[t+10]&&48==e[t+11]&&3==e[t+12]&&1==e[t+13]&&0==e[t+16])t+=14,p=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((L=e[t++])>=0))throw Error("Invalid block size");if(0===L)break;t+=L}break;case 249:if(4!==e[t++]||0!==e[t+4])throw new Error("Invalid graphics extension block.");var m=e[t++];h=e[t++]|e[t++]<<8,d=e[t++],1&m||(d=null),f=m>>2&7,t++;break;case 254:for(;;){if(!((L=e[t++])>=0))throw Error("Invalid block size");if(0===L)break;t+=L}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var g=e[t++]|e[t++]<<8,v=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,b=e[t++]|e[t++]<<8,_=e[t++],j=_>>6&1,w=1<<1+(7&_),x=a,A=l,S=!1;_>>7&&(S=!0,x=t,A=w,t+=3*w);var N=t;for(t++;;){var L;if(!((L=e[t++])>=0))throw Error("Invalid block size");if(0===L)break;t+=L}c.push({x:g,y:v,width:y,height:b,has_local_palette:S,palette_offset:x,palette_size:A,data_offset:N,data_length:t-N,transparent_index:d,interlaced:!!j,delay:h,disposal:f});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return c.length},this.loopCount=function(){return p},this.frameInfo=function(e){if(e<0||e>=c.length)throw new Error("Frame index out of range.");return c[e]},this.decodeAndBlitFrameBGRA=function(t,r){var s=this.frameInfo(t),i=s.width*s.height,o=new Uint8Array(i);ht(e,s.data_offset,o,i);var a=s.palette_offset,l=s.transparent_index;null===l&&(l=256);var u=s.width,c=n-u,h=u,d=4*(s.y*n+s.x),f=4*((s.y+s.height)*n+s.x),p=d,m=4*c;!0===s.interlaced&&(m+=4*n*7);for(var g=8,v=0,y=o.length;v<y;++v){var b=o[v];if(0===h&&(h=u,(p+=m)>=f&&(m=4*c+4*n*(g-1),p=d+(u+c)*(g<<1),g>>=1)),b===l)p+=4;else{var _=e[a+3*b],j=e[a+3*b+1],w=e[a+3*b+2];r[p++]=w,r[p++]=j,r[p++]=_,r[p++]=255}--h}},this.decodeAndBlitFrameRGBA=function(t,r){var s=this.frameInfo(t),i=s.width*s.height,o=new Uint8Array(i);ht(e,s.data_offset,o,i);var a=s.palette_offset,l=s.transparent_index;null===l&&(l=256);var u=s.width,c=n-u,h=u,d=4*(s.y*n+s.x),f=4*((s.y+s.height)*n+s.x),p=d,m=4*c;!0===s.interlaced&&(m+=4*n*7);for(var g=8,v=0,y=o.length;v<y;++v){var b=o[v];if(0===h&&(h=u,(p+=m)>=f&&(m=4*c+4*n*(g-1),p=d+(u+c)*(g<<1),g>>=1)),b===l)p+=4;else{var _=e[a+3*b],j=e[a+3*b+1],w=e[a+3*b+2];r[p++]=_,r[p++]=j,r[p++]=w,r[p++]=255}--h}}}function ht(e,t,n,r){for(var s=e[t++],i=1<<s,o=i+1,a=o+1,l=s+1,c=(1<<l)-1,h=0,d=0,f=0,p=e[t++],m=new Int32Array(4096),g=null;;){for(;h<16&&0!==p;)d|=e[t++]<<h,h+=8,1===p?p=e[t++]:--p;if(h<l)break;var v=d&c;if(d>>=l,h-=l,v!==i){if(v===o)break;for(var y=v<a?v:g,b=0,_=y;_>i;)_=m[_]>>8,++b;var j=_;if(f+b+(y!==v?1:0)>r)return void u.log("Warning, gif stream longer than expected.");n[f++]=j;var w=f+=b;for(y!==v&&(n[f++]=j),_=y;b--;)_=m[_],n[--w]=255&_,_>>=8;null!==g&&a<4096&&(m[a++]=g<<8|j,a>=c+1&&l<12&&(++l,c=c<<1|1)),g=v}else a=o+1,c=(1<<(l=s+1))-1,g=null}return f!==r&&u.log("Warning, gif stream shorter than expected."),n}function dt(e){var t,n,r,s,i,o=Math.floor,a=new Array(64),l=new Array(64),u=new Array(64),c=new Array(64),h=new Array(65535),d=new Array(65535),f=new Array(64),p=new Array(64),m=[],g=0,v=7,y=new Array(64),b=new Array(64),_=new Array(64),j=new Array(256),w=new Array(2048),x=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],A=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],S=[0,1,2,3,4,5,6,7,8,9,10,11],N=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],L=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],k=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],P=[0,1,2,3,4,5,6,7,8,9,10,11],E=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],C=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function O(e,t){for(var n=0,r=0,s=new Array,i=1;i<=16;i++){for(var o=1;o<=e[i];o++)s[t[r]]=[],s[t[r]][0]=n,s[t[r]][1]=i,r++,n++;n*=2}return s}function T(e){for(var t=e[0],n=e[1]-1;n>=0;)t&1<<n&&(g|=1<<v),n--,--v<0&&(255==g?(I(255),I(0)):I(g),v=7,g=0)}function I(e){m.push(e)}function M(e){I(e>>8&255),I(255&e)}function R(e,t,n,r,s){for(var i,o=s[0],a=s[240],l=function(e,t){var n,r,s,i,o,a,l,u,c,h,d=0;for(c=0;c<8;++c){n=e[d],r=e[d+1],s=e[d+2],i=e[d+3],o=e[d+4],a=e[d+5],l=e[d+6];var p=n+(u=e[d+7]),m=n-u,g=r+l,v=r-l,y=s+a,b=s-a,_=i+o,j=i-o,w=p+_,x=p-_,A=g+y,S=g-y;e[d]=w+A,e[d+4]=w-A;var N=.707106781*(S+x);e[d+2]=x+N,e[d+6]=x-N;var L=.382683433*((w=j+b)-(S=v+m)),k=.5411961*w+L,P=1.306562965*S+L,E=.707106781*(A=b+v),C=m+E,O=m-E;e[d+5]=O+k,e[d+3]=O-k,e[d+1]=C+P,e[d+7]=C-P,d+=8}for(d=0,c=0;c<8;++c){n=e[d],r=e[d+8],s=e[d+16],i=e[d+24],o=e[d+32],a=e[d+40],l=e[d+48];var T=n+(u=e[d+56]),I=n-u,M=r+l,R=r-l,F=s+a,D=s-a,B=i+o,z=i-o,U=T+B,q=T-B,V=M+F,H=M-F;e[d]=U+V,e[d+32]=U-V;var W=.707106781*(H+q);e[d+16]=q+W,e[d+48]=q-W;var G=.382683433*((U=z+D)-(H=R+I)),Y=.5411961*U+G,X=1.306562965*H+G,Z=.707106781*(V=D+R),$=I+Z,K=I-Z;e[d+40]=K+Y,e[d+24]=K-Y,e[d+8]=$+X,e[d+56]=$-X,d++}for(c=0;c<64;++c)h=e[c]*t[c],f[c]=h>0?h+.5|0:h-.5|0;return f}(e,t),u=0;u<64;++u)p[x[u]]=l[u];var c=p[0]-n;n=p[0],0==c?T(r[0]):(T(r[d[i=32767+c]]),T(h[i]));for(var m=63;m>0&&0==p[m];)m--;if(0==m)return T(o),n;for(var g,v=1;v<=m;){for(var y=v;0==p[v]&&v<=m;)++v;var b=v-y;if(b>=16){g=b>>4;for(var _=1;_<=g;++_)T(a);b&=15}i=32767+p[v],T(s[(b<<4)+d[i]]),T(h[i]),v++}return 63!=m&&T(o),n}function F(e){e=Math.min(Math.max(e,1),100),i!=e&&(function(e){for(var t=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var r=o((t[n]*e+50)/100);r=Math.min(Math.max(r,1),255),a[x[n]]=r}for(var s=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],i=0;i<64;i++){var h=o((s[i]*e+50)/100);h=Math.min(Math.max(h,1),255),l[x[i]]=h}for(var d=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],f=0,p=0;p<8;p++)for(var m=0;m<8;m++)u[f]=1/(a[x[f]]*d[p]*d[m]*8),c[f]=1/(l[x[f]]*d[p]*d[m]*8),f++}(e<50?Math.floor(5e3/e):Math.floor(200-2*e)),i=e)}this.encode=function(e,i){i&&F(i),m=new Array,g=0,v=7,M(65496),M(65504),M(16),I(74),I(70),I(73),I(70),I(0),I(1),I(1),I(0),M(1),M(1),I(0),I(0),function(){M(65499),M(132),I(0);for(var e=0;e<64;e++)I(a[e]);I(1);for(var t=0;t<64;t++)I(l[t])}(),function(e,t){M(65472),M(17),I(8),M(t),M(e),I(3),I(1),I(17),I(0),I(2),I(17),I(1),I(3),I(17),I(1)}(e.width,e.height),function(){M(65476),M(418),I(0);for(var e=0;e<16;e++)I(A[e+1]);for(var t=0;t<=11;t++)I(S[t]);I(16);for(var n=0;n<16;n++)I(N[n+1]);for(var r=0;r<=161;r++)I(L[r]);I(1);for(var s=0;s<16;s++)I(k[s+1]);for(var i=0;i<=11;i++)I(P[i]);I(17);for(var o=0;o<16;o++)I(E[o+1]);for(var a=0;a<=161;a++)I(C[a])}(),M(65498),M(12),I(3),I(1),I(0),I(2),I(17),I(3),I(17),I(0),I(63),I(0);var o=0,h=0,d=0;g=0,v=7,this.encode.displayName="_encode_";for(var f,p,j,x,O,D,B,z,U,q=e.data,V=e.width,H=e.height,W=4*V,G=0;G<H;){for(f=0;f<W;){for(O=W*G+f,B=-1,z=0,U=0;U<64;U++)D=O+(z=U>>3)*W+(B=4*(7&U)),G+z>=H&&(D-=W*(G+1+z-H)),f+B>=W&&(D-=f+B-W+4),p=q[D++],j=q[D++],x=q[D++],y[U]=(w[p]+w[j+256|0]+w[x+512|0]>>16)-128,b[U]=(w[p+768|0]+w[j+1024|0]+w[x+1280|0]>>16)-128,_[U]=(w[p+1280|0]+w[j+1536|0]+w[x+1792|0]>>16)-128;o=R(y,u,o,t,r),h=R(b,c,h,n,s),d=R(_,c,d,n,s),f+=32}G+=8}if(v>=0){var Y=[];Y[1]=v+1,Y[0]=(1<<v+1)-1,T(Y)}return M(65497),new Uint8Array(m)},e=e||50,function(){for(var e=String.fromCharCode,t=0;t<256;t++)j[t]=e(t)}(),t=O(A,S),n=O(k,P),r=O(N,L),s=O(E,C),function(){for(var e=1,t=2,n=1;n<=15;n++){for(var r=e;r<t;r++)d[32767+r]=n,h[32767+r]=[],h[32767+r][1]=n,h[32767+r][0]=r;for(var s=-(t-1);s<=-e;s++)d[32767+s]=n,h[32767+s]=[],h[32767+s][1]=n,h[32767+s][0]=t-1+s;e<<=1,t<<=1}}(),function(){for(var e=0;e<256;e++)w[e]=19595*e,w[e+256|0]=38470*e,w[e+512|0]=7471*e+32768,w[e+768|0]=-11059*e,w[e+1024|0]=-21709*e,w[e+1280|0]=32768*e+8421375,w[e+1536|0]=-27439*e,w[e+1792|0]=-5329*e}(),F(e)}function ft(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function pt(e){function t(e){if(!e)throw Error("assert :P")}function n(e,t,n){for(var r=0;4>r;r++)if(e[t+r]!=n.charCodeAt(r))return!0;return!1}function r(e,t,n,r,s){for(var i=0;i<s;i++)e[t+i]=n[r+i]}function s(e,t,n,r){for(var s=0;s<r;s++)e[t+s]=n}function i(e){return new Int32Array(e)}function o(e,t){for(var n=[],r=0;r<e;r++)n.push(new t);return n}function a(e,t){var n=[];return function e(n,r,s){for(var i=s[r],o=0;o<i&&(n.push(s.length>r+1?[]:new t),!(s.length<r+1));o++)e(n[o],r+1,s)}(n,0,e),n}var l=function(){var e=this;function l(e,t){for(var n=1<<t-1>>>0;e&n;)n>>>=1;return n?(e&n-1)+n:e}function u(e,n,r,s,i){t(!(s%r));do{e[n+(s-=r)]=i}while(0<s)}function c(e,n,r,s,o){if(t(2328>=o),512>=o)var a=i(512);else if(null==(a=i(o)))return 0;return function(e,n,r,s,o,a){var c,d,f=n,p=1<<r,m=i(16),g=i(16);for(t(0!=o),t(null!=s),t(null!=e),t(0<r),d=0;d<o;++d){if(15<s[d])return 0;++m[s[d]]}if(m[0]==o)return 0;for(g[1]=0,c=1;15>c;++c){if(m[c]>1<<c)return 0;g[c+1]=g[c]+m[c]}for(d=0;d<o;++d)c=s[d],0<s[d]&&(a[g[c]++]=d);if(1==g[15])return(s=new h).g=0,s.value=a[0],u(e,f,1,p,s),p;var v,y=-1,b=p-1,_=0,j=1,w=1,x=1<<r;for(d=0,c=1,o=2;c<=r;++c,o<<=1){if(j+=w<<=1,0>(w-=m[c]))return 0;for(;0<m[c];--m[c])(s=new h).g=c,s.value=a[d++],u(e,f+_,o,x,s),_=l(_,c)}for(c=r+1,o=2;15>=c;++c,o<<=1){if(j+=w<<=1,0>(w-=m[c]))return 0;for(;0<m[c];--m[c]){if(s=new h,(_&b)!=y){for(f+=x,v=1<<(y=c)-r;15>y&&!(0>=(v-=m[y]));)++y,v<<=1;p+=x=1<<(v=y-r),e[n+(y=_&b)].g=v+r,e[n+y].value=f-n-y}s.g=c-r,s.value=a[d++],u(e,f+(_>>r),o,x,s),_=l(_,c)}}return j!=2*g[15]-1?0:p}(e,n,r,s,o,a)}function h(){this.value=this.g=0}function d(){this.value=this.g=0}function f(){this.G=o(5,h),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(Dn,d)}function p(e,n,r,s){t(null!=e),t(null!=n),t(2147483648>s),e.Ca=254,e.I=0,e.b=-8,e.Ka=0,e.oa=n,e.pa=r,e.Jd=n,e.Yc=r+s,e.Zc=4<=s?r+s-4+1:r,N(e)}function m(e,t){for(var n=0;0<t--;)n|=k(e,128)<<t;return n}function g(e,t){var n=m(e,t);return L(e)?-n:n}function v(e,n,r,s){var i,o=0;for(t(null!=e),t(null!=n),t(4294967288>s),e.Sb=s,e.Ra=0,e.u=0,e.h=0,4<s&&(s=4),i=0;i<s;++i)o+=n[r+i]<<8*i;e.Ra=o,e.bb=s,e.oa=n,e.pa=r}function y(e){for(;8<=e.u&&e.bb<e.Sb;)e.Ra>>>=8,e.Ra+=e.oa[e.pa+e.bb]<<Un-8>>>0,++e.bb,e.u-=8;x(e)&&(e.h=1,e.u=0)}function b(e,n){if(t(0<=n),!e.h&&n<=zn){var r=w(e)&Bn[n];return e.u+=n,y(e),r}return e.h=1,e.u=0}function _(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function j(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function w(e){return e.Ra>>>(e.u&Un-1)>>>0}function x(e){return t(e.bb<=e.Sb),e.h||e.bb==e.Sb&&e.u>Un}function A(e,t){e.u=t,e.h=x(e)}function S(e){e.u>=qn&&(t(e.u>=qn),y(e))}function N(e){t(null!=e&&null!=e.oa),e.pa<e.Zc?(e.I=(e.oa[e.pa++]|e.I<<8)>>>0,e.b+=8):(t(null!=e&&null!=e.oa),e.pa<e.Yc?(e.b+=8,e.I=e.oa[e.pa++]|e.I<<8):e.Ka?e.b=0:(e.I<<=8,e.b+=8,e.Ka=1))}function L(e){return m(e,1)}function k(e,t){var n=e.Ca;0>e.b&&N(e);var r=e.b,s=n*t>>>8,i=(e.I>>>r>s)+0;for(i?(n-=s,e.I-=s+1<<r>>>0):n=s+1,r=n,s=0;256<=r;)s+=8,r>>=8;return r=7^s+Vn[r],e.b-=r,e.Ca=(n<<r)-1,i}function P(e,t,n){e[t+0]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n}function E(e,t){return e[t+0]|e[t+1]<<8}function C(e,t){return E(e,t)|e[t+2]<<16}function O(e,t){return E(e,t)|E(e,t+2)<<16}function T(e,n){var r=1<<n;return t(null!=e),t(0<n),e.X=i(r),null==e.X?0:(e.Mb=32-n,e.Xa=n,1)}function I(e,n){t(null!=e),t(null!=n),t(e.Xa==n.Xa),r(n.X,0,e.X,0,1<<n.Xa)}function M(){this.X=[],this.Xa=this.Mb=0}function R(e,n,r,s){t(null!=r),t(null!=s);var i=r[0],o=s[0];return 0==i&&(i=(e*o+n/2)/n),0==o&&(o=(n*i+e/2)/e),0>=i||0>=o?0:(r[0]=i,s[0]=o,1)}function F(e,t){return e+(1<<t)-1>>>t}function D(e,t){return((4278255360&e)+(4278255360&t)>>>0&4278255360)+((16711935&e)+(16711935&t)>>>0&16711935)>>>0}function B(t,n){e[n]=function(n,r,s,i,o,a,l){var u;for(u=0;u<o;++u){var c=e[t](a[l+u-1],s,i+u);a[l+u]=D(n[r+u],c)}}}function z(){this.ud=this.hd=this.jd=0}function U(e,t){return((4278124286&(e^t))>>>1)+(e&t)>>>0}function q(e){return 0<=e&&256>e?e:0>e?0:255<e?255:void 0}function V(e,t){return q(e+(e-t+.5>>1))}function H(e,t,n){return Math.abs(t-n)-Math.abs(e-n)}function W(e,t,n,r,s,i,o){for(r=i[o-1],n=0;n<s;++n)i[o+n]=r=D(e[t+n],r)}function G(e,t,n,r,s){var i;for(i=0;i<n;++i){var o=e[t+i],a=o>>8&255,l=16711935&(l=(l=16711935&o)+((a<<16)+a));r[s+i]=(4278255360&o)+l>>>0}}function Y(e,t){t.jd=255&e,t.hd=e>>8&255,t.ud=e>>16&255}function X(e,t,n,r,s,i){var o;for(o=0;o<r;++o){var a=t[n+o],l=a>>>8,u=a,c=255&(c=(c=a>>>16)+((e.jd<<24>>24)*(l<<24>>24)>>>5));u=255&(u=(u+=(e.hd<<24>>24)*(l<<24>>24)>>>5)+((e.ud<<24>>24)*(c<<24>>24)>>>5)),s[i+o]=(4278255360&a)+(c<<16)+u}}function Z(t,n,r,s,i){e[n]=function(e,t,n,r,o,a,l,u,c){for(r=l;r<u;++r)for(l=0;l<c;++l)o[a++]=i(n[s(e[t++])])},e[t]=function(t,n,o,a,l,u,c){var h=8>>t.b,d=t.Ea,f=t.K[0],p=t.w;if(8>h)for(t=(1<<t.b)-1,p=(1<<h)-1;n<o;++n){var m,g=0;for(m=0;m<d;++m)m&t||(g=s(a[l++])),u[c++]=i(f[g&p]),g>>=h}else e["VP8LMapColor"+r](a,l,f,p,u,c,n,o,d)}}function $(e,t,n,r,s){for(n=t+n;t<n;){var i=e[t++];r[s++]=i>>16&255,r[s++]=i>>8&255,r[s++]=255&i}}function K(e,t,n,r,s){for(n=t+n;t<n;){var i=e[t++];r[s++]=i>>16&255,r[s++]=i>>8&255,r[s++]=255&i,r[s++]=i>>24&255}}function J(e,t,n,r,s){for(n=t+n;t<n;){var i=(o=e[t++])>>16&240|o>>12&15,o=240&o|o>>28&15;r[s++]=i,r[s++]=o}}function Q(e,t,n,r,s){for(n=t+n;t<n;){var i=(o=e[t++])>>16&248|o>>13&7,o=o>>5&224|o>>3&31;r[s++]=i,r[s++]=o}}function ee(e,t,n,r,s){for(n=t+n;t<n;){var i=e[t++];r[s++]=255&i,r[s++]=i>>8&255,r[s++]=i>>16&255}}function te(e,t,n,s,i,o){if(0==o)for(n=t+n;t<n;)P(s,((o=e[t++])[0]>>24|o[1]>>8&65280|o[2]<<8&16711680|o[3]<<24)>>>0),i+=32;else r(s,i,e,t,n)}function ne(t,n){e[n][0]=e[t+"0"],e[n][1]=e[t+"1"],e[n][2]=e[t+"2"],e[n][3]=e[t+"3"],e[n][4]=e[t+"4"],e[n][5]=e[t+"5"],e[n][6]=e[t+"6"],e[n][7]=e[t+"7"],e[n][8]=e[t+"8"],e[n][9]=e[t+"9"],e[n][10]=e[t+"10"],e[n][11]=e[t+"11"],e[n][12]=e[t+"12"],e[n][13]=e[t+"13"],e[n][14]=e[t+"0"],e[n][15]=e[t+"0"]}function re(e){return e==qr||e==Vr||e==Hr||e==Wr}function se(){this.eb=[],this.size=this.A=this.fb=0}function ie(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function oe(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new se,this.f.kb=new ie,this.sd=null}function ae(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function le(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function ue(e){return alert("todo:WebPSamplerProcessPlane"),e.T}function ce(e,t){var n=e.T,s=t.ba.f.RGBA,i=s.eb,o=s.fb+e.ka*s.A,a=gs[t.ba.S],l=e.y,u=e.O,c=e.f,h=e.N,d=e.ea,f=e.W,p=t.cc,m=t.dc,g=t.Mc,v=t.Nc,y=e.ka,b=e.ka+e.T,_=e.U,j=_+1>>1;for(0==y?a(l,u,null,null,c,h,d,f,c,h,d,f,i,o,null,null,_):(a(t.ec,t.fc,l,u,p,m,g,v,c,h,d,f,i,o-s.A,i,o,_),++n);y+2<b;y+=2)p=c,m=h,g=d,v=f,h+=e.Rc,f+=e.Rc,o+=2*s.A,a(l,(u+=2*e.fa)-e.fa,l,u,p,m,g,v,c,h,d,f,i,o-s.A,i,o,_);return u+=e.fa,e.j+b<e.o?(r(t.ec,t.fc,l,u,_),r(t.cc,t.dc,c,h,j),r(t.Mc,t.Nc,d,f,j),n--):1&b||a(l,u,null,null,c,h,d,f,c,h,d,f,i,o+s.A,null,null,_),n}function he(e,n,r){var s=e.F,i=[e.J];if(null!=s){var o=e.U,a=n.ba.S,l=a==Br||a==Hr;n=n.ba.f.RGBA;var u=[0],c=e.ka;u[0]=e.T,e.Kb&&(0==c?--u[0]:(--c,i[0]-=e.width),e.j+e.ka+e.T==e.o&&(u[0]=e.o-e.j-c));var h=n.eb;c=n.fb+c*n.A,e=Ar(s,i[0],e.width,o,u,h,c+(l?0:3),n.A),t(r==u),e&&re(a)&&wr(h,c,l,o,u,n.A)}return 0}function de(e){var t=e.ma,n=t.ba.S,r=11>n,s=n==Rr||n==Dr||n==Br||n==zr||12==n||re(n);if(t.memory=null,t.Ib=null,t.Jb=null,t.Nd=null,!Mn(t.Oa,e,s?11:12))return 0;if(s&&re(n)&&yn(),e.da)alert("todo:use_scaling");else{if(r){if(t.Ib=ue,e.Kb){if(n=e.U+1>>1,t.memory=i(e.U+2*n),null==t.memory)return 0;t.ec=t.memory,t.fc=0,t.cc=t.ec,t.dc=t.fc+e.U,t.Mc=t.cc,t.Nc=t.dc+n,t.Ib=ce,yn()}}else alert("todo:EmitYUV");s&&(t.Jb=he,r&&gn())}if(r&&!Es){for(e=0;256>e;++e)Cs[e]=89858*(e-128)+Ss>>As,Is[e]=-22014*(e-128)+Ss,Ts[e]=-45773*(e-128),Os[e]=113618*(e-128)+Ss>>As;for(e=Ns;e<Ls;++e)t=76283*(e-16)+Ss>>As,Ms[e-Ns]=We(t,255),Rs[e-Ns]=We(t+8>>4,15);Es=1}return 1}function fe(e){var n=e.ma,r=e.U,s=e.T;return t(!(1&e.ka)),0>=r||0>=s?0:(r=n.Ib(e,n),null!=n.Jb&&n.Jb(e,n,r),n.Dc+=r,1)}function pe(e){e.ma.memory=null}function me(e,t,n,r){return 47!=b(e,8)?0:(t[0]=b(e,14)+1,n[0]=b(e,14)+1,r[0]=b(e,1),0!=b(e,3)?0:!e.h)}function ge(e,t){if(4>e)return e+1;var n=e-2>>1;return(2+(1&e)<<n)+b(t,n)+1}function ve(e,t){return 120<t?t-120:1<=(n=((n=Kr[t-1])>>4)*e+(8-(15&n)))?n:1;var n}function ye(e,t,n){var r=w(n),s=e[t+=255&r].g-8;return 0<s&&(A(n,n.u+8),r=w(n),t+=e[t].value,t+=r&(1<<s)-1),A(n,n.u+e[t].g),e[t].value}function be(e,n,r){return r.g+=e.g,r.value+=e.value<<n>>>0,t(8>=r.g),e.g}function _e(e,n,r){var s=e.xc;return t((n=0==s?0:e.vc[e.md*(r>>s)+(n>>s)])<e.Wb),e.Ya[n]}function je(e,n,s,i){var o=e.ab,a=e.c*n,l=e.C;n=l+n;var u=s,c=i;for(i=e.Ta,s=e.Ua;0<o--;){var h=e.gc[o],d=l,f=n,p=u,m=c,g=(c=i,u=s,h.Ea);switch(t(d<f),t(f<=h.nc),h.hc){case 2:Gn(p,m,(f-d)*g,c,u);break;case 0:var v=d,y=f,b=c,_=u,j=(N=h).Ea;0==v&&(Hn(p,m,null,null,1,b,_),W(p,m+1,0,0,j-1,b,_+1),m+=j,_+=j,++v);for(var w=1<<N.b,x=w-1,A=F(j,N.b),S=N.K,N=N.w+(v>>N.b)*A;v<y;){var L=S,k=N,P=1;for(Wn(p,m,b,_-j,1,b,_);P<j;){var E=(P&~x)+w;E>j&&(E=j),(0,Kn[L[k++]>>8&15])(p,m+ +P,b,_+P-j,E-P,b,_+P),P=E}m+=j,_+=j,++v&x||(N+=A)}f!=h.nc&&r(c,u-g,c,u+(f-d-1)*g,g);break;case 1:for(g=p,y=m,j=(p=h.Ea)-(_=p&~(b=(m=1<<h.b)-1)),v=F(p,h.b),w=h.K,h=h.w+(d>>h.b)*v;d<f;){for(x=w,A=h,S=new z,N=y+_,L=y+p;y<N;)Y(x[A++],S),Jn(S,g,y,m,c,u),y+=m,u+=m;y<L&&(Y(x[A++],S),Jn(S,g,y,j,c,u),y+=j,u+=j),++d&b||(h+=v)}break;case 3:if(p==c&&m==u&&0<h.b){for(y=c,p=g=u+(f-d)*g-(_=(f-d)*F(h.Ea,h.b)),m=c,b=u,v=[],_=(j=_)-1;0<=_;--_)v[_]=m[b+_];for(_=j-1;0<=_;--_)y[p+_]=v[_];Yn(h,d,f,c,g,c,u)}else Yn(h,d,f,p,m,c,u)}u=i,c=s}c!=s&&r(i,s,u,c,a)}function we(e,n){var r=e.V,s=e.Ba+e.c*e.C,i=n-e.C;if(t(n<=e.l.o),t(16>=i),0<i){var o=e.l,a=e.Ta,l=e.Ua,u=o.width;if(je(e,i,r,s),i=l=[l],t((r=e.C)<(s=n)),t(o.v<o.va),s>o.o&&(s=o.o),r<o.j){var c=o.j-r;r=o.j,i[0]+=c*u}if(r>=s?r=0:(i[0]+=4*o.v,o.ka=r-o.j,o.U=o.va-o.v,o.T=s-r,r=1),r){if(l=l[0],11>(r=e.ca).S){var h=r.f.RGBA,d=(s=r.S,i=o.U,o=o.T,c=h.eb,h.A),f=o;for(h=h.fb+e.Ma*h.A;0<f--;){var p=a,m=l,g=i,v=c,y=h;switch(s){case Mr:Qn(p,m,g,v,y);break;case Rr:er(p,m,g,v,y);break;case qr:er(p,m,g,v,y),wr(v,y,0,g,1,0);break;case Fr:rr(p,m,g,v,y);break;case Dr:te(p,m,g,v,y,1);break;case Vr:te(p,m,g,v,y,1),wr(v,y,0,g,1,0);break;case Br:te(p,m,g,v,y,0);break;case Hr:te(p,m,g,v,y,0),wr(v,y,1,g,1,0);break;case zr:tr(p,m,g,v,y);break;case Wr:tr(p,m,g,v,y),xr(v,y,g,1,0);break;case Ur:nr(p,m,g,v,y);break;default:t(0)}l+=u,h+=d}e.Ma+=o}else alert("todo:EmitRescaledRowsYUVA");t(e.Ma<=r.height)}}e.C=n,t(e.C<=e.i)}function xe(e){var t;if(0<e.ua)return 0;for(t=0;t<e.Wb;++t){var n=e.Ya[t].G,r=e.Ya[t].H;if(0<n[1][r[1]+0].g||0<n[2][r[2]+0].g||0<n[3][r[3]+0].g)return 0}return 1}function Ae(e,n,r,s,i,o){if(0!=e.Z){var a=e.qd,l=e.rd;for(t(null!=ms[e.Z]);n<r;++n)ms[e.Z](a,l,s,i,s,i,o),a=s,l=i,i+=o;e.qd=a,e.rd=l}}function Se(e,n){var r=e.l.ma,s=0==r.Z||1==r.Z?e.l.j:e.C;if(s=e.C<s?s:e.C,t(n<=e.l.o),n>s){var i=e.l.width,o=r.ca,a=r.tb+i*s,l=e.V,u=e.Ba+e.c*s,c=e.gc;t(1==e.ab),t(3==c[0].hc),Zn(c[0],s,n,l,u,o,a),Ae(r,s,n,o,a,i)}e.C=e.Ma=n}function Ne(e,n,r,s,i,o,a){var l=e.$/s,u=e.$%s,c=e.m,h=e.s,d=r+e.$,f=d;i=r+s*i;var p=r+s*o,m=280+h.ua,g=e.Pb?l:16777216,v=0<h.ua?h.Wa:null,y=h.wc,b=d<p?_e(h,u,l):null;t(e.C<o),t(p<=i);var _=!1;e:for(;;){for(;_||d<p;){var j=0;if(l>=g){var N=d-r;t((g=e).Pb),g.wd=g.m,g.xd=N,0<g.s.ua&&I(g.s.Wa,g.s.vb),g=l+Qr}if(u&y||(b=_e(h,u,l)),t(null!=b),b.Qb&&(n[d]=b.qb,_=!0),!_)if(S(c),b.jc){j=c,N=n;var L=d,k=b.pd[w(j)&Dn-1];t(b.jc),256>k.g?(A(j,j.u+k.g),N[L]=k.value,j=0):(A(j,j.u+k.g-256),t(256<=k.value),j=k.value),0==j&&(_=!0)}else j=ye(b.G[0],b.H[0],c);if(c.h)break;if(_||256>j){if(!_)if(b.nd)n[d]=(b.qb|j<<8)>>>0;else{if(S(c),_=ye(b.G[1],b.H[1],c),S(c),N=ye(b.G[2],b.H[2],c),L=ye(b.G[3],b.H[3],c),c.h)break;n[d]=(L<<24|_<<16|j<<8|N)>>>0}if(_=!1,++d,++u>=s&&(u=0,++l,null!=a&&l<=o&&!(l%16)&&a(e,l),null!=v))for(;f<d;)j=n[f++],v.X[(506832829*j&4294967295)>>>v.Mb]=j}else if(280>j){if(j=ge(j-256,c),N=ye(b.G[4],b.H[4],c),S(c),N=ve(s,N=ge(N,c)),c.h)break;if(d-r<N||i-d<j)break e;for(L=0;L<j;++L)n[d+L]=n[d+L-N];for(d+=j,u+=j;u>=s;)u-=s,++l,null!=a&&l<=o&&!(l%16)&&a(e,l);if(t(d<=i),u&y&&(b=_e(h,u,l)),null!=v)for(;f<d;)j=n[f++],v.X[(506832829*j&4294967295)>>>v.Mb]=j}else{if(!(j<m))break e;for(_=j-280,t(null!=v);f<d;)j=n[f++],v.X[(506832829*j&4294967295)>>>v.Mb]=j;j=d,t(!(_>>>(N=v).Xa)),n[j]=N.X[_],_=!0}_||t(c.h==x(c))}if(e.Pb&&c.h&&d<i)t(e.m.h),e.a=5,e.m=e.wd,e.$=e.xd,0<e.s.ua&&I(e.s.vb,e.s.Wa);else{if(c.h)break e;null!=a&&a(e,l>o?o:l),e.a=0,e.$=d-r}return 1}return e.a=3,0}function Le(e){t(null!=e),e.vc=null,e.yc=null,e.Ya=null;var n=e.Wa;null!=n&&(n.X=null),e.vb=null,t(null!=e)}function ke(){var t=new on;return null==t?null:(t.a=0,t.xb=ps,ne("Predictor","VP8LPredictors"),ne("Predictor","VP8LPredictors_C"),ne("PredictorAdd","VP8LPredictorsAdd"),ne("PredictorAdd","VP8LPredictorsAdd_C"),Gn=G,Jn=X,Qn=$,er=K,tr=J,nr=Q,rr=ee,e.VP8LMapColor32b=Xn,e.VP8LMapColor8b=$n,t)}function Pe(e,n,r,a,l){var u=1,d=[e],p=[n],m=a.m,g=a.s,v=null,y=0;e:for(;;){if(r)for(;u&&b(m,1);){var _=d,j=p,x=a,N=1,L=x.m,k=x.gc[x.ab],P=b(L,2);if(x.Oc&1<<P)u=0;else{switch(x.Oc|=1<<P,k.hc=P,k.Ea=_[0],k.nc=j[0],k.K=[null],++x.ab,t(4>=x.ab),P){case 0:case 1:k.b=b(L,3)+2,N=Pe(F(k.Ea,k.b),F(k.nc,k.b),0,x,k.K),k.K=k.K[0];break;case 3:var E,C=b(L,8)+1,O=16<C?0:4<C?1:2<C?2:3;if(_[0]=F(k.Ea,O),k.b=O,E=N=Pe(C,1,0,x,k.K)){var I,M=C,R=k,B=1<<(8>>R.b),z=i(B);if(null==z)E=0;else{var U=R.K[0],q=R.w;for(z[0]=R.K[0][0],I=1;I<1*M;++I)z[I]=D(U[q+I],z[I-1]);for(;I<4*B;++I)z[I]=0;R.K[0]=null,R.K[0]=z,E=1}}N=E;break;case 2:break;default:t(0)}u=N}}if(d=d[0],p=p[0],u&&b(m,1)&&!(u=1<=(y=b(m,4))&&11>=y)){a.a=3;break e}var V;if(V=u)t:{var H,W,G,Y=a,X=d,Z=p,$=y,K=r,J=Y.m,Q=Y.s,ee=[null],te=1,ne=0,re=Jr[$];n:for(;;){if(K&&b(J,1)){var se=b(J,3)+2,ie=F(X,se),oe=F(Z,se),ae=ie*oe;if(!Pe(ie,oe,0,Y,ee))break n;for(ee=ee[0],Q.xc=se,H=0;H<ae;++H){var le=ee[H]>>8&65535;ee[H]=le,le>=te&&(te=le+1)}}if(J.h)break n;for(W=0;5>W;++W){var ue=Xr[W];!W&&0<$&&(ue+=1<<$),ne<ue&&(ne=ue)}var ce=o(te*re,h),he=te,de=o(he,f);if(null==de)var fe=null;else t(65536>=he),fe=de;var pe=i(ne);if(null==fe||null==pe||null==ce){Y.a=1;break n}var me=ce;for(H=G=0;H<te;++H){var ge=fe[H],ve=ge.G,ye=ge.H,_e=0,je=1,we=0;for(W=0;5>W;++W){ue=Xr[W],ve[W]=me,ye[W]=G,!W&&0<$&&(ue+=1<<$);r:{var xe,Ae=ue,Se=Y,ke=pe,Ee=me,Ce=G,Oe=0,Te=Se.m,Ie=b(Te,1);if(s(ke,0,0,Ae),Ie){var Me=b(Te,1)+1,Re=b(Te,1),Fe=b(Te,0==Re?1:8);ke[Fe]=1,2==Me&&(ke[Fe=b(Te,8)]=1);var De=1}else{var Be=i(19),ze=b(Te,4)+4;if(19<ze){Se.a=3;var Ue=0;break r}for(xe=0;xe<ze;++xe)Be[$r[xe]]=b(Te,3);var qe=void 0,Ve=void 0,He=Se,We=Be,Ge=Ae,Ye=ke,Xe=0,Ze=He.m,$e=8,Ke=o(128,h);s:for(;c(Ke,0,7,We,19);){if(b(Ze,1)){var Je=2+2*b(Ze,3);if((qe=2+b(Ze,Je))>Ge)break s}else qe=Ge;for(Ve=0;Ve<Ge&&qe--;){S(Ze);var Qe=Ke[0+(127&w(Ze))];A(Ze,Ze.u+Qe.g);var et=Qe.value;if(16>et)Ye[Ve++]=et,0!=et&&($e=et);else{var tt=16==et,nt=et-16,rt=Yr[nt],st=b(Ze,Gr[nt])+rt;if(Ve+st>Ge)break s;for(var it=tt?$e:0;0<st--;)Ye[Ve++]=it}}Xe=1;break s}Xe||(He.a=3),De=Xe}(De=De&&!Te.h)&&(Oe=c(Ee,Ce,8,ke,Ae)),De&&0!=Oe?Ue=Oe:(Se.a=3,Ue=0)}if(0==Ue)break n;if(je&&1==Zr[W]&&(je=0==me[G].g),_e+=me[G].g,G+=Ue,3>=W){var ot,at=pe[0];for(ot=1;ot<ue;++ot)pe[ot]>at&&(at=pe[ot]);we+=at}}if(ge.nd=je,ge.Qb=0,je&&(ge.qb=(ve[3][ye[3]+0].value<<24|ve[1][ye[1]+0].value<<16|ve[2][ye[2]+0].value)>>>0,0==_e&&256>ve[0][ye[0]+0].value&&(ge.Qb=1,ge.qb+=ve[0][ye[0]+0].value<<8)),ge.jc=!ge.Qb&&6>we,ge.jc){var lt,ut=ge;for(lt=0;lt<Dn;++lt){var ct=lt,ht=ut.pd[ct],dt=ut.G[0][ut.H[0]+ct];256<=dt.value?(ht.g=dt.g+256,ht.value=dt.value):(ht.g=0,ht.value=0,ct>>=be(dt,8,ht),ct>>=be(ut.G[1][ut.H[1]+ct],16,ht),ct>>=be(ut.G[2][ut.H[2]+ct],0,ht),be(ut.G[3][ut.H[3]+ct],24,ht))}}}Q.vc=ee,Q.Wb=te,Q.Ya=fe,Q.yc=ce,V=1;break t}V=0}if(!(u=V)){a.a=3;break e}if(0<y){if(g.ua=1<<y,!T(g.Wa,y)){a.a=1,u=0;break e}}else g.ua=0;var ft=a,pt=d,mt=p,gt=ft.s,vt=gt.xc;if(ft.c=pt,ft.i=mt,gt.md=F(pt,vt),gt.wc=0==vt?-1:(1<<vt)-1,r){a.xb=fs;break e}if(null==(v=i(d*p))){a.a=1,u=0;break e}u=(u=Ne(a,v,0,d,p,p,null))&&!m.h;break e}return u?(null!=l?l[0]=v:(t(null==v),t(r)),a.$=0,r||Le(g)):Le(g),u}function Ee(e,n){var r=e.c*e.i,s=r+n+16*n;return t(e.c<=n),e.V=i(s),null==e.V?(e.Ta=null,e.Ua=0,e.a=1,0):(e.Ta=e.V,e.Ua=e.Ba+r+n,1)}function Ce(e,n){var r=e.C,s=n-r,i=e.V,o=e.Ba+e.c*r;for(t(n<=e.l.o);0<s;){var a=16<s?16:s,l=e.l.ma,u=e.l.width,c=u*a,h=l.ca,d=l.tb+u*r,f=e.Ta,p=e.Ua;je(e,a,i,o),Sr(f,p,h,d,c),Ae(l,r,r+a,h,d,u),s-=a,i+=a*e.c,r+=a}t(r==n),e.C=e.Ma=n}function Oe(){this.ub=this.yd=this.td=this.Rb=0}function Te(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Ie(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function Me(){this.Yb=function(){var e=[];return function e(t,n,r){for(var s=r[n],i=0;i<s&&(t.push(r.length>n+1?[]:0),!(r.length<n+1));i++)e(t[i],n+1,r)}(e,0,[3,11]),e}()}function Re(){this.jb=i(3),this.Wc=a([4,8],Me),this.Xc=a([4,17],Me)}function Fe(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function De(){this.ld=this.La=this.dd=this.tc=0}function Be(){this.Na=this.la=0}function ze(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ue(){this.ad=i(384),this.Za=0,this.Ob=i(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function qe(){this.uc=this.M=this.Nb=0,this.wa=Array(new De),this.Y=0,this.ya=Array(new Ue),this.aa=0,this.l=new Ge}function Ve(){this.y=i(16),this.f=i(8),this.ea=i(8)}function He(){this.cb=this.a=0,this.sc="",this.m=new _,this.Od=new Oe,this.Kc=new Te,this.ed=new Fe,this.Qa=new Ie,this.Ic=this.$c=this.Aa=0,this.D=new qe,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,_),this.ia=0,this.pb=o(4,ze),this.Pa=new Re,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ve),this.Hd=0,this.rb=Array(new Be),this.sb=0,this.wa=Array(new De),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Ue),this.L=this.aa=0,this.gd=a([4,2],De),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function We(e,t){return 0>e?0:e>t?t:e}function Ge(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Ye(){var e=new He;return null!=e&&(e.a=0,e.sc="OK",e.cb=0,e.Xb=0,ns||(ns=Ke)),e}function Xe(e,t,n){return 0==e.a&&(e.a=t,e.sc=n,e.cb=0),0}function Ze(e,t,n){return 3<=n&&157==e[t+0]&&1==e[t+1]&&42==e[t+2]}function $e(e,n){if(null==e)return 0;if(e.a=0,e.sc="OK",null==n)return Xe(e,2,"null VP8Io passed to VP8GetHeaders()");var r=n.data,i=n.w,o=n.ha;if(4>o)return Xe(e,7,"Truncated header.");var a=r[i+0]|r[i+1]<<8|r[i+2]<<16,l=e.Od;if(l.Rb=!(1&a),l.td=a>>1&7,l.yd=a>>4&1,l.ub=a>>5,3<l.td)return Xe(e,3,"Incorrect keyframe parameters.");if(!l.yd)return Xe(e,4,"Frame not displayable.");i+=3,o-=3;var u=e.Kc;if(l.Rb){if(7>o)return Xe(e,7,"cannot parse picture header");if(!Ze(r,i,o))return Xe(e,3,"Bad code word");u.c=16383&(r[i+4]<<8|r[i+3]),u.Td=r[i+4]>>6,u.i=16383&(r[i+6]<<8|r[i+5]),u.Ud=r[i+6]>>6,i+=7,o-=7,e.za=u.c+15>>4,e.Ub=u.i+15>>4,n.width=u.c,n.height=u.i,n.Da=0,n.j=0,n.v=0,n.va=n.width,n.o=n.height,n.da=0,n.ib=n.width,n.hb=n.height,n.U=n.width,n.T=n.height,s((a=e.Pa).jb,0,255,a.jb.length),t(null!=(a=e.Qa)),a.Cb=0,a.Bb=0,a.Fb=1,s(a.Zb,0,0,a.Zb.length),s(a.Lb,0,0,a.Lb)}if(l.ub>o)return Xe(e,7,"bad partition length");p(a=e.m,r,i,l.ub),i+=l.ub,o-=l.ub,l.Rb&&(u.Ld=L(a),u.Kd=L(a)),u=e.Qa;var c,h=e.Pa;if(t(null!=a),t(null!=u),u.Cb=L(a),u.Cb){if(u.Bb=L(a),L(a)){for(u.Fb=L(a),c=0;4>c;++c)u.Zb[c]=L(a)?g(a,7):0;for(c=0;4>c;++c)u.Lb[c]=L(a)?g(a,6):0}if(u.Bb)for(c=0;3>c;++c)h.jb[c]=L(a)?m(a,8):255}else u.Bb=0;if(a.Ka)return Xe(e,3,"cannot parse segment header");if((u=e.ed).zd=L(a),u.Tb=m(a,6),u.wb=m(a,3),u.Pc=L(a),u.Pc&&L(a)){for(h=0;4>h;++h)L(a)&&(u.vd[h]=g(a,6));for(h=0;4>h;++h)L(a)&&(u.od[h]=g(a,6))}if(e.L=0==u.Tb?0:u.zd?1:2,a.Ka)return Xe(e,3,"cannot parse filter header");var d=o;if(o=c=i,i=c+d,u=d,e.Xb=(1<<m(e.m,2))-1,d<3*(h=e.Xb))r=7;else{for(c+=3*h,u-=3*h,d=0;d<h;++d){var f=r[o+0]|r[o+1]<<8|r[o+2]<<16;f>u&&(f=u),p(e.Jc[+d],r,c,f),c+=f,u-=f,o+=3}p(e.Jc[+h],r,c,u),r=c<i?0:5}if(0!=r)return Xe(e,r,"cannot parse partitions");for(r=m(c=e.m,7),o=L(c)?g(c,4):0,i=L(c)?g(c,4):0,u=L(c)?g(c,4):0,h=L(c)?g(c,4):0,c=L(c)?g(c,4):0,d=e.Qa,f=0;4>f;++f){if(d.Cb){var v=d.Zb[f];d.Fb||(v+=r)}else{if(0<f){e.pb[f]=e.pb[0];continue}v=r}var y=e.pb[f];y.Sc[0]=es[We(v+o,127)],y.Sc[1]=ts[We(v+0,127)],y.Eb[0]=2*es[We(v+i,127)],y.Eb[1]=101581*ts[We(v+u,127)]>>16,8>y.Eb[1]&&(y.Eb[1]=8),y.Qc[0]=es[We(v+h,117)],y.Qc[1]=ts[We(v+c,127)],y.lc=v+c}if(!l.Rb)return Xe(e,4,"Not a key frame.");for(L(a),l=e.Pa,r=0;4>r;++r){for(o=0;8>o;++o)for(i=0;3>i;++i)for(u=0;11>u;++u)h=k(a,ls[r][o][i][u])?m(a,8):os[r][o][i][u],l.Wc[r][o].Yb[i][u]=h;for(o=0;17>o;++o)l.Xc[r][o]=l.Wc[r][us[o]]}return e.kc=L(a),e.kc&&(e.Bd=m(a,8)),e.cb=1}function Ke(e,t,n,r,s,i,o){var a=t[s].Yb[n];for(n=0;16>s;++s){if(!k(e,a[n+0]))return s;for(;!k(e,a[n+1]);)if(a=t[++s].Yb[0],n=0,16==s)return 16;var l=t[s+1].Yb;if(k(e,a[n+2])){var u=e,c=0;if(k(u,(d=a)[(h=n)+3]))if(k(u,d[h+6])){for(a=0,h=2*(c=k(u,d[h+8]))+(d=k(u,d[h+9+c])),c=0,d=rs[h];d[a];++a)c+=c+k(u,d[a]);c+=3+(8<<h)}else k(u,d[h+7])?(c=7+2*k(u,165),c+=k(u,145)):c=5+k(u,159);else c=k(u,d[h+4])?3+k(u,d[h+5]):2;a=l[2]}else c=1,a=l[1];l=o+ss[s],0>(u=e).b&&N(u);var h,d=u.b,f=(h=u.Ca>>1)-(u.I>>d)>>31;--u.b,u.Ca+=f,u.Ca|=1,u.I-=(h+1&f)<<d,i[l]=((c^f)-f)*r[(0<s)+0]}return 16}function Je(e){var t=e.rb[e.sb-1];t.la=0,t.Na=0,s(e.zc,0,0,e.zc.length),e.ja=0}function Qe(e,t,n,r,s){s=e[t+n+32*r]+(s>>3),e[t+n+32*r]=-256&s?0>s?0:255:s}function et(e,t,n,r,s,i){Qe(e,t,0,n,r+s),Qe(e,t,1,n,r+i),Qe(e,t,2,n,r-i),Qe(e,t,3,n,r-s)}function tt(e){return(20091*e>>16)+e}function nt(e,t,n,r){var s,o=0,a=i(16);for(s=0;4>s;++s){var l=e[t+0]+e[t+8],u=e[t+0]-e[t+8],c=(35468*e[t+4]>>16)-tt(e[t+12]),h=tt(e[t+4])+(35468*e[t+12]>>16);a[o+0]=l+h,a[o+1]=u+c,a[o+2]=u-c,a[o+3]=l-h,o+=4,t++}for(s=o=0;4>s;++s)l=(e=a[o+0]+4)+a[o+8],u=e-a[o+8],c=(35468*a[o+4]>>16)-tt(a[o+12]),Qe(n,r,0,0,l+(h=tt(a[o+4])+(35468*a[o+12]>>16))),Qe(n,r,1,0,u+c),Qe(n,r,2,0,u-c),Qe(n,r,3,0,l-h),o++,r+=32}function rt(e,t,n,r){var s=e[t+0]+4,i=35468*e[t+4]>>16,o=tt(e[t+4]),a=35468*e[t+1]>>16;et(n,r,0,s+o,e=tt(e[t+1]),a),et(n,r,1,s+i,e,a),et(n,r,2,s-i,e,a),et(n,r,3,s-o,e,a)}function st(e,t,n,r,s){nt(e,t,n,r),s&&nt(e,t+16,n,r+4)}function it(e,t,n,r){ir(e,t+0,n,r,1),ir(e,t+32,n,r+128,1)}function ot(e,t,n,r){var s;for(e=e[t+0]+4,s=0;4>s;++s)for(t=0;4>t;++t)Qe(n,r,t,s,e)}function at(e,t,n,r){e[t+0]&&lr(e,t+0,n,r),e[t+16]&&lr(e,t+16,n,r+4),e[t+32]&&lr(e,t+32,n,r+128),e[t+48]&&lr(e,t+48,n,r+128+4)}function lt(e,t,n,r){var s,o=i(16);for(s=0;4>s;++s){var a=e[t+0+s]+e[t+12+s],l=e[t+4+s]+e[t+8+s],u=e[t+4+s]-e[t+8+s],c=e[t+0+s]-e[t+12+s];o[0+s]=a+l,o[8+s]=a-l,o[4+s]=c+u,o[12+s]=c-u}for(s=0;4>s;++s)a=(e=o[0+4*s]+3)+o[3+4*s],l=o[1+4*s]+o[2+4*s],u=o[1+4*s]-o[2+4*s],c=e-o[3+4*s],n[r+0]=a+l>>3,n[r+16]=c+u>>3,n[r+32]=a-l>>3,n[r+48]=c-u>>3,r+=64}function ut(e,t,n){var r,s=t-32,i=Tr,o=255-e[s-1];for(r=0;r<n;++r){var a,l=i,u=o+e[t-1];for(a=0;a<n;++a)e[t+a]=l[u+e[s+a]];t+=32}}function ct(e,t){ut(e,t,4)}function ht(e,t){ut(e,t,8)}function dt(e,t){ut(e,t,16)}function ft(e,t){var n;for(n=0;16>n;++n)r(e,t+32*n,e,t-32,16)}function pt(e,t){var n;for(n=16;0<n;--n)s(e,t,e[t-1],16),t+=32}function mt(e,t,n){var r;for(r=0;16>r;++r)s(t,n+32*r,e,16)}function gt(e,t){var n,r=16;for(n=0;16>n;++n)r+=e[t-1+32*n]+e[t+n-32];mt(r>>5,e,t)}function vt(e,t){var n,r=8;for(n=0;16>n;++n)r+=e[t-1+32*n];mt(r>>4,e,t)}function yt(e,t){var n,r=8;for(n=0;16>n;++n)r+=e[t+n-32];mt(r>>4,e,t)}function bt(e,t){mt(128,e,t)}function _t(e,t,n){return e+2*t+n+2>>2}function jt(e,t){var n,s=t-32;for(s=new Uint8Array([_t(e[s-1],e[s+0],e[s+1]),_t(e[s+0],e[s+1],e[s+2]),_t(e[s+1],e[s+2],e[s+3]),_t(e[s+2],e[s+3],e[s+4])]),n=0;4>n;++n)r(e,t+32*n,s,0,s.length)}function wt(e,t){var n=e[t-1],r=e[t-1+32],s=e[t-1+64],i=e[t-1+96];P(e,t+0,16843009*_t(e[t-1-32],n,r)),P(e,t+32,16843009*_t(n,r,s)),P(e,t+64,16843009*_t(r,s,i)),P(e,t+96,16843009*_t(s,i,i))}function xt(e,t){var n,r=4;for(n=0;4>n;++n)r+=e[t+n-32]+e[t-1+32*n];for(r>>=3,n=0;4>n;++n)s(e,t+32*n,r,4)}function At(e,t){var n=e[t-1+0],r=e[t-1+32],s=e[t-1+64],i=e[t-1-32],o=e[t+0-32],a=e[t+1-32],l=e[t+2-32],u=e[t+3-32];e[t+0+96]=_t(r,s,e[t-1+96]),e[t+1+96]=e[t+0+64]=_t(n,r,s),e[t+2+96]=e[t+1+64]=e[t+0+32]=_t(i,n,r),e[t+3+96]=e[t+2+64]=e[t+1+32]=e[t+0+0]=_t(o,i,n),e[t+3+64]=e[t+2+32]=e[t+1+0]=_t(a,o,i),e[t+3+32]=e[t+2+0]=_t(l,a,o),e[t+3+0]=_t(u,l,a)}function St(e,t){var n=e[t+1-32],r=e[t+2-32],s=e[t+3-32],i=e[t+4-32],o=e[t+5-32],a=e[t+6-32],l=e[t+7-32];e[t+0+0]=_t(e[t+0-32],n,r),e[t+1+0]=e[t+0+32]=_t(n,r,s),e[t+2+0]=e[t+1+32]=e[t+0+64]=_t(r,s,i),e[t+3+0]=e[t+2+32]=e[t+1+64]=e[t+0+96]=_t(s,i,o),e[t+3+32]=e[t+2+64]=e[t+1+96]=_t(i,o,a),e[t+3+64]=e[t+2+96]=_t(o,a,l),e[t+3+96]=_t(a,l,l)}function Nt(e,t){var n=e[t-1+0],r=e[t-1+32],s=e[t-1+64],i=e[t-1-32],o=e[t+0-32],a=e[t+1-32],l=e[t+2-32],u=e[t+3-32];e[t+0+0]=e[t+1+64]=i+o+1>>1,e[t+1+0]=e[t+2+64]=o+a+1>>1,e[t+2+0]=e[t+3+64]=a+l+1>>1,e[t+3+0]=l+u+1>>1,e[t+0+96]=_t(s,r,n),e[t+0+64]=_t(r,n,i),e[t+0+32]=e[t+1+96]=_t(n,i,o),e[t+1+32]=e[t+2+96]=_t(i,o,a),e[t+2+32]=e[t+3+96]=_t(o,a,l),e[t+3+32]=_t(a,l,u)}function Lt(e,t){var n=e[t+0-32],r=e[t+1-32],s=e[t+2-32],i=e[t+3-32],o=e[t+4-32],a=e[t+5-32],l=e[t+6-32],u=e[t+7-32];e[t+0+0]=n+r+1>>1,e[t+1+0]=e[t+0+64]=r+s+1>>1,e[t+2+0]=e[t+1+64]=s+i+1>>1,e[t+3+0]=e[t+2+64]=i+o+1>>1,e[t+0+32]=_t(n,r,s),e[t+1+32]=e[t+0+96]=_t(r,s,i),e[t+2+32]=e[t+1+96]=_t(s,i,o),e[t+3+32]=e[t+2+96]=_t(i,o,a),e[t+3+64]=_t(o,a,l),e[t+3+96]=_t(a,l,u)}function kt(e,t){var n=e[t-1+0],r=e[t-1+32],s=e[t-1+64],i=e[t-1+96];e[t+0+0]=n+r+1>>1,e[t+2+0]=e[t+0+32]=r+s+1>>1,e[t+2+32]=e[t+0+64]=s+i+1>>1,e[t+1+0]=_t(n,r,s),e[t+3+0]=e[t+1+32]=_t(r,s,i),e[t+3+32]=e[t+1+64]=_t(s,i,i),e[t+3+64]=e[t+2+64]=e[t+0+96]=e[t+1+96]=e[t+2+96]=e[t+3+96]=i}function Pt(e,t){var n=e[t-1+0],r=e[t-1+32],s=e[t-1+64],i=e[t-1+96],o=e[t-1-32],a=e[t+0-32],l=e[t+1-32],u=e[t+2-32];e[t+0+0]=e[t+2+32]=n+o+1>>1,e[t+0+32]=e[t+2+64]=r+n+1>>1,e[t+0+64]=e[t+2+96]=s+r+1>>1,e[t+0+96]=i+s+1>>1,e[t+3+0]=_t(a,l,u),e[t+2+0]=_t(o,a,l),e[t+1+0]=e[t+3+32]=_t(n,o,a),e[t+1+32]=e[t+3+64]=_t(r,n,o),e[t+1+64]=e[t+3+96]=_t(s,r,n),e[t+1+96]=_t(i,s,r)}function Et(e,t){var n;for(n=0;8>n;++n)r(e,t+32*n,e,t-32,8)}function Ct(e,t){var n;for(n=0;8>n;++n)s(e,t,e[t-1],8),t+=32}function Ot(e,t,n){var r;for(r=0;8>r;++r)s(t,n+32*r,e,8)}function Tt(e,t){var n,r=8;for(n=0;8>n;++n)r+=e[t+n-32]+e[t-1+32*n];Ot(r>>4,e,t)}function It(e,t){var n,r=4;for(n=0;8>n;++n)r+=e[t+n-32];Ot(r>>3,e,t)}function Mt(e,t){var n,r=4;for(n=0;8>n;++n)r+=e[t-1+32*n];Ot(r>>3,e,t)}function Rt(e,t){Ot(128,e,t)}function Ft(e,t,n){var r=e[t-n],s=e[t+0],i=3*(s-r)+Cr[1020+e[t-2*n]-e[t+n]],o=Or[112+(i+4>>3)];e[t-n]=Tr[255+r+Or[112+(i+3>>3)]],e[t+0]=Tr[255+s-o]}function Dt(e,t,n,r){var s=e[t+0],i=e[t+n];return Ir[255+e[t-2*n]-e[t-n]]>r||Ir[255+i-s]>r}function Bt(e,t,n,r){return 4*Ir[255+e[t-n]-e[t+0]]+Ir[255+e[t-2*n]-e[t+n]]<=r}function zt(e,t,n,r,s){var i=e[t-3*n],o=e[t-2*n],a=e[t-n],l=e[t+0],u=e[t+n],c=e[t+2*n],h=e[t+3*n];return 4*Ir[255+a-l]+Ir[255+o-u]>r?0:Ir[255+e[t-4*n]-i]<=s&&Ir[255+i-o]<=s&&Ir[255+o-a]<=s&&Ir[255+h-c]<=s&&Ir[255+c-u]<=s&&Ir[255+u-l]<=s}function Ut(e,t,n,r){var s=2*r+1;for(r=0;16>r;++r)Bt(e,t+r,n,s)&&Ft(e,t+r,n)}function qt(e,t,n,r){var s=2*r+1;for(r=0;16>r;++r)Bt(e,t+r*n,1,s)&&Ft(e,t+r*n,1)}function Vt(e,t,n,r){var s;for(s=3;0<s;--s)Ut(e,t+=4*n,n,r)}function Ht(e,t,n,r){var s;for(s=3;0<s;--s)qt(e,t+=4,n,r)}function Wt(e,t,n,r,s,i,o,a){for(i=2*i+1;0<s--;){if(zt(e,t,n,i,o))if(Dt(e,t,n,a))Ft(e,t,n);else{var l=e,u=t,c=n,h=l[u-2*c],d=l[u-c],f=l[u+0],p=l[u+c],m=l[u+2*c],g=27*(y=Cr[1020+3*(f-d)+Cr[1020+h-p]])+63>>7,v=18*y+63>>7,y=9*y+63>>7;l[u-3*c]=Tr[255+l[u-3*c]+y],l[u-2*c]=Tr[255+h+v],l[u-c]=Tr[255+d+g],l[u+0]=Tr[255+f-g],l[u+c]=Tr[255+p-v],l[u+2*c]=Tr[255+m-y]}t+=r}}function Gt(e,t,n,r,s,i,o,a){for(i=2*i+1;0<s--;){if(zt(e,t,n,i,o))if(Dt(e,t,n,a))Ft(e,t,n);else{var l=e,u=t,c=n,h=l[u-c],d=l[u+0],f=l[u+c],p=Or[112+(4+(m=3*(d-h))>>3)],m=Or[112+(m+3>>3)],g=p+1>>1;l[u-2*c]=Tr[255+l[u-2*c]+g],l[u-c]=Tr[255+h+m],l[u+0]=Tr[255+d-p],l[u+c]=Tr[255+f-g]}t+=r}}function Yt(e,t,n,r,s,i){Wt(e,t,n,1,16,r,s,i)}function Xt(e,t,n,r,s,i){Wt(e,t,1,n,16,r,s,i)}function Zt(e,t,n,r,s,i){var o;for(o=3;0<o;--o)Gt(e,t+=4*n,n,1,16,r,s,i)}function $t(e,t,n,r,s,i){var o;for(o=3;0<o;--o)Gt(e,t+=4,1,n,16,r,s,i)}function Kt(e,t,n,r,s,i,o,a){Wt(e,t,s,1,8,i,o,a),Wt(n,r,s,1,8,i,o,a)}function Jt(e,t,n,r,s,i,o,a){Wt(e,t,1,s,8,i,o,a),Wt(n,r,1,s,8,i,o,a)}function Qt(e,t,n,r,s,i,o,a){Gt(e,t+4*s,s,1,8,i,o,a),Gt(n,r+4*s,s,1,8,i,o,a)}function en(e,t,n,r,s,i,o,a){Gt(e,t+4,1,s,8,i,o,a),Gt(n,r+4,1,s,8,i,o,a)}function tn(){this.ba=new oe,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new le,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function nn(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function rn(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function sn(){this.ua=0,this.Wa=new M,this.vb=new M,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new f,this.yc=new h}function on(){this.xb=this.a=0,this.l=new Ge,this.ca=new oe,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new j,this.Pb=0,this.wd=new j,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new sn,this.ab=0,this.gc=o(4,rn),this.Oc=0}function an(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Ge,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function ln(e,t,n,r,s,i,o){for(e=null==e?0:e[t+0],t=0;t<o;++t)s[i+t]=e+n[r+t]&255,e=s[i+t]}function un(e,t,n,r,s,i,o){var a;if(null==e)ln(null,null,n,r,s,i,o);else for(a=0;a<o;++a)s[i+a]=e[t+a]+n[r+a]&255}function cn(e,t,n,r,s,i,o){if(null==e)ln(null,null,n,r,s,i,o);else{var a,l=e[t+0],u=l,c=l;for(a=0;a<o;++a)u=c+(l=e[t+a])-u,c=n[r+a]+(-256&u?0>u?0:255:u)&255,u=l,s[i+a]=c}}function hn(e,n,s,o){var a=n.width,l=n.o;if(t(null!=e&&null!=n),0>s||0>=o||s+o>l)return null;if(!e.Cc){if(null==e.ga){var u;if(e.ga=new an,(u=null==e.ga)||(u=n.width*n.o,t(0==e.Gb.length),e.Gb=i(u),e.Uc=0,null==e.Gb?u=0:(e.mb=e.Gb,e.nb=e.Uc,e.rc=null,u=1),u=!u),!u){u=e.ga;var c=e.Fa,h=e.P,d=e.qc,f=e.mb,p=e.nb,m=h+1,g=d-1,y=u.l;if(t(null!=c&&null!=f&&null!=n),ms[0]=null,ms[1]=ln,ms[2]=un,ms[3]=cn,u.ca=f,u.tb=p,u.c=n.width,u.i=n.height,t(0<u.c&&0<u.i),1>=d)n=0;else if(u.$a=3&c[h+0],u.Z=c[h+0]>>2&3,u.Lc=c[h+0]>>4&3,h=c[h+0]>>6&3,0>u.$a||1<u.$a||4<=u.Z||1<u.Lc||h)n=0;else if(y.put=fe,y.ac=de,y.bc=pe,y.ma=u,y.width=n.width,y.height=n.height,y.Da=n.Da,y.v=n.v,y.va=n.va,y.j=n.j,y.o=n.o,u.$a)e:{t(1==u.$a),n=ke();t:for(;;){if(null==n){n=0;break e}if(t(null!=u),u.mc=n,n.c=u.c,n.i=u.i,n.l=u.l,n.l.ma=u,n.l.width=u.c,n.l.height=u.i,n.a=0,v(n.m,c,m,g),!Pe(u.c,u.i,1,n,null))break t;if(1==n.ab&&3==n.gc[0].hc&&xe(n.s)?(u.ic=1,c=n.c*n.i,n.Ta=null,n.Ua=0,n.V=i(c),n.Ba=0,null==n.V?(n.a=1,n=0):n=1):(u.ic=0,n=Ee(n,u.c)),!n)break t;n=1;break e}u.mc=null,n=0}else n=g>=u.c*u.i;u=!n}if(u)return null;1!=e.ga.Lc?e.Ga=0:o=l-s}t(null!=e.ga),t(s+o<=l);e:{if(n=(c=e.ga).c,l=c.l.o,0==c.$a){if(m=e.rc,g=e.Vc,y=e.Fa,h=e.P+1+s*n,d=e.mb,f=e.nb+s*n,t(h<=e.P+e.qc),0!=c.Z)for(t(null!=ms[c.Z]),u=0;u<o;++u)ms[c.Z](m,g,y,h,d,f,n),m=d,g=f,f+=n,h+=n;else for(u=0;u<o;++u)r(d,f,y,h,n),m=d,g=f,f+=n,h+=n;e.rc=m,e.Vc=g}else{if(t(null!=c.mc),n=s+o,t(null!=(u=c.mc)),t(n<=u.i),u.C>=n)n=1;else if(c.ic||gn(),c.ic){c=u.V,m=u.Ba,g=u.c;var b=u.i,_=(y=1,h=u.$/g,d=u.$%g,f=u.m,p=u.s,u.$),j=g*b,w=g*n,A=p.wc,N=_<w?_e(p,d,h):null;t(_<=j),t(n<=b),t(xe(p));t:for(;;){for(;!f.h&&_<w;){if(d&A||(N=_e(p,d,h)),t(null!=N),S(f),256>(b=ye(N.G[0],N.H[0],f)))c[m+_]=b,++_,++d>=g&&(d=0,++h<=n&&!(h%16)&&Se(u,h));else{if(!(280>b)){y=0;break t}b=ge(b-256,f);var L,k=ye(N.G[4],N.H[4],f);if(S(f),!(_>=(k=ve(g,k=ge(k,f)))&&j-_>=b)){y=0;break t}for(L=0;L<b;++L)c[m+_+L]=c[m+_+L-k];for(_+=b,d+=b;d>=g;)d-=g,++h<=n&&!(h%16)&&Se(u,h);_<w&&d&A&&(N=_e(p,d,h))}t(f.h==x(f))}Se(u,h>n?n:h);break t}!y||f.h&&_<j?(y=0,u.a=f.h?5:3):u.$=_,n=y}else n=Ne(u,u.V,u.Ba,u.c,u.i,n,Ce);if(!n){o=0;break e}}s+o>=l&&(e.Cc=1),o=1}if(!o)return null;if(e.Cc&&(null!=(o=e.ga)&&(o.mc=null),e.ga=null,0<e.Ga))return alert("todo:WebPDequantizeLevels"),null}return e.nb+s*a}function dn(e,t,n,r,s,i){for(;0<s--;){var o,a=e,l=t+(n?1:0),u=e,c=t+(n?0:3);for(o=0;o<r;++o){var h=u[c+4*o];255!=h&&(h*=32897,a[l+4*o+0]=a[l+4*o+0]*h>>23,a[l+4*o+1]=a[l+4*o+1]*h>>23,a[l+4*o+2]=a[l+4*o+2]*h>>23)}t+=i}}function fn(e,t,n,r,s){for(;0<r--;){var i;for(i=0;i<n;++i){var o=e[t+2*i+0],a=15&(u=e[t+2*i+1]),l=4369*a,u=(240&u|u>>4)*l>>16;e[t+2*i+0]=(240&o|o>>4)*l>>16&240|(15&o|o<<4)*l>>16>>4&15,e[t+2*i+1]=240&u|a}t+=s}}function pn(e,t,n,r,s,i,o,a){var l,u,c=255;for(u=0;u<s;++u){for(l=0;l<r;++l){var h=e[t+l];i[o+4*l]=h,c&=h}t+=n,o+=a}return 255!=c}function mn(e,t,n,r,s){var i;for(i=0;i<s;++i)n[r+i]=e[t+i]>>8}function gn(){wr=dn,xr=fn,Ar=pn,Sr=mn}function vn(n,r,s){e[n]=function(e,n,i,o,a,l,u,c,h,d,f,p,m,g,v,y,b){var _,j=b-1>>1,w=a[l+0]|u[c+0]<<16,x=h[d+0]|f[p+0]<<16;t(null!=e);var A=3*w+x+131074>>2;for(r(e[n+0],255&A,A>>16,m,g),null!=i&&(A=3*x+w+131074>>2,r(i[o+0],255&A,A>>16,v,y)),_=1;_<=j;++_){var S=a[l+_]|u[c+_]<<16,N=h[d+_]|f[p+_]<<16,L=w+S+x+N+524296,k=L+2*(S+x)>>3;A=k+w>>1,w=(L=L+2*(w+N)>>3)+S>>1,r(e[n+2*_-1],255&A,A>>16,m,g+(2*_-1)*s),r(e[n+2*_-0],255&w,w>>16,m,g+(2*_-0)*s),null!=i&&(A=L+x>>1,w=k+N>>1,r(i[o+2*_-1],255&A,A>>16,v,y+(2*_-1)*s),r(i[o+2*_+0],255&w,w>>16,v,y+(2*_+0)*s)),w=S,x=N}1&b||(A=3*w+x+131074>>2,r(e[n+b-1],255&A,A>>16,m,g+(b-1)*s),null!=i&&(A=3*x+w+131074>>2,r(i[o+b-1],255&A,A>>16,v,y+(b-1)*s)))}}function yn(){gs[Mr]=vs,gs[Rr]=bs,gs[Fr]=ys,gs[Dr]=_s,gs[Br]=js,gs[zr]=ws,gs[Ur]=xs,gs[qr]=bs,gs[Vr]=_s,gs[Hr]=js,gs[Wr]=ws}function bn(e){return e&~Ps?0>e?0:255:e>>ks}function _n(e,t){return bn((19077*e>>8)+(26149*t>>8)-14234)}function jn(e,t,n){return bn((19077*e>>8)-(6419*t>>8)-(13320*n>>8)+8708)}function wn(e,t){return bn((19077*e>>8)+(33050*t>>8)-17685)}function xn(e,t,n,r,s){r[s+0]=_n(e,n),r[s+1]=jn(e,t,n),r[s+2]=wn(e,t)}function An(e,t,n,r,s){r[s+0]=wn(e,t),r[s+1]=jn(e,t,n),r[s+2]=_n(e,n)}function Sn(e,t,n,r,s){var i=jn(e,t,n);t=i<<3&224|wn(e,t)>>3,r[s+0]=248&_n(e,n)|i>>5,r[s+1]=t}function Nn(e,t,n,r,s){var i=240&wn(e,t)|15;r[s+0]=240&_n(e,n)|jn(e,t,n)>>4,r[s+1]=i}function Ln(e,t,n,r,s){r[s+0]=255,xn(e,t,n,r,s+1)}function kn(e,t,n,r,s){An(e,t,n,r,s),r[s+3]=255}function Pn(e,t,n,r,s){xn(e,t,n,r,s),r[s+3]=255}function En(t,n,r){e[t]=function(e,t,s,i,o,a,l,u,c){for(var h=u+(-2&c)*r;u!=h;)n(e[t+0],s[i+0],o[a+0],l,u),n(e[t+1],s[i+0],o[a+0],l,u+r),t+=2,++i,++a,u+=2*r;1&c&&n(e[t+0],s[i+0],o[a+0],l,u)}}function Cn(e,t,n){return 0==n?0==e?0==t?6:5:0==t?4:0:n}function On(e,t,n,r,s){switch(e>>>30){case 3:ir(t,n,r,s,0);break;case 2:or(t,n,r,s);break;case 1:lr(t,n,r,s)}}function Tn(e,t){var n,i,o=t.M,a=t.Nb,l=e.oc,u=e.pc+40,c=e.oc,h=e.pc+584,d=e.oc,f=e.pc+600;for(n=0;16>n;++n)l[u+32*n-1]=129;for(n=0;8>n;++n)c[h+32*n-1]=129,d[f+32*n-1]=129;for(0<o?l[u-1-32]=c[h-1-32]=d[f-1-32]=129:(s(l,u-32-1,127,21),s(c,h-32-1,127,9),s(d,f-32-1,127,9)),i=0;i<e.za;++i){var p=t.ya[t.aa+i];if(0<i){for(n=-1;16>n;++n)r(l,u+32*n-4,l,u+32*n+12,4);for(n=-1;8>n;++n)r(c,h+32*n-4,c,h+32*n+4,4),r(d,f+32*n-4,d,f+32*n+4,4)}var m=e.Gd,g=e.Hd+i,v=p.ad,y=p.Hc;if(0<o&&(r(l,u-32,m[g].y,0,16),r(c,h-32,m[g].f,0,8),r(d,f-32,m[g].ea,0,8)),p.Za){var b=l,_=u-32+16;for(0<o&&(i>=e.za-1?s(b,_,m[g].y[15],4):r(b,_,m[g+1].y,0,4)),n=0;4>n;n++)b[_+128+n]=b[_+256+n]=b[_+384+n]=b[_+0+n];for(n=0;16>n;++n,y<<=2)b=l,_=u+Fs[n],hs[p.Ob[n]](b,_),On(y,v,16*+n,b,_)}else if(b=Cn(i,o,p.Ob[0]),cs[b](l,u),0!=y)for(n=0;16>n;++n,y<<=2)On(y,v,16*+n,l,u+Fs[n]);for(n=p.Gc,b=Cn(i,o,p.Dd),ds[b](c,h),ds[b](d,f),y=v,b=c,_=h,255&(p=0|n)&&(170&p?ar(y,256,b,_):ur(y,256,b,_)),p=d,y=f,255&(n>>=8)&&(170&n?ar(v,320,p,y):ur(v,320,p,y)),o<e.Ub-1&&(r(m[g].y,0,l,u+480,16),r(m[g].f,0,c,h+224,8),r(m[g].ea,0,d,f+224,8)),n=8*a*e.B,m=e.sa,g=e.ta+16*i+16*a*e.R,v=e.qa,p=e.ra+8*i+n,y=e.Ha,b=e.Ia+8*i+n,n=0;16>n;++n)r(m,g+n*e.R,l,u+32*n,16);for(n=0;8>n;++n)r(v,p+n*e.B,c,h+32*n,8),r(y,b+n*e.B,d,f+32*n,8)}}function In(e,r,s,i,o,a,l,u,c){var h=[0],d=[0],f=0,p=null!=c?c.kd:0,m=null!=c?c:new nn;if(null==e||12>s)return 7;m.data=e,m.w=r,m.ha=s,r=[r],s=[s],m.gb=[m.gb];e:{var g=r,y=s,b=m.gb;if(t(null!=e),t(null!=y),t(null!=b),b[0]=0,12<=y[0]&&!n(e,g[0],"RIFF")){if(n(e,g[0]+8,"WEBP")){b=3;break e}var _=O(e,g[0]+4);if(12>_||4294967286<_){b=3;break e}if(p&&_>y[0]-8){b=7;break e}b[0]=_,g[0]+=12,y[0]-=12}b=0}if(0!=b)return b;for(_=0<m.gb[0],s=s[0];;){e:{var w=e;y=r,b=s;var x=h,A=d,S=g=[0];if((k=f=[f])[0]=0,8>b[0])b=7;else{if(!n(w,y[0],"VP8X")){if(10!=O(w,y[0]+4)){b=3;break e}if(18>b[0]){b=7;break e}var N=O(w,y[0]+8),L=1+C(w,y[0]+12);if(2147483648<=L*(w=1+C(w,y[0]+15))){b=3;break e}null!=S&&(S[0]=N),null!=x&&(x[0]=L),null!=A&&(A[0]=w),y[0]+=18,b[0]-=18,k[0]=1}b=0}}if(f=f[0],g=g[0],0!=b)return b;if(y=!!(2&g),!_&&f)return 3;if(null!=a&&(a[0]=!!(16&g)),null!=l&&(l[0]=y),null!=u&&(u[0]=0),l=h[0],g=d[0],f&&y&&null==c){b=0;break}if(4>s){b=7;break}if(_&&f||!_&&!f&&!n(e,r[0],"ALPH")){s=[s],m.na=[m.na],m.P=[m.P],m.Sa=[m.Sa];e:{N=e,b=r,_=s;var k=m.gb;x=m.na,A=m.P,S=m.Sa,L=22,t(null!=N),t(null!=_),w=b[0];var P=_[0];for(t(null!=x),t(null!=S),x[0]=null,A[0]=null,S[0]=0;;){if(b[0]=w,_[0]=P,8>P){b=7;break e}var E=O(N,w+4);if(4294967286<E){b=3;break e}var T=8+E+1&-2;if(L+=T,0<k&&L>k){b=3;break e}if(!n(N,w,"VP8 ")||!n(N,w,"VP8L")){b=0;break e}if(P[0]<T){b=7;break e}n(N,w,"ALPH")||(x[0]=N,A[0]=w+8,S[0]=E),w+=T,P-=T}}if(s=s[0],m.na=m.na[0],m.P=m.P[0],m.Sa=m.Sa[0],0!=b)break}s=[s],m.Ja=[m.Ja],m.xa=[m.xa];e:if(k=e,b=r,_=s,x=m.gb[0],A=m.Ja,S=m.xa,N=b[0],w=!n(k,N,"VP8 "),L=!n(k,N,"VP8L"),t(null!=k),t(null!=_),t(null!=A),t(null!=S),8>_[0])b=7;else{if(w||L){if(k=O(k,N+4),12<=x&&k>x-12){b=3;break e}if(p&&k>_[0]-8){b=7;break e}A[0]=k,b[0]+=8,_[0]-=8,S[0]=L}else S[0]=5<=_[0]&&47==k[N+0]&&!(k[N+4]>>5),A[0]=_[0];b=0}if(s=s[0],m.Ja=m.Ja[0],m.xa=m.xa[0],r=r[0],0!=b)break;if(4294967286<m.Ja)return 3;if(null==u||y||(u[0]=m.xa?2:1),l=[l],g=[g],m.xa){if(5>s){b=7;break}u=l,p=g,y=a,null==e||5>s?e=0:5<=s&&47==e[r+0]&&!(e[r+4]>>5)?(_=[0],k=[0],x=[0],v(A=new j,e,r,s),me(A,_,k,x)?(null!=u&&(u[0]=_[0]),null!=p&&(p[0]=k[0]),null!=y&&(y[0]=x[0]),e=1):e=0):e=0}else{if(10>s){b=7;break}u=g,null==e||10>s||!Ze(e,r+3,s-3)?e=0:(p=e[r+0]|e[r+1]<<8|e[r+2]<<16,y=16383&(e[r+7]<<8|e[r+6]),e=16383&(e[r+9]<<8|e[r+8]),1&p||3<(p>>1&7)||!(p>>4&1)||p>>5>=m.Ja||!y||!e?e=0:(l&&(l[0]=y),u&&(u[0]=e),e=1))}if(!e)return 3;if(l=l[0],g=g[0],f&&(h[0]!=l||d[0]!=g))return 3;null!=c&&(c[0]=m,c.offset=r-c.w,t(4294967286>r-c.w),t(c.offset==c.ha-s));break}return 0==b||7==b&&f&&null==c?(null!=a&&(a[0]|=null!=m.na&&0<m.na.length),null!=i&&(i[0]=l),null!=o&&(o[0]=g),0):b}function Mn(e,t,n){var r=t.width,s=t.height,i=0,o=0,a=r,l=s;if(t.Da=null!=e&&0<e.Da,t.Da&&(a=e.cd,l=e.bd,i=e.v,o=e.j,11>n||(i&=-2,o&=-2),0>i||0>o||0>=a||0>=l||i+a>r||o+l>s))return 0;if(t.v=i,t.j=o,t.va=i+a,t.o=o+l,t.U=a,t.T=l,t.da=null!=e&&0<e.da,t.da){if(!R(a,l,n=[e.ib],i=[e.hb]))return 0;t.ib=n[0],t.hb=i[0]}return t.ob=null!=e&&e.ob,t.Kb=null==e||!e.Sd,t.da&&(t.ob=t.ib<3*r/4&&t.hb<3*s/4,t.Kb=0),1}function Rn(e){if(null==e)return 2;if(11>e.S){var t=e.f.RGBA;t.fb+=(e.height-1)*t.A,t.A=-t.A}else t=e.f.kb,e=e.height,t.O+=(e-1)*t.fa,t.fa=-t.fa,t.N+=(e-1>>1)*t.Ab,t.Ab=-t.Ab,t.W+=(e-1>>1)*t.Db,t.Db=-t.Db,null!=t.F&&(t.J+=(e-1)*t.lb,t.lb=-t.lb);return 0}function Fn(e,t,n,r){if(null==r||0>=e||0>=t)return 2;if(null!=n){if(n.Da){var s=n.cd,o=n.bd,a=-2&n.v,l=-2&n.j;if(0>a||0>l||0>=s||0>=o||a+s>e||l+o>t)return 2;e=s,t=o}if(n.da){if(!R(e,t,s=[n.ib],o=[n.hb]))return 2;e=s[0],t=o[0]}}r.width=e,r.height=t;e:{var u=r.width,c=r.height;if(e=r.S,0>=u||0>=c||!(e>=Mr&&13>e))e=2;else{if(0>=r.Rd&&null==r.sd){a=o=s=t=0;var h=(l=u*zs[e])*c;if(11>e||(o=(c+1)/2*(t=(u+1)/2),12==e&&(a=(s=u)*c)),null==(c=i(h+2*o+a))){e=1;break e}r.sd=c,11>e?((u=r.f.RGBA).eb=c,u.fb=0,u.A=l,u.size=h):((u=r.f.kb).y=c,u.O=0,u.fa=l,u.Fd=h,u.f=c,u.N=0+h,u.Ab=t,u.Cd=o,u.ea=c,u.W=0+h+o,u.Db=t,u.Ed=o,12==e&&(u.F=c,u.J=0+h+2*o),u.Tc=a,u.lb=s)}if(t=1,s=r.S,o=r.width,a=r.height,s>=Mr&&13>s)if(11>s)e=r.f.RGBA,t&=(l=Math.abs(e.A))*(a-1)+o<=e.size,t&=l>=o*zs[s],t&=null!=e.eb;else{e=r.f.kb,l=(o+1)/2,h=(a+1)/2,u=Math.abs(e.fa),c=Math.abs(e.Ab);var d=Math.abs(e.Db),f=Math.abs(e.lb),p=f*(a-1)+o;t&=u*(a-1)+o<=e.Fd,t&=c*(h-1)+l<=e.Cd,t=(t&=d*(h-1)+l<=e.Ed)&u>=o&c>=l&d>=l,t&=null!=e.y,t&=null!=e.f,t&=null!=e.ea,12==s&&(t&=f>=o,t&=p<=e.Tc,t&=null!=e.F)}else t=0;e=t?0:2}}return 0!=e||null!=n&&n.fd&&(e=Rn(r)),e}var Dn=64,Bn=[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],zn=24,Un=32,qn=8,Vn=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];B("Predictor0","PredictorAdd0"),e.Predictor0=function(){return 4278190080},e.Predictor1=function(e){return e},e.Predictor2=function(e,t,n){return t[n+0]},e.Predictor3=function(e,t,n){return t[n+1]},e.Predictor4=function(e,t,n){return t[n-1]},e.Predictor5=function(e,t,n){return U(U(e,t[n+1]),t[n+0])},e.Predictor6=function(e,t,n){return U(e,t[n-1])},e.Predictor7=function(e,t,n){return U(e,t[n+0])},e.Predictor8=function(e,t,n){return U(t[n-1],t[n+0])},e.Predictor9=function(e,t,n){return U(t[n+0],t[n+1])},e.Predictor10=function(e,t,n){return U(U(e,t[n-1]),U(t[n+0],t[n+1]))},e.Predictor11=function(e,t,n){var r=t[n+0];return 0>=H(r>>24&255,e>>24&255,(t=t[n-1])>>24&255)+H(r>>16&255,e>>16&255,t>>16&255)+H(r>>8&255,e>>8&255,t>>8&255)+H(255&r,255&e,255&t)?r:e},e.Predictor12=function(e,t,n){var r=t[n+0];return(q((e>>24&255)+(r>>24&255)-((t=t[n-1])>>24&255))<<24|q((e>>16&255)+(r>>16&255)-(t>>16&255))<<16|q((e>>8&255)+(r>>8&255)-(t>>8&255))<<8|q((255&e)+(255&r)-(255&t)))>>>0},e.Predictor13=function(e,t,n){var r=t[n-1];return(V((e=U(e,t[n+0]))>>24&255,r>>24&255)<<24|V(e>>16&255,r>>16&255)<<16|V(e>>8&255,r>>8&255)<<8|V(255&e,255&r))>>>0};var Hn=e.PredictorAdd0;e.PredictorAdd1=W,B("Predictor2","PredictorAdd2"),B("Predictor3","PredictorAdd3"),B("Predictor4","PredictorAdd4"),B("Predictor5","PredictorAdd5"),B("Predictor6","PredictorAdd6"),B("Predictor7","PredictorAdd7"),B("Predictor8","PredictorAdd8"),B("Predictor9","PredictorAdd9"),B("Predictor10","PredictorAdd10"),B("Predictor11","PredictorAdd11"),B("Predictor12","PredictorAdd12"),B("Predictor13","PredictorAdd13");var Wn=e.PredictorAdd2;Z("ColorIndexInverseTransform","MapARGB","32b",function(e){return e>>8&255},function(e){return e}),Z("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(e){return e},function(e){return e>>8&255});var Gn,Yn=e.ColorIndexInverseTransform,Xn=e.MapARGB,Zn=e.VP8LColorIndexInverseTransformAlpha,$n=e.MapAlpha,Kn=e.VP8LPredictorsAdd=[];Kn.length=16,(e.VP8LPredictors=[]).length=16,(e.VP8LPredictorsAdd_C=[]).length=16,(e.VP8LPredictors_C=[]).length=16;var Jn,Qn,er,tr,nr,rr,sr,ir,or,ar,lr,ur,cr,hr,dr,fr,pr,mr,gr,vr,yr,br,_r,jr,wr,xr,Ar,Sr,Nr=i(511),Lr=i(2041),kr=i(225),Pr=i(767),Er=0,Cr=Lr,Or=kr,Tr=Pr,Ir=Nr,Mr=0,Rr=1,Fr=2,Dr=3,Br=4,zr=5,Ur=6,qr=7,Vr=8,Hr=9,Wr=10,Gr=[2,3,7],Yr=[3,3,11],Xr=[280,256,256,256,40],Zr=[0,1,1,1,0],$r=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Kr=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Jr=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Qr=8,es=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],ts=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],ns=null,rs=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],ss=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],is=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],os=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],as=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],ls=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],us=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],cs=[],hs=[],ds=[],fs=1,ps=2,ms=[],gs=[];vn("UpsampleRgbLinePair",xn,3),vn("UpsampleBgrLinePair",An,3),vn("UpsampleRgbaLinePair",Pn,4),vn("UpsampleBgraLinePair",kn,4),vn("UpsampleArgbLinePair",Ln,4),vn("UpsampleRgba4444LinePair",Nn,2),vn("UpsampleRgb565LinePair",Sn,2);var vs=e.UpsampleRgbLinePair,ys=e.UpsampleBgrLinePair,bs=e.UpsampleRgbaLinePair,_s=e.UpsampleBgraLinePair,js=e.UpsampleArgbLinePair,ws=e.UpsampleRgba4444LinePair,xs=e.UpsampleRgb565LinePair,As=16,Ss=1<<As-1,Ns=-227,Ls=482,ks=6,Ps=(256<<ks)-1,Es=0,Cs=i(256),Os=i(256),Ts=i(256),Is=i(256),Ms=i(Ls-Ns),Rs=i(Ls-Ns);En("YuvToRgbRow",xn,3),En("YuvToBgrRow",An,3),En("YuvToRgbaRow",Pn,4),En("YuvToBgraRow",kn,4),En("YuvToArgbRow",Ln,4),En("YuvToRgba4444Row",Nn,2),En("YuvToRgb565Row",Sn,2);var Fs=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Ds=[0,2,8],Bs=[8,7,6,4,4,2,2,2,1,1,1,1];this.WebPDecodeRGBA=function(e,n,a,l,u){var c=Rr,h=new tn,d=new oe;h.ba=d,d.S=c,d.width=[d.width],d.height=[d.height];var f=d.width,p=d.height,m=new ae;if(null==m||null==e)var g=2;else t(null!=m),g=In(e,n,a,m.width,m.height,m.Pd,m.Qd,m.format,null);if(0!=g?f=0:(null!=f&&(f[0]=m.width[0]),null!=p&&(p[0]=m.height[0]),f=1),f){d.width=d.width[0],d.height=d.height[0],null!=l&&(l[0]=d.width),null!=u&&(u[0]=d.height);e:{if(l=new Ge,(u=new nn).data=e,u.w=n,u.ha=a,u.kd=1,n=[0],t(null!=u),(0==(e=In(u.data,u.w,u.ha,null,null,null,n,null,u))||7==e)&&n[0]&&(e=4),0==(n=e)){if(t(null!=h),l.data=u.data,l.w=u.w+u.offset,l.ha=u.ha-u.offset,l.put=fe,l.ac=de,l.bc=pe,l.ma=h,u.xa){if(null==(e=ke())){h=1;break e}if(function(e,n){var r=[0],s=[0],i=[0];t:for(;;){if(null==e)return 0;if(null==n)return e.a=2,0;if(e.l=n,e.a=0,v(e.m,n.data,n.w,n.ha),!me(e.m,r,s,i)){e.a=3;break t}if(e.xb=ps,n.width=r[0],n.height=s[0],!Pe(r[0],s[0],1,e,null))break t;return 1}return t(0!=e.a),0}(e,l)){if(l=0==(n=Fn(l.width,l.height,h.Oa,h.ba))){t:{l=e;n:for(;;){if(null==l){l=0;break t}if(t(null!=l.s.yc),t(null!=l.s.Ya),t(0<l.s.Wb),t(null!=(a=l.l)),t(null!=(u=a.ma)),0!=l.xb){if(l.ca=u.ba,l.tb=u.tb,t(null!=l.ca),!Mn(u.Oa,a,Dr)){l.a=2;break n}if(!Ee(l,a.width))break n;if(a.da)break n;if((a.da||re(l.ca.S))&&gn(),11>l.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=l.ca.f.kb.F&&gn()),l.Pb&&0<l.s.ua&&null==l.s.vb.X&&!T(l.s.vb,l.s.Wa.Xa)){l.a=1;break n}l.xb=0}if(!Ne(l,l.V,l.Ba,l.c,l.i,a.o,we))break n;u.Dc=l.Ma,l=1;break t}t(0!=l.a),l=0}l=!l}l&&(n=e.a)}else n=e.a}else{if(null==(e=new Ye)){h=1;break e}if(e.Fa=u.na,e.P=u.P,e.qc=u.Sa,$e(e,l)){if(0==(n=Fn(l.width,l.height,h.Oa,h.ba))){if(e.Aa=0,a=h.Oa,t(null!=(u=e)),null!=a){if(0<(f=0>(f=a.Md)?0:100<f?255:255*f/100)){for(p=m=0;4>p;++p)12>(g=u.pb[p]).lc&&(g.ia=f*Bs[0>g.lc?0:g.lc]>>3),m|=g.ia;m&&(alert("todo:VP8InitRandom"),u.ia=1)}u.Ga=a.Id,100<u.Ga?u.Ga=100:0>u.Ga&&(u.Ga=0)}(function(e,n){if(null==e)return 0;if(null==n)return Xe(e,2,"NULL VP8Io parameter in VP8Decode().");if(!e.cb&&!$e(e,n))return 0;if(t(e.cb),null==n.ac||n.ac(n)){n.ob&&(e.L=0);var a=Ds[e.L];if(2==e.L?(e.yb=0,e.zb=0):(e.yb=n.v-a>>4,e.zb=n.j-a>>4,0>e.yb&&(e.yb=0),0>e.zb&&(e.zb=0)),e.Va=n.o+15+a>>4,e.Hb=n.va+15+a>>4,e.Hb>e.za&&(e.Hb=e.za),e.Va>e.Ub&&(e.Va=e.Ub),0<e.L){var l=e.ed;for(a=0;4>a;++a){var u;if(e.Qa.Cb){var c=e.Qa.Lb[a];e.Qa.Fb||(c+=l.Tb)}else c=l.Tb;for(u=0;1>=u;++u){var h=e.gd[a][u],d=c;if(l.Pc&&(d+=l.vd[0],u&&(d+=l.od[0])),0<(d=0>d?0:63<d?63:d)){var f=d;0<l.wb&&(f=4<l.wb?f>>2:f>>1)>9-l.wb&&(f=9-l.wb),1>f&&(f=1),h.dd=f,h.tc=2*d+f,h.ld=40<=d?2:15<=d?1:0}else h.tc=0;h.La=u}}}a=0}else Xe(e,6,"Frame setup failed"),a=e.a;if(a=0==a){if(a){e.$c=0,0<e.Aa||(e.Ic=1);t:{a=e.Ic,l=4*(f=e.za);var p=32*f,m=f+1,g=0<e.L?f*(0<e.Aa?2:1):0,v=(2==e.Aa?2:1)*f;if((h=l+832+(u=3*(16*a+Ds[e.L])/2*p)+(c=null!=e.Fa&&0<e.Fa.length?e.Kc.c*e.Kc.i:0))!=h)a=0;else{if(h>e.Vb){if(e.Vb=0,e.Ec=i(h),e.Fc=0,null==e.Ec){a=Xe(e,1,"no memory during frame initialization.");break t}e.Vb=h}h=e.Ec,d=e.Fc,e.Ac=h,e.Bc=d,d+=l,e.Gd=o(p,Ve),e.Hd=0,e.rb=o(m+1,Be),e.sb=1,e.wa=g?o(g,De):null,e.Y=0,e.D.Nb=0,e.D.wa=e.wa,e.D.Y=e.Y,0<e.Aa&&(e.D.Y+=f),t(!0),e.oc=h,e.pc=d,d+=832,e.ya=o(v,Ue),e.aa=0,e.D.ya=e.ya,e.D.aa=e.aa,2==e.Aa&&(e.D.aa+=f),e.R=16*f,e.B=8*f,f=(p=Ds[e.L])*e.R,p=p/2*e.B,e.sa=h,e.ta=d+f,e.qa=e.sa,e.ra=e.ta+16*a*e.R+p,e.Ha=e.qa,e.Ia=e.ra+8*a*e.B+p,e.$c=0,d+=u,e.mb=c?h:null,e.nb=c?d:null,t(d+c<=e.Fc+e.Vb),Je(e),s(e.Ac,e.Bc,0,l),a=1}}if(a){if(n.ka=0,n.y=e.sa,n.O=e.ta,n.f=e.qa,n.N=e.ra,n.ea=e.Ha,n.Vd=e.Ia,n.fa=e.R,n.Rc=e.B,n.F=null,n.J=0,!Er){for(a=-255;255>=a;++a)Nr[255+a]=0>a?-a:a;for(a=-1020;1020>=a;++a)Lr[1020+a]=-128>a?-128:127<a?127:a;for(a=-112;112>=a;++a)kr[112+a]=-16>a?-16:15<a?15:a;for(a=-255;510>=a;++a)Pr[255+a]=0>a?0:255<a?255:a;Er=1}sr=lt,ir=st,ar=it,lr=ot,ur=at,or=rt,cr=Yt,hr=Xt,dr=Kt,fr=Jt,pr=Zt,mr=$t,gr=Qt,vr=en,yr=Ut,br=qt,_r=Vt,jr=Ht,hs[0]=xt,hs[1]=ct,hs[2]=jt,hs[3]=wt,hs[4]=At,hs[5]=Nt,hs[6]=St,hs[7]=Lt,hs[8]=Pt,hs[9]=kt,cs[0]=gt,cs[1]=dt,cs[2]=ft,cs[3]=pt,cs[4]=vt,cs[5]=yt,cs[6]=bt,ds[0]=Tt,ds[1]=ht,ds[2]=Et,ds[3]=Ct,ds[4]=Mt,ds[5]=It,ds[6]=Rt,a=1}else a=0}a&&(a=function(e,n){for(e.M=0;e.M<e.Va;++e.M){var o,a=e.Jc[e.M&e.Xb],l=e.m,u=e;for(o=0;o<u.za;++o){var c=l,h=u,d=h.Ac,f=h.Bc+4*o,p=h.zc,m=h.ya[h.aa+o];if(h.Qa.Bb?m.$b=k(c,h.Pa.jb[0])?2+k(c,h.Pa.jb[2]):k(c,h.Pa.jb[1]):m.$b=0,h.kc&&(m.Ad=k(c,h.Bd)),m.Za=!k(c,145)+0,m.Za){var g=m.Ob,v=0;for(h=0;4>h;++h){var y,b=p[0+h];for(y=0;4>y;++y){b=as[d[f+y]][b];for(var _=is[k(c,b[0])];0<_;)_=is[2*_+k(c,b[_])];b=-_,d[f+y]=b}r(g,v,d,f,4),v+=4,p[0+h]=b}}else b=k(c,156)?k(c,128)?1:3:k(c,163)?2:0,m.Ob[0]=b,s(d,f,b,4),s(p,0,b,4);m.Dd=k(c,142)?k(c,114)?k(c,183)?1:3:2:0}if(u.m.Ka)return Xe(e,7,"Premature end-of-partition0 encountered.");for(;e.ja<e.za;++e.ja){if(u=a,c=(l=e).rb[l.sb-1],d=l.rb[l.sb+l.ja],o=l.ya[l.aa+l.ja],f=l.kc?o.Ad:0)c.la=d.la=0,o.Za||(c.Na=d.Na=0),o.Hc=0,o.Gc=0,o.ia=0;else{var j,w;if(c=d,d=u,f=l.Pa.Xc,p=l.ya[l.aa+l.ja],m=l.pb[p.$b],h=p.ad,g=0,v=l.rb[l.sb-1],b=y=0,s(h,g,0,384),p.Za)var x=0,A=f[3];else{_=i(16);var S=c.Na+v.Na;if(S=ns(d,f[1],S,m.Eb,0,_,0),c.Na=v.Na=(0<S)+0,1<S)sr(_,0,h,g);else{var N=_[0]+3>>3;for(_=0;256>_;_+=16)h[g+_]=N}x=1,A=f[0]}var L=15&c.la,P=15&v.la;for(_=0;4>_;++_){var E=1&P;for(N=w=0;4>N;++N)L=L>>1|(E=(S=ns(d,A,S=E+(1&L),m.Sc,x,h,g))>x)<<7,w=w<<2|(3<S?3:1<S?2:0!=h[g+0]),g+=16;L>>=4,P=P>>1|E<<7,y=(y<<8|w)>>>0}for(A=L,x=P>>4,j=0;4>j;j+=2){for(w=0,L=c.la>>4+j,P=v.la>>4+j,_=0;2>_;++_){for(E=1&P,N=0;2>N;++N)S=E+(1&L),L=L>>1|(E=0<(S=ns(d,f[2],S,m.Qc,0,h,g)))<<3,w=w<<2|(3<S?3:1<S?2:0!=h[g+0]),g+=16;L>>=2,P=P>>1|E<<5}b|=w<<4*j,A|=L<<4<<j,x|=(240&P)<<j}c.la=A,v.la=x,p.Hc=y,p.Gc=b,p.ia=43690&b?0:m.ia,f=!(y|b)}if(0<l.L&&(l.wa[l.Y+l.ja]=l.gd[o.$b][o.Za],l.wa[l.Y+l.ja].La|=!f),u.Ka)return Xe(e,7,"Premature end-of-file encountered.")}if(Je(e),l=n,u=1,o=(a=e).D,c=0<a.L&&a.M>=a.zb&&a.M<=a.Va,0==a.Aa)t:{if(o.M=a.M,o.uc=c,Tn(a,o),u=1,o=(w=a.D).Nb,c=(b=Ds[a.L])*a.R,d=b/2*a.B,_=16*o*a.R,N=8*o*a.B,f=a.sa,p=a.ta-c+_,m=a.qa,h=a.ra-d+N,g=a.Ha,v=a.Ia-d+N,P=0==(L=w.M),y=L>=a.Va-1,2==a.Aa&&Tn(a,w),w.uc)for(E=(S=a).D.M,t(S.D.uc),w=S.yb;w<S.Hb;++w){x=w,A=E;var C=(O=(U=S).D).Nb;j=U.R;var O=O.wa[O.Y+x],T=U.sa,I=U.ta+16*C*j+16*x,M=O.dd,R=O.tc;if(0!=R)if(t(3<=R),1==U.L)0<x&&br(T,I,j,R+4),O.La&&jr(T,I,j,R),0<A&&yr(T,I,j,R+4),O.La&&_r(T,I,j,R);else{var F=U.B,D=U.qa,B=U.ra+8*C*F+8*x,z=U.Ha,U=U.Ia+8*C*F+8*x;C=O.ld,0<x&&(hr(T,I,j,R+4,M,C),fr(D,B,z,U,F,R+4,M,C)),O.La&&(mr(T,I,j,R,M,C),vr(D,B,z,U,F,R,M,C)),0<A&&(cr(T,I,j,R+4,M,C),dr(D,B,z,U,F,R+4,M,C)),O.La&&(pr(T,I,j,R,M,C),gr(D,B,z,U,F,R,M,C))}}if(a.ia&&alert("todo:DitherRow"),null!=l.put){if(w=16*L,L=16*(L+1),P?(l.y=a.sa,l.O=a.ta+_,l.f=a.qa,l.N=a.ra+N,l.ea=a.Ha,l.W=a.Ia+N):(w-=b,l.y=f,l.O=p,l.f=m,l.N=h,l.ea=g,l.W=v),y||(L-=b),L>l.o&&(L=l.o),l.F=null,l.J=null,null!=a.Fa&&0<a.Fa.length&&w<L&&(l.J=hn(a,l,w,L-w),l.F=a.mb,null==l.F&&0==l.F.length)){u=Xe(a,3,"Could not decode alpha data.");break t}w<l.j&&(b=l.j-w,w=l.j,t(!(1&b)),l.O+=a.R*b,l.N+=a.B*(b>>1),l.W+=a.B*(b>>1),null!=l.F&&(l.J+=l.width*b)),w<L&&(l.O+=l.v,l.N+=l.v>>1,l.W+=l.v>>1,null!=l.F&&(l.J+=l.v),l.ka=w-l.j,l.U=l.va-l.v,l.T=L-w,u=l.put(l))}o+1!=a.Ic||y||(r(a.sa,a.ta-c,f,p+16*a.R,c),r(a.qa,a.ra-d,m,h+8*a.B,d),r(a.Ha,a.Ia-d,g,v+8*a.B,d))}if(!u)return Xe(e,6,"Output aborted.")}return 1}(e,n)),null!=n.bc&&n.bc(n),a&=1}return a?(e.cb=0,a):0})(e,l)||(n=e.a)}}else n=e.a}0==n&&null!=h.Oa&&h.Oa.fd&&(n=Rn(h.ba))}h=n}c=0!=h?null:11>c?d.f.RGBA.eb:d.f.kb.y}else c=null;return c};var zs=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function u(e,t){for(var n="",r=0;r<4;r++)n+=String.fromCharCode(e[t++]);return n}function c(e,t){return e[t+0]|e[t+1]<<8}function h(e,t){return(e[t+0]|e[t+1]<<8|e[t+2]<<16)>>>0}function d(e,t){return(e[t+0]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}new l;var f=[0],p=[0],m=[],g=new l,v=e,y=function(e,t){var n={},r=0,s=!1,i=0,o=0;if(n.frames=[],!function(e,t){for(var n=0;n<4;n++)if(e[t+n]!="RIFF".charCodeAt(n))return!0;return!1}(e,t)){for(d(e,t+=4),t+=8;t<e.length;){var a=u(e,t),l=d(e,t+=4);t+=4;var f=l+(1&l);switch(a){case"VP8 ":case"VP8L":void 0===n.frames[r]&&(n.frames[r]={}),(g=n.frames[r]).src_off=s?o:t-8,g.src_size=i+l+8,r++,s&&(s=!1,i=0,o=0);break;case"VP8X":(g=n.header={}).feature_flags=e[t];var p=t+4;g.canvas_width=1+h(e,p),p+=3,g.canvas_height=1+h(e,p),p+=3;break;case"ALPH":s=!0,i=f+8,o=t-8;break;case"ANIM":(g=n.header).bgcolor=d(e,t),p=t+4,g.loop_count=c(e,p),p+=2;break;case"ANMF":var m,g;(g=n.frames[r]={}).offset_x=2*h(e,t),t+=3,g.offset_y=2*h(e,t),t+=3,g.width=1+h(e,t),t+=3,g.height=1+h(e,t),t+=3,g.duration=h(e,t),t+=3,m=e[t++],g.dispose=1&m,g.blend=m>>1&1}"ANMF"!=a&&(t+=f)}return n}}(v,0);y.response=v,y.rgbaoutput=!0,y.dataurl=!1;var b=y.header?y.header:null,_=y.frames?y.frames:null;if(b){b.loop_counter=b.loop_count,f=[b.canvas_height],p=[b.canvas_width];for(var j=0;j<_.length&&0!=_[j].blend;j++);}var w=_[0],x=g.WebPDecodeRGBA(v,w.src_off,w.src_size,p,f);w.rgba=x,w.imgwidth=p[0],w.imgheight=f[0];for(var A=0;A<p[0]*f[0]*4;A++)m[A]=x[A];return this.width=p,this.height=f,this.data=m,this}!function(e){var t,n,s,i,o,a,l,c,h,d=function(e){return e=e||{},this.isStrokeTransparent=e.isStrokeTransparent||!1,this.strokeOpacity=e.strokeOpacity||1,this.strokeStyle=e.strokeStyle||"#000000",this.fillStyle=e.fillStyle||"#000000",this.isFillTransparent=e.isFillTransparent||!1,this.fillOpacity=e.fillOpacity||1,this.font=e.font||"10px sans-serif",this.textBaseline=e.textBaseline||"alphabetic",this.textAlign=e.textAlign||"left",this.lineWidth=e.lineWidth||1,this.lineJoin=e.lineJoin||"miter",this.lineCap=e.lineCap||"butt",this.path=e.path||[],this.transform=void 0!==e.transform?e.transform.clone():new c,this.globalCompositeOperation=e.globalCompositeOperation||"normal",this.globalAlpha=e.globalAlpha||1,this.clip_path=e.clip_path||[],this.currentPoint=e.currentPoint||new a,this.miterLimit=e.miterLimit||10,this.lastPoint=e.lastPoint||new a,this.lineDashOffset=e.lineDashOffset||0,this.lineDash=e.lineDash||[],this.margin=e.margin||[0,0,0,0],this.prevPageLastElemOffset=e.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof e.ignoreClearRect||e.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new f(this),t=this.internal.f2,n=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,a=this.internal.Point,l=this.internal.Rectangle,c=this.internal.Matrix,h=new d}]);var f=function(e){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var t=e;Object.defineProperty(this,"pdf",{get:function(){return t}});var n=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return n},set:function(e){n=Boolean(e)}});var r=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return r},set:function(e){r=Boolean(e)}});var s=0;Object.defineProperty(this,"posX",{get:function(){return s},set:function(e){isNaN(e)||(s=e)}});var i=0;Object.defineProperty(this,"posY",{get:function(){return i},set:function(e){isNaN(e)||(i=e)}}),Object.defineProperty(this,"margin",{get:function(){return h.margin},set:function(e){var t;"number"==typeof e?t=[e,e,e,e]:((t=new Array(4))[0]=e[0],t[1]=e.length>=2?e[1]:t[0],t[2]=e.length>=3?e[2]:t[0],t[3]=e.length>=4?e[3]:t[1]),h.margin=t}});var o=!1;Object.defineProperty(this,"autoPaging",{get:function(){return o},set:function(e){o=e}});var a=0;Object.defineProperty(this,"lastBreak",{get:function(){return a},set:function(e){a=e}});var l=[];Object.defineProperty(this,"pageBreaks",{get:function(){return l},set:function(e){l=e}}),Object.defineProperty(this,"ctx",{get:function(){return h},set:function(e){e instanceof d&&(h=e)}}),Object.defineProperty(this,"path",{get:function(){return h.path},set:function(e){h.path=e}});var u=[];Object.defineProperty(this,"ctxStack",{get:function(){return u},set:function(e){u=e}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(e){var t;t=m(e),this.ctx.fillStyle=t.style,this.ctx.isFillTransparent=0===t.a,this.ctx.fillOpacity=t.a,this.pdf.setFillColor(t.r,t.g,t.b,{a:t.a}),this.pdf.setTextColor(t.r,t.g,t.b,{a:t.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(e){var t=m(e);this.ctx.strokeStyle=t.style,this.ctx.isStrokeTransparent=0===t.a,this.ctx.strokeOpacity=t.a,0===t.a?this.pdf.setDrawColor(255,255,255):(t.a,this.pdf.setDrawColor(t.r,t.g,t.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(e){-1!==["butt","round","square"].indexOf(e)&&(this.ctx.lineCap=e,this.pdf.setLineCap(e))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(e){isNaN(e)||(this.ctx.lineWidth=e,this.pdf.setLineWidth(e))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(e){-1!==["bevel","round","miter"].indexOf(e)&&(this.ctx.lineJoin=e,this.pdf.setLineJoin(e))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(e){isNaN(e)||(this.ctx.miterLimit=e,this.pdf.setMiterLimit(e))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(e){this.ctx.textBaseline=e}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(e){-1!==["right","end","center","left","start"].indexOf(e)&&(this.ctx.textAlign=e)}});var c=null,f=null,p=null;Object.defineProperty(this,"fontFaces",{get:function(){return p},set:function(e){c=null,f=null,p=e}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(e){var t;if(this.ctx.font=e,null!==(t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(e))){var n=t[1];t[2];var r=t[3],s=t[4];t[5];var i=t[6],o=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(s)[2];s="px"===o?Math.floor(parseFloat(s)*this.pdf.internal.scaleFactor):"em"===o?Math.floor(parseFloat(s)*this.pdf.getFontSize()):Math.floor(parseFloat(s)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(s);var a=function(e){var t,n,r=[],s=e.trim();if(""===s)return Je;if(s in Be)return[Be[s]];for(;""!==s;){switch(n=null,t=(s=Ue(s)).charAt(0)){case'"':case"'":n=qe(s.substring(1),t);break;default:n=Ve(s)}if(null===n)return Je;if(r.push(n[0]),""!==(s=Ue(n[1]))&&","!==s.charAt(0))return Je;s=s.replace(/^,/,"")}return r}(i);if(this.fontFaces){var l=function(e,t){var n=e.getFontList(),r=JSON.stringify(n);if(null===c||f!==r){var s=function(e){var t=[];return Object.keys(e).forEach(function(n){e[n].forEach(function(e){var r=null;switch(e){case"bold":r={family:n,weight:"bold"};break;case"italic":r={family:n,style:"italic"};break;case"bolditalic":r={family:n,weight:"bold",style:"italic"};break;case"":case"normal":r={family:n}}null!==r&&(r.ref={name:n,style:e},t.push(r))})}),t}(n);c=function(e){for(var t={},n=0;n<e.length;++n){var r=Re(e[n]),s=r.family,i=r.stretch,o=r.style,a=r.weight;t[s]=t[s]||{},t[s][i]=t[s][i]||{},t[s][i][o]=t[s][i][o]||{},t[s][i][o][a]=r}return t}(s.concat(t)),f=r}return c}(this.pdf,this.fontFaces),u=a.map(function(e){return{family:e,stretch:"normal",weight:r,style:n}}),h=function(e,t,n){for(var r=(n=n||{}).defaultFontFamily||"times",s=Object.assign({},De,n.genericFontFamilies||{}),i=null,o=null,a=0;a<t.length;++a)if(s[(i=Re(t[a])).family]&&(i.family=s[i.family]),e.hasOwnProperty(i.family)){o=e[i.family];break}if(!(o=o||e[r]))throw new Error("Could not find a font-family for the rule '"+ze(i)+"' and default family '"+r+"'.");if(o=function(e,t){if(t[e])return t[e];var n=Te[e],r=n<=Te.normal?-1:1,s=Fe(t,Oe,n,r);if(!s)throw new Error("Could not find a matching font-stretch value for "+e);return s}(i.stretch,o),o=function(e,t){if(t[e])return t[e];for(var n=Ce[e],r=0;r<n.length;++r)if(t[n[r]])return t[n[r]];throw new Error("Could not find a matching font-style for "+e)}(i.style,o),!(o=function(e,t){if(t[e])return t[e];if(400===e&&t[500])return t[500];if(500===e&&t[400])return t[400];var n=Me[e],r=Fe(t,Ie,n,e<400?-1:1);if(!r)throw new Error("Could not find a matching font-weight for value "+e);return r}(i.weight,o)))throw new Error("Failed to resolve a font for the rule '"+ze(i)+"'.");return o}(l,u);this.pdf.setFont(h.ref.name,h.ref.style)}else{var d="";("bold"===r||parseInt(r,10)>=700||"bold"===n)&&(d="bold"),"italic"===n&&(d+="italic"),0===d.length&&(d="normal");for(var p="",m={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},g=0;g<a.length;g++){if(void 0!==this.pdf.internal.getFont(a[g],d,{noFallback:!0,disableWarning:!0})){p=a[g];break}if("bolditalic"===d&&void 0!==this.pdf.internal.getFont(a[g],"bold",{noFallback:!0,disableWarning:!0}))p=a[g],d="bold";else if(void 0!==this.pdf.internal.getFont(a[g],"normal",{noFallback:!0,disableWarning:!0})){p=a[g],d="normal";break}}if(""===p)for(var v=0;v<a.length;v++)if(m[a[v]]){p=m[a[v]];break}p=""===p?"Times":p,this.pdf.setFont(p,d)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(e){this.ctx.globalCompositeOperation=e}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(e){this.ctx.globalAlpha=e}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(e){this.ctx.lineDashOffset=e,z.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(e){this.ctx.lineDash=e,z.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(e){this.ctx.ignoreClearRect=Boolean(e)}})};f.prototype.setLineDash=function(e){this.lineDash=e},f.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},f.prototype.fill=function(){x.call(this,"fill",!1)},f.prototype.stroke=function(){x.call(this,"stroke",!1)},f.prototype.beginPath=function(){this.path=[{type:"begin"}]},f.prototype.moveTo=function(e,t){if(isNaN(e)||isNaN(t))throw u.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var n=this.ctx.transform.applyToPoint(new a(e,t));this.path.push({type:"mt",x:n.x,y:n.y}),this.ctx.lastPoint=new a(e,t)},f.prototype.closePath=function(){var e=new a(0,0),t=0;for(t=this.path.length-1;-1!==t;t--)if("begin"===this.path[t].type&&"object"===(0,r.default)(this.path[t+1])&&"number"==typeof this.path[t+1].x){e=new a(this.path[t+1].x,this.path[t+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new a(e.x,e.y)},f.prototype.lineTo=function(e,t){if(isNaN(e)||isNaN(t))throw u.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var n=this.ctx.transform.applyToPoint(new a(e,t));this.path.push({type:"lt",x:n.x,y:n.y}),this.ctx.lastPoint=new a(n.x,n.y)},f.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),x.call(this,null,!0)},f.prototype.quadraticCurveTo=function(e,t,n,r){if(isNaN(n)||isNaN(r)||isNaN(e)||isNaN(t))throw u.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var s=this.ctx.transform.applyToPoint(new a(n,r)),i=this.ctx.transform.applyToPoint(new a(e,t));this.path.push({type:"qct",x1:i.x,y1:i.y,x:s.x,y:s.y}),this.ctx.lastPoint=new a(s.x,s.y)},f.prototype.bezierCurveTo=function(e,t,n,r,s,i){if(isNaN(s)||isNaN(i)||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw u.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var o=this.ctx.transform.applyToPoint(new a(s,i)),l=this.ctx.transform.applyToPoint(new a(e,t)),c=this.ctx.transform.applyToPoint(new a(n,r));this.path.push({type:"bct",x1:l.x,y1:l.y,x2:c.x,y2:c.y,x:o.x,y:o.y}),this.ctx.lastPoint=new a(o.x,o.y)},f.prototype.arc=function(e,t,n,r,s,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(s))throw u.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(i=Boolean(i),!this.ctx.transform.isIdentity){var o=this.ctx.transform.applyToPoint(new a(e,t));e=o.x,t=o.y;var l=this.ctx.transform.applyToPoint(new a(0,n)),c=this.ctx.transform.applyToPoint(new a(0,0));n=Math.sqrt(Math.pow(l.x-c.x,2)+Math.pow(l.y-c.y,2))}Math.abs(s-r)>=2*Math.PI&&(r=0,s=2*Math.PI),this.path.push({type:"arc",x:e,y:t,radius:n,startAngle:r,endAngle:s,counterclockwise:i})},f.prototype.arcTo=function(e,t,n,r,s){throw new Error("arcTo not implemented.")},f.prototype.rect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw u.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(e,t),this.lineTo(e+n,t),this.lineTo(e+n,t+r),this.lineTo(e,t+r),this.lineTo(e,t),this.lineTo(e+n,t),this.lineTo(e,t)},f.prototype.fillRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw u.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!g.call(this)){var s={};"butt"!==this.lineCap&&(s.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(s.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(e,t,n,r),this.fill(),s.hasOwnProperty("lineCap")&&(this.lineCap=s.lineCap),s.hasOwnProperty("lineJoin")&&(this.lineJoin=s.lineJoin)}},f.prototype.strokeRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw u.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");v.call(this)||(this.beginPath(),this.rect(e,t,n,r),this.stroke())},f.prototype.clearRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw u.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(e,t,n,r))},f.prototype.save=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("q");if(this.pdf.setPage(t),e){this.ctx.fontSize=this.pdf.internal.getFontSize();var r=new d(this.ctx);this.ctxStack.push(this.ctx),this.ctx=r}},f.prototype.restore=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("Q");this.pdf.setPage(t),e&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},f.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var m=function(e){var t,n,r,s;if(!0===e.isCanvasGradient&&(e=e.getColor()),!e)return{r:0,g:0,b:0,a:0,style:e};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(e))t=0,n=0,r=0,s=0;else{var i=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(e);if(null!==i)t=parseInt(i[1]),n=parseInt(i[2]),r=parseInt(i[3]),s=1;else if(null!==(i=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(e)))t=parseInt(i[1]),n=parseInt(i[2]),r=parseInt(i[3]),s=parseFloat(i[4]);else{if(s=1,"string"==typeof e&&"#"!==e.charAt(0)){var o=new p(e);e=o.ok?o.toHex():"#000000"}4===e.length?(t=e.substring(1,2),t+=t,n=e.substring(2,3),n+=n,r=e.substring(3,4),r+=r):(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7)),t=parseInt(t,16),n=parseInt(n,16),r=parseInt(r,16)}}return{r:t,g:n,b:r,a:s,style:e}},g=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},v=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};f.prototype.fillText=function(e,t,n,r){if(isNaN(t)||isNaN(n)||"string"!=typeof e)throw u.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(r=isNaN(r)?void 0:r,!g.call(this)){var s=F(this.ctx.transform.rotation),i=this.ctx.transform.scaleX;C.call(this,{text:e,x:t,y:n,scale:i,angle:s,align:this.textAlign,maxWidth:r})}},f.prototype.strokeText=function(e,t,n,r){if(isNaN(t)||isNaN(n)||"string"!=typeof e)throw u.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!v.call(this)){r=isNaN(r)?void 0:r;var s=F(this.ctx.transform.rotation),i=this.ctx.transform.scaleX;C.call(this,{text:e,x:t,y:n,scale:i,renderingMode:"stroke",angle:s,align:this.textAlign,maxWidth:r})}},f.prototype.measureText=function(e){if("string"!=typeof e)throw u.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var t=this.pdf,n=this.pdf.internal.scaleFactor,r=t.internal.getFontSize(),s=t.getStringUnitWidth(e)*r/t.internal.scaleFactor;return new function(e){var t=(e=e||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return t}}),this}({width:s*=Math.round(96*n/72*1e4)/1e4})},f.prototype.scale=function(e,t){if(isNaN(e)||isNaN(t))throw u.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var n=new c(e,0,0,t,0,0);this.ctx.transform=this.ctx.transform.multiply(n)},f.prototype.rotate=function(e){if(isNaN(e))throw u.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var t=new c(Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e),0,0);this.ctx.transform=this.ctx.transform.multiply(t)},f.prototype.translate=function(e,t){if(isNaN(e)||isNaN(t))throw u.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var n=new c(1,0,0,1,e,t);this.ctx.transform=this.ctx.transform.multiply(n)},f.prototype.transform=function(e,t,n,r,s,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(s)||isNaN(i))throw u.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var o=new c(e,t,n,r,s,i);this.ctx.transform=this.ctx.transform.multiply(o)},f.prototype.setTransform=function(e,t,n,r,s,i){e=isNaN(e)?1:e,t=isNaN(t)?0:t,n=isNaN(n)?0:n,r=isNaN(r)?1:r,s=isNaN(s)?0:s,i=isNaN(i)?0:i,this.ctx.transform=new c(e,t,n,r,s,i)};var y=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};f.prototype.drawImage=function(e,t,n,r,s,i,o,a,u){var h=this.pdf.getImageProperties(e),d=1,f=1,p=1,m=1;void 0!==r&&void 0!==a&&(p=a/r,m=u/s,d=h.width/r*a/r,f=h.height/s*u/s),void 0===i&&(i=t,o=n,t=0,n=0),void 0!==r&&void 0===a&&(a=r,u=s),void 0===r&&void 0===a&&(a=h.width,u=h.height);var g=this.ctx.transform.decompose(),v=F(g.rotate.shx),_=new c,x=(_=(_=(_=_.multiply(g.translate)).multiply(g.skew)).multiply(g.scale)).applyToRectangle(new l(i-t*p,o-n*m,r*d,s*f));if(this.autoPaging){for(var S,N=b.call(this,x),L=[],k=0;k<N.length;k+=1)-1===L.indexOf(N[k])&&L.push(N[k]);w(L);for(var P=L[0],E=L[L.length-1],C=P;C<E+1;C++){this.pdf.setPage(C);var O=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],T=1===C?this.posY+this.margin[0]:this.margin[0],I=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],M=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],R=1===C?0:I+(C-2)*M;if(0!==this.ctx.clip_path.length){var D=this.path;S=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=j(S,this.posX+this.margin[3],-R+T+this.ctx.prevPageLastElemOffset),A.call(this,"fill",!0),this.path=D}var B=JSON.parse(JSON.stringify(x));B=j([B],this.posX+this.margin[3],-R+T+this.ctx.prevPageLastElemOffset)[0];var z=(C>P||C<E)&&y.call(this);z&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],O,M,null).clip().discardPath()),this.pdf.addImage(e,"JPEG",B.x,B.y,B.w,B.h,null,null,v),z&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(e,"JPEG",x.x,x.y,x.w,x.h,null,null,v)};var b=function(e,t,n){var r=[];t=t||this.pdf.internal.pageSize.width,n=n||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var s=this.posY+this.ctx.prevPageLastElemOffset;switch(e.type){default:case"mt":case"lt":r.push(Math.floor((e.y+s)/n)+1);break;case"arc":r.push(Math.floor((e.y+s-e.radius)/n)+1),r.push(Math.floor((e.y+s+e.radius)/n)+1);break;case"qct":var i=D(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x,e.y);r.push(Math.floor((i.y+s)/n)+1),r.push(Math.floor((i.y+i.h+s)/n)+1);break;case"bct":var o=B(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x2,e.y2,e.x,e.y);r.push(Math.floor((o.y+s)/n)+1),r.push(Math.floor((o.y+o.h+s)/n)+1);break;case"rect":r.push(Math.floor((e.y+s)/n)+1),r.push(Math.floor((e.y+e.h+s)/n)+1)}for(var a=0;a<r.length;a+=1)for(;this.pdf.internal.getNumberOfPages()<r[a];)_.call(this);return r},_=function(){var e=this.fillStyle,t=this.strokeStyle,n=this.font,r=this.lineCap,s=this.lineWidth,i=this.lineJoin;this.pdf.addPage(),this.fillStyle=e,this.strokeStyle=t,this.font=n,this.lineCap=r,this.lineWidth=s,this.lineJoin=i},j=function(e,t,n){for(var r=0;r<e.length;r++)switch(e[r].type){case"bct":e[r].x2+=t,e[r].y2+=n;case"qct":e[r].x1+=t,e[r].y1+=n;default:e[r].x+=t,e[r].y+=n}return e},w=function(e){return e.sort(function(e,t){return e-t})},x=function(e,t){var n=this.fillStyle,r=this.strokeStyle,s=this.lineCap,i=this.lineWidth,o=Math.abs(i*this.ctx.transform.scaleX),a=this.lineJoin;if(this.autoPaging){for(var l,u,c=JSON.parse(JSON.stringify(this.path)),h=JSON.parse(JSON.stringify(this.path)),d=[],f=0;f<h.length;f++)if(void 0!==h[f].x)for(var p=b.call(this,h[f]),m=0;m<p.length;m+=1)-1===d.indexOf(p[m])&&d.push(p[m]);for(var g=0;g<d.length;g++)for(;this.pdf.internal.getNumberOfPages()<d[g];)_.call(this);w(d);for(var v=d[0],x=d[d.length-1],S=v;S<x+1;S++){this.pdf.setPage(S),this.fillStyle=n,this.strokeStyle=r,this.lineCap=s,this.lineWidth=o,this.lineJoin=a;var N=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],L=1===S?this.posY+this.margin[0]:this.margin[0],k=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],P=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],E=1===S?0:k+(S-2)*P;if(0!==this.ctx.clip_path.length){var C=this.path;l=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=j(l,this.posX+this.margin[3],-E+L+this.ctx.prevPageLastElemOffset),A.call(this,e,!0),this.path=C}if(u=JSON.parse(JSON.stringify(c)),this.path=j(u,this.posX+this.margin[3],-E+L+this.ctx.prevPageLastElemOffset),!1===t||0===S){var O=(S>v||S<x)&&y.call(this);O&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],N,P,null).clip().discardPath()),A.call(this,e,t),O&&this.pdf.restoreGraphicsState()}this.lineWidth=i}this.path=c}else this.lineWidth=o,A.call(this,e,t),this.lineWidth=i},A=function(e,t){if(("stroke"!==e||t||!v.call(this))&&("stroke"===e||t||!g.call(this))){for(var n,r,s=[],i=this.path,o=0;o<i.length;o++){var a=i[o];switch(a.type){case"begin":s.push({begin:!0});break;case"close":s.push({close:!0});break;case"mt":s.push({start:a,deltas:[],abs:[]});break;case"lt":var l=s.length;if(i[o-1]&&!isNaN(i[o-1].x)&&(n=[a.x-i[o-1].x,a.y-i[o-1].y],l>0))for(;l>=0;l--)if(!0!==s[l-1].close&&!0!==s[l-1].begin){s[l-1].deltas.push(n),s[l-1].abs.push(a);break}break;case"bct":n=[a.x1-i[o-1].x,a.y1-i[o-1].y,a.x2-i[o-1].x,a.y2-i[o-1].y,a.x-i[o-1].x,a.y-i[o-1].y],s[s.length-1].deltas.push(n);break;case"qct":var u=i[o-1].x+2/3*(a.x1-i[o-1].x),c=i[o-1].y+2/3*(a.y1-i[o-1].y),h=a.x+2/3*(a.x1-a.x),d=a.y+2/3*(a.y1-a.y),f=a.x,p=a.y;n=[u-i[o-1].x,c-i[o-1].y,h-i[o-1].x,d-i[o-1].y,f-i[o-1].x,p-i[o-1].y],s[s.length-1].deltas.push(n);break;case"arc":s.push({deltas:[],abs:[],arc:!0}),Array.isArray(s[s.length-1].abs)&&s[s.length-1].abs.push(a)}}r=t?null:"stroke"===e?"stroke":"fill";for(var m=!1,y=0;y<s.length;y++)if(s[y].arc)for(var b=s[y].abs,_=0;_<b.length;_++){var j=b[_];"arc"===j.type?L.call(this,j.x,j.y,j.radius,j.startAngle,j.endAngle,j.counterclockwise,void 0,t,!m):O.call(this,j.x,j.y),m=!0}else if(!0===s[y].close)this.pdf.internal.out("h"),m=!1;else if(!0!==s[y].begin){var w=s[y].start.x,x=s[y].start.y;T.call(this,s[y].deltas,w,x),m=!0}r&&k.call(this,r),t&&P.call(this)}},S=function(e){var t=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,n=t*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return e-n;case"top":return e+t-n;case"hanging":return e+t-2*n;case"middle":return e+t/2-n;default:return e}},N=function(e){return e+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};f.prototype.createLinearGradient=function(){var e=function(){};return e.colorStops=[],e.addColorStop=function(e,t){this.colorStops.push([e,t])},e.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},e.isCanvasGradient=!0,e},f.prototype.createPattern=function(){return this.createLinearGradient()},f.prototype.createRadialGradient=function(){return this.createLinearGradient()};var L=function(e,t,n,r,s,i,o,a,l){for(var u=M.call(this,n,r,s,i),c=0;c<u.length;c++){var h=u[c];0===c&&(l?E.call(this,h.x1+e,h.y1+t):O.call(this,h.x1+e,h.y1+t)),I.call(this,e,t,h.x2,h.y2,h.x3,h.y3,h.x4,h.y4)}a?P.call(this):k.call(this,o)},k=function(e){switch(e){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},P=function(){this.pdf.clip(),this.pdf.discardPath()},E=function(e,t){this.pdf.internal.out(n(e)+" "+s(t)+" m")},C=function(e){var t;switch(e.align){case"right":case"end":t="right";break;case"center":t="center";break;default:t="left"}var n,r,s,i=this.pdf.getTextDimensions(e.text),o=S.call(this,e.y),u=N.call(this,o)-i.h,h=this.ctx.transform.applyToPoint(new a(e.x,o));if(this.autoPaging){var d=this.ctx.transform.decompose(),f=new c;f=(f=(f=f.multiply(d.translate)).multiply(d.skew)).multiply(d.scale);for(var p=this.ctx.transform.applyToRectangle(new l(e.x,o,i.w,i.h)),m=f.applyToRectangle(new l(e.x,u,i.w,i.h)),g=b.call(this,m),v=[],_=0;_<g.length;_+=1)-1===v.indexOf(g[_])&&v.push(g[_]);w(v);for(var x=v[0],L=v[v.length-1],k=x;k<L+1;k++){this.pdf.setPage(k);var P=1===k?this.posY+this.margin[0]:this.margin[0],E=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],C=this.pdf.internal.pageSize.height-this.margin[2],O=C-this.margin[0],T=this.pdf.internal.pageSize.width-this.margin[1],I=T-this.margin[3],M=1===k?0:E+(k-2)*O;if(0!==this.ctx.clip_path.length){var R=this.path;n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=j(n,this.posX+this.margin[3],-1*M+P),A.call(this,"fill",!0),this.path=R}var F=j([JSON.parse(JSON.stringify(m))],this.posX+this.margin[3],-M+P+this.ctx.prevPageLastElemOffset)[0];e.scale>=.01&&(r=this.pdf.internal.getFontSize(),this.pdf.setFontSize(r*e.scale),s=this.lineWidth,this.lineWidth=s*e.scale);var D="text"!==this.autoPaging;if(D||F.y+F.h<=C){if(D||F.y>=P&&F.x<=T){var B=D?e.text:this.pdf.splitTextToSize(e.text,e.maxWidth||T-F.x)[0],z=j([JSON.parse(JSON.stringify(p))],this.posX+this.margin[3],-M+P+this.ctx.prevPageLastElemOffset)[0],U=D&&(k>x||k<L)&&y.call(this);U&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],I,O,null).clip().discardPath()),this.pdf.text(B,z.x,z.y,{angle:e.angle,align:t,renderingMode:e.renderingMode}),U&&this.pdf.restoreGraphicsState()}}else F.y<C&&(this.ctx.prevPageLastElemOffset+=C-F.y);e.scale>=.01&&(this.pdf.setFontSize(r),this.lineWidth=s)}}else e.scale>=.01&&(r=this.pdf.internal.getFontSize(),this.pdf.setFontSize(r*e.scale),s=this.lineWidth,this.lineWidth=s*e.scale),this.pdf.text(e.text,h.x+this.posX,h.y+this.posY,{angle:e.angle,align:t,renderingMode:e.renderingMode,maxWidth:e.maxWidth}),e.scale>=.01&&(this.pdf.setFontSize(r),this.lineWidth=s)},O=function(e,t,r,i){r=r||0,i=i||0,this.pdf.internal.out(n(e+r)+" "+s(t+i)+" l")},T=function(e,t,n){return this.pdf.lines(e,t,n,null,null)},I=function(e,n,r,s,a,l,u,c){this.pdf.internal.out([t(i(r+e)),t(o(s+n)),t(i(a+e)),t(o(l+n)),t(i(u+e)),t(o(c+n)),"c"].join(" "))},M=function(e,t,n,r){for(var s=2*Math.PI,i=Math.PI/2;t>n;)t-=s;var o=Math.abs(n-t);o<s&&r&&(o=s-o);for(var a=[],l=r?-1:1,u=t;o>1e-5;){var c=u+l*Math.min(o,i);a.push(R.call(this,e,u,c)),o-=Math.abs(c-u),u=c}return a},R=function(e,t,n){var r=(n-t)/2,s=e*Math.cos(r),i=e*Math.sin(r),o=s,a=-i,l=o*o+a*a,u=l+o*s+a*i,c=4/3*(Math.sqrt(2*l*u)-u)/(o*i-a*s),h=o-c*a,d=a+c*o,f=h,p=-d,m=r+t,g=Math.cos(m),v=Math.sin(m);return{x1:e*Math.cos(t),y1:e*Math.sin(t),x2:h*g-d*v,y2:h*v+d*g,x3:f*g-p*v,y3:f*v+p*g,x4:e*Math.cos(n),y4:e*Math.sin(n)}},F=function(e){return 180*e/Math.PI},D=function(e,t,n,r,s,i){var o=e+.5*(n-e),a=t+.5*(r-t),u=s+.5*(n-s),c=i+.5*(r-i),h=Math.min(e,s,o,u),d=Math.max(e,s,o,u),f=Math.min(t,i,a,c),p=Math.max(t,i,a,c);return new l(h,f,d-h,p-f)},B=function(e,t,n,r,s,i,o,a){var u,c,h,d,f,p,m,g,v,y,b,_,j,w,x=n-e,A=r-t,S=s-n,N=i-r,L=o-s,k=a-i;for(c=0;c<41;c++)v=(m=(h=e+(u=c/40)*x)+u*((f=n+u*S)-h))+u*(f+u*(s+u*L-f)-m),y=(g=(d=t+u*A)+u*((p=r+u*N)-d))+u*(p+u*(i+u*k-p)-g),0==c?(b=v,_=y,j=v,w=y):(b=Math.min(b,v),_=Math.min(_,y),j=Math.max(j,v),w=Math.max(w,y));return new l(Math.round(b),Math.round(_),Math.round(j-b),Math.round(w-_))},z=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var e,t,n=(e=this.ctx.lineDash,t=this.ctx.lineDashOffset,JSON.stringify({lineDash:e,lineDashOffset:t}));this.prevLineDash!==n&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=n)}}}(z.API),function(e){var t=function(e){var t,n,r,s,i,o,a,l,u,c;for(/[^\x00-\xFF]/.test(e),n=[],r=0,s=(e+=t="\0\0\0\0".slice(e.length%4||4)).length;s>r;r+=4)0!==(i=(e.charCodeAt(r)<<24)+(e.charCodeAt(r+1)<<16)+(e.charCodeAt(r+2)<<8)+e.charCodeAt(r+3))?(o=(i=((i=((i=((i=(i-(c=i%85))/85)-(u=i%85))/85)-(l=i%85))/85)-(a=i%85))/85)%85,n.push(o+33,a+33,l+33,u+33,c+33)):n.push(122);return function(e,t){for(var n=t;n>0;n--)e.pop()}(n,t.length),String.fromCharCode.apply(String,n)+"~>"},n=function(e){var t,n,r,s,i,o=String,a="length",l=255,u="charCodeAt",c="slice",h="replace";for(e[c](-2),e=e[c](0,-2)[h](/\s/g,"")[h]("z","!!!!!"),r=[],s=0,i=(e+=t="uuuuu"[c](e[a]%5||5))[a];i>s;s+=5)n=52200625*(e[u](s)-33)+614125*(e[u](s+1)-33)+7225*(e[u](s+2)-33)+85*(e[u](s+3)-33)+(e[u](s+4)-33),r.push(l&n>>24,l&n>>16,l&n>>8,l&n);return function(e,t){for(var n=t;n>0;n--)e.pop()}(r,t[a]),o.fromCharCode.apply(o,r)},r=function(e){return e.split("").map(function(e){return("0"+e.charCodeAt().toString(16)).slice(-2)}).join("")+">"},i=function(e){var t=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(e=e.replace(/\s/g,"")).indexOf(">")&&(e=e.substr(0,e.indexOf(">"))),e.length%2&&(e+="0"),!1===t.test(e))return"";for(var n="",r=0;r<e.length;r+=2)n+=String.fromCharCode("0x"+(e[r]+e[r+1]));return n},o=function(e){for(var t=new Uint8Array(e.length),n=e.length;n--;)t[n]=e.charCodeAt(n);return(t=(0,s.zlibSync)(t)).reduce(function(e,t){return e+String.fromCharCode(t)},"")};e.processDataByFilters=function(e,s){var a=0,l=e||"",u=[];for("string"==typeof(s=s||[])&&(s=[s]),a=0;a<s.length;a+=1)switch(s[a]){case"ASCII85Decode":case"/ASCII85Decode":l=n(l),u.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":l=t(l),u.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":l=i(l),u.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":l=r(l),u.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":l=o(l),u.push("/FlateDecode");break;default:throw new Error('The filter: "'+s[a]+'" is not implemented')}return{data:l,reverseChain:u.reverse().join(" ")}}}(z.API),function(e){e.loadFile=function(e,t,n){return function(e,t,n){t=!1!==t,n="function"==typeof n?n:function(){};var r=void 0;try{r=function(e,t,n){var r=new XMLHttpRequest,s=0,i=function(e){var t=e.length,n=[],r=String.fromCharCode;for(s=0;s<t;s+=1)n.push(r(255&e.charCodeAt(s)));return n.join("")};if(r.open("GET",e,!t),r.overrideMimeType("text/plain; charset=x-user-defined"),!1===t&&(r.onload=function(){200===r.status?n(i(this.responseText)):n(void 0)}),r.send(null),t&&200===r.status)return i(r.responseText)}(e,t,n)}catch(e){}return r}(e,t,n)},e.allowFsRead=void 0,e.loadImageFile=e.loadFile}(z.API),function(e){function t(){return(a.html2canvas?Promise.resolve(a.html2canvas):Promise.resolve().then(n.t.bind(n,"html2canvas",23))).catch(function(e){return Promise.reject(new Error("Could not load html2canvas: "+e))}).then(function(e){return e.default?e.default:e})}function s(){return(a.DOMPurify?Promise.resolve(a.DOMPurify):Promise.resolve().then(n.bind(n,"./node_modules/dompurify/dist/purify.es.mjs"))).catch(function(e){return Promise.reject(new Error("Could not load dompurify: "+e))}).then(function(e){return e.default?e.default:e})}var i=function(e){var t=(0,r.default)(e);return"undefined"===t?"undefined":"string"===t||e instanceof String?"string":"number"===t||e instanceof Number?"number":"function"===t||e instanceof Function?"function":e&&e.constructor===Array?"array":e&&1===e.nodeType?"element":"object"===t?"object":"unknown"},o=function(e,t){var n=document.createElement(e);for(var r in t.className&&(n.className=t.className),t.innerHTML&&t.dompurify&&(n.innerHTML=t.dompurify.sanitize(t.innerHTML)),t.style)n.style[r]=t.style[r];return n},l=function e(t,n){for(var r=3===t.nodeType?document.createTextNode(t.nodeValue):t.cloneNode(!1),s=t.firstChild;s;s=s.nextSibling)!0!==n&&1===s.nodeType&&"SCRIPT"===s.nodeName||r.appendChild(e(s,n));return 1===t.nodeType&&("CANVAS"===t.nodeName?(r.width=t.width,r.height=t.height,r.getContext("2d").drawImage(t,0,0)):"TEXTAREA"!==t.nodeName&&"SELECT"!==t.nodeName||(r.value=t.value),r.addEventListener("load",function(){r.scrollTop=t.scrollTop,r.scrollLeft=t.scrollLeft},!0)),r},u=function e(t){var n=Object.assign(e.convert(Promise.resolve()),JSON.parse(JSON.stringify(e.template))),r=e.convert(Promise.resolve(),n);return(r=r.setProgress(1,e,1,[e])).set(t)};(u.prototype=Object.create(Promise.prototype)).constructor=u,u.convert=function(e,t){return e.__proto__=t||u.prototype,e},u.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},u.prototype.from=function(e,t){return this.then(function(){switch(t=t||function(e){switch(i(e)){case"string":return"string";case"element":return"canvas"===e.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(e),t){case"string":return this.then(s).then(function(t){return this.set({src:o("div",{innerHTML:e,dompurify:t})})});case"element":return this.set({src:e});case"canvas":return this.set({canvas:e});case"img":return this.set({img:e});default:return this.error("Unknown source type.")}})},u.prototype.to=function(e){switch(e){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},u.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var e={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},t=l(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===t.tagName&&(e.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=o("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=o("div",{className:"html2pdf__container",style:e}),this.prop.container.appendChild(t),this.prop.container.firstChild.appendChild(o("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},u.prototype.toCanvas=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then(t).then(function(e){var t=Object.assign({},this.opt.html2canvas);return delete t.onrendered,e(this.prop.container,t)}).then(function(e){(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)})},u.prototype.toContext2d=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then(t).then(function(e){var t=this.opt.jsPDF,n=this.opt.fontFaces,r="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,s=Object.assign({async:!0,allowTaint:!0,scale:r,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete s.onrendered,t.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,t.context2d.posX=this.opt.x,t.context2d.posY=this.opt.y,t.context2d.margin=this.opt.margin,t.context2d.fontFaces=n,n)for(var i=0;i<n.length;++i){var o=n[i],a=o.src.find(function(e){return"truetype"===e.format});a&&t.addFont(a.url,o.ref.name,o.ref.style)}return s.windowHeight=s.windowHeight||0,s.windowHeight=0==s.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):s.windowHeight,t.context2d.save(!0),e(this.prop.container,s)}).then(function(e){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)})},u.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var e=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=e})},u.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},u.prototype.output=function(e,t,n){return"img"===(n=n||"pdf").toLowerCase()||"image"===n.toLowerCase()?this.outputImg(e,t):this.outputPdf(e,t)},u.prototype.outputPdf=function(e,t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(e,t)})},u.prototype.outputImg=function(e){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(e){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+e+'" is not supported.'}})},u.prototype.save=function(e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(e?{filename:e}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},u.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},u.prototype.set=function(e){if("object"!==i(e))return this;var t=Object.keys(e||{}).map(function(t){if(t in u.template.prop)return function(){this.prop[t]=e[t]};switch(t){case"margin":return this.setMargin.bind(this,e.margin);case"jsPDF":return function(){return this.opt.jsPDF=e.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,e.pageSize);default:return function(){this.opt[t]=e[t]}}},this);return this.then(function(){return this.thenList(t)})},u.prototype.get=function(e,t){return this.then(function(){var n=e in u.template.prop?this.prop[e]:this.opt[e];return t?t(n):n})},u.prototype.setMargin=function(e){return this.then(function(){switch(i(e)){case"number":e=[e,e,e,e];case"array":if(2===e.length&&(e=[e[0],e[1],e[0],e[1]]),4===e.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=e}).then(this.setPageSize)},u.prototype.setPageSize=function(e){function t(e,t){return Math.floor(e*t/72*96)}return this.then(function(){(e=e||z.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(e.inner={width:e.width-this.opt.margin[1]-this.opt.margin[3],height:e.height-this.opt.margin[0]-this.opt.margin[2]},e.inner.px={width:t(e.inner.width,e.k),height:t(e.inner.height,e.k)},e.inner.ratio=e.inner.height/e.inner.width),this.prop.pageSize=e})},u.prototype.setProgress=function(e,t,n,r){return null!=e&&(this.progress.val=e),null!=t&&(this.progress.state=t),null!=n&&(this.progress.n=n),null!=r&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},u.prototype.updateProgress=function(e,t,n,r){return this.setProgress(e?this.progress.val+e:null,t||null,n?this.progress.n+n:null,r?this.progress.stack.concat(r):null)},u.prototype.then=function(e,t){var n=this;return this.thenCore(e,t,function(e,t){return n.updateProgress(null,null,1,[e]),Promise.prototype.then.call(this,function(t){return n.updateProgress(null,e),t}).then(e,t).then(function(e){return n.updateProgress(1),e})})},u.prototype.thenCore=function(e,t,n){n=n||Promise.prototype.then;var r=this;e&&(e=e.bind(r)),t&&(t=t.bind(r));var s=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?r:u.convert(Object.assign({},r),Promise.prototype),i=n.call(s,e,t);return u.convert(i,r.__proto__)},u.prototype.thenExternal=function(e,t){return Promise.prototype.then.call(this,e,t)},u.prototype.thenList=function(e){var t=this;return e.forEach(function(e){t=t.thenCore(e)}),t},u.prototype.catch=function(e){e&&(e=e.bind(this));var t=Promise.prototype.catch.call(this,e);return u.convert(t,this)},u.prototype.catchExternal=function(e){return Promise.prototype.catch.call(this,e)},u.prototype.error=function(e){return this.then(function(){throw new Error(e)})},u.prototype.using=u.prototype.set,u.prototype.saveAs=u.prototype.save,u.prototype.export=u.prototype.output,u.prototype.run=u.prototype.then,z.getPageSize=function(e,t,n){if("object"===(0,r.default)(e)){var s=e;e=s.orientation,t=s.unit||t,n=s.format||n}t=t||"mm",n=n||"a4",e=(""+(e||"P")).toLowerCase();var i,o=(""+n).toLowerCase(),a={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(t){case"pt":i=1;break;case"mm":i=72/25.4;break;case"cm":i=72/2.54;break;case"in":i=72;break;case"px":i=.75;break;case"pc":case"em":i=12;break;case"ex":i=6;break;default:throw"Invalid unit: "+t}var l,u=0,c=0;if(a.hasOwnProperty(o))u=a[o][1]/i,c=a[o][0]/i;else try{u=n[1],c=n[0]}catch(e){throw new Error("Invalid format: "+n)}if("p"===e||"portrait"===e)e="p",c>u&&(l=c,c=u,u=l);else{if("l"!==e&&"landscape"!==e)throw"Invalid orientation: "+e;e="l",u>c&&(l=c,c=u,u=l)}return{width:c,height:u,unit:t,k:i,orientation:e}},e.html=function(e,t){(t=t||{}).callback=t.callback||function(){},t.html2canvas=t.html2canvas||{},t.html2canvas.canvas=t.html2canvas.canvas||this.canvas,t.jsPDF=t.jsPDF||this,t.fontFaces=t.fontFaces?t.fontFaces.map(Re):null;var n=new u(t);return t.worker?n:n.from(e).doCallback()}}(z.API),z.API.addJS=function(e){return Ge=e,this.internal.events.subscribe("postPutResources",function(){He=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(He+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),We=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Ge+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){void 0!==He&&void 0!==We&&this.internal.out("/Names <</JavaScript "+He+" 0 R>>")}),this},function(e){var t;e.events.push(["postPutResources",function(){var e=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var r=e.outline.render().split(/\r\n/),s=0;s<r.length;s++){var i=r[s],o=n.exec(i);if(null!=o){var a=o[1];e.internal.newObjectDeferredBegin(a,!1)}e.internal.write(i)}if(this.outline.createNamedDestinations){var l=this.internal.pages.length,u=[];for(s=0;s<l;s++){var c=e.internal.newObject();u.push(c);var h=e.internal.getPageInfo(s+1);e.internal.write("<< /D["+h.objId+" 0 R /XYZ null null null]>> endobj")}var d=e.internal.newObject();for(e.internal.write("<< /Names [ "),s=0;s<u.length;s++)e.internal.write("(page_"+(s+1)+")"+u[s]+" 0 R");e.internal.write(" ] >>","endobj"),t=e.internal.newObject(),e.internal.write("<< /Dests "+d+" 0 R"),e.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){var e=this;e.outline.root.children.length>0&&(e.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&e.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(e,t,n){var r={title:t,options:n,children:[]};return null==e&&(e=this.root),e.children.push(r),r},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(t){t.id=e.internal.newObjectDeferred();for(var n=0;n<t.children.length;n++)this.genIds_r(t.children[n])},e.outline.renderRoot=function(e){this.objStart(e),this.line("/Type /Outlines"),e.children.length>0&&(this.line("/First "+this.makeRef(e.children[0])),this.line("/Last "+this.makeRef(e.children[e.children.length-1]))),this.line("/Count "+this.count_r({count:0},e)),this.objEnd()},e.outline.renderItems=function(t){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,r=0;r<t.children.length;r++){var s=t.children[r];this.objStart(s),this.line("/Title "+this.makeString(s.title)),this.line("/Parent "+this.makeRef(t)),r>0&&this.line("/Prev "+this.makeRef(t.children[r-1])),r<t.children.length-1&&this.line("/Next "+this.makeRef(t.children[r+1])),s.children.length>0&&(this.line("/First "+this.makeRef(s.children[0])),this.line("/Last "+this.makeRef(s.children[s.children.length-1])));var i=this.count=this.count_r({count:0},s);if(i>0&&this.line("/Count "+i),s.options&&s.options.pageNumber){var o=e.internal.getPageInfo(s.options.pageNumber);this.line("/Dest ["+o.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var a=0;a<t.children.length;a++)this.renderItems(t.children[a])},e.outline.line=function(e){this.ctx.val+=e+"\r\n"},e.outline.makeRef=function(e){return e.id+" 0 R"},e.outline.makeString=function(t){return"("+e.internal.pdfEscape(t)+")"},e.outline.objStart=function(e){this.ctx.val+="\r\n"+e.id+" 0 obj\r\n<<\r\n"},e.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},e.outline.count_r=function(e,t){for(var n=0;n<t.children.length;n++)e.count++,this.count_r(e,t.children[n]);return e.count}}])}(z.API),function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(e,n,r,s,i,o){var a,l=this.decode.DCT_DECODE,u=null;if("string"==typeof e||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=i||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,a=function(e){for(var n,r=256*e.charCodeAt(4)+e.charCodeAt(5),s=e.length,i={width:0,height:0,numcomponents:1},o=4;o<s;o+=2){if(o+=r,-1!==t.indexOf(e.charCodeAt(o+1))){n=256*e.charCodeAt(o+5)+e.charCodeAt(o+6),i={width:256*e.charCodeAt(o+7)+e.charCodeAt(o+8),height:n,numcomponents:e.charCodeAt(o+9)};break}r=256*e.charCodeAt(o+2)+e.charCodeAt(o+3)}return i}(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e),a.numcomponents){case 1:o=this.color_spaces.DEVICE_GRAY;break;case 4:o=this.color_spaces.DEVICE_CMYK;break;case 3:o=this.color_spaces.DEVICE_RGB}u={data:e,width:a.width,height:a.height,colorSpace:o,bitsPerComponent:8,filter:l,index:n,alias:r}}return u}}(z.API),z.API.processPNG=function(e,t,n,r){if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){var a,l=(0,o.decode)(e,{checkCrc:!0}),u=l.width,c=l.height,h=l.channels,d=l.palette,f=l.depth;a=d&&1===h?function(e){for(var t=e.width,n=e.height,r=e.data,s=e.palette,o=e.depth,a=!1,l=[],u=[],c=void 0,h=!1,d=0,f=0;f<s.length;f++){var p=(0,i.default)(s[f],4),m=p[0],g=p[1],v=p[2],y=p[3];l.push(m,g,v),null!=y&&(0===y?(d++,u.length<1&&u.push(f)):y<255&&(h=!0))}if(h||d>1){a=!0,u=void 0;var b=t*n;c=new Uint8Array(b);for(var _=new DataView(r.buffer),j=0;j<b;j++){var w=at(_,j,o),x=(0,i.default)(s[w],4)[3];c[j]=x}}else 0===d&&(u=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:a?8:void 0,colorBytes:r,alphaBytes:c,needSMask:a,palette:l,mask:u}}(l):2===h||4===h?function(e){for(var t=e.data,n=e.width,r=e.height,s=e.channels,i=e.depth,o=2===s?"DeviceGray":"DeviceRGB",a=s-1,l=n*r,u=a,c=l*u,h=1*l,d=Math.ceil(c*i/8),f=Math.ceil(h*i/8),p=new Uint8Array(d),m=new Uint8Array(f),g=new DataView(t.buffer),v=new DataView(p.buffer),y=new DataView(m.buffer),b=!1,_=0;_<l;_++){for(var j=_*s,w=0;w<u;w++)lt(v,at(g,j+w,i),_*u+w,i);var x=at(g,j+u,i);x<(1<<i)-1&&(b=!0),lt(y,x,1*_,i)}return{colorSpace:o,colorsPerPixel:a,sMaskBitsPerComponent:b?i:void 0,colorBytes:p,alphaBytes:m,needSMask:b}}(l):function(e){var t=e.data,n=1===e.channels?"DeviceGray":"DeviceRGB";return{colorSpace:n,colorsPerPixel:"DeviceGray"===n?1:3,colorBytes:t instanceof Uint16Array?function(e){for(var t=e.length,n=new Uint8Array(2*t),r=new DataView(n.buffer,n.byteOffset,n.byteLength),s=0;s<t;s++)r.setUint16(2*s,e[s],!1);return n}(t):t,needSMask:!1}}(l);var p,m,g,v=a,y=v.colorSpace,b=v.colorsPerPixel,_=v.sMaskBitsPerComponent,j=v.colorBytes,w=v.alphaBytes,x=v.needSMask,A=v.palette,S=v.mask,N=null;return r!==z.API.image_compression.NONE&&"function"==typeof s.zlibSync?(N=function(e){var t;switch(e){case z.API.image_compression.FAST:t=11;break;case z.API.image_compression.MEDIUM:t=13;break;case z.API.image_compression.SLOW:t=14;break;default:t=12}return t}(r),p=this.decode.FLATE_DECODE,m="/Predictor ".concat(N," /Colors ").concat(b," /BitsPerComponent ").concat(f," /Columns ").concat(u),e=Qe(j,Math.ceil(u*b*f/8),b,f,r),x&&(g=Qe(w,Math.ceil(u*_/8),1,_,r))):(p=void 0,m=void 0,e=j,x&&(g=w)),(this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e))&&(e=this.__addimage__.arrayBufferToBinaryString(e)),(g&&this.__addimage__.isArrayBuffer(g)||this.__addimage__.isArrayBufferView(g))&&(g=this.__addimage__.arrayBufferToBinaryString(g)),{alias:n,data:e,index:t,filter:p,decodeParameters:m,transparency:S,palette:A,sMask:g,predictor:N,width:u,height:c,bitsPerComponent:f,sMaskBitsPerComponent:_,colorSpace:y}}},function(e){e.processGIF89A=function(t,n,r,s){var i=new ct(t),o=i.width,a=i.height,l=[];i.decodeAndBlitFrameRGBA(0,l);var u={data:l,width:o,height:a},c=new dt(100).encode(u,100);return e.processJPEG.call(this,c,n,r,s)},e.processGIF87A=e.processGIF89A}(z.API),ft.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:s,green:r,blue:n,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},ft.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[e]()}catch(e){u.log("bit decode error:"+e)}},ft.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),n=t%4;for(e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,s=0;s<t;s++)for(var i=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+8*s*4,a=0;a<8&&8*s+a<this.width;a++){var l=this.palette[i>>7-a&1];this.data[o+4*a]=l.blue,this.data[o+4*a+1]=l.green,this.data[o+4*a+2]=l.red,this.data[o+4*a+3]=255}0!==n&&(this.pos+=4-n)}},ft.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,s=0;s<e;s++){var i=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+2*s*4,a=i>>4,l=15&i,u=this.palette[a];if(this.data[o]=u.blue,this.data[o+1]=u.green,this.data[o+2]=u.red,this.data[o+3]=255,2*s+1>=this.width)break;u=this.palette[l],this.data[o+4]=u.blue,this.data[o+4+1]=u.green,this.data[o+4+2]=u.red,this.data[o+4+3]=255}0!==t&&(this.pos+=4-t)}},ft.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var s=this.datav.getUint8(this.pos++,!0),i=n*this.width*4+4*r;if(s<this.palette.length){var o=this.palette[s];this.data[i]=o.red,this.data[i+1]=o.green,this.data[i+2]=o.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}0!==e&&(this.pos+=4-e)}},ft.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,s=0;s<this.width;s++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(i&t)/t*255|0,a=(i>>5&t)/t*255|0,l=(i>>10&t)/t*255|0,u=i>>15?255:0,c=r*this.width*4+4*s;this.data[c]=l,this.data[c+1]=a,this.data[c+2]=o,this.data[c+3]=u}this.pos+=e}},ft.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var s=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(o&t)/t*255|0,l=(o>>5&n)/n*255|0,u=(o>>11)/t*255|0,c=s*this.width*4+4*i;this.data[c]=u,this.data[c+1]=l,this.data[c+2]=a,this.data[c+3]=255}this.pos+=e}},ft.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=t*this.width*4+4*n;this.data[o]=i,this.data[o+1]=s,this.data[o+2]=r,this.data[o+3]=255}this.pos+=this.width%4}},ft.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=t*this.width*4+4*n;this.data[a]=i,this.data[a+1]=s,this.data[a+2]=r,this.data[a+3]=o}},ft.prototype.getData=function(){return this.data},function(e){e.processBMP=function(t,n,r,s){var i=new ft(t,!1),o=i.width,a=i.height,l={data:i.getData(),width:o,height:a},u=new dt(100).encode(l,100);return e.processJPEG.call(this,u,n,r,s)}}(z.API),pt.prototype.getData=function(){return this.data},function(e){e.processWEBP=function(t,n,r,s){var i=new pt(t),o=i.width,a=i.height,l={data:i.getData(),width:o,height:a},u=new dt(100).encode(l,100);return e.processJPEG.call(this,u,n,r,s)}}(z.API),z.API.processRGBA=function(e,t,n){for(var r=e.data,s=r.length,i=new Uint8Array(s/4*3),o=new Uint8Array(s/4),a=0,l=0,u=0;u<s;u+=4){var c=r[u],h=r[u+1],d=r[u+2],f=r[u+3];i[a++]=c,i[a++]=h,i[a++]=d,o[l++]=f}var p=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:p,index:t,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},z.API.setLanguage=function(e){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]&&(this.internal.languageSettings.languageCode=e,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Ye=z.API,Xe=Ye.getCharWidthsArray=function(e,t){var n,s,i=(t=t||{}).font||this.internal.getFont(),o=t.fontSize||this.internal.getFontSize(),a=t.charSpace||this.internal.getCharSpace(),l=t.widths?t.widths:i.metadata.Unicode.widths,u=l.fof?l.fof:1,c=t.kerning?t.kerning:i.metadata.Unicode.kerning,h=c.fof?c.fof:1,d=!1!==t.doKerning,f=0,p=e.length,m=0,g=l[0]||u,v=[];for(n=0;n<p;n++)s=e.charCodeAt(n),"function"==typeof i.metadata.widthOfString?v.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(s))+a*(1e3/o)||0)/1e3):(f=d&&"object"===(0,r.default)(c[s])&&!isNaN(parseInt(c[s][m],10))?c[s][m]/h:0,v.push((l[s]||g)/u+f)),m=s;return v},Ze=Ye.getStringUnitWidth=function(e,t){var n=(t=t||{}).fontSize||this.internal.getFontSize(),r=t.font||this.internal.getFont(),s=t.charSpace||this.internal.getCharSpace();return Ye.processArabic&&(e=Ye.processArabic(e)),"function"==typeof r.metadata.widthOfString?r.metadata.widthOfString(e,n,s)/n:Xe.apply(this,arguments).reduce(function(e,t){return e+t},0)},$e=function(e,t,n,r){for(var s=[],i=0,o=e.length,a=0;i!==o&&a+t[i]<n;)a+=t[i],i++;s.push(e.slice(0,i));var l=i;for(a=0;i!==o;)a+t[i]>r&&(s.push(e.slice(l,i)),a=0,l=i),a+=t[i],i++;return l!==i&&s.push(e.slice(l,i)),s},Ke=function(e,t,n){n||(n={});var r,s,i,o,a,l,u,c=[],h=[c],d=n.textIndent||0,f=0,p=0,m=e.split(" "),g=Xe.apply(this,[" ",n])[0];if(l=-1===n.lineIndent?m[0].length+2:n.lineIndent||0){var v=Array(l).join(" "),y=[];m.map(function(e){(e=e.split(/\s*\n/)).length>1?y=y.concat(e.map(function(e,t){return(t&&e.length?"\n":"")+e})):y.push(e[0])}),m=y,l=Ze.apply(this,[v,n])}for(i=0,o=m.length;i<o;i++){var b=0;if(r=m[i],l&&"\n"==r[0]&&(r=r.substr(1),b=1),d+f+(p=(s=Xe.apply(this,[r,n])).reduce(function(e,t){return e+t},0))>t||b){if(p>t){for(a=$e.apply(this,[r,s,t-(d+f),t]),c.push(a.shift()),c=[a.pop()];a.length;)h.push([a.shift()]);p=s.slice(r.length-(c[0]?c[0].length:0)).reduce(function(e,t){return e+t},0)}else c=[r];h.push(c),d=p+l,f=g}else c.push(r),d+=f+p,f=g}return u=l?function(e,t){return(t?v:"")+e.join(" ")}:function(e){return e.join(" ")},h.map(u)},Ye.splitTextToSize=function(e,t,n){var r,s=(n=n||{}).fontSize||this.internal.getFontSize(),i=function(e){if(e.widths&&e.kerning)return{widths:e.widths,kerning:e.kerning};var t=this.internal.getFont(e.fontName,e.fontStyle),n="Unicode";return t.metadata[n]?{widths:t.metadata[n].widths||{0:1},kerning:t.metadata[n].kerning||{}}:{font:t.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var o=1*this.internal.scaleFactor*t/s;i.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/s:0,i.lineIndent=n.lineIndent;var a,l,u=[];for(a=0,l=r.length;a<l;a++)u=u.concat(Ke.apply(this,[r[a],o,i]));return u},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="0123456789abcdef",n="klmnopqrstuvwxyz",s={},i={},o=0;o<16;o++)s[n[o]]=t[o],i[t[o]]=n[o];var a=function(e){return"0x"+parseInt(e,10).toString(16)},l=e.__fontmetrics__.compress=function(e){var t,n,s,o,u=["{"];for(var c in e){if(t=e[c],isNaN(parseInt(c,10))?n="'"+c+"'":(c=parseInt(c,10),n=(n=a(c).slice(2)).slice(0,-1)+i[n.slice(-1)]),"number"==typeof t)t<0?(s=a(t).slice(3),o="-"):(s=a(t).slice(2),o=""),s=o+s.slice(0,-1)+i[s.slice(-1)];else{if("object"!==(0,r.default)(t))throw new Error("Don't know what to do with value type "+(0,r.default)(t)+".");s=l(t)}u.push(n+s)}return u.push("}"),u.join("")},u=e.__fontmetrics__.uncompress=function(e){if("string"!=typeof e)throw new Error("Invalid argument passed to uncompress.");for(var t,n,r,i,o={},a=1,l=o,u=[],c="",h="",d=e.length-1,f=1;f<d;f+=1)"'"==(i=e[f])?t?(r=t.join(""),t=void 0):t=[]:t?t.push(i):"{"==i?(u.push([l,r]),l={},r=void 0):"}"==i?((n=u.pop())[0][n[1]]=l,r=void 0,l=n[0]):"-"==i?a=-1:void 0===r?s.hasOwnProperty(i)?(c+=s[i],r=parseInt(c,16)*a,a=1,c=""):c+=i:s.hasOwnProperty(i)?(h+=s[i],l[r]=parseInt(h,16)*a,a=1,r=void 0,h=""):h+=i;return o},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:u("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},h={Unicode:{Courier:c,"Courier-Bold":c,"Courier-BoldOblique":c,"Courier-Oblique":c,Helvetica:c,"Helvetica-Bold":c,"Helvetica-BoldOblique":c,"Helvetica-Oblique":c,"Times-Roman":c,"Times-Bold":c,"Times-BoldItalic":c,"Times-Italic":c}},d={Unicode:{"Courier-Oblique":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":u("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":u("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":u("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:u("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:u("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":u("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:u("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":u("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":u("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":u("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(e){var t=e.font,n=d.Unicode[t.postScriptName];n&&(t.metadata.Unicode={},t.metadata.Unicode.widths=n.widths,t.metadata.Unicode.kerning=n.kerning);var r=h.Unicode[t.postScriptName];r&&(t.metadata.Unicode.encoding=r,t.encoding=r.codePages[0])}])}(z.API),function(e){var t=function(e){for(var t=e.length,n=new Uint8Array(t),r=0;r<t;r++)n[r]=e.charCodeAt(r);return n};e.API.events.push(["addFont",function(n){var r=void 0,s=n.font,i=n.instance;if(!s.isStandardFont){if(void 0===i)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+s.postScriptName+"').");if("string"!=typeof(r=!1===i.existsFileInVFS(s.postScriptName)?i.loadFile(s.postScriptName):i.getFileFromVFS(s.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+s.postScriptName+"').");!function(n,r){r=/^\x00\x01\x00\x00/.test(r)?t(r):t(m(r)),n.metadata=e.API.TTFFont.open(r),n.metadata.Unicode=n.metadata.Unicode||{encoding:{},kerning:{},widths:[]},n.metadata.glyIdsUsed=[0]}(s,r)}}])}(z),z.API.addSvgAsImage=function(e,t,r,s,i,o,l,c){if(isNaN(t)||isNaN(r))throw u.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(s)||isNaN(i))throw u.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var h=document.createElement("canvas");h.width=s,h.height=i;var d=h.getContext("2d");d.fillStyle="#fff",d.fillRect(0,0,h.width,h.height);var f={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},p=this;return(a.canvg?Promise.resolve(a.canvg):Promise.resolve().then(n.bind(n,"./node_modules/canvg/lib/index.es.js"))).catch(function(e){return Promise.reject(new Error("Could not load canvg: "+e))}).then(function(e){return e.default?e.default:e}).then(function(t){return t.fromString(d,e,f)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(e){return e.render(f)}).then(function(){p.addImage(h.toDataURL("image/jpeg",1),t,r,s,i,l,c)})},z.API.putTotalPages=function(e){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var s=0;s<this.internal.pages[r].length;s++)this.internal.pages[r][s]=this.internal.pages[r][s].replace(t,n);return this},z.API.viewerPreferences=function(e,t){var n;e=e||{},t=t||!1;var s,i,o,a={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},l=Object.keys(a),u=[],c=0,h=0,d=0;function f(e,t){var n,r=!1;for(n=0;n<e.length;n+=1)e[n]===t&&(r=!0);return r}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(a)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===e||!0===t){var p=l.length;for(d=0;d<p;d+=1)n[l[d]].value=n[l[d]].defaultValue,n[l[d]].explicitSet=!1}if("object"===(0,r.default)(e))for(i in e)if(o=e[i],f(l,i)&&void 0!==o){if("boolean"===n[i].type&&"boolean"==typeof o)n[i].value=o;else if("name"===n[i].type&&f(n[i].valueSet,o))n[i].value=o;else if("integer"===n[i].type&&Number.isInteger(o))n[i].value=o;else if("array"===n[i].type){for(c=0;c<o.length;c+=1)if(s=!0,1===o[c].length&&"number"==typeof o[c][0])u.push(String(o[c]-1));else if(o[c].length>1){for(h=0;h<o[c].length;h+=1)"number"!=typeof o[c][h]&&(s=!1);!0===s&&u.push([o[c][0]-1,o[c][1]-1].join(" "))}n[i].value="["+u.join(" ")+"]"}else n[i].value=n[i].defaultValue;n[i].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){var e,t=[];for(e in n)!0===n[e].explicitSet&&("name"===n[e].type?t.push("/"+e+" /"+n[e].value):t.push("/"+e+" "+n[e].value));0!==t.length&&this.internal.write("/ViewerPreferences\n<<\n"+t.join("\n")+"\n>>")}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},function(e){var t=function(){var e='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',t=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),n=unescape(encodeURIComponent(e)),r=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),s=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),i=unescape(encodeURIComponent("</x:xmpmeta>")),o=n.length+r.length+s.length+t.length+i.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+o+" >>"),this.internal.write("stream"),this.internal.write(t+n+r+s+i),this.internal.write("endstream"),this.internal.write("endobj")},n=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};e.addMetadata=function(e,r){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:e,namespaceuri:r||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",n),this.internal.events.subscribe("postPutResources",t)),this}}(z.API),function(e){var t=e.API,n=t.pdfEscape16=function(e,t){for(var n,r=t.metadata.Unicode.widths,s=["","0","00","000","0000"],i=[""],o=0,a=e.length;o<a;++o){if(n=t.metadata.characterToGlyph(e.charCodeAt(o)),t.metadata.glyIdsUsed.push(n),t.metadata.toUnicode[n]=e.charCodeAt(o),-1==r.indexOf(n)&&(r.push(n),r.push([parseInt(t.metadata.widthOfGlyph(n),10)])),"0"==n)return i.join("");n=n.toString(16),i.push(s[4-n.length],n)}return i.join("")},r=function(e){var t,n,r,s,i,o,a;for(i="/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><ffff>\nendcodespacerange",r=[],o=0,a=(n=Object.keys(e).sort(function(e,t){return e-t})).length;o<a;o++)t=n[o],r.length>=100&&(i+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar",r=[]),void 0!==e[t]&&null!==e[t]&&"function"==typeof e[t].toString&&(s=("0000"+e[t].toString(16)).slice(-4),t=("0000"+(+t).toString(16)).slice(-4),r.push("<"+t+"><"+s+">"));return r.length&&(i+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),i+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};t.events.push(["putFont",function(t){!function(t){var n=t.font,s=t.out,i=t.newObject,o=t.putStream;if(n.metadata instanceof e.API.TTFFont&&"Identity-H"===n.encoding){for(var a=n.metadata.Unicode.widths,l=n.metadata.subset.encode(n.metadata.glyIdsUsed,1),u="",c=0;c<l.length;c++)u+=String.fromCharCode(l[c]);var h=i();o({data:u,addLength1:!0,objectId:h}),s("endobj");var d=i();o({data:r(n.metadata.toUnicode),addLength1:!0,objectId:d}),s("endobj");var f=i();s("<<"),s("/Type /FontDescriptor"),s("/FontName /"+I(n.fontName)),s("/FontFile2 "+h+" 0 R"),s("/FontBBox "+e.API.PDFObject.convert(n.metadata.bbox)),s("/Flags "+n.metadata.flags),s("/StemV "+n.metadata.stemV),s("/ItalicAngle "+n.metadata.italicAngle),s("/Ascent "+n.metadata.ascender),s("/Descent "+n.metadata.decender),s("/CapHeight "+n.metadata.capHeight),s(">>"),s("endobj");var p=i();s("<<"),s("/Type /Font"),s("/BaseFont /"+I(n.fontName)),s("/FontDescriptor "+f+" 0 R"),s("/W "+e.API.PDFObject.convert(a)),s("/CIDToGIDMap /Identity"),s("/DW 1000"),s("/Subtype /CIDFontType2"),s("/CIDSystemInfo"),s("<<"),s("/Supplement 0"),s("/Registry (Adobe)"),s("/Ordering ("+n.encoding+")"),s(">>"),s(">>"),s("endobj"),n.objectNumber=i(),s("<<"),s("/Type /Font"),s("/Subtype /Type0"),s("/ToUnicode "+d+" 0 R"),s("/BaseFont /"+I(n.fontName)),s("/Encoding /"+n.encoding),s("/DescendantFonts ["+p+" 0 R]"),s(">>"),s("endobj"),n.isAlreadyPutted=!0}}(t)}]),t.events.push(["putFont",function(t){!function(t){var n=t.font,s=t.out,i=t.newObject,o=t.putStream;if(n.metadata instanceof e.API.TTFFont&&"WinAnsiEncoding"===n.encoding){for(var a=n.metadata.rawData,l="",u=0;u<a.length;u++)l+=String.fromCharCode(a[u]);var c=i();o({data:l,addLength1:!0,objectId:c}),s("endobj");var h=i();o({data:r(n.metadata.toUnicode),addLength1:!0,objectId:h}),s("endobj");var d=i();s("<<"),s("/Descent "+n.metadata.decender),s("/CapHeight "+n.metadata.capHeight),s("/StemV "+n.metadata.stemV),s("/Type /FontDescriptor"),s("/FontFile2 "+c+" 0 R"),s("/Flags 96"),s("/FontBBox "+e.API.PDFObject.convert(n.metadata.bbox)),s("/FontName /"+I(n.fontName)),s("/ItalicAngle "+n.metadata.italicAngle),s("/Ascent "+n.metadata.ascender),s(">>"),s("endobj"),n.objectNumber=i();for(var f=0;f<n.metadata.hmtx.widths.length;f++)n.metadata.hmtx.widths[f]=parseInt(n.metadata.hmtx.widths[f]*(1e3/n.metadata.head.unitsPerEm));s("<</Subtype/TrueType/Type/Font/ToUnicode "+h+" 0 R/BaseFont/"+I(n.fontName)+"/FontDescriptor "+d+" 0 R/Encoding/"+n.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(n.metadata.hmtx.widths)+">>"),s("endobj"),n.isAlreadyPutted=!0}}(t)}]);var s=function(e){var t,r=e.text||"",s=e.x,i=e.y,o=e.options||{},a=e.mutex||{},l=a.pdfEscape,u=a.activeFontKey,c=a.fonts,h=u,d="",f=0,p="",m=c[h].encoding;if("Identity-H"!==c[h].encoding)return{text:r,x:s,y:i,options:o,mutex:a};for(p=r,h=u,Array.isArray(r)&&(p=r[0]),f=0;f<p.length;f+=1)c[h].metadata.hasOwnProperty("cmap")&&(t=c[h].metadata.cmap.unicode.codeMap[p[f].charCodeAt(0)]),t||p[f].charCodeAt(0)<256&&c[h].metadata.hasOwnProperty("Unicode")?d+=p[f]:d+="";var g="";return parseInt(h.slice(1))<14||"WinAnsiEncoding"===m?g=l(d,h).split("").map(function(e){return e.charCodeAt(0).toString(16)}).join(""):"Identity-H"===m&&(g=n(d,c[h])),a.isHex=!0,{text:g,x:s,y:i,options:o,mutex:a}};t.events.push(["postProcessText",function(e){var t=e.text||"",n=[],r={text:t,x:e.x,y:e.y,options:e.options,mutex:e.mutex};if(Array.isArray(t)){var i=0;for(i=0;i<t.length;i+=1)Array.isArray(t[i])&&3===t[i].length?n.push([s(Object.assign({},r,{text:t[i][0]})).text,t[i][1],t[i][2]]):n.push(s(Object.assign({},r,{text:t[i]})).text);e.text=n}else e.text=s(Object.assign({},r,{text:t})).text}])}(z),function(e){var t=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(e){return t.call(this),void 0!==this.internal.vFS[e]},e.addFileToVFS=function(e,n){return t.call(this),this.internal.vFS[e]=n,this},e.getFileFromVFS=function(e){return t.call(this),void 0!==this.internal.vFS[e]?this.internal.vFS[e]:null}}(z.API),function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(e){var n,r,s,i,o,a,l,u=t,c=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],h=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],d={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},f={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},p=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],m=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),g=!1,v=0;this.__bidiEngine__={};var y=function(e){var t=e.charCodeAt(),n=t>>8,r=f[n];return void 0!==r?u[256*r+(255&t)]:252===n||253===n?"AL":m.test(n)?"L":8===n?"R":"N"},b=function(e){for(var t,n=0;n<e.length;n++){if("L"===(t=y(e.charAt(n))))return!1;if("R"===t)return!0}return!1},_=function(e,t,o,a){var l,u,c,h,d=t[a];switch(d){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":g=!1;break;case"N":case"AN":break;case"EN":g&&(d="AN");break;case"AL":g=!0,d="R";break;case"WS":case"BN":d="N";break;case"CS":a<1||a+1>=t.length||"EN"!==(l=o[a-1])&&"AN"!==l||"EN"!==(u=t[a+1])&&"AN"!==u?d="N":g&&(u="AN"),d=u===l?u:"N";break;case"ES":d="EN"===(l=a>0?o[a-1]:"B")&&a+1<t.length&&"EN"===t[a+1]?"EN":"N";break;case"ET":if(a>0&&"EN"===o[a-1]){d="EN";break}if(g){d="N";break}for(c=a+1,h=t.length;c<h&&"ET"===t[c];)c++;d=c<h&&"EN"===t[c]?"EN":"N";break;case"NSM":if(s&&!i){for(h=t.length,c=a+1;c<h&&"NSM"===t[c];)c++;if(c<h){var f=e[a],p=f>=1425&&f<=2303||64286===f;if(l=t[c],p&&("R"===l||"AL"===l)){d="R";break}}}d=a<1||"B"===(l=t[a-1])?"N":o[a-1];break;case"B":g=!1,n=!0,d=v;break;case"S":r=!0,d="N"}return d},j=function(e,t,n){var r=e.split("");return n&&w(r,n,{hiLevel:v}),r.reverse(),t&&t.reverse(),r.join("")},w=function(e,t,s){var i,o,a,l,u,f=-1,p=e.length,m=0,b=[],j=v?h:c,w=[];for(g=!1,n=!1,r=!1,o=0;o<p;o++)w[o]=y(e[o]);for(a=0;a<p;a++){if(u=m,b[a]=_(e,w,b,a),i=240&(m=j[u][d[b[a]]]),m&=15,t[a]=l=j[m][5],i>0)if(16===i){for(o=f;o<a;o++)t[o]=1;f=-1}else f=-1;if(j[m][6])-1===f&&(f=a);else if(f>-1){for(o=f;o<a;o++)t[o]=l;f=-1}"B"===w[a]&&(t[a]=0),s.hiLevel|=l}r&&function(e,t,n){for(var r=0;r<n;r++)if("S"===e[r]){t[r]=v;for(var s=r-1;s>=0&&"WS"===e[s];s--)t[s]=v}}(w,t,p)},x=function(e,t,r,s,i){if(!(i.hiLevel<e)){if(1===e&&1===v&&!n)return t.reverse(),void(r&&r.reverse());for(var o,a,l,u,c=t.length,h=0;h<c;){if(s[h]>=e){for(l=h+1;l<c&&s[l]>=e;)l++;for(u=h,a=l-1;u<a;u++,a--)o=t[u],t[u]=t[a],t[a]=o,r&&(o=r[u],r[u]=r[a],r[a]=o);h=l}h++}}},A=function(e,t,n){var r=e.split(""),s={hiLevel:v};return n||(n=[]),w(r,n,s),function(e,t,n){if(0!==n.hiLevel&&l)for(var r,s=0;s<e.length;s++)1===t[s]&&(r=p.indexOf(e[s]))>=0&&(e[s]=p[r+1])}(r,n,s),x(2,r,t,n,s),x(1,r,t,n,s),r.join("")};return this.__bidiEngine__.doBidiReorder=function(e,t,n){if(function(e,t){if(t)for(var n=0;n<e.length;n++)t[n]=n;void 0===i&&(i=b(e)),void 0===a&&(a=b(e))}(e,t),s||!o||a)if(s&&o&&i^a)v=i?1:0,e=j(e,t,n);else if(!s&&o&&a)v=i?1:0,e=A(e,t,n),e=j(e,t);else if(!s||i||o||a){if(s&&!o&&i^a)e=j(e,t),i?(v=0,e=A(e,t,n)):(v=1,e=A(e,t,n),e=j(e,t));else if(s&&i&&!o&&a)v=1,e=A(e,t,n),e=j(e,t);else if(!s&&!o&&i^a){var r=l;i?(v=1,e=A(e,t,n),v=0,l=!1,e=A(e,t,n),l=r):(v=0,e=A(e,t,n),e=j(e,t),v=1,l=!1,e=A(e,t,n),l=r,e=j(e,t))}}else v=0,e=A(e,t,n);else v=i?1:0,e=A(e,t,n);return e},this.__bidiEngine__.setOptions=function(e){e&&(s=e.isInputVisual,o=e.isOutputVisual,i=e.isInputRtl,a=e.isOutputRtl,l=e.isSymmetricSwapping)},this.__bidiEngine__.setOptions(e),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(e){var t=e.text;e.x,e.y;var r=e.options||{};e.mutex,r.lang;var s=[];if(r.isInputVisual="boolean"!=typeof r.isInputVisual||r.isInputVisual,n.setOptions(r),"[object Array]"===Object.prototype.toString.call(t)){var i=0;for(s=[],i=0;i<t.length;i+=1)"[object Array]"===Object.prototype.toString.call(t[i])?s.push([n.doBidiReorder(t[i][0]),t[i][1],t[i][2]]):s.push([n.doBidiReorder(t[i])]);e.text=s}else e.text=n.doBidiReorder(t);n.setOptions({isInputVisual:!0})}])}(z),z.API.TTFFont=function(){function e(e){var t;if(this.rawData=e,t=this.contents=new gt(e),this.contents.pos=4,"ttcf"===t.readString(4))throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new Mt(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new vt(this.contents),this.head=new _t(this),this.name=new Lt(this),this.cmap=new wt(this),this.toUnicode={},this.hhea=new xt(this),this.maxp=new kt(this),this.hmtx=new Pt(this),this.post=new St(this),this.os2=new At(this),this.loca=new It(this),this.glyf=new Ct(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var e,t,n,r,s;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var t,n,r,s;for(s=[],t=0,n=(r=this.bbox).length;t<n;t++)e=r[t],s.push(Math.round(e*this.scaleFactor));return s}.call(this),this.stemV=0,this.post.exists?(n=255&(r=this.post.italic_angle),32768&(t=r>>16)&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(s=this.familyClass)||2===s||3===s||4===s||5===s||7===s,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(e){var t;return(null!=(t=this.cmap.unicode)?t.codeMap[e]:void 0)||0},e.prototype.widthOfGlyph=function(e){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*t},e.prototype.widthOfString=function(e,t,n){var r,s,i,o;for(i=0,s=0,o=(e=""+e).length;0<=o?s<o:s>o;s=0<=o?++s:--s)r=e.charCodeAt(s),i+=this.widthOfGlyph(this.characterToGlyph(r))+n*(1e3/t)||0;return i*(t/1e3)},e.prototype.lineHeight=function(e,t){var n;return null==t&&(t=!1),n=t?this.lineGap:0,(this.ascender+n-this.decender)/1e3*e},e}();var mt,gt=function(){function e(e){this.data=null!=e?e:[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(e){return this.data[this.pos++]=e},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},e.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},e.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},e.prototype.readString=function(e){var t,n;for(n=[],t=0;0<=e?t<e:t>e;t=0<=e?++t:--t)n[t]=String.fromCharCode(this.readByte());return n.join("")},e.prototype.writeString=function(e){var t,n,r;for(r=[],t=0,n=e.length;0<=n?t<n:t>n;t=0<=n?++t:--t)r.push(this.writeByte(e.charCodeAt(t)));return r},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(e){return this.writeInt16(e)},e.prototype.readLongLong=function(){var e,t,n,r,s,i,o,a;return e=this.readByte(),t=this.readByte(),n=this.readByte(),r=this.readByte(),s=this.readByte(),i=this.readByte(),o=this.readByte(),a=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^t)+1099511627776*(255^n)+4294967296*(255^r)+16777216*(255^s)+65536*(255^i)+256*(255^o)+(255^a)+1):72057594037927940*e+281474976710656*t+1099511627776*n+4294967296*r+16777216*s+65536*i+256*o+a},e.prototype.writeLongLong=function(e){var t,n;return t=Math.floor(e/4294967296),n=4294967295&e,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(e){return this.writeInt32(e)},e.prototype.read=function(e){var t,n;for(t=[],n=0;0<=e?n<e:n>e;n=0<=e?++n:--n)t.push(this.readByte());return t},e.prototype.write=function(e){var t,n,r,s;for(s=[],n=0,r=e.length;n<r;n++)t=e[n],s.push(this.writeByte(t));return s},e}(),vt=function(){var e;function t(e){var t,n,r;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},n=0,r=this.tableCount;0<=r?n<r:n>r;n=0<=r?++n:--n)t={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[t.tag]=t}return t.prototype.encode=function(t){var n,r,s,i,o,a,l,u,c,h,d,f,p;for(p in d=Object.keys(t).length,a=Math.log(2),c=16*Math.floor(Math.log(d)/a),i=Math.floor(c/a),u=16*d-c,(r=new gt).writeInt(this.scalarType),r.writeShort(d),r.writeShort(c),r.writeShort(i),r.writeShort(u),s=16*d,l=r.pos+s,o=null,f=[],t)for(h=t[p],r.writeString(p),r.writeInt(e(h)),r.writeInt(l),r.writeInt(h.length),f=f.concat(h),"head"===p&&(o=l),l+=h.length;l%4;)f.push(0),l++;return r.write(f),n=2981146554-e(r.data),r.pos=o+8,r.writeUInt32(n),r.data},e=function(e){var t,n,r,s;for(e=Et.call(e);e.length%4;)e.push(0);for(r=new gt(e),n=0,t=0,s=e.length;t<s;t=t+=4)n+=r.readUInt32();return 4294967295&n},t}(),yt={}.hasOwnProperty,bt=function(e,t){for(var n in t)yt.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e};mt=function(){function e(e){var t;this.file=e,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var _t=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return bt(e,mt),e.prototype.tag="head",e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.revision=e.readInt(),this.checkSumAdjustment=e.readInt(),this.magicNumber=e.readInt(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.readLongLong(),this.modified=e.readLongLong(),this.xMin=e.readShort(),this.yMin=e.readShort(),this.xMax=e.readShort(),this.yMax=e.readShort(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort(),this.indexToLocFormat=e.readShort(),this.glyphDataFormat=e.readShort()},e.prototype.encode=function(e){var t;return(t=new gt).writeInt(this.version),t.writeInt(this.revision),t.writeInt(this.checkSumAdjustment),t.writeInt(this.magicNumber),t.writeShort(this.flags),t.writeShort(this.unitsPerEm),t.writeLongLong(this.created),t.writeLongLong(this.modified),t.writeShort(this.xMin),t.writeShort(this.yMin),t.writeShort(this.xMax),t.writeShort(this.yMax),t.writeShort(this.macStyle),t.writeShort(this.lowestRecPPEM),t.writeShort(this.fontDirectionHint),t.writeShort(e),t.writeShort(this.glyphDataFormat),t.data},e}(),jt=function(){function e(e,t){var n,r,s,i,o,a,l,u,c,h,d,f,p,m,g,v,y;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=t+e.readInt(),c=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(a=0;a<256;++a)this.codeMap[a]=e.readByte();break;case 4:for(d=e.readUInt16(),h=d/2,e.pos+=6,s=function(){var t,n;for(n=[],a=t=0;0<=h?t<h:t>h;a=0<=h?++t:--t)n.push(e.readUInt16());return n}(),e.pos+=2,p=function(){var t,n;for(n=[],a=t=0;0<=h?t<h:t>h;a=0<=h?++t:--t)n.push(e.readUInt16());return n}(),l=function(){var t,n;for(n=[],a=t=0;0<=h?t<h:t>h;a=0<=h?++t:--t)n.push(e.readUInt16());return n}(),u=function(){var t,n;for(n=[],a=t=0;0<=h?t<h:t>h;a=0<=h?++t:--t)n.push(e.readUInt16());return n}(),r=(this.length-e.pos+this.offset)/2,o=function(){var t,n;for(n=[],a=t=0;0<=r?t<r:t>r;a=0<=r?++t:--t)n.push(e.readUInt16());return n}(),a=g=0,y=s.length;g<y;a=++g)for(m=s[a],n=v=f=p[a];f<=m?v<=m:v>=m;n=f<=m?++v:--v)0===u[a]?i=n+l[a]:0!==(i=o[u[a]/2+(n-f)-(h-a)]||0)&&(i+=l[a]),this.codeMap[n]=65535&i}e.pos=c}return e.encode=function(e,t){var n,r,s,i,o,a,l,u,c,h,d,f,p,m,g,v,y,b,_,j,w,x,A,S,N,L,k,P,E,C,O,T,I,M,R,F,D,B,z,U,q,V,H,W,G,Y;switch(P=new gt,i=Object.keys(e).sort(function(e,t){return e-t}),t){case"macroman":for(p=0,m=function(){var e=[];for(f=0;f<256;++f)e.push(0);return e}(),v={0:0},s={},E=0,I=i.length;E<I;E++)null==v[H=e[r=i[E]]]&&(v[H]=++p),s[r]={old:e[r],new:v[e[r]]},m[r]=v[e[r]];return P.writeUInt16(1),P.writeUInt16(0),P.writeUInt32(12),P.writeUInt16(0),P.writeUInt16(262),P.writeUInt16(0),P.write(m),{charMap:s,subtable:P.data,maxGlyphID:p+1};case"unicode":for(L=[],c=[],y=0,v={},n={},g=l=null,C=0,M=i.length;C<M;C++)null==v[_=e[r=i[C]]]&&(v[_]=++y),n[r]={old:_,new:v[_]},o=v[_]-r,null!=g&&o===l||(g&&c.push(g),L.push(r),l=o),g=r;for(g&&c.push(g),c.push(65535),L.push(65535),S=2*(A=L.length),x=2*Math.pow(Math.log(A)/Math.LN2,2),h=Math.log(x/2)/Math.LN2,w=2*A-x,a=[],j=[],d=[],f=O=0,R=L.length;O<R;f=++O){if(N=L[f],u=c[f],65535===N){a.push(0),j.push(0);break}if(N-(k=n[N].new)>=32768)for(a.push(0),j.push(2*(d.length+A-f)),r=T=N;N<=u?T<=u:T>=u;r=N<=u?++T:--T)d.push(n[r].new);else a.push(k-N),j.push(0)}for(P.writeUInt16(3),P.writeUInt16(1),P.writeUInt32(12),P.writeUInt16(4),P.writeUInt16(16+8*A+2*d.length),P.writeUInt16(0),P.writeUInt16(S),P.writeUInt16(x),P.writeUInt16(h),P.writeUInt16(w),q=0,F=c.length;q<F;q++)r=c[q],P.writeUInt16(r);for(P.writeUInt16(0),V=0,D=L.length;V<D;V++)r=L[V],P.writeUInt16(r);for(W=0,B=a.length;W<B;W++)o=a[W],P.writeUInt16(o);for(G=0,z=j.length;G<z;G++)b=j[G],P.writeUInt16(b);for(Y=0,U=d.length;Y<U;Y++)p=d[Y],P.writeUInt16(p);return{charMap:n,subtable:P.data,maxGlyphID:y+1}}},e}(),wt=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return bt(e,mt),e.prototype.tag="cmap",e.prototype.parse=function(e){var t,n,r;for(e.pos=this.offset,this.version=e.readUInt16(),r=e.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=r?n<r:n>r;n=0<=r?++n:--n)t=new jt(e,this.offset),this.tables.push(t),t.isUnicode&&null==this.unicode&&(this.unicode=t);return!0},e.encode=function(e,t){var n,r;return null==t&&(t="macroman"),n=jt.encode(e,t),(r=new gt).writeUInt16(0),r.writeUInt16(1),n.table=r.data.concat(n.subtable),n},e}(),xt=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return bt(e,mt),e.prototype.tag="hhea",e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.ascender=e.readShort(),this.decender=e.readShort(),this.lineGap=e.readShort(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort(),this.minRightSideBearing=e.readShort(),this.xMaxExtent=e.readShort(),this.caretSlopeRise=e.readShort(),this.caretSlopeRun=e.readShort(),this.caretOffset=e.readShort(),e.pos+=8,this.metricDataFormat=e.readShort(),this.numberOfMetrics=e.readUInt16()},e}(),At=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return bt(e,mt),e.prototype.tag="OS/2",e.prototype.parse=function(e){if(e.pos=this.offset,this.version=e.readUInt16(),this.averageCharWidth=e.readShort(),this.weightClass=e.readUInt16(),this.widthClass=e.readUInt16(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort(),this.ySubscriptYSize=e.readShort(),this.ySubscriptXOffset=e.readShort(),this.ySubscriptYOffset=e.readShort(),this.ySuperscriptXSize=e.readShort(),this.ySuperscriptYSize=e.readShort(),this.ySuperscriptXOffset=e.readShort(),this.ySuperscriptYOffset=e.readShort(),this.yStrikeoutSize=e.readShort(),this.yStrikeoutPosition=e.readShort(),this.familyClass=e.readShort(),this.panose=function(){var t,n;for(n=[],t=0;t<10;++t)n.push(e.readByte());return n}(),this.charRange=function(){var t,n;for(n=[],t=0;t<4;++t)n.push(e.readInt());return n}(),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),this.version>0&&(this.ascent=e.readShort(),this.descent=e.readShort(),this.lineGap=e.readShort(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=function(){var t,n;for(n=[],t=0;t<2;t=++t)n.push(e.readInt());return n}(),this.version>1))return this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()},e}(),St=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return bt(e,mt),e.prototype.tag="post",e.prototype.parse=function(e){var t,n,r;switch(e.pos=this.offset,this.format=e.readInt(),this.italicAngle=e.readInt(),this.underlinePosition=e.readShort(),this.underlineThickness=e.readShort(),this.isFixedPitch=e.readInt(),this.minMemType42=e.readInt(),this.maxMemType42=e.readInt(),this.minMemType1=e.readInt(),this.maxMemType1=e.readInt(),this.format){case 65536:case 196608:break;case 131072:var s;for(n=e.readUInt16(),this.glyphNameIndex=[],s=0;0<=n?s<n:s>n;s=0<=n?++s:--s)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],r=[];e.pos<this.offset+this.length;)t=e.readByte(),r.push(this.names.push(e.readString(t)));return r;case 151552:return n=e.readUInt16(),this.offsets=e.read(n);case 262144:return this.map=function(){var t,n,r;for(r=[],s=t=0,n=this.file.maxp.numGlyphs;0<=n?t<n:t>n;s=0<=n?++t:--t)r.push(e.readUInt32());return r}.call(this)}},e}(),Nt=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},Lt=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return bt(e,mt),e.prototype.tag="name",e.prototype.parse=function(e){var t,n,r,s,i,o,a,l,u,c,h;for(e.pos=this.offset,e.readShort(),t=e.readShort(),o=e.readShort(),n=[],s=0;0<=t?s<t:s>t;s=0<=t?++s:--s)n.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+o+e.readShort()});for(a={},s=u=0,c=n.length;u<c;s=++u)r=n[s],e.pos=r.offset,l=e.readString(r.length),i=new Nt(l,r),null==a[h=r.nameID]&&(a[h]=[]),a[r.nameID].push(i);this.strings=a,this.copyright=a[0],this.fontFamily=a[1],this.fontSubfamily=a[2],this.uniqueSubfamily=a[3],this.fontName=a[4],this.version=a[5];try{this.postscriptName=a[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(e){this.postscriptName=a[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=a[7],this.manufacturer=a[8],this.designer=a[9],this.description=a[10],this.vendorUrl=a[11],this.designerUrl=a[12],this.license=a[13],this.licenseUrl=a[14],this.preferredFamily=a[15],this.preferredSubfamily=a[17],this.compatibleFull=a[18],this.sampleText=a[19]},e}(),kt=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return bt(e,mt),e.prototype.tag="maxp",e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.numGlyphs=e.readUInt16(),this.maxPoints=e.readUInt16(),this.maxContours=e.readUInt16(),this.maxCompositePoints=e.readUInt16(),this.maxComponentContours=e.readUInt16(),this.maxZones=e.readUInt16(),this.maxTwilightPoints=e.readUInt16(),this.maxStorage=e.readUInt16(),this.maxFunctionDefs=e.readUInt16(),this.maxInstructionDefs=e.readUInt16(),this.maxStackElements=e.readUInt16(),this.maxSizeOfInstructions=e.readUInt16(),this.maxComponentElements=e.readUInt16(),this.maxComponentDepth=e.readUInt16()},e}(),Pt=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return bt(e,mt),e.prototype.tag="hmtx",e.prototype.parse=function(e){var t,n,r,s,i,o,a;for(e.pos=this.offset,this.metrics=[],t=0,o=this.file.hhea.numberOfMetrics;0<=o?t<o:t>o;t=0<=o?++t:--t)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var n,s;for(s=[],t=n=0;0<=r?n<r:n>r;t=0<=r?++n:--n)s.push(e.readInt16());return s}(),this.widths=function(){var e,t,n,r;for(r=[],e=0,t=(n=this.metrics).length;e<t;e++)s=n[e],r.push(s.advance);return r}.call(this),n=this.widths[this.widths.length-1],a=[],t=i=0;0<=r?i<r:i>r;t=0<=r?++i:--i)a.push(this.widths.push(n));return a},e.prototype.forGlyph=function(e){return e in this.metrics?this.metrics[e]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[e-this.metrics.length]}},e}(),Et=[].slice,Ct=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return bt(e,mt),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(e){var t,n,r,s,i,o,a,l,u,c;return e in this.cache?this.cache[e]:(s=this.file.loca,t=this.file.contents,n=s.indexOf(e),0===(r=s.lengthOf(e))?this.cache[e]=null:(t.pos=this.offset+n,i=(o=new gt(t.read(r))).readShort(),l=o.readShort(),c=o.readShort(),a=o.readShort(),u=o.readShort(),this.cache[e]=-1===i?new Tt(o,l,c,a,u):new Ot(o,i,l,c,a,u),this.cache[e]))},e.prototype.encode=function(e,t,n){var r,s,i,o,a;for(i=[],s=[],o=0,a=t.length;o<a;o++)r=e[t[o]],s.push(i.length),r&&(i=i.concat(r.encode(n)));return s.push(i.length),{table:i,offsets:s}},e}(),Ot=function(){function e(e,t,n,r,s,i){this.raw=e,this.numberOfContours=t,this.xMin=n,this.yMin=r,this.xMax=s,this.yMax=i,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),Tt=function(){function e(e,t,n,r,s){var i,o;for(this.raw=e,this.xMin=t,this.yMin=n,this.xMax=r,this.yMax=s,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],i=this.raw;o=i.readShort(),this.glyphOffsets.push(i.pos),this.glyphIDs.push(i.readUInt16()),32&o;)i.pos+=1&o?4:2,128&o?i.pos+=8:64&o?i.pos+=4:8&o&&(i.pos+=2)}return e.prototype.encode=function(){var e,t,n;for(t=new gt(Et.call(this.raw.data)),e=0,n=this.glyphIDs.length;e<n;++e)t.pos=this.glyphOffsets[e];return t.data},e}(),It=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return bt(e,mt),e.prototype.tag="loca",e.prototype.parse=function(e){var t,n;return e.pos=this.offset,t=this.file.head.indexToLocFormat,this.offsets=0===t?function(){var t,r;for(r=[],n=0,t=this.length;n<t;n+=2)r.push(2*e.readUInt16());return r}.call(this):function(){var t,r;for(r=[],n=0,t=this.length;n<t;n+=4)r.push(e.readUInt32());return r}.call(this)},e.prototype.indexOf=function(e){return this.offsets[e]},e.prototype.lengthOf=function(e){return this.offsets[e+1]-this.offsets[e]},e.prototype.encode=function(e,t){for(var n=new Uint32Array(this.offsets.length),r=0,s=0,i=0;i<n.length;++i)if(n[i]=r,s<t.length&&t[s]==i){++s,n[i]=r;var o=this.offsets[i],a=this.offsets[i+1]-o;a>0&&(r+=a)}for(var l=new Array(4*n.length),u=0;u<n.length;++u)l[4*u+3]=255&n[u],l[4*u+2]=(65280&n[u])>>8,l[4*u+1]=(16711680&n[u])>>16,l[4*u]=(4278190080&n[u])>>24;return l},e}(),Mt=function(){function e(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var e,t,n,r,s;for(t in r=this.font.cmap.tables[0].codeMap,e={},s=this.subset)n=s[t],e[t]=r[n];return e},e.prototype.glyphsFor=function(e){var t,n,r,s,i,o,a;for(r={},i=0,o=e.length;i<o;i++)r[s=e[i]]=this.font.glyf.glyphFor(s);for(s in t=[],r)(null!=(n=r[s])?n.compound:void 0)&&t.push.apply(t,n.glyphIDs);if(t.length>0)for(s in a=this.glyphsFor(t))n=a[s],r[s]=n;return r},e.prototype.encode=function(e,t){var n,r,s,i,o,a,l,u,c,h,d,f,p,m,g;for(r in n=wt.encode(this.generateCmap(),"unicode"),i=this.glyphsFor(e),d={0:0},g=n.charMap)d[(a=g[r]).old]=a.new;for(f in h=n.maxGlyphID,i)f in d||(d[f]=h++);return u=function(e){var t,n;for(t in n={},e)n[e[t]]=t;return n}(d),c=Object.keys(u).sort(function(e,t){return e-t}),p=function(){var e,t,n;for(n=[],e=0,t=c.length;e<t;e++)o=c[e],n.push(u[o]);return n}(),s=this.font.glyf.encode(i,p,d),l=this.font.loca.encode(s.offsets,p),m={cmap:this.font.cmap.raw(),glyf:s.table,loca:l,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(t)},this.font.os2.exists&&(m["OS/2"]=this.font.os2.raw()),this.font.directory.encode(m)},e}();z.API.PDFObject=function(){var e;function t(){}return e=function(e,t){return(Array(t+1).join("0")+e).slice(-t)},t.convert=function(n){var r,s,i,o;if(Array.isArray(n))return"["+function(){var e,s,i;for(i=[],e=0,s=n.length;e<s;e++)r=n[e],i.push(t.convert(r));return i}().join(" ")+"]";if("string"==typeof n)return"/"+n;if(null!=n?n.isString:void 0)return"("+n+")";if(n instanceof Date)return"(D:"+e(n.getUTCFullYear(),4)+e(n.getUTCMonth(),2)+e(n.getUTCDate(),2)+e(n.getUTCHours(),2)+e(n.getUTCMinutes(),2)+e(n.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(n)){for(s in i=["<<"],n)o=n[s],i.push("/"+s+" "+t.convert(o));return i.push(">>"),i.join("\n")}return""+n},t}()},"./node_modules/pako/dist/pako.esm.mjs":function(e,t,n){"use strict";function r(e){let t=e.length;for(;--t>=0;)e[t]=0}n.r(t),n.d(t,{Deflate:function(){return xn},Inflate:function(){return Ln},constants:function(){return Cn},default:function(){return On},deflate:function(){return An},deflateRaw:function(){return Sn},gzip:function(){return Nn},inflate:function(){return kn},inflateRaw:function(){return Pn},ungzip:function(){return En}});const s=new Uint8Array([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]),i=new Uint8Array([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]),o=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),a=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),l=new Array(576);r(l);const u=new Array(60);r(u);const c=new Array(512);r(c);const h=new Array(256);r(h);const d=new Array(29);r(d);const f=new Array(30);function p(e,t,n,r,s){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=s,this.has_stree=e&&e.length}let m,g,v;function y(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}r(f);const b=e=>e<256?c[e]:c[256+(e>>>7)],_=(e,t)=>{e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},j=(e,t,n)=>{e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,_(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},w=(e,t,n)=>{j(e,n[2*t],n[2*t+1])},x=(e,t)=>{let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1},A=(e,t,n)=>{const r=new Array(16);let s,i,o=0;for(s=1;s<=15;s++)o=o+n[s-1]<<1,r[s]=o;for(i=0;i<=t;i++){let t=e[2*i+1];0!==t&&(e[2*i]=x(r[t]++,t))}},S=e=>{let t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},N=e=>{e.bi_valid>8?_(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},L=(e,t,n,r)=>{const s=2*t,i=2*n;return e[s]<e[i]||e[s]===e[i]&&r[t]<=r[n]},k=(e,t,n)=>{const r=e.heap[n];let s=n<<1;for(;s<=e.heap_len&&(s<e.heap_len&&L(t,e.heap[s+1],e.heap[s],e.depth)&&s++,!L(t,r,e.heap[s],e.depth));)e.heap[n]=e.heap[s],n=s,s<<=1;e.heap[n]=r},P=(e,t,n)=>{let r,o,a,l,u=0;if(0!==e.sym_next)do{r=255&e.pending_buf[e.sym_buf+u++],r+=(255&e.pending_buf[e.sym_buf+u++])<<8,o=e.pending_buf[e.sym_buf+u++],0===r?w(e,o,t):(a=h[o],w(e,a+256+1,t),l=s[a],0!==l&&(o-=d[a],j(e,o,l)),r--,a=b(r),w(e,a,n),l=i[a],0!==l&&(r-=f[a],j(e,r,l)))}while(u<e.sym_next);w(e,256,t)},E=(e,t)=>{const n=t.dyn_tree,r=t.stat_desc.static_tree,s=t.stat_desc.has_stree,i=t.stat_desc.elems;let o,a,l,u=-1;for(e.heap_len=0,e.heap_max=573,o=0;o<i;o++)0!==n[2*o]?(e.heap[++e.heap_len]=u=o,e.depth[o]=0):n[2*o+1]=0;for(;e.heap_len<2;)l=e.heap[++e.heap_len]=u<2?++u:0,n[2*l]=1,e.depth[l]=0,e.opt_len--,s&&(e.static_len-=r[2*l+1]);for(t.max_code=u,o=e.heap_len>>1;o>=1;o--)k(e,n,o);l=i;do{o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],k(e,n,1),a=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=a,n[2*l]=n[2*o]+n[2*a],e.depth[l]=(e.depth[o]>=e.depth[a]?e.depth[o]:e.depth[a])+1,n[2*o+1]=n[2*a+1]=l,e.heap[1]=l++,k(e,n,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],((e,t)=>{const n=t.dyn_tree,r=t.max_code,s=t.stat_desc.static_tree,i=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,a=t.stat_desc.extra_base,l=t.stat_desc.max_length;let u,c,h,d,f,p,m=0;for(d=0;d<=15;d++)e.bl_count[d]=0;for(n[2*e.heap[e.heap_max]+1]=0,u=e.heap_max+1;u<573;u++)c=e.heap[u],d=n[2*n[2*c+1]+1]+1,d>l&&(d=l,m++),n[2*c+1]=d,c>r||(e.bl_count[d]++,f=0,c>=a&&(f=o[c-a]),p=n[2*c],e.opt_len+=p*(d+f),i&&(e.static_len+=p*(s[2*c+1]+f)));if(0!==m){do{for(d=l-1;0===e.bl_count[d];)d--;e.bl_count[d]--,e.bl_count[d+1]+=2,e.bl_count[l]--,m-=2}while(m>0);for(d=l;0!==d;d--)for(c=e.bl_count[d];0!==c;)h=e.heap[--u],h>r||(n[2*h+1]!==d&&(e.opt_len+=(d-n[2*h+1])*n[2*h],n[2*h+1]=d),c--)}})(e,t),A(n,u,e.bl_count)},C=(e,t,n)=>{let r,s,i=-1,o=t[1],a=0,l=7,u=4;for(0===o&&(l=138,u=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)s=o,o=t[2*(r+1)+1],++a<l&&s===o||(a<u?e.bl_tree[2*s]+=a:0!==s?(s!==i&&e.bl_tree[2*s]++,e.bl_tree[32]++):a<=10?e.bl_tree[34]++:e.bl_tree[36]++,a=0,i=s,0===o?(l=138,u=3):s===o?(l=6,u=3):(l=7,u=4))},O=(e,t,n)=>{let r,s,i=-1,o=t[1],a=0,l=7,u=4;for(0===o&&(l=138,u=3),r=0;r<=n;r++)if(s=o,o=t[2*(r+1)+1],!(++a<l&&s===o)){if(a<u)do{w(e,s,e.bl_tree)}while(0!==--a);else 0!==s?(s!==i&&(w(e,s,e.bl_tree),a--),w(e,16,e.bl_tree),j(e,a-3,2)):a<=10?(w(e,17,e.bl_tree),j(e,a-3,3)):(w(e,18,e.bl_tree),j(e,a-11,7));a=0,i=s,0===o?(l=138,u=3):s===o?(l=6,u=3):(l=7,u=4)}};let T=!1;const I=(e,t,n,r)=>{j(e,0+(r?1:0),3),N(e),_(e,n),_(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n};var M={_tr_init:e=>{T||((()=>{let e,t,n,r,a;const y=new Array(16);for(n=0,r=0;r<28;r++)for(d[r]=n,e=0;e<1<<s[r];e++)h[n++]=r;for(h[n-1]=r,a=0,r=0;r<16;r++)for(f[r]=a,e=0;e<1<<i[r];e++)c[a++]=r;for(a>>=7;r<30;r++)for(f[r]=a<<7,e=0;e<1<<i[r]-7;e++)c[256+a++]=r;for(t=0;t<=15;t++)y[t]=0;for(e=0;e<=143;)l[2*e+1]=8,e++,y[8]++;for(;e<=255;)l[2*e+1]=9,e++,y[9]++;for(;e<=279;)l[2*e+1]=7,e++,y[7]++;for(;e<=287;)l[2*e+1]=8,e++,y[8]++;for(A(l,287,y),e=0;e<30;e++)u[2*e+1]=5,u[2*e]=x(e,5);m=new p(l,s,257,286,15),g=new p(u,i,0,30,15),v=new p(new Array(0),o,0,19,7)})(),T=!0),e.l_desc=new y(e.dyn_ltree,m),e.d_desc=new y(e.dyn_dtree,g),e.bl_desc=new y(e.bl_tree,v),e.bi_buf=0,e.bi_valid=0,S(e)},_tr_stored_block:I,_tr_flush_block:(e,t,n,r)=>{let s,i,o=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=(e=>{let t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0})(e)),E(e,e.l_desc),E(e,e.d_desc),o=(e=>{let t;for(C(e,e.dyn_ltree,e.l_desc.max_code),C(e,e.dyn_dtree,e.d_desc.max_code),E(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*a[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t})(e),s=e.opt_len+3+7>>>3,i=e.static_len+3+7>>>3,i<=s&&(s=i)):s=i=n+5,n+4<=s&&-1!==t?I(e,t,n,r):4===e.strategy||i===s?(j(e,2+(r?1:0),3),P(e,l,u)):(j(e,4+(r?1:0),3),((e,t,n,r)=>{let s;for(j(e,t-257,5),j(e,n-1,5),j(e,r-4,4),s=0;s<r;s++)j(e,e.bl_tree[2*a[s]+1],3);O(e,e.dyn_ltree,t-1),O(e,e.dyn_dtree,n-1)})(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),P(e,e.dyn_ltree,e.dyn_dtree)),S(e),r&&N(e)},_tr_tally:(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(h[n]+256+1)]++,e.dyn_dtree[2*b(t)]++),e.sym_next===e.sym_end),_tr_align:e=>{j(e,2,3),w(e,256,l),(e=>{16===e.bi_valid?(_(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)})(e)}},R=(e,t,n,r)=>{let s=65535&e,i=e>>>16&65535,o=0;for(;0!==n;){o=n>2e3?2e3:n,n-=o;do{s=s+t[r++]|0,i=i+s|0}while(--o);s%=65521,i%=65521}return s|i<<16};const F=new Uint32Array((()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t})());var D=(e,t,n,r)=>{const s=F,i=r+n;e^=-1;for(let n=r;n<i;n++)e=e>>>8^s[255&(e^t[n])];return-1^e},B={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"},z={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_MEM_ERROR:-4,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};const{_tr_init:U,_tr_stored_block:q,_tr_flush_block:V,_tr_tally:H,_tr_align:W}=M,{Z_NO_FLUSH:G,Z_PARTIAL_FLUSH:Y,Z_FULL_FLUSH:X,Z_FINISH:Z,Z_BLOCK:$,Z_OK:K,Z_STREAM_END:J,Z_STREAM_ERROR:Q,Z_DATA_ERROR:ee,Z_BUF_ERROR:te,Z_DEFAULT_COMPRESSION:ne,Z_FILTERED:re,Z_HUFFMAN_ONLY:se,Z_RLE:ie,Z_FIXED:oe,Z_DEFAULT_STRATEGY:ae,Z_UNKNOWN:le,Z_DEFLATED:ue}=z,ce=258,he=262,de=42,fe=113,pe=666,me=(e,t)=>(e.msg=B[t],t),ge=e=>2*e-(e>4?9:0),ve=e=>{let t=e.length;for(;--t>=0;)e[t]=0},ye=e=>{let t,n,r,s=e.w_size;t=e.hash_size,r=t;do{n=e.head[--r],e.head[r]=n>=s?n-s:0}while(--t);t=s,r=t;do{n=e.prev[--r],e.prev[r]=n>=s?n-s:0}while(--t)};let be=(e,t,n)=>(t<<e.hash_shift^n)&e.hash_mask;const _e=e=>{const t=e.state;let n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))},je=(e,t)=>{V(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,_e(e.strm)},we=(e,t)=>{e.pending_buf[e.pending++]=t},xe=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},Ae=(e,t,n,r)=>{let s=e.avail_in;return s>r&&(s=r),0===s?0:(e.avail_in-=s,t.set(e.input.subarray(e.next_in,e.next_in+s),n),1===e.state.wrap?e.adler=R(e.adler,t,s,n):2===e.state.wrap&&(e.adler=D(e.adler,t,s,n)),e.next_in+=s,e.total_in+=s,s)},Se=(e,t)=>{let n,r,s=e.max_chain_length,i=e.strstart,o=e.prev_length,a=e.nice_match;const l=e.strstart>e.w_size-he?e.strstart-(e.w_size-he):0,u=e.window,c=e.w_mask,h=e.prev,d=e.strstart+ce;let f=u[i+o-1],p=u[i+o];e.prev_length>=e.good_match&&(s>>=2),a>e.lookahead&&(a=e.lookahead);do{if(n=t,u[n+o]===p&&u[n+o-1]===f&&u[n]===u[i]&&u[++n]===u[i+1]){i+=2,n++;do{}while(u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&i<d);if(r=ce-(d-i),i=d-ce,r>o){if(e.match_start=t,o=r,r>=a)break;f=u[i+o-1],p=u[i+o]}}}while((t=h[t&c])>l&&0!==--s);return o<=e.lookahead?o:e.lookahead},Ne=e=>{const t=e.w_size;let n,r,s;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-he)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),ye(e),r+=t),0===e.strm.avail_in)break;if(n=Ae(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=3)for(s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=be(e,e.ins_h,e.window[s+1]);e.insert&&(e.ins_h=be(e,e.ins_h,e.window[s+3-1]),e.prev[s&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=s,s++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<he&&0!==e.strm.avail_in)},Le=(e,t)=>{let n,r,s,i=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,o=0,a=e.strm.avail_in;do{if(n=65535,s=e.bi_valid+42>>3,e.strm.avail_out<s)break;if(s=e.strm.avail_out-s,r=e.strstart-e.block_start,n>r+e.strm.avail_in&&(n=r+e.strm.avail_in),n>s&&(n=s),n<i&&(0===n&&t!==Z||t===G||n!==r+e.strm.avail_in))break;o=t===Z&&n===r+e.strm.avail_in?1:0,q(e,0,0,o),e.pending_buf[e.pending-4]=n,e.pending_buf[e.pending-3]=n>>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,_e(e.strm),r&&(r>n&&(r=n),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,n-=r),n&&(Ae(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n)}while(0===o);return a-=e.strm.avail_in,a&&(a>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=a&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-a,e.strm.next_in),e.strstart),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),o?4:t!==G&&t!==Z&&0===e.strm.avail_in&&e.strstart===e.block_start?2:(s=e.window_size-e.strstart,e.strm.avail_in>s&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,s+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),s>e.strm.avail_in&&(s=e.strm.avail_in),s&&(Ae(e.strm,e.window,e.strstart,s),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.high_water<e.strstart&&(e.high_water=e.strstart),s=e.bi_valid+42>>3,s=e.pending_buf_size-s>65535?65535:e.pending_buf_size-s,i=s>e.w_size?e.w_size:s,r=e.strstart-e.block_start,(r>=i||(r||t===Z)&&t!==G&&0===e.strm.avail_in&&r<=s)&&(n=r>s?s:r,o=t===Z&&0===e.strm.avail_in&&n===r?1:0,q(e,e.block_start,n,o),e.block_start+=n,_e(e.strm)),o?3:1)},ke=(e,t)=>{let n,r;for(;;){if(e.lookahead<he){if(Ne(e),e.lookahead<he&&t===G)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=be(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-he&&(e.match_length=Se(e,n)),e.match_length>=3)if(r=H(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=be(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!==--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=be(e,e.ins_h,e.window[e.strstart+1]);else r=H(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(je(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,t===Z?(je(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(je(e,!1),0===e.strm.avail_out)?1:2},Pe=(e,t)=>{let n,r,s;for(;;){if(e.lookahead<he){if(Ne(e),e.lookahead<he&&t===G)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=be(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-he&&(e.match_length=Se(e,n),e.match_length<=5&&(e.strategy===re||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){s=e.strstart+e.lookahead-3,r=H(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=s&&(e.ins_h=be(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!==--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(je(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if(r=H(e,0,e.window[e.strstart-1]),r&&je(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=H(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,t===Z?(je(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(je(e,!1),0===e.strm.avail_out)?1:2};function Ee(e,t,n,r,s){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=s}const Ce=[new Ee(0,0,0,0,Le),new Ee(4,4,8,4,ke),new Ee(4,5,16,8,ke),new Ee(4,6,32,32,ke),new Ee(4,4,16,16,Pe),new Ee(8,16,32,32,Pe),new Ee(8,16,128,128,Pe),new Ee(8,32,128,256,Pe),new Ee(32,128,258,1024,Pe),new Ee(32,258,258,4096,Pe)];function Oe(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ue,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),ve(this.dyn_ltree),ve(this.dyn_dtree),ve(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),ve(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),ve(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Te=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==de&&57!==t.status&&69!==t.status&&73!==t.status&&91!==t.status&&103!==t.status&&t.status!==fe&&t.status!==pe?1:0},Ie=e=>{if(Te(e))return me(e,Q);e.total_in=e.total_out=0,e.data_type=le;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=2===t.wrap?57:t.wrap?de:fe,e.adler=2===t.wrap?0:1,t.last_flush=-2,U(t),K},Me=e=>{const t=Ie(e);var n;return t===K&&((n=e.state).window_size=2*n.w_size,ve(n.head),n.max_lazy_match=Ce[n.level].max_lazy,n.good_match=Ce[n.level].good_length,n.nice_match=Ce[n.level].nice_length,n.max_chain_length=Ce[n.level].max_chain,n.strstart=0,n.block_start=0,n.lookahead=0,n.insert=0,n.match_length=n.prev_length=2,n.match_available=0,n.ins_h=0),t},Re=(e,t,n,r,s,i)=>{if(!e)return Q;let o=1;if(t===ne&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),s<1||s>9||n!==ue||r<8||r>15||t<0||t>9||i<0||i>oe||8===r&&1!==o)return me(e,Q);8===r&&(r=9);const a=new Oe;return e.state=a,a.strm=e,a.status=de,a.wrap=o,a.gzhead=null,a.w_bits=r,a.w_size=1<<a.w_bits,a.w_mask=a.w_size-1,a.hash_bits=s+7,a.hash_size=1<<a.hash_bits,a.hash_mask=a.hash_size-1,a.hash_shift=~~((a.hash_bits+3-1)/3),a.window=new Uint8Array(2*a.w_size),a.head=new Uint16Array(a.hash_size),a.prev=new Uint16Array(a.w_size),a.lit_bufsize=1<<s+6,a.pending_buf_size=4*a.lit_bufsize,a.pending_buf=new Uint8Array(a.pending_buf_size),a.sym_buf=a.lit_bufsize,a.sym_end=3*(a.lit_bufsize-1),a.level=t,a.strategy=i,a.method=n,Me(e)};var Fe=Re,De=(e,t)=>Te(e)||2!==e.state.wrap?Q:(e.state.gzhead=t,K),Be=(e,t)=>{if(Te(e)||t>$||t<0)return e?me(e,Q):Q;const n=e.state;if(!e.output||0!==e.avail_in&&!e.input||n.status===pe&&t!==Z)return me(e,0===e.avail_out?te:Q);const r=n.last_flush;if(n.last_flush=t,0!==n.pending){if(_e(e),0===e.avail_out)return n.last_flush=-1,K}else if(0===e.avail_in&&ge(t)<=ge(r)&&t!==Z)return me(e,te);if(n.status===pe&&0!==e.avail_in)return me(e,te);if(n.status===de&&0===n.wrap&&(n.status=fe),n.status===de){let t=ue+(n.w_bits-8<<4)<<8,r=-1;if(r=n.strategy>=se||n.level<2?0:n.level<6?1:6===n.level?2:3,t|=r<<6,0!==n.strstart&&(t|=32),t+=31-t%31,xe(n,t),0!==n.strstart&&(xe(n,e.adler>>>16),xe(n,65535&e.adler)),e.adler=1,n.status=fe,_e(e),0!==n.pending)return n.last_flush=-1,K}if(57===n.status)if(e.adler=0,we(n,31),we(n,139),we(n,8),n.gzhead)we(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),we(n,255&n.gzhead.time),we(n,n.gzhead.time>>8&255),we(n,n.gzhead.time>>16&255),we(n,n.gzhead.time>>24&255),we(n,9===n.level?2:n.strategy>=se||n.level<2?4:0),we(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(we(n,255&n.gzhead.extra.length),we(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=D(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69;else if(we(n,0),we(n,0),we(n,0),we(n,0),we(n,0),we(n,9===n.level?2:n.strategy>=se||n.level<2?4:0),we(n,3),n.status=fe,_e(e),0!==n.pending)return n.last_flush=-1,K;if(69===n.status){if(n.gzhead.extra){let t=n.pending,r=(65535&n.gzhead.extra.length)-n.gzindex;for(;n.pending+r>n.pending_buf_size;){let s=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+s),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>t&&(e.adler=D(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex+=s,_e(e),0!==n.pending)return n.last_flush=-1,K;t=0,r-=s}let s=new Uint8Array(n.gzhead.extra);n.pending_buf.set(s.subarray(n.gzindex,n.gzindex+r),n.pending),n.pending+=r,n.gzhead.hcrc&&n.pending>t&&(e.adler=D(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex=0}n.status=73}if(73===n.status){if(n.gzhead.name){let t,r=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(e.adler=D(e.adler,n.pending_buf,n.pending-r,r)),_e(e),0!==n.pending)return n.last_flush=-1,K;r=0}t=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,we(n,t)}while(0!==t);n.gzhead.hcrc&&n.pending>r&&(e.adler=D(e.adler,n.pending_buf,n.pending-r,r)),n.gzindex=0}n.status=91}if(91===n.status){if(n.gzhead.comment){let t,r=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(e.adler=D(e.adler,n.pending_buf,n.pending-r,r)),_e(e),0!==n.pending)return n.last_flush=-1,K;r=0}t=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,we(n,t)}while(0!==t);n.gzhead.hcrc&&n.pending>r&&(e.adler=D(e.adler,n.pending_buf,n.pending-r,r))}n.status=103}if(103===n.status){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(_e(e),0!==n.pending))return n.last_flush=-1,K;we(n,255&e.adler),we(n,e.adler>>8&255),e.adler=0}if(n.status=fe,_e(e),0!==n.pending)return n.last_flush=-1,K}if(0!==e.avail_in||0!==n.lookahead||t!==G&&n.status!==pe){let r=0===n.level?Le(n,t):n.strategy===se?((e,t)=>{let n;for(;;){if(0===e.lookahead&&(Ne(e),0===e.lookahead)){if(t===G)return 1;break}if(e.match_length=0,n=H(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(je(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===Z?(je(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(je(e,!1),0===e.strm.avail_out)?1:2})(n,t):n.strategy===ie?((e,t)=>{let n,r,s,i;const o=e.window;for(;;){if(e.lookahead<=ce){if(Ne(e),e.lookahead<=ce&&t===G)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(s=e.strstart-1,r=o[s],r===o[++s]&&r===o[++s]&&r===o[++s])){i=e.strstart+ce;do{}while(r===o[++s]&&r===o[++s]&&r===o[++s]&&r===o[++s]&&r===o[++s]&&r===o[++s]&&r===o[++s]&&r===o[++s]&&s<i);e.match_length=ce-(i-s),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=H(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=H(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(je(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===Z?(je(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(je(e,!1),0===e.strm.avail_out)?1:2})(n,t):Ce[n.level].func(n,t);if(3!==r&&4!==r||(n.status=pe),1===r||3===r)return 0===e.avail_out&&(n.last_flush=-1),K;if(2===r&&(t===Y?W(n):t!==$&&(q(n,0,0,!1),t===X&&(ve(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),_e(e),0===e.avail_out))return n.last_flush=-1,K}return t!==Z?K:n.wrap<=0?J:(2===n.wrap?(we(n,255&e.adler),we(n,e.adler>>8&255),we(n,e.adler>>16&255),we(n,e.adler>>24&255),we(n,255&e.total_in),we(n,e.total_in>>8&255),we(n,e.total_in>>16&255),we(n,e.total_in>>24&255)):(xe(n,e.adler>>>16),xe(n,65535&e.adler)),_e(e),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?K:J)},ze=e=>{if(Te(e))return Q;const t=e.state.status;return e.state=null,t===fe?me(e,ee):K},Ue=(e,t)=>{let n=t.length;if(Te(e))return Q;const r=e.state,s=r.wrap;if(2===s||1===s&&r.status!==de||r.lookahead)return Q;if(1===s&&(e.adler=R(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){0===s&&(ve(r.head),r.strstart=0,r.block_start=0,r.insert=0);let e=new Uint8Array(r.w_size);e.set(t.subarray(n-r.w_size,n),0),t=e,n=r.w_size}const i=e.avail_in,o=e.next_in,a=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,Ne(r);r.lookahead>=3;){let e=r.strstart,t=r.lookahead-2;do{r.ins_h=be(r,r.ins_h,r.window[e+3-1]),r.prev[e&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=e,e++}while(--t);r.strstart=e,r.lookahead=2,Ne(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=o,e.input=a,e.avail_in=i,r.wrap=s,K};const qe=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var Ve=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(const t in n)qe(n,t)&&(e[t]=n[t])}}return e},He=e=>{let t=0;for(let n=0,r=e.length;n<r;n++)t+=e[n].length;const n=new Uint8Array(t);for(let t=0,r=0,s=e.length;t<s;t++){let s=e[t];n.set(s,r),r+=s.length}return n};let We=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){We=!1}const Ge=new Uint8Array(256);for(let e=0;e<256;e++)Ge[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Ge[254]=Ge[254]=1;var Ye=e=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);let t,n,r,s,i,o=e.length,a=0;for(s=0;s<o;s++)n=e.charCodeAt(s),55296==(64512&n)&&s+1<o&&(r=e.charCodeAt(s+1),56320==(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),s++)),a+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(a),i=0,s=0;i<a;s++)n=e.charCodeAt(s),55296==(64512&n)&&s+1<o&&(r=e.charCodeAt(s+1),56320==(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),s++)),n<128?t[i++]=n:n<2048?(t[i++]=192|n>>>6,t[i++]=128|63&n):n<65536?(t[i++]=224|n>>>12,t[i++]=128|n>>>6&63,t[i++]=128|63&n):(t[i++]=240|n>>>18,t[i++]=128|n>>>12&63,t[i++]=128|n>>>6&63,t[i++]=128|63&n);return t},Xe=(e,t)=>{const n=t||e.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));let r,s;const i=new Array(2*n);for(s=0,r=0;r<n;){let t=e[r++];if(t<128){i[s++]=t;continue}let o=Ge[t];if(o>4)i[s++]=65533,r+=o-1;else{for(t&=2===o?31:3===o?15:7;o>1&&r<n;)t=t<<6|63&e[r++],o--;o>1?i[s++]=65533:t<65536?i[s++]=t:(t-=65536,i[s++]=55296|t>>10&1023,i[s++]=56320|1023&t)}}return((e,t)=>{if(t<65534&&e.subarray&&We)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n})(i,s)},Ze=(e,t)=>{(t=t||e.length)>e.length&&(t=e.length);let n=t-1;for(;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+Ge[e[n]]>t?n:t},$e=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};const Ke=Object.prototype.toString,{Z_NO_FLUSH:Je,Z_SYNC_FLUSH:Qe,Z_FULL_FLUSH:et,Z_FINISH:tt,Z_OK:nt,Z_STREAM_END:rt,Z_DEFAULT_COMPRESSION:st,Z_DEFAULT_STRATEGY:it,Z_DEFLATED:ot}=z;function at(e){this.options=Ve({level:st,method:ot,chunkSize:16384,windowBits:15,memLevel:8,strategy:it},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new $e,this.strm.avail_out=0;let n=Fe(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==nt)throw new Error(B[n]);if(t.header&&De(this.strm,t.header),t.dictionary){let e;if(e="string"==typeof t.dictionary?Ye(t.dictionary):"[object ArrayBuffer]"===Ke.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,n=Ue(this.strm,e),n!==nt)throw new Error(B[n]);this._dict_set=!0}}function lt(e,t){const n=new at(t);if(n.push(e,!0),n.err)throw n.msg||B[n.err];return n.result}at.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize;let s,i;if(this.ended)return!1;for(i=t===~~t?t:!0===t?tt:Je,"string"==typeof e?n.input=Ye(e):"[object ArrayBuffer]"===Ke.call(e)?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;)if(0===n.avail_out&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(i===Qe||i===et)&&n.avail_out<=6)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else{if(s=Be(n,i),s===rt)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),s=ze(this.strm),this.onEnd(s),this.ended=!0,s===nt;if(0!==n.avail_out){if(i>0&&n.next_out>0)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else if(0===n.avail_in)break}else this.onData(n.output)}return!0},at.prototype.onData=function(e){this.chunks.push(e)},at.prototype.onEnd=function(e){e===nt&&(this.result=He(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var ut={Deflate:at,deflate:lt,deflateRaw:function(e,t){return(t=t||{}).raw=!0,lt(e,t)},gzip:function(e,t){return(t=t||{}).gzip=!0,lt(e,t)},constants:z};const ct=16209;var ht=function(e,t){let n,r,s,i,o,a,l,u,c,h,d,f,p,m,g,v,y,b,_,j,w,x,A,S;const N=e.state;n=e.next_in,A=e.input,r=n+(e.avail_in-5),s=e.next_out,S=e.output,i=s-(t-e.avail_out),o=s+(e.avail_out-257),a=N.dmax,l=N.wsize,u=N.whave,c=N.wnext,h=N.window,d=N.hold,f=N.bits,p=N.lencode,m=N.distcode,g=(1<<N.lenbits)-1,v=(1<<N.distbits)-1;e:do{f<15&&(d+=A[n++]<<f,f+=8,d+=A[n++]<<f,f+=8),y=p[d&g];t:for(;;){if(b=y>>>24,d>>>=b,f-=b,b=y>>>16&255,0===b)S[s++]=65535&y;else{if(!(16&b)){if(64&b){if(32&b){N.mode=16191;break e}e.msg="invalid literal/length code",N.mode=ct;break e}y=p[(65535&y)+(d&(1<<b)-1)];continue t}for(_=65535&y,b&=15,b&&(f<b&&(d+=A[n++]<<f,f+=8),_+=d&(1<<b)-1,d>>>=b,f-=b),f<15&&(d+=A[n++]<<f,f+=8,d+=A[n++]<<f,f+=8),y=m[d&v];;){if(b=y>>>24,d>>>=b,f-=b,b=y>>>16&255,16&b){if(j=65535&y,b&=15,f<b&&(d+=A[n++]<<f,f+=8,f<b&&(d+=A[n++]<<f,f+=8)),j+=d&(1<<b)-1,j>a){e.msg="invalid distance too far back",N.mode=ct;break e}if(d>>>=b,f-=b,b=s-i,j>b){if(b=j-b,b>u&&N.sane){e.msg="invalid distance too far back",N.mode=ct;break e}if(w=0,x=h,0===c){if(w+=l-b,b<_){_-=b;do{S[s++]=h[w++]}while(--b);w=s-j,x=S}}else if(c<b){if(w+=l+c-b,b-=c,b<_){_-=b;do{S[s++]=h[w++]}while(--b);if(w=0,c<_){b=c,_-=b;do{S[s++]=h[w++]}while(--b);w=s-j,x=S}}}else if(w+=c-b,b<_){_-=b;do{S[s++]=h[w++]}while(--b);w=s-j,x=S}for(;_>2;)S[s++]=x[w++],S[s++]=x[w++],S[s++]=x[w++],_-=3;_&&(S[s++]=x[w++],_>1&&(S[s++]=x[w++]))}else{w=s-j;do{S[s++]=S[w++],S[s++]=S[w++],S[s++]=S[w++],_-=3}while(_>2);_&&(S[s++]=S[w++],_>1&&(S[s++]=S[w++]))}break}if(64&b){e.msg="invalid distance code",N.mode=ct;break e}y=m[(65535&y)+(d&(1<<b)-1)]}}break}}while(n<r&&s<o);_=f>>3,n-=_,f-=_<<3,d&=(1<<f)-1,e.next_in=n,e.next_out=s,e.avail_in=n<r?r-n+5:5-(n-r),e.avail_out=s<o?o-s+257:257-(s-o),N.hold=d,N.bits=f};const dt=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),ft=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),pt=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),mt=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var gt=(e,t,n,r,s,i,o,a)=>{const l=a.bits;let u,c,h,d,f,p,m=0,g=0,v=0,y=0,b=0,_=0,j=0,w=0,x=0,A=0,S=null;const N=new Uint16Array(16),L=new Uint16Array(16);let k,P,E,C=null;for(m=0;m<=15;m++)N[m]=0;for(g=0;g<r;g++)N[t[n+g]]++;for(b=l,y=15;y>=1&&0===N[y];y--);if(b>y&&(b=y),0===y)return s[i++]=20971520,s[i++]=20971520,a.bits=1,0;for(v=1;v<y&&0===N[v];v++);for(b<v&&(b=v),w=1,m=1;m<=15;m++)if(w<<=1,w-=N[m],w<0)return-1;if(w>0&&(0===e||1!==y))return-1;for(L[1]=0,m=1;m<15;m++)L[m+1]=L[m]+N[m];for(g=0;g<r;g++)0!==t[n+g]&&(o[L[t[n+g]]++]=g);if(0===e?(S=C=o,p=20):1===e?(S=dt,C=ft,p=257):(S=pt,C=mt,p=0),A=0,g=0,m=v,f=i,_=b,j=0,h=-1,x=1<<b,d=x-1,1===e&&x>852||2===e&&x>592)return 1;for(;;){k=m-j,o[g]+1<p?(P=0,E=o[g]):o[g]>=p?(P=C[o[g]-p],E=S[o[g]-p]):(P=96,E=0),u=1<<m-j,c=1<<_,v=c;do{c-=u,s[f+(A>>j)+c]=k<<24|P<<16|E}while(0!==c);for(u=1<<m-1;A&u;)u>>=1;if(0!==u?(A&=u-1,A+=u):A=0,g++,0===--N[m]){if(m===y)break;m=t[n+o[g]]}if(m>b&&(A&d)!==h){for(0===j&&(j=b),f+=v,_=m-j,w=1<<_;_+j<y&&(w-=N[_+j],!(w<=0));)_++,w<<=1;if(x+=1<<_,1===e&&x>852||2===e&&x>592)return 1;h=A&d,s[h]=b<<24|_<<16|f-i}}return 0!==A&&(s[f+A]=m-j<<24|64<<16),a.bits=b,0};const{Z_FINISH:vt,Z_BLOCK:yt,Z_TREES:bt,Z_OK:_t,Z_STREAM_END:jt,Z_NEED_DICT:wt,Z_STREAM_ERROR:xt,Z_DATA_ERROR:At,Z_MEM_ERROR:St,Z_BUF_ERROR:Nt,Z_DEFLATED:Lt}=z,kt=16180,Pt=16190,Et=16191,Ct=16192,Ot=16194,Tt=16199,It=16200,Mt=16206,Rt=16209,Ft=e=>(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24);function Dt(){this.strm=null,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 Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Bt=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<kt||t.mode>16211?1:0},zt=e=>{if(Bt(e))return xt;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=kt,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,_t},Ut=e=>{if(Bt(e))return xt;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,zt(e)},qt=(e,t)=>{let n;if(Bt(e))return xt;const r=e.state;return t<0?(n=0,t=-t):(n=5+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?xt:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,Ut(e))},Vt=(e,t)=>{if(!e)return xt;const n=new Dt;e.state=n,n.strm=e,n.window=null,n.mode=kt;const r=qt(e,t);return r!==_t&&(e.state=null),r};let Ht,Wt,Gt=!0;const Yt=e=>{if(Gt){Ht=new Int32Array(512),Wt=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(gt(1,e.lens,0,288,Ht,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;gt(2,e.lens,0,32,Wt,0,e.work,{bits:5}),Gt=!1}e.lencode=Ht,e.lenbits=9,e.distcode=Wt,e.distbits=5},Xt=(e,t,n,r)=>{let s;const i=e.state;return null===i.window&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new Uint8Array(i.wsize)),r>=i.wsize?(i.window.set(t.subarray(n-i.wsize,n),0),i.wnext=0,i.whave=i.wsize):(s=i.wsize-i.wnext,s>r&&(s=r),i.window.set(t.subarray(n-r,n-r+s),i.wnext),(r-=s)?(i.window.set(t.subarray(n-r,n),0),i.wnext=r,i.whave=i.wsize):(i.wnext+=s,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=s))),0};var Zt=Ut,$t=Vt,Kt=(e,t)=>{let n,r,s,i,o,a,l,u,c,h,d,f,p,m,g,v,y,b,_,j,w,x,A=0;const S=new Uint8Array(4);let N,L;const k=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Bt(e)||!e.output||!e.input&&0!==e.avail_in)return xt;n=e.state,n.mode===Et&&(n.mode=Ct),o=e.next_out,s=e.output,l=e.avail_out,i=e.next_in,r=e.input,a=e.avail_in,u=n.hold,c=n.bits,h=a,d=l,x=_t;e:for(;;)switch(n.mode){case kt:if(0===n.wrap){n.mode=Ct;break}for(;c<16;){if(0===a)break e;a--,u+=r[i++]<<c,c+=8}if(2&n.wrap&&35615===u){0===n.wbits&&(n.wbits=15),n.check=0,S[0]=255&u,S[1]=u>>>8&255,n.check=D(n.check,S,2,0),u=0,c=0,n.mode=16181;break}if(n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&u)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=Rt;break}if((15&u)!==Lt){e.msg="unknown compression method",n.mode=Rt;break}if(u>>>=4,c-=4,w=8+(15&u),0===n.wbits&&(n.wbits=w),w>15||w>n.wbits){e.msg="invalid window size",n.mode=Rt;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=512&u?16189:Et,u=0,c=0;break;case 16181:for(;c<16;){if(0===a)break e;a--,u+=r[i++]<<c,c+=8}if(n.flags=u,(255&n.flags)!==Lt){e.msg="unknown compression method",n.mode=Rt;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=Rt;break}n.head&&(n.head.text=u>>8&1),512&n.flags&&4&n.wrap&&(S[0]=255&u,S[1]=u>>>8&255,n.check=D(n.check,S,2,0)),u=0,c=0,n.mode=16182;case 16182:for(;c<32;){if(0===a)break e;a--,u+=r[i++]<<c,c+=8}n.head&&(n.head.time=u),512&n.flags&&4&n.wrap&&(S[0]=255&u,S[1]=u>>>8&255,S[2]=u>>>16&255,S[3]=u>>>24&255,n.check=D(n.check,S,4,0)),u=0,c=0,n.mode=16183;case 16183:for(;c<16;){if(0===a)break e;a--,u+=r[i++]<<c,c+=8}n.head&&(n.head.xflags=255&u,n.head.os=u>>8),512&n.flags&&4&n.wrap&&(S[0]=255&u,S[1]=u>>>8&255,n.check=D(n.check,S,2,0)),u=0,c=0,n.mode=16184;case 16184:if(1024&n.flags){for(;c<16;){if(0===a)break e;a--,u+=r[i++]<<c,c+=8}n.length=u,n.head&&(n.head.extra_len=u),512&n.flags&&4&n.wrap&&(S[0]=255&u,S[1]=u>>>8&255,n.check=D(n.check,S,2,0)),u=0,c=0}else n.head&&(n.head.extra=null);n.mode=16185;case 16185:if(1024&n.flags&&(f=n.length,f>a&&(f=a),f&&(n.head&&(w=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(i,i+f),w)),512&n.flags&&4&n.wrap&&(n.check=D(n.check,r,f,i)),a-=f,i+=f,n.length-=f),n.length))break e;n.length=0,n.mode=16186;case 16186:if(2048&n.flags){if(0===a)break e;f=0;do{w=r[i+f++],n.head&&w&&n.length<65536&&(n.head.name+=String.fromCharCode(w))}while(w&&f<a);if(512&n.flags&&4&n.wrap&&(n.check=D(n.check,r,f,i)),a-=f,i+=f,w)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=16187;case 16187:if(4096&n.flags){if(0===a)break e;f=0;do{w=r[i+f++],n.head&&w&&n.length<65536&&(n.head.comment+=String.fromCharCode(w))}while(w&&f<a);if(512&n.flags&&4&n.wrap&&(n.check=D(n.check,r,f,i)),a-=f,i+=f,w)break e}else n.head&&(n.head.comment=null);n.mode=16188;case 16188:if(512&n.flags){for(;c<16;){if(0===a)break e;a--,u+=r[i++]<<c,c+=8}if(4&n.wrap&&u!==(65535&n.check)){e.msg="header crc mismatch",n.mode=Rt;break}u=0,c=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Et;break;case 16189:for(;c<32;){if(0===a)break e;a--,u+=r[i++]<<c,c+=8}e.adler=n.check=Ft(u),u=0,c=0,n.mode=Pt;case Pt:if(0===n.havedict)return e.next_out=o,e.avail_out=l,e.next_in=i,e.avail_in=a,n.hold=u,n.bits=c,wt;e.adler=n.check=1,n.mode=Et;case Et:if(t===yt||t===bt)break e;case Ct:if(n.last){u>>>=7&c,c-=7&c,n.mode=Mt;break}for(;c<3;){if(0===a)break e;a--,u+=r[i++]<<c,c+=8}switch(n.last=1&u,u>>>=1,c-=1,3&u){case 0:n.mode=16193;break;case 1:if(Yt(n),n.mode=Tt,t===bt){u>>>=2,c-=2;break e}break;case 2:n.mode=16196;break;case 3:e.msg="invalid block type",n.mode=Rt}u>>>=2,c-=2;break;case 16193:for(u>>>=7&c,c-=7&c;c<32;){if(0===a)break e;a--,u+=r[i++]<<c,c+=8}if((65535&u)!=(u>>>16^65535)){e.msg="invalid stored block lengths",n.mode=Rt;break}if(n.length=65535&u,u=0,c=0,n.mode=Ot,t===bt)break e;case Ot:n.mode=16195;case 16195:if(f=n.length,f){if(f>a&&(f=a),f>l&&(f=l),0===f)break e;s.set(r.subarray(i,i+f),o),a-=f,i+=f,l-=f,o+=f,n.length-=f;break}n.mode=Et;break;case 16196:for(;c<14;){if(0===a)break e;a--,u+=r[i++]<<c,c+=8}if(n.nlen=257+(31&u),u>>>=5,c-=5,n.ndist=1+(31&u),u>>>=5,c-=5,n.ncode=4+(15&u),u>>>=4,c-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=Rt;break}n.have=0,n.mode=16197;case 16197:for(;n.have<n.ncode;){for(;c<3;){if(0===a)break e;a--,u+=r[i++]<<c,c+=8}n.lens[k[n.have++]]=7&u,u>>>=3,c-=3}for(;n.have<19;)n.lens[k[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,N={bits:n.lenbits},x=gt(0,n.lens,0,19,n.lencode,0,n.work,N),n.lenbits=N.bits,x){e.msg="invalid code lengths set",n.mode=Rt;break}n.have=0,n.mode=16198;case 16198:for(;n.have<n.nlen+n.ndist;){for(;A=n.lencode[u&(1<<n.lenbits)-1],g=A>>>24,v=A>>>16&255,y=65535&A,!(g<=c);){if(0===a)break e;a--,u+=r[i++]<<c,c+=8}if(y<16)u>>>=g,c-=g,n.lens[n.have++]=y;else{if(16===y){for(L=g+2;c<L;){if(0===a)break e;a--,u+=r[i++]<<c,c+=8}if(u>>>=g,c-=g,0===n.have){e.msg="invalid bit length repeat",n.mode=Rt;break}w=n.lens[n.have-1],f=3+(3&u),u>>>=2,c-=2}else if(17===y){for(L=g+3;c<L;){if(0===a)break e;a--,u+=r[i++]<<c,c+=8}u>>>=g,c-=g,w=0,f=3+(7&u),u>>>=3,c-=3}else{for(L=g+7;c<L;){if(0===a)break e;a--,u+=r[i++]<<c,c+=8}u>>>=g,c-=g,w=0,f=11+(127&u),u>>>=7,c-=7}if(n.have+f>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=Rt;break}for(;f--;)n.lens[n.have++]=w}}if(n.mode===Rt)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=Rt;break}if(n.lenbits=9,N={bits:n.lenbits},x=gt(1,n.lens,0,n.nlen,n.lencode,0,n.work,N),n.lenbits=N.bits,x){e.msg="invalid literal/lengths set",n.mode=Rt;break}if(n.distbits=6,n.distcode=n.distdyn,N={bits:n.distbits},x=gt(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,N),n.distbits=N.bits,x){e.msg="invalid distances set",n.mode=Rt;break}if(n.mode=Tt,t===bt)break e;case Tt:n.mode=It;case It:if(a>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=i,e.avail_in=a,n.hold=u,n.bits=c,ht(e,d),o=e.next_out,s=e.output,l=e.avail_out,i=e.next_in,r=e.input,a=e.avail_in,u=n.hold,c=n.bits,n.mode===Et&&(n.back=-1);break}for(n.back=0;A=n.lencode[u&(1<<n.lenbits)-1],g=A>>>24,v=A>>>16&255,y=65535&A,!(g<=c);){if(0===a)break e;a--,u+=r[i++]<<c,c+=8}if(v&&!(240&v)){for(b=g,_=v,j=y;A=n.lencode[j+((u&(1<<b+_)-1)>>b)],g=A>>>24,v=A>>>16&255,y=65535&A,!(b+g<=c);){if(0===a)break e;a--,u+=r[i++]<<c,c+=8}u>>>=b,c-=b,n.back+=b}if(u>>>=g,c-=g,n.back+=g,n.length=y,0===v){n.mode=16205;break}if(32&v){n.back=-1,n.mode=Et;break}if(64&v){e.msg="invalid literal/length code",n.mode=Rt;break}n.extra=15&v,n.mode=16201;case 16201:if(n.extra){for(L=n.extra;c<L;){if(0===a)break e;a--,u+=r[i++]<<c,c+=8}n.length+=u&(1<<n.extra)-1,u>>>=n.extra,c-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=16202;case 16202:for(;A=n.distcode[u&(1<<n.distbits)-1],g=A>>>24,v=A>>>16&255,y=65535&A,!(g<=c);){if(0===a)break e;a--,u+=r[i++]<<c,c+=8}if(!(240&v)){for(b=g,_=v,j=y;A=n.distcode[j+((u&(1<<b+_)-1)>>b)],g=A>>>24,v=A>>>16&255,y=65535&A,!(b+g<=c);){if(0===a)break e;a--,u+=r[i++]<<c,c+=8}u>>>=b,c-=b,n.back+=b}if(u>>>=g,c-=g,n.back+=g,64&v){e.msg="invalid distance code",n.mode=Rt;break}n.offset=y,n.extra=15&v,n.mode=16203;case 16203:if(n.extra){for(L=n.extra;c<L;){if(0===a)break e;a--,u+=r[i++]<<c,c+=8}n.offset+=u&(1<<n.extra)-1,u>>>=n.extra,c-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=Rt;break}n.mode=16204;case 16204:if(0===l)break e;if(f=d-l,n.offset>f){if(f=n.offset-f,f>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=Rt;break}f>n.wnext?(f-=n.wnext,p=n.wsize-f):p=n.wnext-f,f>n.length&&(f=n.length),m=n.window}else m=s,p=o-n.offset,f=n.length;f>l&&(f=l),l-=f,n.length-=f;do{s[o++]=m[p++]}while(--f);0===n.length&&(n.mode=It);break;case 16205:if(0===l)break e;s[o++]=n.length,l--,n.mode=It;break;case Mt:if(n.wrap){for(;c<32;){if(0===a)break e;a--,u|=r[i++]<<c,c+=8}if(d-=l,e.total_out+=d,n.total+=d,4&n.wrap&&d&&(e.adler=n.check=n.flags?D(n.check,s,d,o-d):R(n.check,s,d,o-d)),d=l,4&n.wrap&&(n.flags?u:Ft(u))!==n.check){e.msg="incorrect data check",n.mode=Rt;break}u=0,c=0}n.mode=16207;case 16207:if(n.wrap&&n.flags){for(;c<32;){if(0===a)break e;a--,u+=r[i++]<<c,c+=8}if(4&n.wrap&&u!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=Rt;break}u=0,c=0}n.mode=16208;case 16208:x=jt;break e;case Rt:x=At;break e;case 16210:return St;default:return xt}return e.next_out=o,e.avail_out=l,e.next_in=i,e.avail_in=a,n.hold=u,n.bits=c,(n.wsize||d!==e.avail_out&&n.mode<Rt&&(n.mode<Mt||t!==vt))&&Xt(e,e.output,e.next_out,d-e.avail_out),h-=e.avail_in,d-=e.avail_out,e.total_in+=h,e.total_out+=d,n.total+=d,4&n.wrap&&d&&(e.adler=n.check=n.flags?D(n.check,s,d,e.next_out-d):R(n.check,s,d,e.next_out-d)),e.data_type=n.bits+(n.last?64:0)+(n.mode===Et?128:0)+(n.mode===Tt||n.mode===Ot?256:0),(0===h&&0===d||t===vt)&&x===_t&&(x=Nt),x},Jt=e=>{if(Bt(e))return xt;let t=e.state;return t.window&&(t.window=null),e.state=null,_t},Qt=(e,t)=>{if(Bt(e))return xt;const n=e.state;return 2&n.wrap?(n.head=t,t.done=!1,_t):xt},en=(e,t)=>{const n=t.length;let r,s,i;return Bt(e)?xt:(r=e.state,0!==r.wrap&&r.mode!==Pt?xt:r.mode===Pt&&(s=1,s=R(s,t,n,0),s!==r.check)?At:(i=Xt(e,t,n,n),i?(r.mode=16210,St):(r.havedict=1,_t)))},tn=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const nn=Object.prototype.toString,{Z_NO_FLUSH:rn,Z_FINISH:sn,Z_OK:on,Z_STREAM_END:an,Z_NEED_DICT:ln,Z_STREAM_ERROR:un,Z_DATA_ERROR:cn,Z_MEM_ERROR:hn}=z;function dn(e){this.options=Ve({chunkSize:65536,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(15&t.windowBits||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new $e,this.strm.avail_out=0;let n=$t(this.strm,t.windowBits);if(n!==on)throw new Error(B[n]);if(this.header=new tn,Qt(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=Ye(t.dictionary):"[object ArrayBuffer]"===nn.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=en(this.strm,t.dictionary),n!==on)))throw new Error(B[n])}function fn(e,t){const n=new dn(t);if(n.push(e),n.err)throw n.msg||B[n.err];return n.result}dn.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,s=this.options.dictionary;let i,o,a;if(this.ended)return!1;for(o=t===~~t?t:!0===t?sn:rn,"[object ArrayBuffer]"===nn.call(e)?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(0===n.avail_out&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),i=Kt(n,o),i===ln&&s&&(i=en(n,s),i===on?i=Kt(n,o):i===cn&&(i=ln));n.avail_in>0&&i===an&&n.state.wrap>0&&0!==e[n.next_in];)Zt(n),i=Kt(n,o);switch(i){case un:case cn:case ln:case hn:return this.onEnd(i),this.ended=!0,!1}if(a=n.avail_out,n.next_out&&(0===n.avail_out||i===an))if("string"===this.options.to){let e=Ze(n.output,n.next_out),t=n.next_out-e,s=Xe(n.output,e);n.next_out=t,n.avail_out=r-t,t&&n.output.set(n.output.subarray(e,e+t),0),this.onData(s)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(i!==on||0!==a){if(i===an)return i=Jt(this.strm),this.onEnd(i),this.ended=!0,!0;if(0===n.avail_in)break}}return!0},dn.prototype.onData=function(e){this.chunks.push(e)},dn.prototype.onEnd=function(e){e===on&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=He(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var pn={Inflate:dn,inflate:fn,inflateRaw:function(e,t){return(t=t||{}).raw=!0,fn(e,t)},ungzip:fn,constants:z};const{Deflate:mn,deflate:gn,deflateRaw:vn,gzip:yn}=ut,{Inflate:bn,inflate:_n,inflateRaw:jn,ungzip:wn}=pn;var xn=mn,An=gn,Sn=vn,Nn=yn,Ln=bn,kn=_n,Pn=jn,En=wn,Cn=z,On={Deflate:mn,deflate:gn,deflateRaw:vn,gzip:yn,Inflate:bn,inflate:_n,inflateRaw:jn,ungzip:wn,constants:z}},"./node_modules/performance-now/lib/performance-now.js":function(e){(function(){var t,n,r,s,i,o;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-i)/1e6},n=process.hrtime,s=(t=function(){var e;return 1e9*(e=n())[0]+e[1]})(),o=1e9*process.uptime(),i=s-o):Date.now?(e.exports=function(){return Date.now()-r},r=Date.now()):(e.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(this)},"./node_modules/raf/index.js":function(e,t,n){for(var r=n("./node_modules/performance-now/lib/performance-now.js"),s="undefined"==typeof window?global:window,i=["moz","webkit"],o="AnimationFrame",a=s["request"+o],l=s["cancel"+o]||s["cancelRequest"+o],u=0;!a&&u<i.length;u++)a=s[i[u]+"Request"+o],l=s[i[u]+"Cancel"+o]||s[i[u]+"CancelRequest"+o];if(!a||!l){var c=0,h=0,d=[],f=1e3/60;a=function(e){if(0===d.length){var t=r(),n=Math.max(0,f-(t-c));c=n+t,setTimeout(function(){var e=d.slice(0);d.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(c)}catch(e){setTimeout(function(){throw e},0)}},Math.round(n))}return d.push({handle:++h,callback:e,cancelled:!1}),h},l=function(e){for(var t=0;t<d.length;t++)d[t].handle===e&&(d[t].cancelled=!0)}}e.exports=function(e){return a.call(s,e)},e.exports.cancel=function(){l.apply(s,arguments)},e.exports.polyfill=function(e){e||(e=s),e.requestAnimationFrame=a,e.cancelAnimationFrame=l}},"./node_modules/rgbcolor/index.js":function(e){e.exports=function(e){this.ok=!1,this.alpha=1,"#"==e.charAt(0)&&(e=e.substr(1,6)),e=(e=e.replace(/ /g,"")).toLowerCase();var t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};e=t[e]||e;for(var n=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3]),parseFloat(e[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],r=0;r<n.length;r++){var s=n[r].re,i=n[r].process,o=s.exec(e);if(o){var a=i(o);this.r=a[0],this.g=a[1],this.b=a[2],a.length>3&&(this.alpha=a[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var e=this.r.toString(16),t=this.g.toString(16),n=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==n.length&&(n="0"+n),"#"+e+t+n},this.getHelpXML=function(){for(var e=new Array,r=0;r<n.length;r++)for(var s=n[r].example,i=0;i<s.length;i++)e[e.length]=s[i];for(var o in t)e[e.length]=o;var a=document.createElement("ul");for(a.setAttribute("id","rgbcolor-examples"),r=0;r<e.length;r++)try{var l=document.createElement("li"),u=new RGBColor(e[r]),c=document.createElement("div");c.style.cssText="margin: 3px; border: 1px solid black; background:"+u.toHex()+"; color:"+u.toHex(),c.appendChild(document.createTextNode("test"));var h=document.createTextNode(" "+e[r]+" -> "+u.toRGB()+" -> "+u.toHex());l.appendChild(c),l.appendChild(h),a.appendChild(l)}catch(e){}return a}}},"./node_modules/stackblur-canvas/dist/stackblur-es.js":function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.r(t),n.d(t,{BlurStack:function(){return d},canvasRGB:function(){return c},canvasRGBA:function(){return l},image:function(){return o},imageDataRGB:function(){return h},imageDataRGBA:function(){return u}});var s=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],i=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,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,24,24,24,24,24,24,24,24,24,24];function o(e,t,n,r,s,i){if("string"==typeof e&&(e=document.getElementById(e)),e&&("HTMLImageElement"!==Object.prototype.toString.call(e).slice(8,-1)||"naturalWidth"in e)){var o=s?"offset":"natural",a=e[o+"Width"],u=e[o+"Height"];if("ImageBitmap"===Object.prototype.toString.call(e).slice(8,-1)&&(a=e.width,u=e.height),"string"==typeof t&&(t=document.getElementById(t)),t&&"getContext"in t){i||(t.style.width=a+"px",t.style.height=u+"px"),t.width=a,t.height=u;var h=t.getContext("2d");h.clearRect(0,0,a,u),h.drawImage(e,0,0,e.naturalWidth,e.naturalHeight,0,0,a,u),isNaN(n)||n<1||(r?l(t,0,0,a,u,n):c(t,0,0,a,u,n))}}}function a(e,t,n,s,i){if("string"==typeof e&&(e=document.getElementById(e)),!e||"object"!==r(e)||!("getContext"in e))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var o=e.getContext("2d");try{return o.getImageData(t,n,s,i)}catch(e){throw new Error("unable to access image data: "+e)}}function l(e,t,n,r,s,i){if(!(isNaN(i)||i<1)){i|=0;var o=a(e,t,n,r,s);o=u(o,0,0,r,s,i),e.getContext("2d").putImageData(o,t,n)}}function u(e,t,n,r,o,a){for(var l,u=e.data,c=2*a+1,h=r-1,f=o-1,p=a+1,m=p*(p+1)/2,g=new d,v=g,y=1;y<c;y++)v=v.next=new d,y===p&&(l=v);v.next=g;for(var b=null,_=null,j=0,w=0,x=s[a],A=i[a],S=0;S<o;S++){v=g;for(var N=u[w],L=u[w+1],k=u[w+2],P=u[w+3],E=0;E<p;E++)v.r=N,v.g=L,v.b=k,v.a=P,v=v.next;for(var C=0,O=0,T=0,I=0,M=p*N,R=p*L,F=p*k,D=p*P,B=m*N,z=m*L,U=m*k,q=m*P,V=1;V<p;V++){var H=w+((h<V?h:V)<<2),W=u[H],G=u[H+1],Y=u[H+2],X=u[H+3],Z=p-V;B+=(v.r=W)*Z,z+=(v.g=G)*Z,U+=(v.b=Y)*Z,q+=(v.a=X)*Z,C+=W,O+=G,T+=Y,I+=X,v=v.next}b=g,_=l;for(var $=0;$<r;$++){var K=q*x>>>A;if(u[w+3]=K,0!==K){var J=255/K;u[w]=(B*x>>>A)*J,u[w+1]=(z*x>>>A)*J,u[w+2]=(U*x>>>A)*J}else u[w]=u[w+1]=u[w+2]=0;B-=M,z-=R,U-=F,q-=D,M-=b.r,R-=b.g,F-=b.b,D-=b.a;var Q=$+a+1;Q=j+(Q<h?Q:h)<<2,B+=C+=b.r=u[Q],z+=O+=b.g=u[Q+1],U+=T+=b.b=u[Q+2],q+=I+=b.a=u[Q+3],b=b.next;var ee=_,te=ee.r,ne=ee.g,re=ee.b,se=ee.a;M+=te,R+=ne,F+=re,D+=se,C-=te,O-=ne,T-=re,I-=se,_=_.next,w+=4}j+=r}for(var ie=0;ie<r;ie++){var oe=u[w=ie<<2],ae=u[w+1],le=u[w+2],ue=u[w+3],ce=p*oe,he=p*ae,de=p*le,fe=p*ue,pe=m*oe,me=m*ae,ge=m*le,ve=m*ue;v=g;for(var ye=0;ye<p;ye++)v.r=oe,v.g=ae,v.b=le,v.a=ue,v=v.next;for(var be=r,_e=0,je=0,we=0,xe=0,Ae=1;Ae<=a;Ae++){w=be+ie<<2;var Se=p-Ae;pe+=(v.r=oe=u[w])*Se,me+=(v.g=ae=u[w+1])*Se,ge+=(v.b=le=u[w+2])*Se,ve+=(v.a=ue=u[w+3])*Se,xe+=oe,_e+=ae,je+=le,we+=ue,v=v.next,Ae<f&&(be+=r)}w=ie,b=g,_=l;for(var Ne=0;Ne<o;Ne++){var Le=w<<2;u[Le+3]=ue=ve*x>>>A,ue>0?(ue=255/ue,u[Le]=(pe*x>>>A)*ue,u[Le+1]=(me*x>>>A)*ue,u[Le+2]=(ge*x>>>A)*ue):u[Le]=u[Le+1]=u[Le+2]=0,pe-=ce,me-=he,ge-=de,ve-=fe,ce-=b.r,he-=b.g,de-=b.b,fe-=b.a,Le=ie+((Le=Ne+p)<f?Le:f)*r<<2,pe+=xe+=b.r=u[Le],me+=_e+=b.g=u[Le+1],ge+=je+=b.b=u[Le+2],ve+=we+=b.a=u[Le+3],b=b.next,ce+=oe=_.r,he+=ae=_.g,de+=le=_.b,fe+=ue=_.a,xe-=oe,_e-=ae,je-=le,we-=ue,_=_.next,w+=r}}return e}function c(e,t,n,r,s,i){if(!(isNaN(i)||i<1)){i|=0;var o=a(e,t,n,r,s);o=h(o,0,0,r,s,i),e.getContext("2d").putImageData(o,t,n)}}function h(e,t,n,r,o,a){for(var l,u=e.data,c=2*a+1,h=r-1,f=o-1,p=a+1,m=p*(p+1)/2,g=new d,v=g,y=1;y<c;y++)v=v.next=new d,y===p&&(l=v);v.next=g;for(var b,_,j=null,w=null,x=s[a],A=i[a],S=0,N=0,L=0;L<o;L++){var k=u[N],P=u[N+1],E=u[N+2],C=p*k,O=p*P,T=p*E,I=m*k,M=m*P,R=m*E;v=g;for(var F=0;F<p;F++)v.r=k,v.g=P,v.b=E,v=v.next;for(var D=0,B=0,z=0,U=1;U<p;U++)b=N+((h<U?h:U)<<2),I+=(v.r=k=u[b])*(_=p-U),M+=(v.g=P=u[b+1])*_,R+=(v.b=E=u[b+2])*_,D+=k,B+=P,z+=E,v=v.next;j=g,w=l;for(var q=0;q<r;q++)u[N]=I*x>>>A,u[N+1]=M*x>>>A,u[N+2]=R*x>>>A,I-=C,M-=O,R-=T,C-=j.r,O-=j.g,T-=j.b,b=S+((b=q+a+1)<h?b:h)<<2,I+=D+=j.r=u[b],M+=B+=j.g=u[b+1],R+=z+=j.b=u[b+2],j=j.next,C+=k=w.r,O+=P=w.g,T+=E=w.b,D-=k,B-=P,z-=E,w=w.next,N+=4;S+=r}for(var V=0;V<r;V++){var H=u[N=V<<2],W=u[N+1],G=u[N+2],Y=p*H,X=p*W,Z=p*G,$=m*H,K=m*W,J=m*G;v=g;for(var Q=0;Q<p;Q++)v.r=H,v.g=W,v.b=G,v=v.next;for(var ee=0,te=0,ne=0,re=1,se=r;re<=a;re++)N=se+V<<2,$+=(v.r=H=u[N])*(_=p-re),K+=(v.g=W=u[N+1])*_,J+=(v.b=G=u[N+2])*_,ee+=H,te+=W,ne+=G,v=v.next,re<f&&(se+=r);N=V,j=g,w=l;for(var ie=0;ie<o;ie++)u[b=N<<2]=$*x>>>A,u[b+1]=K*x>>>A,u[b+2]=J*x>>>A,$-=Y,K-=X,J-=Z,Y-=j.r,X-=j.g,Z-=j.b,b=V+((b=ie+p)<f?b:f)*r<<2,$+=ee+=j.r=u[b],K+=te+=j.g=u[b+1],J+=ne+=j.b=u[b+2],j=j.next,Y+=H=w.r,X+=W=w.g,Z+=G=w.b,ee-=H,te-=W,ne-=G,w=w.next,N+=r}return e}var d=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}},"./node_modules/svg-pathdata/lib/SVGPathData.module.js":function(e,t,n){"use strict";n.r(t),n.d(t,{COMMAND_ARG_COUNTS:function(){return x},SVGPathData:function(){return w},SVGPathDataParser:function(){return j},SVGPathDataTransformer:function(){return h},encodeSVGPath:function(){return i}});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function i(e){var t="";Array.isArray(e)||(e=[e]);for(var n=0;n<e.length;n++){var r=e[n];if(r.type===w.CLOSE_PATH)t+="z";else if(r.type===w.HORIZ_LINE_TO)t+=(r.relative?"h":"H")+r.x;else if(r.type===w.VERT_LINE_TO)t+=(r.relative?"v":"V")+r.y;else if(r.type===w.MOVE_TO)t+=(r.relative?"m":"M")+r.x+" "+r.y;else if(r.type===w.LINE_TO)t+=(r.relative?"l":"L")+r.x+" "+r.y;else if(r.type===w.CURVE_TO)t+=(r.relative?"c":"C")+r.x1+" "+r.y1+" "+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===w.SMOOTH_CURVE_TO)t+=(r.relative?"s":"S")+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===w.QUAD_TO)t+=(r.relative?"q":"Q")+r.x1+" "+r.y1+" "+r.x+" "+r.y;else if(r.type===w.SMOOTH_QUAD_TO)t+=(r.relative?"t":"T")+r.x+" "+r.y;else{if(r.type!==w.ARC)throw new Error('Unexpected command type "'+r.type+'" at index '+n+".");t+=(r.relative?"a":"A")+r.rX+" "+r.rY+" "+r.xRot+" "+ +r.lArcFlag+" "+ +r.sweepFlag+" "+r.x+" "+r.y}}return t}function o(e,t){var n=e[0],r=e[1];return[n*Math.cos(t)-r*Math.sin(t),n*Math.sin(t)+r*Math.cos(t)]}function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0;n<e.length;n++)if("number"!=typeof e[n])throw new Error("assertNumbers arguments["+n+"] is not a number. "+typeof e[n]+" == typeof "+e[n]);return!0}var l=Math.PI;function u(e,t,n){e.lArcFlag=0===e.lArcFlag?0:1,e.sweepFlag=0===e.sweepFlag?0:1;var r=e.rX,s=e.rY,i=e.x,a=e.y;r=Math.abs(e.rX),s=Math.abs(e.rY);var u=o([(t-i)/2,(n-a)/2],-e.xRot/180*l),c=u[0],h=u[1],d=Math.pow(c,2)/Math.pow(r,2)+Math.pow(h,2)/Math.pow(s,2);1<d&&(r*=Math.sqrt(d),s*=Math.sqrt(d)),e.rX=r,e.rY=s;var f=Math.pow(r,2)*Math.pow(h,2)+Math.pow(s,2)*Math.pow(c,2),p=(e.lArcFlag!==e.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(r,2)*Math.pow(s,2)-f)/f)),m=r*h/s*p,g=-s*c/r*p,v=o([m,g],e.xRot/180*l);e.cX=v[0]+(t+i)/2,e.cY=v[1]+(n+a)/2,e.phi1=Math.atan2((h-g)/s,(c-m)/r),e.phi2=Math.atan2((-h-g)/s,(-c-m)/r),0===e.sweepFlag&&e.phi2>e.phi1&&(e.phi2-=2*l),1===e.sweepFlag&&e.phi2<e.phi1&&(e.phi2+=2*l),e.phi1*=180/l,e.phi2*=180/l}function c(e,t,n){a(e,t,n);var r=e*e+t*t-n*n;if(0>r)return[];if(0===r)return[[e*n/(e*e+t*t),t*n/(e*e+t*t)]];var s=Math.sqrt(r);return[[(e*n+t*s)/(e*e+t*t),(t*n-e*s)/(e*e+t*t)],[(e*n-t*s)/(e*e+t*t),(t*n+e*s)/(e*e+t*t)]]}var h,d=Math.PI/180;function f(e,t,n){return(1-n)*e+n*t}function p(e,t,n,r){return e+Math.cos(r/180*l)*t+Math.sin(r/180*l)*n}function m(e,t,n,r){var s=1e-6,i=t-e,o=n-t,a=3*i+3*(r-n)-6*o,l=6*(o-i),u=3*i;return Math.abs(a)<s?[-u/l]:function(e,t,n){void 0===n&&(n=1e-6);var r=e*e/4-t;if(r<-n)return[];if(r<=n)return[-e/2];var s=Math.sqrt(r);return[-e/2-s,-e/2+s]}(l/a,u/a,s)}function g(e,t,n,r,s){var i=1-s;return e*(i*i*i)+t*(3*i*i*s)+n*(3*i*s*s)+r*(s*s*s)}!function(e){function t(){return s(function(e,t,n){return e.relative&&(void 0!==e.x1&&(e.x1+=t),void 0!==e.y1&&(e.y1+=n),void 0!==e.x2&&(e.x2+=t),void 0!==e.y2&&(e.y2+=n),void 0!==e.x&&(e.x+=t),void 0!==e.y&&(e.y+=n),e.relative=!1),e})}function n(){var e=NaN,t=NaN,n=NaN,r=NaN;return s(function(s,i,o){return s.type&w.SMOOTH_CURVE_TO&&(s.type=w.CURVE_TO,e=isNaN(e)?i:e,t=isNaN(t)?o:t,s.x1=s.relative?i-e:2*i-e,s.y1=s.relative?o-t:2*o-t),s.type&w.CURVE_TO?(e=s.relative?i+s.x2:s.x2,t=s.relative?o+s.y2:s.y2):(e=NaN,t=NaN),s.type&w.SMOOTH_QUAD_TO&&(s.type=w.QUAD_TO,n=isNaN(n)?i:n,r=isNaN(r)?o:r,s.x1=s.relative?i-n:2*i-n,s.y1=s.relative?o-r:2*o-r),s.type&w.QUAD_TO?(n=s.relative?i+s.x1:s.x1,r=s.relative?o+s.y1:s.y1):(n=NaN,r=NaN),s})}function r(){var e=NaN,t=NaN;return s(function(n,r,s){if(n.type&w.SMOOTH_QUAD_TO&&(n.type=w.QUAD_TO,e=isNaN(e)?r:e,t=isNaN(t)?s:t,n.x1=n.relative?r-e:2*r-e,n.y1=n.relative?s-t:2*s-t),n.type&w.QUAD_TO){e=n.relative?r+n.x1:n.x1,t=n.relative?s+n.y1:n.y1;var i=n.x1,o=n.y1;n.type=w.CURVE_TO,n.x1=((n.relative?0:r)+2*i)/3,n.y1=((n.relative?0:s)+2*o)/3,n.x2=(n.x+2*i)/3,n.y2=(n.y+2*o)/3}else e=NaN,t=NaN;return n})}function s(e){var t=0,n=0,r=NaN,s=NaN;return function(i){if(isNaN(r)&&!(i.type&w.MOVE_TO))throw new Error("path must start with moveto");var o=e(i,t,n,r,s);return i.type&w.CLOSE_PATH&&(t=r,n=s),void 0!==i.x&&(t=i.relative?t+i.x:i.x),void 0!==i.y&&(n=i.relative?n+i.y:i.y),i.type&w.MOVE_TO&&(r=t,s=n),o}}function i(e,t,n,r,i,o){return a(e,t,n,r,i,o),s(function(s,a,l,u){var c=s.x1,h=s.x2,d=s.relative&&!isNaN(u),f=void 0!==s.x?s.x:d?0:a,p=void 0!==s.y?s.y:d?0:l;function m(e){return e*e}s.type&w.HORIZ_LINE_TO&&0!==t&&(s.type=w.LINE_TO,s.y=s.relative?0:l),s.type&w.VERT_LINE_TO&&0!==n&&(s.type=w.LINE_TO,s.x=s.relative?0:a),void 0!==s.x&&(s.x=s.x*e+p*n+(d?0:i)),void 0!==s.y&&(s.y=f*t+s.y*r+(d?0:o)),void 0!==s.x1&&(s.x1=s.x1*e+s.y1*n+(d?0:i)),void 0!==s.y1&&(s.y1=c*t+s.y1*r+(d?0:o)),void 0!==s.x2&&(s.x2=s.x2*e+s.y2*n+(d?0:i)),void 0!==s.y2&&(s.y2=h*t+s.y2*r+(d?0:o));var g=e*r-t*n;if(void 0!==s.xRot&&(1!==e||0!==t||0!==n||1!==r))if(0===g)delete s.rX,delete s.rY,delete s.xRot,delete s.lArcFlag,delete s.sweepFlag,s.type=w.LINE_TO;else{var v=s.xRot*Math.PI/180,y=Math.sin(v),b=Math.cos(v),_=1/m(s.rX),j=1/m(s.rY),x=m(b)*_+m(y)*j,A=2*y*b*(_-j),S=m(y)*_+m(b)*j,N=x*r*r-A*t*r+S*t*t,L=A*(e*r+t*n)-2*(x*n*r+S*e*t),k=x*n*n-A*e*n+S*e*e,P=(Math.atan2(L,N-k)+Math.PI)%Math.PI/2,E=Math.sin(P),C=Math.cos(P);s.rX=Math.abs(g)/Math.sqrt(N*m(C)+L*E*C+k*m(E)),s.rY=Math.abs(g)/Math.sqrt(N*m(E)-L*E*C+k*m(C)),s.xRot=180*P/Math.PI}return void 0!==s.sweepFlag&&0>g&&(s.sweepFlag=+!s.sweepFlag),s})}e.ROUND=function(e){function t(t){return Math.round(t*e)/e}return void 0===e&&(e=1e13),a(e),function(e){return void 0!==e.x1&&(e.x1=t(e.x1)),void 0!==e.y1&&(e.y1=t(e.y1)),void 0!==e.x2&&(e.x2=t(e.x2)),void 0!==e.y2&&(e.y2=t(e.y2)),void 0!==e.x&&(e.x=t(e.x)),void 0!==e.y&&(e.y=t(e.y)),void 0!==e.rX&&(e.rX=t(e.rX)),void 0!==e.rY&&(e.rY=t(e.rY)),e}},e.TO_ABS=t,e.TO_REL=function(){return s(function(e,t,n){return e.relative||(void 0!==e.x1&&(e.x1-=t),void 0!==e.y1&&(e.y1-=n),void 0!==e.x2&&(e.x2-=t),void 0!==e.y2&&(e.y2-=n),void 0!==e.x&&(e.x-=t),void 0!==e.y&&(e.y-=n),e.relative=!0),e})},e.NORMALIZE_HVZ=function(e,t,n){return void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===n&&(n=!0),s(function(r,s,i,o,a){if(isNaN(o)&&!(r.type&w.MOVE_TO))throw new Error("path must start with moveto");return t&&r.type&w.HORIZ_LINE_TO&&(r.type=w.LINE_TO,r.y=r.relative?0:i),n&&r.type&w.VERT_LINE_TO&&(r.type=w.LINE_TO,r.x=r.relative?0:s),e&&r.type&w.CLOSE_PATH&&(r.type=w.LINE_TO,r.x=r.relative?o-s:o,r.y=r.relative?a-i:a),r.type&w.ARC&&(0===r.rX||0===r.rY)&&(r.type=w.LINE_TO,delete r.rX,delete r.rY,delete r.xRot,delete r.lArcFlag,delete r.sweepFlag),r})},e.NORMALIZE_ST=n,e.QT_TO_C=r,e.INFO=s,e.SANITIZE=function(e){void 0===e&&(e=0),a(e);var t=NaN,n=NaN,r=NaN,i=NaN;return s(function(s,o,a,l,u){var c=Math.abs,h=!1,d=0,f=0;if(s.type&w.SMOOTH_CURVE_TO&&(d=isNaN(t)?0:o-t,f=isNaN(n)?0:a-n),s.type&(w.CURVE_TO|w.SMOOTH_CURVE_TO)?(t=s.relative?o+s.x2:s.x2,n=s.relative?a+s.y2:s.y2):(t=NaN,n=NaN),s.type&w.SMOOTH_QUAD_TO?(r=isNaN(r)?o:2*o-r,i=isNaN(i)?a:2*a-i):s.type&w.QUAD_TO?(r=s.relative?o+s.x1:s.x1,i=s.relative?a+s.y1:s.y2):(r=NaN,i=NaN),s.type&w.LINE_COMMANDS||s.type&w.ARC&&(0===s.rX||0===s.rY||!s.lArcFlag)||s.type&w.CURVE_TO||s.type&w.SMOOTH_CURVE_TO||s.type&w.QUAD_TO||s.type&w.SMOOTH_QUAD_TO){var p=void 0===s.x?0:s.relative?s.x:s.x-o,m=void 0===s.y?0:s.relative?s.y:s.y-a;d=isNaN(r)?void 0===s.x1?d:s.relative?s.x:s.x1-o:r-o,f=isNaN(i)?void 0===s.y1?f:s.relative?s.y:s.y1-a:i-a;var g=void 0===s.x2?0:s.relative?s.x:s.x2-o,v=void 0===s.y2?0:s.relative?s.y:s.y2-a;c(p)<=e&&c(m)<=e&&c(d)<=e&&c(f)<=e&&c(g)<=e&&c(v)<=e&&(h=!0)}return s.type&w.CLOSE_PATH&&c(o-l)<=e&&c(a-u)<=e&&(h=!0),h?[]:s})},e.MATRIX=i,e.ROTATE=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=0),a(e,t,n);var r=Math.sin(e),s=Math.cos(e);return i(s,r,-r,s,t-t*s+n*r,n-t*r-n*s)},e.TRANSLATE=function(e,t){return void 0===t&&(t=0),a(e,t),i(1,0,0,1,e,t)},e.SCALE=function(e,t){return void 0===t&&(t=e),a(e,t),i(e,0,0,t,0,0)},e.SKEW_X=function(e){return a(e),i(1,0,Math.atan(e),1,0,0)},e.SKEW_Y=function(e){return a(e),i(1,Math.atan(e),0,1,0,0)},e.X_AXIS_SYMMETRY=function(e){return void 0===e&&(e=0),a(e),i(-1,0,0,1,e,0)},e.Y_AXIS_SYMMETRY=function(e){return void 0===e&&(e=0),a(e),i(1,0,0,-1,0,e)},e.A_TO_C=function(){return s(function(e,t,n){return w.ARC===e.type?function(e,t,n){var r,s,i,a;e.cX||u(e,t,n);for(var l=Math.min(e.phi1,e.phi2),c=Math.max(e.phi1,e.phi2)-l,h=Math.ceil(c/90),p=new Array(h),m=t,g=n,v=0;v<h;v++){var y=f(e.phi1,e.phi2,v/h),b=f(e.phi1,e.phi2,(v+1)/h),_=b-y,j=4/3*Math.tan(_*d/4),x=[Math.cos(y*d)-j*Math.sin(y*d),Math.sin(y*d)+j*Math.cos(y*d)],A=x[0],S=x[1],N=[Math.cos(b*d),Math.sin(b*d)],L=N[0],k=N[1],P=[L+j*Math.sin(b*d),k-j*Math.cos(b*d)],E=P[0],C=P[1];p[v]={relative:e.relative,type:w.CURVE_TO};var O=function(t,n){var r=o([t*e.rX,n*e.rY],e.xRot),s=r[0],i=r[1];return[e.cX+s,e.cY+i]};r=O(A,S),p[v].x1=r[0],p[v].y1=r[1],s=O(E,C),p[v].x2=s[0],p[v].y2=s[1],i=O(L,k),p[v].x=i[0],p[v].y=i[1],e.relative&&(p[v].x1-=m,p[v].y1-=g,p[v].x2-=m,p[v].y2-=g,p[v].x-=m,p[v].y-=g),m=(a=[p[v].x,p[v].y])[0],g=a[1]}return p}(e,e.relative?0:t,e.relative?0:n):e})},e.ANNOTATE_ARCS=function(){return s(function(e,t,n){return e.relative&&(t=0,n=0),w.ARC===e.type&&u(e,t,n),e})},e.CLONE=function(){return function(e){var t={};for(var n in e)t[n]=e[n];return t}},e.CALCULATE_BOUNDS=function(){var e=t(),i=r(),o=n(),a=s(function(t,n,r){var s=o(i(e(function(e){var t={};for(var n in e)t[n]=e[n];return t}(t))));function l(e){e>a.maxX&&(a.maxX=e),e<a.minX&&(a.minX=e)}function h(e){e>a.maxY&&(a.maxY=e),e<a.minY&&(a.minY=e)}if(s.type&w.DRAWING_COMMANDS&&(l(n),h(r)),s.type&w.HORIZ_LINE_TO&&l(s.x),s.type&w.VERT_LINE_TO&&h(s.y),s.type&w.LINE_TO&&(l(s.x),h(s.y)),s.type&w.CURVE_TO){l(s.x),h(s.y);for(var d=0,f=m(n,s.x1,s.x2,s.x);d<f.length;d++)0<(T=f[d])&&1>T&&l(g(n,s.x1,s.x2,s.x,T));for(var v=0,y=m(r,s.y1,s.y2,s.y);v<y.length;v++)0<(T=y[v])&&1>T&&h(g(r,s.y1,s.y2,s.y,T))}if(s.type&w.ARC){l(s.x),h(s.y),u(s,n,r);for(var b=s.xRot/180*Math.PI,_=Math.cos(b)*s.rX,j=Math.sin(b)*s.rX,x=-Math.sin(b)*s.rY,A=Math.cos(b)*s.rY,S=s.phi1<s.phi2?[s.phi1,s.phi2]:-180>s.phi2?[s.phi2+360,s.phi1+360]:[s.phi2,s.phi1],N=S[0],L=S[1],k=function(e){var t=e[0],n=e[1],r=180*Math.atan2(n,t)/Math.PI;return r<N?r+360:r},P=0,E=c(x,-_,0).map(k);P<E.length;P++)(T=E[P])>N&&T<L&&l(p(s.cX,_,x,T));for(var C=0,O=c(A,-j,0).map(k);C<O.length;C++){var T;(T=O[C])>N&&T<L&&h(p(s.cY,j,A,T))}}return t});return a.minX=1/0,a.maxX=-1/0,a.minY=1/0,a.maxY=-1/0,a}}(h||(h={}));var v,y=function(){function e(){}return e.prototype.round=function(e){return this.transform(h.ROUND(e))},e.prototype.toAbs=function(){return this.transform(h.TO_ABS())},e.prototype.toRel=function(){return this.transform(h.TO_REL())},e.prototype.normalizeHVZ=function(e,t,n){return this.transform(h.NORMALIZE_HVZ(e,t,n))},e.prototype.normalizeST=function(){return this.transform(h.NORMALIZE_ST())},e.prototype.qtToC=function(){return this.transform(h.QT_TO_C())},e.prototype.aToC=function(){return this.transform(h.A_TO_C())},e.prototype.sanitize=function(e){return this.transform(h.SANITIZE(e))},e.prototype.translate=function(e,t){return this.transform(h.TRANSLATE(e,t))},e.prototype.scale=function(e,t){return this.transform(h.SCALE(e,t))},e.prototype.rotate=function(e,t,n){return this.transform(h.ROTATE(e,t,n))},e.prototype.matrix=function(e,t,n,r,s,i){return this.transform(h.MATRIX(e,t,n,r,s,i))},e.prototype.skewX=function(e){return this.transform(h.SKEW_X(e))},e.prototype.skewY=function(e){return this.transform(h.SKEW_Y(e))},e.prototype.xSymmetry=function(e){return this.transform(h.X_AXIS_SYMMETRY(e))},e.prototype.ySymmetry=function(e){return this.transform(h.Y_AXIS_SYMMETRY(e))},e.prototype.annotateArcs=function(){return this.transform(h.ANNOTATE_ARCS())},e}(),b=function(e){return" "===e||"\t"===e||"\r"===e||"\n"===e},_=function(e){return"0".charCodeAt(0)<=e.charCodeAt(0)&&e.charCodeAt(0)<="9".charCodeAt(0)},j=function(e){function t(){var t=e.call(this)||this;return t.curNumber="",t.curCommandType=-1,t.curCommandRelative=!1,t.canParseCommandOrComma=!0,t.curNumberHasExp=!1,t.curNumberHasExpDigits=!1,t.curNumberHasDecimal=!1,t.curArgs=[],t}return s(t,e),t.prototype.finish=function(e){if(void 0===e&&(e=[]),this.parse(" ",e),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return e},t.prototype.parse=function(e,t){var n=this;void 0===t&&(t=[]);for(var r=function(e){t.push(e),n.curArgs.length=0,n.canParseCommandOrComma=!0},s=0;s<e.length;s++){var i=e[s],o=!(this.curCommandType!==w.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),a=_(i)&&("0"===this.curNumber&&"0"===i||o);if(!_(i)||a)if("e"!==i&&"E"!==i)if("-"!==i&&"+"!==i||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==i||this.curNumberHasExp||this.curNumberHasDecimal||o){if(this.curNumber&&-1!==this.curCommandType){var l=Number(this.curNumber);if(isNaN(l))throw new SyntaxError("Invalid number ending at "+s);if(this.curCommandType===w.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>l)throw new SyntaxError('Expected positive number, got "'+l+'" at index "'+s+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+s+'"');this.curArgs.push(l),this.curArgs.length===x[this.curCommandType]&&(w.HORIZ_LINE_TO===this.curCommandType?r({type:w.HORIZ_LINE_TO,relative:this.curCommandRelative,x:l}):w.VERT_LINE_TO===this.curCommandType?r({type:w.VERT_LINE_TO,relative:this.curCommandRelative,y:l}):this.curCommandType===w.MOVE_TO||this.curCommandType===w.LINE_TO||this.curCommandType===w.SMOOTH_QUAD_TO?(r({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),w.MOVE_TO===this.curCommandType&&(this.curCommandType=w.LINE_TO)):this.curCommandType===w.CURVE_TO?r({type:w.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===w.SMOOTH_CURVE_TO?r({type:w.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===w.QUAD_TO?r({type:w.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===w.ARC&&r({type:w.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!b(i))if(","===i&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==i&&"-"!==i&&"."!==i)if(a)this.curNumber=i,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+s+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+i+'" at index '+s+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==i&&"Z"!==i)if("h"===i||"H"===i)this.curCommandType=w.HORIZ_LINE_TO,this.curCommandRelative="h"===i;else if("v"===i||"V"===i)this.curCommandType=w.VERT_LINE_TO,this.curCommandRelative="v"===i;else if("m"===i||"M"===i)this.curCommandType=w.MOVE_TO,this.curCommandRelative="m"===i;else if("l"===i||"L"===i)this.curCommandType=w.LINE_TO,this.curCommandRelative="l"===i;else if("c"===i||"C"===i)this.curCommandType=w.CURVE_TO,this.curCommandRelative="c"===i;else if("s"===i||"S"===i)this.curCommandType=w.SMOOTH_CURVE_TO,this.curCommandRelative="s"===i;else if("q"===i||"Q"===i)this.curCommandType=w.QUAD_TO,this.curCommandRelative="q"===i;else if("t"===i||"T"===i)this.curCommandType=w.SMOOTH_QUAD_TO,this.curCommandRelative="t"===i;else{if("a"!==i&&"A"!==i)throw new SyntaxError('Unexpected character "'+i+'" at index '+s+".");this.curCommandType=w.ARC,this.curCommandRelative="a"===i}else t.push({type:w.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=i,this.curNumberHasDecimal="."===i}else this.curNumber+=i,this.curNumberHasDecimal=!0;else this.curNumber+=i;else this.curNumber+=i,this.curNumberHasExp=!0;else this.curNumber+=i,this.curNumberHasExpDigits=this.curNumberHasExp}return t},t.prototype.transform=function(e){return Object.create(this,{parse:{value:function(t,n){void 0===n&&(n=[]);for(var r=0,s=Object.getPrototypeOf(this).parse.call(this,t);r<s.length;r++){var i=s[r],o=e(i);Array.isArray(o)?n.push.apply(n,o):n.push(o)}return n}}})},t}(y),w=function(e){function t(n){var r=e.call(this)||this;return r.commands="string"==typeof n?t.parse(n):n,r}return s(t,e),t.prototype.encode=function(){return t.encode(this.commands)},t.prototype.getBounds=function(){var e=h.CALCULATE_BOUNDS();return this.transform(e),e},t.prototype.transform=function(e){for(var t=[],n=0,r=this.commands;n<r.length;n++){var s=e(r[n]);Array.isArray(s)?t.push.apply(t,s):t.push(s)}return this.commands=t,this},t.encode=function(e){return i(e)},t.parse=function(e){var t=new j,n=[];return t.parse(e,n),t.finish(n),n},t.CLOSE_PATH=1,t.MOVE_TO=2,t.HORIZ_LINE_TO=4,t.VERT_LINE_TO=8,t.LINE_TO=16,t.CURVE_TO=32,t.SMOOTH_CURVE_TO=64,t.QUAD_TO=128,t.SMOOTH_QUAD_TO=256,t.ARC=512,t.LINE_COMMANDS=t.LINE_TO|t.HORIZ_LINE_TO|t.VERT_LINE_TO,t.DRAWING_COMMANDS=t.HORIZ_LINE_TO|t.VERT_LINE_TO|t.LINE_TO|t.CURVE_TO|t.SMOOTH_CURVE_TO|t.QUAD_TO|t.SMOOTH_QUAD_TO|t.ARC,t}(y),x=((v={})[w.MOVE_TO]=2,v[w.LINE_TO]=2,v[w.HORIZ_LINE_TO]=1,v[w.VERT_LINE_TO]=1,v[w.CLOSE_PATH]=0,v[w.QUAD_TO]=4,v[w.SMOOTH_QUAD_TO]=2,v[w.CURVE_TO]=6,v[w.SMOOTH_CURVE_TO]=4,v[w.ARC]=7,v)},"./src/plugin/hyperlinks.js":function(e,t,n){"use strict";n.r(t),n("./node_modules/core-js/modules/es.object.to-string.js"),n("./node_modules/core-js/modules/es.string.link.js"),n("./node_modules/core-js/modules/esnext.iterator.constructor.js"),n("./node_modules/core-js/modules/esnext.iterator.for-each.js"),n("./node_modules/core-js/modules/web.dom-collections.for-each.js");var r=n("./src/worker.js"),s=n("./src/utils.js"),i=[],o={toContainer:r.default.prototype.toContainer,toPdf:r.default.prototype.toPdf};r.default.prototype.toContainer=function(){return o.toContainer.call(this).then(function(){if(this.opt.enableLinks){var e=this.prop.container,t=e.querySelectorAll("a"),n=(0,s.unitConvert)(e.getBoundingClientRect(),this.prop.pageSize.k);i=[],Array.prototype.forEach.call(t,function(e){for(var t=e.getClientRects(),r=0;r<t.length;r++){var o=(0,s.unitConvert)(t[r],this.prop.pageSize.k);o.left-=n.left,o.top-=n.top;var a=Math.floor(o.top/this.prop.pageSize.inner.height)+1,l=this.opt.margin[0]+o.top%this.prop.pageSize.inner.height,u=this.opt.margin[1]+o.left;i.push({page:a,top:l,left:u,clientRect:o,link:e})}},this)}})},r.default.prototype.toPdf=function(){return o.toPdf.call(this).then(function(){if(this.opt.enableLinks){i.forEach(function(e){this.prop.pdf.setPage(e.page),this.prop.pdf.link(e.left,e.top,e.clientRect.width,e.clientRect.height,{url:e.link.href})},this);var e=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(e)}})}},"./src/plugin/jspdf-plugin.js":function(e,t,n){"use strict";n.r(t),n("./node_modules/core-js/modules/es.symbol.js"),n("./node_modules/core-js/modules/es.symbol.description.js"),n("./node_modules/core-js/modules/es.symbol.iterator.js"),n("./node_modules/core-js/modules/es.array.iterator.js"),n("./node_modules/core-js/modules/es.object.to-string.js"),n("./node_modules/core-js/modules/es.string.iterator.js"),n("./node_modules/core-js/modules/web.dom-collections.iterator.js");var r=n("./node_modules/jspdf/dist/jspdf.es.min.js");function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}r.default.getPageSize=function(e,t,n){if("object"===s(e)){var r=e;e=r.orientation,t=r.unit||t,n=r.format||n}t=t||"mm",n=n||"a4",e=(""+(e||"P")).toLowerCase();var i=(""+n).toLowerCase(),o={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(t){case"pt":var a=1;break;case"mm":a=72/25.4;break;case"cm":a=72/2.54;break;case"in":a=72;break;case"px":a=.75;break;case"pc":case"em":a=12;break;case"ex":a=6;break;default:throw"Invalid unit: "+t}if(o.hasOwnProperty(i))var l=o[i][1]/a,u=o[i][0]/a;else try{l=n[1],u=n[0]}catch(e){throw new Error("Invalid format: "+n)}if("p"===e||"portrait"===e){if(e="p",u>l){var c=u;u=l,l=c}}else{if("l"!==e&&"landscape"!==e)throw"Invalid orientation: "+e;e="l",l>u&&(c=u,u=l,l=c)}return{width:u,height:l,unit:t,k:a}},t.default=r.default},"./src/plugin/pagebreaks.js":function(e,t,n){"use strict";n.r(t),n("./node_modules/core-js/modules/es.array.concat.js"),n("./node_modules/core-js/modules/es.array.join.js"),n("./node_modules/core-js/modules/es.array.slice.js"),n("./node_modules/core-js/modules/es.object.keys.js"),n("./node_modules/core-js/modules/es.object.to-string.js"),n("./node_modules/core-js/modules/esnext.iterator.constructor.js"),n("./node_modules/core-js/modules/esnext.iterator.for-each.js"),n("./node_modules/core-js/modules/web.dom-collections.for-each.js");var r=n("./src/worker.js"),s=n("./src/utils.js"),i={toContainer:r.default.prototype.toContainer};r.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},r.default.prototype.toContainer=function(){return i.toContainer.call(this).then(function(){var e=this.prop.container,t=this.prop.pageSize.inner.px.height,n=[].concat(this.opt.pagebreak.mode),r={avoidAll:-1!==n.indexOf("avoid-all"),css:-1!==n.indexOf("css"),legacy:-1!==n.indexOf("legacy")},i={},o=this;["before","after","avoid"].forEach(function(t){var n=r.avoidAll&&"avoid"===t;i[t]=n?[]:[].concat(o.opt.pagebreak[t]||[]),i[t].length>0&&(i[t]=Array.prototype.slice.call(e.querySelectorAll(i[t].join(", "))))});var a=e.querySelectorAll(".html2pdf__page-break");a=Array.prototype.slice.call(a);var l=e.querySelectorAll("*");Array.prototype.forEach.call(l,function(e){var n={before:!1,after:r.legacy&&-1!==a.indexOf(e),avoid:r.avoidAll};if(r.css){var o=window.getComputedStyle(e),l=["always","page","left","right"];n={before:n.before||-1!==l.indexOf(o.breakBefore||o.pageBreakBefore),after:n.after||-1!==l.indexOf(o.breakAfter||o.pageBreakAfter),avoid:n.avoid||-1!==["avoid","avoid-page"].indexOf(o.breakInside||o.pageBreakInside)}}Object.keys(n).forEach(function(t){n[t]=n[t]||-1!==i[t].indexOf(e)});var u=e.getBoundingClientRect();if(n.avoid&&!n.before){var c=Math.floor(u.top/t),h=Math.floor(u.bottom/t),d=Math.abs(u.bottom-u.top)/t;h!==c&&d<=1&&(n.before=!0)}if(n.before){var f=(0,s.createElement)("div",{style:{display:"block",height:t-u.top%t+"px"}});e.parentNode.insertBefore(f,e)}n.after&&(f=(0,s.createElement)("div",{style:{display:"block",height:t-u.bottom%t+"px"}}),e.parentNode.insertBefore(f,e.nextSibling))})})}},"./src/snapdom/clone.js":function(e,t,n){"use strict";function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e){if(!e)throw new Error("Invalid node");var t,n=new Set,s=null;if(e.nodeType===Node.TEXT_NODE)return e.cloneNode(!0);if(e.nodeType!==Node.ELEMENT_NODE)return e.cloneNode(!0);if("IFRAME"===e.tagName){var o=document.createElement("div");return o.style.cssText="width:".concat(e.offsetWidth,"px;height:").concat(e.offsetHeight,"px;background-image:repeating-linear-gradient(45deg,#ddd,#ddd 5px,#f9f9f9 5px,#f9f9f9 10px);display:flex;align-items:center;justify-content:center;font-size:12px;color:#555;border:1px solid #aaa;"),o}if("CANVAS"===e.tagName){var a=e.toDataURL(),l=document.createElement("img");return l.src=a,l.width=e.width,l.height=e.height,l}try{t=e.cloneNode(!1),"IMG"===e.tagName&&function(e,t){try{var n=e.currentSrc||e.src||"";if(!n)return;t.setAttribute("src",n),t.removeAttribute("srcset"),t.removeAttribute("sizes"),t.loading="eager",t.decoding="sync"}catch(e){}}(e,t)}catch(t){throw console.error("[Snapdom] Failed to clone node:",e,t),t}if(e instanceof HTMLTextAreaElement){t.textContent=e.value,t.value=e.value;var u=e.getBoundingClientRect();return t.style.boxSizing="border-box",t.style.width="".concat(u.width,"px"),t.style.height="".concat(u.height,"px"),t}if(e instanceof HTMLInputElement&&(e.hasAttribute("value")&&(t.value=e.value,t.setAttribute("value",e.value)),void 0!==e.checked&&(t.checked=e.checked,e.checked&&t.setAttribute("checked",""),e.indeterminate&&(t.indeterminate=e.indeterminate))),e instanceof HTMLSelectElement&&(s=e.value),e.shadowRoot)if(Array.from(e.shadowRoot.querySelectorAll("slot")).length>0);else{var c,h=document.createDocumentFragment(),d=r(e.shadowRoot.childNodes);try{for(d.s();!(c=d.n()).done;){var f=c.value;if(f.nodeType!==Node.ELEMENT_NODE||"STYLE"!==f.tagName){var p=i(f);p&&h.appendChild(p)}}}catch(e){d.e(e)}finally{d.f()}t.appendChild(h)}if("SLOT"===e.tagName){var m,g,v=(null===(m=e.assignedNodes)||void 0===m?void 0:m.call(e,{flatten:!0}))||[],y=v.length>0?v:Array.from(e.childNodes),b=document.createDocumentFragment(),_=r(y);try{for(_.s();!(g=_.n()).done;){var j=i(g.value);j&&b.appendChild(j)}}catch(e){_.e(e)}finally{_.f()}return b}var w,x=r(e.childNodes);try{for(x.s();!(w=x.n()).done;){var A=w.value;if(!n.has(A)){var S=i(A);S&&t.appendChild(S)}}}catch(e){x.e(e)}finally{x.f()}if(null!==s&&t instanceof HTMLSelectElement){t.value=s;var N,L=r(t.options);try{for(L.s();!(N=L.n()).done;){var k=N.value;k.value===s?k.setAttribute("selected",""):k.removeAttribute("selected")}}catch(e){L.e(e)}finally{L.f()}}var P=e.scrollLeft,E=e.scrollTop;if((P||E)&&t instanceof HTMLElement){t.style.overflow="hidden",t.style.scrollbarWidth="none",t.style.msOverflowStyle="none";var C=document.createElement("div");for(C.style.transform="translate(".concat(-P,"px, ").concat(-E,"px)"),C.style.willChange="transform",C.style.display="inline-block",C.style.width="100%";t.firstChild;)C.appendChild(t.firstChild);t.appendChild(C)}return t}n.r(t),n.d(t,{deepCloneBasic:function(){return i}}),n("./node_modules/core-js/modules/es.symbol.js"),n("./node_modules/core-js/modules/es.symbol.description.js"),n("./node_modules/core-js/modules/es.symbol.iterator.js"),n("./node_modules/core-js/modules/es.array.concat.js"),n("./node_modules/core-js/modules/es.array.from.js"),n("./node_modules/core-js/modules/es.array.iterator.js"),n("./node_modules/core-js/modules/es.array.slice.js"),n("./node_modules/core-js/modules/es.function.name.js"),n("./node_modules/core-js/modules/es.object.to-string.js"),n("./node_modules/core-js/modules/es.regexp.exec.js"),n("./node_modules/core-js/modules/es.regexp.test.js"),n("./node_modules/core-js/modules/es.regexp.to-string.js"),n("./node_modules/core-js/modules/es.set.js"),n("./node_modules/core-js/modules/es.string.iterator.js"),n("./node_modules/core-js/modules/esnext.set.add-all.js"),n("./node_modules/core-js/modules/esnext.set.delete-all.js"),n("./node_modules/core-js/modules/esnext.set.difference.js"),n("./node_modules/core-js/modules/esnext.set.every.js"),n("./node_modules/core-js/modules/esnext.set.filter.js"),n("./node_modules/core-js/modules/esnext.set.find.js"),n("./node_modules/core-js/modules/esnext.set.intersection.js"),n("./node_modules/core-js/modules/esnext.set.is-disjoint-from.js"),n("./node_modules/core-js/modules/esnext.set.is-subset-of.js"),n("./node_modules/core-js/modules/esnext.set.is-superset-of.js"),n("./node_modules/core-js/modules/esnext.set.join.js"),n("./node_modules/core-js/modules/esnext.set.map.js"),n("./node_modules/core-js/modules/esnext.set.reduce.js"),n("./node_modules/core-js/modules/esnext.set.some.js"),n("./node_modules/core-js/modules/esnext.set.symmetric-difference.js"),n("./node_modules/core-js/modules/esnext.set.union.js"),n("./node_modules/core-js/modules/web.dom-collections.iterator.js")},"./src/utils.js":function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.r(t),n.d(t,{createElement:function(){return i},objType:function(){return s},toPx:function(){return a},unitConvert:function(){return o}}),n("./node_modules/core-js/modules/es.symbol.js"),n("./node_modules/core-js/modules/es.symbol.description.js"),n("./node_modules/core-js/modules/es.symbol.iterator.js"),n("./node_modules/core-js/modules/es.array.iterator.js"),n("./node_modules/core-js/modules/es.number.constructor.js"),n("./node_modules/core-js/modules/es.object.to-string.js"),n("./node_modules/core-js/modules/es.string.iterator.js"),n("./node_modules/core-js/modules/web.dom-collections.iterator.js");var s=function(e){var t=r(e);return"undefined"===t?"undefined":"string"===t||e instanceof String?"string":"number"===t||e instanceof Number?"number":"function"===t||e instanceof Function?"function":e&&e.constructor===Array?"array":e&&1===e.nodeType?"element":"object"===t?"object":"unknown"},i=function(e,t){var n=document.createElement(e);if(t.className&&(n.className=t.className),t.innerHTML){n.innerHTML=t.innerHTML;for(var r=n.getElementsByTagName("script"),s=r.length;s-- >0;null)r[s].parentNode.removeChild(r[s])}for(var i in t.style)n.style[i]=t.style[i];return n},o=function(e,t){if("number"===s(e))return 72*e/96/t;var n={};for(var r in e)n[r]=72*e[r]/96/t;return n},a=function(e,t){return Math.floor(e*t/72*96)}},"./src/worker.js":function(e,t,n){"use strict";n.r(t),n("./node_modules/core-js/modules/es.array.concat.js"),n("./node_modules/core-js/modules/es.array.map.js"),n("./node_modules/core-js/modules/es.function.name.js"),n("./node_modules/core-js/modules/es.json.stringify.js"),n("./node_modules/core-js/modules/es.object.assign.js"),n("./node_modules/core-js/modules/es.object.keys.js"),n("./node_modules/core-js/modules/es.object.to-string.js"),n("./node_modules/core-js/modules/es.promise.js"),n("./node_modules/core-js/modules/es.regexp.to-string.js"),n("./node_modules/core-js/modules/esnext.iterator.constructor.js"),n("./node_modules/core-js/modules/esnext.iterator.for-each.js"),n("./node_modules/core-js/modules/esnext.iterator.map.js"),n("./node_modules/core-js/modules/web.dom-collections.for-each.js"),n("./node_modules/core-js/modules/web.timers.js");var r=n("./node_modules/jspdf/dist/jspdf.es.min.js"),s=n("html2canvas"),i=n.n(s),o=n("./src/snapdom/clone.js"),a=n("./src/utils.js"),l=function e(t){var n=Object.assign(e.convert(Promise.resolve()),JSON.parse(JSON.stringify(e.template))),r=e.convert(Promise.resolve(),n);return(r=r.setProgress(1,e,1,[e])).set(t)};(l.prototype=Object.create(Promise.prototype)).constructor=l,l.convert=function(e,t){return e.__proto__=t||l.prototype,e},l.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],image:{type:"jpeg",quality:.95},enableLinks:!0,html2canvas:{},jsPDF:{}}},l.prototype.from=function(e,t){return this.then(function(){switch(t=t||function(e){switch((0,a.objType)(e)){case"string":return"string";case"element":return e.nodeName.toLowerCase&&"canvas"===e.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(e),t){case"string":return this.set({src:(0,a.createElement)("div",{innerHTML:e})});case"element":return this.set({src:e});case"canvas":return this.set({canvas:e});case"img":return this.set({img:e});default:return this.error("Unknown source type.")}})},l.prototype.to=function(e){switch(e){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},l.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var e={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},t={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};e.opacity=0;var n=(0,o.deepCloneBasic)(this.prop.src);return this.prop.overlay=(0,a.createElement)("div",{className:"html2pdf__overlay",style:e}),this.prop.container=(0,a.createElement)("div",{className:"html2pdf__container",style:t}),this.prop.container.appendChild(n),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),new Promise(function(e){return setTimeout(e,10)})})},l.prototype.toCanvas=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then(function(){var e=Object.assign({},this.opt.html2canvas);return delete e.onrendered,i()(this.prop.container,e)}).then(function(e){(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)})},l.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var e=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=e})},l.prototype.toPdf=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var e=this.prop.canvas,t=this.opt,n=e.height,s=Math.floor(e.width*this.prop.pageSize.inner.ratio),i=Math.ceil(n/s),o=this.prop.pageSize.inner.height,a=document.createElement("canvas"),l=a.getContext("2d");a.width=e.width,a.height=s,this.prop.pdf=this.prop.pdf||new r.default(t.jsPDF);for(var u=0;u<i;u++){u===i-1&&n%s!==0&&(a.height=n%s,o=a.height*this.prop.pageSize.inner.width/a.width);var c=a.width,h=a.height;l.fillStyle="white",l.fillRect(0,0,c,h),l.drawImage(e,0,u*s,c,h,0,0,c,h),u&&this.prop.pdf.addPage();var d=a.toDataURL("image/"+t.image.type,t.image.quality);this.prop.pdf.addImage(d,t.image.type,t.margin[1],t.margin[0],this.prop.pageSize.inner.width,o)}})},l.prototype.output=function(e,t,n){return"img"===(n=n||"pdf").toLowerCase()||"image"===n.toLowerCase()?this.outputImg(e,t):this.outputPdf(e,t)},l.prototype.outputPdf=function(e,t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(e,t)})},l.prototype.outputImg=function(e,t){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(e){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+e+'" is not supported.'}})},l.prototype.save=function(e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(e?{filename:e}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},l.prototype.set=function(e){if("object"!==(0,a.objType)(e))return this;var t=Object.keys(e||{}).map(function(t){switch(t){case"margin":return this.setMargin.bind(this,e.margin);case"jsPDF":return function(){return this.opt.jsPDF=e.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,e.pageSize);default:return t in l.template.prop?function(){this.prop[t]=e[t]}:function(){this.opt[t]=e[t]}}},this);return this.then(function(){return this.thenList(t)})},l.prototype.get=function(e,t){return this.then(function(){var n=e in l.template.prop?this.prop[e]:this.opt[e];return t?t(n):n})},l.prototype.setMargin=function(e){return this.then(function(){switch((0,a.objType)(e)){case"number":e=[e,e,e,e];case"array":if(2===e.length&&(e=[e[0],e[1],e[0],e[1]]),4===e.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=e}).then(this.setPageSize)},l.prototype.setPageSize=function(e){return this.then(function(){(e=e||r.default.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(e.inner={width:e.width-this.opt.margin[1]-this.opt.margin[3],height:e.height-this.opt.margin[0]-this.opt.margin[2]},e.inner.px={width:(0,a.toPx)(e.inner.width,e.k),height:(0,a.toPx)(e.inner.height,e.k)},e.inner.ratio=e.inner.height/e.inner.width),this.prop.pageSize=e})},l.prototype.setProgress=function(e,t,n,r){return null!=e&&(this.progress.val=e),null!=t&&(this.progress.state=t),null!=n&&(this.progress.n=n),null!=r&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},l.prototype.updateProgress=function(e,t,n,r){return this.setProgress(e?this.progress.val+e:null,t||null,n?this.progress.n+n:null,r?this.progress.stack.concat(r):null)},l.prototype.then=function(e,t){var n=this;return this.thenCore(e,t,function(e,t){return n.updateProgress(null,null,1,[e]),Promise.prototype.then.call(this,function(t){return n.updateProgress(null,e),t}).then(e,t).then(function(e){return n.updateProgress(1),e})})},l.prototype.thenCore=function(e,t,n){n=n||Promise.prototype.then;var r=this;e&&(e=e.bind(r)),t&&(t=t.bind(r));var s=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?r:l.convert(Object.assign({},r),Promise.prototype),i=n.call(s,e,t);return l.convert(i,r.__proto__)},l.prototype.thenExternal=function(e,t){return Promise.prototype.then.call(this,e,t)},l.prototype.thenList=function(e){var t=this;return e.forEach(function(e){t=t.thenCore(e)}),t},l.prototype.catch=function(e){e&&(e=e.bind(this));var t=Promise.prototype.catch.call(this,e);return l.convert(t,this)},l.prototype.catchExternal=function(e){return Promise.prototype.catch.call(this,e)},l.prototype.error=function(e){return this.then(function(){throw new Error(e)})},l.prototype.using=l.prototype.set,l.prototype.saveAs=l.prototype.save,l.prototype.export=l.prototype.output,l.prototype.run=l.prototype.then,t.default=l},html2canvas:function(t){"use strict";t.exports=e}},s={};function i(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={exports:{}};return r[e].call(n.exports,n,n.exports,i),n.exports}i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},i.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var s=Object.create(null);i.r(s);var o={};t=t||[null,n({}),n([]),n(n)];for(var a=2&r&&e;("object"==typeof a||"function"==typeof a)&&!~t.indexOf(a);a=n(a))Object.getOwnPropertyNames(a).forEach(function(t){o[t]=function(){return e[t]}});return o.default=function(){return e},i.d(s,o),s},i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){"use strict";i.r(o);var e=i("./src/worker.js"),t=(i("./src/plugin/jspdf-plugin.js"),i("./src/plugin/pagebreaks.js"),i("./src/plugin/hyperlinks.js"),function e(t,n){var r=new e.Worker(n);return t?r.from(t).save():r});t.Worker=e.default,o.default=t}(),o.default}()});
|
|
3
|
+
//# sourceMappingURL=html2pdf.min.js.map
|