Cesium-Examples/libs/mapbox-print-pdf/0.4.4/mapbox-print-pdf.min.js
2025-03-11 17:51:04 +08:00

616 lines
729 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* Mapbox Print Pdf - Printing PDFs with high resolution mapbox maps
* Copyright (c) 2015-2018 Matthew Petroff
* Copyright (c) 2018 Eddie Larsson
* Copyright (c) 2019 Simon Boustedt
* Copyright (c) 2000-2020 SuperMap Software Co. Ltd
* version 0.4.4
* github: https://github.com/SuperMap/mapbox-print-pdf/tree/enhance
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}(g.mapboxgl || (g.mapboxgl = {})).mapPrint = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
var check=require("./type-check.js"),UNITS={Points:"pt",Pixels:"px",Inches:"in",Millimeters:"mm",Centimeters:"cm"};function isValidPDFUnit(t){return check.isString(t)&&t!==UNITS.Pixels&&-1!==UNITS.Enumerated.indexOf(t)}UNITS.Enumerated=[UNITS.Points,UNITS.Pixels,UNITS.Inches,UNITS.Millimeters,UNITS.Centimeters];var Dimens=function(){var t=function(t){return!!check.isObject(t)&&(!!(t.hasOwnProperty("width")&&t.hasOwnProperty("height")&&t.hasOwnProperty("unit"))&&(!!(check.isNumber(t.width)&&check.isNumber(t.height)&&check.isString(t.unit))&&!(t.width<0||t.height<0||-1==UNITS.Enumerated.indexOf(t.unit))))},n=function(n){return!(!t(n)||!isValidPDFUnit(n.unit))},i=function(t,n){return n=n.to(t.unit()),new Dimens(t.width()+n.width(),t.height()+n.height(),t.unit())},e=function(t,n,e){this.to=function(i){return new Dimens(Dimens.to(t,e,i),Dimens.to(n,e,i),i)},this.toString=function(){return"width: "+t+e+"; height: "+n+e+";"},this.subtractMargin=function(t){return Dimens.subtractMargin(this,t)},this.add=function(t){return i(this,t)},this.area=function(){return t*n},this.sum=function(){return t+n},this.width=function(){return t},this.height=function(){return n},this.unit=function(){return e}};return e.isValidDimensionObject=t,e.toDimension=function(n){return n instanceof Dimens?n:t(n)?new Dimens(n.width,n.height,n.unit):null},e.toPdfDimension=function(t){return n?t instanceof Dimens?t:new Dimens(t.width,t.height,t.unit):null},e.subtractMargin=function(t,n){var i=n.to(t.unit());return new Dimens(t.width()-i.left()-i.right(),t.height()-i.top()-i.bottom(),t.unit())},e.to=function(t,n,i){return n===i?t:-1===(t=function(t,n){return n===UNITS.Inches?t:n===UNITS.Centimeters?t/2.54:n===UNITS.Millimeters?t/25.4:n===UNITS.Points?t/72:n===UNITS.Pixels?t/96:(console.error("Unrecognized unit: "+n),-1)}(t,n))?t:i===UNITS.Inches?t:i===UNITS.Centimeters?2.54*t:i===UNITS.Millimeters?25.4*t:i===UNITS.Points?72*t:i===UNITS.Pixels?96*t:(console.error("Unrecognized unit: "+i),-1)},e.add=i,e.isValidPdfDimensionObject=n,e}(),Margin=function(){var t=function(t,n){var i=t.right,e=t.left,r=t.top,u=t.bottom;this.to=function(t){return new Margin({right:Dimens.to(i,n,t),left:Dimens.to(e,n,t),top:Dimens.to(r,n,t),bottom:Dimens.to(u,n,t)},t)},this.top=function(){return r},this.left=function(){return e},this.right=function(){return i},this.bottom=function(){return u},this.toArray=function(){return[r,e,u,i]}};return t.createPDFMargin=function(t,n){return isValidPDFUnit(n)&&function(t){return!!(check.isNumber(t)&&t>=0)||!!check.isObject(t)&&!!(t.hasOwnProperty("top")&&t.hasOwnProperty("bottom")&&t.hasOwnProperty("right")&&t.hasOwnProperty("left"))&&!(!check.isNumber(t.top)||t.top<0||!check.isNumber(t.bottom)||t.bottom<0||!check.isNumber(t.left)||t.left<0||!check.isNumber(t.right)||t.right<0)}(t)?check.isNumber(t)?new Margin({top:t,left:t,right:t,bottom:t},n):new Margin(t,n):null},t}(),Size=function(t,n){this.to=function(i){return new Size(Dimens.to(t,n,i),i)},this.value=function(){return t},this.unit=function(){return n}};Size.from=function(t,n){return n=n||"value",t.hasOwnProperty(n)&&t.hasOwnProperty("unit")?!check.isNumber(t[n])||t[n]<0||-1==UNITS.Enumerated.indexOf(t.unit)?null:new Size(t[n],t.unit):null},module.exports={Dimens:Dimens,Margin:Margin,Size:Size,UNITS:UNITS};
},{"./type-check.js":7}],2:[function(require,module,exports){
var dimensions=require("./dimensions.js"),Dimens=dimensions.Dimens,UNITS=dimensions.UNITS,FormatConfig=function(){var n={a0:new Dimens(2383.94,3370.39,UNITS.Points),a1:new Dimens(1683.78,2383.94,UNITS.Points),a2:new Dimens(1190.55,1683.78,UNITS.Points),a3:new Dimens(841.89,1190.55,UNITS.Points),a4:new Dimens(595.28,841.89,UNITS.Points),a5:new Dimens(419.53,595.28,UNITS.Points),a6:new Dimens(297.64,419.53,UNITS.Points),a7:new Dimens(209.76,297.64,UNITS.Points),a8:new Dimens(147.4,209.76,UNITS.Points),a9:new Dimens(104.88,147.4,UNITS.Points),a10:new Dimens(73.7,104.88,UNITS.Points),b0:new Dimens(2834.65,4008.19,UNITS.Points),b1:new Dimens(2004.09,2834.65,UNITS.Points),b2:new Dimens(1417.32,2004.09,UNITS.Points),b3:new Dimens(1000.63,1417.32,UNITS.Points),b4:new Dimens(708.66,1000.63,UNITS.Points),b5:new Dimens(498.9,708.66,UNITS.Points),b6:new Dimens(354.33,498.9,UNITS.Points),b7:new Dimens(249.45,354.33,UNITS.Points),b8:new Dimens(175.75,249.45,UNITS.Points),b9:new Dimens(124.72,175.75,UNITS.Points),b10:new Dimens(87.87,124.72,UNITS.Points),c0:new Dimens(2599.37,3676.54,UNITS.Points),c1:new Dimens(1836.85,2599.37,UNITS.Points),c2:new Dimens(1298.27,1836.85,UNITS.Points),c3:new Dimens(918.43,1298.27,UNITS.Points),c4:new Dimens(649.13,918.43,UNITS.Points),c5:new Dimens(459.21,649.13,UNITS.Points),c6:new Dimens(323.15,459.21,UNITS.Points),c7:new Dimens(229.61,323.15,UNITS.Points),c8:new Dimens(161.57,229.61,UNITS.Points),c9:new Dimens(113.39,161.57,UNITS.Points),c10:new Dimens(79.37,113.39,UNITS.Points),dl:new Dimens(311.81,623.62,UNITS.Points),letter:new Dimens(612,792,UNITS.Points),"government-letter":new Dimens(576,756,UNITS.Points),legal:new Dimens(612,1008,UNITS.Points),"junior-legal":new Dimens(576,360,UNITS.Points),ledger:new Dimens(1224,792,UNITS.Points),tabloid:new Dimens(792,1224,UNITS.Points),"credit-card":new Dimens(153,243,UNITS.Points)},e={};return{getFormats:function(){var i,s={};for(i in n)n.hasOwnProperty(i)&&(s[i]=n[i]);for(i in e)e.hasOwnProperty(i)&&(s[i]=e[i]);return s},isDefaultFormat:function(i){return function(i){return!e.hasOwnProperty(i)&&n.hasOwnProperty(i)}(i.toLowerCase())},addFormat:function(n,i,s,o){return function(n,i){return e.hasOwnProperty(n)?{error:"Format "+n+" already exists"}:Dimens.isValidPdfDimensionObject(i)?(e[n]=Dimens.toPdfDimension(i),{success:!0}):{error:"Dimensions are of an invalid type"}}(n.toLowerCase(),i)},getFormat:function(i){return function(i){return e.hasOwnProperty(i)?e[i]:n.hasOwnProperty(i)?n[i]:(console.error("The format "+i+" doesn't exist."),null)}(i.toLowerCase())},formatExists:function(i){return function(i){return e.hasOwnProperty(i)||n.hasOwnProperty(i)}(i.toLowerCase())}}}();module.exports=FormatConfig;
},{"./dimensions.js":1}],3:[function(require,module,exports){
var check=require("./type-check.js"),dimensions=require("./dimensions.js"),cssInitials=require("css-initials"),Dimens=dimensions.Dimens,UNITS=dimensions.UNITS,CONTAINER_CLASS="__mapbox-print-pdf-container__",ATTR_PRESERVE_CSS="data-mpp-preserve",DEFAULT_FONT='"Times New Roman", Times, serif',scaleElement=require("./scale-element.js"),canvg=require("canvg"),HIDDEN_CONTAINER_STYLE={overflow:"hidden",height:0,width:0,position:"fixed",top:0,left:0},HtmlObject=function(){var e=function(e,t,r){r=check.isObject(r)?r:{},this.html=function(){return e},this.baseline=function(){return t},this.handlers=function(){return r}};return e.from=function(e,t){if(!e.hasOwnProperty("html")||!e.hasOwnProperty("baseline"))return console.error("Missing a required property in the html object"),null;var r=createOrReturnHTML(e.html);if(null===r)return console.error("Html property couldn't be parsed to an html object"),console.error(e.baseline),null;var n=function(e,t){var r=null;return check.isObject(e)&&e.hasOwnProperty("format")&&(check.isString(e.format)||Dimens.isValidDimensionObject(e.format))?(r=check.isString(e.format)?t.getFormat(e.format):Dimens.toDimension(e.format),"l"===e.orientation&&(r=new Dimens(r.height(),r.width(),r.unit()))):check.isString(e)&&t.formatExists(e)&&(r=t.getFormat(e)),r}(e.baseline,t);return null===n?(console.error("Couldn't parse the baseline property of the html object"),console.error(e.baseline),null):new HtmlObject(r,n,e.handlers)},e}(),cloneObject=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t},buildStyleStringFromObject=function(e,t){var r="";for(var n in e=cloneObject(e),t)t.hasOwnProperty(n)&&(e[n]=t[n]);for(n in e)e.hasOwnProperty(n)&&(r+=n+": "+e[n]+";");return r},createOrReturnHTML=function(e){if(check.isString(e)){var t=document.createElement("template");return e=e.trim(),t.innerHTML=e,t.content.firstChild}return check.isHTMLElement(e)?e.cloneNode(!0):(console.error(e+" is not a html element or string"),null)},removeStylesExceptMapbox=function(e,t){for(var r=Array.prototype.slice.call(e.getElementsByTagName("LINK")),n=0;n<r.length;++n){var i=r[n];"LINK"!=i.tagName||-1!=i.href.indexOf("mapbox")||i.hasAttribute(ATTR_PRESERVE_CSS)||-1===t.indexOf(i.href)&&-1===t.indexOf(i.href.replace(window.location.href,""))&&i.parentNode.removeChild(i)}},clearBodyExceptContainer=function(e){for(var t=Array.prototype.slice.call(e.body.children),r=0;r<t.length;++r){var n=t[r];"STYLE"!=n.tagName&&(-1==n.className.indexOf(CONTAINER_CLASS)&&n.parentNode.removeChild(n))}},createDocumentContainer=function(e){e=e.to(UNITS.Pixels);var t=document.createElement("div");t.className=CONTAINER_CLASS,t.setAttribute("style",buildStyleStringFromObject(HIDDEN_CONTAINER_STYLE));var r=document.createElement("div");return r.setAttribute("style",buildStyleStringFromObject(cssInitials)),r.style.width=e.width()+e.unit(),r.style.height=e.height()+e.unit(),r.style.fontFamily=DEFAULT_FONT,r.style.display="table",t.appendChild(r),document.body.appendChild(t),r},addHTMLObject=function(e,t,r){if(e instanceof HtmlObject){r=r.to(UNITS.Pixels);var n=document.createElement("div");n.style.width=r.width()+r.unit(),n.style.height="auto",n.style.overflow="hidden",n.appendChild(e.html()),t.appendChild(n),scaleElement(e.html(),e.handlers(),e.baseline(),r)}return e},createMapContainer=function(e){var t=document.createElement("div"),r=document.createElement("div");return r.style.display="table-row",r.style.height="100%",t.style.display="table-cell",r.appendChild(t),e.appendChild(r),t},replaceSvgSources=function(e,t){for(var r=Array.prototype.slice.call(e.getElementsByTagName("img")),n=0;n<r.length;++n){var i=r[n];if(-1!==i.src.indexOf(".svg")){var o=document.createElement("canvas");o.width=i.scrollWidth*t,o.height=i.scrollHeight*t,canvg(o,i.src),i.src=o.toDataURL("image/png")}}};module.exports={createMapContainer:createMapContainer,addHTMLObject:addHTMLObject,createDocumentContainer:createDocumentContainer,createOrReturnHTML:createOrReturnHTML,HtmlObject:HtmlObject,removeStylesExceptMapbox:removeStylesExceptMapbox,clearBodyExceptContainer:clearBodyExceptContainer,replaceSvgSources:replaceSvgSources};
},{"./dimensions.js":1,"./scale-element.js":6,"./type-check.js":7,"canvg":25,"css-initials":190}],4:[function(require,module,exports){
var check=require("./type-check.js"),UNITS=require("./dimensions.js").UNITS,QUIESCE_TIMEOUT=500,SCALE_UNITS=["metric","imperial","nautical"];function isValidScaleObject(e){return!!check.isObject(e)&&(!(!e.hasOwnProperty("maxWidthPercent")||!e.hasOwnProperty("unit"))&&(!(!check.isNumber(e.maxWidthPercent)||!check.isString(e.unit))&&(!(e.maxWidthPercent<=0||-1===SCALE_UNITS.indexOf(e.unit))&&(e.maxWidthPercent>1&&(e.maxWidthPercent/=100),!0))))}function calculateMaxSize(e){var t=-1;if(e&&e.loaded()){var r=e.getCanvas().getContext("experimental-webgl");t=r.getParameter(r.MAX_RENDERBUFFER_SIZE)}return t}function getDpiForSize(e,t){var r=calculateMaxSize(t);return r<=0?{error:"Couldn't calculate the maximum size of the render buffer"}:{result:r/e.to(UNITS.Inches).value()}}function calculateMaximumDpi(e,t,r){var n=getDpiForSize(e,t);return n.error?(console.error("Error when calculating dpi for size: "+n.error),r):n.result}function waitForMapToRender(e){var t=!1;return new Promise(function(r){var n=function(){t&&e.loaded()&&e.isStyleLoaded()&&e.areTilesLoaded()?(e.off("render",a),r(e)):(t=!0,setTimeout(n,QUIESCE_TIMEOUT))},a=function(){t=!1};e.on("render",a),n()})}function addMarkers(e,t=[],r){return new Promise(function(n,a){try{t.forEach(t=>{new r.Marker({element:t.getElement().cloneNode(!0),anchor:t._anchor,offset:t.getOffset(),color:t._color,draggable:t.isDraggable()}).setLngLat(t.getLngLat()).addTo(e)}),n(e)}catch(e){a(e)}})}function addScale(e,t,r){return new Promise(function(n,a){try{t&&e.addControl(new r.ScaleControl({maxWidth:t.maxWidthPercent*e._container.scrollWidth,unit:t.unit})),n(e)}catch(e){a(e)}})}function setBounds(e,t){return new Promise(function(r,n){try{t&&e.fitBounds(t),r(e)}catch(e){n(e)}})}function createPrintMap(e,t,r){return new Promise(function(n,a){const i={container:r,center:e.getCenter(),style:e.getStyle(),bearing:e.getBearing(),maxZoom:24,pitch:e.getPitch(),interactive:!1,attributionControl:!1,preserveDrawingBuffer:!0};e.getCRS&&(i.crs=e.getCRS());try{var c=new t.Map(i);c.fitBounds(e.getBounds()),n(c)}catch(e){a(e)}})}module.exports={calculateMaximumDpi:calculateMaximumDpi,createPrintMap:createPrintMap,isValidScaleObject:isValidScaleObject,addScale:addScale,addMarkers:addMarkers,setBounds:setBounds,waitForMapToRender:waitForMapToRender};
},{"./dimensions.js":1,"./type-check.js":7}],5:[function(require,module,exports){
var jsPDF=require("jspdf"),html2canvas=require("html2canvas"),check=require("./type-check.js"),dimensions=require("./dimensions.js"),Html=require("./html-container.js"),FormatConfig=require("./format-config.js"),mapUtils=require("./map-utils.js"),Dimens=dimensions.Dimens,Margin=dimensions.Margin,Size=dimensions.Size,HtmlObject=Html.HtmlObject,UNITS=dimensions.UNITS,RENDER_SCALE=2;function getOrientedDimensions(e,t){return"l"==t?new Dimens(e.height(),e.width(),e.unit()):e}function getRenderFormat(e,t,n){return getOrientedDimensions(FormatConfig.getFormat(e),t).subtractMargin(n)}var PdfBuilder=function(){var e="a4",t=300,n="p",i=null,r=null,o=null,a=null,s=[],l=-1,c=Margin.createPDFMargin(0,UNITS.Points),u=null,m=this,d=function(e){e.remove();var t=i.parentNode;t.parentNode.removeChild(t),i=null,r=null,o=null,Object.defineProperty(window,"devicePixelRatio",{get:function(){return l}})},f=function(){return new Promise(function(t,r){var o=FormatConfig.getFormat(e),a=c.to(o.unit()),l=new jsPDF({unit:o.unit(),format:FormatConfig.isDefaultFormat(e)?e:[o.width(),o.height()],orientation:n,compress:!0});html2canvas(i,{letterRendering:!0,useCORS:!0,scale:RENDER_SCALE,allowTaint:!0,onclone:function(e){Html.removeStylesExceptMapbox(e,s),Html.clearBodyExceptContainer(e)}}).then(function(i){var o=getRenderFormat(e,n,a);try{l.addImage(i.toDataURL("image/jpeg",1),"JPEG",a.left(),a.top(),o.width(),o.height(),null,"FAST"),t(l)}catch(e){r(e)}},r)})},h=function(a){l=window.devicePixelRatio,Object.defineProperty(window,"devicePixelRatio",{get:function(){return t/96}});var s=getRenderFormat(e,n,c);i=Html.createDocumentContainer(s),Html.addHTMLObject(r,i,s);var u=Html.createMapContainer(i);return Html.addHTMLObject(o,i,s),function(e,n){e=e.to(UNITS.Pixels);var r=Math.min(mapUtils.calculateMaximumDpi(new Size(e.width(),UNITS.Pixels),n,t),mapUtils.calculateMaximumDpi(new Size(e.height(),UNITS.Pixels),n,t));if(r<t){t=r,Object.defineProperty(window,"devicePixelRatio",{get:function(){return t/96}});var o=i.parentNode;o.removeChild(o),document.body.appendChild(o)}}(new Dimens(u.scrollWidth,u.scrollHeight,UNITS.Pixels),a),Html.replaceSvgSources(i,RENDER_SCALE),u};this.format=function(t){if(check.isString(t)&&FormatConfig.formatExists(t))e=t;else if(Dimens.isValidPdfDimensionObject(t)&&t.hasOwnProperty("name")){var n=FormatConfig.addFormat(t.name,t);n.error?console.error(n.error):e=t.name}return m},this.dpi=function(e){return e<=0?(console.error("The dpi must be greater than 0, given value was "+e),m):(t=e,m)},this.landscape=function(){return n="l",m},this.portrait=function(){return n="p",m},this.header=function(e,t){var n=HtmlObject.from(e,FormatConfig);return n&&(r=n,check.isFunction(t)&&t(r.html())),m},this.footer=function(e,t){var n=HtmlObject.from(e,FormatConfig);return n&&(o=n,check.isFunction(t)&&t(o.html())),m},this.scale=function(e){return mapUtils.isValidScaleObject(e)?a=e:console.error("The given scale is invalid: "+e),m},this.keepCSS=function(e){return check.isArray(e)?s=e:check.isString(e)&&(s=[e]),m},this.margins=function(e,t){var n=Margin.createPDFMargin(e,t||UNITS.Millimeters);return n?c=n:console.error("The provided arguments are invalid: "+e+", "+t),m},this.mapPrintBounds=function(e){return u=e,m},this.print=function(e,t,n){return e.isStyleLoaded()?new Promise(function(i,r){var o=h(e);mapUtils.createPrintMap(e,t,o).then(function(i){return new Promise(function(r,o){mapUtils.setBounds(i,u).then(mapUtils.addScale(i,a,t)).then(function(){return n||(n=e.listMarkers?e.listMarkers():[]),mapUtils.addMarkers(i,n,t)}).then(mapUtils.waitForMapToRender).then(f).then(function(e){d(i),r(e)},function(e){d(i),o(e)})})}).then(i,r)}):new Promise(function(n,i){(function(e){var t=-100;return new Promise(function(n,i){var r=function(){e.isStyleLoaded()?n(e):(t+=100)>=1e4?i(new Error("The maps style took too long to load.")):setTimeout(r,100)};r()})})(e).then(function(){m.print(e,t).then(n,i)},i)})}};module.exports={formats:FormatConfig,build:function(){return new PdfBuilder}},window.mapboxgl&&(mapboxgl.MapPdfBuilder=PdfBuilder);
},{"./dimensions.js":1,"./format-config.js":2,"./html-container.js":3,"./map-utils.js":4,"./type-check.js":7,"html2canvas":191,"jspdf":192}],6:[function(require,module,exports){
var check=require("./type-check.js"),Dimens=require("./dimensions.js").Dimens,SUPPORTED_UNITS=["px","pt","rem","cm","mm","in","pc"],ATTR_SCALE_WIDTH="data-scale-width",ATTR_SCALE_HEIGHT="data-scale-height",ATTR_SCALE_SUM="data-scale-sum",ATTR_HANDLER="data-scale-handler",UNITS_REGEX=makePropertyRegex(SUPPORTED_UNITS);function toSnakeCase(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function toCamelCase(e){return e.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})}function makePropertyRegex(e){return new RegExp("^(\\d+\\.?\\d*)("+e.join("|")+")$")}var StyleSize=function(e){return{fromString:function(t,n){for(var r=t.split(" "),i=[],a=!1,l=0;l<r.length;++l){var s=n.exec(r[l]);s&&3==s.length?(a=!0,i.push({size:Number(s[1]),unit:s[2]})):i.push(r[l])}return a?new function(t){this.scale=function(n){for(var r=0;r<t.length;++r)check.isString(t[r])||-1===e.indexOf(t[r].unit)||(t[r].size*=n);return this},this.toString=function(){for(var e="",n=0;n<t.length;++n)n>0&&(e+=" "),check.isString(t[n])?e+=t[n]:e+=t[n].size+t[n].unit;return e}}(i):null}}}(SUPPORTED_UNITS);function getStyle(e){return e.currentStyle?{style:e.currentStyle,snakeCase:!1}:e.ownerDocument.defaultView&&e.ownerDocument.defaultView.getComputedStyle?{style:e.ownerDocument.defaultView.getComputedStyle(e),snakeCase:!0}:null}function scaleSingleElement(e,t,n,r){var i=getStyle(e);if(i)for(var a=0;a<n.length;++a){var l=n[a],s=i.snakeCase?i.style.getPropertyValue(toSnakeCase(l)):i.style[l],u=StyleSize.fromString(s,UNITS_REGEX);u&&r.push({elem:e,prop:l,value:u.scale(t).toString()})}}function scaleByAttribute(e,t,n,r){e.hasAttribute(t)&&scaleSingleElement(e,n,toCamelCase(e.getAttribute(t)).split(" "),r)}function recursiveScale(e,t,n,r){if(e.hasAttribute(ATTR_HANDLER)){var i=e.getAttribute(ATTR_HANDLER);if(t.hasOwnProperty(i)&&check.isFunction(t[i])){var a=t[i](e,n);check.isArray(a)&&r.push.apply(r,a)}}else scaleByAttribute(e,ATTR_SCALE_WIDTH,n.widthRatio,r),scaleByAttribute(e,ATTR_SCALE_HEIGHT,n.heightRatio,r),scaleByAttribute(e,ATTR_SCALE_SUM,n.sumRatio,r);for(var l=0;l<e.children.length;++l)recursiveScale(e.children[l],t,n,r)}function applyStyles(e){for(var t=0;t<e.length;++t){var n=e[t];n.elem.style[n.prop]=n.value}}function scaleElement(e,t,n,r){if(check.isHTMLElement(e)&&n instanceof Dimens&&r instanceof Dimens){var i={original:n,current:r=r.to(n.unit())};i.heightRatio=r.height()/n.height(),i.widthRatio=r.width()/n.width(),i.sumRatio=r.sum()/n.sum();var a=[];recursiveScale(e,t,i,a),applyStyles(a)}}module.exports=scaleElement;
},{"./dimensions.js":1,"./type-check.js":7}],7:[function(require,module,exports){
module.exports={isString:function(n){return"string"==typeof n||n instanceof String},isHTMLElement:function(n){return n instanceof Element},isFunction:function(n){return n instanceof Function},isObject:function(n){return n===Object(n)},isNumber:function(n){return"number"==typeof n||"object"==typeof o&&n.constructor===Number},isArray:function(n){return n instanceof Array}};
},{}],8:[function(require,module,exports){
function _arrayWithHoles(r){if(Array.isArray(r))return r}module.exports=_arrayWithHoles;
},{}],9:[function(require,module,exports){
function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}module.exports=_assertThisInitialized;
},{}],10:[function(require,module,exports){
function asyncGeneratorStep(n,e,r,t,o,a,c){try{var i=n[a](c),u=i.value}catch(n){return void r(n)}i.done?e(u):Promise.resolve(u).then(t,o)}function _asyncToGenerator(n){return function(){var e=this,r=arguments;return new Promise(function(t,o){var a=n.apply(e,r);function c(n){asyncGeneratorStep(a,t,o,c,i,"next",n)}function i(n){asyncGeneratorStep(a,t,o,c,i,"throw",n)}c(void 0)})}}module.exports=_asyncToGenerator;
},{}],11:[function(require,module,exports){
function _classCallCheck(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")}module.exports=_classCallCheck;
},{}],12:[function(require,module,exports){
function _defineProperties(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),e}module.exports=_createClass;
},{}],13:[function(require,module,exports){
function _defineProperty(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}module.exports=_defineProperty;
},{}],14:[function(require,module,exports){
var superPropBase=require("./superPropBase");function _get(e,t,r){return"undefined"!=typeof Reflect&&Reflect.get?module.exports=_get=Reflect.get:module.exports=_get=function(e,t,r){var o=superPropBase(e,t);if(o){var u=Object.getOwnPropertyDescriptor(o,t);return u.get?u.get.call(r):u.value}},_get(e,t,r||e)}module.exports=_get;
},{"./superPropBase":22}],15:[function(require,module,exports){
function _getPrototypeOf(t){return module.exports=_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(t)}module.exports=_getPrototypeOf;
},{}],16:[function(require,module,exports){
var setPrototypeOf=require("./setPrototypeOf");function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&setPrototypeOf(e,t)}module.exports=_inherits;
},{"./setPrototypeOf":20}],17:[function(require,module,exports){
function _iterableToArrayLimit(t,r){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var e=[],o=!0,i=!1,l=void 0;try{for(var n,a=t[Symbol.iterator]();!(o=(n=a.next()).done)&&(e.push(n.value),!r||e.length!==r);o=!0);}catch(t){i=!0,l=t}finally{try{o||null==a.return||a.return()}finally{if(i)throw l}}return e}}module.exports=_iterableToArrayLimit;
},{}],18:[function(require,module,exports){
function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}module.exports=_nonIterableRest;
},{}],19:[function(require,module,exports){
var _typeof=require("../helpers/typeof"),assertThisInitialized=require("./assertThisInitialized");function _possibleConstructorReturn(e,t){return!t||"object"!==_typeof(t)&&"function"!=typeof t?assertThisInitialized(e):t}module.exports=_possibleConstructorReturn;
},{"../helpers/typeof":23,"./assertThisInitialized":9}],20:[function(require,module,exports){
function _setPrototypeOf(t,o){return module.exports=_setPrototypeOf=Object.setPrototypeOf||function(t,o){return t.__proto__=o,t},_setPrototypeOf(t,o)}module.exports=_setPrototypeOf;
},{}],21:[function(require,module,exports){
var arrayWithHoles=require("./arrayWithHoles"),iterableToArrayLimit=require("./iterableToArrayLimit"),nonIterableRest=require("./nonIterableRest");function _slicedToArray(r,e){return arrayWithHoles(r)||iterableToArrayLimit(r,e)||nonIterableRest()}module.exports=_slicedToArray;
},{"./arrayWithHoles":8,"./iterableToArrayLimit":17,"./nonIterableRest":18}],22:[function(require,module,exports){
var getPrototypeOf=require("./getPrototypeOf");function _superPropBase(e,r){for(;!Object.prototype.hasOwnProperty.call(e,r)&&null!==(e=getPrototypeOf(e)););return e}module.exports=_superPropBase;
},{"./getPrototypeOf":15}],23:[function(require,module,exports){
function _typeof(o){"@babel/helpers - typeof";return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?module.exports=_typeof=function(o){return typeof o}:module.exports=_typeof=function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}module.exports=_typeof;
},{}],24:[function(require,module,exports){
module.exports=require("regenerator-runtime");
},{"regenerator-runtime":196}],25:[function(require,module,exports){
(function (process){
"use strict";function _interopDefault(t){return t&&"object"==typeof t&&"default"in t?t.default:t}Object.defineProperty(exports,"__esModule",{value:!0}),require("core-js/modules/es.array.map"),require("core-js/modules/es.parse-float"),require("core-js/modules/es.regexp.exec"),require("core-js/modules/es.string.match"),require("core-js/modules/es.string.replace"),require("core-js/modules/es.array.join");var _slicedToArray=_interopDefault(require("@babel/runtime/helpers/slicedToArray"));require("core-js/modules/es.symbol"),require("core-js/modules/es.array.filter"),require("core-js/modules/es.array.for-each"),require("core-js/modules/es.object.define-properties"),require("core-js/modules/es.object.define-property"),require("core-js/modules/es.object.get-own-property-descriptor"),require("core-js/modules/es.object.get-own-property-descriptors"),require("core-js/modules/es.object.keys"),require("core-js/modules/web.dom-collections.for-each");var _regeneratorRuntime=_interopDefault(require("@babel/runtime/regenerator")),_asyncToGenerator=_interopDefault(require("@babel/runtime/helpers/asyncToGenerator")),_defineProperty=_interopDefault(require("@babel/runtime/helpers/defineProperty")),_classCallCheck=_interopDefault(require("@babel/runtime/helpers/classCallCheck")),_createClass=_interopDefault(require("@babel/runtime/helpers/createClass"));require("core-js/modules/es.array.concat"),require("core-js/modules/es.array.every"),require("core-js/modules/es.array.reduce"),require("core-js/modules/es.date.to-string"),require("core-js/modules/es.object.to-string"),require("core-js/modules/es.promise"),require("core-js/modules/es.string.split");var requestAnimationFrame=_interopDefault(require("raf"));require("core-js/modules/es.function.name");var RGBColor=_interopDefault(require("rgbcolor")),_possibleConstructorReturn=_interopDefault(require("@babel/runtime/helpers/possibleConstructorReturn")),_getPrototypeOf=_interopDefault(require("@babel/runtime/helpers/getPrototypeOf")),_inherits=_interopDefault(require("@babel/runtime/helpers/inherits"));require("core-js/modules/es.array.from"),require("core-js/modules/es.array.includes"),require("core-js/modules/es.array.some"),require("core-js/modules/es.string.includes"),require("core-js/modules/es.string.iterator"),require("core-js/modules/es.string.trim"),require("core-js/modules/es.array.index-of"),require("core-js/modules/es.array.reverse");var _get=_interopDefault(require("@babel/runtime/helpers/get"));require("core-js/modules/es.number.constructor"),require("core-js/modules/es.regexp.to-string"),require("core-js/modules/es.array.fill"),require("core-js/modules/es.reflect.delete-property");var _assertThisInitialized=_interopDefault(require("@babel/runtime/helpers/assertThisInitialized"));require("core-js/modules/es.array.iterator"),require("core-js/modules/web.dom-collections.iterator"),require("core-js/modules/es.parse-int"),require("core-js/modules/es.symbol.description"),require("core-js/modules/es.symbol.iterator"),require("core-js/modules/es.map"),require("core-js/modules/es.reflect.apply"),require("core-js/modules/es.reflect.get-prototype-of");var stackblurCanvas=require("stackblur-canvas");function compressSpaces(t){return t.replace(/(?!\u3000)\s+/gm," ")}function trimLeft(t){return t.replace(/^[\n \t]+/,"")}function trimRight(t){return t.replace(/[\n \t]+$/,"")}function toNumbers(t){return((t||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}var allUppercase=/^[A-Z-]+$/;function normalizeAttributeName(t){return allUppercase.test(t)?t.toLowerCase():t}function parseExternalUrl(t){var e=t.match(/url\(('([^']+)'|"([^"]+)"|([^'"\)]+))\)/)||[];return e[2]||e[3]||e[4]}var attributeRegex=/(\[[^\]]+\])/g,idRegex=/(#[^\s\+>~\.\[:]+)/g,classRegex=/(\.[^\s\+>~\.\[:]+)/g,pseudoElementRegex=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,pseudoClassWithBracketsRegex=/(:[\w-]+\([^\)]*\))/gi,pseudoClassRegex=/(:[^\s\+>~\.\[:]+)/g,elementRegex=/([^\s\+>~\.\[:]+)/g;function findSelectorMatch(t,e){var r=t.match(e);return r?[t.replace(e," "),r.length]:[t,0]}function getSelectorSpecificity(t){var e=[0,0,0],r=t.replace(/:not\(([^\)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),n=0,i=findSelectorMatch(r,attributeRegex),a=_slicedToArray(i,2);r=a[0],n=a[1],e[1]+=n;var s=findSelectorMatch(r,idRegex),o=_slicedToArray(s,2);r=o[0],n=o[1],e[0]+=n;var l=findSelectorMatch(r,classRegex),u=_slicedToArray(l,2);r=u[0],n=u[1],e[1]+=n;var h=findSelectorMatch(r,pseudoElementRegex),c=_slicedToArray(h,2);r=c[0],n=c[1],e[2]+=n;var g=findSelectorMatch(r,pseudoClassWithBracketsRegex),f=_slicedToArray(g,2);r=f[0],n=f[1],e[1]+=n;var p=findSelectorMatch(r,pseudoClassRegex),y=_slicedToArray(p,2);r=y[0],n=y[1],e[1]+=n;var d=findSelectorMatch(r=r.replace(/[\*\s\+>~]/g," ").replace(/[#\.]/g," "),elementRegex),m=_slicedToArray(d,2);return r=m[0],n=m[1],e[2]+=n,e.join("")}var PSEUDO_ZERO=1e-8;function vectorMagnitude(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))}function vectorsRatio(t,e){return(t[0]*e[0]+t[1]*e[1])/(vectorMagnitude(t)*vectorMagnitude(e))}function vectorsAngle(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(vectorsRatio(t,e))}function CB1(t){return t*t*t}function CB2(t){return 3*t*t*(1-t)}function CB3(t){return 3*t*(1-t)*(1-t)}function CB4(t){return(1-t)*(1-t)*(1-t)}function QB1(t){return t*t}function QB2(t){return 2*t*(1-t)}function QB3(t){return(1-t)*(1-t)}function createCommonjsModule(t,e){return t(e={exports:{}},e.exports),e.exports}var runtime_1=createCommonjsModule(function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",o=i.toStringTag||"@@toStringTag";function l(t,e,r,n){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new _(n||[]);return a._invoke=function(t,e,r){var n=h;return function(i,a){if(n===g)throw new Error("Generator is already running");if(n===f){if("throw"===i)throw a;return T()}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var o=S(s,r);if(o){if(o===p)continue;return o}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=g;var l=u(t,e,r);if("normal"===l.type){if(n=r.done?f:c,l.arg===p)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n=f,r.method="throw",r.arg=l.arg)}}}(t,r,s),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h="suspendedStart",c="suspendedYield",g="executing",f="completed",p={};function y(){}function d(){}function m(){}var v={};v[a]=function(){return this};var x=Object.getPrototypeOf,b=x&&x(x(A([])));b&&b!==r&&n.call(b,a)&&(v=b);var k=m.prototype=y.prototype=Object.create(v);function C(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function P(t){var e;this._invoke=function(r,i){function a(){return new Promise(function(e,a){!function e(r,i,a,s){var o=u(t[r],t,i);if("throw"!==o.type){var l=o.arg,h=l.value;return h&&"object"==typeof h&&n.call(h,"__await")?Promise.resolve(h.__await).then(function(t){e("next",t,a,s)},function(t){e("throw",t,a,s)}):Promise.resolve(h).then(function(t){l.value=t,a(l)},function(t){return e("throw",t,a,s)})}s(o.arg)}(r,i,e,a)})}return e=e?e.then(a,a):a()}}function S(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,S(t,r),"throw"===r.method))return p;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,p;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function A(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,s=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return s.next=s}}return{next:T}}function T(){return{value:e,done:!0}}return d.prototype=k.constructor=m,m.constructor=d,m[o]=d.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,o in t||(t[o]="GeneratorFunction")),t.prototype=Object.create(k),t},t.awrap=function(t){return{__await:t}},C(P.prototype),P.prototype[s]=function(){return this},t.AsyncIterator=P,t.async=function(e,r,n,i){var a=new P(l(e,r,n,i));return t.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},C(k),k[o]="Generator",k[a]=function(){return this},k.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=A,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(E),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return o.type="throw",o.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var s=this.tryEntries[a],o=s.completion;if("root"===s.tryLoc)return i("end");if(s.tryLoc<=this.prev){var l=n.call(s,"catchLoc"),u=n.call(s,"finallyLoc");if(l&&u){if(this.prev<s.catchLoc)return i(s.catchLoc,!0);if(this.prev<s.finallyLoc)return i(s.finallyLoc)}else if(l){if(this.prev<s.catchLoc)return i(s.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return i(s.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var s=a?a.completion:{};return s.type=t,s.arg=e,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;E(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}),Property=function(){function t(e,r,n){_classCallCheck(this,t),this.document=e,this.name=r,this.value=n}return _createClass(t,[{key:"hasValue",value:function(){var t=this.value;return null!==t&&""!==t&&0!==t&&void 0!==t}},{key:"isString",value:function(t){var e=this.value,r="string"==typeof e;return r&&t?t.test(e):r}},{key:"isUrlDefinition",value:function(){return this.isString(/^url\(/)}},{key:"isPixels",value:function(){if(!this.hasValue())return!1;var t=this.getString();switch(!0){case/px$/.test(t):case/^[0-9]+$/.test(t):return!0;default:return!1}}},{key:"setValue",value:function(t){return this.value=t,this}},{key:"getValue",value:function(t){return void 0===t||this.hasValue()?this.value:t}},{key:"getNumber",value:function(t){if(!this.hasValue())return void 0===t?0:parseFloat(t);var e=this.value,r=parseFloat(e);return this.isString(/%$/)&&(r/=100),r}},{key:"getString",value:function(t){return void 0===t||this.hasValue()?void 0===this.value?"":String(this.value):String(t)}},{key:"getDpi",value:function(){return 96}},{key:"getRem",value:function(){return this.document.rootEmSize}},{key:"getEm",value:function(){return this.document.emSize}},{key:"getUnits",value:function(){return this.getString().replace(/[0-9\.\-]/g,"")}},{key:"getPixels",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var r=_slicedToArray("boolean"==typeof t?[void 0,t]:[t],2),n=r[0],i=r[1],a=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(a.computeSize("x"),a.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(a.computeSize("x"),a.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*a.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*a.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(/%$/)&&i:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*a.computeSize(n);default:var s=this.getNumber();return e&&s<1?s*a.computeSize(n):s}}},{key:"getMilliseconds",value:function(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}},{key:"getRadians",value:function(){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)}}},{key:"getDefinition",value:function(){var t=this.getString(),e=t.match(/#([^\)'"]+)/);return e&&(e=e[1]),e||(e=t),this.document.definitions[e]}},{key:"getFillStyleDefinition",value:function(t,e){var r=this.getDefinition();if(!r)return null;if("function"==typeof r.createGradient)return r.createGradient(this.document.ctx,t,e);if("function"==typeof r.createPattern){if(r.getHrefAttribute().hasValue()){var n=r.getAttribute("patternTransform");r=r.getHrefAttribute().getDefinition(),n.hasValue()&&r.getAttribute("patternTransform",!0).setValue(n.value)}return r.createPattern(this.document.ctx,t,e)}return null}},{key:"getTextBaseline",value:function(){return this.hasValue()?t.textBaselineMapping[this.getString()]:null}},{key:"addOpacity",value:function(e){for(var r=this.value,n=r.length,i=0,a=0;a<n&&(","===r[a]&&i++,3!==i);a++);if(e.hasValue()&&this.isString()&&3!==i){var s=new RGBColor(r);s.ok&&(r="rgba(".concat(s.r,", ").concat(s.g,", ").concat(s.b,", ").concat(e.getNumber(),")"))}return new t(this.document,this.name,r)}}],[{key:"empty",value:function(e){return new t(e,"EMPTY","")}}]),t}();Property.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"};var ViewPort=function(){function t(){_classCallCheck(this,t),this.viewPorts=[]}return _createClass(t,[{key:"clear",value:function(){this.viewPorts=[]}},{key:"setCurrent",value:function(t,e){this.viewPorts.push({width:t,height:e})}},{key:"removeCurrent",value:function(){this.viewPorts.pop()}},{key:"getCurrent",value:function(){var t=this.viewPorts;return t[t.length-1]}},{key:"computeSize",value:function(t){return"number"==typeof t?t:"x"===t?this.width:"y"===t?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}},{key:"width",get:function(){return this.getCurrent().width}},{key:"height",get:function(){return this.getCurrent().height}}]),t}(),Point=function(){function t(e,r){_classCallCheck(this,t),this.x=e,this.y=r}return _createClass(t,[{key:"angleTo",value:function(t){return Math.atan2(t.y-this.y,t.x-this.x)}},{key:"applyTransform",value:function(t){var e=this.x,r=this.y,n=e*t[0]+r*t[2]+t[4],i=e*t[1]+r*t[3]+t[5];this.x=n,this.y=i}}],[{key:"parse",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=toNumbers(e),i=_slicedToArray(n,2),a=i[0],s=void 0===a?r:a,o=i[1];return new t(s,void 0===o?r:o)}},{key:"parseScale",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=toNumbers(e),i=_slicedToArray(n,2),a=i[0],s=void 0===a?r:a,o=i[1];return new t(s,void 0===o?s:o)}},{key:"parsePath",value:function(e){for(var r=toNumbers(e),n=r.length,i=[],a=0;a<n;a+=2)i.push(new t(r[a],r[a+1]));return i}}]),t}(),Mouse=function(){function t(e){_classCallCheck(this,t),this.screen=e,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}return _createClass(t,[{key:"isWorking",value:function(){return this.working}},{key:"start",value:function(){if(!this.working){var t=this.screen,e=this.onClick,r=this.onMouseMove,n=t.ctx.canvas;n.onclick=e,n.onmousemove=r,this.working=!0}}},{key:"stop",value:function(){if(this.working){var t=this.screen.ctx.canvas;this.working=!1,t.onclick=null,t.onmousemove=null}}},{key:"hasEvents",value:function(){return this.working&&this.events.length>0}},{key:"runEvents",value:function(){if(this.working){var t=this.screen,e=this.events,r=this.eventElements,n=t.ctx.canvas.style;n&&(n.cursor=""),e.forEach(function(t,e){for(var n=t.run,i=r[e];i;)n(i),i=i.parent}),this.events=[],this.eventElements=[]}}},{key:"checkPath",value:function(t,e){if(this.working&&e){var r=this.events,n=this.eventElements;r.forEach(function(r,i){var a=r.x,s=r.y;!n[i]&&e.isPointInPath&&e.isPointInPath(a,s)&&(n[i]=t)})}}},{key:"checkBoundingBox",value:function(t,e){if(this.working&&e){var r=this.events,n=this.eventElements;r.forEach(function(r,i){var a=r.x,s=r.y;!n[i]&&e.isPointInBox(a,s)&&(n[i]=t)})}}},{key:"mapXY",value:function(t,e){for(var r=this.screen,n=r.window,i=r.ctx,a=new Point(t,e),s=i.canvas;s;)a.x-=s.offsetLeft,a.y-=s.offsetTop,s=s.offsetParent;return n.scrollX&&(a.x+=n.scrollX),n.scrollY&&(a.y+=n.scrollY),a}},{key:"onClick",value:function(t){var e=this.mapXY((t||event).clientX,(t||event).clientY),r=e.x,n=e.y;this.events.push({type:"onclick",x:r,y:n,run:function(t){t.onClick&&t.onClick()}})}},{key:"onMouseMove",value:function(t){var e=this.mapXY((t||event).clientX,(t||event).clientY),r=e.x,n=e.y;this.events.push({type:"onmousemove",x:r,y:n,run:function(t){t.onMouseMove&&t.onMouseMove()}})}}]),t}(),defaultWindow="undefined"!=typeof window?window:null,defaultFetch="undefined"!=typeof fetch?fetch.bind(void 0):null,Screen=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.fetch,i=void 0===n?defaultFetch:n,a=r.window,s=void 0===a?defaultWindow:a;_classCallCheck(this,t),this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new ViewPort,this.mouse=new Mouse(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=s,this.fetch=i}return _createClass(t,[{key:"wait",value:function(t){this.waits.push(t)}},{key:"ready",value:function(){return this.readyPromise?this.readyPromise:Promise.resolve()}},{key:"isReady",value:function(){if(this.isReadyLock)return!0;var t=this.waits.every(function(t){return t()});return t&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=t,t}},{key:"setDefaults",value:function(t){t.strokeStyle="rgba(0,0,0,0)",t.lineCap="butt",t.lineJoin="miter",t.miterLimit=4}},{key:"setViewBox",value:function(t){var e=t.document,r=t.ctx,n=t.aspectRatio,i=t.width,a=t.desiredWidth,s=t.height,o=t.desiredHeight,l=t.minX,u=void 0===l?0:l,h=t.minY,c=void 0===h?0:h,g=t.refX,f=t.refY,p=t.clip,y=void 0!==p&&p,d=t.clipX,m=void 0===d?0:d,v=t.clipY,x=void 0===v?0:v,b=compressSpaces(n).replace(/^defer\s/,"").split(" "),k=_slicedToArray(b,2),C=k[0],P=k[1],S=C||"xMidYMid",w=P||"meet",E=i/a,_=s/o,A=Math.min(E,_),T=Math.max(E,_),M=a,V=o;"meet"===w&&(M*=A,V*=A),"slice"===w&&(M*=T,V*=T);var R=new Property(e,"refX",g),O=new Property(e,"refY",f),B=R.hasValue()&&O.hasValue();if(B&&r.translate(-A*R.getPixels("x"),-A*O.getPixels("y")),y){var D=A*m,N=A*x;r.beginPath(),r.moveTo(D,N),r.lineTo(i,N),r.lineTo(i,s),r.lineTo(D,s),r.closePath(),r.clip()}if(!B){var L="meet"===w&&A===_,F="slice"===w&&T===_,z="meet"===w&&A===E,j="slice"===w&&T===E;/^xMid/.test(S)&&(L||F)&&r.translate(i/2-M/2,0),/YMid$/.test(S)&&(z||j)&&r.translate(0,s/2-V/2),/^xMax/.test(S)&&(L||F)&&r.translate(i-M,0),/YMax$/.test(S)&&(z||j)&&r.translate(0,s-V)}switch(!0){case"none"===S:r.scale(E,_);break;case"meet"===w:r.scale(A,A);break;case"slice"===w:r.scale(T,T)}r.translate(-u,-c)}},{key:"start",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.enableRedraw,i=void 0!==n&&n,a=r.ignoreMouse,s=void 0!==a&&a,o=r.ignoreAnimation,l=void 0!==o&&o,u=r.ignoreDimensions,h=void 0!==u&&u,c=r.ignoreClear,g=void 0!==c&&c,f=r.forceRedraw,p=r.scaleWidth,y=r.scaleHeight,d=r.offsetX,m=r.offsetY,v=this.FRAMERATE,x=this.mouse,b=1e3/v;if(this.frameDuration=b,this.readyPromise=new Promise(function(t){e.resolveReady=t}),this.isReady()&&this.render(t,h,g,p,y,d,m),i){var k=Date.now(),C=k,P=0;s||x.start(),this.intervalId=requestAnimationFrame(function r(){k=Date.now(),(P=k-C)>=b&&(C=k-P%b,e.shouldUpdate(l,f)&&(e.render(t,h,g,p,y,d,m),x.runEvents())),e.intervalId=requestAnimationFrame(r)})}}},{key:"stop",value:function(){this.intervalId&&(requestAnimationFrame.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function(t,e){if(!t){var r=this.frameDuration,n=this.animations.reduce(function(t,e){return e.update(r)||t},!1);if(n)return!0}return!("function"!=typeof e||!e())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}},{key:"render",value:function(t,e,r,n,i,a,s){var o=this.CLIENT_WIDTH,l=this.CLIENT_HEIGHT,u=this.viewPort,h=this.ctx,c=this.isFirstRender,g=h.canvas;u.clear(),g.width&&g.height?u.setCurrent(g.width,g.height):u.setCurrent(o,l);var f=t.getStyle("width"),p=t.getStyle("height");!e&&(c||"number"!=typeof n&&"number"!=typeof i)&&(f.hasValue()&&(g.width=f.getPixels("x"),g.style&&(g.style.width="".concat(g.width,"px"))),p.hasValue()&&(g.height=p.getPixels("y"),g.style&&(g.style.height="".concat(g.height,"px"))));var y=g.clientWidth||g.width,d=g.clientHeight||g.height;if(e&&f.hasValue()&&p.hasValue()&&(y=f.getPixels("x"),d=p.getPixels("y")),u.setCurrent(y,d),"number"==typeof a&&t.getAttribute("x",!0).setValue(a),"number"==typeof s&&t.getAttribute("y",!0).setValue(s),"number"==typeof n||"number"==typeof i){var m=toNumbers(t.getAttribute("viewBox").getString()),v=0,x=0;if("number"==typeof n){var b=t.getStyle("width");b.hasValue()?v=b.getPixels("x")/n:isNaN(m[2])||(v=m[2]/n)}if("number"==typeof i){var k=t.getStyle("height");k.hasValue()?x=k.getPixels("y")/i:isNaN(m[3])||(x=m[3]/i)}v||(v=x),x||(x=v),t.getAttribute("width",!0).setValue(n),t.getAttribute("height",!0).setValue(i);var C=t.getStyle("transform",!0,!0);C.setValue("".concat(C.getString()," scale(").concat(1/v,", ").concat(1/x,")"))}r||h.clearRect(0,0,y,d),t.render(h),c&&(this.isFirstRender=!1)}}]),t}();Screen.defaultWindow=defaultWindow,Screen.defaultFetch=defaultFetch;var defaultFetch$1=Screen.defaultFetch,DefaultDOMParser="undefined"!=typeof DOMParser?DOMParser:null,Parser=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.fetch,n=void 0===r?defaultFetch$1:r,i=e.DOMParser,a=void 0===i?DefaultDOMParser:i;_classCallCheck(this,t),this.fetch=n,this.DOMParser=a}return _createClass(t,[{key:"parse",value:function(){var t=_asyncToGenerator(_regeneratorRuntime.mark(function t(e){return _regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!/^</.test(e)){t.next=2;break}return t.abrupt("return",this.parseFromString(e));case 2:return t.abrupt("return",this.load(e));case 3:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"parseFromString",value:function(t){try{return(new this.DOMParser).parseFromString(t,"image/svg+xml")}catch(e){return(new this.DOMParser).parseFromString(t,"text/xml")}}},{key:"load",value:function(){var t=_asyncToGenerator(_regeneratorRuntime.mark(function t(e){var r,n;return _regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.fetch(e);case 2:return r=t.sent,t.next=5,r.text();case 5:return n=t.sent,t.abrupt("return",this.parseFromString(n));case 7:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()}]),t}(),Element=function(){function t(e,r){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(_classCallCheck(this,t),this.document=e,this.node=r,this.captureTextNodes=i,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],r&&1===r.nodeType){if(Array.from(r.attributes).forEach(function(t){var r=normalizeAttributeName(t.nodeName);n.attributes[r]=new Property(e,r,t.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue())this.getAttribute("style").getString().split(";").map(function(t){return t.trim()}).forEach(function(t){if(t){var r=t.split(":"),i=_slicedToArray(r,2),a=i[0],s=i[1];n.styles[a]=new Property(e,a.trim(),s.trim())}});var a=e.definitions,s=this.getAttribute("id");s.hasValue()&&(a[s.getValue()]||(a[s.getValue()]=this)),Array.from(r.childNodes).forEach(function(t){if(1===t.nodeType)n.addChild(t);else if(i&&(3===t.nodeType||4===t.nodeType)){var r=e.createTextNode(t);r.getText().length>0&&n.addChild(r)}})}}return _createClass(t,[{key:"getAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.attributes[t];if(!r&&e){var n=new Property(this.document,t,"");return this.attributes[t]=n,n}return r||Property.empty(this.document)}},{key:"getHrefAttribute",value:function(){for(var t in this.attributes)if("href"===t||/:href$/.test(t))return this.attributes[t];return Property.empty(this.document)}},{key:"getStyle",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this.styles[t];if(n)return n;var i=this.getAttribute(t);if(i&&i.hasValue())return this.styles[t]=i,i;if(!r){var a=this.parent;if(a){var s=a.getStyle(t);if(s&&s.hasValue())return s}}if(e){var o=new Property(this.document,t,"");return this.styles[t]=o,o}return n||Property.empty(this.document)}},{key:"render",value:function(t){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(t.save(),this.getStyle("mask").hasValue()){var e=this.getStyle("mask").getDefinition();e&&e.apply(t,this)}else if("none"!==this.getStyle("filter").getValue("none")){var r=this.getStyle("filter").getDefinition();r&&r.apply(t,this)}else this.setContext(t),this.renderChildren(t),this.clearContext(t);t.restore()}}},{key:"setContext",value:function(t){}},{key:"clearContext",value:function(t){}},{key:"renderChildren",value:function(t){this.children.forEach(function(e){e.render(t)})}},{key:"addChild",value:function(e){var r=e instanceof t?e:this.document.createElement(e);r.parent=this,t.ignoreChildTypes.includes(r.type)||this.children.push(r)}},{key:"matchesSelector",value:function(t){var e=this.node;if("function"==typeof e.matches)return e.matches(t);var r=e.getAttribute("class");return!(!r||""===r)&&r.split(" ").some(function(e){if(".".concat(e)===t)return!0})}},{key:"addStylesFromStyleDefinition",value:function(){var t=this.document,e=t.styles,r=t.stylesSpecificity;for(var n in e)if("@"!==n[0]&&this.matchesSelector(n)){var i=e[n],a=r[n];if(i)for(var s in i){var o=this.stylesSpecificity[s];void 0===o&&(o="000"),a>=o&&(this.styles[s]=i[s],this.stylesSpecificity[s]=a)}}}}]),t}();Element.ignoreChildTypes=["title"];var UnknownElement=function(t){function e(t,r,n){var i;return _classCallCheck(this,e),i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,r,n)),console.warn("Element ".concat(r.nodeName," not yet implemented.")),i}return _inherits(e,Element),e}();function wrapFontFamily(t){var e=t.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}function prepareFontFamily(t){return"undefined"==typeof process?t:t.trim().split(",").map(wrapFontFamily).join(",")}function prepareFontStyle(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:""}}function prepareFontWeight(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return e;default:return/^[\d.]+$/.test(e)?e:""}}var Font=function(){function t(e,r,n,i,a,s){_classCallCheck(this,t);var o=s?"string"==typeof s?t.parse(s):s:{};this.fontFamily=a||o.fontFamily,this.fontSize=i||o.fontSize,this.fontStyle=e||o.fontStyle,this.fontWeight=n||o.fontWeight,this.fontVariant=r||o.fontVariant}return _createClass(t,[{key:"toString",value:function(){return[prepareFontStyle(this.fontStyle),this.fontVariant,prepareFontWeight(this.fontWeight),this.fontSize,prepareFontFamily(this.fontFamily)].join(" ").trim()}}],[{key:"parse",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,n="",i="",a="",s="",o="",l={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return compressSpaces(e).trim().split(" ").forEach(function(e){switch(!0){case!l.fontStyle&&t.styles.includes(e):"inherit"!==e&&(n=e),l.fontStyle=!0;break;case!l.fontVariant&&t.variants.includes(e):"inherit"!==e&&(i=e),l.fontStyle=!0,l.fontVariant=!0;break;case!l.fontWeight&&t.weights.includes(e):"inherit"!==e&&(a=e),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0;break;case!l.fontSize:if("inherit"!==e){var r=e.split("/"),u=_slicedToArray(r,1);s=u[0]}l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0,l.fontSize=!0;break;default:"inherit"!==e&&(o+=e)}}),new t(n,i,a,s,o,r)}}]),t}();Font.styles="normal|italic|oblique|inherit",Font.variants="normal|small-caps|inherit",Font.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var BoundingBox=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;_classCallCheck(this,t),this.x1=e,this.y1=r,this.x2=n,this.y2=i,this.addPoint(e,r),this.addPoint(n,i)}return _createClass(t,[{key:"addPoint",value:function(t,e){void 0!==t&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),t<this.x1&&(this.x1=t),t>this.x2&&(this.x2=t)),void 0!==e&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),e<this.y1&&(this.y1=e),e>this.y2&&(this.y2=e))}},{key:"addX",value:function(t){this.addPoint(t,null)}},{key:"addY",value:function(t){this.addPoint(null,t)}},{key:"addBoundingBox",value:function(t){if(t){var e=t.x1,r=t.y1,n=t.x2,i=t.y2;this.addPoint(e,r),this.addPoint(n,i)}}},{key:"sumCubic",value:function(t,e,r,n,i){return Math.pow(1-t,3)*e+3*Math.pow(1-t,2)*t*r+3*(1-t)*Math.pow(t,2)*n+Math.pow(t,3)*i}},{key:"bezierCurveAdd",value:function(t,e,r,n,i){var a=6*e-12*r+6*n,s=-3*e+9*r-9*n+3*i,o=3*r-3*e;if(0!==s){var l=Math.pow(a,2)-4*o*s;if(!(l<0)){var u=(-a+Math.sqrt(l))/(2*s);0<u&&u<1&&(t?this.addX(this.sumCubic(u,e,r,n,i)):this.addY(this.sumCubic(u,e,r,n,i)));var h=(-a-Math.sqrt(l))/(2*s);0<h&&h<1&&(t?this.addX(this.sumCubic(h,e,r,n,i)):this.addY(this.sumCubic(h,e,r,n,i)))}}else{if(0===a)return;var c=-o/a;0<c&&c<1&&(t?this.addX(this.sumCubic(c,e,r,n,i)):this.addY(this.sumCubic(c,e,r,n,i)))}}},{key:"addBezierCurve",value:function(t,e,r,n,i,a,s,o){this.addPoint(t,e),this.addPoint(s,o),this.bezierCurveAdd(!0,t,r,i,s),this.bezierCurveAdd(!1,e,n,a,o)}},{key:"addQuadraticCurve",value:function(t,e,r,n,i,a){var s=t+2/3*(r-t),o=e+2/3*(n-e),l=s+1/3*(i-t),u=o+1/3*(a-e);this.addBezierCurve(t,e,s,l,o,u,i,a)}},{key:"isPointInBox",value:function(t,e){var r=this.x1,n=this.y1,i=this.x2,a=this.y2;return r<=t&&t<=i&&n<=e&&e<=a}},{key:"x",get:function(){return this.x1}},{key:"y",get:function(){return this.y1}},{key:"width",get:function(){return this.x2-this.x1}},{key:"height",get:function(){return this.y2-this.y1}}]),t}(),Translate=function(){function t(e,r){_classCallCheck(this,t),this.type="translate",this.point=null,this.point=Point.parse(r)}return _createClass(t,[{key:"apply",value:function(t){var e=this.point,r=e.x,n=e.y;t.translate(r||0,n||0)}},{key:"unapply",value:function(t){var e=this.point,r=e.x,n=e.y;t.translate(-1*r||0,-1*n||0)}},{key:"applyToPoint",value:function(t){var e=this.point,r=e.x,n=e.y;t.applyTransform([1,0,0,1,r||0,n||0])}}]),t}(),Rotate=function(){function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];_classCallCheck(this,t),this.type="rotate",this.angle=null,this.cx=0,this.cy=0;var i=toNumbers(r);this.angle=new Property(e,"angle",i[0]),this.cx=(i[1]||0)+(n[0]||0),this.cy=(i[2]||0)+(n[1]||0)}return _createClass(t,[{key:"apply",value:function(t){var e=this.cx,r=this.cy,n=this.angle;t.translate(e,r),t.rotate(n.getRadians()),t.translate(-e,-r)}},{key:"unapply",value:function(t){var e=this.cx,r=this.cy,n=this.angle;t.translate(e,r),t.rotate(-1*n.getRadians()),t.translate(-e,-r)}},{key:"applyToPoint",value:function(t){var e=this.cx,r=this.cy,n=this.angle.getRadians();t.applyTransform([1,0,0,1,e||0,r||0]),t.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),t.applyTransform([1,0,0,1,-e||0,-r||0])}}]),t}(),Scale=function(){function t(e,r){_classCallCheck(this,t),this.type="scale",this.scale=null;var n=Point.parseScale(r);0!==n.x&&0!==n.y||(n.x=PSEUDO_ZERO,n.y=PSEUDO_ZERO),this.scale=n}return _createClass(t,[{key:"apply",value:function(t){var e=this.scale,r=e.x,n=e.y;t.scale(r,n||r)}},{key:"unapply",value:function(t){var e=this.scale,r=e.x,n=e.y;t.scale(1/r,1/n||r)}},{key:"applyToPoint",value:function(t){var e=this.scale,r=e.x,n=e.y;t.applyTransform([r||0,0,0,n||0,0,0])}}]),t}(),Matrix=function(){function t(e,r){_classCallCheck(this,t),this.type="matrix",this.matrix=[],this.matrix=toNumbers(r)}return _createClass(t,[{key:"apply",value:function(t){var e=this.matrix;t.transform(e[0],e[1],e[2],e[3],e[4],e[5])}},{key:"unapply",value:function(t){var e=this.matrix,r=e[0],n=e[2],i=e[4],a=e[1],s=e[3],o=e[5],l=1/(r*(1*s-0*o)-n*(1*a-0*o)+i*(0*a-0*s));t.transform(l*(1*s-0*o),l*(0*o-1*a),l*(0*i-1*n),l*(1*r-0*i),l*(n*o-i*s),l*(i*a-r*o))}},{key:"applyToPoint",value:function(t){t.applyTransform(this.matrix)}}]),t}(),Skew=function(t){function e(t,r){var n;return _classCallCheck(this,e),(n=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,r))).type="skew",n.angle=null,n.angle=new Property(t,"angle",r),n}return _inherits(e,Matrix),e}(),SkewX=function(t){function e(t,r){var n;return _classCallCheck(this,e),(n=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,r))).type="skewX",n.matrix=[1,0,Math.tan(n.angle.getRadians()),1,0,0],n}return _inherits(e,Skew),e}(),SkewY=function(t){function e(t,r){var n;return _classCallCheck(this,e),(n=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,r))).type="skewY",n.matrix=[1,Math.tan(n.angle.getRadians()),0,1,0,0],n}return _inherits(e,Skew),e}();function parseTransforms(t){return compressSpaces(t).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function parseTransform(t){var e=t.split("("),r=_slicedToArray(e,2),n=r[0],i=r[1];return[n.trim(),i.trim().replace(")","")]}var Transform=function(){function t(e,r,n){var i=this;_classCallCheck(this,t),this.document=e,this.transforms=[];var a=parseTransforms(r),s=n?toNumbers(n):[];a.forEach(function(e){if("none"!==e){var r=parseTransform(e),n=_slicedToArray(r,2),a=n[0],o=n[1],l=t.transformTypes[a];void 0!==l&&i.transforms.push(new l(i.document,o,s))}})}return _createClass(t,[{key:"apply",value:function(t){for(var e=this.transforms,r=e.length,n=0;n<r;n++)e[n].apply(t)}},{key:"unapply",value:function(t){for(var e=this.transforms,r=e.length-1;r>=0;r--)e[r].unapply(t)}},{key:"applyToPoint",value:function(t){for(var e=this.transforms,r=e.length,n=0;n<r;n++)e[n].applyToPoint(t)}}],[{key:"fromElement",value:function(e,r){var n=r.getStyle("transform",!1,!0),i=r.getStyle("transform-origin",!1,!0);return n.hasValue()?new t(e,n.getString(),i.getString()):null}}]),t}();Transform.transformTypes={translate:Translate,rotate:Rotate,scale:Scale,matrix:Matrix,skewX:SkewX,skewY:SkewY};var RenderedElement=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))).modifiedEmSizeStack=!1,t}return _inherits(e,Element),_createClass(e,[{key:"calculateOpacity",value:function(){for(var t=1,e=this;e;){var r=e.getStyle("opacity",!1,!0);r.hasValue()&&(t*=r.getNumber()),e=e.parent}return t}},{key:"setContext",value:function(t){if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])){var e=this.getStyle("fill"),r=this.getStyle("fill-opacity"),n=this.getStyle("stroke"),i=this.getStyle("stroke-opacity");if(e.isUrlDefinition()){var a=e.getFillStyleDefinition(this,r);a&&(t.fillStyle=a)}else if(e.hasValue()){"currentColor"===e.getString()&&e.setValue(this.getStyle("color").getValue());var s=e.getString();"inherit"!==s&&(t.fillStyle="none"===s?"rgba(0,0,0,0)":s)}if(r.hasValue()){var o=new Property(this.document,"fill",t.fillStyle).addOpacity(r).getString();t.fillStyle=o}if(n.isUrlDefinition()){var l=n.getFillStyleDefinition(this,i);l&&(t.strokeStyle=l)}else if(n.hasValue()){"currentColor"===n.getString()&&n.setValue(this.getStyle("color").getValue());var u=n.getString();"inherit"!==u&&(t.strokeStyle="none"===u?"rgba(0,0,0,0)":u)}if(i.hasValue()){var h=new Property(this.document,"stroke",t.strokeStyle).addOpacity(i).getString();t.strokeStyle=h}var c=this.getStyle("stroke-width");if(c.hasValue()){var g=c.getPixels();t.lineWidth=g||PSEUDO_ZERO}var f=this.getStyle("stroke-linecap"),p=this.getStyle("stroke-linejoin"),y=this.getStyle("stroke-miterlimit"),d=this.getStyle("paint-order"),m=this.getStyle("stroke-dasharray"),v=this.getStyle("stroke-dashoffset");if(f.hasValue()&&(t.lineCap=f.getString()),p.hasValue()&&(t.lineJoin=p.getString()),y.hasValue()&&(t.miterLimit=y.getNumber()),d.hasValue()&&(t.paintOrder=d.getValue()),m.hasValue()&&"none"!==m.getString()){var x=toNumbers(m.getString());void 0!==t.setLineDash?t.setLineDash(x):void 0!==t.webkitLineDash?t.webkitLineDash=x:void 0===t.mozDash||1===x.length&&0===x[0]||(t.mozDash=x);var b=v.getPixels();void 0!==t.lineDashOffset?t.lineDashOffset=b:void 0!==t.webkitLineDashOffset?t.webkitLineDashOffset=b:void 0!==t.mozDashOffset&&(t.mozDashOffset=b)}}if(this.modifiedEmSizeStack=!1,void 0!==t.font){var k=this.getStyle("font"),C=this.getStyle("font-style"),P=this.getStyle("font-variant"),S=this.getStyle("font-weight"),w=this.getStyle("font-size"),E=this.getStyle("font-family"),_=new Font(C.getString(),P.getString(),S.getString(),w.hasValue()?"".concat(w.getPixels(!0),"px"):"",E.getString(),Font.parse(k.getString(),t.font));C.setValue(_.fontStyle),P.setValue(_.fontVariant),S.setValue(_.fontWeight),w.setValue(_.fontSize),E.setValue(_.fontFamily),t.font=_.toString(),w.isPixels()&&(this.document.emSize=w.getPixels(),this.modifiedEmSizeStack=!0)}var A=Transform.fromElement(this.document,this);A&&A.apply(t);var T=this.getStyle("clip-path",!1,!0);if(T.hasValue()){var M=T.getDefinition();M&&M.apply(t)}t.globalAlpha=this.calculateOpacity()}},{key:"clearContext",value:function(t){_get(_getPrototypeOf(e.prototype),"clearContext",this).call(this,t),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),e}(),TextElement=function(t){function e(t,r,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,r,(this instanceof e?this.constructor:void 0)===e||n))).type="text",i.x=0,i.y=0,i.measureCache=-1,i}return _inherits(e,RenderedElement),_createClass(e,[{key:"setContext",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_get(_getPrototypeOf(e.prototype),"setContext",this).call(this,t,r);var n=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();n&&(t.textBaseline=n)}},{key:"initializeCoordinates",value:function(t){this.x=this.getAttribute("x").getPixels("x"),this.y=this.getAttribute("y").getPixels("y");var e=this.getAttribute("dx"),r=this.getAttribute("dy");e.hasValue()&&(this.x+=e.getPixels("x")),r.hasValue()&&(this.y+=r.getPixels("y")),this.x+=this.getAnchorDelta(t,this,0)}},{key:"getBoundingBox",value:function(t){var e=this;if("text"!==this.type)return this.getTElementBoundingBox(t);this.initializeCoordinates(t);var r=null;return this.children.forEach(function(n,i){var a=e.getChildBoundingBox(t,e,e,i);r?r.addBoundingBox(a):r=a}),r}},{key:"getFontSize",value:function(){var t=this.document,e=this.parent,r=Font.parse(t.ctx.font).fontSize;return e.getStyle("font-size").getNumber(r)}},{key:"getTElementBoundingBox",value:function(t){var e=this.getFontSize();return new BoundingBox(this.x,this.y-e,this.x+this.measureText(t),this.y)}},{key:"getGlyph",value:function(t,e,r){var n=e[r],i=null;if(t.isArabic){var a=e.length,s=e[r-1],o=e[r+1],l="isolated";(0===r||" "===s)&&r<a-2&&" "!==o&&(l="terminal"),r>0&&" "!==s&&r<a-2&&" "!==o&&(l="medial"),r>0&&" "!==s&&(r===a-1||" "===o)&&(l="initial"),void 0!==t.glyphs[n]&&((i=t.glyphs[n][l])||"glyph"!==t.glyphs[n].type||(i=t.glyphs[n]))}else i=t.glyphs[n];return i||(i=t.missingGlyph),i}},{key:"getText",value:function(){return""}},{key:"getTextFromNode",value:function(t){var e=t||this.node,r=Array.from(e.parentNode.childNodes),n=r.indexOf(e),i=r.length-1,a=compressSpaces(e.value||e.text||e.textContent||"");return 0===n&&(a=trimLeft(a)),n===i&&(a=trimRight(a)),a}},{key:"renderChildren",value:function(t){var e=this;if("text"===this.type){this.initializeCoordinates(t),this.children.forEach(function(r,n){e.renderChild(t,e,e,n)});var r=this.document.screen.mouse;r.isWorking()&&r.checkBoundingBox(this,this.getBoundingBox(t))}else this.renderTElementChildren(t)}},{key:"renderTElementChildren",value:function(t){var e=this.document,r=this.parent,n=this.getText(),i=r.getStyle("font-family").getDefinition();if(i)for(var a=i.fontFace.unitsPerEm,s=Font.parse(e.ctx.font),o=r.getStyle("font-size").getNumber(s.fontSize),l=r.getStyle("font-style").getString(s.fontStyle),u=o/a,h=i.isRTL?n.split("").reverse().join(""):n,c=toNumbers(r.getAttribute("dx").getString()),g=h.length,f=0;f<g;f++){var p=this.getGlyph(i,h,f);t.translate(this.x,this.y),t.scale(u,-u);var y=t.lineWidth;t.lineWidth=t.lineWidth*a/o,"italic"===l&&t.transform(1,0,.4,1,0,0),p.render(t),"italic"===l&&t.transform(1,0,-.4,1,0,0),t.lineWidth=y,t.scale(1/u,-1/u),t.translate(-this.x,-this.y),this.x+=o*(p.horizAdvX||i.horizAdvX)/a,void 0===c[f]||isNaN(c[f])||(this.x+=c[f])}else{var d=this.x,m=this.y;"stroke"===t.paintOrder?(t.strokeStyle&&t.strokeText(n,d,m),t.fillStyle&&t.fillText(n,d,m)):(t.fillStyle&&t.fillText(n,d,m),t.strokeStyle&&t.strokeText(n,d,m))}}},{key:"getAnchorDelta",value:function(t,e,r){var n=this.getStyle("text-anchor").getString("start");if("start"!==n){for(var i=e.children,a=i.length,s=null,o=0,l=r;l<a&&(s=i[l],!(l>r&&s.getAttribute("x").hasValue()||s.getAttribute("text-anchor").hasValue()));l++)o+=s.measureTextRecursive(t);return-1*("end"===n?o:o/2)}return 0}},{key:"adjustChildCoordinates",value:function(t,e,r,n){var i=r.children[n];if("function"!=typeof i.measureText)return i;var a=i.getAttribute("x"),s=i.getAttribute("y"),o=i.getAttribute("dx"),l=i.getAttribute("dy"),u=i.getAttribute("text-anchor").getString("start");if(0===n&&"textNode"!==i.type&&(a.hasValue()||a.setValue(e.getAttribute("x").getValue("0")),s.hasValue()||s.setValue(e.getAttribute("y").getValue("0")),o.hasValue()||o.setValue(e.getAttribute("dx").getValue("0")),l.hasValue()||l.setValue(e.getAttribute("dy").getValue("0"))),a.hasValue()){if(i.x=a.getPixels("x")+e.getAnchorDelta(t,r,n),"start"!==u){var h=i.measureTextRecursive(t);i.x+=-1*("end"===u?h:h/2)}o.hasValue()&&(i.x+=o.getPixels("x"))}else{if("start"!==u){var c=i.measureTextRecursive(t);e.x+=-1*("end"===u?c:c/2)}o.hasValue()&&(e.x+=o.getPixels("x")),i.x=e.x}return e.x=i.x+i.measureText(t),s.hasValue()?(i.y=s.getPixels("y"),l.hasValue()&&(i.y+=l.getPixels("y"))):(l.hasValue()&&(e.y+=l.getPixels("y")),i.y=e.y),e.y=i.y,i}},{key:"getChildBoundingBox",value:function(t,e,r,n){var i=this.adjustChildCoordinates(t,e,r,n),a=i.getBoundingBox(t);return a?(i.children.forEach(function(r,n){var s=e.getChildBoundingBox(t,e,i,n);a.addBoundingBox(s)}),a):null}},{key:"renderChild",value:function(t,e,r,n){var i=this.adjustChildCoordinates(t,e,r,n);i.render(t),i.children.forEach(function(r,n){e.renderChild(t,e,i,n)})}},{key:"measureTextRecursive",value:function(t){return this.children.reduce(function(e,r){return e+r.measureTextRecursive(t)},this.measureText(t))}},{key:"measureText",value:function(t){var e=this.measureCache;if(~e)return e;var r=this.getText(),n=this.measureTargetText(t,r);return this.measureCache=n,n}},{key:"measureTargetText",value:function(t,e){if(!e.length)return 0;var r=this.parent,n=r.getStyle("font-family").getDefinition();if(n){for(var i=this.getFontSize(),a=n.isRTL?e.split("").reverse().join(""):e,s=toNumbers(r.getAttribute("dx").getString()),o=a.length,l=0,u=0;u<o;u++){l+=(this.getGlyph(n,a,u).horizAdvX||n.horizAdvX)*i/n.fontFace.unitsPerEm,void 0===s[u]||isNaN(s[u])||(l+=s[u])}return l}if(!t.measureText)return 10*e.length;t.save(),this.setContext(t,!0);var h=t.measureText(e).width;return t.restore(),h}}]),e}(),TSpanElement=function(t){function e(t,r,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,r,(this instanceof e?this.constructor:void 0)===e||n))).type="tspan",i.text=i.children.length>0?"":i.getTextFromNode(),i}return _inherits(e,TextElement),_createClass(e,[{key:"getText",value:function(){return this.text}}]),e}(),TextNode=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))).type="textNode",t}return _inherits(e,TSpanElement),e}();function preparePath(t){return compressSpaces(t.replace(/,/gm," ").replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2").replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2").replace(/([^\s])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2").replace(/([0-9])([+\-])/gm,"$1 $2").replace(/(\.[0-9]*)(\.)/gm,"$1 $2").replace(/(\.[0-9]*)(\.)/gm,"$1 $2").replace(/([Aa](\s+[0-9]+){3})\s+([01])\s*([01])/gm,"$1 $3 $4 ")).trim()}var PathParser=function(){function t(e){_classCallCheck(this,t),this.control=null,this.start=null,this.current=null,this.command="",this.tokens=[],this.i=-1,this.previousCommand="",this.points=[],this.angles=[],this.tokens=preparePath(e).split(" ")}return _createClass(t,[{key:"reset",value:function(){this.i=-1,this.command="",this.previousCommand="",this.start=new Point(0,0),this.control=new Point(0,0),this.current=new Point(0,0),this.points=[],this.angles=[]}},{key:"isEnd",value:function(){return this.i>=this.tokens.length-1}},{key:"isCommandOrEnd",value:function(){if(this.isEnd())return!0;var t=this.i,e=this.tokens;return/^[A-Za-z]$/.test(e[t+1])}},{key:"isRelativeCommand",value:function(){switch(this.command){case"m":case"l":case"h":case"v":case"c":case"s":case"q":case"t":case"a":case"z":return!0;default:return!1}}},{key:"getToken",value:function(){return this.i++,this.tokens[this.i]}},{key:"getScalar",value:function(){return parseFloat(this.getToken())}},{key:"nextCommand",value:function(){this.previousCommand=this.command,this.command=this.getToken()}},{key:"getPoint",value:function(){var t=new Point(this.getScalar(),this.getScalar());return this.makeAbsolute(t)}},{key:"getAsControlPoint",value:function(){var t=this.getPoint();return this.control=t,t}},{key:"getAsCurrentPoint",value:function(){var t=this.getPoint();return this.current=t,t}},{key:"getReflectedControlPoint",value:function(){var t=this.previousCommand.toLowerCase();if("c"!==t&&"s"!==t&&"q"!==t&&"t"!==t)return this.current;var e=this.current,r=e.x,n=e.y,i=this.control,a=i.x,s=i.y;return new Point(2*r-a,2*n-s)}},{key:"makeAbsolute",value:function(t){if(this.isRelativeCommand()){var e=this.current,r=e.x,n=e.y;t.x+=r,t.y+=n}return t}},{key:"addMarker",value:function(t,e,r){var n=this.points,i=this.angles;r&&i.length>0&&!i[i.length-1]&&(i[i.length-1]=n[n.length-1].angleTo(r)),this.addMarkerAngle(t,e?e.angleTo(t):null)}},{key:"addMarkerAngle",value:function(t,e){this.points.push(t),this.angles.push(e)}},{key:"getMarkerPoints",value:function(){return this.points}},{key:"getMarkerAngles",value:function(){for(var t=this.angles,e=t.length,r=0;r<e;r++)if(!t[r])for(var n=r+1;n<e;n++)if(t[n]){t[r]=t[n];break}return t}}]),t}(),PathElement=function(t){function e(t,r,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,r,n))).type="path",i.pathParser=null,i.pathParser=new PathParser(i.getAttribute("d").getString()),i}return _inherits(e,RenderedElement),_createClass(e,[{key:"path",value:function(t){var e=this.pathParser,r=new BoundingBox;for(e.reset(),t&&t.beginPath();!e.isEnd();)switch(e.nextCommand(),e.command){case"M":case"m":this.pathM(t,r);break;case"L":case"l":this.pathL(t,r);break;case"H":case"h":this.pathH(t,r);break;case"V":case"v":this.pathV(t,r);break;case"C":case"c":this.pathC(t,r);break;case"S":case"s":this.pathS(t,r);break;case"Q":case"q":this.pathQ(t,r);break;case"T":case"t":this.pathT(t,r);break;case"A":case"a":this.pathA(t,r);break;case"Z":case"z":this.pathZ(t,r)}return r}},{key:"getBoundingBox",value:function(t){return this.path()}},{key:"getMarkers",value:function(){var t=this.pathParser,e=t.getMarkerPoints(),r=t.getMarkerAngles();return e.map(function(t,e){return[t,r[e]]})}},{key:"renderChildren",value:function(t){this.path(t),this.document.screen.mouse.checkPath(this,t);var e=this.getStyle("fill-rule");""!==t.fillStyle&&("inherit"!==e.getString("inherit")?t.fill(e.getString()):t.fill()),""!==t.strokeStyle&&t.stroke();var r=this.getMarkers();if(r){var n=r.length-1,i=this.getStyle("marker-start"),a=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(i.isUrlDefinition()){var o=i.getDefinition(),l=_slicedToArray(r[0],2),u=l[0],h=l[1];o.render(t,u,h)}if(a.isUrlDefinition())for(var c=a.getDefinition(),g=1;g<n;g++){var f=_slicedToArray(r[g],2),p=f[0],y=f[1];c.render(t,p,y)}if(s.isUrlDefinition()){var d=s.getDefinition(),m=_slicedToArray(r[n],2),v=m[0],x=m[1];d.render(t,v,x)}}}},{key:"pathM",value:function(t,e){var r=this.pathParser,n=r.getAsCurrentPoint(),i=n.x,a=n.y;for(r.addMarker(n),e.addPoint(i,a),t&&t.moveTo(i,a),r.start=r.current;!r.isCommandOrEnd();){var s=r.getAsCurrentPoint(),o=s.x,l=s.y;r.addMarker(s,r.start),e.addPoint(o,l),t&&t.lineTo(o,l)}}},{key:"pathL",value:function(t,e){for(var r=this.pathParser;!r.isCommandOrEnd();){var n=r.current,i=r.getAsCurrentPoint(),a=i.x,s=i.y;r.addMarker(i,n),e.addPoint(a,s),t&&t.lineTo(a,s)}}},{key:"pathH",value:function(t,e){for(var r=this.pathParser;!r.isCommandOrEnd();){var n=r.current,i=new Point((r.isRelativeCommand()?n.x:0)+r.getScalar(),n.y);r.addMarker(i,n),r.current=i,e.addPoint(i.x,i.y),t&&t.lineTo(i.x,i.y)}}},{key:"pathV",value:function(t,e){for(var r=this.pathParser;!r.isCommandOrEnd();){var n=r.current,i=new Point(n.x,(r.isRelativeCommand()?n.y:0)+r.getScalar());r.addMarker(i,n),r.current=i,e.addPoint(i.x,i.y),t&&t.lineTo(i.x,i.y)}}},{key:"pathC",value:function(t,e){for(var r=this.pathParser;!r.isCommandOrEnd();){var n=r.current,i=r.getPoint(),a=r.getAsControlPoint(),s=r.getAsCurrentPoint();r.addMarker(s,a,i),e.addBezierCurve(n.x,n.y,i.x,i.y,a.x,a.y,s.x,s.y),t&&t.bezierCurveTo(i.x,i.y,a.x,a.y,s.x,s.y)}}},{key:"pathS",value:function(t,e){for(var r=this.pathParser;!r.isCommandOrEnd();){var n=r.current,i=r.getReflectedControlPoint(),a=r.getAsControlPoint(),s=r.getAsCurrentPoint();r.addMarker(s,a,i),e.addBezierCurve(n.x,n.y,i.x,i.y,a.x,a.y,s.x,s.y),t&&t.bezierCurveTo(i.x,i.y,a.x,a.y,s.x,s.y)}}},{key:"pathQ",value:function(t,e){for(var r=this.pathParser;!r.isCommandOrEnd();){var n=r.current,i=r.getAsControlPoint(),a=r.getAsCurrentPoint();r.addMarker(a,i,i),e.addQuadraticCurve(n.x,n.y,i.x,i.y,a.x,a.y),t&&t.quadraticCurveTo(i.x,i.y,a.x,a.y)}}},{key:"pathT",value:function(t,e){for(var r=this.pathParser;!r.isCommandOrEnd();){var n=r.current,i=r.getReflectedControlPoint();r.control=i;var a=r.getAsCurrentPoint();r.addMarker(a,i,i),e.addQuadraticCurve(n.x,n.y,i.x,i.y,a.x,a.y),t&&t.quadraticCurveTo(i.x,i.y,a.x,a.y)}}},{key:"pathA",value:function(t,e){for(var r=this.pathParser;!r.isCommandOrEnd();){var n=r.current,i=r.getScalar(),a=r.getScalar(),s=r.getScalar()*(Math.PI/180),o=r.getScalar(),l=r.getScalar(),u=r.getAsCurrentPoint(),h=new Point(Math.cos(s)*(n.x-u.x)/2+Math.sin(s)*(n.y-u.y)/2,-Math.sin(s)*(n.x-u.x)/2+Math.cos(s)*(n.y-u.y)/2),c=Math.pow(h.x,2)/Math.pow(i,2)+Math.pow(h.y,2)/Math.pow(a,2);c>1&&(i*=Math.sqrt(c),a*=Math.sqrt(c));var g=(o===l?-1:1)*Math.sqrt((Math.pow(i,2)*Math.pow(a,2)-Math.pow(i,2)*Math.pow(h.y,2)-Math.pow(a,2)*Math.pow(h.x,2))/(Math.pow(i,2)*Math.pow(h.y,2)+Math.pow(a,2)*Math.pow(h.x,2)));isNaN(g)&&(g=0);var f=new Point(g*i*h.y/a,g*-a*h.x/i),p=new Point((n.x+u.x)/2+Math.cos(s)*f.x-Math.sin(s)*f.y,(n.y+u.y)/2+Math.sin(s)*f.x+Math.cos(s)*f.y),y=vectorsAngle([1,0],[(h.x-f.x)/i,(h.y-f.y)/a]),d=[(h.x-f.x)/i,(h.y-f.y)/a],m=[(-h.x-f.x)/i,(-h.y-f.y)/a],v=vectorsAngle(d,m);vectorsRatio(d,m)<=-1&&(v=Math.PI),vectorsRatio(d,m)>=1&&(v=0);var x=1-l?1:-1,b=y+x*(v/2),k=new Point(p.x+i*Math.cos(b),p.y+a*Math.sin(b));if(r.addMarkerAngle(k,b-x*Math.PI/2),r.addMarkerAngle(u,b-x*Math.PI),e.addPoint(u.x,u.y),t&&!isNaN(y)&&!isNaN(v)){var C=i>a?i:a,P=i>a?1:i/a,S=i>a?a/i:1;t.translate(p.x,p.y),t.rotate(s),t.scale(P,S),t.arc(0,0,C,y,y+v,Boolean(1-l)),t.scale(1/P,1/S),t.rotate(-s),t.translate(-p.x,-p.y)}}}},{key:"pathZ",value:function(t,e){var r=this.pathParser;t&&e.x1!==e.x2&&e.y1!==e.y2&&t.closePath(),r.current=r.start}}]),e}(),SVGElement=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))).type="svg",t.root=!1,t}return _inherits(e,RenderedElement),_createClass(e,[{key:"clearContext",value:function(t){_get(_getPrototypeOf(e.prototype),"clearContext",this).call(this,t),this.document.screen.viewPort.removeCurrent()}},{key:"setContext",value:function(t){var r=this.document,n=r.screen,i=r.window,a=t.canvas;if(n.setDefaults(t),a.style&&void 0!==t.font&&i&&void 0!==i.getComputedStyle){t.font=i.getComputedStyle(a).getPropertyValue("font");var s=new Property(r,"fontSize",Font.parse(t.font).fontSize);s.hasValue()&&(r.rootEmSize=s.getPixels("y"),r.emSize=r.rootEmSize)}_get(_getPrototypeOf(e.prototype),"setContext",this).call(this,t),this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y"));var o=n.viewPort,l=o.width,u=o.height;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%");var h=this.getAttribute("refX"),c=this.getAttribute("refY"),g=this.getAttribute("viewBox"),f=g.hasValue()?toNumbers(g.getString()):null,p=!this.root&&"visible"!==this.getAttribute("overflow").getValue("hidden"),y=0,d=0,m=0,v=0;f&&(y=f[0],d=f[1]),this.root||(l=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y"),"marker"===this.type&&(m=y,v=d,y=0,d=0)),n.viewPort.setCurrent(l,u),f&&(l=f[2],u=f[3]),r.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:n.viewPort.width,desiredWidth:l,height:n.viewPort.height,desiredHeight:u,minX:y,minY:d,refX:h.getValue(),refY:c.getValue(),clip:p,clipX:m,clipY:v}),f&&(n.viewPort.removeCurrent(),n.viewPort.setCurrent(l,u))}},{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this.getAttribute("width",!0),i=this.getAttribute("height",!0),a=this.getAttribute("viewBox"),s=this.getAttribute("style"),o=n.getNumber(0),l=i.getNumber(0);if(r)if("string"==typeof r)this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var u=this.getAttribute("preserveAspectRatio");u.hasValue()&&u.setValue(u.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(n.setValue(t),i.setValue(e),a.hasValue()||a.setValue("0 0 ".concat(o||t," ").concat(l||e)),s.hasValue()){var h=this.getStyle("width"),c=this.getStyle("height");h.hasValue()&&h.setValue("".concat(t,"px")),c.hasValue()&&c.setValue("".concat(e,"px"))}}}]),e}(),RectElement=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))).type="rect",t}return _inherits(e,PathElement),_createClass(e,[{key:"path",value:function(t){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),n=this.getStyle("width").getPixels("x"),i=this.getStyle("height").getPixels("y"),a=this.getAttribute("rx"),s=this.getAttribute("ry"),o=a.getPixels("x"),l=s.getPixels("y");if(a.hasValue()&&!s.hasValue()&&(l=o),s.hasValue()&&!a.hasValue()&&(o=l),o=Math.min(o,n/2),l=Math.min(l,i/2),t){var u=(Math.sqrt(2)-1)/3*4;t.beginPath(),i>0&&n>0&&(t.moveTo(e+o,r),t.lineTo(e+n-o,r),t.bezierCurveTo(e+n-o+u*o,r,e+n,r+l-u*l,e+n,r+l),t.lineTo(e+n,r+i-l),t.bezierCurveTo(e+n,r+i-l+u*l,e+n-o+u*o,r+i,e+n-o,r+i),t.lineTo(e+o,r+i),t.bezierCurveTo(e+o-u*o,r+i,e,r+i-l+u*l,e,r+i-l),t.lineTo(e,r+l),t.bezierCurveTo(e,r+l-u*l,e+o-u*o,r,e+o,r),t.closePath())}return new BoundingBox(e,r,e+n,r+i)}},{key:"getMarkers",value:function(){return null}}]),e}(),CircleElement=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))).type="circle",t}return _inherits(e,PathElement),_createClass(e,[{key:"path",value:function(t){var e=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),n=this.getAttribute("r").getPixels();return t&&n>0&&(t.beginPath(),t.arc(e,r,n,0,2*Math.PI,!1),t.closePath()),new BoundingBox(e-n,r-n,e+n,r+n)}},{key:"getMarkers",value:function(){return null}}]),e}(),EllipseElement=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))).type="ellipse",t}return _inherits(e,PathElement),_createClass(e,[{key:"path",value:function(t){var e=(Math.sqrt(2)-1)/3*4,r=this.getAttribute("rx").getPixels("x"),n=this.getAttribute("ry").getPixels("y"),i=this.getAttribute("cx").getPixels("x"),a=this.getAttribute("cy").getPixels("y");return t&&(t.beginPath(),t.moveTo(i+r,a),t.bezierCurveTo(i+r,a+e*n,i+e*r,a+n,i,a+n),t.bezierCurveTo(i-e*r,a+n,i-r,a+e*n,i-r,a),t.bezierCurveTo(i-r,a-e*n,i-e*r,a-n,i,a-n),t.bezierCurveTo(i+e*r,a-n,i+r,a-e*n,i+r,a),t.closePath()),new BoundingBox(i-r,a-n,i+r,a+n)}},{key:"getMarkers",value:function(){return null}}]),e}(),LineElement=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))).type="line",t}return _inherits(e,PathElement),_createClass(e,[{key:"getPoints",value:function(){return[new Point(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Point(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function(t){var e=this.getPoints(),r=_slicedToArray(e,2),n=r[0],i=n.x,a=n.y,s=r[1],o=s.x,l=s.y;return t&&(t.beginPath(),t.moveTo(i,a),t.lineTo(o,l)),new BoundingBox(i,a,o,l)}},{key:"getMarkers",value:function(){var t=this.getPoints(),e=_slicedToArray(t,2),r=e[0],n=e[1],i=r.angleTo(n);return[[r,i],[n,i]]}}]),e}(),PolylineElement=function(t){function e(t,r,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,r,n))).type="polyline",i.points=[],i.points=Point.parsePath(i.getAttribute("points").getString()),i}return _inherits(e,PathElement),_createClass(e,[{key:"path",value:function(t){var e=this.points,r=_slicedToArray(e,1)[0],n=r.x,i=r.y,a=new BoundingBox(n,i);return t&&(t.beginPath(),t.moveTo(n,i)),e.forEach(function(e){var r=e.x,n=e.y;a.addPoint(r,n),t&&t.lineTo(r,n)}),a}},{key:"getMarkers",value:function(){var t=this.points,e=t.length-1,r=[];return t.forEach(function(n,i){i!==e&&r.push([n,n.angleTo(t[i+1])])}),r.length>0&&r.push([t[t.length-1],r[r.length-1][1]]),r}}]),e}(),PolygonElement=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))).type="polygon",t}return _inherits(e,PolylineElement),_createClass(e,[{key:"path",value:function(t){var r=_get(_getPrototypeOf(e.prototype),"path",this).call(this,t),n=_slicedToArray(this.points,1)[0],i=n.x,a=n.y;return t&&(t.lineTo(i,a),t.closePath()),r}}]),e}(),PatternElement=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))).type="pattern",t}return _inherits(e,Element),_createClass(e,[{key:"createPattern",value:function(t,e,r){var n=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),a=new SVGElement(this.document,null);a.attributes.viewBox=new Property(this.document,"viewBox",this.getAttribute("viewBox").getValue()),a.attributes.width=new Property(this.document,"width","".concat(n,"px")),a.attributes.height=new Property(this.document,"height","".concat(i,"px")),a.attributes.transform=new Property(this.document,"transform",this.getAttribute("patternTransform").getValue()),a.children=this.children;var s=this.document.createCanvas(n,i),o=s.getContext("2d"),l=this.getAttribute("x"),u=this.getAttribute("y");l.hasValue()&&u.hasValue()&&o.translate(l.getPixels("x",!0),u.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var h=-1;h<=1;h++)for(var c=-1;c<=1;c++)o.save(),a.attributes.x=new Property(this.document,"x",h*s.width),a.attributes.y=new Property(this.document,"y",c*s.height),a.render(o),o.restore();return t.createPattern(s,"repeat")}}]),e}(),MarkerElement=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))).type="marker",t}return _inherits(e,Element),_createClass(e,[{key:"render",value:function(t,e,r){if(e){var n=e.x,i=e.y,a=this.getAttribute("orient").getValue("auto"),s=this.getAttribute("markerUnits").getValue("strokeWidth");t.translate(n,i),"auto"===a&&t.rotate(r),"strokeWidth"===s&&t.scale(t.lineWidth,t.lineWidth),t.save();var o=new SVGElement(this.document,null);o.type=this.type,o.attributes.viewBox=new Property(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.refX=new Property(this.document,"refX",this.getAttribute("refX").getValue()),o.attributes.refY=new Property(this.document,"refY",this.getAttribute("refY").getValue()),o.attributes.width=new Property(this.document,"width",this.getAttribute("markerWidth").getValue()),o.attributes.height=new Property(this.document,"height",this.getAttribute("markerHeight").getValue()),o.attributes.overflow=new Property(this.document,"overflow",this.getAttribute("overflow").getValue()),o.attributes.fill=new Property(this.document,"fill",this.getAttribute("fill").getValue("black")),o.attributes.stroke=new Property(this.document,"stroke",this.getAttribute("stroke").getValue("none")),o.children=this.children,o.render(t),t.restore(),"strokeWidth"===s&&t.scale(1/t.lineWidth,1/t.lineWidth),"auto"===a&&t.rotate(-r),t.translate(-n,-i)}}}]),e}(),DefsElement=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))).type="defs",t}return _inherits(e,Element),_createClass(e,[{key:"render",value:function(){}}]),e}(),GElement=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))).type="g",t}return _inherits(e,RenderedElement),_createClass(e,[{key:"getBoundingBox",value:function(t){var e=new BoundingBox;return this.children.forEach(function(r){e.addBoundingBox(r.getBoundingBox(t))}),e}}]),e}(),GradientElement=function(t){function e(t,r,n){var i;_classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,r,n))).attributesToInherit=["gradientUnits"],i.stops=[];var a=_assertThisInitialized(i),s=a.stops;return a.children.forEach(function(t){"stop"===t.type&&s.push(t)}),i}return _inherits(e,Element),_createClass(e,[{key:"getGradientUnits",value:function(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function(t,e,r){var n=this,i=this;this.getHrefAttribute().hasValue()&&(i=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(i));var a=i.stops,s=this.getGradient(t,e);if(!s)return this.addParentOpacity(r,a[a.length-1].color);if(a.forEach(function(t){s.addColorStop(t.offset,n.addParentOpacity(r,t.color))}),this.getAttribute("gradientTransform").hasValue()){var o=this.document,l=o.screen,u=l.MAX_VIRTUAL_PIXELS,h=l.viewPort,c=_slicedToArray(h.viewPorts,1)[0],g=new RectElement(o,null);g.attributes.x=new Property(o,"x",-u/3),g.attributes.y=new Property(o,"y",-u/3),g.attributes.width=new Property(o,"width",u),g.attributes.height=new Property(o,"height",u);var f=new GElement(o,null);f.attributes.transform=new Property(o,"transform",this.getAttribute("gradientTransform").getValue()),f.children=[g];var p=new SVGElement(o,null);p.attributes.x=new Property(o,"x",0),p.attributes.y=new Property(o,"y",0),p.attributes.width=new Property(o,"width",c.width),p.attributes.height=new Property(o,"height",c.height),p.children=[f];var y=o.createCanvas(c.width,c.height),d=y.getContext("2d");return d.fillStyle=s,p.render(d),d.createPattern(y,"no-repeat")}return s}},{key:"inheritStopContainer",value:function(t){var e=this;this.attributesToInherit.forEach(function(r){!e.getAttribute(r).hasValue()&&t.getAttribute(r).hasValue()&&e.getAttribute(r,!0).setValue(t.getAttribute(r).getValue())})}},{key:"addParentOpacity",value:function(t,e){return t.hasValue()?new Property(this.document,"color",e).addOpacity(t).getString():e}}]),e}(),LinearGradientElement=function(t){function e(t,r,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,r,n))).type="linearGradient",i.attributesToInherit.push("x1","y1","x2","y2"),i}return _inherits(e,GradientElement),_createClass(e,[{key:"getGradient",value:function(t,e){var r="objectBoundingBox"===this.getGradientUnits(),n=r?e.getBoundingBox(t):null;if(r&&!n)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 i=r?n.x+n.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),a=r?n.y+n.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=r?n.x+n.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),o=r?n.y+n.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return i===s&&a===o?null:t.createLinearGradient(i,a,s,o)}}]),e}(),RadialGradientElement=function(t){function e(t,r,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,r,n))).type="radialGradient",i.attributesToInherit.push("cx","cy","r","fx","fy","fr"),i}return _inherits(e,GradientElement),_createClass(e,[{key:"getGradient",value:function(t,e){var r="objectBoundingBox"===this.getGradientUnits(),n=e.getBoundingBox(t);if(r&&!n)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 i=r?n.x+n.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),a=r?n.y+n.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=i,o=a;this.getAttribute("fx").hasValue()&&(s=r?n.x+n.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(o=r?n.y+n.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var l=r?(n.width+n.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),u=this.getAttribute("fr").getPixels();return t.createRadialGradient(s,o,u,i,a,l)}}]),e}(),StopElement=function(t){function e(t,r,n){var i;_classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,r,n))).type="stop";var a=Math.max(0,Math.min(1,i.getAttribute("offset").getNumber())),s=i.getStyle("stop-opacity"),o=i.getStyle("stop-color",!0);return""===o.getString()&&o.setValue("#000"),s.hasValue()&&(o=o.addOpacity(s)),i.offset=a,i.color=o.getString(),i}return _inherits(e,Element),e}(),AnimateElement=function(t){function e(t,r,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,r,n))).type="animate",i.duration=0,i.initialValue=null,i.initialUnits="",i.removed=!1,i.frozen=!1,t.screen.animations.push(_assertThisInitialized(i)),i.begin=i.getAttribute("begin").getMilliseconds(),i.maxDuration=i.begin+i.getAttribute("dur").getMilliseconds(),i.from=i.getAttribute("from"),i.to=i.getAttribute("to"),i.values=i.getAttribute("values"),i.values.hasValue()&&i.values.setValue(i.values.getString().split(";")),i}return _inherits(e,Element),_createClass(e,[{key:"getProperty",value:function(){var t=this.getAttribute("attributeType").getString(),e=this.getAttribute("attributeName").getString();return"CSS"===t?this.parent.getStyle(e,!0):this.parent.getAttribute(e,!0)}},{key:"calcValue",value:function(){var t=this.initialUnits,e=this.getProgress(),r=e.progress,n=e.from,i=e.to,a=n.getNumber()+(i.getNumber()-n.getNumber())*r;return"%"===t&&(a*=100),"".concat(a).concat(t)}},{key:"update",value:function(t){var e=this.parent,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var n=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==n||this.frozen){if("remove"===n&&!this.removed)return this.removed=!0,r.setValue(e.animationFrozen?e.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,e.animationFrozen=!0,e.animationFrozenValue=r.getString();return!1}this.duration+=t;var i=!1;if(this.begin<this.duration){var a=this.calcValue(),s=this.getAttribute("type");if(s.hasValue()){var o=s.getString();a="".concat(o,"(").concat(a,")")}r.setValue(a),i=!0}return i}},{key:"getProgress",value:function(){var t=this.document,e=this.values,r={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(e.hasValue()){var n=r.progress*(e.getValue().length-1),i=Math.floor(n),a=Math.ceil(n);r.from=new Property(t,"from",parseFloat(e.getValue()[i])),r.to=new Property(t,"to",parseFloat(e.getValue()[a])),r.progress=(n-i)/(a-i)}else r.from=this.from,r.to=this.to;return r}}]),e}(),AnimateColorElement=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))).type="animateColor",t}return _inherits(e,AnimateElement),_createClass(e,[{key:"calcValue",value:function(){var t=this.getProgress(),e=t.progress,r=t.from,n=t.to,i=new RGBColor(r.getString()),a=new RGBColor(n.getString());if(i.ok&&a.ok){var s=i.r+(a.r-i.r)*e,o=i.g+(a.g-i.g)*e,l=i.b+(a.b-i.b)*e;return"rgb(".concat(parseInt(s,10),", ").concat(parseInt(o,10),", ").concat(parseInt(l,10),")")}return this.getAttribute("from").getString()}}]),e}(),AnimateTransformElement=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))).type="animateTransform",t}return _inherits(e,AnimateElement),_createClass(e,[{key:"calcValue",value:function(){var t=this.getProgress(),e=t.progress,r=t.from,n=t.to,i=toNumbers(r.getString()),a=toNumbers(n.getString());return i.map(function(t,r){return t+(a[r]-t)*e}).join(" ")}}]),e}(),FontElement=function(t){function e(t,r,n){var i;_classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,r,n))).type="font",i.glyphs={},i.horizAdvX=i.getAttribute("horiz-adv-x").getNumber();var a=t.definitions,s=_assertThisInitialized(i).children,o=!0,l=!1,u=void 0;try{for(var h,c=s[Symbol.iterator]();!(o=(h=c.next()).done);o=!0){var g=h.value;switch(g.type){case"font-face":i.fontFace=g;var f=g.getStyle("font-family");f.hasValue()&&(a[f.getString()]=_assertThisInitialized(i));break;case"missing-glyph":i.missingGlyph=g;break;case"glyph":var p=g;p.arabicForm?(i.isRTL=!0,i.isArabic=!0,void 0===i.glyphs[p.unicode]&&(i.glyphs[p.unicode]={}),i.glyphs[p.unicode][p.arabicForm]=p):i.glyphs[p.unicode]=p}}}catch(t){l=!0,u=t}finally{try{o||null==c.return||c.return()}finally{if(l)throw u}}return i}return _inherits(e,Element),_createClass(e,[{key:"render",value:function(){}}]),e}(),FontFaceElement=function(t){function e(t,r,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,r,n))).type="font-face",i.ascent=i.getAttribute("ascent").getNumber(),i.descent=i.getAttribute("descent").getNumber(),i.unitsPerEm=i.getAttribute("units-per-em").getNumber(),i}return _inherits(e,Element),e}(),MissingGlyphElement=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))).type="missing-glyph",t.horizAdvX=0,t}return _inherits(e,PathElement),e}(),GlyphElement=function(t){function e(t,r,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,r,n))).type="glyph",i.horizAdvX=i.getAttribute("horiz-adv-x").getNumber(),i.unicode=i.getAttribute("unicode").getString(),i.arabicForm=i.getAttribute("arabic-form").getString(),i}return _inherits(e,PathElement),e}(),TRefElement=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))).type="tref",t}return _inherits(e,TextElement),_createClass(e,[{key:"getText",value:function(){var t=this.getHrefAttribute().getDefinition();if(t){var e=t.children[0];if(e)return e.getText()}return""}}]),e}(),AElement=function(t){function e(t,r,n){var i;_classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,r,n))).type="a";var a=r.childNodes,s=a[0],o=a.length>0&&Array.from(a).every(function(t){return 3===t.nodeType});return i.hasText=o,i.text=o?i.getTextFromNode(s):"",i}return _inherits(e,TextElement),_createClass(e,[{key:"getText",value:function(){return this.text}},{key:"renderChildren",value:function(t){if(this.hasText){_get(_getPrototypeOf(e.prototype),"renderChildren",this).call(this,t);var r=this.document,n=this.x,i=this.y,a=r.screen.mouse,s=new Property(r,"fontSize",Font.parse(r.ctx.font).fontSize);a.isWorking()&&a.checkBoundingBox(this,new BoundingBox(n,i-s.getPixels("y"),n+this.measureText(t),i))}else if(this.children.length>0){var o=new GElement(this.document,null);o.children=this.children,o.parent=this,o.render(t)}}},{key:"onClick",value:function(){var t=this.document.window;t&&t.open(this.getHrefAttribute().getString())}},{key:"onMouseMove",value:function(){this.document.ctx.canvas.style.cursor="pointer"}}]),e}(),TextPathElement=function(t){function e(t,r,n){var i;_classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,r,n))).type="textPath",i.textWidth=0,i.textHeight=0,i.pathLength=-1,i.glyphInfo=null,i.letterSpacingCache=[],i.measuresCache=new Map([["",0]]);var a=i.getHrefAttribute().getDefinition();return i.text=i.getTextFromNode(),i.dataArray=i.parsePathData(a),i}return _inherits(e,TextElement),_createClass(e,[{key:"getText",value:function(){return this.text}},{key:"path",value:function(t){var e=this.dataArray;t&&t.beginPath(),e.forEach(function(e){var r=e.command,n=e.points;switch(r){case"L":t&&t.lineTo(n[0],n[1]);break;case"M":t&&t.moveTo(n[0],n[1]);break;case"C":t&&t.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);break;case"Q":t&&t.quadraticCurveTo(n[0],n[1],n[2],n[3]);break;case"A":var i=n[0],a=n[1],s=n[2],o=n[3],l=n[4],u=n[5],h=n[6],c=n[7],g=s>o?s:o,f=s>o?1:s/o,p=s>o?o/s:1;t&&(t.translate(i,a),t.rotate(h),t.scale(f,p),t.arc(0,0,g,l,l+u,Boolean(1-c)),t.scale(1/f,1/p),t.rotate(-h),t.translate(-i,-a));break;case"z":t&&t.closePath()}})}},{key:"renderChildren",value:function(t){this.setTextData(t),t.save();var e=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),n=this.glyphInfo,i=t.fillStyle;"underline"===e&&t.beginPath(),n.forEach(function(i,a){var s=i.p0,o=i.p1,l=i.text;t.save(),t.translate(s.x,s.y),t.rotate(n[a].rotation),t.fillStyle&&t.fillText(l,0,0),t.strokeStyle&&t.strokeText(l,0,0),t.restore(),"underline"===e&&(0===a&&t.moveTo(s.x,s.y+r/8),t.lineTo(o.x,o.y+r/5))}),"underline"===e&&(t.lineWidth=r/20,t.strokeStyle=i,t.stroke(),t.closePath()),t.restore()}},{key:"getLetterSpacingAt",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[t]||0}},{key:"findSegmentToFitChar",value:function(t,e,r,n,i,a,s,o){var l=a,u=this.measureText(t,s);" "===s&&"justify"===e&&r<n&&(u+=(n-r)/i),o>-1&&(l+=this.getLetterSpacingAt(o));var h=this.textHeight/20,c={p0:this.getEquidistantPointOnPath(l,h),p1:this.getEquidistantPointOnPath(l+u,h)};return{offset:l+=u,segment:c}}},{key:"measureText",value:function(t,e){var r=this.measuresCache,n=e||this.getText();if(r.has(n))return r.get(n);var i=this.measureTargetText(t,n);return r.set(n,i),i}},{key:"setTextData",value:function(t){var e=this;if(!this.glyphInfo){var r=this.getText(),n=r.split(""),i=r.split(" ").length-1,a=toNumbers(this.parent.getAttribute("dx").getString("0")),s=this.parent.getStyle("text-anchor").getString("start"),o=this.getStyle("letter-spacing"),l=this.parent.getStyle("letter-spacing"),u=0;o.hasValue()&&"inherit"!==o.getValue()?o.hasValue()&&"initial"!==o.getValue()&&"unset"!==o.getValue()&&(u=o.getPixels()):u=l.getPixels();var h=[],c=r.length;this.letterSpacingCache=h;for(var g=0;g<c;g++)h.push(void 0!==a[g]?a[g]:u);var f=h.reduce(function(t,e){return t+e||0},0);this.textWidth=this.measureText(t),this.textHeight=this.getFontSize();var p=Math.max(this.textWidth+f,0);this.glyphInfo=[];var y=this.getPathLength(),d=this.getStyle("startOffset").getNumber(0)*y,m=0;"middle"!==s&&"center"!==s||(m=-p/2),"end"!==s&&"right"!==s||(m=-p),m+=d,n.forEach(function(r,a){var o=e.findSegmentToFitChar(t,s,p,y,i,m,r,a),l=o.offset,u=o.segment;if(m=l,u.p0&&u.p1){var h=e.getLineLength(u.p0.x,u.p0.y,u.p1.x,u.p1.y),c=e.getPointOnLine(0+h/2,u.p0.x,u.p0.y,u.p1.x,u.p1.y),g=Math.atan2(u.p1.y-u.p0.y,u.p1.x-u.p0.x);e.glyphInfo.push({transposeX:c.x,transposeY:c.y,text:n[a],p0:u.p0,p1:u.p1,rotation:g})}})}}},{key:"parsePathData",value:function(t){if(this.pathLength=-1,!t)return[];var e=[],r=t.pathParser;for(r.reset();!r.isEnd();){var n=r.current,i=n?n.x:0,a=n?n.y:0,s="",o=[];r.nextCommand();var l=r.command.toUpperCase();switch(r.command){case"M":case"m":s=this.pathM(r,o);break;case"L":case"l":s=this.pathL(r,o);break;case"H":case"h":s=this.pathH(r,o);break;case"V":case"v":s=this.pathV(r,o);break;case"C":case"c":this.pathC(r,o);break;case"S":case"s":s=this.pathS(r,o);break;case"Q":case"q":this.pathQ(r,o);break;case"T":case"t":s=this.pathT(r,o);break;case"A":case"a":o=this.pathA(r);break;case"Z":case"z":r.current=r.start}"Z"!==l?e.push({command:s||l,points:o,start:{x:i,y:a},pathLength:this.calcLength(i,a,s||l,o)}):e.push({command:"z",points:[],pathLength:0})}return e}},{key:"pathM",value:function(t,e){var r=t.getAsCurrentPoint();for(e.push(r.x,r.y),t.start=t.current;!t.isCommandOrEnd();){var n=t.getAsCurrentPoint();return e.push(n.x,n.y),"L"}}},{key:"pathL",value:function(t,e){for(;!t.isCommandOrEnd();){var r=t.getAsCurrentPoint();e.push(r.x,r.y)}return"L"}},{key:"pathH",value:function(t,e){for(;!t.isCommandOrEnd();){var r=t.current,n=new Point((t.isRelativeCommand()?r.x:0)+t.getScalar(),r.y);e.push(n.x,n.y),t.current=n}return"L"}},{key:"pathV",value:function(t,e){for(;!t.isCommandOrEnd();){var r=t.current,n=new Point(r.x,(t.isRelativeCommand()?r.y:0)+t.getScalar());e.push(n.x,n.y),t.current=n}return"L"}},{key:"pathC",value:function(t,e){for(;!t.isCommandOrEnd();){var r=t.getPoint(),n=t.getAsControlPoint(),i=t.getAsCurrentPoint();e.push(r.x,r.y,n.x,n.y,i.x,i.y)}}},{key:"pathS",value:function(t,e){for(;!t.isCommandOrEnd();){var r=t.getReflectedControlPoint(),n=t.getAsControlPoint(),i=t.getAsCurrentPoint();e.push(r.x,r.y,n.x,n.y,i.x,i.y)}return"C"}},{key:"pathQ",value:function(t,e){for(;!t.isCommandOrEnd();){var r=t.getAsControlPoint(),n=t.getAsCurrentPoint();e.push(r.x,r.y,n.x,n.y)}}},{key:"pathT",value:function(t,e){for(;!t.isCommandOrEnd();){var r=t.getReflectedControlPoint();t.control=r;var n=t.getAsCurrentPoint();e.push(r.x,r.y,n.x,n.y)}return"Q"}},{key:"pathA",value:function(t){for(;!t.isCommandOrEnd();){var e=t.current,r=t.getScalar(),n=t.getScalar(),i=t.getScalar()*(Math.PI/180),a=t.getScalar(),s=t.getScalar(),o=t.getAsCurrentPoint(),l=new Point(Math.cos(i)*(e.x-o.x)/2+Math.sin(i)*(e.y-o.y)/2,-Math.sin(i)*(e.x-o.x)/2+Math.cos(i)*(e.y-o.y)/2),u=Math.pow(l.x,2)/Math.pow(r,2)+Math.pow(l.y,2)/Math.pow(n,2);u>1&&(r*=Math.sqrt(u),n*=Math.sqrt(u));var h=(a===s?-1:1)*Math.sqrt((Math.pow(r,2)*Math.pow(n,2)-Math.pow(r,2)*Math.pow(l.y,2)-Math.pow(n,2)*Math.pow(l.x,2))/(Math.pow(r,2)*Math.pow(l.y,2)+Math.pow(n,2)*Math.pow(l.x,2)));isNaN(h)&&(h=0);var c=new Point(h*r*l.y/n,h*-n*l.x/r),g=new Point((e.x+o.x)/2+Math.cos(i)*c.x-Math.sin(i)*c.y,(e.y+o.y)/2+Math.sin(i)*c.x+Math.cos(i)*c.y),f=vectorsAngle([1,0],[(l.x-c.x)/r,(l.y-c.y)/n]),p=[(l.x-c.x)/r,(l.y-c.y)/n],y=[(-l.x-c.x)/r,(-l.y-c.y)/n],d=vectorsAngle(p,y);return vectorsRatio(p,y)<=-1&&(d=Math.PI),vectorsRatio(p,y)>=1&&(d=0),0===s&&d>0&&(d-=2*Math.PI),1===s&&d<0&&(d+=2*Math.PI),[g.x,g.y,r,n,f,d,i,s]}}},{key:"calcLength",value:function(t,e,r,n){var i=0,a=null,s=null,o=0;switch(r){case"L":return this.getLineLength(t,e,n[0],n[1]);case"C":for(i=0,a=this.getPointOnCubicBezier(0,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),o=.01;o<=1;o+=.01)s=this.getPointOnCubicBezier(o,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),i+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return i;case"Q":for(i=0,a=this.getPointOnQuadraticBezier(0,t,e,n[0],n[1],n[2],n[3]),o=.01;o<=1;o+=.01)s=this.getPointOnQuadraticBezier(o,t,e,n[0],n[1],n[2],n[3]),i+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return i;case"A":i=0;var l=n[4],u=n[5],h=n[4]+u,c=Math.PI/180;if(Math.abs(l-h)<c&&(c=Math.abs(l-h)),a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],l,0),u<0)for(o=l-c;o>h;o-=c)s=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],o,0),i+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;else for(o=l+c;o<h;o+=c)s=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],o,0),i+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return s=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],h,0),i+=this.getLineLength(a.x,a.y,s.x,s.y)}return 0}},{key:"getPointOnLine",value:function(t,e,r,n,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:r,o=(i-r)/(n-e+PSEUDO_ZERO),l=Math.sqrt(t*t/(1+o*o));n<e&&(l*=-1);var u=o*l,h=null;if(n===e)h={x:a,y:s+u};else if((s-r)/(a-e+PSEUDO_ZERO)===o)h={x:a+l,y:s+u};else{var c,g,f=this.getLineLength(e,r,n,i);if(f<PSEUDO_ZERO)return null;var p=(a-e)*(n-e)+(s-r)*(i-r);c=e+(p/=f*f)*(n-e),g=r+p*(i-r);var y=this.getLineLength(a,s,c,g),d=Math.sqrt(t*t-y*y);l=Math.sqrt(d*d/(1+o*o)),n<e&&(l*=-1),h={x:c+l,y:g+(u=o*l)}}return h}},{key:"getPointOnPath",value:function(t){var e=this.getPathLength(),r=0,n=null;if(t<-5e-5||t-5e-5>e)return null;var i=this.dataArray,a=!0,s=!1,o=void 0;try{for(var l,u=i[Symbol.iterator]();!(a=(l=u.next()).done);a=!0){var h=l.value;if(!h||!(h.pathLength<5e-5||r+h.pathLength+5e-5<t)){var c=t-r,g=0;switch(h.command){case"L":n=this.getPointOnLine(c,h.start.x,h.start.y,h.points[0],h.points[1],h.start.x,h.start.y);break;case"A":var f=h.points[4],p=h.points[5],y=h.points[4]+p;if(g=f+c/h.pathLength*p,p<0&&g<y||p>=0&&g>y)break;n=this.getPointOnEllipticalArc(h.points[0],h.points[1],h.points[2],h.points[3],g,h.points[6]);break;case"C":(g=c/h.pathLength)>1&&(g=1),n=this.getPointOnCubicBezier(g,h.start.x,h.start.y,h.points[0],h.points[1],h.points[2],h.points[3],h.points[4],h.points[5]);break;case"Q":(g=c/h.pathLength)>1&&(g=1),n=this.getPointOnQuadraticBezier(g,h.start.x,h.start.y,h.points[0],h.points[1],h.points[2],h.points[3])}if(n)return n;break}r+=h.pathLength}}catch(t){s=!0,o=t}finally{try{a||null==u.return||u.return()}finally{if(s)throw o}}return null}},{key:"getLineLength",value:function(t,e,r,n){return Math.sqrt((r-t)*(r-t)+(n-e)*(n-e))}},{key:"getPathLength",value:function(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce(function(t,e){return e.pathLength>0?t+e.pathLength:t},0)),this.pathLength}},{key:"getPointOnCubicBezier",value:function(t,e,r,n,i,a,s,o,l){return{x:o*CB1(t)+a*CB2(t)+n*CB3(t)+e*CB4(t),y:l*CB1(t)+s*CB2(t)+i*CB3(t)+r*CB4(t)}}},{key:"getPointOnQuadraticBezier",value:function(t,e,r,n,i,a,s){return{x:a*QB1(t)+n*QB2(t)+e*QB3(t),y:s*QB1(t)+i*QB2(t)+r*QB3(t)}}},{key:"getPointOnEllipticalArc",value:function(t,e,r,n,i,a){var s=Math.cos(a),o=Math.sin(a),l=r*Math.cos(i),u=n*Math.sin(i);return{x:t+(l*s-u*o),y:e+(l*o+u*s)}}},{key:"buildEquidistantCache",value:function(t,e){var r=this.getPathLength(),n=e||.25,i=t||r/100;if(!this.equidistantCache||this.equidistantCache.step!==i||this.equidistantCache.precision!==n){this.equidistantCache={step:i,precision:n,points:[]};for(var a=0,s=0;s<=r;s+=n){var o=this.getPointOnPath(s),l=this.getPointOnPath(s+n);o&&l&&((a+=this.getLineLength(o.x,o.y,l.x,l.y))>=i&&(this.equidistantCache.points.push({x:o.x,y:o.y,distance:s}),a-=i))}}}},{key:"getEquidistantPointOnPath",value:function(t,e,r){if(this.buildEquidistantCache(e,r),t<0||t-this.getPathLength()>5e-5)return null;var n=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[n]||null}}]),e}(),ImageElement=function(t){function e(t,r,n){var i;_classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,r,n))).type="image",i.loaded=!1;var a=i.getHrefAttribute().getString();if(!a)return _possibleConstructorReturn(i);var s=/\.svg$/.test(a);return t.images.push(_assertThisInitialized(i)),s?i.loadSvg(a):i.loadImage(a),i.isSvg=s,i}return _inherits(e,RenderedElement),_createClass(e,[{key:"loadImage",value:function(){var t=_asyncToGenerator(_regeneratorRuntime.mark(function t(e){var r;return _regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.document.createImage(e);case 3:r=t.sent,this.image=r,t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.error('ERROR: image "'.concat(e,'" not found'),t.t0);case 10:this.loaded=!0;case 11:case"end":return t.stop()}},t,this,[[0,7]])}));return function(e){return t.apply(this,arguments)}}()},{key:"loadSvg",value:function(){var t=_asyncToGenerator(_regeneratorRuntime.mark(function t(e){var r,n;return _regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.document.fetch(e);case 3:return r=t.sent,t.next=6,r.text();case 6:n=t.sent,this.image=n,t.next=13;break;case 10:t.prev=10,t.t0=t.catch(0),console.error('ERROR: image "'.concat(e,'" not found'),t.t0);case 13:this.loaded=!0;case 14:case"end":return t.stop()}},t,this,[[0,10]])}));return function(e){return t.apply(this,arguments)}}()},{key:"renderChildren",value:function(t){var e=this.document,r=this.image,n=this.loaded,i=this.getAttribute("x").getPixels("x"),a=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");if(n&&r&&s&&o){if(t.save(),this.isSvg)e.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:i,offsetY:a,scaleWidth:s,scaleHeight:o}).render();else{var l=this.image;t.translate(i,a),e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:s,desiredWidth:l.width,height:o,desiredHeight:l.height}),this.loaded&&(void 0===l.complete||l.complete)&&t.drawImage(l,0,0)}t.restore()}}},{key:"getBoundingBox",value:function(){var t=this.getAttribute("x").getPixels("x"),e=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),n=this.getStyle("height").getPixels("y");return new BoundingBox(t,e,t+r,e+n)}}]),e}(),SymbolElement=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))).type="symbol",t}return _inherits(e,RenderedElement),_createClass(e,[{key:"render",value:function(t){}}]),e}(),SVGFontLoader=function(){function t(e){_classCallCheck(this,t),this.document=e,this.loaded=!1,e.fonts.push(this)}return _createClass(t,[{key:"load",value:function(){var t=_asyncToGenerator(_regeneratorRuntime.mark(function t(e,r){var n,i,a;return _regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=this.document,t.next=4,n.canvg.parser.load(r);case 4:i=t.sent,a=i.getElementsByTagName("font"),Array.from(a).forEach(function(t){var r=n.createElement(t);n.definitions[e]=r}),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),console.error('ERROR: font "'.concat(r,'" not found'),t.t0);case 12:this.loaded=!0;case 13:case"end":return t.stop()}},t,this,[[0,9]])}));return function(e,r){return t.apply(this,arguments)}}()}]),t}(),StyleElement=function(t){function e(t,r,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,r,n))).type="style",compressSpaces(Array.from(r.childNodes).map(function(t){return t.data}).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"")).split("}").forEach(function(e){var r=e.trim();if(r){var n=r.split("{"),i=n[0].split(","),a=n[1].split(";");i.forEach(function(e){var r=e.trim();if(r){var n=t.styles[r]||{};if(a.forEach(function(e){var r=e.indexOf(":"),i=e.substr(0,r).trim(),a=e.substr(r+1,e.length-r).trim();i&&a&&(n[i]=new Property(t,i,a))}),t.styles[r]=n,t.stylesSpecificity[r]=getSelectorSpecificity(r),"@font-face"===r){var i=n["font-family"].getString().replace(/"|'/g,"");n.src.getString().split(",").forEach(function(e){if(e.indexOf('format("svg")')>0){var r=parseExternalUrl(e);r&&new SVGFontLoader(t).load(i,r)}})}}})}}),i}return _inherits(e,Element),e}();StyleElement.parseExternalUrl=parseExternalUrl;var UseElement=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))).type="use",t}return _inherits(e,RenderedElement),_createClass(e,[{key:"setContext",value:function(t){_get(_getPrototypeOf(e.prototype),"setContext",this).call(this,t);var r=this.getAttribute("x"),n=this.getAttribute("y");r.hasValue()&&t.translate(r.getPixels("x"),0),n.hasValue()&&t.translate(0,n.getPixels("y"))}},{key:"path",value:function(t){var e=this.element;e&&e.path(t)}},{key:"renderChildren",value:function(t){var e=this.document,r=this.element;if(r){var n=r;if("symbol"===r.type&&((n=new SVGElement(e,null)).attributes.viewBox=new Property(e,"viewBox",r.getAttribute("viewBox").getString()),n.attributes.preserveAspectRatio=new Property(e,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),n.attributes.overflow=new Property(e,"overflow",r.getAttribute("overflow").getString()),n.children=r.children),"svg"===n.type){var i=this.getStyle("width",!1,!0),a=this.getStyle("height",!1,!0);i.hasValue()&&(n.attributes.width=new Property(e,"width",i.getString())),a.hasValue()&&(n.attributes.height=new Property(e,"height",a.getString()))}var s=n.parent;n.parent=null,n.render(t),n.parent=s}}},{key:"getBoundingBox",value:function(t){var e=this.element;return e?e.getBoundingBox(t):null}},{key:"elementTransform",value:function(){var t=this.document,e=this.element;return Transform.fromElement(t,e)}},{key:"element",get:function(){return this._element||(this._element=this.getHrefAttribute().getDefinition()),this._element}}]),e}();function imGet(t,e,r,n,i,a){return t[r*n*4+4*e+a]}function imSet(t,e,r,n,i,a,s){t[r*n*4+4*e+a]=s}function m(t,e,r){var n=t[e];return n*(n<0?r-255:r)}function c(t,e,r,n){return e+Math.cos(t)*r+Math.sin(t)*n}var FeColorMatrixElement=function(t){function e(t,r,n){var i;_classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,r,n))).type="feColorMatrix";var a=toNumbers(i.getAttribute("values").getString());switch(i.getAttribute("type").getString("matrix")){case"saturate":var s=a[0];a=[.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 o=a[0]*Math.PI/180;a=[c(o,.213,.787,-.213),c(o,.715,-.715,-.715),c(o,.072,-.072,.928),0,0,c(o,.213,-.213,.143),c(o,.715,.285,.14),c(o,.072,-.072,-.283),0,0,c(o,.213,-.213,-.787),c(o,.715,-.715,.715),c(o,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":a=[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]}return i.matrix=a,i.includeOpacity=i.getAttribute("includeOpacity").hasValue(),i}return _inherits(e,Element),_createClass(e,[{key:"apply",value:function(t,e,r,n,i){for(var a=this.includeOpacity,s=this.matrix,o=t.getImageData(0,0,n,i),l=0;l<i;l++)for(var u=0;u<n;u++){var h=imGet(o.data,u,l,n,i,0),c=imGet(o.data,u,l,n,i,1),g=imGet(o.data,u,l,n,i,2),f=imGet(o.data,u,l,n,i,3),p=m(s,0,h)+m(s,1,c)+m(s,2,g)+m(s,3,f)+m(s,4,1),y=m(s,5,h)+m(s,6,c)+m(s,7,g)+m(s,8,f)+m(s,9,1),d=m(s,10,h)+m(s,11,c)+m(s,12,g)+m(s,13,f)+m(s,14,1),v=m(s,15,h)+m(s,16,c)+m(s,17,g)+m(s,18,f)+m(s,19,1);a&&(p=y=d=0,v*=f/255),imSet(o.data,u,l,n,i,0,p),imSet(o.data,u,l,n,i,1,y),imSet(o.data,u,l,n,i,2,d),imSet(o.data,u,l,n,i,3,v)}t.clearRect(0,0,n,i),t.putImageData(o,0,0)}}]),e}(),MaskElement=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))).type="mask",t}return _inherits(e,Element),_createClass(e,[{key:"apply",value:function(t,e){var r=this.document,n=this.getAttribute("x").getPixels("x"),i=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(!a&&!s){var o=new BoundingBox;this.children.forEach(function(e){o.addBoundingBox(e.getBoundingBox(t))}),n=Math.floor(o.x1),i=Math.floor(o.y1),a=Math.floor(o.width),s=Math.floor(o.height)}var l=e.getStyle("mask").getString();e.getStyle("mask").setValue("");var u=r.createCanvas(n+a,i+s),h=u.getContext("2d");r.screen.setDefaults(h),this.renderChildren(h),new FeColorMatrixElement(r,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(h,0,0,n+a,i+s);var c=r.createCanvas(n+a,i+s),g=c.getContext("2d");r.screen.setDefaults(g),e.render(g),g.globalCompositeOperation="destination-in",g.fillStyle=h.createPattern(u,"no-repeat"),g.fillRect(0,0,n+a,i+s),t.fillStyle=g.createPattern(c,"no-repeat"),t.fillRect(0,0,n+a,i+s),e.getStyle("mask").setValue(l)}},{key:"render",value:function(t){}}]),e}(),noop=function(){},ClipPathElement=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))).type="clipPath",t}return _inherits(e,Element),_createClass(e,[{key:"apply",value:function(t){var e=this.document,r=Reflect.getPrototypeOf(t),n=t.beginPath,i=t.closePath;r&&(r.beginPath=noop,r.closePath=noop),Reflect.apply(n,t,[]),this.children.forEach(function(n){if(void 0!==n.path){var a=void 0!==n.elementTransform?n.elementTransform():null;a||(a=Transform.fromElement(e,n)),a&&a.apply(t),n.path(t),r&&(r.closePath=i),a&&a.unapply(t)}}),Reflect.apply(i,t,[]),t.clip(),r&&(r.beginPath=n,r.closePath=i)}},{key:"render",value:function(t){}}]),e}(),FilterElement=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))).type="filter",t}return _inherits(e,Element),_createClass(e,[{key:"apply",value:function(t,e){var r=this.document,n=e.getBoundingBox(t);if(n){var i=Math.floor(n.x1),a=Math.floor(n.y1),s=Math.floor(n.width),o=Math.floor(n.height),l=e.getStyle("filter").getString();e.getStyle("filter").setValue("");var u=0,h=0;this.children.forEach(function(t){var e=t.extraFilterDistance||0;u=Math.max(u,e),h=Math.max(h,e)});var c=r.createCanvas(s+2*u,o+2*h),g=c.getContext("2d");r.screen.setDefaults(g),g.translate(-i+u,-a+h),e.render(g),this.children.forEach(function(t){"function"==typeof t.apply&&t.apply(g,0,0,s+2*u,o+2*h)}),t.drawImage(c,0,0,s+2*u,o+2*h,i-u,a-h,s+2*u,o+2*h),e.getStyle("filter",!0).setValue(l)}}},{key:"render",value:function(t){}}]),e}(),FeDropShadowElement=function(t){function e(t,r,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,r,n))).type="feDropShadow",i.addStylesFromStyleDefinition(),i}return _inherits(e,Element),_createClass(e,[{key:"apply",value:function(t,e,r,n,i){}}]),e}(),FeMorphologyElement=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))).type="feMorphology",t}return _inherits(e,Element),_createClass(e,[{key:"apply",value:function(t,e,r,n,i){}}]),e}(),FeCompositeElement=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))).type="feComposite",t}return _inherits(e,Element),_createClass(e,[{key:"apply",value:function(t,e,r,n,i){}}]),e}(),FeGaussianBlurElement=function(t){function e(t,r,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,r,n))).type="feGaussianBlur",i.blurRadius=Math.floor(i.getAttribute("stdDeviation").getNumber()),i.extraFilterDistance=i.blurRadius,i}return _inherits(e,Element),_createClass(e,[{key:"apply",value:function(t,e,r,n,i){var a=this.document,s=this.blurRadius,o=a.window?a.window.document.body:null,l=t.canvas;l.id=a.getUniqueId(),o&&(l.style.display="none",o.appendChild(l)),stackblurCanvas.canvasRGBA(l,e,r,n,i,s),o&&o.removeChild(l)}}]),e}(),TitleElement=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))).type="title",t}return _inherits(e,Element),e}(),DescElement=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))).type="desc",t}return _inherits(e,Element),e}(),elementTypes={svg:SVGElement,rect:RectElement,circle:CircleElement,ellipse:EllipseElement,line:LineElement,polyline:PolylineElement,polygon:PolygonElement,path:PathElement,pattern:PatternElement,marker:MarkerElement,defs:DefsElement,linearGradient:LinearGradientElement,radialGradient:RadialGradientElement,stop:StopElement,animate:AnimateElement,animateColor:AnimateColorElement,animateTransform:AnimateTransformElement,font:FontElement,"font-face":FontFaceElement,"missing-glyph":MissingGlyphElement,glyph:GlyphElement,text:TextElement,tspan:TSpanElement,tref:TRefElement,a:AElement,textPath:TextPathElement,image:ImageElement,g:GElement,symbol:SymbolElement,style:StyleElement,use:UseElement,mask:MaskElement,clipPath:ClipPathElement,filter:FilterElement,feDropShadow:FeDropShadowElement,feMorphology:FeMorphologyElement,feComposite:FeCompositeElement,feColorMatrix:FeColorMatrixElement,feGaussianBlur:FeGaussianBlurElement,title:TitleElement,desc:DescElement};function ownKeys(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(r),!0).forEach(function(e){_defineProperty(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function createCanvas(t,e){var r=document.createElement("canvas");return r.width=t,r.height=e,r}function createImage(t){return _createImage.apply(this,arguments)}function _createImage(){return(_createImage=_asyncToGenerator(_regeneratorRuntime.mark(function t(e){var r,n,i=arguments;return _regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=i.length>1&&void 0!==i[1]&&i[1],n=document.createElement("img"),r&&(n.crossOrigin="Anonymous"),t.abrupt("return",new Promise(function(t,r){n.onload=function(){t(n)},n.onerror=function(){r()},n.src=e}));case 4:case"end":return t.stop()}},t)}))).apply(this,arguments)}var Document=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.rootEmSize,i=void 0===n?12:n,a=r.emSize,s=void 0===a?12:a,o=r.createCanvas,l=void 0===o?t.createCanvas:o,u=r.createImage,h=void 0===u?t.createImage:u,c=r.anonymousCrossOrigin;_classCallCheck(this,t),this.canvg=e,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=i,this.emSize=s,this.createCanvas=l,this.createImage=this.bindCreateImage(h,c),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}return _createClass(t,[{key:"bindCreateImage",value:function(t,e){return"boolean"==typeof e?function(r,n){return t(r,"boolean"==typeof n?n:e)}:t}},{key:"popEmSize",value:function(){this.emSizeStack.pop()}},{key:"getUniqueId",value:function(){return"canvg".concat(++this.uniqueId)}},{key:"isImagesLoaded",value:function(){return this.images.every(function(t){return t.loaded})}},{key:"isFontsLoaded",value:function(){return this.fonts.every(function(t){return t.loaded})}},{key:"createDocumentElement",value:function(t){var e=this.createElement(t.documentElement);return e.root=!0,e.addStylesFromStyleDefinition(),this.documentElement=e,e}},{key:"createElement",value:function(e){var r=e.nodeName.replace(/^[^:]+:/,""),n=t.elementTypes[r];return void 0!==n?new n(this,e):new UnknownElement(this,e)}},{key:"createTextNode",value:function(t){return new TextNode(this,t)}},{key:"setViewBox",value:function(t){this.screen.setViewBox(_objectSpread({document:this},t))}},{key:"window",get:function(){return this.screen.window}},{key:"fetch",get:function(){return this.screen.fetch}},{key:"ctx",get:function(){return this.screen.ctx}},{key:"emSize",get:function(){var t=this.emSizeStack;return t[t.length-1]},set:function(t){this.emSizeStack.push(t)}}]),t}();function ownKeys$1(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function _objectSpread$1(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys$1(Object(r),!0).forEach(function(e){_defineProperty(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys$1(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}Document.createCanvas=createCanvas,Document.createImage=createImage,Document.elementTypes=elementTypes;var Canvg=function(){function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,t),this.parser=new Parser(n),this.screen=new Screen(e,n),this.options=n;var i=new Document(this,n),a=i.createDocumentElement(r);this.document=i,this.documentElement=a}return _createClass(t,[{key:"fork",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.from(e,r,_objectSpread$1({},this.options,{},n))}},{key:"forkString",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.fromString(e,r,_objectSpread$1({},this.options,{},n))}},{key:"ready",value:function(){return this.screen.ready()}},{key:"isReady",value:function(){return this.screen.isReady()}},{key:"render",value:function(){var t=_asyncToGenerator(_regeneratorRuntime.mark(function t(){var e,r=arguments;return _regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:{},this.start(_objectSpread$1({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},e)),t.next=4,this.ready();case 4:this.stop();case 5:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}()},{key:"start",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.documentElement,r=this.screen,n=this.options;r.start(e,_objectSpread$1({enableRedraw:!0},n,{},t))}},{key:"stop",value:function(){this.screen.stop()}},{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(t,e,r)}}],[{key:"from",value:function(){var e=_asyncToGenerator(_regeneratorRuntime.mark(function e(r,n){var i,a,s,o=arguments;return _regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=o.length>2&&void 0!==o[2]?o[2]:{},a=new Parser(i),e.next=4,a.parse(n);case 4:return s=e.sent,e.abrupt("return",new t(r,s,i));case 6:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},{key:"fromString",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new t(e,new Parser(n).parseFromString(r),n)}}]),t}();function offscreen(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).DOMParser,e={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,createCanvas:function(t,e){return new OffscreenCanvas(t,e)},createImage:function(){var t=_asyncToGenerator(_regeneratorRuntime.mark(function t(e){var r,n,i;return _regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(e);case 2:return r=t.sent,t.next=5,r.blob();case 5:return n=t.sent,t.next=8,createImageBitmap(n);case 8:return i=t.sent,t.abrupt("return",i);case 10:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()};return"undefined"==typeof DOMParser&&void 0!==t||Reflect.deleteProperty(e,"DOMParser"),e}function node(t){var e=t.DOMParser,r=t.canvas;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:t.fetch,createCanvas:r.createCanvas,createImage:r.loadImage}}var index=Object.freeze({__proto__:null,offscreen:offscreen,node:node});exports.AElement=AElement,exports.AnimateColorElement=AnimateColorElement,exports.AnimateElement=AnimateElement,exports.AnimateTransformElement=AnimateTransformElement,exports.BoundingBox=BoundingBox,exports.CB1=CB1,exports.CB2=CB2,exports.CB3=CB3,exports.CB4=CB4,exports.Canvg=Canvg,exports.CircleElement=CircleElement,exports.ClipPathElement=ClipPathElement,exports.DefsElement=DefsElement,exports.DescElement=DescElement,exports.Document=Document,exports.Element=Element,exports.EllipseElement=EllipseElement,exports.FeColorMatrixElement=FeColorMatrixElement,exports.FeCompositeElement=FeCompositeElement,exports.FeDropShadowElement=FeDropShadowElement,exports.FeGaussianBlurElement=FeGaussianBlurElement,exports.FeMorphologyElement=FeMorphologyElement,exports.FilterElement=FilterElement,exports.Font=Font,exports.FontElement=FontElement,exports.FontFaceElement=FontFaceElement,exports.GElement=GElement,exports.GlyphElement=GlyphElement,exports.GradientElement=GradientElement,exports.ImageElement=ImageElement,exports.LineElement=LineElement,exports.LinearGradientElement=LinearGradientElement,exports.MarkerElement=MarkerElement,exports.MaskElement=MaskElement,exports.Matrix=Matrix,exports.MissingGlyphElement=MissingGlyphElement,exports.Mouse=Mouse,exports.PSEUDO_ZERO=PSEUDO_ZERO,exports.Parser=Parser,exports.PathElement=PathElement,exports.PathParser=PathParser,exports.PatternElement=PatternElement,exports.Point=Point,exports.PolygonElement=PolygonElement,exports.PolylineElement=PolylineElement,exports.Property=Property,exports.QB1=QB1,exports.QB2=QB2,exports.QB3=QB3,exports.RadialGradientElement=RadialGradientElement,exports.RectElement=RectElement,exports.RenderedElement=RenderedElement,exports.Rotate=Rotate,exports.SVGElement=SVGElement,exports.SVGFontLoader=SVGFontLoader,exports.Scale=Scale,exports.Screen=Screen,exports.Skew=Skew,exports.SkewX=SkewX,exports.SkewY=SkewY,exports.StopElement=StopElement,exports.StyleElement=StyleElement,exports.SymbolElement=SymbolElement,exports.TRefElement=TRefElement,exports.TSpanElement=TSpanElement,exports.TextElement=TextElement,exports.TextPathElement=TextPathElement,exports.TitleElement=TitleElement,exports.Transform=Transform,exports.Translate=Translate,exports.UnknownElement=UnknownElement,exports.UseElement=UseElement,exports.ViewPort=ViewPort,exports.compressSpaces=compressSpaces,exports.default=Canvg,exports.getSelectorSpecificity=getSelectorSpecificity,exports.normalizeAttributeName=normalizeAttributeName,exports.parseExternalUrl=parseExternalUrl,exports.presets=index,exports.toNumbers=toNumbers,exports.trimLeft=trimLeft,exports.trimRight=trimRight,exports.vectorMagnitude=vectorMagnitude,exports.vectorsAngle=vectorsAngle,exports.vectorsRatio=vectorsRatio;
}).call(this,require('_process'))
},{"@babel/runtime/helpers/assertThisInitialized":9,"@babel/runtime/helpers/asyncToGenerator":10,"@babel/runtime/helpers/classCallCheck":11,"@babel/runtime/helpers/createClass":12,"@babel/runtime/helpers/defineProperty":13,"@babel/runtime/helpers/get":14,"@babel/runtime/helpers/getPrototypeOf":15,"@babel/runtime/helpers/inherits":16,"@babel/runtime/helpers/possibleConstructorReturn":19,"@babel/runtime/helpers/slicedToArray":21,"@babel/runtime/regenerator":24,"_process":194,"core-js/modules/es.array.concat":146,"core-js/modules/es.array.every":147,"core-js/modules/es.array.fill":148,"core-js/modules/es.array.filter":149,"core-js/modules/es.array.for-each":150,"core-js/modules/es.array.from":151,"core-js/modules/es.array.includes":152,"core-js/modules/es.array.index-of":153,"core-js/modules/es.array.iterator":154,"core-js/modules/es.array.join":155,"core-js/modules/es.array.map":156,"core-js/modules/es.array.reduce":157,"core-js/modules/es.array.reverse":158,"core-js/modules/es.array.some":159,"core-js/modules/es.date.to-string":160,"core-js/modules/es.function.name":161,"core-js/modules/es.map":162,"core-js/modules/es.number.constructor":163,"core-js/modules/es.object.define-properties":164,"core-js/modules/es.object.define-property":165,"core-js/modules/es.object.get-own-property-descriptor":166,"core-js/modules/es.object.get-own-property-descriptors":167,"core-js/modules/es.object.keys":168,"core-js/modules/es.object.to-string":169,"core-js/modules/es.parse-float":170,"core-js/modules/es.parse-int":171,"core-js/modules/es.promise":172,"core-js/modules/es.reflect.apply":173,"core-js/modules/es.reflect.delete-property":174,"core-js/modules/es.reflect.get-prototype-of":175,"core-js/modules/es.regexp.exec":176,"core-js/modules/es.regexp.to-string":177,"core-js/modules/es.string.includes":178,"core-js/modules/es.string.iterator":179,"core-js/modules/es.string.match":180,"core-js/modules/es.string.replace":181,"core-js/modules/es.string.split":182,"core-js/modules/es.string.trim":183,"core-js/modules/es.symbol":186,"core-js/modules/es.symbol.description":184,"core-js/modules/es.symbol.iterator":185,"core-js/modules/web.dom-collections.for-each":187,"core-js/modules/web.dom-collections.iterator":188,"raf":195,"rgbcolor":197,"stackblur-canvas":198}],26:[function(require,module,exports){
module.exports=function(n){if("function"!=typeof n)throw TypeError(String(n)+" is not a function");return n};
},{}],27:[function(require,module,exports){
var isObject=require("../internals/is-object");module.exports=function(r){if(!isObject(r)&&null!==r)throw TypeError("Can't set "+String(r)+" as a prototype");return r};
},{"../internals/is-object":85}],28:[function(require,module,exports){
var wellKnownSymbol=require("../internals/well-known-symbol"),create=require("../internals/object-create"),definePropertyModule=require("../internals/object-define-property"),UNSCOPABLES=wellKnownSymbol("unscopables"),ArrayPrototype=Array.prototype;void 0==ArrayPrototype[UNSCOPABLES]&&definePropertyModule.f(ArrayPrototype,UNSCOPABLES,{configurable:!0,value:create(null)}),module.exports=function(e){ArrayPrototype[UNSCOPABLES][e]=!0};
},{"../internals/object-create":99,"../internals/object-define-property":101,"../internals/well-known-symbol":144}],29:[function(require,module,exports){
"use strict";var charAt=require("../internals/string-multibyte").charAt;module.exports=function(t,r,e){return r+(e?charAt(t,r).length:1)};
},{"../internals/string-multibyte":130}],30:[function(require,module,exports){
module.exports=function(o,r,n){if(!(o instanceof r))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return o};
},{}],31:[function(require,module,exports){
var isObject=require("../internals/is-object");module.exports=function(r){if(!isObject(r))throw TypeError(String(r)+" is not an object");return r};
},{"../internals/is-object":85}],32:[function(require,module,exports){
"use strict";var toObject=require("../internals/to-object"),toAbsoluteIndex=require("../internals/to-absolute-index"),toLength=require("../internals/to-length");module.exports=function(t){for(var e=toObject(this),o=toLength(e.length),n=arguments.length,r=toAbsoluteIndex(n>1?arguments[1]:void 0,o),i=n>2?arguments[2]:void 0,l=void 0===i?o:toAbsoluteIndex(i,o);l>r;)e[r++]=t;return e};
},{"../internals/to-absolute-index":134,"../internals/to-length":137,"../internals/to-object":138}],33:[function(require,module,exports){
"use strict";var $forEach=require("../internals/array-iteration").forEach,arrayMethodIsStrict=require("../internals/array-method-is-strict"),arrayMethodUsesToLength=require("../internals/array-method-uses-to-length"),STRICT_METHOD=arrayMethodIsStrict("forEach"),USES_TO_LENGTH=arrayMethodUsesToLength("forEach");module.exports=STRICT_METHOD&&USES_TO_LENGTH?[].forEach:function(r){return $forEach(this,r,arguments.length>1?arguments[1]:void 0)};
},{"../internals/array-iteration":36,"../internals/array-method-is-strict":38,"../internals/array-method-uses-to-length":39}],34:[function(require,module,exports){
"use strict";var bind=require("../internals/function-bind-context"),toObject=require("../internals/to-object"),callWithSafeIterationClosing=require("../internals/call-with-safe-iteration-closing"),isArrayIteratorMethod=require("../internals/is-array-iterator-method"),toLength=require("../internals/to-length"),createProperty=require("../internals/create-property"),getIteratorMethod=require("../internals/get-iterator-method");module.exports=function(e){var t,r,i,o,n,a,l=toObject(e),s="function"==typeof this?this:Array,c=arguments.length,h=c>1?arguments[1]:void 0,d=void 0!==h,u=getIteratorMethod(l),g=0;if(d&&(h=bind(h,c>2?arguments[2]:void 0,2)),void 0==u||s==Array&&isArrayIteratorMethod(u))for(r=new s(t=toLength(l.length));t>g;g++)a=d?h(l[g],g):l[g],createProperty(r,g,a);else for(n=(o=u.call(l)).next,r=new s;!(i=n.call(o)).done;g++)a=d?callWithSafeIterationClosing(o,h,[i.value,g],!0):i.value,createProperty(r,g,a);return r.length=g,r};
},{"../internals/call-with-safe-iteration-closing":42,"../internals/create-property":54,"../internals/function-bind-context":68,"../internals/get-iterator-method":70,"../internals/is-array-iterator-method":82,"../internals/to-length":137,"../internals/to-object":138}],35:[function(require,module,exports){
var toIndexedObject=require("../internals/to-indexed-object"),toLength=require("../internals/to-length"),toAbsoluteIndex=require("../internals/to-absolute-index"),createMethod=function(e){return function(t,n,r){var o,i=toIndexedObject(t),d=toLength(i.length),u=toAbsoluteIndex(r,d);if(e&&n!=n){for(;d>u;)if((o=i[u++])!=o)return!0}else for(;d>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}};module.exports={includes:createMethod(!0),indexOf:createMethod(!1)};
},{"../internals/to-absolute-index":134,"../internals/to-indexed-object":135,"../internals/to-length":137}],36:[function(require,module,exports){
var bind=require("../internals/function-bind-context"),IndexedObject=require("../internals/indexed-object"),toObject=require("../internals/to-object"),toLength=require("../internals/to-length"),arraySpeciesCreate=require("../internals/array-species-create"),push=[].push,createMethod=function(e){var t=1==e,r=2==e,n=3==e,a=4==e,i=6==e,c=5==e||i;return function(o,d,s,u){for(var h,l,f=toObject(o),b=IndexedObject(f),p=bind(d,s,3),M=toLength(b.length),j=0,x=u||arraySpeciesCreate,q=t?x(o,M):r?x(o,0):void 0;M>j;j++)if((c||j in b)&&(l=p(h=b[j],j,f),e))if(t)q[j]=l;else if(l)switch(e){case 3:return!0;case 5:return h;case 6:return j;case 2:push.call(q,h)}else if(a)return!1;return i?-1:n||a?a:q}};module.exports={forEach:createMethod(0),map:createMethod(1),filter:createMethod(2),some:createMethod(3),every:createMethod(4),find:createMethod(5),findIndex:createMethod(6)};
},{"../internals/array-species-create":41,"../internals/function-bind-context":68,"../internals/indexed-object":77,"../internals/to-length":137,"../internals/to-object":138}],37:[function(require,module,exports){
var fails=require("../internals/fails"),wellKnownSymbol=require("../internals/well-known-symbol"),V8_VERSION=require("../internals/engine-v8-version"),SPECIES=wellKnownSymbol("species");module.exports=function(n){return V8_VERSION>=51||!fails(function(){var e=[];return(e.constructor={})[SPECIES]=function(){return{foo:1}},1!==e[n](Boolean).foo})};
},{"../internals/engine-v8-version":62,"../internals/fails":65,"../internals/well-known-symbol":144}],38:[function(require,module,exports){
"use strict";var fails=require("../internals/fails");module.exports=function(n,r){var i=[][n];return!!i&&fails(function(){i.call(null,r||function(){throw 1},1)})};
},{"../internals/fails":65}],39:[function(require,module,exports){
var DESCRIPTORS=require("../internals/descriptors"),fails=require("../internals/fails"),has=require("../internals/has"),defineProperty=Object.defineProperty,cache={},thrower=function(e){throw e};module.exports=function(e,r){if(has(cache,e))return cache[e];r||(r={});var a=[][e],t=!!has(r,"ACCESSORS")&&r.ACCESSORS,n=has(r,0)?r[0]:thrower,i=has(r,1)?r[1]:void 0;return cache[e]=!!a&&!fails(function(){if(t&&!DESCRIPTORS)return!0;var e={length:-1};t?defineProperty(e,1,{enumerable:!0,get:thrower}):e[1]=1,a.call(e,n,i)})};
},{"../internals/descriptors":57,"../internals/fails":65,"../internals/has":72}],40:[function(require,module,exports){
var aFunction=require("../internals/a-function"),toObject=require("../internals/to-object"),IndexedObject=require("../internals/indexed-object"),toLength=require("../internals/to-length"),createMethod=function(e){return function(t,r,n,i){aFunction(r);var o=toObject(t),a=IndexedObject(o),c=toLength(o.length),u=e?c-1:0,d=e?-1:1;if(n<2)for(;;){if(u in a){i=a[u],u+=d;break}if(u+=d,e?u<0:c<=u)throw TypeError("Reduce of empty array with no initial value")}for(;e?u>=0:c>u;u+=d)u in a&&(i=r(i,a[u],u,o));return i}};module.exports={left:createMethod(!1),right:createMethod(!0)};
},{"../internals/a-function":26,"../internals/indexed-object":77,"../internals/to-length":137,"../internals/to-object":138}],41:[function(require,module,exports){
var isObject=require("../internals/is-object"),isArray=require("../internals/is-array"),wellKnownSymbol=require("../internals/well-known-symbol"),SPECIES=wellKnownSymbol("species");module.exports=function(r,e){var n;return isArray(r)&&("function"!=typeof(n=r.constructor)||n!==Array&&!isArray(n.prototype)?isObject(n)&&null===(n=n[SPECIES])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)};
},{"../internals/is-array":83,"../internals/is-object":85,"../internals/well-known-symbol":144}],42:[function(require,module,exports){
var anObject=require("../internals/an-object");module.exports=function(r,t,e,n){try{return n?t(anObject(e)[0],e[1]):t(e)}catch(t){var a=r.return;throw void 0!==a&&anObject(a.call(r)),t}};
},{"../internals/an-object":31}],43:[function(require,module,exports){
var wellKnownSymbol=require("../internals/well-known-symbol"),ITERATOR=wellKnownSymbol("iterator"),SAFE_CLOSING=!1;try{var called=0,iteratorWithReturn={next:function(){return{done:!!called++}},return:function(){SAFE_CLOSING=!0}};iteratorWithReturn[ITERATOR]=function(){return this},Array.from(iteratorWithReturn,function(){throw 2})}catch(r){}module.exports=function(r,t){if(!t&&!SAFE_CLOSING)return!1;var n=!1;try{var e={};e[ITERATOR]=function(){return{next:function(){return{done:n=!0}}}},r(e)}catch(r){}return n};
},{"../internals/well-known-symbol":144}],44:[function(require,module,exports){
var toString={}.toString;module.exports=function(t){return toString.call(t).slice(8,-1)};
},{}],45:[function(require,module,exports){
var TO_STRING_TAG_SUPPORT=require("../internals/to-string-tag-support"),classofRaw=require("../internals/classof-raw"),wellKnownSymbol=require("../internals/well-known-symbol"),TO_STRING_TAG=wellKnownSymbol("toStringTag"),CORRECT_ARGUMENTS="Arguments"==classofRaw(function(){return arguments}()),tryGet=function(n,t){try{return n[t]}catch(n){}};module.exports=TO_STRING_TAG_SUPPORT?classofRaw:function(n){var t,e,r;return void 0===n?"Undefined":null===n?"Null":"string"==typeof(e=tryGet(t=Object(n),TO_STRING_TAG))?e:CORRECT_ARGUMENTS?classofRaw(t):"Object"==(r=classofRaw(t))&&"function"==typeof t.callee?"Arguments":r};
},{"../internals/classof-raw":44,"../internals/to-string-tag-support":140,"../internals/well-known-symbol":144}],46:[function(require,module,exports){
"use strict";var defineProperty=require("../internals/object-define-property").f,create=require("../internals/object-create"),redefineAll=require("../internals/redefine-all"),bind=require("../internals/function-bind-context"),anInstance=require("../internals/an-instance"),iterate=require("../internals/iterate"),defineIterator=require("../internals/define-iterator"),setSpecies=require("../internals/set-species"),DESCRIPTORS=require("../internals/descriptors"),fastKey=require("../internals/internal-metadata").fastKey,InternalStateModule=require("../internals/internal-state"),setInternalState=InternalStateModule.set,internalStateGetterFor=InternalStateModule.getterFor;module.exports={getConstructor:function(e,t,r,n){var i=e(function(e,a){anInstance(e,i,t),setInternalState(e,{type:t,index:create(null),first:void 0,last:void 0,size:0}),DESCRIPTORS||(e.size=0),void 0!=a&&iterate(a,e[n],e,r)}),a=internalStateGetterFor(t),s=function(e,t,r){var n,i,s=a(e),u=o(e,t);return u?u.value=r:(s.last=u={index:i=fastKey(t,!0),key:t,value:r,previous:n=s.last,next:void 0,removed:!1},s.first||(s.first=u),n&&(n.next=u),DESCRIPTORS?s.size++:e.size++,"F"!==i&&(s.index[i]=u)),e},o=function(e,t){var r,n=a(e),i=fastKey(t);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==t)return r};return redefineAll(i.prototype,{clear:function(){for(var e=a(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,DESCRIPTORS?e.size=0:this.size=0},delete:function(e){var t=a(this),r=o(this,e);if(r){var n=r.next,i=r.previous;delete t.index[r.index],r.removed=!0,i&&(i.next=n),n&&(n.previous=i),t.first==r&&(t.first=n),t.last==r&&(t.last=i),DESCRIPTORS?t.size--:this.size--}return!!r},forEach:function(e){for(var t,r=a(this),n=bind(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!o(this,e)}}),redefineAll(i.prototype,r?{get:function(e){var t=o(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),DESCRIPTORS&&defineProperty(i.prototype,"size",{get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=internalStateGetterFor(t),a=internalStateGetterFor(n);defineIterator(e,t,function(e,t){setInternalState(this,{type:n,target:e,state:i(e),kind:t,last:void 0})},function(){for(var e=a(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?"keys"==t?{value:r.key,done:!1}:"values"==t?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})},r?"entries":"values",!r,!0),setSpecies(t)}};
},{"../internals/an-instance":30,"../internals/define-iterator":55,"../internals/descriptors":57,"../internals/function-bind-context":68,"../internals/internal-metadata":80,"../internals/internal-state":81,"../internals/iterate":88,"../internals/object-create":99,"../internals/object-define-property":101,"../internals/redefine-all":116,"../internals/set-species":124}],47:[function(require,module,exports){
"use strict";var $=require("../internals/export"),global=require("../internals/global"),isForced=require("../internals/is-forced"),redefine=require("../internals/redefine"),InternalMetadataModule=require("../internals/internal-metadata"),iterate=require("../internals/iterate"),anInstance=require("../internals/an-instance"),isObject=require("../internals/is-object"),fails=require("../internals/fails"),checkCorrectnessOfIteration=require("../internals/check-correctness-of-iteration"),setToStringTag=require("../internals/set-to-string-tag"),inheritIfRequired=require("../internals/inherit-if-required");module.exports=function(e,t,r){var n=-1!==e.indexOf("Map"),i=-1!==e.indexOf("Weak"),a=n?"set":"add",s=global[e],o=s&&s.prototype,c=s,l={},u=function(e){var t=o[e];redefine(o,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(i&&!isObject(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return i&&!isObject(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(i&&!isObject(e))&&t.call(this,0===e?0:e)}:function(e,r){return t.call(this,0===e?0:e,r),this})};if(isForced(e,"function"!=typeof s||!(i||o.forEach&&!fails(function(){(new s).entries().next()}))))c=r.getConstructor(t,e,n,a),InternalMetadataModule.REQUIRED=!0;else if(isForced(e,!0)){var f=new c,d=f[a](i?{}:-0,1)!=f,h=fails(function(){f.has(1)}),q=checkCorrectnessOfIteration(function(e){new s(e)}),g=!i&&fails(function(){for(var e=new s,t=5;t--;)e[a](t,t);return!e.has(-0)});q||((c=t(function(t,r){anInstance(t,c,e);var i=inheritIfRequired(new s,t,c);return void 0!=r&&iterate(r,i[a],i,n),i})).prototype=o,o.constructor=c),(h||g)&&(u("delete"),u("has"),n&&u("get")),(g||d)&&u(a),i&&o.clear&&delete o.clear}return l[e]=c,$({global:!0,forced:c!=s},l),setToStringTag(c,e),i||r.setStrong(c,e,n),c};
},{"../internals/an-instance":30,"../internals/check-correctness-of-iteration":43,"../internals/export":64,"../internals/fails":65,"../internals/global":71,"../internals/inherit-if-required":78,"../internals/internal-metadata":80,"../internals/is-forced":84,"../internals/is-object":85,"../internals/iterate":88,"../internals/redefine":117,"../internals/set-to-string-tag":125}],48:[function(require,module,exports){
var has=require("../internals/has"),ownKeys=require("../internals/own-keys"),getOwnPropertyDescriptorModule=require("../internals/object-get-own-property-descriptor"),definePropertyModule=require("../internals/object-define-property");module.exports=function(e,r){for(var o=ownKeys(r),t=definePropertyModule.f,n=getOwnPropertyDescriptorModule.f,i=0;i<o.length;i++){var s=o[i];has(e,s)||t(e,s,n(r,s))}};
},{"../internals/has":72,"../internals/object-define-property":101,"../internals/object-get-own-property-descriptor":102,"../internals/own-keys":112}],49:[function(require,module,exports){
var wellKnownSymbol=require("../internals/well-known-symbol"),MATCH=wellKnownSymbol("match");module.exports=function(n){var r=/./;try{"/./"[n](r)}catch(l){try{return r[MATCH]=!1,"/./"[n](r)}catch(n){}}return!1};
},{"../internals/well-known-symbol":144}],50:[function(require,module,exports){
var fails=require("../internals/fails");module.exports=!fails(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype});
},{"../internals/fails":65}],51:[function(require,module,exports){
"use strict";var IteratorPrototype=require("../internals/iterators-core").IteratorPrototype,create=require("../internals/object-create"),createPropertyDescriptor=require("../internals/create-property-descriptor"),setToStringTag=require("../internals/set-to-string-tag"),Iterators=require("../internals/iterators"),returnThis=function(){return this};module.exports=function(r,t,e){var o=t+" Iterator";return r.prototype=create(IteratorPrototype,{next:createPropertyDescriptor(1,e)}),setToStringTag(r,o,!1,!0),Iterators[o]=returnThis,r};
},{"../internals/create-property-descriptor":53,"../internals/iterators":90,"../internals/iterators-core":89,"../internals/object-create":99,"../internals/set-to-string-tag":125}],52:[function(require,module,exports){
var DESCRIPTORS=require("../internals/descriptors"),definePropertyModule=require("../internals/object-define-property"),createPropertyDescriptor=require("../internals/create-property-descriptor");module.exports=DESCRIPTORS?function(e,r,t){return definePropertyModule.f(e,r,createPropertyDescriptor(1,t))}:function(e,r,t){return e[r]=t,e};
},{"../internals/create-property-descriptor":53,"../internals/descriptors":57,"../internals/object-define-property":101}],53:[function(require,module,exports){
module.exports=function(e,r){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:r}};
},{}],54:[function(require,module,exports){
"use strict";var toPrimitive=require("../internals/to-primitive"),definePropertyModule=require("../internals/object-define-property"),createPropertyDescriptor=require("../internals/create-property-descriptor");module.exports=function(e,r,t){var i=toPrimitive(r);i in e?definePropertyModule.f(e,i,createPropertyDescriptor(0,t)):e[i]=t};
},{"../internals/create-property-descriptor":53,"../internals/object-define-property":101,"../internals/to-primitive":139}],55:[function(require,module,exports){
"use strict";var $=require("../internals/export"),createIteratorConstructor=require("../internals/create-iterator-constructor"),getPrototypeOf=require("../internals/object-get-prototype-of"),setPrototypeOf=require("../internals/object-set-prototype-of"),setToStringTag=require("../internals/set-to-string-tag"),createNonEnumerableProperty=require("../internals/create-non-enumerable-property"),redefine=require("../internals/redefine"),wellKnownSymbol=require("../internals/well-known-symbol"),IS_PURE=require("../internals/is-pure"),Iterators=require("../internals/iterators"),IteratorsCore=require("../internals/iterators-core"),IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR=wellKnownSymbol("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this};module.exports=function(e,r,t,o,n,i,a){createIteratorConstructor(t,r,o);var s,u,I,R=function(e){if(e===n&&c)return c;if(!BUGGY_SAFARI_ITERATORS&&e in l)return l[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new t(this,e)}}return function(){return new t(this)}},T=r+" Iterator",E=!1,l=e.prototype,S=l[ITERATOR]||l["@@iterator"]||n&&l[n],c=!BUGGY_SAFARI_ITERATORS&&S||R(n),A="Array"==r&&l.entries||S;if(A&&(s=getPrototypeOf(A.call(new e)),IteratorPrototype!==Object.prototype&&s.next&&(IS_PURE||getPrototypeOf(s)===IteratorPrototype||(setPrototypeOf?setPrototypeOf(s,IteratorPrototype):"function"!=typeof s[ITERATOR]&&createNonEnumerableProperty(s,ITERATOR,returnThis)),setToStringTag(s,T,!0,!0),IS_PURE&&(Iterators[T]=returnThis))),n==VALUES&&S&&S.name!==VALUES&&(E=!0,c=function(){return S.call(this)}),IS_PURE&&!a||l[ITERATOR]===c||createNonEnumerableProperty(l,ITERATOR,c),Iterators[r]=c,n)if(u={values:R(VALUES),keys:i?c:R(KEYS),entries:R(ENTRIES)},a)for(I in u)!BUGGY_SAFARI_ITERATORS&&!E&&I in l||redefine(l,I,u[I]);else $({target:r,proto:!0,forced:BUGGY_SAFARI_ITERATORS||E},u);return u};
},{"../internals/create-iterator-constructor":51,"../internals/create-non-enumerable-property":52,"../internals/export":64,"../internals/is-pure":86,"../internals/iterators":90,"../internals/iterators-core":89,"../internals/object-get-prototype-of":106,"../internals/object-set-prototype-of":110,"../internals/redefine":117,"../internals/set-to-string-tag":125,"../internals/well-known-symbol":144}],56:[function(require,module,exports){
var path=require("../internals/path"),has=require("../internals/has"),wrappedWellKnownSymbolModule=require("../internals/well-known-symbol-wrapped"),defineProperty=require("../internals/object-define-property").f;module.exports=function(e){var r=path.Symbol||(path.Symbol={});has(r,e)||defineProperty(r,e,{value:wrappedWellKnownSymbolModule.f(e)})};
},{"../internals/has":72,"../internals/object-define-property":101,"../internals/path":113,"../internals/well-known-symbol-wrapped":143}],57:[function(require,module,exports){
var fails=require("../internals/fails");module.exports=!fails(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]});
},{"../internals/fails":65}],58:[function(require,module,exports){
var global=require("../internals/global"),isObject=require("../internals/is-object"),document=global.document,EXISTS=isObject(document)&&isObject(document.createElement);module.exports=function(e){return EXISTS?document.createElement(e):{}};
},{"../internals/global":71,"../internals/is-object":85}],59:[function(require,module,exports){
module.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};
},{}],60:[function(require,module,exports){
var userAgent=require("../internals/engine-user-agent");module.exports=/(iphone|ipod|ipad).*applewebkit/i.test(userAgent);
},{"../internals/engine-user-agent":61}],61:[function(require,module,exports){
var getBuiltIn=require("../internals/get-built-in");module.exports=getBuiltIn("navigator","userAgent")||"";
},{"../internals/get-built-in":69}],62:[function(require,module,exports){
var match,version,global=require("../internals/global"),userAgent=require("../internals/engine-user-agent"),process=global.process,versions=process&&process.versions,v8=versions&&versions.v8;v8?version=(match=v8.split("."))[0]+match[1]:userAgent&&(!(match=userAgent.match(/Edge\/(\d+)/))||match[1]>=74)&&(match=userAgent.match(/Chrome\/(\d+)/))&&(version=match[1]),module.exports=version&&+version;
},{"../internals/engine-user-agent":61,"../internals/global":71}],63:[function(require,module,exports){
module.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];
},{}],64:[function(require,module,exports){
var global=require("../internals/global"),getOwnPropertyDescriptor=require("../internals/object-get-own-property-descriptor").f,createNonEnumerableProperty=require("../internals/create-non-enumerable-property"),redefine=require("../internals/redefine"),setGlobal=require("../internals/set-global"),copyConstructorProperties=require("../internals/copy-constructor-properties"),isForced=require("../internals/is-forced");module.exports=function(e,r){var o,t,n,i,a,l=e.target,s=e.global,p=e.stat;if(o=s?global:p?global[l]||setGlobal(l,{}):(global[l]||{}).prototype)for(t in r){if(i=r[t],n=e.noTargetGet?(a=getOwnPropertyDescriptor(o,t))&&a.value:o[t],!isForced(s?t:l+(p?".":"#")+t,e.forced)&&void 0!==n){if(typeof i==typeof n)continue;copyConstructorProperties(i,n)}(e.sham||n&&n.sham)&&createNonEnumerableProperty(i,"sham",!0),redefine(o,t,i,e)}};
},{"../internals/copy-constructor-properties":48,"../internals/create-non-enumerable-property":52,"../internals/global":71,"../internals/is-forced":84,"../internals/object-get-own-property-descriptor":102,"../internals/redefine":117,"../internals/set-global":123}],65:[function(require,module,exports){
module.exports=function(r){try{return!!r()}catch(r){return!0}};
},{}],66:[function(require,module,exports){
"use strict";require("../modules/es.regexp.exec");var redefine=require("../internals/redefine"),fails=require("../internals/fails"),wellKnownSymbol=require("../internals/well-known-symbol"),regexpExec=require("../internals/regexp-exec"),createNonEnumerableProperty=require("../internals/create-non-enumerable-property"),SPECIES=wellKnownSymbol("species"),REPLACE_SUPPORTS_NAMED_GROUPS=!fails(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),REPLACE_KEEPS_$0="$0"==="a".replace(/./,"$0"),REPLACE=wellKnownSymbol("replace"),REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE=!!/./[REPLACE]&&""===/./[REPLACE]("a","$0"),SPLIT_WORKS_WITH_OVERWRITTEN_EXEC=!fails(function(){var e=/(?:)/,r=e.exec;e.exec=function(){return r.apply(this,arguments)};var E="ab".split(e);return 2!==E.length||"a"!==E[0]||"b"!==E[1]});module.exports=function(e,r,E,n){var t=wellKnownSymbol(e),l=!fails(function(){var r={};return r[t]=function(){return 7},7!=""[e](r)}),a=l&&!fails(function(){var r=!1,E=/a/;return"split"===e&&((E={}).constructor={},E.constructor[SPECIES]=function(){return E},E.flags="",E[t]=/./[t]),E.exec=function(){return r=!0,null},E[t](""),!r});if(!l||!a||"replace"===e&&(!REPLACE_SUPPORTS_NAMED_GROUPS||!REPLACE_KEEPS_$0||REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE)||"split"===e&&!SPLIT_WORKS_WITH_OVERWRITTEN_EXEC){var o=/./[t],i=E(t,""[e],function(e,r,E,n,t){return r.exec===regexpExec?l&&!t?{done:!0,value:o.call(r,E,n)}:{done:!0,value:e.call(E,r,n)}:{done:!1}},{REPLACE_KEEPS_$0:REPLACE_KEEPS_$0,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE}),u=i[0],c=i[1];redefine(String.prototype,e,u),redefine(RegExp.prototype,t,2==r?function(e,r){return c.call(e,this,r)}:function(e){return c.call(e,this)})}n&&createNonEnumerableProperty(RegExp.prototype[t],"sham",!0)};
},{"../internals/create-non-enumerable-property":52,"../internals/fails":65,"../internals/redefine":117,"../internals/regexp-exec":119,"../internals/well-known-symbol":144,"../modules/es.regexp.exec":176}],67:[function(require,module,exports){
var fails=require("../internals/fails");module.exports=!fails(function(){return Object.isExtensible(Object.preventExtensions({}))});
},{"../internals/fails":65}],68:[function(require,module,exports){
var aFunction=require("../internals/a-function");module.exports=function(n,r,t){if(aFunction(n),void 0===r)return n;switch(t){case 0:return function(){return n.call(r)};case 1:return function(t){return n.call(r,t)};case 2:return function(t,u){return n.call(r,t,u)};case 3:return function(t,u,e){return n.call(r,t,u,e)}}return function(){return n.apply(r,arguments)}};
},{"../internals/a-function":26}],69:[function(require,module,exports){
var path=require("../internals/path"),global=require("../internals/global"),aFunction=function(n){return"function"==typeof n?n:void 0};module.exports=function(n,t){return arguments.length<2?aFunction(path[n])||aFunction(global[n]):path[n]&&path[n][t]||global[n]&&global[n][t]};
},{"../internals/global":71,"../internals/path":113}],70:[function(require,module,exports){
var classof=require("../internals/classof"),Iterators=require("../internals/iterators"),wellKnownSymbol=require("../internals/well-known-symbol"),ITERATOR=wellKnownSymbol("iterator");module.exports=function(r){if(void 0!=r)return r[ITERATOR]||r["@@iterator"]||Iterators[classof(r)]};
},{"../internals/classof":45,"../internals/iterators":90,"../internals/well-known-symbol":144}],71:[function(require,module,exports){
(function (global){
var check=function(e){return e&&e.Math==Math&&e};module.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof global&&global)||Function("return this")();
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{}],72:[function(require,module,exports){
var hasOwnProperty={}.hasOwnProperty;module.exports=function(r,e){return hasOwnProperty.call(r,e)};
},{}],73:[function(require,module,exports){
module.exports={};
},{}],74:[function(require,module,exports){
var global=require("../internals/global");module.exports=function(r,o){var e=global.console;e&&e.error&&(1===arguments.length?e.error(r):e.error(r,o))};
},{"../internals/global":71}],75:[function(require,module,exports){
var getBuiltIn=require("../internals/get-built-in");module.exports=getBuiltIn("document","documentElement");
},{"../internals/get-built-in":69}],76:[function(require,module,exports){
var DESCRIPTORS=require("../internals/descriptors"),fails=require("../internals/fails"),createElement=require("../internals/document-create-element");module.exports=!DESCRIPTORS&&!fails(function(){return 7!=Object.defineProperty(createElement("div"),"a",{get:function(){return 7}}).a});
},{"../internals/descriptors":57,"../internals/document-create-element":58,"../internals/fails":65}],77:[function(require,module,exports){
var fails=require("../internals/fails"),classof=require("../internals/classof-raw"),split="".split;module.exports=fails(function(){return!Object("z").propertyIsEnumerable(0)})?function(r){return"String"==classof(r)?split.call(r,""):Object(r)}:Object;
},{"../internals/classof-raw":44,"../internals/fails":65}],78:[function(require,module,exports){
var isObject=require("../internals/is-object"),setPrototypeOf=require("../internals/object-set-prototype-of");module.exports=function(t,e,o){var r,p;return setPrototypeOf&&"function"==typeof(r=e.constructor)&&r!==o&&isObject(p=r.prototype)&&p!==o.prototype&&setPrototypeOf(t,p),t};
},{"../internals/is-object":85,"../internals/object-set-prototype-of":110}],79:[function(require,module,exports){
var store=require("../internals/shared-store"),functionToString=Function.toString;"function"!=typeof store.inspectSource&&(store.inspectSource=function(t){return functionToString.call(t)}),module.exports=store.inspectSource;
},{"../internals/shared-store":127}],80:[function(require,module,exports){
var hiddenKeys=require("../internals/hidden-keys"),isObject=require("../internals/is-object"),has=require("../internals/has"),defineProperty=require("../internals/object-define-property").f,uid=require("../internals/uid"),FREEZING=require("../internals/freezing"),METADATA=uid("meta"),id=0,isExtensible=Object.isExtensible||function(){return!0},setMetadata=function(e){defineProperty(e,METADATA,{value:{objectID:"O"+ ++id,weakData:{}}})},fastKey=function(e,t){if(!isObject(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!has(e,METADATA)){if(!isExtensible(e))return"F";if(!t)return"E";setMetadata(e)}return e[METADATA].objectID},getWeakData=function(e,t){if(!has(e,METADATA)){if(!isExtensible(e))return!0;if(!t)return!1;setMetadata(e)}return e[METADATA].weakData},onFreeze=function(e){return FREEZING&&meta.REQUIRED&&isExtensible(e)&&!has(e,METADATA)&&setMetadata(e),e},meta=module.exports={REQUIRED:!1,fastKey:fastKey,getWeakData:getWeakData,onFreeze:onFreeze};hiddenKeys[METADATA]=!0;
},{"../internals/freezing":67,"../internals/has":72,"../internals/hidden-keys":73,"../internals/is-object":85,"../internals/object-define-property":101,"../internals/uid":141}],81:[function(require,module,exports){
var set,get,has,NATIVE_WEAK_MAP=require("../internals/native-weak-map"),global=require("../internals/global"),isObject=require("../internals/is-object"),createNonEnumerableProperty=require("../internals/create-non-enumerable-property"),objectHas=require("../internals/has"),sharedKey=require("../internals/shared-key"),hiddenKeys=require("../internals/hidden-keys"),WeakMap=global.WeakMap,enforce=function(e){return has(e)?get(e):set(e,{})},getterFor=function(e){return function(r){var t;if(!isObject(r)||(t=get(r)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return t}};if(NATIVE_WEAK_MAP){var store=new WeakMap,wmget=store.get,wmhas=store.has,wmset=store.set;set=function(e,r){return wmset.call(store,e,r),r},get=function(e){return wmget.call(store,e)||{}},has=function(e){return wmhas.call(store,e)}}else{var STATE=sharedKey("state");hiddenKeys[STATE]=!0,set=function(e,r){return createNonEnumerableProperty(e,STATE,r),r},get=function(e){return objectHas(e,STATE)?e[STATE]:{}},has=function(e){return objectHas(e,STATE)}}module.exports={set:set,get:get,has:has,enforce:enforce,getterFor:getterFor};
},{"../internals/create-non-enumerable-property":52,"../internals/global":71,"../internals/has":72,"../internals/hidden-keys":73,"../internals/is-object":85,"../internals/native-weak-map":94,"../internals/shared-key":126}],82:[function(require,module,exports){
var wellKnownSymbol=require("../internals/well-known-symbol"),Iterators=require("../internals/iterators"),ITERATOR=wellKnownSymbol("iterator"),ArrayPrototype=Array.prototype;module.exports=function(r){return void 0!==r&&(Iterators.Array===r||ArrayPrototype[ITERATOR]===r)};
},{"../internals/iterators":90,"../internals/well-known-symbol":144}],83:[function(require,module,exports){
var classof=require("../internals/classof-raw");module.exports=Array.isArray||function(r){return"Array"==classof(r)};
},{"../internals/classof-raw":44}],84:[function(require,module,exports){
var fails=require("../internals/fails"),replacement=/#|\.prototype\./,isForced=function(e,r){var a=data[normalize(e)];return a==POLYFILL||a!=NATIVE&&("function"==typeof r?fails(r):!!r)},normalize=isForced.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced.data={},NATIVE=isForced.NATIVE="N",POLYFILL=isForced.POLYFILL="P";module.exports=isForced;
},{"../internals/fails":65}],85:[function(require,module,exports){
module.exports=function(o){return"object"==typeof o?null!==o:"function"==typeof o};
},{}],86:[function(require,module,exports){
module.exports=!1;
},{}],87:[function(require,module,exports){
var isObject=require("../internals/is-object"),classof=require("../internals/classof-raw"),wellKnownSymbol=require("../internals/well-known-symbol"),MATCH=wellKnownSymbol("match");module.exports=function(e){var l;return isObject(e)&&(void 0!==(l=e[MATCH])?!!l:"RegExp"==classof(e))};
},{"../internals/classof-raw":44,"../internals/is-object":85,"../internals/well-known-symbol":144}],88:[function(require,module,exports){
var anObject=require("../internals/an-object"),isArrayIteratorMethod=require("../internals/is-array-iterator-method"),toLength=require("../internals/to-length"),bind=require("../internals/function-bind-context"),getIteratorMethod=require("../internals/get-iterator-method"),callWithSafeIterationClosing=require("../internals/call-with-safe-iteration-closing"),Result=function(t,e){this.stopped=t,this.result=e},iterate=module.exports=function(t,e,r,n,i){var o,a,l,s,u,f,c,h=bind(e,r,n?2:1);if(i)o=t;else{if("function"!=typeof(a=getIteratorMethod(t)))throw TypeError("Target is not iterable");if(isArrayIteratorMethod(a)){for(l=0,s=toLength(t.length);s>l;l++)if((u=n?h(anObject(c=t[l])[0],c[1]):h(t[l]))&&u instanceof Result)return u;return new Result(!1)}o=a.call(t)}for(f=o.next;!(c=f.call(o)).done;)if("object"==typeof(u=callWithSafeIterationClosing(o,h,c.value,n))&&u&&u instanceof Result)return u;return new Result(!1)};iterate.stop=function(t){return new Result(!0,t)};
},{"../internals/an-object":31,"../internals/call-with-safe-iteration-closing":42,"../internals/function-bind-context":68,"../internals/get-iterator-method":70,"../internals/is-array-iterator-method":82,"../internals/to-length":137}],89:[function(require,module,exports){
"use strict";var IteratorPrototype,PrototypeOfArrayIteratorPrototype,arrayIterator,getPrototypeOf=require("../internals/object-get-prototype-of"),createNonEnumerableProperty=require("../internals/create-non-enumerable-property"),has=require("../internals/has"),wellKnownSymbol=require("../internals/well-known-symbol"),IS_PURE=require("../internals/is-pure"),ITERATOR=wellKnownSymbol("iterator"),BUGGY_SAFARI_ITERATORS=!1,returnThis=function(){return this};[].keys&&("next"in(arrayIterator=[].keys())?(PrototypeOfArrayIteratorPrototype=getPrototypeOf(getPrototypeOf(arrayIterator)))!==Object.prototype&&(IteratorPrototype=PrototypeOfArrayIteratorPrototype):BUGGY_SAFARI_ITERATORS=!0),void 0==IteratorPrototype&&(IteratorPrototype={}),IS_PURE||has(IteratorPrototype,ITERATOR)||createNonEnumerableProperty(IteratorPrototype,ITERATOR,returnThis),module.exports={IteratorPrototype:IteratorPrototype,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS};
},{"../internals/create-non-enumerable-property":52,"../internals/has":72,"../internals/is-pure":86,"../internals/object-get-prototype-of":106,"../internals/well-known-symbol":144}],90:[function(require,module,exports){
module.exports={};
},{}],91:[function(require,module,exports){
var flush,head,last,notify,toggle,node,promise,then,global=require("../internals/global"),getOwnPropertyDescriptor=require("../internals/object-get-own-property-descriptor").f,classof=require("../internals/classof-raw"),macrotask=require("../internals/task").set,IS_IOS=require("../internals/engine-is-ios"),MutationObserver=global.MutationObserver||global.WebKitMutationObserver,process=global.process,Promise=global.Promise,IS_NODE="process"==classof(process),queueMicrotaskDescriptor=getOwnPropertyDescriptor(global,"queueMicrotask"),queueMicrotask=queueMicrotaskDescriptor&&queueMicrotaskDescriptor.value;queueMicrotask||(flush=function(){var e,o;for(IS_NODE&&(e=process.domain)&&e.exit();head;){o=head.fn,head=head.next;try{o()}catch(e){throw head?notify():last=void 0,e}}last=void 0,e&&e.enter()},IS_NODE?notify=function(){process.nextTick(flush)}:MutationObserver&&!IS_IOS?(toggle=!0,node=document.createTextNode(""),new MutationObserver(flush).observe(node,{characterData:!0}),notify=function(){node.data=toggle=!toggle}):Promise&&Promise.resolve?(promise=Promise.resolve(void 0),then=promise.then,notify=function(){then.call(promise,flush)}):notify=function(){macrotask.call(global,flush)}),module.exports=queueMicrotask||function(e){var o={fn:e,next:void 0};last&&(last.next=o),head||(head=o,notify()),last=o};
},{"../internals/classof-raw":44,"../internals/engine-is-ios":60,"../internals/global":71,"../internals/object-get-own-property-descriptor":102,"../internals/task":133}],92:[function(require,module,exports){
var global=require("../internals/global");module.exports=global.Promise;
},{"../internals/global":71}],93:[function(require,module,exports){
var fails=require("../internals/fails");module.exports=!!Object.getOwnPropertySymbols&&!fails(function(){return!String(Symbol())});
},{"../internals/fails":65}],94:[function(require,module,exports){
var global=require("../internals/global"),inspectSource=require("../internals/inspect-source"),WeakMap=global.WeakMap;module.exports="function"==typeof WeakMap&&/native code/.test(inspectSource(WeakMap));
},{"../internals/global":71,"../internals/inspect-source":79}],95:[function(require,module,exports){
"use strict";var aFunction=require("../internals/a-function"),PromiseCapability=function(i){var r,t;this.promise=new i(function(i,n){if(void 0!==r||void 0!==t)throw TypeError("Bad Promise constructor");r=i,t=n}),this.resolve=aFunction(r),this.reject=aFunction(t)};module.exports.f=function(i){return new PromiseCapability(i)};
},{"../internals/a-function":26}],96:[function(require,module,exports){
var isRegExp=require("../internals/is-regexp");module.exports=function(e){if(isRegExp(e))throw TypeError("The method doesn't accept regular expressions");return e};
},{"../internals/is-regexp":87}],97:[function(require,module,exports){
var global=require("../internals/global"),trim=require("../internals/string-trim").trim,whitespaces=require("../internals/whitespaces"),$parseFloat=global.parseFloat,FORCED=1/$parseFloat(whitespaces+"-0")!=-1/0;module.exports=FORCED?function(r){var e=trim(String(r)),a=$parseFloat(e);return 0===a&&"-"==e.charAt(0)?-0:a}:$parseFloat;
},{"../internals/global":71,"../internals/string-trim":132,"../internals/whitespaces":145}],98:[function(require,module,exports){
var global=require("../internals/global"),trim=require("../internals/string-trim").trim,whitespaces=require("../internals/whitespaces"),$parseInt=global.parseInt,hex=/^[+-]?0[Xx]/,FORCED=8!==$parseInt(whitespaces+"08")||22!==$parseInt(whitespaces+"0x16");module.exports=FORCED?function(e,r){var t=trim(String(e));return $parseInt(t,r>>>0||(hex.test(t)?16:10))}:$parseInt;
},{"../internals/global":71,"../internals/string-trim":132,"../internals/whitespaces":145}],99:[function(require,module,exports){
var activeXDocument,anObject=require("../internals/an-object"),defineProperties=require("../internals/object-define-properties"),enumBugKeys=require("../internals/enum-bug-keys"),hiddenKeys=require("../internals/hidden-keys"),html=require("../internals/html"),documentCreateElement=require("../internals/document-create-element"),sharedKey=require("../internals/shared-key"),GT=">",LT="<",PROTOTYPE="prototype",SCRIPT="script",IE_PROTO=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return LT+SCRIPT+GT+e+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObjectViaIFrame=function(){var e,t=documentCreateElement("iframe"),r="java"+SCRIPT+":";return t.style.display="none",html.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(scriptTag("document.F=Object")),e.close(),e.F},NullProtoObject=function(){try{activeXDocument=document.domain&&new ActiveXObject("htmlfile")}catch(e){}NullProtoObject=activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame();for(var e=enumBugKeys.length;e--;)delete NullProtoObject[PROTOTYPE][enumBugKeys[e]];return NullProtoObject()};hiddenKeys[IE_PROTO]=!0,module.exports=Object.create||function(e,t){var r;return null!==e?(EmptyConstructor[PROTOTYPE]=anObject(e),r=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,r[IE_PROTO]=e):r=NullProtoObject(),void 0===t?r:defineProperties(r,t)};
},{"../internals/an-object":31,"../internals/document-create-element":58,"../internals/enum-bug-keys":63,"../internals/hidden-keys":73,"../internals/html":75,"../internals/object-define-properties":100,"../internals/shared-key":126}],100:[function(require,module,exports){
var DESCRIPTORS=require("../internals/descriptors"),definePropertyModule=require("../internals/object-define-property"),anObject=require("../internals/an-object"),objectKeys=require("../internals/object-keys");module.exports=DESCRIPTORS?Object.defineProperties:function(e,r){anObject(e);for(var t,n=objectKeys(r),o=n.length,i=0;o>i;)definePropertyModule.f(e,t=n[i++],r[t]);return e};
},{"../internals/an-object":31,"../internals/descriptors":57,"../internals/object-define-property":101,"../internals/object-keys":108}],101:[function(require,module,exports){
var DESCRIPTORS=require("../internals/descriptors"),IE8_DOM_DEFINE=require("../internals/ie8-dom-define"),anObject=require("../internals/an-object"),toPrimitive=require("../internals/to-primitive"),nativeDefineProperty=Object.defineProperty;exports.f=DESCRIPTORS?nativeDefineProperty:function(e,r,t){if(anObject(e),r=toPrimitive(r,!0),anObject(t),IE8_DOM_DEFINE)try{return nativeDefineProperty(e,r,t)}catch(e){}if("get"in t||"set"in t)throw TypeError("Accessors not supported");return"value"in t&&(e[r]=t.value),e};
},{"../internals/an-object":31,"../internals/descriptors":57,"../internals/ie8-dom-define":76,"../internals/to-primitive":139}],102:[function(require,module,exports){
var DESCRIPTORS=require("../internals/descriptors"),propertyIsEnumerableModule=require("../internals/object-property-is-enumerable"),createPropertyDescriptor=require("../internals/create-property-descriptor"),toIndexedObject=require("../internals/to-indexed-object"),toPrimitive=require("../internals/to-primitive"),has=require("../internals/has"),IE8_DOM_DEFINE=require("../internals/ie8-dom-define"),nativeGetOwnPropertyDescriptor=Object.getOwnPropertyDescriptor;exports.f=DESCRIPTORS?nativeGetOwnPropertyDescriptor:function(e,r){if(e=toIndexedObject(e),r=toPrimitive(r,!0),IE8_DOM_DEFINE)try{return nativeGetOwnPropertyDescriptor(e,r)}catch(e){}if(has(e,r))return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(e,r),e[r])};
},{"../internals/create-property-descriptor":53,"../internals/descriptors":57,"../internals/has":72,"../internals/ie8-dom-define":76,"../internals/object-property-is-enumerable":109,"../internals/to-indexed-object":135,"../internals/to-primitive":139}],103:[function(require,module,exports){
var toIndexedObject=require("../internals/to-indexed-object"),nativeGetOwnPropertyNames=require("../internals/object-get-own-property-names").f,toString={}.toString,windowNames="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],getWindowNames=function(e){try{return nativeGetOwnPropertyNames(e)}catch(e){return windowNames.slice()}};module.exports.f=function(e){return windowNames&&"[object Window]"==toString.call(e)?getWindowNames(e):nativeGetOwnPropertyNames(toIndexedObject(e))};
},{"../internals/object-get-own-property-names":104,"../internals/to-indexed-object":135}],104:[function(require,module,exports){
var internalObjectKeys=require("../internals/object-keys-internal"),enumBugKeys=require("../internals/enum-bug-keys"),hiddenKeys=enumBugKeys.concat("length","prototype");exports.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys(e,hiddenKeys)};
},{"../internals/enum-bug-keys":63,"../internals/object-keys-internal":107}],105:[function(require,module,exports){
exports.f=Object.getOwnPropertySymbols;
},{}],106:[function(require,module,exports){
var has=require("../internals/has"),toObject=require("../internals/to-object"),sharedKey=require("../internals/shared-key"),CORRECT_PROTOTYPE_GETTER=require("../internals/correct-prototype-getter"),IE_PROTO=sharedKey("IE_PROTO"),ObjectPrototype=Object.prototype;module.exports=CORRECT_PROTOTYPE_GETTER?Object.getPrototypeOf:function(t){return t=toObject(t),has(t,IE_PROTO)?t[IE_PROTO]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?ObjectPrototype:null};
},{"../internals/correct-prototype-getter":50,"../internals/has":72,"../internals/shared-key":126,"../internals/to-object":138}],107:[function(require,module,exports){
var has=require("../internals/has"),toIndexedObject=require("../internals/to-indexed-object"),indexOf=require("../internals/array-includes").indexOf,hiddenKeys=require("../internals/hidden-keys");module.exports=function(e,n){var r,i=toIndexedObject(e),d=0,s=[];for(r in i)!has(hiddenKeys,r)&&has(i,r)&&s.push(r);for(;n.length>d;)has(i,r=n[d++])&&(~indexOf(s,r)||s.push(r));return s};
},{"../internals/array-includes":35,"../internals/has":72,"../internals/hidden-keys":73,"../internals/to-indexed-object":135}],108:[function(require,module,exports){
var internalObjectKeys=require("../internals/object-keys-internal"),enumBugKeys=require("../internals/enum-bug-keys");module.exports=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys)};
},{"../internals/enum-bug-keys":63,"../internals/object-keys-internal":107}],109:[function(require,module,exports){
"use strict";var nativePropertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor&&!nativePropertyIsEnumerable.call({1:2},1);exports.f=NASHORN_BUG?function(r){var e=getOwnPropertyDescriptor(this,r);return!!e&&e.enumerable}:nativePropertyIsEnumerable;
},{}],110:[function(require,module,exports){
var anObject=require("../internals/an-object"),aPossiblePrototype=require("../internals/a-possible-prototype");module.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,o={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(o,[]),e=o instanceof Array}catch(t){}return function(o,r){return anObject(o),aPossiblePrototype(r),e?t.call(o,r):o.__proto__=r,o}}():void 0);
},{"../internals/a-possible-prototype":27,"../internals/an-object":31}],111:[function(require,module,exports){
"use strict";var TO_STRING_TAG_SUPPORT=require("../internals/to-string-tag-support"),classof=require("../internals/classof");module.exports=TO_STRING_TAG_SUPPORT?{}.toString:function(){return"[object "+classof(this)+"]"};
},{"../internals/classof":45,"../internals/to-string-tag-support":140}],112:[function(require,module,exports){
var getBuiltIn=require("../internals/get-built-in"),getOwnPropertyNamesModule=require("../internals/object-get-own-property-names"),getOwnPropertySymbolsModule=require("../internals/object-get-own-property-symbols"),anObject=require("../internals/an-object");module.exports=getBuiltIn("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject(e)),r=getOwnPropertySymbolsModule.f;return r?t.concat(r(e)):t};
},{"../internals/an-object":31,"../internals/get-built-in":69,"../internals/object-get-own-property-names":104,"../internals/object-get-own-property-symbols":105}],113:[function(require,module,exports){
var global=require("../internals/global");module.exports=global;
},{"../internals/global":71}],114:[function(require,module,exports){
module.exports=function(r){try{return{error:!1,value:r()}}catch(r){return{error:!0,value:r}}};
},{}],115:[function(require,module,exports){
var anObject=require("../internals/an-object"),isObject=require("../internals/is-object"),newPromiseCapability=require("../internals/new-promise-capability");module.exports=function(e,r){if(anObject(e),isObject(r)&&r.constructor===e)return r;var i=newPromiseCapability.f(e);return(0,i.resolve)(r),i.promise};
},{"../internals/an-object":31,"../internals/is-object":85,"../internals/new-promise-capability":95}],116:[function(require,module,exports){
var redefine=require("../internals/redefine");module.exports=function(e,r,n){for(var i in r)redefine(e,i,r[i],n);return e};
},{"../internals/redefine":117}],117:[function(require,module,exports){
var global=require("../internals/global"),createNonEnumerableProperty=require("../internals/create-non-enumerable-property"),has=require("../internals/has"),setGlobal=require("../internals/set-global"),inspectSource=require("../internals/inspect-source"),InternalStateModule=require("../internals/internal-state"),getInternalState=InternalStateModule.get,enforceInternalState=InternalStateModule.enforce,TEMPLATE=String(String).split("String");(module.exports=function(e,t,n,r){var a=!!r&&!!r.unsafe,o=!!r&&!!r.enumerable,l=!!r&&!!r.noTargetGet;"function"==typeof n&&("string"!=typeof t||has(n,"name")||createNonEnumerableProperty(n,"name",t),enforceInternalState(n).source=TEMPLATE.join("string"==typeof t?t:"")),e!==global?(a?!l&&e[t]&&(o=!0):delete e[t],o?e[t]=n:createNonEnumerableProperty(e,t,n)):o?e[t]=n:setGlobal(t,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&getInternalState(this).source||inspectSource(this)});
},{"../internals/create-non-enumerable-property":52,"../internals/global":71,"../internals/has":72,"../internals/inspect-source":79,"../internals/internal-state":81,"../internals/set-global":123}],118:[function(require,module,exports){
var classof=require("./classof-raw"),regexpExec=require("./regexp-exec");module.exports=function(e,r){var o=e.exec;if("function"==typeof o){var c=o.call(e,r);if("object"!=typeof c)throw TypeError("RegExp exec method returned something other than an Object or null");return c}if("RegExp"!==classof(e))throw TypeError("RegExp#exec called on incompatible receiver");return regexpExec.call(e,r)};
},{"./classof-raw":44,"./regexp-exec":119}],119:[function(require,module,exports){
"use strict";var regexpFlags=require("./regexp-flags"),stickyHelpers=require("./regexp-sticky-helpers"),nativeExec=RegExp.prototype.exec,nativeReplace=String.prototype.replace,patchedExec=nativeExec,UPDATES_LAST_INDEX_WRONG=function(){var e=/a/,t=/b*/g;return nativeExec.call(e,"a"),nativeExec.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),UNSUPPORTED_Y=stickyHelpers.UNSUPPORTED_Y||stickyHelpers.BROKEN_CARET,NPCG_INCLUDED=void 0!==/()??/.exec("")[1],PATCH=UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED||UNSUPPORTED_Y;PATCH&&(patchedExec=function(e){var t,l,n,a,i=this,c=UNSUPPORTED_Y&&i.sticky,s=regexpFlags.call(i),x=i.source,r=0,E=e;return c&&(-1===(s=s.replace("y","")).indexOf("g")&&(s+="g"),E=String(e).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==e[i.lastIndex-1])&&(x="(?: "+x+")",E=" "+E,r++),l=new RegExp("^(?:"+x+")",s)),NPCG_INCLUDED&&(l=new RegExp("^"+x+"$(?!\\s)",s)),UPDATES_LAST_INDEX_WRONG&&(t=i.lastIndex),n=nativeExec.call(c?l:i,E),c?n?(n.input=n.input.slice(r),n[0]=n[0].slice(r),n.index=i.lastIndex,i.lastIndex+=n[0].length):i.lastIndex=0:UPDATES_LAST_INDEX_WRONG&&n&&(i.lastIndex=i.global?n.index+n[0].length:t),NPCG_INCLUDED&&n&&n.length>1&&nativeReplace.call(n[0],l,function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(n[a]=void 0)}),n}),module.exports=patchedExec;
},{"./regexp-flags":120,"./regexp-sticky-helpers":121}],120:[function(require,module,exports){
"use strict";var anObject=require("../internals/an-object");module.exports=function(){var e=anObject(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};
},{"../internals/an-object":31}],121:[function(require,module,exports){
"use strict";var fails=require("./fails");function RE(r,e){return RegExp(r,e)}exports.UNSUPPORTED_Y=fails(function(){var r=RE("a","y");return r.lastIndex=2,null!=r.exec("abcd")}),exports.BROKEN_CARET=fails(function(){var r=RE("^r","gy");return r.lastIndex=2,null!=r.exec("str")});
},{"./fails":65}],122:[function(require,module,exports){
module.exports=function(o){if(void 0==o)throw TypeError("Can't call method on "+o);return o};
},{}],123:[function(require,module,exports){
var global=require("../internals/global"),createNonEnumerableProperty=require("../internals/create-non-enumerable-property");module.exports=function(e,r){try{createNonEnumerableProperty(global,e,r)}catch(a){global[e]=r}return r};
},{"../internals/create-non-enumerable-property":52,"../internals/global":71}],124:[function(require,module,exports){
"use strict";var getBuiltIn=require("../internals/get-built-in"),definePropertyModule=require("../internals/object-define-property"),wellKnownSymbol=require("../internals/well-known-symbol"),DESCRIPTORS=require("../internals/descriptors"),SPECIES=wellKnownSymbol("species");module.exports=function(e){var r=getBuiltIn(e),n=definePropertyModule.f;DESCRIPTORS&&r&&!r[SPECIES]&&n(r,SPECIES,{configurable:!0,get:function(){return this}})};
},{"../internals/descriptors":57,"../internals/get-built-in":69,"../internals/object-define-property":101,"../internals/well-known-symbol":144}],125:[function(require,module,exports){
var defineProperty=require("../internals/object-define-property").f,has=require("../internals/has"),wellKnownSymbol=require("../internals/well-known-symbol"),TO_STRING_TAG=wellKnownSymbol("toStringTag");module.exports=function(e,r,n){e&&!has(e=n?e:e.prototype,TO_STRING_TAG)&&defineProperty(e,TO_STRING_TAG,{configurable:!0,value:r})};
},{"../internals/has":72,"../internals/object-define-property":101,"../internals/well-known-symbol":144}],126:[function(require,module,exports){
var shared=require("../internals/shared"),uid=require("../internals/uid"),keys=shared("keys");module.exports=function(e){return keys[e]||(keys[e]=uid(e))};
},{"../internals/shared":128,"../internals/uid":141}],127:[function(require,module,exports){
var global=require("../internals/global"),setGlobal=require("../internals/set-global"),SHARED="__core-js_shared__",store=global[SHARED]||setGlobal(SHARED,{});module.exports=store;
},{"../internals/global":71,"../internals/set-global":123}],128:[function(require,module,exports){
var IS_PURE=require("../internals/is-pure"),store=require("../internals/shared-store");(module.exports=function(r,e){return store[r]||(store[r]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:IS_PURE?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"});
},{"../internals/is-pure":86,"../internals/shared-store":127}],129:[function(require,module,exports){
var anObject=require("../internals/an-object"),aFunction=require("../internals/a-function"),wellKnownSymbol=require("../internals/well-known-symbol"),SPECIES=wellKnownSymbol("species");module.exports=function(n,e){var o,r=anObject(n).constructor;return void 0===r||void 0==(o=anObject(r)[SPECIES])?e:aFunction(o)};
},{"../internals/a-function":26,"../internals/an-object":31,"../internals/well-known-symbol":144}],130:[function(require,module,exports){
var toInteger=require("../internals/to-integer"),requireObjectCoercible=require("../internals/require-object-coercible"),createMethod=function(e){return function(r,t){var c,o,i=String(requireObjectCoercible(r)),n=toInteger(t),a=i.length;return n<0||n>=a?e?"":void 0:(c=i.charCodeAt(n))<55296||c>56319||n+1===a||(o=i.charCodeAt(n+1))<56320||o>57343?e?i.charAt(n):c:e?i.slice(n,n+2):o-56320+(c-55296<<10)+65536}};module.exports={codeAt:createMethod(!1),charAt:createMethod(!0)};
},{"../internals/require-object-coercible":122,"../internals/to-integer":136}],131:[function(require,module,exports){
var fails=require("../internals/fails"),whitespaces=require("../internals/whitespaces"),non="…";module.exports=function(e){return fails(function(){return!!whitespaces[e]()||non[e]()!=non||whitespaces[e].name!==e})};
},{"../internals/fails":65,"../internals/whitespaces":145}],132:[function(require,module,exports){
var requireObjectCoercible=require("../internals/require-object-coercible"),whitespaces=require("../internals/whitespaces"),whitespace="["+whitespaces+"]",ltrim=RegExp("^"+whitespace+whitespace+"*"),rtrim=RegExp(whitespace+whitespace+"*$"),createMethod=function(e){return function(r){var t=String(requireObjectCoercible(r));return 1&e&&(t=t.replace(ltrim,"")),2&e&&(t=t.replace(rtrim,"")),t}};module.exports={start:createMethod(1),end:createMethod(2),trim:createMethod(3)};
},{"../internals/require-object-coercible":122,"../internals/whitespaces":145}],133:[function(require,module,exports){
var defer,channel,port,global=require("../internals/global"),fails=require("../internals/fails"),classof=require("../internals/classof-raw"),bind=require("../internals/function-bind-context"),html=require("../internals/html"),createElement=require("../internals/document-create-element"),IS_IOS=require("../internals/engine-is-ios"),location=global.location,set=global.setImmediate,clear=global.clearImmediate,process=global.process,MessageChannel=global.MessageChannel,Dispatch=global.Dispatch,counter=0,queue={},ONREADYSTATECHANGE="onreadystatechange",run=function(e){if(queue.hasOwnProperty(e)){var n=queue[e];delete queue[e],n()}},runner=function(e){return function(){run(e)}},listener=function(e){run(e.data)},post=function(e){global.postMessage(e+"",location.protocol+"//"+location.host)};set&&clear||(set=function(e){for(var n=[],t=1;arguments.length>t;)n.push(arguments[t++]);return queue[++counter]=function(){("function"==typeof e?e:Function(e)).apply(void 0,n)},defer(counter),counter},clear=function(e){delete queue[e]},"process"==classof(process)?defer=function(e){process.nextTick(runner(e))}:Dispatch&&Dispatch.now?defer=function(e){Dispatch.now(runner(e))}:MessageChannel&&!IS_IOS?(port=(channel=new MessageChannel).port2,channel.port1.onmessage=listener,defer=bind(port.postMessage,port,1)):!global.addEventListener||"function"!=typeof postMessage||global.importScripts||fails(post)?defer=ONREADYSTATECHANGE in createElement("script")?function(e){html.appendChild(createElement("script"))[ONREADYSTATECHANGE]=function(){html.removeChild(this),run(e)}}:function(e){setTimeout(runner(e),0)}:(defer=post,global.addEventListener("message",listener,!1))),module.exports={set:set,clear:clear};
},{"../internals/classof-raw":44,"../internals/document-create-element":58,"../internals/engine-is-ios":60,"../internals/fails":65,"../internals/function-bind-context":68,"../internals/global":71,"../internals/html":75}],134:[function(require,module,exports){
var toInteger=require("../internals/to-integer"),max=Math.max,min=Math.min;module.exports=function(e,t){var n=toInteger(e);return n<0?max(n+t,0):min(n,t)};
},{"../internals/to-integer":136}],135:[function(require,module,exports){
var IndexedObject=require("../internals/indexed-object"),requireObjectCoercible=require("../internals/require-object-coercible");module.exports=function(e){return IndexedObject(requireObjectCoercible(e))};
},{"../internals/indexed-object":77,"../internals/require-object-coercible":122}],136:[function(require,module,exports){
var ceil=Math.ceil,floor=Math.floor;module.exports=function(o){return isNaN(o=+o)?0:(o>0?floor:ceil)(o)};
},{}],137:[function(require,module,exports){
var toInteger=require("../internals/to-integer"),min=Math.min;module.exports=function(e){return e>0?min(toInteger(e),9007199254740991):0};
},{"../internals/to-integer":136}],138:[function(require,module,exports){
var requireObjectCoercible=require("../internals/require-object-coercible");module.exports=function(e){return Object(requireObjectCoercible(e))};
},{"../internals/require-object-coercible":122}],139:[function(require,module,exports){
var isObject=require("../internals/is-object");module.exports=function(t,e){if(!isObject(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!isObject(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!isObject(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!isObject(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")};
},{"../internals/is-object":85}],140:[function(require,module,exports){
var wellKnownSymbol=require("../internals/well-known-symbol"),TO_STRING_TAG=wellKnownSymbol("toStringTag"),test={};test[TO_STRING_TAG]="z",module.exports="[object z]"===String(test);
},{"../internals/well-known-symbol":144}],141:[function(require,module,exports){
var id=0,postfix=Math.random();module.exports=function(o){return"Symbol("+String(void 0===o?"":o)+")_"+(++id+postfix).toString(36)};
},{}],142:[function(require,module,exports){
var NATIVE_SYMBOL=require("../internals/native-symbol");module.exports=NATIVE_SYMBOL&&!Symbol.sham&&"symbol"==typeof Symbol.iterator;
},{"../internals/native-symbol":93}],143:[function(require,module,exports){
var wellKnownSymbol=require("../internals/well-known-symbol");exports.f=wellKnownSymbol;
},{"../internals/well-known-symbol":144}],144:[function(require,module,exports){
var global=require("../internals/global"),shared=require("../internals/shared"),has=require("../internals/has"),uid=require("../internals/uid"),NATIVE_SYMBOL=require("../internals/native-symbol"),USE_SYMBOL_AS_UID=require("../internals/use-symbol-as-uid"),WellKnownSymbolsStore=shared("wks"),Symbol=global.Symbol,createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol:Symbol&&Symbol.withoutSetter||uid;module.exports=function(e){return has(WellKnownSymbolsStore,e)||(NATIVE_SYMBOL&&has(Symbol,e)?WellKnownSymbolsStore[e]=Symbol[e]:WellKnownSymbolsStore[e]=createWellKnownSymbol("Symbol."+e)),WellKnownSymbolsStore[e]};
},{"../internals/global":71,"../internals/has":72,"../internals/native-symbol":93,"../internals/shared":128,"../internals/uid":141,"../internals/use-symbol-as-uid":142}],145:[function(require,module,exports){
module.exports="\t\n\v\f\r    \u2028\u2029\ufeff";
},{}],146:[function(require,module,exports){
"use strict";var $=require("../internals/export"),fails=require("../internals/fails"),isArray=require("../internals/is-array"),isObject=require("../internals/is-object"),toObject=require("../internals/to-object"),toLength=require("../internals/to-length"),createProperty=require("../internals/create-property"),arraySpeciesCreate=require("../internals/array-species-create"),arrayMethodHasSpeciesSupport=require("../internals/array-method-has-species-support"),wellKnownSymbol=require("../internals/well-known-symbol"),V8_VERSION=require("../internals/engine-v8-version"),IS_CONCAT_SPREADABLE=wellKnownSymbol("isConcatSpreadable"),MAX_SAFE_INTEGER=9007199254740991,MAXIMUM_ALLOWED_INDEX_EXCEEDED="Maximum allowed index exceeded",IS_CONCAT_SPREADABLE_SUPPORT=V8_VERSION>=51||!fails(function(){var e=[];return e[IS_CONCAT_SPREADABLE]=!1,e.concat()[0]!==e}),SPECIES_SUPPORT=arrayMethodHasSpeciesSupport("concat"),isConcatSpreadable=function(e){if(!isObject(e))return!1;var r=e[IS_CONCAT_SPREADABLE];return void 0!==r?!!r:isArray(e)},FORCED=!IS_CONCAT_SPREADABLE_SUPPORT||!SPECIES_SUPPORT;$({target:"Array",proto:!0,forced:FORCED},{concat:function(e){var r,t,a,i,n,E=toObject(this),o=arraySpeciesCreate(E,0),s=0;for(r=-1,a=arguments.length;r<a;r++)if(n=-1===r?E:arguments[r],isConcatSpreadable(n)){if(s+(i=toLength(n.length))>MAX_SAFE_INTEGER)throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);for(t=0;t<i;t++,s++)t in n&&createProperty(o,s,n[t])}else{if(s>=MAX_SAFE_INTEGER)throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);createProperty(o,s++,n)}return o.length=s,o}});
},{"../internals/array-method-has-species-support":37,"../internals/array-species-create":41,"../internals/create-property":54,"../internals/engine-v8-version":62,"../internals/export":64,"../internals/fails":65,"../internals/is-array":83,"../internals/is-object":85,"../internals/to-length":137,"../internals/to-object":138,"../internals/well-known-symbol":144}],147:[function(require,module,exports){
"use strict";var $=require("../internals/export"),$every=require("../internals/array-iteration").every,arrayMethodIsStrict=require("../internals/array-method-is-strict"),arrayMethodUsesToLength=require("../internals/array-method-uses-to-length"),STRICT_METHOD=arrayMethodIsStrict("every"),USES_TO_LENGTH=arrayMethodUsesToLength("every");$({target:"Array",proto:!0,forced:!STRICT_METHOD||!USES_TO_LENGTH},{every:function(r){return $every(this,r,arguments.length>1?arguments[1]:void 0)}});
},{"../internals/array-iteration":36,"../internals/array-method-is-strict":38,"../internals/array-method-uses-to-length":39,"../internals/export":64}],148:[function(require,module,exports){
var $=require("../internals/export"),fill=require("../internals/array-fill"),addToUnscopables=require("../internals/add-to-unscopables");$({target:"Array",proto:!0},{fill:fill}),addToUnscopables("fill");
},{"../internals/add-to-unscopables":28,"../internals/array-fill":32,"../internals/export":64}],149:[function(require,module,exports){
"use strict";var $=require("../internals/export"),$filter=require("../internals/array-iteration").filter,arrayMethodHasSpeciesSupport=require("../internals/array-method-has-species-support"),arrayMethodUsesToLength=require("../internals/array-method-uses-to-length"),HAS_SPECIES_SUPPORT=arrayMethodHasSpeciesSupport("filter"),USES_TO_LENGTH=arrayMethodUsesToLength("filter");$({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT||!USES_TO_LENGTH},{filter:function(r){return $filter(this,r,arguments.length>1?arguments[1]:void 0)}});
},{"../internals/array-iteration":36,"../internals/array-method-has-species-support":37,"../internals/array-method-uses-to-length":39,"../internals/export":64}],150:[function(require,module,exports){
"use strict";var $=require("../internals/export"),forEach=require("../internals/array-for-each");$({target:"Array",proto:!0,forced:[].forEach!=forEach},{forEach:forEach});
},{"../internals/array-for-each":33,"../internals/export":64}],151:[function(require,module,exports){
var $=require("../internals/export"),from=require("../internals/array-from"),checkCorrectnessOfIteration=require("../internals/check-correctness-of-iteration"),INCORRECT_ITERATION=!checkCorrectnessOfIteration(function(r){Array.from(r)});$({target:"Array",stat:!0,forced:INCORRECT_ITERATION},{from:from});
},{"../internals/array-from":34,"../internals/check-correctness-of-iteration":43,"../internals/export":64}],152:[function(require,module,exports){
"use strict";var $=require("../internals/export"),$includes=require("../internals/array-includes").includes,addToUnscopables=require("../internals/add-to-unscopables"),arrayMethodUsesToLength=require("../internals/array-method-uses-to-length"),USES_TO_LENGTH=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0});$({target:"Array",proto:!0,forced:!USES_TO_LENGTH},{includes:function(e){return $includes(this,e,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables("includes");
},{"../internals/add-to-unscopables":28,"../internals/array-includes":35,"../internals/array-method-uses-to-length":39,"../internals/export":64}],153:[function(require,module,exports){
"use strict";var $=require("../internals/export"),$indexOf=require("../internals/array-includes").indexOf,arrayMethodIsStrict=require("../internals/array-method-is-strict"),arrayMethodUsesToLength=require("../internals/array-method-uses-to-length"),nativeIndexOf=[].indexOf,NEGATIVE_ZERO=!!nativeIndexOf&&1/[1].indexOf(1,-0)<0,STRICT_METHOD=arrayMethodIsStrict("indexOf"),USES_TO_LENGTH=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0});$({target:"Array",proto:!0,forced:NEGATIVE_ZERO||!STRICT_METHOD||!USES_TO_LENGTH},{indexOf:function(e){return NEGATIVE_ZERO?nativeIndexOf.apply(this,arguments)||0:$indexOf(this,e,arguments.length>1?arguments[1]:void 0)}});
},{"../internals/array-includes":35,"../internals/array-method-is-strict":38,"../internals/array-method-uses-to-length":39,"../internals/export":64}],154:[function(require,module,exports){
"use strict";var toIndexedObject=require("../internals/to-indexed-object"),addToUnscopables=require("../internals/add-to-unscopables"),Iterators=require("../internals/iterators"),InternalStateModule=require("../internals/internal-state"),defineIterator=require("../internals/define-iterator"),ARRAY_ITERATOR="Array Iterator",setInternalState=InternalStateModule.set,getInternalState=InternalStateModule.getterFor(ARRAY_ITERATOR);module.exports=defineIterator(Array,"Array",function(e,t){setInternalState(this,{type:ARRAY_ITERATOR,target:toIndexedObject(e),index:0,kind:t})},function(){var e=getInternalState(this),t=e.target,r=e.kind,a=e.index++;return!t||a>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:a,done:!1}:"values"==r?{value:t[a],done:!1}:{value:[a,t[a]],done:!1}},"values"),Iterators.Arguments=Iterators.Array,addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries");
},{"../internals/add-to-unscopables":28,"../internals/define-iterator":55,"../internals/internal-state":81,"../internals/iterators":90,"../internals/to-indexed-object":135}],155:[function(require,module,exports){
"use strict";var $=require("../internals/export"),IndexedObject=require("../internals/indexed-object"),toIndexedObject=require("../internals/to-indexed-object"),arrayMethodIsStrict=require("../internals/array-method-is-strict"),nativeJoin=[].join,ES3_STRINGS=IndexedObject!=Object,STRICT_METHOD=arrayMethodIsStrict("join",",");$({target:"Array",proto:!0,forced:ES3_STRINGS||!STRICT_METHOD},{join:function(e){return nativeJoin.call(toIndexedObject(this),void 0===e?",":e)}});
},{"../internals/array-method-is-strict":38,"../internals/export":64,"../internals/indexed-object":77,"../internals/to-indexed-object":135}],156:[function(require,module,exports){
"use strict";var $=require("../internals/export"),$map=require("../internals/array-iteration").map,arrayMethodHasSpeciesSupport=require("../internals/array-method-has-species-support"),arrayMethodUsesToLength=require("../internals/array-method-uses-to-length"),HAS_SPECIES_SUPPORT=arrayMethodHasSpeciesSupport("map"),USES_TO_LENGTH=arrayMethodUsesToLength("map");$({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT||!USES_TO_LENGTH},{map:function(r){return $map(this,r,arguments.length>1?arguments[1]:void 0)}});
},{"../internals/array-iteration":36,"../internals/array-method-has-species-support":37,"../internals/array-method-uses-to-length":39,"../internals/export":64}],157:[function(require,module,exports){
"use strict";var $=require("../internals/export"),$reduce=require("../internals/array-reduce").left,arrayMethodIsStrict=require("../internals/array-method-is-strict"),arrayMethodUsesToLength=require("../internals/array-method-uses-to-length"),STRICT_METHOD=arrayMethodIsStrict("reduce"),USES_TO_LENGTH=arrayMethodUsesToLength("reduce",{1:0});$({target:"Array",proto:!0,forced:!STRICT_METHOD||!USES_TO_LENGTH},{reduce:function(r){return $reduce(this,r,arguments.length,arguments.length>1?arguments[1]:void 0)}});
},{"../internals/array-method-is-strict":38,"../internals/array-method-uses-to-length":39,"../internals/array-reduce":40,"../internals/export":64}],158:[function(require,module,exports){
"use strict";var $=require("../internals/export"),isArray=require("../internals/is-array"),nativeReverse=[].reverse,test=[1,2];$({target:"Array",proto:!0,forced:String(test)===String(test.reverse())},{reverse:function(){return isArray(this)&&(this.length=this.length),nativeReverse.call(this)}});
},{"../internals/export":64,"../internals/is-array":83}],159:[function(require,module,exports){
"use strict";var $=require("../internals/export"),$some=require("../internals/array-iteration").some,arrayMethodIsStrict=require("../internals/array-method-is-strict"),arrayMethodUsesToLength=require("../internals/array-method-uses-to-length"),STRICT_METHOD=arrayMethodIsStrict("some"),USES_TO_LENGTH=arrayMethodUsesToLength("some");$({target:"Array",proto:!0,forced:!STRICT_METHOD||!USES_TO_LENGTH},{some:function(r){return $some(this,r,arguments.length>1?arguments[1]:void 0)}});
},{"../internals/array-iteration":36,"../internals/array-method-is-strict":38,"../internals/array-method-uses-to-length":39,"../internals/export":64}],160:[function(require,module,exports){
var redefine=require("../internals/redefine"),DatePrototype=Date.prototype,INVALID_DATE="Invalid Date",TO_STRING="toString",nativeDateToString=DatePrototype[TO_STRING],getTime=DatePrototype.getTime;new Date(NaN)+""!=INVALID_DATE&&redefine(DatePrototype,TO_STRING,function(){var e=getTime.call(this);return e==e?nativeDateToString.call(this):INVALID_DATE});
},{"../internals/redefine":117}],161:[function(require,module,exports){
var DESCRIPTORS=require("../internals/descriptors"),defineProperty=require("../internals/object-define-property").f,FunctionPrototype=Function.prototype,FunctionPrototypeToString=FunctionPrototype.toString,nameRE=/^\s*function ([^ (]*)/,NAME="name";!DESCRIPTORS||NAME in FunctionPrototype||defineProperty(FunctionPrototype,NAME,{configurable:!0,get:function(){try{return FunctionPrototypeToString.call(this).match(nameRE)[1]}catch(t){return""}}});
},{"../internals/descriptors":57,"../internals/object-define-property":101}],162:[function(require,module,exports){
"use strict";var collection=require("../internals/collection"),collectionStrong=require("../internals/collection-strong");module.exports=collection("Map",function(n){return function(){return n(this,arguments.length?arguments[0]:void 0)}},collectionStrong);
},{"../internals/collection":47,"../internals/collection-strong":46}],163:[function(require,module,exports){
"use strict";var DESCRIPTORS=require("../internals/descriptors"),global=require("../internals/global"),isForced=require("../internals/is-forced"),redefine=require("../internals/redefine"),has=require("../internals/has"),classof=require("../internals/classof-raw"),inheritIfRequired=require("../internals/inherit-if-required"),toPrimitive=require("../internals/to-primitive"),fails=require("../internals/fails"),create=require("../internals/object-create"),getOwnPropertyNames=require("../internals/object-get-own-property-names").f,getOwnPropertyDescriptor=require("../internals/object-get-own-property-descriptor").f,defineProperty=require("../internals/object-define-property").f,trim=require("../internals/string-trim").trim,NUMBER="Number",NativeNumber=global[NUMBER],NumberPrototype=NativeNumber.prototype,BROKEN_CLASSOF=classof(create(NumberPrototype))==NUMBER,toNumber=function(e){var r,t,i,a,n,s,o,N,u=toPrimitive(e,!1);if("string"==typeof u&&u.length>2)if(43===(r=(u=trim(u)).charCodeAt(0))||45===r){if(88===(t=u.charCodeAt(2))||120===t)return NaN}else if(48===r){switch(u.charCodeAt(1)){case 66:case 98:i=2,a=49;break;case 79:case 111:i=8,a=55;break;default:return+u}for(s=(n=u.slice(2)).length,o=0;o<s;o++)if((N=n.charCodeAt(o))<48||N>a)return NaN;return parseInt(n,i)}return+u};if(isForced(NUMBER,!NativeNumber(" 0o1")||!NativeNumber("0b1")||NativeNumber("+0x1"))){for(var key,NumberWrapper=function(e){var r=arguments.length<1?0:e,t=this;return t instanceof NumberWrapper&&(BROKEN_CLASSOF?fails(function(){NumberPrototype.valueOf.call(t)}):classof(t)!=NUMBER)?inheritIfRequired(new NativeNumber(toNumber(r)),t,NumberWrapper):toNumber(r)},keys=DESCRIPTORS?getOwnPropertyNames(NativeNumber):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),j=0;keys.length>j;j++)has(NativeNumber,key=keys[j])&&!has(NumberWrapper,key)&&defineProperty(NumberWrapper,key,getOwnPropertyDescriptor(NativeNumber,key));NumberWrapper.prototype=NumberPrototype,NumberPrototype.constructor=NumberWrapper,redefine(global,NUMBER,NumberWrapper)}
},{"../internals/classof-raw":44,"../internals/descriptors":57,"../internals/fails":65,"../internals/global":71,"../internals/has":72,"../internals/inherit-if-required":78,"../internals/is-forced":84,"../internals/object-create":99,"../internals/object-define-property":101,"../internals/object-get-own-property-descriptor":102,"../internals/object-get-own-property-names":104,"../internals/redefine":117,"../internals/string-trim":132,"../internals/to-primitive":139}],164:[function(require,module,exports){
var $=require("../internals/export"),DESCRIPTORS=require("../internals/descriptors"),defineProperties=require("../internals/object-define-properties");$({target:"Object",stat:!0,forced:!DESCRIPTORS,sham:!DESCRIPTORS},{defineProperties:defineProperties});
},{"../internals/descriptors":57,"../internals/export":64,"../internals/object-define-properties":100}],165:[function(require,module,exports){
var $=require("../internals/export"),DESCRIPTORS=require("../internals/descriptors"),objectDefinePropertyModile=require("../internals/object-define-property");$({target:"Object",stat:!0,forced:!DESCRIPTORS,sham:!DESCRIPTORS},{defineProperty:objectDefinePropertyModile.f});
},{"../internals/descriptors":57,"../internals/export":64,"../internals/object-define-property":101}],166:[function(require,module,exports){
var $=require("../internals/export"),fails=require("../internals/fails"),toIndexedObject=require("../internals/to-indexed-object"),nativeGetOwnPropertyDescriptor=require("../internals/object-get-own-property-descriptor").f,DESCRIPTORS=require("../internals/descriptors"),FAILS_ON_PRIMITIVES=fails(function(){nativeGetOwnPropertyDescriptor(1)}),FORCED=!DESCRIPTORS||FAILS_ON_PRIMITIVES;$({target:"Object",stat:!0,forced:FORCED,sham:!DESCRIPTORS},{getOwnPropertyDescriptor:function(e,r){return nativeGetOwnPropertyDescriptor(toIndexedObject(e),r)}});
},{"../internals/descriptors":57,"../internals/export":64,"../internals/fails":65,"../internals/object-get-own-property-descriptor":102,"../internals/to-indexed-object":135}],167:[function(require,module,exports){
var $=require("../internals/export"),DESCRIPTORS=require("../internals/descriptors"),ownKeys=require("../internals/own-keys"),toIndexedObject=require("../internals/to-indexed-object"),getOwnPropertyDescriptorModule=require("../internals/object-get-own-property-descriptor"),createProperty=require("../internals/create-property");$({target:"Object",stat:!0,sham:!DESCRIPTORS},{getOwnPropertyDescriptors:function(e){for(var r,t,o=toIndexedObject(e),n=getOwnPropertyDescriptorModule.f,i=ownKeys(o),s={},p=0;i.length>p;)void 0!==(t=n(o,r=i[p++]))&&createProperty(s,r,t);return s}});
},{"../internals/create-property":54,"../internals/descriptors":57,"../internals/export":64,"../internals/object-get-own-property-descriptor":102,"../internals/own-keys":112,"../internals/to-indexed-object":135}],168:[function(require,module,exports){
var $=require("../internals/export"),toObject=require("../internals/to-object"),nativeKeys=require("../internals/object-keys"),fails=require("../internals/fails"),FAILS_ON_PRIMITIVES=fails(function(){nativeKeys(1)});$({target:"Object",stat:!0,forced:FAILS_ON_PRIMITIVES},{keys:function(e){return nativeKeys(toObject(e))}});
},{"../internals/export":64,"../internals/fails":65,"../internals/object-keys":108,"../internals/to-object":138}],169:[function(require,module,exports){
var TO_STRING_TAG_SUPPORT=require("../internals/to-string-tag-support"),redefine=require("../internals/redefine"),toString=require("../internals/object-to-string");TO_STRING_TAG_SUPPORT||redefine(Object.prototype,"toString",toString,{unsafe:!0});
},{"../internals/object-to-string":111,"../internals/redefine":117,"../internals/to-string-tag-support":140}],170:[function(require,module,exports){
var $=require("../internals/export"),parseFloatImplementation=require("../internals/number-parse-float");$({global:!0,forced:parseFloat!=parseFloatImplementation},{parseFloat:parseFloatImplementation});
},{"../internals/export":64,"../internals/number-parse-float":97}],171:[function(require,module,exports){
var $=require("../internals/export"),parseIntImplementation=require("../internals/number-parse-int");$({global:!0,forced:parseInt!=parseIntImplementation},{parseInt:parseIntImplementation});
},{"../internals/export":64,"../internals/number-parse-int":98}],172:[function(require,module,exports){
"use strict";var Internal,OwnPromiseCapability,PromiseWrapper,nativeThen,$=require("../internals/export"),IS_PURE=require("../internals/is-pure"),global=require("../internals/global"),getBuiltIn=require("../internals/get-built-in"),NativePromise=require("../internals/native-promise-constructor"),redefine=require("../internals/redefine"),redefineAll=require("../internals/redefine-all"),setToStringTag=require("../internals/set-to-string-tag"),setSpecies=require("../internals/set-species"),isObject=require("../internals/is-object"),aFunction=require("../internals/a-function"),anInstance=require("../internals/an-instance"),classof=require("../internals/classof-raw"),inspectSource=require("../internals/inspect-source"),iterate=require("../internals/iterate"),checkCorrectnessOfIteration=require("../internals/check-correctness-of-iteration"),speciesConstructor=require("../internals/species-constructor"),task=require("../internals/task").set,microtask=require("../internals/microtask"),promiseResolve=require("../internals/promise-resolve"),hostReportErrors=require("../internals/host-report-errors"),newPromiseCapabilityModule=require("../internals/new-promise-capability"),perform=require("../internals/perform"),InternalStateModule=require("../internals/internal-state"),isForced=require("../internals/is-forced"),wellKnownSymbol=require("../internals/well-known-symbol"),V8_VERSION=require("../internals/engine-v8-version"),SPECIES=wellKnownSymbol("species"),PROMISE="Promise",getInternalState=InternalStateModule.get,setInternalState=InternalStateModule.set,getInternalPromiseState=InternalStateModule.getterFor(PROMISE),PromiseConstructor=NativePromise,TypeError=global.TypeError,document=global.document,process=global.process,$fetch=getBuiltIn("fetch"),newPromiseCapability=newPromiseCapabilityModule.f,newGenericPromiseCapability=newPromiseCapability,IS_NODE="process"==classof(process),DISPATCH_EVENT=!!(document&&document.createEvent&&global.dispatchEvent),UNHANDLED_REJECTION="unhandledrejection",REJECTION_HANDLED="rejectionhandled",PENDING=0,FULFILLED=1,REJECTED=2,HANDLED=1,UNHANDLED=2,FORCED=isForced(PROMISE,function(){if(!(inspectSource(PromiseConstructor)!==String(PromiseConstructor))){if(66===V8_VERSION)return!0;if(!IS_NODE&&"function"!=typeof PromiseRejectionEvent)return!0}if(IS_PURE&&!PromiseConstructor.prototype.finally)return!0;if(V8_VERSION>=51&&/native code/.test(PromiseConstructor))return!1;var e=PromiseConstructor.resolve(1),t=function(e){e(function(){},function(){})};return(e.constructor={})[SPECIES]=t,!(e.then(function(){})instanceof t)}),INCORRECT_ITERATION=FORCED||!checkCorrectnessOfIteration(function(e){PromiseConstructor.all(e).catch(function(){})}),isThenable=function(e){var t;return!(!isObject(e)||"function"!=typeof(t=e.then))&&t},notify=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;microtask(function(){for(var i=t.value,o=t.state==FULFILLED,a=0;r.length>a;){var s,c,l,u=r[a++],f=o?u.ok:u.fail,p=u.resolve,E=u.reject,m=u.domain;try{f?(o||(t.rejection===UNHANDLED&&onHandleUnhandled(e,t),t.rejection=HANDLED),!0===f?s=i:(m&&m.enter(),s=f(i),m&&(m.exit(),l=!0)),s===u.promise?E(TypeError("Promise-chain cycle")):(c=isThenable(s))?c.call(s,p,E):p(s)):E(i)}catch(e){m&&!l&&m.exit(),E(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&onUnhandled(e,t)})}},dispatchEvent=function(e,t,n){var r,i;DISPATCH_EVENT?((r=document.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),global.dispatchEvent(r)):r={promise:t,reason:n},(i=global["on"+e])?i(r):e===UNHANDLED_REJECTION&&hostReportErrors("Unhandled promise rejection",n)},onUnhandled=function(e,t){task.call(global,function(){var n,r=t.value;if(isUnhandled(t)&&(n=perform(function(){IS_NODE?process.emit("unhandledRejection",r,e):dispatchEvent(UNHANDLED_REJECTION,e,r)}),t.rejection=IS_NODE||isUnhandled(t)?UNHANDLED:HANDLED,n.error))throw n.value})},isUnhandled=function(e){return e.rejection!==HANDLED&&!e.parent},onHandleUnhandled=function(e,t){task.call(global,function(){IS_NODE?process.emit("rejectionHandled",e):dispatchEvent(REJECTION_HANDLED,e,t.value)})},bind=function(e,t,n,r){return function(i){e(t,n,i,r)}},internalReject=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=REJECTED,notify(e,t,!0))},internalResolve=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw TypeError("Promise can't be resolved itself");var i=isThenable(n);i?microtask(function(){var r={done:!1};try{i.call(n,bind(internalResolve,e,r,t),bind(internalReject,e,r,t))}catch(n){internalReject(e,r,n,t)}}):(t.value=n,t.state=FULFILLED,notify(e,t,!1))}catch(n){internalReject(e,{done:!1},n,t)}}};FORCED&&(PromiseConstructor=function(e){anInstance(this,PromiseConstructor,PROMISE),aFunction(e),Internal.call(this);var t=getInternalState(this);try{e(bind(internalResolve,this,t),bind(internalReject,this,t))}catch(e){internalReject(this,t,e)}},(Internal=function(e){setInternalState(this,{type:PROMISE,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:PENDING,value:void 0})}).prototype=redefineAll(PromiseConstructor.prototype,{then:function(e,t){var n=getInternalPromiseState(this),r=newPromiseCapability(speciesConstructor(this,PromiseConstructor));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=IS_NODE?process.domain:void 0,n.parent=!0,n.reactions.push(r),n.state!=PENDING&&notify(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),OwnPromiseCapability=function(){var e=new Internal,t=getInternalState(e);this.promise=e,this.resolve=bind(internalResolve,e,t),this.reject=bind(internalReject,e,t)},newPromiseCapabilityModule.f=newPromiseCapability=function(e){return e===PromiseConstructor||e===PromiseWrapper?new OwnPromiseCapability(e):newGenericPromiseCapability(e)},IS_PURE||"function"!=typeof NativePromise||(nativeThen=NativePromise.prototype.then,redefine(NativePromise.prototype,"then",function(e,t){var n=this;return new PromiseConstructor(function(e,t){nativeThen.call(n,e,t)}).then(e,t)},{unsafe:!0}),"function"==typeof $fetch&&$({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return promiseResolve(PromiseConstructor,$fetch.apply(global,arguments))}}))),$({global:!0,wrap:!0,forced:FORCED},{Promise:PromiseConstructor}),setToStringTag(PromiseConstructor,PROMISE,!1,!0),setSpecies(PROMISE),PromiseWrapper=getBuiltIn(PROMISE),$({target:PROMISE,stat:!0,forced:FORCED},{reject:function(e){var t=newPromiseCapability(this);return t.reject.call(void 0,e),t.promise}}),$({target:PROMISE,stat:!0,forced:IS_PURE||FORCED},{resolve:function(e){return promiseResolve(IS_PURE&&this===PromiseWrapper?PromiseConstructor:this,e)}}),$({target:PROMISE,stat:!0,forced:INCORRECT_ITERATION},{all:function(e){var t=this,n=newPromiseCapability(t),r=n.resolve,i=n.reject,o=perform(function(){var n=aFunction(t.resolve),o=[],a=0,s=1;iterate(e,function(e){var c=a++,l=!1;o.push(void 0),s++,n.call(t,e).then(function(e){l||(l=!0,o[c]=e,--s||r(o))},i)}),--s||r(o)});return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=newPromiseCapability(t),r=n.reject,i=perform(function(){var i=aFunction(t.resolve);iterate(e,function(e){i.call(t,e).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}});
},{"../internals/a-function":26,"../internals/an-instance":30,"../internals/check-correctness-of-iteration":43,"../internals/classof-raw":44,"../internals/engine-v8-version":62,"../internals/export":64,"../internals/get-built-in":69,"../internals/global":71,"../internals/host-report-errors":74,"../internals/inspect-source":79,"../internals/internal-state":81,"../internals/is-forced":84,"../internals/is-object":85,"../internals/is-pure":86,"../internals/iterate":88,"../internals/microtask":91,"../internals/native-promise-constructor":92,"../internals/new-promise-capability":95,"../internals/perform":114,"../internals/promise-resolve":115,"../internals/redefine":117,"../internals/redefine-all":116,"../internals/set-species":124,"../internals/set-to-string-tag":125,"../internals/species-constructor":129,"../internals/task":133,"../internals/well-known-symbol":144}],173:[function(require,module,exports){
var $=require("../internals/export"),getBuiltIn=require("../internals/get-built-in"),aFunction=require("../internals/a-function"),anObject=require("../internals/an-object"),fails=require("../internals/fails"),nativeApply=getBuiltIn("Reflect","apply"),functionApply=Function.apply,OPTIONAL_ARGUMENTS_LIST=!fails(function(){nativeApply(function(){})});$({target:"Reflect",stat:!0,forced:OPTIONAL_ARGUMENTS_LIST},{apply:function(n,t,e){return aFunction(n),anObject(e),nativeApply?nativeApply(n,t,e):functionApply.call(n,t,e)}});
},{"../internals/a-function":26,"../internals/an-object":31,"../internals/export":64,"../internals/fails":65,"../internals/get-built-in":69}],174:[function(require,module,exports){
var $=require("../internals/export"),anObject=require("../internals/an-object"),getOwnPropertyDescriptor=require("../internals/object-get-own-property-descriptor").f;$({target:"Reflect",stat:!0},{deleteProperty:function(e,r){var t=getOwnPropertyDescriptor(anObject(e),r);return!(t&&!t.configurable)&&delete e[r]}});
},{"../internals/an-object":31,"../internals/export":64,"../internals/object-get-own-property-descriptor":102}],175:[function(require,module,exports){
var $=require("../internals/export"),anObject=require("../internals/an-object"),objectGetPrototypeOf=require("../internals/object-get-prototype-of"),CORRECT_PROTOTYPE_GETTER=require("../internals/correct-prototype-getter");$({target:"Reflect",stat:!0,sham:!CORRECT_PROTOTYPE_GETTER},{getPrototypeOf:function(e){return objectGetPrototypeOf(anObject(e))}});
},{"../internals/an-object":31,"../internals/correct-prototype-getter":50,"../internals/export":64,"../internals/object-get-prototype-of":106}],176:[function(require,module,exports){
"use strict";var $=require("../internals/export"),exec=require("../internals/regexp-exec");$({target:"RegExp",proto:!0,forced:/./.exec!==exec},{exec:exec});
},{"../internals/export":64,"../internals/regexp-exec":119}],177:[function(require,module,exports){
"use strict";var redefine=require("../internals/redefine"),anObject=require("../internals/an-object"),fails=require("../internals/fails"),flags=require("../internals/regexp-flags"),TO_STRING="toString",RegExpPrototype=RegExp.prototype,nativeToString=RegExpPrototype[TO_STRING],NOT_GENERIC=fails(function(){return"/a/b"!=nativeToString.call({source:"a",flags:"b"})}),INCORRECT_NAME=nativeToString.name!=TO_STRING;(NOT_GENERIC||INCORRECT_NAME)&&redefine(RegExp.prototype,TO_STRING,function(){var e=anObject(this),r=String(e.source),t=e.flags;return"/"+r+"/"+String(void 0===t&&e instanceof RegExp&&!("flags"in RegExpPrototype)?flags.call(e):t)},{unsafe:!0});
},{"../internals/an-object":31,"../internals/fails":65,"../internals/redefine":117,"../internals/regexp-flags":120}],178:[function(require,module,exports){
"use strict";var $=require("../internals/export"),notARegExp=require("../internals/not-a-regexp"),requireObjectCoercible=require("../internals/require-object-coercible"),correctIsRegExpLogic=require("../internals/correct-is-regexp-logic");$({target:"String",proto:!0,forced:!correctIsRegExpLogic("includes")},{includes:function(e){return!!~String(requireObjectCoercible(this)).indexOf(notARegExp(e),arguments.length>1?arguments[1]:void 0)}});
},{"../internals/correct-is-regexp-logic":49,"../internals/export":64,"../internals/not-a-regexp":96,"../internals/require-object-coercible":122}],179:[function(require,module,exports){
"use strict";var charAt=require("../internals/string-multibyte").charAt,InternalStateModule=require("../internals/internal-state"),defineIterator=require("../internals/define-iterator"),STRING_ITERATOR="String Iterator",setInternalState=InternalStateModule.set,getInternalState=InternalStateModule.getterFor(STRING_ITERATOR);defineIterator(String,"String",function(t){setInternalState(this,{type:STRING_ITERATOR,string:String(t),index:0})},function(){var t,e=getInternalState(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=charAt(n,r),e.index+=t.length,{value:t,done:!1})});
},{"../internals/define-iterator":55,"../internals/internal-state":81,"../internals/string-multibyte":130}],180:[function(require,module,exports){
"use strict";var fixRegExpWellKnownSymbolLogic=require("../internals/fix-regexp-well-known-symbol-logic"),anObject=require("../internals/an-object"),toLength=require("../internals/to-length"),requireObjectCoercible=require("../internals/require-object-coercible"),advanceStringIndex=require("../internals/advance-string-index"),regExpExec=require("../internals/regexp-exec-abstract");fixRegExpWellKnownSymbolLogic("match",1,function(e,r,n){return[function(r){var n=requireObjectCoercible(this),i=void 0==r?void 0:r[e];return void 0!==i?i.call(r,n):new RegExp(r)[e](String(n))},function(e){var i=n(r,e,this);if(i.done)return i.value;var t=anObject(e),l=String(this);if(!t.global)return regExpExec(t,l);var a=t.unicode;t.lastIndex=0;for(var c,o=[],u=0;null!==(c=regExpExec(t,l));){var g=String(c[0]);o[u]=g,""===g&&(t.lastIndex=advanceStringIndex(l,toLength(t.lastIndex),a)),u++}return 0===u?null:o}]});
},{"../internals/advance-string-index":29,"../internals/an-object":31,"../internals/fix-regexp-well-known-symbol-logic":66,"../internals/regexp-exec-abstract":118,"../internals/require-object-coercible":122,"../internals/to-length":137}],181:[function(require,module,exports){
"use strict";var fixRegExpWellKnownSymbolLogic=require("../internals/fix-regexp-well-known-symbol-logic"),anObject=require("../internals/an-object"),toObject=require("../internals/to-object"),toLength=require("../internals/to-length"),toInteger=require("../internals/to-integer"),requireObjectCoercible=require("../internals/require-object-coercible"),advanceStringIndex=require("../internals/advance-string-index"),regExpExec=require("../internals/regexp-exec-abstract"),max=Math.max,min=Math.min,floor=Math.floor,SUBSTITUTION_SYMBOLS=/\$([$&'`]|\d\d?|<[^>]*>)/g,SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&'`]|\d\d?)/g,maybeToString=function(e){return void 0===e?e:String(e)};fixRegExpWellKnownSymbolLogic("replace",2,function(e,r,n,t){var i=t.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,a=t.REPLACE_KEEPS_$0,o=i?"$":"$0";return[function(n,t){var i=requireObjectCoercible(this),a=void 0==n?void 0:n[e];return void 0!==a?a.call(n,i,t):r.call(String(i),n,t)},function(e,t){if(!i&&a||"string"==typeof t&&-1===t.indexOf(o)){var c=n(r,e,this,t);if(c.done)return c.value}var u=anObject(e),g=String(this),s="function"==typeof t;s||(t=String(t));var S=u.global;if(S){var v=u.unicode;u.lastIndex=0}for(var f=[];;){var d=regExpExec(u,g);if(null===d)break;if(f.push(d),!S)break;""===String(d[0])&&(u.lastIndex=advanceStringIndex(g,toLength(u.lastIndex),v))}for(var x="",b=0,h=0;h<f.length;h++){d=f[h];for(var E=String(d[0]),T=max(min(toInteger(d.index),g.length),0),I=[],O=1;O<d.length;O++)I.push(maybeToString(d[O]));var p=d.groups;if(s){var _=[E].concat(I,T,g);void 0!==p&&_.push(p);var U=String(t.apply(void 0,_))}else U=l(E,g,T,I,p,t);T>=b&&(x+=g.slice(b,T)+U,b=T+E.length)}return x+g.slice(b)}];function l(e,n,t,i,a,o){var l=t+e.length,c=i.length,u=SUBSTITUTION_SYMBOLS_NO_NAMED;return void 0!==a&&(a=toObject(a),u=SUBSTITUTION_SYMBOLS),r.call(o,u,function(r,o){var u;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,t);case"'":return n.slice(l);case"<":u=a[o.slice(1,-1)];break;default:var g=+o;if(0===g)return r;if(g>c){var s=floor(g/10);return 0===s?r:s<=c?void 0===i[s-1]?o.charAt(1):i[s-1]+o.charAt(1):r}u=i[g-1]}return void 0===u?"":u})}});
},{"../internals/advance-string-index":29,"../internals/an-object":31,"../internals/fix-regexp-well-known-symbol-logic":66,"../internals/regexp-exec-abstract":118,"../internals/require-object-coercible":122,"../internals/to-integer":136,"../internals/to-length":137,"../internals/to-object":138}],182:[function(require,module,exports){
"use strict";var fixRegExpWellKnownSymbolLogic=require("../internals/fix-regexp-well-known-symbol-logic"),isRegExp=require("../internals/is-regexp"),anObject=require("../internals/an-object"),requireObjectCoercible=require("../internals/require-object-coercible"),speciesConstructor=require("../internals/species-constructor"),advanceStringIndex=require("../internals/advance-string-index"),toLength=require("../internals/to-length"),callRegExpExec=require("../internals/regexp-exec-abstract"),regexpExec=require("../internals/regexp-exec"),fails=require("../internals/fails"),arrayPush=[].push,min=Math.min,MAX_UINT32=4294967295,SUPPORTS_Y=!fails(function(){return!RegExp(MAX_UINT32,"y")});fixRegExpWellKnownSymbolLogic("split",2,function(e,n,i){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,i){var r=String(requireObjectCoercible(this)),t=void 0===i?MAX_UINT32:i>>>0;if(0===t)return[];if(void 0===e)return[r];if(!isRegExp(e))return n.call(r,e,t);for(var l,s,c,a=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),g=0,o=new RegExp(e.source,u+"g");(l=regexpExec.call(o,r))&&!((s=o.lastIndex)>g&&(a.push(r.slice(g,l.index)),l.length>1&&l.index<r.length&&arrayPush.apply(a,l.slice(1)),c=l[0].length,g=s,a.length>=t));)o.lastIndex===l.index&&o.lastIndex++;return g===r.length?!c&&o.test("")||a.push(""):a.push(r.slice(g)),a.length>t?a.slice(0,t):a}:"0".split(void 0,0).length?function(e,i){return void 0===e&&0===i?[]:n.call(this,e,i)}:n,[function(n,i){var t=requireObjectCoercible(this),l=void 0==n?void 0:n[e];return void 0!==l?l.call(n,t,i):r.call(String(t),n,i)},function(e,t){var l=i(r,e,this,t,r!==n);if(l.done)return l.value;var s=anObject(e),c=String(this),a=speciesConstructor(s,RegExp),u=s.unicode,g=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(SUPPORTS_Y?"y":"g"),o=new a(SUPPORTS_Y?s:"^(?:"+s.source+")",g),x=void 0===t?MAX_UINT32:t>>>0;if(0===x)return[];if(0===c.length)return null===callRegExpExec(o,c)?[c]:[];for(var h=0,p=0,d=[];p<c.length;){o.lastIndex=SUPPORTS_Y?p:0;var f,v=callRegExpExec(o,SUPPORTS_Y?c:c.slice(p));if(null===v||(f=min(toLength(o.lastIndex+(SUPPORTS_Y?0:p)),c.length))===h)p=advanceStringIndex(c,p,u);else{if(d.push(c.slice(h,p)),d.length===x)return d;for(var S=1;S<=v.length-1;S++)if(d.push(v[S]),d.length===x)return d;p=h=f}}return d.push(c.slice(h)),d}]},!SUPPORTS_Y);
},{"../internals/advance-string-index":29,"../internals/an-object":31,"../internals/fails":65,"../internals/fix-regexp-well-known-symbol-logic":66,"../internals/is-regexp":87,"../internals/regexp-exec":119,"../internals/regexp-exec-abstract":118,"../internals/require-object-coercible":122,"../internals/species-constructor":129,"../internals/to-length":137}],183:[function(require,module,exports){
"use strict";var $=require("../internals/export"),$trim=require("../internals/string-trim").trim,forcedStringTrimMethod=require("../internals/string-trim-forced");$({target:"String",proto:!0,forced:forcedStringTrimMethod("trim")},{trim:function(){return $trim(this)}});
},{"../internals/export":64,"../internals/string-trim":132,"../internals/string-trim-forced":131}],184:[function(require,module,exports){
"use strict";var $=require("../internals/export"),DESCRIPTORS=require("../internals/descriptors"),global=require("../internals/global"),has=require("../internals/has"),isObject=require("../internals/is-object"),defineProperty=require("../internals/object-define-property").f,copyConstructorProperties=require("../internals/copy-constructor-properties"),NativeSymbol=global.Symbol;if(DESCRIPTORS&&"function"==typeof NativeSymbol&&(!("description"in NativeSymbol.prototype)||void 0!==NativeSymbol().description)){var EmptyStringDescriptionStore={},SymbolWrapper=function(){var r=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof SymbolWrapper?new NativeSymbol(r):void 0===r?NativeSymbol():NativeSymbol(r);return""===r&&(EmptyStringDescriptionStore[e]=!0),e};copyConstructorProperties(SymbolWrapper,NativeSymbol);var symbolPrototype=SymbolWrapper.prototype=NativeSymbol.prototype;symbolPrototype.constructor=SymbolWrapper;var symbolToString=symbolPrototype.toString,native="Symbol(test)"==String(NativeSymbol("test")),regexp=/^Symbol\((.*)\)[^)]+$/;defineProperty(symbolPrototype,"description",{configurable:!0,get:function(){var r=isObject(this)?this.valueOf():this,e=symbolToString.call(r);if(has(EmptyStringDescriptionStore,r))return"";var t=native?e.slice(7,-1):e.replace(regexp,"$1");return""===t?void 0:t}}),$({global:!0,forced:!0},{Symbol:SymbolWrapper})}
},{"../internals/copy-constructor-properties":48,"../internals/descriptors":57,"../internals/export":64,"../internals/global":71,"../internals/has":72,"../internals/is-object":85,"../internals/object-define-property":101}],185:[function(require,module,exports){
var defineWellKnownSymbol=require("../internals/define-well-known-symbol");defineWellKnownSymbol("iterator");
},{"../internals/define-well-known-symbol":56}],186:[function(require,module,exports){
"use strict";var $=require("../internals/export"),global=require("../internals/global"),getBuiltIn=require("../internals/get-built-in"),IS_PURE=require("../internals/is-pure"),DESCRIPTORS=require("../internals/descriptors"),NATIVE_SYMBOL=require("../internals/native-symbol"),USE_SYMBOL_AS_UID=require("../internals/use-symbol-as-uid"),fails=require("../internals/fails"),has=require("../internals/has"),isArray=require("../internals/is-array"),isObject=require("../internals/is-object"),anObject=require("../internals/an-object"),toObject=require("../internals/to-object"),toIndexedObject=require("../internals/to-indexed-object"),toPrimitive=require("../internals/to-primitive"),createPropertyDescriptor=require("../internals/create-property-descriptor"),nativeObjectCreate=require("../internals/object-create"),objectKeys=require("../internals/object-keys"),getOwnPropertyNamesModule=require("../internals/object-get-own-property-names"),getOwnPropertyNamesExternal=require("../internals/object-get-own-property-names-external"),getOwnPropertySymbolsModule=require("../internals/object-get-own-property-symbols"),getOwnPropertyDescriptorModule=require("../internals/object-get-own-property-descriptor"),definePropertyModule=require("../internals/object-define-property"),propertyIsEnumerableModule=require("../internals/object-property-is-enumerable"),createNonEnumerableProperty=require("../internals/create-non-enumerable-property"),redefine=require("../internals/redefine"),shared=require("../internals/shared"),sharedKey=require("../internals/shared-key"),hiddenKeys=require("../internals/hidden-keys"),uid=require("../internals/uid"),wellKnownSymbol=require("../internals/well-known-symbol"),wrappedWellKnownSymbolModule=require("../internals/well-known-symbol-wrapped"),defineWellKnownSymbol=require("../internals/define-well-known-symbol"),setToStringTag=require("../internals/set-to-string-tag"),InternalStateModule=require("../internals/internal-state"),$forEach=require("../internals/array-iteration").forEach,HIDDEN=sharedKey("hidden"),SYMBOL="Symbol",PROTOTYPE="prototype",TO_PRIMITIVE=wellKnownSymbol("toPrimitive"),setInternalState=InternalStateModule.set,getInternalState=InternalStateModule.getterFor(SYMBOL),ObjectPrototype=Object[PROTOTYPE],$Symbol=global.Symbol,$stringify=getBuiltIn("JSON","stringify"),nativeGetOwnPropertyDescriptor=getOwnPropertyDescriptorModule.f,nativeDefineProperty=definePropertyModule.f,nativeGetOwnPropertyNames=getOwnPropertyNamesExternal.f,nativePropertyIsEnumerable=propertyIsEnumerableModule.f,AllSymbols=shared("symbols"),ObjectPrototypeSymbols=shared("op-symbols"),StringToSymbolRegistry=shared("string-to-symbol-registry"),SymbolToStringRegistry=shared("symbol-to-string-registry"),WellKnownSymbolsStore=shared("wks"),QObject=global.QObject,USE_SETTER=!QObject||!QObject[PROTOTYPE]||!QObject[PROTOTYPE].findChild,setSymbolDescriptor=DESCRIPTORS&&fails(function(){return 7!=nativeObjectCreate(nativeDefineProperty({},"a",{get:function(){return nativeDefineProperty(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=nativeGetOwnPropertyDescriptor(ObjectPrototype,t);n&&delete ObjectPrototype[t],nativeDefineProperty(e,t,r),n&&e!==ObjectPrototype&&nativeDefineProperty(ObjectPrototype,t,n)}:nativeDefineProperty,wrap=function(e,t){var r=AllSymbols[e]=nativeObjectCreate($Symbol[PROTOTYPE]);return setInternalState(r,{type:SYMBOL,tag:e,description:t}),DESCRIPTORS||(r.description=t),r},isSymbol=USE_SYMBOL_AS_UID?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof $Symbol},$defineProperty=function(e,t,r){e===ObjectPrototype&&$defineProperty(ObjectPrototypeSymbols,t,r),anObject(e);var n=toPrimitive(t,!0);return anObject(r),has(AllSymbols,n)?(r.enumerable?(has(e,HIDDEN)&&e[HIDDEN][n]&&(e[HIDDEN][n]=!1),r=nativeObjectCreate(r,{enumerable:createPropertyDescriptor(0,!1)})):(has(e,HIDDEN)||nativeDefineProperty(e,HIDDEN,createPropertyDescriptor(1,{})),e[HIDDEN][n]=!0),setSymbolDescriptor(e,n,r)):nativeDefineProperty(e,n,r)},$defineProperties=function(e,t){anObject(e);var r=toIndexedObject(t),n=objectKeys(r).concat($getOwnPropertySymbols(r));return $forEach(n,function(t){DESCRIPTORS&&!$propertyIsEnumerable.call(r,t)||$defineProperty(e,t,r[t])}),e},$create=function(e,t){return void 0===t?nativeObjectCreate(e):$defineProperties(nativeObjectCreate(e),t)},$propertyIsEnumerable=function(e){var t=toPrimitive(e,!0),r=nativePropertyIsEnumerable.call(this,t);return!(this===ObjectPrototype&&has(AllSymbols,t)&&!has(ObjectPrototypeSymbols,t))&&(!(r||!has(this,t)||!has(AllSymbols,t)||has(this,HIDDEN)&&this[HIDDEN][t])||r)},$getOwnPropertyDescriptor=function(e,t){var r=toIndexedObject(e),n=toPrimitive(t,!0);if(r!==ObjectPrototype||!has(AllSymbols,n)||has(ObjectPrototypeSymbols,n)){var o=nativeGetOwnPropertyDescriptor(r,n);return!o||!has(AllSymbols,n)||has(r,HIDDEN)&&r[HIDDEN][n]||(o.enumerable=!0),o}},$getOwnPropertyNames=function(e){var t=nativeGetOwnPropertyNames(toIndexedObject(e)),r=[];return $forEach(t,function(e){has(AllSymbols,e)||has(hiddenKeys,e)||r.push(e)}),r},$getOwnPropertySymbols=function(e){var t=e===ObjectPrototype,r=nativeGetOwnPropertyNames(t?ObjectPrototypeSymbols:toIndexedObject(e)),n=[];return $forEach(r,function(e){!has(AllSymbols,e)||t&&!has(ObjectPrototype,e)||n.push(AllSymbols[e])}),n};if(NATIVE_SYMBOL||(redefine(($Symbol=function(){if(this instanceof $Symbol)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=uid(e),r=function(e){this===ObjectPrototype&&r.call(ObjectPrototypeSymbols,e),has(this,HIDDEN)&&has(this[HIDDEN],t)&&(this[HIDDEN][t]=!1),setSymbolDescriptor(this,t,createPropertyDescriptor(1,e))};return DESCRIPTORS&&USE_SETTER&&setSymbolDescriptor(ObjectPrototype,t,{configurable:!0,set:r}),wrap(t,e)})[PROTOTYPE],"toString",function(){return getInternalState(this).tag}),redefine($Symbol,"withoutSetter",function(e){return wrap(uid(e),e)}),propertyIsEnumerableModule.f=$propertyIsEnumerable,definePropertyModule.f=$defineProperty,getOwnPropertyDescriptorModule.f=$getOwnPropertyDescriptor,getOwnPropertyNamesModule.f=getOwnPropertyNamesExternal.f=$getOwnPropertyNames,getOwnPropertySymbolsModule.f=$getOwnPropertySymbols,wrappedWellKnownSymbolModule.f=function(e){return wrap(wellKnownSymbol(e),e)},DESCRIPTORS&&(nativeDefineProperty($Symbol[PROTOTYPE],"description",{configurable:!0,get:function(){return getInternalState(this).description}}),IS_PURE||redefine(ObjectPrototype,"propertyIsEnumerable",$propertyIsEnumerable,{unsafe:!0}))),$({global:!0,wrap:!0,forced:!NATIVE_SYMBOL,sham:!NATIVE_SYMBOL},{Symbol:$Symbol}),$forEach(objectKeys(WellKnownSymbolsStore),function(e){defineWellKnownSymbol(e)}),$({target:SYMBOL,stat:!0,forced:!NATIVE_SYMBOL},{for:function(e){var t=String(e);if(has(StringToSymbolRegistry,t))return StringToSymbolRegistry[t];var r=$Symbol(t);return StringToSymbolRegistry[t]=r,SymbolToStringRegistry[r]=t,r},keyFor:function(e){if(!isSymbol(e))throw TypeError(e+" is not a symbol");if(has(SymbolToStringRegistry,e))return SymbolToStringRegistry[e]},useSetter:function(){USE_SETTER=!0},useSimple:function(){USE_SETTER=!1}}),$({target:"Object",stat:!0,forced:!NATIVE_SYMBOL,sham:!DESCRIPTORS},{create:$create,defineProperty:$defineProperty,defineProperties:$defineProperties,getOwnPropertyDescriptor:$getOwnPropertyDescriptor}),$({target:"Object",stat:!0,forced:!NATIVE_SYMBOL},{getOwnPropertyNames:$getOwnPropertyNames,getOwnPropertySymbols:$getOwnPropertySymbols}),$({target:"Object",stat:!0,forced:fails(function(){getOwnPropertySymbolsModule.f(1)})},{getOwnPropertySymbols:function(e){return getOwnPropertySymbolsModule.f(toObject(e))}}),$stringify){var FORCED_JSON_STRINGIFY=!NATIVE_SYMBOL||fails(function(){var e=$Symbol();return"[null]"!=$stringify([e])||"{}"!=$stringify({a:e})||"{}"!=$stringify(Object(e))});$({target:"JSON",stat:!0,forced:FORCED_JSON_STRINGIFY},{stringify:function(e,t,r){for(var n,o=[e],i=1;arguments.length>i;)o.push(arguments[i++]);if(n=t,(isObject(t)||void 0!==e)&&!isSymbol(e))return isArray(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!isSymbol(t))return t}),o[1]=t,$stringify.apply(null,o)}})}$Symbol[PROTOTYPE][TO_PRIMITIVE]||createNonEnumerableProperty($Symbol[PROTOTYPE],TO_PRIMITIVE,$Symbol[PROTOTYPE].valueOf),setToStringTag($Symbol,SYMBOL),hiddenKeys[HIDDEN]=!0;
},{"../internals/an-object":31,"../internals/array-iteration":36,"../internals/create-non-enumerable-property":52,"../internals/create-property-descriptor":53,"../internals/define-well-known-symbol":56,"../internals/descriptors":57,"../internals/export":64,"../internals/fails":65,"../internals/get-built-in":69,"../internals/global":71,"../internals/has":72,"../internals/hidden-keys":73,"../internals/internal-state":81,"../internals/is-array":83,"../internals/is-object":85,"../internals/is-pure":86,"../internals/native-symbol":93,"../internals/object-create":99,"../internals/object-define-property":101,"../internals/object-get-own-property-descriptor":102,"../internals/object-get-own-property-names":104,"../internals/object-get-own-property-names-external":103,"../internals/object-get-own-property-symbols":105,"../internals/object-keys":108,"../internals/object-property-is-enumerable":109,"../internals/redefine":117,"../internals/set-to-string-tag":125,"../internals/shared":128,"../internals/shared-key":126,"../internals/to-indexed-object":135,"../internals/to-object":138,"../internals/to-primitive":139,"../internals/uid":141,"../internals/use-symbol-as-uid":142,"../internals/well-known-symbol":144,"../internals/well-known-symbol-wrapped":143}],187:[function(require,module,exports){
var global=require("../internals/global"),DOMIterables=require("../internals/dom-iterables"),forEach=require("../internals/array-for-each"),createNonEnumerableProperty=require("../internals/create-non-enumerable-property");for(var COLLECTION_NAME in DOMIterables){var Collection=global[COLLECTION_NAME],CollectionPrototype=Collection&&Collection.prototype;if(CollectionPrototype&&CollectionPrototype.forEach!==forEach)try{createNonEnumerableProperty(CollectionPrototype,"forEach",forEach)}catch(e){CollectionPrototype.forEach=forEach}}
},{"../internals/array-for-each":33,"../internals/create-non-enumerable-property":52,"../internals/dom-iterables":59,"../internals/global":71}],188:[function(require,module,exports){
var global=require("../internals/global"),DOMIterables=require("../internals/dom-iterables"),ArrayIteratorMethods=require("../modules/es.array.iterator"),createNonEnumerableProperty=require("../internals/create-non-enumerable-property"),wellKnownSymbol=require("../internals/well-known-symbol"),ITERATOR=wellKnownSymbol("iterator"),TO_STRING_TAG=wellKnownSymbol("toStringTag"),ArrayValues=ArrayIteratorMethods.values;for(var COLLECTION_NAME in DOMIterables){var Collection=global[COLLECTION_NAME],CollectionPrototype=Collection&&Collection.prototype;if(CollectionPrototype){if(CollectionPrototype[ITERATOR]!==ArrayValues)try{createNonEnumerableProperty(CollectionPrototype,ITERATOR,ArrayValues)}catch(e){CollectionPrototype[ITERATOR]=ArrayValues}if(CollectionPrototype[TO_STRING_TAG]||createNonEnumerableProperty(CollectionPrototype,TO_STRING_TAG,COLLECTION_NAME),DOMIterables[COLLECTION_NAME])for(var METHOD_NAME in ArrayIteratorMethods)if(CollectionPrototype[METHOD_NAME]!==ArrayIteratorMethods[METHOD_NAME])try{createNonEnumerableProperty(CollectionPrototype,METHOD_NAME,ArrayIteratorMethods[METHOD_NAME])}catch(e){CollectionPrototype[METHOD_NAME]=ArrayIteratorMethods[METHOD_NAME]}}}
},{"../internals/create-non-enumerable-property":52,"../internals/dom-iterables":59,"../internals/global":71,"../internals/well-known-symbol":144,"../modules/es.array.iterator":154}],189:[function(require,module,exports){
module.exports={"align-content":"stretch","align-items":"stretch","align-self":"auto","animation-delay":"0s","animation-direction":"normal","animation-duration":"0s","animation-fill-mode":"none","animation-iteration-count":"1","animation-name":"none","animation-play-state":"running","animation-timing-function":"ease",azimuth:"center","backface-visibility":"visible","background-attachment":"scroll","background-blend-mode":"normal","background-clip":"border-box","background-color":"transparent","background-image":"none","background-origin":"padding-box","background-position":"0% 0%","background-repeat":"repeat","background-size":"auto auto","block-size":"auto","border-block-end-color":"currentcolor","border-block-end-style":"none","border-block-end-width":"medium","border-block-start-color":"currentcolor","border-block-start-style":"none","border-block-start-width":"medium","border-bottom-color":"currentcolor","border-bottom-left-radius":"0","border-bottom-right-radius":"0","border-bottom-style":"none","border-bottom-width":"medium","border-collapse":"separate","border-image-outset":"0s","border-image-repeat":"stretch","border-image-slice":"100%","border-image-source":"none","border-image-width":"1","border-inline-end-color":"currentcolor","border-inline-end-style":"none","border-inline-end-width":"medium","border-inline-start-color":"currentcolor","border-inline-start-style":"none","border-inline-start-width":"medium","border-left-color":"currentcolor","border-left-style":"none","border-left-width":"medium","border-right-color":"currentcolor","border-right-style":"none","border-right-width":"medium","border-spacing":"0","border-top-color":"currentcolor","border-top-left-radius":"0","border-top-right-radius":"0","border-top-style":"none","border-top-width":"medium",bottom:"auto","box-decoration-break":"slice","box-shadow":"none","box-sizing":"content-box","break-after":"auto","break-before":"auto","break-inside":"auto","caption-side":"top","caret-color":"auto",clear:"none",clip:"auto","clip-path":"none",color:"initial","column-count":"auto","column-fill":"balance","column-gap":"normal","column-rule-color":"currentcolor","column-rule-style":"none","column-rule-width":"medium","column-span":"none","column-width":"auto",content:"normal","counter-increment":"none","counter-reset":"none",cursor:"auto",display:"inline","empty-cells":"show",filter:"none","flex-basis":"auto","flex-direction":"row","flex-grow":"0","flex-shrink":"1","flex-wrap":"nowrap",float:"none","font-family":"initial","font-feature-settings":"normal","font-kerning":"auto","font-language-override":"normal","font-size":"medium","font-size-adjust":"none","font-stretch":"normal","font-style":"normal","font-synthesis":"weight style","font-variant":"normal","font-variant-alternates":"normal","font-variant-caps":"normal","font-variant-east-asian":"normal","font-variant-ligatures":"normal","font-variant-numeric":"normal","font-variant-position":"normal","font-weight":"normal","grid-auto-columns":"auto","grid-auto-flow":"row","grid-auto-rows":"auto","grid-column-end":"auto","grid-column-gap":"0","grid-column-start":"auto","grid-row-end":"auto","grid-row-gap":"0","grid-row-start":"auto","grid-template-areas":"none","grid-template-columns":"none","grid-template-rows":"none",height:"auto",hyphens:"manual","image-orientation":"0deg","image-rendering":"auto","image-resolution":"1dppx","ime-mode":"auto","inline-size":"auto",isolation:"auto","justify-content":"flex-start",left:"auto","letter-spacing":"normal","line-break":"auto","line-height":"normal","list-style-image":"none","list-style-position":"outside","list-style-type":"disc","margin-block-end":"0","margin-block-start":"0","margin-bottom":"0","margin-inline-end":"0","margin-inline-start":"0","margin-left":"0","margin-right":"0","margin-top":"0","mask-clip":"border-box","mask-composite":"add","mask-image":"none","mask-mode":"match-source","mask-origin":"border-box","mask-position":"0% 0%","mask-repeat":"repeat","mask-size":"auto","mask-type":"luminance","max-height":"none","max-width":"none","min-block-size":"0","min-height":"0","min-inline-size":"0","min-width":"0","mix-blend-mode":"normal","object-fit":"fill","object-position":"50% 50%","offset-block-end":"auto","offset-block-start":"auto","offset-inline-end":"auto","offset-inline-start":"auto",opacity:"1.0",order:"0",orphans:"2","outline-color":"initial","outline-offset":"0","outline-style":"none","outline-width":"medium",overflow:"visible","overflow-wrap":"normal","overflow-x":"visible","overflow-y":"visible","padding-block-end":"0","padding-block-start":"0","padding-bottom":"0","padding-inline-end":"0","padding-inline-start":"0","padding-left":"0","padding-right":"0","padding-top":"0","page-break-after":"auto","page-break-before":"auto","page-break-inside":"auto",perspective:"none","perspective-origin":"50% 50%","pointer-events":"auto",position:"static",quotes:"initial",resize:"none",right:"auto","ruby-align":"space-around","ruby-merge":"separate","ruby-position":"over","scroll-behavior":"auto","scroll-snap-coordinate":"none","scroll-snap-destination":"0px 0px","scroll-snap-points-x":"none","scroll-snap-points-y":"none","scroll-snap-type":"none","shape-image-threshold":"0.0","shape-margin":"0","shape-outside":"none","tab-size":"8","table-layout":"auto","text-align":"initial","text-align-last":"auto","text-combine-upright":"none","text-decoration-color":"currentcolor","text-decoration-line":"none","text-decoration-style":"solid","text-emphasis-color":"currentcolor","text-emphasis-position":"over right","text-emphasis-style":"none","text-indent":"0","text-justify":"auto","text-orientation":"mixed","text-overflow":"clip","text-rendering":"auto","text-shadow":"none","text-transform":"none","text-underline-position":"auto",top:"auto","touch-action":"auto",transform:"none","transform-box":"border-box ","transform-origin":"50% 50% 0","transform-style":"flat","transition-delay":"0s","transition-duration":"0s","transition-property":"all","transition-timing-function":"ease","vertical-align":"baseline",visibility:"visible","white-space":"normal",widows:"2",width:"auto","will-change":"auto","word-break":"normal","word-spacing":"normal","word-wrap":"normal","writing-mode":"horizontal-tb","z-index":"auto","-webkit-appearance":"none","-moz-appearance":"none","-ms-appearance":"none",appearance:"none"};
},{}],190:[function(require,module,exports){
module.exports=require("./all");
},{"./all":189}],191:[function(require,module,exports){
!function(A,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(A=A||self).html2canvas=e()}(this,function(){"use strict";var A=function(e,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)e.hasOwnProperty(t)&&(A[t]=e[t])})(e,t)};function e(e,t){function r(){this.constructor=e}A(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var t=function(){return(t=Object.assign||function(A){for(var e,t=1,r=arguments.length;t<r;t++)for(var n in e=arguments[t])Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n]);return A}).apply(this,arguments)};function r(A,e,t,r){return new(t||(t=Promise))(function(n,B){function s(A){try{i(r.next(A))}catch(A){B(A)}}function o(A){try{i(r.throw(A))}catch(A){B(A)}}function i(A){A.done?n(A.value):new t(function(e){e(A.value)}).then(s,o)}i((r=r.apply(A,e||[])).next())})}function n(A,e){var t,r,n,B,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return B={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(B[Symbol.iterator]=function(){return this}),B;function o(B){return function(o){return function(B){if(t)throw new TypeError("Generator is already executing.");for(;s;)try{if(t=1,r&&(n=2&B[0]?r.return:B[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,B[1])).done)return n;switch(r=0,n&&(B=[2&B[0],n.value]),B[0]){case 0:case 1:n=B;break;case 4:return s.label++,{value:B[1],done:!1};case 5:s.label++,r=B[1],B=[0];continue;case 7:B=s.ops.pop(),s.trys.pop();continue;default:if(!(n=(n=s.trys).length>0&&n[n.length-1])&&(6===B[0]||2===B[0])){s=0;continue}if(3===B[0]&&(!n||B[1]>n[0]&&B[1]<n[3])){s.label=B[1];break}if(6===B[0]&&s.label<n[1]){s.label=n[1],n=B;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(B);break}n[2]&&s.ops.pop(),s.trys.pop();continue}B=e.call(A,s)}catch(A){B=[6,A],r=0}finally{t=n=0}if(5&B[0])throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}([B,o])}}}for(var B=function(){function A(A,e,t,r){this.left=A,this.top=e,this.width=t,this.height=r}return A.prototype.add=function(e,t,r,n){return new A(this.left+e,this.top+t,this.width+r,this.height+n)},A.fromClientRect=function(e){return new A(e.left,e.top,e.width,e.height)},A}(),s=function(A){return B.fromClientRect(A.getBoundingClientRect())},o=function(A){for(var e=[],t=0,r=A.length;t<r;){var n=A.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){var B=A.charCodeAt(t++);56320==(64512&B)?e.push(((1023&n)<<10)+(1023&B)+65536):(e.push(n),t--)}else e.push(n)}return e},i=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var r=[],n=-1,B="";++n<t;){var s=A[n];s<=65535?r.push(s):(s-=65536,r.push(55296+(s>>10),s%1024+56320)),(n+1===t||r.length>16384)&&(B+=String.fromCharCode.apply(String,r),r.length=0)}return B},a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Q=0;Q<a.length;Q++)c[a.charCodeAt(Q)]=Q;var u,w=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},U=function(){function A(A,e,t,r,n,B){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=r,this.index=n,this.data=B}return A.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=((e=this.index[A>>5])<<2)+(31&A),this.data[e];if(A<=65535)return e=((e=this.index[2048+(A-55296>>5)])<<2)+(31&A),this.data[e];if(A<this.highStart)return e=2080+(A>>11),e=this.index[e],e+=A>>5&63,e=((e=this.index[e])<<2)+(31&A),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),l=10,C=13,g=15,E=17,F=18,h=19,H=20,d=21,f=22,p=24,N=25,K=26,I=27,T=28,m=30,R=32,L=33,O=34,v=35,D=37,b=38,S=39,M=40,y=42,_="!",P=function(A){var e,t,r,n=function(A){var e,t,r,n,B,s=.75*A.length,o=A.length,i=0;"="===A[A.length-1]&&(s--,"="===A[A.length-2]&&s--);var a="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(s):new Array(s),Q=Array.isArray(a)?a:new Uint8Array(a);for(e=0;e<o;e+=4)t=c[A.charCodeAt(e)],r=c[A.charCodeAt(e+1)],n=c[A.charCodeAt(e+2)],B=c[A.charCodeAt(e+3)],Q[i++]=t<<2|r>>4,Q[i++]=(15&r)<<4|n>>2,Q[i++]=(3&n)<<6|63&B;return a}(A),B=Array.isArray(n)?function(A){for(var e=A.length,t=[],r=0;r<e;r+=4)t.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r]);return t}(n):new Uint32Array(n),s=Array.isArray(n)?function(A){for(var e=A.length,t=[],r=0;r<e;r+=2)t.push(A[r+1]<<8|A[r]);return t}(n):new Uint16Array(n),o=w(s,12,B[4]/2),i=2===B[5]?w(s,(24+B[4])/2):(e=B,t=Math.ceil((24+B[4])/4),e.slice?e.slice(t,r):new Uint32Array(Array.prototype.slice.call(e,t,r)));return new U(B[0],B[1],B[2],B[3],o,i)}("KwAAAAAAAAAACA4AIDoAAPAfAAACAAAAAAAIABAAGABAAEgAUABYAF4AZgBeAGYAYABoAHAAeABeAGYAfACEAIAAiACQAJgAoACoAK0AtQC9AMUAXgBmAF4AZgBeAGYAzQDVAF4AZgDRANkA3gDmAOwA9AD8AAQBDAEUARoBIgGAAIgAJwEvATcBPwFFAU0BTAFUAVwBZAFsAXMBewGDATAAiwGTAZsBogGkAawBtAG8AcIBygHSAdoB4AHoAfAB+AH+AQYCDgIWAv4BHgImAi4CNgI+AkUCTQJTAlsCYwJrAnECeQKBAk0CiQKRApkCoQKoArACuALAAsQCzAIwANQC3ALkAjAA7AL0AvwCAQMJAxADGAMwACADJgMuAzYDPgOAAEYDSgNSA1IDUgNaA1oDYANiA2IDgACAAGoDgAByA3YDfgOAAIQDgACKA5IDmgOAAIAAogOqA4AAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAK8DtwOAAIAAvwPHA88D1wPfAyAD5wPsA/QD/AOAAIAABAQMBBIEgAAWBB4EJgQuBDMEIAM7BEEEXgBJBCADUQRZBGEEaQQwADAAcQQ+AXkEgQSJBJEEgACYBIAAoASoBK8EtwQwAL8ExQSAAIAAgACAAIAAgACgAM0EXgBeAF4AXgBeAF4AXgBeANUEXgDZBOEEXgDpBPEE+QQBBQkFEQUZBSEFKQUxBTUFPQVFBUwFVAVcBV4AYwVeAGsFcwV7BYMFiwWSBV4AmgWgBacFXgBeAF4AXgBeAKsFXgCyBbEFugW7BcIFwgXIBcIFwgXQBdQF3AXkBesF8wX7BQMGCwYTBhsGIwYrBjMGOwZeAD8GRwZNBl4AVAZbBl4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAGMGXgBqBnEGXgBeAF4AXgBeAF4AXgBeAF4AXgB5BoAG4wSGBo4GkwaAAIADHgR5AF4AXgBeAJsGgABGA4AAowarBrMGswagALsGwwbLBjAA0wbaBtoG3QbaBtoG2gbaBtoG2gblBusG8wb7BgMHCwcTBxsHCwcjBysHMAc1BzUHOgdCB9oGSgdSB1oHYAfaBloHaAfaBlIH2gbaBtoG2gbaBtoG2gbaBjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHbQdeAF4ANQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQd1B30HNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B4MH2gaKB68EgACAAIAAgACAAIAAgACAAI8HlwdeAJ8HpweAAIAArwe3B14AXgC/B8UHygcwANAH2AfgB4AA6AfwBz4B+AcACFwBCAgPCBcIogEYAR8IJwiAAC8INwg/CCADRwhPCFcIXwhnCEoDGgSAAIAAgABvCHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIhAiLCI4IMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAANQc1BzUHNQc1BzUHNQc1BzUHNQc1B54INQc1B6II2gaqCLIIugiAAIAAvgjGCIAAgACAAIAAgACAAIAAgACAAIAAywiHAYAA0wiAANkI3QjlCO0I9Aj8CIAAgACAAAIJCgkSCRoJIgknCTYHLwk3CZYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiAAIAAAAFAAXgBeAGAAcABeAHwAQACQAKAArQC9AJ4AXgBeAE0A3gBRAN4A7AD8AMwBGgEAAKcBNwEFAUwBXAF4QkhCmEKnArcCgAHHAsABz4LAAcABwAHAAd+C6ABoAG+C/4LAAcABwAHAAc+DF4MAAcAB54M3gweDV4Nng3eDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEeDqABVg6WDqABoQ6gAaABoAHXDvcONw/3DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DncPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB7cPPwlGCU4JMACAAIAAgABWCV4JYQmAAGkJcAl4CXwJgAkwADAAMAAwAIgJgACLCZMJgACZCZ8JowmrCYAAswkwAF4AXgB8AIAAuwkABMMJyQmAAM4JgADVCTAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAqwYWBNkIMAAwADAAMADdCeAJ6AnuCR4E9gkwAP4JBQoNCjAAMACAABUK0wiAAB0KJAosCjQKgAAwADwKQwqAAEsKvQmdCVMKWwowADAAgACAALcEMACAAGMKgABrCjAAMAAwADAAMAAwADAAMAAwADAAMAAeBDAAMAAwADAAMAAwADAAMAAwADAAMAAwAIkEPQFzCnoKiQSCCooKkAqJBJgKoAqkCokEGAGsCrQKvArBCjAAMADJCtEKFQHZCuEK/gHpCvEKMAAwADAAMACAAIwE+QowAIAAPwEBCzAAMAAwADAAMACAAAkLEQswAIAAPwEZCyELgAAOCCkLMAAxCzkLMAAwADAAMAAwADAAXgBeAEELMAAwADAAMAAwADAAMAAwAEkLTQtVC4AAXAtkC4AAiQkwADAAMAAwADAAMAAwADAAbAtxC3kLgAuFC4sLMAAwAJMLlwufCzAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAApwswADAAMACAAIAAgACvC4AAgACAAIAAgACAALcLMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAvwuAAMcLgACAAIAAgACAAIAAyguAAIAAgACAAIAA0QswADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAANkLgACAAIAA4AswADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACJCR4E6AswADAAhwHwC4AA+AsADAgMEAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMACAAIAAGAwdDCUMMAAwAC0MNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQw1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHPQwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADUHNQc1BzUHNQc1BzUHNQc2BzAAMAA5DDUHNQc1BzUHNQc1BzUHNQc1BzUHNQdFDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAATQxSDFoMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAF4AXgBeAF4AXgBeAF4AYgxeAGoMXgBxDHkMfwxeAIUMXgBeAI0MMAAwADAAMAAwAF4AXgCVDJ0MMAAwADAAMABeAF4ApQxeAKsMswy7DF4Awgy9DMoMXgBeAF4AXgBeAF4AXgBeAF4AXgDRDNkMeQBqCeAM3Ax8AOYM7Az0DPgMXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgCgAAANoAAHDQ4NFg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAeDSYNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAC4NMABeAF4ANg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAD4NRg1ODVYNXg1mDTAAbQ0wADAAMAAwADAAMAAwADAA2gbaBtoG2gbaBtoG2gbaBnUNeg3CBYANwgWFDdoGjA3aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gaUDZwNpA2oDdoG2gawDbcNvw3HDdoG2gbPDdYN3A3fDeYN2gbsDfMN2gbaBvoN/g3aBgYODg7aBl4AXgBeABYOXgBeACUG2gYeDl4AJA5eACwO2w3aBtoGMQ45DtoG2gbaBtoGQQ7aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B1EO2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQdZDjUHNQc1BzUHNQc1B2EONQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHaA41BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B3AO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B2EO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBkkOeA6gAKAAoAAwADAAMAAwAKAAoACgAKAAoACgAKAAgA4wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAD//wQABAAEAAQABAAEAAQABAAEAA0AAwABAAEAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAKABMAFwAeABsAGgAeABcAFgASAB4AGwAYAA8AGAAcAEsASwBLAEsASwBLAEsASwBLAEsAGAAYAB4AHgAeABMAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAFgAbABIAHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYADQARAB4ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkAFgAaABsAGwAbAB4AHQAdAB4ATwAXAB4ADQAeAB4AGgAbAE8ATwAOAFAAHQAdAB0ATwBPABcATwBPAE8AFgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwArAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAAQABAANAA0ASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAUAArACsAKwArACsAKwArACsABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAGgAaAFAAUABQAFAAUABMAB4AGwBQAB4AKwArACsABAAEAAQAKwBQAFAAUABQAFAAUAArACsAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUAArAFAAUAArACsABAArAAQABAAEAAQABAArACsAKwArAAQABAArACsABAAEAAQAKwArACsABAArACsAKwArACsAKwArAFAAUABQAFAAKwBQACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwAEAAQAUABQAFAABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQAKwArAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeABsAKwArACsAKwArACsAKwBQAAQABAAEAAQABAAEACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAKwArACsAKwArACsAKwArAAQABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwAEAFAAKwBQAFAAUABQAFAAUAArACsAKwBQAFAAUAArAFAAUABQAFAAKwArACsAUABQACsAUAArAFAAUAArACsAKwBQAFAAKwArACsAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQAKwArACsABAAEAAQAKwAEAAQABAAEACsAKwBQACsAKwArACsAKwArAAQAKwArACsAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAB4AHgAeAB4AHgAeABsAHgArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArAFAAUABQACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAB4AUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArACsAKwArACsAKwArAFAAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwArAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAKwBcAFwAKwBcACsAKwBcACsAKwArACsAKwArAFwAXABcAFwAKwBcAFwAXABcAFwAXABcACsAXABcAFwAKwBcACsAXAArACsAXABcACsAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgArACoAKgBcACsAKwBcAFwAXABcAFwAKwBcACsAKgAqACoAKgAqACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAFwAXABcAFwAUAAOAA4ADgAOAB4ADgAOAAkADgAOAA0ACQATABMAEwATABMACQAeABMAHgAeAB4ABAAEAB4AHgAeAB4AHgAeAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUAANAAQAHgAEAB4ABAAWABEAFgARAAQABABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAAQABAAEAAQABAANAAQABABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsADQANAB4AHgAeAB4AHgAeAAQAHgAeAB4AHgAeAB4AKwAeAB4ADgAOAA0ADgAeAB4AHgAeAB4ACQAJACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgAeAB4AHgBcAFwAXABcAFwAXAAqACoAKgAqAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAKgAqACoAKgAqACoAKgBcAFwAXAAqACoAKgAqAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAXAAqAEsASwBLAEsASwBLAEsASwBLAEsAKgAqACoAKgAqACoAUABQAFAAUABQAFAAKwBQACsAKwArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQACsAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwAEAAQABAAeAA0AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAEQArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAADQANAA0AUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAA0ADQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoADQANABUAXAANAB4ADQAbAFwAKgArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAB4AHgATABMADQANAA4AHgATABMAHgAEAAQABAAJACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAUABQAFAAUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwAeACsAKwArABMAEwBLAEsASwBLAEsASwBLAEsASwBLAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwBcAFwAXABcAFwAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcACsAKwArACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwAeAB4AXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsABABLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKgAqACoAKgAqACoAKgBcACoAKgAqACoAKgAqACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAUABQAFAAUABQAFAAUAArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4ADQANAA0ADQAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAHgAeAB4AHgBQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwANAA0ADQANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwBQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsABAAEAAQAHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAABABQAFAAUABQAAQABAAEAFAAUAAEAAQABAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAKwBQACsAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAKwArAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAKwAeAB4AHgAeAB4AHgAeAA4AHgArAA0ADQANAA0ADQANAA0ACQANAA0ADQAIAAQACwAEAAQADQAJAA0ADQAMAB0AHQAeABcAFwAWABcAFwAXABYAFwAdAB0AHgAeABQAFAAUAA0AAQABAAQABAAEAAQABAAJABoAGgAaABoAGgAaABoAGgAeABcAFwAdABUAFQAeAB4AHgAeAB4AHgAYABYAEQAVABUAFQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgANAB4ADQANAA0ADQAeAA0ADQANAAcAHgAeAB4AHgArAAQABAAEAAQABAAEAAQABAAEAAQAUABQACsAKwBPAFAAUABQAFAAUAAeAB4AHgAWABEATwBQAE8ATwBPAE8AUABQAFAAUABQAB4AHgAeABYAEQArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGgAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgBQABoAHgAdAB4AUAAeABoAHgAeAB4AHgAeAB4AHgAeAB4ATwAeAFAAGwAeAB4AUABQAFAAUABQAB4AHgAeAB0AHQAeAFAAHgBQAB4AUAAeAFAATwBQAFAAHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AUABQAFAAUABPAE8AUABQAFAAUABQAE8AUABQAE8AUABPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAE8ATwBPAE8ATwBPAE8ATwBPAE8AUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAATwAeAB4AKwArACsAKwAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB0AHQAeAB4AHgAdAB0AHgAeAB0AHgAeAB4AHQAeAB0AGwAbAB4AHQAeAB4AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB0AHgAdAB4AHQAdAB0AHQAdAB0AHgAdAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAdAB0AHQAdAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAlACUAHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB0AHQAeAB4AHgAeAB0AHQAdAB4AHgAdAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB0AHQAeAB4AHQAeAB4AHgAeAB0AHQAeAB4AHgAeACUAJQAdAB0AJQAeACUAJQAlACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHQAdAB0AHgAdACUAHQAdAB4AHQAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHQAdAB0AHQAlAB4AJQAlACUAHQAlACUAHQAdAB0AJQAlAB0AHQAlAB0AHQAlACUAJQAeAB0AHgAeAB4AHgAdAB0AJQAdAB0AHQAdAB0AHQAlACUAJQAlACUAHQAlACUAIAAlAB0AHQAlACUAJQAlACUAJQAlACUAHgAeAB4AJQAlACAAIAAgACAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeABcAFwAXABcAFwAXAB4AEwATACUAHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACUAJQBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwArACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAE8ATwBPAE8ATwBPAE8ATwAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeACsAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUAArACsAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQBQAFAAUABQACsAKwArACsAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAABAAEAAQAKwAEAAQAKwArACsAKwArAAQABAAEAAQAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsABAAEAAQAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsADQANAA0ADQANAA0ADQANAB4AKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAUABQAFAAUABQAA0ADQANAA0ADQANABQAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwANAA0ADQANAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAeAAQABAAEAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLACsADQArAB4AKwArAAQABAAEAAQAUABQAB4AUAArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwAEAAQABAAEAAQABAAEAAQABAAOAA0ADQATABMAHgAeAB4ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0AUABQAFAAUAAEAAQAKwArAAQADQANAB4AUAArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXABcAA0ADQANACoASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUAArACsAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANACsADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEcARwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwAeAAQABAANAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAEAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUAArACsAUAArACsAUABQACsAKwBQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAeAB4ADQANAA0ADQAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAArAAQABAArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAEAAQABAAEAAQABAAEACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAFgAWAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAKwBQACsAKwArACsAKwArAFAAKwArACsAKwBQACsAUAArAFAAKwBQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQACsAUAArAFAAKwBQACsAUABQACsAUAArACsAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAUABQAFAAUAArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUAArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAlACUAJQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeACUAJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeACUAJQAlACUAJQAeACUAJQAlACUAJQAgACAAIAAlACUAIAAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIQAhACEAIQAhACUAJQAgACAAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAIAAlACUAJQAlACAAJQAgACAAIAAgACAAIAAgACAAIAAlACUAJQAgACUAJQAlACUAIAAgACAAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeACUAHgAlAB4AJQAlACUAJQAlACAAJQAlACUAJQAeACUAHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAIAAgACAAIAAgAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFwAXABcAFQAVABUAHgAeAB4AHgAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAlACAAIAAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsA"),x=[m,36],V=[1,2,3,5],z=[l,8],X=[I,K],J=V.concat(z),G=[b,S,M,O,v],k=[g,C],W=function(A,e,t,r){var n=r[t];if(Array.isArray(A)?-1!==A.indexOf(n):A===n)for(var B=t;B<=r.length;){if((i=r[++B])===e)return!0;if(i!==l)break}if(n===l)for(B=t;B>0;){var s=r[--B];if(Array.isArray(A)?-1!==A.indexOf(s):A===s)for(var o=t;o<=r.length;){var i;if((i=r[++o])===e)return!0;if(i!==l)break}if(s!==l)break}return!1},Y=function(A,e){for(var t=A;t>=0;){var r=e[t];if(r!==l)return r;t--}return 0},q=function(A,e,t,r,n){if(0===t[r])return"×";var B=r-1;if(Array.isArray(n)&&!0===n[B])return"×";var s=B-1,o=B+1,i=e[B],a=s>=0?e[s]:0,c=e[o];if(2===i&&3===c)return"×";if(-1!==V.indexOf(i))return _;if(-1!==V.indexOf(c))return"×";if(-1!==z.indexOf(c))return"×";if(8===Y(B,e))return"÷";if(11===P.get(A[B])&&(c===D||c===R||c===L))return"×";if(7===i||7===c)return"×";if(9===i)return"×";if(-1===[l,C,g].indexOf(i)&&9===c)return"×";if(-1!==[E,F,h,p,T].indexOf(c))return"×";if(Y(B,e)===f)return"×";if(W(23,f,B,e))return"×";if(W([E,F],d,B,e))return"×";if(W(12,12,B,e))return"×";if(i===l)return"÷";if(23===i||23===c)return"×";if(16===c||16===i)return"÷";if(-1!==[C,g,d].indexOf(c)||14===i)return"×";if(36===a&&-1!==k.indexOf(i))return"×";if(i===T&&36===c)return"×";if(c===H&&-1!==x.concat(H,h,N,D,R,L).indexOf(i))return"×";if(-1!==x.indexOf(c)&&i===N||-1!==x.indexOf(i)&&c===N)return"×";if(i===I&&-1!==[D,R,L].indexOf(c)||-1!==[D,R,L].indexOf(i)&&c===K)return"×";if(-1!==x.indexOf(i)&&-1!==X.indexOf(c)||-1!==X.indexOf(i)&&-1!==x.indexOf(c))return"×";if(-1!==[I,K].indexOf(i)&&(c===N||-1!==[f,g].indexOf(c)&&e[o+1]===N)||-1!==[f,g].indexOf(i)&&c===N||i===N&&-1!==[N,T,p].indexOf(c))return"×";if(-1!==[N,T,p,E,F].indexOf(c))for(var Q=B;Q>=0;){if((u=e[Q])===N)return"×";if(-1===[T,p].indexOf(u))break;Q--}if(-1!==[I,K].indexOf(c))for(Q=-1!==[E,F].indexOf(i)?s:B;Q>=0;){var u;if((u=e[Q])===N)return"×";if(-1===[T,p].indexOf(u))break;Q--}if(b===i&&-1!==[b,S,O,v].indexOf(c)||-1!==[S,O].indexOf(i)&&-1!==[S,M].indexOf(c)||-1!==[M,v].indexOf(i)&&c===M)return"×";if(-1!==G.indexOf(i)&&-1!==[H,K].indexOf(c)||-1!==G.indexOf(c)&&i===I)return"×";if(-1!==x.indexOf(i)&&-1!==x.indexOf(c))return"×";if(i===p&&-1!==x.indexOf(c))return"×";if(-1!==x.concat(N).indexOf(i)&&c===f||-1!==x.concat(N).indexOf(c)&&i===F)return"×";if(41===i&&41===c){for(var w=t[B],U=1;w>0&&41===e[--w];)U++;if(U%2!=0)return"×"}return i===R&&c===L?"×":"÷"},Z=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=function(A,e){void 0===e&&(e="strict");var t=[],r=[],n=[];return A.forEach(function(A,B){var s=P.get(A);if(s>50?(n.push(!0),s-=50):n.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(A))return r.push(B),t.push(16);if(4===s||11===s){if(0===B)return r.push(B),t.push(m);var o=t[B-1];return-1===J.indexOf(o)?(r.push(r[B-1]),t.push(o)):(r.push(B),t.push(m))}return r.push(B),31===s?t.push("strict"===e?d:D):s===y?t.push(m):29===s?t.push(m):43===s?A>=131072&&A<=196605||A>=196608&&A<=262141?t.push(D):t.push(m):void t.push(s)}),[r,t,n]}(A,e.lineBreak),r=t[0],n=t[1],B=t[2];return"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(n=n.map(function(A){return-1!==[N,m,y].indexOf(A)?D:A})),[r,n,"keep-all"===e.wordBreak?B.map(function(e,t){return e&&A[t]>=19968&&A[t]<=40959}):void 0]},j=function(){function A(A,e,t,r){this.codePoints=A,this.required=e===_,this.start=t,this.end=r}return A.prototype.slice=function(){return i.apply(void 0,this.codePoints.slice(this.start,this.end))},A}();!function(A){A[A.STRING_TOKEN=0]="STRING_TOKEN",A[A.BAD_STRING_TOKEN=1]="BAD_STRING_TOKEN",A[A.LEFT_PARENTHESIS_TOKEN=2]="LEFT_PARENTHESIS_TOKEN",A[A.RIGHT_PARENTHESIS_TOKEN=3]="RIGHT_PARENTHESIS_TOKEN",A[A.COMMA_TOKEN=4]="COMMA_TOKEN",A[A.HASH_TOKEN=5]="HASH_TOKEN",A[A.DELIM_TOKEN=6]="DELIM_TOKEN",A[A.AT_KEYWORD_TOKEN=7]="AT_KEYWORD_TOKEN",A[A.PREFIX_MATCH_TOKEN=8]="PREFIX_MATCH_TOKEN",A[A.DASH_MATCH_TOKEN=9]="DASH_MATCH_TOKEN",A[A.INCLUDE_MATCH_TOKEN=10]="INCLUDE_MATCH_TOKEN",A[A.LEFT_CURLY_BRACKET_TOKEN=11]="LEFT_CURLY_BRACKET_TOKEN",A[A.RIGHT_CURLY_BRACKET_TOKEN=12]="RIGHT_CURLY_BRACKET_TOKEN",A[A.SUFFIX_MATCH_TOKEN=13]="SUFFIX_MATCH_TOKEN",A[A.SUBSTRING_MATCH_TOKEN=14]="SUBSTRING_MATCH_TOKEN",A[A.DIMENSION_TOKEN=15]="DIMENSION_TOKEN",A[A.PERCENTAGE_TOKEN=16]="PERCENTAGE_TOKEN",A[A.NUMBER_TOKEN=17]="NUMBER_TOKEN",A[A.FUNCTION=18]="FUNCTION",A[A.FUNCTION_TOKEN=19]="FUNCTION_TOKEN",A[A.IDENT_TOKEN=20]="IDENT_TOKEN",A[A.COLUMN_TOKEN=21]="COLUMN_TOKEN",A[A.URL_TOKEN=22]="URL_TOKEN",A[A.BAD_URL_TOKEN=23]="BAD_URL_TOKEN",A[A.CDC_TOKEN=24]="CDC_TOKEN",A[A.CDO_TOKEN=25]="CDO_TOKEN",A[A.COLON_TOKEN=26]="COLON_TOKEN",A[A.SEMICOLON_TOKEN=27]="SEMICOLON_TOKEN",A[A.LEFT_SQUARE_BRACKET_TOKEN=28]="LEFT_SQUARE_BRACKET_TOKEN",A[A.RIGHT_SQUARE_BRACKET_TOKEN=29]="RIGHT_SQUARE_BRACKET_TOKEN",A[A.UNICODE_RANGE_TOKEN=30]="UNICODE_RANGE_TOKEN",A[A.WHITESPACE_TOKEN=31]="WHITESPACE_TOKEN",A[A.EOF_TOKEN=32]="EOF_TOKEN"}(u||(u={}));var $=function(A){return A>=48&&A<=57},AA=function(A){return $(A)||A>=65&&A<=70||A>=97&&A<=102},eA=function(A){return 10===A||9===A||32===A},tA=function(A){return function(A){return function(A){return A>=97&&A<=122}(A)||function(A){return A>=65&&A<=90}(A)}(A)||function(A){return A>=128}(A)||95===A},rA=function(A){return tA(A)||$(A)||45===A},nA=function(A){return A>=0&&A<=8||11===A||A>=14&&A<=31||127===A},BA=function(A,e){return 92===A&&10!==e},sA=function(A,e,t){return 45===A?tA(e)||BA(e,t):!!tA(A)||!(92!==A||!BA(A,e))},oA=function(A,e,t){return 43===A||45===A?!!$(e)||46===e&&$(t):$(46===A?e:A)},iA={type:u.LEFT_PARENTHESIS_TOKEN},aA={type:u.RIGHT_PARENTHESIS_TOKEN},cA={type:u.COMMA_TOKEN},QA={type:u.SUFFIX_MATCH_TOKEN},uA={type:u.PREFIX_MATCH_TOKEN},wA={type:u.COLUMN_TOKEN},UA={type:u.DASH_MATCH_TOKEN},lA={type:u.INCLUDE_MATCH_TOKEN},CA={type:u.LEFT_CURLY_BRACKET_TOKEN},gA={type:u.RIGHT_CURLY_BRACKET_TOKEN},EA={type:u.SUBSTRING_MATCH_TOKEN},FA={type:u.BAD_URL_TOKEN},hA={type:u.BAD_STRING_TOKEN},HA={type:u.CDO_TOKEN},dA={type:u.CDC_TOKEN},fA={type:u.COLON_TOKEN},pA={type:u.SEMICOLON_TOKEN},NA={type:u.LEFT_SQUARE_BRACKET_TOKEN},KA={type:u.RIGHT_SQUARE_BRACKET_TOKEN},IA={type:u.WHITESPACE_TOKEN},TA={type:u.EOF_TOKEN},mA=function(){function A(){this._value=[]}return A.prototype.write=function(A){this._value=this._value.concat(o(A))},A.prototype.read=function(){for(var A=[],e=this.consumeToken();e!==TA;)A.push(e),e=this.consumeToken();return A},A.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case 34:return this.consumeStringToken(34);case 35:var e=this.peekCodePoint(0),t=this.peekCodePoint(1),r=this.peekCodePoint(2);if(rA(e)||BA(t,r)){var n=sA(e,t,r)?2:1,B=this.consumeName();return{type:u.HASH_TOKEN,value:B,flags:n}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),QA;break;case 39:return this.consumeStringToken(39);case 40:return iA;case 41:return aA;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),EA;break;case 43:if(oA(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 44:return cA;case 45:var s=A,o=this.peekCodePoint(0),a=this.peekCodePoint(1);if(oA(s,o,a))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(sA(s,o,a))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(45===o&&62===a)return this.consumeCodePoint(),this.consumeCodePoint(),dA;break;case 46:if(oA(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var c=this.consumeCodePoint();if(42===c&&47===(c=this.consumeCodePoint()))return this.consumeToken();if(-1===c)return this.consumeToken()}break;case 58:return fA;case 59:return pA;case 60:if(33===this.peekCodePoint(0)&&45===this.peekCodePoint(1)&&45===this.peekCodePoint(2))return this.consumeCodePoint(),this.consumeCodePoint(),HA;break;case 64:var Q=this.peekCodePoint(0),w=this.peekCodePoint(1),U=this.peekCodePoint(2);if(sA(Q,w,U)){B=this.consumeName();return{type:u.AT_KEYWORD_TOKEN,value:B}}break;case 91:return NA;case 92:if(BA(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case 93:return KA;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),uA;break;case 123:return CA;case 125:return gA;case 117:case 85:var l=this.peekCodePoint(0),C=this.peekCodePoint(1);return 43!==l||!AA(C)&&63!==C||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),UA;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),wA;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),lA;break;case-1:return TA}return eA(A)?(this.consumeWhiteSpace(),IA):$(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):tA(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:u.DELIM_TOKEN,value:i(A)}},A.prototype.consumeCodePoint=function(){var A=this._value.shift();return void 0===A?-1:A},A.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},A.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},A.prototype.consumeUnicodeRangeToken=function(){for(var A=[],e=this.consumeCodePoint();AA(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();for(var t=!1;63===e&&A.length<6;)A.push(e),e=this.consumeCodePoint(),t=!0;if(t){var r=parseInt(i.apply(void 0,A.map(function(A){return 63===A?48:A})),16),n=parseInt(i.apply(void 0,A.map(function(A){return 63===A?70:A})),16);return{type:u.UNICODE_RANGE_TOKEN,start:r,end:n}}var B=parseInt(i.apply(void 0,A),16);if(45===this.peekCodePoint(0)&&AA(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var s=[];AA(e)&&s.length<6;)s.push(e),e=this.consumeCodePoint();n=parseInt(i.apply(void 0,s),16);return{type:u.UNICODE_RANGE_TOKEN,start:B,end:n}}return{type:u.UNICODE_RANGE_TOKEN,start:B,end:B}},A.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return"url"===A.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:u.FUNCTION_TOKEN,value:A}):{type:u.IDENT_TOKEN,value:A}},A.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0))return{type:u.URL_TOKEN,value:""};var e=this.peekCodePoint(0);if(39===e||34===e){var t=this.consumeStringToken(this.consumeCodePoint());return t.type===u.STRING_TOKEN&&(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:u.URL_TOKEN,value:t.value}):(this.consumeBadUrlRemnants(),FA)}for(;;){var r=this.consumeCodePoint();if(-1===r||41===r)return{type:u.URL_TOKEN,value:i.apply(void 0,A)};if(eA(r))return this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:u.URL_TOKEN,value:i.apply(void 0,A)}):(this.consumeBadUrlRemnants(),FA);if(34===r||39===r||40===r||nA(r))return this.consumeBadUrlRemnants(),FA;if(92===r){if(!BA(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),FA;A.push(this.consumeEscapedCodePoint())}else A.push(r)}},A.prototype.consumeWhiteSpace=function(){for(;eA(this.peekCodePoint(0));)this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(41===A||-1===A)return;BA(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(A){for(var e="";A>0;){var t=Math.min(6e4,A);e+=i.apply(void 0,this._value.splice(0,t)),A-=t}return this._value.shift(),e},A.prototype.consumeStringToken=function(A){for(var e="",t=0;;){var r=this._value[t];if(-1===r||void 0===r||r===A)return e+=this.consumeStringSlice(t),{type:u.STRING_TOKEN,value:e};if(10===r)return this._value.splice(0,t),hA;if(92===r){var n=this._value[t+1];-1!==n&&void 0!==n&&(10===n?(e+=this.consumeStringSlice(t),t=-1,this._value.shift()):BA(r,n)&&(e+=this.consumeStringSlice(t),e+=i(this.consumeEscapedCodePoint()),t=-1))}t++}},A.prototype.consumeNumber=function(){var A=[],e=4,t=this.peekCodePoint(0);for(43!==t&&45!==t||A.push(this.consumeCodePoint());$(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(46===t&&$(r))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;$(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0),r=this.peekCodePoint(1);var n=this.peekCodePoint(2);if((69===t||101===t)&&((43===r||45===r)&&$(n)||$(r)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;$(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[function(A){var e=0,t=1;43!==A[e]&&45!==A[e]||(45===A[e]&&(t=-1),e++);for(var r=[];$(A[e]);)r.push(A[e++]);var n=r.length?parseInt(i.apply(void 0,r),10):0;46===A[e]&&e++;for(var B=[];$(A[e]);)B.push(A[e++]);var s=B.length,o=s?parseInt(i.apply(void 0,B),10):0;69!==A[e]&&101!==A[e]||e++;var a=1;43!==A[e]&&45!==A[e]||(45===A[e]&&(a=-1),e++);for(var c=[];$(A[e]);)c.push(A[e++]);var Q=c.length?parseInt(i.apply(void 0,c),10):0;return t*(n+o*Math.pow(10,-s))*Math.pow(10,a*Q)}(A),e]},A.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),e=A[0],t=A[1],r=this.peekCodePoint(0),n=this.peekCodePoint(1),B=this.peekCodePoint(2);if(sA(r,n,B)){var s=this.consumeName();return{type:u.DIMENSION_TOKEN,number:e,flags:t,unit:s}}return 37===r?(this.consumeCodePoint(),{type:u.PERCENTAGE_TOKEN,number:e,flags:t}):{type:u.NUMBER_TOKEN,number:e,flags:t}},A.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(AA(A)){for(var e=i(A);AA(this.peekCodePoint(0))&&e.length<6;)e+=i(this.consumeCodePoint());eA(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(e,16);return 0===t||function(A){return A>=55296&&A<=57343}(t)||t>1114111?65533:t}return-1===A?65533:A},A.prototype.consumeName=function(){for(var A="";;){var e=this.consumeCodePoint();if(rA(e))A+=i(e);else{if(!BA(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),A;A+=i(this.consumeEscapedCodePoint())}}},A}(),RA=function(){function A(A){this._tokens=A}return A.create=function(e){var t=new mA;return t.write(e),new A(t.read())},A.parseValue=function(e){return A.create(e).parseComponentValue()},A.parseValues=function(e){return A.create(e).parseComponentValues()},A.prototype.parseComponentValue=function(){for(var A=this.consumeToken();A.type===u.WHITESPACE_TOKEN;)A=this.consumeToken();if(A.type===u.EOF_TOKEN)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var e=this.consumeComponentValue();do{A=this.consumeToken()}while(A.type===u.WHITESPACE_TOKEN);if(A.type===u.EOF_TOKEN)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){for(var A=[];;){var e=this.consumeComponentValue();if(e.type===u.EOF_TOKEN)return A;A.push(e),A.push()}},A.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case u.LEFT_CURLY_BRACKET_TOKEN:case u.LEFT_SQUARE_BRACKET_TOKEN:case u.LEFT_PARENTHESIS_TOKEN:return this.consumeSimpleBlock(A.type);case u.FUNCTION_TOKEN:return this.consumeFunction(A)}return A},A.prototype.consumeSimpleBlock=function(A){for(var e={type:A,values:[]},t=this.consumeToken();;){if(t.type===u.EOF_TOKEN||_A(t,A))return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue()),t=this.consumeToken()}},A.prototype.consumeFunction=function(A){for(var e={name:A.value,values:[],type:u.FUNCTION};;){var t=this.consumeToken();if(t.type===u.EOF_TOKEN||t.type===u.RIGHT_PARENTHESIS_TOKEN)return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var A=this._tokens.shift();return void 0===A?TA:A},A.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},A}(),LA=function(A){return A.type===u.DIMENSION_TOKEN},OA=function(A){return A.type===u.NUMBER_TOKEN},vA=function(A){return A.type===u.IDENT_TOKEN},DA=function(A){return A.type===u.STRING_TOKEN},bA=function(A,e){return vA(A)&&A.value===e},SA=function(A){return A.type!==u.WHITESPACE_TOKEN},MA=function(A){return A.type!==u.WHITESPACE_TOKEN&&A.type!==u.COMMA_TOKEN},yA=function(A){var e=[],t=[];return A.forEach(function(A){if(A.type===u.COMMA_TOKEN){if(0===t.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(t),void(t=[])}A.type!==u.WHITESPACE_TOKEN&&t.push(A)}),t.length&&e.push(t),e},_A=function(A,e){return e===u.LEFT_CURLY_BRACKET_TOKEN&&A.type===u.RIGHT_CURLY_BRACKET_TOKEN||(e===u.LEFT_SQUARE_BRACKET_TOKEN&&A.type===u.RIGHT_SQUARE_BRACKET_TOKEN||e===u.LEFT_PARENTHESIS_TOKEN&&A.type===u.RIGHT_PARENTHESIS_TOKEN)},PA=function(A){return A.type===u.NUMBER_TOKEN||A.type===u.DIMENSION_TOKEN},xA=function(A){return A.type===u.PERCENTAGE_TOKEN||PA(A)},VA=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},zA={type:u.NUMBER_TOKEN,number:0,flags:4},XA={type:u.PERCENTAGE_TOKEN,number:50,flags:4},JA={type:u.PERCENTAGE_TOKEN,number:100,flags:4},GA=function(A,e,t){var r=A[0],n=A[1];return[kA(r,e),kA(void 0!==n?n:r,t)]},kA=function(A,e){if(A.type===u.PERCENTAGE_TOKEN)return A.number/100*e;if(LA(A))switch(A.unit){case"rem":case"em":return 16*A.number;case"px":default:return A.number}return A.number},WA=function(A){if(A.type===u.DIMENSION_TOKEN)switch(A.unit){case"deg":return Math.PI*A.number/180;case"grad":return Math.PI/200*A.number;case"rad":return A.number;case"turn":return 2*Math.PI*A.number}throw new Error("Unsupported angle type")},YA=function(A){return A.type===u.DIMENSION_TOKEN&&("deg"===A.unit||"grad"===A.unit||"rad"===A.unit||"turn"===A.unit)},qA=function(A){switch(A.filter(vA).map(function(A){return A.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[zA,zA];case"to top":case"bottom":return ZA(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[zA,JA];case"to right":case"left":return ZA(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[JA,JA];case"to bottom":case"top":return ZA(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[JA,zA];case"to left":case"right":return ZA(270)}return 0},ZA=function(A){return Math.PI*A/180},jA=function(A){if(A.type===u.FUNCTION){var e=ie[A.name];if(void 0===e)throw new Error('Attempting to parse an unsupported color function "'+A.name+'"');return e(A.values)}if(A.type===u.HASH_TOKEN){if(3===A.value.length){var t=A.value.substring(0,1),r=A.value.substring(1,2),n=A.value.substring(2,3);return ee(parseInt(t+t,16),parseInt(r+r,16),parseInt(n+n,16),1)}if(4===A.value.length){t=A.value.substring(0,1),r=A.value.substring(1,2),n=A.value.substring(2,3);var B=A.value.substring(3,4);return ee(parseInt(t+t,16),parseInt(r+r,16),parseInt(n+n,16),parseInt(B+B,16)/255)}if(6===A.value.length){t=A.value.substring(0,2),r=A.value.substring(2,4),n=A.value.substring(4,6);return ee(parseInt(t,16),parseInt(r,16),parseInt(n,16),1)}if(8===A.value.length){t=A.value.substring(0,2),r=A.value.substring(2,4),n=A.value.substring(4,6),B=A.value.substring(6,8);return ee(parseInt(t,16),parseInt(r,16),parseInt(n,16),parseInt(B,16)/255)}}if(A.type===u.IDENT_TOKEN){var s=ae[A.value.toUpperCase()];if(void 0!==s)return s}return ae.TRANSPARENT},$A=function(A){return 0==(255&A)},Ae=function(A){var e=255&A,t=255&A>>8,r=255&A>>16,n=255&A>>24;return e<255?"rgba("+n+","+r+","+t+","+e/255+")":"rgb("+n+","+r+","+t+")"},ee=function(A,e,t,r){return(A<<24|e<<16|t<<8|Math.round(255*r)<<0)>>>0},te=function(A,e){if(A.type===u.NUMBER_TOKEN)return A.number;if(A.type===u.PERCENTAGE_TOKEN){var t=3===e?1:255;return 3===e?A.number/100*t:Math.round(A.number/100*t)}return 0},re=function(A){var e=A.filter(MA);if(3===e.length){var t=e.map(te),r=t[0],n=t[1],B=t[2];return ee(r,n,B,1)}if(4===e.length){var s=e.map(te),o=(r=s[0],n=s[1],B=s[2],s[3]);return ee(r,n,B,o)}return 0};function ne(A,e,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-A)*t*6+A:t<.5?e:t<2/3?6*(e-A)*(2/3-t)+A:A}var Be,se,oe=function(A){var e=A.filter(MA),t=e[0],r=e[1],n=e[2],B=e[3],s=(t.type===u.NUMBER_TOKEN?ZA(t.number):WA(t))/(2*Math.PI),o=xA(r)?r.number/100:0,i=xA(n)?n.number/100:0,a=void 0!==B&&xA(B)?kA(B,1):1;if(0===o)return ee(255*i,255*i,255*i,1);var c=i<=.5?i*(o+1):i+o-i*o,Q=2*i-c,w=ne(Q,c,s+1/3),U=ne(Q,c,s),l=ne(Q,c,s-1/3);return ee(255*w,255*U,255*l,a)},ie={hsl:oe,hsla:oe,rgb:re,rgba:re},ae={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199};!function(A){A[A.VALUE=0]="VALUE",A[A.LIST=1]="LIST",A[A.IDENT_VALUE=2]="IDENT_VALUE",A[A.TYPE_VALUE=3]="TYPE_VALUE",A[A.TOKEN_VALUE=4]="TOKEN_VALUE"}(Be||(Be={})),function(A){A[A.BORDER_BOX=0]="BORDER_BOX",A[A.PADDING_BOX=1]="PADDING_BOX",A[A.CONTENT_BOX=2]="CONTENT_BOX"}(se||(se={}));var ce,Qe={name:"background-clip",initialValue:"border-box",prefix:!1,type:Be.LIST,parse:function(A){return A.map(function(A){if(vA(A))switch(A.value){case"padding-box":return se.PADDING_BOX;case"content-box":return se.CONTENT_BOX}return se.BORDER_BOX})}},ue={name:"background-color",initialValue:"transparent",prefix:!1,type:Be.TYPE_VALUE,format:"color"},we=function(A){var e=jA(A[0]),t=A[1];return t&&xA(t)?{color:e,stop:t}:{color:e,stop:null}},Ue=function(A,e){var t=A[0],r=A[A.length-1];null===t.stop&&(t.stop=zA),null===r.stop&&(r.stop=JA);for(var n=[],B=0,s=0;s<A.length;s++){var o=A[s].stop;if(null!==o){var i=kA(o,e);i>B?n.push(i):n.push(B),B=i}else n.push(null)}var a=null;for(s=0;s<n.length;s++){var c=n[s];if(null===c)null===a&&(a=s);else if(null!==a){for(var Q=s-a,u=(c-n[a-1])/(Q+1),w=1;w<=Q;w++)n[a+w-1]=u*w;a=null}}return A.map(function(A,t){return{color:A.color,stop:Math.max(Math.min(1,n[t]/e),0)}})},le=function(A,e,t){var r="number"==typeof A?A:function(A,e,t){var r=e/2,n=t/2,B=kA(A[0],e)-r,s=n-kA(A[1],t);return(Math.atan2(s,B)+2*Math.PI)%(2*Math.PI)}(A,e,t),n=Math.abs(e*Math.sin(r))+Math.abs(t*Math.cos(r)),B=e/2,s=t/2,o=n/2,i=Math.sin(r-Math.PI/2)*o,a=Math.cos(r-Math.PI/2)*o;return[n,B-a,B+a,s-i,s+i]},Ce=function(A,e){return Math.sqrt(A*A+e*e)},ge=function(A,e,t,r,n){return[[0,0],[0,e],[A,0],[A,e]].reduce(function(A,e){var B=e[0],s=e[1],o=Ce(t-B,r-s);return(n?o<A.optimumDistance:o>A.optimumDistance)?{optimumCorner:e,optimumDistance:o}:A},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},Ee=function(A){var e=ZA(180),t=[];return yA(A).forEach(function(A,r){if(0===r){var n=A[0];if(n.type===u.IDENT_TOKEN&&-1!==["top","left","right","bottom"].indexOf(n.value))return void(e=qA(A));if(YA(n))return void(e=(WA(n)+ZA(270))%ZA(360))}var B=we(A);t.push(B)}),{angle:e,stops:t,type:ce.LINEAR_GRADIENT}},Fe=function(A){return 0===A[0]&&255===A[1]&&0===A[2]&&255===A[3]},he=function(A,e,t,r,n){var B="http://www.w3.org/2000/svg",s=document.createElementNS(B,"svg"),o=document.createElementNS(B,"foreignObject");return s.setAttributeNS(null,"width",A.toString()),s.setAttributeNS(null,"height",e.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",t.toString()),o.setAttributeNS(null,"y",r.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(o),o.appendChild(n),s},He=function(A){return new Promise(function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(A))})},de={get SUPPORT_RANGE_BOUNDS(){var A=function(A){if(A.createRange){var e=A.createRange();if(e.getBoundingClientRect){var t=A.createElement("boundtest");t.style.height="123px",t.style.display="block",A.body.appendChild(t),e.selectNode(t);var r=e.getBoundingClientRect(),n=Math.round(r.height);if(A.body.removeChild(t),123===n)return!0}}return!1}(document);return Object.defineProperty(de,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=function(A){var e=new Image,t=A.createElement("canvas"),r=t.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(e,0,0),t.toDataURL()}catch(A){return!1}return!0}(document);return Object.defineProperty(de,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A="function"==typeof Array.from&&"function"==typeof window.fetch?function(A){var e=A.createElement("canvas");e.width=100,e.height=100;var t=e.getContext("2d");if(!t)return Promise.reject(!1);t.fillStyle="rgb(0, 255, 0)",t.fillRect(0,0,100,100);var r=new Image,n=e.toDataURL();r.src=n;var B=he(100,100,0,0,r);return t.fillStyle="red",t.fillRect(0,0,100,100),He(B).then(function(e){t.drawImage(e,0,0);var r=t.getImageData(0,0,100,100).data;t.fillStyle="red",t.fillRect(0,0,100,100);var B=A.createElement("div");return B.style.backgroundImage="url("+n+")",B.style.height="100px",Fe(r)?He(he(100,100,0,0,B)):Promise.reject(!1)}).then(function(A){return t.drawImage(A,0,0),Fe(t.getImageData(0,0,100,100).data)}).catch(function(){return!1})}(document):Promise.resolve(!1);return Object.defineProperty(de,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=void 0!==(new Image).crossOrigin;return Object.defineProperty(de,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(de,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(de,"SUPPORT_CORS_XHR",{value:A}),A}},fe=function(){function A(A){var e=A.id,t=A.enabled;this.id=e,this.enabled=t,this.start=Date.now()}return A.prototype.debug=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,[this.id,this.getTime()+"ms"].concat(A)):this.info.apply(this,A))},A.prototype.getTime=function(){return Date.now()-this.start},A.create=function(e){A.instances[e.id]=new A(e)},A.destroy=function(e){delete A.instances[e]},A.getInstance=function(e){var t=A.instances[e];if(void 0===t)throw new Error("No logger instance found with id "+e);return t},A.prototype.info=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,[this.id,this.getTime()+"ms"].concat(A))},A.prototype.error=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,[this.id,this.getTime()+"ms"].concat(A)):this.info.apply(this,A))},A.instances={},A}(),pe=function(){function A(){}return A.create=function(e,t){return A._caches[e]=new Ne(e,t)},A.destroy=function(e){delete A._caches[e]},A.open=function(e){var t=A._caches[e];if(void 0!==t)return t;throw new Error('Cache with key "'+e+'" not found')},A.getOrigin=function(e){var t=A._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},A.isSameOrigin=function(e){return A.getOrigin(e)===A._origin},A.setContext=function(e){A._link=e.document.createElement("a"),A._origin=A.getOrigin(e.location.href)},A.getInstance=function(){var e=A._current;if(null===e)throw new Error("No cache instance attached");return e},A.attachInstance=function(e){A._current=e},A.detachInstance=function(){A._current=null},A._caches={},A._origin="about:blank",A._current=null,A}(),Ne=function(){function A(A,e){this.id=A,this._options=e,this._cache={}}return A.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)?e:Oe(A)||me(A)?(this._cache[A]=this.loadImage(A),e):e},A.prototype.match=function(A){return this._cache[A]},A.prototype.loadImage=function(A){return r(this,void 0,void 0,function(){var e,t,r,B,s=this;return n(this,function(n){switch(n.label){case 0:return e=pe.isSameOrigin(A),t=!Re(A)&&!0===this._options.useCORS&&de.SUPPORT_CORS_IMAGES&&!e,r=!Re(A)&&!e&&"string"==typeof this._options.proxy&&de.SUPPORT_CORS_XHR&&!t,e||!1!==this._options.allowTaint||Re(A)||r||t?(B=A,r?[4,this.proxy(B)]:[3,2]):[2];case 1:B=n.sent(),n.label=2;case 2:return fe.getInstance(this.id).debug("Added image "+A.substring(0,256)),[4,new Promise(function(A,e){var r=new Image;r.onload=function(){return A(r)},r.onerror=e,(Le(B)||t)&&(r.crossOrigin="anonymous"),r.src=B,!0===r.complete&&setTimeout(function(){return A(r)},500),s._options.imageTimeout>0&&setTimeout(function(){return e("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,n.sent()]}})})},A.prototype.has=function(A){return void 0!==this._cache[A]},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(A){var e=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var r=A.substring(0,256);return new Promise(function(n,B){var s=de.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;if(o.onload=function(){if(200===o.status)if("text"===s)n(o.response);else{var A=new FileReader;A.addEventListener("load",function(){return n(A.result)},!1),A.addEventListener("error",function(A){return B(A)},!1),A.readAsDataURL(o.response)}else B("Failed to proxy resource "+r+" with status code "+o.status)},o.onerror=B,o.open("GET",t+"?url="+encodeURIComponent(A)+"&responseType="+s),"text"!==s&&o instanceof XMLHttpRequest&&(o.responseType=s),e._options.imageTimeout){var i=e._options.imageTimeout;o.timeout=i,o.ontimeout=function(){return B("Timed out ("+i+"ms) proxying "+r)}}o.send()})},A}(),Ke=/^data:image\/svg\+xml/i,Ie=/^data:image\/.*;base64,/i,Te=/^data:image\/.*/i,me=function(A){return de.SUPPORT_SVG_DRAWING||!ve(A)},Re=function(A){return Te.test(A)},Le=function(A){return Ie.test(A)},Oe=function(A){return"blob"===A.substr(0,4)},ve=function(A){return"svg"===A.substr(-3).toLowerCase()||Ke.test(A)},De=function(A){var e=be.CIRCLE,t=Se.FARTHEST_CORNER,r=[],n=[];return yA(A).forEach(function(A,B){var s=!0;if(0===B?s=A.reduce(function(A,e){if(vA(e))switch(e.value){case"center":return n.push(XA),!1;case"top":case"left":return n.push(zA),!1;case"right":case"bottom":return n.push(JA),!1}else if(xA(e)||PA(e))return n.push(e),!1;return A},s):1===B&&(s=A.reduce(function(A,r){if(vA(r))switch(r.value){case"circle":return e=be.CIRCLE,!1;case"ellipse":return e=be.ELLIPSE,!1;case"contain":case"closest-side":return t=Se.CLOSEST_SIDE,!1;case"farthest-side":return t=Se.FARTHEST_SIDE,!1;case"closest-corner":return t=Se.CLOSEST_CORNER,!1;case"cover":case"farthest-corner":return t=Se.FARTHEST_CORNER,!1}else if(PA(r)||xA(r))return Array.isArray(t)||(t=[]),t.push(r),!1;return A},s)),s){var o=we(A);r.push(o)}}),{size:t,shape:e,stops:r,position:n,type:ce.RADIAL_GRADIENT}};!function(A){A[A.URL=0]="URL",A[A.LINEAR_GRADIENT=1]="LINEAR_GRADIENT",A[A.RADIAL_GRADIENT=2]="RADIAL_GRADIENT"}(ce||(ce={}));var be,Se;!function(A){A[A.CIRCLE=0]="CIRCLE",A[A.ELLIPSE=1]="ELLIPSE"}(be||(be={})),function(A){A[A.CLOSEST_SIDE=0]="CLOSEST_SIDE",A[A.FARTHEST_SIDE=1]="FARTHEST_SIDE",A[A.CLOSEST_CORNER=2]="CLOSEST_CORNER",A[A.FARTHEST_CORNER=3]="FARTHEST_CORNER"}(Se||(Se={}));var Me=function(A){if(A.type===u.URL_TOKEN){var e={url:A.value,type:ce.URL};return pe.getInstance().addImage(A.value),e}if(A.type===u.FUNCTION){var t=_e[A.name];if(void 0===t)throw new Error('Attempting to parse an unsupported image function "'+A.name+'"');return t(A.values)}throw new Error("Unsupported image type")};var ye,_e={"linear-gradient":function(A){var e=ZA(180),t=[];return yA(A).forEach(function(A,r){if(0===r){var n=A[0];if(n.type===u.IDENT_TOKEN&&"to"===n.value)return void(e=qA(A));if(YA(n))return void(e=WA(n))}var B=we(A);t.push(B)}),{angle:e,stops:t,type:ce.LINEAR_GRADIENT}},"-moz-linear-gradient":Ee,"-ms-linear-gradient":Ee,"-o-linear-gradient":Ee,"-webkit-linear-gradient":Ee,"radial-gradient":function(A){var e=be.CIRCLE,t=Se.FARTHEST_CORNER,r=[],n=[];return yA(A).forEach(function(A,B){var s=!0;if(0===B){var o=!1;s=A.reduce(function(A,r){if(o)if(vA(r))switch(r.value){case"center":return n.push(XA),A;case"top":case"left":return n.push(zA),A;case"right":case"bottom":return n.push(JA),A}else(xA(r)||PA(r))&&n.push(r);else if(vA(r))switch(r.value){case"circle":return e=be.CIRCLE,!1;case"ellipse":return e=be.ELLIPSE,!1;case"at":return o=!0,!1;case"closest-side":return t=Se.CLOSEST_SIDE,!1;case"cover":case"farthest-side":return t=Se.FARTHEST_SIDE,!1;case"contain":case"closest-corner":return t=Se.CLOSEST_CORNER,!1;case"farthest-corner":return t=Se.FARTHEST_CORNER,!1}else if(PA(r)||xA(r))return Array.isArray(t)||(t=[]),t.push(r),!1;return A},s)}if(s){var i=we(A);r.push(i)}}),{size:t,shape:e,stops:r,position:n,type:ce.RADIAL_GRADIENT}},"-moz-radial-gradient":De,"-ms-radial-gradient":De,"-o-radial-gradient":De,"-webkit-radial-gradient":De,"-webkit-gradient":function(A){var e=ZA(180),t=[],r=ce.LINEAR_GRADIENT,n=be.CIRCLE,B=Se.FARTHEST_CORNER;return yA(A).forEach(function(A,e){var n=A[0];if(0===e){if(vA(n)&&"linear"===n.value)return void(r=ce.LINEAR_GRADIENT);if(vA(n)&&"radial"===n.value)return void(r=ce.RADIAL_GRADIENT)}if(n.type===u.FUNCTION)if("from"===n.name){var B=jA(n.values[0]);t.push({stop:zA,color:B})}else if("to"===n.name)B=jA(n.values[0]),t.push({stop:JA,color:B});else if("color-stop"===n.name){var s=n.values.filter(MA);if(2===s.length){B=jA(s[1]);var o=s[0];OA(o)&&t.push({stop:{type:u.PERCENTAGE_TOKEN,number:100*o.number,flags:o.flags},color:B})}}}),r===ce.LINEAR_GRADIENT?{angle:(e+ZA(180))%ZA(360),stops:t,type:r}:{size:B,shape:n,stops:t,position:[],type:r}}},Pe={name:"background-image",initialValue:"none",type:Be.LIST,prefix:!1,parse:function(A){if(0===A.length)return[];var e=A[0];return e.type===u.IDENT_TOKEN&&"none"===e.value?[]:A.filter(function(A){return MA(A)&&function(A){return A.type!==u.FUNCTION||_e[A.name]}(A)}).map(Me)}},xe={name:"background-origin",initialValue:"border-box",prefix:!1,type:Be.LIST,parse:function(A){return A.map(function(A){if(vA(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Ve={name:"background-position",initialValue:"0% 0%",type:Be.LIST,prefix:!1,parse:function(A){return yA(A).map(function(A){return A.filter(xA)}).map(VA)}};!function(A){A[A.REPEAT=0]="REPEAT",A[A.NO_REPEAT=1]="NO_REPEAT",A[A.REPEAT_X=2]="REPEAT_X",A[A.REPEAT_Y=3]="REPEAT_Y"}(ye||(ye={}));var ze,Xe={name:"background-repeat",initialValue:"repeat",prefix:!1,type:Be.LIST,parse:function(A){return yA(A).map(function(A){return A.filter(vA).map(function(A){return A.value}).join(" ")}).map(Je)}},Je=function(A){switch(A){case"no-repeat":return ye.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return ye.REPEAT_X;case"repeat-y":case"no-repeat repeat":return ye.REPEAT_Y;case"repeat":default:return ye.REPEAT}};!function(A){A.AUTO="auto",A.CONTAIN="contain",A.COVER="cover"}(ze||(ze={}));var Ge,ke={name:"background-size",initialValue:"0",prefix:!1,type:Be.LIST,parse:function(A){return yA(A).map(function(A){return A.filter(We)})}},We=function(A){return vA(A)||xA(A)},Ye=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:Be.TYPE_VALUE,format:"color"}},qe=Ye("top"),Ze=Ye("right"),je=Ye("bottom"),$e=Ye("left"),At=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:Be.LIST,parse:function(A){return VA(A.filter(xA))}}},et=At("top-left"),tt=At("top-right"),rt=At("bottom-right"),nt=At("bottom-left");!function(A){A[A.NONE=0]="NONE",A[A.SOLID=1]="SOLID"}(Ge||(Ge={}));var Bt,st=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:Be.IDENT_VALUE,parse:function(A){switch(A){case"none":return Ge.NONE}return Ge.SOLID}}},ot=st("top"),it=st("right"),at=st("bottom"),ct=st("left"),Qt=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:Be.VALUE,prefix:!1,parse:function(A){return LA(A)?A.number:0}}},ut=Qt("top"),wt=Qt("right"),Ut=Qt("bottom"),lt=Qt("left"),Ct={name:"color",initialValue:"transparent",prefix:!1,type:Be.TYPE_VALUE,format:"color"},gt={name:"display",initialValue:"inline-block",prefix:!1,type:Be.LIST,parse:function(A){return A.filter(vA).reduce(function(A,e){return A|Et(e.value)},0)}},Et=function(A){switch(A){case"block":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0};!function(A){A[A.NONE=0]="NONE",A[A.LEFT=1]="LEFT",A[A.RIGHT=2]="RIGHT",A[A.INLINE_START=3]="INLINE_START",A[A.INLINE_END=4]="INLINE_END"}(Bt||(Bt={}));var Ft,ht={name:"float",initialValue:"none",prefix:!1,type:Be.IDENT_VALUE,parse:function(A){switch(A){case"left":return Bt.LEFT;case"right":return Bt.RIGHT;case"inline-start":return Bt.INLINE_START;case"inline-end":return Bt.INLINE_END}return Bt.NONE}},Ht={name:"letter-spacing",initialValue:"0",prefix:!1,type:Be.VALUE,parse:function(A){return A.type===u.IDENT_TOKEN&&"normal"===A.value?0:A.type===u.NUMBER_TOKEN?A.number:A.type===u.DIMENSION_TOKEN?A.number:0}};!function(A){A.NORMAL="normal",A.STRICT="strict"}(Ft||(Ft={}));var dt,ft={name:"line-break",initialValue:"normal",prefix:!1,type:Be.IDENT_VALUE,parse:function(A){switch(A){case"strict":return Ft.STRICT;case"normal":default:return Ft.NORMAL}}},pt={name:"line-height",initialValue:"normal",prefix:!1,type:Be.TOKEN_VALUE},Nt={name:"list-style-image",initialValue:"none",type:Be.VALUE,prefix:!1,parse:function(A){return A.type===u.IDENT_TOKEN&&"none"===A.value?null:Me(A)}};!function(A){A[A.INSIDE=0]="INSIDE",A[A.OUTSIDE=1]="OUTSIDE"}(dt||(dt={}));var Kt,It={name:"list-style-position",initialValue:"outside",prefix:!1,type:Be.IDENT_VALUE,parse:function(A){switch(A){case"inside":return dt.INSIDE;case"outside":default:return dt.OUTSIDE}}};!function(A){A[A.NONE=-1]="NONE",A[A.DISC=0]="DISC",A[A.CIRCLE=1]="CIRCLE",A[A.SQUARE=2]="SQUARE",A[A.DECIMAL=3]="DECIMAL",A[A.CJK_DECIMAL=4]="CJK_DECIMAL",A[A.DECIMAL_LEADING_ZERO=5]="DECIMAL_LEADING_ZERO",A[A.LOWER_ROMAN=6]="LOWER_ROMAN",A[A.UPPER_ROMAN=7]="UPPER_ROMAN",A[A.LOWER_GREEK=8]="LOWER_GREEK",A[A.LOWER_ALPHA=9]="LOWER_ALPHA",A[A.UPPER_ALPHA=10]="UPPER_ALPHA",A[A.ARABIC_INDIC=11]="ARABIC_INDIC",A[A.ARMENIAN=12]="ARMENIAN",A[A.BENGALI=13]="BENGALI",A[A.CAMBODIAN=14]="CAMBODIAN",A[A.CJK_EARTHLY_BRANCH=15]="CJK_EARTHLY_BRANCH",A[A.CJK_HEAVENLY_STEM=16]="CJK_HEAVENLY_STEM",A[A.CJK_IDEOGRAPHIC=17]="CJK_IDEOGRAPHIC",A[A.DEVANAGARI=18]="DEVANAGARI",A[A.ETHIOPIC_NUMERIC=19]="ETHIOPIC_NUMERIC",A[A.GEORGIAN=20]="GEORGIAN",A[A.GUJARATI=21]="GUJARATI",A[A.GURMUKHI=22]="GURMUKHI",A[A.HEBREW=22]="HEBREW",A[A.HIRAGANA=23]="HIRAGANA",A[A.HIRAGANA_IROHA=24]="HIRAGANA_IROHA",A[A.JAPANESE_FORMAL=25]="JAPANESE_FORMAL",A[A.JAPANESE_INFORMAL=26]="JAPANESE_INFORMAL",A[A.KANNADA=27]="KANNADA",A[A.KATAKANA=28]="KATAKANA",A[A.KATAKANA_IROHA=29]="KATAKANA_IROHA",A[A.KHMER=30]="KHMER",A[A.KOREAN_HANGUL_FORMAL=31]="KOREAN_HANGUL_FORMAL",A[A.KOREAN_HANJA_FORMAL=32]="KOREAN_HANJA_FORMAL",A[A.KOREAN_HANJA_INFORMAL=33]="KOREAN_HANJA_INFORMAL",A[A.LAO=34]="LAO",A[A.LOWER_ARMENIAN=35]="LOWER_ARMENIAN",A[A.MALAYALAM=36]="MALAYALAM",A[A.MONGOLIAN=37]="MONGOLIAN",A[A.MYANMAR=38]="MYANMAR",A[A.ORIYA=39]="ORIYA",A[A.PERSIAN=40]="PERSIAN",A[A.SIMP_CHINESE_FORMAL=41]="SIMP_CHINESE_FORMAL",A[A.SIMP_CHINESE_INFORMAL=42]="SIMP_CHINESE_INFORMAL",A[A.TAMIL=43]="TAMIL",A[A.TELUGU=44]="TELUGU",A[A.THAI=45]="THAI",A[A.TIBETAN=46]="TIBETAN",A[A.TRAD_CHINESE_FORMAL=47]="TRAD_CHINESE_FORMAL",A[A.TRAD_CHINESE_INFORMAL=48]="TRAD_CHINESE_INFORMAL",A[A.UPPER_ARMENIAN=49]="UPPER_ARMENIAN",A[A.DISCLOSURE_OPEN=50]="DISCLOSURE_OPEN",A[A.DISCLOSURE_CLOSED=51]="DISCLOSURE_CLOSED"}(Kt||(Kt={}));var Tt,mt={name:"list-style-type",initialValue:"none",prefix:!1,type:Be.IDENT_VALUE,parse:function(A){switch(A){case"disc":return Kt.DISC;case"circle":return Kt.CIRCLE;case"square":return Kt.SQUARE;case"decimal":return Kt.DECIMAL;case"cjk-decimal":return Kt.CJK_DECIMAL;case"decimal-leading-zero":return Kt.DECIMAL_LEADING_ZERO;case"lower-roman":return Kt.LOWER_ROMAN;case"upper-roman":return Kt.UPPER_ROMAN;case"lower-greek":return Kt.LOWER_GREEK;case"lower-alpha":return Kt.LOWER_ALPHA;case"upper-alpha":return Kt.UPPER_ALPHA;case"arabic-indic":return Kt.ARABIC_INDIC;case"armenian":return Kt.ARMENIAN;case"bengali":return Kt.BENGALI;case"cambodian":return Kt.CAMBODIAN;case"cjk-earthly-branch":return Kt.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return Kt.CJK_HEAVENLY_STEM;case"cjk-ideographic":return Kt.CJK_IDEOGRAPHIC;case"devanagari":return Kt.DEVANAGARI;case"ethiopic-numeric":return Kt.ETHIOPIC_NUMERIC;case"georgian":return Kt.GEORGIAN;case"gujarati":return Kt.GUJARATI;case"gurmukhi":return Kt.GURMUKHI;case"hebrew":return Kt.HEBREW;case"hiragana":return Kt.HIRAGANA;case"hiragana-iroha":return Kt.HIRAGANA_IROHA;case"japanese-formal":return Kt.JAPANESE_FORMAL;case"japanese-informal":return Kt.JAPANESE_INFORMAL;case"kannada":return Kt.KANNADA;case"katakana":return Kt.KATAKANA;case"katakana-iroha":return Kt.KATAKANA_IROHA;case"khmer":return Kt.KHMER;case"korean-hangul-formal":return Kt.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return Kt.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return Kt.KOREAN_HANJA_INFORMAL;case"lao":return Kt.LAO;case"lower-armenian":return Kt.LOWER_ARMENIAN;case"malayalam":return Kt.MALAYALAM;case"mongolian":return Kt.MONGOLIAN;case"myanmar":return Kt.MYANMAR;case"oriya":return Kt.ORIYA;case"persian":return Kt.PERSIAN;case"simp-chinese-formal":return Kt.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return Kt.SIMP_CHINESE_INFORMAL;case"tamil":return Kt.TAMIL;case"telugu":return Kt.TELUGU;case"thai":return Kt.THAI;case"tibetan":return Kt.TIBETAN;case"trad-chinese-formal":return Kt.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return Kt.TRAD_CHINESE_INFORMAL;case"upper-armenian":return Kt.UPPER_ARMENIAN;case"disclosure-open":return Kt.DISCLOSURE_OPEN;case"disclosure-closed":return Kt.DISCLOSURE_CLOSED;case"none":default:return Kt.NONE}}},Rt=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:Be.TOKEN_VALUE}},Lt=Rt("top"),Ot=Rt("right"),vt=Rt("bottom"),Dt=Rt("left");!function(A){A[A.VISIBLE=0]="VISIBLE",A[A.HIDDEN=1]="HIDDEN",A[A.SCROLL=2]="SCROLL",A[A.AUTO=3]="AUTO"}(Tt||(Tt={}));var bt,St={name:"overflow",initialValue:"visible",prefix:!1,type:Be.LIST,parse:function(A){return A.filter(vA).map(function(A){switch(A.value){case"hidden":return Tt.HIDDEN;case"scroll":return Tt.SCROLL;case"auto":return Tt.AUTO;case"visible":default:return Tt.VISIBLE}})}};!function(A){A.NORMAL="normal",A.BREAK_WORD="break-word"}(bt||(bt={}));var Mt,yt={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:Be.IDENT_VALUE,parse:function(A){switch(A){case"break-word":return bt.BREAK_WORD;case"normal":default:return bt.NORMAL}}},_t=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:Be.TYPE_VALUE,format:"length-percentage"}},Pt=_t("top"),xt=_t("right"),Vt=_t("bottom"),zt=_t("left");!function(A){A[A.LEFT=0]="LEFT",A[A.CENTER=1]="CENTER",A[A.RIGHT=2]="RIGHT"}(Mt||(Mt={}));var Xt,Jt={name:"text-align",initialValue:"left",prefix:!1,type:Be.IDENT_VALUE,parse:function(A){switch(A){case"right":return Mt.RIGHT;case"center":case"justify":return Mt.CENTER;case"left":default:return Mt.LEFT}}};!function(A){A[A.STATIC=0]="STATIC",A[A.RELATIVE=1]="RELATIVE",A[A.ABSOLUTE=2]="ABSOLUTE",A[A.FIXED=3]="FIXED",A[A.STICKY=4]="STICKY"}(Xt||(Xt={}));var Gt,kt={name:"position",initialValue:"static",prefix:!1,type:Be.IDENT_VALUE,parse:function(A){switch(A){case"relative":return Xt.RELATIVE;case"absolute":return Xt.ABSOLUTE;case"fixed":return Xt.FIXED;case"sticky":return Xt.STICKY}return Xt.STATIC}},Wt={name:"text-shadow",initialValue:"none",type:Be.LIST,prefix:!1,parse:function(A){return 1===A.length&&bA(A[0],"none")?[]:yA(A).map(function(A){for(var e={color:ae.TRANSPARENT,offsetX:zA,offsetY:zA,blur:zA},t=0,r=0;r<A.length;r++){var n=A[r];PA(n)?(0===t?e.offsetX=n:1===t?e.offsetY=n:e.blur=n,t++):e.color=jA(n)}return e})}};!function(A){A[A.NONE=0]="NONE",A[A.LOWERCASE=1]="LOWERCASE",A[A.UPPERCASE=2]="UPPERCASE",A[A.CAPITALIZE=3]="CAPITALIZE"}(Gt||(Gt={}));var Yt,qt={name:"text-transform",initialValue:"none",prefix:!1,type:Be.IDENT_VALUE,parse:function(A){switch(A){case"uppercase":return Gt.UPPERCASE;case"lowercase":return Gt.LOWERCASE;case"capitalize":return Gt.CAPITALIZE}return Gt.NONE}},Zt={name:"transform",initialValue:"none",prefix:!0,type:Be.VALUE,parse:function(A){if(A.type===u.IDENT_TOKEN&&"none"===A.value)return null;if(A.type===u.FUNCTION){var e=jt[A.name];if(void 0===e)throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return e(A.values)}return null}},jt={matrix:function(A){var e=A.filter(function(A){return A.type===u.NUMBER_TOKEN}).map(function(A){return A.number});return 6===e.length?e:null},matrix3d:function(A){var e=A.filter(function(A){return A.type===u.NUMBER_TOKEN}).map(function(A){return A.number}),t=e[0],r=e[1],n=(e[2],e[3],e[4]),B=e[5],s=(e[6],e[7],e[8],e[9],e[10],e[11],e[12]),o=e[13];e[14],e[15];return 16===e.length?[t,r,n,B,s,o]:null}},$t={type:u.PERCENTAGE_TOKEN,number:50,flags:4},Ar=[$t,$t],er={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:Be.LIST,parse:function(A){var e=A.filter(xA);return 2!==e.length?Ar:[e[0],e[1]]}};!function(A){A[A.VISIBLE=0]="VISIBLE",A[A.HIDDEN=1]="HIDDEN",A[A.COLLAPSE=2]="COLLAPSE"}(Yt||(Yt={}));var tr,rr={name:"visible",initialValue:"none",prefix:!1,type:Be.IDENT_VALUE,parse:function(A){switch(A){case"hidden":return Yt.HIDDEN;case"collapse":return Yt.COLLAPSE;case"visible":default:return Yt.VISIBLE}}};!function(A){A.NORMAL="normal",A.BREAK_ALL="break-all",A.KEEP_ALL="keep-all"}(tr||(tr={}));var nr,Br={name:"word-break",initialValue:"normal",prefix:!1,type:Be.IDENT_VALUE,parse:function(A){switch(A){case"break-all":return tr.BREAK_ALL;case"keep-all":return tr.KEEP_ALL;case"normal":default:return tr.NORMAL}}},sr={name:"z-index",initialValue:"auto",prefix:!1,type:Be.VALUE,parse:function(A){if(A.type===u.IDENT_TOKEN)return{auto:!0,order:0};if(OA(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},or={name:"opacity",initialValue:"1",type:Be.VALUE,prefix:!1,parse:function(A){return OA(A)?A.number:1}},ir={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:Be.TYPE_VALUE,format:"color"},ar={name:"text-decoration-line",initialValue:"none",prefix:!1,type:Be.LIST,parse:function(A){return A.filter(vA).map(function(A){switch(A.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(A){return 0!==A})}},cr={name:"font-family",initialValue:"",prefix:!1,type:Be.LIST,parse:function(A){return A.filter(Qr).map(function(A){return A.value})}},Qr=function(A){return A.type===u.STRING_TOKEN||A.type===u.IDENT_TOKEN},ur={name:"font-size",initialValue:"0",prefix:!1,type:Be.TYPE_VALUE,format:"length"},wr={name:"font-weight",initialValue:"normal",type:Be.VALUE,prefix:!1,parse:function(A){if(OA(A))return A.number;if(vA(A))switch(A.value){case"bold":return 700;case"normal":default:return 400}return 400}},Ur={name:"font-variant",initialValue:"none",type:Be.LIST,prefix:!1,parse:function(A){return A.filter(vA).map(function(A){return A.value})}};!function(A){A.NORMAL="normal",A.ITALIC="italic",A.OBLIQUE="oblique"}(nr||(nr={}));var lr,Cr={name:"font-style",initialValue:"normal",prefix:!1,type:Be.IDENT_VALUE,parse:function(A){switch(A){case"oblique":return nr.OBLIQUE;case"italic":return nr.ITALIC;case"normal":default:return nr.NORMAL}}},gr=function(A,e){return 0!=(A&e)},Er={name:"content",initialValue:"none",type:Be.LIST,prefix:!1,parse:function(A){if(0===A.length)return[];var e=A[0];return e.type===u.IDENT_TOKEN&&"none"===e.value?[]:A}},Fr={name:"counter-increment",initialValue:"none",prefix:!0,type:Be.LIST,parse:function(A){if(0===A.length)return null;var e=A[0];if(e.type===u.IDENT_TOKEN&&"none"===e.value)return null;for(var t=[],r=A.filter(SA),n=0;n<r.length;n++){var B=r[n],s=r[n+1];if(B.type===u.IDENT_TOKEN){var o=s&&OA(s)?s.number:1;t.push({counter:B.value,increment:o})}}return t}},hr={name:"counter-reset",initialValue:"none",prefix:!0,type:Be.LIST,parse:function(A){if(0===A.length)return[];for(var e=[],t=A.filter(SA),r=0;r<t.length;r++){var n=t[r],B=t[r+1];if(vA(n)&&"none"!==n.value){var s=B&&OA(B)?B.number:0;e.push({counter:n.value,reset:s})}}return e}},Hr={name:"quotes",initialValue:"none",prefix:!0,type:Be.LIST,parse:function(A){if(0===A.length)return null;var e=A[0];if(e.type===u.IDENT_TOKEN&&"none"===e.value)return null;var t=[],r=A.filter(DA);if(r.length%2!=0)return null;for(var n=0;n<r.length;n+=2){var B=r[n].value,s=r[n+1].value;t.push({open:B,close:s})}return t}},dr=function(A,e,t){if(!A)return"";var r=A[Math.min(e,A.length-1)];return r?t?r.open:r.close:""},fr={name:"box-shadow",initialValue:"none",type:Be.LIST,prefix:!1,parse:function(A){return 1===A.length&&bA(A[0],"none")?[]:yA(A).map(function(A){for(var e={color:255,offsetX:zA,offsetY:zA,blur:zA,spread:zA,inset:!1},t=0,r=0;r<A.length;r++){var n=A[r];bA(n,"inset")?e.inset=!0:PA(n)?(0===t?e.offsetX=n:1===t?e.offsetY=n:2===t?e.blur=n:e.spread=n,t++):e.color=jA(n)}return e})}},pr=function(){function A(A){this.backgroundClip=Ir(Qe,A.backgroundClip),this.backgroundColor=Ir(ue,A.backgroundColor),this.backgroundImage=Ir(Pe,A.backgroundImage),this.backgroundOrigin=Ir(xe,A.backgroundOrigin),this.backgroundPosition=Ir(Ve,A.backgroundPosition),this.backgroundRepeat=Ir(Xe,A.backgroundRepeat),this.backgroundSize=Ir(ke,A.backgroundSize),this.borderTopColor=Ir(qe,A.borderTopColor),this.borderRightColor=Ir(Ze,A.borderRightColor),this.borderBottomColor=Ir(je,A.borderBottomColor),this.borderLeftColor=Ir($e,A.borderLeftColor),this.borderTopLeftRadius=Ir(et,A.borderTopLeftRadius),this.borderTopRightRadius=Ir(tt,A.borderTopRightRadius),this.borderBottomRightRadius=Ir(rt,A.borderBottomRightRadius),this.borderBottomLeftRadius=Ir(nt,A.borderBottomLeftRadius),this.borderTopStyle=Ir(ot,A.borderTopStyle),this.borderRightStyle=Ir(it,A.borderRightStyle),this.borderBottomStyle=Ir(at,A.borderBottomStyle),this.borderLeftStyle=Ir(ct,A.borderLeftStyle),this.borderTopWidth=Ir(ut,A.borderTopWidth),this.borderRightWidth=Ir(wt,A.borderRightWidth),this.borderBottomWidth=Ir(Ut,A.borderBottomWidth),this.borderLeftWidth=Ir(lt,A.borderLeftWidth),this.boxShadow=Ir(fr,A.boxShadow),this.color=Ir(Ct,A.color),this.display=Ir(gt,A.display),this.float=Ir(ht,A.cssFloat),this.fontFamily=Ir(cr,A.fontFamily),this.fontSize=Ir(ur,A.fontSize),this.fontStyle=Ir(Cr,A.fontStyle),this.fontVariant=Ir(Ur,A.fontVariant),this.fontWeight=Ir(wr,A.fontWeight),this.letterSpacing=Ir(Ht,A.letterSpacing),this.lineBreak=Ir(ft,A.lineBreak),this.lineHeight=Ir(pt,A.lineHeight),this.listStyleImage=Ir(Nt,A.listStyleImage),this.listStylePosition=Ir(It,A.listStylePosition),this.listStyleType=Ir(mt,A.listStyleType),this.marginTop=Ir(Lt,A.marginTop),this.marginRight=Ir(Ot,A.marginRight),this.marginBottom=Ir(vt,A.marginBottom),this.marginLeft=Ir(Dt,A.marginLeft),this.opacity=Ir(or,A.opacity);var e=Ir(St,A.overflow);this.overflowX=e[0],this.overflowY=e[e.length>1?1:0],this.overflowWrap=Ir(yt,A.overflowWrap),this.paddingTop=Ir(Pt,A.paddingTop),this.paddingRight=Ir(xt,A.paddingRight),this.paddingBottom=Ir(Vt,A.paddingBottom),this.paddingLeft=Ir(zt,A.paddingLeft),this.position=Ir(kt,A.position),this.textAlign=Ir(Jt,A.textAlign),this.textDecorationColor=Ir(ir,A.textDecorationColor||A.color),this.textDecorationLine=Ir(ar,A.textDecorationLine),this.textShadow=Ir(Wt,A.textShadow),this.textTransform=Ir(qt,A.textTransform),this.transform=Ir(Zt,A.transform),this.transformOrigin=Ir(er,A.transformOrigin),this.visibility=Ir(rr,A.visibility),this.wordBreak=Ir(Br,A.wordBreak),this.zIndex=Ir(sr,A.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===Yt.VISIBLE},A.prototype.isTransparent=function(){return $A(this.backgroundColor)},A.prototype.isTransformed=function(){return null!==this.transform},A.prototype.isPositioned=function(){return this.position!==Xt.STATIC},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return this.float!==Bt.NONE},A.prototype.isInlineLevel=function(){return gr(this.display,4)||gr(this.display,33554432)||gr(this.display,268435456)||gr(this.display,536870912)||gr(this.display,67108864)||gr(this.display,134217728)},A}(),Nr=function(){return function(A){this.content=Ir(Er,A.content),this.quotes=Ir(Hr,A.quotes)}}(),Kr=function(){return function(A){this.counterIncrement=Ir(Fr,A.counterIncrement),this.counterReset=Ir(hr,A.counterReset)}}(),Ir=function(A,e){var t=new mA,r=null!==e&&void 0!==e?e.toString():A.initialValue;t.write(r);var n=new RA(t.read());switch(A.type){case Be.IDENT_VALUE:var B=n.parseComponentValue();return A.parse(vA(B)?B.value:A.initialValue);case Be.VALUE:return A.parse(n.parseComponentValue());case Be.LIST:return A.parse(n.parseComponentValues());case Be.TOKEN_VALUE:return n.parseComponentValue();case Be.TYPE_VALUE:switch(A.format){case"angle":return WA(n.parseComponentValue());case"color":return jA(n.parseComponentValue());case"image":return Me(n.parseComponentValue());case"length":var s=n.parseComponentValue();return PA(s)?s:zA;case"length-percentage":var o=n.parseComponentValue();return xA(o)?o:zA}}throw new Error("Attempting to parse unsupported css format type "+A.format)},Tr=function(){return function(A){this.styles=new pr(window.getComputedStyle(A,null)),this.textNodes=[],this.elements=[],null!==this.styles.transform&&Qn(A)&&(A.style.transform="none"),this.bounds=s(A),this.flags=0}}(),mr=function(){return function(A,e){this.text=A,this.bounds=e}}(),Rr=function(A,e,t){var r=[],n=0;return vr(A,e).forEach(function(A){if(e.textDecorationLine.length||A.trim().length>0)if(de.SUPPORT_RANGE_BOUNDS)r.push(new mr(A,Or(t,n,A.length)));else{var B=t.splitText(A.length);r.push(new mr(A,Lr(t))),t=B}else de.SUPPORT_RANGE_BOUNDS||(t=t.splitText(A.length));n+=A.length}),r},Lr=function(A){var e=A.ownerDocument;if(e){var t=e.createElement("html2canvaswrapper");t.appendChild(A.cloneNode(!0));var r=A.parentNode;if(r){r.replaceChild(t,A);var n=s(t);return t.firstChild&&r.replaceChild(t.firstChild,t),n}}return new B(0,0,0,0)},Or=function(A,e,t){var r=A.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(A,e),n.setEnd(A,e+t),B.fromClientRect(n.getBoundingClientRect())},vr=function(A,e){return 0!==e.letterSpacing?o(A).map(function(A){return i(A)}):Dr(A,e)},Dr=function(A,e){for(var t,r=function(A,e){var t=o(A),r=Z(t,e),n=r[0],B=r[1],s=r[2],i=t.length,a=0,c=0;return{next:function(){if(c>=i)return{done:!0,value:null};for(var A="×";c<i&&"×"===(A=q(t,B,n,++c,s)););if("×"!==A||c===i){var e=new j(t,A,a,c);return a=c,{value:e,done:!1}}return{done:!0,value:null}}}}(A,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap===bt.BREAK_WORD?"break-word":e.wordBreak}),n=[];!(t=r.next()).done;)t.value&&n.push(t.value.slice());return n},br=function(){return function(A,e){this.text=Sr(A.data,e.textTransform),this.textBounds=Rr(this.text,e,A)}}(),Sr=function(A,e){switch(e){case Gt.LOWERCASE:return A.toLowerCase();case Gt.CAPITALIZE:return A.replace(Mr,yr);case Gt.UPPERCASE:return A.toUpperCase();default:return A}},Mr=/(^|\s|:|-|\(|\))([a-z])/g,yr=function(A,e,t){return A.length>0?e+t.toUpperCase():A},_r=function(A){function t(e){var t=A.call(this,e)||this;return t.src=e.currentSrc||e.src,t.intrinsicWidth=e.naturalWidth,t.intrinsicHeight=e.naturalHeight,pe.getInstance().addImage(t.src),t}return e(t,A),t}(Tr),Pr=function(A){function t(e){var t=A.call(this,e)||this;return t.canvas=e,t.intrinsicWidth=e.width,t.intrinsicHeight=e.height,t}return e(t,A),t}(Tr),xr=function(A){function t(e){var t=A.call(this,e)||this,r=new XMLSerializer;return t.svg="data:image/svg+xml,"+encodeURIComponent(r.serializeToString(e)),t.intrinsicWidth=e.width.baseVal.value,t.intrinsicHeight=e.height.baseVal.value,pe.getInstance().addImage(t.svg),t}return e(t,A),t}(Tr),Vr=function(A){function t(e){var t=A.call(this,e)||this;return t.value=e.value,t}return e(t,A),t}(Tr),zr=function(A){function t(e){var t=A.call(this,e)||this;return t.start=e.start,t.reversed="boolean"==typeof e.reversed&&!0===e.reversed,t}return e(t,A),t}(Tr),Xr=[{type:u.DIMENSION_TOKEN,flags:0,unit:"px",number:3}],Jr=[{type:u.PERCENTAGE_TOKEN,flags:0,number:50}],Gr=function(A){return A.width>A.height?new B(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width<A.height?new B(A.left,A.top+(A.height-A.width)/2,A.width,A.width):A},kr=function(A){var e=A.type===qr?new Array(A.value.length+1).join("•"):A.value;return 0===e.length?A.placeholder||"":e},Wr="checkbox",Yr="radio",qr="password",Zr=function(A){function t(e){var t=A.call(this,e)||this;switch(t.type=e.type.toLowerCase(),t.checked=e.checked,t.value=kr(e),t.type!==Wr&&t.type!==Yr||(t.styles.backgroundColor=3739148031,t.styles.borderTopColor=t.styles.borderRightColor=t.styles.borderBottomColor=t.styles.borderLeftColor=2779096575,t.styles.borderTopWidth=t.styles.borderRightWidth=t.styles.borderBottomWidth=t.styles.borderLeftWidth=1,t.styles.borderTopStyle=t.styles.borderRightStyle=t.styles.borderBottomStyle=t.styles.borderLeftStyle=Ge.SOLID,t.styles.backgroundClip=[se.BORDER_BOX],t.styles.backgroundOrigin=[0],t.bounds=Gr(t.bounds)),t.type){case Wr:t.styles.borderTopRightRadius=t.styles.borderTopLeftRadius=t.styles.borderBottomRightRadius=t.styles.borderBottomLeftRadius=Xr;break;case Yr:t.styles.borderTopRightRadius=t.styles.borderTopLeftRadius=t.styles.borderBottomRightRadius=t.styles.borderBottomLeftRadius=Jr}return t}return e(t,A),t}(Tr),jr=function(A){function t(e){var t=A.call(this,e)||this,r=e.options[e.selectedIndex||0];return t.value=r&&r.text||"",t}return e(t,A),t}(Tr),$r=function(A){function t(e){var t=A.call(this,e)||this;return t.value=e.value,t}return e(t,A),t}(Tr),An=function(A){return jA(RA.create(A).parseComponentValue())},en=function(A){function t(e){var t=A.call(this,e)||this;t.src=e.src,t.width=parseInt(e.width,10)||0,t.height=parseInt(e.height,10)||0,t.backgroundColor=t.styles.backgroundColor;try{if(e.contentWindow&&e.contentWindow.document&&e.contentWindow.document.documentElement){t.tree=Bn(e.contentWindow.document.documentElement);var r=e.contentWindow.document.documentElement?An(getComputedStyle(e.contentWindow.document.documentElement).backgroundColor):ae.TRANSPARENT,n=e.contentWindow.document.body?An(getComputedStyle(e.contentWindow.document.body).backgroundColor):ae.TRANSPARENT;t.backgroundColor=$A(r)?$A(n)?t.styles.backgroundColor:n:r}}catch(A){}return t}return e(t,A),t}(Tr),tn=["OL","UL","MENU"],rn=function(A,e,t){for(var r=A.firstChild,n=void 0;r;r=n)if(n=r.nextSibling,an(r)&&r.data.trim().length>0)e.textNodes.push(new br(r,e.styles));else if(cn(r)){var B=nn(r);B.styles.isVisible()&&(sn(r,B,t)?B.flags|=4:on(B.styles)&&(B.flags|=2),-1!==tn.indexOf(r.tagName)&&(B.flags|=8),e.elements.push(B),dn(r)||ln(r)||fn(r)||rn(r,B,t))}},nn=function(A){return En(A)?new _r(A):gn(A)?new Pr(A):ln(A)?new xr(A):un(A)?new Vr(A):wn(A)?new zr(A):Un(A)?new Zr(A):fn(A)?new jr(A):dn(A)?new $r(A):Fn(A)?new en(A):new Tr(A)},Bn=function(A){var e=nn(A);return e.flags|=4,rn(A,e,e),e},sn=function(A,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Cn(A)&&t.styles.isTransparent()},on=function(A){return A.isPositioned()||A.isFloating()},an=function(A){return A.nodeType===Node.TEXT_NODE},cn=function(A){return A.nodeType===Node.ELEMENT_NODE},Qn=function(A){return void 0!==A.style},un=function(A){return"LI"===A.tagName},wn=function(A){return"OL"===A.tagName},Un=function(A){return"INPUT"===A.tagName},ln=function(A){return"svg"===A.tagName},Cn=function(A){return"BODY"===A.tagName},gn=function(A){return"CANVAS"===A.tagName},En=function(A){return"IMG"===A.tagName},Fn=function(A){return"IFRAME"===A.tagName},hn=function(A){return"STYLE"===A.tagName},Hn=function(A){return"SCRIPT"===A.tagName},dn=function(A){return"TEXTAREA"===A.tagName},fn=function(A){return"SELECT"===A.tagName},pn=function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(A){var e=this.counters[A];return e&&e.length?e[e.length-1]:1},A.prototype.getCounterValues=function(A){var e=this.counters[A];return e||[]},A.prototype.pop=function(A){var e=this;A.forEach(function(A){return e.counters[A].pop()})},A.prototype.parse=function(A){var e=this,t=A.counterIncrement,r=A.counterReset,n=!0;null!==t&&t.forEach(function(A){var t=e.counters[A.counter];t&&0!==A.increment&&(n=!1,t[Math.max(0,t.length-1)]+=A.increment)});var B=[];return n&&r.forEach(function(A){var t=e.counters[A.counter];B.push(A.counter),t||(t=e.counters[A.counter]=[]),t.push(A.reset)}),B},A}(),Nn={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Kn={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},In={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Tn={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},mn=function(A,e,t,r,n,B){return A<e||A>t?Dn(A,n,B.length>0):r.integers.reduce(function(e,t,n){for(;A>=t;)A-=t,e+=r.values[n];return e},"")+B},Rn=function(A,e,t,r){var n="";do{t||A--,n=r(A)+n,A/=e}while(A*e>=e);return n},Ln=function(A,e,t,r,n){var B=t-e+1;return(A<0?"-":"")+(Rn(Math.abs(A),B,r,function(A){return i(Math.floor(A%B)+e)})+n)},On=function(A,e,t){void 0===t&&(t=". ");var r=e.length;return Rn(Math.abs(A),r,!1,function(A){return e[Math.floor(A%r)]})+t},vn=function(A,e,t,r,n,B){if(A<-9999||A>9999)return Dn(A,Kt.CJK_DECIMAL,n.length>0);var s=Math.abs(A),o=n;if(0===s)return e[0]+o;for(var i=0;s>0&&i<=4;i++){var a=s%10;0===a&&gr(B,1)&&""!==o?o=e[a]+o:a>1||1===a&&0===i||1===a&&1===i&&gr(B,2)||1===a&&1===i&&gr(B,4)&&A>100||1===a&&i>1&&gr(B,8)?o=e[a]+(i>0?t[i-1]:"")+o:1===a&&i>0&&(o=t[i-1]+o),s=Math.floor(s/10)}return(A<0?r:"")+o},Dn=function(A,e,t){var r=t?". ":"",n=t?"、":"",B=t?", ":"",s=t?" ":"";switch(e){case Kt.DISC:return"•"+s;case Kt.CIRCLE:return"◦"+s;case Kt.SQUARE:return"◾"+s;case Kt.DECIMAL_LEADING_ZERO:var o=Ln(A,48,57,!0,r);return o.length<4?"0"+o:o;case Kt.CJK_DECIMAL:return On(A,"〇一二三四五六七八九",n);case Kt.LOWER_ROMAN:return mn(A,1,3999,Nn,Kt.DECIMAL,r).toLowerCase();case Kt.UPPER_ROMAN:return mn(A,1,3999,Nn,Kt.DECIMAL,r);case Kt.LOWER_GREEK:return Ln(A,945,969,!1,r);case Kt.LOWER_ALPHA:return Ln(A,97,122,!1,r);case Kt.UPPER_ALPHA:return Ln(A,65,90,!1,r);case Kt.ARABIC_INDIC:return Ln(A,1632,1641,!0,r);case Kt.ARMENIAN:case Kt.UPPER_ARMENIAN:return mn(A,1,9999,Kn,Kt.DECIMAL,r);case Kt.LOWER_ARMENIAN:return mn(A,1,9999,Kn,Kt.DECIMAL,r).toLowerCase();case Kt.BENGALI:return Ln(A,2534,2543,!0,r);case Kt.CAMBODIAN:case Kt.KHMER:return Ln(A,6112,6121,!0,r);case Kt.CJK_EARTHLY_BRANCH:return On(A,"子丑寅卯辰巳午未申酉戌亥",n);case Kt.CJK_HEAVENLY_STEM:return On(A,"甲乙丙丁戊己庚辛壬癸",n);case Kt.CJK_IDEOGRAPHIC:case Kt.TRAD_CHINESE_INFORMAL:return vn(A,"零一二三四五六七八九","十百千萬","負",n,14);case Kt.TRAD_CHINESE_FORMAL:return vn(A,"零壹貳參肆伍陸柒捌玖","拾佰仟萬","負",n,15);case Kt.SIMP_CHINESE_INFORMAL:return vn(A,"零一二三四五六七八九","十百千萬","负",n,14);case Kt.SIMP_CHINESE_FORMAL:return vn(A,"零壹贰叁肆伍陆柒捌玖","拾佰仟萬","负",n,15);case Kt.JAPANESE_INFORMAL:return vn(A,"〇一二三四五六七八九","十百千万","マイナス",n,0);case Kt.JAPANESE_FORMAL:return vn(A,"零壱弐参四伍六七八九","拾百千万","マイナス",n,7);case Kt.KOREAN_HANGUL_FORMAL:return vn(A,"영일이삼사오육칠팔구","십백천만","마이너스",B,7);case Kt.KOREAN_HANJA_INFORMAL:return vn(A,"零一二三四五六七八九","十百千萬","마이너스",B,0);case Kt.KOREAN_HANJA_FORMAL:return vn(A,"零壹貳參四五六七八九","拾百千","마이너스",B,7);case Kt.DEVANAGARI:return Ln(A,2406,2415,!0,r);case Kt.GEORGIAN:return mn(A,1,19999,Tn,Kt.DECIMAL,r);case Kt.GUJARATI:return Ln(A,2790,2799,!0,r);case Kt.GURMUKHI:return Ln(A,2662,2671,!0,r);case Kt.HEBREW:return mn(A,1,10999,In,Kt.DECIMAL,r);case Kt.HIRAGANA:return On(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case Kt.HIRAGANA_IROHA:return On(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case Kt.KANNADA:return Ln(A,3302,3311,!0,r);case Kt.KATAKANA:return On(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case Kt.KATAKANA_IROHA:return On(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case Kt.LAO:return Ln(A,3792,3801,!0,r);case Kt.MONGOLIAN:return Ln(A,6160,6169,!0,r);case Kt.MYANMAR:return Ln(A,4160,4169,!0,r);case Kt.ORIYA:return Ln(A,2918,2927,!0,r);case Kt.PERSIAN:return Ln(A,1776,1785,!0,r);case Kt.TAMIL:return Ln(A,3046,3055,!0,r);case Kt.TELUGU:return Ln(A,3174,3183,!0,r);case Kt.THAI:return Ln(A,3664,3673,!0,r);case Kt.TIBETAN:return Ln(A,3872,3881,!0,r);case Kt.DECIMAL:default:return Ln(A,48,57,!0,r)}},bn=function(){function A(A,e){if(this.options=e,this.scrolledElements=[],this.referenceElement=A,this.counters=new pn,this.quoteDepth=0,!A.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(A.ownerDocument.documentElement)}return A.prototype.toIFrame=function(A,e){var t=this,B=Mn(A,e);if(!B.contentWindow)return Promise.reject("Unable to find iframe window");var s=A.defaultView.pageXOffset,o=A.defaultView.pageYOffset,i=B.contentWindow,a=i.document,c=yn(B).then(function(){return r(t,void 0,void 0,function(){var A;return n(this,function(t){switch(t.label){case 0:return this.scrolledElements.forEach(Vn),i&&(i.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||i.scrollY===e.top&&i.scrollX===e.left||(a.documentElement.style.top=-e.top+"px",a.documentElement.style.left=-e.left+"px",a.documentElement.style.position="absolute")),A=this.options.onclone,void 0===this.clonedReferenceElement?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:a.fonts&&a.fonts.ready?[4,a.fonts.ready]:[3,2];case 1:t.sent(),t.label=2;case 2:return"function"==typeof A?[2,Promise.resolve().then(function(){return A(a)}).then(function(){return B})]:[2,B]}})})});return a.open(),a.write(Pn(document.doctype)+"<html></html>"),xn(this.referenceElement.ownerDocument,s,o),a.replaceChild(a.adoptNode(this.documentElement),a.documentElement),a.close(),c},A.prototype.createElementClone=function(A){return gn(A)?this.createCanvasClone(A):hn(A)?this.createStyleClone(A):A.cloneNode(!1)},A.prototype.createStyleClone=function(A){try{var e=A.sheet;if(e&&e.cssRules){var t=[].slice.call(e.cssRules,0).reduce(function(A,e){return e&&"string"==typeof e.cssText?A+e.cssText:A},""),r=A.cloneNode(!1);return r.textContent=t,r}}catch(A){if(fe.getInstance(this.options.id).error("Unable to access cssRules property",A),"SecurityError"!==A.name)throw A}return A.cloneNode(!1)},A.prototype.createCanvasClone=function(A){if(this.options.inlineImages&&A.ownerDocument){var e=A.ownerDocument.createElement("img");try{return e.src=A.toDataURL(),e}catch(A){fe.getInstance(this.options.id).info("Unable to clone canvas contents, canvas is tainted")}}var t=A.cloneNode(!1);try{t.width=A.width,t.height=A.height;var r=A.getContext("2d"),n=t.getContext("2d");return n&&(r?n.putImageData(r.getImageData(0,0,A.width,A.height),0,0):n.drawImage(A,0,0)),t}catch(A){}return t},A.prototype.cloneNode=function(A){if(an(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var e=A.ownerDocument.defaultView;if(Qn(A)&&e){var t=this.createElementClone(A),r=e.getComputedStyle(A),n=e.getComputedStyle(A,":before"),B=e.getComputedStyle(A,":after");this.referenceElement===A&&(this.clonedReferenceElement=t),Cn(t)&&Jn(t);for(var s=this.counters.parse(new Kr(r)),o=this.resolvePseudoContent(A,t,n,lr.BEFORE),i=A.firstChild;i;i=i.nextSibling)cn(i)&&(Hn(i)||i.hasAttribute("data-html2canvas-ignore")||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(i))||this.options.copyStyles&&cn(i)&&hn(i)||t.appendChild(this.cloneNode(i));o&&t.insertBefore(o,t.firstChild);var a=this.resolvePseudoContent(A,t,B,lr.AFTER);return a&&t.appendChild(a),this.counters.pop(s),r&&this.options.copyStyles&&!Fn(A)&&_n(r,t),0===A.scrollTop&&0===A.scrollLeft||this.scrolledElements.push([t,A.scrollLeft,A.scrollTop]),(dn(A)||fn(A))&&(dn(t)||fn(t))&&(t.value=A.value),t}return A.cloneNode(!1)},A.prototype.resolvePseudoContent=function(A,e,t,r){var n=this;if(t){var B=t.content,s=e.ownerDocument;if(s&&B&&"none"!==B&&"-moz-alt-content"!==B&&"none"!==t.display){this.counters.parse(new Kr(t));var o=new Nr(t),i=s.createElement("html2canvaspseudoelement");return _n(t,i),o.content.forEach(function(e){if(e.type===u.STRING_TOKEN)i.appendChild(s.createTextNode(e.value));else if(e.type===u.URL_TOKEN){var t=s.createElement("img");t.src=e.value,t.style.opacity="1",i.appendChild(t)}else if(e.type===u.FUNCTION){if("attr"===e.name){var r=e.values.filter(vA);r.length&&i.appendChild(s.createTextNode(A.getAttribute(r[0].value)||""))}else if("counter"===e.name){var B=e.values.filter(MA),a=B[0],c=B[1];if(a&&vA(a)){var Q=n.counters.getCounterValue(a.value),w=c&&vA(c)?mt.parse(c.value):Kt.DECIMAL;i.appendChild(s.createTextNode(Dn(Q,w,!1)))}}else if("counters"===e.name){var U=e.values.filter(MA),l=(a=U[0],U[1]);c=U[2];if(a&&vA(a)){var C=n.counters.getCounterValues(a.value),g=c&&vA(c)?mt.parse(c.value):Kt.DECIMAL,E=l&&l.type===u.STRING_TOKEN?l.value:"",F=C.map(function(A){return Dn(A,g,!1)}).join(E);i.appendChild(s.createTextNode(F))}}}else if(e.type===u.IDENT_TOKEN)switch(e.value){case"open-quote":i.appendChild(s.createTextNode(dr(o.quotes,n.quoteDepth++,!0)));break;case"close-quote":i.appendChild(s.createTextNode(dr(o.quotes,--n.quoteDepth,!1)));break;default:i.appendChild(s.createTextNode(e.value))}}),i.className=zn+" "+Xn,e.className+=r===lr.BEFORE?" "+zn:" "+Xn,i}}},A.destroy=function(A){return!!A.parentNode&&(A.parentNode.removeChild(A),!0)},A}();!function(A){A[A.BEFORE=0]="BEFORE",A[A.AFTER=1]="AFTER"}(lr||(lr={}));var Sn,Mn=function(A,e){var t=A.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute("data-html2canvas-ignore","true"),A.body.appendChild(t),t},yn=function(A){return new Promise(function(e,t){var r=A.contentWindow;if(!r)return t("No window assigned for iframe");var n=r.document;r.onload=A.onload=n.onreadystatechange=function(){r.onload=A.onload=n.onreadystatechange=null;var t=setInterval(function(){n.body.childNodes.length>0&&"complete"===n.readyState&&(clearInterval(t),e(A))},50)}})},_n=function(A,e){for(var t=A.length-1;t>=0;t--){var r=A.item(t);"content"!==r&&e.style.setProperty(r,A.getPropertyValue(r))}return e},Pn=function(A){var e="";return A&&(e+="<!DOCTYPE ",A.name&&(e+=A.name),A.internalSubset&&(e+=A.internalSubset),A.publicId&&(e+='"'+A.publicId+'"'),A.systemId&&(e+='"'+A.systemId+'"'),e+=">"),e},xn=function(A,e,t){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},Vn=function(A){var e=A[0],t=A[1],r=A[2];e.scrollLeft=t,e.scrollTop=r},zn="___html2canvas___pseudoelement_before",Xn="___html2canvas___pseudoelement_after",Jn=function(A){Gn(A,"."+zn+':before{\n content: "" !important;\n display: none !important;\n}\n .'+Xn+':after{\n content: "" !important;\n display: none !important;\n}')},Gn=function(A,e){var t=A.ownerDocument;if(t){var r=t.createElement("style");r.textContent=e,A.appendChild(r)}};!function(A){A[A.VECTOR=0]="VECTOR",A[A.BEZIER_CURVE=1]="BEZIER_CURVE"}(Sn||(Sn={}));var kn,Wn=function(A,e){return A.length===e.length&&A.some(function(A,t){return A===e[t]})},Yn=function(){function A(A,e){this.type=Sn.VECTOR,this.x=A,this.y=e}return A.prototype.add=function(e,t){return new A(this.x+e,this.y+t)},A}(),qn=function(A,e,t){return new Yn(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)},Zn=function(){function A(A,e,t,r){this.type=Sn.BEZIER_CURVE,this.start=A,this.startControl=e,this.endControl=t,this.end=r}return A.prototype.subdivide=function(e,t){var r=qn(this.start,this.startControl,e),n=qn(this.startControl,this.endControl,e),B=qn(this.endControl,this.end,e),s=qn(r,n,e),o=qn(n,B,e),i=qn(s,o,e);return t?new A(this.start,r,s,i):new A(i,o,B,this.end)},A.prototype.add=function(e,t){return new A(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A}(),jn=function(A){return A.type===Sn.BEZIER_CURVE},$n=function(){return function(A){var e=A.styles,t=A.bounds,r=GA(e.borderTopLeftRadius,t.width,t.height),n=r[0],B=r[1],s=GA(e.borderTopRightRadius,t.width,t.height),o=s[0],i=s[1],a=GA(e.borderBottomRightRadius,t.width,t.height),c=a[0],Q=a[1],u=GA(e.borderBottomLeftRadius,t.width,t.height),w=u[0],U=u[1],l=[];l.push((n+o)/t.width),l.push((w+c)/t.width),l.push((B+U)/t.height),l.push((i+Q)/t.height);var C=Math.max.apply(Math,l);C>1&&(n/=C,B/=C,o/=C,i/=C,c/=C,Q/=C,w/=C,U/=C);var g=t.width-o,E=t.height-Q,F=t.width-c,h=t.height-U,H=e.borderTopWidth,d=e.borderRightWidth,f=e.borderBottomWidth,p=e.borderLeftWidth,N=kA(e.paddingTop,A.bounds.width),K=kA(e.paddingRight,A.bounds.width),I=kA(e.paddingBottom,A.bounds.width),T=kA(e.paddingLeft,A.bounds.width);this.topLeftBorderBox=n>0||B>0?AB(t.left,t.top,n,B,kn.TOP_LEFT):new Yn(t.left,t.top),this.topRightBorderBox=o>0||i>0?AB(t.left+g,t.top,o,i,kn.TOP_RIGHT):new Yn(t.left+t.width,t.top),this.bottomRightBorderBox=c>0||Q>0?AB(t.left+F,t.top+E,c,Q,kn.BOTTOM_RIGHT):new Yn(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=w>0||U>0?AB(t.left,t.top+h,w,U,kn.BOTTOM_LEFT):new Yn(t.left,t.top+t.height),this.topLeftPaddingBox=n>0||B>0?AB(t.left+p,t.top+H,Math.max(0,n-p),Math.max(0,B-H),kn.TOP_LEFT):new Yn(t.left+p,t.top+H),this.topRightPaddingBox=o>0||i>0?AB(t.left+Math.min(g,t.width+p),t.top+H,g>t.width+p?0:o-p,i-H,kn.TOP_RIGHT):new Yn(t.left+t.width-d,t.top+H),this.bottomRightPaddingBox=c>0||Q>0?AB(t.left+Math.min(F,t.width-p),t.top+Math.min(E,t.height+H),Math.max(0,c-d),Q-f,kn.BOTTOM_RIGHT):new Yn(t.left+t.width-d,t.top+t.height-f),this.bottomLeftPaddingBox=w>0||U>0?AB(t.left+p,t.top+h,Math.max(0,w-p),U-f,kn.BOTTOM_LEFT):new Yn(t.left+p,t.top+t.height-f),this.topLeftContentBox=n>0||B>0?AB(t.left+p+T,t.top+H+N,Math.max(0,n-(p+T)),Math.max(0,B-(H+N)),kn.TOP_LEFT):new Yn(t.left+p+T,t.top+H+N),this.topRightContentBox=o>0||i>0?AB(t.left+Math.min(g,t.width+p+T),t.top+H+N,g>t.width+p+T?0:o-p+T,i-(H+N),kn.TOP_RIGHT):new Yn(t.left+t.width-(d+K),t.top+H+N),this.bottomRightContentBox=c>0||Q>0?AB(t.left+Math.min(F,t.width-(p+T)),t.top+Math.min(E,t.height+H+N),Math.max(0,c-(d+K)),Q-(f+I),kn.BOTTOM_RIGHT):new Yn(t.left+t.width-(d+K),t.top+t.height-(f+I)),this.bottomLeftContentBox=w>0||U>0?AB(t.left+p+T,t.top+h,Math.max(0,w-(p+T)),U-(f+I),kn.BOTTOM_LEFT):new Yn(t.left+p+T,t.top+t.height-(f+I))}}();!function(A){A[A.TOP_LEFT=0]="TOP_LEFT",A[A.TOP_RIGHT=1]="TOP_RIGHT",A[A.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",A[A.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(kn||(kn={}));var AB=function(A,e,t,r,n){var B=(Math.sqrt(2)-1)/3*4,s=t*B,o=r*B,i=A+t,a=e+r;switch(n){case kn.TOP_LEFT:return new Zn(new Yn(A,a),new Yn(A,a-o),new Yn(i-s,e),new Yn(i,e));case kn.TOP_RIGHT:return new Zn(new Yn(A,e),new Yn(A+s,e),new Yn(i,a-o),new Yn(i,a));case kn.BOTTOM_RIGHT:return new Zn(new Yn(i,e),new Yn(i,e+o),new Yn(A+s,a),new Yn(A,a));case kn.BOTTOM_LEFT:default:return new Zn(new Yn(i,a),new Yn(i-s,a),new Yn(A,e+o),new Yn(A,e))}},eB=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},tB=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},rB=function(){return function(A,e,t){this.type=0,this.offsetX=A,this.offsetY=e,this.matrix=t,this.target=6}}(),nB=function(){return function(A,e){this.type=1,this.target=e,this.path=A}}(),BB=function(){return function(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}}(),sB=function(){function A(A,e){if(this.container=A,this.effects=e.slice(0),this.curves=new $n(A),null!==A.styles.transform){var t=A.bounds.left+A.styles.transformOrigin[0].number,r=A.bounds.top+A.styles.transformOrigin[1].number,n=A.styles.transform;this.effects.push(new rB(t,r,n))}if(A.styles.overflowX!==Tt.VISIBLE){var B=eB(this.curves),s=tB(this.curves);Wn(B,s)?this.effects.push(new nB(B,6)):(this.effects.push(new nB(B,2)),this.effects.push(new nB(s,4)))}}return A.prototype.getParentEffects=function(){var A=this.effects.slice(0);if(this.container.styles.overflowX!==Tt.VISIBLE){var e=eB(this.curves),t=tB(this.curves);Wn(e,t)||A.push(new nB(t,6))}return A},A}(),oB=function(A,e,t,r){A.container.elements.forEach(function(n){var B=gr(n.flags,4),s=gr(n.flags,2),o=new sB(n,A.getParentEffects());gr(n.styles.display,2048)&&r.push(o);var i=gr(n.flags,8)?[]:r;if(B||s){var a=B||n.styles.isPositioned()?t:e,c=new BB(o);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var Q=n.styles.zIndex.order;if(Q<0){var u=0;a.negativeZIndex.some(function(A,e){return Q>A.element.container.styles.zIndex.order?(u=e,!1):u>0}),a.negativeZIndex.splice(u,0,c)}else if(Q>0){var w=0;a.positiveZIndex.some(function(A,e){return Q>A.element.container.styles.zIndex.order?(w=e+1,!1):w>0}),a.positiveZIndex.splice(w,0,c)}else a.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else n.styles.isFloating()?a.nonPositionedFloats.push(c):a.nonPositionedInlineLevel.push(c);oB(o,c,B?c:t,i)}else n.styles.isInlineLevel()?e.inlineLevel.push(o):e.nonInlineLevel.push(o),oB(o,e,t,i);gr(n.flags,8)&&iB(n,i)})},iB=function(A,e){for(var t=A instanceof zr?A.start:1,r=A instanceof zr&&A.reversed,n=0;n<e.length;n++){var B=e[n];B.container instanceof Vr&&"number"==typeof B.container.value&&0!==B.container.value&&(t=B.container.value),B.listValue=Dn(t,B.container.styles.listStyleType,!0),t+=r?-1:1}},aB=function(A,e,t,r){var n=[];return jn(A)?n.push(A.subdivide(.5,!1)):n.push(A),jn(t)?n.push(t.subdivide(.5,!0)):n.push(t),jn(r)?n.push(r.subdivide(.5,!0).reverse()):n.push(r),jn(e)?n.push(e.subdivide(.5,!1).reverse()):n.push(e),n},cB=function(A){var e=A.bounds,t=A.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},QB=function(A){var e=A.styles,t=A.bounds,r=kA(e.paddingLeft,t.width),n=kA(e.paddingRight,t.width),B=kA(e.paddingTop,t.width),s=kA(e.paddingBottom,t.width);return t.add(r+e.borderLeftWidth,B+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+r+n),-(e.borderTopWidth+e.borderBottomWidth+B+s))},uB=function(A,e,t){var r,n,B=(r=CB(A.styles.backgroundOrigin,e),n=A,0===r?n.bounds:2===r?QB(n):cB(n)),s=function(A,e){return A===se.BORDER_BOX?e.bounds:A===se.CONTENT_BOX?QB(e):cB(e)}(CB(A.styles.backgroundClip,e),A),o=lB(CB(A.styles.backgroundSize,e),t,B),i=o[0],a=o[1],c=GA(CB(A.styles.backgroundPosition,e),B.width-i,B.height-a);return[gB(CB(A.styles.backgroundRepeat,e),c,o,B,s),Math.round(B.left+c[0]),Math.round(B.top+c[1]),i,a]},wB=function(A){return vA(A)&&A.value===ze.AUTO},UB=function(A){return"number"==typeof A},lB=function(A,e,t){var r=e[0],n=e[1],B=e[2],s=A[0],o=A[1];if(xA(s)&&o&&xA(o))return[kA(s,t.width),kA(o,t.height)];var i=UB(B);if(vA(s)&&(s.value===ze.CONTAIN||s.value===ze.COVER))return UB(B)?t.width/t.height<B!=(s.value===ze.COVER)?[t.width,t.width/B]:[t.height*B,t.height]:[t.width,t.height];var a=UB(r),c=UB(n),Q=a||c;if(wB(s)&&(!o||wB(o)))return a&&c?[r,n]:i||Q?Q&&i?[a?r:n*B,c?n:r/B]:[a?r:t.width,c?n:t.height]:[t.width,t.height];if(i){var u=0,w=0;return xA(s)?u=kA(s,t.width):xA(o)&&(w=kA(o,t.height)),wB(s)?u=w*B:o&&!wB(o)||(w=u/B),[u,w]}var U=null,l=null;if(xA(s)?U=kA(s,t.width):o&&xA(o)&&(l=kA(o,t.height)),null===U||o&&!wB(o)||(l=a&&c?U/r*n:t.height),null!==l&&wB(s)&&(U=a&&c?l/n*r:t.width),null!==U&&null!==l)return[U,l];throw new Error("Unable to calculate background-size for element")},CB=function(A,e){var t=A[e];return void 0===t?A[0]:t},gB=function(A,e,t,r,n){var B=e[0],s=e[1],o=t[0],i=t[1];switch(A){case ye.REPEAT_X:return[new Yn(Math.round(r.left),Math.round(r.top+s)),new Yn(Math.round(r.left+r.width),Math.round(r.top+s)),new Yn(Math.round(r.left+r.width),Math.round(i+r.top+s)),new Yn(Math.round(r.left),Math.round(i+r.top+s))];case ye.REPEAT_Y:return[new Yn(Math.round(r.left+B),Math.round(r.top)),new Yn(Math.round(r.left+B+o),Math.round(r.top)),new Yn(Math.round(r.left+B+o),Math.round(r.height+r.top)),new Yn(Math.round(r.left+B),Math.round(r.height+r.top))];case ye.NO_REPEAT:return[new Yn(Math.round(r.left+B),Math.round(r.top+s)),new Yn(Math.round(r.left+B+o),Math.round(r.top+s)),new Yn(Math.round(r.left+B+o),Math.round(r.top+s+i)),new Yn(Math.round(r.left+B),Math.round(r.top+s+i))];default:return[new Yn(Math.round(n.left),Math.round(n.top)),new Yn(Math.round(n.left+n.width),Math.round(n.top)),new Yn(Math.round(n.left+n.width),Math.round(n.height+n.top)),new Yn(Math.round(n.left),Math.round(n.height+n.top))]}},EB=function(){function A(A){this._data={},this._document=A}return A.prototype.parseMetrics=function(A,e){var t=this._document.createElement("div"),r=this._document.createElement("img"),n=this._document.createElement("span"),B=this._document.body;t.style.visibility="hidden",t.style.fontFamily=A,t.style.fontSize=e,t.style.margin="0",t.style.padding="0",B.appendChild(t),r.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",n.style.fontFamily=A,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",n.appendChild(this._document.createTextNode("Hidden Text")),t.appendChild(n),t.appendChild(r);var s=r.offsetTop-n.offsetTop+2;t.removeChild(n),t.appendChild(this._document.createTextNode("Hidden Text")),t.style.lineHeight="normal",r.style.verticalAlign="super";var o=r.offsetTop-t.offsetTop+2;return B.removeChild(t),{baseline:s,middle:o}},A.prototype.getMetrics=function(A,e){var t=A+" "+e;return void 0===this._data[t]&&(this._data[t]=this.parseMetrics(A,e)),this._data[t]},A}(),FB=function(){function A(A){this._activeEffects=[],this.canvas=A.canvas?A.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=A,A.canvas||(this.canvas.width=Math.floor(A.width*A.scale),this.canvas.height=Math.floor(A.height*A.scale),this.canvas.style.width=A.width+"px",this.canvas.style.height=A.height+"px"),this.fontMetrics=new EB(document),this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-A.x+A.scrollX,-A.y+A.scrollY),this.ctx.textBaseline="bottom",this._activeEffects=[],fe.getInstance(A.id).debug("Canvas renderer initialized ("+A.width+"x"+A.height+" at "+A.x+","+A.y+") with scale "+A.scale)}return A.prototype.applyEffects=function(A,e){for(var t=this;this._activeEffects.length;)this.popEffect();A.filter(function(A){return gr(A.target,e)}).forEach(function(A){return t.applyEffect(A)})},A.prototype.applyEffect=function(A){this.ctx.save(),function(A){return 0===A.type}(A)&&(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)),function(A){return 1===A.type}(A)&&(this.path(A.path),this.ctx.clip()),this._activeEffects.push(A)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(A){return r(this,void 0,void 0,function(){var e;return n(this,function(t){switch(t.label){case 0:return(e=A.element.container.styles).isVisible()?(this.ctx.globalAlpha=e.opacity,[4,this.renderStackContent(A)]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(A){return r(this,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return A.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(A)]:[3,3];case 1:return e.sent(),[4,this.renderNodeContent(A)];case 2:e.sent(),e.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(A,e){var t=this;0===e?this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+A.bounds.height):o(A.text).map(function(A){return i(A)}).reduce(function(e,r){return t.ctx.fillText(r,e,A.bounds.top+A.bounds.height),e+t.ctx.measureText(r).width},A.bounds.left)},A.prototype.createFontStyle=function(A){var e=A.fontVariant.filter(function(A){return"normal"===A||"small-caps"===A}).join(""),t=A.fontFamily.join(", "),r=LA(A.fontSize)?""+A.fontSize.number+A.fontSize.unit:A.fontSize.number+"px";return[[A.fontStyle,e,A.fontWeight,r,t].join(" "),t,r]},A.prototype.renderTextNode=function(A,e){return r(this,void 0,void 0,function(){var t,r,B,s,o=this;return n(this,function(n){return t=this.createFontStyle(e),r=t[0],B=t[1],s=t[2],this.ctx.font=r,A.textBounds.forEach(function(A){o.ctx.fillStyle=Ae(e.color),o.renderTextWithLetterSpacing(A,e.letterSpacing);var t=e.textShadow;t.length&&A.text.trim().length&&(t.slice(0).reverse().forEach(function(e){o.ctx.shadowColor=Ae(e.color),o.ctx.shadowOffsetX=e.offsetX.number*o.options.scale,o.ctx.shadowOffsetY=e.offsetY.number*o.options.scale,o.ctx.shadowBlur=e.blur.number,o.ctx.fillText(A.text,A.bounds.left,A.bounds.top+A.bounds.height)}),o.ctx.shadowColor="",o.ctx.shadowOffsetX=0,o.ctx.shadowOffsetY=0,o.ctx.shadowBlur=0),e.textDecorationLine.length&&(o.ctx.fillStyle=Ae(e.textDecorationColor||e.color),e.textDecorationLine.forEach(function(e){switch(e){case 1:var t=o.fontMetrics.getMetrics(B,s).baseline;o.ctx.fillRect(A.bounds.left,Math.round(A.bounds.top+t),A.bounds.width,1);break;case 2:o.ctx.fillRect(A.bounds.left,Math.round(A.bounds.top),A.bounds.width,1);break;case 3:var r=o.fontMetrics.getMetrics(B,s).middle;o.ctx.fillRect(A.bounds.left,Math.ceil(A.bounds.top+r),A.bounds.width,1)}}))}),[2]})})},A.prototype.renderReplacedElement=function(A,e,t){if(t&&A.intrinsicWidth>0&&A.intrinsicHeight>0){var r=QB(A),n=tB(e);this.path(n),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(t,0,0,A.intrinsicWidth,A.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(e){return r(this,void 0,void 0,function(){var t,r,s,o,i,a,c,Q,w,U,l,C,g,E;return n(this,function(n){switch(n.label){case 0:this.applyEffects(e.effects,4),t=e.container,r=e.curves,s=t.styles,o=0,i=t.textNodes,n.label=1;case 1:return o<i.length?(a=i[o],[4,this.renderTextNode(a,s)]):[3,4];case 2:n.sent(),n.label=3;case 3:return o++,[3,1];case 4:if(!(t instanceof _r))return[3,8];n.label=5;case 5:return n.trys.push([5,7,,8]),[4,this.options.cache.match(t.src)];case 6:return C=n.sent(),this.renderReplacedElement(t,r,C),[3,8];case 7:return n.sent(),fe.getInstance(this.options.id).error("Error loading image "+t.src),[3,8];case 8:if(t instanceof Pr&&this.renderReplacedElement(t,r,t.canvas),!(t instanceof xr))return[3,12];n.label=9;case 9:return n.trys.push([9,11,,12]),[4,this.options.cache.match(t.svg)];case 10:return C=n.sent(),this.renderReplacedElement(t,r,C),[3,12];case 11:return n.sent(),fe.getInstance(this.options.id).error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof en&&t.tree?[4,new A({id:this.options.id,scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,scrollX:0,scrollY:0,width:t.width,height:t.height,cache:this.options.cache,windowWidth:t.width,windowHeight:t.height}).render(t.tree)]:[3,14];case 13:c=n.sent(),t.width&&t.height&&this.ctx.drawImage(c,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),n.label=14;case 14:if(t instanceof Zr&&(Q=Math.min(t.bounds.width,t.bounds.height),t.type===Wr?t.checked&&(this.ctx.save(),this.path([new Yn(t.bounds.left+.39363*Q,t.bounds.top+.79*Q),new Yn(t.bounds.left+.16*Q,t.bounds.top+.5549*Q),new Yn(t.bounds.left+.27347*Q,t.bounds.top+.44071*Q),new Yn(t.bounds.left+.39694*Q,t.bounds.top+.5649*Q),new Yn(t.bounds.left+.72983*Q,t.bounds.top+.23*Q),new Yn(t.bounds.left+.84*Q,t.bounds.top+.34085*Q),new Yn(t.bounds.left+.39363*Q,t.bounds.top+.79*Q)]),this.ctx.fillStyle=Ae(707406591),this.ctx.fill(),this.ctx.restore()):t.type===Yr&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+Q/2,t.bounds.top+Q/2,Q/4,0,2*Math.PI,!0),this.ctx.fillStyle=Ae(707406591),this.ctx.fill(),this.ctx.restore())),hB(t)&&t.value.length){switch(this.ctx.font=this.createFontStyle(s)[0],this.ctx.fillStyle=Ae(s.color),this.ctx.textBaseline="middle",this.ctx.textAlign=dB(t.styles.textAlign),E=QB(t),w=0,t.styles.textAlign){case Mt.CENTER:w+=E.width/2;break;case Mt.RIGHT:w+=E.width}U=E.add(w,0,0,-E.height/2+1),this.ctx.save(),this.path([new Yn(E.left,E.top),new Yn(E.left+E.width,E.top),new Yn(E.left+E.width,E.top+E.height),new Yn(E.left,E.top+E.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new mr(t.value,U),s.letterSpacing),this.ctx.restore(),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"}if(!gr(t.styles.display,2048))return[3,20];if(null===t.styles.listStyleImage)return[3,19];if((l=t.styles.listStyleImage).type!==ce.URL)return[3,18];C=void 0,g=l.url,n.label=15;case 15:return n.trys.push([15,17,,18]),[4,this.options.cache.match(g)];case 16:return C=n.sent(),this.ctx.drawImage(C,t.bounds.left-(C.width+10),t.bounds.top),[3,18];case 17:return n.sent(),fe.getInstance(this.options.id).error("Error loading list-style-image "+g),[3,18];case 18:return[3,20];case 19:e.listValue&&t.styles.listStyleType!==Kt.NONE&&(this.ctx.font=this.createFontStyle(s)[0],this.ctx.fillStyle=Ae(s.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",E=new B(t.bounds.left,t.bounds.top+kA(t.styles.paddingTop,t.bounds.width),t.bounds.width,(F=s.lineHeight,h=s.fontSize.number,(vA(F)&&"normal"===F.value?1.2*h:F.type===u.NUMBER_TOKEN?h*F.number:xA(F)?kA(F,h):h)/2+1)),this.renderTextWithLetterSpacing(new mr(e.listValue,E),s.letterSpacing),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),n.label=20;case 20:return[2]}var F,h})})},A.prototype.renderStackContent=function(A){return r(this,void 0,void 0,function(){var e,t,r,B,s,o,i,a,c,Q,u,w,U,l,C;return n(this,function(n){switch(n.label){case 0:return[4,this.renderNodeBackgroundAndBorders(A.element)];case 1:n.sent(),e=0,t=A.negativeZIndex,n.label=2;case 2:return e<t.length?(C=t[e],[4,this.renderStack(C)]):[3,5];case 3:n.sent(),n.label=4;case 4:return e++,[3,2];case 5:return[4,this.renderNodeContent(A.element)];case 6:n.sent(),r=0,B=A.nonInlineLevel,n.label=7;case 7:return r<B.length?(C=B[r],[4,this.renderNode(C)]):[3,10];case 8:n.sent(),n.label=9;case 9:return r++,[3,7];case 10:s=0,o=A.nonPositionedFloats,n.label=11;case 11:return s<o.length?(C=o[s],[4,this.renderStack(C)]):[3,14];case 12:n.sent(),n.label=13;case 13:return s++,[3,11];case 14:i=0,a=A.nonPositionedInlineLevel,n.label=15;case 15:return i<a.length?(C=a[i],[4,this.renderStack(C)]):[3,18];case 16:n.sent(),n.label=17;case 17:return i++,[3,15];case 18:c=0,Q=A.inlineLevel,n.label=19;case 19:return c<Q.length?(C=Q[c],[4,this.renderNode(C)]):[3,22];case 20:n.sent(),n.label=21;case 21:return c++,[3,19];case 22:u=0,w=A.zeroOrAutoZIndexOrTransformedOrOpacity,n.label=23;case 23:return u<w.length?(C=w[u],[4,this.renderStack(C)]):[3,26];case 24:n.sent(),n.label=25;case 25:return u++,[3,23];case 26:U=0,l=A.positiveZIndex,n.label=27;case 27:return U<l.length?(C=l[U],[4,this.renderStack(C)]):[3,30];case 28:n.sent(),n.label=29;case 29:return U++,[3,27];case 30:return[2]}})})},A.prototype.mask=function(A){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(A.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(A){this.ctx.beginPath(),this.formatPath(A),this.ctx.closePath()},A.prototype.formatPath=function(A){var e=this;A.forEach(function(A,t){var r=jn(A)?A.start:A;0===t?e.ctx.moveTo(r.x,r.y):e.ctx.lineTo(r.x,r.y),jn(A)&&e.ctx.bezierCurveTo(A.startControl.x,A.startControl.y,A.endControl.x,A.endControl.y,A.end.x,A.end.y)})},A.prototype.renderRepeat=function(A,e,t,r){this.path(A),this.ctx.fillStyle=e,this.ctx.translate(t,r),this.ctx.fill(),this.ctx.translate(-t,-r)},A.prototype.resizeImage=function(A,e,t){if(A.width===e&&A.height===t)return A;var r=this.canvas.ownerDocument.createElement("canvas");return r.width=e,r.height=t,r.getContext("2d").drawImage(A,0,0,A.width,A.height,0,0,e,t),r},A.prototype.renderBackgroundImage=function(A){return r(this,void 0,void 0,function(){var e,t,r,B,s,o;return n(this,function(i){switch(i.label){case 0:e=A.styles.backgroundImage.length-1,t=function(t){var B,s,o,i,a,c,Q,u,w,U,l,C,g,E,F,h,H,d,f,p,N,K,I,T,m,R,L,O,v,D,b;return n(this,function(n){switch(n.label){case 0:if(t.type!==ce.URL)return[3,5];B=void 0,s=t.url,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,r.options.cache.match(s)];case 2:return B=n.sent(),[3,4];case 3:return n.sent(),fe.getInstance(r.options.id).error("Error loading background-image "+s),[3,4];case 4:return B&&(o=uB(A,e,[B.width,B.height,B.width/B.height]),h=o[0],K=o[1],I=o[2],f=o[3],p=o[4],E=r.ctx.createPattern(r.resizeImage(B,f,p),"repeat"),r.renderRepeat(h,E,K,I)),[3,6];case 5:t.type===ce.LINEAR_GRADIENT?(i=uB(A,e,[null,null,null]),h=i[0],K=i[1],I=i[2],f=i[3],p=i[4],a=le(t.angle,f,p),c=a[0],Q=a[1],u=a[2],w=a[3],U=a[4],(l=document.createElement("canvas")).width=f,l.height=p,C=l.getContext("2d"),g=C.createLinearGradient(Q,w,u,U),Ue(t.stops,c).forEach(function(A){return g.addColorStop(A.stop,Ae(A.color))}),C.fillStyle=g,C.fillRect(0,0,f,p),f>0&&p>0&&(E=r.ctx.createPattern(l,"repeat"),r.renderRepeat(h,E,K,I))):function(A){return A.type===ce.RADIAL_GRADIENT}(t)&&(F=uB(A,e,[null,null,null]),h=F[0],H=F[1],d=F[2],f=F[3],p=F[4],N=0===t.position.length?[XA]:t.position,K=kA(N[0],f),I=kA(N[N.length-1],p),T=function(A,e,t,r,n){var B=0,s=0;switch(A.size){case Se.CLOSEST_SIDE:A.shape===be.CIRCLE?B=s=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-n)):A.shape===be.ELLIPSE&&(B=Math.min(Math.abs(e),Math.abs(e-r)),s=Math.min(Math.abs(t),Math.abs(t-n)));break;case Se.CLOSEST_CORNER:if(A.shape===be.CIRCLE)B=s=Math.min(Ce(e,t),Ce(e,t-n),Ce(e-r,t),Ce(e-r,t-n));else if(A.shape===be.ELLIPSE){var o=Math.min(Math.abs(t),Math.abs(t-n))/Math.min(Math.abs(e),Math.abs(e-r)),i=ge(r,n,e,t,!0),a=i[0],c=i[1];s=o*(B=Ce(a-e,(c-t)/o))}break;case Se.FARTHEST_SIDE:A.shape===be.CIRCLE?B=s=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-n)):A.shape===be.ELLIPSE&&(B=Math.max(Math.abs(e),Math.abs(e-r)),s=Math.max(Math.abs(t),Math.abs(t-n)));break;case Se.FARTHEST_CORNER:if(A.shape===be.CIRCLE)B=s=Math.max(Ce(e,t),Ce(e,t-n),Ce(e-r,t),Ce(e-r,t-n));else if(A.shape===be.ELLIPSE){o=Math.max(Math.abs(t),Math.abs(t-n))/Math.max(Math.abs(e),Math.abs(e-r));var Q=ge(r,n,e,t,!1);a=Q[0],c=Q[1],s=o*(B=Ce(a-e,(c-t)/o))}}return Array.isArray(A.size)&&(B=kA(A.size[0],r),s=2===A.size.length?kA(A.size[1],n):B),[B,s]}(t,K,I,f,p),m=T[0],R=T[1],m>0&&m>0&&(L=r.ctx.createRadialGradient(H+K,d+I,0,H+K,d+I,m),Ue(t.stops,2*m).forEach(function(A){return L.addColorStop(A.stop,Ae(A.color))}),r.path(h),r.ctx.fillStyle=L,m!==R?(O=A.bounds.left+.5*A.bounds.width,v=A.bounds.top+.5*A.bounds.height,b=1/(D=R/m),r.ctx.save(),r.ctx.translate(O,v),r.ctx.transform(1,0,0,D,0,0),r.ctx.translate(-O,-v),r.ctx.fillRect(H,b*(d-v)+v,f,p*b),r.ctx.restore()):r.ctx.fill())),n.label=6;case 6:return e--,[2]}})},r=this,B=0,s=A.styles.backgroundImage.slice(0).reverse(),i.label=1;case 1:return B<s.length?(o=s[B],[5,t(o)]):[3,4];case 2:i.sent(),i.label=3;case 3:return B++,[3,1];case 4:return[2]}})})},A.prototype.renderBorder=function(A,e,t){return r(this,void 0,void 0,function(){return n(this,function(r){return this.path(function(A,e){switch(e){case 0:return aB(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return aB(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return aB(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);case 3:default:return aB(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}}(t,e)),this.ctx.fillStyle=Ae(A),this.ctx.fill(),[2]})})},A.prototype.renderNodeBackgroundAndBorders=function(A){return r(this,void 0,void 0,function(){var e,t,r,B,s,o,i,a,c=this;return n(this,function(n){switch(n.label){case 0:return this.applyEffects(A.effects,2),e=A.container.styles,t=!$A(e.backgroundColor)||e.backgroundImage.length,r=[{style:e.borderTopStyle,color:e.borderTopColor},{style:e.borderRightStyle,color:e.borderRightColor},{style:e.borderBottomStyle,color:e.borderBottomColor},{style:e.borderLeftStyle,color:e.borderLeftColor}],B=HB(CB(e.backgroundClip,0),A.curves),t||e.boxShadow.length?(this.ctx.save(),this.path(B),this.ctx.clip(),$A(e.backgroundColor)||(this.ctx.fillStyle=Ae(e.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(A.container)]):[3,2];case 1:n.sent(),this.ctx.restore(),e.boxShadow.slice(0).reverse().forEach(function(e){c.ctx.save();var t,r,n,B,s,o=eB(A.curves),i=e.inset?0:1e4,a=(t=o,r=-i+(e.inset?1:-1)*e.spread.number,n=(e.inset?1:-1)*e.spread.number,B=e.spread.number*(e.inset?-2:2),s=e.spread.number*(e.inset?-2:2),t.map(function(A,e){switch(e){case 0:return A.add(r,n);case 1:return A.add(r+B,n);case 2:return A.add(r+B,n+s);case 3:return A.add(r,n+s)}return A}));e.inset?(c.path(o),c.ctx.clip(),c.mask(a)):(c.mask(o),c.ctx.clip(),c.path(a)),c.ctx.shadowOffsetX=e.offsetX.number+i,c.ctx.shadowOffsetY=e.offsetY.number,c.ctx.shadowColor=Ae(e.color),c.ctx.shadowBlur=e.blur.number,c.ctx.fillStyle=e.inset?Ae(e.color):"rgba(0,0,0,1)",c.ctx.fill(),c.ctx.restore()}),n.label=2;case 2:s=0,o=0,i=r,n.label=3;case 3:return o<i.length?(a=i[o]).style===Ge.NONE||$A(a.color)?[3,5]:[4,this.renderBorder(a.color,s,A.curves)]:[3,7];case 4:n.sent(),n.label=5;case 5:s++,n.label=6;case 6:return o++,[3,3];case 7:return[2]}})})},A.prototype.render=function(A){return r(this,void 0,void 0,function(){var e;return n(this,function(t){switch(t.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Ae(this.options.backgroundColor),this.ctx.fillRect(this.options.x-this.options.scrollX,this.options.y-this.options.scrollY,this.options.width,this.options.height)),r=new sB(A,[]),n=new BB(r),oB(r,n,n,B=[]),iB(r.container,B),e=n,[4,this.renderStack(e)];case 1:return t.sent(),this.applyEffects([],2),[2,this.canvas]}var r,n,B})})},A}(),hB=function(A){return A instanceof $r||(A instanceof jr||A instanceof Zr&&A.type!==Yr&&A.type!==Wr)},HB=function(A,e){switch(A){case se.BORDER_BOX:return eB(e);case se.CONTENT_BOX:return function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]}(e);case se.PADDING_BOX:default:return tB(e)}},dB=function(A){switch(A){case Mt.CENTER:return"center";case Mt.RIGHT:return"right";case Mt.LEFT:default:return"left"}},fB=function(){function A(A){this.canvas=A.canvas?A.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=A,this.canvas.width=Math.floor(A.width*A.scale),this.canvas.height=Math.floor(A.height*A.scale),this.canvas.style.width=A.width+"px",this.canvas.style.height=A.height+"px",this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-A.x+A.scrollX,-A.y+A.scrollY),fe.getInstance(A.id).debug("EXPERIMENTAL ForeignObject renderer initialized ("+A.width+"x"+A.height+" at "+A.x+","+A.y+") with scale "+A.scale)}return A.prototype.render=function(A){return r(this,void 0,void 0,function(){var e,t;return n(this,function(r){switch(r.label){case 0:return e=he(Math.max(this.options.windowWidth,this.options.width)*this.options.scale,Math.max(this.options.windowHeight,this.options.height)*this.options.scale,this.options.scrollX*this.options.scale,this.options.scrollY*this.options.scale,A),[4,pB(e)];case 1:return t=r.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Ae(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(t,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},A}(),pB=function(A){return new Promise(function(e,t){var r=new Image;r.onload=function(){e(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(A))})},NB=function(A){return jA(RA.create(A).parseComponentValue())};pe.setContext(window);var KB=function(A,e){return r(void 0,void 0,void 0,function(){var r,o,i,a,c,Q,u,w,U,l,C,g,E,F,h,H,d,f,p,N,K,I,T;return n(this,function(n){switch(n.label){case 0:if(!(r=A.ownerDocument))throw new Error("Element is not attached to a Document");if(!(o=r.defaultView))throw new Error("Document is not attached to a Window");return i=(Math.round(1e3*Math.random())+Date.now()).toString(16),a=Cn(A)||"HTML"===A.tagName?function(A){var e=A.body,t=A.documentElement;if(!e||!t)throw new Error("Unable to get document size");var r=Math.max(Math.max(e.scrollWidth,t.scrollWidth),Math.max(e.offsetWidth,t.offsetWidth),Math.max(e.clientWidth,t.clientWidth)),n=Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight));return new B(0,0,r,n)}(r):s(A),c=a.width,Q=a.height,u=a.left,w=a.top,U=t({},{allowTaint:!1,imageTimeout:15e3,proxy:void 0,useCORS:!1},e),l={backgroundColor:"#ffffff",cache:e.cache?e.cache:pe.create(i,U),logging:!0,removeContainer:!0,foreignObjectRendering:!1,scale:o.devicePixelRatio||1,windowWidth:o.innerWidth,windowHeight:o.innerHeight,scrollX:o.pageXOffset,scrollY:o.pageYOffset,x:u,y:w,width:Math.ceil(c),height:Math.ceil(Q),id:i},C=t({},l,U,e),g=new B(C.scrollX,C.scrollY,C.windowWidth,C.windowHeight),fe.create({id:i,enabled:C.logging}),fe.getInstance(i).debug("Starting document clone"),E=new bn(A,{id:i,onclone:C.onclone,ignoreElements:C.ignoreElements,inlineImages:C.foreignObjectRendering,copyStyles:C.foreignObjectRendering}),(F=E.clonedReferenceElement)?[4,E.toIFrame(r,g)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return h=n.sent(),H=r.documentElement?NB(getComputedStyle(r.documentElement).backgroundColor):ae.TRANSPARENT,d=r.body?NB(getComputedStyle(r.body).backgroundColor):ae.TRANSPARENT,f=e.backgroundColor,p="string"==typeof f?NB(f):null===f?ae.TRANSPARENT:4294967295,N=A===r.documentElement?$A(H)?$A(d)?p:d:H:p,K={id:i,cache:C.cache,canvas:C.canvas,backgroundColor:N,scale:C.scale,x:C.x,y:C.y,scrollX:C.scrollX,scrollY:C.scrollY,width:C.width,height:C.height,windowWidth:C.windowWidth,windowHeight:C.windowHeight},C.foreignObjectRendering?(fe.getInstance(i).debug("Document cloned, using foreign object rendering"),[4,new fB(K).render(F)]):[3,3];case 2:return I=n.sent(),[3,5];case 3:return fe.getInstance(i).debug("Document cloned, using computed rendering"),pe.attachInstance(C.cache),fe.getInstance(i).debug("Starting DOM parsing"),T=Bn(F),pe.detachInstance(),N===T.styles.backgroundColor&&(T.styles.backgroundColor=ae.TRANSPARENT),fe.getInstance(i).debug("Starting renderer"),[4,new FB(K).render(T)];case 4:I=n.sent(),n.label=5;case 5:return!0===C.removeContainer&&(bn.destroy(h)||fe.getInstance(i).error("Cannot detach cloned iframe as it is not in the DOM anymore")),fe.getInstance(i).debug("Finished rendering"),fe.destroy(i),pe.destroy(i),[2,I]}})})};return function(A,e){return void 0===e&&(e={}),KB(A,e)}});
},{}],192:[function(require,module,exports){
(function (global){
!function(t){"function"==typeof define&&define.amd?define(t):t()}(function(){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}!function(e){if("object"!==t(e.console)){e.console={};for(var n,r,i=e.console,o=function(){},a=["memory"],s="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");n=a.pop();)i[n]||(i[n]={});for(;r=s.pop();)i[r]||(i[r]=o)}var l,h,u,c,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";void 0===e.btoa&&(e.btoa=function(t){var e,n,r,i,o,a=0,s=0,l="",h=[];if(!t)return t;for(;e=(o=t.charCodeAt(a++)<<16|t.charCodeAt(a++)<<8|t.charCodeAt(a++))>>18&63,n=o>>12&63,r=o>>6&63,i=63&o,h[s++]=f.charAt(e)+f.charAt(n)+f.charAt(r)+f.charAt(i),a<t.length;);l=h.join("");var u=t.length%3;return(u?l.slice(0,u-3):l)+"===".slice(u||3)}),void 0===e.atob&&(e.atob=function(t){var e,n,r,i,o,a,s=0,l=0,h=[];if(!t)return t;for(t+="";e=(a=f.indexOf(t.charAt(s++))<<18|f.indexOf(t.charAt(s++))<<12|(i=f.indexOf(t.charAt(s++)))<<6|(o=f.indexOf(t.charAt(s++))))>>16&255,n=a>>8&255,r=255&a,h[l++]=64==i?String.fromCharCode(e):64==o?String.fromCharCode(e,n):String.fromCharCode(e,n,r),s<t.length;);return h.join("")}),Array.prototype.map||(Array.prototype.map=function(t){if(null==this||"function"!=typeof t)throw new TypeError;for(var e=Object(this),n=e.length>>>0,r=new Array(n),i=1<arguments.length?arguments[1]:void 0,o=0;o<n;o++)o in e&&(r[o]=t.call(i,e[o],o,e));return r}),Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),Array.prototype.forEach||(Array.prototype.forEach=function(t,e){if(null==this||"function"!=typeof t)throw new TypeError;for(var n=Object(this),r=n.length>>>0,i=0;i<r;i++)i in n&&t.call(e,n[i],i,n)}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null==this)throw new TypeError('"this" is null or not defined');var e=Object(this),n=e.length>>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var r=arguments[1],i=0;i<n;){var o=e[i];if(t.call(r,o,i,e))return o;i++}},configurable:!0,writable:!0}),Object.keys||(Object.keys=(l=Object.prototype.hasOwnProperty,h=!{toString:null}.propertyIsEnumerable("toString"),c=(u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(e){if("object"!==t(e)&&("function"!=typeof e||null===e))throw new TypeError;var n,r,i=[];for(n in e)l.call(e,n)&&i.push(n);if(h)for(r=0;r<c;r++)l.call(e,u[r])&&i.push(u[r]);return i})),"function"!=typeof Object.assign&&(Object.assign=function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");t=Object(t);for(var e=1;e<arguments.length;e++){var n=arguments[e];if(null!=n)for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),String.prototype.trimLeft||(String.prototype.trimLeft=function(){return this.replace(/^\s+/g,"")}),String.prototype.trimRight||(String.prototype.trimRight=function(){return this.replace(/\s+$/g,"")}),Number.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof global&&global||Function('return typeof this === "object" && this.content')()||Function("return this")());var e,n,r,i,o,a,s,l,h,u,c,f,p,d,g,m,y,v,w,b,x,N,L,A,S,_,F,P,k,I,C,B,j,E,M,O,q,T,R,D,U,z,H,W,V,G,Y,J,X,K,Z,Q,$,tt,et,nt,rt,it,ot,at,st,lt,ht=function(e){function n(n){if("object"!==t(n))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var r={};this.subscribe=function(t,e,n){if(n=n||!1,"string"!=typeof t||"function"!=typeof e||"boolean"!=typeof n)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");r.hasOwnProperty(t)||(r[t]={});var i=Math.random().toString(35);return r[t][i]=[e,!!n],i},this.unsubscribe=function(t){for(var e in r)if(r[e][t])return delete r[e][t],0===Object.keys(r[e]).length&&delete r[e],!0;return!1},this.publish=function(t){if(r.hasOwnProperty(t)){var i=Array.prototype.slice.call(arguments,1),o=[];for(var a in r[t]){var s=r[t][a];try{s[0].apply(n,i)}catch(t){e.console&&console.error("jsPDF PubSub Error",t.message,t)}s[1]&&o.push(a)}o.length&&o.forEach(this.unsubscribe)}},this.getTopics=function(){return r}}function r(i,o,a,s){var l={},h=[],u=1;"object"===t(i)&&(i=(l=i).orientation,o=l.unit||o,a=l.format||a,s=l.compress||l.compressPdf||s,h=l.filters||(!0===s?["FlateEncode"]:h),u="number"==typeof l.userUnit?Math.abs(l.userUnit):1),o=o||"mm",i=(""+(i||"P")).toLowerCase();var c=l.putOnlyUsedFonts||!0,f={},p={internal:{},__private__:{}};p.__private__.PubSub=n;var d="1.3",g=p.__private__.getPdfVersion=function(){return d},m=(p.__private__.setPdfVersion=function(t){d=t},{a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]}),y=(p.__private__.getPageFormats=function(){return m},p.__private__.getPageFormat=function(t){return m[t]});"string"==typeof a&&(a=y(a)),a=a||y("a4");var v,w=p.f2=p.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return t.toFixed(2)},b=p.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return t.toFixed(3)},x="00000000000000000000000000000000",N=p.__private__.getFileId=function(){return x},L=p.__private__.setFileId=function(t){return t=t||"12345678901234567890123456789012".split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),x=t};p.setFileId=function(t){return L(t),this},p.getFileId=function(){return N()};var A=p.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),n=e<0?"+":"-",r=Math.floor(Math.abs(e/60)),i=Math.abs(e%60),o=[n,O(r),"'",O(i),"'"].join("");return["D:",t.getFullYear(),O(t.getMonth()+1),O(t.getDate()),O(t.getHours()),O(t.getMinutes()),O(t.getSeconds()),o].join("")},S=p.__private__.convertPDFDateToDate=function(t){var e=parseInt(t.substr(2,4),10),n=parseInt(t.substr(6,2),10)-1,r=parseInt(t.substr(8,2),10),i=parseInt(t.substr(10,2),10),o=parseInt(t.substr(12,2),10),a=parseInt(t.substr(14,2),10);return parseInt(t.substr(16,2),10),parseInt(t.substr(20,2),10),new Date(e,n,r,i,o,a,0)},_=p.__private__.setCreationDate=function(e){var n;if(void 0===e&&(e=new Date),"object"===t(e)&&"[object Date]"===Object.prototype.toString.call(e))n=A(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");n=e}return v=n},F=p.__private__.getCreationDate=function(t){var e=v;return"jsDate"===t&&(e=S(v)),e};p.setCreationDate=function(t){return _(t),this},p.getCreationDate=function(t){return F(t)};var P,k,I,C,B,j,E,M,O=p.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},q=!1,T=[],R=[],D=0,U=(p.__private__.setCustomOutputDestination=function(t){k=t},p.__private__.resetCustomOutputDestination=function(t){k=void 0},p.__private__.out=function(t){var e;return t="string"==typeof t?t:t.toString(),(e=void 0===k?q?T[P]:R:k).push(t),q||(D+=t.length+1),e}),z=p.__private__.write=function(t){return U(1===arguments.length?t.toString():Array.prototype.join.call(arguments," "))},H=p.__private__.getArrayBuffer=function(t){for(var e=t.length,n=new ArrayBuffer(e),r=new Uint8Array(n);e--;)r[e]=t.charCodeAt(e);return n},W=[["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]],V=(p.__private__.getStandardFonts=function(t){return W},l.fontSize||16),G=(p.__private__.setFontSize=p.setFontSize=function(t){return V=t,this},p.__private__.getFontSize=p.getFontSize=function(){return V}),Y=l.R2L||!1,J=(p.__private__.setR2L=p.setR2L=function(t){return Y=t,this},p.__private__.getR2L=p.getR2L=function(t){return Y},p.__private__.setZoomMode=function(t){if(/^\d*\.?\d*\%$/.test(t))I=t;else if(isNaN(t)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(t))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+t+'" is not recognized.');I=t}else I=parseInt(t,10)}),X=(p.__private__.getZoomMode=function(){return I},p.__private__.setPageMode=function(t){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(t))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+t+'" is not recognized.');C=t}),K=(p.__private__.getPageMode=function(){return C},p.__private__.setLayoutMode=function(t){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(t))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+t+'" is not recognized.');B=t}),Z=(p.__private__.getLayoutMode=function(){return B},p.__private__.setDisplayMode=p.setDisplayMode=function(t,e,n){return J(t),K(e),X(n),this},{title:"",subject:"",author:"",keywords:"",creator:""}),Q=(p.__private__.getDocumentProperty=function(t){if(-1===Object.keys(Z).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Z[t]},p.__private__.getDocumentProperties=function(t){return Z},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(t){for(var e in Z)Z.hasOwnProperty(e)&&t[e]&&(Z[e]=t[e]);return this},p.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(Z).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Z[t]=e},0),$=[],tt={},et={},nt=0,rt=[],it=[],ot=new n(p),at=l.hotfixes||[],st=p.__private__.newObject=function(){var t=lt();return ht(t,!0),t},lt=p.__private__.newObjectDeferred=function(){return $[++Q]=function(){return D},Q},ht=function(t,e){return e="boolean"==typeof e&&e,$[t]=D,e&&U(t+" 0 obj"),t},ut=p.__private__.newAdditionalObject=function(){var t={objId:lt(),content:""};return it.push(t),t},ct=lt(),ft=lt(),pt=p.__private__.decodeColorString=function(t){var e=t.split(" ");if(2===e.length&&("g"===e[1]||"G"===e[1])){var n=parseFloat(e[0]);e=[n,n,n,"r"]}for(var r="#",i=0;i<3;i++)r+=("0"+Math.floor(255*parseFloat(e[i])).toString(16)).slice(-2);return r},dt=p.__private__.encodeColorString=function(e){var n;"string"==typeof e&&(e={ch1:e});var r=e.ch1,i=e.ch2,o=e.ch3,a=e.ch4,s=(e.precision,"draw"===e.pdfColorType?["G","RG","K"]:["g","rg","k"]);if("string"==typeof r&&"#"!==r.charAt(0)){var l=new RGBColor(r);if(l.ok)r=l.toHex();else if(!/^\d*\.?\d*$/.test(r))throw new Error('Invalid color "'+r+'" passed to jsPDF.encodeColorString.')}if("string"==typeof r&&/^#[0-9A-Fa-f]{3}$/.test(r)&&(r="#"+r[1]+r[1]+r[2]+r[2]+r[3]+r[3]),"string"==typeof r&&/^#[0-9A-Fa-f]{6}$/.test(r)){var h=parseInt(r.substr(1),16);r=h>>16&255,i=h>>8&255,o=255&h}if(void 0===i||void 0===a&&r===i&&i===o)if("string"==typeof r)n=r+" "+s[0];else switch(e.precision){case 2:n=w(r/255)+" "+s[0];break;case 3:default:n=b(r/255)+" "+s[0]}else if(void 0===a||"object"===t(a)){if(a&&!isNaN(a.a)&&0===a.a)return["1.000","1.000","1.000",s[1]].join(" ");if("string"==typeof r)n=[r,i,o,s[1]].join(" ");else switch(e.precision){case 2:n=[w(r/255),w(i/255),w(o/255),s[1]].join(" ");break;default:case 3:n=[b(r/255),b(i/255),b(o/255),s[1]].join(" ")}}else if("string"==typeof r)n=[r,i,o,a,s[2]].join(" ");else switch(e.precision){case 2:n=[w(r/255),w(i/255),w(o/255),w(a/255),s[2]].join(" ");break;case 3:default:n=[b(r/255),b(i/255),b(o/255),b(a/255),s[2]].join(" ")}return n},gt=p.__private__.getFilters=function(){return h},mt=p.__private__.putStream=function(t){var e,n=(t=t||{}).data||"",i=t.filters||gt(),o=t.alreadyAppliedFilters||[],a=t.addLength1||!1,s=n.length;!0===i&&(i=["FlateEncode"]);var l=t.additionalKeyValues||[],h=(e=void 0!==r.API.processDataByFilters?r.API.processDataByFilters(n,i):{data:n,reverseChain:[]}).reverseChain+(Array.isArray(o)?o.join(" "):o.toString());0!==e.data.length&&(l.push({key:"Length",value:e.data.length}),!0===a&&l.push({key:"Length1",value:s})),0!=h.length&&(h.split("/").length-1==1?l.push({key:"Filter",value:h}):l.push({key:"Filter",value:"["+h+"]"})),U("<<");for(var u=0;u<l.length;u++)U("/"+l[u].key+" "+l[u].value);U(">>"),0!==e.data.length&&(U("stream"),U(e.data),U("endstream"))},yt=p.__private__.putPage=function(t){t.mediaBox;var e=t.number,n=t.data,r=t.objId,i=t.contentsObjId;ht(r,!0),rt[P].mediaBox.topRightX,rt[P].mediaBox.bottomLeftX,rt[P].mediaBox.topRightY,rt[P].mediaBox.bottomLeftY,U("<</Type /Page"),U("/Parent "+t.rootDictionaryObjId+" 0 R"),U("/Resources "+t.resourceDictionaryObjId+" 0 R"),U("/MediaBox ["+parseFloat(w(t.mediaBox.bottomLeftX))+" "+parseFloat(w(t.mediaBox.bottomLeftY))+" "+w(t.mediaBox.topRightX)+" "+w(t.mediaBox.topRightY)+"]"),null!==t.cropBox&&U("/CropBox ["+w(t.cropBox.bottomLeftX)+" "+w(t.cropBox.bottomLeftY)+" "+w(t.cropBox.topRightX)+" "+w(t.cropBox.topRightY)+"]"),null!==t.bleedBox&&U("/BleedBox ["+w(t.bleedBox.bottomLeftX)+" "+w(t.bleedBox.bottomLeftY)+" "+w(t.bleedBox.topRightX)+" "+w(t.bleedBox.topRightY)+"]"),null!==t.trimBox&&U("/TrimBox ["+w(t.trimBox.bottomLeftX)+" "+w(t.trimBox.bottomLeftY)+" "+w(t.trimBox.topRightX)+" "+w(t.trimBox.topRightY)+"]"),null!==t.artBox&&U("/ArtBox ["+w(t.artBox.bottomLeftX)+" "+w(t.artBox.bottomLeftY)+" "+w(t.artBox.topRightX)+" "+w(t.artBox.topRightY)+"]"),"number"==typeof t.userUnit&&1!==t.userUnit&&U("/UserUnit "+t.userUnit),ot.publish("putPage",{objId:r,pageContext:rt[e],pageNumber:e,page:n}),U("/Contents "+i+" 0 R"),U(">>"),U("endobj");var o=n.join("\n");return ht(i,!0),mt({data:o,filters:gt()}),U("endobj"),r},vt=p.__private__.putPages=function(){var t,e,n=[];for(t=1;t<=nt;t++)rt[t].objId=lt(),rt[t].contentsObjId=lt();for(t=1;t<=nt;t++)n.push(yt({number:t,data:T[t],objId:rt[t].objId,contentsObjId:rt[t].contentsObjId,mediaBox:rt[t].mediaBox,cropBox:rt[t].cropBox,bleedBox:rt[t].bleedBox,trimBox:rt[t].trimBox,artBox:rt[t].artBox,userUnit:rt[t].userUnit,rootDictionaryObjId:ct,resourceDictionaryObjId:ft}));ht(ct,!0),U("<</Type /Pages");var r="/Kids [";for(e=0;e<nt;e++)r+=n[e]+" 0 R ";U(r+"]"),U("/Count "+nt),U(">>"),U("endobj"),ot.publish("postPutPages")},wt=function(t,e,n){et.hasOwnProperty(e)||(et[e]={}),et[e][n]=t},bt=function(t,e,n,r,i){i=i||!1;var o="F"+(Object.keys(tt).length+1).toString(10),a={id:o,postScriptName:t,fontName:e,fontStyle:n,encoding:r,isStandardFont:i,metadata:{}};return ot.publish("addFont",{font:a,instance:this}),void 0!==o&&(tt[o]=a,wt(o,e,n)),o},xt=p.__private__.pdfEscape=p.pdfEscape=function(t,e){return function(t,e){var n,r,i,o,a,s,l,h,u;if(i=(e=e||{}).sourceEncoding||"Unicode",a=e.outputEncoding,(e.autoencode||a)&&tt[j].metadata&&tt[j].metadata[i]&&tt[j].metadata[i].encoding&&(o=tt[j].metadata[i].encoding,!a&&tt[j].encoding&&(a=tt[j].encoding),!a&&o.codePages&&(a=o.codePages[0]),"string"==typeof a&&(a=o[a]),a)){for(l=!1,s=[],n=0,r=t.length;n<r;n++)(h=a[t.charCodeAt(n)])?s.push(String.fromCharCode(h)):s.push(t[n]),s[n].charCodeAt(0)>>8&&(l=!0);t=s.join("")}for(n=t.length;void 0===l&&0!==n;)t.charCodeAt(n-1)>>8&&(l=!0),n--;if(!l)return t;for(s=e.noBOM?[]:[254,255],n=0,r=t.length;n<r;n++){if((u=(h=t.charCodeAt(n))>>8)>>8)throw new Error("Character at position "+n+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(u),s.push(h-(u<<8))}return String.fromCharCode.apply(void 0,s)}(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Nt=p.__private__.beginPage=function(t,e){var n,r="string"==typeof e&&e.toLowerCase();if("string"==typeof t&&(n=y(t.toLowerCase()))&&(t=n[0],e=n[1]),Array.isArray(t)&&(e=t[1],t=t[0]),(isNaN(t)||isNaN(e))&&(t=a[0],e=a[1]),r){switch(r.substr(0,1)){case"l":t<e&&(r="s");break;case"p":e<t&&(r="s")}"s"===r&&(n=t,t=e,e=n)}(14400<t||14400<e)&&(console.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),t=Math.min(14400,t),e=Math.min(14400,e)),a=[t,e],q=!0,T[++nt]=[],rt[nt]={objId:0,contentsObjId:0,userUnit:Number(u),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t),topRightY:Number(e)}},At(nt)},Lt=function(){Nt.apply(this,arguments),Wt(Ht),U(Qt),0!==ie&&U(ie+" J"),0!==ae&&U(ae+" j"),ot.publish("addPage",{pageNumber:nt})},At=function(t){0<t&&t<=nt&&(P=t)},_t=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return T.length-1},Ft=function(t,e,n){var r,i=void 0;return n=n||{},t=void 0!==t?t:tt[j].fontName,e=void 0!==e?e:tt[j].fontStyle,r=t.toLowerCase(),void 0!==et[r]&&void 0!==et[r][e]?i=et[r][e]:void 0!==et[t]&&void 0!==et[t][e]?i=et[t][e]:!1===n.disableWarning&&console.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),i||n.noFallback||null==(i=et.times[e])&&(i=et.times.normal),i},Pt=p.__private__.putInfo=function(){for(var t in st(),U("<<"),U("/Producer (jsPDF "+r.version+")"),Z)Z.hasOwnProperty(t)&&Z[t]&&U("/"+t.substr(0,1).toUpperCase()+t.substr(1)+" ("+xt(Z[t])+")");U("/CreationDate ("+v+")"),U(">>"),U("endobj")},kt=p.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||ct;switch(st(),U("<<"),U("/Type /Catalog"),U("/Pages "+e+" 0 R"),I||(I="fullwidth"),I){case"fullwidth":U("/OpenAction [3 0 R /FitH null]");break;case"fullheight":U("/OpenAction [3 0 R /FitV null]");break;case"fullpage":U("/OpenAction [3 0 R /Fit]");break;case"original":U("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+I;"%"===n.substr(n.length-1)&&(I=parseInt(I)/100),"number"==typeof I&&U("/OpenAction [3 0 R /XYZ null null "+w(I)+"]")}switch(B||(B="continuous"),B){case"continuous":U("/PageLayout /OneColumn");break;case"single":U("/PageLayout /SinglePage");break;case"two":case"twoleft":U("/PageLayout /TwoColumnLeft");break;case"tworight":U("/PageLayout /TwoColumnRight")}C&&U("/PageMode /"+C),ot.publish("putCatalog"),U(">>"),U("endobj")},It=p.__private__.putTrailer=function(){U("trailer"),U("<<"),U("/Size "+(Q+1)),U("/Root "+Q+" 0 R"),U("/Info "+(Q-1)+" 0 R"),U("/ID [ <"+x+"> <"+x+"> ]"),U(">>")},Ct=p.__private__.putHeader=function(){U("%PDF-"+d),U("%ºß¬à")},Bt=p.__private__.putXRef=function(){var t=1,e="0000000000";for(U("xref"),U("0 "+(Q+1)),U("0000000000 65535 f "),t=1;t<=Q;t++)"function"==typeof $[t]?U((e+$[t]()).slice(-10)+" 00000 n "):void 0!==$[t]?U((e+$[t]).slice(-10)+" 00000 n "):U("0000000000 00000 n ")},jt=p.__private__.buildDocument=function(){q=!1,D=Q=0,R=[],$=[],it=[],ct=lt(),ft=lt(),ot.publish("buildDocument"),Ct(),vt(),function(){ot.publish("putAdditionalObjects");for(var t=0;t<it.length;t++){var e=it[t];ht(e.objId,!0),U(e.content),U("endobj")}ot.publish("postPutAdditionalObjects")}(),function(){for(var t in tt)tt.hasOwnProperty(t)&&(!1===c||!0===c&&f.hasOwnProperty(t))&&(e=tt[t],ot.publish("putFont",{font:e,out:U,newObject:st,putStream:mt}),!0!==e.isAlreadyPutted&&(e.objectNumber=st(),U("<<"),U("/Type /Font"),U("/BaseFont /"+e.postScriptName),U("/Subtype /Type1"),"string"==typeof e.encoding&&U("/Encoding /"+e.encoding),U("/FirstChar 32"),U("/LastChar 255"),U(">>"),U("endobj")));var e}(),ot.publish("putResources"),ht(ft,!0),U("<<"),function(){for(var t in U("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),U("/Font <<"),tt)tt.hasOwnProperty(t)&&(!1===c||!0===c&&f.hasOwnProperty(t))&&U("/"+t+" "+tt[t].objectNumber+" 0 R");U(">>"),U("/XObject <<"),ot.publish("putXobjectDict"),U(">>")}(),U(">>"),U("endobj"),ot.publish("postPutResources"),Pt(),kt();var t=D;return Bt(),It(),U("startxref"),U(""+t),U("%%EOF"),q=!0,R.join("\n")},Et=p.__private__.getBlob=function(t){return new Blob([H(t)],{type:"application/pdf"})},Mt=p.output=p.__private__.output=((M=function(t,n){n=n||{};var r=jt();switch("string"==typeof n?n={filename:n}:n.filename=n.filename||"generated.pdf",t){case void 0:return r;case"save":p.save(n.filename);break;case"arraybuffer":return H(r);case"blob":return Et(r);case"bloburi":case"bloburl":if(void 0!==e.URL&&"function"==typeof e.URL.createObjectURL)return e.URL&&e.URL.createObjectURL(Et(r))||void 0;console.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":return"data:application/pdf;filename="+n.filename+";base64,"+btoa(r);case"dataurlnewwindow":var i='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring")+'"></iframe></body></html>',o=e.open();if(null!==o&&o.document.write(i),o||"undefined"==typeof safari)return o;case"datauri":case"dataurl":return e.document.location.href="data:application/pdf;filename="+n.filename+";base64,"+btoa(r);default:return null}}).foo=function(){try{return M.apply(this,arguments)}catch(r){var t=r.stack||"";~t.indexOf(" at ")&&(t=t.split(" at ")[1]);var n="Error in function "+t.split("\n")[0].split("<")[0]+": "+r.message;if(!e.console)throw new Error(n);e.console.error(n,r),e.alert&&alert(n)}},(M.foo.bar=M).foo),Ot=function(t){return!0===Array.isArray(at)&&-1<at.indexOf(t)};switch(o){case"pt":E=1;break;case"mm":E=72/25.4;break;case"cm":E=72/2.54;break;case"in":E=72;break;case"px":E=1==Ot("px_scaling")?.75:96/72;break;case"pc":case"em":E=12;break;case"ex":E=6;break;default:throw new Error("Invalid unit: "+o)}_(),L();var qt=p.__private__.getPageInfo=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:rt[t].objId,pageNumber:t,pageContext:rt[t]}},Tt=p.__private__.getPageInfoByObjId=function(t){for(var e in rt)if(rt[e].objId===t)break;if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");return qt(e)},Rt=p.__private__.getCurrentPageInfo=function(){return{objId:rt[P].objId,pageNumber:P,pageContext:rt[P]}};p.addPage=function(){return Lt.apply(this,arguments),this},p.setPage=function(){return At.apply(this,arguments),this},p.insertPage=function(t){return this.addPage(),this.movePage(P,t),this},p.movePage=function(t,e){if(e<t){for(var n=T[t],r=rt[t],i=t;e<i;i--)T[i]=T[i-1],rt[i]=rt[i-1];T[e]=n,rt[e]=r,this.setPage(e)}else if(t<e){for(n=T[t],r=rt[t],i=t;i<e;i++)T[i]=T[i+1],rt[i]=rt[i+1];T[e]=n,rt[e]=r,this.setPage(e)}return this},p.deletePage=function(){return function(t){0<t&&t<=nt&&(T.splice(t,1),--nt<P&&(P=nt),this.setPage(P))}.apply(this,arguments),this},p.__private__.text=p.text=function(e,n,r,i){var o;"number"!=typeof e||"number"!=typeof n||"string"!=typeof r&&!Array.isArray(r)||(o=r,r=n,n=e,e=o);var a=arguments[3],s=arguments[4],l=arguments[5];if("object"===t(a)&&null!==a||("string"==typeof s&&(l=s,s=null),"string"==typeof a&&(l=a,a=null),"number"==typeof a&&(s=a,a=null),i={flags:a,angle:s,align:l}),(a=a||{}).noBOM=a.noBOM||!0,a.autoencode=a.autoencode||!0,isNaN(n)||isNaN(r)||null==e)throw new Error("Invalid arguments passed to jsPDF.text");if(0===e.length)return p;var h,u="",c="number"==typeof i.lineHeightFactor?i.lineHeightFactor:zt,p=i.scope||this;function d(t){for(var e,n=t.concat(),r=[],i=n.length;i--;)"string"==typeof(e=n.shift())?r.push(e):Array.isArray(t)&&1===e.length?r.push(e[0]):r.push([e[0],e[1],e[2]]);return r}function g(t,e){var n;if("string"==typeof t)n=e(t)[0];else if(Array.isArray(t)){for(var r,i,o=t.concat(),a=[],s=o.length;s--;)"string"==typeof(r=o.shift())?a.push(e(r)[0]):Array.isArray(r)&&"string"===r[0]&&(i=e(r[0],r[1],r[2]),a.push([i[0],i[1],i[2]]));n=a}return n}var m=!1,y=!0;if("string"==typeof e)m=!0;else if(Array.isArray(e)){for(var v,x=e.concat(),N=[],L=x.length;L--;)("string"!=typeof(v=x.shift())||Array.isArray(v)&&"string"!=typeof v[0])&&(y=!1);m=y}if(!1===m)throw new Error('Type of text must be string or Array. "'+e+'" is not recognized.');var A=tt[j].encoding;"WinAnsiEncoding"!==A&&"StandardEncoding"!==A||(e=g(e,function(t,e,n){return[(r=t,r=r.split("\t").join(Array(i.TabLen||9).join(" ")),xt(r,a)),e,n];var r})),"string"==typeof e&&(e=e.match(/[\r?\n]/)?e.split(/\r\n|\r|\n/g):[e]);var S=V/p.internal.scaleFactor,_=S*(zt-1);switch(i.baseline){case"bottom":r-=_;break;case"top":r+=S-_;break;case"hanging":r+=S-2*_;break;case"middle":r+=S/2-_}0<(z=i.maxWidth||0)&&("string"==typeof e?e=p.splitTextToSize(e,z):"[object Array]"===Object.prototype.toString.call(e)&&(e=p.splitTextToSize(e.join(" "),z)));var F={text:e,x:n,y:r,options:i,mutex:{pdfEscape:xt,activeFontKey:j,fonts:tt,activeFontSize:V}};ot.publish("preProcessText",F),e=F.text,s=(i=F.options).angle;var P=p.internal.scaleFactor,k=[];if(s){s*=Math.PI/180;var I=Math.cos(s),C=Math.sin(s);k=[w(I),w(C),w(-1*C),w(I)]}void 0!==(D=i.charSpace)&&(u+=b(D*P)+" Tc\n"),i.lang;var B=-1,E=void 0!==i.renderingMode?i.renderingMode:i.stroke,M=p.internal.getCurrentPageInfo().pageContext;switch(E){case 0:case!1:case"fill":B=0;break;case 1:case!0:case"stroke":B=1;break;case 2:case"fillThenStroke":B=2;break;case 3:case"invisible":B=3;break;case 4:case"fillAndAddForClipping":B=4;break;case 5:case"strokeAndAddPathForClipping":B=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":B=6;break;case 7:case"addToPathForClipping":B=7}var O=void 0!==M.usedRenderingMode?M.usedRenderingMode:-1;-1!==B?u+=B+" Tr\n":-1!==O&&(u+="0 Tr\n"),-1!==B&&(M.usedRenderingMode=B),l=i.align||"left";var q=V*c,T=p.internal.pageSize.getWidth(),R=(P=p.internal.scaleFactor,tt[j]),D=i.charSpace||ne,z=i.maxWidth||0,H=(a={},[]);if("[object Array]"===Object.prototype.toString.call(e)){var W,G;N=d(e),"left"!==l&&(G=N.map(function(t){return p.getStringUnitWidth(t,{font:R,charSpace:D,fontSize:V})*V/P}));Math.max.apply(Math,G);var J,X=0;if("right"===l){n-=G[0],e=[];var K=0;for(L=N.length;K<L;K++)G[K],W=0===K?(J=Jt(n),Xt(r)):(J=(X-G[K])*P,-q),e.push([N[K],J,W]),X=G[K]}else if("center"===l)for(n-=G[0]/2,e=[],K=0,L=N.length;K<L;K++)G[K],W=0===K?(J=Jt(n),Xt(r)):(J=(X-G[K])/2*P,-q),e.push([N[K],J,W]),X=G[K];else if("left"===l)for(e=[],K=0,L=N.length;K<L;K++)W=0===K?Xt(r):-q,J=0===K?Jt(n):0,e.push(N[K]);else{if("justify"!==l)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(e=[],z=0!==z?z:T,K=0,L=N.length;K<L;K++)W=0===K?Xt(r):-q,J=0===K?Jt(n):0,K<L-1&&H.push(((z-G[K])/(N[K].split(" ").length-1)*P).toFixed(2)),e.push([N[K],J,W])}}!0===("boolean"==typeof i.R2L?i.R2L:Y)&&(e=g(e,function(t,e,n){return[t.split("").reverse().join(""),e,n]})),F={text:e,x:n,y:r,options:i,mutex:{pdfEscape:xt,activeFontKey:j,fonts:tt,activeFontSize:V}},ot.publish("postProcessText",F),e=F.text,h=F.mutex.isHex,N=d(e),e=[];var Z,Q,$,et=0,nt=(L=N.length,"");for(K=0;K<L;K++)nt="",Array.isArray(N[K])?(Z=parseFloat(N[K][1]),Q=parseFloat(N[K][2]),$=(h?"<":"(")+N[K][0]+(h?">":")"),et=1):(Z=Jt(n),Q=Xt(r),$=(h?"<":"(")+N[K]+(h?">":")")),void 0!==H&&void 0!==H[K]&&(nt=H[K]+" Tw\n"),0!==k.length&&0===K?e.push(nt+k.join(" ")+" "+Z.toFixed(2)+" "+Q.toFixed(2)+" Tm\n"+$):1===et||0===et&&0===K?e.push(nt+Z.toFixed(2)+" "+Q.toFixed(2)+" Td\n"+$):e.push(nt+$);e=0===et?e.join(" Tj\nT* "):e.join(" Tj\n"),e+=" Tj\n";var rt="BT\n/"+j+" "+V+" Tf\n"+(V*c).toFixed(2)+" TL\n"+te+"\n";return rt+=u,rt+=e,U(rt+="ET"),f[j]=!0,p},p.__private__.lstext=p.lstext=function(t,e,n,r){return console.warn("jsPDF.lstext is deprecated"),this.text(t,e,n,{charSpace:r})},p.__private__.clip=p.clip=function(t){U("evenodd"===t?"W*":"W"),U("n")},p.__private__.clip_fixed=p.clip_fixed=function(t){console.log("clip_fixed is deprecated"),p.clip(t)};var Dt=p.__private__.isValidStyle=function(t){var e=!1;return-1!==[void 0,null,"S","F","DF","FD","f","f*","B","B*"].indexOf(t)&&(e=!0),e},Ut=p.__private__.getStyle=function(t){var e="S";return"F"===t?e="f":"FD"===t||"DF"===t?e="B":"f"!==t&&"f*"!==t&&"B"!==t&&"B*"!==t||(e=t),e};p.__private__.line=p.line=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw new Error("Invalid arguments passed to jsPDF.line");return this.lines([[n-t,r-e]],t,e)},p.__private__.lines=p.lines=function(t,e,n,r,i,o){var a,s,l,h,u,c,f,p,d,g,m,y;if("number"==typeof t&&(y=n,n=e,e=t,t=y),r=r||[1,1],o=o||!1,isNaN(e)||isNaN(n)||!Array.isArray(t)||!Array.isArray(r)||!Dt(i)||"boolean"!=typeof o)throw new Error("Invalid arguments passed to jsPDF.lines");for(U(b(Jt(e))+" "+b(Xt(n))+" m "),a=r[0],s=r[1],h=t.length,g=e,m=n,l=0;l<h;l++)2===(u=t[l]).length?(g=u[0]*a+g,m=u[1]*s+m,U(b(Jt(g))+" "+b(Xt(m))+" l")):(c=u[0]*a+g,f=u[1]*s+m,p=u[2]*a+g,d=u[3]*s+m,g=u[4]*a+g,m=u[5]*s+m,U(b(Jt(c))+" "+b(Xt(f))+" "+b(Jt(p))+" "+b(Xt(d))+" "+b(Jt(g))+" "+b(Xt(m))+" c"));return o&&U(" h"),null!==i&&U(Ut(i)),this},p.__private__.rect=p.rect=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!Dt(i))throw new Error("Invalid arguments passed to jsPDF.rect");return U([w(Jt(t)),w(Xt(e)),w(n*E),w(-r*E),"re"].join(" ")),null!==i&&U(Ut(i)),this},p.__private__.triangle=p.triangle=function(t,e,n,r,i,o,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(o)||!Dt(a))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[n-t,r-e],[i-n,o-r],[t-i,e-o]],t,e,[1,1],a,!0),this},p.__private__.roundedRect=p.roundedRect=function(t,e,n,r,i,o,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(o)||!Dt(a))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var s=4/3*(Math.SQRT2-1);return this.lines([[n-2*i,0],[i*s,0,i,o-o*s,i,o],[0,r-2*o],[0,o*s,-i*s,o,-i,o],[2*i-n,0],[-i*s,0,-i,-o*s,-i,-o],[0,2*o-r],[0,-o*s,i*s,-o,i,-o]],t+i,e,[1,1],a),this},p.__private__.ellipse=p.ellipse=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!Dt(i))throw new Error("Invalid arguments passed to jsPDF.ellipse");var o=4/3*(Math.SQRT2-1)*n,a=4/3*(Math.SQRT2-1)*r;return U([w(Jt(t+n)),w(Xt(e)),"m",w(Jt(t+n)),w(Xt(e-a)),w(Jt(t+o)),w(Xt(e-r)),w(Jt(t)),w(Xt(e-r)),"c"].join(" ")),U([w(Jt(t-o)),w(Xt(e-r)),w(Jt(t-n)),w(Xt(e-a)),w(Jt(t-n)),w(Xt(e)),"c"].join(" ")),U([w(Jt(t-n)),w(Xt(e+a)),w(Jt(t-o)),w(Xt(e+r)),w(Jt(t)),w(Xt(e+r)),"c"].join(" ")),U([w(Jt(t+o)),w(Xt(e+r)),w(Jt(t+n)),w(Xt(e+a)),w(Jt(t+n)),w(Xt(e)),"c"].join(" ")),null!==i&&U(Ut(i)),this},p.__private__.circle=p.circle=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||!Dt(r))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(t,e,n,n,r)},p.setFont=function(t,e){return j=Ft(t,e,{disableWarning:!1}),this},p.setFontStyle=p.setFontType=function(t){return j=Ft(void 0,t),this},p.__private__.getFontList=p.getFontList=function(){var t,e,n,r={};for(t in et)if(et.hasOwnProperty(t))for(e in r[t]=n=[],et[t])et[t].hasOwnProperty(e)&&n.push(e);return r},p.addFont=function(t,e,n,r){bt.call(this,t,e,n,r=r||"Identity-H")};var zt,Ht=l.lineWidth||.200025,Wt=p.__private__.setLineWidth=p.setLineWidth=function(t){return U((t*E).toFixed(2)+" w"),this},Vt=(p.__private__.setLineDash=r.API.setLineDash=function(t,e){if(t=t||[],e=e||0,isNaN(e)||!Array.isArray(t))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return t=t.map(function(t){return(t*E).toFixed(3)}).join(" "),e=parseFloat((e*E).toFixed(3)),U("["+t+"] "+e+" d"),this},p.__private__.getLineHeight=p.getLineHeight=function(){return V*zt}),Gt=(Vt=p.__private__.getLineHeight=p.getLineHeight=function(){return V*zt},p.__private__.setLineHeightFactor=p.setLineHeightFactor=function(t){return"number"==typeof(t=t||1.15)&&(zt=t),this}),Yt=p.__private__.getLineHeightFactor=p.getLineHeightFactor=function(){return zt};Gt(l.lineHeight);var Jt=p.__private__.getHorizontalCoordinate=function(t){return t*E},Xt=p.__private__.getVerticalCoordinate=function(t){return rt[P].mediaBox.topRightY-rt[P].mediaBox.bottomLeftY-t*E},Kt=p.__private__.getHorizontalCoordinateString=function(t){return w(t*E)},Zt=p.__private__.getVerticalCoordinateString=function(t){return w(rt[P].mediaBox.topRightY-rt[P].mediaBox.bottomLeftY-t*E)},Qt=l.strokeColor||"0 G",$t=(p.__private__.getStrokeColor=p.getDrawColor=function(){return pt(Qt)},p.__private__.setStrokeColor=p.setDrawColor=function(t,e,n,r){return Qt=dt({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"draw",precision:2}),U(Qt),this},l.fillColor||"0 g"),te=(p.__private__.getFillColor=p.getFillColor=function(){return pt($t)},p.__private__.setFillColor=p.setFillColor=function(t,e,n,r){return $t=dt({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"fill",precision:2}),U($t),this},l.textColor||"0 g"),ee=p.__private__.getTextColor=p.getTextColor=function(){return pt(te)},ne=(p.__private__.setTextColor=p.setTextColor=function(t,e,n,r){return te=dt({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"text",precision:3}),this},l.charSpace||0),re=p.__private__.getCharSpace=p.getCharSpace=function(){return ne},ie=(p.__private__.setCharSpace=p.setCharSpace=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return ne=t,this},0);p.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},p.__private__.setLineCap=p.setLineCap=function(t){var e=p.CapJoinStyles[t];if(void 0===e)throw new Error("Line cap style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return U((ie=e)+" J"),this};var oe,ae=0;for(var se in p.__private__.setLineJoin=p.setLineJoin=function(t){var e=p.CapJoinStyles[t];if(void 0===e)throw new Error("Line join style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return U((ae=e)+" j"),this},p.__private__.setMiterLimit=p.setMiterLimit=function(t){if(t=t||0,isNaN(t))throw new Error("Invalid argument passed to jsPDF.setMiterLimit");return oe=parseFloat(w(t*E)),U(oe+" M"),this},p.save=function(t,n){if(t=t||"generated.pdf",(n=n||{}).returnPromise=n.returnPromise||!1,!1!==n.returnPromise)return new Promise(function(n,r){try{var i=St(Et(jt()),t);"function"==typeof St.unload&&e.setTimeout&&setTimeout(St.unload,911),n(i)}catch(n){r(n.message)}});St(Et(jt()),t),"function"==typeof St.unload&&e.setTimeout&&setTimeout(St.unload,911)},r.API)r.API.hasOwnProperty(se)&&("events"===se&&r.API.events.length?function(t,e){var n,r,i;for(i=e.length-1;-1!==i;i--)n=e[i][0],r=e[i][1],t.subscribe.apply(t,[n].concat("function"==typeof r?[r]:r))}(ot,r.API.events):p[se]=r.API[se]);return p.internal={pdfEscape:xt,getStyle:Ut,getFont:function(){return tt[Ft.apply(p,arguments)]},getFontSize:G,getCharSpace:re,getTextColor:ee,getLineHeight:Vt,getLineHeightFactor:Yt,write:z,getHorizontalCoordinate:Jt,getVerticalCoordinate:Xt,getCoordinateString:Kt,getVerticalCoordinateString:Zt,collections:{},newObject:st,newAdditionalObject:ut,newObjectDeferred:lt,newObjectDeferredBegin:ht,getFilters:gt,putStream:mt,events:ot,scaleFactor:E,pageSize:{getWidth:function(){return(rt[P].mediaBox.topRightX-rt[P].mediaBox.bottomLeftX)/E},setWidth:function(t){rt[P].mediaBox.topRightX=t*E+rt[P].mediaBox.bottomLeftX},getHeight:function(){return(rt[P].mediaBox.topRightY-rt[P].mediaBox.bottomLeftY)/E},setHeight:function(t){rt[P].mediaBox.topRightY=t*E+rt[P].mediaBox.bottomLeftY}},output:Mt,getNumberOfPages:_t,pages:T,out:U,f2:w,f3:b,getPageInfo:qt,getPageInfoByObjId:Tt,getCurrentPageInfo:Rt,getPDFVersion:g,hasHotfix:Ot},Object.defineProperty(p.internal.pageSize,"width",{get:function(){return(rt[P].mediaBox.topRightX-rt[P].mediaBox.bottomLeftX)/E},set:function(t){rt[P].mediaBox.topRightX=t*E+rt[P].mediaBox.bottomLeftX},enumerable:!0,configurable:!0}),Object.defineProperty(p.internal.pageSize,"height",{get:function(){return(rt[P].mediaBox.topRightY-rt[P].mediaBox.bottomLeftY)/E},set:function(t){rt[P].mediaBox.topRightY=t*E+rt[P].mediaBox.bottomLeftY},enumerable:!0,configurable:!0}),function(t){for(var e=0,n=W.length;e<n;e++){var r=bt(t[e][0],t[e][1],t[e][2],W[e][3],!0);f[r]=!0;var i=t[e][0].split("-");wt(r,i[0],i[1]||"")}ot.publish("addFonts",{fonts:tt,dictionary:et})}(W),j="F1",Lt(a,i),ot.publish("initialized"),p}return r.API={events:[]},r.version="1.5.3","function"==typeof define&&define.amd?define("jsPDF",function(){return r}):"undefined"!=typeof module&&module.exports?(module.exports=r,module.exports.jsPDF=r):e.jsPDF=r,r}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof global&&global||Function('return typeof this === "object" && this.content')()||Function("return this")());(function(e,n){var r,i=1,o=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},a=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},s=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return t.toFixed(2)},l=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return t.toFixed(5)};e.__acroform__={};var h=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},u=function(t){return t*i},c=function(t){return t/i},f=function(t){var e=new E,n=J.internal.getHeight(t)||0,r=J.internal.getWidth(t)||0;return e.BBox=[0,0,Number(s(r)),Number(s(n))],e},p=e.__acroform__.setBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|1<<e},d=e.__acroform__.clearBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&~(1<<e)},g=e.__acroform__.getBit=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return 0==(t&1<<e)?0:1},m=e.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return g(t,e-1)},y=e.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return p(t,e-1)},v=e.__acroform__.clearBitForPdf=function(t,e,n){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return d(t,e-1)},w=e.__acroform__.calculateCoordinates=function(t){var e=this.internal.getHorizontalCoordinate,n=this.internal.getVerticalCoordinate,r=t[0],i=t[1],o=t[2],a=t[3],l={};return l.lowerLeft_X=e(r)||0,l.lowerLeft_Y=n(i+a)||0,l.upperRight_X=e(r+o)||0,l.upperRight_Y=n(i)||0,[Number(s(l.lowerLeft_X)),Number(s(l.lowerLeft_Y)),Number(s(l.upperRight_X)),Number(s(l.upperRight_Y))]},b=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],n=t.V||t.DV,i=x(t,n),o=r.internal.getFont(t.fontName,t.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(r.__private__.encodeColorString(t.color)),e.push("/"+o+" "+s(i.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(i.text),e.push("ET"),e.push("Q"),e.push("EMC");var a=new f(t);return a.stream=e.join("\n"),a}},x=function(t,e){var n=t.maxFontSize||12,i=(t.fontName,{text:"",fontSize:""}),a=(e=")"==(e="("==e.substr(0,1)?e.substr(1):e).substr(e.length-1)?e.substr(0,e.length-1):e).split(" "),l=(r.__private__.encodeColorString(t.color),n),h=J.internal.getHeight(t)||0;h=h<0?-h:h;var u=J.internal.getWidth(t)||0;u=u<0?-u:u;var c=function(e,n,r){if(e+1<a.length){var i=n+" "+a[e+1];return N(i,t,r).width<=u-4}return!1};l++;t:for(;;){e="";var f=N("3",t,--l).height,p=t.multiline?h-l:(h-f)/2,d=-2,g=p+=2,m=0,y=0,v=0;if(l<=0){e="(...) Tj\n",e+="% Width of Text: "+N(e,t,l=12).width+", FieldWidth:"+u+"\n";break}v=N(a[0]+" ",t,l).width;var w="",b=0;for(var x in a)if(a.hasOwnProperty(x)){w=" "==(w+=a[x]+" ").substr(w.length-1)?w.substr(0,w.length-1):w;var L=parseInt(x);v=N(w+" ",t,l).width;var A=c(L,w,l),S=x>=a.length-1;if(A&&!S){w+=" ";continue}if(A||S){if(S)y=L;else if(t.multiline&&h<(f+2)*(b+2)+2)continue t}else{if(!t.multiline)continue t;if(h<(f+2)*(b+2)+2)continue t;y=L}for(var _="",F=m;F<=y;F++)_+=a[F]+" ";switch(_=" "==_.substr(_.length-1)?_.substr(0,_.length-1):_,v=N(_,t,l).width,t.textAlign){case"right":d=u-v-2;break;case"center":d=(u-v)/2;break;case"left":default:d=2}e+=s(d)+" "+s(g)+" Td\n",e+="("+o(_)+") Tj\n",e+=-s(d)+" 0 Td\n",g=-(l+2),v=0,m=y+1,b++,w=""}break}return i.text=e,i.fontSize=l,i},N=function(t,e,n){var i=r.internal.getFont(e.fontName,e.fontStyle),o=r.getStringUnitWidth(t,{font:i,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:r.getStringUnitWidth("3",{font:i,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:o}},L={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},A=function(){r.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var t=r.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var e in t)if(t.hasOwnProperty(e)){var n=t[e];n.objId=void 0,n.hasAnnotation&&S.call(r,n)}},S=function(t){var e={type:"reference",object:t};void 0===r.internal.getPageInfo(t.page).pageContext.annotations.find(function(t){return t.type===e.type&&t.object===e.object})&&r.internal.getPageInfo(t.page).pageContext.annotations.push(e)},_=function(){if(void 0===r.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");r.internal.write("/AcroForm "+r.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")},F=function(){r.internal.events.unsubscribe(r.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete r.internal.acroformPlugin.acroFormDictionaryRoot._eventID,r.internal.acroformPlugin.printedOut=!0},P=function(e){var n=!e;for(var i in e||(r.internal.newObjectDeferredBegin(r.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),r.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),e=e||r.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(e.hasOwnProperty(i)){var o=e[i],a=[],s=o.Rect;if(o.Rect&&(o.Rect=w.call(this,o.Rect)),r.internal.newObjectDeferredBegin(o.objId,!0),o.DA=J.createDefaultAppearanceStream(o),"object"===t(o)&&"function"==typeof o.getKeyValueListForStream&&(a=o.getKeyValueListForStream()),o.Rect=s,o.hasAppearanceStream&&!o.appearanceStreamContent){var l=b.call(this,o);a.push({key:"AP",value:"<</N "+l+">>"}),r.internal.acroformPlugin.xForms.push(l)}if(o.appearanceStreamContent){var h="";for(var u in o.appearanceStreamContent)if(o.appearanceStreamContent.hasOwnProperty(u)){var c=o.appearanceStreamContent[u];if(h+="/"+u+" ",h+="<<",1<=Object.keys(c).length||Array.isArray(c))for(var i in c){var f;c.hasOwnProperty(i)&&("function"==typeof(f=c[i])&&(f=f.call(this,o)),h+="/"+i+" "+f+" ",0<=r.internal.acroformPlugin.xForms.indexOf(f)||r.internal.acroformPlugin.xForms.push(f))}else"function"==typeof(f=c)&&(f=f.call(this,o)),h+="/"+i+" "+f,0<=r.internal.acroformPlugin.xForms.indexOf(f)||r.internal.acroformPlugin.xForms.push(f);h+=">>"}a.push({key:"AP",value:"<<\n"+h+">>"})}r.internal.putStream({additionalKeyValues:a}),r.internal.out("endobj")}n&&k.call(this,r.internal.acroformPlugin.xForms)},k=function(e){for(var n in e)if(e.hasOwnProperty(n)){var i=n,o=e[n];r.internal.newObjectDeferredBegin(o&&o.objId,!0),"object"===t(o)&&"function"==typeof o.putStream&&o.putStream(),delete e[i]}},I=function(){if(void 0!==this.internal&&(void 0===this.internal.acroformPlugin||!1===this.internal.acroformPlugin.isInitialized)){if(r=this,O.FieldNum=0,this.internal.acroformPlugin=JSON.parse(JSON.stringify(L)),this.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");i=r.internal.scaleFactor,r.internal.acroformPlugin.acroFormDictionaryRoot=new M,r.internal.acroformPlugin.acroFormDictionaryRoot._eventID=r.internal.events.subscribe("postPutResources",F),r.internal.events.subscribe("buildDocument",A),r.internal.events.subscribe("putCatalog",_),r.internal.events.subscribe("postPutPages",P),r.internal.acroformPlugin.isInitialized=!0}},C=e.__acroform__.arrayToPdfArray=function(e){if(Array.isArray(e)){for(var n="[",r=0;r<e.length;r++)switch(0!==r&&(n+=" "),t(e[r])){case"boolean":case"number":case"object":n+=e[r].toString();break;case"string":"/"!==e[r].substr(0,1)?n+="("+o(e[r].toString())+")":n+=e[r].toString()}return n+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},B=function(t){return(t=t||"").toString(),"("+o(t)+")"},j=function(){var t;Object.defineProperty(this,"objId",{configurable:!0,get:function(){if(t||(t=r.internal.newObjectDeferred()),!t)throw new Error("AcroFormPDFObject: Couldn't create Object ID");return t},set:function(e){t=e}})};j.prototype.toString=function(){return this.objId+" 0 R"},j.prototype.putStream=function(){var t=this.getKeyValueListForStream();r.internal.putStream({data:this.stream,additionalKeyValues:t}),r.internal.out("endobj")},j.prototype.getKeyValueListForStream=function(){return function(t){var e=[],n=Object.getOwnPropertyNames(t).filter(function(t){return"content"!=t&&"appearanceStreamContent"!=t&&"_"!=t.substring(0,1)});for(var r in n)if(!1===Object.getOwnPropertyDescriptor(t,n[r]).configurable){var i=n[r],o=t[i];o&&(Array.isArray(o)?e.push({key:i,value:C(o)}):o instanceof j?e.push({key:i,value:o.objId+" 0 R"}):"function"!=typeof o&&e.push({key:i,value:o}))}return e}(this)};var E=function(){j.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writeable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writeable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writeable:!0});var t,e=[];Object.defineProperty(this,"BBox",{configurable:!1,writeable:!0,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writeable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){t=e.trim()},get:function(){return t||null}})};h(E,j);var M=function(){j.call(this);var t,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return 0<e.length?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t)return"("+t+")"},set:function(e){t=e}})};h(M,j);var O=function t(){j.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute F supplied.');e=t}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(e,3))},set:function(t){!0===Boolean(t)?this.F=y(e,3):this.F=v(e,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute Ff supplied.');n=t}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==r.length)return r},set:function(t){r=void 0!==t?t:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:c(r[0])},set:function(t){r[0]=u(t)}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:c(r[1])},set:function(t){r[1]=u(t)}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:c(r[2])},set:function(t){r[2]=u(t)}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:c(r[3])},set:function(t){r[3]=u(t)}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(t){switch(t){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=t;break;default:throw new Error('Invalid value "'+t+'" for attribute FT supplied.')}}});var s=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!s||s.length<1){if(this instanceof W)return;s="FieldObject"+t.FieldNum++}return"("+o(s)+")"},set:function(t){s=t.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return s},set:function(t){s=t}});var l="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return l},set:function(t){l=t}});var h="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return h},set:function(t){h=t}});var f=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return c(f)},set:function(t){f=u(t)}});var p=50;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return c(p)},set:function(t){p=u(t)}});var d="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return d},set:function(t){d=t}});var g="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!g||this instanceof W||this instanceof G))return B(g)},set:function(t){t=t.toString(),g=t}});var w=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(w)return this instanceof U==0?B(w):w},set:function(t){t=t.toString(),w=this instanceof U==0?"("===t.substr(0,1)?a(t.substr(1,t.length-2)):a(t):t}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof U==1?a(w.substr(1,w.length-1)):w},set:function(t){t=t.toString(),w=this instanceof U==1?"/"+t:t}});var b=null;Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(b)return this instanceof U==0?B(b):b},set:function(t){t=t.toString(),b=this instanceof U==0?"("===t.substr(0,1)?a(t.substr(1,t.length-2)):a(t):t}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof U==1?a(b.substr(1,b.length-1)):b},set:function(t){t=t.toString(),b=this instanceof U==1?"/"+t:t}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var x,N=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,writeable:!0,get:function(){return N},set:function(t){t=Boolean(t),N=t}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,writeable:!0,get:function(){if(x)return x},set:function(t){x=t}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,1))},set:function(t){!0===Boolean(t)?this.Ff=y(this.Ff,1):this.Ff=v(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,2))},set:function(t){!0===Boolean(t)?this.Ff=y(this.Ff,2):this.Ff=v(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,3))},set:function(t){!0===Boolean(t)?this.Ff=y(this.Ff,3):this.Ff=v(this.Ff,3)}});var L=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==L)return L},set:function(t){if(-1===[0,1,2].indexOf(t))throw new Error('Invalid value "'+t+'" for attribute Q supplied.');L=t}}),Object.defineProperty(this,"textAlign",{get:function(){var t="left";switch(L){case 0:default:t="left";break;case 1:t="center";break;case 2:t="right"}return t},configurable:!0,enumerable:!0,set:function(t){switch(t){case"right":case 2:L=2;break;case"center":case 1:L=1;break;case"left":case 0:default:L=0}}})};h(O,j);var q=function(){O.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){t=e}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return C(e)},set:function(t){var n,r;r=[],"string"==typeof(n=t)&&(r=function(t,e,n){n||(n=1);for(var r,i=[];r=e.exec(t);)i.push(r[n]);return i}(n,/\((.*?)\)/g)),e=r}}),this.getOptions=function(){return e},this.setOptions=function(t){e=t,this.sort&&e.sort()},this.addOption=function(t){t=(t=t||"").toString(),e.push(t),this.sort&&e.sort()},this.removeOption=function(t,n){for(n=n||!1,t=(t=t||"").toString();-1!==e.indexOf(t)&&(e.splice(e.indexOf(t),1),!1!==n););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,18))},set:function(t){!0===Boolean(t)?this.Ff=y(this.Ff,18):this.Ff=v(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,19))},set:function(t){!0===this.combo&&(!0===Boolean(t)?this.Ff=y(this.Ff,19):this.Ff=v(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,20))},set:function(t){!0===Boolean(t)?(this.Ff=y(this.Ff,20),e.sort()):this.Ff=v(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,22))},set:function(t){!0===Boolean(t)?this.Ff=y(this.Ff,22):this.Ff=v(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=y(this.Ff,23):this.Ff=v(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,27))},set:function(t){!0===Boolean(t)?this.Ff=y(this.Ff,27):this.Ff=v(this.Ff,27)}}),this.hasAppearanceStream=!1};h(q,O);var T=function(){q.call(this),this.fontName="helvetica",this.combo=!1};h(T,q);var R=function(){T.call(this),this.combo=!0};h(R,T);var D=function(){R.call(this),this.edit=!0};h(D,R);var U=function(){O.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,15))},set:function(t){!0===Boolean(t)?this.Ff=y(this.Ff,15):this.Ff=v(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,16))},set:function(t){!0===Boolean(t)?this.Ff=y(this.Ff,16):this.Ff=v(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,17))},set:function(t){!0===Boolean(t)?this.Ff=y(this.Ff,17):this.Ff=v(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=y(this.Ff,26):this.Ff=v(this.Ff,26)}});var e,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){if(0!==Object.keys(n).length){var t,e=[];for(t in e.push("<<"),n)e.push("/"+t+" ("+n[t]+")");return e.push(">>"),e.join("\n")}},set:function(e){"object"===t(e)&&(n=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(t){"string"==typeof t&&(n.CA=t)}}),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}})};h(U,O);var z=function(){U.call(this),this.pushButton=!0};h(z,U);var H=function(){U.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=void 0!==e?e:[]}})};h(H,U);var W=function(){var e,n;O.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 n},set:function(t){n=t}});var r,i={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t,e=[];for(t in e.push("<<"),i)e.push("/"+t+" ("+i[t]+")");return e.push(">>"),e.join("\n")},set:function(e){"object"===t(e)&&(i=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return i.CA||""},set:function(t){"string"==typeof t&&(i.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(t){r=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(t){r="/"+t}}),this.optionName=name,this.caption="l",this.appearanceState="Off",this._AppearanceType=J.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(name)};h(W,O),H.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t&&"getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var n=this.Kids[e];n.appearanceStreamContent=t.createAppearanceStream(n.optionName),n.caption=t.getCA()}},H.prototype.createOption=function(t){this.Kids.length;var e=new W;return e.Parent=this,e.optionName=t,this.Kids.push(e),X.call(this,e),e};var V=function(){U.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=J.CheckBox.createAppearanceStream()};h(V,U);var G=function(){O.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,13))},set:function(t){!0===Boolean(t)?this.Ff=y(this.Ff,13):this.Ff=v(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,21))},set:function(t){!0===Boolean(t)?this.Ff=y(this.Ff,21):this.Ff=v(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=y(this.Ff,23):this.Ff=v(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,24))},set:function(t){!0===Boolean(t)?this.Ff=y(this.Ff,24):this.Ff=v(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,25))},set:function(t){!0===Boolean(t)?this.Ff=y(this.Ff,25):this.Ff=v(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=y(this.Ff,26):this.Ff=v(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){Number.isInteger(e)&&(t=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};h(G,O);var Y=function(){G.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,14))},set:function(t){!0===Boolean(t)?this.Ff=y(this.Ff,14):this.Ff=v(this.Ff,14)}}),this.password=!0};h(Y,G);var J={CheckBox:{createAppearanceStream:function(){return{N:{On:J.CheckBox.YesNormal},D:{On:J.CheckBox.YesPushDown,Off:J.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=f(t),n=[],i=r.internal.getFont(t.fontName,t.fontStyle).id,o=r.__private__.encodeColorString(t.color),a=x(t,t.caption);return n.push("0.749023 g"),n.push("0 0 "+s(J.internal.getWidth(t))+" "+s(J.internal.getHeight(t))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+i+" "+s(a.fontSize)+" Tf "+o),n.push("BT"),n.push(a.text),n.push("ET"),n.push("Q"),n.push("EMC"),e.stream=n.join("\n"),e},YesNormal:function(t){var e=f(t),n=r.internal.getFont(t.fontName,t.fontStyle).id,i=r.__private__.encodeColorString(t.color),o=[],a=J.internal.getHeight(t),l=J.internal.getWidth(t),h=x(t,t.caption);return o.push("1 g"),o.push("0 0 "+s(l)+" "+s(a)+" re"),o.push("f"),o.push("q"),o.push("0 0 1 rg"),o.push("0 0 "+s(l-1)+" "+s(a-1)+" re"),o.push("W"),o.push("n"),o.push("0 g"),o.push("BT"),o.push("/"+n+" "+s(h.fontSize)+" Tf "+i),o.push(h.text),o.push("ET"),o.push("Q"),e.stream=o.join("\n"),e},OffPushDown:function(t){var e=f(t),n=[];return n.push("0.749023 g"),n.push("0 0 "+s(J.internal.getWidth(t))+" "+s(J.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:J.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=J.RadioButton.Circle.YesNormal,e.D[t]=J.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=f(t),n=[],r=J.internal.getWidth(t)<=J.internal.getHeight(t)?J.internal.getWidth(t)/4:J.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=J.internal.Bezier_C,o=Number((r*i).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+l(J.internal.getWidth(t)/2)+" "+l(J.internal.getHeight(t)/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"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=f(t),n=[],r=J.internal.getWidth(t)<=J.internal.getHeight(t)?J.internal.getWidth(t)/4:J.internal.getHeight(t)/4,i=(r=Number((.9*r).toFixed(5)),Number((2*r).toFixed(5))),o=Number((i*J.internal.Bezier_C).toFixed(5)),a=Number((r*J.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+l(J.internal.getWidth(t)/2)+" "+l(J.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+l(J.internal.getWidth(t)/2)+" "+l(J.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),n.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),n.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),n.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},OffPushDown:function(t){var e=f(t),n=[],r=J.internal.getWidth(t)<=J.internal.getHeight(t)?J.internal.getWidth(t)/4:J.internal.getHeight(t)/4,i=(r=Number((.9*r).toFixed(5)),Number((2*r).toFixed(5))),o=Number((i*J.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+l(J.internal.getWidth(t)/2)+" "+l(J.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:J.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=J.RadioButton.Cross.YesNormal,e.D[t]=J.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=f(t),n=[],r=J.internal.calculateCross(t);return n.push("q"),n.push("1 1 "+s(J.internal.getWidth(t)-2)+" "+s(J.internal.getHeight(t)-2)+" re"),n.push("W"),n.push("n"),n.push(s(r.x1.x)+" "+s(r.x1.y)+" m"),n.push(s(r.x2.x)+" "+s(r.x2.y)+" l"),n.push(s(r.x4.x)+" "+s(r.x4.y)+" m"),n.push(s(r.x3.x)+" "+s(r.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=f(t),n=J.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+s(J.internal.getWidth(t))+" "+s(J.internal.getHeight(t))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+s(J.internal.getWidth(t)-2)+" "+s(J.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(s(n.x1.x)+" "+s(n.x1.y)+" m"),r.push(s(n.x2.x)+" "+s(n.x2.y)+" l"),r.push(s(n.x4.x)+" "+s(n.x4.y)+" m"),r.push(s(n.x3.x)+" "+s(n.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(t){var e=f(t),n=[];return n.push("0.749023 g"),n.push("0 0 "+s(J.internal.getWidth(t))+" "+s(J.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}}},createDefaultAppearanceStream:function(t){var e=r.internal.getFont(t.fontName,t.fontStyle).id,n=r.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+n}};J.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=J.internal.getWidth(t),n=J.internal.getHeight(t),r=Math.min(e,n);return{x1:{x:(e-r)/2,y:(n-r)/2+r},x2:{x:(e-r)/2+r,y:(n-r)/2},x3:{x:(e-r)/2,y:(n-r)/2},x4:{x:(e-r)/2+r,y:(n-r)/2+r}}}},J.internal.getWidth=function(e){var n=0;return"object"===t(e)&&(n=u(e.Rect[2])),n},J.internal.getHeight=function(e){var n=0;return"object"===t(e)&&(n=u(e.Rect[3])),n};var X=e.addField=function(t){if(I.call(this),!(t instanceof O))throw new Error("Invalid argument passed to jsPDF.addField.");return function(t){r.internal.acroformPlugin.printedOut&&(r.internal.acroformPlugin.printedOut=!1,r.internal.acroformPlugin.acroFormDictionaryRoot=null),r.internal.acroformPlugin.acroFormDictionaryRoot||I.call(r),r.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t)}.call(this,t),t.page=r.internal.getCurrentPageInfo().pageNumber,this};e.addButton=function(t){if(t instanceof U==0)throw new Error("Invalid argument passed to jsPDF.addButton.");return X.call(this,t)},e.addTextField=function(t){if(t instanceof G==0)throw new Error("Invalid argument passed to jsPDF.addTextField.");return X.call(this,t)},e.addChoiceField=function(t){if(t instanceof q==0)throw new Error("Invalid argument passed to jsPDF.addChoiceField.");return X.call(this,t)},"object"==t(n)&&void 0===n.ChoiceField&&void 0===n.ListBox&&void 0===n.ComboBox&&void 0===n.EditBox&&void 0===n.Button&&void 0===n.PushButton&&void 0===n.RadioButton&&void 0===n.CheckBox&&void 0===n.TextField&&void 0===n.PasswordField?(n.ChoiceField=q,n.ListBox=T,n.ComboBox=R,n.EditBox=D,n.Button=U,n.PushButton=z,n.RadioButton=H,n.CheckBox=V,n.TextField=G,n.PasswordField=Y,n.AcroForm={Appearance:J}):console.warn("AcroForm-Classes are not populated into global-namespace, because the class-Names exist already."),e.AcroFormChoiceField=q,e.AcroFormListBox=T,e.AcroFormComboBox=R,e.AcroFormEditBox=D,e.AcroFormButton=U,e.AcroFormPushButton=z,e.AcroFormRadioButton=H,e.AcroFormCheckBox=V,e.AcroFormTextField=G,e.AcroFormPasswordField=Y,e.AcroFormAppearance=J,e.AcroForm={ChoiceField:q,ListBox:T,ComboBox:R,EditBox:D,Button:U,PushButton:z,RadioButton:H,CheckBox:V,TextField:G,PasswordField:Y,Appearance:J}})((window.tmp=ht).API,"undefined"!=typeof window&&window||"undefined"!=typeof global&&global),function(e){var n="addImage_",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},i=e.getImageFileTypeByImageData=function(t,n){var i,o;n=n||"UNKNOWN";var a,s,l,h="UNKNOWN";for(l in e.isArrayBufferView(t)&&(t=e.arrayBufferToBinaryString(t)),r)for(a=r[l],i=0;i<a.length;i+=1){for(s=!0,o=0;o<a[i].length;o+=1)if(void 0!==a[i][o]&&a[i][o]!==t.charCodeAt(o)){s=!1;break}if(!0===s){h=l;break}}return"UNKNOWN"===h&&"UNKNOWN"!==n&&(console.warn('FileType of Image not recognized. Processing image as "'+n+'".'),h=n),h},o=function t(e){for(var n=this.internal.newObject(),r=this.internal.write,i=this.internal.putStream,o=(0,this.internal.getFilters)();-1!==o.indexOf("FlateEncode");)o.splice(o.indexOf("FlateEncode"),1);e.n=n;var a=[];if(a.push({key:"Type",value:"/XObject"}),a.push({key:"Subtype",value:"/Image"}),a.push({key:"Width",value:e.w}),a.push({key:"Height",value:e.h}),e.cs===this.color_spaces.INDEXED?a.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(e.pal.length/3-1)+" "+("smask"in e?n+2:n+1)+" 0 R]"}):(a.push({key:"ColorSpace",value:"/"+e.cs}),e.cs===this.color_spaces.DEVICE_CMYK&&a.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),a.push({key:"BitsPerComponent",value:e.bpc}),"dp"in e&&a.push({key:"DecodeParms",value:"<<"+e.dp+">>"}),"trns"in e&&e.trns.constructor==Array){for(var s="",l=0,h=e.trns.length;l<h;l++)s+=e.trns[l]+" "+e.trns[l]+" ";a.push({key:"Mask",value:"["+s+"]"})}"smask"in e&&a.push({key:"SMask",value:n+1+" 0 R"});var u=void 0!==e.f?["/"+e.f]:void 0;if(i({data:e.data,additionalKeyValues:a,alreadyAppliedFilters:u}),r("endobj"),"smask"in e){var c="/Predictor "+e.p+" /Colors 1 /BitsPerComponent "+e.bpc+" /Columns "+e.w,f={w:e.w,h:e.h,cs:"DeviceGray",bpc:e.bpc,dp:c,data:e.smask};"f"in e&&(f.f=e.f),t.call(this,f)}e.cs===this.color_spaces.INDEXED&&(this.internal.newObject(),i({data:this.arrayBufferToBinaryString(new Uint8Array(e.pal))}),r("endobj"))},a=function(){var t=this.internal.collections[n+"images"];for(var e in t)o.call(this,t[e])},s=function(){var t,e=this.internal.collections[n+"images"],r=this.internal.write;for(var i in e)r("/I"+(t=e[i]).i,t.n,"0","R")},l=function(t){return"function"==typeof e["process"+t.toUpperCase()]},h=function(e){return"object"===t(e)&&1===e.nodeType},u=function(t,n){if("IMG"===t.nodeName&&t.hasAttribute("src")){var r=""+t.getAttribute("src");if(0===r.indexOf("data:image/"))return unescape(r);var i=e.loadFile(r);if(void 0!==i)return btoa(i)}if("CANVAS"===t.nodeName){var o=t;return t.toDataURL("image/jpeg",1)}(o=document.createElement("canvas")).width=t.clientWidth||t.width,o.height=t.clientHeight||t.height;var a=o.getContext("2d");if(!a)throw"addImage requires canvas to be supported by browser.";return a.drawImage(t,0,0,o.width,o.height),o.toDataURL("png"==(""+n).toLowerCase()?"image/png":"image/jpeg")},c=function(t,e){var n;if(e)for(var r in e)if(t===e[r].alias){n=e[r];break}return n};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"},e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},e.sHashCode=function(t){var e,n=0;if(0===(t=t||"").length)return n;for(e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return n},e.isString=function(t){return"string"==typeof t},e.validateStringAsBase64=function(t){(t=t||"").toString().trim();var e=!0;return 0===t.length&&(e=!1),t.length%4!=0&&(e=!1),!1===/^[A-Za-z0-9+\/]+$/.test(t.substr(0,t.length-2))&&(e=!1),!1===/^[A-Za-z0-9\/][A-Za-z0-9+\/]|[A-Za-z0-9+\/]=|==$/.test(t.substr(-2))&&(e=!1),e},e.extractInfoFromBase64DataURI=function(t){return/^data:([\w]+?\/([\w]+?));\S*;*base64,(.+)$/g.exec(t)},e.extractImageFromDataUrl=function(t){var e=(t=t||"").split("base64,"),n=null;if(2===e.length){var r=/^data:(\w*\/\w*);*(charset=[\w=-]*)*;*$/.exec(e[0]);Array.isArray(r)&&(n={mimeType:r[1],charset:r[2],data:e[1]})}return n},e.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array},e.isArrayBuffer=function(t){return!!this.supportsArrayBuffer()&&t instanceof ArrayBuffer},e.isArrayBufferView=function(t){return!!this.supportsArrayBuffer()&&"undefined"!=typeof Uint32Array&&(t instanceof Int8Array||t instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)},e.binaryStringToUint8Array=function(t){for(var e=t.length,n=new Uint8Array(e),r=0;r<e;r++)n[r]=t.charCodeAt(r);return n},e.arrayBufferToBinaryString=function(t){if("function"==typeof atob)return atob(this.arrayBufferToBase64(t))},e.arrayBufferToBase64=function(t){for(var e,n="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=new Uint8Array(t),o=i.byteLength,a=o%3,s=o-a,l=0;l<s;l+=3)n+=r[(16515072&(e=i[l]<<16|i[l+1]<<8|i[l+2]))>>18]+r[(258048&e)>>12]+r[(4032&e)>>6]+r[63&e];return 1==a?n+=r[(252&(e=i[s]))>>2]+r[(3&e)<<4]+"==":2==a&&(n+=r[(64512&(e=i[s]<<8|i[s+1]))>>10]+r[(1008&e)>>4]+r[(15&e)<<2]+"="),n},e.createImageInfo=function(t,e,n,r,i,o,a,s,l,h,u,c,f){var p={alias:s,w:e,h:n,cs:r,bpc:i,i:a,data:t};return o&&(p.f=o),l&&(p.dp=l),h&&(p.trns=h),u&&(p.pal=u),c&&(p.smask=c),f&&(p.p=f),p},e.addImage=function(r,i,o,f,p,d,g,m,y){var v="";if("string"!=typeof i){var w=d;d=p,p=f,f=o,o=i,i=w}if("object"===t(r)&&!h(r)&&"imageData"in r){var b=r;r=b.imageData,i=b.format||i||"UNKNOWN",o=b.x||o||0,f=b.y||f||0,p=b.w||p,d=b.h||d,g=b.alias||g,m=b.compression||m,y=b.rotation||b.angle||y}var x=this.internal.getFilters();if(void 0===m&&-1!==x.indexOf("FlateEncode")&&(m="SLOW"),"string"==typeof r&&(r=unescape(r)),isNaN(o)||isNaN(f))throw console.error("jsPDF.addImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addImage");var N,L,A,S,_,F,P,k=function(){var t=this.internal.collections[n+"images"];return t||(this.internal.collections[n+"images"]=t={},this.internal.events.subscribe("putResources",a),this.internal.events.subscribe("putXobjectDict",s)),t}.call(this);if(!((N=c(r,k))||(h(r)&&(r=u(r,i)),(null==(P=g)||0===P.length)&&(g="string"==typeof(F=r)?e.sHashCode(F):e.isArrayBufferView(F)?e.sHashCode(e.arrayBufferToBinaryString(F)):null),N=c(g,k)))){if(this.isString(r)&&(""!==(v=this.convertStringToImageData(r))?r=v:void 0!==(v=e.loadFile(r))&&(r=v)),i=this.getImageFileTypeByImageData(r,i),!l(i))throw new Error("addImage does not support files of type '"+i+"', please ensure that a plugin for '"+i+"' support is added.");if(this.supportsArrayBuffer()&&(r instanceof Uint8Array||(L=r,r=this.binaryStringToUint8Array(r))),!(N=this["process"+i.toUpperCase()](r,(_=0,(S=k)&&(_=Object.keys?Object.keys(S).length:function(t){var e=0;for(var n in t)t.hasOwnProperty(n)&&e++;return e}(S)),_),g,((A=m)&&"string"==typeof A&&(A=A.toUpperCase()),A in e.image_compression?A:e.image_compression.NONE),L)))throw new Error("An unknown error occurred whilst processing the image")}return function(t,e,n,r,i,o,a,s){var l=function(t,e,n){return t||e||(e=t=-96),t<0&&(t=-1*n.w*72/t/this.internal.scaleFactor),e<0&&(e=-1*n.h*72/e/this.internal.scaleFactor),0===t&&(t=e*n.w/n.h),0===e&&(e=t*n.h/n.w),[t,e]}.call(this,n,r,i),h=this.internal.getCoordinateString,u=this.internal.getVerticalCoordinateString;if(n=l[0],r=l[1],a[o]=i,s){s*=Math.PI/180;var c=Math.cos(s),f=Math.sin(s),p=function(t){return t.toFixed(4)},d=[p(c),p(f),p(-1*f),p(c),0,0,"cm"]}this.internal.write("q"),s?(this.internal.write([1,"0","0",1,h(t),u(e+r),"cm"].join(" ")),this.internal.write(d.join(" ")),this.internal.write([h(n),"0","0",h(r),"0","0","cm"].join(" "))):this.internal.write([h(n),"0","0",h(r),h(t),u(e+r),"cm"].join(" ")),this.internal.write("/I"+i.i+" Do"),this.internal.write("Q")}.call(this,o,f,p,d,N,N.i,k,y),this},e.convertStringToImageData=function(t){var n,r="";if(this.isString(t)){var i;n=null!==(i=this.extractImageFromDataUrl(t))?i.data:t;try{r=atob(n)}catch(t){throw e.validateStringAsBase64(n)?new Error("atob-Error in jsPDF.convertStringToImageData "+t.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertStringToImageData ")}}return r};var f=function(t,e){return t.subarray(e,e+5)};e.processJPEG=function(t,e,n,r,o,a){var s,l=this.decode.DCT_DECODE;if(!this.isString(t)&&!this.isArrayBuffer(t)&&!this.isArrayBufferView(t))return null;if(this.isString(t)&&(s=function(t){var e;if("JPEG"!==i(t))throw new Error("getJpegSize requires a binary string jpeg file");for(var n=256*t.charCodeAt(4)+t.charCodeAt(5),r=4,o=t.length;r<o;){if(r+=n,255!==t.charCodeAt(r))throw new Error("getJpegSize could not find the size of the image");if(192===t.charCodeAt(r+1)||193===t.charCodeAt(r+1)||194===t.charCodeAt(r+1)||195===t.charCodeAt(r+1)||196===t.charCodeAt(r+1)||197===t.charCodeAt(r+1)||198===t.charCodeAt(r+1)||199===t.charCodeAt(r+1))return e=256*t.charCodeAt(r+5)+t.charCodeAt(r+6),[256*t.charCodeAt(r+7)+t.charCodeAt(r+8),e,t.charCodeAt(r+9)];r+=2,n=256*t.charCodeAt(r)+t.charCodeAt(r+1)}}(t)),this.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.isArrayBufferView(t)&&(s=function(t){if(65496!=(t[0]<<8|t[1]))throw new Error("Supplied data is not a JPEG");for(var e,n=t.length,r=(t[4]<<8)+t[5],i=4;i<n;){if(r=((e=f(t,i+=r))[2]<<8)+e[3],(192===e[1]||194===e[1])&&255===e[0]&&7<r)return{width:((e=f(t,i+5))[2]<<8)+e[3],height:(e[0]<<8)+e[1],numcomponents:e[4]};i+=2}throw new Error("getJpegSizeFromBytes could not find the size of the image")}(t),t=o||this.arrayBufferToBinaryString(t)),void 0===a)switch(s.numcomponents){case 1:a=this.color_spaces.DEVICE_GRAY;break;case 4:a=this.color_spaces.DEVICE_CMYK;break;default:case 3:a=this.color_spaces.DEVICE_RGB}return this.createImageInfo(t,s.width,s.height,a,8,l,e,n)},e.processJPG=function(){return this.processJPEG.apply(this,arguments)},e.getImageProperties=function(t){var n,r,i="";if(h(t)&&(t=u(t)),this.isString(t)&&(""!==(i=this.convertStringToImageData(t))?t=i:void 0!==(i=e.loadFile(t))&&(t=i)),r=this.getImageFileTypeByImageData(t),!l(r))throw new Error("addImage does not support files of type '"+r+"', please ensure that a plugin for '"+r+"' support is added.");if(this.supportsArrayBuffer()&&(t instanceof Uint8Array||(t=this.binaryStringToUint8Array(t))),!(n=this["process"+r.toUpperCase()](t)))throw new Error("An unknown error occurred whilst processing the image");return{fileType:r,width:n.w,height:n.h,colorSpace:n.cs,compressionMode:n.f,bitsPerComponent:n.bpc}}}(ht.API),e=ht.API,ht.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(t){for(var e=this.internal.getPageInfoByObjId(t.objId),n=t.pageContext.annotations,r=function(t){if(void 0!==t&&""!=t)return!0},i=!1,o=0;o<n.length&&!i;o++)switch((l=n[o]).type){case"link":if(r(l.options.url)||r(l.options.pageNumber)){i=!0;break}case"reference":case"text":case"freetext":i=!0}if(0!=i){this.internal.write("/Annots ["),this.internal.pageSize.height;var a=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;for(o=0;o<n.length;o++){var l;switch((l=n[o]).type){case"reference":this.internal.write(" "+l.object.objId+" 0 R ");break;case"text":var h=this.internal.newAdditionalObject(),u=this.internal.newAdditionalObject(),c=l.title||"Note";m="<</Type /Annot /Subtype /Text "+(p="/Rect ["+a(l.bounds.x)+" "+s(l.bounds.y+l.bounds.h)+" "+a(l.bounds.x+l.bounds.w)+" "+s(l.bounds.y)+"] ")+"/Contents ("+l.contents+")",m+=" /Popup "+u.objId+" 0 R",m+=" /P "+e.objId+" 0 R",m+=" /T ("+c+") >>",h.content=m;var f=h.objId+" 0 R";m="<</Type /Annot /Subtype /Popup "+(p="/Rect ["+a(l.bounds.x+30)+" "+s(l.bounds.y+l.bounds.h)+" "+a(l.bounds.x+l.bounds.w+30)+" "+s(l.bounds.y)+"] ")+" /Parent "+f,l.open&&(m+=" /Open true"),m+=" >>",u.content=m,this.internal.write(h.objId,"0 R",u.objId,"0 R");break;case"freetext":var p="/Rect ["+a(l.bounds.x)+" "+s(l.bounds.y)+" "+a(l.bounds.x+l.bounds.w)+" "+s(l.bounds.y+l.bounds.h)+"] ",d=l.color||"#000000";m="<</Type /Annot /Subtype /FreeText "+p+"/Contents ("+l.contents+")",m+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+d+")",m+=" /Border [0 0 0]",m+=" >>",this.internal.write(m);break;case"link":if(l.options.name){var g=this.annotations._nameMap[l.options.name];l.options.pageNumber=g.page,l.options.top=g.y}else l.options.top||(l.options.top=0);p="/Rect ["+a(l.x)+" "+s(l.y)+" "+a(l.x+l.w)+" "+s(l.y+l.h)+"] ";var m="";if(l.options.url)m="<</Type /Annot /Subtype /Link "+p+"/Border [0 0 0] /A <</S /URI /URI ("+l.options.url+") >>";else if(l.options.pageNumber)switch(m="<</Type /Annot /Subtype /Link "+p+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(l.options.pageNumber).objId+" 0 R",l.options.magFactor=l.options.magFactor||"XYZ",l.options.magFactor){case"Fit":m+=" /Fit]";break;case"FitH":m+=" /FitH "+l.options.top+"]";break;case"FitV":l.options.left=l.options.left||0,m+=" /FitV "+l.options.left+"]";break;case"XYZ":default:var y=s(l.options.top);l.options.left=l.options.left||0,void 0===l.options.zoom&&(l.options.zoom=0),m+=" /XYZ "+l.options.left+" "+y+" "+l.options.zoom+"]"}""!=m&&(m+=" >>",this.internal.write(m))}}this.internal.write("]")}}]),e.createAnnotation=function(t){var e=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":e.pageContext.annotations.push(t)}},e.link=function(t,e,n,r,i){this.internal.getCurrentPageInfo().pageContext.annotations.push({x:t,y:e,w:n,h:r,options:i,type:"link"})},e.textWithLink=function(t,e,n,r){var i=this.getTextWidth(t),o=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(t,e,n),n+=.2*o,this.link(e,n-o,i,o,r),i},e.getTextWidth=function(t){var e=this.internal.getFontSize();return this.getStringUnitWidth(t)*e/this.internal.scaleFactor},function(t){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},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},i=[1570,1571,1573,1575];t.__arabicParser__={};var o=t.__arabicParser__.isInArabicSubstitutionA=function(t){return void 0!==e[t.charCodeAt(0)]},a=t.__arabicParser__.isArabicLetter=function(t){return"string"==typeof t&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(t)},s=t.__arabicParser__.isArabicEndLetter=function(t){return a(t)&&o(t)&&e[t.charCodeAt(0)].length<=2},l=t.__arabicParser__.isArabicAlfLetter=function(t){return a(t)&&0<=i.indexOf(t.charCodeAt(0))},h=(t.__arabicParser__.arabicLetterHasIsolatedForm=function(t){return a(t)&&o(t)&&1<=e[t.charCodeAt(0)].length},t.__arabicParser__.arabicLetterHasFinalForm=function(t){return a(t)&&o(t)&&2<=e[t.charCodeAt(0)].length}),u=(t.__arabicParser__.arabicLetterHasInitialForm=function(t){return a(t)&&o(t)&&3<=e[t.charCodeAt(0)].length},t.__arabicParser__.arabicLetterHasMedialForm=function(t){return a(t)&&o(t)&&4==e[t.charCodeAt(0)].length}),c=t.__arabicParser__.resolveLigatures=function(t){var e=0,r=n,i=0,o="",a=0;for(e=0;e<t.length;e+=1)void 0!==r[t.charCodeAt(e)]?(a++,"number"==typeof(r=r[t.charCodeAt(e)])&&(i=-1!==(i=f(t.charAt(e),t.charAt(e-a),t.charAt(e+1)))?i:0,o+=String.fromCharCode(r),r=n,a=0),e===t.length-1&&(r=n,o+=t.charAt(e-(a-1)),e-=a-1,a=0)):(r=n,o+=t.charAt(e-a),e-=a,a=0);return o},f=(t.__arabicParser__.isArabicDiacritic=function(t){return void 0!==t&&void 0!==r[t.charCodeAt(0)]},t.__arabicParser__.getCorrectForm=function(t,e,n){return a(t)?!1===o(t)?-1:!h(t)||!a(e)&&!a(n)||!a(n)&&s(e)||s(t)&&!a(e)||s(t)&&l(e)||s(t)&&s(e)?0:u(t)&&a(e)&&!s(e)&&a(n)&&h(n)?3:s(t)||!a(n)?1:2:-1}),p=t.__arabicParser__.processArabic=t.processArabic=function(t){var n=0,r=0,i=0,o="",s="",l="",h=(t=t||"").split("\\s+"),u=[];for(n=0;n<h.length;n+=1){for(u.push(""),r=0;r<h[n].length;r+=1)o=h[n][r],s=h[n][r-1],l=h[n][r+1],a(o)?(i=f(o,s,l),u[n]+=-1!==i?String.fromCharCode(e[o.charCodeAt(0)][i]):o):u[n]+=o;u[n]=c(u[n])}return u.join(" ")};t.events.push(["preProcessText",function(t){var e=t.text,n=(t.x,t.y,t.options||{}),r=(t.mutex,n.lang,[]);if("[object Array]"===Object.prototype.toString.call(e)){var i=0;for(r=[],i=0;i<e.length;i+=1)"[object Array]"===Object.prototype.toString.call(e[i])?r.push([p(e[i][0]),e[i][1],e[i][2]]):r.push([p(e[i])]);t.text=r}else t.text=p(e)}])}(ht.API),ht.API.autoPrint=function(t){var e;switch((t=t||{}).variant=t.variant||"non-conform",t.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+e+" 0 R")})}return this},n=ht.API,(r=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(e){t=e}});var e=150;Object.defineProperty(this,"width",{get:function(){return e},set:function(t){e=isNaN(t)||!1===Number.isInteger(t)||t<0?150:t,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=e+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(t){n=isNaN(t)||!1===Number.isInteger(t)||t<0?300:t,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(t){r=t}});var i={};Object.defineProperty(this,"style",{get:function(){return i},set:function(t){i=t}}),Object.defineProperty(this,"parentNode",{get:function(){return!1}})}).prototype.getContext=function(t,e){var n;if("2d"!==(t=t||"2d"))return null;for(n in e)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=e[n]);return(this.pdf.context2d._canvas=this).pdf.context2d},r.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},n.events.push(["initialized",function(){this.canvas=new r,this.canvas.pdf=this}]),i=ht.API,a={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},s=1,l=function(t,e,n,r,i){a={x:t,y:e,w:n,h:r,ln:i}},h=function(){return a},u={left:0,top:0,bottom:0},i.setHeaderFunction=function(t){o=t},i.getTextDimensions=function(t,e){var n=this.table_font_size||this.internal.getFontSize(),r=(this.internal.getFont().fontStyle,(e=e||{}).scaleFactor||this.internal.scaleFactor),i=0,o=0,a=0;if("string"==typeof t)0!=(i=this.getStringUnitWidth(t)*n)&&(o=1);else{if("[object Array]"!==Object.prototype.toString.call(t))throw new Error("getTextDimensions expects text-parameter to be of type String or an Array of Strings.");for(var s=0;s<t.length;s++)i<(a=this.getStringUnitWidth(t[s])*n)&&(i=a);0!==i&&(o=t.length)}return{w:i/=r,h:Math.max((o*n*this.getLineHeightFactor()-n*(this.getLineHeightFactor()-1))/r,0)}},i.cellAddPage=function(){var t=this.margins||u;this.addPage(),l(t.left,t.top,void 0,void 0),s+=1},i.cellInitialize=function(){a={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},s=1},i.cell=function(t,e,n,r,i,o,a){var s=h(),c=!1;if(void 0!==s.ln)if(s.ln===o)t=s.x+s.w,e=s.y;else{var f=this.margins||u;s.y+s.h+r+13>=this.internal.pageSize.getHeight()-f.bottom&&(this.cellAddPage(),c=!0,this.printHeaders&&this.tableHeaderRow&&this.printHeaderRow(o,!0)),e=h().y+h().h,c&&(e=23)}if(void 0!==i[0])if(this.printingHeaderRow?this.rect(t,e,n,r,"FD"):this.rect(t,e,n,r),"right"===a){i instanceof Array||(i=[i]);for(var p=0;p<i.length;p++){var d=i[p],g=this.getStringUnitWidth(d)*this.internal.getFontSize()/this.internal.scaleFactor;this.text(d,t+n-g-3,e+this.internal.getLineHeight()*(p+1))}}else this.text(i,t+3,e+this.internal.getLineHeight());return l(t,e,n,r,o),this},i.arrayMax=function(t,e){var n,r,i,o=t[0];for(n=0,r=t.length;n<r;n+=1)i=t[n],e?-1===e(o,i)&&(o=i):o<i&&(o=i);return o},i.table=function(t,e,n,r,o){if(!n)throw"No data for PDF table";var l,h,c,f,p,d,g,m,y,v,w=[],b=[],x={},N={},L=[],A=[],S=!1,_=!0,F=12,P=u;if(P.width=this.internal.pageSize.getWidth(),o&&(!0===o.autoSize&&(S=!0),!1===o.printHeaders&&(_=!1),o.fontSize&&(F=o.fontSize),o.css&&void 0!==o.css["font-size"]&&(F=16*o.css["font-size"]),o.margins&&(P=o.margins)),this.lnMod=0,a={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},s=1,this.printHeaders=_,this.margins=P,this.setFontSize(F),this.table_font_size=F,null==r)w=Object.keys(n[0]);else if(r[0]&&"string"!=typeof r[0])for(h=0,c=r.length;h<c;h+=1)l=r[h],w.push(l.name),b.push(l.prompt),N[l.name]=l.width*(19.049976/25.4);else w=r;if(S)for(v=function(t){return t[l]},h=0,c=w.length;h<c;h+=1){for(x[l=w[h]]=n.map(v),L.push(this.getTextDimensions(b[h]||l,{scaleFactor:1}).w),g=0,f=(d=x[l]).length;g<f;g+=1)p=d[g],L.push(this.getTextDimensions(p,{scaleFactor:1}).w);N[l]=i.arrayMax(L),L=[]}if(_){var k=this.calculateLineHeight(w,N,b.length?b:w);for(h=0,c=w.length;h<c;h+=1)l=w[h],A.push([t,e,N[l],k,String(b.length?b[h]:l)]);this.setTableHeaderRow(A),this.printHeaderRow(1,!1)}for(h=0,c=n.length;h<c;h+=1)for(m=n[h],k=this.calculateLineHeight(w,N,m),g=0,y=w.length;g<y;g+=1)l=w[g],this.cell(t,e,N[l],k,m[l],h+2,l.align);return this.lastCellPos=a,this.table_x=t,this.table_y=e,this},i.calculateLineHeight=function(t,e,n){for(var r,i=0,o=0;o<t.length;o++){n[r=t[o]]=this.splitTextToSize(String(n[r]),e[r]-3);var a=this.internal.getLineHeight()*n[r].length+3;i<a&&(i=a)}return i},i.setTableHeaderRow=function(t){this.tableHeaderRow=t},i.printHeaderRow=function(t,e){if(!this.tableHeaderRow)throw"Property tableHeaderRow does not exist.";var n,r,i,a;if(this.printingHeaderRow=!0,void 0!==o){var h=o(this,s);l(h[0],h[1],h[2],h[3],-1)}this.setFontStyle("bold");var u=[];for(i=0,a=this.tableHeaderRow.length;i<a;i+=1)this.setFillColor(200,200,200),n=this.tableHeaderRow[i],e&&(this.margins.top=13,n[1]=this.margins&&this.margins.top||0,u.push(n)),r=[].concat(n),this.cell.apply(this,r.concat(t));0<u.length&&this.setTableHeaderRow(u),this.setFontStyle("normal"),this.printingHeaderRow=!1},function(e,n){var r,i,o,a,s,l=function(t){return t=t||{},this.isStrokeTransparent=t.isStrokeTransparent||!1,this.strokeOpacity=t.strokeOpacity||1,this.strokeStyle=t.strokeStyle||"#000000",this.fillStyle=t.fillStyle||"#000000",this.isFillTransparent=t.isFillTransparent||!1,this.fillOpacity=t.fillOpacity||1,this.font=t.font||"10px sans-serif",this.textBaseline=t.textBaseline||"alphabetic",this.textAlign=t.textAlign||"left",this.lineWidth=t.lineWidth||1,this.lineJoin=t.lineJoin||"miter",this.lineCap=t.lineCap||"butt",this.path=t.path||[],this.transform=void 0!==t.transform?t.transform.clone():new M,this.globalCompositeOperation=t.globalCompositeOperation||"normal",this.globalAlpha=t.globalAlpha||1,this.clip_path=t.clip_path||[],this.currentPoint=t.currentPoint||new j,this.miterLimit=t.miterLimit||10,this.lastPoint=t.lastPoint||new j,this.ignoreClearRect="boolean"!=typeof t.ignoreClearRect||t.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new h(this),r=this.internal.f2,this.internal.f3,i=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,a=this.internal.getHorizontalCoordinate,s=this.internal.getVerticalCoordinate}]);var h=function(t){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}}),Object.defineProperty(this,"pdf",{get:function(){return t}});var e=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return e},set:function(t){e=Boolean(t)}});var n=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return n},set:function(t){n=Boolean(t)}});var r=0;Object.defineProperty(this,"posX",{get:function(){return r},set:function(t){isNaN(t)||(r=t)}});var i=0;Object.defineProperty(this,"posY",{get:function(){return i},set:function(t){isNaN(t)||(i=t)}});var o=!1;Object.defineProperty(this,"autoPaging",{get:function(){return o},set:function(t){o=Boolean(t)}});var a=0;Object.defineProperty(this,"lastBreak",{get:function(){return a},set:function(t){a=t}});var s=[];Object.defineProperty(this,"pageBreaks",{get:function(){return s},set:function(t){s=t}});var h=new l;Object.defineProperty(this,"ctx",{get:function(){return h},set:function(t){t instanceof l&&(h=t)}}),Object.defineProperty(this,"path",{get:function(){return h.path},set:function(t){h.path=t}});var c=[];Object.defineProperty(this,"ctxStack",{get:function(){return c},set:function(t){c=t}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(t){var e;e=u(t),this.ctx.fillStyle=e.style,this.ctx.isFillTransparent=0===e.a,this.ctx.fillOpacity=e.a,this.pdf.setFillColor(e.r,e.g,e.b,{a:e.a}),this.pdf.setTextColor(e.r,e.g,e.b,{a:e.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(t){var e=u(t);this.ctx.strokeStyle=e.style,this.ctx.isStrokeTransparent=0===e.a,this.ctx.strokeOpacity=e.a,0===e.a?this.pdf.setDrawColor(255,255,255):(e.a,this.pdf.setDrawColor(e.r,e.g,e.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(t){-1!==["butt","round","square"].indexOf(t)&&(this.ctx.lineCap=t,this.pdf.setLineCap(t))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(t){isNaN(t)||(this.ctx.lineWidth=t,this.pdf.setLineWidth(t))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(t){-1!==["bevel","round","miter"].indexOf(t)&&(this.ctx.lineJoin=t,this.pdf.setLineJoin(t))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(t){isNaN(t)||(this.ctx.miterLimit=t,this.pdf.setMiterLimit(t))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(t){this.ctx.textBaseline=t}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(t){-1!==["right","end","center","left","start"].indexOf(t)&&(this.ctx.textAlign=t)}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(t){var e;if(this.ctx.font=t,null!==(e=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(t))){var n=e[1],r=(e[2],e[3]),i=e[4],o=e[5],a=e[6];i="px"===o?Math.floor(parseFloat(i)):"em"===o?Math.floor(parseFloat(i)*this.pdf.getFontSize()):Math.floor(parseFloat(i)),this.pdf.setFontSize(i);var s="";("bold"===r||700<=parseInt(r,10)||"bold"===n)&&(s="bold"),"italic"===n&&(s+="italic"),0===s.length&&(s="normal");for(var l="",h=a.toLowerCase().replace(/"|'/g,"").split(/\s*,\s*/),u={arial:"Helvetica",verdana:"Helvetica",helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",courier:"Courier",times:"Times",cursive:"Times",fantasy:"Times",serif:"Times"},c=0;c<h.length;c++){if(void 0!==this.pdf.internal.getFont(h[c],s,{noFallback:!0,disableWarning:!0})){l=h[c];break}if("bolditalic"===s&&void 0!==this.pdf.internal.getFont(h[c],"bold",{noFallback:!0,disableWarning:!0}))l=h[c],s="bold";else if(void 0!==this.pdf.internal.getFont(h[c],"normal",{noFallback:!0,disableWarning:!0})){l=h[c],s="normal";break}}if(""===l)for(c=0;c<h.length;c++)if(u[h[c]]){l=u[h[c]];break}l=""===l?"Times":l,this.pdf.setFont(l,s)}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(t){this.ctx.globalCompositeOperation=t}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(t){this.ctx.globalAlpha=t}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(t){this.ctx.ignoreClearRect=Boolean(t)}})};h.prototype.fill=function(){m.call(this,"fill",!1)},h.prototype.stroke=function(){m.call(this,"stroke",!1)},h.prototype.beginPath=function(){this.path=[{type:"begin"}]},h.prototype.moveTo=function(t,e){if(isNaN(t)||isNaN(e))throw console.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var n=this.ctx.transform.applyToPoint(new j(t,e));this.path.push({type:"mt",x:n.x,y:n.y}),this.ctx.lastPoint=new j(t,e)},h.prototype.closePath=function(){var e=new j(0,0),n=0;for(n=this.path.length-1;-1!==n;n--)if("begin"===this.path[n].type&&"object"===t(this.path[n+1])&&"number"==typeof this.path[n+1].x){e=new j(this.path[n+1].x,this.path[n+1].y),this.path.push({type:"lt",x:e.x,y:e.y});break}"object"===t(this.path[n+2])&&"number"==typeof this.path[n+2].x&&this.path.push(JSON.parse(JSON.stringify(this.path[n+2]))),this.path.push({type:"close"}),this.ctx.lastPoint=new j(e.x,e.y)},h.prototype.lineTo=function(t,e){if(isNaN(t)||isNaN(e))throw console.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var n=this.ctx.transform.applyToPoint(new j(t,e));this.path.push({type:"lt",x:n.x,y:n.y}),this.ctx.lastPoint=new j(n.x,n.y)},h.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),m.call(this,null,!0)},h.prototype.quadraticCurveTo=function(t,e,n,r){if(isNaN(n)||isNaN(r)||isNaN(t)||isNaN(e))throw console.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var i=this.ctx.transform.applyToPoint(new j(n,r)),o=this.ctx.transform.applyToPoint(new j(t,e));this.path.push({type:"qct",x1:o.x,y1:o.y,x:i.x,y:i.y}),this.ctx.lastPoint=new j(i.x,i.y)},h.prototype.bezierCurveTo=function(t,e,n,r,i,o){if(isNaN(i)||isNaN(o)||isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var a=this.ctx.transform.applyToPoint(new j(i,o)),s=this.ctx.transform.applyToPoint(new j(t,e)),l=this.ctx.transform.applyToPoint(new j(n,r));this.path.push({type:"bct",x1:s.x,y1:s.y,x2:l.x,y2:l.y,x:a.x,y:a.y}),this.ctx.lastPoint=new j(a.x,a.y)},h.prototype.arc=function(t,e,n,r,i,o){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i))throw console.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(o=Boolean(o),!this.ctx.transform.isIdentity){var a=this.ctx.transform.applyToPoint(new j(t,e));t=a.x,e=a.y;var s=this.ctx.transform.applyToPoint(new j(0,n)),l=this.ctx.transform.applyToPoint(new j(0,0));n=Math.sqrt(Math.pow(s.x-l.x,2)+Math.pow(s.y-l.y,2))}Math.abs(i-r)>=2*Math.PI&&(r=0,i=2*Math.PI),this.path.push({type:"arc",x:t,y:e,radius:n,startAngle:r,endAngle:i,counterclockwise:o})},h.prototype.arcTo=function(t,e,n,r,i){throw new Error("arcTo not implemented.")},h.prototype.rect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(t,e),this.lineTo(t+n,e),this.lineTo(t+n,e+r),this.lineTo(t,e+r),this.lineTo(t,e),this.lineTo(t+n,e),this.lineTo(t,e)},h.prototype.fillRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!c.call(this)){var i={};"butt"!==this.lineCap&&(i.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(i.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(t,e,n,r),this.fill(),i.hasOwnProperty("lineCap")&&(this.lineCap=i.lineCap),i.hasOwnProperty("lineJoin")&&(this.lineJoin=i.lineJoin)}},h.prototype.strokeRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");f.call(this)||(this.beginPath(),this.rect(t,e,n,r),this.stroke())},h.prototype.clearRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(t,e,n,r))},h.prototype.save=function(t){t="boolean"!=typeof t||t;for(var e=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(e),t){this.ctx.fontSize=this.pdf.internal.getFontSize();var r=new l(this.ctx);this.ctxStack.push(this.ctx),this.ctx=r}},h.prototype.restore=function(t){t="boolean"!=typeof t||t;for(var e=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(e),t&&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)},h.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var u=function(t){var e,n,r,i;if(!0===t.isCanvasGradient&&(t=t.getColor()),!t)return{r:0,g:0,b:0,a:0,style:t};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(t))i=r=n=e=0;else{var o=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(t);if(null!==o)e=parseInt(o[1]),n=parseInt(o[2]),r=parseInt(o[3]),i=1;else if(null!==(o=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d\.]+)\s*\)/.exec(t)))e=parseInt(o[1]),n=parseInt(o[2]),r=parseInt(o[3]),i=parseFloat(o[4]);else{if(i=1,"string"==typeof t&&"#"!==t.charAt(0)){var a=new RGBColor(t);t=a.ok?a.toHex():"#000000"}4===t.length?(e=t.substring(1,2),e+=e,n=t.substring(2,3),n+=n,r=t.substring(3,4),r+=r):(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7)),e=parseInt(e,16),n=parseInt(n,16),r=parseInt(r,16)}}return{r:e,g:n,b:r,a:i,style:t}},c=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},f=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};h.prototype.fillText=function(t,e,n,r){if(isNaN(e)||isNaN(n)||"string"!=typeof t)throw console.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(r=isNaN(r)?void 0:r,!c.call(this)){n=v.call(this,n);var i=k(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;L.call(this,{text:t,x:e,y:n,scale:o,angle:i,align:this.textAlign,maxWidth:r})}},h.prototype.strokeText=function(t,e,n,r){if(isNaN(e)||isNaN(n)||"string"!=typeof t)throw console.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!f.call(this)){r=isNaN(r)?void 0:r,n=v.call(this,n);var i=k(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;L.call(this,{text:t,x:e,y:n,scale:o,renderingMode:"stroke",angle:i,align:this.textAlign,maxWidth:r})}},h.prototype.measureText=function(t){if("string"!=typeof t)throw console.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var e=this.pdf,n=this.pdf.internal.scaleFactor,r=e.internal.getFontSize(),i=e.getStringUnitWidth(t)*r/e.internal.scaleFactor;return new function(t){var e=(t=t||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return e}}),this}({width:i*=Math.round(96*n/72*1e4)/1e4})},h.prototype.scale=function(t,e){if(isNaN(t)||isNaN(e))throw console.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var n=new M(t,0,0,e,0,0);this.ctx.transform=this.ctx.transform.multiply(n)},h.prototype.rotate=function(t){if(isNaN(t))throw console.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var e=new M(Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0);this.ctx.transform=this.ctx.transform.multiply(e)},h.prototype.translate=function(t,e){if(isNaN(t)||isNaN(e))throw console.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var n=new M(1,0,0,1,t,e);this.ctx.transform=this.ctx.transform.multiply(n)},h.prototype.transform=function(t,e,n,r,i,o){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(o))throw console.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var a=new M(t,e,n,r,i,o);this.ctx.transform=this.ctx.transform.multiply(a)},h.prototype.setTransform=function(t,e,n,r,i,o){t=isNaN(t)?1:t,e=isNaN(e)?0:e,n=isNaN(n)?0:n,r=isNaN(r)?1:r,i=isNaN(i)?0:i,o=isNaN(o)?0:o,this.ctx.transform=new M(t,e,n,r,i,o)},h.prototype.drawImage=function(t,e,n,r,i,o,a,s,l){var h=this.pdf.getImageProperties(t),u=1,c=1,f=1,d=1;void 0!==r&&void 0!==s&&(f=s/r,d=l/i,u=h.width/r*s/r,c=h.height/i*l/i),void 0===o&&(o=e,a=n,n=e=0),void 0!==r&&void 0===s&&(s=r,l=i),void 0===r&&void 0===s&&(s=h.width,l=h.height);var m=this.ctx.transform.decompose(),v=k(m.rotate.shx);m.scale.sx,m.scale.sy;for(var w,b=new M,x=((b=(b=(b=b.multiply(m.translate)).multiply(m.skew)).multiply(m.scale)).applyToPoint(new j(s,l)),b.applyToRectangle(new E(o-e*f,a-n*d,r*u,i*c))),N=p.call(this,x),L=[],A=0;A<N.length;A+=1)-1===L.indexOf(N[A])&&L.push(N[A]);if(L.sort(),this.autoPaging)for(var S=L[0],_=L[L.length-1],F=S;F<_+1;F++){if(this.pdf.setPage(F),0!==this.ctx.clip_path.length){var P=this.path;w=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=g(w,this.posX,-1*this.pdf.internal.pageSize.height*(F-1)+this.posY),y.call(this,"fill",!0),this.path=P}var I=JSON.parse(JSON.stringify(x));I=g([I],this.posX,-1*this.pdf.internal.pageSize.height*(F-1)+this.posY)[0],this.pdf.addImage(t,"jpg",I.x,I.y,I.w,I.h,null,null,v)}else this.pdf.addImage(t,"jpg",x.x,x.y,x.w,x.h,null,null,v)};var p=function(t,e,n){var r=[];switch(e=e||this.pdf.internal.pageSize.width,n=n||this.pdf.internal.pageSize.height,t.type){default:case"mt":case"lt":r.push(Math.floor((t.y+this.posY)/n)+1);break;case"arc":r.push(Math.floor((t.y+this.posY-t.radius)/n)+1),r.push(Math.floor((t.y+this.posY+t.radius)/n)+1);break;case"qct":var i=C(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x,t.y);r.push(Math.floor(i.y/n)+1),r.push(Math.floor((i.y+i.h)/n)+1);break;case"bct":var o=B(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x2,t.y2,t.x,t.y);r.push(Math.floor(o.y/n)+1),r.push(Math.floor((o.y+o.h)/n)+1);break;case"rect":r.push(Math.floor((t.y+this.posY)/n)+1),r.push(Math.floor((t.y+t.h+this.posY)/n)+1)}for(var a=0;a<r.length;a+=1)for(;this.pdf.internal.getNumberOfPages()<r[a];)d.call(this);return r},d=function(){var t=this.fillStyle,e=this.strokeStyle,n=this.font,r=this.lineCap,i=this.lineWidth,o=this.lineJoin;this.pdf.addPage(),this.fillStyle=t,this.strokeStyle=e,this.font=n,this.lineCap=r,this.lineWidth=i,this.lineJoin=o},g=function(t,e,n){for(var r=0;r<t.length;r++)switch(t[r].type){case"bct":t[r].x2+=e,t[r].y2+=n;case"qct":t[r].x1+=e,t[r].y1+=n;case"mt":case"lt":case"arc":default:t[r].x+=e,t[r].y+=n}return t},m=function(t,e){for(var n,r,i=this.fillStyle,o=this.strokeStyle,a=(this.font,this.lineCap),s=this.lineWidth,l=this.lineJoin,h=JSON.parse(JSON.stringify(this.path)),u=JSON.parse(JSON.stringify(this.path)),c=[],f=0;f<u.length;f++)if(void 0!==u[f].x)for(var m=p.call(this,u[f]),v=0;v<m.length;v+=1)-1===c.indexOf(m[v])&&c.push(m[v]);for(f=0;f<c.length;f++)for(;this.pdf.internal.getNumberOfPages()<c[f];)d.call(this);if(c.sort(),this.autoPaging){var w=c[0],b=c[c.length-1];for(f=w;f<b+1;f++){if(this.pdf.setPage(f),this.fillStyle=i,this.strokeStyle=o,this.lineCap=a,this.lineWidth=s,this.lineJoin=l,0!==this.ctx.clip_path.length){var x=this.path;n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=g(n,this.posX,-1*this.pdf.internal.pageSize.height*(f-1)+this.posY),y.call(this,t,!0),this.path=x}r=JSON.parse(JSON.stringify(h)),this.path=g(r,this.posX,-1*this.pdf.internal.pageSize.height*(f-1)+this.posY),!1!==e&&0!==f||y.call(this,t,e)}}else y.call(this,t,e);this.path=h},y=function(t,e){if(("stroke"!==t||e||!f.call(this))&&("stroke"===t||e||!c.call(this))){var n=[];this.ctx.globalAlpha,this.ctx.fillOpacity<1&&this.ctx.fillOpacity;for(var r,i=this.path,o=0;o<i.length;o++){var a=i[o];switch(a.type){case"begin":n.push({begin:!0});break;case"close":n.push({close:!0});break;case"mt":n.push({start:a,deltas:[],abs:[]});break;case"lt":var s=n.length;if(!isNaN(i[o-1].x)){var l=[a.x-i[o-1].x,a.y-i[o-1].y];if(0<s)for(;0<=s;s--)if(!0!==n[s-1].close&&!0!==n[s-1].begin){n[s-1].deltas.push(l),n[s-1].abs.push(a);break}}break;case"bct":l=[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],n[n.length-1].deltas.push(l);break;case"qct":var h=i[o-1].x+2/3*(a.x1-i[o-1].x),u=i[o-1].y+2/3*(a.y1-i[o-1].y),p=a.x+2/3*(a.x1-a.x),d=a.y+2/3*(a.y1-a.y),g=a.x,m=a.y;l=[h-i[o-1].x,u-i[o-1].y,p-i[o-1].x,d-i[o-1].y,g-i[o-1].x,m-i[o-1].y],n[n.length-1].deltas.push(l);break;case"arc":n.push({deltas:[],abs:[],arc:!0}),Array.isArray(n[n.length-1].abs)&&n[n.length-1].abs.push(a)}}for(r=e?null:"stroke"===t?"stroke":"fill",o=0;o<n.length;o++){if(n[o].arc)for(var y=n[o].abs,v=0;v<y.length;v++){var N=y[v];if(void 0!==N.startAngle){var L=k(N.startAngle),_=k(N.endAngle),F=N.x,P=N.y;w.call(this,F,P,N.radius,L,_,N.counterclockwise,r,e)}else A.call(this,N.x,N.y)}n[o].arc||!0===n[o].close||!0===n[o].begin||(F=n[o].start.x,P=n[o].start.y,S.call(this,n[o].deltas,F,P,null,null))}r&&b.call(this,r),e&&x.call(this)}},v=function(t){var e=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,n=e*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return t-n;case"top":return t+e-n;case"hanging":return t+e-2*n;case"middle":return t+e/2-n;case"ideographic":return t;case"alphabetic":default:return t}};h.prototype.createLinearGradient=function(){var t=function(){};return t.colorStops=[],t.addColorStop=function(t,e){this.colorStops.push([t,e])},t.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},t.isCanvasGradient=!0,t},h.prototype.createPattern=function(){return this.createLinearGradient()},h.prototype.createRadialGradient=function(){return this.createLinearGradient()};var w=function(t,e,n,r,i,o,a,s){this.pdf.internal.scaleFactor;for(var l=I(r),h=I(i),u=F.call(this,n,l,h,o),c=0;c<u.length;c++){var f=u[c];0===c&&N.call(this,f.x1+t,f.y1+e),_.call(this,t,e,f.x2,f.y2,f.x3,f.y3,f.x4,f.y4)}s?x.call(this):b.call(this,a)},b=function(t){switch(t){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},x=function(){this.pdf.clip()},N=function(t,e){this.pdf.internal.out(i(t)+" "+o(e)+" m")},L=function(t){var e;switch(t.align){case"right":case"end":e="right";break;case"center":e="center";break;case"left":case"start":default:e="left"}var n=this.ctx.transform.applyToPoint(new j(t.x,t.y)),r=this.ctx.transform.decompose(),i=new M;i=(i=(i=i.multiply(r.translate)).multiply(r.skew)).multiply(r.scale);for(var o,a=this.pdf.getTextDimensions(t.text),s=this.ctx.transform.applyToRectangle(new E(t.x,t.y,a.w,a.h)),l=i.applyToRectangle(new E(t.x,t.y-a.h,a.w,a.h)),h=p.call(this,l),u=[],c=0;c<h.length;c+=1)-1===u.indexOf(h[c])&&u.push(h[c]);if(u.sort(),!0===this.autoPaging)for(var f=u[0],d=u[u.length-1],m=f;m<d+1;m++){if(this.pdf.setPage(m),0!==this.ctx.clip_path.length){var v=this.path;o=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=g(o,this.posX,-1*this.pdf.internal.pageSize.height*(m-1)+this.posY),y.call(this,"fill",!0),this.path=v}var w=JSON.parse(JSON.stringify(s));if(w=g([w],this.posX,-1*this.pdf.internal.pageSize.height*(m-1)+this.posY)[0],.01<=t.scale){var b=this.pdf.internal.getFontSize();this.pdf.setFontSize(b*t.scale)}this.pdf.text(t.text,w.x,w.y,{angle:t.angle,align:e,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),.01<=t.scale&&this.pdf.setFontSize(b)}else.01<=t.scale&&(b=this.pdf.internal.getFontSize(),this.pdf.setFontSize(b*t.scale)),this.pdf.text(t.text,n.x+this.posX,n.y+this.posY,{angle:t.angle,align:e,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),.01<=t.scale&&this.pdf.setFontSize(b)},A=function(t,e,n,r){n=n||0,r=r||0,this.pdf.internal.out(i(t+n)+" "+o(e+r)+" l")},S=function(t,e,n){return this.pdf.lines(t,e,n,null,null)},_=function(t,e,n,i,o,l,h,u){this.pdf.internal.out([r(a(n+t)),r(s(i+e)),r(a(o+t)),r(s(l+e)),r(a(h+t)),r(s(u+e)),"c"].join(" "))},F=function(t,e,n,r){var i=2*Math.PI,o=e;(o<i||i<o)&&(o%=i);var a=n;(a<i||i<a)&&(a%=i);for(var s=[],l=Math.PI/2,h=r?-1:1,u=e,c=Math.min(i,Math.abs(a-o));1e-5<c;){var f=u+h*Math.min(c,l);s.push(P.call(this,t,u,f)),c-=Math.abs(f-u),u=f}return s},P=function(t,e,n){var r=(n-e)/2,i=t*Math.cos(r),o=t*Math.sin(r),a=i,s=-o,l=a*a+s*s,h=l+a*i+s*o,u=4/3*(Math.sqrt(2*l*h)-h)/(a*o-s*i),c=a-u*s,f=s+u*a,p=c,d=-f,g=r+e,m=Math.cos(g),y=Math.sin(g);return{x1:t*Math.cos(e),y1:t*Math.sin(e),x2:c*m-f*y,y2:c*y+f*m,x3:p*m-d*y,y3:p*y+d*m,x4:t*Math.cos(n),y4:t*Math.sin(n)}},k=function(t){return 180*t/Math.PI},I=function(t){return t*Math.PI/180},C=function(t,e,n,r,i,o){var a=t+.5*(n-t),s=e+.5*(r-e),l=i+.5*(n-i),h=o+.5*(r-o),u=Math.min(t,i,a,l),c=Math.max(t,i,a,l),f=Math.min(e,o,s,h),p=Math.max(e,o,s,h);return new E(u,f,c-u,p-f)},B=function(t,e,n,r,i,o,a,s){for(var l,h,u,c,f,p,d,g,m,y,v,w,b,x=n-t,N=r-e,L=i-n,A=o-r,S=a-i,_=s-o,F=0;F<41;F++)g=(p=(h=t+(l=F/40)*x)+l*((c=n+l*L)-h))+l*(c+l*(i+l*S-c)-p),m=(d=(u=e+l*N)+l*((f=r+l*A)-u))+l*(f+l*(o+l*_-f)-d),b=0==F?(w=y=g,v=m):(y=Math.min(y,g),v=Math.min(v,m),w=Math.max(w,g),Math.max(b,m));return new E(Math.round(y),Math.round(v),Math.round(w-y),Math.round(b-v))},j=function(t,e){var n=t||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return n},set:function(t){isNaN(t)||(n=parseFloat(t))}});var r=e||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return r},set:function(t){isNaN(t)||(r=parseFloat(t))}});var i="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return i},set:function(t){i=t.toString()}}),this},E=function(t,e,n,r){j.call(this,t,e),this.type="rect";var i=n||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return i},set:function(t){isNaN(t)||(i=parseFloat(t))}});var o=r||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return o},set:function(t){isNaN(t)||(o=parseFloat(t))}}),this},M=function(t,e,n,r,i,o){var a=[];return Object.defineProperty(this,"sx",{get:function(){return a[0]},set:function(t){a[0]=Math.round(1e5*t)/1e5}}),Object.defineProperty(this,"shy",{get:function(){return a[1]},set:function(t){a[1]=Math.round(1e5*t)/1e5}}),Object.defineProperty(this,"shx",{get:function(){return a[2]},set:function(t){a[2]=Math.round(1e5*t)/1e5}}),Object.defineProperty(this,"sy",{get:function(){return a[3]},set:function(t){a[3]=Math.round(1e5*t)/1e5}}),Object.defineProperty(this,"tx",{get:function(){return a[4]},set:function(t){a[4]=Math.round(1e5*t)/1e5}}),Object.defineProperty(this,"ty",{get:function(){return a[5]},set:function(t){a[5]=Math.round(1e5*t)/1e5}}),Object.defineProperty(this,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(this,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(this,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(this,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),this.sx=isNaN(t)?1:t,this.shy=isNaN(e)?0:e,this.shx=isNaN(n)?0:n,this.sy=isNaN(r)?1:r,this.tx=isNaN(i)?0:i,this.ty=isNaN(o)?0:o,this};M.prototype.multiply=function(t){var e=t.sx*this.sx+t.shy*this.shx,n=t.sx*this.shy+t.shy*this.sy,r=t.shx*this.sx+t.sy*this.shx,i=t.shx*this.shy+t.sy*this.sy,o=t.tx*this.sx+t.ty*this.shx+this.tx,a=t.tx*this.shy+t.ty*this.sy+this.ty;return new M(e,n,r,i,o,a)},M.prototype.decompose=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,o=this.ty,a=Math.sqrt(t*t+e*e),s=(t/=a)*n+(e/=a)*r;n-=t*s,r-=e*s;var l=Math.sqrt(n*n+r*r);return s/=l,t*(r/=l)<e*(n/=l)&&(t=-t,e=-e,s=-s,a=-a),{scale:new M(a,0,0,l,0,0),translate:new M(1,0,0,1,i,o),rotate:new M(t,e,-e,t,0,0),skew:new M(1,0,s,1,0,0)}},M.prototype.applyToPoint=function(t){var e=t.x*this.sx+t.y*this.shx+this.tx,n=t.x*this.shy+t.y*this.sy+this.ty;return new j(e,n)},M.prototype.applyToRectangle=function(t){var e=this.applyToPoint(t),n=this.applyToPoint(new j(t.x+t.w,t.y+t.h));return new E(e.x,e.y,n.x-e.x,n.y-e.y)},M.prototype.clone=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,o=this.ty;return new M(t,e,n,r,i,o)}}(ht.API,"undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof global&&global||Function('return typeof this === "object" && this.content')()||Function("return this")()),c=ht.API,f=function(t){var e,n,r,i,o,a,s,l,h,u;for(/[^\x00-\xFF]/.test(t),n=[],r=0,i=(t+=e="\0\0\0\0".slice(t.length%4||4)).length;r<i;r+=4)0!==(o=(t.charCodeAt(r)<<24)+(t.charCodeAt(r+1)<<16)+(t.charCodeAt(r+2)<<8)+t.charCodeAt(r+3))?(a=(o=((o=((o=((o=(o-(u=o%85))/85)-(h=o%85))/85)-(l=o%85))/85)-(s=o%85))/85)%85,n.push(a+33,s+33,l+33,h+33,u+33)):n.push(122);return function(t,n){for(var r=e.length;0<r;r--)t.pop()}(n),String.fromCharCode.apply(String,n)+"~>"},p=function(t){var e,n,r,i,o,a=String,s="length",l="charCodeAt",h="slice",u="replace";for(t[h](-2),t=t[h](0,-2)[u](/\s/g,"")[u]("z","!!!!!"),r=[],i=0,o=(t+=e="uuuuu"[h](t[s]%5||5))[s];i<o;i+=5)n=52200625*(t[l](i)-33)+614125*(t[l](i+1)-33)+7225*(t[l](i+2)-33)+85*(t[l](i+3)-33)+(t[l](i+4)-33),r.push(255&n>>24,255&n>>16,255&n>>8,255&n);return function(t,n){for(var r=e[s];0<r;r--)t.pop()}(r),a.fromCharCode.apply(a,r)},d=function(t){for(var e="",n=0;n<t.length;n+=1)e+=("0"+t.charCodeAt(n).toString(16)).slice(-2);return e+">"},g=function(t){var e=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(t=t.replace(/\s/g,"")).indexOf(">")&&(t=t.substr(0,t.indexOf(">"))),t.length%2&&(t+="0"),!1===e.test(t))return"";for(var n="",r=0;r<t.length;r+=2)n+=String.fromCharCode("0x"+(t[r]+t[r+1]));return n},m=function(t,e){e=Object.assign({predictor:1,colors:1,bitsPerComponent:8,columns:1},e);for(var n,r,i=[],o=t.length;o--;)i[o]=t.charCodeAt(o);return n=c.adler32cs.from(t),(r=new Deflater(6)).append(new Uint8Array(i)),t=r.flush(),(i=new Uint8Array(t.length+6)).set(new Uint8Array([120,156])),i.set(t,2),i.set(new Uint8Array([255&n,n>>8&255,n>>16&255,n>>24&255]),t.length+2),String.fromCharCode.apply(null,i)},c.processDataByFilters=function(t,e){var n=0,r=t||"",i=[];for("string"==typeof(e=e||[])&&(e=[e]),n=0;n<e.length;n+=1)switch(e[n]){case"ASCII85Decode":case"/ASCII85Decode":r=p(r),i.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":r=f(r),i.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":r=g(r),i.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":r=d(r),i.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":r=m(r),i.push("/FlateDecode");break;default:throw'The filter: "'+e[n]+'" is not implemented'}return{data:r,reverseChain:i.reverse().join(" ")}},(y=ht.API).loadFile=function(t,e,n){var r;e=e||!0,n=n||function(){};try{r=function(t,e,n){var r=new XMLHttpRequest,i=[],o=0,a=function(t){var e=t.length,n=String.fromCharCode;for(o=0;o<e;o+=1)i.push(n(255&t.charCodeAt(o)));return i.join("")};if(r.open("GET",t,!e),r.overrideMimeType("text/plain; charset=x-user-defined"),!1===e&&(r.onload=function(){return a(this.responseText)}),r.send(null),200===r.status)return e?a(r.responseText):void 0;console.warn('Unable to load file "'+t+'"')}(t,e)}catch(t){r=void 0}return r},y.loadImageFile=y.loadFile,v=ht.API,w="undefined"!=typeof window&&window||"undefined"!=typeof global&&global,b=function(e){var n=t(e);return"undefined"===n?"undefined":"string"===n||e instanceof String?"string":"number"===n||e instanceof Number?"number":"function"===n||e instanceof Function?"function":e&&e.constructor===Array?"array":e&&1===e.nodeType?"element":"object"===n?"object":"unknown"},x=function(t,e){var n=document.createElement(t);if(e.className&&(n.className=e.className),e.innerHTML){n.innerHTML=e.innerHTML;for(var r=n.getElementsByTagName("script"),i=r.length;0<i--;null)r[i].parentNode.removeChild(r[i])}for(var o in e.style)n.style[o]=e.style[o];return n},(((N=function t(e){var n=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),r=t.convert(Promise.resolve(),n);return(r=r.setProgress(1,t,1,[t])).set(e)}).prototype=Object.create(Promise.prototype)).constructor=N).convert=function(t,e){return t.__proto__=e||N.prototype,t},N.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:{}}},N.prototype.from=function(t,e){return this.then(function(){switch(e=e||function(t){switch(b(t)){case"string":return"string";case"element":return"canvas"===t.nodeName.toLowerCase?"canvas":"element";default:return"unknown"}}(t)){case"string":return this.set({src:x("div",{innerHTML:t})});case"element":return this.set({src:t});case"canvas":return this.set({canvas:t});case"img":return this.set({img:t});default:return this.error("Unknown source type.")}})},N.prototype.to=function(t){switch(t){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.")}},N.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 t={position:"relative",display:"inline-block",width:Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:"white"},e=function t(e,n){for(var r=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),i=e.firstChild;i;i=i.nextSibling)!0!==n&&1===i.nodeType&&"SCRIPT"===i.nodeName||r.appendChild(t(i,n));return 1===e.nodeType&&("CANVAS"===e.nodeName?(r.width=e.width,r.height=e.height,r.getContext("2d").drawImage(e,0,0)):"TEXTAREA"!==e.nodeName&&"SELECT"!==e.nodeName||(r.value=e.value),r.addEventListener("load",function(){r.scrollTop=e.scrollTop,r.scrollLeft=e.scrollLeft},!0)),r}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===e.tagName&&(t.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=x("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=x("div",{className:"html2pdf__container",style:t}),this.prop.container.appendChild(e),this.prop.container.firstChild.appendChild(x("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"})},N.prototype.toCanvas=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(function(){var t=Object.assign({},this.opt.html2canvas);if(delete t.onrendered,this.isHtml2CanvasLoaded())return html2canvas(this.prop.container,t)}).then(function(t){(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)})},N.prototype.toContext2d=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(function(){var t=this.opt.jsPDF,e=Object.assign({async:!0,allowTaint:!0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete e.onrendered,t.context2d.autoPaging=!0,t.context2d.posX=this.opt.x,t.context2d.posY=this.opt.y,e.windowHeight=e.windowHeight||0,e.windowHeight=0==e.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):e.windowHeight,this.isHtml2CanvasLoaded())return html2canvas(this.prop.container,e)}).then(function(t){(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)})},N.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var t=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=t})},N.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},N.prototype.output=function(t,e,n){return"img"===(n=n||"pdf").toLowerCase()||"image"===n.toLowerCase()?this.outputImg(t,e):this.outputPdf(t,e)},N.prototype.outputPdf=function(t,e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(t,e)})},N.prototype.outputImg=function(t,e){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(t){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 "'+t+'" is not supported.'}})},N.prototype.isHtml2CanvasLoaded=function(){var t=void 0!==w.html2canvas;return t||console.error("html2canvas not loaded."),t},N.prototype.save=function(t){if(this.isHtml2CanvasLoaded())return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(t?{filename:t}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},N.prototype.doCallback=function(t){if(this.isHtml2CanvasLoaded())return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},N.prototype.set=function(t){if("object"!==b(t))return this;var e=Object.keys(t||{}).map(function(e){if(e in N.template.prop)return function(){this.prop[e]=t[e]};switch(e){case"margin":return this.setMargin.bind(this,t.margin);case"jsPDF":return function(){return this.opt.jsPDF=t.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,t.pageSize);default:return function(){this.opt[e]=t[e]}}},this);return this.then(function(){return this.thenList(e)})},N.prototype.get=function(t,e){return this.then(function(){var n=t in N.template.prop?this.prop[t]:this.opt[t];return e?e(n):n})},N.prototype.setMargin=function(t){return this.then(function(){switch(b(t)){case"number":t=[t,t,t,t];case"array":if(2===t.length&&(t=[t[0],t[1],t[0],t[1]]),4===t.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=t}).then(this.setPageSize)},N.prototype.setPageSize=function(t){function e(t,e){return Math.floor(t*e/72*96)}return this.then(function(){(t=t||ht.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(t.inner={width:t.width-this.opt.margin[1]-this.opt.margin[3],height:t.height-this.opt.margin[0]-this.opt.margin[2]},t.inner.px={width:e(t.inner.width,t.k),height:e(t.inner.height,t.k)},t.inner.ratio=t.inner.height/t.inner.width),this.prop.pageSize=t})},N.prototype.setProgress=function(t,e,n,r){return null!=t&&(this.progress.val=t),null!=e&&(this.progress.state=e),null!=n&&(this.progress.n=n),null!=r&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},N.prototype.updateProgress=function(t,e,n,r){return this.setProgress(t?this.progress.val+t:null,e||null,n?this.progress.n+n:null,r?this.progress.stack.concat(r):null)},N.prototype.then=function(t,e){var n=this;return this.thenCore(t,e,function(t,e){return n.updateProgress(null,null,1,[t]),Promise.prototype.then.call(this,function(e){return n.updateProgress(null,t),e}).then(t,e).then(function(t){return n.updateProgress(1),t})})},N.prototype.thenCore=function(t,e,n){n=n||Promise.prototype.then;var r=this;t&&(t=t.bind(r)),e&&(e=e.bind(r));var i=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?r:N.convert(Object.assign({},r),Promise.prototype),o=n.call(i,t,e);return N.convert(o,r.__proto__)},N.prototype.thenExternal=function(t,e){return Promise.prototype.then.call(this,t,e)},N.prototype.thenList=function(t){var e=this;return t.forEach(function(t){e=e.thenCore(t)}),e},N.prototype.catch=function(t){t&&(t=t.bind(this));var e=Promise.prototype.catch.call(this,t);return N.convert(e,this)},N.prototype.catchExternal=function(t){return Promise.prototype.catch.call(this,t)},N.prototype.error=function(t){return this.then(function(){throw new Error(t)})},N.prototype.using=N.prototype.set,N.prototype.saveAs=N.prototype.save,N.prototype.export=N.prototype.output,N.prototype.run=N.prototype.then,ht.getPageSize=function(e,n,r){if("object"===t(e)){var i=e;e=i.orientation,n=i.unit||n,r=i.format||r}n=n||"mm",r=r||"a4",e=(""+(e||"P")).toLowerCase();var o=(""+r).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(n){case"pt":var s=1;break;case"mm":s=72/25.4;break;case"cm":s=72/2.54;break;case"in":s=72;break;case"px":s=.75;break;case"pc":case"em":s=12;break;case"ex":s=6;break;default:throw"Invalid unit: "+n}if(a.hasOwnProperty(o))var l=a[o][1]/s,h=a[o][0]/s;else try{l=r[1],h=r[0]}catch(e){throw new Error("Invalid format: "+r)}if("p"===e||"portrait"===e){if(e="p",l<h){var u=h;h=l,l=u}}else{if("l"!==e&&"landscape"!==e)throw"Invalid orientation: "+e;e="l",h<l&&(u=h,h=l,l=u)}return{width:h,height:l,unit:n,k:s}},v.html=function(t,e){(e=e||{}).callback=e.callback||function(){},e.html2canvas=e.html2canvas||{},e.html2canvas.canvas=e.html2canvas.canvas||this.canvas,e.jsPDF=e.jsPDF||this,e.jsPDF;var n=new N(e);return e.worker?n:n.from(t).doCallback()},ht.API.addJS=function(t){return S=t,this.internal.events.subscribe("postPutResources",function(t){L=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(L+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),A=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+S+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){void 0!==L&&void 0!==A&&this.internal.out("/Names <</JavaScript "+L+" 0 R>>")}),this},(_=ht.API).events.push(["postPutResources",function(){var t=this,e=/^(\d+) 0 obj$/;if(0<this.outline.root.children.length)for(var n=t.outline.render().split(/\r\n/),r=0;r<n.length;r++){var i=n[r],o=e.exec(i);if(null!=o){var a=o[1];t.internal.newObjectDeferredBegin(a,!1)}t.internal.write(i)}if(this.outline.createNamedDestinations){var s=this.internal.pages.length,l=[];for(r=0;r<s;r++){var h=t.internal.newObject();l.push(h);var u=t.internal.getPageInfo(r+1);t.internal.write("<< /D["+u.objId+" 0 R /XYZ null null null]>> endobj")}var c=t.internal.newObject();for(t.internal.write("<< /Names [ "),r=0;r<l.length;r++)t.internal.write("(page_"+(r+1)+")"+l[r]+" 0 R");t.internal.write(" ] >>","endobj"),t.internal.newObject(),t.internal.write("<< /Dests "+c+" 0 R"),t.internal.write(">>","endobj")}}]),_.events.push(["putCatalog",function(){0<this.outline.root.children.length&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+namesOid+" 0 R"))}]),_.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(t,e,n){var r={title:e,options:n,children:[]};return null==t&&(t=this.root),t.children.push(r),r},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(e){e.id=t.internal.newObjectDeferred();for(var n=0;n<e.children.length;n++)this.genIds_r(e.children[n])},t.outline.renderRoot=function(t){this.objStart(t),this.line("/Type /Outlines"),0<t.children.length&&(this.line("/First "+this.makeRef(t.children[0])),this.line("/Last "+this.makeRef(t.children[t.children.length-1]))),this.line("/Count "+this.count_r({count:0},t)),this.objEnd()},t.outline.renderItems=function(e){this.ctx.pdf.internal.getCoordinateString;for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,r=0;r<e.children.length;r++){var i=e.children[r];this.objStart(i),this.line("/Title "+this.makeString(i.title)),this.line("/Parent "+this.makeRef(e)),0<r&&this.line("/Prev "+this.makeRef(e.children[r-1])),r<e.children.length-1&&this.line("/Next "+this.makeRef(e.children[r+1])),0<i.children.length&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1])));var o=this.count=this.count_r({count:0},i);if(0<o&&this.line("/Count "+o),i.options&&i.options.pageNumber){var a=t.internal.getPageInfo(i.options.pageNumber);this.line("/Dest ["+a.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(r=0;r<e.children.length;r++)i=e.children[r],this.renderItems(i)},t.outline.line=function(t){this.ctx.val+=t+"\r\n"},t.outline.makeRef=function(t){return t.id+" 0 R"},t.outline.makeString=function(e){return"("+t.internal.pdfEscape(e)+")"},t.outline.objStart=function(t){this.ctx.val+="\r\n"+t.id+" 0 obj\r\n<<\r\n"},t.outline.objEnd=function(t){this.ctx.val+=">> \r\nendobj\r\n"},t.outline.count_r=function(t,e){for(var n=0;n<e.children.length;n++)t.count++,this.count_r(t,e.children[n]);return t.count}}]),F=ht.API,P=function(){var t="function"==typeof Deflater;if(!t)throw new Error("requires deflate.js for compression");return t},k=function(t,e,n,r){var i=5,o=M;switch(r){case F.image_compression.FAST:i=3,o=E;break;case F.image_compression.MEDIUM:i=6,o=O;break;case F.image_compression.SLOW:i=9,o=q}t=B(t,e,n,o);var a=new Uint8Array(I(i)),s=C(t),l=new Deflater(i),h=l.append(t),u=l.flush(),c=a.length+h.length+u.length,f=new Uint8Array(c+4);return f.set(a),f.set(h,a.length),f.set(u,a.length+h.length),f[c++]=s>>>24&255,f[c++]=s>>>16&255,f[c++]=s>>>8&255,f[c++]=255&s,F.arrayBufferToBinaryString(f)},I=function(t,e){var n=Math.LOG2E*Math.log(32768)-8<<4|8,r=n<<8;return r|=Math.min(3,(e-1&255)>>1)<<6,r|=0,[n,255&(r+=31-r%31)]},C=function(t,e){for(var n,r=1,i=0,o=t.length,a=0;0<o;){for(o-=n=e<o?e:o;i+=r+=t[a++],--n;);r%=65521,i%=65521}return(i<<16|r)>>>0},B=function(t,e,n,r){for(var i,o,a,s=t.length/e,l=new Uint8Array(t.length+s),h=R(),u=0;u<s;u++){if(a=u*e,i=t.subarray(a,a+e),r)l.set(r(i,n,o),a+u);else{for(var c=0,f=h.length,p=[];c<f;c++)p[c]=h[c](i,n,o);var d=D(p.concat());l.set(p[d],a+u)}o=i}return l},j=function(t,e,n){var r=Array.apply([],t);return r.unshift(0),r},E=function(t,e,n){var r,i=[],o=0,a=t.length;for(i[0]=1;o<a;o++)r=t[o-e]||0,i[o+1]=t[o]-r+256&255;return i},M=function(t,e,n){var r,i=[],o=0,a=t.length;for(i[0]=2;o<a;o++)r=n&&n[o]||0,i[o+1]=t[o]-r+256&255;return i},O=function(t,e,n){var r,i,o=[],a=0,s=t.length;for(o[0]=3;a<s;a++)r=t[a-e]||0,i=n&&n[a]||0,o[a+1]=t[a]+256-(r+i>>>1)&255;return o},q=function(t,e,n){var r,i,o,a,s=[],l=0,h=t.length;for(s[0]=4;l<h;l++)r=t[l-e]||0,i=n&&n[l]||0,o=n&&n[l-e]||0,a=T(r,i,o),s[l+1]=t[l]-a+256&255;return s},T=function(t,e,n){var r=t+e-n,i=Math.abs(r-t),o=Math.abs(r-e),a=Math.abs(r-n);return i<=o&&i<=a?t:o<=a?e:n},R=function(){return[j,E,M,O,q]},D=function(t){for(var e,n,r,i=0,o=t.length;i<o;)((e=U(t[i].slice(1)))<n||!n)&&(n=e,r=i),i++;return r},U=function(t){for(var e=0,n=t.length,r=0;e<n;)r+=Math.abs(t[e++]);return r},F.processPNG=function(t,e,n,r,i){var o,a,s,l,h,u,c=this.color_spaces.DEVICE_RGB,f=this.decode.FLATE_DECODE,p=8;if(this.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.isArrayBufferView(t)){if("function"!=typeof PNG||"function"!=typeof Ct)throw new Error("PNG support requires png.js and zlib.js");if(t=(o=new PNG(t)).imgData,p=o.bits,c=o.colorSpace,l=o.colors,-1!==[4,6].indexOf(o.colorType)){if(8===o.bits)for(var d,g=(_=32==o.pixelBitlength?new Uint32Array(o.decodePixels().buffer):16==o.pixelBitlength?new Uint16Array(o.decodePixels().buffer):new Uint8Array(o.decodePixels().buffer)).length,m=new Uint8Array(g*o.colors),y=new Uint8Array(g),v=o.pixelBitlength-o.bits,w=0,b=0;w<g;w++){for(x=_[w],d=0;d<v;)m[b++]=x>>>d&255,d+=o.bits;y[w]=x>>>d&255}if(16===o.bits){g=(_=new Uint32Array(o.decodePixels().buffer)).length,m=new Uint8Array(g*(32/o.pixelBitlength)*o.colors),y=new Uint8Array(g*(32/o.pixelBitlength));for(var x,N=1<o.colors,L=b=w=0;w<g;)x=_[w++],m[b++]=x>>>0&255,N&&(m[b++]=x>>>16&255,x=_[w++],m[b++]=x>>>0&255),y[L++]=x>>>16&255;p=8}r!==F.image_compression.NONE&&P()?(t=k(m,o.width*o.colors,o.colors,r),u=k(y,o.width,1,r)):(t=m,u=y,f=null)}if(3===o.colorType&&(c=this.color_spaces.INDEXED,h=o.palette,o.transparency.indexed)){var A=o.transparency.indexed,S=0;for(w=0,g=A.length;w<g;++w)S+=A[w];if((S/=255)==g-1&&-1!==A.indexOf(0))s=[A.indexOf(0)];else if(S!==g){var _=o.decodePixels();for(y=new Uint8Array(_.length),w=0,g=_.length;w<g;w++)y[w]=A[_[w]];u=k(y,o.width,1)}}var I=function(t){var e;switch(r){case F.image_compression.FAST:e=11;break;case F.image_compression.MEDIUM:e=13;break;case F.image_compression.SLOW:e=14;break;default:e=12}return e}();return a=f===this.decode.FLATE_DECODE?"/Predictor "+I+" /Colors "+l+" /BitsPerComponent "+p+" /Columns "+o.width:"/Colors "+l+" /BitsPerComponent "+p+" /Columns "+o.width,(this.isArrayBuffer(t)||this.isArrayBufferView(t))&&(t=this.arrayBufferToBinaryString(t)),(u&&this.isArrayBuffer(u)||this.isArrayBufferView(u))&&(u=this.arrayBufferToBinaryString(u)),this.createImageInfo(t,o.width,o.height,c,p,f,e,n,a,s,h,u,I)}throw new Error("Unsupported PNG image data, try using JPEG instead.")},(z=ht.API).processGIF89A=function(t,e,n,r,i){var o=new _t(t),a=o.width,s=o.height,l=[];o.decodeAndBlitFrameRGBA(0,l);var h={data:l,width:a,height:s},u=new Pt(100).encode(h,100);return z.processJPEG.call(this,u,e,n,r)},z.processGIF87A=z.processGIF89A,(H=ht.API).processBMP=function(t,e,n,r,i){var o=new kt(t,!1),a=o.width,s=o.height,l={data:o.getData(),width:a,height:s},h=new Pt(100).encode(l,100);return H.processJPEG.call(this,h,e,n,r)},ht.API.setLanguage=function(t){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:"FYRO Macedonian",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"}[t]&&(this.internal.languageSettings.languageCode=t,!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},W=ht.API,V=W.getCharWidthsArray=function(t,e){var n,r,i,o=(e=e||{}).font||this.internal.getFont(),a=e.fontSize||this.internal.getFontSize(),s=e.charSpace||this.internal.getCharSpace(),l=e.widths?e.widths:o.metadata.Unicode.widths,h=l.fof?l.fof:1,u=e.kerning?e.kerning:o.metadata.Unicode.kerning,c=u.fof?u.fof:1,f=0,p=l[0]||h,d=[];for(n=0,r=t.length;n<r;n++)i=t.charCodeAt(n),"function"==typeof o.metadata.widthOfString?d.push((o.metadata.widthOfGlyph(o.metadata.characterToGlyph(i))+s*(1e3/a)||0)/1e3):d.push((l[i]||p)/h+(u[i]&&u[i][f]||0)/c),f=i;return d},G=W.getArraySum=function(t){for(var e=t.length,n=0;e;)n+=t[--e];return n},Y=W.getStringUnitWidth=function(t,e){var n=(e=e||{}).fontSize||this.internal.getFontSize(),r=e.font||this.internal.getFont(),i=e.charSpace||this.internal.getCharSpace();return"function"==typeof r.metadata.widthOfString?r.metadata.widthOfString(t,n,i)/n:G(V.apply(this,arguments))},J=function(t,e,n,r){for(var i=[],o=0,a=t.length,s=0;o!==a&&s+e[o]<n;)s+=e[o],o++;i.push(t.slice(0,o));var l=o;for(s=0;o!==a;)s+e[o]>r&&(i.push(t.slice(l,o)),s=0,l=o),s+=e[o],o++;return l!==o&&i.push(t.slice(l,o)),i},X=function(t,e,n){n||(n={});var r,i,o,a,s,l,h=[],u=[h],c=n.textIndent||0,f=0,p=0,d=t.split(" "),g=V.apply(this,[" ",n])[0];if(l=-1===n.lineIndent?d[0].length+2:n.lineIndent||0){var m=Array(l).join(" "),y=[];d.map(function(t){1<(t=t.split(/\s*\n/)).length?y=y.concat(t.map(function(t,e){return(e&&t.length?"\n":"")+t})):y.push(t[0])}),d=y,l=Y.apply(this,[m,n])}for(o=0,a=d.length;o<a;o++){var v=0;if(r=d[o],l&&"\n"==r[0]&&(r=r.substr(1),v=1),i=V.apply(this,[r,n]),e<c+f+(p=G(i))||v){if(e<p){for(s=J.apply(this,[r,i,e-(c+f),e]),h.push(s.shift()),h=[s.pop()];s.length;)u.push([s.shift()]);p=G(i.slice(r.length-(h[0]?h[0].length:0)))}else h=[r];u.push(h),c=p+l,f=g}else h.push(r),c+=f+p,f=g}if(l)var w=function(t,e){return(e?m:"")+t.join(" ")};else w=function(t){return t.join(" ")};return u.map(w)},W.splitTextToSize=function(t,e,n){var r,i=(n=n||{}).fontSize||this.internal.getFontSize(),o=function(t){if(t.widths&&t.kerning)return{widths:t.widths,kerning:t.kerning};var e=this.internal.getFont(t.fontName,t.fontStyle),n="Unicode";return e.metadata[n]?{widths:e.metadata[n].widths||{0:1},kerning:e.metadata[n].kerning||{}}:{font:e.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);r=Array.isArray(t)?t:t.split(/\r?\n/);var a=1*this.internal.scaleFactor*e/i;o.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,o.lineIndent=n.lineIndent;var s,l,h=[];for(s=0,l=r.length;s<l;s++)h=h.concat(X.apply(this,[r[s],a,o]));return h},K=ht.API,Q={codePages:["WinAnsiEncoding"],WinAnsiEncoding:(Z=function(t){for(var e="klmnopqrstuvwxyz",n={},r=0;r<e.length;r++)n[e[r]]="0123456789abcdef"[r];var i,o,a,s,l,h={},u=1,c=h,f=[],p="",d="",g=t.length-1;for(r=1;r!=g;)l=t[r],r+=1,"'"==l?o=o?(s=o.join(""),i):[]:o?o.push(l):"{"==l?(f.push([c,s]),c={},s=i):"}"==l?((a=f.pop())[0][a[1]]=c,s=i,c=a[0]):"-"==l?u=-1:s===i?n.hasOwnProperty(l)?(p+=n[l],s=parseInt(p,16)*u,u=1,p=""):p+=l:n.hasOwnProperty(l)?(d+=n[l],c[s]=parseInt(d,16)*u,u=1,s=i,d=""):d+=l;return h})("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},$={Unicode:{Courier:Q,"Courier-Bold":Q,"Courier-BoldOblique":Q,"Courier-Oblique":Q,Helvetica:Q,"Helvetica-Bold":Q,"Helvetica-BoldOblique":Q,"Helvetica-Oblique":Q,"Times-Roman":Q,"Times-Bold":Q,"Times-BoldItalic":Q,"Times-Italic":Q}},tt={Unicode:{"Courier-Oblique":Z("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":Z("{'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":Z("{'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:Z("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":Z("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":Z("{'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:Z("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:Z("{'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":Z("{'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:Z("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":Z("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":Z("{'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":Z("{'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":Z("{'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}}}")}},K.events.push(["addFont",function(t){var e,n,r,i=t.font,o="Unicode";(e=tt[o][i.postScriptName])&&((n=i.metadata[o]?i.metadata[o]:i.metadata[o]={}).widths=e.widths,n.kerning=e.kerning),(r=$[o][i.postScriptName])&&((n=i.metadata[o]?i.metadata[o]:i.metadata[o]={}).encoding=r).codePages&&r.codePages.length&&(i.encoding=r.codePages[0])}]),et=ht,"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||"undefined"!=typeof window&&window||Function("return this")(),et.API.events.push(["addFont",function(t){var e=t.font,n=t.instance;if(void 0!==n&&n.existsFileInVFS(e.postScriptName)){var r=n.getFileFromVFS(e.postScriptName);if("string"!=typeof r)throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+e.postScriptName+"').");e.metadata=et.API.TTFFont.open(e.postScriptName,e.fontName,r,e.encoding),e.metadata.Unicode=e.metadata.Unicode||{encoding:{},kerning:{},widths:[]},e.metadata.glyIdsUsed=[0]}else if(!1===e.isStandardFont)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+e.postScriptName+"').")}]),(nt=ht.API).addSvg=function(t,e,n,r,i){if(void 0===e||void 0===n)throw new Error("addSVG needs values for 'x' and 'y'");function o(t){for(var e=parseFloat(t[1]),n=parseFloat(t[2]),r=[],i=3,o=t.length;i<o;)"c"===t[i]?(r.push([parseFloat(t[i+1]),parseFloat(t[i+2]),parseFloat(t[i+3]),parseFloat(t[i+4]),parseFloat(t[i+5]),parseFloat(t[i+6])]),i+=7):"l"===t[i]?(r.push([parseFloat(t[i+1]),parseFloat(t[i+2])]),i+=3):i+=1;return[e,n,r]}var a,s,l,h,u,c,f,p,d=(a=t,(l=((s=(p=(h=document).createElement("iframe"),u=".jsPDF_sillysvg_iframe {display:none;position:absolute;}",(f=(c=h).createElement("style")).type="text/css",f.styleSheet?f.styleSheet.cssText=u:f.appendChild(c.createTextNode(u)),c.getElementsByTagName("head")[0].appendChild(f),p.name="childframe",p.setAttribute("width",0),p.setAttribute("height",0),p.setAttribute("frameborder","0"),p.setAttribute("scrolling","no"),p.setAttribute("seamless","seamless"),p.setAttribute("class","jsPDF_sillysvg_iframe"),h.body.appendChild(p),p)).contentWindow||s.contentDocument).document).write(a),l.close(),l.getElementsByTagName("svg")[0]),g=[1,1],m=parseFloat(d.getAttribute("width")),y=parseFloat(d.getAttribute("height"));m&&y&&(r&&i?g=[r/m,i/y]:r?g=[r/m,r/m]:i&&(g=[i/y,i/y]));var v,w,b,x,N=d.childNodes;for(v=0,w=N.length;v<w;v++)(b=N[v]).tagName&&"PATH"===b.tagName.toUpperCase()&&((x=o(b.getAttribute("d").split(" ")))[0]=x[0]*g[0]+e,x[1]=x[1]*g[1]+n,this.lines.call(this,x[2],x[0],x[1],g));return this},nt.addSVG=nt.addSvg,nt.addSvgAsImage=function(t,e,n,r,i,o,a,s){if(isNaN(e)||isNaN(n))throw console.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(i))throw console.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var l=document.createElement("canvas");l.width=r,l.height=i;var h=l.getContext("2d");return h.fillStyle="#fff",h.fillRect(0,0,l.width,l.height),canvg(l,t,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0}),this.addImage(l.toDataURL("image/jpeg",1),e,n,r,i,a,s),this},ht.API.putTotalPages=function(t){var e,n;n=parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(e,n);return this},ht.API.viewerPreferences=function(e,n){var r;e=e||{},n=n||!1;var 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}},s=Object.keys(a),l=[],h=0,u=0,c=0,f=!0;function p(t,e){var n,r=!1;for(n=0;n<t.length;n+=1)t[n]===e&&(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),r=this.internal.viewerpreferences.configuration,"reset"===e||!0===n){var d=s.length;for(c=0;c<d;c+=1)r[s[c]].value=r[s[c]].defaultValue,r[s[c]].explicitSet=!1}if("object"===t(e))for(i in e)if(o=e[i],p(s,i)&&void 0!==o){if("boolean"===r[i].type&&"boolean"==typeof o)r[i].value=o;else if("name"===r[i].type&&p(r[i].valueSet,o))r[i].value=o;else if("integer"===r[i].type&&Number.isInteger(o))r[i].value=o;else if("array"===r[i].type){for(h=0;h<o.length;h+=1)if(f=!0,1===o[h].length&&"number"==typeof o[h][0])l.push(String(o[h]-1));else if(1<o[h].length){for(u=0;u<o[h].length;u+=1)"number"!=typeof o[h][u]&&(f=!1);!0===f&&l.push([o[h][0]-1,o[h][1]-1].join(" "))}r[i].value="["+l.join(" ")+"]"}else r[i].value=r[i].defaultValue;r[i].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){var t,e=[];for(t in r)!0===r[t].explicitSet&&("name"===r[t].type?e.push("/"+t+" /"+r[t].value):e.push("/"+t+" "+r[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>")}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=r,this},rt=ht.API,at=ot=it="",rt.addMetadata=function(t,e){return ot=e||"http://jspdf.default.namespaceuri/",it=t,this.internal.events.subscribe("postPutResources",function(){if(it){var t='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+ot+'"><jspdf:metadata>',e=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),n=unescape(encodeURIComponent(t)),r=unescape(encodeURIComponent(it)),i=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),o=unescape(encodeURIComponent("</x:xmpmeta>")),a=n.length+r.length+i.length+e.length+o.length;at=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+a+" >>"),this.internal.write("stream"),this.internal.write(e+n+r+i+o),this.internal.write("endstream"),this.internal.write("endobj")}else at=""}),this.internal.events.subscribe("putCatalog",function(){at&&this.internal.write("/Metadata "+at+" 0 R")}),this},function(t,e){var n=t.API,r=n.pdfEscape16=function(t,e){for(var n,r=e.metadata.Unicode.widths,i=["","0","00","000","0000"],o=[""],a=0,s=t.length;a<s;++a){if(n=e.metadata.characterToGlyph(t.charCodeAt(a)),e.metadata.glyIdsUsed.push(n),e.metadata.toUnicode[n]=t.charCodeAt(a),-1==r.indexOf(n)&&(r.push(n),r.push([parseInt(e.metadata.widthOfGlyph(n),10)])),"0"==n)return o.join("");n=n.toString(16),o.push(i[4-n.length],n)}return o.join("")},i=function(t){var e,n,r,i,o,a,s;for(o="/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=[],a=0,s=(n=Object.keys(t).sort(function(t,e){return t-e})).length;a<s;a++)e=n[a],100<=r.length&&(o+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar",r=[]),i=("0000"+t[e].toString(16)).slice(-4),e=("0000"+(+e).toString(16)).slice(-4),r.push("<"+e+"><"+i+">");return r.length&&(o+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),o+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};n.events.push(["putFont",function(e){!function(e,n,r,o){if(e.metadata instanceof t.API.TTFFont&&"Identity-H"===e.encoding){for(var a=e.metadata.Unicode.widths,s=e.metadata.subset.encode(e.metadata.glyIdsUsed,1),l="",h=0;h<s.length;h++)l+=String.fromCharCode(s[h]);var u=r();o({data:l,addLength1:!0}),n("endobj");var c=r();o({data:i(e.metadata.toUnicode),addLength1:!0}),n("endobj");var f=r();n("<<"),n("/Type /FontDescriptor"),n("/FontName /"+e.fontName),n("/FontFile2 "+u+" 0 R"),n("/FontBBox "+t.API.PDFObject.convert(e.metadata.bbox)),n("/Flags "+e.metadata.flags),n("/StemV "+e.metadata.stemV),n("/ItalicAngle "+e.metadata.italicAngle),n("/Ascent "+e.metadata.ascender),n("/Descent "+e.metadata.decender),n("/CapHeight "+e.metadata.capHeight),n(">>"),n("endobj");var p=r();n("<<"),n("/Type /Font"),n("/BaseFont /"+e.fontName),n("/FontDescriptor "+f+" 0 R"),n("/W "+t.API.PDFObject.convert(a)),n("/CIDToGIDMap /Identity"),n("/DW 1000"),n("/Subtype /CIDFontType2"),n("/CIDSystemInfo"),n("<<"),n("/Supplement 0"),n("/Registry (Adobe)"),n("/Ordering ("+e.encoding+")"),n(">>"),n(">>"),n("endobj"),e.objectNumber=r(),n("<<"),n("/Type /Font"),n("/Subtype /Type0"),n("/ToUnicode "+c+" 0 R"),n("/BaseFont /"+e.fontName),n("/Encoding /"+e.encoding),n("/DescendantFonts ["+p+" 0 R]"),n(">>"),n("endobj"),e.isAlreadyPutted=!0}}(e.font,e.out,e.newObject,e.putStream)}]),n.events.push(["putFont",function(e){!function(e,n,r,o){if(e.metadata instanceof t.API.TTFFont&&"WinAnsiEncoding"===e.encoding){e.metadata.Unicode.widths;for(var a=e.metadata.rawData,s="",l=0;l<a.length;l++)s+=String.fromCharCode(a[l]);var h=r();o({data:s,addLength1:!0}),n("endobj");var u=r();o({data:i(e.metadata.toUnicode),addLength1:!0}),n("endobj");var c=r();for(n("<<"),n("/Descent "+e.metadata.decender),n("/CapHeight "+e.metadata.capHeight),n("/StemV "+e.metadata.stemV),n("/Type /FontDescriptor"),n("/FontFile2 "+h+" 0 R"),n("/Flags 96"),n("/FontBBox "+t.API.PDFObject.convert(e.metadata.bbox)),n("/FontName /"+e.fontName),n("/ItalicAngle "+e.metadata.italicAngle),n("/Ascent "+e.metadata.ascender),n(">>"),n("endobj"),e.objectNumber=r(),l=0;l<e.metadata.hmtx.widths.length;l++)e.metadata.hmtx.widths[l]=parseInt(e.metadata.hmtx.widths[l]*(1e3/e.metadata.head.unitsPerEm));n("<</Subtype/TrueType/Type/Font/ToUnicode "+u+" 0 R/BaseFont/"+e.fontName+"/FontDescriptor "+c+" 0 R/Encoding/"+e.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(e.metadata.hmtx.widths)+">>"),n("endobj"),e.isAlreadyPutted=!0}}(e.font,e.out,e.newObject,e.putStream)}]);var o=function(t){var e,n,i=t.text||"",o=t.x,a=t.y,s=t.options||{},l=t.mutex||{},h=l.pdfEscape,u=l.activeFontKey,c=l.fonts,f=(l.activeFontSize,""),p=0,d="",g=c[n=u].encoding;if("Identity-H"!==c[n].encoding)return{text:i,x:o,y:a,options:s,mutex:l};for(d=i,n=u,"[object Array]"===Object.prototype.toString.call(i)&&(d=i[0]),p=0;p<d.length;p+=1)c[n].metadata.hasOwnProperty("cmap")&&(e=c[n].metadata.cmap.unicode.codeMap[d[p].charCodeAt(0)]),e?f+=d[p]:d[p].charCodeAt(0)<256&&c[n].metadata.hasOwnProperty("Unicode")?f+=d[p]:f+="";var m="";return parseInt(n.slice(1))<14||"WinAnsiEncoding"===g?m=function(t){for(var e="",n=0;n<t.length;n++)e+=""+t.charCodeAt(n).toString(16);return e}(h(f,n)):"Identity-H"===g&&(m=r(f,c[n])),l.isHex=!0,{text:m,x:o,y:a,options:s,mutex:l}};n.events.push(["postProcessText",function(t){var e=t.text||"",n=t.x,r=t.y,i=t.options,a=t.mutex,s=(i.lang,[]),l={text:e,x:n,y:r,options:i,mutex:a};if("[object Array]"===Object.prototype.toString.call(e)){var h=0;for(h=0;h<e.length;h+=1)"[object Array]"===Object.prototype.toString.call(e[h])&&3===e[h].length?s.push([o(Object.assign({},l,{text:e[h][0]})).text,e[h][1],e[h][2]]):s.push(o(Object.assign({},l,{text:e[h]})).text);t.text=s}else t.text=o(Object.assign({},l,{text:e})).text}])}(ht,"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||"undefined"!=typeof window&&window||Function("return this")()),st=ht.API,lt=function(t){return void 0!==t&&(void 0===t.vFS&&(t.vFS={}),!0)},st.existsFileInVFS=function(t){return!!lt(this.internal)&&void 0!==this.internal.vFS[t]},st.addFileToVFS=function(t,e){return lt(this.internal),this.internal.vFS[t]=e,this},st.getFileFromVFS=function(t){return lt(this.internal),void 0!==this.internal.vFS[t]?this.internal.vFS[t]:null},ht.API.addHTML=function(t,e,n,r,i){if("undefined"==typeof html2canvas&&"undefined"==typeof rasterizeHTML)throw new Error("You need either https://github.com/niklasvh/html2canvas or https://github.com/cburgmer/rasterizeHTML.js");"number"!=typeof e&&(r=e,i=n),"function"==typeof r&&(i=r,r=null),"function"!=typeof i&&(i=function(){});var o=this.internal,a=o.scaleFactor,s=o.pageSize.getWidth(),l=o.pageSize.getHeight();if((r=r||{}).onrendered=function(t){e=parseInt(e)||0,n=parseInt(n)||0;var o=r.dim||{},h=Object.assign({top:0,right:0,bottom:0,left:0,useFor:"content"},r.margin),u=o.h||Math.min(l,t.height/a),c=o.w||Math.min(s,t.width/a)-e,f=r.format||"JPEG",p=r.imageCompression||"SLOW";if(t.height>l-h.top-h.bottom&&r.pagesplit){var d=function(t,e,n,i,o){var a=document.createElement("canvas");a.height=o,a.width=i;var s=a.getContext("2d");return s.mozImageSmoothingEnabled=!1,s.webkitImageSmoothingEnabled=!1,s.msImageSmoothingEnabled=!1,s.imageSmoothingEnabled=!1,s.fillStyle=r.backgroundColor||"#ffffff",s.fillRect(0,0,i,o),s.drawImage(t,e,n,i,o,0,0,i,o),a},g=function(){for(var r,o,u=0,g=0,m={},y=!1;;){var v;if(g=0,m.top=0!==u?h.top:n,m.left=0!==u?h.left:e,y=(s-h.left-h.right)*a<t.width,"content"===h.useFor?0===u?(r=Math.min((s-h.left)*a,t.width),o=Math.min((l-h.top)*a,t.height-u)):(r=Math.min(s*a,t.width),o=Math.min(l*a,t.height-u),m.top=0):(r=Math.min((s-h.left-h.right)*a,t.width),o=Math.min((l-h.bottom-h.top)*a,t.height-u)),y)for(;;){"content"===h.useFor&&(0===g?r=Math.min((s-h.left)*a,t.width):(r=Math.min(s*a,t.width-g),m.left=0));var w=[v=d(t,g,u,r,o),m.left,m.top,v.width/a,v.height/a,f,null,p];if(this.addImage.apply(this,w),(g+=r)>=t.width)break;this.addPage()}else w=[v=d(t,0,u,r,o),m.left,m.top,v.width/a,v.height/a,f,null,p],this.addImage.apply(this,w);if((u+=o)>=t.height)break;this.addPage()}i(c,u,null,w)}.bind(this);if("CANVAS"===t.nodeName){var m=new Image;m.onload=g,m.src=t.toDataURL("image/png"),t=m}else g()}else{var y=Math.random().toString(35),v=[t,e,n,c,u,f,y,p];this.addImage.apply(this,v),i(c,u,y,v)}}.bind(this),"undefined"!=typeof html2canvas&&!r.rstz)return html2canvas(t,r);if("undefined"==typeof rasterizeHTML)return null;var h="drawDocument";return"string"==typeof t&&(h=/^http/.test(t)?"drawURL":"drawHTML"),r.width=r.width||s*a,rasterizeHTML[h](t,void 0,r).then(function(t){r.onrendered(t.image)},function(t){i(null,t)})},function(e){var n,r,i,o,a,s,l,h,u,c,f,p,d,g,m,y,v,w,b,x;n=function(){return function(e){return t.prototype=e,new t};function t(){}}(),c=function(t){var e,n,r,i,o,a,s;for(n=0,r=t.length,e=void 0,a=i=!1;!i&&n!==r;)(e=t[n]=t[n].trimLeft())&&(i=!0),n++;for(n=r-1;r&&!a&&-1!==n;)(e=t[n]=t[n].trimRight())&&(a=!0),n--;for(o=/\s+$/g,s=!0,n=0;n!==r;)"\u2028"!=t[n]&&(e=t[n].replace(/\s+/g," "),s&&(e=e.trimLeft()),e&&(s=o.test(e)),t[n]=e),n++;return t},p=function(t){var e,n,r;for(e=void 0,n=(r=t.split(",")).shift();!e&&n;)e=i[n.trim().toLowerCase()],n=r.shift();return e},d=function(t){var e;return-1<(t="auto"===t?"0px":t).indexOf("em")&&!isNaN(Number(t.replace("em","")))&&(t=18.719*Number(t.replace("em",""))+"px"),-1<t.indexOf("pt")&&!isNaN(Number(t.replace("pt","")))&&(t=1.333*Number(t.replace("pt",""))+"px"),(e=g[t])?e:void 0!==(e={"xx-small":9,"x-small":11,small:13,medium:16,large:19,"x-large":23,"xx-large":28,auto:0}[t])?g[t]=e/16:(e=parseFloat(t))?g[t]=e/16:(e=t.match(/([\d\.]+)(px)/),Array.isArray(e)&&3===e.length?g[t]=parseFloat(e[1])/16:g[t]=1)},u=function(t){var e,n,r,i,u;return u=t,i=document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(u,null):u.currentStyle?u.currentStyle:u.style,n=void 0,(e={})["font-family"]=p((r=function(t){return t=t.replace(/-\D/g,function(t){return t.charAt(1).toUpperCase()}),i[t]})("font-family"))||"times",e["font-style"]=o[r("font-style")]||"normal",e["text-align"]=a[r("text-align")]||"left","bold"===(n=s[r("font-weight")]||"normal")&&("normal"===e["font-style"]?e["font-style"]=n:e["font-style"]=n+e["font-style"]),e["font-size"]=d(r("font-size"))||1,e["line-height"]=d(r("line-height"))||1,e.display="inline"===r("display")?"inline":"block",n="block"===e.display,e["margin-top"]=n&&d(r("margin-top"))||0,e["margin-bottom"]=n&&d(r("margin-bottom"))||0,e["padding-top"]=n&&d(r("padding-top"))||0,e["padding-bottom"]=n&&d(r("padding-bottom"))||0,e["margin-left"]=n&&d(r("margin-left"))||0,e["margin-right"]=n&&d(r("margin-right"))||0,e["padding-left"]=n&&d(r("padding-left"))||0,e["padding-right"]=n&&d(r("padding-right"))||0,e["page-break-before"]=r("page-break-before")||"auto",e.float=l[r("cssFloat")]||"none",e.clear=h[r("clear")]||"none",e.color=r("color"),e},m=function(t,e,n){var r,i,o,a,s;if(o=!1,a=i=void 0,r=n["#"+t.id])if("function"==typeof r)o=r(t,e);else for(i=0,a=r.length;!o&&i!==a;)o=r[i](t,e),i++;if(r=n[t.nodeName],!o&&r)if("function"==typeof r)o=r(t,e);else for(i=0,a=r.length;!o&&i!==a;)o=r[i](t,e),i++;for(s="string"==typeof t.className?t.className.split(" "):[],i=0;i<s.length;i++)if(r=n["."+s[i]],!o&&r)if("function"==typeof r)o=r(t,e);else for(i=0,a=r.length;!o&&i!==a;)o=r[i](t,e),i++;return o},x=function(t,e){var n,r,i,o,a,s,l,h,u;for(n=[],r=[],i=0,u=t.rows[0].cells.length,l=t.clientWidth;i<u;)h=t.rows[0].cells[i],r[i]={name:h.textContent.toLowerCase().replace(/\s+/g,""),prompt:h.textContent.replace(/\r?\n/g,""),width:h.clientWidth/l*e.pdf.internal.pageSize.getWidth()},i++;for(i=1;i<t.rows.length;){for(s=t.rows[i],a={},o=0;o<s.cells.length;)a[r[o].name]=s.cells[o].textContent.replace(/\r?\n/g,""),o++;n.push(a),i++}return{rows:n,headers:r}};var N={SCRIPT:1,STYLE:1,NOSCRIPT:1,OBJECT:1,EMBED:1,SELECT:1},L=1;r=function(e,i,o){var a,s,l,h,c,f,p,d;for(s=e.childNodes,a=void 0,(c="block"===(l=u(e)).display)&&(i.setBlockBoundary(),i.setBlockStyle(l)),h=0,f=s.length;h<f;){if("object"===t(a=s[h])){if(i.executeWatchFunctions(a),1===a.nodeType&&"HEADER"===a.nodeName){var g=a,v=i.pdf.margins_doc.top;i.pdf.internal.events.subscribe("addPage",function(t){i.y=v,r(g,i,o),i.pdf.margins_doc.top=i.y+10,i.y+=10},!1)}if(8===a.nodeType&&"#comment"===a.nodeName)~a.textContent.indexOf("ADD_PAGE")&&(i.pdf.addPage(),i.y=i.pdf.margins_doc.top);else if(1!==a.nodeType||N[a.nodeName])if(3===a.nodeType){var w=a.nodeValue;if(a.nodeValue&&"LI"===a.parentNode.nodeName)if("OL"===a.parentNode.parentNode.nodeName)w=L+++". "+w;else{var b=l["font-size"],A=(3-.75*b)*i.pdf.internal.scaleFactor,S=.75*b*i.pdf.internal.scaleFactor,_=1.74*b/i.pdf.internal.scaleFactor;d=function(t,e){this.pdf.circle(t+A,e+S,_,"FD")}}16&a.ownerDocument.body.compareDocumentPosition(a)&&i.addText(w,l)}else"string"==typeof a&&i.addText(a,l);else{var F;if("IMG"===a.nodeName){var P=a.getAttribute("src");F=y[i.pdf.sHashCode(P)||P]}if(F){i.pdf.internal.pageSize.getHeight()-i.pdf.margins_doc.bottom<i.y+a.height&&i.y>i.pdf.margins_doc.top&&(i.pdf.addPage(),i.y=i.pdf.margins_doc.top,i.executeWatchFunctions(a));var k=u(a),I=i.x,C=12/i.pdf.internal.scaleFactor,B=(k["margin-left"]+k["padding-left"])*C,j=(k["margin-right"]+k["padding-right"])*C,E=(k["margin-top"]+k["padding-top"])*C,M=(k["margin-bottom"]+k["padding-bottom"])*C;void 0!==k.float&&"right"===k.float?I+=i.settings.width-a.width-j:I+=B,i.pdf.addImage(F,I,i.y+E,a.width,a.height),F=void 0,"right"===k.float||"left"===k.float?(i.watchFunctions.push(function(t,e,n,r){return i.y>=e?(i.x+=t,i.settings.width+=n,!0):!!(r&&1===r.nodeType&&!N[r.nodeName]&&i.x+r.width>i.pdf.margins_doc.left+i.pdf.margins_doc.width)&&(i.x+=t,i.y=e,i.settings.width+=n,!0)}.bind(this,"left"===k.float?-a.width-B-j:0,i.y+a.height+E+M,a.width)),i.watchFunctions.push(function(t,e,n){return!(i.y<t&&e===i.pdf.internal.getNumberOfPages())||1===n.nodeType&&"both"===u(n).clear&&(i.y=t,!0)}.bind(this,i.y+a.height,i.pdf.internal.getNumberOfPages())),i.settings.width-=a.width+B+j,"left"===k.float&&(i.x+=a.width+B+j)):i.y+=a.height+E+M}else if("TABLE"===a.nodeName)p=x(a,i),i.y+=10,i.pdf.table(i.x,i.y,p.rows,p.headers,{autoSize:!1,printHeaders:o.printHeaders,margins:i.pdf.margins_doc,css:u(a)}),i.y=i.pdf.lastCellPos.y+i.pdf.lastCellPos.h+20;else if("OL"===a.nodeName||"UL"===a.nodeName)L=1,m(a,i,o)||r(a,i,o),i.y+=10;else if("LI"===a.nodeName){var O=i.x;i.x+=20/i.pdf.internal.scaleFactor,i.y+=3,m(a,i,o)||r(a,i,o),i.x=O}else"BR"===a.nodeName?(i.y+=l["font-size"]*i.pdf.internal.scaleFactor,i.addText("\u2028",n(l))):m(a,i,o)||r(a,i,o)}}h++}if(o.outY=i.y,c)return i.setBlockBoundary(d)},y={},v=function(t,e,n,r){var i,o=t.getElementsByTagName("img"),a=o.length,s=0;function l(){e.pdf.internal.events.publish("imagesLoaded"),r(i)}function h(t,n,r){if(t){var o=new Image;i=++s,o.crossOrigin="",o.onerror=o.onload=function(){if(o.complete&&(0===o.src.indexOf("data:image/")&&(o.width=n||o.width||0,o.height=r||o.height||0),o.width+o.height)){var i=e.pdf.sHashCode(t)||t;y[i]=y[i]||o}--s||l()},o.src=t}}for(;a--;)h(o[a].getAttribute("src"),o[a].width,o[a].height);return s||l()},w=function(t,e,n){var i=t.getElementsByTagName("footer");if(0<i.length){i=i[0];var o=e.pdf.internal.write,a=e.y;e.pdf.internal.write=function(){},r(i,e,n);var s=Math.ceil(e.y-a)+5;e.y=a,e.pdf.internal.write=o,e.pdf.margins_doc.bottom+=s;for(var l=function(t){var o=void 0!==t?t.pageNumber:1,a=e.y;e.y=e.pdf.internal.pageSize.getHeight()-e.pdf.margins_doc.bottom,e.pdf.margins_doc.bottom-=s;for(var l=i.getElementsByTagName("span"),h=0;h<l.length;++h)-1<(" "+l[h].className+" ").replace(/[\n\t]/g," ").indexOf(" pageCounter ")&&(l[h].innerHTML=o),-1<(" "+l[h].className+" ").replace(/[\n\t]/g," ").indexOf(" totalPages ")&&(l[h].innerHTML="###jsPDFVarTotalPages###");r(i,e,n),e.pdf.margins_doc.bottom+=s,e.y=a},h=i.getElementsByTagName("span"),u=0;u<h.length;++u)-1<(" "+h[u].className+" ").replace(/[\n\t]/g," ").indexOf(" totalPages ")&&e.pdf.internal.events.subscribe("htmlRenderingFinished",e.pdf.putTotalPages.bind(e.pdf,"###jsPDFVarTotalPages###"),!0);e.pdf.internal.events.subscribe("addPage",l,!1),l(),N.FOOTER=1}},b=function(t,e,n,i,o,a){if(!e)return!1;var s,l,h,u;"string"==typeof e||e.parentNode||(e=""+e.innerHTML),"string"==typeof e&&(s=e.replace(/<\/?script[^>]*?>/gi,""),u="jsPDFhtmlText"+Date.now().toString()+(1e3*Math.random()).toFixed(0),(h=document.createElement("div")).style.cssText="position: absolute !important;clip: rect(1px 1px 1px 1px); /* IE6, IE7 */clip: rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height: 1px !important;width: 1px !important; top:auto;left:-100px;overflow: hidden;",h.innerHTML='<iframe style="height:1px;width:1px" name="'+u+'" />',document.body.appendChild(h),(l=window.frames[u]).document.open(),l.document.writeln(s),l.document.close(),e=l.document.body);var c,p=new f(t,n,i,o);return v.call(this,e,p,o.elementHandlers,function(t){w(e,p,o.elementHandlers),r(e,p,o.elementHandlers),p.pdf.internal.events.publish("htmlRenderingFinished"),c=p.dispose(),"function"==typeof a?a(c):t&&console.error("jsPDF Warning: rendering issues? provide a callback to fromHTML!")}),c||{x:p.x,y:p.y}},(f=function(t,e,n,r){return this.pdf=t,this.x=e,this.y=n,this.settings=r,this.watchFunctions=[],this.init(),this}).prototype.init=function(){return this.paragraph={text:[],style:[]},this.pdf.internal.write("q")},f.prototype.dispose=function(){return this.pdf.internal.write("Q"),{x:this.x,y:this.y,ready:!0}},f.prototype.executeWatchFunctions=function(t){var e=!1,n=[];if(0<this.watchFunctions.length){for(var r=0;r<this.watchFunctions.length;++r)!0===this.watchFunctions[r](t)?e=!0:n.push(this.watchFunctions[r]);this.watchFunctions=n}return e},f.prototype.splitFragmentsIntoLines=function(t,e){var r,i,o,a,s,l,h,u,c,f,p,d,g,m;for(f=this.pdf.internal.scaleFactor,a={},l=h=u=m=s=o=c=i=void 0,d=[p=[]],r=0,g=this.settings.width;t.length;)if(s=t.shift(),m=e.shift(),s)if((o=a[(i=m["font-family"])+(c=m["font-style"])])||(o=this.pdf.internal.getFont(i,c).metadata.Unicode,a[i+c]=o),u={widths:o.widths,kerning:o.kerning,fontSize:12*m["font-size"],textIndent:r},h=this.pdf.getStringUnitWidth(s,u)*u.fontSize/f,"\u2028"==s)p=[],d.push(p);else if(g<r+h){for(l=this.pdf.splitTextToSize(s,g,u),p.push([l.shift(),m]);l.length;)p=[[l.shift(),m]],d.push(p);r=this.pdf.getStringUnitWidth(p[0][0],u)*u.fontSize/f}else p.push([s,m]),r+=h;if(void 0!==m["text-align"]&&("center"===m["text-align"]||"right"===m["text-align"]||"justify"===m["text-align"]))for(var y=0;y<d.length;++y){var v=this.pdf.getStringUnitWidth(d[y][0][0],u)*u.fontSize/f;0<y&&(d[y][0][1]=n(d[y][0][1]));var w=g-v;if("right"===m["text-align"])d[y][0][1]["margin-left"]=w;else if("center"===m["text-align"])d[y][0][1]["margin-left"]=w/2;else if("justify"===m["text-align"]){var b=d[y][0][0].split(" ").length-1;d[y][0][1]["word-spacing"]=w/b,y===d.length-1&&(d[y][0][1]["word-spacing"]=0)}}return d},f.prototype.RenderTextFragment=function(t,e){var n,r;r=0,this.pdf.internal.pageSize.getHeight()-this.pdf.margins_doc.bottom<this.y+this.pdf.internal.getFontSize()&&(this.pdf.internal.write("ET","Q"),this.pdf.addPage(),this.y=this.pdf.margins_doc.top,this.pdf.internal.write("q","BT",this.getPdfColor(e.color),this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td"),r=Math.max(r,e["line-height"],e["font-size"]),this.pdf.internal.write(0,(-12*r).toFixed(2),"Td")),n=this.pdf.internal.getFont(e["font-family"],e["font-style"]);var i=this.getPdfColor(e.color);i!==this.lastTextColor&&(this.pdf.internal.write(i),this.lastTextColor=i),void 0!==e["word-spacing"]&&0<e["word-spacing"]&&this.pdf.internal.write(e["word-spacing"].toFixed(2),"Tw"),this.pdf.internal.write("/"+n.id,(12*e["font-size"]).toFixed(2),"Tf","("+this.pdf.internal.pdfEscape(t)+") Tj"),void 0!==e["word-spacing"]&&this.pdf.internal.write(0,"Tw")},f.prototype.getPdfColor=function(t){var e,n,r,i=/rgb\s*\(\s*(\d+),\s*(\d+),\s*(\d+\s*)\)/.exec(t);if(null!=i)e=parseInt(i[1]),n=parseInt(i[2]),r=parseInt(i[3]);else{if("string"==typeof t&&"#"!=t.charAt(0)){var o=new RGBColor(t);t=o.ok?o.toHex():"#000000"}e=t.substring(1,3),e=parseInt(e,16),n=t.substring(3,5),n=parseInt(n,16),r=t.substring(5,7),r=parseInt(r,16)}if("string"==typeof e&&/^#[0-9A-Fa-f]{6}$/.test(e)){var a=parseInt(e.substr(1),16);e=a>>16&255,n=a>>8&255,r=255&a}var s=this.f3;return 0===e&&0===n&&0===r||void 0===n?s(e/255)+" g":[s(e/255),s(n/255),s(r/255),"rg"].join(" ")},f.prototype.f3=function(t){return t.toFixed(3)},f.prototype.renderParagraph=function(t){var e,n,r,i,o,a,s,l,h,u,f,p,d;if(r=c(this.paragraph.text),p=this.paragraph.style,e=this.paragraph.blockstyle,this.paragraph.priorblockstyle,this.paragraph={text:[],style:[],blockstyle:{},priorblockstyle:e},r.join("").trim()){s=this.splitFragmentsIntoLines(r,p),l=a=void 0,n=12/this.pdf.internal.scaleFactor,this.priorMarginBottom=this.priorMarginBottom||0,f=(Math.max((e["margin-top"]||0)-this.priorMarginBottom,0)+(e["padding-top"]||0))*n,u=((e["margin-bottom"]||0)+(e["padding-bottom"]||0))*n,this.priorMarginBottom=e["margin-bottom"]||0,"always"===e["page-break-before"]&&(this.pdf.addPage(),this.y=0,f=((e["margin-top"]||0)+(e["padding-top"]||0))*n),h=this.pdf.internal.write,o=i=void 0,this.y+=f,h("q","BT 0 g",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td");for(var g=0;s.length;){for(i=l=0,o=(a=s.shift()).length;i!==o;)a[i][0].trim()&&(l=Math.max(l,a[i][1]["line-height"],a[i][1]["font-size"]),d=7*a[i][1]["font-size"]),i++;var m=0,y=0;for(void 0!==a[0][1]["margin-left"]&&0<a[0][1]["margin-left"]&&(m=(y=this.pdf.internal.getCoordinateString(a[0][1]["margin-left"]))-g,g=y),h(m+Math.max(e["margin-left"]||0,0)*n,(-12*l).toFixed(2),"Td"),i=0,o=a.length;i!==o;)a[i][0]&&this.RenderTextFragment(a[i][0],a[i][1]),i++;if(this.y+=l*n,this.executeWatchFunctions(a[0][1])&&0<s.length){var v=[],w=[];s.forEach(function(t){for(var e=0,n=t.length;e!==n;)t[e][0]&&(v.push(t[e][0]+" "),w.push(t[e][1])),++e}),s=this.splitFragmentsIntoLines(c(v),w),h("ET","Q"),h("q","BT 0 g",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td")}}return t&&"function"==typeof t&&t.call(this,this.x-9,this.y-d/2),h("ET","Q"),this.y+=u}},f.prototype.setBlockBoundary=function(t){return this.renderParagraph(t)},f.prototype.setBlockStyle=function(t){return this.paragraph.blockstyle=t},f.prototype.addText=function(t,e){return this.paragraph.text.push(t),this.paragraph.style.push(e)},i={helvetica:"helvetica","sans-serif":"helvetica","times new roman":"times",serif:"times",times:"times",monospace:"courier",courier:"courier"},s={100:"normal",200:"normal",300:"normal",400:"normal",500:"bold",600:"bold",700:"bold",800:"bold",900:"bold",normal:"normal",bold:"bold",bolder:"bold",lighter:"normal"},o={normal:"normal",italic:"italic",oblique:"italic"},a={left:"left",right:"right",center:"center",justify:"justify"},l={none:"none",right:"right",left:"left"},h={none:"none",both:"both"},g={normal:1},e.fromHTML=function(t,e,n,r,i,o){return this.margins_doc=o||{top:0,bottom:0},r||(r={}),r.elementHandlers||(r.elementHandlers={}),b(this,t,isNaN(e)?4:e,isNaN(n)?4:n,r,i)}}(ht.API),ht.API,("undefined"!=typeof window&&window||"undefined"!=typeof global&&global).html2pdf=function(t,e,n){var r=e.canvas;if(r){var i,o;if((r.pdf=e).annotations={_nameMap:[],createAnnotation:function(t,n){var r,i=e.context2d._wrapX(n.left),o=e.context2d._wrapY(n.top),a=(e.context2d._page(n.top),t.indexOf("#"));r=0<=a?{name:t.substring(a+1)}:{url:t},e.link(i,o,n.right-n.left,n.bottom-n.top,r)},setName:function(t,n){var r=e.context2d._wrapX(n.left),i=e.context2d._wrapY(n.top),o=e.context2d._page(n.top);this._nameMap[t]={page:o,x:r,y:i}}},r.annotations=e.annotations,e.context2d._pageBreakAt=function(t){this.pageBreaks.push(t)},e.context2d._gotoPage=function(t){for(;e.internal.getNumberOfPages()<t;)e.addPage();e.setPage(t)},"string"==typeof t){t=t.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"");var a,s,l=document.createElement("iframe");document.body.appendChild(l),null!=(a=l.contentDocument)&&null!=a||(a=l.contentWindow.document),a.open(),a.write(t),a.close(),i=a.body,s=a.body||{},t=a.documentElement||{},o=Math.max(s.scrollHeight,s.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight)}else s=(i=t).body||{},o=Math.max(s.scrollHeight,s.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight);var h={async:!0,allowTaint:!0,backgroundColor:"#ffffff",canvas:r,imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1,windowHeight:o=e.internal.pageSize.getHeight(),scrollY:o};e.context2d.pageWrapYEnabled=!0,e.context2d.pageWrapY=e.internal.pageSize.getHeight(),html2canvas(i,h).then(function(t){n&&(l&&l.parentElement.removeChild(l),n(e))})}else alert("jsPDF canvas plugin not installed")},window.tmp=html2pdf,function(t){var e=t.BlobBuilder||t.WebKitBlobBuilder||t.MSBlobBuilder||t.MozBlobBuilder;t.URL=t.URL||t.webkitURL||function(t,e){return(e=document.createElement("a")).href=t,e};var n=t.Blob,r=URL.createObjectURL,i=URL.revokeObjectURL,o=t.Symbol&&t.Symbol.toStringTag,a=!1,s=!1,l=!!t.ArrayBuffer,h=e&&e.prototype.append&&e.prototype.getBlob;try{a=2===new Blob(["ä"]).size,s=2===new Blob([new Uint8Array([1,2])]).size}catch(a){}function u(t){return t.map(function(t){if(t.buffer instanceof ArrayBuffer){var e=t.buffer;if(t.byteLength!==e.byteLength){var n=new Uint8Array(t.byteLength);n.set(new Uint8Array(e,t.byteOffset,t.byteLength)),e=n.buffer}return e}return t})}function c(t,n){n=n||{};var r=new e;return u(t).forEach(function(t){r.append(t)}),n.type?r.getBlob(n.type):r.getBlob()}function f(t,e){return new n(u(t),e||{})}if(t.Blob&&(c.prototype=Blob.prototype,f.prototype=Blob.prototype),o)try{File.prototype[o]="File",Blob.prototype[o]="Blob",FileReader.prototype[o]="FileReader"}catch(a){}function p(){var e=!!t.ActiveXObject||"-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,n=t.XMLHttpRequest&&t.XMLHttpRequest.prototype.send;e&&n&&(XMLHttpRequest.prototype.send=function(t){t instanceof Blob&&this.setRequestHeader("Content-Type",t.type),n.call(this,t)});try{new File([],"")}catch(e){try{var r=new Function('class File extends Blob {constructor(chunks, name, opts) {opts = opts || {};super(chunks, opts || {});this.name = name;this.lastModifiedDate = opts.lastModified ? new Date(opts.lastModified) : new Date;this.lastModified = +this.lastModifiedDate;}};return new File([], ""), File')();t.File=r}catch(e){r=function(t,e,n){var r=new Blob(t,n),i=n&&void 0!==n.lastModified?new Date(n.lastModified):new Date;return r.name=e,r.lastModifiedDate=i,r.lastModified=+i,r.toString=function(){return"[object File]"},o&&(r[o]="File"),r},t.File=r}}}a?(p(),t.Blob=s?t.Blob:f):h?(p(),t.Blob=c):function(){function e(t){for(var e=[],n=0;n<t.length;n++){var r=t.charCodeAt(n);r<128?e.push(r):r<2048?e.push(192|r>>6,128|63&r):r<55296||57344<=r?e.push(224|r>>12,128|r>>6&63,128|63&r):(n++,r=65536+((1023&r)<<10|1023&t.charCodeAt(n)),e.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return e}function n(t){var e,n,r,i,o,a;for(e="",r=t.length,n=0;n<r;)switch((i=t[n++])>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:e+=String.fromCharCode(i);break;case 12:case 13:o=t[n++],e+=String.fromCharCode((31&i)<<6|63&o);break;case 14:o=t[n++],a=t[n++],e+=String.fromCharCode((15&i)<<12|(63&o)<<6|(63&a)<<0)}return e}function o(t){for(var e=new Array(t.byteLength),n=new Uint8Array(t),r=e.length;r--;)e[r]=n[r];return e}function a(t){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=[],r=0;r<t.length;r+=3){var i=t[r],o=r+1<t.length,a=o?t[r+1]:0,s=r+2<t.length,l=s?t[r+2]:0,h=i>>2,u=(3&i)<<4|a>>4,c=(15&a)<<2|l>>6,f=63&l;s||(f=64,o||(c=64)),n.push(e[h],e[u],e[c],e[f])}return n.join("")}var s=Object.create||function(t){function e(){}return e.prototype=t,new e};if(l)var h=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(t){return t&&-1<h.indexOf(Object.prototype.toString.call(t))};function c(t,n){for(var r=0,i=(t=t||[]).length;r<i;r++){var a=t[r];a instanceof c?t[r]=a._buffer:"string"==typeof a?t[r]=e(a):l&&(ArrayBuffer.prototype.isPrototypeOf(a)||u(a))?t[r]=o(a):l&&(s=a)&&DataView.prototype.isPrototypeOf(s)?t[r]=o(a.buffer):t[r]=e(String(a))}var s;this._buffer=[].concat.apply([],t),this.size=this._buffer.length,this.type=n&&n.type||""}function f(t,e,n){var r=c.call(this,t,n=n||{})||this;return r.name=e,r.lastModifiedDate=n.lastModified?new Date(n.lastModified):new Date,r.lastModified=+r.lastModifiedDate,r}if(c.prototype.slice=function(t,e,n){return new c([this._buffer.slice(t||0,e||this._buffer.length)],{type:n})},c.prototype.toString=function(){return"[object Blob]"},(f.prototype=s(c.prototype)).constructor=f,Object.setPrototypeOf)Object.setPrototypeOf(f,c);else try{f.__proto__=c}catch(s){}function p(){if(!(this instanceof p))throw new TypeError("Failed to construct 'FileReader': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");var t=document.createDocumentFragment();this.addEventListener=t.addEventListener,this.dispatchEvent=function(e){var n=this["on"+e.type];"function"==typeof n&&n(e),t.dispatchEvent(e)},this.removeEventListener=t.removeEventListener}function d(t,e,n){if(!(e instanceof c))throw new TypeError("Failed to execute '"+n+"' on 'FileReader': parameter 1 is not of type 'Blob'.");t.result="",setTimeout(function(){this.readyState=p.LOADING,t.dispatchEvent(new Event("load")),t.dispatchEvent(new Event("loadend"))})}f.prototype.toString=function(){return"[object File]"},p.EMPTY=0,p.LOADING=1,p.DONE=2,p.prototype.error=null,p.prototype.onabort=null,p.prototype.onerror=null,p.prototype.onload=null,p.prototype.onloadend=null,p.prototype.onloadstart=null,p.prototype.onprogress=null,p.prototype.readAsDataURL=function(t){d(this,t,"readAsDataURL"),this.result="data:"+t.type+";base64,"+a(t._buffer)},p.prototype.readAsText=function(t){d(this,t,"readAsText"),this.result=n(t._buffer)},p.prototype.readAsArrayBuffer=function(t){d(this,t,"readAsText"),this.result=t._buffer.slice()},p.prototype.abort=function(){},URL.createObjectURL=function(t){return t instanceof c?"data:"+t.type+";base64,"+a(t._buffer):r.call(URL,t)},URL.revokeObjectURL=function(t){i&&i.call(URL,t)};var g=t.XMLHttpRequest&&t.XMLHttpRequest.prototype.send;g&&(XMLHttpRequest.prototype.send=function(t){t instanceof c?(this.setRequestHeader("Content-Type",t.type),g.call(this,n(t._buffer))):g.call(this,t)}),t.FileReader=p,t.File=f,t.Blob=c}()}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof global&&global||Function('return typeof this === "object" && this.content')()||Function("return this")());var ut,ct,ft,pt,dt,gt,mt,yt,vt,wt,bt,xt,Nt,Lt,At,St=St||function(t){if(!(void 0===t||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var e=function(){return t.URL||t.webkitURL||t},n=t.document.createElementNS("http://www.w3.org/1999/xhtml","a"),r="download"in n,i=/constructor/i.test(t.HTMLElement)||t.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent),a=t.setImmediate||t.setTimeout,s=function(t){a(function(){throw t},0)},l=function(t){setTimeout(function(){"string"==typeof t?e().revokeObjectURL(t):t.remove()},4e4)},h=function(t){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t},u=function(u,c,f){f||(u=h(u));var p,d=this,g="application/octet-stream"===u.type,m=function(){!function(t,e,n){for(var r=(e=[].concat(e)).length;r--;){var i=t["on"+e[r]];if("function"==typeof i)try{i.call(t,t)}catch(t){s(t)}}}(d,"writestart progress write writeend".split(" "))};if(d.readyState=d.INIT,r)return p=e().createObjectURL(u),void a(function(){var t,e;n.href=p,n.download=c,t=n,e=new MouseEvent("click"),t.dispatchEvent(e),m(),l(p),d.readyState=d.DONE},0);!function(){if((o||g&&i)&&t.FileReader){var n=new FileReader;return n.onloadend=function(){var e=o?n.result:n.result.replace(/^data:[^;]*;/,"data:attachment/file;");t.open(e,"_blank")||(t.location.href=e),e=void 0,d.readyState=d.DONE,m()},n.readAsDataURL(u),d.readyState=d.INIT}p||(p=e().createObjectURL(u)),g?t.location.href=p:t.open(p,"_blank")||(t.location.href=p),d.readyState=d.DONE,m(),l(p)}()},c=u.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(t,e,n){return e=e||t.name||"download",n||(t=h(t)),navigator.msSaveOrOpenBlob(t,e)}:(c.abort=function(){},c.readyState=c.INIT=0,c.WRITING=1,c.DONE=2,c.error=c.onwritestart=c.onprogress=c.onwrite=c.onabort=c.onerror=c.onwriteend=null,function(t,e,n){return new u(t,e||t.name||"download",n)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0);function _t(t){var e=0;if(71!==t[e++]||73!==t[e++]||70!==t[e++]||56!==t[e++]||56!=(t[e++]+1&253)||97!==t[e++])throw"Invalid GIF 87a/89a header.";var n=t[e++]|t[e++]<<8,r=t[e++]|t[e++]<<8,i=t[e++],o=i>>7,a=1<<1+(7&i);t[e++],t[e++];var s=null;o&&(s=e,e+=3*a);var l=!0,h=[],u=0,c=null,f=0,p=null;for(this.width=n,this.height=r;l&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(11!==t[e]||78==t[e+1]&&69==t[e+2]&&84==t[e+3]&&83==t[e+4]&&67==t[e+5]&&65==t[e+6]&&80==t[e+7]&&69==t[e+8]&&50==t[e+9]&&46==t[e+10]&&48==t[e+11]&&3==t[e+12]&&1==t[e+13]&&0==t[e+16])e+=14,p=t[e++]|t[e++]<<8,e++;else for(e+=12;0!==(A=t[e++]);)e+=A;break;case 249:if(4!==t[e++]||0!==t[e+4])throw"Invalid graphics extension block.";var d=t[e++];u=t[e++]|t[e++]<<8,c=t[e++],0==(1&d)&&(c=null),f=d>>2&7,e++;break;case 254:for(;0!==(A=t[e++]);)e+=A;break;default:throw"Unknown graphic control label: 0x"+t[e-1].toString(16)}break;case 44:var g=t[e++]|t[e++]<<8,m=t[e++]|t[e++]<<8,y=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,w=t[e++],b=w>>6&1,x=s,N=!1;w>>7&&(N=!0,x=e,e+=3*(1<<1+(7&w)));var L=e;for(e++;;){var A;if(0===(A=t[e++]))break;e+=A}h.push({x:g,y:m,width:y,height:v,has_local_palette:N,palette_offset:x,data_offset:L,data_length:e-L,transparent_index:c,interlaced:!!b,delay:u,disposal:f});break;case 59:l=!1;break;default:throw"Unknown gif block: 0x"+t[e-1].toString(16)}this.numFrames=function(){return h.length},this.loopCount=function(){return p},this.frameInfo=function(t){if(t<0||t>=h.length)throw"Frame index out of range.";return h[t]},this.decodeAndBlitFrameBGRA=function(e,r){var i=this.frameInfo(e),o=i.width*i.height,a=new Uint8Array(o);Ft(t,i.data_offset,a,o);var s=i.palette_offset,l=i.transparent_index;null===l&&(l=256);var h=i.width,u=n-h,c=h,f=4*(i.y*n+i.x),p=4*((i.y+i.height)*n+i.x),d=f,g=4*u;!0===i.interlaced&&(g+=4*(h+u)*7);for(var m=8,y=0,v=a.length;y<v;++y){var w=a[y];if(0===c&&(c=h,p<=(d+=g)&&(g=u+4*(h+u)*(m-1),d=f+(h+u)*(m<<1),m>>=1)),w===l)d+=4;else{var b=t[s+3*w],x=t[s+3*w+1],N=t[s+3*w+2];r[d++]=N,r[d++]=x,r[d++]=b,r[d++]=255}--c}},this.decodeAndBlitFrameRGBA=function(e,r){var i=this.frameInfo(e),o=i.width*i.height,a=new Uint8Array(o);Ft(t,i.data_offset,a,o);var s=i.palette_offset,l=i.transparent_index;null===l&&(l=256);var h=i.width,u=n-h,c=h,f=4*(i.y*n+i.x),p=4*((i.y+i.height)*n+i.x),d=f,g=4*u;!0===i.interlaced&&(g+=4*(h+u)*7);for(var m=8,y=0,v=a.length;y<v;++y){var w=a[y];if(0===c&&(c=h,p<=(d+=g)&&(g=u+4*(h+u)*(m-1),d=f+(h+u)*(m<<1),m>>=1)),w===l)d+=4;else{var b=t[s+3*w],x=t[s+3*w+1],N=t[s+3*w+2];r[d++]=b,r[d++]=x,r[d++]=N,r[d++]=255}--c}}}function Ft(t,e,n,r){for(var i=t[e++],o=1<<i,a=o+1,s=a+1,l=i+1,h=(1<<l)-1,u=0,c=0,f=0,p=t[e++],d=new Int32Array(4096),g=null;;){for(;u<16&&0!==p;)c|=t[e++]<<u,u+=8,1===p?p=t[e++]:--p;if(u<l)break;var m=c&h;if(c>>=l,u-=l,m!==o){if(m===a)break;for(var y=m<s?m:g,v=0,w=y;o<w;)w=d[w]>>8,++v;var b=w;if(r<f+v+(y!==m?1:0))return void console.log("Warning, gif stream longer than expected.");n[f++]=b;var x=f+=v;for(y!==m&&(n[f++]=b),w=y;v--;)w=d[w],n[--x]=255&w,w>>=8;null!==g&&s<4096&&(d[s++]=g<<8|b,h+1<=s&&l<12&&(++l,h=h<<1|1)),g=m}else s=a+1,h=(1<<(l=i+1))-1,g=null}return f!==r&&console.log("Warning, gif stream shorter than expected."),n}try{exports.GifWriter=function(t,e,n,r){var i=0,o=void 0===(r=void 0===r?{}:r).loop?null:r.loop,a=void 0===r.palette?null:r.palette;if(e<=0||n<=0||65535<e||65535<n)throw"Width/Height invalid.";function s(t){var e=t.length;if(e<2||256<e||e&e-1)throw"Invalid code/color length, must be power of 2 and 2 .. 256.";return e}t[i++]=71,t[i++]=73,t[i++]=70,t[i++]=56,t[i++]=57,t[i++]=97;var l=0,h=0;if(null!==a){for(var u=s(a);u>>=1;)++l;if(u=1<<l,--l,void 0!==r.background){if(u<=(h=r.background))throw"Background index out of range.";if(0===h)throw"Background index explicitly passed as 0."}}if(t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&n,t[i++]=n>>8&255,t[i++]=(null!==a?128:0)|l,t[i++]=h,t[i++]=0,null!==a)for(var c=0,f=a.length;c<f;++c){var p=a[c];t[i++]=p>>16&255,t[i++]=p>>8&255,t[i++]=255&p}if(null!==o){if(o<0||65535<o)throw"Loop count invalid.";t[i++]=33,t[i++]=255,t[i++]=11,t[i++]=78,t[i++]=69,t[i++]=84,t[i++]=83,t[i++]=67,t[i++]=65,t[i++]=80,t[i++]=69,t[i++]=50,t[i++]=46,t[i++]=48,t[i++]=3,t[i++]=1,t[i++]=255&o,t[i++]=o>>8&255,t[i++]=0}var d=!1;this.addFrame=function(e,n,r,o,l,h){if(!0===d&&(--i,d=!1),h=void 0===h?{}:h,e<0||n<0||65535<e||65535<n)throw"x/y invalid.";if(r<=0||o<=0||65535<r||65535<o)throw"Width/Height invalid.";if(l.length<r*o)throw"Not enough pixels for the frame size.";var u=!0,c=h.palette;if(null==c&&(u=!1,c=a),null==c)throw"Must supply either a local or global palette.";for(var f=s(c),p=0;f>>=1;)++p;f=1<<p;var g=void 0===h.delay?0:h.delay,m=void 0===h.disposal?0:h.disposal;if(m<0||3<m)throw"Disposal out of range.";var y=!1,v=0;if(void 0!==h.transparent&&null!==h.transparent&&(y=!0,(v=h.transparent)<0||f<=v))throw"Transparent color index.";if((0!==m||y||0!==g)&&(t[i++]=33,t[i++]=249,t[i++]=4,t[i++]=m<<2|(!0===y?1:0),t[i++]=255&g,t[i++]=g>>8&255,t[i++]=v,t[i++]=0),t[i++]=44,t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&n,t[i++]=n>>8&255,t[i++]=255&r,t[i++]=r>>8&255,t[i++]=255&o,t[i++]=o>>8&255,t[i++]=!0===u?128|p-1:0,!0===u)for(var w=0,b=c.length;w<b;++w){var x=c[w];t[i++]=x>>16&255,t[i++]=x>>8&255,t[i++]=255&x}i=function(t,e,n,r){t[e++]=n;var i=e++,o=1<<n,a=o-1,s=o+1,l=s+1,h=n+1,u=0,c=0;function f(n){for(;n<=u;)t[e++]=255&c,c>>=8,u-=8,e===i+256&&(t[i]=255,i=e++)}function p(t){c|=t<<u,u+=h,f(8)}var d=r[0]&a,g={};p(o);for(var m=1,y=r.length;m<y;++m){var v=r[m]&a,w=d<<8|v,b=g[w];if(void 0===b){for(c|=d<<u,u+=h;8<=u;)t[e++]=255&c,c>>=8,u-=8,e===i+256&&(t[i]=255,i=e++);4096===l?(p(o),l=s+1,h=n+1,g={}):(1<<h<=l&&++h,g[w]=l++),d=v}else d=b}return p(d),p(s),f(1),i+1===e?t[i]=0:(t[i]=e-i-1,t[e++]=0),e}(t,i,p<2?2:p,l)},this.end=function(){return!1===d&&(t[i++]=59,d=!0),i}},exports.GifReader=_t}catch(e){}function Pt(t){var e,n,r,i,o,a=Math.floor,s=new Array(64),l=new Array(64),h=new Array(64),u=new Array(64),c=new Array(65535),f=new Array(65535),p=new Array(64),d=new Array(64),g=[],m=0,y=7,v=new Array(64),w=new Array(64),b=new Array(64),x=new Array(256),N=new Array(2048),L=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],A=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],S=[0,1,2,3,4,5,6,7,8,9,10,11],_=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],F=[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],P=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],k=[0,1,2,3,4,5,6,7,8,9,10,11],I=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],C=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function B(t,e){for(var n=0,r=0,i=new Array,o=1;o<=16;o++){for(var a=1;a<=t[o];a++)i[e[r]]=[],i[e[r]][0]=n,i[e[r]][1]=o,r++,n++;n*=2}return i}function j(t){for(var e=t[0],n=t[1]-1;0<=n;)e&1<<n&&(m|=1<<y),n--,--y<0&&(255==m?(E(255),E(0)):E(m),y=7,m=0)}function E(t){g.push(t)}function M(t){E(t>>8&255),E(255&t)}function O(t,e,n,r,i){for(var o,a=i[0],s=i[240],l=function(t,e){var n,r,i,o,a,s,l,h,u,c,f=0;for(u=0;u<8;++u){n=t[f],r=t[f+1],i=t[f+2],o=t[f+3],a=t[f+4],s=t[f+5],l=t[f+6];var d=n+(h=t[f+7]),g=n-h,m=r+l,y=r-l,v=i+s,w=i-s,b=o+a,x=o-a,N=d+b,L=d-b,A=m+v,S=m-v;t[f]=N+A,t[f+4]=N-A;var _=.707106781*(S+L);t[f+2]=L+_,t[f+6]=L-_;var F=.382683433*((N=x+w)-(S=y+g)),P=.5411961*N+F,k=1.306562965*S+F,I=.707106781*(A=w+y),C=g+I,B=g-I;t[f+5]=B+P,t[f+3]=B-P,t[f+1]=C+k,t[f+7]=C-k,f+=8}for(u=f=0;u<8;++u){n=t[f],r=t[f+8],i=t[f+16],o=t[f+24],a=t[f+32],s=t[f+40],l=t[f+48];var j=n+(h=t[f+56]),E=n-h,M=r+l,O=r-l,q=i+s,T=i-s,R=o+a,D=o-a,U=j+R,z=j-R,H=M+q,W=M-q;t[f]=U+H,t[f+32]=U-H;var V=.707106781*(W+z);t[f+16]=z+V,t[f+48]=z-V;var G=.382683433*((U=D+T)-(W=O+E)),Y=.5411961*U+G,J=1.306562965*W+G,X=.707106781*(H=T+O),K=E+X,Z=E-X;t[f+40]=Z+Y,t[f+24]=Z-Y,t[f+8]=K+J,t[f+56]=K-J,f++}for(u=0;u<64;++u)c=t[u]*e[u],p[u]=0<c?c+.5|0:c-.5|0;return p}(t,e),h=0;h<64;++h)d[L[h]]=l[h];var u=d[0]-n;n=d[0],0==u?j(r[0]):(j(r[f[o=32767+u]]),j(c[o]));for(var g=63;0<g&&0==d[g];g--);if(0==g)return j(a),n;for(var m,y=1;y<=g;){for(var v=y;0==d[y]&&y<=g;++y);var w=y-v;if(16<=w){m=w>>4;for(var b=1;b<=m;++b)j(s);w&=15}o=32767+d[y],j(i[(w<<4)+f[o]]),j(c[o]),y++}return 63!=g&&j(a),n}function q(t){t<=0&&(t=1),100<t&&(t=100),o!=t&&(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var r=a((e[n]*t+50)/100);r<1?r=1:255<r&&(r=255),s[L[n]]=r}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],o=0;o<64;o++){var c=a((i[o]*t+50)/100);c<1?c=1:255<c&&(c=255),l[L[o]]=c}for(var f=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],p=0,d=0;d<8;d++)for(var g=0;g<8;g++)h[p]=1/(s[L[p]]*f[d]*f[g]*8),u[p]=1/(l[L[p]]*f[d]*f[g]*8),p++}(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),o=t)}this.encode=function(t,o){var a,c;(new Date).getTime(),o&&q(o),g=new Array,m=0,y=7,M(65496),M(65504),M(16),E(74),E(70),E(73),E(70),E(0),E(1),E(1),E(0),M(1),M(1),E(0),E(0),function(){M(65499),M(132),E(0);for(var t=0;t<64;t++)E(s[t]);E(1);for(var e=0;e<64;e++)E(l[e])}(),a=t.width,c=t.height,M(65472),M(17),E(8),M(c),M(a),E(3),E(1),E(17),E(0),E(2),E(17),E(1),E(3),E(17),E(1),function(){M(65476),M(418),E(0);for(var t=0;t<16;t++)E(A[t+1]);for(var e=0;e<=11;e++)E(S[e]);E(16);for(var n=0;n<16;n++)E(_[n+1]);for(var r=0;r<=161;r++)E(F[r]);E(1);for(var i=0;i<16;i++)E(P[i+1]);for(var o=0;o<=11;o++)E(k[o]);E(17);for(var a=0;a<16;a++)E(I[a+1]);for(var s=0;s<=161;s++)E(C[s])}(),M(65498),M(12),E(3),E(1),E(0),E(2),E(17),E(3),E(17),E(0),E(63),E(0);var f=0,p=0,d=0;m=0,y=7,this.encode.displayName="_encode_";for(var x,L,B,T,R,D,U,z,H,W=t.data,V=t.width,G=t.height,Y=4*V,J=0;J<G;){for(x=0;x<Y;){for(D=R=Y*J+x,U=-1,H=z=0;H<64;H++)D=R+(z=H>>3)*Y+(U=4*(7&H)),G<=J+z&&(D-=Y*(J+1+z-G)),Y<=x+U&&(D-=x+U-Y+4),L=W[D++],B=W[D++],T=W[D++],v[H]=(N[L]+N[B+256>>0]+N[T+512>>0]>>16)-128,w[H]=(N[L+768>>0]+N[B+1024>>0]+N[T+1280>>0]>>16)-128,b[H]=(N[L+1280>>0]+N[B+1536>>0]+N[T+1792>>0]>>16)-128;f=O(v,h,f,e,r),p=O(w,u,p,n,i),d=O(b,u,d,n,i),x+=32}J+=8}if(0<=y){var X=[];X[1]=y+1,X[0]=(1<<y+1)-1,j(X)}return M(65497),new Uint8Array(g)},(new Date).getTime(),t||(t=50),function(){for(var t=String.fromCharCode,e=0;e<256;e++)x[e]=t(e)}(),e=B(A,S),n=B(P,k),r=B(_,F),i=B(I,C),function(){for(var t=1,e=2,n=1;n<=15;n++){for(var r=t;r<e;r++)f[32767+r]=n,c[32767+r]=[],c[32767+r][1]=n,c[32767+r][0]=r;for(var i=-(e-1);i<=-t;i++)f[32767+i]=n,c[32767+i]=[],c[32767+i][1]=n,c[32767+i][0]=e-1+i;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)N[t]=19595*t,N[t+256>>0]=38470*t,N[t+512>>0]=7471*t+32768,N[t+768>>0]=-11059*t,N[t+1024>>0]=-21709*t,N[t+1280>>0]=32768*t+8421375,N[t+1536>>0]=-27439*t,N[t+1792>>0]=-5329*t}(),q(t),(new Date).getTime()}function kt(t,e){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}window.tmp=_t,ht.API.adler32cs=(gt="function"==typeof ArrayBuffer&&"function"==typeof Uint8Array,mt=null,yt=function(){if(!gt)return function(){return!1};try{var t={};"function"==typeof t.Buffer&&(mt=t.Buffer)}catch(t){}return function(t){return t instanceof ArrayBuffer||null!==mt&&t instanceof mt}}(),vt=null!==mt?function(t){return new mt(t,"utf8").toString("binary")}:function(t){return unescape(encodeURIComponent(t))},wt=function(t,e){for(var n=65535&t,r=t>>>16,i=0,o=e.length;i<o;i++)r=(r+(n=(n+(255&e.charCodeAt(i)))%65521))%65521;return(r<<16|n)>>>0},bt=function(t,e){for(var n=65535&t,r=t>>>16,i=0,o=e.length;i<o;i++)r=(r+(n=(n+e[i])%65521))%65521;return(r<<16|n)>>>0},Nt=(xt={}).Adler32=(((dt=(pt=function(t){if(!(this instanceof pt))throw new TypeError("Constructor cannot called be as a function.");if(!isFinite(t=null==t?1:+t))throw new Error("First arguments needs to be a finite number.");this.checksum=t>>>0}).prototype={}).constructor=pt).from=((ut=function(t){if(!(this instanceof pt))throw new TypeError("Constructor cannot called be as a function.");if(null==t)throw new Error("First argument needs to be a string.");this.checksum=wt(1,t.toString())}).prototype=dt,ut),pt.fromUtf8=((ct=function(t){if(!(this instanceof pt))throw new TypeError("Constructor cannot called be as a function.");if(null==t)throw new Error("First argument needs to be a string.");var e=vt(t.toString());this.checksum=wt(1,e)}).prototype=dt,ct),gt&&(pt.fromBuffer=((ft=function(t){if(!(this instanceof pt))throw new TypeError("Constructor cannot called be as a function.");if(!yt(t))throw new Error("First argument needs to be ArrayBuffer.");var e=new Uint8Array(t);return this.checksum=bt(1,e)}).prototype=dt,ft)),dt.update=function(t){if(null==t)throw new Error("First argument needs to be a string.");return t=t.toString(),this.checksum=wt(this.checksum,t)},dt.updateUtf8=function(t){if(null==t)throw new Error("First argument needs to be a string.");var e=vt(t.toString());return this.checksum=wt(this.checksum,e)},gt&&(dt.updateBuffer=function(t){if(!yt(t))throw new Error("First argument needs to be ArrayBuffer.");var e=new Uint8Array(t);return this.checksum=bt(this.checksum,e)}),dt.clone=function(){return new Nt(this.checksum)},pt),xt.from=function(t){if(null==t)throw new Error("First argument needs to be a string.");return wt(1,t.toString())},xt.fromUtf8=function(t){if(null==t)throw new Error("First argument needs to be a string.");var e=vt(t.toString());return wt(1,e)},gt&&(xt.fromBuffer=function(t){if(!yt(t))throw new Error("First argument need to be ArrayBuffer.");var e=new Uint8Array(t);return bt(1,e)}),xt),function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(t){var n,r,i,o,a,s,l,h=e,u=[[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]],c=[[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]],f={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},p={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},d=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","","","","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],g=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)$/),m=!1,y=0;this.__bidiEngine__={};var v=function(t){var e=t.charCodeAt(),n=e>>8,r=p[n];return void 0!==r?h[256*r+(255&e)]:252===n||253===n?"AL":g.test(n)?"L":8===n?"R":"N"},w=function(t){for(var e,n=0;n<t.length;n++){if("L"===(e=v(t.charAt(n))))return!1;if("R"===e)return!0}return!1},b=function(t,e,a,s){var l,h,u,c,f=e[s];switch(f){case"L":case"R":m=!1;break;case"N":case"AN":break;case"EN":m&&(f="AN");break;case"AL":m=!0,f="R";break;case"WS":f="N";break;case"CS":s<1||s+1>=e.length||"EN"!==(l=a[s-1])&&"AN"!==l||"EN"!==(h=e[s+1])&&"AN"!==h?f="N":m&&(h="AN"),f=h===l?h:"N";break;case"ES":f="EN"===(l=0<s?a[s-1]:"B")&&s+1<e.length&&"EN"===e[s+1]?"EN":"N";break;case"ET":if(0<s&&"EN"===a[s-1]){f="EN";break}if(m){f="N";break}for(u=s+1,c=e.length;u<c&&"ET"===e[u];)u++;f=u<c&&"EN"===e[u]?"EN":"N";break;case"NSM":if(i&&!o){for(c=e.length,u=s+1;u<c&&"NSM"===e[u];)u++;if(u<c){var p=t[s],d=1425<=p&&p<=2303||64286===p;if(l=e[u],d&&("R"===l||"AL"===l)){f="R";break}}}f=s<1||"B"===(l=e[s-1])?"N":a[s-1];break;case"B":n=!(m=!1),f=y;break;case"S":r=!0,f="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":m=!1;break;case"BN":f="N"}return f},x=function(t,e,n){var r=t.split("");return n&&N(r,n,{hiLevel:y}),r.reverse(),e&&e.reverse(),r.join("")},N=function(t,e,i){var o,a,s,l,h,p=-1,d=t.length,g=0,w=[],x=y?c:u,N=[];for(r=n=m=!1,a=0;a<d;a++)N[a]=v(t[a]);for(s=0;s<d;s++){if(h=g,w[s]=b(t,N,w,s),o=240&(g=x[h][f[w[s]]]),g&=15,e[s]=l=x[g][5],0<o)if(16===o){for(a=p;a<s;a++)e[a]=1;p=-1}else p=-1;if(x[g][6])-1===p&&(p=s);else if(-1<p){for(a=p;a<s;a++)e[a]=l;p=-1}"B"===N[s]&&(e[s]=0),i.hiLevel|=l}r&&function(t,e,n){for(var r=0;r<n;r++)if("S"===t[r]){e[r]=y;for(var i=r-1;0<=i&&"WS"===t[i];i--)e[i]=y}}(N,e,d)},L=function(t,e,r,i,o){if(!(o.hiLevel<t)){if(1===t&&1===y&&!n)return e.reverse(),void(r&&r.reverse());for(var a,s,l,h,u=e.length,c=0;c<u;){if(i[c]>=t){for(l=c+1;l<u&&i[l]>=t;)l++;for(h=c,s=l-1;h<s;h++,s--)a=e[h],e[h]=e[s],e[s]=a,r&&(a=r[h],r[h]=r[s],r[s]=a);c=l}c++}}},A=function(t,e,n){var r=t.split(""),i={hiLevel:y};return n||(n=[]),N(r,n,i),function(t,e,n){if(0!==n.hiLevel&&l)for(var r,i=0;i<t.length;i++)1===e[i]&&0<=(r=d.indexOf(t[i]))&&(t[i]=d[r+1])}(r,n,i),L(2,r,e,n,i),L(1,r,e,n,i),r.join("")};return this.__bidiEngine__.doBidiReorder=function(t,e,n){if(function(t,e){if(e)for(var n=0;n<t.length;n++)e[n]=n;void 0===o&&(o=w(t)),void 0===s&&(s=w(t))}(t,e),i||!a||s)if(i&&a&&o^s)y=o?1:0,t=x(t,e,n);else if(!i&&a&&s)y=o?1:0,t=A(t,e,n),t=x(t,e);else if(!i||o||a||s){if(i&&!a&&o^s)t=x(t,e),t=o?(y=0,A(t,e,n)):(y=1,t=A(t,e,n),x(t,e));else if(i&&o&&!a&&s)y=1,t=A(t,e,n),t=x(t,e);else if(!i&&!a&&o^s){var r=l;o?(y=1,t=A(t,e,n),y=0,l=!1,t=A(t,e,n),l=r):(y=0,t=A(t,e,n),t=x(t,e),l=!(y=1),t=A(t,e,n),l=r,t=x(t,e))}}else y=0,t=A(t,e,n);else y=o?1:0,t=A(t,e,n);return t},this.__bidiEngine__.setOptions=function(t){t&&(i=t.isInputVisual,a=t.isOutputVisual,o=t.isInputRtl,s=t.isOutputRtl,l=t.isSymmetricSwapping)},this.__bidiEngine__.setOptions(t),this.__bidiEngine__};var e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(t){var e=t.text,r=(t.x,t.y,t.options||{}),i=(t.mutex,r.lang,[]);if("[object Array]"===Object.prototype.toString.call(e)){var o=0;for(i=[],o=0;o<e.length;o+=1)"[object Array]"===Object.prototype.toString.call(e[o])?i.push([n.doBidiReorder(e[o][0]),e[o][1],e[o][2]]):i.push([n.doBidiReorder(e[o])]);t.text=i}else t.text=n.doBidiReorder(e)}])}(ht),window.tmp=Pt,kt.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 t=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:i,green:r,blue:n,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},kt.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[t]()}catch(t){console.log("bit decode error:"+t)}},kt.prototype.bit1=function(){var t=Math.ceil(this.width/8),e=t%4,n=0<=this.height?this.height-1:-this.height;for(n=this.height-1;0<=n;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<t;i++)for(var o=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var l=this.palette[o>>7-s&1];this.data[a+4*s]=l.blue,this.data[a+4*s+1]=l.green,this.data[a+4*s+2]=l.red,this.data[a+4*s+3]=255}0!=e&&(this.pos+=4-e)}},kt.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,n=this.height-1;0<=n;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<t;i++){var o=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+2*i*4,s=o>>4,l=15&o,h=this.palette[s];if(this.data[a]=h.blue,this.data[a+1]=h.green,this.data[a+2]=h.red,this.data[a+3]=255,2*i+1>=this.width)break;h=this.palette[l],this.data[a+4]=h.blue,this.data[a+4+1]=h.green,this.data[a+4+2]=h.red,this.data[a+4+3]=255}0!=e&&(this.pos+=4-e)}},kt.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;0<=e;e--){for(var n=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+4*r;if(i<this.palette.length){var a=this.palette[i];this.data[o]=a.red,this.data[o+1]=a.green,this.data[o+2]=a.blue,this.data[o+3]=255}else this.data[o]=255,this.data[o+1]=255,this.data[o+2]=255,this.data[o+3]=255}0!=t&&(this.pos+=4-t)}},kt.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),n=this.height-1;0<=n;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(o&e)/e*255|0,s=(o>>5&e)/e*255|0,l=(o>>10&e)/e*255|0,h=o>>15?255:0,u=r*this.width*4+4*i;this.data[u]=l,this.data[u+1]=s,this.data[u+2]=a,this.data[u+3]=h}this.pos+=t}},kt.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;0<=r;r--){for(var i=this.bottom_up?r:this.height-1-r,o=0;o<this.width;o++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(a&e)/e*255|0,l=(a>>5&n)/n*255|0,h=(a>>11)/e*255|0,u=i*this.width*4+4*o;this.data[u]=h,this.data[u+1]=l,this.data[u+2]=s,this.data[u+3]=255}this.pos+=t}},kt.prototype.bit24=function(){for(var t=this.height-1;0<=t;t--){for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=e*this.width*4+4*n;this.data[a]=o,this.data[a+1]=i,this.data[a+2]=r,this.data[a+3]=255}this.pos+=this.width%4}},kt.prototype.bit32=function(){for(var t=this.height-1;0<=t;t--)for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*n;this.data[s]=o,this.data[s+1]=i,this.data[s+2]=r,this.data[s+3]=a}},kt.prototype.getData=function(){return this.data},window.tmp=kt,function(t){var e=15,n=573,r=[0,1,2,3,4,4,5,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,0,0,16,17,18,18,19,19,20,20,20,20,21,21,21,21,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29];function i(){var t=this;function r(t,e){for(var n=0;n|=1&t,t>>>=1,n<<=1,0<--e;);return n>>>1}t.build_tree=function(i){var o,a,s,l=t.dyn_tree,h=t.stat_desc.static_tree,u=t.stat_desc.elems,c=-1;for(i.heap_len=0,i.heap_max=n,o=0;o<u;o++)0!==l[2*o]?(i.heap[++i.heap_len]=c=o,i.depth[o]=0):l[2*o+1]=0;for(;i.heap_len<2;)l[2*(s=i.heap[++i.heap_len]=c<2?++c:0)]=1,i.depth[s]=0,i.opt_len--,h&&(i.static_len-=h[2*s+1]);for(t.max_code=c,o=Math.floor(i.heap_len/2);1<=o;o--)i.pqdownheap(l,o);for(s=u;o=i.heap[1],i.heap[1]=i.heap[i.heap_len--],i.pqdownheap(l,1),a=i.heap[1],i.heap[--i.heap_max]=o,i.heap[--i.heap_max]=a,l[2*s]=l[2*o]+l[2*a],i.depth[s]=Math.max(i.depth[o],i.depth[a])+1,l[2*o+1]=l[2*a+1]=s,i.heap[1]=s++,i.pqdownheap(l,1),2<=i.heap_len;);i.heap[--i.heap_max]=i.heap[1],function(r){var i,o,a,s,l,h,u=t.dyn_tree,c=t.stat_desc.static_tree,f=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,d=t.stat_desc.max_length,g=0;for(s=0;s<=e;s++)r.bl_count[s]=0;for(u[2*r.heap[r.heap_max]+1]=0,i=r.heap_max+1;i<n;i++)d<(s=u[2*u[2*(o=r.heap[i])+1]+1]+1)&&(s=d,g++),u[2*o+1]=s,o>t.max_code||(r.bl_count[s]++,l=0,p<=o&&(l=f[o-p]),h=u[2*o],r.opt_len+=h*(s+l),c&&(r.static_len+=h*(c[2*o+1]+l)));if(0!==g){do{for(s=d-1;0===r.bl_count[s];)s--;r.bl_count[s]--,r.bl_count[s+1]+=2,r.bl_count[d]--,g-=2}while(0<g);for(s=d;0!==s;s--)for(o=r.bl_count[s];0!==o;)(a=r.heap[--i])>t.max_code||(u[2*a+1]!=s&&(r.opt_len+=(s-u[2*a+1])*u[2*a],u[2*a+1]=s),o--)}}(i),function(t,n,i){var o,a,s,l=[],h=0;for(o=1;o<=e;o++)l[o]=h=h+i[o-1]<<1;for(a=0;a<=n;a++)0!==(s=t[2*a+1])&&(t[2*a]=r(l[s]++,s))}(l,t.max_code,i.bl_count)}}function o(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i}function a(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}i._length_code=[0,1,2,3,4,5,6,7,8,8,9,9,10,10,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,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,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,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,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28],i.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],i.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],i.d_code=function(t){return t<256?r[t]:r[256+(t>>>7)]},i.extra_lbits=[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.extra_dbits=[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],i.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],i.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],o.static_ltree=[12,8,140,8,76,8,204,8,44,8,172,8,108,8,236,8,28,8,156,8,92,8,220,8,60,8,188,8,124,8,252,8,2,8,130,8,66,8,194,8,34,8,162,8,98,8,226,8,18,8,146,8,82,8,210,8,50,8,178,8,114,8,242,8,10,8,138,8,74,8,202,8,42,8,170,8,106,8,234,8,26,8,154,8,90,8,218,8,58,8,186,8,122,8,250,8,6,8,134,8,70,8,198,8,38,8,166,8,102,8,230,8,22,8,150,8,86,8,214,8,54,8,182,8,118,8,246,8,14,8,142,8,78,8,206,8,46,8,174,8,110,8,238,8,30,8,158,8,94,8,222,8,62,8,190,8,126,8,254,8,1,8,129,8,65,8,193,8,33,8,161,8,97,8,225,8,17,8,145,8,81,8,209,8,49,8,177,8,113,8,241,8,9,8,137,8,73,8,201,8,41,8,169,8,105,8,233,8,25,8,153,8,89,8,217,8,57,8,185,8,121,8,249,8,5,8,133,8,69,8,197,8,37,8,165,8,101,8,229,8,21,8,149,8,85,8,213,8,53,8,181,8,117,8,245,8,13,8,141,8,77,8,205,8,45,8,173,8,109,8,237,8,29,8,157,8,93,8,221,8,61,8,189,8,125,8,253,8,19,9,275,9,147,9,403,9,83,9,339,9,211,9,467,9,51,9,307,9,179,9,435,9,115,9,371,9,243,9,499,9,11,9,267,9,139,9,395,9,75,9,331,9,203,9,459,9,43,9,299,9,171,9,427,9,107,9,363,9,235,9,491,9,27,9,283,9,155,9,411,9,91,9,347,9,219,9,475,9,59,9,315,9,187,9,443,9,123,9,379,9,251,9,507,9,7,9,263,9,135,9,391,9,71,9,327,9,199,9,455,9,39,9,295,9,167,9,423,9,103,9,359,9,231,9,487,9,23,9,279,9,151,9,407,9,87,9,343,9,215,9,471,9,55,9,311,9,183,9,439,9,119,9,375,9,247,9,503,9,15,9,271,9,143,9,399,9,79,9,335,9,207,9,463,9,47,9,303,9,175,9,431,9,111,9,367,9,239,9,495,9,31,9,287,9,159,9,415,9,95,9,351,9,223,9,479,9,63,9,319,9,191,9,447,9,127,9,383,9,255,9,511,9,0,7,64,7,32,7,96,7,16,7,80,7,48,7,112,7,8,7,72,7,40,7,104,7,24,7,88,7,56,7,120,7,4,7,68,7,36,7,100,7,20,7,84,7,52,7,116,7,3,8,131,8,67,8,195,8,35,8,163,8,99,8,227,8],o.static_dtree=[0,5,16,5,8,5,24,5,4,5,20,5,12,5,28,5,2,5,18,5,10,5,26,5,6,5,22,5,14,5,30,5,1,5,17,5,9,5,25,5,5,5,21,5,13,5,29,5,3,5,19,5,11,5,27,5,7,5,23,5],o.static_l_desc=new o(o.static_ltree,i.extra_lbits,257,286,e),o.static_d_desc=new o(o.static_dtree,i.extra_dbits,0,30,e),o.static_bl_desc=new o(null,i.extra_blbits,0,19,7);var s=[new a(0,0,0,0,0),new a(4,4,8,4,1),new a(4,5,16,8,1),new a(4,6,32,32,1),new a(4,4,16,16,2),new a(8,16,32,32,2),new a(8,16,128,128,2),new a(8,32,128,256,2),new a(32,128,258,1024,2),new a(32,258,258,4096,2)],l=["need dictionary","stream end","","","stream error","data error","","buffer error","",""];function h(t,e,n,r){var i=t[2*e],o=t[2*n];return i<o||i==o&&r[e]<=r[n]}function u(){var t,e,n,r,a,u,c,f,p,d,g,m,y,v,w,b,x,N,L,A,S,_,F,P,k,I,C,B,j,E,M,O,q,T,R,D,U,z,H,W,V,G=this,Y=new i,J=new i,X=new i;function K(){var t;for(t=0;t<286;t++)M[2*t]=0;for(t=0;t<30;t++)O[2*t]=0;for(t=0;t<19;t++)q[2*t]=0;M[512]=1,G.opt_len=G.static_len=0,D=z=0}function Z(t,e){var n,r,i=-1,o=t[1],a=0,s=7,l=4;for(0===o&&(s=138,l=3),t[2*(e+1)+1]=65535,n=0;n<=e;n++)r=o,o=t[2*(n+1)+1],++a<s&&r==o||(a<l?q[2*r]+=a:0!==r?(r!=i&&q[2*r]++,q[32]++):a<=10?q[34]++:q[36]++,i=r,l=(a=0)===o?(s=138,3):r==o?(s=6,3):(s=7,4))}function Q(t){G.pending_buf[G.pending++]=t}function $(t){Q(255&t),Q(t>>>8&255)}function tt(t,e){var n,r=e;16-r<V?($(W|=(n=t)<<V&65535),W=n>>>16-V,V+=r-16):(W|=t<<V&65535,V+=r)}function et(t,e){var n=2*t;tt(65535&e[n],65535&e[n+1])}function nt(t,e){var n,r,i=-1,o=t[1],a=0,s=7,l=4;for(0===o&&(s=138,l=3),n=0;n<=e;n++)if(r=o,o=t[2*(n+1)+1],!(++a<s&&r==o)){if(a<l)for(;et(r,q),0!=--a;);else 0!==r?(r!=i&&(et(r,q),a--),et(16,q),tt(a-3,2)):a<=10?(et(17,q),tt(a-3,3)):(et(18,q),tt(a-11,7));i=r,l=(a=0)===o?(s=138,3):r==o?(s=6,3):(s=7,4)}}function rt(){16==V?($(W),V=W=0):8<=V&&(Q(255&W),W>>>=8,V-=8)}function it(t,e){var n,r,o;if(G.pending_buf[U+2*D]=t>>>8&255,G.pending_buf[U+2*D+1]=255&t,G.pending_buf[T+D]=255&e,D++,0===t?M[2*e]++:(z++,t--,M[2*(i._length_code[e]+256+1)]++,O[2*i.d_code(t)]++),0==(8191&D)&&2<C){for(n=8*D,r=S-x,o=0;o<30;o++)n+=O[2*o]*(5+i.extra_dbits[o]);if(n>>>=3,z<Math.floor(D/2)&&n<Math.floor(r/2))return!0}return D==R-1}function ot(t,e){var n,r,o,a,s=0;if(0!==D)for(;n=G.pending_buf[U+2*s]<<8&65280|255&G.pending_buf[U+2*s+1],r=255&G.pending_buf[T+s],s++,0===n?et(r,t):(et((o=i._length_code[r])+256+1,t),0!==(a=i.extra_lbits[o])&&tt(r-=i.base_length[o],a),et(o=i.d_code(--n),e),0!==(a=i.extra_dbits[o])&&tt(n-=i.base_dist[o],a)),s<D;);et(256,t),H=t[513]}function at(){8<V?$(W):0<V&&Q(255&W),V=W=0}function st(t,e,n){var r,i;tt(0+(n?1:0),3),r=t,i=e,at(),H=8,$(i),$(~i),G.pending_buf.set(f.subarray(r,r+i),G.pending),G.pending+=i}function lt(e){(function(t,e,n){var r,a,s=0;0<C?(Y.build_tree(G),J.build_tree(G),s=function(){var t;for(Z(M,Y.max_code),Z(O,J.max_code),X.build_tree(G),t=18;3<=t&&0===q[2*i.bl_order[t]+1];t--);return G.opt_len+=3*(t+1)+5+5+4,t}(),r=G.opt_len+3+7>>>3,(a=G.static_len+3+7>>>3)<=r&&(r=a)):r=a=e+5,e+4<=r&&-1!=t?st(t,e,n):a==r?(tt(2+(n?1:0),3),ot(o.static_ltree,o.static_dtree)):(tt(4+(n?1:0),3),function(t,e,n){var r;for(tt(t-257,5),tt(e-1,5),tt(n-4,4),r=0;r<n;r++)tt(q[2*i.bl_order[r]+1],3);nt(M,t-1),nt(O,e-1)}(Y.max_code+1,J.max_code+1,s+1),ot(M,O)),K(),n&&at()})(0<=x?x:-1,S-x,e),x=S,t.flush_pending()}function ht(){var e,n,r,i;do{if(0==(i=p-F-S)&&0===S&&0===F)i=a;else if(-1==i)i--;else if(a+a-262<=S){for(f.set(f.subarray(a,a+a),0),_-=a,S-=a,x-=a,r=e=y;n=65535&g[--r],g[r]=a<=n?n-a:0,0!=--e;);for(r=e=a;n=65535&d[--r],d[r]=a<=n?n-a:0,0!=--e;);i+=a}if(0===t.avail_in)return;e=t.read_buf(f,S+F,i),3<=(F+=e)&&(m=((m=255&f[S])<<b^255&f[S+1])&w)}while(F<262&&0!==t.avail_in)}function ut(t){var e,n,r=k,i=S,o=P,s=a-262<S?S-(a-262):0,l=E,h=c,u=S+258,p=f[i+o-1],g=f[i+o];j<=P&&(r>>=2),F<l&&(l=F);do{if(f[(e=t)+o]==g&&f[e+o-1]==p&&f[e]==f[i]&&f[++e]==f[i+1]){i+=2,e++;do{}while(f[++i]==f[++e]&&f[++i]==f[++e]&&f[++i]==f[++e]&&f[++i]==f[++e]&&f[++i]==f[++e]&&f[++i]==f[++e]&&f[++i]==f[++e]&&f[++i]==f[++e]&&i<u);if(n=258-(u-i),i=u-258,o<n){if(_=t,l<=(o=n))break;p=f[i+o-1],g=f[i+o]}}}while((t=65535&d[t&h])>s&&0!=--r);return o<=F?o:F}function ct(t){return t.total_in=t.total_out=0,t.msg=null,G.pending=0,G.pending_out=0,e=113,r=0,Y.dyn_tree=M,Y.stat_desc=o.static_l_desc,J.dyn_tree=O,J.stat_desc=o.static_d_desc,X.dyn_tree=q,X.stat_desc=o.static_bl_desc,V=W=0,H=8,K(),function(){var t;for(p=2*a,t=g[y-1]=0;t<y-1;t++)g[t]=0;I=s[C].max_lazy,j=s[C].good_length,E=s[C].nice_length,k=s[C].max_chain,N=P=2,m=A=F=x=S=0}(),0}G.depth=[],G.bl_count=[],G.heap=[],M=[],O=[],q=[],G.pqdownheap=function(t,e){for(var n=G.heap,r=n[e],i=e<<1;i<=G.heap_len&&(i<G.heap_len&&h(t,n[i+1],n[i],G.depth)&&i++,!h(t,r,n[i],G.depth));)n[e]=n[i],e=i,i<<=1;n[e]=r},G.deflateInit=function(t,e,r,i,o,s){return i||(i=8),o||(o=8),s||(s=0),t.msg=null,-1==e&&(e=6),o<1||9<o||8!=i||r<9||15<r||e<0||9<e||s<0||2<s?-2:(t.dstate=G,c=(a=1<<(u=r))-1,w=(y=1<<(v=o+7))-1,b=Math.floor((v+3-1)/3),f=new Uint8Array(2*a),d=[],g=[],R=1<<o+6,G.pending_buf=new Uint8Array(4*R),n=4*R,U=Math.floor(R/2),T=3*R,C=e,B=s,ct(t))},G.deflateEnd=function(){return 42!=e&&113!=e&&666!=e?-2:(G.pending_buf=null,f=d=g=null,G.dstate=null,113==e?-3:0)},G.deflateParams=function(t,e,n){var r=0;return-1==e&&(e=6),e<0||9<e||n<0||2<n?-2:(s[C].func!=s[e].func&&0!==t.total_in&&(r=t.deflate(1)),C!=e&&(I=s[C=e].max_lazy,j=s[C].good_length,E=s[C].nice_length,k=s[C].max_chain),B=n,r)},G.deflateSetDictionary=function(t,n,r){var i,o=r,s=0;if(!n||42!=e)return-2;if(o<3)return 0;for(a-262<o&&(s=r-(o=a-262)),f.set(n.subarray(s,s+o),0),x=S=o,m=((m=255&f[0])<<b^255&f[1])&w,i=0;i<=o-3;i++)m=(m<<b^255&f[i+2])&w,d[i&c]=g[m],g[m]=i;return 0},G.deflate=function(i,h){var p,v,k,j,E,M;if(4<h||h<0)return-2;if(!i.next_out||!i.next_in&&0!==i.avail_in||666==e&&4!=h)return i.msg=l[4],-2;if(0===i.avail_out)return i.msg=l[7],-5;if(t=i,j=r,r=h,42==e&&(v=8+(u-8<<4)<<8,3<(k=(C-1&255)>>1)&&(k=3),v|=k<<6,0!==S&&(v|=32),e=113,Q((M=v+=31-v%31)>>8&255),Q(255&M)),0!==G.pending){if(t.flush_pending(),0===t.avail_out)return r=-1,0}else if(0===t.avail_in&&h<=j&&4!=h)return t.msg=l[7],-5;if(666==e&&0!==t.avail_in)return i.msg=l[7],-5;if(0!==t.avail_in||0!==F||0!=h&&666!=e){switch(E=-1,s[C].func){case 0:E=function(e){var r,i=65535;for(n-5<i&&(i=n-5);;){if(F<=1){if(ht(),0===F&&0==e)return 0;if(0===F)break}if(S+=F,r=x+i,((F=0)===S||r<=S)&&(F=S-r,S=r,lt(!1),0===t.avail_out))return 0;if(a-262<=S-x&&(lt(!1),0===t.avail_out))return 0}return lt(4==e),0===t.avail_out?4==e?2:0:4==e?3:1}(h);break;case 1:E=function(e){for(var n,r=0;;){if(F<262){if(ht(),F<262&&0==e)return 0;if(0===F)break}if(3<=F&&(m=(m<<b^255&f[S+2])&w,r=65535&g[m],d[S&c]=g[m],g[m]=S),0!==r&&(S-r&65535)<=a-262&&2!=B&&(N=ut(r)),3<=N)if(n=it(S-_,N-3),F-=N,N<=I&&3<=F){for(N--;m=(m<<b^255&f[++S+2])&w,r=65535&g[m],d[S&c]=g[m],g[m]=S,0!=--N;);S++}else S+=N,N=0,m=((m=255&f[S])<<b^255&f[S+1])&w;else n=it(0,255&f[S]),F--,S++;if(n&&(lt(!1),0===t.avail_out))return 0}return lt(4==e),0===t.avail_out?4==e?2:0:4==e?3:1}(h);break;case 2:E=function(e){for(var n,r,i=0;;){if(F<262){if(ht(),F<262&&0==e)return 0;if(0===F)break}if(3<=F&&(m=(m<<b^255&f[S+2])&w,i=65535&g[m],d[S&c]=g[m],g[m]=S),P=N,L=_,N=2,0!==i&&P<I&&(S-i&65535)<=a-262&&(2!=B&&(N=ut(i)),N<=5&&(1==B||3==N&&4096<S-_)&&(N=2)),3<=P&&N<=P){for(r=S+F-3,n=it(S-1-L,P-3),F-=P-1,P-=2;++S<=r&&(m=(m<<b^255&f[S+2])&w,i=65535&g[m],d[S&c]=g[m],g[m]=S),0!=--P;);if(A=0,N=2,S++,n&&(lt(!1),0===t.avail_out))return 0}else if(0!==A){if((n=it(0,255&f[S-1]))&&lt(!1),S++,F--,0===t.avail_out)return 0}else A=1,S++,F--}return 0!==A&&(n=it(0,255&f[S-1]),A=0),lt(4==e),0===t.avail_out?4==e?2:0:4==e?3:1}(h)}if(2!=E&&3!=E||(e=666),0==E||2==E)return 0===t.avail_out&&(r=-1),0;if(1==E){if(1==h)tt(2,3),et(256,o.static_ltree),rt(),1+H+10-V<9&&(tt(2,3),et(256,o.static_ltree),rt()),H=7;else if(st(0,0,!1),3==h)for(p=0;p<y;p++)g[p]=0;if(t.flush_pending(),0===t.avail_out)return r=-1,0}}return 4!=h?0:1}}function c(){this.next_in_index=0,this.next_out_index=0,this.avail_in=0,this.total_in=0,this.avail_out=0,this.total_out=0}c.prototype={deflateInit:function(t,n){return this.dstate=new u,n||(n=e),this.dstate.deflateInit(this,t,n)},deflate:function(t){return this.dstate?this.dstate.deflate(this,t):-2},deflateEnd:function(){if(!this.dstate)return-2;var t=this.dstate.deflateEnd();return this.dstate=null,t},deflateParams:function(t,e){return this.dstate?this.dstate.deflateParams(this,t,e):-2},deflateSetDictionary:function(t,e){return this.dstate?this.dstate.deflateSetDictionary(this,t,e):-2},read_buf:function(t,e,n){var r=this.avail_in;return n<r&&(r=n),0===r?0:(this.avail_in-=r,t.set(this.next_in.subarray(this.next_in_index,this.next_in_index+r),e),this.next_in_index+=r,this.total_in+=r,r)},flush_pending:function(){var t=this,e=t.dstate.pending;e>t.avail_out&&(e=t.avail_out),0!==e&&(t.next_out.set(t.dstate.pending_buf.subarray(t.dstate.pending_out,t.dstate.pending_out+e),t.next_out_index),t.next_out_index+=e,t.dstate.pending_out+=e,t.total_out+=e,t.avail_out-=e,t.dstate.pending-=e,0===t.dstate.pending&&(t.dstate.pending_out=0))}};var f=t.zip||t;f.Deflater=f._jzlib_Deflater=function(t){var e=new c,n=new Uint8Array(512),r=t?t.level:-1;void 0===r&&(r=-1),e.deflateInit(r),e.next_out=n,this.append=function(t,r){var i,o=[],a=0,s=0,l=0;if(t.length){e.next_in_index=0,e.next_in=t,e.avail_in=t.length;do{if(e.next_out_index=0,e.avail_out=512,0!=e.deflate(0))throw new Error("deflating: "+e.msg);e.next_out_index&&(512==e.next_out_index?o.push(new Uint8Array(n)):o.push(new Uint8Array(n.subarray(0,e.next_out_index)))),l+=e.next_out_index,r&&0<e.next_in_index&&e.next_in_index!=a&&(r(e.next_in_index),a=e.next_in_index)}while(0<e.avail_in||0===e.avail_out);return i=new Uint8Array(l),o.forEach(function(t){i.set(t,s),s+=t.length}),i}},this.flush=function(){var t,r,i=[],o=0,a=0;do{if(e.next_out_index=0,e.avail_out=512,1!=(t=e.deflate(4))&&0!=t)throw new Error("deflating: "+e.msg);0<512-e.avail_out&&i.push(new Uint8Array(n.subarray(0,e.next_out_index))),a+=e.next_out_index}while(0<e.avail_in||0===e.avail_out);return e.deflateEnd(),r=new Uint8Array(a),i.forEach(function(t){r.set(t,o),o+=t.length}),r}}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof global&&global||Function('return typeof this === "object" && this.content')()||Function("return this")()),("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof global&&global||Function('return typeof this === "object" && this.content')()||Function("return this")()).RGBColor=function(t){var e;t=t||"",this.ok=!1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var n={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"};for(var r in n)t==r&&(t=n[r]);for(var i=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],o=0;o<i.length;o++){var a=i[o].re,s=i[o].process,l=a.exec(t);l&&(e=s(l),this.r=e[0],this.g=e[1],this.b=e[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:255<this.r?255:this.r,this.g=this.g<0||isNaN(this.g)?0:255<this.g?255:this.g,this.b=this.b<0||isNaN(this.b)?0:255<this.b?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),n=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==n.length&&(n="0"+n),"#"+t+e+n}},function(t){var e="+".charCodeAt(0),n="/".charCodeAt(0),r="0".charCodeAt(0),i="a".charCodeAt(0),o="A".charCodeAt(0),a="-".charCodeAt(0),s="_".charCodeAt(0),l=function(t){var l=t.charCodeAt(0);return l===e||l===a?62:l===n||l===s?63:l<r?-1:l<r+10?l-r+26+26:l<o+26?l-o:l<i+26?l-i+26:void 0};t.API.TTFFont=function(){function t(t,e,n){var r;if(this.rawData=t,r=this.contents=new u(t),this.contents.pos=4,"ttcf"===r.readString(4)){if(!e)throw new Error("Must specify a font name for TTC files.");throw new Error("Font "+e+" not found in TTC file.")}r.pos=0,this.parse(),this.subset=new k(this),this.registerTTF()}return t.open=function(e,n,r,i){if("string"!=typeof r)throw new Error("Invalid argument supplied in TTFFont.open");return new t(function(t){var e,n,r,i,o,a;if(0<t.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var s=t.length;o="="===t.charAt(s-2)?2:"="===t.charAt(s-1)?1:0,a=new Uint8Array(3*t.length/4-o),r=0<o?t.length-4:t.length;var h=0;function u(t){a[h++]=t}for(n=e=0;e<r;e+=4,n+=3)u((16711680&(i=l(t.charAt(e))<<18|l(t.charAt(e+1))<<12|l(t.charAt(e+2))<<6|l(t.charAt(e+3))))>>16),u((65280&i)>>8),u(255&i);return 2===o?u(255&(i=l(t.charAt(e))<<2|l(t.charAt(e+1))>>4)):1===o&&(u((i=l(t.charAt(e))<<10|l(t.charAt(e+1))<<4|l(t.charAt(e+2))>>2)>>8&255),u(255&i)),a}(r),n,i)},t.prototype.parse=function(){return this.directory=new c(this.contents),this.head=new d(this),this.name=new x(this),this.cmap=new m(this),this.toUnicode=new Map,this.hhea=new y(this),this.maxp=new N(this),this.hmtx=new L(this),this.post=new w(this),this.os2=new v(this),this.loca=new P(this),this.glyf=new S(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]},t.prototype.registerTTF=function(){var t,e,n,r,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var e,n,r,i;for(i=[],e=0,n=(r=this.bbox).length;e<n;e++)t=r[e],i.push(Math.round(t*this.scaleFactor));return i}.call(this),this.stemV=0,this.post.exists?(n=255&(r=this.post.italic_angle),!0&(e=r>>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+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===(i=this.familyClass)||2===i||3===i||4===i||5===i||7===i,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(t){var e;return(null!=(e=this.cmap.unicode)?e.codeMap[t]:void 0)||0},t.prototype.widthOfGlyph=function(t){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*e},t.prototype.widthOfString=function(t,e,n){var r,i,o,a,s;for(i=a=o=0,s=(t=""+t).length;0<=s?a<s:s<a;i=0<=s?++a:--a)r=t.charCodeAt(i),o+=this.widthOfGlyph(this.characterToGlyph(r))+n*(1e3/e)||0;return o*(e/1e3)},t.prototype.lineHeight=function(t,e){var n;return null==e&&(e=!1),n=e?this.lineGap:0,(this.ascender+n-this.decender)/1e3*t},t}();var h,u=function(){function t(t){this.data=null!=t?t:[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(t){return this.data[this.pos++]=t},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt32=function(){var t;return 2147483648<=(t=this.readUInt32())?t-4294967296:t},t.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt16=function(){var t;return 32768<=(t=this.readUInt16())?t-65536:t},t.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},t.prototype.readString=function(t){var e,n,r;for(n=[],e=r=0;0<=t?r<t:t<r;e=0<=t?++r:--r)n[e]=String.fromCharCode(this.readByte());return n.join("")},t.prototype.writeString=function(t){var e,n,r,i;for(i=[],e=n=0,r=t.length;0<=r?n<r:r<n;e=0<=r?++n:--n)i.push(this.writeByte(t.charCodeAt(e)));return i},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(t){return this.writeInt16(t)},t.prototype.readLongLong=function(){var t,e,n,r,i,o,a,s;return t=this.readByte(),e=this.readByte(),n=this.readByte(),r=this.readByte(),i=this.readByte(),o=this.readByte(),a=this.readByte(),s=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^n)+4294967296*(255^r)+16777216*(255^i)+65536*(255^o)+256*(255^a)+(255^s)+1):72057594037927940*t+281474976710656*e+1099511627776*n+4294967296*r+16777216*i+65536*o+256*a+s},t.prototype.writeLongLong=function(t){var e,n;return e=Math.floor(t/4294967296),n=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(t){return this.writeInt32(t)},t.prototype.read=function(t){var e,n;for(e=[],n=0;0<=t?n<t:t<n;0<=t?++n:--n)e.push(this.readByte());return e},t.prototype.write=function(t){var e,n,r,i;for(i=[],n=0,r=t.length;n<r;n++)e=t[n],i.push(this.writeByte(e));return i},t}(),c=function(){var t;function e(t){var e,n,r;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},n=0,r=this.tableCount;0<=r?n<r:r<n;0<=r?++n:--n)e={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[e.tag]=e}return e.prototype.encode=function(e){var n,r,i,o,a,s,l,h,c,f,p,d,g;for(g in p=Object.keys(e).length,s=Math.log(2),c=16*Math.floor(Math.log(p)/s),o=Math.floor(c/s),h=16*p-c,(r=new u).writeInt(this.scalarType),r.writeShort(p),r.writeShort(c),r.writeShort(o),r.writeShort(h),i=16*p,l=r.pos+i,a=null,d=[],e)for(f=e[g],r.writeString(g),r.writeInt(t(f)),r.writeInt(l),r.writeInt(f.length),d=d.concat(f),"head"===g&&(a=l),l+=f.length;l%4;)d.push(0),l++;return r.write(d),n=2981146554-t(r.data),r.pos=a+8,r.writeUInt32(n),r.data},t=function(t){var e,n,r,i;for(t=A.call(t);t.length%4;)t.push(0);for(n=new u(t),r=e=0,i=t.length;r<i;r+=4)e+=n.readUInt32();return 4294967295&e},e}(),f={}.hasOwnProperty,p=function(t,e){for(var n in e)f.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t};h=function(){function t(t){var e;this.file=t,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}();var d=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,h),e.prototype.tag="head",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},e.prototype.encode=function(t){var e;return(e=new u).writeInt(this.version),e.writeInt(this.revision),e.writeInt(this.checkSumAdjustment),e.writeInt(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.writeLongLong(this.created),e.writeLongLong(this.modified),e.writeShort(this.xMin),e.writeShort(this.yMin),e.writeShort(this.xMax),e.writeShort(this.yMax),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort(this.fontDirectionHint),e.writeShort(t),e.writeShort(this.glyphDataFormat),e.data},e}(),g=function(){function t(t,e){var n,r,i,o,a,s,l,h,u,c,f,p,d,g,m,y,v,w;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),u=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.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(s=m=0;m<256;s=++m)this.codeMap[s]=t.readByte();break;case 4:for(f=t.readUInt16(),c=f/2,t.pos+=6,i=function(){var e,n;for(n=[],s=e=0;0<=c?e<c:c<e;s=0<=c?++e:--e)n.push(t.readUInt16());return n}(),t.pos+=2,d=function(){var e,n;for(n=[],s=e=0;0<=c?e<c:c<e;s=0<=c?++e:--e)n.push(t.readUInt16());return n}(),l=function(){var e,n;for(n=[],s=e=0;0<=c?e<c:c<e;s=0<=c?++e:--e)n.push(t.readUInt16());return n}(),h=function(){var e,n;for(n=[],s=e=0;0<=c?e<c:c<e;s=0<=c?++e:--e)n.push(t.readUInt16());return n}(),r=(this.length-t.pos+this.offset)/2,a=function(){var e,n;for(n=[],s=e=0;0<=r?e<r:r<e;s=0<=r?++e:--e)n.push(t.readUInt16());return n}(),s=y=0,w=i.length;y<w;s=++y)for(g=i[s],n=v=p=d[s];p<=g?v<=g:g<=v;n=p<=g?++v:--v)0===h[s]?o=n+l[s]:0!==(o=a[h[s]/2+(n-p)-(c-s)]||0)&&(o+=l[s]),this.codeMap[n]=65535&o}t.pos=u}return t.encode=function(t,e){var n,r,i,o,a,s,l,h,c,f,p,d,g,m,y,v,w,b,x,N,L,A,S,_,F,P,k,I,C,B,j,E,M,O,q,T,R,D,U,z,H,W,V,G,Y,J;switch(I=new u,o=Object.keys(t).sort(function(t,e){return t-e}),e){case"macroman":for(g=0,m=function(){var t,e;for(e=[],d=t=0;t<256;d=++t)e.push(0);return e}(),v={0:0},i={},C=0,M=o.length;C<M;C++)null==v[V=t[r=o[C]]]&&(v[V]=++g),i[r]={old:t[r],new:v[t[r]]},m[r]=v[t[r]];return I.writeUInt16(1),I.writeUInt16(0),I.writeUInt32(12),I.writeUInt16(0),I.writeUInt16(262),I.writeUInt16(0),I.write(m),{charMap:i,subtable:I.data,maxGlyphID:g+1};case"unicode":for(P=[],c=[],v={},n={},y=l=null,B=w=0,O=o.length;B<O;B++)null==v[x=t[r=o[B]]]&&(v[x]=++w),n[r]={old:x,new:v[x]},a=v[x]-r,null!=y&&a===l||(y&&c.push(y),P.push(r),l=a),y=r;for(y&&c.push(y),c.push(65535),P.push(65535),_=2*(S=P.length),A=2*Math.pow(Math.log(S)/Math.LN2,2),f=Math.log(A/2)/Math.LN2,L=2*S-A,s=[],N=[],p=[],d=j=0,q=P.length;j<q;d=++j){if(F=P[d],h=c[d],65535===F){s.push(0),N.push(0);break}if(32768<=F-(k=n[F].new))for(s.push(0),N.push(2*(p.length+S-d)),r=E=F;F<=h?E<=h:h<=E;r=F<=h?++E:--E)p.push(n[r].new);else s.push(k-F),N.push(0)}for(I.writeUInt16(3),I.writeUInt16(1),I.writeUInt32(12),I.writeUInt16(4),I.writeUInt16(16+8*S+2*p.length),I.writeUInt16(0),I.writeUInt16(_),I.writeUInt16(A),I.writeUInt16(f),I.writeUInt16(L),H=0,T=c.length;H<T;H++)r=c[H],I.writeUInt16(r);for(I.writeUInt16(0),W=0,R=P.length;W<R;W++)r=P[W],I.writeUInt16(r);for(G=0,D=s.length;G<D;G++)a=s[G],I.writeUInt16(a);for(Y=0,U=N.length;Y<U;Y++)b=N[Y],I.writeUInt16(b);for(J=0,z=p.length;J<z;J++)g=p[J],I.writeUInt16(g);return{charMap:n,subtable:I.data,maxGlyphID:w+1}}},t}(),m=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,h),e.prototype.tag="cmap",e.prototype.parse=function(t){var e,n,r;for(t.pos=this.offset,this.version=t.readUInt16(),n=t.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=n?r<n:n<r;0<=n?++r:--r)e=new g(t,this.offset),this.tables.push(e),e.isUnicode&&null==this.unicode&&(this.unicode=e);return!0},e.encode=function(t,e){var n,r;return null==e&&(e="macroman"),n=g.encode(t,e),(r=new u).writeUInt16(0),r.writeUInt16(1),n.table=r.data.concat(n.subtable),n},e}(),y=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,h),e.prototype.tag="hhea",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},e}(),v=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,h),e.prototype.tag="OS/2",e.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var e,n;for(n=[],e=0;e<10;++e)n.push(t.readByte());return n}(),this.charRange=function(){var e,n;for(n=[],e=0;e<4;++e)n.push(t.readInt());return n}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),0<this.version&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var e,n;for(n=[],e=0;e<2;++e)n.push(t.readInt());return n}(),1<this.version))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e}(),w=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,h),e.prototype.tag="post",e.prototype.parse=function(t){var e,n,r,i;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:break;case 131072:for(n=t.readUInt16(),this.glyphNameIndex=[],r=0;0<=n?r<n:n<r;0<=n?++r:--r)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],i=[];t.pos<this.offset+this.length;)e=t.readByte(),i.push(this.names.push(t.readString(e)));return i;case 151552:return n=t.readUInt16(),this.offsets=t.read(n);case 196608:break;case 262144:return this.map=function(){var e,n,r;for(r=[],e=0,n=this.file.maxp.numGlyphs;0<=n?e<n:n<e;0<=n?++e:--e)r.push(t.readUInt32());return r}.call(this)}},e}(),b=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},x=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,h),e.prototype.tag="name",e.prototype.parse=function(t){var e,n,r,i,o,a,s,l,h,u,c,f;for(t.pos=this.offset,t.readShort(),e=t.readShort(),a=t.readShort(),n=[],i=h=0;0<=e?h<e:e<h;i=0<=e?++h:--h)n.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+a+t.readShort()});for(s={},i=u=0,c=n.length;u<c;i=++u)r=n[i],t.pos=r.offset,l=t.readString(r.length),o=new b(l,r),null==s[f=r.nameID]&&(s[f]=[]),s[r.nameID].push(o);this.strings=s,this.copyright=s[0],this.fontFamily=s[1],this.fontSubfamily=s[2],this.uniqueSubfamily=s[3],this.fontName=s[4],this.version=s[5];try{this.postscriptName=s[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(t){this.postscriptName=s[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=s[7],this.manufacturer=s[8],this.designer=s[9],this.description=s[10],this.vendorUrl=s[11],this.designerUrl=s[12],this.license=s[13],this.licenseUrl=s[14],this.preferredFamily=s[15],this.preferredSubfamily=s[17],this.compatibleFull=s[18],this.sampleText=s[19]},e}(),N=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,h),e.prototype.tag="maxp",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},e}(),L=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,h),e.prototype.tag="hmtx",e.prototype.parse=function(t){var e,n,r,i,o,a,s;for(t.pos=this.offset,this.metrics=[],i=0,a=this.file.hhea.numberOfMetrics;0<=a?i<a:a<i;0<=a?++i:--i)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(n=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var e,r;for(r=[],e=0;0<=n?e<n:n<e;0<=n?++e:--e)r.push(t.readInt16());return r}(),this.widths=function(){var t,e,n,i;for(i=[],t=0,e=(n=this.metrics).length;t<e;t++)r=n[t],i.push(r.advance);return i}.call(this),e=this.widths[this.widths.length-1],s=[],o=0;0<=n?o<n:n<o;0<=n?++o:--o)s.push(this.widths.push(e));return s},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e}(),A=[].slice,S=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,h),e.prototype.tag="glyf",e.prototype.parse=function(t){return this.cache={}},e.prototype.glyphFor=function(t){var e,n,r,i,o,a,s,l,h,c;return(t=t)in this.cache?this.cache[t]:(i=this.file.loca,e=this.file.contents,n=i.indexOf(t),0===(r=i.lengthOf(t))?this.cache[t]=null:(e.pos=this.offset+n,o=(a=new u(e.read(r))).readShort(),l=a.readShort(),c=a.readShort(),s=a.readShort(),h=a.readShort(),this.cache[t]=-1===o?new F(a,l,c,s,h):new _(a,o,l,c,s,h),this.cache[t]))},e.prototype.encode=function(t,e,n){var r,i,o,a,s;for(o=[],i=[],a=0,s=e.length;a<s;a++)r=t[e[a]],i.push(o.length),r&&(o=o.concat(r.encode(n)));return i.push(o.length),{table:o,offsets:i}},e}(),_=function(){function t(t,e,n,r,i,o){this.raw=t,this.numberOfContours=e,this.xMin=n,this.yMin=r,this.xMax=i,this.yMax=o,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),F=function(){function t(t,e,n,r,i){var o,a;for(this.raw=t,this.xMin=e,this.yMin=n,this.xMax=r,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],o=this.raw;a=o.readShort(),this.glyphOffsets.push(o.pos),this.glyphIDs.push(o.readShort()),32&a;)o.pos+=1&a?4:2,128&a?o.pos+=8:64&a?o.pos+=4:8&a&&(o.pos+=2)}return t.prototype.encode=function(t){var e,n,r,i,o;for(n=new u(A.call(this.raw.data)),e=r=0,i=(o=this.glyphIDs).length;r<i;e=++r)o[e],n.pos=this.glyphOffsets[e];return n.data},t}(),P=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,h),e.prototype.tag="loca",e.prototype.parse=function(t){var e;return t.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=0===e?function(){var e,n,r;for(r=[],e=0,n=this.length;e<n;e+=2)r.push(2*t.readUInt16());return r}.call(this):function(){var e,n,r;for(r=[],e=0,n=this.length;e<n;e+=4)r.push(t.readUInt32());return r}.call(this)},e.prototype.indexOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},e.prototype.encode=function(t,e){for(var n=new Uint32Array(this.offsets.length),r=0,i=0,o=0;o<n.length;++o)if(n[o]=r,i<e.length&&e[i]==o){++i,n[o]=r;var a=this.offsets[o],s=this.offsets[o+1]-a;0<s&&(r+=s)}for(var l=new Array(4*n.length),h=0;h<n.length;++h)l[4*h+3]=255&n[h],l[4*h+2]=(65280&n[h])>>8,l[4*h+1]=(16711680&n[h])>>16,l[4*h]=(4278190080&n[h])>>24;return l},e}(),k=function(){function t(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var t,e,n,r,i;for(e in r=this.font.cmap.tables[0].codeMap,t={},i=this.subset)n=i[e],t[e]=r[n];return t},t.prototype.glyphsFor=function(t){var e,n,r,i,o,a,s;for(r={},o=0,a=t.length;o<a;o++)r[i=t[o]]=this.font.glyf.glyphFor(i);for(i in e=[],r)(null!=(n=r[i])?n.compound:void 0)&&e.push.apply(e,n.glyphIDs);if(0<e.length)for(i in s=this.glyphsFor(e))n=s[i],r[i]=n;return r},t.prototype.encode=function(t,e){var n,r,i,o,a,s,l,h,u,c,f,p,d,g,y;for(r in n=m.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(t),f={0:0},y=n.charMap)f[(s=y[r]).old]=s.new;for(p in c=n.maxGlyphID,o)p in f||(f[p]=c++);return h=function(t){var e,n;for(e in n={},t)n[t[e]]=e;return n}(f),u=Object.keys(h).sort(function(t,e){return t-e}),d=function(){var t,e,n;for(n=[],t=0,e=u.length;t<e;t++)a=u[t],n.push(h[a]);return n}(),i=this.font.glyf.encode(o,d,f),l=this.font.loca.encode(i.offsets,d),g={cmap:this.font.cmap.raw(),glyf:i.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(e)},this.font.os2.exists&&(g["OS/2"]=this.font.os2.raw()),this.font.directory.encode(g)},t}();t.API.PDFObject=function(){var t;function e(){}return t=function(t,e){return(Array(e+1).join("0")+t).slice(-e)},e.convert=function(n){var r,i,o,a;if(Array.isArray(n))return"["+function(){var t,i,o;for(o=[],t=0,i=n.length;t<i;t++)r=n[t],o.push(e.convert(r));return o}().join(" ")+"]";if("string"==typeof n)return"/"+n;if(null!=n?n.isString:void 0)return"("+n+")";if(n instanceof Date)return"(D:"+t(n.getUTCFullYear(),4)+t(n.getUTCMonth(),2)+t(n.getUTCDate(),2)+t(n.getUTCHours(),2)+t(n.getUTCMinutes(),2)+t(n.getUTCSeconds(),2)+"Z)";if("[object Object]"!=={}.toString.call(n))return""+n;for(i in o=["<<"],n)a=n[i],o.push("/"+i+" "+e.convert(a));return o.push(">>"),o.join("\n")},e}()}(ht),Lt="undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof global&&global||Function('return typeof this === "object" && this.content')()||Function("return this")(),At=function(){var t,e,n;function r(t){var e,n,r,i,o,a,s,l,h,u,c,f,p,d;for(this.data=t,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},a=null;;){switch(e=this.readUInt32(),h=function(){var t,e;for(e=[],t=0;t<4;++t)e.push(String.fromCharCode(this.data[this.pos++]));return e}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(e);break;case"fcTL":a&&this.animation.frames.push(a),this.pos+=4,a={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},o=this.readUInt16(),i=this.readUInt16()||100,a.delay=1e3*o/i,a.disposeOp=this.data[this.pos++],a.blendOp=this.data[this.pos++],a.data=[];break;case"IDAT":case"fdAT":for("fdAT"===h&&(this.pos+=4,e-=4),t=(null!=a?a.data:void 0)||this.imgData,f=0;0<=e?f<e:e<f;0<=e?++f:--f)t.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(r=this.palette.length/3,this.transparency.indexed=this.read(e),this.transparency.indexed.length>r)throw new Error("More transparent colors than palette size");if(0<(u=r-this.transparency.indexed.length))for(p=0;0<=u?p<u:u<p;0<=u?++p:--p)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(e)[0];break;case 2:this.transparency.rgb=this.read(e)}break;case"tEXt":s=(c=this.read(e)).indexOf(0),l=String.fromCharCode.apply(String,c.slice(0,s)),this.text[l]=String.fromCharCode.apply(String,c.slice(s+1));break;case"IEND":return a&&this.animation.frames.push(a),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(d=this.colorType)||6===d,n=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*n,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=e}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}r.load=function(t,e,n){var i;return"function"==typeof e&&(n=e),(i=new XMLHttpRequest).open("GET",t,!0),i.responseType="arraybuffer",i.onload=function(){var t;return t=new r(new Uint8Array(i.response||i.mozResponseArrayBuffer)),"function"==typeof(null!=e?e.getContext:void 0)&&t.render(e),"function"==typeof n?n(t):void 0},i.send(null)},r.prototype.read=function(t){var e,n;for(n=[],e=0;0<=t?e<t:t<e;0<=t?++e:--e)n.push(this.data[this.pos++]);return n},r.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.decodePixels=function(t){var e=this.pixelBitlength/8,n=new Uint8Array(this.width*this.height*e),r=0,i=this;if(null==t&&(t=this.imgData),0===t.length)return new Uint8Array(0);function o(o,a,s,l){var h,u,c,f,p,d,g,m,y,v,w,b,x,N,L,A,S,_,F,P,k,I=Math.ceil((i.width-o)/s),C=Math.ceil((i.height-a)/l),B=i.width==I&&i.height==C;for(N=e*I,b=B?n:new Uint8Array(N*C),d=t.length,u=x=0;x<C&&r<d;){switch(t[r++]){case 0:for(f=S=0;S<N;f=S+=1)b[u++]=t[r++];break;case 1:for(f=_=0;_<N;f=_+=1)h=t[r++],p=f<e?0:b[u-e],b[u++]=(h+p)%256;break;case 2:for(f=F=0;F<N;f=F+=1)h=t[r++],c=(f-f%e)/e,L=x&&b[(x-1)*N+c*e+f%e],b[u++]=(L+h)%256;break;case 3:for(f=P=0;P<N;f=P+=1)h=t[r++],c=(f-f%e)/e,p=f<e?0:b[u-e],L=x&&b[(x-1)*N+c*e+f%e],b[u++]=(h+Math.floor((p+L)/2))%256;break;case 4:for(f=k=0;k<N;f=k+=1)h=t[r++],c=(f-f%e)/e,p=f<e?0:b[u-e],0===x?L=A=0:(L=b[(x-1)*N+c*e+f%e],A=c&&b[(x-1)*N+(c-1)*e+f%e]),g=p+L-A,m=Math.abs(g-p),v=Math.abs(g-L),w=Math.abs(g-A),y=m<=v&&m<=w?p:v<=w?L:A,b[u++]=(h+y)%256;break;default:throw new Error("Invalid filter algorithm: "+t[r-1])}if(!B){var j=((a+x*l)*i.width+o)*e,E=x*N;for(f=0;f<I;f+=1){for(var M=0;M<e;M+=1)n[j++]=b[E++];j+=(s-1)*e}}x++}}return t=(t=new Ct(t)).getBytes(),1==i.interlaceMethod?(o(0,0,8,8),o(4,0,8,8),o(0,4,4,8),o(2,0,4,4),o(0,2,2,4),o(1,0,2,2),o(0,1,1,2)):o(0,0,1,1),n},r.prototype.decodePalette=function(){var t,e,n,r,i,o,a,s,l;for(n=this.palette,o=this.transparency.indexed||[],i=new Uint8Array((o.length||0)+n.length),r=0,n.length,e=a=t=0,s=n.length;a<s;e=a+=3)i[r++]=n[e],i[r++]=n[e+1],i[r++]=n[e+2],i[r++]=null!=(l=o[t++])?l:255;return i},r.prototype.copyToImageData=function(t,e){var n,r,i,o,a,s,l,h,u,c,f;if(r=this.colors,u=null,n=this.hasAlphaChannel,this.palette.length&&(u=null!=(f=this._decodedPalette)?f:this._decodedPalette=this.decodePalette(),r=4,n=!0),h=(i=t.data||t).length,a=u||e,o=s=0,1===r)for(;o<h;)l=u?4*e[o/4]:s,c=a[l++],i[o++]=c,i[o++]=c,i[o++]=c,i[o++]=n?a[l++]:255,s=l;else for(;o<h;)l=u?4*e[o/4]:s,i[o++]=a[l++],i[o++]=a[l++],i[o++]=a[l++],i[o++]=n?a[l++]:255,s=l},r.prototype.decode=function(){var t;return t=new Uint8Array(this.width*this.height*4),this.copyToImageData(t,this.decodePixels()),t};try{e=Lt.document.createElement("canvas"),n=e.getContext("2d")}catch(t){return-1}return t=function(t){var r;return n.width=t.width,n.height=t.height,n.clearRect(0,0,t.width,t.height),n.putImageData(t,0,0),(r=new Image).src=e.toDataURL(),r},r.prototype.decodeFrames=function(e){var n,r,i,o,a,s,l,h;if(this.animation){for(h=[],r=a=0,s=(l=this.animation.frames).length;a<s;r=++a)n=l[r],i=e.createImageData(n.width,n.height),o=this.decodePixels(new Uint8Array(n.data)),this.copyToImageData(i,o),n.imageData=i,h.push(n.image=t(i));return h}},r.prototype.renderFrame=function(t,e){var n,r,i;return n=(r=this.animation.frames)[e],i=r[e-1],0===e&&t.clearRect(0,0,this.width,this.height),1===(null!=i?i.disposeOp:void 0)?t.clearRect(i.xOffset,i.yOffset,i.width,i.height):2===(null!=i?i.disposeOp:void 0)&&t.putImageData(i.imageData,i.xOffset,i.yOffset),0===n.blendOp&&t.clearRect(n.xOffset,n.yOffset,n.width,n.height),t.drawImage(n.image,n.xOffset,n.yOffset)},r.prototype.animate=function(t){var e,n,r,i,o,a,s=this;return n=0,a=this.animation,i=a.numFrames,r=a.frames,o=a.numPlays,(e=function(){var a,l;if(a=n++%i,l=r[a],s.renderFrame(t,a),1<i&&n/i<o)return s.animation._timeout=setTimeout(e,l.delay)})()},r.prototype.stopAnimation=function(){var t;return clearTimeout(null!=(t=this.animation)?t._timeout:void 0)},r.prototype.render=function(t){var e,n;return t._png&&t._png.stopAnimation(),t._png=this,t.width=this.width,t.height=this.height,e=t.getContext("2d"),this.animation?(this.decodeFrames(e),this.animate(e)):(n=e.createImageData(this.width,this.height),this.copyToImageData(n,this.decodePixels()),e.putImageData(n,0,0))},r}(),Lt.PNG=At;var It=function(){function t(){this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=null}return t.prototype={ensureBuffer:function(t){var e=this.buffer,n=e?e.byteLength:0;if(t<n)return e;for(var r=512;r<t;)r<<=1;for(var i=new Uint8Array(r),o=0;o<n;++o)i[o]=e[o];return this.buffer=i},getByte:function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return null;this.readBlock()}return this.buffer[this.pos++]},getBytes:function(t){var e=this.pos;if(t){this.ensureBuffer(e+t);for(var n=e+t;!this.eof&&this.bufferLength<n;)this.readBlock();var r=this.bufferLength;r<n&&(n=r)}else{for(;!this.eof;)this.readBlock();n=this.bufferLength}return this.pos=n,this.buffer.subarray(e,n)},lookChar:function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos])},getChar:function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos++])},makeSubStream:function(t,e,n){for(var r=t+e;this.bufferLength<=r&&!this.eof;)this.readBlock();return new Stream(this.buffer,t,e,n)},skip:function(t){t||(t=1),this.pos+=t},reset:function(){this.pos=0}},t}(),Ct=function(){if("undefined"!=typeof Uint32Array){var t=new Uint32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),e=new Uint32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),n=new Uint32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),r=[new Uint32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],i=[new Uint32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];return(a.prototype=Object.create(It.prototype)).getBits=function(t){for(var e,n=this.codeSize,r=this.codeBuf,i=this.bytes,a=this.bytesPos;n<t;)void 0===(e=i[a++])&&o("Bad encoding in flate stream"),r|=e<<n,n+=8;return e=r&(1<<t)-1,this.codeBuf=r>>t,this.codeSize=n-=t,this.bytesPos=a,e},a.prototype.getCode=function(t){for(var e=t[0],n=t[1],r=this.codeSize,i=this.codeBuf,a=this.bytes,s=this.bytesPos;r<n;){var l;void 0===(l=a[s++])&&o("Bad encoding in flate stream"),i|=l<<r,r+=8}var h=e[i&(1<<n)-1],u=h>>16,c=65535&h;return(0==r||r<u||0==u)&&o("Bad encoding in flate stream"),this.codeBuf=i>>u,this.codeSize=r-u,this.bytesPos=s,c},a.prototype.generateHuffmanTable=function(t){for(var e=t.length,n=0,r=0;r<e;++r)t[r]>n&&(n=t[r]);for(var i=1<<n,o=new Uint32Array(i),a=1,s=0,l=2;a<=n;++a,s<<=1,l<<=1)for(var h=0;h<e;++h)if(t[h]==a){var u=0,c=s;for(r=0;r<a;++r)u=u<<1|1&c,c>>=1;for(r=u;r<i;r+=l)o[r]=a<<16|h;++s}return[o,n]},a.prototype.readBlock=function(){function a(t,e,n,r,i){for(var o=t.getBits(n)+r;0<o--;)e[d++]=i}var s=this.getBits(3);if(1&s&&(this.eof=!0),0!=(s>>=1)){var l,h;if(1==s)l=r,h=i;else if(2==s){for(var u=this.getBits(5)+257,c=this.getBits(5)+1,f=this.getBits(4)+4,p=Array(t.length),d=0;d<f;)p[t[d++]]=this.getBits(3);for(var g=this.generateHuffmanTable(p),m=0,y=(d=0,u+c),v=new Array(y);d<y;){var w=this.getCode(g);16==w?a(this,v,2,3,m):17==w?a(this,v,3,3,m=0):18==w?a(this,v,7,11,m=0):v[d++]=m=w}l=this.generateHuffmanTable(v.slice(0,u)),h=this.generateHuffmanTable(v.slice(u,y))}else o("Unknown block type in flate stream");for(var b=(B=this.buffer)?B.length:0,x=this.bufferLength;;){var N=this.getCode(l);if(N<256)b<=x+1&&(b=(B=this.ensureBuffer(x+1)).length),B[x++]=N;else{if(256==N)return void(this.bufferLength=x);var L=(N=e[N-=257])>>16;0<L&&(L=this.getBits(L)),m=(65535&N)+L,N=this.getCode(h),0<(L=(N=n[N])>>16)&&(L=this.getBits(L));var A=(65535&N)+L;b<=x+m&&(b=(B=this.ensureBuffer(x+m)).length);for(var S=0;S<m;++S,++x)B[x]=B[x-A]}}}else{var _,F=this.bytes,P=this.bytesPos;void 0===(_=F[P++])&&o("Bad block header in flate stream");var k=_;void 0===(_=F[P++])&&o("Bad block header in flate stream"),k|=_<<8,void 0===(_=F[P++])&&o("Bad block header in flate stream");var I=_;void 0===(_=F[P++])&&o("Bad block header in flate stream"),(I|=_<<8)!=(65535&~k)&&o("Bad uncompressed block length in flate stream"),this.codeBuf=0,this.codeSize=0;var C=this.bufferLength,B=this.ensureBuffer(C+k),j=C+k;this.bufferLength=j;for(var E=C;E<j;++E){if(void 0===(_=F[P++])){this.eof=!0;break}B[E]=_}this.bytesPos=P}},a}function o(t){throw new Error(t)}function a(t){var e=0,n=t[e++],r=t[e++];-1!=n&&-1!=r||o("Invalid header in flate stream"),8!=(15&n)&&o("Unknown compression method in flate stream"),((n<<8)+r)%31!=0&&o("Bad FCHECK in flate stream"),32&r&&o("FDICT bit set in flate stream"),this.bytes=t,this.bytesPos=2,this.codeSize=0,this.codeBuf=0,It.call(this)}}();window.tmp=Ct});try{module.exports=jsPDF}catch(t){}
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{}],193:[function(require,module,exports){
(function (process){
(function(){var e,n,r,o,t,u;"undefined"!=typeof performance&&null!==performance&&performance.now?module.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(module.exports=function(){return(e()-t)/1e6},n=process.hrtime,o=(e=function(){var e;return 1e9*(e=n())[0]+e[1]})(),u=1e9*process.uptime(),t=o-u):Date.now?(module.exports=function(){return Date.now()-r},r=Date.now()):(module.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(this);
}).call(this,require('_process'))
},{"_process":194}],194:[function(require,module,exports){
var cachedSetTimeout,cachedClearTimeout,process=module.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(e){if(cachedSetTimeout===setTimeout)return setTimeout(e,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(e,0);try{return cachedSetTimeout(e,0)}catch(t){try{return cachedSetTimeout.call(null,e,0)}catch(t){return cachedSetTimeout.call(this,e,0)}}}function runClearTimeout(e){if(cachedClearTimeout===clearTimeout)return clearTimeout(e);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(e);try{return cachedClearTimeout(e)}catch(t){try{return cachedClearTimeout.call(null,e)}catch(t){return cachedClearTimeout.call(this,e)}}}!function(){try{cachedSetTimeout="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){cachedSetTimeout=defaultSetTimout}try{cachedClearTimeout="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){cachedClearTimeout=defaultClearTimeout}}();var currentQueue,queue=[],draining=!1,queueIndex=-1;function cleanUpNextTick(){draining&&currentQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var e=runTimeout(cleanUpNextTick);draining=!0;for(var t=queue.length;t;){for(currentQueue=queue,queue=[];++queueIndex<t;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1,t=queue.length}currentQueue=null,draining=!1,runClearTimeout(e)}}function Item(e,t){this.fun=e,this.array=t}function noop(){}process.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];queue.push(new Item(e,t)),1!==queue.length||draining||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},process.title="browser",process.browser=!0,process.env={},process.argv=[],process.version="",process.versions={},process.on=noop,process.addListener=noop,process.once=noop,process.off=noop,process.removeListener=noop,process.removeAllListeners=noop,process.emit=noop,process.prependListener=noop,process.prependOnceListener=noop,process.listeners=function(e){return[]},process.binding=function(e){throw new Error("process.binding is not supported")},process.cwd=function(){return"/"},process.chdir=function(e){throw new Error("process.chdir is not supported")},process.umask=function(){return 0};
},{}],195:[function(require,module,exports){
(function (global){
for(var now=require("performance-now"),root="undefined"==typeof window?global:window,vendors=["moz","webkit"],suffix="AnimationFrame",raf=root["request"+suffix],caf=root["cancel"+suffix]||root["cancelRequest"+suffix],i=0;!raf&&i<vendors.length;i++)raf=root[vendors[i]+"Request"+suffix],caf=root[vendors[i]+"Cancel"+suffix]||root[vendors[i]+"CancelRequest"+suffix];if(!raf||!caf){var last=0,id=0,queue=[],frameDuration=1e3/60;raf=function(e){if(0===queue.length){var o=now(),a=Math.max(0,frameDuration-(o-last));last=a+o,setTimeout(function(){var e=queue.slice(0);queue.length=0;for(var o=0;o<e.length;o++)if(!e[o].cancelled)try{e[o].callback(last)}catch(e){setTimeout(function(){throw e},0)}},Math.round(a))}return queue.push({handle:++id,callback:e,cancelled:!1}),id},caf=function(e){for(var o=0;o<queue.length;o++)queue[o].handle===e&&(queue[o].cancelled=!0)}}module.exports=function(e){return raf.call(root,e)},module.exports.cancel=function(){caf.apply(root,arguments)},module.exports.polyfill=function(e){e||(e=root),e.requestAnimationFrame=raf,e.cancelAnimationFrame=caf};
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"performance-now":193}],196:[function(require,module,exports){
var runtime=function(t){"use strict";var r,e=Object.prototype,n=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,r,e,n){var o=r&&r.prototype instanceof v?r:v,i=Object.create(o.prototype),a=new k(n||[]);return i._invoke=function(t,r,e){var n=f;return function(o,i){if(n===l)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw i;return N()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=_(a,e);if(c){if(c===y)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(n===f)throw n=p,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n=l;var u=h(t,r,e);if("normal"===u.type){if(n=e.done?p:s,u.arg===y)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n=p,e.method="throw",e.arg=u.arg)}}}(t,e,a),i}function h(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f="suspendedStart",s="suspendedYield",l="executing",p="completed",y={};function v(){}function d(){}function g(){}var m={};m[i]=function(){return this};var w=Object.getPrototypeOf,L=w&&w(w(G([])));L&&L!==e&&n.call(L,i)&&(m=L);var x=g.prototype=v.prototype=Object.create(m);function E(t){["next","throw","return"].forEach(function(r){t[r]=function(t){return this._invoke(r,t)}})}function b(t,r){var e;this._invoke=function(o,i){function a(){return new r(function(e,a){!function e(o,i,a,c){var u=h(t[o],t,i);if("throw"!==u.type){var f=u.arg,s=f.value;return s&&"object"==typeof s&&n.call(s,"__await")?r.resolve(s.__await).then(function(t){e("next",t,a,c)},function(t){e("throw",t,a,c)}):r.resolve(s).then(function(t){f.value=t,a(f)},function(t){return e("throw",t,a,c)})}c(u.arg)}(o,i,e,a)})}return e=e?e.then(a,a):a()}}function _(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,_(t,e),"throw"===e.method))return y;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=h(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,y;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,y):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,y)}function j(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function O(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function G(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function e(){for(;++o<t.length;)if(n.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=r,e.done=!0,e};return a.next=a}}return{next:N}}function N(){return{value:r,done:!0}}return d.prototype=x.constructor=g,g.constructor=d,g[c]=d.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===d||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},E(b.prototype),b.prototype[a]=function(){return this},t.AsyncIterator=b,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new b(u(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then(function(t){return t.done?t.value:a.next()})},E(x),x[c]="Generator",x[i]=function(){return this},x.toString=function(){return"[object Generator]"},t.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=G,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function o(n,o){return c.type="throw",c.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),h=n.call(a,"finallyLoc");if(u&&h){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!h)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),y},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),O(e),y}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;O(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:G(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),y}},t}("object"==typeof module?module.exports:{});try{regeneratorRuntime=runtime}catch(t){Function("r","regeneratorRuntime = r")(runtime)}
},{}],197:[function(require,module,exports){
module.exports=function(e){this.ok=!1,this.alpha=1,"#"==e.charAt(0)&&(e=e.substr(1,6)),e=(e=e.replace(/ /g,"")).toLowerCase();var a={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=a[e]||e;for(var f=[{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<f.length;r++){var t=f[r].re,d=f[r].process,i=t.exec(e);if(i){var l=d(i);this.r=l[0],this.g=l[1],this.b=l[2],l.length>3&&(this.alpha=l[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),a=this.g.toString(16),f=this.b.toString(16);return 1==e.length&&(e="0"+e),1==a.length&&(a="0"+a),1==f.length&&(f="0"+f),"#"+e+a+f},this.getHelpXML=function(){for(var e=new Array,r=0;r<f.length;r++)for(var t=f[r].example,d=0;d<t.length;d++)e[e.length]=t[d];for(var i in a)e[e.length]=i;var l=document.createElement("ul");l.setAttribute("id","rgbcolor-examples");for(r=0;r<e.length;r++)try{var n=document.createElement("li"),s=new RGBColor(e[r]),o=document.createElement("div");o.style.cssText="margin: 3px; border: 1px solid black; background:"+s.toHex()+"; color:"+s.toHex(),o.appendChild(document.createTextNode("test"));var h=document.createTextNode(" "+e[r]+" -> "+s.toRGB()+" -> "+s.toHex());n.appendChild(o),n.appendChild(h),l.appendChild(n)}catch(e){}return l}};
},{}],198:[function(require,module,exports){
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.StackBlur={})}(this,function(t){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n=[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],r=[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(t,n,r,o,a){if("string"==typeof t&&(t=document.getElementById(t)),!(t&&"object"===e(t)&&"getContext"in t))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var i=t.getContext("2d");try{return i.getImageData(n,r,o,a)}catch(t){throw new Error("unable to access image data: "+t)}}function a(t,e,n,r,a,f){if(!(isNaN(f)||f<1)){f|=0;var g=o(t,e,n,r,a);g=i(g,e,n,r,a,f),t.getContext("2d").putImageData(g,e,n)}}function i(t,e,o,a,i,f){var g,c,l,s,x,b,d,y,p,m,h,v,w,B,C,E,I,S,N,R,D,G,j,A,k,T=t.data,W=2*f+1,_=a-1,H=i-1,M=f+1,O=M*(M+1)/2,P=new u,q=P;for(l=1;l<W;l++)q=q.next=new u,l===M&&(k=q);q.next=P;var z=null,F=null;d=b=0;var J=n[f],K=r[f];for(c=0;c<i;c++){for(E=I=S=N=y=p=m=h=0,v=M*(R=T[b]),w=M*(D=T[b+1]),B=M*(G=T[b+2]),C=M*(j=T[b+3]),y+=O*R,p+=O*D,m+=O*G,h+=O*j,q=P,l=0;l<M;l++)q.r=R,q.g=D,q.b=G,q.a=j,q=q.next;for(l=1;l<M;l++)s=b+((_<l?_:l)<<2),y+=(q.r=R=T[s])*(A=M-l),p+=(q.g=D=T[s+1])*A,m+=(q.b=G=T[s+2])*A,h+=(q.a=j=T[s+3])*A,E+=R,I+=D,S+=G,N+=j,q=q.next;for(z=P,F=k,g=0;g<a;g++)T[b+3]=j=h*J>>K,0!==j?(j=255/j,T[b]=(y*J>>K)*j,T[b+1]=(p*J>>K)*j,T[b+2]=(m*J>>K)*j):T[b]=T[b+1]=T[b+2]=0,y-=v,p-=w,m-=B,h-=C,v-=z.r,w-=z.g,B-=z.b,C-=z.a,s=d+((s=g+f+1)<_?s:_)<<2,y+=E+=z.r=T[s],p+=I+=z.g=T[s+1],m+=S+=z.b=T[s+2],h+=N+=z.a=T[s+3],z=z.next,v+=R=F.r,w+=D=F.g,B+=G=F.b,C+=j=F.a,E-=R,I-=D,S-=G,N-=j,F=F.next,b+=4;d+=a}for(g=0;g<a;g++){for(I=S=N=E=p=m=h=y=0,v=M*(R=T[b=g<<2]),w=M*(D=T[b+1]),B=M*(G=T[b+2]),C=M*(j=T[b+3]),y+=O*R,p+=O*D,m+=O*G,h+=O*j,q=P,l=0;l<M;l++)q.r=R,q.g=D,q.b=G,q.a=j,q=q.next;for(x=a,l=1;l<=f;l++)b=x+g<<2,y+=(q.r=R=T[b])*(A=M-l),p+=(q.g=D=T[b+1])*A,m+=(q.b=G=T[b+2])*A,h+=(q.a=j=T[b+3])*A,E+=R,I+=D,S+=G,N+=j,q=q.next,l<H&&(x+=a);for(b=g,z=P,F=k,c=0;c<i;c++)T[(s=b<<2)+3]=j=h*J>>K,j>0?(j=255/j,T[s]=(y*J>>K)*j,T[s+1]=(p*J>>K)*j,T[s+2]=(m*J>>K)*j):T[s]=T[s+1]=T[s+2]=0,y-=v,p-=w,m-=B,h-=C,v-=z.r,w-=z.g,B-=z.b,C-=z.a,s=g+((s=c+M)<H?s:H)*a<<2,y+=E+=z.r=T[s],p+=I+=z.g=T[s+1],m+=S+=z.b=T[s+2],h+=N+=z.a=T[s+3],z=z.next,v+=R=F.r,w+=D=F.g,B+=G=F.b,C+=j=F.a,E-=R,I-=D,S-=G,N-=j,F=F.next,b+=a}return t}function f(t,e,n,r,a,i){if(!(isNaN(i)||i<1)){i|=0;var f=o(t,e,n,r,a);f=g(f,e,n,r,a,i),t.getContext("2d").putImageData(f,e,n)}}function g(t,e,o,a,i,f){var g,c,l,s,x,b,d,y,p,m,h,v,w,B,C,E,I,S,N,R,D,G=t.data,j=2*f+1,A=a-1,k=i-1,T=f+1,W=T*(T+1)/2,_=new u,H=_;for(l=1;l<j;l++)H=H.next=new u,l===T&&(D=H);H.next=_;var M=null,O=null;d=b=0;var P=n[f],q=r[f];for(c=0;c<i;c++){for(B=C=E=y=p=m=0,h=T*(I=G[b]),v=T*(S=G[b+1]),w=T*(N=G[b+2]),y+=W*I,p+=W*S,m+=W*N,H=_,l=0;l<T;l++)H.r=I,H.g=S,H.b=N,H=H.next;for(l=1;l<T;l++)s=b+((A<l?A:l)<<2),y+=(H.r=I=G[s])*(R=T-l),p+=(H.g=S=G[s+1])*R,m+=(H.b=N=G[s+2])*R,B+=I,C+=S,E+=N,H=H.next;for(M=_,O=D,g=0;g<a;g++)G[b]=y*P>>q,G[b+1]=p*P>>q,G[b+2]=m*P>>q,y-=h,p-=v,m-=w,h-=M.r,v-=M.g,w-=M.b,s=d+((s=g+f+1)<A?s:A)<<2,y+=B+=M.r=G[s],p+=C+=M.g=G[s+1],m+=E+=M.b=G[s+2],M=M.next,h+=I=O.r,v+=S=O.g,w+=N=O.b,B-=I,C-=S,E-=N,O=O.next,b+=4;d+=a}for(g=0;g<a;g++){for(C=E=B=p=m=y=0,h=T*(I=G[b=g<<2]),v=T*(S=G[b+1]),w=T*(N=G[b+2]),y+=W*I,p+=W*S,m+=W*N,H=_,l=0;l<T;l++)H.r=I,H.g=S,H.b=N,H=H.next;for(x=a,l=1;l<=f;l++)b=x+g<<2,y+=(H.r=I=G[b])*(R=T-l),p+=(H.g=S=G[b+1])*R,m+=(H.b=N=G[b+2])*R,B+=I,C+=S,E+=N,H=H.next,l<k&&(x+=a);for(b=g,M=_,O=D,c=0;c<i;c++)G[s=b<<2]=y*P>>q,G[s+1]=p*P>>q,G[s+2]=m*P>>q,y-=h,p-=v,m-=w,h-=M.r,v-=M.g,w-=M.b,s=g+((s=c+T)<k?s:k)*a<<2,y+=B+=M.r=G[s],p+=C+=M.g=G[s+1],m+=E+=M.b=G[s+2],M=M.next,h+=I=O.r,v+=S=O.g,w+=N=O.b,B-=I,C-=S,E-=N,O=O.next,b+=a}return t}var u=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};t.BlurStack=u,t.image=function(t,e,n,r){if("string"==typeof t&&(t=document.getElementById(t)),t&&"naturalWidth"in t){var o=t.naturalWidth,i=t.naturalHeight;if("string"==typeof e&&(e=document.getElementById(e)),e&&"getContext"in e){e.style.width=o+"px",e.style.height=i+"px",e.width=o,e.height=i;var g=e.getContext("2d");g.clearRect(0,0,o,i),g.drawImage(t,0,0),isNaN(n)||n<1||(r?a(e,0,0,o,i,n):f(e,0,0,o,i,n))}}},t.canvasRGBA=a,t.canvasRGB=f,t.imageDataRGBA=i,t.imageDataRGB=g,Object.defineProperty(t,"__esModule",{value:!0})});
},{}]},{},[5])(5)
});