vue-data-ui 0.6.2 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,412 +0,0 @@
1
- (function(Gr,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(Gr=typeof globalThis<"u"?globalThis:Gr||self,i(Gr.VueDataUi={},Gr.Vue))})(this,function(Gr,i){"use strict";/*!
2
- * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
3
- * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
4
- * Released under MIT License
5
- *//*! *****************************************************************************
6
- Copyright (c) Microsoft Corporation.
7
-
8
- Permission to use, copy, modify, and/or distribute this software for any
9
- purpose with or without fee is hereby granted.
10
-
11
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
12
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
14
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
16
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17
- PERFORMANCE OF THIS SOFTWARE.
18
- ***************************************************************************** */var Q0=function(t,e){return Q0=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},Q0(t,e)};function $a(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Q0(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var O0=function(){return O0=Object.assign||function(e){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var A in r)Object.prototype.hasOwnProperty.call(r,A)&&(e[A]=r[A])}return e},O0.apply(this,arguments)};function Vn(t,e,r,n){function a(A){return A instanceof r?A:new r(function(o){o(A)})}return new(r||(r=Promise))(function(A,o){function s(u){try{c(n.next(u))}catch(p){o(p)}}function l(u){try{c(n.throw(u))}catch(p){o(p)}}function c(u){u.done?A(u.value):a(u.value).then(s,l)}c((n=n.apply(t,e||[])).next())})}function kn(t,e){var r={label:0,sent:function(){if(A[0]&1)throw A[1];return A[1]},trys:[],ops:[]},n,a,A,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(A=c[0]&2?a.return:c[0]?a.throw||((A=a.return)&&A.call(a),0):a.next)&&!(A=A.call(a,c[1])).done)return A;switch(a=0,A&&(c=[c[0]&2,A.value]),c[0]){case 0:case 1:A=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,a=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(A=r.trys,!(A=A.length>0&&A[A.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!A||c[1]>A[0]&&c[1]<A[3])){r.label=c[1];break}if(c[0]===6&&r.label<A[1]){r.label=A[1],A=c;break}if(A&&r.label<A[2]){r.label=A[2],r.ops.push(c);break}A[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(u){c=[6,u],a=0}finally{n=A=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function lu(t,e,r){if(r||arguments.length===2)for(var n=0,a=e.length,A;n<a;n++)(A||!(n in e))&&(A||(A=Array.prototype.slice.call(e,0,n)),A[n]=e[n]);return t.concat(A||e)}for(var HA=function(){function t(e,r,n,a){this.left=e,this.top=r,this.width=n,this.height=a}return t.prototype.add=function(e,r,n,a){return new t(this.left+e,this.top+r,this.width+n,this.height+a)},t.fromClientRect=function(e,r){return new t(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height)},t.fromDOMRectList=function(e,r){var n=Array.from(r).find(function(a){return a.width!==0});return n?new t(n.left+e.windowBounds.left,n.top+e.windowBounds.top,n.width,n.height):t.EMPTY},t.EMPTY=new t(0,0,0,0),t}(),cu=function(t,e){return HA.fromClientRect(t,e.getBoundingClientRect())},LE=function(t){var e=t.body,r=t.documentElement;if(!e||!r)throw new Error("Unable to get document size");var n=Math.max(Math.max(e.scrollWidth,r.scrollWidth),Math.max(e.offsetWidth,r.offsetWidth),Math.max(e.clientWidth,r.clientWidth)),a=Math.max(Math.max(e.scrollHeight,r.scrollHeight),Math.max(e.offsetHeight,r.offsetHeight),Math.max(e.clientHeight,r.clientHeight));return new HA(0,0,n,a)},uu=function(t){for(var e=[],r=0,n=t.length;r<n;){var a=t.charCodeAt(r++);if(a>=55296&&a<=56319&&r<n){var A=t.charCodeAt(r++);(A&64512)===56320?e.push(((a&1023)<<10)+(A&1023)+65536):(e.push(a),r--)}else e.push(a)}return e},Or=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var r=t.length;if(!r)return"";for(var n=[],a=-1,A="";++a<r;){var o=t[a];o<=65535?n.push(o):(o-=65536,n.push((o>>10)+55296,o%1024+56320)),(a+1===r||n.length>16384)&&(A+=String.fromCharCode.apply(String,n),n.length=0)}return A},Zm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",UE=typeof Uint8Array>"u"?[]:new Uint8Array(256),hu=0;hu<Zm.length;hu++)UE[Zm.charCodeAt(hu)]=hu;for(var e2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ml=typeof Uint8Array>"u"?[]:new Uint8Array(256),fu=0;fu<e2.length;fu++)ml[e2.charCodeAt(fu)]=fu;for(var IE=function(t){var e=t.length*.75,r=t.length,n,a=0,A,o,s,l;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),u=Array.isArray(c)?c:new Uint8Array(c);for(n=0;n<r;n+=4)A=ml[t.charCodeAt(n)],o=ml[t.charCodeAt(n+1)],s=ml[t.charCodeAt(n+2)],l=ml[t.charCodeAt(n+3)],u[a++]=A<<2|o>>4,u[a++]=(o&15)<<4|s>>2,u[a++]=(s&3)<<6|l&63;return c},DE=function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r.push(t[n+1]<<8|t[n]);return r},QE=function(t){for(var e=t.length,r=[],n=0;n<e;n+=4)r.push(t[n+3]<<24|t[n+2]<<16|t[n+1]<<8|t[n]);return r},oo=5,P0=6+5,M0=2,OE=P0-oo,t2=65536>>oo,PE=1<<oo,R0=PE-1,ME=1024>>oo,RE=t2+ME,HE=RE,VE=32,$E=HE+VE,zE=65536>>P0,KE=1<<OE,GE=KE-1,r2=function(t,e,r){return t.slice?t.slice(e,r):new Uint16Array(Array.prototype.slice.call(t,e,r))},jE=function(t,e,r){return t.slice?t.slice(e,r):new Uint32Array(Array.prototype.slice.call(t,e,r))},WE=function(t,e){var r=IE(t),n=Array.isArray(r)?QE(r):new Uint32Array(r),a=Array.isArray(r)?DE(r):new Uint16Array(r),A=24,o=r2(a,A/2,n[4]/2),s=n[5]===2?r2(a,(A+n[4])/2):jE(n,Math.ceil((A+n[4])/4));return new XE(n[0],n[1],n[2],n[3],o,s)},XE=function(){function t(e,r,n,a,A,o){this.initialValue=e,this.errorValue=r,this.highStart=n,this.highValueIndex=a,this.index=A,this.data=o}return t.prototype.get=function(e){var r;if(e>=0){if(e<55296||e>56319&&e<=65535)return r=this.index[e>>oo],r=(r<<M0)+(e&R0),this.data[r];if(e<=65535)return r=this.index[t2+(e-55296>>oo)],r=(r<<M0)+(e&R0),this.data[r];if(e<this.highStart)return r=$E-zE+(e>>P0),r=this.index[r],r+=e>>oo&GE,r=this.index[r],r=(r<<M0)+(e&R0),this.data[r];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),n2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qE=typeof Uint8Array>"u"?[]:new Uint8Array(256),du=0;du<n2.length;du++)qE[n2.charCodeAt(du)]=du;var YE="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",a2=50,JE=1,A2=2,i2=3,ZE=4,e_=5,o2=7,s2=8,l2=9,vi=10,H0=11,c2=12,V0=13,t_=14,yl=15,$0=16,gu=17,vl=18,r_=19,u2=20,z0=21,wl=22,K0=23,qo=24,ga=25,Bl=26,xl=27,Yo=28,n_=29,so=30,a_=31,pu=32,mu=33,G0=34,j0=35,W0=36,bl=37,X0=38,yu=39,vu=40,q0=41,h2=42,A_=43,i_=[9001,65288],f2="!",Ht="×",wu="÷",Y0=WE(YE),VA=[so,W0],J0=[JE,A2,i2,e_],d2=[vi,s2],g2=[xl,Bl],o_=J0.concat(d2),p2=[X0,yu,vu,G0,j0],s_=[yl,V0],l_=function(t,e){e===void 0&&(e="strict");var r=[],n=[],a=[];return t.forEach(function(A,o){var s=Y0.get(A);if(s>a2?(a.push(!0),s-=a2):a.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(A)!==-1)return n.push(o),r.push($0);if(s===ZE||s===H0){if(o===0)return n.push(o),r.push(so);var l=r[o-1];return o_.indexOf(l)===-1?(n.push(n[o-1]),r.push(l)):(n.push(o),r.push(so))}if(n.push(o),s===a_)return r.push(e==="strict"?z0:bl);if(s===h2||s===n_)return r.push(so);if(s===A_)return A>=131072&&A<=196605||A>=196608&&A<=262141?r.push(bl):r.push(so);r.push(s)}),[n,r,a]},Z0=function(t,e,r,n){var a=n[r];if(Array.isArray(t)?t.indexOf(a)!==-1:t===a)for(var A=r;A<=n.length;){A++;var o=n[A];if(o===e)return!0;if(o!==vi)break}if(a===vi)for(var A=r;A>0;){A--;var s=n[A];if(Array.isArray(t)?t.indexOf(s)!==-1:t===s)for(var l=r;l<=n.length;){l++;var o=n[l];if(o===e)return!0;if(o!==vi)break}if(s!==vi)break}return!1},m2=function(t,e){for(var r=t;r>=0;){var n=e[r];if(n===vi)r--;else return n}return 0},c_=function(t,e,r,n,a){if(r[n]===0)return Ht;var A=n-1;if(Array.isArray(a)&&a[A]===!0)return Ht;var o=A-1,s=A+1,l=e[A],c=o>=0?e[o]:0,u=e[s];if(l===A2&&u===i2)return Ht;if(J0.indexOf(l)!==-1)return f2;if(J0.indexOf(u)!==-1||d2.indexOf(u)!==-1)return Ht;if(m2(A,e)===s2)return wu;if(Y0.get(t[A])===H0||(l===pu||l===mu)&&Y0.get(t[s])===H0||l===o2||u===o2||l===l2||[vi,V0,yl].indexOf(l)===-1&&u===l2||[gu,vl,r_,qo,Yo].indexOf(u)!==-1||m2(A,e)===wl||Z0(K0,wl,A,e)||Z0([gu,vl],z0,A,e)||Z0(c2,c2,A,e))return Ht;if(l===vi)return wu;if(l===K0||u===K0)return Ht;if(u===$0||l===$0)return wu;if([V0,yl,z0].indexOf(u)!==-1||l===t_||c===W0&&s_.indexOf(l)!==-1||l===Yo&&u===W0||u===u2||VA.indexOf(u)!==-1&&l===ga||VA.indexOf(l)!==-1&&u===ga||l===xl&&[bl,pu,mu].indexOf(u)!==-1||[bl,pu,mu].indexOf(l)!==-1&&u===Bl||VA.indexOf(l)!==-1&&g2.indexOf(u)!==-1||g2.indexOf(l)!==-1&&VA.indexOf(u)!==-1||[xl,Bl].indexOf(l)!==-1&&(u===ga||[wl,yl].indexOf(u)!==-1&&e[s+1]===ga)||[wl,yl].indexOf(l)!==-1&&u===ga||l===ga&&[ga,Yo,qo].indexOf(u)!==-1)return Ht;if([ga,Yo,qo,gu,vl].indexOf(u)!==-1)for(var p=A;p>=0;){var h=e[p];if(h===ga)return Ht;if([Yo,qo].indexOf(h)!==-1)p--;else break}if([xl,Bl].indexOf(u)!==-1)for(var p=[gu,vl].indexOf(l)!==-1?o:A;p>=0;){var h=e[p];if(h===ga)return Ht;if([Yo,qo].indexOf(h)!==-1)p--;else break}if(X0===l&&[X0,yu,G0,j0].indexOf(u)!==-1||[yu,G0].indexOf(l)!==-1&&[yu,vu].indexOf(u)!==-1||[vu,j0].indexOf(l)!==-1&&u===vu||p2.indexOf(l)!==-1&&[u2,Bl].indexOf(u)!==-1||p2.indexOf(u)!==-1&&l===xl||VA.indexOf(l)!==-1&&VA.indexOf(u)!==-1||l===qo&&VA.indexOf(u)!==-1||VA.concat(ga).indexOf(l)!==-1&&u===wl&&i_.indexOf(t[s])===-1||VA.concat(ga).indexOf(u)!==-1&&l===vl)return Ht;if(l===q0&&u===q0){for(var d=r[A],w=1;d>0&&(d--,e[d]===q0);)w++;if(w%2!==0)return Ht}return l===pu&&u===mu?Ht:wu},u_=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var r=l_(t,e.lineBreak),n=r[0],a=r[1],A=r[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(a=a.map(function(s){return[ga,so,h2].indexOf(s)!==-1?bl:s}));var o=e.wordBreak==="keep-all"?A.map(function(s,l){return s&&t[l]>=19968&&t[l]<=40959}):void 0;return[n,a,o]},h_=function(){function t(e,r,n,a){this.codePoints=e,this.required=r===f2,this.start=n,this.end=a}return t.prototype.slice=function(){return Or.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),f_=function(t,e){var r=uu(t),n=u_(r,e),a=n[0],A=n[1],o=n[2],s=r.length,l=0,c=0;return{next:function(){if(c>=s)return{done:!0,value:null};for(var u=Ht;c<s&&(u=c_(r,A,a,++c,o))===Ht;);if(u!==Ht||c===s){var p=new h_(r,u,l,c);return l=c,{value:p,done:!1}}return{done:!0,value:null}}}},d_=1,g_=2,Cl=4,y2=8,Bu=10,v2=47,El=92,p_=9,m_=32,xu=34,_l=61,y_=35,v_=36,w_=37,bu=39,Cu=40,Fl=41,B_=95,ta=45,x_=33,b_=60,C_=62,E_=64,__=91,F_=93,S_=61,k_=123,Eu=63,T_=125,w2=124,N_=126,L_=128,B2=65533,ed=42,lo=43,U_=44,I_=58,D_=59,Sl=46,Q_=0,O_=8,P_=11,M_=14,R_=31,H_=127,wA=-1,x2=48,b2=97,C2=101,V_=102,$_=117,z_=122,E2=65,_2=69,F2=70,K_=85,G_=90,Tn=function(t){return t>=x2&&t<=57},j_=function(t){return t>=55296&&t<=57343},Jo=function(t){return Tn(t)||t>=E2&&t<=F2||t>=b2&&t<=V_},W_=function(t){return t>=b2&&t<=z_},X_=function(t){return t>=E2&&t<=G_},q_=function(t){return W_(t)||X_(t)},Y_=function(t){return t>=L_},_u=function(t){return t===Bu||t===p_||t===m_},Fu=function(t){return q_(t)||Y_(t)||t===B_},S2=function(t){return Fu(t)||Tn(t)||t===ta},J_=function(t){return t>=Q_&&t<=O_||t===P_||t>=M_&&t<=R_||t===H_},wi=function(t,e){return t!==El?!1:e!==Bu},Su=function(t,e,r){return t===ta?Fu(e)||wi(e,r):Fu(t)?!0:!!(t===El&&wi(t,e))},td=function(t,e,r){return t===lo||t===ta?Tn(e)?!0:e===Sl&&Tn(r):Tn(t===Sl?e:t)},Z_=function(t){var e=0,r=1;(t[e]===lo||t[e]===ta)&&(t[e]===ta&&(r=-1),e++);for(var n=[];Tn(t[e]);)n.push(t[e++]);var a=n.length?parseInt(Or.apply(void 0,n),10):0;t[e]===Sl&&e++;for(var A=[];Tn(t[e]);)A.push(t[e++]);var o=A.length,s=o?parseInt(Or.apply(void 0,A),10):0;(t[e]===_2||t[e]===C2)&&e++;var l=1;(t[e]===lo||t[e]===ta)&&(t[e]===ta&&(l=-1),e++);for(var c=[];Tn(t[e]);)c.push(t[e++]);var u=c.length?parseInt(Or.apply(void 0,c),10):0;return r*(a+s*Math.pow(10,-o))*Math.pow(10,l*u)},e3={type:2},t3={type:3},r3={type:4},n3={type:13},a3={type:8},A3={type:21},i3={type:9},o3={type:10},s3={type:11},l3={type:12},c3={type:14},ku={type:23},u3={type:1},h3={type:25},f3={type:24},d3={type:26},g3={type:27},p3={type:28},m3={type:29},y3={type:31},rd={type:32},k2=function(){function t(){this._value=[]}return t.prototype.write=function(e){this._value=this._value.concat(uu(e))},t.prototype.read=function(){for(var e=[],r=this.consumeToken();r!==rd;)e.push(r),r=this.consumeToken();return e},t.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case xu:return this.consumeStringToken(xu);case y_:var r=this.peekCodePoint(0),n=this.peekCodePoint(1),a=this.peekCodePoint(2);if(S2(r)||wi(n,a)){var A=Su(r,n,a)?g_:d_,o=this.consumeName();return{type:5,value:o,flags:A}}break;case v_:if(this.peekCodePoint(0)===_l)return this.consumeCodePoint(),n3;break;case bu:return this.consumeStringToken(bu);case Cu:return e3;case Fl:return t3;case ed:if(this.peekCodePoint(0)===_l)return this.consumeCodePoint(),c3;break;case lo:if(td(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case U_:return r3;case ta:var s=e,l=this.peekCodePoint(0),c=this.peekCodePoint(1);if(td(s,l,c))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(Su(s,l,c))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(l===ta&&c===C_)return this.consumeCodePoint(),this.consumeCodePoint(),f3;break;case Sl:if(td(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case v2:if(this.peekCodePoint(0)===ed)for(this.consumeCodePoint();;){var u=this.consumeCodePoint();if(u===ed&&(u=this.consumeCodePoint(),u===v2))return this.consumeToken();if(u===wA)return this.consumeToken()}break;case I_:return d3;case D_:return g3;case b_:if(this.peekCodePoint(0)===x_&&this.peekCodePoint(1)===ta&&this.peekCodePoint(2)===ta)return this.consumeCodePoint(),this.consumeCodePoint(),h3;break;case E_:var p=this.peekCodePoint(0),h=this.peekCodePoint(1),d=this.peekCodePoint(2);if(Su(p,h,d)){var o=this.consumeName();return{type:7,value:o}}break;case __:return p3;case El:if(wi(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case F_:return m3;case S_:if(this.peekCodePoint(0)===_l)return this.consumeCodePoint(),a3;break;case k_:return s3;case T_:return l3;case $_:case K_:var w=this.peekCodePoint(0),f=this.peekCodePoint(1);return w===lo&&(Jo(f)||f===Eu)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case w2:if(this.peekCodePoint(0)===_l)return this.consumeCodePoint(),i3;if(this.peekCodePoint(0)===w2)return this.consumeCodePoint(),A3;break;case N_:if(this.peekCodePoint(0)===_l)return this.consumeCodePoint(),o3;break;case wA:return rd}return _u(e)?(this.consumeWhiteSpace(),y3):Tn(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):Fu(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:Or(e)}},t.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},t.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},t.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},t.prototype.consumeUnicodeRangeToken=function(){for(var e=[],r=this.consumeCodePoint();Jo(r)&&e.length<6;)e.push(r),r=this.consumeCodePoint();for(var n=!1;r===Eu&&e.length<6;)e.push(r),r=this.consumeCodePoint(),n=!0;if(n){var a=parseInt(Or.apply(void 0,e.map(function(l){return l===Eu?x2:l})),16),A=parseInt(Or.apply(void 0,e.map(function(l){return l===Eu?F2:l})),16);return{type:30,start:a,end:A}}var o=parseInt(Or.apply(void 0,e),16);if(this.peekCodePoint(0)===ta&&Jo(this.peekCodePoint(1))){this.consumeCodePoint(),r=this.consumeCodePoint();for(var s=[];Jo(r)&&s.length<6;)s.push(r),r=this.consumeCodePoint();var A=parseInt(Or.apply(void 0,s),16);return{type:30,start:o,end:A}}else return{type:30,start:o,end:o}},t.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===Cu?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Cu?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},t.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===wA)return{type:22,value:""};var r=this.peekCodePoint(0);if(r===bu||r===xu){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===wA||this.peekCodePoint(0)===Fl)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),ku)}for(;;){var a=this.consumeCodePoint();if(a===wA||a===Fl)return{type:22,value:Or.apply(void 0,e)};if(_u(a))return this.consumeWhiteSpace(),this.peekCodePoint(0)===wA||this.peekCodePoint(0)===Fl?(this.consumeCodePoint(),{type:22,value:Or.apply(void 0,e)}):(this.consumeBadUrlRemnants(),ku);if(a===xu||a===bu||a===Cu||J_(a))return this.consumeBadUrlRemnants(),ku;if(a===El)if(wi(a,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),ku;else e.push(a)}},t.prototype.consumeWhiteSpace=function(){for(;_u(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===Fl||e===wA)return;wi(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(e){for(var r=5e4,n="";e>0;){var a=Math.min(r,e);n+=Or.apply(void 0,this._value.splice(0,a)),e-=a}return this._value.shift(),n},t.prototype.consumeStringToken=function(e){var r="",n=0;do{var a=this._value[n];if(a===wA||a===void 0||a===e)return r+=this.consumeStringSlice(n),{type:0,value:r};if(a===Bu)return this._value.splice(0,n),u3;if(a===El){var A=this._value[n+1];A!==wA&&A!==void 0&&(A===Bu?(r+=this.consumeStringSlice(n),n=-1,this._value.shift()):wi(a,A)&&(r+=this.consumeStringSlice(n),r+=Or(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},t.prototype.consumeNumber=function(){var e=[],r=Cl,n=this.peekCodePoint(0);for((n===lo||n===ta)&&e.push(this.consumeCodePoint());Tn(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var a=this.peekCodePoint(1);if(n===Sl&&Tn(a))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),r=y2;Tn(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),a=this.peekCodePoint(1);var A=this.peekCodePoint(2);if((n===_2||n===C2)&&((a===lo||a===ta)&&Tn(A)||Tn(a)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),r=y2;Tn(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[Z_(e),r]},t.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),r=e[0],n=e[1],a=this.peekCodePoint(0),A=this.peekCodePoint(1),o=this.peekCodePoint(2);if(Su(a,A,o)){var s=this.consumeName();return{type:15,number:r,flags:n,unit:s}}return a===w_?(this.consumeCodePoint(),{type:16,number:r,flags:n}):{type:17,number:r,flags:n}},t.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(Jo(e)){for(var r=Or(e);Jo(this.peekCodePoint(0))&&r.length<6;)r+=Or(this.consumeCodePoint());_u(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(r,16);return n===0||j_(n)||n>1114111?B2:n}return e===wA?B2:e},t.prototype.consumeName=function(){for(var e="";;){var r=this.consumeCodePoint();if(S2(r))e+=Or(r);else if(wi(r,this.peekCodePoint(0)))e+=Or(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(r),e}},t}(),T2=function(){function t(e){this._tokens=e}return t.create=function(e){var r=new k2;return r.write(e),new t(r.read())},t.parseValue=function(e){return t.create(e).parseComponentValue()},t.parseValues=function(e){return t.create(e).parseComponentValues()},t.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var r=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return r;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var e=[];;){var r=this.consumeComponentValue();if(r.type===32)return e;e.push(r),e.push()}},t.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},t.prototype.consumeSimpleBlock=function(e){for(var r={type:e,values:[]},n=this.consumeToken();;){if(n.type===32||w3(n,e))return r;this.reconsumeToken(n),r.values.push(this.consumeComponentValue()),n=this.consumeToken()}},t.prototype.consumeFunction=function(e){for(var r={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return r;this.reconsumeToken(n),r.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?rd:e},t.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},t}(),kl=function(t){return t.type===15},Zo=function(t){return t.type===17},lr=function(t){return t.type===20},v3=function(t){return t.type===0},nd=function(t,e){return lr(t)&&t.value===e},N2=function(t){return t.type!==31},es=function(t){return t.type!==31&&t.type!==4},BA=function(t){var e=[],r=[];return t.forEach(function(n){if(n.type===4){if(r.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(r),r=[];return}n.type!==31&&r.push(n)}),r.length&&e.push(r),e},w3=function(t,e){return e===11&&t.type===12||e===28&&t.type===29?!0:e===2&&t.type===3},Bi=function(t){return t.type===17||t.type===15},jr=function(t){return t.type===16||Bi(t)},L2=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},yn={type:17,number:0,flags:Cl},ad={type:16,number:50,flags:Cl},xi={type:16,number:100,flags:Cl},Tl=function(t,e,r){var n=t[0],a=t[1];return[gr(n,e),gr(typeof a<"u"?a:n,r)]},gr=function(t,e){if(t.type===16)return t.number/100*e;if(kl(t))switch(t.unit){case"rem":case"em":return 16*t.number;case"px":default:return t.number}return t.number},U2="deg",I2="grad",D2="rad",Q2="turn",Tu={name:"angle",parse:function(t,e){if(e.type===15)switch(e.unit){case U2:return Math.PI*e.number/180;case I2:return Math.PI/200*e.number;case D2:return e.number;case Q2:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},O2=function(t){return t.type===15&&(t.unit===U2||t.unit===I2||t.unit===D2||t.unit===Q2)},P2=function(t){var e=t.filter(lr).map(function(r){return r.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[yn,yn];case"to top":case"bottom":return ka(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[yn,xi];case"to right":case"left":return ka(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[xi,xi];case"to bottom":case"top":return ka(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[xi,yn];case"to left":case"right":return ka(270)}return 0},ka=function(t){return Math.PI*t/180},bi={name:"color",parse:function(t,e){if(e.type===18){var r=B3[e.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return r(t,e.values)}if(e.type===5){if(e.value.length===3){var n=e.value.substring(0,1),a=e.value.substring(1,2),A=e.value.substring(2,3);return Ei(parseInt(n+n,16),parseInt(a+a,16),parseInt(A+A,16),1)}if(e.value.length===4){var n=e.value.substring(0,1),a=e.value.substring(1,2),A=e.value.substring(2,3),o=e.value.substring(3,4);return Ei(parseInt(n+n,16),parseInt(a+a,16),parseInt(A+A,16),parseInt(o+o,16)/255)}if(e.value.length===6){var n=e.value.substring(0,2),a=e.value.substring(2,4),A=e.value.substring(4,6);return Ei(parseInt(n,16),parseInt(a,16),parseInt(A,16),1)}if(e.value.length===8){var n=e.value.substring(0,2),a=e.value.substring(2,4),A=e.value.substring(4,6),o=e.value.substring(6,8);return Ei(parseInt(n,16),parseInt(a,16),parseInt(A,16),parseInt(o,16)/255)}}if(e.type===20){var s=$A[e.value.toUpperCase()];if(typeof s<"u")return s}return $A.TRANSPARENT}},Ci=function(t){return(255&t)===0},ln=function(t){var e=255&t,r=255&t>>8,n=255&t>>16,a=255&t>>24;return e<255?"rgba("+a+","+n+","+r+","+e/255+")":"rgb("+a+","+n+","+r+")"},Ei=function(t,e,r,n){return(t<<24|e<<16|r<<8|Math.round(n*255)<<0)>>>0},M2=function(t,e){if(t.type===17)return t.number;if(t.type===16){var r=e===3?1:255;return e===3?t.number/100*r:Math.round(t.number/100*r)}return 0},R2=function(t,e){var r=e.filter(es);if(r.length===3){var n=r.map(M2),a=n[0],A=n[1],o=n[2];return Ei(a,A,o,1)}if(r.length===4){var s=r.map(M2),a=s[0],A=s[1],o=s[2],l=s[3];return Ei(a,A,o,l)}return 0};function Ad(t,e,r){return r<0&&(r+=1),r>=1&&(r-=1),r<1/6?(e-t)*r*6+t:r<1/2?e:r<2/3?(e-t)*6*(2/3-r)+t:t}var H2=function(t,e){var r=e.filter(es),n=r[0],a=r[1],A=r[2],o=r[3],s=(n.type===17?ka(n.number):Tu.parse(t,n))/(Math.PI*2),l=jr(a)?a.number/100:0,c=jr(A)?A.number/100:0,u=typeof o<"u"&&jr(o)?gr(o,1):1;if(l===0)return Ei(c*255,c*255,c*255,1);var p=c<=.5?c*(l+1):c+l-c*l,h=c*2-p,d=Ad(h,p,s+1/3),w=Ad(h,p,s),f=Ad(h,p,s-1/3);return Ei(d*255,w*255,f*255,u)},B3={hsl:H2,hsla:H2,rgb:R2,rgba:R2},Nl=function(t,e){return bi.parse(t,T2.create(e).parseComponentValue())},$A={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},x3={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(r){if(lr(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},b3={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Nu=function(t,e){var r=bi.parse(t,e[0]),n=e[1];return n&&jr(n)?{color:r,stop:n}:{color:r,stop:null}},V2=function(t,e){var r=t[0],n=t[t.length-1];r.stop===null&&(r.stop=yn),n.stop===null&&(n.stop=xi);for(var a=[],A=0,o=0;o<t.length;o++){var s=t[o].stop;if(s!==null){var l=gr(s,e);l>A?a.push(l):a.push(A),A=l}else a.push(null)}for(var c=null,o=0;o<a.length;o++){var u=a[o];if(u===null)c===null&&(c=o);else if(c!==null){for(var p=o-c,h=a[c-1],d=(u-h)/(p+1),w=1;w<=p;w++)a[c+w-1]=d*w;c=null}}return t.map(function(f,m){var y=f.color;return{color:y,stop:Math.max(Math.min(1,a[m]/e),0)}})},C3=function(t,e,r){var n=e/2,a=r/2,A=gr(t[0],e)-n,o=a-gr(t[1],r);return(Math.atan2(o,A)+Math.PI*2)%(Math.PI*2)},E3=function(t,e,r){var n=typeof t=="number"?t:C3(t,e,r),a=Math.abs(e*Math.sin(n))+Math.abs(r*Math.cos(n)),A=e/2,o=r/2,s=a/2,l=Math.sin(n-Math.PI/2)*s,c=Math.cos(n-Math.PI/2)*s;return[a,A-c,A+c,o-l,o+l]},za=function(t,e){return Math.sqrt(t*t+e*e)},$2=function(t,e,r,n,a){var A=[[0,0],[0,e],[t,0],[t,e]];return A.reduce(function(o,s){var l=s[0],c=s[1],u=za(r-l,n-c);return(a?u<o.optimumDistance:u>o.optimumDistance)?{optimumCorner:s,optimumDistance:u}:o},{optimumDistance:a?1/0:-1/0,optimumCorner:null}).optimumCorner},_3=function(t,e,r,n,a){var A=0,o=0;switch(t.size){case 0:t.shape===0?A=o=Math.min(Math.abs(e),Math.abs(e-n),Math.abs(r),Math.abs(r-a)):t.shape===1&&(A=Math.min(Math.abs(e),Math.abs(e-n)),o=Math.min(Math.abs(r),Math.abs(r-a)));break;case 2:if(t.shape===0)A=o=Math.min(za(e,r),za(e,r-a),za(e-n,r),za(e-n,r-a));else if(t.shape===1){var s=Math.min(Math.abs(r),Math.abs(r-a))/Math.min(Math.abs(e),Math.abs(e-n)),l=$2(n,a,e,r,!0),c=l[0],u=l[1];A=za(c-e,(u-r)/s),o=s*A}break;case 1:t.shape===0?A=o=Math.max(Math.abs(e),Math.abs(e-n),Math.abs(r),Math.abs(r-a)):t.shape===1&&(A=Math.max(Math.abs(e),Math.abs(e-n)),o=Math.max(Math.abs(r),Math.abs(r-a)));break;case 3:if(t.shape===0)A=o=Math.max(za(e,r),za(e,r-a),za(e-n,r),za(e-n,r-a));else if(t.shape===1){var s=Math.max(Math.abs(r),Math.abs(r-a))/Math.max(Math.abs(e),Math.abs(e-n)),p=$2(n,a,e,r,!1),c=p[0],u=p[1];A=za(c-e,(u-r)/s),o=s*A}break}return Array.isArray(t.size)&&(A=gr(t.size[0],n),o=t.size.length===2?gr(t.size[1],a):A),[A,o]},F3=function(t,e){var r=ka(180),n=[];return BA(e).forEach(function(a,A){if(A===0){var o=a[0];if(o.type===20&&o.value==="to"){r=P2(a);return}else if(O2(o)){r=Tu.parse(t,o);return}}var s=Nu(t,a);n.push(s)}),{angle:r,stops:n,type:1}},Lu=function(t,e){var r=ka(180),n=[];return BA(e).forEach(function(a,A){if(A===0){var o=a[0];if(o.type===20&&["top","left","right","bottom"].indexOf(o.value)!==-1){r=P2(a);return}else if(O2(o)){r=(Tu.parse(t,o)+ka(270))%ka(360);return}}var s=Nu(t,a);n.push(s)}),{angle:r,stops:n,type:1}},S3=function(t,e){var r=ka(180),n=[],a=1,A=0,o=3,s=[];return BA(e).forEach(function(l,c){var u=l[0];if(c===0){if(lr(u)&&u.value==="linear"){a=1;return}else if(lr(u)&&u.value==="radial"){a=2;return}}if(u.type===18){if(u.name==="from"){var p=bi.parse(t,u.values[0]);n.push({stop:yn,color:p})}else if(u.name==="to"){var p=bi.parse(t,u.values[0]);n.push({stop:xi,color:p})}else if(u.name==="color-stop"){var h=u.values.filter(es);if(h.length===2){var p=bi.parse(t,h[1]),d=h[0];Zo(d)&&n.push({stop:{type:16,number:d.number*100,flags:d.flags},color:p})}}}}),a===1?{angle:(r+ka(180))%ka(360),stops:n,type:a}:{size:o,shape:A,stops:n,position:s,type:a}},z2="closest-side",K2="farthest-side",G2="closest-corner",j2="farthest-corner",W2="circle",X2="ellipse",q2="cover",Y2="contain",k3=function(t,e){var r=0,n=3,a=[],A=[];return BA(e).forEach(function(o,s){var l=!0;if(s===0){var c=!1;l=o.reduce(function(p,h){if(c)if(lr(h))switch(h.value){case"center":return A.push(ad),p;case"top":case"left":return A.push(yn),p;case"right":case"bottom":return A.push(xi),p}else(jr(h)||Bi(h))&&A.push(h);else if(lr(h))switch(h.value){case W2:return r=0,!1;case X2:return r=1,!1;case"at":return c=!0,!1;case z2:return n=0,!1;case q2:case K2:return n=1,!1;case Y2:case G2:return n=2,!1;case j2:return n=3,!1}else if(Bi(h)||jr(h))return Array.isArray(n)||(n=[]),n.push(h),!1;return p},l)}if(l){var u=Nu(t,o);a.push(u)}}),{size:n,shape:r,stops:a,position:A,type:2}},Uu=function(t,e){var r=0,n=3,a=[],A=[];return BA(e).forEach(function(o,s){var l=!0;if(s===0?l=o.reduce(function(u,p){if(lr(p))switch(p.value){case"center":return A.push(ad),!1;case"top":case"left":return A.push(yn),!1;case"right":case"bottom":return A.push(xi),!1}else if(jr(p)||Bi(p))return A.push(p),!1;return u},l):s===1&&(l=o.reduce(function(u,p){if(lr(p))switch(p.value){case W2:return r=0,!1;case X2:return r=1,!1;case Y2:case z2:return n=0,!1;case K2:return n=1,!1;case G2:return n=2,!1;case q2:case j2:return n=3,!1}else if(Bi(p)||jr(p))return Array.isArray(n)||(n=[]),n.push(p),!1;return u},l)),l){var c=Nu(t,o);a.push(c)}}),{size:n,shape:r,stops:a,position:A,type:2}},T3=function(t){return t.type===1},N3=function(t){return t.type===2},id={name:"image",parse:function(t,e){if(e.type===22){var r={url:e.value,type:0};return t.cache.addImage(e.value),r}if(e.type===18){var n=J2[e.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return n(t,e.values)}throw new Error("Unsupported image type "+e.type)}};function L3(t){return!(t.type===20&&t.value==="none")&&(t.type!==18||!!J2[t.name])}var J2={"linear-gradient":F3,"-moz-linear-gradient":Lu,"-ms-linear-gradient":Lu,"-o-linear-gradient":Lu,"-webkit-linear-gradient":Lu,"radial-gradient":k3,"-moz-radial-gradient":Uu,"-ms-radial-gradient":Uu,"-o-radial-gradient":Uu,"-webkit-radial-gradient":Uu,"-webkit-gradient":S3},U3={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(e.length===0)return[];var r=e[0];return r.type===20&&r.value==="none"?[]:e.filter(function(n){return es(n)&&L3(n)}).map(function(n){return id.parse(t,n)})}},I3={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(r){if(lr(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},D3={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,e){return BA(e).map(function(r){return r.filter(jr)}).map(L2)}},Q3={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,e){return BA(e).map(function(r){return r.filter(lr).map(function(n){return n.value}).join(" ")}).map(O3)}},O3=function(t){switch(t){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},ts;(function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"})(ts||(ts={}));var P3={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,e){return BA(e).map(function(r){return r.filter(M3)})}},M3=function(t){return lr(t)||jr(t)},Iu=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},R3=Iu("top"),H3=Iu("right"),V3=Iu("bottom"),$3=Iu("left"),Du=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(e,r){return L2(r.filter(jr))}}},z3=Du("top-left"),K3=Du("top-right"),G3=Du("bottom-right"),j3=Du("bottom-left"),Qu=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,r){switch(r){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},W3=Qu("top"),X3=Qu("right"),q3=Qu("bottom"),Y3=Qu("left"),Ou=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,r){return kl(r)?r.number:0}}},J3=Ou("top"),Z3=Ou("right"),eF=Ou("bottom"),tF=Ou("left"),rF={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},nF={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},aF={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,e){return e.filter(lr).reduce(function(r,n){return r|AF(n.value)},0)}},AF=function(t){switch(t){case"block":case"-webkit-box":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},iF={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},oF={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(t,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},Pu;(function(t){t.NORMAL="normal",t.STRICT="strict"})(Pu||(Pu={}));var sF={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"strict":return Pu.STRICT;case"normal":default:return Pu.NORMAL}}},lF={name:"line-height",initialValue:"normal",prefix:!1,type:4},Z2=function(t,e){return lr(t)&&t.value==="normal"?1.2*e:t.type===17?e*t.number:jr(t)?gr(t,e):e},cF={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,e){return e.type===20&&e.value==="none"?null:id.parse(t,e)}},uF={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(t,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},od={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Mu=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},hF=Mu("top"),fF=Mu("right"),dF=Mu("bottom"),gF=Mu("left"),pF={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,e){return e.filter(lr).map(function(r){switch(r.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},mF={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},Ru=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},yF=Ru("top"),vF=Ru("right"),wF=Ru("bottom"),BF=Ru("left"),xF={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(t,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},bF={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(t,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},CF={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.length===1&&nd(e[0],"none")?[]:BA(e).map(function(r){for(var n={color:$A.TRANSPARENT,offsetX:yn,offsetY:yn,blur:yn},a=0,A=0;A<r.length;A++){var o=r[A];Bi(o)?(a===0?n.offsetX=o:a===1?n.offsetY=o:n.blur=o,a++):n.color=bi.parse(t,o)}return n})}},EF={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},_F={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(t,e){if(e.type===20&&e.value==="none")return null;if(e.type===18){var r=kF[e.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return r(e.values)}return null}},FF=function(t){var e=t.filter(function(r){return r.type===17}).map(function(r){return r.number});return e.length===6?e:null},SF=function(t){var e=t.filter(function(l){return l.type===17}).map(function(l){return l.number}),r=e[0],n=e[1];e[2],e[3];var a=e[4],A=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var o=e[12],s=e[13];return e[14],e[15],e.length===16?[r,n,a,A,o,s]:null},kF={matrix:FF,matrix3d:SF},ey={type:16,number:50,flags:Cl},TF=[ey,ey],NF={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,e){var r=e.filter(jr);return r.length!==2?TF:[r[0],r[1]]}},LF={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Ll;(function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"})(Ll||(Ll={}));for(var UF={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-all":return Ll.BREAK_ALL;case"keep-all":return Ll.KEEP_ALL;case"normal":default:return Ll.NORMAL}}},IF={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,e){if(e.type===20)return{auto:!0,order:0};if(Zo(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},ty={name:"time",parse:function(t,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},DF={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,e){return Zo(e)?e.number:1}},QF={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},OF={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,e){return e.filter(lr).map(function(r){switch(r.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(r){return r!==0})}},PF={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(t,e){var r=[],n=[];return e.forEach(function(a){switch(a.type){case 20:case 0:r.push(a.value);break;case 17:r.push(a.number.toString());break;case 4:n.push(r.join(" ")),r.length=0;break}}),r.length&&n.push(r.join(" ")),n.map(function(a){return a.indexOf(" ")===-1?a:"'"+a+"'"})}},MF={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},RF={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,e){if(Zo(e))return e.number;if(lr(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},HF={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.filter(lr).map(function(r){return r.value})}},VF={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},nn=function(t,e){return(t&e)!==0},$F={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(e.length===0)return[];var r=e[0];return r.type===20&&r.value==="none"?[]:e}},zF={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return null;var r=e[0];if(r.type===20&&r.value==="none")return null;for(var n=[],a=e.filter(N2),A=0;A<a.length;A++){var o=a[A],s=a[A+1];if(o.type===20){var l=s&&Zo(s)?s.number:1;n.push({counter:o.value,increment:l})}}return n}},KF={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return[];for(var r=[],n=e.filter(N2),a=0;a<n.length;a++){var A=n[a],o=n[a+1];if(lr(A)&&A.value!=="none"){var s=o&&Zo(o)?o.number:0;r.push({counter:A.value,reset:s})}}return r}},GF={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(t,e){return e.filter(kl).map(function(r){return ty.parse(t,r)})}},jF={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return null;var r=e[0];if(r.type===20&&r.value==="none")return null;var n=[],a=e.filter(v3);if(a.length%2!==0)return null;for(var A=0;A<a.length;A+=2){var o=a[A].value,s=a[A+1].value;n.push({open:o,close:s})}return n}},ry=function(t,e,r){if(!t)return"";var n=t[Math.min(e,t.length-1)];return n?r?n.open:n.close:""},WF={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.length===1&&nd(e[0],"none")?[]:BA(e).map(function(r){for(var n={color:255,offsetX:yn,offsetY:yn,blur:yn,spread:yn,inset:!1},a=0,A=0;A<r.length;A++){var o=r[A];nd(o,"inset")?n.inset=!0:Bi(o)?(a===0?n.offsetX=o:a===1?n.offsetY=o:a===2?n.blur=o:n.spread=o,a++):n.color=bi.parse(t,o)}return n})}},XF={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(t,e){var r=[0,1,2],n=[];return e.filter(lr).forEach(function(a){switch(a.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2);break}}),r.forEach(function(a){n.indexOf(a)===-1&&n.push(a)}),n}},qF={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},YF={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return kl(e)?e.number:0}},JF=function(){function t(e,r){var n,a;this.animationDuration=ct(e,GF,r.animationDuration),this.backgroundClip=ct(e,x3,r.backgroundClip),this.backgroundColor=ct(e,b3,r.backgroundColor),this.backgroundImage=ct(e,U3,r.backgroundImage),this.backgroundOrigin=ct(e,I3,r.backgroundOrigin),this.backgroundPosition=ct(e,D3,r.backgroundPosition),this.backgroundRepeat=ct(e,Q3,r.backgroundRepeat),this.backgroundSize=ct(e,P3,r.backgroundSize),this.borderTopColor=ct(e,R3,r.borderTopColor),this.borderRightColor=ct(e,H3,r.borderRightColor),this.borderBottomColor=ct(e,V3,r.borderBottomColor),this.borderLeftColor=ct(e,$3,r.borderLeftColor),this.borderTopLeftRadius=ct(e,z3,r.borderTopLeftRadius),this.borderTopRightRadius=ct(e,K3,r.borderTopRightRadius),this.borderBottomRightRadius=ct(e,G3,r.borderBottomRightRadius),this.borderBottomLeftRadius=ct(e,j3,r.borderBottomLeftRadius),this.borderTopStyle=ct(e,W3,r.borderTopStyle),this.borderRightStyle=ct(e,X3,r.borderRightStyle),this.borderBottomStyle=ct(e,q3,r.borderBottomStyle),this.borderLeftStyle=ct(e,Y3,r.borderLeftStyle),this.borderTopWidth=ct(e,J3,r.borderTopWidth),this.borderRightWidth=ct(e,Z3,r.borderRightWidth),this.borderBottomWidth=ct(e,eF,r.borderBottomWidth),this.borderLeftWidth=ct(e,tF,r.borderLeftWidth),this.boxShadow=ct(e,WF,r.boxShadow),this.color=ct(e,rF,r.color),this.direction=ct(e,nF,r.direction),this.display=ct(e,aF,r.display),this.float=ct(e,iF,r.cssFloat),this.fontFamily=ct(e,PF,r.fontFamily),this.fontSize=ct(e,MF,r.fontSize),this.fontStyle=ct(e,VF,r.fontStyle),this.fontVariant=ct(e,HF,r.fontVariant),this.fontWeight=ct(e,RF,r.fontWeight),this.letterSpacing=ct(e,oF,r.letterSpacing),this.lineBreak=ct(e,sF,r.lineBreak),this.lineHeight=ct(e,lF,r.lineHeight),this.listStyleImage=ct(e,cF,r.listStyleImage),this.listStylePosition=ct(e,uF,r.listStylePosition),this.listStyleType=ct(e,od,r.listStyleType),this.marginTop=ct(e,hF,r.marginTop),this.marginRight=ct(e,fF,r.marginRight),this.marginBottom=ct(e,dF,r.marginBottom),this.marginLeft=ct(e,gF,r.marginLeft),this.opacity=ct(e,DF,r.opacity);var A=ct(e,pF,r.overflow);this.overflowX=A[0],this.overflowY=A[A.length>1?1:0],this.overflowWrap=ct(e,mF,r.overflowWrap),this.paddingTop=ct(e,yF,r.paddingTop),this.paddingRight=ct(e,vF,r.paddingRight),this.paddingBottom=ct(e,wF,r.paddingBottom),this.paddingLeft=ct(e,BF,r.paddingLeft),this.paintOrder=ct(e,XF,r.paintOrder),this.position=ct(e,bF,r.position),this.textAlign=ct(e,xF,r.textAlign),this.textDecorationColor=ct(e,QF,(n=r.textDecorationColor)!==null&&n!==void 0?n:r.color),this.textDecorationLine=ct(e,OF,(a=r.textDecorationLine)!==null&&a!==void 0?a:r.textDecoration),this.textShadow=ct(e,CF,r.textShadow),this.textTransform=ct(e,EF,r.textTransform),this.transform=ct(e,_F,r.transform),this.transformOrigin=ct(e,NF,r.transformOrigin),this.visibility=ct(e,LF,r.visibility),this.webkitTextStrokeColor=ct(e,qF,r.webkitTextStrokeColor),this.webkitTextStrokeWidth=ct(e,YF,r.webkitTextStrokeWidth),this.wordBreak=ct(e,UF,r.wordBreak),this.zIndex=ct(e,IF,r.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},t.prototype.isTransparent=function(){return Ci(this.backgroundColor)},t.prototype.isTransformed=function(){return this.transform!==null},t.prototype.isPositioned=function(){return this.position!==0},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return this.float!==0},t.prototype.isInlineLevel=function(){return nn(this.display,4)||nn(this.display,33554432)||nn(this.display,268435456)||nn(this.display,536870912)||nn(this.display,67108864)||nn(this.display,134217728)},t}(),ZF=function(){function t(e,r){this.content=ct(e,$F,r.content),this.quotes=ct(e,jF,r.quotes)}return t}(),ny=function(){function t(e,r){this.counterIncrement=ct(e,zF,r.counterIncrement),this.counterReset=ct(e,KF,r.counterReset)}return t}(),ct=function(t,e,r){var n=new k2,a=r!==null&&typeof r<"u"?r.toString():e.initialValue;n.write(a);var A=new T2(n.read());switch(e.type){case 2:var o=A.parseComponentValue();return e.parse(t,lr(o)?o.value:e.initialValue);case 0:return e.parse(t,A.parseComponentValue());case 1:return e.parse(t,A.parseComponentValues());case 4:return A.parseComponentValue();case 3:switch(e.format){case"angle":return Tu.parse(t,A.parseComponentValue());case"color":return bi.parse(t,A.parseComponentValue());case"image":return id.parse(t,A.parseComponentValue());case"length":var s=A.parseComponentValue();return Bi(s)?s:yn;case"length-percentage":var l=A.parseComponentValue();return jr(l)?l:yn;case"time":return ty.parse(t,A.parseComponentValue())}break}},eS="data-html2canvas-debug",tS=function(t){var e=t.getAttribute(eS);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},sd=function(t,e){var r=tS(t);return r===1||e===r},xA=function(){function t(e,r){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,sd(r,3))debugger;this.styles=new JF(e,window.getComputedStyle(r,null)),xd(r)&&(this.styles.animationDuration.some(function(n){return n>0})&&(r.style.animationDuration="0s"),this.styles.transform!==null&&(r.style.transform="none")),this.bounds=cu(this.context,r),sd(r,4)&&(this.flags|=16)}return t}(),rS="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",ay="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ul=typeof Uint8Array>"u"?[]:new Uint8Array(256),Hu=0;Hu<ay.length;Hu++)Ul[ay.charCodeAt(Hu)]=Hu;for(var nS=function(t){var e=t.length*.75,r=t.length,n,a=0,A,o,s,l;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),u=Array.isArray(c)?c:new Uint8Array(c);for(n=0;n<r;n+=4)A=Ul[t.charCodeAt(n)],o=Ul[t.charCodeAt(n+1)],s=Ul[t.charCodeAt(n+2)],l=Ul[t.charCodeAt(n+3)],u[a++]=A<<2|o>>4,u[a++]=(o&15)<<4|s>>2,u[a++]=(s&3)<<6|l&63;return c},aS=function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r.push(t[n+1]<<8|t[n]);return r},AS=function(t){for(var e=t.length,r=[],n=0;n<e;n+=4)r.push(t[n+3]<<24|t[n+2]<<16|t[n+1]<<8|t[n]);return r},co=5,ld=6+5,cd=2,iS=ld-co,Ay=65536>>co,oS=1<<co,ud=oS-1,sS=1024>>co,lS=Ay+sS,cS=lS,uS=32,hS=cS+uS,fS=65536>>ld,dS=1<<iS,gS=dS-1,iy=function(t,e,r){return t.slice?t.slice(e,r):new Uint16Array(Array.prototype.slice.call(t,e,r))},pS=function(t,e,r){return t.slice?t.slice(e,r):new Uint32Array(Array.prototype.slice.call(t,e,r))},mS=function(t,e){var r=nS(t),n=Array.isArray(r)?AS(r):new Uint32Array(r),a=Array.isArray(r)?aS(r):new Uint16Array(r),A=24,o=iy(a,A/2,n[4]/2),s=n[5]===2?iy(a,(A+n[4])/2):pS(n,Math.ceil((A+n[4])/4));return new yS(n[0],n[1],n[2],n[3],o,s)},yS=function(){function t(e,r,n,a,A,o){this.initialValue=e,this.errorValue=r,this.highStart=n,this.highValueIndex=a,this.index=A,this.data=o}return t.prototype.get=function(e){var r;if(e>=0){if(e<55296||e>56319&&e<=65535)return r=this.index[e>>co],r=(r<<cd)+(e&ud),this.data[r];if(e<=65535)return r=this.index[Ay+(e-55296>>co)],r=(r<<cd)+(e&ud),this.data[r];if(e<this.highStart)return r=hS-fS+(e>>ld),r=this.index[r],r+=e>>co&gS,r=this.index[r],r=(r<<cd)+(e&ud),this.data[r];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),oy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vS=typeof Uint8Array>"u"?[]:new Uint8Array(256),Vu=0;Vu<oy.length;Vu++)vS[oy.charCodeAt(Vu)]=Vu;var wS=1,hd=2,fd=3,sy=4,ly=5,BS=7,cy=8,dd=9,gd=10,uy=11,hy=12,fy=13,dy=14,pd=15,xS=function(t){for(var e=[],r=0,n=t.length;r<n;){var a=t.charCodeAt(r++);if(a>=55296&&a<=56319&&r<n){var A=t.charCodeAt(r++);(A&64512)===56320?e.push(((a&1023)<<10)+(A&1023)+65536):(e.push(a),r--)}else e.push(a)}return e},bS=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var r=t.length;if(!r)return"";for(var n=[],a=-1,A="";++a<r;){var o=t[a];o<=65535?n.push(o):(o-=65536,n.push((o>>10)+55296,o%1024+56320)),(a+1===r||n.length>16384)&&(A+=String.fromCharCode.apply(String,n),n.length=0)}return A},CS=mS(rS),Ta="×",md="÷",ES=function(t){return CS.get(t)},_S=function(t,e,r){var n=r-2,a=e[n],A=e[r-1],o=e[r];if(A===hd&&o===fd)return Ta;if(A===hd||A===fd||A===sy||o===hd||o===fd||o===sy)return md;if(A===cy&&[cy,dd,uy,hy].indexOf(o)!==-1||(A===uy||A===dd)&&(o===dd||o===gd)||(A===hy||A===gd)&&o===gd||o===fy||o===ly||o===BS||A===wS)return Ta;if(A===fy&&o===dy){for(;a===ly;)a=e[--n];if(a===dy)return Ta}if(A===pd&&o===pd){for(var s=0;a===pd;)s++,a=e[--n];if(s%2===0)return Ta}return md},FS=function(t){var e=xS(t),r=e.length,n=0,a=0,A=e.map(ES);return{next:function(){if(n>=r)return{done:!0,value:null};for(var o=Ta;n<r&&(o=_S(e,A,++n))===Ta;);if(o!==Ta||n===r){var s=bS.apply(null,e.slice(a,n));return a=n,{value:s,done:!1}}return{done:!0,value:null}}}},SS=function(t){for(var e=FS(t),r=[],n;!(n=e.next()).done;)n.value&&r.push(n.value.slice());return r},kS=function(t){var e=123;if(t.createRange){var r=t.createRange();if(r.getBoundingClientRect){var n=t.createElement("boundtest");n.style.height=e+"px",n.style.display="block",t.body.appendChild(n),r.selectNode(n);var a=r.getBoundingClientRect(),A=Math.round(a.height);if(t.body.removeChild(n),A===e)return!0}}return!1},TS=function(t){var e=t.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",t.body.appendChild(e);var r=t.createRange();e.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var n=e.firstChild,a=uu(n.data).map(function(l){return Or(l)}),A=0,o={},s=a.every(function(l,c){r.setStart(n,A),r.setEnd(n,A+l.length);var u=r.getBoundingClientRect();A+=l.length;var p=u.x>o.x||u.y>o.y;return o=u,c===0?!0:p});return t.body.removeChild(e),s},NS=function(){return typeof new Image().crossOrigin<"u"},LS=function(){return typeof new XMLHttpRequest().responseType=="string"},US=function(t){var e=new Image,r=t.createElement("canvas"),n=r.getContext("2d");if(!n)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(e,0,0),r.toDataURL()}catch{return!1}return!0},gy=function(t){return t[0]===0&&t[1]===255&&t[2]===0&&t[3]===255},IS=function(t){var e=t.createElement("canvas"),r=100;e.width=r,e.height=r;var n=e.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,r,r);var a=new Image,A=e.toDataURL();a.src=A;var o=yd(r,r,0,0,a);return n.fillStyle="red",n.fillRect(0,0,r,r),py(o).then(function(s){n.drawImage(s,0,0);var l=n.getImageData(0,0,r,r).data;n.fillStyle="red",n.fillRect(0,0,r,r);var c=t.createElement("div");return c.style.backgroundImage="url("+A+")",c.style.height=r+"px",gy(l)?py(yd(r,r,0,0,c)):Promise.reject(!1)}).then(function(s){return n.drawImage(s,0,0),gy(n.getImageData(0,0,r,r).data)}).catch(function(){return!1})},yd=function(t,e,r,n,a){var A="http://www.w3.org/2000/svg",o=document.createElementNS(A,"svg"),s=document.createElementNS(A,"foreignObject");return o.setAttributeNS(null,"width",t.toString()),o.setAttributeNS(null,"height",e.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",r.toString()),s.setAttributeNS(null,"y",n.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(s),s.appendChild(a),o},py=function(t){return new Promise(function(e,r){var n=new Image;n.onload=function(){return e(n)},n.onerror=r,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},vn={get SUPPORT_RANGE_BOUNDS(){var t=kS(document);return Object.defineProperty(vn,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=vn.SUPPORT_RANGE_BOUNDS&&TS(document);return Object.defineProperty(vn,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=US(document);return Object.defineProperty(vn,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t=typeof Array.from=="function"&&typeof window.fetch=="function"?IS(document):Promise.resolve(!1);return Object.defineProperty(vn,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=NS();return Object.defineProperty(vn,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=LS();return Object.defineProperty(vn,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(vn,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(vn,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},Il=function(){function t(e,r){this.text=e,this.bounds=r}return t}(),DS=function(t,e,r,n){var a=PS(e,r),A=[],o=0;return a.forEach(function(s){if(r.textDecorationLine.length||s.trim().length>0)if(vn.SUPPORT_RANGE_BOUNDS){var l=my(n,o,s.length).getClientRects();if(l.length>1){var c=vd(s),u=0;c.forEach(function(h){A.push(new Il(h,HA.fromDOMRectList(t,my(n,u+o,h.length).getClientRects()))),u+=h.length})}else A.push(new Il(s,HA.fromDOMRectList(t,l)))}else{var p=n.splitText(s.length);A.push(new Il(s,QS(t,n))),n=p}else vn.SUPPORT_RANGE_BOUNDS||(n=n.splitText(s.length));o+=s.length}),A},QS=function(t,e){var r=e.ownerDocument;if(r){var n=r.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));var a=e.parentNode;if(a){a.replaceChild(n,e);var A=cu(t,n);return n.firstChild&&a.replaceChild(n.firstChild,n),A}}return HA.EMPTY},my=function(t,e,r){var n=t.ownerDocument;if(!n)throw new Error("Node has no owner document");var a=n.createRange();return a.setStart(t,e),a.setEnd(t,e+r),a},vd=function(t){if(vn.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(t)).map(function(r){return r.segment})}return SS(t)},OS=function(t,e){if(vn.SUPPORT_NATIVE_TEXT_SEGMENTATION){var r=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(r.segment(t)).map(function(n){return n.segment})}return RS(t,e)},PS=function(t,e){return e.letterSpacing!==0?vd(t):OS(t,e)},MS=[32,160,4961,65792,65793,4153,4241],RS=function(t,e){for(var r=f_(t,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),n=[],a,A=function(){if(a.value){var o=a.value.slice(),s=uu(o),l="";s.forEach(function(c){MS.indexOf(c)===-1?l+=Or(c):(l.length&&n.push(l),n.push(Or(c)),l="")}),l.length&&n.push(l)}};!(a=r.next()).done;)A();return n},HS=function(){function t(e,r,n){this.text=VS(r.data,n.textTransform),this.textBounds=DS(e,this.text,n,r)}return t}(),VS=function(t,e){switch(e){case 1:return t.toLowerCase();case 3:return t.replace($S,zS);case 2:return t.toUpperCase();default:return t}},$S=/(^|\s|:|-|\(|\))([a-z])/g,zS=function(t,e,r){return t.length>0?e+r.toUpperCase():t},yy=function(t){$a(e,t);function e(r,n){var a=t.call(this,r,n)||this;return a.src=n.currentSrc||n.src,a.intrinsicWidth=n.naturalWidth,a.intrinsicHeight=n.naturalHeight,a.context.cache.addImage(a.src),a}return e}(xA),vy=function(t){$a(e,t);function e(r,n){var a=t.call(this,r,n)||this;return a.canvas=n,a.intrinsicWidth=n.width,a.intrinsicHeight=n.height,a}return e}(xA),wy=function(t){$a(e,t);function e(r,n){var a=t.call(this,r,n)||this,A=new XMLSerializer,o=cu(r,n);return n.setAttribute("width",o.width+"px"),n.setAttribute("height",o.height+"px"),a.svg="data:image/svg+xml,"+encodeURIComponent(A.serializeToString(n)),a.intrinsicWidth=n.width.baseVal.value,a.intrinsicHeight=n.height.baseVal.value,a.context.cache.addImage(a.svg),a}return e}(xA),By=function(t){$a(e,t);function e(r,n){var a=t.call(this,r,n)||this;return a.value=n.value,a}return e}(xA),wd=function(t){$a(e,t);function e(r,n){var a=t.call(this,r,n)||this;return a.start=n.start,a.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,a}return e}(xA),KS=[{type:15,flags:0,unit:"px",number:3}],GS=[{type:16,flags:0,number:50}],jS=function(t){return t.width>t.height?new HA(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new HA(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t},WS=function(t){var e=t.type===XS?new Array(t.value.length+1).join("•"):t.value;return e.length===0?t.placeholder||"":e},$u="checkbox",zu="radio",XS="password",xy=707406591,Bd=function(t){$a(e,t);function e(r,n){var a=t.call(this,r,n)||this;switch(a.type=n.type.toLowerCase(),a.checked=n.checked,a.value=WS(n),(a.type===$u||a.type===zu)&&(a.styles.backgroundColor=3739148031,a.styles.borderTopColor=a.styles.borderRightColor=a.styles.borderBottomColor=a.styles.borderLeftColor=2779096575,a.styles.borderTopWidth=a.styles.borderRightWidth=a.styles.borderBottomWidth=a.styles.borderLeftWidth=1,a.styles.borderTopStyle=a.styles.borderRightStyle=a.styles.borderBottomStyle=a.styles.borderLeftStyle=1,a.styles.backgroundClip=[0],a.styles.backgroundOrigin=[0],a.bounds=jS(a.bounds)),a.type){case $u:a.styles.borderTopRightRadius=a.styles.borderTopLeftRadius=a.styles.borderBottomRightRadius=a.styles.borderBottomLeftRadius=KS;break;case zu:a.styles.borderTopRightRadius=a.styles.borderTopLeftRadius=a.styles.borderBottomRightRadius=a.styles.borderBottomLeftRadius=GS;break}return a}return e}(xA),by=function(t){$a(e,t);function e(r,n){var a=t.call(this,r,n)||this,A=n.options[n.selectedIndex||0];return a.value=A&&A.text||"",a}return e}(xA),Cy=function(t){$a(e,t);function e(r,n){var a=t.call(this,r,n)||this;return a.value=n.value,a}return e}(xA),Ey=function(t){$a(e,t);function e(r,n){var a=t.call(this,r,n)||this;a.src=n.src,a.width=parseInt(n.width,10)||0,a.height=parseInt(n.height,10)||0,a.backgroundColor=a.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){a.tree=Fy(r,n.contentWindow.document.documentElement);var A=n.contentWindow.document.documentElement?Nl(r,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):$A.TRANSPARENT,o=n.contentWindow.document.body?Nl(r,getComputedStyle(n.contentWindow.document.body).backgroundColor):$A.TRANSPARENT;a.backgroundColor=Ci(A)?Ci(o)?a.styles.backgroundColor:o:A}}catch{}return a}return e}(xA),qS=["OL","UL","MENU"],Ku=function(t,e,r,n){for(var a=e.firstChild,A=void 0;a;a=A)if(A=a.nextSibling,Sy(a)&&a.data.trim().length>0)r.textNodes.push(new HS(t,a,r.styles));else if(rs(a))if(Iy(a)&&a.assignedNodes)a.assignedNodes().forEach(function(s){return Ku(t,s,r,n)});else{var o=_y(t,a);o.styles.isVisible()&&(YS(a,o,n)?o.flags|=4:JS(o.styles)&&(o.flags|=2),qS.indexOf(a.tagName)!==-1&&(o.flags|=8),r.elements.push(o),a.slot,a.shadowRoot?Ku(t,a.shadowRoot,o,n):!ju(a)&&!ky(a)&&!Wu(a)&&Ku(t,a,o,n))}},_y=function(t,e){return Cd(e)?new yy(t,e):Ty(e)?new vy(t,e):ky(e)?new wy(t,e):ZS(e)?new By(t,e):ek(e)?new wd(t,e):tk(e)?new Bd(t,e):Wu(e)?new by(t,e):ju(e)?new Cy(t,e):Ly(e)?new Ey(t,e):new xA(t,e)},Fy=function(t,e){var r=_y(t,e);return r.flags|=4,Ku(t,e,r,r),r},YS=function(t,e,r){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||bd(t)&&r.styles.isTransparent()},JS=function(t){return t.isPositioned()||t.isFloating()},Sy=function(t){return t.nodeType===Node.TEXT_NODE},rs=function(t){return t.nodeType===Node.ELEMENT_NODE},xd=function(t){return rs(t)&&typeof t.style<"u"&&!Gu(t)},Gu=function(t){return typeof t.className=="object"},ZS=function(t){return t.tagName==="LI"},ek=function(t){return t.tagName==="OL"},tk=function(t){return t.tagName==="INPUT"},rk=function(t){return t.tagName==="HTML"},ky=function(t){return t.tagName==="svg"},bd=function(t){return t.tagName==="BODY"},Ty=function(t){return t.tagName==="CANVAS"},Ny=function(t){return t.tagName==="VIDEO"},Cd=function(t){return t.tagName==="IMG"},Ly=function(t){return t.tagName==="IFRAME"},Uy=function(t){return t.tagName==="STYLE"},nk=function(t){return t.tagName==="SCRIPT"},ju=function(t){return t.tagName==="TEXTAREA"},Wu=function(t){return t.tagName==="SELECT"},Iy=function(t){return t.tagName==="SLOT"},Dy=function(t){return t.tagName.indexOf("-")>0},ak=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(e){var r=this.counters[e];return r&&r.length?r[r.length-1]:1},t.prototype.getCounterValues=function(e){var r=this.counters[e];return r||[]},t.prototype.pop=function(e){var r=this;e.forEach(function(n){return r.counters[n].pop()})},t.prototype.parse=function(e){var r=this,n=e.counterIncrement,a=e.counterReset,A=!0;n!==null&&n.forEach(function(s){var l=r.counters[s.counter];l&&s.increment!==0&&(A=!1,l.length||l.push(1),l[Math.max(0,l.length-1)]+=s.increment)});var o=[];return A&&a.forEach(function(s){var l=r.counters[s.counter];o.push(s.counter),l||(l=r.counters[s.counter]=[]),l.push(s.reset)}),o},t}(),Qy={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"]},Oy={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Ak={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},ik={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},ns=function(t,e,r,n,a,A){return t<e||t>r?Ql(t,a,A.length>0):n.integers.reduce(function(o,s,l){for(;t>=s;)t-=s,o+=n.values[l];return o},"")+A},Py=function(t,e,r,n){var a="";do r||t--,a=n(t)+a,t/=e;while(t*e>=e);return a},Pr=function(t,e,r,n,a){var A=r-e+1;return(t<0?"-":"")+(Py(Math.abs(t),A,n,function(o){return Or(Math.floor(o%A)+e)})+a)},uo=function(t,e,r){r===void 0&&(r=". ");var n=e.length;return Py(Math.abs(t),n,!1,function(a){return e[Math.floor(a%n)]})+r},as=1,_i=2,Fi=4,Dl=8,zA=function(t,e,r,n,a,A){if(t<-9999||t>9999)return Ql(t,4,a.length>0);var o=Math.abs(t),s=a;if(o===0)return e[0]+s;for(var l=0;o>0&&l<=4;l++){var c=o%10;c===0&&nn(A,as)&&s!==""?s=e[c]+s:c>1||c===1&&l===0||c===1&&l===1&&nn(A,_i)||c===1&&l===1&&nn(A,Fi)&&t>100||c===1&&l>1&&nn(A,Dl)?s=e[c]+(l>0?r[l-1]:"")+s:c===1&&l>0&&(s=r[l-1]+s),o=Math.floor(o/10)}return(t<0?n:"")+s},My="十百千萬",Ry="拾佰仟萬",Hy="マイナス",Ed="마이너스",Ql=function(t,e,r){var n=r?". ":"",a=r?"、":"",A=r?", ":"",o=r?" ":"";switch(e){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var s=Pr(t,48,57,!0,n);return s.length<4?"0"+s:s;case 4:return uo(t,"〇一二三四五六七八九",a);case 6:return ns(t,1,3999,Qy,3,n).toLowerCase();case 7:return ns(t,1,3999,Qy,3,n);case 8:return Pr(t,945,969,!1,n);case 9:return Pr(t,97,122,!1,n);case 10:return Pr(t,65,90,!1,n);case 11:return Pr(t,1632,1641,!0,n);case 12:case 49:return ns(t,1,9999,Oy,3,n);case 35:return ns(t,1,9999,Oy,3,n).toLowerCase();case 13:return Pr(t,2534,2543,!0,n);case 14:case 30:return Pr(t,6112,6121,!0,n);case 15:return uo(t,"子丑寅卯辰巳午未申酉戌亥",a);case 16:return uo(t,"甲乙丙丁戊己庚辛壬癸",a);case 17:case 48:return zA(t,"零一二三四五六七八九",My,"負",a,_i|Fi|Dl);case 47:return zA(t,"零壹貳參肆伍陸柒捌玖",Ry,"負",a,as|_i|Fi|Dl);case 42:return zA(t,"零一二三四五六七八九",My,"负",a,_i|Fi|Dl);case 41:return zA(t,"零壹贰叁肆伍陆柒捌玖",Ry,"负",a,as|_i|Fi|Dl);case 26:return zA(t,"〇一二三四五六七八九","十百千万",Hy,a,0);case 25:return zA(t,"零壱弐参四伍六七八九","拾百千万",Hy,a,as|_i|Fi);case 31:return zA(t,"영일이삼사오육칠팔구","십백천만",Ed,A,as|_i|Fi);case 33:return zA(t,"零一二三四五六七八九","十百千萬",Ed,A,0);case 32:return zA(t,"零壹貳參四五六七八九","拾百千",Ed,A,as|_i|Fi);case 18:return Pr(t,2406,2415,!0,n);case 20:return ns(t,1,19999,ik,3,n);case 21:return Pr(t,2790,2799,!0,n);case 22:return Pr(t,2662,2671,!0,n);case 22:return ns(t,1,10999,Ak,3,n);case 23:return uo(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return uo(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Pr(t,3302,3311,!0,n);case 28:return uo(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",a);case 29:return uo(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",a);case 34:return Pr(t,3792,3801,!0,n);case 37:return Pr(t,6160,6169,!0,n);case 38:return Pr(t,4160,4169,!0,n);case 39:return Pr(t,2918,2927,!0,n);case 40:return Pr(t,1776,1785,!0,n);case 43:return Pr(t,3046,3055,!0,n);case 44:return Pr(t,3174,3183,!0,n);case 45:return Pr(t,3664,3673,!0,n);case 46:return Pr(t,3872,3881,!0,n);case 3:default:return Pr(t,48,57,!0,n)}},Vy="data-html2canvas-ignore",$y=function(){function t(e,r,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=r,this.counters=new ak,this.quoteDepth=0,!r.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(r.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(e,r){var n=this,a=ok(e,r);if(!a.contentWindow)return Promise.reject("Unable to find iframe window");var A=e.defaultView.pageXOffset,o=e.defaultView.pageYOffset,s=a.contentWindow,l=s.document,c=ck(a).then(function(){return Vn(n,void 0,void 0,function(){var u,p;return kn(this,function(h){switch(h.label){case 0:return this.scrolledElements.forEach(dk),s&&(s.scrollTo(r.left,r.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(s.scrollY!==r.top||s.scrollX!==r.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-r.left,s.scrollY-r.top,0,0))),u=this.options.onclone,p=this.clonedReferenceElement,typeof p>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:h.sent(),h.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,lk(l)]:[3,4];case 3:h.sent(),h.label=4;case 4:return typeof u=="function"?[2,Promise.resolve().then(function(){return u(l,p)}).then(function(){return a})]:[2,a]}})})});return l.open(),l.write(hk(document.doctype)+"<html></html>"),fk(this.referenceElement.ownerDocument,A,o),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},t.prototype.createElementClone=function(e){if(sd(e,2))debugger;if(Ty(e))return this.createCanvasClone(e);if(Ny(e))return this.createVideoClone(e);if(Uy(e))return this.createStyleClone(e);var r=e.cloneNode(!1);return Cd(r)&&(Cd(e)&&e.currentSrc&&e.currentSrc!==e.src&&(r.src=e.currentSrc,r.srcset=""),r.loading==="lazy"&&(r.loading="eager")),Dy(r)?this.createCustomElementClone(r):r},t.prototype.createCustomElementClone=function(e){var r=document.createElement("html2canvascustomelement");return _d(e.style,r),r},t.prototype.createStyleClone=function(e){try{var r=e.sheet;if(r&&r.cssRules){var n=[].slice.call(r.cssRules,0).reduce(function(A,o){return o&&typeof o.cssText=="string"?A+o.cssText:A},""),a=e.cloneNode(!1);return a.textContent=n,a}}catch(A){if(this.context.logger.error("Unable to access cssRules property",A),A.name!=="SecurityError")throw A}return e.cloneNode(!1)},t.prototype.createCanvasClone=function(e){var r;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var a=e.cloneNode(!1);try{a.width=e.width,a.height=e.height;var A=e.getContext("2d"),o=a.getContext("2d");if(o)if(!this.options.allowTaint&&A)o.putImageData(A.getImageData(0,0,e.width,e.height),0,0);else{var s=(r=e.getContext("webgl2"))!==null&&r!==void 0?r:e.getContext("webgl");if(s){var l=s.getContextAttributes();(l==null?void 0:l.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}o.drawImage(e,0,0)}return a}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return a},t.prototype.createVideoClone=function(e){var r=e.ownerDocument.createElement("canvas");r.width=e.offsetWidth,r.height=e.offsetHeight;var n=r.getContext("2d");try{return n&&(n.drawImage(e,0,0,r.width,r.height),this.options.allowTaint||n.getImageData(0,0,r.width,r.height)),r}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var a=e.ownerDocument.createElement("canvas");return a.width=e.offsetWidth,a.height=e.offsetHeight,a},t.prototype.appendChildNode=function(e,r,n){(!rs(r)||!nk(r)&&!r.hasAttribute(Vy)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(r)))&&(!this.options.copyStyles||!rs(r)||!Uy(r))&&e.appendChild(this.cloneNode(r,n))},t.prototype.cloneChildNodes=function(e,r,n){for(var a=this,A=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;A;A=A.nextSibling)if(rs(A)&&Iy(A)&&typeof A.assignedNodes=="function"){var o=A.assignedNodes();o.length&&o.forEach(function(s){return a.appendChildNode(r,s,n)})}else this.appendChildNode(r,A,n)},t.prototype.cloneNode=function(e,r){if(Sy(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&rs(e)&&(xd(e)||Gu(e))){var a=this.createElementClone(e);a.style.transitionProperty="none";var A=n.getComputedStyle(e),o=n.getComputedStyle(e,":before"),s=n.getComputedStyle(e,":after");this.referenceElement===e&&xd(a)&&(this.clonedReferenceElement=a),bd(a)&&mk(a);var l=this.counters.parse(new ny(this.context,A)),c=this.resolvePseudoContent(e,a,o,Ol.BEFORE);Dy(e)&&(r=!0),Ny(e)||this.cloneChildNodes(e,a,r),c&&a.insertBefore(c,a.firstChild);var u=this.resolvePseudoContent(e,a,s,Ol.AFTER);return u&&a.appendChild(u),this.counters.pop(l),(A&&(this.options.copyStyles||Gu(e))&&!Ly(e)||r)&&_d(A,a),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([a,e.scrollLeft,e.scrollTop]),(ju(e)||Wu(e))&&(ju(a)||Wu(a))&&(a.value=e.value),a}return e.cloneNode(!1)},t.prototype.resolvePseudoContent=function(e,r,n,a){var A=this;if(n){var o=n.content,s=r.ownerDocument;if(!(!s||!o||o==="none"||o==="-moz-alt-content"||n.display==="none")){this.counters.parse(new ny(this.context,n));var l=new ZF(this.context,n),c=s.createElement("html2canvaspseudoelement");_d(n,c),l.content.forEach(function(p){if(p.type===0)c.appendChild(s.createTextNode(p.value));else if(p.type===22){var h=s.createElement("img");h.src=p.value,h.style.opacity="1",c.appendChild(h)}else if(p.type===18){if(p.name==="attr"){var d=p.values.filter(lr);d.length&&c.appendChild(s.createTextNode(e.getAttribute(d[0].value)||""))}else if(p.name==="counter"){var w=p.values.filter(es),f=w[0],m=w[1];if(f&&lr(f)){var y=A.counters.getCounterValue(f.value),F=m&&lr(m)?od.parse(A.context,m.value):3;c.appendChild(s.createTextNode(Ql(y,F,!1)))}}else if(p.name==="counters"){var N=p.values.filter(es),f=N[0],D=N[1],m=N[2];if(f&&lr(f)){var H=A.counters.getCounterValues(f.value),R=m&&lr(m)?od.parse(A.context,m.value):3,U=D&&D.type===0?D.value:"",I=H.map(function(T){return Ql(T,R,!1)}).join(U);c.appendChild(s.createTextNode(I))}}}else if(p.type===20)switch(p.value){case"open-quote":c.appendChild(s.createTextNode(ry(l.quotes,A.quoteDepth++,!0)));break;case"close-quote":c.appendChild(s.createTextNode(ry(l.quotes,--A.quoteDepth,!1)));break;default:c.appendChild(s.createTextNode(p.value))}}),c.className=Fd+" "+Sd;var u=a===Ol.BEFORE?" "+Fd:" "+Sd;return Gu(r)?r.className.baseValue+=u:r.className+=u,c}}},t.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},t}(),Ol;(function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"})(Ol||(Ol={}));var ok=function(t,e){var r=t.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=e.width.toString(),r.height=e.height.toString(),r.scrolling="no",r.setAttribute(Vy,"true"),t.body.appendChild(r),r},sk=function(t){return new Promise(function(e){if(t.complete){e();return}if(!t.src){e();return}t.onload=e,t.onerror=e})},lk=function(t){return Promise.all([].slice.call(t.images,0).map(sk))},ck=function(t){return new Promise(function(e,r){var n=t.contentWindow;if(!n)return r("No window assigned for iframe");var a=n.document;n.onload=t.onload=function(){n.onload=t.onload=null;var A=setInterval(function(){a.body.childNodes.length>0&&a.readyState==="complete"&&(clearInterval(A),e(t))},50)}})},uk=["all","d","content"],_d=function(t,e){for(var r=t.length-1;r>=0;r--){var n=t.item(r);uk.indexOf(n)===-1&&e.style.setProperty(n,t.getPropertyValue(n))}return e},hk=function(t){var e="";return t&&(e+="<!DOCTYPE ",t.name&&(e+=t.name),t.internalSubset&&(e+=t.internalSubset),t.publicId&&(e+='"'+t.publicId+'"'),t.systemId&&(e+='"'+t.systemId+'"'),e+=">"),e},fk=function(t,e,r){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||r!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,r)},dk=function(t){var e=t[0],r=t[1],n=t[2];e.scrollLeft=r,e.scrollTop=n},gk=":before",pk=":after",Fd="___html2canvas___pseudoelement_before",Sd="___html2canvas___pseudoelement_after",zy=`{
19
- content: "" !important;
20
- display: none !important;
21
- }`,mk=function(t){yk(t,"."+Fd+gk+zy+`
22
- .`+Sd+pk+zy)},yk=function(t,e){var r=t.ownerDocument;if(r){var n=r.createElement("style");n.textContent=e,t.appendChild(n)}},Ky=function(){function t(){}return t.getOrigin=function(e){var r=t._link;return r?(r.href=e,r.href=r.href,r.protocol+r.hostname+r.port):"about:blank"},t.isSameOrigin=function(e){return t.getOrigin(e)===t._origin},t.setContext=function(e){t._link=e.document.createElement("a"),t._origin=t.getOrigin(e.location.href)},t._origin="about:blank",t}(),vk=function(){function t(e,r){this.context=e,this._options=r,this._cache={}}return t.prototype.addImage=function(e){var r=Promise.resolve();return this.has(e)||(Td(e)||bk(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),r},t.prototype.match=function(e){return this._cache[e]},t.prototype.loadImage=function(e){return Vn(this,void 0,void 0,function(){var r,n,a,A,o=this;return kn(this,function(s){switch(s.label){case 0:return r=Ky.isSameOrigin(e),n=!kd(e)&&this._options.useCORS===!0&&vn.SUPPORT_CORS_IMAGES&&!r,a=!kd(e)&&!r&&!Td(e)&&typeof this._options.proxy=="string"&&vn.SUPPORT_CORS_XHR&&!n,!r&&this._options.allowTaint===!1&&!kd(e)&&!Td(e)&&!a&&!n?[2]:(A=e,a?[4,this.proxy(A)]:[3,2]);case 1:A=s.sent(),s.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(l,c){var u=new Image;u.onload=function(){return l(u)},u.onerror=c,(Ck(A)||n)&&(u.crossOrigin="anonymous"),u.src=A,u.complete===!0&&setTimeout(function(){return l(u)},500),o._options.imageTimeout>0&&setTimeout(function(){return c("Timed out ("+o._options.imageTimeout+"ms) loading image")},o._options.imageTimeout)})];case 3:return[2,s.sent()]}})})},t.prototype.has=function(e){return typeof this._cache[e]<"u"},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(e){var r=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var a=e.substring(0,256);return new Promise(function(A,o){var s=vn.SUPPORT_RESPONSE_TYPE?"blob":"text",l=new XMLHttpRequest;l.onload=function(){if(l.status===200)if(s==="text")A(l.response);else{var p=new FileReader;p.addEventListener("load",function(){return A(p.result)},!1),p.addEventListener("error",function(h){return o(h)},!1),p.readAsDataURL(l.response)}else o("Failed to proxy resource "+a+" with status code "+l.status)},l.onerror=o;var c=n.indexOf("?")>-1?"&":"?";if(l.open("GET",""+n+c+"url="+encodeURIComponent(e)+"&responseType="+s),s!=="text"&&l instanceof XMLHttpRequest&&(l.responseType=s),r._options.imageTimeout){var u=r._options.imageTimeout;l.timeout=u,l.ontimeout=function(){return o("Timed out ("+u+"ms) proxying "+a)}}l.send()})},t}(),wk=/^data:image\/svg\+xml/i,Bk=/^data:image\/.*;base64,/i,xk=/^data:image\/.*/i,bk=function(t){return vn.SUPPORT_SVG_DRAWING||!Ek(t)},kd=function(t){return xk.test(t)},Ck=function(t){return Bk.test(t)},Td=function(t){return t.substr(0,4)==="blob"},Ek=function(t){return t.substr(-3).toLowerCase()==="svg"||wk.test(t)},it=function(){function t(e,r){this.type=0,this.x=e,this.y=r}return t.prototype.add=function(e,r){return new t(this.x+e,this.y+r)},t}(),As=function(t,e,r){return new it(t.x+(e.x-t.x)*r,t.y+(e.y-t.y)*r)},Xu=function(){function t(e,r,n,a){this.type=1,this.start=e,this.startControl=r,this.endControl=n,this.end=a}return t.prototype.subdivide=function(e,r){var n=As(this.start,this.startControl,e),a=As(this.startControl,this.endControl,e),A=As(this.endControl,this.end,e),o=As(n,a,e),s=As(a,A,e),l=As(o,s,e);return r?new t(this.start,n,o,l):new t(l,s,A,this.end)},t.prototype.add=function(e,r){return new t(this.start.add(e,r),this.startControl.add(e,r),this.endControl.add(e,r),this.end.add(e,r))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),Na=function(t){return t.type===1},_k=function(){function t(e){var r=e.styles,n=e.bounds,a=Tl(r.borderTopLeftRadius,n.width,n.height),A=a[0],o=a[1],s=Tl(r.borderTopRightRadius,n.width,n.height),l=s[0],c=s[1],u=Tl(r.borderBottomRightRadius,n.width,n.height),p=u[0],h=u[1],d=Tl(r.borderBottomLeftRadius,n.width,n.height),w=d[0],f=d[1],m=[];m.push((A+l)/n.width),m.push((w+p)/n.width),m.push((o+f)/n.height),m.push((c+h)/n.height);var y=Math.max.apply(Math,m);y>1&&(A/=y,o/=y,l/=y,c/=y,p/=y,h/=y,w/=y,f/=y);var F=n.width-l,N=n.height-h,D=n.width-p,H=n.height-f,R=r.borderTopWidth,U=r.borderRightWidth,I=r.borderBottomWidth,O=r.borderLeftWidth,q=gr(r.paddingTop,e.bounds.width),T=gr(r.paddingRight,e.bounds.width),L=gr(r.paddingBottom,e.bounds.width),G=gr(r.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=A>0||o>0?Cr(n.left+O/3,n.top+R/3,A-O/3,o-R/3,er.TOP_LEFT):new it(n.left+O/3,n.top+R/3),this.topRightBorderDoubleOuterBox=A>0||o>0?Cr(n.left+F,n.top+R/3,l-U/3,c-R/3,er.TOP_RIGHT):new it(n.left+n.width-U/3,n.top+R/3),this.bottomRightBorderDoubleOuterBox=p>0||h>0?Cr(n.left+D,n.top+N,p-U/3,h-I/3,er.BOTTOM_RIGHT):new it(n.left+n.width-U/3,n.top+n.height-I/3),this.bottomLeftBorderDoubleOuterBox=w>0||f>0?Cr(n.left+O/3,n.top+H,w-O/3,f-I/3,er.BOTTOM_LEFT):new it(n.left+O/3,n.top+n.height-I/3),this.topLeftBorderDoubleInnerBox=A>0||o>0?Cr(n.left+O*2/3,n.top+R*2/3,A-O*2/3,o-R*2/3,er.TOP_LEFT):new it(n.left+O*2/3,n.top+R*2/3),this.topRightBorderDoubleInnerBox=A>0||o>0?Cr(n.left+F,n.top+R*2/3,l-U*2/3,c-R*2/3,er.TOP_RIGHT):new it(n.left+n.width-U*2/3,n.top+R*2/3),this.bottomRightBorderDoubleInnerBox=p>0||h>0?Cr(n.left+D,n.top+N,p-U*2/3,h-I*2/3,er.BOTTOM_RIGHT):new it(n.left+n.width-U*2/3,n.top+n.height-I*2/3),this.bottomLeftBorderDoubleInnerBox=w>0||f>0?Cr(n.left+O*2/3,n.top+H,w-O*2/3,f-I*2/3,er.BOTTOM_LEFT):new it(n.left+O*2/3,n.top+n.height-I*2/3),this.topLeftBorderStroke=A>0||o>0?Cr(n.left+O/2,n.top+R/2,A-O/2,o-R/2,er.TOP_LEFT):new it(n.left+O/2,n.top+R/2),this.topRightBorderStroke=A>0||o>0?Cr(n.left+F,n.top+R/2,l-U/2,c-R/2,er.TOP_RIGHT):new it(n.left+n.width-U/2,n.top+R/2),this.bottomRightBorderStroke=p>0||h>0?Cr(n.left+D,n.top+N,p-U/2,h-I/2,er.BOTTOM_RIGHT):new it(n.left+n.width-U/2,n.top+n.height-I/2),this.bottomLeftBorderStroke=w>0||f>0?Cr(n.left+O/2,n.top+H,w-O/2,f-I/2,er.BOTTOM_LEFT):new it(n.left+O/2,n.top+n.height-I/2),this.topLeftBorderBox=A>0||o>0?Cr(n.left,n.top,A,o,er.TOP_LEFT):new it(n.left,n.top),this.topRightBorderBox=l>0||c>0?Cr(n.left+F,n.top,l,c,er.TOP_RIGHT):new it(n.left+n.width,n.top),this.bottomRightBorderBox=p>0||h>0?Cr(n.left+D,n.top+N,p,h,er.BOTTOM_RIGHT):new it(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=w>0||f>0?Cr(n.left,n.top+H,w,f,er.BOTTOM_LEFT):new it(n.left,n.top+n.height),this.topLeftPaddingBox=A>0||o>0?Cr(n.left+O,n.top+R,Math.max(0,A-O),Math.max(0,o-R),er.TOP_LEFT):new it(n.left+O,n.top+R),this.topRightPaddingBox=l>0||c>0?Cr(n.left+Math.min(F,n.width-U),n.top+R,F>n.width+U?0:Math.max(0,l-U),Math.max(0,c-R),er.TOP_RIGHT):new it(n.left+n.width-U,n.top+R),this.bottomRightPaddingBox=p>0||h>0?Cr(n.left+Math.min(D,n.width-O),n.top+Math.min(N,n.height-I),Math.max(0,p-U),Math.max(0,h-I),er.BOTTOM_RIGHT):new it(n.left+n.width-U,n.top+n.height-I),this.bottomLeftPaddingBox=w>0||f>0?Cr(n.left+O,n.top+Math.min(H,n.height-I),Math.max(0,w-O),Math.max(0,f-I),er.BOTTOM_LEFT):new it(n.left+O,n.top+n.height-I),this.topLeftContentBox=A>0||o>0?Cr(n.left+O+G,n.top+R+q,Math.max(0,A-(O+G)),Math.max(0,o-(R+q)),er.TOP_LEFT):new it(n.left+O+G,n.top+R+q),this.topRightContentBox=l>0||c>0?Cr(n.left+Math.min(F,n.width+O+G),n.top+R+q,F>n.width+O+G?0:l-O+G,c-(R+q),er.TOP_RIGHT):new it(n.left+n.width-(U+T),n.top+R+q),this.bottomRightContentBox=p>0||h>0?Cr(n.left+Math.min(D,n.width-(O+G)),n.top+Math.min(N,n.height+R+q),Math.max(0,p-(U+T)),h-(I+L),er.BOTTOM_RIGHT):new it(n.left+n.width-(U+T),n.top+n.height-(I+L)),this.bottomLeftContentBox=w>0||f>0?Cr(n.left+O+G,n.top+H,Math.max(0,w-(O+G)),f-(I+L),er.BOTTOM_LEFT):new it(n.left+O+G,n.top+n.height-(I+L))}return t}(),er;(function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(er||(er={}));var Cr=function(t,e,r,n,a){var A=4*((Math.sqrt(2)-1)/3),o=r*A,s=n*A,l=t+r,c=e+n;switch(a){case er.TOP_LEFT:return new Xu(new it(t,c),new it(t,c-s),new it(l-o,e),new it(l,e));case er.TOP_RIGHT:return new Xu(new it(t,e),new it(t+o,e),new it(l,c-s),new it(l,c));case er.BOTTOM_RIGHT:return new Xu(new it(l,e),new it(l,e+s),new it(t+o,c),new it(t,c));case er.BOTTOM_LEFT:default:return new Xu(new it(l,c),new it(l-o,c),new it(t,e+s),new it(t,e))}},qu=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},Fk=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},Yu=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},Sk=function(){function t(e,r,n){this.offsetX=e,this.offsetY=r,this.matrix=n,this.type=0,this.target=6}return t}(),Ju=function(){function t(e,r){this.path=e,this.target=r,this.type=1}return t}(),kk=function(){function t(e){this.opacity=e,this.type=2,this.target=6}return t}(),Tk=function(t){return t.type===0},Gy=function(t){return t.type===1},Nk=function(t){return t.type===2},jy=function(t,e){return t.length===e.length?t.some(function(r,n){return r===e[n]}):!1},Lk=function(t,e,r,n,a){return t.map(function(A,o){switch(o){case 0:return A.add(e,r);case 1:return A.add(e+n,r);case 2:return A.add(e+n,r+a);case 3:return A.add(e,r+a)}return A})},Wy=function(){function t(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),Xy=function(){function t(e,r){if(this.container=e,this.parent=r,this.effects=[],this.curves=new _k(this.container),this.container.styles.opacity<1&&this.effects.push(new kk(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,a=this.container.bounds.top+this.container.styles.transformOrigin[1].number,A=this.container.styles.transform;this.effects.push(new Sk(n,a,A))}if(this.container.styles.overflowX!==0){var o=qu(this.curves),s=Yu(this.curves);jy(o,s)?this.effects.push(new Ju(o,6)):(this.effects.push(new Ju(o,2)),this.effects.push(new Ju(s,4)))}}return t.prototype.getEffects=function(e){for(var r=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,a=this.effects.slice(0);n;){var A=n.effects.filter(function(l){return!Gy(l)});if(r||n.container.styles.position!==0||!n.parent){if(a.unshift.apply(a,A),r=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var o=qu(n.curves),s=Yu(n.curves);jy(o,s)||a.unshift(new Ju(s,6))}}else a.unshift.apply(a,A);n=n.parent}return a.filter(function(l){return nn(l.target,e)})},t}(),Nd=function(t,e,r,n){t.container.elements.forEach(function(a){var A=nn(a.flags,4),o=nn(a.flags,2),s=new Xy(a,t);nn(a.styles.display,2048)&&n.push(s);var l=nn(a.flags,8)?[]:n;if(A||o){var c=A||a.styles.isPositioned()?r:e,u=new Wy(s);if(a.styles.isPositioned()||a.styles.opacity<1||a.styles.isTransformed()){var p=a.styles.zIndex.order;if(p<0){var h=0;c.negativeZIndex.some(function(w,f){return p>w.element.container.styles.zIndex.order?(h=f,!1):h>0}),c.negativeZIndex.splice(h,0,u)}else if(p>0){var d=0;c.positiveZIndex.some(function(w,f){return p>=w.element.container.styles.zIndex.order?(d=f+1,!1):d>0}),c.positiveZIndex.splice(d,0,u)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else a.styles.isFloating()?c.nonPositionedFloats.push(u):c.nonPositionedInlineLevel.push(u);Nd(s,u,A?u:r,l)}else a.styles.isInlineLevel()?e.inlineLevel.push(s):e.nonInlineLevel.push(s),Nd(s,e,r,l);nn(a.flags,8)&&qy(a,l)})},qy=function(t,e){for(var r=t instanceof wd?t.start:1,n=t instanceof wd?t.reversed:!1,a=0;a<e.length;a++){var A=e[a];A.container instanceof By&&typeof A.container.value=="number"&&A.container.value!==0&&(r=A.container.value),A.listValue=Ql(r,A.container.styles.listStyleType,!0),r+=n?-1:1}},Uk=function(t){var e=new Xy(t,null),r=new Wy(e),n=[];return Nd(e,r,r,n),qy(e.container,n),r},Yy=function(t,e){switch(e){case 0:return La(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return La(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return La(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return La(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},Ik=function(t,e){switch(e){case 0:return La(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return La(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return La(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return La(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},Dk=function(t,e){switch(e){case 0:return La(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return La(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return La(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return La(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},Qk=function(t,e){switch(e){case 0:return Zu(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return Zu(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return Zu(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return Zu(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},Zu=function(t,e){var r=[];return Na(t)?r.push(t.subdivide(.5,!1)):r.push(t),Na(e)?r.push(e.subdivide(.5,!0)):r.push(e),r},La=function(t,e,r,n){var a=[];return Na(t)?a.push(t.subdivide(.5,!1)):a.push(t),Na(r)?a.push(r.subdivide(.5,!0)):a.push(r),Na(n)?a.push(n.subdivide(.5,!0).reverse()):a.push(n),Na(e)?a.push(e.subdivide(.5,!1).reverse()):a.push(e),a},Jy=function(t){var e=t.bounds,r=t.styles;return e.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},eh=function(t){var e=t.styles,r=t.bounds,n=gr(e.paddingLeft,r.width),a=gr(e.paddingRight,r.width),A=gr(e.paddingTop,r.width),o=gr(e.paddingBottom,r.width);return r.add(n+e.borderLeftWidth,A+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+n+a),-(e.borderTopWidth+e.borderBottomWidth+A+o))},Ok=function(t,e){return t===0?e.bounds:t===2?eh(e):Jy(e)},Pk=function(t,e){return t===0?e.bounds:t===2?eh(e):Jy(e)},Ld=function(t,e,r){var n=Ok(os(t.styles.backgroundOrigin,e),t),a=Pk(os(t.styles.backgroundClip,e),t),A=Mk(os(t.styles.backgroundSize,e),r,n),o=A[0],s=A[1],l=Tl(os(t.styles.backgroundPosition,e),n.width-o,n.height-s),c=Rk(os(t.styles.backgroundRepeat,e),l,A,n,a),u=Math.round(n.left+l[0]),p=Math.round(n.top+l[1]);return[c,u,p,o,s]},is=function(t){return lr(t)&&t.value===ts.AUTO},th=function(t){return typeof t=="number"},Mk=function(t,e,r){var n=e[0],a=e[1],A=e[2],o=t[0],s=t[1];if(!o)return[0,0];if(jr(o)&&s&&jr(s))return[gr(o,r.width),gr(s,r.height)];var l=th(A);if(lr(o)&&(o.value===ts.CONTAIN||o.value===ts.COVER)){if(th(A)){var c=r.width/r.height;return c<A!=(o.value===ts.COVER)?[r.width,r.width/A]:[r.height*A,r.height]}return[r.width,r.height]}var u=th(n),p=th(a),h=u||p;if(is(o)&&(!s||is(s))){if(u&&p)return[n,a];if(!l&&!h)return[r.width,r.height];if(h&&l){var d=u?n:a*A,w=p?a:n/A;return[d,w]}var f=u?n:r.width,m=p?a:r.height;return[f,m]}if(l){var y=0,F=0;return jr(o)?y=gr(o,r.width):jr(s)&&(F=gr(s,r.height)),is(o)?y=F*A:(!s||is(s))&&(F=y/A),[y,F]}var N=null,D=null;if(jr(o)?N=gr(o,r.width):s&&jr(s)&&(D=gr(s,r.height)),N!==null&&(!s||is(s))&&(D=u&&p?N/n*a:r.height),D!==null&&is(o)&&(N=u&&p?D/a*n:r.width),N!==null&&D!==null)return[N,D];throw new Error("Unable to calculate background-size for element")},os=function(t,e){var r=t[e];return typeof r>"u"?t[0]:r},Rk=function(t,e,r,n,a){var A=e[0],o=e[1],s=r[0],l=r[1];switch(t){case 2:return[new it(Math.round(n.left),Math.round(n.top+o)),new it(Math.round(n.left+n.width),Math.round(n.top+o)),new it(Math.round(n.left+n.width),Math.round(l+n.top+o)),new it(Math.round(n.left),Math.round(l+n.top+o))];case 3:return[new it(Math.round(n.left+A),Math.round(n.top)),new it(Math.round(n.left+A+s),Math.round(n.top)),new it(Math.round(n.left+A+s),Math.round(n.height+n.top)),new it(Math.round(n.left+A),Math.round(n.height+n.top))];case 1:return[new it(Math.round(n.left+A),Math.round(n.top+o)),new it(Math.round(n.left+A+s),Math.round(n.top+o)),new it(Math.round(n.left+A+s),Math.round(n.top+o+l)),new it(Math.round(n.left+A),Math.round(n.top+o+l))];default:return[new it(Math.round(a.left),Math.round(a.top)),new it(Math.round(a.left+a.width),Math.round(a.top)),new it(Math.round(a.left+a.width),Math.round(a.height+a.top)),new it(Math.round(a.left),Math.round(a.height+a.top))]}},Hk="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Zy="Hidden Text",Vk=function(){function t(e){this._data={},this._document=e}return t.prototype.parseMetrics=function(e,r){var n=this._document.createElement("div"),a=this._document.createElement("img"),A=this._document.createElement("span"),o=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=r,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",o.appendChild(n),a.src=Hk,a.width=1,a.height=1,a.style.margin="0",a.style.padding="0",a.style.verticalAlign="baseline",A.style.fontFamily=e,A.style.fontSize=r,A.style.margin="0",A.style.padding="0",A.appendChild(this._document.createTextNode(Zy)),n.appendChild(A),n.appendChild(a);var s=a.offsetTop-A.offsetTop+2;n.removeChild(A),n.appendChild(this._document.createTextNode(Zy)),n.style.lineHeight="normal",a.style.verticalAlign="super";var l=a.offsetTop-n.offsetTop+2;return o.removeChild(n),{baseline:s,middle:l}},t.prototype.getMetrics=function(e,r){var n=e+" "+r;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(e,r)),this._data[n]},t}(),ev=function(){function t(e,r){this.context=e,this.options=r}return t}(),$k=1e4,zk=function(t){$a(e,t);function e(r,n){var a=t.call(this,r,n)||this;return a._activeEffects=[],a.canvas=n.canvas?n.canvas:document.createElement("canvas"),a.ctx=a.canvas.getContext("2d"),n.canvas||(a.canvas.width=Math.floor(n.width*n.scale),a.canvas.height=Math.floor(n.height*n.scale),a.canvas.style.width=n.width+"px",a.canvas.style.height=n.height+"px"),a.fontMetrics=new Vk(document),a.ctx.scale(a.options.scale,a.options.scale),a.ctx.translate(-n.x,-n.y),a.ctx.textBaseline="bottom",a._activeEffects=[],a.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),a}return e.prototype.applyEffects=function(r){for(var n=this;this._activeEffects.length;)this.popEffect();r.forEach(function(a){return n.applyEffect(a)})},e.prototype.applyEffect=function(r){this.ctx.save(),Nk(r)&&(this.ctx.globalAlpha=r.opacity),Tk(r)&&(this.ctx.translate(r.offsetX,r.offsetY),this.ctx.transform(r.matrix[0],r.matrix[1],r.matrix[2],r.matrix[3],r.matrix[4],r.matrix[5]),this.ctx.translate(-r.offsetX,-r.offsetY)),Gy(r)&&(this.path(r.path),this.ctx.clip()),this._activeEffects.push(r)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(r){return Vn(this,void 0,void 0,function(){var n;return kn(this,function(a){switch(a.label){case 0:return n=r.element.container.styles,n.isVisible()?[4,this.renderStackContent(r)]:[3,2];case 1:a.sent(),a.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(r){return Vn(this,void 0,void 0,function(){return kn(this,function(n){switch(n.label){case 0:if(nn(r.container.flags,16))debugger;return r.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(r)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(r)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(r,n,a){var A=this;if(n===0)this.ctx.fillText(r.text,r.bounds.left,r.bounds.top+a);else{var o=vd(r.text);o.reduce(function(s,l){return A.ctx.fillText(l,s,r.bounds.top+a),s+A.ctx.measureText(l).width},r.bounds.left)}},e.prototype.createFontStyle=function(r){var n=r.fontVariant.filter(function(o){return o==="normal"||o==="small-caps"}).join(""),a=Xk(r.fontFamily).join(", "),A=kl(r.fontSize)?""+r.fontSize.number+r.fontSize.unit:r.fontSize.number+"px";return[[r.fontStyle,n,r.fontWeight,A,a].join(" "),a,A]},e.prototype.renderTextNode=function(r,n){return Vn(this,void 0,void 0,function(){var a,A,o,s,l,c,u,p,h=this;return kn(this,function(d){return a=this.createFontStyle(n),A=a[0],o=a[1],s=a[2],this.ctx.font=A,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",l=this.fontMetrics.getMetrics(o,s),c=l.baseline,u=l.middle,p=n.paintOrder,r.textBounds.forEach(function(w){p.forEach(function(f){switch(f){case 0:h.ctx.fillStyle=ln(n.color),h.renderTextWithLetterSpacing(w,n.letterSpacing,c);var m=n.textShadow;m.length&&w.text.trim().length&&(m.slice(0).reverse().forEach(function(y){h.ctx.shadowColor=ln(y.color),h.ctx.shadowOffsetX=y.offsetX.number*h.options.scale,h.ctx.shadowOffsetY=y.offsetY.number*h.options.scale,h.ctx.shadowBlur=y.blur.number,h.renderTextWithLetterSpacing(w,n.letterSpacing,c)}),h.ctx.shadowColor="",h.ctx.shadowOffsetX=0,h.ctx.shadowOffsetY=0,h.ctx.shadowBlur=0),n.textDecorationLine.length&&(h.ctx.fillStyle=ln(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(y){switch(y){case 1:h.ctx.fillRect(w.bounds.left,Math.round(w.bounds.top+c),w.bounds.width,1);break;case 2:h.ctx.fillRect(w.bounds.left,Math.round(w.bounds.top),w.bounds.width,1);break;case 3:h.ctx.fillRect(w.bounds.left,Math.ceil(w.bounds.top+u),w.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&w.text.trim().length&&(h.ctx.strokeStyle=ln(n.webkitTextStrokeColor),h.ctx.lineWidth=n.webkitTextStrokeWidth,h.ctx.lineJoin=window.chrome?"miter":"round",h.ctx.strokeText(w.text,w.bounds.left,w.bounds.top+c)),h.ctx.strokeStyle="",h.ctx.lineWidth=0,h.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(r,n,a){if(a&&r.intrinsicWidth>0&&r.intrinsicHeight>0){var A=eh(r),o=Yu(n);this.path(o),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(a,0,0,r.intrinsicWidth,r.intrinsicHeight,A.left,A.top,A.width,A.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(r){return Vn(this,void 0,void 0,function(){var n,a,A,o,s,l,F,F,c,u,p,h,D,d,w,H,f,m,y,F,N,D,H;return kn(this,function(R){switch(R.label){case 0:this.applyEffects(r.getEffects(4)),n=r.container,a=r.curves,A=n.styles,o=0,s=n.textNodes,R.label=1;case 1:return o<s.length?(l=s[o],[4,this.renderTextNode(l,A)]):[3,4];case 2:R.sent(),R.label=3;case 3:return o++,[3,1];case 4:if(!(n instanceof yy))return[3,8];R.label=5;case 5:return R.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return F=R.sent(),this.renderReplacedElement(n,a,F),[3,8];case 7:return R.sent(),this.context.logger.error("Error loading image "+n.src),[3,8];case 8:if(n instanceof vy&&this.renderReplacedElement(n,a,n.canvas),!(n instanceof wy))return[3,12];R.label=9;case 9:return R.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return F=R.sent(),this.renderReplacedElement(n,a,F),[3,12];case 11:return R.sent(),this.context.logger.error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof Ey&&n.tree?(c=new e(this.context,{scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,width:n.width,height:n.height}),[4,c.render(n.tree)]):[3,14];case 13:u=R.sent(),n.width&&n.height&&this.ctx.drawImage(u,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),R.label=14;case 14:if(n instanceof Bd&&(p=Math.min(n.bounds.width,n.bounds.height),n.type===$u?n.checked&&(this.ctx.save(),this.path([new it(n.bounds.left+p*.39363,n.bounds.top+p*.79),new it(n.bounds.left+p*.16,n.bounds.top+p*.5549),new it(n.bounds.left+p*.27347,n.bounds.top+p*.44071),new it(n.bounds.left+p*.39694,n.bounds.top+p*.5649),new it(n.bounds.left+p*.72983,n.bounds.top+p*.23),new it(n.bounds.left+p*.84,n.bounds.top+p*.34085),new it(n.bounds.left+p*.39363,n.bounds.top+p*.79)]),this.ctx.fillStyle=ln(xy),this.ctx.fill(),this.ctx.restore()):n.type===zu&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+p/2,n.bounds.top+p/2,p/4,0,Math.PI*2,!0),this.ctx.fillStyle=ln(xy),this.ctx.fill(),this.ctx.restore())),Kk(n)&&n.value.length){switch(h=this.createFontStyle(A),D=h[0],d=h[1],w=this.fontMetrics.getMetrics(D,d).baseline,this.ctx.font=D,this.ctx.fillStyle=ln(A.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=jk(n.styles.textAlign),H=eh(n),f=0,n.styles.textAlign){case 1:f+=H.width/2;break;case 2:f+=H.width;break}m=H.add(f,0,0,-H.height/2+1),this.ctx.save(),this.path([new it(H.left,H.top),new it(H.left+H.width,H.top),new it(H.left+H.width,H.top+H.height),new it(H.left,H.top+H.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Il(n.value,m),A.letterSpacing,w),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!nn(n.styles.display,2048))return[3,20];if(n.styles.listStyleImage===null)return[3,19];if(y=n.styles.listStyleImage,y.type!==0)return[3,18];F=void 0,N=y.url,R.label=15;case 15:return R.trys.push([15,17,,18]),[4,this.context.cache.match(N)];case 16:return F=R.sent(),this.ctx.drawImage(F,n.bounds.left-(F.width+10),n.bounds.top),[3,18];case 17:return R.sent(),this.context.logger.error("Error loading list-style-image "+N),[3,18];case 18:return[3,20];case 19:r.listValue&&n.styles.listStyleType!==-1&&(D=this.createFontStyle(A)[0],this.ctx.font=D,this.ctx.fillStyle=ln(A.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",H=new HA(n.bounds.left,n.bounds.top+gr(n.styles.paddingTop,n.bounds.width),n.bounds.width,Z2(A.lineHeight,A.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Il(r.listValue,H),A.letterSpacing,Z2(A.lineHeight,A.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),R.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(r){return Vn(this,void 0,void 0,function(){var n,a,y,A,o,y,s,l,y,c,u,y,p,h,y,d,w,y,f,m,y;return kn(this,function(F){switch(F.label){case 0:if(nn(r.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(r.element)];case 1:F.sent(),n=0,a=r.negativeZIndex,F.label=2;case 2:return n<a.length?(y=a[n],[4,this.renderStack(y)]):[3,5];case 3:F.sent(),F.label=4;case 4:return n++,[3,2];case 5:return[4,this.renderNodeContent(r.element)];case 6:F.sent(),A=0,o=r.nonInlineLevel,F.label=7;case 7:return A<o.length?(y=o[A],[4,this.renderNode(y)]):[3,10];case 8:F.sent(),F.label=9;case 9:return A++,[3,7];case 10:s=0,l=r.nonPositionedFloats,F.label=11;case 11:return s<l.length?(y=l[s],[4,this.renderStack(y)]):[3,14];case 12:F.sent(),F.label=13;case 13:return s++,[3,11];case 14:c=0,u=r.nonPositionedInlineLevel,F.label=15;case 15:return c<u.length?(y=u[c],[4,this.renderStack(y)]):[3,18];case 16:F.sent(),F.label=17;case 17:return c++,[3,15];case 18:p=0,h=r.inlineLevel,F.label=19;case 19:return p<h.length?(y=h[p],[4,this.renderNode(y)]):[3,22];case 20:F.sent(),F.label=21;case 21:return p++,[3,19];case 22:d=0,w=r.zeroOrAutoZIndexOrTransformedOrOpacity,F.label=23;case 23:return d<w.length?(y=w[d],[4,this.renderStack(y)]):[3,26];case 24:F.sent(),F.label=25;case 25:return d++,[3,23];case 26:f=0,m=r.positiveZIndex,F.label=27;case 27:return f<m.length?(y=m[f],[4,this.renderStack(y)]):[3,30];case 28:F.sent(),F.label=29;case 29:return f++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(r){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(r.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(r){this.ctx.beginPath(),this.formatPath(r),this.ctx.closePath()},e.prototype.formatPath=function(r){var n=this;r.forEach(function(a,A){var o=Na(a)?a.start:a;A===0?n.ctx.moveTo(o.x,o.y):n.ctx.lineTo(o.x,o.y),Na(a)&&n.ctx.bezierCurveTo(a.startControl.x,a.startControl.y,a.endControl.x,a.endControl.y,a.end.x,a.end.y)})},e.prototype.renderRepeat=function(r,n,a,A){this.path(r),this.ctx.fillStyle=n,this.ctx.translate(a,A),this.ctx.fill(),this.ctx.translate(-a,-A)},e.prototype.resizeImage=function(r,n,a){var A;if(r.width===n&&r.height===a)return r;var o=(A=this.canvas.ownerDocument)!==null&&A!==void 0?A:document,s=o.createElement("canvas");s.width=Math.max(1,n),s.height=Math.max(1,a);var l=s.getContext("2d");return l.drawImage(r,0,0,r.width,r.height,0,0,n,a),s},e.prototype.renderBackgroundImage=function(r){return Vn(this,void 0,void 0,function(){var n,a,A,o,s,l;return kn(this,function(c){switch(c.label){case 0:n=r.styles.backgroundImage.length-1,a=function(u){var p,h,d,q,he,ge,G,Y,I,w,q,he,ge,G,Y,f,m,y,F,N,D,H,R,U,I,O,q,T,L,G,Y,se,he,ge,re,le,fe,Ue,b,_,B,x;return kn(this,function(S){switch(S.label){case 0:if(u.type!==0)return[3,5];p=void 0,h=u.url,S.label=1;case 1:return S.trys.push([1,3,,4]),[4,A.context.cache.match(h)];case 2:return p=S.sent(),[3,4];case 3:return S.sent(),A.context.logger.error("Error loading background-image "+h),[3,4];case 4:return p&&(d=Ld(r,n,[p.width,p.height,p.width/p.height]),q=d[0],he=d[1],ge=d[2],G=d[3],Y=d[4],I=A.ctx.createPattern(A.resizeImage(p,G,Y),"repeat"),A.renderRepeat(q,I,he,ge)),[3,6];case 5:T3(u)?(w=Ld(r,n,[null,null,null]),q=w[0],he=w[1],ge=w[2],G=w[3],Y=w[4],f=E3(u.angle,G,Y),m=f[0],y=f[1],F=f[2],N=f[3],D=f[4],H=document.createElement("canvas"),H.width=G,H.height=Y,R=H.getContext("2d"),U=R.createLinearGradient(y,N,F,D),V2(u.stops,m).forEach(function(Q){return U.addColorStop(Q.stop,ln(Q.color))}),R.fillStyle=U,R.fillRect(0,0,G,Y),G>0&&Y>0&&(I=A.ctx.createPattern(H,"repeat"),A.renderRepeat(q,I,he,ge))):N3(u)&&(O=Ld(r,n,[null,null,null]),q=O[0],T=O[1],L=O[2],G=O[3],Y=O[4],se=u.position.length===0?[ad]:u.position,he=gr(se[0],G),ge=gr(se[se.length-1],Y),re=_3(u,he,ge,G,Y),le=re[0],fe=re[1],le>0&&fe>0&&(Ue=A.ctx.createRadialGradient(T+he,L+ge,0,T+he,L+ge,le),V2(u.stops,le*2).forEach(function(Q){return Ue.addColorStop(Q.stop,ln(Q.color))}),A.path(q),A.ctx.fillStyle=Ue,le!==fe?(b=r.bounds.left+.5*r.bounds.width,_=r.bounds.top+.5*r.bounds.height,B=fe/le,x=1/B,A.ctx.save(),A.ctx.translate(b,_),A.ctx.transform(1,0,0,B,0,0),A.ctx.translate(-b,-_),A.ctx.fillRect(T,x*(L-_)+_,G,Y*x),A.ctx.restore()):A.ctx.fill())),S.label=6;case 6:return n--,[2]}})},A=this,o=0,s=r.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return o<s.length?(l=s[o],[5,a(l)]):[3,4];case 2:c.sent(),c.label=3;case 3:return o++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(r,n,a){return Vn(this,void 0,void 0,function(){return kn(this,function(A){return this.path(Yy(a,n)),this.ctx.fillStyle=ln(r),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(r,n,a,A){return Vn(this,void 0,void 0,function(){var o,s;return kn(this,function(l){switch(l.label){case 0:return n<3?[4,this.renderSolidBorder(r,a,A)]:[3,2];case 1:return l.sent(),[2];case 2:return o=Ik(A,a),this.path(o),this.ctx.fillStyle=ln(r),this.ctx.fill(),s=Dk(A,a),this.path(s),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(r){return Vn(this,void 0,void 0,function(){var n,a,A,o,s,l,c,u,p=this;return kn(this,function(h){switch(h.label){case 0:return this.applyEffects(r.getEffects(2)),n=r.container.styles,a=!Ci(n.backgroundColor)||n.backgroundImage.length,A=[{style:n.borderTopStyle,color:n.borderTopColor,width:n.borderTopWidth},{style:n.borderRightStyle,color:n.borderRightColor,width:n.borderRightWidth},{style:n.borderBottomStyle,color:n.borderBottomColor,width:n.borderBottomWidth},{style:n.borderLeftStyle,color:n.borderLeftColor,width:n.borderLeftWidth}],o=Gk(os(n.backgroundClip,0),r.curves),a||n.boxShadow.length?(this.ctx.save(),this.path(o),this.ctx.clip(),Ci(n.backgroundColor)||(this.ctx.fillStyle=ln(n.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(r.container)]):[3,2];case 1:h.sent(),this.ctx.restore(),n.boxShadow.slice(0).reverse().forEach(function(d){p.ctx.save();var w=qu(r.curves),f=d.inset?0:$k,m=Lk(w,-f+(d.inset?1:-1)*d.spread.number,(d.inset?1:-1)*d.spread.number,d.spread.number*(d.inset?-2:2),d.spread.number*(d.inset?-2:2));d.inset?(p.path(w),p.ctx.clip(),p.mask(m)):(p.mask(w),p.ctx.clip(),p.path(m)),p.ctx.shadowOffsetX=d.offsetX.number+f,p.ctx.shadowOffsetY=d.offsetY.number,p.ctx.shadowColor=ln(d.color),p.ctx.shadowBlur=d.blur.number,p.ctx.fillStyle=d.inset?ln(d.color):"rgba(0,0,0,1)",p.ctx.fill(),p.ctx.restore()}),h.label=2;case 2:s=0,l=0,c=A,h.label=3;case 3:return l<c.length?(u=c[l],u.style!==0&&!Ci(u.color)&&u.width>0?u.style!==2?[3,5]:[4,this.renderDashedDottedBorder(u.color,u.width,s,r.curves,2)]:[3,11]):[3,13];case 4:return h.sent(),[3,11];case 5:return u.style!==3?[3,7]:[4,this.renderDashedDottedBorder(u.color,u.width,s,r.curves,3)];case 6:return h.sent(),[3,11];case 7:return u.style!==4?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,s,r.curves)];case 8:return h.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,s,r.curves)];case 10:h.sent(),h.label=11;case 11:s++,h.label=12;case 12:return l++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(r,n,a,A,o){return Vn(this,void 0,void 0,function(){var s,l,c,u,p,h,d,w,f,m,y,F,N,D,H,R,H,R;return kn(this,function(U){return this.ctx.save(),s=Qk(A,a),l=Yy(A,a),o===2&&(this.path(l),this.ctx.clip()),Na(l[0])?(c=l[0].start.x,u=l[0].start.y):(c=l[0].x,u=l[0].y),Na(l[1])?(p=l[1].end.x,h=l[1].end.y):(p=l[1].x,h=l[1].y),a===0||a===2?d=Math.abs(c-p):d=Math.abs(u-h),this.ctx.beginPath(),o===3?this.formatPath(s):this.formatPath(l.slice(0,2)),w=n<3?n*3:n*2,f=n<3?n*2:n,o===3&&(w=n,f=n),m=!0,d<=w*2?m=!1:d<=w*2+f?(y=d/(2*w+f),w*=y,f*=y):(F=Math.floor((d+f)/(w+f)),N=(d-F*w)/(F-1),D=(d-(F+1)*w)/F,f=D<=0||Math.abs(f-N)<Math.abs(f-D)?N:D),m&&(o===3?this.ctx.setLineDash([0,w+f]):this.ctx.setLineDash([w,f])),o===3?(this.ctx.lineCap="round",this.ctx.lineWidth=n):this.ctx.lineWidth=n*2+1.1,this.ctx.strokeStyle=ln(r),this.ctx.stroke(),this.ctx.setLineDash([]),o===2&&(Na(l[0])&&(H=l[3],R=l[0],this.ctx.beginPath(),this.formatPath([new it(H.end.x,H.end.y),new it(R.start.x,R.start.y)]),this.ctx.stroke()),Na(l[1])&&(H=l[1],R=l[2],this.ctx.beginPath(),this.formatPath([new it(H.end.x,H.end.y),new it(R.start.x,R.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(r){return Vn(this,void 0,void 0,function(){var n;return kn(this,function(a){switch(a.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=ln(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=Uk(r),[4,this.renderStack(n)];case 1:return a.sent(),this.applyEffects([]),[2,this.canvas]}})})},e}(ev),Kk=function(t){return t instanceof Cy||t instanceof by?!0:t instanceof Bd&&t.type!==zu&&t.type!==$u},Gk=function(t,e){switch(t){case 0:return qu(e);case 2:return Fk(e);case 1:default:return Yu(e)}},jk=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Wk=["-apple-system","system-ui"],Xk=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(e){return Wk.indexOf(e)===-1}):t},qk=function(t){$a(e,t);function e(r,n){var a=t.call(this,r,n)||this;return a.canvas=n.canvas?n.canvas:document.createElement("canvas"),a.ctx=a.canvas.getContext("2d"),a.options=n,a.canvas.width=Math.floor(n.width*n.scale),a.canvas.height=Math.floor(n.height*n.scale),a.canvas.style.width=n.width+"px",a.canvas.style.height=n.height+"px",a.ctx.scale(a.options.scale,a.options.scale),a.ctx.translate(-n.x,-n.y),a.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),a}return e.prototype.render=function(r){return Vn(this,void 0,void 0,function(){var n,a;return kn(this,function(A){switch(A.label){case 0:return n=yd(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,r),[4,Yk(n)];case 1:return a=A.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=ln(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(a,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e}(ev),Yk=function(t){return new Promise(function(e,r){var n=new Image;n.onload=function(){e(n)},n.onerror=r,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},Jk=function(){function t(e){var r=e.id,n=e.enabled;this.id=r,this.enabled=n,this.start=Date.now()}return t.prototype.debug=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,lu([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,lu([this.id,this.getTime()+"ms"],e))},t.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,lu([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,lu([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.instances={},t}(),Zk=function(){function t(e,r){var n;this.windowBounds=r,this.instanceName="#"+t.instanceCount++,this.logger=new Jk({id:this.instanceName,enabled:e.logging}),this.cache=(n=e.cache)!==null&&n!==void 0?n:new vk(this,e)}return t.instanceCount=1,t}(),Ud=function(t,e){return e===void 0&&(e={}),eT(t,e)};typeof window<"u"&&Ky.setContext(window);var eT=function(t,e){return Vn(void 0,void 0,void 0,function(){var r,n,a,A,o,s,l,c,u,p,h,d,w,f,m,y,F,N,D,H,U,R,U,I,O,q,T,L,G,Y,se,he,ge,re,le,fe,Ue,b,_,B;return kn(this,function(x){switch(x.label){case 0:if(!t||typeof t!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(r=t.ownerDocument,!r)throw new Error("Element is not attached to a Document");if(n=r.defaultView,!n)throw new Error("Document is not attached to a Window");return a={allowTaint:(I=e.allowTaint)!==null&&I!==void 0?I:!1,imageTimeout:(O=e.imageTimeout)!==null&&O!==void 0?O:15e3,proxy:e.proxy,useCORS:(q=e.useCORS)!==null&&q!==void 0?q:!1},A=O0({logging:(T=e.logging)!==null&&T!==void 0?T:!0,cache:e.cache},a),o={windowWidth:(L=e.windowWidth)!==null&&L!==void 0?L:n.innerWidth,windowHeight:(G=e.windowHeight)!==null&&G!==void 0?G:n.innerHeight,scrollX:(Y=e.scrollX)!==null&&Y!==void 0?Y:n.pageXOffset,scrollY:(se=e.scrollY)!==null&&se!==void 0?se:n.pageYOffset},s=new HA(o.scrollX,o.scrollY,o.windowWidth,o.windowHeight),l=new Zk(A,s),c=(he=e.foreignObjectRendering)!==null&&he!==void 0?he:!1,u={allowTaint:(ge=e.allowTaint)!==null&&ge!==void 0?ge:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:c,copyStyles:c},l.logger.debug("Starting document clone with size "+s.width+"x"+s.height+" scrolled to "+-s.left+","+-s.top),p=new $y(l,t,u),h=p.clonedReferenceElement,h?[4,p.toIFrame(r,s)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return d=x.sent(),w=bd(h)||rk(h)?LE(h.ownerDocument):cu(l,h),f=w.width,m=w.height,y=w.left,F=w.top,N=tT(l,h,e.backgroundColor),D={canvas:e.canvas,backgroundColor:N,scale:(le=(re=e.scale)!==null&&re!==void 0?re:n.devicePixelRatio)!==null&&le!==void 0?le:1,x:((fe=e.x)!==null&&fe!==void 0?fe:0)+y,y:((Ue=e.y)!==null&&Ue!==void 0?Ue:0)+F,width:(b=e.width)!==null&&b!==void 0?b:Math.ceil(f),height:(_=e.height)!==null&&_!==void 0?_:Math.ceil(m)},c?(l.logger.debug("Document cloned, using foreign object rendering"),U=new qk(l,D),[4,U.render(h)]):[3,3];case 2:return H=x.sent(),[3,5];case 3:return l.logger.debug("Document cloned, element located at "+y+","+F+" with size "+f+"x"+m+" using computed rendering"),l.logger.debug("Starting DOM parsing"),R=Fy(l,h),N===R.styles.backgroundColor&&(R.styles.backgroundColor=$A.TRANSPARENT),l.logger.debug("Starting renderer for element at "+D.x+","+D.y+" with size "+D.width+"x"+D.height),U=new zk(l,D),[4,U.render(R)];case 4:H=x.sent(),x.label=5;case 5:return(!((B=e.removeContainer)!==null&&B!==void 0)||B)&&($y.destroy(d)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,H]}})})},tT=function(t,e,r){var n=e.ownerDocument,a=n.documentElement?Nl(t,getComputedStyle(n.documentElement).backgroundColor):$A.TRANSPARENT,A=n.body?Nl(t,getComputedStyle(n.body).backgroundColor):$A.TRANSPARENT,o=typeof r=="string"?Nl(t,r):r===null?$A.TRANSPARENT:4294967295;return e===n.documentElement?Ci(a)?Ci(A)?o:A:a:o};const rT=Object.freeze(Object.defineProperty({__proto__:null,default:Ud},Symbol.toStringTag,{value:"Module"}));function Xt(t){"@babel/helpers - typeof";return Xt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xt(t)}var $n=Uint8Array,zn=Uint16Array,Pl=Uint32Array,rh=new $n([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),nh=new $n([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Id=new $n([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),tv=function(t,e){for(var r=new zn(31),n=0;n<31;++n)r[n]=e+=1<<t[n-1];for(var a=new Pl(r[30]),n=1;n<30;++n)for(var A=r[n];A<r[n+1];++A)a[A]=A-r[n]<<5|n;return[r,a]},rv=tv(rh,2),nv=rv[0],Dd=rv[1];nv[28]=258,Dd[258]=28;for(var av=tv(nh,0),nT=av[0],Av=av[1],Qd=new zn(32768),wr=0;wr<32768;++wr){var Si=(wr&43690)>>>1|(wr&21845)<<1;Si=(Si&52428)>>>2|(Si&13107)<<2,Si=(Si&61680)>>>4|(Si&3855)<<4,Qd[wr]=((Si&65280)>>>8|(Si&255)<<8)>>>1}for(var bA=function(t,e,r){for(var n=t.length,a=0,A=new zn(e);a<n;++a)++A[t[a]-1];var o=new zn(e);for(a=0;a<e;++a)o[a]=o[a-1]+A[a-1]<<1;var s;if(r){s=new zn(1<<e);var l=15-e;for(a=0;a<n;++a)if(t[a])for(var c=a<<4|t[a],u=e-t[a],p=o[t[a]-1]++<<u,h=p|(1<<u)-1;p<=h;++p)s[Qd[p]>>>l]=c}else for(s=new zn(n),a=0;a<n;++a)s[a]=Qd[o[t[a]-1]++]>>>15-t[a];return s},ki=new $n(288),wr=0;wr<144;++wr)ki[wr]=8;for(var wr=144;wr<256;++wr)ki[wr]=9;for(var wr=256;wr<280;++wr)ki[wr]=7;for(var wr=280;wr<288;++wr)ki[wr]=8;for(var Ml=new $n(32),wr=0;wr<32;++wr)Ml[wr]=5;var aT=bA(ki,9,0),AT=bA(ki,9,1),iT=bA(Ml,5,0),oT=bA(Ml,5,1),Od=function(t){for(var e=t[0],r=1;r<t.length;++r)t[r]>e&&(e=t[r]);return e},Ka=function(t,e,r){var n=e/8>>0;return(t[n]|t[n+1]<<8)>>>(e&7)&r},Pd=function(t,e){var r=e/8>>0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>>(e&7)},Md=function(t){return(t/8>>0)+(t&7&&1)},iv=function(t,e,r){(e==null||e<0)&&(e=0),(r==null||r>t.length)&&(r=t.length);var n=new(t instanceof zn?zn:t instanceof Pl?Pl:$n)(r-e);return n.set(t.subarray(e,r)),n},sT=function(t,e,r){var n=t.length,a=!e||r,A=!r||r.i;r||(r={}),e||(e=new $n(n*3));var o=function(S){var Q=e.length;if(S>Q){var W=new $n(Math.max(Q*2,S));W.set(e),e=W}},s=r.f||0,l=r.p||0,c=r.b||0,u=r.l,p=r.d,h=r.m,d=r.n,w=n*8;do{if(!u){r.f=s=Ka(t,l,1);var f=Ka(t,l+1,3);if(l+=3,f)if(f==1)u=AT,p=oT,h=9,d=5;else if(f==2){var N=Ka(t,l,31)+257,D=Ka(t,l+10,15)+4,H=N+Ka(t,l+5,31)+1;l+=14;for(var R=new $n(H),U=new $n(19),I=0;I<D;++I)U[Id[I]]=Ka(t,l+I*3,7);l+=D*3;var O=Od(U),q=(1<<O)-1;if(!A&&l+H*(O+7)>w)break;for(var T=bA(U,O,1),I=0;I<H;){var L=T[Ka(t,l,q)];l+=L&15;var m=L>>>4;if(m<16)R[I++]=m;else{var G=0,Y=0;for(m==16?(Y=3+Ka(t,l,3),l+=2,G=R[I-1]):m==17?(Y=3+Ka(t,l,7),l+=3):m==18&&(Y=11+Ka(t,l,127),l+=7);Y--;)R[I++]=G}}var se=R.subarray(0,N),he=R.subarray(N);h=Od(se),d=Od(he),u=bA(se,h,1),p=bA(he,d,1)}else throw"invalid block type";else{var m=Md(l)+4,y=t[m-4]|t[m-3]<<8,F=m+y;if(F>n){if(A)throw"unexpected EOF";break}a&&o(c+y),e.set(t.subarray(m,F),c),r.b=c+=y,r.p=l=F*8;continue}if(l>w)throw"unexpected EOF"}a&&o(c+131072);for(var ge=(1<<h)-1,re=(1<<d)-1,le=h+d+18;A||l+le<w;){var G=u[Pd(t,l)&ge],fe=G>>>4;if(l+=G&15,l>w)throw"unexpected EOF";if(!G)throw"invalid length/literal";if(fe<256)e[c++]=fe;else if(fe==256){u=null;break}else{var Ue=fe-254;if(fe>264){var I=fe-257,b=rh[I];Ue=Ka(t,l,(1<<b)-1)+nv[I],l+=b}var _=p[Pd(t,l)&re],B=_>>>4;if(!_)throw"invalid distance";l+=_&15;var he=nT[B];if(B>3){var b=nh[B];he+=Pd(t,l)&(1<<b)-1,l+=b}if(l>w)throw"unexpected EOF";a&&o(c+131072);for(var x=c+Ue;c<x;c+=4)e[c]=e[c-he],e[c+1]=e[c+1-he],e[c+2]=e[c+2-he],e[c+3]=e[c+3-he];c=x}}r.l=u,r.p=l,r.b=c,u&&(s=1,r.m=h,r.d=p,r.n=d)}while(!s);return c==e.length?e:iv(e,0,c)},KA=function(t,e,r){r<<=e&7;var n=e/8>>0;t[n]|=r,t[n+1]|=r>>>8},Rl=function(t,e,r){r<<=e&7;var n=e/8>>0;t[n]|=r,t[n+1]|=r>>>8,t[n+2]|=r>>>16},Rd=function(t,e){for(var r=[],n=0;n<t.length;++n)t[n]&&r.push({s:n,f:t[n]});var a=r.length,A=r.slice();if(!a)return[new $n(0),0];if(a==1){var o=new $n(r[0].s+1);return o[r[0].s]=1,[o,1]}r.sort(function(H,R){return H.f-R.f}),r.push({s:-1,f:25001});var s=r[0],l=r[1],c=0,u=1,p=2;for(r[0]={s:-1,f:s.f+l.f,l:s,r:l};u!=a-1;)s=r[r[c].f<r[p].f?c++:p++],l=r[c!=u&&r[c].f<r[p].f?c++:p++],r[u++]={s:-1,f:s.f+l.f,l:s,r:l};for(var h=A[0].s,n=1;n<a;++n)A[n].s>h&&(h=A[n].s);var d=new zn(h+1),w=Hd(r[u-1],d,0);if(w>e){var n=0,f=0,m=w-e,y=1<<m;for(A.sort(function(R,U){return d[U.s]-d[R.s]||R.f-U.f});n<a;++n){var F=A[n].s;if(d[F]>e)f+=y-(1<<w-d[F]),d[F]=e;else break}for(f>>>=m;f>0;){var N=A[n].s;d[N]<e?f-=1<<e-d[N]++-1:++n}for(;n>=0&&f;--n){var D=A[n].s;d[D]==e&&(--d[D],++f)}w=e}return[new $n(d),w]},Hd=function(t,e,r){return t.s==-1?Math.max(Hd(t.l,e,r+1),Hd(t.r,e,r+1)):e[t.s]=r},ov=function(t){for(var e=t.length;e&&!t[--e];);for(var r=new zn(++e),n=0,a=t[0],A=1,o=function(l){r[n++]=l},s=1;s<=e;++s)if(t[s]==a&&s!=e)++A;else{if(!a&&A>2){for(;A>138;A-=138)o(32754);A>2&&(o(A>10?A-11<<5|28690:A-3<<5|12305),A=0)}else if(A>3){for(o(a),--A;A>6;A-=6)o(8304);A>2&&(o(A-3<<5|8208),A=0)}for(;A--;)o(a);A=1,a=t[s]}return[r.subarray(0,n),e]},Hl=function(t,e){for(var r=0,n=0;n<e.length;++n)r+=t[n]*e[n];return r},ah=function(t,e,r){var n=r.length,a=Md(e+2);t[a]=n&255,t[a+1]=n>>>8,t[a+2]=t[a]^255,t[a+3]=t[a+1]^255;for(var A=0;A<n;++A)t[a+A+4]=r[A];return(a+4+n)*8},sv=function(t,e,r,n,a,A,o,s,l,c,u){KA(e,u++,r),++a[256];for(var p=Rd(a,15),h=p[0],d=p[1],w=Rd(A,15),f=w[0],m=w[1],y=ov(h),F=y[0],N=y[1],D=ov(f),H=D[0],R=D[1],U=new zn(19),I=0;I<F.length;++I)U[F[I]&31]++;for(var I=0;I<H.length;++I)U[H[I]&31]++;for(var O=Rd(U,7),q=O[0],T=O[1],L=19;L>4&&!q[Id[L-1]];--L);var G=c+5<<3,Y=Hl(a,ki)+Hl(A,Ml)+o,se=Hl(a,h)+Hl(A,f)+o+14+3*L+Hl(U,q)+(2*U[16]+3*U[17]+7*U[18]);if(G<=Y&&G<=se)return ah(e,u,t.subarray(l,l+c));var he,ge,re,le;if(KA(e,u,1+(se<Y)),u+=2,se<Y){he=bA(h,d,0),ge=h,re=bA(f,m,0),le=f;var fe=bA(q,T,0);KA(e,u,N-257),KA(e,u+5,R-1),KA(e,u+10,L-4),u+=14;for(var I=0;I<L;++I)KA(e,u+3*I,q[Id[I]]);u+=3*L;for(var Ue=[F,H],b=0;b<2;++b)for(var _=Ue[b],I=0;I<_.length;++I){var B=_[I]&31;KA(e,u,fe[B]),u+=q[B],B>15&&(KA(e,u,_[I]>>>5&127),u+=_[I]>>>12)}}else he=aT,ge=ki,re=iT,le=Ml;for(var I=0;I<s;++I)if(n[I]>255){var B=n[I]>>>18&31;Rl(e,u,he[B+257]),u+=ge[B+257],B>7&&(KA(e,u,n[I]>>>23&31),u+=rh[B]);var x=n[I]&31;Rl(e,u,re[x]),u+=le[x],x>3&&(Rl(e,u,n[I]>>>5&8191),u+=nh[x])}else Rl(e,u,he[n[I]]),u+=ge[n[I]];return Rl(e,u,he[256]),u+ge[256]},lT=new Pl([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),cT=new $n(0),uT=function(t,e,r,n,a,A){var o=t.length,s=new $n(n+o+5*(1+Math.floor(o/7e3))+a),l=s.subarray(n,s.length-a),c=0;if(!e||o<8)for(var u=0;u<=o;u+=65535){var p=u+65535;p<o?c=ah(l,c,t.subarray(u,p)):(l[u]=A,c=ah(l,c,t.subarray(u,o)))}else{for(var h=lT[e-1],d=h>>>13,w=h&8191,f=(1<<r)-1,m=new zn(32768),y=new zn(f+1),F=Math.ceil(r/3),N=2*F,D=function(Ee){return(t[Ee]^t[Ee+1]<<F^t[Ee+2]<<N)&f},H=new Pl(25e3),R=new zn(288),U=new zn(32),I=0,O=0,u=0,q=0,T=0,L=0;u<o;++u){var G=D(u),Y=u&32767,se=y[G];if(m[Y]=se,y[G]=Y,T<=u){var he=o-u;if((I>7e3||q>24576)&&he>423){c=sv(t,l,0,H,R,U,O,q,L,u-L,c),q=I=O=0,L=u;for(var ge=0;ge<286;++ge)R[ge]=0;for(var ge=0;ge<30;++ge)U[ge]=0}var re=2,le=0,fe=w,Ue=Y-se&32767;if(he>2&&G==D(u-Ue))for(var b=Math.min(d,he)-1,_=Math.min(32767,u),B=Math.min(258,he);Ue<=_&&--fe&&Y!=se;){if(t[u+re]==t[u+re-Ue]){for(var x=0;x<B&&t[u+x]==t[u+x-Ue];++x);if(x>re){if(re=x,le=Ue,x>b)break;for(var S=Math.min(Ue,x-2),Q=0,ge=0;ge<S;++ge){var W=u-Ue+ge+32768&32767,ue=m[W],Ce=W-ue+32768&32767;Ce>Q&&(Q=Ce,se=W)}}}Y=se,se=m[Y],Ue+=Y-se+32768&32767}if(le){H[q++]=268435456|Dd[re]<<18|Av[le];var de=Dd[re]&31,ke=Av[le]&31;O+=rh[de]+nh[ke],++R[257+de],++U[ke],T=u+re,++I}else H[q++]=t[u],++R[t[u]]}}c=sv(t,l,A,H,R,U,O,q,L,u-L,c),A||(c=ah(l,c,cT))}return iv(s,0,n+Md(c)+a)},hT=function(){var t=1,e=0;return{p:function(r){for(var n=t,a=e,A=r.length,o=0;o!=A;){for(var s=Math.min(o+5552,A);o<s;++o)n+=r[o],a+=n;n%=65521,a%=65521}t=n,e=a},d:function(){return(t>>>8<<16|(e&255)<<8|e>>>8)+((t&255)<<23)*2}}},fT=function(t,e,r,n,a){return uT(t,e.level==null?6:e.level,e.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(t.length)))*1.5):12+e.mem,r,n,!a)},dT=function(t,e,r){for(;r;++e)t[e]=r,r>>>=8},gT=function(t,e){var r=e.level,n=r==0?0:r<6?1:r==9?3:2;t[0]=120,t[1]=n<<6|(n?32-2*n:1)},pT=function(t){if((t[0]&15)!=8||t[0]>>>4>7||(t[0]<<8|t[1])%31)throw"invalid zlib data";if(t[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function Vd(t,e){e===void 0&&(e={});var r=hT();r.p(t);var n=fT(t,e,2,4);return gT(n,e),dT(n,n.length-4,r.d()),n}function mT(t,e){return sT((pT(t),t.subarray(2,-4)),e)}/** @license
23
- *
24
- * jsPDF - PDF Document creation from JavaScript
25
- * Version 2.5.1 Built on 2022-01-28T15:37:57.791Z
26
- * CommitID 00000000
27
- *
28
- * Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
29
- * 2015-2021 yWorks GmbH, http://www.yworks.com
30
- * 2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
31
- * 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
32
- * 2010 Aaron Spike, https://github.com/acspike
33
- * 2012 Willow Systems Corporation, https://github.com/willowsystems
34
- * 2012 Pablo Hess, https://github.com/pablohess
35
- * 2012 Florian Jenett, https://github.com/fjenett
36
- * 2013 Warren Weckesser, https://github.com/warrenweckesser
37
- * 2013 Youssef Beddad, https://github.com/lifof
38
- * 2013 Lee Driscoll, https://github.com/lsdriscoll
39
- * 2013 Stefan Slonevskiy, https://github.com/stefslon
40
- * 2013 Jeremy Morel, https://github.com/jmorel
41
- * 2013 Christoph Hartmann, https://github.com/chris-rock
42
- * 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
43
- * 2014 James Makes, https://github.com/dollaruw
44
- * 2014 Diego Casorran, https://github.com/diegocr
45
- * 2014 Steven Spungin, https://github.com/Flamenco
46
- * 2014 Kenneth Glassey, https://github.com/Gavvers
47
- *
48
- * Permission is hereby granted, free of charge, to any person obtaining
49
- * a copy of this software and associated documentation files (the
50
- * "Software"), to deal in the Software without restriction, including
51
- * without limitation the rights to use, copy, modify, merge, publish,
52
- * distribute, sublicense, and/or sell copies of the Software, and to
53
- * permit persons to whom the Software is furnished to do so, subject to
54
- * the following conditions:
55
- *
56
- * The above copyright notice and this permission notice shall be
57
- * included in all copies or substantial portions of the Software.
58
- *
59
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
60
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
61
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
62
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
63
- * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
64
- * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
65
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
66
- *
67
- * Contributor(s):
68
- * siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
69
- * kim3er, mfo, alnorth, Flamenco
70
- */var Bt=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function $d(){Bt.console&&typeof Bt.console.log=="function"&&Bt.console.log.apply(Bt.console,arguments)}var hr={log:$d,warn:function(t){Bt.console&&(typeof Bt.console.warn=="function"?Bt.console.warn.apply(Bt.console,arguments):$d.call(null,arguments))},error:function(t){Bt.console&&(typeof Bt.console.error=="function"?Bt.console.error.apply(Bt.console,arguments):$d(t))}};function zd(t,e,r){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){ho(n.response,e,r)},n.onerror=function(){hr.error("could not download file")},n.send()}function lv(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function Ah(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var Vl,Kd,ho=Bt.saveAs||((typeof window>"u"?"undefined":Xt(window))!=="object"||window!==Bt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(t,e,r){var n=Bt.URL||Bt.webkitURL,a=document.createElement("a");e=e||t.name||"download",a.download=e,a.rel="noopener",typeof t=="string"?(a.href=t,a.origin!==location.origin?lv(a.href)?zd(t,e,r):Ah(a,a.target="_blank"):Ah(a)):(a.href=n.createObjectURL(t),setTimeout(function(){n.revokeObjectURL(a.href)},4e4),setTimeout(function(){Ah(a)},0))}:"msSaveOrOpenBlob"in navigator?function(t,e,r){if(e=e||t.name||"download",typeof t=="string")if(lv(t))zd(t,e,r);else{var n=document.createElement("a");n.href=t,n.target="_blank",setTimeout(function(){Ah(n)})}else navigator.msSaveOrOpenBlob(function(a,A){return A===void 0?A={autoBom:!1}:Xt(A)!=="object"&&(hr.warn("Deprecated: Expected third argument to be a object"),A={autoBom:!A}),A.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob([String.fromCharCode(65279),a],{type:a.type}):a}(t,r),e)}:function(t,e,r,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),typeof t=="string")return zd(t,e,r);var a=t.type==="application/octet-stream",A=/constructor/i.test(Bt.HTMLElement)||Bt.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||a&&A)&&(typeof FileReader>"u"?"undefined":Xt(FileReader))==="object"){var s=new FileReader;s.onloadend=function(){var u=s.result;u=o?u:u.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=u:location=u,n=null},s.readAsDataURL(t)}else{var l=Bt.URL||Bt.webkitURL,c=l.createObjectURL(t);n?n.location=c:location.href=c,n=null,setTimeout(function(){l.revokeObjectURL(c)},4e4)}});/**
71
- * A class to parse color values
72
- * @author Stoyan Stefanov <sstoo@gmail.com>
73
- * {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
74
- * @license Use it if you like it
75
- */function cv(t){var e;t=t||"",this.ok=!1,t.charAt(0)=="#"&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",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"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var r=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(s){return[parseInt(s[1]),parseInt(s[2]),parseInt(s[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(s){return[parseInt(s[1],16),parseInt(s[2],16),parseInt(s[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(s){return[parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16),parseInt(s[3]+s[3],16)]}}],n=0;n<r.length;n++){var a=r[n].re,A=r[n].process,o=a.exec(t);o&&(e=A(o),this.r=e[0],this.g=e[1],this.b=e[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var s=this.r.toString(16),l=this.g.toString(16),c=this.b.toString(16);return s.length==1&&(s="0"+s),l.length==1&&(l="0"+l),c.length==1&&(c="0"+c),"#"+s+l+c}}/**
76
- * @license
77
- * Joseph Myers does not specify a particular license for his work.
78
- *
79
- * Author: Joseph Myers
80
- * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
81
- *
82
- * Modified by: Owen Leong
83
- */function Gd(t,e){var r=t[0],n=t[1],a=t[2],A=t[3];r=Nn(r,n,a,A,e[0],7,-680876936),A=Nn(A,r,n,a,e[1],12,-389564586),a=Nn(a,A,r,n,e[2],17,606105819),n=Nn(n,a,A,r,e[3],22,-1044525330),r=Nn(r,n,a,A,e[4],7,-176418897),A=Nn(A,r,n,a,e[5],12,1200080426),a=Nn(a,A,r,n,e[6],17,-1473231341),n=Nn(n,a,A,r,e[7],22,-45705983),r=Nn(r,n,a,A,e[8],7,1770035416),A=Nn(A,r,n,a,e[9],12,-1958414417),a=Nn(a,A,r,n,e[10],17,-42063),n=Nn(n,a,A,r,e[11],22,-1990404162),r=Nn(r,n,a,A,e[12],7,1804603682),A=Nn(A,r,n,a,e[13],12,-40341101),a=Nn(a,A,r,n,e[14],17,-1502002290),r=Ln(r,n=Nn(n,a,A,r,e[15],22,1236535329),a,A,e[1],5,-165796510),A=Ln(A,r,n,a,e[6],9,-1069501632),a=Ln(a,A,r,n,e[11],14,643717713),n=Ln(n,a,A,r,e[0],20,-373897302),r=Ln(r,n,a,A,e[5],5,-701558691),A=Ln(A,r,n,a,e[10],9,38016083),a=Ln(a,A,r,n,e[15],14,-660478335),n=Ln(n,a,A,r,e[4],20,-405537848),r=Ln(r,n,a,A,e[9],5,568446438),A=Ln(A,r,n,a,e[14],9,-1019803690),a=Ln(a,A,r,n,e[3],14,-187363961),n=Ln(n,a,A,r,e[8],20,1163531501),r=Ln(r,n,a,A,e[13],5,-1444681467),A=Ln(A,r,n,a,e[2],9,-51403784),a=Ln(a,A,r,n,e[7],14,1735328473),r=Un(r,n=Ln(n,a,A,r,e[12],20,-1926607734),a,A,e[5],4,-378558),A=Un(A,r,n,a,e[8],11,-2022574463),a=Un(a,A,r,n,e[11],16,1839030562),n=Un(n,a,A,r,e[14],23,-35309556),r=Un(r,n,a,A,e[1],4,-1530992060),A=Un(A,r,n,a,e[4],11,1272893353),a=Un(a,A,r,n,e[7],16,-155497632),n=Un(n,a,A,r,e[10],23,-1094730640),r=Un(r,n,a,A,e[13],4,681279174),A=Un(A,r,n,a,e[0],11,-358537222),a=Un(a,A,r,n,e[3],16,-722521979),n=Un(n,a,A,r,e[6],23,76029189),r=Un(r,n,a,A,e[9],4,-640364487),A=Un(A,r,n,a,e[12],11,-421815835),a=Un(a,A,r,n,e[15],16,530742520),r=In(r,n=Un(n,a,A,r,e[2],23,-995338651),a,A,e[0],6,-198630844),A=In(A,r,n,a,e[7],10,1126891415),a=In(a,A,r,n,e[14],15,-1416354905),n=In(n,a,A,r,e[5],21,-57434055),r=In(r,n,a,A,e[12],6,1700485571),A=In(A,r,n,a,e[3],10,-1894986606),a=In(a,A,r,n,e[10],15,-1051523),n=In(n,a,A,r,e[1],21,-2054922799),r=In(r,n,a,A,e[8],6,1873313359),A=In(A,r,n,a,e[15],10,-30611744),a=In(a,A,r,n,e[6],15,-1560198380),n=In(n,a,A,r,e[13],21,1309151649),r=In(r,n,a,A,e[4],6,-145523070),A=In(A,r,n,a,e[11],10,-1120210379),a=In(a,A,r,n,e[2],15,718787259),n=In(n,a,A,r,e[9],21,-343485551),t[0]=Ti(r,t[0]),t[1]=Ti(n,t[1]),t[2]=Ti(a,t[2]),t[3]=Ti(A,t[3])}function ih(t,e,r,n,a,A){return e=Ti(Ti(e,t),Ti(n,A)),Ti(e<<a|e>>>32-a,r)}function Nn(t,e,r,n,a,A,o){return ih(e&r|~e&n,t,e,a,A,o)}function Ln(t,e,r,n,a,A,o){return ih(e&n|r&~n,t,e,a,A,o)}function Un(t,e,r,n,a,A,o){return ih(e^r^n,t,e,a,A,o)}function In(t,e,r,n,a,A,o){return ih(r^(e|~n),t,e,a,A,o)}function uv(t){var e,r=t.length,n=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)Gd(n,yT(t.substring(e-64,e)));t=t.substring(e-64);var a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<t.length;e++)a[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(a[e>>2]|=128<<(e%4<<3),e>55)for(Gd(n,a),e=0;e<16;e++)a[e]=0;return a[14]=8*r,Gd(n,a),n}function yT(t){var e,r=[];for(e=0;e<64;e+=4)r[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return r}Vl=Bt.atob.bind(Bt),Kd=Bt.btoa.bind(Bt);var hv="0123456789abcdef".split("");function vT(t){for(var e="",r=0;r<4;r++)e+=hv[t>>8*r+4&15]+hv[t>>8*r&15];return e}function wT(t){return String.fromCharCode((255&t)>>0,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function jd(t){return uv(t).map(wT).join("")}var BT=function(t){for(var e=0;e<t.length;e++)t[e]=vT(t[e]);return t.join("")}(uv("hello"))!="5d41402abc4b2a76b9719d911017c592";function Ti(t,e){if(BT){var r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}return t+e&4294967295}/**
84
- * @license
85
- * FPDF is released under a permissive license: there is no usage restriction.
86
- * You may embed it freely in your application (commercial or not), with or
87
- * without modifications.
88
- *
89
- * Reference: http://www.fpdf.org/en/script/script37.php
90
- */function Wd(t,e){var r,n,a,A;if(t!==r){for(var o=(a=t,A=1+(256/t.length>>0),new Array(A+1).join(a)),s=[],l=0;l<256;l++)s[l]=l;var c=0;for(l=0;l<256;l++){var u=s[l];c=(c+u+o.charCodeAt(l))%256,s[l]=s[c],s[c]=u}r=t,n=s}else s=n;var p=e.length,h=0,d=0,w="";for(l=0;l<p;l++)d=(d+(u=s[h=(h+1)%256]))%256,s[h]=s[d],s[d]=u,o=s[(s[h]+s[d])%256],w+=String.fromCharCode(e.charCodeAt(l)^o);return w}/**
91
- * @license
92
- * Licensed under the MIT License.
93
- * http://opensource.org/licenses/mit-license
94
- * Author: Owen Leong (@owenl131)
95
- * Date: 15 Oct 2020
96
- * References:
97
- * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
98
- * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
99
- * http://www.fpdf.org/en/script/script37.php
100
- */var fv={print:4,modify:8,copy:16,"annot-forms":32};function ss(t,e,r,n){this.v=1,this.r=2;var a=192;t.forEach(function(s){if(fv.perm!==void 0)throw new Error("Invalid permission: "+s);a+=fv[s]}),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var A=(e+this.padding).substr(0,32),o=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(A,o),this.P=-(1+(255^a)),this.encryptionKey=jd(A+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=Wd(this.encryptionKey,this.padding)}function ls(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",r=t.length,n=0;n<r;n++){var a=t.charCodeAt(n);a<33||a===35||a===37||a===40||a===41||a===47||a===60||a===62||a===91||a===93||a===123||a===125||a>126?e+="#"+("0"+a.toString(16)).slice(-2):e+=t[n]}return e}function dv(t){if(Xt(t)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(r,n,a){if(a=a||!1,typeof r!="string"||typeof n!="function"||typeof a!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(r)||(e[r]={});var A=Math.random().toString(35);return e[r][A]=[n,!!a],A},this.unsubscribe=function(r){for(var n in e)if(e[n][r])return delete e[n][r],Object.keys(e[n]).length===0&&delete e[n],!0;return!1},this.publish=function(r){if(e.hasOwnProperty(r)){var n=Array.prototype.slice.call(arguments,1),a=[];for(var A in e[r]){var o=e[r][A];try{o[0].apply(t,n)}catch(s){Bt.console&&hr.error("jsPDF PubSub Error",s.message,s)}o[1]&&a.push(A)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function oh(t){if(!(this instanceof oh))return new oh(t);var e="opacity,stroke-opacity".split(",");for(var r in t)t.hasOwnProperty(r)&&e.indexOf(r)>=0&&(this[r]=t[r]);this.id="",this.objectNumber=-1}function gv(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function fo(t,e,r,n,a){if(!(this instanceof fo))return new fo(t,e,r,n,a);this.type=t==="axial"?2:3,this.coords=e,this.colors=r,gv.call(this,n,a)}function cs(t,e,r,n,a){if(!(this instanceof cs))return new cs(t,e,r,n,a);this.boundingBox=t,this.xStep=e,this.yStep=r,this.stream="",this.cloneIndex=0,gv.call(this,n,a)}function xt(t){var e,r=typeof arguments[0]=="string"?arguments[0]:"p",n=arguments[1],a=arguments[2],A=arguments[3],o=[],s=1,l=16,c="S",u=null;Xt(t=t||{})==="object"&&(r=t.orientation,n=t.unit||n,a=t.format||a,A=t.compress||t.compressPdf||A,(u=t.encryption||null)!==null&&(u.userPassword=u.userPassword||"",u.ownerPassword=u.ownerPassword||"",u.userPermissions=u.userPermissions||[]),s=typeof t.userUnit=="number"?Math.abs(t.userUnit):1,t.precision!==void 0&&(e=t.precision),t.floatPrecision!==void 0&&(l=t.floatPrecision),c=t.defaultPathOperation||"S"),o=t.filters||(A===!0?["FlateEncode"]:o),n=n||"mm",r=(""+(r||"P")).toLowerCase();var p=t.putOnlyUsedFonts||!1,h={},d={internal:{},__private__:{}};d.__private__.PubSub=dv;var w="1.3",f=d.__private__.getPdfVersion=function(){return w};d.__private__.setPdfVersion=function(C){w=C};var m={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]};d.__private__.getPageFormats=function(){return m};var y=d.__private__.getPageFormat=function(C){return m[C]};a=a||"a4";var F={COMPAT:"compat",ADVANCED:"advanced"},N=F.COMPAT;function D(){this.saveGraphicsState(),te(new gt(tt,0,0,-tt,0,Wi()*tt).toString()+" cm"),this.setFontSize(this.getFontSize()/tt),c="n",N=F.ADVANCED}function H(){this.restoreGraphicsState(),c="S",N=F.COMPAT}var R=d.__private__.combineFontStyleAndFontWeight=function(C,M){if(C=="bold"&&M=="normal"||C=="bold"&&M==400||C=="normal"&&M=="italic"||C=="bold"&&M=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return M&&(C=M==400||M==="normal"?C==="italic"?"italic":"normal":M!=700&&M!=="bold"||C!=="normal"?(M==700?"bold":M)+""+C:"bold"),C};d.advancedAPI=function(C){var M=N===F.COMPAT;return M&&D.call(this),typeof C!="function"||(C(this),M&&H.call(this)),this},d.compatAPI=function(C){var M=N===F.ADVANCED;return M&&H.call(this),typeof C!="function"||(C(this),M&&D.call(this)),this},d.isAdvancedAPI=function(){return N===F.ADVANCED};var U,I=function(C){if(N!==F.ADVANCED)throw new Error(C+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},O=d.roundToPrecision=d.__private__.roundToPrecision=function(C,M){var ce=e||M;if(isNaN(C)||isNaN(ce))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return C.toFixed(ce).replace(/0+$/,"")};U=d.hpf=d.__private__.hpf=typeof l=="number"?function(C){if(isNaN(C))throw new Error("Invalid argument passed to jsPDF.hpf");return O(C,l)}:l==="smart"?function(C){if(isNaN(C))throw new Error("Invalid argument passed to jsPDF.hpf");return O(C,C>-1&&C<1?16:5)}:function(C){if(isNaN(C))throw new Error("Invalid argument passed to jsPDF.hpf");return O(C,16)};var q=d.f2=d.__private__.f2=function(C){if(isNaN(C))throw new Error("Invalid argument passed to jsPDF.f2");return O(C,2)},T=d.__private__.f3=function(C){if(isNaN(C))throw new Error("Invalid argument passed to jsPDF.f3");return O(C,3)},L=d.scale=d.__private__.scale=function(C){if(isNaN(C))throw new Error("Invalid argument passed to jsPDF.scale");return N===F.COMPAT?C*tt:N===F.ADVANCED?C:void 0},G=function(C){return N===F.COMPAT?Wi()-C:N===F.ADVANCED?C:void 0},Y=function(C){return L(G(C))};d.__private__.setPrecision=d.setPrecision=function(C){typeof parseInt(C,10)=="number"&&(e=parseInt(C,10))};var se,he="00000000000000000000000000000000",ge=d.__private__.getFileId=function(){return he},re=d.__private__.setFileId=function(C){return he=C!==void 0&&/^[a-fA-F0-9]{32}$/.test(C)?C.toUpperCase():he.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),u!==null&&(Rn=new ss(u.userPermissions,u.userPassword,u.ownerPassword,he)),he};d.setFileId=function(C){return re(C),this},d.getFileId=function(){return ge()};var le=d.__private__.convertDateToPDFDate=function(C){var M=C.getTimezoneOffset(),ce=M<0?"+":"-",me=Math.floor(Math.abs(M/60)),_e=Math.abs(M%60),Qe=[ce,B(me),"'",B(_e),"'"].join("");return["D:",C.getFullYear(),B(C.getMonth()+1),B(C.getDate()),B(C.getHours()),B(C.getMinutes()),B(C.getSeconds()),Qe].join("")},fe=d.__private__.convertPDFDateToDate=function(C){var M=parseInt(C.substr(2,4),10),ce=parseInt(C.substr(6,2),10)-1,me=parseInt(C.substr(8,2),10),_e=parseInt(C.substr(10,2),10),Qe=parseInt(C.substr(12,2),10),Xe=parseInt(C.substr(14,2),10);return new Date(M,ce,me,_e,Qe,Xe,0)},Ue=d.__private__.setCreationDate=function(C){var M;if(C===void 0&&(C=new Date),C instanceof Date)M=le(C);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(C))throw new Error("Invalid argument passed to jsPDF.setCreationDate");M=C}return se=M},b=d.__private__.getCreationDate=function(C){var M=se;return C==="jsDate"&&(M=fe(se)),M};d.setCreationDate=function(C){return Ue(C),this},d.getCreationDate=function(C){return b(C)};var _,B=d.__private__.padd2=function(C){return("0"+parseInt(C)).slice(-2)},x=d.__private__.padd2Hex=function(C){return("00"+(C=C.toString())).substr(C.length)},S=0,Q=[],W=[],ue=0,Ce=[],de=[],ke=!1,ne=W,Ee=function(){S=0,ue=0,W=[],Q=[],Ce=[],Z=br(),ee=br()};d.__private__.setCustomOutputDestination=function(C){ke=!0,ne=C};var xe=function(C){ke||(ne=C)};d.__private__.resetCustomOutputDestination=function(){ke=!1,ne=W};var te=d.__private__.out=function(C){return C=C.toString(),ue+=C.length+1,ne.push(C),ne},Pe=d.__private__.write=function(C){return te(arguments.length===1?C.toString():Array.prototype.join.call(arguments," "))},rt=d.__private__.getArrayBuffer=function(C){for(var M=C.length,ce=new ArrayBuffer(M),me=new Uint8Array(ce);M--;)me[M]=C.charCodeAt(M);return ce},Ve=[["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]];d.__private__.getStandardFonts=function(){return Ve};var We=t.fontSize||16;d.__private__.setFontSize=d.setFontSize=function(C){return We=N===F.ADVANCED?C/tt:C,this};var Ye,Je=d.__private__.getFontSize=d.getFontSize=function(){return N===F.COMPAT?We:We*tt},ot=t.R2L||!1;d.__private__.setR2L=d.setR2L=function(C){return ot=C,this},d.__private__.getR2L=d.getR2L=function(){return ot};var at,ft=d.__private__.setZoomMode=function(C){var M=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(C))Ye=C;else if(isNaN(C)){if(M.indexOf(C)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+C+'" is not recognized.');Ye=C}else Ye=parseInt(C,10)};d.__private__.getZoomMode=function(){return Ye};var vt,kt=d.__private__.setPageMode=function(C){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(C)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+C+'" is not recognized.');at=C};d.__private__.getPageMode=function(){return at};var Nt=d.__private__.setLayoutMode=function(C){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(C)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+C+'" is not recognized.');vt=C};d.__private__.getLayoutMode=function(){return vt},d.__private__.setDisplayMode=d.setDisplayMode=function(C,M,ce){return ft(C),Nt(M),kt(ce),this};var dt={title:"",subject:"",author:"",keywords:"",creator:""};d.__private__.getDocumentProperty=function(C){if(Object.keys(dt).indexOf(C)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return dt[C]},d.__private__.getDocumentProperties=function(){return dt},d.__private__.setDocumentProperties=d.setProperties=d.setDocumentProperties=function(C){for(var M in dt)dt.hasOwnProperty(M)&&C[M]&&(dt[M]=C[M]);return this},d.__private__.setDocumentProperty=function(C,M){if(Object.keys(dt).indexOf(C)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return dt[C]=M};var bt,tt,ir,Lt,fr,Qt={},Kt={},Zr=[],Rt={},_r={},Yt={},on={},_t=null,Gt=0,Ct=[],$t=new dv(d),ba=t.hotfixes||[],Ir={},Zn={},sa=[],gt=function C(M,ce,me,_e,Qe,Xe){if(!(this instanceof C))return new C(M,ce,me,_e,Qe,Xe);isNaN(M)&&(M=1),isNaN(ce)&&(ce=0),isNaN(me)&&(me=0),isNaN(_e)&&(_e=1),isNaN(Qe)&&(Qe=0),isNaN(Xe)&&(Xe=0),this._matrix=[M,ce,me,_e,Qe,Xe]};Object.defineProperty(gt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(C){this._matrix[0]=C}}),Object.defineProperty(gt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(C){this._matrix[1]=C}}),Object.defineProperty(gt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(C){this._matrix[2]=C}}),Object.defineProperty(gt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(C){this._matrix[3]=C}}),Object.defineProperty(gt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(C){this._matrix[4]=C}}),Object.defineProperty(gt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(C){this._matrix[5]=C}}),Object.defineProperty(gt.prototype,"a",{get:function(){return this._matrix[0]},set:function(C){this._matrix[0]=C}}),Object.defineProperty(gt.prototype,"b",{get:function(){return this._matrix[1]},set:function(C){this._matrix[1]=C}}),Object.defineProperty(gt.prototype,"c",{get:function(){return this._matrix[2]},set:function(C){this._matrix[2]=C}}),Object.defineProperty(gt.prototype,"d",{get:function(){return this._matrix[3]},set:function(C){this._matrix[3]=C}}),Object.defineProperty(gt.prototype,"e",{get:function(){return this._matrix[4]},set:function(C){this._matrix[4]=C}}),Object.defineProperty(gt.prototype,"f",{get:function(){return this._matrix[5]},set:function(C){this._matrix[5]=C}}),Object.defineProperty(gt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(gt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(gt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(gt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),gt.prototype.join=function(C){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(U).join(C)},gt.prototype.multiply=function(C){var M=C.sx*this.sx+C.shy*this.shx,ce=C.sx*this.shy+C.shy*this.sy,me=C.shx*this.sx+C.sy*this.shx,_e=C.shx*this.shy+C.sy*this.sy,Qe=C.tx*this.sx+C.ty*this.shx+this.tx,Xe=C.tx*this.shy+C.ty*this.sy+this.ty;return new gt(M,ce,me,_e,Qe,Xe)},gt.prototype.decompose=function(){var C=this.sx,M=this.shy,ce=this.shx,me=this.sy,_e=this.tx,Qe=this.ty,Xe=Math.sqrt(C*C+M*M),st=(C/=Xe)*ce+(M/=Xe)*me;ce-=C*st,me-=M*st;var mt=Math.sqrt(ce*ce+me*me);return st/=mt,C*(me/=mt)<M*(ce/=mt)&&(C=-C,M=-M,st=-st,Xe=-Xe),{scale:new gt(Xe,0,0,mt,0,0),translate:new gt(1,0,0,1,_e,Qe),rotate:new gt(C,M,-M,C,0,0),skew:new gt(1,0,st,1,0,0)}},gt.prototype.toString=function(C){return this.join(" ")},gt.prototype.inversed=function(){var C=this.sx,M=this.shy,ce=this.shx,me=this.sy,_e=this.tx,Qe=this.ty,Xe=1/(C*me-M*ce),st=me*Xe,mt=-M*Xe,Ut=-ce*Xe,Mt=C*Xe;return new gt(st,mt,Ut,Mt,-st*_e-Ut*Qe,-mt*_e-Mt*Qe)},gt.prototype.applyToPoint=function(C){var M=C.x*this.sx+C.y*this.shx+this.tx,ce=C.x*this.shy+C.y*this.sy+this.ty;return new rl(M,ce)},gt.prototype.applyToRectangle=function(C){var M=this.applyToPoint(C),ce=this.applyToPoint(new rl(C.x+C.w,C.y+C.h));return new zc(M.x,M.y,ce.x-M.x,ce.y-M.y)},gt.prototype.clone=function(){var C=this.sx,M=this.shy,ce=this.shx,me=this.sy,_e=this.tx,Qe=this.ty;return new gt(C,M,ce,me,_e,Qe)},d.Matrix=gt;var Fn=d.matrixMult=function(C,M){return M.multiply(C)},Mn=new gt(1,0,0,1,0,0);d.unitMatrix=d.identityMatrix=Mn;var mr=function(C,M){if(!_r[C]){var ce=(M instanceof fo?"Sh":"P")+(Object.keys(Rt).length+1).toString(10);M.id=ce,_r[C]=ce,Rt[ce]=M,$t.publish("addPattern",M)}};d.ShadingPattern=fo,d.TilingPattern=cs,d.addShadingPattern=function(C,M){return I("addShadingPattern()"),mr(C,M),this},d.beginTilingPattern=function(C){I("beginTilingPattern()"),f0(C.boundingBox[0],C.boundingBox[1],C.boundingBox[2]-C.boundingBox[0],C.boundingBox[3]-C.boundingBox[1],C.matrix)},d.endTilingPattern=function(C,M){I("endTilingPattern()"),M.stream=de[_].join(`
101
- `),mr(C,M),$t.publish("endTilingPattern",M),sa.pop().restore()};var xr=d.__private__.newObject=function(){var C=br();return V(C,!0),C},br=d.__private__.newObjectDeferred=function(){return S++,Q[S]=function(){return ue},S},V=function(C,M){return M=typeof M=="boolean"&&M,Q[C]=ue,M&&te(C+" 0 obj"),C},ie=d.__private__.newAdditionalObject=function(){var C={objId:br(),content:""};return Ce.push(C),C},Z=br(),ee=br(),Ae=d.__private__.decodeColorString=function(C){var M=C.split(" ");if(M.length!==2||M[1]!=="g"&&M[1]!=="G")M.length===5&&(M[4]==="k"||M[4]==="K")&&(M=[(1-M[0])*(1-M[3]),(1-M[1])*(1-M[3]),(1-M[2])*(1-M[3]),"r"]);else{var ce=parseFloat(M[0]);M=[ce,ce,ce,"r"]}for(var me="#",_e=0;_e<3;_e++)me+=("0"+Math.floor(255*parseFloat(M[_e])).toString(16)).slice(-2);return me},oe=d.__private__.encodeColorString=function(C){var M;typeof C=="string"&&(C={ch1:C});var ce=C.ch1,me=C.ch2,_e=C.ch3,Qe=C.ch4,Xe=C.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof ce=="string"&&ce.charAt(0)!=="#"){var st=new cv(ce);if(st.ok)ce=st.toHex();else if(!/^\d*\.?\d*$/.test(ce))throw new Error('Invalid color "'+ce+'" passed to jsPDF.encodeColorString.')}if(typeof ce=="string"&&/^#[0-9A-Fa-f]{3}$/.test(ce)&&(ce="#"+ce[1]+ce[1]+ce[2]+ce[2]+ce[3]+ce[3]),typeof ce=="string"&&/^#[0-9A-Fa-f]{6}$/.test(ce)){var mt=parseInt(ce.substr(1),16);ce=mt>>16&255,me=mt>>8&255,_e=255&mt}if(me===void 0||Qe===void 0&&ce===me&&me===_e)if(typeof ce=="string")M=ce+" "+Xe[0];else switch(C.precision){case 2:M=q(ce/255)+" "+Xe[0];break;case 3:default:M=T(ce/255)+" "+Xe[0]}else if(Qe===void 0||Xt(Qe)==="object"){if(Qe&&!isNaN(Qe.a)&&Qe.a===0)return M=["1.","1.","1.",Xe[1]].join(" ");if(typeof ce=="string")M=[ce,me,_e,Xe[1]].join(" ");else switch(C.precision){case 2:M=[q(ce/255),q(me/255),q(_e/255),Xe[1]].join(" ");break;default:case 3:M=[T(ce/255),T(me/255),T(_e/255),Xe[1]].join(" ")}}else if(typeof ce=="string")M=[ce,me,_e,Qe,Xe[2]].join(" ");else switch(C.precision){case 2:M=[q(ce),q(me),q(_e),q(Qe),Xe[2]].join(" ");break;case 3:default:M=[T(ce),T(me),T(_e),T(Qe),Xe[2]].join(" ")}return M},Se=d.__private__.getFilters=function(){return o},Ie=d.__private__.putStream=function(C){var M=(C=C||{}).data||"",ce=C.filters||Se(),me=C.alreadyAppliedFilters||[],_e=C.addLength1||!1,Qe=M.length,Xe=C.objectId,st=function(Hn){return Hn};if(u!==null&&Xe===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");u!==null&&(st=Rn.encryptor(Xe,0));var mt={};ce===!0&&(ce=["FlateEncode"]);var Ut=C.additionalKeyValues||[],Mt=(mt=xt.API.processDataByFilters!==void 0?xt.API.processDataByFilters(M,ce):{data:M,reverseChain:[]}).reverseChain+(Array.isArray(me)?me.join(" "):me.toString());if(mt.data.length!==0&&(Ut.push({key:"Length",value:mt.data.length}),_e===!0&&Ut.push({key:"Length1",value:Qe})),Mt.length!=0)if(Mt.split("/").length-1==1)Ut.push({key:"Filter",value:Mt});else{Ut.push({key:"Filter",value:"["+Mt+"]"});for(var jt=0;jt<Ut.length;jt+=1)if(Ut[jt].key==="DecodeParms"){for(var Fr=[],Dr=0;Dr<mt.reverseChain.split("/").length-1;Dr+=1)Fr.push("null");Fr.push(Ut[jt].value),Ut[jt].value="["+Fr.join(" ")+"]"}}te("<<");for(var en=0;en<Ut.length;en++)te("/"+Ut[en].key+" "+Ut[en].value);te(">>"),mt.data.length!==0&&(te("stream"),te(st(mt.data)),te("endstream"))},Fe=d.__private__.putPage=function(C){var M=C.number,ce=C.data,me=C.objId,_e=C.contentsObjId;V(me,!0),te("<</Type /Page"),te("/Parent "+C.rootDictionaryObjId+" 0 R"),te("/Resources "+C.resourceDictionaryObjId+" 0 R"),te("/MediaBox ["+parseFloat(U(C.mediaBox.bottomLeftX))+" "+parseFloat(U(C.mediaBox.bottomLeftY))+" "+U(C.mediaBox.topRightX)+" "+U(C.mediaBox.topRightY)+"]"),C.cropBox!==null&&te("/CropBox ["+U(C.cropBox.bottomLeftX)+" "+U(C.cropBox.bottomLeftY)+" "+U(C.cropBox.topRightX)+" "+U(C.cropBox.topRightY)+"]"),C.bleedBox!==null&&te("/BleedBox ["+U(C.bleedBox.bottomLeftX)+" "+U(C.bleedBox.bottomLeftY)+" "+U(C.bleedBox.topRightX)+" "+U(C.bleedBox.topRightY)+"]"),C.trimBox!==null&&te("/TrimBox ["+U(C.trimBox.bottomLeftX)+" "+U(C.trimBox.bottomLeftY)+" "+U(C.trimBox.topRightX)+" "+U(C.trimBox.topRightY)+"]"),C.artBox!==null&&te("/ArtBox ["+U(C.artBox.bottomLeftX)+" "+U(C.artBox.bottomLeftY)+" "+U(C.artBox.topRightX)+" "+U(C.artBox.topRightY)+"]"),typeof C.userUnit=="number"&&C.userUnit!==1&&te("/UserUnit "+C.userUnit),$t.publish("putPage",{objId:me,pageContext:Ct[M],pageNumber:M,page:ce}),te("/Contents "+_e+" 0 R"),te(">>"),te("endobj");var Qe=ce.join(`
102
- `);return N===F.ADVANCED&&(Qe+=`
103
- Q`),V(_e,!0),Ie({data:Qe,filters:Se(),objectId:_e}),te("endobj"),me},pe=d.__private__.putPages=function(){var C,M,ce=[];for(C=1;C<=Gt;C++)Ct[C].objId=br(),Ct[C].contentsObjId=br();for(C=1;C<=Gt;C++)ce.push(Fe({number:C,data:de[C],objId:Ct[C].objId,contentsObjId:Ct[C].contentsObjId,mediaBox:Ct[C].mediaBox,cropBox:Ct[C].cropBox,bleedBox:Ct[C].bleedBox,trimBox:Ct[C].trimBox,artBox:Ct[C].artBox,userUnit:Ct[C].userUnit,rootDictionaryObjId:Z,resourceDictionaryObjId:ee}));V(Z,!0),te("<</Type /Pages");var me="/Kids [";for(M=0;M<Gt;M++)me+=ce[M]+" 0 R ";te(me+"]"),te("/Count "+Gt),te(">>"),te("endobj"),$t.publish("postPutPages")},X=function(C){$t.publish("putFont",{font:C,out:te,newObject:xr,putStream:Ie}),C.isAlreadyPutted!==!0&&(C.objectNumber=xr(),te("<<"),te("/Type /Font"),te("/BaseFont /"+ls(C.postScriptName)),te("/Subtype /Type1"),typeof C.encoding=="string"&&te("/Encoding /"+C.encoding),te("/FirstChar 32"),te("/LastChar 255"),te(">>"),te("endobj"))},we=function(){for(var C in Qt)Qt.hasOwnProperty(C)&&(p===!1||p===!0&&h.hasOwnProperty(C))&&X(Qt[C])},Le=function(C){C.objectNumber=xr();var M=[];M.push({key:"Type",value:"/XObject"}),M.push({key:"Subtype",value:"/Form"}),M.push({key:"BBox",value:"["+[U(C.x),U(C.y),U(C.x+C.width),U(C.y+C.height)].join(" ")+"]"}),M.push({key:"Matrix",value:"["+C.matrix.toString()+"]"});var ce=C.pages[1].join(`
104
- `);Ie({data:ce,additionalKeyValues:M,objectId:C.objectNumber}),te("endobj")},Ke=function(){for(var C in Ir)Ir.hasOwnProperty(C)&&Le(Ir[C])},ze=function(C,M){var ce,me=[],_e=1/(M-1);for(ce=0;ce<1;ce+=_e)me.push(ce);if(me.push(1),C[0].offset!=0){var Qe={offset:0,color:C[0].color};C.unshift(Qe)}if(C[C.length-1].offset!=1){var Xe={offset:1,color:C[C.length-1].color};C.push(Xe)}for(var st="",mt=0,Ut=0;Ut<me.length;Ut++){for(ce=me[Ut];ce>C[mt+1].offset;)mt++;var Mt=C[mt].offset,jt=(ce-Mt)/(C[mt+1].offset-Mt),Fr=C[mt].color,Dr=C[mt+1].color;st+=x(Math.round((1-jt)*Fr[0]+jt*Dr[0]).toString(16))+x(Math.round((1-jt)*Fr[1]+jt*Dr[1]).toString(16))+x(Math.round((1-jt)*Fr[2]+jt*Dr[2]).toString(16))}return st.trim()},qe=function(C,M){M||(M=21);var ce=xr(),me=ze(C.colors,M),_e=[];_e.push({key:"FunctionType",value:"0"}),_e.push({key:"Domain",value:"[0.0 1.0]"}),_e.push({key:"Size",value:"["+M+"]"}),_e.push({key:"BitsPerSample",value:"8"}),_e.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),_e.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ie({data:me,additionalKeyValues:_e,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:ce}),te("endobj"),C.objectNumber=xr(),te("<< /ShadingType "+C.type),te("/ColorSpace /DeviceRGB");var Qe="/Coords ["+U(parseFloat(C.coords[0]))+" "+U(parseFloat(C.coords[1]))+" ";C.type===2?Qe+=U(parseFloat(C.coords[2]))+" "+U(parseFloat(C.coords[3])):Qe+=U(parseFloat(C.coords[2]))+" "+U(parseFloat(C.coords[3]))+" "+U(parseFloat(C.coords[4]))+" "+U(parseFloat(C.coords[5])),te(Qe+="]"),C.matrix&&te("/Matrix ["+C.matrix.toString()+"]"),te("/Function "+ce+" 0 R"),te("/Extend [true true]"),te(">>"),te("endobj")},ut=function(C,M){var ce=br(),me=xr();M.push({resourcesOid:ce,objectOid:me}),C.objectNumber=me;var _e=[];_e.push({key:"Type",value:"/Pattern"}),_e.push({key:"PatternType",value:"1"}),_e.push({key:"PaintType",value:"1"}),_e.push({key:"TilingType",value:"1"}),_e.push({key:"BBox",value:"["+C.boundingBox.map(U).join(" ")+"]"}),_e.push({key:"XStep",value:U(C.xStep)}),_e.push({key:"YStep",value:U(C.yStep)}),_e.push({key:"Resources",value:ce+" 0 R"}),C.matrix&&_e.push({key:"Matrix",value:"["+C.matrix.toString()+"]"}),Ie({data:C.stream,additionalKeyValues:_e,objectId:C.objectNumber}),te("endobj")},zt=function(C){var M;for(M in Rt)Rt.hasOwnProperty(M)&&(Rt[M]instanceof fo?qe(Rt[M]):Rt[M]instanceof cs&&ut(Rt[M],C))},Et=function(C){for(var M in C.objectNumber=xr(),te("<<"),C)switch(M){case"opacity":te("/ca "+q(C[M]));break;case"stroke-opacity":te("/CA "+q(C[M]))}te(">>"),te("endobj")},Er=function(){var C;for(C in Yt)Yt.hasOwnProperty(C)&&Et(Yt[C])},la=function(){for(var C in te("/XObject <<"),Ir)Ir.hasOwnProperty(C)&&Ir[C].objectNumber>=0&&te("/"+C+" "+Ir[C].objectNumber+" 0 R");$t.publish("putXobjectDict"),te(">>")},DA=function(){Rn.oid=xr(),te("<<"),te("/Filter /Standard"),te("/V "+Rn.v),te("/R "+Rn.r),te("/U <"+Rn.toHexString(Rn.U)+">"),te("/O <"+Rn.toHexString(Rn.O)+">"),te("/P "+Rn.P),te(">>"),te("endobj")},QA=function(){for(var C in te("/Font <<"),Qt)Qt.hasOwnProperty(C)&&(p===!1||p===!0&&h.hasOwnProperty(C))&&te("/"+C+" "+Qt[C].objectNumber+" 0 R");te(">>")},cA=function(){if(Object.keys(Rt).length>0){for(var C in te("/Shading <<"),Rt)Rt.hasOwnProperty(C)&&Rt[C]instanceof fo&&Rt[C].objectNumber>=0&&te("/"+C+" "+Rt[C].objectNumber+" 0 R");$t.publish("putShadingPatternDict"),te(">>")}},OA=function(C){if(Object.keys(Rt).length>0){for(var M in te("/Pattern <<"),Rt)Rt.hasOwnProperty(M)&&Rt[M]instanceof d.TilingPattern&&Rt[M].objectNumber>=0&&Rt[M].objectNumber<C&&te("/"+M+" "+Rt[M].objectNumber+" 0 R");$t.publish("putTilingPatternDict"),te(">>")}},Ca=function(){if(Object.keys(Yt).length>0){var C;for(C in te("/ExtGState <<"),Yt)Yt.hasOwnProperty(C)&&Yt[C].objectNumber>=0&&te("/"+C+" "+Yt[C].objectNumber+" 0 R");$t.publish("putGStateDict"),te(">>")}},zr=function(C){V(C.resourcesOid,!0),te("<<"),te("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),QA(),cA(),OA(C.objectOid),Ca(),la(),te(">>"),te("endobj")},Jf=function(){var C=[];we(),Er(),Ke(),zt(C),$t.publish("putResources"),C.forEach(zr),zr({resourcesOid:ee,objectOid:Number.MAX_SAFE_INTEGER}),$t.publish("postPutResources")},Zf=function(){$t.publish("putAdditionalObjects");for(var C=0;C<Ce.length;C++){var M=Ce[C];V(M.objId,!0),te(M.content),te("endobj")}$t.publish("postPutAdditionalObjects")},e0=function(C){Kt[C.fontName]=Kt[C.fontName]||{},Kt[C.fontName][C.fontStyle]=C.id},Dc=function(C,M,ce,me,_e){var Qe={id:"F"+(Object.keys(Qt).length+1).toString(10),postScriptName:C,fontName:M,fontStyle:ce,encoding:me,isStandardFont:_e||!1,metadata:{}};return $t.publish("addFont",{font:Qe,instance:this}),Qt[Qe.id]=Qe,e0(Qe),Qe.id},gm=function(C){for(var M=0,ce=Ve.length;M<ce;M++){var me=Dc.call(this,C[M][0],C[M][1],C[M][2],Ve[M][3],!0);p===!1&&(h[me]=!0);var _e=C[M][0].split("-");e0({id:me,fontName:_e[0],fontStyle:_e[1]||""})}$t.publish("addFonts",{fonts:Qt,dictionary:Kt})},uA=function(C){return C.foo=function(){try{return C.apply(this,arguments)}catch(me){var M=me.stack||"";~M.indexOf(" at ")&&(M=M.split(" at ")[1]);var ce="Error in function "+M.split(`
105
- `)[0].split("<")[0]+": "+me.message;if(!Bt.console)throw new Error(ce);Bt.console.error(ce,me),Bt.alert&&alert(ce)}},C.foo.bar=C,C.foo},qs=function(C,M){var ce,me,_e,Qe,Xe,st,mt,Ut,Mt;if(_e=(M=M||{}).sourceEncoding||"Unicode",Xe=M.outputEncoding,(M.autoencode||Xe)&&Qt[bt].metadata&&Qt[bt].metadata[_e]&&Qt[bt].metadata[_e].encoding&&(Qe=Qt[bt].metadata[_e].encoding,!Xe&&Qt[bt].encoding&&(Xe=Qt[bt].encoding),!Xe&&Qe.codePages&&(Xe=Qe.codePages[0]),typeof Xe=="string"&&(Xe=Qe[Xe]),Xe)){for(mt=!1,st=[],ce=0,me=C.length;ce<me;ce++)(Ut=Xe[C.charCodeAt(ce)])?st.push(String.fromCharCode(Ut)):st.push(C[ce]),st[ce].charCodeAt(0)>>8&&(mt=!0);C=st.join("")}for(ce=C.length;mt===void 0&&ce!==0;)C.charCodeAt(ce-1)>>8&&(mt=!0),ce--;if(!mt)return C;for(st=M.noBOM?[]:[254,255],ce=0,me=C.length;ce<me;ce++){if((Mt=(Ut=C.charCodeAt(ce))>>8)>>8)throw new Error("Character at position "+ce+" of string '"+C+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");st.push(Mt),st.push(Ut-(Mt<<8))}return String.fromCharCode.apply(void 0,st)},ca=d.__private__.pdfEscape=d.pdfEscape=function(C,M){return qs(C,M).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Qc=d.__private__.beginPage=function(C){de[++Gt]=[],Ct[Gt]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(C[0]),topRightY:Number(C[1])}},r0(Gt),xe(de[_])},t0=function(C,M){var ce,me,_e;switch(r=M||r,typeof C=="string"&&(ce=y(C.toLowerCase()),Array.isArray(ce)&&(me=ce[0],_e=ce[1])),Array.isArray(C)&&(me=C[0]*tt,_e=C[1]*tt),isNaN(me)&&(me=a[0],_e=a[1]),(me>14400||_e>14400)&&(hr.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),me=Math.min(14400,me),_e=Math.min(14400,_e)),a=[me,_e],r.substr(0,1)){case"l":_e>me&&(a=[_e,me]);break;case"p":me>_e&&(a=[_e,me])}Qc(a),s0(Rc),te(hA),Vc!==0&&te(Vc+" J"),$c!==0&&te($c+" j"),$t.publish("addPage",{pageNumber:Gt})},pm=function(C){C>0&&C<=Gt&&(de.splice(C,1),Ct.splice(C,1),Gt--,_>Gt&&(_=Gt),this.setPage(_))},r0=function(C){C>0&&C<=Gt&&(_=C)},mm=d.__private__.getNumberOfPages=d.getNumberOfPages=function(){return de.length-1},n0=function(C,M,ce){var me,_e=void 0;return ce=ce||{},C=C!==void 0?C:Qt[bt].fontName,M=M!==void 0?M:Qt[bt].fontStyle,me=C.toLowerCase(),Kt[me]!==void 0&&Kt[me][M]!==void 0?_e=Kt[me][M]:Kt[C]!==void 0&&Kt[C][M]!==void 0?_e=Kt[C][M]:ce.disableWarning===!1&&hr.warn("Unable to look up font label for font '"+C+"', '"+M+"'. Refer to getFontList() for available fonts."),_e||ce.noFallback||(_e=Kt.times[M])==null&&(_e=Kt.times.normal),_e},ym=d.__private__.putInfo=function(){var C=xr(),M=function(me){return me};for(var ce in u!==null&&(M=Rn.encryptor(C,0)),te("<<"),te("/Producer ("+ca(M("jsPDF "+xt.version))+")"),dt)dt.hasOwnProperty(ce)&&dt[ce]&&te("/"+ce.substr(0,1).toUpperCase()+ce.substr(1)+" ("+ca(M(dt[ce]))+")");te("/CreationDate ("+ca(M(se))+")"),te(">>"),te("endobj")},Oc=d.__private__.putCatalog=function(C){var M=(C=C||{}).rootDictionaryObjId||Z;switch(xr(),te("<<"),te("/Type /Catalog"),te("/Pages "+M+" 0 R"),Ye||(Ye="fullwidth"),Ye){case"fullwidth":te("/OpenAction [3 0 R /FitH null]");break;case"fullheight":te("/OpenAction [3 0 R /FitV null]");break;case"fullpage":te("/OpenAction [3 0 R /Fit]");break;case"original":te("/OpenAction [3 0 R /XYZ null null 1]");break;default:var ce=""+Ye;ce.substr(ce.length-1)==="%"&&(Ye=parseInt(Ye)/100),typeof Ye=="number"&&te("/OpenAction [3 0 R /XYZ null null "+q(Ye)+"]")}switch(vt||(vt="continuous"),vt){case"continuous":te("/PageLayout /OneColumn");break;case"single":te("/PageLayout /SinglePage");break;case"two":case"twoleft":te("/PageLayout /TwoColumnLeft");break;case"tworight":te("/PageLayout /TwoColumnRight")}at&&te("/PageMode /"+at),$t.publish("putCatalog"),te(">>"),te("endobj")},vm=d.__private__.putTrailer=function(){te("trailer"),te("<<"),te("/Size "+(S+1)),te("/Root "+S+" 0 R"),te("/Info "+(S-1)+" 0 R"),u!==null&&te("/Encrypt "+Rn.oid+" 0 R"),te("/ID [ <"+he+"> <"+he+"> ]"),te(">>")},wm=d.__private__.putHeader=function(){te("%PDF-"+w),te("%ºß¬à")},Bm=d.__private__.putXRef=function(){var C="0000000000";te("xref"),te("0 "+(S+1)),te("0000000000 65535 f ");for(var M=1;M<=S;M++)typeof Q[M]=="function"?te((C+Q[M]()).slice(-10)+" 00000 n "):Q[M]!==void 0?te((C+Q[M]).slice(-10)+" 00000 n "):te("0000000000 00000 n ")},li=d.__private__.buildDocument=function(){Ee(),xe(W),$t.publish("buildDocument"),wm(),pe(),Zf(),Jf(),u!==null&&DA(),ym(),Oc();var C=ue;return Bm(),vm(),te("startxref"),te(""+C),te("%%EOF"),xe(de[_]),W.join(`
106
- `)},Ys=d.__private__.getBlob=function(C){return new Blob([rt(C)],{type:"application/pdf"})},Js=d.output=d.__private__.output=uA(function(C,M){switch(typeof(M=M||{})=="string"?M={filename:M}:M.filename=M.filename||"generated.pdf",C){case void 0:return li();case"save":d.save(M.filename);break;case"arraybuffer":return rt(li());case"blob":return Ys(li());case"bloburi":case"bloburl":if(Bt.URL!==void 0&&typeof Bt.URL.createObjectURL=="function")return Bt.URL&&Bt.URL.createObjectURL(Ys(li()))||void 0;hr.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var ce="",me=li();try{ce=Kd(me)}catch{ce=Kd(unescape(encodeURIComponent(me)))}return"data:application/pdf;filename="+M.filename+";base64,"+ce;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Bt)==="[object Window]"){var _e="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Qe=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';M.pdfObjectUrl&&(_e=M.pdfObjectUrl,Qe="");var Xe='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+_e+'"'+Qe+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(M)+");<\/script></body></html>",st=Bt.open();return st!==null&&st.document.write(Xe),st}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Bt)==="[object Window]"){var mt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(M.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+M.filename+'" width="500px" height="400px" /></body></html>',Ut=Bt.open();if(Ut!==null){Ut.document.write(mt);var Mt=this;Ut.document.documentElement.querySelector("#pdfViewer").onload=function(){Ut.document.title=M.filename,Ut.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Mt.output("bloburl"))}}return Ut}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Bt)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var jt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",M)+'"></iframe></body></html>',Fr=Bt.open();if(Fr!==null&&(Fr.document.write(jt),Fr.document.title=M.filename),Fr||typeof safari>"u")return Fr;break;case"datauri":case"dataurl":return Bt.document.location.href=this.output("datauristring",M);default:return null}}),a0=function(C){return Array.isArray(ba)===!0&&ba.indexOf(C)>-1};switch(n){case"pt":tt=1;break;case"mm":tt=72/25.4;break;case"cm":tt=72/2.54;break;case"in":tt=72;break;case"px":tt=a0("px_scaling")==1?.75:96/72;break;case"pc":case"em":tt=12;break;case"ex":tt=6;break;default:if(typeof n!="number")throw new Error("Invalid unit: "+n);tt=n}var Rn=null;Ue(),re();var xm=function(C){return u!==null?Rn.encryptor(C,0):function(M){return M}},A0=d.__private__.getPageInfo=d.getPageInfo=function(C){if(isNaN(C)||C%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Ct[C].objId,pageNumber:C,pageContext:Ct[C]}},Ft=d.__private__.getPageInfoByObjId=function(C){if(isNaN(C)||C%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var M in Ct)if(Ct[M].objId===C)break;return A0(M)},bm=d.__private__.getCurrentPageInfo=d.getCurrentPageInfo=function(){return{objId:Ct[_].objId,pageNumber:_,pageContext:Ct[_]}};d.addPage=function(){return t0.apply(this,arguments),this},d.setPage=function(){return r0.apply(this,arguments),xe.call(this,de[_]),this},d.insertPage=function(C){return this.addPage(),this.movePage(_,C),this},d.movePage=function(C,M){var ce,me;if(C>M){ce=de[C],me=Ct[C];for(var _e=C;_e>M;_e--)de[_e]=de[_e-1],Ct[_e]=Ct[_e-1];de[M]=ce,Ct[M]=me,this.setPage(M)}else if(C<M){ce=de[C],me=Ct[C];for(var Qe=C;Qe<M;Qe++)de[Qe]=de[Qe+1],Ct[Qe]=Ct[Qe+1];de[M]=ce,Ct[M]=me,this.setPage(M)}return this},d.deletePage=function(){return pm.apply(this,arguments),this},d.__private__.text=d.text=function(C,M,ce,me,_e){var Qe,Xe,st,mt,Ut,Mt,jt,Fr,Dr,en=(me=me||{}).scope||this;if(typeof C=="number"&&typeof M=="number"&&(typeof ce=="string"||Array.isArray(ce))){var Hn=ce;ce=M,M=C,C=Hn}if(arguments[3]instanceof gt?(I("The transform parameter of text() with a Matrix value"),Dr=_e):(st=arguments[4],mt=arguments[5],Xt(jt=arguments[3])==="object"&&jt!==null||(typeof st=="string"&&(mt=st,st=null),typeof jt=="string"&&(mt=jt,jt=null),typeof jt=="number"&&(st=jt,jt=null),me={flags:jt,angle:st,align:mt})),isNaN(M)||isNaN(ce)||C==null)throw new Error("Invalid arguments passed to jsPDF.text");if(C.length===0)return en;var gn="",fA=!1,Ea=typeof me.lineHeightFactor=="number"?me.lineHeightFactor:zo,ui=en.internal.scaleFactor;function d0(yr){return yr=yr.split(" ").join(Array(me.TabLen||9).join(" ")),ca(yr,jt)}function Wc(yr){for(var vr,Kr=yr.concat(),sn=[],gi=Kr.length;gi--;)typeof(vr=Kr.shift())=="string"?sn.push(vr):Array.isArray(yr)&&(vr.length===1||vr[1]===void 0&&vr[2]===void 0)?sn.push(vr[0]):sn.push([vr[0],vr[1],vr[2]]);return sn}function Xc(yr,vr){var Kr;if(typeof yr=="string")Kr=vr(yr)[0];else if(Array.isArray(yr)){for(var sn,gi,Zi=yr.concat(),hl=[],p0=Zi.length;p0--;)typeof(sn=Zi.shift())=="string"?hl.push(vr(sn)[0]):Array.isArray(sn)&&typeof sn[0]=="string"&&(gi=vr(sn[0],sn[1],sn[2]),hl.push([gi[0],gi[1],gi[2]]));Kr=hl}return Kr}var al=!1,qc=!0;if(typeof C=="string")al=!0;else if(Array.isArray(C)){var Yc=C.concat();Xe=[];for(var Al,ua=Yc.length;ua--;)(typeof(Al=Yc.shift())!="string"||Array.isArray(Al)&&typeof Al[0]!="string")&&(qc=!1);al=qc}if(al===!1)throw new Error('Type of text must be string or Array. "'+C+'" is not recognized.');typeof C=="string"&&(C=C.match(/[\r?\n]/)?C.split(/\r\n|\r|\n/g):[C]);var il=We/en.internal.scaleFactor,ol=il*(Ea-1);switch(me.baseline){case"bottom":ce-=ol;break;case"top":ce+=il-ol;break;case"hanging":ce+=il-2*ol;break;case"middle":ce+=il/2-ol}if((Mt=me.maxWidth||0)>0&&(typeof C=="string"?C=en.splitTextToSize(C,Mt):Object.prototype.toString.call(C)==="[object Array]"&&(C=C.reduce(function(yr,vr){return yr.concat(en.splitTextToSize(vr,Mt))},[]))),Qe={text:C,x:M,y:ce,options:me,mutex:{pdfEscape:ca,activeFontKey:bt,fonts:Qt,activeFontSize:We}},$t.publish("preProcessText",Qe),C=Qe.text,st=(me=Qe.options).angle,!(Dr instanceof gt)&&st&&typeof st=="number"){st*=Math.PI/180,me.rotationDirection===0&&(st=-st),N===F.ADVANCED&&(st=-st);var sl=Math.cos(st),Jc=Math.sin(st);Dr=new gt(sl,Jc,-Jc,sl,0,0)}else st&&st instanceof gt&&(Dr=st);N!==F.ADVANCED||Dr||(Dr=Mn),(Ut=me.charSpace||tl)!==void 0&&(gn+=U(L(Ut))+` Tc
107
- `,this.setCharSpace(this.getCharSpace()||0)),(Fr=me.horizontalScale)!==void 0&&(gn+=U(100*Fr)+` Tz
108
- `),me.lang;var ha=-1,Um=me.renderingMode!==void 0?me.renderingMode:me.stroke,Zc=en.internal.getCurrentPageInfo().pageContext;switch(Um){case 0:case!1:case"fill":ha=0;break;case 1:case!0:case"stroke":ha=1;break;case 2:case"fillThenStroke":ha=2;break;case 3:case"invisible":ha=3;break;case 4:case"fillAndAddForClipping":ha=4;break;case 5:case"strokeAndAddPathForClipping":ha=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":ha=6;break;case 7:case"addToPathForClipping":ha=7}var g0=Zc.usedRenderingMode!==void 0?Zc.usedRenderingMode:-1;ha!==-1?gn+=ha+` Tr
109
- `:g0!==-1&&(gn+=`0 Tr
110
- `),ha!==-1&&(Zc.usedRenderingMode=ha),mt=me.align||"left";var dA,eu=We*Ea,Im=en.internal.pageSize.getWidth(),Dm=Qt[bt];Ut=me.charSpace||tl,Mt=me.maxWidth||0,jt=Object.assign({autoencode:!0,noBOM:!0},me.flags);var Xi=[];if(Object.prototype.toString.call(C)==="[object Array]"){var Pa;Xe=Wc(C),mt!=="left"&&(dA=Xe.map(function(yr){return en.getStringUnitWidth(yr,{font:Dm,charSpace:Ut,fontSize:We,doKerning:!1})*We/ui}));var gA,qi=0;if(mt==="right"){M-=dA[0],C=[],ua=Xe.length;for(var MA=0;MA<ua;MA++)MA===0?(gA=ci(M),Pa=Gi(ce)):(gA=L(qi-dA[MA]),Pa=-eu),C.push([Xe[MA],gA,Pa]),qi=dA[MA]}else if(mt==="center"){M-=dA[0]/2,C=[],ua=Xe.length;for(var hi=0;hi<ua;hi++)hi===0?(gA=ci(M),Pa=Gi(ce)):(gA=L((qi-dA[hi])/2),Pa=-eu),C.push([Xe[hi],gA,Pa]),qi=dA[hi]}else if(mt==="left"){C=[],ua=Xe.length;for(var ll=0;ll<ua;ll++)C.push(Xe[ll])}else{if(mt!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');C=[],ua=Xe.length,Mt=Mt!==0?Mt:Im;for(var pA=0;pA<ua;pA++)Pa=pA===0?Gi(ce):-eu,gA=pA===0?ci(M):0,pA<ua-1?Xi.push(U(L((Mt-dA[pA])/(Xe[pA].split(" ").length-1)))):Xi.push(0),C.push([Xe[pA],gA,Pa])}}var cl=typeof me.R2L=="boolean"?me.R2L:ot;cl===!0&&(C=Xc(C,function(yr,vr,Kr){return[yr.split("").reverse().join(""),vr,Kr]})),Qe={text:C,x:M,y:ce,options:me,mutex:{pdfEscape:ca,activeFontKey:bt,fonts:Qt,activeFontSize:We}},$t.publish("postProcessText",Qe),C=Qe.text,fA=Qe.mutex.isHex||!1;var tu=Qt[bt].encoding;tu!=="WinAnsiEncoding"&&tu!=="StandardEncoding"||(C=Xc(C,function(yr,vr,Kr){return[d0(yr),vr,Kr]})),Xe=Wc(C),C=[];for(var Yi,mA,fi,jo=0,ul=1,Wo=Array.isArray(Xe[0])?ul:jo,Ji="",ru=function(yr,vr,Kr){var sn="";return Kr instanceof gt?(Kr=typeof me.angle=="number"?Fn(Kr,new gt(1,0,0,1,yr,vr)):Fn(new gt(1,0,0,1,yr,vr),Kr),N===F.ADVANCED&&(Kr=Fn(new gt(1,0,0,-1,0,0),Kr)),sn=Kr.join(" ")+` Tm
111
- `):sn=U(yr)+" "+U(vr)+` Td
112
- `,sn},Ma=0;Ma<Xe.length;Ma++){switch(Ji="",Wo){case ul:fi=(fA?"<":"(")+Xe[Ma][0]+(fA?">":")"),Yi=parseFloat(Xe[Ma][1]),mA=parseFloat(Xe[Ma][2]);break;case jo:fi=(fA?"<":"(")+Xe[Ma]+(fA?">":")"),Yi=ci(M),mA=Gi(ce)}Xi!==void 0&&Xi[Ma]!==void 0&&(Ji=Xi[Ma]+` Tw
113
- `),Ma===0?C.push(Ji+ru(Yi,mA,Dr)+fi):Wo===jo?C.push(Ji+fi):Wo===ul&&C.push(Ji+ru(Yi,mA,Dr)+fi)}C=Wo===jo?C.join(` Tj
114
- T* `):C.join(` Tj
115
- `),C+=` Tj
116
- `;var di=`BT
117
- /`;return di+=bt+" "+We+` Tf
118
- `,di+=U(We*Ea)+` TL
119
- `,di+=Ko+`
120
- `,di+=gn,di+=C,te(di+="ET"),h[bt]=!0,en};var Cm=d.__private__.clip=d.clip=function(C){return te(C==="evenodd"?"W*":"W"),this};d.clipEvenOdd=function(){return Cm("evenodd")},d.__private__.discardPath=d.discardPath=function(){return te("n"),this};var PA=d.__private__.isValidStyle=function(C){var M=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(C)!==-1&&(M=!0),M};d.__private__.setDefaultPathOperation=d.setDefaultPathOperation=function(C){return PA(C)&&(c=C),this};var i0=d.__private__.getStyle=d.getStyle=function(C){var M=c;switch(C){case"D":case"S":M="S";break;case"F":M="f";break;case"FD":case"DF":M="B";break;case"f":case"f*":case"B":case"B*":M=C}return M},o0=d.close=function(){return te("h"),this};d.stroke=function(){return te("S"),this},d.fill=function(C){return Zs("f",C),this},d.fillEvenOdd=function(C){return Zs("f*",C),this},d.fillStroke=function(C){return Zs("B",C),this},d.fillStrokeEvenOdd=function(C){return Zs("B*",C),this};var Zs=function(C,M){Xt(M)==="object"?_m(M,C):te(C)},Pc=function(C){C===null||N===F.ADVANCED&&C===void 0||(C=i0(C),te(C))};function Em(C,M,ce,me,_e){var Qe=new cs(M||this.boundingBox,ce||this.xStep,me||this.yStep,this.gState,_e||this.matrix);Qe.stream=this.stream;var Xe=C+"$$"+this.cloneIndex+++"$$";return mr(Xe,Qe),Qe}var _m=function(C,M){var ce=_r[C.key],me=Rt[ce];if(me instanceof fo)te("q"),te(Fm(M)),me.gState&&d.setGState(me.gState),te(C.matrix.toString()+" cm"),te("/"+ce+" sh"),te("Q");else if(me instanceof cs){var _e=new gt(1,0,0,-1,0,Wi());C.matrix&&(_e=_e.multiply(C.matrix||Mn),ce=Em.call(me,C.key,C.boundingBox,C.xStep,C.yStep,_e).id),te("q"),te("/Pattern cs"),te("/"+ce+" scn"),me.gState&&d.setGState(me.gState),te(M),te("Q")}},Fm=function(C){switch(C){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},Mc=d.moveTo=function(C,M){return te(U(L(C))+" "+U(Y(M))+" m"),this},$o=d.lineTo=function(C,M){return te(U(L(C))+" "+U(Y(M))+" l"),this},Ki=d.curveTo=function(C,M,ce,me,_e,Qe){return te([U(L(C)),U(Y(M)),U(L(ce)),U(Y(me)),U(L(_e)),U(Y(Qe)),"c"].join(" ")),this};d.__private__.line=d.line=function(C,M,ce,me,_e){if(isNaN(C)||isNaN(M)||isNaN(ce)||isNaN(me)||!PA(_e))throw new Error("Invalid arguments passed to jsPDF.line");return N===F.COMPAT?this.lines([[ce-C,me-M]],C,M,[1,1],_e||"S"):this.lines([[ce-C,me-M]],C,M,[1,1]).stroke()},d.__private__.lines=d.lines=function(C,M,ce,me,_e,Qe){var Xe,st,mt,Ut,Mt,jt,Fr,Dr,en,Hn,gn,fA;if(typeof C=="number"&&(fA=ce,ce=M,M=C,C=fA),me=me||[1,1],Qe=Qe||!1,isNaN(M)||isNaN(ce)||!Array.isArray(C)||!Array.isArray(me)||!PA(_e)||typeof Qe!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Mc(M,ce),Xe=me[0],st=me[1],Ut=C.length,Hn=M,gn=ce,mt=0;mt<Ut;mt++)(Mt=C[mt]).length===2?(Hn=Mt[0]*Xe+Hn,gn=Mt[1]*st+gn,$o(Hn,gn)):(jt=Mt[0]*Xe+Hn,Fr=Mt[1]*st+gn,Dr=Mt[2]*Xe+Hn,en=Mt[3]*st+gn,Hn=Mt[4]*Xe+Hn,gn=Mt[5]*st+gn,Ki(jt,Fr,Dr,en,Hn,gn));return Qe&&o0(),Pc(_e),this},d.path=function(C){for(var M=0;M<C.length;M++){var ce=C[M],me=ce.c;switch(ce.op){case"m":Mc(me[0],me[1]);break;case"l":$o(me[0],me[1]);break;case"c":Ki.apply(this,me);break;case"h":o0()}}return this},d.__private__.rect=d.rect=function(C,M,ce,me,_e){if(isNaN(C)||isNaN(M)||isNaN(ce)||isNaN(me)||!PA(_e))throw new Error("Invalid arguments passed to jsPDF.rect");return N===F.COMPAT&&(me=-me),te([U(L(C)),U(Y(M)),U(L(ce)),U(L(me)),"re"].join(" ")),Pc(_e),this},d.__private__.triangle=d.triangle=function(C,M,ce,me,_e,Qe,Xe){if(isNaN(C)||isNaN(M)||isNaN(ce)||isNaN(me)||isNaN(_e)||isNaN(Qe)||!PA(Xe))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[ce-C,me-M],[_e-ce,Qe-me],[C-_e,M-Qe]],C,M,[1,1],Xe,!0),this},d.__private__.roundedRect=d.roundedRect=function(C,M,ce,me,_e,Qe,Xe){if(isNaN(C)||isNaN(M)||isNaN(ce)||isNaN(me)||isNaN(_e)||isNaN(Qe)||!PA(Xe))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var st=4/3*(Math.SQRT2-1);return _e=Math.min(_e,.5*ce),Qe=Math.min(Qe,.5*me),this.lines([[ce-2*_e,0],[_e*st,0,_e,Qe-Qe*st,_e,Qe],[0,me-2*Qe],[0,Qe*st,-_e*st,Qe,-_e,Qe],[2*_e-ce,0],[-_e*st,0,-_e,-Qe*st,-_e,-Qe],[0,2*Qe-me],[0,-Qe*st,_e*st,-Qe,_e,-Qe]],C+_e,M,[1,1],Xe,!0),this},d.__private__.ellipse=d.ellipse=function(C,M,ce,me,_e){if(isNaN(C)||isNaN(M)||isNaN(ce)||isNaN(me)||!PA(_e))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Qe=4/3*(Math.SQRT2-1)*ce,Xe=4/3*(Math.SQRT2-1)*me;return Mc(C+ce,M),Ki(C+ce,M-Xe,C+Qe,M-me,C,M-me),Ki(C-Qe,M-me,C-ce,M-Xe,C-ce,M),Ki(C-ce,M+Xe,C-Qe,M+me,C,M+me),Ki(C+Qe,M+me,C+ce,M+Xe,C+ce,M),Pc(_e),this},d.__private__.circle=d.circle=function(C,M,ce,me){if(isNaN(C)||isNaN(M)||isNaN(ce)||!PA(me))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(C,M,ce,ce,me)},d.setFont=function(C,M,ce){return ce&&(M=R(M,ce)),bt=n0(C,M,{disableWarning:!1}),this};var Sm=d.__private__.getFont=d.getFont=function(){return Qt[n0.apply(d,arguments)]};d.__private__.getFontList=d.getFontList=function(){var C,M,ce={};for(C in Kt)if(Kt.hasOwnProperty(C))for(M in ce[C]=[],Kt[C])Kt[C].hasOwnProperty(M)&&ce[C].push(M);return ce},d.addFont=function(C,M,ce,me,_e){var Qe=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Qe.indexOf(arguments[3])!==-1?_e=arguments[3]:arguments[3]&&Qe.indexOf(arguments[3])==-1&&(ce=R(ce,me)),_e=_e||"Identity-H",Dc.call(this,C,M,ce,_e)};var zo,Rc=t.lineWidth||.200025,el=d.__private__.getLineWidth=d.getLineWidth=function(){return Rc},s0=d.__private__.setLineWidth=d.setLineWidth=function(C){return Rc=C,te(U(L(C))+" w"),this};d.__private__.setLineDash=xt.API.setLineDash=xt.API.setLineDashPattern=function(C,M){if(C=C||[],M=M||0,isNaN(M)||!Array.isArray(C))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return C=C.map(function(ce){return U(L(ce))}).join(" "),M=U(L(M)),te("["+C+"] "+M+" d"),this};var l0=d.__private__.getLineHeight=d.getLineHeight=function(){return We*zo};d.__private__.getLineHeight=d.getLineHeight=function(){return We*zo};var c0=d.__private__.setLineHeightFactor=d.setLineHeightFactor=function(C){return typeof(C=C||1.15)=="number"&&(zo=C),this},u0=d.__private__.getLineHeightFactor=d.getLineHeightFactor=function(){return zo};c0(t.lineHeight);var ci=d.__private__.getHorizontalCoordinate=function(C){return L(C)},Gi=d.__private__.getVerticalCoordinate=function(C){return N===F.ADVANCED?C:Ct[_].mediaBox.topRightY-Ct[_].mediaBox.bottomLeftY-L(C)},km=d.__private__.getHorizontalCoordinateString=d.getHorizontalCoordinateString=function(C){return U(ci(C))},ji=d.__private__.getVerticalCoordinateString=d.getVerticalCoordinateString=function(C){return U(Gi(C))},hA=t.strokeColor||"0 G";d.__private__.getStrokeColor=d.getDrawColor=function(){return Ae(hA)},d.__private__.setStrokeColor=d.setDrawColor=function(C,M,ce,me){return hA=oe({ch1:C,ch2:M,ch3:ce,ch4:me,pdfColorType:"draw",precision:2}),te(hA),this};var Hc=t.fillColor||"0 g";d.__private__.getFillColor=d.getFillColor=function(){return Ae(Hc)},d.__private__.setFillColor=d.setFillColor=function(C,M,ce,me){return Hc=oe({ch1:C,ch2:M,ch3:ce,ch4:me,pdfColorType:"fill",precision:2}),te(Hc),this};var Ko=t.textColor||"0 g",Tm=d.__private__.getTextColor=d.getTextColor=function(){return Ae(Ko)};d.__private__.setTextColor=d.setTextColor=function(C,M,ce,me){return Ko=oe({ch1:C,ch2:M,ch3:ce,ch4:me,pdfColorType:"text",precision:3}),this};var tl=t.charSpace,Nm=d.__private__.getCharSpace=d.getCharSpace=function(){return parseFloat(tl||0)};d.__private__.setCharSpace=d.setCharSpace=function(C){if(isNaN(C))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return tl=C,this};var Vc=0;d.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},d.__private__.setLineCap=d.setLineCap=function(C){var M=d.CapJoinStyles[C];if(M===void 0)throw new Error("Line cap style of '"+C+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Vc=M,te(M+" J"),this};var $c=0;d.__private__.setLineJoin=d.setLineJoin=function(C){var M=d.CapJoinStyles[C];if(M===void 0)throw new Error("Line join style of '"+C+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return $c=M,te(M+" j"),this},d.__private__.setLineMiterLimit=d.__private__.setMiterLimit=d.setLineMiterLimit=d.setMiterLimit=function(C){if(C=C||0,isNaN(C))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return te(U(L(C))+" M"),this},d.GState=oh,d.setGState=function(C){(C=typeof C=="string"?Yt[on[C]]:h0(null,C)).equals(_t)||(te("/"+C.id+" gs"),_t=C)};var h0=function(C,M){if(!C||!on[C]){var ce=!1;for(var me in Yt)if(Yt.hasOwnProperty(me)&&Yt[me].equals(M)){ce=!0;break}if(ce)M=Yt[me];else{var _e="GS"+(Object.keys(Yt).length+1).toString(10);Yt[_e]=M,M.id=_e}return C&&(on[C]=M.id),$t.publish("addGState",M),M}};d.addGState=function(C,M){return h0(C,M),this},d.saveGraphicsState=function(){return te("q"),Zr.push({key:bt,size:We,color:Ko}),this},d.restoreGraphicsState=function(){te("Q");var C=Zr.pop();return bt=C.key,We=C.size,Ko=C.color,_t=null,this},d.setCurrentTransformationMatrix=function(C){return te(C.toString()+" cm"),this},d.comment=function(C){return te("#"+C),this};var rl=function(C,M){var ce=C||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return ce},set:function(Qe){isNaN(Qe)||(ce=parseFloat(Qe))}});var me=M||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return me},set:function(Qe){isNaN(Qe)||(me=parseFloat(Qe))}});var _e="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return _e},set:function(Qe){_e=Qe.toString()}}),this},zc=function(C,M,ce,me){rl.call(this,C,M),this.type="rect";var _e=ce||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return _e},set:function(Xe){isNaN(Xe)||(_e=parseFloat(Xe))}});var Qe=me||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Qe},set:function(Xe){isNaN(Xe)||(Qe=parseFloat(Xe))}}),this},Kc=function(){this.page=Gt,this.currentPage=_,this.pages=de.slice(0),this.pagesContext=Ct.slice(0),this.x=ir,this.y=Lt,this.matrix=fr,this.width=Go(_),this.height=Wi(_),this.outputDestination=ne,this.id="",this.objectNumber=-1};Kc.prototype.restore=function(){Gt=this.page,_=this.currentPage,Ct=this.pagesContext,de=this.pages,ir=this.x,Lt=this.y,fr=this.matrix,Gc(_,this.width),jc(_,this.height),ne=this.outputDestination};var f0=function(C,M,ce,me,_e){sa.push(new Kc),Gt=_=0,de=[],ir=C,Lt=M,fr=_e,Qc([ce,me])},Lm=function(C){if(Zn[C])sa.pop().restore();else{var M=new Kc,ce="Xo"+(Object.keys(Ir).length+1).toString(10);M.id=ce,Zn[C]=ce,Ir[ce]=M,$t.publish("addFormObject",M),sa.pop().restore()}};for(var nl in d.beginFormObject=function(C,M,ce,me,_e){return f0(C,M,ce,me,_e),this},d.endFormObject=function(C){return Lm(C),this},d.doFormObject=function(C,M){var ce=Ir[Zn[C]];return te("q"),te(M.toString()+" cm"),te("/"+ce.id+" Do"),te("Q"),this},d.getFormObject=function(C){var M=Ir[Zn[C]];return{x:M.x,y:M.y,width:M.width,height:M.height,matrix:M.matrix}},d.save=function(C,M){return C=C||"generated.pdf",(M=M||{}).returnPromise=M.returnPromise||!1,M.returnPromise===!1?(ho(Ys(li()),C),typeof ho.unload=="function"&&Bt.setTimeout&&setTimeout(ho.unload,911),this):new Promise(function(ce,me){try{var _e=ho(Ys(li()),C);typeof ho.unload=="function"&&Bt.setTimeout&&setTimeout(ho.unload,911),ce(_e)}catch(Qe){me(Qe.message)}})},xt.API)xt.API.hasOwnProperty(nl)&&(nl==="events"&&xt.API.events.length?function(C,M){var ce,me,_e;for(_e=M.length-1;_e!==-1;_e--)ce=M[_e][0],me=M[_e][1],C.subscribe.apply(C,[ce].concat(typeof me=="function"?[me]:me))}($t,xt.API.events):d[nl]=xt.API[nl]);var Go=d.getPageWidth=function(C){return(Ct[C=C||_].mediaBox.topRightX-Ct[C].mediaBox.bottomLeftX)/tt},Gc=d.setPageWidth=function(C,M){Ct[C].mediaBox.topRightX=M*tt+Ct[C].mediaBox.bottomLeftX},Wi=d.getPageHeight=function(C){return(Ct[C=C||_].mediaBox.topRightY-Ct[C].mediaBox.bottomLeftY)/tt},jc=d.setPageHeight=function(C,M){Ct[C].mediaBox.topRightY=M*tt+Ct[C].mediaBox.bottomLeftY};return d.internal={pdfEscape:ca,getStyle:i0,getFont:Sm,getFontSize:Je,getCharSpace:Nm,getTextColor:Tm,getLineHeight:l0,getLineHeightFactor:u0,getLineWidth:el,write:Pe,getHorizontalCoordinate:ci,getVerticalCoordinate:Gi,getCoordinateString:km,getVerticalCoordinateString:ji,collections:{},newObject:xr,newAdditionalObject:ie,newObjectDeferred:br,newObjectDeferredBegin:V,getFilters:Se,putStream:Ie,events:$t,scaleFactor:tt,pageSize:{getWidth:function(){return Go(_)},setWidth:function(C){Gc(_,C)},getHeight:function(){return Wi(_)},setHeight:function(C){jc(_,C)}},encryptionOptions:u,encryption:Rn,getEncryptor:xm,output:Js,getNumberOfPages:mm,pages:de,out:te,f2:q,f3:T,getPageInfo:A0,getPageInfoByObjId:Ft,getCurrentPageInfo:bm,getPDFVersion:f,Point:rl,Rectangle:zc,Matrix:gt,hasHotfix:a0},Object.defineProperty(d.internal.pageSize,"width",{get:function(){return Go(_)},set:function(C){Gc(_,C)},enumerable:!0,configurable:!0}),Object.defineProperty(d.internal.pageSize,"height",{get:function(){return Wi(_)},set:function(C){jc(_,C)},enumerable:!0,configurable:!0}),gm.call(d,Ve),bt="F1",t0(a,r),$t.publish("initialized"),d}ss.prototype.lsbFirstWord=function(t){return String.fromCharCode(t>>0&255,t>>8&255,t>>16&255,t>>24&255)},ss.prototype.toHexString=function(t){return t.split("").map(function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)}).join("")},ss.prototype.hexToBytes=function(t){for(var e=[],r=0;r<t.length;r+=2)e.push(String.fromCharCode(parseInt(t.substr(r,2),16)));return e.join("")},ss.prototype.processOwnerPassword=function(t,e){return Wd(jd(e).substr(0,5),t)},ss.prototype.encryptor=function(t,e){var r=jd(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&e,e>>8&255)).substr(0,10);return function(n){return Wd(r,n)}},oh.prototype.equals=function(t){var e,r="id,objectNumber,equals";if(!t||Xt(t)!==Xt(this))return!1;var n=0;for(e in this)if(!(r.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!t.hasOwnProperty(e)||this[e]!==t[e])return!1;n++}for(e in t)t.hasOwnProperty(e)&&r.indexOf(e)<0&&n--;return n===0},xt.API={events:[]},xt.version="2.5.1";var Sr=xt.API,Xd=1,go=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},us=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},St=function(t){return t.toFixed(2)},Ni=function(t){return t.toFixed(5)};Sr.__acroform__={};var ra=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},pv=function(t){return t*Xd},CA=function(t){var e=new yv,r=ht.internal.getHeight(t)||0,n=ht.internal.getWidth(t)||0;return e.BBox=[0,0,Number(St(n)),Number(St(r))],e},xT=Sr.__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},bT=Sr.__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)},CT=Sr.__acroform__.getBit=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return t&1<<e?1:0},Mr=Sr.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return CT(t,e-1)},Rr=Sr.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return xT(t,e-1)},Hr=Sr.__acroform__.clearBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return bT(t,e-1)},ET=Sr.__acroform__.calculateCoordinates=function(t,e){var r=e.internal.getHorizontalCoordinate,n=e.internal.getVerticalCoordinate,a=t[0],A=t[1],o=t[2],s=t[3],l={};return l.lowerLeft_X=r(a)||0,l.lowerLeft_Y=n(A+s)||0,l.upperRight_X=r(a+o)||0,l.upperRight_Y=n(A)||0,[Number(St(l.lowerLeft_X)),Number(St(l.lowerLeft_Y)),Number(St(l.upperRight_X)),Number(St(l.upperRight_Y))]},_T=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],r=t._V||t.DV,n=qd(t,r),a=t.scope.internal.getFont(t.fontName,t.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(t.scope.__private__.encodeColorString(t.color)),e.push("/"+a+" "+St(n.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(n.text),e.push("ET"),e.push("Q"),e.push("EMC");var A=CA(t);return A.scope=t.scope,A.stream=e.join(`
121
- `),A}},qd=function(t,e){var r=t.fontSize===0?t.maxFontSize:t.fontSize,n={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(" ");a=t.multiline?a.map(function(T){return T.split(`
122
- `)}):a.map(function(T){return[T]});var A=r,o=ht.internal.getHeight(t)||0;o=o<0?-o:o;var s=ht.internal.getWidth(t)||0;s=s<0?-s:s;var l=function(T,L,G){if(T+1<a.length){var Y=L+" "+a[T+1][0];return sh(Y,t,G).width<=s-4}return!1};A++;e:for(;A>0;){e="",A--;var c,u,p=sh("3",t,A).height,h=t.multiline?o-A:(o-p)/2,d=h+=2,w=0,f=0,m=0;if(A<=0){e=`(...) Tj
123
- `,e+="% Width of Text: "+sh(e,t,A=12).width+", FieldWidth:"+s+`
124
- `;break}for(var y="",F=0,N=0;N<a.length;N++)if(a.hasOwnProperty(N)){var D=!1;if(a[N].length!==1&&m!==a[N].length-1){if((p+2)*(F+2)+2>o)continue e;y+=a[N][m],D=!0,f=N,N--}else{y=(y+=a[N][m]+" ").substr(y.length-1)==" "?y.substr(0,y.length-1):y;var H=parseInt(N),R=l(H,y,A),U=N>=a.length-1;if(R&&!U){y+=" ",m=0;continue}if(R||U){if(U)f=H;else if(t.multiline&&(p+2)*(F+2)+2>o)continue e}else{if(!t.multiline||(p+2)*(F+2)+2>o)continue e;f=H}}for(var I="",O=w;O<=f;O++){var q=a[O];if(t.multiline){if(O===f){I+=q[m]+" ",m=(m+1)%q.length;continue}if(O===w){I+=q[q.length-1]+" ";continue}}I+=q[0]+" "}switch(I=I.substr(I.length-1)==" "?I.substr(0,I.length-1):I,u=sh(I,t,A).width,t.textAlign){case"right":c=s-u-2;break;case"center":c=(s-u)/2;break;case"left":default:c=2}e+=St(c)+" "+St(d)+` Td
125
- `,e+="("+go(I)+`) Tj
126
- `,e+=-St(c)+` 0 Td
127
- `,d=-(A+2),u=0,w=D?f:f+1,F++,y=""}break}return n.text=e,n.fontSize=A,n},sh=function(t,e,r){var n=e.scope.internal.getFont(e.fontName,e.fontStyle),a=e.scope.getStringUnitWidth(t,{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:e.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:a}},FT={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},ST=function(t,e){var r={type:"reference",object:t};e.internal.getPageInfo(t.page).pageContext.annotations.find(function(n){return n.type===r.type&&n.object===r.object})===void 0&&e.internal.getPageInfo(t.page).pageContext.annotations.push(r)},kT=function(t,e){for(var r in t)if(t.hasOwnProperty(r)){var n=r,a=t[r];e.internal.newObjectDeferredBegin(a.objId,!0),Xt(a)==="object"&&typeof a.putStream=="function"&&a.putStream(),delete t[n]}},TT=function(t,e){if(e.scope=t,t.internal!==void 0&&(t.internal.acroformPlugin===void 0||t.internal.acroformPlugin.isInitialized===!1)){if(Ga.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(FT)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Xd=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new vv,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",function(){(function(r){r.internal.events.unsubscribe(r.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete r.internal.acroformPlugin.acroFormDictionaryRoot._eventID,r.internal.acroformPlugin.printedOut=!0})(t)}),t.internal.events.subscribe("buildDocument",function(){(function(r){r.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var n=r.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var a in n)if(n.hasOwnProperty(a)){var A=n[a];A.objId=void 0,A.hasAnnotation&&ST(A,r)}})(t)}),t.internal.events.subscribe("putCatalog",function(){(function(r){if(r.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");r.internal.write("/AcroForm "+r.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(t)}),t.internal.events.subscribe("postPutPages",function(r){(function(n,a){var A=!n;for(var o in n||(a.internal.newObjectDeferredBegin(a.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),a.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),n=n||a.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(n.hasOwnProperty(o)){var s=n[o],l=[],c=s.Rect;if(s.Rect&&(s.Rect=ET(s.Rect,a)),a.internal.newObjectDeferredBegin(s.objId,!0),s.DA=ht.createDefaultAppearanceStream(s),Xt(s)==="object"&&typeof s.getKeyValueListForStream=="function"&&(l=s.getKeyValueListForStream()),s.Rect=c,s.hasAppearanceStream&&!s.appearanceStreamContent){var u=_T(s);l.push({key:"AP",value:"<</N "+u+">>"}),a.internal.acroformPlugin.xForms.push(u)}if(s.appearanceStreamContent){var p="";for(var h in s.appearanceStreamContent)if(s.appearanceStreamContent.hasOwnProperty(h)){var d=s.appearanceStreamContent[h];if(p+="/"+h+" ",p+="<<",Object.keys(d).length>=1||Array.isArray(d)){for(var o in d)if(d.hasOwnProperty(o)){var w=d[o];typeof w=="function"&&(w=w.call(a,s)),p+="/"+o+" "+w+" ",a.internal.acroformPlugin.xForms.indexOf(w)>=0||a.internal.acroformPlugin.xForms.push(w)}}else typeof(w=d)=="function"&&(w=w.call(a,s)),p+="/"+o+" "+w,a.internal.acroformPlugin.xForms.indexOf(w)>=0||a.internal.acroformPlugin.xForms.push(w);p+=">>"}l.push({key:"AP",value:`<<
128
- `+p+">>"})}a.internal.putStream({additionalKeyValues:l,objectId:s.objId}),a.internal.out("endobj")}A&&kT(a.internal.acroformPlugin.xForms,a)})(r,t)}),t.internal.acroformPlugin.isInitialized=!0}},mv=Sr.__acroform__.arrayToPdfArray=function(t,e,r){var n=function(o){return o};if(Array.isArray(t)){for(var a="[",A=0;A<t.length;A++)switch(A!==0&&(a+=" "),Xt(t[A])){case"boolean":case"number":case"object":a+=t[A].toString();break;case"string":t[A].substr(0,1)!=="/"?(e!==void 0&&r&&(n=r.internal.getEncryptor(e)),a+="("+go(n(t[A].toString()))+")"):a+=t[A].toString()}return a+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Yd=function(t,e,r){var n=function(a){return a};return e!==void 0&&r&&(n=r.internal.getEncryptor(e)),(t=t||"").toString(),t="("+go(n(t))+")"},EA=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};EA.prototype.toString=function(){return this.objId+" 0 R"},EA.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},EA.prototype.getKeyValueListForStream=function(){var t=[],e=Object.getOwnPropertyNames(this).filter(function(A){return A!="content"&&A!="appearanceStreamContent"&&A!="scope"&&A!="objId"&&A.substring(0,1)!="_"});for(var r in e)if(Object.getOwnPropertyDescriptor(this,e[r]).configurable===!1){var n=e[r],a=this[n];a&&(Array.isArray(a)?t.push({key:n,value:mv(a,this.objId,this.scope)}):a instanceof EA?(a.scope=this.scope,t.push({key:n,value:a.objId+" 0 R"})):typeof a!="function"&&t.push({key:n,value:a}))}return t};var yv=function(){EA.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var t,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(r){e=r}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(r){t=r.trim()},get:function(){return t||null}})};ra(yv,EA);var vv=function(){EA.call(this);var t,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var r=function(n){return n};return this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),"("+go(r(t))+")"}},set:function(r){t=r}})};ra(vv,EA);var Ga=function t(){EA.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute F supplied.');e=y}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Mr(e,3)},set:function(y){y?this.F=Rr(e,3):this.F=Hr(e,3)}});var r=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return r},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute Ff supplied.');r=y}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(n.length!==0)return n},set:function(y){n=y!==void 0?y:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(y){n[0]=y}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(y){n[1]=y}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(y){n[2]=y}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(y){n[3]=y}});var a="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return a},set:function(y){switch(y){case"/Btn":case"/Tx":case"/Ch":case"/Sig":a=y;break;default:throw new Error('Invalid value "'+y+'" for attribute FT supplied.')}}});var A=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!A||A.length<1){if(this instanceof uh)return;A="FieldObject"+t.FieldNum++}var y=function(F){return F};return this.scope&&(y=this.scope.internal.getEncryptor(this.objId)),"("+go(y(A))+")"},set:function(y){A=y.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return A},set:function(y){A=y}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(y){o=y}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(y){s=y}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(y){l=y}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return c===void 0?50/Xd:c},set:function(y){c=y}});var u="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(y){u=y}});var p="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!p||this instanceof uh||this instanceof po))return Yd(p,this.objId,this.scope)},set:function(y){y=y.toString(),p=y}});var h=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof cn?h:Yd(h,this.objId,this.scope)},set:function(y){y=y.toString(),h=this instanceof cn?y:y.substr(0,1)==="("?us(y.substr(1,y.length-2)):us(y)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof cn?us(h.substr(1,h.length-1)):h},set:function(y){y=y.toString(),h=this instanceof cn?"/"+y:y}});var d=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(d)return d},set:function(y){this.V=y}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof cn?d:Yd(d,this.objId,this.scope)},set:function(y){y=y.toString(),d=this instanceof cn?y:y.substr(0,1)==="("?us(y.substr(1,y.length-2)):us(y)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof cn?us(d.substr(1,d.length-1)):d},set:function(y){y=y.toString(),d=this instanceof cn?"/"+y:y}}),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 w,f=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return f},set:function(y){y=!!y,f=y}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(w)return w},set:function(y){w=y}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Mr(this.Ff,1)},set:function(y){y?this.Ff=Rr(this.Ff,1):this.Ff=Hr(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Mr(this.Ff,2)},set:function(y){y?this.Ff=Rr(this.Ff,2):this.Ff=Hr(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Mr(this.Ff,3)},set:function(y){y?this.Ff=Rr(this.Ff,3):this.Ff=Hr(this.Ff,3)}});var m=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(m!==null)return m},set:function(y){if([0,1,2].indexOf(y)===-1)throw new Error('Invalid value "'+y+'" for attribute Q supplied.');m=y}}),Object.defineProperty(this,"textAlign",{get:function(){var y;switch(m){case 0:default:y="left";break;case 1:y="center";break;case 2:y="right"}return y},configurable:!0,enumerable:!0,set:function(y){switch(y){case"right":case 2:m=2;break;case"center":case 1:m=1;break;case"left":case 0:default:m=0}}})};ra(Ga,EA);var hs=function(){Ga.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(r){t=r}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(r){t=r}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return mv(e,this.objId,this.scope)},set:function(r){var n,a;a=[],typeof(n=r)=="string"&&(a=function(A,o,s){s||(s=1);for(var l,c=[];l=o.exec(A);)c.push(l[s]);return c}(n,/\((.*?)\)/g)),e=a}}),this.getOptions=function(){return e},this.setOptions=function(r){e=r,this.sort&&e.sort()},this.addOption=function(r){r=(r=r||"").toString(),e.push(r),this.sort&&e.sort()},this.removeOption=function(r,n){for(n=n||!1,r=(r=r||"").toString();e.indexOf(r)!==-1&&(e.splice(e.indexOf(r),1),n!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Mr(this.Ff,18)},set:function(r){r?this.Ff=Rr(this.Ff,18):this.Ff=Hr(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Mr(this.Ff,19)},set:function(r){this.combo===!0&&(r?this.Ff=Rr(this.Ff,19):this.Ff=Hr(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Mr(this.Ff,20)},set:function(r){r?(this.Ff=Rr(this.Ff,20),e.sort()):this.Ff=Hr(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Mr(this.Ff,22)},set:function(r){r?this.Ff=Rr(this.Ff,22):this.Ff=Hr(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Mr(this.Ff,23)},set:function(r){r?this.Ff=Rr(this.Ff,23):this.Ff=Hr(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Mr(this.Ff,27)},set:function(r){r?this.Ff=Rr(this.Ff,27):this.Ff=Hr(this.Ff,27)}}),this.hasAppearanceStream=!1};ra(hs,Ga);var fs=function(){hs.call(this),this.fontName="helvetica",this.combo=!1};ra(fs,hs);var ds=function(){fs.call(this),this.combo=!0};ra(ds,fs);var lh=function(){ds.call(this),this.edit=!0};ra(lh,ds);var cn=function(){Ga.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Mr(this.Ff,15)},set:function(r){r?this.Ff=Rr(this.Ff,15):this.Ff=Hr(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Mr(this.Ff,16)},set:function(r){r?this.Ff=Rr(this.Ff,16):this.Ff=Hr(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Mr(this.Ff,17)},set:function(r){r?this.Ff=Rr(this.Ff,17):this.Ff=Hr(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Mr(this.Ff,26)},set:function(r){r?this.Ff=Rr(this.Ff,26):this.Ff=Hr(this.Ff,26)}});var t,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var r=function(A){return A};if(this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),Object.keys(e).length!==0){var n,a=[];for(n in a.push("<<"),e)a.push("/"+n+" ("+go(r(e[n]))+")");return a.push(">>"),a.join(`
129
- `)}},set:function(r){Xt(r)==="object"&&(e=r)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(r){typeof r=="string"&&(e.CA=r)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(r){t=r}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(r){t="/"+r}})};ra(cn,Ga);var ch=function(){cn.call(this),this.pushButton=!0};ra(ch,cn);var gs=function(){cn.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=e!==void 0?e:[]}})};ra(gs,cn);var uh=function(){var t,e;Ga.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(a){t=a}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(a){e=a}});var r,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var a=function(s){return s};this.scope&&(a=this.scope.internal.getEncryptor(this.objId));var A,o=[];for(A in o.push("<<"),n)o.push("/"+A+" ("+go(a(n[A]))+")");return o.push(">>"),o.join(`
130
- `)},set:function(a){Xt(a)==="object"&&(n=a)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(a){typeof a=="string"&&(n.CA=a)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(a){r=a}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(a){r="/"+a}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=ht.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};ra(uh,Ga),gs.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 r=this.Kids[e];r.appearanceStreamContent=t.createAppearanceStream(r.optionName),r.caption=t.getCA()}},gs.prototype.createOption=function(t){var e=new uh;return e.Parent=this,e.optionName=t,this.Kids.push(e),NT.call(this.scope,e),e};var hh=function(){cn.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=ht.CheckBox.createAppearanceStream()};ra(hh,cn);var po=function(){Ga.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Mr(this.Ff,13)},set:function(e){e?this.Ff=Rr(this.Ff,13):this.Ff=Hr(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Mr(this.Ff,21)},set:function(e){e?this.Ff=Rr(this.Ff,21):this.Ff=Hr(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Mr(this.Ff,23)},set:function(e){e?this.Ff=Rr(this.Ff,23):this.Ff=Hr(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Mr(this.Ff,24)},set:function(e){e?this.Ff=Rr(this.Ff,24):this.Ff=Hr(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Mr(this.Ff,25)},set:function(e){e?this.Ff=Rr(this.Ff,25):this.Ff=Hr(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Mr(this.Ff,26)},set:function(e){e?this.Ff=Rr(this.Ff,26):this.Ff=Hr(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}})};ra(po,Ga);var fh=function(){po.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Mr(this.Ff,14)},set:function(t){t?this.Ff=Rr(this.Ff,14):this.Ff=Hr(this.Ff,14)}}),this.password=!0};ra(fh,po);var ht={CheckBox:{createAppearanceStream:function(){return{N:{On:ht.CheckBox.YesNormal},D:{On:ht.CheckBox.YesPushDown,Off:ht.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=CA(t);e.scope=t.scope;var r=[],n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,a=t.scope.__private__.encodeColorString(t.color),A=qd(t,t.caption);return r.push("0.749023 g"),r.push("0 0 "+St(ht.internal.getWidth(t))+" "+St(ht.internal.getHeight(t))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+n+" "+St(A.fontSize)+" Tf "+a),r.push("BT"),r.push(A.text),r.push("ET"),r.push("Q"),r.push("EMC"),e.stream=r.join(`
131
- `),e},YesNormal:function(t){var e=CA(t);e.scope=t.scope;var r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,n=t.scope.__private__.encodeColorString(t.color),a=[],A=ht.internal.getHeight(t),o=ht.internal.getWidth(t),s=qd(t,t.caption);return a.push("1 g"),a.push("0 0 "+St(o)+" "+St(A)+" re"),a.push("f"),a.push("q"),a.push("0 0 1 rg"),a.push("0 0 "+St(o-1)+" "+St(A-1)+" re"),a.push("W"),a.push("n"),a.push("0 g"),a.push("BT"),a.push("/"+r+" "+St(s.fontSize)+" Tf "+n),a.push(s.text),a.push("ET"),a.push("Q"),e.stream=a.join(`
132
- `),e},OffPushDown:function(t){var e=CA(t);e.scope=t.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+St(ht.internal.getWidth(t))+" "+St(ht.internal.getHeight(t))+" re"),r.push("f"),e.stream=r.join(`
133
- `),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:ht.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=ht.RadioButton.Circle.YesNormal,e.D[t]=ht.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=CA(t);e.scope=t.scope;var r=[],n=ht.internal.getWidth(t)<=ht.internal.getHeight(t)?ht.internal.getWidth(t)/4:ht.internal.getHeight(t)/4;n=Number((.9*n).toFixed(5));var a=ht.internal.Bezier_C,A=Number((n*a).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+Ni(ht.internal.getWidth(t)/2)+" "+Ni(ht.internal.getHeight(t)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+A+" "+A+" "+n+" 0 "+n+" c"),r.push("-"+A+" "+n+" -"+n+" "+A+" -"+n+" 0 c"),r.push("-"+n+" -"+A+" -"+A+" -"+n+" 0 -"+n+" c"),r.push(A+" -"+n+" "+n+" -"+A+" "+n+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join(`
134
- `),e},YesPushDown:function(t){var e=CA(t);e.scope=t.scope;var r=[],n=ht.internal.getWidth(t)<=ht.internal.getHeight(t)?ht.internal.getWidth(t)/4:ht.internal.getHeight(t)/4;n=Number((.9*n).toFixed(5));var a=Number((2*n).toFixed(5)),A=Number((a*ht.internal.Bezier_C).toFixed(5)),o=Number((n*ht.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+Ni(ht.internal.getWidth(t)/2)+" "+Ni(ht.internal.getHeight(t)/2)+" cm"),r.push(a+" 0 m"),r.push(a+" "+A+" "+A+" "+a+" 0 "+a+" c"),r.push("-"+A+" "+a+" -"+a+" "+A+" -"+a+" 0 c"),r.push("-"+a+" -"+A+" -"+A+" -"+a+" 0 -"+a+" c"),r.push(A+" -"+a+" "+a+" -"+A+" "+a+" 0 c"),r.push("f"),r.push("Q"),r.push("0 g"),r.push("q"),r.push("1 0 0 1 "+Ni(ht.internal.getWidth(t)/2)+" "+Ni(ht.internal.getHeight(t)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+o+" "+o+" "+n+" 0 "+n+" c"),r.push("-"+o+" "+n+" -"+n+" "+o+" -"+n+" 0 c"),r.push("-"+n+" -"+o+" -"+o+" -"+n+" 0 -"+n+" c"),r.push(o+" -"+n+" "+n+" -"+o+" "+n+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join(`
135
- `),e},OffPushDown:function(t){var e=CA(t);e.scope=t.scope;var r=[],n=ht.internal.getWidth(t)<=ht.internal.getHeight(t)?ht.internal.getWidth(t)/4:ht.internal.getHeight(t)/4;n=Number((.9*n).toFixed(5));var a=Number((2*n).toFixed(5)),A=Number((a*ht.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+Ni(ht.internal.getWidth(t)/2)+" "+Ni(ht.internal.getHeight(t)/2)+" cm"),r.push(a+" 0 m"),r.push(a+" "+A+" "+A+" "+a+" 0 "+a+" c"),r.push("-"+A+" "+a+" -"+a+" "+A+" -"+a+" 0 c"),r.push("-"+a+" -"+A+" -"+A+" -"+a+" 0 -"+a+" c"),r.push(A+" -"+a+" "+a+" -"+A+" "+a+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join(`
136
- `),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:ht.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=ht.RadioButton.Cross.YesNormal,e.D[t]=ht.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=CA(t);e.scope=t.scope;var r=[],n=ht.internal.calculateCross(t);return r.push("q"),r.push("1 1 "+St(ht.internal.getWidth(t)-2)+" "+St(ht.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(St(n.x1.x)+" "+St(n.x1.y)+" m"),r.push(St(n.x2.x)+" "+St(n.x2.y)+" l"),r.push(St(n.x4.x)+" "+St(n.x4.y)+" m"),r.push(St(n.x3.x)+" "+St(n.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join(`
137
- `),e},YesPushDown:function(t){var e=CA(t);e.scope=t.scope;var r=ht.internal.calculateCross(t),n=[];return n.push("0.749023 g"),n.push("0 0 "+St(ht.internal.getWidth(t))+" "+St(ht.internal.getHeight(t))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+St(ht.internal.getWidth(t)-2)+" "+St(ht.internal.getHeight(t)-2)+" re"),n.push("W"),n.push("n"),n.push(St(r.x1.x)+" "+St(r.x1.y)+" m"),n.push(St(r.x2.x)+" "+St(r.x2.y)+" l"),n.push(St(r.x4.x)+" "+St(r.x4.y)+" m"),n.push(St(r.x3.x)+" "+St(r.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join(`
138
- `),e},OffPushDown:function(t){var e=CA(t);e.scope=t.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+St(ht.internal.getWidth(t))+" "+St(ht.internal.getHeight(t))+" re"),r.push("f"),e.stream=r.join(`
139
- `),e}}},createDefaultAppearanceStream:function(t){var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+r}};ht.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=ht.internal.getWidth(t),r=ht.internal.getHeight(t),n=Math.min(e,r);return{x1:{x:(e-n)/2,y:(r-n)/2+n},x2:{x:(e-n)/2+n,y:(r-n)/2},x3:{x:(e-n)/2,y:(r-n)/2},x4:{x:(e-n)/2+n,y:(r-n)/2+n}}}},ht.internal.getWidth=function(t){var e=0;return Xt(t)==="object"&&(e=pv(t.Rect[2])),e},ht.internal.getHeight=function(t){var e=0;return Xt(t)==="object"&&(e=pv(t.Rect[3])),e};var NT=Sr.addField=function(t){if(TT(this,t),!(t instanceof Ga))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=t).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};Sr.AcroFormChoiceField=hs,Sr.AcroFormListBox=fs,Sr.AcroFormComboBox=ds,Sr.AcroFormEditBox=lh,Sr.AcroFormButton=cn,Sr.AcroFormPushButton=ch,Sr.AcroFormRadioButton=gs,Sr.AcroFormCheckBox=hh,Sr.AcroFormTextField=po,Sr.AcroFormPasswordField=fh,Sr.AcroFormAppearance=ht,Sr.AcroForm={ChoiceField:hs,ListBox:fs,ComboBox:ds,EditBox:lh,Button:cn,PushButton:ch,RadioButton:gs,CheckBox:hh,TextField:po,PasswordField:fh,Appearance:ht},xt.AcroForm={ChoiceField:hs,ListBox:fs,ComboBox:ds,EditBox:lh,Button:cn,PushButton:ch,RadioButton:gs,CheckBox:hh,TextField:po,PasswordField:fh,Appearance:ht};function wv(t){return t.reduce(function(e,r,n){return e[r]=n,e},{})}(function(t){t.__addimage__={};var e="UNKNOWN",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],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},n=t.__addimage__.getImageFileTypeByImageData=function(T,L){var G,Y,se,he,ge,re=e;if((L=L||e)==="RGBA"||T.data!==void 0&&T.data instanceof Uint8ClampedArray&&"height"in T&&"width"in T)return"RGBA";if(R(T))for(ge in r)for(se=r[ge],G=0;G<se.length;G+=1){for(he=!0,Y=0;Y<se[G].length;Y+=1)if(se[G][Y]!==void 0&&se[G][Y]!==T[Y]){he=!1;break}if(he===!0){re=ge;break}}else for(ge in r)for(se=r[ge],G=0;G<se.length;G+=1){for(he=!0,Y=0;Y<se[G].length;Y+=1)if(se[G][Y]!==void 0&&se[G][Y]!==T.charCodeAt(Y)){he=!1;break}if(he===!0){re=ge;break}}return re===e&&L!==e&&(re=L),re},a=function T(L){for(var G=this.internal.write,Y=this.internal.putStream,se=(0,this.internal.getFilters)();se.indexOf("FlateEncode")!==-1;)se.splice(se.indexOf("FlateEncode"),1);L.objectId=this.internal.newObject();var he=[];if(he.push({key:"Type",value:"/XObject"}),he.push({key:"Subtype",value:"/Image"}),he.push({key:"Width",value:L.width}),he.push({key:"Height",value:L.height}),L.colorSpace===m.INDEXED?he.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(L.palette.length/3-1)+" "+("sMask"in L&&L.sMask!==void 0?L.objectId+2:L.objectId+1)+" 0 R]"}):(he.push({key:"ColorSpace",value:"/"+L.colorSpace}),L.colorSpace===m.DEVICE_CMYK&&he.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),he.push({key:"BitsPerComponent",value:L.bitsPerComponent}),"decodeParameters"in L&&L.decodeParameters!==void 0&&he.push({key:"DecodeParms",value:"<<"+L.decodeParameters+">>"}),"transparency"in L&&Array.isArray(L.transparency)){for(var ge="",re=0,le=L.transparency.length;re<le;re++)ge+=L.transparency[re]+" "+L.transparency[re]+" ";he.push({key:"Mask",value:"["+ge+"]"})}L.sMask!==void 0&&he.push({key:"SMask",value:L.objectId+1+" 0 R"});var fe=L.filter!==void 0?["/"+L.filter]:void 0;if(Y({data:L.data,additionalKeyValues:he,alreadyAppliedFilters:fe,objectId:L.objectId}),G("endobj"),"sMask"in L&&L.sMask!==void 0){var Ue="/Predictor "+L.predictor+" /Colors 1 /BitsPerComponent "+L.bitsPerComponent+" /Columns "+L.width,b={width:L.width,height:L.height,colorSpace:"DeviceGray",bitsPerComponent:L.bitsPerComponent,decodeParameters:Ue,data:L.sMask};"filter"in L&&(b.filter=L.filter),T.call(this,b)}if(L.colorSpace===m.INDEXED){var _=this.internal.newObject();Y({data:I(new Uint8Array(L.palette)),objectId:_}),G("endobj")}},A=function(){var T=this.internal.collections.addImage_images;for(var L in T)a.call(this,T[L])},o=function(){var T,L=this.internal.collections.addImage_images,G=this.internal.write;for(var Y in L)G("/I"+(T=L[Y]).index,T.objectId,"0","R")},s=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",A),this.internal.events.subscribe("putXobjectDict",o))},l=function(){var T=this.internal.collections.addImage_images;return s.call(this),T},c=function(){return Object.keys(this.internal.collections.addImage_images).length},u=function(T){return typeof t["process"+T.toUpperCase()]=="function"},p=function(T){return Xt(T)==="object"&&T.nodeType===1},h=function(T,L){if(T.nodeName==="IMG"&&T.hasAttribute("src")){var G=""+T.getAttribute("src");if(G.indexOf("data:image/")===0)return Vl(unescape(G).split("base64,").pop());var Y=t.loadFile(G,!0);if(Y!==void 0)return Y}if(T.nodeName==="CANVAS"){if(T.width===0||T.height===0)throw new Error("Given canvas must have data. Canvas width: "+T.width+", height: "+T.height);var se;switch(L){case"PNG":se="image/png";break;case"WEBP":se="image/webp";break;case"JPEG":case"JPG":default:se="image/jpeg"}return Vl(T.toDataURL(se,1).split("base64,").pop())}},d=function(T){var L=this.internal.collections.addImage_images;if(L){for(var G in L)if(T===L[G].alias)return L[G]}},w=function(T,L,G){return T||L||(T=-96,L=-96),T<0&&(T=-1*G.width*72/T/this.internal.scaleFactor),L<0&&(L=-1*G.height*72/L/this.internal.scaleFactor),T===0&&(T=L*G.width/G.height),L===0&&(L=T*G.height/G.width),[T,L]},f=function(T,L,G,Y,se,he){var ge=w.call(this,G,Y,se),re=this.internal.getCoordinateString,le=this.internal.getVerticalCoordinateString,fe=l.call(this);if(G=ge[0],Y=ge[1],fe[se.index]=se,he){he*=Math.PI/180;var Ue=Math.cos(he),b=Math.sin(he),_=function(x){return x.toFixed(4)},B=[_(Ue),_(b),_(-1*b),_(Ue),0,0,"cm"]}this.internal.write("q"),he?(this.internal.write([1,"0","0",1,re(T),le(L+Y),"cm"].join(" ")),this.internal.write(B.join(" ")),this.internal.write([re(G),"0","0",re(Y),"0","0","cm"].join(" "))):this.internal.write([re(G),"0","0",re(Y),re(T),le(L+Y),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+se.index+" Do"),this.internal.write("Q")},m=t.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"};t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var y=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},F=t.__addimage__.sHashCode=function(T){var L,G,Y=0;if(typeof T=="string")for(G=T.length,L=0;L<G;L++)Y=(Y<<5)-Y+T.charCodeAt(L),Y|=0;else if(R(T))for(G=T.byteLength/2,L=0;L<G;L++)Y=(Y<<5)-Y+T[L],Y|=0;return Y},N=t.__addimage__.validateStringAsBase64=function(T){(T=T||"").toString().trim();var L=!0;return T.length===0&&(L=!1),T.length%4!=0&&(L=!1),/^[A-Za-z0-9+/]+$/.test(T.substr(0,T.length-2))===!1&&(L=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(T.substr(-2))===!1&&(L=!1),L},D=t.__addimage__.extractImageFromDataUrl=function(T){var L=(T=T||"").split("base64,"),G=null;if(L.length===2){var Y=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(L[0]);Array.isArray(Y)&&(G={mimeType:Y[1],charset:Y[2],data:L[1]})}return G},H=t.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};t.__addimage__.isArrayBuffer=function(T){return H()&&T instanceof ArrayBuffer};var R=t.__addimage__.isArrayBufferView=function(T){return H()&&typeof Uint32Array<"u"&&(T instanceof Int8Array||T instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&T instanceof Uint8ClampedArray||T instanceof Int16Array||T instanceof Uint16Array||T instanceof Int32Array||T instanceof Uint32Array||T instanceof Float32Array||T instanceof Float64Array)},U=t.__addimage__.binaryStringToUint8Array=function(T){for(var L=T.length,G=new Uint8Array(L),Y=0;Y<L;Y++)G[Y]=T.charCodeAt(Y);return G},I=t.__addimage__.arrayBufferToBinaryString=function(T){for(var L="",G=R(T)?T:new Uint8Array(T),Y=0;Y<G.length;Y+=8192)L+=String.fromCharCode.apply(null,G.subarray(Y,Y+8192));return L};t.addImage=function(){var T,L,G,Y,se,he,ge,re,le;if(typeof arguments[1]=="number"?(L=e,G=arguments[1],Y=arguments[2],se=arguments[3],he=arguments[4],ge=arguments[5],re=arguments[6],le=arguments[7]):(L=arguments[1],G=arguments[2],Y=arguments[3],se=arguments[4],he=arguments[5],ge=arguments[6],re=arguments[7],le=arguments[8]),Xt(T=arguments[0])==="object"&&!p(T)&&"imageData"in T){var fe=T;T=fe.imageData,L=fe.format||L||e,G=fe.x||G||0,Y=fe.y||Y||0,se=fe.w||fe.width||se,he=fe.h||fe.height||he,ge=fe.alias||ge,re=fe.compression||re,le=fe.rotation||fe.angle||le}var Ue=this.internal.getFilters();if(re===void 0&&Ue.indexOf("FlateEncode")!==-1&&(re="SLOW"),isNaN(G)||isNaN(Y))throw new Error("Invalid coordinates passed to jsPDF.addImage");s.call(this);var b=O.call(this,T,L,ge,re);return f.call(this,G,Y,se,he,b,le),this};var O=function(T,L,G,Y){var se,he,ge;if(typeof T=="string"&&n(T)===e){T=unescape(T);var re=q(T,!1);(re!==""||(re=t.loadFile(T,!0))!==void 0)&&(T=re)}if(p(T)&&(T=h(T,L)),L=n(T,L),!u(L))throw new Error("addImage does not support files of type '"+L+"', please ensure that a plugin for '"+L+"' support is added.");if(((ge=G)==null||ge.length===0)&&(G=function(le){return typeof le=="string"||R(le)?F(le):R(le.data)?F(le.data):null}(T)),(se=d.call(this,G))||(H()&&(T instanceof Uint8Array||L==="RGBA"||(he=T,T=U(T))),se=this["process"+L.toUpperCase()](T,c.call(this),G,function(le){return le&&typeof le=="string"&&(le=le.toUpperCase()),le in t.image_compression?le:y.NONE}(Y),he)),!se)throw new Error("An unknown error occurred whilst processing the image.");return se},q=t.__addimage__.convertBase64ToBinaryString=function(T,L){var G;L=typeof L!="boolean"||L;var Y,se="";if(typeof T=="string"){Y=(G=D(T))!==null?G.data:T;try{se=Vl(Y)}catch(he){if(L)throw N(Y)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+he.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return se};t.getImageProperties=function(T){var L,G,Y="";if(p(T)&&(T=h(T)),typeof T=="string"&&n(T)===e&&((Y=q(T,!1))===""&&(Y=t.loadFile(T)||""),T=Y),G=n(T),!u(G))throw new Error("addImage does not support files of type '"+G+"', please ensure that a plugin for '"+G+"' support is added.");if(!H()||T instanceof Uint8Array||(T=U(T)),!(L=this["process"+G.toUpperCase()](T)))throw new Error("An unknown error occurred whilst processing the image");return L.fileType=G,L}})(xt.API),function(t){var e=function(r){if(r!==void 0&&r!="")return!0};xt.API.events.push(["addPage",function(r){this.internal.getPageInfo(r.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(r){for(var n,a,A,o=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,l=this.internal.getPageInfoByObjId(r.objId),c=r.pageContext.annotations,u=!1,p=0;p<c.length&&!u;p++)switch((n=c[p]).type){case"link":(e(n.options.url)||e(n.options.pageNumber))&&(u=!0);break;case"reference":case"text":case"freetext":u=!0}if(u!=0){this.internal.write("/Annots [");for(var h=0;h<c.length;h++){n=c[h];var d=this.internal.pdfEscape,w=this.internal.getEncryptor(r.objId);switch(n.type){case"reference":this.internal.write(" "+n.object.objId+" 0 R ");break;case"text":var f=this.internal.newAdditionalObject(),m=this.internal.newAdditionalObject(),y=this.internal.getEncryptor(f.objId),F=n.title||"Note";A="<</Type /Annot /Subtype /Text "+(a="/Rect ["+o(n.bounds.x)+" "+s(n.bounds.y+n.bounds.h)+" "+o(n.bounds.x+n.bounds.w)+" "+s(n.bounds.y)+"] ")+"/Contents ("+d(y(n.contents))+")",A+=" /Popup "+m.objId+" 0 R",A+=" /P "+l.objId+" 0 R",A+=" /T ("+d(y(F))+") >>",f.content=A;var N=f.objId+" 0 R";A="<</Type /Annot /Subtype /Popup "+(a="/Rect ["+o(n.bounds.x+30)+" "+s(n.bounds.y+n.bounds.h)+" "+o(n.bounds.x+n.bounds.w+30)+" "+s(n.bounds.y)+"] ")+" /Parent "+N,n.open&&(A+=" /Open true"),A+=" >>",m.content=A,this.internal.write(f.objId,"0 R",m.objId,"0 R");break;case"freetext":a="/Rect ["+o(n.bounds.x)+" "+s(n.bounds.y)+" "+o(n.bounds.x+n.bounds.w)+" "+s(n.bounds.y+n.bounds.h)+"] ";var D=n.color||"#000000";A="<</Type /Annot /Subtype /FreeText "+a+"/Contents ("+d(w(n.contents))+")",A+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+D+")",A+=" /Border [0 0 0]",A+=" >>",this.internal.write(A);break;case"link":if(n.options.name){var H=this.annotations._nameMap[n.options.name];n.options.pageNumber=H.page,n.options.top=H.y}else n.options.top||(n.options.top=0);if(a="/Rect ["+n.finalBounds.x+" "+n.finalBounds.y+" "+n.finalBounds.w+" "+n.finalBounds.h+"] ",A="",n.options.url)A="<</Type /Annot /Subtype /Link "+a+"/Border [0 0 0] /A <</S /URI /URI ("+d(w(n.options.url))+") >>";else if(n.options.pageNumber)switch(A="<</Type /Annot /Subtype /Link "+a+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(n.options.pageNumber).objId+" 0 R",n.options.magFactor=n.options.magFactor||"XYZ",n.options.magFactor){case"Fit":A+=" /Fit]";break;case"FitH":A+=" /FitH "+n.options.top+"]";break;case"FitV":n.options.left=n.options.left||0,A+=" /FitV "+n.options.left+"]";break;case"XYZ":default:var R=s(n.options.top);n.options.left=n.options.left||0,n.options.zoom===void 0&&(n.options.zoom=0),A+=" /XYZ "+n.options.left+" "+R+" "+n.options.zoom+"]"}A!=""&&(A+=" >>",this.internal.write(A))}}this.internal.write("]")}}]),t.createAnnotation=function(r){var n=this.internal.getCurrentPageInfo();switch(r.type){case"link":this.link(r.bounds.x,r.bounds.y,r.bounds.w,r.bounds.h,r);break;case"text":case"freetext":n.pageContext.annotations.push(r)}},t.link=function(r,n,a,A,o){var s=this.internal.getCurrentPageInfo(),l=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString;s.pageContext.annotations.push({finalBounds:{x:l(r),y:c(n),w:l(r+a),h:c(n+A)},options:o,type:"link"})},t.textWithLink=function(r,n,a,A){var o,s,l=this.getTextWidth(r),c=this.internal.getLineHeight()/this.internal.scaleFactor;if(A.maxWidth!==void 0){s=A.maxWidth;var u=this.splitTextToSize(r,s).length;o=Math.ceil(c*u)}else s=l,o=c;return this.text(r,n,a,A),a+=.2*c,A.align==="center"&&(n-=l/2),A.align==="right"&&(n-=l),this.link(n,a-c,s,o,A),l},t.getTextWidth=function(r){var n=this.internal.getFontSize();return this.getStringUnitWidth(r)*n/this.internal.scaleFactor}}(xt.API),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]},r={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}},n={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},a=[1570,1571,1573,1575];t.__arabicParser__={};var A=t.__arabicParser__.isInArabicSubstitutionA=function(f){return e[f.charCodeAt(0)]!==void 0},o=t.__arabicParser__.isArabicLetter=function(f){return typeof f=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(f)},s=t.__arabicParser__.isArabicEndLetter=function(f){return o(f)&&A(f)&&e[f.charCodeAt(0)].length<=2},l=t.__arabicParser__.isArabicAlfLetter=function(f){return o(f)&&a.indexOf(f.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(f){return o(f)&&A(f)&&e[f.charCodeAt(0)].length>=1};var c=t.__arabicParser__.arabicLetterHasFinalForm=function(f){return o(f)&&A(f)&&e[f.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(f){return o(f)&&A(f)&&e[f.charCodeAt(0)].length>=3};var u=t.__arabicParser__.arabicLetterHasMedialForm=function(f){return o(f)&&A(f)&&e[f.charCodeAt(0)].length==4},p=t.__arabicParser__.resolveLigatures=function(f){var m=0,y=r,F="",N=0;for(m=0;m<f.length;m+=1)y[f.charCodeAt(m)]!==void 0?(N++,typeof(y=y[f.charCodeAt(m)])=="number"&&(F+=String.fromCharCode(y),y=r,N=0),m===f.length-1&&(y=r,F+=f.charAt(m-(N-1)),m-=N-1,N=0)):(y=r,F+=f.charAt(m-N),m-=N,N=0);return F};t.__arabicParser__.isArabicDiacritic=function(f){return f!==void 0&&n[f.charCodeAt(0)]!==void 0};var h=t.__arabicParser__.getCorrectForm=function(f,m,y){return o(f)?A(f)===!1?-1:!c(f)||!o(m)&&!o(y)||!o(y)&&s(m)||s(f)&&!o(m)||s(f)&&l(m)||s(f)&&s(m)?0:u(f)&&o(m)&&!s(m)&&o(y)&&c(y)?3:s(f)||!o(y)?1:2:-1},d=function(f){var m=0,y=0,F=0,N="",D="",H="",R=(f=f||"").split("\\s+"),U=[];for(m=0;m<R.length;m+=1){for(U.push(""),y=0;y<R[m].length;y+=1)N=R[m][y],D=R[m][y-1],H=R[m][y+1],o(N)?(F=h(N,D,H),U[m]+=F!==-1?String.fromCharCode(e[N.charCodeAt(0)][F]):N):U[m]+=N;U[m]=p(U[m])}return U.join(" ")},w=t.__arabicParser__.processArabic=t.processArabic=function(){var f,m=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,y=[];if(Array.isArray(m)){var F=0;for(y=[],F=0;F<m.length;F+=1)Array.isArray(m[F])?y.push([d(m[F][0]),m[F][1],m[F][2]]):y.push([d(m[F])]);f=y}else f=d(m);return typeof arguments[0]=="string"?f:(arguments[0].text=f,arguments[0])};t.events.push(["preProcessText",w])}(xt.API),xt.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},function(t){var e=function(){var r=void 0;Object.defineProperty(this,"pdf",{get:function(){return r},set:function(s){r=s}});var n=150;Object.defineProperty(this,"width",{get:function(){return n},set:function(s){n=isNaN(s)||Number.isInteger(s)===!1||s<0?150:s,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=n+1)}});var a=300;Object.defineProperty(this,"height",{get:function(){return a},set:function(s){a=isNaN(s)||Number.isInteger(s)===!1||s<0?300:s,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=a+1)}});var A=[];Object.defineProperty(this,"childNodes",{get:function(){return A},set:function(s){A=s}});var o={};Object.defineProperty(this,"style",{get:function(){return o},set:function(s){o=s}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(r,n){var a;if((r=r||"2d")!=="2d")return null;for(a in n)this.pdf.context2d.hasOwnProperty(a)&&(this.pdf.context2d[a]=n[a]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(xt.API),function(t){var e={left:0,top:0,bottom:0,right:0},r=!1,n=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},e),this.internal.__cell__.margins.width=this.getPageWidth(),a.call(this))},a=function(){this.internal.__cell__.lastCell=new A,this.internal.__cell__.pages=1},A=function(){var l=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return l},set:function(f){l=f}});var c=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return c},set:function(f){c=f}});var u=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return u},set:function(f){u=f}});var p=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return p},set:function(f){p=f}});var h=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return h},set:function(f){h=f}});var d=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return d},set:function(f){d=f}});var w=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return w},set:function(f){w=f}}),this};A.prototype.clone=function(){return new A(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},A.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(l){return n.call(this),this.internal.__cell__.headerFunction=typeof l=="function"?l:void 0,this},t.getTextDimensions=function(l,c){n.call(this);var u=(c=c||{}).fontSize||this.getFontSize(),p=c.font||this.getFont(),h=c.scaleFactor||this.internal.scaleFactor,d=0,w=0,f=0,m=this;if(!Array.isArray(l)&&typeof l!="string"){if(typeof l!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");l=String(l)}var y=c.maxWidth;y>0?typeof l=="string"?l=this.splitTextToSize(l,y):Object.prototype.toString.call(l)==="[object Array]"&&(l=l.reduce(function(N,D){return N.concat(m.splitTextToSize(D,y))},[])):l=Array.isArray(l)?l:[l];for(var F=0;F<l.length;F++)d<(f=this.getStringUnitWidth(l[F],{font:p})*u)&&(d=f);return d!==0&&(w=l.length),{w:d/=h,h:Math.max((w*u*this.getLineHeightFactor()-u*(this.getLineHeightFactor()-1))/h,0)}},t.cellAddPage=function(){n.call(this),this.addPage();var l=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new A(l.left,l.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var o=t.cell=function(){var l;l=arguments[0]instanceof A?arguments[0]:new A(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),n.call(this);var c=this.internal.__cell__.lastCell,u=this.internal.__cell__.padding,p=this.internal.__cell__.margins||e,h=this.internal.__cell__.tableHeaderRow,d=this.internal.__cell__.printHeaders;return c.lineNumber!==void 0&&(c.lineNumber===l.lineNumber?(l.x=(c.x||0)+(c.width||0),l.y=c.y||0):c.y+c.height+l.height+p.bottom>this.getPageHeight()?(this.cellAddPage(),l.y=p.top,d&&h&&(this.printHeaderRow(l.lineNumber,!0),l.y+=h[0].height)):l.y=c.y+c.height||l.y),l.text[0]!==void 0&&(this.rect(l.x,l.y,l.width,l.height,r===!0?"FD":void 0),l.align==="right"?this.text(l.text,l.x+l.width-u,l.y+u,{align:"right",baseline:"top"}):l.align==="center"?this.text(l.text,l.x+l.width/2,l.y+u,{align:"center",baseline:"top",maxWidth:l.width-u-u}):this.text(l.text,l.x+u,l.y+u,{align:"left",baseline:"top",maxWidth:l.width-u-u})),this.internal.__cell__.lastCell=l,this};t.table=function(l,c,u,p,h){if(n.call(this),!u)throw new Error("No data for PDF table.");var d,w,f,m,y=[],F=[],N=[],D={},H={},R=[],U=[],I=(h=h||{}).autoSize||!1,O=h.printHeaders!==!1,q=h.css&&h.css["font-size"]!==void 0?16*h.css["font-size"]:h.fontSize||12,T=h.margins||Object.assign({width:this.getPageWidth()},e),L=typeof h.padding=="number"?h.padding:3,G=h.headerBackgroundColor||"#c8c8c8",Y=h.headerTextColor||"#000";if(a.call(this),this.internal.__cell__.printHeaders=O,this.internal.__cell__.margins=T,this.internal.__cell__.table_font_size=q,this.internal.__cell__.padding=L,this.internal.__cell__.headerBackgroundColor=G,this.internal.__cell__.headerTextColor=Y,this.setFontSize(q),p==null)F=y=Object.keys(u[0]),N=y.map(function(){return"left"});else if(Array.isArray(p)&&Xt(p[0])==="object")for(y=p.map(function(fe){return fe.name}),F=p.map(function(fe){return fe.prompt||fe.name||""}),N=p.map(function(fe){return fe.align||"left"}),d=0;d<p.length;d+=1)H[p[d].name]=p[d].width*(19.049976/25.4);else Array.isArray(p)&&typeof p[0]=="string"&&(F=y=p,N=y.map(function(){return"left"}));if(I||Array.isArray(p)&&typeof p[0]=="string")for(d=0;d<y.length;d+=1){for(D[m=y[d]]=u.map(function(fe){return fe[m]}),this.setFont(void 0,"bold"),R.push(this.getTextDimensions(F[d],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),w=D[m],this.setFont(void 0,"normal"),f=0;f<w.length;f+=1)R.push(this.getTextDimensions(w[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);H[m]=Math.max.apply(null,R)+L+L,R=[]}if(O){var se={};for(d=0;d<y.length;d+=1)se[y[d]]={},se[y[d]].text=F[d],se[y[d]].align=N[d];var he=s.call(this,se,H);U=y.map(function(fe){return new A(l,c,H[fe],he,se[fe].text,void 0,se[fe].align)}),this.setTableHeaderRow(U),this.printHeaderRow(1,!1)}var ge=p.reduce(function(fe,Ue){return fe[Ue.name]=Ue.align,fe},{});for(d=0;d<u.length;d+=1){"rowStart"in h&&h.rowStart instanceof Function&&h.rowStart({row:d,data:u[d]},this);var re=s.call(this,u[d],H);for(f=0;f<y.length;f+=1){var le=u[d][y[f]];"cellStart"in h&&h.cellStart instanceof Function&&h.cellStart({row:d,col:f,data:le},this),o.call(this,new A(l,c,H[y[f]],re,le,d+2,ge[y[f]]))}}return this.internal.__cell__.table_x=l,this.internal.__cell__.table_y=c,this};var s=function(l,c){var u=this.internal.__cell__.padding,p=this.internal.__cell__.table_font_size,h=this.internal.scaleFactor;return Object.keys(l).map(function(d){var w=l[d];return this.splitTextToSize(w.hasOwnProperty("text")?w.text:w,c[d]-u-u)},this).map(function(d){return this.getLineHeightFactor()*d.length*p/h+u+u},this).reduce(function(d,w){return Math.max(d,w)},0)};t.setTableHeaderRow=function(l){n.call(this),this.internal.__cell__.tableHeaderRow=l},t.printHeaderRow=function(l,c){if(n.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var u;if(r=!0,typeof this.internal.__cell__.headerFunction=="function"){var p=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new A(p[0],p[1],p[2],p[3],void 0,-1)}this.setFont(void 0,"bold");for(var h=[],d=0;d<this.internal.__cell__.tableHeaderRow.length;d+=1){u=this.internal.__cell__.tableHeaderRow[d].clone(),c&&(u.y=this.internal.__cell__.margins.top||0,h.push(u)),u.lineNumber=l;var w=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),o.call(this,u),this.setTextColor(w)}h.length>0&&this.setTableHeaderRow(h),this.setFont(void 0,"normal"),r=!1}}(xt.API);var Bv={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},xv=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Jd=wv(xv),bv=[100,200,300,400,500,600,700,800,900],LT=wv(bv);function Zd(t){var e=t.family.replace(/"|'/g,"").toLowerCase(),r=function(A){return Bv[A=A||"normal"]?A:"normal"}(t.style),n=function(A){if(!A)return 400;if(typeof A=="number")return A>=100&&A<=900&&A%100==0?A:400;if(/^\d00$/.test(A))return parseInt(A);switch(A){case"bold":return 700;case"normal":default:return 400}}(t.weight),a=function(A){return typeof Jd[A=A||"normal"]=="number"?A:"normal"}(t.stretch);return{family:e,style:r,weight:n,stretch:a,src:t.src||[],ref:t.ref||{name:e,style:[a,r,n].join(" ")}}}function Cv(t,e,r,n){var a;for(a=r;a>=0&&a<e.length;a+=n)if(t[e[a]])return t[e[a]];for(a=r;a>=0&&a<e.length;a-=n)if(t[e[a]])return t[e[a]]}var UT={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Ev={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function _v(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function IT(t,e,r){for(var n=(r=r||{}).defaultFontFamily||"times",a=Object.assign({},UT,r.genericFontFamilies||{}),A=null,o=null,s=0;s<e.length;++s)if(a[(A=Zd(e[s])).family]&&(A.family=a[A.family]),t.hasOwnProperty(A.family)){o=t[A.family];break}if(!(o=o||t[n]))throw new Error("Could not find a font-family for the rule '"+_v(A)+"' and default family '"+n+"'.");if(o=function(l,c){if(c[l])return c[l];var u=Jd[l],p=u<=Jd.normal?-1:1,h=Cv(c,xv,u,p);if(!h)throw new Error("Could not find a matching font-stretch value for "+l);return h}(A.stretch,o),o=function(l,c){if(c[l])return c[l];for(var u=Bv[l],p=0;p<u.length;++p)if(c[u[p]])return c[u[p]];throw new Error("Could not find a matching font-style for "+l)}(A.style,o),!(o=function(l,c){if(c[l])return c[l];if(l===400&&c[500])return c[500];if(l===500&&c[400])return c[400];var u=LT[l],p=Cv(c,bv,u,l<400?-1:1);if(!p)throw new Error("Could not find a matching font-weight for value "+l);return p}(A.weight,o)))throw new Error("Failed to resolve a font for the rule '"+_v(A)+"'.");return o}function Fv(t){return t.trimLeft()}function DT(t,e){for(var r=0;r<t.length;){if(t.charAt(r)===e)return[t.substring(0,r),t.substring(r+1)];r+=1}return null}function QT(t){var e=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return e===null?null:[e[0],t.substring(e[0].length)]}var dh,Sv,kv,eg=["times"];(function(t){var e,r,n,a,A,o,s,l,c,u=function(b){return b=b||{},this.isStrokeTransparent=b.isStrokeTransparent||!1,this.strokeOpacity=b.strokeOpacity||1,this.strokeStyle=b.strokeStyle||"#000000",this.fillStyle=b.fillStyle||"#000000",this.isFillTransparent=b.isFillTransparent||!1,this.fillOpacity=b.fillOpacity||1,this.font=b.font||"10px sans-serif",this.textBaseline=b.textBaseline||"alphabetic",this.textAlign=b.textAlign||"left",this.lineWidth=b.lineWidth||1,this.lineJoin=b.lineJoin||"miter",this.lineCap=b.lineCap||"butt",this.path=b.path||[],this.transform=b.transform!==void 0?b.transform.clone():new l,this.globalCompositeOperation=b.globalCompositeOperation||"normal",this.globalAlpha=b.globalAlpha||1,this.clip_path=b.clip_path||[],this.currentPoint=b.currentPoint||new o,this.miterLimit=b.miterLimit||10,this.lastPoint=b.lastPoint||new o,this.lineDashOffset=b.lineDashOffset||0,this.lineDash=b.lineDash||[],this.margin=b.margin||[0,0,0,0],this.prevPageLastElemOffset=b.prevPageLastElemOffset||0,this.ignoreClearRect=typeof b.ignoreClearRect!="boolean"||b.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new p(this),e=this.internal.f2,r=this.internal.getCoordinateString,n=this.internal.getVerticalCoordinateString,a=this.internal.getHorizontalCoordinate,A=this.internal.getVerticalCoordinate,o=this.internal.Point,s=this.internal.Rectangle,l=this.internal.Matrix,c=new u}]);var p=function(b){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var _=b;Object.defineProperty(this,"pdf",{get:function(){return _}});var B=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return B},set:function(xe){B=!!xe}});var x=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return x},set:function(xe){x=!!xe}});var S=0;Object.defineProperty(this,"posX",{get:function(){return S},set:function(xe){isNaN(xe)||(S=xe)}});var Q=0;Object.defineProperty(this,"posY",{get:function(){return Q},set:function(xe){isNaN(xe)||(Q=xe)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(xe){var te;typeof xe=="number"?te=[xe,xe,xe,xe]:((te=new Array(4))[0]=xe[0],te[1]=xe.length>=2?xe[1]:te[0],te[2]=xe.length>=3?xe[2]:te[0],te[3]=xe.length>=4?xe[3]:te[1]),c.margin=te}});var W=!1;Object.defineProperty(this,"autoPaging",{get:function(){return W},set:function(xe){W=xe}});var ue=0;Object.defineProperty(this,"lastBreak",{get:function(){return ue},set:function(xe){ue=xe}});var Ce=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Ce},set:function(xe){Ce=xe}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(xe){xe instanceof u&&(c=xe)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(xe){c.path=xe}});var de=[];Object.defineProperty(this,"ctxStack",{get:function(){return de},set:function(xe){de=xe}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(xe){var te;te=h(xe),this.ctx.fillStyle=te.style,this.ctx.isFillTransparent=te.a===0,this.ctx.fillOpacity=te.a,this.pdf.setFillColor(te.r,te.g,te.b,{a:te.a}),this.pdf.setTextColor(te.r,te.g,te.b,{a:te.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(xe){var te=h(xe);this.ctx.strokeStyle=te.style,this.ctx.isStrokeTransparent=te.a===0,this.ctx.strokeOpacity=te.a,te.a===0?this.pdf.setDrawColor(255,255,255):(te.a,this.pdf.setDrawColor(te.r,te.g,te.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(xe){["butt","round","square"].indexOf(xe)!==-1&&(this.ctx.lineCap=xe,this.pdf.setLineCap(xe))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(xe){isNaN(xe)||(this.ctx.lineWidth=xe,this.pdf.setLineWidth(xe))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(xe){["bevel","round","miter"].indexOf(xe)!==-1&&(this.ctx.lineJoin=xe,this.pdf.setLineJoin(xe))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(xe){isNaN(xe)||(this.ctx.miterLimit=xe,this.pdf.setMiterLimit(xe))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(xe){this.ctx.textBaseline=xe}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(xe){["right","end","center","left","start"].indexOf(xe)!==-1&&(this.ctx.textAlign=xe)}});var ke=null;function ne(xe,te){if(ke===null){var Pe=function(rt){var Ve=[];return Object.keys(rt).forEach(function(We){rt[We].forEach(function(Ye){var Je=null;switch(Ye){case"bold":Je={family:We,weight:"bold"};break;case"italic":Je={family:We,style:"italic"};break;case"bolditalic":Je={family:We,weight:"bold",style:"italic"};break;case"":case"normal":Je={family:We}}Je!==null&&(Je.ref={name:We,style:Ye},Ve.push(Je))})}),Ve}(xe.getFontList());ke=function(rt){for(var Ve={},We=0;We<rt.length;++We){var Ye=Zd(rt[We]),Je=Ye.family,ot=Ye.stretch,at=Ye.style,ft=Ye.weight;Ve[Je]=Ve[Je]||{},Ve[Je][ot]=Ve[Je][ot]||{},Ve[Je][ot][at]=Ve[Je][ot][at]||{},Ve[Je][ot][at][ft]=Ye}return Ve}(Pe.concat(te))}return ke}var Ee=null;Object.defineProperty(this,"fontFaces",{get:function(){return Ee},set:function(xe){ke=null,Ee=xe}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(xe){var te;if(this.ctx.font=xe,(te=/^\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(xe))!==null){var Pe=te[1],rt=(te[2],te[3]),Ve=te[4],We=(te[5],te[6]),Ye=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Ve)[2];Ve=Math.floor(Ye==="px"?parseFloat(Ve)*this.pdf.internal.scaleFactor:Ye==="em"?parseFloat(Ve)*this.pdf.getFontSize():parseFloat(Ve)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Ve);var Je=function(dt){var bt,tt,ir=[],Lt=dt.trim();if(Lt==="")return eg;if(Lt in Ev)return[Ev[Lt]];for(;Lt!=="";){switch(tt=null,bt=(Lt=Fv(Lt)).charAt(0)){case'"':case"'":tt=DT(Lt.substring(1),bt);break;default:tt=QT(Lt)}if(tt===null||(ir.push(tt[0]),(Lt=Fv(tt[1]))!==""&&Lt.charAt(0)!==","))return eg;Lt=Lt.replace(/^,/,"")}return ir}(We);if(this.fontFaces){var ot=IT(ne(this.pdf,this.fontFaces),Je.map(function(dt){return{family:dt,stretch:"normal",weight:rt,style:Pe}}));this.pdf.setFont(ot.ref.name,ot.ref.style)}else{var at="";(rt==="bold"||parseInt(rt,10)>=700||Pe==="bold")&&(at="bold"),Pe==="italic"&&(at+="italic"),at.length===0&&(at="normal");for(var ft="",vt={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},kt=0;kt<Je.length;kt++){if(this.pdf.internal.getFont(Je[kt],at,{noFallback:!0,disableWarning:!0})!==void 0){ft=Je[kt];break}if(at==="bolditalic"&&this.pdf.internal.getFont(Je[kt],"bold",{noFallback:!0,disableWarning:!0})!==void 0)ft=Je[kt],at="bold";else if(this.pdf.internal.getFont(Je[kt],"normal",{noFallback:!0,disableWarning:!0})!==void 0){ft=Je[kt],at="normal";break}}if(ft===""){for(var Nt=0;Nt<Je.length;Nt++)if(vt[Je[Nt]]){ft=vt[Je[Nt]];break}}ft=ft===""?"Times":ft,this.pdf.setFont(ft,at)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(xe){this.ctx.globalCompositeOperation=xe}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(xe){this.ctx.globalAlpha=xe}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(xe){this.ctx.lineDashOffset=xe,Ue.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(xe){this.ctx.lineDash=xe,Ue.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(xe){this.ctx.ignoreClearRect=!!xe}})};p.prototype.setLineDash=function(b){this.lineDash=b},p.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},p.prototype.fill=function(){D.call(this,"fill",!1)},p.prototype.stroke=function(){D.call(this,"stroke",!1)},p.prototype.beginPath=function(){this.path=[{type:"begin"}]},p.prototype.moveTo=function(b,_){if(isNaN(b)||isNaN(_))throw hr.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var B=this.ctx.transform.applyToPoint(new o(b,_));this.path.push({type:"mt",x:B.x,y:B.y}),this.ctx.lastPoint=new o(b,_)},p.prototype.closePath=function(){var b=new o(0,0),_=0;for(_=this.path.length-1;_!==-1;_--)if(this.path[_].type==="begin"&&Xt(this.path[_+1])==="object"&&typeof this.path[_+1].x=="number"){b=new o(this.path[_+1].x,this.path[_+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new o(b.x,b.y)},p.prototype.lineTo=function(b,_){if(isNaN(b)||isNaN(_))throw hr.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var B=this.ctx.transform.applyToPoint(new o(b,_));this.path.push({type:"lt",x:B.x,y:B.y}),this.ctx.lastPoint=new o(B.x,B.y)},p.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),D.call(this,null,!0)},p.prototype.quadraticCurveTo=function(b,_,B,x){if(isNaN(B)||isNaN(x)||isNaN(b)||isNaN(_))throw hr.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var S=this.ctx.transform.applyToPoint(new o(B,x)),Q=this.ctx.transform.applyToPoint(new o(b,_));this.path.push({type:"qct",x1:Q.x,y1:Q.y,x:S.x,y:S.y}),this.ctx.lastPoint=new o(S.x,S.y)},p.prototype.bezierCurveTo=function(b,_,B,x,S,Q){if(isNaN(S)||isNaN(Q)||isNaN(b)||isNaN(_)||isNaN(B)||isNaN(x))throw hr.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var W=this.ctx.transform.applyToPoint(new o(S,Q)),ue=this.ctx.transform.applyToPoint(new o(b,_)),Ce=this.ctx.transform.applyToPoint(new o(B,x));this.path.push({type:"bct",x1:ue.x,y1:ue.y,x2:Ce.x,y2:Ce.y,x:W.x,y:W.y}),this.ctx.lastPoint=new o(W.x,W.y)},p.prototype.arc=function(b,_,B,x,S,Q){if(isNaN(b)||isNaN(_)||isNaN(B)||isNaN(x)||isNaN(S))throw hr.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(Q=!!Q,!this.ctx.transform.isIdentity){var W=this.ctx.transform.applyToPoint(new o(b,_));b=W.x,_=W.y;var ue=this.ctx.transform.applyToPoint(new o(0,B)),Ce=this.ctx.transform.applyToPoint(new o(0,0));B=Math.sqrt(Math.pow(ue.x-Ce.x,2)+Math.pow(ue.y-Ce.y,2))}Math.abs(S-x)>=2*Math.PI&&(x=0,S=2*Math.PI),this.path.push({type:"arc",x:b,y:_,radius:B,startAngle:x,endAngle:S,counterclockwise:Q})},p.prototype.arcTo=function(b,_,B,x,S){throw new Error("arcTo not implemented.")},p.prototype.rect=function(b,_,B,x){if(isNaN(b)||isNaN(_)||isNaN(B)||isNaN(x))throw hr.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(b,_),this.lineTo(b+B,_),this.lineTo(b+B,_+x),this.lineTo(b,_+x),this.lineTo(b,_),this.lineTo(b+B,_),this.lineTo(b,_)},p.prototype.fillRect=function(b,_,B,x){if(isNaN(b)||isNaN(_)||isNaN(B)||isNaN(x))throw hr.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!d.call(this)){var S={};this.lineCap!=="butt"&&(S.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(S.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(b,_,B,x),this.fill(),S.hasOwnProperty("lineCap")&&(this.lineCap=S.lineCap),S.hasOwnProperty("lineJoin")&&(this.lineJoin=S.lineJoin)}},p.prototype.strokeRect=function(b,_,B,x){if(isNaN(b)||isNaN(_)||isNaN(B)||isNaN(x))throw hr.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");w.call(this)||(this.beginPath(),this.rect(b,_,B,x),this.stroke())},p.prototype.clearRect=function(b,_,B,x){if(isNaN(b)||isNaN(_)||isNaN(B)||isNaN(x))throw hr.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(b,_,B,x))},p.prototype.save=function(b){b=typeof b!="boolean"||b;for(var _=this.pdf.internal.getCurrentPageInfo().pageNumber,B=0;B<this.pdf.internal.getNumberOfPages();B++)this.pdf.setPage(B+1),this.pdf.internal.out("q");if(this.pdf.setPage(_),b){this.ctx.fontSize=this.pdf.internal.getFontSize();var x=new u(this.ctx);this.ctxStack.push(this.ctx),this.ctx=x}},p.prototype.restore=function(b){b=typeof b!="boolean"||b;for(var _=this.pdf.internal.getCurrentPageInfo().pageNumber,B=0;B<this.pdf.internal.getNumberOfPages();B++)this.pdf.setPage(B+1),this.pdf.internal.out("Q");this.pdf.setPage(_),b&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},p.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var h=function(b){var _,B,x,S;if(b.isCanvasGradient===!0&&(b=b.getColor()),!b)return{r:0,g:0,b:0,a:0,style:b};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(b))_=0,B=0,x=0,S=0;else{var Q=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(b);if(Q!==null)_=parseInt(Q[1]),B=parseInt(Q[2]),x=parseInt(Q[3]),S=1;else if((Q=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(b))!==null)_=parseInt(Q[1]),B=parseInt(Q[2]),x=parseInt(Q[3]),S=parseFloat(Q[4]);else{if(S=1,typeof b=="string"&&b.charAt(0)!=="#"){var W=new cv(b);b=W.ok?W.toHex():"#000000"}b.length===4?(_=b.substring(1,2),_+=_,B=b.substring(2,3),B+=B,x=b.substring(3,4),x+=x):(_=b.substring(1,3),B=b.substring(3,5),x=b.substring(5,7)),_=parseInt(_,16),B=parseInt(B,16),x=parseInt(x,16)}}return{r:_,g:B,b:x,a:S,style:b}},d=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},w=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};p.prototype.fillText=function(b,_,B,x){if(isNaN(_)||isNaN(B)||typeof b!="string")throw hr.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(x=isNaN(x)?void 0:x,!d.call(this)){var S=re(this.ctx.transform.rotation),Q=this.ctx.transform.scaleX;L.call(this,{text:b,x:_,y:B,scale:Q,angle:S,align:this.textAlign,maxWidth:x})}},p.prototype.strokeText=function(b,_,B,x){if(isNaN(_)||isNaN(B)||typeof b!="string")throw hr.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!w.call(this)){x=isNaN(x)?void 0:x;var S=re(this.ctx.transform.rotation),Q=this.ctx.transform.scaleX;L.call(this,{text:b,x:_,y:B,scale:Q,renderingMode:"stroke",angle:S,align:this.textAlign,maxWidth:x})}},p.prototype.measureText=function(b){if(typeof b!="string")throw hr.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var _=this.pdf,B=this.pdf.internal.scaleFactor,x=_.internal.getFontSize(),S=_.getStringUnitWidth(b)*x/_.internal.scaleFactor,Q=function(W){var ue=(W=W||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return ue}}),this};return new Q({width:S*=Math.round(96*B/72*1e4)/1e4})},p.prototype.scale=function(b,_){if(isNaN(b)||isNaN(_))throw hr.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var B=new l(b,0,0,_,0,0);this.ctx.transform=this.ctx.transform.multiply(B)},p.prototype.rotate=function(b){if(isNaN(b))throw hr.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var _=new l(Math.cos(b),Math.sin(b),-Math.sin(b),Math.cos(b),0,0);this.ctx.transform=this.ctx.transform.multiply(_)},p.prototype.translate=function(b,_){if(isNaN(b)||isNaN(_))throw hr.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var B=new l(1,0,0,1,b,_);this.ctx.transform=this.ctx.transform.multiply(B)},p.prototype.transform=function(b,_,B,x,S,Q){if(isNaN(b)||isNaN(_)||isNaN(B)||isNaN(x)||isNaN(S)||isNaN(Q))throw hr.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var W=new l(b,_,B,x,S,Q);this.ctx.transform=this.ctx.transform.multiply(W)},p.prototype.setTransform=function(b,_,B,x,S,Q){b=isNaN(b)?1:b,_=isNaN(_)?0:_,B=isNaN(B)?0:B,x=isNaN(x)?1:x,S=isNaN(S)?0:S,Q=isNaN(Q)?0:Q,this.ctx.transform=new l(b,_,B,x,S,Q)};var f=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};p.prototype.drawImage=function(b,_,B,x,S,Q,W,ue,Ce){var de=this.pdf.getImageProperties(b),ke=1,ne=1,Ee=1,xe=1;x!==void 0&&ue!==void 0&&(Ee=ue/x,xe=Ce/S,ke=de.width/x*ue/x,ne=de.height/S*Ce/S),Q===void 0&&(Q=_,W=B,_=0,B=0),x!==void 0&&ue===void 0&&(ue=x,Ce=S),x===void 0&&ue===void 0&&(ue=de.width,Ce=de.height);for(var te,Pe=this.ctx.transform.decompose(),rt=re(Pe.rotate.shx),Ve=new l,We=(Ve=(Ve=(Ve=Ve.multiply(Pe.translate)).multiply(Pe.skew)).multiply(Pe.scale)).applyToRectangle(new s(Q-_*Ee,W-B*xe,x*ke,S*ne)),Ye=m.call(this,We),Je=[],ot=0;ot<Ye.length;ot+=1)Je.indexOf(Ye[ot])===-1&&Je.push(Ye[ot]);if(N(Je),this.autoPaging)for(var at=Je[0],ft=Je[Je.length-1],vt=at;vt<ft+1;vt++){this.pdf.setPage(vt);var kt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Nt=vt===1?this.posY+this.margin[0]:this.margin[0],dt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],bt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],tt=vt===1?0:dt+(vt-2)*bt;if(this.ctx.clip_path.length!==0){var ir=this.path;te=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=F(te,this.posX+this.margin[3],-tt+Nt+this.ctx.prevPageLastElemOffset),H.call(this,"fill",!0),this.path=ir}var Lt=JSON.parse(JSON.stringify(We));Lt=F([Lt],this.posX+this.margin[3],-tt+Nt+this.ctx.prevPageLastElemOffset)[0];var fr=(vt>at||vt<ft)&&f.call(this);fr&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],kt,bt,null).clip().discardPath()),this.pdf.addImage(b,"JPEG",Lt.x,Lt.y,Lt.w,Lt.h,null,null,rt),fr&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(b,"JPEG",We.x,We.y,We.w,We.h,null,null,rt)};var m=function(b,_,B){var x=[];_=_||this.pdf.internal.pageSize.width,B=B||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var S=this.posY+this.ctx.prevPageLastElemOffset;switch(b.type){default:case"mt":case"lt":x.push(Math.floor((b.y+S)/B)+1);break;case"arc":x.push(Math.floor((b.y+S-b.radius)/B)+1),x.push(Math.floor((b.y+S+b.radius)/B)+1);break;case"qct":var Q=le(this.ctx.lastPoint.x,this.ctx.lastPoint.y,b.x1,b.y1,b.x,b.y);x.push(Math.floor((Q.y+S)/B)+1),x.push(Math.floor((Q.y+Q.h+S)/B)+1);break;case"bct":var W=fe(this.ctx.lastPoint.x,this.ctx.lastPoint.y,b.x1,b.y1,b.x2,b.y2,b.x,b.y);x.push(Math.floor((W.y+S)/B)+1),x.push(Math.floor((W.y+W.h+S)/B)+1);break;case"rect":x.push(Math.floor((b.y+S)/B)+1),x.push(Math.floor((b.y+b.h+S)/B)+1)}for(var ue=0;ue<x.length;ue+=1)for(;this.pdf.internal.getNumberOfPages()<x[ue];)y.call(this);return x},y=function(){var b=this.fillStyle,_=this.strokeStyle,B=this.font,x=this.lineCap,S=this.lineWidth,Q=this.lineJoin;this.pdf.addPage(),this.fillStyle=b,this.strokeStyle=_,this.font=B,this.lineCap=x,this.lineWidth=S,this.lineJoin=Q},F=function(b,_,B){for(var x=0;x<b.length;x++)switch(b[x].type){case"bct":b[x].x2+=_,b[x].y2+=B;case"qct":b[x].x1+=_,b[x].y1+=B;case"mt":case"lt":case"arc":default:b[x].x+=_,b[x].y+=B}return b},N=function(b){return b.sort(function(_,B){return _-B})},D=function(b,_){for(var B,x,S=this.fillStyle,Q=this.strokeStyle,W=this.lineCap,ue=this.lineWidth,Ce=Math.abs(ue*this.ctx.transform.scaleX),de=this.lineJoin,ke=JSON.parse(JSON.stringify(this.path)),ne=JSON.parse(JSON.stringify(this.path)),Ee=[],xe=0;xe<ne.length;xe++)if(ne[xe].x!==void 0)for(var te=m.call(this,ne[xe]),Pe=0;Pe<te.length;Pe+=1)Ee.indexOf(te[Pe])===-1&&Ee.push(te[Pe]);for(var rt=0;rt<Ee.length;rt++)for(;this.pdf.internal.getNumberOfPages()<Ee[rt];)y.call(this);if(N(Ee),this.autoPaging)for(var Ve=Ee[0],We=Ee[Ee.length-1],Ye=Ve;Ye<We+1;Ye++){this.pdf.setPage(Ye),this.fillStyle=S,this.strokeStyle=Q,this.lineCap=W,this.lineWidth=Ce,this.lineJoin=de;var Je=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],ot=Ye===1?this.posY+this.margin[0]:this.margin[0],at=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ft=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],vt=Ye===1?0:at+(Ye-2)*ft;if(this.ctx.clip_path.length!==0){var kt=this.path;B=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=F(B,this.posX+this.margin[3],-vt+ot+this.ctx.prevPageLastElemOffset),H.call(this,b,!0),this.path=kt}if(x=JSON.parse(JSON.stringify(ke)),this.path=F(x,this.posX+this.margin[3],-vt+ot+this.ctx.prevPageLastElemOffset),_===!1||Ye===0){var Nt=(Ye>Ve||Ye<We)&&f.call(this);Nt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Je,ft,null).clip().discardPath()),H.call(this,b,_),Nt&&this.pdf.restoreGraphicsState()}this.lineWidth=ue}else this.lineWidth=Ce,H.call(this,b,_),this.lineWidth=ue;this.path=ke},H=function(b,_){if((b!=="stroke"||_||!w.call(this))&&(b==="stroke"||_||!d.call(this))){for(var B,x,S=[],Q=this.path,W=0;W<Q.length;W++){var ue=Q[W];switch(ue.type){case"begin":S.push({begin:!0});break;case"close":S.push({close:!0});break;case"mt":S.push({start:ue,deltas:[],abs:[]});break;case"lt":var Ce=S.length;if(Q[W-1]&&!isNaN(Q[W-1].x)&&(B=[ue.x-Q[W-1].x,ue.y-Q[W-1].y],Ce>0)){for(;Ce>=0;Ce--)if(S[Ce-1].close!==!0&&S[Ce-1].begin!==!0){S[Ce-1].deltas.push(B),S[Ce-1].abs.push(ue);break}}break;case"bct":B=[ue.x1-Q[W-1].x,ue.y1-Q[W-1].y,ue.x2-Q[W-1].x,ue.y2-Q[W-1].y,ue.x-Q[W-1].x,ue.y-Q[W-1].y],S[S.length-1].deltas.push(B);break;case"qct":var de=Q[W-1].x+2/3*(ue.x1-Q[W-1].x),ke=Q[W-1].y+2/3*(ue.y1-Q[W-1].y),ne=ue.x+2/3*(ue.x1-ue.x),Ee=ue.y+2/3*(ue.y1-ue.y),xe=ue.x,te=ue.y;B=[de-Q[W-1].x,ke-Q[W-1].y,ne-Q[W-1].x,Ee-Q[W-1].y,xe-Q[W-1].x,te-Q[W-1].y],S[S.length-1].deltas.push(B);break;case"arc":S.push({deltas:[],abs:[],arc:!0}),Array.isArray(S[S.length-1].abs)&&S[S.length-1].abs.push(ue)}}x=_?null:b==="stroke"?"stroke":"fill";for(var Pe=!1,rt=0;rt<S.length;rt++)if(S[rt].arc)for(var Ve=S[rt].abs,We=0;We<Ve.length;We++){var Ye=Ve[We];Ye.type==="arc"?I.call(this,Ye.x,Ye.y,Ye.radius,Ye.startAngle,Ye.endAngle,Ye.counterclockwise,void 0,_,!Pe):G.call(this,Ye.x,Ye.y),Pe=!0}else if(S[rt].close===!0)this.pdf.internal.out("h"),Pe=!1;else if(S[rt].begin!==!0){var Je=S[rt].start.x,ot=S[rt].start.y;Y.call(this,S[rt].deltas,Je,ot),Pe=!0}x&&O.call(this,x),_&&q.call(this)}},R=function(b){var _=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,B=_*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return b-B;case"top":return b+_-B;case"hanging":return b+_-2*B;case"middle":return b+_/2-B;case"ideographic":return b;case"alphabetic":default:return b}},U=function(b){return b+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};p.prototype.createLinearGradient=function(){var b=function(){};return b.colorStops=[],b.addColorStop=function(_,B){this.colorStops.push([_,B])},b.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},b.isCanvasGradient=!0,b},p.prototype.createPattern=function(){return this.createLinearGradient()},p.prototype.createRadialGradient=function(){return this.createLinearGradient()};var I=function(b,_,B,x,S,Q,W,ue,Ce){for(var de=he.call(this,B,x,S,Q),ke=0;ke<de.length;ke++){var ne=de[ke];ke===0&&(Ce?T.call(this,ne.x1+b,ne.y1+_):G.call(this,ne.x1+b,ne.y1+_)),se.call(this,b,_,ne.x2,ne.y2,ne.x3,ne.y3,ne.x4,ne.y4)}ue?q.call(this):O.call(this,W)},O=function(b){switch(b){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},q=function(){this.pdf.clip(),this.pdf.discardPath()},T=function(b,_){this.pdf.internal.out(r(b)+" "+n(_)+" m")},L=function(b){var _;switch(b.align){case"right":case"end":_="right";break;case"center":_="center";break;case"left":case"start":default:_="left"}var B=this.pdf.getTextDimensions(b.text),x=R.call(this,b.y),S=U.call(this,x)-B.h,Q=this.ctx.transform.applyToPoint(new o(b.x,x)),W=this.ctx.transform.decompose(),ue=new l;ue=(ue=(ue=ue.multiply(W.translate)).multiply(W.skew)).multiply(W.scale);for(var Ce,de,ke,ne=this.ctx.transform.applyToRectangle(new s(b.x,x,B.w,B.h)),Ee=ue.applyToRectangle(new s(b.x,S,B.w,B.h)),xe=m.call(this,Ee),te=[],Pe=0;Pe<xe.length;Pe+=1)te.indexOf(xe[Pe])===-1&&te.push(xe[Pe]);if(N(te),this.autoPaging)for(var rt=te[0],Ve=te[te.length-1],We=rt;We<Ve+1;We++){this.pdf.setPage(We);var Ye=We===1?this.posY+this.margin[0]:this.margin[0],Je=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ot=this.pdf.internal.pageSize.height-this.margin[2],at=ot-this.margin[0],ft=this.pdf.internal.pageSize.width-this.margin[1],vt=ft-this.margin[3],kt=We===1?0:Je+(We-2)*at;if(this.ctx.clip_path.length!==0){var Nt=this.path;Ce=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=F(Ce,this.posX+this.margin[3],-1*kt+Ye),H.call(this,"fill",!0),this.path=Nt}var dt=F([JSON.parse(JSON.stringify(Ee))],this.posX+this.margin[3],-kt+Ye+this.ctx.prevPageLastElemOffset)[0];b.scale>=.01&&(de=this.pdf.internal.getFontSize(),this.pdf.setFontSize(de*b.scale),ke=this.lineWidth,this.lineWidth=ke*b.scale);var bt=this.autoPaging!=="text";if(bt||dt.y+dt.h<=ot){if(bt||dt.y>=Ye&&dt.x<=ft){var tt=bt?b.text:this.pdf.splitTextToSize(b.text,b.maxWidth||ft-dt.x)[0],ir=F([JSON.parse(JSON.stringify(ne))],this.posX+this.margin[3],-kt+Ye+this.ctx.prevPageLastElemOffset)[0],Lt=bt&&(We>rt||We<Ve)&&f.call(this);Lt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],vt,at,null).clip().discardPath()),this.pdf.text(tt,ir.x,ir.y,{angle:b.angle,align:_,renderingMode:b.renderingMode}),Lt&&this.pdf.restoreGraphicsState()}}else dt.y<ot&&(this.ctx.prevPageLastElemOffset+=ot-dt.y);b.scale>=.01&&(this.pdf.setFontSize(de),this.lineWidth=ke)}else b.scale>=.01&&(de=this.pdf.internal.getFontSize(),this.pdf.setFontSize(de*b.scale),ke=this.lineWidth,this.lineWidth=ke*b.scale),this.pdf.text(b.text,Q.x+this.posX,Q.y+this.posY,{angle:b.angle,align:_,renderingMode:b.renderingMode,maxWidth:b.maxWidth}),b.scale>=.01&&(this.pdf.setFontSize(de),this.lineWidth=ke)},G=function(b,_,B,x){B=B||0,x=x||0,this.pdf.internal.out(r(b+B)+" "+n(_+x)+" l")},Y=function(b,_,B){return this.pdf.lines(b,_,B,null,null)},se=function(b,_,B,x,S,Q,W,ue){this.pdf.internal.out([e(a(B+b)),e(A(x+_)),e(a(S+b)),e(A(Q+_)),e(a(W+b)),e(A(ue+_)),"c"].join(" "))},he=function(b,_,B,x){for(var S=2*Math.PI,Q=Math.PI/2;_>B;)_-=S;var W=Math.abs(B-_);W<S&&x&&(W=S-W);for(var ue=[],Ce=x?-1:1,de=_;W>1e-5;){var ke=de+Ce*Math.min(W,Q);ue.push(ge.call(this,b,de,ke)),W-=Math.abs(ke-de),de=ke}return ue},ge=function(b,_,B){var x=(B-_)/2,S=b*Math.cos(x),Q=b*Math.sin(x),W=S,ue=-Q,Ce=W*W+ue*ue,de=Ce+W*S+ue*Q,ke=4/3*(Math.sqrt(2*Ce*de)-de)/(W*Q-ue*S),ne=W-ke*ue,Ee=ue+ke*W,xe=ne,te=-Ee,Pe=x+_,rt=Math.cos(Pe),Ve=Math.sin(Pe);return{x1:b*Math.cos(_),y1:b*Math.sin(_),x2:ne*rt-Ee*Ve,y2:ne*Ve+Ee*rt,x3:xe*rt-te*Ve,y3:xe*Ve+te*rt,x4:b*Math.cos(B),y4:b*Math.sin(B)}},re=function(b){return 180*b/Math.PI},le=function(b,_,B,x,S,Q){var W=b+.5*(B-b),ue=_+.5*(x-_),Ce=S+.5*(B-S),de=Q+.5*(x-Q),ke=Math.min(b,S,W,Ce),ne=Math.max(b,S,W,Ce),Ee=Math.min(_,Q,ue,de),xe=Math.max(_,Q,ue,de);return new s(ke,Ee,ne-ke,xe-Ee)},fe=function(b,_,B,x,S,Q,W,ue){var Ce,de,ke,ne,Ee,xe,te,Pe,rt,Ve,We,Ye,Je,ot,at=B-b,ft=x-_,vt=S-B,kt=Q-x,Nt=W-S,dt=ue-Q;for(de=0;de<41;de++)rt=(te=(ke=b+(Ce=de/40)*at)+Ce*((Ee=B+Ce*vt)-ke))+Ce*(Ee+Ce*(S+Ce*Nt-Ee)-te),Ve=(Pe=(ne=_+Ce*ft)+Ce*((xe=x+Ce*kt)-ne))+Ce*(xe+Ce*(Q+Ce*dt-xe)-Pe),de==0?(We=rt,Ye=Ve,Je=rt,ot=Ve):(We=Math.min(We,rt),Ye=Math.min(Ye,Ve),Je=Math.max(Je,rt),ot=Math.max(ot,Ve));return new s(Math.round(We),Math.round(Ye),Math.round(Je-We),Math.round(ot-Ye))},Ue=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var b,_,B=(b=this.ctx.lineDash,_=this.ctx.lineDashOffset,JSON.stringify({lineDash:b,lineDashOffset:_}));this.prevLineDash!==B&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=B)}}})(xt.API),function(t){var e=function(A){var o,s,l,c,u,p,h,d,w,f;for(s=[],l=0,c=(A+=o="\0\0\0\0".slice(A.length%4||4)).length;c>l;l+=4)(u=(A.charCodeAt(l)<<24)+(A.charCodeAt(l+1)<<16)+(A.charCodeAt(l+2)<<8)+A.charCodeAt(l+3))!==0?(p=(u=((u=((u=((u=(u-(f=u%85))/85)-(w=u%85))/85)-(d=u%85))/85)-(h=u%85))/85)%85,s.push(p+33,h+33,d+33,w+33,f+33)):s.push(122);return function(m,y){for(var F=y;F>0;F--)m.pop()}(s,o.length),String.fromCharCode.apply(String,s)+"~>"},r=function(A){var o,s,l,c,u,p=String,h="length",d=255,w="charCodeAt",f="slice",m="replace";for(A[f](-2),A=A[f](0,-2)[m](/\s/g,"")[m]("z","!!!!!"),l=[],c=0,u=(A+=o="uuuuu"[f](A[h]%5||5))[h];u>c;c+=5)s=52200625*(A[w](c)-33)+614125*(A[w](c+1)-33)+7225*(A[w](c+2)-33)+85*(A[w](c+3)-33)+(A[w](c+4)-33),l.push(d&s>>24,d&s>>16,d&s>>8,d&s);return function(y,F){for(var N=F;N>0;N--)y.pop()}(l,o[h]),p.fromCharCode.apply(p,l)},n=function(A){var o=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((A=A.replace(/\s/g,"")).indexOf(">")!==-1&&(A=A.substr(0,A.indexOf(">"))),A.length%2&&(A+="0"),o.test(A)===!1)return"";for(var s="",l=0;l<A.length;l+=2)s+=String.fromCharCode("0x"+(A[l]+A[l+1]));return s},a=function(A){for(var o=new Uint8Array(A.length),s=A.length;s--;)o[s]=A.charCodeAt(s);return A=(o=Vd(o)).reduce(function(l,c){return l+String.fromCharCode(c)},"")};t.processDataByFilters=function(A,o){var s=0,l=A||"",c=[];for(typeof(o=o||[])=="string"&&(o=[o]),s=0;s<o.length;s+=1)switch(o[s]){case"ASCII85Decode":case"/ASCII85Decode":l=r(l),c.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":l=e(l),c.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":l=n(l),c.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":l=l.split("").map(function(u){return("0"+u.charCodeAt().toString(16)).slice(-2)}).join("")+">",c.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":l=a(l),c.push("/FlateDecode");break;default:throw new Error('The filter: "'+o[s]+'" is not implemented')}return{data:l,reverseChain:c.reverse().join(" ")}}}(xt.API),function(t){t.loadFile=function(e,r,n){return function(a,A,o){A=A!==!1,o=typeof o=="function"?o:function(){};var s=void 0;try{s=function(l,c,u){var p=new XMLHttpRequest,h=0,d=function(w){var f=w.length,m=[],y=String.fromCharCode;for(h=0;h<f;h+=1)m.push(y(255&w.charCodeAt(h)));return m.join("")};if(p.open("GET",l,!c),p.overrideMimeType("text/plain; charset=x-user-defined"),c===!1&&(p.onload=function(){p.status===200?u(d(this.responseText)):u(void 0)}),p.send(null),c&&p.status===200)return d(p.responseText)}(a,A,o)}catch{}return s}(e,r,n)},t.loadImageFile=t.loadFile}(xt.API),function(t){function e(){return(Bt.html2canvas?Promise.resolve(Bt.html2canvas):Promise.resolve().then(()=>rT)).catch(function(o){return Promise.reject(new Error("Could not load html2canvas: "+o))}).then(function(o){return o.default?o.default:o})}function r(){return(Bt.DOMPurify?Promise.resolve(Bt.DOMPurify):Promise.resolve().then(()=>FW)).catch(function(o){return Promise.reject(new Error("Could not load dompurify: "+o))}).then(function(o){return o.default?o.default:o})}var n=function(o){var s=Xt(o);return s==="undefined"?"undefined":s==="string"||o instanceof String?"string":s==="number"||o instanceof Number?"number":s==="function"||o instanceof Function?"function":o&&o.constructor===Array?"array":o&&o.nodeType===1?"element":s==="object"?"object":"unknown"},a=function(o,s){var l=document.createElement(o);for(var c in s.className&&(l.className=s.className),s.innerHTML&&s.dompurify&&(l.innerHTML=s.dompurify.sanitize(s.innerHTML)),s.style)l.style[c]=s.style[c];return l},A=function o(s){var l=Object.assign(o.convert(Promise.resolve()),JSON.parse(JSON.stringify(o.template))),c=o.convert(Promise.resolve(),l);return c=(c=c.setProgress(1,o,1,[o])).set(s)};(A.prototype=Object.create(Promise.prototype)).constructor=A,A.convert=function(o,s){return o.__proto__=s||A.prototype,o},A.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},A.prototype.from=function(o,s){return this.then(function(){switch(s=s||function(l){switch(n(l)){case"string":return"string";case"element":return l.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(o)){case"string":return this.then(r).then(function(l){return this.set({src:a("div",{innerHTML:o,dompurify:l})})});case"element":return this.set({src:o});case"canvas":return this.set({canvas:o});case"img":return this.set({img:o});default:return this.error("Unknown source type.")}})},A.prototype.to=function(o){switch(o){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.")}},A.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 o={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},s=function l(c,u){for(var p=c.nodeType===3?document.createTextNode(c.nodeValue):c.cloneNode(!1),h=c.firstChild;h;h=h.nextSibling)u!==!0&&h.nodeType===1&&h.nodeName==="SCRIPT"||p.appendChild(l(h,u));return c.nodeType===1&&(c.nodeName==="CANVAS"?(p.width=c.width,p.height=c.height,p.getContext("2d").drawImage(c,0,0)):c.nodeName!=="TEXTAREA"&&c.nodeName!=="SELECT"||(p.value=c.value),p.addEventListener("load",function(){p.scrollTop=c.scrollTop,p.scrollLeft=c.scrollLeft},!0)),p}(this.prop.src,this.opt.html2canvas.javascriptEnabled);s.tagName==="BODY"&&(o.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=a("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=a("div",{className:"html2pdf__container",style:o}),this.prop.container.appendChild(s),this.prop.container.firstChild.appendChild(a("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"})},A.prototype.toCanvas=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(e).then(function(s){var l=Object.assign({},this.opt.html2canvas);return delete l.onrendered,s(this.prop.container,l)}).then(function(s){(this.opt.html2canvas.onrendered||function(){})(s),this.prop.canvas=s,document.body.removeChild(this.prop.overlay)})},A.prototype.toContext2d=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(e).then(function(s){var l=this.opt.jsPDF,c=this.opt.fontFaces,u=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,p=Object.assign({async:!0,allowTaint:!0,scale:u,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete p.onrendered,l.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,l.context2d.posX=this.opt.x,l.context2d.posY=this.opt.y,l.context2d.margin=this.opt.margin,l.context2d.fontFaces=c,c)for(var h=0;h<c.length;++h){var d=c[h],w=d.src.find(function(f){return f.format==="truetype"});w&&l.addFont(w.url,d.ref.name,d.ref.style)}return p.windowHeight=p.windowHeight||0,p.windowHeight=p.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):p.windowHeight,l.context2d.save(!0),s(this.prop.container,p)}).then(function(s){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(s),this.prop.canvas=s,document.body.removeChild(this.prop.overlay)})},A.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var o=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=o})},A.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},A.prototype.output=function(o,s,l){return(l=l||"pdf").toLowerCase()==="img"||l.toLowerCase()==="image"?this.outputImg(o,s):this.outputPdf(o,s)},A.prototype.outputPdf=function(o,s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(o,s)})},A.prototype.outputImg=function(o){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(o){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 "'+o+'" is not supported.'}})},A.prototype.save=function(o){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(o?{filename:o}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},A.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},A.prototype.set=function(o){if(n(o)!=="object")return this;var s=Object.keys(o||{}).map(function(l){if(l in A.template.prop)return function(){this.prop[l]=o[l]};switch(l){case"margin":return this.setMargin.bind(this,o.margin);case"jsPDF":return function(){return this.opt.jsPDF=o.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,o.pageSize);default:return function(){this.opt[l]=o[l]}}},this);return this.then(function(){return this.thenList(s)})},A.prototype.get=function(o,s){return this.then(function(){var l=o in A.template.prop?this.prop[o]:this.opt[o];return s?s(l):l})},A.prototype.setMargin=function(o){return this.then(function(){switch(n(o)){case"number":o=[o,o,o,o];case"array":if(o.length===2&&(o=[o[0],o[1],o[0],o[1]]),o.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=o}).then(this.setPageSize)},A.prototype.setPageSize=function(o){function s(l,c){return Math.floor(l*c/72*96)}return this.then(function(){(o=o||xt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(o.inner={width:o.width-this.opt.margin[1]-this.opt.margin[3],height:o.height-this.opt.margin[0]-this.opt.margin[2]},o.inner.px={width:s(o.inner.width,o.k),height:s(o.inner.height,o.k)},o.inner.ratio=o.inner.height/o.inner.width),this.prop.pageSize=o})},A.prototype.setProgress=function(o,s,l,c){return o!=null&&(this.progress.val=o),s!=null&&(this.progress.state=s),l!=null&&(this.progress.n=l),c!=null&&(this.progress.stack=c),this.progress.ratio=this.progress.val/this.progress.state,this},A.prototype.updateProgress=function(o,s,l,c){return this.setProgress(o?this.progress.val+o:null,s||null,l?this.progress.n+l:null,c?this.progress.stack.concat(c):null)},A.prototype.then=function(o,s){var l=this;return this.thenCore(o,s,function(c,u){return l.updateProgress(null,null,1,[c]),Promise.prototype.then.call(this,function(p){return l.updateProgress(null,c),p}).then(c,u).then(function(p){return l.updateProgress(1),p})})},A.prototype.thenCore=function(o,s,l){l=l||Promise.prototype.then,o&&(o=o.bind(this)),s&&(s=s.bind(this));var c=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:A.convert(Object.assign({},this),Promise.prototype),u=l.call(c,o,s);return A.convert(u,this.__proto__)},A.prototype.thenExternal=function(o,s){return Promise.prototype.then.call(this,o,s)},A.prototype.thenList=function(o){var s=this;return o.forEach(function(l){s=s.thenCore(l)}),s},A.prototype.catch=function(o){o&&(o=o.bind(this));var s=Promise.prototype.catch.call(this,o);return A.convert(s,this)},A.prototype.catchExternal=function(o){return Promise.prototype.catch.call(this,o)},A.prototype.error=function(o){return this.then(function(){throw new Error(o)})},A.prototype.using=A.prototype.set,A.prototype.saveAs=A.prototype.save,A.prototype.export=A.prototype.output,A.prototype.run=A.prototype.then,xt.getPageSize=function(o,s,l){if(Xt(o)==="object"){var c=o;o=c.orientation,s=c.unit||s,l=c.format||l}s=s||"mm",l=l||"a4",o=(""+(o||"P")).toLowerCase();var u,p=(""+l).toLowerCase(),h={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(s){case"pt":u=1;break;case"mm":u=72/25.4;break;case"cm":u=72/2.54;break;case"in":u=72;break;case"px":u=.75;break;case"pc":case"em":u=12;break;case"ex":u=6;break;default:throw"Invalid unit: "+s}var d,w=0,f=0;if(h.hasOwnProperty(p))w=h[p][1]/u,f=h[p][0]/u;else try{w=l[1],f=l[0]}catch{throw new Error("Invalid format: "+l)}if(o==="p"||o==="portrait")o="p",f>w&&(d=f,f=w,w=d);else{if(o!=="l"&&o!=="landscape")throw"Invalid orientation: "+o;o="l",w>f&&(d=f,f=w,w=d)}return{width:f,height:w,unit:s,k:u,orientation:o}},t.html=function(o,s){(s=s||{}).callback=s.callback||function(){},s.html2canvas=s.html2canvas||{},s.html2canvas.canvas=s.html2canvas.canvas||this.canvas,s.jsPDF=s.jsPDF||this,s.fontFaces=s.fontFaces?s.fontFaces.map(Zd):null;var l=new A(s);return s.worker?l:l.from(o).doCallback()}}(xt.API),xt.API.addJS=function(t){return kv=t,this.internal.events.subscribe("postPutResources",function(){dh=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(dh+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Sv=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+kv+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){dh!==void 0&&Sv!==void 0&&this.internal.out("/Names <</JavaScript "+dh+" 0 R>>")}),this},function(t){var e;t.events.push(["postPutResources",function(){var r=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var a=r.outline.render().split(/\r\n/),A=0;A<a.length;A++){var o=a[A],s=n.exec(o);if(s!=null){var l=s[1];r.internal.newObjectDeferredBegin(l,!1)}r.internal.write(o)}if(this.outline.createNamedDestinations){var c=this.internal.pages.length,u=[];for(A=0;A<c;A++){var p=r.internal.newObject();u.push(p);var h=r.internal.getPageInfo(A+1);r.internal.write("<< /D["+h.objId+" 0 R /XYZ null null null]>> endobj")}var d=r.internal.newObject();for(r.internal.write("<< /Names [ "),A=0;A<u.length;A++)r.internal.write("(page_"+(A+1)+")"+u[A]+" 0 R");r.internal.write(" ] >>","endobj"),e=r.internal.newObject(),r.internal.write("<< /Dests "+d+" 0 R"),r.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+e+" 0 R"))}]),t.events.push(["initialized",function(){var r=this;r.outline={createNamedDestinations:!1,root:{children:[]}},r.outline.add=function(n,a,A){var o={title:a,options:A,children:[]};return n==null&&(n=this.root),n.children.push(o),o},r.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=r,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},r.outline.genIds_r=function(n){n.id=r.internal.newObjectDeferred();for(var a=0;a<n.children.length;a++)this.genIds_r(n.children[a])},r.outline.renderRoot=function(n){this.objStart(n),this.line("/Type /Outlines"),n.children.length>0&&(this.line("/First "+this.makeRef(n.children[0])),this.line("/Last "+this.makeRef(n.children[n.children.length-1]))),this.line("/Count "+this.count_r({count:0},n)),this.objEnd()},r.outline.renderItems=function(n){for(var a=this.ctx.pdf.internal.getVerticalCoordinateString,A=0;A<n.children.length;A++){var o=n.children[A];this.objStart(o),this.line("/Title "+this.makeString(o.title)),this.line("/Parent "+this.makeRef(n)),A>0&&this.line("/Prev "+this.makeRef(n.children[A-1])),A<n.children.length-1&&this.line("/Next "+this.makeRef(n.children[A+1])),o.children.length>0&&(this.line("/First "+this.makeRef(o.children[0])),this.line("/Last "+this.makeRef(o.children[o.children.length-1])));var s=this.count=this.count_r({count:0},o);if(s>0&&this.line("/Count "+s),o.options&&o.options.pageNumber){var l=r.internal.getPageInfo(o.options.pageNumber);this.line("/Dest ["+l.objId+" 0 R /XYZ 0 "+a(0)+" 0]")}this.objEnd()}for(var c=0;c<n.children.length;c++)this.renderItems(n.children[c])},r.outline.line=function(n){this.ctx.val+=n+`\r
140
- `},r.outline.makeRef=function(n){return n.id+" 0 R"},r.outline.makeString=function(n){return"("+r.internal.pdfEscape(n)+")"},r.outline.objStart=function(n){this.ctx.val+=`\r
141
- `+n.id+` 0 obj\r
142
- <<\r
143
- `},r.outline.objEnd=function(){this.ctx.val+=`>> \r
144
- endobj\r
145
- `},r.outline.count_r=function(n,a){for(var A=0;A<a.children.length;A++)n.count++,this.count_r(n,a.children[A]);return n.count}}])}(xt.API),function(t){var e=[192,193,194,195,196,197,198,199];t.processJPEG=function(r,n,a,A,o,s){var l,c=this.decode.DCT_DECODE,u=null;if(typeof r=="string"||this.__addimage__.isArrayBuffer(r)||this.__addimage__.isArrayBufferView(r)){switch(r=o||r,r=this.__addimage__.isArrayBuffer(r)?new Uint8Array(r):r,(l=function(p){for(var h,d=256*p.charCodeAt(4)+p.charCodeAt(5),w=p.length,f={width:0,height:0,numcomponents:1},m=4;m<w;m+=2){if(m+=d,e.indexOf(p.charCodeAt(m+1))!==-1){h=256*p.charCodeAt(m+5)+p.charCodeAt(m+6),f={width:256*p.charCodeAt(m+7)+p.charCodeAt(m+8),height:h,numcomponents:p.charCodeAt(m+9)};break}d=256*p.charCodeAt(m+2)+p.charCodeAt(m+3)}return f}(r=this.__addimage__.isArrayBufferView(r)?this.__addimage__.arrayBufferToBinaryString(r):r)).numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;case 3:s=this.color_spaces.DEVICE_RGB}u={data:r,width:l.width,height:l.height,colorSpace:s,bitsPerComponent:8,filter:c,index:n,alias:a}}return u}}(xt.API);var ps,gh,Tv,Nv,Lv,OT=function(){var t,e,r;function n(A){var o,s,l,c,u,p,h,d,w,f,m,y,F,N;for(this.data=A,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},p=null;;){switch(o=this.readUInt32(),w=(function(){var D,H;for(H=[],D=0;D<4;++D)H.push(String.fromCharCode(this.data[this.pos++]));return H}).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(o);break;case"fcTL":p&&this.animation.frames.push(p),this.pos+=4,p={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},u=this.readUInt16(),c=this.readUInt16()||100,p.delay=1e3*u/c,p.disposeOp=this.data[this.pos++],p.blendOp=this.data[this.pos++],p.data=[];break;case"IDAT":case"fdAT":for(w==="fdAT"&&(this.pos+=4,o-=4),A=(p!=null?p.data:void 0)||this.imgData,y=0;0<=o?y<o:y>o;0<=o?++y:--y)A.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(l=this.palette.length/3,this.transparency.indexed=this.read(o),this.transparency.indexed.length>l)throw new Error("More transparent colors than palette size");if((f=l-this.transparency.indexed.length)>0)for(F=0;0<=f?F<f:F>f;0<=f?++F:--F)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(o)[0];break;case 2:this.transparency.rgb=this.read(o)}break;case"tEXt":h=(m=this.read(o)).indexOf(0),d=String.fromCharCode.apply(String,m.slice(0,h)),this.text[d]=String.fromCharCode.apply(String,m.slice(h+1));break;case"IEND":return p&&this.animation.frames.push(p),this.colors=(function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}).call(this),this.hasAlphaChannel=(N=this.colorType)===4||N===6,s=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*s,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+=o}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}n.prototype.read=function(A){var o,s;for(s=[],o=0;0<=A?o<A:o>A;0<=A?++o:--o)s.push(this.data[this.pos++]);return s},n.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},n.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},n.prototype.decodePixels=function(A){var o=this.pixelBitlength/8,s=new Uint8Array(this.width*this.height*o),l=0,c=this;if(A==null&&(A=this.imgData),A.length===0)return new Uint8Array(0);function u(p,h,d,w){var f,m,y,F,N,D,H,R,U,I,O,q,T,L,G,Y,se,he,ge,re,le,fe=Math.ceil((c.width-p)/d),Ue=Math.ceil((c.height-h)/w),b=c.width==fe&&c.height==Ue;for(L=o*fe,q=b?s:new Uint8Array(L*Ue),D=A.length,T=0,m=0;T<Ue&&l<D;){switch(A[l++]){case 0:for(F=se=0;se<L;F=se+=1)q[m++]=A[l++];break;case 1:for(F=he=0;he<L;F=he+=1)f=A[l++],N=F<o?0:q[m-o],q[m++]=(f+N)%256;break;case 2:for(F=ge=0;ge<L;F=ge+=1)f=A[l++],y=(F-F%o)/o,G=T&&q[(T-1)*L+y*o+F%o],q[m++]=(G+f)%256;break;case 3:for(F=re=0;re<L;F=re+=1)f=A[l++],y=(F-F%o)/o,N=F<o?0:q[m-o],G=T&&q[(T-1)*L+y*o+F%o],q[m++]=(f+Math.floor((N+G)/2))%256;break;case 4:for(F=le=0;le<L;F=le+=1)f=A[l++],y=(F-F%o)/o,N=F<o?0:q[m-o],T===0?G=Y=0:(G=q[(T-1)*L+y*o+F%o],Y=y&&q[(T-1)*L+(y-1)*o+F%o]),H=N+G-Y,R=Math.abs(H-N),I=Math.abs(H-G),O=Math.abs(H-Y),U=R<=I&&R<=O?N:I<=O?G:Y,q[m++]=(f+U)%256;break;default:throw new Error("Invalid filter algorithm: "+A[l-1])}if(!b){var _=((h+T*w)*c.width+p)*o,B=T*L;for(F=0;F<fe;F+=1){for(var x=0;x<o;x+=1)s[_++]=q[B++];_+=(d-1)*o}}T++}}return A=mT(A),c.interlaceMethod==1?(u(0,0,8,8),u(4,0,8,8),u(0,4,4,8),u(2,0,4,4),u(0,2,2,4),u(1,0,2,2),u(0,1,1,2)):u(0,0,1,1),s},n.prototype.decodePalette=function(){var A,o,s,l,c,u,p,h,d;for(s=this.palette,u=this.transparency.indexed||[],c=new Uint8Array((u.length||0)+s.length),l=0,A=0,o=p=0,h=s.length;p<h;o=p+=3)c[l++]=s[o],c[l++]=s[o+1],c[l++]=s[o+2],c[l++]=(d=u[A++])!=null?d:255;return c},n.prototype.copyToImageData=function(A,o){var s,l,c,u,p,h,d,w,f,m,y;if(l=this.colors,f=null,s=this.hasAlphaChannel,this.palette.length&&(f=(y=this._decodedPalette)!=null?y:this._decodedPalette=this.decodePalette(),l=4,s=!0),w=(c=A.data||A).length,p=f||o,u=h=0,l===1)for(;u<w;)d=f?4*o[u/4]:h,m=p[d++],c[u++]=m,c[u++]=m,c[u++]=m,c[u++]=s?p[d++]:255,h=d;else for(;u<w;)d=f?4*o[u/4]:h,c[u++]=p[d++],c[u++]=p[d++],c[u++]=p[d++],c[u++]=s?p[d++]:255,h=d},n.prototype.decode=function(){var A;return A=new Uint8Array(this.width*this.height*4),this.copyToImageData(A,this.decodePixels()),A};var a=function(){if(Object.prototype.toString.call(Bt)==="[object Window]"){try{e=Bt.document.createElement("canvas"),r=e.getContext("2d")}catch{return!1}return!0}return!1};return a(),t=function(A){var o;if(a()===!0)return r.width=A.width,r.height=A.height,r.clearRect(0,0,A.width,A.height),r.putImageData(A,0,0),(o=new Image).src=e.toDataURL(),o;throw new Error("This method requires a Browser with Canvas-capability.")},n.prototype.decodeFrames=function(A){var o,s,l,c,u,p,h,d;if(this.animation){for(d=[],s=u=0,p=(h=this.animation.frames).length;u<p;s=++u)o=h[s],l=A.createImageData(o.width,o.height),c=this.decodePixels(new Uint8Array(o.data)),this.copyToImageData(l,c),o.imageData=l,d.push(o.image=t(l));return d}},n.prototype.renderFrame=function(A,o){var s,l,c;return s=(l=this.animation.frames)[o],c=l[o-1],o===0&&A.clearRect(0,0,this.width,this.height),(c!=null?c.disposeOp:void 0)===1?A.clearRect(c.xOffset,c.yOffset,c.width,c.height):(c!=null?c.disposeOp:void 0)===2&&A.putImageData(c.imageData,c.xOffset,c.yOffset),s.blendOp===0&&A.clearRect(s.xOffset,s.yOffset,s.width,s.height),A.drawImage(s.image,s.xOffset,s.yOffset)},n.prototype.animate=function(A){var o,s,l,c,u,p,h=this;return s=0,p=this.animation,c=p.numFrames,l=p.frames,u=p.numPlays,(o=function(){var d,w;if(d=s++%c,w=l[d],h.renderFrame(A,d),c>1&&s/c<u)return h.animation._timeout=setTimeout(o,w.delay)})()},n.prototype.stopAnimation=function(){var A;return clearTimeout((A=this.animation)!=null?A._timeout:void 0)},n.prototype.render=function(A){var o,s;return A._png&&A._png.stopAnimation(),A._png=this,A.width=this.width,A.height=this.height,o=A.getContext("2d"),this.animation?(this.decodeFrames(o),this.animate(o)):(s=o.createImageData(this.width,this.height),this.copyToImageData(s,this.decodePixels()),o.putImageData(s,0,0))},n}();/**
146
- * @license
147
- *
148
- * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
149
- *
150
- * Permission is hereby granted, free of charge, to any person obtaining
151
- * a copy of this software and associated documentation files (the
152
- * "Software"), to deal in the Software without restriction, including
153
- * without limitation the rights to use, copy, modify, merge, publish,
154
- * distribute, sublicense, and/or sell copies of the Software, and to
155
- * permit persons to whom the Software is furnished to do so, subject to
156
- * the following conditions:
157
- *
158
- * The above copyright notice and this permission notice shall be
159
- * included in all copies or substantial portions of the Software.
160
- *
161
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
162
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
163
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
164
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
165
- * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
166
- * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
167
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
168
- * ====================================================================
169
- *//**
170
- * @license
171
- * (c) Dean McNamee <dean@gmail.com>, 2013.
172
- *
173
- * https://github.com/deanm/omggif
174
- *
175
- * Permission is hereby granted, free of charge, to any person obtaining a copy
176
- * of this software and associated documentation files (the "Software"), to
177
- * deal in the Software without restriction, including without limitation the
178
- * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
179
- * sell copies of the Software, and to permit persons to whom the Software is
180
- * furnished to do so, subject to the following conditions:
181
- *
182
- * The above copyright notice and this permission notice shall be included in
183
- * all copies or substantial portions of the Software.
184
- *
185
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
186
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
187
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
188
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
189
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
190
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
191
- * IN THE SOFTWARE.
192
- *
193
- * omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
194
- * including animation and compression. It does not rely on any specific
195
- * underlying system, so should run in the browser, Node, or Plask.
196
- */function PT(t){var e=0;if(t[e++]!==71||t[e++]!==73||t[e++]!==70||t[e++]!==56||(t[e++]+1&253)!=56||t[e++]!==97)throw new Error("Invalid GIF 87a/89a header.");var r=t[e++]|t[e++]<<8,n=t[e++]|t[e++]<<8,a=t[e++],A=a>>7,o=1<<(7&a)+1;t[e++],t[e++];var s=null,l=null;A&&(s=e,l=o,e+=3*o);var c=!0,u=[],p=0,h=null,d=0,w=null;for(this.width=r,this.height=n;c&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(t[e]!==11||t[e+1]==78&&t[e+2]==69&&t[e+3]==84&&t[e+4]==83&&t[e+5]==67&&t[e+6]==65&&t[e+7]==80&&t[e+8]==69&&t[e+9]==50&&t[e+10]==46&&t[e+11]==48&&t[e+12]==3&&t[e+13]==1&&t[e+16]==0)e+=14,w=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(!((T=t[e++])>=0))throw Error("Invalid block size");if(T===0)break;e+=T}break;case 249:if(t[e++]!==4||t[e+4]!==0)throw new Error("Invalid graphics extension block.");var f=t[e++];p=t[e++]|t[e++]<<8,h=t[e++],!(1&f)&&(h=null),d=f>>2&7,e++;break;case 254:for(;;){if(!((T=t[e++])>=0))throw Error("Invalid block size");if(T===0)break;e+=T}break;default:throw new Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var m=t[e++]|t[e++]<<8,y=t[e++]|t[e++]<<8,F=t[e++]|t[e++]<<8,N=t[e++]|t[e++]<<8,D=t[e++],H=D>>6&1,R=1<<(7&D)+1,U=s,I=l,O=!1;D>>7&&(O=!0,U=e,I=R,e+=3*R);var q=e;for(e++;;){var T;if(!((T=t[e++])>=0))throw Error("Invalid block size");if(T===0)break;e+=T}u.push({x:m,y,width:F,height:N,has_local_palette:O,palette_offset:U,palette_size:I,data_offset:q,data_length:e-q,transparent_index:h,interlaced:!!H,delay:p,disposal:d});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return w},this.frameInfo=function(L){if(L<0||L>=u.length)throw new Error("Frame index out of range.");return u[L]},this.decodeAndBlitFrameBGRA=function(L,G){var Y=this.frameInfo(L),se=Y.width*Y.height,he=new Uint8Array(se);Uv(t,Y.data_offset,he,se);var ge=Y.palette_offset,re=Y.transparent_index;re===null&&(re=256);var le=Y.width,fe=r-le,Ue=le,b=4*(Y.y*r+Y.x),_=4*((Y.y+Y.height)*r+Y.x),B=b,x=4*fe;Y.interlaced===!0&&(x+=4*r*7);for(var S=8,Q=0,W=he.length;Q<W;++Q){var ue=he[Q];if(Ue===0&&(Ue=le,(B+=x)>=_&&(x=4*fe+4*r*(S-1),B=b+(le+fe)*(S<<1),S>>=1)),ue===re)B+=4;else{var Ce=t[ge+3*ue],de=t[ge+3*ue+1],ke=t[ge+3*ue+2];G[B++]=ke,G[B++]=de,G[B++]=Ce,G[B++]=255}--Ue}},this.decodeAndBlitFrameRGBA=function(L,G){var Y=this.frameInfo(L),se=Y.width*Y.height,he=new Uint8Array(se);Uv(t,Y.data_offset,he,se);var ge=Y.palette_offset,re=Y.transparent_index;re===null&&(re=256);var le=Y.width,fe=r-le,Ue=le,b=4*(Y.y*r+Y.x),_=4*((Y.y+Y.height)*r+Y.x),B=b,x=4*fe;Y.interlaced===!0&&(x+=4*r*7);for(var S=8,Q=0,W=he.length;Q<W;++Q){var ue=he[Q];if(Ue===0&&(Ue=le,(B+=x)>=_&&(x=4*fe+4*r*(S-1),B=b+(le+fe)*(S<<1),S>>=1)),ue===re)B+=4;else{var Ce=t[ge+3*ue],de=t[ge+3*ue+1],ke=t[ge+3*ue+2];G[B++]=Ce,G[B++]=de,G[B++]=ke,G[B++]=255}--Ue}}}function Uv(t,e,r,n){for(var a=t[e++],A=1<<a,o=A+1,s=o+1,l=a+1,c=(1<<l)-1,u=0,p=0,h=0,d=t[e++],w=new Int32Array(4096),f=null;;){for(;u<16&&d!==0;)p|=t[e++]<<u,u+=8,d===1?d=t[e++]:--d;if(u<l)break;var m=p&c;if(p>>=l,u-=l,m!==A){if(m===o)break;for(var y=m<s?m:f,F=0,N=y;N>A;)N=w[N]>>8,++F;var D=N;if(h+F+(y!==m?1:0)>n)return void hr.log("Warning, gif stream longer than expected.");r[h++]=D;var H=h+=F;for(y!==m&&(r[h++]=D),N=y;F--;)N=w[N],r[--H]=255&N,N>>=8;f!==null&&s<4096&&(w[s++]=f<<8|D,s>=c+1&&l<12&&(++l,c=c<<1|1)),f=m}else s=o+1,c=(1<<(l=a+1))-1,f=null}return h!==n&&hr.log("Warning, gif stream shorter than expected."),r}/**
197
- * @license
198
- Copyright (c) 2008, Adobe Systems Incorporated
199
- All rights reserved.
200
-
201
- Redistribution and use in source and binary forms, with or without
202
- modification, are permitted provided that the following conditions are
203
- met:
204
-
205
- * Redistributions of source code must retain the above copyright notice,
206
- this list of conditions and the following disclaimer.
207
-
208
- * Redistributions in binary form must reproduce the above copyright
209
- notice, this list of conditions and the following disclaimer in the
210
- documentation and/or other materials provided with the distribution.
211
-
212
- * Neither the name of Adobe Systems Incorporated nor the names of its
213
- contributors may be used to endorse or promote products derived from
214
- this software without specific prior written permission.
215
-
216
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
217
- IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
218
- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
219
- PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
220
- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
221
- EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
222
- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
223
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
224
- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
225
- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
226
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
227
- */function tg(t){var e,r,n,a,A,o=Math.floor,s=new Array(64),l=new Array(64),c=new Array(64),u=new Array(64),p=new Array(65535),h=new Array(65535),d=new Array(64),w=new Array(64),f=[],m=0,y=7,F=new Array(64),N=new Array(64),D=new Array(64),H=new Array(256),R=new Array(2048),U=[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],I=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],O=[0,1,2,3,4,5,6,7,8,9,10,11],q=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],T=[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],L=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],G=[0,1,2,3,4,5,6,7,8,9,10,11],Y=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],se=[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 he(b,_){for(var B=0,x=0,S=new Array,Q=1;Q<=16;Q++){for(var W=1;W<=b[Q];W++)S[_[x]]=[],S[_[x]][0]=B,S[_[x]][1]=Q,x++,B++;B*=2}return S}function ge(b){for(var _=b[0],B=b[1]-1;B>=0;)_&1<<B&&(m|=1<<y),B--,--y<0&&(m==255?(re(255),re(0)):re(m),y=7,m=0)}function re(b){f.push(b)}function le(b){re(b>>8&255),re(255&b)}function fe(b,_,B,x,S){for(var Q,W=S[0],ue=S[240],Ce=function(Ve,We){var Ye,Je,ot,at,ft,vt,kt,Nt,dt,bt,tt=0;for(dt=0;dt<8;++dt){Ye=Ve[tt],Je=Ve[tt+1],ot=Ve[tt+2],at=Ve[tt+3],ft=Ve[tt+4],vt=Ve[tt+5],kt=Ve[tt+6];var ir=Ye+(Nt=Ve[tt+7]),Lt=Ye-Nt,fr=Je+kt,Qt=Je-kt,Kt=ot+vt,Zr=ot-vt,Rt=at+ft,_r=at-ft,Yt=ir+Rt,on=ir-Rt,_t=fr+Kt,Gt=fr-Kt;Ve[tt]=Yt+_t,Ve[tt+4]=Yt-_t;var Ct=.707106781*(Gt+on);Ve[tt+2]=on+Ct,Ve[tt+6]=on-Ct;var $t=.382683433*((Yt=_r+Zr)-(Gt=Qt+Lt)),ba=.5411961*Yt+$t,Ir=1.306562965*Gt+$t,Zn=.707106781*(_t=Zr+Qt),sa=Lt+Zn,gt=Lt-Zn;Ve[tt+5]=gt+ba,Ve[tt+3]=gt-ba,Ve[tt+1]=sa+Ir,Ve[tt+7]=sa-Ir,tt+=8}for(tt=0,dt=0;dt<8;++dt){Ye=Ve[tt],Je=Ve[tt+8],ot=Ve[tt+16],at=Ve[tt+24],ft=Ve[tt+32],vt=Ve[tt+40],kt=Ve[tt+48];var Fn=Ye+(Nt=Ve[tt+56]),Mn=Ye-Nt,mr=Je+kt,xr=Je-kt,br=ot+vt,V=ot-vt,ie=at+ft,Z=at-ft,ee=Fn+ie,Ae=Fn-ie,oe=mr+br,Se=mr-br;Ve[tt]=ee+oe,Ve[tt+32]=ee-oe;var Ie=.707106781*(Se+Ae);Ve[tt+16]=Ae+Ie,Ve[tt+48]=Ae-Ie;var Fe=.382683433*((ee=Z+V)-(Se=xr+Mn)),pe=.5411961*ee+Fe,X=1.306562965*Se+Fe,we=.707106781*(oe=V+xr),Le=Mn+we,Ke=Mn-we;Ve[tt+40]=Ke+pe,Ve[tt+24]=Ke-pe,Ve[tt+8]=Le+X,Ve[tt+56]=Le-X,tt++}for(dt=0;dt<64;++dt)bt=Ve[dt]*We[dt],d[dt]=bt>0?bt+.5|0:bt-.5|0;return d}(b,_),de=0;de<64;++de)w[U[de]]=Ce[de];var ke=w[0]-B;B=w[0],ke==0?ge(x[0]):(ge(x[h[Q=32767+ke]]),ge(p[Q]));for(var ne=63;ne>0&&w[ne]==0;)ne--;if(ne==0)return ge(W),B;for(var Ee,xe=1;xe<=ne;){for(var te=xe;w[xe]==0&&xe<=ne;)++xe;var Pe=xe-te;if(Pe>=16){Ee=Pe>>4;for(var rt=1;rt<=Ee;++rt)ge(ue);Pe&=15}Q=32767+w[xe],ge(S[(Pe<<4)+h[Q]]),ge(p[Q]),xe++}return ne!=63&&ge(W),B}function Ue(b){b=Math.min(Math.max(b,1),100),A!=b&&(function(_){for(var B=[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],x=0;x<64;x++){var S=o((B[x]*_+50)/100);S=Math.min(Math.max(S,1),255),s[U[x]]=S}for(var Q=[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],W=0;W<64;W++){var ue=o((Q[W]*_+50)/100);ue=Math.min(Math.max(ue,1),255),l[U[W]]=ue}for(var Ce=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],de=0,ke=0;ke<8;ke++)for(var ne=0;ne<8;ne++)c[de]=1/(s[U[de]]*Ce[ke]*Ce[ne]*8),u[de]=1/(l[U[de]]*Ce[ke]*Ce[ne]*8),de++}(b<50?Math.floor(5e3/b):Math.floor(200-2*b)),A=b)}this.encode=function(b,_){_&&Ue(_),f=new Array,m=0,y=7,le(65496),le(65504),le(16),re(74),re(70),re(73),re(70),re(0),re(1),re(1),re(0),le(1),le(1),re(0),re(0),function(){le(65499),le(132),re(0);for(var Je=0;Je<64;Je++)re(s[Je]);re(1);for(var ot=0;ot<64;ot++)re(l[ot])}(),function(Je,ot){le(65472),le(17),re(8),le(ot),le(Je),re(3),re(1),re(17),re(0),re(2),re(17),re(1),re(3),re(17),re(1)}(b.width,b.height),function(){le(65476),le(418),re(0);for(var Je=0;Je<16;Je++)re(I[Je+1]);for(var ot=0;ot<=11;ot++)re(O[ot]);re(16);for(var at=0;at<16;at++)re(q[at+1]);for(var ft=0;ft<=161;ft++)re(T[ft]);re(1);for(var vt=0;vt<16;vt++)re(L[vt+1]);for(var kt=0;kt<=11;kt++)re(G[kt]);re(17);for(var Nt=0;Nt<16;Nt++)re(Y[Nt+1]);for(var dt=0;dt<=161;dt++)re(se[dt])}(),le(65498),le(12),re(3),re(1),re(0),re(2),re(17),re(3),re(17),re(0),re(63),re(0);var B=0,x=0,S=0;m=0,y=7,this.encode.displayName="_encode_";for(var Q,W,ue,Ce,de,ke,ne,Ee,xe,te=b.data,Pe=b.width,rt=b.height,Ve=4*Pe,We=0;We<rt;){for(Q=0;Q<Ve;){for(de=Ve*We+Q,ne=-1,Ee=0,xe=0;xe<64;xe++)ke=de+(Ee=xe>>3)*Ve+(ne=4*(7&xe)),We+Ee>=rt&&(ke-=Ve*(We+1+Ee-rt)),Q+ne>=Ve&&(ke-=Q+ne-Ve+4),W=te[ke++],ue=te[ke++],Ce=te[ke++],F[xe]=(R[W]+R[ue+256>>0]+R[Ce+512>>0]>>16)-128,N[xe]=(R[W+768>>0]+R[ue+1024>>0]+R[Ce+1280>>0]>>16)-128,D[xe]=(R[W+1280>>0]+R[ue+1536>>0]+R[Ce+1792>>0]>>16)-128;B=fe(F,c,B,e,n),x=fe(N,u,x,r,a),S=fe(D,u,S,r,a),Q+=32}We+=8}if(y>=0){var Ye=[];Ye[1]=y+1,Ye[0]=(1<<y+1)-1,ge(Ye)}return le(65497),new Uint8Array(f)},t=t||50,function(){for(var b=String.fromCharCode,_=0;_<256;_++)H[_]=b(_)}(),e=he(I,O),r=he(L,G),n=he(q,T),a=he(Y,se),function(){for(var b=1,_=2,B=1;B<=15;B++){for(var x=b;x<_;x++)h[32767+x]=B,p[32767+x]=[],p[32767+x][1]=B,p[32767+x][0]=x;for(var S=-(_-1);S<=-b;S++)h[32767+S]=B,p[32767+S]=[],p[32767+S][1]=B,p[32767+S][0]=_-1+S;b<<=1,_<<=1}}(),function(){for(var b=0;b<256;b++)R[b]=19595*b,R[b+256>>0]=38470*b,R[b+512>>0]=7471*b+32768,R[b+768>>0]=-11059*b,R[b+1024>>0]=-21709*b,R[b+1280>>0]=32768*b+8421375,R[b+1536>>0]=-27439*b,R[b+1792>>0]=-5329*b}(),Ue(t)}/**
228
- * @license
229
- * Copyright (c) 2017 Aras Abbasi
230
- *
231
- * Licensed under the MIT License.
232
- * http://opensource.org/licenses/mit-license
233
- */function ja(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,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Iv(t){function e(I){if(!I)throw Error("assert :P")}function r(I,O,q){for(var T=0;4>T;T++)if(I[O+T]!=q.charCodeAt(T))return!0;return!1}function n(I,O,q,T,L){for(var G=0;G<L;G++)I[O+G]=q[T+G]}function a(I,O,q,T){for(var L=0;L<T;L++)I[O+L]=q}function A(I){return new Int32Array(I)}function o(I,O){for(var q=[],T=0;T<I;T++)q.push(new O);return q}function s(I,O){var q=[];return function T(L,G,Y){for(var se=Y[G],he=0;he<se&&(L.push(Y.length>G+1?[]:new O),!(Y.length<G+1));he++)T(L[he],G+1,Y)}(q,0,I),q}var l=function(){var I=this;function O(g,v){for(var E=1<<v-1>>>0;g&E;)E>>>=1;return E?(g&E-1)+E:g}function q(g,v,E,k,P){e(!(k%E));do g[v+(k-=E)]=P;while(0<k)}function T(g,v,E,k,P){if(e(2328>=P),512>=P)var z=A(512);else if((z=A(P))==null)return 0;return function(K,j,J,ae,ye,Te){var Ne,be,He=j,De=1<<J,ve=A(16),Be=A(16);for(e(ye!=0),e(ae!=null),e(K!=null),e(0<J),be=0;be<ye;++be){if(15<ae[be])return 0;++ve[ae[be]]}if(ve[0]==ye)return 0;for(Be[1]=0,Ne=1;15>Ne;++Ne){if(ve[Ne]>1<<Ne)return 0;Be[Ne+1]=Be[Ne]+ve[Ne]}for(be=0;be<ye;++be)Ne=ae[be],0<ae[be]&&(Te[Be[Ne]++]=be);if(Be[15]==1)return(ae=new L).g=0,ae.value=Te[0],q(K,He,1,De,ae),De;var Me,Ge=-1,Re=De-1,lt=0,nt=1,wt=1,At=1<<J;for(be=0,Ne=1,ye=2;Ne<=J;++Ne,ye<<=1){if(nt+=wt<<=1,0>(wt-=ve[Ne]))return 0;for(;0<ve[Ne];--ve[Ne])(ae=new L).g=Ne,ae.value=Te[be++],q(K,He+lt,ye,At,ae),lt=O(lt,Ne)}for(Ne=J+1,ye=2;15>=Ne;++Ne,ye<<=1){if(nt+=wt<<=1,0>(wt-=ve[Ne]))return 0;for(;0<ve[Ne];--ve[Ne]){if(ae=new L,(lt&Re)!=Ge){for(He+=At,Me=1<<(Ge=Ne)-J;15>Ge&&!(0>=(Me-=ve[Ge]));)++Ge,Me<<=1;De+=At=1<<(Me=Ge-J),K[j+(Ge=lt&Re)].g=Me+J,K[j+Ge].value=He-j-Ge}ae.g=Ne-J,ae.value=Te[be++],q(K,He+(lt>>J),ye,At,ae),lt=O(lt,Ne)}}return nt!=2*Be[15]-1?0:De}(g,v,E,k,P,z)}function L(){this.value=this.g=0}function G(){this.value=this.g=0}function Y(){this.G=o(5,L),this.H=A(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(ua,G)}function se(g,v,E,k){e(g!=null),e(v!=null),e(2147483648>k),g.Ca=254,g.I=0,g.b=-8,g.Ka=0,g.oa=v,g.pa=E,g.Jd=v,g.Yc=E+k,g.Zc=4<=k?E+k-4+1:E,Q(g)}function he(g,v){for(var E=0;0<v--;)E|=ue(g,128)<<v;return E}function ge(g,v){var E=he(g,v);return W(g)?-E:E}function re(g,v,E,k){var P,z=0;for(e(g!=null),e(v!=null),e(4294967288>k),g.Sb=k,g.Ra=0,g.u=0,g.h=0,4<k&&(k=4),P=0;P<k;++P)z+=v[E+P]<<8*P;g.Ra=z,g.bb=k,g.oa=v,g.pa=E}function le(g){for(;8<=g.u&&g.bb<g.Sb;)g.Ra>>>=8,g.Ra+=g.oa[g.pa+g.bb]<<sl-8>>>0,++g.bb,g.u-=8;B(g)&&(g.h=1,g.u=0)}function fe(g,v){if(e(0<=v),!g.h&&v<=ol){var E=_(g)&il[v];return g.u+=v,le(g),E}return g.h=1,g.u=0}function Ue(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function b(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function _(g){return g.Ra>>>(g.u&sl-1)>>>0}function B(g){return e(g.bb<=g.Sb),g.h||g.bb==g.Sb&&g.u>sl}function x(g,v){g.u=v,g.h=B(g)}function S(g){g.u>=Jc&&(e(g.u>=Jc),le(g))}function Q(g){e(g!=null&&g.oa!=null),g.pa<g.Zc?(g.I=(g.oa[g.pa++]|g.I<<8)>>>0,g.b+=8):(e(g!=null&&g.oa!=null),g.pa<g.Yc?(g.b+=8,g.I=g.oa[g.pa++]|g.I<<8):g.Ka?g.b=0:(g.I<<=8,g.b+=8,g.Ka=1))}function W(g){return he(g,1)}function ue(g,v){var E=g.Ca;0>g.b&&Q(g);var k=g.b,P=E*v>>>8,z=(g.I>>>k>P)+0;for(z?(E-=P,g.I-=P+1<<k>>>0):E=P+1,k=E,P=0;256<=k;)P+=8,k>>=8;return k=7^P+ha[k],g.b-=k,g.Ca=(E<<k)-1,z}function Ce(g,v,E){g[v+0]=E>>24&255,g[v+1]=E>>16&255,g[v+2]=E>>8&255,g[v+3]=E>>0&255}function de(g,v){return g[v+0]<<0|g[v+1]<<8}function ke(g,v){return de(g,v)|g[v+2]<<16}function ne(g,v){return de(g,v)|de(g,v+2)<<16}function Ee(g,v){var E=1<<v;return e(g!=null),e(0<v),g.X=A(E),g.X==null?0:(g.Mb=32-v,g.Xa=v,1)}function xe(g,v){e(g!=null),e(v!=null),e(g.Xa==v.Xa),n(v.X,0,g.X,0,1<<v.Xa)}function te(){this.X=[],this.Xa=this.Mb=0}function Pe(g,v,E,k){e(E!=null),e(k!=null);var P=E[0],z=k[0];return P==0&&(P=(g*z+v/2)/v),z==0&&(z=(v*P+g/2)/g),0>=P||0>=z?0:(E[0]=P,k[0]=z,1)}function rt(g,v){return g+(1<<v)-1>>>v}function Ve(g,v){return((4278255360&g)+(4278255360&v)>>>0&4278255360)+((16711935&g)+(16711935&v)>>>0&16711935)>>>0}function We(g,v){I[v]=function(E,k,P,z,K,j,J){var ae;for(ae=0;ae<K;++ae){var ye=I[g](j[J+ae-1],P,z+ae);j[J+ae]=Ve(E[k+ae],ye)}}}function Ye(){this.ud=this.hd=this.jd=0}function Je(g,v){return((4278124286&(g^v))>>>1)+(g&v)>>>0}function ot(g){return 0<=g&&256>g?g:0>g?0:255<g?255:void 0}function at(g,v){return ot(g+(g-v+.5>>1))}function ft(g,v,E){return Math.abs(v-E)-Math.abs(g-E)}function vt(g,v,E,k,P,z,K){for(k=z[K-1],E=0;E<P;++E)z[K+E]=k=Ve(g[v+E],k)}function kt(g,v,E,k,P){var z;for(z=0;z<E;++z){var K=g[v+z],j=K>>8&255,J=16711935&(J=(J=16711935&K)+((j<<16)+j));k[P+z]=(4278255360&K)+J>>>0}}function Nt(g,v){v.jd=g>>0&255,v.hd=g>>8&255,v.ud=g>>16&255}function dt(g,v,E,k,P,z){var K;for(K=0;K<k;++K){var j=v[E+K],J=j>>>8,ae=j,ye=255&(ye=(ye=j>>>16)+((g.jd<<24>>24)*(J<<24>>24)>>>5));ae=255&(ae=(ae=ae+((g.hd<<24>>24)*(J<<24>>24)>>>5))+((g.ud<<24>>24)*(ye<<24>>24)>>>5)),P[z+K]=(4278255360&j)+(ye<<16)+ae}}function bt(g,v,E,k,P){I[v]=function(z,K,j,J,ae,ye,Te,Ne,be){for(J=Te;J<Ne;++J)for(Te=0;Te<be;++Te)ae[ye++]=P(j[k(z[K++])])},I[g]=function(z,K,j,J,ae,ye,Te){var Ne=8>>z.b,be=z.Ea,He=z.K[0],De=z.w;if(8>Ne)for(z=(1<<z.b)-1,De=(1<<Ne)-1;K<j;++K){var ve,Be=0;for(ve=0;ve<be;++ve)ve&z||(Be=k(J[ae++])),ye[Te++]=P(He[Be&De]),Be>>=Ne}else I["VP8LMapColor"+E](J,ae,He,De,ye,Te,K,j,be)}}function tt(g,v,E,k,P){for(E=v+E;v<E;){var z=g[v++];k[P++]=z>>16&255,k[P++]=z>>8&255,k[P++]=z>>0&255}}function ir(g,v,E,k,P){for(E=v+E;v<E;){var z=g[v++];k[P++]=z>>16&255,k[P++]=z>>8&255,k[P++]=z>>0&255,k[P++]=z>>24&255}}function Lt(g,v,E,k,P){for(E=v+E;v<E;){var z=(K=g[v++])>>16&240|K>>12&15,K=K>>0&240|K>>28&15;k[P++]=z,k[P++]=K}}function fr(g,v,E,k,P){for(E=v+E;v<E;){var z=(K=g[v++])>>16&248|K>>13&7,K=K>>5&224|K>>3&31;k[P++]=z,k[P++]=K}}function Qt(g,v,E,k,P){for(E=v+E;v<E;){var z=g[v++];k[P++]=z>>0&255,k[P++]=z>>8&255,k[P++]=z>>16&255}}function Kt(g,v,E,k,P,z){if(z==0)for(E=v+E;v<E;)Ce(k,((z=g[v++])[0]>>24|z[1]>>8&65280|z[2]<<8&16711680|z[3]<<24)>>>0),P+=32;else n(k,P,g,v,E)}function Zr(g,v){I[v][0]=I[g+"0"],I[v][1]=I[g+"1"],I[v][2]=I[g+"2"],I[v][3]=I[g+"3"],I[v][4]=I[g+"4"],I[v][5]=I[g+"5"],I[v][6]=I[g+"6"],I[v][7]=I[g+"7"],I[v][8]=I[g+"8"],I[v][9]=I[g+"9"],I[v][10]=I[g+"10"],I[v][11]=I[g+"11"],I[v][12]=I[g+"12"],I[v][13]=I[g+"13"],I[v][14]=I[g+"0"],I[v][15]=I[g+"0"]}function Rt(g){return g==Pm||g==Mm||g==x0||g==Rm}function _r(){this.eb=[],this.size=this.A=this.fb=0}function Yt(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function on(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new _r,this.f.kb=new Yt,this.sd=null}function _t(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Gt(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function Ct(g){return alert("todo:WebPSamplerProcessPlane"),g.T}function $t(g,v){var E=g.T,k=v.ba.f.RGBA,P=k.eb,z=k.fb+g.ka*k.A,K=Ha[v.ba.S],j=g.y,J=g.O,ae=g.f,ye=g.N,Te=g.ea,Ne=g.W,be=v.cc,He=v.dc,De=v.Mc,ve=v.Nc,Be=g.ka,Me=g.ka+g.T,Ge=g.U,Re=Ge+1>>1;for(Be==0?K(j,J,null,null,ae,ye,Te,Ne,ae,ye,Te,Ne,P,z,null,null,Ge):(K(v.ec,v.fc,j,J,be,He,De,ve,ae,ye,Te,Ne,P,z-k.A,P,z,Ge),++E);Be+2<Me;Be+=2)be=ae,He=ye,De=Te,ve=Ne,ye+=g.Rc,Ne+=g.Rc,z+=2*k.A,K(j,(J+=2*g.fa)-g.fa,j,J,be,He,De,ve,ae,ye,Te,Ne,P,z-k.A,P,z,Ge);return J+=g.fa,g.j+Me<g.o?(n(v.ec,v.fc,j,J,Ge),n(v.cc,v.dc,ae,ye,Re),n(v.Mc,v.Nc,Te,Ne,Re),E--):1&Me||K(j,J,null,null,ae,ye,Te,Ne,ae,ye,Te,Ne,P,z+k.A,null,null,Ge),E}function ba(g,v,E){var k=g.F,P=[g.J];if(k!=null){var z=g.U,K=v.ba.S,j=K==B0||K==x0;v=v.ba.f.RGBA;var J=[0],ae=g.ka;J[0]=g.T,g.Kb&&(ae==0?--J[0]:(--ae,P[0]-=g.width),g.j+g.ka+g.T==g.o&&(J[0]=g.o-g.j-ae));var ye=v.eb;ae=v.fb+ae*v.A,g=p0(k,P[0],g.width,z,J,ye,ae+(j?0:3),v.A),e(E==J),g&&Rt(K)&&Zi(ye,ae,j,z,J,v.A)}return 0}function Ir(g){var v=g.ma,E=v.ba.S,k=11>E,P=E==v0||E==w0||E==B0||E==Om||E==12||Rt(E);if(v.memory=null,v.Ib=null,v.Jb=null,v.Nd=null,!qc(v.Oa,g,P?11:12))return 0;if(P&&Rt(E)&&Xe(),g.da)alert("todo:use_scaling");else{if(k){if(v.Ib=Ct,g.Kb){if(E=g.U+1>>1,v.memory=A(g.U+2*E),v.memory==null)return 0;v.ec=v.memory,v.fc=0,v.cc=v.ec,v.dc=v.fc+g.U,v.Mc=v.cc,v.Nc=v.dc+E,v.Ib=$t,Xe()}}else alert("todo:EmitYUV");P&&(v.Jb=ba,k&&_e())}if(k&&!dE){for(g=0;256>g;++g)Kie[g]=89858*(g-128)+C0>>b0,Wie[g]=-22014*(g-128)+C0,jie[g]=-45773*(g-128),Gie[g]=113618*(g-128)+C0>>b0;for(g=au;g<$m;++g)v=76283*(g-16)+C0>>b0,Xie[g-au]=Ea(v,255),qie[g-au]=Ea(v+8>>4,15);dE=1}return 1}function Zn(g){var v=g.ma,E=g.U,k=g.T;return e(!(1&g.ka)),0>=E||0>=k?0:(E=v.Ib(g,v),v.Jb!=null&&v.Jb(g,v,E),v.Dc+=E,1)}function sa(g){g.ma.memory=null}function gt(g,v,E,k){return fe(g,8)!=47?0:(v[0]=fe(g,14)+1,E[0]=fe(g,14)+1,k[0]=fe(g,1),fe(g,3)!=0?0:!g.h)}function Fn(g,v){if(4>g)return g+1;var E=g-2>>1;return(2+(1&g)<<E)+fe(v,E)+1}function Mn(g,v){return 120<v?v-120:1<=(E=((E=Nie[v-1])>>4)*g+(8-(15&E)))?E:1;var E}function mr(g,v,E){var k=_(E),P=g[v+=255&k].g-8;return 0<P&&(x(E,E.u+8),k=_(E),v+=g[v].value,v+=k&(1<<P)-1),x(E,E.u+g[v].g),g[v].value}function xr(g,v,E){return E.g+=g.g,E.value+=g.value<<v>>>0,e(8>=E.g),g.g}function br(g,v,E){var k=g.xc;return e((v=k==0?0:g.vc[g.md*(E>>k)+(v>>k)])<g.Wb),g.Ya[v]}function V(g,v,E,k){var P=g.ab,z=g.c*v,K=g.C;v=K+v;var j=E,J=k;for(k=g.Ta,E=g.Ua;0<P--;){var ae=g.gc[P],ye=K,Te=v,Ne=j,be=J,He=(J=k,j=E,ae.Ea);switch(e(ye<Te),e(Te<=ae.nc),ae.hc){case 2:g0(Ne,be,(Te-ye)*He,J,j);break;case 0:var De=ye,ve=Te,Be=J,Me=j,Ge=(At=ae).Ea;De==0&&(Um(Ne,be,null,null,1,Be,Me),vt(Ne,be+1,0,0,Ge-1,Be,Me+1),be+=Ge,Me+=Ge,++De);for(var Re=1<<At.b,lt=Re-1,nt=rt(Ge,At.b),wt=At.K,At=At.w+(De>>At.b)*nt;De<ve;){var Zt=wt,or=At,Wt=1;for(Zc(Ne,be,Be,Me-Ge,1,Be,Me);Wt<Ge;){var Vt=(Wt&~lt)+Re;Vt>Ge&&(Vt=Ge),(0,Xi[Zt[or++]>>8&15])(Ne,be+ +Wt,Be,Me+Wt-Ge,Vt-Wt,Be,Me+Wt),Wt=Vt}be+=Ge,Me+=Ge,++De&lt||(At+=nt)}Te!=ae.nc&&n(J,j-He,J,j+(Te-ye-1)*He,He);break;case 1:for(He=Ne,ve=be,Ge=(Ne=ae.Ea)-(Me=Ne&~(Be=(be=1<<ae.b)-1)),De=rt(Ne,ae.b),Re=ae.K,ae=ae.w+(ye>>ae.b)*De;ye<Te;){for(lt=Re,nt=ae,wt=new Ye,At=ve+Me,Zt=ve+Ne;ve<At;)Nt(lt[nt++],wt),Pa(wt,He,ve,be,J,j),ve+=be,j+=be;ve<Zt&&(Nt(lt[nt++],wt),Pa(wt,He,ve,Ge,J,j),ve+=Ge,j+=Ge),++ye&Be||(ae+=De)}break;case 3:if(Ne==J&&be==j&&0<ae.b){for(ve=J,Ne=He=j+(Te-ye)*He-(Me=(Te-ye)*rt(ae.Ea,ae.b)),be=J,Be=j,De=[],Me=(Ge=Me)-1;0<=Me;--Me)De[Me]=be[Be+Me];for(Me=Ge-1;0<=Me;--Me)ve[Ne+Me]=De[Me];dA(ae,ye,Te,J,He,J,j)}else dA(ae,ye,Te,Ne,be,J,j)}j=k,J=E}J!=E&&n(k,E,j,J,z)}function ie(g,v){var E=g.V,k=g.Ba+g.c*g.C,P=v-g.C;if(e(v<=g.l.o),e(16>=P),0<P){var z=g.l,K=g.Ta,j=g.Ua,J=z.width;if(V(g,P,E,k),P=j=[j],e((E=g.C)<(k=v)),e(z.v<z.va),k>z.o&&(k=z.o),E<z.j){var ae=z.j-E;E=z.j,P[0]+=ae*J}if(E>=k?E=0:(P[0]+=4*z.v,z.ka=E-z.j,z.U=z.va-z.v,z.T=k-E,E=1),E){if(j=j[0],11>(E=g.ca).S){var ye=E.f.RGBA,Te=(k=E.S,P=z.U,z=z.T,ae=ye.eb,ye.A),Ne=z;for(ye=ye.fb+g.Ma*ye.A;0<Ne--;){var be=K,He=j,De=P,ve=ae,Be=ye;switch(k){case y0:gA(be,He,De,ve,Be);break;case v0:qi(be,He,De,ve,Be);break;case Pm:qi(be,He,De,ve,Be),Zi(ve,Be,0,De,1,0);break;case aE:ll(be,He,De,ve,Be);break;case w0:Kt(be,He,De,ve,Be,1);break;case Mm:Kt(be,He,De,ve,Be,1),Zi(ve,Be,0,De,1,0);break;case B0:Kt(be,He,De,ve,Be,0);break;case x0:Kt(be,He,De,ve,Be,0),Zi(ve,Be,1,De,1,0);break;case Om:MA(be,He,De,ve,Be);break;case Rm:MA(be,He,De,ve,Be),hl(ve,Be,De,1,0);break;case AE:hi(be,He,De,ve,Be);break;default:e(0)}j+=J,ye+=Te}g.Ma+=z}else alert("todo:EmitRescaledRowsYUVA");e(g.Ma<=E.height)}}g.C=v,e(g.C<=g.i)}function Z(g){var v;if(0<g.ua)return 0;for(v=0;v<g.Wb;++v){var E=g.Ya[v].G,k=g.Ya[v].H;if(0<E[1][k[1]+0].g||0<E[2][k[2]+0].g||0<E[3][k[3]+0].g)return 0}return 1}function ee(g,v,E,k,P,z){if(g.Z!=0){var K=g.qd,j=g.rd;for(e(to[g.Z]!=null);v<E;++v)to[g.Z](K,j,k,P,k,P,z),K=k,j=P,P+=z;g.qd=K,g.rd=j}}function Ae(g,v){var E=g.l.ma,k=E.Z==0||E.Z==1?g.l.j:g.C;if(k=g.C<k?k:g.C,e(v<=g.l.o),v>k){var P=g.l.width,z=E.ca,K=E.tb+P*k,j=g.V,J=g.Ba+g.c*k,ae=g.gc;e(g.ab==1),e(ae[0].hc==3),Im(ae[0],k,v,j,J,z,K),ee(E,k,v,z,K,P)}g.C=g.Ma=v}function oe(g,v,E,k,P,z,K){var j=g.$/k,J=g.$%k,ae=g.m,ye=g.s,Te=E+g.$,Ne=Te;P=E+k*P;var be=E+k*z,He=280+ye.ua,De=g.Pb?j:16777216,ve=0<ye.ua?ye.Wa:null,Be=ye.wc,Me=Te<be?br(ye,J,j):null;e(g.C<z),e(be<=P);var Ge=!1;e:for(;;){for(;Ge||Te<be;){var Re=0;if(j>=De){var lt=Te-E;e((De=g).Pb),De.wd=De.m,De.xd=lt,0<De.s.ua&&xe(De.s.Wa,De.s.vb),De=j+Uie}if(J&Be||(Me=br(ye,J,j)),e(Me!=null),Me.Qb&&(v[Te]=Me.qb,Ge=!0),!Ge)if(S(ae),Me.jc){Re=ae,lt=v;var nt=Te,wt=Me.pd[_(Re)&ua-1];e(Me.jc),256>wt.g?(x(Re,Re.u+wt.g),lt[nt]=wt.value,Re=0):(x(Re,Re.u+wt.g-256),e(256<=wt.value),Re=wt.value),Re==0&&(Ge=!0)}else Re=mr(Me.G[0],Me.H[0],ae);if(ae.h)break;if(Ge||256>Re){if(!Ge)if(Me.nd)v[Te]=(Me.qb|Re<<8)>>>0;else{if(S(ae),Ge=mr(Me.G[1],Me.H[1],ae),S(ae),lt=mr(Me.G[2],Me.H[2],ae),nt=mr(Me.G[3],Me.H[3],ae),ae.h)break;v[Te]=(nt<<24|Ge<<16|Re<<8|lt)>>>0}if(Ge=!1,++Te,++J>=k&&(J=0,++j,K!=null&&j<=z&&!(j%16)&&K(g,j),ve!=null))for(;Ne<Te;)Re=v[Ne++],ve.X[(506832829*Re&4294967295)>>>ve.Mb]=Re}else if(280>Re){if(Re=Fn(Re-256,ae),lt=mr(Me.G[4],Me.H[4],ae),S(ae),lt=Mn(k,lt=Fn(lt,ae)),ae.h)break;if(Te-E<lt||P-Te<Re)break e;for(nt=0;nt<Re;++nt)v[Te+nt]=v[Te+nt-lt];for(Te+=Re,J+=Re;J>=k;)J-=k,++j,K!=null&&j<=z&&!(j%16)&&K(g,j);if(e(Te<=P),J&Be&&(Me=br(ye,J,j)),ve!=null)for(;Ne<Te;)Re=v[Ne++],ve.X[(506832829*Re&4294967295)>>>ve.Mb]=Re}else{if(!(Re<He))break e;for(Ge=Re-280,e(ve!=null);Ne<Te;)Re=v[Ne++],ve.X[(506832829*Re&4294967295)>>>ve.Mb]=Re;Re=Te,e(!(Ge>>>(lt=ve).Xa)),v[Re]=lt.X[Ge],Ge=!0}Ge||e(ae.h==B(ae))}if(g.Pb&&ae.h&&Te<P)e(g.m.h),g.a=5,g.m=g.wd,g.$=g.xd,0<g.s.ua&&xe(g.s.vb,g.s.Wa);else{if(ae.h)break e;K!=null&&K(g,j>z?z:j),g.a=0,g.$=Te-E}return 1}return g.a=3,0}function Se(g){e(g!=null),g.vc=null,g.yc=null,g.Ya=null;var v=g.Wa;v!=null&&(v.X=null),g.vb=null,e(g!=null)}function Ie(){var g=new Lm;return g==null?null:(g.a=0,g.xb=sE,Zr("Predictor","VP8LPredictors"),Zr("Predictor","VP8LPredictors_C"),Zr("PredictorAdd","VP8LPredictorsAdd"),Zr("PredictorAdd","VP8LPredictorsAdd_C"),g0=kt,Pa=dt,gA=tt,qi=ir,MA=Lt,hi=fr,ll=Qt,I.VP8LMapColor32b=eu,I.VP8LMapColor8b=Dm,g)}function Fe(g,v,E,k,P){var z=1,K=[g],j=[v],J=k.m,ae=k.s,ye=null,Te=0;e:for(;;){if(E)for(;z&&fe(J,1);){var Ne=K,be=j,He=k,De=1,ve=He.m,Be=He.gc[He.ab],Me=fe(ve,2);if(He.Oc&1<<Me)z=0;else{switch(He.Oc|=1<<Me,Be.hc=Me,Be.Ea=Ne[0],Be.nc=be[0],Be.K=[null],++He.ab,e(4>=He.ab),Me){case 0:case 1:Be.b=fe(ve,3)+2,De=Fe(rt(Be.Ea,Be.b),rt(Be.nc,Be.b),0,He,Be.K),Be.K=Be.K[0];break;case 3:var Ge,Re=fe(ve,8)+1,lt=16<Re?0:4<Re?1:2<Re?2:3;if(Ne[0]=rt(Be.Ea,lt),Be.b=lt,Ge=De=Fe(Re,1,0,He,Be.K)){var nt,wt=Re,At=Be,Zt=1<<(8>>At.b),or=A(Zt);if(or==null)Ge=0;else{var Wt=At.K[0],Vt=At.w;for(or[0]=At.K[0][0],nt=1;nt<1*wt;++nt)or[nt]=Ve(Wt[Vt+nt],or[nt-1]);for(;nt<4*Zt;++nt)or[nt]=0;At.K[0]=null,At.K[0]=or,Ge=1}}De=Ge;break;case 2:break;default:e(0)}z=De}}if(K=K[0],j=j[0],z&&fe(J,1)&&!(z=1<=(Te=fe(J,4))&&11>=Te)){k.a=3;break e}var dr;if(dr=z)t:{var ur,Dt,tn,fa=k,rn=K,da=j,sr=Te,Fa=E,Sa=fa.m,pn=fa.s,Sn=[null],ea=1,Va=0,RA=Lie[sr];r:for(;;){if(Fa&&fe(Sa,1)){var mn=fe(Sa,3)+2,mi=rt(rn,mn),Xo=rt(da,mn),fl=mi*Xo;if(!Fe(mi,Xo,0,fa,Sn))break r;for(Sn=Sn[0],pn.xc=mn,ur=0;ur<fl;++ur){var ro=Sn[ur]>>8&65535;Sn[ur]=ro,ro>=ea&&(ea=ro+1)}}if(Sa.h)break r;for(Dt=0;5>Dt;++Dt){var Qr=iE[Dt];!Dt&&0<sr&&(Qr+=1<<sr),Va<Qr&&(Va=Qr)}var zm=o(ea*RA,L),mE=ea,yE=o(mE,Y);if(yE==null)var _0=null;else e(65536>=mE),_0=yE;var Au=A(Va);if(_0==null||Au==null||zm==null){fa.a=1;break r}var F0=zm;for(ur=tn=0;ur<ea;++ur){var vA=_0[ur],dl=vA.G,gl=vA.H,vE=0,S0=1,wE=0;for(Dt=0;5>Dt;++Dt){Qr=iE[Dt],dl[Dt]=F0,gl[Dt]=tn,!Dt&&0<sr&&(Qr+=1<<sr);a:{var k0,Km=Qr,T0=fa,iu=Au,Zie=F0,eoe=tn,Gm=0,no=T0.m,toe=fe(no,1);if(a(iu,0,0,Km),toe){var roe=fe(no,1)+1,noe=fe(no,1),BE=fe(no,noe==0?1:8);iu[BE]=1,roe==2&&(iu[BE=fe(no,8)]=1);var N0=1}else{var xE=A(19),bE=fe(no,4)+4;if(19<bE){T0.a=3;var L0=0;break a}for(k0=0;k0<bE;++k0)xE[Tie[k0]]=fe(no,3);var jm=void 0,ou=void 0,CE=T0,aoe=xE,U0=Km,EE=iu,Wm=0,ao=CE.m,_E=8,FE=o(128,L);n:for(;T(FE,0,7,aoe,19);){if(fe(ao,1)){var Aoe=2+2*fe(ao,3);if((jm=2+fe(ao,Aoe))>U0)break n}else jm=U0;for(ou=0;ou<U0&&jm--;){S(ao);var SE=FE[0+(127&_(ao))];x(ao,ao.u+SE.g);var pl=SE.value;if(16>pl)EE[ou++]=pl,pl!=0&&(_E=pl);else{var ioe=pl==16,kE=pl-16,ooe=Sie[kE],TE=fe(ao,Fie[kE])+ooe;if(ou+TE>U0)break n;for(var soe=ioe?_E:0;0<TE--;)EE[ou++]=soe}}Wm=1;break n}Wm||(CE.a=3),N0=Wm}(N0=N0&&!no.h)&&(Gm=T(Zie,eoe,8,iu,Km)),N0&&Gm!=0?L0=Gm:(T0.a=3,L0=0)}if(L0==0)break r;if(S0&&kie[Dt]==1&&(S0=F0[tn].g==0),vE+=F0[tn].g,tn+=L0,3>=Dt){var su,Xm=Au[0];for(su=1;su<Qr;++su)Au[su]>Xm&&(Xm=Au[su]);wE+=Xm}}if(vA.nd=S0,vA.Qb=0,S0&&(vA.qb=(dl[3][gl[3]+0].value<<24|dl[1][gl[1]+0].value<<16|dl[2][gl[2]+0].value)>>>0,vE==0&&256>dl[0][gl[0]+0].value&&(vA.Qb=1,vA.qb+=dl[0][gl[0]+0].value<<8)),vA.jc=!vA.Qb&&6>wE,vA.jc){var I0,yi=vA;for(I0=0;I0<ua;++I0){var Ao=I0,io=yi.pd[Ao],D0=yi.G[0][yi.H[0]+Ao];256<=D0.value?(io.g=D0.g+256,io.value=D0.value):(io.g=0,io.value=0,Ao>>=xr(D0,8,io),Ao>>=xr(yi.G[1][yi.H[1]+Ao],16,io),Ao>>=xr(yi.G[2][yi.H[2]+Ao],0,io),xr(yi.G[3][yi.H[3]+Ao],24,io))}}}pn.vc=Sn,pn.Wb=ea,pn.Ya=_0,pn.yc=zm,dr=1;break t}dr=0}if(!(z=dr)){k.a=3;break e}if(0<Te){if(ae.ua=1<<Te,!Ee(ae.Wa,Te)){k.a=1,z=0;break e}}else ae.ua=0;var qm=k,NE=K,loe=j,Ym=qm.s,Jm=Ym.xc;if(qm.c=NE,qm.i=loe,Ym.md=rt(NE,Jm),Ym.wc=Jm==0?-1:(1<<Jm)-1,E){k.xb=Rie;break e}if((ye=A(K*j))==null){k.a=1,z=0;break e}z=(z=oe(k,ye,0,K,j,j,null))&&!J.h;break e}return z?(P!=null?P[0]=ye:(e(ye==null),e(E)),k.$=0,E||Se(ae)):Se(ae),z}function pe(g,v){var E=g.c*g.i,k=E+v+16*v;return e(g.c<=v),g.V=A(k),g.V==null?(g.Ta=null,g.Ua=0,g.a=1,0):(g.Ta=g.V,g.Ua=g.Ba+E+v,1)}function X(g,v){var E=g.C,k=v-E,P=g.V,z=g.Ba+g.c*E;for(e(v<=g.l.o);0<k;){var K=16<k?16:k,j=g.l.ma,J=g.l.width,ae=J*K,ye=j.ca,Te=j.tb+J*E,Ne=g.Ta,be=g.Ua;V(g,K,P,z),J4(Ne,be,ye,Te,ae),ee(j,E,E+K,ye,Te,J),k-=K,P+=K*g.c,E+=K}e(E==v),g.C=g.Ma=v}function we(){this.ub=this.yd=this.td=this.Rb=0}function Le(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Ke(){this.Fb=this.Bb=this.Cb=0,this.Zb=A(4),this.Lb=A(4)}function ze(){this.Yb=function(){var g=[];return function v(E,k,P){for(var z=P[k],K=0;K<z&&(E.push(P.length>k+1?[]:0),!(P.length<k+1));K++)v(E[K],k+1,P)}(g,0,[3,11]),g}()}function qe(){this.jb=A(3),this.Wc=s([4,8],ze),this.Xc=s([4,17],ze)}function ut(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new A(4),this.od=new A(4)}function zt(){this.ld=this.La=this.dd=this.tc=0}function Et(){this.Na=this.la=0}function Er(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function la(){this.ad=A(384),this.Za=0,this.Ob=A(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function DA(){this.uc=this.M=this.Nb=0,this.wa=Array(new zt),this.Y=0,this.ya=Array(new la),this.aa=0,this.l=new OA}function QA(){this.y=A(16),this.f=A(8),this.ea=A(8)}function cA(){this.cb=this.a=0,this.sc="",this.m=new Ue,this.Od=new we,this.Kc=new Le,this.ed=new ut,this.Qa=new Ke,this.Ic=this.$c=this.Aa=0,this.D=new DA,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,Ue),this.ia=0,this.pb=o(4,Er),this.Pa=new qe,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new QA),this.Hd=0,this.rb=Array(new Et),this.sb=0,this.wa=Array(new zt),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new la),this.L=this.aa=0,this.gd=s([4,2],zt),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function OA(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Ca(){var g=new cA;return g!=null&&(g.a=0,g.sc="OK",g.cb=0,g.Xb=0,nu||(nu=e0)),g}function zr(g,v,E){return g.a==0&&(g.a=v,g.sc=E,g.cb=0),0}function Jf(g,v,E){return 3<=E&&g[v+0]==157&&g[v+1]==1&&g[v+2]==42}function Zf(g,v){if(g==null)return 0;if(g.a=0,g.sc="OK",v==null)return zr(g,2,"null VP8Io passed to VP8GetHeaders()");var E=v.data,k=v.w,P=v.ha;if(4>P)return zr(g,7,"Truncated header.");var z=E[k+0]|E[k+1]<<8|E[k+2]<<16,K=g.Od;if(K.Rb=!(1&z),K.td=z>>1&7,K.yd=z>>4&1,K.ub=z>>5,3<K.td)return zr(g,3,"Incorrect keyframe parameters.");if(!K.yd)return zr(g,4,"Frame not displayable.");k+=3,P-=3;var j=g.Kc;if(K.Rb){if(7>P)return zr(g,7,"cannot parse picture header");if(!Jf(E,k,P))return zr(g,3,"Bad code word");j.c=16383&(E[k+4]<<8|E[k+3]),j.Td=E[k+4]>>6,j.i=16383&(E[k+6]<<8|E[k+5]),j.Ud=E[k+6]>>6,k+=7,P-=7,g.za=j.c+15>>4,g.Ub=j.i+15>>4,v.width=j.c,v.height=j.i,v.Da=0,v.j=0,v.v=0,v.va=v.width,v.o=v.height,v.da=0,v.ib=v.width,v.hb=v.height,v.U=v.width,v.T=v.height,a((z=g.Pa).jb,0,255,z.jb.length),e((z=g.Qa)!=null),z.Cb=0,z.Bb=0,z.Fb=1,a(z.Zb,0,0,z.Zb.length),a(z.Lb,0,0,z.Lb)}if(K.ub>P)return zr(g,7,"bad partition length");se(z=g.m,E,k,K.ub),k+=K.ub,P-=K.ub,K.Rb&&(j.Ld=W(z),j.Kd=W(z)),j=g.Qa;var J,ae=g.Pa;if(e(z!=null),e(j!=null),j.Cb=W(z),j.Cb){if(j.Bb=W(z),W(z)){for(j.Fb=W(z),J=0;4>J;++J)j.Zb[J]=W(z)?ge(z,7):0;for(J=0;4>J;++J)j.Lb[J]=W(z)?ge(z,6):0}if(j.Bb)for(J=0;3>J;++J)ae.jb[J]=W(z)?he(z,8):255}else j.Bb=0;if(z.Ka)return zr(g,3,"cannot parse segment header");if((j=g.ed).zd=W(z),j.Tb=he(z,6),j.wb=he(z,3),j.Pc=W(z),j.Pc&&W(z)){for(ae=0;4>ae;++ae)W(z)&&(j.vd[ae]=ge(z,6));for(ae=0;4>ae;++ae)W(z)&&(j.od[ae]=ge(z,6))}if(g.L=j.Tb==0?0:j.zd?1:2,z.Ka)return zr(g,3,"cannot parse filter header");var ye=P;if(P=J=k,k=J+ye,j=ye,g.Xb=(1<<he(g.m,2))-1,ye<3*(ae=g.Xb))E=7;else{for(J+=3*ae,j-=3*ae,ye=0;ye<ae;++ye){var Te=E[P+0]|E[P+1]<<8|E[P+2]<<16;Te>j&&(Te=j),se(g.Jc[+ye],E,J,Te),J+=Te,j-=Te,P+=3}se(g.Jc[+ae],E,J,j),E=J<k?0:5}if(E!=0)return zr(g,E,"cannot parse partitions");for(E=he(J=g.m,7),P=W(J)?ge(J,4):0,k=W(J)?ge(J,4):0,j=W(J)?ge(J,4):0,ae=W(J)?ge(J,4):0,J=W(J)?ge(J,4):0,ye=g.Qa,Te=0;4>Te;++Te){if(ye.Cb){var Ne=ye.Zb[Te];ye.Fb||(Ne+=E)}else{if(0<Te){g.pb[Te]=g.pb[0];continue}Ne=E}var be=g.pb[Te];be.Sc[0]=Hm[Ea(Ne+P,127)],be.Sc[1]=Vm[Ea(Ne+0,127)],be.Eb[0]=2*Hm[Ea(Ne+k,127)],be.Eb[1]=101581*Vm[Ea(Ne+j,127)]>>16,8>be.Eb[1]&&(be.Eb[1]=8),be.Qc[0]=Hm[Ea(Ne+ae,117)],be.Qc[1]=Vm[Ea(Ne+J,127)],be.lc=Ne+J}if(!K.Rb)return zr(g,4,"Not a key frame.");for(W(z),K=g.Pa,E=0;4>E;++E){for(P=0;8>P;++P)for(k=0;3>k;++k)for(j=0;11>j;++j)ae=ue(z,Pie[E][P][k][j])?he(z,8):Qie[E][P][k][j],K.Wc[E][P].Yb[k][j]=ae;for(P=0;17>P;++P)K.Xc[E][P]=K.Wc[E][Mie[P]]}return g.kc=W(z),g.kc&&(g.Bd=he(z,8)),g.cb=1}function e0(g,v,E,k,P,z,K){var j=v[P].Yb[E];for(E=0;16>P;++P){if(!ue(g,j[E+0]))return P;for(;!ue(g,j[E+1]);)if(j=v[++P].Yb[0],E=0,P==16)return 16;var J=v[P+1].Yb;if(ue(g,j[E+2])){var ae=g,ye=0;if(ue(ae,(Ne=j)[(Te=E)+3]))if(ue(ae,Ne[Te+6])){for(j=0,Te=2*(ye=ue(ae,Ne[Te+8]))+(Ne=ue(ae,Ne[Te+9+ye])),ye=0,Ne=Iie[Te];Ne[j];++j)ye+=ye+ue(ae,Ne[j]);ye+=3+(8<<Te)}else ue(ae,Ne[Te+7])?(ye=7+2*ue(ae,165),ye+=ue(ae,145)):ye=5+ue(ae,159);else ye=ue(ae,Ne[Te+4])?3+ue(ae,Ne[Te+5]):2;j=J[2]}else ye=1,j=J[1];J=K+Die[P],0>(ae=g).b&&Q(ae);var Te,Ne=ae.b,be=(Te=ae.Ca>>1)-(ae.I>>Ne)>>31;--ae.b,ae.Ca+=be,ae.Ca|=1,ae.I-=(Te+1&be)<<Ne,z[J]=((ye^be)-be)*k[(0<P)+0]}return 16}function Dc(g){var v=g.rb[g.sb-1];v.la=0,v.Na=0,a(g.zc,0,0,g.zc.length),g.ja=0}function gm(g,v){if(g==null)return 0;if(v==null)return zr(g,2,"NULL VP8Io parameter in VP8Decode().");if(!g.cb&&!Zf(g,v))return 0;if(e(g.cb),v.ac==null||v.ac(v)){v.ob&&(g.L=0);var E=E0[g.L];if(g.L==2?(g.yb=0,g.zb=0):(g.yb=v.v-E>>4,g.zb=v.j-E>>4,0>g.yb&&(g.yb=0),0>g.zb&&(g.zb=0)),g.Va=v.o+15+E>>4,g.Hb=v.va+15+E>>4,g.Hb>g.za&&(g.Hb=g.za),g.Va>g.Ub&&(g.Va=g.Ub),0<g.L){var k=g.ed;for(E=0;4>E;++E){var P;if(g.Qa.Cb){var z=g.Qa.Lb[E];g.Qa.Fb||(z+=k.Tb)}else z=k.Tb;for(P=0;1>=P;++P){var K=g.gd[E][P],j=z;if(k.Pc&&(j+=k.vd[0],P&&(j+=k.od[0])),0<(j=0>j?0:63<j?63:j)){var J=j;0<k.wb&&(J=4<k.wb?J>>2:J>>1)>9-k.wb&&(J=9-k.wb),1>J&&(J=1),K.dd=J,K.tc=2*j+J,K.ld=40<=j?2:15<=j?1:0}else K.tc=0;K.La=P}}}E=0}else zr(g,6,"Frame setup failed"),E=g.a;if(E=E==0){if(E){g.$c=0,0<g.Aa||(g.Ic=Jie);e:{E=g.Ic,k=4*(J=g.za);var ae=32*J,ye=J+1,Te=0<g.L?J*(0<g.Aa?2:1):0,Ne=(g.Aa==2?2:1)*J;if((K=k+832+(P=3*(16*E+E0[g.L])/2*ae)+(z=g.Fa!=null&&0<g.Fa.length?g.Kc.c*g.Kc.i:0))!=K)E=0;else{if(K>g.Vb){if(g.Vb=0,g.Ec=A(K),g.Fc=0,g.Ec==null){E=zr(g,1,"no memory during frame initialization.");break e}g.Vb=K}K=g.Ec,j=g.Fc,g.Ac=K,g.Bc=j,j+=k,g.Gd=o(ae,QA),g.Hd=0,g.rb=o(ye+1,Et),g.sb=1,g.wa=Te?o(Te,zt):null,g.Y=0,g.D.Nb=0,g.D.wa=g.wa,g.D.Y=g.Y,0<g.Aa&&(g.D.Y+=J),e(!0),g.oc=K,g.pc=j,j+=832,g.ya=o(Ne,la),g.aa=0,g.D.ya=g.ya,g.D.aa=g.aa,g.Aa==2&&(g.D.aa+=J),g.R=16*J,g.B=8*J,J=(ae=E0[g.L])*g.R,ae=ae/2*g.B,g.sa=K,g.ta=j+J,g.qa=g.sa,g.ra=g.ta+16*E*g.R+ae,g.Ha=g.qa,g.Ia=g.ra+8*E*g.B+ae,g.$c=0,j+=P,g.mb=z?K:null,g.nb=z?j:null,e(j+z<=g.Fc+g.Vb),Dc(g),a(g.Ac,g.Bc,0,k),E=1}}if(E){if(v.ka=0,v.y=g.sa,v.O=g.ta,v.f=g.qa,v.N=g.ra,v.ea=g.Ha,v.Vd=g.Ia,v.fa=g.R,v.Rc=g.B,v.F=null,v.J=0,!nE){for(E=-255;255>=E;++E)Z4[255+E]=0>E?-E:E;for(E=-1020;1020>=E;++E)eE[1020+E]=-128>E?-128:127<E?127:E;for(E=-112;112>=E;++E)tE[112+E]=-16>E?-16:15<E?15:E;for(E=-255;510>=E;++E)rE[255+E]=0>E?0:255<E?255:E;nE=1}pA=ym,cl=pm,Yi=r0,mA=mm,fi=n0,tu=t0,jo=Hc,ul=Ko,Wo=Nm,Ji=Vc,ru=Tm,Ma=tl,di=$c,yr=h0,vr=u0,Kr=ci,sn=Gi,gi=km,yA[0]=PA,yA[1]=vm,yA[2]=bm,yA[3]=Cm,yA[4]=i0,yA[5]=Zs,yA[6]=o0,yA[7]=Pc,yA[8]=_m,yA[9]=Em,eo[0]=a0,eo[1]=Bm,eo[2]=li,eo[3]=Ys,eo[4]=Rn,eo[5]=xm,eo[6]=A0,pi[0]=Ki,pi[1]=wm,pi[2]=Fm,pi[3]=Mc,pi[4]=zo,pi[5]=Sm,pi[6]=Rc,E=1}else E=0}E&&(E=function(be,He){for(be.M=0;be.M<be.Va;++be.M){var De,ve=be.Jc[be.M&be.Xb],Be=be.m,Me=be;for(De=0;De<Me.za;++De){var Ge=Be,Re=Me,lt=Re.Ac,nt=Re.Bc+4*De,wt=Re.zc,At=Re.ya[Re.aa+De];if(Re.Qa.Bb?At.$b=ue(Ge,Re.Pa.jb[0])?2+ue(Ge,Re.Pa.jb[2]):ue(Ge,Re.Pa.jb[1]):At.$b=0,Re.kc&&(At.Ad=ue(Ge,Re.Bd)),At.Za=!ue(Ge,145)+0,At.Za){var Zt=At.Ob,or=0;for(Re=0;4>Re;++Re){var Wt,Vt=wt[0+Re];for(Wt=0;4>Wt;++Wt){Vt=Oie[lt[nt+Wt]][Vt];for(var dr=oE[ue(Ge,Vt[0])];0<dr;)dr=oE[2*dr+ue(Ge,Vt[dr])];Vt=-dr,lt[nt+Wt]=Vt}n(Zt,or,lt,nt,4),or+=4,wt[0+Re]=Vt}}else Vt=ue(Ge,156)?ue(Ge,128)?1:3:ue(Ge,163)?2:0,At.Ob[0]=Vt,a(lt,nt,Vt,4),a(wt,0,Vt,4);At.Dd=ue(Ge,142)?ue(Ge,114)?ue(Ge,183)?1:3:2:0}if(Me.m.Ka)return zr(be,7,"Premature end-of-partition0 encountered.");for(;be.ja<be.za;++be.ja){if(Me=ve,Ge=(Be=be).rb[Be.sb-1],lt=Be.rb[Be.sb+Be.ja],De=Be.ya[Be.aa+Be.ja],nt=Be.kc?De.Ad:0)Ge.la=lt.la=0,De.Za||(Ge.Na=lt.Na=0),De.Hc=0,De.Gc=0,De.ia=0;else{var ur,Dt;if(Ge=lt,lt=Me,nt=Be.Pa.Xc,wt=Be.ya[Be.aa+Be.ja],At=Be.pb[wt.$b],Re=wt.ad,Zt=0,or=Be.rb[Be.sb-1],Vt=Wt=0,a(Re,Zt,0,384),wt.Za)var tn=0,fa=nt[3];else{dr=A(16);var rn=Ge.Na+or.Na;if(rn=nu(lt,nt[1],rn,At.Eb,0,dr,0),Ge.Na=or.Na=(0<rn)+0,1<rn)pA(dr,0,Re,Zt);else{var da=dr[0]+3>>3;for(dr=0;256>dr;dr+=16)Re[Zt+dr]=da}tn=1,fa=nt[0]}var sr=15&Ge.la,Fa=15&or.la;for(dr=0;4>dr;++dr){var Sa=1&Fa;for(da=Dt=0;4>da;++da)sr=sr>>1|(Sa=(rn=nu(lt,fa,rn=Sa+(1&sr),At.Sc,tn,Re,Zt))>tn)<<7,Dt=Dt<<2|(3<rn?3:1<rn?2:Re[Zt+0]!=0),Zt+=16;sr>>=4,Fa=Fa>>1|Sa<<7,Wt=(Wt<<8|Dt)>>>0}for(fa=sr,tn=Fa>>4,ur=0;4>ur;ur+=2){for(Dt=0,sr=Ge.la>>4+ur,Fa=or.la>>4+ur,dr=0;2>dr;++dr){for(Sa=1&Fa,da=0;2>da;++da)rn=Sa+(1&sr),sr=sr>>1|(Sa=0<(rn=nu(lt,nt[2],rn,At.Qc,0,Re,Zt)))<<3,Dt=Dt<<2|(3<rn?3:1<rn?2:Re[Zt+0]!=0),Zt+=16;sr>>=2,Fa=Fa>>1|Sa<<5}Vt|=Dt<<4*ur,fa|=sr<<4<<ur,tn|=(240&Fa)<<ur}Ge.la=fa,or.la=tn,wt.Hc=Wt,wt.Gc=Vt,wt.ia=43690&Vt?0:At.ia,nt=!(Wt|Vt)}if(0<Be.L&&(Be.wa[Be.Y+Be.ja]=Be.gd[De.$b][De.Za],Be.wa[Be.Y+Be.ja].La|=!nt),Me.Ka)return zr(be,7,"Premature end-of-file encountered.")}if(Dc(be),Be=He,Me=1,De=(ve=be).D,Ge=0<ve.L&&ve.M>=ve.zb&&ve.M<=ve.Va,ve.Aa==0)e:{if(De.M=ve.M,De.uc=Ge,Xc(ve,De),Me=1,De=(Dt=ve.D).Nb,Ge=(Vt=E0[ve.L])*ve.R,lt=Vt/2*ve.B,dr=16*De*ve.R,da=8*De*ve.B,nt=ve.sa,wt=ve.ta-Ge+dr,At=ve.qa,Re=ve.ra-lt+da,Zt=ve.Ha,or=ve.Ia-lt+da,Fa=(sr=Dt.M)==0,Wt=sr>=ve.Va-1,ve.Aa==2&&Xc(ve,Dt),Dt.uc)for(Sa=(rn=ve).D.M,e(rn.D.uc),Dt=rn.yb;Dt<rn.Hb;++Dt){tn=Dt,fa=Sa;var pn=(Sn=(Qr=rn).D).Nb;ur=Qr.R;var Sn=Sn.wa[Sn.Y+tn],ea=Qr.sa,Va=Qr.ta+16*pn*ur+16*tn,RA=Sn.dd,mn=Sn.tc;if(mn!=0)if(e(3<=mn),Qr.L==1)0<tn&&Kr(ea,Va,ur,mn+4),Sn.La&&gi(ea,Va,ur,mn),0<fa&&vr(ea,Va,ur,mn+4),Sn.La&&sn(ea,Va,ur,mn);else{var mi=Qr.B,Xo=Qr.qa,fl=Qr.ra+8*pn*mi+8*tn,ro=Qr.Ha,Qr=Qr.Ia+8*pn*mi+8*tn;pn=Sn.ld,0<tn&&(ul(ea,Va,ur,mn+4,RA,pn),Ji(Xo,fl,ro,Qr,mi,mn+4,RA,pn)),Sn.La&&(Ma(ea,Va,ur,mn,RA,pn),yr(Xo,fl,ro,Qr,mi,mn,RA,pn)),0<fa&&(jo(ea,Va,ur,mn+4,RA,pn),Wo(Xo,fl,ro,Qr,mi,mn+4,RA,pn)),Sn.La&&(ru(ea,Va,ur,mn,RA,pn),di(Xo,fl,ro,Qr,mi,mn,RA,pn))}}if(ve.ia&&alert("todo:DitherRow"),Be.put!=null){if(Dt=16*sr,sr=16*(sr+1),Fa?(Be.y=ve.sa,Be.O=ve.ta+dr,Be.f=ve.qa,Be.N=ve.ra+da,Be.ea=ve.Ha,Be.W=ve.Ia+da):(Dt-=Vt,Be.y=nt,Be.O=wt,Be.f=At,Be.N=Re,Be.ea=Zt,Be.W=or),Wt||(sr-=Vt),sr>Be.o&&(sr=Be.o),Be.F=null,Be.J=null,ve.Fa!=null&&0<ve.Fa.length&&Dt<sr&&(Be.J=jc(ve,Be,Dt,sr-Dt),Be.F=ve.mb,Be.F==null&&Be.F.length==0)){Me=zr(ve,3,"Could not decode alpha data.");break e}Dt<Be.j&&(Vt=Be.j-Dt,Dt=Be.j,e(!(1&Vt)),Be.O+=ve.R*Vt,Be.N+=ve.B*(Vt>>1),Be.W+=ve.B*(Vt>>1),Be.F!=null&&(Be.J+=Be.width*Vt)),Dt<sr&&(Be.O+=Be.v,Be.N+=Be.v>>1,Be.W+=Be.v>>1,Be.F!=null&&(Be.J+=Be.v),Be.ka=Dt-Be.j,Be.U=Be.va-Be.v,Be.T=sr-Dt,Me=Be.put(Be))}De+1!=ve.Ic||Wt||(n(ve.sa,ve.ta-Ge,nt,wt+16*ve.R,Ge),n(ve.qa,ve.ra-lt,At,Re+8*ve.B,lt),n(ve.Ha,ve.Ia-lt,Zt,or+8*ve.B,lt))}if(!Me)return zr(be,6,"Output aborted.")}return 1}(g,v)),v.bc!=null&&v.bc(v),E&=1}return E?(g.cb=0,E):0}function uA(g,v,E,k,P){P=g[v+E+32*k]+(P>>3),g[v+E+32*k]=-256&P?0>P?0:255:P}function qs(g,v,E,k,P,z){uA(g,v,0,E,k+P),uA(g,v,1,E,k+z),uA(g,v,2,E,k-z),uA(g,v,3,E,k-P)}function ca(g){return(20091*g>>16)+g}function Qc(g,v,E,k){var P,z=0,K=A(16);for(P=0;4>P;++P){var j=g[v+0]+g[v+8],J=g[v+0]-g[v+8],ae=(35468*g[v+4]>>16)-ca(g[v+12]),ye=ca(g[v+4])+(35468*g[v+12]>>16);K[z+0]=j+ye,K[z+1]=J+ae,K[z+2]=J-ae,K[z+3]=j-ye,z+=4,v++}for(P=z=0;4>P;++P)j=(g=K[z+0]+4)+K[z+8],J=g-K[z+8],ae=(35468*K[z+4]>>16)-ca(K[z+12]),uA(E,k,0,0,j+(ye=ca(K[z+4])+(35468*K[z+12]>>16))),uA(E,k,1,0,J+ae),uA(E,k,2,0,J-ae),uA(E,k,3,0,j-ye),z++,k+=32}function t0(g,v,E,k){var P=g[v+0]+4,z=35468*g[v+4]>>16,K=ca(g[v+4]),j=35468*g[v+1]>>16;qs(E,k,0,P+K,g=ca(g[v+1]),j),qs(E,k,1,P+z,g,j),qs(E,k,2,P-z,g,j),qs(E,k,3,P-K,g,j)}function pm(g,v,E,k,P){Qc(g,v,E,k),P&&Qc(g,v+16,E,k+4)}function r0(g,v,E,k){cl(g,v+0,E,k,1),cl(g,v+32,E,k+128,1)}function mm(g,v,E,k){var P;for(g=g[v+0]+4,P=0;4>P;++P)for(v=0;4>v;++v)uA(E,k,v,P,g)}function n0(g,v,E,k){g[v+0]&&mA(g,v+0,E,k),g[v+16]&&mA(g,v+16,E,k+4),g[v+32]&&mA(g,v+32,E,k+128),g[v+48]&&mA(g,v+48,E,k+128+4)}function ym(g,v,E,k){var P,z=A(16);for(P=0;4>P;++P){var K=g[v+0+P]+g[v+12+P],j=g[v+4+P]+g[v+8+P],J=g[v+4+P]-g[v+8+P],ae=g[v+0+P]-g[v+12+P];z[0+P]=K+j,z[8+P]=K-j,z[4+P]=ae+J,z[12+P]=ae-J}for(P=0;4>P;++P)K=(g=z[0+4*P]+3)+z[3+4*P],j=z[1+4*P]+z[2+4*P],J=z[1+4*P]-z[2+4*P],ae=g-z[3+4*P],E[k+0]=K+j>>3,E[k+16]=ae+J>>3,E[k+32]=K-j>>3,E[k+48]=ae-J>>3,k+=64}function Oc(g,v,E){var k,P=v-32,z=_a,K=255-g[P-1];for(k=0;k<E;++k){var j,J=z,ae=K+g[v-1];for(j=0;j<E;++j)g[v+j]=J[ae+g[P+j]];v+=32}}function vm(g,v){Oc(g,v,4)}function wm(g,v){Oc(g,v,8)}function Bm(g,v){Oc(g,v,16)}function li(g,v){var E;for(E=0;16>E;++E)n(g,v+32*E,g,v-32,16)}function Ys(g,v){var E;for(E=16;0<E;--E)a(g,v,g[v-1],16),v+=32}function Js(g,v,E){var k;for(k=0;16>k;++k)a(v,E+32*k,g,16)}function a0(g,v){var E,k=16;for(E=0;16>E;++E)k+=g[v-1+32*E]+g[v+E-32];Js(k>>5,g,v)}function Rn(g,v){var E,k=8;for(E=0;16>E;++E)k+=g[v-1+32*E];Js(k>>4,g,v)}function xm(g,v){var E,k=8;for(E=0;16>E;++E)k+=g[v+E-32];Js(k>>4,g,v)}function A0(g,v){Js(128,g,v)}function Ft(g,v,E){return g+2*v+E+2>>2}function bm(g,v){var E,k=v-32;for(k=new Uint8Array([Ft(g[k-1],g[k+0],g[k+1]),Ft(g[k+0],g[k+1],g[k+2]),Ft(g[k+1],g[k+2],g[k+3]),Ft(g[k+2],g[k+3],g[k+4])]),E=0;4>E;++E)n(g,v+32*E,k,0,k.length)}function Cm(g,v){var E=g[v-1],k=g[v-1+32],P=g[v-1+64],z=g[v-1+96];Ce(g,v+0,16843009*Ft(g[v-1-32],E,k)),Ce(g,v+32,16843009*Ft(E,k,P)),Ce(g,v+64,16843009*Ft(k,P,z)),Ce(g,v+96,16843009*Ft(P,z,z))}function PA(g,v){var E,k=4;for(E=0;4>E;++E)k+=g[v+E-32]+g[v-1+32*E];for(k>>=3,E=0;4>E;++E)a(g,v+32*E,k,4)}function i0(g,v){var E=g[v-1+0],k=g[v-1+32],P=g[v-1+64],z=g[v-1-32],K=g[v+0-32],j=g[v+1-32],J=g[v+2-32],ae=g[v+3-32];g[v+0+96]=Ft(k,P,g[v-1+96]),g[v+1+96]=g[v+0+64]=Ft(E,k,P),g[v+2+96]=g[v+1+64]=g[v+0+32]=Ft(z,E,k),g[v+3+96]=g[v+2+64]=g[v+1+32]=g[v+0+0]=Ft(K,z,E),g[v+3+64]=g[v+2+32]=g[v+1+0]=Ft(j,K,z),g[v+3+32]=g[v+2+0]=Ft(J,j,K),g[v+3+0]=Ft(ae,J,j)}function o0(g,v){var E=g[v+1-32],k=g[v+2-32],P=g[v+3-32],z=g[v+4-32],K=g[v+5-32],j=g[v+6-32],J=g[v+7-32];g[v+0+0]=Ft(g[v+0-32],E,k),g[v+1+0]=g[v+0+32]=Ft(E,k,P),g[v+2+0]=g[v+1+32]=g[v+0+64]=Ft(k,P,z),g[v+3+0]=g[v+2+32]=g[v+1+64]=g[v+0+96]=Ft(P,z,K),g[v+3+32]=g[v+2+64]=g[v+1+96]=Ft(z,K,j),g[v+3+64]=g[v+2+96]=Ft(K,j,J),g[v+3+96]=Ft(j,J,J)}function Zs(g,v){var E=g[v-1+0],k=g[v-1+32],P=g[v-1+64],z=g[v-1-32],K=g[v+0-32],j=g[v+1-32],J=g[v+2-32],ae=g[v+3-32];g[v+0+0]=g[v+1+64]=z+K+1>>1,g[v+1+0]=g[v+2+64]=K+j+1>>1,g[v+2+0]=g[v+3+64]=j+J+1>>1,g[v+3+0]=J+ae+1>>1,g[v+0+96]=Ft(P,k,E),g[v+0+64]=Ft(k,E,z),g[v+0+32]=g[v+1+96]=Ft(E,z,K),g[v+1+32]=g[v+2+96]=Ft(z,K,j),g[v+2+32]=g[v+3+96]=Ft(K,j,J),g[v+3+32]=Ft(j,J,ae)}function Pc(g,v){var E=g[v+0-32],k=g[v+1-32],P=g[v+2-32],z=g[v+3-32],K=g[v+4-32],j=g[v+5-32],J=g[v+6-32],ae=g[v+7-32];g[v+0+0]=E+k+1>>1,g[v+1+0]=g[v+0+64]=k+P+1>>1,g[v+2+0]=g[v+1+64]=P+z+1>>1,g[v+3+0]=g[v+2+64]=z+K+1>>1,g[v+0+32]=Ft(E,k,P),g[v+1+32]=g[v+0+96]=Ft(k,P,z),g[v+2+32]=g[v+1+96]=Ft(P,z,K),g[v+3+32]=g[v+2+96]=Ft(z,K,j),g[v+3+64]=Ft(K,j,J),g[v+3+96]=Ft(j,J,ae)}function Em(g,v){var E=g[v-1+0],k=g[v-1+32],P=g[v-1+64],z=g[v-1+96];g[v+0+0]=E+k+1>>1,g[v+2+0]=g[v+0+32]=k+P+1>>1,g[v+2+32]=g[v+0+64]=P+z+1>>1,g[v+1+0]=Ft(E,k,P),g[v+3+0]=g[v+1+32]=Ft(k,P,z),g[v+3+32]=g[v+1+64]=Ft(P,z,z),g[v+3+64]=g[v+2+64]=g[v+0+96]=g[v+1+96]=g[v+2+96]=g[v+3+96]=z}function _m(g,v){var E=g[v-1+0],k=g[v-1+32],P=g[v-1+64],z=g[v-1+96],K=g[v-1-32],j=g[v+0-32],J=g[v+1-32],ae=g[v+2-32];g[v+0+0]=g[v+2+32]=E+K+1>>1,g[v+0+32]=g[v+2+64]=k+E+1>>1,g[v+0+64]=g[v+2+96]=P+k+1>>1,g[v+0+96]=z+P+1>>1,g[v+3+0]=Ft(j,J,ae),g[v+2+0]=Ft(K,j,J),g[v+1+0]=g[v+3+32]=Ft(E,K,j),g[v+1+32]=g[v+3+64]=Ft(k,E,K),g[v+1+64]=g[v+3+96]=Ft(P,k,E),g[v+1+96]=Ft(z,P,k)}function Fm(g,v){var E;for(E=0;8>E;++E)n(g,v+32*E,g,v-32,8)}function Mc(g,v){var E;for(E=0;8>E;++E)a(g,v,g[v-1],8),v+=32}function $o(g,v,E){var k;for(k=0;8>k;++k)a(v,E+32*k,g,8)}function Ki(g,v){var E,k=8;for(E=0;8>E;++E)k+=g[v+E-32]+g[v-1+32*E];$o(k>>4,g,v)}function Sm(g,v){var E,k=4;for(E=0;8>E;++E)k+=g[v+E-32];$o(k>>3,g,v)}function zo(g,v){var E,k=4;for(E=0;8>E;++E)k+=g[v-1+32*E];$o(k>>3,g,v)}function Rc(g,v){$o(128,g,v)}function el(g,v,E){var k=g[v-E],P=g[v+0],z=3*(P-k)+Qm[1020+g[v-2*E]-g[v+E]],K=m0[112+(z+4>>3)];g[v-E]=_a[255+k+m0[112+(z+3>>3)]],g[v+0]=_a[255+P-K]}function s0(g,v,E,k){var P=g[v+0],z=g[v+E];return Ra[255+g[v-2*E]-g[v-E]]>k||Ra[255+z-P]>k}function l0(g,v,E,k){return 4*Ra[255+g[v-E]-g[v+0]]+Ra[255+g[v-2*E]-g[v+E]]<=k}function c0(g,v,E,k,P){var z=g[v-3*E],K=g[v-2*E],j=g[v-E],J=g[v+0],ae=g[v+E],ye=g[v+2*E],Te=g[v+3*E];return 4*Ra[255+j-J]+Ra[255+K-ae]>k?0:Ra[255+g[v-4*E]-z]<=P&&Ra[255+z-K]<=P&&Ra[255+K-j]<=P&&Ra[255+Te-ye]<=P&&Ra[255+ye-ae]<=P&&Ra[255+ae-J]<=P}function u0(g,v,E,k){var P=2*k+1;for(k=0;16>k;++k)l0(g,v+k,E,P)&&el(g,v+k,E)}function ci(g,v,E,k){var P=2*k+1;for(k=0;16>k;++k)l0(g,v+k*E,1,P)&&el(g,v+k*E,1)}function Gi(g,v,E,k){var P;for(P=3;0<P;--P)u0(g,v+=4*E,E,k)}function km(g,v,E,k){var P;for(P=3;0<P;--P)ci(g,v+=4,E,k)}function ji(g,v,E,k,P,z,K,j){for(z=2*z+1;0<P--;){if(c0(g,v,E,z,K))if(s0(g,v,E,j))el(g,v,E);else{var J=g,ae=v,ye=E,Te=J[ae-2*ye],Ne=J[ae-ye],be=J[ae+0],He=J[ae+ye],De=J[ae+2*ye],ve=27*(Me=Qm[1020+3*(be-Ne)+Qm[1020+Te-He]])+63>>7,Be=18*Me+63>>7,Me=9*Me+63>>7;J[ae-3*ye]=_a[255+J[ae-3*ye]+Me],J[ae-2*ye]=_a[255+Te+Be],J[ae-ye]=_a[255+Ne+ve],J[ae+0]=_a[255+be-ve],J[ae+ye]=_a[255+He-Be],J[ae+2*ye]=_a[255+De-Me]}v+=k}}function hA(g,v,E,k,P,z,K,j){for(z=2*z+1;0<P--;){if(c0(g,v,E,z,K))if(s0(g,v,E,j))el(g,v,E);else{var J=g,ae=v,ye=E,Te=J[ae-ye],Ne=J[ae+0],be=J[ae+ye],He=m0[112+((De=3*(Ne-Te))+4>>3)],De=m0[112+(De+3>>3)],ve=He+1>>1;J[ae-2*ye]=_a[255+J[ae-2*ye]+ve],J[ae-ye]=_a[255+Te+De],J[ae+0]=_a[255+Ne-He],J[ae+ye]=_a[255+be-ve]}v+=k}}function Hc(g,v,E,k,P,z){ji(g,v,E,1,16,k,P,z)}function Ko(g,v,E,k,P,z){ji(g,v,1,E,16,k,P,z)}function Tm(g,v,E,k,P,z){var K;for(K=3;0<K;--K)hA(g,v+=4*E,E,1,16,k,P,z)}function tl(g,v,E,k,P,z){var K;for(K=3;0<K;--K)hA(g,v+=4,1,E,16,k,P,z)}function Nm(g,v,E,k,P,z,K,j){ji(g,v,P,1,8,z,K,j),ji(E,k,P,1,8,z,K,j)}function Vc(g,v,E,k,P,z,K,j){ji(g,v,1,P,8,z,K,j),ji(E,k,1,P,8,z,K,j)}function $c(g,v,E,k,P,z,K,j){hA(g,v+4*P,P,1,8,z,K,j),hA(E,k+4*P,P,1,8,z,K,j)}function h0(g,v,E,k,P,z,K,j){hA(g,v+4,1,P,8,z,K,j),hA(E,k+4,1,P,8,z,K,j)}function rl(){this.ba=new on,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Gt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function zc(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Kc(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function f0(){this.ua=0,this.Wa=new te,this.vb=new te,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new Y,this.yc=new L}function Lm(){this.xb=this.a=0,this.l=new OA,this.ca=new on,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new b,this.Pb=0,this.wd=new b,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new f0,this.ab=0,this.gc=o(4,Kc),this.Oc=0}function nl(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new OA,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Go(g,v,E,k,P,z,K){for(g=g==null?0:g[v+0],v=0;v<K;++v)P[z+v]=g+E[k+v]&255,g=P[z+v]}function Gc(g,v,E,k,P,z,K){var j;if(g==null)Go(null,null,E,k,P,z,K);else for(j=0;j<K;++j)P[z+j]=g[v+j]+E[k+j]&255}function Wi(g,v,E,k,P,z,K){if(g==null)Go(null,null,E,k,P,z,K);else{var j,J=g[v+0],ae=J,ye=J;for(j=0;j<K;++j)ae=ye+(J=g[v+j])-ae,ye=E[k+j]+(-256&ae?0>ae?0:255:ae)&255,ae=J,P[z+j]=ye}}function jc(g,v,E,k){var P=v.width,z=v.o;if(e(g!=null&&v!=null),0>E||0>=k||E+k>z)return null;if(!g.Cc){if(g.ga==null){var K;if(g.ga=new nl,(K=g.ga==null)||(K=v.width*v.o,e(g.Gb.length==0),g.Gb=A(K),g.Uc=0,g.Gb==null?K=0:(g.mb=g.Gb,g.nb=g.Uc,g.rc=null,K=1),K=!K),!K){K=g.ga;var j=g.Fa,J=g.P,ae=g.qc,ye=g.mb,Te=g.nb,Ne=J+1,be=ae-1,He=K.l;if(e(j!=null&&ye!=null&&v!=null),to[0]=null,to[1]=Go,to[2]=Gc,to[3]=Wi,K.ca=ye,K.tb=Te,K.c=v.width,K.i=v.height,e(0<K.c&&0<K.i),1>=ae)v=0;else if(K.$a=j[J+0]>>0&3,K.Z=j[J+0]>>2&3,K.Lc=j[J+0]>>4&3,J=j[J+0]>>6&3,0>K.$a||1<K.$a||4<=K.Z||1<K.Lc||J)v=0;else if(He.put=Zn,He.ac=Ir,He.bc=sa,He.ma=K,He.width=v.width,He.height=v.height,He.Da=v.Da,He.v=v.v,He.va=v.va,He.j=v.j,He.o=v.o,K.$a)e:{e(K.$a==1),v=Ie();t:for(;;){if(v==null){v=0;break e}if(e(K!=null),K.mc=v,v.c=K.c,v.i=K.i,v.l=K.l,v.l.ma=K,v.l.width=K.c,v.l.height=K.i,v.a=0,re(v.m,j,Ne,be),!Fe(K.c,K.i,1,v,null)||(v.ab==1&&v.gc[0].hc==3&&Z(v.s)?(K.ic=1,j=v.c*v.i,v.Ta=null,v.Ua=0,v.V=A(j),v.Ba=0,v.V==null?(v.a=1,v=0):v=1):(K.ic=0,v=pe(v,K.c)),!v))break t;v=1;break e}K.mc=null,v=0}else v=be>=K.c*K.i;K=!v}if(K)return null;g.ga.Lc!=1?g.Ga=0:k=z-E}e(g.ga!=null),e(E+k<=z);e:{if(v=(j=g.ga).c,z=j.l.o,j.$a==0){if(Ne=g.rc,be=g.Vc,He=g.Fa,J=g.P+1+E*v,ae=g.mb,ye=g.nb+E*v,e(J<=g.P+g.qc),j.Z!=0)for(e(to[j.Z]!=null),K=0;K<k;++K)to[j.Z](Ne,be,He,J,ae,ye,v),Ne=ae,be=ye,ye+=v,J+=v;else for(K=0;K<k;++K)n(ae,ye,He,J,v),Ne=ae,be=ye,ye+=v,J+=v;g.rc=Ne,g.Vc=be}else{if(e(j.mc!=null),v=E+k,e((K=j.mc)!=null),e(v<=K.i),K.C>=v)v=1;else if(j.ic||_e(),j.ic){j=K.V,Ne=K.Ba,be=K.c;var De=K.i,ve=(He=1,J=K.$/be,ae=K.$%be,ye=K.m,Te=K.s,K.$),Be=be*De,Me=be*v,Ge=Te.wc,Re=ve<Me?br(Te,ae,J):null;e(ve<=Be),e(v<=De),e(Z(Te));t:for(;;){for(;!ye.h&&ve<Me;){if(ae&Ge||(Re=br(Te,ae,J)),e(Re!=null),S(ye),256>(De=mr(Re.G[0],Re.H[0],ye)))j[Ne+ve]=De,++ve,++ae>=be&&(ae=0,++J<=v&&!(J%16)&&Ae(K,J));else{if(!(280>De)){He=0;break t}De=Fn(De-256,ye);var lt,nt=mr(Re.G[4],Re.H[4],ye);if(S(ye),!(ve>=(nt=Mn(be,nt=Fn(nt,ye)))&&Be-ve>=De)){He=0;break t}for(lt=0;lt<De;++lt)j[Ne+ve+lt]=j[Ne+ve+lt-nt];for(ve+=De,ae+=De;ae>=be;)ae-=be,++J<=v&&!(J%16)&&Ae(K,J);ve<Me&&ae&Ge&&(Re=br(Te,ae,J))}e(ye.h==B(ye))}Ae(K,J>v?v:J);break t}!He||ye.h&&ve<Be?(He=0,K.a=ye.h?5:3):K.$=ve,v=He}else v=oe(K,K.V,K.Ba,K.c,K.i,v,X);if(!v){k=0;break e}}E+k>=z&&(g.Cc=1),k=1}if(!k)return null;if(g.Cc&&((k=g.ga)!=null&&(k.mc=null),g.ga=null,0<g.Ga))return alert("todo:WebPDequantizeLevels"),null}return g.nb+E*P}function C(g,v,E,k,P,z){for(;0<P--;){var K,j=g,J=v+(E?1:0),ae=g,ye=v+(E?0:3);for(K=0;K<k;++K){var Te=ae[ye+4*K];Te!=255&&(Te*=32897,j[J+4*K+0]=j[J+4*K+0]*Te>>23,j[J+4*K+1]=j[J+4*K+1]*Te>>23,j[J+4*K+2]=j[J+4*K+2]*Te>>23)}v+=z}}function M(g,v,E,k,P){for(;0<k--;){var z;for(z=0;z<E;++z){var K=g[v+2*z+0],j=15&(ae=g[v+2*z+1]),J=4369*j,ae=(240&ae|ae>>4)*J>>16;g[v+2*z+0]=(240&K|K>>4)*J>>16&240|(15&K|K<<4)*J>>16>>4&15,g[v+2*z+1]=240&ae|j}v+=P}}function ce(g,v,E,k,P,z,K,j){var J,ae,ye=255;for(ae=0;ae<P;++ae){for(J=0;J<k;++J){var Te=g[v+J];z[K+4*J]=Te,ye&=Te}v+=E,K+=j}return ye!=255}function me(g,v,E,k,P){var z;for(z=0;z<P;++z)E[k+z]=g[v+z]>>8}function _e(){Zi=C,hl=M,p0=ce,J4=me}function Qe(g,v,E){I[g]=function(k,P,z,K,j,J,ae,ye,Te,Ne,be,He,De,ve,Be,Me,Ge){var Re,lt=Ge-1>>1,nt=j[J+0]|ae[ye+0]<<16,wt=Te[Ne+0]|be[He+0]<<16;e(k!=null);var At=3*nt+wt+131074>>2;for(v(k[P+0],255&At,At>>16,De,ve),z!=null&&(At=3*wt+nt+131074>>2,v(z[K+0],255&At,At>>16,Be,Me)),Re=1;Re<=lt;++Re){var Zt=j[J+Re]|ae[ye+Re]<<16,or=Te[Ne+Re]|be[He+Re]<<16,Wt=nt+Zt+wt+or+524296,Vt=Wt+2*(Zt+wt)>>3;At=Vt+nt>>1,nt=(Wt=Wt+2*(nt+or)>>3)+Zt>>1,v(k[P+2*Re-1],255&At,At>>16,De,ve+(2*Re-1)*E),v(k[P+2*Re-0],255&nt,nt>>16,De,ve+(2*Re-0)*E),z!=null&&(At=Wt+wt>>1,nt=Vt+or>>1,v(z[K+2*Re-1],255&At,At>>16,Be,Me+(2*Re-1)*E),v(z[K+2*Re+0],255&nt,nt>>16,Be,Me+(2*Re+0)*E)),nt=Zt,wt=or}1&Ge||(At=3*nt+wt+131074>>2,v(k[P+Ge-1],255&At,At>>16,De,ve+(Ge-1)*E),z!=null&&(At=3*wt+nt+131074>>2,v(z[K+Ge-1],255&At,At>>16,Be,Me+(Ge-1)*E)))}}function Xe(){Ha[y0]=Hie,Ha[v0]=lE,Ha[aE]=Vie,Ha[w0]=cE,Ha[B0]=uE,Ha[Om]=hE,Ha[AE]=$ie,Ha[Pm]=lE,Ha[Mm]=cE,Ha[x0]=uE,Ha[Rm]=hE}function st(g){return g&~zie?0>g?0:255:g>>fE}function mt(g,v){return st((19077*g>>8)+(26149*v>>8)-14234)}function Ut(g,v,E){return st((19077*g>>8)-(6419*v>>8)-(13320*E>>8)+8708)}function Mt(g,v){return st((19077*g>>8)+(33050*v>>8)-17685)}function jt(g,v,E,k,P){k[P+0]=mt(g,E),k[P+1]=Ut(g,v,E),k[P+2]=Mt(g,v)}function Fr(g,v,E,k,P){k[P+0]=Mt(g,v),k[P+1]=Ut(g,v,E),k[P+2]=mt(g,E)}function Dr(g,v,E,k,P){var z=Ut(g,v,E);v=z<<3&224|Mt(g,v)>>3,k[P+0]=248&mt(g,E)|z>>5,k[P+1]=v}function en(g,v,E,k,P){var z=240&Mt(g,v)|15;k[P+0]=240&mt(g,E)|Ut(g,v,E)>>4,k[P+1]=z}function Hn(g,v,E,k,P){k[P+0]=255,jt(g,v,E,k,P+1)}function gn(g,v,E,k,P){Fr(g,v,E,k,P),k[P+3]=255}function fA(g,v,E,k,P){jt(g,v,E,k,P),k[P+3]=255}function Ea(g,v){return 0>g?0:g>v?v:g}function ui(g,v,E){I[g]=function(k,P,z,K,j,J,ae,ye,Te){for(var Ne=ye+(-2&Te)*E;ye!=Ne;)v(k[P+0],z[K+0],j[J+0],ae,ye),v(k[P+1],z[K+0],j[J+0],ae,ye+E),P+=2,++K,++J,ye+=2*E;1&Te&&v(k[P+0],z[K+0],j[J+0],ae,ye)}}function d0(g,v,E){return E==0?g==0?v==0?6:5:v==0?4:0:E}function Wc(g,v,E,k,P){switch(g>>>30){case 3:cl(v,E,k,P,0);break;case 2:tu(v,E,k,P);break;case 1:mA(v,E,k,P)}}function Xc(g,v){var E,k,P=v.M,z=v.Nb,K=g.oc,j=g.pc+40,J=g.oc,ae=g.pc+584,ye=g.oc,Te=g.pc+600;for(E=0;16>E;++E)K[j+32*E-1]=129;for(E=0;8>E;++E)J[ae+32*E-1]=129,ye[Te+32*E-1]=129;for(0<P?K[j-1-32]=J[ae-1-32]=ye[Te-1-32]=129:(a(K,j-32-1,127,21),a(J,ae-32-1,127,9),a(ye,Te-32-1,127,9)),k=0;k<g.za;++k){var Ne=v.ya[v.aa+k];if(0<k){for(E=-1;16>E;++E)n(K,j+32*E-4,K,j+32*E+12,4);for(E=-1;8>E;++E)n(J,ae+32*E-4,J,ae+32*E+4,4),n(ye,Te+32*E-4,ye,Te+32*E+4,4)}var be=g.Gd,He=g.Hd+k,De=Ne.ad,ve=Ne.Hc;if(0<P&&(n(K,j-32,be[He].y,0,16),n(J,ae-32,be[He].f,0,8),n(ye,Te-32,be[He].ea,0,8)),Ne.Za){var Be=K,Me=j-32+16;for(0<P&&(k>=g.za-1?a(Be,Me,be[He].y[15],4):n(Be,Me,be[He+1].y,0,4)),E=0;4>E;E++)Be[Me+128+E]=Be[Me+256+E]=Be[Me+384+E]=Be[Me+0+E];for(E=0;16>E;++E,ve<<=2)Be=K,Me=j+gE[E],yA[Ne.Ob[E]](Be,Me),Wc(ve,De,16*+E,Be,Me)}else if(Be=d0(k,P,Ne.Ob[0]),eo[Be](K,j),ve!=0)for(E=0;16>E;++E,ve<<=2)Wc(ve,De,16*+E,K,j+gE[E]);for(E=Ne.Gc,Be=d0(k,P,Ne.Dd),pi[Be](J,ae),pi[Be](ye,Te),ve=De,Be=J,Me=ae,255&(Ne=E>>0)&&(170&Ne?Yi(ve,256,Be,Me):fi(ve,256,Be,Me)),Ne=ye,ve=Te,255&(E>>=8)&&(170&E?Yi(De,320,Ne,ve):fi(De,320,Ne,ve)),P<g.Ub-1&&(n(be[He].y,0,K,j+480,16),n(be[He].f,0,J,ae+224,8),n(be[He].ea,0,ye,Te+224,8)),E=8*z*g.B,be=g.sa,He=g.ta+16*k+16*z*g.R,De=g.qa,Ne=g.ra+8*k+E,ve=g.Ha,Be=g.Ia+8*k+E,E=0;16>E;++E)n(be,He+E*g.R,K,j+32*E,16);for(E=0;8>E;++E)n(De,Ne+E*g.B,J,ae+32*E,8),n(ve,Be+E*g.B,ye,Te+32*E,8)}}function al(g,v,E,k,P,z,K,j,J){var ae=[0],ye=[0],Te=0,Ne=J!=null?J.kd:0,be=J??new zc;if(g==null||12>E)return 7;be.data=g,be.w=v,be.ha=E,v=[v],E=[E],be.gb=[be.gb];e:{var He=v,De=E,ve=be.gb;if(e(g!=null),e(De!=null),e(ve!=null),ve[0]=0,12<=De[0]&&!r(g,He[0],"RIFF")){if(r(g,He[0]+8,"WEBP")){ve=3;break e}var Be=ne(g,He[0]+4);if(12>Be||4294967286<Be){ve=3;break e}if(Ne&&Be>De[0]-8){ve=7;break e}ve[0]=Be,He[0]+=12,De[0]-=12}ve=0}if(ve!=0)return ve;for(Be=0<be.gb[0],E=E[0];;){e:{var Me=g;De=v,ve=E;var Ge=ae,Re=ye,lt=He=[0];if((At=Te=[Te])[0]=0,8>ve[0])ve=7;else{if(!r(Me,De[0],"VP8X")){if(ne(Me,De[0]+4)!=10){ve=3;break e}if(18>ve[0]){ve=7;break e}var nt=ne(Me,De[0]+8),wt=1+ke(Me,De[0]+12);if(2147483648<=wt*(Me=1+ke(Me,De[0]+15))){ve=3;break e}lt!=null&&(lt[0]=nt),Ge!=null&&(Ge[0]=wt),Re!=null&&(Re[0]=Me),De[0]+=18,ve[0]-=18,At[0]=1}ve=0}}if(Te=Te[0],He=He[0],ve!=0)return ve;if(De=!!(2&He),!Be&&Te)return 3;if(z!=null&&(z[0]=!!(16&He)),K!=null&&(K[0]=De),j!=null&&(j[0]=0),K=ae[0],He=ye[0],Te&&De&&J==null){ve=0;break}if(4>E){ve=7;break}if(Be&&Te||!Be&&!Te&&!r(g,v[0],"ALPH")){E=[E],be.na=[be.na],be.P=[be.P],be.Sa=[be.Sa];e:{nt=g,ve=v,Be=E;var At=be.gb;Ge=be.na,Re=be.P,lt=be.Sa,wt=22,e(nt!=null),e(Be!=null),Me=ve[0];var Zt=Be[0];for(e(Ge!=null),e(lt!=null),Ge[0]=null,Re[0]=null,lt[0]=0;;){if(ve[0]=Me,Be[0]=Zt,8>Zt){ve=7;break e}var or=ne(nt,Me+4);if(4294967286<or){ve=3;break e}var Wt=8+or+1&-2;if(wt+=Wt,0<At&&wt>At){ve=3;break e}if(!r(nt,Me,"VP8 ")||!r(nt,Me,"VP8L")){ve=0;break e}if(Zt[0]<Wt){ve=7;break e}r(nt,Me,"ALPH")||(Ge[0]=nt,Re[0]=Me+8,lt[0]=or),Me+=Wt,Zt-=Wt}}if(E=E[0],be.na=be.na[0],be.P=be.P[0],be.Sa=be.Sa[0],ve!=0)break}E=[E],be.Ja=[be.Ja],be.xa=[be.xa];e:if(At=g,ve=v,Be=E,Ge=be.gb[0],Re=be.Ja,lt=be.xa,nt=ve[0],Me=!r(At,nt,"VP8 "),wt=!r(At,nt,"VP8L"),e(At!=null),e(Be!=null),e(Re!=null),e(lt!=null),8>Be[0])ve=7;else{if(Me||wt){if(At=ne(At,nt+4),12<=Ge&&At>Ge-12){ve=3;break e}if(Ne&&At>Be[0]-8){ve=7;break e}Re[0]=At,ve[0]+=8,Be[0]-=8,lt[0]=wt}else lt[0]=5<=Be[0]&&At[nt+0]==47&&!(At[nt+4]>>5),Re[0]=Be[0];ve=0}if(E=E[0],be.Ja=be.Ja[0],be.xa=be.xa[0],v=v[0],ve!=0)break;if(4294967286<be.Ja)return 3;if(j==null||De||(j[0]=be.xa?2:1),K=[K],He=[He],be.xa){if(5>E){ve=7;break}j=K,Ne=He,De=z,g==null||5>E?g=0:5<=E&&g[v+0]==47&&!(g[v+4]>>5)?(Be=[0],At=[0],Ge=[0],re(Re=new b,g,v,E),gt(Re,Be,At,Ge)?(j!=null&&(j[0]=Be[0]),Ne!=null&&(Ne[0]=At[0]),De!=null&&(De[0]=Ge[0]),g=1):g=0):g=0}else{if(10>E){ve=7;break}j=He,g==null||10>E||!Jf(g,v+3,E-3)?g=0:(Ne=g[v+0]|g[v+1]<<8|g[v+2]<<16,De=16383&(g[v+7]<<8|g[v+6]),g=16383&(g[v+9]<<8|g[v+8]),1&Ne||3<(Ne>>1&7)||!(Ne>>4&1)||Ne>>5>=be.Ja||!De||!g?g=0:(K&&(K[0]=De),j&&(j[0]=g),g=1))}if(!g||(K=K[0],He=He[0],Te&&(ae[0]!=K||ye[0]!=He)))return 3;J!=null&&(J[0]=be,J.offset=v-J.w,e(4294967286>v-J.w),e(J.offset==J.ha-E));break}return ve==0||ve==7&&Te&&J==null?(z!=null&&(z[0]|=be.na!=null&&0<be.na.length),k!=null&&(k[0]=K),P!=null&&(P[0]=He),0):ve}function qc(g,v,E){var k=v.width,P=v.height,z=0,K=0,j=k,J=P;if(v.Da=g!=null&&0<g.Da,v.Da&&(j=g.cd,J=g.bd,z=g.v,K=g.j,11>E||(z&=-2,K&=-2),0>z||0>K||0>=j||0>=J||z+j>k||K+J>P))return 0;if(v.v=z,v.j=K,v.va=z+j,v.o=K+J,v.U=j,v.T=J,v.da=g!=null&&0<g.da,v.da){if(!Pe(j,J,E=[g.ib],z=[g.hb]))return 0;v.ib=E[0],v.hb=z[0]}return v.ob=g!=null&&g.ob,v.Kb=g==null||!g.Sd,v.da&&(v.ob=v.ib<3*k/4&&v.hb<3*P/4,v.Kb=0),1}function Yc(g){if(g==null)return 2;if(11>g.S){var v=g.f.RGBA;v.fb+=(g.height-1)*v.A,v.A=-v.A}else v=g.f.kb,g=g.height,v.O+=(g-1)*v.fa,v.fa=-v.fa,v.N+=(g-1>>1)*v.Ab,v.Ab=-v.Ab,v.W+=(g-1>>1)*v.Db,v.Db=-v.Db,v.F!=null&&(v.J+=(g-1)*v.lb,v.lb=-v.lb);return 0}function Al(g,v,E,k){if(k==null||0>=g||0>=v)return 2;if(E!=null){if(E.Da){var P=E.cd,z=E.bd,K=-2&E.v,j=-2&E.j;if(0>K||0>j||0>=P||0>=z||K+P>g||j+z>v)return 2;g=P,v=z}if(E.da){if(!Pe(g,v,P=[E.ib],z=[E.hb]))return 2;g=P[0],v=z[0]}}k.width=g,k.height=v;e:{var J=k.width,ae=k.height;if(g=k.S,0>=J||0>=ae||!(g>=y0&&13>g))g=2;else{if(0>=k.Rd&&k.sd==null){K=z=P=v=0;var ye=(j=J*pE[g])*ae;if(11>g||(z=(ae+1)/2*(v=(J+1)/2),g==12&&(K=(P=J)*ae)),(ae=A(ye+2*z+K))==null){g=1;break e}k.sd=ae,11>g?((J=k.f.RGBA).eb=ae,J.fb=0,J.A=j,J.size=ye):((J=k.f.kb).y=ae,J.O=0,J.fa=j,J.Fd=ye,J.f=ae,J.N=0+ye,J.Ab=v,J.Cd=z,J.ea=ae,J.W=0+ye+z,J.Db=v,J.Ed=z,g==12&&(J.F=ae,J.J=0+ye+2*z),J.Tc=K,J.lb=P)}if(v=1,P=k.S,z=k.width,K=k.height,P>=y0&&13>P)if(11>P)g=k.f.RGBA,v&=(j=Math.abs(g.A))*(K-1)+z<=g.size,v&=j>=z*pE[P],v&=g.eb!=null;else{g=k.f.kb,j=(z+1)/2,ye=(K+1)/2,J=Math.abs(g.fa),ae=Math.abs(g.Ab);var Te=Math.abs(g.Db),Ne=Math.abs(g.lb),be=Ne*(K-1)+z;v&=J*(K-1)+z<=g.Fd,v&=ae*(ye-1)+j<=g.Cd,v=(v&=Te*(ye-1)+j<=g.Ed)&J>=z&ae>=j&Te>=j,v&=g.y!=null,v&=g.f!=null,v&=g.ea!=null,P==12&&(v&=Ne>=z,v&=be<=g.Tc,v&=g.F!=null)}else v=0;g=v?0:2}}return g!=0||E!=null&&E.fd&&(g=Yc(k)),g}var ua=64,il=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],ol=24,sl=32,Jc=8,ha=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];We("Predictor0","PredictorAdd0"),I.Predictor0=function(){return 4278190080},I.Predictor1=function(g){return g},I.Predictor2=function(g,v,E){return v[E+0]},I.Predictor3=function(g,v,E){return v[E+1]},I.Predictor4=function(g,v,E){return v[E-1]},I.Predictor5=function(g,v,E){return Je(Je(g,v[E+1]),v[E+0])},I.Predictor6=function(g,v,E){return Je(g,v[E-1])},I.Predictor7=function(g,v,E){return Je(g,v[E+0])},I.Predictor8=function(g,v,E){return Je(v[E-1],v[E+0])},I.Predictor9=function(g,v,E){return Je(v[E+0],v[E+1])},I.Predictor10=function(g,v,E){return Je(Je(g,v[E-1]),Je(v[E+0],v[E+1]))},I.Predictor11=function(g,v,E){var k=v[E+0];return 0>=ft(k>>24&255,g>>24&255,(v=v[E-1])>>24&255)+ft(k>>16&255,g>>16&255,v>>16&255)+ft(k>>8&255,g>>8&255,v>>8&255)+ft(255&k,255&g,255&v)?k:g},I.Predictor12=function(g,v,E){var k=v[E+0];return(ot((g>>24&255)+(k>>24&255)-((v=v[E-1])>>24&255))<<24|ot((g>>16&255)+(k>>16&255)-(v>>16&255))<<16|ot((g>>8&255)+(k>>8&255)-(v>>8&255))<<8|ot((255&g)+(255&k)-(255&v)))>>>0},I.Predictor13=function(g,v,E){var k=v[E-1];return(at((g=Je(g,v[E+0]))>>24&255,k>>24&255)<<24|at(g>>16&255,k>>16&255)<<16|at(g>>8&255,k>>8&255)<<8|at(g>>0&255,k>>0&255))>>>0};var Um=I.PredictorAdd0;I.PredictorAdd1=vt,We("Predictor2","PredictorAdd2"),We("Predictor3","PredictorAdd3"),We("Predictor4","PredictorAdd4"),We("Predictor5","PredictorAdd5"),We("Predictor6","PredictorAdd6"),We("Predictor7","PredictorAdd7"),We("Predictor8","PredictorAdd8"),We("Predictor9","PredictorAdd9"),We("Predictor10","PredictorAdd10"),We("Predictor11","PredictorAdd11"),We("Predictor12","PredictorAdd12"),We("Predictor13","PredictorAdd13");var Zc=I.PredictorAdd2;bt("ColorIndexInverseTransform","MapARGB","32b",function(g){return g>>8&255},function(g){return g}),bt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(g){return g},function(g){return g>>8&255});var g0,dA=I.ColorIndexInverseTransform,eu=I.MapARGB,Im=I.VP8LColorIndexInverseTransformAlpha,Dm=I.MapAlpha,Xi=I.VP8LPredictorsAdd=[];Xi.length=16,(I.VP8LPredictors=[]).length=16,(I.VP8LPredictorsAdd_C=[]).length=16,(I.VP8LPredictors_C=[]).length=16;var Pa,gA,qi,MA,hi,ll,pA,cl,tu,Yi,mA,fi,jo,ul,Wo,Ji,ru,Ma,di,yr,vr,Kr,sn,gi,Zi,hl,p0,J4,Z4=A(511),eE=A(2041),tE=A(225),rE=A(767),nE=0,Qm=eE,m0=tE,_a=rE,Ra=Z4,y0=0,v0=1,aE=2,w0=3,B0=4,Om=5,AE=6,Pm=7,Mm=8,x0=9,Rm=10,Fie=[2,3,7],Sie=[3,3,11],iE=[280,256,256,256,40],kie=[0,1,1,1,0],Tie=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Nie=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Lie=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Uie=8,Hm=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],Vm=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],nu=null,Iie=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],Die=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],oE=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Qie=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],Oie=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],Pie=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],Mie=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],eo=[],yA=[],pi=[],Rie=1,sE=2,to=[],Ha=[];Qe("UpsampleRgbLinePair",jt,3),Qe("UpsampleBgrLinePair",Fr,3),Qe("UpsampleRgbaLinePair",fA,4),Qe("UpsampleBgraLinePair",gn,4),Qe("UpsampleArgbLinePair",Hn,4),Qe("UpsampleRgba4444LinePair",en,2),Qe("UpsampleRgb565LinePair",Dr,2);var Hie=I.UpsampleRgbLinePair,Vie=I.UpsampleBgrLinePair,lE=I.UpsampleRgbaLinePair,cE=I.UpsampleBgraLinePair,uE=I.UpsampleArgbLinePair,hE=I.UpsampleRgba4444LinePair,$ie=I.UpsampleRgb565LinePair,b0=16,C0=1<<b0-1,au=-227,$m=482,fE=6,zie=(256<<fE)-1,dE=0,Kie=A(256),Gie=A(256),jie=A(256),Wie=A(256),Xie=A($m-au),qie=A($m-au);ui("YuvToRgbRow",jt,3),ui("YuvToBgrRow",Fr,3),ui("YuvToRgbaRow",fA,4),ui("YuvToBgraRow",gn,4),ui("YuvToArgbRow",Hn,4),ui("YuvToRgba4444Row",en,2),ui("YuvToRgb565Row",Dr,2);var gE=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],E0=[0,2,8],Yie=[8,7,6,4,4,2,2,2,1,1,1,1],Jie=1;this.WebPDecodeRGBA=function(g,v,E,k,P){var z=v0,K=new rl,j=new on;K.ba=j,j.S=z,j.width=[j.width],j.height=[j.height];var J=j.width,ae=j.height,ye=new _t;if(ye==null||g==null)var Te=2;else e(ye!=null),Te=al(g,v,E,ye.width,ye.height,ye.Pd,ye.Qd,ye.format,null);if(Te!=0?J=0:(J!=null&&(J[0]=ye.width[0]),ae!=null&&(ae[0]=ye.height[0]),J=1),J){j.width=j.width[0],j.height=j.height[0],k!=null&&(k[0]=j.width),P!=null&&(P[0]=j.height);e:{if(k=new OA,(P=new zc).data=g,P.w=v,P.ha=E,P.kd=1,v=[0],e(P!=null),((g=al(P.data,P.w,P.ha,null,null,null,v,null,P))==0||g==7)&&v[0]&&(g=4),(v=g)==0){if(e(K!=null),k.data=P.data,k.w=P.w+P.offset,k.ha=P.ha-P.offset,k.put=Zn,k.ac=Ir,k.bc=sa,k.ma=K,P.xa){if((g=Ie())==null){K=1;break e}if(function(Ne,be){var He=[0],De=[0],ve=[0];t:for(;;){if(Ne==null)return 0;if(be==null)return Ne.a=2,0;if(Ne.l=be,Ne.a=0,re(Ne.m,be.data,be.w,be.ha),!gt(Ne.m,He,De,ve)){Ne.a=3;break t}if(Ne.xb=sE,be.width=He[0],be.height=De[0],!Fe(He[0],De[0],1,Ne,null))break t;return 1}return e(Ne.a!=0),0}(g,k)){if(k=(v=Al(k.width,k.height,K.Oa,K.ba))==0){t:{k=g;r:for(;;){if(k==null){k=0;break t}if(e(k.s.yc!=null),e(k.s.Ya!=null),e(0<k.s.Wb),e((E=k.l)!=null),e((P=E.ma)!=null),k.xb!=0){if(k.ca=P.ba,k.tb=P.tb,e(k.ca!=null),!qc(P.Oa,E,w0)){k.a=2;break r}if(!pe(k,E.width)||E.da)break r;if((E.da||Rt(k.ca.S))&&_e(),11>k.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),k.ca.f.kb.F!=null&&_e()),k.Pb&&0<k.s.ua&&k.s.vb.X==null&&!Ee(k.s.vb,k.s.Wa.Xa)){k.a=1;break r}k.xb=0}if(!oe(k,k.V,k.Ba,k.c,k.i,E.o,ie))break r;P.Dc=k.Ma,k=1;break t}e(k.a!=0),k=0}k=!k}k&&(v=g.a)}else v=g.a}else{if((g=new Ca)==null){K=1;break e}if(g.Fa=P.na,g.P=P.P,g.qc=P.Sa,Zf(g,k)){if((v=Al(k.width,k.height,K.Oa,K.ba))==0){if(g.Aa=0,E=K.Oa,e((P=g)!=null),E!=null){if(0<(J=0>(J=E.Md)?0:100<J?255:255*J/100)){for(ae=ye=0;4>ae;++ae)12>(Te=P.pb[ae]).lc&&(Te.ia=J*Yie[0>Te.lc?0:Te.lc]>>3),ye|=Te.ia;ye&&(alert("todo:VP8InitRandom"),P.ia=1)}P.Ga=E.Id,100<P.Ga?P.Ga=100:0>P.Ga&&(P.Ga=0)}gm(g,k)||(v=g.a)}}else v=g.a}v==0&&K.Oa!=null&&K.Oa.fd&&(v=Yc(K.ba))}K=v}z=K!=0?null:11>z?j.f.RGBA.eb:j.f.kb.y}else z=null;return z};var pE=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(I,O){for(var q="",T=0;T<4;T++)q+=String.fromCharCode(I[O++]);return q}function u(I,O){return(I[O+0]<<0|I[O+1]<<8|I[O+2]<<16)>>>0}function p(I,O){return(I[O+0]<<0|I[O+1]<<8|I[O+2]<<16|I[O+3]<<24)>>>0}new l;var h=[0],d=[0],w=[],f=new l,m=t,y=function(I,O){var q={},T=0,L=!1,G=0,Y=0;if(q.frames=[],!function(_,B,x,S){for(var Q=0;Q<S;Q++)if(_[B+Q]!=x.charCodeAt(Q))return!0;return!1}(I,O,"RIFF",4)){var se,he;for(p(I,O+=4),O+=8;O<I.length;){var ge=c(I,O),re=p(I,O+=4);O+=4;var le=re+(1&re);switch(ge){case"VP8 ":case"VP8L":q.frames[T]===void 0&&(q.frames[T]={}),(b=q.frames[T]).src_off=L?Y:O-8,b.src_size=G+re+8,T++,L&&(L=!1,G=0,Y=0);break;case"VP8X":(b=q.header={}).feature_flags=I[O];var fe=O+4;b.canvas_width=1+u(I,fe),fe+=3,b.canvas_height=1+u(I,fe),fe+=3;break;case"ALPH":L=!0,G=le+8,Y=O-8;break;case"ANIM":(b=q.header).bgcolor=p(I,O),fe=O+4,b.loop_count=(se=I)[(he=fe)+0]<<0|se[he+1]<<8,fe+=2;break;case"ANMF":var Ue,b;(b=q.frames[T]={}).offset_x=2*u(I,O),O+=3,b.offset_y=2*u(I,O),O+=3,b.width=1+u(I,O),O+=3,b.height=1+u(I,O),O+=3,b.duration=u(I,O),O+=3,Ue=I[O++],b.dispose=1&Ue,b.blend=Ue>>1&1}ge!="ANMF"&&(O+=le)}return q}}(m,0);y.response=m,y.rgbaoutput=!0,y.dataurl=!1;var F=y.header?y.header:null,N=y.frames?y.frames:null;if(F){F.loop_counter=F.loop_count,h=[F.canvas_height],d=[F.canvas_width];for(var D=0;D<N.length&&N[D].blend!=0;D++);}var H=N[0],R=f.WebPDecodeRGBA(m,H.src_off,H.src_size,d,h);H.rgba=R,H.imgwidth=d[0],H.imgheight=h[0];for(var U=0;U<d[0]*h[0]*4;U++)w[U]=R[U];return this.width=d,this.height=h,this.data=w,this}(function(t){var e=function(){return typeof Vd=="function"},r=function(h,d,w,f){var m=4,y=o;switch(f){case t.image_compression.FAST:m=1,y=A;break;case t.image_compression.MEDIUM:m=6,y=s;break;case t.image_compression.SLOW:m=9,y=l}h=n(h,d,w,y);var F=Vd(h,{level:m});return t.__addimage__.arrayBufferToBinaryString(F)},n=function(h,d,w,f){for(var m,y,F,N=h.length/d,D=new Uint8Array(h.length+N),H=u(),R=0;R<N;R+=1){if(F=R*d,m=h.subarray(F,F+d),f)D.set(f(m,w,y),F+R);else{for(var U,I=H.length,O=[];U<I;U+=1)O[U]=H[U](m,w,y);var q=p(O.concat());D.set(O[q],F+R)}y=m}return D},a=function(h){var d=Array.apply([],h);return d.unshift(0),d},A=function(h,d){var w,f=[],m=h.length;f[0]=1;for(var y=0;y<m;y+=1)w=h[y-d]||0,f[y+1]=h[y]-w+256&255;return f},o=function(h,d,w){var f,m=[],y=h.length;m[0]=2;for(var F=0;F<y;F+=1)f=w&&w[F]||0,m[F+1]=h[F]-f+256&255;return m},s=function(h,d,w){var f,m,y=[],F=h.length;y[0]=3;for(var N=0;N<F;N+=1)f=h[N-d]||0,m=w&&w[N]||0,y[N+1]=h[N]+256-(f+m>>>1)&255;return y},l=function(h,d,w){var f,m,y,F,N=[],D=h.length;N[0]=4;for(var H=0;H<D;H+=1)f=h[H-d]||0,m=w&&w[H]||0,y=w&&w[H-d]||0,F=c(f,m,y),N[H+1]=h[H]-F+256&255;return N},c=function(h,d,w){if(h===d&&d===w)return h;var f=Math.abs(d-w),m=Math.abs(h-w),y=Math.abs(h+d-w-w);return f<=m&&f<=y?h:m<=y?d:w},u=function(){return[a,A,o,s,l]},p=function(h){var d=h.map(function(w){return w.reduce(function(f,m){return f+Math.abs(m)},0)});return d.indexOf(Math.min.apply(null,d))};t.processPNG=function(h,d,w,f){var m,y,F,N,D,H,R,U,I,O,q,T,L,G,Y,se=this.decode.FLATE_DECODE,he="";if(this.__addimage__.isArrayBuffer(h)&&(h=new Uint8Array(h)),this.__addimage__.isArrayBufferView(h)){if(h=(F=new OT(h)).imgData,y=F.bits,m=F.colorSpace,D=F.colors,[4,6].indexOf(F.colorType)!==-1){if(F.bits===8){I=(U=F.pixelBitlength==32?new Uint32Array(F.decodePixels().buffer):F.pixelBitlength==16?new Uint16Array(F.decodePixels().buffer):new Uint8Array(F.decodePixels().buffer)).length,q=new Uint8Array(I*F.colors),O=new Uint8Array(I);var ge,re=F.pixelBitlength-F.bits;for(G=0,Y=0;G<I;G++){for(L=U[G],ge=0;ge<re;)q[Y++]=L>>>ge&255,ge+=F.bits;O[G]=L>>>ge&255}}if(F.bits===16){I=(U=new Uint32Array(F.decodePixels().buffer)).length,q=new Uint8Array(I*(32/F.pixelBitlength)*F.colors),O=new Uint8Array(I*(32/F.pixelBitlength)),T=F.colors>1,G=0,Y=0;for(var le=0;G<I;)L=U[G++],q[Y++]=L>>>0&255,T&&(q[Y++]=L>>>16&255,L=U[G++],q[Y++]=L>>>0&255),O[le++]=L>>>16&255;y=8}f!==t.image_compression.NONE&&e()?(h=r(q,F.width*F.colors,F.colors,f),R=r(O,F.width,1,f)):(h=q,R=O,se=void 0)}if(F.colorType===3&&(m=this.color_spaces.INDEXED,H=F.palette,F.transparency.indexed)){var fe=F.transparency.indexed,Ue=0;for(G=0,I=fe.length;G<I;++G)Ue+=fe[G];if((Ue/=255)===I-1&&fe.indexOf(0)!==-1)N=[fe.indexOf(0)];else if(Ue!==I){for(U=F.decodePixels(),O=new Uint8Array(U.length),G=0,I=U.length;G<I;G++)O[G]=fe[U[G]];R=r(O,F.width,1)}}var b=function(_){var B;switch(_){case t.image_compression.FAST:B=11;break;case t.image_compression.MEDIUM:B=13;break;case t.image_compression.SLOW:B=14;break;default:B=12}return B}(f);return se===this.decode.FLATE_DECODE&&(he="/Predictor "+b+" "),he+="/Colors "+D+" /BitsPerComponent "+y+" /Columns "+F.width,(this.__addimage__.isArrayBuffer(h)||this.__addimage__.isArrayBufferView(h))&&(h=this.__addimage__.arrayBufferToBinaryString(h)),(R&&this.__addimage__.isArrayBuffer(R)||this.__addimage__.isArrayBufferView(R))&&(R=this.__addimage__.arrayBufferToBinaryString(R)),{alias:w,data:h,index:d,filter:se,decodeParameters:he,transparency:N,palette:H,sMask:R,predictor:b,width:F.width,height:F.height,bitsPerComponent:y,colorSpace:m}}}})(xt.API),function(t){t.processGIF89A=function(e,r,n,a){var A=new PT(e),o=A.width,s=A.height,l=[];A.decodeAndBlitFrameRGBA(0,l);var c={data:l,width:o,height:s},u=new tg(100).encode(c,100);return t.processJPEG.call(this,u,r,n,a)},t.processGIF87A=t.processGIF89A}(xt.API),ja.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,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),A=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:a,green:n,blue:r,quad:A}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},ja.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(r){hr.log("bit decode error:"+r)}},ja.prototype.bit1=function(){var t,e=Math.ceil(this.width/8),r=e%4;for(t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,a=0;a<e;a++)for(var A=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+8*a*4,s=0;s<8&&8*a+s<this.width;s++){var l=this.palette[A>>7-s&1];this.data[o+4*s]=l.blue,this.data[o+4*s+1]=l.green,this.data[o+4*s+2]=l.red,this.data[o+4*s+3]=255}r!==0&&(this.pos+=4-r)}},ja.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,a=0;a<t;a++){var A=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+2*a*4,s=A>>4,l=15&A,c=this.palette[s];if(this.data[o]=c.blue,this.data[o+1]=c.green,this.data[o+2]=c.red,this.data[o+3]=255,2*a+1>=this.width)break;c=this.palette[l],this.data[o+4]=c.blue,this.data[o+4+1]=c.green,this.data[o+4+2]=c.red,this.data[o+4+3]=255}e!==0&&(this.pos+=4-e)}},ja.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var a=this.datav.getUint8(this.pos++,!0),A=r*this.width*4+4*n;if(a<this.palette.length){var o=this.palette[a];this.data[A]=o.red,this.data[A+1]=o.green,this.data[A+2]=o.blue,this.data[A+3]=255}else this.data[A]=255,this.data[A+1]=255,this.data[A+2]=255,this.data[A+3]=255}t!==0&&(this.pos+=4-t)}},ja.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,a=0;a<this.width;a++){var A=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(A&e)/e*255|0,s=(A>>5&e)/e*255|0,l=(A>>10&e)/e*255|0,c=A>>15?255:0,u=n*this.width*4+4*a;this.data[u]=l,this.data[u+1]=s,this.data[u+2]=o,this.data[u+3]=c}this.pos+=t}},ja.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),r=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var a=this.bottom_up?n:this.height-1-n,A=0;A<this.width;A++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&e)/e*255|0,l=(o>>5&r)/r*255|0,c=(o>>11)/e*255|0,u=a*this.width*4+4*A;this.data[u]=c,this.data[u+1]=l,this.data[u+2]=s,this.data[u+3]=255}this.pos+=t}},ja.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),A=this.datav.getUint8(this.pos++,!0),o=e*this.width*4+4*r;this.data[o]=A,this.data[o+1]=a,this.data[o+2]=n,this.data[o+3]=255}this.pos+=this.width%4}},ja.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),A=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*r;this.data[s]=A,this.data[s+1]=a,this.data[s+2]=n,this.data[s+3]=o}},ja.prototype.getData=function(){return this.data},function(t){t.processBMP=function(e,r,n,a){var A=new ja(e,!1),o=A.width,s=A.height,l={data:A.getData(),width:o,height:s},c=new tg(100).encode(l,100);return t.processJPEG.call(this,c,r,n,a)}}(xt.API),Iv.prototype.getData=function(){return this.data},function(t){t.processWEBP=function(e,r,n,a){var A=new Iv(e),o=A.width,s=A.height,l={data:A.getData(),width:o,height:s},c=new tg(100).encode(l,100);return t.processJPEG.call(this,c,r,n,a)}}(xt.API),xt.API.processRGBA=function(t,e,r){for(var n=t.data,a=n.length,A=new Uint8Array(a/4*3),o=new Uint8Array(a/4),s=0,l=0,c=0;c<a;c+=4){var u=n[c],p=n[c+1],h=n[c+2],d=n[c+3];A[s++]=u,A[s++]=p,A[s++]=h,o[l++]=d}var w=this.__addimage__.arrayBufferToBinaryString(A);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:w,index:e,alias:r,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},xt.API.setLanguage=function(t){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]!==void 0&&(this.internal.languageSettings.languageCode=t,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},ps=xt.API,gh=ps.getCharWidthsArray=function(t,e){var r,n,a=(e=e||{}).font||this.internal.getFont(),A=e.fontSize||this.internal.getFontSize(),o=e.charSpace||this.internal.getCharSpace(),s=e.widths?e.widths:a.metadata.Unicode.widths,l=s.fof?s.fof:1,c=e.kerning?e.kerning:a.metadata.Unicode.kerning,u=c.fof?c.fof:1,p=e.doKerning!==!1,h=0,d=t.length,w=0,f=s[0]||l,m=[];for(r=0;r<d;r++)n=t.charCodeAt(r),typeof a.metadata.widthOfString=="function"?m.push((a.metadata.widthOfGlyph(a.metadata.characterToGlyph(n))+o*(1e3/A)||0)/1e3):(h=p&&Xt(c[n])==="object"&&!isNaN(parseInt(c[n][w],10))?c[n][w]/u:0,m.push((s[n]||f)/l+h)),w=n;return m},Tv=ps.getStringUnitWidth=function(t,e){var r=(e=e||{}).fontSize||this.internal.getFontSize(),n=e.font||this.internal.getFont(),a=e.charSpace||this.internal.getCharSpace();return ps.processArabic&&(t=ps.processArabic(t)),typeof n.metadata.widthOfString=="function"?n.metadata.widthOfString(t,r,a)/r:gh.apply(this,arguments).reduce(function(A,o){return A+o},0)},Nv=function(t,e,r,n){for(var a=[],A=0,o=t.length,s=0;A!==o&&s+e[A]<r;)s+=e[A],A++;a.push(t.slice(0,A));var l=A;for(s=0;A!==o;)s+e[A]>n&&(a.push(t.slice(l,A)),s=0,l=A),s+=e[A],A++;return l!==A&&a.push(t.slice(l,A)),a},Lv=function(t,e,r){r||(r={});var n,a,A,o,s,l,c,u=[],p=[u],h=r.textIndent||0,d=0,w=0,f=t.split(" "),m=gh.apply(this,[" ",r])[0];if(l=r.lineIndent===-1?f[0].length+2:r.lineIndent||0){var y=Array(l).join(" "),F=[];f.map(function(D){(D=D.split(/\s*\n/)).length>1?F=F.concat(D.map(function(H,R){return(R&&H.length?`
234
- `:"")+H})):F.push(D[0])}),f=F,l=Tv.apply(this,[y,r])}for(A=0,o=f.length;A<o;A++){var N=0;if(n=f[A],l&&n[0]==`
235
- `&&(n=n.substr(1),N=1),h+d+(w=(a=gh.apply(this,[n,r])).reduce(function(D,H){return D+H},0))>e||N){if(w>e){for(s=Nv.apply(this,[n,a,e-(h+d),e]),u.push(s.shift()),u=[s.pop()];s.length;)p.push([s.shift()]);w=a.slice(n.length-(u[0]?u[0].length:0)).reduce(function(D,H){return D+H},0)}else u=[n];p.push(u),h=w+l,d=m}else u.push(n),h+=d+w,d=m}return c=l?function(D,H){return(H?y:"")+D.join(" ")}:function(D){return D.join(" ")},p.map(c)},ps.splitTextToSize=function(t,e,r){var n,a=(r=r||{}).fontSize||this.internal.getFontSize(),A=(function(u){if(u.widths&&u.kerning)return{widths:u.widths,kerning:u.kerning};var p=this.internal.getFont(u.fontName,u.fontStyle);return p.metadata.Unicode?{widths:p.metadata.Unicode.widths||{0:1},kerning:p.metadata.Unicode.kerning||{}}:{font:p.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,r);n=Array.isArray(t)?t:String(t).split(/\r?\n/);var o=1*this.internal.scaleFactor*e/a;A.textIndent=r.textIndent?1*r.textIndent*this.internal.scaleFactor/a:0,A.lineIndent=r.lineIndent;var s,l,c=[];for(s=0,l=n.length;s<l;s++)c=c.concat(Lv.apply(this,[n[s],o,A]));return c},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var e="klmnopqrstuvwxyz",r={},n={},a=0;a<e.length;a++)r[e[a]]="0123456789abcdef"[a],n["0123456789abcdef"[a]]=e[a];var A=function(p){return"0x"+parseInt(p,10).toString(16)},o=t.__fontmetrics__.compress=function(p){var h,d,w,f,m=["{"];for(var y in p){if(h=p[y],isNaN(parseInt(y,10))?d="'"+y+"'":(y=parseInt(y,10),d=(d=A(y).slice(2)).slice(0,-1)+n[d.slice(-1)]),typeof h=="number")h<0?(w=A(h).slice(3),f="-"):(w=A(h).slice(2),f=""),w=f+w.slice(0,-1)+n[w.slice(-1)];else{if(Xt(h)!=="object")throw new Error("Don't know what to do with value type "+Xt(h)+".");w=o(h)}m.push(d+w)}return m.push("}"),m.join("")},s=t.__fontmetrics__.uncompress=function(p){if(typeof p!="string")throw new Error("Invalid argument passed to uncompress.");for(var h,d,w,f,m={},y=1,F=m,N=[],D="",H="",R=p.length-1,U=1;U<R;U+=1)(f=p[U])=="'"?h?(w=h.join(""),h=void 0):h=[]:h?h.push(f):f=="{"?(N.push([F,w]),F={},w=void 0):f=="}"?((d=N.pop())[0][d[1]]=F,w=void 0,F=d[0]):f=="-"?y=-1:w===void 0?r.hasOwnProperty(f)?(D+=r[f],w=parseInt(D,16)*y,y=1,D=""):D+=f:r.hasOwnProperty(f)?(H+=r[f],F[w]=parseInt(H,16)*y,y=1,w=void 0,H=""):H+=f;return m},l={codePages:["WinAnsiEncoding"],WinAnsiEncoding:s("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},c={Unicode:{Courier:l,"Courier-Bold":l,"Courier-BoldOblique":l,"Courier-Oblique":l,Helvetica:l,"Helvetica-Bold":l,"Helvetica-BoldOblique":l,"Helvetica-Oblique":l,"Times-Roman":l,"Times-Bold":l,"Times-BoldItalic":l,"Times-Italic":l}},u={Unicode:{"Courier-Oblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":s("{'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":s("{'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:s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":s("{'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:s("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:s("{'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":s("{'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:s("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":s("{'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":s("{'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":s("{'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}}}")}};t.events.push(["addFont",function(p){var h=p.font,d=u.Unicode[h.postScriptName];d&&(h.metadata.Unicode={},h.metadata.Unicode.widths=d.widths,h.metadata.Unicode.kerning=d.kerning);var w=c.Unicode[h.postScriptName];w&&(h.metadata.Unicode.encoding=w,h.encoding=w.codePages[0])}])}(xt.API),function(t){var e=function(r){for(var n=r.length,a=new Uint8Array(n),A=0;A<n;A++)a[A]=r.charCodeAt(A);return a};t.API.events.push(["addFont",function(r){var n=void 0,a=r.font,A=r.instance;if(!a.isStandardFont){if(A===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+a.postScriptName+"').");if(typeof(n=A.existsFileInVFS(a.postScriptName)===!1?A.loadFile(a.postScriptName):A.getFileFromVFS(a.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+a.postScriptName+"').");(function(o,s){s=/^\x00\x01\x00\x00/.test(s)?e(s):e(Vl(s)),o.metadata=t.API.TTFFont.open(s),o.metadata.Unicode=o.metadata.Unicode||{encoding:{},kerning:{},widths:[]},o.metadata.glyIdsUsed=[0]})(a,n)}}])}(xt),function(t){function e(){return(Bt.canvg?Promise.resolve(Bt.canvg):Promise.resolve().then(()=>_ie)).catch(function(r){return Promise.reject(new Error("Could not load canvg: "+r))}).then(function(r){return r.default?r.default:r})}xt.API.addSvgAsImage=function(r,n,a,A,o,s,l,c){if(isNaN(n)||isNaN(a))throw hr.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(A)||isNaN(o))throw hr.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var u=document.createElement("canvas");u.width=A,u.height=o;var p=u.getContext("2d");p.fillStyle="#fff",p.fillRect(0,0,u.width,u.height);var h={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return e().then(function(w){return w.fromString(p,r,h)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(w){return w.render(h)}).then(function(){d.addImage(u.toDataURL("image/jpeg",1),n,a,A,o,l,c)})}}(),xt.API.putTotalPages=function(t){var e,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),r=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var a=0;a<this.internal.pages[n].length;a++)this.internal.pages[n][a]=this.internal.pages[n][a].replace(e,r);return this},xt.API.viewerPreferences=function(t,e){var r;t=t||{},e=e||!1;var n,a,A,o={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(o),l=[],c=0,u=0,p=0;function h(w,f){var m,y=!1;for(m=0;m<w.length;m+=1)w[m]===f&&(y=!0);return y}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),r=this.internal.viewerpreferences.configuration,t==="reset"||e===!0){var d=s.length;for(p=0;p<d;p+=1)r[s[p]].value=r[s[p]].defaultValue,r[s[p]].explicitSet=!1}if(Xt(t)==="object"){for(a in t)if(A=t[a],h(s,a)&&A!==void 0){if(r[a].type==="boolean"&&typeof A=="boolean")r[a].value=A;else if(r[a].type==="name"&&h(r[a].valueSet,A))r[a].value=A;else if(r[a].type==="integer"&&Number.isInteger(A))r[a].value=A;else if(r[a].type==="array"){for(c=0;c<A.length;c+=1)if(n=!0,A[c].length===1&&typeof A[c][0]=="number")l.push(String(A[c]-1));else if(A[c].length>1){for(u=0;u<A[c].length;u+=1)typeof A[c][u]!="number"&&(n=!1);n===!0&&l.push([A[c][0]-1,A[c][1]-1].join(" "))}r[a].value="["+l.join(" ")+"]"}else r[a].value=r[a].defaultValue;r[a].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var w,f=[];for(w in r)r[w].explicitSet===!0&&(r[w].type==="name"?f.push("/"+w+" /"+r[w].value):f.push("/"+w+" "+r[w].value));f.length!==0&&this.internal.write(`/ViewerPreferences
236
- <<
237
- `+f.join(`
238
- `)+`
239
- >>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=r,this},function(t){var e=function(){var n='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',a=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),A=unescape(encodeURIComponent(n)),o=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),s=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),l=unescape(encodeURIComponent("</x:xmpmeta>")),c=A.length+o.length+s.length+a.length+l.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+c+" >>"),this.internal.write("stream"),this.internal.write(a+A+o+s+l),this.internal.write("endstream"),this.internal.write("endobj")},r=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};t.addMetadata=function(n,a){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:n,namespaceuri:a||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",r),this.internal.events.subscribe("postPutResources",e)),this}}(xt.API),function(t){var e=t.API,r=e.pdfEscape16=function(A,o){for(var s,l=o.metadata.Unicode.widths,c=["","0","00","000","0000"],u=[""],p=0,h=A.length;p<h;++p){if(s=o.metadata.characterToGlyph(A.charCodeAt(p)),o.metadata.glyIdsUsed.push(s),o.metadata.toUnicode[s]=A.charCodeAt(p),l.indexOf(s)==-1&&(l.push(s),l.push([parseInt(o.metadata.widthOfGlyph(s),10)])),s=="0")return u.join("");s=s.toString(16),u.push(c[4-s.length],s)}return u.join("")},n=function(A){var o,s,l,c,u,p,h;for(u=`/CIDInit /ProcSet findresource begin
240
- 12 dict begin
241
- begincmap
242
- /CIDSystemInfo <<
243
- /Registry (Adobe)
244
- /Ordering (UCS)
245
- /Supplement 0
246
- >> def
247
- /CMapName /Adobe-Identity-UCS def
248
- /CMapType 2 def
249
- 1 begincodespacerange
250
- <0000><ffff>
251
- endcodespacerange`,l=[],p=0,h=(s=Object.keys(A).sort(function(d,w){return d-w})).length;p<h;p++)o=s[p],l.length>=100&&(u+=`
252
- `+l.length+` beginbfchar
253
- `+l.join(`
254
- `)+`
255
- endbfchar`,l=[]),A[o]!==void 0&&A[o]!==null&&typeof A[o].toString=="function"&&(c=("0000"+A[o].toString(16)).slice(-4),o=("0000"+(+o).toString(16)).slice(-4),l.push("<"+o+"><"+c+">"));return l.length&&(u+=`
256
- `+l.length+` beginbfchar
257
- `+l.join(`
258
- `)+`
259
- endbfchar
260
- `),u+=`endcmap
261
- CMapName currentdict /CMap defineresource pop
262
- end
263
- end`};e.events.push(["putFont",function(A){(function(o){var s=o.font,l=o.out,c=o.newObject,u=o.putStream;if(s.metadata instanceof t.API.TTFFont&&s.encoding==="Identity-H"){for(var p=s.metadata.Unicode.widths,h=s.metadata.subset.encode(s.metadata.glyIdsUsed,1),d="",w=0;w<h.length;w++)d+=String.fromCharCode(h[w]);var f=c();u({data:d,addLength1:!0,objectId:f}),l("endobj");var m=c();u({data:n(s.metadata.toUnicode),addLength1:!0,objectId:m}),l("endobj");var y=c();l("<<"),l("/Type /FontDescriptor"),l("/FontName /"+ls(s.fontName)),l("/FontFile2 "+f+" 0 R"),l("/FontBBox "+t.API.PDFObject.convert(s.metadata.bbox)),l("/Flags "+s.metadata.flags),l("/StemV "+s.metadata.stemV),l("/ItalicAngle "+s.metadata.italicAngle),l("/Ascent "+s.metadata.ascender),l("/Descent "+s.metadata.decender),l("/CapHeight "+s.metadata.capHeight),l(">>"),l("endobj");var F=c();l("<<"),l("/Type /Font"),l("/BaseFont /"+ls(s.fontName)),l("/FontDescriptor "+y+" 0 R"),l("/W "+t.API.PDFObject.convert(p)),l("/CIDToGIDMap /Identity"),l("/DW 1000"),l("/Subtype /CIDFontType2"),l("/CIDSystemInfo"),l("<<"),l("/Supplement 0"),l("/Registry (Adobe)"),l("/Ordering ("+s.encoding+")"),l(">>"),l(">>"),l("endobj"),s.objectNumber=c(),l("<<"),l("/Type /Font"),l("/Subtype /Type0"),l("/ToUnicode "+m+" 0 R"),l("/BaseFont /"+ls(s.fontName)),l("/Encoding /"+s.encoding),l("/DescendantFonts ["+F+" 0 R]"),l(">>"),l("endobj"),s.isAlreadyPutted=!0}})(A)}]),e.events.push(["putFont",function(A){(function(o){var s=o.font,l=o.out,c=o.newObject,u=o.putStream;if(s.metadata instanceof t.API.TTFFont&&s.encoding==="WinAnsiEncoding"){for(var p=s.metadata.rawData,h="",d=0;d<p.length;d++)h+=String.fromCharCode(p[d]);var w=c();u({data:h,addLength1:!0,objectId:w}),l("endobj");var f=c();u({data:n(s.metadata.toUnicode),addLength1:!0,objectId:f}),l("endobj");var m=c();l("<<"),l("/Descent "+s.metadata.decender),l("/CapHeight "+s.metadata.capHeight),l("/StemV "+s.metadata.stemV),l("/Type /FontDescriptor"),l("/FontFile2 "+w+" 0 R"),l("/Flags 96"),l("/FontBBox "+t.API.PDFObject.convert(s.metadata.bbox)),l("/FontName /"+ls(s.fontName)),l("/ItalicAngle "+s.metadata.italicAngle),l("/Ascent "+s.metadata.ascender),l(">>"),l("endobj"),s.objectNumber=c();for(var y=0;y<s.metadata.hmtx.widths.length;y++)s.metadata.hmtx.widths[y]=parseInt(s.metadata.hmtx.widths[y]*(1e3/s.metadata.head.unitsPerEm));l("<</Subtype/TrueType/Type/Font/ToUnicode "+f+" 0 R/BaseFont/"+ls(s.fontName)+"/FontDescriptor "+m+" 0 R/Encoding/"+s.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(s.metadata.hmtx.widths)+">>"),l("endobj"),s.isAlreadyPutted=!0}})(A)}]);var a=function(A){var o,s=A.text||"",l=A.x,c=A.y,u=A.options||{},p=A.mutex||{},h=p.pdfEscape,d=p.activeFontKey,w=p.fonts,f=d,m="",y=0,F="",N=w[f].encoding;if(w[f].encoding!=="Identity-H")return{text:s,x:l,y:c,options:u,mutex:p};for(F=s,f=d,Array.isArray(s)&&(F=s[0]),y=0;y<F.length;y+=1)w[f].metadata.hasOwnProperty("cmap")&&(o=w[f].metadata.cmap.unicode.codeMap[F[y].charCodeAt(0)]),o||F[y].charCodeAt(0)<256&&w[f].metadata.hasOwnProperty("Unicode")?m+=F[y]:m+="";var D="";return parseInt(f.slice(1))<14||N==="WinAnsiEncoding"?D=h(m,f).split("").map(function(H){return H.charCodeAt(0).toString(16)}).join(""):N==="Identity-H"&&(D=r(m,w[f])),p.isHex=!0,{text:D,x:l,y:c,options:u,mutex:p}};e.events.push(["postProcessText",function(A){var o=A.text||"",s=[],l={text:o,x:A.x,y:A.y,options:A.options,mutex:A.mutex};if(Array.isArray(o)){var c=0;for(c=0;c<o.length;c+=1)Array.isArray(o[c])&&o[c].length===3?s.push([a(Object.assign({},l,{text:o[c][0]})).text,o[c][1],o[c][2]]):s.push(a(Object.assign({},l,{text:o[c]})).text);A.text=s}else A.text=a(Object.assign({},l,{text:o})).text}])}(xt),function(t){var e=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(r){return e.call(this),this.internal.vFS[r]!==void 0},t.addFileToVFS=function(r,n){return e.call(this),this.internal.vFS[r]=n,this},t.getFileFromVFS=function(r){return e.call(this),this.internal.vFS[r]!==void 0?this.internal.vFS[r]:null}}(xt.API),function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(n){var a,A,o,s,l,c,u,p=e,h=[[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]],d=[[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]],w={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},f={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},m=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],y=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)$/),F=!1,N=0;this.__bidiEngine__={};var D=function(T){var L=T.charCodeAt(),G=L>>8,Y=f[G];return Y!==void 0?p[256*Y+(255&L)]:G===252||G===253?"AL":y.test(G)?"L":G===8?"R":"N"},H=function(T){for(var L,G=0;G<T.length;G++){if((L=D(T.charAt(G)))==="L")return!1;if(L==="R")return!0}return!1},R=function(T,L,G,Y){var se,he,ge,re,le=L[Y];switch(le){case"L":case"R":F=!1;break;case"N":case"AN":break;case"EN":F&&(le="AN");break;case"AL":F=!0,le="R";break;case"WS":le="N";break;case"CS":Y<1||Y+1>=L.length||(se=G[Y-1])!=="EN"&&se!=="AN"||(he=L[Y+1])!=="EN"&&he!=="AN"?le="N":F&&(he="AN"),le=he===se?he:"N";break;case"ES":le=(se=Y>0?G[Y-1]:"B")==="EN"&&Y+1<L.length&&L[Y+1]==="EN"?"EN":"N";break;case"ET":if(Y>0&&G[Y-1]==="EN"){le="EN";break}if(F){le="N";break}for(ge=Y+1,re=L.length;ge<re&&L[ge]==="ET";)ge++;le=ge<re&&L[ge]==="EN"?"EN":"N";break;case"NSM":if(o&&!s){for(re=L.length,ge=Y+1;ge<re&&L[ge]==="NSM";)ge++;if(ge<re){var fe=T[Y],Ue=fe>=1425&&fe<=2303||fe===64286;if(se=L[ge],Ue&&(se==="R"||se==="AL")){le="R";break}}}le=Y<1||(se=L[Y-1])==="B"?"N":G[Y-1];break;case"B":F=!1,a=!0,le=N;break;case"S":A=!0,le="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":F=!1;break;case"BN":le="N"}return le},U=function(T,L,G){var Y=T.split("");return G&&I(Y,G,{hiLevel:N}),Y.reverse(),L&&L.reverse(),Y.join("")},I=function(T,L,G){var Y,se,he,ge,re,le=-1,fe=T.length,Ue=0,b=[],_=N?d:h,B=[];for(F=!1,a=!1,A=!1,se=0;se<fe;se++)B[se]=D(T[se]);for(he=0;he<fe;he++){if(re=Ue,b[he]=R(T,B,b,he),Y=240&(Ue=_[re][w[b[he]]]),Ue&=15,L[he]=ge=_[Ue][5],Y>0)if(Y===16){for(se=le;se<he;se++)L[se]=1;le=-1}else le=-1;if(_[Ue][6])le===-1&&(le=he);else if(le>-1){for(se=le;se<he;se++)L[se]=ge;le=-1}B[he]==="B"&&(L[he]=0),G.hiLevel|=ge}A&&function(x,S,Q){for(var W=0;W<Q;W++)if(x[W]==="S"){S[W]=N;for(var ue=W-1;ue>=0&&x[ue]==="WS";ue--)S[ue]=N}}(B,L,fe)},O=function(T,L,G,Y,se){if(!(se.hiLevel<T)){if(T===1&&N===1&&!a)return L.reverse(),void(G&&G.reverse());for(var he,ge,re,le,fe=L.length,Ue=0;Ue<fe;){if(Y[Ue]>=T){for(re=Ue+1;re<fe&&Y[re]>=T;)re++;for(le=Ue,ge=re-1;le<ge;le++,ge--)he=L[le],L[le]=L[ge],L[ge]=he,G&&(he=G[le],G[le]=G[ge],G[ge]=he);Ue=re}Ue++}}},q=function(T,L,G){var Y=T.split(""),se={hiLevel:N};return G||(G=[]),I(Y,G,se),function(he,ge,re){if(re.hiLevel!==0&&u)for(var le,fe=0;fe<he.length;fe++)ge[fe]===1&&(le=m.indexOf(he[fe]))>=0&&(he[fe]=m[le+1])}(Y,G,se),O(2,Y,L,G,se),O(1,Y,L,G,se),Y.join("")};return this.__bidiEngine__.doBidiReorder=function(T,L,G){if(function(se,he){if(he)for(var ge=0;ge<se.length;ge++)he[ge]=ge;s===void 0&&(s=H(se)),c===void 0&&(c=H(se))}(T,L),o||!l||c)if(o&&l&&s^c)N=s?1:0,T=U(T,L,G);else if(!o&&l&&c)N=s?1:0,T=q(T,L,G),T=U(T,L);else if(!o||s||l||c){if(o&&!l&&s^c)T=U(T,L),s?(N=0,T=q(T,L,G)):(N=1,T=q(T,L,G),T=U(T,L));else if(o&&s&&!l&&c)N=1,T=q(T,L,G),T=U(T,L);else if(!o&&!l&&s^c){var Y=u;s?(N=1,T=q(T,L,G),N=0,u=!1,T=q(T,L,G),u=Y):(N=0,T=q(T,L,G),T=U(T,L),N=1,u=!1,T=q(T,L,G),u=Y,T=U(T,L))}}else N=0,T=q(T,L,G);else N=s?1:0,T=q(T,L,G);return T},this.__bidiEngine__.setOptions=function(T){T&&(o=T.isInputVisual,l=T.isOutputVisual,s=T.isInputRtl,c=T.isOutputRtl,u=T.isSymmetricSwapping)},this.__bidiEngine__.setOptions(n),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"],r=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(n){var a=n.text,A=(n.x,n.y,n.options||{}),o=(n.mutex,A.lang,[]);if(A.isInputVisual=typeof A.isInputVisual!="boolean"||A.isInputVisual,r.setOptions(A),Object.prototype.toString.call(a)==="[object Array]"){var s=0;for(o=[],s=0;s<a.length;s+=1)Object.prototype.toString.call(a[s])==="[object Array]"?o.push([r.doBidiReorder(a[s][0]),a[s][1],a[s][2]]):o.push([r.doBidiReorder(a[s])]);n.text=o}else n.text=r.doBidiReorder(a);r.setOptions({isInputVisual:!0})}])}(xt),xt.API.TTFFont=function(){function t(e){var r;if(this.rawData=e,r=this.contents=new Li(e),this.contents.pos=4,r.readString(4)==="ttcf")throw new Error("TTCF not supported.");r.pos=0,this.parse(),this.subset=new ZT(this),this.registerTTF()}return t.open=function(e){return new t(e)},t.prototype.parse=function(){return this.directory=new MT(this.contents),this.head=new HT(this),this.name=new GT(this),this.cmap=new Qv(this),this.toUnicode={},this.hhea=new VT(this),this.maxp=new jT(this),this.hmtx=new WT(this),this.post=new zT(this),this.os2=new $T(this),this.loca=new JT(this),this.glyf=new XT(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 e,r,n,a,A;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var o,s,l,c;for(c=[],o=0,s=(l=this.bbox).length;o<s;o++)e=l[o],c.push(Math.round(e*this.scaleFactor));return c}).call(this),this.stemV=0,this.post.exists?(n=255&(a=this.post.italic_angle),32768&(r=a>>16)&&(r=-(1+(65535^r))),this.italicAngle=+(r+"."+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=(A=this.familyClass)===1||A===2||A===3||A===4||A===5||A===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(e){var r;return((r=this.cmap.unicode)!=null?r.codeMap[e]:void 0)||0},t.prototype.widthOfGlyph=function(e){var r;return r=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*r},t.prototype.widthOfString=function(e,r,n){var a,A,o,s;for(o=0,A=0,s=(e=""+e).length;0<=s?A<s:A>s;A=0<=s?++A:--A)a=e.charCodeAt(A),o+=this.widthOfGlyph(this.characterToGlyph(a))+n*(1e3/r)||0;return o*(r/1e3)},t.prototype.lineHeight=function(e,r){var n;return r==null&&(r=!1),n=r?this.lineGap:0,(this.ascender+n-this.decender)/1e3*e},t}();var Wa,Li=function(){function t(e){this.data=e??[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(e){return this.data[this.pos++]=e},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},t.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},t.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},t.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},t.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},t.prototype.readString=function(e){var r,n;for(n=[],r=0;0<=e?r<e:r>e;r=0<=e?++r:--r)n[r]=String.fromCharCode(this.readByte());return n.join("")},t.prototype.writeString=function(e){var r,n,a;for(a=[],r=0,n=e.length;0<=n?r<n:r>n;r=0<=n?++r:--r)a.push(this.writeByte(e.charCodeAt(r)));return a},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(e){return this.writeInt16(e)},t.prototype.readLongLong=function(){var e,r,n,a,A,o,s,l;return e=this.readByte(),r=this.readByte(),n=this.readByte(),a=this.readByte(),A=this.readByte(),o=this.readByte(),s=this.readByte(),l=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^r)+1099511627776*(255^n)+4294967296*(255^a)+16777216*(255^A)+65536*(255^o)+256*(255^s)+(255^l)+1):72057594037927940*e+281474976710656*r+1099511627776*n+4294967296*a+16777216*A+65536*o+256*s+l},t.prototype.writeLongLong=function(e){var r,n;return r=Math.floor(e/4294967296),n=4294967295&e,this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r),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(e){return this.writeInt32(e)},t.prototype.read=function(e){var r,n;for(r=[],n=0;0<=e?n<e:n>e;n=0<=e?++n:--n)r.push(this.readByte());return r},t.prototype.write=function(e){var r,n,a,A;for(A=[],n=0,a=e.length;n<a;n++)r=e[n],A.push(this.writeByte(r));return A},t}(),MT=function(){var t;function e(r){var n,a,A;for(this.scalarType=r.readInt(),this.tableCount=r.readShort(),this.searchRange=r.readShort(),this.entrySelector=r.readShort(),this.rangeShift=r.readShort(),this.tables={},a=0,A=this.tableCount;0<=A?a<A:a>A;a=0<=A?++a:--a)n={tag:r.readString(4),checksum:r.readInt(),offset:r.readInt(),length:r.readInt()},this.tables[n.tag]=n}return e.prototype.encode=function(r){var n,a,A,o,s,l,c,u,p,h,d,w,f;for(f in d=Object.keys(r).length,l=Math.log(2),p=16*Math.floor(Math.log(d)/l),o=Math.floor(p/l),u=16*d-p,(a=new Li).writeInt(this.scalarType),a.writeShort(d),a.writeShort(p),a.writeShort(o),a.writeShort(u),A=16*d,c=a.pos+A,s=null,w=[],r)for(h=r[f],a.writeString(f),a.writeInt(t(h)),a.writeInt(c),a.writeInt(h.length),w=w.concat(h),f==="head"&&(s=c),c+=h.length;c%4;)w.push(0),c++;return a.write(w),n=2981146554-t(a.data),a.pos=s+8,a.writeUInt32(n),a.data},t=function(r){var n,a,A,o;for(r=Ov.call(r);r.length%4;)r.push(0);for(A=new Li(r),a=0,n=0,o=r.length;n<o;n=n+=4)a+=A.readUInt32();return 4294967295&a},e}(),RT={}.hasOwnProperty,_A=function(t,e){for(var r in e)RT.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};Wa=function(){function t(e){var r;this.file=e,r=this.file.directory.tables[this.tag],this.exists=!!r,r&&(this.offset=r.offset,this.length=r.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 HT=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _A(e,Wa),e.prototype.tag="head",e.prototype.parse=function(r){return r.pos=this.offset,this.version=r.readInt(),this.revision=r.readInt(),this.checkSumAdjustment=r.readInt(),this.magicNumber=r.readInt(),this.flags=r.readShort(),this.unitsPerEm=r.readShort(),this.created=r.readLongLong(),this.modified=r.readLongLong(),this.xMin=r.readShort(),this.yMin=r.readShort(),this.xMax=r.readShort(),this.yMax=r.readShort(),this.macStyle=r.readShort(),this.lowestRecPPEM=r.readShort(),this.fontDirectionHint=r.readShort(),this.indexToLocFormat=r.readShort(),this.glyphDataFormat=r.readShort()},e.prototype.encode=function(r){var n;return(n=new Li).writeInt(this.version),n.writeInt(this.revision),n.writeInt(this.checkSumAdjustment),n.writeInt(this.magicNumber),n.writeShort(this.flags),n.writeShort(this.unitsPerEm),n.writeLongLong(this.created),n.writeLongLong(this.modified),n.writeShort(this.xMin),n.writeShort(this.yMin),n.writeShort(this.xMax),n.writeShort(this.yMax),n.writeShort(this.macStyle),n.writeShort(this.lowestRecPPEM),n.writeShort(this.fontDirectionHint),n.writeShort(r),n.writeShort(this.glyphDataFormat),n.data},e}(),Dv=function(){function t(e,r){var n,a,A,o,s,l,c,u,p,h,d,w,f,m,y,F,N;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=r+e.readInt(),p=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(l=0;l<256;++l)this.codeMap[l]=e.readByte();break;case 4:for(d=e.readUInt16(),h=d/2,e.pos+=6,A=function(){var D,H;for(H=[],l=D=0;0<=h?D<h:D>h;l=0<=h?++D:--D)H.push(e.readUInt16());return H}(),e.pos+=2,f=function(){var D,H;for(H=[],l=D=0;0<=h?D<h:D>h;l=0<=h?++D:--D)H.push(e.readUInt16());return H}(),c=function(){var D,H;for(H=[],l=D=0;0<=h?D<h:D>h;l=0<=h?++D:--D)H.push(e.readUInt16());return H}(),u=function(){var D,H;for(H=[],l=D=0;0<=h?D<h:D>h;l=0<=h?++D:--D)H.push(e.readUInt16());return H}(),a=(this.length-e.pos+this.offset)/2,s=function(){var D,H;for(H=[],l=D=0;0<=a?D<a:D>a;l=0<=a?++D:--D)H.push(e.readUInt16());return H}(),l=y=0,N=A.length;y<N;l=++y)for(m=A[l],n=F=w=f[l];w<=m?F<=m:F>=m;n=w<=m?++F:--F)u[l]===0?o=n+c[l]:(o=s[u[l]/2+(n-w)-(h-l)]||0)!==0&&(o+=c[l]),this.codeMap[n]=65535&o}e.pos=p}return t.encode=function(e,r){var n,a,A,o,s,l,c,u,p,h,d,w,f,m,y,F,N,D,H,R,U,I,O,q,T,L,G,Y,se,he,ge,re,le,fe,Ue,b,_,B,x,S,Q,W,ue,Ce,de,ke;switch(Y=new Li,o=Object.keys(e).sort(function(ne,Ee){return ne-Ee}),r){case"macroman":for(f=0,m=function(){var ne=[];for(w=0;w<256;++w)ne.push(0);return ne}(),F={0:0},A={},se=0,le=o.length;se<le;se++)F[ue=e[a=o[se]]]==null&&(F[ue]=++f),A[a]={old:e[a],new:F[e[a]]},m[a]=F[e[a]];return Y.writeUInt16(1),Y.writeUInt16(0),Y.writeUInt32(12),Y.writeUInt16(0),Y.writeUInt16(262),Y.writeUInt16(0),Y.write(m),{charMap:A,subtable:Y.data,maxGlyphID:f+1};case"unicode":for(L=[],p=[],N=0,F={},n={},y=c=null,he=0,fe=o.length;he<fe;he++)F[H=e[a=o[he]]]==null&&(F[H]=++N),n[a]={old:H,new:F[H]},s=F[H]-a,y!=null&&s===c||(y&&p.push(y),L.push(a),c=s),y=a;for(y&&p.push(y),p.push(65535),L.push(65535),q=2*(O=L.length),I=2*Math.pow(Math.log(O)/Math.LN2,2),h=Math.log(I/2)/Math.LN2,U=2*O-I,l=[],R=[],d=[],w=ge=0,Ue=L.length;ge<Ue;w=++ge){if(T=L[w],u=p[w],T===65535){l.push(0),R.push(0);break}if(T-(G=n[T].new)>=32768)for(l.push(0),R.push(2*(d.length+O-w)),a=re=T;T<=u?re<=u:re>=u;a=T<=u?++re:--re)d.push(n[a].new);else l.push(G-T),R.push(0)}for(Y.writeUInt16(3),Y.writeUInt16(1),Y.writeUInt32(12),Y.writeUInt16(4),Y.writeUInt16(16+8*O+2*d.length),Y.writeUInt16(0),Y.writeUInt16(q),Y.writeUInt16(I),Y.writeUInt16(h),Y.writeUInt16(U),Q=0,b=p.length;Q<b;Q++)a=p[Q],Y.writeUInt16(a);for(Y.writeUInt16(0),W=0,_=L.length;W<_;W++)a=L[W],Y.writeUInt16(a);for(Ce=0,B=l.length;Ce<B;Ce++)s=l[Ce],Y.writeUInt16(s);for(de=0,x=R.length;de<x;de++)D=R[de],Y.writeUInt16(D);for(ke=0,S=d.length;ke<S;ke++)f=d[ke],Y.writeUInt16(f);return{charMap:n,subtable:Y.data,maxGlyphID:N+1}}},t}(),Qv=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _A(e,Wa),e.prototype.tag="cmap",e.prototype.parse=function(r){var n,a,A;for(r.pos=this.offset,this.version=r.readUInt16(),A=r.readUInt16(),this.tables=[],this.unicode=null,a=0;0<=A?a<A:a>A;a=0<=A?++a:--a)n=new Dv(r,this.offset),this.tables.push(n),n.isUnicode&&this.unicode==null&&(this.unicode=n);return!0},e.encode=function(r,n){var a,A;return n==null&&(n="macroman"),a=Dv.encode(r,n),(A=new Li).writeUInt16(0),A.writeUInt16(1),a.table=A.data.concat(a.subtable),a},e}(),VT=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _A(e,Wa),e.prototype.tag="hhea",e.prototype.parse=function(r){return r.pos=this.offset,this.version=r.readInt(),this.ascender=r.readShort(),this.decender=r.readShort(),this.lineGap=r.readShort(),this.advanceWidthMax=r.readShort(),this.minLeftSideBearing=r.readShort(),this.minRightSideBearing=r.readShort(),this.xMaxExtent=r.readShort(),this.caretSlopeRise=r.readShort(),this.caretSlopeRun=r.readShort(),this.caretOffset=r.readShort(),r.pos+=8,this.metricDataFormat=r.readShort(),this.numberOfMetrics=r.readUInt16()},e}(),$T=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _A(e,Wa),e.prototype.tag="OS/2",e.prototype.parse=function(r){if(r.pos=this.offset,this.version=r.readUInt16(),this.averageCharWidth=r.readShort(),this.weightClass=r.readUInt16(),this.widthClass=r.readUInt16(),this.type=r.readShort(),this.ySubscriptXSize=r.readShort(),this.ySubscriptYSize=r.readShort(),this.ySubscriptXOffset=r.readShort(),this.ySubscriptYOffset=r.readShort(),this.ySuperscriptXSize=r.readShort(),this.ySuperscriptYSize=r.readShort(),this.ySuperscriptXOffset=r.readShort(),this.ySuperscriptYOffset=r.readShort(),this.yStrikeoutSize=r.readShort(),this.yStrikeoutPosition=r.readShort(),this.familyClass=r.readShort(),this.panose=function(){var n,a;for(a=[],n=0;n<10;++n)a.push(r.readByte());return a}(),this.charRange=function(){var n,a;for(a=[],n=0;n<4;++n)a.push(r.readInt());return a}(),this.vendorID=r.readString(4),this.selection=r.readShort(),this.firstCharIndex=r.readShort(),this.lastCharIndex=r.readShort(),this.version>0&&(this.ascent=r.readShort(),this.descent=r.readShort(),this.lineGap=r.readShort(),this.winAscent=r.readShort(),this.winDescent=r.readShort(),this.codePageRange=function(){var n,a;for(a=[],n=0;n<2;n=++n)a.push(r.readInt());return a}(),this.version>1))return this.xHeight=r.readShort(),this.capHeight=r.readShort(),this.defaultChar=r.readShort(),this.breakChar=r.readShort(),this.maxContext=r.readShort()},e}(),zT=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _A(e,Wa),e.prototype.tag="post",e.prototype.parse=function(r){var n,a,A;switch(r.pos=this.offset,this.format=r.readInt(),this.italicAngle=r.readInt(),this.underlinePosition=r.readShort(),this.underlineThickness=r.readShort(),this.isFixedPitch=r.readInt(),this.minMemType42=r.readInt(),this.maxMemType42=r.readInt(),this.minMemType1=r.readInt(),this.maxMemType1=r.readInt(),this.format){case 65536:break;case 131072:var o;for(a=r.readUInt16(),this.glyphNameIndex=[],o=0;0<=a?o<a:o>a;o=0<=a?++o:--o)this.glyphNameIndex.push(r.readUInt16());for(this.names=[],A=[];r.pos<this.offset+this.length;)n=r.readByte(),A.push(this.names.push(r.readString(n)));return A;case 151552:return a=r.readUInt16(),this.offsets=r.read(a);case 196608:break;case 262144:return this.map=(function(){var s,l,c;for(c=[],o=s=0,l=this.file.maxp.numGlyphs;0<=l?s<l:s>l;o=0<=l?++s:--s)c.push(r.readUInt32());return c}).call(this)}},e}(),KT=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},GT=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _A(e,Wa),e.prototype.tag="name",e.prototype.parse=function(r){var n,a,A,o,s,l,c,u,p,h,d;for(r.pos=this.offset,r.readShort(),n=r.readShort(),l=r.readShort(),a=[],o=0;0<=n?o<n:o>n;o=0<=n?++o:--o)a.push({platformID:r.readShort(),encodingID:r.readShort(),languageID:r.readShort(),nameID:r.readShort(),length:r.readShort(),offset:this.offset+l+r.readShort()});for(c={},o=p=0,h=a.length;p<h;o=++p)A=a[o],r.pos=A.offset,u=r.readString(A.length),s=new KT(u,A),c[d=A.nameID]==null&&(c[d]=[]),c[A.nameID].push(s);this.strings=c,this.copyright=c[0],this.fontFamily=c[1],this.fontSubfamily=c[2],this.uniqueSubfamily=c[3],this.fontName=c[4],this.version=c[5];try{this.postscriptName=c[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=c[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=c[7],this.manufacturer=c[8],this.designer=c[9],this.description=c[10],this.vendorUrl=c[11],this.designerUrl=c[12],this.license=c[13],this.licenseUrl=c[14],this.preferredFamily=c[15],this.preferredSubfamily=c[17],this.compatibleFull=c[18],this.sampleText=c[19]},e}(),jT=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _A(e,Wa),e.prototype.tag="maxp",e.prototype.parse=function(r){return r.pos=this.offset,this.version=r.readInt(),this.numGlyphs=r.readUInt16(),this.maxPoints=r.readUInt16(),this.maxContours=r.readUInt16(),this.maxCompositePoints=r.readUInt16(),this.maxComponentContours=r.readUInt16(),this.maxZones=r.readUInt16(),this.maxTwilightPoints=r.readUInt16(),this.maxStorage=r.readUInt16(),this.maxFunctionDefs=r.readUInt16(),this.maxInstructionDefs=r.readUInt16(),this.maxStackElements=r.readUInt16(),this.maxSizeOfInstructions=r.readUInt16(),this.maxComponentElements=r.readUInt16(),this.maxComponentDepth=r.readUInt16()},e}(),WT=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _A(e,Wa),e.prototype.tag="hmtx",e.prototype.parse=function(r){var n,a,A,o,s,l,c;for(r.pos=this.offset,this.metrics=[],n=0,l=this.file.hhea.numberOfMetrics;0<=l?n<l:n>l;n=0<=l?++n:--n)this.metrics.push({advance:r.readUInt16(),lsb:r.readInt16()});for(A=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var u,p;for(p=[],n=u=0;0<=A?u<A:u>A;n=0<=A?++u:--u)p.push(r.readInt16());return p}(),this.widths=(function(){var u,p,h,d;for(d=[],u=0,p=(h=this.metrics).length;u<p;u++)o=h[u],d.push(o.advance);return d}).call(this),a=this.widths[this.widths.length-1],c=[],n=s=0;0<=A?s<A:s>A;n=0<=A?++s:--s)c.push(this.widths.push(a));return c},e.prototype.forGlyph=function(r){return r in this.metrics?this.metrics[r]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[r-this.metrics.length]}},e}(),Ov=[].slice,XT=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _A(e,Wa),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(r){var n,a,A,o,s,l,c,u,p,h;return r in this.cache?this.cache[r]:(o=this.file.loca,n=this.file.contents,a=o.indexOf(r),(A=o.lengthOf(r))===0?this.cache[r]=null:(n.pos=this.offset+a,s=(l=new Li(n.read(A))).readShort(),u=l.readShort(),h=l.readShort(),c=l.readShort(),p=l.readShort(),this.cache[r]=s===-1?new YT(l,u,h,c,p):new qT(l,s,u,h,c,p),this.cache[r]))},e.prototype.encode=function(r,n,a){var A,o,s,l,c;for(s=[],o=[],l=0,c=n.length;l<c;l++)A=r[n[l]],o.push(s.length),A&&(s=s.concat(A.encode(a)));return o.push(s.length),{table:s,offsets:o}},e}(),qT=function(){function t(e,r,n,a,A,o){this.raw=e,this.numberOfContours=r,this.xMin=n,this.yMin=a,this.xMax=A,this.yMax=o,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),YT=function(){function t(e,r,n,a,A){var o,s;for(this.raw=e,this.xMin=r,this.yMin=n,this.xMax=a,this.yMax=A,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],o=this.raw;s=o.readShort(),this.glyphOffsets.push(o.pos),this.glyphIDs.push(o.readUInt16()),32&s;)o.pos+=1&s?4:2,128&s?o.pos+=8:64&s?o.pos+=4:8&s&&(o.pos+=2)}return t.prototype.encode=function(){var e,r,n;for(r=new Li(Ov.call(this.raw.data)),e=0,n=this.glyphIDs.length;e<n;++e)r.pos=this.glyphOffsets[e];return r.data},t}(),JT=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _A(e,Wa),e.prototype.tag="loca",e.prototype.parse=function(r){var n,a;return r.pos=this.offset,n=this.file.head.indexToLocFormat,this.offsets=n===0?(function(){var A,o;for(o=[],a=0,A=this.length;a<A;a+=2)o.push(2*r.readUInt16());return o}).call(this):(function(){var A,o;for(o=[],a=0,A=this.length;a<A;a+=4)o.push(r.readUInt32());return o}).call(this)},e.prototype.indexOf=function(r){return this.offsets[r]},e.prototype.lengthOf=function(r){return this.offsets[r+1]-this.offsets[r]},e.prototype.encode=function(r,n){for(var a=new Uint32Array(this.offsets.length),A=0,o=0,s=0;s<a.length;++s)if(a[s]=A,o<n.length&&n[o]==s){++o,a[s]=A;var l=this.offsets[s],c=this.offsets[s+1]-l;c>0&&(A+=c)}for(var u=new Array(4*a.length),p=0;p<a.length;++p)u[4*p+3]=255&a[p],u[4*p+2]=(65280&a[p])>>8,u[4*p+1]=(16711680&a[p])>>16,u[4*p]=(4278190080&a[p])>>24;return u},e}(),ZT=function(){function t(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var e,r,n,a,A;for(r in a=this.font.cmap.tables[0].codeMap,e={},A=this.subset)n=A[r],e[r]=a[n];return e},t.prototype.glyphsFor=function(e){var r,n,a,A,o,s,l;for(a={},o=0,s=e.length;o<s;o++)a[A=e[o]]=this.font.glyf.glyphFor(A);for(A in r=[],a)(n=a[A])!=null&&n.compound&&r.push.apply(r,n.glyphIDs);if(r.length>0)for(A in l=this.glyphsFor(r))n=l[A],a[A]=n;return a},t.prototype.encode=function(e,r){var n,a,A,o,s,l,c,u,p,h,d,w,f,m,y;for(a in n=Qv.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(e),d={0:0},y=n.charMap)d[(l=y[a]).old]=l.new;for(w in h=n.maxGlyphID,o)w in d||(d[w]=h++);return u=function(F){var N,D;for(N in D={},F)D[F[N]]=N;return D}(d),p=Object.keys(u).sort(function(F,N){return F-N}),f=function(){var F,N,D;for(D=[],F=0,N=p.length;F<N;F++)s=p[F],D.push(u[s]);return D}(),A=this.font.glyf.encode(o,f,d),c=this.font.loca.encode(A.offsets,f),m={cmap:this.font.cmap.raw(),glyf:A.table,loca:c,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(r)},this.font.os2.exists&&(m["OS/2"]=this.font.os2.raw()),this.font.directory.encode(m)},t}();xt.API.PDFObject=function(){var t;function e(){}return t=function(r,n){return(Array(n+1).join("0")+r).slice(-n)},e.convert=function(r){var n,a,A,o;if(Array.isArray(r))return"["+function(){var s,l,c;for(c=[],s=0,l=r.length;s<l;s++)n=r[s],c.push(e.convert(n));return c}().join(" ")+"]";if(typeof r=="string")return"/"+r;if(r!=null&&r.isString)return"("+r+")";if(r instanceof Date)return"(D:"+t(r.getUTCFullYear(),4)+t(r.getUTCMonth(),2)+t(r.getUTCDate(),2)+t(r.getUTCHours(),2)+t(r.getUTCMinutes(),2)+t(r.getUTCSeconds(),2)+"Z)";if({}.toString.call(r)==="[object Object]"){for(a in A=["<<"],r)o=r[a],A.push("/"+a+" "+e.convert(o));return A.push(">>"),A.join(`
264
- `)}return""+r},e}();function GA({domElement:t,fileName:e}){if(t){const r={height:851.89,width:595.28},n=new xt("","pt","a4");let a,A,o,s,l;return Ud(t).then(c=>{a=c.width,A=c.height;let u=A;const p=a/r.width*r.height;let h=0;if(o=r.width,s=582.28/a*A,l=c.toDataURL("image/png",1),u<p)n.addImage(l,"PNG",33,24,o*.9,s*.9,"","FAST");else for(;u>0;)n.addImage(l,"PNG",33,h,o*.9,s*.9,"","FAST"),u-=p,h-=r.height-24,u>0&&n.addPage();n.save(`${e}.pdf`)})}}/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var ph={};ph.version="0.18.5";var Pv=1252,eN=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],Mv=function(t){eN.indexOf(t)!=-1&&(Pv=t)};function tN(){Mv(1252)}var $l=function(t){Mv(t)};function rN(){$l(1200),tN()}function nN(t){for(var e=[],r=0;r<t.length>>1;++r)e[r]=String.fromCharCode(t.charCodeAt(2*r+1)+(t.charCodeAt(2*r)<<8));return e.join("")}var mh=function(e){return String.fromCharCode(e)},Rv=function(e){return String.fromCharCode(e)},mo,Ui="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function zl(t){for(var e="",r=0,n=0,a=0,A=0,o=0,s=0,l=0,c=0;c<t.length;)r=t.charCodeAt(c++),A=r>>2,n=t.charCodeAt(c++),o=(r&3)<<4|n>>4,a=t.charCodeAt(c++),s=(n&15)<<2|a>>6,l=a&63,isNaN(n)?s=l=64:isNaN(a)&&(l=64),e+=Ui.charAt(A)+Ui.charAt(o)+Ui.charAt(s)+Ui.charAt(l);return e}function jA(t){var e="",r=0,n=0,a=0,A=0,o=0,s=0,l=0;t=t.replace(/[^\w\+\/\=]/g,"");for(var c=0;c<t.length;)A=Ui.indexOf(t.charAt(c++)),o=Ui.indexOf(t.charAt(c++)),r=A<<2|o>>4,e+=String.fromCharCode(r),s=Ui.indexOf(t.charAt(c++)),n=(o&15)<<4|s>>2,s!==64&&(e+=String.fromCharCode(n)),l=Ui.indexOf(t.charAt(c++)),a=(s&3)<<6|l,l!==64&&(e+=String.fromCharCode(a));return e}var Jt=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),WA=function(){if(typeof Buffer<"u"){var t=!Buffer.from;if(!t)try{Buffer.from("foo","utf8")}catch{t=!0}return t?function(e,r){return r?new Buffer(e,r):new Buffer(e)}:Buffer.from.bind(Buffer)}return function(){}}();function yo(t){return Jt?Buffer.alloc?Buffer.alloc(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}function Hv(t){return Jt?Buffer.allocUnsafe?Buffer.allocUnsafe(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}var Xa=function(e){return Jt?WA(e,"binary"):e.split("").map(function(r){return r.charCodeAt(0)&255})};function yh(t){if(typeof ArrayBuffer>"u")return Xa(t);for(var e=new ArrayBuffer(t.length),r=new Uint8Array(e),n=0;n!=t.length;++n)r[n]=t.charCodeAt(n)&255;return e}function Kl(t){if(Array.isArray(t))return t.map(function(n){return String.fromCharCode(n)}).join("");for(var e=[],r=0;r<t.length;++r)e[r]=String.fromCharCode(t[r]);return e.join("")}function aN(t){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(t)}var wn=Jt?function(t){return Buffer.concat(t.map(function(e){return Buffer.isBuffer(e)?e:WA(e)}))}:function(t){if(typeof Uint8Array<"u"){var e=0,r=0;for(e=0;e<t.length;++e)r+=t[e].length;var n=new Uint8Array(r),a=0;for(e=0,r=0;e<t.length;r+=a,++e)if(a=t[e].length,t[e]instanceof Uint8Array)n.set(t[e],r);else{if(typeof t[e]=="string")throw"wtf";n.set(new Uint8Array(t[e]),r)}return n}return[].concat.apply([],t.map(function(A){return Array.isArray(A)?A:[].slice.call(A)}))};function AN(t){for(var e=[],r=0,n=t.length+250,a=yo(t.length+255),A=0;A<t.length;++A){var o=t.charCodeAt(A);if(o<128)a[r++]=o;else if(o<2048)a[r++]=192|o>>6&31,a[r++]=128|o&63;else if(o>=55296&&o<57344){o=(o&1023)+64;var s=t.charCodeAt(++A)&1023;a[r++]=240|o>>8&7,a[r++]=128|o>>2&63,a[r++]=128|s>>6&15|(o&3)<<4,a[r++]=128|s&63}else a[r++]=224|o>>12&15,a[r++]=128|o>>6&63,a[r++]=128|o&63;r>n&&(e.push(a.slice(0,r)),r=0,a=yo(65535),n=65530)}return e.push(a.slice(0,r)),wn(e)}var Gl=/\u0000/g,vh=/[\u0001-\u0006]/g;function ms(t){for(var e="",r=t.length-1;r>=0;)e+=t.charAt(r--);return e}function qa(t,e){var r=""+t;return r.length>=e?r:Tr("0",e-r.length)+r}function rg(t,e){var r=""+t;return r.length>=e?r:Tr(" ",e-r.length)+r}function wh(t,e){var r=""+t;return r.length>=e?r:r+Tr(" ",e-r.length)}function iN(t,e){var r=""+Math.round(t);return r.length>=e?r:Tr("0",e-r.length)+r}function oN(t,e){var r=""+t;return r.length>=e?r:Tr("0",e-r.length)+r}var Vv=Math.pow(2,32);function ys(t,e){if(t>Vv||t<-Vv)return iN(t,e);var r=Math.round(t);return oN(r,e)}function Bh(t,e){return e=e||0,t.length>=7+e&&(t.charCodeAt(e)|32)===103&&(t.charCodeAt(e+1)|32)===101&&(t.charCodeAt(e+2)|32)===110&&(t.charCodeAt(e+3)|32)===101&&(t.charCodeAt(e+4)|32)===114&&(t.charCodeAt(e+5)|32)===97&&(t.charCodeAt(e+6)|32)===108}var $v=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],ng=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function sN(t){return t||(t={}),t[0]="General",t[1]="0",t[2]="0.00",t[3]="#,##0",t[4]="#,##0.00",t[9]="0%",t[10]="0.00%",t[11]="0.00E+00",t[12]="# ?/?",t[13]="# ??/??",t[14]="m/d/yy",t[15]="d-mmm-yy",t[16]="d-mmm",t[17]="mmm-yy",t[18]="h:mm AM/PM",t[19]="h:mm:ss AM/PM",t[20]="h:mm",t[21]="h:mm:ss",t[22]="m/d/yy h:mm",t[37]="#,##0 ;(#,##0)",t[38]="#,##0 ;[Red](#,##0)",t[39]="#,##0.00;(#,##0.00)",t[40]="#,##0.00;[Red](#,##0.00)",t[45]="mm:ss",t[46]="[h]:mm:ss",t[47]="mmss.0",t[48]="##0.0E+0",t[49]="@",t[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',t}var kr={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},zv={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},lN={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function xh(t,e,r){for(var n=t<0?-1:1,a=t*n,A=0,o=1,s=0,l=1,c=0,u=0,p=Math.floor(a);c<e&&(p=Math.floor(a),s=p*o+A,u=p*c+l,!(a-p<5e-8));)a=1/(a-p),A=o,o=s,l=c,c=u;if(u>e&&(c>e?(u=l,s=A):(u=c,s=o)),!r)return[0,n*s,u];var h=Math.floor(n*s/u);return[h,n*s-h*u,u]}function bh(t,e,r){if(t>2958465||t<0)return null;var n=t|0,a=Math.floor(86400*(t-n)),A=0,o=[],s={D:n,T:a,u:86400*(t-n)-a,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),e&&e.date1904&&(n+=1462),s.u>.9999&&(s.u=0,++a==86400&&(s.T=a=0,++n,++s.D)),n===60)o=r?[1317,10,29]:[1900,2,29],A=3;else if(n===0)o=r?[1317,8,29]:[1900,1,0],A=6;else{n>60&&--n;var l=new Date(1900,0,1);l.setDate(l.getDate()+n-1),o=[l.getFullYear(),l.getMonth()+1,l.getDate()],A=l.getDay(),n<60&&(A=(A+6)%7),r&&(A=pN(l,o))}return s.y=o[0],s.m=o[1],s.d=o[2],s.S=a%60,a=Math.floor(a/60),s.M=a%60,a=Math.floor(a/60),s.H=a,s.q=A,s}var Kv=new Date(1899,11,31,0,0,0),cN=Kv.getTime(),uN=new Date(1900,2,1,0,0,0);function Gv(t,e){var r=t.getTime();return e?r-=1461*24*60*60*1e3:t>=uN&&(r+=24*60*60*1e3),(r-(cN+(t.getTimezoneOffset()-Kv.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function ag(t){return t.indexOf(".")==-1?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function hN(t){return t.indexOf("E")==-1?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function fN(t){var e=t<0?12:11,r=ag(t.toFixed(12));return r.length<=e||(r=t.toPrecision(10),r.length<=e)?r:t.toExponential(5)}function dN(t){var e=ag(t.toFixed(11));return e.length>(t<0?12:11)||e==="0"||e==="-0"?t.toPrecision(6):e}function gN(t){var e=Math.floor(Math.log(Math.abs(t))*Math.LOG10E),r;return e>=-4&&e<=-1?r=t.toPrecision(10+e):Math.abs(e)<=9?r=fN(t):e===10?r=t.toFixed(10).substr(0,12):r=dN(t),ag(hN(r.toUpperCase()))}function Ag(t,e){switch(typeof t){case"string":return t;case"boolean":return t?"TRUE":"FALSE";case"number":return(t|0)===t?t.toString(10):gN(t);case"undefined":return"";case"object":if(t==null)return"";if(t instanceof Date)return Di(14,Gv(t,e&&e.date1904),e)}throw new Error("unsupported value in General format: "+t)}function pN(t,e){e[0]-=581;var r=t.getDay();return t<60&&(r=(r+6)%7),r}function mN(t,e,r,n){var a="",A=0,o=0,s=r.y,l,c=0;switch(t){case 98:s=r.y+543;case 121:switch(e.length){case 1:case 2:l=s%100,c=2;break;default:l=s%1e4,c=4;break}break;case 109:switch(e.length){case 1:case 2:l=r.m,c=e.length;break;case 3:return ng[r.m-1][1];case 5:return ng[r.m-1][0];default:return ng[r.m-1][2]}break;case 100:switch(e.length){case 1:case 2:l=r.d,c=e.length;break;case 3:return $v[r.q][0];default:return $v[r.q][1]}break;case 104:switch(e.length){case 1:case 2:l=1+(r.H+11)%12,c=e.length;break;default:throw"bad hour format: "+e}break;case 72:switch(e.length){case 1:case 2:l=r.H,c=e.length;break;default:throw"bad hour format: "+e}break;case 77:switch(e.length){case 1:case 2:l=r.M,c=e.length;break;default:throw"bad minute format: "+e}break;case 115:if(e!="s"&&e!="ss"&&e!=".0"&&e!=".00"&&e!=".000")throw"bad second format: "+e;return r.u===0&&(e=="s"||e=="ss")?qa(r.S,e.length):(n>=2?o=n===3?1e3:100:o=n===1?10:1,A=Math.round(o*(r.S+r.u)),A>=60*o&&(A=0),e==="s"?A===0?"0":""+A/o:(a=qa(A,2+n),e==="ss"?a.substr(0,2):"."+a.substr(2,e.length-1)));case 90:switch(e){case"[h]":case"[hh]":l=r.D*24+r.H;break;case"[m]":case"[mm]":l=(r.D*24+r.H)*60+r.M;break;case"[s]":case"[ss]":l=((r.D*24+r.H)*60+r.M)*60+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+e}c=e.length===3?1:2;break;case 101:l=s,c=1;break}var u=c>0?qa(l,c):"";return u}function Ii(t){var e=3;if(t.length<=e)return t;for(var r=t.length%e,n=t.substr(0,r);r!=t.length;r+=e)n+=(n.length>0?",":"")+t.substr(r,e);return n}var jv=/%/g;function yN(t,e,r){var n=e.replace(jv,""),a=e.length-n.length;return XA(t,n,r*Math.pow(10,2*a))+Tr("%",a)}function vN(t,e,r){for(var n=e.length-1;e.charCodeAt(n-1)===44;)--n;return XA(t,e.substr(0,n),r/Math.pow(10,3*(e.length-n)))}function Wv(t,e){var r,n=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(e==0)return"0.0E+0";if(e<0)return"-"+Wv(t,-e);var a=t.indexOf(".");a===-1&&(a=t.indexOf("E"));var A=Math.floor(Math.log(e)*Math.LOG10E)%a;if(A<0&&(A+=a),r=(e/Math.pow(10,A)).toPrecision(n+1+(a+A)%a),r.indexOf("e")===-1){var o=Math.floor(Math.log(e)*Math.LOG10E);for(r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(o-r.length+A):r+="E+"+(o-A);r.substr(0,2)==="0.";)r=r.charAt(0)+r.substr(2,a)+"."+r.substr(2+a),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,l,c,u){return l+c+u.substr(0,(a+A)%a)+"."+u.substr(A)+"E"})}else r=e.toExponential(n);return t.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),t.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var Xv=/# (\?+)( ?)\/( ?)(\d+)/;function wN(t,e,r){var n=parseInt(t[4],10),a=Math.round(e*n),A=Math.floor(a/n),o=a-A*n,s=n;return r+(A===0?"":""+A)+" "+(o===0?Tr(" ",t[1].length+1+t[4].length):rg(o,t[1].length)+t[2]+"/"+t[3]+qa(s,t[4].length))}function BN(t,e,r){return r+(e===0?"":""+e)+Tr(" ",t[1].length+2+t[4].length)}var qv=/^#*0*\.([0#]+)/,Yv=/\).*[0#]/,Jv=/\(###\) ###\\?-####/;function Kn(t){for(var e="",r,n=0;n!=t.length;++n)switch(r=t.charCodeAt(n)){case 35:break;case 63:e+=" ";break;case 48:e+="0";break;default:e+=String.fromCharCode(r)}return e}function Zv(t,e){var r=Math.pow(10,e);return""+Math.round(t*r)/r}function ew(t,e){var r=t-Math.floor(t),n=Math.pow(10,e);return e<(""+Math.round(r*n)).length?0:Math.round(r*n)}function xN(t,e){return e<(""+Math.round((t-Math.floor(t))*Math.pow(10,e))).length?1:0}function bN(t){return t<2147483647&&t>-2147483648?""+(t>=0?t|0:t-1|0):""+Math.floor(t)}function Ua(t,e,r){if(t.charCodeAt(0)===40&&!e.match(Yv)){var n=e.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?Ua("n",n,r):"("+Ua("n",n,-r)+")"}if(e.charCodeAt(e.length-1)===44)return vN(t,e,r);if(e.indexOf("%")!==-1)return yN(t,e,r);if(e.indexOf("E")!==-1)return Wv(e,r);if(e.charCodeAt(0)===36)return"$"+Ua(t,e.substr(e.charAt(1)==" "?2:1),r);var a,A,o,s,l=Math.abs(r),c=r<0?"-":"";if(e.match(/^00+$/))return c+ys(l,e.length);if(e.match(/^[#?]+$/))return a=ys(r,0),a==="0"&&(a=""),a.length>e.length?a:Kn(e.substr(0,e.length-a.length))+a;if(A=e.match(Xv))return wN(A,l,c);if(e.match(/^#+0+$/))return c+ys(l,e.length-e.indexOf("0"));if(A=e.match(qv))return a=Zv(r,A[1].length).replace(/^([^\.]+)$/,"$1."+Kn(A[1])).replace(/\.$/,"."+Kn(A[1])).replace(/\.(\d*)$/,function(w,f){return"."+f+Tr("0",Kn(A[1]).length-f.length)}),e.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(e=e.replace(/^#+([0.])/,"$1"),A=e.match(/^(0*)\.(#*)$/))return c+Zv(l,A[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,A[1].length?"0.":".");if(A=e.match(/^#{1,3},##0(\.?)$/))return c+Ii(ys(l,0));if(A=e.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Ua(t,e,-r):Ii(""+(Math.floor(r)+xN(r,A[1].length)))+"."+qa(ew(r,A[1].length),A[1].length);if(A=e.match(/^#,#*,#0/))return Ua(t,e.replace(/^#,#*,/,""),r);if(A=e.match(/^([0#]+)(\\?-([0#]+))+$/))return a=ms(Ua(t,e.replace(/[\\-]/g,""),r)),o=0,ms(ms(e.replace(/\\/g,"")).replace(/[0#]/g,function(w){return o<a.length?a.charAt(o++):w==="0"?"0":""}));if(e.match(Jv))return a=Ua(t,"##########",r),"("+a.substr(0,3)+") "+a.substr(3,3)+"-"+a.substr(6);var u="";if(A=e.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(A[4].length,7),s=xh(l,Math.pow(10,o)-1,!1),a=""+c,u=XA("n",A[1],s[1]),u.charAt(u.length-1)==" "&&(u=u.substr(0,u.length-1)+"0"),a+=u+A[2]+"/"+A[3],u=wh(s[2],o),u.length<A[4].length&&(u=Kn(A[4].substr(A[4].length-u.length))+u),a+=u,a;if(A=e.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(A[1].length,A[4].length),7),s=xh(l,Math.pow(10,o)-1,!0),c+(s[0]||(s[1]?"":"0"))+" "+(s[1]?rg(s[1],o)+A[2]+"/"+A[3]+wh(s[2],o):Tr(" ",2*o+1+A[2].length+A[3].length));if(A=e.match(/^[#0?]+$/))return a=ys(r,0),e.length<=a.length?a:Kn(e.substr(0,e.length-a.length))+a;if(A=e.match(/^([#0?]+)\.([#0]+)$/)){a=""+r.toFixed(Math.min(A[2].length,10)).replace(/([^0])0+$/,"$1"),o=a.indexOf(".");var p=e.indexOf(".")-o,h=e.length-a.length-p;return Kn(e.substr(0,p)+a+e.substr(e.length-h))}if(A=e.match(/^00,000\.([#0]*0)$/))return o=ew(r,A[1].length),r<0?"-"+Ua(t,e,-r):Ii(bN(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(w){return"00,"+(w.length<3?qa(0,3-w.length):"")+w})+"."+qa(o,A[1].length);switch(e){case"###,##0.00":return Ua(t,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var d=Ii(ys(l,0));return d!=="0"?c+d:"";case"###,###.00":return Ua(t,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return Ua(t,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+e+"|")}function CN(t,e,r){for(var n=e.length-1;e.charCodeAt(n-1)===44;)--n;return XA(t,e.substr(0,n),r/Math.pow(10,3*(e.length-n)))}function EN(t,e,r){var n=e.replace(jv,""),a=e.length-n.length;return XA(t,n,r*Math.pow(10,2*a))+Tr("%",a)}function tw(t,e){var r,n=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(e==0)return"0.0E+0";if(e<0)return"-"+tw(t,-e);var a=t.indexOf(".");a===-1&&(a=t.indexOf("E"));var A=Math.floor(Math.log(e)*Math.LOG10E)%a;if(A<0&&(A+=a),r=(e/Math.pow(10,A)).toPrecision(n+1+(a+A)%a),!r.match(/[Ee]/)){var o=Math.floor(Math.log(e)*Math.LOG10E);r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(o-r.length+A):r+="E+"+(o-A),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,l,c,u){return l+c+u.substr(0,(a+A)%a)+"."+u.substr(A)+"E"})}else r=e.toExponential(n);return t.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),t.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}function FA(t,e,r){if(t.charCodeAt(0)===40&&!e.match(Yv)){var n=e.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?FA("n",n,r):"("+FA("n",n,-r)+")"}if(e.charCodeAt(e.length-1)===44)return CN(t,e,r);if(e.indexOf("%")!==-1)return EN(t,e,r);if(e.indexOf("E")!==-1)return tw(e,r);if(e.charCodeAt(0)===36)return"$"+FA(t,e.substr(e.charAt(1)==" "?2:1),r);var a,A,o,s,l=Math.abs(r),c=r<0?"-":"";if(e.match(/^00+$/))return c+qa(l,e.length);if(e.match(/^[#?]+$/))return a=""+r,r===0&&(a=""),a.length>e.length?a:Kn(e.substr(0,e.length-a.length))+a;if(A=e.match(Xv))return BN(A,l,c);if(e.match(/^#+0+$/))return c+qa(l,e.length-e.indexOf("0"));if(A=e.match(qv))return a=(""+r).replace(/^([^\.]+)$/,"$1."+Kn(A[1])).replace(/\.$/,"."+Kn(A[1])),a=a.replace(/\.(\d*)$/,function(w,f){return"."+f+Tr("0",Kn(A[1]).length-f.length)}),e.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(e=e.replace(/^#+([0.])/,"$1"),A=e.match(/^(0*)\.(#*)$/))return c+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,A[1].length?"0.":".");if(A=e.match(/^#{1,3},##0(\.?)$/))return c+Ii(""+l);if(A=e.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+FA(t,e,-r):Ii(""+r)+"."+Tr("0",A[1].length);if(A=e.match(/^#,#*,#0/))return FA(t,e.replace(/^#,#*,/,""),r);if(A=e.match(/^([0#]+)(\\?-([0#]+))+$/))return a=ms(FA(t,e.replace(/[\\-]/g,""),r)),o=0,ms(ms(e.replace(/\\/g,"")).replace(/[0#]/g,function(w){return o<a.length?a.charAt(o++):w==="0"?"0":""}));if(e.match(Jv))return a=FA(t,"##########",r),"("+a.substr(0,3)+") "+a.substr(3,3)+"-"+a.substr(6);var u="";if(A=e.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(A[4].length,7),s=xh(l,Math.pow(10,o)-1,!1),a=""+c,u=XA("n",A[1],s[1]),u.charAt(u.length-1)==" "&&(u=u.substr(0,u.length-1)+"0"),a+=u+A[2]+"/"+A[3],u=wh(s[2],o),u.length<A[4].length&&(u=Kn(A[4].substr(A[4].length-u.length))+u),a+=u,a;if(A=e.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(A[1].length,A[4].length),7),s=xh(l,Math.pow(10,o)-1,!0),c+(s[0]||(s[1]?"":"0"))+" "+(s[1]?rg(s[1],o)+A[2]+"/"+A[3]+wh(s[2],o):Tr(" ",2*o+1+A[2].length+A[3].length));if(A=e.match(/^[#0?]+$/))return a=""+r,e.length<=a.length?a:Kn(e.substr(0,e.length-a.length))+a;if(A=e.match(/^([#0]+)\.([#0]+)$/)){a=""+r.toFixed(Math.min(A[2].length,10)).replace(/([^0])0+$/,"$1"),o=a.indexOf(".");var p=e.indexOf(".")-o,h=e.length-a.length-p;return Kn(e.substr(0,p)+a+e.substr(e.length-h))}if(A=e.match(/^00,000\.([#0]*0)$/))return r<0?"-"+FA(t,e,-r):Ii(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(w){return"00,"+(w.length<3?qa(0,3-w.length):"")+w})+"."+qa(0,A[1].length);switch(e){case"###,###":case"##,###":case"#,###":var d=Ii(""+l);return d!=="0"?c+d:"";default:if(e.match(/\.[0#?]*$/))return FA(t,e.slice(0,e.lastIndexOf(".")),r)+Kn(e.slice(e.lastIndexOf(".")))}throw new Error("unsupported format |"+e+"|")}function XA(t,e,r){return(r|0)===r?FA(t,e,r):Ua(t,e,r)}function _N(t){for(var e=[],r=!1,n=0,a=0;n<t.length;++n)switch(t.charCodeAt(n)){case 34:r=!r;break;case 95:case 42:case 92:++n;break;case 59:e[e.length]=t.substr(a,n-a),a=n+1}if(e[e.length]=t.substr(a),r===!0)throw new Error("Format |"+t+"| unterminated string ");return e}var rw=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function nw(t){for(var e=0,r="",n="";e<t.length;)switch(r=t.charAt(e)){case"G":Bh(t,e)&&(e+=6),e++;break;case'"':for(;t.charCodeAt(++e)!==34&&e<t.length;);++e;break;case"\\":e+=2;break;case"_":e+=2;break;case"@":++e;break;case"B":case"b":if(t.charAt(e+1)==="1"||t.charAt(e+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if(t.substr(e,3).toUpperCase()==="A/P"||t.substr(e,5).toUpperCase()==="AM/PM"||t.substr(e,5).toUpperCase()==="上午/下午")return!0;++e;break;case"[":for(n=r;t.charAt(e++)!=="]"&&e<t.length;)n+=t.charAt(e);if(n.match(rw))return!0;break;case".":case"0":case"#":for(;e<t.length&&("0#?.,E+-%".indexOf(r=t.charAt(++e))>-1||r=="\\"&&t.charAt(e+1)=="-"&&"0#".indexOf(t.charAt(e+2))>-1););break;case"?":for(;t.charAt(++e)===r;);break;case"*":++e,(t.charAt(e)==" "||t.charAt(e)=="*")&&++e;break;case"(":case")":++e;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;e<t.length&&"0123456789".indexOf(t.charAt(++e))>-1;);break;case" ":++e;break;default:++e;break}return!1}function FN(t,e,r,n){for(var a=[],A="",o=0,s="",l="t",c,u,p,h="H";o<t.length;)switch(s=t.charAt(o)){case"G":if(!Bh(t,o))throw new Error("unrecognized character "+s+" in "+t);a[a.length]={t:"G",v:"General"},o+=7;break;case'"':for(A="";(p=t.charCodeAt(++o))!==34&&o<t.length;)A+=String.fromCharCode(p);a[a.length]={t:"t",v:A},++o;break;case"\\":var d=t.charAt(++o),w=d==="("||d===")"?d:"t";a[a.length]={t:w,v:d},++o;break;case"_":a[a.length]={t:"t",v:" "},o+=2;break;case"@":a[a.length]={t:"T",v:e},++o;break;case"B":case"b":if(t.charAt(o+1)==="1"||t.charAt(o+1)==="2"){if(c==null&&(c=bh(e,r,t.charAt(o+1)==="2"),c==null))return"";a[a.length]={t:"X",v:t.substr(o,2)},l=s,o+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":s=s.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(e<0||c==null&&(c=bh(e,r),c==null))return"";for(A=s;++o<t.length&&t.charAt(o).toLowerCase()===s;)A+=s;s==="m"&&l.toLowerCase()==="h"&&(s="M"),s==="h"&&(s=h),a[a.length]={t:s,v:A},l=s;break;case"A":case"a":case"上":var f={t:s,v:s};if(c==null&&(c=bh(e,r)),t.substr(o,3).toUpperCase()==="A/P"?(c!=null&&(f.v=c.H>=12?"P":"A"),f.t="T",h="h",o+=3):t.substr(o,5).toUpperCase()==="AM/PM"?(c!=null&&(f.v=c.H>=12?"PM":"AM"),f.t="T",o+=5,h="h"):t.substr(o,5).toUpperCase()==="上午/下午"?(c!=null&&(f.v=c.H>=12?"下午":"上午"),f.t="T",o+=5,h="h"):(f.t="t",++o),c==null&&f.t==="T")return"";a[a.length]=f,l=s;break;case"[":for(A=s;t.charAt(o++)!=="]"&&o<t.length;)A+=t.charAt(o);if(A.slice(-1)!=="]")throw'unterminated "[" block: |'+A+"|";if(A.match(rw)){if(c==null&&(c=bh(e,r),c==null))return"";a[a.length]={t:"Z",v:A.toLowerCase()},l=A.charAt(1)}else A.indexOf("$")>-1&&(A=(A.match(/\$([^-\[\]]*)/)||[])[1]||"$",nw(t)||(a[a.length]={t:"t",v:A}));break;case".":if(c!=null){for(A=s;++o<t.length&&(s=t.charAt(o))==="0";)A+=s;a[a.length]={t:"s",v:A};break}case"0":case"#":for(A=s;++o<t.length&&"0#?.,E+-%".indexOf(s=t.charAt(o))>-1;)A+=s;a[a.length]={t:"n",v:A};break;case"?":for(A=s;t.charAt(++o)===s;)A+=s;a[a.length]={t:s,v:A},l=s;break;case"*":++o,(t.charAt(o)==" "||t.charAt(o)=="*")&&++o;break;case"(":case")":a[a.length]={t:n===1?"t":s,v:s},++o;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(A=s;o<t.length&&"0123456789".indexOf(t.charAt(++o))>-1;)A+=t.charAt(o);a[a.length]={t:"D",v:A};break;case" ":a[a.length]={t:s,v:s},++o;break;case"$":a[a.length]={t:"t",v:"$"},++o;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(s)===-1)throw new Error("unrecognized character "+s+" in "+t);a[a.length]={t:"t",v:s},++o;break}var m=0,y=0,F;for(o=a.length-1,l="t";o>=0;--o)switch(a[o].t){case"h":case"H":a[o].t=h,l="h",m<1&&(m=1);break;case"s":(F=a[o].v.match(/\.0+$/))&&(y=Math.max(y,F[0].length-1)),m<3&&(m=3);case"d":case"y":case"M":case"e":l=a[o].t;break;case"m":l==="s"&&(a[o].t="M",m<2&&(m=2));break;case"X":break;case"Z":m<1&&a[o].v.match(/[Hh]/)&&(m=1),m<2&&a[o].v.match(/[Mm]/)&&(m=2),m<3&&a[o].v.match(/[Ss]/)&&(m=3)}switch(m){case 0:break;case 1:c.u>=.5&&(c.u=0,++c.S),c.S>=60&&(c.S=0,++c.M),c.M>=60&&(c.M=0,++c.H);break;case 2:c.u>=.5&&(c.u=0,++c.S),c.S>=60&&(c.S=0,++c.M);break}var N="",D;for(o=0;o<a.length;++o)switch(a[o].t){case"t":case"T":case" ":case"D":break;case"X":a[o].v="",a[o].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":a[o].v=mN(a[o].t.charCodeAt(0),a[o].v,c,y),a[o].t="t";break;case"n":case"?":for(D=o+1;a[D]!=null&&((s=a[D].t)==="?"||s==="D"||(s===" "||s==="t")&&a[D+1]!=null&&(a[D+1].t==="?"||a[D+1].t==="t"&&a[D+1].v==="/")||a[o].t==="("&&(s===" "||s==="n"||s===")")||s==="t"&&(a[D].v==="/"||a[D].v===" "&&a[D+1]!=null&&a[D+1].t=="?"));)a[o].v+=a[D].v,a[D]={v:"",t:";"},++D;N+=a[o].v,o=D-1;break;case"G":a[o].t="t",a[o].v=Ag(e,r);break}var H="",R,U;if(N.length>0){N.charCodeAt(0)==40?(R=e<0&&N.charCodeAt(0)===45?-e:e,U=XA("n",N,R)):(R=e<0&&n>1?-e:e,U=XA("n",N,R),R<0&&a[0]&&a[0].t=="t"&&(U=U.substr(1),a[0].v="-"+a[0].v)),D=U.length-1;var I=a.length;for(o=0;o<a.length;++o)if(a[o]!=null&&a[o].t!="t"&&a[o].v.indexOf(".")>-1){I=o;break}var O=a.length;if(I===a.length&&U.indexOf("E")===-1){for(o=a.length-1;o>=0;--o)a[o]==null||"n?".indexOf(a[o].t)===-1||(D>=a[o].v.length-1?(D-=a[o].v.length,a[o].v=U.substr(D+1,a[o].v.length)):D<0?a[o].v="":(a[o].v=U.substr(0,D+1),D=-1),a[o].t="t",O=o);D>=0&&O<a.length&&(a[O].v=U.substr(0,D+1)+a[O].v)}else if(I!==a.length&&U.indexOf("E")===-1){for(D=U.indexOf(".")-1,o=I;o>=0;--o)if(!(a[o]==null||"n?".indexOf(a[o].t)===-1)){for(u=a[o].v.indexOf(".")>-1&&o===I?a[o].v.indexOf(".")-1:a[o].v.length-1,H=a[o].v.substr(u+1);u>=0;--u)D>=0&&(a[o].v.charAt(u)==="0"||a[o].v.charAt(u)==="#")&&(H=U.charAt(D--)+H);a[o].v=H,a[o].t="t",O=o}for(D>=0&&O<a.length&&(a[O].v=U.substr(0,D+1)+a[O].v),D=U.indexOf(".")+1,o=I;o<a.length;++o)if(!(a[o]==null||"n?(".indexOf(a[o].t)===-1&&o!==I)){for(u=a[o].v.indexOf(".")>-1&&o===I?a[o].v.indexOf(".")+1:0,H=a[o].v.substr(0,u);u<a[o].v.length;++u)D<U.length&&(H+=U.charAt(D++));a[o].v=H,a[o].t="t",O=o}}}for(o=0;o<a.length;++o)a[o]!=null&&"n?".indexOf(a[o].t)>-1&&(R=n>1&&e<0&&o>0&&a[o-1].v==="-"?-e:e,a[o].v=XA(a[o].t,a[o].v,R),a[o].t="t");var q="";for(o=0;o!==a.length;++o)a[o]!=null&&(q+=a[o].v);return q}var aw=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Aw(t,e){if(e==null)return!1;var r=parseFloat(e[2]);switch(e[1]){case"=":if(t==r)return!0;break;case">":if(t>r)return!0;break;case"<":if(t<r)return!0;break;case"<>":if(t!=r)return!0;break;case">=":if(t>=r)return!0;break;case"<=":if(t<=r)return!0;break}return!1}function SN(t,e){var r=_N(t),n=r.length,a=r[n-1].indexOf("@");if(n<4&&a>-1&&--n,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if(typeof e!="number")return[4,r.length===4||a>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=a>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=a>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=a>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break}var A=e>0?r[0]:e<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[n,A];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var o=r[0].match(aw),s=r[1].match(aw);return Aw(e,o)?[n,r[0]]:Aw(e,s)?[n,r[1]]:[n,r[o!=null&&s!=null?2:1]]}return[n,A]}function Di(t,e,r){r==null&&(r={});var n="";switch(typeof t){case"string":t=="m/d/yy"&&r.dateNF?n=r.dateNF:n=t;break;case"number":t==14&&r.dateNF?n=r.dateNF:n=(r.table!=null?r.table:kr)[t],n==null&&(n=r.table&&r.table[zv[t]]||kr[zv[t]]),n==null&&(n=lN[t]||"General");break}if(Bh(n,0))return Ag(e,r);e instanceof Date&&(e=Gv(e,r.date1904));var a=SN(n,e);if(Bh(a[1]))return Ag(e,r);if(e===!0)e="TRUE";else if(e===!1)e="FALSE";else if(e===""||e==null)return"";return FN(a[1],e,r,a[0])}function iw(t,e){if(typeof e!="number"){e=+e||-1;for(var r=0;r<392;++r){if(kr[r]==null){e<0&&(e=r);continue}if(kr[r]==t){e=r;break}}e<0&&(e=391)}return kr[e]=t,e}function Ch(t){for(var e=0;e!=392;++e)t[e]!==void 0&&iw(t[e],e)}function Eh(){kr=sN()}var ow=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function kN(t){var e=typeof t=="number"?kr[t]:t;return e=e.replace(ow,"(\\d+)"),new RegExp("^"+e+"$")}function TN(t,e,r){var n=-1,a=-1,A=-1,o=-1,s=-1,l=-1;(e.match(ow)||[]).forEach(function(p,h){var d=parseInt(r[h+1],10);switch(p.toLowerCase().charAt(0)){case"y":n=d;break;case"d":A=d;break;case"h":o=d;break;case"s":l=d;break;case"m":o>=0?s=d:a=d;break}}),l>=0&&s==-1&&a>=0&&(s=a,a=-1);var c=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(a>=1?a:1)).slice(-2)+"-"+("00"+(A>=1?A:1)).slice(-2);c.length==7&&(c="0"+c),c.length==8&&(c="20"+c);var u=("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return o==-1&&s==-1&&l==-1?c:n==-1&&a==-1&&A==-1?u:c+"T"+u}var NN=function(){var t={};t.version="1.2.0";function e(){for(var U=0,I=new Array(256),O=0;O!=256;++O)U=O,U=U&1?-306674912^U>>>1:U>>>1,U=U&1?-306674912^U>>>1:U>>>1,U=U&1?-306674912^U>>>1:U>>>1,U=U&1?-306674912^U>>>1:U>>>1,U=U&1?-306674912^U>>>1:U>>>1,U=U&1?-306674912^U>>>1:U>>>1,U=U&1?-306674912^U>>>1:U>>>1,U=U&1?-306674912^U>>>1:U>>>1,I[O]=U;return typeof Int32Array<"u"?new Int32Array(I):I}var r=e();function n(U){var I=0,O=0,q=0,T=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(q=0;q!=256;++q)T[q]=U[q];for(q=0;q!=256;++q)for(O=U[q],I=256+q;I<4096;I+=256)O=T[I]=O>>>8^U[O&255];var L=[];for(q=1;q!=16;++q)L[q-1]=typeof Int32Array<"u"?T.subarray(q*256,q*256+256):T.slice(q*256,q*256+256);return L}var a=n(r),A=a[0],o=a[1],s=a[2],l=a[3],c=a[4],u=a[5],p=a[6],h=a[7],d=a[8],w=a[9],f=a[10],m=a[11],y=a[12],F=a[13],N=a[14];function D(U,I){for(var O=I^-1,q=0,T=U.length;q<T;)O=O>>>8^r[(O^U.charCodeAt(q++))&255];return~O}function H(U,I){for(var O=I^-1,q=U.length-15,T=0;T<q;)O=N[U[T++]^O&255]^F[U[T++]^O>>8&255]^y[U[T++]^O>>16&255]^m[U[T++]^O>>>24]^f[U[T++]]^w[U[T++]]^d[U[T++]]^h[U[T++]]^p[U[T++]]^u[U[T++]]^c[U[T++]]^l[U[T++]]^s[U[T++]]^o[U[T++]]^A[U[T++]]^r[U[T++]];for(q+=15;T<q;)O=O>>>8^r[(O^U[T++])&255];return~O}function R(U,I){for(var O=I^-1,q=0,T=U.length,L=0,G=0;q<T;)L=U.charCodeAt(q++),L<128?O=O>>>8^r[(O^L)&255]:L<2048?(O=O>>>8^r[(O^(192|L>>6&31))&255],O=O>>>8^r[(O^(128|L&63))&255]):L>=55296&&L<57344?(L=(L&1023)+64,G=U.charCodeAt(q++)&1023,O=O>>>8^r[(O^(240|L>>8&7))&255],O=O>>>8^r[(O^(128|L>>2&63))&255],O=O>>>8^r[(O^(128|G>>6&15|(L&3)<<4))&255],O=O>>>8^r[(O^(128|G&63))&255]):(O=O>>>8^r[(O^(224|L>>12&15))&255],O=O>>>8^r[(O^(128|L>>6&63))&255],O=O>>>8^r[(O^(128|L&63))&255]);return~O}return t.table=r,t.bstr=D,t.buf=H,t.str=R,t}(),cr=function(){var e={};e.version="1.2.1";function r(V,ie){for(var Z=V.split("/"),ee=ie.split("/"),Ae=0,oe=0,Se=Math.min(Z.length,ee.length);Ae<Se;++Ae){if(oe=Z[Ae].length-ee[Ae].length)return oe;if(Z[Ae]!=ee[Ae])return Z[Ae]<ee[Ae]?-1:1}return Z.length-ee.length}function n(V){if(V.charAt(V.length-1)=="/")return V.slice(0,-1).indexOf("/")===-1?V:n(V.slice(0,-1));var ie=V.lastIndexOf("/");return ie===-1?V:V.slice(0,ie+1)}function a(V){if(V.charAt(V.length-1)=="/")return a(V.slice(0,-1));var ie=V.lastIndexOf("/");return ie===-1?V:V.slice(ie+1)}function A(V,ie){typeof ie=="string"&&(ie=new Date(ie));var Z=ie.getHours();Z=Z<<6|ie.getMinutes(),Z=Z<<5|ie.getSeconds()>>>1,V.write_shift(2,Z);var ee=ie.getFullYear()-1980;ee=ee<<4|ie.getMonth()+1,ee=ee<<5|ie.getDate(),V.write_shift(2,ee)}function o(V){var ie=V.read_shift(2)&65535,Z=V.read_shift(2)&65535,ee=new Date,Ae=Z&31;Z>>>=5;var oe=Z&15;Z>>>=4,ee.setMilliseconds(0),ee.setFullYear(Z+1980),ee.setMonth(oe-1),ee.setDate(Ae);var Se=ie&31;ie>>>=5;var Ie=ie&63;return ie>>>=6,ee.setHours(ie),ee.setMinutes(Ie),ee.setSeconds(Se<<1),ee}function s(V){ya(V,0);for(var ie={},Z=0;V.l<=V.length-4;){var ee=V.read_shift(2),Ae=V.read_shift(2),oe=V.l+Ae,Se={};switch(ee){case 21589:Z=V.read_shift(1),Z&1&&(Se.mtime=V.read_shift(4)),Ae>5&&(Z&2&&(Se.atime=V.read_shift(4)),Z&4&&(Se.ctime=V.read_shift(4))),Se.mtime&&(Se.mt=new Date(Se.mtime*1e3));break}V.l=oe,ie[ee]=Se}return ie}var l;function c(){return l||(l={})}function u(V,ie){if(V[0]==80&&V[1]==75)return Yt(V,ie);if((V[0]|32)==109&&(V[1]|32)==105)return sa(V,ie);if(V.length<512)throw new Error("CFB file size "+V.length+" < 512");var Z=3,ee=512,Ae=0,oe=0,Se=0,Ie=0,Fe=0,pe=[],X=V.slice(0,512);ya(X,0);var we=p(X);switch(Z=we[0],Z){case 3:ee=512;break;case 4:ee=4096;break;case 0:if(we[1]==0)return Yt(V,ie);default:throw new Error("Major Version: Expected 3 or 4 saw "+Z)}ee!==512&&(X=V.slice(0,ee),ya(X,28));var Le=V.slice(0,ee);h(X,Z);var Ke=X.read_shift(4,"i");if(Z===3&&Ke!==0)throw new Error("# Directory Sectors: Expected 0 saw "+Ke);X.l+=4,Se=X.read_shift(4,"i"),X.l+=4,X.chk("00100000","Mini Stream Cutoff Size: "),Ie=X.read_shift(4,"i"),Ae=X.read_shift(4,"i"),Fe=X.read_shift(4,"i"),oe=X.read_shift(4,"i");for(var ze=-1,qe=0;qe<109&&(ze=X.read_shift(4,"i"),!(ze<0));++qe)pe[qe]=ze;var ut=d(V,ee);m(Fe,oe,ut,ee,pe);var zt=F(ut,Se,pe,ee);zt[Se].name="!Directory",Ae>0&&Ie!==G&&(zt[Ie].name="!MiniFAT"),zt[pe[0]].name="!FAT",zt.fat_addrs=pe,zt.ssz=ee;var Et={},Er=[],la=[],DA=[];N(Se,zt,ut,Er,Ae,Et,la,Ie),w(la,DA,Er),Er.shift();var QA={FileIndex:la,FullPaths:DA};return ie&&ie.raw&&(QA.raw={header:Le,sectors:ut}),QA}function p(V){if(V[V.l]==80&&V[V.l+1]==75)return[0,0];V.chk(Y,"Header Signature: "),V.l+=16;var ie=V.read_shift(2,"u");return[V.read_shift(2,"u"),ie]}function h(V,ie){var Z=9;switch(V.l+=2,Z=V.read_shift(2)){case 9:if(ie!=3)throw new Error("Sector Shift: Expected 9 saw "+Z);break;case 12:if(ie!=4)throw new Error("Sector Shift: Expected 12 saw "+Z);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+Z)}V.chk("0600","Mini Sector Shift: "),V.chk("000000000000","Reserved: ")}function d(V,ie){for(var Z=Math.ceil(V.length/ie)-1,ee=[],Ae=1;Ae<Z;++Ae)ee[Ae-1]=V.slice(Ae*ie,(Ae+1)*ie);return ee[Z-1]=V.slice(Z*ie),ee}function w(V,ie,Z){for(var ee=0,Ae=0,oe=0,Se=0,Ie=0,Fe=Z.length,pe=[],X=[];ee<Fe;++ee)pe[ee]=X[ee]=ee,ie[ee]=Z[ee];for(;Ie<X.length;++Ie)ee=X[Ie],Ae=V[ee].L,oe=V[ee].R,Se=V[ee].C,pe[ee]===ee&&(Ae!==-1&&pe[Ae]!==Ae&&(pe[ee]=pe[Ae]),oe!==-1&&pe[oe]!==oe&&(pe[ee]=pe[oe])),Se!==-1&&(pe[Se]=ee),Ae!==-1&&ee!=pe[ee]&&(pe[Ae]=pe[ee],X.lastIndexOf(Ae)<Ie&&X.push(Ae)),oe!==-1&&ee!=pe[ee]&&(pe[oe]=pe[ee],X.lastIndexOf(oe)<Ie&&X.push(oe));for(ee=1;ee<Fe;++ee)pe[ee]===ee&&(oe!==-1&&pe[oe]!==oe?pe[ee]=pe[oe]:Ae!==-1&&pe[Ae]!==Ae&&(pe[ee]=pe[Ae]));for(ee=1;ee<Fe;++ee)if(V[ee].type!==0){if(Ie=ee,Ie!=pe[Ie])do Ie=pe[Ie],ie[ee]=ie[Ie]+"/"+ie[ee];while(Ie!==0&&pe[Ie]!==-1&&Ie!=pe[Ie]);pe[ee]=-1}for(ie[0]+="/",ee=1;ee<Fe;++ee)V[ee].type!==2&&(ie[ee]+="/")}function f(V,ie,Z){for(var ee=V.start,Ae=V.size,oe=[],Se=ee;Z&&Ae>0&&Se>=0;)oe.push(ie.slice(Se*L,Se*L+L)),Ae-=L,Se=vo(Z,Se*4);return oe.length===0?Oe(0):wn(oe).slice(0,V.size)}function m(V,ie,Z,ee,Ae){var oe=G;if(V===G){if(ie!==0)throw new Error("DIFAT chain shorter than expected")}else if(V!==-1){var Se=Z[V],Ie=(ee>>>2)-1;if(!Se)return;for(var Fe=0;Fe<Ie&&(oe=vo(Se,Fe*4))!==G;++Fe)Ae.push(oe);m(vo(Se,ee-4),ie-1,Z,ee,Ae)}}function y(V,ie,Z,ee,Ae){var oe=[],Se=[];Ae||(Ae=[]);var Ie=ee-1,Fe=0,pe=0;for(Fe=ie;Fe>=0;){Ae[Fe]=!0,oe[oe.length]=Fe,Se.push(V[Fe]);var X=Z[Math.floor(Fe*4/ee)];if(pe=Fe*4&Ie,ee<4+pe)throw new Error("FAT boundary crossed: "+Fe+" 4 "+ee);if(!V[X])break;Fe=vo(V[X],pe)}return{nodes:oe,data:ww([Se])}}function F(V,ie,Z,ee){var Ae=V.length,oe=[],Se=[],Ie=[],Fe=[],pe=ee-1,X=0,we=0,Le=0,Ke=0;for(X=0;X<Ae;++X)if(Ie=[],Le=X+ie,Le>=Ae&&(Le-=Ae),!Se[Le]){Fe=[];var ze=[];for(we=Le;we>=0;){ze[we]=!0,Se[we]=!0,Ie[Ie.length]=we,Fe.push(V[we]);var qe=Z[Math.floor(we*4/ee)];if(Ke=we*4&pe,ee<4+Ke)throw new Error("FAT boundary crossed: "+we+" 4 "+ee);if(!V[qe]||(we=vo(V[qe],Ke),ze[we]))break}oe[Le]={nodes:Ie,data:ww([Fe])}}return oe}function N(V,ie,Z,ee,Ae,oe,Se,Ie){for(var Fe=0,pe=ee.length?2:0,X=ie[V].data,we=0,Le=0,Ke;we<X.length;we+=128){var ze=X.slice(we,we+128);ya(ze,64),Le=ze.read_shift(2),Ke=hg(ze,0,Le-pe),ee.push(Ke);var qe={name:Ke,type:ze.read_shift(1),color:ze.read_shift(1),L:ze.read_shift(4,"i"),R:ze.read_shift(4,"i"),C:ze.read_shift(4,"i"),clsid:ze.read_shift(16),state:ze.read_shift(4,"i"),start:0,size:0},ut=ze.read_shift(2)+ze.read_shift(2)+ze.read_shift(2)+ze.read_shift(2);ut!==0&&(qe.ct=D(ze,ze.l-8));var zt=ze.read_shift(2)+ze.read_shift(2)+ze.read_shift(2)+ze.read_shift(2);zt!==0&&(qe.mt=D(ze,ze.l-8)),qe.start=ze.read_shift(4,"i"),qe.size=ze.read_shift(4,"i"),qe.size<0&&qe.start<0&&(qe.size=qe.type=0,qe.start=G,qe.name=""),qe.type===5?(Fe=qe.start,Ae>0&&Fe!==G&&(ie[Fe].name="!StreamData")):qe.size>=4096?(qe.storage="fat",ie[qe.start]===void 0&&(ie[qe.start]=y(Z,qe.start,ie.fat_addrs,ie.ssz)),ie[qe.start].name=qe.name,qe.content=ie[qe.start].data.slice(0,qe.size)):(qe.storage="minifat",qe.size<0?qe.size=0:Fe!==G&&qe.start!==G&&ie[Fe]&&(qe.content=f(qe,ie[Fe].data,(ie[Ie]||{}).data))),qe.content&&ya(qe.content,0),oe[Ke]=qe,Se.push(qe)}}function D(V,ie){return new Date((ma(V,ie+4)/1e7*Math.pow(2,32)+ma(V,ie)/1e7-11644473600)*1e3)}function H(V,ie){return c(),u(l.readFileSync(V),ie)}function R(V,ie){var Z=ie&&ie.type;switch(Z||Jt&&Buffer.isBuffer(V)&&(Z="buffer"),Z||"base64"){case"file":return H(V,ie);case"base64":return u(Xa(jA(V)),ie);case"binary":return u(Xa(V),ie)}return u(V,ie)}function U(V,ie){var Z=ie||{},ee=Z.root||"Root Entry";if(V.FullPaths||(V.FullPaths=[]),V.FileIndex||(V.FileIndex=[]),V.FullPaths.length!==V.FileIndex.length)throw new Error("inconsistent CFB structure");V.FullPaths.length===0&&(V.FullPaths[0]=ee+"/",V.FileIndex[0]={name:ee,type:5}),Z.CLSID&&(V.FileIndex[0].clsid=Z.CLSID),I(V)}function I(V){var ie="Sh33tJ5";if(!cr.find(V,"/"+ie)){var Z=Oe(4);Z[0]=55,Z[1]=Z[3]=50,Z[2]=54,V.FileIndex.push({name:ie,type:2,content:Z,size:4,L:69,R:69,C:69}),V.FullPaths.push(V.FullPaths[0]+ie),O(V)}}function O(V,ie){U(V);for(var Z=!1,ee=!1,Ae=V.FullPaths.length-1;Ae>=0;--Ae){var oe=V.FileIndex[Ae];switch(oe.type){case 0:ee?Z=!0:(V.FileIndex.pop(),V.FullPaths.pop());break;case 1:case 2:case 5:ee=!0,isNaN(oe.R*oe.L*oe.C)&&(Z=!0),oe.R>-1&&oe.L>-1&&oe.R==oe.L&&(Z=!0);break;default:Z=!0;break}}if(!(!Z&&!ie)){var Se=new Date(1987,1,19),Ie=0,Fe=Object.create?Object.create(null):{},pe=[];for(Ae=0;Ae<V.FullPaths.length;++Ae)Fe[V.FullPaths[Ae]]=!0,V.FileIndex[Ae].type!==0&&pe.push([V.FullPaths[Ae],V.FileIndex[Ae]]);for(Ae=0;Ae<pe.length;++Ae){var X=n(pe[Ae][0]);ee=Fe[X],ee||(pe.push([X,{name:a(X).replace("/",""),type:1,clsid:he,ct:Se,mt:Se,content:null}]),Fe[X]=!0)}for(pe.sort(function(Ke,ze){return r(Ke[0],ze[0])}),V.FullPaths=[],V.FileIndex=[],Ae=0;Ae<pe.length;++Ae)V.FullPaths[Ae]=pe[Ae][0],V.FileIndex[Ae]=pe[Ae][1];for(Ae=0;Ae<pe.length;++Ae){var we=V.FileIndex[Ae],Le=V.FullPaths[Ae];if(we.name=a(Le).replace("/",""),we.L=we.R=we.C=-(we.color=1),we.size=we.content?we.content.length:0,we.start=0,we.clsid=we.clsid||he,Ae===0)we.C=pe.length>1?1:-1,we.size=0,we.type=5;else if(Le.slice(-1)=="/"){for(Ie=Ae+1;Ie<pe.length&&n(V.FullPaths[Ie])!=Le;++Ie);for(we.C=Ie>=pe.length?-1:Ie,Ie=Ae+1;Ie<pe.length&&n(V.FullPaths[Ie])!=n(Le);++Ie);we.R=Ie>=pe.length?-1:Ie,we.type=1}else n(V.FullPaths[Ae+1]||"")==n(Le)&&(we.R=Ae+1),we.type=2}}}function q(V,ie){var Z=ie||{};if(Z.fileType=="mad")return gt(V,Z);switch(O(V),Z.fileType){case"zip":return _t(V,Z)}var ee=function(Ke){for(var ze=0,qe=0,ut=0;ut<Ke.FileIndex.length;++ut){var zt=Ke.FileIndex[ut];if(zt.content){var Et=zt.content.length;Et>0&&(Et<4096?ze+=Et+63>>6:qe+=Et+511>>9)}}for(var Er=Ke.FullPaths.length+3>>2,la=ze+7>>3,DA=ze+127>>7,QA=la+qe+Er+DA,cA=QA+127>>7,OA=cA<=109?0:Math.ceil((cA-109)/127);QA+cA+OA+127>>7>cA;)OA=++cA<=109?0:Math.ceil((cA-109)/127);var Ca=[1,OA,cA,DA,Er,qe,ze,0];return Ke.FileIndex[0].size=ze<<6,Ca[7]=(Ke.FileIndex[0].start=Ca[0]+Ca[1]+Ca[2]+Ca[3]+Ca[4]+Ca[5])+(Ca[6]+7>>3),Ca}(V),Ae=Oe(ee[7]<<9),oe=0,Se=0;{for(oe=0;oe<8;++oe)Ae.write_shift(1,se[oe]);for(oe=0;oe<8;++oe)Ae.write_shift(2,0);for(Ae.write_shift(2,62),Ae.write_shift(2,3),Ae.write_shift(2,65534),Ae.write_shift(2,9),Ae.write_shift(2,6),oe=0;oe<3;++oe)Ae.write_shift(2,0);for(Ae.write_shift(4,0),Ae.write_shift(4,ee[2]),Ae.write_shift(4,ee[0]+ee[1]+ee[2]+ee[3]-1),Ae.write_shift(4,0),Ae.write_shift(4,4096),Ae.write_shift(4,ee[3]?ee[0]+ee[1]+ee[2]-1:G),Ae.write_shift(4,ee[3]),Ae.write_shift(-4,ee[1]?ee[0]-1:G),Ae.write_shift(4,ee[1]),oe=0;oe<109;++oe)Ae.write_shift(-4,oe<ee[2]?ee[1]+oe:-1)}if(ee[1])for(Se=0;Se<ee[1];++Se){for(;oe<236+Se*127;++oe)Ae.write_shift(-4,oe<ee[2]?ee[1]+oe:-1);Ae.write_shift(-4,Se===ee[1]-1?G:Se+1)}var Ie=function(Ke){for(Se+=Ke;oe<Se-1;++oe)Ae.write_shift(-4,oe+1);Ke&&(++oe,Ae.write_shift(-4,G))};for(Se=oe=0,Se+=ee[1];oe<Se;++oe)Ae.write_shift(-4,ge.DIFSECT);for(Se+=ee[2];oe<Se;++oe)Ae.write_shift(-4,ge.FATSECT);Ie(ee[3]),Ie(ee[4]);for(var Fe=0,pe=0,X=V.FileIndex[0];Fe<V.FileIndex.length;++Fe)X=V.FileIndex[Fe],X.content&&(pe=X.content.length,!(pe<4096)&&(X.start=Se,Ie(pe+511>>9)));for(Ie(ee[6]+7>>3);Ae.l&511;)Ae.write_shift(-4,ge.ENDOFCHAIN);for(Se=oe=0,Fe=0;Fe<V.FileIndex.length;++Fe)X=V.FileIndex[Fe],X.content&&(pe=X.content.length,!(!pe||pe>=4096)&&(X.start=Se,Ie(pe+63>>6)));for(;Ae.l&511;)Ae.write_shift(-4,ge.ENDOFCHAIN);for(oe=0;oe<ee[4]<<2;++oe){var we=V.FullPaths[oe];if(!we||we.length===0){for(Fe=0;Fe<17;++Fe)Ae.write_shift(4,0);for(Fe=0;Fe<3;++Fe)Ae.write_shift(4,-1);for(Fe=0;Fe<12;++Fe)Ae.write_shift(4,0);continue}X=V.FileIndex[oe],oe===0&&(X.start=X.size?X.start-1:G);var Le=oe===0&&Z.root||X.name;if(pe=2*(Le.length+1),Ae.write_shift(64,Le,"utf16le"),Ae.write_shift(2,pe),Ae.write_shift(1,X.type),Ae.write_shift(1,X.color),Ae.write_shift(-4,X.L),Ae.write_shift(-4,X.R),Ae.write_shift(-4,X.C),X.clsid)Ae.write_shift(16,X.clsid,"hex");else for(Fe=0;Fe<4;++Fe)Ae.write_shift(4,0);Ae.write_shift(4,X.state||0),Ae.write_shift(4,0),Ae.write_shift(4,0),Ae.write_shift(4,0),Ae.write_shift(4,0),Ae.write_shift(4,X.start),Ae.write_shift(4,X.size),Ae.write_shift(4,0)}for(oe=1;oe<V.FileIndex.length;++oe)if(X=V.FileIndex[oe],X.size>=4096)if(Ae.l=X.start+1<<9,Jt&&Buffer.isBuffer(X.content))X.content.copy(Ae,Ae.l,0,X.size),Ae.l+=X.size+511&-512;else{for(Fe=0;Fe<X.size;++Fe)Ae.write_shift(1,X.content[Fe]);for(;Fe&511;++Fe)Ae.write_shift(1,0)}for(oe=1;oe<V.FileIndex.length;++oe)if(X=V.FileIndex[oe],X.size>0&&X.size<4096)if(Jt&&Buffer.isBuffer(X.content))X.content.copy(Ae,Ae.l,0,X.size),Ae.l+=X.size+63&-64;else{for(Fe=0;Fe<X.size;++Fe)Ae.write_shift(1,X.content[Fe]);for(;Fe&63;++Fe)Ae.write_shift(1,0)}if(Jt)Ae.l=Ae.length;else for(;Ae.l<Ae.length;)Ae.write_shift(1,0);return Ae}function T(V,ie){var Z=V.FullPaths.map(function(Fe){return Fe.toUpperCase()}),ee=Z.map(function(Fe){var pe=Fe.split("/");return pe[pe.length-(Fe.slice(-1)=="/"?2:1)]}),Ae=!1;ie.charCodeAt(0)===47?(Ae=!0,ie=Z[0].slice(0,-1)+ie):Ae=ie.indexOf("/")!==-1;var oe=ie.toUpperCase(),Se=Ae===!0?Z.indexOf(oe):ee.indexOf(oe);if(Se!==-1)return V.FileIndex[Se];var Ie=!oe.match(vh);for(oe=oe.replace(Gl,""),Ie&&(oe=oe.replace(vh,"!")),Se=0;Se<Z.length;++Se)if((Ie?Z[Se].replace(vh,"!"):Z[Se]).replace(Gl,"")==oe||(Ie?ee[Se].replace(vh,"!"):ee[Se]).replace(Gl,"")==oe)return V.FileIndex[Se];return null}var L=64,G=-2,Y="d0cf11e0a1b11ae1",se=[208,207,17,224,161,177,26,225],he="00000000000000000000000000000000",ge={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:G,FREESECT:-1,HEADER_SIGNATURE:Y,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:he,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function re(V,ie,Z){c();var ee=q(V,Z);l.writeFileSync(ie,ee)}function le(V){for(var ie=new Array(V.length),Z=0;Z<V.length;++Z)ie[Z]=String.fromCharCode(V[Z]);return ie.join("")}function fe(V,ie){var Z=q(V,ie);switch(ie&&ie.type||"buffer"){case"file":return c(),l.writeFileSync(ie.filename,Z),Z;case"binary":return typeof Z=="string"?Z:le(Z);case"base64":return zl(typeof Z=="string"?Z:le(Z));case"buffer":if(Jt)return Buffer.isBuffer(Z)?Z:WA(Z);case"array":return typeof Z=="string"?Xa(Z):Z}return Z}var Ue;function b(V){try{var ie=V.InflateRaw,Z=new ie;if(Z._processChunk(new Uint8Array([3,0]),Z._finishFlushFlag),Z.bytesRead)Ue=V;else throw new Error("zlib does not expose bytesRead")}catch(ee){console.error("cannot use native zlib: "+(ee.message||ee))}}function _(V,ie){if(!Ue)return Rt(V,ie);var Z=Ue.InflateRaw,ee=new Z,Ae=ee._processChunk(V.slice(V.l),ee._finishFlushFlag);return V.l+=ee.bytesRead,Ae}function B(V){return Ue?Ue.deflateRawSync(V):bt(V)}var x=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],Q=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function W(V){var ie=(V<<1|V<<11)&139536|(V<<5|V<<15)&558144;return(ie>>16|ie>>8|ie)&255}for(var ue=typeof Uint8Array<"u",Ce=ue?new Uint8Array(256):[],de=0;de<256;++de)Ce[de]=W(de);function ke(V,ie){var Z=Ce[V&255];return ie<=8?Z>>>8-ie:(Z=Z<<8|Ce[V>>8&255],ie<=16?Z>>>16-ie:(Z=Z<<8|Ce[V>>16&255],Z>>>24-ie))}function ne(V,ie){var Z=ie&7,ee=ie>>>3;return(V[ee]|(Z<=6?0:V[ee+1]<<8))>>>Z&3}function Ee(V,ie){var Z=ie&7,ee=ie>>>3;return(V[ee]|(Z<=5?0:V[ee+1]<<8))>>>Z&7}function xe(V,ie){var Z=ie&7,ee=ie>>>3;return(V[ee]|(Z<=4?0:V[ee+1]<<8))>>>Z&15}function te(V,ie){var Z=ie&7,ee=ie>>>3;return(V[ee]|(Z<=3?0:V[ee+1]<<8))>>>Z&31}function Pe(V,ie){var Z=ie&7,ee=ie>>>3;return(V[ee]|(Z<=1?0:V[ee+1]<<8))>>>Z&127}function rt(V,ie,Z){var ee=ie&7,Ae=ie>>>3,oe=(1<<Z)-1,Se=V[Ae]>>>ee;return Z<8-ee||(Se|=V[Ae+1]<<8-ee,Z<16-ee)||(Se|=V[Ae+2]<<16-ee,Z<24-ee)||(Se|=V[Ae+3]<<24-ee),Se&oe}function Ve(V,ie,Z){var ee=ie&7,Ae=ie>>>3;return ee<=5?V[Ae]|=(Z&7)<<ee:(V[Ae]|=Z<<ee&255,V[Ae+1]=(Z&7)>>8-ee),ie+3}function We(V,ie,Z){var ee=ie&7,Ae=ie>>>3;return Z=(Z&1)<<ee,V[Ae]|=Z,ie+1}function Ye(V,ie,Z){var ee=ie&7,Ae=ie>>>3;return Z<<=ee,V[Ae]|=Z&255,Z>>>=8,V[Ae+1]=Z,ie+8}function Je(V,ie,Z){var ee=ie&7,Ae=ie>>>3;return Z<<=ee,V[Ae]|=Z&255,Z>>>=8,V[Ae+1]=Z&255,V[Ae+2]=Z>>>8,ie+16}function ot(V,ie){var Z=V.length,ee=2*Z>ie?2*Z:ie+5,Ae=0;if(Z>=ie)return V;if(Jt){var oe=Hv(ee);if(V.copy)V.copy(oe);else for(;Ae<V.length;++Ae)oe[Ae]=V[Ae];return oe}else if(ue){var Se=new Uint8Array(ee);if(Se.set)Se.set(V);else for(;Ae<Z;++Ae)Se[Ae]=V[Ae];return Se}return V.length=ee,V}function at(V){for(var ie=new Array(V),Z=0;Z<V;++Z)ie[Z]=0;return ie}function ft(V,ie,Z){var ee=1,Ae=0,oe=0,Se=0,Ie=0,Fe=V.length,pe=ue?new Uint16Array(32):at(32);for(oe=0;oe<32;++oe)pe[oe]=0;for(oe=Fe;oe<Z;++oe)V[oe]=0;Fe=V.length;var X=ue?new Uint16Array(Fe):at(Fe);for(oe=0;oe<Fe;++oe)pe[Ae=V[oe]]++,ee<Ae&&(ee=Ae),X[oe]=0;for(pe[0]=0,oe=1;oe<=ee;++oe)pe[oe+16]=Ie=Ie+pe[oe-1]<<1;for(oe=0;oe<Fe;++oe)Ie=V[oe],Ie!=0&&(X[oe]=pe[Ie+16]++);var we=0;for(oe=0;oe<Fe;++oe)if(we=V[oe],we!=0)for(Ie=ke(X[oe],ee)>>ee-we,Se=(1<<ee+4-we)-1;Se>=0;--Se)ie[Ie|Se<<we]=we&15|oe<<4;return ee}var vt=ue?new Uint16Array(512):at(512),kt=ue?new Uint16Array(32):at(32);if(!ue){for(var Nt=0;Nt<512;++Nt)vt[Nt]=0;for(Nt=0;Nt<32;++Nt)kt[Nt]=0}(function(){for(var V=[],ie=0;ie<32;ie++)V.push(5);ft(V,kt,32);var Z=[];for(ie=0;ie<=143;ie++)Z.push(8);for(;ie<=255;ie++)Z.push(9);for(;ie<=279;ie++)Z.push(7);for(;ie<=287;ie++)Z.push(8);ft(Z,vt,288)})();var dt=function(){for(var ie=ue?new Uint8Array(32768):[],Z=0,ee=0;Z<Q.length-1;++Z)for(;ee<Q[Z+1];++ee)ie[ee]=Z;for(;ee<32768;++ee)ie[ee]=29;var Ae=ue?new Uint8Array(259):[];for(Z=0,ee=0;Z<S.length-1;++Z)for(;ee<S[Z+1];++ee)Ae[ee]=Z;function oe(Ie,Fe){for(var pe=0;pe<Ie.length;){var X=Math.min(65535,Ie.length-pe),we=pe+X==Ie.length;for(Fe.write_shift(1,+we),Fe.write_shift(2,X),Fe.write_shift(2,~X&65535);X-- >0;)Fe[Fe.l++]=Ie[pe++]}return Fe.l}function Se(Ie,Fe){for(var pe=0,X=0,we=ue?new Uint16Array(32768):[];X<Ie.length;){var Le=Math.min(65535,Ie.length-X);if(Le<10){for(pe=Ve(Fe,pe,+(X+Le==Ie.length)),pe&7&&(pe+=8-(pe&7)),Fe.l=pe/8|0,Fe.write_shift(2,Le),Fe.write_shift(2,~Le&65535);Le-- >0;)Fe[Fe.l++]=Ie[X++];pe=Fe.l*8;continue}pe=Ve(Fe,pe,+(X+Le==Ie.length)+2);for(var Ke=0;Le-- >0;){var ze=Ie[X];Ke=(Ke<<5^ze)&32767;var qe=-1,ut=0;if((qe=we[Ke])&&(qe|=X&-32768,qe>X&&(qe-=32768),qe<X))for(;Ie[qe+ut]==Ie[X+ut]&&ut<250;)++ut;if(ut>2){ze=Ae[ut],ze<=22?pe=Ye(Fe,pe,Ce[ze+1]>>1)-1:(Ye(Fe,pe,3),pe+=5,Ye(Fe,pe,Ce[ze-23]>>5),pe+=3);var zt=ze<8?0:ze-4>>2;zt>0&&(Je(Fe,pe,ut-S[ze]),pe+=zt),ze=ie[X-qe],pe=Ye(Fe,pe,Ce[ze]>>3),pe-=3;var Et=ze<4?0:ze-2>>1;Et>0&&(Je(Fe,pe,X-qe-Q[ze]),pe+=Et);for(var Er=0;Er<ut;++Er)we[Ke]=X&32767,Ke=(Ke<<5^Ie[X])&32767,++X;Le-=ut-1}else ze<=143?ze=ze+48:pe=We(Fe,pe,1),pe=Ye(Fe,pe,Ce[ze]),we[Ke]=X&32767,++X}pe=Ye(Fe,pe,0)-1}return Fe.l=(pe+7)/8|0,Fe.l}return function(Fe,pe){return Fe.length<8?oe(Fe,pe):Se(Fe,pe)}}();function bt(V){var ie=Oe(50+Math.floor(V.length*1.1)),Z=dt(V,ie);return ie.slice(0,Z)}var tt=ue?new Uint16Array(32768):at(32768),ir=ue?new Uint16Array(32768):at(32768),Lt=ue?new Uint16Array(128):at(128),fr=1,Qt=1;function Kt(V,ie){var Z=te(V,ie)+257;ie+=5;var ee=te(V,ie)+1;ie+=5;var Ae=xe(V,ie)+4;ie+=4;for(var oe=0,Se=ue?new Uint8Array(19):at(19),Ie=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Fe=1,pe=ue?new Uint8Array(8):at(8),X=ue?new Uint8Array(8):at(8),we=Se.length,Le=0;Le<Ae;++Le)Se[x[Le]]=oe=Ee(V,ie),Fe<oe&&(Fe=oe),pe[oe]++,ie+=3;var Ke=0;for(pe[0]=0,Le=1;Le<=Fe;++Le)X[Le]=Ke=Ke+pe[Le-1]<<1;for(Le=0;Le<we;++Le)(Ke=Se[Le])!=0&&(Ie[Le]=X[Ke]++);var ze=0;for(Le=0;Le<we;++Le)if(ze=Se[Le],ze!=0){Ke=Ce[Ie[Le]]>>8-ze;for(var qe=(1<<7-ze)-1;qe>=0;--qe)Lt[Ke|qe<<ze]=ze&7|Le<<3}var ut=[];for(Fe=1;ut.length<Z+ee;)switch(Ke=Lt[Pe(V,ie)],ie+=Ke&7,Ke>>>=3){case 16:for(oe=3+ne(V,ie),ie+=2,Ke=ut[ut.length-1];oe-- >0;)ut.push(Ke);break;case 17:for(oe=3+Ee(V,ie),ie+=3;oe-- >0;)ut.push(0);break;case 18:for(oe=11+Pe(V,ie),ie+=7;oe-- >0;)ut.push(0);break;default:ut.push(Ke),Fe<Ke&&(Fe=Ke);break}var zt=ut.slice(0,Z),Et=ut.slice(Z);for(Le=Z;Le<286;++Le)zt[Le]=0;for(Le=ee;Le<30;++Le)Et[Le]=0;return fr=ft(zt,tt,286),Qt=ft(Et,ir,30),ie}function Zr(V,ie){if(V[0]==3&&!(V[1]&3))return[yo(ie),2];for(var Z=0,ee=0,Ae=Hv(ie||1<<18),oe=0,Se=Ae.length>>>0,Ie=0,Fe=0;!(ee&1);){if(ee=Ee(V,Z),Z+=3,ee>>>1)ee>>1==1?(Ie=9,Fe=5):(Z=Kt(V,Z),Ie=fr,Fe=Qt);else{Z&7&&(Z+=8-(Z&7));var pe=V[Z>>>3]|V[(Z>>>3)+1]<<8;if(Z+=32,pe>0)for(!ie&&Se<oe+pe&&(Ae=ot(Ae,oe+pe),Se=Ae.length);pe-- >0;)Ae[oe++]=V[Z>>>3],Z+=8;continue}for(;;){!ie&&Se<oe+32767&&(Ae=ot(Ae,oe+32767),Se=Ae.length);var X=rt(V,Z,Ie),we=ee>>>1==1?vt[X]:tt[X];if(Z+=we&15,we>>>=4,!(we>>>8&255))Ae[oe++]=we;else{if(we==256)break;we-=257;var Le=we<8?0:we-4>>2;Le>5&&(Le=0);var Ke=oe+S[we];Le>0&&(Ke+=rt(V,Z,Le),Z+=Le),X=rt(V,Z,Fe),we=ee>>>1==1?kt[X]:ir[X],Z+=we&15,we>>>=4;var ze=we<4?0:we-2>>1,qe=Q[we];for(ze>0&&(qe+=rt(V,Z,ze),Z+=ze),!ie&&Se<Ke&&(Ae=ot(Ae,Ke+100),Se=Ae.length);oe<Ke;)Ae[oe]=Ae[oe-qe],++oe}}}return ie?[Ae,Z+7>>>3]:[Ae.slice(0,oe),Z+7>>>3]}function Rt(V,ie){var Z=V.slice(V.l||0),ee=Zr(Z,ie);return V.l+=ee[1],ee[0]}function _r(V,ie){if(V)typeof console<"u"&&console.error(ie);else throw new Error(ie)}function Yt(V,ie){var Z=V;ya(Z,0);var ee=[],Ae=[],oe={FileIndex:ee,FullPaths:Ae};U(oe,{root:ie.root});for(var Se=Z.length-4;(Z[Se]!=80||Z[Se+1]!=75||Z[Se+2]!=5||Z[Se+3]!=6)&&Se>=0;)--Se;Z.l=Se+4,Z.l+=4;var Ie=Z.read_shift(2);Z.l+=6;var Fe=Z.read_shift(4);for(Z.l=Fe,Se=0;Se<Ie;++Se){Z.l+=20;var pe=Z.read_shift(4),X=Z.read_shift(4),we=Z.read_shift(2),Le=Z.read_shift(2),Ke=Z.read_shift(2);Z.l+=8;var ze=Z.read_shift(4),qe=s(Z.slice(Z.l+we,Z.l+we+Le));Z.l+=we+Le+Ke;var ut=Z.l;Z.l=ze+4,on(Z,pe,X,oe,qe),Z.l=ut}return oe}function on(V,ie,Z,ee,Ae){V.l+=2;var oe=V.read_shift(2),Se=V.read_shift(2),Ie=o(V);if(oe&8257)throw new Error("Unsupported ZIP encryption");for(var Fe=V.read_shift(4),pe=V.read_shift(4),X=V.read_shift(4),we=V.read_shift(2),Le=V.read_shift(2),Ke="",ze=0;ze<we;++ze)Ke+=String.fromCharCode(V[V.l++]);if(Le){var qe=s(V.slice(V.l,V.l+Le));(qe[21589]||{}).mt&&(Ie=qe[21589].mt),((Ae||{})[21589]||{}).mt&&(Ie=Ae[21589].mt)}V.l+=Le;var ut=V.slice(V.l,V.l+pe);switch(Se){case 8:ut=_(V,X);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+Se)}var zt=!1;oe&8&&(Fe=V.read_shift(4),Fe==134695760&&(Fe=V.read_shift(4),zt=!0),pe=V.read_shift(4),X=V.read_shift(4)),pe!=ie&&_r(zt,"Bad compressed size: "+ie+" != "+pe),X!=Z&&_r(zt,"Bad uncompressed size: "+Z+" != "+X),Mn(ee,Ke,ut,{unsafe:!0,mt:Ie})}function _t(V,ie){var Z=ie||{},ee=[],Ae=[],oe=Oe(1),Se=Z.compression?8:0,Ie=0,Fe=0,pe=0,X=0,we=0,Le=V.FullPaths[0],Ke=Le,ze=V.FileIndex[0],qe=[],ut=0;for(Fe=1;Fe<V.FullPaths.length;++Fe)if(Ke=V.FullPaths[Fe].slice(Le.length),ze=V.FileIndex[Fe],!(!ze.size||!ze.content||Ke=="Sh33tJ5")){var zt=X,Et=Oe(Ke.length);for(pe=0;pe<Ke.length;++pe)Et.write_shift(1,Ke.charCodeAt(pe)&127);Et=Et.slice(0,Et.l),qe[we]=NN.buf(ze.content,0);var Er=ze.content;Se==8&&(Er=B(Er)),oe=Oe(30),oe.write_shift(4,67324752),oe.write_shift(2,20),oe.write_shift(2,Ie),oe.write_shift(2,Se),ze.mt?A(oe,ze.mt):oe.write_shift(4,0),oe.write_shift(-4,qe[we]),oe.write_shift(4,Er.length),oe.write_shift(4,ze.content.length),oe.write_shift(2,Et.length),oe.write_shift(2,0),X+=oe.length,ee.push(oe),X+=Et.length,ee.push(Et),X+=Er.length,ee.push(Er),oe=Oe(46),oe.write_shift(4,33639248),oe.write_shift(2,0),oe.write_shift(2,20),oe.write_shift(2,Ie),oe.write_shift(2,Se),oe.write_shift(4,0),oe.write_shift(-4,qe[we]),oe.write_shift(4,Er.length),oe.write_shift(4,ze.content.length),oe.write_shift(2,Et.length),oe.write_shift(2,0),oe.write_shift(2,0),oe.write_shift(2,0),oe.write_shift(2,0),oe.write_shift(4,0),oe.write_shift(4,zt),ut+=oe.l,Ae.push(oe),ut+=Et.length,Ae.push(Et),++we}return oe=Oe(22),oe.write_shift(4,101010256),oe.write_shift(2,0),oe.write_shift(2,0),oe.write_shift(2,we),oe.write_shift(2,we),oe.write_shift(4,ut),oe.write_shift(4,X),oe.write_shift(2,0),wn([wn(ee),wn(Ae),oe])}var Gt={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function Ct(V,ie){if(V.ctype)return V.ctype;var Z=V.name||"",ee=Z.match(/\.([^\.]+)$/);return ee&&Gt[ee[1]]||ie&&(ee=(Z=ie).match(/[\.\\]([^\.\\])+$/),ee&&Gt[ee[1]])?Gt[ee[1]]:"application/octet-stream"}function $t(V){for(var ie=zl(V),Z=[],ee=0;ee<ie.length;ee+=76)Z.push(ie.slice(ee,ee+76));return Z.join(`\r
265
- `)+`\r
266
- `}function ba(V){var ie=V.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(pe){var X=pe.charCodeAt(0).toString(16).toUpperCase();return"="+(X.length==1?"0"+X:X)});ie=ie.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),ie.charAt(0)==`
267
- `&&(ie="=0D"+ie.slice(1)),ie=ie.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
268
- =0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var Z=[],ee=ie.split(`\r
269
- `),Ae=0;Ae<ee.length;++Ae){var oe=ee[Ae];if(oe.length==0){Z.push("");continue}for(var Se=0;Se<oe.length;){var Ie=76,Fe=oe.slice(Se,Se+Ie);Fe.charAt(Ie-1)=="="?Ie--:Fe.charAt(Ie-2)=="="?Ie-=2:Fe.charAt(Ie-3)=="="&&(Ie-=3),Fe=oe.slice(Se,Se+Ie),Se+=Ie,Se<oe.length&&(Fe+="="),Z.push(Fe)}}return Z.join(`\r
270
- `)}function Ir(V){for(var ie=[],Z=0;Z<V.length;++Z){for(var ee=V[Z];Z<=V.length&&ee.charAt(ee.length-1)=="=";)ee=ee.slice(0,ee.length-1)+V[++Z];ie.push(ee)}for(var Ae=0;Ae<ie.length;++Ae)ie[Ae]=ie[Ae].replace(/[=][0-9A-Fa-f]{2}/g,function(oe){return String.fromCharCode(parseInt(oe.slice(1),16))});return Xa(ie.join(`\r
271
- `))}function Zn(V,ie,Z){for(var ee="",Ae="",oe="",Se,Ie=0;Ie<10;++Ie){var Fe=ie[Ie];if(!Fe||Fe.match(/^\s*$/))break;var pe=Fe.match(/^(.*?):\s*([^\s].*)$/);if(pe)switch(pe[1].toLowerCase()){case"content-location":ee=pe[2].trim();break;case"content-type":oe=pe[2].trim();break;case"content-transfer-encoding":Ae=pe[2].trim();break}}switch(++Ie,Ae.toLowerCase()){case"base64":Se=Xa(jA(ie.slice(Ie).join("")));break;case"quoted-printable":Se=Ir(ie.slice(Ie));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+Ae)}var X=Mn(V,ee.slice(Z.length),Se,{unsafe:!0});oe&&(X.ctype=oe)}function sa(V,ie){if(le(V.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var Z=ie&&ie.root||"",ee=(Jt&&Buffer.isBuffer(V)?V.toString("binary"):le(V)).split(`\r
272
- `),Ae=0,oe="";for(Ae=0;Ae<ee.length;++Ae)if(oe=ee[Ae],!!/^Content-Location:/i.test(oe)&&(oe=oe.slice(oe.indexOf("file")),Z||(Z=oe.slice(0,oe.lastIndexOf("/")+1)),oe.slice(0,Z.length)!=Z))for(;Z.length>0&&(Z=Z.slice(0,Z.length-1),Z=Z.slice(0,Z.lastIndexOf("/")+1),oe.slice(0,Z.length)!=Z););var Se=(ee[1]||"").match(/boundary="(.*?)"/);if(!Se)throw new Error("MAD cannot find boundary");var Ie="--"+(Se[1]||""),Fe=[],pe=[],X={FileIndex:Fe,FullPaths:pe};U(X);var we,Le=0;for(Ae=0;Ae<ee.length;++Ae){var Ke=ee[Ae];Ke!==Ie&&Ke!==Ie+"--"||(Le++&&Zn(X,ee.slice(we,Ae),Z),we=Ae)}return X}function gt(V,ie){var Z=ie||{},ee=Z.boundary||"SheetJS";ee="------="+ee;for(var Ae=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+ee.slice(2)+'"',"","",""],oe=V.FullPaths[0],Se=oe,Ie=V.FileIndex[0],Fe=1;Fe<V.FullPaths.length;++Fe)if(Se=V.FullPaths[Fe].slice(oe.length),Ie=V.FileIndex[Fe],!(!Ie.size||!Ie.content||Se=="Sh33tJ5")){Se=Se.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(ut){return"_x"+ut.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(ut){return"_u"+ut.charCodeAt(0).toString(16)+"_"});for(var pe=Ie.content,X=Jt&&Buffer.isBuffer(pe)?pe.toString("binary"):le(pe),we=0,Le=Math.min(1024,X.length),Ke=0,ze=0;ze<=Le;++ze)(Ke=X.charCodeAt(ze))>=32&&Ke<128&&++we;var qe=we>=Le*4/5;Ae.push(ee),Ae.push("Content-Location: "+(Z.root||"file:///C:/SheetJS/")+Se),Ae.push("Content-Transfer-Encoding: "+(qe?"quoted-printable":"base64")),Ae.push("Content-Type: "+Ct(Ie,Se)),Ae.push(""),Ae.push(qe?ba(X):$t(X))}return Ae.push(ee+`--\r
273
- `),Ae.join(`\r
274
- `)}function Fn(V){var ie={};return U(ie,V),ie}function Mn(V,ie,Z,ee){var Ae=ee&&ee.unsafe;Ae||U(V);var oe=!Ae&&cr.find(V,ie);if(!oe){var Se=V.FullPaths[0];ie.slice(0,Se.length)==Se?Se=ie:(Se.slice(-1)!="/"&&(Se+="/"),Se=(Se+ie).replace("//","/")),oe={name:a(ie),type:2},V.FileIndex.push(oe),V.FullPaths.push(Se),Ae||cr.utils.cfb_gc(V)}return oe.content=Z,oe.size=Z?Z.length:0,ee&&(ee.CLSID&&(oe.clsid=ee.CLSID),ee.mt&&(oe.mt=ee.mt),ee.ct&&(oe.ct=ee.ct)),oe}function mr(V,ie){U(V);var Z=cr.find(V,ie);if(Z){for(var ee=0;ee<V.FileIndex.length;++ee)if(V.FileIndex[ee]==Z)return V.FileIndex.splice(ee,1),V.FullPaths.splice(ee,1),!0}return!1}function xr(V,ie,Z){U(V);var ee=cr.find(V,ie);if(ee){for(var Ae=0;Ae<V.FileIndex.length;++Ae)if(V.FileIndex[Ae]==ee)return V.FileIndex[Ae].name=a(Z),V.FullPaths[Ae]=Z,!0}return!1}function br(V){O(V,!0)}return e.find=T,e.read=R,e.parse=u,e.write=fe,e.writeFile=re,e.utils={cfb_new:Fn,cfb_add:Mn,cfb_del:mr,cfb_mov:xr,cfb_gc:br,ReadShift:Zl,CheckField:Qw,prep_blob:ya,bconcat:wn,use_zlib:b,_deflateRaw:bt,_inflateRaw:Rt,consts:ge},e}();function LN(t){return typeof t=="string"?yh(t):Array.isArray(t)?aN(t):t}function jl(t,e,r){if(typeof Deno<"u"){if(r&&typeof e=="string")switch(r){case"utf8":e=new TextEncoder(r).encode(e);break;case"binary":e=yh(e);break;default:throw new Error("Unsupported encoding "+r)}return Deno.writeFileSync(t,e)}var n=r=="utf8"?YA(e):e;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,t);if(typeof Blob<"u"){var a=new Blob([LN(n)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(a,t);if(typeof saveAs<"u")return saveAs(a,t);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var A=URL.createObjectURL(a);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(A)},6e4),chrome.downloads.download({url:A,filename:t,saveAs:!0});var o=document.createElement("a");if(o.download!=null)return o.download=t,o.href=A,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(A)},6e4),A}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var s=File(t);return s.open("w"),s.encoding="binary",Array.isArray(e)&&(e=Kl(e)),s.write(e),s.close(),e}catch(l){if(!l.message||!l.message.match(/onstruct/))throw l}throw new Error("cannot save file "+t)}function Bn(t){for(var e=Object.keys(t),r=[],n=0;n<e.length;++n)Object.prototype.hasOwnProperty.call(t,e[n])&&r.push(e[n]);return r}function sw(t,e){for(var r=[],n=Bn(t),a=0;a!==n.length;++a)r[t[n[a]][e]]==null&&(r[t[n[a]][e]]=n[a]);return r}function ig(t){for(var e=[],r=Bn(t),n=0;n!==r.length;++n)e[t[r[n]]]=r[n];return e}function _h(t){for(var e=[],r=Bn(t),n=0;n!==r.length;++n)e[t[r[n]]]=parseInt(r[n],10);return e}function UN(t){for(var e=[],r=Bn(t),n=0;n!==r.length;++n)e[t[r[n]]]==null&&(e[t[r[n]]]=[]),e[t[r[n]]].push(r[n]);return e}var Fh=new Date(1899,11,30,0,0,0);function na(t,e){var r=t.getTime();e&&(r-=1462*24*60*60*1e3);var n=Fh.getTime()+(t.getTimezoneOffset()-Fh.getTimezoneOffset())*6e4;return(r-n)/(24*60*60*1e3)}var lw=new Date,IN=Fh.getTime()+(lw.getTimezoneOffset()-Fh.getTimezoneOffset())*6e4,cw=lw.getTimezoneOffset();function uw(t){var e=new Date;return e.setTime(t*24*60*60*1e3+IN),e.getTimezoneOffset()!==cw&&e.setTime(e.getTime()+(e.getTimezoneOffset()-cw)*6e4),e}var hw=new Date("2017-02-19T19:06:09.000Z"),fw=isNaN(hw.getFullYear())?new Date("2/19/17"):hw,DN=fw.getFullYear()==2017;function Gn(t,e){var r=new Date(t);if(DN)return e>0?r.setTime(r.getTime()+r.getTimezoneOffset()*60*1e3):e<0&&r.setTime(r.getTime()-r.getTimezoneOffset()*60*1e3),r;if(t instanceof Date)return t;if(fw.getFullYear()==1917&&!isNaN(r.getFullYear())){var n=r.getFullYear();return t.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var a=t.match(/\d+/g)||["2017","2","19","0","0","0"],A=new Date(+a[0],+a[1]-1,+a[2],+a[3]||0,+a[4]||0,+a[5]||0);return t.indexOf("Z")>-1&&(A=new Date(A.getTime()-A.getTimezoneOffset()*60*1e3)),A}function Sh(t,e){if(Jt&&Buffer.isBuffer(t)){if(e){if(t[0]==255&&t[1]==254)return YA(t.slice(2).toString("utf16le"));if(t[1]==254&&t[2]==255)return YA(nN(t.slice(2).toString("binary")))}return t.toString("binary")}if(typeof TextDecoder<"u")try{if(e){if(t[0]==255&&t[1]==254)return YA(new TextDecoder("utf-16le").decode(t.slice(2)));if(t[0]==254&&t[1]==255)return YA(new TextDecoder("utf-16be").decode(t.slice(2)))}var r={"€":"€","‚":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰",Š:"Š","‹":"‹",Œ:"Œ",Ž:"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™",š:"š","›":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(t)&&(t=new Uint8Array(t)),new TextDecoder("latin1").decode(t).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(A){return r[A]||A})}catch{}for(var n=[],a=0;a!=t.length;++a)n.push(String.fromCharCode(t[a]));return n.join("")}function aa(t){if(typeof JSON<"u"&&!Array.isArray(t))return JSON.parse(JSON.stringify(t));if(typeof t!="object"||t==null)return t;if(t instanceof Date)return new Date(t.getTime());var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=aa(t[r]));return e}function Tr(t,e){for(var r="";r.length<e;)r+=t;return r}function qA(t){var e=Number(t);if(!isNaN(e))return isFinite(e)?e:NaN;if(!/\d/.test(t))return e;var r=1,n=t.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return r*=100,""});return!isNaN(e=Number(n))||(n=n.replace(/[(](.*)[)]/,function(a,A){return r=-r,A}),!isNaN(e=Number(n)))?e/r:e}var QN=["january","february","march","april","may","june","july","august","september","october","november","december"];function Wl(t){var e=new Date(t),r=new Date(NaN),n=e.getYear(),a=e.getMonth(),A=e.getDate();if(isNaN(A))return r;var o=t.toLowerCase();if(o.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(o=o.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),o.length>3&&QN.indexOf(o)==-1)return r}else if(o.match(/[a-z]/))return r;return n<0||n>8099?r:(a>0||A>1)&&n!=101?e:t.match(/[^-0-9:,\/\\]/)?r:e}function Ot(t,e,r){if(t.FullPaths){if(typeof r=="string"){var n;return Jt?n=WA(r):n=AN(r),cr.utils.cfb_add(t,e,n)}cr.utils.cfb_add(t,e,r)}else t.file(e,r)}function og(){return cr.utils.cfb_new()}var Wr=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
275
- `,ON={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},sg=ig(ON),lg=/[&<>'"]/g,PN=/[\u0000-\u0008\u000b-\u001f]/g;function rr(t){var e=t+"";return e.replace(lg,function(r){return sg[r]}).replace(PN,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function dw(t){return rr(t).replace(/ /g,"_x0020_")}var gw=/[\u0000-\u001f]/g;function MN(t){var e=t+"";return e.replace(lg,function(r){return sg[r]}).replace(/\n/g,"<br/>").replace(gw,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function RN(t){var e=t+"";return e.replace(lg,function(r){return sg[r]}).replace(gw,function(r){return"&#x"+r.charCodeAt(0).toString(16).toUpperCase()+";"})}function HN(t){return t.replace(/(\r\n|[\r\n])/g,"&#10;")}function VN(t){switch(t){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function cg(t){for(var e="",r=0,n=0,a=0,A=0,o=0,s=0;r<t.length;){if(n=t.charCodeAt(r++),n<128){e+=String.fromCharCode(n);continue}if(a=t.charCodeAt(r++),n>191&&n<224){o=(n&31)<<6,o|=a&63,e+=String.fromCharCode(o);continue}if(A=t.charCodeAt(r++),n<240){e+=String.fromCharCode((n&15)<<12|(a&63)<<6|A&63);continue}o=t.charCodeAt(r++),s=((n&7)<<18|(a&63)<<12|(A&63)<<6|o&63)-65536,e+=String.fromCharCode(55296+(s>>>10&1023)),e+=String.fromCharCode(56320+(s&1023))}return e}function pw(t){var e=yo(2*t.length),r,n,a=1,A=0,o=0,s;for(n=0;n<t.length;n+=a)a=1,(s=t.charCodeAt(n))<128?r=s:s<224?(r=(s&31)*64+(t.charCodeAt(n+1)&63),a=2):s<240?(r=(s&15)*4096+(t.charCodeAt(n+1)&63)*64+(t.charCodeAt(n+2)&63),a=3):(a=4,r=(s&7)*262144+(t.charCodeAt(n+1)&63)*4096+(t.charCodeAt(n+2)&63)*64+(t.charCodeAt(n+3)&63),r-=65536,o=55296+(r>>>10&1023),r=56320+(r&1023)),o!==0&&(e[A++]=o&255,e[A++]=o>>>8,o=0),e[A++]=r%256,e[A++]=r>>>8;return e.slice(0,A).toString("ucs2")}function mw(t){return WA(t,"binary").toString("utf8")}var kh="foo bar baz☃🍣",Xl=Jt&&(mw(kh)==cg(kh)&&mw||pw(kh)==cg(kh)&&pw)||cg,YA=Jt?function(t){return WA(t,"utf8").toString("binary")}:function(t){for(var e=[],r=0,n=0,a=0;r<t.length;)switch(n=t.charCodeAt(r++),!0){case n<128:e.push(String.fromCharCode(n));break;case n<2048:e.push(String.fromCharCode(192+(n>>6))),e.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,a=t.charCodeAt(r++)-56320+(n<<10),e.push(String.fromCharCode(240+(a>>18&7))),e.push(String.fromCharCode(144+(a>>12&63))),e.push(String.fromCharCode(128+(a>>6&63))),e.push(String.fromCharCode(128+(a&63)));break;default:e.push(String.fromCharCode(224+(n>>12))),e.push(String.fromCharCode(128+(n>>6&63))),e.push(String.fromCharCode(128+(n&63)))}return e.join("")},$N=function(){var t=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]});return function(r){for(var n=r.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,`
276
- `).replace(/<[^>]*>/g,""),a=0;a<t.length;++a)n=n.replace(t[a][0],t[a][1]);return n}}(),yw=/(^\s|\s$|\n)/;function xn(t,e){return"<"+t+(e.match(yw)?' xml:space="preserve"':"")+">"+e+"</"+t+">"}function ql(t){return Bn(t).map(function(e){return" "+e+'="'+t[e]+'"'}).join("")}function Ze(t,e,r){return"<"+t+(r!=null?ql(r):"")+(e!=null?(e.match(yw)?' xml:space="preserve"':"")+">"+e+"</"+t:"/")+">"}function ug(t,e){try{return t.toISOString().replace(/\.\d*/,"")}catch(r){if(e)throw r}return""}function zN(t,e){switch(typeof t){case"string":var r=Ze("vt:lpwstr",rr(t));return e&&(r=r.replace(/&quot;/g,"_x0022_")),r;case"number":return Ze((t|0)==t?"vt:i4":"vt:r8",rr(String(t)));case"boolean":return Ze("vt:bool",t?"true":"false")}if(t instanceof Date)return Ze("vt:filetime",ug(t));throw new Error("Unable to serialize "+t)}var un={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},vs=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],pa={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function KN(t,e){for(var r=1-2*(t[e+7]>>>7),n=((t[e+7]&127)<<4)+(t[e+6]>>>4&15),a=t[e+6]&15,A=5;A>=0;--A)a=a*256+t[e+A];return n==2047?a==0?r*(1/0):NaN:(n==0?n=-1022:(n-=1023,a+=Math.pow(2,52)),r*Math.pow(2,n-52)*a)}function GN(t,e,r){var n=(e<0||1/e==-1/0?1:0)<<7,a=0,A=0,o=n?-e:e;isFinite(o)?o==0?a=A=0:(a=Math.floor(Math.log(o)/Math.LN2),A=o*Math.pow(2,52-a),a<=-1023&&(!isFinite(A)||A<Math.pow(2,52))?a=-1022:(A-=Math.pow(2,52),a+=1023)):(a=2047,A=isNaN(e)?26985:0);for(var s=0;s<=5;++s,A/=256)t[r+s]=A&255;t[r+6]=(a&15)<<4|A&15,t[r+7]=a>>4|n}var vw=function(t){for(var e=[],r=10240,n=0;n<t[0].length;++n)if(t[0][n])for(var a=0,A=t[0][n].length;a<A;a+=r)e.push.apply(e,t[0][n].slice(a,a+r));return e},ww=Jt?function(t){return t[0].length>0&&Buffer.isBuffer(t[0][0])?Buffer.concat(t[0].map(function(e){return Buffer.isBuffer(e)?e:WA(e)})):vw(t)}:vw,Bw=function(t,e,r){for(var n=[],a=e;a<r;a+=2)n.push(String.fromCharCode(Jl(t,a)));return n.join("").replace(Gl,"")},hg=Jt?function(t,e,r){return Buffer.isBuffer(t)?t.toString("utf16le",e,r).replace(Gl,""):Bw(t,e,r)}:Bw,xw=function(t,e,r){for(var n=[],a=e;a<e+r;++a)n.push(("0"+t[a].toString(16)).slice(-2));return n.join("")},bw=Jt?function(t,e,r){return Buffer.isBuffer(t)?t.toString("hex",e,e+r):xw(t,e,r)}:xw,Cw=function(t,e,r){for(var n=[],a=e;a<r;a++)n.push(String.fromCharCode(ws(t,a)));return n.join("")},Yl=Jt?function(e,r,n){return Buffer.isBuffer(e)?e.toString("utf8",r,n):Cw(e,r,n)}:Cw,Ew=function(t,e){var r=ma(t,e);return r>0?Yl(t,e+4,e+4+r-1):""},_w=Ew,Fw=function(t,e){var r=ma(t,e);return r>0?Yl(t,e+4,e+4+r-1):""},Sw=Fw,kw=function(t,e){var r=2*ma(t,e);return r>0?Yl(t,e+4,e+4+r-1):""},Tw=kw,Nw=function(e,r){var n=ma(e,r);return n>0?hg(e,r+4,r+4+n):""},Lw=Nw,Uw=function(t,e){var r=ma(t,e);return r>0?Yl(t,e+4,e+4+r):""},Iw=Uw,Dw=function(t,e){return KN(t,e)},Th=Dw,fg=function(e){return Array.isArray(e)||typeof Uint8Array<"u"&&e instanceof Uint8Array};Jt&&(_w=function(e,r){if(!Buffer.isBuffer(e))return Ew(e,r);var n=e.readUInt32LE(r);return n>0?e.toString("utf8",r+4,r+4+n-1):""},Sw=function(e,r){if(!Buffer.isBuffer(e))return Fw(e,r);var n=e.readUInt32LE(r);return n>0?e.toString("utf8",r+4,r+4+n-1):""},Tw=function(e,r){if(!Buffer.isBuffer(e))return kw(e,r);var n=2*e.readUInt32LE(r);return e.toString("utf16le",r+4,r+4+n-1)},Lw=function(e,r){if(!Buffer.isBuffer(e))return Nw(e,r);var n=e.readUInt32LE(r);return e.toString("utf16le",r+4,r+4+n)},Iw=function(e,r){if(!Buffer.isBuffer(e))return Uw(e,r);var n=e.readUInt32LE(r);return e.toString("utf8",r+4,r+4+n)},Th=function(e,r){return Buffer.isBuffer(e)?e.readDoubleLE(r):Dw(e,r)},fg=function(e){return Buffer.isBuffer(e)||Array.isArray(e)||typeof Uint8Array<"u"&&e instanceof Uint8Array});var ws=function(t,e){return t[e]},Jl=function(t,e){return t[e+1]*256+t[e]},jN=function(t,e){var r=t[e+1]*256+t[e];return r<32768?r:(65535-r+1)*-1},ma=function(t,e){return t[e+3]*(1<<24)+(t[e+2]<<16)+(t[e+1]<<8)+t[e]},vo=function(t,e){return t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e]},WN=function(t,e){return t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3]};function Zl(t,e){var r="",n,a,A=[],o,s,l,c;switch(e){case"dbcs":if(c=this.l,Jt&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*t).toString("utf16le");else for(l=0;l<t;++l)r+=String.fromCharCode(Jl(this,c)),c+=2;t*=2;break;case"utf8":r=Yl(this,this.l,this.l+t);break;case"utf16le":t*=2,r=hg(this,this.l,this.l+t);break;case"wstr":return Zl.call(this,t,"dbcs");case"lpstr-ansi":r=_w(this,this.l),t=4+ma(this,this.l);break;case"lpstr-cp":r=Sw(this,this.l),t=4+ma(this,this.l);break;case"lpwstr":r=Tw(this,this.l),t=4+2*ma(this,this.l);break;case"lpp4":t=4+ma(this,this.l),r=Lw(this,this.l),t&2&&(t+=2);break;case"8lpp4":t=4+ma(this,this.l),r=Iw(this,this.l),t&3&&(t+=4-(t&3));break;case"cstr":for(t=0,r="";(o=ws(this,this.l+t++))!==0;)A.push(mh(o));r=A.join("");break;case"_wstr":for(t=0,r="";(o=Jl(this,this.l+t))!==0;)A.push(mh(o)),t+=2;t+=2,r=A.join("");break;case"dbcs-cont":for(r="",c=this.l,l=0;l<t;++l){if(this.lens&&this.lens.indexOf(c)!==-1)return o=ws(this,c),this.l=c+1,s=Zl.call(this,t-l,o?"dbcs-cont":"sbcs-cont"),A.join("")+s;A.push(mh(Jl(this,c))),c+=2}r=A.join(""),t*=2;break;case"cpstr":case"sbcs-cont":for(r="",c=this.l,l=0;l!=t;++l){if(this.lens&&this.lens.indexOf(c)!==-1)return o=ws(this,c),this.l=c+1,s=Zl.call(this,t-l,o?"dbcs-cont":"sbcs-cont"),A.join("")+s;A.push(mh(ws(this,c))),c+=1}r=A.join("");break;default:switch(t){case 1:return n=ws(this,this.l),this.l++,n;case 2:return n=(e==="i"?jN:Jl)(this,this.l),this.l+=2,n;case 4:case-4:return e==="i"||!(this[this.l+3]&128)?(n=(t>0?vo:WN)(this,this.l),this.l+=4,n):(a=ma(this,this.l),this.l+=4,a);case 8:case-8:if(e==="f")return t==8?a=Th(this,this.l):a=Th([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,a;t=8;case 16:r=bw(this,this.l,t);break}}return this.l+=t,r}var XN=function(t,e,r){t[r]=e&255,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24&255},qN=function(t,e,r){t[r]=e&255,t[r+1]=e>>8&255,t[r+2]=e>>16&255,t[r+3]=e>>24&255},YN=function(t,e,r){t[r]=e&255,t[r+1]=e>>>8&255};function JN(t,e,r){var n=0,a=0;if(r==="dbcs"){for(a=0;a!=e.length;++a)YN(this,e.charCodeAt(a),this.l+2*a);n=2*e.length}else if(r==="sbcs"){for(e=e.replace(/[^\x00-\x7F]/g,"_"),a=0;a!=e.length;++a)this[this.l+a]=e.charCodeAt(a)&255;n=e.length}else if(r==="hex"){for(;a<t;++a)this[this.l++]=parseInt(e.slice(2*a,2*a+2),16)||0;return this}else if(r==="utf16le"){var A=Math.min(this.l+t,this.length);for(a=0;a<Math.min(e.length,t);++a){var o=e.charCodeAt(a);this[this.l++]=o&255,this[this.l++]=o>>8}for(;this.l<A;)this[this.l++]=0;return this}else switch(t){case 1:n=1,this[this.l]=e&255;break;case 2:n=2,this[this.l]=e&255,e>>>=8,this[this.l+1]=e&255;break;case 3:n=3,this[this.l]=e&255,e>>>=8,this[this.l+1]=e&255,e>>>=8,this[this.l+2]=e&255;break;case 4:n=4,XN(this,e,this.l);break;case 8:if(n=8,r==="f"){GN(this,e,this.l);break}case 16:break;case-4:n=4,qN(this,e,this.l);break}return this.l+=n,this}function Qw(t,e){var r=bw(this,this.l,t.length>>1);if(r!==t)throw new Error(e+"Expected "+t+" saw "+r);this.l+=t.length>>1}function ya(t,e){t.l=e,t.read_shift=Zl,t.chk=Qw,t.write_shift=JN}function SA(t,e){t.l+=e}function Oe(t){var e=yo(t);return ya(e,0),e}function Aa(){var t=[],e=Jt?256:2048,r=function(c){var u=Oe(c);return ya(u,0),u},n=r(e),a=function(){n&&(n.length>n.l&&(n=n.slice(0,n.l),n.l=n.length),n.length>0&&t.push(n),n=null)},A=function(c){return n&&c<n.length-n.l?n:(a(),n=r(Math.max(c+1,e)))},o=function(){return a(),wn(t)},s=function(c){a(),n=c,n.l==null&&(n.l=n.length),A(e)};return{next:A,push:s,end:o,_bufs:t}}function $e(t,e,r,n){var a=+e,A;if(!isNaN(a)){n||(n=KD[a].p||(r||[]).length||0),A=1+(a>=128?1:0)+1,n>=128&&++A,n>=16384&&++A,n>=2097152&&++A;var o=t.next(A);a<=127?o.write_shift(1,a):(o.write_shift(1,(a&127)+128),o.write_shift(1,a>>7));for(var s=0;s!=4;++s)if(n>=128)o.write_shift(1,(n&127)+128),n>>=7;else{o.write_shift(1,n);break}n>0&&fg(r)&&t.push(r)}}function ec(t,e,r){var n=aa(t);if(e.s?(n.cRel&&(n.c+=e.s.c),n.rRel&&(n.r+=e.s.r)):(n.cRel&&(n.c+=e.c),n.rRel&&(n.r+=e.r)),!r||r.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function Ow(t,e,r){var n=aa(t);return n.s=ec(n.s,e.s,r),n.e=ec(n.e,e.s,r),n}function tc(t,e){if(t.cRel&&t.c<0)for(t=aa(t);t.c<0;)t.c+=e>8?16384:256;if(t.rRel&&t.r<0)for(t=aa(t);t.r<0;)t.r+=e>8?1048576:e>5?65536:16384;var r=nr(t);return!t.cRel&&t.cRel!=null&&(r=t6(r)),!t.rRel&&t.rRel!=null&&(r=ZN(r)),r}function dg(t,e){return t.s.r==0&&!t.s.rRel&&t.e.r==(e.biff>=12?1048575:e.biff>=8?65536:16384)&&!t.e.rRel?(t.s.cRel?"":"$")+Dn(t.s.c)+":"+(t.e.cRel?"":"$")+Dn(t.e.c):t.s.c==0&&!t.s.cRel&&t.e.c==(e.biff>=12?16383:255)&&!t.e.cRel?(t.s.rRel?"":"$")+bn(t.s.r)+":"+(t.e.rRel?"":"$")+bn(t.e.r):tc(t.s,e.biff)+":"+tc(t.e,e.biff)}function gg(t){return parseInt(e6(t),10)-1}function bn(t){return""+(t+1)}function ZN(t){return t.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function e6(t){return t.replace(/\$(\d+)$/,"$1")}function pg(t){for(var e=r6(t),r=0,n=0;n!==e.length;++n)r=26*r+e.charCodeAt(n)-64;return r-1}function Dn(t){if(t<0)throw new Error("invalid column "+t);var e="";for(++t;t;t=Math.floor((t-1)/26))e=String.fromCharCode((t-1)%26+65)+e;return e}function t6(t){return t.replace(/^([A-Z])/,"$$$1")}function r6(t){return t.replace(/^\$([A-Z])/,"$1")}function n6(t){return t.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function hn(t){for(var e=0,r=0,n=0;n<t.length;++n){var a=t.charCodeAt(n);a>=48&&a<=57?e=10*e+(a-48):a>=65&&a<=90&&(r=26*r+(a-64))}return{c:r-1,r:e-1}}function nr(t){for(var e=t.c+1,r="";e;e=(e-1)/26|0)r=String.fromCharCode((e-1)%26+65)+r;return r+(t.r+1)}function va(t){var e=t.indexOf(":");return e==-1?{s:hn(t),e:hn(t)}:{s:hn(t.slice(0,e)),e:hn(t.slice(e+1))}}function Xr(t,e){return typeof e>"u"||typeof e=="number"?Xr(t.s,t.e):(typeof t!="string"&&(t=nr(t)),typeof e!="string"&&(e=nr(e)),t==e?t:t+":"+e)}function Br(t){var e={s:{c:0,r:0},e:{c:0,r:0}},r=0,n=0,a=0,A=t.length;for(r=0;n<A&&!((a=t.charCodeAt(n)-64)<1||a>26);++n)r=26*r+a;for(e.s.c=--r,r=0;n<A&&!((a=t.charCodeAt(n)-48)<0||a>9);++n)r=10*r+a;if(e.s.r=--r,n===A||a!=10)return e.e.c=e.s.c,e.e.r=e.s.r,e;for(++n,r=0;n!=A&&!((a=t.charCodeAt(n)-64)<1||a>26);++n)r=26*r+a;for(e.e.c=--r,r=0;n!=A&&!((a=t.charCodeAt(n)-48)<0||a>9);++n)r=10*r+a;return e.e.r=--r,e}function Pw(t,e){var r=t.t=="d"&&e instanceof Date;if(t.z!=null)try{return t.w=Di(t.z,r?na(e):e)}catch{}try{return t.w=Di((t.XF||{}).numFmtId||(r?14:0),r?na(e):e)}catch{return""+e}}function JA(t,e,r){return t==null||t.t==null||t.t=="z"?"":t.w!==void 0?t.w:(t.t=="d"&&!t.z&&r&&r.dateNF&&(t.z=r.dateNF),t.t=="e"?rc[t.v]||t.v:e==null?Pw(t,t.v):Pw(t,e))}function wo(t,e){var r=e&&e.sheet?e.sheet:"Sheet1",n={};return n[r]=t,{SheetNames:[r],Sheets:n}}function Mw(t,e,r){var n=r||{},a=t?Array.isArray(t):n.dense,A=t||(a?[]:{}),o=0,s=0;if(A&&n.origin!=null){if(typeof n.origin=="number")o=n.origin;else{var l=typeof n.origin=="string"?hn(n.origin):n.origin;o=l.r,s=l.c}A["!ref"]||(A["!ref"]="A1:A1")}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(A["!ref"]){var u=Br(A["!ref"]);c.s.c=u.s.c,c.s.r=u.s.r,c.e.c=Math.max(c.e.c,u.e.c),c.e.r=Math.max(c.e.r,u.e.r),o==-1&&(c.e.r=o=u.e.r+1)}for(var p=0;p!=e.length;++p)if(e[p]){if(!Array.isArray(e[p]))throw new Error("aoa_to_sheet expects an array of arrays");for(var h=0;h!=e[p].length;++h)if(!(typeof e[p][h]>"u")){var d={v:e[p][h]},w=o+p,f=s+h;if(c.s.r>w&&(c.s.r=w),c.s.c>f&&(c.s.c=f),c.e.r<w&&(c.e.r=w),c.e.c<f&&(c.e.c=f),e[p][h]&&typeof e[p][h]=="object"&&!Array.isArray(e[p][h])&&!(e[p][h]instanceof Date))d=e[p][h];else if(Array.isArray(d.v)&&(d.f=e[p][h][1],d.v=d.v[0]),d.v===null)if(d.f)d.t="n";else if(n.nullError)d.t="e",d.v=0;else if(n.sheetStubs)d.t="z";else continue;else typeof d.v=="number"?d.t="n":typeof d.v=="boolean"?d.t="b":d.v instanceof Date?(d.z=n.dateNF||kr[14],n.cellDates?(d.t="d",d.w=Di(d.z,na(d.v))):(d.t="n",d.v=na(d.v),d.w=Di(d.z,d.v))):d.t="s";if(a)A[w]||(A[w]=[]),A[w][f]&&A[w][f].z&&(d.z=A[w][f].z),A[w][f]=d;else{var m=nr({c:f,r:w});A[m]&&A[m].z&&(d.z=A[m].z),A[m]=d}}}return c.s.c<1e7&&(A["!ref"]=Xr(c)),A}function Bs(t,e){return Mw(null,t,e)}function a6(t){return t.read_shift(4,"i")}function Ya(t,e){return e||(e=Oe(4)),e.write_shift(4,t),e}function Qn(t){var e=t.read_shift(4);return e===0?"":t.read_shift(e,"dbcs")}function fn(t,e){var r=!1;return e==null&&(r=!0,e=Oe(4+2*t.length)),e.write_shift(4,t.length),t.length>0&&e.write_shift(0,t,"dbcs"),r?e.slice(0,e.l):e}function A6(t){return{ich:t.read_shift(2),ifnt:t.read_shift(2)}}function i6(t,e){return e||(e=Oe(4)),e.write_shift(2,t.ich||0),e.write_shift(2,t.ifnt||0),e}function mg(t,e){var r=t.l,n=t.read_shift(1),a=Qn(t),A=[],o={t:a,h:a};if(n&1){for(var s=t.read_shift(4),l=0;l!=s;++l)A.push(A6(t));o.r=A}else o.r=[{ich:0,ifnt:0}];return t.l=r+e,o}function o6(t,e){var r=!1;return e==null&&(r=!0,e=Oe(15+4*t.t.length)),e.write_shift(1,0),fn(t.t,e),r?e.slice(0,e.l):e}var s6=mg;function l6(t,e){var r=!1;return e==null&&(r=!0,e=Oe(23+4*t.t.length)),e.write_shift(1,1),fn(t.t,e),e.write_shift(4,1),i6({ich:0,ifnt:0},e),r?e.slice(0,e.l):e}function Ia(t){var e=t.read_shift(4),r=t.read_shift(2);return r+=t.read_shift(1)<<16,t.l++,{c:e,iStyleRef:r}}function Bo(t,e){return e==null&&(e=Oe(8)),e.write_shift(-4,t.c),e.write_shift(3,t.iStyleRef||t.s),e.write_shift(1,0),e}function xo(t){var e=t.read_shift(2);return e+=t.read_shift(1)<<16,t.l++,{c:-1,iStyleRef:e}}function bo(t,e){return e==null&&(e=Oe(4)),e.write_shift(3,t.iStyleRef||t.s),e.write_shift(1,0),e}var c6=Qn,Rw=fn;function yg(t){var e=t.read_shift(4);return e===0||e===4294967295?"":t.read_shift(e,"dbcs")}function Nh(t,e){var r=!1;return e==null&&(r=!0,e=Oe(127)),e.write_shift(4,t.length>0?t.length:4294967295),t.length>0&&e.write_shift(0,t,"dbcs"),r?e.slice(0,e.l):e}var u6=Qn,vg=yg,wg=Nh;function Hw(t){var e=t.slice(t.l,t.l+4),r=e[0]&1,n=e[0]&2;t.l+=4;var a=n===0?Th([0,0,0,0,e[0]&252,e[1],e[2],e[3]],0):vo(e,0)>>2;return r?a/100:a}function Vw(t,e){e==null&&(e=Oe(4));var r=0,n=0,a=t*100;if(t==(t|0)&&t>=-(1<<29)&&t<1<<29?n=1:a==(a|0)&&a>=-(1<<29)&&a<1<<29&&(n=1,r=1),n)e.write_shift(-4,((r?a:t)<<2)+(r+2));else throw new Error("unsupported RkNumber "+t)}function $w(t){var e={s:{},e:{}};return e.s.r=t.read_shift(4),e.e.r=t.read_shift(4),e.s.c=t.read_shift(4),e.e.c=t.read_shift(4),e}function h6(t,e){return e||(e=Oe(16)),e.write_shift(4,t.s.r),e.write_shift(4,t.e.r),e.write_shift(4,t.s.c),e.write_shift(4,t.e.c),e}var Co=$w,xs=h6;function bs(t){if(t.length-t.l<8)throw"XLS Xnum Buffer underflow";return t.read_shift(8,"f")}function Eo(t,e){return(e||Oe(8)).write_shift(8,t,"f")}function f6(t){var e={},r=t.read_shift(1),n=r>>>1,a=t.read_shift(1),A=t.read_shift(2,"i"),o=t.read_shift(1),s=t.read_shift(1),l=t.read_shift(1);switch(t.l++,n){case 0:e.auto=1;break;case 1:e.index=a;var c=x6[a];c&&(e.rgb=yB(c));break;case 2:e.rgb=yB([o,s,l]);break;case 3:e.theme=a;break}return A!=0&&(e.tint=A>0?A/32767:A/32768),e}function Lh(t,e){if(e||(e=Oe(8)),!t||t.auto)return e.write_shift(4,0),e.write_shift(4,0),e;t.index!=null?(e.write_shift(1,2),e.write_shift(1,t.index)):t.theme!=null?(e.write_shift(1,6),e.write_shift(1,t.theme)):(e.write_shift(1,5),e.write_shift(1,0));var r=t.tint||0;if(r>0?r*=32767:r<0&&(r*=32768),e.write_shift(2,r),!t.rgb||t.theme!=null)e.write_shift(2,0),e.write_shift(1,0),e.write_shift(1,0);else{var n=t.rgb||"FFFFFF";typeof n=="number"&&(n=("000000"+n.toString(16)).slice(-6)),e.write_shift(1,parseInt(n.slice(0,2),16)),e.write_shift(1,parseInt(n.slice(2,4),16)),e.write_shift(1,parseInt(n.slice(4,6),16)),e.write_shift(1,255)}return e}function d6(t){var e=t.read_shift(1);t.l++;var r={fBold:e&1,fItalic:e&2,fUnderline:e&4,fStrikeout:e&8,fOutline:e&16,fShadow:e&32,fCondense:e&64,fExtend:e&128};return r}function g6(t,e){e||(e=Oe(2));var r=(t.italic?2:0)|(t.strike?8:0)|(t.outline?16:0)|(t.shadow?32:0)|(t.condense?64:0)|(t.extend?128:0);return e.write_shift(1,r),e.write_shift(1,0),e}var zw=2,wa=3,Uh=11,Ih=19,Dh=64,p6=65,m6=71,y6=4108,v6=4126,Cn=80,Kw={1:{n:"CodePage",t:zw},2:{n:"Category",t:Cn},3:{n:"PresentationFormat",t:Cn},4:{n:"ByteCount",t:wa},5:{n:"LineCount",t:wa},6:{n:"ParagraphCount",t:wa},7:{n:"SlideCount",t:wa},8:{n:"NoteCount",t:wa},9:{n:"HiddenCount",t:wa},10:{n:"MultimediaClipCount",t:wa},11:{n:"ScaleCrop",t:Uh},12:{n:"HeadingPairs",t:y6},13:{n:"TitlesOfParts",t:v6},14:{n:"Manager",t:Cn},15:{n:"Company",t:Cn},16:{n:"LinksUpToDate",t:Uh},17:{n:"CharacterCount",t:wa},19:{n:"SharedDoc",t:Uh},22:{n:"HyperlinksChanged",t:Uh},23:{n:"AppVersion",t:wa,p:"version"},24:{n:"DigSig",t:p6},26:{n:"ContentType",t:Cn},27:{n:"ContentStatus",t:Cn},28:{n:"Language",t:Cn},29:{n:"Version",t:Cn},255:{},2147483648:{n:"Locale",t:Ih},2147483651:{n:"Behavior",t:Ih},1919054434:{}},Gw={1:{n:"CodePage",t:zw},2:{n:"Title",t:Cn},3:{n:"Subject",t:Cn},4:{n:"Author",t:Cn},5:{n:"Keywords",t:Cn},6:{n:"Comments",t:Cn},7:{n:"Template",t:Cn},8:{n:"LastAuthor",t:Cn},9:{n:"RevNumber",t:Cn},10:{n:"EditTime",t:Dh},11:{n:"LastPrinted",t:Dh},12:{n:"CreatedDate",t:Dh},13:{n:"ModifiedDate",t:Dh},14:{n:"PageCount",t:wa},15:{n:"WordCount",t:wa},16:{n:"CharCount",t:wa},17:{n:"Thumbnail",t:m6},18:{n:"Application",t:Cn},19:{n:"DocSecurity",t:wa},255:{},2147483648:{n:"Locale",t:Ih},2147483651:{n:"Behavior",t:Ih},1919054434:{}};function w6(t){return t.map(function(e){return[e>>16&255,e>>8&255,e&255]})}var B6=w6([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),x6=aa(B6),rc={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},b6={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Qh={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function jw(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function Ww(t,e){var r=UN(b6),n=[],a;n[n.length]=Wr,n[n.length]=Ze("Types",null,{xmlns:un.CT,"xmlns:xsd":un.xsd,"xmlns:xsi":un.xsi}),n=n.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(l){return Ze("Default",null,{Extension:l[0],ContentType:l[1]})}));var A=function(l){t[l]&&t[l].length>0&&(a=t[l][0],n[n.length]=Ze("Override",null,{PartName:(a[0]=="/"?"":"/")+a,ContentType:Qh[l][e.bookType]||Qh[l].xlsx}))},o=function(l){(t[l]||[]).forEach(function(c){n[n.length]=Ze("Override",null,{PartName:(c[0]=="/"?"":"/")+c,ContentType:Qh[l][e.bookType]||Qh[l].xlsx})})},s=function(l){(t[l]||[]).forEach(function(c){n[n.length]=Ze("Override",null,{PartName:(c[0]=="/"?"":"/")+c,ContentType:r[l][0]})})};return A("workbooks"),o("sheets"),o("charts"),s("themes"),["strs","styles"].forEach(A),["coreprops","extprops","custprops"].forEach(s),s("vba"),s("comments"),s("threadedcomments"),s("drawings"),o("metadata"),s("people"),n.length>2&&(n[n.length]="</Types>",n[1]=n[1].replace("/>",">")),n.join("")}var qt={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function Xw(t){var e=t.lastIndexOf("/");return t.slice(0,e+1)+"_rels/"+t.slice(e+1)+".rels"}function Cs(t){var e=[Wr,Ze("Relationships",null,{xmlns:un.RELS})];return Bn(t["!id"]).forEach(function(r){e[e.length]=Ze("Relationship",null,t["!id"][r])}),e.length>2&&(e[e.length]="</Relationships>",e[1]=e[1].replace("/>",">")),e.join("")}function ar(t,e,r,n,a,A){if(a||(a={}),t["!id"]||(t["!id"]={}),t["!idx"]||(t["!idx"]=1),e<0)for(e=t["!idx"];t["!id"]["rId"+e];++e);if(t["!idx"]=e+1,a.Id="rId"+e,a.Type=n,a.Target=r,A?a.TargetMode=A:[qt.HLINK,qt.XPATH,qt.XMISS].indexOf(a.Type)>-1&&(a.TargetMode="External"),t["!id"][a.Id])throw new Error("Cannot rewrite rId "+e);return t["!id"][a.Id]=a,t[("/"+a.Target).replace("//","/")]=a,e}function C6(t){var e=[Wr];e.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">
277
- `),e.push(` <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>
278
- `);for(var r=0;r<t.length;++r)e.push(' <manifest:file-entry manifest:full-path="'+t[r][0]+'" manifest:media-type="'+t[r][1]+`"/>
279
- `);return e.push("</manifest:manifest>"),e.join("")}function qw(t,e,r){return[' <rdf:Description rdf:about="'+t+`">
280
- `,' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(r||"odf")+"#"+e+`"/>
281
- `,` </rdf:Description>
282
- `].join("")}function E6(t,e){return[' <rdf:Description rdf:about="'+t+`">
283
- `,' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+e+`"/>
284
- `,` </rdf:Description>
285
- `].join("")}function _6(t){var e=[Wr];e.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
286
- `);for(var r=0;r!=t.length;++r)e.push(qw(t[r][0],t[r][1])),e.push(E6("",t[r][0]));return e.push(qw("","Document","pkg")),e.push("</rdf:RDF>"),e.join("")}function Yw(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+ph.version+"</meta:generator></office:meta></office:document-meta>"}var _o=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function Bg(t,e,r,n,a){a[t]!=null||e==null||e===""||(a[t]=e,e=rr(e),n[n.length]=r?Ze(t,e,r):xn(t,e))}function Jw(t,e){var r=e||{},n=[Wr,Ze("cp:coreProperties",null,{"xmlns:cp":un.CORE_PROPS,"xmlns:dc":un.dc,"xmlns:dcterms":un.dcterms,"xmlns:dcmitype":un.dcmitype,"xmlns:xsi":un.xsi})],a={};if(!t&&!r.Props)return n.join("");t&&(t.CreatedDate!=null&&Bg("dcterms:created",typeof t.CreatedDate=="string"?t.CreatedDate:ug(t.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a),t.ModifiedDate!=null&&Bg("dcterms:modified",typeof t.ModifiedDate=="string"?t.ModifiedDate:ug(t.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a));for(var A=0;A!=_o.length;++A){var o=_o[A],s=r.Props&&r.Props[o[1]]!=null?r.Props[o[1]]:t?t[o[1]]:null;s===!0?s="1":s===!1?s="0":typeof s=="number"&&(s=String(s)),s!=null&&Bg(o[0],s,null,n,a)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var Es=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],Zw=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function eB(t){var e=[],r=Ze;return t||(t={}),t.Application="SheetJS",e[e.length]=Wr,e[e.length]=Ze("Properties",null,{xmlns:un.EXT_PROPS,"xmlns:vt":un.vt}),Es.forEach(function(n){if(t[n[1]]!==void 0){var a;switch(n[2]){case"string":a=rr(String(t[n[1]]));break;case"bool":a=t[n[1]]?"true":"false";break}a!==void 0&&(e[e.length]=r(n[0],a))}}),e[e.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+r("vt:variant",r("vt:i4",String(t.Worksheets))),{size:2,baseType:"variant"})),e[e.length]=r("TitlesOfParts",r("vt:vector",t.SheetNames.map(function(n){return"<vt:lpstr>"+rr(n)+"</vt:lpstr>"}).join(""),{size:t.Worksheets,baseType:"lpstr"})),e.length>2&&(e[e.length]="</Properties>",e[1]=e[1].replace("/>",">")),e.join("")}function tB(t){var e=[Wr,Ze("Properties",null,{xmlns:un.CUST_PROPS,"xmlns:vt":un.vt})];if(!t)return e.join("");var r=1;return Bn(t).forEach(function(a){++r,e[e.length]=Ze("property",zN(t[a],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:rr(a)})}),e.length>2&&(e[e.length]="</Properties>",e[1]=e[1].replace("/>",">")),e.join("")}var rB={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function F6(t,e){var r=[];return Bn(rB).map(function(n){for(var a=0;a<_o.length;++a)if(_o[a][1]==n)return _o[a];for(a=0;a<Es.length;++a)if(Es[a][1]==n)return Es[a];throw n}).forEach(function(n){if(t[n[1]]!=null){var a=e&&e.Props&&e.Props[n[1]]!=null?e.Props[n[1]]:t[n[1]];switch(n[2]){case"date":a=new Date(a).toISOString().replace(/\.\d*Z/,"Z");break}typeof a=="number"?a=String(a):a===!0||a===!1?a=a?"1":"0":a instanceof Date&&(a=new Date(a).toISOString().replace(/\.\d*Z/,"")),r.push(xn(rB[n[1]]||n[1],a))}}),Ze("DocumentProperties",r.join(""),{xmlns:pa.o})}function S6(t,e){var r=["Worksheets","SheetNames"],n="CustomDocumentProperties",a=[];return t&&Bn(t).forEach(function(A){if(Object.prototype.hasOwnProperty.call(t,A)){for(var o=0;o<_o.length;++o)if(A==_o[o][1])return;for(o=0;o<Es.length;++o)if(A==Es[o][1])return;for(o=0;o<r.length;++o)if(A==r[o])return;var s=t[A],l="string";typeof s=="number"?(l="float",s=String(s)):s===!0||s===!1?(l="boolean",s=s?"1":"0"):s=String(s),a.push(Ze(dw(A),s,{"dt:dt":l}))}}),e&&Bn(e).forEach(function(A){if(Object.prototype.hasOwnProperty.call(e,A)&&!(t&&Object.prototype.hasOwnProperty.call(t,A))){var o=e[A],s="string";typeof o=="number"?(s="float",o=String(o)):o===!0||o===!1?(s="boolean",o=o?"1":"0"):o instanceof Date?(s="dateTime.tz",o=o.toISOString()):o=String(o),a.push(Ze(dw(A),o,{"dt:dt":s}))}}),"<"+n+' xmlns="'+pa.o+'">'+a.join("")+"</"+n+">"}function k6(t){var e=typeof t=="string"?new Date(Date.parse(t)):t,r=e.getTime()/1e3+11644473600,n=r%Math.pow(2,32),a=(r-n)/Math.pow(2,32);n*=1e7,a*=1e7;var A=n/Math.pow(2,32)|0;A>0&&(n=n%Math.pow(2,32),a+=A);var o=Oe(8);return o.write_shift(4,n),o.write_shift(4,a),o}function nB(t,e){var r=Oe(4),n=Oe(4);switch(r.write_shift(4,t==80?31:t),t){case 3:n.write_shift(-4,e);break;case 5:n=Oe(8),n.write_shift(8,e,"f");break;case 11:n.write_shift(4,e?1:0);break;case 64:n=k6(e);break;case 31:case 80:for(n=Oe(4+2*(e.length+1)+(e.length%2?0:2)),n.write_shift(4,e.length+1),n.write_shift(0,e,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+e)}return wn([r,n])}var aB=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function T6(t){switch(typeof t){case"boolean":return 11;case"number":return(t|0)==t?3:5;case"string":return 31;case"object":if(t instanceof Date)return 64;break}return-1}function AB(t,e,r){var n=Oe(8),a=[],A=[],o=8,s=0,l=Oe(8),c=Oe(8);if(l.write_shift(4,2),l.write_shift(4,1200),c.write_shift(4,1),A.push(l),a.push(c),o+=8+l.length,!e){c=Oe(8),c.write_shift(4,0),a.unshift(c);var u=[Oe(4)];for(u[0].write_shift(4,t.length),s=0;s<t.length;++s){var p=t[s][0];for(l=Oe(4+4+2*(p.length+1)+(p.length%2?0:2)),l.write_shift(4,s+2),l.write_shift(4,p.length+1),l.write_shift(0,p,"dbcs");l.l!=l.length;)l.write_shift(1,0);u.push(l)}l=wn(u),A.unshift(l),o+=8+l.length}for(s=0;s<t.length;++s)if(!(e&&!e[t[s][0]])&&!(aB.indexOf(t[s][0])>-1||Zw.indexOf(t[s][0])>-1)&&t[s][1]!=null){var h=t[s][1],d=0;if(e){d=+e[t[s][0]];var w=r[d];if(w.p=="version"&&typeof h=="string"){var f=h.split(".");h=(+f[0]<<16)+(+f[1]||0)}l=nB(w.t,h)}else{var m=T6(h);m==-1&&(m=31,h=String(h)),l=nB(m,h)}A.push(l),c=Oe(8),c.write_shift(4,e?d:2+s),a.push(c),o+=8+l.length}var y=8*(A.length+1);for(s=0;s<A.length;++s)a[s].write_shift(4,y),y+=A[s].length;return n.write_shift(4,o),n.write_shift(4,A.length),wn([n].concat(a).concat(A))}function iB(t,e,r,n,a,A){var o=Oe(a?68:48),s=[o];o.write_shift(2,65534),o.write_shift(2,0),o.write_shift(4,842412599),o.write_shift(16,cr.utils.consts.HEADER_CLSID,"hex"),o.write_shift(4,a?2:1),o.write_shift(16,e,"hex"),o.write_shift(4,a?68:48);var l=AB(t,r,n);if(s.push(l),a){var c=AB(a,null,null);o.write_shift(16,A,"hex"),o.write_shift(4,68+l.length),s.push(c)}return wn(s)}function N6(t,e){e||(e=Oe(t));for(var r=0;r<t;++r)e.write_shift(1,0);return e}function L6(t,e){return t.read_shift(e)===1}function jn(t,e){return e||(e=Oe(2)),e.write_shift(2,+!!t),e}function oB(t){return t.read_shift(2,"u")}function Da(t,e){return e||(e=Oe(2)),e.write_shift(2,t),e}function sB(t,e,r){return r||(r=Oe(2)),r.write_shift(1,e=="e"?+t:+!!t),r.write_shift(1,e=="e"?1:0),r}function lB(t,e,r){var n=t.read_shift(r&&r.biff>=12?2:1),a="sbcs-cont";if(r&&r.biff>=8,!r||r.biff==8){var A=t.read_shift(1);A&&(a="dbcs-cont")}else r.biff==12&&(a="wstr");r.biff>=2&&r.biff<=5&&(a="cpstr");var o=n?t.read_shift(n,a):"";return o}function U6(t){var e=t.t||"",r=Oe(3+0);r.write_shift(2,e.length),r.write_shift(1,1);var n=Oe(2*e.length);n.write_shift(2*e.length,e,"utf16le");var a=[r,n];return wn(a)}function I6(t,e,r){var n;if(r){if(r.biff>=2&&r.biff<=5)return t.read_shift(e,"cpstr");if(r.biff>=12)return t.read_shift(e,"dbcs-cont")}var a=t.read_shift(1);return a===0?n=t.read_shift(e,"sbcs-cont"):n=t.read_shift(e,"dbcs-cont"),n}function D6(t,e,r){var n=t.read_shift(r&&r.biff==2?1:2);return n===0?(t.l++,""):I6(t,n,r)}function Q6(t,e,r){if(r.biff>5)return D6(t,e,r);var n=t.read_shift(1);return n===0?(t.l++,""):t.read_shift(n,r.biff<=4||!t.lens?"cpstr":"sbcs-cont")}function cB(t,e,r){return r||(r=Oe(3+2*t.length)),r.write_shift(2,t.length),r.write_shift(1,1),r.write_shift(31,t,"utf16le"),r}function uB(t,e){e||(e=Oe(6+t.length*2)),e.write_shift(4,1+t.length);for(var r=0;r<t.length;++r)e.write_shift(2,t.charCodeAt(r));return e.write_shift(2,0),e}function O6(t){var e=Oe(512),r=0,n=t.Target;n.slice(0,7)=="file://"&&(n=n.slice(7));var a=n.indexOf("#"),A=a>-1?31:23;switch(n.charAt(0)){case"#":A=28;break;case".":A&=-3;break}e.write_shift(4,2),e.write_shift(4,A);var o=[8,6815827,6619237,4849780,83];for(r=0;r<o.length;++r)e.write_shift(4,o[r]);if(A==28)n=n.slice(1),uB(n,e);else if(A&2){for(o="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<o.length;++r)e.write_shift(1,parseInt(o[r],16));var s=a>-1?n.slice(0,a):n;for(e.write_shift(4,2*(s.length+1)),r=0;r<s.length;++r)e.write_shift(2,s.charCodeAt(r));e.write_shift(2,0),A&8&&uB(a>-1?n.slice(a+1):"",e)}else{for(o="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r<o.length;++r)e.write_shift(1,parseInt(o[r],16));for(var l=0;n.slice(l*3,l*3+3)=="../"||n.slice(l*3,l*3+3)=="..\\";)++l;for(e.write_shift(2,l),e.write_shift(4,n.length-3*l+1),r=0;r<n.length-3*l;++r)e.write_shift(1,n.charCodeAt(r+3*l)&255);for(e.write_shift(1,0),e.write_shift(2,65535),e.write_shift(2,57005),r=0;r<6;++r)e.write_shift(4,0)}return e.slice(0,e.l)}function Fo(t,e,r,n){return n||(n=Oe(6)),n.write_shift(2,t),n.write_shift(2,e),n.write_shift(2,r||0),n}function P6(t,e,r){var n=r.biff>8?4:2,a=t.read_shift(n),A=t.read_shift(n,"i"),o=t.read_shift(n,"i");return[a,A,o]}function M6(t){var e=t.read_shift(2),r=t.read_shift(2),n=t.read_shift(2),a=t.read_shift(2);return{s:{c:n,r:e},e:{c:a,r}}}function hB(t,e){return e||(e=Oe(8)),e.write_shift(2,t.s.r),e.write_shift(2,t.e.r),e.write_shift(2,t.s.c),e.write_shift(2,t.e.c),e}function xg(t,e,r){var n=1536,a=16;switch(r.bookType){case"biff8":break;case"biff5":n=1280,a=8;break;case"biff4":n=4,a=6;break;case"biff3":n=3,a=6;break;case"biff2":n=2,a=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var A=Oe(a);return A.write_shift(2,n),A.write_shift(2,e),a>4&&A.write_shift(2,29282),a>6&&A.write_shift(2,1997),a>8&&(A.write_shift(2,49161),A.write_shift(2,1),A.write_shift(2,1798),A.write_shift(2,0)),A}function R6(t,e){var r=!e||e.biff==8,n=Oe(r?112:54);for(n.write_shift(e.biff==8?2:1,7),r&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(r?0:536870912));n.l<n.length;)n.write_shift(1,r?0:32);return n}function H6(t,e){var r=!e||e.biff>=8?2:1,n=Oe(8+r*t.name.length);n.write_shift(4,t.pos),n.write_shift(1,t.hs||0),n.write_shift(1,t.dt),n.write_shift(1,t.name.length),e.biff>=8&&n.write_shift(1,1),n.write_shift(r*t.name.length,t.name,e.biff<8?"sbcs":"utf16le");var a=n.slice(0,n.l);return a.l=n.l,a}function V6(t,e){var r=Oe(8);r.write_shift(4,t.Count),r.write_shift(4,t.Unique);for(var n=[],a=0;a<t.length;++a)n[a]=U6(t[a]);var A=wn([r].concat(n));return A.parts=[r.length].concat(n.map(function(o){return o.length})),A}function $6(){var t=Oe(18);return t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,29280),t.write_shift(2,17600),t.write_shift(2,56),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,1),t.write_shift(2,500),t}function z6(t){var e=Oe(18),r=1718;return t&&t.RTL&&(r|=64),e.write_shift(2,r),e.write_shift(4,0),e.write_shift(4,64),e.write_shift(4,0),e.write_shift(4,0),e}function K6(t,e){var r=t.name||"Arial",n=e&&e.biff==5,a=n?15+r.length:16+2*r.length,A=Oe(a);return A.write_shift(2,(t.sz||12)*20),A.write_shift(4,0),A.write_shift(2,400),A.write_shift(4,0),A.write_shift(2,0),A.write_shift(1,r.length),n||A.write_shift(1,1),A.write_shift((n?1:2)*r.length,r,n?"sbcs":"utf16le"),A}function G6(t,e,r,n){var a=Oe(10);return Fo(t,e,n,a),a.write_shift(4,r),a}function j6(t,e,r,n,a){var A=!a||a.biff==8,o=Oe(6+2+ +A+(1+A)*r.length);return Fo(t,e,n,o),o.write_shift(2,r.length),A&&o.write_shift(1,1),o.write_shift((1+A)*r.length,r,A?"utf16le":"sbcs"),o}function W6(t,e,r,n){var a=r&&r.biff==5;n||(n=Oe(a?3+e.length:5+2*e.length)),n.write_shift(2,t),n.write_shift(a?1:2,e.length),a||n.write_shift(1,1),n.write_shift((a?1:2)*e.length,e,a?"sbcs":"utf16le");var A=n.length>n.l?n.slice(0,n.l):n;return A.l==null&&(A.l=A.length),A}function X6(t,e){var r=e.biff==8||!e.biff?4:2,n=Oe(2*r+6);return n.write_shift(r,t.s.r),n.write_shift(r,t.e.r+1),n.write_shift(2,t.s.c),n.write_shift(2,t.e.c+1),n.write_shift(2,0),n}function fB(t,e,r,n){var a=r&&r.biff==5;n||(n=Oe(a?16:20)),n.write_shift(2,0),t.style?(n.write_shift(2,t.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,t.numFmtId||0),n.write_shift(2,e<<4));var A=0;return t.numFmtId>0&&a&&(A|=1024),n.write_shift(4,A),n.write_shift(4,0),a||n.write_shift(4,0),n.write_shift(2,0),n}function q6(t){var e=Oe(8);return e.write_shift(4,0),e.write_shift(2,t[0]?t[0]+1:0),e.write_shift(2,t[1]?t[1]+1:0),e}function Y6(t,e,r,n,a,A){var o=Oe(8);return Fo(t,e,n,o),sB(r,A,o),o}function J6(t,e,r,n){var a=Oe(14);return Fo(t,e,n,a),Eo(r,a),a}function Z6(t,e,r){if(r.biff<8)return eL(t,e,r);for(var n=[],a=t.l+e,A=t.read_shift(r.biff>8?4:2);A--!==0;)n.push(P6(t,r.biff>8?12:6,r));if(t.l!=a)throw new Error("Bad ExternSheet: "+t.l+" != "+a);return n}function eL(t,e,r){t[t.l+1]==3&&t[t.l]++;var n=lB(t,e,r);return n.charCodeAt(0)==3?n.slice(1):n}function tL(t){var e=Oe(2+t.length*8);e.write_shift(2,t.length);for(var r=0;r<t.length;++r)hB(t[r],e);return e}function rL(t){var e=Oe(24),r=hn(t[0]);e.write_shift(2,r.r),e.write_shift(2,r.r),e.write_shift(2,r.c),e.write_shift(2,r.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),a=0;a<16;++a)e.write_shift(1,parseInt(n[a],16));return wn([e,O6(t[1])])}function nL(t){var e=t[1].Tooltip,r=Oe(10+2*(e.length+1));r.write_shift(2,2048);var n=hn(t[0]);r.write_shift(2,n.r),r.write_shift(2,n.r),r.write_shift(2,n.c),r.write_shift(2,n.c);for(var a=0;a<e.length;++a)r.write_shift(2,e.charCodeAt(a));return r.write_shift(2,0),r}function aL(t){return t||(t=Oe(4)),t.write_shift(2,1),t.write_shift(2,1),t}function AL(t,e,r){if(!r.cellStyles)return SA(t,e);var n=r&&r.biff>=12?4:2,a=t.read_shift(n),A=t.read_shift(n),o=t.read_shift(n),s=t.read_shift(n),l=t.read_shift(2);n==2&&(t.l+=2);var c={s:a,e:A,w:o,ixfe:s,flags:l};return(r.biff>=5||!r.biff)&&(c.level=l>>8&7),c}function iL(t,e){var r=Oe(12);r.write_shift(2,e),r.write_shift(2,e),r.write_shift(2,t.width*256),r.write_shift(2,0);var n=0;return t.hidden&&(n|=1),r.write_shift(1,n),n=t.level||0,r.write_shift(1,n),r.write_shift(2,0),r}function oL(t){for(var e=Oe(2*t),r=0;r<t;++r)e.write_shift(2,r+1);return e}function sL(t,e,r){var n=Oe(15);return ic(n,t,e),n.write_shift(8,r,"f"),n}function lL(t,e,r){var n=Oe(9);return ic(n,t,e),n.write_shift(2,r),n}var cL=function(){var t={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},e=ig({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function r(s,l){var c=[],u=yo(1);switch(l.type){case"base64":u=Xa(jA(s));break;case"binary":u=Xa(s);break;case"buffer":case"array":u=s;break}ya(u,0);var p=u.read_shift(1),h=!!(p&136),d=!1,w=!1;switch(p){case 2:break;case 3:break;case 48:d=!0,h=!0;break;case 49:d=!0,h=!0;break;case 131:break;case 139:break;case 140:w=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+p.toString(16))}var f=0,m=521;p==2&&(f=u.read_shift(2)),u.l+=3,p!=2&&(f=u.read_shift(4)),f>1048576&&(f=1e6),p!=2&&(m=u.read_shift(2));var y=u.read_shift(2),F=l.codepage||1252;p!=2&&(u.l+=16,u.read_shift(1),u[u.l]!==0&&(F=t[u[u.l]]),u.l+=1,u.l+=2),w&&(u.l+=36);for(var N=[],D={},H=Math.min(u.length,p==2?521:m-10-(d?264:0)),R=w?32:11;u.l<H&&u[u.l]!=13;)switch(D={},D.name=mo.utils.decode(F,u.slice(u.l,u.l+R)).replace(/[\u0000\r\n].*$/g,""),u.l+=R,D.type=String.fromCharCode(u.read_shift(1)),p!=2&&!w&&(D.offset=u.read_shift(4)),D.len=u.read_shift(1),p==2&&(D.offset=u.read_shift(2)),D.dec=u.read_shift(1),D.name.length&&N.push(D),p!=2&&(u.l+=w?13:14),D.type){case"B":(!d||D.len!=8)&&l.WTF&&console.log("Skipping "+D.name+":"+D.type);break;case"G":case"P":l.WTF&&console.log("Skipping "+D.name+":"+D.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+D.type)}if(u[u.l]!==13&&(u.l=m-1),u.read_shift(1)!==13)throw new Error("DBF Terminator not found "+u.l+" "+u[u.l]);u.l=m;var U=0,I=0;for(c[0]=[],I=0;I!=N.length;++I)c[0][I]=N[I].name;for(;f-- >0;){if(u[u.l]===42){u.l+=y;continue}for(++u.l,c[++U]=[],I=0,I=0;I!=N.length;++I){var O=u.slice(u.l,u.l+N[I].len);u.l+=N[I].len,ya(O,0);var q=mo.utils.decode(F,O);switch(N[I].type){case"C":q.trim().length&&(c[U][I]=q.replace(/\s+$/,""));break;case"D":q.length===8?c[U][I]=new Date(+q.slice(0,4),+q.slice(4,6)-1,+q.slice(6,8)):c[U][I]=q;break;case"F":c[U][I]=parseFloat(q.trim());break;case"+":case"I":c[U][I]=w?O.read_shift(-4,"i")^2147483648:O.read_shift(4,"i");break;case"L":switch(q.trim().toUpperCase()){case"Y":case"T":c[U][I]=!0;break;case"N":case"F":c[U][I]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+q+"|")}break;case"M":if(!h)throw new Error("DBF Unexpected MEMO for type "+p.toString(16));c[U][I]="##MEMO##"+(w?parseInt(q.trim(),10):O.read_shift(4));break;case"N":q=q.replace(/\u0000/g,"").trim(),q&&q!="."&&(c[U][I]=+q||0);break;case"@":c[U][I]=new Date(O.read_shift(-8,"f")-621356832e5);break;case"T":c[U][I]=new Date((O.read_shift(4)-2440588)*864e5+O.read_shift(4));break;case"Y":c[U][I]=O.read_shift(4,"i")/1e4+O.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":c[U][I]=-O.read_shift(-8,"f");break;case"B":if(d&&N[I].len==8){c[U][I]=O.read_shift(8,"f");break}case"G":case"P":O.l+=N[I].len;break;case"0":if(N[I].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+N[I].type)}}}if(p!=2&&u.l<u.length&&u[u.l++]!=26)throw new Error("DBF EOF Marker missing "+(u.l-1)+" of "+u.length+" "+u[u.l-1].toString(16));return l&&l.sheetRows&&(c=c.slice(0,l.sheetRows)),l.DBF=N,c}function n(s,l){var c=l||{};c.dateNF||(c.dateNF="yyyymmdd");var u=Bs(r(s,c),c);return u["!cols"]=c.DBF.map(function(p){return{wch:p.len,DBF:p}}),delete c.DBF,u}function a(s,l){try{return wo(n(s,l),l)}catch(c){if(l&&l.WTF)throw c}return{SheetNames:[],Sheets:{}}}var A={B:8,C:250,L:1,D:8,"?":0,"":0};function o(s,l){var c=l||{};if(+c.codepage>=0&&$l(+c.codepage),c.type=="string")throw new Error("Cannot write DBF to JS string");var u=Aa(),p=Kh(s,{header:1,raw:!0,cellDates:!0}),h=p[0],d=p.slice(1),w=s["!cols"]||[],f=0,m=0,y=0,F=1;for(f=0;f<h.length;++f){if(((w[f]||{}).DBF||{}).name){h[f]=w[f].DBF.name,++y;continue}if(h[f]!=null){if(++y,typeof h[f]=="number"&&(h[f]=h[f].toString(10)),typeof h[f]!="string")throw new Error("DBF Invalid column name "+h[f]+" |"+typeof h[f]+"|");if(h.indexOf(h[f])!==f){for(m=0;m<1024;++m)if(h.indexOf(h[f]+"_"+m)==-1){h[f]+="_"+m;break}}}}var N=Br(s["!ref"]),D=[],H=[],R=[];for(f=0;f<=N.e.c-N.s.c;++f){var U="",I="",O=0,q=[];for(m=0;m<d.length;++m)d[m][f]!=null&&q.push(d[m][f]);if(q.length==0||h[f]==null){D[f]="?";continue}for(m=0;m<q.length;++m){switch(typeof q[m]){case"number":I="B";break;case"string":I="C";break;case"boolean":I="L";break;case"object":I=q[m]instanceof Date?"D":"C";break;default:I="C"}O=Math.max(O,String(q[m]).length),U=U&&U!=I?"C":I}O>250&&(O=250),I=((w[f]||{}).DBF||{}).type,I=="C"&&w[f].DBF.len>O&&(O=w[f].DBF.len),U=="B"&&I=="N"&&(U="N",R[f]=w[f].DBF.dec,O=w[f].DBF.len),H[f]=U=="C"||I=="N"?O:A[U]||0,F+=H[f],D[f]=U}var T=u.next(32);for(T.write_shift(4,318902576),T.write_shift(4,d.length),T.write_shift(2,296+32*y),T.write_shift(2,F),f=0;f<4;++f)T.write_shift(4,0);for(T.write_shift(4,0|(+e[Pv]||3)<<8),f=0,m=0;f<h.length;++f)if(h[f]!=null){var L=u.next(32),G=(h[f].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);L.write_shift(1,G,"sbcs"),L.write_shift(1,D[f]=="?"?"C":D[f],"sbcs"),L.write_shift(4,m),L.write_shift(1,H[f]||A[D[f]]||0),L.write_shift(1,R[f]||0),L.write_shift(1,2),L.write_shift(4,0),L.write_shift(1,0),L.write_shift(4,0),L.write_shift(4,0),m+=H[f]||A[D[f]]||0}var Y=u.next(264);for(Y.write_shift(4,13),f=0;f<65;++f)Y.write_shift(4,0);for(f=0;f<d.length;++f){var se=u.next(F);for(se.write_shift(1,0),m=0;m<h.length;++m)if(h[m]!=null)switch(D[m]){case"L":se.write_shift(1,d[f][m]==null?63:d[f][m]?84:70);break;case"B":se.write_shift(8,d[f][m]||0,"f");break;case"N":var he="0";for(typeof d[f][m]=="number"&&(he=d[f][m].toFixed(R[m]||0)),y=0;y<H[m]-he.length;++y)se.write_shift(1,32);se.write_shift(1,he,"sbcs");break;case"D":d[f][m]?(se.write_shift(4,("0000"+d[f][m].getFullYear()).slice(-4),"sbcs"),se.write_shift(2,("00"+(d[f][m].getMonth()+1)).slice(-2),"sbcs"),se.write_shift(2,("00"+d[f][m].getDate()).slice(-2),"sbcs")):se.write_shift(8,"00000000","sbcs");break;case"C":var ge=String(d[f][m]!=null?d[f][m]:"").slice(0,H[m]);for(se.write_shift(1,ge,"sbcs"),y=0;y<H[m]-ge.length;++y)se.write_shift(1,32);break}}return u.next(1).write_shift(1,26),u.end()}return{to_workbook:a,to_sheet:n,from_sheet:o}}(),uL=function(){var t={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},e=new RegExp("\x1BN("+Bn(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(h,d){var w=t[d];return typeof w=="number"?Rv(w):w},n=function(h,d,w){var f=d.charCodeAt(0)-32<<4|w.charCodeAt(0)-48;return f==59?h:Rv(f)};t["|"]=254;function a(h,d){switch(d.type){case"base64":return A(jA(h),d);case"binary":return A(h,d);case"buffer":return A(Jt&&Buffer.isBuffer(h)?h.toString("binary"):Kl(h),d);case"array":return A(Sh(h),d)}throw new Error("Unrecognized type "+d.type)}function A(h,d){var w=h.split(/[\n\r]+/),f=-1,m=-1,y=0,F=0,N=[],D=[],H=null,R={},U=[],I=[],O=[],q=0,T;for(+d.codepage>=0&&$l(+d.codepage);y!==w.length;++y){q=0;var L=w[y].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(e,r),G=L.replace(/;;/g,"\0").split(";").map(function(x){return x.replace(/\u0000/g,";")}),Y=G[0],se;if(L.length>0)switch(Y){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":G[1].charAt(0)=="P"&&D.push(L.slice(3).replace(/;;/g,";"));break;case"C":var he=!1,ge=!1,re=!1,le=!1,fe=-1,Ue=-1;for(F=1;F<G.length;++F)switch(G[F].charAt(0)){case"A":break;case"X":m=parseInt(G[F].slice(1))-1,ge=!0;break;case"Y":for(f=parseInt(G[F].slice(1))-1,ge||(m=0),T=N.length;T<=f;++T)N[T]=[];break;case"K":se=G[F].slice(1),se.charAt(0)==='"'?se=se.slice(1,se.length-1):se==="TRUE"?se=!0:se==="FALSE"?se=!1:isNaN(qA(se))?isNaN(Wl(se).getDate())||(se=Gn(se)):(se=qA(se),H!==null&&nw(H)&&(se=uw(se))),he=!0;break;case"E":le=!0;var b=l8(G[F].slice(1),{r:f,c:m});N[f][m]=[N[f][m],b];break;case"S":re=!0,N[f][m]=[N[f][m],"S5S"];break;case"G":break;case"R":fe=parseInt(G[F].slice(1))-1;break;case"C":Ue=parseInt(G[F].slice(1))-1;break;default:if(d&&d.WTF)throw new Error("SYLK bad record "+L)}if(he&&(N[f][m]&&N[f][m].length==2?N[f][m][0]=se:N[f][m]=se,H=null),re){if(le)throw new Error("SYLK shared formula cannot have own formula");var _=fe>-1&&N[fe][Ue];if(!_||!_[1])throw new Error("SYLK shared formula cannot find base");N[f][m][1]=c8(_[1],{r:f-fe,c:m-Ue})}break;case"F":var B=0;for(F=1;F<G.length;++F)switch(G[F].charAt(0)){case"X":m=parseInt(G[F].slice(1))-1,++B;break;case"Y":for(f=parseInt(G[F].slice(1))-1,T=N.length;T<=f;++T)N[T]=[];break;case"M":q=parseInt(G[F].slice(1))/20;break;case"F":break;case"G":break;case"P":H=D[parseInt(G[F].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(O=G[F].slice(1).split(" "),T=parseInt(O[0],10);T<=parseInt(O[1],10);++T)q=parseInt(O[2],10),I[T-1]=q===0?{hidden:!0}:{wch:q},Cg(I[T-1]);break;case"C":m=parseInt(G[F].slice(1))-1,I[m]||(I[m]={});break;case"R":f=parseInt(G[F].slice(1))-1,U[f]||(U[f]={}),q>0?(U[f].hpt=q,U[f].hpx=wB(q)):q===0&&(U[f].hidden=!0);break;default:if(d&&d.WTF)throw new Error("SYLK bad record "+L)}B<1&&(H=null);break;default:if(d&&d.WTF)throw new Error("SYLK bad record "+L)}}return U.length>0&&(R["!rows"]=U),I.length>0&&(R["!cols"]=I),d&&d.sheetRows&&(N=N.slice(0,d.sheetRows)),[N,R]}function o(h,d){var w=a(h,d),f=w[0],m=w[1],y=Bs(f,d);return Bn(m).forEach(function(F){y[F]=m[F]}),y}function s(h,d){return wo(o(h,d),d)}function l(h,d,w,f){var m="C;Y"+(w+1)+";X"+(f+1)+";K";switch(h.t){case"n":m+=h.v||0,h.f&&!h.F&&(m+=";E"+Fg(h.f,{r:w,c:f}));break;case"b":m+=h.v?"TRUE":"FALSE";break;case"e":m+=h.w||h.v;break;case"d":m+='"'+(h.w||h.v)+'"';break;case"s":m+='"'+h.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return m}function c(h,d){d.forEach(function(w,f){var m="F;W"+(f+1)+" "+(f+1)+" ";w.hidden?m+="0":(typeof w.width=="number"&&!w.wpx&&(w.wpx=Oh(w.width)),typeof w.wpx=="number"&&!w.wch&&(w.wch=Ph(w.wpx)),typeof w.wch=="number"&&(m+=Math.round(w.wch))),m.charAt(m.length-1)!=" "&&h.push(m)})}function u(h,d){d.forEach(function(w,f){var m="F;";w.hidden?m+="M0;":w.hpt?m+="M"+20*w.hpt+";":w.hpx&&(m+="M"+20*Mh(w.hpx)+";"),m.length>2&&h.push(m+"R"+(f+1))})}function p(h,d){var w=["ID;PWXL;N;E"],f=[],m=Br(h["!ref"]),y,F=Array.isArray(h),N=`\r
287
- `;w.push("P;PGeneral"),w.push("F;P0;DG0G8;M255"),h["!cols"]&&c(w,h["!cols"]),h["!rows"]&&u(w,h["!rows"]),w.push("B;Y"+(m.e.r-m.s.r+1)+";X"+(m.e.c-m.s.c+1)+";D"+[m.s.c,m.s.r,m.e.c,m.e.r].join(" "));for(var D=m.s.r;D<=m.e.r;++D)for(var H=m.s.c;H<=m.e.c;++H){var R=nr({r:D,c:H});y=F?(h[D]||[])[H]:h[R],!(!y||y.v==null&&(!y.f||y.F))&&f.push(l(y,h,D,H))}return w.join(N)+N+f.join(N)+N+"E"+N}return{to_workbook:s,to_sheet:o,from_sheet:p}}(),hL=function(){function t(A,o){switch(o.type){case"base64":return e(jA(A),o);case"binary":return e(A,o);case"buffer":return e(Jt&&Buffer.isBuffer(A)?A.toString("binary"):Kl(A),o);case"array":return e(Sh(A),o)}throw new Error("Unrecognized type "+o.type)}function e(A,o){for(var s=A.split(`
288
- `),l=-1,c=-1,u=0,p=[];u!==s.length;++u){if(s[u].trim()==="BOT"){p[++l]=[],c=0;continue}if(!(l<0)){var h=s[u].trim().split(","),d=h[0],w=h[1];++u;for(var f=s[u]||"";(f.match(/["]/g)||[]).length&1&&u<s.length-1;)f+=`
289
- `+s[++u];switch(f=f.trim(),+d){case-1:if(f==="BOT"){p[++l]=[],c=0;continue}else if(f!=="EOD")throw new Error("Unrecognized DIF special command "+f);break;case 0:f==="TRUE"?p[l][c]=!0:f==="FALSE"?p[l][c]=!1:isNaN(qA(w))?isNaN(Wl(w).getDate())?p[l][c]=w:p[l][c]=Gn(w):p[l][c]=qA(w),++c;break;case 1:f=f.slice(1,f.length-1),f=f.replace(/""/g,'"'),f&&f.match(/^=".*"$/)&&(f=f.slice(2,-1)),p[l][c++]=f!==""?f:null;break}if(f==="EOD")break}}return o&&o.sheetRows&&(p=p.slice(0,o.sheetRows)),p}function r(A,o){return Bs(t(A,o),o)}function n(A,o){return wo(r(A,o),o)}var a=function(){var A=function(l,c,u,p,h){l.push(c),l.push(u+","+p),l.push('"'+h.replace(/"/g,'""')+'"')},o=function(l,c,u,p){l.push(c+","+u),l.push(c==1?'"'+p.replace(/"/g,'""')+'"':p)};return function(l){var c=[],u=Br(l["!ref"]),p,h=Array.isArray(l);A(c,"TABLE",0,1,"sheetjs"),A(c,"VECTORS",0,u.e.r-u.s.r+1,""),A(c,"TUPLES",0,u.e.c-u.s.c+1,""),A(c,"DATA",0,0,"");for(var d=u.s.r;d<=u.e.r;++d){o(c,-1,0,"BOT");for(var w=u.s.c;w<=u.e.c;++w){var f=nr({r:d,c:w});if(p=h?(l[d]||[])[w]:l[f],!p){o(c,1,0,"");continue}switch(p.t){case"n":var m=p.w;!m&&p.v!=null&&(m=p.v),m==null?p.f&&!p.F?o(c,1,0,"="+p.f):o(c,1,0,""):o(c,0,m,"V");break;case"b":o(c,0,p.v?1:0,p.v?"TRUE":"FALSE");break;case"s":o(c,1,0,isNaN(p.v)?p.v:'="'+p.v+'"');break;case"d":p.w||(p.w=Di(p.z||kr[14],na(Gn(p.v)))),o(c,0,p.w,"V");break;default:o(c,1,0,"")}}}o(c,-1,0,"EOD");var y=`\r
290
- `,F=c.join(y);return F}}();return{to_workbook:n,to_sheet:r,from_sheet:a}}(),dB=function(){function t(p){return p.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
291
- `)}function e(p){return p.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(p,h){for(var d=p.split(`
292
- `),w=-1,f=-1,m=0,y=[];m!==d.length;++m){var F=d[m].trim().split(":");if(F[0]==="cell"){var N=hn(F[1]);if(y.length<=N.r)for(w=y.length;w<=N.r;++w)y[w]||(y[w]=[]);switch(w=N.r,f=N.c,F[2]){case"t":y[w][f]=t(F[3]);break;case"v":y[w][f]=+F[3];break;case"vtf":var D=F[F.length-1];case"vtc":switch(F[3]){case"nl":y[w][f]=!!+F[4];break;default:y[w][f]=+F[4];break}F[2]=="vtf"&&(y[w][f]=[y[w][f],D])}}}return h&&h.sheetRows&&(y=y.slice(0,h.sheetRows)),y}function n(p,h){return Bs(r(p,h),h)}function a(p,h){return wo(n(p,h),h)}var A=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
293
- `),o=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
294
- `)+`
295
- `,s=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
296
- `),l="--SocialCalcSpreadsheetControlSave--";function c(p){if(!p||!p["!ref"])return"";for(var h=[],d=[],w,f="",m=va(p["!ref"]),y=Array.isArray(p),F=m.s.r;F<=m.e.r;++F)for(var N=m.s.c;N<=m.e.c;++N)if(f=nr({r:F,c:N}),w=y?(p[F]||[])[N]:p[f],!(!w||w.v==null||w.t==="z")){switch(d=["cell",f,"t"],w.t){case"s":case"str":d.push(e(w.v));break;case"n":w.f?(d[2]="vtf",d[3]="n",d[4]=w.v,d[5]=e(w.f)):(d[2]="v",d[3]=w.v);break;case"b":d[2]="vt"+(w.f?"f":"c"),d[3]="nl",d[4]=w.v?"1":"0",d[5]=e(w.f||(w.v?"TRUE":"FALSE"));break;case"d":var D=na(Gn(w.v));d[2]="vtc",d[3]="nd",d[4]=""+D,d[5]=w.w||Di(w.z||kr[14],D);break;case"e":continue}h.push(d.join(":"))}return h.push("sheet:c:"+(m.e.c-m.s.c+1)+":r:"+(m.e.r-m.s.r+1)+":tvf:1"),h.push("valueformat:1:text-wiki"),h.join(`
297
- `)}function u(p){return[A,o,s,o,c(p),l].join(`
298
- `)}return{to_workbook:a,to_sheet:n,from_sheet:u}}(),fL=function(){function t(u,p,h,d,w){w.raw?p[h][d]=u:u===""||(u==="TRUE"?p[h][d]=!0:u==="FALSE"?p[h][d]=!1:isNaN(qA(u))?isNaN(Wl(u).getDate())?p[h][d]=u:p[h][d]=Gn(u):p[h][d]=qA(u))}function e(u,p){var h=p||{},d=[];if(!u||u.length===0)return d;for(var w=u.split(/[\r\n]/),f=w.length-1;f>=0&&w[f].length===0;)--f;for(var m=10,y=0,F=0;F<=f;++F)y=w[F].indexOf(" "),y==-1?y=w[F].length:y++,m=Math.max(m,y);for(F=0;F<=f;++F){d[F]=[];var N=0;for(t(w[F].slice(0,m).trim(),d,F,N,h),N=1;N<=(w[F].length-m)/10+1;++N)t(w[F].slice(m+(N-1)*10,m+N*10).trim(),d,F,N,h)}return h.sheetRows&&(d=d.slice(0,h.sheetRows)),d}var r={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function a(u){for(var p={},h=!1,d=0,w=0;d<u.length;++d)(w=u.charCodeAt(d))==34?h=!h:!h&&w in r&&(p[w]=(p[w]||0)+1);w=[];for(d in p)Object.prototype.hasOwnProperty.call(p,d)&&w.push([p[d],d]);if(!w.length){p=n;for(d in p)Object.prototype.hasOwnProperty.call(p,d)&&w.push([p[d],d])}return w.sort(function(f,m){return f[0]-m[0]||n[f[1]]-n[m[1]]}),r[w.pop()[1]]||44}function A(u,p){var h=p||{},d="",w=h.dense?[]:{},f={s:{c:0,r:0},e:{c:0,r:0}};u.slice(0,4)=="sep="?u.charCodeAt(5)==13&&u.charCodeAt(6)==10?(d=u.charAt(4),u=u.slice(7)):u.charCodeAt(5)==13||u.charCodeAt(5)==10?(d=u.charAt(4),u=u.slice(6)):d=a(u.slice(0,1024)):h&&h.FS?d=h.FS:d=a(u.slice(0,1024));var m=0,y=0,F=0,N=0,D=0,H=d.charCodeAt(0),R=!1,U=0,I=u.charCodeAt(0);u=u.replace(/\r\n/mg,`
299
- `);var O=h.dateNF!=null?kN(h.dateNF):null;function q(){var T=u.slice(N,D),L={};if(T.charAt(0)=='"'&&T.charAt(T.length-1)=='"'&&(T=T.slice(1,-1).replace(/""/g,'"')),T.length===0)L.t="z";else if(h.raw)L.t="s",L.v=T;else if(T.trim().length===0)L.t="s",L.v=T;else if(T.charCodeAt(0)==61)T.charCodeAt(1)==34&&T.charCodeAt(T.length-1)==34?(L.t="s",L.v=T.slice(2,-1).replace(/""/g,'"')):u8(T)?(L.t="n",L.f=T.slice(1)):(L.t="s",L.v=T);else if(T=="TRUE")L.t="b",L.v=!0;else if(T=="FALSE")L.t="b",L.v=!1;else if(!isNaN(F=qA(T)))L.t="n",h.cellText!==!1&&(L.w=T),L.v=F;else if(!isNaN(Wl(T).getDate())||O&&T.match(O)){L.z=h.dateNF||kr[14];var G=0;O&&T.match(O)&&(T=TN(T,h.dateNF,T.match(O)||[]),G=1),h.cellDates?(L.t="d",L.v=Gn(T,G)):(L.t="n",L.v=na(Gn(T,G))),h.cellText!==!1&&(L.w=Di(L.z,L.v instanceof Date?na(L.v):L.v)),h.cellNF||delete L.z}else L.t="s",L.v=T;if(L.t=="z"||(h.dense?(w[m]||(w[m]=[]),w[m][y]=L):w[nr({c:y,r:m})]=L),N=D+1,I=u.charCodeAt(N),f.e.c<y&&(f.e.c=y),f.e.r<m&&(f.e.r=m),U==H)++y;else if(y=0,++m,h.sheetRows&&h.sheetRows<=m)return!0}e:for(;D<u.length;++D)switch(U=u.charCodeAt(D)){case 34:I===34&&(R=!R);break;case H:case 10:case 13:if(!R&&q())break e;break}return D-N>0&&q(),w["!ref"]=Xr(f),w}function o(u,p){return!(p&&p.PRN)||p.FS||u.slice(0,4)=="sep="||u.indexOf(" ")>=0||u.indexOf(",")>=0||u.indexOf(";")>=0?A(u,p):Bs(e(u,p),p)}function s(u,p){var h="",d=p.type=="string"?[0,0,0,0]:EQ(u,p);switch(p.type){case"base64":h=jA(u);break;case"binary":h=u;break;case"buffer":p.codepage==65001?h=u.toString("utf8"):p.codepage&&typeof mo<"u"?h=mo.utils.decode(p.codepage,u):h=Jt&&Buffer.isBuffer(u)?u.toString("binary"):Kl(u);break;case"array":h=Sh(u);break;case"string":h=u;break;default:throw new Error("Unrecognized type "+p.type)}return d[0]==239&&d[1]==187&&d[2]==191?h=Xl(h.slice(3)):p.type!="string"&&p.type!="buffer"&&p.codepage==65001?h=Xl(h):p.type=="binary"&&typeof mo<"u"&&p.codepage&&(h=mo.utils.decode(p.codepage,mo.utils.encode(28591,h))),h.slice(0,19)=="socialcalc:version:"?dB.to_sheet(p.type=="string"?h:Xl(h),p):o(h,p)}function l(u,p){return wo(s(u,p),p)}function c(u){for(var p=[],h=Br(u["!ref"]),d,w=Array.isArray(u),f=h.s.r;f<=h.e.r;++f){for(var m=[],y=h.s.c;y<=h.e.c;++y){var F=nr({r:f,c:y});if(d=w?(u[f]||[])[y]:u[F],!d||d.v==null){m.push(" ");continue}for(var N=(d.w||(JA(d),d.w)||"").slice(0,10);N.length<10;)N+=" ";m.push(N+(y===0?" ":""))}p.push(m.join(""))}return p.join(`
300
- `)}return{to_workbook:l,to_sheet:s,from_sheet:c}}(),gB=function(){function t(b,_,B){if(b){ya(b,b.l||0);for(var x=B.Enum||fe;b.l<b.length;){var S=b.read_shift(2),Q=x[S]||x[65535],W=b.read_shift(2),ue=b.l+W,Ce=Q.f&&Q.f(b,W,B);if(b.l=ue,_(Ce,Q,S))return}}}function e(b,_){switch(_.type){case"base64":return r(Xa(jA(b)),_);case"binary":return r(Xa(b),_);case"buffer":case"array":return r(b,_)}throw"Unsupported type "+_.type}function r(b,_){if(!b)return b;var B=_||{},x=B.dense?[]:{},S="Sheet1",Q="",W=0,ue={},Ce=[],de=[],ke={s:{r:0,c:0},e:{r:0,c:0}},ne=B.sheetRows||0;if(b[2]==0&&(b[3]==8||b[3]==9)&&b.length>=16&&b[14]==5&&b[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(b[2]==2)B.Enum=fe,t(b,function(Pe,rt,Ve){switch(Ve){case 0:B.vers=Pe,Pe>=4096&&(B.qpro=!0);break;case 6:ke=Pe;break;case 204:Pe&&(Q=Pe);break;case 222:Q=Pe;break;case 15:case 51:B.qpro||(Pe[1].v=Pe[1].v.slice(1));case 13:case 14:case 16:Ve==14&&(Pe[2]&112)==112&&(Pe[2]&15)>1&&(Pe[2]&15)<15&&(Pe[1].z=B.dateNF||kr[14],B.cellDates&&(Pe[1].t="d",Pe[1].v=uw(Pe[1].v))),B.qpro&&Pe[3]>W&&(x["!ref"]=Xr(ke),ue[S]=x,Ce.push(S),x=B.dense?[]:{},ke={s:{r:0,c:0},e:{r:0,c:0}},W=Pe[3],S=Q||"Sheet"+(W+1),Q="");var We=B.dense?(x[Pe[0].r]||[])[Pe[0].c]:x[nr(Pe[0])];if(We){We.t=Pe[1].t,We.v=Pe[1].v,Pe[1].z!=null&&(We.z=Pe[1].z),Pe[1].f!=null&&(We.f=Pe[1].f);break}B.dense?(x[Pe[0].r]||(x[Pe[0].r]=[]),x[Pe[0].r][Pe[0].c]=Pe[1]):x[nr(Pe[0])]=Pe[1];break}},B);else if(b[2]==26||b[2]==14)B.Enum=Ue,b[2]==14&&(B.qpro=!0,b.l=0),t(b,function(Pe,rt,Ve){switch(Ve){case 204:S=Pe;break;case 22:Pe[1].v=Pe[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(Pe[3]>W&&(x["!ref"]=Xr(ke),ue[S]=x,Ce.push(S),x=B.dense?[]:{},ke={s:{r:0,c:0},e:{r:0,c:0}},W=Pe[3],S="Sheet"+(W+1)),ne>0&&Pe[0].r>=ne)break;B.dense?(x[Pe[0].r]||(x[Pe[0].r]=[]),x[Pe[0].r][Pe[0].c]=Pe[1]):x[nr(Pe[0])]=Pe[1],ke.e.c<Pe[0].c&&(ke.e.c=Pe[0].c),ke.e.r<Pe[0].r&&(ke.e.r=Pe[0].r);break;case 27:Pe[14e3]&&(de[Pe[14e3][0]]=Pe[14e3][1]);break;case 1537:de[Pe[0]]=Pe[1],Pe[0]==W&&(S=Pe[1]);break}},B);else throw new Error("Unrecognized LOTUS BOF "+b[2]);if(x["!ref"]=Xr(ke),ue[Q||S]=x,Ce.push(Q||S),!de.length)return{SheetNames:Ce,Sheets:ue};for(var Ee={},xe=[],te=0;te<de.length;++te)ue[Ce[te]]?(xe.push(de[te]||Ce[te]),Ee[de[te]]=ue[de[te]]||ue[Ce[te]]):(xe.push(de[te]),Ee[de[te]]={"!ref":"A1"});return{SheetNames:xe,Sheets:Ee}}function n(b,_){var B=_||{};if(+B.codepage>=0&&$l(+B.codepage),B.type=="string")throw new Error("Cannot write WK1 to JS string");var x=Aa(),S=Br(b["!ref"]),Q=Array.isArray(b),W=[];et(x,0,A(1030)),et(x,6,l(S));for(var ue=Math.min(S.e.r,8191),Ce=S.s.r;Ce<=ue;++Ce)for(var de=bn(Ce),ke=S.s.c;ke<=S.e.c;++ke){Ce===S.s.r&&(W[ke]=Dn(ke));var ne=W[ke]+de,Ee=Q?(b[Ce]||[])[ke]:b[ne];if(!(!Ee||Ee.t=="z"))if(Ee.t=="n")(Ee.v|0)==Ee.v&&Ee.v>=-32768&&Ee.v<=32767?et(x,13,d(Ce,ke,Ee.v)):et(x,14,f(Ce,ke,Ee.v));else{var xe=JA(Ee);et(x,15,p(Ce,ke,xe.slice(0,239)))}}return et(x,1),x.end()}function a(b,_){var B=_||{};if(+B.codepage>=0&&$l(+B.codepage),B.type=="string")throw new Error("Cannot write WK3 to JS string");var x=Aa();et(x,0,o(b));for(var S=0,Q=0;S<b.SheetNames.length;++S)(b.Sheets[b.SheetNames[S]]||{})["!ref"]&&et(x,27,le(b.SheetNames[S],Q++));var W=0;for(S=0;S<b.SheetNames.length;++S){var ue=b.Sheets[b.SheetNames[S]];if(!(!ue||!ue["!ref"])){for(var Ce=Br(ue["!ref"]),de=Array.isArray(ue),ke=[],ne=Math.min(Ce.e.r,8191),Ee=Ce.s.r;Ee<=ne;++Ee)for(var xe=bn(Ee),te=Ce.s.c;te<=Ce.e.c;++te){Ee===Ce.s.r&&(ke[te]=Dn(te));var Pe=ke[te]+xe,rt=de?(ue[Ee]||[])[te]:ue[Pe];if(!(!rt||rt.t=="z"))if(rt.t=="n")et(x,23,q(Ee,te,W,rt.v));else{var Ve=JA(rt);et(x,22,U(Ee,te,W,Ve.slice(0,239)))}}++W}}return et(x,1),x.end()}function A(b){var _=Oe(2);return _.write_shift(2,b),_}function o(b){var _=Oe(26);_.write_shift(2,4096),_.write_shift(2,4),_.write_shift(4,0);for(var B=0,x=0,S=0,Q=0;Q<b.SheetNames.length;++Q){var W=b.SheetNames[Q],ue=b.Sheets[W];if(!(!ue||!ue["!ref"])){++S;var Ce=va(ue["!ref"]);B<Ce.e.r&&(B=Ce.e.r),x<Ce.e.c&&(x=Ce.e.c)}}return B>8191&&(B=8191),_.write_shift(2,B),_.write_shift(1,S),_.write_shift(1,x),_.write_shift(2,0),_.write_shift(2,0),_.write_shift(1,1),_.write_shift(1,2),_.write_shift(4,0),_.write_shift(4,0),_}function s(b,_,B){var x={s:{c:0,r:0},e:{c:0,r:0}};return _==8&&B.qpro?(x.s.c=b.read_shift(1),b.l++,x.s.r=b.read_shift(2),x.e.c=b.read_shift(1),b.l++,x.e.r=b.read_shift(2),x):(x.s.c=b.read_shift(2),x.s.r=b.read_shift(2),_==12&&B.qpro&&(b.l+=2),x.e.c=b.read_shift(2),x.e.r=b.read_shift(2),_==12&&B.qpro&&(b.l+=2),x.s.c==65535&&(x.s.c=x.e.c=x.s.r=x.e.r=0),x)}function l(b){var _=Oe(8);return _.write_shift(2,b.s.c),_.write_shift(2,b.s.r),_.write_shift(2,b.e.c),_.write_shift(2,b.e.r),_}function c(b,_,B){var x=[{c:0,r:0},{t:"n",v:0},0,0];return B.qpro&&B.vers!=20768?(x[0].c=b.read_shift(1),x[3]=b.read_shift(1),x[0].r=b.read_shift(2),b.l+=2):(x[2]=b.read_shift(1),x[0].c=b.read_shift(2),x[0].r=b.read_shift(2)),x}function u(b,_,B){var x=b.l+_,S=c(b,_,B);if(S[1].t="s",B.vers==20768){b.l++;var Q=b.read_shift(1);return S[1].v=b.read_shift(Q,"utf8"),S}return B.qpro&&b.l++,S[1].v=b.read_shift(x-b.l,"cstr"),S}function p(b,_,B){var x=Oe(7+B.length);x.write_shift(1,255),x.write_shift(2,_),x.write_shift(2,b),x.write_shift(1,39);for(var S=0;S<x.length;++S){var Q=B.charCodeAt(S);x.write_shift(1,Q>=128?95:Q)}return x.write_shift(1,0),x}function h(b,_,B){var x=c(b,_,B);return x[1].v=b.read_shift(2,"i"),x}function d(b,_,B){var x=Oe(7);return x.write_shift(1,255),x.write_shift(2,_),x.write_shift(2,b),x.write_shift(2,B,"i"),x}function w(b,_,B){var x=c(b,_,B);return x[1].v=b.read_shift(8,"f"),x}function f(b,_,B){var x=Oe(13);return x.write_shift(1,255),x.write_shift(2,_),x.write_shift(2,b),x.write_shift(8,B,"f"),x}function m(b,_,B){var x=b.l+_,S=c(b,_,B);if(S[1].v=b.read_shift(8,"f"),B.qpro)b.l=x;else{var Q=b.read_shift(2);D(b.slice(b.l,b.l+Q),S),b.l+=Q}return S}function y(b,_,B){var x=_&32768;return _&=-32769,_=(x?b:0)+(_>=8192?_-16384:_),(x?"":"$")+(B?Dn(_):bn(_))}var F={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},N=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function D(b,_){ya(b,0);for(var B=[],x=0,S="",Q="",W="",ue="";b.l<b.length;){var Ce=b[b.l++];switch(Ce){case 0:B.push(b.read_shift(8,"f"));break;case 1:Q=y(_[0].c,b.read_shift(2),!0),S=y(_[0].r,b.read_shift(2),!1),B.push(Q+S);break;case 2:{var de=y(_[0].c,b.read_shift(2),!0),ke=y(_[0].r,b.read_shift(2),!1);Q=y(_[0].c,b.read_shift(2),!0),S=y(_[0].r,b.read_shift(2),!1),B.push(de+ke+":"+Q+S)}break;case 3:if(b.l<b.length){console.error("WK1 premature formula end");return}break;case 4:B.push("("+B.pop()+")");break;case 5:B.push(b.read_shift(2));break;case 6:{for(var ne="";Ce=b[b.l++];)ne+=String.fromCharCode(Ce);B.push('"'+ne.replace(/"/g,'""')+'"')}break;case 8:B.push("-"+B.pop());break;case 23:B.push("+"+B.pop());break;case 22:B.push("NOT("+B.pop()+")");break;case 20:case 21:ue=B.pop(),W=B.pop(),B.push(["AND","OR"][Ce-20]+"("+W+","+ue+")");break;default:if(Ce<32&&N[Ce])ue=B.pop(),W=B.pop(),B.push(W+N[Ce]+ue);else if(F[Ce]){if(x=F[Ce][1],x==69&&(x=b[b.l++]),x>B.length){console.error("WK1 bad formula parse 0x"+Ce.toString(16)+":|"+B.join("|")+"|");return}var Ee=B.slice(-x);B.length-=x,B.push(F[Ce][0]+"("+Ee.join(",")+")")}else return Ce<=7?console.error("WK1 invalid opcode "+Ce.toString(16)):Ce<=24?console.error("WK1 unsupported op "+Ce.toString(16)):Ce<=30?console.error("WK1 invalid opcode "+Ce.toString(16)):Ce<=115?console.error("WK1 unsupported function opcode "+Ce.toString(16)):console.error("WK1 unrecognized opcode "+Ce.toString(16))}}B.length==1?_[1].f=""+B[0]:console.error("WK1 bad formula parse |"+B.join("|")+"|")}function H(b){var _=[{c:0,r:0},{t:"n",v:0},0];return _[0].r=b.read_shift(2),_[3]=b[b.l++],_[0].c=b[b.l++],_}function R(b,_){var B=H(b);return B[1].t="s",B[1].v=b.read_shift(_-4,"cstr"),B}function U(b,_,B,x){var S=Oe(6+x.length);S.write_shift(2,b),S.write_shift(1,B),S.write_shift(1,_),S.write_shift(1,39);for(var Q=0;Q<x.length;++Q){var W=x.charCodeAt(Q);S.write_shift(1,W>=128?95:W)}return S.write_shift(1,0),S}function I(b,_){var B=H(b);B[1].v=b.read_shift(2);var x=B[1].v>>1;if(B[1].v&1)switch(x&7){case 0:x=(x>>3)*5e3;break;case 1:x=(x>>3)*500;break;case 2:x=(x>>3)/20;break;case 3:x=(x>>3)/200;break;case 4:x=(x>>3)/2e3;break;case 5:x=(x>>3)/2e4;break;case 6:x=(x>>3)/16;break;case 7:x=(x>>3)/64;break}return B[1].v=x,B}function O(b,_){var B=H(b),x=b.read_shift(4),S=b.read_shift(4),Q=b.read_shift(2);if(Q==65535)return x===0&&S===3221225472?(B[1].t="e",B[1].v=15):x===0&&S===3489660928?(B[1].t="e",B[1].v=42):B[1].v=0,B;var W=Q&32768;return Q=(Q&32767)-16446,B[1].v=(1-W*2)*(S*Math.pow(2,Q+32)+x*Math.pow(2,Q)),B}function q(b,_,B,x){var S=Oe(14);if(S.write_shift(2,b),S.write_shift(1,B),S.write_shift(1,_),x==0)return S.write_shift(4,0),S.write_shift(4,0),S.write_shift(2,65535),S;var Q=0,W=0,ue=0,Ce=0;return x<0&&(Q=1,x=-x),W=Math.log2(x)|0,x/=Math.pow(2,W-31),Ce=x>>>0,Ce&2147483648||(x/=2,++W,Ce=x>>>0),x-=Ce,Ce|=2147483648,Ce>>>=0,x*=Math.pow(2,32),ue=x>>>0,S.write_shift(4,ue),S.write_shift(4,Ce),W+=16383+(Q?32768:0),S.write_shift(2,W),S}function T(b,_){var B=O(b);return b.l+=_-14,B}function L(b,_){var B=H(b),x=b.read_shift(4);return B[1].v=x>>6,B}function G(b,_){var B=H(b),x=b.read_shift(8,"f");return B[1].v=x,B}function Y(b,_){var B=G(b);return b.l+=_-10,B}function se(b,_){return b[b.l+_-1]==0?b.read_shift(_,"cstr"):""}function he(b,_){var B=b[b.l++];B>_-1&&(B=_-1);for(var x="";x.length<B;)x+=String.fromCharCode(b[b.l++]);return x}function ge(b,_,B){if(!(!B.qpro||_<21)){var x=b.read_shift(1);b.l+=17,b.l+=1,b.l+=2;var S=b.read_shift(_-21,"cstr");return[x,S]}}function re(b,_){for(var B={},x=b.l+_;b.l<x;){var S=b.read_shift(2);if(S==14e3){for(B[S]=[0,""],B[S][0]=b.read_shift(2);b[b.l];)B[S][1]+=String.fromCharCode(b[b.l]),b.l++;b.l++}}return B}function le(b,_){var B=Oe(5+b.length);B.write_shift(2,14e3),B.write_shift(2,_);for(var x=0;x<b.length;++x){var S=b.charCodeAt(x);B[B.l++]=S>127?95:S}return B[B.l++]=0,B}var fe={0:{n:"BOF",f:oB},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:s},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:h},14:{n:"NUMBER",f:w},15:{n:"LABEL",f:u},16:{n:"FORMULA",f:m},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:u},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:se},222:{n:"SHEETNAMELP",f:he},65535:{n:""}},Ue={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:R},23:{n:"NUMBER17",f:O},24:{n:"NUMBER18",f:I},25:{n:"FORMULA19",f:T},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:re},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:L},38:{n:"??"},39:{n:"NUMBER27",f:G},40:{n:"FORMULA28",f:Y},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:se},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:ge},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:n,book_to_wk3:a,to_workbook:e}}(),dL=/^\s|\s$|[\t\n\r]/;function pB(t,e){if(!e.bookSST)return"";var r=[Wr];r[r.length]=Ze("sst",null,{xmlns:vs[0],count:t.Count,uniqueCount:t.Unique});for(var n=0;n!=t.length;++n)if(t[n]!=null){var a=t[n],A="<si>";a.r?A+=a.r:(A+="<t",a.t||(a.t=""),a.t.match(dL)&&(A+=' xml:space="preserve"'),A+=">"+rr(a.t)+"</t>"),A+="</si>",r[r.length]=A}return r.length>2&&(r[r.length]="</sst>",r[1]=r[1].replace("/>",">")),r.join("")}function gL(t){return[t.read_shift(4),t.read_shift(4)]}function pL(t,e){return e||(e=Oe(8)),e.write_shift(4,t.Count),e.write_shift(4,t.Unique),e}var mL=o6;function yL(t){var e=Aa();$e(e,159,pL(t));for(var r=0;r<t.length;++r)$e(e,19,mL(t[r]));return $e(e,160),e.end()}function vL(t){for(var e=[],r=t.split(""),n=0;n<r.length;++n)e[n]=r[n].charCodeAt(0);return e}function mB(t){var e=0,r,n=vL(t),a=n.length+1,A,o,s,l,c;for(r=yo(a),r[0]=n.length,A=1;A!=a;++A)r[A]=n[A-1];for(A=a-1;A>=0;--A)o=r[A],s=e&16384?1:0,l=e<<1&32767,c=s|l,e=c^o;return e^52811}var wL=function(){function t(a,A){switch(A.type){case"base64":return e(jA(a),A);case"binary":return e(a,A);case"buffer":return e(Jt&&Buffer.isBuffer(a)?a.toString("binary"):Kl(a),A);case"array":return e(Sh(a),A)}throw new Error("Unrecognized type "+A.type)}function e(a,A){var o=A||{},s=o.dense?[]:{},l=a.match(/\\trowd.*?\\row\b/g);if(!l.length)throw new Error("RTF missing table");var c={s:{c:0,r:0},e:{c:0,r:l.length-1}};return l.forEach(function(u,p){Array.isArray(s)&&(s[p]=[]);for(var h=/\\\w+\b/g,d=0,w,f=-1;w=h.exec(u);){switch(w[0]){case"\\cell":var m=u.slice(d,h.lastIndex-w[0].length);if(m[0]==" "&&(m=m.slice(1)),++f,m.length){var y={v:m,t:"s"};Array.isArray(s)?s[p][f]=y:s[nr({r:p,c:f})]=y}break}d=h.lastIndex}f>c.e.c&&(c.e.c=f)}),s["!ref"]=Xr(c),s}function r(a,A){return wo(t(a,A),A)}function n(a){for(var A=["{\\rtf1\\ansi"],o=Br(a["!ref"]),s,l=Array.isArray(a),c=o.s.r;c<=o.e.r;++c){A.push("\\trowd\\trautofit1");for(var u=o.s.c;u<=o.e.c;++u)A.push("\\cellx"+(u+1));for(A.push("\\pard\\intbl"),u=o.s.c;u<=o.e.c;++u){var p=nr({r:c,c:u});s=l?(a[c]||[])[u]:a[p],!(!s||s.v==null&&(!s.f||s.F))&&(A.push(" "+(s.w||(JA(s),s.w))),A.push("\\cell"))}A.push("\\pard\\intbl\\row")}return A.join("")+"}"}return{to_workbook:r,to_sheet:t,from_sheet:n}}();function yB(t){for(var e=0,r=1;e!=3;++e)r=r*256+(t[e]>255?255:t[e]<0?0:t[e]);return r.toString(16).toUpperCase().slice(1)}var BL=6,ZA=BL;function Oh(t){return Math.floor((t+Math.round(128/ZA)/256)*ZA)}function Ph(t){return Math.floor((t-5)/ZA*100+.5)/100}function bg(t){return Math.round((t*ZA+5)/ZA*256)/256}function Cg(t){t.width?(t.wpx=Oh(t.width),t.wch=Ph(t.wpx),t.MDW=ZA):t.wpx?(t.wch=Ph(t.wpx),t.width=bg(t.wch),t.MDW=ZA):typeof t.wch=="number"&&(t.width=bg(t.wch),t.wpx=Oh(t.width),t.MDW=ZA),t.customWidth&&delete t.customWidth}var xL=96,vB=xL;function Mh(t){return t*96/vB}function wB(t){return t*vB/96}function bL(t){var e=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var n=r[0];n<=r[1];++n)t[n]!=null&&(e[e.length]=Ze("numFmt",null,{numFmtId:n,formatCode:rr(t[n])}))}),e.length===1?"":(e[e.length]="</numFmts>",e[0]=Ze("numFmts",null,{count:e.length-2}).replace("/>",">"),e.join(""))}function CL(t){var e=[];return e[e.length]=Ze("cellXfs",null),t.forEach(function(r){e[e.length]=Ze("xf",null,r)}),e[e.length]="</cellXfs>",e.length===2?"":(e[0]=Ze("cellXfs",null,{count:e.length-2}).replace("/>",">"),e.join(""))}function BB(t,e){var r=[Wr,Ze("styleSheet",null,{xmlns:vs[0],"xmlns:vt":un.vt})],n;return t.SSF&&(n=bL(t.SSF))!=null&&(r[r.length]=n),r[r.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',r[r.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',r[r.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=CL(e.cellXfs))&&(r[r.length]=n),r[r.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',r[r.length]='<dxfs count="0"/>',r[r.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',r.length>2&&(r[r.length]="</styleSheet>",r[1]=r[1].replace("/>",">")),r.join("")}function EL(t,e){var r=t.read_shift(2),n=Qn(t);return[r,n]}function _L(t,e,r){r||(r=Oe(6+4*e.length)),r.write_shift(2,t),fn(e,r);var n=r.length>r.l?r.slice(0,r.l):r;return r.l==null&&(r.l=r.length),n}function FL(t,e,r){var n={};n.sz=t.read_shift(2)/20;var a=d6(t);a.fItalic&&(n.italic=1),a.fCondense&&(n.condense=1),a.fExtend&&(n.extend=1),a.fShadow&&(n.shadow=1),a.fOutline&&(n.outline=1),a.fStrikeout&&(n.strike=1);var A=t.read_shift(2);switch(A===700&&(n.bold=1),t.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript";break}var o=t.read_shift(1);o!=0&&(n.underline=o);var s=t.read_shift(1);s>0&&(n.family=s);var l=t.read_shift(1);switch(l>0&&(n.charset=l),t.l++,n.color=f6(t),t.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=Qn(t),n}function SL(t,e){e||(e=Oe(25+4*32)),e.write_shift(2,t.sz*20),g6(t,e),e.write_shift(2,t.bold?700:400);var r=0;t.vertAlign=="superscript"?r=1:t.vertAlign=="subscript"&&(r=2),e.write_shift(2,r),e.write_shift(1,t.underline||0),e.write_shift(1,t.family||0),e.write_shift(1,t.charset||0),e.write_shift(1,0),Lh(t.color,e);var n=0;return t.scheme=="major"&&(n=1),t.scheme=="minor"&&(n=2),e.write_shift(1,n),fn(t.name,e),e.length>e.l?e.slice(0,e.l):e}var kL=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],Eg,TL=SA;function xB(t,e){e||(e=Oe(4*3+8*7+16*1)),Eg||(Eg=ig(kL));var r=Eg[t.patternType];r==null&&(r=40),e.write_shift(4,r);var n=0;if(r!=40)for(Lh({auto:1},e),Lh({auto:1},e);n<12;++n)e.write_shift(4,0);else{for(;n<4;++n)e.write_shift(4,0);for(;n<12;++n)e.write_shift(4,0)}return e.length>e.l?e.slice(0,e.l):e}function NL(t,e){var r=t.l+e,n=t.read_shift(2),a=t.read_shift(2);return t.l=r,{ixfe:n,numFmtId:a}}function bB(t,e,r){r||(r=Oe(16)),r.write_shift(2,e||0),r.write_shift(2,t.numFmtId||0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);var n=0;return r.write_shift(1,n),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r}function nc(t,e){return e||(e=Oe(10)),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(4,0),e.write_shift(4,0),e}var LL=SA;function UL(t,e){return e||(e=Oe(51)),e.write_shift(1,0),nc(null,e),nc(null,e),nc(null,e),nc(null,e),nc(null,e),e.length>e.l?e.slice(0,e.l):e}function IL(t,e){return e||(e=Oe(12+4*10)),e.write_shift(4,t.xfId),e.write_shift(2,1),e.write_shift(1,+t.builtinId),e.write_shift(1,0),Nh(t.name||"",e),e.length>e.l?e.slice(0,e.l):e}function DL(t,e,r){var n=Oe(2052);return n.write_shift(4,t),Nh(e,n),Nh(r,n),n.length>n.l?n.slice(0,n.l):n}function QL(t,e){if(e){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)e[a]!=null&&++r}),r!=0&&($e(t,615,Ya(r)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)e[a]!=null&&$e(t,44,_L(a,e[a]))}),$e(t,616))}}function OL(t){var e=1;$e(t,611,Ya(e)),$e(t,43,SL({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),$e(t,612)}function PL(t){var e=2;$e(t,603,Ya(e)),$e(t,45,xB({patternType:"none"})),$e(t,45,xB({patternType:"gray125"})),$e(t,604)}function ML(t){var e=1;$e(t,613,Ya(e)),$e(t,46,UL()),$e(t,614)}function RL(t){var e=1;$e(t,626,Ya(e)),$e(t,47,bB({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),$e(t,627)}function HL(t,e){$e(t,617,Ya(e.length)),e.forEach(function(r){$e(t,47,bB(r,0))}),$e(t,618)}function VL(t){var e=1;$e(t,619,Ya(e)),$e(t,48,IL({xfId:0,builtinId:0,name:"Normal"})),$e(t,620)}function $L(t){var e=0;$e(t,505,Ya(e)),$e(t,506)}function zL(t){var e=0;$e(t,508,DL(e,"TableStyleMedium9","PivotStyleMedium4")),$e(t,509)}function KL(t,e){var r=Aa();return $e(r,278),QL(r,t.SSF),OL(r),PL(r),ML(r),RL(r),HL(r,e.cellXfs),VL(r),$L(r),zL(r),$e(r,279),r.end()}function CB(t,e){if(e&&e.themeXLSX)return e.themeXLSX;if(t&&typeof t.raw=="string")return t.raw;var r=[Wr];return r[r.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',r[r.length]="<a:themeElements>",r[r.length]='<a:clrScheme name="Office">',r[r.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',r[r.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',r[r.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',r[r.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',r[r.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',r[r.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',r[r.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',r[r.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',r[r.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',r[r.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',r[r.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',r[r.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',r[r.length]="</a:clrScheme>",r[r.length]='<a:fontScheme name="Office">',r[r.length]="<a:majorFont>",r[r.length]='<a:latin typeface="Cambria"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Times New Roman"/>',r[r.length]='<a:font script="Hebr" typeface="Times New Roman"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="MoolBoran"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Times New Roman"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:majorFont>",r[r.length]="<a:minorFont>",r[r.length]='<a:latin typeface="Calibri"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Arial"/>',r[r.length]='<a:font script="Hebr" typeface="Arial"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="DaunPenh"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Arial"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:minorFont>",r[r.length]="</a:fontScheme>",r[r.length]='<a:fmtScheme name="Office">',r[r.length]="<a:fillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="1"/>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="0"/>',r[r.length]="</a:gradFill>",r[r.length]="</a:fillStyleLst>",r[r.length]="<a:lnStyleLst>",r[r.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]="</a:lnStyleLst>",r[r.length]="<a:effectStyleLst>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',r[r.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',r[r.length]="</a:effectStyle>",r[r.length]="</a:effectStyleLst>",r[r.length]="<a:bgFillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]="</a:bgFillStyleLst>",r[r.length]="</a:fmtScheme>",r[r.length]="</a:themeElements>",r[r.length]="<a:objectDefaults>",r[r.length]="<a:spDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',r[r.length]="</a:spDef>",r[r.length]="<a:lnDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',r[r.length]="</a:lnDef>",r[r.length]="</a:objectDefaults>",r[r.length]="<a:extraClrSchemeLst/>",r[r.length]="</a:theme>",r.join("")}function GL(t,e){return{flags:t.read_shift(4),version:t.read_shift(4),name:Qn(t)}}function jL(t){var e=Oe(12+2*t.name.length);return e.write_shift(4,t.flags),e.write_shift(4,t.version),fn(t.name,e),e.slice(0,e.l)}function WL(t){for(var e=[],r=t.read_shift(4);r-- >0;)e.push([t.read_shift(4),t.read_shift(4)]);return e}function XL(t){var e=Oe(4+8*t.length);e.write_shift(4,t.length);for(var r=0;r<t.length;++r)e.write_shift(4,t[r][0]),e.write_shift(4,t[r][1]);return e}function qL(t,e){var r=Oe(8+2*e.length);return r.write_shift(4,t),fn(e,r),r.slice(0,r.l)}function YL(t){return t.l+=4,t.read_shift(4)!=0}function JL(t,e){var r=Oe(8);return r.write_shift(4,t),r.write_shift(4,e?1:0),r}function ZL(){var t=Aa();return $e(t,332),$e(t,334,Ya(1)),$e(t,335,jL({name:"XLDAPR",version:12e4,flags:3496657072})),$e(t,336),$e(t,339,qL(1,"XLDAPR")),$e(t,52),$e(t,35,Ya(514)),$e(t,4096,Ya(0)),$e(t,4097,Da(1)),$e(t,36),$e(t,53),$e(t,340),$e(t,337,JL(1,!0)),$e(t,51,XL([[1,0]])),$e(t,338),$e(t,333),t.end()}function EB(){var t=[Wr];return t.push(`<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">
301
- <metadataTypes count="1">
302
- <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>
303
- </metadataTypes>
304
- <futureMetadata name="XLDAPR" count="1">
305
- <bk>
306
- <extLst>
307
- <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">
308
- <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>
309
- </ext>
310
- </extLst>
311
- </bk>
312
- </futureMetadata>
313
- <cellMetadata count="1">
314
- <bk>
315
- <rc t="1" v="0"/>
316
- </bk>
317
- </cellMetadata>
318
- </metadata>`),t.join("")}function e8(t){var e={};e.i=t.read_shift(4);var r={};r.r=t.read_shift(4),r.c=t.read_shift(4),e.r=nr(r);var n=t.read_shift(1);return n&2&&(e.l="1"),n&8&&(e.a="1"),e}var _s=1024;function _B(t,e){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),a=[Ze("xml",null,{"xmlns:v":pa.v,"xmlns:o":pa.o,"xmlns:x":pa.x,"xmlns:mv":pa.mv}).replace(/\/>/,">"),Ze("o:shapelayout",Ze("o:idmap",null,{"v:ext":"edit",data:t}),{"v:ext":"edit"}),Ze("v:shapetype",[Ze("v:stroke",null,{joinstyle:"miter"}),Ze("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:n})];_s<t*1e3;)_s+=1e3;return e.forEach(function(A){var o=hn(A[0]),s={color2:"#BEFF82",type:"gradient"};s.type=="gradient"&&(s.angle="-180");var l=s.type=="gradient"?Ze("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,c=Ze("v:fill",l,s),u={on:"t",obscured:"t"};++_s,a=a.concat(["<v:shape"+ql({id:"_x0000_s"+_s,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(A[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",c,Ze("v:shadow",null,u),Ze("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",xn("x:Anchor",[o.c+1,0,o.r+1,0,o.c+3,20,o.r+5,20].join(",")),xn("x:AutoFill","False"),xn("x:Row",String(o.r)),xn("x:Column",String(o.c)),A[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),a.push("</xml>"),a.join("")}function FB(t){var e=[Wr,Ze("comments",null,{xmlns:vs[0]})],r=[];return e.push("<authors>"),t.forEach(function(n){n[1].forEach(function(a){var A=rr(a.a);r.indexOf(A)==-1&&(r.push(A),e.push("<author>"+A+"</author>")),a.T&&a.ID&&r.indexOf("tc="+a.ID)==-1&&(r.push("tc="+a.ID),e.push("<author>tc="+a.ID+"</author>"))})}),r.length==0&&(r.push("SheetJ5"),e.push("<author>SheetJ5</author>")),e.push("</authors>"),e.push("<commentList>"),t.forEach(function(n){var a=0,A=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?a=r.indexOf("tc="+n[1][0].ID):n[1].forEach(function(l){l.a&&(a=r.indexOf(rr(l.a))),A.push(l.t||"")}),e.push('<comment ref="'+n[0]+'" authorId="'+a+'"><text>'),A.length<=1)e.push(xn("t",rr(A[0]||"")));else{for(var o=`Comment:
319
- `+A[0]+`
320
- `,s=1;s<A.length;++s)o+=`Reply:
321
- `+A[s]+`
322
- `;e.push(xn("t",rr(o)))}e.push("</text></comment>")}),e.push("</commentList>"),e.length>2&&(e[e.length]="</comments>",e[1]=e[1].replace("/>",">")),e.join("")}function t8(t,e,r){var n=[Wr,Ze("ThreadedComments",null,{xmlns:un.TCMNT}).replace(/[\/]>/,">")];return t.forEach(function(a){var A="";(a[1]||[]).forEach(function(o,s){if(!o.T){delete o.ID;return}o.a&&e.indexOf(o.a)==-1&&e.push(o.a);var l={ref:a[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};s==0?A=l.id:l.parentId=A,o.ID=l.id,o.a&&(l.personId="{54EE7950-7262-4200-6969-"+("000000000000"+e.indexOf(o.a)).slice(-12)+"}"),n.push(Ze("threadedComment",xn("text",o.t||""),l))})}),n.push("</ThreadedComments>"),n.join("")}function r8(t){var e=[Wr,Ze("personList",null,{xmlns:un.TCMNT,"xmlns:x":vs[0]}).replace(/[\/]>/,">")];return t.forEach(function(r,n){e.push(Ze("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:r,providerId:"None"}))}),e.push("</personList>"),e.join("")}function n8(t){var e={};e.iauthor=t.read_shift(4);var r=Co(t);return e.rfx=r.s,e.ref=nr(r.s),t.l+=16,e}function a8(t,e){return e==null&&(e=Oe(36)),e.write_shift(4,t[1].iauthor),xs(t[0],e),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e}var A8=Qn;function i8(t){return fn(t.slice(0,54))}function o8(t){var e=Aa(),r=[];return $e(e,628),$e(e,630),t.forEach(function(n){n[1].forEach(function(a){r.indexOf(a.a)>-1||(r.push(a.a.slice(0,54)),$e(e,632,i8(a.a)))})}),$e(e,631),$e(e,633),t.forEach(function(n){n[1].forEach(function(a){a.iauthor=r.indexOf(a.a);var A={s:hn(n[0]),e:hn(n[0])};$e(e,635,a8([A,a])),a.t&&a.t.length>0&&$e(e,637,l6(a)),$e(e,636),delete a.iauthor})}),$e(e,634),$e(e,629),e.end()}function s8(t,e){e.FullPaths.forEach(function(r,n){if(n!=0){var a=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");a.slice(-1)!=="/"&&cr.utils.cfb_add(t,a,e.FileIndex[n].content)}})}var SB=["xlsb","xlsm","xlam","biff8","xla"],l8=function(){var t=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,e={r:0,c:0};function r(n,a,A,o){var s=!1,l=!1;A.length==0?l=!0:A.charAt(0)=="["&&(l=!0,A=A.slice(1,-1)),o.length==0?s=!0:o.charAt(0)=="["&&(s=!0,o=o.slice(1,-1));var c=A.length>0?parseInt(A,10)|0:0,u=o.length>0?parseInt(o,10)|0:0;return s?u+=e.c:--u,l?c+=e.r:--c,a+(s?"":"$")+Dn(u)+(l?"":"$")+bn(c)}return function(a,A){return e=A,a.replace(t,r)}}(),_g=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,Fg=function(){return function(e,r){return e.replace(_g,function(n,a,A,o,s,l){var c=pg(o)-(A?0:r.c),u=gg(l)-(s?0:r.r),p=u==0?"":s?u+1:"["+u+"]",h=c==0?"":A?c+1:"["+c+"]";return a+"R"+p+"C"+h})}}();function c8(t,e){return t.replace(_g,function(r,n,a,A,o,s){return n+(a=="$"?a+A:Dn(pg(A)+e.c))+(o=="$"?o+s:bn(gg(s)+e.r))})}function u8(t){return t.length!=1}function qr(t){t.l+=1}function Qi(t,e){var r=t.read_shift(e==1?1:2);return[r&16383,r>>14&1,r>>15&1]}function kB(t,e,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return TB(t);r.biff==12&&(n=4)}var a=t.read_shift(n),A=t.read_shift(n),o=Qi(t,2),s=Qi(t,2);return{s:{r:a,c:o[0],cRel:o[1],rRel:o[2]},e:{r:A,c:s[0],cRel:s[1],rRel:s[2]}}}function TB(t){var e=Qi(t,2),r=Qi(t,2),n=t.read_shift(1),a=t.read_shift(1);return{s:{r:e[0],c:n,cRel:e[1],rRel:e[2]},e:{r:r[0],c:a,cRel:r[1],rRel:r[2]}}}function h8(t,e,r){if(r.biff<8)return TB(t);var n=t.read_shift(r.biff==12?4:2),a=t.read_shift(r.biff==12?4:2),A=Qi(t,2),o=Qi(t,2);return{s:{r:n,c:A[0],cRel:A[1],rRel:A[2]},e:{r:a,c:o[0],cRel:o[1],rRel:o[2]}}}function NB(t,e,r){if(r&&r.biff>=2&&r.biff<=5)return f8(t);var n=t.read_shift(r&&r.biff==12?4:2),a=Qi(t,2);return{r:n,c:a[0],cRel:a[1],rRel:a[2]}}function f8(t){var e=Qi(t,2),r=t.read_shift(1);return{r:e[0],c:r,cRel:e[1],rRel:e[2]}}function d8(t){var e=t.read_shift(2),r=t.read_shift(2);return{r:e,c:r&255,fQuoted:!!(r&16384),cRel:r>>15,rRel:r>>15}}function g8(t,e,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return p8(t);var a=t.read_shift(n>=12?4:2),A=t.read_shift(2),o=(A&16384)>>14,s=(A&32768)>>15;if(A&=16383,s==1)for(;a>524287;)a-=1048576;if(o==1)for(;A>8191;)A=A-16384;return{r:a,c:A,cRel:o,rRel:s}}function p8(t){var e=t.read_shift(2),r=t.read_shift(1),n=(e&32768)>>15,a=(e&16384)>>14;return e&=16383,n==1&&e>=8192&&(e=e-16384),a==1&&r>=128&&(r=r-256),{r:e,c:r,cRel:a,rRel:n}}function m8(t,e,r){var n=(t[t.l++]&96)>>5,a=kB(t,r.biff>=2&&r.biff<=5?6:8,r);return[n,a]}function y8(t,e,r){var n=(t[t.l++]&96)>>5,a=t.read_shift(2,"i"),A=8;if(r)switch(r.biff){case 5:t.l+=12,A=6;break;case 12:A=12;break}var o=kB(t,A,r);return[n,a,o]}function v8(t,e,r){var n=(t[t.l++]&96)>>5;return t.l+=r&&r.biff>8?12:r.biff<8?6:8,[n]}function w8(t,e,r){var n=(t[t.l++]&96)>>5,a=t.read_shift(2),A=8;if(r)switch(r.biff){case 5:t.l+=12,A=6;break;case 12:A=12;break}return t.l+=A,[n,a]}function B8(t,e,r){var n=(t[t.l++]&96)>>5,a=h8(t,e-1,r);return[n,a]}function x8(t,e,r){var n=(t[t.l++]&96)>>5;return t.l+=r.biff==2?6:r.biff==12?14:7,[n]}function LB(t){var e=t[t.l+1]&1,r=1;return t.l+=4,[e,r]}function b8(t,e,r){t.l+=2;for(var n=t.read_shift(r&&r.biff==2?1:2),a=[],A=0;A<=n;++A)a.push(t.read_shift(r&&r.biff==2?1:2));return a}function C8(t,e,r){var n=t[t.l+1]&255?1:0;return t.l+=2,[n,t.read_shift(r&&r.biff==2?1:2)]}function E8(t,e,r){var n=t[t.l+1]&255?1:0;return t.l+=2,[n,t.read_shift(r&&r.biff==2?1:2)]}function _8(t){var e=t[t.l+1]&255?1:0;return t.l+=2,[e,t.read_shift(2)]}function F8(t,e,r){var n=t[t.l+1]&255?1:0;return t.l+=r&&r.biff==2?3:4,[n]}function UB(t){var e=t.read_shift(1),r=t.read_shift(1);return[e,r]}function S8(t){return t.read_shift(2),UB(t)}function k8(t){return t.read_shift(2),UB(t)}function T8(t,e,r){var n=(t[t.l]&96)>>5;t.l+=1;var a=NB(t,0,r);return[n,a]}function N8(t,e,r){var n=(t[t.l]&96)>>5;t.l+=1;var a=g8(t,0,r);return[n,a]}function L8(t,e,r){var n=(t[t.l]&96)>>5;t.l+=1;var a=t.read_shift(2);r&&r.biff==5&&(t.l+=12);var A=NB(t,0,r);return[n,a,A]}function U8(t,e,r){var n=(t[t.l]&96)>>5;t.l+=1;var a=t.read_shift(r&&r.biff<=3?1:2);return[UU[a],PB[a],n]}function I8(t,e,r){var n=t[t.l++],a=t.read_shift(1),A=r&&r.biff<=3?[n==88?-1:0,t.read_shift(1)]:D8(t);return[a,(A[0]===0?PB:LU)[A[1]]]}function D8(t){return[t[t.l+1]>>7,t.read_shift(2)&32767]}function Q8(t,e,r){t.l+=r&&r.biff==2?3:4}function O8(t,e,r){if(t.l++,r&&r.biff==12)return[t.read_shift(4,"i"),0];var n=t.read_shift(2),a=t.read_shift(r&&r.biff==2?1:2);return[n,a]}function P8(t){return t.l++,rc[t.read_shift(1)]}function M8(t){return t.l++,t.read_shift(2)}function R8(t){return t.l++,t.read_shift(1)!==0}function H8(t){return t.l++,bs(t)}function V8(t,e,r){return t.l++,lB(t,e-1,r)}function $8(t,e){var r=[t.read_shift(1)];if(e==12)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2;break}switch(r[0]){case 4:r[1]=L6(t,1)?"TRUE":"FALSE",e!=12&&(t.l+=7);break;case 37:case 16:r[1]=rc[t[t.l]],t.l+=e==12?4:8;break;case 0:t.l+=8;break;case 1:r[1]=bs(t);break;case 2:r[1]=Q6(t,0,{biff:e>0&&e<8?2:e});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function z8(t,e,r){for(var n=t.read_shift(r.biff==12?4:2),a=[],A=0;A!=n;++A)a.push((r.biff==12?Co:M6)(t));return a}function K8(t,e,r){var n=0,a=0;r.biff==12?(n=t.read_shift(4),a=t.read_shift(4)):(a=1+t.read_shift(1),n=1+t.read_shift(2)),r.biff>=2&&r.biff<8&&(--n,--a==0&&(a=256));for(var A=0,o=[];A!=n&&(o[A]=[]);++A)for(var s=0;s!=a;++s)o[A][s]=$8(t,r.biff);return o}function G8(t,e,r){var n=t.read_shift(1)>>>5&3,a=!r||r.biff>=8?4:2,A=t.read_shift(a);switch(r.biff){case 2:t.l+=5;break;case 3:case 4:t.l+=8;break;case 5:t.l+=12;break}return[n,0,A]}function j8(t,e,r){if(r.biff==5)return W8(t);var n=t.read_shift(1)>>>5&3,a=t.read_shift(2),A=t.read_shift(4);return[n,a,A]}function W8(t){var e=t.read_shift(1)>>>5&3,r=t.read_shift(2,"i");t.l+=8;var n=t.read_shift(2);return t.l+=12,[e,r,n]}function X8(t,e,r){var n=t.read_shift(1)>>>5&3;t.l+=r&&r.biff==2?3:4;var a=t.read_shift(r&&r.biff==2?1:2);return[n,a]}function q8(t,e,r){var n=t.read_shift(1)>>>5&3,a=t.read_shift(r&&r.biff==2?1:2);return[n,a]}function Y8(t,e,r){var n=t.read_shift(1)>>>5&3;return t.l+=4,r.biff<8&&t.l--,r.biff==12&&(t.l+=2),[n]}function J8(t,e,r){var n=(t[t.l++]&96)>>5,a=t.read_shift(2),A=4;if(r)switch(r.biff){case 5:A=15;break;case 12:A=6;break}return t.l+=A,[n,a]}var Z8=SA,eU=SA,tU=SA;function ac(t,e,r){return t.l+=2,[d8(t)]}function Sg(t){return t.l+=6,[]}var rU=ac,nU=Sg,aU=Sg,AU=ac;function IB(t){return t.l+=2,[oB(t),t.read_shift(2)&1]}var iU=ac,oU=IB,sU=Sg,lU=ac,cU=ac,uU=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function hU(t){t.l+=2;var e=t.read_shift(2),r=t.read_shift(2),n=t.read_shift(4),a=t.read_shift(2),A=t.read_shift(2),o=uU[r>>2&31];return{ixti:e,coltype:r&3,rt:o,idx:n,c:a,C:A}}function fU(t){return t.l+=2,[t.read_shift(4)]}function dU(t,e,r){return t.l+=5,t.l+=2,t.l+=r.biff==2?1:4,["PTGSHEET"]}function gU(t,e,r){return t.l+=r.biff==2?4:5,["PTGENDSHEET"]}function pU(t){var e=t.read_shift(1)>>>5&3,r=t.read_shift(2);return[e,r]}function mU(t){var e=t.read_shift(1)>>>5&3,r=t.read_shift(2);return[e,r]}function yU(t){return t.l+=4,[0,0]}var DB={1:{n:"PtgExp",f:O8},2:{n:"PtgTbl",f:tU},3:{n:"PtgAdd",f:qr},4:{n:"PtgSub",f:qr},5:{n:"PtgMul",f:qr},6:{n:"PtgDiv",f:qr},7:{n:"PtgPower",f:qr},8:{n:"PtgConcat",f:qr},9:{n:"PtgLt",f:qr},10:{n:"PtgLe",f:qr},11:{n:"PtgEq",f:qr},12:{n:"PtgGe",f:qr},13:{n:"PtgGt",f:qr},14:{n:"PtgNe",f:qr},15:{n:"PtgIsect",f:qr},16:{n:"PtgUnion",f:qr},17:{n:"PtgRange",f:qr},18:{n:"PtgUplus",f:qr},19:{n:"PtgUminus",f:qr},20:{n:"PtgPercent",f:qr},21:{n:"PtgParen",f:qr},22:{n:"PtgMissArg",f:qr},23:{n:"PtgStr",f:V8},26:{n:"PtgSheet",f:dU},27:{n:"PtgEndSheet",f:gU},28:{n:"PtgErr",f:P8},29:{n:"PtgBool",f:R8},30:{n:"PtgInt",f:M8},31:{n:"PtgNum",f:H8},32:{n:"PtgArray",f:x8},33:{n:"PtgFunc",f:U8},34:{n:"PtgFuncVar",f:I8},35:{n:"PtgName",f:G8},36:{n:"PtgRef",f:T8},37:{n:"PtgArea",f:m8},38:{n:"PtgMemArea",f:X8},39:{n:"PtgMemErr",f:Z8},40:{n:"PtgMemNoMem",f:eU},41:{n:"PtgMemFunc",f:q8},42:{n:"PtgRefErr",f:Y8},43:{n:"PtgAreaErr",f:v8},44:{n:"PtgRefN",f:N8},45:{n:"PtgAreaN",f:B8},46:{n:"PtgMemAreaN",f:pU},47:{n:"PtgMemNoMemN",f:mU},57:{n:"PtgNameX",f:j8},58:{n:"PtgRef3d",f:L8},59:{n:"PtgArea3d",f:y8},60:{n:"PtgRefErr3d",f:J8},61:{n:"PtgAreaErr3d",f:w8},255:{}},vU={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},wU={1:{n:"PtgElfLel",f:IB},2:{n:"PtgElfRw",f:lU},3:{n:"PtgElfCol",f:rU},6:{n:"PtgElfRwV",f:cU},7:{n:"PtgElfColV",f:AU},10:{n:"PtgElfRadical",f:iU},11:{n:"PtgElfRadicalS",f:sU},13:{n:"PtgElfColS",f:nU},15:{n:"PtgElfColSV",f:aU},16:{n:"PtgElfRadicalLel",f:oU},25:{n:"PtgList",f:hU},29:{n:"PtgSxName",f:fU},255:{}},BU={0:{n:"PtgAttrNoop",f:yU},1:{n:"PtgAttrSemi",f:F8},2:{n:"PtgAttrIf",f:E8},4:{n:"PtgAttrChoose",f:b8},8:{n:"PtgAttrGoto",f:C8},16:{n:"PtgAttrSum",f:Q8},32:{n:"PtgAttrBaxcel",f:LB},33:{n:"PtgAttrBaxcel",f:LB},64:{n:"PtgAttrSpace",f:S8},65:{n:"PtgAttrSpaceSemi",f:k8},128:{n:"PtgAttrIfError",f:_8},255:{}};function xU(t,e,r,n){if(n.biff<8)return SA(t,e);for(var a=t.l+e,A=[],o=0;o!==r.length;++o)switch(r[o][0]){case"PtgArray":r[o][1]=K8(t,0,n),A.push(r[o][1]);break;case"PtgMemArea":r[o][2]=z8(t,r[o][1],n),A.push(r[o][2]);break;case"PtgExp":n&&n.biff==12&&(r[o][1][1]=t.read_shift(4),A.push(r[o][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[o][0]}return e=a-t.l,e!==0&&A.push(SA(t,e)),A}function bU(t,e,r){for(var n=t.l+e,a,A,o=[];n!=t.l;)e=n-t.l,A=t[t.l],a=DB[A]||DB[vU[A]],(A===24||A===25)&&(a=(A===24?wU:BU)[t[t.l+1]]),!a||!a.f?SA(t,e):o.push([a.n,a.f(t,e,r)]);return o}function CU(t){for(var e=[],r=0;r<t.length;++r){for(var n=t[r],a=[],A=0;A<n.length;++A){var o=n[A];if(o)switch(o[0]){case 2:a.push('"'+o[1].replace(/"/g,'""')+'"');break;default:a.push(o[1])}else a.push("")}e.push(a.join(","))}return e.join(";")}var EU={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function _U(t,e){if(!t&&!(e&&e.biff<=5&&e.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(t)?"'"+t+"'":t}function QB(t,e,r){if(!t)return"SH33TJSERR0";if(r.biff>8&&(!t.XTI||!t.XTI[e]))return t.SheetNames[e];if(!t.XTI)return"SH33TJSERR6";var n=t.XTI[e];if(r.biff<8)return e>1e4&&(e-=65536),e<0&&(e=-e),e==0?"":t.XTI[e-1];if(!n)return"SH33TJSERR1";var a="";if(r.biff>8)switch(t[n[0]][0]){case 357:return a=n[1]==-1?"#REF":t.SheetNames[n[1]],n[1]==n[2]?a:a+":"+t.SheetNames[n[2]];case 358:return r.SID!=null?t.SheetNames[r.SID]:"SH33TJSSAME"+t[n[0]][0];case 355:default:return"SH33TJSSRC"+t[n[0]][0]}switch(t[n[0]][0][0]){case 1025:return a=n[1]==-1?"#REF":t.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?a:a+":"+t.SheetNames[n[2]];case 14849:return t[n[0]].slice(1).map(function(A){return A.Name}).join(";;");default:return t[n[0]][0][3]?(a=n[1]==-1?"#REF":t[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?a:a+":"+t[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function OB(t,e,r){var n=QB(t,e,r);return n=="#REF"?n:_U(n,r)}function Fs(t,e,r,n,a){var A=a&&a.biff||8,o={s:{c:0,r:0},e:{c:0,r:0}},s=[],l,c,u,p=0,h=0,d,w="";if(!t[0]||!t[0][0])return"";for(var f=-1,m="",y=0,F=t[0].length;y<F;++y){var N=t[0][y];switch(N[0]){case"PtgUminus":s.push("-"+s.pop());break;case"PtgUplus":s.push("+"+s.pop());break;case"PtgPercent":s.push(s.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(l=s.pop(),c=s.pop(),f>=0){switch(t[0][f][1][0]){case 0:m=Tr(" ",t[0][f][1][1]);break;case 1:m=Tr("\r",t[0][f][1][1]);break;default:if(m="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][f][1][0])}c=c+m,f=-1}s.push(c+EU[N[0]]+l);break;case"PtgIsect":l=s.pop(),c=s.pop(),s.push(c+" "+l);break;case"PtgUnion":l=s.pop(),c=s.pop(),s.push(c+","+l);break;case"PtgRange":l=s.pop(),c=s.pop(),s.push(c+":"+l);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":u=ec(N[1][1],o,a),s.push(tc(u,A));break;case"PtgRefN":u=r?ec(N[1][1],r,a):N[1][1],s.push(tc(u,A));break;case"PtgRef3d":p=N[1][1],u=ec(N[1][2],o,a),w=OB(n,p,a),s.push(w+"!"+tc(u,A));break;case"PtgFunc":case"PtgFuncVar":var D=N[1][0],H=N[1][1];D||(D=0),D&=127;var R=D==0?[]:s.slice(-D);s.length-=D,H==="User"&&(H=R.shift()),s.push(H+"("+R.join(",")+")");break;case"PtgBool":s.push(N[1]?"TRUE":"FALSE");break;case"PtgInt":s.push(N[1]);break;case"PtgNum":s.push(String(N[1]));break;case"PtgStr":s.push('"'+N[1].replace(/"/g,'""')+'"');break;case"PtgErr":s.push(N[1]);break;case"PtgAreaN":d=Ow(N[1][1],r?{s:r}:o,a),s.push(dg(d,a));break;case"PtgArea":d=Ow(N[1][1],o,a),s.push(dg(d,a));break;case"PtgArea3d":p=N[1][1],d=N[1][2],w=OB(n,p,a),s.push(w+"!"+dg(d,a));break;case"PtgAttrSum":s.push("SUM("+s.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":h=N[1][2];var U=(n.names||[])[h-1]||(n[0]||[])[h],I=U?U.Name:"SH33TJSNAME"+String(h);I&&I.slice(0,6)=="_xlfn."&&!a.xlfn&&(I=I.slice(6)),s.push(I);break;case"PtgNameX":var O=N[1][1];h=N[1][2];var q;if(a.biff<=5)O<0&&(O=-O),n[O]&&(q=n[O][h]);else{var T="";if(((n[O]||[])[0]||[])[0]==14849||(((n[O]||[])[0]||[])[0]==1025?n[O][h]&&n[O][h].itab>0&&(T=n.SheetNames[n[O][h].itab-1]+"!"):T=n.SheetNames[h-1]+"!"),n[O]&&n[O][h])T+=n[O][h].Name;else if(n[0]&&n[0][h])T+=n[0][h].Name;else{var L=(QB(n,O,a)||"").split(";;");L[h-1]?T=L[h-1]:T+="SH33TJSERRX"}s.push(T);break}q||(q={Name:"SH33TJSERRY"}),s.push(q.Name);break;case"PtgParen":var G="(",Y=")";if(f>=0){switch(m="",t[0][f][1][0]){case 2:G=Tr(" ",t[0][f][1][1])+G;break;case 3:G=Tr("\r",t[0][f][1][1])+G;break;case 4:Y=Tr(" ",t[0][f][1][1])+Y;break;case 5:Y=Tr("\r",t[0][f][1][1])+Y;break;default:if(a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][f][1][0])}f=-1}s.push(G+s.pop()+Y);break;case"PtgRefErr":s.push("#REF!");break;case"PtgRefErr3d":s.push("#REF!");break;case"PtgExp":u={c:N[1][1],r:N[1][0]};var se={c:r.c,r:r.r};if(n.sharedf[nr(u)]){var he=n.sharedf[nr(u)];s.push(Fs(he,o,se,n,a))}else{var ge=!1;for(l=0;l!=n.arrayf.length;++l)if(c=n.arrayf[l],!(u.c<c[0].s.c||u.c>c[0].e.c)&&!(u.r<c[0].s.r||u.r>c[0].e.r)){s.push(Fs(c[1],o,se,n,a)),ge=!0;break}ge||s.push(N[1])}break;case"PtgArray":s.push("{"+CU(N[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":f=y;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":s.push("");break;case"PtgAreaErr":s.push("#REF!");break;case"PtgAreaErr3d":s.push("#REF!");break;case"PtgList":s.push("Table"+N[1].idx+"[#"+N[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(N));default:throw new Error("Unrecognized Formula Token: "+String(N))}var re=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(a.biff!=3&&f>=0&&re.indexOf(t[0][y][0])==-1){N=t[0][f];var le=!0;switch(N[1][0]){case 4:le=!1;case 0:m=Tr(" ",N[1][1]);break;case 5:le=!1;case 1:m=Tr("\r",N[1][1]);break;default:if(m="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+N[1][0])}s.push((le?m:"")+s.pop()+(le?"":m)),f=-1}}if(s.length>1&&a.WTF)throw new Error("bad formula stack");return s[0]}function FU(t){if(t==null){var e=Oe(8);return e.write_shift(1,3),e.write_shift(1,0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,65535),e}else if(typeof t=="number")return Eo(t);return Eo(0)}function SU(t,e,r,n,a){var A=Fo(e,r,a),o=FU(t.v),s=Oe(6),l=33;s.write_shift(2,l),s.write_shift(4,0);for(var c=Oe(t.bf.length),u=0;u<t.bf.length;++u)c[u]=t.bf[u];var p=wn([A,o,s,c]);return p}function Rh(t,e,r){var n=t.read_shift(4),a=bU(t,n,r),A=t.read_shift(4),o=A>0?xU(t,A,a,r):null;return[a,o]}var kU=Rh,Hh=Rh,TU=Rh,NU=Rh,LU={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},PB={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},UU={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function IU(t){var e="of:="+t.replace(_g,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return e.replace(/;/g,"|").replace(/,/g,";")}function DU(t){return t.replace(/\./,"!")}var Ac=typeof Map<"u";function kg(t,e,r){var n=0,a=t.length;if(r){if(Ac?r.has(e):Object.prototype.hasOwnProperty.call(r,e)){for(var A=Ac?r.get(e):r[e];n<A.length;++n)if(t[A[n]].t===e)return t.Count++,A[n]}}else for(;n<a;++n)if(t[n].t===e)return t.Count++,n;return t[a]={t:e},t.Count++,t.Unique++,r&&(Ac?(r.has(e)||r.set(e,[]),r.get(e).push(a)):(Object.prototype.hasOwnProperty.call(r,e)||(r[e]=[]),r[e].push(a))),a}function Vh(t,e){var r={min:t+1,max:t+1},n=-1;return e.MDW&&(ZA=e.MDW),e.width!=null?r.customWidth=1:e.wpx!=null?n=Ph(e.wpx):e.wch!=null&&(n=e.wch),n>-1?(r.width=bg(n),r.customWidth=1):e.width!=null&&(r.width=e.width),e.hidden&&(r.hidden=!0),e.level!=null&&(r.outlineLevel=r.level=e.level),r}function MB(t,e){if(t){var r=[.7,.7,.75,.75,.3,.3];e=="xlml"&&(r=[1,1,1,1,.5,.5]),t.left==null&&(t.left=r[0]),t.right==null&&(t.right=r[1]),t.top==null&&(t.top=r[2]),t.bottom==null&&(t.bottom=r[3]),t.header==null&&(t.header=r[4]),t.footer==null&&(t.footer=r[5])}}function Oi(t,e,r){var n=r.revssf[e.z!=null?e.z:"General"],a=60,A=t.length;if(n==null&&r.ssf){for(;a<392;++a)if(r.ssf[a]==null){iw(e.z,a),r.ssf[a]=e.z,r.revssf[e.z]=n=a;break}}for(a=0;a!=A;++a)if(t[a].numFmtId===n)return a;return t[A]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},A}function QU(t,e,r){if(t&&t["!ref"]){var n=Br(t["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+r+"): "+t["!ref"])}}function OU(t){if(t.length===0)return"";for(var e='<mergeCells count="'+t.length+'">',r=0;r!=t.length;++r)e+='<mergeCell ref="'+Xr(t[r])+'"/>';return e+"</mergeCells>"}function PU(t,e,r,n,a){var A=!1,o={},s=null;if(n.bookType!=="xlsx"&&e.vbaraw){var l=e.SheetNames[r];try{e.Workbook&&(l=e.Workbook.Sheets[r].CodeName||l)}catch{}A=!0,o.codeName=YA(rr(l))}if(t&&t["!outline"]){var c={summaryBelow:1,summaryRight:1};t["!outline"].above&&(c.summaryBelow=0),t["!outline"].left&&(c.summaryRight=0),s=(s||"")+Ze("outlinePr",null,c)}!A&&!s||(a[a.length]=Ze("sheetPr",s,o))}var MU=["objects","scenarios","selectLockedCells","selectUnlockedCells"],RU=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function HU(t){var e={sheet:1};return MU.forEach(function(r){t[r]!=null&&t[r]&&(e[r]="1")}),RU.forEach(function(r){t[r]!=null&&!t[r]&&(e[r]="0")}),t.password&&(e.password=mB(t.password).toString(16).toUpperCase()),Ze("sheetProtection",null,e)}function VU(t){return MB(t),Ze("pageMargins",null,t)}function $U(t,e){for(var r=["<cols>"],n,a=0;a!=e.length;++a)(n=e[a])&&(r[r.length]=Ze("col",null,Vh(a,n)));return r[r.length]="</cols>",r.join("")}function zU(t,e,r,n){var a=typeof t.ref=="string"?t.ref:Xr(t.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var A=r.Workbook.Names,o=va(a);o.s.r==o.e.r&&(o.e.r=va(e["!ref"]).e.r,a=Xr(o));for(var s=0;s<A.length;++s){var l=A[s];if(l.Name=="_xlnm._FilterDatabase"&&l.Sheet==n){l.Ref="'"+r.SheetNames[n]+"'!"+a;break}}return s==A.length&&A.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+a}),Ze("autoFilter",null,{ref:a})}function KU(t,e,r,n){var a={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(a.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),Ze("sheetViews",Ze("sheetView",null,a),{})}function GU(t,e,r,n){if(t.c&&r["!comments"].push([e,t.c]),t.v===void 0&&typeof t.f!="string"||t.t==="z"&&!t.f)return"";var a="",A=t.t,o=t.v;if(t.t!=="z")switch(t.t){case"b":a=t.v?"1":"0";break;case"n":a=""+t.v;break;case"e":a=rc[t.v];break;case"d":n&&n.cellDates?a=Gn(t.v,-1).toISOString():(t=aa(t),t.t="n",a=""+(t.v=na(Gn(t.v)))),typeof t.z>"u"&&(t.z=kr[14]);break;default:a=t.v;break}var s=xn("v",rr(a)),l={r:e},c=Oi(n.cellXfs,t,n);switch(c!==0&&(l.s=c),t.t){case"n":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;case"z":break;default:if(t.v==null){delete t.t;break}if(t.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){s=xn("v",""+kg(n.Strings,t.v,n.revStrings)),l.t="s";break}l.t="str";break}if(t.t!=A&&(t.t=A,t.v=o),typeof t.f=="string"&&t.f){var u=t.F&&t.F.slice(0,e.length)==e?{t:"array",ref:t.F}:null;s=Ze("f",rr(t.f),u)+(t.v!=null?s:"")}return t.l&&r["!links"].push([e,t.l]),t.D&&(l.cm=1),Ze("c",s,l)}function jU(t,e,r,n){var a=[],A=[],o=Br(t["!ref"]),s="",l,c="",u=[],p=0,h=0,d=t["!rows"],w=Array.isArray(t),f={r:c},m,y=-1;for(h=o.s.c;h<=o.e.c;++h)u[h]=Dn(h);for(p=o.s.r;p<=o.e.r;++p){for(A=[],c=bn(p),h=o.s.c;h<=o.e.c;++h){l=u[h]+c;var F=w?(t[p]||[])[h]:t[l];F!==void 0&&(s=GU(F,l,t,e))!=null&&A.push(s)}(A.length>0||d&&d[p])&&(f={r:c},d&&d[p]&&(m=d[p],m.hidden&&(f.hidden=1),y=-1,m.hpx?y=Mh(m.hpx):m.hpt&&(y=m.hpt),y>-1&&(f.ht=y,f.customHeight=1),m.level&&(f.outlineLevel=m.level)),a[a.length]=Ze("row",A.join(""),f))}if(d)for(;p<d.length;++p)d&&d[p]&&(f={r:p+1},m=d[p],m.hidden&&(f.hidden=1),y=-1,m.hpx?y=Mh(m.hpx):m.hpt&&(y=m.hpt),y>-1&&(f.ht=y,f.customHeight=1),m.level&&(f.outlineLevel=m.level),a[a.length]=Ze("row","",f));return a.join("")}function RB(t,e,r,n){var a=[Wr,Ze("worksheet",null,{xmlns:vs[0],"xmlns:r":un.r})],A=r.SheetNames[t],o=0,s="",l=r.Sheets[A];l==null&&(l={});var c=l["!ref"]||"A1",u=Br(c);if(u.e.c>16383||u.e.r>1048575){if(e.WTF)throw new Error("Range "+c+" exceeds format limit A1:XFD1048576");u.e.c=Math.min(u.e.c,16383),u.e.r=Math.min(u.e.c,1048575),c=Xr(u)}n||(n={}),l["!comments"]=[];var p=[];PU(l,r,t,e,a),a[a.length]=Ze("dimension",null,{ref:c}),a[a.length]=KU(l,e,t,r),e.sheetFormat&&(a[a.length]=Ze("sheetFormatPr",null,{defaultRowHeight:e.sheetFormat.defaultRowHeight||"16",baseColWidth:e.sheetFormat.baseColWidth||"10",outlineLevelRow:e.sheetFormat.outlineLevelRow||"7"})),l["!cols"]!=null&&l["!cols"].length>0&&(a[a.length]=$U(l,l["!cols"])),a[o=a.length]="<sheetData/>",l["!links"]=[],l["!ref"]!=null&&(s=jU(l,e),s.length>0&&(a[a.length]=s)),a.length>o+1&&(a[a.length]="</sheetData>",a[o]=a[o].replace("/>",">")),l["!protect"]&&(a[a.length]=HU(l["!protect"])),l["!autofilter"]!=null&&(a[a.length]=zU(l["!autofilter"],l,r,t)),l["!merges"]!=null&&l["!merges"].length>0&&(a[a.length]=OU(l["!merges"]));var h=-1,d,w=-1;return l["!links"].length>0&&(a[a.length]="<hyperlinks>",l["!links"].forEach(function(f){f[1].Target&&(d={ref:f[0]},f[1].Target.charAt(0)!="#"&&(w=ar(n,-1,rr(f[1].Target).replace(/#.*$/,""),qt.HLINK),d["r:id"]="rId"+w),(h=f[1].Target.indexOf("#"))>-1&&(d.location=rr(f[1].Target.slice(h+1))),f[1].Tooltip&&(d.tooltip=rr(f[1].Tooltip)),a[a.length]=Ze("hyperlink",null,d))}),a[a.length]="</hyperlinks>"),delete l["!links"],l["!margins"]!=null&&(a[a.length]=VU(l["!margins"])),(!e||e.ignoreEC||e.ignoreEC==null)&&(a[a.length]=xn("ignoredErrors",Ze("ignoredError",null,{numberStoredAsText:1,sqref:c}))),p.length>0&&(w=ar(n,-1,"../drawings/drawing"+(t+1)+".xml",qt.DRAW),a[a.length]=Ze("drawing",null,{"r:id":"rId"+w}),l["!drawing"]=p),l["!comments"].length>0&&(w=ar(n,-1,"../drawings/vmlDrawing"+(t+1)+".vml",qt.VML),a[a.length]=Ze("legacyDrawing",null,{"r:id":"rId"+w}),l["!legacy"]=w),a.length>1&&(a[a.length]="</worksheet>",a[1]=a[1].replace("/>",">")),a.join("")}function WU(t,e){var r={},n=t.l+e;r.r=t.read_shift(4),t.l+=4;var a=t.read_shift(2);t.l+=1;var A=t.read_shift(1);return t.l=n,A&7&&(r.level=A&7),A&16&&(r.hidden=!0),A&32&&(r.hpt=a/20),r}function XU(t,e,r){var n=Oe(145),a=(r["!rows"]||[])[t]||{};n.write_shift(4,t),n.write_shift(4,0);var A=320;a.hpx?A=Mh(a.hpx)*20:a.hpt&&(A=a.hpt*20),n.write_shift(2,A),n.write_shift(1,0);var o=0;a.level&&(o|=a.level),a.hidden&&(o|=16),(a.hpx||a.hpt)&&(o|=32),n.write_shift(1,o),n.write_shift(1,0);var s=0,l=n.l;n.l+=4;for(var c={r:t,c:0},u=0;u<16;++u)if(!(e.s.c>u+1<<10||e.e.c<u<<10)){for(var p=-1,h=-1,d=u<<10;d<u+1<<10;++d){c.c=d;var w=Array.isArray(r)?(r[c.r]||[])[c.c]:r[nr(c)];w&&(p<0&&(p=d),h=d)}p<0||(++s,n.write_shift(4,p),n.write_shift(4,h))}var f=n.l;return n.l=l,n.write_shift(4,s),n.l=f,n.length>n.l?n.slice(0,n.l):n}function qU(t,e,r,n){var a=XU(n,r,e);(a.length>17||(e["!rows"]||[])[n])&&$e(t,0,a)}var YU=Co,JU=xs;function ZU(){}function eI(t,e){var r={},n=t[t.l];return++t.l,r.above=!(n&64),r.left=!(n&128),t.l+=18,r.name=c6(t),r}function tI(t,e,r){r==null&&(r=Oe(84+4*t.length));var n=192;e&&(e.above&&(n&=-65),e.left&&(n&=-129)),r.write_shift(1,n);for(var a=1;a<3;++a)r.write_shift(1,0);return Lh({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),Rw(t,r),r.slice(0,r.l)}function rI(t){var e=Ia(t);return[e]}function nI(t,e,r){return r==null&&(r=Oe(8)),Bo(e,r)}function aI(t){var e=xo(t);return[e]}function AI(t,e,r){return r==null&&(r=Oe(4)),bo(e,r)}function iI(t){var e=Ia(t),r=t.read_shift(1);return[e,r,"b"]}function oI(t,e,r){return r==null&&(r=Oe(9)),Bo(e,r),r.write_shift(1,t.v?1:0),r}function sI(t){var e=xo(t),r=t.read_shift(1);return[e,r,"b"]}function lI(t,e,r){return r==null&&(r=Oe(5)),bo(e,r),r.write_shift(1,t.v?1:0),r}function cI(t){var e=Ia(t),r=t.read_shift(1);return[e,r,"e"]}function uI(t,e,r){return r==null&&(r=Oe(9)),Bo(e,r),r.write_shift(1,t.v),r}function hI(t){var e=xo(t),r=t.read_shift(1);return[e,r,"e"]}function fI(t,e,r){return r==null&&(r=Oe(8)),bo(e,r),r.write_shift(1,t.v),r.write_shift(2,0),r.write_shift(1,0),r}function dI(t){var e=Ia(t),r=t.read_shift(4);return[e,r,"s"]}function gI(t,e,r){return r==null&&(r=Oe(12)),Bo(e,r),r.write_shift(4,e.v),r}function pI(t){var e=xo(t),r=t.read_shift(4);return[e,r,"s"]}function mI(t,e,r){return r==null&&(r=Oe(8)),bo(e,r),r.write_shift(4,e.v),r}function yI(t){var e=Ia(t),r=bs(t);return[e,r,"n"]}function vI(t,e,r){return r==null&&(r=Oe(16)),Bo(e,r),Eo(t.v,r),r}function wI(t){var e=xo(t),r=bs(t);return[e,r,"n"]}function BI(t,e,r){return r==null&&(r=Oe(12)),bo(e,r),Eo(t.v,r),r}function xI(t){var e=Ia(t),r=Hw(t);return[e,r,"n"]}function bI(t,e,r){return r==null&&(r=Oe(12)),Bo(e,r),Vw(t.v,r),r}function CI(t){var e=xo(t),r=Hw(t);return[e,r,"n"]}function EI(t,e,r){return r==null&&(r=Oe(8)),bo(e,r),Vw(t.v,r),r}function _I(t){var e=Ia(t),r=mg(t);return[e,r,"is"]}function FI(t){var e=Ia(t),r=Qn(t);return[e,r,"str"]}function SI(t,e,r){return r==null&&(r=Oe(12+4*t.v.length)),Bo(e,r),fn(t.v,r),r.length>r.l?r.slice(0,r.l):r}function kI(t){var e=xo(t),r=Qn(t);return[e,r,"str"]}function TI(t,e,r){return r==null&&(r=Oe(8+4*t.v.length)),bo(e,r),fn(t.v,r),r.length>r.l?r.slice(0,r.l):r}function NI(t,e,r){var n=t.l+e,a=Ia(t);a.r=r["!row"];var A=t.read_shift(1),o=[a,A,"b"];if(r.cellFormula){t.l+=2;var s=Hh(t,n-t.l,r);o[3]=Fs(s,null,a,r.supbooks,r)}else t.l=n;return o}function LI(t,e,r){var n=t.l+e,a=Ia(t);a.r=r["!row"];var A=t.read_shift(1),o=[a,A,"e"];if(r.cellFormula){t.l+=2;var s=Hh(t,n-t.l,r);o[3]=Fs(s,null,a,r.supbooks,r)}else t.l=n;return o}function UI(t,e,r){var n=t.l+e,a=Ia(t);a.r=r["!row"];var A=bs(t),o=[a,A,"n"];if(r.cellFormula){t.l+=2;var s=Hh(t,n-t.l,r);o[3]=Fs(s,null,a,r.supbooks,r)}else t.l=n;return o}function II(t,e,r){var n=t.l+e,a=Ia(t);a.r=r["!row"];var A=Qn(t),o=[a,A,"str"];if(r.cellFormula){t.l+=2;var s=Hh(t,n-t.l,r);o[3]=Fs(s,null,a,r.supbooks,r)}else t.l=n;return o}var DI=Co,QI=xs;function OI(t,e){return e==null&&(e=Oe(4)),e.write_shift(4,t),e}function PI(t,e){var r=t.l+e,n=Co(t),a=yg(t),A=Qn(t),o=Qn(t),s=Qn(t);t.l=r;var l={rfx:n,relId:a,loc:A,display:s};return o&&(l.Tooltip=o),l}function MI(t,e){var r=Oe(50+4*(t[1].Target.length+(t[1].Tooltip||"").length));xs({s:hn(t[0]),e:hn(t[0])},r),wg("rId"+e,r);var n=t[1].Target.indexOf("#"),a=n==-1?"":t[1].Target.slice(n+1);return fn(a||"",r),fn(t[1].Tooltip||"",r),fn("",r),r.slice(0,r.l)}function RI(){}function HI(t,e,r){var n=t.l+e,a=$w(t),A=t.read_shift(1),o=[a];if(o[2]=A,r.cellFormula){var s=kU(t,n-t.l,r);o[1]=s}else t.l=n;return o}function VI(t,e,r){var n=t.l+e,a=Co(t),A=[a];if(r.cellFormula){var o=NU(t,n-t.l,r);A[1]=o,t.l=n}else t.l=n;return A}function $I(t,e,r){r==null&&(r=Oe(18));var n=Vh(t,e);r.write_shift(-4,t),r.write_shift(-4,t),r.write_shift(4,(n.width||10)*256),r.write_shift(4,0);var a=0;return e.hidden&&(a|=1),typeof n.width=="number"&&(a|=2),e.level&&(a|=e.level<<8),r.write_shift(2,a),r}var HB=["left","right","top","bottom","header","footer"];function zI(t){var e={};return HB.forEach(function(r){e[r]=bs(t)}),e}function KI(t,e){return e==null&&(e=Oe(6*8)),MB(t),HB.forEach(function(r){Eo(t[r],e)}),e}function GI(t){var e=t.read_shift(2);return t.l+=28,{RTL:e&32}}function jI(t,e,r){r==null&&(r=Oe(30));var n=924;return(((e||{}).Views||[])[0]||{}).RTL&&(n|=32),r.write_shift(2,n),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,100),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(4,0),r}function WI(t){var e=Oe(24);return e.write_shift(4,4),e.write_shift(4,1),xs(t,e),e}function XI(t,e){return e==null&&(e=Oe(16*4+2)),e.write_shift(2,t.password?mB(t.password):0),e.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(r){r[1]?e.write_shift(4,t[r[0]]!=null&&!t[r[0]]?1:0):e.write_shift(4,t[r[0]]!=null&&t[r[0]]?0:1)}),e}function qI(){}function YI(){}function JI(t,e,r,n,a,A,o){if(e.v===void 0)return!1;var s="";switch(e.t){case"b":s=e.v?"1":"0";break;case"d":e=aa(e),e.z=e.z||kr[14],e.v=na(Gn(e.v)),e.t="n";break;case"n":case"e":s=""+e.v;break;default:s=e.v;break}var l={r,c:n};switch(l.s=Oi(a.cellXfs,e,a),e.l&&A["!links"].push([nr(l),e.l]),e.c&&A["!comments"].push([nr(l),e.c]),e.t){case"s":case"str":return a.bookSST?(s=kg(a.Strings,e.v,a.revStrings),l.t="s",l.v=s,o?$e(t,18,mI(e,l)):$e(t,7,gI(e,l))):(l.t="str",o?$e(t,17,TI(e,l)):$e(t,6,SI(e,l))),!0;case"n":return e.v==(e.v|0)&&e.v>-1e3&&e.v<1e3?o?$e(t,13,EI(e,l)):$e(t,2,bI(e,l)):o?$e(t,16,BI(e,l)):$e(t,5,vI(e,l)),!0;case"b":return l.t="b",o?$e(t,15,lI(e,l)):$e(t,4,oI(e,l)),!0;case"e":return l.t="e",o?$e(t,14,fI(e,l)):$e(t,3,uI(e,l)),!0}return o?$e(t,12,AI(e,l)):$e(t,1,nI(e,l)),!0}function ZI(t,e,r,n){var a=Br(e["!ref"]||"A1"),A,o="",s=[];$e(t,145);var l=Array.isArray(e),c=a.e.r;e["!rows"]&&(c=Math.max(a.e.r,e["!rows"].length-1));for(var u=a.s.r;u<=c;++u){o=bn(u),qU(t,e,a,u);var p=!1;if(u<=a.e.r)for(var h=a.s.c;h<=a.e.c;++h){u===a.s.r&&(s[h]=Dn(h)),A=s[h]+o;var d=l?(e[u]||[])[h]:e[A];if(!d){p=!1;continue}p=JI(t,d,u,h,n,e,p)}}$e(t,146)}function eD(t,e){!e||!e["!merges"]||($e(t,177,OI(e["!merges"].length)),e["!merges"].forEach(function(r){$e(t,176,QI(r))}),$e(t,178))}function tD(t,e){!e||!e["!cols"]||($e(t,390),e["!cols"].forEach(function(r,n){r&&$e(t,60,$I(n,r))}),$e(t,391))}function rD(t,e){!e||!e["!ref"]||($e(t,648),$e(t,649,WI(Br(e["!ref"]))),$e(t,650))}function nD(t,e,r){e["!links"].forEach(function(n){if(n[1].Target){var a=ar(r,-1,n[1].Target.replace(/#.*$/,""),qt.HLINK);$e(t,494,MI(n,a))}}),delete e["!links"]}function aD(t,e,r,n){if(e["!comments"].length>0){var a=ar(n,-1,"../drawings/vmlDrawing"+(r+1)+".vml",qt.VML);$e(t,551,wg("rId"+a)),e["!legacy"]=a}}function AD(t,e,r,n){if(e["!autofilter"]){var a=e["!autofilter"],A=typeof a.ref=="string"?a.ref:Xr(a.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var o=r.Workbook.Names,s=va(A);s.s.r==s.e.r&&(s.e.r=va(e["!ref"]).e.r,A=Xr(s));for(var l=0;l<o.length;++l){var c=o[l];if(c.Name=="_xlnm._FilterDatabase"&&c.Sheet==n){c.Ref="'"+r.SheetNames[n]+"'!"+A;break}}l==o.length&&o.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+A}),$e(t,161,xs(Br(A))),$e(t,162)}}function iD(t,e,r){$e(t,133),$e(t,137,jI(e,r)),$e(t,138),$e(t,134)}function oD(t,e){e["!protect"]&&$e(t,535,XI(e["!protect"]))}function sD(t,e,r,n){var a=Aa(),A=r.SheetNames[t],o=r.Sheets[A]||{},s=A;try{r&&r.Workbook&&(s=r.Workbook.Sheets[t].CodeName||s)}catch{}var l=Br(o["!ref"]||"A1");if(l.e.c>16383||l.e.r>1048575){if(e.WTF)throw new Error("Range "+(o["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");l.e.c=Math.min(l.e.c,16383),l.e.r=Math.min(l.e.c,1048575)}return o["!links"]=[],o["!comments"]=[],$e(a,129),(r.vbaraw||o["!outline"])&&$e(a,147,tI(s,o["!outline"])),$e(a,148,JU(l)),iD(a,o,r.Workbook),tD(a,o),ZI(a,o,t,e),oD(a,o),AD(a,o,r,t),eD(a,o),nD(a,o,n),o["!margins"]&&$e(a,476,KI(o["!margins"])),(!e||e.ignoreEC||e.ignoreEC==null)&&rD(a,o),aD(a,o,t,n),$e(a,130),a.end()}function lD(t,e){t.l+=10;var r=Qn(t);return{name:r}}var cD=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]];function uD(t){return!t.Workbook||!t.Workbook.WBProps?"false":VN(t.Workbook.WBProps.date1904)?"true":"false"}var hD="][*?/\\".split("");function VB(t,e){if(t.length>31){if(e)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var r=!0;return hD.forEach(function(n){if(t.indexOf(n)!=-1){if(!e)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");r=!1}}),r}function fD(t,e,r){t.forEach(function(n,a){VB(n);for(var A=0;A<a;++A)if(n==t[A])throw new Error("Duplicate Sheet Name: "+n);if(r){var o=e&&e[a]&&e[a].CodeName||n;if(o.charCodeAt(0)==95&&o.length>22)throw new Error("Bad Code Name: Worksheet"+o)}})}function dD(t){if(!t||!t.SheetNames||!t.Sheets)throw new Error("Invalid Workbook");if(!t.SheetNames.length)throw new Error("Workbook is empty");var e=t.Workbook&&t.Workbook.Sheets||[];fD(t.SheetNames,e,!!t.vbaraw);for(var r=0;r<t.SheetNames.length;++r)QU(t.Sheets[t.SheetNames[r]],t.SheetNames[r],r)}function $B(t){var e=[Wr];e[e.length]=Ze("workbook",null,{xmlns:vs[0],"xmlns:r":un.r});var r=t.Workbook&&(t.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};t.Workbook&&t.Workbook.WBProps&&(cD.forEach(function(s){t.Workbook.WBProps[s[0]]!=null&&t.Workbook.WBProps[s[0]]!=s[1]&&(n[s[0]]=t.Workbook.WBProps[s[0]])}),t.Workbook.WBProps.CodeName&&(n.codeName=t.Workbook.WBProps.CodeName,delete n.CodeName)),e[e.length]=Ze("workbookPr",null,n);var a=t.Workbook&&t.Workbook.Sheets||[],A=0;if(a&&a[0]&&a[0].Hidden){for(e[e.length]="<bookViews>",A=0;A!=t.SheetNames.length&&!(!a[A]||!a[A].Hidden);++A);A==t.SheetNames.length&&(A=0),e[e.length]='<workbookView firstSheet="'+A+'" activeTab="'+A+'"/>',e[e.length]="</bookViews>"}for(e[e.length]="<sheets>",A=0;A!=t.SheetNames.length;++A){var o={name:rr(t.SheetNames[A].slice(0,31))};if(o.sheetId=""+(A+1),o["r:id"]="rId"+(A+1),a[A])switch(a[A].Hidden){case 1:o.state="hidden";break;case 2:o.state="veryHidden";break}e[e.length]=Ze("sheet",null,o)}return e[e.length]="</sheets>",r&&(e[e.length]="<definedNames>",t.Workbook&&t.Workbook.Names&&t.Workbook.Names.forEach(function(s){var l={name:s.Name};s.Comment&&(l.comment=s.Comment),s.Sheet!=null&&(l.localSheetId=""+s.Sheet),s.Hidden&&(l.hidden="1"),s.Ref&&(e[e.length]=Ze("definedName",rr(s.Ref),l))}),e[e.length]="</definedNames>"),e.length>2&&(e[e.length]="</workbook>",e[1]=e[1].replace("/>",">")),e.join("")}function gD(t,e){var r={};return r.Hidden=t.read_shift(4),r.iTabID=t.read_shift(4),r.strRelID=vg(t),r.name=Qn(t),r}function pD(t,e){return e||(e=Oe(127)),e.write_shift(4,t.Hidden),e.write_shift(4,t.iTabID),wg(t.strRelID,e),fn(t.name.slice(0,31),e),e.length>e.l?e.slice(0,e.l):e}function mD(t,e){var r={},n=t.read_shift(4);r.defaultThemeVersion=t.read_shift(4);var a=e>8?Qn(t):"";return a.length>0&&(r.CodeName=a),r.autoCompressPictures=!!(n&65536),r.backupFile=!!(n&64),r.checkCompatibility=!!(n&4096),r.date1904=!!(n&1),r.filterPrivacy=!!(n&8),r.hidePivotFieldList=!!(n&1024),r.promptedSolutions=!!(n&16),r.publishItems=!!(n&2048),r.refreshAllConnections=!!(n&262144),r.saveExternalLinkValues=!!(n&128),r.showBorderUnselectedTables=!!(n&4),r.showInkAnnotation=!!(n&32),r.showObjects=["all","placeholders","none"][n>>13&3],r.showPivotChartFilter=!!(n&32768),r.updateLinks=["userSet","never","always"][n>>8&3],r}function yD(t,e){e||(e=Oe(72));var r=0;return t&&t.filterPrivacy&&(r|=8),e.write_shift(4,r),e.write_shift(4,0),Rw(t&&t.CodeName||"ThisWorkbook",e),e.slice(0,e.l)}function vD(t,e,r){var n=t.l+e;t.l+=4,t.l+=1;var a=t.read_shift(4),A=u6(t),o=TU(t,0,r),s=yg(t);t.l=n;var l={Name:A,Ptg:o};return a<268435455&&(l.Sheet=a),s&&(l.Comment=s),l}function wD(t,e){$e(t,143);for(var r=0;r!=e.SheetNames.length;++r){var n=e.Workbook&&e.Workbook.Sheets&&e.Workbook.Sheets[r]&&e.Workbook.Sheets[r].Hidden||0,a={Hidden:n,iTabID:r+1,strRelID:"rId"+(r+1),name:e.SheetNames[r]};$e(t,156,pD(a))}$e(t,144)}function BD(t,e){e||(e=Oe(127));for(var r=0;r!=4;++r)e.write_shift(4,0);return fn("SheetJS",e),fn(ph.version,e),fn(ph.version,e),fn("7262",e),e.length>e.l?e.slice(0,e.l):e}function xD(t,e){e||(e=Oe(29)),e.write_shift(-4,0),e.write_shift(-4,460),e.write_shift(4,28800),e.write_shift(4,17600),e.write_shift(4,500),e.write_shift(4,t),e.write_shift(4,t);var r=120;return e.write_shift(1,r),e.length>e.l?e.slice(0,e.l):e}function bD(t,e){if(!(!e.Workbook||!e.Workbook.Sheets)){for(var r=e.Workbook.Sheets,n=0,a=-1,A=-1;n<r.length;++n)!r[n]||!r[n].Hidden&&a==-1?a=n:r[n].Hidden==1&&A==-1&&(A=n);A>a||($e(t,135),$e(t,158,xD(a)),$e(t,136))}}function CD(t,e){var r=Aa();return $e(r,131),$e(r,128,BD()),$e(r,153,yD(t.Workbook&&t.Workbook.WBProps||null)),bD(r,t),wD(r,t),$e(r,132),r.end()}function ED(t,e,r){return(e.slice(-4)===".bin"?CD:$B)(t)}function _D(t,e,r,n,a){return(e.slice(-4)===".bin"?sD:RB)(t,r,n,a)}function FD(t,e,r){return(e.slice(-4)===".bin"?KL:BB)(t,r)}function SD(t,e,r){return(e.slice(-4)===".bin"?yL:pB)(t,r)}function kD(t,e,r){return(e.slice(-4)===".bin"?o8:FB)(t)}function TD(t){return(t.slice(-4)===".bin"?ZL:EB)()}function ND(t,e){var r=[];return t.Props&&r.push(F6(t.Props,e)),t.Custprops&&r.push(S6(t.Props,t.Custprops)),r.join("")}function LD(){return""}function UD(t,e){var r=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return e.cellXfs.forEach(function(n,a){var A=[];A.push(Ze("NumberFormat",null,{"ss:Format":rr(kr[n.numFmtId])}));var o={"ss:ID":"s"+(21+a)};r.push(Ze("Style",A.join(""),o))}),Ze("Styles",r.join(""))}function zB(t){return Ze("NamedRange",null,{"ss:Name":t.Name,"ss:RefersTo":"="+Fg(t.Ref,{r:0,c:0})})}function ID(t){if(!((t||{}).Workbook||{}).Names)return"";for(var e=t.Workbook.Names,r=[],n=0;n<e.length;++n){var a=e[n];a.Sheet==null&&(a.Name.match(/^_xlfn\./)||r.push(zB(a)))}return Ze("Names",r.join(""))}function DD(t,e,r,n){if(!t||!((n||{}).Workbook||{}).Names)return"";for(var a=n.Workbook.Names,A=[],o=0;o<a.length;++o){var s=a[o];s.Sheet==r&&(s.Name.match(/^_xlfn\./)||A.push(zB(s)))}return A.join("")}function QD(t,e,r,n){if(!t)return"";var a=[];if(t["!margins"]&&(a.push("<PageSetup>"),t["!margins"].header&&a.push(Ze("Header",null,{"x:Margin":t["!margins"].header})),t["!margins"].footer&&a.push(Ze("Footer",null,{"x:Margin":t["!margins"].footer})),a.push(Ze("PageMargins",null,{"x:Bottom":t["!margins"].bottom||"0.75","x:Left":t["!margins"].left||"0.7","x:Right":t["!margins"].right||"0.7","x:Top":t["!margins"].top||"0.75"})),a.push("</PageSetup>")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[r])if(n.Workbook.Sheets[r].Hidden)a.push(Ze("Visible",n.Workbook.Sheets[r].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var A=0;A<r&&!(n.Workbook.Sheets[A]&&!n.Workbook.Sheets[A].Hidden);++A);A==r&&a.push("<Selected/>")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&a.push("<DisplayRightToLeft/>"),t["!protect"]&&(a.push(xn("ProtectContents","True")),t["!protect"].objects&&a.push(xn("ProtectObjects","True")),t["!protect"].scenarios&&a.push(xn("ProtectScenarios","True")),t["!protect"].selectLockedCells!=null&&!t["!protect"].selectLockedCells?a.push(xn("EnableSelection","NoSelection")):t["!protect"].selectUnlockedCells!=null&&!t["!protect"].selectUnlockedCells&&a.push(xn("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(o){t["!protect"][o[0]]&&a.push("<"+o[1]+"/>")})),a.length==0?"":Ze("WorksheetOptions",a.join(""),{xmlns:pa.x})}function OD(t){return t.map(function(e){var r=HN(e.t||""),n=Ze("ss:Data",r,{xmlns:"http://www.w3.org/TR/REC-html40"});return Ze("Comment",n,{"ss:Author":e.a})}).join("")}function PD(t,e,r,n,a,A,o){if(!t||t.v==null&&t.f==null)return"";var s={};if(t.f&&(s["ss:Formula"]="="+rr(Fg(t.f,o))),t.F&&t.F.slice(0,e.length)==e){var l=hn(t.F.slice(e.length+1));s["ss:ArrayRange"]="RC:R"+(l.r==o.r?"":"["+(l.r-o.r)+"]")+"C"+(l.c==o.c?"":"["+(l.c-o.c)+"]")}if(t.l&&t.l.Target&&(s["ss:HRef"]=rr(t.l.Target),t.l.Tooltip&&(s["x:HRefScreenTip"]=rr(t.l.Tooltip))),r["!merges"])for(var c=r["!merges"],u=0;u!=c.length;++u)c[u].s.c!=o.c||c[u].s.r!=o.r||(c[u].e.c>c[u].s.c&&(s["ss:MergeAcross"]=c[u].e.c-c[u].s.c),c[u].e.r>c[u].s.r&&(s["ss:MergeDown"]=c[u].e.r-c[u].s.r));var p="",h="";switch(t.t){case"z":if(!n.sheetStubs)return"";break;case"n":p="Number",h=String(t.v);break;case"b":p="Boolean",h=t.v?"1":"0";break;case"e":p="Error",h=rc[t.v];break;case"d":p="DateTime",h=new Date(t.v).toISOString(),t.z==null&&(t.z=t.z||kr[14]);break;case"s":p="String",h=RN(t.v||"");break}var d=Oi(n.cellXfs,t,n);s["ss:StyleID"]="s"+(21+d),s["ss:Index"]=o.c+1;var w=t.v!=null?h:"",f=t.t=="z"?"":'<Data ss:Type="'+p+'">'+w+"</Data>";return(t.c||[]).length>0&&(f+=OD(t.c)),Ze("Cell",f,s)}function MD(t,e){var r='<Row ss:Index="'+(t+1)+'"';return e&&(e.hpt&&!e.hpx&&(e.hpx=wB(e.hpt)),e.hpx&&(r+=' ss:AutoFitHeight="0" ss:Height="'+e.hpx+'"'),e.hidden&&(r+=' ss:Hidden="1"')),r+">"}function RD(t,e,r,n){if(!t["!ref"])return"";var a=Br(t["!ref"]),A=t["!merges"]||[],o=0,s=[];t["!cols"]&&t["!cols"].forEach(function(m,y){Cg(m);var F=!!m.width,N=Vh(y,m),D={"ss:Index":y+1};F&&(D["ss:Width"]=Oh(N.width)),m.hidden&&(D["ss:Hidden"]="1"),s.push(Ze("Column",null,D))});for(var l=Array.isArray(t),c=a.s.r;c<=a.e.r;++c){for(var u=[MD(c,(t["!rows"]||[])[c])],p=a.s.c;p<=a.e.c;++p){var h=!1;for(o=0;o!=A.length;++o)if(!(A[o].s.c>p)&&!(A[o].s.r>c)&&!(A[o].e.c<p)&&!(A[o].e.r<c)){(A[o].s.c!=p||A[o].s.r!=c)&&(h=!0);break}if(!h){var d={r:c,c:p},w=nr(d),f=l?(t[c]||[])[p]:t[w];u.push(PD(f,w,t,e,r,n,d))}}u.push("</Row>"),u.length>2&&s.push(u.join(""))}return s.join("")}function HD(t,e,r){var n=[],a=r.SheetNames[t],A=r.Sheets[a],o=A?DD(A,e,t,r):"";return o.length>0&&n.push("<Names>"+o+"</Names>"),o=A?RD(A,e,t,r):"",o.length>0&&n.push("<Table>"+o+"</Table>"),n.push(QD(A,e,t,r)),n.join("")}function VD(t,e){e||(e={}),t.SSF||(t.SSF=aa(kr)),t.SSF&&(Eh(),Ch(t.SSF),e.revssf=_h(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF,e.cellXfs=[],Oi(e.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(ND(t,e)),r.push(LD()),r.push(""),r.push("");for(var n=0;n<t.SheetNames.length;++n)r.push(Ze("Worksheet",HD(n,e,t),{"ss:Name":rr(t.SheetNames[n])}));return r[2]=UD(t,e),r[3]=ID(t),Wr+Ze("Workbook",r.join(""),{xmlns:pa.ss,"xmlns:o":pa.o,"xmlns:x":pa.x,"xmlns:ss":pa.ss,"xmlns:dt":pa.dt,"xmlns:html":pa.html})}var Tg={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function $D(t,e){var r=[],n=[],a=[],A=0,o,s=sw(Kw,"n"),l=sw(Gw,"n");if(t.Props)for(o=Bn(t.Props),A=0;A<o.length;++A)(Object.prototype.hasOwnProperty.call(s,o[A])?r:Object.prototype.hasOwnProperty.call(l,o[A])?n:a).push([o[A],t.Props[o[A]]]);if(t.Custprops)for(o=Bn(t.Custprops),A=0;A<o.length;++A)Object.prototype.hasOwnProperty.call(t.Props||{},o[A])||(Object.prototype.hasOwnProperty.call(s,o[A])?r:Object.prototype.hasOwnProperty.call(l,o[A])?n:a).push([o[A],t.Custprops[o[A]]]);var c=[];for(A=0;A<a.length;++A)aB.indexOf(a[A][0])>-1||Zw.indexOf(a[A][0])>-1||a[A][1]!=null&&c.push(a[A]);n.length&&cr.utils.cfb_add(e,"/SummaryInformation",iB(n,Tg.SI,l,Gw)),(r.length||c.length)&&cr.utils.cfb_add(e,"/DocumentSummaryInformation",iB(r,Tg.DSI,s,Kw,c.length?c:null,Tg.UDI))}function zD(t,e){var r=e||{},n=cr.utils.cfb_new({root:"R"}),a="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":a="/Workbook",r.biff=8;break;case"biff5":a="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return cr.utils.cfb_add(n,a,KB(t,r)),r.biff==8&&(t.Props||t.Custprops)&&$D(t,n),r.biff==8&&t.vbaraw&&s8(n,cr.read(t.vbaraw,{type:typeof t.vbaraw=="string"?"binary":"buffer"})),n}var KD={0:{f:WU},1:{f:rI},2:{f:xI},3:{f:cI},4:{f:iI},5:{f:yI},6:{f:FI},7:{f:dI},8:{f:II},9:{f:UI},10:{f:NI},11:{f:LI},12:{f:aI},13:{f:CI},14:{f:hI},15:{f:sI},16:{f:wI},17:{f:kI},18:{f:pI},19:{f:mg},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:vD},40:{},42:{},43:{f:FL},44:{f:EL},45:{f:TL},46:{f:LL},47:{f:NL},48:{},49:{f:a6},50:{},51:{f:WL},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:AL},62:{f:_I},63:{f:e8},64:{f:qI},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:SA,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:GI},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:eI},148:{f:YU,p:16},151:{f:RI},152:{},153:{f:mD},154:{},155:{},156:{f:gD},157:{},158:{},159:{T:1,f:gL},160:{T:-1},161:{T:1,f:Co},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:DI},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:GL},336:{T:-1},337:{f:YL,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:vg},357:{},358:{},359:{},360:{T:1},361:{},362:{f:Z6},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:HI},427:{f:VI},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:zI},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:ZU},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:PI},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:vg},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:A8},633:{T:1},634:{T:-1},635:{T:1,f:n8},636:{T:-1},637:{f:s6},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:lD},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:YI},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function et(t,e,r,n){var a=e;if(!isNaN(a)){var A=n||(r||[]).length||0,o=t.next(4);o.write_shift(2,a),o.write_shift(2,A),A>0&&fg(r)&&t.push(r)}}function GD(t,e,r,n){var a=n||(r||[]).length||0;if(a<=8224)return et(t,e,r,a);var A=e;if(!isNaN(A)){for(var o=r.parts||[],s=0,l=0,c=0;c+(o[s]||8224)<=8224;)c+=o[s]||8224,s++;var u=t.next(4);for(u.write_shift(2,A),u.write_shift(2,c),t.push(r.slice(l,l+c)),l+=c;l<a;){for(u=t.next(4),u.write_shift(2,60),c=0;c+(o[s]||8224)<=8224;)c+=o[s]||8224,s++;u.write_shift(2,c),t.push(r.slice(l,l+c)),l+=c}}}function ic(t,e,r){return t||(t=Oe(7)),t.write_shift(2,e),t.write_shift(2,r),t.write_shift(2,0),t.write_shift(1,0),t}function jD(t,e,r,n){var a=Oe(9);return ic(a,t,e),sB(r,n||"b",a),a}function WD(t,e,r){var n=Oe(8+2*r.length);return ic(n,t,e),n.write_shift(1,r.length),n.write_shift(r.length,r,"sbcs"),n.l<n.length?n.slice(0,n.l):n}function XD(t,e,r,n){if(e.v!=null)switch(e.t){case"d":case"n":var a=e.t=="d"?na(Gn(e.v)):e.v;a==(a|0)&&a>=0&&a<65536?et(t,2,lL(r,n,a)):et(t,3,sL(r,n,a));return;case"b":case"e":et(t,5,jD(r,n,e.v,e.t));return;case"s":case"str":et(t,4,WD(r,n,(e.v||"").slice(0,255)));return}et(t,1,ic(null,r,n))}function qD(t,e,r,n){var a=Array.isArray(e),A=Br(e["!ref"]||"A1"),o,s="",l=[];if(A.e.c>255||A.e.r>16383){if(n.WTF)throw new Error("Range "+(e["!ref"]||"A1")+" exceeds format limit A1:IV16384");A.e.c=Math.min(A.e.c,255),A.e.r=Math.min(A.e.c,16383),o=Xr(A)}for(var c=A.s.r;c<=A.e.r;++c){s=bn(c);for(var u=A.s.c;u<=A.e.c;++u){c===A.s.r&&(l[u]=Dn(u)),o=l[u]+s;var p=a?(e[c]||[])[u]:e[o];p&&XD(t,p,c,u)}}}function YD(t,e){for(var r=e||{},n=Aa(),a=0,A=0;A<t.SheetNames.length;++A)t.SheetNames[A]==r.sheet&&(a=A);if(a==0&&r.sheet&&t.SheetNames[0]!=r.sheet)throw new Error("Sheet not found: "+r.sheet);return et(n,r.biff==4?1033:r.biff==3?521:9,xg(t,16,r)),qD(n,t.Sheets[t.SheetNames[a]],a,r),et(n,10),n.end()}function JD(t,e,r){et(t,49,K6({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},r))}function ZD(t,e,r){e&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)e[a]!=null&&et(t,1054,W6(a,e[a],r))})}function eQ(t,e){var r=Oe(19);r.write_shift(4,2151),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,1),r.write_shift(4,0),et(t,2151,r),r=Oe(39),r.write_shift(4,2152),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(2,1),r.write_shift(4,4),r.write_shift(2,0),hB(Br(e["!ref"]||"A1"),r),r.write_shift(4,4),et(t,2152,r)}function tQ(t,e){for(var r=0;r<16;++r)et(t,224,fB({numFmtId:0,style:!0},0,e));e.cellXfs.forEach(function(n){et(t,224,fB(n,0,e))})}function rQ(t,e){for(var r=0;r<e["!links"].length;++r){var n=e["!links"][r];et(t,440,rL(n)),n[1].Tooltip&&et(t,2048,nL(n))}delete e["!links"]}function nQ(t,e){if(e){var r=0;e.forEach(function(n,a){++r<=256&&n&&et(t,125,iL(Vh(a,n),a))})}}function aQ(t,e,r,n,a){var A=16+Oi(a.cellXfs,e,a);if(e.v==null&&!e.bf){et(t,513,Fo(r,n,A));return}if(e.bf)et(t,6,SU(e,r,n,a,A));else switch(e.t){case"d":case"n":var o=e.t=="d"?na(Gn(e.v)):e.v;et(t,515,J6(r,n,o,A));break;case"b":case"e":et(t,517,Y6(r,n,e.v,A,a,e.t));break;case"s":case"str":if(a.bookSST){var s=kg(a.Strings,e.v,a.revStrings);et(t,253,G6(r,n,s,A))}else et(t,516,j6(r,n,(e.v||"").slice(0,255),A,a));break;default:et(t,513,Fo(r,n,A))}}function AQ(t,e,r){var n=Aa(),a=r.SheetNames[t],A=r.Sheets[a]||{},o=(r||{}).Workbook||{},s=(o.Sheets||[])[t]||{},l=Array.isArray(A),c=e.biff==8,u,p="",h=[],d=Br(A["!ref"]||"A1"),w=c?65536:16384;if(d.e.c>255||d.e.r>=w){if(e.WTF)throw new Error("Range "+(A["!ref"]||"A1")+" exceeds format limit A1:IV16384");d.e.c=Math.min(d.e.c,255),d.e.r=Math.min(d.e.c,w-1)}et(n,2057,xg(r,16,e)),et(n,13,Da(1)),et(n,12,Da(100)),et(n,15,jn(!0)),et(n,17,jn(!1)),et(n,16,Eo(.001)),et(n,95,jn(!0)),et(n,42,jn(!1)),et(n,43,jn(!1)),et(n,130,Da(1)),et(n,128,q6([0,0])),et(n,131,jn(!1)),et(n,132,jn(!1)),c&&nQ(n,A["!cols"]),et(n,512,X6(d,e)),c&&(A["!links"]=[]);for(var f=d.s.r;f<=d.e.r;++f){p=bn(f);for(var m=d.s.c;m<=d.e.c;++m){f===d.s.r&&(h[m]=Dn(m)),u=h[m]+p;var y=l?(A[f]||[])[m]:A[u];y&&(aQ(n,y,f,m,e),c&&y.l&&A["!links"].push([u,y.l]))}}var F=s.CodeName||s.name||a;return c&&et(n,574,z6((o.Views||[])[0])),c&&(A["!merges"]||[]).length&&et(n,229,tL(A["!merges"])),c&&rQ(n,A),et(n,442,cB(F)),c&&eQ(n,A),et(n,10),n.end()}function iQ(t,e,r){var n=Aa(),a=(t||{}).Workbook||{},A=a.Sheets||[],o=a.WBProps||{},s=r.biff==8,l=r.biff==5;if(et(n,2057,xg(t,5,r)),r.bookType=="xla"&&et(n,135),et(n,225,s?Da(1200):null),et(n,193,N6(2)),l&&et(n,191),l&&et(n,192),et(n,226),et(n,92,R6("SheetJS",r)),et(n,66,Da(s?1200:1252)),s&&et(n,353,Da(0)),s&&et(n,448),et(n,317,oL(t.SheetNames.length)),s&&t.vbaraw&&et(n,211),s&&t.vbaraw){var c=o.CodeName||"ThisWorkbook";et(n,442,cB(c))}et(n,156,Da(17)),et(n,25,jn(!1)),et(n,18,jn(!1)),et(n,19,Da(0)),s&&et(n,431,jn(!1)),s&&et(n,444,Da(0)),et(n,61,$6()),et(n,64,jn(!1)),et(n,141,Da(0)),et(n,34,jn(uD(t)=="true")),et(n,14,jn(!0)),s&&et(n,439,jn(!1)),et(n,218,Da(0)),JD(n,t,r),ZD(n,t.SSF,r),tQ(n,r),s&&et(n,352,jn(!1));var u=n.end(),p=Aa();s&&et(p,140,aL()),s&&r.Strings&&GD(p,252,V6(r.Strings)),et(p,10);var h=p.end(),d=Aa(),w=0,f=0;for(f=0;f<t.SheetNames.length;++f)w+=(s?12:11)+(s?2:1)*t.SheetNames[f].length;var m=u.length+w+h.length;for(f=0;f<t.SheetNames.length;++f){var y=A[f]||{};et(d,133,H6({pos:m,hs:y.Hidden||0,dt:0,name:t.SheetNames[f]},r)),m+=e[f].length}var F=d.end();if(w!=F.length)throw new Error("BS8 "+w+" != "+F.length);var N=[];return u.length&&N.push(u),F.length&&N.push(F),h.length&&N.push(h),wn(N)}function oQ(t,e){var r=e||{},n=[];t&&!t.SSF&&(t.SSF=aa(kr)),t&&t.SSF&&(Eh(),Ch(t.SSF),r.revssf=_h(t.SSF),r.revssf[t.SSF[65535]]=0,r.ssf=t.SSF),r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,Ug(r),r.cellXfs=[],Oi(r.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={});for(var a=0;a<t.SheetNames.length;++a)n[n.length]=AQ(a,r,t);return n.unshift(iQ(t,n,r)),wn(n)}function KB(t,e){for(var r=0;r<=t.SheetNames.length;++r){var n=t.Sheets[t.SheetNames[r]];if(!(!n||!n["!ref"])){var a=va(n["!ref"]);a.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+t.SheetNames[r]+"' extends beyond column IV (255). Data may be lost.")}}var A=e||{};switch(A.biff||2){case 8:case 5:return oQ(t,e);case 4:case 3:case 2:return YD(t,e)}throw new Error("invalid type "+A.bookType+" for BIFF")}function sQ(t,e,r,n){for(var a=t["!merges"]||[],A=[],o=e.s.c;o<=e.e.c;++o){for(var s=0,l=0,c=0;c<a.length;++c)if(!(a[c].s.r>r||a[c].s.c>o)&&!(a[c].e.r<r||a[c].e.c<o)){if(a[c].s.r<r||a[c].s.c<o){s=-1;break}s=a[c].e.r-a[c].s.r+1,l=a[c].e.c-a[c].s.c+1;break}if(!(s<0)){var u=nr({r,c:o}),p=n.dense?(t[r]||[])[o]:t[u],h=p&&p.v!=null&&(p.h||MN(p.w||(JA(p),p.w)||""))||"",d={};s>1&&(d.rowspan=s),l>1&&(d.colspan=l),n.editable?h='<span contenteditable="true">'+h+"</span>":p&&(d["data-t"]=p&&p.t||"z",p.v!=null&&(d["data-v"]=p.v),p.z!=null&&(d["data-z"]=p.z),p.l&&(p.l.Target||"#").charAt(0)!="#"&&(h='<a href="'+p.l.Target+'">'+h+"</a>")),d.id=(n.id||"sjs")+"-"+u,A.push(Ze("td",h,d))}}var w="<tr>";return w+A.join("")+"</tr>"}var lQ='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',cQ="</body></html>";function uQ(t,e,r){var n=[];return n.join("")+"<table"+(r&&r.id?' id="'+r.id+'"':"")+">"}function GB(t,e){var r=e||{},n=r.header!=null?r.header:lQ,a=r.footer!=null?r.footer:cQ,A=[n],o=va(t["!ref"]);r.dense=Array.isArray(t),A.push(uQ(t,o,r));for(var s=o.s.r;s<=o.e.r;++s)A.push(sQ(t,o,s,r));return A.push("</table>"+a),A.join("")}function jB(t,e,r){var n=r||{},a=0,A=0;if(n.origin!=null)if(typeof n.origin=="number")a=n.origin;else{var o=typeof n.origin=="string"?hn(n.origin):n.origin;a=o.r,A=o.c}var s=e.getElementsByTagName("tr"),l=Math.min(n.sheetRows||1e7,s.length),c={s:{r:0,c:0},e:{r:a,c:A}};if(t["!ref"]){var u=va(t["!ref"]);c.s.r=Math.min(c.s.r,u.s.r),c.s.c=Math.min(c.s.c,u.s.c),c.e.r=Math.max(c.e.r,u.e.r),c.e.c=Math.max(c.e.c,u.e.c),a==-1&&(c.e.r=a=u.e.r+1)}var p=[],h=0,d=t["!rows"]||(t["!rows"]=[]),w=0,f=0,m=0,y=0,F=0,N=0;for(t["!cols"]||(t["!cols"]=[]);w<s.length&&f<l;++w){var D=s[w];if(XB(D)){if(n.display)continue;d[f]={hidden:!0}}var H=D.children;for(m=y=0;m<H.length;++m){var R=H[m];if(!(n.display&&XB(R))){var U=R.hasAttribute("data-v")?R.getAttribute("data-v"):R.hasAttribute("v")?R.getAttribute("v"):$N(R.innerHTML),I=R.getAttribute("data-z")||R.getAttribute("z");for(h=0;h<p.length;++h){var O=p[h];O.s.c==y+A&&O.s.r<f+a&&f+a<=O.e.r&&(y=O.e.c+1-A,h=-1)}N=+R.getAttribute("colspan")||1,((F=+R.getAttribute("rowspan")||1)>1||N>1)&&p.push({s:{r:f+a,c:y+A},e:{r:f+a+(F||1)-1,c:y+A+(N||1)-1}});var q={t:"s",v:U},T=R.getAttribute("data-t")||R.getAttribute("t")||"";U!=null&&(U.length==0?q.t=T||"z":n.raw||U.trim().length==0||T=="s"||(U==="TRUE"?q={t:"b",v:!0}:U==="FALSE"?q={t:"b",v:!1}:isNaN(qA(U))?isNaN(Wl(U).getDate())||(q={t:"d",v:Gn(U)},n.cellDates||(q={t:"n",v:na(q.v)}),q.z=n.dateNF||kr[14]):q={t:"n",v:qA(U)})),q.z===void 0&&I!=null&&(q.z=I);var L="",G=R.getElementsByTagName("A");if(G&&G.length)for(var Y=0;Y<G.length&&!(G[Y].hasAttribute("href")&&(L=G[Y].getAttribute("href"),L.charAt(0)!="#"));++Y);L&&L.charAt(0)!="#"&&(q.l={Target:L}),n.dense?(t[f+a]||(t[f+a]=[]),t[f+a][y+A]=q):t[nr({c:y+A,r:f+a})]=q,c.e.c<y+A&&(c.e.c=y+A),y+=N}}++f}return p.length&&(t["!merges"]=(t["!merges"]||[]).concat(p)),c.e.r=Math.max(c.e.r,f-1+a),t["!ref"]=Xr(c),f>=l&&(t["!fullref"]=Xr((c.e.r=s.length-w+f-1+a,c))),t}function WB(t,e){var r=e||{},n=r.dense?[]:{};return jB(n,t,e)}function hQ(t,e){return wo(WB(t,e),e)}function XB(t){var e="",r=fQ(t);return r&&(e=r(t).getPropertyValue("display")),e||(e=t.style&&t.style.display),e==="none"}function fQ(t){return t.ownerDocument.defaultView&&typeof t.ownerDocument.defaultView.getComputedStyle=="function"?t.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var dQ=function(){var t=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),e="<office:document-styles "+ql({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+t+"</office:document-styles>";return function(){return Wr+e}}(),qB=function(){var t=function(A){return rr(A).replace(/ +/g,function(o){return'<text:s text:c="'+o.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},e=` <table:table-cell />
323
- `,r=` <table:covered-table-cell/>
324
- `,n=function(A,o,s){var l=[];l.push(' <table:table table:name="'+rr(o.SheetNames[s])+`" table:style-name="ta1">
325
- `);var c=0,u=0,p=va(A["!ref"]||"A1"),h=A["!merges"]||[],d=0,w=Array.isArray(A);if(A["!cols"])for(u=0;u<=p.e.c;++u)l.push(" <table:table-column"+(A["!cols"][u]?' table:style-name="co'+A["!cols"][u].ods+'"':"")+`></table:table-column>
326
- `);var f="",m=A["!rows"]||[];for(c=0;c<p.s.r;++c)f=m[c]?' table:style-name="ro'+m[c].ods+'"':"",l.push(" <table:table-row"+f+`></table:table-row>
327
- `);for(;c<=p.e.r;++c){for(f=m[c]?' table:style-name="ro'+m[c].ods+'"':"",l.push(" <table:table-row"+f+`>
328
- `),u=0;u<p.s.c;++u)l.push(e);for(;u<=p.e.c;++u){var y=!1,F={},N="";for(d=0;d!=h.length;++d)if(!(h[d].s.c>u)&&!(h[d].s.r>c)&&!(h[d].e.c<u)&&!(h[d].e.r<c)){(h[d].s.c!=u||h[d].s.r!=c)&&(y=!0),F["table:number-columns-spanned"]=h[d].e.c-h[d].s.c+1,F["table:number-rows-spanned"]=h[d].e.r-h[d].s.r+1;break}if(y){l.push(r);continue}var D=nr({r:c,c:u}),H=w?(A[c]||[])[u]:A[D];if(H&&H.f&&(F["table:formula"]=rr(IU(H.f)),H.F&&H.F.slice(0,D.length)==D)){var R=va(H.F);F["table:number-matrix-columns-spanned"]=R.e.c-R.s.c+1,F["table:number-matrix-rows-spanned"]=R.e.r-R.s.r+1}if(!H){l.push(e);continue}switch(H.t){case"b":N=H.v?"TRUE":"FALSE",F["office:value-type"]="boolean",F["office:boolean-value"]=H.v?"true":"false";break;case"n":N=H.w||String(H.v||0),F["office:value-type"]="float",F["office:value"]=H.v||0;break;case"s":case"str":N=H.v==null?"":H.v,F["office:value-type"]="string";break;case"d":N=H.w||Gn(H.v).toISOString(),F["office:value-type"]="date",F["office:date-value"]=Gn(H.v).toISOString(),F["table:style-name"]="ce1";break;default:l.push(e);continue}var U=t(N);if(H.l&&H.l.Target){var I=H.l.Target;I=I.charAt(0)=="#"?"#"+DU(I.slice(1)):I,I.charAt(0)!="#"&&!I.match(/^\w+:/)&&(I="../"+I),U=Ze("text:a",U,{"xlink:href":I.replace(/&/g,"&amp;")})}l.push(" "+Ze("table:table-cell",Ze("text:p",U,{}),F)+`
329
- `)}l.push(` </table:table-row>
330
- `)}return l.push(` </table:table>
331
- `),l.join("")},a=function(A,o){A.push(` <office:automatic-styles>
332
- `),A.push(` <number:date-style style:name="N37" number:automatic-order="true">
333
- `),A.push(` <number:month number:style="long"/>
334
- `),A.push(` <number:text>/</number:text>
335
- `),A.push(` <number:day number:style="long"/>
336
- `),A.push(` <number:text>/</number:text>
337
- `),A.push(` <number:year/>
338
- `),A.push(` </number:date-style>
339
- `);var s=0;o.SheetNames.map(function(c){return o.Sheets[c]}).forEach(function(c){if(c&&c["!cols"]){for(var u=0;u<c["!cols"].length;++u)if(c["!cols"][u]){var p=c["!cols"][u];if(p.width==null&&p.wpx==null&&p.wch==null)continue;Cg(p),p.ods=s;var h=c["!cols"][u].wpx+"px";A.push(' <style:style style:name="co'+s+`" style:family="table-column">
340
- `),A.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+h+`"/>
341
- `),A.push(` </style:style>
342
- `),++s}}});var l=0;o.SheetNames.map(function(c){return o.Sheets[c]}).forEach(function(c){if(c&&c["!rows"]){for(var u=0;u<c["!rows"].length;++u)if(c["!rows"][u]){c["!rows"][u].ods=l;var p=c["!rows"][u].hpx+"px";A.push(' <style:style style:name="ro'+l+`" style:family="table-row">
343
- `),A.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+p+`"/>
344
- `),A.push(` </style:style>
345
- `),++l}}}),A.push(` <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">
346
- `),A.push(` <style:table-properties table:display="true" style:writing-mode="lr-tb"/>
347
- `),A.push(` </style:style>
348
- `),A.push(` <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>
349
- `),A.push(` </office:automatic-styles>
350
- `)};return function(o,s){var l=[Wr],c=ql({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),u=ql({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});s.bookType=="fods"?(l.push("<office:document"+c+u+`>
351
- `),l.push(Yw().replace(/office:document-meta/g,"office:meta"))):l.push("<office:document-content"+c+`>
352
- `),a(l,o),l.push(` <office:body>
353
- `),l.push(` <office:spreadsheet>
354
- `);for(var p=0;p!=o.SheetNames.length;++p)l.push(n(o.Sheets[o.SheetNames[p]],o,p));return l.push(` </office:spreadsheet>
355
- `),l.push(` </office:body>
356
- `),s.bookType=="fods"?l.push("</office:document>"):l.push("</office:document-content>"),l.join("")}}();function YB(t,e){if(e.bookType=="fods")return qB(t,e);var r=og(),n="",a=[],A=[];return n="mimetype",Ot(r,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",Ot(r,n,qB(t,e)),a.push([n,"text/xml"]),A.push([n,"ContentFile"]),n="styles.xml",Ot(r,n,dQ(t,e)),a.push([n,"text/xml"]),A.push([n,"StylesFile"]),n="meta.xml",Ot(r,n,Wr+Yw()),a.push([n,"text/xml"]),A.push([n,"MetadataFile"]),n="manifest.rdf",Ot(r,n,_6(A)),a.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",Ot(r,n,C6(a)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function $h(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function gQ(t){return typeof TextEncoder<"u"?new TextEncoder().encode(t):Xa(YA(t))}function pQ(t,e){e:for(var r=0;r<=t.length-e.length;++r){for(var n=0;n<e.length;++n)if(t[r+n]!=e[n])continue e;return!0}return!1}function Pi(t){var e=t.reduce(function(a,A){return a+A.length},0),r=new Uint8Array(e),n=0;return t.forEach(function(a){r.set(a,n),n+=a.length}),r}function mQ(t,e,r){var n=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,a=r/Math.pow(10,n-6176);t[e+15]|=n>>7,t[e+14]|=(n&127)<<1;for(var A=0;a>=1;++A,a/=256)t[e+A]=a&255;t[e+15]|=r>=0?0:128}function oc(t,e){var r=e?e[0]:0,n=t[r]&127;e:if(t[r++]>=128&&(n|=(t[r]&127)<<7,t[r++]<128||(n|=(t[r]&127)<<14,t[r++]<128)||(n|=(t[r]&127)<<21,t[r++]<128)||(n+=(t[r]&127)*Math.pow(2,28),++r,t[r++]<128)||(n+=(t[r]&127)*Math.pow(2,35),++r,t[r++]<128)||(n+=(t[r]&127)*Math.pow(2,42),++r,t[r++]<128)))break e;return e&&(e[0]=r),n}function Ar(t){var e=new Uint8Array(7);e[0]=t&127;var r=1;e:if(t>127){if(e[r-1]|=128,e[r]=t>>7&127,++r,t<=16383||(e[r-1]|=128,e[r]=t>>14&127,++r,t<=2097151)||(e[r-1]|=128,e[r]=t>>21&127,++r,t<=268435455)||(e[r-1]|=128,e[r]=t/256>>>21&127,++r,t<=34359738367)||(e[r-1]|=128,e[r]=t/65536>>>21&127,++r,t<=4398046511103))break e;e[r-1]|=128,e[r]=t/16777216>>>21&127,++r}return e.slice(0,r)}function Ss(t){var e=0,r=t[e]&127;e:if(t[e++]>=128){if(r|=(t[e]&127)<<7,t[e++]<128||(r|=(t[e]&127)<<14,t[e++]<128)||(r|=(t[e]&127)<<21,t[e++]<128))break e;r|=(t[e]&127)<<28}return r}function an(t){for(var e=[],r=[0];r[0]<t.length;){var n=r[0],a=oc(t,r),A=a&7;a=Math.floor(a/8);var o=0,s;if(a==0)break;switch(A){case 0:{for(var l=r[0];t[r[0]++]>=128;);s=t.slice(l,r[0])}break;case 5:o=4,s=t.slice(r[0],r[0]+o),r[0]+=o;break;case 1:o=8,s=t.slice(r[0],r[0]+o),r[0]+=o;break;case 2:o=oc(t,r),s=t.slice(r[0],r[0]+o),r[0]+=o;break;case 3:case 4:default:throw new Error("PB Type ".concat(A," for Field ").concat(a," at offset ").concat(n))}var c={data:s,type:A};e[a]==null?e[a]=[c]:e[a].push(c)}return e}function En(t){var e=[];return t.forEach(function(r,n){r.forEach(function(a){a.data&&(e.push(Ar(n*8+a.type)),a.type==2&&e.push(Ar(a.data.length)),e.push(a.data))})}),Pi(e)}function Ja(t){for(var e,r=[],n=[0];n[0]<t.length;){var a=oc(t,n),A=an(t.slice(n[0],n[0]+a));n[0]+=a;var o={id:Ss(A[1][0].data),messages:[]};A[2].forEach(function(s){var l=an(s.data),c=Ss(l[3][0].data);o.messages.push({meta:l,data:t.slice(n[0],n[0]+c)}),n[0]+=c}),(e=A[3])!=null&&e[0]&&(o.merge=Ss(A[3][0].data)>>>0>0),r.push(o)}return r}function ks(t){var e=[];return t.forEach(function(r){var n=[];n[1]=[{data:Ar(r.id),type:0}],n[2]=[],r.merge!=null&&(n[3]=[{data:Ar(+!!r.merge),type:0}]);var a=[];r.messages.forEach(function(o){a.push(o.data),o.meta[3]=[{type:0,data:Ar(o.data.length)}],n[2].push({data:En(o.meta),type:2})});var A=En(n);e.push(Ar(A.length)),e.push(A),a.forEach(function(o){return e.push(o)})}),Pi(e)}function yQ(t,e){if(t!=0)throw new Error("Unexpected Snappy chunk type ".concat(t));for(var r=[0],n=oc(e,r),a=[];r[0]<e.length;){var A=e[r[0]]&3;if(A==0){var o=e[r[0]++]>>2;if(o<60)++o;else{var s=o-59;o=e[r[0]],s>1&&(o|=e[r[0]+1]<<8),s>2&&(o|=e[r[0]+2]<<16),s>3&&(o|=e[r[0]+3]<<24),o>>>=0,o++,r[0]+=s}a.push(e.slice(r[0],r[0]+o)),r[0]+=o;continue}else{var l=0,c=0;if(A==1?(c=(e[r[0]]>>2&7)+4,l=(e[r[0]++]&224)<<3,l|=e[r[0]++]):(c=(e[r[0]++]>>2)+1,A==2?(l=e[r[0]]|e[r[0]+1]<<8,r[0]+=2):(l=(e[r[0]]|e[r[0]+1]<<8|e[r[0]+2]<<16|e[r[0]+3]<<24)>>>0,r[0]+=4)),a=[Pi(a)],l==0)throw new Error("Invalid offset 0");if(l>a[0].length)throw new Error("Invalid offset beyond length");if(c>=l)for(a.push(a[0].slice(-l)),c-=l;c>=a[a.length-1].length;)a.push(a[a.length-1]),c-=a[a.length-1].length;a.push(a[0].slice(-l,-l+c))}}var u=Pi(a);if(u.length!=n)throw new Error("Unexpected length: ".concat(u.length," != ").concat(n));return u}function Za(t){for(var e=[],r=0;r<t.length;){var n=t[r++],a=t[r]|t[r+1]<<8|t[r+2]<<16;r+=3,e.push(yQ(n,t.slice(r,r+a))),r+=a}if(r!==t.length)throw new Error("data is not a valid framed stream!");return Pi(e)}function Ts(t){for(var e=[],r=0;r<t.length;){var n=Math.min(t.length-r,268435455),a=new Uint8Array(4);e.push(a);var A=Ar(n),o=A.length;e.push(A),n<=60?(o++,e.push(new Uint8Array([n-1<<2]))):n<=256?(o+=2,e.push(new Uint8Array([240,n-1&255]))):n<=65536?(o+=3,e.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(o+=4,e.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(o+=5,e.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),e.push(t.slice(r,r+n)),o+=n,a[0]=0,a[1]=o&255,a[2]=o>>8&255,a[3]=o>>16&255,r+=n}return Pi(e)}function Ng(t,e){var r=new Uint8Array(32),n=$h(r),a=12,A=0;switch(r[0]=5,t.t){case"n":r[1]=2,mQ(r,a,t.v),A|=1,a+=16;break;case"b":r[1]=6,n.setFloat64(a,t.v?1:0,!0),A|=2,a+=8;break;case"s":if(e.indexOf(t.v)==-1)throw new Error("Value ".concat(t.v," missing from SST!"));r[1]=3,n.setUint32(a,e.indexOf(t.v),!0),A|=8,a+=4;break;default:throw"unsupported cell type "+t.t}return n.setUint32(8,A,!0),r.slice(0,a)}function Lg(t,e){var r=new Uint8Array(32),n=$h(r),a=12,A=0;switch(r[0]=3,t.t){case"n":r[2]=2,n.setFloat64(a,t.v,!0),A|=32,a+=8;break;case"b":r[2]=6,n.setFloat64(a,t.v?1:0,!0),A|=32,a+=8;break;case"s":if(e.indexOf(t.v)==-1)throw new Error("Value ".concat(t.v," missing from SST!"));r[2]=3,n.setUint32(a,e.indexOf(t.v),!0),A|=16,a+=4;break;default:throw"unsupported cell type "+t.t}return n.setUint32(4,A,!0),r.slice(0,a)}function Mi(t){var e=an(t);return oc(e[1][0].data)}function vQ(t,e,r){var n,a,A,o;if(!((n=t[6])!=null&&n[0])||!((a=t[7])!=null&&a[0]))throw"Mutation only works on post-BNC storages!";var s=((o=(A=t[8])==null?void 0:A[0])==null?void 0:o.data)&&Ss(t[8][0].data)>0||!1;if(s)throw"Math only works with normal offsets";for(var l=0,c=$h(t[7][0].data),u=0,p=[],h=$h(t[4][0].data),d=0,w=[],f=0;f<e.length;++f){if(e[f]==null){c.setUint16(f*2,65535,!0),h.setUint16(f*2,65535);continue}c.setUint16(f*2,u,!0),h.setUint16(f*2,d,!0);var m,y;switch(typeof e[f]){case"string":m=Ng({t:"s",v:e[f]},r),y=Lg({t:"s",v:e[f]},r);break;case"number":m=Ng({t:"n",v:e[f]},r),y=Lg({t:"n",v:e[f]},r);break;case"boolean":m=Ng({t:"b",v:e[f]},r),y=Lg({t:"b",v:e[f]},r);break;default:throw new Error("Unsupported value "+e[f])}p.push(m),u+=m.length,w.push(y),d+=y.length,++l}for(t[2][0].data=Ar(l);f<t[7][0].data.length/2;++f)c.setUint16(f*2,65535,!0),h.setUint16(f*2,65535,!0);return t[6][0].data=Pi(p),t[3][0].data=Pi(w),l}function wQ(t,e){if(!e||!e.numbers)throw new Error("Must pass a `numbers` option -- check the README");var r=t.Sheets[t.SheetNames[0]];t.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var n=va(r["!ref"]);n.s.r=n.s.c=0;var a=!1;n.e.c>9&&(a=!0,n.e.c=9),n.e.r>49&&(a=!0,n.e.r=49),a&&console.error("The Numbers writer is currently limited to ".concat(Xr(n)));var A=Kh(r,{range:n,header:1}),o=["~Sh33tJ5~"];A.forEach(function(_){return _.forEach(function(B){typeof B=="string"&&o.push(B)})});var s={},l=[],c=cr.read(e.numbers,{type:"base64"});c.FileIndex.map(function(_,B){return[_,c.FullPaths[B]]}).forEach(function(_){var B=_[0],x=_[1];if(B.type==2&&B.name.match(/\.iwa/)){var S=B.content,Q=Za(S),W=Ja(Q);W.forEach(function(ue){l.push(ue.id),s[ue.id]={deps:[],location:x,type:Ss(ue.messages[0].meta[1][0].data)}})}}),l.sort(function(_,B){return _-B});var u=l.filter(function(_){return _>1}).map(function(_){return[_,Ar(_)]});c.FileIndex.map(function(_,B){return[_,c.FullPaths[B]]}).forEach(function(_){var B=_[0];if(_[1],!!B.name.match(/\.iwa/)){var x=Ja(Za(B.content));x.forEach(function(S){S.messages.forEach(function(Q){u.forEach(function(W){S.messages.some(function(ue){return Ss(ue.meta[1][0].data)!=11006&&pQ(ue.data,W[1])})&&s[W[0]].deps.push(S.id)})})})}});for(var p=cr.find(c,s[1].location),h=Ja(Za(p.content)),d,w=0;w<h.length;++w){var f=h[w];f.id==1&&(d=f)}var m=Mi(an(d.messages[0].data)[1][0].data);for(p=cr.find(c,s[m].location),h=Ja(Za(p.content)),w=0;w<h.length;++w)f=h[w],f.id==m&&(d=f);for(m=Mi(an(d.messages[0].data)[2][0].data),p=cr.find(c,s[m].location),h=Ja(Za(p.content)),w=0;w<h.length;++w)f=h[w],f.id==m&&(d=f);for(m=Mi(an(d.messages[0].data)[2][0].data),p=cr.find(c,s[m].location),h=Ja(Za(p.content)),w=0;w<h.length;++w)f=h[w],f.id==m&&(d=f);var y=an(d.messages[0].data);{y[6][0].data=Ar(n.e.r+1),y[7][0].data=Ar(n.e.c+1);var F=Mi(y[46][0].data),N=cr.find(c,s[F].location),D=Ja(Za(N.content));{for(var H=0;H<D.length&&D[H].id!=F;++H);if(D[H].id!=F)throw"Bad ColumnRowUIDMapArchive";var R=an(D[H].messages[0].data);R[1]=[],R[2]=[],R[3]=[];for(var U=0;U<=n.e.c;++U){var I=[];I[1]=I[2]=[{type:0,data:Ar(U+420690)}],R[1].push({type:2,data:En(I)}),R[2].push({type:0,data:Ar(U)}),R[3].push({type:0,data:Ar(U)})}R[4]=[],R[5]=[],R[6]=[];for(var O=0;O<=n.e.r;++O)I=[],I[1]=I[2]=[{type:0,data:Ar(O+726270)}],R[4].push({type:2,data:En(I)}),R[5].push({type:0,data:Ar(O)}),R[6].push({type:0,data:Ar(O)});D[H].messages[0].data=En(R)}N.content=Ts(ks(D)),N.size=N.content.length,delete y[46];var q=an(y[4][0].data);{q[7][0].data=Ar(n.e.r+1);var T=an(q[1][0].data),L=Mi(T[2][0].data);N=cr.find(c,s[L].location),D=Ja(Za(N.content));{if(D[0].id!=L)throw"Bad HeaderStorageBucket";var G=an(D[0].messages[0].data);for(O=0;O<A.length;++O){var Y=an(G[2][0].data);Y[1][0].data=Ar(O),Y[4][0].data=Ar(A[O].length),G[2][O]={type:G[2][0].type,data:En(Y)}}D[0].messages[0].data=En(G)}N.content=Ts(ks(D)),N.size=N.content.length;var se=Mi(q[2][0].data);N=cr.find(c,s[se].location),D=Ja(Za(N.content));{if(D[0].id!=se)throw"Bad HeaderStorageBucket";for(G=an(D[0].messages[0].data),U=0;U<=n.e.c;++U)Y=an(G[2][0].data),Y[1][0].data=Ar(U),Y[4][0].data=Ar(n.e.r+1),G[2][U]={type:G[2][0].type,data:En(Y)};D[0].messages[0].data=En(G)}N.content=Ts(ks(D)),N.size=N.content.length;var he=Mi(q[4][0].data);(function(){for(var _=cr.find(c,s[he].location),B=Ja(Za(_.content)),x,S=0;S<B.length;++S){var Q=B[S];Q.id==he&&(x=Q)}var W=an(x.messages[0].data);{W[3]=[];var ue=[];o.forEach(function(ke,ne){ue[1]=[{type:0,data:Ar(ne)}],ue[2]=[{type:0,data:Ar(1)}],ue[3]=[{type:2,data:gQ(ke)}],W[3].push({type:2,data:En(ue)})})}x.messages[0].data=En(W);var Ce=ks(B),de=Ts(Ce);_.content=de,_.size=_.content.length})();var ge=an(q[3][0].data);{var re=ge[1][0];delete ge[2];var le=an(re.data);{var fe=Mi(le[2][0].data);(function(){for(var _=cr.find(c,s[fe].location),B=Ja(Za(_.content)),x,S=0;S<B.length;++S){var Q=B[S];Q.id==fe&&(x=Q)}var W=an(x.messages[0].data);{delete W[6],delete ge[7];var ue=new Uint8Array(W[5][0].data);W[5]=[];for(var Ce=0,de=0;de<=n.e.r;++de){var ke=an(ue);Ce+=vQ(ke,A[de],o),ke[1][0].data=Ar(de),W[5].push({data:En(ke),type:2})}W[1]=[{type:0,data:Ar(n.e.c+1)}],W[2]=[{type:0,data:Ar(n.e.r+1)}],W[3]=[{type:0,data:Ar(Ce)}],W[4]=[{type:0,data:Ar(n.e.r+1)}]}x.messages[0].data=En(W);var ne=ks(B),Ee=Ts(ne);_.content=Ee,_.size=_.content.length})()}re.data=En(le)}q[3][0].data=En(ge)}y[4][0].data=En(q)}d.messages[0].data=En(y);var Ue=ks(h),b=Ts(Ue);return p.content=b,p.size=p.content.length,c}function BQ(t){return function(r){for(var n=0;n!=t.length;++n){var a=t[n];r[a[0]]===void 0&&(r[a[0]]=a[1]),a[2]==="n"&&(r[a[0]]=Number(r[a[0]]))}}}function Ug(t){BQ([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(t)}function xQ(t,e){return e.bookType=="ods"?YB(t,e):e.bookType=="numbers"?wQ(t,e):e.bookType=="xlsb"?bQ(t,e):CQ(t,e)}function bQ(t,e){_s=1024,t&&!t.SSF&&(t.SSF=aa(kr)),t&&t.SSF&&(Eh(),Ch(t.SSF),e.revssf=_h(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,Ac?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var r=e.bookType=="xlsb"?"bin":"xml",n=SB.indexOf(e.bookType)>-1,a=jw();Ug(e=e||{});var A=og(),o="",s=0;if(e.cellXfs=[],Oi(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),o="docProps/core.xml",Ot(A,o,Jw(t.Props,e)),a.coreprops.push(o),ar(e.rels,2,o,qt.CORE_PROPS),o="docProps/app.xml",!(t.Props&&t.Props.SheetNames))if(!t.Workbook||!t.Workbook.Sheets)t.Props.SheetNames=t.SheetNames;else{for(var l=[],c=0;c<t.SheetNames.length;++c)(t.Workbook.Sheets[c]||{}).Hidden!=2&&l.push(t.SheetNames[c]);t.Props.SheetNames=l}for(t.Props.Worksheets=t.Props.SheetNames.length,Ot(A,o,eB(t.Props)),a.extprops.push(o),ar(e.rels,3,o,qt.EXT_PROPS),t.Custprops!==t.Props&&Bn(t.Custprops||{}).length>0&&(o="docProps/custom.xml",Ot(A,o,tB(t.Custprops)),a.custprops.push(o),ar(e.rels,4,o,qt.CUST_PROPS)),s=1;s<=t.SheetNames.length;++s){var u={"!id":{}},p=t.Sheets[t.SheetNames[s-1]],h=(p||{})["!type"]||"sheet";switch(h){case"chart":default:o="xl/worksheets/sheet"+s+"."+r,Ot(A,o,_D(s-1,o,e,t,u)),a.sheets.push(o),ar(e.wbrels,-1,"worksheets/sheet"+s+"."+r,qt.WS[0])}if(p){var d=p["!comments"],w=!1,f="";d&&d.length>0&&(f="xl/comments"+s+"."+r,Ot(A,f,kD(d,f)),a.comments.push(f),ar(u,-1,"../comments"+s+"."+r,qt.CMNT),w=!0),p["!legacy"]&&w&&Ot(A,"xl/drawings/vmlDrawing"+s+".vml",_B(s,p["!comments"])),delete p["!comments"],delete p["!legacy"]}u["!id"].rId1&&Ot(A,Xw(o),Cs(u))}return e.Strings!=null&&e.Strings.length>0&&(o="xl/sharedStrings."+r,Ot(A,o,SD(e.Strings,o,e)),a.strs.push(o),ar(e.wbrels,-1,"sharedStrings."+r,qt.SST)),o="xl/workbook."+r,Ot(A,o,ED(t,o)),a.workbooks.push(o),ar(e.rels,1,o,qt.WB),o="xl/theme/theme1.xml",Ot(A,o,CB(t.Themes,e)),a.themes.push(o),ar(e.wbrels,-1,"theme/theme1.xml",qt.THEME),o="xl/styles."+r,Ot(A,o,FD(t,o,e)),a.styles.push(o),ar(e.wbrels,-1,"styles."+r,qt.STY),t.vbaraw&&n&&(o="xl/vbaProject.bin",Ot(A,o,t.vbaraw),a.vba.push(o),ar(e.wbrels,-1,"vbaProject.bin",qt.VBA)),o="xl/metadata."+r,Ot(A,o,TD(o)),a.metadata.push(o),ar(e.wbrels,-1,"metadata."+r,qt.XLMETA),Ot(A,"[Content_Types].xml",Ww(a,e)),Ot(A,"_rels/.rels",Cs(e.rels)),Ot(A,"xl/_rels/workbook."+r+".rels",Cs(e.wbrels)),delete e.revssf,delete e.ssf,A}function CQ(t,e){_s=1024,t&&!t.SSF&&(t.SSF=aa(kr)),t&&t.SSF&&(Eh(),Ch(t.SSF),e.revssf=_h(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,Ac?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var r="xml",n=SB.indexOf(e.bookType)>-1,a=jw();Ug(e=e||{});var A=og(),o="",s=0;if(e.cellXfs=[],Oi(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),o="docProps/core.xml",Ot(A,o,Jw(t.Props,e)),a.coreprops.push(o),ar(e.rels,2,o,qt.CORE_PROPS),o="docProps/app.xml",!(t.Props&&t.Props.SheetNames))if(!t.Workbook||!t.Workbook.Sheets)t.Props.SheetNames=t.SheetNames;else{for(var l=[],c=0;c<t.SheetNames.length;++c)(t.Workbook.Sheets[c]||{}).Hidden!=2&&l.push(t.SheetNames[c]);t.Props.SheetNames=l}t.Props.Worksheets=t.Props.SheetNames.length,Ot(A,o,eB(t.Props)),a.extprops.push(o),ar(e.rels,3,o,qt.EXT_PROPS),t.Custprops!==t.Props&&Bn(t.Custprops||{}).length>0&&(o="docProps/custom.xml",Ot(A,o,tB(t.Custprops)),a.custprops.push(o),ar(e.rels,4,o,qt.CUST_PROPS));var u=["SheetJ5"];for(e.tcid=0,s=1;s<=t.SheetNames.length;++s){var p={"!id":{}},h=t.Sheets[t.SheetNames[s-1]],d=(h||{})["!type"]||"sheet";switch(d){case"chart":default:o="xl/worksheets/sheet"+s+"."+r,Ot(A,o,RB(s-1,e,t,p)),a.sheets.push(o),ar(e.wbrels,-1,"worksheets/sheet"+s+"."+r,qt.WS[0])}if(h){var w=h["!comments"],f=!1,m="";if(w&&w.length>0){var y=!1;w.forEach(function(F){F[1].forEach(function(N){N.T==!0&&(y=!0)})}),y&&(m="xl/threadedComments/threadedComment"+s+"."+r,Ot(A,m,t8(w,u,e)),a.threadedcomments.push(m),ar(p,-1,"../threadedComments/threadedComment"+s+"."+r,qt.TCMNT)),m="xl/comments"+s+"."+r,Ot(A,m,FB(w)),a.comments.push(m),ar(p,-1,"../comments"+s+"."+r,qt.CMNT),f=!0}h["!legacy"]&&f&&Ot(A,"xl/drawings/vmlDrawing"+s+".vml",_B(s,h["!comments"])),delete h["!comments"],delete h["!legacy"]}p["!id"].rId1&&Ot(A,Xw(o),Cs(p))}return e.Strings!=null&&e.Strings.length>0&&(o="xl/sharedStrings."+r,Ot(A,o,pB(e.Strings,e)),a.strs.push(o),ar(e.wbrels,-1,"sharedStrings."+r,qt.SST)),o="xl/workbook."+r,Ot(A,o,$B(t)),a.workbooks.push(o),ar(e.rels,1,o,qt.WB),o="xl/theme/theme1.xml",Ot(A,o,CB(t.Themes,e)),a.themes.push(o),ar(e.wbrels,-1,"theme/theme1.xml",qt.THEME),o="xl/styles."+r,Ot(A,o,BB(t,e)),a.styles.push(o),ar(e.wbrels,-1,"styles."+r,qt.STY),t.vbaraw&&n&&(o="xl/vbaProject.bin",Ot(A,o,t.vbaraw),a.vba.push(o),ar(e.wbrels,-1,"vbaProject.bin",qt.VBA)),o="xl/metadata."+r,Ot(A,o,EB()),a.metadata.push(o),ar(e.wbrels,-1,"metadata."+r,qt.XLMETA),u.length>1&&(o="xl/persons/person.xml",Ot(A,o,r8(u)),a.people.push(o),ar(e.wbrels,-1,"persons/person.xml",qt.PEOPLE)),Ot(A,"[Content_Types].xml",Ww(a,e)),Ot(A,"_rels/.rels",Cs(e.rels)),Ot(A,"xl/_rels/workbook."+r+".rels",Cs(e.wbrels)),delete e.revssf,delete e.ssf,A}function EQ(t,e){var r="";switch((e||{}).type||"base64"){case"buffer":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];case"base64":r=jA(t.slice(0,12));break;case"binary":r=t;break;case"array":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];default:throw new Error("Unrecognized type "+(e&&e.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function JB(t,e){switch(e.type){case"base64":case"binary":break;case"buffer":case"array":e.type="";break;case"file":return jl(e.file,cr.write(t,{type:Jt?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");default:throw new Error("Unrecognized type "+e.type)}return cr.write(t,e)}function _Q(t,e){var r=aa(e||{}),n=xQ(t,r);return FQ(n,r)}function FQ(t,e){var r={},n=Jt?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(e.compression&&(r.compression="DEFLATE"),e.password)r.type=n;else switch(e.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");case"buffer":case"file":r.type=n;break;default:throw new Error("Unrecognized type "+e.type)}var a=t.FullPaths?cr.write(t,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!e.compression}):t.generate(r);if(typeof Deno<"u"&&typeof a=="string"){if(e.type=="binary"||e.type=="base64")return a;a=new Uint8Array(yh(a))}return e.password&&typeof encrypt_agile<"u"?JB(encrypt_agile(a,e.password),e):e.type==="file"?jl(e.file,a):e.type=="string"?Xl(a):a}function SQ(t,e){var r=e||{},n=zD(t,r);return JB(n,r)}function kA(t,e,r){r||(r="");var n=r+t;switch(e.type){case"base64":return zl(YA(n));case"binary":return YA(n);case"string":return t;case"file":return jl(e.file,n,"utf8");case"buffer":return Jt?WA(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):kA(n,{type:"binary"}).split("").map(function(a){return a.charCodeAt(0)})}throw new Error("Unrecognized type "+e.type)}function kQ(t,e){switch(e.type){case"base64":return zl(t);case"binary":return t;case"string":return t;case"file":return jl(e.file,t,"binary");case"buffer":return Jt?WA(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+e.type)}function zh(t,e){switch(e.type){case"string":case"base64":case"binary":for(var r="",n=0;n<t.length;++n)r+=String.fromCharCode(t[n]);return e.type=="base64"?zl(r):e.type=="string"?Xl(r):r;case"file":return jl(e.file,t);case"buffer":return t;default:throw new Error("Unrecognized type "+e.type)}}function ZB(t,e){rN(),dD(t);var r=aa(e||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var n=ZB(t,r);return r.type="array",yh(n)}var a=0;if(r.sheet&&(typeof r.sheet=="number"?a=r.sheet:a=t.SheetNames.indexOf(r.sheet),!t.SheetNames[a]))throw new Error("Sheet not found: "+r.sheet+" : "+typeof r.sheet);switch(r.bookType||"xlsb"){case"xml":case"xlml":return kA(VD(t,r),r);case"slk":case"sylk":return kA(uL.from_sheet(t.Sheets[t.SheetNames[a]],r),r);case"htm":case"html":return kA(GB(t.Sheets[t.SheetNames[a]],r),r);case"txt":return kQ(tx(t.Sheets[t.SheetNames[a]],r),r);case"csv":return kA(Ig(t.Sheets[t.SheetNames[a]],r),r,"\uFEFF");case"dif":return kA(hL.from_sheet(t.Sheets[t.SheetNames[a]],r),r);case"dbf":return zh(cL.from_sheet(t.Sheets[t.SheetNames[a]],r),r);case"prn":return kA(fL.from_sheet(t.Sheets[t.SheetNames[a]],r),r);case"rtf":return kA(wL.from_sheet(t.Sheets[t.SheetNames[a]],r),r);case"eth":return kA(dB.from_sheet(t.Sheets[t.SheetNames[a]],r),r);case"fods":return kA(YB(t,r),r);case"wk1":return zh(gB.sheet_to_wk1(t.Sheets[t.SheetNames[a]],r),r);case"wk3":return zh(gB.book_to_wk3(t,r),r);case"biff2":r.biff||(r.biff=2);case"biff3":r.biff||(r.biff=3);case"biff4":return r.biff||(r.biff=4),zh(KB(t,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),SQ(t,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return _Q(t,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function TQ(t,e,r,n,a,A,o,s){var l=bn(r),c=s.defval,u=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),p=!0,h=a===1?[]:{};if(a!==1)if(Object.defineProperty)try{Object.defineProperty(h,"__rowNum__",{value:r,enumerable:!1})}catch{h.__rowNum__=r}else h.__rowNum__=r;if(!o||t[r])for(var d=e.s.c;d<=e.e.c;++d){var w=o?t[r][d]:t[n[d]+l];if(w===void 0||w.t===void 0){if(c===void 0)continue;A[d]!=null&&(h[A[d]]=c);continue}var f=w.v;switch(w.t){case"z":if(f==null)break;continue;case"e":f=f==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+w.t)}if(A[d]!=null){if(f==null)if(w.t=="e"&&f===null)h[A[d]]=null;else if(c!==void 0)h[A[d]]=c;else if(u&&f===null)h[A[d]]=null;else continue;else h[A[d]]=u&&(w.t!=="n"||w.t==="n"&&s.rawNumbers!==!1)?f:JA(w,f,s);f!=null&&(p=!1)}}return{row:h,isempty:p}}function Kh(t,e){if(t==null||t["!ref"]==null)return[];var r={t:"n",v:0},n=0,a=1,A=[],o=0,s="",l={s:{r:0,c:0},e:{r:0,c:0}},c=e||{},u=c.range!=null?c.range:t["!ref"];switch(c.header===1?n=1:c.header==="A"?n=2:Array.isArray(c.header)?n=3:c.header==null&&(n=0),typeof u){case"string":l=Br(u);break;case"number":l=Br(t["!ref"]),l.s.r=u;break;default:l=u}n>0&&(a=0);var p=bn(l.s.r),h=[],d=[],w=0,f=0,m=Array.isArray(t),y=l.s.r,F=0,N={};m&&!t[y]&&(t[y]=[]);var D=c.skipHidden&&t["!cols"]||[],H=c.skipHidden&&t["!rows"]||[];for(F=l.s.c;F<=l.e.c;++F)if(!(D[F]||{}).hidden)switch(h[F]=Dn(F),r=m?t[y][F]:t[h[F]+p],n){case 1:A[F]=F-l.s.c;break;case 2:A[F]=h[F];break;case 3:A[F]=c.header[F-l.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),s=o=JA(r,null,c),f=N[o]||0,!f)N[o]=1;else{do s=o+"_"+f++;while(N[s]);N[o]=f,N[s]=1}A[F]=s}for(y=l.s.r+a;y<=l.e.r;++y)if(!(H[y]||{}).hidden){var R=TQ(t,l,y,h,n,A,m,c);(R.isempty===!1||(n===1?c.blankrows!==!1:c.blankrows))&&(d[w++]=R.row)}return d.length=w,d}var ex=/"/g;function NQ(t,e,r,n,a,A,o,s){for(var l=!0,c=[],u="",p=bn(r),h=e.s.c;h<=e.e.c;++h)if(n[h]){var d=s.dense?(t[r]||[])[h]:t[n[h]+p];if(d==null)u="";else if(d.v!=null){l=!1,u=""+(s.rawNumbers&&d.t=="n"?d.v:JA(d,null,s));for(var w=0,f=0;w!==u.length;++w)if((f=u.charCodeAt(w))===a||f===A||f===34||s.forceQuotes){u='"'+u.replace(ex,'""')+'"';break}u=="ID"&&(u='"ID"')}else d.f!=null&&!d.F?(l=!1,u="="+d.f,u.indexOf(",")>=0&&(u='"'+u.replace(ex,'""')+'"')):u="";c.push(u)}return s.blankrows===!1&&l?null:c.join(o)}function Ig(t,e){var r=[],n=e??{};if(t==null||t["!ref"]==null)return"";var a=Br(t["!ref"]),A=n.FS!==void 0?n.FS:",",o=A.charCodeAt(0),s=n.RS!==void 0?n.RS:`
357
- `,l=s.charCodeAt(0),c=new RegExp((A=="|"?"\\|":A)+"+$"),u="",p=[];n.dense=Array.isArray(t);for(var h=n.skipHidden&&t["!cols"]||[],d=n.skipHidden&&t["!rows"]||[],w=a.s.c;w<=a.e.c;++w)(h[w]||{}).hidden||(p[w]=Dn(w));for(var f=0,m=a.s.r;m<=a.e.r;++m)(d[m]||{}).hidden||(u=NQ(t,a,m,p,o,l,A,n),u!=null&&(n.strip&&(u=u.replace(c,"")),(u||n.blankrows!==!1)&&r.push((f++?s:"")+u)));return delete n.dense,r.join("")}function tx(t,e){e||(e={}),e.FS=" ",e.RS=`
358
- `;var r=Ig(t,e);return r}function LQ(t){var e="",r,n="";if(t==null||t["!ref"]==null)return[];var a=Br(t["!ref"]),A="",o=[],s,l=[],c=Array.isArray(t);for(s=a.s.c;s<=a.e.c;++s)o[s]=Dn(s);for(var u=a.s.r;u<=a.e.r;++u)for(A=bn(u),s=a.s.c;s<=a.e.c;++s)if(e=o[s]+A,r=c?(t[u]||[])[s]:t[e],n="",r!==void 0){if(r.F!=null){if(e=r.F,!r.f)continue;n=r.f,e.indexOf(":")==-1&&(e=e+":"+e)}if(r.f!=null)n=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)n=""+r.v;else if(r.t=="b")n=r.v?"TRUE":"FALSE";else if(r.w!==void 0)n="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?n="'"+r.v:n=""+r.v}}l[l.length]=e+"="+n}return l}function rx(t,e,r){var n=r||{},a=+!n.skipHeader,A=t||{},o=0,s=0;if(A&&n.origin!=null)if(typeof n.origin=="number")o=n.origin;else{var l=typeof n.origin=="string"?hn(n.origin):n.origin;o=l.r,s=l.c}var c,u={s:{c:0,r:0},e:{c:s,r:o+e.length-1+a}};if(A["!ref"]){var p=Br(A["!ref"]);u.e.c=Math.max(u.e.c,p.e.c),u.e.r=Math.max(u.e.r,p.e.r),o==-1&&(o=p.e.r+1,u.e.r=o+e.length-1+a)}else o==-1&&(o=0,u.e.r=e.length-1+a);var h=n.header||[],d=0;e.forEach(function(f,m){Bn(f).forEach(function(y){(d=h.indexOf(y))==-1&&(h[d=h.length]=y);var F=f[y],N="z",D="",H=nr({c:s+d,r:o+m+a});c=sc(A,H),F&&typeof F=="object"&&!(F instanceof Date)?A[H]=F:(typeof F=="number"?N="n":typeof F=="boolean"?N="b":typeof F=="string"?N="s":F instanceof Date?(N="d",n.cellDates||(N="n",F=na(F)),D=n.dateNF||kr[14]):F===null&&n.nullError&&(N="e",F=0),c?(c.t=N,c.v=F,delete c.w,delete c.R,D&&(c.z=D)):A[H]=c={t:N,v:F},D&&(c.z=D))})}),u.e.c=Math.max(u.e.c,s+h.length-1);var w=bn(o);if(a)for(d=0;d<h.length;++d)A[Dn(d+s)+w]={t:"s",v:h[d]};return A["!ref"]=Xr(u),A}function UQ(t,e){return rx(null,t,e)}function sc(t,e,r){if(typeof e=="string"){if(Array.isArray(t)){var n=hn(e);return t[n.r]||(t[n.r]=[]),t[n.r][n.c]||(t[n.r][n.c]={t:"z"})}return t[e]||(t[e]={t:"z"})}return typeof e!="number"?sc(t,nr(e)):sc(t,nr({r:e,c:r||0}))}function IQ(t,e){if(typeof e=="number"){if(e>=0&&t.SheetNames.length>e)return e;throw new Error("Cannot find sheet # "+e)}else if(typeof e=="string"){var r=t.SheetNames.indexOf(e);if(r>-1)return r;throw new Error("Cannot find sheet name |"+e+"|")}else throw new Error("Cannot find sheet |"+e+"|")}function DQ(){return{SheetNames:[],Sheets:{}}}function QQ(t,e,r,n){var a=1;if(!r)for(;a<=65535&&t.SheetNames.indexOf(r="Sheet"+a)!=-1;++a,r=void 0);if(!r||t.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&t.SheetNames.indexOf(r)>=0){var A=r.match(/(^.*?)(\d+)$/);a=A&&+A[2]||0;var o=A&&A[1]||r;for(++a;a<=65535&&t.SheetNames.indexOf(r=o+a)!=-1;++a);}if(VB(r),t.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return t.SheetNames.push(r),t.Sheets[r]=e,r}function OQ(t,e,r){t.Workbook||(t.Workbook={}),t.Workbook.Sheets||(t.Workbook.Sheets=[]);var n=IQ(t,e);switch(t.Workbook.Sheets[n]||(t.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}t.Workbook.Sheets[n].Hidden=r}function PQ(t,e){return t.z=e,t}function nx(t,e,r){return e?(t.l={Target:e},r&&(t.l.Tooltip=r)):delete t.l,t}function MQ(t,e,r){return nx(t,"#"+e,r)}function RQ(t,e,r){t.c||(t.c=[]),t.c.push({t:e,a:r||"SheetJS"})}function HQ(t,e,r,n){for(var a=typeof e!="string"?e:Br(e),A=typeof e=="string"?e:Xr(e),o=a.s.r;o<=a.e.r;++o)for(var s=a.s.c;s<=a.e.c;++s){var l=sc(t,o,s);l.t="n",l.F=A,delete l.v,o==a.s.r&&s==a.s.c&&(l.f=r,n&&(l.D=!0))}return t}var Dg={encode_col:Dn,encode_row:bn,encode_cell:nr,encode_range:Xr,decode_col:pg,decode_row:gg,split_cell:n6,decode_cell:hn,decode_range:va,format_cell:JA,sheet_add_aoa:Mw,sheet_add_json:rx,sheet_add_dom:jB,aoa_to_sheet:Bs,json_to_sheet:UQ,table_to_sheet:WB,table_to_book:hQ,sheet_to_csv:Ig,sheet_to_txt:tx,sheet_to_json:Kh,sheet_to_html:GB,sheet_to_formulae:LQ,sheet_to_row_object_array:Kh,sheet_get_cell:sc,book_new:DQ,book_append_sheet:QQ,book_set_sheet_visibility:OQ,cell_set_number_format:PQ,cell_set_hyperlink:nx,cell_set_internal_link:MQ,cell_add_comment:RQ,sheet_set_array_formula:HQ,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function Gh(t,e,r,n,a){let{series:A}=t;if(!A||t.base===0)return{...A,proportion:0,ratio:0,path:"",startX:0,startY:0,endX:0,center:{}};const o=[...A].map(c=>c.value).reduce((c,u)=>c+u,0),s=[];let l=0;for(let c=0;c<A.length;c+=1){let u=A[c].value/o;const p=u*(Math.PI*1.9999),d=A[c].value/2/o*(Math.PI*2),{startX:w,startY:f,endX:m,endY:y,path:F}=Ax([e,r],[n,a],[l,p],110);s.push({cx:e,cy:r,...A[c],proportion:u,ratio:p,path:F,startX:w,startY:f,endX:m,endY:y,center:Ax([e,r],[n*1.45,a*1.45],[l,d],110)}),l+=p}return s}function jh([t,e],[r,n]){return[t+r,e+n]}function Wh([[t,e],[r,n]],[a,A]){return[t*a+e*A,r*a+n*A]}function ax(t){return[[Math.cos(t),-Math.sin(t)],[Math.sin(t),Math.cos(t)]]}function Ax([t,e],[r,n],[a,A],o){A=A%(2*Math.PI);const s=ax(o),[l,c]=jh(Wh(s,[r*Math.cos(a),n*Math.sin(a)]),[t,e]),[u,p]=jh(Wh(s,[r*Math.cos(a+A),n*Math.sin(a+A)]),[t,e]),h=A>Math.PI?1:0,d=A>0?1:0;return{startX:l,startY:c,endX:u,endY:p,path:`M${l} ${c} A ${[r,n,o/(2*Math.PI)*360,h,d,u,p].join(" ")}`}}function Wn({defaultConfig:t,userConfig:e}){const r={...t};return Object.keys(r).forEach(n=>{if(Object.hasOwn(e,n)){const a=e[n];typeof a=="boolean"?r[n]=a:["string","number"].includes(typeof a)?zQ(a)&&(r[n]=a):Array.isArray(r[n])?VQ({userConfig:e,key:n})&&(r[n]=a):$Q({userConfig:e,key:n})&&(r[n]=Wn({defaultConfig:r[n],userConfig:a}))}}),r}function VQ({userConfig:t,key:e}){return Object.hasOwn(t,e)&&Array.isArray(t[e])&&t[e].length>=0}function $Q({userConfig:t,key:e}){return Object.hasOwn(t,e)&&!Array.isArray(t[e])&&typeof t[e]=="object"}function zQ(t){return![null,void 0,NaN,1/0,-1/0].includes(t)}function KQ(t){return![void 0,NaN,1/0,-1/0].includes(t)}function GQ(t,e=0){return isNaN(t)?e:t}const It=["#3366cc","#dc3912","#ff9900","#109618","#990099","#0099c6","#dd4477","#66aa00","#b82e2e","#316395","#994499","#22aa99","#aaaa11","#6633cc","#e67300","#8b0707","#651067","#329262","#5574a6","#3b3eac","#b77322","#16d620","#b91383","#f4359e","#9c5935","#a9c413","#2a778d","#668d1c","#bea413","#0c5922","#743411"],yt=["00","03","05","08","0A","0D","0F","12","14","17","1A","1C","1F","21","24","26","29","2B","2E","30","33","36","38","3B","3D","40","42","45","47","4A","4D","4F","52","54","57","59","5C","5E","61","63","66","69","6B","6E","70","73","75","78","7A","7D","80","82","85","87","8A","8C","8F","91","94","96","99","9C","9E","A1","A3","A6","A8","AB","AD","B0","B3","B5","B8","BA","BD","BF","C2","C4","C7","C9","CC","CF","D1","D4","D6","D9","DB","DE","E0","E3","E6","E8","EB","ED","F0","F2","F5","F7","FA","FC","FF"];function Nr(t){const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,r=/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*[\d.]+)?\)$/i,n=/^hsla?\((\d+),\s*([\d.]+)%,\s*([\d.]+)%(?:,\s*[\d.]+)?\)$/i;if([void 0,null,NaN].includes(t))return null;if(t==="transparent")return"#FFFFFF00";let a;if(a=t.match(e)){const[,A,o,s]=a;return`#${A}${o}${s}`}else if(a=t.match(r)){const[,A,o,s]=a;return`#${Ns(A)}${Ns(o)}${Ns(s)}`}else if(a=t.match(n)){const[,A,o,s]=a,l=jQ(Number(A),Number(o),Number(s));return`#${Ns(l[0])}${Ns(l[1])}${Ns(l[2])}`}return null}function Ns(t){const e=Number(t).toString(16);return e.length===1?"0"+e:e}function jQ(t,e,r){t/=360,e/=100,r/=100;let n,a,A;if(e===0)n=a=A=r;else{const o=(c,u,p)=>(p<0&&(p+=1),p>1&&(p-=1),p<.16666666666666666?c+(u-c)*6*p:p<.5?u:p<.6666666666666666?c+(u-c)*(.6666666666666666-p)*6:c),s=r<.5?r*(1+e):r+e-r*e,l=2*r-s;n=o(l,s,t+1/3),a=o(l,s,t),A=o(l,s,t-1/3)}return[Math.round(n*255),Math.round(a*255),Math.round(A*255)]}function eA(t,e){const r=c=>({r:parseInt(c.substring(1,3),16),g:parseInt(c.substring(3,5),16),b:parseInt(c.substring(5,7),16)}),n=({r:c,g:u,b:p})=>{c/=255,u/=255,p/=255;const h=Math.max(c,u,p),d=Math.min(c,u,p);let w,f,m=(h+d)/2;if(h===d)w=f=0;else{const y=h-d;switch(f=m>.5?y/(2-h-d):y/(h+d),h){case c:w=(u-p)/y+(u<p?6:0);break;case u:w=(p-c)/y+2;break;case p:w=(c-u)/y+4;break}w/=6}return{h:w,s:f,l:m}},a=({h:c,s:u,l:p})=>{let h,d,w;if(u===0)h=d=w=p;else{const f=(F,N,D)=>(D<0&&(D+=1),D>1&&(D-=1),D<.16666666666666666?F+(N-F)*6*D:D<.5?N:D<.6666666666666666?F+(N-F)*(.6666666666666666-D)*6:F),m=p<.5?p*(1+u):p+u-p*u,y=2*p-m;h=f(y,m,c+.3333333333333333),d=f(y,m,c),w=f(y,m,c-.3333333333333333)}return{r:Math.round(h*255),g:Math.round(d*255),b:Math.round(w*255)}},A=r(t),o=n(A);o.h+=e,o.h=(o.h+1)%1;const s=a(o);return`#${(s.r<<16|s.g<<8|s.b).toString(16).padStart(6,"0")}`}function WQ({centerX:t,centerY:e,outerPoints:r,radius:n,rotation:a}){const A=Math.PI/r,o=a;let s="";const l=[];for(let c=0;c<r*2;c+=1){let u=t+Math.cos(c*A+o)*n,p=e+Math.sin(c*A+o)*n;s+=`${u},${p} `,l.push({x:u,y:p})}return{path:`M${s}Z`,coordinates:l}}function tA({plot:t,radius:e,sides:r,rotation:n=0}){const a=t.x,A=t.y,o=r/2;return WQ({centerX:a,centerY:A,outerPoints:o,radius:e+1,rotation:n})}function XQ({centerX:t,centerY:e,innerCirclePoints:r,innerRadius:n,outerRadius:a}){const A=Math.PI/r,o=60,s=r*2;let l="";for(let c=0;c<s;c+=1){let p=c%2==0?a:n,h=t+Math.cos(c*A+o)*p,d=e+Math.sin(c*A+o)*p;l+=`${h},${d} `}return l}function Xh({plot:t,radius:e,apexes:r=5}){const n=t.x,a=t.y,A=r,o=e*3.5/A,l=o*2;return XQ({centerX:n,centerY:a,innerCirclePoints:A,innerRadius:o,outerRadius:l})}function qQ({series:t}){t=t.sort((c,u)=>c.x-u.x);function e(c,u,p){const h=(c.x-u.x)*(p.x-u.x)+(c.y-u.y)*(p.y-u.y),d=(c.x-u.x)*(p.y-u.y)-(p.x-u.x)*(c.y-u.y);return Math.atan2(d,h)}const r=[];let n;n=t[0];for(const c of t)c.x<n.x&&(n=c);r[0]=n;let a,A,o,s;a=r[0],A={x:a.x,y:a.y+1};do{o=Math.PI;for(const c of t)n=e(A,a,c),n<=o&&(s=c,o=n);s!==r[0]&&(r.push(s),A=a,a=s)}while(s!==r[0]);let l;return r.forEach(c=>{c&&c.x&&c.y&&(l+=`${Math.round(c.x)},${Math.round(c.y)} `)}),l=l.replaceAll("undefined",""),l}function Qg(t){if(t){let e=t;e.charAt(0)!=="#"&&(e=this.rgbToHex(t)),e=e.substring(1,7);let r=parseInt(e.substring(0,2),16),n=parseInt(e.substring(2,4),16),a=parseInt(e.substring(4,6),16),o=[r/255,n/255,a/255].map(l=>l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4));return .2126*o[0]+.7152*o[1]+.0722*o[2]>.3?"#000000":"#FFFFFF"}return"#000000"}function Xn(t){for(const e in t)typeof t[e]=="object"&&!Array.isArray(t[e])&&t[e]!==null?Xn(t[e]):(e==="color"||e==="backgroundColor"||e==="stroke")&&(t[e]===""?t[e]="#000000":t[e]==="transparent"?t[e]="#FFFFFF00":t[e]=Nr(t[e]));return t}function ei(t,e){function r(l){let c=new ArrayBuffer(l.length),u=new Uint8Array(c);for(let p=0;p<l.length;p++)u[p]=l.charCodeAt(p)&255;return c}const n=Dg.book_new(),a=Dg.aoa_to_sheet(t);Dg.book_append_sheet(n,a,"Sheet1");const A=ZB(n,{bookType:"xlsx",type:"binary"}),o=new Blob([r(A)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),s=document.createElement("a");s.href=window.URL.createObjectURL(o),s.download=`${e.replaceAll(" ","_")}.xlsx`,s.click(),window.URL.revokeObjectURL(s.href)}function ix(t){let e,r,n,a;const A=t.length;if(!t||t.length===0)return{x1:0,y1:0,x2:0,y2:0,slope:0,trend:0};let o=0,s=0,l=0,c=0;for(const{x:d,y:w}of t)o+=d,s+=w,l+=d*w,c+=d*d;const u=(A*l-o*s)/(A*c-o*o),p=(s-u*o)/A;e=t[0].x,n=t[A-1].x,r=u*e+p,a=u*n+p;const h=YQ(t.map(d=>d.value));return{x1:e,y1:r,x2:n,y2:a,slope:u,trend:h}}function YQ(t){const e=t[0],n=t[t.length-1]-e;let a=0;for(let o=1;o<t.length;o++){const s=Math.abs(t[o]-t[o-1]);a+=s}return n/a}const ia={vue_ui_table:{fontFamily:"inherit",maxHeight:500,rowsPerPage:25,style:{th:{backgroundColor:"#E1E5E8",color:"#2D353C",outline:"1px solid #FFFFFF",selected:{backgroundColor:"#6376DD",color:"#FFFFFF"}},rows:{even:{backgroundColor:"#f3f5f7",color:"#2D353C",selectedCell:{backgroundColor:"#6375dd5b",color:"#2D353C"},selectedNeighbors:{backgroundColor:"#63dd821e",color:"#2D353C"}},odd:{backgroundColor:"#FFFFFF",color:"#2D353C",selectedCell:{backgroundColor:"#6375dd5b",color:"#2D353C"},selectedNeighbors:{backgroundColor:"#63dd821e",color:"#2D353C"}}},inputs:{backgroundColor:"#FFFFFF",color:"#2D353C",border:"1px solid #CCCCCC",accentColor:"#6376DD"},dropdowns:{backgroundColor:"#E1E5E8",color:"#2D353C",icons:{selected:{color:"#008000",unicode:"✔"},unselected:{color:"#ff0000",unicode:"✖"}}},infoBar:{backgroundColor:"#E1E5E8",color:"#2D353C"},pagination:{buttons:{backgroundColor:"#E1E5E8",color:"#2D353C",opacityDisabled:.5},navigationIndicator:{backgroundColor:"#6376DD"}},exportMenu:{backgroundColor:"#E1E5E8",color:"#2D353C",buttons:{backgroundColor:"#FAFAFA",color:"#2D353C"}},closeButtons:{backgroundColor:"transparent",color:"#2D353C",borderRadius:"50%"},chart:{modal:{backgroundColor:"#E1E5E8",color:"#2D353C",buttons:{selected:{backgroundColor:"#6376DD",color:"#FFFFFF"},unselected:{backgroundColor:"#FFFFFF",color:"#2D353C"}}},layout:{backgroundColor:"#FFFFFF",axis:{stroke:"#ccd1d4",strokeWidth:2},bar:{fill:"",stroke:"#FFFFFF"},line:{stroke:"#6376DD75",strokeWidth:4,plot:{fill:"#22348f",stroke:"#FFFFFF",strokeWidth:1,radius:{selected:6,unselected:4}},selector:{stroke:"#ccc",strokeWidth:1,strokeDasharray:5}},labels:{color:"#2D353C"},progression:{stroke:"#2D353C",strokeWidth:2,strokeDasharray:4,arrowSize:7}}}},translations:{average:"Average",by:"by",chooseCategoryColumn:"Choose category column",exportAllButton:"XLSX all",exportAllLabel:"Export all rows of your current filtered dataset",exportPageButton:"XLSX page",exportPageLabel:"Export rows of the current page",from:"From",inputPlaceholder:"Search...",makeDonut:"Generate",nb:"Nb",page:"Page",paginatorLabel:"Rows per page",sizeWarning:"Displaying too many rows at a time can lead to slower performance",sum:"Somme",to:"To",total:"Total",totalRows:"Total rows"},useChart:!0},vue_ui_xy:{chart:{fontFamily:"inherit",backgroundColor:"#FFFFFF",color:"#2D353C",height:300,width:500,zoom:{show:!0,color:"#2D353C"},padding:{top:36,right:12,bottom:12,left:48},highlighter:{color:"#2D353C",opacity:5},grid:{stroke:"#e1e5e8",showVerticalLines:!1,labels:{color:"#2D353C",show:!0,fontSize:10,axis:{yLabel:"",xLabel:"",fontSize:12},xAxisLabels:{color:"#2D353C",show:!0,values:[],fontSize:6,showOnlyFirstAndLast:!1}}},labels:{fontSize:10},legend:{color:"#2D353C",show:!0,useDiv:!0,fontSize:16},title:{show:!0,useDiv:!0,color:"#2D353C",text:"",fontSize:20,bold:!0,offsetX:0,offsetY:0,subtitle:{fontSize:16,color:"grey",text:""}},tooltip:{color:"#2D353C",backgroundColor:"white",show:!0,showValue:!0,showPercentage:!1,roundingValue:0,roundingPercentage:0},userOptions:{show:!0,title:"options",labels:{dataLabels:"Show datalabels",titleInside:"Title inside",legendInside:"Legend inside",showTable:"Show table"}}},bar:{useGradient:!0,labels:{show:!1,offsetY:-6,rounding:0,color:"#2D353C"}},line:{radius:3,useGradient:!0,strokeWidth:2,labels:{show:!1,offsetY:-6,rounding:0,color:"#2D353C"}},plot:{radius:3,useGradient:!0,labels:{show:!1,offsetY:-6,rounding:0,color:"#2D353C"}},table:{rounding:0,th:{backgroundColor:"#FAFAFA",color:"#2D353C",outline:"1px solid #e1e5e8"},td:{backgroundColor:"#FFFFFF",color:"#2D353C",outline:"1px solid #e1e5e8"}},showTable:!1},vue_ui_donut:{style:{fontFamily:"inherit",chart:{useGradient:!0,gradientIntensity:40,backgroundColor:"#FFFFFF",color:"#2D353C",layout:{useDiv:!1,labels:{dataLabels:{show:!0,hideUnderValue:3},percentage:{color:"#2D353C",bold:!0,fontSize:18},name:{color:"#2D353C",bold:!1,fontSize:14},hollow:{total:{show:!0,bold:!1,fontSize:18,color:"#AAAAAA",text:"Total",offsetY:0,value:{color:"#2D353C",fontSize:18,bold:!0,suffix:"",prefix:"",offsetY:0,rounding:0}},average:{show:!0,bold:!1,fontSize:18,color:"#AAAAAA",text:"Average",offsetY:0,value:{color:"#2D353C",fontSize:18,bold:!0,suffix:"",prefix:"",offsetY:0,rounding:0}}}},donut:{strokeWidth:64}},legend:{backgroundColor:"#FFFFFF",color:"#2D353C",show:!0,fontSize:16,bold:!1,roundingValue:0,roundingPercentage:0},title:{text:"",color:"#2D353C",fontSize:20,bold:!0,subtitle:{color:"#A1A1A1",text:"",fontSize:16,bold:!1}},tooltip:{show:!0,color:"#2D353C",backgroundColor:"#FFFFFF",fontSize:14,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0}}},userOptions:{show:!0,title:"options",labels:{dataLabels:"Show datalabels",useDiv:"Title & legend inside",showTable:"Show table"}},translations:{total:"Total",average:"Average"},table:{show:!1,th:{backgroundColor:"#FAFAFA",color:"#2D353C",outline:"1px solid #e1e5e8"},td:{backgroundColor:"#FFFFFF",color:"#2D353C",outline:"1px solid #e1e5e8",roundingValue:0,roundingPercentage:0}}},vue_ui_waffle:{style:{fontFamily:"inherit",chart:{backgroundColor:"#FFFFFF",color:"#2D353C",layout:{grid:{size:20,spaceBetween:2,vertical:!1},rect:{rounded:!0,rounding:2,stroke:"#2D353C",strokeWidth:1,useGradient:!0,gradientIntensity:40},useDiv:!0},title:{text:"",color:"#2D353C",fontSize:20,bold:!0,subtitle:{color:"#A1A1A1",text:"",fontSize:16,bold:!1}},tooltip:{show:!0,backgroundColor:"#FFFFFF",color:"#2D353C",fontSize:14,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0},legend:{show:!0,bold:!0,backgroundColor:"#FFFFFF",color:"#2D353C",fontSize:14,roundingValue:0,roundingPercentage:0}}},userOptions:{show:!0,title:"options",labels:{useDiv:"Title & legend inside",showTable:"Show table"}},table:{show:!1,th:{backgroundColor:"#FAFAFA",color:"#2D353C",outline:"1px solid #e1e5e8"},td:{backgroundColor:"#FFFFFF",color:"#2D353C",outline:"1px solid #e1e5e8",roundingValue:0,roundingPercentage:0}}},vue_ui_radar:{style:{fontFamily:"inherit",chart:{backgroundColor:"#FFFFFF",color:"#2D353C",layout:{useDiv:!0,plots:{show:!0,radius:2},outerPolygon:{stroke:"#CCCCCC",strokeWidth:1},dataPolygon:{strokeWidth:1,transparent:!1,opacity:20,useGradient:!0},grid:{show:!0,stroke:"#e1e5e8",strokeWidth:.5,graduations:5},labels:{dataLabels:{show:!0,fontSize:12,color:"#2D353C"}}},title:{text:"",color:"#2D353C",fontSize:20,bold:!0,subtitle:{color:"#A1A1A1",text:"",fontSize:16,bold:!1}},tooltip:{show:!0,backgroundColor:"#FFFFFF",color:"#2D353C",fontSize:14,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0},legend:{show:!0,bold:!0,backgroundColor:"#FFFFFF",color:"#2D353C",fontSize:14,roundingPercentage:0}}},table:{show:!1,th:{backgroundColor:"#FAFAFA",color:"#2D353C",outline:"1px solid #e1e5e8"},td:{backgroundColor:"#FFFFFF",color:"#2D353C",outline:"1px solid #e1e5e8",roundingValue:0,roundingPercentage:0}},userOptions:{show:!0,title:"options",labels:{useDiv:"Title & legend inside",showTable:"Show table"}},translations:{target:"Target"}},vue_ui_quadrant:{style:{fontFamily:"inherit",chart:{height:512,width:512,backgroundColor:"#FFFFFF",color:"#2D353C",layout:{useDiv:!0,labels:{quadrantLabels:{show:!0,tl:{text:"",color:"#2D353C",fontSize:16,bold:!0},tr:{text:"",color:"#2D353C",fontSize:16,bold:!0},br:{text:"",color:"#2D353C",fontSize:16,bold:!0},bl:{text:"",color:"#2D353C",fontSize:16,bold:!0}},plotLabels:{show:!0,fontSize:10,color:"#2D353C",offsetY:8},axisLabels:{show:!0,fontSize:14,color:{positive:"#2D353C",negative:"#2D353C"}}},grid:{stroke:"#e1e5e8",strokeWidth:1.5,showArrows:!0,graduations:{stroke:"#e1e5e8",strokeWidth:.5,show:!0,steps:5,fill:!0,color:"#E1E5E8",roundingForce:10},xAxis:{min:-100,max:100,auto:!0,name:""},yAxis:{min:-100,max:100,auto:!0,name:""}},plots:{radius:6,outline:!0,outlineColor:"#FFFFFF",outlineWidth:1},areas:{show:!0,opacity:40,useGradient:!0}},title:{text:"",color:"#2D353C",fontSize:20,bold:!0,subtitle:{color:"#A1A1A1",text:"",fontSize:16,bold:!1}},tooltip:{show:!0,backgroundColor:"#FFFFFF",color:"#2D353C",fontSize:14,roundingValue:0},legend:{show:!0,bold:!0,backgroundColor:"#FFFFFF",color:"#2D353C",fontSize:14}}},table:{show:!1,th:{backgroundColor:"#FAFAFA",color:"#2D353C",outline:"1px solid #e1e5e8"},td:{backgroundColor:"#FFFFFF",color:"#2D353C",outline:"1px solid #e1e5e8",roundingValue:0}},userOptions:{show:!0,title:"options",labels:{useDiv:"Title & legend inside",showTable:"Show table",showPlotLabels:"Show plot labels"}},translations:{category:"Category",item:"Item",side:"Side"}},vue_ui_gauge:{style:{fontFamily:"inherit",chart:{backgroundColor:"#FFFFFF",color:"#2D353C",animation:{use:!0,speed:1,acceleration:1},layout:{useDiv:!1,track:{size:1,useGradient:!0,gradientIntensity:40},markers:{size:1,color:"#2D353C",strokeWidth:1,stroke:"#2D353C",backgroundColor:"#FFFFFF",bold:!0,fontSizeRatio:1,offsetY:0,roundingValue:0},pointer:{size:1,stroke:"#2D353C",strokeWidth:12,useRatingColor:!0,color:"#CCCCCC",circle:{radius:10,stroke:"#2D353C",strokeWidth:2,color:"#FFFFFF"}}},legend:{fontSize:48,prefix:"",suffix:"",roundingValue:1,showPlusSymbol:!0,useRatingColor:!0,color:"#2D353C"},title:{text:"",color:"#2D353C",fontSize:20,bold:!0,subtitle:{color:"#A1A1A1",text:"",fontSize:16,bold:!1}}}},userOptions:{show:!0,title:"options",labels:{useDiv:"Title inside",showTable:"Show table"}},translations:{base:"Base"}},vue_ui_chestnut:{style:{fontFamily:"inherit",chart:{backgroundColor:"#FFFFFF",color:"#2D353C",layout:{grandTotal:{show:!0,fontSize:20,bold:!0,suffix:"",prefix:"",roundingValue:0,color:"#2D353C",text:"Grand total",offsetY:0},roots:{stroke:"#FFFFFF",strokeWidth:5,useGradient:!0,gradientIntensity:20,underlayerColor:"#FFFFFF",labels:{show:!0,fontSize:16,adaptColorToBackground:!0,color:"#FFFFFF",bold:!0,roundingValue:0,prefix:"",suffix:"",name:{color:"#2D353C",fontSize:16,bold:!0}}},verticalSeparator:{stroke:"#FFFFFF",strokeWidth:5},links:{opacity:10},branches:{stroke:"#FFFFFF",strokeWidth:0,borderRadius:6,useGradient:!0,gradientIntensity:20,underlayerColor:"#FFFFFF",widthRatio:1.5,labels:{show:!0,fontSize:14,color:"#2D353C",bold:!0,dataLabels:{show:!0,hideUnderValue:5,fontSize:14,roundingValue:0,roundingPercentage:0,prefix:"",suffix:""}}},nuts:{offsetX:20,useGradient:!0,gradientIntensity:30,selected:{useMotion:!0,useGradient:!0,gradientIntensity:40,roundingValue:0,roundingPercentage:0,labels:{dataLabels:{hideUnderValue:5,color:"#2D353C",fontSize:12,bold:!0,prefix:"",suffix:""},core:{total:{color:"#2D353C",fontSize:24,bold:!1},value:{color:"#2D353C",fontSize:24,bold:!0,prefix:"",suffix:""}}}}},legend:{fontSize:16,color:"#2D353C",roundingValue:0,roundingPercentage:0,prefix:"",suffix:""},title:{color:"#2D353C",fontSize:20,text:"",bold:!0,offsetY:0,subtitle:{text:"",color:"#CCCCCC",bold:!1,fontSize:16,offsetY:0}}}}},table:{show:!1,th:{backgroundColor:"#FAFAFA",color:"#2D353C",outline:"1px solid #e1e5e8",translations:{rootName:"root name",rootValue:"root value",rootToTotal:"%/total",branchName:"branch name",branchValue:"branch value",branchToRoot:"%/root",branchToTotal:"%/total",nutName:"nut name",nutValue:"nut value",nutToBranch:"%/branch",nutToRoot:"%/root",nutToTotal:"%/total"}},td:{backgroundColor:"#FFFFFF",color:"#2D353C",outline:"1px solid #e1e5e8",roundingValue:0,roundingPercentage:0}},userOptions:{show:!0,title:"options",labels:{showTable:"Show table"}},translations:{total:"Total",proportionToTree:"of grand total",of:"of"}},vue_ui_onion:{style:{fontFamily:"inherit",chart:{backgroundColor:"#FFFFFF",color:"#2D353C",useGradient:!1,gradientIntensity:20,layout:{useDiv:!0,gutter:{color:"#e1e5e8",width:.62},track:{width:.62},labels:{show:!0,fontSize:14,color:"#2D353C",roundingValue:0,roundingPercentage:0,bold:!0,offsetY:0,offsetX:0,value:{show:!0},percentage:{show:!0}}},title:{text:"",color:"#2D353C",fontSize:20,bold:!0,subtitle:{color:"#A1A1A1",text:"",fontSize:16,bold:!1}},legend:{show:!0,bold:!0,backgroundColor:"#FFFFFF",color:"#2D353C",fontSize:14,roundingValue:0,roundingPercentage:0}}},userOptions:{show:!0,title:"options",labels:{useDiv:"Title & legend inside",showTable:"Show table"}},table:{show:!1,th:{backgroundColor:"#FAFAFA",color:"#2D353C",outline:"1px solid #e1e5e8"},td:{backgroundColor:"#FFFFFF",color:"#2D353C",outline:"1px solid #e1e5e8",roundingValue:0,roundingPercentage:0},translations:{value:"Value",percentage:"Percentage",serie:"Serie"}}},vue_ui_vertical_bar:{style:{fontFamily:"inherit",chart:{backgroundColor:"#FFFFFF",color:"#2D353C",layout:{useDiv:!0,bars:{sort:"desc",useStroke:!1,strokeWidth:2,height:32,gap:6,borderRadius:4,offsetX:64,paddingRight:0,useGradient:!0,gradientIntensity:20,fillOpacity:90,underlayerColor:"#FFFFFF",dataLabels:{color:"#2D353C",bold:!0,fontSize:12,value:{show:!0,roundingValue:0,prefix:"",suffix:""},percentage:{show:!0,roundingPercentage:0},offsetX:0},nameLabels:{show:!0,color:"#2D353C",bold:!1,fontSize:10,offsetX:0},parentLabels:{show:!0,color:"#2D353C",bold:!1,fontSize:10,offsetX:0}},highlighter:{color:"#2D353C",opacity:5},separators:{show:!0,color:"#e1e5e8",strokeWidth:1}},title:{text:"",color:"#2D353C",fontSize:20,bold:!0,subtitle:{color:"#A1A1A1",text:"",fontSize:16,bold:!1}},legend:{show:!0,fontSize:14,color:"#2D353C",backgroundColor:"#FFFFFF",bold:!0,roundingValue:0,roundingPercentage:0,prefix:"",suffix:""},tooltip:{show:!0,backgroundColor:"#FFFFFF",color:"#2D353C",fontSize:14,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0,prefix:"",suffix:""}}},userOptions:{show:!0,title:"options",labels:{useDiv:"Title & legend inside",showTable:"Show table",sort:"Sort desc"}},table:{show:!1,th:{backgroundColor:"#FAFAFA",color:"#2D353C",outline:"1px solid #e1e5e8"},td:{backgroundColor:"#FFFFFF",color:"#2D353C",outline:"1px solid #e1e5e8",roundingValue:0,roundingPercentage:0,prefix:"",suffix:""}},translations:{parentName:"Serie",childName:"Child",value:"value",percentageToTotal:"%/total",percentageToSerie:"%/serie"}},vue_ui_screenshot:{mode:"download",quality:1,style:{info:{background:"#FFFFFF",bold:!0,border:"none",borderRadius:4,boxShadow:"0 6px 12px -6px rgba(0,0,0,0.2)",color:"#2D353C",fontFamily:"inherit",fontSize:14,minWidth:300,padding:12,top:-100},captureButton:{background:"#E1E5E8",bold:!0,border:"none",borderRadius:4,boxShadow:"0 6px 12px -6px rgba(0,0,0,0.2)",color:"#2D353C",fontFamily:"inherit",fontSize:14,minHeight:40,padding:"8px 12px"},cancelButton:{background:"#F17171",border:"none",borderRadius:10,color:"#FFFFFF",right:-14,size:28,top:-14},captureArea:{background:"radial-gradient(transparent, rgba(0,0,0,0.15))",border:"dashed 4px #2D353C",initialHeight:200,initialWidth:200},handles:{background:"#FFFFFF",border:"4px solid #2D353C",borderRadius:4,size:40}},translations:{captureButton:"capture",info:"Resize or move and click to capture"}},vue_ui_rating:{type:"star",readonly:!1,from:1,to:5,style:{fontFamily:"inherit",animated:!0,itemSize:32,backgroundColor:"#FFFFFF",star:{activeColor:"#FFD055",borderColor:"#FFD055",borderWidth:3,apexes:5,inactiveColor:"#e1e5e8",useGradient:!0},image:{src:"",inactiveOpacity:.3,alt:"rating image"},title:{textAlign:"center",fontSize:20,color:"#2D353C",bold:!0,text:"",offsetY:6,subtitle:{fontSize:14,color:"#CCCCCC",bold:!1,text:"",offsetY:12}},rating:{show:!0,fontSize:28,bold:!0,roundingValue:1,position:"bottom",offsetY:0,offsetX:0},tooltip:{show:!0,fontSize:14,offsetY:0,color:"#2D353C",bold:!0,backgroundColor:"#FFFFFF",borderColor:"#e1e5e8",borderRadius:4,boxShadow:"0 6px 12px -6px rgba(0,0,0,0.2)"}}},vue_ui_skeleton:{type:"line",style:{backgroundColor:"#FFFFFF",color:"#2D353C",maxHeight:500,animated:!0,chestnut:{color:"#E1E5E8"},line:{axis:{show:!0,color:"#e1e5e8",strokeWidth:.5},path:{color:"#e1e5e8",strokeWidth:1,showPlots:!0}},bar:{axis:{show:!0,color:"#e1e5e8",strokeWidth:.5},borderRadius:.5,color:"#e1e5e8",barWidth:9},donut:{color:"#e1e5e8",strokeWidth:64},onion:{color:"#E1E5E8"},gauge:{color:"#E1E5E8"},quadrant:{grid:{color:"#e1e5e8",strokeWidth:.5},plots:{radius:1.5,color:"#E1E5E8"}},radar:{grid:{color:"#E1E5E8",strokeWidth:.5},shapes:{color:"#E1E5E8"}},waffle:{color:"#e1e5e8"},table:{th:{color:"#E1E5E8"},td:{color:"#e1e5e8",strokeWidth:.5}},rating:{color:"#E1E5E8",filled:!0,strokeWidth:1,maxWidth:200},verticalBar:{axis:{show:!0,color:"#e1e5e8",strokeWidth:.5},borderRadius:.5,color:"#e1e5e8"}}},vue_ui_sparkline:{style:{backgroundColor:"#FFFFFF",fontFamily:"inherit",line:{color:"#3366cc",strokeWidth:3},zeroLine:{color:"#2D353C",strokeWidth:1},plot:{show:!0,radius:4,stroke:"#FFFFFF",strokeWidth:1},verticalIndicator:{show:!0,strokeWidth:1.5},dataLabel:{position:"left",fontSize:20,bold:!0,color:"#2D353C",roundingValue:0,valueType:"latest"},title:{show:!0,textAlign:"left",color:"#2D353C",fontSize:16,bold:!0,text:""},area:{show:!0,useGradient:!0,opacity:30,color:"#3366cc"}}}},Coe="",Ba=(t,e)=>{const r=t.__vccOpts||t;for(const[n,a]of e)r[n]=a;return r},JQ={name:"vue-ui-xy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},data(){const t=`vue-data-ui-xy_${Math.random()}_${Math.random()}`,e=Math.max(...this.dataset.map(n=>n.series.length)),r={start:0,end:e};return{opacity:yt,useSafeValues:!0,palette:It,defaultConfig:ia.vue_ui_xy,clientPosition:{x:0,y:0},icons:{line:"▬",bar:"◼",plot:"●"},isPrinting:!1,isTooltip:!1,mutableConfig:{dataLabels:{show:!0},titleInside:!0,legendInside:!0,showTable:!1},selectedSerieIndex:null,selectedRowIndex:null,segregatedSeries:[],uniqueId:t,slicer:r,maxX:e}},computed:{chartConfig(){if(!Object.keys(this.config||{}).length)return this.defaultConfig;const t=this.treeShake({defaultConfig:this.defaultConfig,userConfig:this.config});return this.convertConfigColors(t)},relativeZero(){return this.min>=0?0:Math.abs(this.min)},absoluteMax(){return this.max+this.relativeZero},safeDataset(){return this.useSafeValues?this.dataset.map((t,e)=>({...t,series:t.series.map(r=>this.isSafeValue(r)?r:null).slice(this.slicer.start,this.slicer.end),id:`uniqueId_${e}`})):this.dataset},relativeDataset(){return this.safeDataset.map((t,e)=>({...t,series:t.series.map(r=>r+this.relativeZero),absoluteValues:t.series,color:this.convertColorToHex(t.color?t.color:this.palette[e])})).filter(t=>!this.segregatedSeries.includes(t.id))},absoluteDataset(){return this.safeDataset.map((t,e)=>({...t,series:t.series.map(r=>r+this.relativeZero),absoluteValues:t.series,color:this.convertColorToHex(t.color?t.color:this.palette[e])}))},barSet(){return this.absoluteDataset.filter(t=>t.type==="bar").filter(t=>!this.segregatedSeries.includes(t.id)).map((t,e)=>({...t,plots:t.series.map((r,n)=>({x:this.drawingArea.left-this.slot.bar/2+this.slot.bar*e+this.slot.bar*n*this.absoluteDataset.filter(a=>a.type==="bar").filter(a=>!this.segregatedSeries.includes(a.id)).length,y:this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(r),value:t.absoluteValues[n]}))}))},lineSet(){return this.absoluteDataset.filter(t=>t.type==="line").filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>({...t,plots:t.series.map((e,r)=>({x:this.drawingArea.left+this.slot.line/2+this.slot.line*r,y:this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(e),value:t.absoluteValues[r]}))}))},plotSet(){return this.absoluteDataset.filter(t=>t.type==="plot").filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>({...t,plots:t.series.map((e,r)=>({x:this.drawingArea.left+this.slot.plot/2+this.slot.plot*r,y:this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(e),value:t.absoluteValues[r]}))}))},drawingArea(){return{top:this.chartConfig.chart.padding.top,right:this.chartConfig.chart.width-this.chartConfig.chart.padding.right,bottom:this.chartConfig.chart.height-this.chartConfig.chart.padding.bottom,left:this.chartConfig.chart.padding.left,height:this.chartConfig.chart.height-(this.chartConfig.chart.padding.top+this.chartConfig.chart.padding.bottom),width:this.chartConfig.chart.width-(this.chartConfig.chart.padding.right+this.chartConfig.chart.padding.left)}},max(){return Math.max(...this.safeDataset.filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>Math.max(...t.series)))},min(){const t=Math.min(...this.safeDataset.filter(e=>!this.segregatedSeries.includes(e.id)).map(e=>Math.min(...e.series)));return t>0?0:t},maxSeries(){return this.slicer.end-this.slicer.start},timeLabels(){return this.chartConfig.chart.grid.labels.xAxisLabels.values.slice(this.slicer.start,this.slicer.end)},slot(){return{bar:this.drawingArea.width/this.maxSeries/this.safeDataset.filter(t=>t.type==="bar").filter(t=>!this.segregatedSeries.includes(t.id)).length,plot:this.drawingArea.width/this.maxSeries,line:this.drawingArea.width/this.maxSeries}},maxSlot(){return Math.max(...Object.values(this.slot).filter(t=>t!==1/0))},table(){if(this.safeDataset.length===0)return{head:[],body:[]};const t=this.relativeDataset.map(r=>({label:r.name,color:r.color,type:r.type})),e=[];return this.timeLabels.forEach((r,n)=>{const a=[r];this.relativeDataset.forEach(A=>{a.push(this.canShowValue(A.absoluteValues[n])?Number(A.absoluteValues[n].toFixed(this.chartConfig.table.rounding)):"")}),e.push(a)}),{head:t,body:e}},tooltipContent(){const t=this.relativeDataset.map(a=>({name:a.name,color:a.color,type:a.type,value:a.absoluteValues.find((A,o)=>o===this.selectedSerieIndex)}));let e="",r=t.map(a=>a.value).filter(a=>this.isSafeValue(a)&&a!==null).reduce((a,A)=>Math.abs(a)+Math.abs(A),0);const n=this.timeLabels[this.selectedSerieIndex];return n&&(e+=`<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid #e1e5e8; width:100%">${n}</div>`),t.forEach(a=>{this.isSafeValue(a.value)&&a.value!==null&&(e+=`<div><span style="color:${a.color}; margin-right: 3px">${this.icons[a.type]}</span>${a.name} : <b>${this.chartConfig.chart.tooltip.showValue?a.value.toFixed(this.chartConfig.chart.tooltip.roundingValue):""}</b> ${this.chartConfig.chart.tooltip.showPercentage?`(${this.checkNaN(Math.abs(a.value)/r*100).toFixed(this.chartConfig.chart.tooltip.roundingPercentage)}%)`:""}</div>`)}),`<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums; background:${this.chartConfig.chart.tooltip.backgroundColor};color:${this.chartConfig.chart.tooltip.color}">${e}</div>`},tooltipPosition(){const t=this.$refs.tooltip,e=this.$refs.chart;let r=0,n=48;if(t&&e){const{width:a,height:A}=t.getBoundingClientRect(),o=e.getBoundingClientRect();this.clientPosition.x+a/2>o.right?r=-a:this.clientPosition.x-a/2<o.left?r=0:r=-a/2,this.clientPosition.y+A>o.bottom&&(n=-A-48)}return{top:this.clientPosition.y+n,left:this.clientPosition.x+r}},viewBox(){return`0 0 ${this.chartConfig.chart.width} ${this.chartConfig.chart.height}`},yLabels(){const t=this.closestDecimal(this.max/5),e=[];for(let a=5;a>0;a-=1){const A=t*a;e.push({y:this.zero-this.drawingArea.height*this.ratioToMax(t*a),value:A})}const r=this.closestDecimal(this.min/5),n=[];for(let a=5;a>=0;a-=1){const A=Math.abs(r)*a;n.push({y:this.zero+this.drawingArea.height*this.ratioToMax(Math.abs(r)*a),value:-A})}return[...e,...n]},zero(){return this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(this.relativeZero)}},mounted(){const t=document.getElementById("yAxisLabel");if(t){const r=t.getBBox().height/2+this.chartConfig.chart.padding.left/5,n=this.chartConfig.chart.height/2;t.setAttributeNS(null,"transform",`rotate(-90, ${r}, ${n})`),t.setAttributeNS(null,"x",r),t.setAttributeNS(null,"y",n),t.setAttributeNS(null,"font-size",this.chartConfig.chart.grid.labels.axis.fontSize)}this.chartConfig.showWarnings&&this.dataset.forEach(e=>{e.series.forEach((r,n)=>{this.isSafeValue(r)||console.warn(`SmartXY has detected an unsafe value in your dataset:
359
- -----> The serie '${e.name}' contains the value '${r}' at index ${n}.
360
- '${r}' was converted to null to allow the chart to display.`)})}),document.addEventListener("mousemove",e=>{this.clientPosition={x:e.clientX,y:e.clientY}}),this.mutableConfig={dataLabels:{show:!0},titleInside:!this.chartConfig.chart.title.useDiv,legendInside:!this.chartConfig.chart.legend.useDiv,showTable:this.chartConfig.showTable===!0}},methods:{checkNaN:GQ,isSafeValue:KQ,treeShake:Wn,shiftHue:eA,pdf:GA,convertColorToHex:Nr,convertConfigColors:Xn,makeXls:ei,adaptColorToBackground:Qg,calcLinearProgression:ix,calcRectHeight(t){return t.value>=0?this.zero-t.y:t.y-this.zero},calcRectWidth(){return this.slot.bar*.9},calcRectX(t){return t.x+this.slot.bar*.05+this.slot.bar/2},calcRectY(t){return t.value>=0?t.y:this.zero},canShowValue(t){return![null,void 0,NaN].includes(t)},closeDetails(){const t=this.$refs.details;t&&t.removeAttribute("open")},closestDecimal(t){if(t===0)return 0;const r=10**Math.floor(Math.log10(Math.abs(t)));let n;return t<0,n=Math.round(t/r)*r,n},ratioToMax(t){return t/this.absoluteMax},selectX(t){this.$emit("selectX",{dataset:this.relativeDataset.map(e=>({name:e.name,value:[null,void 0,NaN].includes(e.absoluteValues[t])?null:e.absoluteValues[t],color:e.color,type:e.type})),index:t,indexLabel:this.chartConfig.chart.grid.labels.xAxisLabels.values[t]})},getData(){return this.absoluteDataset.map(t=>({values:t.absoluteValues,color:t.color,name:t.name,type:t.type}))},segregate(t){if(this.segregatedSeries.includes(t.id))this.segregatedSeries=this.segregatedSeries.filter(e=>e!==t.id);else{if(this.segregatedSeries.length+1===this.safeDataset.length)return;this.segregatedSeries.push(t.id)}this.$emit("selectLegend",this.relativeDataset.map(e=>({name:e.name,values:e.absoluteValues,color:e.color,type:e.type})))},toggleTooltip(t,e=null){this.isTooltip=t,t?this.selectedSerieIndex=e:this.selectedSerieIndex=null},generatePdf(){this.isPrinting=!0,this.pdf({domElement:document.getElementById(`vue-ui-xy_${this.uniqueId}`),fileName:this.chartConfig.chart.title.text||"vue-ui-xy"}).finally(()=>{this.isPrinting=!1})},generateXls(){const t=[[this.chartConfig.chart.title.text],[this.chartConfig.chart.title.subtitle.text],[""]],e=["",...this.table.head.map(a=>a.label)],r=this.table.body,n=t.concat([e]).concat(r);this.makeXls(n,this.chartConfig.chart.title.text||"vue-ui-xy")}}},ZQ=t=>(i.pushScopeId("data-v-bed55f69"),t=t(),i.popScopeId(),t),eO=["id"],tO={class:"vue-ui-xy-user-option-item"},rO=["id","name"],nO=["for"],aO={class:"vue-ui-xy-user-option-item"},AO=["id","name"],iO=["for"],oO={class:"vue-ui-xy-user-option-item"},sO=["id","name"],lO=["for"],cO={class:"vue-ui-xy-user-option-item"},uO=["id","name"],hO=["for"],fO=["disabled"],dO=["stroke"],gO=[i.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-bed55f69></path><path d="M18 16v.01" data-v-bed55f69></path><path d="M6 16v.01" data-v-bed55f69></path><path d="M12 5v.01" data-v-bed55f69></path><path d="M12 12v.01" data-v-bed55f69></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-bed55f69></path>',6)],pO={key:1},mO=["viewBox"],yO={class:"vue-ui-xy-grid"},vO=["stroke","x1","x2","y1","y2"],wO=["stroke","x1","x2","y1","y2"],BO={key:0},xO=["x1","x2","y1","y2","stroke"],bO=["id"],CO=["stop-color"],EO=["stop-color"],_O=["stop-color"],FO=["id"],SO=["stop-color"],kO=["stop-color"],TO=["stop-color"],NO=["id"],LO=["stop-color"],UO=["stop-color"],IO=["id"],DO=["stop-color"],QO=["stop-color"],OO=["x","y","height","width","fill"],PO={key:0},MO=["id"],RO=["fill"],HO=["x1","x2","y1","y2","stroke","marker-end"],VO=["x","y","font-size","fill"],$O=["cx","cy","r","fill","stroke"],zO={key:0},KO=["id"],GO=["fill"],jO=["x1","x2","y1","y2","stroke","marker-end"],WO=["x","y","font-size","fill"],XO=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],qO=["cx","cy","r","fill","stroke"],YO={key:0},JO=["id"],ZO=["fill"],e7=["x1","x2","y1","y2","stroke","marker-end"],t7=["x","y","font-size","fill"],r7={key:0},n7=["x","y","font-size","fill"],a7={key:1},A7=["x","y","font-size","fill"],i7=["x","y"],o7=["x","y"],s7={key:2},l7=["x","y","font-size","fill"],c7=["x","y"],u7=["x","y"],h7={key:3},f7=["x1","x2","y1","y2","stroke"],d7=["x","y","font-size","fill"],g7=["font-size","fill"],p7=["x","y","font-size","fill"],m7={key:4},y7={x:"0",y:"0",width:"100%",height:"40px",style:{overflow:"visible"}},v7={key:5},w7=["y"],B7={class:"vue-ui-xy-legend"},x7=["onClick"],b7={key:6},C7=["y","x","font-size","fill"],E7={key:7},_7=["x","y","height","width","fill","onMouseenter","onClick"],F7={key:2,class:"vue-ui-xy-range-slider","data-html2canvas-ignore":""},S7={class:"vue-ui-xy-slider--left"},k7=["for"],T7=["id","max"],N7={class:"vue-ui-xy-slider--right"},L7=["for"],U7=["id","min","max"],I7=["onClick"],D7=["innerHTML"],Q7=["innerHTML"],O7={class:"vue-ui-xy-table"},P7={style:{"max-width":"200px",margin:"0 auto","text-align":"center"}},M7=[ZQ(()=>i.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[i.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),i.createElementVNode("path",{d:"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2"})],-1))],R7=["onMouseover"];function H7(t,e,r,n,a,A){return i.openBlock(),i.createElementBlock("div",{id:`vue-ui-xy_${a.uniqueId}`,class:"vue-ui-xy",ref:"chart",style:i.normalizeStyle(`background:${A.chartConfig.chart.backgroundColor}; color:${A.chartConfig.chart.color};width:100%`)},[A.chartConfig.chart.title.show&&(!a.mutableConfig.titleInside||a.isPrinting)?(i.openBlock(),i.createElementBlock("div",{key:0,class:"vue-ui-xy-title",style:i.normalizeStyle(`font-family:${A.chartConfig.chart.fontFamily}`)},[i.createElementVNode("div",{class:"vue-ui-xy-title-main",style:i.normalizeStyle(`font-size:${A.chartConfig.chart.title.fontSize}px; color:${A.chartConfig.chart.title.color}; font-weight:${A.chartConfig.chart.title.bold?"bold":"400"}`)},i.toDisplayString(A.chartConfig.chart.title.text),5),A.chartConfig.chart.title.subtitle.text?(i.openBlock(),i.createElementBlock("div",{key:0,class:"vue-ui-xy-title-subtitle",style:i.normalizeStyle(`font-size:${A.chartConfig.chart.title.subtitle.fontSize}px; color:${A.chartConfig.chart.title.subtitle.color}`)},i.toDisplayString(A.chartConfig.chart.title.subtitle.text),5)):i.createCommentVNode("",!0)],4)):i.createCommentVNode("",!0),A.chartConfig.chart.userOptions.show?(i.openBlock(),i.createElementBlock("details",{key:1,class:"vue-ui-xy-user-options",style:i.normalizeStyle(`background:${A.chartConfig.chart.backgroundColor};color:${A.chartConfig.chart.color}`),"data-html2canvas-ignore":"",ref:"details"},[i.createElementVNode("summary",{style:i.normalizeStyle(`background:${A.chartConfig.chart.backgroundColor};color:${A.chartConfig.chart.color}`)},i.toDisplayString(A.chartConfig.chart.userOptions.title),5),i.createElementVNode("div",{class:"vue-ui-xy-user-options-items",style:i.normalizeStyle(`background:${A.chartConfig.chart.backgroundColor};color:${A.chartConfig.chart.color}`)},[i.createElementVNode("div",tO,[i.withDirectives(i.createElementVNode("input",{type:"checkbox",id:`vue-ui-xy-option-datalabels_${a.uniqueId}`,name:`vue-ui-xy-option-datalabels_${a.uniqueId}`,"onUpdate:modelValue":e[0]||(e[0]=o=>a.mutableConfig.dataLabels.show=o)},null,8,rO),[[i.vModelCheckbox,a.mutableConfig.dataLabels.show]]),i.createElementVNode("label",{for:`vue-ui-xy-option-datalabels_${a.uniqueId}`},i.toDisplayString(A.chartConfig.chart.userOptions.labels.dataLabels),9,nO)]),i.createElementVNode("div",aO,[i.withDirectives(i.createElementVNode("input",{type:"checkbox",id:`vue-ui-xy-option-title_${a.uniqueId}`,name:`vue-ui-xy-option-title_${a.uniqueId}`,"onUpdate:modelValue":e[1]||(e[1]=o=>a.mutableConfig.titleInside=o)},null,8,AO),[[i.vModelCheckbox,a.mutableConfig.titleInside]]),i.createElementVNode("label",{for:`vue-ui-xy-option-title_${a.uniqueId}`},i.toDisplayString(A.chartConfig.chart.userOptions.labels.titleInside),9,iO)]),i.createElementVNode("div",oO,[i.withDirectives(i.createElementVNode("input",{type:"checkbox",id:`vue-ui-xy-option-legend_${a.uniqueId}`,name:`vue-ui-xy-option-legend_${a.uniqueId}`,"onUpdate:modelValue":e[2]||(e[2]=o=>a.mutableConfig.legendInside=o)},null,8,sO),[[i.vModelCheckbox,a.mutableConfig.legendInside]]),i.createElementVNode("label",{for:`vue-ui-xy-option-legend_${a.uniqueId}`},i.toDisplayString(A.chartConfig.chart.userOptions.labels.legendInside),9,lO)]),i.createElementVNode("div",cO,[i.withDirectives(i.createElementVNode("input",{type:"checkbox",id:`vue-ui-xy-option-table_${a.uniqueId}`,name:`vue-ui-xy-option-table_${a.uniqueId}`,"onUpdate:modelValue":e[3]||(e[3]=o=>a.mutableConfig.showTable=o)},null,8,uO),[[i.vModelCheckbox,a.mutableConfig.showTable]]),i.createElementVNode("label",{for:`vue-ui-xy-option-table_${a.uniqueId}`},i.toDisplayString(A.chartConfig.chart.userOptions.labels.showTable),9,hO)]),i.createElementVNode("button",{class:"vue-ui-xy-button",onClick:e[4]||(e[4]=(...o)=>A.generatePdf&&A.generatePdf(...o)),disabled:a.isPrinting,style:i.normalizeStyle(`margin-top: 12px; background:${A.chartConfig.chart.backgroundColor};color:${A.chartConfig.chart.color}`)},[a.isPrinting?(i.openBlock(),i.createElementBlock("svg",{key:0,class:"vue-ui-xy-print-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:A.chartConfig.chart.color,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},gO,8,dO)):(i.openBlock(),i.createElementBlock("span",pO,"PDF"))],12,fO),i.createElementVNode("button",{class:"vue-ui-xy-button",onClick:e[5]||(e[5]=(...o)=>A.generateXls&&A.generateXls(...o)),style:i.normalizeStyle(`background:${A.chartConfig.chart.backgroundColor};color:${A.chartConfig.chart.color}`)}," XLSX ",4)],4)],4)):i.createCommentVNode("",!0),(i.openBlock(),i.createElementBlock("svg",{width:"100%",viewBox:A.viewBox,class:"vue-ui-xy-svg",style:i.normalizeStyle(`background:${A.chartConfig.chart.backgroundColor}; color:${A.chartConfig.chart.color}; font-family:${A.chartConfig.chart.fontFamily}`),onClick:e[7]||(e[7]=(...o)=>A.closeDetails&&A.closeDetails(...o))},[i.createElementVNode("g",yO,[i.createElementVNode("line",{stroke:A.chartConfig.chart.grid.stroke,"stroke-width":"1",x1:A.drawingArea.left,x2:A.drawingArea.left,y1:A.drawingArea.top,y2:A.drawingArea.bottom,"stroke-linecap":"round"},null,8,vO),i.createElementVNode("line",{stroke:A.chartConfig.chart.grid.stroke,"stroke-width":"1",x1:A.drawingArea.left,x2:A.drawingArea.right,y1:A.zero,y2:A.zero,"stroke-linecap":"round"},null,8,wO),A.chartConfig.chart.grid.showVerticalLines?(i.openBlock(),i.createElementBlock("g",BO,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.maxSeries+1,(o,s)=>(i.openBlock(),i.createElementBlock("line",{key:`grid_vertical_line_${s}`,x1:A.drawingArea.width/A.maxSeries*s+A.drawingArea.left,x2:A.drawingArea.width/A.maxSeries*s+A.drawingArea.left,y1:A.drawingArea.top,y2:A.drawingArea.bottom,"stroke-width":"0.5",stroke:A.chartConfig.chart.grid.stroke},null,8,xO))),128))])):i.createCommentVNode("",!0)]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.barSet,(o,s)=>(i.openBlock(),i.createElementBlock("defs",{key:`def_rect_${s}`},[i.createElementVNode("linearGradient",{id:`rectGradient_pos_${s}_${a.uniqueId}`,x2:"0%",y2:"100%"},[i.createElementVNode("stop",{offset:"0%","stop-color":o.color},null,8,CO),i.createElementVNode("stop",{offset:"62%","stop-color":`${A.shiftHue(o.color,.02)}DE`},null,8,EO),i.createElementVNode("stop",{offset:"100%","stop-color":`${A.shiftHue(o.color,.05)}66`},null,8,_O)],8,bO),i.createElementVNode("linearGradient",{id:`rectGradient_neg_${s}_${a.uniqueId}`,x2:"0%",y2:"100%"},[i.createElementVNode("stop",{offset:"0%","stop-color":`${A.shiftHue(o.color,.05)}66`},null,8,SO),i.createElementVNode("stop",{offset:"38%","stop-color":`${A.shiftHue(o.color,.02)}DE`},null,8,kO),i.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,TO)],8,FO)]))),128)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.plotSet,(o,s)=>(i.openBlock(),i.createElementBlock("defs",{key:`def_plot_${s}`},[i.createElementVNode("radialGradient",{id:`plotGradient_${s}_${a.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[i.createElementVNode("stop",{offset:"0%","stop-color":`${A.shiftHue(o.color,.05)}`},null,8,LO),i.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,UO)],8,NO)]))),128)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.lineSet,(o,s)=>(i.openBlock(),i.createElementBlock("defs",{key:`def_line_${s}`},[i.createElementVNode("radialGradient",{id:`lineGradient_${s}_${a.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[i.createElementVNode("stop",{offset:"0%","stop-color":`${A.shiftHue(o.color,.05)}`},null,8,DO),i.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,QO)],8,IO)]))),128)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.barSet,(o,s)=>(i.openBlock(),i.createElementBlock("g",{key:`serie_bar_${s}`,class:i.normalizeClass(`serie_bar_${s}`)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.plots,(l,c)=>(i.openBlock(),i.createElementBlock("g",{key:`bar_plot_${s}_${c}`},[A.canShowValue(l.value)?(i.openBlock(),i.createElementBlock("rect",{key:0,x:A.calcRectX(l),y:A.calcRectY(l),height:A.calcRectHeight(l),width:A.calcRectWidth(),fill:A.chartConfig.bar.useGradient?l.value>=0?`url(#rectGradient_pos_${s}_${a.uniqueId})`:`url(#rectGradient_neg_${s}_${a.uniqueId})`:o.color},null,8,OO)):i.createCommentVNode("",!0)]))),128)),Object.hasOwn(o,"useProgression")&&o.useProgression===!0&&!isNaN(A.calcLinearProgression(o.plots).trend)?(i.openBlock(),i.createElementBlock("g",PO,[i.createElementVNode("defs",null,[i.createElementVNode("marker",{id:`bar_arrow_${s}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[i.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:o.color},null,8,RO)],8,MO)]),i.createElementVNode("line",{x1:A.calcLinearProgression(o.plots).x1,x2:A.calcLinearProgression(o.plots).x2,y1:A.calcLinearProgression(o.plots).y1,y2:A.calcLinearProgression(o.plots).y2,"stroke-width":1,stroke:o.color,"stroke-dasharray":2,"marker-end":`url(#bar_arrow_${s})`},null,8,HO),i.createElementVNode("text",{"text-anchor":"middle",x:A.calcLinearProgression(o.plots).x2,y:A.calcLinearProgression(o.plots).y2-6,"font-size":A.chartConfig.chart.labels.fontSize,fill:o.color},i.toDisplayString(`${(A.calcLinearProgression(o.plots).trend*100).toFixed(2)}%`),9,VO)])):i.createCommentVNode("",!0)],2))),128)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.plotSet,(o,s)=>(i.openBlock(),i.createElementBlock("g",{key:`serie_plot_${s}`,class:i.normalizeClass(`serie_plot_${s}`)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.plots,(l,c)=>(i.openBlock(),i.createElementBlock("g",{key:`circle_plot_${s}_${c}`},[A.canShowValue(l.value)?(i.openBlock(),i.createElementBlock("circle",{key:0,cx:l.x,cy:l.y,r:A.chartConfig.plot.radius,fill:A.chartConfig.plot.useGradient?`url(#plotGradient_${s}_${a.uniqueId})`:o.color,stroke:A.chartConfig.chart.backgroundColor,"stroke-width":"0.5"},null,8,$O)):i.createCommentVNode("",!0)]))),128)),Object.hasOwn(o,"useProgression")&&o.useProgression===!0&&!isNaN(A.calcLinearProgression(o.plots).trend)?(i.openBlock(),i.createElementBlock("g",zO,[i.createElementVNode("defs",null,[i.createElementVNode("marker",{id:`plot_arrow_${s}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[i.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:o.color},null,8,GO)],8,KO)]),i.createElementVNode("line",{x1:A.calcLinearProgression(o.plots).x1,x2:A.calcLinearProgression(o.plots).x2,y1:A.calcLinearProgression(o.plots).y1,y2:A.calcLinearProgression(o.plots).y2,"stroke-width":1,stroke:o.color,"stroke-dasharray":2,"marker-end":`url(#plot_arrow_${s})`},null,8,jO),i.createElementVNode("text",{"text-anchor":"middle",x:A.calcLinearProgression(o.plots).x2,y:A.calcLinearProgression(o.plots).y2-6,"font-size":A.chartConfig.chart.labels.fontSize,fill:o.color},i.toDisplayString(`${(A.calcLinearProgression(o.plots).trend*100).toFixed(2)}%`),9,WO)])):i.createCommentVNode("",!0)],2))),128)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.lineSet,(o,s)=>(i.openBlock(),i.createElementBlock("g",{key:`serie_line_${s}`,class:i.normalizeClass(`serie_line_${s}`)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.plots,(l,c)=>(i.openBlock(),i.createElementBlock("g",{key:`line_${s}_${c}`},[c<o.plots.length-1&&A.canShowValue(l.value)&&A.canShowValue(o.plots[c+1].value)?(i.openBlock(),i.createElementBlock("line",{key:0,x1:l.x,x2:o.plots[c+1].x,y1:l.y,y2:o.plots[c+1].y,stroke:o.color,"stroke-width":A.chartConfig.line.strokeWidth,"stroke-dasharray":o.dashed?A.chartConfig.line.strokeWidth*2:0,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,XO)):i.createCommentVNode("",!0)]))),128)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.plots,(l,c)=>(i.openBlock(),i.createElementBlock("g",{key:`circle_line_${s}_${c}`},[A.canShowValue(l.value)?(i.openBlock(),i.createElementBlock("circle",{key:0,cx:l.x,cy:l.y,r:A.chartConfig.line.radius,fill:A.chartConfig.line.useGradient?`url(#lineGradient_${s}_${a.uniqueId})`:o.color,stroke:A.chartConfig.chart.backgroundColor,"stroke-width":"0.5"},null,8,qO)):i.createCommentVNode("",!0)]))),128)),Object.hasOwn(o,"useProgression")&&o.useProgression===!0&&!isNaN(A.calcLinearProgression(o.plots).trend)?(i.openBlock(),i.createElementBlock("g",YO,[i.createElementVNode("defs",null,[i.createElementVNode("marker",{id:`line_arrow_${s}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[i.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:o.color},null,8,ZO)],8,JO)]),i.createElementVNode("line",{x1:A.calcLinearProgression(o.plots).x1,x2:A.calcLinearProgression(o.plots).x2,y1:A.calcLinearProgression(o.plots).y1,y2:A.calcLinearProgression(o.plots).y2,"stroke-width":1,stroke:o.color,"stroke-dasharray":2,"marker-end":`url(#line_arrow_${s})`},null,8,e7),i.createElementVNode("text",{"text-anchor":"middle",x:A.calcLinearProgression(o.plots).x2,y:A.calcLinearProgression(o.plots).y2-6,"font-size":A.chartConfig.chart.labels.fontSize,fill:o.color},i.toDisplayString(`${(A.calcLinearProgression(o.plots).trend*100).toFixed(2)}%`),9,t7)])):i.createCommentVNode("",!0)],2))),128)),A.chartConfig.bar.labels.show&&a.mutableConfig.dataLabels.show?(i.openBlock(),i.createElementBlock("g",r7,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.barSet,(o,s)=>(i.openBlock(),i.createElementBlock("g",{key:`xLabel_bar_${s}`,class:i.normalizeClass(`xLabel_bar_${s}`)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.plots,(l,c)=>(i.openBlock(),i.createElementBlock("g",{key:`xLabel_bar_${s}_${c}`},[!Object.hasOwn(o,"dataLabels")||o.dataLabels===!0?(i.openBlock(),i.createElementBlock("text",{key:0,x:l.x+A.calcRectWidth()*1.1,y:l.y+A.chartConfig.bar.labels.offsetY,"text-anchor":"middle","font-size":A.chartConfig.chart.labels.fontSize,fill:A.chartConfig.bar.labels.color},i.toDisplayString(A.canShowValue(l.value)?l.value.toFixed(A.chartConfig.bar.labels.rounding):""),9,n7)):i.createCommentVNode("",!0)]))),128))],2))),128))])):i.createCommentVNode("",!0),A.chartConfig.plot.labels.show&&a.mutableConfig.dataLabels.show?(i.openBlock(),i.createElementBlock("g",a7,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.plotSet,(o,s)=>(i.openBlock(),i.createElementBlock("g",{key:`xLabel_plot_${s}`,class:i.normalizeClass(`xLabel_plot_${s}`)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.plots,(l,c)=>(i.openBlock(),i.createElementBlock("g",{key:`xLabel_plot_${s}_${c}`},[!Object.hasOwn(o,"dataLabels")||o.dataLabels===!0?(i.openBlock(),i.createElementBlock("text",{key:0,x:l.x,y:l.y+A.chartConfig.plot.labels.offsetY,"text-anchor":"middle","font-size":A.chartConfig.chart.labels.fontSize,fill:A.chartConfig.plot.labels.color},i.toDisplayString(A.canShowValue(l.value)?l.value.toFixed(A.chartConfig.plot.labels.rounding):""),9,A7)):i.createCommentVNode("",!0),c===0&&o.useTag&&o.useTag==="start"?(i.openBlock(),i.createElementBlock("foreignObject",{key:1,x:l.x,y:l.y-20,height:24,width:"150",style:{overflow:"visible"}},[i.createElementVNode("div",{style:i.normalizeStyle(`padding: 3px; background:${o.color}${a.opacity[80]};color:${A.adaptColorToBackground(o.color)};width:fit-content;font-size:${A.chartConfig.chart.labels.fontSize}px;border-radius: 2px;`)},i.toDisplayString(o.name),5)],8,i7)):i.createCommentVNode("",!0),c===o.plots.length-1&&o.useTag&&o.useTag==="end"?(i.openBlock(),i.createElementBlock("foreignObject",{key:2,x:l.x-o.name.length*(A.chartConfig.chart.labels.fontSize/2),y:l.y-20,height:24,width:"150",style:{overflow:"visible"}},[i.createElementVNode("div",{style:i.normalizeStyle(`padding: 3px; background:${o.color}${a.opacity[80]};color:${A.adaptColorToBackground(o.color)};width:fit-content;font-size:${A.chartConfig.chart.labels.fontSize}px;border-radius: 2px;`)},i.toDisplayString(o.name),5)],8,o7)):i.createCommentVNode("",!0)]))),128))],2))),128))])):i.createCommentVNode("",!0),A.chartConfig.line.labels.show&&a.mutableConfig.dataLabels.show?(i.openBlock(),i.createElementBlock("g",s7,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.lineSet,(o,s)=>(i.openBlock(),i.createElementBlock("g",{key:`xLabel_line_${s}`,class:i.normalizeClass(`xLabel_line_${s}`)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.plots,(l,c)=>(i.openBlock(),i.createElementBlock("g",{key:`xLabel_line_${s}_${c}`},[!Object.hasOwn(o,"dataLabels")||o.dataLabels===!0?(i.openBlock(),i.createElementBlock("text",{key:0,x:l.x,y:l.y+A.chartConfig.line.labels.offsetY,"text-anchor":"middle","font-size":A.chartConfig.chart.labels.fontSize,fill:A.chartConfig.line.labels.color},i.toDisplayString(A.canShowValue(l.value)?l.value.toFixed(A.chartConfig.line.labels.rounding):""),9,l7)):i.createCommentVNode("",!0),c===0&&o.useTag&&o.useTag==="start"?(i.openBlock(),i.createElementBlock("foreignObject",{key:1,x:l.x,y:l.y-20,height:24,width:"150",style:{overflow:"visible"}},[i.createElementVNode("div",{style:i.normalizeStyle(`padding: 3px; background:${o.color}${a.opacity[80]};color:${A.adaptColorToBackground(o.color)};width:fit-content;font-size:${A.chartConfig.chart.labels.fontSize}px;border-radius: 2px;`)},i.toDisplayString(o.name),5)],8,c7)):i.createCommentVNode("",!0),c===o.plots.length-1&&o.useTag&&o.useTag==="end"?(i.openBlock(),i.createElementBlock("foreignObject",{key:2,x:l.x-o.name.length*(A.chartConfig.chart.labels.fontSize/2),y:l.y-20,height:24,width:"150",style:{overflow:"visible"}},[i.createElementVNode("div",{style:i.normalizeStyle(`padding: 3px; background:${o.color}${a.opacity[80]};color:${A.adaptColorToBackground(o.color)};width:fit-content;font-size:${A.chartConfig.chart.labels.fontSize}px;border-radius: 2px;`)},i.toDisplayString(o.name),5)],8,u7)):i.createCommentVNode("",!0)]))),128))],2))),128))])):i.createCommentVNode("",!0),A.chartConfig.chart.grid.labels.show?(i.openBlock(),i.createElementBlock("g",h7,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.yLabels,(o,s)=>(i.openBlock(),i.createElementBlock("g",{key:`yLabel_${s}`},[o.value>=A.min&&o.value<=A.max?(i.openBlock(),i.createElementBlock("line",{key:0,x1:A.drawingArea.left,x2:A.drawingArea.left-5,y1:o.y,y2:o.y,stroke:A.chartConfig.chart.grid.stroke,"stroke-width":"1"},null,8,f7)):i.createCommentVNode("",!0),o.value>=A.min&&o.value<=A.max?(i.openBlock(),i.createElementBlock("text",{key:1,x:A.drawingArea.left-5,y:o.y+A.chartConfig.chart.labels.fontSize/3,"font-size":A.chartConfig.chart.grid.labels.fontSize,"text-anchor":"end",fill:A.chartConfig.chart.grid.labels.color},i.toDisplayString(A.canShowValue(o.value)?o.value.toFixed(0):""),9,d7)):i.createCommentVNode("",!0)]))),128))])):i.createCommentVNode("",!0),i.createElementVNode("g",null,[A.chartConfig.chart.grid.labels.axis.yLabel?(i.openBlock(),i.createElementBlock("text",{key:0,"font-size":A.chartConfig.chart.grid.labels.axis.fontSize,fill:A.chartConfig.chart.grid.labels.color,id:"yAxisLabel","text-anchor":"middle",style:{transition:"none"}},i.toDisplayString(A.chartConfig.chart.grid.labels.axis.yLabel),9,g7)):i.createCommentVNode("",!0),A.chartConfig.chart.grid.labels.axis.xLabel?(i.openBlock(),i.createElementBlock("text",{key:1,"text-anchor":"middle",x:A.chartConfig.chart.width/2,y:A.drawingArea.bottom+A.chartConfig.chart.grid.labels.axis.fontSize+A.chartConfig.chart.grid.labels.xAxisLabels.fontSize*1.3,"font-size":A.chartConfig.chart.grid.labels.axis.fontSize,fill:A.chartConfig.chart.grid.labels.color},i.toDisplayString(A.chartConfig.chart.grid.labels.axis.xLabel),9,p7)):i.createCommentVNode("",!0)]),A.chartConfig.chart.title.show&&a.mutableConfig.titleInside&&!a.isPrinting?(i.openBlock(),i.createElementBlock("g",m7,[(i.openBlock(),i.createElementBlock("foreignObject",y7,[i.createElementVNode("div",{class:"vue-ui-xy-title",style:i.normalizeStyle(`font-family:${A.chartConfig.chart.fontFamily}`)},[i.createElementVNode("div",{class:"vue-ui-xy-title-main",style:i.normalizeStyle(`font-size:${A.chartConfig.chart.title.fontSize*.6}px; color:${A.chartConfig.chart.title.color}; font-weight:${A.chartConfig.chart.title.bold?"bold":"400"}`)},i.toDisplayString(A.chartConfig.chart.title.text),5),A.chartConfig.chart.title.subtitle.text?(i.openBlock(),i.createElementBlock("div",{key:0,class:"vue-ui-xy-title-subtitle",style:i.normalizeStyle(`font-size:${A.chartConfig.chart.title.subtitle.fontSize*.6}px; color:${A.chartConfig.chart.title.subtitle.color}`)},i.toDisplayString(A.chartConfig.chart.title.subtitle.text),5)):i.createCommentVNode("",!0)],4)]))])):i.createCommentVNode("",!0),A.chartConfig.chart.legend.show&&a.mutableConfig.legendInside&&!a.isPrinting?(i.openBlock(),i.createElementBlock("g",v7,[(i.openBlock(),i.createElementBlock("foreignObject",{x:"0",y:A.drawingArea.bottom+A.chartConfig.chart.padding.bottom/3+12,width:"100%",height:"20px",style:i.normalizeStyle(`overflow:visible; font-size:${A.chartConfig.chart.legend.fontSize*.6}px`)},[i.createElementVNode("div",B7,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.absoluteDataset,(o,s)=>(i.openBlock(),i.createElementBlock("div",{key:`div_legend_item_${s}`,onClick:l=>A.segregate(o),class:i.normalizeClass({"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":a.segregatedSeries.includes(o.id)})},[["plot"].includes(o.type)?(i.openBlock(),i.createElementBlock("span",{key:0,style:i.normalizeStyle(`color:${o.color}`)},"●",4)):i.createCommentVNode("",!0),["line"].includes(o.type)?(i.openBlock(),i.createElementBlock("span",{key:1,style:i.normalizeStyle(`color:${o.color}`)},"▬",4)):i.createCommentVNode("",!0),["bar"].includes(o.type)?(i.openBlock(),i.createElementBlock("span",{key:2,style:i.normalizeStyle(`color:${o.color}`)},"◼",4)):i.createCommentVNode("",!0),i.createElementVNode("span",{style:i.normalizeStyle(`color:${A.chartConfig.chart.legend.color}`)},i.toDisplayString(o.name),5)],10,x7))),128))])],12,w7))])):i.createCommentVNode("",!0),A.chartConfig.chart.grid.labels.xAxisLabels.show?(i.openBlock(),i.createElementBlock("g",b7,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.timeLabels,(o,s)=>(i.openBlock(),i.createElementBlock("g",{key:`time_label_${s}`},[o&&!A.chartConfig.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast||o&&A.chartConfig.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&(s===0||s===A.timeLabels.length-1)?(i.openBlock(),i.createElementBlock("text",{key:0,"text-anchor":"middle",y:A.drawingArea.bottom+A.chartConfig.chart.grid.labels.xAxisLabels.fontSize*1.3,x:A.drawingArea.left+A.drawingArea.width/A.maxSeries*s+A.drawingArea.width/A.maxSeries/2,"font-size":A.chartConfig.chart.grid.labels.xAxisLabels.fontSize,fill:A.chartConfig.chart.grid.labels.xAxisLabels.color},i.toDisplayString(o||""),9,C7)):i.createCommentVNode("",!0)]))),128))])):i.createCommentVNode("",!0),A.chartConfig.chart.tooltip.show?(i.openBlock(),i.createElementBlock("g",E7,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.maxSeries,(o,s)=>(i.openBlock(),i.createElementBlock("g",{key:`tooltip_trap_${s}`},[i.createElementVNode("rect",{x:A.drawingArea.left+A.drawingArea.width/A.maxSeries*s,y:A.drawingArea.top,height:A.drawingArea.height,width:A.drawingArea.width/A.maxSeries,fill:a.selectedSerieIndex===s||a.selectedRowIndex===s?`${A.chartConfig.chart.highlighter.color}${a.opacity[A.chartConfig.chart.highlighter.opacity]}`:"transparent",onMouseenter:l=>A.toggleTooltip(!0,s),onMouseleave:e[6]||(e[6]=l=>A.toggleTooltip(!1)),onClick:l=>A.selectX(s)},null,40,_7)]))),128))])):i.createCommentVNode("",!0)],12,mO)),A.chartConfig.chart.zoom.show?(i.openBlock(),i.createElementBlock("div",F7,[i.createElementVNode("div",S7,[i.createElementVNode("label",{for:`start_${a.uniqueId}`},i.toDisplayString(A.chartConfig.chart.grid.labels.xAxisLabels.values[a.slicer.start]),9,k7),i.withDirectives(i.createElementVNode("input",{id:`start_${a.uniqueId}`,type:"range",style:i.normalizeStyle(`accent-color:${A.chartConfig.chart.zoom.color}`),min:0,max:Math.floor(a.maxX/2),"onUpdate:modelValue":e[8]||(e[8]=o=>a.slicer.start=o)},null,12,T7),[[i.vModelText,a.slicer.start]])]),i.createElementVNode("div",N7,[i.createElementVNode("label",{for:`end_${a.uniqueId}`},i.toDisplayString(A.chartConfig.chart.grid.labels.xAxisLabels.values[a.slicer.end-1]),9,L7),i.withDirectives(i.createElementVNode("input",{id:`end_${a.uniqueId}`,type:"range",style:i.normalizeStyle(`accent-color:${A.chartConfig.chart.zoom.color}`),min:Math.ceil(a.maxX/2),max:a.maxX,"onUpdate:modelValue":e[9]||(e[9]=o=>a.slicer.end=o)},null,12,U7),[[i.vModelText,a.slicer.end]])])])):i.createCommentVNode("",!0),A.chartConfig.chart.legend.show&&(!a.mutableConfig.legendInside||a.isPrinting)?(i.openBlock(),i.createElementBlock("div",{key:3,class:"vue-ui-xy-legend",style:i.normalizeStyle(`font-size:${A.chartConfig.chart.legend.fontSize}px`)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.absoluteDataset,(o,s)=>(i.openBlock(),i.createElementBlock("div",{key:`div_legend_item_${s}`,onClick:l=>A.segregate(o),class:i.normalizeClass({"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":a.segregatedSeries.includes(o.id)})},[i.createElementVNode("span",{style:i.normalizeStyle(`color:${o.color}`),innerHTML:a.icons[o.type]},null,12,D7),i.createElementVNode("span",{style:i.normalizeStyle(`color:${A.chartConfig.chart.legend.color}`)},i.toDisplayString(o.name),5)],10,I7))),128))],4)):i.createCommentVNode("",!0),A.chartConfig.chart.tooltip.show&&a.isTooltip?(i.openBlock(),i.createElementBlock("div",{key:4,class:"vue-ui-xy-tooltip",ref:"tooltip",style:i.normalizeStyle(`top:${A.tooltipPosition.top}px;left:${A.tooltipPosition.left}px; background-color:${A.chartConfig.chart.tooltip.backgroundColor};color:${A.chartConfig.chart.tooltip.color}`),innerHTML:A.tooltipContent},null,12,Q7)):i.createCommentVNode("",!0),a.mutableConfig.showTable?(i.openBlock(),i.createElementBlock("div",{key:5,class:i.normalizeClass({"vue-ui-xy-table-wrapper":!0,"vue-ui-xy-table-wrapper-printing":a.isPrinting}),onClick:e[11]||(e[11]=(...o)=>A.closeDetails&&A.closeDetails(...o))},[i.createElementVNode("table",O7,[i.createElementVNode("thead",null,[i.createElementVNode("tr",null,[i.createElementVNode("th",{style:i.normalizeStyle(`background:${A.chartConfig.table.th.backgroundColor};color:${A.chartConfig.table.th.color}`)},null,4),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.table.head,(o,s)=>(i.openBlock(),i.createElementBlock("th",{key:`th_${s}`,style:i.normalizeStyle(`background:${A.chartConfig.table.th.backgroundColor};color:${A.chartConfig.table.th.color}`)},[i.createElementVNode("div",P7,[i.createElementVNode("span",{style:i.normalizeStyle(`color:${o.color}; margin-right:3px`)},i.toDisplayString(a.icons[o.type]),5),i.createTextVNode(i.toDisplayString(o.label),1)])],4))),128))]),i.createElementVNode("tr",null,[i.createElementVNode("th",{align:"right",style:i.normalizeStyle(`background:${A.chartConfig.table.th.backgroundColor};color:${A.chartConfig.table.th.color}`)},M7,4),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.table.head,(o,s)=>(i.openBlock(),i.createElementBlock("th",{align:"right",key:`th_sum_${s}`,style:i.normalizeStyle(`background:${A.chartConfig.table.th.backgroundColor};color:${A.chartConfig.table.th.color};padding-right:6px`)},i.toDisplayString(r.dataset[s].series.slice(a.slicer.start,a.slicer.end).reduce((l,c)=>l+c,0).toFixed(A.chartConfig.table.rounding)),5))),128))])]),i.createElementVNode("tbody",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.table.body,(o,s)=>(i.openBlock(),i.createElementBlock("tr",{key:`tr_${s}`,class:i.normalizeClass({"vue-ui-xy-table-tr-selected":a.selectedSerieIndex===s||a.selectedRowIndex===s}),onMouseover:l=>a.selectedRowIndex=s,onMouseleave:e[10]||(e[10]=l=>a.selectedRowIndex=null)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o,(l,c)=>(i.openBlock(),i.createElementBlock("td",{key:`td_${s}_${c}`,style:i.normalizeStyle(`background:${A.chartConfig.table.td.backgroundColor};color:${A.chartConfig.table.td.color};padding-right:6px;`)},i.toDisplayString(l),5))),128))],42,R7))),128))])])],2)):i.createCommentVNode("",!0)],12,eO)}const V7=Ba(JQ,[["render",H7],["__scopeId","data-v-bed55f69"]]),Foe="",$7={name:"vue-ui-table",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},data(){return{uid:`vue-ui-table-${Math.random()}`,defaultConfig:ia.vue_ui_table,bodyCopy:JSON.parse(JSON.stringify(this.dataset.body)).map((e,r)=>({...e,absoluteIndex:r})),buttonTimeout:null,canMoveChart:!1,chart:{height:316,type:"bar",width:512},constants:{ASC:1,BAR:"bar",DATE:"date",DESC:-1,DONUT:"donut",LINE:"line",NUMERIC:"numeric",PERCENTAGE:"percentage",TEXT:"text"},clientX:100,clientY:100,cssClass:{CELL:"smart-td-selected",FIRST_TD:"smart-td-selected-first",LAST_TD:"smart-td-selected-last",ROW:"smart-td-selected-neighbor"},currentDonut:void 0,currentFilter:void 0,currentSearch:void 0,currentSelectionSpan:{col:void 0,rows:[]},currentPage:0,dates:{},filteredDatesIndexes:{},hasNaN:{},iconColor:"#2D353C",iconSize:20,immutableRangeFilters:{},isExportRequest:!1,isLoading:!1,itemsPerPage:this.config.rowsPerPage?this.config.rowsPerPage:25,multiselects:{},paginatorOptions:[...new Set([10,25,50,100,250,500,this.config.rowsPerPage?this.config.rowsPerPage:25,this.dataset.body.length])].sort((e,r)=>e-r),palette:It,percentages:{},rafId:null,rangeFilters:{},searches:{},selectedColumn:void 0,selectedDonutCategory:void 0,selectedPlot:void 0,showChart:!1,showDonutOptions:!1,sorts:{},tableBody:JSON.parse(JSON.stringify(this.dataset.body)).map((e,r)=>({...e,absoluteIndex:r})),tableHead:JSON.parse(JSON.stringify(this.dataset.header)).map(e=>({average:Object.hasOwn(e,"average")?e.average:!1,decimals:Object.hasOwn(e,"decimals")?e.decimals:0,isMultiselect:Object.hasOwn(e,"isMultiselect")?e.isMultiselect:!1,isPercentage:Object.hasOwn(e,"isPercentage")?e.isPercentage:!1,isSearch:Object.hasOwn(e,"isSearch")?e.isSearch:!1,isSort:Object.hasOwn(e,"isSort")?e.isSort:!1,name:e.name,percentageTo:Object.hasOwn(e,"percentageTo")?e.percentageTo:void 0,prefix:Object.hasOwn(e,"prefix")?e.prefix:"",rangeFilter:Object.hasOwn(e,"rangeFilter")?e.rangeFilter:!1,suffix:Object.hasOwn(e,"suffix")?e.suffix:"",sum:Object.hasOwn(e,"sum")?e.sum:!1,type:e.type}))}},mounted(){if(this.dataset.header.length===0)throw new Error(`vue-ui-table error: missing header data.
361
- Provide an array of objects of type:
362
- {
363
- name: string;
364
- type: string; ('text' | 'numeric' | 'date')
365
- average: boolean;
366
- decimals: number | undefined;
367
- sum: boolean;
368
- isSort:boolean;
369
- isSearch: boolean;
370
- isMultiselect: boolean;
371
- isPercentage: boolean;
372
- percentageTo: string; (or '')
373
- }`);if(this.dataset.body.length===0)throw new Error("vue-ui-table error: missing body data");this.isLoading=!0,this.promiseWithAsyncFunction(this.prepareBodyCopy,()=>{this.$forceUpdate(),this.isLoading=!1}),document.addEventListener("keydown",t=>{const e=document.activeElement;(e&&Array.from(e.classList).includes("td-focusable")&&t.key.includes("Arrow")||t.code==="Space")&&t.preventDefault()})},watch:{showChart:function(t){t&&this.$nextTick(()=>{this.closeDragElement();const e=this.$refs.chartModal;e.onmousedown=this.dragMouseDown})}},computed:{availableDonutCategories(){return Object.keys(this.multiselects).map(t=>({index:t,name:this.dataset.header[t].name,options:this.multiselects[t]}))},canChart(){return this.tableConfig.useChart&&this.currentSelectionSpan.rows.length>1},chartData(){if(!this.canChart)return[];const t=316,e=512,r=this.currentSelectionSpan.rows.length,n=e/r,a=Math.max(...this.currentSelectionSpan.rows.map(h=>h.value)),A=Math.min(...this.currentSelectionSpan.rows.map(h=>h.value)),o=A>=0?0:Math.abs(A),s=a+o,l=a<0&&A<0,c=this.dataset.header[this.currentSelectionSpan.col].isPercentage,u=this.currentSelectionSpan.rows.map((h,d)=>({x:n*d+n/2,y:(1-(h.value+o)/s)*t,value:c?h.value*100:h.value,suffix:c?"%":this.dataset.header[this.currentSelectionSpan.col].suffix?this.dataset.header[this.currentSelectionSpan.col].suffix:"",prefix:this.dataset.header[this.currentSelectionSpan.col].prefix?this.dataset.header[this.currentSelectionSpan.col].prefix:"",index:h.index,absoluteValue:c?Math.abs(h.value)*100:Math.abs(h.value)})),p=t-t*(o/s);return{isAllNegative:l,zero:p,plots:u,slot:n,progression:u.length>=2?this.calcLinearProgression(u):!1}},donutHollowLabels(){return{total:Number((this.currentDonut.map(t=>t.absoluteValue).reduce((t,e)=>t+e,0)*(this.dataset.header[this.currentSelectionSpan.col].isPercentage?100:1)).toFixed(this.dataset.header[this.currentSelectionSpan.col].decimals)).toLocaleString(),average:Number((this.currentDonut.map(t=>t.absoluteValue).reduce((t,e)=>t+e,0)/this.currentSelectionSpan.rows.length*(this.dataset.header[this.currentSelectionSpan.col].isPercentage?100:1)).toFixed(this.dataset.header[this.currentSelectionSpan.col].decimals)).toLocaleString()}},hasNumericTypes(){return this.dataset.header.map(t=>t.type).includes(this.constants.NUMERIC)},icons(){return{arrowSort:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 9l4 -4l4 4m-4 -4v14" /><path d="M21 15l-4 4l-4 -4m4 4v-14" /></svg>`,bar:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 12m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" /><path d="M9 8m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" /><path d="M15 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" /><path d="M4 20l14 0" /></svg>`,chart:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 19l16 0" /><path d="M4 15l4 -6l4 2l4 -5l4 4" /></svg>`,chevronDown:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M6 9l6 6l6 -6" /></svg>`,chevronLeft:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize*1.6}" height="${this.iconSize*1.6}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 6l-6 6l6 6" /></svg>`,chevronRight:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize*1.6}" height="${this.iconSize*1.6}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 6l6 6l-6 6" /></svg>`,donut:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize*.8}" height="${this.iconSize*.8}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 3v5m4 4h5" /><path d="M8.929 14.582l-3.429 2.918" /><path d="M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0" /><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" /></svg>`,export:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12.5 21h-7.5a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v7.5" /><path d="M3 10h18" /><path d="M10 3v18" /><path d="M16 19h6" /><path d="M19 16l3 3l-3 3" /></svg>`,fileDownload:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M14 3v4a1 1 0 0 0 1 1h4" /><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z" /><path d="M12 17v-6" /><path d="M9.5 14.5l2.5 2.5l2.5 -2.5" /></svg>`,filter:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z" /></svg>`,move:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 9l3 3l-3 3" /><path d="M15 12h6" /><path d="M6 9l-3 3l3 3" /><path d="M3 12h6" /><path d="M9 18l3 3l3 -3" /><path d="M12 15v6" /><path d="M15 6l-3 -3l-3 3" /><path d="M12 3v6" /></svg>`,sort09:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 15l3 3l3 -3" /><path d="M7 6v12" /><path d="M17 3a2 2 0 0 1 2 2v3a2 2 0 1 1 -4 0v-3a2 2 0 0 1 2 -2z" /><path d="M17 16m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" /><path d="M19 16v3a2 2 0 0 1 -2 2h-1.5" /></svg>`,sort90:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 15l3 3l3 -3" /><path d="M7 6v12" /><path d="M17 14a2 2 0 0 1 2 2v3a2 2 0 1 1 -4 0v-3a2 2 0 0 1 2 -2z" /><path d="M17 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" /><path d="M19 5v3a2 2 0 0 1 -2 2h-1.5" /></svg>`,sortAZ:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 10v-5c0 -1.38 .62 -2 2 -2s2 .62 2 2v5m0 -3h-4" /><path d="M19 21h-4l4 -7h-4" /><path d="M4 15l3 3l3 -3" /><path d="M7 6v12" /></svg>`,sortZA:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 21v-5c0 -1.38 .62 -2 2 -2s2 .62 2 2v5m0 -3h-4" /><path d="M19 10h-4l4 -7h-4" /><path d="M4 15l3 3l3 -3" /><path d="M7 6v12" /></svg>`,sum:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>`,table:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" fill="white" d="M 10 2, 21 2, 21 21, 10 21Z"/><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z" /><path d="M3 10h18" /><path d="M10 3v18" /></svg>`,warning:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize*.8}" height="${this.iconSize*.8}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10.24 3.957l-8.422 14.06a1.989 1.989 0 0 0 1.7 2.983h16.845a1.989 1.989 0 0 0 1.7 -2.983l-8.423 -14.06a1.989 1.989 0 0 0 -3.4 0z" /><path d="M12 9v4" /><path d="M12 17h.01" /></svg>`}},pages(){const t=[];if(this.bodyCopy.length)for(let e=0;e<this.bodyCopy.length;e+=this.itemsPerPage)t.push(this.bodyCopy.slice(e,e+this.itemsPerPage));return t},rows(){return this.bodyCopy.map(t=>t.td)},selectedCellsCalculations(){return{sumPercentage:Number((this.currentSelectionSpan.rows.map(t=>t.value).reduce((t,e)=>t+e,0)*100).toFixed(this.dataset.header[this.currentSelectionSpan.col].decimals)).toLocaleString(),sumRegular:Number(this.currentSelectionSpan.rows.map(t=>t.value).reduce((t,e)=>t+e,0).toFixed(this.dataset.header[this.currentSelectionSpan.col].decimals)).toLocaleString(),averagePercentage:Number((this.currentSelectionSpan.rows.map(t=>t.value).reduce((t,e)=>t+e,0)/this.currentSelectionSpan.rows.length*100).toFixed(this.dataset.header[this.currentSelectionSpan.col].decimals)).toLocaleString(),averageRegular:Number((this.currentSelectionSpan.rows.map(t=>t.value).reduce((t,e)=>t+e,0)/this.currentSelectionSpan.rows.length).toFixed(this.dataset.header[this.currentSelectionSpan.col].decimals)).toLocaleString()}},tableConfig(){if(!Object.keys(this.config||{}).length)return this.defaultConfig;const t=this.treeShake({defaultConfig:this.defaultConfig,userConfig:this.config});return this.convertConfigColors(t)},visibleRows(){return this.pages[this.currentPage]}},methods:{treeShake:Wn,makeDonut:Gh,convertColorToHex:Nr,convertConfigColors:Xn,makeXls:ei,applyDonutOption(){const t=this.selectedDonutCategory.options.map((e,r)=>({name:e,color:this.palette[r]||this.palette[r%this.palette.length],value:this.visibleRows.filter((n,a)=>n.td[this.selectedDonutCategory.index]===e&&this.currentSelectionSpan.rows.map(A=>A.index).includes(a)).map(n=>n.td[this.currentSelectionSpan.col]).reduce((n,a)=>Math.abs(n)+Math.abs(a),0),absoluteValue:this.visibleRows.filter((n,a)=>n.td[this.selectedDonutCategory.index]===e&&this.currentSelectionSpan.rows.map(A=>A.index).includes(a)).map(n=>n.td[this.currentSelectionSpan.col]).reduce((n,a)=>n+a,0)})).sort((e,r)=>r.value-e.value);this.currentDonut=this.makeDonut({series:t},50,50,30,30),this.$nextTick(()=>{this.chart.type=this.constants.DONUT,this.showDonutOptions=!1})},calcRectY(t,e){return t>=0?e:this.chartData.zero},canResetColumn(t,e){return!this.hasNaN[t]&&(e.isSort||e.isSearch||e.isMultiselect||e.rangeFilter)&&![this.constants.DATE].includes(e.type)},createXls(t="all"){const e=this.dataset.header.map(a=>a.name),r=t==="all"?this.bodyCopy.map(a=>a.td):this.visibleRows.map(a=>a.td),n=[e].concat(r);this.makeXls(n,"vue-ui-table")},calcLinearProgression:ix,closeAllDropdowns(){const t=document.getElementsByClassName("th-dropdown");t.length&&Array.from(t).forEach(e=>{e.dataset.isOpen=!1})},debounce(t,e){let r;clearTimeout(r),r=setTimeout(t,e)},filterBody(){this.bodyCopy=this.tableBody.filter(t=>{for(const e in this.searches)if(!t.td[e].toUpperCase().includes(this.searches[e].toUpperCase()))return!1;for(const e in this.multiselects)if(!this.multiselects[e].some(n=>n===t.td[e]))return!1;for(const e in this.dates){const r=new Date(t.td[e]),n=new Date(this.dates[e].from),a=new Date(this.dates[e].to);if(r<n||r>a)return!1}return!0}),this.sortBody()},getAverage(t){return this.rows.map(e=>e[t]).map(e=>isNaN(Number(e))?0:e).reduce((e,r)=>e+r,0)/this.bodyCopy.length},getDatesRange(t){const e=this.dataset.body.map(h=>new Date(h.td[t])),r=new Date(Math.min(...e)),n=new Date(Math.max(...e)),a=r.getFullYear(),A=n.getFullYear(),o=String(r.getMonth()+1).padStart(2,"0"),s=String(n.getMonth()+1).padStart(2,"0"),l=String(r.getDate()).padStart(2,"0"),c=String(n.getDate()).padStart(2,"0"),u=`${a}-${o}-${l}`,p=`${A}-${s}-${c}`;return{from:u,to:p}},getDonutLegendValue(t){return Number((t*(this.dataset.header[this.currentSelectionSpan.col].isPercentage?100:1)).toFixed(this.dataset.header[this.currentSelectionSpan.col].decimals)).toLocaleString()},getDropdownOptions(t){return[...new Set(this.dataset.body.map(e=>e.td[t]))]},getSum(t){return this.rows.map(e=>e[t]).map(e=>isNaN(Number(e))?0:e).reduce((e,r)=>e+r,0)},includesNaN(t){return t.includes(NaN)},isDropdownOptionSelected(t,e){return this.multiselects[e]?this.multiselects[e].includes(t):!0},isNumeric(t){return!isNaN(Number(String(t).replaceAll("%","")))},isResetDisabled(t,e){const r=e.isSort,n=e.isSearch,a=e.isMultiselect&&this.multiselects[t],A=e.rangeFilter,o=s=>{if(A&&this.rangeFilters[s])return Math.round(this.rangeFilters[s].min)===this.immutableRangeFilters[s].min&&Math.round(this.rangeFilters[s].max)===this.immutableRangeFilters[s].max};if(r&&n&&a&&A)return["",void 0].includes(this.searches[t])&&[void 0].includes(this.sorts[t])&&this.multiselects[t].length===this.getDropdownOptions(t).length&&o(t);if(r&&n&&a)return["",void 0].includes(this.searches[t])&&[void 0].includes(this.sorts[t])&&this.multiselects[t].length===this.getDropdownOptions(t).length;if(r&&n&&A)return["",void 0].includes(this.searches[t])&&[void 0].includes(this.sorts[t])&&o(t);if(r&&n)return["",void 0].includes(this.searches[t])&&[void 0].includes(this.sorts[t]);if(r&&a&&A)return[void 0].includes(this.sorts[t])&&this.multiselects[t].length===this.getDropdownOptions(t).length&&o(t);if(r&&a)return[void 0].includes(this.sorts[t])&&this.multiselects[t].length===this.getDropdownOptions(t).length;if(n&&a&&A)return["",void 0].includes(this.searches[t])&&this.multiselects[t].length===this.getDropdownOptions(t).length&&o(t);if(n&&a)return["",void 0].includes(this.searches[t])&&this.multiselects[t].length===this.getDropdownOptions(t).length;if(n&&A)return["",void 0].includes(this.searches[t])&&o(t);if(n)return["",void 0].includes(this.searches[t]);if(r&&A)return[void 0].includes(this.sorts[t])&&o(t);if(r)return[void 0].includes(this.sorts[t]);if(a&&A)return this.multiselects[t].length===this.getDropdownOptions(t).length&&o(t);if(a)return this.multiselects[t].length===this.getDropdownOptions(t).length},navigate(t){this.resetSelection(),t==="next"&&this.currentPage<this.pages.length?this.currentPage+=1:t==="previous"&&this.currentPage>=1?this.currentPage-=1:this.currentPage=t-1,this.$refs.tableWrapper.scrollTo({top:0,left:0,behavior:"smooth"})},navigateCell(t){t.preventDefault();const e=t.keyCode,r=38,n=40,a=37,A=39;if(![r,n,a,A].includes(e))return;const o=t.target.id,s=/cell_(\d+)_(\d+)_vue-ui-table-(\d+)/,l=o.match(s),c=parseInt(l[1]),u=parseInt(l[2]),p=document.getElementById(`cell_${c}_${u+1}_${this.uid}`),h=document.getElementById(`cell_${c}_${u-1}_${this.uid}`),d=document.getElementById(`cell_${c+1}_${u}_${this.uid}`),w=document.getElementById(`cell_${c-1}_${u}_${this.uid}`);let f;switch(!0){case e===A:f=p;break;case e===a:f=h;break;case e===r:f=w;break;case e===n:f=d;break;default:return}f&&(f.focus(),f.scrollIntoView({behavior:"smooth",block:"center"}))},openDonutOptions(){this.selectedDonutCategory=this.availableDonutCategories[0],this.showDonutOptions=!0},placeLabelOnTopOrBottom({previousPlot:t,currentPlot:e,nextPlot:r}){const n=e.y-38,a=e.y+16;return t&&r?t.value<e.value&&r.value<e.value?n:t.value>e.value&&r.value>e.value?a:(t.value>e.value&&r.value<e.value||t.value<e.value&&r.value>e.value,n):t&&!r?t.value>e.value?a:n:!t&&r&&r.value>e.value?a:n},async prepareBodyCopy(){return new Promise(t=>{const e=[];this.tableHead.forEach((r,n)=>{if(r.isSearch&&Object.assign(this.searches,{[n]:""}),r.isMultiselect&&Object.assign(this.multiselects,{[n]:this.getDropdownOptions(n)}),r.type===this.constants.DATE&&(Object.assign(this.dates,{[n]:this.getDatesRange(n)}),Object.assign(this.filteredDatesIndexes,{[n]:!1})),(r.isPercentage||r.percentageTo)&&Object.assign(this.percentages,{[n]:{reference:r.percentageTo,referenceIndex:this.dataset.header.map(a=>a.name).indexOf(r.percentageTo)}}),r.rangeFilter&&(Object.assign(this.rangeFilters,{[n]:{min:Math.round(Math.min(...this.dataset.body.map(a=>a.td).map(a=>a[n]))),max:Math.round(Math.max(...this.dataset.body.map(a=>a.td).map(a=>a[n])))}}),Object.assign(this.immutableRangeFilters,{[n]:{min:Math.round(Math.min(...this.dataset.body.map(a=>a.td).map(a=>a[n]))),max:Math.round(Math.max(...this.dataset.body.map(a=>a.td).map(a=>a[n])))}})),r.isPercentage){const a=this.dataset.header.map(o=>o.name).indexOf(r.percentageTo),A=this.dataset.body.map(o=>o.td[a]).reduce((o,s)=>o+s,0);e.push([n,a,A])}r.type===this.constants.NUMERIC&&!r.isPercentage&&Object.assign(this.hasNaN,{[n]:this.includesNaN(this.dataset.body.map(a=>Number(a.td[n])))})}),this.bodyCopy.forEach((r,n)=>{e.map(a=>{const[A,o,s]=a;r.td[A]=r.td[o]/s}),r.td.forEach((a,A)=>{this.dataset.header[A].type===this.constants.TEXT&&this.dataset.header[A].isSearch&&(r[A]=this.stringToNumber(a)),this.dataset.header[A].type===this.constants.DATE&&(r[A]=new Date(a).getTime()),this.dataset.header[A].type===this.constants.NUMERIC&&(r[A]=isNaN(Number(a))?A:a),this.tableBody[n][A]=r[A]})}),t(!0)})},promiseWithAsyncFunction(t,e){return new Promise((r,n)=>{t().then(a=>{try{const A=e(a);r(A)}catch(A){n(A)}}).catch(a=>{n(a)})})},resetDates(t){this.dates[t]={from:this.getDatesRange(t).from,to:this.getDatesRange(t).to},this.filteredDatesIndexes[t]=!1,this.$forceUpdate(),this.filterBody()},resetFilter(t,e,r){const n=r.currentTarget;clearTimeout(this.buttonTimeout),n.classList.add("clicked"),this.buttonTimeout=setTimeout(()=>{n.classList.remove("clicked")},200),this.currentFilter=void 0,e.rangeFilter&&(this.rangeFilters[t].min=this.immutableRangeFilters[t].min,this.rangeFilters[t].max=this.immutableRangeFilters[t].max),e.isMultiselect?(this.multiselects[t]=this.getDropdownOptions(t),e.type===this.constants.TEXT&&(this.sorts[t]=void 0),e.isSearch&&(this.searches[t]="")):e.type===this.constants.NUMERIC?this.sorts[t]=void 0:e.type===this.constants.TEXT?(this.sorts[t]=void 0,this.searches[t]=""):e.type===this.constants.DATE&&(this.sorts[t]=void 0),this.filterBody()},resetSelection(){const t=document.getElementsByClassName(`tr_${this.uid}`);Array.from(t).forEach(e=>{Array.from(e.getElementsByTagName("td")).forEach(r=>{r.dataset.row==="even"?(r.style.background=this.tableConfig.style.rows.even.backgroundColor,r.style.color=this.tableConfig.style.rows.even.color):(r.style.background=this.tableConfig.style.rows.odd.backgroundColor,r.style.color=this.tableConfig.style.rows.odd.color)})}),Array.from(t).forEach(e=>e.dataset.selected="false"),this.currentPage>this.pages.length-1&&(this.currentPage=this.pages.length-1),this.showChart=!1,this.currentDonut=void 0,this.selectedColumn=void 0,this.chart.type=this.constants.BAR,this.currentSelectionSpan={col:void 0,rows:[]},this.clientX=100,this.clientY=100},selectColumn(t){this.currentSelectionSpan.col!==t?(this.visibleRows.forEach((e,r)=>{this.selectTd({td:e.td[t],rowIndex:r,colIndex:t,headerType:this.constants.NUMERIC,event:{currentTarget:document.getElementById(`cell_${r}_${t}_${this.uid}`)}})}),this.selectedColumn=t):(this.selectedColumn=void 0,this.resetSelection())},selectDropdownOption(t,e){this.multiselects[e].includes(t)?this.multiselects[e]=this.multiselects[e].filter(r=>r!==t):this.multiselects[e].push(t),this.$forceUpdate(),this.filterBody()},selectTd({td:t,rowIndex:e,colIndex:r,headerType:n,event:a}){if(n!==this.constants.NUMERIC||isNaN(Number(t))){this.resetSelection();return}this.currentSelectionSpan.col!==r&&this.resetSelection();const A=a.currentTarget.parentNode;this.currentSelectionSpan.col=r,this.currentSelectionSpan.rows.map(o=>o.index).includes(e)?(A.dataset.selected="false",this.currentSelectionSpan.rows=this.currentSelectionSpan.rows.filter(o=>o.index!==e),a.currentTarget.classList.remove(this.cssClass.CELL),Array.from(A.children).forEach((o,s)=>{o.dataset.row==="even"?(o.style.background=this.tableConfig.style.rows.even.backgroundColor,o.style.color=this.tableConfig.style.rows.even.olor):(o.style.background=this.tableConfig.style.rows.odd.backgroundColor,o.style.color=this.tableConfig.style.rows.odd.color)}),a.currentTarget.dataset.row==="even"?(a.currentTarget.style.background=this.tableConfig.style.rows.even.backgroundColor,a.currentTarget.style.color=this.tableConfig.style.rows.even.color):(a.currentTarget.style.background=this.tableConfig.style.rows.odd.backgroundColor,a.currentTarget.style.color=this.tableConfig.style.rows.odd.color)):(A.dataset.selected="true",this.currentSelectionSpan.rows.push({index:e,value:t}),Array.from(A.children).forEach((o,s)=>{o.dataset.row==="even"?(o.style.background=this.tableConfig.style.rows.even.selectedNeighbors.backgroundColor,o.style.color=this.tableConfig.style.rows.even.selectedNeighbors.color):(o.style.background=this.tableConfig.style.rows.odd.selectedNeighbors.backgroundColor,o.style.color=this.tableConfig.style.rows.odd.selectedNeighbors.color)}),a.currentTarget.dataset.row==="odd"?(a.currentTarget.style.background=this.tableConfig.style.rows.odd.selectedCell.backgroundColor,a.currentTarget.style.color=this.tableConfig.style.rows.odd.selectedCell.color):(a.currentTarget.style.background=this.tableConfig.style.rows.even.selectedCell.backgroundColor,a.currentTarget.style.color=this.tableConfig.style.rows.even.selectedCell.color)),this.currentSelectionSpan.rows=this.currentSelectionSpan.rows.sort((o,s)=>o.index-s.index),this.chart.type===this.constants.DONUT&&this.currentSelectionSpan.rows.length>0&&this.applyDonutOption()},setFilterDatesIndexes(t){this.filteredDatesIndexes[t]=!(this.getDatesRange(t).from===this.dates[t].from&&this.getDatesRange(t).to===this.dates[t].to)},sortBody(){this.resetSelection(),Object.keys(this.rangeFilters).forEach(t=>{this.filterByRange(this.bodyCopy,t)}),Object.keys(this.sorts).forEach(t=>{this.sortByNumber(this.bodyCopy,t)}),this.currentFilter!==void 0&&this.sortByNumber(this.bodyCopy,this.currentFilter),this.dataset.header.forEach((t,e)=>{if(t.isPercentage){const r=this.percentages[e].referenceIndex,n=this.bodyCopy.map(a=>a.td[r]).reduce((a,A)=>a+A,0);this.bodyCopy.forEach(a=>{a.td[e]=a.td[r]/n})}}),this.currentPage>this.pages.length-1&&(this.currentPage=this.pages.length-1),[-1].includes(this.currentPage)&&(this.currentPage=0),this.$forceUpdate()},filterByRange(t,e){this.bodyCopy=t.filter(r=>r.td[e]>=this.rangeFilters[e].min&&r[e]<=this.rangeFilters[e].max)},sortByNumber(t,e){if(this.sorts[e]===this.constants.ASC&&(t=t.sort((r,n)=>r[e]-n[e])),this.sorts[e]===this.constants.DESC)t=t.sort((r,n)=>n[e]-r[e]);else return 0},sortTh(t,e){this.currentFilter=t;const r=e.currentTarget;clearTimeout(this.buttonTimeout),r.classList.add("clicked"),this.buttonTimeout=setTimeout(()=>{r.classList.remove("clicked")},200),this.sorts[t]===1?this.sorts[t]=this.constants.DESC:this.sorts[t]=this.constants.ASC,this.sortBody()},stringToNumber(t){let e=0;for(let r=0;r<t.length;r+=1)e+=t.charCodeAt(r);return e},toggleMultiselect(t,e,r){const n=r.currentTarget;clearTimeout(this.buttonTimeout),n.classList.add("clicked"),this.buttonTimeout=setTimeout(()=>{n.classList.remove("clicked")},200);const a=document.getElementById(`th_dropdown_${t}`);a.dataset.isOpen==="false"?a.dataset.isOpen="true":a.dataset.isOpen="false"},updateCurrentPage(t){this.resetSelection(),this.currentPage=Number(t.target.value)},calcDonutMarkerConnectorColor(t){return t.proportion*100>3?t.color:"transparent"},calcDonutMarkerLabelPositionX(t){return t.center.endX+this.calcMarkerOffset(t,50)},calcMarkerOffset(t,e){return t.center.endX-e>=0?3:-2},displayArcPercentage(t,e){return isNaN(t.value/this.sumValues(e))?0:(t.value/this.sumValues(e)*100).toFixed(0)+"%"},isArcBigEnough(t){return t.proportion*100>3},sumValues(t){return[...t].map(e=>e.value).reduce((e,r)=>e+r,0)},closeDragElement(){document.onmouseup=null,document.onmousemove=null},dragMouseDown(t){t=t||window.event,t.preventDefault(),document.onmouseup=this.closeDragElement,document.onmousemove=this.elementDrag},elementDrag(t){this.rafId||(this.rafId=window.requestAnimationFrame(()=>this.onElementDrag(t)))},onElementDrag(t){t=t||window.event,t.preventDefault();const r=this.$refs.chartModal.getBoundingClientRect();this.clientX=t.clientX-r.width/2,this.clientY=t.clientY-r.height/2,this.rafId=null}}},rA=t=>(i.pushScopeId("data-v-51d6490e"),t=t(),i.popScopeId(),t),z7={class:"vue-ui-table-export-hub"},K7=["innerHTML"],G7=["data-is-open"],j7=rA(()=>i.createElementVNode("b",{class:"vue-ui-table-export-hub-title"}," Export ",-1)),W7={class:"vue-ui-table-export-hub-options"},X7={class:"vue-ui-table-export-hub-option-wrapper"},q7={class:"label"},Y7=["innerHTML"],J7={class:"vue-ui-table-export-hub-option-wrapper"},Z7={class:"label"},eP=["innerHTML"],tP={class:"vue-ui-table"},rP={id:"tableHead"},nP=rA(()=>i.createElementVNode("th",{class:"invisible-cell"},null,-1)),aP={key:0},AP={key:0},iP={key:1},oP=rA(()=>i.createElementVNode("th",{class:"invisible-cell"},null,-1)),sP={key:0,style:{display:"flex","align-items":"center","justify-content":"flex-end"}},lP=["innerHTML"],cP={key:0,style:{"margin-left":"3px"}},uP=rA(()=>i.createElementVNode("th",{class:"invisible-cell"},null,-1)),hP={key:0},fP=rA(()=>i.createElementVNode("th",{class:"invisible-cell"},null,-1)),dP={class:"th-filter"},gP={key:0,class:"th-date"},pP={class:"date-wrapper--inputs"},mP={class:"date-fieldset"},yP=["for"],vP=["id","onUpdate:modelValue","onInput"],wP={class:"date-fieldset"},BP=["for"],xP=["id","onUpdate:modelValue","onInput"],bP={class:"date-wrapper--button"},CP=["onClick"],EP=["innerHTML"],_P=["innerHTML"],FP=["innerHTML"],SP=["onClick","disabled"],kP=["placeholder","onUpdate:modelValue","name"],TP=["onClick"],NP=["innerHTML"],LP=["innerHTML"],UP=["innerHTML"],IP=["onClick","innerHTML"],DP=["innerHTML"],QP={key:5,class:"th-range-filter"},OP=["for"],PP=rA(()=>i.createElementVNode("span",{style:{color:"grey"}},"ᒥ",-1)),MP=rA(()=>i.createElementVNode("span",{style:{color:"grey"}},"ᒣ",-1)),RP=["id","max","min","onUpdate:modelValue"],HP=["id","max","min","onUpdate:modelValue"],VP=["for"],$P=rA(()=>i.createElementVNode("span",{style:{color:"grey"}},"ᒪ",-1)),zP=rA(()=>i.createElementVNode("span",{style:{color:"grey"}},"ᒧ",-1)),KP=["onClick","disabled"],GP=["id"],jP=["onClick"],WP=["onClick","onKeyup"],XP=rA(()=>i.createElementVNode("th",{class:"invisible-cell"},null,-1)),qP=["innerHTML","onClick","onKeyup"],YP=["data-row"],JP=["data-row"],ZP=["data-row","onClick","onKeyup","id"],eM=["innerHTML"],tM={key:1},rM={key:2},nM={key:5},aM=["innerHTML"],AM={key:0},iM={style:{"margin-left":"12px"}},oM={class:"format-num"},sM={style:{"margin-left":"12px"}},lM={key:0,class:"format-num"},cM={key:1,class:"format-num"},uM={key:2},hM={style:{"margin-left":"12px"}},fM={key:0,class:"format-num"},dM={key:1,class:"format-num"},gM={key:2},pM={key:0,class:"vue-ui-table-paginator format-num"},mM={key:1,class:"vue-ui-table-size-warning"},yM=["innerHTML"],vM={key:3,class:"vue-ui-table-pagination format-num"},wM=["innerHTML","disabled"],BM=["disabled"],xM={key:0,class:"vue-ui-table-page-scroller-wrapper"},bM={for:"pageScroller",style:{"font-size":"14px"}},CM=["max","value"],EM={key:1},_M=["disabled"],FM=["innerHTML","disabled"],SM={class:"chart-modal-options"},kM=["innerHTML"],TM=["innerHTML"],NM=["innerHTML"],LM={style:{"margin-bottom":"12px"}},UM={key:0},IM={key:1},DM={style:{width:"100%",height:"fit-content",cursor:"move"},ref:"chartModal"},QM={class:"vue-ui-table-fieldset"},OM={class:"vue-ui-table-fieldset-wrapper"},PM=["name","id","checked","onInput"],MM=["for"],RM=["disabled"],HM=["innerHTML"],VM=["viewBox"],$M=["markerWidth","markerHeight","refY"],zM=["points","fill"],KM=["x2","y1","y2","stroke","stroke-width"],GM=["y2","stroke","stroke-width"],jM=["x","width","height","fill"],WM=i.createStaticVNode('<linearGradient id="barGradientSelected" x2="0%" y2="100%" data-v-51d6490e><stop offset="0.2" stop-color="#6376DD" data-v-51d6490e></stop><stop offset="1" stop-color="#6376DD80" data-v-51d6490e></stop></linearGradient><linearGradient id="barGradientSelectedNeg" x2="0%" y2="100%" data-v-51d6490e><stop offset="0.2" stop-color="#6376DD80" data-v-51d6490e></stop><stop offset="1" stop-color="#6376DD" data-v-51d6490e></stop></linearGradient><linearGradient id="barGradient" x2="0%" y2="100%" data-v-51d6490e><stop offset="0.2" stop-color="#6376DDB3" data-v-51d6490e></stop><stop offset="1" stop-color="#6376DD66" data-v-51d6490e></stop></linearGradient><linearGradient id="barGradientNeg" x2="0%" y2="100%" data-v-51d6490e><stop offset="0.2" stop-color="#6376DD66" data-v-51d6490e></stop><stop offset="1" stop-color="#6376DDB3" data-v-51d6490e></stop></linearGradient>',4),XM=["x","y","height","width","fill","stroke"],qM=["x","y","width"],YM=["x1","y1","x2","y2","stroke-width","stroke"],JM=["x1","y1","x2","y2","stroke","stroke-width","stroke-dasharray"],ZM=["cx","cy","r","fill","stroke","stroke-width"],eR=["x","y","width"],tR=["x","width","height","onMouseenter"],rR=["x1","y1","x2","y2","stroke","stroke-width","stroke-dasharray"],nR=rA(()=>i.createElementVNode("span",null,"---",-1)),aR=["d","stroke"],AR=["x","y"],iR={class:"vue-ui-table-donut-label-name"},oR=["fill"],sR=["fill"],lR=["fill"],cR=["fill"],uR={class:"vue-ui-table-donut-legend"};function hR(t,e,r,n,a,A){return i.openBlock(),i.createElementBlock("div",{class:"vue-ui-table-main",style:i.normalizeStyle(`font-family: ${A.tableConfig.fontFamily}`)},[i.createElementVNode("div",z7,[i.createElementVNode("button",{onClick:e[0]||(e[0]=o=>a.isExportRequest=!a.isExportRequest),innerHTML:A.icons.export,style:i.normalizeStyle(`background:${A.tableConfig.style.exportMenu.backgroundColor};color:${A.tableConfig.style.exportMenu.color}`)},null,12,K7),i.createElementVNode("div",{class:"vue-ui-table-export-hub-dropdown","data-is-open":a.isExportRequest||"false",style:i.normalizeStyle(`background:${A.tableConfig.style.exportMenu.backgroundColor};color:${A.tableConfig.style.exportMenu.color}`)},[j7,i.createElementVNode("button",{class:"close-dropdown",onClick:e[1]||(e[1]=o=>a.isExportRequest=!1),style:i.normalizeStyle(`background:${A.tableConfig.style.closeButtons.backgroundColor};color:${A.tableConfig.style.closeButtons.color};border-radius:${A.tableConfig.style.closeButtons.borderRadius}`)}," ✖ ",4),i.createElementVNode("div",W7,[i.createElementVNode("div",X7,[i.createElementVNode("div",q7,i.toDisplayString(A.tableConfig.translations.exportAllLabel)+" ("+i.toDisplayString(a.bodyCopy.length)+") ",1),i.createElementVNode("button",{id:"exportAll",onClick:e[2]||(e[2]=o=>A.createXls("all")),style:i.normalizeStyle(`background:${A.tableConfig.style.exportMenu.buttons.backgroundColor};color:${A.tableConfig.style.exportMenu.buttons.color}`)},[i.createElementVNode("div",{innerHTML:A.icons.fileDownload},null,8,Y7),i.createElementVNode("span",null,i.toDisplayString(A.tableConfig.translations.exportAllButton),1)],4)]),i.createElementVNode("div",J7,[i.createElementVNode("div",Z7,i.toDisplayString(A.tableConfig.translations.exportPageLabel),1),i.createElementVNode("button",{id:"exportPage",onClick:e[3]||(e[3]=o=>A.createXls("page")),style:i.normalizeStyle(`background:${A.tableConfig.style.exportMenu.buttons.backgroundColor};color:${A.tableConfig.style.exportMenu.buttons.color}`)},[i.createElementVNode("div",{innerHTML:A.icons.fileDownload},null,8,eP),i.createElementVNode("span",null,i.toDisplayString(A.tableConfig.translations.exportPageButton),1)],4)])])],12,G7)]),i.createElementVNode("div",{class:"vue-ui-table__wrapper",style:i.normalizeStyle(`max-height:${A.tableConfig.maxHeight}px`),ref:"tableWrapper"},[i.createElementVNode("table",tP,[i.createElementVNode("thead",rP,[i.createElementVNode("tr",null,[nP,(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.tableHead,(o,s)=>(i.openBlock(),i.createElementBlock("th",{key:`thead_${s}`,style:i.normalizeStyle(`overflow: visible;background:${A.tableConfig.style.th.backgroundColor};color:${A.tableConfig.style.th.color};outline:${A.tableConfig.style.th.outline}`),class:i.normalizeClass({"th-has-nan":a.hasNaN[s]})},[A.hasNumericTypes&&([a.constants.TEXT,a.constants.DATE].includes(o.type)||o.isPercentage)?(i.openBlock(),i.createElementBlock("span",aP,[i.createTextVNode(i.toDisplayString(o.name)+" ",1),o.isPercentage?(i.openBlock(),i.createElementBlock("span",AP," / "+i.toDisplayString(o.percentageTo),1)):i.createCommentVNode("",!0)])):(i.openBlock(),i.createElementBlock("span",iP,i.toDisplayString(o.name),1))],6))),128))]),A.hasNumericTypes?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("tr",null,[oP,(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.tableHead,(o,s)=>(i.openBlock(),i.createElementBlock("th",{key:`thead_${s}`,class:i.normalizeClass({"th-numeric":!0,"th-has-nan":a.hasNaN[s]}),style:i.normalizeStyle(`background:${A.tableConfig.style.th.backgroundColor};color:${A.tableConfig.style.th.color};outline:${A.tableConfig.style.th.outline}`)},[o.sum&&!a.hasNaN[s]?(i.openBlock(),i.createElementBlock("span",sP,[i.createElementVNode("span",{innerHTML:A.icons.sum,style:{"margin-bottom":"-4px","margin-right":"3px"}},null,8,lP),i.createTextVNode(" "+i.toDisplayString(o.prefix)+" "+i.toDisplayString(Number(A.getSum(s).toFixed(o.decimals)).toLocaleString())+" "+i.toDisplayString(o.suffix)+" ",1),a.percentages[s]&&o.percentageTo&&!o.isPercentage?(i.openBlock(),i.createElementBlock("span",cP," ("+i.toDisplayString(isNaN(A.getSum(s)/A.getSum(a.percentages[s].referenceIndex))?"-":(A.getSum(s)/A.getSum(a.percentages[s].referenceIndex)*100).toFixed(o.decimals))+"%) ",1)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)],6))),128))]),i.createElementVNode("tr",null,[uP,(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.tableHead,(o,s)=>(i.openBlock(),i.createElementBlock("th",{key:`thead_${s}`,class:i.normalizeClass({"th-numeric":!0,"th-has-nan":a.hasNaN[s]}),style:i.normalizeStyle(`background:${A.tableConfig.style.th.backgroundColor};color:${A.tableConfig.style.th.color};outline:${A.tableConfig.style.th.outline}`)},[o.average&&!a.hasNaN[s]?(i.openBlock(),i.createElementBlock("span",hP," ~ "+i.toDisplayString(o.prefix)+" "+i.toDisplayString(isNaN(A.getAverage(s))?"":Number(A.getAverage(s).toFixed(o.decimals)).toLocaleString())+" "+i.toDisplayString(o.suffix),1)):i.createCommentVNode("",!0)],6))),128))]),i.createElementVNode("tr",null,[fP,(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.tableHead,(o,s)=>(i.openBlock(),i.createElementBlock("th",{key:`thead_${s}`,class:i.normalizeClass({"th-has-nan":a.hasNaN[s]}),style:i.normalizeStyle(`background:${A.tableConfig.style.th.backgroundColor};color:${A.tableConfig.style.th.color};outline:${A.tableConfig.style.th.outline}`)},[i.createElementVNode("div",dP,[o.type===a.constants.DATE&&a.dates[s]?(i.openBlock(),i.createElementBlock("div",gP,[i.createElementVNode("div",pP,[i.createElementVNode("div",mP,[i.createElementVNode("label",{for:`from_${s}`},i.toDisplayString(A.tableConfig.translations.from),9,yP),i.withDirectives(i.createElementVNode("input",{id:`from_${s}`,type:"date","onUpdate:modelValue":l=>a.dates[s].from=l,onInput:l=>{A.filterBody(),A.setFilterDatesIndexes(s)},style:i.normalizeStyle(`background:${A.tableConfig.style.inputs.backgroundColor};color:${A.tableConfig.style.inputs.color};border:${A.tableConfig.style.inputs.border}`)},null,44,vP),[[i.vModelText,a.dates[s].from]])]),i.createElementVNode("div",wP,[i.createElementVNode("label",{for:`to_${s}`},i.toDisplayString(A.tableConfig.translations.to),9,BP),i.withDirectives(i.createElementVNode("input",{id:`to_${s}`,type:"date","onUpdate:modelValue":l=>a.dates[s].to=l,onInput:l=>{A.filterBody(),A.setFilterDatesIndexes(s)},style:i.normalizeStyle(`background:${A.tableConfig.style.inputs.backgroundColor};color:${A.tableConfig.style.inputs.color};border:${A.tableConfig.style.inputs.border}`)},null,44,xP),[[i.vModelText,a.dates[s].to]])])]),i.createElementVNode("div",bP,[o.isSort?(i.openBlock(),i.createElementBlock("button",{key:0,onClick:l=>A.sortTh(s,l),class:i.normalizeClass({"th-button-active":[a.constants.DESC,a.constants.ASC].includes(a.sorts[s])}),style:i.normalizeStyle(`background:${[a.constants.DESC,a.constants.ASC].includes(a.sorts[s])?"":A.tableConfig.style.pagination.buttons.backgroundColor};color:${[a.constants.DESC,a.constants.ASC].includes(a.sorts[s])?"":A.tableConfig.style.pagination.buttons.color}`)},[a.sorts[s]===a.constants.ASC?(i.openBlock(),i.createElementBlock("span",{key:0,innerHTML:[a.constants.DATE].includes(o.type)?A.icons.sort09:A.icons.sortAZ},null,8,EP)):a.sorts[s]===a.constants.DESC?(i.openBlock(),i.createElementBlock("span",{key:1,innerHTML:[a.constants.DATE].includes(o.type)?A.icons.sort90:A.icons.sortZA},null,8,_P)):(i.openBlock(),i.createElementBlock("span",{key:2,innerHTML:A.icons.arrowSort},null,8,FP))],14,CP)):i.createCommentVNode("",!0),i.createElementVNode("button",{onClick:l=>{A.resetDates(s),A.resetFilter(s,o,l)},disabled:!a.filteredDatesIndexes[s]&&A.isResetDisabled(s,o),class:"th-reset"}," ✖ ",8,SP)])])):i.createCommentVNode("",!0),o.isSearch?i.withDirectives((i.openBlock(),i.createElementBlock("input",{key:1,placeholder:A.tableConfig.translations.inputPlaceholder,"onUpdate:modelValue":l=>a.searches[s]=l,onInput:e[4]||(e[4]=l=>A.debounce(A.filterBody,400)),name:`search_${s}`,style:i.normalizeStyle(`background:${A.tableConfig.style.inputs.backgroundColor};color:${A.tableConfig.style.inputs.color};border:${A.tableConfig.style.inputs.border}`)},null,44,kP)),[[i.vModelText,a.searches[s]]]):i.createCommentVNode("",!0),!a.hasNaN[s]&&o.isSort&&o.type!==a.constants.DATE?(i.openBlock(),i.createElementBlock("button",{key:2,onClick:l=>A.sortTh(s,l),class:i.normalizeClass({"th-button-active":[a.constants.DESC,a.constants.ASC].includes(a.sorts[s])}),style:i.normalizeStyle(`background:${[a.constants.DESC,a.constants.ASC].includes(a.sorts[s])?"":A.tableConfig.style.pagination.buttons.backgroundColor};color:${[a.constants.DESC,a.constants.ASC].includes(a.sorts[s])?"":A.tableConfig.style.pagination.buttons.color}`)},[a.sorts[s]===a.constants.ASC?(i.openBlock(),i.createElementBlock("span",{key:0,innerHTML:[a.constants.NUMERIC].includes(o.type)?A.icons.sort09:A.icons.sortZA},null,8,NP)):a.sorts[s]===a.constants.DESC?(i.openBlock(),i.createElementBlock("span",{key:1,innerHTML:[a.constants.NUMERIC].includes(o.type)?A.icons.sort90:A.icons.sortAZ},null,8,LP)):(i.openBlock(),i.createElementBlock("span",{key:2,innerHTML:A.icons.arrowSort},null,8,UP))],14,TP)):i.createCommentVNode("",!0),o.isMultiselect?(i.openBlock(),i.createElementBlock("button",{key:3,onClick:l=>A.toggleMultiselect(s,o,l),innerHTML:A.icons.filter,class:i.normalizeClass({"th-button-active":a.multiselects[s]&&a.multiselects[s].length!==A.getDropdownOptions(s).length}),style:i.normalizeStyle(`background:${a.multiselects[s]&&a.multiselects[s].length!==A.getDropdownOptions(s).length?"":A.tableConfig.style.pagination.buttons.backgroundColor};color:${a.multiselects[s]&&a.multiselects[s].length!==A.getDropdownOptions(s).length?"":A.tableConfig.style.pagination.buttons.color}`)},null,14,IP)):i.createCommentVNode("",!0),a.currentSelectionSpan.col===s&&A.canChart?(i.openBlock(),i.createElementBlock("button",{key:4,onClick:e[5]||(e[5]=l=>a.showChart=!a.showChart),innerHTML:A.icons.chart,class:i.normalizeClass({"th-button-active":a.showChart}),style:i.normalizeStyle(`background:${a.showChart?"":A.tableConfig.style.pagination.buttons.backgroundColor};color:${a.showChart?"":A.tableConfig.style.pagination.buttons.color}`)},null,14,DP)):i.createCommentVNode("",!0),o.rangeFilter&&a.rangeFilters[s]&&!a.hasNaN[s]?(i.openBlock(),i.createElementBlock("div",QP,[i.createElementVNode("label",{for:`rangeMin${s}`},[PP,i.createTextVNode(" min "),MP],8,OP),i.withDirectives(i.createElementVNode("input",{type:"number",id:`rangeMin${s}`,max:a.immutableRangeFilters[s].max,min:a.immutableRangeFilters[s].min,"onUpdate:modelValue":l=>a.rangeFilters[s].min=l,onInput:e[6]||(e[6]=l=>A.debounce(A.filterBody,400)),style:i.normalizeStyle(`background:${A.tableConfig.style.inputs.backgroundColor};color:${A.tableConfig.style.inputs.color};border:${A.tableConfig.style.inputs.border}`)},null,44,RP),[[i.vModelText,a.rangeFilters[s].min,void 0,{number:!0}]]),i.withDirectives(i.createElementVNode("input",{type:"number",id:`rangeMax${s}`,max:a.immutableRangeFilters[s].max,min:a.immutableRangeFilters[s].min,"onUpdate:modelValue":l=>a.rangeFilters[s].max=l,onInput:e[7]||(e[7]=l=>A.debounce(A.filterBody,400)),style:i.normalizeStyle(`background:${A.tableConfig.style.inputs.backgroundColor};color:${A.tableConfig.style.inputs.color};border:${A.tableConfig.style.inputs.border}`)},null,44,HP),[[i.vModelText,a.rangeFilters[s].max,void 0,{number:!0}]]),i.createElementVNode("label",{for:`rangeMax${s}`},[$P,i.createTextVNode(" max "),zP],8,VP)])):i.createCommentVNode("",!0),A.canResetColumn(s,o)?(i.openBlock(),i.createElementBlock("button",{key:6,onClick:l=>A.resetFilter(s,o,l),disabled:A.isResetDisabled(s,o),class:"th-reset"}," ✖ ",8,KP)):i.createCommentVNode("",!0),o.isMultiselect?(i.openBlock(),i.createElementBlock("div",{key:7,class:"th-dropdown","data-is-open":"false",id:`th_dropdown_${s}`,style:i.normalizeStyle(`background:${A.tableConfig.style.dropdowns.backgroundColor};color:${A.tableConfig.style.dropdowns.color}`)},[i.createElementVNode("button",{class:"close-dropdown",onClick:l=>A.toggleMultiselect(s,o,l),style:i.normalizeStyle(`background:${A.tableConfig.style.closeButtons.backgroundColor};color:${A.tableConfig.style.closeButtons.color}`)}," ✖ ",12,jP),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.getDropdownOptions(s),(l,c)=>(i.openBlock(),i.createElementBlock("span",{class:"th-option",key:`th_option_${s}_${c}`,onClick:u=>A.selectDropdownOption(l,s),onKeyup:[i.withKeys(u=>A.selectDropdownOption(l,s),["enter"]),i.withKeys(u=>A.selectDropdownOption(l,s),["space"])],style:i.normalizeStyle(`opacity:${A.isDropdownOptionSelected(l,s)?1:.5}`),tabindex:"0"},[A.isDropdownOptionSelected(l,s)?(i.openBlock(),i.createElementBlock("span",{key:0,style:i.normalizeStyle(`color:${A.tableConfig.style.dropdowns.icons.selected.color};margin-right:5px`),class:"th-icon-green"},i.toDisplayString(A.tableConfig.style.dropdowns.icons.selected.unicode),5)):(i.openBlock(),i.createElementBlock("span",{key:1,style:i.normalizeStyle(`color:${A.tableConfig.style.dropdowns.icons.unselected.color};margin-right:5px`),class:"th-icon-red"},i.toDisplayString(A.tableConfig.style.dropdowns.icons.unselected.unicode),5)),i.createElementVNode("span",null,i.toDisplayString(l),1)],44,WP))),128))],12,GP)):i.createCommentVNode("",!0)])],6))),128))])],64)):i.createCommentVNode("",!0),i.createElementVNode("tr",null,[XP,(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.tableHead,(o,s)=>(i.openBlock(),i.createElementBlock("th",{key:`col_selector_${s}`,class:i.normalizeClass({"vue-ui-table-col-selector":!a.hasNaN[s],"th-has-nan":a.hasNaN[s]}),style:i.normalizeStyle(`background:${s===a.selectedColumn&&!a.hasNaN[s]?A.tableConfig.style.th.selected.backgroundColor:A.tableConfig.style.th.backgroundColor};color:${s===a.selectedColumn&&!a.hasNaN[s]?A.tableConfig.style.th.selected.color:A.tableConfig.style.th.color};outline:${A.tableConfig.style.th.outline}`)},[a.hasNaN[s]?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,innerHTML:a.tableHead[s].type===a.constants.NUMERIC?A.icons.chevronDown:"",class:i.normalizeClass({"col-selector":a.tableHead[s].type===a.constants.NUMERIC}),tabindex:"0",onClick:i.withModifiers(l=>A.selectColumn(s),["stop"]),onKeyup:i.withKeys(l=>A.selectColumn(s),["enter"])},null,42,qP))],6))),128))])]),i.createElementVNode("tbody",{onClick:e[8]||(e[8]=(...o)=>A.closeAllDropdowns&&A.closeAllDropdowns(...o)),onKeydown:e[9]||(e[9]=o=>A.navigateCell(o))},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.visibleRows,(o,s)=>(i.openBlock(),i.createElementBlock("tr",{key:`tbody_${s}`,"data-row":s%2===0?"odd":"even",class:i.normalizeClass(`tr_${a.uid}`),style:i.normalizeStyle(`${s%2===0?`background:${A.tableConfig.style.rows.odd.backgroundColor};color:${A.tableConfig.style.rows.odd.color}`:`background:${A.tableConfig.style.rows.even.backgroundColor};color:${A.tableConfig.style.rows.even.color}`}`)},[i.createElementVNode("td",{class:"vue-ui-table-td-iteration","data-row":s%2===0?"odd":"even"},i.toDisplayString(o.absoluteIndex+1),9,JP),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.td,(l,c)=>(i.openBlock(),i.createElementBlock("td",{"data-row":s%2===0?"odd":"even",key:`td_${s}_${c}`,style:i.normalizeStyle(A.isNumeric(l)||r.dataset.header[c].type===a.constants.DATE?"text-align:right;font-variant-numeric: tabular-nums;":""),onClick:u=>A.selectTd({td:l,rowIndex:s,colIndex:c,headerType:r.dataset.header[c].type,event:u}),onKeyup:[i.withKeys(u=>A.selectTd({td:l,rowIndex:s,colIndex:c,headerType:r.dataset.header[c].type,event:u}),["enter"]),i.withKeys(u=>A.selectTd({td:l,rowIndex:s,colIndex:c,headerType:r.dataset.header[c].type,event:u}),["space"])],class:i.normalizeClass({"td-numeric":r.dataset.header[c].type===a.constants.NUMERIC,"td-focusable":!0,"td-has-nan":a.hasNaN[c]}),id:`cell_${s}_${c}_${a.uid}`,tabindex:"0"},[o.meta&&o.meta.markerIndices.includes(c)&&o.meta.unicodeIcon?(i.openBlock(),i.createElementBlock("span",{key:0,style:i.normalizeStyle(`color:${o.meta.color};margin-right:3px`),innerHTML:o.meta.unicodeIcon},null,12,eM)):i.createCommentVNode("",!0),r.dataset.header[c].type===a.constants.DATE?(i.openBlock(),i.createElementBlock("span",tM,i.toDisplayString(r.dataset.header[c].prefix)+" "+i.toDisplayString(new Date(l).toLocaleString().slice(0,10))+" "+i.toDisplayString(r.dataset.header[c].suffix),1)):r.dataset.header[c].isPercentage?(i.openBlock(),i.createElementBlock("span",rM,i.toDisplayString(Number((l*100).toFixed(r.dataset.header[c].decimals)).toLocaleString())+"% ",1)):a.percentages[c]&&r.dataset.header[c].percentageTo&&!r.dataset.header[c].isPercentage?(i.openBlock(),i.createElementBlock("span",{key:3,class:i.normalizeClass({"td-nan":isNaN(Number(l))})},i.toDisplayString(r.dataset.header[c].prefix)+" "+i.toDisplayString(isNaN(Number(l))?`${l} is not ${a.constants.NUMERIC}`:Number(l.toFixed(r.dataset.header[c].decimals)).toLocaleString())+" "+i.toDisplayString(r.dataset.header[c].suffix)+" ("+i.toDisplayString(isNaN(Number(l))?"":Number((l/A.getSum(a.percentages[c].referenceIndex)*100).toFixed(r.dataset.header[c].decimals)).toLocaleString())+"%) ",3)):r.dataset.header[c].type===a.constants.NUMERIC?(i.openBlock(),i.createElementBlock("span",{key:4,class:i.normalizeClass({"td-nan":isNaN(Number(l))})},i.toDisplayString(r.dataset.header[c].prefix)+" "+i.toDisplayString(isNaN(Number(l))?`${l} is not ${a.constants.NUMERIC}`:Number(l.toFixed(r.dataset.header[c].decimals)).toLocaleString())+" "+i.toDisplayString(r.dataset.header[c].suffix),3)):(i.openBlock(),i.createElementBlock("span",nM,i.toDisplayString(r.dataset.header[c].prefix)+" "+i.toDisplayString(l)+" "+i.toDisplayString(r.dataset.header[c].suffix),1))],46,ZP))),128))],14,YP))),128))],32)])],4),i.createElementVNode("div",{class:i.normalizeClass({"td-selector-info":!0,"td-selector-info--active":a.currentSelectionSpan.col!==void 0&&a.currentSelectionSpan.rows.length}),style:i.normalizeStyle(`background:${A.tableConfig.style.infoBar.backgroundColor};color:${A.tableConfig.style.infoBar.color}`)},[a.currentSelectionSpan.col!==void 0&&a.currentSelectionSpan.rows.length?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",{innerHTML:A.icons.table,class:"td-selector-icon"},null,8,aM),i.createElementVNode("span",null,[i.createElementVNode("b",null,[i.createTextVNode(i.toDisplayString(r.dataset.header[a.currentSelectionSpan.col].name)+" ",1),r.dataset.header[a.currentSelectionSpan.col].isPercentage?(i.openBlock(),i.createElementBlock("span",AM," / "+i.toDisplayString(r.dataset.header[a.percentages[a.currentSelectionSpan.col].referenceIndex].name),1)):i.createCommentVNode("",!0)]),i.createElementVNode("span",iM,[i.createTextVNode(i.toDisplayString(A.tableConfig.translations.nb)+" : ",1),i.createElementVNode("b",oM,i.toDisplayString(a.currentSelectionSpan.rows.length),1)]),i.createElementVNode("span",sM,[i.createTextVNode(i.toDisplayString(A.tableConfig.translations.sum)+" : ",1),r.dataset.header[a.currentSelectionSpan.col].isPercentage?(i.openBlock(),i.createElementBlock("b",lM,i.toDisplayString(A.selectedCellsCalculations.sumPercentage),1)):(i.openBlock(),i.createElementBlock("b",cM,i.toDisplayString(r.dataset.header[a.currentSelectionSpan.col].prefix)+" "+i.toDisplayString(A.selectedCellsCalculations.sumRegular)+" "+i.toDisplayString(r.dataset.header[a.currentSelectionSpan.col].suffix),1)),r.dataset.header[a.currentSelectionSpan.col].isPercentage?(i.openBlock(),i.createElementBlock("b",uM,"%")):i.createCommentVNode("",!0)]),i.createElementVNode("span",hM,[i.createTextVNode(i.toDisplayString(A.tableConfig.translations.average)+" : ",1),r.dataset.header[a.currentSelectionSpan.col].isPercentage?(i.openBlock(),i.createElementBlock("b",fM,i.toDisplayString(A.selectedCellsCalculations.averagePercentage),1)):(i.openBlock(),i.createElementBlock("b",dM,i.toDisplayString(r.dataset.header[a.currentSelectionSpan.col].prefix)+" "+i.toDisplayString(A.selectedCellsCalculations.averageRegular)+" "+i.toDisplayString(r.dataset.header[a.currentSelectionSpan.col].suffix),1)),r.dataset.header[a.currentSelectionSpan.col].isPercentage?(i.openBlock(),i.createElementBlock("b",gM,"%")):i.createCommentVNode("",!0)])]),i.createElementVNode("button",{onClick:e[10]||(e[10]=(...o)=>A.resetSelection&&A.resetSelection(...o)),class:"td-selector-info-reset",style:i.normalizeStyle(`background:${A.tableConfig.style.closeButtons.backgroundColor};color:${A.tableConfig.style.closeButtons.color};border-radius:${A.tableConfig.style.closeButtons.borderRadius}`)}," ✖ ",4)],64)):i.createCommentVNode("",!0)],6),a.bodyCopy.length>10?(i.openBlock(),i.createElementBlock("div",pM,[i.createTextVNode(i.toDisplayString(A.tableConfig.translations.totalRows)+" : "+i.toDisplayString(r.dataset.body.length)+" | "+i.toDisplayString(A.tableConfig.translations.paginatorLabel)+" : ",1),a.bodyCopy.length>10?i.withDirectives((i.openBlock(),i.createElementBlock("select",{key:0,id:"paginatorSelector","onUpdate:modelValue":e[11]||(e[11]=o=>a.itemsPerPage=o),onChange:e[12]||(e[12]=(...o)=>A.resetSelection&&A.resetSelection(...o)),style:i.normalizeStyle(`background:${A.tableConfig.style.inputs.backgroundColor};color:${A.tableConfig.style.inputs.color};border:${A.tableConfig.style.inputs.border}`)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.paginatorOptions,(o,s)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[a.bodyCopy.length>o||r.dataset.body.length===o?(i.openBlock(),i.createElementBlock("option",{key:`paginator_option_${s}`},i.toDisplayString(o),1)):i.createCommentVNode("",!0)],64))),256))],36)),[[i.vModelSelect,a.itemsPerPage,void 0,{number:!0}]]):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),a.itemsPerPage>=250?(i.openBlock(),i.createElementBlock("div",mM,[i.createElementVNode("span",{innerHTML:A.icons.warning},null,8,yM),i.createTextVNode(i.toDisplayString(A.tableConfig.translations.sizeWarning),1)])):i.createCommentVNode("",!0),A.pages.length>1&&A.pages.length<=10?(i.openBlock(),i.createElementBlock("div",{key:2,class:"vue-ui-table-navigation-indicator",style:i.normalizeStyle(`background:${A.tableConfig.style.pagination.navigationIndicator.backgroundColor};width:calc(${a.currentPage/(A.pages.length-1)*100}%)`)},null,4)):i.createCommentVNode("",!0),A.pages.length>1?(i.openBlock(),i.createElementBlock("div",vM,[i.createElementVNode("button",{class:"vue-ui-table-navigation",onClick:e[13]||(e[13]=i.withModifiers(o=>A.navigate("previous"),["stop"])),innerHTML:A.icons.chevronLeft,disabled:a.currentPage===0,style:i.normalizeStyle(`background:${A.tableConfig.style.pagination.buttons.backgroundColor};color:${A.tableConfig.style.pagination.buttons.color};opacity:${a.currentPage===0?A.tableConfig.style.pagination.buttons.opacityDisabled:1}`)},null,12,wM),A.pages.length>3?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("button",{class:"vue-ui-table-navigation",onClick:e[14]||(e[14]=i.withModifiers(o=>A.navigate(1),["stop"])),disabled:a.currentPage===0,style:i.normalizeStyle(`background:${A.tableConfig.style.pagination.buttons.backgroundColor};color:${A.tableConfig.style.pagination.buttons.color};opacity:${a.currentPage===0?A.tableConfig.style.pagination.buttons.opacityDisabled:1}`)}," 1 ",12,BM),A.pages.length>10?(i.openBlock(),i.createElementBlock("div",xM,[i.createElementVNode("label",bM,i.toDisplayString(A.tableConfig.translations.page)+" "+i.toDisplayString(a.currentPage+1)+" / "+i.toDisplayString(A.pages.length),1),i.createElementVNode("input",{class:"vue-ui-table-page-scroller",id:"pageScroller",type:"range",step:"1",min:0,max:A.pages.length-1,onInput:e[15]||(e[15]=o=>A.updateCurrentPage(o)),value:a.currentPage,style:i.normalizeStyle(`background:${A.tableConfig.style.inputs.backgroundColor};color:${A.tableConfig.style.inputs.color};border:${A.tableConfig.style.inputs.border};accent-color:${A.tableConfig.style.inputs.accentColor}`)},null,44,CM)])):(i.openBlock(),i.createElementBlock("span",EM,i.toDisplayString(A.tableConfig.translations.page)+" "+i.toDisplayString(a.currentPage+1)+" / "+i.toDisplayString(A.pages.length),1)),i.createElementVNode("button",{class:"vue-ui-table-navigation",onClick:e[16]||(e[16]=i.withModifiers(o=>A.navigate(A.pages.length),["stop"])),disabled:a.currentPage===A.pages.length-1,style:i.normalizeStyle(`background:${A.tableConfig.style.pagination.buttons.backgroundColor};color:${A.tableConfig.style.pagination.buttons.color};opacity:${a.currentPage===A.pages.length-1?A.tableConfig.style.pagination.buttons.opacityDisabled:1}`)},i.toDisplayString(A.pages.length),13,_M)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(A.tableConfig.translations.page)+" "+i.toDisplayString(a.currentPage+1)+" / "+i.toDisplayString(A.pages.length),1)],64)),i.createElementVNode("button",{class:"vue-ui-table-navigation",onClick:e[17]||(e[17]=i.withModifiers(o=>A.navigate("next"),["stop"])),innerHTML:A.icons.chevronRight,disabled:a.currentPage===A.pages.length-1,style:i.normalizeStyle(`background:${A.tableConfig.style.pagination.buttons.backgroundColor};color:${A.tableConfig.style.pagination.buttons.color};opacity:${a.currentPage===A.pages.length-1?A.tableConfig.style.pagination.buttons.opacityDisabled:1}`)},null,12,FM)])):i.createCommentVNode("",!0),a.showChart&&A.canChart?(i.openBlock(),i.createElementBlock("div",{key:4,class:"vue-ui-table-chart-modal",style:i.normalizeStyle(`top:${a.clientY}px; left:${a.clientX}px;background:${A.tableConfig.style.chart.modal.backgroundColor};color:${A.tableConfig.style.chart.modal.color}`)},[i.createElementVNode("button",{class:"close-chart-modal",onClick:e[18]||(e[18]=o=>a.showChart=!1),style:i.normalizeStyle(`background:${A.tableConfig.style.closeButtons.backgroundColor};color:${A.tableConfig.style.closeButtons.color};border-radius:${A.tableConfig.style.closeButtons.borderRadius}`)}," ✖ ",4),i.createElementVNode("div",SM,[A.availableDonutCategories.length?(i.openBlock(),i.createElementBlock("button",{key:0,onClick:e[19]||(e[19]=o=>a.showDonutOptions=!0),innerHTML:A.icons.donut,class:i.normalizeClass({"is-active-chart":a.chart.type===a.constants.DONUT||a.showDonutOptions}),style:i.normalizeStyle(`background:${a.chart.type===a.constants.DONUT||a.showDonutOptions?A.tableConfig.style.chart.modal.buttons.selected.backgroundColor:A.tableConfig.style.chart.modal.buttons.unselected.backgroundColor};color:${a.chart.type===a.constants.DONUT||a.showDonutOptions?A.tableConfig.style.chart.modal.buttons.selected.color:A.tableConfig.style.chart.modal.buttons.unselected.color}`)},null,14,kM)):i.createCommentVNode("",!0),i.createElementVNode("button",{onClick:e[20]||(e[20]=o=>{a.chart.type=a.constants.LINE,a.showDonutOptions=!1}),innerHTML:A.icons.chart,class:i.normalizeClass({"is-active-chart":a.chart.type===a.constants.LINE&&!a.showDonutOptions}),style:i.normalizeStyle(`background:${a.chart.type===a.constants.LINE&&!a.showDonutOptions?A.tableConfig.style.chart.modal.buttons.selected.backgroundColor:A.tableConfig.style.chart.modal.buttons.unselected.backgroundColor};color:${a.chart.type===a.constants.LINE&&!a.showDonutOptions?A.tableConfig.style.chart.modal.buttons.selected.color:A.tableConfig.style.chart.modal.buttons.unselected.color}`)},null,14,TM),i.createElementVNode("button",{onClick:e[21]||(e[21]=o=>{a.chart.type=a.constants.BAR,a.showDonutOptions=!1}),innerHTML:A.icons.bar,class:i.normalizeClass({"is-active-chart":a.chart.type===a.constants.BAR&&!a.showDonutOptions}),style:i.normalizeStyle(`background:${a.chart.type===a.constants.BAR&&!a.showDonutOptions?A.tableConfig.style.chart.modal.buttons.selected.backgroundColor:A.tableConfig.style.chart.modal.buttons.unselected.backgroundColor};color:${a.chart.type===a.constants.BAR&&!a.showDonutOptions?A.tableConfig.style.chart.modal.buttons.selected.color:A.tableConfig.style.chart.modal.buttons.unselected.color}`)},null,14,NM)]),i.createElementVNode("div",LM,[i.createElementVNode("b",null,[i.createTextVNode(i.toDisplayString(r.dataset.header[a.currentSelectionSpan.col].name)+" ",1),r.dataset.header[a.currentSelectionSpan.col].isPercentage&&r.dataset.header[a.currentSelectionSpan.col].percentageTo?(i.openBlock(),i.createElementBlock("span",UM," / "+i.toDisplayString(r.dataset.header[a.percentages[a.currentSelectionSpan.col].referenceIndex].name),1)):i.createCommentVNode("",!0),a.chart.type===a.constants.DONUT&&a.selectedDonutCategory&&a.selectedDonutCategory.name?(i.openBlock(),i.createElementBlock("span",IM,i.toDisplayString(A.tableConfig.translations.by)+" "+i.toDisplayString(a.selectedDonutCategory.name),1)):i.createCommentVNode("",!0)])]),i.createElementVNode("div",DM,[a.showDonutOptions&&A.availableDonutCategories.length?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(`background:${A.tableConfig.style.chart.modal.backgroundColor};color:${A.tableConfig.style.chart.modal.color}`)},[i.createElementVNode("fieldset",QM,[i.createElementVNode("legend",null,i.toDisplayString(A.tableConfig.translations.chooseCategoryColumn),1),i.createElementVNode("div",OM,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.availableDonutCategories,(o,s)=>(i.openBlock(),i.createElementBlock("div",{key:`donut_radio_${s}`,class:"vue-ui-table-fieldset-option"},[i.createElementVNode("input",{type:"radio",name:o.name,id:o.name,checked:a.selectedDonutCategory&&o.name===a.selectedDonutCategory.name,onInput:l=>a.selectedDonutCategory=A.availableDonutCategories[s],style:i.normalizeStyle(`background:${A.tableConfig.style.inputs.backgroundColor};color:${A.tableConfig.style.inputs.color};border:${A.tableConfig.style.inputs.border};accent-color:${A.tableConfig.style.inputs.accentColor}`)},null,44,PM),i.createElementVNode("label",{for:o.name},i.toDisplayString(o.name),9,MM)]))),128))]),i.createElementVNode("button",{class:"vue-ui-table-generate-donut",disabled:!a.selectedDonutCategory,onClick:e[22]||(e[22]=(...o)=>A.applyDonutOption&&A.applyDonutOption(...o)),style:i.normalizeStyle(`background:${A.tableConfig.style.chart.modal.buttons.selected.backgroundColor};color:${A.tableConfig.style.chart.modal.buttons.selected.color}`)},[i.createElementVNode("div",{style:{"margin-bottom":"-3px"},innerHTML:A.icons.donut},null,8,HM),i.createTextVNode(" "+i.toDisplayString(A.tableConfig.translations.makeDonut),1)],12,RM)])],4)):i.createCommentVNode("",!0),[a.constants.BAR,a.constants.LINE].includes(a.chart.type)&&!a.showDonutOptions?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[(i.openBlock(),i.createElementBlock("svg",{viewBox:`0 0 ${a.chart.width} ${a.chart.height}`,class:"vue-ui-table-chart-svg",style:i.normalizeStyle(`background:${A.tableConfig.style.chart.layout.backgroundColor}`)},[i.createElementVNode("defs",null,[i.createElementVNode("marker",{id:"arrowhead",markerWidth:A.tableConfig.style.chart.layout.progression.arrowSize,markerHeight:A.tableConfig.style.chart.layout.progression.arrowSize,refX:"0",refY:A.tableConfig.style.chart.layout.progression.arrowSize/2,orient:"auto"},[i.createElementVNode("polygon",{points:`0 0, ${A.tableConfig.style.chart.layout.progression.arrowSize} ${A.tableConfig.style.chart.layout.progression.arrowSize/2}, 0 ${A.tableConfig.style.chart.layout.progression.arrowSize}`,fill:A.tableConfig.style.chart.layout.progression.stroke},null,8,zM)],8,$M)]),i.createElementVNode("g",null,[i.createElementVNode("line",{x1:0,x2:a.chart.width,y1:A.chartData.zero,y2:A.chartData.zero,stroke:A.tableConfig.style.chart.layout.axis.stroke,"stroke-width":A.tableConfig.style.chart.layout.axis.strokeWidth,"stroke-linecap":"round"},null,8,KM),i.createElementVNode("line",{x1:0,x2:0,y1:0,y2:a.chart.height,stroke:A.tableConfig.style.chart.layout.axis.stroke,"stroke-width":A.tableConfig.style.chart.layout.axis.strokeWidth,"stroke-linecap":"round"},null,8,GM)]),a.chart.type===a.constants.LINE?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(A.chartData.plots,(o,s)=>(i.openBlock(),i.createElementBlock("g",{key:`trap_fill_${s}`},[i.createElementVNode("rect",{x:s*A.chartData.slot,y:0,width:A.chartData.slot,height:a.chart.height,fill:a.selectedPlot===s?"rgba(0,0,0,0.03)":"transparent"},null,8,jM)]))),128)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.chartData.plots,(o,s)=>(i.openBlock(),i.createElementBlock("g",{key:`plot_${s}`},[a.chart.type===a.constants.BAR?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[WM,i.createElementVNode("rect",{x:o.x-A.chartData.slot/2,y:A.chartData.isAllNegative?0:A.calcRectY(o.value,o.y),height:o.value>=0?A.chartData.zero-o.y:A.chartData.isAllNegative?o.y:o.y-A.chartData.zero,width:A.chartData.slot,fill:A.tableConfig.style.chart.layout.bar.fill?A.tableConfig.style.chart.layout.bar.fill:a.selectedPlot===s?o.value>=0?"url(#barGradientSelected)":"url(#barGradientSelectedNeg)":(o.value>=0,"url(#barGradient)"),stroke:A.tableConfig.style.chart.layout.bar.stroke,"stroke-width":"1"},null,8,XM),a.selectedPlot===s?(i.openBlock(),i.createElementBlock("foreignObject",{key:0,x:o.x-(A.chartData.slot<100?50:A.chartData.slot/2),y:o.value>=0?o.y-32:o.y+4,height:"20",width:A.chartData.slot<100?100:A.chartData.slot,style:{overflow:"visible"}},[i.createElementVNode("div",{style:i.normalizeStyle(`width:100%;text-align:center;font-size:20px;color:${A.tableConfig.style.chart.layout.labels.color}`)},i.toDisplayString(o.prefix)+" "+i.toDisplayString(Number(o.value.toFixed(r.dataset.header[a.currentSelectionSpan.col].decimals)).toLocaleString())+" "+i.toDisplayString(o.suffix),5)],8,qM)):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),a.chart.type===a.constants.LINE?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[s+1<A.chartData.plots.length?(i.openBlock(),i.createElementBlock("line",{key:0,x1:o.x,y1:o.y,x2:A.chartData.plots[s+1].x,y2:A.chartData.plots[s+1].y,"stroke-width":A.tableConfig.style.chart.layout.line.strokeWidth,stroke:A.tableConfig.style.chart.layout.line.stroke},null,8,YM)):i.createCommentVNode("",!0),a.selectedPlot===s?(i.openBlock(),i.createElementBlock("line",{key:1,x1:o.x,y1:o.y,x2:o.x,y2:a.chart.height,stroke:A.tableConfig.style.chart.layout.line.selector.stroke,"stroke-width":A.tableConfig.style.chart.layout.line.selector.strokeWidth,"stroke-dasharray":A.tableConfig.style.chart.layout.line.selector.strokeDasharray},null,8,JM)):i.createCommentVNode("",!0),i.createElementVNode("circle",{cx:o.x,cy:o.y,r:a.selectedPlot===s?A.tableConfig.style.chart.layout.line.plot.radius.selected:A.tableConfig.style.chart.layout.line.plot.radius.unselected,fill:A.tableConfig.style.chart.layout.line.plot.fill,stroke:A.tableConfig.style.chart.layout.line.plot.stroke,"stroke-width":A.tableConfig.style.chart.layout.line.plot.strokeWidth},null,8,ZM),a.selectedPlot===s?(i.openBlock(),i.createElementBlock("foreignObject",{key:2,x:o.x-(A.chartData.slot<100?50:A.chartData.slot/2),y:A.placeLabelOnTopOrBottom({previousPlot:A.chartData.plots[s-1],currentPlot:o,nextPlot:A.chartData.plots[s+1]}),height:"20",width:A.chartData.slot<100?100:A.chartData.slot,style:{overflow:"visible"}},[i.createElementVNode("div",{style:i.normalizeStyle(`width:100%;text-align:center;font-size:20px;color:${A.tableConfig.style.chart.layout.labels.color}`)},i.toDisplayString(o.prefix)+" "+i.toDisplayString(Number(o.value.toFixed(r.dataset.header[a.currentSelectionSpan.col].decimals)).toLocaleString())+" "+i.toDisplayString(o.suffix),5)],8,eR)):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0)]))),128)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.chartData.plots,(o,s)=>(i.openBlock(),i.createElementBlock("g",{key:`trap_${s}`},[i.createElementVNode("rect",{x:s*A.chartData.slot,y:0,width:A.chartData.slot,height:a.chart.height,fill:"transparent",onMouseenter:l=>a.selectedPlot=s,onMouseleave:e[23]||(e[23]=l=>a.selectedPlot=void 0)},null,40,tR)]))),128)),A.chartData.progression&&A.chartData.plots.length>2?(i.openBlock(),i.createElementBlock("line",{key:1,x1:A.chartData.progression.x1,y1:A.chartData.progression.y1,x2:A.chartData.progression.x2,y2:A.chartData.progression.y2,stroke:A.tableConfig.style.chart.layout.progression.stroke,"stroke-width":A.tableConfig.style.chart.layout.progression.strokeWidth,"stroke-dasharray":A.tableConfig.style.chart.layout.progression.strokeDasharray,"marker-end":"url(#arrowhead)"},null,8,rR)):i.createCommentVNode("",!0)],12,VM)),A.chartData.plots.length>=2?(i.openBlock(),i.createElementBlock("div",{key:0,class:"chart-trend",style:i.normalizeStyle(`color:${A.tableConfig.style.chart.modal.color}`)},[nR,i.createTextVNode(" Trend: "+i.toDisplayString((Math.abs(A.chartData.progression.trend)*100).toFixed(1))+" % ",1)],4)):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),[a.constants.DONUT].includes(a.chart.type)&&!a.showDonutOptions?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[(i.openBlock(),i.createElementBlock("svg",{viewBox:"0 0 100 100",style:i.normalizeStyle(`max-width:100%; overflow: visible; padding: 0 24px;background:${A.tableConfig.style.chart.layout.backgroundColor}`),class:"vue-ui-table-donut-chart"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.currentDonut,(o,s)=>(i.openBlock(),i.createElementBlock("path",{key:`arc_${s}`,d:o.path,stroke:`${o.color}CC`,"stroke-width":20,fill:"none"},null,8,aR))),128)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.currentDonut,(o,s)=>(i.openBlock(),i.createElementBlock("foreignObject",{key:`text_marker_${s}`,x:A.calcDonutMarkerLabelPositionX(o)-15,y:o.center.endY-15,height:"30",width:"30",style:{overflow:"visible",display:"flex","align-items":"center","justify-content":"center"}},[A.isArcBigEnough(o)?(i.openBlock(),i.createElementBlock("div",{key:0,class:"vue-ui-table-donut-label",style:i.normalizeStyle(`color:${A.tableConfig.style.chart.layout.labels.color}`)},[i.createElementVNode("b",null,i.toDisplayString(A.displayArcPercentage(o,a.currentDonut)),1),i.createElementVNode("span",iR,i.toDisplayString(o.name),1)],4)):i.createCommentVNode("",!0)],8,AR))),128)),i.createElementVNode("text",{x:50,y:42,"text-anchor":"middle","font-size":"6",fill:A.tableConfig.style.chart.layout.labels.color},i.toDisplayString(A.tableConfig.translations.total),9,oR),i.createElementVNode("text",{x:50,y:48,"text-anchor":"middle","font-size":"4",fill:A.tableConfig.style.chart.layout.labels.color},i.toDisplayString(r.dataset.header[a.currentSelectionSpan.col].prefix)+" "+i.toDisplayString(A.donutHollowLabels.total)+" "+i.toDisplayString(r.dataset.header[a.currentSelectionSpan.col].isPercentage?"%":"")+" "+i.toDisplayString(r.dataset.header[a.currentSelectionSpan.col].suffix),9,sR),i.createElementVNode("text",{x:50,y:56,"text-anchor":"middle","font-size":"6",fill:A.tableConfig.style.chart.layout.labels.color},i.toDisplayString(A.tableConfig.translations.average),9,lR),i.createElementVNode("text",{x:50,y:62,"text-anchor":"middle","font-size":"4",fill:A.tableConfig.style.chart.layout.labels.color},i.toDisplayString(r.dataset.header[a.currentSelectionSpan.col].prefix)+" "+i.toDisplayString(A.donutHollowLabels.average)+" "+i.toDisplayString(r.dataset.header[a.currentSelectionSpan.col].isPercentage?"%":"")+" "+i.toDisplayString(r.dataset.header[a.currentSelectionSpan.col].suffix),9,cR)],4)),i.createElementVNode("div",uR,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.currentDonut.filter(o=>o.value>0),(o,s)=>(i.openBlock(),i.createElementBlock("div",{class:"vue-ui-table-donut-legend-item",key:`donut_legend_${s}`,style:i.normalizeStyle(`color:${A.tableConfig.style.chart.layout.labels.color}`)},[i.createElementVNode("span",{style:i.normalizeStyle(`color:${o.color}`)},"●",4),i.createElementVNode("span",null,i.toDisplayString(o.name)+" : ",1),i.createElementVNode("b",null,i.toDisplayString(r.dataset.header[a.currentSelectionSpan.col].prefix)+" "+i.toDisplayString(A.getDonutLegendValue(o.absoluteValue))+" "+i.toDisplayString(r.dataset.header[a.currentSelectionSpan.col].isPercentage?"%":"")+" "+i.toDisplayString(r.dataset.header[a.currentSelectionSpan.col].suffix),1),i.createElementVNode("span",null,"("+i.toDisplayString((o.proportion*100).toFixed(1))+"%)",1)],4))),128))])],64)):i.createCommentVNode("",!0)],512)],4)):i.createCommentVNode("",!0)],4)}const fR=Ba($7,[["render",hR],["__scopeId","data-v-51d6490e"]]),Soe="",dR=t=>(i.pushScopeId("data-v-795deb2e"),t=t(),i.popScopeId(),t),gR=["id"],pR={class:"vue-ui-donut-user-option-item"},mR=["id","name"],yR=["for"],vR={class:"vue-ui-donut-user-option-item"},wR=["id","name"],BR=["for"],xR={class:"vue-ui-donut-user-option-item"},bR=["id","name"],CR=["for"],ER=["disabled"],_R=["stroke"],FR=[i.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-795deb2e></path><path d="M18 16v.01" data-v-795deb2e></path><path d="M6 16v.01" data-v-795deb2e></path><path d="M12 5v.01" data-v-795deb2e></path><path d="M12 12v.01" data-v-795deb2e></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-795deb2e></path>',6)],SR={key:1},kR=["viewBox"],TR=["id"],NR=["stop-color"],LR=["stop-color"],UR=["stop-color"],IR={key:0},DR=["font-size","fill","x"],QR=["font-size","fill","x","y"],OR=["d","stroke","stroke-width"],PR=["cx","cy","fill"],MR=["d","stroke","stroke-width","onMouseenter","onClick"],RR=["cx","cy","r","fill"],HR=["x","y","fill","font-size"],VR=["x","y","fill","font-size"],$R=["x","y","fill","font-size"],zR=["x","y","fill","font-size"],KR=["x","y","fill","font-size"],GR=["x","y","fill","font-size"],jR=["y"],WR=["onClick"],XR=["onClick"],qR={key:0},YR=["innerHTML"],JR={key:0},ZR={key:0},e9=[dR(()=>i.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[i.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),i.createElementVNode("path",{d:"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2"})],-1))],t9={style:{"max-width":"200px margin:0 auto"}},r9=Ba({__name:"vue-ui-donut",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(t,{expose:e,emit:r}){const n=t,a=i.ref(`vue-ui-donut-${Math.random()}`),A=i.ref(ia.vue_ui_donut),o=i.ref(!1),s=i.ref(null),l=i.ref(null),c=i.ref(null),u=i.ref({x:0,y:0}),p=i.ref(!1),h=i.ref(""),d=i.ref(null);i.onMounted(()=>{document.addEventListener("mousemove",w)}),i.onBeforeUnmount(()=>{document.removeEventListener("mousemove",w)});function w(b){u.value.x=b.clientX,u.value.y=b.clientY}const f=i.computed(()=>{let b=0,_=48;if(l.value&&s.value){const{width:B,height:x}=l.value.getBoundingClientRect(),S=s.value.getBoundingClientRect();u.value.x+B/2>S.right?b=-B:u.value.x-B/2<S.left?b=0:b=-B/2,u.value.y+x>S.bottom&&(_=-x-48)}return{top:u.value.y+_,left:u.value.x+b}}),m=i.computed(()=>{if(!Object.keys(n.config||{}).length)return A.value;const b=Wn({defaultConfig:A.value,userConfig:n.config});return Xn(b)}),y=i.ref({dataLabels:{show:m.value.style.chart.layout.labels.dataLabels.show},inside:m.value.style.chart.layout.useDiv,showTable:m.value.table.show}),F=i.computed(()=>({height:y.value.inside||o.value?512:360,width:512})),N=i.ref([]);function D(b){N.value.includes(b)?N.value=N.value.filter(_=>_!==b):N.value.push(b),r("selectLegend",U.value.map(_=>({name:_.name,color:_.color,value:_.value})))}const H=i.computed(()=>n.dataset.map((b,_)=>({name:b.name,color:Nr(b.color)||It[_]||It[_%It.length],value:b.values.reduce((B,x)=>B+x,0),absoluteValues:b.values})).sort((b,_)=>_.value-b.value));function R(){return H.value.map(b=>({name:b.name,color:b.color,value:b.value}))}e({getData:R});const U=i.computed(()=>n.dataset.map((b,_)=>({name:b.name,color:Nr(b.color)||It[_]||It[_%It.length],value:b.values.reduce((B,x)=>B+x,0),absoluteValues:b.values})).sort((b,_)=>_.value-b.value).filter((b,_)=>!N.value.includes(_))),I=i.computed(()=>n.dataset.map((b,_)=>({name:b.name,color:Nr(b.color)||It[_]||It[_%It.length],value:b.values.reduce((B,x)=>B+x,0)})).sort((b,_)=>_.value-b.value)),O=i.computed(()=>Gh({series:U.value},F.value.width/2,F.value.height/2,100,100));function q(b){return b.center.endX+T(b,256)}function T(b,_){return b.center.endX-_>=0?30:-30}function L(b){return b.proportion*100>m.value.style.chart.layout.labels.dataLabels.hideUnderValue}function G(b,_){return isNaN(b.value/Y(_))?0:(b.value/Y(_)*100).toFixed(0)+"%"}function Y(b){return[...b].map(_=>_.value).reduce((_,B)=>_+B,0)}const se=i.computed(()=>U.value.map(b=>b.value).reduce((b,_)=>b+_,0)),he=i.computed(()=>se.value/U.value.length);function ge(){c.value&&c.value.removeAttribute("open")}function re(b,_,B=!0){p.value=B,d.value=_;let x="";x+=`<div style="width:100%;text-align:center;border-bottom:1px solid #ccc;padding-bottom:6px;margin-bottom:3px;">${b.name}</div>`,x+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><span style="color:${b.color};font-size:${m.value.style.chart.tooltip.fontSize*1.6}px;">●</span>`,m.value.style.chart.tooltip.showValue&&(x+=`<b>${b.value.toFixed(m.value.style.chart.tooltip.roundingValue)}</b>`),m.value.style.chart.tooltip.showPercentage&&(m.value.style.chart.tooltip.showValue?x+=`<span>(${(b.proportion*100).toFixed(m.value.style.chart.tooltip.roundingPercentage)}%)</span></div>`:x+=`<b>${(b.proportion*100).toFixed(m.value.style.chart.tooltip.roundingPercentage)}%</b></div>`),h.value=`<div>${x}</div>`}function le(){o.value=!0,GA({domElement:document.getElementById(`donut__${a.value}`),fileName:m.value.style.chart.title.text||"vue-ui-donut"}).finally(()=>{o.value=!1})}const fe=i.computed(()=>{const b=U.value.map(B=>({name:B.name,color:B.color})),_=U.value.map(B=>B.value);return{head:b,body:_}});function Ue(){i.nextTick(()=>{const b=fe.value.head.map((B,x)=>[[B.name],[fe.value.body[x]],[isNaN(fe.value.body[x]/se.value)?"-":fe.value.body[x]/se.value*100]]),_=[[m.value.style.chart.title.text],[m.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(b);ei(_,m.value.style.chart.title.text||"vue-ui-donut")})}return(b,_)=>(i.openBlock(),i.createElementBlock("div",{ref:"donutChart",class:"vue-ui-donut",style:i.normalizeStyle(`font-family:${m.value.style.fontFamily};width:100%; text-align:center`),id:`donut__${a.value}`},[(!y.value.inside||o.value)&&m.value.style.chart.title.text?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(`width:100%;background:${m.value.style.chart.backgroundColor}`)},[i.createElementVNode("div",{style:i.normalizeStyle(`width:100%;text-align:center;color:${m.value.style.chart.title.color};font-size:${m.value.style.chart.title.fontSize}px;font-weight:${m.value.style.chart.title.bold?"bold":""}`)},i.toDisplayString(m.value.style.chart.title.text),5),m.value.style.chart.title.subtitle.text?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(`width:100%;text-align:center;color:${m.value.style.chart.title.subtitle.color};font-size:${m.value.style.chart.title.subtitle.fontSize}px;font-weight:${m.value.style.chart.title.subtitle.bold?"bold":""}`)},i.toDisplayString(m.value.style.chart.title.subtitle.text),5)):i.createCommentVNode("",!0)],4)):i.createCommentVNode("",!0),m.value.userOptions.show?(i.openBlock(),i.createElementBlock("details",{key:1,class:"vue-ui-donut-user-options",style:i.normalizeStyle(`background:${m.value.style.chart.backgroundColor};color:${m.value.style.chart.color}`),"data-html2canvas-ignore":"",ref_key:"details",ref:c},[i.createElementVNode("summary",{style:i.normalizeStyle(`background:${m.value.style.chart.backgroundColor};color:${m.value.style.chart.color}`)},i.toDisplayString(m.value.userOptions.title),5),i.createElementVNode("div",{class:"vue-ui-donut-user-options-items",style:i.normalizeStyle(`background:${m.value.style.chart.backgroundColor};color:${m.value.style.chart.color}`)},[i.createElementVNode("div",pR,[i.withDirectives(i.createElementVNode("input",{type:"checkbox",id:`vue-ui-donut-option-datalabels_${a.value}`,name:`vue-ui-donut-option-datalabels_${a.value}`,"onUpdate:modelValue":_[0]||(_[0]=B=>y.value.dataLabels.show=B)},null,8,mR),[[i.vModelCheckbox,y.value.dataLabels.show]]),i.createElementVNode("label",{for:`vue-ui-donut-option-datalabels_${a.value}`},i.toDisplayString(m.value.userOptions.labels.dataLabels),9,yR)]),i.createElementVNode("div",vR,[i.withDirectives(i.createElementVNode("input",{type:"checkbox",id:`vue-ui-donut-option-title_${a.value}`,name:`vue-ui-donut-option-title_${a.value}`,"onUpdate:modelValue":_[1]||(_[1]=B=>y.value.inside=B)},null,8,wR),[[i.vModelCheckbox,y.value.inside]]),i.createElementVNode("label",{for:`vue-ui-donut-option-title_${a.value}`},i.toDisplayString(m.value.userOptions.labels.useDiv),9,BR)]),i.createElementVNode("div",xR,[i.withDirectives(i.createElementVNode("input",{type:"checkbox",id:`vue-ui-donut-option-table_${a.value}`,name:`vue-ui-donut-option-table_${a.value}`,"onUpdate:modelValue":_[2]||(_[2]=B=>y.value.showTable=B)},null,8,bR),[[i.vModelCheckbox,y.value.showTable]]),i.createElementVNode("label",{for:`vue-ui-donut-option-table_${a.value}`},i.toDisplayString(m.value.userOptions.labels.showTable),9,CR)]),i.createElementVNode("button",{class:"vue-ui-donut-button",onClick:le,disabled:o.value,style:i.normalizeStyle([{"margin-top":"12px"},`background:${m.value.style.chart.backgroundColor};color:${m.value.style.chart.color}`])},[o.value?(i.openBlock(),i.createElementBlock("svg",{key:0,class:"vue-ui-donut-print-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:m.value.style.chart.color,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},FR,8,_R)):(i.openBlock(),i.createElementBlock("span",SR,"PDF"))],12,ER),i.createElementVNode("button",{class:"vue-ui-donut-button",onClick:Ue,style:i.normalizeStyle(`background:${m.value.style.chart.backgroundColor};color:${m.value.style.chart.color}`)}," XLSX ",4)],4)],4)):i.createCommentVNode("",!0),(i.openBlock(),i.createElementBlock("svg",{viewBox:`0 0 ${F.value.width} ${F.value.height}`,style:i.normalizeStyle(`max-width:100%; overflow: visible; background:${m.value.style.chart.backgroundColor};color:${m.value.style.chart.color}`),onClick:ge},[i.createElementVNode("defs",null,[m.value.style.chart.useGradient?(i.openBlock(),i.createElementBlock("radialGradient",{key:0,id:`gradient_${a.value}`},[i.createElementVNode("stop",{offset:"0%","stop-color":`${i.unref(Nr)(m.value.style.chart.backgroundColor)}00`},null,8,NR),i.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF"+i.unref(yt)[m.value.style.chart.gradientIntensity]},null,8,LR),i.createElementVNode("stop",{offset:"100%","stop-color":`${i.unref(Nr)(m.value.style.chart.backgroundColor)}00`},null,8,UR)],8,TR)):i.createCommentVNode("",!0)]),m.value.style.chart.title.text&&y.value.inside&&!o.value?(i.openBlock(),i.createElementBlock("g",IR,[i.createElementVNode("text",{"font-size":m.value.style.chart.title.fontSize,fill:m.value.style.chart.title.color,x:F.value.width/2,y:48,"text-anchor":"middle",style:i.normalizeStyle(`font-weight:${m.value.style.chart.title.bold?"bold":""}`)},i.toDisplayString(m.value.style.chart.title.text),13,DR),m.value.style.chart.title.subtitle.text?(i.openBlock(),i.createElementBlock("text",{key:0,"font-size":m.value.style.chart.title.subtitle.fontSize,fill:m.value.style.chart.title.subtitle.color,x:F.value.width/2,y:48+m.value.style.chart.title.fontSize,"text-anchor":"middle",style:i.normalizeStyle(`font-weight:${m.value.style.chart.title.subtitle.bold?"bold":""}`)},i.toDisplayString(m.value.style.chart.title.subtitle.text),13,QR)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(O.value,(B,x)=>(i.openBlock(),i.createElementBlock("path",{d:B.path,stroke:`${B.color}CC`,"stroke-width":A.value.style.chart.layout.donut.strokeWidth,fill:"none"},null,8,OR))),256)),m.value.style.chart.useGradient?(i.openBlock(),i.createElementBlock("circle",{key:1,cx:F.value.width/2,cy:F.value.height/2,r:136,fill:`url(#gradient_${a.value})`},null,8,PR)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(O.value,(B,x)=>(i.openBlock(),i.createElementBlock("path",{d:B.path,stroke:d.value===x?"rgba(0,0,0,0.1)":"transparent","stroke-width":A.value.style.chart.layout.donut.strokeWidth,fill:"none",onMouseenter:S=>re(B,x,!0),onMouseleave:_[3]||(_[3]=S=>{p.value=!1,d.value=null}),onClick:S=>D(x)},null,40,MR))),256)),i.createElementVNode("circle",{cx:F.value.width/2,cy:F.value.height/2,r:F.value.width-400-m.value.style.chart.layout.donut.strokeWidth/2,fill:m.value.style.chart.backgroundColor},null,8,RR),m.value.style.chart.layout.labels.hollow.total.show?(i.openBlock(),i.createElementBlock("text",{key:2,"text-anchor":"middle",x:F.value.width/2,y:F.value.height/2-(m.value.style.chart.layout.labels.hollow.average.show?m.value.style.chart.layout.labels.hollow.total.fontSize:0)+m.value.style.chart.layout.labels.hollow.total.offsetY,fill:m.value.style.chart.layout.labels.hollow.total.color,"font-size":m.value.style.chart.layout.labels.hollow.total.fontSize,style:i.normalizeStyle(`font-weight:${m.value.style.chart.layout.labels.hollow.total.bold?"bold":""}`)},i.toDisplayString(m.value.style.chart.layout.labels.hollow.total.text),13,HR)):i.createCommentVNode("",!0),m.value.style.chart.layout.labels.hollow.total.show?(i.openBlock(),i.createElementBlock("text",{key:3,"text-anchor":"middle",x:F.value.width/2,y:F.value.height/2+m.value.style.chart.layout.labels.hollow.total.fontSize-(m.value.style.chart.layout.labels.hollow.average.show?m.value.style.chart.layout.labels.hollow.total.fontSize:0)+m.value.style.chart.layout.labels.hollow.total.value.offsetY,fill:m.value.style.chart.layout.labels.hollow.total.value.color,"font-size":m.value.style.chart.layout.labels.hollow.total.value.fontSize,style:i.normalizeStyle(`font-weight:${m.value.style.chart.layout.labels.hollow.total.value.bold?"bold":""}`)},i.toDisplayString(m.value.style.chart.layout.labels.hollow.total.value.prefix)+" "+i.toDisplayString(se.value.toFixed(m.value.style.chart.layout.labels.hollow.total.value.rounding))+" "+i.toDisplayString(m.value.style.chart.layout.labels.hollow.total.value.suffix),13,VR)):i.createCommentVNode("",!0),m.value.style.chart.layout.labels.hollow.average.show?(i.openBlock(),i.createElementBlock("text",{key:4,"text-anchor":"middle",x:F.value.width/2,y:F.value.height/2+(m.value.style.chart.layout.labels.hollow.total.show?m.value.style.chart.layout.labels.hollow.average.fontSize:0)+m.value.style.chart.layout.labels.hollow.average.offsetY,fill:m.value.style.chart.layout.labels.hollow.average.color,"font-size":m.value.style.chart.layout.labels.hollow.average.fontSize,style:i.normalizeStyle(`font-weight:${m.value.style.chart.layout.labels.hollow.average.bold?"bold":""}`)},i.toDisplayString(m.value.style.chart.layout.labels.hollow.average.text),13,$R)):i.createCommentVNode("",!0),m.value.style.chart.layout.labels.hollow.average.show?(i.openBlock(),i.createElementBlock("text",{key:5,"text-anchor":"middle",x:F.value.width/2,y:F.value.height/2+(m.value.style.chart.layout.labels.hollow.total.show?m.value.style.chart.layout.labels.hollow.average.fontSize:0)+m.value.style.chart.layout.labels.hollow.average.fontSize+m.value.style.chart.layout.labels.hollow.average.value.offsetY,fill:m.value.style.chart.layout.labels.hollow.average.value.color,"font-size":m.value.style.chart.layout.labels.hollow.average.value.fontSize,style:i.normalizeStyle(`font-weight:${m.value.style.chart.layout.labels.hollow.average.value.bold?"bold":""}`)},i.toDisplayString(m.value.style.chart.layout.labels.hollow.average.value.prefix)+" "+i.toDisplayString(isNaN(he.value.toFixed(m.value.style.chart.layout.labels.hollow.average.value.rounding))?"-":he.value.toFixed(m.value.style.chart.layout.labels.hollow.average.value.rounding))+" "+i.toDisplayString(m.value.style.chart.layout.labels.hollow.average.value.suffix),13,zR)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(O.value,(B,x)=>(i.openBlock(),i.createElementBlock("g",null,[L(B)&&y.value.dataLabels.show?(i.openBlock(),i.createElementBlock("text",{key:0,"text-anchor":"middle",x:q(B),y:B.center.endY-m.value.style.chart.layout.labels.percentage.fontSize/2,fill:m.value.style.chart.layout.labels.percentage.color,"font-size":m.value.style.chart.layout.labels.percentage.fontSize,style:i.normalizeStyle(`font-weight:${m.value.style.chart.layout.labels.percentage.bold?"bold":""}`)},i.toDisplayString(G(B,O.value)),13,KR)):i.createCommentVNode("",!0),L(B)&&y.value.dataLabels.show?(i.openBlock(),i.createElementBlock("text",{key:1,"text-anchor":"middle",x:q(B),y:B.center.endY+m.value.style.chart.layout.labels.percentage.fontSize/2,fill:m.value.style.chart.layout.labels.name.color,"font-size":m.value.style.chart.layout.labels.name.fontSize,style:i.normalizeStyle(`font-weight:${m.value.style.chart.layout.labels.name.bold?"bold":""}`)},i.toDisplayString(B.name),13,GR)):i.createCommentVNode("",!0)]))),256)),m.value.style.chart.legend.show&&y.value.inside&&!o.value?(i.openBlock(),i.createElementBlock("foreignObject",{key:6,x:0,y:F.value.height/2+150,width:"100%",height:"100",style:{overflow:"visible"}},[i.createElementVNode("div",{class:"vue-ui-donut-legend",style:i.normalizeStyle(`background:transparent;color:${m.value.style.chart.legend.color};font-size:${m.value.style.chart.legend.fontSize}px;font-weight:${m.value.style.chart.legend.bold?"bold":""}`)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(I.value,(B,x)=>(i.openBlock(),i.createElementBlock("div",{class:"vue-ui-donut-legend-item",onClick:S=>D(x),style:i.normalizeStyle(`opacity:${N.value.includes(x)?.5:1}`)},[i.createElementVNode("span",{style:i.normalizeStyle(`color:${B.color};font-size:${m.value.style.chart.legend.fontSize*1.6}px`)},"●",4),i.createElementVNode("span",null,i.toDisplayString(B.name)+" : ",1),i.createElementVNode("span",null,i.toDisplayString(B.value),1),i.createElementVNode("span",null,"("+i.toDisplayString(isNaN(B.value/se.value)?"-":(B.value/se.value*100).toFixed(m.value.style.chart.legend.roundingPercentage))+"%)",1)],12,WR))),256))],4)],8,jR)):i.createCommentVNode("",!0)],12,kR)),m.value.style.chart.legend.show&&(!y.value.inside||o.value)?(i.openBlock(),i.createElementBlock("div",{key:2,class:"vue-ui-donut-legend",style:i.normalizeStyle(`background:${m.value.style.chart.legend.backgroundColor};color:${m.value.style.chart.legend.color};font-size:${m.value.style.chart.legend.fontSize}px;padding-bottom:12px;font-weight:${m.value.style.chart.legend.bold?"bold":""}`),onClick:ge},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(I.value,(B,x)=>(i.openBlock(),i.createElementBlock("div",{class:"vue-ui-donut-legend-item",onClick:S=>D(x),style:i.normalizeStyle(`opacity:${N.value.includes(x)?.5:1}`)},[i.createElementVNode("span",{style:i.normalizeStyle(`color:${B.color};font-size:${m.value.style.chart.legend.fontSize*1.6}px`)},"●",4),i.createElementVNode("span",null,i.toDisplayString(B.name)+" : ",1),i.createElementVNode("span",null,i.toDisplayString(B.value.toFixed(m.value.style.chart.legend.roundingValue)),1),N.value.includes(x)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",qR,"("+i.toDisplayString(isNaN(B.value/se.value)?"-":(B.value/se.value*100).toFixed(m.value.style.chart.legend.roundingPercentage))+"%)",1))],12,XR))),256))],4)):i.createCommentVNode("",!0),m.value.style.chart.tooltip.show&&p.value?(i.openBlock(),i.createElementBlock("div",{key:3,class:"vue-ui-donut-tooltip",ref_key:"tooltip",ref:l,style:i.normalizeStyle(`top:${f.value.top}px;left:${f.value.left}px;background:${m.value.style.chart.tooltip.backgroundColor};color:${m.value.style.chart.tooltip.color}`),innerHTML:h.value},null,12,YR)):i.createCommentVNode("",!0),y.value.showTable?(i.openBlock(),i.createElementBlock("div",{key:4,onClick:ge,class:"vue-ui-donut-table",style:i.normalizeStyle(`width:100%;margin-top:${y.value.inside?"48px":""}`)},[i.createElementVNode("table",null,[i.createElementVNode("thead",null,[m.value.style.chart.title.text?(i.openBlock(),i.createElementBlock("tr",JR,[i.createElementVNode("th",{colspan:"3",style:i.normalizeStyle(`background:${m.value.table.th.backgroundColor};color:${m.value.table.th.color};outline:${m.value.table.th.outline}`)},[i.createElementVNode("span",null,i.toDisplayString(m.value.style.chart.title.text),1),m.value.style.chart.title.subtitle.text?(i.openBlock(),i.createElementBlock("span",ZR," : "+i.toDisplayString(m.value.style.chart.title.subtitle.text),1)):i.createCommentVNode("",!0)],4)])):i.createCommentVNode("",!0),i.createElementVNode("tr",null,[i.createElementVNode("th",{align:"right",style:i.normalizeStyle(`background:${m.value.table.th.backgroundColor};color:${m.value.table.th.color};outline:${m.value.table.th.outline};padding-right:6px`)},e9,4),i.createElementVNode("th",{style:i.normalizeStyle(`background:${m.value.table.th.backgroundColor};color:${m.value.table.th.color};outline:${m.value.table.th.outline};text-align:right;padding-right:6px`)},i.toDisplayString(se.value.toFixed(m.value.table.td.roundingValue)),5),i.createElementVNode("th",{style:i.normalizeStyle(`background:${m.value.table.th.backgroundColor};color:${m.value.table.th.color};outline:${m.value.table.th.outline};text-align:right;padding-right:6px`)}," 100% ",4)])]),i.createElementVNode("tbody",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(fe.value.head,(B,x)=>(i.openBlock(),i.createElementBlock("tr",null,[i.createElementVNode("td",{style:i.normalizeStyle(`background:${m.value.table.td.backgroundColor};color:${m.value.table.td.color};outline:${m.value.table.td.outline}`)},[i.createElementVNode("div",t9,[i.createElementVNode("span",{style:i.normalizeStyle(`color:${B.color};margin-right:6px;`)},"●",4),i.createElementVNode("span",null,i.toDisplayString(B.name),1)])],4),i.createElementVNode("td",{style:i.normalizeStyle(`background:${m.value.table.td.backgroundColor};color:${m.value.table.td.color};outline:${m.value.table.td.outline}`)},i.toDisplayString(fe.value.body[x].toFixed(m.value.table.td.roundingValue)),5),i.createElementVNode("td",{style:i.normalizeStyle(`background:${m.value.table.td.backgroundColor};color:${m.value.table.td.color};outline:${m.value.table.td.outline}`)},i.toDisplayString(isNaN(fe.value.body[x]/se.value)?"-":(fe.value.body[x]/se.value*100).toFixed(m.value.table.td.roundingPercentage))+"% ",5)]))),256))])])],4)):i.createCommentVNode("",!0)],12,gR))}},[["__scopeId","data-v-795deb2e"]]),Loe="",n9=t=>(i.pushScopeId("data-v-1d2a2a37"),t=t(),i.popScopeId(),t),a9=["id"],A9={class:"vue-ui-waffle-user-option-item"},i9=["id","name"],o9=["for"],s9={class:"vue-ui-waffle-user-option-item"},l9=["id","name"],c9=["for"],u9=["disabled"],h9=["stroke"],f9=[i.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-1d2a2a37></path><path d="M18 16v.01" data-v-1d2a2a37></path><path d="M6 16v.01" data-v-1d2a2a37></path><path d="M12 5v.01" data-v-1d2a2a37></path><path d="M12 12v.01" data-v-1d2a2a37></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-1d2a2a37></path>',6)],d9={key:1},g9=["viewBox"],p9=["id"],m9=["stop-color"],y9=["stop-color"],v9={key:0},w9=["font-size","fill","x","y"],B9=["font-size","fill","x","y"],x9=["rx","x","y","height","width","stroke","stroke-width"],b9=["onMouseover","rx","x","y","height","width","fill","stroke","stroke-width"],C9={key:1,x:0,y:512+64,width:"100%",height:"100",style:{overflow:"visible"}},E9=["onClick"],_9={key:0},F9=["onClick"],S9={key:0},k9=["innerHTML"],T9={key:0},N9={key:0},L9=[n9(()=>i.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[i.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),i.createElementVNode("path",{d:"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2"})],-1))],U9={style:{"max-width":"200px margin:0 auto"}},I9=Ba({__name:"vue-ui-waffle",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(t,{expose:e,emit:r}){const n=t,a=i.ref(`vue-ui-waffle-${Math.random()}`),A=i.ref(ia.vue_ui_waffle),o=i.ref(!1),s=i.ref(null),l=i.ref(null),c=i.ref(null),u=i.ref({x:0,y:0}),p=i.ref(!1),h=i.ref(""),d=i.ref(null),w=i.computed(()=>{let B=0,x=48;if(l.value&&s.value){const{width:S,height:Q}=l.value.getBoundingClientRect(),W=s.value.getBoundingClientRect();u.value.x+S/2>W.right?B=-S:u.value.x-S/2<W.left?B=0:B=-S/2,u.value.y+Q>W.bottom&&(x=-Q-48)}return{top:u.value.y+x,left:u.value.x+B}});i.onMounted(()=>{document.addEventListener("mousemove",f)}),i.onBeforeUnmount(()=>{document.removeEventListener("mousemove",f)});function f(B){u.value.x=B.clientX,u.value.y=B.clientY}const m=i.computed(()=>{if(!Object.keys(n.config||{}).length)return A.value;const B=Wn({defaultConfig:A.value,userConfig:n.config});return Xn(B)}),y=i.ref({inside:!m.value.style.chart.layout.useDiv,showTable:m.value.table.show}),F=i.computed(()=>({height:y.value.inside?704:512,width:512})),N=i.computed(()=>({top:y.value.inside?64:0,left:0,height:512,width:512})),D=i.computed(()=>(N.value.width-m.value.style.chart.layout.grid.size*m.value.style.chart.layout.grid.spaceBetween)/m.value.style.chart.layout.grid.size);function H(B){const x=B.reduce((W,ue)=>W+ue,0),S=B.map(W=>Math.round(W/x*100)/100),Q=S.reduce((W,ue)=>W+ue,0);if(Q!==1){const W=S.length-1;S[W]+=1-Q,S[W]=Math.round(S[W]*100)/100}return S}const R=i.computed(()=>n.dataset.map((B,x)=>({...B,color:Nr(B.color)||It[x]||It[x%It.length],uid:`serie_${x}`}))),U=i.computed(()=>{const B=R.value.filter((x,S)=>!le.value.includes(x.uid)).map((x,S)=>x.values.reduce((Q,W)=>Q+W));return H(B)}),I=i.computed(()=>{const B=R.value.map((x,S)=>x.values.reduce((Q,W)=>Q+W));return H(B)}),O=i.computed(()=>R.value.filter((B,x)=>!le.value.includes(B.uid)).map((B,x)=>({uid:B.uid,name:B.name,color:B.color,value:B.values.reduce((S,Q)=>S+Q,0),absoluteValues:B.values,proportion:U.value[x]*Math.pow(m.value.style.chart.layout.grid.size,2)})).sort((B,x)=>x.value-B.value)),q=i.computed(()=>R.value.map((B,x)=>({uid:B.uid,name:B.name,color:B.color,value:B.values.reduce((S,Q)=>S+Q,0),absoluteValues:B.values,proportion:I.value[x]*Math.pow(m.value.style.chart.layout.grid.size,2)})).sort((B,x)=>x.value-B.value));function T(){return q.value.map(B=>({name:B.name,color:B.color,value:B.value,proportion:B.proportion/Math.pow(m.value.style.chart.layout.grid.size,2)}))}e({getData:T});const L=i.computed(()=>O.value.map((B,x)=>{const S=x>0?O.value.filter((ue,Ce)=>Ce<x).map(ue=>ue.proportion).reduce((ue,Ce)=>ue+Ce)+B.proportion-O.value[x-1].proportion:B.proportion-B.proportion,Q=S+B.proportion,W=[];for(let ue=S;ue<=Q;ue+=1)W.push(ue);return{...B,start:x>0?O.value.filter((ue,Ce)=>Ce<x).map(ue=>ue.proportion).reduce((ue,Ce)=>ue+Ce)+B.proportion-O.value[x-1].proportion:B.proportion-B.proportion,rects:W}})),G=i.computed(()=>L.value.flatMap((B,x)=>B.rects.map((S,Q)=>({name:B.name,color:B.color,value:B.value,serieIndex:x,...B})))),Y=i.computed(()=>{const B=[];for(let x=0;x<m.value.style.chart.layout.grid.size;x+=1)for(let S=0;S<m.value.style.chart.layout.grid.size;S+=1)B.push({x:(m.value.style.chart.layout.grid.vertical?x:S)*(D.value+m.value.style.chart.layout.grid.spaceBetween),y:(m.value.style.chart.layout.grid.vertical?S:x)*(D.value+m.value.style.chart.layout.grid.spaceBetween)+N.value.top});return B}),se=i.computed(()=>R.value.map((B,x)=>({name:B.name,color:B.color||It[x]||It[x%It.length],value:B.values.reduce((S,Q)=>S+Q,0),uid:B.uid})).sort((B,x)=>x.value-B.value)),he=i.computed(()=>O.value.map(B=>B.value).reduce((B,x)=>B+x,0));i.computed(()=>he.value/O.value.length);function ge(){c.value&&c.value.removeAttribute("open")}function re(B){if(le.value.length===n.dataset.length)return;const x=G.value[B];p.value=!0,d.value=G.value[B].serieIndex;let S="";S+=`<div style="width:100%;text-align:center;border-bottom:1px solid #ccc;padding-bottom:6px;margin-bottom:3px;">${x.name}</div>`,S+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><span style="color:${x.color};font-size:${m.value.style.chart.tooltip.fontSize*1.6}px;">◼</span>`,m.value.style.chart.tooltip.showValue&&(S+=`<b>${x.value.toFixed(m.value.style.chart.tooltip.roundingValue)}</b>`),m.value.style.chart.tooltip.showPercentage&&(m.value.style.chart.tooltip.showValue?S+=`<span>(${(x.value/he.value*100).toFixed(m.value.style.chart.tooltip.roundingPercentage)}%)</span></div>`:S+=`<b>${(x.value/he.value*100).toFixed(m.value.style.chart.tooltip.roundingPercentage)}%</b></div>`),h.value=S}const le=i.ref([]);function fe(B){le.value.includes(B)?le.value=le.value.filter(x=>x!==B):le.value.push(B),r("selectLegend",O.value.map(x=>({name:x.name,color:x.color,value:x.value,proportion:x.proportion/Math.pow(m.value.style.chart.layout.grid.size,2)})))}const Ue=i.computed(()=>{const B=O.value.map(S=>({name:S.name,color:S.color})),x=O.value.map(S=>S.value);return{head:B,body:x}});function b(){o.value=!0,GA({domElement:document.getElementById(`vue-ui-waffle_${a.value}`),fileName:m.value.style.chart.title.text||"vue-ui-waffle"}).finally(()=>{o.value=!1})}function _(){i.nextTick(()=>{const B=Ue.value.head.map((S,Q)=>[[S.name],[Ue.value.body[Q]],[isNaN(Ue.value.body[Q]/he.value)?"-":Ue.value.body[Q]/he.value*100]]),x=[[m.value.style.chart.title.text],[m.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(B);ei(x,m.value.style.chart.title.text||"vue-ui-waffle")})}return(B,x)=>(i.openBlock(),i.createElementBlock("div",{class:"vue-ui-waffle",ref_key:"waffleChart",ref:s,id:`vue-ui-waffle_${a.value}`,style:i.normalizeStyle(`font-family:${m.value.style.fontFamily};width:100%; text-align:center`)},[(!y.value.inside||o.value)&&m.value.style.chart.title.text?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(`width:100%;background:${m.value.style.chart.backgroundColor};padding-bottom:12px`)},[i.createElementVNode("div",{style:i.normalizeStyle(`width:100%;text-align:center;color:${m.value.style.chart.title.color};font-size:${m.value.style.chart.title.fontSize}px;font-weight:${m.value.style.chart.title.bold?"bold":""}`)},i.toDisplayString(m.value.style.chart.title.text),5),m.value.style.chart.title.subtitle.text?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(`width:100%;text-align:center;color:${m.value.style.chart.title.subtitle.color};font-size:${m.value.style.chart.title.subtitle.fontSize}px;font-weight:${m.value.style.chart.title.subtitle.bold?"bold":""}`)},i.toDisplayString(m.value.style.chart.title.subtitle.text),5)):i.createCommentVNode("",!0)],4)):i.createCommentVNode("",!0),m.value.userOptions.show?(i.openBlock(),i.createElementBlock("details",{key:1,class:"vue-ui-waffle-user-options",style:i.normalizeStyle(`background:${m.value.style.chart.backgroundColor};color:${m.value.style.chart.color}`),"data-html2canvas-ignore":"",ref_key:"details",ref:c},[i.createElementVNode("summary",{style:i.normalizeStyle(`background:${m.value.style.chart.backgroundColor};color:${m.value.style.chart.color}`)},i.toDisplayString(m.value.userOptions.title),5),i.createElementVNode("div",{class:"vue-ui-waffle-user-options-items",style:i.normalizeStyle(`background:${m.value.style.chart.backgroundColor};color:${m.value.style.chart.color}`)},[i.createElementVNode("div",A9,[i.withDirectives(i.createElementVNode("input",{type:"checkbox",id:`vue-ui-waffle-option-title_${a.value}`,name:`vue-ui-waffle-option-title_${a.value}`,"onUpdate:modelValue":x[0]||(x[0]=S=>y.value.inside=S)},null,8,i9),[[i.vModelCheckbox,y.value.inside]]),i.createElementVNode("label",{for:`vue-ui-waffle-option-title_${a.value}`},i.toDisplayString(m.value.userOptions.labels.useDiv),9,o9)]),i.createElementVNode("div",s9,[i.withDirectives(i.createElementVNode("input",{type:"checkbox",id:`vue-ui-waffle-option-table_${a.value}`,name:`vue-ui-waffle-option-table_${a.value}`,"onUpdate:modelValue":x[1]||(x[1]=S=>y.value.showTable=S)},null,8,l9),[[i.vModelCheckbox,y.value.showTable]]),i.createElementVNode("label",{for:`vue-ui-waffle-option-table_${a.value}`},i.toDisplayString(m.value.userOptions.labels.showTable),9,c9)]),i.createElementVNode("button",{class:"vue-ui-waffle-button",onClick:b,disabled:o.value,style:i.normalizeStyle([{"margin-top":"12px"},`background:${m.value.style.chart.backgroundColor};color:${m.value.style.chart.color}`])},[o.value?(i.openBlock(),i.createElementBlock("svg",{key:0,class:"vue-ui-waffle-print-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:m.value.style.chart.color,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},f9,8,h9)):(i.openBlock(),i.createElementBlock("span",d9,"PDF"))],12,u9),i.createElementVNode("button",{class:"vue-ui-waffle-button",onClick:_,style:i.normalizeStyle(`background:${m.value.style.chart.backgroundColor};color:${m.value.style.chart.color}`)}," XLSX ",4)],4)],4)):i.createCommentVNode("",!0),(i.openBlock(),i.createElementBlock("svg",{viewBox:`0 0 ${F.value.width} ${F.value.height}`,style:i.normalizeStyle(`max-width:100%;overflow:visible;background:${m.value.style.chart.backgroundColor};color:${m.value.style.chart.color}`),onClick:ge},[i.createElementVNode("defs",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(G.value,(S,Q)=>(i.openBlock(),i.createElementBlock("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`gradient_${a.value}_${Q}`},[i.createElementVNode("stop",{offset:"0%","stop-color":`${i.unref(eA)(S.color,.05)}${i.unref(yt)[100-m.value.style.chart.layout.rect.gradientIntensity]}`},null,8,m9),i.createElementVNode("stop",{offset:"100%","stop-color":S.color},null,8,y9)],8,p9))),256))]),m.value.style.chart.title.text&&y.value.inside&&!o.value?(i.openBlock(),i.createElementBlock("g",v9,[i.createElementVNode("text",{"font-size":m.value.style.chart.title.fontSize,fill:m.value.style.chart.title.color,x:F.value.width/2,y:m.value.style.chart.title.fontSize,"text-anchor":"middle",style:i.normalizeStyle(`font-weight:${m.value.style.chart.title.bold?"bold":""}`)},i.toDisplayString(m.value.style.chart.title.text),13,w9),m.value.style.chart.title.subtitle.text?(i.openBlock(),i.createElementBlock("text",{key:0,"font-size":m.value.style.chart.title.subtitle.fontSize,fill:m.value.style.chart.title.subtitle.color,x:F.value.width/2,y:m.value.style.chart.title.fontSize*2,"text-anchor":"middle",style:i.normalizeStyle(`font-weight:${m.value.style.chart.title.subtitle.bold?"bold":""}`)},i.toDisplayString(m.value.style.chart.title.subtitle.text),13,B9)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Y.value,(S,Q)=>(i.openBlock(),i.createElementBlock("rect",{rx:m.value.style.chart.layout.rect.rounded?m.value.style.chart.layout.rect.rounding:0,x:S.x,y:S.y,height:D.value,width:D.value,fill:"white",stroke:m.value.style.chart.layout.rect.stroke,"stroke-width":m.value.style.chart.layout.rect.strokeWidth},null,8,x9))),256)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Y.value,(S,Q)=>(i.openBlock(),i.createElementBlock("rect",{onMouseover:W=>re(Q),onMouseleave:x[2]||(x[2]=W=>{p.value=!1,d.value=null}),rx:m.value.style.chart.layout.rect.rounded?m.value.style.chart.layout.rect.rounding:0,x:S.x,y:S.y,height:D.value,width:D.value,fill:m.value.style.chart.layout.rect.useGradient&&m.value.style.chart.layout.rect.gradientIntensity>0?`url(#gradient_${a.value}_${Q})`:G.value[Q].color,stroke:m.value.style.chart.layout.rect.stroke,"stroke-width":m.value.style.chart.layout.rect.strokeWidth},null,40,b9))),256)),m.value.style.chart.legend.show&&y.value.inside&&!o.value?(i.openBlock(),i.createElementBlock("foreignObject",C9,[i.createElementVNode("div",{class:"vue-ui-waffle-legend",style:i.normalizeStyle(`font-weight:${m.value.style.chart.legend.bold?"bold":""};background:${m.value.style.chart.legend.backgroundColor};color:${m.value.style.chart.legend.color};font-size:${m.value.style.chart.legend.fontSize}px;padding-bottom:12px;font-weight:${m.value.style.chart.legend.bold?"bold":""}`),onClick:ge},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(se.value,(S,Q)=>(i.openBlock(),i.createElementBlock("div",{class:"vue-ui-waffle-legend-item",onClick:W=>fe(S.uid),style:i.normalizeStyle(`opacity:${le.value.includes(S.uid)?.5:1}`)},[i.createElementVNode("span",{style:i.normalizeStyle(`color:${S.color};font-size:${m.value.style.chart.legend.fontSize*1.6}px`)},"◼",4),i.createElementVNode("span",null,i.toDisplayString(S.name)+" : ",1),i.createElementVNode("span",null,i.toDisplayString(S.value.toFixed(m.value.style.chart.legend.roundingValue)),1),le.value.includes(S.uid)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",_9,"("+i.toDisplayString(isNaN(S.value/he.value)?"-":(S.value/he.value*100).toFixed(m.value.style.chart.legend.roundingPercentage))+"%)",1))],12,E9))),256))],4)])):i.createCommentVNode("",!0)],12,g9)),m.value.style.chart.legend.show&&(!y.value.inside||o.value)?(i.openBlock(),i.createElementBlock("div",{key:2,class:"vue-ui-waffle-legend",style:i.normalizeStyle(`font-weight:${m.value.style.chart.legend.bold?"bold":""};background:${m.value.style.chart.legend.backgroundColor};color:${m.value.style.chart.legend.color};font-size:${m.value.style.chart.legend.fontSize}px;padding-bottom:12px;font-weight:${m.value.style.chart.legend.bold?"bold":""}`),onClick:ge},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(se.value,(S,Q)=>(i.openBlock(),i.createElementBlock("div",{class:"vue-ui-waffle-legend-item",onClick:W=>fe(S.uid),style:i.normalizeStyle(`opacity:${le.value.includes(S.uid)?.5:1}`)},[i.createElementVNode("span",{style:i.normalizeStyle(`color:${S.color};font-size:${m.value.style.chart.legend.fontSize*1.6}px`)},"◼",4),i.createElementVNode("span",null,i.toDisplayString(S.name)+" : ",1),i.createElementVNode("span",null,i.toDisplayString(S.value.toFixed(m.value.style.chart.legend.roundingValue)),1),le.value.includes(S.uid)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",S9,"("+i.toDisplayString(isNaN(S.value/he.value)?"-":(S.value/he.value*100).toFixed(m.value.style.chart.legend.roundingPercentage))+"%)",1))],12,F9))),256))],4)):i.createCommentVNode("",!0),m.value.style.chart.tooltip.show&&p.value&&le.value.length<n.dataset.length?(i.openBlock(),i.createElementBlock("div",{key:3,class:"vue-ui-waffle-tooltip",ref_key:"tooltip",ref:l,style:i.normalizeStyle(`top:${w.value.top}px;left:${w.value.left}px;background:${m.value.style.chart.tooltip.backgroundColor};color:${m.value.style.chart.tooltip.color}`),innerHTML:h.value},null,12,k9)):i.createCommentVNode("",!0),y.value.showTable?(i.openBlock(),i.createElementBlock("div",{key:4,onClick:ge,class:"vue-ui-waffle-table",style:i.normalizeStyle(`width:100%;margin-top:${y.value.inside?"48px":""}`)},[i.createElementVNode("table",null,[i.createElementVNode("thead",null,[m.value.style.chart.title.text?(i.openBlock(),i.createElementBlock("tr",T9,[i.createElementVNode("th",{colspan:"3",style:i.normalizeStyle(`background:${m.value.table.th.backgroundColor};color:${m.value.table.th.color};outline:${m.value.table.th.outline}`)},[i.createElementVNode("span",null,i.toDisplayString(m.value.style.chart.title.text),1),m.value.style.chart.title.subtitle.text?(i.openBlock(),i.createElementBlock("span",N9," : "+i.toDisplayString(m.value.style.chart.title.subtitle.text),1)):i.createCommentVNode("",!0)],4)])):i.createCommentVNode("",!0),i.createElementVNode("tr",null,[i.createElementVNode("th",{align:"right",style:i.normalizeStyle(`background:${m.value.table.th.backgroundColor};color:${m.value.table.th.color};outline:${m.value.table.th.outline};padding-right:6px`)},L9,4),i.createElementVNode("th",{style:i.normalizeStyle(`background:${m.value.table.th.backgroundColor};color:${m.value.table.th.color};outline:${m.value.table.th.outline};text-align:right;padding-right:6px`)},i.toDisplayString(he.value.toFixed(m.value.table.td.roundingValue)),5),i.createElementVNode("th",{style:i.normalizeStyle(`background:${m.value.table.th.backgroundColor};color:${m.value.table.th.color};outline:${m.value.table.th.outline};text-align:right;padding-right:6px`)}," 100% ",4)])]),i.createElementVNode("tbody",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Ue.value.head,(S,Q)=>(i.openBlock(),i.createElementBlock("tr",null,[i.createElementVNode("td",{style:i.normalizeStyle(`background:${m.value.table.td.backgroundColor};color:${m.value.table.td.color};outline:${m.value.table.td.outline}`)},[i.createElementVNode("div",U9,[i.createElementVNode("span",{style:i.normalizeStyle(`color:${S.color};margin-right:6px;`)},"◼",4),i.createElementVNode("span",null,i.toDisplayString(S.name),1)])],4),i.createElementVNode("td",{style:i.normalizeStyle(`background:${m.value.table.td.backgroundColor};color:${m.value.table.td.color};outline:${m.value.table.td.outline}`)},i.toDisplayString(Ue.value.body[Q].toFixed(m.value.table.td.roundingValue)),5),i.createElementVNode("td",{style:i.normalizeStyle(`background:${m.value.table.td.backgroundColor};color:${m.value.table.td.color};outline:${m.value.table.td.outline}`)},i.toDisplayString(isNaN(Ue.value.body[Q]/he.value)?"-":(Ue.value.body[Q]/he.value*100).toFixed(m.value.table.td.roundingPercentage))+"% ",5)]))),256))])])],4)):i.createCommentVNode("",!0)],12,a9))}},[["__scopeId","data-v-1d2a2a37"]]),Qoe="",D9=["id"],Q9={class:"vue-ui-radar-user-option-item"},O9=["id","name"],P9=["for"],M9={class:"vue-ui-radar-user-option-item"},R9=["id","name"],H9=["for"],V9=["disabled"],$9=["stroke"],z9=[i.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-dbff0f7d></path><path d="M18 16v.01" data-v-dbff0f7d></path><path d="M6 16v.01" data-v-dbff0f7d></path><path d="M12 5v.01" data-v-dbff0f7d></path><path d="M12 12v.01" data-v-dbff0f7d></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-dbff0f7d></path>',6)],K9={key:1},G9=["viewBox"],j9=["id"],W9=["stop-color"],X9=["stop-color"],q9={key:0},Y9=["font-size","fill","x","y"],J9=["font-size","fill","x","y"],Z9={key:1},eH=["x1","y1","x2","y2","stroke","stroke-width"],tH={key:0},rH=["d","stroke","stroke-width"],nH=["d","stroke","stroke-width"],aH={key:2},AH=["x","y","text-anchor","font-size","fill","onMouseenter"],iH={key:0},oH=["d","stroke","stroke-width","fill"],sH={key:3},lH=["cx","cy","fill","r"],cH={key:4,x:0,y:340,width:"100%",height:"60",style:{overflow:"visible"}},uH=["onClick"],hH=["onClick"],fH=["innerHTML"],dH={key:0},gH=["colspan"],pH={key:0},mH=["colspan"],yH={style:{width:"100%"}},vH=Ba({__name:"vue-ui-radar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["selectLegend"],setup(t,{expose:e,emit:r}){const n=t,a=i.ref(`vue-ui-radar-${Math.random()}`),A=i.ref(ia.vue_ui_radar),o=i.ref(!1),s=i.ref(null),l=i.ref(null),c=i.ref(null),u=i.ref({x:0,y:0}),p=i.ref(!1),h=i.ref("");i.onMounted(()=>{document.addEventListener("mousemove",d)}),i.onBeforeUnmount(()=>{document.removeEventListener("mousemove",d)});function d(b){u.value.x=b.clientX,u.value.y=b.clientY}const w=i.computed(()=>{let b=0,_=48;if(l.value&&s.value){const{width:B,height:x}=l.value.getBoundingClientRect(),S=s.value.getBoundingClientRect();u.value.x+B/2>S.right?b=-B:u.value.x-B/2<S.left?b=0:b=-B/2,u.value.y+x>S.bottom&&(_=-x-48)}return{top:u.value.y+_,left:u.value.x+b}}),f=i.computed(()=>{if(!Object.keys(n.config||{}).length)return A.value;const b=Wn({defaultConfig:A.value,userConfig:n.config});return Xn(b)}),m=i.ref({dataLabels:{show:f.value.style.chart.layout.labels.dataLabels.show},inside:!f.value.style.chart.layout.useDiv,showTable:f.value.table.show}),y=i.computed(()=>({height:m.value.inside?412:312,width:512})),F=i.ref([]);function N(b){F.value.includes(b)?F.value=F.value.filter(_=>_!==b):F.value.push(b),r("selectLegend",se.value.filter((_,B)=>!F.value.includes(B)).map(_=>({name:_.name,color:_.color,proportion:_.totalProportion})))}function D(){return se.value.map(b=>({name:b.name,color:b.color,proportion:b.totalProportion}))}e({getData:D});const H=i.computed(()=>n.dataset.categories.map((b,_)=>({name:b.name,categoryId:`radar_category_${a.value}_${_}`,color:Nr(b.color)||It[_]||It[_%It.length]}))),R=i.computed(()=>n.dataset.series.map((b,_)=>({...b,color:Nr(b.color)||It[_]||It[_%It.length],serieId:`radar_serie_${a.value}_${_}`}))),U=i.computed(()=>Math.max(...R.value.flatMap(b=>b.values))),I=i.computed(()=>R.value.length),O=i.computed(()=>tA({plot:{x:256,y:y.value.height/2},radius:128,sides:I.value,rotation:0})),q=i.computed(()=>{const b=[];for(let _=0;_<128;_+=128/f.value.style.chart.layout.grid.graduations)b.push(_);return b}),T=i.computed(()=>O.value.coordinates.map((b,_)=>{const B=R.value[_].values.map(x=>G({centerX:y.value.width/2,centerY:y.value.height/2,apexX:b.x,apexY:b.y,proportion:x/(R.value[_].target||U.value)}));return{...b,...R.value[_],plots:B}}));function L({x:b,y:_}){let B="middle";return b=Math.round(b),_=Math.round(_),b>y.value.width/2&&(b+=12,B="start"),b<y.value.width/2&&(b-=12,B="end"),_>y.value.height/2&&(_+=20),_<y.value.height/2&&(_-=12),_===y.value.height/2&&(_+=4),{x:b,y:_,anchor:B}}function G({centerX:b,centerY:_,apexX:B,apexY:x,proportion:S}){return{x:b+(B-b)*S,y:_+(x-_)*S}}function Y(b){let _="";return b.forEach(B=>{_+=`${B.x},${B.y} `}),`M${_}Z`}const se=i.computed(()=>{const b=R.value.map((_,B)=>_.values.map(x=>x/(_.target||U.value)));return H.value.map((_,B)=>({..._,totalProportion:b.map(x=>x[B]).reduce((x,S)=>x+S,0)/R.value.length}))}),he=i.computed(()=>{const b=[{name:"",color:""},{name:f.value.translations.target,color:""},...se.value],_=n.dataset.series.map((B,x)=>[B.name,B.target,...B.values.flatMap(S=>[S?S.toFixed(f.value.table.td.roundingValue):"-",isNaN(S/B.target)?"":(S/B.target*100).toFixed(f.value.table.td.roundingPercentage)+"%"])]);return{head:b,body:_}}),ge=i.ref(null);function re(b,_){ge.value=_,p.value=!0;let B="";B+=`<div style="width:100%;text-align:center;border-bottom:1px solid #ccc;padding-bottom:6px;margin-bottom:3px;">${b.name}</div>`;for(let x=0;x<b.values.length;x+=1)F.value.includes(x)||(B+=`<div style="display:flex;flex-wrap:wrap;align-items:center;gap:6px"><span style="color:${H.value[x].color}">●</span><span>${H.value[x].name}</span> : ${f.value.style.chart.tooltip.showValue?`<span>${b.values[x].toFixed(f.value.style.chart.tooltip.roundingValue)}</span>`:""} ${!f.value.style.chart.tooltip.showValue&&f.value.style.chart.tooltip.showPercentage?`<span>${(b.values[x]/b.target*100).toFixed(f.value.style.chart.tooltip.roundingPercentage)}%</span>`:f.value.style.chart.tooltip.showPercentage?`<span>(${(b.values[x]/b.target*100).toFixed(f.value.style.chart.tooltip.roundingPercentage)}%)</span>`:""}</div>`);h.value=B}function le(){o.value=!0,GA({domElement:document.getElementById(`vue-ui-radar_${a.value}`),fileName:f.value.style.chart.title.text||"vue-ui-radar"}).finally(()=>{o.value=!1})}function fe(){i.nextTick(()=>{const b=[[f.value.style.chart.title.text],[f.value.style.chart.title.subtitle.text],[""]],_=[[""],[f.value.translations.target],...se.value.flatMap(S=>[[S.name],["%"]])],B=n.dataset.series.map((S,Q)=>[S.name,S.target,...S.values.flatMap(W=>[W,isNaN(W/S.target)?"":W/S.target*100])]),x=b.concat([_]).concat(B);ei(x,f.value.style.chart.title.text||"vue-ui-radar")})}function Ue(){c.value&&c.value.removeAttribute("open")}return(b,_)=>(i.openBlock(),i.createElementBlock("div",{class:"vue-ui-radar",ref_key:"radarChart",ref:s,id:`vue-ui-radar_${a.value}`,style:i.normalizeStyle(`font-family:${f.value.style.fontFamily};width:100%; text-align:center`)},[(!m.value.inside||o.value)&&f.value.style.chart.title.text?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(`width:100%;background:${f.value.style.chart.backgroundColor};padding-bottom:12px`)},[i.createElementVNode("div",{style:i.normalizeStyle(`width:100%;text-align:center;color:${f.value.style.chart.title.color};font-size:${f.value.style.chart.title.fontSize}px;font-weight:${f.value.style.chart.title.bold?"bold":""}`)},i.toDisplayString(f.value.style.chart.title.text),5),f.value.style.chart.title.subtitle.text?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(`width:100%;text-align:center;color:${f.value.style.chart.title.subtitle.color};font-size:${f.value.style.chart.title.subtitle.fontSize}px;font-weight:${f.value.style.chart.title.subtitle.bold?"bold":""}`)},i.toDisplayString(f.value.style.chart.title.subtitle.text),5)):i.createCommentVNode("",!0)],4)):i.createCommentVNode("",!0),f.value.userOptions.show?(i.openBlock(),i.createElementBlock("details",{key:1,class:"vue-ui-radar-user-options",style:i.normalizeStyle(`background:${f.value.style.chart.backgroundColor};color:${f.value.style.chart.color}`),"data-html2canvas-ignore":"",ref_key:"details",ref:c},[i.createElementVNode("summary",{style:i.normalizeStyle(`background:${f.value.style.chart.backgroundColor};color:${f.value.style.chart.color}`)},i.toDisplayString(f.value.userOptions.title),5),i.createElementVNode("div",{class:"vue-ui-radar-user-options-items",style:i.normalizeStyle(`background:${f.value.style.chart.backgroundColor};color:${f.value.style.chart.color}`)},[i.createElementVNode("div",Q9,[i.withDirectives(i.createElementVNode("input",{type:"checkbox",id:`vue-ui-radar-option-title_${a.value}`,name:`vue-ui-radar-option-title_${a.value}`,"onUpdate:modelValue":_[0]||(_[0]=B=>m.value.inside=B)},null,8,O9),[[i.vModelCheckbox,m.value.inside]]),i.createElementVNode("label",{for:`vue-ui-radar-option-title_${a.value}`},i.toDisplayString(f.value.userOptions.labels.useDiv),9,P9)]),i.createElementVNode("div",M9,[i.withDirectives(i.createElementVNode("input",{type:"checkbox",id:`vue-ui-radar-option-table_${a.value}`,name:`vue-ui-radar-option-table_${a.value}`,"onUpdate:modelValue":_[1]||(_[1]=B=>m.value.showTable=B)},null,8,R9),[[i.vModelCheckbox,m.value.showTable]]),i.createElementVNode("label",{for:`vue-ui-radar-option-table_${a.value}`},i.toDisplayString(f.value.userOptions.labels.showTable),9,H9)]),i.createElementVNode("button",{class:"vue-ui-radar-button",onClick:le,disabled:o.value,style:i.normalizeStyle([{"margin-top":"12px"},`color:${f.value.style.chart.color}`])},[o.value?(i.openBlock(),i.createElementBlock("svg",{key:0,class:"vue-ui-radar-print-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:f.value.style.chart.color,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},z9,8,$9)):(i.openBlock(),i.createElementBlock("span",K9,"PDF"))],12,V9),i.createElementVNode("button",{class:"vue-ui-radar-button",onClick:fe,style:i.normalizeStyle(`color:${f.value.style.chart.color}`)}," XLSX ",4)],4)],4)):i.createCommentVNode("",!0),(i.openBlock(),i.createElementBlock("svg",{viewBox:`0 0 ${y.value.width} ${y.value.height}`,style:i.normalizeStyle(`max-width:100%;overflow:visible;background:${f.value.style.chart.backgroundColor};color:${f.value.style.chart.color}`),onClick:Ue},[i.createElementVNode("defs",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(H.value,(B,x)=>(i.openBlock(),i.createElementBlock("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`radar_gradient_${a.value}_${x}`},[i.createElementVNode("stop",{offset:"0%","stop-color":`${i.unref(eA)(B.color,.05)}${i.unref(yt)[f.value.style.chart.layout.dataPolygon.opacity]}`},null,8,W9),i.createElementVNode("stop",{offset:"100%","stop-color":B.color+i.unref(yt)[f.value.style.chart.layout.dataPolygon.opacity]},null,8,X9)],8,j9))),256))]),f.value.style.chart.title.text&&m.value.inside&&!o.value?(i.openBlock(),i.createElementBlock("g",q9,[i.createElementVNode("text",{"font-size":f.value.style.chart.title.fontSize,fill:f.value.style.chart.title.color,x:y.value.width/2,y:f.value.style.chart.title.fontSize,"text-anchor":"middle",style:i.normalizeStyle(`font-weight:${f.value.style.chart.title.bold?"bold":""}`)},i.toDisplayString(f.value.style.chart.title.text),13,Y9),f.value.style.chart.title.subtitle.text?(i.openBlock(),i.createElementBlock("text",{key:0,"font-size":f.value.style.chart.title.subtitle.fontSize,fill:f.value.style.chart.title.subtitle.color,x:y.value.width/2,y:f.value.style.chart.title.fontSize*2,"text-anchor":"middle",style:i.normalizeStyle(`font-weight:${f.value.style.chart.title.subtitle.bold?"bold":""}`)},i.toDisplayString(f.value.style.chart.title.subtitle.text),13,J9)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),f.value.style.chart.layout.grid.show?(i.openBlock(),i.createElementBlock("g",Z9,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(T.value,B=>(i.openBlock(),i.createElementBlock("line",{x1:y.value.width/2,y1:y.value.height/2,x2:B.x,y2:B.y,stroke:f.value.style.chart.layout.grid.stroke,"stroke-width":f.value.style.chart.layout.grid.strokeWidth},null,8,eH))),256)),f.value.style.chart.layout.grid.graduations>0?(i.openBlock(),i.createElementBlock("g",tH,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(q.value,B=>(i.openBlock(),i.createElementBlock("path",{d:i.unref(tA)({plot:{x:256,y:y.value.height/2},radius:B,sides:I.value,rotation:0}).path,fill:"none",stroke:f.value.style.chart.layout.grid.stroke,"stroke-width":f.value.style.chart.layout.grid.strokeWidth},null,8,rH))),256))])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("path",{d:O.value.path,fill:"none",stroke:f.value.style.chart.layout.outerPolygon.stroke,"stroke-width":f.value.style.chart.layout.outerPolygon.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,nH),f.value.style.chart.layout.labels.dataLabels.show?(i.openBlock(),i.createElementBlock("g",aH,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(T.value,(B,x)=>(i.openBlock(),i.createElementBlock("text",{x:L(B).x,y:L(B).y,"text-anchor":L(B).anchor,"font-size":f.value.style.chart.layout.labels.dataLabels.fontSize,fill:f.value.style.chart.layout.labels.dataLabels.color,onMouseenter:S=>re(B,x),onMouseleave:_[2]||(_[2]=S=>{p.value=!1,ge.value=null})},i.toDisplayString(B.name),41,AH))),256))])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(H.value,(B,x)=>(i.openBlock(),i.createElementBlock("g",null,[F.value.includes(x)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("g",iH,[i.createElementVNode("path",{d:Y(T.value.map(S=>S.plots[x])),stroke:B.color,"stroke-width":f.value.style.chart.layout.dataPolygon.strokeWidth,fill:f.value.style.chart.layout.dataPolygon.transparent?"transparent":f.value.style.chart.layout.dataPolygon.useGradient?`url(#radar_gradient_${a.value}_${x})`:B.color+i.unref(yt)[f.value.style.chart.layout.dataPolygon.opacity]},null,8,oH)]))]))),256)),f.value.style.chart.layout.plots.show?(i.openBlock(),i.createElementBlock("g",sH,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(T.value,(B,x)=>(i.openBlock(),i.createElementBlock("g",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(B.plots,(S,Q)=>(i.openBlock(),i.createElementBlock("circle",{cx:S.x,cy:S.y,fill:F.value.includes(Q)?"transparent":H.value[Q].color,r:ge.value!==null&&ge.value===x?f.value.style.chart.layout.plots.radius*1.6:f.value.style.chart.layout.plots.radius},null,8,lH))),256))]))),256))])):i.createCommentVNode("",!0),f.value.style.chart.legend.show&&m.value.inside&&!o.value?(i.openBlock(),i.createElementBlock("foreignObject",cH,[i.createElementVNode("div",{class:"vue-ui-radar-legend",style:i.normalizeStyle(`font-weight:${f.value.style.chart.legend.bold?"bold":""};color:${f.value.style.chart.legend.color};font-size:${f.value.style.chart.legend.fontSize}px;padding-bottom:12px;font-weight:${f.value.style.chart.legend.bold?"bold":""}`),onClick:Ue},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(se.value,(B,x)=>(i.openBlock(),i.createElementBlock("div",{class:"vue-ui-radar-legend-item",onClick:S=>N(x),style:i.normalizeStyle(`opacity:${F.value.includes(x)?.5:1}`)},[i.createElementVNode("span",{style:i.normalizeStyle(`color:${B.color};font-size:${f.value.style.chart.legend.fontSize*1.6}px`)},"●",4),i.createElementVNode("span",null,i.toDisplayString(B.name)+" : ",1),i.createElementVNode("span",null,i.toDisplayString((B.totalProportion*100).toFixed(f.value.style.chart.legend.roundingPercentage))+"%",1)],12,uH))),256))],4)])):i.createCommentVNode("",!0)],12,G9)),f.value.style.chart.legend.show&&(!m.value.inside||o.value)?(i.openBlock(),i.createElementBlock("div",{key:2,class:"vue-ui-radar-legend",style:i.normalizeStyle(`font-weight:${f.value.style.chart.legend.bold?"bold":""};background:${f.value.style.chart.legend.backgroundColor};color:${f.value.style.chart.legend.color};font-size:${f.value.style.chart.legend.fontSize}px;padding-bottom:12px;font-weight:${f.value.style.chart.legend.bold?"bold":""}`),onClick:Ue},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(se.value,(B,x)=>(i.openBlock(),i.createElementBlock("div",{class:"vue-ui-radar-legend-item",onClick:S=>N(x),style:i.normalizeStyle(`opacity:${F.value.includes(x)?.5:1}`)},[i.createElementVNode("span",{style:i.normalizeStyle(`color:${B.color};font-size:${f.value.style.chart.legend.fontSize*1.6}px`)},"●",4),i.createElementVNode("span",null,i.toDisplayString(B.name)+" : ",1),i.createElementVNode("span",null,i.toDisplayString((B.totalProportion*100).toFixed(f.value.style.chart.legend.roundingPercentage))+"%",1)],12,hH))),256))],4)):i.createCommentVNode("",!0),f.value.style.chart.tooltip.show&&p.value?(i.openBlock(),i.createElementBlock("div",{key:3,class:"vue-ui-radar-tooltip",ref_key:"tooltip",ref:l,style:i.normalizeStyle(`top:${w.value.top}px;left:${w.value.left}px;background:${f.value.style.chart.tooltip.backgroundColor};color:${f.value.style.chart.tooltip.color}`),innerHTML:h.value},null,12,fH)):i.createCommentVNode("",!0),m.value.showTable?(i.openBlock(),i.createElementBlock("div",{key:4,onClick:Ue,class:"vue-ui-radar-table",style:i.normalizeStyle(`width:100%;margin-top:${m.value.inside?"48px":""}`)},[i.createElementVNode("table",null,[i.createElementVNode("thead",null,[f.value.style.chart.title.text?(i.openBlock(),i.createElementBlock("tr",dH,[i.createElementVNode("th",{colspan:se.value.length+2+3,style:i.normalizeStyle(`background:${f.value.table.th.backgroundColor};color:${f.value.table.th.color};outline:${f.value.table.th.outline}`)},[i.createElementVNode("span",null,i.toDisplayString(f.value.style.chart.title.text),1),f.value.style.chart.title.subtitle.text?(i.openBlock(),i.createElementBlock("span",pH," : "+i.toDisplayString(f.value.style.chart.title.subtitle.text),1)):i.createCommentVNode("",!0)],12,gH)])):i.createCommentVNode("",!0),i.createElementVNode("tr",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(he.value.head,B=>(i.openBlock(),i.createElementBlock("th",{colspan:B.color?2:1,style:i.normalizeStyle(`background:${f.value.table.th.backgroundColor};color:${f.value.table.th.color};outline:${f.value.table.th.outline}`)},[i.createElementVNode("div",yH,[B.color?(i.openBlock(),i.createElementBlock("span",{key:0,style:i.normalizeStyle(`color:${B.color};margin-right:3px`)},"●",4)):i.createCommentVNode("",!0),i.createElementVNode("span",null,i.toDisplayString(B.name),1)])],12,mH))),256))])]),i.createElementVNode("tbody",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(he.value.body,B=>(i.openBlock(),i.createElementBlock("tr",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(B,x=>(i.openBlock(),i.createElementBlock("td",{style:i.normalizeStyle(`background:${f.value.table.td.backgroundColor};color:${f.value.table.td.color};outline:${f.value.table.td.outline}`)},i.toDisplayString(x),5))),256))]))),256))])])],4)):i.createCommentVNode("",!0)],12,D9))}},[["__scopeId","data-v-dbff0f7d"]]),Moe="",wH=["id"],BH={class:"vue-ui-quadrant-user-option-item"},xH=["id","name"],bH=["for"],CH={class:"vue-ui-quadrant-user-option-item"},EH=["id","name"],_H=["for"],FH={class:"vue-ui-quadrant-user-option-item"},SH=["id","name"],kH=["for"],TH=["disabled"],NH=["stroke"],LH=[i.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-c200bf52></path><path d="M18 16v.01" data-v-c200bf52></path><path d="M6 16v.01" data-v-c200bf52></path><path d="M12 5v.01" data-v-c200bf52></path><path d="M12 12v.01" data-v-c200bf52></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-c200bf52></path>',6)],UH={key:1},IH=["viewBox"],DH=["id"],QH=["stop-color"],OH=["stop-color"],PH={key:0},MH=["font-size","fill","x","y"],RH=["font-size","fill","x","y"],HH={key:1},VH=["fill","x","y","height","width","stroke-width","stroke","rx"],$H=["x1","y1","x2","y2","stroke","stroke-width"],zH=["x1","y1","x2","y2","stroke","stroke-width"],KH={key:2},GH=["points","fill"],jH=["points","fill"],WH=["points","fill"],XH=["points","fill"],qH={key:3},YH=["y","fill","font-size"],JH=["x","y","fill","font-size"],ZH=["x","y","fill","font-size"],eV=["y","fill","font-size"],tV={key:4},rV=["x","y","font-size","fill"],nV=["x","y","font-size","fill"],aV=["x","y","font-size","fill"],AV=["font-size","fill"],iV=["font-size","fill"],oV=["font-size","fill"],sV={key:5},lV=["fill","points"],cV={key:0},uV=["cx","cy","r","fill","stroke","stroke-width","onMouseover","onClick"],hV={key:1},fV=["d","fill","stroke","stroke-width","onMouseover","onClick"],dV={key:2},gV=["d","fill","stroke","stroke-width","onMouseover","onClick"],pV={key:3},mV=["d","fill","stroke","stroke-width","onMouseover","onClick"],yV={key:4},vV=["d","fill","stroke","stroke-width","onMouseover","onClick"],wV={key:5},BV=["d","fill","stroke","stroke-width","onMouseover","onClick"],xV={key:6},bV=["points","fill","stroke","stroke-width","onMouseover","onClick"],CV={key:6},EV=["x","y","font-size","fill"],_V=["y"],FV=["onClick"],SV=["innerHTML"],kV=["onClick"],TV=["innerHTML"],NV=["innerHTML"],LV={key:0},UV={key:0},IV={style:{width:"100%"}},DV=Ba({__name:"vue-ui-quadrant",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectPlot","selectSide","selectLegend"],setup(t,{expose:e,emit:r}){const n=t,a=i.ref(`vue-ui-quadrant-${Math.random()}`),A=i.ref(ia.vue_ui_quadrant),o=i.ref(!1),s=i.ref(null),l=i.ref(null),c=i.ref(null),u=i.ref({x:0,y:0}),p=i.ref(!1),h=i.ref("");i.onMounted(()=>{document.addEventListener("mousemove",d);const _=document.getElementById("xLabelMin");if(_){const Q=_.getBBox().height/2+y.value.padding*.6,W=y.value.centerY;_.setAttributeNS(null,"transform",`rotate(-90, ${Q}, ${W})`),_.setAttributeNS(null,"x",Q),_.setAttributeNS(null,"y",W)}const B=document.getElementById("xLabelMax");if(B){const Q=B.getBBox().height/2+y.value.right,W=y.value.centerY;B.setAttributeNS(null,"transform",`rotate(90, ${Q}, ${W})`),B.setAttributeNS(null,"x",Q),B.setAttributeNS(null,"y",W)}const x=document.getElementById("xLabelMaxName");if(x){const Q=x.getBBox().height/2+y.value.right+y.value.padding*.3,W=y.value.centerY;x.setAttributeNS(null,"transform",`rotate(90, ${Q}, ${W})`),x.setAttributeNS(null,"x",Q),x.setAttributeNS(null,"y",W)}}),i.onBeforeUnmount(()=>{document.removeEventListener("mousemove",d)});function d(_){u.value.x=_.clientX,u.value.y=_.clientY}const w=i.computed(()=>{let _=0,B=48;if(l.value&&s.value){const{width:x,height:S}=l.value.getBoundingClientRect(),Q=s.value.getBoundingClientRect();u.value.x+x/2>Q.right?_=-x:u.value.x-x/2<Q.left?_=0:_=-x/2,u.value.y+S>Q.bottom&&(B=-S-48)}return{top:u.value.y+B,left:u.value.x+_}}),f=i.computed(()=>{if(!Object.keys(n.config||{}).length)return A.value;const _=Wn({defaultConfig:A.value,userConfig:n.config});return Xn(_)}),m=i.ref({plotLabels:{show:f.value.style.chart.layout.labels.plotLabels.show},inside:!f.value.style.chart.layout.useDiv,showTable:f.value.table.show}),y=i.computed(()=>{const _=m.value.inside?100:0,B=m.value.inside?100:0,x=48;return{height:f.value.style.chart.height+_+B,usableHeight:f.value.style.chart.height-x*2,width:f.value.style.chart.width,usableWidth:f.value.style.chart.width-x*2,top:_+x,left:x,right:f.value.style.chart.width-x,bottom:f.value.style.chart.height+_-x,centerX:f.value.style.chart.width/2,centerY:f.value.style.chart.height+_-f.value.style.chart.height/2,padding:x}}),F=i.computed(()=>{const _=f.value.style.chart.layout.grid.graduations.steps,B=y.value.usableWidth/(_*2),x=y.value.top,S=[];for(let Q=0;Q<_;Q+=1)S.push({x:y.value.padding+B*Q,y:x+y.value.usableHeight*(Q/_/2),height:y.value.usableHeight*(1-Q/_),width:y.value.usableWidth*(1-Q/_),opacity:yt[Math.round((Q+1)/_*20)]});return S}),N=i.computed(()=>{let _=f.value.style.chart.layout.grid.xAxis.max,B=f.value.style.chart.layout.grid.xAxis.min,x=f.value.style.chart.layout.grid.yAxis.max,S=f.value.style.chart.layout.grid.yAxis.min;return f.value.style.chart.layout.grid.xAxis.auto&&(_=Math.max(...H.value.flatMap(Q=>Q.series.map(W=>W.x))),B=Math.min(...H.value.flatMap(Q=>Q.series.map(W=>W.x)))),f.value.style.chart.layout.grid.yAxis.auto&&(x=Math.max(...H.value.flatMap(Q=>Q.series.map(W=>W.y))),S=Math.min(...H.value.flatMap(Q=>Q.series.map(W=>W.y)))),{x:{max:_,min:B},y:{max:x,min:S}}}),D=i.ref([]),H=i.computed(()=>n.dataset.map((_,B)=>({..._,id:`cat_${B}_${a.value}`,color:Nr(_.color)||It[B]}))),R=i.computed(()=>H.value.filter(_=>!D.value.includes(_.id))),U=i.computed(()=>H.value.map((_,B)=>({..._,shape:_.shape||"circle",series:_.series.map(x=>({...x,x:O(x.x),y:q(x.y),xValue:x.x,yValue:x.y,quadrantSide:se({x:x.x,y:x.y}),categoryName:_.name,shape:_.shape,color:_.color}))}))),I=i.computed(()=>R.value.map((_,B)=>({..._,shape:_.shape||"circle",color:_.color||It[B],series:_.series.map(x=>({...x,x:O(x.x),y:q(x.y),xValue:x.x,yValue:x.y,quadrantSide:se({x:x.x,y:x.y}),categoryName:_.name,shape:_.shape,color:_.color}))})));function O(_){const B=_/N.value.x.max;return y.value.centerX+y.value.usableWidth/2*B}function q(_){const B=_/N.value.y.max;return y.value.centerY+(1-y.value.usableHeight/2*B)}const T=i.computed(()=>{const _=I.value.flatMap(W=>W.series.map(ue=>({x:ue.xValue,y:ue.yValue,name:ue.name,category:ue.categoryName,quadrantSide:ue.quadrantSide,sideName:f.value.style.chart.layout.labels.quadrantLabels[ue.quadrantSide].text,color:W.color,shape:W.shape}))),B=f.value.style.chart.layout.grid.xAxis.name||"x",x=f.value.style.chart.layout.grid.yAxis.name||"y",S=[f.value.translations.category,f.value.translations.item,B,x,f.value.translations.side],Q=_.map(W=>[W.category,W.name,W.x,W.y,W.sideName||W.quadrantSide]);return{head:S,body:Q}});function L(_,B){let x="";switch(_){case"circle":x=`<span style="color:${B}">●</span>`;break;case"triangle":x=`<span style="color:${B}">▲</span>`;break;case"square":x=`<span style="color:${B}">◼</span>`;break;case"diamond":x=`<span style="color:${B}">◆</span>`;break;case"pentagon":x=`<span style="color:${B}">⬟</span>`;break;case"hexagon":x=`<span style="color:${B}">⬣</span>`;break;case"star":x=`<span style="color:${B}">🟊</span>`;break}return x}const G=i.computed(()=>U.value.map(_=>({name:_.name,shapePath:L(_.shape,_.color),id:_.id})));function Y(_){D.value.includes(_)?D.value=D.value.filter(x=>x!==_):D.value.push(_);const B=le();r("selectLegend",B)}function se(_){switch(!0){case(_.x>=0&&_.y>=0):return"tr";case(_.x>=0&&_.y<0):return"br";case(_.x<0&&_.y<0):return"bl";case(_.x<0&&_.y>=0):return"tl";default:return""}}function he(_,B){p.value=!0;let x="";B.quadrantSide&&(x+=`<div style="color:${f.value.style.chart.layout.labels.quadrantLabels[B.quadrantSide].color};font-weight:${f.value.style.chart.layout.labels.quadrantLabels[B.quadrantSide].bold?"bold":"400"}">${f.value.style.chart.layout.labels.quadrantLabels[B.quadrantSide].text}</div>`),x+=`<div>${_.name}</div>`,x+=`<div style="padding-bottom:6px;border-bottom:1px solid #e1e5e8;margin-bottom:3px">${B.name}</div>`,x+=`<div>${f.value.style.chart.layout.grid.xAxis.name?f.value.style.chart.layout.grid.xAxis.name:"x"} : <b>${B.xValue.toFixed(f.value.style.chart.tooltip.roundingValue)}</b></div>`,x+=`<div>${f.value.style.chart.layout.grid.yAxis.name?f.value.style.chart.layout.grid.yAxis.name:"y"} : <b>${B.yValue.toFixed(f.value.style.chart.tooltip.roundingValue)}</b></div>`,h.value=`<div style="text-align:left;font-size:${f.value.style.chart.tooltip.fontSize}px">${x}</div>`}function ge(_,B){const x={category:_.name,itemName:B.name,x:B.xValue,y:B.yValue,quadrantSide:B.quadrantSide,sideName:f.value.style.chart.layout.labels.quadrantLabels[B.quadrantSide].text};r("selectPlot",x)}function re(_){const B=I.value.flatMap(S=>S.series.filter(Q=>Q.quadrantSide===_).map(Q=>({category:Q.categoryName,itemName:Q.name,x:Q.xValue,y:Q.yValue}))),x={quadrantSide:_,sideName:f.value.style.chart.layout.labels.quadrantLabels[_].text,items:[...B]};r("selectSide",x)}function le(){return I.value.map(_=>({color:_.color,name:_.name,shape:_.shape,series:_.series.map(B=>({name:B.name,x:B.xValue,y:B.yValue,quadrantSide:B.quadrantSide,sideName:f.value.style.chart.layout.labels.quadrantLabels[B.quadrantSide].text}))}))}e({getData:le});function fe(){c.value&&c.value.removeAttribute("open")}function Ue(){o.value=!0,i.nextTick(()=>{GA({domElement:document.getElementById(`vue-ui-quadrant_${a.value}`),fileName:f.value.style.chart.title.text||"vue-ui-quadrant"}).finally(()=>{o.value=!1})})}function b(){i.nextTick(()=>{const _=[[f.value.style.chart.title.text],[f.value.style.chart.title.subtitle.text],[""]],B=T.value.head,x=T.value.body,S=_.concat([B]).concat(x);ei(S,f.value.style.chart.title.text||"vue-ui-quadrant")})}return(_,B)=>(i.openBlock(),i.createElementBlock("div",{class:"vue-ui-quadrant",ref_key:"quadrantChart",ref:s,id:`vue-ui-quadrant_${a.value}`,style:i.normalizeStyle(`font-family:${f.value.style.fontFamily};width:100%; text-align:center`)},[(!m.value.inside||o.value)&&f.value.style.chart.title.text?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(`width:100%;background:${f.value.style.chart.backgroundColor};padding-bottom:12px`)},[i.createElementVNode("div",{style:i.normalizeStyle(`width:100%;text-align:center;color:${f.value.style.chart.title.color};font-size:${f.value.style.chart.title.fontSize}px;font-weight:${f.value.style.chart.title.bold?"bold":""}`)},i.toDisplayString(f.value.style.chart.title.text),5),f.value.style.chart.title.subtitle.text?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(`width:100%;text-align:center;color:${f.value.style.chart.title.subtitle.color};font-size:${f.value.style.chart.title.subtitle.fontSize}px;font-weight:${f.value.style.chart.title.subtitle.bold?"bold":""}`)},i.toDisplayString(f.value.style.chart.title.subtitle.text),5)):i.createCommentVNode("",!0)],4)):i.createCommentVNode("",!0),f.value.userOptions.show?(i.openBlock(),i.createElementBlock("details",{key:1,class:"vue-ui-quadrant-user-options",style:i.normalizeStyle(`background:${f.value.style.chart.backgroundColor};color:${f.value.style.chart.color}`),"data-html2canvas-ignore":"",ref_key:"details",ref:c},[i.createElementVNode("summary",{style:i.normalizeStyle(`background:${f.value.style.chart.backgroundColor};color:${f.value.style.chart.color}`)},i.toDisplayString(f.value.userOptions.title),5),i.createElementVNode("div",{class:"vue-ui-quadrant-user-options-items",style:i.normalizeStyle(`background:${f.value.style.chart.backgroundColor};color:${f.value.style.chart.color}`)},[i.createElementVNode("div",BH,[i.withDirectives(i.createElementVNode("input",{type:"checkbox",id:`vue-ui-quadrant-option-plotLabels_${a.value}`,name:`vue-ui-quadrant-option-plotLabels_${a.value}`,"onUpdate:modelValue":B[0]||(B[0]=x=>m.value.plotLabels.show=x)},null,8,xH),[[i.vModelCheckbox,m.value.plotLabels.show]]),i.createElementVNode("label",{for:`vue-ui-quadrant-option-plotLabels_${a.value}`},i.toDisplayString(f.value.userOptions.labels.showPlotLabels),9,bH)]),i.createElementVNode("div",CH,[i.withDirectives(i.createElementVNode("input",{type:"checkbox",id:`vue-ui-quadrant-option-title_${a.value}`,name:`vue-ui-quadrant-option-title_${a.value}`,"onUpdate:modelValue":B[1]||(B[1]=x=>m.value.inside=x)},null,8,EH),[[i.vModelCheckbox,m.value.inside]]),i.createElementVNode("label",{for:`vue-ui-quadrant-option-title_${a.value}`},i.toDisplayString(f.value.userOptions.labels.useDiv),9,_H)]),i.createElementVNode("div",FH,[i.withDirectives(i.createElementVNode("input",{type:"checkbox",id:`vue-ui-quadrant-option-table_${a.value}`,name:`vue-ui-quadrant-option-table_${a.value}`,"onUpdate:modelValue":B[2]||(B[2]=x=>m.value.showTable=x)},null,8,SH),[[i.vModelCheckbox,m.value.showTable]]),i.createElementVNode("label",{for:`vue-ui-quadrant-option-table_${a.value}`},i.toDisplayString(f.value.userOptions.labels.showTable),9,kH)]),i.createElementVNode("button",{class:"vue-ui-quadrant-button",onClick:Ue,disabled:o.value,style:i.normalizeStyle([{"margin-top":"12px"},`color:${f.value.style.chart.color}`])},[o.value?(i.openBlock(),i.createElementBlock("svg",{key:0,class:"vue-ui-quadrant-print-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:f.value.style.chart.color,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},LH,8,NH)):(i.openBlock(),i.createElementBlock("span",UH,"PDF"))],12,TH),i.createElementVNode("button",{class:"vue-ui-quadrant-button",onClick:b,style:i.normalizeStyle(`color:${f.value.style.chart.color}`)}," XLSX ",4)],4)],4)):i.createCommentVNode("",!0),(i.openBlock(),i.createElementBlock("svg",{viewBox:`0 0 ${y.value.width} ${y.value.height}`,style:i.normalizeStyle(`max-width:100%;overflow:visible;background:${f.value.style.chart.backgroundColor};color:${f.value.style.chart.color}`),onClick:fe},[i.createElementVNode("defs",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(I.value,(x,S)=>(i.openBlock(),i.createElementBlock("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`quadrant_gradient_${a.value}_${S}`},[i.createElementVNode("stop",{offset:"0%","stop-color":`${i.unref(eA)(x.color,.05)}${i.unref(yt)[f.value.style.chart.layout.areas.opacity]}`},null,8,QH),i.createElementVNode("stop",{offset:"100%","stop-color":x.color+i.unref(yt)[f.value.style.chart.layout.areas.opacity]},null,8,OH)],8,DH))),256))]),f.value.style.chart.title.text&&m.value.inside&&!o.value?(i.openBlock(),i.createElementBlock("g",PH,[i.createElementVNode("text",{"font-size":f.value.style.chart.title.fontSize,fill:f.value.style.chart.title.color,x:y.value.width/2,y:f.value.style.chart.title.fontSize+6,"text-anchor":"middle",style:i.normalizeStyle(`font-weight:${f.value.style.chart.title.bold?"bold":""}`)},i.toDisplayString(f.value.style.chart.title.text),13,MH),f.value.style.chart.title.subtitle.text?(i.openBlock(),i.createElementBlock("text",{key:0,"font-size":f.value.style.chart.title.subtitle.fontSize,fill:f.value.style.chart.title.subtitle.color,x:y.value.width/2,y:f.value.style.chart.title.fontSize*2+6,"text-anchor":"middle",style:i.normalizeStyle(`font-weight:${f.value.style.chart.title.subtitle.bold?"bold":""}`)},i.toDisplayString(f.value.style.chart.title.subtitle.text),13,RH)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),f.value.style.chart.layout.grid.graduations.show?(i.openBlock(),i.createElementBlock("g",HH,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(F.value,x=>(i.openBlock(),i.createElementBlock("rect",{fill:f.value.style.chart.layout.grid.graduations.fill?`${f.value.style.chart.layout.grid.graduations.color}${x.opacity}`:"none",x:x.x,y:x.y,height:x.height,width:x.width,"stroke-width":f.value.style.chart.layout.grid.graduations.strokeWidth,stroke:f.value.style.chart.layout.grid.graduations.stroke,rx:f.value.style.chart.layout.grid.graduations.roundingForce},null,8,VH))),256))])):i.createCommentVNode("",!0),i.createElementVNode("line",{x1:y.value.left,y1:y.value.centerY,x2:y.value.right,y2:y.value.centerY,stroke:f.value.style.chart.layout.grid.stroke,"stroke-width":f.value.style.chart.layout.grid.strokeWidth},null,8,$H),i.createElementVNode("line",{x1:y.value.centerX,y1:y.value.top,x2:y.value.centerX,y2:y.value.bottom,stroke:f.value.style.chart.layout.grid.stroke,"stroke-width":f.value.style.chart.layout.grid.strokeWidth},null,8,zH),f.value.style.chart.layout.grid.showArrows?(i.openBlock(),i.createElementBlock("g",KH,[i.createElementVNode("polygon",{points:`${y.value.right-y.value.width*.02},${y.value.centerY-y.value.height*.009} ${y.value.right},${y.value.centerY} ${y.value.right-y.value.width*.02},${y.value.centerY+y.value.height*.009}`,fill:f.value.style.chart.layout.grid.stroke,stroke:"none"},null,8,GH),i.createElementVNode("polygon",{points:`${y.value.left+y.value.width*.02},${y.value.centerY-y.value.height*.009} ${y.value.left},${y.value.centerY} ${y.value.left+y.value.width*.02},${y.value.centerY+y.value.height*.009}`,fill:f.value.style.chart.layout.grid.stroke,stroke:"none"},null,8,jH),i.createElementVNode("polygon",{points:`${y.value.centerX-y.value.width*.013},${y.value.top+y.value.height*.015} ${y.value.centerX},${y.value.top} ${y.value.centerX+y.value.width*.013},${y.value.top+y.value.height*.015}`,fill:f.value.style.chart.layout.grid.stroke,stroke:"none"},null,8,WH),i.createElementVNode("polygon",{points:`${y.value.centerX-y.value.width*.013},${y.value.bottom-y.value.height*.015} ${y.value.centerX},${y.value.bottom} ${y.value.centerX+y.value.width*.013},${y.value.bottom-y.value.height*.015}`,fill:f.value.style.chart.layout.grid.stroke,stroke:"none"},null,8,XH)])):i.createCommentVNode("",!0),f.value.style.chart.layout.labels.quadrantLabels.show?(i.openBlock(),i.createElementBlock("g",qH,[f.value.style.chart.layout.labels.quadrantLabels.tl.text?(i.openBlock(),i.createElementBlock("text",{key:0,x:0,y:y.value.top-y.value.padding/2,"text-anchor":"start",fill:f.value.style.chart.layout.labels.quadrantLabels.tl.color,"font-size":f.value.style.chart.layout.labels.quadrantLabels.tl.fontSize,style:i.normalizeStyle(`font-weight:${f.value.style.chart.layout.labels.quadrantLabels.tl.bold?"bold":""}`),onClick:B[3]||(B[3]=x=>re("tl"))},i.toDisplayString(f.value.style.chart.layout.labels.quadrantLabels.tl.text),13,YH)):i.createCommentVNode("",!0),f.value.style.chart.layout.labels.quadrantLabels.tr.text?(i.openBlock(),i.createElementBlock("text",{key:1,x:y.value.width,y:y.value.top-y.value.padding/2,"text-anchor":"end",fill:f.value.style.chart.layout.labels.quadrantLabels.tr.color,"font-size":f.value.style.chart.layout.labels.quadrantLabels.tr.fontSize,style:i.normalizeStyle(`font-weight:${f.value.style.chart.layout.labels.quadrantLabels.tr.bold?"bold":""}`),onClick:B[4]||(B[4]=x=>re("tr"))},i.toDisplayString(f.value.style.chart.layout.labels.quadrantLabels.tr.text),13,JH)):i.createCommentVNode("",!0),f.value.style.chart.layout.labels.quadrantLabels.br.text?(i.openBlock(),i.createElementBlock("text",{key:2,x:y.value.width,y:y.value.bottom+y.value.padding*.7,"text-anchor":"end",fill:f.value.style.chart.layout.labels.quadrantLabels.br.color,"font-size":f.value.style.chart.layout.labels.quadrantLabels.br.fontSize,style:i.normalizeStyle(`font-weight:${f.value.style.chart.layout.labels.quadrantLabels.br.bold?"bold":""}`),onClick:B[5]||(B[5]=x=>re("br"))},i.toDisplayString(f.value.style.chart.layout.labels.quadrantLabels.br.text),13,ZH)):i.createCommentVNode("",!0),f.value.style.chart.layout.labels.quadrantLabels.bl.text?(i.openBlock(),i.createElementBlock("text",{key:3,x:0,y:y.value.bottom+y.value.padding*.7,"text-anchor":"start",fill:f.value.style.chart.layout.labels.quadrantLabels.bl.color,"font-size":f.value.style.chart.layout.labels.quadrantLabels.bl.fontSize,style:i.normalizeStyle(`font-weight:${f.value.style.chart.layout.labels.quadrantLabels.bl.bold?"bold":""}`),onClick:B[6]||(B[6]=x=>re("bl"))},i.toDisplayString(f.value.style.chart.layout.labels.quadrantLabels.bl.text),13,eV)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),f.value.style.chart.layout.labels.axisLabels.show?(i.openBlock(),i.createElementBlock("g",tV,[i.createElementVNode("text",{x:y.value.centerX,y:y.value.top-y.value.padding/6,"text-anchor":"middle","font-size":f.value.style.chart.layout.labels.axisLabels.fontSize,fill:f.value.style.chart.layout.labels.axisLabels.color.positive},i.toDisplayString(N.value.y.max),9,rV),i.createElementVNode("text",{x:y.value.centerX,y:y.value.top-y.value.padding/2,"text-anchor":"middle","font-size":f.value.style.chart.layout.labels.axisLabels.fontSize,fill:f.value.style.chart.layout.labels.axisLabels.color.positive},i.toDisplayString(f.value.style.chart.layout.grid.yAxis.name),9,nV),i.createElementVNode("text",{x:y.value.centerX,y:y.value.bottom+y.value.padding*.35,"text-anchor":"middle","font-size":f.value.style.chart.layout.labels.axisLabels.fontSize,fill:f.value.style.chart.layout.labels.axisLabels.color.negative},i.toDisplayString(N.value.y.min),9,aV),i.createElementVNode("text",{id:"xLabelMin","text-anchor":"middle","font-size":f.value.style.chart.layout.labels.axisLabels.fontSize,fill:f.value.style.chart.layout.labels.axisLabels.color.negative},i.toDisplayString(N.value.x.min),9,AV),i.createElementVNode("text",{id:"xLabelMax","text-anchor":"middle","font-size":f.value.style.chart.layout.labels.axisLabels.fontSize,fill:f.value.style.chart.layout.labels.axisLabels.color.positive},i.toDisplayString(N.value.x.max),9,iV),i.createElementVNode("text",{id:"xLabelMaxName","text-anchor":"middle","font-size":f.value.style.chart.layout.labels.axisLabels.fontSize,fill:f.value.style.chart.layout.labels.axisLabels.color.positive},i.toDisplayString(f.value.style.chart.layout.grid.xAxis.name),9,oV)])):i.createCommentVNode("",!0),f.value.style.chart.layout.areas.show?(i.openBlock(),i.createElementBlock("g",sV,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(I.value,(x,S)=>(i.openBlock(),i.createElementBlock("g",null,[x.series.length>2?(i.openBlock(),i.createElementBlock("polygon",{key:0,fill:f.value.style.chart.layout.areas.useGradient?`url(#quadrant_gradient_${a.value}_${S})`:`${x.color}${i.unref(yt)[f.value.style.chart.layout.areas.opacity]}`,points:i.unref(qQ)(x)},null,8,lV)):i.createCommentVNode("",!0)]))),256))])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(I.value,x=>(i.openBlock(),i.createElementBlock("g",null,[x.shape==="circle"?(i.openBlock(),i.createElementBlock("g",cV,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(x.series,S=>(i.openBlock(),i.createElementBlock("circle",{cx:S.x,cy:S.y,r:f.value.style.chart.layout.plots.radius*.8,fill:x.color,stroke:f.value.style.chart.layout.plots.outline?f.value.style.chart.layout.plots.outlineColor:"none","stroke-width":f.value.style.chart.layout.plots.outlineWidth,onMouseover:Q=>he(x,S),onMouseout:B[7]||(B[7]=Q=>p.value=!1),onClick:Q=>ge(x,S)},null,40,uV))),256))])):i.createCommentVNode("",!0),x.shape==="triangle"?(i.openBlock(),i.createElementBlock("g",hV,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(x.series,S=>(i.openBlock(),i.createElementBlock("path",{d:i.unref(tA)({plot:{x:S.x,y:S.y},radius:f.value.style.chart.layout.plots.radius,sides:3,rotation:.52}).path,fill:x.color,stroke:f.value.style.chart.layout.plots.outline?f.value.style.chart.layout.plots.outlineColor:"none","stroke-width":f.value.style.chart.layout.plots.outlineWidth,onMouseover:Q=>he(x,S),onMouseout:B[8]||(B[8]=Q=>p.value=!1),onClick:Q=>ge(x,S)},null,40,fV))),256))])):i.createCommentVNode("",!0),x.shape==="square"?(i.openBlock(),i.createElementBlock("g",dV,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(x.series,S=>(i.openBlock(),i.createElementBlock("path",{d:i.unref(tA)({plot:{x:S.x,y:S.y},radius:f.value.style.chart.layout.plots.radius,sides:4,rotation:.8}).path,fill:x.color,stroke:f.value.style.chart.layout.plots.outline?f.value.style.chart.layout.plots.outlineColor:"none","stroke-width":f.value.style.chart.layout.plots.outlineWidth,onMouseover:Q=>he(x,S),onMouseout:B[9]||(B[9]=Q=>p.value=!1),onClick:Q=>ge(x,S)},null,40,gV))),256))])):i.createCommentVNode("",!0),x.shape==="diamond"?(i.openBlock(),i.createElementBlock("g",pV,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(x.series,S=>(i.openBlock(),i.createElementBlock("path",{d:i.unref(tA)({plot:{x:S.x,y:S.y},radius:f.value.style.chart.layout.plots.radius,sides:4,rotation:0}).path,fill:x.color,stroke:f.value.style.chart.layout.plots.outline?f.value.style.chart.layout.plots.outlineColor:"none","stroke-width":f.value.style.chart.layout.plots.outlineWidth,onMouseover:Q=>he(x,S),onMouseout:B[10]||(B[10]=Q=>p.value=!1),onClick:Q=>ge(x,S)},null,40,mV))),256))])):i.createCommentVNode("",!0),x.shape==="pentagon"?(i.openBlock(),i.createElementBlock("g",yV,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(x.series,S=>(i.openBlock(),i.createElementBlock("path",{d:i.unref(tA)({plot:{x:S.x,y:S.y},radius:f.value.style.chart.layout.plots.radius,sides:5,rotation:.95}).path,fill:x.color,stroke:f.value.style.chart.layout.plots.outline?f.value.style.chart.layout.plots.outlineColor:"none","stroke-width":f.value.style.chart.layout.plots.outlineWidth,onMouseover:Q=>he(x,S),onMouseout:B[11]||(B[11]=Q=>p.value=!1),onClick:Q=>ge(x,S)},null,40,vV))),256))])):i.createCommentVNode("",!0),x.shape==="hexagon"?(i.openBlock(),i.createElementBlock("g",wV,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(x.series,S=>(i.openBlock(),i.createElementBlock("path",{d:i.unref(tA)({plot:{x:S.x,y:S.y},radius:f.value.style.chart.layout.plots.radius,sides:6,rotation:0}).path,fill:x.color,stroke:f.value.style.chart.layout.plots.outline?f.value.style.chart.layout.plots.outlineColor:"none","stroke-width":f.value.style.chart.layout.plots.outlineWidth,onMouseover:Q=>he(x,S),onMouseout:B[12]||(B[12]=Q=>p.value=!1),onClick:Q=>ge(x,S)},null,40,BV))),256))])):i.createCommentVNode("",!0),x.shape==="star"?(i.openBlock(),i.createElementBlock("g",xV,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(x.series,S=>(i.openBlock(),i.createElementBlock("polygon",{points:i.unref(Xh)({plot:{x:S.x,y:S.y},radius:f.value.style.chart.layout.plots.radius}),fill:x.color,stroke:f.value.style.chart.layout.plots.outline?f.value.style.chart.layout.plots.outlineColor:"none","stroke-width":f.value.style.chart.layout.plots.outlineWidth,onMouseover:Q=>he(x,S),onMouseout:B[13]||(B[13]=Q=>p.value=!1),onClick:Q=>ge(x,S)},null,40,bV))),256))])):i.createCommentVNode("",!0)]))),256)),m.value.plotLabels.show?(i.openBlock(),i.createElementBlock("g",CV,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(I.value,x=>(i.openBlock(),i.createElementBlock("g",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(x.series,S=>(i.openBlock(),i.createElementBlock("text",{x:S.x,y:S.y+f.value.style.chart.layout.labels.plotLabels.offsetY+f.value.style.chart.layout.plots.radius,"text-anchor":"middle","font-size":f.value.style.chart.layout.labels.plotLabels.fontSize,fill:f.value.style.chart.layout.labels.plotLabels.color},i.toDisplayString(S.name),9,EV))),256))]))),256))])):i.createCommentVNode("",!0),f.value.style.chart.legend.show&&m.value.inside&&!o.value?(i.openBlock(),i.createElementBlock("foreignObject",{key:7,x:0,y:y.value.bottom+36,width:"100%",height:"90",style:{overflow:"visible"}},[i.createElementVNode("div",{class:"vue-ui-quadrant-legend",style:i.normalizeStyle(`font-weight:${f.value.style.chart.legend.bold?"bold":""};color:${f.value.style.chart.legend.color};font-size:${f.value.style.chart.legend.fontSize}px;padding-bottom:12px;font-weight:${f.value.style.chart.legend.bold?"bold":""}`),onClick:fe},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(G.value,(x,S)=>(i.openBlock(),i.createElementBlock("div",{class:"vue-ui-quadrant-legend-item",onClick:Q=>Y(x.id),style:i.normalizeStyle(`opacity:${D.value.includes(x.id)?.5:1}`)},[i.createElementVNode("div",{innerHTML:x.shapePath,style:{display:"flex","align-items":"center","justify-content":"center"}},null,8,SV),i.createElementVNode("span",null,i.toDisplayString(x.name),1)],12,FV))),256))],4)],8,_V)):i.createCommentVNode("",!0)],12,IH)),f.value.style.chart.legend.show&&(!m.value.inside||o.value)?(i.openBlock(),i.createElementBlock("div",{key:2,class:"vue-ui-quadrant-legend",style:i.normalizeStyle(`font-weight:${f.value.style.chart.legend.bold?"bold":""};background:${f.value.style.chart.legend.backgroundColor};color:${f.value.style.chart.legend.color};font-size:${f.value.style.chart.legend.fontSize}px;padding-bottom:12px;font-weight:${f.value.style.chart.legend.bold?"bold":""}`),onClick:fe},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(G.value,(x,S)=>(i.openBlock(),i.createElementBlock("div",{class:"vue-ui-quadrant-legend-item",onClick:Q=>Y(x.id),style:i.normalizeStyle(`opacity:${D.value.includes(x.id)?.5:1}`)},[i.createElementVNode("div",{innerHTML:x.shapePath,style:{display:"flex","align-items":"center","justify-content":"center"}},null,8,TV),i.createElementVNode("span",null,i.toDisplayString(x.name),1)],12,kV))),256))],4)):i.createCommentVNode("",!0),f.value.style.chart.tooltip.show&&p.value?(i.openBlock(),i.createElementBlock("div",{key:3,class:"vue-ui-quadrant-tooltip",ref_key:"tooltip",ref:l,style:i.normalizeStyle(`top:${w.value.top}px;left:${w.value.left}px;background:${f.value.style.chart.tooltip.backgroundColor};color:${f.value.style.chart.tooltip.color}`),innerHTML:h.value},null,12,NV)):i.createCommentVNode("",!0),m.value.showTable?(i.openBlock(),i.createElementBlock("div",{key:4,onClick:fe,class:"vue-ui-quadrant-table",style:i.normalizeStyle(`width:100%;margin-top:${m.value.inside?"48px":""}`)},[i.createElementVNode("table",null,[i.createElementVNode("thead",null,[f.value.style.chart.title.text?(i.openBlock(),i.createElementBlock("tr",LV,[i.createElementVNode("th",{colspan:5,style:i.normalizeStyle(`background:${f.value.table.th.backgroundColor};color:${f.value.table.th.color};outline:${f.value.table.th.outline}`)},[i.createElementVNode("span",null,i.toDisplayString(f.value.style.chart.title.text),1),f.value.style.chart.title.subtitle.text?(i.openBlock(),i.createElementBlock("span",UV," : "+i.toDisplayString(f.value.style.chart.title.subtitle.text),1)):i.createCommentVNode("",!0)],4)])):i.createCommentVNode("",!0),i.createElementVNode("tr",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(T.value.head,x=>(i.openBlock(),i.createElementBlock("th",{style:i.normalizeStyle(`background:${f.value.table.th.backgroundColor};color:${f.value.table.th.color};outline:${f.value.table.th.outline}`)},[i.createElementVNode("div",IV,i.toDisplayString(x),1)],4))),256))])]),i.createElementVNode("tbody",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(T.value.body,x=>(i.openBlock(),i.createElementBlock("tr",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(x,S=>(i.openBlock(),i.createElementBlock("td",{style:i.normalizeStyle(`background:${f.value.table.td.backgroundColor};color:${f.value.table.td.color};outline:${f.value.table.td.outline}`)},i.toDisplayString(isNaN(S)?S:S.toFixed(f.value.table.td.roundingValue)),5))),256))]))),256))])])],4)):i.createCommentVNode("",!0)],12,wH))}},[["__scopeId","data-v-c200bf52"]]),Voe="",QV=["id"],OV={class:"vue-ui-gauge-user-option-item"},PV=["id","name"],MV=["for"],RV=["disabled"],HV=["stroke"],VV=[i.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-77e98d1e></path><path d="M18 16v.01" data-v-77e98d1e></path><path d="M6 16v.01" data-v-77e98d1e></path><path d="M12 5v.01" data-v-77e98d1e></path><path d="M12 12v.01" data-v-77e98d1e></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-77e98d1e></path>',6)],$V={key:1},zV=["viewBox"],KV=["id"],GV=["stop-color"],jV=["stop-color"],WV=["stop-color"],XV={key:0},qV=["font-size","fill","x","y"],YV=["font-size","fill","x","y"],JV=["font-size","fill","x","y"],ZV=["d","stroke","stroke-width"],e$={key:1},t$=["cx","cy","fill"],r$=["cx","cy","r","fill"],n$=["y","width","height","fill"],a$=["cx","cy","r","fill","stroke","stroke-width"],A$=["cx","cy","r","fill","stroke","stroke-width"],i$=["x","y","font-size","font-weight","fill"],o$=["x","y","font-size","font-weight","fill"],s$=["x1","y1","x2","y2","stroke","stroke-width"],l$=["x1","y1","x2","y2","stroke","stroke-width"],c$=["cx","cy","fill","r","stroke-width","stroke"],u$=["x","y","font-size","fill"],h$=Ba({__name:"vue-ui-gauge",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(t){const e=t,r=i.ref(`vue-ui-gauge-${Math.random()}`),n=i.ref(ia.vue_ui_gauge),a=i.ref(!1),A=i.ref(null),o=i.ref(null),s=i.computed(()=>{if(!Object.keys(e.config||{}).length)return n.value;const R=Wn({defaultConfig:n.value,userConfig:e.config});return Xn(R)}),l=i.ref({inside:!s.value.style.chart.layout.useDiv}),c=i.computed(()=>{const R=[];e.dataset.series.forEach(I=>{R.push(I.from),R.push(I.to)});const U=Math.max(...R);return{...e.dataset,series:e.dataset.series.map((I,O)=>({...I,color:Nr(I.color)||It[O],value:(I.to-I.from)/U*100}))}}),u=i.computed(()=>({height:l.value.inside?512:358.4,width:512,top:l.value.inside?76.8:0,bottom:l.value.inside?435.2:358.4,centerX:l.value.inside?256:179.2,centerY:256})),p=i.ref(0),h=i.ref(0),d=i.ref(s.value.style.chart.animation.use?0:e.dataset.value),w=i.computed(()=>{const R=u.value.width/2,U=u.value.height*.69,I=Math.PI*((d.value+0-h.value)/(p.value-h.value))+Math.PI;return{x1:R,y1:U,x2:R+u.value.width/3.2*s.value.style.chart.layout.pointer.size*Math.cos(I),y2:U+u.value.width/3.2*s.value.style.chart.layout.pointer.size*Math.sin(I)}}),f=i.computed(()=>{for(let R=0;R<c.value.series.length;R+=1){const{color:U,from:I,to:O}=c.value.series[R];if(d.value>=I&&d.value<=O)return U}return"#2D353C"});i.onMounted(()=>{const R=[];c.value.series.forEach(L=>{R.push(L.from),R.push(L.to)}),p.value=Math.max(...R),h.value=Math.min(...R);const U=String(p.value).length;let I=0,O=(U>2?.01:.001)*s.value.style.chart.animation.speed,q=(U>2?.05:.005)*s.value.style.chart.animation.acceleration;function T(){d.value+=O+I,I+=q,d.value<e.dataset.value?requestAnimationFrame(T):d.value=e.dataset.value}s.value.style.chart.animation.use&&(d.value=h.value,T())});function m([R,U],[I,O],[q,T],L){T=T%Math.PI;const G=ax(L),[Y,se]=jh(Wh(G,[I*Math.cos(q),O*Math.sin(q)]),[R,U]),[he,ge]=jh(Wh(G,[I*Math.cos(q+T),O*Math.sin(q+T)]),[R,U]),re=T>Math.PI?1:0,le=T>0?1:0;return{startX:Y,startY:se,endX:he,endY:ge,path:`M${Y} ${se} A ${[I,O,L/(2*Math.PI)*180,re,le,he,ge].join(" ")}`}}function y(R,U,I,O,q){let{series:T}=R;if(R.base||(R.base=1),!T||R.base===0)return{...T,proportion:0,ratio:0,path:"",startX:0,startY:0,endX:0,center:{}};const L=[...T].map(se=>se.value).reduce((se,he)=>se+he,0),G=[];let Y=0;for(let se=0;se<T.length;se+=1){let he=T[se].value/L;const ge=he*(Math.PI*.975),le=T[se].value/2/L*Math.PI,{startX:fe,startY:Ue,endX:b,endY:_,path:B}=m([U,I],[O,q],[Y,ge],110);G.push({...T[se],proportion:he,ratio:ge,path:B,startX:fe,startY:Ue,endX:b,endY:_,center:m([U,I],[O,q],[Y,le],110)}),Y+=ge}return G}function F(R,U,I){const q=String(I).length>2?-3:0;return R===0?U+14+q:U+9+q}function N(R){return String(R).length>2?15:20}function D(){a.value=!0,GA({domElement:document.getElementById(`vue-ui-gauge_${r.value}`),fileName:s.value.style.chart.title.text||"vue-ui-gauge"}).finally(()=>{a.value=!1})}function H(){o.value&&o.value.removeAttribute("open")}return(R,U)=>(i.openBlock(),i.createElementBlock("div",{class:"vue-ui-gauge",ref_key:"gaugeChart",ref:A,id:`vue-ui-gauge_${r.value}`,style:i.normalizeStyle(`font-family:${s.value.style.fontFamily};width:100%; text-align:center`)},[(!l.value.inside||a.value)&&s.value.style.chart.title.text?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(`width:100%;background:${s.value.style.chart.backgroundColor};padding-bottom:12px`)},[i.createElementVNode("div",{style:i.normalizeStyle(`width:100%;text-align:center;color:${s.value.style.chart.title.color};font-size:${s.value.style.chart.title.fontSize}px;font-weight:${s.value.style.chart.title.bold?"bold":""}`)},i.toDisplayString(s.value.style.chart.title.text),5),s.value.style.chart.title.subtitle.text?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(`width:100%;text-align:center;color:${s.value.style.chart.title.subtitle.color};font-size:${s.value.style.chart.title.subtitle.fontSize}px;font-weight:${s.value.style.chart.title.subtitle.bold?"bold":""}`)},i.toDisplayString(s.value.style.chart.title.subtitle.text),5)):i.createCommentVNode("",!0),isNaN(t.dataset.base)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:1,style:i.normalizeStyle(`width:100%;text-align:center;color:${s.value.style.chart.title.subtitle.color};font-size:${s.value.style.chart.title.subtitle.fontSize}px;font-weight:${s.value.style.chart.title.subtitle.bold?"bold":""}`)},i.toDisplayString(s.value.translations.base)+" : "+i.toDisplayString(t.dataset.base),5))],4)):i.createCommentVNode("",!0),s.value.userOptions.show?(i.openBlock(),i.createElementBlock("details",{key:1,class:"vue-ui-gauge-user-options",style:i.normalizeStyle(`background:${s.value.style.chart.backgroundColor};color:${s.value.style.chart.color}`),"data-html2canvas-ignore":"",ref_key:"details",ref:o},[i.createElementVNode("summary",{style:i.normalizeStyle(`background:${s.value.style.chart.backgroundColor};color:${s.value.style.chart.color}`)},i.toDisplayString(s.value.userOptions.title),5),i.createElementVNode("div",{class:"vue-ui-gauge-user-options-items",style:i.normalizeStyle(`background:${s.value.style.chart.backgroundColor};color:${s.value.style.chart.color}`)},[i.createElementVNode("div",OV,[i.withDirectives(i.createElementVNode("input",{type:"checkbox",id:`vue-ui-gauge-option-title_${r.value}`,name:`vue-ui-gauge-option-title_${r.value}`,"onUpdate:modelValue":U[0]||(U[0]=I=>l.value.inside=I)},null,8,PV),[[i.vModelCheckbox,l.value.inside]]),i.createElementVNode("label",{for:`vue-ui-gauge-option-title_${r.value}`},i.toDisplayString(s.value.userOptions.labels.useDiv),9,MV)]),i.createElementVNode("button",{class:"vue-ui-gauge-button",onClick:D,disabled:a.value,style:i.normalizeStyle([{"margin-top":"12px"},`color:${s.value.style.chart.color}`])},[a.value?(i.openBlock(),i.createElementBlock("svg",{key:0,class:"vue-ui-gauge-print-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:s.value.style.chart.color,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},VV,8,HV)):(i.openBlock(),i.createElementBlock("span",$V,"PDF"))],12,RV)],4)],4)):i.createCommentVNode("",!0),(i.openBlock(),i.createElementBlock("svg",{viewBox:`0 0 ${u.value.width} ${u.value.height}`,style:i.normalizeStyle(`max-width:100%;overflow:hidden !important;background:${s.value.style.chart.backgroundColor};color:${s.value.style.chart.color}`),onClick:H},[i.createElementVNode("defs",null,[i.createElementVNode("radialGradient",{id:`gradient_${r.value}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[i.createElementVNode("stop",{offset:"0%","stop-color":`#FFFFFF${i.unref(yt)[1]}`},null,8,GV),i.createElementVNode("stop",{offset:"80%","stop-color":`#FFFFFF${i.unref(yt)[s.value.style.chart.layout.track.gradientIntensity]}`},null,8,jV),i.createElementVNode("stop",{offset:"100%","stop-color":`#FFFFFF${i.unref(yt)[1]}`},null,8,WV)],8,KV)]),s.value.style.chart.title.text&&l.value.inside&&!a.value?(i.openBlock(),i.createElementBlock("g",XV,[i.createElementVNode("text",{"font-size":s.value.style.chart.title.fontSize*1.5,fill:s.value.style.chart.title.color,x:u.value.width/2,y:s.value.style.chart.title.fontSize*1.5+20,"text-anchor":"middle",style:i.normalizeStyle(`font-weight:${s.value.style.chart.title.bold?"bold":""}`)},i.toDisplayString(s.value.style.chart.title.text),13,qV),s.value.style.chart.title.subtitle.text?(i.openBlock(),i.createElementBlock("text",{key:0,"font-size":s.value.style.chart.title.subtitle.fontSize*1.5,fill:s.value.style.chart.title.subtitle.color,x:u.value.width/2,y:s.value.style.chart.title.fontSize*1.5*2+20,"text-anchor":"middle",style:i.normalizeStyle(`font-weight:${s.value.style.chart.title.subtitle.bold?"bold":""}`)},i.toDisplayString(s.value.style.chart.title.subtitle.text),13,YV)):i.createCommentVNode("",!0),isNaN(t.dataset.base)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("text",{key:1,"font-size":s.value.style.chart.title.subtitle.fontSize*1.5,fill:s.value.style.chart.title.subtitle.color,x:u.value.width/2,y:s.value.style.chart.title.subtitle.text?s.value.style.chart.title.fontSize*2.3*2+20:s.value.style.chart.title.fontSize*1.5*2+20,"text-anchor":"middle",style:i.normalizeStyle(`font-weight:${s.value.style.chart.title.subtitle.bold?"bold":""}`)},i.toDisplayString(s.value.translations.base)+" : "+i.toDisplayString(t.dataset.base),13,JV))])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(y(c.value,u.value.width/2,u.value.height*.7,u.value.width/2.5,u.value.width/2.5),(I,O)=>(i.openBlock(),i.createElementBlock("path",{key:`arc_${O}`,d:I.path,fill:"none",stroke:I.color,"stroke-linecap":"round","stroke-width":u.value.width/16*s.value.style.chart.layout.track.size},null,8,ZV))),128)),s.value.style.chart.layout.track.useGradient?(i.openBlock(),i.createElementBlock("g",e$,[i.createElementVNode("circle",{cx:u.value.width/2,cy:u.value.height*.69,r:"225",fill:`url(#gradient_${r.value})`,stroke:"none"},null,8,t$),i.createElementVNode("circle",{cx:u.value.width/2,cy:u.value.height*.69+4,r:188*1/s.value.style.chart.layout.track.size,fill:s.value.style.chart.backgroundColor,stroke:"none"},null,8,r$),i.createElementVNode("rect",{x:0,y:u.value.height*.69,width:u.value.width,height:u.value.height-u.value.height*.69,fill:s.value.style.chart.backgroundColor,stroke:"none"},null,8,n$)])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(y(c.value,u.value.width/2,u.value.height*.7,u.value.width/2.5,u.value.width/2.5),(I,O)=>(i.openBlock(),i.createElementBlock("circle",{cx:I.center.startX,cy:O===0?I.center.startY+5:I.center.startY,r:u.value.width/31*s.value.style.chart.layout.track.size*s.value.style.chart.layout.markers.size,fill:s.value.style.chart.layout.markers.backgroundColor,stroke:s.value.style.chart.layout.markers.stroke,"stroke-width":s.value.style.chart.layout.markers.strokeWidth},null,8,a$))),256)),i.createElementVNode("circle",{cx:u.value.width*.9,cy:u.value.height*.69,r:u.value.width/31*s.value.style.chart.layout.track.size*s.value.style.chart.layout.markers.size,fill:s.value.style.chart.layout.markers.backgroundColor,stroke:s.value.style.chart.layout.markers.stroke,"stroke-width":s.value.style.chart.layout.markers.strokeWidth},null,8,A$),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(y(c.value,u.value.width/2,u.value.height*.7,u.value.width/2.5,u.value.width/2.5),(I,O)=>(i.openBlock(),i.createElementBlock("text",{x:I.center.startX,y:F(O,I.center.startY,I.from)+s.value.style.chart.layout.markers.offsetY,"text-anchor":"middle","font-size":N(I.from)*s.value.style.chart.layout.markers.fontSizeRatio,"font-weight":`${s.value.style.chart.layout.markers.bold?"bold":"normal"}`,fill:s.value.style.chart.layout.markers.color},i.toDisplayString(I.from.toFixed(s.value.style.chart.layout.markers.roundingValue)),9,i$))),256)),i.createElementVNode("text",{x:u.value.width*.9,y:F(1,u.value.height*.69,p.value)+s.value.style.chart.layout.markers.offsetY,"text-anchor":"middle","font-size":N(p.value)*s.value.style.chart.layout.markers.fontSizeRatio,"font-weight":`${s.value.style.chart.layout.markers.bold?"bold":"normal"}`,fill:s.value.style.chart.layout.markers.color},i.toDisplayString(p.value.toFixed(s.value.style.chart.layout.markers.roundingValue)),9,o$),isNaN(w.value.x2)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("line",{key:2,x1:w.value.x1,y1:w.value.y1,x2:w.value.x2,y2:w.value.y2,stroke:s.value.style.chart.layout.pointer.stroke,"stroke-width":s.value.style.chart.layout.pointer.strokeWidth,"stroke-linecap":"round"},null,8,s$)),isNaN(w.value.x2)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("line",{key:3,x1:w.value.x1,y1:w.value.y1,x2:w.value.x2,y2:w.value.y2,stroke:s.value.style.chart.layout.pointer.useRatingColor?f.value:s.value.style.chart.layout.pointer.color,"stroke-linecap":"round","stroke-width":s.value.style.chart.layout.pointer.strokeWidth*.7},null,8,l$)),i.createElementVNode("circle",{cx:u.value.width/2,cy:u.value.height*.69,fill:s.value.style.chart.layout.pointer.circle.color,r:s.value.style.chart.layout.pointer.circle.radius,"stroke-width":s.value.style.chart.layout.pointer.circle.strokeWidth,stroke:s.value.style.chart.layout.pointer.circle.stroke},null,8,c$),i.createElementVNode("text",{x:u.value.width/2,y:u.value.height*.9,"text-anchor":"middle","font-size":s.value.style.chart.legend.fontSize,"font-weight":"bold",fill:s.value.style.chart.legend.useRatingColor?f.value:s.value.style.chart.legend.color},i.toDisplayString(s.value.style.chart.legend.prefix)+" "+i.toDisplayString(s.value.style.chart.legend.showPlusSymbol&&d.value>0?"+":"")+i.toDisplayString(d.value.toFixed(s.value.style.chart.legend.roundingValue))+" "+i.toDisplayString(s.value.style.chart.legend.suffix),9,u$)],12,zV))],12,QV))}},[["__scopeId","data-v-77e98d1e"]]),Koe="",f$=["id"],d$={class:"vue-ui-chestnut-user-option-item"},g$=["id","name"],p$=["for"],m$=["disabled"],y$=["stroke"],v$=[i.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-6650dd2d></path><path d="M18 16v.01" data-v-6650dd2d></path><path d="M6 16v.01" data-v-6650dd2d></path><path d="M12 5v.01" data-v-6650dd2d></path><path d="M12 12v.01" data-v-6650dd2d></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-6650dd2d></path>',6)],w$={key:1},B$=["viewBox"],x$={key:0},b$=["fill","font-weight","font-size","x","y"],C$=["fill","font-weight","font-size","x","y"],E$=["id"],_$=["stop-color"],F$=["stop-color"],S$=["id"],k$=["stop-color"],T$=["stop-color"],N$=["id"],L$=["stop-color"],U$=["stop-color"],I$=["stop-color"],D$=["id"],Q$=["stop-color"],O$=["stop-color"],P$=["stop-color"],M$=["id"],R$=["stop-color"],H$=["stop-color"],V$=["stop-color"],$$={key:1},z$=["x","y","font-size","font-weight","fill"],K$=["x","y","font-size","font-weight","fill"],G$=["d","stroke"],j$=["cx","cy","r","fill"],W$=["cx","cy","r","fill","stroke","stroke-width","onClick"],X$={key:2},q$=["x","y","font-size","fill","onClick"],Y$={key:0},J$=["x","y","fill","font-size","font-weight"],Z$=["x","y","height","width","fill","rx","onClick"],ez=["x","y","height","width","fill","rx","stroke","stroke-width","onClick"],tz={key:3},rz=["x","y","fill","font-size","onClick"],nz=["d","stroke"],az=["cx","cy","fill","onClick"],Az=["fill","cx","cy","r","onClick"],iz={key:4},oz=["x","y","font-size","font-weight","fill"],sz=["x1","x2","y1","y2","stroke","stroke-width"],lz=["y","height","width"],cz={style:{width:"100%",height:"100%",display:"flex","align-items":"center","justify-content":"center","flex-direction":"column"}},uz={style:{display:"flex","align-items":"center","justify-content":"center",gap:"12px","flex-wrap":"wrap","flex-direction":"row"}},hz={viewBox:"0 0 20 20",height:"16",width:"16"},fz=["fill"],dz={key:6},gz=["y","height","width"],pz={style:{width:"100%",height:"100%",display:"flex","align-items":"center","justify-content":"center","flex-direction":"column"}},mz={style:{display:"flex","align-items":"center","justify-content":"center",gap:"12px","flex-wrap":"wrap","flex-direction":"row"}},yz={viewBox:"0 0 20 20",height:"16",width:"16"},vz=["fill"],wz=["cx","cy","fill"],Bz=["cx","cy","fill"],xz=["d","stroke"],bz=["cx","cy","fill"],Cz=["cx","cy","fill"],Ez=["d","stroke"],_z=["x","y","fill","font-size","font-weight"],Fz=["x","y","fill","font-size","font-weight"],Sz=["x","text-anchor","y","fill","font-size"],kz=["x","text-anchor","y","fill","font-size"],Tz=["x","text-anchor","y","fill","font-size"],Nz=["x","text-anchor","y","fill","font-size"],Lz=["x","text-anchor","y","fill","font-size"],Uz=["x","y","font-size","fill"],Iz=["x","y","font-size","fill"],Dz=["x","y","font-size","fill"],Qz={key:0},Oz={key:0},Pz={key:0},Mz={key:1},Rz={key:0},Hz={key:1},Vz={key:0},$z={key:1},zz={key:0},Kz={key:1},Gz={key:0},jz={key:1},Wz={key:0},Xz={key:1},qz={key:0},Yz={key:1},Jz=Ba({__name:"vue-ui-chestnut",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectRoot","selectBranch","selectNut"],setup(t,{expose:e,emit:r}){const n=t,a=i.ref(`vue-ui-chestnut-${Math.random()}`),A=i.ref(ia.vue_ui_chestnut),o=i.ref(!1),s=i.ref(null),l=i.ref(null),c=i.ref(null),u=i.ref({x:0,y:0});i.ref(!1),i.ref(""),i.onMounted(()=>{document.addEventListener("mousemove",p)}),i.onBeforeUnmount(()=>{document.removeEventListener("mousemove",p)});function p(de){u.value.x=de.clientX,u.value.y=de.clientY}i.computed(()=>{let de=0,ke=48;if(l.value&&radarChart.value){const{width:ne,height:Ee}=l.value.getBoundingClientRect(),xe=radarChart.value.getBoundingClientRect();u.value.x+ne/2>xe.right?de=-ne:u.value.x-ne/2<xe.left?de=0:de=-ne/2,u.value.y+Ee>xe.bottom&&(ke=-Ee-48)}return{top:u.value.y+ke,left:u.value.x+de}});const h=i.computed(()=>{if(!Object.keys(n.config||{}).length)return A.value;const de=Wn({defaultConfig:A.value,userConfig:n.config});return Xn(de)}),d=i.ref({showTable:h.value.table.show}),w=i.ref({gap:6,padding:{top:102,left:12,right:12,bottom:96},width:1024,height:0,branchSize:32,branchStart:128}),f=i.computed(()=>({left:w.value.padding.left,top:w.value.padding.top,right:w.value.width-w.value.padding.right,bottom:w.value.height-w.value.padding.bottom,width:w.value.width-(w.value.padding.left+w.value.padding.right),height:w.value.height-(w.value.padding.top+w.value.padding.bottom),seedX:w.value.padding.left+64})),m=i.computed(()=>n.dataset.flatMap(de=>de.branches.map(ke=>ke.value)).reduce((de,ke)=>de+ke)),y=i.computed(()=>n.dataset.map((de,ke)=>{const ne=de.branches.map(Ee=>Ee.value).reduce((Ee,xe)=>Ee+xe);return{...de,color:Nr(de.color)||It[ke]||It[ke%It.length],id:de.id||`root_${ke}_${a.value}`,type:"root",total:ne,rootIndex:ke,branches:de.branches.map((Ee,xe)=>({...Ee,rootName:de.name,rootIndex:ke,color:Nr(de.color)||It[ke]||It[ke%It.length],value:Ee.value>=0?Ee.value:0,id:Ee.id||`branch_${ke}_${xe}_${a.value}`,proportionToRoot:Ee.value/ne,type:"branch",breakdown:Ee.breakdown.map((te,Pe)=>({table:{rootName:de.name,rootValue:ne,rootToTotal:ne/m.value,branchName:Ee.name,branchValue:Ee.value,branchToTotal:Ee.value/m.value,branchToRoot:Ee.value/ne,nutName:te.name,nutValue:te.value,nutToTotal:te.value/m.value,nutToRoot:te.value/ne,nutToBranch:te.value/Ee.value},...te,type:"nut",branchName:Ee.name,rootName:de.name,branchTotal:Ee.value>=0?Ee.value:0,proportionToBranch:te.value/Ee.value,proportionToRoot:te.value/ne,proportionToTree:te.value/m.value,rootIndex:ke,id:te.id||`nut_${ke}_${xe}_${Pe}_${a.value}`,color:Nr(te.color)||It[Pe]||It[Pe%It.length],value:te.value>=0?te.value:0}))}))}}));function F(){return y.value}e({getData:F});const N=i.computed(()=>y.value.flatMap(de=>de.branches).length),D=i.computed(()=>Math.max(...y.value.map(de=>de.branches.map(ke=>ke.value).reduce((ke,ne)=>ke+ne,0)))),H=i.computed(()=>Math.max(...y.value.flatMap(de=>de.branches.map(ke=>ke.value)))),R=i.computed(()=>256+w.value.padding.left),U=i.computed(()=>y.value.sort((de,ke)=>ke.total-de.total).map((de,ke)=>{const ne=f.value.height/y.value.length/2,Ee=de.total/D.value*(ne>64?64:ne);return{...de,x:f.value.seedX,y:f.value.top+f.value.height/y.value.length*(ke+1)-(f.value.height/y.value.length/2+w.value.gap/2),r:Ee<w.value.branchSize/2?w.value.branchSize/2:Ee}})),I=i.computed(()=>h.value.style.chart.layout.branches.widthRatio<=0?.1:h.value.style.chart.layout.branches.widthRatio>1.8?1.8:h.value.style.chart.layout.branches.widthRatio),O=i.computed(()=>U.value.flatMap(de=>de.branches)),q=i.computed(()=>O.value.sort((de,ke)=>ke.value-de.value).map((de,ke)=>({...de,y1:ke*w.value.branchSize+f.value.top+ke*w.value.gap,y2:ke*w.value.branchSize+w.value.branchSize,x1:R.value,x2:384*de.value/H.value*I.value+R.value})));function T(de){const ke=U.value.find(ne=>ne.rootIndex===de.rootIndex);return{x:ke.x,y:ke.y,r:ke.r}}const L=i.ref(null),G=i.ref(null),Y=i.ref(null),se=i.ref(null);function he(){L.value=null,Y.value=null,se.value=null}i.computed(()=>L.value?L.value.rootIndex:null);function ge(de){return se.value?se.value===null?!0:de.type==="root"?de.id===se.value.id:de.rootIndex===se.value.rootIndex:L.value===null&&Y.value===null?!0:de.type==="nut"?L.value.id===de.id:de.type==="branch"?Y.value.id===de.id:de.type==="root"?Y.value&&Y.value.rootIndex===de.rootIndex||L.value&&L.value.rootIndex===de.rootIndex:!1}function re(de){he(),i.nextTick(()=>{L.value=de,Y.value=de,G.value=Gh({series:de.breakdown,base:1},de.x2+24+h.value.style.chart.layout.nuts.offsetX,de.y1+w.value.branchSize/2,80,80),r("selectNut",de.breakdown)})}function le(){L.value=null,G.value=null,r("selectNut",null)}function fe(de){Y.value&&Y.value.id===de.id?(Y.value=null,he(),r("selectBranch",null)):(he(),Y.value=de,r("selectBranch",de))}function Ue(de){se.value&&se.value.id===de.id?(he(),r("selectRoot",null)):(he(),se.value=de,r("selectRoot",de))}function b(de,ke=!1){let ne=0,Ee=ke?16:0,xe="middle";return de.center.endX>de.cx?(ne=de.center.endX+16+Ee,xe="start"):de.center.endX<de.cx?(ne=de.center.endX-16-Ee,xe="end"):(ne=de.centerX+Ee,xe="middle"),{x:ne,anchor:xe}}function _(de){return de.center.endY>de.cy?de.center.endY+16:de.center.endY<de.cy?de.center.endY-32:de.center.endY}function B(){return f.value.bottom-(L.value.y1+180)<0?0:f.value.bottom}function x(de){const ke=`M${b(de).x},${_(de)-4} `,ne=` ${de.center.endX},${de.center.endY}`;let Ee="";return de.center.endX>de.cx?Ee=`${b(de).x-12},${_(de)-4}`:de.center.endX<de.cx?Ee=`${b(de).x+12},${_(de)-4}`:Ee=`${b(de).x+12},${_(de)-4}`,`${ke}${Ee}${ne}`}function S(de){return de.proportion*100>h.value.style.chart.layout.nuts.selected.labels.dataLabels.hideUnderValue}i.onMounted(()=>{const de=N.value*(w.value.branchSize+w.value.gap)+w.value.padding.top+w.value.padding.bottom;w.value.height=de});function Q(){o.value=!0,GA({domElement:document.getElementById(`vue-ui-chestnut_${a.value}`),fileName:h.value.style.chart.layout.title.text||"vue-ui-chestnut"}).finally(()=>{o.value=!1})}const W=i.computed(()=>{const de=[h.value.table.th.translations.rootName,h.value.table.th.translations.rootValue,h.value.table.th.translations.rootToTotal,h.value.table.th.translations.branchName,h.value.table.th.translations.branchValue,h.value.table.th.translations.branchToRoot,h.value.table.th.translations.branchToTotal,h.value.table.th.translations.nutName,h.value.table.th.translations.nutValue,h.value.table.th.translations.nutToBranch,h.value.table.th.translations.nutToRoot,h.value.table.th.translations.nutToTotal],ke=y.value.flatMap((ne,Ee)=>ne.branches.flatMap((xe,te)=>xe.breakdown.flatMap((Pe,rt)=>Pe.table)));return{head:de,body:ke}});function ue(){i.nextTick(()=>{const de=[[h.value.style.chart.layout.title.text],[h.value.style.chart.layout.title.subtitle.text],[""],["Grand total",m.value],[""]],ke=W.value.head,ne=W.value.body.map((xe,te)=>[W.value.body[te-1]&&W.value.body[te-1].rootName===xe.rootName?"":xe.rootName,W.value.body[te-1]&&W.value.body[te-1].rootName===xe.rootName?"":xe.rootValue,W.value.body[te-1]&&W.value.body[te-1].rootName===xe.rootName?"":xe.rootToTotal,W.value.body[te-1]&&W.value.body[te-1].branchName===xe.branchName?"":xe.branchName,W.value.body[te-1]&&W.value.body[te-1].branchName===xe.branchName?"":xe.branchValue,W.value.body[te-1]&&W.value.body[te-1].branchName===xe.branchName?"":xe.branchToRoot,W.value.body[te-1]&&W.value.body[te-1].branchName===xe.branchName?"":xe.branchToTotal,xe.nutName,xe.nutValue,xe.nutToBranch,xe.nutToRoot,xe.nutToTotal]),Ee=de.concat([ke]).concat(ne);ei(Ee,h.value.style.chart.layout.title.text||"vue-ui-chestnut")})}function Ce(de){de.target&&de.target.tagName==="svg"&&he(),c.value&&c.value.removeAttribute("open")}return(de,ke)=>(i.openBlock(),i.createElementBlock("div",{class:"vue-ui-chestnut",ref_key:"chestnutChart",ref:s,id:`vue-ui-chestnut_${a.value}`,style:i.normalizeStyle(`font-family:${h.value.style.fontFamily};width:100%; text-align:center`)},[h.value.userOptions.show?(i.openBlock(),i.createElementBlock("details",{key:0,class:"vue-ui-chestnut-user-options",style:i.normalizeStyle(`background:${h.value.style.chart.backgroundColor};color:${h.value.style.chart.color}`),"data-html2canvas-ignore":"",ref_key:"details",ref:c},[i.createElementVNode("summary",{style:i.normalizeStyle(`background:${h.value.style.chart.backgroundColor};color:${h.value.style.chart.color}`)},i.toDisplayString(h.value.userOptions.title),5),i.createElementVNode("div",d$,[i.withDirectives(i.createElementVNode("input",{type:"checkbox",id:`vue-ui-chestnut-option-table_${a.value}`,name:`vue-ui-chestnut-option-table_${a.value}`,"onUpdate:modelValue":ke[0]||(ke[0]=ne=>d.value.showTable=ne)},null,8,g$),[[i.vModelCheckbox,d.value.showTable]]),i.createElementVNode("label",{for:`vue-ui-chestnut-option-table_${a.value}`},i.toDisplayString(h.value.userOptions.labels.showTable),9,p$)]),i.createElementVNode("div",{class:"vue-ui-chestnut-user-options-items",style:i.normalizeStyle(`background:${h.value.style.chart.backgroundColor};color:${h.value.style.chart.color}`)},[i.createElementVNode("button",{class:"vue-ui-chestnut-button",onClick:Q,disabled:o.value,style:i.normalizeStyle([{"margin-top":"12px"},`color:${h.value.style.chart.color}`])},[o.value?(i.openBlock(),i.createElementBlock("svg",{key:0,class:"vue-ui-chestnut-print-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:h.value.style.chart.color,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},v$,8,y$)):(i.openBlock(),i.createElementBlock("span",w$,"PDF"))],12,m$),i.createElementVNode("button",{class:"vue-ui-chestnut-button",onClick:ue,style:i.normalizeStyle(`background:${h.value.style.chart.backgroundColor};color:${h.value.style.chart.color}`)}," XLSX ",4)],4)],4)):i.createCommentVNode("",!0),w.value.height>0?(i.openBlock(),i.createElementBlock("svg",{key:1,viewBox:`0 0 ${w.value.width} ${w.value.height}`,style:i.normalizeStyle(`max-width:100%;overflow:visible;background:${h.value.style.chart.backgroundColor};color:${h.value.style.chart.color}`),onClick:Ce},[L.value?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("g",x$,[h.value.style.chart.layout.title.text?(i.openBlock(),i.createElementBlock("text",{key:0,"text-anchor":"middle",fill:h.value.style.chart.layout.title.color,"font-weight":h.value.style.chart.layout.title.bold?"bold":"normal","font-size":h.value.style.chart.layout.title.fontSize,x:w.value.width/2,y:12+h.value.style.chart.layout.title.fontSize+h.value.style.chart.layout.title.offsetY,onClick:he},i.toDisplayString(h.value.style.chart.layout.title.text),9,b$)):i.createCommentVNode("",!0),h.value.style.chart.layout.title.subtitle.text?(i.openBlock(),i.createElementBlock("text",{key:1,"text-anchor":"middle",fill:h.value.style.chart.layout.title.subtitle.color,"font-weight":h.value.style.chart.layout.title.subtitle.bold?"bold":"normal","font-size":h.value.style.chart.layout.title.subtitle.fontSize,x:w.value.width/2,y:48+h.value.style.chart.layout.title.subtitle.fontSize+h.value.style.chart.layout.title.subtitle.offsetY,onClick:he},i.toDisplayString(h.value.style.chart.layout.title.subtitle.text),9,C$)):i.createCommentVNode("",!0)])),i.createElementVNode("defs",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(y.value,(ne,Ee)=>(i.openBlock(),i.createElementBlock("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`root_gradient_${a.value}_${ne.rootIndex}`},[i.createElementVNode("stop",{offset:"0%","stop-color":`${i.unref(eA)(ne.color,.05)}${i.unref(yt)[100-h.value.style.chart.layout.roots.gradientIntensity]}`},null,8,_$),i.createElementVNode("stop",{offset:"100%","stop-color":ne.color},null,8,F$)],8,E$))),256)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(y.value,ne=>(i.openBlock(),i.createElementBlock("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`branch_gradient_${a.value}_${ne.rootIndex}`},[i.createElementVNode("stop",{offset:"0%","stop-color":ne.color},null,8,k$),i.createElementVNode("stop",{offset:"100%","stop-color":`${i.unref(eA)(ne.color,.02)}${i.unref(yt)[100-h.value.style.chart.layout.branches.gradientIntensity]}`},null,8,T$)],8,S$))),256)),i.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nutpick_${a.value}`},[i.createElementVNode("stop",{offset:"0%","stop-color":`#FFFFFF${i.unref(yt)[0]}`},null,8,L$),i.createElementVNode("stop",{offset:"80%","stop-color":`#FFFFFF${i.unref(yt)[h.value.style.chart.layout.nuts.selected.gradientIntensity]}`},null,8,U$),i.createElementVNode("stop",{offset:"100%","stop-color":`#FFFFFF${i.unref(yt)[0]}`},null,8,I$)],8,N$),i.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nut_${a.value}`},[i.createElementVNode("stop",{offset:"0%","stop-color":`#FFFFFF${i.unref(yt)[0]}`},null,8,Q$),i.createElementVNode("stop",{offset:"80%","stop-color":`#FFFFFF${i.unref(yt)[h.value.style.chart.layout.nuts.gradientIntensity]}`},null,8,O$),i.createElementVNode("stop",{offset:"100%","stop-color":`#FFFFFF${i.unref(yt)[0]}`},null,8,P$)],8,D$),i.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nut_underlayer_${a.value}`},[i.createElementVNode("stop",{offset:"0%","stop-color":`${h.value.style.chart.backgroundColor}${i.unref(yt)[100]}`},null,8,R$),i.createElementVNode("stop",{offset:"80%","stop-color":`${h.value.style.chart.backgroundColor}${i.unref(yt)[60]}`},null,8,H$),i.createElementVNode("stop",{offset:"100%","stop-color":`${h.value.style.chart.backgroundColor}${i.unref(yt)[0]}`},null,8,V$)],8,M$)]),h.value.style.chart.layout.grandTotal.show?(i.openBlock(),i.createElementBlock("g",$$,[i.createElementVNode("text",{x:f.value.seedX,y:32+h.value.style.chart.layout.grandTotal.offsetY,"font-size":h.value.style.chart.layout.grandTotal.fontSize,"font-weight":h.value.style.chart.layout.grandTotal.bold?"bold":"normal",fill:h.value.style.chart.layout.grandTotal.color,"text-anchor":"middle",onClick:he},i.toDisplayString(h.value.style.chart.layout.grandTotal.text),9,z$),i.createElementVNode("text",{x:f.value.seedX,y:38+h.value.style.chart.layout.grandTotal.fontSize+h.value.style.chart.layout.grandTotal.offsetY,"font-size":h.value.style.chart.layout.grandTotal.fontSize,"font-weight":h.value.style.chart.layout.grandTotal.bold?"bold":"normal",fill:h.value.style.chart.layout.grandTotal.color,"text-anchor":"middle",onClick:he},i.toDisplayString(h.value.style.chart.layout.grandTotal.prefix)+" "+i.toDisplayString(m.value.toFixed(h.value.style.chart.layout.grandTotal.roundingValue))+" "+i.toDisplayString(h.value.style.chart.layout.grandTotal.suffix),9,K$)])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(q.value,ne=>(i.openBlock(),i.createElementBlock("g",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(w.value.branchSize,(Ee,xe)=>(i.openBlock(),i.createElementBlock("path",{d:`M
374
- ${ne.x1},${ne.y1+xe}
375
- C${ne.x1-20},${ne.y1+xe}
376
- ${ne.x1-80},${ne.y1+xe}
377
- ${T(ne).x+T(ne).r/2}, ${T(ne).y}
378
- `,stroke:`${ne.color}${i.unref(yt)[h.value.style.chart.layout.links.opacity]}`,fill:"none","stroke-width":"2","shape-rendering":"cirspEdges",style:i.normalizeStyle(`opacity:${ge(ne)?1:0}`),onClick:he},null,12,G$))),256))]))),256)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(U.value,ne=>(i.openBlock(),i.createElementBlock("circle",{cx:ne.x,cy:ne.y,r:ne.r,fill:h.value.style.chart.layout.roots.underlayerColor,stroke:"none",style:i.normalizeStyle(`cursor:pointer; opacity:${ge(ne)?1:.05}`)},null,12,j$))),256)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(U.value,ne=>(i.openBlock(),i.createElementBlock("circle",{cx:ne.x,cy:ne.y,r:ne.r,fill:h.value.style.chart.layout.roots.useGradient?`url(#root_gradient_${a.value}_${ne.rootIndex})`:ne.color,stroke:h.value.style.chart.layout.roots.stroke,"stroke-width":h.value.style.chart.layout.roots.strokeWidth,style:i.normalizeStyle(`cursor:pointer; opacity:${ge(ne)?1:.05}`),onClick:Ee=>Ue(ne)},null,12,W$))),256)),h.value.style.chart.layout.roots.labels.show?(i.openBlock(),i.createElementBlock("g",X$,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(U.value,ne=>(i.openBlock(),i.createElementBlock("text",{x:ne.x,y:ne.y+h.value.style.chart.layout.roots.labels.fontSize/2.6,"text-anchor":"middle","font-size":h.value.style.chart.layout.roots.labels.fontSize,fill:h.value.style.chart.layout.roots.labels.adaptColorToBackground?i.unref(Qg)(ne.color):h.value.style.chart.layout.roots.labels.color,"font-weight":"bold",style:i.normalizeStyle(`cursor:pointer; opacity:${ge(ne)?1:.05}`),onClick:Ee=>Ue(ne)},i.toDisplayString(h.value.style.chart.layout.roots.labels.prefix)+" "+i.toDisplayString(ne.total.toFixed(h.value.style.chart.layout.roots.labels.roundingValue))+" "+i.toDisplayString(h.value.style.chart.layout.roots.labels.suffix),13,q$))),256)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(U.value,ne=>(i.openBlock(),i.createElementBlock("g",null,[L.value&&ne.rootIndex===L.value.rootIndex||Y.value&&ne.rootIndex===Y.value.rootIndex||se.value&&ne.rootIndex===se.value.rootIndex?(i.openBlock(),i.createElementBlock("g",Y$,[i.createElementVNode("text",{x:ne.x,y:ne.y+ne.r+24,"text-anchor":"middle",fill:h.value.style.chart.layout.roots.labels.name.color,"font-size":h.value.style.chart.layout.roots.labels.name.fontSize,"font-weight":h.value.style.chart.layout.roots.labels.name.bold?"bold":"normal",onClick:he},i.toDisplayString(ne.name),9,J$)])):i.createCommentVNode("",!0)]))),256))])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(q.value,ne=>(i.openBlock(),i.createElementBlock("rect",{x:ne.x1,y:ne.y1,height:w.value.branchSize,width:ne.x2-ne.x1,fill:h.value.style.chart.layout.branches.underlayerColor,rx:h.value.style.chart.layout.branches.borderRadius,stroke:"none",style:i.normalizeStyle(`opacity:${ge(ne)?1:.05}`),onClick:Ee=>fe(ne)},null,12,Z$))),256)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(q.value,ne=>(i.openBlock(),i.createElementBlock("rect",{x:ne.x1,y:ne.y1,height:w.value.branchSize,width:ne.x2-ne.x1,fill:h.value.style.chart.layout.branches.useGradient?`url(#branch_gradient_${a.value}_${ne.rootIndex})`:ne.color,rx:h.value.style.chart.layout.branches.borderRadius,stroke:h.value.style.chart.layout.branches.stroke,"stroke-width":h.value.style.chart.layout.branches.strokeWidth,style:i.normalizeStyle(`cursor:pointer; opacity:${ge(ne)?1:.05}`),onClick:Ee=>fe(ne)},null,12,ez))),256)),h.value.style.chart.layout.branches.labels.dataLabels.show?(i.openBlock(),i.createElementBlock("g",tz,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(q.value,ne=>(i.openBlock(),i.createElementBlock("g",null,[ne.proportionToRoot*100>h.value.style.chart.layout.branches.labels.dataLabels.hideUnderValue?(i.openBlock(),i.createElementBlock("text",{key:0,x:ne.x1+6,y:ne.y1+w.value.branchSize/1.5,"text-anchor":"start",fill:i.unref(Qg)(ne.color),"font-size":h.value.style.chart.layout.branches.labels.dataLabels.fontSize,"font-weight":"bold",style:i.normalizeStyle(`cursor:pointer; opacity:${ge(ne)?1:.05}`),onClick:Ee=>fe(ne)},i.toDisplayString(h.value.style.chart.layout.branches.labels.dataLabels.prefix)+" "+i.toDisplayString(ne.value.toFixed(h.value.style.chart.layout.branches.labels.dataLabels.roundingValue))+" "+i.toDisplayString(h.value.style.chart.layout.branches.labels.dataLabels.suffix),13,rz)):i.createCommentVNode("",!0)]))),256))])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(q.value,ne=>(i.openBlock(),i.createElementBlock("g",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(Gh)({series:ne.breakdown,base:1},ne.x2+24+h.value.style.chart.layout.nuts.offsetX,ne.y1+w.value.branchSize/2,w.value.branchSize/3,w.value.branchSize/3),(Ee,xe)=>(i.openBlock(),i.createElementBlock("path",{d:Ee.path,stroke:Ee.color,"stroke-width":10,fill:"none",style:i.normalizeStyle(`opacity:${ge(ne)?1:.1}`)},null,12,nz))),256)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(q.value,Ee=>(i.openBlock(),i.createElementBlock("circle",{cx:Ee.x2+24+h.value.style.chart.layout.nuts.offsetX,cy:Ee.y1+w.value.branchSize/2,r:6,fill:h.value.style.chart.backgroundColor,onClick:xe=>re(Ee),style:{cursor:"pointer"}},null,8,az))),256)),i.createElementVNode("circle",{fill:h.value.style.chart.layout.nuts.useGradient?`url(#nut_${a.value})`:"transparent",cx:ne.x2+24+h.value.style.chart.layout.nuts.offsetX,cy:ne.y1+w.value.branchSize/2,r:w.value.branchSize/2+2,onClick:Ee=>re(ne),style:i.normalizeStyle(`cursor:pointer;opacity:${ge(ne)?1:.1}`)},null,12,Az)]))),256)),h.value.style.chart.layout.branches.labels.show&&!Y.value?(i.openBlock(),i.createElementBlock("g",iz,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(q.value,ne=>(i.openBlock(),i.createElementBlock("text",{x:ne.x2+w.value.branchSize+24+h.value.style.chart.layout.nuts.offsetX,y:ne.y1+w.value.branchSize/2+5,"font-size":h.value.style.chart.layout.branches.labels.fontSize,"font-weight":h.value.style.chart.layout.branches.labels.bold?"bold":"normal",fill:h.value.style.chart.layout.branches.labels.color,"text-anchor":"start",style:i.normalizeStyle(`opacity:${ge(ne)?1:.1}`)},i.toDisplayString(ne.name),13,oz))),256))])):i.createCommentVNode("",!0),i.createElementVNode("line",{x1:256+w.value.padding.left,x2:256+w.value.padding.left,y1:f.value.top,y2:f.value.bottom,stroke:h.value.style.chart.layout.verticalSeparator.stroke,"stroke-width":h.value.style.chart.layout.verticalSeparator.strokeWidth},null,8,sz),!L.value&&!Y.value?(i.openBlock(),i.createElementBlock("foreignObject",{key:5,x:0,y:f.value.bottom,height:w.value.height-f.value.bottom,width:w.value.width,style:{overflow:"visible"},onClick:he},[i.createElementVNode("div",cz,[i.createElementVNode("div",uz,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(U.value,ne=>(i.openBlock(),i.createElementBlock("div",{style:i.normalizeStyle(`display:flex;align-items:center;gap:3px;flex-direction:row;font-size:${h.value.style.chart.layout.legend.fontSize}px;`)},[(i.openBlock(),i.createElementBlock("svg",hz,[i.createElementVNode("circle",{cx:"10",cy:"10",r:"10",fill:ne.color,stroke:"none"},null,8,fz)])),i.createElementVNode("span",null,i.toDisplayString(ne.name),1),i.createTextVNode(" : "),i.createElementVNode("b",null,i.toDisplayString(h.value.style.chart.layout.legend.prefix)+" "+i.toDisplayString(ne.total.toFixed(h.value.style.chart.layout.legend.roundingValue))+" "+i.toDisplayString(h.value.style.chart.layout.legend.suffix),1),i.createTextVNode("("+i.toDisplayString((ne.total/m.value*100).toFixed(h.value.style.chart.layout.legend.roundingPercentage))+"%) ",1)],4))),256))])])],8,lz)):i.createCommentVNode("",!0),L.value&&G.value?(i.openBlock(),i.createElementBlock("g",dz,[(i.openBlock(),i.createElementBlock("foreignObject",{x:0,y:B(),height:w.value.height-f.value.bottom,width:w.value.width,style:{overflow:"visible"},onClick:he},[i.createElementVNode("div",pz,[i.createElementVNode("b",null,i.toDisplayString(L.value.name),1),i.createElementVNode("div",mz,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(L.value.breakdown,(ne,Ee)=>(i.openBlock(),i.createElementBlock("div",{style:i.normalizeStyle(`display:flex;align-items:center;gap:6px;flex-direction:row;font-size:${h.value.style.chart.layout.legend.fontSize}px;`)},[(i.openBlock(),i.createElementBlock("svg",yz,[i.createElementVNode("circle",{cx:"10",cy:"10",r:"10",fill:ne.color,stroke:"none"},null,8,vz)])),i.createElementVNode("span",null,[i.createTextVNode(i.toDisplayString(ne.name)+" : ",1),i.createElementVNode("b",null,i.toDisplayString(h.value.style.chart.layout.legend.prefix)+" "+i.toDisplayString(ne.value.toFixed(h.value.style.chart.layout.nuts.selected.labels.roundingValue))+" "+i.toDisplayString(h.value.style.chart.layout.legend.suffix),1),i.createTextVNode(" ("+i.toDisplayString((ne.proportionToBranch*100).toFixed(h.value.style.chart.layout.nuts.selected.labels.roundingPercentage))+"%)",1)])],4))),256))])])],8,gz)),i.createElementVNode("circle",{cx:L.value.x2+24+h.value.style.chart.layout.nuts.offsetX,cy:L.value.y1+w.value.branchSize/2,r:256,fill:`url(#nut_underlayer_${a.value})`,onClick:le,class:i.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,wz),i.createElementVNode("circle",{cx:L.value.x2+24+h.value.style.chart.layout.nuts.offsetX,cy:L.value.y1+w.value.branchSize/2,r:118,fill:h.value.style.chart.backgroundColor,onClick:le,class:i.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,Bz),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(G.value,ne=>(i.openBlock(),i.createElementBlock("path",{d:ne.path,stroke:ne.color,"stroke-width":64,fill:"none",onClick:le,class:i.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,xz))),256)),i.createElementVNode("circle",{cx:L.value.x2+24+h.value.style.chart.layout.nuts.offsetX,cy:L.value.y1+w.value.branchSize/2,r:100,fill:`url(#nutpick_${a.value})`,onClick:le,class:i.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,bz),i.createElementVNode("circle",{cx:L.value.x2+24+h.value.style.chart.layout.nuts.offsetX,cy:L.value.y1+w.value.branchSize/2,r:48,fill:h.value.style.chart.backgroundColor,onClick:le,class:i.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,Cz),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(G.value,ne=>(i.openBlock(),i.createElementBlock("g",null,[S(ne)?(i.openBlock(),i.createElementBlock("path",{key:0,d:x(ne),stroke:ne.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",class:i.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,Ez)):i.createCommentVNode("",!0)]))),256)),i.createElementVNode("text",{x:L.value.x2+24+h.value.style.chart.layout.nuts.offsetX,y:L.value.y1+8,fill:h.value.style.chart.layout.nuts.selected.labels.core.total.color,"font-size":h.value.style.chart.layout.nuts.selected.labels.core.total.fontSize,"font-weight":h.value.style.chart.layout.nuts.selected.labels.core.total.bold?"bold":"normal","text-anchor":"middle",onClick:le,class:i.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},i.toDisplayString(h.value.translations.total),11,_z),i.createElementVNode("text",{x:L.value.x2+24+h.value.style.chart.layout.nuts.offsetX,y:L.value.y1+36,fill:h.value.style.chart.layout.nuts.selected.labels.core.value.color,"font-size":h.value.style.chart.layout.nuts.selected.labels.core.value.fontSize,"font-weight":h.value.style.chart.layout.nuts.selected.labels.core.value.bold?"bold":"normal","text-anchor":"middle",onClick:le,class:i.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},i.toDisplayString(h.value.style.chart.layout.nuts.selected.labels.core.value.prefix)+" "+i.toDisplayString(L.value.value.toFixed(h.value.style.chart.layout.nuts.selected.roundingValue))+" "+i.toDisplayString(h.value.style.chart.layout.nuts.selected.labels.core.value.suffix),11,Fz),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(G.value,(ne,Ee)=>(i.openBlock(),i.createElementBlock("g",null,[S(ne)?(i.openBlock(),i.createElementBlock("text",{key:0,x:b(ne).x,"text-anchor":b(ne).anchor,y:_(ne),fill:ne.color,"font-size":h.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:i.normalizeStyle(`font-weight:${h.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:i.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")}," ⬤ ",14,Sz)):i.createCommentVNode("",!0),S(ne)?(i.openBlock(),i.createElementBlock("text",{key:1,x:b(ne,!0).x,"text-anchor":b(ne,!0).anchor,y:_(ne),fill:h.value.style.chart.layout.nuts.selected.labels.dataLabels.color,"font-size":h.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:i.normalizeStyle(`font-weight:${h.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:i.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},i.toDisplayString(L.value.breakdown[Ee].name),15,kz)):i.createCommentVNode("",!0)]))),256)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(G.value,(ne,Ee)=>(i.openBlock(),i.createElementBlock("g",null,[S(ne)?(i.openBlock(),i.createElementBlock("text",{key:0,x:b(ne,!0).x,"text-anchor":b(ne).anchor,y:_(ne)+h.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,fill:h.value.style.chart.layout.nuts.selected.labels.dataLabels.color,"font-size":h.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:i.normalizeStyle(`font-weight:${h.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:i.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},i.toDisplayString((L.value.breakdown[Ee].value/L.value.value*100).toFixed(h.value.style.chart.layout.nuts.selected.labels.roundingPercentage))+"% "+i.toDisplayString(h.value.translations.of)+" "+i.toDisplayString(L.value.breakdown[Ee].branchName)+" ("+i.toDisplayString(h.value.style.chart.layout.nuts.selected.labels.dataLabels.prefix)+" "+i.toDisplayString(L.value.breakdown[Ee].value)+" "+i.toDisplayString(h.value.style.chart.layout.nuts.selected.labels.dataLabels.suffix)+") ",15,Tz)):i.createCommentVNode("",!0),S(ne)?(i.openBlock(),i.createElementBlock("text",{key:1,x:b(ne,!0).x,"text-anchor":b(ne).anchor,y:_(ne)+h.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize*2,fill:h.value.style.chart.layout.nuts.selected.labels.dataLabels.color,"font-size":h.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:i.normalizeStyle(`font-weight:${h.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:i.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},i.toDisplayString((L.value.breakdown[Ee].proportionToRoot*100).toFixed(h.value.style.chart.layout.nuts.selected.labels.roundingPercentage))+"% "+i.toDisplayString(h.value.translations.of)+" "+i.toDisplayString(L.value.breakdown[Ee].rootName),15,Nz)):i.createCommentVNode("",!0),S(ne)?(i.openBlock(),i.createElementBlock("text",{key:2,x:b(ne,!0).x,"text-anchor":b(ne).anchor,y:_(ne)+h.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize*3,fill:h.value.style.chart.layout.nuts.selected.labels.dataLabels.color,"font-size":h.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:i.normalizeStyle(`font-weight:${h.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:i.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},i.toDisplayString((L.value.breakdown[Ee].proportionToTree*100).toFixed(h.value.style.chart.layout.nuts.selected.labels.roundingPercentage))+"% "+i.toDisplayString(h.value.translations.proportionToTree),15,Lz)):i.createCommentVNode("",!0)]))),256))])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(q.value,ne=>(i.openBlock(),i.createElementBlock("g",null,[Y.value&&Y.value.id===ne.id&&!L.value?(i.openBlock(),i.createElementBlock("text",{key:0,x:ne.x1+6,y:ne.y1+w.value.branchSize+24,"font-weight":"bold","text-anchor":"start","font-size":h.value.style.chart.layout.branches.labels.dataLabels.fontSize,fill:h.value.style.chart.layout.branches.labels.color,onClick:he},i.toDisplayString(ne.name)+" : "+i.toDisplayString(h.value.style.chart.layout.branches.labels.dataLabels.prefix)+" "+i.toDisplayString(ne.value.toFixed(h.value.style.chart.layout.branches.labels.dataLabels.roundingValue))+" "+i.toDisplayString(h.value.style.chart.layout.branches.labels.dataLabels.suffix),9,Uz)):i.createCommentVNode("",!0),Y.value&&Y.value.id===ne.id&&!L.value?(i.openBlock(),i.createElementBlock("text",{key:1,x:ne.x1+6,y:ne.y1+w.value.branchSize+48,"text-anchor":"start","font-size":h.value.style.chart.layout.branches.labels.dataLabels.fontSize,fill:h.value.style.chart.layout.branches.labels.color,onClick:he},i.toDisplayString((ne.proportionToRoot*100).toFixed(h.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage))+"% "+i.toDisplayString(h.value.translations.of)+" "+i.toDisplayString(ne.rootName),9,Iz)):i.createCommentVNode("",!0),Y.value&&Y.value.id===ne.id&&!L.value?(i.openBlock(),i.createElementBlock("text",{key:2,x:ne.x1+6,y:ne.y1+w.value.branchSize+72,"text-anchor":"start","font-size":h.value.style.chart.layout.branches.labels.dataLabels.fontSize,fill:h.value.style.chart.layout.branches.labels.color,onClick:he},i.toDisplayString((ne.value/m.value*100).toFixed(h.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage))+"% "+i.toDisplayString(h.value.translations.proportionToTree),9,Dz)):i.createCommentVNode("",!0)]))),256))],12,B$)):i.createCommentVNode("",!0),d.value.showTable?(i.openBlock(),i.createElementBlock("div",{key:2,onClick:Ce,class:"vue-ui-chestnut-table",style:"width:100%;overflow-x:auto"},[i.createElementVNode("table",null,[i.createElementVNode("thead",null,[h.value.style.chart.layout.title.text?(i.openBlock(),i.createElementBlock("tr",Qz,[i.createElementVNode("th",{colspan:"12",style:i.normalizeStyle(`background:${h.value.table.th.backgroundColor};color:${h.value.table.th.color};outline:${h.value.table.th.outline}`)},[i.createElementVNode("span",null,i.toDisplayString(h.value.style.chart.layout.title.text),1),h.value.style.chart.layout.title.subtitle.text?(i.openBlock(),i.createElementBlock("span",Oz," : "+i.toDisplayString(h.value.style.chart.layout.title.subtitle.text),1)):i.createCommentVNode("",!0)],4)])):i.createCommentVNode("",!0),i.createElementVNode("tr",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(W.value.head,ne=>(i.openBlock(),i.createElementBlock("th",{style:i.normalizeStyle(`background:${h.value.table.th.backgroundColor};color:${h.value.table.th.color};outline:${h.value.table.th.outline}`)},i.toDisplayString(ne),5))),256))])]),i.createElementVNode("tbody",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(W.value.body,(ne,Ee)=>(i.openBlock(),i.createElementBlock("tr",null,[i.createElementVNode("td",{style:i.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},[W.value.body[Ee-1]&&W.value.body[Ee-1].rootName===ne.rootName?(i.openBlock(),i.createElementBlock("span",Pz)):(i.openBlock(),i.createElementBlock("span",Mz,i.toDisplayString(ne.rootName),1))],4),i.createElementVNode("td",{style:i.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},[W.value.body[Ee-1]&&W.value.body[Ee-1].rootName===ne.rootName?(i.openBlock(),i.createElementBlock("span",Rz)):(i.openBlock(),i.createElementBlock("span",Hz,i.toDisplayString(ne.rootValue.toFixed(h.value.table.td.roundingValue)),1))],4),i.createElementVNode("td",{style:i.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},[W.value.body[Ee-1]&&W.value.body[Ee-1].rootName===ne.rootName?(i.openBlock(),i.createElementBlock("span",Vz)):(i.openBlock(),i.createElementBlock("span",$z,i.toDisplayString((ne.rootToTotal*100).toFixed(h.value.table.td.roundingPercentage))+"% ",1))],4),i.createElementVNode("td",{style:i.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},[W.value.body[Ee-1]&&W.value.body[Ee-1].branchName===ne.branchName?(i.openBlock(),i.createElementBlock("span",zz)):(i.openBlock(),i.createElementBlock("span",Kz,i.toDisplayString(ne.branchName),1))],4),i.createElementVNode("td",{style:i.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},[W.value.body[Ee-1]&&W.value.body[Ee-1].branchName===ne.branchName?(i.openBlock(),i.createElementBlock("span",Gz)):(i.openBlock(),i.createElementBlock("span",jz,i.toDisplayString(ne.branchValue.toFixed(h.value.table.td.roundingValue)),1))],4),i.createElementVNode("td",{style:i.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},[W.value.body[Ee-1]&&W.value.body[Ee-1].branchName===ne.branchName?(i.openBlock(),i.createElementBlock("span",Wz)):(i.openBlock(),i.createElementBlock("span",Xz,i.toDisplayString((ne.branchToRoot*100).toFixed(h.value.table.td.roundingPercentage))+"% ",1))],4),i.createElementVNode("td",{style:i.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},[W.value.body[Ee-1]&&W.value.body[Ee-1].branchName===ne.branchName?(i.openBlock(),i.createElementBlock("span",qz)):(i.openBlock(),i.createElementBlock("span",Yz,i.toDisplayString((ne.branchToTotal*100).toFixed(h.value.table.td.roundingPercentage))+"% ",1))],4),i.createElementVNode("td",{style:i.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},i.toDisplayString(ne.nutName),5),i.createElementVNode("td",{style:i.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},i.toDisplayString(ne.nutValue.toFixed(h.value.table.td.roundingValue)),5),i.createElementVNode("td",{style:i.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},i.toDisplayString((ne.nutToBranch*100).toFixed(h.value.table.td.roundingPercentage))+"% ",5),i.createElementVNode("td",{style:i.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},i.toDisplayString((ne.nutToRoot*100).toFixed(h.value.table.td.roundingPercentage))+"% ",5),i.createElementVNode("td",{style:i.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},i.toDisplayString((ne.nutToTotal*100).toFixed(h.value.table.td.roundingPercentage))+"% ",5)]))),256))])])])):i.createCommentVNode("",!0)],12,f$))}},[["__scopeId","data-v-6650dd2d"]]),Woe="",Zz=["id"],eK={class:"vue-ui-onion-user-option-item"},tK=["id","name"],rK=["for"],nK={class:"vue-ui-onion-user-option-item"},aK=["id","name"],AK=["for"],iK=["disabled"],oK=["stroke"],sK=[i.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-82c99d17></path><path d="M18 16v.01" data-v-82c99d17></path><path d="M6 16v.01" data-v-82c99d17></path><path d="M12 5v.01" data-v-82c99d17></path><path d="M12 12v.01" data-v-82c99d17></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-82c99d17></path>',6)],lK={key:1},cK=["viewBox"],uK=["id"],hK=["stop-color"],fK=["stop-color"],dK=["stop-color"],gK={key:0},pK=["font-size","fill","x","y"],mK=["font-size","fill","x","y"],yK=["cx","cy","r","stroke","stroke-width","stroke-dasharray","stroke-dashoffset"],vK=["cx","cy","r","stroke","stroke-width","stroke-dasharray","stroke-dashoffset"],wK={key:1},BK=["cx","cy","r","fill"],xK={key:2},bK=["x","y","font-size","fill","font-weight"],CK=["y","height"],EK=["onClick"],_K=["onClick"],FK={key:0},SK={key:0},kK=["colspan"],TK=Ba({__name:"vue-ui-onion",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(t,{expose:e,emit:r}){const n=t,a=i.ref(`vue-ui-onion-${Math.random()}`),A=i.ref(ia.vue_ui_onion),o=i.ref(!1),s=i.ref(null),l=i.ref(null),c=i.computed(()=>{if(!Object.keys(n.config||{}).length)return A.value;const O=Wn({defaultConfig:A.value,userConfig:n.config});return Xn(O)}),u=i.ref({inside:!c.value.style.chart.layout.useDiv,showTable:c.value.table.show}),p=i.computed(()=>{const O=u.value.inside?80:64;return{height:512,width:512,padding:{top:O,left:O,right:O,bottom:O}}}),h=i.computed(()=>({top:p.value.padding.top,left:p.value.padding.left,right:p.value.width-p.value.padding.right,bottom:p.value.height-p.value.padding.bottom,centerX:p.value.width/2,centerY:p.value.height/2,width:p.value.width-p.value.padding.right-p.value.padding.left,height:p.value.height-p.value.padding.bottom-p.value.padding.top,minRadius:64,maxRadius:p.value.width-p.value.padding.right-p.value.padding.left})),d=i.computed(()=>n.dataset.map((O,q)=>({...O,color:Nr(O.color)||It[q],id:`onion_serie_${q}_${a.value}`}))),w=i.ref([]),f=i.computed(()=>d.value.filter(O=>!w.value.includes(O.id)).length),m=i.computed(()=>({gutter:h.value.width/2/f.value*c.value.style.chart.layout.gutter.width,track:h.value.width/2/f.value*c.value.style.chart.layout.track.width})),y=i.computed(()=>d.value.filter(O=>!w.value.includes(O.id)).map((O,q)=>{const T=(h.value.maxRadius-m.value.track)/f.value/2*(1+q),L=h.value.centerY-(h.value.centerY-h.value.top-c.value.style.chart.layout.labels.fontSize)/f.value*(q+1);return{...O,labelY:L,radius:T,path:F(T,O.percentage)}}));function F(O,q){const T=O*(1.5+(q/100>.3333333333333333?0:1-q/100))*Math.PI,L=O*1.5*Math.PI;return{bgDashArray:`${L} ${L}`,bgDashOffset:L-q/100*L,dashArray:`${T} ${T}`,dashOffset:T-q/100*T,fullOffset:0,active:`M${h.value.centerX},${h.value.centerY} A ${O},${O} 0 0 0 ${h.value.right},${h.value.top}`}}function N(O){w.value.includes(O)?w.value=w.value.filter(q=>q!==O):w.value.push(O),r("selectLegend",y.value)}function D(){return y.value}e({getData:D});const H=i.computed(()=>{const O=[c.value.table.translations.serie,c.value.table.translations.percentage,c.value.table.translations.value],q=y.value.map(T=>[T.name,T.percentage,T.value]);return{head:O,body:q}});function R(){o.value=!0,i.nextTick(()=>{GA({domElement:document.getElementById(`vue-ui-onion_${a.value}`),fileName:c.value.style.chart.title.text||"vue-ui-onion"}).finally(()=>{o.value=!1})})}function U(){i.nextTick(()=>{const O=[[c.value.style.chart.title.text],[c.value.style.chart.title.subtitle.text],[""]],q=H.value.head,T=H.value.body,L=O.concat([q]).concat(T);ei(L,c.value.style.chart.title.text||"vue-ui-onion")})}function I(){l.value&&l.value.removeAttribute("open")}return(O,q)=>(i.openBlock(),i.createElementBlock("div",{class:"vue-ui-onion",ref_key:"onionChart",ref:s,id:`vue-ui-onion_${a.value}`,style:i.normalizeStyle(`font-family:${c.value.style.fontFamily};width:100%; text-align:center`)},[(!u.value.inside||o.value)&&c.value.style.chart.title.text?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(`width:100%;background:${c.value.style.chart.backgroundColor}`)},[i.createElementVNode("div",{style:i.normalizeStyle(`width:100%;text-align:center;color:${c.value.style.chart.title.color};font-size:${c.value.style.chart.title.fontSize}px;font-weight:${c.value.style.chart.title.bold?"bold":""}`)},i.toDisplayString(c.value.style.chart.title.text),5),c.value.style.chart.title.subtitle.text?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(`width:100%;text-align:center;color:${c.value.style.chart.title.subtitle.color};font-size:${c.value.style.chart.title.subtitle.fontSize}px;font-weight:${c.value.style.chart.title.subtitle.bold?"bold":""}`)},i.toDisplayString(c.value.style.chart.title.subtitle.text),5)):i.createCommentVNode("",!0)],4)):i.createCommentVNode("",!0),c.value.userOptions.show?(i.openBlock(),i.createElementBlock("details",{key:1,class:"vue-ui-onion-user-options",style:i.normalizeStyle(`background:${c.value.style.chart.backgroundColor};color:${c.value.style.chart.color}`),"data-html2canvas-ignore":"",ref_key:"details",ref:l},[i.createElementVNode("summary",{style:i.normalizeStyle(`background:${c.value.style.chart.backgroundColor};color:${c.value.style.chart.color}`)},i.toDisplayString(c.value.userOptions.title),5),i.createElementVNode("div",{class:"vue-ui-onion-user-options-items",style:i.normalizeStyle(`background:${c.value.style.chart.backgroundColor};color:${c.value.style.chart.color}`)},[i.createElementVNode("div",eK,[i.withDirectives(i.createElementVNode("input",{type:"checkbox",id:`vue-ui-onion-option-title_${a.value}`,name:`vue-ui-onion-option-title_${a.value}`,"onUpdate:modelValue":q[0]||(q[0]=T=>u.value.inside=T)},null,8,tK),[[i.vModelCheckbox,u.value.inside]]),i.createElementVNode("label",{for:`vue-ui-onion-option-title_${a.value}`},i.toDisplayString(c.value.userOptions.labels.useDiv),9,rK)]),i.createElementVNode("div",nK,[i.withDirectives(i.createElementVNode("input",{type:"checkbox",id:`vue-ui-onion-option-table_${a.value}`,name:`vue-ui-onion-option-table_${a.value}`,"onUpdate:modelValue":q[1]||(q[1]=T=>u.value.showTable=T)},null,8,aK),[[i.vModelCheckbox,u.value.showTable]]),i.createElementVNode("label",{for:`vue-ui-onion-option-table_${a.value}`},i.toDisplayString(c.value.userOptions.labels.showTable),9,AK)]),i.createElementVNode("button",{class:"vue-ui-onion-button",onClick:R,disabled:o.value,style:i.normalizeStyle([{"margin-top":"12px"},`background:${c.value.style.chart.backgroundColor};color:${c.value.style.chart.color}`])},[o.value?(i.openBlock(),i.createElementBlock("svg",{key:0,class:"vue-ui-onion-print-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:c.value.style.chart.color,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},sK,8,oK)):(i.openBlock(),i.createElementBlock("span",lK,"PDF"))],12,iK),i.createElementVNode("button",{class:"vue-ui-onion-button",onClick:U,style:i.normalizeStyle(`background:${c.value.style.chart.backgroundColor};color:${c.value.style.chart.color}`)}," XLSX ",4)],4)],4)):i.createCommentVNode("",!0),(i.openBlock(),i.createElementBlock("svg",{viewBox:`0 0 ${p.value.width} ${p.value.height}`,style:i.normalizeStyle(`max-width:100%;overflow:visible;background:${c.value.style.chart.backgroundColor};color:${c.value.style.chart.color}`),onClick:I},[i.createElementVNode("defs",null,[i.createElementVNode("radialGradient",{id:`onion_gradient_${a.value}`},[i.createElementVNode("stop",{offset:"0%","stop-color":`${i.unref(Nr)(c.value.style.chart.backgroundColor)}00`},null,8,hK),i.createElementVNode("stop",{offset:"90%","stop-color":"#FFFFFF"+i.unref(yt)[c.value.style.chart.gradientIntensity]},null,8,fK),i.createElementVNode("stop",{offset:"100%","stop-color":`${i.unref(Nr)(c.value.style.chart.backgroundColor)}00`},null,8,dK)],8,uK)]),c.value.style.chart.title.text&&u.value.inside&&!o.value?(i.openBlock(),i.createElementBlock("g",gK,[i.createElementVNode("text",{"font-size":c.value.style.chart.title.fontSize,fill:c.value.style.chart.title.color,x:p.value.width/2,y:c.value.style.chart.title.fontSize,"text-anchor":"middle",style:i.normalizeStyle(`font-weight:${c.value.style.chart.title.bold?"bold":""}`)},i.toDisplayString(c.value.style.chart.title.text),13,pK),c.value.style.chart.title.subtitle.text?(i.openBlock(),i.createElementBlock("text",{key:0,"font-size":c.value.style.chart.title.subtitle.fontSize,fill:c.value.style.chart.title.subtitle.color,x:p.value.width/2,y:c.value.style.chart.title.fontSize*2,"text-anchor":"middle",style:i.normalizeStyle(`font-weight:${c.value.style.chart.title.subtitle.bold?"bold":""}`)},i.toDisplayString(c.value.style.chart.title.subtitle.text),13,mK)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(y.value,T=>(i.openBlock(),i.createElementBlock("circle",{cx:h.value.centerX,cy:h.value.centerY,r:T.radius,stroke:c.value.style.chart.layout.gutter.color,"stroke-width":m.value.gutter,fill:"none","stroke-dasharray":T.path.bgDashArray,"stroke-dashoffset":T.path.fullOffset,"stroke-linecap":"round",class:"vue-ui-onion-path",style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,yK))),256)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(y.value,T=>(i.openBlock(),i.createElementBlock("circle",{cx:h.value.centerX,cy:h.value.centerY,r:T.radius,stroke:`${T.color}`,"stroke-width":m.value.track,fill:"none","stroke-dasharray":T.path.dashArray,"stroke-dashoffset":T.path.dashOffset,class:"vue-ui-onion-path","stroke-linecap":"round",style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,vK))),256)),c.value.style.chart.useGradient?(i.openBlock(),i.createElementBlock("g",wK,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(y.value,T=>(i.openBlock(),i.createElementBlock("circle",{cx:h.value.centerX,cy:h.value.centerY,r:T.radius*1.1,stroke:"none",fill:`url(#onion_gradient_${a.value})`,style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,BK))),256))])):i.createCommentVNode("",!0),c.value.style.chart.layout.labels.show?(i.openBlock(),i.createElementBlock("g",xK,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(y.value,T=>(i.openBlock(),i.createElementBlock("g",null,[w.value.includes(T.id)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("text",{key:0,x:p.value.width/2-m.value.gutter*.8+c.value.style.chart.layout.labels.offsetX,y:T.labelY,"text-anchor":"end","font-size":c.value.style.chart.layout.labels.fontSize,fill:c.value.style.chart.layout.labels.color,"font-weight":c.value.style.chart.layout.labels.bold?"bold":"normal"},i.toDisplayString(T.name)+" "+i.toDisplayString(c.value.style.chart.layout.labels.percentage.show?` : ${T.percentage.toFixed(c.value.style.chart.layout.labels.roundingPercentage)}%`:"")+" "+i.toDisplayString(!c.value.style.chart.layout.labels.percentage.show&&c.value.style.chart.layout.labels.value.show?` : ${T.value?`${T.prefix}${T.value.toFixed(c.value.style.chart.layout.labels.roundingValue)}${T.suffix}`:""}`:`${c.value.style.chart.layout.labels.value.show&&T.value?`(${T.prefix}${T.value.toFixed(c.value.style.chart.layout.labels.roundingValue)}${T.suffix})`:""}`),9,bK))]))),256))])):i.createCommentVNode("",!0),c.value.style.chart.legend.show&&u.value.inside&&!o.value?(i.openBlock(),i.createElementBlock("foreignObject",{key:3,x:0,y:h.value.bottom,width:"100%",height:p.value.height-h.value.bottom,style:{overflow:"visible"}},[i.createElementVNode("div",{class:"vue-ui-onion-legend",style:i.normalizeStyle(`color:${c.value.style.chart.legend.color};font-size:${c.value.style.chart.legend.fontSize}px;padding-bottom:12px;font-weight:${c.value.style.chart.legend.bold?"bold":""}`),onClick:I},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.value,(T,L)=>(i.openBlock(),i.createElementBlock("div",{class:"vue-ui-onion-legend-item",onClick:G=>N(T.id),style:i.normalizeStyle(`opacity:${w.value.includes(T.id)?.5:1}`)},[i.createElementVNode("span",{style:i.normalizeStyle(`color:${T.color};font-size:${c.value.style.chart.legend.fontSize}px`)},"⬤",4),i.createElementVNode("span",null,i.toDisplayString(T.name)+" : ",1),i.createElementVNode("span",null,i.toDisplayString(T.percentage.toFixed(c.value.style.chart.legend.roundingPercentage))+"% ",1)],12,EK))),256))],4)],8,CK)):i.createCommentVNode("",!0)],12,cK)),c.value.style.chart.legend.show&&(!u.value.inside||o.value)?(i.openBlock(),i.createElementBlock("div",{key:2,class:"vue-ui-onion-legend",style:i.normalizeStyle(`background:${c.value.style.chart.legend.backgroundColor};color:${c.value.style.chart.legend.color};font-size:${c.value.style.chart.legend.fontSize}px;padding-bottom:12px;font-weight:${c.value.style.chart.legend.bold?"bold":""}`),onClick:I},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.value,(T,L)=>(i.openBlock(),i.createElementBlock("div",{class:"vue-ui-onion-legend-item",onClick:G=>N(T.id),style:i.normalizeStyle(`opacity:${w.value.includes(T.id)?.5:1}`)},[i.createElementVNode("span",{style:i.normalizeStyle(`color:${T.color};font-size:${c.value.style.chart.legend.fontSize}px`)},"⬤",4),i.createElementVNode("span",null,i.toDisplayString(T.name)+" : ",1),i.createElementVNode("span",null,i.toDisplayString(T.percentage.toFixed(c.value.style.chart.legend.roundingPercentage))+"% ",1)],12,_K))),256))],4)):i.createCommentVNode("",!0),u.value.showTable?(i.openBlock(),i.createElementBlock("div",{key:3,onClick:I,class:"vue-ui-onion-table",style:i.normalizeStyle(`width:100%;margin-top:${u.value.inside?"48px":""}`)},[i.createElementVNode("table",null,[i.createElementVNode("thead",null,[c.value.style.chart.title.text?(i.openBlock(),i.createElementBlock("tr",FK,[i.createElementVNode("th",{colspan:"3",style:i.normalizeStyle(`background:${c.value.table.th.backgroundColor};color:${c.value.table.th.color};outline:${c.value.table.th.outline}`)},[i.createElementVNode("span",null,i.toDisplayString(c.value.style.chart.title.text),1),c.value.style.chart.title.subtitle.text?(i.openBlock(),i.createElementBlock("span",SK," : "+i.toDisplayString(c.value.style.chart.title.subtitle.text),1)):i.createCommentVNode("",!0)],4)])):i.createCommentVNode("",!0),i.createElementVNode("tr",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(H.value.head,T=>(i.openBlock(),i.createElementBlock("th",{colspan:T.color?2:1,style:i.normalizeStyle(`background:${c.value.table.th.backgroundColor};color:${c.value.table.th.color};outline:${c.value.table.th.outline}`)},i.toDisplayString(T),13,kK))),256))])]),i.createElementVNode("tbody",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(y.value,T=>(i.openBlock(),i.createElementBlock("tr",null,[i.createElementVNode("td",{style:i.normalizeStyle(`background:${c.value.table.td.backgroundColor};color:${c.value.table.td.color};outline:${c.value.table.td.outline}`)},[i.createElementVNode("span",{style:i.normalizeStyle(`color:${T.color}`)}," ⬤ ",4),i.createTextVNode(" "+i.toDisplayString(T.name),1)],4),i.createElementVNode("td",{style:i.normalizeStyle(`background:${c.value.table.td.backgroundColor};color:${c.value.table.td.color};outline:${c.value.table.td.outline}`)},i.toDisplayString(isNaN(T.percentage)?"":T.percentage.toFixed(c.value.table.td.roundingPercentage))+"% ",5),i.createElementVNode("td",{style:i.normalizeStyle(`background:${c.value.table.td.backgroundColor};color:${c.value.table.td.color};outline:${c.value.table.td.outline}`)},i.toDisplayString(T.prefix)+i.toDisplayString(isNaN(T.value)?"":T.value.toFixed(c.value.table.td.roundingValue))+i.toDisplayString(T.suffix),5)]))),256))])])],4)):i.createCommentVNode("",!0)],12,Zz))}},[["__scopeId","data-v-82c99d17"]]),Yoe="",NK=["id"],LK={class:"vue-ui-vertical-bar-user-option-item"},UK=["id","name"],IK=["for"],DK={class:"vue-ui-vertical-bar-user-option-item"},QK=["id","name"],OK=["for"],PK={class:"vue-ui-vertical-bar-user-option-item"},MK=["id","name"],RK=["for"],HK=["disabled"],VK=["stroke"],$K=[i.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-44939c84></path><path d="M18 16v.01" data-v-44939c84></path><path d="M6 16v.01" data-v-44939c84></path><path d="M12 5v.01" data-v-44939c84></path><path d="M12 12v.01" data-v-44939c84></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-44939c84></path>',6)],zK={key:1},KK=["viewBox"],GK=["id"],jK=["stop-color"],WK=["stop-color"],XK={key:0},qK=["font-size","fill","x","y"],YK=["font-size","fill","x","y"],JK=["x","y","width","height","fill","rx"],ZK=["x","y","width","height","fill","rx","stroke","stroke-width"],eG=["x2","y1","y2","stroke","stroke-width"],tG=["x","y","font-size","fill","font-weight"],rG=["x","y","font-size","fill","font-weight"],nG=["x","y","font-size","fill","font-weight"],aG=["x","y","font-size","fill","font-weight"],AG=["y","width","height","fill","onMouseenter"],iG=["y","height"],oG=["onClick"],sG=["onClick"],lG=["innerHTML"],cG={key:0},uG={key:0},hG={style:{width:"100%"}},fG=Ba({__name:"vue-ui-vertical-bar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(t,{expose:e,emit:r}){const n=t,a=i.ref(`vue-ui-vertical-bar-${Math.random()}`),A=i.ref(ia.vue_ui_vertical_bar),o=i.ref(!1),s=i.ref(null),l=i.ref(null),c=i.ref(null),u=i.ref({x:0,y:0}),p=i.ref(!1),h=i.ref(""),d=i.ref(0),w=i.ref(null);i.onMounted(()=>{document.addEventListener("mousemove",f),d.value=n.dataset.flatMap(x=>x.children&&x.children.length>0?x.children.length:1).reduce((x,S)=>x+S,0)}),i.onBeforeUnmount(()=>{document.removeEventListener("mousemove",f)});function f(x){u.value.x=x.clientX,u.value.y=x.clientY}const m=i.computed(()=>{let x=0,S=48;if(l.value&&s.value){const{width:Q,height:W}=l.value.getBoundingClientRect(),ue=s.value.getBoundingClientRect();u.value.x+Q/2>ue.right?x=-Q:u.value.x-Q/2<ue.left?x=0:x=-Q/2,u.value.y+W>ue.bottom&&(S=-W-48)}return{top:u.value.y+S,left:u.value.x+x}}),y=i.computed(()=>{if(!Object.keys(n.config||{}).length)return A.value;const x=Wn({defaultConfig:A.value,userConfig:n.config});return Xn(x)}),F=i.ref({inside:!y.value.style.chart.layout.useDiv,showTable:y.value.table.show,sortDesc:y.value.style.chart.layout.bars.sort==="desc"}),N=i.computed(()=>F.value.sortDesc),D=i.computed(()=>n.dataset.sort((x,S)=>N.value?S.value-x.value:x.value-S.value).map((x,S)=>({...x,id:`vertical_parent_${S}_${a.value}`,hasChildren:!!x.children&&x.children.length>0,isChild:!1,color:Nr(x.color)||It[S]||It[S%It.length],children:!x.children||!x.children.length?[]:x.children.sort((Q,W)=>N.value?W.value-Q.value:Q.value-W.value).map((Q,W)=>({...Q,isChild:!0,parentId:`vertical_parent_${S}_${a.value}`,parentName:x.name,parentValue:x.value,id:`vertical_child_${S}_${W}_${a.value}`,childIndex:W,color:Nr(Q.color)||Nr(x.color)||It[S]||It[S%It.length]})).map((Q,W)=>({...Q,isFirstChild:W===0,isLastChild:W===x.children.length-1}))}))),H=i.computed(()=>({width:512,height:(y.value.style.chart.layout.bars.height+y.value.style.chart.layout.bars.gap)*d.value,padding:{top:F.value.inside?64:12,left:128+y.value.style.chart.layout.bars.offsetX,right:64+y.value.style.chart.layout.bars.paddingRight,bottom:F.value.inside?92:12}})),R=i.computed(()=>({fullHeight:H.value.padding.top+H.value.padding.bottom+H.value.height,top:H.value.padding.top,left:H.value.padding.left,right:H.value.width-H.value.padding.right,bottom:H.value.padding.top+H.value.height,width:H.value.width-(H.value.padding.left+H.value.padding.right)}));function U(){d.value=q.value.flatMap(x=>x.children&&x.children.length>0?x.children.length:1).reduce((x,S)=>x+S,0)}const I=i.ref([]);function O(x){I.value.includes(x)?I.value=I.value.filter(S=>S!==x):I.value.push(x),U(),r("selectLegend",q.value)}const q=i.computed(()=>D.value.filter(x=>!I.value.includes(x.id))),T=i.computed(()=>q.value.map(x=>x.value).reduce((x,S)=>x+S));function L(x,S=!1,Q=0){return S?(x/T.value*100).toFixed(Q)+"%":x/T.value}const G=i.computed(()=>q.value.flatMap(x=>x.hasChildren?x.children:x)),Y=i.computed(()=>Math.max(...q.value.flatMap(x=>x.children&&x.children.length?Math.max(...x.children.map(S=>S.value)):x.value)));function se(x){const S=x/Y.value;return R.value.width*S}function he(x){return se(x)+R.value.left}function ge(x,S){const Q=q.value.find(Ce=>Ce.id===x.parentId),W=R.value.top+(y.value.style.chart.layout.bars.gap+y.value.style.chart.layout.bars.height)*S,ue=Q.children.length*(y.value.style.chart.layout.bars.gap+y.value.style.chart.layout.bars.height);return{y:W+ue/2,name:Q.name,value:[void 0,NaN,null].includes(Q.value)?"":Q.value.toFixed(y.value.style.chart.layout.bars.dataLabels.value.roundingValue),percentageToTotal:isNaN(Q.value/T.value)?"":L(Q.value,!0,y.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)}}function re(){return q.value}e({getData:re,recalculateHeight:U});const le=i.ref(null);function fe(x){p.value=!0,le.value=x.id;let S="";const Q=x.isChild?x.parentName:x.name,W=x.isChild?x.name:"";S+=`<div style="width:100%;text-align:center;border-bottom:1px solid #ccc;padding-bottom:6px;margin-bottom:3px;text-align:left;">
379
- <div><span style="color:${x.color};margin-right:3px">⬤</span>${Q}</div>
380
- ${W?`<div>${W}</div>`:""}
381
- </div>`,y.value.style.chart.tooltip.showValue&&(S+=`<div>${y.value.translations.value} : <b>${y.value.style.chart.tooltip.prefix}${[void 0,NaN,null].includes(x.value)?"-":x.value.toFixed(y.value.style.chart.tooltip.roundingValue)}${y.value.style.chart.tooltip.suffix}</b></div>`),y.value.style.chart.tooltip.showPercentage&&(S+=`<div>${y.value.translations.percentageToTotal} : <b>${isNaN(x.value/T.value)?"-":`${(x.value/T.value*100).toFixed(y.value.style.chart.tooltip.roundingPercentage)}`}%</b></div>`,x.isChild&&(S+=`<div>${y.value.translations.percentageToSerie} : <b>${isNaN(x.value/x.parentValue)?"-":`${(x.value/x.parentValue*100).toFixed(y.value.style.chart.tooltip.roundingPercentage)}`}%</b></div>`)),h.value=`<div style="text-align:left">${S}</div>`}function Ue(){o.value=!0,i.nextTick(()=>{GA({domElement:document.getElementById(`vue-ui-vertical-bar_${a.value}`),fileName:y.value.style.chart.title.text||"vue-ui-vertical-bar"}).finally(()=>{o.value=!1})})}const b=i.computed(()=>{const x=[y.value.translations.parentName,y.value.translations.value,y.value.translations.percentageToTotal,y.value.translations.childName,y.value.translations.value,y.value.translations.percentageToSerie,y.value.translations.percentageToTotal],S=G.value.map(Q=>Q.isChild?Q.isFirstChild?{color:Q.color,parentName:Q.parentName,parentValue:Q.parentValue,percentageToTotal:Q.parentValue/T.value,childName:Q.name,childValue:Q.value,childPercentageToParent:Q.value/Q.parentValue,childPercentageToTotal:Q.value/T.value}:{color:"",parentName:"",parentValue:"",percentageToTotal:"",childName:Q.name,childValue:Q.value,childPercentageToParent:Q.value/Q.parentValue,childPercentageToTotal:Q.value/T.value}:{color:Q.color,parentName:Q.name,parentValue:Q.value,percentageToTotal:Q.value/T.value,childName:"",childValue:"",childPercentageToParent:"",childPercentageToTotal:""});return{head:x,body:S}});function _(){const x=[[y.value.style.chart.title.text],[y.value.style.chart.title.subtitle.text],[""]],S=b.value.head,Q=b.value.body.map(ue=>[ue.parentName,ue.parentValue,ue.percentageToTotal,ue.childName,ue.childValue,ue.childPercentageToParent,ue.childPercentageToTotal]),W=x.concat([S]).concat(Q);ei(W,y.value.style.chart.title.text||"vue-ui-vertical-bar")}function B(){c.value&&c.value.removeAttribute("open")}return(x,S)=>(i.openBlock(),i.createElementBlock("div",{class:"vue-ui-vertical-bar",ref:"quadrantChart",id:`vue-ui-vertical-bar_${a.value}`,style:i.normalizeStyle(`font-family:${y.value.style.fontFamily};width:100%; text-align:center`)},[(!F.value.inside||o.value)&&y.value.style.chart.title.text?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(`width:100%;background:${y.value.style.chart.backgroundColor};padding-bottom:12px`)},[i.createElementVNode("div",{style:i.normalizeStyle(`width:100%;text-align:center;color:${y.value.style.chart.title.color};font-size:${y.value.style.chart.title.fontSize}px;font-weight:${y.value.style.chart.title.bold?"bold":""}`)},i.toDisplayString(y.value.style.chart.title.text),5),y.value.style.chart.title.subtitle.text?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(`width:100%;text-align:center;color:${y.value.style.chart.title.subtitle.color};font-size:${y.value.style.chart.title.subtitle.fontSize}px;font-weight:${y.value.style.chart.title.subtitle.bold?"bold":""}`)},i.toDisplayString(y.value.style.chart.title.subtitle.text),5)):i.createCommentVNode("",!0)],4)):i.createCommentVNode("",!0),y.value.userOptions.show?(i.openBlock(),i.createElementBlock("details",{key:1,class:"vue-ui-vertical-bar-user-options",style:i.normalizeStyle(`background:${y.value.style.chart.backgroundColor};color:${y.value.style.chart.color}`),"data-html2canvas-ignore":"",ref_key:"details",ref:c},[i.createElementVNode("summary",{style:i.normalizeStyle(`background:${y.value.style.chart.backgroundColor};color:${y.value.style.chart.color}`)},i.toDisplayString(y.value.userOptions.title),5),i.createElementVNode("div",{class:"vue-ui-vertical-bar-user-options-items",style:i.normalizeStyle(`background:${y.value.style.chart.backgroundColor};color:${y.value.style.chart.color}`)},[i.createElementVNode("div",LK,[i.withDirectives(i.createElementVNode("input",{type:"checkbox",id:`vue-ui-vertical-bar-option-title_${a.value}`,name:`vue-ui-vertical-bar-option-title_${a.value}`,"onUpdate:modelValue":S[0]||(S[0]=Q=>F.value.inside=Q)},null,8,UK),[[i.vModelCheckbox,F.value.inside]]),i.createElementVNode("label",{for:`vue-ui-vertical-bar-option-title_${a.value}`},i.toDisplayString(y.value.userOptions.labels.useDiv),9,IK)]),i.createElementVNode("div",DK,[i.withDirectives(i.createElementVNode("input",{type:"checkbox",id:`vue-ui-vertical-bar-option-table_${a.value}`,name:`vue-ui-vertical-bar-option-table_${a.value}`,"onUpdate:modelValue":S[1]||(S[1]=Q=>F.value.showTable=Q)},null,8,QK),[[i.vModelCheckbox,F.value.showTable]]),i.createElementVNode("label",{for:`vue-ui-vertical-bar-option-table_${a.value}`},i.toDisplayString(y.value.userOptions.labels.showTable),9,OK)]),i.createElementVNode("div",PK,[i.withDirectives(i.createElementVNode("input",{type:"checkbox",id:`vue-ui-vertical-bar-option-sort_${a.value}`,name:`vue-ui-vertical-bar-option-sort_${a.value}`,"onUpdate:modelValue":S[2]||(S[2]=Q=>F.value.sortDesc=Q),onChange:U},null,40,MK),[[i.vModelCheckbox,F.value.sortDesc]]),i.createElementVNode("label",{for:`vue-ui-vertical-bar-option-sort_${a.value}`},i.toDisplayString(y.value.userOptions.labels.sort),9,RK)]),i.createElementVNode("button",{class:"vue-ui-vertical-bar-button",onClick:Ue,disabled:o.value,style:i.normalizeStyle([{"margin-top":"12px"},`color:${y.value.style.chart.color}`])},[o.value?(i.openBlock(),i.createElementBlock("svg",{key:0,class:"vue-ui-vertical-bar-print-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:y.value.style.chart.color,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},$K,8,VK)):(i.openBlock(),i.createElementBlock("span",zK,"PDF"))],12,HK),i.createElementVNode("button",{class:"vue-ui-vertical-bar-button",onClick:_,style:i.normalizeStyle(`color:${y.value.style.chart.color}`)}," XLSX ",4)],4)],4)):i.createCommentVNode("",!0),(i.openBlock(),i.createElementBlock("svg",{viewBox:`0 0 ${H.value.width} ${R.value.fullHeight}`,style:i.normalizeStyle(`max-width:100%;overflow:visible;background:${y.value.style.chart.backgroundColor};color:${y.value.style.chart.color}`),onClick:B},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(G.value,(Q,W)=>(i.openBlock(),i.createElementBlock("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`vertical_bar_gradient_${a.value}_${W}`},[i.createElementVNode("stop",{offset:"0%","stop-color":Q.color},null,8,jK),i.createElementVNode("stop",{offset:"100%","stop-color":`${i.unref(eA)(Q.color,.03)}${i.unref(yt)[100-y.value.style.chart.layout.bars.gradientIntensity]}`},null,8,WK)],8,GK))),256)),y.value.style.chart.title.text&&F.value.inside&&!o.value?(i.openBlock(),i.createElementBlock("g",XK,[i.createElementVNode("text",{"font-size":y.value.style.chart.title.fontSize,fill:y.value.style.chart.title.color,x:H.value.width/2,y:y.value.style.chart.title.fontSize,"text-anchor":"middle",style:i.normalizeStyle(`font-weight:${y.value.style.chart.title.bold?"bold":""}`)},i.toDisplayString(y.value.style.chart.title.text),13,qK),y.value.style.chart.title.subtitle.text?(i.openBlock(),i.createElementBlock("text",{key:0,"font-size":y.value.style.chart.title.subtitle.fontSize,fill:y.value.style.chart.title.subtitle.color,x:H.value.width/2,y:y.value.style.chart.title.fontSize*2,"text-anchor":"middle",style:i.normalizeStyle(`font-weight:${y.value.style.chart.title.subtitle.bold?"bold":""}`)},i.toDisplayString(y.value.style.chart.title.subtitle.text),13,YK)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(G.value,(Q,W)=>(i.openBlock(),i.createElementBlock("g",null,[i.createElementVNode("rect",{x:R.value.left,y:R.value.top+(y.value.style.chart.layout.bars.gap+y.value.style.chart.layout.bars.height)*W,width:se(Q.value),height:y.value.style.chart.layout.bars.height,fill:y.value.style.chart.layout.bars.underlayerColor,rx:y.value.style.chart.layout.bars.borderRadius},null,8,JK)]))),256)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(G.value,(Q,W)=>(i.openBlock(),i.createElementBlock("g",null,[i.createElementVNode("rect",{x:R.value.left,y:R.value.top+(y.value.style.chart.layout.bars.gap+y.value.style.chart.layout.bars.height)*W,width:se(Q.value),height:y.value.style.chart.layout.bars.height,fill:y.value.style.chart.layout.bars.useGradient?`url(#vertical_bar_gradient_${a.value}_${W})`:`${Q.color}${i.unref(yt)[y.value.style.chart.layout.bars.fillOpacity]}`,rx:y.value.style.chart.layout.bars.borderRadius,stroke:y.value.style.chart.layout.bars.useStroke?Q.color:"none","stroke-width":y.value.style.chart.layout.bars.useStroke?y.value.style.chart.layout.bars.strokeWidth:0},null,8,ZK),(!Q.isChild||Q.isLastChild)&&y.value.style.chart.layout.separators.show&&W!==G.value.length-1?(i.openBlock(),i.createElementBlock("line",{key:0,x1:0,x2:R.value.left,y1:y.value.style.chart.layout.bars.height+y.value.style.chart.layout.bars.gap/2+R.value.top+(y.value.style.chart.layout.bars.gap+y.value.style.chart.layout.bars.height)*W,y2:y.value.style.chart.layout.bars.height+y.value.style.chart.layout.bars.gap/2+R.value.top+(y.value.style.chart.layout.bars.gap+y.value.style.chart.layout.bars.height)*W,stroke:y.value.style.chart.layout.separators.color,"stroke-width":y.value.style.chart.layout.separators.strokeWidth,"stroke-linecap":"round"},null,8,eG)):i.createCommentVNode("",!0),i.createElementVNode("text",{x:he(Q.value)+3+y.value.style.chart.layout.bars.dataLabels.offsetX,y:R.value.top+(y.value.style.chart.layout.bars.gap+y.value.style.chart.layout.bars.height)*W+y.value.style.chart.layout.bars.height/2+y.value.style.chart.layout.bars.dataLabels.fontSize/2,"text-anchor":"start","font-size":y.value.style.chart.layout.bars.dataLabels.fontSize,fill:y.value.style.chart.layout.bars.dataLabels.color,"font-weight":y.value.style.chart.layout.bars.dataLabels.bold?"bold":"normal"},i.toDisplayString(y.value.style.chart.layout.bars.dataLabels.value.prefix)+" "+i.toDisplayString(isNaN(Q.value)||!y.value.style.chart.layout.bars.dataLabels.value.show?"":Q.value.toFixed(y.value.style.chart.layout.bars.dataLabels.value.roundingValue))+" "+i.toDisplayString(y.value.style.chart.layout.bars.dataLabels.value.suffix)+" "+i.toDisplayString(y.value.style.chart.layout.bars.dataLabels.percentage.show?`(${L(Q.value,!0,y.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`:""),9,tG),(Q.isChild||!Q.hasChildren)&&y.value.style.chart.layout.bars.nameLabels.show?(i.openBlock(),i.createElementBlock("text",{key:1,"text-anchor":"end",x:R.value.left-3+y.value.style.chart.layout.bars.nameLabels.offsetX,y:R.value.top+(y.value.style.chart.layout.bars.gap+y.value.style.chart.layout.bars.height)*W+y.value.style.chart.layout.bars.height/2+y.value.style.chart.layout.bars.nameLabels.fontSize/2,"font-size":y.value.style.chart.layout.bars.nameLabels.fontSize,fill:y.value.style.chart.layout.bars.nameLabels.color,"font-weight":y.value.style.chart.layout.bars.nameLabels.bold?"bold":"normal"},i.toDisplayString(Q.name),9,rG)):i.createCommentVNode("",!0),Q.isChild&&Q.childIndex===0&&y.value.style.chart.layout.bars.parentLabels.show?(i.openBlock(),i.createElementBlock("text",{key:2,x:3+y.value.style.chart.layout.bars.parentLabels.offsetX,y:ge(Q,W).y,"font-size":y.value.style.chart.layout.bars.parentLabels.fontSize,fill:y.value.style.chart.layout.bars.parentLabels.color,"font-weight":y.value.style.chart.layout.bars.parentLabels.bold?"bold":"normal","text-anchor":"start"},i.toDisplayString(ge(Q,W).name),9,nG)):i.createCommentVNode("",!0),Q.isChild&&Q.childIndex===0&&y.value.style.chart.layout.bars.parentLabels.show?(i.openBlock(),i.createElementBlock("text",{key:3,x:3+y.value.style.chart.layout.bars.parentLabels.offsetX,y:ge(Q,W).y+y.value.style.chart.layout.bars.parentLabels.fontSize+6,"font-size":y.value.style.chart.layout.bars.parentLabels.fontSize,fill:y.value.style.chart.layout.bars.parentLabels.color,"font-weight":y.value.style.chart.layout.bars.dataLabels.bold?"bold":"normal","text-anchor":"start"},i.toDisplayString(y.value.style.chart.layout.bars.dataLabels.value.show?ge(Q,W).value:"")+" "+i.toDisplayString(y.value.style.chart.layout.bars.dataLabels.percentage.show?`(${ge(Q,W).percentageToTotal})`:""),9,aG)):i.createCommentVNode("",!0),i.createElementVNode("rect",{x:0,y:R.value.top+(y.value.style.chart.layout.bars.gap+y.value.style.chart.layout.bars.height)*W-y.value.style.chart.layout.bars.gap/2,width:H.value.width,height:y.value.style.chart.layout.bars.height+y.value.style.chart.layout.bars.gap,fill:le.value===Q.id?`${y.value.style.chart.layout.highlighter.color}${i.unref(yt)[y.value.style.chart.layout.highlighter.opacity]}`:"transparent",onMouseenter:ue=>fe(Q),onMouseleave:S[3]||(S[3]=ue=>{w.value=null,p.value=!1,le.value=null})},null,40,AG)]))),256)),y.value.style.chart.legend.show&&F.value.inside&&!o.value?(i.openBlock(),i.createElementBlock("foreignObject",{key:1,x:0,y:R.value.bottom+24,width:"100%",height:R.value.fullHeight-R.value.bottom-24,style:{overflow:"visible"}},[i.createElementVNode("div",{class:"vue-ui-vertical-bar-legend",style:i.normalizeStyle(`color:${y.value.style.chart.legend.color};font-size:${y.value.style.chart.legend.fontSize}px;padding-bottom:12px;font-weight:${y.value.style.chart.legend.bold?"bold":""}`),onClick:B},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(D.value,(Q,W)=>(i.openBlock(),i.createElementBlock("div",{class:"vue-ui-vertical-bar-legend-item",onClick:ue=>O(Q.id),style:i.normalizeStyle(`opacity:${I.value.includes(Q.id)?.5:1}`)},[i.createElementVNode("span",{style:i.normalizeStyle(`color:${Q.color};font-size:${y.value.style.chart.legend.fontSize}px`)},"⬤",4),i.createElementVNode("span",null,i.toDisplayString(Q.name)+" : ",1),i.createElementVNode("span",null,i.toDisplayString(y.value.style.chart.legend.prefix)+i.toDisplayString(Q.value.toFixed(y.value.style.chart.legend.roundingValue))+i.toDisplayString(y.value.style.chart.legend.suffix),1)],12,oG))),256))],4)],8,iG)):i.createCommentVNode("",!0)],12,KK)),y.value.style.chart.legend.show&&(!F.value.inside||o.value)?(i.openBlock(),i.createElementBlock("div",{key:2,class:"vue-ui-vertical-bar-legend",style:i.normalizeStyle(`background:${y.value.style.chart.legend.backgroundColor};color:${y.value.style.chart.legend.color};font-size:${y.value.style.chart.legend.fontSize}px;padding-bottom:12px;font-weight:${y.value.style.chart.legend.bold?"bold":""}`),onClick:B},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(D.value,(Q,W)=>(i.openBlock(),i.createElementBlock("div",{class:"vue-ui-vertical-bar-legend-item",onClick:ue=>O(Q.id),style:i.normalizeStyle(`opacity:${I.value.includes(Q.id)?.5:1}`)},[i.createElementVNode("span",{style:i.normalizeStyle(`color:${Q.color};font-size:${y.value.style.chart.legend.fontSize}px`)},"⬤",4),i.createElementVNode("span",null,i.toDisplayString(Q.name)+" : ",1),i.createElementVNode("span",null,i.toDisplayString(y.value.style.chart.legend.prefix)+i.toDisplayString(Q.value.toFixed(y.value.style.chart.legend.roundingValue))+i.toDisplayString(y.value.style.chart.legend.suffix),1)],12,sG))),256))],4)):i.createCommentVNode("",!0),y.value.style.chart.tooltip.show&&p.value&&I.value.length<n.dataset.length?(i.openBlock(),i.createElementBlock("div",{key:3,class:"vue-ui-vertical-bar-tooltip",ref_key:"tooltip",ref:l,style:i.normalizeStyle(`top:${m.value.top}px;left:${m.value.left}px;background:${y.value.style.chart.tooltip.backgroundColor};color:${y.value.style.chart.tooltip.color}`),innerHTML:h.value},null,12,lG)):i.createCommentVNode("",!0),F.value.showTable?(i.openBlock(),i.createElementBlock("div",{key:4,onClick:B,class:"vue-ui-vertical-bar-table",style:i.normalizeStyle(`width:100%;margin-top:${F.value.inside?"48px":""}`)},[i.createElementVNode("table",null,[i.createElementVNode("thead",null,[y.value.style.chart.title.text?(i.openBlock(),i.createElementBlock("tr",cG,[i.createElementVNode("th",{colspan:7,style:i.normalizeStyle(`background:${y.value.table.th.backgroundColor};color:${y.value.table.th.color};outline:${y.value.table.th.outline}`)},[i.createElementVNode("span",null,i.toDisplayString(y.value.style.chart.title.text),1),y.value.style.chart.title.subtitle.text?(i.openBlock(),i.createElementBlock("span",uG," : "+i.toDisplayString(y.value.style.chart.title.subtitle.text),1)):i.createCommentVNode("",!0)],4)])):i.createCommentVNode("",!0),i.createElementVNode("tr",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(b.value.head,Q=>(i.openBlock(),i.createElementBlock("th",{style:i.normalizeStyle(`background:${y.value.table.th.backgroundColor};color:${y.value.table.th.color};outline:${y.value.table.th.outline}`)},[i.createElementVNode("div",hG,i.toDisplayString(Q),1)],4))),256))]),i.createElementVNode("tr",null,[i.createElementVNode("th",{style:i.normalizeStyle(`background:${y.value.table.th.backgroundColor};color:${y.value.table.th.color};outline:${y.value.table.th.outline}`)},null,4),i.createElementVNode("th",{style:i.normalizeStyle(`background:${y.value.table.th.backgroundColor};color:${y.value.table.th.color};outline:${y.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)},"∑ "+i.toDisplayString(y.value.table.td.prefix)+i.toDisplayString(isNaN(T.value)?"":T.value.toFixed(y.value.table.td.roundingValue))+i.toDisplayString(y.value.table.td.suffix),5),i.createElementVNode("th",{style:i.normalizeStyle(`background:${y.value.table.th.backgroundColor};color:${y.value.table.th.color};outline:${y.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)},"100%",4),i.createElementVNode("th",{style:i.normalizeStyle(`background:${y.value.table.th.backgroundColor};color:${y.value.table.th.color};outline:${y.value.table.th.outline}`)},null,4),i.createElementVNode("th",{style:i.normalizeStyle(`background:${y.value.table.th.backgroundColor};color:${y.value.table.th.color};outline:${y.value.table.th.outline}`)},null,4),i.createElementVNode("th",{style:i.normalizeStyle(`background:${y.value.table.th.backgroundColor};color:${y.value.table.th.color};outline:${y.value.table.th.outline}`)},null,4),i.createElementVNode("th",{style:i.normalizeStyle(`background:${y.value.table.th.backgroundColor};color:${y.value.table.th.color};outline:${y.value.table.th.outline}`)},null,4)])]),i.createElementVNode("tbody",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(b.value.body,Q=>(i.openBlock(),i.createElementBlock("tr",null,[i.createElementVNode("td",{style:i.normalizeStyle(`background:${y.value.table.td.backgroundColor};color:${y.value.table.td.color};outline:${y.value.table.td.outline}`)},[Q.color?(i.openBlock(),i.createElementBlock("span",{key:0,style:i.normalizeStyle(`color:${Q.color};margin-right:3px`)},"⬤",4)):i.createCommentVNode("",!0),i.createElementVNode("span",null,i.toDisplayString(Q.parentName),1)],4),i.createElementVNode("td",{style:i.normalizeStyle(`background:${y.value.table.td.backgroundColor};color:${y.value.table.td.color};outline:${y.value.table.td.outline}`)},i.toDisplayString(y.value.table.td.prefix)+i.toDisplayString(["",NaN,void 0].includes(Q.parentValue)?"":Q.parentValue.toFixed(y.value.table.td.roundingValue))+i.toDisplayString(y.value.table.td.suffix),5),i.createElementVNode("td",{style:i.normalizeStyle(`background:${y.value.table.td.backgroundColor};color:${y.value.table.td.color};outline:${y.value.table.td.outline}`)},i.toDisplayString(["",NaN,void 0].includes(Q.percentageToTotal)?"":`${(Q.percentageToTotal*100).toFixed(y.value.table.td.roundingPercentage)}%`),5),i.createElementVNode("td",{style:i.normalizeStyle(`background:${y.value.table.td.backgroundColor};color:${y.value.table.td.color};outline:${y.value.table.td.outline}`)},i.toDisplayString(Q.childName),5),i.createElementVNode("td",{style:i.normalizeStyle(`background:${y.value.table.td.backgroundColor};color:${y.value.table.td.color};outline:${y.value.table.td.outline}`)},i.toDisplayString(y.value.table.td.prefix)+i.toDisplayString(["",NaN,void 0].includes(Q.childValue)?"":Q.childValue.toFixed(y.value.table.td.roundingValue))+i.toDisplayString(y.value.table.td.suffix),5),i.createElementVNode("td",{style:i.normalizeStyle(`background:${y.value.table.td.backgroundColor};color:${y.value.table.td.color};outline:${y.value.table.td.outline}`)},i.toDisplayString(["",NaN,void 0].includes(Q.childPercentageToParent)?"":`${(Q.childPercentageToParent*100).toFixed(y.value.table.td.roundingPercentage)}%`),5),i.createElementVNode("td",{style:i.normalizeStyle(`background:${y.value.table.td.backgroundColor};color:${y.value.table.td.color};outline:${y.value.table.td.outline}`)},i.toDisplayString(["",NaN,void 0].includes(Q.childPercentageToTotal)?"":`${(Q.childPercentageToTotal*100).toFixed(y.value.table.td.roundingPercentage)}%`),5)]))),256))])])],4)):i.createCommentVNode("",!0)],12,NK))}},[["__scopeId","data-v-44939c84"]]),dG={__name:"vue-ui-screenshot",props:{config:{type:Object,default(){return{}}}},emits:["postImage"],setup(t,{expose:e,emit:r}){const n=t,a=i.ref(`vue-ui-screenshot-${Math.random()}`),A=i.ref(ia.vue_ui_screenshot),o=i.computed(()=>{if(!Object.keys(n.config||{}).length)return A.value;const re=Wn({defaultConfig:A.value,userConfig:n.config});return Xn(re)}),s=i.ref(null),l=i.ref(null),c=i.ref(null),u=i.ref(null),p=i.ref(null),h=i.ref(null),d=i.ref(null),w=i.ref(null),f=i.ref(null),m=i.ref(null),y=i.ref(null),F=i.ref(!1),N=i.ref(null);function D(){const re=document.createElement("DIV");return re.style.position="fixed",re.style.top="200px",re.style.left="100px",re.style.width=`${o.value.style.captureArea.initialWidth}px`,re.style.height=`${o.value.style.captureArea.initialHeight}px`,re.style.background=o.value.style.captureArea.background,re.style.cursor="move",re.style.boxSizing="border-box",re.style.border=o.value.style.captureArea.border,re.style.resize="both",re.style.padding="none !important",re.style.margin="none !important",re}function H(){s.value&&(clearTimeout(N.value),s.value.remove(),s.value=null)}function R(re){const le=document.createElement("DIV");le.classList.add("vue-ui-screenshot-info-text"),le.innerHTML=o.value.translations.info,le.dataset.html2canvasIgnore="true",le.style.background=o.value.style.info.background,le.style.color=o.value.style.info.color,le.style.fontWeight=o.value.style.info.bold?"bold":"normal",le.style.minWidth=`${o.value.style.info.minWidth}px`,le.style.left="50%",le.style.padding=`${o.value.style.info.padding}px`,le.style.position="absolute",le.style.textAlign="center",le.style.top=`${o.value.style.info.top}px`,le.style.transform="translateX(-50%)",le.style.borderRadius=`${o.value.style.info.borderRadius}px`,le.style.boxShadow=o.value.style.info.boxShadow,le.style.fontFamily=o.value.style.info.fontFamily,le.style.fontSize=`${o.value.style.info.fontSize}px`,le.style.border=o.value.style.info.border,le.style.userSelect="none";const fe=document.createElement("BUTTON");fe.classList.add("vue-ui-screenshot-close-button"),fe.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" stroke-width="2.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 6l-12 12" /><path d="M6 6l12 12" /></svg>',fe.style.outline="none",fe.style.display="flex",fe.style.cursor="pointer",fe.style.borderRadius="50%",fe.style.alignItems="center",fe.style.position="absolute",fe.style.justifyContent="center",fe.style.transformOrigin="center",fe.style.top=`${o.value.style.cancelButton.top}px`,fe.style.right=`${o.value.style.cancelButton.right}px`,fe.style.background=o.value.style.cancelButton.background,fe.style.color=o.value.style.cancelButton.color,fe.style.border=o.value.style.cancelButton.border,fe.style.borderRadius=`${o.value.style.cancelButton.borderRadius}px`,fe.style.height=`${o.value.style.cancelButton.size}px`,fe.style.width=`${o.value.style.cancelButton.size}px`,fe.addEventListener("click",H),le.appendChild(fe),re.appendChild(le)}function U(re){s.value&&(F.value=!0,re.touches?(h.value=re.touches[0].clientX,d.value=re.touches[0].clientY):(h.value=re.clientX,d.value=re.clientY),m.value=s.value.getBoundingClientRect().width,y.value=s.value.getBoundingClientRect().height,re.target.addEventListener("mousemove",I),re.target.addEventListener("touchmove",I))}function I(re){if(!s.value)return;let le,fe;re.touches?(w.value=re.touches[0].clientX,le=re.touches[0].clientX,f.value=re.touches[0].clientY,fe=re.touches[0].clientY):(w.value=re.clientX,le=re.clientX,f.value=re.clientY,fe=re.clientY);const Ue=re.target.classList[0],b=s.value.style;switch(!0){case Ue==="vue-ui-screenshot-handle-nw":b.top=`${fe}px`,b.left=`${le}px`,b.width=`${m.value+(h.value-w.value)}px`,b.height=`${y.value+(d.value-f.value)}px`;break;case Ue==="vue-ui-screenshot-handle-ne":b.top=`${fe}px`,b.width=`${m.value+(w.value-h.value)}px`,b.height=`${y.value+(d.value-f.value)}px`;break;case Ue==="vue-ui-screenshot-handle-sw":b.left=`${le}px`,b.width=`${m.value+(h.value-w.value)}px`,b.height=`${y.value+(f.value-d.value)}px`;break;case Ue==="vue-ui-screenshot-handle-se":b.width=`${m.value+(w.value-h.value)}px`,b.height=`${y.value+(f.value-d.value)}px`;break}}function O(re){if(!s.value)return;re.stopPropagation();const le=Array.from(re.target.classList);le.includes("vue-ui-screenshot-handle-se")||le.includes("vue-ui-screenshot-handle-sw")||le.includes("vue-ui-screenshot-handle-nw")||le.includes("vue-ui-screenshot-handle-ne")||(F.value=!0,s.value.style.pointerEvents="auto",re.touches?(l.value=re.touches[0].clientX,c.value=re.touches[0].clientY):(l.value=re.clientX,c.value=re.clientY),u.value=l.value,p.value=c.value,document.addEventListener("mousemove",T),document.addEventListener("touchmove",T),document.addEventListener("mouseup",q),document.addEventListener("touchend",q))}function q(){l.value=null,c.value=null,u.value=null,p.value=null,F.value=!1,document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",q),document.removeEventListener("touchmove",T),document.removeEventListener("touchend",q)}function T(re){if(!s.value)return;const le=s.value.getBoundingClientRect();let fe,Ue;re.touches?(fe=re.touches[0].clientX-l.value,Ue=re.touches[0].clientY-c.value,l.value=re.touches[0].clientX,c.value=re.touches[0].clientY):(fe=re.clientX-l.value,Ue=re.clientY-c.value,l.value=re.clientX,c.value=re.clientY),s.value.style.top=`${le.top+Ue}px`,s.value.style.left=`${le.left+fe}px`}function L(re){re.target.removeEventListener("mousemove",I),re.target.removeEventListener("touchmove",I),document.removeEventListener("mousemove",T),document.removeEventListener("touchmove",T),document.removeEventListener("mouseup",q),document.removeEventListener("touchend",q),F.value=!1}function G(){const re=navigator.userAgent;return/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(re)?"tablet":/Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Kindle|Silk-Accelerated|(hpw|web)OS|Opera M(obi|ini)/.test(re)?"mobile":"desktop"}function Y(){const re=document.getElementById(`vue-ui-screenshot-button-${a.value}`);re.innerHTML=`<svg id="saveButtonSvg" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
382
- <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
383
- <path d="M4 8v-2a2 2 0 0 1 2 -2h2" />
384
- <path d="M4 16v2a2 2 0 0 0 2 2h2" />
385
- <path d="M16 4h2a2 2 0 0 1 2 2v2" />
386
- <path d="M16 20h2a2 2 0 0 0 2 -2v-2" />
387
- <path d="M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0" />
388
- </svg>`,document.getElementById(`vue-ui-screenshot-button-${a.value}`).animate([{opacity:"0.3"},{opacity:"1"},{opacity:"0.3"}],{duration:1e3,iterations:1/0}),re.classList.add("loading"),re.setAttribute("disabled","true")}function se(){if(!s.value)return;Y();const re=s.value.getBoundingClientRect();N.value=setTimeout(()=>{Ud(document.body,{allowTaint:!0,width:re.width,height:re.height,x:re.left+window.scrollX,y:re.top+window.scrollY,useCORS:!0,scale:o.value.quality}).then(le=>{const fe=le.toDataURL("image/png",1),Ue=fe.split(",")[1],_=atob(Ue).length/1024;if(o.value.mode==="download"){const B=document.createElement("a");B.download="screenshot.png",B.href=fe,B.click()}o.value.mode==="post"&&r("postImage",{createdAt:Date.now(),fileSize:`${_.toFixed(2)} KB`,image:fe,x:re.left+window.scrollX,y:re.top+window.scrollY,screenWidth:window.innerWidth>0?window.innerWidth:screen.width,deviceType:G()})}).finally(H)},10)}function he(re){const le=o.value.style.handles.size/2+4,fe=document.createElement("DIV");fe.style.top=`${-le}px`,fe.style.left=`${-le}px`,fe.style.cursor="nw-resize",fe.classList.add("vue-ui-screenshot-handle-nw");const Ue=document.createElement("DIV");Ue.style.top=`${-le}px`,Ue.style.left="auto",Ue.style.right=`${-le}px`,Ue.style.cursor="ne-resize",Ue.classList.add("vue-ui-screenshot-handle-ne");const b=document.createElement("DIV");b.style.top="auto",b.style.bottom=`${-le}px`,b.style.left=`${-le}px`,b.style.cursor="sw-resize",b.classList.add("vue-ui-screenshot-handle-sw");const _=document.createElement("DIV");_.style.top="auto",_.style.left="auto",_.style.right=`${-le}px`,_.style.bottom=`${-le}px`,_.style.cursor="se-resize",_.classList.add("vue-ui-screenshot-handle-se");const B=document.createElement("BUTTON");B.innerHTML=`<svg id="saveButtonSvg" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 8v-2a2 2 0 0 1 2 -2h2" /><path d="M4 16v2a2 2 0 0 0 2 2h2" /><path d="M16 4h2a2 2 0 0 1 2 2v2" /><path d="M16 20h2a2 2 0 0 0 2 -2v-2" /><path d="M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0" /></svg><span>${o.value.translations.captureButton}</span>`,B.classList.add("vue-ui-screenshot-capture-button"),B.id=`vue-ui-screenshot-button-${a.value}`,B.style.position="absolute",B.style.top="50%",B.style.left="50%",B.style.transform="translate(-50%,-50%)",B.style.background=o.value.style.captureButton.background,B.style.color=o.value.style.captureButton.color,B.style.border=o.value.style.captureButton.border,B.style.outline="none",B.style.cursor="pointer",B.style.padding=o.value.style.captureButton.padding,B.style.fontFamily=o.value.style.captureButton.fontFamily,B.style.fontSize=`${o.value.style.captureButton.fontSize}px`,B.style.minHeight=`${o.value.style.captureButton.minHeight}px`,B.style.width="fit-content",B.style.display="flex",B.style.alignItems="center",B.style.justifyContent="center",B.style.gap="3px",B.style.borderRadius=`${o.value.style.captureButton.borderRadius}px`,B.style.boxShadow=o.value.style.captureButton.boxShadow,B.style.userSelect="none",B.style.opacity="0.95",B.style.textAlign="left",B.style.fontWeight=o.value.style.captureButton.bold?"bold":"normal",B.addEventListener("mouseenter",()=>{B.style.opacity="1"}),B.addEventListener("mouseleave",()=>{B.style.opacity="0.95"}),B.addEventListener("click",se),re.appendChild(B),[fe,Ue,b,_].forEach((x,S)=>{x.classList.add(`handle-${S}`),x.dataset.html2canvasIgnore="true",x.style.position="absolute",x.style.height=`${o.value.style.handles.size}px`,x.style.width=`${o.value.style.handles.size}px`,x.style.background=o.value.style.handles.background,x.style.border=o.value.style.handles.border,x.style.borderRadius=`${o.value.style.handles.borderRadius}px`,x.style.pointerEvents="auto !important",x.addEventListener("mousedown",U),x.addEventListener("touchstart",U),re.appendChild(x)})}function ge(){s.value||i.nextTick(()=>{const re=D();re.dataset.html2canvasIgnore=!0,R(re),he(re),s.value=re,re.addEventListener("touchmove",function(le){le.preventDefault()},{passive:!1}),document.body.appendChild(re),document.addEventListener("mousedown",O),document.addEventListener("touchstart",O),document.addEventListener("mouseup",L),document.addEventListener("touchend",L)})}return e({shoot:ge,close:H}),(re,le)=>(i.openBlock(),i.createElementBlock("div"))}},ese="",gG={key:0,class:"vue-ui-rating-title",style:{width:"100%"}},pG=["src","height","width"],mG=["height","width"],yG=["id"],vG=["stop-color"],wG=["stop-color"],BG=["points","fill","stroke","stroke-width"],xG=["src","alt","height","width","id"],bG=["viewBox","height","id"],CG=["id"],EG=["stop-color"],_G=["stop-color"],FG=["points","fill","stroke"],SG=["height"],kG=["onClick","onMouseenter","onKeyup"],TG=["onMouseenter"],NG=Ba({__name:"vue-ui-rating",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["rate"],setup(t,{expose:e,emit:r}){const n=t,a=i.ref(`vue-ui-rating-${Math.random()}`),A=i.ref(ia.vue_ui_rating);i.ref(!1),i.ref(null),i.ref(null),i.ref(null),i.ref({x:0,y:0});const o=i.ref(!1);i.ref("");const s=i.ref(void 0),l=i.ref([]),c=i.computed(()=>{if(!Object.keys(n.config||{}).length)return A.value;const H=Wn({defaultConfig:A.value,userConfig:n.config});return Xn(H)}),u=i.computed(()=>typeof n.dataset.rating=="object"&&!Array.isArray(n.dataset.rating)?f(n.dataset.rating):n.dataset.rating),p=i.computed(()=>typeof n.dataset.rating=="object"&&!Array.isArray(n.dataset.rating)),h=i.ref(u.value),d=i.ref(c.value.type==="image"),w=i.ref(c.value.readonly);function f(H){let R=0,U=0;for(const O in H){const q=parseInt(O),T=H[O];R+=q*T,U+=T}if(U===0)return 0;const I=R/U;return Math.min(c.value.to,Math.max(c.value.from,I))}i.onMounted(()=>{for(let H=c.value.from;H<=c.value.to;H+=1)l.value.push(H)});function m(H,R=!1){return H>s.value||w.value?R?c.value.style.image.inactiveOpacity:c.value.style.star.inactiveColor:R?1:c.value.style.star.useGradient?`url(#star_gradient_under_${a.value})`:c.value.style.star.activeColor}function y(H,R=!1){const U=h.value-H,I=R?1:100;switch(!0){case U<0:return 0;case U>1:return 1*I;default:return U*I}}function F(H){w.value||(h.value=H,r("rate",H))}function N(){return h.value}function D(H=!0){w.value=H}return e({getData:N,toggleReadonly:D}),(H,R)=>(i.openBlock(),i.createElementBlock("div",{style:i.normalizeStyle(`background:${c.value.style.backgroundColor};font-family:${c.value.style.fontFamily};width:100%`),class:"vue-ui-rating",onMouseover:R[2]||(R[2]=U=>o.value=!0),onMouseleave:R[3]||(R[3]=U=>{o.value=!1,s.value=void 0})},[c.value.style.title.text?(i.openBlock(),i.createElementBlock("div",gG,[i.createElementVNode("div",{style:i.normalizeStyle(`color:${c.value.style.title.color};font-weight:${c.value.style.title.bold?"bold":"normal"};text-align:${c.value.style.title.textAlign};margin-bottom:${c.value.style.title.offsetY}px;font-size:${c.value.style.title.fontSize}px`)},i.toDisplayString(c.value.style.title.text),5),c.value.style.title.subtitle.text?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(`color:${c.value.style.title.subtitle.color};font-size:${c.value.style.title.subtitle.fontSize}px;text-align:${c.value.style.title.textAlign};margin-bottom:${c.value.style.title.subtitle.offsetY}px;font-weight:${c.value.style.title.subtitle.bold?"bold":"normal"}`)},i.toDisplayString(c.value.style.title.subtitle.text),5)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),c.value.style.rating.show&&c.value.style.rating.position==="top"?(i.openBlock(),i.createElementBlock("div",{key:1,style:i.normalizeStyle(`width:100%;text-align:center;margin-bottom:${c.value.style.rating.offsetY}px;font-size:${c.value.style.rating.fontSize}px;font-weight:${c.value.style.rating.bold?"bold":"normal"};margin-left:${c.value.style.rating.offsetX}px`)},i.toDisplayString(isNaN(h.value)?"":h.value.toFixed(c.value.style.rating.roundingValue)),5)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"vue-ui-rating-wrapper",style:i.normalizeStyle(`height:${c.value.style.itemSize}px;width:100%;display:flex;align-items:center;justify-content:center`)},[c.value.style.rating.show&&c.value.style.rating.position==="left"?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(`width:fit-content;text-align:center;margin-bottom:${c.value.style.rating.offsetY}px;font-size:${c.value.style.rating.fontSize}px;font-weight:${c.value.style.rating.bold?"bold":"normal"};padding-right:${c.value.style.rating.offsetX}px`)},i.toDisplayString(isNaN(h.value)?"":h.value.toFixed(c.value.style.rating.roundingValue)),5)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,(U,I)=>(i.openBlock(),i.createElementBlock("div",{class:"vue-ui-rating-unit-container",style:i.normalizeStyle(`position:relative;height:${c.value.style.itemSize}px;width:${c.value.style.itemSize}px`)},[d.value?(i.openBlock(),i.createElementBlock("img",{key:0,src:c.value.style.image.src,height:c.value.style.itemSize,width:c.value.style.itemSize,class:"vue-ui-rating-unit",style:i.normalizeStyle(`position:absolute;top:0;left:0;opacity:${isNaN(s.value)?c.value.style.image.inactiveOpacity:m(U,!0)}`)},null,12,pG)):(i.openBlock(),i.createElementBlock("svg",{key:1,viewBox:"0 0 100 100",height:c.value.style.itemSize,width:c.value.style.itemSize,class:"vue-ui-rating-unit"},[i.createElementVNode("defs",null,[i.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`star_gradient_under_${a.value}`},[i.createElementVNode("stop",{offset:"0%","stop-color":`${i.unref(eA)(c.value.style.star.activeColor,.05)}`},null,8,vG),i.createElementVNode("stop",{offset:"100%","stop-color":c.value.style.star.activeColor},null,8,wG)],8,yG)]),i.createElementVNode("polygon",{points:i.unref(Xh)({plot:{x:50,y:50},radius:30,apexes:c.value.style.star.apexes}),fill:isNaN(s.value)?c.value.style.star.inactiveColor:m(U),stroke:c.value.style.star.borderColor?c.value.style.star.borderColor:s.value?m(U):c.value.style.star.inactiveColor,"stroke-width":c.value.style.star.borderWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,BG)],8,mG)),d.value?(i.openBlock(),i.createElementBlock("img",{key:2,src:c.value.style.image.src,alt:`${c.value.style.image.alt} ${U}`,height:c.value.style.itemSize,width:c.value.style.itemSize,id:`active_${a.value}_${U}`,class:"vue-ui-rating-unit",style:i.normalizeStyle(`position:absolute;top:0;left:0;clip:rect(0px,${y(I,!0)*c.value.style.itemSize}px,${c.value.style.itemSize}px,0px`)},null,12,xG)):(i.openBlock(),i.createElementBlock("svg",{key:3,viewBox:`0 0 ${y(I)} 100`,height:c.value.style.itemSize,class:"vue-ui-rating-unit",id:`active_${a.value}_${U}`,style:{position:"absolute",top:"0",left:"0"}},[i.createElementVNode("defs",null,[i.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`star_gradient_over_${a.value}`},[i.createElementVNode("stop",{offset:"0%","stop-color":`${i.unref(eA)(c.value.style.star.activeColor,.05)}`},null,8,EG),i.createElementVNode("stop",{offset:"100%","stop-color":c.value.style.star.activeColor},null,8,_G)],8,CG)]),i.createElementVNode("polygon",{points:i.unref(Xh)({plot:{x:50,y:50},radius:30,apexes:c.value.style.star.apexes}),fill:c.value.style.star.useGradient?`url(#star_gradient_over_${a.value})`:c.value.style.star.activeColor,stroke:c.value.style.star.activeColor},null,8,FG)],8,bG)),(i.openBlock(),i.createElementBlock("svg",{viewBox:"0 0 100 100",height:c.value.style.itemSize,class:"vue-ui-rating-unit",style:i.normalizeStyle(`position:absolute;top:0;left:0;${w.value?"":"cursor:pointer"}`)},[w.value?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("rect",{key:0,class:"vue-ui-rating-mouse-trap",x:0,y:0,width:100,height:100,fill:"transparent",onClick:O=>F(U),onMouseenter:O=>s.value=U,onMouseleave:R[0]||(R[0]=O=>s.value=void 0),tabindex:"0",onKeyup:i.withKeys(O=>F(U),["enter"])},null,40,kG)),w.value?(i.openBlock(),i.createElementBlock("rect",{key:1,class:"vue-ui-rating-mouse-trap",x:0,y:0,width:100,height:100,fill:"transparent",onMouseenter:O=>s.value=U,onMouseleave:R[1]||(R[1]=O=>s.value=void 0)},null,40,TG)):i.createCommentVNode("",!0)],12,SG)),c.value.style.tooltip.show&&p.value&&w.value?(i.openBlock(),i.createElementBlock("div",{key:4,class:"vue-ui-rating-tooltip",style:i.normalizeStyle(`border:1px solid ${c.value.style.tooltip.borderColor};position:absolute;top:${-48+c.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${c.value.style.tooltip.backgroundColor};display:${s.value===U?"block":"none"};padding:2px 12px;border-radius:${c.value.style.tooltip.borderRadius}px;box-shadow:${c.value.style.tooltip.boxShadow}`)},[i.createElementVNode("div",{style:i.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${c.value.style.tooltip.color}`)},[i.createElementVNode("span",{style:i.normalizeStyle(`font-size:${c.value.style.tooltip.fontSize}px`)},i.toDisplayString(U),5),i.createTextVNode(" : "),i.createElementVNode("span",{style:i.normalizeStyle(`font-weight:${c.value.style.tooltip.bold?"bold":"normal"};font-size:${c.value.style.tooltip.fontSize}px`)},i.toDisplayString(n.dataset.rating[U]),5),i.createElementVNode("div",{style:i.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${c.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):i.createCommentVNode("",!0)],4))),256)),c.value.style.rating.show&&c.value.style.rating.position==="right"?(i.openBlock(),i.createElementBlock("div",{key:1,style:i.normalizeStyle(`width:fit-content;text-align:center;margin-bottom:${c.value.style.rating.offsetY}px;font-size:${c.value.style.rating.fontSize}px;font-weight:${c.value.style.rating.bold?"bold":"normal"};padding-left:${c.value.style.rating.offsetX}px`)},i.toDisplayString(isNaN(h.value)?"":h.value.toFixed(c.value.style.rating.roundingValue)),5)):i.createCommentVNode("",!0)],4),c.value.style.rating.show&&c.value.style.rating.position==="bottom"?(i.openBlock(),i.createElementBlock("div",{key:2,style:i.normalizeStyle(`width:100%;text-align:center;margin-top:${c.value.style.rating.offsetY}px;font-size:${c.value.style.rating.fontSize}px;font-weight:${c.value.style.rating.bold?"bold":"normal"};margin-left:${c.value.style.rating.offsetX}px`)},i.toDisplayString(isNaN(h.value)?"":h.value.toFixed(c.value.style.rating.roundingValue)),5)):i.createCommentVNode("",!0)],36))}},[["__scopeId","data-v-163406e4"]]),rse="",LG=["id"],UG=["d","stroke"],IG=["cx","cy","r","fill","stroke"],DG=["cx","cy","r","fill","stroke"],QG=["x","y","width","fill"],OG=["cx","cy","fill"],PG=["cx","cy","fill"],MG=["stroke"],RG={key:0},HG=["stroke","stroke-width"],VG=["stroke","stroke-width"],$G=["stroke","stroke-width"],zG={key:1},KG=["r","fill"],GG=["r","fill"],jG={key:0},WG=["stroke","stroke-width"],XG=["stroke","stroke-width"],qG=["fill","rx","x","y","width","height"],YG=["stroke-width","stroke"],JG=["stroke-width","stroke"],ZG=["stroke-width","stroke"],ej=["stroke"],tj=["stroke"],rj=["stroke"],nj=["stroke"],aj=["fill"],Aj=["stroke"],ij=["stroke","stroke-width"],oj=["stroke","stroke-width"],sj=["fill","r"],lj=["fill","r"],cj=["fill","r"],uj=["fill","r"],hj=["fill","r"],fj=["fill","r"],dj=["fill","r"],gj=["fill","r"],pj=["fill","r"],mj=["d","stroke","stroke-width"],yj=["d","stroke","stroke-width"],vj=["d","stroke","stroke-width"],wj=["d","stroke","stroke-width"],Bj=["stroke","stroke-width"],xj=["stroke","stroke-width"],bj=["stroke","stroke-width"],Cj=["fill"],Ej=["fill"],_j=["x","y","fill"],Fj=["x","y","fill"],Sj=["x","y","fill"],kj=["fill"],Tj=["fill"],Nj=["y1","y2","stroke","stroke-width"],Lj=["x1","x2","stroke","stroke-width"],Uj=["points","fill","stroke","stroke-width"],Ij={key:0},Dj=["stroke","stroke-width"],Qj=["y","width","fill","rx"],Oj=Ba({__name:"vue-ui-skeleton",props:{config:{type:Object,default(){return{}}}},setup(t){const e=t,r=i.ref(`vue-ui-skeleton-${Math.random()}`),n=i.ref(ia.vue_ui_skeleton),a=i.computed(()=>{if(!Object.keys(e.config||{}).length)return n.value;const d=Wn({defaultConfig:n.value,userConfig:e.config});return Xn(d)}),A=i.computed(()=>a.value.style.animated),o=i.computed(()=>a.value.type),s=i.ref([60,50,55,36,40,25,26,12]),l=i.computed(()=>tA({plot:{x:50,y:50},radius:40,sides:6}).path),c=i.computed(()=>tA({plot:{x:50,y:50},radius:30,sides:6}).path),u=i.computed(()=>tA({plot:{x:50,y:50},radius:20,sides:6}).path),p=i.computed(()=>tA({plot:{x:50,y:50},radius:10,sides:6}).path),h=i.ref([{root:{x:70,y:77,r:44,opacity:100},bars:[{x:200,y:37,opacity:100,width:240},{x:200,y:118,opacity:100,width:180},{x:200,y:253,opacity:100,width:80}]},{root:{x:70,y:177,r:32,opacity:70},bars:[{x:200,y:145,opacity:70,width:160},{x:200,y:172,opacity:70,width:140},{x:200,y:199,opacity:70,width:120}]},{root:{x:70,y:257,r:24,opacity:40},bars:[{x:200,y:64,opacity:40,width:220},{x:200,y:91,opacity:40,width:200},{x:200,y:226,opacity:40,width:100}]}]);return(d,w)=>(i.openBlock(),i.createElementBlock("div",{id:r.value,class:i.normalizeClass({"vue-ui-skeleton":!0,"vue-ui-skeleton-animated":A.value}),style:i.normalizeStyle(`background:${a.value.style.backgroundColor};color:${a.value.style.color};display:flex;align-items:center;justify-content:center;`)},[o.value==="chestnut"?(i.openBlock(),i.createElementBlock("svg",{key:0,width:"100%",viewBox:"0 0 512 316",style:i.normalizeStyle(`background:${a.value.style.backgroundColor}`)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(h.value,f=>(i.openBlock(),i.createElementBlock("g",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.bars,m=>(i.openBlock(),i.createElementBlock("g",null,[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(22,(y,F)=>i.createElementVNode("path",{d:`M
389
- ${m.x},${m.y+F}
390
- C${m.x-20},${m.y+F}
391
- ${m.x-80},${m.y+F}
392
- ${f.root.x+f.root.r/2}, ${f.root.y}
393
- `,stroke:`${a.value.style.chestnut.color}${i.unref(yt)[m.opacity*.2]}`,fill:"none","stroke-width":"2","shape-rendering":"cirspEdges"},null,8,UG)),64))]))),256))]))),256)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(h.value,f=>(i.openBlock(),i.createElementBlock("circle",{cx:f.root.x,cy:f.root.y,r:f.root.r,fill:`${a.value.style.backgroundColor}`,stroke:a.value.backgroundColor,"stroke-width":3},null,8,IG))),256)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(h.value,f=>(i.openBlock(),i.createElementBlock("circle",{cx:f.root.x,cy:f.root.y,r:f.root.r,fill:`${a.value.style.chestnut.color}${i.unref(yt)[f.root.opacity]}`,stroke:a.value.style.backgroundColor,"stroke-width":3},null,8,DG))),256)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(h.value,f=>(i.openBlock(),i.createElementBlock("g",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.bars,m=>(i.openBlock(),i.createElementBlock("rect",{rx:"2",x:m.x,y:m.y,width:m.width,height:22,fill:`${a.value.style.chestnut.color}${i.unref(yt)[m.opacity]}`},null,8,QG))),256)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.bars,m=>(i.openBlock(),i.createElementBlock("circle",{cx:m.x+m.width+32,cy:m.y+11,r:11,fill:`${a.value.style.chestnut.color}${i.unref(yt)[m.opacity]}`},null,8,OG))),256)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.bars,m=>(i.openBlock(),i.createElementBlock("circle",{cx:m.x+m.width+32,cy:m.y+11,r:5,fill:`${a.value.style.backgroundColor}`},null,8,PG))),256))]))),256)),i.createElementVNode("line",{x1:200,x2:200,y1:10,y2:300,stroke:a.value.style.backgroundColor,"stroke-width":3},null,8,MG)],4)):i.createCommentVNode("",!0),o.value==="line"?(i.openBlock(),i.createElementBlock("svg",{key:1,width:"100%",viewBox:"0 0 100 70",style:i.normalizeStyle(`background:${a.value.style.backgroundColor}`)},[a.value.style.line.axis.show?(i.openBlock(),i.createElementBlock("g",RG,[i.createElementVNode("line",{x1:"3",x2:"3",y1:"3",y2:"67",stroke:a.value.style.line.axis.color,"stroke-width":a.value.style.line.axis.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,HG),i.createElementVNode("line",{x1:"3",x2:"97",y1:"67",y2:"67",stroke:a.value.style.line.axis.color,"stroke-width":a.value.style.line.axis.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,VG)])):i.createCommentVNode("",!0),i.createElementVNode("path",{d:"M 9,60 22,50 35,55 48,36 61,40 74,25 87,26 90,12",fill:"none","stroke-linecap":"round","stroke-linejoin":"round",stroke:a.value.style.line.path.color,"stroke-width":a.value.style.line.path.strokeWidth},null,8,$G),a.value.style.line.path.showPlots?(i.openBlock(),i.createElementBlock("g",zG,[i.createElementVNode("circle",{cx:"9",cy:"60",r:a.value.style.line.path.strokeWidth,fill:a.value.style.line.path.color},null,8,KG),i.createElementVNode("circle",{cx:"90",cy:"12",r:a.value.style.line.path.strokeWidth,fill:a.value.style.line.path.color},null,8,GG)])):i.createCommentVNode("",!0)],4)):i.createCommentVNode("",!0),o.value==="bar"?(i.openBlock(),i.createElementBlock("svg",{key:2,width:"100%",viewBox:"0 0 100 70",style:i.normalizeStyle(`background:${a.value.style.backgroundColor}`)},[a.value.style.bar.axis.show?(i.openBlock(),i.createElementBlock("g",jG,[i.createElementVNode("line",{x1:"3",x2:"3",y1:"3",y2:"67",stroke:a.value.style.bar.axis.color,"stroke-width":a.value.style.bar.axis.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,WG),i.createElementVNode("line",{x1:"3",x2:"97",y1:"67",y2:"67",stroke:a.value.style.bar.axis.color,"stroke-width":a.value.style.bar.axis.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,XG)])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(f,m)=>(i.openBlock(),i.createElementBlock("rect",{fill:a.value.style.bar.color,rx:a.value.style.bar.borderRadius,x:6+11.2*m,y:f,width:a.value.style.bar.barWidth,height:67-f},null,8,qG))),256))],4)):i.createCommentVNode("",!0),o.value==="donut"?(i.openBlock(),i.createElementBlock("svg",{key:3,width:"100%",viewBox:"0 0 400 400",style:i.normalizeStyle(`background:${a.value.style.backgroundColor}`)},[i.createElementVNode("path",{d:" M 300 200 A 100 100 0 0 1 113 250",fill:"none","stroke-width":a.value.style.donut.strokeWidth,stroke:a.value.style.donut.color},null,8,YG),i.createElementVNode("path",{d:" M 113 250 A 100 100 0 0 1 250 113",fill:"none","stroke-width":a.value.style.donut.strokeWidth,stroke:`${a.value.style.donut.color}${i.unref(yt)[60]}`},null,8,JG),i.createElementVNode("path",{d:" M 250 113 A 100 100 0 0 1 300 200",fill:"none","stroke-width":a.value.style.donut.strokeWidth,stroke:`${a.value.style.donut.color}${i.unref(yt)[30]}`},null,8,ZG)],4)):i.createCommentVNode("",!0),o.value==="onion"?(i.openBlock(),i.createElementBlock("svg",{key:4,width:"100%",viewBox:"0 0 400 400",style:i.normalizeStyle(`background:${a.value.style.backgroundColor}`)},[i.createElementVNode("path",{d:" M 200 60 A 140 140 0 1 1 60 200",stroke:a.value.style.onion.color,"stroke-linecap":"round","stroke-width":"20",fill:"none"},null,8,ej),i.createElementVNode("path",{d:" M 200 100 A 100 100 0 1 1 100 200",stroke:`${a.value.style.onion.color}${i.unref(yt)[60]}`,"stroke-linecap":"round","stroke-width":"20",fill:"none"},null,8,tj),i.createElementVNode("path",{d:" M 200 140 A 60 60 0 1 1 140 200",fill:"none",stroke:`${a.value.style.onion.color}${i.unref(yt)[40]}`,"stroke-linecap":"round","stroke-width":"20"},null,8,rj)],4)):i.createCommentVNode("",!0),o.value==="gauge"?(i.openBlock(),i.createElementBlock("svg",{key:5,width:"100%",viewBox:"0 0 400 400",style:i.normalizeStyle(`background:${a.value.style.backgroundColor}`)},[i.createElementVNode("path",{d:" M 82 255 A 120 120 0 1 1 318 255",fill:"none",stroke:a.value.style.gauge.color,"stroke-linecap":"round","stroke-width":"20"},null,8,nj),i.createElementVNode("circle",{cx:"200",cy:"256",r:"12",fill:a.value.style.gauge.color},null,8,aj),i.createElementVNode("line",{x1:"200",y1:"256",x2:"250",y2:"160","stroke-width":"8",stroke:a.value.style.gauge.color,"stroke-linecap":"round"},null,8,Aj)],4)):i.createCommentVNode("",!0),o.value==="quadrant"?(i.openBlock(),i.createElementBlock("svg",{key:6,viewBox:"0 0 100 100",style:i.normalizeStyle(`background:${a.value.style.backgroundColor}`)},[i.createElementVNode("line",{x1:"50",x2:"50",y1:"3",y2:"97",stroke:a.value.style.quadrant.grid.color,"stroke-width":a.value.style.quadrant.grid.strokeWidth},null,8,ij),i.createElementVNode("line",{x1:"3",x2:"97",y1:"50",y2:"50",stroke:a.value.style.quadrant.grid.color,"stroke-width":a.value.style.quadrant.grid.strokeWidth},null,8,oj),i.createElementVNode("circle",{fill:a.value.style.quadrant.plots.color,r:a.value.style.quadrant.plots.radius,cx:"20",cy:"20"},null,8,sj),i.createElementVNode("circle",{fill:a.value.style.quadrant.plots.color,r:a.value.style.quadrant.plots.radius,cx:"80",cy:"60"},null,8,lj),i.createElementVNode("circle",{fill:a.value.style.quadrant.plots.color,r:a.value.style.quadrant.plots.radius,cx:"65",cy:"55"},null,8,cj),i.createElementVNode("circle",{fill:a.value.style.quadrant.plots.color,r:a.value.style.quadrant.plots.radius,cx:"36",cy:"67"},null,8,uj),i.createElementVNode("circle",{fill:a.value.style.quadrant.plots.color,r:a.value.style.quadrant.plots.radius,cx:"15",cy:"75"},null,8,hj),i.createElementVNode("circle",{fill:a.value.style.quadrant.plots.color,r:a.value.style.quadrant.plots.radius,cx:"40",cy:"55"},null,8,fj),i.createElementVNode("circle",{fill:a.value.style.quadrant.plots.color,r:a.value.style.quadrant.plots.radius,cx:"76",cy:"32"},null,8,dj),i.createElementVNode("circle",{fill:a.value.style.quadrant.plots.color,r:a.value.style.quadrant.plots.radius,cx:"85",cy:"26"},null,8,gj),i.createElementVNode("circle",{fill:a.value.style.quadrant.plots.color,r:a.value.style.quadrant.plots.radius,cx:"55",cy:"46"},null,8,pj)],4)):i.createCommentVNode("",!0),o.value==="radar"?(i.openBlock(),i.createElementBlock("svg",{key:7,viewBox:"0 0 100 100",style:i.normalizeStyle(`background:${a.value.style.backgroundColor}`)},[i.createElementVNode("path",{d:l.value,fill:"none",stroke:a.value.style.radar.grid.color,"stroke-width":a.value.style.radar.grid.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,mj),i.createElementVNode("path",{d:c.value,fill:"none",stroke:`${a.value.style.radar.grid.color}${i.unref(yt)[70]}`,"stroke-width":a.value.style.radar.grid.strokeWidth/2,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,yj),i.createElementVNode("path",{d:u.value,fill:"none",stroke:`${a.value.style.radar.grid.color}${i.unref(yt)[70]}`,"stroke-width":a.value.style.radar.grid.strokeWidth/2,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,vj),i.createElementVNode("path",{d:p.value,fill:"none",stroke:`${a.value.style.radar.grid.color}${i.unref(yt)[70]}`,"stroke-width":a.value.style.radar.grid.strokeWidth/2.5,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,wj),i.createElementVNode("path",{d:"M 9,50 91,50",stroke:`${a.value.style.radar.grid.color}${i.unref(yt)[50]}`,"stroke-width":a.value.style.radar.grid.strokeWidth/2},null,8,Bj),i.createElementVNode("path",{d:"M 29.5,14.5 70.5 85.5",stroke:`${a.value.style.radar.grid.color}${i.unref(yt)[50]}`,"stroke-width":a.value.style.radar.grid.strokeWidth/2},null,8,xj),i.createElementVNode("path",{d:"M 29.5,85.5 70.5 14.5",stroke:`${a.value.style.radar.grid.color}${i.unref(yt)[50]}`,"stroke-width":a.value.style.radar.grid.strokeWidth/2},null,8,bj),i.createElementVNode("path",{d:"M 34,23 68.5,18, 70,50 61.5,70 35,75.5 10,50 Z",stroke:"none","stroke-linejoin":"round",fill:`${a.value.style.radar.shapes.color}${i.unref(yt)[30]}`},null,8,Cj),i.createElementVNode("path",{d:"M 43.5,40 64.5,25, 84,50 55.5,60 29.5,85.5 25,50 Z",stroke:"none","stroke-linejoin":"round",fill:`${a.value.style.radar.shapes.color}${i.unref(yt)[50]}`},null,8,Ej)],4)):i.createCommentVNode("",!0),o.value==="waffle"?(i.openBlock(),i.createElementBlock("svg",{key:8,viewBox:"0 0 100 100",style:i.normalizeStyle(`background:${a.value.style.backgroundColor}`)},[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(10,(f,m)=>i.createElementVNode("g",null,[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(10,(y,F)=>i.createElementVNode("g",null,[i.createElementVNode("rect",{x:3+F*9.5,y:3+m*9.5,height:9,width:9,fill:`${a.value.style.waffle.color}${i.unref(yt)[20]}`,rx:"1"},null,8,_j)])),64))])),64)),(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(10,(f,m)=>i.createElementVNode("g",null,[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(10,(y,F)=>i.createElementVNode("g",null,[m>2?(i.openBlock(),i.createElementBlock("rect",{key:0,x:3+F*9.5,y:3+m*9.5,height:9,width:9,fill:`${a.value.style.waffle.color}${i.unref(yt)[30]}`,rx:"1"},null,8,Fj)):i.createCommentVNode("",!0)])),64))])),64)),(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(10,(f,m)=>i.createElementVNode("g",null,[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(10,(y,F)=>i.createElementVNode("g",null,[m>6?(i.openBlock(),i.createElementBlock("rect",{key:0,x:3+F*9.5,y:3+m*9.5,height:9,width:9,fill:`${a.value.style.waffle.color}${i.unref(yt)[50]}`,rx:"1"},null,8,Sj)):i.createCommentVNode("",!0)])),64))])),64))],4)):i.createCommentVNode("",!0),o.value==="table"?(i.openBlock(),i.createElementBlock("svg",{key:9,width:"100%",viewBox:"0 0 100 70",style:i.normalizeStyle(`background:${a.value.style.backgroundColor}`)},[i.createElementVNode("rect",{fill:`${a.value.style.table.th.color}${i.unref(yt)[50]}`,x:3.5,y:5,height:"10",width:"93"},null,8,kj),i.createElementVNode("rect",{fill:`${a.value.style.table.th.color}${i.unref(yt)[50]}`,x:3.5,y:15,height:"50",width:"23.25"},null,8,Tj),(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(7,(f,m)=>i.createElementVNode("line",{x1:"3.7",x2:"96.3",y1:5+m*10,y2:5+m*10,stroke:a.value.style.table.td.color,"stroke-width":a.value.style.table.td.strokeWidth,"stroke-linecap":"round"},null,8,Nj)),64)),(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(5,(f,m)=>i.createElementVNode("line",{x1:3.5+m*23.25,x2:3.5+m*23.25,y1:"5",y2:"65",stroke:a.value.style.table.td.color,"stroke-width":a.value.style.table.td.strokeWidth,"stroke-linecap":"round"},null,8,Lj)),64))],4)):i.createCommentVNode("",!0),o.value==="rating"?(i.openBlock(),i.createElementBlock("svg",{key:10,width:"100%",viewBox:"0 0 100 30",style:i.normalizeStyle(`background:${a.value.style.backgroundColor};max-width:${a.value.style.rating.maxWidth}px`)},[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(5,(f,m)=>i.createElementVNode("polygon",{points:i.unref(Xh)({plot:{x:10+m*20,y:15},radius:6}),fill:a.value.style.rating.filled?a.value.style.rating.color:"none",stroke:a.value.style.rating.color,"stroke-width":a.value.style.rating.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,Uj)),64))],4)):i.createCommentVNode("",!0),o.value==="verticalBar"?(i.openBlock(),i.createElementBlock("svg",{key:11,width:"100%",viewBox:"0 0 100 100",style:i.normalizeStyle(`background:${a.value.style.backgroundColor}`)},[a.value.style.verticalBar.axis.show?(i.openBlock(),i.createElementBlock("g",Ij,[i.createElementVNode("line",{x1:3,x2:3,y1:3,y2:97,stroke:a.value.style.verticalBar.axis.color,"stroke-width":a.value.style.verticalBar.axis.strokeWidth},null,8,Dj)])):i.createCommentVNode("",!0),(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(6,(f,m)=>i.createElementVNode("rect",{x:3,y:5+m*15.6,height:"12",width:94-94*m/6,fill:a.value.style.verticalBar.color,rx:a.value.style.verticalBar.borderRadius},null,8,Qj)),64))],4)):i.createCommentVNode("",!0)],14,LG))}},[["__scopeId","data-v-d7608918"]]),ase="",Pj=["id"],Mj=["viewBox"],Rj=["id"],Hj=["stop-color"],Vj=["stop-color"],$j={key:0},zj=["d","fill"],Kj=["x1","x2","y1","y2","stroke","stroke-width"],Gj=["x1","x2","y1","y2","stroke","stroke-width"],jj=["x1","x2","y1","y2","stroke","stroke-dasharray","stroke-width"],Wj=["cx","cy","r","fill","stroke","stroke-width"],Xj=["x","y","font-size","font-weight","fill"],qj=["x","y","height","width","onMouseenter"],Yj=Ba({__name:"vue-ui-sparkline",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(t){const e=t,r=i.ref(`vue-ui-sparkline-${Math.random()}`),n=i.ref(ia.vue_ui_sparkline),a=i.computed(()=>{if(!Object.keys(e.config||{}).length)return n.value;const D=Wn({defaultConfig:n.value,userConfig:e.config});return Xn(D)}),A=i.ref({height:80,width:500}),o=i.computed(()=>({top:12,left:0,right:A.value.width,bottom:A.value.height-3,start:a.value.style.dataLabel.position==="left"?210:0,width:290,height:A.value.height-12})),s=i.computed(()=>Math.min(...e.dataset.map(D=>isNaN(D.value)||[void 0,null,"NaN",NaN,1/0,-1/0].includes(D.value)?0:D.value))),l=i.computed(()=>Math.max(...e.dataset.map(D=>isNaN(D.value)||[void 0,null,"NaN",NaN,1/0,-1/0].includes(D.value)?0:D.value))),c=i.ref(6),u=i.computed(()=>Math.abs(s.value)),p=i.computed(()=>l.value+u.value+c.value),h=i.computed(()=>o.value.bottom-o.value.height*d(u.value+c.value));function d(D){return D/p.value}const w=i.computed(()=>e.dataset.length),f=i.computed(()=>e.dataset.map((D,H)=>{const R=isNaN(D.value)||[void 0,null,"NaN",NaN,1/0,-1/0].includes(D.value)?0:D.value;return{absoluteValue:R,period:D.period,plotValue:R+u.value,toMax:d(R+u.value),x:o.value.start+H*(o.value.width/w.value),y:o.value.bottom-o.value.height*d(R+c.value+u.value),id:`plot_${r}_${H}`,color:a.value.style.area.useGradient?eA(a.value.style.line.color,.05*(1-H/w.value)):a.value.style.line.color}})),m=i.computed(()=>{const D={x:f.value[0].x,y:A.value.height-6},H={x:f.value[f.value.length-1].x,y:A.value.height-6},R=[];return f.value.forEach(U=>{R.push(`${U.x},${U.y} `)}),[D.x,D.y,...R,H.x,H.y].toString()}),y=i.ref(void 0);function F(D){y.value=D}const N=i.computed(()=>a.value.style.dataLabel.valueType==="latest"?f.value[f.value.length-1].absoluteValue:a.value.style.dataLabel.valueType==="sum"?f.value.map(D=>D.absoluteValue).reduce((D,H)=>D+H):a.value.style.dataLabel.valueType==="average"?f.value.map(D=>D.absoluteValue).reduce((D,H)=>D+H)/f.value.length:0);return(D,H)=>(i.openBlock(),i.createElementBlock("div",{class:"vue-ui-sparkline",id:r.value,style:i.normalizeStyle(`width:100%;font-family:${a.value.style.fontFamily}`)},[a.value.style.title.show?(i.openBlock(),i.createElementBlock("div",{key:0,class:"vue-ui-sparkline-title",style:i.normalizeStyle(`display:flex;align-items:center;width:100%;color:${a.value.style.title.color};background:${a.value.style.backgroundColor};justify-content:${a.value.style.title.textAlign==="left"?"flex-start":a.value.style.title.textAlign==="right"?"flex-end":"center"};height:${a.value.style.title.fontSize*2}px;font-size:${a.value.style.title.fontSize}px;font-weight:${a.value.style.title.bold?"bold":"normal"};`)},[i.createElementVNode("span",{style:i.normalizeStyle(`padding:${a.value.style.title.textAlign==="left"?"0 0 0 12px":a.value.style.title.textAlign==="right"?"0 12px 0 0":"0"}`)},i.toDisplayString(y.value?y.value.period:a.value.style.title.text),5)],4)):i.createCommentVNode("",!0),(i.openBlock(),i.createElementBlock("svg",{viewBox:`0 0 ${A.value.width} ${A.value.height}`,style:i.normalizeStyle(`background:${a.value.style.backgroundColor};overflow:visible`)},[i.createElementVNode("defs",null,[i.createElementVNode("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`sparkline_gradient_${r.value}`},[i.createElementVNode("stop",{offset:"0%","stop-color":`${i.unref(eA)(a.value.style.area.color,.05)}${i.unref(yt)[a.value.style.area.opacity]}`},null,8,Hj),i.createElementVNode("stop",{offset:"100%","stop-color":a.value.style.area.color+i.unref(yt)[a.value.style.area.opacity]},null,8,Vj)],8,Rj)]),a.value.style.area.show?(i.openBlock(),i.createElementBlock("g",$j,[i.createElementVNode("path",{d:`M${m.value}Z`,fill:a.value.style.area.useGradient?`url(#sparkline_gradient_${r.value})`:`${a.value.style.area.color}${i.unref(yt)[a.value.style.area.opacity]}`},null,8,zj)])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.value,(R,U)=>(i.openBlock(),i.createElementBlock("g",null,[U<f.value.length-1?(i.openBlock(),i.createElementBlock("line",{key:0,x1:R.x,x2:f.value[U+1].x,y1:R.y,y2:f.value[U+1].y,stroke:R.color,"stroke-width":a.value.style.line.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round","shape-rendering":"geometricPrecision"},null,8,Kj)):i.createCommentVNode("",!0),a.value.style.verticalIndicator.show&&y.value&&R.id===y.value.id?(i.openBlock(),i.createElementBlock("line",{key:1,x1:R.x,x2:R.x,y1:o.value.top-6,y2:o.value.bottom,stroke:R.color,"stroke-width":a.value.style.verticalIndicator.strokeWidth,"stroke-linecap":"round"},null,8,Gj)):i.createCommentVNode("",!0)]))),256)),s.value<0?(i.openBlock(),i.createElementBlock("line",{key:1,x1:o.value.start,x2:o.value.start+o.value.width-16,y1:h.value,y2:h.value,stroke:a.value.style.zeroLine.color,"stroke-dasharray":a.value.style.zeroLine.strokeWidth*2,"stroke-width":a.value.style.zeroLine.strokeWidth,"stroke-linecap":"round"},null,8,jj)):i.createCommentVNode("",!0),a.value.style.plot.show?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:2},i.renderList(f.value,(R,U)=>(i.openBlock(),i.createElementBlock("g",null,[y.value&&R.id===y.value.id?(i.openBlock(),i.createElementBlock("circle",{key:0,cx:R.x,cy:R.y,r:a.value.style.plot.radius,fill:R.color,stroke:a.value.style.plot.stroke,"stroke-width":a.value.style.plot.strokeWidth},null,8,Wj)):i.createCommentVNode("",!0)]))),256)):i.createCommentVNode("",!0),i.createElementVNode("text",{x:a.value.style.dataLabel.position==="left"?12:o.value.width+12,y:A.value.height/2+a.value.style.dataLabel.fontSize/2.5,"font-size":a.value.style.dataLabel.fontSize,"font-weight":a.value.style.dataLabel.bold?"bold":"normal",fill:a.value.style.dataLabel.color},i.toDisplayString(y.value?Number(y.value.absoluteValue.toFixed(a.value.style.dataLabel.roundingValue)).toLocaleString():Number(N.value.toFixed(a.value.style.dataLabel.roundingValue)).toLocaleString()),9,Xj),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.value,(R,U)=>(i.openBlock(),i.createElementBlock("rect",{x:R.x-o.value.width/w.value/2,y:o.value.top-6,height:o.value.height+6,width:o.value.width/w.value,fill:"transparent",onMouseenter:I=>F(R),onMouseleave:H[0]||(H[0]=I=>y.value=void 0)},null,40,qj))),256))],12,Mj))],12,Pj))}},[["__scopeId","data-v-c6d34c76"]]);/*! @license DOMPurify 2.4.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.7/LICENSE */function Ri(t){"@babel/helpers - typeof";return Ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ri(t)}function Og(t,e){return Og=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},Og(t,e)}function Jj(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qh(t,e,r){return Jj()?qh=Reflect.construct:qh=function(a,A,o){var s=[null];s.push.apply(s,A);var l=Function.bind.apply(a,s),c=new l;return o&&Og(c,o.prototype),c},qh.apply(null,arguments)}function nA(t){return Zj(t)||eW(t)||tW(t)||rW()}function Zj(t){if(Array.isArray(t))return Pg(t)}function eW(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function tW(t,e){if(t){if(typeof t=="string")return Pg(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pg(t,e)}}function Pg(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function rW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
394
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var nW=Object.hasOwnProperty,ox=Object.setPrototypeOf,aW=Object.isFrozen,AW=Object.getPrototypeOf,iW=Object.getOwnPropertyDescriptor,qn=Object.freeze,aA=Object.seal,oW=Object.create,sx=typeof Reflect<"u"&&Reflect,Yh=sx.apply,Mg=sx.construct;Yh||(Yh=function(e,r,n){return e.apply(r,n)}),qn||(qn=function(e){return e}),aA||(aA=function(e){return e}),Mg||(Mg=function(e,r){return qh(e,nA(r))});var sW=Qa(Array.prototype.forEach),lx=Qa(Array.prototype.pop),lc=Qa(Array.prototype.push),Jh=Qa(String.prototype.toLowerCase),Rg=Qa(String.prototype.toString),lW=Qa(String.prototype.match),AA=Qa(String.prototype.replace),cW=Qa(String.prototype.indexOf),uW=Qa(String.prototype.trim),Yn=Qa(RegExp.prototype.test),Hg=hW(TypeError);function Qa(t){return function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return Yh(t,e,n)}}function hW(t){return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Mg(t,r)}}function Pt(t,e,r){var n;r=(n=r)!==null&&n!==void 0?n:Jh,ox&&ox(t,null);for(var a=e.length;a--;){var A=e[a];if(typeof A=="string"){var o=r(A);o!==A&&(aW(e)||(e[a]=o),A=o)}t[A]=!0}return t}function So(t){var e=oW(null),r;for(r in t)Yh(nW,t,[r])===!0&&(e[r]=t[r]);return e}function Zh(t,e){for(;t!==null;){var r=iW(t,e);if(r){if(r.get)return Qa(r.get);if(typeof r.value=="function")return Qa(r.value)}t=AW(t)}function n(a){return console.warn("fallback value for",a),null}return n}var cx=qn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Vg=qn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),$g=qn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),fW=qn(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),zg=qn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),dW=qn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ux=qn(["#text"]),hx=qn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Kg=qn(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),fx=qn(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ef=qn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),gW=aA(/\{\{[\w\W]*|[\w\W]*\}\}/gm),pW=aA(/<%[\w\W]*|[\w\W]*%>/gm),mW=aA(/\${[\w\W]*}/gm),yW=aA(/^data-[\-\w.\u00B7-\uFFFF]/),vW=aA(/^aria-[\-\w]+$/),wW=aA(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),BW=aA(/^(?:\w+script|data):/i),xW=aA(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),bW=aA(/^html$/i),CW=function(){return typeof window>"u"?null:window},EW=function(e,r){if(Ri(e)!=="object"||typeof e.createPolicy!="function")return null;var n=null,a="data-tt-policy-suffix";r.currentScript&&r.currentScript.hasAttribute(a)&&(n=r.currentScript.getAttribute(a));var A="dompurify"+(n?"#"+n:"");try{return e.createPolicy(A,{createHTML:function(s){return s},createScriptURL:function(s){return s}})}catch{return console.warn("TrustedTypes policy "+A+" could not be created."),null}};function dx(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:CW(),e=function(X){return dx(X)};if(e.version="2.4.7",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;var r=t.document,n=t.document,a=t.DocumentFragment,A=t.HTMLTemplateElement,o=t.Node,s=t.Element,l=t.NodeFilter,c=t.NamedNodeMap,u=c===void 0?t.NamedNodeMap||t.MozNamedAttrMap:c,p=t.HTMLFormElement,h=t.DOMParser,d=t.trustedTypes,w=s.prototype,f=Zh(w,"cloneNode"),m=Zh(w,"nextSibling"),y=Zh(w,"childNodes"),F=Zh(w,"parentNode");if(typeof A=="function"){var N=n.createElement("template");N.content&&N.content.ownerDocument&&(n=N.content.ownerDocument)}var D=EW(d,r),H=D?D.createHTML(""):"",R=n,U=R.implementation,I=R.createNodeIterator,O=R.createDocumentFragment,q=R.getElementsByTagName,T=r.importNode,L={};try{L=So(n).documentMode?n.documentMode:{}}catch{}var G={};e.isSupported=typeof F=="function"&&U&&U.createHTMLDocument!==void 0&&L!==9;var Y=gW,se=pW,he=mW,ge=yW,re=vW,le=BW,fe=xW,Ue=wW,b=null,_=Pt({},[].concat(nA(cx),nA(Vg),nA($g),nA(zg),nA(ux))),B=null,x=Pt({},[].concat(nA(hx),nA(Kg),nA(fx),nA(ef))),S=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Q=null,W=null,ue=!0,Ce=!0,de=!1,ke=!0,ne=!1,Ee=!1,xe=!1,te=!1,Pe=!1,rt=!1,Ve=!1,We=!0,Ye=!1,Je="user-content-",ot=!0,at=!1,ft={},vt=null,kt=Pt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Nt=null,dt=Pt({},["audio","video","img","source","image","track"]),bt=null,tt=Pt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ir="http://www.w3.org/1998/Math/MathML",Lt="http://www.w3.org/2000/svg",fr="http://www.w3.org/1999/xhtml",Qt=fr,Kt=!1,Zr=null,Rt=Pt({},[ir,Lt,fr],Rg),_r,Yt=["application/xhtml+xml","text/html"],on="text/html",_t,Gt=null,Ct=n.createElement("form"),$t=function(X){return X instanceof RegExp||X instanceof Function},ba=function(X){Gt&&Gt===X||((!X||Ri(X)!=="object")&&(X={}),X=So(X),_r=Yt.indexOf(X.PARSER_MEDIA_TYPE)===-1?_r=on:_r=X.PARSER_MEDIA_TYPE,_t=_r==="application/xhtml+xml"?Rg:Jh,b="ALLOWED_TAGS"in X?Pt({},X.ALLOWED_TAGS,_t):_,B="ALLOWED_ATTR"in X?Pt({},X.ALLOWED_ATTR,_t):x,Zr="ALLOWED_NAMESPACES"in X?Pt({},X.ALLOWED_NAMESPACES,Rg):Rt,bt="ADD_URI_SAFE_ATTR"in X?Pt(So(tt),X.ADD_URI_SAFE_ATTR,_t):tt,Nt="ADD_DATA_URI_TAGS"in X?Pt(So(dt),X.ADD_DATA_URI_TAGS,_t):dt,vt="FORBID_CONTENTS"in X?Pt({},X.FORBID_CONTENTS,_t):kt,Q="FORBID_TAGS"in X?Pt({},X.FORBID_TAGS,_t):{},W="FORBID_ATTR"in X?Pt({},X.FORBID_ATTR,_t):{},ft="USE_PROFILES"in X?X.USE_PROFILES:!1,ue=X.ALLOW_ARIA_ATTR!==!1,Ce=X.ALLOW_DATA_ATTR!==!1,de=X.ALLOW_UNKNOWN_PROTOCOLS||!1,ke=X.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ne=X.SAFE_FOR_TEMPLATES||!1,Ee=X.WHOLE_DOCUMENT||!1,Pe=X.RETURN_DOM||!1,rt=X.RETURN_DOM_FRAGMENT||!1,Ve=X.RETURN_TRUSTED_TYPE||!1,te=X.FORCE_BODY||!1,We=X.SANITIZE_DOM!==!1,Ye=X.SANITIZE_NAMED_PROPS||!1,ot=X.KEEP_CONTENT!==!1,at=X.IN_PLACE||!1,Ue=X.ALLOWED_URI_REGEXP||Ue,Qt=X.NAMESPACE||fr,S=X.CUSTOM_ELEMENT_HANDLING||{},X.CUSTOM_ELEMENT_HANDLING&&$t(X.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(S.tagNameCheck=X.CUSTOM_ELEMENT_HANDLING.tagNameCheck),X.CUSTOM_ELEMENT_HANDLING&&$t(X.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(S.attributeNameCheck=X.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),X.CUSTOM_ELEMENT_HANDLING&&typeof X.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(S.allowCustomizedBuiltInElements=X.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ne&&(Ce=!1),rt&&(Pe=!0),ft&&(b=Pt({},nA(ux)),B=[],ft.html===!0&&(Pt(b,cx),Pt(B,hx)),ft.svg===!0&&(Pt(b,Vg),Pt(B,Kg),Pt(B,ef)),ft.svgFilters===!0&&(Pt(b,$g),Pt(B,Kg),Pt(B,ef)),ft.mathMl===!0&&(Pt(b,zg),Pt(B,fx),Pt(B,ef))),X.ADD_TAGS&&(b===_&&(b=So(b)),Pt(b,X.ADD_TAGS,_t)),X.ADD_ATTR&&(B===x&&(B=So(B)),Pt(B,X.ADD_ATTR,_t)),X.ADD_URI_SAFE_ATTR&&Pt(bt,X.ADD_URI_SAFE_ATTR,_t),X.FORBID_CONTENTS&&(vt===kt&&(vt=So(vt)),Pt(vt,X.FORBID_CONTENTS,_t)),ot&&(b["#text"]=!0),Ee&&Pt(b,["html","head","body"]),b.table&&(Pt(b,["tbody"]),delete Q.tbody),qn&&qn(X),Gt=X)},Ir=Pt({},["mi","mo","mn","ms","mtext"]),Zn=Pt({},["foreignobject","desc","title","annotation-xml"]),sa=Pt({},["title","style","font","a","script"]),gt=Pt({},Vg);Pt(gt,$g),Pt(gt,fW);var Fn=Pt({},zg);Pt(Fn,dW);var Mn=function(X){var we=F(X);(!we||!we.tagName)&&(we={namespaceURI:Qt,tagName:"template"});var Le=Jh(X.tagName),Ke=Jh(we.tagName);return Zr[X.namespaceURI]?X.namespaceURI===Lt?we.namespaceURI===fr?Le==="svg":we.namespaceURI===ir?Le==="svg"&&(Ke==="annotation-xml"||Ir[Ke]):!!gt[Le]:X.namespaceURI===ir?we.namespaceURI===fr?Le==="math":we.namespaceURI===Lt?Le==="math"&&Zn[Ke]:!!Fn[Le]:X.namespaceURI===fr?we.namespaceURI===Lt&&!Zn[Ke]||we.namespaceURI===ir&&!Ir[Ke]?!1:!Fn[Le]&&(sa[Le]||!gt[Le]):!!(_r==="application/xhtml+xml"&&Zr[X.namespaceURI]):!1},mr=function(X){lc(e.removed,{element:X});try{X.parentNode.removeChild(X)}catch{try{X.outerHTML=H}catch{X.remove()}}},xr=function(X,we){try{lc(e.removed,{attribute:we.getAttributeNode(X),from:we})}catch{lc(e.removed,{attribute:null,from:we})}if(we.removeAttribute(X),X==="is"&&!B[X])if(Pe||rt)try{mr(we)}catch{}else try{we.setAttribute(X,"")}catch{}},br=function(X){var we,Le;if(te)X="<remove></remove>"+X;else{var Ke=lW(X,/^[\r\n\t ]+/);Le=Ke&&Ke[0]}_r==="application/xhtml+xml"&&Qt===fr&&(X='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+X+"</body></html>");var ze=D?D.createHTML(X):X;if(Qt===fr)try{we=new h().parseFromString(ze,_r)}catch{}if(!we||!we.documentElement){we=U.createDocument(Qt,"template",null);try{we.documentElement.innerHTML=Kt?H:ze}catch{}}var qe=we.body||we.documentElement;return X&&Le&&qe.insertBefore(n.createTextNode(Le),qe.childNodes[0]||null),Qt===fr?q.call(we,Ee?"html":"body")[0]:Ee?we.documentElement:qe},V=function(X){return I.call(X.ownerDocument||X,X,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},ie=function(X){return X instanceof p&&(typeof X.nodeName!="string"||typeof X.textContent!="string"||typeof X.removeChild!="function"||!(X.attributes instanceof u)||typeof X.removeAttribute!="function"||typeof X.setAttribute!="function"||typeof X.namespaceURI!="string"||typeof X.insertBefore!="function"||typeof X.hasChildNodes!="function")},Z=function(X){return Ri(o)==="object"?X instanceof o:X&&Ri(X)==="object"&&typeof X.nodeType=="number"&&typeof X.nodeName=="string"},ee=function(X,we,Le){G[X]&&sW(G[X],function(Ke){Ke.call(e,we,Le,Gt)})},Ae=function(X){var we;if(ee("beforeSanitizeElements",X,null),ie(X)||Yn(/[\u0080-\uFFFF]/,X.nodeName))return mr(X),!0;var Le=_t(X.nodeName);if(ee("uponSanitizeElement",X,{tagName:Le,allowedTags:b}),X.hasChildNodes()&&!Z(X.firstElementChild)&&(!Z(X.content)||!Z(X.content.firstElementChild))&&Yn(/<[/\w]/g,X.innerHTML)&&Yn(/<[/\w]/g,X.textContent)||Le==="select"&&Yn(/<template/i,X.innerHTML))return mr(X),!0;if(!b[Le]||Q[Le]){if(!Q[Le]&&Se(Le)&&(S.tagNameCheck instanceof RegExp&&Yn(S.tagNameCheck,Le)||S.tagNameCheck instanceof Function&&S.tagNameCheck(Le)))return!1;if(ot&&!vt[Le]){var Ke=F(X)||X.parentNode,ze=y(X)||X.childNodes;if(ze&&Ke)for(var qe=ze.length,ut=qe-1;ut>=0;--ut)Ke.insertBefore(f(ze[ut],!0),m(X))}return mr(X),!0}return X instanceof s&&!Mn(X)||(Le==="noscript"||Le==="noembed"||Le==="noframes")&&Yn(/<\/no(script|embed|frames)/i,X.innerHTML)?(mr(X),!0):(ne&&X.nodeType===3&&(we=X.textContent,we=AA(we,Y," "),we=AA(we,se," "),we=AA(we,he," "),X.textContent!==we&&(lc(e.removed,{element:X.cloneNode()}),X.textContent=we)),ee("afterSanitizeElements",X,null),!1)},oe=function(X,we,Le){if(We&&(we==="id"||we==="name")&&(Le in n||Le in Ct))return!1;if(!(Ce&&!W[we]&&Yn(ge,we))){if(!(ue&&Yn(re,we))){if(!B[we]||W[we]){if(!(Se(X)&&(S.tagNameCheck instanceof RegExp&&Yn(S.tagNameCheck,X)||S.tagNameCheck instanceof Function&&S.tagNameCheck(X))&&(S.attributeNameCheck instanceof RegExp&&Yn(S.attributeNameCheck,we)||S.attributeNameCheck instanceof Function&&S.attributeNameCheck(we))||we==="is"&&S.allowCustomizedBuiltInElements&&(S.tagNameCheck instanceof RegExp&&Yn(S.tagNameCheck,Le)||S.tagNameCheck instanceof Function&&S.tagNameCheck(Le))))return!1}else if(!bt[we]){if(!Yn(Ue,AA(Le,fe,""))){if(!((we==="src"||we==="xlink:href"||we==="href")&&X!=="script"&&cW(Le,"data:")===0&&Nt[X])){if(!(de&&!Yn(le,AA(Le,fe,"")))){if(Le)return!1}}}}}}return!0},Se=function(X){return X.indexOf("-")>0},Ie=function(X){var we,Le,Ke,ze;ee("beforeSanitizeAttributes",X,null);var qe=X.attributes;if(qe){var ut={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:B};for(ze=qe.length;ze--;){we=qe[ze];var zt=we,Et=zt.name,Er=zt.namespaceURI;if(Le=Et==="value"?we.value:uW(we.value),Ke=_t(Et),ut.attrName=Ke,ut.attrValue=Le,ut.keepAttr=!0,ut.forceKeepAttr=void 0,ee("uponSanitizeAttribute",X,ut),Le=ut.attrValue,!ut.forceKeepAttr&&(xr(Et,X),!!ut.keepAttr)){if(!ke&&Yn(/\/>/i,Le)){xr(Et,X);continue}ne&&(Le=AA(Le,Y," "),Le=AA(Le,se," "),Le=AA(Le,he," "));var la=_t(X.nodeName);if(oe(la,Ke,Le)){if(Ye&&(Ke==="id"||Ke==="name")&&(xr(Et,X),Le=Je+Le),D&&Ri(d)==="object"&&typeof d.getAttributeType=="function"&&!Er)switch(d.getAttributeType(la,Ke)){case"TrustedHTML":{Le=D.createHTML(Le);break}case"TrustedScriptURL":{Le=D.createScriptURL(Le);break}}try{Er?X.setAttributeNS(Er,Et,Le):X.setAttribute(Et,Le),lx(e.removed)}catch{}}}}ee("afterSanitizeAttributes",X,null)}},Fe=function pe(X){var we,Le=V(X);for(ee("beforeSanitizeShadowDOM",X,null);we=Le.nextNode();)ee("uponSanitizeShadowNode",we,null),!Ae(we)&&(we.content instanceof a&&pe(we.content),Ie(we));ee("afterSanitizeShadowDOM",X,null)};return e.sanitize=function(pe){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},we,Le,Ke,ze,qe;if(Kt=!pe,Kt&&(pe="<!-->"),typeof pe!="string"&&!Z(pe))if(typeof pe.toString=="function"){if(pe=pe.toString(),typeof pe!="string")throw Hg("dirty is not a string, aborting")}else throw Hg("toString is not a function");if(!e.isSupported){if(Ri(t.toStaticHTML)==="object"||typeof t.toStaticHTML=="function"){if(typeof pe=="string")return t.toStaticHTML(pe);if(Z(pe))return t.toStaticHTML(pe.outerHTML)}return pe}if(xe||ba(X),e.removed=[],typeof pe=="string"&&(at=!1),at){if(pe.nodeName){var ut=_t(pe.nodeName);if(!b[ut]||Q[ut])throw Hg("root node is forbidden and cannot be sanitized in-place")}}else if(pe instanceof o)we=br("<!---->"),Le=we.ownerDocument.importNode(pe,!0),Le.nodeType===1&&Le.nodeName==="BODY"||Le.nodeName==="HTML"?we=Le:we.appendChild(Le);else{if(!Pe&&!ne&&!Ee&&pe.indexOf("<")===-1)return D&&Ve?D.createHTML(pe):pe;if(we=br(pe),!we)return Pe?null:Ve?H:""}we&&te&&mr(we.firstChild);for(var zt=V(at?pe:we);Ke=zt.nextNode();)Ke.nodeType===3&&Ke===ze||Ae(Ke)||(Ke.content instanceof a&&Fe(Ke.content),Ie(Ke),ze=Ke);if(ze=null,at)return pe;if(Pe){if(rt)for(qe=O.call(we.ownerDocument);we.firstChild;)qe.appendChild(we.firstChild);else qe=we;return(B.shadowroot||B.shadowrootmod)&&(qe=T.call(r,qe,!0)),qe}var Et=Ee?we.outerHTML:we.innerHTML;return Ee&&b["!doctype"]&&we.ownerDocument&&we.ownerDocument.doctype&&we.ownerDocument.doctype.name&&Yn(bW,we.ownerDocument.doctype.name)&&(Et="<!DOCTYPE "+we.ownerDocument.doctype.name+`>
395
- `+Et),ne&&(Et=AA(Et,Y," "),Et=AA(Et,se," "),Et=AA(Et,he," ")),D&&Ve?D.createHTML(Et):Et},e.setConfig=function(pe){ba(pe),xe=!0},e.clearConfig=function(){Gt=null,xe=!1},e.isValidAttribute=function(pe,X,we){Gt||ba({});var Le=_t(pe),Ke=_t(X);return oe(Le,Ke,we)},e.addHook=function(pe,X){typeof X=="function"&&(G[pe]=G[pe]||[],lc(G[pe],X))},e.removeHook=function(pe){if(G[pe])return lx(G[pe])},e.removeHooks=function(pe){G[pe]&&(G[pe]=[])},e.removeAllHooks=function(){G={}},e}var _W=dx();const FW=Object.freeze(Object.defineProperty({__proto__:null,default:_W},Symbol.toStringTag,{value:"Module"}));var cc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gx(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var tf=function(t){return t&&t.Math==Math&&t},An=tf(typeof globalThis=="object"&&globalThis)||tf(typeof window=="object"&&window)||tf(typeof self=="object"&&self)||tf(typeof cc=="object"&&cc)||function(){return this}()||cc||Function("return this")(),Ls={},Vr=function(t){try{return!!t()}catch{return!0}},SW=Vr,TA=!SW(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),kW=Vr,rf=!kW(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),TW=rf,nf=Function.prototype.call,_n=TW?nf.bind(nf):function(){return nf.apply(nf,arguments)},px={},mx={}.propertyIsEnumerable,yx=Object.getOwnPropertyDescriptor,NW=yx&&!mx.call({1:2},1);px.f=NW?function(e){var r=yx(this,e);return!!r&&r.enumerable}:mx;var af=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}},vx=rf,wx=Function.prototype,Gg=wx.call,LW=vx&&wx.bind.bind(Gg,Gg),$r=vx?LW:function(t){return function(){return Gg.apply(t,arguments)}},Bx=$r,UW=Bx({}.toString),IW=Bx("".slice),ko=function(t){return IW(UW(t),8,-1)},DW=$r,QW=Vr,OW=ko,jg=Object,PW=DW("".split),xx=QW(function(){return!jg("z").propertyIsEnumerable(0)})?function(t){return OW(t)=="String"?PW(t,""):jg(t)}:jg,To=function(t){return t==null},MW=To,RW=TypeError,NA=function(t){if(MW(t))throw RW("Can't call method on "+t);return t},HW=xx,VW=NA,uc=function(t){return HW(VW(t))},Wg=typeof document=="object"&&document.all,$W=typeof Wg>"u"&&Wg!==void 0,bx={all:Wg,IS_HTMLDDA:$W},Cx=bx,zW=Cx.all,Lr=Cx.IS_HTMLDDA?function(t){return typeof t=="function"||t===zW}:function(t){return typeof t=="function"},Ex=Lr,_x=bx,KW=_x.all,ti=_x.IS_HTMLDDA?function(t){return typeof t=="object"?t!==null:Ex(t)||t===KW}:function(t){return typeof t=="object"?t!==null:Ex(t)},Xg=An,GW=Lr,jW=function(t){return GW(t)?t:void 0},No=function(t,e){return arguments.length<2?jW(Xg[t]):Xg[t]&&Xg[t][e]},WW=$r,Af=WW({}.isPrototypeOf),of=typeof navigator<"u"&&String(navigator.userAgent)||"",Fx=An,qg=of,Sx=Fx.process,kx=Fx.Deno,Tx=Sx&&Sx.versions||kx&&kx.version,Nx=Tx&&Tx.v8,iA,sf;Nx&&(iA=Nx.split("."),sf=iA[0]>0&&iA[0]<4?1:+(iA[0]+iA[1])),!sf&&qg&&(iA=qg.match(/Edge\/(\d+)/),(!iA||iA[1]>=74)&&(iA=qg.match(/Chrome\/(\d+)/),iA&&(sf=+iA[1])));var Yg=sf,Lx=Yg,XW=Vr,qW=An,YW=qW.String,Ux=!!Object.getOwnPropertySymbols&&!XW(function(){var t=Symbol();return!YW(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Lx&&Lx<41}),JW=Ux,Ix=JW&&!Symbol.sham&&typeof Symbol.iterator=="symbol",ZW=No,eX=Lr,tX=Af,rX=Ix,nX=Object,Dx=rX?function(t){return typeof t=="symbol"}:function(t){var e=ZW("Symbol");return eX(e)&&tX(e.prototype,nX(t))},aX=String,lf=function(t){try{return aX(t)}catch{return"Object"}},AX=Lr,iX=lf,oX=TypeError,ri=function(t){if(AX(t))return t;throw oX(iX(t)+" is not a function")},sX=ri,lX=To,Us=function(t,e){var r=t[e];return lX(r)?void 0:sX(r)},Jg=_n,Zg=Lr,e1=ti,cX=TypeError,uX=function(t,e){var r,n;if(e==="string"&&Zg(r=t.toString)&&!e1(n=Jg(r,t))||Zg(r=t.valueOf)&&!e1(n=Jg(r,t))||e!=="string"&&Zg(r=t.toString)&&!e1(n=Jg(r,t)))return n;throw cX("Can't convert object to primitive value")},Qx={exports:{}},Ox=An,hX=Object.defineProperty,t1=function(t,e){try{hX(Ox,t,{value:e,configurable:!0,writable:!0})}catch{Ox[t]=e}return e},fX=An,dX=t1,Px="__core-js_shared__",gX=fX[Px]||dX(Px,{}),r1=gX,Mx=r1;(Qx.exports=function(t,e){return Mx[t]||(Mx[t]=e!==void 0?e:{})})("versions",[]).push({version:"3.32.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.0/LICENSE",source:"https://github.com/zloirock/core-js"});var n1=Qx.exports,pX=NA,mX=Object,cf=function(t){return mX(pX(t))},yX=$r,vX=cf,wX=yX({}.hasOwnProperty),oA=Object.hasOwn||function(e,r){return wX(vX(e),r)},BX=$r,xX=0,bX=Math.random(),CX=BX(1 .toString),Rx=function(t){return"Symbol("+(t===void 0?"":t)+")_"+CX(++xX+bX,36)},EX=An,_X=n1,Hx=oA,FX=Rx,SX=Ux,kX=Ix,Is=EX.Symbol,a1=_X("wks"),TX=kX?Is.for||Is:Is&&Is.withoutSetter||FX,dn=function(t){return Hx(a1,t)||(a1[t]=SX&&Hx(Is,t)?Is[t]:TX("Symbol."+t)),a1[t]},NX=_n,Vx=ti,$x=Dx,LX=Us,UX=uX,IX=dn,DX=TypeError,QX=IX("toPrimitive"),OX=function(t,e){if(!Vx(t)||$x(t))return t;var r=LX(t,QX),n;if(r){if(e===void 0&&(e="default"),n=NX(r,t,e),!Vx(n)||$x(n))return n;throw DX("Can't convert object to primitive value")}return e===void 0&&(e="number"),UX(t,e)},PX=OX,MX=Dx,A1=function(t){var e=PX(t,"string");return MX(e)?e:e+""},RX=An,zx=ti,i1=RX.document,HX=zx(i1)&&zx(i1.createElement),uf=function(t){return HX?i1.createElement(t):{}},VX=TA,$X=Vr,zX=uf,Kx=!VX&&!$X(function(){return Object.defineProperty(zX("div"),"a",{get:function(){return 7}}).a!=7}),KX=TA,GX=_n,jX=px,WX=af,XX=uc,qX=A1,YX=oA,JX=Kx,Gx=Object.getOwnPropertyDescriptor;Ls.f=KX?Gx:function(e,r){if(e=XX(e),r=qX(r),JX)try{return Gx(e,r)}catch{}if(YX(e,r))return WX(!GX(jX.f,e,r),e[r])};var LA={},ZX=TA,eq=Vr,jx=ZX&&eq(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),tq=ti,rq=String,nq=TypeError,On=function(t){if(tq(t))return t;throw nq(rq(t)+" is not an object")},aq=TA,Aq=Kx,iq=jx,hf=On,Wx=A1,oq=TypeError,o1=Object.defineProperty,sq=Object.getOwnPropertyDescriptor,s1="enumerable",l1="configurable",c1="writable";LA.f=aq?iq?function(e,r,n){if(hf(e),r=Wx(r),hf(n),typeof e=="function"&&r==="prototype"&&"value"in n&&c1 in n&&!n[c1]){var a=sq(e,r);a&&a[c1]&&(e[r]=n.value,n={configurable:l1 in n?n[l1]:a[l1],enumerable:s1 in n?n[s1]:a[s1],writable:!1})}return o1(e,r,n)}:o1:function(e,r,n){if(hf(e),r=Wx(r),hf(n),Aq)try{return o1(e,r,n)}catch{}if("get"in n||"set"in n)throw oq("Accessors not supported");return"value"in n&&(e[r]=n.value),e};var lq=TA,cq=LA,uq=af,hc=lq?function(t,e,r){return cq.f(t,e,uq(1,r))}:function(t,e,r){return t[e]=r,t},Xx={exports:{}},u1=TA,hq=oA,qx=Function.prototype,fq=u1&&Object.getOwnPropertyDescriptor,h1=hq(qx,"name"),dq=h1&&(function(){}).name==="something",gq=h1&&(!u1||u1&&fq(qx,"name").configurable),ff={EXISTS:h1,PROPER:dq,CONFIGURABLE:gq},pq=$r,mq=Lr,f1=r1,yq=pq(Function.toString);mq(f1.inspectSource)||(f1.inspectSource=function(t){return yq(t)});var d1=f1.inspectSource,vq=An,wq=Lr,Yx=vq.WeakMap,Bq=wq(Yx)&&/native code/.test(String(Yx)),xq=n1,bq=Rx,Jx=xq("keys"),g1=function(t){return Jx[t]||(Jx[t]=bq(t))},p1={},Cq=Bq,Zx=An,Eq=ti,_q=hc,m1=oA,y1=r1,Fq=g1,Sq=p1,eb="Object already initialized",v1=Zx.TypeError,kq=Zx.WeakMap,df,fc,gf,Tq=function(t){return gf(t)?fc(t):df(t,{})},Nq=function(t){return function(e){var r;if(!Eq(e)||(r=fc(e)).type!==t)throw v1("Incompatible receiver, "+t+" required");return r}};if(Cq||y1.state){var UA=y1.state||(y1.state=new kq);UA.get=UA.get,UA.has=UA.has,UA.set=UA.set,df=function(t,e){if(UA.has(t))throw v1(eb);return e.facade=t,UA.set(t,e),e},fc=function(t){return UA.get(t)||{}},gf=function(t){return UA.has(t)}}else{var Ds=Fq("state");Sq[Ds]=!0,df=function(t,e){if(m1(t,Ds))throw v1(eb);return e.facade=t,_q(t,Ds,e),e},fc=function(t){return m1(t,Ds)?t[Ds]:{}},gf=function(t){return m1(t,Ds)}}var pf={set:df,get:fc,has:gf,enforce:Tq,getterFor:Nq},w1=$r,Lq=Vr,Uq=Lr,mf=oA,B1=TA,Iq=ff.CONFIGURABLE,Dq=d1,tb=pf,Qq=tb.enforce,Oq=tb.get,rb=String,yf=Object.defineProperty,Pq=w1("".slice),Mq=w1("".replace),Rq=w1([].join),Hq=B1&&!Lq(function(){return yf(function(){},"length",{value:8}).length!==8}),Vq=String(String).split("String"),$q=Xx.exports=function(t,e,r){Pq(rb(e),0,7)==="Symbol("&&(e="["+Mq(rb(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!mf(t,"name")||Iq&&t.name!==e)&&(B1?yf(t,"name",{value:e,configurable:!0}):t.name=e),Hq&&r&&mf(r,"arity")&&t.length!==r.arity&&yf(t,"length",{value:r.arity});try{r&&mf(r,"constructor")&&r.constructor?B1&&yf(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch{}var n=Qq(t);return mf(n,"source")||(n.source=Rq(Vq,typeof e=="string"?e:"")),t};Function.prototype.toString=$q(function(){return Uq(this)&&Oq(this).source||Dq(this)},"toString");var nb=Xx.exports,zq=Lr,Kq=LA,Gq=nb,jq=t1,Lo=function(t,e,r,n){n||(n={});var a=n.enumerable,A=n.name!==void 0?n.name:e;if(zq(r)&&Gq(r,A,n),n.global)a?t[e]=r:jq(e,r);else{try{n.unsafe?t[e]&&(a=!0):delete t[e]}catch{}a?t[e]=r:Kq.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},ab={},Wq=Math.ceil,Xq=Math.floor,qq=Math.trunc||function(e){var r=+e;return(r>0?Xq:Wq)(r)},Yq=qq,vf=function(t){var e=+t;return e!==e||e===0?0:Yq(e)},Jq=vf,Zq=Math.max,eY=Math.min,Ab=function(t,e){var r=Jq(t);return r<0?Zq(r+e,0):eY(r,e)},tY=vf,rY=Math.min,Qs=function(t){return t>0?rY(tY(t),9007199254740991):0},nY=Qs,wf=function(t){return nY(t.length)},aY=uc,AY=Ab,iY=wf,ib=function(t){return function(e,r,n){var a=aY(e),A=iY(a),o=AY(n,A),s;if(t&&r!=r){for(;A>o;)if(s=a[o++],s!=s)return!0}else for(;A>o;o++)if((t||o in a)&&a[o]===r)return t||o||0;return!t&&-1}},ob={includes:ib(!0),indexOf:ib(!1)},oY=$r,x1=oA,sY=uc,lY=ob.indexOf,cY=p1,sb=oY([].push),lb=function(t,e){var r=sY(t),n=0,a=[],A;for(A in r)!x1(cY,A)&&x1(r,A)&&sb(a,A);for(;e.length>n;)x1(r,A=e[n++])&&(~lY(a,A)||sb(a,A));return a},b1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],uY=lb,hY=b1,fY=hY.concat("length","prototype");ab.f=Object.getOwnPropertyNames||function(e){return uY(e,fY)};var cb={};cb.f=Object.getOwnPropertySymbols;var dY=No,gY=$r,pY=ab,mY=cb,yY=On,vY=gY([].concat),wY=dY("Reflect","ownKeys")||function(e){var r=pY.f(yY(e)),n=mY.f;return n?vY(r,n(e)):r},ub=oA,BY=wY,xY=Ls,bY=LA,CY=function(t,e,r){for(var n=BY(e),a=bY.f,A=xY.f,o=0;o<n.length;o++){var s=n[o];!ub(t,s)&&!(r&&ub(r,s))&&a(t,s,A(e,s))}},EY=Vr,_Y=Lr,FY=/#|\.prototype\./,dc=function(t,e){var r=kY[SY(t)];return r==NY?!0:r==TY?!1:_Y(e)?EY(e):!!e},SY=dc.normalize=function(t){return String(t).replace(FY,".").toLowerCase()},kY=dc.data={},TY=dc.NATIVE="N",NY=dc.POLYFILL="P",hb=dc,C1=An,LY=Ls.f,UY=hc,IY=Lo,DY=t1,QY=CY,OY=hb,Jn=function(t,e){var r=t.target,n=t.global,a=t.stat,A,o,s,l,c,u;if(n?o=C1:a?o=C1[r]||DY(r,{}):o=(C1[r]||{}).prototype,o)for(s in e){if(c=e[s],t.dontCallGetSet?(u=LY(o,s),l=u&&u.value):l=o[s],A=OY(n?s:r+(a?".":"#")+s,t.forced),!A&&l!==void 0){if(typeof c==typeof l)continue;QY(c,l)}(t.sham||l&&l.sham)&&UY(c,"sham",!0),IY(o,s,c,t)}},PY=ko,gc=typeof process<"u"&&PY(process)=="process",MY=$r,RY=ri,HY=function(t,e,r){try{return MY(RY(Object.getOwnPropertyDescriptor(t,e)[r]))}catch{}},VY=Lr,$Y=String,zY=TypeError,KY=function(t){if(typeof t=="object"||VY(t))return t;throw zY("Can't set "+$Y(t)+" as a prototype")},GY=HY,jY=On,WY=KY,fb=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,e={},r;try{r=GY(Object.prototype,"__proto__","set"),r(e,[]),t=e instanceof Array}catch{}return function(a,A){return jY(a),WY(A),t?r(a,A):a.__proto__=A,a}}():void 0),XY=LA.f,qY=oA,YY=dn,db=YY("toStringTag"),E1=function(t,e,r){t&&!r&&(t=t.prototype),t&&!qY(t,db)&&XY(t,db,{configurable:!0,value:e})},gb=nb,JY=LA,ZY=function(t,e,r){return r.get&&gb(r.get,e,{getter:!0}),r.set&&gb(r.set,e,{setter:!0}),JY.f(t,e,r)},eJ=No,tJ=ZY,rJ=dn,nJ=TA,pb=rJ("species"),aJ=function(t){var e=eJ(t);nJ&&e&&!e[pb]&&tJ(e,pb,{configurable:!0,get:function(){return this}})},AJ=Af,iJ=TypeError,oJ=function(t,e){if(AJ(e,t))return t;throw iJ("Incorrect invocation")},sJ=dn,lJ=sJ("toStringTag"),mb={};mb[lJ]="z";var cJ=String(mb)==="[object z]",uJ=cJ,hJ=Lr,Bf=ko,fJ=dn,dJ=fJ("toStringTag"),gJ=Object,pJ=Bf(function(){return arguments}())=="Arguments",mJ=function(t,e){try{return t[e]}catch{}},_1=uJ?Bf:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=mJ(e=gJ(t),dJ))=="string"?r:pJ?Bf(e):(n=Bf(e))=="Object"&&hJ(e.callee)?"Arguments":n},yJ=$r,vJ=Vr,yb=Lr,wJ=_1,BJ=No,xJ=d1,vb=function(){},bJ=[],wb=BJ("Reflect","construct"),F1=/^\s*(?:class|function)\b/,CJ=yJ(F1.exec),EJ=!F1.exec(vb),pc=function(e){if(!yb(e))return!1;try{return wb(vb,bJ,e),!0}catch{return!1}},Bb=function(e){if(!yb(e))return!1;switch(wJ(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return EJ||!!CJ(F1,xJ(e))}catch{return!0}};Bb.sham=!0;var _J=!wb||vJ(function(){var t;return pc(pc.call)||!pc(Object)||!pc(function(){t=!0})||t})?Bb:pc,FJ=_J,SJ=lf,kJ=TypeError,TJ=function(t){if(FJ(t))return t;throw kJ(SJ(t)+" is not a constructor")},xb=On,NJ=TJ,LJ=To,UJ=dn,IJ=UJ("species"),bb=function(t,e){var r=xb(t).constructor,n;return r===void 0||LJ(n=xb(r)[IJ])?e:NJ(n)},DJ=rf,Cb=Function.prototype,Eb=Cb.apply,_b=Cb.call,S1=typeof Reflect=="object"&&Reflect.apply||(DJ?_b.bind(Eb):function(){return _b.apply(Eb,arguments)}),QJ=ko,OJ=$r,mc=function(t){if(QJ(t)==="Function")return OJ(t)},Fb=mc,PJ=ri,MJ=rf,RJ=Fb(Fb.bind),k1=function(t,e){return PJ(t),e===void 0?t:MJ?RJ(t,e):function(){return t.apply(e,arguments)}},HJ=No,Sb=HJ("document","documentElement"),VJ=$r,$J=VJ([].slice),zJ=TypeError,KJ=function(t,e){if(t<e)throw zJ("Not enough arguments");return t},GJ=of,kb=/(?:ipad|iphone|ipod).*applewebkit/i.test(GJ),xa=An,jJ=S1,WJ=k1,Tb=Lr,XJ=oA,Nb=Vr,Lb=Sb,qJ=$J,Ub=uf,YJ=KJ,JJ=kb,ZJ=gc,T1=xa.setImmediate,N1=xa.clearImmediate,eZ=xa.process,L1=xa.Dispatch,tZ=xa.Function,Ib=xa.MessageChannel,rZ=xa.String,U1=0,yc={},Db="onreadystatechange",vc,Uo,I1,D1;Nb(function(){vc=xa.location});var Q1=function(t){if(XJ(yc,t)){var e=yc[t];delete yc[t],e()}},O1=function(t){return function(){Q1(t)}},Qb=function(t){Q1(t.data)},Ob=function(t){xa.postMessage(rZ(t),vc.protocol+"//"+vc.host)};(!T1||!N1)&&(T1=function(e){YJ(arguments.length,1);var r=Tb(e)?e:tZ(e),n=qJ(arguments,1);return yc[++U1]=function(){jJ(r,void 0,n)},Uo(U1),U1},N1=function(e){delete yc[e]},ZJ?Uo=function(t){eZ.nextTick(O1(t))}:L1&&L1.now?Uo=function(t){L1.now(O1(t))}:Ib&&!JJ?(I1=new Ib,D1=I1.port2,I1.port1.onmessage=Qb,Uo=WJ(D1.postMessage,D1)):xa.addEventListener&&Tb(xa.postMessage)&&!xa.importScripts&&vc&&vc.protocol!=="file:"&&!Nb(Ob)?(Uo=Ob,xa.addEventListener("message",Qb,!1)):Db in Ub("script")?Uo=function(t){Lb.appendChild(Ub("script"))[Db]=function(){Lb.removeChild(this),Q1(t)}}:Uo=function(t){setTimeout(O1(t),0)});var Pb={set:T1,clear:N1},Mb=function(){this.head=null,this.tail=null};Mb.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t){var e=this.head=t.next;return e===null&&(this.tail=null),t.item}}};var Rb=Mb,nZ=of,aZ=/ipad|iphone|ipod/i.test(nZ)&&typeof Pebble<"u",AZ=of,iZ=/web0s(?!.*chrome)/i.test(AZ),Io=An,Hb=k1,oZ=Ls.f,P1=Pb.set,sZ=Rb,lZ=kb,cZ=aZ,uZ=iZ,M1=gc,Vb=Io.MutationObserver||Io.WebKitMutationObserver,$b=Io.document,zb=Io.process,xf=Io.Promise,Kb=oZ(Io,"queueMicrotask"),R1=Kb&&Kb.value,Os,H1,V1,bf,Gb;if(!R1){var Cf=new sZ,Ef=function(){var t,e;for(M1&&(t=zb.domain)&&t.exit();e=Cf.get();)try{e()}catch(r){throw Cf.head&&Os(),r}t&&t.enter()};!lZ&&!M1&&!uZ&&Vb&&$b?(H1=!0,V1=$b.createTextNode(""),new Vb(Ef).observe(V1,{characterData:!0}),Os=function(){V1.data=H1=!H1}):!cZ&&xf&&xf.resolve?(bf=xf.resolve(void 0),bf.constructor=xf,Gb=Hb(bf.then,bf),Os=function(){Gb(Ef)}):M1?Os=function(){zb.nextTick(Ef)}:(P1=Hb(P1,Io),Os=function(){P1(Ef)}),R1=function(t){Cf.head||Os(),Cf.add(t)}}var hZ=R1,fZ=function(t,e){try{arguments.length==1?console.error(t):console.error(t,e)}catch{}},$1=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},dZ=An,_f=dZ.Promise,jb=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",gZ=jb,pZ=gc,mZ=!gZ&&!pZ&&typeof window=="object"&&typeof document=="object",yZ=An,wc=_f,vZ=Lr,wZ=hb,BZ=d1,xZ=dn,bZ=mZ,CZ=jb,z1=Yg;wc&&wc.prototype;var EZ=xZ("species"),K1=!1,Wb=vZ(yZ.PromiseRejectionEvent),_Z=wZ("Promise",function(){var t=BZ(wc),e=t!==String(wc);if(!e&&z1===66)return!0;if(!z1||z1<51||!/native code/.test(t)){var r=new wc(function(A){A(1)}),n=function(A){A(function(){},function(){})},a=r.constructor={};if(a[EZ]=n,K1=r.then(function(){})instanceof n,!K1)return!0}return!e&&(bZ||CZ)&&!Wb}),Bc={CONSTRUCTOR:_Z,REJECTION_EVENT:Wb,SUBCLASSING:K1},Ps={},Xb=ri,FZ=TypeError,SZ=function(t){var e,r;this.promise=new t(function(n,a){if(e!==void 0||r!==void 0)throw FZ("Bad Promise constructor");e=n,r=a}),this.resolve=Xb(e),this.reject=Xb(r)};Ps.f=function(t){return new SZ(t)};var kZ=Jn,Ff=gc,Hi=An,Ms=_n,qb=Lo,Yb=fb,TZ=E1,NZ=aJ,LZ=ri,Sf=Lr,UZ=ti,IZ=oJ,DZ=bb,Jb=Pb.set,G1=hZ,QZ=fZ,OZ=$1,PZ=Rb,Zb=pf,kf=_f,j1=Bc,e5=Ps,Tf="Promise",t5=j1.CONSTRUCTOR,MZ=j1.REJECTION_EVENT,RZ=j1.SUBCLASSING,W1=Zb.getterFor(Tf),HZ=Zb.set,Rs=kf&&kf.prototype,Do=kf,Nf=Rs,r5=Hi.TypeError,X1=Hi.document,q1=Hi.process,Y1=e5.f,VZ=Y1,$Z=!!(X1&&X1.createEvent&&Hi.dispatchEvent),n5="unhandledrejection",zZ="rejectionhandled",a5=0,A5=1,KZ=2,J1=1,i5=2,Lf,o5,GZ,s5,l5=function(t){var e;return UZ(t)&&Sf(e=t.then)?e:!1},c5=function(t,e){var r=e.value,n=e.state==A5,a=n?t.ok:t.fail,A=t.resolve,o=t.reject,s=t.domain,l,c,u;try{a?(n||(e.rejection===i5&&WZ(e),e.rejection=J1),a===!0?l=r:(s&&s.enter(),l=a(r),s&&(s.exit(),u=!0)),l===t.promise?o(r5("Promise-chain cycle")):(c=l5(l))?Ms(c,l,A,o):A(l)):o(r)}catch(p){s&&!u&&s.exit(),o(p)}},u5=function(t,e){t.notified||(t.notified=!0,G1(function(){for(var r=t.reactions,n;n=r.get();)c5(n,t);t.notified=!1,e&&!t.rejection&&jZ(t)}))},h5=function(t,e,r){var n,a;$Z?(n=X1.createEvent("Event"),n.promise=e,n.reason=r,n.initEvent(t,!1,!0),Hi.dispatchEvent(n)):n={promise:e,reason:r},!MZ&&(a=Hi["on"+t])?a(n):t===n5&&QZ("Unhandled promise rejection",r)},jZ=function(t){Ms(Jb,Hi,function(){var e=t.facade,r=t.value,n=f5(t),a;if(n&&(a=OZ(function(){Ff?q1.emit("unhandledRejection",r,e):h5(n5,e,r)}),t.rejection=Ff||f5(t)?i5:J1,a.error))throw a.value})},f5=function(t){return t.rejection!==J1&&!t.parent},WZ=function(t){Ms(Jb,Hi,function(){var e=t.facade;Ff?q1.emit("rejectionHandled",e):h5(zZ,e,t.value)})},Hs=function(t,e,r){return function(n){t(e,n,r)}},Vs=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=KZ,u5(t,!0))},Z1=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw r5("Promise can't be resolved itself");var n=l5(e);n?G1(function(){var a={done:!1};try{Ms(n,e,Hs(Z1,a,t),Hs(Vs,a,t))}catch(A){Vs(a,A,t)}}):(t.value=e,t.state=A5,u5(t,!1))}catch(a){Vs({done:!1},a,t)}}};if(t5&&(Do=function(e){IZ(this,Nf),LZ(e),Ms(Lf,this);var r=W1(this);try{e(Hs(Z1,r),Hs(Vs,r))}catch(n){Vs(r,n)}},Nf=Do.prototype,Lf=function(e){HZ(this,{type:Tf,done:!1,notified:!1,parent:!1,reactions:new PZ,rejection:!1,state:a5,value:void 0})},Lf.prototype=qb(Nf,"then",function(e,r){var n=W1(this),a=Y1(DZ(this,Do));return n.parent=!0,a.ok=Sf(e)?e:!0,a.fail=Sf(r)&&r,a.domain=Ff?q1.domain:void 0,n.state==a5?n.reactions.add(a):G1(function(){c5(a,n)}),a.promise}),o5=function(){var t=new Lf,e=W1(t);this.promise=t,this.resolve=Hs(Z1,e),this.reject=Hs(Vs,e)},e5.f=Y1=function(t){return t===Do||t===GZ?new o5(t):VZ(t)},Sf(kf)&&Rs!==Object.prototype)){s5=Rs.then,RZ||qb(Rs,"then",function(e,r){var n=this;return new Do(function(a,A){Ms(s5,n,a,A)}).then(e,r)},{unsafe:!0});try{delete Rs.constructor}catch{}Yb&&Yb(Rs,Nf)}kZ({global:!0,constructor:!0,wrap:!0,forced:t5},{Promise:Do}),TZ(Do,Tf,!1),NZ(Tf);var xc={},XZ=dn,qZ=xc,YZ=XZ("iterator"),JZ=Array.prototype,ZZ=function(t){return t!==void 0&&(qZ.Array===t||JZ[YZ]===t)},eee=_1,d5=Us,tee=To,ree=xc,nee=dn,aee=nee("iterator"),g5=function(t){if(!tee(t))return d5(t,aee)||d5(t,"@@iterator")||ree[eee(t)]},Aee=_n,iee=ri,oee=On,see=lf,lee=g5,cee=TypeError,uee=function(t,e){var r=arguments.length<2?lee(t):e;if(iee(r))return oee(Aee(r,t));throw cee(see(t)+" is not iterable")},hee=_n,p5=On,fee=Us,dee=function(t,e,r){var n,a;p5(t);try{if(n=fee(t,"return"),!n){if(e==="throw")throw r;return r}n=hee(n,t)}catch(A){a=!0,n=A}if(e==="throw")throw r;if(a)throw n;return p5(n),r},gee=k1,pee=_n,mee=On,yee=lf,vee=ZZ,wee=wf,m5=Af,Bee=uee,xee=g5,y5=dee,bee=TypeError,Uf=function(t,e){this.stopped=t,this.result=e},v5=Uf.prototype,w5=function(t,e,r){var n=r&&r.that,a=!!(r&&r.AS_ENTRIES),A=!!(r&&r.IS_RECORD),o=!!(r&&r.IS_ITERATOR),s=!!(r&&r.INTERRUPTED),l=gee(e,n),c,u,p,h,d,w,f,m=function(F){return c&&y5(c,"normal",F),new Uf(!0,F)},y=function(F){return a?(mee(F),s?l(F[0],F[1],m):l(F[0],F[1])):s?l(F,m):l(F)};if(A)c=t.iterator;else if(o)c=t;else{if(u=xee(t),!u)throw bee(yee(t)+" is not iterable");if(vee(u)){for(p=0,h=wee(t);h>p;p++)if(d=y(t[p]),d&&m5(v5,d))return d;return new Uf(!1)}c=Bee(t,u)}for(w=A?t.next:c.next;!(f=pee(w,c)).done;){try{d=y(f.value)}catch(F){y5(c,"throw",F)}if(typeof d=="object"&&d&&m5(v5,d))return d}return new Uf(!1)},Cee=dn,B5=Cee("iterator"),x5=!1;try{var Eee=0,b5={next:function(){return{done:!!Eee++}},return:function(){x5=!0}};b5[B5]=function(){return this},Array.from(b5,function(){throw 2})}catch{}var _ee=function(t,e){if(!e&&!x5)return!1;var r=!1;try{var n={};n[B5]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch{}return r},Fee=_f,See=_ee,kee=Bc.CONSTRUCTOR,C5=kee||!See(function(t){Fee.all(t).then(void 0,function(){})}),Tee=Jn,Nee=_n,Lee=ri,Uee=Ps,Iee=$1,Dee=w5,Qee=C5;Tee({target:"Promise",stat:!0,forced:Qee},{all:function(e){var r=this,n=Uee.f(r),a=n.resolve,A=n.reject,o=Iee(function(){var s=Lee(r.resolve),l=[],c=0,u=1;Dee(e,function(p){var h=c++,d=!1;u++,Nee(s,r,p).then(function(w){d||(d=!0,l[h]=w,--u||a(l))},A)}),--u||a(l)});return o.error&&A(o.value),n.promise}});var Oee=Jn,Pee=Bc.CONSTRUCTOR,ep=_f,Mee=No,Ree=Lr,Hee=Lo,E5=ep&&ep.prototype;if(Oee({target:"Promise",proto:!0,forced:Pee,real:!0},{catch:function(t){return this.then(void 0,t)}}),Ree(ep)){var _5=Mee("Promise").prototype.catch;E5.catch!==_5&&Hee(E5,"catch",_5,{unsafe:!0})}var Vee=Jn,$ee=_n,zee=ri,Kee=Ps,Gee=$1,jee=w5,Wee=C5;Vee({target:"Promise",stat:!0,forced:Wee},{race:function(e){var r=this,n=Kee.f(r),a=n.reject,A=Gee(function(){var o=zee(r.resolve);jee(e,function(s){$ee(o,r,s).then(n.resolve,a)})});return A.error&&a(A.value),n.promise}});var Xee=Jn,qee=_n,Yee=Ps,Jee=Bc.CONSTRUCTOR;Xee({target:"Promise",stat:!0,forced:Jee},{reject:function(e){var r=Yee.f(this);return qee(r.reject,void 0,e),r.promise}});var Zee=On,ete=ti,tte=Ps,rte=function(t,e){if(Zee(t),ete(e)&&e.constructor===t)return e;var r=tte.f(t),n=r.resolve;return n(e),r.promise},nte=Jn,ate=No,Ate=Bc.CONSTRUCTOR,ite=rte;ate("Promise"),nte({target:"Promise",stat:!0,forced:Ate},{resolve:function(e){return ite(this,e)}});function F5(t,e,r,n,a,A,o){try{var s=t[A](o),l=s.value}catch(c){r(c);return}s.done?e(l):Promise.resolve(l).then(n,a)}function ni(t){return function(){var e=this,r=arguments;return new Promise(function(n,a){var A=t.apply(e,r);function o(l){F5(A,n,a,o,s,"next",l)}function s(l){F5(A,n,a,o,s,"throw",l)}o(void 0)})}}var ote=_1,ste=String,IA=function(t){if(ote(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ste(t)},lte=On,S5=function(){var t=lte(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},tp=Vr,cte=An,rp=cte.RegExp,np=tp(function(){var t=rp("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),ute=np||tp(function(){return!rp("a","y").sticky}),hte=np||tp(function(){var t=rp("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),k5={BROKEN_CARET:hte,MISSED_STICKY:ute,UNSUPPORTED_Y:np},T5={},fte=lb,dte=b1,gte=Object.keys||function(e){return fte(e,dte)},pte=TA,mte=jx,yte=LA,vte=On,wte=uc,Bte=gte;T5.f=pte&&!mte?Object.defineProperties:function(e,r){vte(e);for(var n=wte(r),a=Bte(r),A=a.length,o=0,s;A>o;)yte.f(e,s=a[o++],n[s]);return e};var xte=On,bte=T5,N5=b1,Cte=p1,Ete=Sb,_te=uf,Fte=g1,L5=">",U5="<",ap="prototype",Ap="script",I5=Fte("IE_PROTO"),ip=function(){},D5=function(t){return U5+Ap+L5+t+U5+"/"+Ap+L5},Q5=function(t){t.write(D5("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ste=function(){var t=_te("iframe"),e="java"+Ap+":",r;return t.style.display="none",Ete.appendChild(t),t.src=String(e),r=t.contentWindow.document,r.open(),r.write(D5("document.F=Object")),r.close(),r.F},If,Df=function(){try{If=new ActiveXObject("htmlfile")}catch{}Df=typeof document<"u"?document.domain&&If?Q5(If):Ste():Q5(If);for(var t=N5.length;t--;)delete Df[ap][N5[t]];return Df()};Cte[I5]=!0;var op=Object.create||function(e,r){var n;return e!==null?(ip[ap]=xte(e),n=new ip,ip[ap]=null,n[I5]=e):n=Df(),r===void 0?n:bte.f(n,r)},kte=Vr,Tte=An,Nte=Tte.RegExp,Lte=kte(function(){var t=Nte(".","s");return!(t.dotAll&&t.exec(`
396
- `)&&t.flags==="s")}),Ute=Vr,Ite=An,Dte=Ite.RegExp,Qte=Ute(function(){var t=Dte("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),$s=_n,Qf=$r,Ote=IA,Pte=S5,Mte=k5,Rte=n1,Hte=op,Vte=pf.get,$te=Lte,zte=Qte,Kte=Rte("native-string-replace",String.prototype.replace),Of=RegExp.prototype.exec,sp=Of,Gte=Qf("".charAt),jte=Qf("".indexOf),Wte=Qf("".replace),lp=Qf("".slice),cp=function(){var t=/a/,e=/b*/g;return $s(Of,t,"a"),$s(Of,e,"a"),t.lastIndex!==0||e.lastIndex!==0}(),O5=Mte.BROKEN_CARET,up=/()??/.exec("")[1]!==void 0,Xte=cp||up||O5||$te||zte;Xte&&(sp=function(e){var r=this,n=Vte(r),a=Ote(e),A=n.raw,o,s,l,c,u,p,h;if(A)return A.lastIndex=r.lastIndex,o=$s(sp,A,a),r.lastIndex=A.lastIndex,o;var d=n.groups,w=O5&&r.sticky,f=$s(Pte,r),m=r.source,y=0,F=a;if(w&&(f=Wte(f,"y",""),jte(f,"g")===-1&&(f+="g"),F=lp(a,r.lastIndex),r.lastIndex>0&&(!r.multiline||r.multiline&&Gte(a,r.lastIndex-1)!==`
397
- `)&&(m="(?: "+m+")",F=" "+F,y++),s=new RegExp("^(?:"+m+")",f)),up&&(s=new RegExp("^"+m+"$(?!\\s)",f)),cp&&(l=r.lastIndex),c=$s(Of,w?s:r,F),w?c?(c.input=lp(c.input,y),c[0]=lp(c[0],y),c.index=r.lastIndex,r.lastIndex+=c[0].length):r.lastIndex=0:cp&&c&&(r.lastIndex=r.global?c.index+c[0].length:l),up&&c&&c.length>1&&$s(Kte,c[0],s,function(){for(u=1;u<arguments.length-2;u++)arguments[u]===void 0&&(c[u]=void 0)}),c&&d)for(c.groups=p=Hte(null),u=0;u<d.length;u++)h=d[u],p[h[0]]=c[h[1]];return c});var Pf=sp,qte=Jn,P5=Pf;qte({target:"RegExp",proto:!0,forced:/./.exec!==P5},{exec:P5});var M5=mc,R5=Lo,Yte=Pf,H5=Vr,V5=dn,Jte=hc,Zte=V5("species"),hp=RegExp.prototype,fp=function(t,e,r,n){var a=V5(t),A=!H5(function(){var c={};return c[a]=function(){return 7},""[t](c)!=7}),o=A&&!H5(function(){var c=!1,u=/a/;return t==="split"&&(u={},u.constructor={},u.constructor[Zte]=function(){return u},u.flags="",u[a]=/./[a]),u.exec=function(){return c=!0,null},u[a](""),!c});if(!A||!o||r){var s=M5(/./[a]),l=e(a,""[t],function(c,u,p,h,d){var w=M5(c),f=u.exec;return f===Yte||f===hp.exec?A&&!d?{done:!0,value:s(u,p,h)}:{done:!0,value:w(p,u,h)}:{done:!1}});R5(String.prototype,t,l[0]),R5(hp,a,l[1])}n&&Jte(hp[a],"sham",!0)},dp=$r,ere=vf,tre=IA,rre=NA,nre=dp("".charAt),$5=dp("".charCodeAt),are=dp("".slice),z5=function(t){return function(e,r){var n=tre(rre(e)),a=ere(r),A=n.length,o,s;return a<0||a>=A?t?"":void 0:(o=$5(n,a),o<55296||o>56319||a+1===A||(s=$5(n,a+1))<56320||s>57343?t?nre(n,a):o:t?are(n,a,a+2):(o-55296<<10)+(s-56320)+65536)}},Are={codeAt:z5(!1),charAt:z5(!0)},ire=Are.charAt,gp=function(t,e,r){return e+(r?ire(t,e).length:1)},K5=_n,ore=On,sre=Lr,lre=ko,cre=Pf,ure=TypeError,pp=function(t,e){var r=t.exec;if(sre(r)){var n=K5(r,t,e);return n!==null&&ore(n),n}if(lre(t)==="RegExp")return K5(cre,t,e);throw ure("RegExp#exec called on incompatible receiver")},hre=_n,fre=fp,dre=On,gre=To,pre=Qs,mp=IA,mre=NA,yre=Us,vre=gp,G5=pp;fre("match",function(t,e,r){return[function(a){var A=mre(this),o=gre(a)?void 0:yre(a,t);return o?hre(o,a,A):new RegExp(a)[t](mp(A))},function(n){var a=dre(this),A=mp(n),o=r(e,a,A);if(o.done)return o.value;if(!a.global)return G5(a,A);var s=a.unicode;a.lastIndex=0;for(var l=[],c=0,u;(u=G5(a,A))!==null;){var p=mp(u[0]);l[c]=p,p===""&&(a.lastIndex=vre(A,pre(a.lastIndex),s)),c++}return c===0?null:l}]});var yp=$r,wre=cf,Bre=Math.floor,vp=yp("".charAt),xre=yp("".replace),wp=yp("".slice),bre=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Cre=/\$([$&'`]|\d{1,2})/g,Ere=function(t,e,r,n,a,A){var o=r+t.length,s=n.length,l=Cre;return a!==void 0&&(a=wre(a),l=bre),xre(A,l,function(c,u){var p;switch(vp(u,0)){case"$":return"$";case"&":return t;case"`":return wp(e,0,r);case"'":return wp(e,o);case"<":p=a[wp(u,1,-1)];break;default:var h=+u;if(h===0)return c;if(h>s){var d=Bre(h/10);return d===0?c:d<=s?n[d-1]===void 0?vp(u,1):n[d-1]+vp(u,1):c}p=n[h-1]}return p===void 0?"":p})},_re=S1,j5=_n,Mf=$r,Fre=fp,Sre=Vr,kre=On,Tre=Lr,Nre=To,Lre=vf,Ure=Qs,zs=IA,Ire=NA,Dre=gp,Qre=Us,Ore=Ere,Pre=pp,Mre=dn,Bp=Mre("replace"),Rre=Math.max,Hre=Math.min,Vre=Mf([].concat),xp=Mf([].push),W5=Mf("".indexOf),X5=Mf("".slice),$re=function(t){return t===void 0?t:String(t)},zre=function(){return"a".replace(/./,"$0")==="$0"}(),q5=function(){return/./[Bp]?/./[Bp]("a","$0")==="":!1}(),Kre=!Sre(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"});Fre("replace",function(t,e,r){var n=q5?"$":"$0";return[function(A,o){var s=Ire(this),l=Nre(A)?void 0:Qre(A,Bp);return l?j5(l,A,s,o):j5(e,zs(s),A,o)},function(a,A){var o=kre(this),s=zs(a);if(typeof A=="string"&&W5(A,n)===-1&&W5(A,"$<")===-1){var l=r(e,o,s,A);if(l.done)return l.value}var c=Tre(A);c||(A=zs(A));var u=o.global;if(u){var p=o.unicode;o.lastIndex=0}for(var h=[];;){var d=Pre(o,s);if(d===null||(xp(h,d),!u))break;var w=zs(d[0]);w===""&&(o.lastIndex=Dre(s,Ure(o.lastIndex),p))}for(var f="",m=0,y=0;y<h.length;y++){d=h[y];for(var F=zs(d[0]),N=Rre(Hre(Lre(d.index),s.length),0),D=[],H=1;H<d.length;H++)xp(D,$re(d[H]));var R=d.groups;if(c){var U=Vre([F],D,N,s);R!==void 0&&xp(U,R);var I=zs(_re(A,void 0,U))}else I=Ore(F,s,N,D,R,A);N>=m&&(f+=X5(s,m,N)+I,m=N+F.length)}return f+X5(s,m)}]},!Kre||!zre||q5);var Gre=ti,jre=ko,Wre=dn,Xre=Wre("match"),Y5=function(t){var e;return Gre(t)&&((e=t[Xre])!==void 0?!!e:jre(t)=="RegExp")},qre=Y5,Yre=TypeError,bp=function(t){if(qre(t))throw Yre("The method doesn't accept regular expressions");return t},Jre=dn,Zre=Jre("match"),Cp=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[Zre]=!1,"/./"[t](e)}catch{}}return!1},ene=Jn,J5=mc,tne=Ls.f,rne=Qs,Z5=IA,nne=bp,ane=NA,Ane=Cp,eC=J5("".startsWith),ine=J5("".slice),one=Math.min,tC=Ane("startsWith"),sne=!tC&&!!function(){var t=tne(String.prototype,"startsWith");return t&&!t.writable}();ene({target:"String",proto:!0,forced:!sne&&!tC},{startsWith:function(e){var r=Z5(ane(this));nne(e);var n=rne(one(arguments.length>1?arguments[1]:void 0,r.length)),a=Z5(e);return eC?eC(r,a,n):ine(r,n,n+a.length)===a}});var lne=dn,cne=op,une=LA.f,Ep=lne("unscopables"),_p=Array.prototype;_p[Ep]==null&&une(_p,Ep,{configurable:!0,value:cne(null)});var hne=function(t){_p[Ep][t]=!0},fne=Vr,dne=!fne(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),gne=oA,pne=Lr,mne=cf,yne=g1,vne=dne,rC=yne("IE_PROTO"),Fp=Object,wne=Fp.prototype,nC=vne?Fp.getPrototypeOf:function(t){var e=mne(t);if(gne(e,rC))return e[rC];var r=e.constructor;return pne(r)&&e instanceof r?r.prototype:e instanceof Fp?wne:null},Bne=Vr,xne=Lr,bne=ti,aC=nC,Cne=Lo,Ene=dn,Sp=Ene("iterator"),AC=!1,Qo,kp,Tp;[].keys&&(Tp=[].keys(),"next"in Tp?(kp=aC(aC(Tp)),kp!==Object.prototype&&(Qo=kp)):AC=!0);var _ne=!bne(Qo)||Bne(function(){var t={};return Qo[Sp].call(t)!==t});_ne&&(Qo={}),xne(Qo[Sp])||Cne(Qo,Sp,function(){return this});var iC={IteratorPrototype:Qo,BUGGY_SAFARI_ITERATORS:AC},Fne=iC.IteratorPrototype,Sne=op,kne=af,Tne=E1,Nne=xc,Lne=function(){return this},Une=function(t,e,r,n){var a=e+" Iterator";return t.prototype=Sne(Fne,{next:kne(+!n,r)}),Tne(t,a,!1),Nne[a]=Lne,t},Ine=Jn,Dne=_n,oC=ff,Qne=Lr,One=Une,sC=nC,lC=fb,Pne=E1,Mne=hc,Np=Lo,Rne=dn,Hne=xc,cC=iC,Vne=oC.PROPER,$ne=oC.CONFIGURABLE,uC=cC.IteratorPrototype,Rf=cC.BUGGY_SAFARI_ITERATORS,bc=Rne("iterator"),hC="keys",Cc="values",fC="entries",zne=function(){return this},Kne=function(t,e,r,n,a,A,o){One(r,e,n);var s=function(y){if(y===a&&h)return h;if(!Rf&&y in u)return u[y];switch(y){case hC:return function(){return new r(this,y)};case Cc:return function(){return new r(this,y)};case fC:return function(){return new r(this,y)}}return function(){return new r(this)}},l=e+" Iterator",c=!1,u=t.prototype,p=u[bc]||u["@@iterator"]||a&&u[a],h=!Rf&&p||s(a),d=e=="Array"&&u.entries||p,w,f,m;if(d&&(w=sC(d.call(new t)),w!==Object.prototype&&w.next&&(sC(w)!==uC&&(lC?lC(w,uC):Qne(w[bc])||Np(w,bc,zne)),Pne(w,l,!0))),Vne&&a==Cc&&p&&p.name!==Cc&&($ne?Mne(u,"name",Cc):(c=!0,h=function(){return Dne(p,this)})),a)if(f={values:s(Cc),keys:A?h:s(hC),entries:s(fC)},o)for(m in f)(Rf||c||!(m in u))&&Np(u,m,f[m]);else Ine({target:e,proto:!0,forced:Rf||c},f);return u[bc]!==h&&Np(u,bc,h,{name:a}),Hne[e]=h,f},Gne=function(t,e){return{value:t,done:e}},jne=uc,Lp=hne,dC=xc,gC=pf,Wne=LA.f,Xne=Kne,Hf=Gne,qne=TA,pC="Array Iterator",Yne=gC.set,Jne=gC.getterFor(pC),Zne=Xne(Array,"Array",function(t,e){Yne(this,{type:pC,target:jne(t),index:0,kind:e})},function(){var t=Jne(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,Hf(void 0,!0)):r=="keys"?Hf(n,!1):r=="values"?Hf(e[n],!1):Hf([n,e[n]],!1)},"values"),mC=dC.Arguments=dC.Array;if(Lp("keys"),Lp("values"),Lp("entries"),qne&&mC.name!=="values")try{Wne(mC,"name",{value:"values"})}catch{}var eae={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},tae=uf,Up=tae("span").classList,yC=Up&&Up.constructor&&Up.constructor.prototype,rae=yC===Object.prototype?void 0:yC,vC=An,wC=eae,nae=rae,Ec=Zne,Ip=hc,BC=dn,Dp=BC("iterator"),xC=BC("toStringTag"),Qp=Ec.values,bC=function(t,e){if(t){if(t[Dp]!==Qp)try{Ip(t,Dp,Qp)}catch{t[Dp]=Qp}if(t[xC]||Ip(t,xC,e),wC[e]){for(var r in Ec)if(t[r]!==Ec[r])try{Ip(t,r,Ec[r])}catch{t[r]=Ec[r]}}}};for(var Op in wC)bC(vC[Op]&&vC[Op].prototype,Op);bC(nae,"DOMTokenList");function aae(t,e){if(Xt(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Xt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Aae(t){var e=aae(t,"string");return Xt(e)==="symbol"?e:String(e)}function Pp(t,e,r){return e=Aae(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var iae=ri,oae=cf,sae=xx,lae=wf,cae=TypeError,CC=function(t){return function(e,r,n,a){iae(r);var A=oae(e),o=sae(A),s=lae(A),l=t?s-1:0,c=t?-1:1;if(n<2)for(;;){if(l in o){a=o[l],l+=c;break}if(l+=c,t?l<0:s<=l)throw cae("Reduce of empty array with no initial value")}for(;t?l>=0:s>l;l+=c)l in o&&(a=r(a,o[l],l,A));return a}},uae={left:CC(!1),right:CC(!0)},hae=Vr,EC=function(t,e){var r=[][t];return!!r&&hae(function(){r.call(null,e||function(){return 1},1)})},fae=Jn,dae=uae.left,gae=EC,_C=Yg,pae=gc,mae=!pae&&_C>79&&_C<83,yae=mae||!gae("reduce");fae({target:"Array",proto:!0,forced:yae},{reduce:function(e){var r=arguments.length;return dae(this,e,r,r>1?arguments[1]:void 0)}});var vae=Jn,FC=mc,wae=Ls.f,Bae=Qs,SC=IA,xae=bp,bae=NA,Cae=Cp,kC=FC("".endsWith),Eae=FC("".slice),_ae=Math.min,TC=Cae("endsWith"),Fae=!TC&&!!function(){var t=wae(String.prototype,"endsWith");return t&&!t.writable}();vae({target:"String",proto:!0,forced:!Fae&&!TC},{endsWith:function(e){var r=SC(bae(this));xae(e);var n=arguments.length>1?arguments[1]:void 0,a=r.length,A=n===void 0?a:_ae(Bae(n),a),o=SC(e);return kC?kC(r,o,A):Eae(r,A-o.length,A)===o}});var Sae=A1,kae=LA,Tae=af,Nae=function(t,e,r){var n=Sae(e);n in t?kae.f(t,n,Tae(0,r)):t[n]=r},NC=Ab,Lae=wf,Uae=Nae,Iae=Array,Dae=Math.max,Qae=function(t,e,r){for(var n=Lae(t),a=NC(e,n),A=NC(r===void 0?n:r,n),o=Iae(Dae(A-a,0)),s=0;a<A;a++,s++)Uae(o,s,t[a]);return o.length=s,o},Oae=S1,_c=_n,Mp=$r,Pae=fp,Mae=On,Rae=To,Hae=Y5,LC=NA,Vae=bb,$ae=gp,zae=Qs,Rp=IA,Kae=Us,UC=Qae,IC=pp,Gae=Pf,jae=k5,Wae=Vr,Ks=jae.UNSUPPORTED_Y,DC=4294967295,Xae=Math.min,QC=[].push,qae=Mp(/./.exec),Gs=Mp(QC),Fc=Mp("".slice),Yae=!Wae(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return r.length!==2||r[0]!=="a"||r[1]!=="b"});Pae("split",function(t,e,r){var n;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?n=function(a,A){var o=Rp(LC(this)),s=A===void 0?DC:A>>>0;if(s===0)return[];if(a===void 0)return[o];if(!Hae(a))return _c(e,o,a,s);for(var l=[],c=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(a.sticky?"y":""),u=0,p=new RegExp(a.source,c+"g"),h,d,w;(h=_c(Gae,p,o))&&(d=p.lastIndex,!(d>u&&(Gs(l,Fc(o,u,h.index)),h.length>1&&h.index<o.length&&Oae(QC,l,UC(h,1)),w=h[0].length,u=d,l.length>=s)));)p.lastIndex===h.index&&p.lastIndex++;return u===o.length?(w||!qae(p,""))&&Gs(l,""):Gs(l,Fc(o,u)),l.length>s?UC(l,0,s):l}:"0".split(void 0,0).length?n=function(a,A){return a===void 0&&A===0?[]:_c(e,this,a,A)}:n=e,[function(A,o){var s=LC(this),l=Rae(A)?void 0:Kae(A,t);return l?_c(l,A,s,o):_c(n,Rp(s),A,o)},function(a,A){var o=Mae(this),s=Rp(a),l=r(n,o,s,A,n!==e);if(l.done)return l.value;var c=Vae(o,RegExp),u=o.unicode,p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(Ks?"g":"y"),h=new c(Ks?"^(?:"+o.source+")":o,p),d=A===void 0?DC:A>>>0;if(d===0)return[];if(s.length===0)return IC(h,s)===null?[s]:[];for(var w=0,f=0,m=[];f<s.length;){h.lastIndex=Ks?0:f;var y=IC(h,Ks?Fc(s,f):s),F;if(y===null||(F=Xae(zae(h.lastIndex+(Ks?f:0)),s.length))===w)f=$ae(s,f,u);else{if(Gs(m,Fc(s,w,f)),m.length===d)return m;for(var N=1;N<=y.length-1;N++)if(Gs(m,y[N]),m.length===d)return m;f=w=F}}return Gs(m,Fc(s,w)),m}]},!Yae,Ks);var Vf={exports:{}},Sc={exports:{}};(function(){var t,e,r,n,a,A;typeof performance<"u"&&performance!==null&&performance.now?Sc.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(Sc.exports=function(){return(t()-a)/1e6},e=process.hrtime,t=function(){var o;return o=e(),o[0]*1e9+o[1]},n=t(),A=process.uptime()*1e9,a=n-A):Date.now?(Sc.exports=function(){return Date.now()-r},r=Date.now()):(Sc.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(cc);for(var Jae=Sc.exports,Zae=Jae,ai=typeof window>"u"?cc:window,$f=["moz","webkit"],js="AnimationFrame",Ws=ai["request"+js],kc=ai["cancel"+js]||ai["cancelRequest"+js],Tc=0;!Ws&&Tc<$f.length;Tc++)Ws=ai[$f[Tc]+"Request"+js],kc=ai[$f[Tc]+"Cancel"+js]||ai[$f[Tc]+"CancelRequest"+js];if(!Ws||!kc){var Hp=0,OC=0,Oo=[],eAe=1e3/60;Ws=function(t){if(Oo.length===0){var e=Zae(),r=Math.max(0,eAe-(e-Hp));Hp=r+e,setTimeout(function(){var n=Oo.slice(0);Oo.length=0;for(var a=0;a<n.length;a++)if(!n[a].cancelled)try{n[a].callback(Hp)}catch(A){setTimeout(function(){throw A},0)}},Math.round(r))}return Oo.push({handle:++OC,callback:t,cancelled:!1}),OC},kc=function(t){for(var e=0;e<Oo.length;e++)Oo[e].handle===t&&(Oo[e].cancelled=!0)}}Vf.exports=function(t){return Ws.call(ai,t)},Vf.exports.cancel=function(){kc.apply(ai,arguments)},Vf.exports.polyfill=function(t){t||(t=ai),t.requestAnimationFrame=Ws,t.cancelAnimationFrame=kc};var tAe=Vf.exports;const Vp=gx(tAe);var PC=`
398
- \v\f\r                 \u2028\u2029\uFEFF`,rAe=$r,nAe=NA,aAe=IA,$p=PC,MC=rAe("".replace),AAe=RegExp("^["+$p+"]+"),iAe=RegExp("(^|[^"+$p+"])["+$p+"]+$"),zp=function(t){return function(e){var r=aAe(nAe(e));return t&1&&(r=MC(r,AAe,"")),t&2&&(r=MC(r,iAe,"$1")),r}},oAe={start:zp(1),end:zp(2),trim:zp(3)},sAe=ff.PROPER,lAe=Vr,RC=PC,HC="​…᠎",cAe=function(t){return lAe(function(){return!!RC[t]()||HC[t]()!==HC||sAe&&RC[t].name!==t})},uAe=Jn,hAe=oAe.trim,fAe=cAe;uAe({target:"String",proto:!0,forced:fAe("trim")},{trim:function(){return hAe(this)}});var dAe=function(t){this.ok=!1,this.alpha=1,t.charAt(0)=="#"&&(t=t.substr(1,6)),t=t.replace(/ /g,""),t=t.toLowerCase();var e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",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"};t=e[t]||t;for(var r=[{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(l){return[parseInt(l[1]),parseInt(l[2]),parseInt(l[3]),parseFloat(l[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(l){return[parseInt(l[1]),parseInt(l[2]),parseInt(l[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(l){return[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(l){return[parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16),parseInt(l[3]+l[3],16)]}}],n=0;n<r.length;n++){var a=r[n].re,A=r[n].process,o=a.exec(t);if(o){var s=A(o);this.r=s[0],this.g=s[1],this.b=s[2],s.length>3&&(this.alpha=s[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 l=this.r.toString(16),c=this.g.toString(16),u=this.b.toString(16);return l.length==1&&(l="0"+l),c.length==1&&(c="0"+c),u.length==1&&(u="0"+u),"#"+l+c+u},this.getHelpXML=function(){for(var l=new Array,c=0;c<r.length;c++)for(var u=r[c].example,p=0;p<u.length;p++)l[l.length]=u[p];for(var h in e)l[l.length]=h;var d=document.createElement("ul");d.setAttribute("id","rgbcolor-examples");for(var c=0;c<l.length;c++)try{var w=document.createElement("li"),f=new RGBColor(l[c]),m=document.createElement("div");m.style.cssText="margin: 3px; border: 1px solid black; background:"+f.toHex()+"; color:"+f.toHex(),m.appendChild(document.createTextNode("test"));var y=document.createTextNode(" "+l[c]+" -> "+f.toRGB()+" -> "+f.toHex());w.appendChild(m),w.appendChild(y),d.appendChild(w)}catch{}return d}};const Kp=gx(dAe);var gAe=Jn,pAe=mc,mAe=ob.indexOf,yAe=EC,Gp=pAe([].indexOf),VC=!!Gp&&1/Gp([1],1,-0)<0,vAe=VC||!yAe("indexOf");gAe({target:"Array",proto:!0,forced:vAe},{indexOf:function(e){var r=arguments.length>1?arguments[1]:void 0;return VC?Gp(this,e,r)||0:mAe(this,e,r)}});var wAe=Jn,BAe=$r,xAe=bp,bAe=NA,$C=IA,CAe=Cp,EAe=BAe("".indexOf);wAe({target:"String",proto:!0,forced:!CAe("includes")},{includes:function(e){return!!~EAe($C(bAe(this)),$C(xAe(e)),arguments.length>1?arguments[1]:void 0)}});var _Ae=ko,FAe=Array.isArray||function(e){return _Ae(e)=="Array"},SAe=Jn,kAe=$r,TAe=FAe,NAe=kAe([].reverse),zC=[1,2];SAe({target:"Array",proto:!0,forced:String(zC)===String(zC.reverse())},{reverse:function(){return TAe(this)&&(this.length=this.length),NAe(this)}});/*! *****************************************************************************
399
- Copyright (c) Microsoft Corporation.
400
-
401
- Permission to use, copy, modify, and/or distribute this software for any
402
- purpose with or without fee is hereby granted.
403
-
404
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
405
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
406
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
407
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
408
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
409
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
410
- PERFORMANCE OF THIS SOFTWARE.
411
- ***************************************************************************** */var KC=function(t,e){return(KC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])})(t,e)};function GC(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}KC(t,e),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function LAe(t){var e="";Array.isArray(t)||(t=[t]);for(var r=0;r<t.length;r++){var n=t[r];if(n.type===je.CLOSE_PATH)e+="z";else if(n.type===je.HORIZ_LINE_TO)e+=(n.relative?"h":"H")+n.x;else if(n.type===je.VERT_LINE_TO)e+=(n.relative?"v":"V")+n.y;else if(n.type===je.MOVE_TO)e+=(n.relative?"m":"M")+n.x+" "+n.y;else if(n.type===je.LINE_TO)e+=(n.relative?"l":"L")+n.x+" "+n.y;else if(n.type===je.CURVE_TO)e+=(n.relative?"c":"C")+n.x1+" "+n.y1+" "+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===je.SMOOTH_CURVE_TO)e+=(n.relative?"s":"S")+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===je.QUAD_TO)e+=(n.relative?"q":"Q")+n.x1+" "+n.y1+" "+n.x+" "+n.y;else if(n.type===je.SMOOTH_QUAD_TO)e+=(n.relative?"t":"T")+n.x+" "+n.y;else{if(n.type!==je.ARC)throw new Error('Unexpected command type "'+n.type+'" at index '+r+".");e+=(n.relative?"a":"A")+n.rX+" "+n.rY+" "+n.xRot+" "+ +n.lArcFlag+" "+ +n.sweepFlag+" "+n.x+" "+n.y}}return e}function jp(t,e){var r=t[0],n=t[1];return[r*Math.cos(e)-n*Math.sin(e),r*Math.sin(e)+n*Math.cos(e)]}function sA(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++)if(typeof t[r]!="number")throw new Error("assertNumbers arguments["+r+"] is not a number. "+typeof t[r]+" == typeof "+t[r]);return!0}var Vi=Math.PI;function Wp(t,e,r){t.lArcFlag=t.lArcFlag===0?0:1,t.sweepFlag=t.sweepFlag===0?0:1;var n=t.rX,a=t.rY,A=t.x,o=t.y;n=Math.abs(t.rX),a=Math.abs(t.rY);var s=jp([(e-A)/2,(r-o)/2],-t.xRot/180*Vi),l=s[0],c=s[1],u=Math.pow(l,2)/Math.pow(n,2)+Math.pow(c,2)/Math.pow(a,2);1<u&&(n*=Math.sqrt(u),a*=Math.sqrt(u)),t.rX=n,t.rY=a;var p=Math.pow(n,2)*Math.pow(c,2)+Math.pow(a,2)*Math.pow(l,2),h=(t.lArcFlag!==t.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(n,2)*Math.pow(a,2)-p)/p)),d=n*c/a*h,w=-a*l/n*h,f=jp([d,w],t.xRot/180*Vi);t.cX=f[0]+(e+A)/2,t.cY=f[1]+(r+o)/2,t.phi1=Math.atan2((c-w)/a,(l-d)/n),t.phi2=Math.atan2((-c-w)/a,(-l-d)/n),t.sweepFlag===0&&t.phi2>t.phi1&&(t.phi2-=2*Vi),t.sweepFlag===1&&t.phi2<t.phi1&&(t.phi2+=2*Vi),t.phi1*=180/Vi,t.phi2*=180/Vi}function jC(t,e,r){sA(t,e,r);var n=t*t+e*e-r*r;if(0>n)return[];if(n===0)return[[t*r/(t*t+e*e),e*r/(t*t+e*e)]];var a=Math.sqrt(n);return[[(t*r+e*a)/(t*t+e*e),(e*r-t*a)/(t*t+e*e)],[(t*r-e*a)/(t*t+e*e),(e*r+t*a)/(t*t+e*e)]]}var Yr,Ai=Math.PI/180;function WC(t,e,r){return(1-r)*t+r*e}function XC(t,e,r,n){return t+Math.cos(n/180*Vi)*e+Math.sin(n/180*Vi)*r}function qC(t,e,r,n){var a=1e-6,A=e-t,o=r-e,s=3*A+3*(n-r)-6*o,l=6*(o-A),c=3*A;return Math.abs(s)<a?[-c/l]:function(u,p,h){h===void 0&&(h=1e-6);var d=u*u/4-p;if(d<-h)return[];if(d<=h)return[-u/2];var w=Math.sqrt(d);return[-u/2-w,-u/2+w]}(l/s,c/s,a)}function YC(t,e,r,n,a){var A=1-a;return t*(A*A*A)+e*(3*A*A*a)+r*(3*A*a*a)+n*(a*a*a)}(function(t){function e(){return a(function(s,l,c){return s.relative&&(s.x1!==void 0&&(s.x1+=l),s.y1!==void 0&&(s.y1+=c),s.x2!==void 0&&(s.x2+=l),s.y2!==void 0&&(s.y2+=c),s.x!==void 0&&(s.x+=l),s.y!==void 0&&(s.y+=c),s.relative=!1),s})}function r(){var s=NaN,l=NaN,c=NaN,u=NaN;return a(function(p,h,d){return p.type&je.SMOOTH_CURVE_TO&&(p.type=je.CURVE_TO,s=isNaN(s)?h:s,l=isNaN(l)?d:l,p.x1=p.relative?h-s:2*h-s,p.y1=p.relative?d-l:2*d-l),p.type&je.CURVE_TO?(s=p.relative?h+p.x2:p.x2,l=p.relative?d+p.y2:p.y2):(s=NaN,l=NaN),p.type&je.SMOOTH_QUAD_TO&&(p.type=je.QUAD_TO,c=isNaN(c)?h:c,u=isNaN(u)?d:u,p.x1=p.relative?h-c:2*h-c,p.y1=p.relative?d-u:2*d-u),p.type&je.QUAD_TO?(c=p.relative?h+p.x1:p.x1,u=p.relative?d+p.y1:p.y1):(c=NaN,u=NaN),p})}function n(){var s=NaN,l=NaN;return a(function(c,u,p){if(c.type&je.SMOOTH_QUAD_TO&&(c.type=je.QUAD_TO,s=isNaN(s)?u:s,l=isNaN(l)?p:l,c.x1=c.relative?u-s:2*u-s,c.y1=c.relative?p-l:2*p-l),c.type&je.QUAD_TO){s=c.relative?u+c.x1:c.x1,l=c.relative?p+c.y1:c.y1;var h=c.x1,d=c.y1;c.type=je.CURVE_TO,c.x1=((c.relative?0:u)+2*h)/3,c.y1=((c.relative?0:p)+2*d)/3,c.x2=(c.x+2*h)/3,c.y2=(c.y+2*d)/3}else s=NaN,l=NaN;return c})}function a(s){var l=0,c=0,u=NaN,p=NaN;return function(h){if(isNaN(u)&&!(h.type&je.MOVE_TO))throw new Error("path must start with moveto");var d=s(h,l,c,u,p);return h.type&je.CLOSE_PATH&&(l=u,c=p),h.x!==void 0&&(l=h.relative?l+h.x:h.x),h.y!==void 0&&(c=h.relative?c+h.y:h.y),h.type&je.MOVE_TO&&(u=l,p=c),d}}function A(s,l,c,u,p,h){return sA(s,l,c,u,p,h),a(function(d,w,f,m){var y=d.x1,F=d.x2,N=d.relative&&!isNaN(m),D=d.x!==void 0?d.x:N?0:w,H=d.y!==void 0?d.y:N?0:f;function R(b){return b*b}d.type&je.HORIZ_LINE_TO&&l!==0&&(d.type=je.LINE_TO,d.y=d.relative?0:f),d.type&je.VERT_LINE_TO&&c!==0&&(d.type=je.LINE_TO,d.x=d.relative?0:w),d.x!==void 0&&(d.x=d.x*s+H*c+(N?0:p)),d.y!==void 0&&(d.y=D*l+d.y*u+(N?0:h)),d.x1!==void 0&&(d.x1=d.x1*s+d.y1*c+(N?0:p)),d.y1!==void 0&&(d.y1=y*l+d.y1*u+(N?0:h)),d.x2!==void 0&&(d.x2=d.x2*s+d.y2*c+(N?0:p)),d.y2!==void 0&&(d.y2=F*l+d.y2*u+(N?0:h));var U=s*u-l*c;if(d.xRot!==void 0&&(s!==1||l!==0||c!==0||u!==1))if(U===0)delete d.rX,delete d.rY,delete d.xRot,delete d.lArcFlag,delete d.sweepFlag,d.type=je.LINE_TO;else{var I=d.xRot*Math.PI/180,O=Math.sin(I),q=Math.cos(I),T=1/R(d.rX),L=1/R(d.rY),G=R(q)*T+R(O)*L,Y=2*O*q*(T-L),se=R(O)*T+R(q)*L,he=G*u*u-Y*l*u+se*l*l,ge=Y*(s*u+l*c)-2*(G*c*u+se*s*l),re=G*c*c-Y*s*c+se*s*s,le=(Math.atan2(ge,he-re)+Math.PI)%Math.PI/2,fe=Math.sin(le),Ue=Math.cos(le);d.rX=Math.abs(U)/Math.sqrt(he*R(Ue)+ge*fe*Ue+re*R(fe)),d.rY=Math.abs(U)/Math.sqrt(he*R(fe)-ge*fe*Ue+re*R(Ue)),d.xRot=180*le/Math.PI}return d.sweepFlag!==void 0&&0>U&&(d.sweepFlag=+!d.sweepFlag),d})}function o(){return function(s){var l={};for(var c in s)l[c]=s[c];return l}}t.ROUND=function(s){function l(c){return Math.round(c*s)/s}return s===void 0&&(s=1e13),sA(s),function(c){return c.x1!==void 0&&(c.x1=l(c.x1)),c.y1!==void 0&&(c.y1=l(c.y1)),c.x2!==void 0&&(c.x2=l(c.x2)),c.y2!==void 0&&(c.y2=l(c.y2)),c.x!==void 0&&(c.x=l(c.x)),c.y!==void 0&&(c.y=l(c.y)),c.rX!==void 0&&(c.rX=l(c.rX)),c.rY!==void 0&&(c.rY=l(c.rY)),c}},t.TO_ABS=e,t.TO_REL=function(){return a(function(s,l,c){return s.relative||(s.x1!==void 0&&(s.x1-=l),s.y1!==void 0&&(s.y1-=c),s.x2!==void 0&&(s.x2-=l),s.y2!==void 0&&(s.y2-=c),s.x!==void 0&&(s.x-=l),s.y!==void 0&&(s.y-=c),s.relative=!0),s})},t.NORMALIZE_HVZ=function(s,l,c){return s===void 0&&(s=!0),l===void 0&&(l=!0),c===void 0&&(c=!0),a(function(u,p,h,d,w){if(isNaN(d)&&!(u.type&je.MOVE_TO))throw new Error("path must start with moveto");return l&&u.type&je.HORIZ_LINE_TO&&(u.type=je.LINE_TO,u.y=u.relative?0:h),c&&u.type&je.VERT_LINE_TO&&(u.type=je.LINE_TO,u.x=u.relative?0:p),s&&u.type&je.CLOSE_PATH&&(u.type=je.LINE_TO,u.x=u.relative?d-p:d,u.y=u.relative?w-h:w),u.type&je.ARC&&(u.rX===0||u.rY===0)&&(u.type=je.LINE_TO,delete u.rX,delete u.rY,delete u.xRot,delete u.lArcFlag,delete u.sweepFlag),u})},t.NORMALIZE_ST=r,t.QT_TO_C=n,t.INFO=a,t.SANITIZE=function(s){s===void 0&&(s=0),sA(s);var l=NaN,c=NaN,u=NaN,p=NaN;return a(function(h,d,w,f,m){var y=Math.abs,F=!1,N=0,D=0;if(h.type&je.SMOOTH_CURVE_TO&&(N=isNaN(l)?0:d-l,D=isNaN(c)?0:w-c),h.type&(je.CURVE_TO|je.SMOOTH_CURVE_TO)?(l=h.relative?d+h.x2:h.x2,c=h.relative?w+h.y2:h.y2):(l=NaN,c=NaN),h.type&je.SMOOTH_QUAD_TO?(u=isNaN(u)?d:2*d-u,p=isNaN(p)?w:2*w-p):h.type&je.QUAD_TO?(u=h.relative?d+h.x1:h.x1,p=h.relative?w+h.y1:h.y2):(u=NaN,p=NaN),h.type&je.LINE_COMMANDS||h.type&je.ARC&&(h.rX===0||h.rY===0||!h.lArcFlag)||h.type&je.CURVE_TO||h.type&je.SMOOTH_CURVE_TO||h.type&je.QUAD_TO||h.type&je.SMOOTH_QUAD_TO){var H=h.x===void 0?0:h.relative?h.x:h.x-d,R=h.y===void 0?0:h.relative?h.y:h.y-w;N=isNaN(u)?h.x1===void 0?N:h.relative?h.x:h.x1-d:u-d,D=isNaN(p)?h.y1===void 0?D:h.relative?h.y:h.y1-w:p-w;var U=h.x2===void 0?0:h.relative?h.x:h.x2-d,I=h.y2===void 0?0:h.relative?h.y:h.y2-w;y(H)<=s&&y(R)<=s&&y(N)<=s&&y(D)<=s&&y(U)<=s&&y(I)<=s&&(F=!0)}return h.type&je.CLOSE_PATH&&y(d-f)<=s&&y(w-m)<=s&&(F=!0),F?[]:h})},t.MATRIX=A,t.ROTATE=function(s,l,c){l===void 0&&(l=0),c===void 0&&(c=0),sA(s,l,c);var u=Math.sin(s),p=Math.cos(s);return A(p,u,-u,p,l-l*p+c*u,c-l*u-c*p)},t.TRANSLATE=function(s,l){return l===void 0&&(l=0),sA(s,l),A(1,0,0,1,s,l)},t.SCALE=function(s,l){return l===void 0&&(l=s),sA(s,l),A(s,0,0,l,0,0)},t.SKEW_X=function(s){return sA(s),A(1,0,Math.atan(s),1,0,0)},t.SKEW_Y=function(s){return sA(s),A(1,Math.atan(s),0,1,0,0)},t.X_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),sA(s),A(-1,0,0,1,s,0)},t.Y_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),sA(s),A(1,0,0,-1,0,s)},t.A_TO_C=function(){return a(function(s,l,c){return je.ARC===s.type?function(u,p,h){var d,w,f,m;u.cX||Wp(u,p,h);for(var y=Math.min(u.phi1,u.phi2),F=Math.max(u.phi1,u.phi2)-y,N=Math.ceil(F/90),D=new Array(N),H=p,R=h,U=0;U<N;U++){var I=WC(u.phi1,u.phi2,U/N),O=WC(u.phi1,u.phi2,(U+1)/N),q=O-I,T=4/3*Math.tan(q*Ai/4),L=[Math.cos(I*Ai)-T*Math.sin(I*Ai),Math.sin(I*Ai)+T*Math.cos(I*Ai)],G=L[0],Y=L[1],se=[Math.cos(O*Ai),Math.sin(O*Ai)],he=se[0],ge=se[1],re=[he+T*Math.sin(O*Ai),ge-T*Math.cos(O*Ai)],le=re[0],fe=re[1];D[U]={relative:u.relative,type:je.CURVE_TO};var Ue=function(b,_){var B=jp([b*u.rX,_*u.rY],u.xRot),x=B[0],S=B[1];return[u.cX+x,u.cY+S]};d=Ue(G,Y),D[U].x1=d[0],D[U].y1=d[1],w=Ue(le,fe),D[U].x2=w[0],D[U].y2=w[1],f=Ue(he,ge),D[U].x=f[0],D[U].y=f[1],u.relative&&(D[U].x1-=H,D[U].y1-=R,D[U].x2-=H,D[U].y2-=R,D[U].x-=H,D[U].y-=R),H=(m=[D[U].x,D[U].y])[0],R=m[1]}return D}(s,s.relative?0:l,s.relative?0:c):s})},t.ANNOTATE_ARCS=function(){return a(function(s,l,c){return s.relative&&(l=0,c=0),je.ARC===s.type&&Wp(s,l,c),s})},t.CLONE=o,t.CALCULATE_BOUNDS=function(){var s=function(h){var d={};for(var w in h)d[w]=h[w];return d},l=e(),c=n(),u=r(),p=a(function(h,d,w){var f=u(c(l(s(h))));function m(fe){fe>p.maxX&&(p.maxX=fe),fe<p.minX&&(p.minX=fe)}function y(fe){fe>p.maxY&&(p.maxY=fe),fe<p.minY&&(p.minY=fe)}if(f.type&je.DRAWING_COMMANDS&&(m(d),y(w)),f.type&je.HORIZ_LINE_TO&&m(f.x),f.type&je.VERT_LINE_TO&&y(f.y),f.type&je.LINE_TO&&(m(f.x),y(f.y)),f.type&je.CURVE_TO){m(f.x),y(f.y);for(var F=0,N=qC(d,f.x1,f.x2,f.x);F<N.length;F++)0<(le=N[F])&&1>le&&m(YC(d,f.x1,f.x2,f.x,le));for(var D=0,H=qC(w,f.y1,f.y2,f.y);D<H.length;D++)0<(le=H[D])&&1>le&&y(YC(w,f.y1,f.y2,f.y,le))}if(f.type&je.ARC){m(f.x),y(f.y),Wp(f,d,w);for(var R=f.xRot/180*Math.PI,U=Math.cos(R)*f.rX,I=Math.sin(R)*f.rX,O=-Math.sin(R)*f.rY,q=Math.cos(R)*f.rY,T=f.phi1<f.phi2?[f.phi1,f.phi2]:-180>f.phi2?[f.phi2+360,f.phi1+360]:[f.phi2,f.phi1],L=T[0],G=T[1],Y=function(fe){var Ue=fe[0],b=fe[1],_=180*Math.atan2(b,Ue)/Math.PI;return _<L?_+360:_},se=0,he=jC(O,-U,0).map(Y);se<he.length;se++)(le=he[se])>L&&le<G&&m(XC(f.cX,U,O,le));for(var ge=0,re=jC(q,-I,0).map(Y);ge<re.length;ge++){var le;(le=re[ge])>L&&le<G&&y(XC(f.cY,I,q,le))}}return h});return p.minX=1/0,p.maxX=-1/0,p.minY=1/0,p.maxY=-1/0,p}})(Yr||(Yr={}));var lA,JC=function(){function t(){}return t.prototype.round=function(e){return this.transform(Yr.ROUND(e))},t.prototype.toAbs=function(){return this.transform(Yr.TO_ABS())},t.prototype.toRel=function(){return this.transform(Yr.TO_REL())},t.prototype.normalizeHVZ=function(e,r,n){return this.transform(Yr.NORMALIZE_HVZ(e,r,n))},t.prototype.normalizeST=function(){return this.transform(Yr.NORMALIZE_ST())},t.prototype.qtToC=function(){return this.transform(Yr.QT_TO_C())},t.prototype.aToC=function(){return this.transform(Yr.A_TO_C())},t.prototype.sanitize=function(e){return this.transform(Yr.SANITIZE(e))},t.prototype.translate=function(e,r){return this.transform(Yr.TRANSLATE(e,r))},t.prototype.scale=function(e,r){return this.transform(Yr.SCALE(e,r))},t.prototype.rotate=function(e,r,n){return this.transform(Yr.ROTATE(e,r,n))},t.prototype.matrix=function(e,r,n,a,A,o){return this.transform(Yr.MATRIX(e,r,n,a,A,o))},t.prototype.skewX=function(e){return this.transform(Yr.SKEW_X(e))},t.prototype.skewY=function(e){return this.transform(Yr.SKEW_Y(e))},t.prototype.xSymmetry=function(e){return this.transform(Yr.X_AXIS_SYMMETRY(e))},t.prototype.ySymmetry=function(e){return this.transform(Yr.Y_AXIS_SYMMETRY(e))},t.prototype.annotateArcs=function(){return this.transform(Yr.ANNOTATE_ARCS())},t}(),UAe=function(t){return t===" "||t===" "||t==="\r"||t===`
412
- `},ZC=function(t){return"0".charCodeAt(0)<=t.charCodeAt(0)&&t.charCodeAt(0)<="9".charCodeAt(0)},IAe=function(t){function e(){var r=t.call(this)||this;return r.curNumber="",r.curCommandType=-1,r.curCommandRelative=!1,r.canParseCommandOrComma=!0,r.curNumberHasExp=!1,r.curNumberHasExpDigits=!1,r.curNumberHasDecimal=!1,r.curArgs=[],r}return GC(e,t),e.prototype.finish=function(r){if(r===void 0&&(r=[]),this.parse(" ",r),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return r},e.prototype.parse=function(r,n){var a=this;n===void 0&&(n=[]);for(var A=function(p){n.push(p),a.curArgs.length=0,a.canParseCommandOrComma=!0},o=0;o<r.length;o++){var s=r[o],l=!(this.curCommandType!==je.ARC||this.curArgs.length!==3&&this.curArgs.length!==4||this.curNumber.length!==1||this.curNumber!=="0"&&this.curNumber!=="1"),c=ZC(s)&&(this.curNumber==="0"&&s==="0"||l);if(!ZC(s)||c)if(s!=="e"&&s!=="E")if(s!=="-"&&s!=="+"||!this.curNumberHasExp||this.curNumberHasExpDigits)if(s!=="."||this.curNumberHasExp||this.curNumberHasDecimal||l){if(this.curNumber&&this.curCommandType!==-1){var u=Number(this.curNumber);if(isNaN(u))throw new SyntaxError("Invalid number ending at "+o);if(this.curCommandType===je.ARC){if(this.curArgs.length===0||this.curArgs.length===1){if(0>u)throw new SyntaxError('Expected positive number, got "'+u+'" at index "'+o+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+o+'"')}this.curArgs.push(u),this.curArgs.length===DAe[this.curCommandType]&&(je.HORIZ_LINE_TO===this.curCommandType?A({type:je.HORIZ_LINE_TO,relative:this.curCommandRelative,x:u}):je.VERT_LINE_TO===this.curCommandType?A({type:je.VERT_LINE_TO,relative:this.curCommandRelative,y:u}):this.curCommandType===je.MOVE_TO||this.curCommandType===je.LINE_TO||this.curCommandType===je.SMOOTH_QUAD_TO?(A({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),je.MOVE_TO===this.curCommandType&&(this.curCommandType=je.LINE_TO)):this.curCommandType===je.CURVE_TO?A({type:je.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===je.SMOOTH_CURVE_TO?A({type:je.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===je.QUAD_TO?A({type:je.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===je.ARC&&A({type:je.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!UAe(s))if(s===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(s!=="+"&&s!=="-"&&s!==".")if(c)this.curNumber=s,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+o+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+s+'" at index '+o+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,s!=="z"&&s!=="Z")if(s==="h"||s==="H")this.curCommandType=je.HORIZ_LINE_TO,this.curCommandRelative=s==="h";else if(s==="v"||s==="V")this.curCommandType=je.VERT_LINE_TO,this.curCommandRelative=s==="v";else if(s==="m"||s==="M")this.curCommandType=je.MOVE_TO,this.curCommandRelative=s==="m";else if(s==="l"||s==="L")this.curCommandType=je.LINE_TO,this.curCommandRelative=s==="l";else if(s==="c"||s==="C")this.curCommandType=je.CURVE_TO,this.curCommandRelative=s==="c";else if(s==="s"||s==="S")this.curCommandType=je.SMOOTH_CURVE_TO,this.curCommandRelative=s==="s";else if(s==="q"||s==="Q")this.curCommandType=je.QUAD_TO,this.curCommandRelative=s==="q";else if(s==="t"||s==="T")this.curCommandType=je.SMOOTH_QUAD_TO,this.curCommandRelative=s==="t";else{if(s!=="a"&&s!=="A")throw new SyntaxError('Unexpected character "'+s+'" at index '+o+".");this.curCommandType=je.ARC,this.curCommandRelative=s==="a"}else n.push({type:je.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=s,this.curNumberHasDecimal=s==="."}else this.curNumber+=s,this.curNumberHasDecimal=!0;else this.curNumber+=s;else this.curNumber+=s,this.curNumberHasExp=!0;else this.curNumber+=s,this.curNumberHasExpDigits=this.curNumberHasExp}return n},e.prototype.transform=function(r){return Object.create(this,{parse:{value:function(n,a){a===void 0&&(a=[]);for(var A=0,o=Object.getPrototypeOf(this).parse.call(this,n);A<o.length;A++){var s=o[A],l=r(s);Array.isArray(l)?a.push.apply(a,l):a.push(l)}return a}}})},e}(JC),je=function(t){function e(r){var n=t.call(this)||this;return n.commands=typeof r=="string"?e.parse(r):r,n}return GC(e,t),e.prototype.encode=function(){return e.encode(this.commands)},e.prototype.getBounds=function(){var r=Yr.CALCULATE_BOUNDS();return this.transform(r),r},e.prototype.transform=function(r){for(var n=[],a=0,A=this.commands;a<A.length;a++){var o=r(A[a]);Array.isArray(o)?n.push.apply(n,o):n.push(o)}return this.commands=n,this},e.encode=function(r){return LAe(r)},e.parse=function(r){var n=new IAe,a=[];return n.parse(r,a),n.finish(a),a},e.CLOSE_PATH=1,e.MOVE_TO=2,e.HORIZ_LINE_TO=4,e.VERT_LINE_TO=8,e.LINE_TO=16,e.CURVE_TO=32,e.SMOOTH_CURVE_TO=64,e.QUAD_TO=128,e.SMOOTH_QUAD_TO=256,e.ARC=512,e.LINE_COMMANDS=e.LINE_TO|e.HORIZ_LINE_TO|e.VERT_LINE_TO,e.DRAWING_COMMANDS=e.HORIZ_LINE_TO|e.VERT_LINE_TO|e.LINE_TO|e.CURVE_TO|e.SMOOTH_CURVE_TO|e.QUAD_TO|e.SMOOTH_QUAD_TO|e.ARC,e}(JC),DAe=((lA={})[je.MOVE_TO]=2,lA[je.LINE_TO]=2,lA[je.HORIZ_LINE_TO]=1,lA[je.VERT_LINE_TO]=1,lA[je.CLOSE_PATH]=0,lA[je.QUAD_TO]=4,lA[je.SMOOTH_QUAD_TO]=2,lA[je.CURVE_TO]=6,lA[je.SMOOTH_CURVE_TO]=4,lA[je.ARC]=7,lA),QAe=_n,OAe=oA,PAe=Af,MAe=S5,e4=RegExp.prototype,RAe=function(t){var e=t.flags;return e===void 0&&!("flags"in e4)&&!OAe(t,"flags")&&PAe(e4,t)?QAe(MAe,t):e},HAe=ff.PROPER,VAe=Lo,$Ae=On,t4=IA,zAe=Vr,KAe=RAe,Xp="toString",GAe=RegExp.prototype,r4=GAe[Xp],jAe=zAe(function(){return r4.call({source:"a",flags:"b"})!="/a/b"}),WAe=HAe&&r4.name!=Xp;(jAe||WAe)&&VAe(RegExp.prototype,Xp,function(){var e=$Ae(this),r=t4(e.source),n=t4(KAe(e));return"/"+r+"/"+n},{unsafe:!0});function zf(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zf=function(e){return typeof e}:zf=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zf(t)}function XAe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var qAe=[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],YAe=[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 JAe(t,e,r,n,a){if(typeof t=="string"&&(t=document.getElementById(t)),!t||zf(t)!=="object"||!("getContext"in t))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var A=t.getContext("2d");try{return A.getImageData(e,r,n,a)}catch(o){throw new Error("unable to access image data: "+o)}}function ZAe(t,e,r,n,a,A){if(!(isNaN(A)||A<1)){A|=0;var o=JAe(t,e,r,n,a);o=eie(o,e,r,n,a,A),t.getContext("2d").putImageData(o,e,r)}}function eie(t,e,r,n,a,A){for(var o=t.data,s=2*A+1,l=n-1,c=a-1,u=A+1,p=u*(u+1)/2,h=new n4,d=h,w,f=1;f<s;f++)d=d.next=new n4,f===u&&(w=d);d.next=h;for(var m=null,y=null,F=0,N=0,D=qAe[A],H=YAe[A],R=0;R<a;R++){d=h;for(var U=o[N],I=o[N+1],O=o[N+2],q=o[N+3],T=0;T<u;T++)d.r=U,d.g=I,d.b=O,d.a=q,d=d.next;for(var L=0,G=0,Y=0,se=0,he=u*U,ge=u*I,re=u*O,le=u*q,fe=p*U,Ue=p*I,b=p*O,_=p*q,B=1;B<u;B++){var x=N+((l<B?l:B)<<2),S=o[x],Q=o[x+1],W=o[x+2],ue=o[x+3],Ce=u-B;fe+=(d.r=S)*Ce,Ue+=(d.g=Q)*Ce,b+=(d.b=W)*Ce,_+=(d.a=ue)*Ce,L+=S,G+=Q,Y+=W,se+=ue,d=d.next}m=h,y=w;for(var de=0;de<n;de++){var ke=_*D>>H;if(o[N+3]=ke,ke!==0){var ne=255/ke;o[N]=(fe*D>>H)*ne,o[N+1]=(Ue*D>>H)*ne,o[N+2]=(b*D>>H)*ne}else o[N]=o[N+1]=o[N+2]=0;fe-=he,Ue-=ge,b-=re,_-=le,he-=m.r,ge-=m.g,re-=m.b,le-=m.a;var Ee=de+A+1;Ee=F+(Ee<l?Ee:l)<<2,L+=m.r=o[Ee],G+=m.g=o[Ee+1],Y+=m.b=o[Ee+2],se+=m.a=o[Ee+3],fe+=L,Ue+=G,b+=Y,_+=se,m=m.next;var xe=y,te=xe.r,Pe=xe.g,rt=xe.b,Ve=xe.a;he+=te,ge+=Pe,re+=rt,le+=Ve,L-=te,G-=Pe,Y-=rt,se-=Ve,y=y.next,N+=4}F+=n}for(var We=0;We<n;We++){N=We<<2;var Ye=o[N],Je=o[N+1],ot=o[N+2],at=o[N+3],ft=u*Ye,vt=u*Je,kt=u*ot,Nt=u*at,dt=p*Ye,bt=p*Je,tt=p*ot,ir=p*at;d=h;for(var Lt=0;Lt<u;Lt++)d.r=Ye,d.g=Je,d.b=ot,d.a=at,d=d.next;for(var fr=n,Qt=0,Kt=0,Zr=0,Rt=0,_r=1;_r<=A;_r++){N=fr+We<<2;var Yt=u-_r;dt+=(d.r=Ye=o[N])*Yt,bt+=(d.g=Je=o[N+1])*Yt,tt+=(d.b=ot=o[N+2])*Yt,ir+=(d.a=at=o[N+3])*Yt,Rt+=Ye,Qt+=Je,Kt+=ot,Zr+=at,d=d.next,_r<c&&(fr+=n)}N=We,m=h,y=w;for(var on=0;on<a;on++){var _t=N<<2;o[_t+3]=at=ir*D>>H,at>0?(at=255/at,o[_t]=(dt*D>>H)*at,o[_t+1]=(bt*D>>H)*at,o[_t+2]=(tt*D>>H)*at):o[_t]=o[_t+1]=o[_t+2]=0,dt-=ft,bt-=vt,tt-=kt,ir-=Nt,ft-=m.r,vt-=m.g,kt-=m.b,Nt-=m.a,_t=We+((_t=on+u)<c?_t:c)*n<<2,dt+=Rt+=m.r=o[_t],bt+=Qt+=m.g=o[_t+1],tt+=Kt+=m.b=o[_t+2],ir+=Zr+=m.a=o[_t+3],m=m.next,ft+=Ye=y.r,vt+=Je=y.g,kt+=ot=y.b,Nt+=at=y.a,Rt-=Ye,Qt-=Je,Kt-=ot,Zr-=at,y=y.next,N+=n}}return t}var n4=function t(){XAe(this,t),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function tie(){var{DOMParser:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,createCanvas(r,n){return new OffscreenCanvas(r,n)},createImage(r){return ni(function*(){var n=yield fetch(r),a=yield n.blob(),A=yield createImageBitmap(a);return A})()}};return(typeof DOMParser<"u"||typeof t>"u")&&Reflect.deleteProperty(e,"DOMParser"),e}function rie(t){var{DOMParser:e,canvas:r,fetch:n}=t;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:n,createCanvas:r.createCanvas,createImage:r.loadImage}}var nie=Object.freeze({__proto__:null,offscreen:tie,node:rie});function Po(t){return t.replace(/(?!\u3000)\s+/gm," ")}function a4(t){return t.replace(/^[\n \t]+/,"")}function A4(t){return t.replace(/[\n \t]+$/,"")}function oa(t){var e=(t||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return e.map(parseFloat)}var aie=/^[A-Z-]+$/;function i4(t){return aie.test(t)?t.toLowerCase():t}function qp(t){var e=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(t)||[];return e[2]||e[3]||e[4]}function o4(t){if(!t.startsWith("rgb"))return t;var e=3,r=t.replace(/\d+(\.\d+)?/g,(n,a)=>e--&&a?String(Math.round(parseFloat(n))):n);return r}var Aie=/(\[[^\]]+\])/g,iie=/(#[^\s+>~.[:]+)/g,oie=/(\.[^\s+>~.[:]+)/g,sie=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,lie=/(:[\w-]+\([^)]*\))/gi,cie=/(:[^\s+>~.[:]+)/g,uie=/([^\s+>~.[:]+)/g;function Mo(t,e){var r=e.exec(t);return r?[t.replace(e," "),r.length]:[t,0]}function s4(t){var e=[0,0,0],r=t.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),n=0;return[r,n]=Mo(r,Aie),e[1]+=n,[r,n]=Mo(r,iie),e[0]+=n,[r,n]=Mo(r,oie),e[1]+=n,[r,n]=Mo(r,sie),e[2]+=n,[r,n]=Mo(r,lie),e[1]+=n,[r,n]=Mo(r,cie),e[1]+=n,r=r.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[r,n]=Mo(r,uie),e[2]+=n,e.join("")}var Ro=1e-8;function Yp(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))}function Kf(t,e){return(t[0]*e[0]+t[1]*e[1])/(Yp(t)*Yp(e))}function Jp(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Kf(t,e))}function Zp(t){return t*t*t}function em(t){return 3*t*t*(1-t)}function tm(t){return 3*t*(1-t)*(1-t)}function rm(t){return(1-t)*(1-t)*(1-t)}function nm(t){return t*t}function am(t){return 2*t*(1-t)}function Am(t){return(1-t)*(1-t)}class pt{constructor(e,r,n){this.document=e,this.name=r,this.value=n,this.isNormalizedColor=!1}static empty(e){return new pt(e,"EMPTY","")}split(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ",{document:r,name:n}=this;return Po(this.getString()).trim().split(e).map(a=>new pt(r,n,a))}hasValue(e){var{value:r}=this;return r!==null&&r!==""&&(e||r!==0)&&typeof r<"u"}isString(e){var{value:r}=this,n=typeof r=="string";return!n||!e?n:e.test(r)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case e.endsWith("px"):case/^[0-9]+$/.test(e):return!0;default:return!1}}setValue(e){return this.value=e,this}getValue(e){return typeof e>"u"||this.hasValue()?this.value:e}getNumber(e){if(!this.hasValue())return typeof e>"u"?0:parseFloat(e);var{value:r}=this,n=parseFloat(r);return this.isString(/%$/)&&(n/=100),n}getString(e){return typeof e>"u"||this.hasValue()?typeof this.value>"u"?"":String(this.value):String(e)}getColor(e){var r=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,r=o4(r),this.value=r),r}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var[n,a]=typeof e=="boolean"?[void 0,e]:[e],{viewPort:A}=this.document.screen;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 this.getNumber()*15;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(/%$/)&&a):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*A.computeSize(n);default:{var o=this.getNumber();return r&&o<1?o*A.computeSize(n):o}}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var e=this.getString(),r=/#([^)'"]+)/.exec(e);return r&&(r=r[1]),r||(r=e),this.document.definitions[r]}getFillStyleDefinition(e,r){var n=this.getDefinition();if(!n)return null;if(typeof n.createGradient=="function")return n.createGradient(this.document.ctx,e,r);if(typeof n.createPattern=="function"){if(n.getHrefAttribute().hasValue()){var a=n.getAttribute("patternTransform");n=n.getHrefAttribute().getDefinition(),a.hasValue()&&n.getAttribute("patternTransform",!0).setValue(a.value)}return n.createPattern(this.document.ctx,e,r)}return null}getTextBaseline(){return this.hasValue()?pt.textBaselineMapping[this.getString()]:null}addOpacity(e){for(var r=this.getColor(),n=r.length,a=0,A=0;A<n&&(r[A]===","&&a++,a!==3);A++);if(e.hasValue()&&this.isString()&&a!==3){var o=new Kp(r);o.ok&&(o.alpha=e.getNumber(),r=o.toRGBA())}return new pt(this.document,this.name,r)}}pt.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};class l4{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(e,r){this.viewPorts.push({width:e,height:r})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:e}=this;return e[e.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(e){return typeof e=="number"?e:e==="x"?this.width:e==="y"?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class Ur{constructor(e,r){this.x=e,this.y=r}static parse(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,[n=r,a=r]=oa(e);return new Ur(n,a)}static parseScale(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,[n=r,a=n]=oa(e);return new Ur(n,a)}static parsePath(e){for(var r=oa(e),n=r.length,a=[],A=0;A<n;A+=2)a.push(new Ur(r[A],r[A+1]));return a}angleTo(e){return Math.atan2(e.y-this.y,e.x-this.x)}applyTransform(e){var{x:r,y:n}=this,a=r*e[0]+n*e[2]+e[4],A=r*e[1]+n*e[3]+e[5];this.x=a,this.y=A}}class c4{constructor(e){this.screen=e,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:e,onClick:r,onMouseMove:n}=this,a=e.ctx.canvas;a.onclick=r,a.onmousemove=n,this.working=!0}}stop(){if(this.working){var e=this.screen.ctx.canvas;this.working=!1,e.onclick=null,e.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:e,events:r,eventElements:n}=this,{style:a}=e.ctx.canvas;a&&(a.cursor=""),r.forEach((A,o)=>{for(var{run:s}=A,l=n[o];l;)s(l),l=l.parent}),this.events=[],this.eventElements=[]}}checkPath(e,r){if(!(!this.working||!r)){var{events:n,eventElements:a}=this;n.forEach((A,o)=>{var{x:s,y:l}=A;!a[o]&&r.isPointInPath&&r.isPointInPath(s,l)&&(a[o]=e)})}}checkBoundingBox(e,r){if(!(!this.working||!r)){var{events:n,eventElements:a}=this;n.forEach((A,o)=>{var{x:s,y:l}=A;!a[o]&&r.isPointInBox(s,l)&&(a[o]=e)})}}mapXY(e,r){for(var{window:n,ctx:a}=this.screen,A=new Ur(e,r),o=a.canvas;o;)A.x-=o.offsetLeft,A.y-=o.offsetTop,o=o.offsetParent;return n.scrollX&&(A.x+=n.scrollX),n.scrollY&&(A.y+=n.scrollY),A}onClick(e){var{x:r,y:n}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onclick",x:r,y:n,run(a){a.onClick&&a.onClick()}})}onMouseMove(e){var{x:r,y:n}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onmousemove",x:r,y:n,run(a){a.onMouseMove&&a.onMouseMove()}})}}var u4=typeof window<"u"?window:null,h4=typeof fetch<"u"?fetch.bind(void 0):null;class Nc{constructor(e){var{fetch:r=h4,window:n=u4}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new l4,this.mouse=new c4(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=n,this.fetch=r}wait(e){this.waits.push(e)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var e=this.waits.every(r=>r());return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}setDefaults(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4}setViewBox(e){var{document:r,ctx:n,aspectRatio:a,width:A,desiredWidth:o,height:s,desiredHeight:l,minX:c=0,minY:u=0,refX:p,refY:h,clip:d=!1,clipX:w=0,clipY:f=0}=e,m=Po(a).replace(/^defer\s/,""),[y,F]=m.split(" "),N=y||"xMidYMid",D=F||"meet",H=A/o,R=s/l,U=Math.min(H,R),I=Math.max(H,R),O=o,q=l;D==="meet"&&(O*=U,q*=U),D==="slice"&&(O*=I,q*=I);var T=new pt(r,"refX",p),L=new pt(r,"refY",h),G=T.hasValue()&&L.hasValue();if(G&&n.translate(-U*T.getPixels("x"),-U*L.getPixels("y")),d){var Y=U*w,se=U*f;n.beginPath(),n.moveTo(Y,se),n.lineTo(A,se),n.lineTo(A,s),n.lineTo(Y,s),n.closePath(),n.clip()}if(!G){var he=D==="meet"&&U===R,ge=D==="slice"&&I===R,re=D==="meet"&&U===H,le=D==="slice"&&I===H;N.startsWith("xMid")&&(he||ge)&&n.translate(A/2-O/2,0),N.endsWith("YMid")&&(re||le)&&n.translate(0,s/2-q/2),N.startsWith("xMax")&&(he||ge)&&n.translate(A-O,0),N.endsWith("YMax")&&(re||le)&&n.translate(0,s-q)}switch(!0){case N==="none":n.scale(H,R);break;case D==="meet":n.scale(U,U);break;case D==="slice":n.scale(I,I);break}n.translate(-c,-u)}start(e){var{enableRedraw:r=!1,ignoreMouse:n=!1,ignoreAnimation:a=!1,ignoreDimensions:A=!1,ignoreClear:o=!1,forceRedraw:s,scaleWidth:l,scaleHeight:c,offsetX:u,offsetY:p}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{FRAMERATE:h,mouse:d}=this,w=1e3/h;if(this.frameDuration=w,this.readyPromise=new Promise(N=>{this.resolveReady=N}),this.isReady()&&this.render(e,A,o,l,c,u,p),!!r){var f=Date.now(),m=f,y=0,F=()=>{f=Date.now(),y=f-m,y>=w&&(m=f-y%w,this.shouldUpdate(a,s)&&(this.render(e,A,o,l,c,u,p),d.runEvents())),this.intervalId=Vp(F)};n||d.start(),this.intervalId=Vp(F)}}stop(){this.intervalId&&(Vp.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(e,r){if(!e){var{frameDuration:n}=this,a=this.animations.reduce((A,o)=>o.update(n)||A,!1);if(a)return!0}return!!(typeof r=="function"&&r()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(e,r,n,a,A,o,s){var{CLIENT_WIDTH:l,CLIENT_HEIGHT:c,viewPort:u,ctx:p,isFirstRender:h}=this,d=p.canvas;u.clear(),d.width&&d.height?u.setCurrent(d.width,d.height):u.setCurrent(l,c);var w=e.getStyle("width"),f=e.getStyle("height");!r&&(h||typeof a!="number"&&typeof A!="number")&&(w.hasValue()&&(d.width=w.getPixels("x"),d.style&&(d.style.width="".concat(d.width,"px"))),f.hasValue()&&(d.height=f.getPixels("y"),d.style&&(d.style.height="".concat(d.height,"px"))));var m=d.clientWidth||d.width,y=d.clientHeight||d.height;if(r&&w.hasValue()&&f.hasValue()&&(m=w.getPixels("x"),y=f.getPixels("y")),u.setCurrent(m,y),typeof o=="number"&&e.getAttribute("x",!0).setValue(o),typeof s=="number"&&e.getAttribute("y",!0).setValue(s),typeof a=="number"||typeof A=="number"){var F=oa(e.getAttribute("viewBox").getString()),N=0,D=0;if(typeof a=="number"){var H=e.getStyle("width");H.hasValue()?N=H.getPixels("x")/a:isNaN(F[2])||(N=F[2]/a)}if(typeof A=="number"){var R=e.getStyle("height");R.hasValue()?D=R.getPixels("y")/A:isNaN(F[3])||(D=F[3]/A)}N||(N=D),D||(D=N),e.getAttribute("width",!0).setValue(a),e.getAttribute("height",!0).setValue(A);var U=e.getStyle("transform",!0,!0);U.setValue("".concat(U.getString()," scale(").concat(1/N,", ").concat(1/D,")"))}n||p.clearRect(0,0,m,y),e.render(p),h&&(this.isFirstRender=!1)}}Nc.defaultWindow=u4,Nc.defaultFetch=h4;var{defaultFetch:hie}=Nc,fie=typeof DOMParser<"u"?DOMParser:null;class Gf{constructor(){var{fetch:e=hie,DOMParser:r=fie}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fetch=e,this.DOMParser=r}parse(e){var r=this;return ni(function*(){return e.startsWith("<")?r.parseFromString(e):r.load(e)})()}parseFromString(e){var r=new this.DOMParser;try{return this.checkDocument(r.parseFromString(e,"image/svg+xml"))}catch{return this.checkDocument(r.parseFromString(e,"text/xml"))}}checkDocument(e){var r=e.getElementsByTagName("parsererror")[0];if(r)throw new Error(r.textContent);return e}load(e){var r=this;return ni(function*(){var n=yield r.fetch(e),a=yield n.text();return r.parseFromString(a)})()}}class f4{constructor(e,r){this.type="translate",this.point=null,this.point=Ur.parse(r)}apply(e){var{x:r,y:n}=this.point;e.translate(r||0,n||0)}unapply(e){var{x:r,y:n}=this.point;e.translate(-1*r||0,-1*n||0)}applyToPoint(e){var{x:r,y:n}=this.point;e.applyTransform([1,0,0,1,r||0,n||0])}}class d4{constructor(e,r,n){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var a=oa(r);this.angle=new pt(e,"angle",a[0]),this.originX=n[0],this.originY=n[1],this.cx=a[1]||0,this.cy=a[2]||0}apply(e){var{cx:r,cy:n,originX:a,originY:A,angle:o}=this,s=r+a.getPixels("x"),l=n+A.getPixels("y");e.translate(s,l),e.rotate(o.getRadians()),e.translate(-s,-l)}unapply(e){var{cx:r,cy:n,originX:a,originY:A,angle:o}=this,s=r+a.getPixels("x"),l=n+A.getPixels("y");e.translate(s,l),e.rotate(-1*o.getRadians()),e.translate(-s,-l)}applyToPoint(e){var{cx:r,cy:n,angle:a}=this,A=a.getRadians();e.applyTransform([1,0,0,1,r||0,n||0]),e.applyTransform([Math.cos(A),Math.sin(A),-Math.sin(A),Math.cos(A),0,0]),e.applyTransform([1,0,0,1,-r||0,-n||0])}}class g4{constructor(e,r,n){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var a=Ur.parseScale(r);(a.x===0||a.y===0)&&(a.x=Ro,a.y=Ro),this.scale=a,this.originX=n[0],this.originY=n[1]}apply(e){var{scale:{x:r,y:n},originX:a,originY:A}=this,o=a.getPixels("x"),s=A.getPixels("y");e.translate(o,s),e.scale(r,n||r),e.translate(-o,-s)}unapply(e){var{scale:{x:r,y:n},originX:a,originY:A}=this,o=a.getPixels("x"),s=A.getPixels("y");e.translate(o,s),e.scale(1/r,1/n||r),e.translate(-o,-s)}applyToPoint(e){var{x:r,y:n}=this.scale;e.applyTransform([r||0,0,0,n||0,0,0])}}class im{constructor(e,r,n){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=oa(r),this.originX=n[0],this.originY=n[1]}apply(e){var{originX:r,originY:n,matrix:a}=this,A=r.getPixels("x"),o=n.getPixels("y");e.translate(A,o),e.transform(a[0],a[1],a[2],a[3],a[4],a[5]),e.translate(-A,-o)}unapply(e){var{originX:r,originY:n,matrix:a}=this,A=a[0],o=a[2],s=a[4],l=a[1],c=a[3],u=a[5],p=0,h=0,d=1,w=1/(A*(c*d-u*h)-o*(l*d-u*p)+s*(l*h-c*p)),f=r.getPixels("x"),m=n.getPixels("y");e.translate(f,m),e.transform(w*(c*d-u*h),w*(u*p-l*d),w*(s*h-o*d),w*(A*d-s*p),w*(o*u-s*c),w*(s*l-A*u)),e.translate(-f,-m)}applyToPoint(e){e.applyTransform(this.matrix)}}class om extends im{constructor(e,r,n){super(e,r,n),this.type="skew",this.angle=null,this.angle=new pt(e,"angle",r)}}class p4 extends om{constructor(e,r,n){super(e,r,n),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class m4 extends om{constructor(e,r,n){super(e,r,n),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function die(t){return Po(t).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function gie(t){var[e,r]=t.split("(");return[e.trim(),r.trim().replace(")","")]}class $i{constructor(e,r,n){this.document=e,this.transforms=[];var a=die(r);a.forEach(A=>{if(A!=="none"){var[o,s]=gie(A),l=$i.transformTypes[o];typeof l<"u"&&this.transforms.push(new l(this.document,s,n))}})}static fromElement(e,r){var n=r.getStyle("transform",!1,!0),[a,A=a]=r.getStyle("transform-origin",!1,!0).split(),o=[a,A];return n.hasValue()?new $i(e,n.getString(),o):null}apply(e){for(var{transforms:r}=this,n=r.length,a=0;a<n;a++)r[a].apply(e)}unapply(e){for(var{transforms:r}=this,n=r.length,a=n-1;a>=0;a--)r[a].unapply(e)}applyToPoint(e){for(var{transforms:r}=this,n=r.length,a=0;a<n;a++)r[a].applyToPoint(e)}}$i.transformTypes={translate:f4,rotate:d4,scale:g4,matrix:im,skewX:p4,skewY:m4};class pr{constructor(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=e,this.node=r,this.captureTextNodes=n,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!(!r||r.nodeType!==1)){if(Array.from(r.attributes).forEach(s=>{var l=i4(s.nodeName);this.attributes[l]=new pt(e,l,s.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var a=this.getAttribute("style").getString().split(";").map(s=>s.trim());a.forEach(s=>{if(s){var[l,c]=s.split(":").map(u=>u.trim());this.styles[l]=new pt(e,l,c)}})}var{definitions:A}=e,o=this.getAttribute("id");o.hasValue()&&(A[o.getString()]||(A[o.getString()]=this)),Array.from(r.childNodes).forEach(s=>{if(s.nodeType===1)this.addChild(s);else if(n&&(s.nodeType===3||s.nodeType===4)){var l=e.createTextNode(s);l.getText().length>0&&this.addChild(l)}})}}getAttribute(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=this.attributes[e];if(!n&&r){var a=new pt(this.document,e,"");return this.attributes[e]=a,a}return n||pt.empty(this.document)}getHrefAttribute(){for(var e in this.attributes)if(e==="href"||e.endsWith(":href"))return this.attributes[e];return pt.empty(this.document)}getStyle(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=this.styles[e];if(a)return a;var A=this.getAttribute(e);if(A!=null&&A.hasValue())return this.styles[e]=A,A;if(!n){var{parent:o}=this;if(o){var s=o.getStyle(e);if(s!=null&&s.hasValue())return s}}if(r){var l=new pt(this.document,e,"");return this.styles[e]=l,l}return a||pt.empty(this.document)}render(e){if(!(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")){if(e.save(),this.getStyle("mask").hasValue()){var r=this.getStyle("mask").getDefinition();r&&(this.applyEffects(e),r.apply(e,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var n=this.getStyle("filter").getDefinition();n&&(this.applyEffects(e),n.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}setContext(e){}applyEffects(e){var r=$i.fromElement(this.document,this);r&&r.apply(e);var n=this.getStyle("clip-path",!1,!0);if(n.hasValue()){var a=n.getDefinition();a&&a.apply(e)}}clearContext(e){}renderChildren(e){this.children.forEach(r=>{r.render(e)})}addChild(e){var r=e instanceof pr?e:this.document.createElement(e);r.parent=this,pr.ignoreChildTypes.includes(r.type)||this.children.push(r)}matchesSelector(e){var r,{node:n}=this;if(typeof n.matches=="function")return n.matches(e);var a=(r=n.getAttribute)===null||r===void 0?void 0:r.call(n,"class");return!a||a===""?!1:a.split(" ").some(A=>".".concat(A)===e)}addStylesFromStyleDefinition(){var{styles:e,stylesSpecificity:r}=this.document;for(var n in e)if(!n.startsWith("@")&&this.matchesSelector(n)){var a=e[n],A=r[n];if(a)for(var o in a){var s=this.stylesSpecificity[o];typeof s>"u"&&(s="000"),A>=s&&(this.styles[o]=a[o],this.stylesSpecificity[o]=A)}}}removeStyles(e,r){var n=r.reduce((a,A)=>{var o=e.getStyle(A);if(!o.hasValue())return a;var s=o.getString();return o.setValue(""),[...a,[A,s]]},[]);return n}restoreStyles(e,r){r.forEach(n=>{var[a,A]=n;e.getStyle(a,!0).setValue(A)})}isFirstChild(){var e;return((e=this.parent)===null||e===void 0?void 0:e.children.indexOf(this))===0}}pr.ignoreChildTypes=["title"];class y4 extends pr{constructor(e,r,n){super(e,r,n)}}function pie(t){var e=t.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}function mie(t){return typeof process>"u"?t:t.trim().split(",").map(pie).join(",")}function yie(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 vie(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:""}}class Pn{constructor(e,r,n,a,A,o){var s=o?typeof o=="string"?Pn.parse(o):o:{};this.fontFamily=A||s.fontFamily,this.fontSize=a||s.fontSize,this.fontStyle=e||s.fontStyle,this.fontWeight=n||s.fontWeight,this.fontVariant=r||s.fontVariant}static parse(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,n="",a="",A="",o="",s="",l=Po(e).trim().split(" "),c={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return l.forEach(u=>{switch(!0){case(!c.fontStyle&&Pn.styles.includes(u)):u!=="inherit"&&(n=u),c.fontStyle=!0;break;case(!c.fontVariant&&Pn.variants.includes(u)):u!=="inherit"&&(a=u),c.fontStyle=!0,c.fontVariant=!0;break;case(!c.fontWeight&&Pn.weights.includes(u)):u!=="inherit"&&(A=u),c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0;break;case!c.fontSize:u!=="inherit"&&([o]=u.split("/")),c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0,c.fontSize=!0;break;default:u!=="inherit"&&(s+=u)}}),new Pn(n,a,A,o,s,r)}toString(){return[yie(this.fontStyle),this.fontVariant,vie(this.fontWeight),this.fontSize,mie(this.fontFamily)].join(" ").trim()}}Pn.styles="normal|italic|oblique|inherit",Pn.variants="normal|small-caps|inherit",Pn.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class Oa{constructor(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=e,this.y1=r,this.x2=n,this.y2=a,this.addPoint(e,r),this.addPoint(n,a)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(e,r){typeof e<"u"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),typeof r<"u"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=r,this.y2=r),r<this.y1&&(this.y1=r),r>this.y2&&(this.y2=r))}addX(e){this.addPoint(e,null)}addY(e){this.addPoint(null,e)}addBoundingBox(e){if(e){var{x1:r,y1:n,x2:a,y2:A}=e;this.addPoint(r,n),this.addPoint(a,A)}}sumCubic(e,r,n,a,A){return Math.pow(1-e,3)*r+3*Math.pow(1-e,2)*e*n+3*(1-e)*Math.pow(e,2)*a+Math.pow(e,3)*A}bezierCurveAdd(e,r,n,a,A){var o=6*r-12*n+6*a,s=-3*r+9*n-9*a+3*A,l=3*n-3*r;if(s===0){if(o===0)return;var c=-l/o;0<c&&c<1&&(e?this.addX(this.sumCubic(c,r,n,a,A)):this.addY(this.sumCubic(c,r,n,a,A)));return}var u=Math.pow(o,2)-4*l*s;if(!(u<0)){var p=(-o+Math.sqrt(u))/(2*s);0<p&&p<1&&(e?this.addX(this.sumCubic(p,r,n,a,A)):this.addY(this.sumCubic(p,r,n,a,A)));var h=(-o-Math.sqrt(u))/(2*s);0<h&&h<1&&(e?this.addX(this.sumCubic(h,r,n,a,A)):this.addY(this.sumCubic(h,r,n,a,A)))}}addBezierCurve(e,r,n,a,A,o,s,l){this.addPoint(e,r),this.addPoint(s,l),this.bezierCurveAdd(!0,e,n,A,s),this.bezierCurveAdd(!1,r,a,o,l)}addQuadraticCurve(e,r,n,a,A,o){var s=e+.6666666666666666*(n-e),l=r+2/3*(a-r),c=s+1/3*(A-e),u=l+1/3*(o-r);this.addBezierCurve(e,r,s,c,l,u,A,o)}isPointInBox(e,r){var{x1:n,y1:a,x2:A,y2:o}=this;return n<=e&&e<=A&&a<=r&&r<=o}}class Tt extends je{constructor(e){super(e.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new Ur(0,0),this.control=new Ur(0,0),this.current=new Ur(0,0),this.points=[],this.angles=[]}isEnd(){var{i:e,commands:r}=this;return e>=r.length-1}next(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}getPoint(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",n=new Ur(this.command[e],this.command[r]);return this.makeAbsolute(n)}getAsControlPoint(e,r){var n=this.getPoint(e,r);return this.control=n,n}getAsCurrentPoint(e,r){var n=this.getPoint(e,r);return this.current=n,n}getReflectedControlPoint(){var e=this.previousCommand.type;if(e!==je.CURVE_TO&&e!==je.SMOOTH_CURVE_TO&&e!==je.QUAD_TO&&e!==je.SMOOTH_QUAD_TO)return this.current;var{current:{x:r,y:n},control:{x:a,y:A}}=this,o=new Ur(2*r-a,2*n-A);return o}makeAbsolute(e){if(this.command.relative){var{x:r,y:n}=this.current;e.x+=r,e.y+=n}return e}addMarker(e,r,n){var{points:a,angles:A}=this;n&&A.length>0&&!A[A.length-1]&&(A[A.length-1]=a[a.length-1].angleTo(n)),this.addMarkerAngle(e,r?r.angleTo(e):null)}addMarkerAngle(e,r){this.points.push(e),this.angles.push(r)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:e}=this,r=e.length,n=0;n<r;n++)if(!e[n]){for(var a=n+1;a<r;a++)if(e[a]){e[n]=e[a];break}}return e}}class zi extends pr{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var e=1,r=this;r;){var n=r.getStyle("opacity",!1,!0);n.hasValue(!0)&&(e*=n.getNumber()),r=r.parent}return e}setContext(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!r){var n=this.getStyle("fill"),a=this.getStyle("fill-opacity"),A=this.getStyle("stroke"),o=this.getStyle("stroke-opacity");if(n.isUrlDefinition()){var s=n.getFillStyleDefinition(this,a);s&&(e.fillStyle=s)}else if(n.hasValue()){n.getString()==="currentColor"&&n.setValue(this.getStyle("color").getColor());var l=n.getColor();l!=="inherit"&&(e.fillStyle=l==="none"?"rgba(0,0,0,0)":l)}if(a.hasValue()){var c=new pt(this.document,"fill",e.fillStyle).addOpacity(a).getColor();e.fillStyle=c}if(A.isUrlDefinition()){var u=A.getFillStyleDefinition(this,o);u&&(e.strokeStyle=u)}else if(A.hasValue()){A.getString()==="currentColor"&&A.setValue(this.getStyle("color").getColor());var p=A.getString();p!=="inherit"&&(e.strokeStyle=p==="none"?"rgba(0,0,0,0)":p)}if(o.hasValue()){var h=new pt(this.document,"stroke",e.strokeStyle).addOpacity(o).getString();e.strokeStyle=h}var d=this.getStyle("stroke-width");if(d.hasValue()){var w=d.getPixels();e.lineWidth=w||Ro}var f=this.getStyle("stroke-linecap"),m=this.getStyle("stroke-linejoin"),y=this.getStyle("stroke-miterlimit"),F=this.getStyle("stroke-dasharray"),N=this.getStyle("stroke-dashoffset");if(f.hasValue()&&(e.lineCap=f.getString()),m.hasValue()&&(e.lineJoin=m.getString()),y.hasValue()&&(e.miterLimit=y.getNumber()),F.hasValue()&&F.getString()!=="none"){var D=oa(F.getString());typeof e.setLineDash<"u"?e.setLineDash(D):typeof e.webkitLineDash<"u"?e.webkitLineDash=D:typeof e.mozDash<"u"&&!(D.length===1&&D[0]===0)&&(e.mozDash=D);var H=N.getPixels();typeof e.lineDashOffset<"u"?e.lineDashOffset=H:typeof e.webkitLineDashOffset<"u"?e.webkitLineDashOffset=H:typeof e.mozDashOffset<"u"&&(e.mozDashOffset=H)}}if(this.modifiedEmSizeStack=!1,typeof e.font<"u"){var R=this.getStyle("font"),U=this.getStyle("font-style"),I=this.getStyle("font-variant"),O=this.getStyle("font-weight"),q=this.getStyle("font-size"),T=this.getStyle("font-family"),L=new Pn(U.getString(),I.getString(),O.getString(),q.hasValue()?"".concat(q.getPixels(!0),"px"):"",T.getString(),Pn.parse(R.getString(),e.font));U.setValue(L.fontStyle),I.setValue(L.fontVariant),O.setValue(L.fontWeight),q.setValue(L.fontSize),T.setValue(L.fontFamily),e.font=L.toString(),q.isPixels()&&(this.document.emSize=q.getPixels(),this.modifiedEmSizeStack=!0)}r||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}clearContext(e){super.clearContext(e),this.modifiedEmSizeStack&&this.document.popEmSize()}}class tr extends zi{constructor(e,r,n){super(e,r,n),this.type="path",this.pathParser=null,this.pathParser=new Tt(this.getAttribute("d").getString())}path(e){var{pathParser:r}=this,n=new Oa;for(r.reset(),e&&e.beginPath();!r.isEnd();)switch(r.next().type){case Tt.MOVE_TO:this.pathM(e,n);break;case Tt.LINE_TO:this.pathL(e,n);break;case Tt.HORIZ_LINE_TO:this.pathH(e,n);break;case Tt.VERT_LINE_TO:this.pathV(e,n);break;case Tt.CURVE_TO:this.pathC(e,n);break;case Tt.SMOOTH_CURVE_TO:this.pathS(e,n);break;case Tt.QUAD_TO:this.pathQ(e,n);break;case Tt.SMOOTH_QUAD_TO:this.pathT(e,n);break;case Tt.ARC:this.pathA(e,n);break;case Tt.CLOSE_PATH:this.pathZ(e,n);break}return n}getBoundingBox(e){return this.path()}getMarkers(){var{pathParser:e}=this,r=e.getMarkerPoints(),n=e.getMarkerAngles(),a=r.map((A,o)=>[A,n[o]]);return a}renderChildren(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var r=this.getStyle("fill-rule");e.fillStyle!==""&&(r.getString("inherit")!=="inherit"?e.fill(r.getString()):e.fill()),e.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var n=this.getMarkers();if(n){var a=n.length-1,A=this.getStyle("marker-start"),o=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(A.isUrlDefinition()){var l=A.getDefinition(),[c,u]=n[0];l.render(e,c,u)}if(o.isUrlDefinition())for(var p=o.getDefinition(),h=1;h<a;h++){var[d,w]=n[h];p.render(e,d,w)}if(s.isUrlDefinition()){var f=s.getDefinition(),[m,y]=n[a];f.render(e,m,y)}}}static pathM(e){var r=e.getAsCurrentPoint();return e.start=e.current,{point:r}}pathM(e,r){var{pathParser:n}=this,{point:a}=tr.pathM(n),{x:A,y:o}=a;n.addMarker(a),r.addPoint(A,o),e&&e.moveTo(A,o)}static pathL(e){var{current:r}=e,n=e.getAsCurrentPoint();return{current:r,point:n}}pathL(e,r){var{pathParser:n}=this,{current:a,point:A}=tr.pathL(n),{x:o,y:s}=A;n.addMarker(A,a),r.addPoint(o,s),e&&e.lineTo(o,s)}static pathH(e){var{current:r,command:n}=e,a=new Ur((n.relative?r.x:0)+n.x,r.y);return e.current=a,{current:r,point:a}}pathH(e,r){var{pathParser:n}=this,{current:a,point:A}=tr.pathH(n),{x:o,y:s}=A;n.addMarker(A,a),r.addPoint(o,s),e&&e.lineTo(o,s)}static pathV(e){var{current:r,command:n}=e,a=new Ur(r.x,(n.relative?r.y:0)+n.y);return e.current=a,{current:r,point:a}}pathV(e,r){var{pathParser:n}=this,{current:a,point:A}=tr.pathV(n),{x:o,y:s}=A;n.addMarker(A,a),r.addPoint(o,s),e&&e.lineTo(o,s)}static pathC(e){var{current:r}=e,n=e.getPoint("x1","y1"),a=e.getAsControlPoint("x2","y2"),A=e.getAsCurrentPoint();return{current:r,point:n,controlPoint:a,currentPoint:A}}pathC(e,r){var{pathParser:n}=this,{current:a,point:A,controlPoint:o,currentPoint:s}=tr.pathC(n);n.addMarker(s,o,A),r.addBezierCurve(a.x,a.y,A.x,A.y,o.x,o.y,s.x,s.y),e&&e.bezierCurveTo(A.x,A.y,o.x,o.y,s.x,s.y)}static pathS(e){var{current:r}=e,n=e.getReflectedControlPoint(),a=e.getAsControlPoint("x2","y2"),A=e.getAsCurrentPoint();return{current:r,point:n,controlPoint:a,currentPoint:A}}pathS(e,r){var{pathParser:n}=this,{current:a,point:A,controlPoint:o,currentPoint:s}=tr.pathS(n);n.addMarker(s,o,A),r.addBezierCurve(a.x,a.y,A.x,A.y,o.x,o.y,s.x,s.y),e&&e.bezierCurveTo(A.x,A.y,o.x,o.y,s.x,s.y)}static pathQ(e){var{current:r}=e,n=e.getAsControlPoint("x1","y1"),a=e.getAsCurrentPoint();return{current:r,controlPoint:n,currentPoint:a}}pathQ(e,r){var{pathParser:n}=this,{current:a,controlPoint:A,currentPoint:o}=tr.pathQ(n);n.addMarker(o,A,A),r.addQuadraticCurve(a.x,a.y,A.x,A.y,o.x,o.y),e&&e.quadraticCurveTo(A.x,A.y,o.x,o.y)}static pathT(e){var{current:r}=e,n=e.getReflectedControlPoint();e.control=n;var a=e.getAsCurrentPoint();return{current:r,controlPoint:n,currentPoint:a}}pathT(e,r){var{pathParser:n}=this,{current:a,controlPoint:A,currentPoint:o}=tr.pathT(n);n.addMarker(o,A,A),r.addQuadraticCurve(a.x,a.y,A.x,A.y,o.x,o.y),e&&e.quadraticCurveTo(A.x,A.y,o.x,o.y)}static pathA(e){var{current:r,command:n}=e,{rX:a,rY:A,xRot:o,lArcFlag:s,sweepFlag:l}=n,c=o*(Math.PI/180),u=e.getAsCurrentPoint(),p=new Ur(Math.cos(c)*(r.x-u.x)/2+Math.sin(c)*(r.y-u.y)/2,-Math.sin(c)*(r.x-u.x)/2+Math.cos(c)*(r.y-u.y)/2),h=Math.pow(p.x,2)/Math.pow(a,2)+Math.pow(p.y,2)/Math.pow(A,2);h>1&&(a*=Math.sqrt(h),A*=Math.sqrt(h));var d=(s===l?-1:1)*Math.sqrt((Math.pow(a,2)*Math.pow(A,2)-Math.pow(a,2)*Math.pow(p.y,2)-Math.pow(A,2)*Math.pow(p.x,2))/(Math.pow(a,2)*Math.pow(p.y,2)+Math.pow(A,2)*Math.pow(p.x,2)));isNaN(d)&&(d=0);var w=new Ur(d*a*p.y/A,d*-A*p.x/a),f=new Ur((r.x+u.x)/2+Math.cos(c)*w.x-Math.sin(c)*w.y,(r.y+u.y)/2+Math.sin(c)*w.x+Math.cos(c)*w.y),m=Jp([1,0],[(p.x-w.x)/a,(p.y-w.y)/A]),y=[(p.x-w.x)/a,(p.y-w.y)/A],F=[(-p.x-w.x)/a,(-p.y-w.y)/A],N=Jp(y,F);return Kf(y,F)<=-1&&(N=Math.PI),Kf(y,F)>=1&&(N=0),{currentPoint:u,rX:a,rY:A,sweepFlag:l,xAxisRotation:c,centp:f,a1:m,ad:N}}pathA(e,r){var{pathParser:n}=this,{currentPoint:a,rX:A,rY:o,sweepFlag:s,xAxisRotation:l,centp:c,a1:u,ad:p}=tr.pathA(n),h=1-s?1:-1,d=u+h*(p/2),w=new Ur(c.x+A*Math.cos(d),c.y+o*Math.sin(d));if(n.addMarkerAngle(w,d-h*Math.PI/2),n.addMarkerAngle(a,d-h*Math.PI),r.addPoint(a.x,a.y),e&&!isNaN(u)&&!isNaN(p)){var f=A>o?A:o,m=A>o?1:A/o,y=A>o?o/A:1;e.translate(c.x,c.y),e.rotate(l),e.scale(m,y),e.arc(0,0,f,u,u+p,!!(1-s)),e.scale(1/m,1/y),e.rotate(-l),e.translate(-c.x,-c.y)}}static pathZ(e){e.current=e.start}pathZ(e,r){tr.pathZ(this.pathParser),e&&r.x1!==r.x2&&r.y1!==r.y2&&e.closePath()}}class sm extends tr{constructor(e,r,n){super(e,r,n),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class ii extends zi{constructor(e,r,n){super(e,r,new.target===ii?!0:n),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(e,r);var n=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();n&&(e.textBaseline=n)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(e){if(this.type!=="text")return this.getTElementBoundingBox(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e);var r=null;return this.children.forEach((n,a)=>{var A=this.getChildBoundingBox(e,this,this,a);r?r.addBoundingBox(A):r=A}),r}getFontSize(){var{document:e,parent:r}=this,n=Pn.parse(e.ctx.font).fontSize,a=r.getStyle("font-size").getNumber(n);return a}getTElementBoundingBox(e){var r=this.getFontSize();return new Oa(this.x,this.y-r,this.x+this.measureText(e),this.y)}getGlyph(e,r,n){var a=r[n],A=null;if(e.isArabic){var o=r.length,s=r[n-1],l=r[n+1],c="isolated";if((n===0||s===" ")&&n<o-1&&l!==" "&&(c="terminal"),n>0&&s!==" "&&n<o-1&&l!==" "&&(c="medial"),n>0&&s!==" "&&(n===o-1||l===" ")&&(c="initial"),typeof e.glyphs[a]<"u"){var u=e.glyphs[a];A=u instanceof sm?u:u[c]}}else A=e.glyphs[a];return A||(A=e.missingGlyph),A}getText(){return""}getTextFromNode(e){var r=e||this.node,n=Array.from(r.parentNode.childNodes),a=n.indexOf(r),A=n.length-1,o=Po(r.textContent||"");return a===0&&(o=a4(o)),a===A&&(o=A4(o)),o}renderChildren(e){if(this.type!=="text"){this.renderTElementChildren(e);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach((n,a)=>{this.renderChild(e,this,this,a)});var{mouse:r}=this.document.screen;r.isWorking()&&r.checkBoundingBox(this,this.getBoundingBox(e))}renderTElementChildren(e){var{document:r,parent:n}=this,a=this.getText(),A=n.getStyle("font-family").getDefinition();if(A){for(var{unitsPerEm:o}=A.fontFace,s=Pn.parse(r.ctx.font),l=n.getStyle("font-size").getNumber(s.fontSize),c=n.getStyle("font-style").getString(s.fontStyle),u=l/o,p=A.isRTL?a.split("").reverse().join(""):a,h=oa(n.getAttribute("dx").getString()),d=p.length,w=0;w<d;w++){var f=this.getGlyph(A,p,w);e.translate(this.x,this.y),e.scale(u,-u);var m=e.lineWidth;e.lineWidth=e.lineWidth*o/l,c==="italic"&&e.transform(1,0,.4,1,0,0),f.render(e),c==="italic"&&e.transform(1,0,-.4,1,0,0),e.lineWidth=m,e.scale(1/u,-1/u),e.translate(-this.x,-this.y),this.x+=l*(f.horizAdvX||A.horizAdvX)/o,typeof h[w]<"u"&&!isNaN(h[w])&&(this.x+=h[w])}return}var{x:y,y:F}=this;e.fillStyle&&e.fillText(a,y,F),e.strokeStyle&&e.strokeText(a,y,F)}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var e=this.leafTexts[this.textChunkStart],r=e.getStyle("text-anchor").getString("start"),n=!1,a=0;r==="start"&&!n||r==="end"&&n?a=e.x-this.minX:r==="end"&&!n||r==="start"&&n?a=e.x-this.maxX:a=e.x-(this.minX+this.maxX)/2;for(var A=this.textChunkStart;A<this.leafTexts.length;A++)this.leafTexts[A].x+=a;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(e){this.children.forEach((r,n)=>{this.adjustChildCoordinatesRecursiveCore(e,this,this,n)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(e,r,n,a){var A=n.children[a];A.children.length>0?A.children.forEach((o,s)=>{r.adjustChildCoordinatesRecursiveCore(e,r,A,s)}):this.adjustChildCoordinates(e,r,n,a)}adjustChildCoordinates(e,r,n,a){var A=n.children[a];if(typeof A.measureText!="function")return A;e.save(),A.setContext(e,!0);var o=A.getAttribute("x"),s=A.getAttribute("y"),l=A.getAttribute("dx"),c=A.getAttribute("dy"),u=A.getStyle("font-family").getDefinition(),p=!!u&&u.isRTL;a===0&&(o.hasValue()||o.setValue(A.getInheritedAttribute("x")),s.hasValue()||s.setValue(A.getInheritedAttribute("y")),l.hasValue()||l.setValue(A.getInheritedAttribute("dx")),c.hasValue()||c.setValue(A.getInheritedAttribute("dy")));var h=A.measureText(e);return p&&(r.x-=h),o.hasValue()?(r.applyAnchoring(),A.x=o.getPixels("x"),l.hasValue()&&(A.x+=l.getPixels("x"))):(l.hasValue()&&(r.x+=l.getPixels("x")),A.x=r.x),r.x=A.x,p||(r.x+=h),s.hasValue()?(A.y=s.getPixels("y"),c.hasValue()&&(A.y+=c.getPixels("y"))):(c.hasValue()&&(r.y+=c.getPixels("y")),A.y=r.y),r.y=A.y,r.leafTexts.push(A),r.minX=Math.min(r.minX,A.x,A.x+h),r.maxX=Math.max(r.maxX,A.x,A.x+h),A.clearContext(e),e.restore(),A}getChildBoundingBox(e,r,n,a){var A=n.children[a];if(typeof A.getBoundingBox!="function")return null;var o=A.getBoundingBox(e);return o?(A.children.forEach((s,l)=>{var c=r.getChildBoundingBox(e,r,A,l);o.addBoundingBox(c)}),o):null}renderChild(e,r,n,a){var A=n.children[a];A.render(e),A.children.forEach((o,s)=>{r.renderChild(e,r,A,s)})}measureText(e){var{measureCache:r}=this;if(~r)return r;var n=this.getText(),a=this.measureTargetText(e,n);return this.measureCache=a,a}measureTargetText(e,r){if(!r.length)return 0;var{parent:n}=this,a=n.getStyle("font-family").getDefinition();if(a){for(var A=this.getFontSize(),o=a.isRTL?r.split("").reverse().join(""):r,s=oa(n.getAttribute("dx").getString()),l=o.length,c=0,u=0;u<l;u++){var p=this.getGlyph(a,o,u);c+=(p.horizAdvX||a.horizAdvX)*A/a.fontFace.unitsPerEm,typeof s[u]<"u"&&!isNaN(s[u])&&(c+=s[u])}return c}if(!e.measureText)return r.length*10;e.save(),this.setContext(e,!0);var{width:h}=e.measureText(r);return this.clearContext(e),e.restore(),h}getInheritedAttribute(e){for(var r=this;r instanceof ii&&r.isFirstChild();){var n=r.parent.getAttribute(e);if(n.hasValue(!0))return n.getValue("0");r=r.parent}return null}}class Lc extends ii{constructor(e,r,n){super(e,r,new.target===Lc?!0:n),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class wie extends Lc{constructor(){super(...arguments),this.type="textNode"}}class Xs extends zi{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(e){var r,{document:n}=this,{screen:a,window:A}=n,o=e.canvas;if(a.setDefaults(e),o.style&&typeof e.font<"u"&&A&&typeof A.getComputedStyle<"u"){e.font=A.getComputedStyle(o).getPropertyValue("font");var s=new pt(n,"fontSize",Pn.parse(e.font).fontSize);s.hasValue()&&(n.rootEmSize=s.getPixels("y"),n.emSize=n.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:l,height:c}=a.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var u=this.getAttribute("refX"),p=this.getAttribute("refY"),h=this.getAttribute("viewBox"),d=h.hasValue()?oa(h.getString()):null,w=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",f=0,m=0,y=0,F=0;d&&(f=d[0],m=d[1]),this.root||(l=this.getStyle("width").getPixels("x"),c=this.getStyle("height").getPixels("y"),this.type==="marker"&&(y=f,F=m,f=0,m=0)),a.viewPort.setCurrent(l,c),this.node&&(!this.parent||((r=this.node.parentNode)===null||r===void 0?void 0:r.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(e),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),d&&(l=d[2],c=d[3]),n.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:a.viewPort.width,desiredWidth:l,height:a.viewPort.height,desiredHeight:c,minX:f,minY:m,refX:u.getValue(),refY:p.getValue(),clip:w,clipX:y,clipY:F}),d&&(a.viewPort.removeCurrent(),a.viewPort.setCurrent(l,c))}clearContext(e){super.clearContext(e),this.document.screen.viewPort.removeCurrent()}resize(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=this.getAttribute("width",!0),A=this.getAttribute("height",!0),o=this.getAttribute("viewBox"),s=this.getAttribute("style"),l=a.getNumber(0),c=A.getNumber(0);if(n)if(typeof n=="string")this.getAttribute("preserveAspectRatio",!0).setValue(n);else{var u=this.getAttribute("preserveAspectRatio");u.hasValue()&&u.setValue(u.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(a.setValue(e),A.setValue(r),o.hasValue()||o.setValue("0 0 ".concat(l||e," ").concat(c||r)),s.hasValue()){var p=this.getStyle("width"),h=this.getStyle("height");p.hasValue()&&p.setValue("".concat(e,"px")),h.hasValue()&&h.setValue("".concat(r,"px"))}}}class lm extends tr{constructor(){super(...arguments),this.type="rect"}path(e){var r=this.getAttribute("x").getPixels("x"),n=this.getAttribute("y").getPixels("y"),a=this.getStyle("width",!1,!0).getPixels("x"),A=this.getStyle("height",!1,!0).getPixels("y"),o=this.getAttribute("rx"),s=this.getAttribute("ry"),l=o.getPixels("x"),c=s.getPixels("y");if(o.hasValue()&&!s.hasValue()&&(c=l),s.hasValue()&&!o.hasValue()&&(l=c),l=Math.min(l,a/2),c=Math.min(c,A/2),e){var u=4*((Math.sqrt(2)-1)/3);e.beginPath(),A>0&&a>0&&(e.moveTo(r+l,n),e.lineTo(r+a-l,n),e.bezierCurveTo(r+a-l+u*l,n,r+a,n+c-u*c,r+a,n+c),e.lineTo(r+a,n+A-c),e.bezierCurveTo(r+a,n+A-c+u*c,r+a-l+u*l,n+A,r+a-l,n+A),e.lineTo(r+l,n+A),e.bezierCurveTo(r+l-u*l,n+A,r,n+A-c+u*c,r,n+A-c),e.lineTo(r,n+c),e.bezierCurveTo(r,n+c-u*c,r+l-u*l,n,r+l,n),e.closePath())}return new Oa(r,n,r+a,n+A)}getMarkers(){return null}}class v4 extends tr{constructor(){super(...arguments),this.type="circle"}path(e){var r=this.getAttribute("cx").getPixels("x"),n=this.getAttribute("cy").getPixels("y"),a=this.getAttribute("r").getPixels();return e&&a>0&&(e.beginPath(),e.arc(r,n,a,0,Math.PI*2,!1),e.closePath()),new Oa(r-a,n-a,r+a,n+a)}getMarkers(){return null}}class w4 extends tr{constructor(){super(...arguments),this.type="ellipse"}path(e){var r=4*((Math.sqrt(2)-1)/3),n=this.getAttribute("rx").getPixels("x"),a=this.getAttribute("ry").getPixels("y"),A=this.getAttribute("cx").getPixels("x"),o=this.getAttribute("cy").getPixels("y");return e&&n>0&&a>0&&(e.beginPath(),e.moveTo(A+n,o),e.bezierCurveTo(A+n,o+r*a,A+r*n,o+a,A,o+a),e.bezierCurveTo(A-r*n,o+a,A-n,o+r*a,A-n,o),e.bezierCurveTo(A-n,o-r*a,A-r*n,o-a,A,o-a),e.bezierCurveTo(A+r*n,o-a,A+n,o-r*a,A+n,o),e.closePath()),new Oa(A-n,o-a,A+n,o+a)}getMarkers(){return null}}class B4 extends tr{constructor(){super(...arguments),this.type="line"}getPoints(){return[new Ur(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Ur(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(e){var[{x:r,y:n},{x:a,y:A}]=this.getPoints();return e&&(e.beginPath(),e.moveTo(r,n),e.lineTo(a,A)),new Oa(r,n,a,A)}getMarkers(){var[e,r]=this.getPoints(),n=e.angleTo(r);return[[e,n],[r,n]]}}class cm extends tr{constructor(e,r,n){super(e,r,n),this.type="polyline",this.points=[],this.points=Ur.parsePath(this.getAttribute("points").getString())}path(e){var{points:r}=this,[{x:n,y:a}]=r,A=new Oa(n,a);return e&&(e.beginPath(),e.moveTo(n,a)),r.forEach(o=>{var{x:s,y:l}=o;A.addPoint(s,l),e&&e.lineTo(s,l)}),A}getMarkers(){var{points:e}=this,r=e.length-1,n=[];return e.forEach((a,A)=>{A!==r&&n.push([a,a.angleTo(e[A+1])])}),n.length>0&&n.push([e[e.length-1],n[n.length-1][1]]),n}}class x4 extends cm{constructor(){super(...arguments),this.type="polygon"}path(e){var r=super.path(e),[{x:n,y:a}]=this.points;return e&&(e.lineTo(n,a),e.closePath()),r}}class b4 extends pr{constructor(){super(...arguments),this.type="pattern"}createPattern(e,r,n){var a=this.getStyle("width").getPixels("x",!0),A=this.getStyle("height").getPixels("y",!0),o=new Xs(this.document,null);o.attributes.viewBox=new pt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new pt(this.document,"width","".concat(a,"px")),o.attributes.height=new pt(this.document,"height","".concat(A,"px")),o.attributes.transform=new pt(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children;var s=this.document.createCanvas(a,A),l=s.getContext("2d"),c=this.getAttribute("x"),u=this.getAttribute("y");c.hasValue()&&u.hasValue()&&l.translate(c.getPixels("x",!0),u.getPixels("y",!0)),n.hasValue()?this.styles["fill-opacity"]=n:Reflect.deleteProperty(this.styles,"fill-opacity");for(var p=-1;p<=1;p++)for(var h=-1;h<=1;h++)l.save(),o.attributes.x=new pt(this.document,"x",p*s.width),o.attributes.y=new pt(this.document,"y",h*s.height),o.render(l),l.restore();var d=e.createPattern(s,"repeat");return d}}class C4 extends pr{constructor(){super(...arguments),this.type="marker"}render(e,r,n){if(r){var{x:a,y:A}=r,o=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(a,A),o==="auto"&&e.rotate(n),s==="strokeWidth"&&e.scale(e.lineWidth,e.lineWidth),e.save();var l=new Xs(this.document,null);l.type=this.type,l.attributes.viewBox=new pt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),l.attributes.refX=new pt(this.document,"refX",this.getAttribute("refX").getValue()),l.attributes.refY=new pt(this.document,"refY",this.getAttribute("refY").getValue()),l.attributes.width=new pt(this.document,"width",this.getAttribute("markerWidth").getValue()),l.attributes.height=new pt(this.document,"height",this.getAttribute("markerHeight").getValue()),l.attributes.overflow=new pt(this.document,"overflow",this.getAttribute("overflow").getValue()),l.attributes.fill=new pt(this.document,"fill",this.getAttribute("fill").getColor("black")),l.attributes.stroke=new pt(this.document,"stroke",this.getAttribute("stroke").getValue("none")),l.children=this.children,l.render(e),e.restore(),s==="strokeWidth"&&e.scale(1/e.lineWidth,1/e.lineWidth),o==="auto"&&e.rotate(-n),e.translate(-a,-A)}}}class E4 extends pr{constructor(){super(...arguments),this.type="defs"}render(){}}class jf extends zi{constructor(){super(...arguments),this.type="g"}getBoundingBox(e){var r=new Oa;return this.children.forEach(n=>{r.addBoundingBox(n.getBoundingBox(e))}),r}}class um extends pr{constructor(e,r,n){super(e,r,n),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:a,children:A}=this;A.forEach(o=>{o.type==="stop"&&a.push(o)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(e,r,n){var a=this;this.getHrefAttribute().hasValue()&&(a=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(a));var{stops:A}=a,o=this.getGradient(e,r);if(!o)return this.addParentOpacity(n,A[A.length-1].color);if(A.forEach(m=>{o.addColorStop(m.offset,this.addParentOpacity(n,m.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:s}=this,{MAX_VIRTUAL_PIXELS:l,viewPort:c}=s.screen,[u]=c.viewPorts,p=new lm(s,null);p.attributes.x=new pt(s,"x",-l/3),p.attributes.y=new pt(s,"y",-l/3),p.attributes.width=new pt(s,"width",l),p.attributes.height=new pt(s,"height",l);var h=new jf(s,null);h.attributes.transform=new pt(s,"transform",this.getAttribute("gradientTransform").getValue()),h.children=[p];var d=new Xs(s,null);d.attributes.x=new pt(s,"x",0),d.attributes.y=new pt(s,"y",0),d.attributes.width=new pt(s,"width",u.width),d.attributes.height=new pt(s,"height",u.height),d.children=[h];var w=s.createCanvas(u.width,u.height),f=w.getContext("2d");return f.fillStyle=o,d.render(f),f.createPattern(w,"no-repeat")}return o}inheritStopContainer(e){this.attributesToInherit.forEach(r=>{!this.getAttribute(r).hasValue()&&e.getAttribute(r).hasValue()&&this.getAttribute(r,!0).setValue(e.getAttribute(r).getValue())})}addParentOpacity(e,r){if(e.hasValue()){var n=new pt(this.document,"color",r);return n.addOpacity(e).getColor()}return r}}class _4 extends um{constructor(e,r,n){super(e,r,n),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(e,r){var n=this.getGradientUnits()==="objectBoundingBox",a=n?r.getBoundingBox(e):null;if(n&&!a)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 A=n?a.x+a.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),o=n?a.y+a.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=n?a.x+a.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),l=n?a.y+a.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return A===s&&o===l?null:e.createLinearGradient(A,o,s,l)}}class F4 extends um{constructor(e,r,n){super(e,r,n),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(e,r){var n=this.getGradientUnits()==="objectBoundingBox",a=r.getBoundingBox(e);if(n&&!a)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 A=n?a.x+a.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),o=n?a.y+a.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=A,l=o;this.getAttribute("fx").hasValue()&&(s=n?a.x+a.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(l=n?a.y+a.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var c=n?(a.width+a.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),u=this.getAttribute("fr").getPixels();return e.createRadialGradient(s,l,u,A,o,c)}}class S4 extends pr{constructor(e,r,n){super(e,r,n),this.type="stop";var a=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),A=this.getStyle("stop-opacity"),o=this.getStyle("stop-color",!0);o.getString()===""&&o.setValue("#000"),A.hasValue()&&(o=o.addOpacity(A)),this.offset=a,this.color=o.getColor()}}class Wf extends pr{constructor(e,r,n){super(e,r,n),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,e.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new pt(e,"values",null);var a=this.getAttribute("values");a.hasValue()&&this.values.setValue(a.getString().split(";"))}getProperty(){var e=this.getAttribute("attributeType").getString(),r=this.getAttribute("attributeName").getString();return e==="CSS"?this.parent.getStyle(r,!0):this.parent.getAttribute(r,!0)}calcValue(){var{initialUnits:e}=this,{progress:r,from:n,to:a}=this.getProgress(),A=n.getNumber()+(a.getNumber()-n.getNumber())*r;return e==="%"&&(A*=100),"".concat(A).concat(e)}update(e){var{parent:r}=this,n=this.getProperty();if(this.initialValue||(this.initialValue=n.getString(),this.initialUnits=n.getUnits()),this.duration>this.maxDuration){var a=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(a==="freeze"&&!this.frozen)this.frozen=!0,r.animationFrozen=!0,r.animationFrozenValue=n.getString();else if(a==="remove"&&!this.removed)return this.removed=!0,n.setValue(r.animationFrozen?r.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=e;var A=!1;if(this.begin<this.duration){var o=this.calcValue(),s=this.getAttribute("type");if(s.hasValue()){var l=s.getString();o="".concat(l,"(").concat(o,")")}n.setValue(o),A=!0}return A}getProgress(){var{document:e,values:r}=this,n={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(r.hasValue()){var a=n.progress*(r.getValue().length-1),A=Math.floor(a),o=Math.ceil(a);n.from=new pt(e,"from",parseFloat(r.getValue()[A])),n.to=new pt(e,"to",parseFloat(r.getValue()[o])),n.progress=(a-A)/(o-A)}else n.from=this.from,n.to=this.to;return n}}class k4 extends Wf{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:e,from:r,to:n}=this.getProgress(),a=new Kp(r.getColor()),A=new Kp(n.getColor());if(a.ok&&A.ok){var o=a.r+(A.r-a.r)*e,s=a.g+(A.g-a.g)*e,l=a.b+(A.b-a.b)*e;return"rgb(".concat(Math.floor(o),", ").concat(Math.floor(s),", ").concat(Math.floor(l),")")}return this.getAttribute("from").getColor()}}class T4 extends Wf{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:e,from:r,to:n}=this.getProgress(),a=oa(r.getString()),A=oa(n.getString()),o=a.map((s,l)=>{var c=A[l];return s+(c-s)*e}).join(" ");return o}}class N4 extends pr{constructor(e,r,n){super(e,r,n),this.type="font",this.glyphs={},this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:a}=e,{children:A}=this;for(var o of A)switch(o.type){case"font-face":{this.fontFace=o;var s=o.getStyle("font-family");s.hasValue()&&(a[s.getString()]=this);break}case"missing-glyph":this.missingGlyph=o;break;case"glyph":{var l=o;l.arabicForm?(this.isRTL=!0,this.isArabic=!0,typeof this.glyphs[l.unicode]>"u"&&(this.glyphs[l.unicode]={}),this.glyphs[l.unicode][l.arabicForm]=l):this.glyphs[l.unicode]=l;break}}}render(){}}class L4 extends pr{constructor(e,r,n){super(e,r,n),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class U4 extends tr{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class I4 extends ii{constructor(){super(...arguments),this.type="tref"}getText(){var e=this.getHrefAttribute().getDefinition();if(e){var r=e.children[0];if(r)return r.getText()}return""}}class D4 extends ii{constructor(e,r,n){super(e,r,n),this.type="a";var{childNodes:a}=r,A=a[0],o=a.length>0&&Array.from(a).every(s=>s.nodeType===3);this.hasText=o,this.text=o?this.getTextFromNode(A):""}getText(){return this.text}renderChildren(e){if(this.hasText){super.renderChildren(e);var{document:r,x:n,y:a}=this,{mouse:A}=r.screen,o=new pt(r,"fontSize",Pn.parse(r.ctx.font).fontSize);A.isWorking()&&A.checkBoundingBox(this,new Oa(n,a-o.getPixels("y"),n+this.measureText(e),a))}else if(this.children.length>0){var s=new jf(this.document,null);s.children=this.children,s.parent=this,s.render(e)}}onClick(){var{window:e}=this.document;e&&e.open(this.getHrefAttribute().getString())}onMouseMove(){var e=this.document.ctx;e.canvas.style.cursor="pointer"}}function Q4(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Xf(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Q4(Object(r),!0).forEach(function(n){Pp(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Q4(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}class O4 extends ii{constructor(e,r,n){super(e,r,n),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var a=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(a)}getText(){return this.text}path(e){var{dataArray:r}=this;e&&e.beginPath(),r.forEach(n=>{var{type:a,points:A}=n;switch(a){case Tt.LINE_TO:e&&e.lineTo(A[0],A[1]);break;case Tt.MOVE_TO:e&&e.moveTo(A[0],A[1]);break;case Tt.CURVE_TO:e&&e.bezierCurveTo(A[0],A[1],A[2],A[3],A[4],A[5]);break;case Tt.QUAD_TO:e&&e.quadraticCurveTo(A[0],A[1],A[2],A[3]);break;case Tt.ARC:{var[o,s,l,c,u,p,h,d]=A,w=l>c?l:c,f=l>c?1:l/c,m=l>c?c/l:1;e&&(e.translate(o,s),e.rotate(h),e.scale(f,m),e.arc(0,0,w,u,u+p,!!(1-d)),e.scale(1/f,1/m),e.rotate(-h),e.translate(-o,-s));break}case Tt.CLOSE_PATH:e&&e.closePath();break}})}renderChildren(e){this.setTextData(e),e.save();var r=this.parent.getStyle("text-decoration").getString(),n=this.getFontSize(),{glyphInfo:a}=this,A=e.fillStyle;r==="underline"&&e.beginPath(),a.forEach((o,s)=>{var{p0:l,p1:c,rotation:u,text:p}=o;e.save(),e.translate(l.x,l.y),e.rotate(u),e.fillStyle&&e.fillText(p,0,0),e.strokeStyle&&e.strokeText(p,0,0),e.restore(),r==="underline"&&(s===0&&e.moveTo(l.x,l.y+n/8),e.lineTo(c.x,c.y+n/5))}),r==="underline"&&(e.lineWidth=n/20,e.strokeStyle=A,e.stroke(),e.closePath()),e.restore()}getLetterSpacingAt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[e]||0}findSegmentToFitChar(e,r,n,a,A,o,s,l,c){var u=o,p=this.measureText(e,l);l===" "&&r==="justify"&&n<a&&(p+=(a-n)/A),c>-1&&(u+=this.getLetterSpacingAt(c));var h=this.textHeight/20,d=this.getEquidistantPointOnPath(u,h,0),w=this.getEquidistantPointOnPath(u+p,h,0),f={p0:d,p1:w},m=d&&w?Math.atan2(w.y-d.y,w.x-d.x):0;if(s){var y=Math.cos(Math.PI/2+m)*s,F=Math.cos(-m)*s;f.p0=Xf(Xf({},d),{},{x:d.x+y,y:d.y+F}),f.p1=Xf(Xf({},w),{},{x:w.x+y,y:w.y+F})}return u+=p,{offset:u,segment:f,rotation:m}}measureText(e,r){var{measuresCache:n}=this,a=r||this.getText();if(n.has(a))return n.get(a);var A=this.measureTargetText(e,a);return n.set(a,A),A}setTextData(e){if(!this.glyphInfo){var r=this.getText(),n=r.split(""),a=r.split(" ").length-1,A=this.parent.getAttribute("dx").split().map(D=>D.getPixels("x")),o=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),l=this.getStyle("letter-spacing"),c=this.parent.getStyle("letter-spacing"),u=0;!l.hasValue()||l.getValue()==="inherit"?u=c.getPixels():l.hasValue()&&l.getValue()!=="initial"&&l.getValue()!=="unset"&&(u=l.getPixels());var p=[],h=r.length;this.letterSpacingCache=p;for(var d=0;d<h;d++)p.push(typeof A[d]<"u"?A[d]:u);var w=p.reduce((D,H,R)=>R===0?0:D+H||0,0),f=this.measureText(e),m=Math.max(f+w,0);this.textWidth=f,this.textHeight=this.getFontSize(),this.glyphInfo=[];var y=this.getPathLength(),F=this.getStyle("startOffset").getNumber(0)*y,N=0;(s==="middle"||s==="center")&&(N=-m/2),(s==="end"||s==="right")&&(N=-m),N+=F,n.forEach((D,H)=>{var{offset:R,segment:U,rotation:I}=this.findSegmentToFitChar(e,s,m,y,a,N,o,D,H);N=R,!(!U.p0||!U.p1)&&this.glyphInfo.push({text:n[H],p0:U.p0,p1:U.p1,rotation:I})})}}parsePathData(e){if(this.pathLength=-1,!e)return[];var r=[],{pathParser:n}=e;for(n.reset();!n.isEnd();){var{current:a}=n,A=a?a.x:0,o=a?a.y:0,s=n.next(),l=s.type,c=[];switch(s.type){case Tt.MOVE_TO:this.pathM(n,c);break;case Tt.LINE_TO:l=this.pathL(n,c);break;case Tt.HORIZ_LINE_TO:l=this.pathH(n,c);break;case Tt.VERT_LINE_TO:l=this.pathV(n,c);break;case Tt.CURVE_TO:this.pathC(n,c);break;case Tt.SMOOTH_CURVE_TO:l=this.pathS(n,c);break;case Tt.QUAD_TO:this.pathQ(n,c);break;case Tt.SMOOTH_QUAD_TO:l=this.pathT(n,c);break;case Tt.ARC:c=this.pathA(n);break;case Tt.CLOSE_PATH:tr.pathZ(n);break}s.type!==Tt.CLOSE_PATH?r.push({type:l,points:c,start:{x:A,y:o},pathLength:this.calcLength(A,o,l,c)}):r.push({type:Tt.CLOSE_PATH,points:[],pathLength:0})}return r}pathM(e,r){var{x:n,y:a}=tr.pathM(e).point;r.push(n,a)}pathL(e,r){var{x:n,y:a}=tr.pathL(e).point;return r.push(n,a),Tt.LINE_TO}pathH(e,r){var{x:n,y:a}=tr.pathH(e).point;return r.push(n,a),Tt.LINE_TO}pathV(e,r){var{x:n,y:a}=tr.pathV(e).point;return r.push(n,a),Tt.LINE_TO}pathC(e,r){var{point:n,controlPoint:a,currentPoint:A}=tr.pathC(e);r.push(n.x,n.y,a.x,a.y,A.x,A.y)}pathS(e,r){var{point:n,controlPoint:a,currentPoint:A}=tr.pathS(e);return r.push(n.x,n.y,a.x,a.y,A.x,A.y),Tt.CURVE_TO}pathQ(e,r){var{controlPoint:n,currentPoint:a}=tr.pathQ(e);r.push(n.x,n.y,a.x,a.y)}pathT(e,r){var{controlPoint:n,currentPoint:a}=tr.pathT(e);return r.push(n.x,n.y,a.x,a.y),Tt.QUAD_TO}pathA(e){var{rX:r,rY:n,sweepFlag:a,xAxisRotation:A,centp:o,a1:s,ad:l}=tr.pathA(e);return a===0&&l>0&&(l-=2*Math.PI),a===1&&l<0&&(l+=2*Math.PI),[o.x,o.y,r,n,s,l,A,a]}calcLength(e,r,n,a){var A=0,o=null,s=null,l=0;switch(n){case Tt.LINE_TO:return this.getLineLength(e,r,a[0],a[1]);case Tt.CURVE_TO:for(A=0,o=this.getPointOnCubicBezier(0,e,r,a[0],a[1],a[2],a[3],a[4],a[5]),l=.01;l<=1;l+=.01)s=this.getPointOnCubicBezier(l,e,r,a[0],a[1],a[2],a[3],a[4],a[5]),A+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return A;case Tt.QUAD_TO:for(A=0,o=this.getPointOnQuadraticBezier(0,e,r,a[0],a[1],a[2],a[3]),l=.01;l<=1;l+=.01)s=this.getPointOnQuadraticBezier(l,e,r,a[0],a[1],a[2],a[3]),A+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return A;case Tt.ARC:{A=0;var c=a[4],u=a[5],p=a[4]+u,h=Math.PI/180;if(Math.abs(c-p)<h&&(h=Math.abs(c-p)),o=this.getPointOnEllipticalArc(a[0],a[1],a[2],a[3],c,0),u<0)for(l=c-h;l>p;l-=h)s=this.getPointOnEllipticalArc(a[0],a[1],a[2],a[3],l,0),A+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;else for(l=c+h;l<p;l+=h)s=this.getPointOnEllipticalArc(a[0],a[1],a[2],a[3],l,0),A+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return s=this.getPointOnEllipticalArc(a[0],a[1],a[2],a[3],p,0),A+=this.getLineLength(o.x,o.y,s.x,s.y),A}}return 0}getPointOnLine(e,r,n,a,A){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:r,s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:n,l=(A-n)/(a-r+Ro),c=Math.sqrt(e*e/(1+l*l));a<r&&(c*=-1);var u=l*c,p=null;if(a===r)p={x:o,y:s+u};else if((s-n)/(o-r+Ro)===l)p={x:o+c,y:s+u};else{var h=0,d=0,w=this.getLineLength(r,n,a,A);if(w<Ro)return null;var f=(o-r)*(a-r)+(s-n)*(A-n);f/=w*w,h=r+f*(a-r),d=n+f*(A-n);var m=this.getLineLength(o,s,h,d),y=Math.sqrt(e*e-m*m);c=Math.sqrt(y*y/(1+l*l)),a<r&&(c*=-1),u=l*c,p={x:h+c,y:d+u}}return p}getPointOnPath(e){var r=this.getPathLength(),n=0,a=null;if(e<-5e-5||e-5e-5>r)return null;var{dataArray:A}=this;for(var o of A){if(o&&(o.pathLength<5e-5||n+o.pathLength+5e-5<e)){n+=o.pathLength;continue}var s=e-n,l=0;switch(o.type){case Tt.LINE_TO:a=this.getPointOnLine(s,o.start.x,o.start.y,o.points[0],o.points[1],o.start.x,o.start.y);break;case Tt.ARC:{var c=o.points[4],u=o.points[5],p=o.points[4]+u;if(l=c+s/o.pathLength*u,u<0&&l<p||u>=0&&l>p)break;a=this.getPointOnEllipticalArc(o.points[0],o.points[1],o.points[2],o.points[3],l,o.points[6]);break}case Tt.CURVE_TO:l=s/o.pathLength,l>1&&(l=1),a=this.getPointOnCubicBezier(l,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3],o.points[4],o.points[5]);break;case Tt.QUAD_TO:l=s/o.pathLength,l>1&&(l=1),a=this.getPointOnQuadraticBezier(l,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3]);break}if(a)return a;break}return null}getLineLength(e,r,n,a){return Math.sqrt((n-e)*(n-e)+(a-r)*(a-r))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((e,r)=>r.pathLength>0?e+r.pathLength:e,0)),this.pathLength}getPointOnCubicBezier(e,r,n,a,A,o,s,l,c){var u=l*Zp(e)+o*em(e)+a*tm(e)+r*rm(e),p=c*Zp(e)+s*em(e)+A*tm(e)+n*rm(e);return{x:u,y:p}}getPointOnQuadraticBezier(e,r,n,a,A,o,s){var l=o*nm(e)+a*am(e)+r*Am(e),c=s*nm(e)+A*am(e)+n*Am(e);return{x:l,y:c}}getPointOnEllipticalArc(e,r,n,a,A,o){var s=Math.cos(o),l=Math.sin(o),c={x:n*Math.cos(A),y:a*Math.sin(A)};return{x:e+(c.x*s-c.y*l),y:r+(c.x*l+c.y*s)}}buildEquidistantCache(e,r){var n=this.getPathLength(),a=r||.25,A=e||n/100;if(!this.equidistantCache||this.equidistantCache.step!==A||this.equidistantCache.precision!==a){this.equidistantCache={step:A,precision:a,points:[]};for(var o=0,s=0;s<=n;s+=a){var l=this.getPointOnPath(s),c=this.getPointOnPath(s+a);!l||!c||(o+=this.getLineLength(l.x,l.y,c.x,c.y),o>=A&&(this.equidistantCache.points.push({x:l.x,y:l.y,distance:s}),o-=A))}}}getEquidistantPointOnPath(e,r,n){if(this.buildEquidistantCache(r,n),e<0||e-this.getPathLength()>5e-5)return null;var a=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[a]||null}}var Bie=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class P4 extends zi{constructor(e,r,n){super(e,r,n),this.type="image",this.loaded=!1;var a=this.getHrefAttribute().getString();if(a){var A=a.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(a);e.images.push(this),A?this.loadSvg(a):this.loadImage(a),this.isSvg=A}}loadImage(e){var r=this;return ni(function*(){try{var n=yield r.document.createImage(e);r.image=n}catch(a){console.error('Error while loading image "'.concat(e,'":'),a)}r.loaded=!0})()}loadSvg(e){var r=this;return ni(function*(){var n=Bie.exec(e);if(n){var a=n[5];n[4]==="base64"?r.image=atob(a):r.image=decodeURIComponent(a)}else try{var A=yield r.document.fetch(e),o=yield A.text();r.image=o}catch(s){console.error('Error while loading image "'.concat(e,'":'),s)}r.loaded=!0})()}renderChildren(e){var{document:r,image:n,loaded:a}=this,A=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),l=this.getStyle("height").getPixels("y");if(!(!a||!n||!s||!l)){if(e.save(),e.translate(A,o),this.isSvg){var c=r.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:s,scaleHeight:l});c.document.documentElement.parent=this,c.render()}else{var u=this.image;r.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:s,desiredWidth:u.width,height:l,desiredHeight:u.height}),this.loaded&&(typeof u.complete>"u"||u.complete)&&e.drawImage(u,0,0)}e.restore()}}getBoundingBox(){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),n=this.getStyle("width").getPixels("x"),a=this.getStyle("height").getPixels("y");return new Oa(e,r,e+n,r+a)}}class M4 extends zi{constructor(){super(...arguments),this.type="symbol"}render(e){}}class R4{constructor(e){this.document=e,this.loaded=!1,e.fonts.push(this)}load(e,r){var n=this;return ni(function*(){try{var{document:a}=n,A=yield a.canvg.parser.load(r),o=A.getElementsByTagName("font");Array.from(o).forEach(s=>{var l=a.createElement(s);a.definitions[e]=l})}catch(s){console.error('Error while loading font "'.concat(r,'":'),s)}n.loaded=!0})()}}class hm extends pr{constructor(e,r,n){super(e,r,n),this.type="style";var a=Po(Array.from(r.childNodes).map(o=>o.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),A=a.split("}");A.forEach(o=>{var s=o.trim();if(s){var l=s.split("{"),c=l[0].split(","),u=l[1].split(";");c.forEach(p=>{var h=p.trim();if(h){var d=e.styles[h]||{};if(u.forEach(m=>{var y=m.indexOf(":"),F=m.substr(0,y).trim(),N=m.substr(y+1,m.length-y).trim();F&&N&&(d[F]=new pt(e,F,N))}),e.styles[h]=d,e.stylesSpecificity[h]=s4(h),h==="@font-face"){var w=d["font-family"].getString().replace(/"|'/g,""),f=d.src.getString().split(",");f.forEach(m=>{if(m.indexOf('format("svg")')>0){var y=qp(m);y&&new R4(e).load(w,y)}})}}})}})}}hm.parseExternalUrl=qp;class H4 extends zi{constructor(){super(...arguments),this.type="use"}setContext(e){super.setContext(e);var r=this.getAttribute("x"),n=this.getAttribute("y");r.hasValue()&&e.translate(r.getPixels("x"),0),n.hasValue()&&e.translate(0,n.getPixels("y"))}path(e){var{element:r}=this;r&&r.path(e)}renderChildren(e){var{document:r,element:n}=this;if(n){var a=n;if(n.type==="symbol"&&(a=new Xs(r,null),a.attributes.viewBox=new pt(r,"viewBox",n.getAttribute("viewBox").getString()),a.attributes.preserveAspectRatio=new pt(r,"preserveAspectRatio",n.getAttribute("preserveAspectRatio").getString()),a.attributes.overflow=new pt(r,"overflow",n.getAttribute("overflow").getString()),a.children=n.children,n.styles.opacity=new pt(r,"opacity",this.calculateOpacity())),a.type==="svg"){var A=this.getStyle("width",!1,!0),o=this.getStyle("height",!1,!0);A.hasValue()&&(a.attributes.width=new pt(r,"width",A.getString())),o.hasValue()&&(a.attributes.height=new pt(r,"height",o.getString()))}var s=a.parent;a.parent=this,a.render(e),a.parent=s}}getBoundingBox(e){var{element:r}=this;return r?r.getBoundingBox(e):null}elementTransform(){var{document:e,element:r}=this;return $i.fromElement(e,r)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function qf(t,e,r,n,a,A){return t[r*n*4+e*4+A]}function Yf(t,e,r,n,a,A,o){t[r*n*4+e*4+A]=o}function Jr(t,e,r){var n=t[e];return n*r}function oi(t,e,r,n){return e+Math.cos(t)*r+Math.sin(t)*n}class fm extends pr{constructor(e,r,n){super(e,r,n),this.type="feColorMatrix";var a=oa(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":{var A=a[0];a=[.213+.787*A,.715-.715*A,.072-.072*A,0,0,.213-.213*A,.715+.285*A,.072-.072*A,0,0,.213-.213*A,.715-.715*A,.072+.928*A,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var o=a[0]*Math.PI/180;a=[oi(o,.213,.787,-.213),oi(o,.715,-.715,-.715),oi(o,.072,-.072,.928),0,0,oi(o,.213,-.213,.143),oi(o,.715,.285,.14),oi(o,.072,-.072,-.283),0,0,oi(o,.213,-.213,-.787),oi(o,.715,-.715,.715),oi(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];break}this.matrix=a,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(e,r,n,a,A){for(var{includeOpacity:o,matrix:s}=this,l=e.getImageData(0,0,a,A),c=0;c<A;c++)for(var u=0;u<a;u++){var p=qf(l.data,u,c,a,A,0),h=qf(l.data,u,c,a,A,1),d=qf(l.data,u,c,a,A,2),w=qf(l.data,u,c,a,A,3),f=Jr(s,0,p)+Jr(s,1,h)+Jr(s,2,d)+Jr(s,3,w)+Jr(s,4,1),m=Jr(s,5,p)+Jr(s,6,h)+Jr(s,7,d)+Jr(s,8,w)+Jr(s,9,1),y=Jr(s,10,p)+Jr(s,11,h)+Jr(s,12,d)+Jr(s,13,w)+Jr(s,14,1),F=Jr(s,15,p)+Jr(s,16,h)+Jr(s,17,d)+Jr(s,18,w)+Jr(s,19,1);o&&(f=0,m=0,y=0,F*=w/255),Yf(l.data,u,c,a,A,0,f),Yf(l.data,u,c,a,A,1,m),Yf(l.data,u,c,a,A,2,y),Yf(l.data,u,c,a,A,3,F)}e.clearRect(0,0,a,A),e.putImageData(l,0,0)}}class Uc extends pr{constructor(){super(...arguments),this.type="mask"}apply(e,r){var{document:n}=this,a=this.getAttribute("x").getPixels("x"),A=this.getAttribute("y").getPixels("y"),o=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(!o&&!s){var l=new Oa;this.children.forEach(w=>{l.addBoundingBox(w.getBoundingBox(e))}),a=Math.floor(l.x1),A=Math.floor(l.y1),o=Math.floor(l.width),s=Math.floor(l.height)}var c=this.removeStyles(r,Uc.ignoreStyles),u=n.createCanvas(a+o,A+s),p=u.getContext("2d");n.screen.setDefaults(p),this.renderChildren(p),new fm(n,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(p,0,0,a+o,A+s);var h=n.createCanvas(a+o,A+s),d=h.getContext("2d");n.screen.setDefaults(d),r.render(d),d.globalCompositeOperation="destination-in",d.fillStyle=p.createPattern(u,"no-repeat"),d.fillRect(0,0,a+o,A+s),e.fillStyle=d.createPattern(h,"no-repeat"),e.fillRect(0,0,a+o,A+s),this.restoreStyles(r,c)}render(e){}}Uc.ignoreStyles=["mask","transform","clip-path"];var V4=()=>{};class $4 extends pr{constructor(){super(...arguments),this.type="clipPath"}apply(e){var{document:r}=this,n=Reflect.getPrototypeOf(e),{beginPath:a,closePath:A}=e;n&&(n.beginPath=V4,n.closePath=V4),Reflect.apply(a,e,[]),this.children.forEach(o=>{if(!(typeof o.path>"u")){var s=typeof o.elementTransform<"u"?o.elementTransform():null;s||(s=$i.fromElement(r,o)),s&&s.apply(e),o.path(e),n&&(n.closePath=A),s&&s.unapply(e)}}),Reflect.apply(A,e,[]),e.clip(),n&&(n.beginPath=a,n.closePath=A)}render(e){}}class Ic extends pr{constructor(){super(...arguments),this.type="filter"}apply(e,r){var{document:n,children:a}=this,A=r.getBoundingBox(e);if(A){var o=0,s=0;a.forEach(y=>{var F=y.extraFilterDistance||0;o=Math.max(o,F),s=Math.max(s,F)});var l=Math.floor(A.width),c=Math.floor(A.height),u=l+2*o,p=c+2*s;if(!(u<1||p<1)){var h=Math.floor(A.x),d=Math.floor(A.y),w=this.removeStyles(r,Ic.ignoreStyles),f=n.createCanvas(u,p),m=f.getContext("2d");n.screen.setDefaults(m),m.translate(-h+o,-d+s),r.render(m),a.forEach(y=>{typeof y.apply=="function"&&y.apply(m,0,0,u,p)}),e.drawImage(f,0,0,u,p,h-o,d-s,u,p),this.restoreStyles(r,w)}}}render(e){}}Ic.ignoreStyles=["filter","transform","clip-path"];class z4 extends pr{constructor(e,r,n){super(e,r,n),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(e,r,n,a,A){}}class K4 extends pr{constructor(){super(...arguments),this.type="feMorphology"}apply(e,r,n,a,A){}}class G4 extends pr{constructor(){super(...arguments),this.type="feComposite"}apply(e,r,n,a,A){}}class j4 extends pr{constructor(e,r,n){super(e,r,n),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(e,r,n,a,A){var{document:o,blurRadius:s}=this,l=o.window?o.window.document.body:null,c=e.canvas;c.id=o.getUniqueId(),l&&(c.style.display="none",l.appendChild(c)),ZAe(c,r,n,a,A,s),l&&l.removeChild(c)}}class W4 extends pr{constructor(){super(...arguments),this.type="title"}}class X4 extends pr{constructor(){super(...arguments),this.type="desc"}}var xie={svg:Xs,rect:lm,circle:v4,ellipse:w4,line:B4,polyline:cm,polygon:x4,path:tr,pattern:b4,marker:C4,defs:E4,linearGradient:_4,radialGradient:F4,stop:S4,animate:Wf,animateColor:k4,animateTransform:T4,font:N4,"font-face":L4,"missing-glyph":U4,glyph:sm,text:ii,tspan:Lc,tref:I4,a:D4,textPath:O4,image:P4,g:jf,symbol:M4,style:hm,use:H4,mask:Uc,clipPath:$4,filter:Ic,feDropShadow:z4,feMorphology:K4,feComposite:G4,feColorMatrix:fm,feGaussianBlur:j4,title:W4,desc:X4};function q4(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function bie(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?q4(Object(r),!0).forEach(function(n){Pp(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):q4(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Cie(t,e){var r=document.createElement("canvas");return r.width=t,r.height=e,r}function Eie(t){return dm.apply(this,arguments)}function dm(){return dm=ni(function*(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=document.createElement("img");return e&&(r.crossOrigin="Anonymous"),new Promise((n,a)=>{r.onload=()=>{n(r)},r.onerror=(A,o,s,l,c)=>{a(c)},r.src=t})}),dm.apply(this,arguments)}class si{constructor(e){var{rootEmSize:r=12,emSize:n=12,createCanvas:a=si.createCanvas,createImage:A=si.createImage,anonymousCrossOrigin:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.canvg=e,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=r,this.emSize=n,this.createCanvas=a,this.createImage=this.bindCreateImage(A,o),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(e,r){return typeof r=="boolean"?(n,a)=>e(n,typeof a=="boolean"?a:r):e}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:e}=this;return e[e.length-1]}set emSize(e){var{emSizeStack:r}=this;r.push(e)}popEmSize(){var{emSizeStack:e}=this;e.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(e=>e.loaded)}isFontsLoaded(){return this.fonts.every(e=>e.loaded)}createDocumentElement(e){var r=this.createElement(e.documentElement);return r.root=!0,r.addStylesFromStyleDefinition(),this.documentElement=r,r}createElement(e){var r=e.nodeName.replace(/^[^:]+:/,""),n=si.elementTypes[r];return typeof n<"u"?new n(this,e):new y4(this,e)}createTextNode(e){return new wie(this,e)}setViewBox(e){this.screen.setViewBox(bie({document:this},e))}}si.createCanvas=Cie,si.createImage=Eie,si.elementTypes=xie;function Y4(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Ho(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Y4(Object(r),!0).forEach(function(n){Pp(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Y4(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}class Vo{constructor(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new Gf(n),this.screen=new Nc(e,n),this.options=n;var a=new si(this,n),A=a.createDocumentElement(r);this.document=a,this.documentElement=A}static from(e,r){var n=arguments;return ni(function*(){var a=n.length>2&&n[2]!==void 0?n[2]:{},A=new Gf(a),o=yield A.parse(r);return new Vo(e,o,a)})()}static fromString(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=new Gf(n),A=a.parseFromString(r);return new Vo(e,A,n)}fork(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Vo.from(e,r,Ho(Ho({},this.options),n))}forkString(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Vo.fromString(e,r,Ho(Ho({},this.options),n))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var e=arguments,r=this;return ni(function*(){var n=e.length>0&&e[0]!==void 0?e[0]:{};r.start(Ho({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},n)),yield r.ready(),r.stop()})()}start(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{documentElement:r,screen:n,options:a}=this;n.start(r,Ho(Ho({enableRedraw:!0},a),e))}stop(){this.screen.stop()}resize(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(e,r,n)}}const _ie=Object.freeze(Object.defineProperty({__proto__:null,AElement:D4,AnimateColorElement:k4,AnimateElement:Wf,AnimateTransformElement:T4,BoundingBox:Oa,CB1:Zp,CB2:em,CB3:tm,CB4:rm,Canvg:Vo,CircleElement:v4,ClipPathElement:$4,DefsElement:E4,DescElement:X4,Document:si,Element:pr,EllipseElement:w4,FeColorMatrixElement:fm,FeCompositeElement:G4,FeDropShadowElement:z4,FeGaussianBlurElement:j4,FeMorphologyElement:K4,FilterElement:Ic,Font:Pn,FontElement:N4,FontFaceElement:L4,GElement:jf,GlyphElement:sm,GradientElement:um,ImageElement:P4,LineElement:B4,LinearGradientElement:_4,MarkerElement:C4,MaskElement:Uc,Matrix:im,MissingGlyphElement:U4,Mouse:c4,PSEUDO_ZERO:Ro,Parser:Gf,PathElement:tr,PathParser:Tt,PatternElement:b4,Point:Ur,PolygonElement:x4,PolylineElement:cm,Property:pt,QB1:nm,QB2:am,QB3:Am,RadialGradientElement:F4,RectElement:lm,RenderedElement:zi,Rotate:d4,SVGElement:Xs,SVGFontLoader:R4,Scale:g4,Screen:Nc,Skew:om,SkewX:p4,SkewY:m4,StopElement:S4,StyleElement:hm,SymbolElement:M4,TRefElement:I4,TSpanElement:Lc,TextElement:ii,TextPathElement:O4,TitleElement:W4,Transform:$i,Translate:f4,UnknownElement:y4,UseElement:H4,ViewPort:l4,compressSpaces:Po,default:Vo,getSelectorSpecificity:s4,normalizeAttributeName:i4,normalizeColor:o4,parseExternalUrl:qp,presets:nie,toNumbers:oa,trimLeft:a4,trimRight:A4,vectorMagnitude:Yp,vectorsAngle:Jp,vectorsRatio:Kf},Symbol.toStringTag,{value:"Module"}));Gr.VueUiChestnut=Jz,Gr.VueUiDonut=r9,Gr.VueUiGauge=h$,Gr.VueUiOnion=TK,Gr.VueUiQuadrant=DV,Gr.VueUiRadar=vH,Gr.VueUiRating=NG,Gr.VueUiScreenshot=dG,Gr.VueUiSkeleton=Oj,Gr.VueUiSparkline=Yj,Gr.VueUiTable=fR,Gr.VueUiVerticalBar=fG,Gr.VueUiWaffle=I9,Gr.VueUiXy=V7,Object.defineProperty(Gr,Symbol.toStringTag,{value:"Module"})});