/
var
/
www
/
barefootlaw.org
/
wp-content
/
plugins
/
google-analytics-for-wordpress
/
lite
/
assets
/
vue
/
js
/
Upload File
HOME
(function(t){function e(e){for(var n,o,a=e[0],s=e[1],l=e[2],u=0,h=[];u<a.length;u++)o=a[u],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&h.push(r[o][0]),r[o]=0;for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(t[n]=s[n]);c&&c(e);while(h.length)h.shift()();return i.push.apply(i,l||[]),A()}function A(){for(var t,e=0;e<i.length;e++){for(var A=i[e],n=!0,a=1;a<A.length;a++){var s=A[a];0!==r[s]&&(n=!1)}n&&(i.splice(e--,1),t=o(o.s=A[0]))}return t}var n={},r={reports:0},i=[];function o(e){if(n[e])return n[e].exports;var A=n[e]={i:e,l:!1,exports:{}};return t[e].call(A.exports,A,A.exports,o),A.l=!0,A.exports}o.m=t,o.c=n,o.d=function(t,e,A){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:A})},o.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var A=Object.create(null);if(o.r(A),Object.defineProperty(A,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(A,n,function(e){return t[e]}.bind(null,n));return A},o.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="";var a=window["monsterinsightsjsonp"]=window["monsterinsightsjsonp"]||[],s=a.push.bind(a);a.push=e,a=a.slice();for(var l=0;l<a.length;l++)e(a[l]);var c=s;i.push([2,"chunk-vendors","chunk-common"]),A()})({"0097":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAPfSURBVHgBzVhdbtNAEJ5dh1AhUSWCA7gnIE3hGecETU/Q9ARtU4HEU90nJFAacoKmJ2g5QcwbEv0xJ2h4BskREkgt9S4zsR28G9v5cys+KfJm7d35PDvzeXYZLIi1Q0/G/g7w1wcJfQnik7jhp+6bch9mAIMFoRFKgiul37nYe9qF/4RQhD4SO5hEjKfdqNheqfLWMyE/mIwZR89bXrvS9kowCyEiUliGnvEQLl+88yowA5gPNSlhF5tO0n3JYMeQcJn2siyJDBLpYTMaMOC3UPvyuuwmTaAv2XmzPJoTPWEaUtj43psJQ/v+NdT0oB/zUOEhnMTIEEqiAL1ZPUVwd8v98+aThs9gRVL2qaAXP9GXTyFUbXttHJhkeG5SETHBYBXl4FS7VSkI2I93jNxbbf1oUNBNmDtz+abBWss7Qat1hQTG3dmrskPtkYeQjMKUXMwkHGjzLeQpgs9hS18+acDIEUNC5B1Q4wbQxbWzvbKdNylcvgH3YUvrNkMOASH0jpoFDLq07tS8C1LB8ohjxWTIgYVpfhW/SVkREYqAgmajhuxrc88dU4EkqHZFccnkvOhb2rOOToaQt6dCG068j13/3uAMjPV4p5TiY9okeZPSbTHOn3GMFzPeyQXPdH+epITPHaVDgkVBbcb7bgswJISfhE38efi7Wjv8ubkoqcT5Hoypd4kIKdJNaRk27fCeiWH+QTeQRgo1pQ7JsPX5YrYUQmkYEZVBJQiTSFGb+uadj0CElJvRx45KCFJUGmyMe2KM1AQyifMl1EUDVsU1ZbE4Qg1aRVfO/a2aBZX33y3DKPRiXS6nYjz+EBfCgnsC51xLAPmNo6sVbzDG1+GeoNuSUjooO1yvUayca+lEhDaseB9x4UkSXijCNtwxjOLYd9ElLsO0xwxQvrxUiC9S80zC0DsMGopNCR26/qsYtWwDKsKDjBtkTU4KjBcSOnzOsM+by8eZZHB7ZSzDJcRskRxcNMsr1B4JY1LRZAhow2TYkKHoOozHw+rQVDpjOjciFBZNHeVBdCvVwFkbO5hSgckzuIk40utpBG6zy90xQgSfcRsvrkaqnrWxm0bRKxiPtEwoMQ1lbBAWtmpOH4yVHKplj+luDWbo+jdwMO2JBr0EX4JtJLIzPhXQ1qimF4OJhw2ZpAI4VFwJIVz4VXBdOwh8WhZ49MfkhmGFomeljHfRMxtJlWnq6QfFTbgNzluTOrRMadk78Tim2vIa+NR+hremAi0RZXK0IUzD1OdDRIyxoYLPKpgOCW88k3IhFGEYXwLqOPAl1eOSzn3C1A/TfoBB7GD7a/EGTj/PeKT3F48e82eqTZAnAAAAAElFTkSuQmCC"},"07d6":function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},"0952":function(t,e,A){},1134:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAASCSURBVHgB7VlBcts2FH0A63amM52a03ZPnyCylb3VE9Q9QZUT2I6bRVeWVl0kiq0TWL5BeoLI+9hlT2B23XjoVWdah0A+SMohAVAiRMpeRG+GY5OEgP/A/z8ePoA11vi8wdASOi//6XHOOwx8VzLQX2wiuxRu6YogEUmIv4QQ0/DFD1O0gEYEOoN4k3+LfSZxgE/G1oUiNE3+xzD8zY+wJJYikBt+nBveHBKTZYk4E+i+er8H7p3BfcYXIZIyGV4dfT9x+ZETgZ2T+KRq1iX5Ob17Q38vvATh3Qai8NBXvo/OSby5cYcg8Sg2mOhJ8J9YxQRQ/AyuDv0h2iZAxp+RgX1jwMyXx4JjMjO4Vn+juE+jH5MBAcxOJ5dH/rM6/dQiYDNezTiXGL478k/RAE9H8YBm/dh4UZPEQgJkvArWQblvRILhR5rxCC2AXCygyXirfw0a95Qm6HDeb+cS2Bm97zOWBuw92jZ+hioSEPj58lf/TdXvKgl0fo8D7yu8RaHDVRl/P6adxG3CsFUVX7yqM+/L1C+D4jMX47uvYzm7UBOqbzUGspV7hs0vhCVGclgJqNmnb9MvPiN/HK5q5otQY0gaq/iMgvxApWJbeyuBfPY/dUCuQ8E0wAPhijJbmp4L4EJY1x+7CzH0SvfajDwIpBgXbxnj+7ZmBgGlKqEFEc3IBA8MwfkEWiw8fRn39HYGAZLE5UYMlSlslVBZR0D8UXwmuOjo7QwCpOefFO+lwAUeCUzKaemesZ7exowBpqVOjhCPBJF42tjsid7GFsSBdh/hsbBhjG2kUhuBUiMXhdk2LGPXItA6lKbCimAjUGJdtQK6QAnC7ig+S1d4B1jGNrzBICDNRgGWAMmBZ6XVlKQJicNrJc9rd3K3OB7NNCrLWYeLxMi9daAWPxJm20xbxdXeggTedR234p4+tvzbaKM/oLpNKe8z7u1iSaggVBpKyWF1W3gV1HErhvLYUkojpZsrseDlRhJ7TeNAKczL5/62s1sx7Gm2TfUmBoF3L3zVqKRBSAn20QJytyK9L86Lz8mtfL1t7mL3E5cq4sy2EqxpVNZUgssg+xrf9cmttpVR6qL/jcIAudhx+R5TW39WAqQE9Q6DndFNO1W4HEQkvHrub9l2eblLBcVnCeySvnJP3H19QyRKM3+b/IftJnXMOsj34telh4xKLIf2EkvlSpwwPoAWC2qT77oYuaBQSLhH6mKo3lBVEkh1iIDOOlgVCVsVJMWCvfhcLZTVY8oBjRWQqDJeLYKLdoMLxRxljAOIctpDRsJNFlSAVuV96utPmJLlvE4hoXZxt/vqZkL7zV8sr5zL4un5wjein6fnwNLknBa+fp2+nMrrlYXYDLdIy+vJhUhEiH83onCQl9fJYHx9F8DjHU/Jg2yFrVrdx2R87ZTtfMAxtyzeAOn5AiWNeXVQG5w3NFVyoCHG1OeWq/EKS52RzaCKsZ4UAzpx2XX9Ivn5wvgDx2mTbWsjAkWoohPVbXppWYYqG1JJ5tzP802SOoIK1REUFwhtwmyNNdZwx0dpk/ibKAgl4wAAAABJRU5ErkJggg=="},2:function(t,e,A){t.exports=A("ed59")},"30ef":function(t,e,A){ /*! * Chart.js v2.9.4 * https://www.chartjs.org * (c) 2020 Chart.js Contributors * Released under the MIT License */ (function(e,n){t.exports=n(function(){try{return A("c1df")}catch(t){}}())})(0,(function(t){"use strict";function e(t,e){return e={exports:{}},t(e,e.exports),e.exports}function A(t){return t&&t["default"]||t}t=t&&t.hasOwnProperty("default")?t["default"]:t;var n={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},r=e((function(t){var e={};for(var A in n)n.hasOwnProperty(A)&&(e[n[A]]=A);var r=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var i in r)if(r.hasOwnProperty(i)){if(!("channels"in r[i]))throw new Error("missing channels property: "+i);if(!("labels"in r[i]))throw new Error("missing channel labels property: "+i);if(r[i].labels.length!==r[i].channels)throw new Error("channel and label counts mismatch: "+i);var o=r[i].channels,a=r[i].labels;delete r[i].channels,delete r[i].labels,Object.defineProperty(r[i],"channels",{value:o}),Object.defineProperty(r[i],"labels",{value:a})}function s(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}r.rgb.hsl=function(t){var e,A,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a;return s===a?e=0:r===s?e=(i-o)/l:i===s?e=2+(o-r)/l:o===s&&(e=4+(r-i)/l),e=Math.min(60*e,360),e<0&&(e+=360),n=(a+s)/2,A=s===a?0:n<=.5?l/(s+a):l/(2-s-a),[e,100*A,100*n]},r.rgb.hsv=function(t){var e,A,n,r,i,o=t[0]/255,a=t[1]/255,s=t[2]/255,l=Math.max(o,a,s),c=l-Math.min(o,a,s),u=function(t){return(l-t)/6/c+.5};return 0===c?r=i=0:(i=c/l,e=u(o),A=u(a),n=u(s),o===l?r=n-A:a===l?r=1/3+e-n:s===l&&(r=2/3+A-e),r<0?r+=1:r>1&&(r-=1)),[360*r,100*i,100*l]},r.rgb.hwb=function(t){var e=t[0],A=t[1],n=t[2],i=r.rgb.hsl(t)[0],o=1/255*Math.min(e,Math.min(A,n));return n=1-1/255*Math.max(e,Math.max(A,n)),[i,100*o,100*n]},r.rgb.cmyk=function(t){var e,A,n,r,i=t[0]/255,o=t[1]/255,a=t[2]/255;return r=Math.min(1-i,1-o,1-a),e=(1-i-r)/(1-r)||0,A=(1-o-r)/(1-r)||0,n=(1-a-r)/(1-r)||0,[100*e,100*A,100*n,100*r]},r.rgb.keyword=function(t){var A=e[t];if(A)return A;var r,i=1/0;for(var o in n)if(n.hasOwnProperty(o)){var a=n[o],l=s(t,a);l<i&&(i=l,r=o)}return r},r.keyword.rgb=function(t){return n[t]},r.rgb.xyz=function(t){var e=t[0]/255,A=t[1]/255,n=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,A=A>.04045?Math.pow((A+.055)/1.055,2.4):A/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var r=.4124*e+.3576*A+.1805*n,i=.2126*e+.7152*A+.0722*n,o=.0193*e+.1192*A+.9505*n;return[100*r,100*i,100*o]},r.rgb.lab=function(t){var e,A,n,i=r.rgb.xyz(t),o=i[0],a=i[1],s=i[2];return o/=95.047,a/=100,s/=108.883,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,e=116*a-16,A=500*(o-a),n=200*(a-s),[e,A,n]},r.hsl.rgb=function(t){var e,A,n,r,i,o=t[0]/360,a=t[1]/100,s=t[2]/100;if(0===a)return i=255*s,[i,i,i];A=s<.5?s*(1+a):s+a-s*a,e=2*s-A,r=[0,0,0];for(var l=0;l<3;l++)n=o+1/3*-(l-1),n<0&&n++,n>1&&n--,i=6*n<1?e+6*(A-e)*n:2*n<1?A:3*n<2?e+(A-e)*(2/3-n)*6:e,r[l]=255*i;return r},r.hsl.hsv=function(t){var e,A,n=t[0],r=t[1]/100,i=t[2]/100,o=r,a=Math.max(i,.01);return i*=2,r*=i<=1?i:2-i,o*=a<=1?a:2-a,A=(i+r)/2,e=0===i?2*o/(a+o):2*r/(i+r),[n,100*e,100*A]},r.hsv.rgb=function(t){var e=t[0]/60,A=t[1]/100,n=t[2]/100,r=Math.floor(e)%6,i=e-Math.floor(e),o=255*n*(1-A),a=255*n*(1-A*i),s=255*n*(1-A*(1-i));switch(n*=255,r){case 0:return[n,s,o];case 1:return[a,n,o];case 2:return[o,n,s];case 3:return[o,a,n];case 4:return[s,o,n];case 5:return[n,o,a]}},r.hsv.hsl=function(t){var e,A,n,r=t[0],i=t[1]/100,o=t[2]/100,a=Math.max(o,.01);return n=(2-i)*o,e=(2-i)*a,A=i*a,A/=e<=1?e:2-e,A=A||0,n/=2,[r,100*A,100*n]},r.hwb.rgb=function(t){var e,A,n,r,i,o,a,s=t[0]/360,l=t[1]/100,c=t[2]/100,u=l+c;switch(u>1&&(l/=u,c/=u),e=Math.floor(6*s),A=1-c,n=6*s-e,0!==(1&e)&&(n=1-n),r=l+n*(A-l),e){default:case 6:case 0:i=A,o=r,a=l;break;case 1:i=r,o=A,a=l;break;case 2:i=l,o=A,a=r;break;case 3:i=l,o=r,a=A;break;case 4:i=r,o=l,a=A;break;case 5:i=A,o=l,a=r;break}return[255*i,255*o,255*a]},r.cmyk.rgb=function(t){var e,A,n,r=t[0]/100,i=t[1]/100,o=t[2]/100,a=t[3]/100;return e=1-Math.min(1,r*(1-a)+a),A=1-Math.min(1,i*(1-a)+a),n=1-Math.min(1,o*(1-a)+a),[255*e,255*A,255*n]},r.xyz.rgb=function(t){var e,A,n,r=t[0]/100,i=t[1]/100,o=t[2]/100;return e=3.2406*r+-1.5372*i+-.4986*o,A=-.9689*r+1.8758*i+.0415*o,n=.0557*r+-.204*i+1.057*o,e=e>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,A=A>.0031308?1.055*Math.pow(A,1/2.4)-.055:12.92*A,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,e=Math.min(Math.max(0,e),1),A=Math.min(Math.max(0,A),1),n=Math.min(Math.max(0,n),1),[255*e,255*A,255*n]},r.xyz.lab=function(t){var e,A,n,r=t[0],i=t[1],o=t[2];return r/=95.047,i/=100,o/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,e=116*i-16,A=500*(r-i),n=200*(i-o),[e,A,n]},r.lab.xyz=function(t){var e,A,n,r=t[0],i=t[1],o=t[2];A=(r+16)/116,e=i/500+A,n=A-o/200;var a=Math.pow(A,3),s=Math.pow(e,3),l=Math.pow(n,3);return A=a>.008856?a:(A-16/116)/7.787,e=s>.008856?s:(e-16/116)/7.787,n=l>.008856?l:(n-16/116)/7.787,e*=95.047,A*=100,n*=108.883,[e,A,n]},r.lab.lch=function(t){var e,A,n,r=t[0],i=t[1],o=t[2];return e=Math.atan2(o,i),A=360*e/2/Math.PI,A<0&&(A+=360),n=Math.sqrt(i*i+o*o),[r,n,A]},r.lch.lab=function(t){var e,A,n,r=t[0],i=t[1],o=t[2];return n=o/360*2*Math.PI,e=i*Math.cos(n),A=i*Math.sin(n),[r,e,A]},r.rgb.ansi16=function(t){var e=t[0],A=t[1],n=t[2],i=1 in arguments?arguments[1]:r.rgb.hsv(t)[2];if(i=Math.round(i/50),0===i)return 30;var o=30+(Math.round(n/255)<<2|Math.round(A/255)<<1|Math.round(e/255));return 2===i&&(o+=60),o},r.hsv.ansi16=function(t){return r.rgb.ansi16(r.hsv.rgb(t),t[2])},r.rgb.ansi256=function(t){var e=t[0],A=t[1],n=t[2];if(e===A&&A===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var r=16+36*Math.round(e/255*5)+6*Math.round(A/255*5)+Math.round(n/255*5);return r},r.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var A=.5*(1+~~(t>50)),n=(1&e)*A*255,r=(e>>1&1)*A*255,i=(e>>2&1)*A*255;return[n,r,i]},r.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var A;t-=16;var n=Math.floor(t/36)/5*255,r=Math.floor((A=t%36)/6)/5*255,i=A%6/5*255;return[n,r,i]},r.rgb.hex=function(t){var e=((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2])),A=e.toString(16).toUpperCase();return"000000".substring(A.length)+A},r.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var A=e[0];3===e[0].length&&(A=A.split("").map((function(t){return t+t})).join(""));var n=parseInt(A,16),r=n>>16&255,i=n>>8&255,o=255&n;return[r,i,o]},r.rgb.hcg=function(t){var e,A,n=t[0]/255,r=t[1]/255,i=t[2]/255,o=Math.max(Math.max(n,r),i),a=Math.min(Math.min(n,r),i),s=o-a;return e=s<1?a/(1-s):0,A=s<=0?0:o===n?(r-i)/s%6:o===r?2+(i-n)/s:4+(n-r)/s+4,A/=6,A%=1,[360*A,100*s,100*e]},r.hsl.hcg=function(t){var e=t[1]/100,A=t[2]/100,n=1,r=0;return n=A<.5?2*e*A:2*e*(1-A),n<1&&(r=(A-.5*n)/(1-n)),[t[0],100*n,100*r]},r.hsv.hcg=function(t){var e=t[1]/100,A=t[2]/100,n=e*A,r=0;return n<1&&(r=(A-n)/(1-n)),[t[0],100*n,100*r]},r.hcg.rgb=function(t){var e=t[0]/360,A=t[1]/100,n=t[2]/100;if(0===A)return[255*n,255*n,255*n];var r=[0,0,0],i=e%1*6,o=i%1,a=1-o,s=0;switch(Math.floor(i)){case 0:r[0]=1,r[1]=o,r[2]=0;break;case 1:r[0]=a,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=o;break;case 3:r[0]=0,r[1]=a,r[2]=1;break;case 4:r[0]=o,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=a}return s=(1-A)*n,[255*(A*r[0]+s),255*(A*r[1]+s),255*(A*r[2]+s)]},r.hcg.hsv=function(t){var e=t[1]/100,A=t[2]/100,n=e+A*(1-e),r=0;return n>0&&(r=e/n),[t[0],100*r,100*n]},r.hcg.hsl=function(t){var e=t[1]/100,A=t[2]/100,n=A*(1-e)+.5*e,r=0;return n>0&&n<.5?r=e/(2*n):n>=.5&&n<1&&(r=e/(2*(1-n))),[t[0],100*r,100*n]},r.hcg.hwb=function(t){var e=t[1]/100,A=t[2]/100,n=e+A*(1-e);return[t[0],100*(n-e),100*(1-n)]},r.hwb.hcg=function(t){var e=t[1]/100,A=t[2]/100,n=1-A,r=n-e,i=0;return r<1&&(i=(n-r)/(1-r)),[t[0],100*r,100*i]},r.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},r.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},r.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},r.gray.hsl=r.gray.hsv=function(t){return[0,0,t[0]]},r.gray.hwb=function(t){return[0,100,t[0]]},r.gray.cmyk=function(t){return[0,0,0,t[0]]},r.gray.lab=function(t){return[t[0],0,0]},r.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),A=(e<<16)+(e<<8)+e,n=A.toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}}));r.rgb,r.hsl,r.hsv,r.hwb,r.cmyk,r.xyz,r.lab,r.lch,r.hex,r.keyword,r.ansi16,r.ansi256,r.hcg,r.apple,r.gray;function i(){for(var t={},e=Object.keys(r),A=e.length,n=0;n<A;n++)t[e[n]]={distance:-1,parent:null};return t}function o(t){var e=i(),A=[t];e[t].distance=0;while(A.length)for(var n=A.pop(),o=Object.keys(r[n]),a=o.length,s=0;s<a;s++){var l=o[s],c=e[l];-1===c.distance&&(c.distance=e[n].distance+1,c.parent=n,A.unshift(l))}return e}function a(t,e){return function(A){return e(t(A))}}function s(t,e){var A=[e[t].parent,t],n=r[e[t].parent][t],i=e[t].parent;while(e[i].parent)A.unshift(e[i].parent),n=a(r[e[i].parent][i],n),i=e[i].parent;return n.conversion=A,n}var l=function(t){for(var e=o(t),A={},n=Object.keys(e),r=n.length,i=0;i<r;i++){var a=n[i],l=e[a];null!==l.parent&&(A[a]=s(a,e))}return A},c={},u=Object.keys(r);function h(t){var e=function(e){return void 0===e||null===e?e:(arguments.length>1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}function d(t){var e=function(e){if(void 0===e||null===e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var A=t(e);if("object"===typeof A)for(var n=A.length,r=0;r<n;r++)A[r]=Math.round(A[r]);return A};return"conversion"in t&&(e.conversion=t.conversion),e}u.forEach((function(t){c[t]={},Object.defineProperty(c[t],"channels",{value:r[t].channels}),Object.defineProperty(c[t],"labels",{value:r[t].labels});var e=l(t),A=Object.keys(e);A.forEach((function(A){var n=e[A];c[t][A]=d(n),c[t][A].raw=h(n)}))}));var g=c,f={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},p={getRgba:m,getHsla:w,getRgb:v,getHsl:y,getHwb:B,getAlpha:b,hexString:C,rgbString:x,rgbaString:F,percentString:Q,percentaString:U,hslString:_,hslaString:I,hwbString:E,keyword:k};function m(t){if(t){var e=/^#([a-fA-F0-9]{3,4})$/i,A=/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i,n=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,r=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,i=/(\w+)/,o=[0,0,0],a=1,s=t.match(e),l="";if(s){s=s[1],l=s[3];for(var c=0;c<o.length;c++)o[c]=parseInt(s[c]+s[c],16);l&&(a=Math.round(parseInt(l+l,16)/255*100)/100)}else if(s=t.match(A)){l=s[2],s=s[1];for(c=0;c<o.length;c++)o[c]=parseInt(s.slice(2*c,2*c+2),16);l&&(a=Math.round(parseInt(l,16)/255*100)/100)}else if(s=t.match(n)){for(c=0;c<o.length;c++)o[c]=parseInt(s[c+1]);a=parseFloat(s[4])}else if(s=t.match(r)){for(c=0;c<o.length;c++)o[c]=Math.round(2.55*parseFloat(s[c+1]));a=parseFloat(s[4])}else if(s=t.match(i)){if("transparent"==s[1])return[0,0,0,0];if(o=f[s[1]],!o)return}for(c=0;c<o.length;c++)o[c]=S(o[c],0,255);return a=a||0==a?S(a,0,1):1,o[3]=a,o}}function w(t){if(t){var e=/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,A=t.match(e);if(A){var n=parseFloat(A[4]),r=S(parseInt(A[1]),0,360),i=S(parseFloat(A[2]),0,100),o=S(parseFloat(A[3]),0,100),a=S(isNaN(n)?1:n,0,1);return[r,i,o,a]}}}function B(t){if(t){var e=/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,A=t.match(e);if(A){var n=parseFloat(A[4]),r=S(parseInt(A[1]),0,360),i=S(parseFloat(A[2]),0,100),o=S(parseFloat(A[3]),0,100),a=S(isNaN(n)?1:n,0,1);return[r,i,o,a]}}}function v(t){var e=m(t);return e&&e.slice(0,3)}function y(t){var e=w(t);return e&&e.slice(0,3)}function b(t){var e=m(t);return e||(e=w(t))||(e=B(t))?e[3]:void 0}function C(t,e){e=void 0!==e&&3===t.length?e:t[3];return"#"+D(t[0])+D(t[1])+D(t[2])+(e>=0&&e<1?D(Math.round(255*e)):"")}function x(t,e){return e<1||t[3]&&t[3]<1?F(t,e):"rgb("+t[0]+", "+t[1]+", "+t[2]+")"}function F(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function Q(t,e){if(e<1||t[3]&&t[3]<1)return U(t,e);var A=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return"rgb("+A+"%, "+n+"%, "+r+"%)"}function U(t,e){var A=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return"rgba("+A+"%, "+n+"%, "+r+"%, "+(e||t[3]||1)+")"}function _(t,e){return e<1||t[3]&&t[3]<1?I(t,e):"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"}function I(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function E(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"}function k(t){return H[t.slice(0,3)]}function S(t,e,A){return Math.min(Math.max(e,t),A)}function D(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}var H={};for(var M in f)H[f[M]]=M;var O=function(t){return t instanceof O?t:this instanceof O?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"===typeof t?(e=p.getRgba(t),e?this.setValues("rgb",e):(e=p.getHsla(t))?this.setValues("hsl",e):(e=p.getHwb(t))&&this.setValues("hwb",e)):"object"===typeof t&&(e=t,void 0!==e.r||void 0!==e.red?this.setValues("rgb",e):void 0!==e.l||void 0!==e.lightness?this.setValues("hsl",e):void 0!==e.v||void 0!==e.value?this.setValues("hsv",e):void 0!==e.w||void 0!==e.whiteness?this.setValues("hwb",e):void 0===e.c&&void 0===e.cyan||this.setValues("cmyk",e)))):new O(t);var e};O.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var t=this.values;return 1!==t.alpha?t.hwb.concat([t.alpha]):t.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var t=this.values;return t.rgb.concat([t.alpha])},hslaArray:function(){var t=this.values;return t.hsl.concat([t.alpha])},alpha:function(t){return void 0===t?this.values.alpha:(this.setValues("alpha",t),this)},red:function(t){return this.setChannel("rgb",0,t)},green:function(t){return this.setChannel("rgb",1,t)},blue:function(t){return this.setChannel("rgb",2,t)},hue:function(t){return t&&(t%=360,t=t<0?360+t:t),this.setChannel("hsl",0,t)},saturation:function(t){return this.setChannel("hsl",1,t)},lightness:function(t){return this.setChannel("hsl",2,t)},saturationv:function(t){return this.setChannel("hsv",1,t)},whiteness:function(t){return this.setChannel("hwb",1,t)},blackness:function(t){return this.setChannel("hwb",2,t)},value:function(t){return this.setChannel("hsv",2,t)},cyan:function(t){return this.setChannel("cmyk",0,t)},magenta:function(t){return this.setChannel("cmyk",1,t)},yellow:function(t){return this.setChannel("cmyk",2,t)},black:function(t){return this.setChannel("cmyk",3,t)},hexString:function(){return p.hexString(this.values.rgb)},rgbString:function(){return p.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return p.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return p.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return p.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return p.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return p.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return p.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var t=this.values.rgb;return t[0]<<16|t[1]<<8|t[2]},luminosity:function(){for(var t=this.values.rgb,e=[],A=0;A<t.length;A++){var n=t[A]/255;e[A]=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),A=t.luminosity();return e>A?(e+.05)/(A+.05):(A+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb,e=(299*t[0]+587*t[1]+114*t[2])/1e3;return e<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,A=(e[0]+t)%360;return e[0]=A<0?360+A:A,this.setValues("hsl",e),this},mix:function(t,e){var A=this,n=t,r=void 0===e?.5:e,i=2*r-1,o=A.alpha()-n.alpha(),a=((i*o===-1?i:(i+o)/(1+i*o))+1)/2,s=1-a;return this.rgb(a*A.red()+s*n.red(),a*A.green()+s*n.green(),a*A.blue()+s*n.blue()).alpha(A.alpha()*r+n.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var t,e,A=new O,n=this.values,r=A.values;for(var i in n)n.hasOwnProperty(i)&&(t=n[i],e={}.toString.call(t),"[object Array]"===e?r[i]=t.slice(0):"[object Number]"===e?r[i]=t:console.error("unexpected color value:",t));return A}},O.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},O.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},O.prototype.getValues=function(t){for(var e=this.values,A={},n=0;n<t.length;n++)A[t.charAt(n)]=e[t][n];return 1!==e.alpha&&(A.a=e.alpha),A},O.prototype.setValues=function(t,e){var A,n,r=this.values,i=this.spaces,o=this.maxes,a=1;if(this.valid=!0,"alpha"===t)a=e;else if(e.length)r[t]=e.slice(0,t.length),a=e[t.length];else if(void 0!==e[t.charAt(0)]){for(A=0;A<t.length;A++)r[t][A]=e[t.charAt(A)];a=e.a}else if(void 0!==e[i[t][0]]){var s=i[t];for(A=0;A<t.length;A++)r[t][A]=e[s[A]];a=e.alpha}if(r.alpha=Math.max(0,Math.min(1,void 0===a?r.alpha:a)),"alpha"===t)return!1;for(A=0;A<t.length;A++)n=Math.max(0,Math.min(o[t][A],r[t][A])),r[t][A]=Math.round(n);for(var l in i)l!==t&&(r[l]=g[t][l](r[t]));return!0},O.prototype.setSpace=function(t,e){var A=e[0];return void 0===A?this.getValues(t):("number"===typeof A&&(A=Array.prototype.slice.call(e)),this.setValues(t,A),this)},O.prototype.setChannel=function(t,e,A){var n=this.values[t];return void 0===A?n[e]:(A===n[e]||(n[e]=A,this.setValues(t,n)),this)},"undefined"!==typeof window&&(window.Color=O);var T=O;function P(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}var L={noop:function(){},uid:function(){var t=0;return function(){return t++}}(),isNullOrUndef:function(t){return null===t||"undefined"===typeof t},isArray:function(t){if(Array.isArray&&Array.isArray(t))return!0;var e=Object.prototype.toString.call(t);return"[object"===e.substr(0,7)&&"Array]"===e.substr(-6)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},isFinite:function(t){return("number"===typeof t||t instanceof Number)&&isFinite(t)},valueOrDefault:function(t,e){return"undefined"===typeof t?e:t},valueAtIndexOrDefault:function(t,e,A){return L.valueOrDefault(L.isArray(t)?t[e]:t,A)},callback:function(t,e,A){if(t&&"function"===typeof t.call)return t.apply(A,e)},each:function(t,e,A,n){var r,i,o;if(L.isArray(t))if(i=t.length,n)for(r=i-1;r>=0;r--)e.call(A,t[r],r);else for(r=0;r<i;r++)e.call(A,t[r],r);else if(L.isObject(t))for(o=Object.keys(t),i=o.length,r=0;r<i;r++)e.call(A,t[o[r]],o[r])},arrayEquals:function(t,e){var A,n,r,i;if(!t||!e||t.length!==e.length)return!1;for(A=0,n=t.length;A<n;++A)if(r=t[A],i=e[A],r instanceof Array&&i instanceof Array){if(!L.arrayEquals(r,i))return!1}else if(r!==i)return!1;return!0},clone:function(t){if(L.isArray(t))return t.map(L.clone);if(L.isObject(t)){for(var e=Object.create(t),A=Object.keys(t),n=A.length,r=0;r<n;++r)e[A[r]]=L.clone(t[A[r]]);return e}return t},_merger:function(t,e,A,n){if(P(t)){var r=e[t],i=A[t];L.isObject(r)&&L.isObject(i)?L.merge(r,i,n):e[t]=L.clone(i)}},_mergerIf:function(t,e,A){if(P(t)){var n=e[t],r=A[t];L.isObject(n)&&L.isObject(r)?L.mergeIf(n,r):e.hasOwnProperty(t)||(e[t]=L.clone(r))}},merge:function(t,e,A){var n,r,i,o,a,s=L.isArray(e)?e:[e],l=s.length;if(!L.isObject(t))return t;for(A=A||{},n=A.merger||L._merger,r=0;r<l;++r)if(e=s[r],L.isObject(e))for(i=Object.keys(e),a=0,o=i.length;a<o;++a)n(i[a],t,e,A);return t},mergeIf:function(t,e){return L.merge(t,e,{merger:L._mergerIf})},extend:Object.assign||function(t){return L.merge(t,[].slice.call(arguments,1),{merger:function(t,e,A){e[t]=A[t]}})},inherits:function(t){var e=this,A=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},n=function(){this.constructor=A};return n.prototype=e.prototype,A.prototype=new n,A.extend=L.inherits,t&&L.extend(A.prototype,t),A.__super__=e.prototype,A},_deprecated:function(t,e,A,n){void 0!==e&&console.warn(t+': "'+A+'" is deprecated. Please use "'+n+'" instead')}},R=L;L.callCallback=L.callback,L.indexOf=function(t,e,A){return Array.prototype.indexOf.call(t,e,A)},L.getValueOrDefault=L.valueOrDefault,L.getValueAtIndexOrDefault=L.valueAtIndexOrDefault;var N={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return(t-=1)*t*t+1},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-((t-=1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return(t-=1)*t*t*t*t+1},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return 1-Math.cos(t*(Math.PI/2))},easeOutSine:function(t){return Math.sin(t*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t)-1)},easeInExpo:function(t){return 0===t?0:Math.pow(2,10*(t-1))},easeOutExpo:function(t){return 1===t?1:1-Math.pow(2,-10*t)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},easeInCirc:function(t){return t>=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,A=0,n=1;return 0===t?0:1===t?1:(A||(A=.3),n<1?(n=1,e=A/4):e=A/(2*Math.PI)*Math.asin(1/n),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/A))},easeOutElastic:function(t){var e=1.70158,A=0,n=1;return 0===t?0:1===t?1:(A||(A=.3),n<1?(n=1,e=A/4):e=A/(2*Math.PI)*Math.asin(1/n),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/A)+1)},easeInOutElastic:function(t){var e=1.70158,A=0,n=1;return 0===t?0:2===(t/=.5)?1:(A||(A=.45),n<1?(n=1,e=A/4):e=A/(2*Math.PI)*Math.asin(1/n),t<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/A)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/A)*.5+1)},easeInBack:function(t){var e=1.70158;return t*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-N.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*N.easeInBounce(2*t):.5*N.easeOutBounce(2*t-1)+.5}},K={effects:N};R.easingEffects=N;var j=Math.PI,V=j/180,G=2*j,q=j/2,W=j/4,Y=2*j/3,z={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,A,n,r,i){if(i){var o=Math.min(i,r/2,n/2),a=e+o,s=A+o,l=e+n-o,c=A+r-o;t.moveTo(e,s),a<l&&s<c?(t.arc(a,s,o,-j,-q),t.arc(l,s,o,-q,0),t.arc(l,c,o,0,q),t.arc(a,c,o,q,j)):a<l?(t.moveTo(a,A),t.arc(l,s,o,-q,q),t.arc(a,s,o,q,j+q)):s<c?(t.arc(a,s,o,-j,0),t.arc(a,c,o,0,j)):t.arc(a,s,o,-j,j),t.closePath(),t.moveTo(e,A)}else t.rect(e,A,n,r)},drawPoint:function(t,e,A,n,r,i){var o,a,s,l,c,u=(i||0)*V;if(e&&"object"===typeof e&&(o=e.toString(),"[object HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))return t.save(),t.translate(n,r),t.rotate(u),t.drawImage(e,-e.width/2,-e.height/2,e.width,e.height),void t.restore();if(!(isNaN(A)||A<=0)){switch(t.beginPath(),e){default:t.arc(n,r,A,0,G),t.closePath();break;case"triangle":t.moveTo(n+Math.sin(u)*A,r-Math.cos(u)*A),u+=Y,t.lineTo(n+Math.sin(u)*A,r-Math.cos(u)*A),u+=Y,t.lineTo(n+Math.sin(u)*A,r-Math.cos(u)*A),t.closePath();break;case"rectRounded":c=.516*A,l=A-c,a=Math.cos(u+W)*l,s=Math.sin(u+W)*l,t.arc(n-a,r-s,c,u-j,u-q),t.arc(n+s,r-a,c,u-q,u),t.arc(n+a,r+s,c,u,u+q),t.arc(n-s,r+a,c,u+q,u+j),t.closePath();break;case"rect":if(!i){l=Math.SQRT1_2*A,t.rect(n-l,r-l,2*l,2*l);break}u+=W;case"rectRot":a=Math.cos(u)*A,s=Math.sin(u)*A,t.moveTo(n-a,r-s),t.lineTo(n+s,r-a),t.lineTo(n+a,r+s),t.lineTo(n-s,r+a),t.closePath();break;case"crossRot":u+=W;case"cross":a=Math.cos(u)*A,s=Math.sin(u)*A,t.moveTo(n-a,r-s),t.lineTo(n+a,r+s),t.moveTo(n+s,r-a),t.lineTo(n-s,r+a);break;case"star":a=Math.cos(u)*A,s=Math.sin(u)*A,t.moveTo(n-a,r-s),t.lineTo(n+a,r+s),t.moveTo(n+s,r-a),t.lineTo(n-s,r+a),u+=W,a=Math.cos(u)*A,s=Math.sin(u)*A,t.moveTo(n-a,r-s),t.lineTo(n+a,r+s),t.moveTo(n+s,r-a),t.lineTo(n-s,r+a);break;case"line":a=Math.cos(u)*A,s=Math.sin(u)*A,t.moveTo(n-a,r-s),t.lineTo(n+a,r+s);break;case"dash":t.moveTo(n,r),t.lineTo(n+Math.cos(u)*A,r+Math.sin(u)*A);break}t.fill(),t.stroke()}},_isPointInArea:function(t,e){var A=1e-6;return t.x>e.left-A&&t.x<e.right+A&&t.y>e.top-A&&t.y<e.bottom+A},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,A,n){var r=A.steppedLine;if(r){if("middle"===r){var i=(e.x+A.x)/2;t.lineTo(i,n?A.y:e.y),t.lineTo(i,n?e.y:A.y)}else"after"===r&&!n||"after"!==r&&n?t.lineTo(e.x,A.y):t.lineTo(A.x,e.y);t.lineTo(A.x,A.y)}else A.tension?t.bezierCurveTo(n?e.controlPointPreviousX:e.controlPointNextX,n?e.controlPointPreviousY:e.controlPointNextY,n?A.controlPointNextX:A.controlPointPreviousX,n?A.controlPointNextY:A.controlPointPreviousY,A.x,A.y):t.lineTo(A.x,A.y)}},X=z;R.clear=z.clear,R.drawRoundedRectangle=function(t){t.beginPath(),z.roundedRect.apply(z,arguments)};var J={_set:function(t,e){return R.merge(this[t]||(this[t]={}),e)}};J._set("global",{defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",defaultLineHeight:1.2,showLines:!0});var Z=J,$=R.valueOrDefault;function tt(t){return!t||R.isNullOrUndef(t.size)||R.isNullOrUndef(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}var et={toLineHeight:function(t,e){var A=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!A||"normal"===A[1])return 1.2*e;switch(t=+A[2],A[3]){case"px":return t;case"%":t/=100;break}return e*t},toPadding:function(t){var e,A,n,r;return R.isObject(t)?(e=+t.top||0,A=+t.right||0,n=+t.bottom||0,r=+t.left||0):e=A=n=r=+t||0,{top:e,right:A,bottom:n,left:r,height:e+n,width:r+A}},_parseFont:function(t){var e=Z.global,A=$(t.fontSize,e.defaultFontSize),n={family:$(t.fontFamily,e.defaultFontFamily),lineHeight:R.options.toLineHeight($(t.lineHeight,e.defaultLineHeight),A),size:A,style:$(t.fontStyle,e.defaultFontStyle),weight:null,string:""};return n.string=tt(n),n},resolve:function(t,e,A,n){var r,i,o,a=!0;for(r=0,i=t.length;r<i;++r)if(o=t[r],void 0!==o&&(void 0!==e&&"function"===typeof o&&(o=o(e),a=!1),void 0!==A&&R.isArray(o)&&(o=o[A],a=!1),void 0!==o))return n&&!a&&(n.cacheable=!1),o}},At={_factorize:function(t){var e,A=[],n=Math.sqrt(t);for(e=1;e<n;e++)t%e===0&&(A.push(e),A.push(t/e));return n===(0|n)&&A.push(n),A.sort((function(t,e){return t-e})).pop(),A},log10:Math.log10||function(t){var e=Math.log(t)*Math.LOG10E,A=Math.round(e),n=t===Math.pow(10,A);return n?A:e}},nt=At;R.log10=At.log10;var rt=function(t,e){return{x:function(A){return t+t+e-A},setWidth:function(t){e=t},textAlign:function(t){return"center"===t?t:"right"===t?"left":"right"},xPlus:function(t,e){return t-e},leftForLtr:function(t,e){return t-e}}},it=function(){return{x:function(t){return t},setWidth:function(t){},textAlign:function(t){return t},xPlus:function(t,e){return t+e},leftForLtr:function(t,e){return t}}},ot=function(t,e,A){return t?rt(e,A):it()},at=function(t,e){var A,n;"ltr"!==e&&"rtl"!==e||(A=t.canvas.style,n=[A.getPropertyValue("direction"),A.getPropertyPriority("direction")],A.setProperty("direction",e,"important"),t.prevTextDirection=n)},st=function(t){var e=t.prevTextDirection;void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))},lt={getRtlAdapter:ot,overrideTextDirection:at,restoreTextDirection:st},ct=R,ut=K,ht=X,dt=et,gt=nt,ft=lt;function pt(t,e,A,n){var r,i,o,a,s,l,c,u,h,d=Object.keys(A);for(r=0,i=d.length;r<i;++r)if(o=d[r],l=A[o],e.hasOwnProperty(o)||(e[o]=l),a=e[o],a!==l&&"_"!==o[0]){if(t.hasOwnProperty(o)||(t[o]=a),s=t[o],c=typeof l,c===typeof s)if("string"===c){if(u=T(s),u.valid&&(h=T(l),h.valid)){e[o]=h.mix(u,n).rgbString();continue}}else if(ct.isFinite(s)&&ct.isFinite(l)){e[o]=s+(l-s)*n;continue}e[o]=l}}ct.easing=ut,ct.canvas=ht,ct.options=dt,ct.math=gt,ct.rtl=ft;var mt=function(t){ct.extend(this,t),this.initialize.apply(this,arguments)};ct.extend(mt.prototype,{_type:void 0,initialize:function(){this.hidden=!1},pivot:function(){var t=this;return t._view||(t._view=ct.extend({},t._model)),t._start={},t},transition:function(t){var e=this,A=e._model,n=e._start,r=e._view;return A&&1!==t?(r||(r=e._view={}),n||(n=e._start={}),pt(n,r,A,t),e):(e._view=ct.extend({},A),e._start=null,e)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return ct.isNumber(this._model.x)&&ct.isNumber(this._model.y)}}),mt.extend=ct.inherits;var wt=mt,Bt=wt.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),vt=Bt;Object.defineProperty(Bt.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(Bt.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}}),Z._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:ct.noop,onComplete:ct.noop}});var yt={animations:[],request:null,addAnimation:function(t,e,A,n){var r,i,o=this.animations;for(e.chart=t,e.startTime=Date.now(),e.duration=A,n||(t.animating=!0),r=0,i=o.length;r<i;++r)if(o[r].chart===t)return void(o[r]=e);o.push(e),1===o.length&&this.requestAnimationFrame()},cancelAnimation:function(t){var e=ct.findIndex(this.animations,(function(e){return e.chart===t}));-1!==e&&(this.animations.splice(e,1),t.animating=!1)},requestAnimationFrame:function(){var t=this;null===t.request&&(t.request=ct.requestAnimFrame.call(window,(function(){t.request=null,t.startDigest()})))},startDigest:function(){var t=this;t.advance(),t.animations.length>0&&t.requestAnimationFrame()},advance:function(){var t,e,A,n,r=this.animations,i=0;while(i<r.length)t=r[i],e=t.chart,A=t.numSteps,n=Math.floor((Date.now()-t.startTime)/t.duration*A)+1,t.currentStep=Math.min(n,A),ct.callback(t.render,[e,t],e),ct.callback(t.onAnimationProgress,[t],e),t.currentStep>=A?(ct.callback(t.onAnimationComplete,[t],e),e.animating=!1,r.splice(i,1)):++i}},bt=ct.options.resolve,Ct=["push","pop","shift","splice","unshift"];function xt(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),Ct.forEach((function(e){var A="onData"+e.charAt(0).toUpperCase()+e.slice(1),n=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:function(){var e=Array.prototype.slice.call(arguments),r=n.apply(this,e);return ct.each(t._chartjs.listeners,(function(t){"function"===typeof t[A]&&t[A].apply(t,e)})),r}})})))}function Ft(t,e){var A=t._chartjs;if(A){var n=A.listeners,r=n.indexOf(e);-1!==r&&n.splice(r,1),n.length>0||(Ct.forEach((function(e){delete t[e]})),delete t._chartjs)}}var Qt=function(t,e){this.initialize(t,e)};ct.extend(Qt.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(t,e){var A=this;A.chart=t,A.index=e,A.linkScales(),A.addElements(),A._type=A.getMeta().type},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),A=t.chart,n=A.scales,r=t.getDataset(),i=A.options.scales;null!==e.xAxisID&&e.xAxisID in n&&!r.xAxisID||(e.xAxisID=r.xAxisID||i.xAxes[0].id),null!==e.yAxisID&&e.yAxisID in n&&!r.yAxisID||(e.yAxisID=r.yAxisID||i.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&Ft(this._data,this)},createMetaDataset:function(){var t=this,e=t.datasetElementType;return e&&new e({_chart:t.chart,_datasetIndex:t.index})},createMetaData:function(t){var e=this,A=e.dataElementType;return A&&new A({_chart:e.chart,_datasetIndex:e.index,_index:t})},addElements:function(){var t,e,A=this,n=A.getMeta(),r=A.getDataset().data||[],i=n.data;for(t=0,e=r.length;t<e;++t)i[t]=i[t]||A.createMetaData(t);n.dataset=n.dataset||A.createMetaDataset()},addElementAndReset:function(t){var e=this.createMetaData(t);this.getMeta().data.splice(t,0,e),this.updateElement(e,t,!0)},buildOrUpdateElements:function(){var t=this,e=t.getDataset(),A=e.data||(e.data=[]);t._data!==A&&(t._data&&Ft(t._data,t),A&&Object.isExtensible(A)&&xt(A,t),t._data=A),t.resyncElements()},_configure:function(){var t=this;t._config=ct.merge(Object.create(null),[t.chart.options.datasets[t._type],t.getDataset()],{merger:function(t,e,A){"_meta"!==t&&"data"!==t&&ct._merger(t,e,A)}})},_update:function(t){var e=this;e._configure(),e._cachedDataOpts=null,e.update(t)},update:ct.noop,transition:function(t){for(var e=this.getMeta(),A=e.data||[],n=A.length,r=0;r<n;++r)A[r].transition(t);e.dataset&&e.dataset.transition(t)},draw:function(){var t=this.getMeta(),e=t.data||[],A=e.length,n=0;for(t.dataset&&t.dataset.draw();n<A;++n)e[n].draw()},getStyle:function(t){var e,A=this,n=A.getMeta(),r=n.dataset;return A._configure(),r&&void 0===t?e=A._resolveDatasetElementOptions(r||{}):(t=t||0,e=A._resolveDataElementOptions(n.data[t]||{},t)),!1!==e.fill&&null!==e.fill||(e.backgroundColor=e.borderColor),e},_resolveDatasetElementOptions:function(t,e){var A,n,r,i,o=this,a=o.chart,s=o._config,l=t.custom||{},c=a.options.elements[o.datasetElementType.prototype._type]||{},u=o._datasetElementOptions,h={},d={chart:a,dataset:o.getDataset(),datasetIndex:o.index,hover:e};for(A=0,n=u.length;A<n;++A)r=u[A],i=e?"hover"+r.charAt(0).toUpperCase()+r.slice(1):r,h[r]=bt([l[i],s[i],c[i]],d);return h},_resolveDataElementOptions:function(t,e){var A=this,n=t&&t.custom,r=A._cachedDataOpts;if(r&&!n)return r;var i,o,a,s,l=A.chart,c=A._config,u=l.options.elements[A.dataElementType.prototype._type]||{},h=A._dataElementOptions,d={},g={chart:l,dataIndex:e,dataset:A.getDataset(),datasetIndex:A.index},f={cacheable:!n};if(n=n||{},ct.isArray(h))for(o=0,a=h.length;o<a;++o)s=h[o],d[s]=bt([n[s],c[s],u[s]],g,e,f);else for(i=Object.keys(h),o=0,a=i.length;o<a;++o)s=i[o],d[s]=bt([n[s],c[h[s]],c[s],u[s]],g,e,f);return f.cacheable&&(A._cachedDataOpts=Object.freeze(d)),d},removeHoverStyle:function(t){ct.merge(t._model,t.$previousStyle||{}),delete t.$previousStyle},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],A=t._index,n=t.custom||{},r=t._model,i=ct.getHoverColor;t.$previousStyle={backgroundColor:r.backgroundColor,borderColor:r.borderColor,borderWidth:r.borderWidth},r.backgroundColor=bt([n.hoverBackgroundColor,e.hoverBackgroundColor,i(r.backgroundColor)],void 0,A),r.borderColor=bt([n.hoverBorderColor,e.hoverBorderColor,i(r.borderColor)],void 0,A),r.borderWidth=bt([n.hoverBorderWidth,e.hoverBorderWidth,r.borderWidth],void 0,A)},_removeDatasetHoverStyle:function(){var t=this.getMeta().dataset;t&&this.removeHoverStyle(t)},_setDatasetHoverStyle:function(){var t,e,A,n,r,i,o=this.getMeta().dataset,a={};if(o){for(i=o._model,r=this._resolveDatasetElementOptions(o,!0),n=Object.keys(r),t=0,e=n.length;t<e;++t)A=n[t],a[A]=i[A],i[A]=r[A];o.$previousStyle=a}},resyncElements:function(){var t=this,e=t.getMeta(),A=t.getDataset().data,n=e.data.length,r=A.length;r<n?e.data.splice(r,n-r):r>n&&t.insertElements(n,r-n)},insertElements:function(t,e){for(var A=0;A<e;++A)this.addElementAndReset(t+A)},onDataPush:function(){var t=arguments.length;this.insertElements(this.getDataset().data.length-t,t)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(t,e){this.getMeta().data.splice(t,e),this.insertElements(t,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),Qt.extend=ct.inherits;var Ut=Qt,_t=2*Math.PI;function It(t,e){var A=e.startAngle,n=e.endAngle,r=e.pixelMargin,i=r/e.outerRadius,o=e.x,a=e.y;t.beginPath(),t.arc(o,a,e.outerRadius,A-i,n+i),e.innerRadius>r?(i=r/e.innerRadius,t.arc(o,a,e.innerRadius-r,n+i,A-i,!0)):t.arc(o,a,r,n+Math.PI/2,A-Math.PI/2),t.closePath(),t.clip()}function Et(t,e,A,n){var r,i=A.endAngle;for(n&&(A.endAngle=A.startAngle+_t,It(t,A),A.endAngle=i,A.endAngle===A.startAngle&&A.fullCircles&&(A.endAngle+=_t,A.fullCircles--)),t.beginPath(),t.arc(A.x,A.y,A.innerRadius,A.startAngle+_t,A.startAngle,!0),r=0;r<A.fullCircles;++r)t.stroke();for(t.beginPath(),t.arc(A.x,A.y,e.outerRadius,A.startAngle,A.startAngle+_t),r=0;r<A.fullCircles;++r)t.stroke()}function kt(t,e,A){var n="inner"===e.borderAlign;n?(t.lineWidth=2*e.borderWidth,t.lineJoin="round"):(t.lineWidth=e.borderWidth,t.lineJoin="bevel"),A.fullCircles&&Et(t,e,A,n),n&&It(t,A),t.beginPath(),t.arc(A.x,A.y,e.outerRadius,A.startAngle,A.endAngle),t.arc(A.x,A.y,A.innerRadius,A.endAngle,A.startAngle,!0),t.closePath(),t.stroke()}Z._set("global",{elements:{arc:{backgroundColor:Z.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var St=wt.extend({_type:"arc",inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hoverRadius,2)},inRange:function(t,e){var A=this._view;if(A){var n=ct.getAngleFromPoint(A,{x:t,y:e}),r=n.angle,i=n.distance,o=A.startAngle,a=A.endAngle;while(a<o)a+=_t;while(r>a)r-=_t;while(r<o)r+=_t;var s=r>=o&&r<=a,l=i>=A.innerRadius&&i<=A.outerRadius;return s&&l}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,A=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*A,y:t.y+Math.sin(e)*A}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,A=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*A,y:t.y+Math.sin(e)*A}},draw:function(){var t,e=this._chart.ctx,A=this._view,n="inner"===A.borderAlign?.33:0,r={x:A.x,y:A.y,innerRadius:A.innerRadius,outerRadius:Math.max(A.outerRadius-n,0),pixelMargin:n,startAngle:A.startAngle,endAngle:A.endAngle,fullCircles:Math.floor(A.circumference/_t)};if(e.save(),e.fillStyle=A.backgroundColor,e.strokeStyle=A.borderColor,r.fullCircles){for(r.endAngle=r.startAngle+_t,e.beginPath(),e.arc(r.x,r.y,r.outerRadius,r.startAngle,r.endAngle),e.arc(r.x,r.y,r.innerRadius,r.endAngle,r.startAngle,!0),e.closePath(),t=0;t<r.fullCircles;++t)e.fill();r.endAngle=r.startAngle+A.circumference%_t}e.beginPath(),e.arc(r.x,r.y,r.outerRadius,r.startAngle,r.endAngle),e.arc(r.x,r.y,r.innerRadius,r.endAngle,r.startAngle,!0),e.closePath(),e.fill(),A.borderWidth&&kt(e,A,r),e.restore()}}),Dt=ct.valueOrDefault,Ht=Z.global.defaultColor;Z._set("global",{elements:{line:{tension:.4,backgroundColor:Ht,borderWidth:3,borderColor:Ht,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var Mt=wt.extend({_type:"line",draw:function(){var t,e,A,n=this,r=n._view,i=n._chart.ctx,o=r.spanGaps,a=n._children.slice(),s=Z.global,l=s.elements.line,c=-1,u=n._loop;if(a.length){if(n._loop){for(t=0;t<a.length;++t)if(e=ct.previousItem(a,t),!a[t]._view.skip&&e._view.skip){a=a.slice(t).concat(a.slice(0,t)),u=o;break}u&&a.push(a[0])}for(i.save(),i.lineCap=r.borderCapStyle||l.borderCapStyle,i.setLineDash&&i.setLineDash(r.borderDash||l.borderDash),i.lineDashOffset=Dt(r.borderDashOffset,l.borderDashOffset),i.lineJoin=r.borderJoinStyle||l.borderJoinStyle,i.lineWidth=Dt(r.borderWidth,l.borderWidth),i.strokeStyle=r.borderColor||s.defaultColor,i.beginPath(),A=a[0]._view,A.skip||(i.moveTo(A.x,A.y),c=0),t=1;t<a.length;++t)A=a[t]._view,e=-1===c?ct.previousItem(a,t):a[c],A.skip||(c!==t-1&&!o||-1===c?i.moveTo(A.x,A.y):ct.canvas.lineTo(i,e._view,A),c=t);u&&i.closePath(),i.stroke(),i.restore()}}}),Ot=ct.valueOrDefault,Tt=Z.global.defaultColor;function Pt(t){var e=this._view;return!!e&&Math.abs(t-e.x)<e.radius+e.hitRadius}function Lt(t){var e=this._view;return!!e&&Math.abs(t-e.y)<e.radius+e.hitRadius}Z._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:Tt,borderColor:Tt,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var Rt=wt.extend({_type:"point",inRange:function(t,e){var A=this._view;return!!A&&Math.pow(t-A.x,2)+Math.pow(e-A.y,2)<Math.pow(A.hitRadius+A.radius,2)},inLabelRange:Pt,inXRange:Pt,inYRange:Lt,getCenterPoint:function(){var t=this._view;return{x:t.x,y:t.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y,padding:t.radius+t.borderWidth}},draw:function(t){var e=this._view,A=this._chart.ctx,n=e.pointStyle,r=e.rotation,i=e.radius,o=e.x,a=e.y,s=Z.global,l=s.defaultColor;e.skip||(void 0===t||ct.canvas._isPointInArea(e,t))&&(A.strokeStyle=e.borderColor||l,A.lineWidth=Ot(e.borderWidth,s.elements.point.borderWidth),A.fillStyle=e.backgroundColor||l,ct.canvas.drawPoint(A,n,i,o,a,r))}}),Nt=Z.global.defaultColor;function Kt(t){return t&&void 0!==t.width}function jt(t){var e,A,n,r,i;return Kt(t)?(i=t.width/2,e=t.x-i,A=t.x+i,n=Math.min(t.y,t.base),r=Math.max(t.y,t.base)):(i=t.height/2,e=Math.min(t.x,t.base),A=Math.max(t.x,t.base),n=t.y-i,r=t.y+i),{left:e,top:n,right:A,bottom:r}}function Vt(t,e,A){return t===e?A:t===A?e:t}function Gt(t){var e=t.borderSkipped,A={};return e?(t.horizontal?t.base>t.x&&(e=Vt(e,"left","right")):t.base<t.y&&(e=Vt(e,"bottom","top")),A[e]=!0,A):A}function qt(t,e,A){var n,r,i,o,a=t.borderWidth,s=Gt(t);return ct.isObject(a)?(n=+a.top||0,r=+a.right||0,i=+a.bottom||0,o=+a.left||0):n=r=i=o=+a||0,{t:s.top||n<0?0:n>A?A:n,r:s.right||r<0?0:r>e?e:r,b:s.bottom||i<0?0:i>A?A:i,l:s.left||o<0?0:o>e?e:o}}function Wt(t){var e=jt(t),A=e.right-e.left,n=e.bottom-e.top,r=qt(t,A/2,n/2);return{outer:{x:e.left,y:e.top,w:A,h:n},inner:{x:e.left+r.l,y:e.top+r.t,w:A-r.l-r.r,h:n-r.t-r.b}}}function Yt(t,e,A){var n=null===e,r=null===A,i=!(!t||n&&r)&&jt(t);return i&&(n||e>=i.left&&e<=i.right)&&(r||A>=i.top&&A<=i.bottom)}Z._set("global",{elements:{rectangle:{backgroundColor:Nt,borderColor:Nt,borderSkipped:"bottom",borderWidth:0}}});var zt=wt.extend({_type:"rectangle",draw:function(){var t=this._chart.ctx,e=this._view,A=Wt(e),n=A.outer,r=A.inner;t.fillStyle=e.backgroundColor,t.fillRect(n.x,n.y,n.w,n.h),n.w===r.w&&n.h===r.h||(t.save(),t.beginPath(),t.rect(n.x,n.y,n.w,n.h),t.clip(),t.fillStyle=e.borderColor,t.rect(r.x,r.y,r.w,r.h),t.fill("evenodd"),t.restore())},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){return Yt(this._view,t,e)},inLabelRange:function(t,e){var A=this._view;return Kt(A)?Yt(A,t,null):Yt(A,null,e)},inXRange:function(t){return Yt(this._view,t,null)},inYRange:function(t){return Yt(this._view,null,t)},getCenterPoint:function(){var t,e,A=this._view;return Kt(A)?(t=A.x,e=(A.y+A.base)/2):(t=(A.x+A.base)/2,e=A.y),{x:t,y:e}},getArea:function(){var t=this._view;return Kt(t)?t.width*Math.abs(t.y-t.base):t.height*Math.abs(t.x-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}}),Xt={},Jt=St,Zt=Mt,$t=Rt,te=zt;Xt.Arc=Jt,Xt.Line=Zt,Xt.Point=$t,Xt.Rectangle=te;var ee=ct._deprecated,Ae=ct.valueOrDefault;function ne(t,e){var A,n,r,i,o=t._length;for(r=1,i=e.length;r<i;++r)o=Math.min(o,Math.abs(e[r]-e[r-1]));for(r=0,i=t.getTicks().length;r<i;++r)n=t.getPixelForTick(r),o=r>0?Math.min(o,Math.abs(n-A)):o,A=n;return o}function re(t,e,A){var n,r,i=A.barThickness,o=e.stackCount,a=e.pixels[t],s=ct.isNullOrUndef(i)?ne(e.scale,e.pixels):-1;return ct.isNullOrUndef(i)?(n=s*A.categoryPercentage,r=A.barPercentage):(n=i*o,r=1),{chunk:n/o,ratio:r,start:a-n/2}}function ie(t,e,A){var n,r,i=e.pixels,o=i[t],a=t>0?i[t-1]:null,s=t<i.length-1?i[t+1]:null,l=A.categoryPercentage;return null===a&&(a=o-(null===s?e.end-e.start:s-o)),null===s&&(s=o+o-a),n=o-(o-Math.min(a,s))/2*l,r=Math.abs(s-a)/2*l,{chunk:r/e.stackCount,ratio:A.barPercentage,start:n}}Z._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),Z._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var oe=Ut.extend({dataElementType:Xt.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var t,e,A=this;Ut.prototype.initialize.apply(A,arguments),t=A.getMeta(),t.stack=A.getDataset().stack,t.bar=!0,e=A._getIndexScale().options,ee("bar chart",e.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),ee("bar chart",e.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),ee("bar chart",e.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),ee("bar chart",A._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),ee("bar chart",e.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(t){var e,A,n=this,r=n.getMeta().data;for(n._ruler=n.getRuler(),e=0,A=r.length;e<A;++e)n.updateElement(r[e],e,t)},updateElement:function(t,e,A){var n=this,r=n.getMeta(),i=n.getDataset(),o=n._resolveDataElementOptions(t,e);t._xScale=n.getScaleForId(r.xAxisID),t._yScale=n.getScaleForId(r.yAxisID),t._datasetIndex=n.index,t._index=e,t._model={backgroundColor:o.backgroundColor,borderColor:o.borderColor,borderSkipped:o.borderSkipped,borderWidth:o.borderWidth,datasetLabel:i.label,label:n.chart.data.labels[e]},ct.isArray(i.data[e])&&(t._model.borderSkipped=null),n._updateElementGeometry(t,e,A,o),t.pivot()},_updateElementGeometry:function(t,e,A,n){var r=this,i=t._model,o=r._getValueScale(),a=o.getBasePixel(),s=o.isHorizontal(),l=r._ruler||r.getRuler(),c=r.calculateBarValuePixels(r.index,e,n),u=r.calculateBarIndexPixels(r.index,e,l,n);i.horizontal=s,i.base=A?a:c.base,i.x=s?A?a:c.head:u.center,i.y=s?u.center:A?a:c.head,i.height=s?u.size:void 0,i.width=s?void 0:u.size},_getStacks:function(t){var e,A,n=this,r=n._getIndexScale(),i=r._getMatchingVisibleMetas(n._type),o=r.options.stacked,a=i.length,s=[];for(e=0;e<a;++e)if(A=i[e],(!1===o||-1===s.indexOf(A.stack)||void 0===o&&void 0===A.stack)&&s.push(A.stack),A.index===t)break;return s},getStackCount:function(){return this._getStacks().length},getStackIndex:function(t,e){var A=this._getStacks(t),n=void 0!==e?A.indexOf(e):-1;return-1===n?A.length-1:n},getRuler:function(){var t,e,A=this,n=A._getIndexScale(),r=[];for(t=0,e=A.getMeta().data.length;t<e;++t)r.push(n.getPixelForValue(null,t,A.index));return{pixels:r,start:n._startPixel,end:n._endPixel,stackCount:A.getStackCount(),scale:n}},calculateBarValuePixels:function(t,e,A){var n,r,i,o,a,s,l,c=this,u=c.chart,h=c._getValueScale(),d=h.isHorizontal(),g=u.data.datasets,f=h._getMatchingVisibleMetas(c._type),p=h._parseValue(g[t].data[e]),m=A.minBarLength,w=h.options.stacked,B=c.getMeta().stack,v=void 0===p.start?0:p.max>=0&&p.min>=0?p.min:p.max,y=void 0===p.start?p.end:p.max>=0&&p.min>=0?p.max-p.min:p.min-p.max,b=f.length;if(w||void 0===w&&void 0!==B)for(n=0;n<b;++n){if(r=f[n],r.index===t)break;r.stack===B&&(l=h._parseValue(g[r.index].data[e]),i=void 0===l.start?l.end:l.min>=0&&l.max>=0?l.max:l.min,(p.min<0&&i<0||p.max>=0&&i>0)&&(v+=i))}return o=h.getPixelForValue(v),a=h.getPixelForValue(v+y),s=a-o,void 0!==m&&Math.abs(s)<m&&(s=m,a=y>=0&&!d||y<0&&d?o-m:o+m),{size:s,base:o,head:a,center:a+s/2}},calculateBarIndexPixels:function(t,e,A,n){var r=this,i="flex"===n.barThickness?ie(e,A,n):re(e,A,n),o=r.getStackIndex(t,r.getMeta().stack),a=i.start+i.chunk*o+i.chunk/2,s=Math.min(Ae(n.maxBarThickness,1/0),i.chunk*i.ratio);return{base:a-s/2,head:a+s/2,center:a,size:s}},draw:function(){var t=this,e=t.chart,A=t._getValueScale(),n=t.getMeta().data,r=t.getDataset(),i=n.length,o=0;for(ct.canvas.clipArea(e.ctx,e.chartArea);o<i;++o){var a=A._parseValue(r.data[o]);isNaN(a.min)||isNaN(a.max)||n[o].draw()}ct.canvas.unclipArea(e.ctx)},_resolveDataElementOptions:function(){var t=this,e=ct.extend({},Ut.prototype._resolveDataElementOptions.apply(t,arguments)),A=t._getIndexScale().options,n=t._getValueScale().options;return e.barPercentage=Ae(A.barPercentage,e.barPercentage),e.barThickness=Ae(A.barThickness,e.barThickness),e.categoryPercentage=Ae(A.categoryPercentage,e.categoryPercentage),e.maxBarThickness=Ae(A.maxBarThickness,e.maxBarThickness),e.minBarLength=Ae(n.minBarLength,e.minBarLength),e}}),ae=ct.valueOrDefault,se=ct.options.resolve;Z._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(t,e){var A=e.datasets[t.datasetIndex].label||"",n=e.datasets[t.datasetIndex].data[t.index];return A+": ("+t.xLabel+", "+t.yLabel+", "+n.r+")"}}}});var le=Ut.extend({dataElementType:Xt.Point,_dataElementOptions:["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"],update:function(t){var e=this,A=e.getMeta(),n=A.data;ct.each(n,(function(A,n){e.updateElement(A,n,t)}))},updateElement:function(t,e,A){var n=this,r=n.getMeta(),i=t.custom||{},o=n.getScaleForId(r.xAxisID),a=n.getScaleForId(r.yAxisID),s=n._resolveDataElementOptions(t,e),l=n.getDataset().data[e],c=n.index,u=A?o.getPixelForDecimal(.5):o.getPixelForValue("object"===typeof l?l:NaN,e,c),h=A?a.getBasePixel():a.getPixelForValue(l,e,c);t._xScale=o,t._yScale=a,t._options=s,t._datasetIndex=c,t._index=e,t._model={backgroundColor:s.backgroundColor,borderColor:s.borderColor,borderWidth:s.borderWidth,hitRadius:s.hitRadius,pointStyle:s.pointStyle,rotation:s.rotation,radius:A?0:s.radius,skip:i.skip||isNaN(u)||isNaN(h),x:u,y:h},t.pivot()},setHoverStyle:function(t){var e=t._model,A=t._options,n=ct.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,radius:e.radius},e.backgroundColor=ae(A.hoverBackgroundColor,n(A.backgroundColor)),e.borderColor=ae(A.hoverBorderColor,n(A.borderColor)),e.borderWidth=ae(A.hoverBorderWidth,A.borderWidth),e.radius=A.radius+A.hoverRadius},_resolveDataElementOptions:function(t,e){var A=this,n=A.chart,r=A.getDataset(),i=t.custom||{},o=r.data[e]||{},a=Ut.prototype._resolveDataElementOptions.apply(A,arguments),s={chart:n,dataIndex:e,dataset:r,datasetIndex:A.index};return A._cachedDataOpts===a&&(a=ct.extend({},a)),a.radius=se([i.radius,o.r,A._config.radius,n.options.elements.point.radius],s,e),a}}),ce=ct.valueOrDefault,ue=Math.PI,he=2*ue,de=ue/2;Z._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(t){var e,A,n,r,i=document.createElement("ul"),o=t.data,a=o.datasets,s=o.labels;if(i.setAttribute("class",t.id+"-legend"),a.length)for(e=0,A=a[0].data.length;e<A;++e)n=i.appendChild(document.createElement("li")),r=n.appendChild(document.createElement("span")),r.style.backgroundColor=a[0].backgroundColor[e],s[e]&&n.appendChild(document.createTextNode(s[e]));return i.outerHTML},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map((function(A,n){var r=t.getDatasetMeta(0),i=r.controller.getStyle(n);return{text:A,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,lineWidth:i.borderWidth,hidden:isNaN(e.datasets[0].data[n])||r.data[n].hidden,index:n}})):[]}},onClick:function(t,e){var A,n,r,i=e.index,o=this.chart;for(A=0,n=(o.data.datasets||[]).length;A<n;++A)r=o.getDatasetMeta(A),r.data[i]&&(r.data[i].hidden=!r.data[i].hidden);o.update()}},cutoutPercentage:50,rotation:-de,circumference:he,tooltips:{callbacks:{title:function(){return""},label:function(t,e){var A=e.labels[t.index],n=": "+e.datasets[t.datasetIndex].data[t.index];return ct.isArray(A)?(A=A.slice(),A[0]+=n):A+=n,A}}}});var ge=Ut.extend({dataElementType:Xt.Arc,linkScales:ct.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],getRingIndex:function(t){for(var e=0,A=0;A<t;++A)this.chart.isDatasetVisible(A)&&++e;return e},update:function(t){var e,A,n,r,i=this,o=i.chart,a=o.chartArea,s=o.options,l=1,c=1,u=0,h=0,d=i.getMeta(),g=d.data,f=s.cutoutPercentage/100||0,p=s.circumference,m=i._getRingWeight(i.index);if(p<he){var w=s.rotation%he;w+=w>=ue?-he:w<-ue?he:0;var B=w+p,v=Math.cos(w),y=Math.sin(w),b=Math.cos(B),C=Math.sin(B),x=w<=0&&B>=0||B>=he,F=w<=de&&B>=de||B>=he+de,Q=w===-ue||B>=ue,U=w<=-de&&B>=-de||B>=ue+de,_=Q?-1:Math.min(v,v*f,b,b*f),I=U?-1:Math.min(y,y*f,C,C*f),E=x?1:Math.max(v,v*f,b,b*f),k=F?1:Math.max(y,y*f,C,C*f);l=(E-_)/2,c=(k-I)/2,u=-(E+_)/2,h=-(k+I)/2}for(n=0,r=g.length;n<r;++n)g[n]._options=i._resolveDataElementOptions(g[n],n);for(o.borderWidth=i.getMaxBorderWidth(),e=(a.right-a.left-o.borderWidth)/l,A=(a.bottom-a.top-o.borderWidth)/c,o.outerRadius=Math.max(Math.min(e,A)/2,0),o.innerRadius=Math.max(o.outerRadius*f,0),o.radiusLength=(o.outerRadius-o.innerRadius)/(i._getVisibleDatasetWeightTotal()||1),o.offsetX=u*o.outerRadius,o.offsetY=h*o.outerRadius,d.total=i.calculateTotal(),i.outerRadius=o.outerRadius-o.radiusLength*i._getRingWeightOffset(i.index),i.innerRadius=Math.max(i.outerRadius-o.radiusLength*m,0),n=0,r=g.length;n<r;++n)i.updateElement(g[n],n,t)},updateElement:function(t,e,A){var n=this,r=n.chart,i=r.chartArea,o=r.options,a=o.animation,s=(i.left+i.right)/2,l=(i.top+i.bottom)/2,c=o.rotation,u=o.rotation,h=n.getDataset(),d=A&&a.animateRotate||t.hidden?0:n.calculateCircumference(h.data[e])*(o.circumference/he),g=A&&a.animateScale?0:n.innerRadius,f=A&&a.animateScale?0:n.outerRadius,p=t._options||{};ct.extend(t,{_datasetIndex:n.index,_index:e,_model:{backgroundColor:p.backgroundColor,borderColor:p.borderColor,borderWidth:p.borderWidth,borderAlign:p.borderAlign,x:s+r.offsetX,y:l+r.offsetY,startAngle:c,endAngle:u,circumference:d,outerRadius:f,innerRadius:g,label:ct.valueAtIndexOrDefault(h.label,e,r.data.labels[e])}});var m=t._model;A&&a.animateRotate||(m.startAngle=0===e?o.rotation:n.getMeta().data[e-1]._model.endAngle,m.endAngle=m.startAngle+m.circumference),t.pivot()},calculateTotal:function(){var t,e=this.getDataset(),A=this.getMeta(),n=0;return ct.each(A.data,(function(A,r){t=e.data[r],isNaN(t)||A.hidden||(n+=Math.abs(t))})),n},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?he*(Math.abs(t)/e):0},getMaxBorderWidth:function(t){var e,A,n,r,i,o,a,s,l=this,c=0,u=l.chart;if(!t)for(e=0,A=u.data.datasets.length;e<A;++e)if(u.isDatasetVisible(e)){n=u.getDatasetMeta(e),t=n.data,e!==l.index&&(i=n.controller);break}if(!t)return 0;for(e=0,A=t.length;e<A;++e)r=t[e],i?(i._configure(),o=i._resolveDataElementOptions(r,e)):o=r._options,"inner"!==o.borderAlign&&(a=o.borderWidth,s=o.hoverBorderWidth,c=a>c?a:c,c=s>c?s:c);return c},setHoverStyle:function(t){var e=t._model,A=t._options,n=ct.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth},e.backgroundColor=ce(A.hoverBackgroundColor,n(A.backgroundColor)),e.borderColor=ce(A.hoverBorderColor,n(A.borderColor)),e.borderWidth=ce(A.hoverBorderWidth,A.borderWidth)},_getRingWeightOffset:function(t){for(var e=0,A=0;A<t;++A)this.chart.isDatasetVisible(A)&&(e+=this._getRingWeight(A));return e},_getRingWeight:function(t){return Math.max(ce(this.chart.data.datasets[t].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});Z._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}}),Z._set("global",{datasets:{horizontalBar:{categoryPercentage:.8,barPercentage:.9}}});var fe=oe.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),pe=ct.valueOrDefault,me=ct.options.resolve,we=ct.canvas._isPointInArea;function Be(t,e){var A=t&&t.options.ticks||{},n=A.reverse,r=void 0===A.min?e:0,i=void 0===A.max?e:0;return{start:n?i:r,end:n?r:i}}function ve(t,e,A){var n=A/2,r=Be(t,n),i=Be(e,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function ye(t){var e,A,n,r;return ct.isObject(t)?(e=t.top,A=t.right,n=t.bottom,r=t.left):e=A=n=r=t,{top:e,right:A,bottom:n,left:r}}Z._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});var be=Ut.extend({datasetElementType:Xt.Line,dataElementType:Xt.Point,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth","cubicInterpolationMode","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},update:function(t){var e,A,n=this,r=n.getMeta(),i=r.dataset,o=r.data||[],a=n.chart.options,s=n._config,l=n._showLine=pe(s.showLine,a.showLines);for(n._xScale=n.getScaleForId(r.xAxisID),n._yScale=n.getScaleForId(r.yAxisID),l&&(void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),i._scale=n._yScale,i._datasetIndex=n.index,i._children=o,i._model=n._resolveDatasetElementOptions(i),i.pivot()),e=0,A=o.length;e<A;++e)n.updateElement(o[e],e,t);for(l&&0!==i._model.tension&&n.updateBezierControlPoints(),e=0,A=o.length;e<A;++e)o[e].pivot()},updateElement:function(t,e,A){var n,r,i=this,o=i.getMeta(),a=t.custom||{},s=i.getDataset(),l=i.index,c=s.data[e],u=i._xScale,h=i._yScale,d=o.dataset._model,g=i._resolveDataElementOptions(t,e);n=u.getPixelForValue("object"===typeof c?c:NaN,e,l),r=A?h.getBasePixel():i.calculatePointY(c,e,l),t._xScale=u,t._yScale=h,t._options=g,t._datasetIndex=l,t._index=e,t._model={x:n,y:r,skip:a.skip||isNaN(n)||isNaN(r),radius:g.radius,pointStyle:g.pointStyle,rotation:g.rotation,backgroundColor:g.backgroundColor,borderColor:g.borderColor,borderWidth:g.borderWidth,tension:pe(a.tension,d?d.tension:0),steppedLine:!!d&&d.steppedLine,hitRadius:g.hitRadius}},_resolveDatasetElementOptions:function(t){var e=this,A=e._config,n=t.custom||{},r=e.chart.options,i=r.elements.line,o=Ut.prototype._resolveDatasetElementOptions.apply(e,arguments);return o.spanGaps=pe(A.spanGaps,r.spanGaps),o.tension=pe(A.lineTension,i.tension),o.steppedLine=me([n.steppedLine,A.steppedLine,i.stepped]),o.clip=ye(pe(A.clip,ve(e._xScale,e._yScale,o.borderWidth))),o},calculatePointY:function(t,e,A){var n,r,i,o,a,s,l,c=this,u=c.chart,h=c._yScale,d=0,g=0;if(h.options.stacked){for(a=+h.getRightValue(t),s=u._getSortedVisibleDatasetMetas(),l=s.length,n=0;n<l;++n){if(i=s[n],i.index===A)break;r=u.data.datasets[i.index],"line"===i.type&&i.yAxisID===h.id&&(o=+h.getRightValue(r.data[e]),o<0?g+=o||0:d+=o||0)}return a<0?h.getPixelForValue(g+a):h.getPixelForValue(d+a)}return h.getPixelForValue(t)},updateBezierControlPoints:function(){var t,e,A,n,r=this,i=r.chart,o=r.getMeta(),a=o.dataset._model,s=i.chartArea,l=o.data||[];function c(t,e,A){return Math.max(Math.min(t,A),e)}if(a.spanGaps&&(l=l.filter((function(t){return!t._model.skip}))),"monotone"===a.cubicInterpolationMode)ct.splineCurveMonotone(l);else for(t=0,e=l.length;t<e;++t)A=l[t]._model,n=ct.splineCurve(ct.previousItem(l,t)._model,A,ct.nextItem(l,t)._model,a.tension),A.controlPointPreviousX=n.previous.x,A.controlPointPreviousY=n.previous.y,A.controlPointNextX=n.next.x,A.controlPointNextY=n.next.y;if(i.options.elements.line.capBezierPoints)for(t=0,e=l.length;t<e;++t)A=l[t]._model,we(A,s)&&(t>0&&we(l[t-1]._model,s)&&(A.controlPointPreviousX=c(A.controlPointPreviousX,s.left,s.right),A.controlPointPreviousY=c(A.controlPointPreviousY,s.top,s.bottom)),t<l.length-1&&we(l[t+1]._model,s)&&(A.controlPointNextX=c(A.controlPointNextX,s.left,s.right),A.controlPointNextY=c(A.controlPointNextY,s.top,s.bottom)))},draw:function(){var t,e=this,A=e.chart,n=e.getMeta(),r=n.data||[],i=A.chartArea,o=A.canvas,a=0,s=r.length;for(e._showLine&&(t=n.dataset._model.clip,ct.canvas.clipArea(A.ctx,{left:!1===t.left?0:i.left-t.left,right:!1===t.right?o.width:i.right+t.right,top:!1===t.top?0:i.top-t.top,bottom:!1===t.bottom?o.height:i.bottom+t.bottom}),n.dataset.draw(),ct.canvas.unclipArea(A.ctx));a<s;++a)r[a].draw(i)},setHoverStyle:function(t){var e=t._model,A=t._options,n=ct.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,radius:e.radius},e.backgroundColor=pe(A.hoverBackgroundColor,n(A.backgroundColor)),e.borderColor=pe(A.hoverBorderColor,n(A.borderColor)),e.borderWidth=pe(A.hoverBorderWidth,A.borderWidth),e.radius=pe(A.hoverRadius,A.radius)}}),Ce=ct.options.resolve;Z._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(t){var e,A,n,r,i=document.createElement("ul"),o=t.data,a=o.datasets,s=o.labels;if(i.setAttribute("class",t.id+"-legend"),a.length)for(e=0,A=a[0].data.length;e<A;++e)n=i.appendChild(document.createElement("li")),r=n.appendChild(document.createElement("span")),r.style.backgroundColor=a[0].backgroundColor[e],s[e]&&n.appendChild(document.createTextNode(s[e]));return i.outerHTML},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map((function(A,n){var r=t.getDatasetMeta(0),i=r.controller.getStyle(n);return{text:A,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,lineWidth:i.borderWidth,hidden:isNaN(e.datasets[0].data[n])||r.data[n].hidden,index:n}})):[]}},onClick:function(t,e){var A,n,r,i=e.index,o=this.chart;for(A=0,n=(o.data.datasets||[]).length;A<n;++A)r=o.getDatasetMeta(A),r.data[i].hidden=!r.data[i].hidden;o.update()}},tooltips:{callbacks:{title:function(){return""},label:function(t,e){return e.labels[t.index]+": "+t.yLabel}}}});var xe=Ut.extend({dataElementType:Xt.Arc,linkScales:ct.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(t){var e,A,n,r=this,i=r.getDataset(),o=r.getMeta(),a=r.chart.options.startAngle||0,s=r._starts=[],l=r._angles=[],c=o.data;for(r._updateRadius(),o.count=r.countVisibleElements(),e=0,A=i.data.length;e<A;e++)s[e]=a,n=r._computeAngle(e),l[e]=n,a+=n;for(e=0,A=c.length;e<A;++e)c[e]._options=r._resolveDataElementOptions(c[e],e),r.updateElement(c[e],e,t)},_updateRadius:function(){var t=this,e=t.chart,A=e.chartArea,n=e.options,r=Math.min(A.right-A.left,A.bottom-A.top);e.outerRadius=Math.max(r/2,0),e.innerRadius=Math.max(n.cutoutPercentage?e.outerRadius/100*n.cutoutPercentage:1,0),e.radiusLength=(e.outerRadius-e.innerRadius)/e.getVisibleDatasetCount(),t.outerRadius=e.outerRadius-e.radiusLength*t.index,t.innerRadius=t.outerRadius-e.radiusLength},updateElement:function(t,e,A){var n=this,r=n.chart,i=n.getDataset(),o=r.options,a=o.animation,s=r.scale,l=r.data.labels,c=s.xCenter,u=s.yCenter,h=o.startAngle,d=t.hidden?0:s.getDistanceFromCenterForValue(i.data[e]),g=n._starts[e],f=g+(t.hidden?0:n._angles[e]),p=a.animateScale?0:s.getDistanceFromCenterForValue(i.data[e]),m=t._options||{};ct.extend(t,{_datasetIndex:n.index,_index:e,_scale:s,_model:{backgroundColor:m.backgroundColor,borderColor:m.borderColor,borderWidth:m.borderWidth,borderAlign:m.borderAlign,x:c,y:u,innerRadius:0,outerRadius:A?p:d,startAngle:A&&a.animateRotate?h:g,endAngle:A&&a.animateRotate?h:f,label:ct.valueAtIndexOrDefault(l,e,l[e])}}),t.pivot()},countVisibleElements:function(){var t=this.getDataset(),e=this.getMeta(),A=0;return ct.each(e.data,(function(e,n){isNaN(t.data[n])||e.hidden||A++})),A},setHoverStyle:function(t){var e=t._model,A=t._options,n=ct.getHoverColor,r=ct.valueOrDefault;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth},e.backgroundColor=r(A.hoverBackgroundColor,n(A.backgroundColor)),e.borderColor=r(A.hoverBorderColor,n(A.borderColor)),e.borderWidth=r(A.hoverBorderWidth,A.borderWidth)},_computeAngle:function(t){var e=this,A=this.getMeta().count,n=e.getDataset(),r=e.getMeta();if(isNaN(n.data[t])||r.data[t].hidden)return 0;var i={chart:e.chart,dataIndex:t,dataset:n,datasetIndex:e.index};return Ce([e.chart.options.elements.arc.angle,2*Math.PI/A],i,t)}});Z._set("pie",ct.clone(Z.doughnut)),Z._set("pie",{cutoutPercentage:0});var Fe=ge,Qe=ct.valueOrDefault;Z._set("radar",{spanGaps:!1,scale:{type:"radialLinear"},elements:{line:{fill:"start",tension:0}}});var Ue=Ut.extend({datasetElementType:Xt.Line,dataElementType:Xt.Point,linkScales:ct.noop,_datasetElementOptions:["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(t){var e,A,n=this,r=n.getMeta(),i=r.dataset,o=r.data||[],a=n.chart.scale,s=n._config;for(void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),i._scale=a,i._datasetIndex=n.index,i._children=o,i._loop=!0,i._model=n._resolveDatasetElementOptions(i),i.pivot(),e=0,A=o.length;e<A;++e)n.updateElement(o[e],e,t);for(n.updateBezierControlPoints(),e=0,A=o.length;e<A;++e)o[e].pivot()},updateElement:function(t,e,A){var n=this,r=t.custom||{},i=n.getDataset(),o=n.chart.scale,a=o.getPointPositionForValue(e,i.data[e]),s=n._resolveDataElementOptions(t,e),l=n.getMeta().dataset._model,c=A?o.xCenter:a.x,u=A?o.yCenter:a.y;t._scale=o,t._options=s,t._datasetIndex=n.index,t._index=e,t._model={x:c,y:u,skip:r.skip||isNaN(c)||isNaN(u),radius:s.radius,pointStyle:s.pointStyle,rotation:s.rotation,backgroundColor:s.backgroundColor,borderColor:s.borderColor,borderWidth:s.borderWidth,tension:Qe(r.tension,l?l.tension:0),hitRadius:s.hitRadius}},_resolveDatasetElementOptions:function(){var t=this,e=t._config,A=t.chart.options,n=Ut.prototype._resolveDatasetElementOptions.apply(t,arguments);return n.spanGaps=Qe(e.spanGaps,A.spanGaps),n.tension=Qe(e.lineTension,A.elements.line.tension),n},updateBezierControlPoints:function(){var t,e,A,n,r=this,i=r.getMeta(),o=r.chart.chartArea,a=i.data||[];function s(t,e,A){return Math.max(Math.min(t,A),e)}for(i.dataset._model.spanGaps&&(a=a.filter((function(t){return!t._model.skip}))),t=0,e=a.length;t<e;++t)A=a[t]._model,n=ct.splineCurve(ct.previousItem(a,t,!0)._model,A,ct.nextItem(a,t,!0)._model,A.tension),A.controlPointPreviousX=s(n.previous.x,o.left,o.right),A.controlPointPreviousY=s(n.previous.y,o.top,o.bottom),A.controlPointNextX=s(n.next.x,o.left,o.right),A.controlPointNextY=s(n.next.y,o.top,o.bottom)},setHoverStyle:function(t){var e=t._model,A=t._options,n=ct.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,radius:e.radius},e.backgroundColor=Qe(A.hoverBackgroundColor,n(A.backgroundColor)),e.borderColor=Qe(A.hoverBorderColor,n(A.borderColor)),e.borderWidth=Qe(A.hoverBorderWidth,A.borderWidth),e.radius=Qe(A.hoverRadius,A.radius)}});Z._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}}),Z._set("global",{datasets:{scatter:{showLine:!1}}});var _e=be,Ie={bar:oe,bubble:le,doughnut:ge,horizontalBar:fe,line:be,polarArea:xe,pie:Fe,radar:Ue,scatter:_e};function Ee(t,e){return t.native?{x:t.x,y:t.y}:ct.getRelativePosition(t,e)}function ke(t,e){var A,n,r,i,o,a,s=t._getSortedVisibleDatasetMetas();for(n=0,i=s.length;n<i;++n)for(A=s[n].data,r=0,o=A.length;r<o;++r)a=A[r],a._view.skip||e(a)}function Se(t,e){var A=[];return ke(t,(function(t){t.inRange(e.x,e.y)&&A.push(t)})),A}function De(t,e,A,n){var r=Number.POSITIVE_INFINITY,i=[];return ke(t,(function(t){if(!A||t.inRange(e.x,e.y)){var o=t.getCenterPoint(),a=n(e,o);a<r?(i=[t],r=a):a===r&&i.push(t)}})),i}function He(t){var e=-1!==t.indexOf("x"),A=-1!==t.indexOf("y");return function(t,n){var r=e?Math.abs(t.x-n.x):0,i=A?Math.abs(t.y-n.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(i,2))}}function Me(t,e,A){var n=Ee(e,t);A.axis=A.axis||"x";var r=He(A.axis),i=A.intersect?Se(t,n):De(t,n,!1,r),o=[];return i.length?(t._getSortedVisibleDatasetMetas().forEach((function(t){var e=t.data[i[0]._index];e&&!e._view.skip&&o.push(e)})),o):[]}var Oe={modes:{single:function(t,e){var A=Ee(e,t),n=[];return ke(t,(function(t){if(t.inRange(A.x,A.y))return n.push(t),n})),n.slice(0,1)},label:Me,index:Me,dataset:function(t,e,A){var n=Ee(e,t);A.axis=A.axis||"xy";var r=He(A.axis),i=A.intersect?Se(t,n):De(t,n,!1,r);return i.length>0&&(i=t.getDatasetMeta(i[0]._datasetIndex).data),i},"x-axis":function(t,e){return Me(t,e,{intersect:!1})},point:function(t,e){var A=Ee(e,t);return Se(t,A)},nearest:function(t,e,A){var n=Ee(e,t);A.axis=A.axis||"xy";var r=He(A.axis);return De(t,n,A.intersect,r)},x:function(t,e,A){var n=Ee(e,t),r=[],i=!1;return ke(t,(function(t){t.inXRange(n.x)&&r.push(t),t.inRange(n.x,n.y)&&(i=!0)})),A.intersect&&!i&&(r=[]),r},y:function(t,e,A){var n=Ee(e,t),r=[],i=!1;return ke(t,(function(t){t.inYRange(n.y)&&r.push(t),t.inRange(n.x,n.y)&&(i=!0)})),A.intersect&&!i&&(r=[]),r}}},Te=ct.extend;function Pe(t,e){return ct.where(t,(function(t){return t.pos===e}))}function Le(t,e){return t.sort((function(t,A){var n=e?A:t,r=e?t:A;return n.weight===r.weight?n.index-r.index:n.weight-r.weight}))}function Re(t){var e,A,n,r=[];for(e=0,A=(t||[]).length;e<A;++e)n=t[e],r.push({index:e,box:n,pos:n.position,horizontal:n.isHorizontal(),weight:n.weight});return r}function Ne(t,e){var A,n,r;for(A=0,n=t.length;A<n;++A)r=t[A],r.width=r.horizontal?r.box.fullWidth&&e.availableWidth:e.vBoxMaxWidth,r.height=r.horizontal&&e.hBoxMaxHeight}function Ke(t){var e=Re(t),A=Le(Pe(e,"left"),!0),n=Le(Pe(e,"right")),r=Le(Pe(e,"top"),!0),i=Le(Pe(e,"bottom"));return{leftAndTop:A.concat(r),rightAndBottom:n.concat(i),chartArea:Pe(e,"chartArea"),vertical:A.concat(n),horizontal:r.concat(i)}}function je(t,e,A,n){return Math.max(t[A],e[A])+Math.max(t[n],e[n])}function Ve(t,e,A){var n,r,i=A.box,o=t.maxPadding;if(A.size&&(t[A.pos]-=A.size),A.size=A.horizontal?i.height:i.width,t[A.pos]+=A.size,i.getPadding){var a=i.getPadding();o.top=Math.max(o.top,a.top),o.left=Math.max(o.left,a.left),o.bottom=Math.max(o.bottom,a.bottom),o.right=Math.max(o.right,a.right)}if(n=e.outerWidth-je(o,t,"left","right"),r=e.outerHeight-je(o,t,"top","bottom"),n!==t.w||r!==t.h){t.w=n,t.h=r;var s=A.horizontal?[n,t.w]:[r,t.h];return s[0]!==s[1]&&(!isNaN(s[0])||!isNaN(s[1]))}}function Ge(t){var e=t.maxPadding;function A(A){var n=Math.max(e[A]-t[A],0);return t[A]+=n,n}t.y+=A("top"),t.x+=A("left"),A("right"),A("bottom")}function qe(t,e){var A=e.maxPadding;function n(t){var n={left:0,top:0,right:0,bottom:0};return t.forEach((function(t){n[t]=Math.max(e[t],A[t])})),n}return n(t?["left","right"]:["top","bottom"])}function We(t,e,A){var n,r,i,o,a,s,l=[];for(n=0,r=t.length;n<r;++n)i=t[n],o=i.box,o.update(i.width||e.w,i.height||e.h,qe(i.horizontal,e)),Ve(e,A,i)&&(s=!0,l.length&&(a=!0)),o.fullWidth||l.push(i);return a&&We(l,e,A)||s}function Ye(t,e,A){var n,r,i,o,a=A.padding,s=e.x,l=e.y;for(n=0,r=t.length;n<r;++n)i=t[n],o=i.box,i.horizontal?(o.left=o.fullWidth?a.left:e.left,o.right=o.fullWidth?A.outerWidth-a.right:e.left+e.w,o.top=l,o.bottom=l+o.height,o.width=o.right-o.left,l=o.bottom):(o.left=s,o.right=s+o.width,o.top=e.top,o.bottom=e.top+e.h,o.height=o.bottom-o.top,s=o.right);e.x=s,e.y=l}Z._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var ze={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw:function(){e.draw.apply(e,arguments)}}]},t.boxes.push(e)},removeBox:function(t,e){var A=t.boxes?t.boxes.indexOf(e):-1;-1!==A&&t.boxes.splice(A,1)},configure:function(t,e,A){for(var n,r=["fullWidth","position","weight"],i=r.length,o=0;o<i;++o)n=r[o],A.hasOwnProperty(n)&&(e[n]=A[n])},update:function(t,e,A){if(t){var n=t.options.layout||{},r=ct.options.toPadding(n.padding),i=e-r.width,o=A-r.height,a=Ke(t.boxes),s=a.vertical,l=a.horizontal,c=Object.freeze({outerWidth:e,outerHeight:A,padding:r,availableWidth:i,vBoxMaxWidth:i/2/s.length,hBoxMaxHeight:o/2}),u=Te({maxPadding:Te({},r),w:i,h:o,x:r.left,y:r.top},r);Ne(s.concat(l),c),We(s,u,c),We(l,u,c)&&We(s,u,c),Ge(u),Ye(a.leftAndTop,u,c),u.x+=u.w,u.y+=u.h,Ye(a.rightAndBottom,u,c),t.chartArea={left:u.left,top:u.top,right:u.left+u.w,bottom:u.top+u.h},ct.each(a.chartArea,(function(e){var A=e.box;Te(A,t.chartArea),A.update(u.w,u.h)}))}}},Xe={acquireContext:function(t){return t&&t.canvas&&(t=t.canvas),t&&t.getContext("2d")||null}},Je="/*\r\n * DOM element rendering detection\r\n * https://davidwalsh.name/detect-node-insertion\r\n */\r\n@keyframes chartjs-render-animation {\r\n\tfrom { opacity: 0.99; }\r\n\tto { opacity: 1; }\r\n}\r\n\r\n.chartjs-render-monitor {\r\n\tanimation: chartjs-render-animation 0.001s;\r\n}\r\n\r\n/*\r\n * DOM element resizing detection\r\n * https://github.com/marcj/css-element-queries\r\n */\r\n.chartjs-size-monitor,\r\n.chartjs-size-monitor-expand,\r\n.chartjs-size-monitor-shrink {\r\n\tposition: absolute;\r\n\tdirection: ltr;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\toverflow: hidden;\r\n\tpointer-events: none;\r\n\tvisibility: hidden;\r\n\tz-index: -1;\r\n}\r\n\r\n.chartjs-size-monitor-expand > div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n",Ze=Object.freeze({__proto__:null,default:Je}),$e=A(Ze),tA="$chartjs",eA="chartjs-",AA=eA+"size-monitor",nA=eA+"render-monitor",rA=eA+"render-animation",iA=["animationstart","webkitAnimationStart"],oA={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function aA(t,e){var A=ct.getStyle(t,e),n=A&&A.match(/^(\d+)(\.\d+)?px$/);return n?Number(n[1]):void 0}function sA(t,e){var A=t.style,n=t.getAttribute("height"),r=t.getAttribute("width");if(t[tA]={initial:{height:n,width:r,style:{display:A.display,height:A.height,width:A.width}}},A.display=A.display||"block",null===r||""===r){var i=aA(t,"width");void 0!==i&&(t.width=i)}if(null===n||""===n)if(""===t.style.height)t.height=t.width/(e.options.aspectRatio||2);else{var o=aA(t,"height");void 0!==i&&(t.height=o)}return t}var lA=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(A){}return t}(),cA=!!lA&&{passive:!0};function uA(t,e,A){t.addEventListener(e,A,cA)}function hA(t,e,A){t.removeEventListener(e,A,cA)}function dA(t,e,A,n,r){return{type:t,chart:e,native:r||null,x:void 0!==A?A:null,y:void 0!==n?n:null}}function gA(t,e){var A=oA[t.type]||t.type,n=ct.getRelativePosition(t,e);return dA(A,e,n.x,n.y,t)}function fA(t,e){var A=!1,n=[];return function(){n=Array.prototype.slice.call(arguments),e=e||this,A||(A=!0,ct.requestAnimFrame.call(window,(function(){A=!1,t.apply(e,n)})))}}function pA(t){var e=document.createElement("div");return e.className=t||"",e}function mA(t){var e=1e6,A=pA(AA),n=pA(AA+"-expand"),r=pA(AA+"-shrink");n.appendChild(pA()),r.appendChild(pA()),A.appendChild(n),A.appendChild(r),A._reset=function(){n.scrollLeft=e,n.scrollTop=e,r.scrollLeft=e,r.scrollTop=e};var i=function(){A._reset(),t()};return uA(n,"scroll",i.bind(n,"expand")),uA(r,"scroll",i.bind(r,"shrink")),A}function wA(t,e){var A=t[tA]||(t[tA]={}),n=A.renderProxy=function(t){t.animationName===rA&&e()};ct.each(iA,(function(e){uA(t,e,n)})),A.reflow=!!t.offsetParent,t.classList.add(nA)}function BA(t){var e=t[tA]||{},A=e.renderProxy;A&&(ct.each(iA,(function(e){hA(t,e,A)})),delete e.renderProxy),t.classList.remove(nA)}function vA(t,e,A){var n=t[tA]||(t[tA]={}),r=n.resizer=mA(fA((function(){if(n.resizer){var r=A.options.maintainAspectRatio&&t.parentNode,i=r?r.clientWidth:0;e(dA("resize",A)),r&&r.clientWidth<i&&A.canvas&&e(dA("resize",A))}})));wA(t,(function(){if(n.resizer){var e=t.parentNode;e&&e!==r.parentNode&&e.insertBefore(r,e.firstChild),r._reset()}}))}function yA(t){var e=t[tA]||{},A=e.resizer;delete e.resizer,BA(t),A&&A.parentNode&&A.parentNode.removeChild(A)}function bA(t,e){var A=t[tA]||(t[tA]={});if(!A.containsStyles){A.containsStyles=!0,e="/* Chart.js */\n"+e;var n=document.createElement("style");n.setAttribute("type","text/css"),n.appendChild(document.createTextNode(e)),t.appendChild(n)}}var CA={disableCSSInjection:!1,_enabled:"undefined"!==typeof window&&"undefined"!==typeof document,_ensureLoaded:function(t){if(!this.disableCSSInjection){var e=t.getRootNode?t.getRootNode():document,A=e.host?e:document.head;bA(A,$e)}},acquireContext:function(t,e){"string"===typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var A=t&&t.getContext&&t.getContext("2d");return A&&A.canvas===t?(this._ensureLoaded(t),sA(t,e),A):null},releaseContext:function(t){var e=t.canvas;if(e[tA]){var A=e[tA].initial;["height","width"].forEach((function(t){var n=A[t];ct.isNullOrUndef(n)?e.removeAttribute(t):e.setAttribute(t,n)})),ct.each(A.style||{},(function(t,A){e.style[A]=t})),e.width=e.width,delete e[tA]}},addEventListener:function(t,e,A){var n=t.canvas;if("resize"!==e){var r=A[tA]||(A[tA]={}),i=r.proxies||(r.proxies={}),o=i[t.id+"_"+e]=function(e){A(gA(e,t))};uA(n,e,o)}else vA(n,A,t)},removeEventListener:function(t,e,A){var n=t.canvas;if("resize"!==e){var r=A[tA]||{},i=r.proxies||{},o=i[t.id+"_"+e];o&&hA(n,e,o)}else yA(n)}};ct.addEvent=uA,ct.removeEvent=hA;var xA=CA._enabled?CA:Xe,FA=ct.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},xA);Z._set("global",{plugins:{}});var QA={_plugins:[],_cacheId:0,register:function(t){var e=this._plugins;[].concat(t).forEach((function(t){-1===e.indexOf(t)&&e.push(t)})),this._cacheId++},unregister:function(t){var e=this._plugins;[].concat(t).forEach((function(t){var A=e.indexOf(t);-1!==A&&e.splice(A,1)})),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e,A){var n,r,i,o,a,s=this.descriptors(t),l=s.length;for(n=0;n<l;++n)if(r=s[n],i=r.plugin,a=i[e],"function"===typeof a&&(o=[t].concat(A||[]),o.push(r.options),!1===a.apply(i,o)))return!1;return!0},descriptors:function(t){var e=t.$plugins||(t.$plugins={});if(e.id===this._cacheId)return e.descriptors;var A=[],n=[],r=t&&t.config||{},i=r.options&&r.options.plugins||{};return this._plugins.concat(r.plugins||[]).forEach((function(t){var e=A.indexOf(t);if(-1===e){var r=t.id,o=i[r];!1!==o&&(!0===o&&(o=ct.clone(Z.global.plugins[r])),A.push(t),n.push({plugin:t,options:o||{}}))}})),e.descriptors=n,e.id=this._cacheId,n},_invalidate:function(t){delete t.$plugins}},UA={constructors:{},defaults:{},registerScaleType:function(t,e,A){this.constructors[t]=e,this.defaults[t]=ct.clone(A)},getScaleConstructor:function(t){return this.constructors.hasOwnProperty(t)?this.constructors[t]:void 0},getScaleDefaults:function(t){return this.defaults.hasOwnProperty(t)?ct.merge(Object.create(null),[Z.scale,this.defaults[t]]):{}},updateScaleDefaults:function(t,e){var A=this;A.defaults.hasOwnProperty(t)&&(A.defaults[t]=ct.extend(A.defaults[t],e))},addScalesToLayout:function(t){ct.each(t.scales,(function(e){e.fullWidth=e.options.fullWidth,e.position=e.options.position,e.weight=e.options.weight,ze.addBox(t,e)}))}},_A=ct.valueOrDefault,IA=ct.rtl.getRtlAdapter;Z._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:ct.noop,title:function(t,e){var A="",n=e.labels,r=n?n.length:0;if(t.length>0){var i=t[0];i.label?A=i.label:i.xLabel?A=i.xLabel:r>0&&i.index<r&&(A=n[i.index])}return A},afterTitle:ct.noop,beforeBody:ct.noop,beforeLabel:ct.noop,label:function(t,e){var A=e.datasets[t.datasetIndex].label||"";return A&&(A+=": "),ct.isNullOrUndef(t.value)?A+=t.yLabel:A+=t.value,A},labelColor:function(t,e){var A=e.getDatasetMeta(t.datasetIndex),n=A.data[t.index],r=n._view;return{borderColor:r.borderColor,backgroundColor:r.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:ct.noop,afterBody:ct.noop,beforeFooter:ct.noop,footer:ct.noop,afterFooter:ct.noop}}});var EA={average:function(t){if(!t.length)return!1;var e,A,n=0,r=0,i=0;for(e=0,A=t.length;e<A;++e){var o=t[e];if(o&&o.hasValue()){var a=o.tooltipPosition();n+=a.x,r+=a.y,++i}}return{x:n/i,y:r/i}},nearest:function(t,e){var A,n,r,i=e.x,o=e.y,a=Number.POSITIVE_INFINITY;for(A=0,n=t.length;A<n;++A){var s=t[A];if(s&&s.hasValue()){var l=s.getCenterPoint(),c=ct.distanceBetweenPoints(e,l);c<a&&(a=c,r=s)}}if(r){var u=r.tooltipPosition();i=u.x,o=u.y}return{x:i,y:o}}};function kA(t,e){return e&&(ct.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function SA(t){return("string"===typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function DA(t){var e=t._xScale,A=t._yScale||t._scale,n=t._index,r=t._datasetIndex,i=t._chart.getDatasetMeta(r).controller,o=i._getIndexScale(),a=i._getValueScale();return{xLabel:e?e.getLabelForIndex(n,r):"",yLabel:A?A.getLabelForIndex(n,r):"",label:o?""+o.getLabelForIndex(n,r):"",value:a?""+a.getLabelForIndex(n,r):"",index:n,datasetIndex:r,x:t._model.x,y:t._model.y}}function HA(t){var e=Z.global;return{xPadding:t.xPadding,yPadding:t.yPadding,xAlign:t.xAlign,yAlign:t.yAlign,rtl:t.rtl,textDirection:t.textDirection,bodyFontColor:t.bodyFontColor,_bodyFontFamily:_A(t.bodyFontFamily,e.defaultFontFamily),_bodyFontStyle:_A(t.bodyFontStyle,e.defaultFontStyle),_bodyAlign:t.bodyAlign,bodyFontSize:_A(t.bodyFontSize,e.defaultFontSize),bodySpacing:t.bodySpacing,titleFontColor:t.titleFontColor,_titleFontFamily:_A(t.titleFontFamily,e.defaultFontFamily),_titleFontStyle:_A(t.titleFontStyle,e.defaultFontStyle),titleFontSize:_A(t.titleFontSize,e.defaultFontSize),_titleAlign:t.titleAlign,titleSpacing:t.titleSpacing,titleMarginBottom:t.titleMarginBottom,footerFontColor:t.footerFontColor,_footerFontFamily:_A(t.footerFontFamily,e.defaultFontFamily),_footerFontStyle:_A(t.footerFontStyle,e.defaultFontStyle),footerFontSize:_A(t.footerFontSize,e.defaultFontSize),_footerAlign:t.footerAlign,footerSpacing:t.footerSpacing,footerMarginTop:t.footerMarginTop,caretSize:t.caretSize,cornerRadius:t.cornerRadius,backgroundColor:t.backgroundColor,opacity:0,legendColorBackground:t.multiKeyBackground,displayColors:t.displayColors,borderColor:t.borderColor,borderWidth:t.borderWidth}}function MA(t,e){var A=t._chart.ctx,n=2*e.yPadding,r=0,i=e.body,o=i.reduce((function(t,e){return t+e.before.length+e.lines.length+e.after.length}),0);o+=e.beforeBody.length+e.afterBody.length;var a=e.title.length,s=e.footer.length,l=e.titleFontSize,c=e.bodyFontSize,u=e.footerFontSize;n+=a*l,n+=a?(a-1)*e.titleSpacing:0,n+=a?e.titleMarginBottom:0,n+=o*c,n+=o?(o-1)*e.bodySpacing:0,n+=s?e.footerMarginTop:0,n+=s*u,n+=s?(s-1)*e.footerSpacing:0;var h=0,d=function(t){r=Math.max(r,A.measureText(t).width+h)};return A.font=ct.fontString(l,e._titleFontStyle,e._titleFontFamily),ct.each(e.title,d),A.font=ct.fontString(c,e._bodyFontStyle,e._bodyFontFamily),ct.each(e.beforeBody.concat(e.afterBody),d),h=e.displayColors?c+2:0,ct.each(i,(function(t){ct.each(t.before,d),ct.each(t.lines,d),ct.each(t.after,d)})),h=0,A.font=ct.fontString(u,e._footerFontStyle,e._footerFontFamily),ct.each(e.footer,d),r+=2*e.xPadding,{width:r,height:n}}function OA(t,e){var A,n,r,i,o,a=t._model,s=t._chart,l=t._chart.chartArea,c="center",u="center";a.y<e.height?u="top":a.y>s.height-e.height&&(u="bottom");var h=(l.left+l.right)/2,d=(l.top+l.bottom)/2;"center"===u?(A=function(t){return t<=h},n=function(t){return t>h}):(A=function(t){return t<=e.width/2},n=function(t){return t>=s.width-e.width/2}),r=function(t){return t+e.width+a.caretSize+a.caretPadding>s.width},i=function(t){return t-e.width-a.caretSize-a.caretPadding<0},o=function(t){return t<=d?"top":"bottom"},A(a.x)?(c="left",r(a.x)&&(c="center",u=o(a.y))):n(a.x)&&(c="right",i(a.x)&&(c="center",u=o(a.y)));var g=t._options;return{xAlign:g.xAlign?g.xAlign:c,yAlign:g.yAlign?g.yAlign:u}}function TA(t,e,A,n){var r=t.x,i=t.y,o=t.caretSize,a=t.caretPadding,s=t.cornerRadius,l=A.xAlign,c=A.yAlign,u=o+a,h=s+a;return"right"===l?r-=e.width:"center"===l&&(r-=e.width/2,r+e.width>n.width&&(r=n.width-e.width),r<0&&(r=0)),"top"===c?i+=u:i-="bottom"===c?e.height+u:e.height/2,"center"===c?"left"===l?r+=u:"right"===l&&(r-=u):"left"===l?r-=h:"right"===l&&(r+=h),{x:r,y:i}}function PA(t,e){return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-t.xPadding:t.x+t.xPadding}function LA(t){return kA([],SA(t))}var RA=wt.extend({initialize:function(){this._model=HA(this._options),this._lastActive=[]},getTitle:function(){var t=this,e=t._options,A=e.callbacks,n=A.beforeTitle.apply(t,arguments),r=A.title.apply(t,arguments),i=A.afterTitle.apply(t,arguments),o=[];return o=kA(o,SA(n)),o=kA(o,SA(r)),o=kA(o,SA(i)),o},getBeforeBody:function(){return LA(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(t,e){var A=this,n=A._options.callbacks,r=[];return ct.each(t,(function(t){var i={before:[],lines:[],after:[]};kA(i.before,SA(n.beforeLabel.call(A,t,e))),kA(i.lines,n.label.call(A,t,e)),kA(i.after,SA(n.afterLabel.call(A,t,e))),r.push(i)})),r},getAfterBody:function(){return LA(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var t=this,e=t._options.callbacks,A=e.beforeFooter.apply(t,arguments),n=e.footer.apply(t,arguments),r=e.afterFooter.apply(t,arguments),i=[];return i=kA(i,SA(A)),i=kA(i,SA(n)),i=kA(i,SA(r)),i},update:function(t){var e,A,n=this,r=n._options,i=n._model,o=n._model=HA(r),a=n._active,s=n._data,l={xAlign:i.xAlign,yAlign:i.yAlign},c={x:i.x,y:i.y},u={width:i.width,height:i.height},h={x:i.caretX,y:i.caretY};if(a.length){o.opacity=1;var d=[],g=[];h=EA[r.position].call(n,a,n._eventPosition);var f=[];for(e=0,A=a.length;e<A;++e)f.push(DA(a[e]));r.filter&&(f=f.filter((function(t){return r.filter(t,s)}))),r.itemSort&&(f=f.sort((function(t,e){return r.itemSort(t,e,s)}))),ct.each(f,(function(t){d.push(r.callbacks.labelColor.call(n,t,n._chart)),g.push(r.callbacks.labelTextColor.call(n,t,n._chart))})),o.title=n.getTitle(f,s),o.beforeBody=n.getBeforeBody(f,s),o.body=n.getBody(f,s),o.afterBody=n.getAfterBody(f,s),o.footer=n.getFooter(f,s),o.x=h.x,o.y=h.y,o.caretPadding=r.caretPadding,o.labelColors=d,o.labelTextColors=g,o.dataPoints=f,u=MA(this,o),l=OA(this,u),c=TA(o,u,l,n._chart)}else o.opacity=0;return o.xAlign=l.xAlign,o.yAlign=l.yAlign,o.x=c.x,o.y=c.y,o.width=u.width,o.height=u.height,o.caretX=h.x,o.caretY=h.y,n._model=o,t&&r.custom&&r.custom.call(n,o),n},drawCaret:function(t,e){var A=this._chart.ctx,n=this._view,r=this.getCaretPosition(t,e,n);A.lineTo(r.x1,r.y1),A.lineTo(r.x2,r.y2),A.lineTo(r.x3,r.y3)},getCaretPosition:function(t,e,A){var n,r,i,o,a,s,l=A.caretSize,c=A.cornerRadius,u=A.xAlign,h=A.yAlign,d=t.x,g=t.y,f=e.width,p=e.height;if("center"===h)a=g+p/2,"left"===u?(n=d,r=n-l,i=n,o=a+l,s=a-l):(n=d+f,r=n+l,i=n,o=a-l,s=a+l);else if("left"===u?(r=d+c+l,n=r-l,i=r+l):"right"===u?(r=d+f-c-l,n=r-l,i=r+l):(r=A.caretX,n=r-l,i=r+l),"top"===h)o=g,a=o-l,s=o;else{o=g+p,a=o+l,s=o;var m=i;i=n,n=m}return{x1:n,x2:r,x3:i,y1:o,y2:a,y3:s}},drawTitle:function(t,e,A){var n,r,i,o=e.title,a=o.length;if(a){var s=IA(e.rtl,e.x,e.width);for(t.x=PA(e,e._titleAlign),A.textAlign=s.textAlign(e._titleAlign),A.textBaseline="middle",n=e.titleFontSize,r=e.titleSpacing,A.fillStyle=e.titleFontColor,A.font=ct.fontString(n,e._titleFontStyle,e._titleFontFamily),i=0;i<a;++i)A.fillText(o[i],s.x(t.x),t.y+n/2),t.y+=n+r,i+1===a&&(t.y+=e.titleMarginBottom-r)}},drawBody:function(t,e,A){var n,r,i,o,a,s,l,c,u=e.bodyFontSize,h=e.bodySpacing,d=e._bodyAlign,g=e.body,f=e.displayColors,p=0,m=f?PA(e,"left"):0,w=IA(e.rtl,e.x,e.width),B=function(e){A.fillText(e,w.x(t.x+p),t.y+u/2),t.y+=u+h},v=w.textAlign(d);for(A.textAlign=d,A.textBaseline="middle",A.font=ct.fontString(u,e._bodyFontStyle,e._bodyFontFamily),t.x=PA(e,v),A.fillStyle=e.bodyFontColor,ct.each(e.beforeBody,B),p=f&&"right"!==v?"center"===d?u/2+1:u+2:0,a=0,l=g.length;a<l;++a){for(n=g[a],r=e.labelTextColors[a],i=e.labelColors[a],A.fillStyle=r,ct.each(n.before,B),o=n.lines,s=0,c=o.length;s<c;++s){if(f){var y=w.x(m);A.fillStyle=e.legendColorBackground,A.fillRect(w.leftForLtr(y,u),t.y,u,u),A.lineWidth=1,A.strokeStyle=i.borderColor,A.strokeRect(w.leftForLtr(y,u),t.y,u,u),A.fillStyle=i.backgroundColor,A.fillRect(w.leftForLtr(w.xPlus(y,1),u-2),t.y+1,u-2,u-2),A.fillStyle=r}B(o[s])}ct.each(n.after,B)}p=0,ct.each(e.afterBody,B),t.y-=h},drawFooter:function(t,e,A){var n,r,i=e.footer,o=i.length;if(o){var a=IA(e.rtl,e.x,e.width);for(t.x=PA(e,e._footerAlign),t.y+=e.footerMarginTop,A.textAlign=a.textAlign(e._footerAlign),A.textBaseline="middle",n=e.footerFontSize,A.fillStyle=e.footerFontColor,A.font=ct.fontString(n,e._footerFontStyle,e._footerFontFamily),r=0;r<o;++r)A.fillText(i[r],a.x(t.x),t.y+n/2),t.y+=n+e.footerSpacing}},drawBackground:function(t,e,A,n){A.fillStyle=e.backgroundColor,A.strokeStyle=e.borderColor,A.lineWidth=e.borderWidth;var r=e.xAlign,i=e.yAlign,o=t.x,a=t.y,s=n.width,l=n.height,c=e.cornerRadius;A.beginPath(),A.moveTo(o+c,a),"top"===i&&this.drawCaret(t,n),A.lineTo(o+s-c,a),A.quadraticCurveTo(o+s,a,o+s,a+c),"center"===i&&"right"===r&&this.drawCaret(t,n),A.lineTo(o+s,a+l-c),A.quadraticCurveTo(o+s,a+l,o+s-c,a+l),"bottom"===i&&this.drawCaret(t,n),A.lineTo(o+c,a+l),A.quadraticCurveTo(o,a+l,o,a+l-c),"center"===i&&"left"===r&&this.drawCaret(t,n),A.lineTo(o,a+c),A.quadraticCurveTo(o,a,o+c,a),A.closePath(),A.fill(),e.borderWidth>0&&A.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var A={width:e.width,height:e.height},n={x:e.x,y:e.y},r=Math.abs(e.opacity<.001)?0:e.opacity,i=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&i&&(t.save(),t.globalAlpha=r,this.drawBackground(n,e,t,A),n.y+=e.yPadding,ct.rtl.overrideTextDirection(t,e.textDirection),this.drawTitle(n,e,t),this.drawBody(n,e,t),this.drawFooter(n,e,t),ct.rtl.restoreTextDirection(t,e.textDirection),t.restore())}},handleEvent:function(t){var e=this,A=e._options,n=!1;return e._lastActive=e._lastActive||[],"mouseout"===t.type?e._active=[]:(e._active=e._chart.getElementsAtEventForMode(t,A.mode,A),A.reverse&&e._active.reverse()),n=!ct.arrayEquals(e._active,e._lastActive),n&&(e._lastActive=e._active,(A.enabled||A.custom)&&(e._eventPosition={x:t.x,y:t.y},e.update(!0),e.pivot())),n}}),NA=EA,KA=RA;KA.positioners=NA;var jA=ct.valueOrDefault;function VA(){return ct.merge(Object.create(null),[].slice.call(arguments),{merger:function(t,e,A,n){if("xAxes"===t||"yAxes"===t){var r,i,o,a=A[t].length;for(e[t]||(e[t]=[]),r=0;r<a;++r)o=A[t][r],i=jA(o.type,"xAxes"===t?"category":"linear"),r>=e[t].length&&e[t].push({}),!e[t][r].type||o.type&&o.type!==e[t][r].type?ct.merge(e[t][r],[UA.getScaleDefaults(i),o]):ct.merge(e[t][r],o)}else ct._merger(t,e,A,n)}})}function GA(){return ct.merge(Object.create(null),[].slice.call(arguments),{merger:function(t,e,A,n){var r=e[t]||Object.create(null),i=A[t];"scales"===t?e[t]=VA(r,i):"scale"===t?e[t]=ct.merge(r,[UA.getScaleDefaults(i.type),i]):ct._merger(t,e,A,n)}})}function qA(t){t=t||Object.create(null);var e=t.data=t.data||{};return e.datasets=e.datasets||[],e.labels=e.labels||[],t.options=GA(Z.global,Z[t.type],t.options||{}),t}function WA(t){var e=t.options;ct.each(t.scales,(function(e){ze.removeBox(t,e)})),e=GA(Z.global,Z[t.config.type],e),t.options=t.config.options=e,t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),t.tooltip._options=e.tooltips,t.tooltip.initialize()}function YA(t,e,A){var n,r=function(t){return t.id===n};do{n=e+A++}while(ct.findIndex(t,r)>=0);return n}function zA(t){return"top"===t||"bottom"===t}function XA(t,e){return function(A,n){return A[t]===n[t]?A[e]-n[e]:A[t]-n[t]}}Z._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var JA=function(t,e){return this.construct(t,e),this};ct.extend(JA.prototype,{construct:function(t,e){var A=this;e=qA(e);var n=FA.acquireContext(t,e),r=n&&n.canvas,i=r&&r.height,o=r&&r.width;A.id=ct.uid(),A.ctx=n,A.canvas=r,A.config=e,A.width=o,A.height=i,A.aspectRatio=i?o/i:null,A.options=e.options,A._bufferedRender=!1,A._layers=[],A.chart=A,A.controller=A,JA.instances[A.id]=A,Object.defineProperty(A,"data",{get:function(){return A.config.data},set:function(t){A.config.data=t}}),n&&r?(A.initialize(),A.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return QA.notify(t,"beforeInit"),ct.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.initToolTip(),QA.notify(t,"afterInit"),t},clear:function(){return ct.canvas.clear(this),this},stop:function(){return yt.cancelAnimation(this),this},resize:function(t){var e=this,A=e.options,n=e.canvas,r=A.maintainAspectRatio&&e.aspectRatio||null,i=Math.max(0,Math.floor(ct.getMaximumWidth(n))),o=Math.max(0,Math.floor(r?i/r:ct.getMaximumHeight(n)));if((e.width!==i||e.height!==o)&&(n.width=e.width=i,n.height=e.height=o,n.style.width=i+"px",n.style.height=o+"px",ct.retinaScale(e,A.devicePixelRatio),!t)){var a={width:i,height:o};QA.notify(e,"resize",[a]),A.onResize&&A.onResize(e,a),e.stop(),e.update({duration:A.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},A=t.scale;ct.each(e.xAxes,(function(t,A){t.id||(t.id=YA(e.xAxes,"x-axis-",A))})),ct.each(e.yAxes,(function(t,A){t.id||(t.id=YA(e.yAxes,"y-axis-",A))})),A&&(A.id=A.id||"scale")},buildOrUpdateScales:function(){var t=this,e=t.options,A=t.scales||{},n=[],r=Object.keys(A).reduce((function(t,e){return t[e]=!1,t}),{});e.scales&&(n=n.concat((e.scales.xAxes||[]).map((function(t){return{options:t,dtype:"category",dposition:"bottom"}})),(e.scales.yAxes||[]).map((function(t){return{options:t,dtype:"linear",dposition:"left"}})))),e.scale&&n.push({options:e.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),ct.each(n,(function(e){var n=e.options,i=n.id,o=jA(n.type,e.dtype);zA(n.position)!==zA(e.dposition)&&(n.position=e.dposition),r[i]=!0;var a=null;if(i in A&&A[i].type===o)a=A[i],a.options=n,a.ctx=t.ctx,a.chart=t;else{var s=UA.getScaleConstructor(o);if(!s)return;a=new s({id:i,type:o,options:n,ctx:t.ctx,chart:t}),A[a.id]=a}a.mergeTicksOptions(),e.isDefault&&(t.scale=a)})),ct.each(r,(function(t,e){t||delete A[e]})),t.scales=A,UA.addScalesToLayout(this)},buildOrUpdateControllers:function(){var t,e,A=this,n=[],r=A.data.datasets;for(t=0,e=r.length;t<e;t++){var i=r[t],o=A.getDatasetMeta(t),a=i.type||A.config.type;if(o.type&&o.type!==a&&(A.destroyDatasetMeta(t),o=A.getDatasetMeta(t)),o.type=a,o.order=i.order||0,o.index=t,o.controller)o.controller.updateIndex(t),o.controller.linkScales();else{var s=Ie[o.type];if(void 0===s)throw new Error('"'+o.type+'" is not a chart type.');o.controller=new s(A,t),n.push(o.controller)}}return n},resetElements:function(){var t=this;ct.each(t.data.datasets,(function(e,A){t.getDatasetMeta(A).controller.reset()}),t)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e,A,n=this;if(t&&"object"===typeof t||(t={duration:t,lazy:arguments[1]}),WA(n),QA._invalidate(n),!1!==QA.notify(n,"beforeUpdate")){n.tooltip._data=n.data;var r=n.buildOrUpdateControllers();for(e=0,A=n.data.datasets.length;e<A;e++)n.getDatasetMeta(e).controller.buildOrUpdateElements();n.updateLayout(),n.options.animation&&n.options.animation.duration&&ct.each(r,(function(t){t.reset()})),n.updateDatasets(),n.tooltip.initialize(),n.lastActive=[],QA.notify(n,"afterUpdate"),n._layers.sort(XA("z","_idx")),n._bufferedRender?n._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:n.render(t)}},updateLayout:function(){var t=this;!1!==QA.notify(t,"beforeLayout")&&(ze.update(this,this.width,this.height),t._layers=[],ct.each(t.boxes,(function(e){e._configure&&e._configure(),t._layers.push.apply(t._layers,e._layers())}),t),t._layers.forEach((function(t,e){t._idx=e})),QA.notify(t,"afterScaleUpdate"),QA.notify(t,"afterLayout"))},updateDatasets:function(){var t=this;if(!1!==QA.notify(t,"beforeDatasetsUpdate")){for(var e=0,A=t.data.datasets.length;e<A;++e)t.updateDataset(e);QA.notify(t,"afterDatasetsUpdate")}},updateDataset:function(t){var e=this,A=e.getDatasetMeta(t),n={meta:A,index:t};!1!==QA.notify(e,"beforeDatasetUpdate",[n])&&(A.controller._update(),QA.notify(e,"afterDatasetUpdate",[n]))},render:function(t){var e=this;t&&"object"===typeof t||(t={duration:t,lazy:arguments[1]});var A=e.options.animation,n=jA(t.duration,A&&A.duration),r=t.lazy;if(!1!==QA.notify(e,"beforeRender")){var i=function(t){QA.notify(e,"afterRender"),ct.callback(A&&A.onComplete,[t],e)};if(A&&n){var o=new vt({numSteps:n/16.66,easing:t.easing||A.easing,render:function(t,e){var A=ct.easing.effects[e.easing],n=e.currentStep,r=n/e.numSteps;t.draw(A(r),r,n)},onAnimationProgress:A.onProgress,onAnimationComplete:i});yt.addAnimation(e,o,n,r)}else e.draw(),i(new vt({numSteps:0,chart:e}));return e}},draw:function(t){var e,A,n=this;if(n.clear(),ct.isNullOrUndef(t)&&(t=1),n.transition(t),!(n.width<=0||n.height<=0)&&!1!==QA.notify(n,"beforeDraw",[t])){for(A=n._layers,e=0;e<A.length&&A[e].z<=0;++e)A[e].draw(n.chartArea);for(n.drawDatasets(t);e<A.length;++e)A[e].draw(n.chartArea);n._drawTooltip(t),QA.notify(n,"afterDraw",[t])}},transition:function(t){for(var e=this,A=0,n=(e.data.datasets||[]).length;A<n;++A)e.isDatasetVisible(A)&&e.getDatasetMeta(A).controller.transition(t);e.tooltip.transition(t)},_getSortedDatasetMetas:function(t){var e,A,n=this,r=n.data.datasets||[],i=[];for(e=0,A=r.length;e<A;++e)t&&!n.isDatasetVisible(e)||i.push(n.getDatasetMeta(e));return i.sort(XA("order","index")),i},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(t){var e,A,n=this;if(!1!==QA.notify(n,"beforeDatasetsDraw",[t])){for(e=n._getSortedVisibleDatasetMetas(),A=e.length-1;A>=0;--A)n.drawDataset(e[A],t);QA.notify(n,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var A=this,n={meta:t,index:t.index,easingValue:e};!1!==QA.notify(A,"beforeDatasetDraw",[n])&&(t.controller.draw(e),QA.notify(A,"afterDatasetDraw",[n]))},_drawTooltip:function(t){var e=this,A=e.tooltip,n={tooltip:A,easingValue:t};!1!==QA.notify(e,"beforeTooltipDraw",[n])&&(A.draw(),QA.notify(e,"afterTooltipDraw",[n]))},getElementAtEvent:function(t){return Oe.modes.single(this,t)},getElementsAtEvent:function(t){return Oe.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return Oe.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,A){var n=Oe.modes[e];return"function"===typeof n?n(this,t,A):[]},getDatasetAtEvent:function(t){return Oe.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this,A=e.data.datasets[t];A._meta||(A._meta={});var n=A._meta[e.id];return n||(n=A._meta[e.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:A.order||0,index:t}),n},getVisibleDatasetCount:function(){for(var t=0,e=0,A=this.data.datasets.length;e<A;++e)this.isDatasetVisible(e)&&t++;return t},isDatasetVisible:function(t){var e=this.getDatasetMeta(t);return"boolean"===typeof e.hidden?!e.hidden:!this.data.datasets[t].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(t){var e=this.id,A=this.data.datasets[t],n=A._meta&&A._meta[e];n&&(n.controller.destroy(),delete A._meta[e])},destroy:function(){var t,e,A=this,n=A.canvas;for(A.stop(),t=0,e=A.data.datasets.length;t<e;++t)A.destroyDatasetMeta(t);n&&(A.unbindEvents(),ct.canvas.clear(A),FA.releaseContext(A.ctx),A.canvas=null,A.ctx=null),QA.notify(A,"destroy"),delete JA.instances[A.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var t=this;t.tooltip=new KA({_chart:t,_chartInstance:t,_data:t.data,_options:t.options.tooltips},t)},bindEvents:function(){var t=this,e=t._listeners={},A=function(){t.eventHandler.apply(t,arguments)};ct.each(t.options.events,(function(n){FA.addEventListener(t,n,A),e[n]=A})),t.options.responsive&&(A=function(){t.resize()},FA.addEventListener(t,"resize",A),e.resize=A)},unbindEvents:function(){var t=this,e=t._listeners;e&&(delete t._listeners,ct.each(e,(function(e,A){FA.removeEventListener(t,A,e)})))},updateHoverStyle:function(t,e,A){var n,r,i,o=A?"set":"remove";for(r=0,i=t.length;r<i;++r)n=t[r],n&&this.getDatasetMeta(n._datasetIndex).controller[o+"HoverStyle"](n);"dataset"===e&&this.getDatasetMeta(t[0]._datasetIndex).controller["_"+o+"DatasetHoverStyle"]()},eventHandler:function(t){var e=this,A=e.tooltip;if(!1!==QA.notify(e,"beforeEvent",[t])){e._bufferedRender=!0,e._bufferedRequest=null;var n=e.handleEvent(t);A&&(n=A._start?A.handleEvent(t):n|A.handleEvent(t)),QA.notify(e,"afterEvent",[t]);var r=e._bufferedRequest;return r?e.render(r):n&&!e.animating&&(e.stop(),e.render({duration:e.options.hover.animationDuration,lazy:!0})),e._bufferedRender=!1,e._bufferedRequest=null,e}},handleEvent:function(t){var e=this,A=e.options||{},n=A.hover,r=!1;return e.lastActive=e.lastActive||[],"mouseout"===t.type?e.active=[]:e.active=e.getElementsAtEventForMode(t,n.mode,n),ct.callback(A.onHover||A.hover.onHover,[t.native,e.active],e),"mouseup"!==t.type&&"click"!==t.type||A.onClick&&A.onClick.call(e,t.native,e.active),e.lastActive.length&&e.updateHoverStyle(e.lastActive,n.mode,!1),e.active.length&&n.mode&&e.updateHoverStyle(e.active,n.mode,!0),r=!ct.arrayEquals(e.active,e.lastActive),e.lastActive=e.active,r}}),JA.instances={};var ZA=JA;JA.Controller=JA,JA.types={},ct.configMerge=GA,ct.scaleMerge=VA;var $A=function(){function t(t,e,A){var n;return"string"===typeof t?(n=parseInt(t,10),-1!==t.indexOf("%")&&(n=n/100*e.parentNode[A])):n=t,n}function e(t){return void 0!==t&&null!==t&&"none"!==t}function A(A,n,r){var i=document.defaultView,o=ct._getParentNode(A),a=i.getComputedStyle(A)[n],s=i.getComputedStyle(o)[n],l=e(a),c=e(s),u=Number.POSITIVE_INFINITY;return l||c?Math.min(l?t(a,A,r):u,c?t(s,o,r):u):"none"}ct.where=function(t,e){if(ct.isArray(t)&&Array.prototype.filter)return t.filter(e);var A=[];return ct.each(t,(function(t){e(t)&&A.push(t)})),A},ct.findIndex=Array.prototype.findIndex?function(t,e,A){return t.findIndex(e,A)}:function(t,e,A){A=void 0===A?t:A;for(var n=0,r=t.length;n<r;++n)if(e.call(A,t[n],n,t))return n;return-1},ct.findNextWhere=function(t,e,A){ct.isNullOrUndef(A)&&(A=-1);for(var n=A+1;n<t.length;n++){var r=t[n];if(e(r))return r}},ct.findPreviousWhere=function(t,e,A){ct.isNullOrUndef(A)&&(A=t.length);for(var n=A-1;n>=0;n--){var r=t[n];if(e(r))return r}},ct.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},ct.almostEquals=function(t,e,A){return Math.abs(t-e)<A},ct.almostWhole=function(t,e){var A=Math.round(t);return A-e<=t&&A+e>=t},ct.max=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.max(t,e)}),Number.NEGATIVE_INFINITY)},ct.min=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.min(t,e)}),Number.POSITIVE_INFINITY)},ct.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return t=+t,0===t||isNaN(t)?t:t>0?1:-1},ct.toRadians=function(t){return t*(Math.PI/180)},ct.toDegrees=function(t){return t*(180/Math.PI)},ct._decimalPlaces=function(t){if(ct.isFinite(t)){var e=1,A=0;while(Math.round(t*e)/e!==t)e*=10,A++;return A}},ct.getAngleFromPoint=function(t,e){var A=e.x-t.x,n=e.y-t.y,r=Math.sqrt(A*A+n*n),i=Math.atan2(n,A);return i<-.5*Math.PI&&(i+=2*Math.PI),{angle:i,distance:r}},ct.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},ct.aliasPixel=function(t){return t%2===0?0:.5},ct._alignPixel=function(t,e,A){var n=t.currentDevicePixelRatio,r=A/2;return Math.round((e-r)*n)/n+r},ct.splineCurve=function(t,e,A,n){var r=t.skip?e:t,i=e,o=A.skip?e:A,a=Math.sqrt(Math.pow(i.x-r.x,2)+Math.pow(i.y-r.y,2)),s=Math.sqrt(Math.pow(o.x-i.x,2)+Math.pow(o.y-i.y,2)),l=a/(a+s),c=s/(a+s);l=isNaN(l)?0:l,c=isNaN(c)?0:c;var u=n*l,h=n*c;return{previous:{x:i.x-u*(o.x-r.x),y:i.y-u*(o.y-r.y)},next:{x:i.x+h*(o.x-r.x),y:i.y+h*(o.y-r.y)}}},ct.EPSILON=Number.EPSILON||1e-14,ct.splineCurveMonotone=function(t){var e,A,n,r,i,o,a,s,l,c=(t||[]).map((function(t){return{model:t._model,deltaK:0,mK:0}})),u=c.length;for(e=0;e<u;++e)if(n=c[e],!n.model.skip){if(A=e>0?c[e-1]:null,r=e<u-1?c[e+1]:null,r&&!r.model.skip){var h=r.model.x-n.model.x;n.deltaK=0!==h?(r.model.y-n.model.y)/h:0}!A||A.model.skip?n.mK=n.deltaK:!r||r.model.skip?n.mK=A.deltaK:this.sign(A.deltaK)!==this.sign(n.deltaK)?n.mK=0:n.mK=(A.deltaK+n.deltaK)/2}for(e=0;e<u-1;++e)n=c[e],r=c[e+1],n.model.skip||r.model.skip||(ct.almostEquals(n.deltaK,0,this.EPSILON)?n.mK=r.mK=0:(i=n.mK/n.deltaK,o=r.mK/n.deltaK,s=Math.pow(i,2)+Math.pow(o,2),s<=9||(a=3/Math.sqrt(s),n.mK=i*a*n.deltaK,r.mK=o*a*n.deltaK)));for(e=0;e<u;++e)n=c[e],n.model.skip||(A=e>0?c[e-1]:null,r=e<u-1?c[e+1]:null,A&&!A.model.skip&&(l=(n.model.x-A.model.x)/3,n.model.controlPointPreviousX=n.model.x-l,n.model.controlPointPreviousY=n.model.y-l*n.mK),r&&!r.model.skip&&(l=(r.model.x-n.model.x)/3,n.model.controlPointNextX=n.model.x+l,n.model.controlPointNextY=n.model.y+l*n.mK))},ct.nextItem=function(t,e,A){return A?e>=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},ct.previousItem=function(t,e,A){return A?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},ct.niceNum=function(t,e){var A,n=Math.floor(ct.log10(t)),r=t/Math.pow(10,n);return A=e?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10,A*Math.pow(10,n)},ct.requestAnimFrame=function(){return"undefined"===typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)}}(),ct.getRelativePosition=function(t,e){var A,n,r=t.originalEvent||t,i=t.target||t.srcElement,o=i.getBoundingClientRect(),a=r.touches;a&&a.length>0?(A=a[0].clientX,n=a[0].clientY):(A=r.clientX,n=r.clientY);var s=parseFloat(ct.getStyle(i,"padding-left")),l=parseFloat(ct.getStyle(i,"padding-top")),c=parseFloat(ct.getStyle(i,"padding-right")),u=parseFloat(ct.getStyle(i,"padding-bottom")),h=o.right-o.left-s-c,d=o.bottom-o.top-l-u;return A=Math.round((A-o.left-s)/h*i.width/e.currentDevicePixelRatio),n=Math.round((n-o.top-l)/d*i.height/e.currentDevicePixelRatio),{x:A,y:n}},ct.getConstraintWidth=function(t){return A(t,"max-width","clientWidth")},ct.getConstraintHeight=function(t){return A(t,"max-height","clientHeight")},ct._calculatePadding=function(t,e,A){return e=ct.getStyle(t,e),e.indexOf("%")>-1?A*parseInt(e,10)/100:parseInt(e,10)},ct._getParentNode=function(t){var e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e},ct.getMaximumWidth=function(t){var e=ct._getParentNode(t);if(!e)return t.clientWidth;var A=e.clientWidth,n=ct._calculatePadding(e,"padding-left",A),r=ct._calculatePadding(e,"padding-right",A),i=A-n-r,o=ct.getConstraintWidth(t);return isNaN(o)?i:Math.min(i,o)},ct.getMaximumHeight=function(t){var e=ct._getParentNode(t);if(!e)return t.clientHeight;var A=e.clientHeight,n=ct._calculatePadding(e,"padding-top",A),r=ct._calculatePadding(e,"padding-bottom",A),i=A-n-r,o=ct.getConstraintHeight(t);return isNaN(o)?i:Math.min(i,o)},ct.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},ct.retinaScale=function(t,e){var A=t.currentDevicePixelRatio=e||"undefined"!==typeof window&&window.devicePixelRatio||1;if(1!==A){var n=t.canvas,r=t.height,i=t.width;n.height=r*A,n.width=i*A,t.ctx.scale(A,A),n.style.height||n.style.width||(n.style.height=r+"px",n.style.width=i+"px")}},ct.fontString=function(t,e,A){return e+" "+t+"px "+A},ct.longestText=function(t,e,A,n){n=n||{};var r=n.data=n.data||{},i=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(r=n.data={},i=n.garbageCollect=[],n.font=e),t.font=e;var o,a,s,l,c,u=0,h=A.length;for(o=0;o<h;o++)if(l=A[o],void 0!==l&&null!==l&&!0!==ct.isArray(l))u=ct.measureText(t,r,i,u,l);else if(ct.isArray(l))for(a=0,s=l.length;a<s;a++)c=l[a],void 0===c||null===c||ct.isArray(c)||(u=ct.measureText(t,r,i,u,c));var d=i.length/2;if(d>A.length){for(o=0;o<d;o++)delete r[i[o]];i.splice(0,d)}return u},ct.measureText=function(t,e,A,n,r){var i=e[r];return i||(i=e[r]=t.measureText(r).width,A.push(r)),i>n&&(n=i),n},ct.numberOfLabelLines=function(t){var e=1;return ct.each(t,(function(t){ct.isArray(t)&&t.length>e&&(e=t.length)})),e},ct.color=T?function(t){return t instanceof CanvasGradient&&(t=Z.global.defaultColor),T(t)}:function(t){return console.error("Color.js not found!"),t},ct.getHoverColor=function(t){return t instanceof CanvasPattern||t instanceof CanvasGradient?t:ct.color(t).saturate(.5).darken(.1).rgbString()}};function tn(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function en(t){this.options=t||{}}ct.extend(en.prototype,{formats:tn,parse:tn,format:tn,add:tn,diff:tn,startOf:tn,endOf:tn,_create:function(t){return t}}),en.override=function(t){ct.extend(en.prototype,t)};var An=en,nn={_date:An},rn={formatters:{values:function(t){return ct.isArray(t)?t:""+t},linear:function(t,e,A){var n=A.length>3?A[2]-A[1]:A[1]-A[0];Math.abs(n)>1&&t!==Math.floor(t)&&(n=t-Math.floor(t));var r=ct.log10(Math.abs(n)),i="";if(0!==t){var o=Math.max(Math.abs(A[0]),Math.abs(A[A.length-1]));if(o<1e-4){var a=ct.log10(Math.abs(t)),s=Math.floor(a)-Math.floor(r);s=Math.max(Math.min(s,20),0),i=t.toExponential(s)}else{var l=-1*Math.floor(r);l=Math.max(Math.min(l,20),0),i=t.toFixed(l)}}else i="0";return i},logarithmic:function(t,e,A){var n=t/Math.pow(10,Math.floor(ct.log10(t)));return 0===t?"0":1===n||2===n||5===n||0===e||e===A.length-1?t.toExponential():""}}},on=ct.isArray,an=ct.isNullOrUndef,sn=ct.valueOrDefault,ln=ct.valueAtIndexOrDefault;function cn(t,e){for(var A=[],n=t.length/e,r=0,i=t.length;r<i;r+=n)A.push(t[Math.floor(r)]);return A}function un(t,e,A){var n,r=t.getTicks().length,i=Math.min(e,r-1),o=t.getPixelForTick(i),a=t._startPixel,s=t._endPixel,l=1e-6;if(!(A&&(n=1===r?Math.max(o-a,s-o):0===e?(t.getPixelForTick(1)-o)/2:(o-t.getPixelForTick(i-1))/2,o+=i<e?n:-n,o<a-l||o>s+l)))return o}function hn(t,e){ct.each(t,(function(t){var A,n=t.gc,r=n.length/2;if(r>e){for(A=0;A<r;++A)delete t.data[n[A]];n.splice(0,r)}}))}function dn(t,e,A,n){var r,i,o,a,s,l,c,u,h,d,g,f,p,m=A.length,w=[],B=[],v=[],y=0,b=0;for(r=0;r<m;++r){if(a=A[r].label,s=A[r].major?e.major:e.minor,t.font=l=s.string,c=n[l]=n[l]||{data:{},gc:[]},u=s.lineHeight,h=d=0,an(a)||on(a)){if(on(a))for(i=0,o=a.length;i<o;++i)g=a[i],an(g)||on(g)||(h=ct.measureText(t,c.data,c.gc,h,g),d+=u)}else h=ct.measureText(t,c.data,c.gc,h,a),d=u;w.push(h),B.push(d),v.push(u/2),y=Math.max(h,y),b=Math.max(d,b)}function C(t){return{width:w[t]||0,height:B[t]||0,offset:v[t]||0}}return hn(n,m),f=w.indexOf(y),p=B.indexOf(b),{first:C(0),last:C(m-1),widest:C(f),highest:C(p)}}function gn(t){return t.drawTicks?t.tickMarkLength:0}function fn(t){var e,A;return t.display?(e=ct.options._parseFont(t),A=ct.options.toPadding(t.padding),e.lineHeight+A.height):0}function pn(t,e){return ct.extend(ct.options._parseFont({fontFamily:sn(e.fontFamily,t.fontFamily),fontSize:sn(e.fontSize,t.fontSize),fontStyle:sn(e.fontStyle,t.fontStyle),lineHeight:sn(e.lineHeight,t.lineHeight)}),{color:ct.options.resolve([e.fontColor,t.fontColor,Z.global.defaultFontColor])})}function mn(t){var e=pn(t,t.minor),A=t.major.enabled?pn(t,t.major):e;return{minor:e,major:A}}function wn(t){var e,A,n,r=[];for(A=0,n=t.length;A<n;++A)e=t[A],"undefined"!==typeof e._index&&r.push(e);return r}function Bn(t){var e,A,n=t.length;if(n<2)return!1;for(A=t[0],e=1;e<n;++e)if(t[e]-t[e-1]!==A)return!1;return A}function vn(t,e,A,n){var r,i,o,a,s=Bn(t),l=(e.length-1)/n;if(!s)return Math.max(l,1);for(r=ct.math._factorize(s),o=0,a=r.length-1;o<a;o++)if(i=r[o],i>l)return i;return Math.max(l,1)}function yn(t){var e,A,n=[];for(e=0,A=t.length;e<A;e++)t[e].major&&n.push(e);return n}function bn(t,e,A){var n,r,i=0,o=e[0];for(A=Math.ceil(A),n=0;n<t.length;n++)r=t[n],n===o?(r._index=n,i++,o=e[i*A]):delete r.label}function Cn(t,e,A,n){var r,i,o,a,s=sn(A,0),l=Math.min(sn(n,t.length),t.length),c=0;e=Math.ceil(e),n&&(r=n-A,e=r/Math.floor(r/e)),a=s;while(a<0)c++,a=Math.round(s+c*e);for(i=Math.max(s,0);i<l;i++)o=t[i],i===a?(o._index=i,c++,a=Math.round(s+c*e)):delete o.label}Z._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:rn.formatters.values,minor:{},major:{}}});var xn=wt.extend({zeroLineIndex:0,getPadding:function(){var t=this;return{left:t.paddingLeft||0,top:t.paddingTop||0,right:t.paddingRight||0,bottom:t.paddingBottom||0}},getTicks:function(){return this._ticks},_getLabels:function(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]},mergeTicksOptions:function(){},beforeUpdate:function(){ct.callback(this.options.beforeUpdate,[this])},update:function(t,e,A){var n,r,i,o,a,s=this,l=s.options.ticks,c=l.sampleSize;if(s.beforeUpdate(),s.maxWidth=t,s.maxHeight=e,s.margins=ct.extend({left:0,right:0,top:0,bottom:0},A),s._ticks=null,s.ticks=null,s._labelSizes=null,s._maxLabelLines=0,s.longestLabelWidth=0,s.longestTextCache=s.longestTextCache||{},s._gridLineItems=null,s._labelItems=null,s.beforeSetDimensions(),s.setDimensions(),s.afterSetDimensions(),s.beforeDataLimits(),s.determineDataLimits(),s.afterDataLimits(),s.beforeBuildTicks(),o=s.buildTicks()||[],o=s.afterBuildTicks(o)||o,(!o||!o.length)&&s.ticks)for(o=[],n=0,r=s.ticks.length;n<r;++n)o.push({value:s.ticks[n],major:!1});return s._ticks=o,a=c<o.length,i=s._convertTicksToLabels(a?cn(o,c):o),s._configure(),s.beforeCalculateTickRotation(),s.calculateTickRotation(),s.afterCalculateTickRotation(),s.beforeFit(),s.fit(),s.afterFit(),s._ticksToDraw=l.display&&(l.autoSkip||"auto"===l.source)?s._autoSkip(o):o,a&&(i=s._convertTicksToLabels(s._ticksToDraw)),s.ticks=i,s.afterUpdate(),s.minSize},_configure:function(){var t,e,A=this,n=A.options.ticks.reverse;A.isHorizontal()?(t=A.left,e=A.right):(t=A.top,e=A.bottom,n=!n),A._startPixel=t,A._endPixel=e,A._reversePixels=n,A._length=e-t},afterUpdate:function(){ct.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){ct.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0},afterSetDimensions:function(){ct.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){ct.callback(this.options.beforeDataLimits,[this])},determineDataLimits:ct.noop,afterDataLimits:function(){ct.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){ct.callback(this.options.beforeBuildTicks,[this])},buildTicks:ct.noop,afterBuildTicks:function(t){var e=this;return on(t)&&t.length?ct.callback(e.options.afterBuildTicks,[e,t]):(e.ticks=ct.callback(e.options.afterBuildTicks,[e,e.ticks])||e.ticks,t)},beforeTickToLabelConversion:function(){ct.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this,e=t.options.ticks;t.ticks=t.ticks.map(e.userCallback||e.callback,this)},afterTickToLabelConversion:function(){ct.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){ct.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var t,e,A,n,r,i,o,a=this,s=a.options,l=s.ticks,c=a.getTicks().length,u=l.minRotation||0,h=l.maxRotation,d=u;!a._isVisible()||!l.display||u>=h||c<=1||!a.isHorizontal()?a.labelRotation=u:(t=a._getLabelSizes(),e=t.widest.width,A=t.highest.height-t.highest.offset,n=Math.min(a.maxWidth,a.chart.width-e),r=s.offset?a.maxWidth/c:n/(c-1),e+6>r&&(r=n/(c-(s.offset?.5:1)),i=a.maxHeight-gn(s.gridLines)-l.padding-fn(s.scaleLabel),o=Math.sqrt(e*e+A*A),d=ct.toDegrees(Math.min(Math.asin(Math.min((t.highest.height+6)/r,1)),Math.asin(Math.min(i/o,1))-Math.asin(A/o))),d=Math.max(u,Math.min(h,d))),a.labelRotation=d)},afterCalculateTickRotation:function(){ct.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){ct.callback(this.options.beforeFit,[this])},fit:function(){var t=this,e=t.minSize={width:0,height:0},A=t.chart,n=t.options,r=n.ticks,i=n.scaleLabel,o=n.gridLines,a=t._isVisible(),s="bottom"===n.position,l=t.isHorizontal();if(l?e.width=t.maxWidth:a&&(e.width=gn(o)+fn(i)),l?a&&(e.height=gn(o)+fn(i)):e.height=t.maxHeight,r.display&&a){var c=mn(r),u=t._getLabelSizes(),h=u.first,d=u.last,g=u.widest,f=u.highest,p=.4*c.minor.lineHeight,m=r.padding;if(l){var w=0!==t.labelRotation,B=ct.toRadians(t.labelRotation),v=Math.cos(B),y=Math.sin(B),b=y*g.width+v*(f.height-(w?f.offset:0))+(w?0:p);e.height=Math.min(t.maxHeight,e.height+b+m);var C,x,F=t.getPixelForTick(0)-t.left,Q=t.right-t.getPixelForTick(t.getTicks().length-1);w?(C=s?v*h.width+y*h.offset:y*(h.height-h.offset),x=s?y*(d.height-d.offset):v*d.width+y*d.offset):(C=h.width/2,x=d.width/2),t.paddingLeft=Math.max((C-F)*t.width/(t.width-F),0)+3,t.paddingRight=Math.max((x-Q)*t.width/(t.width-Q),0)+3}else{var U=r.mirror?0:g.width+m+p;e.width=Math.min(t.maxWidth,e.width+U),t.paddingTop=h.height/2,t.paddingBottom=d.height/2}}t.handleMargins(),l?(t.width=t._length=A.width-t.margins.left-t.margins.right,t.height=e.height):(t.width=e.width,t.height=t._length=A.height-t.margins.top-t.margins.bottom)},handleMargins:function(){var t=this;t.margins&&(t.margins.left=Math.max(t.paddingLeft,t.margins.left),t.margins.top=Math.max(t.paddingTop,t.margins.top),t.margins.right=Math.max(t.paddingRight,t.margins.right),t.margins.bottom=Math.max(t.paddingBottom,t.margins.bottom))},afterFit:function(){ct.callback(this.options.afterFit,[this])},isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(an(t))return NaN;if(("number"===typeof t||t instanceof Number)&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},_convertTicksToLabels:function(t){var e,A,n,r=this;for(r.ticks=t.map((function(t){return t.value})),r.beforeTickToLabelConversion(),e=r.convertTicksToLabels(t)||r.ticks,r.afterTickToLabelConversion(),A=0,n=t.length;A<n;++A)t[A].label=e[A];return e},_getLabelSizes:function(){var t=this,e=t._labelSizes;return e||(t._labelSizes=e=dn(t.ctx,mn(t.options.ticks),t.getTicks(),t.longestTextCache),t.longestLabelWidth=e.widest.width),e},_parseValue:function(t){var e,A,n,r;return on(t)?(e=+this.getRightValue(t[0]),A=+this.getRightValue(t[1]),n=Math.min(e,A),r=Math.max(e,A)):(t=+this.getRightValue(t),e=void 0,A=t,n=t,r=t),{min:n,max:r,start:e,end:A}},_getScaleLabel:function(t){var e=this._parseValue(t);return void 0!==e.start?"["+e.start+", "+e.end+"]":+this.getRightValue(t)},getLabelForIndex:ct.noop,getPixelForValue:ct.noop,getValueForPixel:ct.noop,getPixelForTick:function(t){var e=this,A=e.options.offset,n=e._ticks.length,r=1/Math.max(n-(A?0:1),1);return t<0||t>n-1?null:e.getPixelForDecimal(t*r+(A?r/2:0))},getPixelForDecimal:function(t){var e=this;return e._reversePixels&&(t=1-t),e._startPixel+t*e._length},getDecimalForPixel:function(t){var e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this,e=t.min,A=t.max;return t.beginAtZero?0:e<0&&A<0?A:e>0&&A>0?e:0},_autoSkip:function(t){var e,A,n,r,i=this,o=i.options.ticks,a=i._length,s=o.maxTicksLimit||a/i._tickSize()+1,l=o.major.enabled?yn(t):[],c=l.length,u=l[0],h=l[c-1];if(c>s)return bn(t,l,c/s),wn(t);if(n=vn(l,t,a,s),c>0){for(e=0,A=c-1;e<A;e++)Cn(t,n,l[e],l[e+1]);return r=c>1?(h-u)/(c-1):null,Cn(t,n,ct.isNullOrUndef(r)?0:u-r,u),Cn(t,n,h,ct.isNullOrUndef(r)?t.length:h+r),wn(t)}return Cn(t,n),wn(t)},_tickSize:function(){var t=this,e=t.options.ticks,A=ct.toRadians(t.labelRotation),n=Math.abs(Math.cos(A)),r=Math.abs(Math.sin(A)),i=t._getLabelSizes(),o=e.autoSkipPadding||0,a=i?i.widest.width+o:0,s=i?i.highest.height+o:0;return t.isHorizontal()?s*n>a*r?a/n:s/r:s*r<a*n?s/n:a/r},_isVisible:function(){var t,e,A,n=this,r=n.chart,i=n.options.display;if("auto"!==i)return!!i;for(t=0,e=r.data.datasets.length;t<e;++t)if(r.isDatasetVisible(t)&&(A=r.getDatasetMeta(t),A.xAxisID===n.id||A.yAxisID===n.id))return!0;return!1},_computeGridLineItems:function(t){var e,A,n,r,i,o,a,s,l,c,u,h,d,g,f,p,m,w=this,B=w.chart,v=w.options,y=v.gridLines,b=v.position,C=y.offsetGridLines,x=w.isHorizontal(),F=w._ticksToDraw,Q=F.length+(C?1:0),U=gn(y),_=[],I=y.drawBorder?ln(y.lineWidth,0,0):0,E=I/2,k=ct._alignPixel,S=function(t){return k(B,t,I)};for("top"===b?(e=S(w.bottom),a=w.bottom-U,l=e-E,u=S(t.top)+E,d=t.bottom):"bottom"===b?(e=S(w.top),u=t.top,d=S(t.bottom)-E,a=e+E,l=w.top+U):"left"===b?(e=S(w.right),o=w.right-U,s=e-E,c=S(t.left)+E,h=t.right):(e=S(w.left),c=t.left,h=S(t.right)-E,o=e+E,s=w.left+U),A=0;A<Q;++A)n=F[A]||{},an(n.label)&&A<F.length||(A===w.zeroLineIndex&&v.offset===C?(g=y.zeroLineWidth,f=y.zeroLineColor,p=y.zeroLineBorderDash||[],m=y.zeroLineBorderDashOffset||0):(g=ln(y.lineWidth,A,1),f=ln(y.color,A,"rgba(0,0,0,0.1)"),p=y.borderDash||[],m=y.borderDashOffset||0),r=un(w,n._index||A,C),void 0!==r&&(i=k(B,r,g),x?o=s=c=h=i:a=l=u=d=i,_.push({tx1:o,ty1:a,tx2:s,ty2:l,x1:c,y1:u,x2:h,y2:d,width:g,color:f,borderDash:p,borderDashOffset:m})));return _.ticksLength=Q,_.borderValue=e,_},_computeLabelItems:function(){var t,e,A,n,r,i,o,a,s,l,c,u,h=this,d=h.options,g=d.ticks,f=d.position,p=g.mirror,m=h.isHorizontal(),w=h._ticksToDraw,B=mn(g),v=g.padding,y=gn(d.gridLines),b=-ct.toRadians(h.labelRotation),C=[];for("top"===f?(i=h.bottom-y-v,o=b?"left":"center"):"bottom"===f?(i=h.top+y+v,o=b?"right":"center"):"left"===f?(r=h.right-(p?0:y)-v,o=p?"left":"right"):(r=h.left+(p?0:y)+v,o=p?"right":"left"),t=0,e=w.length;t<e;++t)A=w[t],n=A.label,an(n)||(a=h.getPixelForTick(A._index||t)+g.labelOffset,s=A.major?B.major:B.minor,l=s.lineHeight,c=on(n)?n.length:1,m?(r=a,u="top"===f?((b?1:.5)-c)*l:(b?0:.5)*l):(i=a,u=(1-c)*l/2),C.push({x:r,y:i,rotation:b,label:n,font:s,textOffset:u,textAlign:o}));return C},_drawGrid:function(t){var e=this,A=e.options.gridLines;if(A.display){var n,r,i,o,a,s=e.ctx,l=e.chart,c=ct._alignPixel,u=A.drawBorder?ln(A.lineWidth,0,0):0,h=e._gridLineItems||(e._gridLineItems=e._computeGridLineItems(t));for(i=0,o=h.length;i<o;++i)a=h[i],n=a.width,r=a.color,n&&r&&(s.save(),s.lineWidth=n,s.strokeStyle=r,s.setLineDash&&(s.setLineDash(a.borderDash),s.lineDashOffset=a.borderDashOffset),s.beginPath(),A.drawTicks&&(s.moveTo(a.tx1,a.ty1),s.lineTo(a.tx2,a.ty2)),A.drawOnChartArea&&(s.moveTo(a.x1,a.y1),s.lineTo(a.x2,a.y2)),s.stroke(),s.restore());if(u){var d,g,f,p,m=u,w=ln(A.lineWidth,h.ticksLength-1,1),B=h.borderValue;e.isHorizontal()?(d=c(l,e.left,m)-m/2,g=c(l,e.right,w)+w/2,f=p=B):(f=c(l,e.top,m)-m/2,p=c(l,e.bottom,w)+w/2,d=g=B),s.lineWidth=u,s.strokeStyle=ln(A.color,0),s.beginPath(),s.moveTo(d,f),s.lineTo(g,p),s.stroke()}}},_drawLabels:function(){var t=this,e=t.options.ticks;if(e.display){var A,n,r,i,o,a,s,l,c=t.ctx,u=t._labelItems||(t._labelItems=t._computeLabelItems());for(A=0,r=u.length;A<r;++A){if(o=u[A],a=o.font,c.save(),c.translate(o.x,o.y),c.rotate(o.rotation),c.font=a.string,c.fillStyle=a.color,c.textBaseline="middle",c.textAlign=o.textAlign,s=o.label,l=o.textOffset,on(s))for(n=0,i=s.length;n<i;++n)c.fillText(""+s[n],0,l),l+=a.lineHeight;else c.fillText(s,0,l);c.restore()}}},_drawTitle:function(){var t=this,e=t.ctx,A=t.options,n=A.scaleLabel;if(n.display){var r,i,o=sn(n.fontColor,Z.global.defaultFontColor),a=ct.options._parseFont(n),s=ct.options.toPadding(n.padding),l=a.lineHeight/2,c=A.position,u=0;if(t.isHorizontal())r=t.left+t.width/2,i="bottom"===c?t.bottom-l-s.bottom:t.top+l+s.top;else{var h="left"===c;r=h?t.left+l+s.top:t.right-l-s.top,i=t.top+t.height/2,u=h?-.5*Math.PI:.5*Math.PI}e.save(),e.translate(r,i),e.rotate(u),e.textAlign="center",e.textBaseline="middle",e.fillStyle=o,e.font=a.string,e.fillText(n.labelString,0,0),e.restore()}},draw:function(t){var e=this;e._isVisible()&&(e._drawGrid(t),e._drawTitle(),e._drawLabels())},_layers:function(){var t=this,e=t.options,A=e.ticks&&e.ticks.z||0,n=e.gridLines&&e.gridLines.z||0;return t._isVisible()&&A!==n&&t.draw===t._draw?[{z:n,draw:function(){t._drawGrid.apply(t,arguments),t._drawTitle.apply(t,arguments)}},{z:A,draw:function(){t._drawLabels.apply(t,arguments)}}]:[{z:A,draw:function(){t.draw.apply(t,arguments)}}]},_getMatchingVisibleMetas:function(t){var e=this,A=e.isHorizontal();return e.chart._getSortedVisibleDatasetMetas().filter((function(n){return(!t||n.type===t)&&(A?n.xAxisID===e.id:n.yAxisID===e.id)}))}});xn.prototype._draw=xn.prototype.draw;var Fn=xn,Qn=ct.isNullOrUndef,Un={position:"bottom"},_n=Fn.extend({determineDataLimits:function(){var t,e=this,A=e._getLabels(),n=e.options.ticks,r=n.min,i=n.max,o=0,a=A.length-1;void 0!==r&&(t=A.indexOf(r),t>=0&&(o=t)),void 0!==i&&(t=A.indexOf(i),t>=0&&(a=t)),e.minIndex=o,e.maxIndex=a,e.min=A[o],e.max=A[a]},buildTicks:function(){var t=this,e=t._getLabels(),A=t.minIndex,n=t.maxIndex;t.ticks=0===A&&n===e.length-1?e:e.slice(A,n+1)},getLabelForIndex:function(t,e){var A=this,n=A.chart;return n.getDatasetMeta(e).controller._getValueScaleId()===A.id?A.getRightValue(n.data.datasets[e].data[t]):A._getLabels()[t]},_configure:function(){var t=this,e=t.options.offset,A=t.ticks;Fn.prototype._configure.call(t),t.isHorizontal()||(t._reversePixels=!t._reversePixels),A&&(t._startValue=t.minIndex-(e?.5:0),t._valueRange=Math.max(A.length-(e?0:1),1))},getPixelForValue:function(t,e,A){var n,r,i,o=this;return Qn(e)||Qn(A)||(t=o.chart.data.datasets[A].data[e]),Qn(t)||(n=o.isHorizontal()?t.x:t.y),(void 0!==n||void 0!==t&&isNaN(e))&&(r=o._getLabels(),t=ct.valueOrDefault(n,t),i=r.indexOf(t),e=-1!==i?i:e,isNaN(e)&&(e=t)),o.getPixelForDecimal((e-o._startValue)/o._valueRange)},getPixelForTick:function(t){var e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t],t+this.minIndex)},getValueForPixel:function(t){var e=this,A=Math.round(e._startValue+e.getDecimalForPixel(t)*e._valueRange);return Math.min(Math.max(A,0),e.ticks.length-1)},getBasePixel:function(){return this.bottom}}),In=Un;_n._defaults=In;var En=ct.noop,kn=ct.isNullOrUndef;function Sn(t,e){var A,n,r,i,o=[],a=1e-14,s=t.stepSize,l=s||1,c=t.maxTicks-1,u=t.min,h=t.max,d=t.precision,g=e.min,f=e.max,p=ct.niceNum((f-g)/c/l)*l;if(p<a&&kn(u)&&kn(h))return[g,f];i=Math.ceil(f/p)-Math.floor(g/p),i>c&&(p=ct.niceNum(i*p/c/l)*l),s||kn(d)?A=Math.pow(10,ct._decimalPlaces(p)):(A=Math.pow(10,d),p=Math.ceil(p*A)/A),n=Math.floor(g/p)*p,r=Math.ceil(f/p)*p,s&&(!kn(u)&&ct.almostWhole(u/p,p/1e3)&&(n=u),!kn(h)&&ct.almostWhole(h/p,p/1e3)&&(r=h)),i=(r-n)/p,i=ct.almostEquals(i,Math.round(i),p/1e3)?Math.round(i):Math.ceil(i),n=Math.round(n*A)/A,r=Math.round(r*A)/A,o.push(kn(u)?n:u);for(var m=1;m<i;++m)o.push(Math.round((n+m*p)*A)/A);return o.push(kn(h)?r:h),o}var Dn=Fn.extend({getRightValue:function(t){return"string"===typeof t?+t:Fn.prototype.getRightValue.call(this,t)},handleTickRangeOptions:function(){var t=this,e=t.options,A=e.ticks;if(A.beginAtZero){var n=ct.sign(t.min),r=ct.sign(t.max);n<0&&r<0?t.max=0:n>0&&r>0&&(t.min=0)}var i=void 0!==A.min||void 0!==A.suggestedMin,o=void 0!==A.max||void 0!==A.suggestedMax;void 0!==A.min?t.min=A.min:void 0!==A.suggestedMin&&(null===t.min?t.min=A.suggestedMin:t.min=Math.min(t.min,A.suggestedMin)),void 0!==A.max?t.max=A.max:void 0!==A.suggestedMax&&(null===t.max?t.max=A.suggestedMax:t.max=Math.max(t.max,A.suggestedMax)),i!==o&&t.min>=t.max&&(i?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,A.beginAtZero||t.min--)},getTickLimit:function(){var t,e=this,A=e.options.ticks,n=A.stepSize,r=A.maxTicksLimit;return n?t=Math.ceil(e.max/n)-Math.floor(e.min/n)+1:(t=e._computeTickLimit(),r=r||11),r&&(t=Math.min(r,t)),t},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:En,buildTicks:function(){var t=this,e=t.options,A=e.ticks,n=t.getTickLimit();n=Math.max(2,n);var r={maxTicks:n,min:A.min,max:A.max,precision:A.precision,stepSize:ct.valueOrDefault(A.fixedStepSize,A.stepSize)},i=t.ticks=Sn(r,t);t.handleDirectionalChanges(),t.max=ct.max(i),t.min=ct.min(i),A.reverse?(i.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var t=this;t.ticksAsNumbers=t.ticks.slice(),t.zeroLineIndex=t.ticks.indexOf(0),Fn.prototype.convertTicksToLabels.call(t)},_configure:function(){var t,e=this,A=e.getTicks(),n=e.min,r=e.max;Fn.prototype._configure.call(e),e.options.offset&&A.length&&(t=(r-n)/Math.max(A.length-1,1)/2,n-=t,r+=t),e._startValue=n,e._endValue=r,e._valueRange=r-n}}),Hn={position:"left",ticks:{callback:rn.formatters.linear}},Mn=0,On=1;function Tn(t,e,A){var n=[A.type,void 0===e&&void 0===A.stack?A.index:"",A.stack].join(".");return void 0===t[n]&&(t[n]={pos:[],neg:[]}),t[n]}function Pn(t,e,A,n){var r,i,o=t.options,a=o.stacked,s=Tn(e,a,A),l=s.pos,c=s.neg,u=n.length;for(r=0;r<u;++r)i=t._parseValue(n[r]),isNaN(i.min)||isNaN(i.max)||A.data[r].hidden||(l[r]=l[r]||0,c[r]=c[r]||0,o.relativePoints?l[r]=100:i.min<0||i.max<0?c[r]+=i.min:l[r]+=i.max)}function Ln(t,e,A){var n,r,i=A.length;for(n=0;n<i;++n)r=t._parseValue(A[n]),isNaN(r.min)||isNaN(r.max)||e.data[n].hidden||(t.min=Math.min(t.min,r.min),t.max=Math.max(t.max,r.max))}var Rn=Dn.extend({determineDataLimits:function(){var t,e,A,n,r=this,i=r.options,o=r.chart,a=o.data.datasets,s=r._getMatchingVisibleMetas(),l=i.stacked,c={},u=s.length;if(r.min=Number.POSITIVE_INFINITY,r.max=Number.NEGATIVE_INFINITY,void 0===l)for(t=0;!l&&t<u;++t)e=s[t],l=void 0!==e.stack;for(t=0;t<u;++t)e=s[t],A=a[e.index].data,l?Pn(r,c,e,A):Ln(r,e,A);ct.each(c,(function(t){n=t.pos.concat(t.neg),r.min=Math.min(r.min,ct.min(n)),r.max=Math.max(r.max,ct.max(n))})),r.min=ct.isFinite(r.min)&&!isNaN(r.min)?r.min:Mn,r.max=ct.isFinite(r.max)&&!isNaN(r.max)?r.max:On,r.handleTickRangeOptions()},_computeTickLimit:function(){var t,e=this;return e.isHorizontal()?Math.ceil(e.width/40):(t=ct.options._parseFont(e.options.ticks),Math.ceil(e.height/t.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return this._getScaleLabel(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e=this;return e.getPixelForDecimal((+e.getRightValue(t)-e._startValue)/e._valueRange)},getValueForPixel:function(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange},getPixelForTick:function(t){var e=this.ticksAsNumbers;return t<0||t>e.length-1?null:this.getPixelForValue(e[t])}}),Nn=Hn;Rn._defaults=Nn;var Kn=ct.valueOrDefault,jn=ct.math.log10;function Vn(t,e){var A,n,r=[],i=Kn(t.min,Math.pow(10,Math.floor(jn(e.min)))),o=Math.floor(jn(e.max)),a=Math.ceil(e.max/Math.pow(10,o));0===i?(A=Math.floor(jn(e.minNotZero)),n=Math.floor(e.minNotZero/Math.pow(10,A)),r.push(i),i=n*Math.pow(10,A)):(A=Math.floor(jn(i)),n=Math.floor(i/Math.pow(10,A)));var s=A<0?Math.pow(10,Math.abs(A)):1;do{r.push(i),++n,10===n&&(n=1,++A,s=A>=0?1:s),i=Math.round(n*Math.pow(10,A)*s)/s}while(A<o||A===o&&n<a);var l=Kn(t.max,i);return r.push(l),r}var Gn={position:"left",ticks:{callback:rn.formatters.logarithmic}};function qn(t,e){return ct.isFinite(t)&&t>=0?t:e}var Wn=Fn.extend({determineDataLimits:function(){var t,e,A,n,r,i,o=this,a=o.options,s=o.chart,l=s.data.datasets,c=o.isHorizontal();function u(t){return c?t.xAxisID===o.id:t.yAxisID===o.id}o.min=Number.POSITIVE_INFINITY,o.max=Number.NEGATIVE_INFINITY,o.minNotZero=Number.POSITIVE_INFINITY;var h=a.stacked;if(void 0===h)for(t=0;t<l.length;t++)if(e=s.getDatasetMeta(t),s.isDatasetVisible(t)&&u(e)&&void 0!==e.stack){h=!0;break}if(a.stacked||h){var d={};for(t=0;t<l.length;t++){e=s.getDatasetMeta(t);var g=[e.type,void 0===a.stacked&&void 0===e.stack?t:"",e.stack].join(".");if(s.isDatasetVisible(t)&&u(e))for(void 0===d[g]&&(d[g]=[]),n=l[t].data,r=0,i=n.length;r<i;r++){var f=d[g];A=o._parseValue(n[r]),isNaN(A.min)||isNaN(A.max)||e.data[r].hidden||A.min<0||A.max<0||(f[r]=f[r]||0,f[r]+=A.max)}}ct.each(d,(function(t){if(t.length>0){var e=ct.min(t),A=ct.max(t);o.min=Math.min(o.min,e),o.max=Math.max(o.max,A)}}))}else for(t=0;t<l.length;t++)if(e=s.getDatasetMeta(t),s.isDatasetVisible(t)&&u(e))for(n=l[t].data,r=0,i=n.length;r<i;r++)A=o._parseValue(n[r]),isNaN(A.min)||isNaN(A.max)||e.data[r].hidden||A.min<0||A.max<0||(o.min=Math.min(A.min,o.min),o.max=Math.max(A.max,o.max),0!==A.min&&(o.minNotZero=Math.min(A.min,o.minNotZero)));o.min=ct.isFinite(o.min)?o.min:null,o.max=ct.isFinite(o.max)?o.max:null,o.minNotZero=ct.isFinite(o.minNotZero)?o.minNotZero:null,this.handleTickRangeOptions()},handleTickRangeOptions:function(){var t=this,e=t.options.ticks,A=1,n=10;t.min=qn(e.min,t.min),t.max=qn(e.max,t.max),t.min===t.max&&(0!==t.min&&null!==t.min?(t.min=Math.pow(10,Math.floor(jn(t.min))-1),t.max=Math.pow(10,Math.floor(jn(t.max))+1)):(t.min=A,t.max=n)),null===t.min&&(t.min=Math.pow(10,Math.floor(jn(t.max))-1)),null===t.max&&(t.max=0!==t.min?Math.pow(10,Math.floor(jn(t.min))+1):n),null===t.minNotZero&&(t.min>0?t.minNotZero=t.min:t.max<1?t.minNotZero=Math.pow(10,Math.floor(jn(t.max))):t.minNotZero=A)},buildTicks:function(){var t=this,e=t.options.ticks,A=!t.isHorizontal(),n={min:qn(e.min),max:qn(e.max)},r=t.ticks=Vn(n,t);t.max=ct.max(r),t.min=ct.min(r),e.reverse?(A=!A,t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max),A&&r.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),Fn.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(t,e){return this._getScaleLabel(this.chart.data.datasets[e].data[t])},getPixelForTick:function(t){var e=this.tickValues;return t<0||t>e.length-1?null:this.getPixelForValue(e[t])},_getFirstTickValue:function(t){var e=Math.floor(jn(t)),A=Math.floor(t/Math.pow(10,e));return A*Math.pow(10,e)},_configure:function(){var t=this,e=t.min,A=0;Fn.prototype._configure.call(t),0===e&&(e=t._getFirstTickValue(t.minNotZero),A=Kn(t.options.ticks.fontSize,Z.global.defaultFontSize)/t._length),t._startValue=jn(e),t._valueOffset=A,t._valueRange=(jn(t.max)-jn(e))/(1-A)},getPixelForValue:function(t){var e=this,A=0;return t=+e.getRightValue(t),t>e.min&&t>0&&(A=(jn(t)-e._startValue)/e._valueRange+e._valueOffset),e.getPixelForDecimal(A)},getValueForPixel:function(t){var e=this,A=e.getDecimalForPixel(t);return 0===A&&0===e.min?0:Math.pow(10,e._startValue+(A-e._valueOffset)*e._valueRange)}}),Yn=Gn;Wn._defaults=Yn;var zn=ct.valueOrDefault,Xn=ct.valueAtIndexOrDefault,Jn=ct.options.resolve,Zn={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:rn.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(t){return t}}};function $n(t){var e=t.ticks;return e.display&&t.display?zn(e.fontSize,Z.global.defaultFontSize)+2*e.backdropPaddingY:0}function tr(t,e,A){return ct.isArray(A)?{w:ct.longestText(t,t.font,A),h:A.length*e}:{w:t.measureText(A).width,h:e}}function er(t,e,A,n,r){return t===n||t===r?{start:e-A/2,end:e+A/2}:t<n||t>r?{start:e-A,end:e}:{start:e,end:e+A}}function Ar(t){var e,A,n,r=ct.options._parseFont(t.options.pointLabels),i={l:0,r:t.width,t:0,b:t.height-t.paddingTop},o={};t.ctx.font=r.string,t._pointLabelSizes=[];var a=t.chart.data.labels.length;for(e=0;e<a;e++){n=t.getPointPosition(e,t.drawingArea+5),A=tr(t.ctx,r.lineHeight,t.pointLabels[e]),t._pointLabelSizes[e]=A;var s=t.getIndexAngle(e),l=ct.toDegrees(s)%360,c=er(l,n.x,A.w,0,180),u=er(l,n.y,A.h,90,270);c.start<i.l&&(i.l=c.start,o.l=s),c.end>i.r&&(i.r=c.end,o.r=s),u.start<i.t&&(i.t=u.start,o.t=s),u.end>i.b&&(i.b=u.end,o.b=s)}t.setReductions(t.drawingArea,i,o)}function nr(t){return 0===t||180===t?"center":t<180?"left":"right"}function rr(t,e,A,n){var r,i,o=A.y+n/2;if(ct.isArray(e))for(r=0,i=e.length;r<i;++r)t.fillText(e[r],A.x,o),o+=n;else t.fillText(e,A.x,o)}function ir(t,e,A){90===t||270===t?A.y-=e.h/2:(t>270||t<90)&&(A.y-=e.h)}function or(t){var e=t.ctx,A=t.options,n=A.pointLabels,r=$n(A),i=t.getDistanceFromCenterForValue(A.ticks.reverse?t.min:t.max),o=ct.options._parseFont(n);e.save(),e.font=o.string,e.textBaseline="middle";for(var a=t.chart.data.labels.length-1;a>=0;a--){var s=0===a?r/2:0,l=t.getPointPosition(a,i+s+5),c=Xn(n.fontColor,a,Z.global.defaultFontColor);e.fillStyle=c;var u=t.getIndexAngle(a),h=ct.toDegrees(u);e.textAlign=nr(h),ir(h,t._pointLabelSizes[a],l),rr(e,t.pointLabels[a],l,o.lineHeight)}e.restore()}function ar(t,e,A,n){var r,i=t.ctx,o=e.circular,a=t.chart.data.labels.length,s=Xn(e.color,n-1),l=Xn(e.lineWidth,n-1);if((o||a)&&s&&l){if(i.save(),i.strokeStyle=s,i.lineWidth=l,i.setLineDash&&(i.setLineDash(e.borderDash||[]),i.lineDashOffset=e.borderDashOffset||0),i.beginPath(),o)i.arc(t.xCenter,t.yCenter,A,0,2*Math.PI);else{r=t.getPointPosition(0,A),i.moveTo(r.x,r.y);for(var c=1;c<a;c++)r=t.getPointPosition(c,A),i.lineTo(r.x,r.y)}i.closePath(),i.stroke(),i.restore()}}function sr(t){return ct.isNumber(t)?t:0}var lr=Dn.extend({setDimensions:function(){var t=this;t.width=t.maxWidth,t.height=t.maxHeight,t.paddingTop=$n(t.options)/2,t.xCenter=Math.floor(t.width/2),t.yCenter=Math.floor((t.height-t.paddingTop)/2),t.drawingArea=Math.min(t.height-t.paddingTop,t.width)/2},determineDataLimits:function(){var t=this,e=t.chart,A=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;ct.each(e.data.datasets,(function(r,i){if(e.isDatasetVisible(i)){var o=e.getDatasetMeta(i);ct.each(r.data,(function(e,r){var i=+t.getRightValue(e);isNaN(i)||o.data[r].hidden||(A=Math.min(i,A),n=Math.max(i,n))}))}})),t.min=A===Number.POSITIVE_INFINITY?0:A,t.max=n===Number.NEGATIVE_INFINITY?0:n,t.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/$n(this.options))},convertTicksToLabels:function(){var t=this;Dn.prototype.convertTicksToLabels.call(t),t.pointLabels=t.chart.data.labels.map((function(){var e=ct.callback(t.options.pointLabels.callback,arguments,t);return e||0===e?e:""}))},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t=this,e=t.options;e.display&&e.pointLabels.display?Ar(t):t.setCenterPoint(0,0,0,0)},setReductions:function(t,e,A){var n=this,r=e.l/Math.sin(A.l),i=Math.max(e.r-n.width,0)/Math.sin(A.r),o=-e.t/Math.cos(A.t),a=-Math.max(e.b-(n.height-n.paddingTop),0)/Math.cos(A.b);r=sr(r),i=sr(i),o=sr(o),a=sr(a),n.drawingArea=Math.min(Math.floor(t-(r+i)/2),Math.floor(t-(o+a)/2)),n.setCenterPoint(r,i,o,a)},setCenterPoint:function(t,e,A,n){var r=this,i=r.width-e-r.drawingArea,o=t+r.drawingArea,a=A+r.drawingArea,s=r.height-r.paddingTop-n-r.drawingArea;r.xCenter=Math.floor((o+i)/2+r.left),r.yCenter=Math.floor((a+s)/2+r.top+r.paddingTop)},getIndexAngle:function(t){var e=this.chart,A=360/e.data.labels.length,n=e.options||{},r=n.startAngle||0,i=(t*A+r)%360;return(i<0?i+360:i)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){var e=this;if(ct.isNullOrUndef(t))return NaN;var A=e.drawingArea/(e.max-e.min);return e.options.ticks.reverse?(e.max-t)*A:(t-e.min)*A},getPointPosition:function(t,e){var A=this,n=A.getIndexAngle(t)-Math.PI/2;return{x:Math.cos(n)*e+A.xCenter,y:Math.sin(n)*e+A.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(t){var e=this,A=e.min,n=e.max;return e.getPointPositionForValue(t||0,e.beginAtZero?0:A<0&&n<0?n:A>0&&n>0?A:0)},_drawGrid:function(){var t,e,A,n=this,r=n.ctx,i=n.options,o=i.gridLines,a=i.angleLines,s=zn(a.lineWidth,o.lineWidth),l=zn(a.color,o.color);if(i.pointLabels.display&&or(n),o.display&&ct.each(n.ticks,(function(t,A){0!==A&&(e=n.getDistanceFromCenterForValue(n.ticksAsNumbers[A]),ar(n,o,e,A))})),a.display&&s&&l){for(r.save(),r.lineWidth=s,r.strokeStyle=l,r.setLineDash&&(r.setLineDash(Jn([a.borderDash,o.borderDash,[]])),r.lineDashOffset=Jn([a.borderDashOffset,o.borderDashOffset,0])),t=n.chart.data.labels.length-1;t>=0;t--)e=n.getDistanceFromCenterForValue(i.ticks.reverse?n.min:n.max),A=n.getPointPosition(t,e),r.beginPath(),r.moveTo(n.xCenter,n.yCenter),r.lineTo(A.x,A.y),r.stroke();r.restore()}},_drawLabels:function(){var t=this,e=t.ctx,A=t.options,n=A.ticks;if(n.display){var r,i,o=t.getIndexAngle(0),a=ct.options._parseFont(n),s=zn(n.fontColor,Z.global.defaultFontColor);e.save(),e.font=a.string,e.translate(t.xCenter,t.yCenter),e.rotate(o),e.textAlign="center",e.textBaseline="middle",ct.each(t.ticks,(function(A,o){(0!==o||n.reverse)&&(r=t.getDistanceFromCenterForValue(t.ticksAsNumbers[o]),n.showLabelBackdrop&&(i=e.measureText(A).width,e.fillStyle=n.backdropColor,e.fillRect(-i/2-n.backdropPaddingX,-r-a.size/2-n.backdropPaddingY,i+2*n.backdropPaddingX,a.size+2*n.backdropPaddingY)),e.fillStyle=s,e.fillText(A,0,-r))})),e.restore()}},_drawTitle:ct.noop}),cr=Zn;lr._defaults=cr;var ur=ct._deprecated,hr=ct.options.resolve,dr=ct.valueOrDefault,gr=Number.MIN_SAFE_INTEGER||-9007199254740991,fr=Number.MAX_SAFE_INTEGER||9007199254740991,pr={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},mr=Object.keys(pr);function wr(t,e){return t-e}function Br(t){var e,A,n,r={},i=[];for(e=0,A=t.length;e<A;++e)n=t[e],r[n]||(r[n]=!0,i.push(n));return i}function vr(t){return ct.valueOrDefault(t.time.min,t.ticks.min)}function yr(t){return ct.valueOrDefault(t.time.max,t.ticks.max)}function br(t,e,A,n){if("linear"===n||!t.length)return[{time:e,pos:0},{time:A,pos:1}];var r,i,o,a,s,l=[],c=[e];for(r=0,i=t.length;r<i;++r)a=t[r],a>e&&a<A&&c.push(a);for(c.push(A),r=0,i=c.length;r<i;++r)s=c[r+1],o=c[r-1],a=c[r],void 0!==o&&void 0!==s&&Math.round((s+o)/2)===a||l.push({time:a,pos:r/(i-1)});return l}function Cr(t,e,A){var n,r,i,o=0,a=t.length-1;while(o>=0&&o<=a){if(n=o+a>>1,r=t[n-1]||null,i=t[n],!r)return{lo:null,hi:i};if(i[e]<A)o=n+1;else{if(!(r[e]>A))return{lo:r,hi:i};a=n-1}}return{lo:i,hi:null}}function xr(t,e,A,n){var r=Cr(t,e,A),i=r.lo?r.hi?r.lo:t[t.length-2]:t[0],o=r.lo?r.hi?r.hi:t[t.length-1]:t[1],a=o[e]-i[e],s=a?(A-i[e])/a:0,l=(o[n]-i[n])*s;return i[n]+l}function Fr(t,e){var A=t._adapter,n=t.options.time,r=n.parser,i=r||n.format,o=e;return"function"===typeof r&&(o=r(o)),ct.isFinite(o)||(o="string"===typeof i?A.parse(o,i):A.parse(o)),null!==o?+o:(r||"function"!==typeof i||(o=i(e),ct.isFinite(o)||(o=A.parse(o))),o)}function Qr(t,e){if(ct.isNullOrUndef(e))return null;var A=t.options.time,n=Fr(t,t.getRightValue(e));return null===n||A.round&&(n=+t._adapter.startOf(n,A.round)),n}function Ur(t,e,A,n){var r,i,o,a=mr.length;for(r=mr.indexOf(t);r<a-1;++r)if(i=pr[mr[r]],o=i.steps?i.steps:fr,i.common&&Math.ceil((A-e)/(o*i.size))<=n)return mr[r];return mr[a-1]}function _r(t,e,A,n,r){var i,o;for(i=mr.length-1;i>=mr.indexOf(A);i--)if(o=mr[i],pr[o].common&&t._adapter.diff(r,n,o)>=e-1)return o;return mr[A?mr.indexOf(A):0]}function Ir(t){for(var e=mr.indexOf(t)+1,A=mr.length;e<A;++e)if(pr[mr[e]].common)return mr[e]}function Er(t,e,A,n){var r,i=t._adapter,o=t.options,a=o.time,s=a.unit||Ur(a.minUnit,e,A,n),l=hr([a.stepSize,a.unitStepSize,1]),c="week"===s&&a.isoWeekday,u=e,h=[];if(c&&(u=+i.startOf(u,"isoWeek",c)),u=+i.startOf(u,c?"day":s),i.diff(A,e,s)>1e5*l)throw e+" and "+A+" are too far apart with stepSize of "+l+" "+s;for(r=u;r<A;r=+i.add(r,l,s))h.push(r);return r!==A&&"ticks"!==o.bounds||h.push(r),h}function kr(t,e,A,n,r){var i,o,a=0,s=0;return r.offset&&e.length&&(i=xr(t,"time",e[0],"pos"),a=1===e.length?1-i:(xr(t,"time",e[1],"pos")-i)/2,o=xr(t,"time",e[e.length-1],"pos"),s=1===e.length?o:(o-xr(t,"time",e[e.length-2],"pos"))/2),{start:a,end:s,factor:1/(a+1+s)}}function Sr(t,e,A,n){var r,i,o=t._adapter,a=+o.startOf(e[0].value,n),s=e[e.length-1].value;for(r=a;r<=s;r=+o.add(r,1,n))i=A[r],i>=0&&(e[i].major=!0);return e}function Dr(t,e,A){var n,r,i=[],o={},a=e.length;for(n=0;n<a;++n)r=e[n],o[r]=n,i.push({value:r,major:!1});return 0!==a&&A?Sr(t,i,o,A):i}var Hr={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}},Mr=Fn.extend({initialize:function(){this.mergeTicksOptions(),Fn.prototype.initialize.call(this)},update:function(){var t=this,e=t.options,A=e.time||(e.time={}),n=t._adapter=new nn._date(e.adapters.date);return ur("time scale",A.format,"time.format","time.parser"),ur("time scale",A.min,"time.min","ticks.min"),ur("time scale",A.max,"time.max","ticks.max"),ct.mergeIf(A.displayFormats,n.formats()),Fn.prototype.update.apply(t,arguments)},getRightValue:function(t){return t&&void 0!==t.t&&(t=t.t),Fn.prototype.getRightValue.call(this,t)},determineDataLimits:function(){var t,e,A,n,r,i,o,a=this,s=a.chart,l=a._adapter,c=a.options,u=c.time.unit||"day",h=fr,d=gr,g=[],f=[],p=[],m=a._getLabels();for(t=0,A=m.length;t<A;++t)p.push(Qr(a,m[t]));for(t=0,A=(s.data.datasets||[]).length;t<A;++t)if(s.isDatasetVisible(t))if(r=s.data.datasets[t].data,ct.isObject(r[0]))for(f[t]=[],e=0,n=r.length;e<n;++e)i=Qr(a,r[e]),g.push(i),f[t][e]=i;else f[t]=p.slice(0),o||(g=g.concat(p),o=!0);else f[t]=[];p.length&&(h=Math.min(h,p[0]),d=Math.max(d,p[p.length-1])),g.length&&(g=A>1?Br(g).sort(wr):g.sort(wr),h=Math.min(h,g[0]),d=Math.max(d,g[g.length-1])),h=Qr(a,vr(c))||h,d=Qr(a,yr(c))||d,h=h===fr?+l.startOf(Date.now(),u):h,d=d===gr?+l.endOf(Date.now(),u)+1:d,a.min=Math.min(h,d),a.max=Math.max(h+1,d),a._table=[],a._timestamps={data:g,datasets:f,labels:p}},buildTicks:function(){var t,e,A,n=this,r=n.min,i=n.max,o=n.options,a=o.ticks,s=o.time,l=n._timestamps,c=[],u=n.getLabelCapacity(r),h=a.source,d=o.distribution;for(l="data"===h||"auto"===h&&"series"===d?l.data:"labels"===h?l.labels:Er(n,r,i,u),"ticks"===o.bounds&&l.length&&(r=l[0],i=l[l.length-1]),r=Qr(n,vr(o))||r,i=Qr(n,yr(o))||i,t=0,e=l.length;t<e;++t)A=l[t],A>=r&&A<=i&&c.push(A);return n.min=r,n.max=i,n._unit=s.unit||(a.autoSkip?Ur(s.minUnit,n.min,n.max,u):_r(n,c.length,s.minUnit,n.min,n.max)),n._majorUnit=a.major.enabled&&"year"!==n._unit?Ir(n._unit):void 0,n._table=br(n._timestamps.data,r,i,d),n._offsets=kr(n._table,c,r,i,o),a.reverse&&c.reverse(),Dr(n,c,n._majorUnit)},getLabelForIndex:function(t,e){var A=this,n=A._adapter,r=A.chart.data,i=A.options.time,o=r.labels&&t<r.labels.length?r.labels[t]:"",a=r.datasets[e].data[t];return ct.isObject(a)&&(o=A.getRightValue(a)),i.tooltipFormat?n.format(Fr(A,o),i.tooltipFormat):"string"===typeof o?o:n.format(Fr(A,o),i.displayFormats.datetime)},tickFormatFunction:function(t,e,A,n){var r=this,i=r._adapter,o=r.options,a=o.time.displayFormats,s=a[r._unit],l=r._majorUnit,c=a[l],u=A[e],h=o.ticks,d=l&&c&&u&&u.major,g=i.format(t,n||(d?c:s)),f=d?h.major:h.minor,p=hr([f.callback,f.userCallback,h.callback,h.userCallback]);return p?p(g,e,A):g},convertTicksToLabels:function(t){var e,A,n=[];for(e=0,A=t.length;e<A;++e)n.push(this.tickFormatFunction(t[e].value,e,t));return n},getPixelForOffset:function(t){var e=this,A=e._offsets,n=xr(e._table,"time",t,"pos");return e.getPixelForDecimal((A.start+n)*A.factor)},getPixelForValue:function(t,e,A){var n=this,r=null;if(void 0!==e&&void 0!==A&&(r=n._timestamps.datasets[A][e]),null===r&&(r=Qr(n,t)),null!==r)return n.getPixelForOffset(r)},getPixelForTick:function(t){var e=this.getTicks();return t>=0&&t<e.length?this.getPixelForOffset(e[t].value):null},getValueForPixel:function(t){var e=this,A=e._offsets,n=e.getDecimalForPixel(t)/A.factor-A.end,r=xr(e._table,"pos",n,"time");return e._adapter._create(r)},_getLabelSize:function(t){var e=this,A=e.options.ticks,n=e.ctx.measureText(t).width,r=ct.toRadians(e.isHorizontal()?A.maxRotation:A.minRotation),i=Math.cos(r),o=Math.sin(r),a=dr(A.fontSize,Z.global.defaultFontSize);return{w:n*i+a*o,h:n*o+a*i}},getLabelWidth:function(t){return this._getLabelSize(t).w},getLabelCapacity:function(t){var e=this,A=e.options.time,n=A.displayFormats,r=n[A.unit]||n.millisecond,i=e.tickFormatFunction(t,0,Dr(e,[t],e._majorUnit),r),o=e._getLabelSize(i),a=Math.floor(e.isHorizontal()?e.width/o.w:e.height/o.h);return e.options.offset&&a--,a>0?a:1}}),Or=Hr;Mr._defaults=Or;var Tr={category:_n,linear:Rn,logarithmic:Wn,radialLinear:lr,time:Mr},Pr={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};nn._date.override("function"===typeof t?{_id:"moment",formats:function(){return Pr},parse:function(e,A){return"string"===typeof e&&"string"===typeof A?e=t(e,A):e instanceof t||(e=t(e)),e.isValid()?e.valueOf():null},format:function(e,A){return t(e).format(A)},add:function(e,A,n){return t(e).add(A,n).valueOf()},diff:function(e,A,n){return t(e).diff(t(A),n)},startOf:function(e,A,n){return e=t(e),"isoWeek"===A?e.isoWeekday(n).valueOf():e.startOf(A).valueOf()},endOf:function(e,A){return t(e).endOf(A).valueOf()},_create:function(e){return t(e)}}:{}),Z._set("global",{plugins:{filler:{propagate:!0}}});var Lr={dataset:function(t){var e=t.fill,A=t.chart,n=A.getDatasetMeta(e),r=n&&A.isDatasetVisible(e),i=r&&n.dataset._children||[],o=i.length||0;return o?function(t,e){return e<o&&i[e]._view||null}:null},boundary:function(t){var e=t.boundary,A=e?e.x:null,n=e?e.y:null;return ct.isArray(e)?function(t,A){return e[A]}:function(t){return{x:null===A?t.x:A,y:null===n?t.y:n}}}};function Rr(t,e,A){var n,r=t._model||{},i=r.fill;if(void 0===i&&(i=!!r.backgroundColor),!1===i||null===i)return!1;if(!0===i)return"origin";if(n=parseFloat(i,10),isFinite(n)&&Math.floor(n)===n)return"-"!==i[0]&&"+"!==i[0]||(n=e+n),!(n===e||n<0||n>=A)&&n;switch(i){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return i;default:return!1}}function Nr(t){var e,A=t.el._model||{},n=t.el._scale||{},r=t.fill,i=null;if(isFinite(r))return null;if("start"===r?i=void 0===A.scaleBottom?n.bottom:A.scaleBottom:"end"===r?i=void 0===A.scaleTop?n.top:A.scaleTop:void 0!==A.scaleZero?i=A.scaleZero:n.getBasePixel&&(i=n.getBasePixel()),void 0!==i&&null!==i){if(void 0!==i.x&&void 0!==i.y)return i;if(ct.isFinite(i))return e=n.isHorizontal(),{x:e?i:null,y:e?null:i}}return null}function Kr(t){var e,A,n,r,i,o=t.el._scale,a=o.options,s=o.chart.data.labels.length,l=t.fill,c=[];if(!s)return null;for(e=a.ticks.reverse?o.max:o.min,A=a.ticks.reverse?o.min:o.max,n=o.getPointPositionForValue(0,e),r=0;r<s;++r)i="start"===l||"end"===l?o.getPointPositionForValue(r,"start"===l?e:A):o.getBasePosition(r),a.gridLines.circular&&(i.cx=n.x,i.cy=n.y,i.angle=o.getIndexAngle(r)-Math.PI/2),c.push(i);return c}function jr(t){var e=t.el._scale||{};return e.getPointPositionForValue?Kr(t):Nr(t)}function Vr(t,e,A){var n,r=t[e],i=r.fill,o=[e];if(!A)return i;while(!1!==i&&-1===o.indexOf(i)){if(!isFinite(i))return i;if(n=t[i],!n)return!1;if(n.visible)return i;o.push(i),i=n.fill}return!1}function Gr(t){var e=t.fill,A="dataset";return!1===e?null:(isFinite(e)||(A="boundary"),Lr[A](t))}function qr(t){return t&&!t.skip}function Wr(t,e,A,n,r){var i,o,a,s;if(n&&r){for(t.moveTo(e[0].x,e[0].y),i=1;i<n;++i)ct.canvas.lineTo(t,e[i-1],e[i]);if(void 0===A[0].angle)for(t.lineTo(A[r-1].x,A[r-1].y),i=r-1;i>0;--i)ct.canvas.lineTo(t,A[i],A[i-1],!0);else for(o=A[0].cx,a=A[0].cy,s=Math.sqrt(Math.pow(A[0].x-o,2)+Math.pow(A[0].y-a,2)),i=r-1;i>0;--i)t.arc(o,a,s,A[i].angle,A[i-1].angle,!0)}}function Yr(t,e,A,n,r,i){var o,a,s,l,c,u,h,d,g=e.length,f=n.spanGaps,p=[],m=[],w=0,B=0;for(t.beginPath(),o=0,a=g;o<a;++o)s=o%g,l=e[s]._view,c=A(l,s,n),u=qr(l),h=qr(c),i&&void 0===d&&u&&(d=o+1,a=g+d),u&&h?(w=p.push(l),B=m.push(c)):w&&B&&(f?(u&&p.push(l),h&&m.push(c)):(Wr(t,p,m,w,B),w=B=0,p=[],m=[]));Wr(t,p,m,w,B),t.closePath(),t.fillStyle=r,t.fill()}var zr={id:"filler",afterDatasetsUpdate:function(t,e){var A,n,r,i,o=(t.data.datasets||[]).length,a=e.propagate,s=[];for(n=0;n<o;++n)A=t.getDatasetMeta(n),r=A.dataset,i=null,r&&r._model&&r instanceof Xt.Line&&(i={visible:t.isDatasetVisible(n),fill:Rr(r,n,o),chart:t,el:r}),A.$filler=i,s.push(i);for(n=0;n<o;++n)i=s[n],i&&(i.fill=Vr(s,n,a),i.boundary=jr(i),i.mapper=Gr(i))},beforeDatasetsDraw:function(t){var e,A,n,r,i,o,a,s=t._getSortedVisibleDatasetMetas(),l=t.ctx;for(A=s.length-1;A>=0;--A)e=s[A].$filler,e&&e.visible&&(n=e.el,r=n._view,i=n._children||[],o=e.mapper,a=r.backgroundColor||Z.global.defaultColor,o&&a&&i.length&&(ct.canvas.clipArea(l,t.chartArea),Yr(l,i,o,r,a,n._loop),ct.canvas.unclipArea(l)))}},Xr=ct.rtl.getRtlAdapter,Jr=ct.noop,Zr=ct.valueOrDefault;function $r(t,e){return t.usePointStyle&&t.boxWidth>e?e:t.boxWidth}Z._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var A=e.datasetIndex,n=this.chart,r=n.getDatasetMeta(A);r.hidden=null===r.hidden?!n.data.datasets[A].hidden:null,n.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(t){var e=t.data.datasets,A=t.options.legend||{},n=A.labels&&A.labels.usePointStyle;return t._getSortedDatasetMetas().map((function(A){var r=A.controller.getStyle(n?0:void 0);return{text:e[A.index].label,fillStyle:r.backgroundColor,hidden:!t.isDatasetVisible(A.index),lineCap:r.borderCapStyle,lineDash:r.borderDash,lineDashOffset:r.borderDashOffset,lineJoin:r.borderJoinStyle,lineWidth:r.borderWidth,strokeStyle:r.borderColor,pointStyle:r.pointStyle,rotation:r.rotation,datasetIndex:A.index}}),this)}}},legendCallback:function(t){var e,A,n,r,i=document.createElement("ul"),o=t.data.datasets;for(i.setAttribute("class",t.id+"-legend"),e=0,A=o.length;e<A;e++)n=i.appendChild(document.createElement("li")),r=n.appendChild(document.createElement("span")),r.style.backgroundColor=o[e].backgroundColor,o[e].label&&n.appendChild(document.createTextNode(o[e].label));return i.outerHTML}});var ti=wt.extend({initialize:function(t){var e=this;ct.extend(e,t),e.legendHitBoxes=[],e._hoveredItem=null,e.doughnutMode=!1},beforeUpdate:Jr,update:function(t,e,A){var n=this;return n.beforeUpdate(),n.maxWidth=t,n.maxHeight=e,n.margins=A,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:Jr,beforeSetDimensions:Jr,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:Jr,beforeBuildLabels:Jr,buildLabels:function(){var t=this,e=t.options.labels||{},A=ct.callback(e.generateLabels,[t.chart],t)||[];e.filter&&(A=A.filter((function(A){return e.filter(A,t.chart.data)}))),t.options.reverse&&A.reverse(),t.legendItems=A},afterBuildLabels:Jr,beforeFit:Jr,fit:function(){var t=this,e=t.options,A=e.labels,n=e.display,r=t.ctx,i=ct.options._parseFont(A),o=i.size,a=t.legendHitBoxes=[],s=t.minSize,l=t.isHorizontal();if(l?(s.width=t.maxWidth,s.height=n?10:0):(s.width=n?10:0,s.height=t.maxHeight),n){if(r.font=i.string,l){var c=t.lineWidths=[0],u=0;r.textAlign="left",r.textBaseline="middle",ct.each(t.legendItems,(function(t,e){var n=$r(A,o),i=n+o/2+r.measureText(t.text).width;(0===e||c[c.length-1]+i+2*A.padding>s.width)&&(u+=o+A.padding,c[c.length-(e>0?0:1)]=0),a[e]={left:0,top:0,width:i,height:o},c[c.length-1]+=i+A.padding})),s.height+=u}else{var h=A.padding,d=t.columnWidths=[],g=t.columnHeights=[],f=A.padding,p=0,m=0;ct.each(t.legendItems,(function(t,e){var n=$r(A,o),i=n+o/2+r.measureText(t.text).width;e>0&&m+o+2*h>s.height&&(f+=p+A.padding,d.push(p),g.push(m),p=0,m=0),p=Math.max(p,i),m+=o+h,a[e]={left:0,top:0,width:i,height:o}})),f+=p,d.push(p),g.push(m),s.width+=f}t.width=s.width,t.height=s.height}else t.width=s.width=t.height=s.height=0},afterFit:Jr,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t=this,e=t.options,A=e.labels,n=Z.global,r=n.defaultColor,i=n.elements.line,o=t.height,a=t.columnHeights,s=t.width,l=t.lineWidths;if(e.display){var c,u=Xr(e.rtl,t.left,t.minSize.width),h=t.ctx,d=Zr(A.fontColor,n.defaultFontColor),g=ct.options._parseFont(A),f=g.size;h.textAlign=u.textAlign("left"),h.textBaseline="middle",h.lineWidth=.5,h.strokeStyle=d,h.fillStyle=d,h.font=g.string;var p=$r(A,f),m=t.legendHitBoxes,w=function(t,e,n){if(!(isNaN(p)||p<=0)){h.save();var o=Zr(n.lineWidth,i.borderWidth);if(h.fillStyle=Zr(n.fillStyle,r),h.lineCap=Zr(n.lineCap,i.borderCapStyle),h.lineDashOffset=Zr(n.lineDashOffset,i.borderDashOffset),h.lineJoin=Zr(n.lineJoin,i.borderJoinStyle),h.lineWidth=o,h.strokeStyle=Zr(n.strokeStyle,r),h.setLineDash&&h.setLineDash(Zr(n.lineDash,i.borderDash)),A&&A.usePointStyle){var a=p*Math.SQRT2/2,s=u.xPlus(t,p/2),l=e+f/2;ct.canvas.drawPoint(h,n.pointStyle,a,s,l,n.rotation)}else h.fillRect(u.leftForLtr(t,p),e,p,f),0!==o&&h.strokeRect(u.leftForLtr(t,p),e,p,f);h.restore()}},B=function(t,e,A,n){var r=f/2,i=u.xPlus(t,p+r),o=e+r;h.fillText(A.text,i,o),A.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(i,o),h.lineTo(u.xPlus(i,n),o),h.stroke())},v=function(t,n){switch(e.align){case"start":return A.padding;case"end":return t-n;default:return(t-n+A.padding)/2}},y=t.isHorizontal();c=y?{x:t.left+v(s,l[0]),y:t.top+A.padding,line:0}:{x:t.left+A.padding,y:t.top+v(o,a[0]),line:0},ct.rtl.overrideTextDirection(t.ctx,e.textDirection);var b=f+A.padding;ct.each(t.legendItems,(function(e,n){var r=h.measureText(e.text).width,i=p+f/2+r,d=c.x,g=c.y;u.setWidth(t.minSize.width),y?n>0&&d+i+A.padding>t.left+t.minSize.width&&(g=c.y+=b,c.line++,d=c.x=t.left+v(s,l[c.line])):n>0&&g+b>t.top+t.minSize.height&&(d=c.x=d+t.columnWidths[c.line]+A.padding,c.line++,g=c.y=t.top+v(o,a[c.line]));var C=u.x(d);w(C,g,e),m[n].left=u.leftForLtr(C,m[n].width),m[n].top=g,B(C,g,e,r),y?c.x+=i+A.padding:c.y+=b})),ct.rtl.restoreTextDirection(t.ctx,e.textDirection)}},_getLegendItemAt:function(t,e){var A,n,r,i=this;if(t>=i.left&&t<=i.right&&e>=i.top&&e<=i.bottom)for(r=i.legendHitBoxes,A=0;A<r.length;++A)if(n=r[A],t>=n.left&&t<=n.left+n.width&&e>=n.top&&e<=n.top+n.height)return i.legendItems[A];return null},handleEvent:function(t){var e,A=this,n=A.options,r="mouseup"===t.type?"click":t.type;if("mousemove"===r){if(!n.onHover&&!n.onLeave)return}else{if("click"!==r)return;if(!n.onClick)return}e=A._getLegendItemAt(t.x,t.y),"click"===r?e&&n.onClick&&n.onClick.call(A,t.native,e):(n.onLeave&&e!==A._hoveredItem&&(A._hoveredItem&&n.onLeave.call(A,t.native,A._hoveredItem),A._hoveredItem=e),n.onHover&&e&&n.onHover.call(A,t.native,e))}});function ei(t,e){var A=new ti({ctx:t.ctx,options:e,chart:t});ze.configure(t,A,e),ze.addBox(t,A),t.legend=A}var Ai={id:"legend",_element:ti,beforeInit:function(t){var e=t.options.legend;e&&ei(t,e)},beforeUpdate:function(t){var e=t.options.legend,A=t.legend;e?(ct.mergeIf(e,Z.global.legend),A?(ze.configure(t,A,e),A.options=e):ei(t,e)):A&&(ze.removeBox(t,A),delete t.legend)},afterEvent:function(t,e){var A=t.legend;A&&A.handleEvent(e)}},ni=ct.noop;Z._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var ri=wt.extend({initialize:function(t){var e=this;ct.extend(e,t),e.legendHitBoxes=[]},beforeUpdate:ni,update:function(t,e,A){var n=this;return n.beforeUpdate(),n.maxWidth=t,n.maxHeight=e,n.margins=A,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:ni,beforeSetDimensions:ni,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:ni,beforeBuildLabels:ni,buildLabels:ni,afterBuildLabels:ni,beforeFit:ni,fit:function(){var t,e,A=this,n=A.options,r=A.minSize={},i=A.isHorizontal();n.display?(t=ct.isArray(n.text)?n.text.length:1,e=t*ct.options._parseFont(n).lineHeight+2*n.padding,A.width=r.width=i?A.maxWidth:e,A.height=r.height=i?e:A.maxHeight):A.width=r.width=A.height=r.height=0},afterFit:ni,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,A=t.options;if(A.display){var n,r,i,o=ct.options._parseFont(A),a=o.lineHeight,s=a/2+A.padding,l=0,c=t.top,u=t.left,h=t.bottom,d=t.right;e.fillStyle=ct.valueOrDefault(A.fontColor,Z.global.defaultFontColor),e.font=o.string,t.isHorizontal()?(r=u+(d-u)/2,i=c+s,n=d-u):(r="left"===A.position?u+s:d-s,i=c+(h-c)/2,n=h-c,l=Math.PI*("left"===A.position?-.5:.5)),e.save(),e.translate(r,i),e.rotate(l),e.textAlign="center",e.textBaseline="middle";var g=A.text;if(ct.isArray(g))for(var f=0,p=0;p<g.length;++p)e.fillText(g[p],0,f,n),f+=a;else e.fillText(g,0,0,n);e.restore()}}});function ii(t,e){var A=new ri({ctx:t.ctx,options:e,chart:t});ze.configure(t,A,e),ze.addBox(t,A),t.titleBlock=A}var oi={id:"title",_element:ri,beforeInit:function(t){var e=t.options.title;e&&ii(t,e)},beforeUpdate:function(t){var e=t.options.title,A=t.titleBlock;e?(ct.mergeIf(e,Z.global.title),A?(ze.configure(t,A,e),A.options=e):ii(t,e)):A&&(ze.removeBox(t,A),delete t.titleBlock)}},ai={},si=zr,li=Ai,ci=oi;for(var ui in ai.filler=si,ai.legend=li,ai.title=ci,ZA.helpers=ct,$A(),ZA._adapters=nn,ZA.Animation=vt,ZA.animationService=yt,ZA.controllers=Ie,ZA.DatasetController=Ut,ZA.defaults=Z,ZA.Element=wt,ZA.elements=Xt,ZA.Interaction=Oe,ZA.layouts=ze,ZA.platform=FA,ZA.plugins=QA,ZA.Scale=Fn,ZA.scaleService=UA,ZA.Ticks=rn,ZA.Tooltip=KA,ZA.helpers.each(Tr,(function(t,e){ZA.scaleService.registerScaleType(e,t,t._defaults)})),ai)ai.hasOwnProperty(ui)&&ZA.plugins.register(ai[ui]);ZA.platform.initialize();var hi=ZA;return"undefined"!==typeof window&&(window.Chart=ZA),ZA.Chart=ZA,ZA.Legend=ai.legend._element,ZA.Title=ai.title._element,ZA.pluginService=ZA.plugins,ZA.PluginBase=ZA.Element.extend({}),ZA.canvasHelpers=ZA.helpers.canvas,ZA.layoutService=ZA.layouts,ZA.LinearScaleBase=Dn,ZA.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],(function(t){ZA[t]=function(e,A){return new ZA(e,ZA.helpers.merge(A||{},{type:t.charAt(0).toLowerCase()+t.slice(1)}))}})),hi}))},"3c35":function(t,e){(function(e){t.exports=e}).call(this,{})},"4f36":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFhSURBVHgB7ZQxTsMwFIZ/O5WALWJGKEcoEgOCDu0NGNkKA6JMiBOQ3iAbAZZcgRO0SDRiYOAIEQeozMSEjS0QCqnjpMXOQn4pspI4/r48Pxlo89/jwVE2e6Orje3dqbzw/vr8gCYFFFwO4fdt3yRhXaAAR5WEdYG1rZ03QsgRQNZRQ4LCUvze2YW/NwpYevfCOR8AgmmmhcUHVgRU2SlIRD1MKiTGxW8JLMCR/zOBjH9gwJ7izN8/7VJKJxLjK/j8MQ6tCpQ03KIE6fTns+tIt8bKAkU4F/xSNt+QgHSLEqZ1VuqBBTjHCZvdRgJIfiYRBPDIYdVaSwto4Wmc+AfnQ9WIualjVlL2fJbaAiOciCQP1zXcnwRcwGsLuILXEnAJrxRwDTcKNAEvFWgKrhVoEq6iO4jCpuAqnbIXQoh7lt44havotkB8GSCT9ZnK8dgVXIUa1ALXcLPA7ziBt2mj8gl4LPy9kQIEWgAAAABJRU5ErkJggg=="},"5f60":function(t,e,A){"use strict";A.r(e);var n=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],r={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"===typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(t){return"undefined"!==typeof console&&console.warn(t)},getWeek:function(t){var e=new Date(t.getTime());e.setHours(0,0,0,0),e.setDate(e.getDate()+3-(e.getDay()+6)%7);var A=new Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-A.getTime())/864e5-3+(A.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},i={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(t){var e=t%100;if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},o=i,a=function(t,e){return void 0===e&&(e=2),("000"+t).slice(-1*e)},s=function(t){return!0===t?1:0};function l(t,e){var A;return function(){var n=this,r=arguments;clearTimeout(A),A=setTimeout((function(){return t.apply(n,r)}),e)}}var c=function(t){return t instanceof Array?t:[t]};function u(t,e,A){if(!0===A)return t.classList.add(e);t.classList.remove(e)}function h(t,e,A){var n=window.document.createElement(t);return e=e||"",A=A||"",n.className=e,void 0!==A&&(n.textContent=A),n}function d(t){while(t.firstChild)t.removeChild(t.firstChild)}function g(t,e){return e(t)?t:t.parentNode?g(t.parentNode,e):void 0}function f(t,e){var A=h("div","numInputWrapper"),n=h("input","numInput "+t),r=h("span","arrowUp"),i=h("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?n.type="number":(n.type="text",n.pattern="\\d*"),void 0!==e)for(var o in e)n.setAttribute(o,e[o]);return A.appendChild(n),A.appendChild(r),A.appendChild(i),A}function p(t){try{if("function"===typeof t.composedPath){var e=t.composedPath();return e[0]}return t.target}catch(A){return t.target}}var m=function(){},w=function(t,e,A){return A.months[e?"shorthand":"longhand"][t]},B={D:m,F:function(t,e,A){t.setMonth(A.months.longhand.indexOf(e))},G:function(t,e){t.setHours((t.getHours()>=12?12:0)+parseFloat(e))},H:function(t,e){t.setHours(parseFloat(e))},J:function(t,e){t.setDate(parseFloat(e))},K:function(t,e,A){t.setHours(t.getHours()%12+12*s(new RegExp(A.amPM[1],"i").test(e)))},M:function(t,e,A){t.setMonth(A.months.shorthand.indexOf(e))},S:function(t,e){t.setSeconds(parseFloat(e))},U:function(t,e){return new Date(1e3*parseFloat(e))},W:function(t,e,A){var n=parseInt(e),r=new Date(t.getFullYear(),0,2+7*(n-1),0,0,0,0);return r.setDate(r.getDate()-r.getDay()+A.firstDayOfWeek),r},Y:function(t,e){t.setFullYear(parseFloat(e))},Z:function(t,e){return new Date(e)},d:function(t,e){t.setDate(parseFloat(e))},h:function(t,e){t.setHours((t.getHours()>=12?12:0)+parseFloat(e))},i:function(t,e){t.setMinutes(parseFloat(e))},j:function(t,e){t.setDate(parseFloat(e))},l:m,m:function(t,e){t.setMonth(parseFloat(e)-1)},n:function(t,e){t.setMonth(parseFloat(e)-1)},s:function(t,e){t.setSeconds(parseFloat(e))},u:function(t,e){return new Date(parseFloat(e))},w:m,y:function(t,e){t.setFullYear(2e3+parseFloat(e))}},v={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},y={Z:function(t){return t.toISOString()},D:function(t,e,A){return e.weekdays.shorthand[y.w(t,e,A)]},F:function(t,e,A){return w(y.n(t,e,A)-1,!1,e)},G:function(t,e,A){return a(y.h(t,e,A))},H:function(t){return a(t.getHours())},J:function(t,e){return void 0!==e.ordinal?t.getDate()+e.ordinal(t.getDate()):t.getDate()},K:function(t,e){return e.amPM[s(t.getHours()>11)]},M:function(t,e){return w(t.getMonth(),!0,e)},S:function(t){return a(t.getSeconds())},U:function(t){return t.getTime()/1e3},W:function(t,e,A){return A.getWeek(t)},Y:function(t){return a(t.getFullYear(),4)},d:function(t){return a(t.getDate())},h:function(t){return t.getHours()%12?t.getHours()%12:12},i:function(t){return a(t.getMinutes())},j:function(t){return t.getDate()},l:function(t,e){return e.weekdays.longhand[t.getDay()]},m:function(t){return a(t.getMonth()+1)},n:function(t){return t.getMonth()+1},s:function(t){return t.getSeconds()},u:function(t){return t.getTime()},w:function(t){return t.getDay()},y:function(t){return String(t.getFullYear()).substring(2)}},b=function(t){var e=t.config,A=void 0===e?r:e,n=t.l10n,o=void 0===n?i:n,a=t.isMobile,s=void 0!==a&&a;return function(t,e,n){var r=n||o;return void 0===A.formatDate||s?e.split("").map((function(e,n,i){return y[e]&&"\\"!==i[n-1]?y[e](t,r,A):"\\"!==e?e:""})).join(""):A.formatDate(t,e,r)}},C=function(t){var e=t.config,A=void 0===e?r:e,n=t.l10n,o=void 0===n?i:n;return function(t,e,n,i){if(0===t||t){var a,s=i||o,l=t;if(t instanceof Date)a=new Date(t.getTime());else if("string"!==typeof t&&void 0!==t.toFixed)a=new Date(t);else if("string"===typeof t){var c=e||(A||r).dateFormat,u=String(t).trim();if("today"===u)a=new Date,n=!0;else if(A&&A.parseDate)a=A.parseDate(t,c);else if(/Z$/.test(u)||/GMT$/.test(u))a=new Date(t);else{for(var h=void 0,d=[],g=0,f=0,p="";g<c.length;g++){var m=c[g],w="\\"===m,y="\\"===c[g-1]||w;if(v[m]&&!y){p+=v[m];var b=new RegExp(p).exec(t);b&&(h=!0)&&d["Y"!==m?"push":"unshift"]({fn:B[m],val:b[++f]})}else w||(p+=".")}a=A&&A.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),d.forEach((function(t){var e=t.fn,A=t.val;return a=e(a,A,s)||a})),a=h?a:void 0}}if(a instanceof Date&&!isNaN(a.getTime()))return!0===n&&a.setHours(0,0,0,0),a;A.errorHandler(new Error("Invalid date provided: "+l))}}};function x(t,e,A){return void 0===A&&(A=!0),!1!==A?new Date(t.getTime()).setHours(0,0,0,0)-new Date(e.getTime()).setHours(0,0,0,0):t.getTime()-e.getTime()}var F=function(t,e,A){return t>Math.min(e,A)&&t<Math.max(e,A)},Q=function(t,e,A){return 3600*t+60*e+A},U=function(t){var e=Math.floor(t/3600),A=(t-3600*e)/60;return[e,A,t-3600*e-60*A]},_={DAY:864e5};function I(t){var e=t.defaultHour,A=t.defaultMinute,n=t.defaultSeconds;if(void 0!==t.minDate){var r=t.minDate.getHours(),i=t.minDate.getMinutes(),o=t.minDate.getSeconds();e<r&&(e=r),e===r&&A<i&&(A=i),e===r&&A===i&&n<o&&(n=t.minDate.getSeconds())}if(void 0!==t.maxDate){var a=t.maxDate.getHours(),s=t.maxDate.getMinutes();e=Math.min(e,a),e===a&&(A=Math.min(s,A)),e===a&&A===s&&(n=t.maxDate.getSeconds())}return{hours:e,minutes:A,seconds:n}}A("716d");var E=function(){return E=Object.assign||function(t){for(var e,A=1,n=arguments.length;A<n;A++)for(var r in e=arguments[A],e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},E.apply(this,arguments)},k=function(){for(var t=0,e=0,A=arguments.length;e<A;e++)t+=arguments[e].length;var n=Array(t),r=0;for(e=0;e<A;e++)for(var i=arguments[e],o=0,a=i.length;o<a;o++,r++)n[r]=i[o];return n},S=300;function D(t,e){var A={config:E(E({},r),M.defaultConfig),l10n:o};function i(){A.utils={getDaysInMonth:function(t,e){return void 0===t&&(t=A.currentMonth),void 0===e&&(e=A.currentYear),1===t&&(e%4===0&&e%100!==0||e%400===0)?29:A.l10n.daysInMonth[t]}}}function m(){A.element=A.input=t,A.isOpen=!1,Ft(),Ut(),Rt(),Lt(),i(),A.isMobile||Y(),V(),(A.selectedDates.length||A.config.noCalendar)&&(A.config.enableTime&&L(A.config.noCalendar?A.latestSelectedDateObj:void 0),Xt(!1)),D();var e=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!A.isMobile&&e&&_t(),Vt("onReady")}function B(){var t;return(null===(t=A.calendarContainer)||void 0===t?void 0:t.getRootNode()).activeElement||document.activeElement}function y(t){return t.bind(A)}function D(){var t=A.config;!1===t.weekNumbers&&1===t.showMonths||!0!==t.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==A.calendarContainer&&(A.calendarContainer.style.visibility="hidden",A.calendarContainer.style.display="block"),void 0!==A.daysContainer){var e=(A.days.offsetWidth+1)*t.showMonths;A.daysContainer.style.width=e+"px",A.calendarContainer.style.width=e+(void 0!==A.weekWrapper?A.weekWrapper.offsetWidth:0)+"px",A.calendarContainer.style.removeProperty("visibility"),A.calendarContainer.style.removeProperty("display")}}))}function H(t){if(0===A.selectedDates.length){var e=void 0===A.config.minDate||x(new Date,A.config.minDate)>=0?new Date:new Date(A.config.minDate.getTime()),n=I(A.config);e.setHours(n.hours,n.minutes,n.seconds,e.getMilliseconds()),A.selectedDates=[e],A.latestSelectedDateObj=e}void 0!==t&&"blur"!==t.type&&Zt(t);var r=A._input.value;P(),Xt(),A._input.value!==r&&A._debouncedChange()}function O(t,e){return t%12+12*s(e===A.l10n.amPM[1])}function T(t){switch(t%24){case 0:case 12:return 12;default:return t%12}}function P(){if(void 0!==A.hourElement&&void 0!==A.minuteElement){var t=(parseInt(A.hourElement.value.slice(-2),10)||0)%24,e=(parseInt(A.minuteElement.value,10)||0)%60,n=void 0!==A.secondElement?(parseInt(A.secondElement.value,10)||0)%60:0;void 0!==A.amPM&&(t=O(t,A.amPM.textContent));var r=void 0!==A.config.minTime||A.config.minDate&&A.minDateHasTime&&A.latestSelectedDateObj&&0===x(A.latestSelectedDateObj,A.config.minDate,!0),i=void 0!==A.config.maxTime||A.config.maxDate&&A.maxDateHasTime&&A.latestSelectedDateObj&&0===x(A.latestSelectedDateObj,A.config.maxDate,!0);if(void 0!==A.config.maxTime&&void 0!==A.config.minTime&&A.config.minTime>A.config.maxTime){var o=Q(A.config.minTime.getHours(),A.config.minTime.getMinutes(),A.config.minTime.getSeconds()),a=Q(A.config.maxTime.getHours(),A.config.maxTime.getMinutes(),A.config.maxTime.getSeconds()),s=Q(t,e,n);if(s>a&&s<o){var l=U(o);t=l[0],e=l[1],n=l[2]}}else{if(i){var c=void 0!==A.config.maxTime?A.config.maxTime:A.config.maxDate;t=Math.min(t,c.getHours()),t===c.getHours()&&(e=Math.min(e,c.getMinutes())),e===c.getMinutes()&&(n=Math.min(n,c.getSeconds()))}if(r){var u=void 0!==A.config.minTime?A.config.minTime:A.config.minDate;t=Math.max(t,u.getHours()),t===u.getHours()&&e<u.getMinutes()&&(e=u.getMinutes()),e===u.getMinutes()&&(n=Math.max(n,u.getSeconds()))}}R(t,e,n)}}function L(t){var e=t||A.latestSelectedDateObj;e&&e instanceof Date&&R(e.getHours(),e.getMinutes(),e.getSeconds())}function R(t,e,n){void 0!==A.latestSelectedDateObj&&A.latestSelectedDateObj.setHours(t%24,e,n||0,0),A.hourElement&&A.minuteElement&&!A.isMobile&&(A.hourElement.value=a(A.config.time_24hr?t:(12+t)%12+12*s(t%12===0)),A.minuteElement.value=a(e),void 0!==A.amPM&&(A.amPM.textContent=A.l10n.amPM[s(t>=12)]),void 0!==A.secondElement&&(A.secondElement.value=a(n)))}function N(t){var e=p(t),A=parseInt(e.value)+(t.delta||0);(A/1e3>1||"Enter"===t.key&&!/[^\d]/.test(A.toString()))&&pt(A)}function K(t,e,n,r){return e instanceof Array?e.forEach((function(e){return K(t,e,n,r)})):t instanceof Array?t.forEach((function(t){return K(t,e,n,r)})):(t.addEventListener(e,n,r),void A._handlers.push({remove:function(){return t.removeEventListener(e,n,r)}}))}function j(){Vt("onChange")}function V(){if(A.config.wrap&&["open","close","toggle","clear"].forEach((function(t){Array.prototype.forEach.call(A.element.querySelectorAll("[data-"+t+"]"),(function(e){return K(e,"click",A[t])}))})),A.isMobile)Kt();else{var t=l(bt,50);if(A._debouncedChange=l(j,S),A.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&K(A.daysContainer,"mouseover",(function(t){"range"===A.config.mode&&yt(p(t))})),K(A._input,"keydown",vt),void 0!==A.calendarContainer&&K(A.calendarContainer,"keydown",vt),A.config.inline||A.config.static||K(window,"resize",t),void 0!==window.ontouchstart?K(window.document,"touchstart",ft):K(window.document,"mousedown",ft),K(window.document,"focus",ft,{capture:!0}),!0===A.config.clickOpens&&(K(A._input,"focus",A.open),K(A._input,"click",A.open)),void 0!==A.daysContainer&&(K(A.monthNav,"click",Jt),K(A.monthNav,["keyup","increment"],N),K(A.daysContainer,"click",Dt)),void 0!==A.timeContainer&&void 0!==A.minuteElement&&void 0!==A.hourElement){var e=function(t){return p(t).select()};K(A.timeContainer,["increment"],H),K(A.timeContainer,"blur",H,{capture:!0}),K(A.timeContainer,"click",q),K([A.hourElement,A.minuteElement],["focus","click"],e),void 0!==A.secondElement&&K(A.secondElement,"focus",(function(){return A.secondElement&&A.secondElement.select()})),void 0!==A.amPM&&K(A.amPM,"click",(function(t){H(t)}))}A.config.allowInput&&K(A._input,"blur",Bt)}}function G(t,e){var n=void 0!==t?A.parseDate(t):A.latestSelectedDateObj||(A.config.minDate&&A.config.minDate>A.now?A.config.minDate:A.config.maxDate&&A.config.maxDate<A.now?A.config.maxDate:A.now),r=A.currentYear,i=A.currentMonth;try{void 0!==n&&(A.currentYear=n.getFullYear(),A.currentMonth=n.getMonth())}catch(o){o.message="Invalid date supplied: "+n,A.config.errorHandler(o)}e&&A.currentYear!==r&&(Vt("onYearChange"),At()),!e||A.currentYear===r&&A.currentMonth===i||Vt("onMonthChange"),A.redraw()}function q(t){var e=p(t);~e.className.indexOf("arrow")&&W(t,e.classList.contains("arrowUp")?1:-1)}function W(t,e,A){var n=t&&p(t),r=A||n&&n.parentNode&&n.parentNode.firstChild,i=Gt("increment");i.delta=e,r&&r.dispatchEvent(i)}function Y(){var t=window.document.createDocumentFragment();if(A.calendarContainer=h("div","flatpickr-calendar"),A.calendarContainer.tabIndex=-1,!A.config.noCalendar){if(t.appendChild(it()),A.innerContainer=h("div","flatpickr-innerContainer"),A.config.weekNumbers){var e=lt(),n=e.weekWrapper,r=e.weekNumbers;A.innerContainer.appendChild(n),A.weekNumbers=r,A.weekWrapper=n}A.rContainer=h("div","flatpickr-rContainer"),A.rContainer.appendChild(at()),A.daysContainer||(A.daysContainer=h("div","flatpickr-days"),A.daysContainer.tabIndex=-1),et(),A.rContainer.appendChild(A.daysContainer),A.innerContainer.appendChild(A.rContainer),t.appendChild(A.innerContainer)}A.config.enableTime&&t.appendChild(ot()),u(A.calendarContainer,"rangeMode","range"===A.config.mode),u(A.calendarContainer,"animate",!0===A.config.animate),u(A.calendarContainer,"multiMonth",A.config.showMonths>1),A.calendarContainer.appendChild(t);var i=void 0!==A.config.appendTo&&void 0!==A.config.appendTo.nodeType;if((A.config.inline||A.config.static)&&(A.calendarContainer.classList.add(A.config.inline?"inline":"static"),A.config.inline&&(!i&&A.element.parentNode?A.element.parentNode.insertBefore(A.calendarContainer,A._input.nextSibling):void 0!==A.config.appendTo&&A.config.appendTo.appendChild(A.calendarContainer)),A.config.static)){var o=h("div","flatpickr-wrapper");A.element.parentNode&&A.element.parentNode.insertBefore(o,A.element),o.appendChild(A.element),A.altInput&&o.appendChild(A.altInput),o.appendChild(A.calendarContainer)}A.config.static||A.config.inline||(void 0!==A.config.appendTo?A.config.appendTo:window.document.body).appendChild(A.calendarContainer)}function z(t,e,n,r){var i=mt(e,!0),o=h("span",t,e.getDate().toString());return o.dateObj=e,o.$i=r,o.setAttribute("aria-label",A.formatDate(e,A.config.ariaDateFormat)),-1===t.indexOf("hidden")&&0===x(e,A.now)&&(A.todayDateElem=o,o.classList.add("today"),o.setAttribute("aria-current","date")),i?(o.tabIndex=-1,qt(e)&&(o.classList.add("selected"),A.selectedDateElem=o,"range"===A.config.mode&&(u(o,"startRange",A.selectedDates[0]&&0===x(e,A.selectedDates[0],!0)),u(o,"endRange",A.selectedDates[1]&&0===x(e,A.selectedDates[1],!0)),"nextMonthDay"===t&&o.classList.add("inRange")))):o.classList.add("flatpickr-disabled"),"range"===A.config.mode&&Wt(e)&&!qt(e)&&o.classList.add("inRange"),A.weekNumbers&&1===A.config.showMonths&&"prevMonthDay"!==t&&r%7===6&&A.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+A.config.getWeek(e)+"</span>"),Vt("onDayCreate",o),o}function X(t){t.focus(),"range"===A.config.mode&&yt(t)}function J(t){for(var e=t>0?0:A.config.showMonths-1,n=t>0?A.config.showMonths:-1,r=e;r!=n;r+=t)for(var i=A.daysContainer.children[r],o=t>0?0:i.children.length-1,a=t>0?i.children.length:-1,s=o;s!=a;s+=t){var l=i.children[s];if(-1===l.className.indexOf("hidden")&&mt(l.dateObj))return l}}function Z(t,e){for(var n=-1===t.className.indexOf("Month")?t.dateObj.getMonth():A.currentMonth,r=e>0?A.config.showMonths:-1,i=e>0?1:-1,o=n-A.currentMonth;o!=r;o+=i)for(var a=A.daysContainer.children[o],s=n-A.currentMonth===o?t.$i+e:e<0?a.children.length-1:0,l=a.children.length,c=s;c>=0&&c<l&&c!=(e>0?l:-1);c+=i){var u=a.children[c];if(-1===u.className.indexOf("hidden")&&mt(u.dateObj)&&Math.abs(t.$i-c)>=Math.abs(e))return X(u)}A.changeMonth(i),$(J(i),0)}function $(t,e){var n=B(),r=wt(n||document.body),i=void 0!==t?t:r?n:void 0!==A.selectedDateElem&&wt(A.selectedDateElem)?A.selectedDateElem:void 0!==A.todayDateElem&&wt(A.todayDateElem)?A.todayDateElem:J(e>0?1:-1);void 0===i?A._input.focus():r?Z(i,e):X(i)}function tt(t,e){for(var n=(new Date(t,e,1).getDay()-A.l10n.firstDayOfWeek+7)%7,r=A.utils.getDaysInMonth((e-1+12)%12,t),i=A.utils.getDaysInMonth(e,t),o=window.document.createDocumentFragment(),a=A.config.showMonths>1,s=a?"prevMonthDay hidden":"prevMonthDay",l=a?"nextMonthDay hidden":"nextMonthDay",c=r+1-n,u=0;c<=r;c++,u++)o.appendChild(z("flatpickr-day "+s,new Date(t,e-1,c),c,u));for(c=1;c<=i;c++,u++)o.appendChild(z("flatpickr-day",new Date(t,e,c),c,u));for(var d=i+1;d<=42-n&&(1===A.config.showMonths||u%7!==0);d++,u++)o.appendChild(z("flatpickr-day "+l,new Date(t,e+1,d%i),d,u));var g=h("div","dayContainer");return g.appendChild(o),g}function et(){if(void 0!==A.daysContainer){d(A.daysContainer),A.weekNumbers&&d(A.weekNumbers);for(var t=document.createDocumentFragment(),e=0;e<A.config.showMonths;e++){var n=new Date(A.currentYear,A.currentMonth,1);n.setMonth(A.currentMonth+e),t.appendChild(tt(n.getFullYear(),n.getMonth()))}A.daysContainer.appendChild(t),A.days=A.daysContainer.firstChild,"range"===A.config.mode&&1===A.selectedDates.length&&yt()}}function At(){if(!(A.config.showMonths>1||"dropdown"!==A.config.monthSelectorType)){var t=function(t){return!(void 0!==A.config.minDate&&A.currentYear===A.config.minDate.getFullYear()&&t<A.config.minDate.getMonth())&&!(void 0!==A.config.maxDate&&A.currentYear===A.config.maxDate.getFullYear()&&t>A.config.maxDate.getMonth())};A.monthsDropdownContainer.tabIndex=-1,A.monthsDropdownContainer.innerHTML="";for(var e=0;e<12;e++)if(t(e)){var n=h("option","flatpickr-monthDropdown-month");n.value=new Date(A.currentYear,e).getMonth().toString(),n.textContent=w(e,A.config.shorthandCurrentMonth,A.l10n),n.tabIndex=-1,A.currentMonth===e&&(n.selected=!0),A.monthsDropdownContainer.appendChild(n)}}}function nt(){var t,e=h("div","flatpickr-month"),n=window.document.createDocumentFragment();A.config.showMonths>1||"static"===A.config.monthSelectorType?t=h("span","cur-month"):(A.monthsDropdownContainer=h("select","flatpickr-monthDropdown-months"),A.monthsDropdownContainer.setAttribute("aria-label",A.l10n.monthAriaLabel),K(A.monthsDropdownContainer,"change",(function(t){var e=p(t),n=parseInt(e.value,10);A.changeMonth(n-A.currentMonth),Vt("onMonthChange")})),At(),t=A.monthsDropdownContainer);var r=f("cur-year",{tabindex:"-1"}),i=r.getElementsByTagName("input")[0];i.setAttribute("aria-label",A.l10n.yearAriaLabel),A.config.minDate&&i.setAttribute("min",A.config.minDate.getFullYear().toString()),A.config.maxDate&&(i.setAttribute("max",A.config.maxDate.getFullYear().toString()),i.disabled=!!A.config.minDate&&A.config.minDate.getFullYear()===A.config.maxDate.getFullYear());var o=h("div","flatpickr-current-month");return o.appendChild(t),o.appendChild(r),n.appendChild(o),e.appendChild(n),{container:e,yearElement:i,monthElement:t}}function rt(){d(A.monthNav),A.monthNav.appendChild(A.prevMonthNav),A.config.showMonths&&(A.yearElements=[],A.monthElements=[]);for(var t=A.config.showMonths;t--;){var e=nt();A.yearElements.push(e.yearElement),A.monthElements.push(e.monthElement),A.monthNav.appendChild(e.container)}A.monthNav.appendChild(A.nextMonthNav)}function it(){return A.monthNav=h("div","flatpickr-months"),A.yearElements=[],A.monthElements=[],A.prevMonthNav=h("span","flatpickr-prev-month"),A.prevMonthNav.innerHTML=A.config.prevArrow,A.nextMonthNav=h("span","flatpickr-next-month"),A.nextMonthNav.innerHTML=A.config.nextArrow,rt(),Object.defineProperty(A,"_hidePrevMonthArrow",{get:function(){return A.__hidePrevMonthArrow},set:function(t){A.__hidePrevMonthArrow!==t&&(u(A.prevMonthNav,"flatpickr-disabled",t),A.__hidePrevMonthArrow=t)}}),Object.defineProperty(A,"_hideNextMonthArrow",{get:function(){return A.__hideNextMonthArrow},set:function(t){A.__hideNextMonthArrow!==t&&(u(A.nextMonthNav,"flatpickr-disabled",t),A.__hideNextMonthArrow=t)}}),A.currentYearElement=A.yearElements[0],Yt(),A.monthNav}function ot(){A.calendarContainer.classList.add("hasTime"),A.config.noCalendar&&A.calendarContainer.classList.add("noCalendar");var t=I(A.config);A.timeContainer=h("div","flatpickr-time"),A.timeContainer.tabIndex=-1;var e=h("span","flatpickr-time-separator",":"),n=f("flatpickr-hour",{"aria-label":A.l10n.hourAriaLabel});A.hourElement=n.getElementsByTagName("input")[0];var r=f("flatpickr-minute",{"aria-label":A.l10n.minuteAriaLabel});if(A.minuteElement=r.getElementsByTagName("input")[0],A.hourElement.tabIndex=A.minuteElement.tabIndex=-1,A.hourElement.value=a(A.latestSelectedDateObj?A.latestSelectedDateObj.getHours():A.config.time_24hr?t.hours:T(t.hours)),A.minuteElement.value=a(A.latestSelectedDateObj?A.latestSelectedDateObj.getMinutes():t.minutes),A.hourElement.setAttribute("step",A.config.hourIncrement.toString()),A.minuteElement.setAttribute("step",A.config.minuteIncrement.toString()),A.hourElement.setAttribute("min",A.config.time_24hr?"0":"1"),A.hourElement.setAttribute("max",A.config.time_24hr?"23":"12"),A.hourElement.setAttribute("maxlength","2"),A.minuteElement.setAttribute("min","0"),A.minuteElement.setAttribute("max","59"),A.minuteElement.setAttribute("maxlength","2"),A.timeContainer.appendChild(n),A.timeContainer.appendChild(e),A.timeContainer.appendChild(r),A.config.time_24hr&&A.timeContainer.classList.add("time24hr"),A.config.enableSeconds){A.timeContainer.classList.add("hasSeconds");var i=f("flatpickr-second");A.secondElement=i.getElementsByTagName("input")[0],A.secondElement.value=a(A.latestSelectedDateObj?A.latestSelectedDateObj.getSeconds():t.seconds),A.secondElement.setAttribute("step",A.minuteElement.getAttribute("step")),A.secondElement.setAttribute("min","0"),A.secondElement.setAttribute("max","59"),A.secondElement.setAttribute("maxlength","2"),A.timeContainer.appendChild(h("span","flatpickr-time-separator",":")),A.timeContainer.appendChild(i)}return A.config.time_24hr||(A.amPM=h("span","flatpickr-am-pm",A.l10n.amPM[s((A.latestSelectedDateObj?A.hourElement.value:A.config.defaultHour)>11)]),A.amPM.title=A.l10n.toggleTitle,A.amPM.tabIndex=-1,A.timeContainer.appendChild(A.amPM)),A.timeContainer}function at(){A.weekdayContainer?d(A.weekdayContainer):A.weekdayContainer=h("div","flatpickr-weekdays");for(var t=A.config.showMonths;t--;){var e=h("div","flatpickr-weekdaycontainer");A.weekdayContainer.appendChild(e)}return st(),A.weekdayContainer}function st(){if(A.weekdayContainer){var t=A.l10n.firstDayOfWeek,e=k(A.l10n.weekdays.shorthand);t>0&&t<e.length&&(e=k(e.splice(t,e.length),e.splice(0,t)));for(var n=A.config.showMonths;n--;)A.weekdayContainer.children[n].innerHTML="\n <span class='flatpickr-weekday'>\n "+e.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function lt(){A.calendarContainer.classList.add("hasWeeks");var t=h("div","flatpickr-weekwrapper");t.appendChild(h("span","flatpickr-weekday",A.l10n.weekAbbreviation));var e=h("div","flatpickr-weeks");return t.appendChild(e),{weekWrapper:t,weekNumbers:e}}function ct(t,e){void 0===e&&(e=!0);var n=e?t:t-A.currentMonth;n<0&&!0===A._hidePrevMonthArrow||n>0&&!0===A._hideNextMonthArrow||(A.currentMonth+=n,(A.currentMonth<0||A.currentMonth>11)&&(A.currentYear+=A.currentMonth>11?1:-1,A.currentMonth=(A.currentMonth+12)%12,Vt("onYearChange"),At()),et(),Vt("onMonthChange"),Yt())}function ut(t,e){if(void 0===t&&(t=!0),void 0===e&&(e=!0),A.input.value="",void 0!==A.altInput&&(A.altInput.value=""),void 0!==A.mobileInput&&(A.mobileInput.value=""),A.selectedDates=[],A.latestSelectedDateObj=void 0,!0===e&&(A.currentYear=A._initialDate.getFullYear(),A.currentMonth=A._initialDate.getMonth()),!0===A.config.enableTime){var n=I(A.config),r=n.hours,i=n.minutes,o=n.seconds;R(r,i,o)}A.redraw(),t&&Vt("onChange")}function ht(){A.isOpen=!1,A.isMobile||(void 0!==A.calendarContainer&&A.calendarContainer.classList.remove("open"),void 0!==A._input&&A._input.classList.remove("active")),Vt("onClose")}function dt(){void 0!==A.config&&Vt("onDestroy");for(var t=A._handlers.length;t--;)A._handlers[t].remove();if(A._handlers=[],A.mobileInput)A.mobileInput.parentNode&&A.mobileInput.parentNode.removeChild(A.mobileInput),A.mobileInput=void 0;else if(A.calendarContainer&&A.calendarContainer.parentNode)if(A.config.static&&A.calendarContainer.parentNode){var e=A.calendarContainer.parentNode;if(e.lastChild&&e.removeChild(e.lastChild),e.parentNode){while(e.firstChild)e.parentNode.insertBefore(e.firstChild,e);e.parentNode.removeChild(e)}}else A.calendarContainer.parentNode.removeChild(A.calendarContainer);A.altInput&&(A.input.type="text",A.altInput.parentNode&&A.altInput.parentNode.removeChild(A.altInput),delete A.altInput),A.input&&(A.input.type=A.input._type,A.input.classList.remove("flatpickr-input"),A.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(t){try{delete A[t]}catch(e){}}))}function gt(t){return A.calendarContainer.contains(t)}function ft(t){if(A.isOpen&&!A.config.inline){var e=p(t),n=gt(e),r=e===A.input||e===A.altInput||A.element.contains(e)||t.path&&t.path.indexOf&&(~t.path.indexOf(A.input)||~t.path.indexOf(A.altInput)),i=!r&&!n&&!gt(t.relatedTarget),o=!A.config.ignoredFocusElements.some((function(t){return t.contains(e)}));i&&o&&(A.config.allowInput&&A.setDate(A._input.value,!1,A.config.altInput?A.config.altFormat:A.config.dateFormat),void 0!==A.timeContainer&&void 0!==A.minuteElement&&void 0!==A.hourElement&&""!==A.input.value&&void 0!==A.input.value&&H(),A.close(),A.config&&"range"===A.config.mode&&1===A.selectedDates.length&&A.clear(!1))}}function pt(t){if(!(!t||A.config.minDate&&t<A.config.minDate.getFullYear()||A.config.maxDate&&t>A.config.maxDate.getFullYear())){var e=t,n=A.currentYear!==e;A.currentYear=e||A.currentYear,A.config.maxDate&&A.currentYear===A.config.maxDate.getFullYear()?A.currentMonth=Math.min(A.config.maxDate.getMonth(),A.currentMonth):A.config.minDate&&A.currentYear===A.config.minDate.getFullYear()&&(A.currentMonth=Math.max(A.config.minDate.getMonth(),A.currentMonth)),n&&(A.redraw(),Vt("onYearChange"),At())}}function mt(t,e){var n;void 0===e&&(e=!0);var r=A.parseDate(t,void 0,e);if(A.config.minDate&&r&&x(r,A.config.minDate,void 0!==e?e:!A.minDateHasTime)<0||A.config.maxDate&&r&&x(r,A.config.maxDate,void 0!==e?e:!A.maxDateHasTime)>0)return!1;if(!A.config.enable&&0===A.config.disable.length)return!0;if(void 0===r)return!1;for(var i=!!A.config.enable,o=null!==(n=A.config.enable)&&void 0!==n?n:A.config.disable,a=0,s=void 0;a<o.length;a++){if(s=o[a],"function"===typeof s&&s(r))return i;if(s instanceof Date&&void 0!==r&&s.getTime()===r.getTime())return i;if("string"===typeof s){var l=A.parseDate(s,void 0,!0);return l&&l.getTime()===r.getTime()?i:!i}if("object"===typeof s&&void 0!==r&&s.from&&s.to&&r.getTime()>=s.from.getTime()&&r.getTime()<=s.to.getTime())return i}return!i}function wt(t){return void 0!==A.daysContainer&&(-1===t.className.indexOf("hidden")&&-1===t.className.indexOf("flatpickr-disabled")&&A.daysContainer.contains(t))}function Bt(t){var e=t.target===A._input,n=A._input.value.trimEnd()!==zt();!e||!n||t.relatedTarget&>(t.relatedTarget)||A.setDate(A._input.value,!0,t.target===A.altInput?A.config.altFormat:A.config.dateFormat)}function vt(e){var n=p(e),r=A.config.wrap?t.contains(n):n===A._input,i=A.config.allowInput,o=A.isOpen&&(!i||!r),a=A.config.inline&&r&&!i;if(13===e.keyCode&&r){if(i)return A.setDate(A._input.value,!0,n===A.altInput?A.config.altFormat:A.config.dateFormat),A.close(),n.blur();A.open()}else if(gt(n)||o||a){var s=!!A.timeContainer&&A.timeContainer.contains(n);switch(e.keyCode){case 13:s?(e.preventDefault(),H(),St()):Dt(e);break;case 27:e.preventDefault(),St();break;case 8:case 46:r&&!A.config.allowInput&&(e.preventDefault(),A.clear());break;case 37:case 39:if(s||r)A.hourElement&&A.hourElement.focus();else{e.preventDefault();var l=B();if(void 0!==A.daysContainer&&(!1===i||l&&wt(l))){var c=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),ct(c),$(J(1),0)):$(void 0,c)}}break;case 38:case 40:e.preventDefault();var u=40===e.keyCode?1:-1;A.daysContainer&&void 0!==n.$i||n===A.input||n===A.altInput?e.ctrlKey?(e.stopPropagation(),pt(A.currentYear-u),$(J(1),0)):s||$(void 0,7*u):n===A.currentYearElement?pt(A.currentYear-u):A.config.enableTime&&(!s&&A.hourElement&&A.hourElement.focus(),H(e),A._debouncedChange());break;case 9:if(s){var h=[A.hourElement,A.minuteElement,A.secondElement,A.amPM].concat(A.pluginElements).filter((function(t){return t})),d=h.indexOf(n);if(-1!==d){var g=h[d+(e.shiftKey?-1:1)];e.preventDefault(),(g||A._input).focus()}}else!A.config.noCalendar&&A.daysContainer&&A.daysContainer.contains(n)&&e.shiftKey&&(e.preventDefault(),A._input.focus());break;default:break}}if(void 0!==A.amPM&&n===A.amPM)switch(e.key){case A.l10n.amPM[0].charAt(0):case A.l10n.amPM[0].charAt(0).toLowerCase():A.amPM.textContent=A.l10n.amPM[0],P(),Xt();break;case A.l10n.amPM[1].charAt(0):case A.l10n.amPM[1].charAt(0).toLowerCase():A.amPM.textContent=A.l10n.amPM[1],P(),Xt();break}(r||gt(n))&&Vt("onKeyDown",e)}function yt(t,e){if(void 0===e&&(e="flatpickr-day"),1===A.selectedDates.length&&(!t||t.classList.contains(e)&&!t.classList.contains("flatpickr-disabled"))){for(var n=t?t.dateObj.getTime():A.days.firstElementChild.dateObj.getTime(),r=A.parseDate(A.selectedDates[0],void 0,!0).getTime(),i=Math.min(n,A.selectedDates[0].getTime()),o=Math.max(n,A.selectedDates[0].getTime()),a=!1,s=0,l=0,c=i;c<o;c+=_.DAY)mt(new Date(c),!0)||(a=a||c>i&&c<o,c<r&&(!s||c>s)?s=c:c>r&&(!l||c<l)&&(l=c));var u=Array.from(A.rContainer.querySelectorAll("*:nth-child(-n+"+A.config.showMonths+") > ."+e));u.forEach((function(e){var i=e.dateObj,o=i.getTime(),c=s>0&&o<s||l>0&&o>l;if(c)return e.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach((function(t){e.classList.remove(t)}));a&&!c||(["startRange","inRange","endRange","notAllowed"].forEach((function(t){e.classList.remove(t)})),void 0!==t&&(t.classList.add(n<=A.selectedDates[0].getTime()?"startRange":"endRange"),r<n&&o===r?e.classList.add("startRange"):r>n&&o===r&&e.classList.add("endRange"),o>=s&&(0===l||o<=l)&&F(o,r,n)&&e.classList.add("inRange")))}))}}function bt(){!A.isOpen||A.config.static||A.config.inline||_t()}function Ct(t,e){if(void 0===e&&(e=A._positionElement),!0===A.isMobile){if(t){t.preventDefault();var n=p(t);n&&n.blur()}return void 0!==A.mobileInput&&(A.mobileInput.focus(),A.mobileInput.click()),void Vt("onOpen")}if(!A._input.disabled&&!A.config.inline){var r=A.isOpen;A.isOpen=!0,r||(A.calendarContainer.classList.add("open"),A._input.classList.add("active"),Vt("onOpen"),_t(e)),!0===A.config.enableTime&&!0===A.config.noCalendar&&(!1!==A.config.allowInput||void 0!==t&&A.timeContainer.contains(t.relatedTarget)||setTimeout((function(){return A.hourElement.select()}),50))}}function xt(t){return function(e){var n=A.config["_"+t+"Date"]=A.parseDate(e,A.config.dateFormat),r=A.config["_"+("min"===t?"max":"min")+"Date"];void 0!==n&&(A["min"===t?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),A.selectedDates&&(A.selectedDates=A.selectedDates.filter((function(t){return mt(t)})),A.selectedDates.length||"min"!==t||L(n),Xt()),A.daysContainer&&(kt(),void 0!==n?A.currentYearElement[t]=n.getFullYear().toString():A.currentYearElement.removeAttribute(t),A.currentYearElement.disabled=!!r&&void 0!==n&&r.getFullYear()===n.getFullYear())}}function Ft(){var i=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],o=E(E({},JSON.parse(JSON.stringify(t.dataset||{}))),e),a={};A.config.parseDate=o.parseDate,A.config.formatDate=o.formatDate,Object.defineProperty(A.config,"enable",{get:function(){return A.config._enable},set:function(t){A.config._enable=Pt(t)}}),Object.defineProperty(A.config,"disable",{get:function(){return A.config._disable},set:function(t){A.config._disable=Pt(t)}});var s="time"===o.mode;if(!o.dateFormat&&(o.enableTime||s)){var l=M.defaultConfig.dateFormat||r.dateFormat;a.dateFormat=o.noCalendar||s?"H:i"+(o.enableSeconds?":S":""):l+" H:i"+(o.enableSeconds?":S":"")}if(o.altInput&&(o.enableTime||s)&&!o.altFormat){var u=M.defaultConfig.altFormat||r.altFormat;a.altFormat=o.noCalendar||s?"h:i"+(o.enableSeconds?":S K":" K"):u+" h:i"+(o.enableSeconds?":S":"")+" K"}Object.defineProperty(A.config,"minDate",{get:function(){return A.config._minDate},set:xt("min")}),Object.defineProperty(A.config,"maxDate",{get:function(){return A.config._maxDate},set:xt("max")});var h=function(t){return function(e){A.config["min"===t?"_minTime":"_maxTime"]=A.parseDate(e,"H:i:S")}};Object.defineProperty(A.config,"minTime",{get:function(){return A.config._minTime},set:h("min")}),Object.defineProperty(A.config,"maxTime",{get:function(){return A.config._maxTime},set:h("max")}),"time"===o.mode&&(A.config.noCalendar=!0,A.config.enableTime=!0),Object.assign(A.config,a,o);for(var d=0;d<i.length;d++)A.config[i[d]]=!0===A.config[i[d]]||"true"===A.config[i[d]];n.filter((function(t){return void 0!==A.config[t]})).forEach((function(t){A.config[t]=c(A.config[t]||[]).map(y)})),A.isMobile=!A.config.disableMobile&&!A.config.inline&&"single"===A.config.mode&&!A.config.disable.length&&!A.config.enable&&!A.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(d=0;d<A.config.plugins.length;d++){var g=A.config.plugins[d](A)||{};for(var f in g)n.indexOf(f)>-1?A.config[f]=c(g[f]).map(y).concat(A.config[f]):"undefined"===typeof o[f]&&(A.config[f]=g[f])}o.altInputClass||(A.config.altInputClass=Qt().className+" "+A.config.altInputClass),Vt("onParseConfig")}function Qt(){return A.config.wrap?t.querySelector("[data-input]"):t}function Ut(){"object"!==typeof A.config.locale&&"undefined"===typeof M.l10ns[A.config.locale]&&A.config.errorHandler(new Error("flatpickr: invalid locale "+A.config.locale)),A.l10n=E(E({},M.l10ns.default),"object"===typeof A.config.locale?A.config.locale:"default"!==A.config.locale?M.l10ns[A.config.locale]:void 0),v.D="("+A.l10n.weekdays.shorthand.join("|")+")",v.l="("+A.l10n.weekdays.longhand.join("|")+")",v.M="("+A.l10n.months.shorthand.join("|")+")",v.F="("+A.l10n.months.longhand.join("|")+")",v.K="("+A.l10n.amPM[0]+"|"+A.l10n.amPM[1]+"|"+A.l10n.amPM[0].toLowerCase()+"|"+A.l10n.amPM[1].toLowerCase()+")";var n=E(E({},e),JSON.parse(JSON.stringify(t.dataset||{})));void 0===n.time_24hr&&void 0===M.defaultConfig.time_24hr&&(A.config.time_24hr=A.l10n.time_24hr),A.formatDate=b(A),A.parseDate=C({config:A.config,l10n:A.l10n})}function _t(t){if("function"!==typeof A.config.position){if(void 0!==A.calendarContainer){Vt("onPreCalendarPosition");var e=t||A._positionElement,n=Array.prototype.reduce.call(A.calendarContainer.children,(function(t,e){return t+e.offsetHeight}),0),r=A.calendarContainer.offsetWidth,i=A.config.position.split(" "),o=i[0],a=i.length>1?i[1]:null,s=e.getBoundingClientRect(),l=window.innerHeight-s.bottom,c="above"===o||"below"!==o&&l<n&&s.top>n,h=window.pageYOffset+s.top+(c?-n-2:e.offsetHeight+2);if(u(A.calendarContainer,"arrowTop",!c),u(A.calendarContainer,"arrowBottom",c),!A.config.inline){var d=window.pageXOffset+s.left,g=!1,f=!1;"center"===a?(d-=(r-s.width)/2,g=!0):"right"===a&&(d-=r-s.width,f=!0),u(A.calendarContainer,"arrowLeft",!g&&!f),u(A.calendarContainer,"arrowCenter",g),u(A.calendarContainer,"arrowRight",f);var p=window.document.body.offsetWidth-(window.pageXOffset+s.right),m=d+r>window.document.body.offsetWidth,w=p+r>window.document.body.offsetWidth;if(u(A.calendarContainer,"rightMost",m),!A.config.static)if(A.calendarContainer.style.top=h+"px",m)if(w){var B=It();if(void 0===B)return;var v=window.document.body.offsetWidth,y=Math.max(0,v/2-r/2),b=".flatpickr-calendar.centerMost:before",C=".flatpickr-calendar.centerMost:after",x=B.cssRules.length,F="{left:"+s.left+"px;right:auto;}";u(A.calendarContainer,"rightMost",!1),u(A.calendarContainer,"centerMost",!0),B.insertRule(b+","+C+F,x),A.calendarContainer.style.left=y+"px",A.calendarContainer.style.right="auto"}else A.calendarContainer.style.left="auto",A.calendarContainer.style.right=p+"px";else A.calendarContainer.style.left=d+"px",A.calendarContainer.style.right="auto"}}}else A.config.position(A,t)}function It(){for(var t=null,e=0;e<document.styleSheets.length;e++){var A=document.styleSheets[e];if(A.cssRules){try{A.cssRules}catch(n){continue}t=A;break}}return null!=t?t:Et()}function Et(){var t=document.createElement("style");return document.head.appendChild(t),t.sheet}function kt(){A.config.noCalendar||A.isMobile||(At(),Yt(),et())}function St(){A._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(A.close,0):A.close()}function Dt(t){t.preventDefault(),t.stopPropagation();var e=function(t){return t.classList&&t.classList.contains("flatpickr-day")&&!t.classList.contains("flatpickr-disabled")&&!t.classList.contains("notAllowed")},n=g(p(t),e);if(void 0!==n){var r=n,i=A.latestSelectedDateObj=new Date(r.dateObj.getTime()),o=(i.getMonth()<A.currentMonth||i.getMonth()>A.currentMonth+A.config.showMonths-1)&&"range"!==A.config.mode;if(A.selectedDateElem=r,"single"===A.config.mode)A.selectedDates=[i];else if("multiple"===A.config.mode){var a=qt(i);a?A.selectedDates.splice(parseInt(a),1):A.selectedDates.push(i)}else"range"===A.config.mode&&(2===A.selectedDates.length&&A.clear(!1,!1),A.latestSelectedDateObj=i,A.selectedDates.push(i),0!==x(i,A.selectedDates[0],!0)&&A.selectedDates.sort((function(t,e){return t.getTime()-e.getTime()})));if(P(),o){var s=A.currentYear!==i.getFullYear();A.currentYear=i.getFullYear(),A.currentMonth=i.getMonth(),s&&(Vt("onYearChange"),At()),Vt("onMonthChange")}if(Yt(),et(),Xt(),o||"range"===A.config.mode||1!==A.config.showMonths?void 0!==A.selectedDateElem&&void 0===A.hourElement&&A.selectedDateElem&&A.selectedDateElem.focus():X(r),void 0!==A.hourElement&&void 0!==A.hourElement&&A.hourElement.focus(),A.config.closeOnSelect){var l="single"===A.config.mode&&!A.config.enableTime,c="range"===A.config.mode&&2===A.selectedDates.length&&!A.config.enableTime;(l||c)&&St()}j()}}A.parseDate=C({config:A.config,l10n:A.l10n}),A._handlers=[],A.pluginElements=[],A.loadedPlugins=[],A._bind=K,A._setHoursFromDate=L,A._positionCalendar=_t,A.changeMonth=ct,A.changeYear=pt,A.clear=ut,A.close=ht,A.onMouseOver=yt,A._createElement=h,A.createDay=z,A.destroy=dt,A.isEnabled=mt,A.jumpToDate=G,A.updateValue=Xt,A.open=Ct,A.redraw=kt,A.set=Mt,A.setDate=Tt,A.toggle=jt;var Ht={locale:[Ut,st],showMonths:[rt,D,at],minDate:[G],maxDate:[G],positionElement:[Nt],clickOpens:[function(){!0===A.config.clickOpens?(K(A._input,"focus",A.open),K(A._input,"click",A.open)):(A._input.removeEventListener("focus",A.open),A._input.removeEventListener("click",A.open))}]};function Mt(t,e){if(null!==t&&"object"===typeof t)for(var r in Object.assign(A.config,t),t)void 0!==Ht[r]&&Ht[r].forEach((function(t){return t()}));else A.config[t]=e,void 0!==Ht[t]?Ht[t].forEach((function(t){return t()})):n.indexOf(t)>-1&&(A.config[t]=c(e));A.redraw(),Xt(!0)}function Ot(t,e){var n=[];if(t instanceof Array)n=t.map((function(t){return A.parseDate(t,e)}));else if(t instanceof Date||"number"===typeof t)n=[A.parseDate(t,e)];else if("string"===typeof t)switch(A.config.mode){case"single":case"time":n=[A.parseDate(t,e)];break;case"multiple":n=t.split(A.config.conjunction).map((function(t){return A.parseDate(t,e)}));break;case"range":n=t.split(A.l10n.rangeSeparator).map((function(t){return A.parseDate(t,e)}));break;default:break}else A.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(t)));A.selectedDates=A.config.allowInvalidPreload?n:n.filter((function(t){return t instanceof Date&&mt(t,!1)})),"range"===A.config.mode&&A.selectedDates.sort((function(t,e){return t.getTime()-e.getTime()}))}function Tt(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=A.config.dateFormat),0!==t&&!t||t instanceof Array&&0===t.length)return A.clear(e);Ot(t,n),A.latestSelectedDateObj=A.selectedDates[A.selectedDates.length-1],A.redraw(),G(void 0,e),L(),0===A.selectedDates.length&&A.clear(!1),Xt(e),e&&Vt("onChange")}function Pt(t){return t.slice().map((function(t){return"string"===typeof t||"number"===typeof t||t instanceof Date?A.parseDate(t,void 0,!0):t&&"object"===typeof t&&t.from&&t.to?{from:A.parseDate(t.from,void 0),to:A.parseDate(t.to,void 0)}:t})).filter((function(t){return t}))}function Lt(){A.selectedDates=[],A.now=A.parseDate(A.config.now)||new Date;var t=A.config.defaultDate||("INPUT"!==A.input.nodeName&&"TEXTAREA"!==A.input.nodeName||!A.input.placeholder||A.input.value!==A.input.placeholder?A.input.value:null);t&&Ot(t,A.config.dateFormat),A._initialDate=A.selectedDates.length>0?A.selectedDates[0]:A.config.minDate&&A.config.minDate.getTime()>A.now.getTime()?A.config.minDate:A.config.maxDate&&A.config.maxDate.getTime()<A.now.getTime()?A.config.maxDate:A.now,A.currentYear=A._initialDate.getFullYear(),A.currentMonth=A._initialDate.getMonth(),A.selectedDates.length>0&&(A.latestSelectedDateObj=A.selectedDates[0]),void 0!==A.config.minTime&&(A.config.minTime=A.parseDate(A.config.minTime,"H:i")),void 0!==A.config.maxTime&&(A.config.maxTime=A.parseDate(A.config.maxTime,"H:i")),A.minDateHasTime=!!A.config.minDate&&(A.config.minDate.getHours()>0||A.config.minDate.getMinutes()>0||A.config.minDate.getSeconds()>0),A.maxDateHasTime=!!A.config.maxDate&&(A.config.maxDate.getHours()>0||A.config.maxDate.getMinutes()>0||A.config.maxDate.getSeconds()>0)}function Rt(){A.input=Qt(),A.input?(A.input._type=A.input.type,A.input.type="text",A.input.classList.add("flatpickr-input"),A._input=A.input,A.config.altInput&&(A.altInput=h(A.input.nodeName,A.config.altInputClass),A._input=A.altInput,A.altInput.placeholder=A.input.placeholder,A.altInput.disabled=A.input.disabled,A.altInput.required=A.input.required,A.altInput.tabIndex=A.input.tabIndex,A.altInput.type="text",A.input.setAttribute("type","hidden"),!A.config.static&&A.input.parentNode&&A.input.parentNode.insertBefore(A.altInput,A.input.nextSibling)),A.config.allowInput||A._input.setAttribute("readonly","readonly"),Nt()):A.config.errorHandler(new Error("Invalid input element specified"))}function Nt(){A._positionElement=A.config.positionElement||A._input}function Kt(){var t=A.config.enableTime?A.config.noCalendar?"time":"datetime-local":"date";A.mobileInput=h("input",A.input.className+" flatpickr-mobile"),A.mobileInput.tabIndex=1,A.mobileInput.type=t,A.mobileInput.disabled=A.input.disabled,A.mobileInput.required=A.input.required,A.mobileInput.placeholder=A.input.placeholder,A.mobileFormatStr="datetime-local"===t?"Y-m-d\\TH:i:S":"date"===t?"Y-m-d":"H:i:S",A.selectedDates.length>0&&(A.mobileInput.defaultValue=A.mobileInput.value=A.formatDate(A.selectedDates[0],A.mobileFormatStr)),A.config.minDate&&(A.mobileInput.min=A.formatDate(A.config.minDate,"Y-m-d")),A.config.maxDate&&(A.mobileInput.max=A.formatDate(A.config.maxDate,"Y-m-d")),A.input.getAttribute("step")&&(A.mobileInput.step=String(A.input.getAttribute("step"))),A.input.type="hidden",void 0!==A.altInput&&(A.altInput.type="hidden");try{A.input.parentNode&&A.input.parentNode.insertBefore(A.mobileInput,A.input.nextSibling)}catch(e){}K(A.mobileInput,"change",(function(t){A.setDate(p(t).value,!1,A.mobileFormatStr),Vt("onChange"),Vt("onClose")}))}function jt(t){if(!0===A.isOpen)return A.close();A.open(t)}function Vt(t,e){if(void 0!==A.config){var n=A.config[t];if(void 0!==n&&n.length>0)for(var r=0;n[r]&&r<n.length;r++)n[r](A.selectedDates,A.input.value,A,e);"onChange"===t&&(A.input.dispatchEvent(Gt("change")),A.input.dispatchEvent(Gt("input")))}}function Gt(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!0),e}function qt(t){for(var e=0;e<A.selectedDates.length;e++){var n=A.selectedDates[e];if(n instanceof Date&&0===x(n,t))return""+e}return!1}function Wt(t){return!("range"!==A.config.mode||A.selectedDates.length<2)&&(x(t,A.selectedDates[0])>=0&&x(t,A.selectedDates[1])<=0)}function Yt(){A.config.noCalendar||A.isMobile||!A.monthNav||(A.yearElements.forEach((function(t,e){var n=new Date(A.currentYear,A.currentMonth,1);n.setMonth(A.currentMonth+e),A.config.showMonths>1||"static"===A.config.monthSelectorType?A.monthElements[e].textContent=w(n.getMonth(),A.config.shorthandCurrentMonth,A.l10n)+" ":A.monthsDropdownContainer.value=n.getMonth().toString(),t.value=n.getFullYear().toString()})),A._hidePrevMonthArrow=void 0!==A.config.minDate&&(A.currentYear===A.config.minDate.getFullYear()?A.currentMonth<=A.config.minDate.getMonth():A.currentYear<A.config.minDate.getFullYear()),A._hideNextMonthArrow=void 0!==A.config.maxDate&&(A.currentYear===A.config.maxDate.getFullYear()?A.currentMonth+1>A.config.maxDate.getMonth():A.currentYear>A.config.maxDate.getFullYear()))}function zt(t){var e=t||(A.config.altInput?A.config.altFormat:A.config.dateFormat);return A.selectedDates.map((function(t){return A.formatDate(t,e)})).filter((function(t,e,n){return"range"!==A.config.mode||A.config.enableTime||n.indexOf(t)===e})).join("range"!==A.config.mode?A.config.conjunction:A.l10n.rangeSeparator)}function Xt(t){void 0===t&&(t=!0),void 0!==A.mobileInput&&A.mobileFormatStr&&(A.mobileInput.value=void 0!==A.latestSelectedDateObj?A.formatDate(A.latestSelectedDateObj,A.mobileFormatStr):""),A.input.value=zt(A.config.dateFormat),void 0!==A.altInput&&(A.altInput.value=zt(A.config.altFormat)),!1!==t&&Vt("onValueUpdate")}function Jt(t){var e=p(t),n=A.prevMonthNav.contains(e),r=A.nextMonthNav.contains(e);n||r?ct(n?-1:1):A.yearElements.indexOf(e)>=0?e.select():e.classList.contains("arrowUp")?A.changeYear(A.currentYear+1):e.classList.contains("arrowDown")&&A.changeYear(A.currentYear-1)}function Zt(t){t.preventDefault();var e="keydown"===t.type,n=p(t),r=n;void 0!==A.amPM&&n===A.amPM&&(A.amPM.textContent=A.l10n.amPM[s(A.amPM.textContent===A.l10n.amPM[0])]);var i=parseFloat(r.getAttribute("min")),o=parseFloat(r.getAttribute("max")),l=parseFloat(r.getAttribute("step")),c=parseInt(r.value,10),u=t.delta||(e?38===t.which?1:-1:0),h=c+l*u;if("undefined"!==typeof r.value&&2===r.value.length){var d=r===A.hourElement,g=r===A.minuteElement;h<i?(h=o+h+s(!d)+(s(d)&&s(!A.amPM)),g&&W(void 0,-1,A.hourElement)):h>o&&(h=r===A.hourElement?h-o-s(!A.amPM):i,g&&W(void 0,1,A.hourElement)),A.amPM&&d&&(1===l?h+c===23:Math.abs(h-c)>l)&&(A.amPM.textContent=A.l10n.amPM[s(A.amPM.textContent===A.l10n.amPM[0])]),r.value=a(h)}}return m(),A}function H(t,e){for(var A=Array.prototype.slice.call(t).filter((function(t){return t instanceof HTMLElement})),n=[],r=0;r<A.length;r++){var i=A[r];try{if(null!==i.getAttribute("data-fp-omit"))continue;void 0!==i._flatpickr&&(i._flatpickr.destroy(),i._flatpickr=void 0),i._flatpickr=D(i,e||{}),n.push(i._flatpickr)}catch(o){console.error(o)}}return 1===n.length?n[0]:n}"undefined"!==typeof HTMLElement&&"undefined"!==typeof HTMLCollection&&"undefined"!==typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(t){return H(this,t)},HTMLElement.prototype.flatpickr=function(t){return H([this],t)});var M=function(t,e){return"string"===typeof t?H(window.document.querySelectorAll(t),e):t instanceof Node?H([t],e):H(t,e)};M.defaultConfig={},M.l10ns={en:E({},o),default:E({},o)},M.localize=function(t){M.l10ns.default=E(E({},M.l10ns.default),t)},M.setDefaults=function(t){M.defaultConfig=E(E({},M.defaultConfig),t)},M.parseDate=C({}),M.formatDate=b({}),M.compareDates=x,"undefined"!==typeof jQuery&&"undefined"!==typeof jQuery.fn&&(jQuery.fn.flatpickr=function(t){return H(this,t)}),Date.prototype.fp_incr=function(t){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"===typeof t?parseInt(t,10):t))},"undefined"!==typeof window&&(window.flatpickr=M);e["default"]=M},"648d":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAcCAYAAAATFf3WAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAALZSURBVHgB7VdNbtNAFP5mxtAFqMSCA4QbpKV7fJOGE5Q0YsHKzopFFZKegOQEqCcgrGmCj+A9IEeCFcQe3nOdEjv+a+JELPpJlhPPzJtv3jx/81mgIlqO35BPcAaNtgCa8WOX/rvBb/Tct6aHHUBU6fTivX9KtyFdjZwuc63D3qz7dIiaUUqQyJ3hhlwFqPb0/HCMGlFIsPXOb6oDfEV+5tKYBwLP3Y45R02QRY3qIWykyAmNHpEw+dIandSQhgzD16gRRmGrQAtJcp3rrrm63cPj/o+GENK+7SMk16uDvRBEkuBCYpTuEEo5VBr2yqNmZqCLb5ZShh3H5F2ZaB2MZ91nIxSgcIvrwvHAt4ncJ/pp4V/JWEKoD9xWNLaQoAa8ROeM+qLsnaYeuQly/e9tKg0HOeC2kwvfymsv3mIdjpGsL5tqbh7+lKOI8I1wO8kZkwQpS6cogVZRiUyy2gozyPVFt3lyQjlQh/D5SmdGs8wAvVQYC+Vo5TUUEmQ9y5CSXEiSIBrjpR5X0cRcnS19SWZdcxSTzJ2IM0fkXqUkaAkX5ZhgU4IMIjkkYT6iTR+vTsgvEQt3SKfHF1pI1lgRrG35GigBucdjJbOwLU76vqMFMuWEF0iZd/LG7oUg47jvt4WIJMnikqCJXc7u9RtzgnvsEMV2i1w0Hi1aUsqWgHxJdUT3SBKWssBvtkdmdbwLs8owMkk9DiwlFRtVElDjVqMyVtOgIr+a5pBbxjKE4sVx7TVWPhd4cS6Ndxc6+IxfauI66z4yMWfsnh1UN6iX03Nz7XyOnIs0zii6dYdYrFuj9PdNRJCds3GAj7rgyFmPBY/072jVPccfVjZlZTvTykQlOhxbxLaerVATOUQEwiutpasCuH8ewMuy9GVxNoDHh4MR2/pmihQfXZcIMZlW1KmsOFuiqUIMBNWdj7vUSQyqvXT9bhSnBHNZY9C6yUUx92L5t8F/T/AvaoUK4hI4/OoAAAAASUVORK5CYII="},"67d7":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFUSURBVHgB7ZZLTsMwEIbH4x4gKhfgCGHbgpQbACcIXSAFVtyA9BaRWJCjpGpVsSNHyAWoskceMw04SkIfkcgDRL6NrYnl+T32PwrAf0dUA9bk1pZS2tACSqk4XT/FewWMz71HHnxoF3+zCubfBFiTexuRXqEDiNSZqcTIBKUkW+tcVsjKFtAgmsDhfd0sF2RXXBZQRChYvK2DEBrk5MIDPqBbjSP0zCBgEDCqs2g89UJjIW4iWe/gV33Dr/p5OxcEM+MabmafZmYrb5bB7Njef6MChBCxUl2MKQ0J8imzOUKSf/iKkarXyGoJSJdZecNSbBVEPETVtXXKXmRwwSDg99rQmt65iNqBptBwaqZKUnpQAKG4RNBXZef/NH8+S+Ed8//CnVcgtslbQcQE4jp9CRITOdaI5tz7fWgR7DP5IQGdJN8noLPkuwR0mryE5TxYMNADH3ARc14ho9yDAAAAAElFTkSuQmCC"},"716d":function(t,e,A){"use strict";"function"!==typeof Object.assign&&(Object.assign=function(t){for(var e=[],A=1;A<arguments.length;A++)e[A-1]=arguments[A];if(!t)throw TypeError("Cannot convert undefined or null to object");for(var n=function(e){e&&Object.keys(e).forEach((function(A){return t[A]=e[A]}))},r=0,i=e;r<i.length;r++){var o=i[r];n(o)}return t})},"845b":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAANCAYAAACpUE5eAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC5SURBVHgBpZNhEcIwDIUTFAwF1AGTAA7mgDnAAg5AAkhAwSyAAupgQ0F466Wjf5Z113f3Xa+73LdmWZk0InLAUoO9PqqUuXgwgC+4M7OnRNZKeZpU2El5utG1UWdN5XGp0PpWR/CgTGHIQis7rWnAxyqMMicZwuTlN1O44oQVuFqF2UJwBv1CXRCyCntjMAPZQ5vq8HNv45S9UZgjmxxR+KTyBAfHHdpusZzof4cdZZwIeYE32r2Mmx/Dea6lr9AnCQAAAABJRU5ErkJggg=="},9530:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAPCAYAAAACsSQRAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADGSURBVHgBnVMLEcMgDIUpqAQcDAlIqAQcbA5aJ8zBJKwONgedg9ZBlrSwci3fvrsHdyR5l5CEs0IAQIOXRM6c80/Ioc0I3JATbBgpBtktsXgo69BGBCTEYZDaiTiQstiJmITIuPhTrYFUjRUn2zMhov4fhuzhHFRJzTk0ft0vqMf7MAPIB9RBu/gLHTg8M15XGiRWhi9yOLzCOjxTbRYhIQH5TvUpAepSl8iG3u+xYA357pBdxBLgfils3VLp2WlbB/vxUfwAXoBYnDIAakwAAAAASUVORK5CYII="},a8c5:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAASCAYAAACJgPRIAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACLSURBVHgB1VHbDYAgDBTjAIwAE7iKG+gIbiArOIKTuAIbwAhuUI8IpMFH+PWS0tJeerSIpgARTXAjTMWULQkL3eE4QdEzXMsaKRYfMC0u6DeSRdGnS9tUoIPmDC9hPe+KvMnThYfRN0yNnO1wrExuiAUP27JcQtg0k9h5q6rpfksSKcDYYVcyF9gHnxaqfMzdYDd+AAAAAElFTkSuQmCC"},aae5:function(t,e,A){(function(e,n){t.exports=n(A("5f60"))})(0,t=>(()=>{"use strict";var e={311:e=>{e.exports=t}},A={};function n(t){var r=A[t];if(void 0!==r)return r.exports;var i=A[t]={exports:{}};return e[t](i,i.exports,n),i.exports}(()=>{n.n=t=>{var e=t&&t.__esModule?()=>t["default"]:()=>t;return n.d(e,{a:e}),e}})(),(()=>{n.d=(t,e)=>{for(var A in e)n.o(e,A)&&!n.o(t,A)&&Object.defineProperty(t,A,{enumerable:!0,get:e[A]})}})(),(()=>{n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e)})();var r={};return(()=>{n.d(r,{default:()=>f});var t=n(311),e=n.n(t),A=["onChange","onClose","onDestroy","onMonthChange","onOpen","onYearChange"],i=["onValueUpdate","onDayCreate","onParseConfig","onReady","onPreCalendarPosition","onKeyDown"];function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var A=arguments[e];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(t[n]=A[n])}return t},o.apply(this,arguments)}var a=function(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},s=function(t){return t instanceof Array?t:[t]},l=function(t){return t&&t.length?t:null},c=function(t){return o({},t)},u=A.concat(i),h=["locale","showMonths"];const d={name:"flat-pickr",render:function(t){return t("input",{attrs:{type:"text","data-input":!0},props:{disabled:this.disabled},on:{input:this.onInput}})},props:{value:{default:null,required:!0,validator:function(t){return null===t||t instanceof Date||"string"===typeof t||t instanceof String||t instanceof Array||"number"===typeof t}},config:{type:Object,default:function(){return{wrap:!1,defaultDate:null}}},events:{type:Array,default:function(){return A}},disabled:{type:Boolean,default:!1}},data:function(){return{fp:null}},mounted:function(){var t=this;if(!this.fp){var A=c(this.config);this.events.forEach((function(n){var r=e().defaultConfig[n]||[],i=function(){for(var e=arguments.length,A=new Array(e),r=0;r<e;r++)A[r]=arguments[r];t.$emit.apply(t,[a(n)].concat(A))};A[n]=s(A[n]||[]).concat(r,i)})),A.defaultDate=this.value||A.defaultDate,this.fp=new(e())(this.getElem(),A),this.fpInput().addEventListener("blur",this.onBlur),this.$on("on-close",this.onClose),this.$watch("disabled",this.watchDisabled,{immediate:!0})}},methods:{getElem:function(){return this.config.wrap?this.$el.parentNode:this.$el},onInput:function(t){var e=this,A=t.target;this.$nextTick((function(){e.$emit("input",l(A.value))}))},fpInput:function(){return this.fp.altInput||this.fp.input},onBlur:function(t){this.$emit("blur",l(t.target.value))},onClose:function(t,e){this.$emit("input",l(e))},watchDisabled:function(t){t?this.fpInput().setAttribute("disabled",t):this.fpInput().removeAttribute("disabled")}},watch:{config:{deep:!0,handler:function(t){var e=this,A=c(t);u.forEach((function(t){delete A[t]})),this.fp.set(A),h.forEach((function(t){"undefined"!==typeof A[t]&&e.fp.set(t,A[t])}))}},value:function(t){t!==l(this.$el.value)&&this.fp&&this.fp.setDate(t,!0)}},beforeDestroy:function(){this.fp&&(this.fpInput().removeEventListener("blur",this.onBlur),this.fp.destroy(),this.fp=null)}};var g=function(t,e){var A="flat-pickr";"string"===typeof e&&(A=e),t.component(A,d)};d.install=g;const f=d})(),r=r["default"],r})())},ba5a:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGwSURBVHgBzVXNVQIxEJ5ED9xkL/o8GTrIVgB2oBWAFYAV+KzAFrACpQKwAtMBe/ApeMmehPfUHWfCj8guOgsXv/eym01m5pu/ZAH+E/yLbfAoo7NfRlhr3UREQ9OBVEdJBclzo5Qa8hwnGEU1l0r0NAhB3l8tPyrQEetJBSk1jcVcadX2Q1uV6IkIKD0teplvNqhSFGcSXREB5b5dsNYUqBYXOYRfAU6BIW8tpeSmSA4BL+nh4BNSeIekqPDKv1qrsmDAzNcM7IaEBhOlVLdrHR06hxn25oYN7A5Dw1J0vejYDZYpCpGg6ocC7gJFnmd4zsZnnyuYH6Y+bB9JQmk5JePJYuFHF/EGC8Asj2Xh1o3nCJYkE4ypD+9BCDJ8Szo544UEgYTaDTF7ACkUuE13k96so+sgRQaNTVu/nGS0IITaU/VSBP7JsnGTtxQOUJJbp9ae+PgEpASwBznvlcIuvmGNO4WLur4/nYbukxHQ3b8acmi/gyN3wYXkTqHRwg/qtJVotAZ5zdJR/JiOY+9H9s8fi3+2HZYlnSFIwDdpOrZ3fKpBCJal0ZX+hLZGEcEXYnO+tK6wqL8AAAAASUVORK5CYII="},c0e9:function(t,e,A){ /*! * html2canvas 1.4.1 <https://html2canvas.hertzen.com> * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com> * Released under MIT License */ (function(e,A){t.exports=A()})(0,(function(){"use strict"; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var t=function(e,A){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var A in e)Object.prototype.hasOwnProperty.call(e,A)&&(t[A]=e[A])},t(e,A)};function e(e,A){if("function"!==typeof A&&null!==A)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function n(){this.constructor=e}t(e,A),e.prototype=null===A?Object.create(A):(n.prototype=A.prototype,new n)}var A=function(){return A=Object.assign||function(t){for(var e,A=1,n=arguments.length;A<n;A++)for(var r in e=arguments[A],e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},A.apply(this,arguments)};function n(t,e,A,n){function r(t){return t instanceof A?t:new A((function(e){e(t)}))}return new(A||(A=Promise))((function(A,i){function o(t){try{s(n.next(t))}catch(Ge){i(Ge)}}function a(t){try{s(n["throw"](t))}catch(Ge){i(Ge)}}function s(t){t.done?A(t.value):r(t.value).then(o,a)}s((n=n.apply(t,e||[])).next())}))}function r(t,e){var A,n,r,i,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(t){return function(e){return s([t,e])}}function s(i){if(A)throw new TypeError("Generator is already executing.");while(o)try{if(A=1,n&&(r=2&i[0]?n["return"]:i[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,n=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(r=o.trys,!(r=r.length>0&&r[r.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){o.label=i[1];break}if(6===i[0]&&o.label<r[1]){o.label=r[1],r=i;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(i);break}r[2]&&o.ops.pop(),o.trys.pop();continue}i=e.call(t,o)}catch(Ge){i=[6,Ge],n=0}finally{A=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}}function i(t,e,A){if(A||2===arguments.length)for(var n,r=0,i=e.length;r<i;r++)!n&&r in e||(n||(n=Array.prototype.slice.call(e,0,r)),n[r]=e[r]);return t.concat(n||e)}for(var o=function(){function t(t,e,A,n){this.left=t,this.top=e,this.width=A,this.height=n}return t.prototype.add=function(e,A,n,r){return new t(this.left+e,this.top+A,this.width+n,this.height+r)},t.fromClientRect=function(e,A){return new t(A.left+e.windowBounds.left,A.top+e.windowBounds.top,A.width,A.height)},t.fromDOMRectList=function(e,A){var n=Array.from(A).find((function(t){return 0!==t.width}));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}(),a=function(t,e){return o.fromClientRect(t,e.getBoundingClientRect())},s=function(t){var e=t.body,A=t.documentElement;if(!e||!A)throw new Error("Unable to get document size");var n=Math.max(Math.max(e.scrollWidth,A.scrollWidth),Math.max(e.offsetWidth,A.offsetWidth),Math.max(e.clientWidth,A.clientWidth)),r=Math.max(Math.max(e.scrollHeight,A.scrollHeight),Math.max(e.offsetHeight,A.offsetHeight),Math.max(e.clientHeight,A.clientHeight));return new o(0,0,n,r)},l=function(t){var e=[],A=0,n=t.length;while(A<n){var r=t.charCodeAt(A++);if(r>=55296&&r<=56319&&A<n){var i=t.charCodeAt(A++);56320===(64512&i)?e.push(((1023&r)<<10)+(1023&i)+65536):(e.push(r),A--)}else e.push(r)}return e},c=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var A=t.length;if(!A)return"";var n=[],r=-1,i="";while(++r<A){var o=t[r];o<=65535?n.push(o):(o-=65536,n.push(55296+(o>>10),o%1024+56320)),(r+1===A||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h="undefined"===typeof Uint8Array?[]:new Uint8Array(256),d=0;d<u.length;d++)h[u.charCodeAt(d)]=d;for(var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f="undefined"===typeof Uint8Array?[]:new Uint8Array(256),p=0;p<g.length;p++)f[g.charCodeAt(p)]=p;for(var m=function(t){var e,A,n,r,i,o=.75*t.length,a=t.length,s=0;"="===t[t.length-1]&&(o--,"="===t[t.length-2]&&o--);var l="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),c=Array.isArray(l)?l:new Uint8Array(l);for(e=0;e<a;e+=4)A=f[t.charCodeAt(e)],n=f[t.charCodeAt(e+1)],r=f[t.charCodeAt(e+2)],i=f[t.charCodeAt(e+3)],c[s++]=A<<2|n>>4,c[s++]=(15&n)<<4|r>>2,c[s++]=(3&r)<<6|63&i;return l},w=function(t){for(var e=t.length,A=[],n=0;n<e;n+=2)A.push(t[n+1]<<8|t[n]);return A},B=function(t){for(var e=t.length,A=[],n=0;n<e;n+=4)A.push(t[n+3]<<24|t[n+2]<<16|t[n+1]<<8|t[n]);return A},v=5,y=11,b=2,C=y-v,x=65536>>v,F=1<<v,Q=F-1,U=1024>>v,_=x+U,I=_,E=32,k=I+E,S=65536>>y,D=1<<C,H=D-1,M=function(t,e,A){return t.slice?t.slice(e,A):new Uint16Array(Array.prototype.slice.call(t,e,A))},O=function(t,e,A){return t.slice?t.slice(e,A):new Uint32Array(Array.prototype.slice.call(t,e,A))},T=function(t,e){var A=m(t),n=Array.isArray(A)?B(A):new Uint32Array(A),r=Array.isArray(A)?w(A):new Uint16Array(A),i=24,o=M(r,i/2,n[4]/2),a=2===n[5]?M(r,(i+n[4])/2):O(n,Math.ceil((i+n[4])/4));return new P(n[0],n[1],n[2],n[3],o,a)},P=function(){function t(t,e,A,n,r,i){this.initialValue=t,this.errorValue=e,this.highStart=A,this.highValueIndex=n,this.index=r,this.data=i}return t.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return e=this.index[t>>v],e=(e<<b)+(t&Q),this.data[e];if(t<=65535)return e=this.index[x+(t-55296>>v)],e=(e<<b)+(t&Q),this.data[e];if(t<this.highStart)return e=k-S+(t>>y),e=this.index[e],e+=t>>v&H,e=this.index[e],e=(e<<b)+(t&Q),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),L="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",R="undefined"===typeof Uint8Array?[]:new Uint8Array(256),N=0;N<L.length;N++)R[L.charCodeAt(N)]=N;var K="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==",j=50,V=1,G=2,q=3,W=4,Y=5,z=7,X=8,J=9,Z=10,$=11,tt=12,et=13,At=14,nt=15,rt=16,it=17,ot=18,at=19,st=20,lt=21,ct=22,ut=23,ht=24,dt=25,gt=26,ft=27,pt=28,mt=29,wt=30,Bt=31,vt=32,yt=33,bt=34,Ct=35,xt=36,Ft=37,Qt=38,Ut=39,_t=40,It=41,Et=42,kt=43,St=[9001,65288],Dt="!",Ht="×",Mt="÷",Ot=T(K),Tt=[wt,xt],Pt=[V,G,q,Y],Lt=[Z,X],Rt=[ft,gt],Nt=Pt.concat(Lt),Kt=[Qt,Ut,_t,bt,Ct],jt=[nt,et],Vt=function(t,e){void 0===e&&(e="strict");var A=[],n=[],r=[];return t.forEach((function(t,i){var o=Ot.get(t);if(o>j?(r.push(!0),o-=j):r.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(t))return n.push(i),A.push(rt);if(o===W||o===$){if(0===i)return n.push(i),A.push(wt);var a=A[i-1];return-1===Nt.indexOf(a)?(n.push(n[i-1]),A.push(a)):(n.push(i),A.push(wt))}return n.push(i),o===Bt?A.push("strict"===e?lt:Ft):o===Et||o===mt?A.push(wt):o===kt?t>=131072&&t<=196605||t>=196608&&t<=262141?A.push(Ft):A.push(wt):void A.push(o)})),[n,A,r]},Gt=function(t,e,A,n){var r=n[A];if(Array.isArray(t)?-1!==t.indexOf(r):t===r){var i=A;while(i<=n.length){i++;var o=n[i];if(o===e)return!0;if(o!==Z)break}}if(r===Z){i=A;while(i>0){i--;var a=n[i];if(Array.isArray(t)?-1!==t.indexOf(a):t===a){var s=A;while(s<=n.length){s++;o=n[s];if(o===e)return!0;if(o!==Z)break}}if(a!==Z)break}}return!1},qt=function(t,e){var A=t;while(A>=0){var n=e[A];if(n!==Z)return n;A--}return 0},Wt=function(t,e,A,n,r){if(0===A[n])return Ht;var i=n-1;if(Array.isArray(r)&&!0===r[i])return Ht;var o=i-1,a=i+1,s=e[i],l=o>=0?e[o]:0,c=e[a];if(s===G&&c===q)return Ht;if(-1!==Pt.indexOf(s))return Dt;if(-1!==Pt.indexOf(c))return Ht;if(-1!==Lt.indexOf(c))return Ht;if(qt(i,e)===X)return Mt;if(Ot.get(t[i])===$)return Ht;if((s===vt||s===yt)&&Ot.get(t[a])===$)return Ht;if(s===z||c===z)return Ht;if(s===J)return Ht;if(-1===[Z,et,nt].indexOf(s)&&c===J)return Ht;if(-1!==[it,ot,at,ht,pt].indexOf(c))return Ht;if(qt(i,e)===ct)return Ht;if(Gt(ut,ct,i,e))return Ht;if(Gt([it,ot],lt,i,e))return Ht;if(Gt(tt,tt,i,e))return Ht;if(s===Z)return Mt;if(s===ut||c===ut)return Ht;if(c===rt||s===rt)return Mt;if(-1!==[et,nt,lt].indexOf(c)||s===At)return Ht;if(l===xt&&-1!==jt.indexOf(s))return Ht;if(s===pt&&c===xt)return Ht;if(c===st)return Ht;if(-1!==Tt.indexOf(c)&&s===dt||-1!==Tt.indexOf(s)&&c===dt)return Ht;if(s===ft&&-1!==[Ft,vt,yt].indexOf(c)||-1!==[Ft,vt,yt].indexOf(s)&&c===gt)return Ht;if(-1!==Tt.indexOf(s)&&-1!==Rt.indexOf(c)||-1!==Rt.indexOf(s)&&-1!==Tt.indexOf(c))return Ht;if(-1!==[ft,gt].indexOf(s)&&(c===dt||-1!==[ct,nt].indexOf(c)&&e[a+1]===dt)||-1!==[ct,nt].indexOf(s)&&c===dt||s===dt&&-1!==[dt,pt,ht].indexOf(c))return Ht;if(-1!==[dt,pt,ht,it,ot].indexOf(c)){var u=i;while(u>=0){var h=e[u];if(h===dt)return Ht;if(-1===[pt,ht].indexOf(h))break;u--}}if(-1!==[ft,gt].indexOf(c)){u=-1!==[it,ot].indexOf(s)?o:i;while(u>=0){h=e[u];if(h===dt)return Ht;if(-1===[pt,ht].indexOf(h))break;u--}}if(Qt===s&&-1!==[Qt,Ut,bt,Ct].indexOf(c)||-1!==[Ut,bt].indexOf(s)&&-1!==[Ut,_t].indexOf(c)||-1!==[_t,Ct].indexOf(s)&&c===_t)return Ht;if(-1!==Kt.indexOf(s)&&-1!==[st,gt].indexOf(c)||-1!==Kt.indexOf(c)&&s===ft)return Ht;if(-1!==Tt.indexOf(s)&&-1!==Tt.indexOf(c))return Ht;if(s===ht&&-1!==Tt.indexOf(c))return Ht;if(-1!==Tt.concat(dt).indexOf(s)&&c===ct&&-1===St.indexOf(t[a])||-1!==Tt.concat(dt).indexOf(c)&&s===ot)return Ht;if(s===It&&c===It){var d=A[i],g=1;while(d>0){if(d--,e[d]!==It)break;g++}if(g%2!==0)return Ht}return s===vt&&c===yt?Ht:Mt},Yt=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var A=Vt(t,e.lineBreak),n=A[0],r=A[1],i=A[2];"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(r=r.map((function(t){return-1!==[dt,wt,Et].indexOf(t)?Ft:t})));var o="keep-all"===e.wordBreak?i.map((function(e,A){return e&&t[A]>=19968&&t[A]<=40959})):void 0;return[n,r,o]},zt=function(){function t(t,e,A,n){this.codePoints=t,this.required=e===Dt,this.start=A,this.end=n}return t.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),Xt=function(t,e){var A=l(t),n=Yt(A,e),r=n[0],i=n[1],o=n[2],a=A.length,s=0,c=0;return{next:function(){if(c>=a)return{done:!0,value:null};var t=Ht;while(c<a&&(t=Wt(A,i,r,++c,o))===Ht);if(t!==Ht||c===a){var e=new zt(A,t,s,c);return s=c,{value:e,done:!1}}return{done:!0,value:null}}}},Jt=1,Zt=2,$t=4,te=8,ee=10,Ae=47,ne=92,re=9,ie=32,oe=34,ae=61,se=35,le=36,ce=37,ue=39,he=40,de=41,ge=95,fe=45,pe=33,me=60,we=62,Be=64,ve=91,ye=93,be=61,Ce=123,xe=63,Fe=125,Qe=124,Ue=126,_e=128,Ie=65533,Ee=42,ke=43,Se=44,De=58,He=59,Me=46,Oe=0,Te=8,Pe=11,Le=14,Re=31,Ne=127,Ke=-1,je=48,Ve=97,Ge=101,qe=102,We=117,Ye=122,ze=65,Xe=69,Je=70,Ze=85,$e=90,tA=function(t){return t>=je&&t<=57},eA=function(t){return t>=55296&&t<=57343},AA=function(t){return tA(t)||t>=ze&&t<=Je||t>=Ve&&t<=qe},nA=function(t){return t>=Ve&&t<=Ye},rA=function(t){return t>=ze&&t<=$e},iA=function(t){return nA(t)||rA(t)},oA=function(t){return t>=_e},aA=function(t){return t===ee||t===re||t===ie},sA=function(t){return iA(t)||oA(t)||t===ge},lA=function(t){return sA(t)||tA(t)||t===fe},cA=function(t){return t>=Oe&&t<=Te||t===Pe||t>=Le&&t<=Re||t===Ne},uA=function(t,e){return t===ne&&e!==ee},hA=function(t,e,A){return t===fe?sA(e)||uA(e,A):!!sA(t)||!(t!==ne||!uA(t,e))},dA=function(t,e,A){return t===ke||t===fe?!!tA(e)||e===Me&&tA(A):tA(t===Me?e:t)},gA=function(t){var e=0,A=1;t[e]!==ke&&t[e]!==fe||(t[e]===fe&&(A=-1),e++);var n=[];while(tA(t[e]))n.push(t[e++]);var r=n.length?parseInt(c.apply(void 0,n),10):0;t[e]===Me&&e++;var i=[];while(tA(t[e]))i.push(t[e++]);var o=i.length,a=o?parseInt(c.apply(void 0,i),10):0;t[e]!==Xe&&t[e]!==Ge||e++;var s=1;t[e]!==ke&&t[e]!==fe||(t[e]===fe&&(s=-1),e++);var l=[];while(tA(t[e]))l.push(t[e++]);var u=l.length?parseInt(c.apply(void 0,l),10):0;return A*(r+a*Math.pow(10,-o))*Math.pow(10,s*u)},fA={type:2},pA={type:3},mA={type:4},wA={type:13},BA={type:8},vA={type:21},yA={type:9},bA={type:10},CA={type:11},xA={type:12},FA={type:14},QA={type:23},UA={type:1},_A={type:25},IA={type:24},EA={type:26},kA={type:27},SA={type:28},DA={type:29},HA={type:31},MA={type:32},OA=function(){function t(){this._value=[]}return t.prototype.write=function(t){this._value=this._value.concat(l(t))},t.prototype.read=function(){var t=[],e=this.consumeToken();while(e!==MA)t.push(e),e=this.consumeToken();return t},t.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case oe:return this.consumeStringToken(oe);case se:var e=this.peekCodePoint(0),A=this.peekCodePoint(1),n=this.peekCodePoint(2);if(lA(e)||uA(A,n)){var r=hA(e,A,n)?Zt:Jt,i=this.consumeName();return{type:5,value:i,flags:r}}break;case le:if(this.peekCodePoint(0)===ae)return this.consumeCodePoint(),wA;break;case ue:return this.consumeStringToken(ue);case he:return fA;case de:return pA;case Ee:if(this.peekCodePoint(0)===ae)return this.consumeCodePoint(),FA;break;case ke:if(dA(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case Se:return mA;case fe:var o=t,a=this.peekCodePoint(0),s=this.peekCodePoint(1);if(dA(o,a,s))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(hA(o,a,s))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(a===fe&&s===we)return this.consumeCodePoint(),this.consumeCodePoint(),IA;break;case Me:if(dA(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case Ae:if(this.peekCodePoint(0)===Ee){this.consumeCodePoint();while(1){var l=this.consumeCodePoint();if(l===Ee&&(l=this.consumeCodePoint(),l===Ae))return this.consumeToken();if(l===Ke)return this.consumeToken()}}break;case De:return EA;case He:return kA;case me:if(this.peekCodePoint(0)===pe&&this.peekCodePoint(1)===fe&&this.peekCodePoint(2)===fe)return this.consumeCodePoint(),this.consumeCodePoint(),_A;break;case Be:var u=this.peekCodePoint(0),h=this.peekCodePoint(1),d=this.peekCodePoint(2);if(hA(u,h,d)){i=this.consumeName();return{type:7,value:i}}break;case ve:return SA;case ne:if(uA(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case ye:return DA;case be:if(this.peekCodePoint(0)===ae)return this.consumeCodePoint(),BA;break;case Ce:return CA;case Fe:return xA;case We:case Ze:var g=this.peekCodePoint(0),f=this.peekCodePoint(1);return g!==ke||!AA(f)&&f!==xe||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case Qe:if(this.peekCodePoint(0)===ae)return this.consumeCodePoint(),yA;if(this.peekCodePoint(0)===Qe)return this.consumeCodePoint(),vA;break;case Ue:if(this.peekCodePoint(0)===ae)return this.consumeCodePoint(),bA;break;case Ke:return MA}return aA(t)?(this.consumeWhiteSpace(),HA):tA(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):sA(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:c(t)}},t.prototype.consumeCodePoint=function(){var t=this._value.shift();return"undefined"===typeof t?-1:t},t.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},t.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},t.prototype.consumeUnicodeRangeToken=function(){var t=[],e=this.consumeCodePoint();while(AA(e)&&t.length<6)t.push(e),e=this.consumeCodePoint();var A=!1;while(e===xe&&t.length<6)t.push(e),e=this.consumeCodePoint(),A=!0;if(A){var n=parseInt(c.apply(void 0,t.map((function(t){return t===xe?je:t}))),16),r=parseInt(c.apply(void 0,t.map((function(t){return t===xe?Je:t}))),16);return{type:30,start:n,end:r}}var i=parseInt(c.apply(void 0,t),16);if(this.peekCodePoint(0)===fe&&AA(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();var o=[];while(AA(e)&&o.length<6)o.push(e),e=this.consumeCodePoint();r=parseInt(c.apply(void 0,o),16);return{type:30,start:i,end:r}}return{type:30,start:i,end:i}},t.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return"url"===t.toLowerCase()&&this.peekCodePoint(0)===he?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===he?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},t.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ke)return{type:22,value:""};var e=this.peekCodePoint(0);if(e===ue||e===oe){var A=this.consumeStringToken(this.consumeCodePoint());return 0===A.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ke||this.peekCodePoint(0)===de)?(this.consumeCodePoint(),{type:22,value:A.value}):(this.consumeBadUrlRemnants(),QA)}while(1){var n=this.consumeCodePoint();if(n===Ke||n===de)return{type:22,value:c.apply(void 0,t)};if(aA(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Ke||this.peekCodePoint(0)===de?(this.consumeCodePoint(),{type:22,value:c.apply(void 0,t)}):(this.consumeBadUrlRemnants(),QA);if(n===oe||n===ue||n===he||cA(n))return this.consumeBadUrlRemnants(),QA;if(n===ne){if(!uA(n,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),QA;t.push(this.consumeEscapedCodePoint())}else t.push(n)}},t.prototype.consumeWhiteSpace=function(){while(aA(this.peekCodePoint(0)))this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){while(1){var t=this.consumeCodePoint();if(t===de||t===Ke)return;uA(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(t){var e=5e4,A="";while(t>0){var n=Math.min(e,t);A+=c.apply(void 0,this._value.splice(0,n)),t-=n}return this._value.shift(),A},t.prototype.consumeStringToken=function(t){var e="",A=0;do{var n=this._value[A];if(n===Ke||void 0===n||n===t)return e+=this.consumeStringSlice(A),{type:0,value:e};if(n===ee)return this._value.splice(0,A),UA;if(n===ne){var r=this._value[A+1];r!==Ke&&void 0!==r&&(r===ee?(e+=this.consumeStringSlice(A),A=-1,this._value.shift()):uA(n,r)&&(e+=this.consumeStringSlice(A),e+=c(this.consumeEscapedCodePoint()),A=-1))}A++}while(1)},t.prototype.consumeNumber=function(){var t=[],e=$t,A=this.peekCodePoint(0);A!==ke&&A!==fe||t.push(this.consumeCodePoint());while(tA(this.peekCodePoint(0)))t.push(this.consumeCodePoint());A=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(A===Me&&tA(n)){t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=te;while(tA(this.peekCodePoint(0)))t.push(this.consumeCodePoint())}A=this.peekCodePoint(0),n=this.peekCodePoint(1);var r=this.peekCodePoint(2);if((A===Xe||A===Ge)&&((n===ke||n===fe)&&tA(r)||tA(n))){t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=te;while(tA(this.peekCodePoint(0)))t.push(this.consumeCodePoint())}return[gA(t),e]},t.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),e=t[0],A=t[1],n=this.peekCodePoint(0),r=this.peekCodePoint(1),i=this.peekCodePoint(2);if(hA(n,r,i)){var o=this.consumeName();return{type:15,number:e,flags:A,unit:o}}return n===ce?(this.consumeCodePoint(),{type:16,number:e,flags:A}):{type:17,number:e,flags:A}},t.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(AA(t)){var e=c(t);while(AA(this.peekCodePoint(0))&&e.length<6)e+=c(this.consumeCodePoint());aA(this.peekCodePoint(0))&&this.consumeCodePoint();var A=parseInt(e,16);return 0===A||eA(A)||A>1114111?Ie:A}return t===Ke?Ie:t},t.prototype.consumeName=function(){var t="";while(1){var e=this.consumeCodePoint();if(lA(e))t+=c(e);else{if(!uA(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),t;t+=c(this.consumeEscapedCodePoint())}}},t}(),TA=function(){function t(t){this._tokens=t}return t.create=function(e){var A=new OA;return A.write(e),new t(A.read())},t.parseValue=function(e){return t.create(e).parseComponentValue()},t.parseValues=function(e){return t.create(e).parseComponentValues()},t.prototype.parseComponentValue=function(){var t=this.consumeToken();while(31===t.type)t=this.consumeToken();if(32===t.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var e=this.consumeComponentValue();do{t=this.consumeToken()}while(31===t.type);if(32===t.type)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){var t=[];while(1){var e=this.consumeComponentValue();if(32===e.type)return t;t.push(e),t.push()}},t.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},t.prototype.consumeSimpleBlock=function(t){var e={type:t,values:[]},A=this.consumeToken();while(1){if(32===A.type||qA(A,t))return e;this.reconsumeToken(A),e.values.push(this.consumeComponentValue()),A=this.consumeToken()}},t.prototype.consumeFunction=function(t){var e={name:t.value,values:[],type:18};while(1){var A=this.consumeToken();if(32===A.type||3===A.type)return e;this.reconsumeToken(A),e.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var t=this._tokens.shift();return"undefined"===typeof t?MA:t},t.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},t}(),PA=function(t){return 15===t.type},LA=function(t){return 17===t.type},RA=function(t){return 20===t.type},NA=function(t){return 0===t.type},KA=function(t,e){return RA(t)&&t.value===e},jA=function(t){return 31!==t.type},VA=function(t){return 31!==t.type&&4!==t.type},GA=function(t){var e=[],A=[];return t.forEach((function(t){if(4===t.type){if(0===A.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(A),void(A=[])}31!==t.type&&A.push(t)})),A.length&&e.push(A),e},qA=function(t,e){return 11===e&&12===t.type||(28===e&&29===t.type||2===e&&3===t.type)},WA=function(t){return 17===t.type||15===t.type},YA=function(t){return 16===t.type||WA(t)},zA=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},XA={type:17,number:0,flags:$t},JA={type:16,number:50,flags:$t},ZA={type:16,number:100,flags:$t},$A=function(t,e,A){var n=t[0],r=t[1];return[tn(n,e),tn("undefined"!==typeof r?r:n,A)]},tn=function(t,e){if(16===t.type)return t.number/100*e;if(PA(t))switch(t.unit){case"rem":case"em":return 16*t.number;case"px":default:return t.number}return t.number},en="deg",An="grad",nn="rad",rn="turn",on={name:"angle",parse:function(t,e){if(15===e.type)switch(e.unit){case en:return Math.PI*e.number/180;case An:return Math.PI/200*e.number;case nn:return e.number;case rn:return 2*Math.PI*e.number}throw new Error("Unsupported angle type")}},an=function(t){return 15===t.type&&(t.unit===en||t.unit===An||t.unit===nn||t.unit===rn)},sn=function(t){var e=t.filter(RA).map((function(t){return t.value})).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[XA,XA];case"to top":case"bottom":return ln(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[XA,ZA];case"to right":case"left":return ln(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[ZA,ZA];case"to bottom":case"top":return ln(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[ZA,XA];case"to left":case"right":return ln(270)}return 0},ln=function(t){return Math.PI*t/180},cn={name:"color",parse:function(t,e){if(18===e.type){var A=wn[e.name];if("undefined"===typeof A)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return A(t,e.values)}if(5===e.type){if(3===e.value.length){var n=e.value.substring(0,1),r=e.value.substring(1,2),i=e.value.substring(2,3);return dn(parseInt(n+n,16),parseInt(r+r,16),parseInt(i+i,16),1)}if(4===e.value.length){n=e.value.substring(0,1),r=e.value.substring(1,2),i=e.value.substring(2,3);var o=e.value.substring(3,4);return dn(parseInt(n+n,16),parseInt(r+r,16),parseInt(i+i,16),parseInt(o+o,16)/255)}if(6===e.value.length){n=e.value.substring(0,2),r=e.value.substring(2,4),i=e.value.substring(4,6);return dn(parseInt(n,16),parseInt(r,16),parseInt(i,16),1)}if(8===e.value.length){n=e.value.substring(0,2),r=e.value.substring(2,4),i=e.value.substring(4,6),o=e.value.substring(6,8);return dn(parseInt(n,16),parseInt(r,16),parseInt(i,16),parseInt(o,16)/255)}}if(20===e.type){var a=vn[e.value.toUpperCase()];if("undefined"!==typeof a)return a}return vn.TRANSPARENT}},un=function(t){return 0===(255&t)},hn=function(t){var e=255&t,A=255&t>>8,n=255&t>>16,r=255&t>>24;return e<255?"rgba("+r+","+n+","+A+","+e/255+")":"rgb("+r+","+n+","+A+")"},dn=function(t,e,A,n){return(t<<24|e<<16|A<<8|Math.round(255*n)<<0)>>>0},gn=function(t,e){if(17===t.type)return t.number;if(16===t.type){var A=3===e?1:255;return 3===e?t.number/100*A:Math.round(t.number/100*A)}return 0},fn=function(t,e){var A=e.filter(VA);if(3===A.length){var n=A.map(gn),r=n[0],i=n[1],o=n[2];return dn(r,i,o,1)}if(4===A.length){var a=A.map(gn),s=(r=a[0],i=a[1],o=a[2],a[3]);return dn(r,i,o,s)}return 0};function pn(t,e,A){return A<0&&(A+=1),A>=1&&(A-=1),A<1/6?(e-t)*A*6+t:A<.5?e:A<2/3?6*(e-t)*(2/3-A)+t:t}var mn=function(t,e){var A=e.filter(VA),n=A[0],r=A[1],i=A[2],o=A[3],a=(17===n.type?ln(n.number):on.parse(t,n))/(2*Math.PI),s=YA(r)?r.number/100:0,l=YA(i)?i.number/100:0,c="undefined"!==typeof o&&YA(o)?tn(o,1):1;if(0===s)return dn(255*l,255*l,255*l,1);var u=l<=.5?l*(s+1):l+s-l*s,h=2*l-u,d=pn(h,u,a+1/3),g=pn(h,u,a),f=pn(h,u,a-1/3);return dn(255*d,255*g,255*f,c)},wn={hsl:mn,hsla:mn,rgb:fn,rgba:fn},Bn=function(t,e){return cn.parse(t,TA.create(e).parseComponentValue())},vn={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},yn={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map((function(t){if(RA(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},bn={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Cn=function(t,e){var A=cn.parse(t,e[0]),n=e[1];return n&&YA(n)?{color:A,stop:n}:{color:A,stop:null}},xn=function(t,e){var A=t[0],n=t[t.length-1];null===A.stop&&(A.stop=XA),null===n.stop&&(n.stop=ZA);for(var r=[],i=0,o=0;o<t.length;o++){var a=t[o].stop;if(null!==a){var s=tn(a,e);s>i?r.push(s):r.push(i),i=s}else r.push(null)}var l=null;for(o=0;o<r.length;o++){var c=r[o];if(null===c)null===l&&(l=o);else if(null!==l){for(var u=o-l,h=r[l-1],d=(c-h)/(u+1),g=1;g<=u;g++)r[l+g-1]=d*g;l=null}}return t.map((function(t,A){var n=t.color;return{color:n,stop:Math.max(Math.min(1,r[A]/e),0)}}))},Fn=function(t,e,A){var n=e/2,r=A/2,i=tn(t[0],e)-n,o=r-tn(t[1],A);return(Math.atan2(o,i)+2*Math.PI)%(2*Math.PI)},Qn=function(t,e,A){var n="number"===typeof t?t:Fn(t,e,A),r=Math.abs(e*Math.sin(n))+Math.abs(A*Math.cos(n)),i=e/2,o=A/2,a=r/2,s=Math.sin(n-Math.PI/2)*a,l=Math.cos(n-Math.PI/2)*a;return[r,i-l,i+l,o-s,o+s]},Un=function(t,e){return Math.sqrt(t*t+e*e)},_n=function(t,e,A,n,r){var i=[[0,0],[0,e],[t,0],[t,e]];return i.reduce((function(t,e){var i=e[0],o=e[1],a=Un(A-i,n-o);return(r?a<t.optimumDistance:a>t.optimumDistance)?{optimumCorner:e,optimumDistance:a}:t}),{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner},In=function(t,e,A,n,r){var i=0,o=0;switch(t.size){case 0:0===t.shape?i=o=Math.min(Math.abs(e),Math.abs(e-n),Math.abs(A),Math.abs(A-r)):1===t.shape&&(i=Math.min(Math.abs(e),Math.abs(e-n)),o=Math.min(Math.abs(A),Math.abs(A-r)));break;case 2:if(0===t.shape)i=o=Math.min(Un(e,A),Un(e,A-r),Un(e-n,A),Un(e-n,A-r));else if(1===t.shape){var a=Math.min(Math.abs(A),Math.abs(A-r))/Math.min(Math.abs(e),Math.abs(e-n)),s=_n(n,r,e,A,!0),l=s[0],c=s[1];i=Un(l-e,(c-A)/a),o=a*i}break;case 1:0===t.shape?i=o=Math.max(Math.abs(e),Math.abs(e-n),Math.abs(A),Math.abs(A-r)):1===t.shape&&(i=Math.max(Math.abs(e),Math.abs(e-n)),o=Math.max(Math.abs(A),Math.abs(A-r)));break;case 3:if(0===t.shape)i=o=Math.max(Un(e,A),Un(e,A-r),Un(e-n,A),Un(e-n,A-r));else if(1===t.shape){a=Math.max(Math.abs(A),Math.abs(A-r))/Math.max(Math.abs(e),Math.abs(e-n));var u=_n(n,r,e,A,!1);l=u[0],c=u[1];i=Un(l-e,(c-A)/a),o=a*i}break}return Array.isArray(t.size)&&(i=tn(t.size[0],n),o=2===t.size.length?tn(t.size[1],r):i),[i,o]},En=function(t,e){var A=ln(180),n=[];return GA(e).forEach((function(e,r){if(0===r){var i=e[0];if(20===i.type&&"to"===i.value)return void(A=sn(e));if(an(i))return void(A=on.parse(t,i))}var o=Cn(t,e);n.push(o)})),{angle:A,stops:n,type:1}},kn=function(t,e){var A=ln(180),n=[];return GA(e).forEach((function(e,r){if(0===r){var i=e[0];if(20===i.type&&-1!==["top","left","right","bottom"].indexOf(i.value))return void(A=sn(e));if(an(i))return void(A=(on.parse(t,i)+ln(270))%ln(360))}var o=Cn(t,e);n.push(o)})),{angle:A,stops:n,type:1}},Sn=function(t,e){var A=ln(180),n=[],r=1,i=0,o=3,a=[];return GA(e).forEach((function(e,A){var i=e[0];if(0===A){if(RA(i)&&"linear"===i.value)return void(r=1);if(RA(i)&&"radial"===i.value)return void(r=2)}if(18===i.type)if("from"===i.name){var o=cn.parse(t,i.values[0]);n.push({stop:XA,color:o})}else if("to"===i.name){o=cn.parse(t,i.values[0]);n.push({stop:ZA,color:o})}else if("color-stop"===i.name){var a=i.values.filter(VA);if(2===a.length){o=cn.parse(t,a[1]);var s=a[0];LA(s)&&n.push({stop:{type:16,number:100*s.number,flags:s.flags},color:o})}}})),1===r?{angle:(A+ln(180))%ln(360),stops:n,type:r}:{size:o,shape:i,stops:n,position:a,type:r}},Dn="closest-side",Hn="farthest-side",Mn="closest-corner",On="farthest-corner",Tn="circle",Pn="ellipse",Ln="cover",Rn="contain",Nn=function(t,e){var A=0,n=3,r=[],i=[];return GA(e).forEach((function(e,o){var a=!0;if(0===o){var s=!1;a=e.reduce((function(t,e){if(s)if(RA(e))switch(e.value){case"center":return i.push(JA),t;case"top":case"left":return i.push(XA),t;case"right":case"bottom":return i.push(ZA),t}else(YA(e)||WA(e))&&i.push(e);else if(RA(e))switch(e.value){case Tn:return A=0,!1;case Pn:return A=1,!1;case"at":return s=!0,!1;case Dn:return n=0,!1;case Ln:case Hn:return n=1,!1;case Rn:case Mn:return n=2,!1;case On:return n=3,!1}else if(WA(e)||YA(e))return Array.isArray(n)||(n=[]),n.push(e),!1;return t}),a)}if(a){var l=Cn(t,e);r.push(l)}})),{size:n,shape:A,stops:r,position:i,type:2}},Kn=function(t,e){var A=0,n=3,r=[],i=[];return GA(e).forEach((function(e,o){var a=!0;if(0===o?a=e.reduce((function(t,e){if(RA(e))switch(e.value){case"center":return i.push(JA),!1;case"top":case"left":return i.push(XA),!1;case"right":case"bottom":return i.push(ZA),!1}else if(YA(e)||WA(e))return i.push(e),!1;return t}),a):1===o&&(a=e.reduce((function(t,e){if(RA(e))switch(e.value){case Tn:return A=0,!1;case Pn:return A=1,!1;case Rn:case Dn:return n=0,!1;case Hn:return n=1,!1;case Mn:return n=2,!1;case Ln:case On:return n=3,!1}else if(WA(e)||YA(e))return Array.isArray(n)||(n=[]),n.push(e),!1;return t}),a)),a){var s=Cn(t,e);r.push(s)}})),{size:n,shape:A,stops:r,position:i,type:2}},jn=function(t){return 1===t.type},Vn=function(t){return 2===t.type},Gn={name:"image",parse:function(t,e){if(22===e.type){var A={url:e.value,type:0};return t.cache.addImage(e.value),A}if(18===e.type){var n=Yn[e.name];if("undefined"===typeof n)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 qn(t){return!(20===t.type&&"none"===t.value)&&(18!==t.type||!!Yn[t.name])}var Wn,Yn={"linear-gradient":En,"-moz-linear-gradient":kn,"-ms-linear-gradient":kn,"-o-linear-gradient":kn,"-webkit-linear-gradient":kn,"radial-gradient":Nn,"-moz-radial-gradient":Kn,"-ms-radial-gradient":Kn,"-o-radial-gradient":Kn,"-webkit-radial-gradient":Kn,"-webkit-gradient":Sn},zn={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(0===e.length)return[];var A=e[0];return 20===A.type&&"none"===A.value?[]:e.filter((function(t){return VA(t)&&qn(t)})).map((function(e){return Gn.parse(t,e)}))}},Xn={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map((function(t){if(RA(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Jn={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,e){return GA(e).map((function(t){return t.filter(YA)})).map(zA)}},Zn={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,e){return GA(e).map((function(t){return t.filter(RA).map((function(t){return t.value})).join(" ")})).map($n)}},$n=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}};(function(t){t["AUTO"]="auto",t["CONTAIN"]="contain",t["COVER"]="cover"})(Wn||(Wn={}));var tr,er={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,e){return GA(e).map((function(t){return t.filter(Ar)}))}},Ar=function(t){return RA(t)||YA(t)},nr=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},rr=nr("top"),ir=nr("right"),or=nr("bottom"),ar=nr("left"),sr=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(t,e){return zA(e.filter(YA))}}},lr=sr("top-left"),cr=sr("top-right"),ur=sr("bottom-right"),hr=sr("bottom-left"),dr=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},gr=dr("top"),fr=dr("right"),pr=dr("bottom"),mr=dr("left"),wr=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return PA(e)?e.number:0}}},Br=wr("top"),vr=wr("right"),yr=wr("bottom"),br=wr("left"),Cr={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},xr={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},Fr={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,e){return e.filter(RA).reduce((function(t,e){return t|Qr(e.value)}),0)}},Qr=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},Ur={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}},_r={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(t,e){return 20===e.type&&"normal"===e.value?0:17===e.type||15===e.type?e.number:0}};(function(t){t["NORMAL"]="normal",t["STRICT"]="strict"})(tr||(tr={}));var Ir,Er={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"strict":return tr.STRICT;case"normal":default:return tr.NORMAL}}},kr={name:"line-height",initialValue:"normal",prefix:!1,type:4},Sr=function(t,e){return RA(t)&&"normal"===t.value?1.2*e:17===t.type?e*t.number:YA(t)?tn(t,e):e},Dr={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,e){return 20===e.type&&"none"===e.value?null:Gn.parse(t,e)}},Hr={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}}},Mr={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}}},Or=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},Tr=Or("top"),Pr=Or("right"),Lr=Or("bottom"),Rr=Or("left"),Nr={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,e){return e.filter(RA).map((function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}}))}},Kr={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"}}},jr=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Vr=jr("top"),Gr=jr("right"),qr=jr("bottom"),Wr=jr("left"),Yr={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}}},zr={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}},Xr={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return 1===e.length&&KA(e[0],"none")?[]:GA(e).map((function(e){for(var A={color:vn.TRANSPARENT,offsetX:XA,offsetY:XA,blur:XA},n=0,r=0;r<e.length;r++){var i=e[r];WA(i)?(0===n?A.offsetX=i:1===n?A.offsetY=i:A.blur=i,n++):A.color=cn.parse(t,i)}return A}))}},Jr={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}},Zr={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(t,e){if(20===e.type&&"none"===e.value)return null;if(18===e.type){var A=ei[e.name];if("undefined"===typeof A)throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return A(e.values)}return null}},$r=function(t){var e=t.filter((function(t){return 17===t.type})).map((function(t){return t.number}));return 6===e.length?e:null},ti=function(t){var e=t.filter((function(t){return 17===t.type})).map((function(t){return t.number})),A=e[0],n=e[1];e[2],e[3];var r=e[4],i=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var o=e[12],a=e[13];return e[14],e[15],16===e.length?[A,n,r,i,o,a]:null},ei={matrix:$r,matrix3d:ti},Ai={type:16,number:50,flags:$t},ni=[Ai,Ai],ri={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,e){var A=e.filter(YA);return 2!==A.length?ni:[A[0],A[1]]}},ii={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}}};(function(t){t["NORMAL"]="normal",t["BREAK_ALL"]="break-all",t["KEEP_ALL"]="keep-all"})(Ir||(Ir={}));for(var oi={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-all":return Ir.BREAK_ALL;case"keep-all":return Ir.KEEP_ALL;case"normal":default:return Ir.NORMAL}}},ai={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,e){if(20===e.type)return{auto:!0,order:0};if(LA(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},si={name:"time",parse:function(t,e){if(15===e.type)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},li={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,e){return LA(e)?e.number:1}},ci={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ui={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,e){return e.filter(RA).map((function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(t){return 0!==t}))}},hi={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(t,e){var A=[],n=[];return e.forEach((function(t){switch(t.type){case 20:case 0:A.push(t.value);break;case 17:A.push(t.number.toString());break;case 4:n.push(A.join(" ")),A.length=0;break}})),A.length&&n.push(A.join(" ")),n.map((function(t){return-1===t.indexOf(" ")?t:"'"+t+"'"}))}},di={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},gi={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,e){if(LA(e))return e.number;if(RA(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},fi={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.filter(RA).map((function(t){return t.value}))}},pi={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"}}},mi=function(t,e){return 0!==(t&e)},wi={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(0===e.length)return[];var A=e[0];return 20===A.type&&"none"===A.value?[]:e}},Bi={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(0===e.length)return null;var A=e[0];if(20===A.type&&"none"===A.value)return null;for(var n=[],r=e.filter(jA),i=0;i<r.length;i++){var o=r[i],a=r[i+1];if(20===o.type){var s=a&&LA(a)?a.number:1;n.push({counter:o.value,increment:s})}}return n}},vi={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(0===e.length)return[];for(var A=[],n=e.filter(jA),r=0;r<n.length;r++){var i=n[r],o=n[r+1];if(RA(i)&&"none"!==i.value){var a=o&&LA(o)?o.number:0;A.push({counter:i.value,reset:a})}}return A}},yi={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(t,e){return e.filter(PA).map((function(e){return si.parse(t,e)}))}},bi={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(0===e.length)return null;var A=e[0];if(20===A.type&&"none"===A.value)return null;var n=[],r=e.filter(NA);if(r.length%2!==0)return null;for(var i=0;i<r.length;i+=2){var o=r[i].value,a=r[i+1].value;n.push({open:o,close:a})}return n}},Ci=function(t,e,A){if(!t)return"";var n=t[Math.min(e,t.length-1)];return n?A?n.open:n.close:""},xi={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return 1===e.length&&KA(e[0],"none")?[]:GA(e).map((function(e){for(var A={color:255,offsetX:XA,offsetY:XA,blur:XA,spread:XA,inset:!1},n=0,r=0;r<e.length;r++){var i=e[r];KA(i,"inset")?A.inset=!0:WA(i)?(0===n?A.offsetX=i:1===n?A.offsetY=i:2===n?A.blur=i:A.spread=i,n++):A.color=cn.parse(t,i)}return A}))}},Fi={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(t,e){var A=[0,1,2],n=[];return e.filter(RA).forEach((function(t){switch(t.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2);break}})),A.forEach((function(t){-1===n.indexOf(t)&&n.push(t)})),n}},Qi={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Ui={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return PA(e)?e.number:0}},_i=function(){function t(t,e){var A,n;this.animationDuration=ki(t,yi,e.animationDuration),this.backgroundClip=ki(t,yn,e.backgroundClip),this.backgroundColor=ki(t,bn,e.backgroundColor),this.backgroundImage=ki(t,zn,e.backgroundImage),this.backgroundOrigin=ki(t,Xn,e.backgroundOrigin),this.backgroundPosition=ki(t,Jn,e.backgroundPosition),this.backgroundRepeat=ki(t,Zn,e.backgroundRepeat),this.backgroundSize=ki(t,er,e.backgroundSize),this.borderTopColor=ki(t,rr,e.borderTopColor),this.borderRightColor=ki(t,ir,e.borderRightColor),this.borderBottomColor=ki(t,or,e.borderBottomColor),this.borderLeftColor=ki(t,ar,e.borderLeftColor),this.borderTopLeftRadius=ki(t,lr,e.borderTopLeftRadius),this.borderTopRightRadius=ki(t,cr,e.borderTopRightRadius),this.borderBottomRightRadius=ki(t,ur,e.borderBottomRightRadius),this.borderBottomLeftRadius=ki(t,hr,e.borderBottomLeftRadius),this.borderTopStyle=ki(t,gr,e.borderTopStyle),this.borderRightStyle=ki(t,fr,e.borderRightStyle),this.borderBottomStyle=ki(t,pr,e.borderBottomStyle),this.borderLeftStyle=ki(t,mr,e.borderLeftStyle),this.borderTopWidth=ki(t,Br,e.borderTopWidth),this.borderRightWidth=ki(t,vr,e.borderRightWidth),this.borderBottomWidth=ki(t,yr,e.borderBottomWidth),this.borderLeftWidth=ki(t,br,e.borderLeftWidth),this.boxShadow=ki(t,xi,e.boxShadow),this.color=ki(t,Cr,e.color),this.direction=ki(t,xr,e.direction),this.display=ki(t,Fr,e.display),this.float=ki(t,Ur,e.cssFloat),this.fontFamily=ki(t,hi,e.fontFamily),this.fontSize=ki(t,di,e.fontSize),this.fontStyle=ki(t,pi,e.fontStyle),this.fontVariant=ki(t,fi,e.fontVariant),this.fontWeight=ki(t,gi,e.fontWeight),this.letterSpacing=ki(t,_r,e.letterSpacing),this.lineBreak=ki(t,Er,e.lineBreak),this.lineHeight=ki(t,kr,e.lineHeight),this.listStyleImage=ki(t,Dr,e.listStyleImage),this.listStylePosition=ki(t,Hr,e.listStylePosition),this.listStyleType=ki(t,Mr,e.listStyleType),this.marginTop=ki(t,Tr,e.marginTop),this.marginRight=ki(t,Pr,e.marginRight),this.marginBottom=ki(t,Lr,e.marginBottom),this.marginLeft=ki(t,Rr,e.marginLeft),this.opacity=ki(t,li,e.opacity);var r=ki(t,Nr,e.overflow);this.overflowX=r[0],this.overflowY=r[r.length>1?1:0],this.overflowWrap=ki(t,Kr,e.overflowWrap),this.paddingTop=ki(t,Vr,e.paddingTop),this.paddingRight=ki(t,Gr,e.paddingRight),this.paddingBottom=ki(t,qr,e.paddingBottom),this.paddingLeft=ki(t,Wr,e.paddingLeft),this.paintOrder=ki(t,Fi,e.paintOrder),this.position=ki(t,zr,e.position),this.textAlign=ki(t,Yr,e.textAlign),this.textDecorationColor=ki(t,ci,null!==(A=e.textDecorationColor)&&void 0!==A?A:e.color),this.textDecorationLine=ki(t,ui,null!==(n=e.textDecorationLine)&&void 0!==n?n:e.textDecoration),this.textShadow=ki(t,Xr,e.textShadow),this.textTransform=ki(t,Jr,e.textTransform),this.transform=ki(t,Zr,e.transform),this.transformOrigin=ki(t,ri,e.transformOrigin),this.visibility=ki(t,ii,e.visibility),this.webkitTextStrokeColor=ki(t,Qi,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=ki(t,Ui,e.webkitTextStrokeWidth),this.wordBreak=ki(t,oi,e.wordBreak),this.zIndex=ki(t,ai,e.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},t.prototype.isTransparent=function(){return un(this.backgroundColor)},t.prototype.isTransformed=function(){return null!==this.transform},t.prototype.isPositioned=function(){return 0!==this.position},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return 0!==this.float},t.prototype.isInlineLevel=function(){return mi(this.display,4)||mi(this.display,33554432)||mi(this.display,268435456)||mi(this.display,536870912)||mi(this.display,67108864)||mi(this.display,134217728)},t}(),Ii=function(){function t(t,e){this.content=ki(t,wi,e.content),this.quotes=ki(t,bi,e.quotes)}return t}(),Ei=function(){function t(t,e){this.counterIncrement=ki(t,Bi,e.counterIncrement),this.counterReset=ki(t,vi,e.counterReset)}return t}(),ki=function(t,e,A){var n=new OA,r=null!==A&&"undefined"!==typeof A?A.toString():e.initialValue;n.write(r);var i=new TA(n.read());switch(e.type){case 2:var o=i.parseComponentValue();return e.parse(t,RA(o)?o.value:e.initialValue);case 0:return e.parse(t,i.parseComponentValue());case 1:return e.parse(t,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(e.format){case"angle":return on.parse(t,i.parseComponentValue());case"color":return cn.parse(t,i.parseComponentValue());case"image":return Gn.parse(t,i.parseComponentValue());case"length":var a=i.parseComponentValue();return WA(a)?a:XA;case"length-percentage":var s=i.parseComponentValue();return YA(s)?s:XA;case"time":return si.parse(t,i.parseComponentValue())}break}},Si="data-html2canvas-debug",Di=function(t){var e=t.getAttribute(Si);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Hi=function(t,e){var A=Di(t);return 1===A||e===A},Mi=function(){function t(t,e){this.context=t,this.textNodes=[],this.elements=[],this.flags=0,Hi(e,3),this.styles=new _i(t,window.getComputedStyle(e,null)),Ea(e)&&(this.styles.animationDuration.some((function(t){return t>0}))&&(e.style.animationDuration="0s"),null!==this.styles.transform&&(e.style.transform="none")),this.bounds=a(this.context,e),Hi(e,4)&&(this.flags|=16)}return t}(),Oi="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Ti="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Pi="undefined"===typeof Uint8Array?[]:new Uint8Array(256),Li=0;Li<Ti.length;Li++)Pi[Ti.charCodeAt(Li)]=Li;for(var Ri=function(t){var e,A,n,r,i,o=.75*t.length,a=t.length,s=0;"="===t[t.length-1]&&(o--,"="===t[t.length-2]&&o--);var l="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),c=Array.isArray(l)?l:new Uint8Array(l);for(e=0;e<a;e+=4)A=Pi[t.charCodeAt(e)],n=Pi[t.charCodeAt(e+1)],r=Pi[t.charCodeAt(e+2)],i=Pi[t.charCodeAt(e+3)],c[s++]=A<<2|n>>4,c[s++]=(15&n)<<4|r>>2,c[s++]=(3&r)<<6|63&i;return l},Ni=function(t){for(var e=t.length,A=[],n=0;n<e;n+=2)A.push(t[n+1]<<8|t[n]);return A},Ki=function(t){for(var e=t.length,A=[],n=0;n<e;n+=4)A.push(t[n+3]<<24|t[n+2]<<16|t[n+1]<<8|t[n]);return A},ji=5,Vi=11,Gi=2,qi=Vi-ji,Wi=65536>>ji,Yi=1<<ji,zi=Yi-1,Xi=1024>>ji,Ji=Wi+Xi,Zi=Ji,$i=32,to=Zi+$i,eo=65536>>Vi,Ao=1<<qi,no=Ao-1,ro=function(t,e,A){return t.slice?t.slice(e,A):new Uint16Array(Array.prototype.slice.call(t,e,A))},io=function(t,e,A){return t.slice?t.slice(e,A):new Uint32Array(Array.prototype.slice.call(t,e,A))},oo=function(t,e){var A=Ri(t),n=Array.isArray(A)?Ki(A):new Uint32Array(A),r=Array.isArray(A)?Ni(A):new Uint16Array(A),i=24,o=ro(r,i/2,n[4]/2),a=2===n[5]?ro(r,(i+n[4])/2):io(n,Math.ceil((i+n[4])/4));return new ao(n[0],n[1],n[2],n[3],o,a)},ao=function(){function t(t,e,A,n,r,i){this.initialValue=t,this.errorValue=e,this.highStart=A,this.highValueIndex=n,this.index=r,this.data=i}return t.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return e=this.index[t>>ji],e=(e<<Gi)+(t&zi),this.data[e];if(t<=65535)return e=this.index[Wi+(t-55296>>ji)],e=(e<<Gi)+(t&zi),this.data[e];if(t<this.highStart)return e=to-eo+(t>>Vi),e=this.index[e],e+=t>>ji&no,e=this.index[e],e=(e<<Gi)+(t&zi),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),so="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lo="undefined"===typeof Uint8Array?[]:new Uint8Array(256),co=0;co<so.length;co++)lo[so.charCodeAt(co)]=co;var uo,ho=1,go=2,fo=3,po=4,mo=5,wo=7,Bo=8,vo=9,yo=10,bo=11,Co=12,xo=13,Fo=14,Qo=15,Uo=function(t){var e=[],A=0,n=t.length;while(A<n){var r=t.charCodeAt(A++);if(r>=55296&&r<=56319&&A<n){var i=t.charCodeAt(A++);56320===(64512&i)?e.push(((1023&r)<<10)+(1023&i)+65536):(e.push(r),A--)}else e.push(r)}return e},_o=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var A=t.length;if(!A)return"";var n=[],r=-1,i="";while(++r<A){var o=t[r];o<=65535?n.push(o):(o-=65536,n.push(55296+(o>>10),o%1024+56320)),(r+1===A||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},Io=oo(Oi),Eo="×",ko="÷",So=function(t){return Io.get(t)},Do=function(t,e,A){var n=A-2,r=e[n],i=e[A-1],o=e[A];if(i===go&&o===fo)return Eo;if(i===go||i===fo||i===po)return ko;if(o===go||o===fo||o===po)return ko;if(i===Bo&&-1!==[Bo,vo,bo,Co].indexOf(o))return Eo;if((i===bo||i===vo)&&(o===vo||o===yo))return Eo;if((i===Co||i===yo)&&o===yo)return Eo;if(o===xo||o===mo)return Eo;if(o===wo)return Eo;if(i===ho)return Eo;if(i===xo&&o===Fo){while(r===mo)r=e[--n];if(r===Fo)return Eo}if(i===Qo&&o===Qo){var a=0;while(r===Qo)a++,r=e[--n];if(a%2===0)return Eo}return ko},Ho=function(t){var e=Uo(t),A=e.length,n=0,r=0,i=e.map(So);return{next:function(){if(n>=A)return{done:!0,value:null};var t=Eo;while(n<A&&(t=Do(e,i,++n))===Eo);if(t!==Eo||n===A){var o=_o.apply(null,e.slice(r,n));return r=n,{value:o,done:!1}}return{done:!0,value:null}}}},Mo=function(t){var e,A=Ho(t),n=[];while(!(e=A.next()).done)e.value&&n.push(e.value.slice());return n},Oo=function(t){var e=123;if(t.createRange){var A=t.createRange();if(A.getBoundingClientRect){var n=t.createElement("boundtest");n.style.height=e+"px",n.style.display="block",t.body.appendChild(n),A.selectNode(n);var r=A.getBoundingClientRect(),i=Math.round(r.height);if(t.body.removeChild(n),i===e)return!0}}return!1},To=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 A=t.createRange();e.innerHTML="function"===typeof"".repeat?"👨".repeat(10):"";var n=e.firstChild,r=l(n.data).map((function(t){return c(t)})),i=0,o={},a=r.every((function(t,e){A.setStart(n,i),A.setEnd(n,i+t.length);var r=A.getBoundingClientRect();i+=t.length;var a=r.x>o.x||r.y>o.y;return o=r,0===e||a}));return t.body.removeChild(e),a},Po=function(){return"undefined"!==typeof(new Image).crossOrigin},Lo=function(){return"string"===typeof(new XMLHttpRequest).responseType},Ro=function(t){var e=new Image,A=t.createElement("canvas"),n=A.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),A.toDataURL()}catch(Ge){return!1}return!0},No=function(t){return 0===t[0]&&255===t[1]&&0===t[2]&&255===t[3]},Ko=function(t){var e=t.createElement("canvas"),A=100;e.width=A,e.height=A;var n=e.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,A,A);var r=new Image,i=e.toDataURL();r.src=i;var o=jo(A,A,0,0,r);return n.fillStyle="red",n.fillRect(0,0,A,A),Vo(o).then((function(e){n.drawImage(e,0,0);var r=n.getImageData(0,0,A,A).data;n.fillStyle="red",n.fillRect(0,0,A,A);var o=t.createElement("div");return o.style.backgroundImage="url("+i+")",o.style.height=A+"px",No(r)?Vo(jo(A,A,0,0,o)):Promise.reject(!1)})).then((function(t){return n.drawImage(t,0,0),No(n.getImageData(0,0,A,A).data)})).catch((function(){return!1}))},jo=function(t,e,A,n,r){var i="http://www.w3.org/2000/svg",o=document.createElementNS(i,"svg"),a=document.createElementNS(i,"foreignObject");return o.setAttributeNS(null,"width",t.toString()),o.setAttributeNS(null,"height",e.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",A.toString()),a.setAttributeNS(null,"y",n.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(a),a.appendChild(r),o},Vo=function(t){return new Promise((function(e,A){var n=new Image;n.onload=function(){return e(n)},n.onerror=A,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(t))}))},Go={get SUPPORT_RANGE_BOUNDS(){var t=Oo(document);return Object.defineProperty(Go,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=Go.SUPPORT_RANGE_BOUNDS&&To(document);return Object.defineProperty(Go,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=Ro(document);return Object.defineProperty(Go,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t="function"===typeof Array.from&&"function"===typeof window.fetch?Ko(document):Promise.resolve(!1);return Object.defineProperty(Go,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=Po();return Object.defineProperty(Go,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=Lo();return Object.defineProperty(Go,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Go,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!("undefined"===typeof Intl||!Intl.Segmenter);return Object.defineProperty(Go,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},qo=function(){function t(t,e){this.text=t,this.bounds=e}return t}(),Wo=function(t,e,A,n){var r=Zo(e,A),i=[],a=0;return r.forEach((function(e){if(A.textDecorationLine.length||e.trim().length>0)if(Go.SUPPORT_RANGE_BOUNDS){var r=zo(n,a,e.length).getClientRects();if(r.length>1){var s=Xo(e),l=0;s.forEach((function(e){i.push(new qo(e,o.fromDOMRectList(t,zo(n,l+a,e.length).getClientRects()))),l+=e.length}))}else i.push(new qo(e,o.fromDOMRectList(t,r)))}else{var c=n.splitText(e.length);i.push(new qo(e,Yo(t,n))),n=c}else Go.SUPPORT_RANGE_BOUNDS||(n=n.splitText(e.length));a+=e.length})),i},Yo=function(t,e){var A=e.ownerDocument;if(A){var n=A.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));var r=e.parentNode;if(r){r.replaceChild(n,e);var i=a(t,n);return n.firstChild&&r.replaceChild(n.firstChild,n),i}}return o.EMPTY},zo=function(t,e,A){var n=t.ownerDocument;if(!n)throw new Error("Node has no owner document");var r=n.createRange();return r.setStart(t,e),r.setEnd(t,e+A),r},Xo=function(t){if(Go.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(t)).map((function(t){return t.segment}))}return Mo(t)},Jo=function(t,e){if(Go.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(A.segment(t)).map((function(t){return t.segment}))}return ta(t,e)},Zo=function(t,e){return 0!==e.letterSpacing?Xo(t):Jo(t,e)},$o=[32,160,4961,65792,65793,4153,4241],ta=function(t,e){var A,n=Xt(t,{lineBreak:e.lineBreak,wordBreak:"break-word"===e.overflowWrap?"break-word":e.wordBreak}),r=[],i=function(){if(A.value){var t=A.value.slice(),e=l(t),n="";e.forEach((function(t){-1===$o.indexOf(t)?n+=c(t):(n.length&&r.push(n),r.push(c(t)),n="")})),n.length&&r.push(n)}};while(!(A=n.next()).done)i();return r},ea=function(){function t(t,e,A){this.text=Aa(e.data,A.textTransform),this.textBounds=Wo(t,this.text,A,e)}return t}(),Aa=function(t,e){switch(e){case 1:return t.toLowerCase();case 3:return t.replace(na,ra);case 2:return t.toUpperCase();default:return t}},na=/(^|\s|:|-|\(|\))([a-z])/g,ra=function(t,e,A){return t.length>0?e+A.toUpperCase():t},ia=function(t){function A(e,A){var n=t.call(this,e,A)||this;return n.src=A.currentSrc||A.src,n.intrinsicWidth=A.naturalWidth,n.intrinsicHeight=A.naturalHeight,n.context.cache.addImage(n.src),n}return e(A,t),A}(Mi),oa=function(t){function A(e,A){var n=t.call(this,e,A)||this;return n.canvas=A,n.intrinsicWidth=A.width,n.intrinsicHeight=A.height,n}return e(A,t),A}(Mi),aa=function(t){function A(e,A){var n=t.call(this,e,A)||this,r=new XMLSerializer,i=a(e,A);return A.setAttribute("width",i.width+"px"),A.setAttribute("height",i.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(r.serializeToString(A)),n.intrinsicWidth=A.width.baseVal.value,n.intrinsicHeight=A.height.baseVal.value,n.context.cache.addImage(n.svg),n}return e(A,t),A}(Mi),sa=function(t){function A(e,A){var n=t.call(this,e,A)||this;return n.value=A.value,n}return e(A,t),A}(Mi),la=function(t){function A(e,A){var n=t.call(this,e,A)||this;return n.start=A.start,n.reversed="boolean"===typeof A.reversed&&!0===A.reversed,n}return e(A,t),A}(Mi),ca=[{type:15,flags:0,unit:"px",number:3}],ua=[{type:16,flags:0,number:50}],ha=function(t){return t.width>t.height?new o(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new o(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t},da=function(t){var e=t.type===pa?new Array(t.value.length+1).join("•"):t.value;return 0===e.length?t.placeholder||"":e},ga="checkbox",fa="radio",pa="password",ma=707406591,wa=function(t){function A(e,A){var n=t.call(this,e,A)||this;switch(n.type=A.type.toLowerCase(),n.checked=A.checked,n.value=da(A),n.type!==ga&&n.type!==fa||(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=1,n.styles.backgroundClip=[0],n.styles.backgroundOrigin=[0],n.bounds=ha(n.bounds)),n.type){case ga:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=ca;break;case fa:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=ua;break}return n}return e(A,t),A}(Mi),Ba=function(t){function A(e,A){var n=t.call(this,e,A)||this,r=A.options[A.selectedIndex||0];return n.value=r&&r.text||"",n}return e(A,t),A}(Mi),va=function(t){function A(e,A){var n=t.call(this,e,A)||this;return n.value=A.value,n}return e(A,t),A}(Mi),ya=function(t){function A(e,A){var n=t.call(this,e,A)||this;n.src=A.src,n.width=parseInt(A.width,10)||0,n.height=parseInt(A.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(A.contentWindow&&A.contentWindow.document&&A.contentWindow.document.documentElement){n.tree=Fa(e,A.contentWindow.document.documentElement);var r=A.contentWindow.document.documentElement?Bn(e,getComputedStyle(A.contentWindow.document.documentElement).backgroundColor):vn.TRANSPARENT,i=A.contentWindow.document.body?Bn(e,getComputedStyle(A.contentWindow.document.body).backgroundColor):vn.TRANSPARENT;n.backgroundColor=un(r)?un(i)?n.styles.backgroundColor:i:r}}catch(Ge){}return n}return e(A,t),A}(Mi),ba=["OL","UL","MENU"],Ca=function(t,e,A,n){for(var r=e.firstChild,i=void 0;r;r=i)if(i=r.nextSibling,_a(r)&&r.data.trim().length>0)A.textNodes.push(new ea(t,r,A.styles));else if(Ia(r))if(qa(r)&&r.assignedNodes)r.assignedNodes().forEach((function(e){return Ca(t,e,A,n)}));else{var o=xa(t,r);o.styles.isVisible()&&(Qa(r,o,n)?o.flags|=4:Ua(o.styles)&&(o.flags|=2),-1!==ba.indexOf(r.tagName)&&(o.flags|=8),A.elements.push(o),r.slot,r.shadowRoot?Ca(t,r.shadowRoot,o,n):Va(r)||Oa(r)||Ga(r)||Ca(t,r,o,n))}},xa=function(t,e){return Ra(e)?new ia(t,e):Pa(e)?new oa(t,e):Oa(e)?new aa(t,e):Sa(e)?new sa(t,e):Da(e)?new la(t,e):Ha(e)?new wa(t,e):Ga(e)?new Ba(t,e):Va(e)?new va(t,e):Na(e)?new ya(t,e):new Mi(t,e)},Fa=function(t,e){var A=xa(t,e);return A.flags|=4,Ca(t,e,A,A),A},Qa=function(t,e,A){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Ta(t)&&A.styles.isTransparent()},Ua=function(t){return t.isPositioned()||t.isFloating()},_a=function(t){return t.nodeType===Node.TEXT_NODE},Ia=function(t){return t.nodeType===Node.ELEMENT_NODE},Ea=function(t){return Ia(t)&&"undefined"!==typeof t.style&&!ka(t)},ka=function(t){return"object"===typeof t.className},Sa=function(t){return"LI"===t.tagName},Da=function(t){return"OL"===t.tagName},Ha=function(t){return"INPUT"===t.tagName},Ma=function(t){return"HTML"===t.tagName},Oa=function(t){return"svg"===t.tagName},Ta=function(t){return"BODY"===t.tagName},Pa=function(t){return"CANVAS"===t.tagName},La=function(t){return"VIDEO"===t.tagName},Ra=function(t){return"IMG"===t.tagName},Na=function(t){return"IFRAME"===t.tagName},Ka=function(t){return"STYLE"===t.tagName},ja=function(t){return"SCRIPT"===t.tagName},Va=function(t){return"TEXTAREA"===t.tagName},Ga=function(t){return"SELECT"===t.tagName},qa=function(t){return"SLOT"===t.tagName},Wa=function(t){return t.tagName.indexOf("-")>0},Ya=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(t){var e=this.counters[t];return e&&e.length?e[e.length-1]:1},t.prototype.getCounterValues=function(t){var e=this.counters[t];return e||[]},t.prototype.pop=function(t){var e=this;t.forEach((function(t){return e.counters[t].pop()}))},t.prototype.parse=function(t){var e=this,A=t.counterIncrement,n=t.counterReset,r=!0;null!==A&&A.forEach((function(t){var A=e.counters[t.counter];A&&0!==t.increment&&(r=!1,A.length||A.push(1),A[Math.max(0,A.length-1)]+=t.increment)}));var i=[];return r&&n.forEach((function(t){var A=e.counters[t.counter];i.push(t.counter),A||(A=e.counters[t.counter]=[]),A.push(t.reset)})),i},t}(),za={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"]},Xa={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Ja={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Za={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},$a=function(t,e,A,n,r,i){return t<e||t>A?hs(t,r,i.length>0):n.integers.reduce((function(e,A,r){while(t>=A)t-=A,e+=n.values[r];return e}),"")+i},ts=function(t,e,A,n){var r="";do{A||t--,r=n(t)+r,t/=e}while(t*e>=e);return r},es=function(t,e,A,n,r){var i=A-e+1;return(t<0?"-":"")+(ts(Math.abs(t),i,n,(function(t){return c(Math.floor(t%i)+e)}))+r)},As=function(t,e,A){void 0===A&&(A=". ");var n=e.length;return ts(Math.abs(t),n,!1,(function(t){return e[Math.floor(t%n)]}))+A},ns=1,rs=2,is=4,os=8,as=function(t,e,A,n,r,i){if(t<-9999||t>9999)return hs(t,4,r.length>0);var o=Math.abs(t),a=r;if(0===o)return e[0]+a;for(var s=0;o>0&&s<=4;s++){var l=o%10;0===l&&mi(i,ns)&&""!==a?a=e[l]+a:l>1||1===l&&0===s||1===l&&1===s&&mi(i,rs)||1===l&&1===s&&mi(i,is)&&t>100||1===l&&s>1&&mi(i,os)?a=e[l]+(s>0?A[s-1]:"")+a:1===l&&s>0&&(a=A[s-1]+a),o=Math.floor(o/10)}return(t<0?n:"")+a},ss="十百千萬",ls="拾佰仟萬",cs="マイナス",us="마이너스",hs=function(t,e,A){var n=A?". ":"",r=A?"、":"",i=A?", ":"",o=A?" ":"";switch(e){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var a=es(t,48,57,!0,n);return a.length<4?"0"+a:a;case 4:return As(t,"〇一二三四五六七八九",r);case 6:return $a(t,1,3999,za,3,n).toLowerCase();case 7:return $a(t,1,3999,za,3,n);case 8:return es(t,945,969,!1,n);case 9:return es(t,97,122,!1,n);case 10:return es(t,65,90,!1,n);case 11:return es(t,1632,1641,!0,n);case 12:case 49:return $a(t,1,9999,Xa,3,n);case 35:return $a(t,1,9999,Xa,3,n).toLowerCase();case 13:return es(t,2534,2543,!0,n);case 14:case 30:return es(t,6112,6121,!0,n);case 15:return As(t,"子丑寅卯辰巳午未申酉戌亥",r);case 16:return As(t,"甲乙丙丁戊己庚辛壬癸",r);case 17:case 48:return as(t,"零一二三四五六七八九",ss,"負",r,rs|is|os);case 47:return as(t,"零壹貳參肆伍陸柒捌玖",ls,"負",r,ns|rs|is|os);case 42:return as(t,"零一二三四五六七八九",ss,"负",r,rs|is|os);case 41:return as(t,"零壹贰叁肆伍陆柒捌玖",ls,"负",r,ns|rs|is|os);case 26:return as(t,"〇一二三四五六七八九","十百千万",cs,r,0);case 25:return as(t,"零壱弐参四伍六七八九","拾百千万",cs,r,ns|rs|is);case 31:return as(t,"영일이삼사오육칠팔구","십백천만",us,i,ns|rs|is);case 33:return as(t,"零一二三四五六七八九","十百千萬",us,i,0);case 32:return as(t,"零壹貳參四五六七八九","拾百千",us,i,ns|rs|is);case 18:return es(t,2406,2415,!0,n);case 20:return $a(t,1,19999,Za,3,n);case 21:return es(t,2790,2799,!0,n);case 22:return es(t,2662,2671,!0,n);case 22:return $a(t,1,10999,Ja,3,n);case 23:return As(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return As(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return es(t,3302,3311,!0,n);case 28:return As(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case 29:return As(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case 34:return es(t,3792,3801,!0,n);case 37:return es(t,6160,6169,!0,n);case 38:return es(t,4160,4169,!0,n);case 39:return es(t,2918,2927,!0,n);case 40:return es(t,1776,1785,!0,n);case 43:return es(t,3046,3055,!0,n);case 44:return es(t,3174,3183,!0,n);case 45:return es(t,3664,3673,!0,n);case 46:return es(t,3872,3881,!0,n);case 3:default:return es(t,48,57,!0,n)}},ds="data-html2canvas-ignore",gs=function(){function t(t,e,A){if(this.context=t,this.options=A,this.scrolledElements=[],this.referenceElement=e,this.counters=new Ya,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(t,e){var A=this,i=ps(t,e);if(!i.contentWindow)return Promise.reject("Unable to find iframe window");var o=t.defaultView.pageXOffset,a=t.defaultView.pageYOffset,s=i.contentWindow,l=s.document,c=Bs(i).then((function(){return n(A,void 0,void 0,(function(){var t,A;return r(this,(function(n){switch(n.label){case 0:return this.scrolledElements.forEach(xs),s&&(s.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||s.scrollY===e.top&&s.scrollX===e.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-e.left,s.scrollY-e.top,0,0))),t=this.options.onclone,A=this.clonedReferenceElement,"undefined"===typeof A?[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:n.sent(),n.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,ws(l)]:[3,4];case 3:n.sent(),n.label=4;case 4:return"function"===typeof t?[2,Promise.resolve().then((function(){return t(l,A)})).then((function(){return i}))]:[2,i]}}))}))}));return l.open(),l.write(bs(document.doctype)+"<html></html>"),Cs(this.referenceElement.ownerDocument,o,a),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},t.prototype.createElementClone=function(t){if(Hi(t,2),Pa(t))return this.createCanvasClone(t);if(La(t))return this.createVideoClone(t);if(Ka(t))return this.createStyleClone(t);var e=t.cloneNode(!1);return Ra(e)&&(Ra(t)&&t.currentSrc&&t.currentSrc!==t.src&&(e.src=t.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),Wa(e)?this.createCustomElementClone(e):e},t.prototype.createCustomElementClone=function(t){var e=document.createElement("html2canvascustomelement");return ys(t.style,e),e},t.prototype.createStyleClone=function(t){try{var e=t.sheet;if(e&&e.cssRules){var A=[].slice.call(e.cssRules,0).reduce((function(t,e){return e&&"string"===typeof e.cssText?t+e.cssText:t}),""),n=t.cloneNode(!1);return n.textContent=A,n}}catch(Ge){if(this.context.logger.error("Unable to access cssRules property",Ge),"SecurityError"!==Ge.name)throw Ge}return t.cloneNode(!1)},t.prototype.createCanvasClone=function(t){var e;if(this.options.inlineImages&&t.ownerDocument){var A=t.ownerDocument.createElement("img");try{return A.src=t.toDataURL(),A}catch(Ge){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var n=t.cloneNode(!1);try{n.width=t.width,n.height=t.height;var r=t.getContext("2d"),i=n.getContext("2d");if(i)if(!this.options.allowTaint&&r)i.putImageData(r.getImageData(0,0,t.width,t.height),0,0);else{var o=null!==(e=t.getContext("webgl2"))&&void 0!==e?e:t.getContext("webgl");if(o){var a=o.getContextAttributes();!1===(null===a||void 0===a?void 0:a.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}i.drawImage(t,0,0)}return n}catch(Ge){this.context.logger.info("Unable to clone canvas as it is tainted",t)}return n},t.prototype.createVideoClone=function(t){var e=t.ownerDocument.createElement("canvas");e.width=t.offsetWidth,e.height=t.offsetHeight;var A=e.getContext("2d");try{return A&&(A.drawImage(t,0,0,e.width,e.height),this.options.allowTaint||A.getImageData(0,0,e.width,e.height)),e}catch(Ge){this.context.logger.info("Unable to clone video as it is tainted",t)}var n=t.ownerDocument.createElement("canvas");return n.width=t.offsetWidth,n.height=t.offsetHeight,n},t.prototype.appendChildNode=function(t,e,A){Ia(e)&&(ja(e)||e.hasAttribute(ds)||"function"===typeof this.options.ignoreElements&&this.options.ignoreElements(e))||this.options.copyStyles&&Ia(e)&&Ka(e)||t.appendChild(this.cloneNode(e,A))},t.prototype.cloneChildNodes=function(t,e,A){for(var n=this,r=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;r;r=r.nextSibling)if(Ia(r)&&qa(r)&&"function"===typeof r.assignedNodes){var i=r.assignedNodes();i.length&&i.forEach((function(t){return n.appendChildNode(e,t,A)}))}else this.appendChildNode(e,r,A)},t.prototype.cloneNode=function(t,e){if(_a(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var A=t.ownerDocument.defaultView;if(A&&Ia(t)&&(Ea(t)||ka(t))){var n=this.createElementClone(t);n.style.transitionProperty="none";var r=A.getComputedStyle(t),i=A.getComputedStyle(t,":before"),o=A.getComputedStyle(t,":after");this.referenceElement===t&&Ea(n)&&(this.clonedReferenceElement=n),Ta(n)&&Es(n);var a=this.counters.parse(new Ei(this.context,r)),s=this.resolvePseudoContent(t,n,i,uo.BEFORE);Wa(t)&&(e=!0),La(t)||this.cloneChildNodes(t,n,e),s&&n.insertBefore(s,n.firstChild);var l=this.resolvePseudoContent(t,n,o,uo.AFTER);return l&&n.appendChild(l),this.counters.pop(a),(r&&(this.options.copyStyles||ka(t))&&!Na(t)||e)&&ys(r,n),0===t.scrollTop&&0===t.scrollLeft||this.scrolledElements.push([n,t.scrollLeft,t.scrollTop]),(Va(t)||Ga(t))&&(Va(n)||Ga(n))&&(n.value=t.value),n}return t.cloneNode(!1)},t.prototype.resolvePseudoContent=function(t,e,A,n){var r=this;if(A){var i=A.content,o=e.ownerDocument;if(o&&i&&"none"!==i&&"-moz-alt-content"!==i&&"none"!==A.display){this.counters.parse(new Ei(this.context,A));var a=new Ii(this.context,A),s=o.createElement("html2canvaspseudoelement");ys(A,s),a.content.forEach((function(e){if(0===e.type)s.appendChild(o.createTextNode(e.value));else if(22===e.type){var A=o.createElement("img");A.src=e.value,A.style.opacity="1",s.appendChild(A)}else if(18===e.type){if("attr"===e.name){var n=e.values.filter(RA);n.length&&s.appendChild(o.createTextNode(t.getAttribute(n[0].value)||""))}else if("counter"===e.name){var i=e.values.filter(VA),l=i[0],c=i[1];if(l&&RA(l)){var u=r.counters.getCounterValue(l.value),h=c&&RA(c)?Mr.parse(r.context,c.value):3;s.appendChild(o.createTextNode(hs(u,h,!1)))}}else if("counters"===e.name){var d=e.values.filter(VA),g=(l=d[0],d[1]);c=d[2];if(l&&RA(l)){var f=r.counters.getCounterValues(l.value),p=c&&RA(c)?Mr.parse(r.context,c.value):3,m=g&&0===g.type?g.value:"",w=f.map((function(t){return hs(t,p,!1)})).join(m);s.appendChild(o.createTextNode(w))}}}else if(20===e.type)switch(e.value){case"open-quote":s.appendChild(o.createTextNode(Ci(a.quotes,r.quoteDepth++,!0)));break;case"close-quote":s.appendChild(o.createTextNode(Ci(a.quotes,--r.quoteDepth,!1)));break;default:s.appendChild(o.createTextNode(e.value))}})),s.className=Us+" "+_s;var l=n===uo.BEFORE?" "+Us:" "+_s;return ka(e)?e.className.baseValue+=l:e.className+=l,s}}},t.destroy=function(t){return!!t.parentNode&&(t.parentNode.removeChild(t),!0)},t}();(function(t){t[t["BEFORE"]=0]="BEFORE",t[t["AFTER"]=1]="AFTER"})(uo||(uo={}));var fs,ps=function(t,e){var A=t.createElement("iframe");return A.className="html2canvas-container",A.style.visibility="hidden",A.style.position="fixed",A.style.left="-10000px",A.style.top="0px",A.style.border="0",A.width=e.width.toString(),A.height=e.height.toString(),A.scrolling="no",A.setAttribute(ds,"true"),t.body.appendChild(A),A},ms=function(t){return new Promise((function(e){t.complete?e():t.src?(t.onload=e,t.onerror=e):e()}))},ws=function(t){return Promise.all([].slice.call(t.images,0).map(ms))},Bs=function(t){return new Promise((function(e,A){var n=t.contentWindow;if(!n)return A("No window assigned for iframe");var r=n.document;n.onload=t.onload=function(){n.onload=t.onload=null;var A=setInterval((function(){r.body.childNodes.length>0&&"complete"===r.readyState&&(clearInterval(A),e(t))}),50)}}))},vs=["all","d","content"],ys=function(t,e){for(var A=t.length-1;A>=0;A--){var n=t.item(A);-1===vs.indexOf(n)&&e.style.setProperty(n,t.getPropertyValue(n))}return e},bs=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},Cs=function(t,e,A){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||A!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,A)},xs=function(t){var e=t[0],A=t[1],n=t[2];e.scrollLeft=A,e.scrollTop=n},Fs=":before",Qs=":after",Us="___html2canvas___pseudoelement_before",_s="___html2canvas___pseudoelement_after",Is='{\n content: "" !important;\n display: none !important;\n}',Es=function(t){ks(t,"."+Us+Fs+Is+"\n ."+_s+Qs+Is)},ks=function(t,e){var A=t.ownerDocument;if(A){var n=A.createElement("style");n.textContent=e,t.appendChild(n)}},Ss=function(){function t(){}return t.getOrigin=function(e){var A=t._link;return A?(A.href=e,A.href=A.href,A.protocol+A.hostname+A.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}(),Ds=function(){function t(t,e){this.context=t,this._options=e,this._cache={}}return t.prototype.addImage=function(t){var e=Promise.resolve();return this.has(t)?e:Rs(t)||Ts(t)?((this._cache[t]=this.loadImage(t)).catch((function(){})),e):e},t.prototype.match=function(t){return this._cache[t]},t.prototype.loadImage=function(t){return n(this,void 0,void 0,(function(){var e,A,n,i,o=this;return r(this,(function(r){switch(r.label){case 0:return e=Ss.isSameOrigin(t),A=!Ps(t)&&!0===this._options.useCORS&&Go.SUPPORT_CORS_IMAGES&&!e,n=!Ps(t)&&!e&&!Rs(t)&&"string"===typeof this._options.proxy&&Go.SUPPORT_CORS_XHR&&!A,e||!1!==this._options.allowTaint||Ps(t)||Rs(t)||n||A?(i=t,n?[4,this.proxy(i)]:[3,2]):[2];case 1:i=r.sent(),r.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise((function(t,e){var n=new Image;n.onload=function(){return t(n)},n.onerror=e,(Ls(i)||A)&&(n.crossOrigin="anonymous"),n.src=i,!0===n.complete&&setTimeout((function(){return t(n)}),500),o._options.imageTimeout>0&&setTimeout((function(){return e("Timed out ("+o._options.imageTimeout+"ms) loading image")}),o._options.imageTimeout)}))];case 3:return[2,r.sent()]}}))}))},t.prototype.has=function(t){return"undefined"!==typeof this._cache[t]},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(t){var e=this,A=this._options.proxy;if(!A)throw new Error("No proxy defined");var n=t.substring(0,256);return new Promise((function(r,i){var o=Go.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;a.onload=function(){if(200===a.status)if("text"===o)r(a.response);else{var t=new FileReader;t.addEventListener("load",(function(){return r(t.result)}),!1),t.addEventListener("error",(function(t){return i(t)}),!1),t.readAsDataURL(a.response)}else i("Failed to proxy resource "+n+" with status code "+a.status)},a.onerror=i;var s=A.indexOf("?")>-1?"&":"?";if(a.open("GET",""+A+s+"url="+encodeURIComponent(t)+"&responseType="+o),"text"!==o&&a instanceof XMLHttpRequest&&(a.responseType=o),e._options.imageTimeout){var l=e._options.imageTimeout;a.timeout=l,a.ontimeout=function(){return i("Timed out ("+l+"ms) proxying "+n)}}a.send()}))},t}(),Hs=/^data:image\/svg\+xml/i,Ms=/^data:image\/.*;base64,/i,Os=/^data:image\/.*/i,Ts=function(t){return Go.SUPPORT_SVG_DRAWING||!Ns(t)},Ps=function(t){return Os.test(t)},Ls=function(t){return Ms.test(t)},Rs=function(t){return"blob"===t.substr(0,4)},Ns=function(t){return"svg"===t.substr(-3).toLowerCase()||Hs.test(t)},Ks=function(){function t(t,e){this.type=0,this.x=t,this.y=e}return t.prototype.add=function(e,A){return new t(this.x+e,this.y+A)},t}(),js=function(t,e,A){return new Ks(t.x+(e.x-t.x)*A,t.y+(e.y-t.y)*A)},Vs=function(){function t(t,e,A,n){this.type=1,this.start=t,this.startControl=e,this.endControl=A,this.end=n}return t.prototype.subdivide=function(e,A){var n=js(this.start,this.startControl,e),r=js(this.startControl,this.endControl,e),i=js(this.endControl,this.end,e),o=js(n,r,e),a=js(r,i,e),s=js(o,a,e);return A?new t(this.start,n,o,s):new t(s,a,i,this.end)},t.prototype.add=function(e,A){return new t(this.start.add(e,A),this.startControl.add(e,A),this.endControl.add(e,A),this.end.add(e,A))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),Gs=function(t){return 1===t.type},qs=function(){function t(t){var e=t.styles,A=t.bounds,n=$A(e.borderTopLeftRadius,A.width,A.height),r=n[0],i=n[1],o=$A(e.borderTopRightRadius,A.width,A.height),a=o[0],s=o[1],l=$A(e.borderBottomRightRadius,A.width,A.height),c=l[0],u=l[1],h=$A(e.borderBottomLeftRadius,A.width,A.height),d=h[0],g=h[1],f=[];f.push((r+a)/A.width),f.push((d+c)/A.width),f.push((i+g)/A.height),f.push((s+u)/A.height);var p=Math.max.apply(Math,f);p>1&&(r/=p,i/=p,a/=p,s/=p,c/=p,u/=p,d/=p,g/=p);var m=A.width-a,w=A.height-u,B=A.width-c,v=A.height-g,y=e.borderTopWidth,b=e.borderRightWidth,C=e.borderBottomWidth,x=e.borderLeftWidth,F=tn(e.paddingTop,t.bounds.width),Q=tn(e.paddingRight,t.bounds.width),U=tn(e.paddingBottom,t.bounds.width),_=tn(e.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=r>0||i>0?Ws(A.left+x/3,A.top+y/3,r-x/3,i-y/3,fs.TOP_LEFT):new Ks(A.left+x/3,A.top+y/3),this.topRightBorderDoubleOuterBox=r>0||i>0?Ws(A.left+m,A.top+y/3,a-b/3,s-y/3,fs.TOP_RIGHT):new Ks(A.left+A.width-b/3,A.top+y/3),this.bottomRightBorderDoubleOuterBox=c>0||u>0?Ws(A.left+B,A.top+w,c-b/3,u-C/3,fs.BOTTOM_RIGHT):new Ks(A.left+A.width-b/3,A.top+A.height-C/3),this.bottomLeftBorderDoubleOuterBox=d>0||g>0?Ws(A.left+x/3,A.top+v,d-x/3,g-C/3,fs.BOTTOM_LEFT):new Ks(A.left+x/3,A.top+A.height-C/3),this.topLeftBorderDoubleInnerBox=r>0||i>0?Ws(A.left+2*x/3,A.top+2*y/3,r-2*x/3,i-2*y/3,fs.TOP_LEFT):new Ks(A.left+2*x/3,A.top+2*y/3),this.topRightBorderDoubleInnerBox=r>0||i>0?Ws(A.left+m,A.top+2*y/3,a-2*b/3,s-2*y/3,fs.TOP_RIGHT):new Ks(A.left+A.width-2*b/3,A.top+2*y/3),this.bottomRightBorderDoubleInnerBox=c>0||u>0?Ws(A.left+B,A.top+w,c-2*b/3,u-2*C/3,fs.BOTTOM_RIGHT):new Ks(A.left+A.width-2*b/3,A.top+A.height-2*C/3),this.bottomLeftBorderDoubleInnerBox=d>0||g>0?Ws(A.left+2*x/3,A.top+v,d-2*x/3,g-2*C/3,fs.BOTTOM_LEFT):new Ks(A.left+2*x/3,A.top+A.height-2*C/3),this.topLeftBorderStroke=r>0||i>0?Ws(A.left+x/2,A.top+y/2,r-x/2,i-y/2,fs.TOP_LEFT):new Ks(A.left+x/2,A.top+y/2),this.topRightBorderStroke=r>0||i>0?Ws(A.left+m,A.top+y/2,a-b/2,s-y/2,fs.TOP_RIGHT):new Ks(A.left+A.width-b/2,A.top+y/2),this.bottomRightBorderStroke=c>0||u>0?Ws(A.left+B,A.top+w,c-b/2,u-C/2,fs.BOTTOM_RIGHT):new Ks(A.left+A.width-b/2,A.top+A.height-C/2),this.bottomLeftBorderStroke=d>0||g>0?Ws(A.left+x/2,A.top+v,d-x/2,g-C/2,fs.BOTTOM_LEFT):new Ks(A.left+x/2,A.top+A.height-C/2),this.topLeftBorderBox=r>0||i>0?Ws(A.left,A.top,r,i,fs.TOP_LEFT):new Ks(A.left,A.top),this.topRightBorderBox=a>0||s>0?Ws(A.left+m,A.top,a,s,fs.TOP_RIGHT):new Ks(A.left+A.width,A.top),this.bottomRightBorderBox=c>0||u>0?Ws(A.left+B,A.top+w,c,u,fs.BOTTOM_RIGHT):new Ks(A.left+A.width,A.top+A.height),this.bottomLeftBorderBox=d>0||g>0?Ws(A.left,A.top+v,d,g,fs.BOTTOM_LEFT):new Ks(A.left,A.top+A.height),this.topLeftPaddingBox=r>0||i>0?Ws(A.left+x,A.top+y,Math.max(0,r-x),Math.max(0,i-y),fs.TOP_LEFT):new Ks(A.left+x,A.top+y),this.topRightPaddingBox=a>0||s>0?Ws(A.left+Math.min(m,A.width-b),A.top+y,m>A.width+b?0:Math.max(0,a-b),Math.max(0,s-y),fs.TOP_RIGHT):new Ks(A.left+A.width-b,A.top+y),this.bottomRightPaddingBox=c>0||u>0?Ws(A.left+Math.min(B,A.width-x),A.top+Math.min(w,A.height-C),Math.max(0,c-b),Math.max(0,u-C),fs.BOTTOM_RIGHT):new Ks(A.left+A.width-b,A.top+A.height-C),this.bottomLeftPaddingBox=d>0||g>0?Ws(A.left+x,A.top+Math.min(v,A.height-C),Math.max(0,d-x),Math.max(0,g-C),fs.BOTTOM_LEFT):new Ks(A.left+x,A.top+A.height-C),this.topLeftContentBox=r>0||i>0?Ws(A.left+x+_,A.top+y+F,Math.max(0,r-(x+_)),Math.max(0,i-(y+F)),fs.TOP_LEFT):new Ks(A.left+x+_,A.top+y+F),this.topRightContentBox=a>0||s>0?Ws(A.left+Math.min(m,A.width+x+_),A.top+y+F,m>A.width+x+_?0:a-x+_,s-(y+F),fs.TOP_RIGHT):new Ks(A.left+A.width-(b+Q),A.top+y+F),this.bottomRightContentBox=c>0||u>0?Ws(A.left+Math.min(B,A.width-(x+_)),A.top+Math.min(w,A.height+y+F),Math.max(0,c-(b+Q)),u-(C+U),fs.BOTTOM_RIGHT):new Ks(A.left+A.width-(b+Q),A.top+A.height-(C+U)),this.bottomLeftContentBox=d>0||g>0?Ws(A.left+x+_,A.top+v,Math.max(0,d-(x+_)),g-(C+U),fs.BOTTOM_LEFT):new Ks(A.left+x+_,A.top+A.height-(C+U))}return t}();(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"})(fs||(fs={}));var Ws=function(t,e,A,n,r){var i=(Math.sqrt(2)-1)/3*4,o=A*i,a=n*i,s=t+A,l=e+n;switch(r){case fs.TOP_LEFT:return new Vs(new Ks(t,l),new Ks(t,l-a),new Ks(s-o,e),new Ks(s,e));case fs.TOP_RIGHT:return new Vs(new Ks(t,e),new Ks(t+o,e),new Ks(s,l-a),new Ks(s,l));case fs.BOTTOM_RIGHT:return new Vs(new Ks(s,e),new Ks(s,e+a),new Ks(t+o,l),new Ks(t,l));case fs.BOTTOM_LEFT:default:return new Vs(new Ks(s,l),new Ks(s-o,l),new Ks(t,e+a),new Ks(t,e))}},Ys=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},zs=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},Xs=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},Js=function(){function t(t,e,A){this.offsetX=t,this.offsetY=e,this.matrix=A,this.type=0,this.target=6}return t}(),Zs=function(){function t(t,e){this.path=t,this.target=e,this.type=1}return t}(),$s=function(){function t(t){this.opacity=t,this.type=2,this.target=6}return t}(),tl=function(t){return 0===t.type},el=function(t){return 1===t.type},Al=function(t){return 2===t.type},nl=function(t,e){return t.length===e.length&&t.some((function(t,A){return t===e[A]}))},rl=function(t,e,A,n,r){return t.map((function(t,i){switch(i){case 0:return t.add(e,A);case 1:return t.add(e+n,A);case 2:return t.add(e+n,A+r);case 3:return t.add(e,A+r)}return t}))},il=function(){function t(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),ol=function(){function t(t,e){if(this.container=t,this.parent=e,this.effects=[],this.curves=new qs(this.container),this.container.styles.opacity<1&&this.effects.push(new $s(this.container.styles.opacity)),null!==this.container.styles.transform){var A=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,r=this.container.styles.transform;this.effects.push(new Js(A,n,r))}if(0!==this.container.styles.overflowX){var i=Ys(this.curves),o=Xs(this.curves);nl(i,o)?this.effects.push(new Zs(i,6)):(this.effects.push(new Zs(i,2)),this.effects.push(new Zs(o,4)))}}return t.prototype.getEffects=function(t){var e=-1===[2,3].indexOf(this.container.styles.position),A=this.parent,n=this.effects.slice(0);while(A){var r=A.effects.filter((function(t){return!el(t)}));if(e||0!==A.container.styles.position||!A.parent){if(n.unshift.apply(n,r),e=-1===[2,3].indexOf(A.container.styles.position),0!==A.container.styles.overflowX){var i=Ys(A.curves),o=Xs(A.curves);nl(i,o)||n.unshift(new Zs(o,6))}}else n.unshift.apply(n,r);A=A.parent}return n.filter((function(e){return mi(e.target,t)}))},t}(),al=function(t,e,A,n){t.container.elements.forEach((function(r){var i=mi(r.flags,4),o=mi(r.flags,2),a=new ol(r,t);mi(r.styles.display,2048)&&n.push(a);var s=mi(r.flags,8)?[]:n;if(i||o){var l=i||r.styles.isPositioned()?A:e,c=new il(a);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var u=r.styles.zIndex.order;if(u<0){var h=0;l.negativeZIndex.some((function(t,e){return u>t.element.container.styles.zIndex.order?(h=e,!1):h>0})),l.negativeZIndex.splice(h,0,c)}else if(u>0){var d=0;l.positiveZIndex.some((function(t,e){return u>=t.element.container.styles.zIndex.order?(d=e+1,!1):d>0})),l.positiveZIndex.splice(d,0,c)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else r.styles.isFloating()?l.nonPositionedFloats.push(c):l.nonPositionedInlineLevel.push(c);al(a,c,i?c:A,s)}else r.styles.isInlineLevel()?e.inlineLevel.push(a):e.nonInlineLevel.push(a),al(a,e,A,s);mi(r.flags,8)&&sl(r,s)}))},sl=function(t,e){for(var A=t instanceof la?t.start:1,n=t instanceof la&&t.reversed,r=0;r<e.length;r++){var i=e[r];i.container instanceof sa&&"number"===typeof i.container.value&&0!==i.container.value&&(A=i.container.value),i.listValue=hs(A,i.container.styles.listStyleType,!0),A+=n?-1:1}},ll=function(t){var e=new ol(t,null),A=new il(e),n=[];return al(e,A,A,n),sl(e.container,n),A},cl=function(t,e){switch(e){case 0:return fl(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return fl(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return fl(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return fl(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},ul=function(t,e){switch(e){case 0:return fl(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return fl(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return fl(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return fl(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},hl=function(t,e){switch(e){case 0:return fl(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return fl(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return fl(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return fl(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},dl=function(t,e){switch(e){case 0:return gl(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return gl(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return gl(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return gl(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},gl=function(t,e){var A=[];return Gs(t)?A.push(t.subdivide(.5,!1)):A.push(t),Gs(e)?A.push(e.subdivide(.5,!0)):A.push(e),A},fl=function(t,e,A,n){var r=[];return Gs(t)?r.push(t.subdivide(.5,!1)):r.push(t),Gs(A)?r.push(A.subdivide(.5,!0)):r.push(A),Gs(n)?r.push(n.subdivide(.5,!0).reverse()):r.push(n),Gs(e)?r.push(e.subdivide(.5,!1).reverse()):r.push(e),r},pl=function(t){var e=t.bounds,A=t.styles;return e.add(A.borderLeftWidth,A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth),-(A.borderTopWidth+A.borderBottomWidth))},ml=function(t){var e=t.styles,A=t.bounds,n=tn(e.paddingLeft,A.width),r=tn(e.paddingRight,A.width),i=tn(e.paddingTop,A.width),o=tn(e.paddingBottom,A.width);return A.add(n+e.borderLeftWidth,i+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+n+r),-(e.borderTopWidth+e.borderBottomWidth+i+o))},wl=function(t,e){return 0===t?e.bounds:2===t?ml(e):pl(e)},Bl=function(t,e){return 0===t?e.bounds:2===t?ml(e):pl(e)},vl=function(t,e,A){var n=wl(xl(t.styles.backgroundOrigin,e),t),r=Bl(xl(t.styles.backgroundClip,e),t),i=Cl(xl(t.styles.backgroundSize,e),A,n),o=i[0],a=i[1],s=$A(xl(t.styles.backgroundPosition,e),n.width-o,n.height-a),l=Fl(xl(t.styles.backgroundRepeat,e),s,i,n,r),c=Math.round(n.left+s[0]),u=Math.round(n.top+s[1]);return[l,c,u,o,a]},yl=function(t){return RA(t)&&t.value===Wn.AUTO},bl=function(t){return"number"===typeof t},Cl=function(t,e,A){var n=e[0],r=e[1],i=e[2],o=t[0],a=t[1];if(!o)return[0,0];if(YA(o)&&a&&YA(a))return[tn(o,A.width),tn(a,A.height)];var s=bl(i);if(RA(o)&&(o.value===Wn.CONTAIN||o.value===Wn.COVER)){if(bl(i)){var l=A.width/A.height;return l<i!==(o.value===Wn.COVER)?[A.width,A.width/i]:[A.height*i,A.height]}return[A.width,A.height]}var c=bl(n),u=bl(r),h=c||u;if(yl(o)&&(!a||yl(a))){if(c&&u)return[n,r];if(!s&&!h)return[A.width,A.height];if(h&&s){var d=c?n:r*i,g=u?r:n/i;return[d,g]}var f=c?n:A.width,p=u?r:A.height;return[f,p]}if(s){var m=0,w=0;return YA(o)?m=tn(o,A.width):YA(a)&&(w=tn(a,A.height)),yl(o)?m=w*i:a&&!yl(a)||(w=m/i),[m,w]}var B=null,v=null;if(YA(o)?B=tn(o,A.width):a&&YA(a)&&(v=tn(a,A.height)),null===B||a&&!yl(a)||(v=c&&u?B/n*r:A.height),null!==v&&yl(o)&&(B=c&&u?v/r*n:A.width),null!==B&&null!==v)return[B,v];throw new Error("Unable to calculate background-size for element")},xl=function(t,e){var A=t[e];return"undefined"===typeof A?t[0]:A},Fl=function(t,e,A,n,r){var i=e[0],o=e[1],a=A[0],s=A[1];switch(t){case 2:return[new Ks(Math.round(n.left),Math.round(n.top+o)),new Ks(Math.round(n.left+n.width),Math.round(n.top+o)),new Ks(Math.round(n.left+n.width),Math.round(s+n.top+o)),new Ks(Math.round(n.left),Math.round(s+n.top+o))];case 3:return[new Ks(Math.round(n.left+i),Math.round(n.top)),new Ks(Math.round(n.left+i+a),Math.round(n.top)),new Ks(Math.round(n.left+i+a),Math.round(n.height+n.top)),new Ks(Math.round(n.left+i),Math.round(n.height+n.top))];case 1:return[new Ks(Math.round(n.left+i),Math.round(n.top+o)),new Ks(Math.round(n.left+i+a),Math.round(n.top+o)),new Ks(Math.round(n.left+i+a),Math.round(n.top+o+s)),new Ks(Math.round(n.left+i),Math.round(n.top+o+s))];default:return[new Ks(Math.round(r.left),Math.round(r.top)),new Ks(Math.round(r.left+r.width),Math.round(r.top)),new Ks(Math.round(r.left+r.width),Math.round(r.height+r.top)),new Ks(Math.round(r.left),Math.round(r.height+r.top))]}},Ql="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Ul="Hidden Text",_l=function(){function t(t){this._data={},this._document=t}return t.prototype.parseMetrics=function(t,e){var A=this._document.createElement("div"),n=this._document.createElement("img"),r=this._document.createElement("span"),i=this._document.body;A.style.visibility="hidden",A.style.fontFamily=t,A.style.fontSize=e,A.style.margin="0",A.style.padding="0",A.style.whiteSpace="nowrap",i.appendChild(A),n.src=Ql,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",r.style.fontFamily=t,r.style.fontSize=e,r.style.margin="0",r.style.padding="0",r.appendChild(this._document.createTextNode(Ul)),A.appendChild(r),A.appendChild(n);var o=n.offsetTop-r.offsetTop+2;A.removeChild(r),A.appendChild(this._document.createTextNode(Ul)),A.style.lineHeight="normal",n.style.verticalAlign="super";var a=n.offsetTop-A.offsetTop+2;return i.removeChild(A),{baseline:o,middle:a}},t.prototype.getMetrics=function(t,e){var A=t+" "+e;return"undefined"===typeof this._data[A]&&(this._data[A]=this.parseMetrics(t,e)),this._data[A]},t}(),Il=function(){function t(t,e){this.context=t,this.options=e}return t}(),El=1e4,kl=function(t){function A(e,A){var n=t.call(this,e,A)||this;return n._activeEffects=[],n.canvas=A.canvas?A.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),A.canvas||(n.canvas.width=Math.floor(A.width*A.scale),n.canvas.height=Math.floor(A.height*A.scale),n.canvas.style.width=A.width+"px",n.canvas.style.height=A.height+"px"),n.fontMetrics=new _l(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-A.x,-A.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+A.width+"x"+A.height+") with scale "+A.scale),n}return e(A,t),A.prototype.applyEffects=function(t){var e=this;while(this._activeEffects.length)this.popEffect();t.forEach((function(t){return e.applyEffect(t)}))},A.prototype.applyEffect=function(t){this.ctx.save(),Al(t)&&(this.ctx.globalAlpha=t.opacity),tl(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),el(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(t){return n(this,void 0,void 0,(function(){var e;return r(this,(function(A){switch(A.label){case 0:return e=t.element.container.styles,e.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:A.sent(),A.label=2;case 2:return[2]}}))}))},A.prototype.renderNode=function(t){return n(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return mi(t.container.flags,16),t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return e.sent(),[4,this.renderNodeContent(t)];case 2:e.sent(),e.label=3;case 3:return[2]}}))}))},A.prototype.renderTextWithLetterSpacing=function(t,e,A){var n=this;if(0===e)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+A);else{var r=Xo(t.text);r.reduce((function(e,r){return n.ctx.fillText(r,e,t.bounds.top+A),e+n.ctx.measureText(r).width}),t.bounds.left)}},A.prototype.createFontStyle=function(t){var e=t.fontVariant.filter((function(t){return"normal"===t||"small-caps"===t})).join(""),A=Ol(t.fontFamily).join(", "),n=PA(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,e,t.fontWeight,n,A].join(" "),A,n]},A.prototype.renderTextNode=function(t,e){return n(this,void 0,void 0,(function(){var A,n,i,o,a,s,l,c,u=this;return r(this,(function(r){return A=this.createFontStyle(e),n=A[0],i=A[1],o=A[2],this.ctx.font=n,this.ctx.direction=1===e.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",a=this.fontMetrics.getMetrics(i,o),s=a.baseline,l=a.middle,c=e.paintOrder,t.textBounds.forEach((function(t){c.forEach((function(A){switch(A){case 0:u.ctx.fillStyle=hn(e.color),u.renderTextWithLetterSpacing(t,e.letterSpacing,s);var n=e.textShadow;n.length&&t.text.trim().length&&(n.slice(0).reverse().forEach((function(A){u.ctx.shadowColor=hn(A.color),u.ctx.shadowOffsetX=A.offsetX.number*u.options.scale,u.ctx.shadowOffsetY=A.offsetY.number*u.options.scale,u.ctx.shadowBlur=A.blur.number,u.renderTextWithLetterSpacing(t,e.letterSpacing,s)})),u.ctx.shadowColor="",u.ctx.shadowOffsetX=0,u.ctx.shadowOffsetY=0,u.ctx.shadowBlur=0),e.textDecorationLine.length&&(u.ctx.fillStyle=hn(e.textDecorationColor||e.color),e.textDecorationLine.forEach((function(e){switch(e){case 1:u.ctx.fillRect(t.bounds.left,Math.round(t.bounds.top+s),t.bounds.width,1);break;case 2:u.ctx.fillRect(t.bounds.left,Math.round(t.bounds.top),t.bounds.width,1);break;case 3:u.ctx.fillRect(t.bounds.left,Math.ceil(t.bounds.top+l),t.bounds.width,1);break}})));break;case 1:e.webkitTextStrokeWidth&&t.text.trim().length&&(u.ctx.strokeStyle=hn(e.webkitTextStrokeColor),u.ctx.lineWidth=e.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(t.text,t.bounds.left,t.bounds.top+s)),u.ctx.strokeStyle="",u.ctx.lineWidth=0,u.ctx.lineJoin="miter";break}}))})),[2]}))}))},A.prototype.renderReplacedElement=function(t,e,A){if(A&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var n=ml(t),r=Xs(e);this.path(r),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(A,0,0,t.intrinsicWidth,t.intrinsicHeight,n.left,n.top,n.width,n.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(t){return n(this,void 0,void 0,(function(){var e,n,i,a,s,l,c,u,h,d,g,f,p,m,w,B,v,y,b;return r(this,(function(r){switch(r.label){case 0:this.applyEffects(t.getEffects(4)),e=t.container,n=t.curves,i=e.styles,a=0,s=e.textNodes,r.label=1;case 1:return a<s.length?(l=s[a],[4,this.renderTextNode(l,i)]):[3,4];case 2:r.sent(),r.label=3;case 3:return a++,[3,1];case 4:if(!(e instanceof ia))return[3,8];r.label=5;case 5:return r.trys.push([5,7,,8]),[4,this.context.cache.match(e.src)];case 6:return B=r.sent(),this.renderReplacedElement(e,n,B),[3,8];case 7:return r.sent(),this.context.logger.error("Error loading image "+e.src),[3,8];case 8:if(e instanceof oa&&this.renderReplacedElement(e,n,e.canvas),!(e instanceof aa))return[3,12];r.label=9;case 9:return r.trys.push([9,11,,12]),[4,this.context.cache.match(e.svg)];case 10:return B=r.sent(),this.renderReplacedElement(e,n,B),[3,12];case 11:return r.sent(),this.context.logger.error("Error loading svg "+e.svg.substring(0,255)),[3,12];case 12:return e instanceof ya&&e.tree?(c=new A(this.context,{scale:this.options.scale,backgroundColor:e.backgroundColor,x:0,y:0,width:e.width,height:e.height}),[4,c.render(e.tree)]):[3,14];case 13:u=r.sent(),e.width&&e.height&&this.ctx.drawImage(u,0,0,e.width,e.height,e.bounds.left,e.bounds.top,e.bounds.width,e.bounds.height),r.label=14;case 14:if(e instanceof wa&&(h=Math.min(e.bounds.width,e.bounds.height),e.type===ga?e.checked&&(this.ctx.save(),this.path([new Ks(e.bounds.left+.39363*h,e.bounds.top+.79*h),new Ks(e.bounds.left+.16*h,e.bounds.top+.5549*h),new Ks(e.bounds.left+.27347*h,e.bounds.top+.44071*h),new Ks(e.bounds.left+.39694*h,e.bounds.top+.5649*h),new Ks(e.bounds.left+.72983*h,e.bounds.top+.23*h),new Ks(e.bounds.left+.84*h,e.bounds.top+.34085*h),new Ks(e.bounds.left+.39363*h,e.bounds.top+.79*h)]),this.ctx.fillStyle=hn(ma),this.ctx.fill(),this.ctx.restore()):e.type===fa&&e.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(e.bounds.left+h/2,e.bounds.top+h/2,h/4,0,2*Math.PI,!0),this.ctx.fillStyle=hn(ma),this.ctx.fill(),this.ctx.restore())),Sl(e)&&e.value.length){switch(d=this.createFontStyle(i),y=d[0],g=d[1],f=this.fontMetrics.getMetrics(y,g).baseline,this.ctx.font=y,this.ctx.fillStyle=hn(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Hl(e.styles.textAlign),b=ml(e),p=0,e.styles.textAlign){case 1:p+=b.width/2;break;case 2:p+=b.width;break}m=b.add(p,0,0,-b.height/2+1),this.ctx.save(),this.path([new Ks(b.left,b.top),new Ks(b.left+b.width,b.top),new Ks(b.left+b.width,b.top+b.height),new Ks(b.left,b.top+b.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new qo(e.value,m),i.letterSpacing,f),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!mi(e.styles.display,2048))return[3,20];if(null===e.styles.listStyleImage)return[3,19];if(w=e.styles.listStyleImage,0!==w.type)return[3,18];B=void 0,v=w.url,r.label=15;case 15:return r.trys.push([15,17,,18]),[4,this.context.cache.match(v)];case 16:return B=r.sent(),this.ctx.drawImage(B,e.bounds.left-(B.width+10),e.bounds.top),[3,18];case 17:return r.sent(),this.context.logger.error("Error loading list-style-image "+v),[3,18];case 18:return[3,20];case 19:t.listValue&&-1!==e.styles.listStyleType&&(y=this.createFontStyle(i)[0],this.ctx.font=y,this.ctx.fillStyle=hn(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",b=new o(e.bounds.left,e.bounds.top+tn(e.styles.paddingTop,e.bounds.width),e.bounds.width,Sr(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new qo(t.listValue,b),i.letterSpacing,Sr(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),r.label=20;case 20:return[2]}}))}))},A.prototype.renderStackContent=function(t){return n(this,void 0,void 0,(function(){var e,A,n,i,o,a,s,l,c,u,h,d,g,f,p;return r(this,(function(r){switch(r.label){case 0:return mi(t.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:r.sent(),e=0,A=t.negativeZIndex,r.label=2;case 2:return e<A.length?(p=A[e],[4,this.renderStack(p)]):[3,5];case 3:r.sent(),r.label=4;case 4:return e++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:r.sent(),n=0,i=t.nonInlineLevel,r.label=7;case 7:return n<i.length?(p=i[n],[4,this.renderNode(p)]):[3,10];case 8:r.sent(),r.label=9;case 9:return n++,[3,7];case 10:o=0,a=t.nonPositionedFloats,r.label=11;case 11:return o<a.length?(p=a[o],[4,this.renderStack(p)]):[3,14];case 12:r.sent(),r.label=13;case 13:return o++,[3,11];case 14:s=0,l=t.nonPositionedInlineLevel,r.label=15;case 15:return s<l.length?(p=l[s],[4,this.renderStack(p)]):[3,18];case 16:r.sent(),r.label=17;case 17:return s++,[3,15];case 18:c=0,u=t.inlineLevel,r.label=19;case 19:return c<u.length?(p=u[c],[4,this.renderNode(p)]):[3,22];case 20:r.sent(),r.label=21;case 21:return c++,[3,19];case 22:h=0,d=t.zeroOrAutoZIndexOrTransformedOrOpacity,r.label=23;case 23:return h<d.length?(p=d[h],[4,this.renderStack(p)]):[3,26];case 24:r.sent(),r.label=25;case 25:return h++,[3,23];case 26:g=0,f=t.positiveZIndex,r.label=27;case 27:return g<f.length?(p=f[g],[4,this.renderStack(p)]):[3,30];case 28:r.sent(),r.label=29;case 29:return g++,[3,27];case 30:return[2]}}))}))},A.prototype.mask=function(t){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(t.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},A.prototype.formatPath=function(t){var e=this;t.forEach((function(t,A){var n=Gs(t)?t.start:t;0===A?e.ctx.moveTo(n.x,n.y):e.ctx.lineTo(n.x,n.y),Gs(t)&&e.ctx.bezierCurveTo(t.startControl.x,t.startControl.y,t.endControl.x,t.endControl.y,t.end.x,t.end.y)}))},A.prototype.renderRepeat=function(t,e,A,n){this.path(t),this.ctx.fillStyle=e,this.ctx.translate(A,n),this.ctx.fill(),this.ctx.translate(-A,-n)},A.prototype.resizeImage=function(t,e,A){var n;if(t.width===e&&t.height===A)return t;var r=null!==(n=this.canvas.ownerDocument)&&void 0!==n?n:document,i=r.createElement("canvas");i.width=Math.max(1,e),i.height=Math.max(1,A);var o=i.getContext("2d");return o.drawImage(t,0,0,t.width,t.height,0,0,e,A),i},A.prototype.renderBackgroundImage=function(t){return n(this,void 0,void 0,(function(){var e,A,n,i,o,a;return r(this,(function(s){switch(s.label){case 0:e=t.styles.backgroundImage.length-1,A=function(A){var i,o,a,s,l,c,u,h,d,g,f,p,m,w,B,v,y,b,C,x,F,Q,U,_,I,E,k,S,D,H,M;return r(this,(function(r){switch(r.label){case 0:if(0!==A.type)return[3,5];i=void 0,o=A.url,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,n.context.cache.match(o)];case 2:return i=r.sent(),[3,4];case 3:return r.sent(),n.context.logger.error("Error loading background-image "+o),[3,4];case 4:return i&&(a=vl(t,e,[i.width,i.height,i.width/i.height]),v=a[0],Q=a[1],U=a[2],C=a[3],x=a[4],w=n.ctx.createPattern(n.resizeImage(i,C,x),"repeat"),n.renderRepeat(v,w,Q,U)),[3,6];case 5:jn(A)?(s=vl(t,e,[null,null,null]),v=s[0],Q=s[1],U=s[2],C=s[3],x=s[4],l=Qn(A.angle,C,x),c=l[0],u=l[1],h=l[2],d=l[3],g=l[4],f=document.createElement("canvas"),f.width=C,f.height=x,p=f.getContext("2d"),m=p.createLinearGradient(u,d,h,g),xn(A.stops,c).forEach((function(t){return m.addColorStop(t.stop,hn(t.color))})),p.fillStyle=m,p.fillRect(0,0,C,x),C>0&&x>0&&(w=n.ctx.createPattern(f,"repeat"),n.renderRepeat(v,w,Q,U))):Vn(A)&&(B=vl(t,e,[null,null,null]),v=B[0],y=B[1],b=B[2],C=B[3],x=B[4],F=0===A.position.length?[JA]:A.position,Q=tn(F[0],C),U=tn(F[F.length-1],x),_=In(A,Q,U,C,x),I=_[0],E=_[1],I>0&&E>0&&(k=n.ctx.createRadialGradient(y+Q,b+U,0,y+Q,b+U,I),xn(A.stops,2*I).forEach((function(t){return k.addColorStop(t.stop,hn(t.color))})),n.path(v),n.ctx.fillStyle=k,I!==E?(S=t.bounds.left+.5*t.bounds.width,D=t.bounds.top+.5*t.bounds.height,H=E/I,M=1/H,n.ctx.save(),n.ctx.translate(S,D),n.ctx.transform(1,0,0,H,0,0),n.ctx.translate(-S,-D),n.ctx.fillRect(y,M*(b-D)+D,C,x*M),n.ctx.restore()):n.ctx.fill())),r.label=6;case 6:return e--,[2]}}))},n=this,i=0,o=t.styles.backgroundImage.slice(0).reverse(),s.label=1;case 1:return i<o.length?(a=o[i],[5,A(a)]):[3,4];case 2:s.sent(),s.label=3;case 3:return i++,[3,1];case 4:return[2]}}))}))},A.prototype.renderSolidBorder=function(t,e,A){return n(this,void 0,void 0,(function(){return r(this,(function(n){return this.path(cl(A,e)),this.ctx.fillStyle=hn(t),this.ctx.fill(),[2]}))}))},A.prototype.renderDoubleBorder=function(t,e,A,i){return n(this,void 0,void 0,(function(){var n,o;return r(this,(function(r){switch(r.label){case 0:return e<3?[4,this.renderSolidBorder(t,A,i)]:[3,2];case 1:return r.sent(),[2];case 2:return n=ul(i,A),this.path(n),this.ctx.fillStyle=hn(t),this.ctx.fill(),o=hl(i,A),this.path(o),this.ctx.fill(),[2]}}))}))},A.prototype.renderNodeBackgroundAndBorders=function(t){return n(this,void 0,void 0,(function(){var e,A,n,i,o,a,s,l,c=this;return r(this,(function(r){switch(r.label){case 0:return this.applyEffects(t.getEffects(2)),e=t.container.styles,A=!un(e.backgroundColor)||e.backgroundImage.length,n=[{style:e.borderTopStyle,color:e.borderTopColor,width:e.borderTopWidth},{style:e.borderRightStyle,color:e.borderRightColor,width:e.borderRightWidth},{style:e.borderBottomStyle,color:e.borderBottomColor,width:e.borderBottomWidth},{style:e.borderLeftStyle,color:e.borderLeftColor,width:e.borderLeftWidth}],i=Dl(xl(e.backgroundClip,0),t.curves),A||e.boxShadow.length?(this.ctx.save(),this.path(i),this.ctx.clip(),un(e.backgroundColor)||(this.ctx.fillStyle=hn(e.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:r.sent(),this.ctx.restore(),e.boxShadow.slice(0).reverse().forEach((function(e){c.ctx.save();var A=Ys(t.curves),n=e.inset?0:El,r=rl(A,-n+(e.inset?1:-1)*e.spread.number,(e.inset?1:-1)*e.spread.number,e.spread.number*(e.inset?-2:2),e.spread.number*(e.inset?-2:2));e.inset?(c.path(A),c.ctx.clip(),c.mask(r)):(c.mask(A),c.ctx.clip(),c.path(r)),c.ctx.shadowOffsetX=e.offsetX.number+n,c.ctx.shadowOffsetY=e.offsetY.number,c.ctx.shadowColor=hn(e.color),c.ctx.shadowBlur=e.blur.number,c.ctx.fillStyle=e.inset?hn(e.color):"rgba(0,0,0,1)",c.ctx.fill(),c.ctx.restore()})),r.label=2;case 2:o=0,a=0,s=n,r.label=3;case 3:return a<s.length?(l=s[a],0!==l.style&&!un(l.color)&&l.width>0?2!==l.style?[3,5]:[4,this.renderDashedDottedBorder(l.color,l.width,o,t.curves,2)]:[3,11]):[3,13];case 4:return r.sent(),[3,11];case 5:return 3!==l.style?[3,7]:[4,this.renderDashedDottedBorder(l.color,l.width,o,t.curves,3)];case 6:return r.sent(),[3,11];case 7:return 4!==l.style?[3,9]:[4,this.renderDoubleBorder(l.color,l.width,o,t.curves)];case 8:return r.sent(),[3,11];case 9:return[4,this.renderSolidBorder(l.color,o,t.curves)];case 10:r.sent(),r.label=11;case 11:o++,r.label=12;case 12:return a++,[3,3];case 13:return[2]}}))}))},A.prototype.renderDashedDottedBorder=function(t,e,A,i,o){return n(this,void 0,void 0,(function(){var n,a,s,l,c,u,h,d,g,f,p,m,w,B,v,y;return r(this,(function(r){return this.ctx.save(),n=dl(i,A),a=cl(i,A),2===o&&(this.path(a),this.ctx.clip()),Gs(a[0])?(s=a[0].start.x,l=a[0].start.y):(s=a[0].x,l=a[0].y),Gs(a[1])?(c=a[1].end.x,u=a[1].end.y):(c=a[1].x,u=a[1].y),h=0===A||2===A?Math.abs(s-c):Math.abs(l-u),this.ctx.beginPath(),3===o?this.formatPath(n):this.formatPath(a.slice(0,2)),d=e<3?3*e:2*e,g=e<3?2*e:e,3===o&&(d=e,g=e),f=!0,h<=2*d?f=!1:h<=2*d+g?(p=h/(2*d+g),d*=p,g*=p):(m=Math.floor((h+g)/(d+g)),w=(h-m*d)/(m-1),B=(h-(m+1)*d)/m,g=B<=0||Math.abs(g-w)<Math.abs(g-B)?w:B),f&&(3===o?this.ctx.setLineDash([0,d+g]):this.ctx.setLineDash([d,g])),3===o?(this.ctx.lineCap="round",this.ctx.lineWidth=e):this.ctx.lineWidth=2*e+1.1,this.ctx.strokeStyle=hn(t),this.ctx.stroke(),this.ctx.setLineDash([]),2===o&&(Gs(a[0])&&(v=a[3],y=a[0],this.ctx.beginPath(),this.formatPath([new Ks(v.end.x,v.end.y),new Ks(y.start.x,y.start.y)]),this.ctx.stroke()),Gs(a[1])&&(v=a[1],y=a[2],this.ctx.beginPath(),this.formatPath([new Ks(v.end.x,v.end.y),new Ks(y.start.x,y.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]}))}))},A.prototype.render=function(t){return n(this,void 0,void 0,(function(){var e;return r(this,(function(A){switch(A.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=hn(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),e=ll(t),[4,this.renderStack(e)];case 1:return A.sent(),this.applyEffects([]),[2,this.canvas]}}))}))},A}(Il),Sl=function(t){return t instanceof va||(t instanceof Ba||t instanceof wa&&t.type!==fa&&t.type!==ga)},Dl=function(t,e){switch(t){case 0:return Ys(e);case 2:return zs(e);case 1:default:return Xs(e)}},Hl=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Ml=["-apple-system","system-ui"],Ol=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter((function(t){return-1===Ml.indexOf(t)})):t},Tl=function(t){function A(e,A){var n=t.call(this,e,A)||this;return n.canvas=A.canvas?A.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=A,n.canvas.width=Math.floor(A.width*A.scale),n.canvas.height=Math.floor(A.height*A.scale),n.canvas.style.width=A.width+"px",n.canvas.style.height=A.height+"px",n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-A.x,-A.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+A.width+"x"+A.height+" at "+A.x+","+A.y+") with scale "+A.scale),n}return e(A,t),A.prototype.render=function(t){return n(this,void 0,void 0,(function(){var e,A;return r(this,(function(n){switch(n.label){case 0:return e=jo(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,Pl(e)];case 1:return A=n.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=hn(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]}}))}))},A}(Il),Pl=function(t){return new Promise((function(e,A){var n=new Image;n.onload=function(){e(n)},n.onerror=A,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(t))}))},Ll=function(){function t(t){var e=t.id,A=t.enabled;this.id=e,this.enabled=A,this.start=Date.now()}return t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.debug?console.debug.apply(console,i([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&"undefined"!==typeof window&&window.console&&"function"===typeof console.info&&console.info.apply(console,i([this.id,this.getTime()+"ms"],t))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.warn?console.warn.apply(console,i([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.error?console.error.apply(console,i([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},t.instances={},t}(),Rl=function(){function t(e,A){var n;this.windowBounds=A,this.instanceName="#"+t.instanceCount++,this.logger=new Ll({id:this.instanceName,enabled:e.logging}),this.cache=null!==(n=e.cache)&&void 0!==n?n:new Ds(this,e)}return t.instanceCount=1,t}(),Nl=function(t,e){return void 0===e&&(e={}),Kl(t,e)};"undefined"!==typeof window&&Ss.setContext(window);var Kl=function(t,e){return n(void 0,void 0,void 0,(function(){var n,i,l,c,u,h,d,g,f,p,m,w,B,v,y,b,C,x,F,Q,U,_,I,E,k,S,D,H,M,O,T,P,L,R,N,K,j,V,G;return r(this,(function(r){switch(r.label){case 0:if(!t||"object"!==typeof t)return[2,Promise.reject("Invalid element provided as first argument")];if(n=t.ownerDocument,!n)throw new Error("Element is not attached to a Document");if(i=n.defaultView,!i)throw new Error("Document is not attached to a Window");return l={allowTaint:null!==(I=e.allowTaint)&&void 0!==I&&I,imageTimeout:null!==(E=e.imageTimeout)&&void 0!==E?E:15e3,proxy:e.proxy,useCORS:null!==(k=e.useCORS)&&void 0!==k&&k},c=A({logging:null===(S=e.logging)||void 0===S||S,cache:e.cache},l),u={windowWidth:null!==(D=e.windowWidth)&&void 0!==D?D:i.innerWidth,windowHeight:null!==(H=e.windowHeight)&&void 0!==H?H:i.innerHeight,scrollX:null!==(M=e.scrollX)&&void 0!==M?M:i.pageXOffset,scrollY:null!==(O=e.scrollY)&&void 0!==O?O:i.pageYOffset},h=new o(u.scrollX,u.scrollY,u.windowWidth,u.windowHeight),d=new Rl(c,h),g=null!==(T=e.foreignObjectRendering)&&void 0!==T&&T,f={allowTaint:null!==(P=e.allowTaint)&&void 0!==P&&P,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:g,copyStyles:g},d.logger.debug("Starting document clone with size "+h.width+"x"+h.height+" scrolled to "+-h.left+","+-h.top),p=new gs(d,t,f),m=p.clonedReferenceElement,m?[4,p.toIFrame(n,h)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return w=r.sent(),B=Ta(m)||Ma(m)?s(m.ownerDocument):a(d,m),v=B.width,y=B.height,b=B.left,C=B.top,x=jl(d,m,e.backgroundColor),F={canvas:e.canvas,backgroundColor:x,scale:null!==(R=null!==(L=e.scale)&&void 0!==L?L:i.devicePixelRatio)&&void 0!==R?R:1,x:(null!==(N=e.x)&&void 0!==N?N:0)+b,y:(null!==(K=e.y)&&void 0!==K?K:0)+C,width:null!==(j=e.width)&&void 0!==j?j:Math.ceil(v),height:null!==(V=e.height)&&void 0!==V?V:Math.ceil(y)},g?(d.logger.debug("Document cloned, using foreign object rendering"),_=new Tl(d,F),[4,_.render(m)]):[3,3];case 2:return Q=r.sent(),[3,5];case 3:return d.logger.debug("Document cloned, element located at "+b+","+C+" with size "+v+"x"+y+" using computed rendering"),d.logger.debug("Starting DOM parsing"),U=Fa(d,m),x===U.styles.backgroundColor&&(U.styles.backgroundColor=vn.TRANSPARENT),d.logger.debug("Starting renderer for element at "+F.x+","+F.y+" with size "+F.width+"x"+F.height),_=new kl(d,F),[4,_.render(U)];case 4:Q=r.sent(),r.label=5;case 5:return(null===(G=e.removeContainer)||void 0===G||G)&&(gs.destroy(w)||d.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),d.logger.debug("Finished rendering"),[2,Q]}}))}))},jl=function(t,e,A){var n=e.ownerDocument,r=n.documentElement?Bn(t,getComputedStyle(n.documentElement).backgroundColor):vn.TRANSPARENT,i=n.body?Bn(t,getComputedStyle(n.body).backgroundColor):vn.TRANSPARENT,o="string"===typeof A?Bn(t,A):null===A?vn.TRANSPARENT:4294967295;return e===n.documentElement?un(r)?un(i)?o:i:r:o};return Nl}))},c24e:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAANhSURBVHgB7Ve9ThtBEJ7ZM4pNdYIasJ8gjmQkBFhxqpRxngC7iYxSxDwB5gkgVUyFKVMRylQxMiJEIorLdPwobeBScZLtncyez/djn313xF34pPOtb+d2vp3Z+TmA/x0ID4C+UklDAtIaQpqXMHpEBiSSbaO5Z0BMRCaglIoZfAeSimApDgDBFQhoyg7sGOf1qyjrhhLQC1VddMxdlixBHCA0ohDRJk3q65WCkJ2vgLgC8ZFFhOJsevn6/ubi5zghMW5CX9vc4MkvvBUdYkAilEm5QoFdRURHaq1x8oEumM9vFtWLEBME1L473X+mxnPrlRrfth1iAC+M03pz+J0RC6jDRpJ2ITbIIMCtwb/b03qNbzuuIjxS5ymUgNCY9bhT7lUHcMI+Lg8umUhlhndok3hvv6GLnjmyMZ8LrFBLwCVEAZ/y21a9HCamF0o6dpI/0N6U7ELGGxk+C1i7nzKMZsMgtpCjIwFVn84h+QJEhCS4jirbdw31syTCq0ACylSu72kkpXp9bp/oGsQB4bG9UFpffbs0eJxwBLrJrCssdgBJnVjHJaz48ner3oAHQoJsCxD9fCB6Gf61LOhYQEPphAhycRkOo3+FJoRjVU26UeZaAMRIjCoSnFDUcJtNV+JxCSYBae+2tb8FIehp0iHjWKA3SJ+g3OWm31iWIKyOVSpdC7OLRwlAwmw7Y0FPvS9Pwx3sf3dN7h3c5zZUvMLACoTF4QWmQKJgLc06vI2LPw8gHPYHpKtSDMEkYmM+z2fHDnHkhsU75yPAabLhTBAcBBWPMMzlKwfqml91DyxJT1Xs+K3oa0jMXxdGaiGXYbZZvnSkTvL+5vtnr8zsYq7AtzSMR9a6uBlJLSz/SS3lXqqxNcP14+6sfugVHqmGcsasOpmQTzWHnq8+9LrccAB+gihAq6zXrKXY98O7Vxhpycyrtvlkcfkbl8mS/aiQWswBt1Un1jxbyby5+Di7lFOZrAgRQQLLxln9fPh5YEumioeU4C21tbm1yqXXr3Gg1jJaHwKtNrEr1vNviijFLnobFDYlIbX7L2OIBciQgK+DWrFIBCwSqknR2I8IGxAHqi3XklthHyvxPkyYCJfl5zjpwwThmMN5b2ofJoFkVH7omhxqUte4iFl1pMsZLqLSR3jxFwEXWavIHthgAAAAAElFTkSuQmCC"},d67e:function(t,e,A){(function(e,n){(function(e,n){t.exports=n(A("e511"),A("c0e9"))})(0,(function(t,A){"use strict";t=t&&t.hasOwnProperty("default")?t["default"]:t,A=A&&A.hasOwnProperty("default")?A["default"]:A;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var A=arguments[e];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(t[n]=A[n])}return t},o=function(t){var e="undefined"===typeof t?"undefined":r(t);return"undefined"===e?"undefined":"string"===e||t instanceof String?"string":"number"===e||t instanceof Number?"number":"function"===e||t instanceof Function?"function":t&&t.constructor===Array?"array":t&&1===t.nodeType?"element":"object"===e?"object":"unknown"},a=function(t,e){var A=document.createElement(t);if(e.className&&(A.className=e.className),e.innerHTML){A.innerHTML=e.innerHTML;for(var n=A.getElementsByTagName("script"),r=n.length;r-- >0;null)n[r].parentNode.removeChild(n[r])}for(var i in e.style)A.style[i]=e.style[i];return A},s=function t(e,A){for(var n=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),r=e.firstChild;r;r=r.nextSibling)!0!==A&&1===r.nodeType&&"SCRIPT"===r.nodeName||n.appendChild(t(r,A));return 1===e.nodeType&&("CANVAS"===e.nodeName?(n.width=e.width,n.height=e.height,n.getContext("2d").drawImage(e,0,0)):"TEXTAREA"!==e.nodeName&&"SELECT"!==e.nodeName||(n.value=e.value),n.addEventListener("load",(function(){n.scrollTop=e.scrollTop,n.scrollLeft=e.scrollLeft}),!0)),n},l=function(t,e){if("number"===o(t))return 72*t/96/e;var A={};for(var n in t)A[n]=72*t[n]/96/e;return A},c=function(t,e){return Math.floor(t*e/72*96)},u="undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:{};function h(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function d(t,e){return e={exports:{}},t(e,e.exports),e.exports}var g=d((function(t,e){ /*! * @overview es6-promise - a tiny implementation of Promises/A+. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) * @license Licensed under MIT license * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE * @version v4.2.5+7f2b526d */ (function(e,A){t.exports=A()})(0,(function(){function t(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}function e(t){return"function"===typeof t}var A=void 0;A=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var r=A,i=0,o=void 0,a=void 0,s=function(t,e){C[i]=t,C[i+1]=e,i+=2,2===i&&(a?a(x):Q())};function l(t){a=t}function c(t){s=t}var d="undefined"!==typeof window?window:void 0,g=d||{},f=g.MutationObserver||g.WebKitMutationObserver,p="undefined"===typeof self&&"undefined"!==typeof n&&"[object process]"==={}.toString.call(n),m="undefined"!==typeof Uint8ClampedArray&&"undefined"!==typeof importScripts&&"undefined"!==typeof MessageChannel;function w(){return function(){return n.nextTick(x)}}function B(){return"undefined"!==typeof o?function(){o(x)}:b()}function v(){var t=0,e=new f(x),A=document.createTextNode("");return e.observe(A,{characterData:!0}),function(){A.data=t=++t%2}}function y(){var t=new MessageChannel;return t.port1.onmessage=x,function(){return t.port2.postMessage(0)}}function b(){var t=setTimeout;return function(){return t(x,1)}}var C=new Array(1e3);function x(){for(var t=0;t<i;t+=2){var e=C[t],A=C[t+1];e(A),C[t]=void 0,C[t+1]=void 0}i=0}function F(){try{var t=Function("return this")().require("vertx");return o=t.runOnLoop||t.runOnContext,B()}catch(e){return b()}}var Q=void 0;function U(t,e){var A=this,n=new this.constructor(E);void 0===n[I]&&$(n);var r=A._state;if(r){var i=arguments[r-1];s((function(){return z(r,n,i,A._result)}))}else q(A,n,t,e);return n}function _(t){var e=this;if(t&&"object"===typeof t&&t.constructor===e)return t;var A=new e(E);return K(A,t),A}Q=p?w():f?v():m?y():void 0===d&&"function"===typeof h?F():b();var I=Math.random().toString(36).substring(2);function E(){}var k=void 0,S=1,D=2,H={error:null};function M(){return new TypeError("You cannot resolve a promise with itself")}function O(){return new TypeError("A promises callback cannot return that same promise.")}function T(t){try{return t.then}catch(e){return H.error=e,H}}function P(t,e,A,n){try{t.call(e,A,n)}catch(r){return r}}function L(t,e,A){s((function(t){var n=!1,r=P(A,e,(function(A){n||(n=!0,e!==A?K(t,A):V(t,A))}),(function(e){n||(n=!0,G(t,e))}),"Settle: "+(t._label||" unknown promise"));!n&&r&&(n=!0,G(t,r))}),t)}function R(t,e){e._state===S?V(t,e._result):e._state===D?G(t,e._result):q(e,void 0,(function(e){return K(t,e)}),(function(e){return G(t,e)}))}function N(t,A,n){A.constructor===t.constructor&&n===U&&A.constructor.resolve===_?R(t,A):n===H?(G(t,H.error),H.error=null):void 0===n?V(t,A):e(n)?L(t,A,n):V(t,A)}function K(e,A){e===A?G(e,M()):t(A)?N(e,A,T(A)):V(e,A)}function j(t){t._onerror&&t._onerror(t._result),W(t)}function V(t,e){t._state===k&&(t._result=e,t._state=S,0!==t._subscribers.length&&s(W,t))}function G(t,e){t._state===k&&(t._state=D,t._result=e,s(j,t))}function q(t,e,A,n){var r=t._subscribers,i=r.length;t._onerror=null,r[i]=e,r[i+S]=A,r[i+D]=n,0===i&&t._state&&s(W,t)}function W(t){var e=t._subscribers,A=t._state;if(0!==e.length){for(var n=void 0,r=void 0,i=t._result,o=0;o<e.length;o+=3)n=e[o],r=e[o+A],n?z(A,n,r,i):r(i);t._subscribers.length=0}}function Y(t,e){try{return t(e)}catch(A){return H.error=A,H}}function z(t,A,n,r){var i=e(n),o=void 0,a=void 0,s=void 0,l=void 0;if(i){if(o=Y(n,r),o===H?(l=!0,a=o.error,o.error=null):s=!0,A===o)return void G(A,O())}else o=r,s=!0;A._state!==k||(i&&s?K(A,o):l?G(A,a):t===S?V(A,o):t===D&&G(A,o))}function X(t,e){try{e((function(e){K(t,e)}),(function(e){G(t,e)}))}catch(A){G(t,A)}}var J=0;function Z(){return J++}function $(t){t[I]=J++,t._state=void 0,t._result=void 0,t._subscribers=[]}function tt(){return new Error("Array Methods must be provided an Array")}var et=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(E),this.promise[I]||$(this.promise),r(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?V(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&V(this.promise,this._result))):G(this.promise,tt())}return t.prototype._enumerate=function(t){for(var e=0;this._state===k&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var A=this._instanceConstructor,n=A.resolve;if(n===_){var r=T(t);if(r===U&&t._state!==k)this._settledAt(t._state,e,t._result);else if("function"!==typeof r)this._remaining--,this._result[e]=t;else if(A===at){var i=new A(E);N(i,t,r),this._willSettleAt(i,e)}else this._willSettleAt(new A((function(e){return e(t)})),e)}else this._willSettleAt(n(t),e)},t.prototype._settledAt=function(t,e,A){var n=this.promise;n._state===k&&(this._remaining--,t===D?G(n,A):this._result[e]=A),0===this._remaining&&V(n,this._result)},t.prototype._willSettleAt=function(t,e){var A=this;q(t,void 0,(function(t){return A._settledAt(S,e,t)}),(function(t){return A._settledAt(D,e,t)}))},t}();function At(t){return new et(this,t).promise}function nt(t){var e=this;return r(t)?new e((function(A,n){for(var r=t.length,i=0;i<r;i++)e.resolve(t[i]).then(A,n)})):new e((function(t,e){return e(new TypeError("You must pass an array to race."))}))}function rt(t){var e=this,A=new e(E);return G(A,t),A}function it(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function ot(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var at=function(){function t(e){this[I]=Z(),this._result=this._state=void 0,this._subscribers=[],E!==e&&("function"!==typeof e&&it(),this instanceof t?X(this,e):ot())}return t.prototype.catch=function(t){return this.then(null,t)},t.prototype.finally=function(t){var A=this,n=A.constructor;return e(t)?A.then((function(e){return n.resolve(t()).then((function(){return e}))}),(function(e){return n.resolve(t()).then((function(){throw e}))})):A.then(t,t)},t}();function st(){var t=void 0;if("undefined"!==typeof u)t=u;else if("undefined"!==typeof self)t=self;else try{t=Function("return this")()}catch(n){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var A=null;try{A=Object.prototype.toString.call(e.resolve())}catch(n){}if("[object Promise]"===A&&!e.cast)return}t.Promise=at}return at.prototype.then=U,at.all=At,at.race=nt,at.resolve=_,at.reject=rt,at._setScheduler=l,at._setAsap=c,at._asap=s,at.polyfill=st,at.Promise=at,at}))})),f=g.Promise,p=function t(e){var A=i(t.convert(f.resolve()),JSON.parse(JSON.stringify(t.template))),n=t.convert(f.resolve(),A);return n=n.setProgress(1,t,1,[t]),n=n.set(e),n};p.prototype=Object.create(f.prototype),p.prototype.constructor=p,p.convert=function(t,e){return t.__proto__=e||p.prototype,t},p.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],image:{type:"jpeg",quality:.95},enableLinks:!0,html2canvas:{},jsPDF:{}}},p.prototype.from=function(t,e){function A(t){switch(o(t)){case"string":return"string";case"element":return"canvas"===t.nodeName.toLowerCase?"canvas":"element";default:return"unknown"}}return this.then((function(){switch(e=e||A(t),e){case"string":return this.set({src:a("div",{innerHTML:t})});case"element":return this.set({src:t});case"canvas":return this.set({canvas:t});case"img":return this.set({img:t});default:return this.error("Unknown source type.")}}))},p.prototype.to=function(t){switch(t){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},p.prototype.toContainer=function(){var t=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(t).then((function(){var t={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},e={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};t.opacity=0;var A=s(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=a("div",{className:"html2pdf__overlay",style:t}),this.prop.container=a("div",{className:"html2pdf__container",style:e}),this.prop.container.appendChild(A),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)}))},p.prototype.toCanvas=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then((function(){var t=i({},this.opt.html2canvas);return delete t.onrendered,A(this.prop.container,t)})).then((function(t){var e=this.opt.html2canvas.onrendered||function(){};e(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)}))},p.prototype.toImg=function(){var t=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(t).then((function(){var t=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=t}))},p.prototype.toPdf=function(){var e=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(e).then((function(){var e=this.prop.canvas,A=this.opt,n=e.height,r=Math.floor(e.width*this.prop.pageSize.inner.ratio),i=Math.ceil(n/r),o=this.prop.pageSize.inner.height,a=document.createElement("canvas"),s=a.getContext("2d");a.width=e.width,a.height=r,this.prop.pdf=this.prop.pdf||new t(A.jsPDF);for(var l=0;l<i;l++){l===i-1&&n%r!==0&&(a.height=n%r,o=a.height*this.prop.pageSize.inner.width/a.width);var c=a.width,u=a.height;s.fillStyle="white",s.fillRect(0,0,c,u),s.drawImage(e,0,l*r,c,u,0,0,c,u),l&&this.prop.pdf.addPage();var h=a.toDataURL("image/"+A.image.type,A.image.quality);this.prop.pdf.addImage(h,A.image.type,A.margin[1],A.margin[0],this.prop.pageSize.inner.width,o)}}))},p.prototype.output=function(t,e,A){return A=A||"pdf","img"===A.toLowerCase()||"image"===A.toLowerCase()?this.outputImg(t,e):this.outputPdf(t,e)},p.prototype.outputPdf=function(t,e){var A=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(A).then((function(){return this.prop.pdf.output(t,e)}))},p.prototype.outputImg=function(t,e){var A=[function(){return this.prop.img||this.toImg()}];return this.thenList(A).then((function(){switch(t){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+t+'" is not supported.'}}))},p.prototype.save=function(t){var e=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(e).set(t?{filename:t}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},p.prototype.set=function(t){if("object"!==o(t))return this;var e=Object.keys(t||{}).map((function(e){if(e in p.template.prop)return function(){this.prop[e]=t[e]};switch(e){case"margin":return this.setMargin.bind(this,t.margin);case"jsPDF":return function(){return this.opt.jsPDF=t.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,t.pageSize);default:return function(){this.opt[e]=t[e]}}}),this);return this.then((function(){return this.thenList(e)}))},p.prototype.get=function(t,e){return this.then((function(){var A=t in p.template.prop?this.prop[t]:this.opt[t];return e?e(A):A}))},p.prototype.setMargin=function(t){return this.then((function(){switch(o(t)){case"number":t=[t,t,t,t];case"array":if(2===t.length&&(t=[t[0],t[1],t[0],t[1]]),4===t.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=t})).then(this.setPageSize)},p.prototype.setPageSize=function(e){return this.then((function(){e=e||t.getPageSize(this.opt.jsPDF),e.hasOwnProperty("inner")||(e.inner={width:e.width-this.opt.margin[1]-this.opt.margin[3],height:e.height-this.opt.margin[0]-this.opt.margin[2]},e.inner.px={width:c(e.inner.width,e.k),height:c(e.inner.height,e.k)},e.inner.ratio=e.inner.height/e.inner.width),this.prop.pageSize=e}))},p.prototype.setProgress=function(t,e,A,n){return null!=t&&(this.progress.val=t),null!=e&&(this.progress.state=e),null!=A&&(this.progress.n=A),null!=n&&(this.progress.stack=n),this.progress.ratio=this.progress.val/this.progress.state,this},p.prototype.updateProgress=function(t,e,A,n){return this.setProgress(t?this.progress.val+t:null,e||null,A?this.progress.n+A:null,n?this.progress.stack.concat(n):null)},p.prototype.then=function(t,e){var A=this;return this.thenCore(t,e,(function(t,e){return A.updateProgress(null,null,1,[t]),f.prototype.then.call(this,(function(e){return A.updateProgress(null,t),e})).then(t,e).then((function(t){return A.updateProgress(1),t}))}))},p.prototype.thenCore=function(t,e,A){A=A||f.prototype.then;var n=this;t&&(t=t.bind(n)),e&&(e=e.bind(n));var r=-1!==f.toString().indexOf("[native code]")&&"Promise"===f.name,o=r?n:p.convert(i({},n),f.prototype),a=A.call(o,t,e);return p.convert(a,n.__proto__)},p.prototype.thenExternal=function(t,e){return f.prototype.then.call(this,t,e)},p.prototype.thenList=function(t){var e=this;return t.forEach((function(t){e=e.thenCore(t)})),e},p.prototype["catch"]=function(t){t&&(t=t.bind(this));var e=f.prototype["catch"].call(this,t);return p.convert(e,this)},p.prototype.catchExternal=function(t){return f.prototype["catch"].call(this,t)},p.prototype.error=function(t){return this.then((function(){throw new Error(t)}))},p.prototype.using=p.prototype.set,p.prototype.saveAs=p.prototype.save,p.prototype.export=p.prototype.output,p.prototype.run=p.prototype.then,t.getPageSize=function(t,e,A){if("object"===("undefined"===typeof t?"undefined":r(t))){var n=t;t=n.orientation,e=n.unit||e,A=n.format||A}e=e||"mm",A=A||"a4",t=(""+(t||"P")).toLowerCase();var i=(""+A).toLowerCase(),o={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(e){case"pt":var a=1;break;case"mm":a=72/25.4;break;case"cm":a=72/2.54;break;case"in":a=72;break;case"px":a=.75;break;case"pc":a=12;break;case"em":a=12;break;case"ex":a=6;break;default:throw"Invalid unit: "+e}if(o.hasOwnProperty(i))var s=o[i][1]/a,l=o[i][0]/a;else try{s=A[1],l=A[0]}catch(h){throw new Error("Invalid format: "+A)}if("p"===t||"portrait"===t){if(t="p",l>s){var c=l;l=s,s=c}}else{if("l"!==t&&"landscape"!==t)throw"Invalid orientation: "+t;if(t="l",s>l){c=l;l=s,s=c}}var u={width:l,height:s,unit:e,k:a};return u};var m={toContainer:p.prototype.toContainer};p.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},p.prototype.toContainer=function(){return m.toContainer.call(this).then((function(){var t=this.prop.container,e=this.prop.pageSize.inner.px.height,A=[].concat(this.opt.pagebreak.mode),n={avoidAll:-1!==A.indexOf("avoid-all"),css:-1!==A.indexOf("css"),legacy:-1!==A.indexOf("legacy")},r={},i=this;["before","after","avoid"].forEach((function(e){var A=n.avoidAll&&"avoid"===e;r[e]=A?[]:[].concat(i.opt.pagebreak[e]||[]),r[e].length>0&&(r[e]=Array.prototype.slice.call(t.querySelectorAll(r[e].join(", "))))}));var o=t.querySelectorAll(".html2pdf__page-break");o=Array.prototype.slice.call(o);var s=t.querySelectorAll("*");Array.prototype.forEach.call(s,(function(t){var A={before:!1,after:n.legacy&&-1!==o.indexOf(t),avoid:n.avoidAll};if(n.css){var i=window.getComputedStyle(t),s=["always","page","left","right"],l=["avoid","avoid-page"];A={before:A.before||-1!==s.indexOf(i.breakBefore||i.pageBreakBefore),after:A.after||-1!==s.indexOf(i.breakAfter||i.pageBreakAfter),avoid:A.avoid||-1!==l.indexOf(i.breakInside||i.pageBreakInside)}}Object.keys(A).forEach((function(e){A[e]=A[e]||-1!==r[e].indexOf(t)}));var c=t.getBoundingClientRect();if(A.avoid&&!A.before){var u=Math.floor(c.top/e),h=Math.floor(c.bottom/e),d=Math.abs(c.bottom-c.top)/e;h!==u&&d<=1&&(A.before=!0)}if(A.before){var g=a("div",{style:{display:"block",height:e-c.top%e+"px"}});t.parentNode.insertBefore(g,t)}if(A.after){g=a("div",{style:{display:"block",height:e-c.bottom%e+"px"}});t.parentNode.insertBefore(g,t.nextSibling)}}))}))};var w=[],B={toContainer:p.prototype.toContainer,toPdf:p.prototype.toPdf};p.prototype.toContainer=function(){return B.toContainer.call(this).then((function(){if(this.opt.enableLinks){var t=this.prop.container,e=t.querySelectorAll("a"),A=l(t.getBoundingClientRect(),this.prop.pageSize.k);w=[],Array.prototype.forEach.call(e,(function(t){for(var e=t.getClientRects(),n=0;n<e.length;n++){var r=l(e[n],this.prop.pageSize.k);r.left-=A.left,r.top-=A.top;var i=Math.floor(r.top/this.prop.pageSize.inner.height)+1,o=this.opt.margin[0]+r.top%this.prop.pageSize.inner.height,a=this.opt.margin[1]+r.left;w.push({page:i,top:o,left:a,clientRect:r,link:t})}}),this)}}))},p.prototype.toPdf=function(){return B.toPdf.call(this).then((function(){if(this.opt.enableLinks){w.forEach((function(t){this.prop.pdf.setPage(t.page),this.prop.pdf.link(t.left,t.top,t.clientRect.width,t.clientRect.height,{url:t.link.href})}),this);var t=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(t)}}))};var v=function t(e,A){var n=new t.Worker(A);return e?n.from(e).save():n};return v.Worker=p,v}))}).call(this,A("c8ba"),A("4362"))},e511:function(t,e,A){(function(n,r){var i,o;!function(e,A){t.exports=A()}(0,(function(){"use strict";var a,s,l,c,u,h,d,g,f,p,m,w,B,v,y,b,C,x,F,Q,U,_,I,E,k,S,D,H,M,O,T,P,L,R,N,K,j,V,G,q,W,Y,z,X,J,Z,$,tt,et,At,nt,rt,it,ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},at=function(n){var r="1.3",o={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};function a(t){var e={};this.subscribe=function(t,A,n){if("function"!=typeof A)return!1;e.hasOwnProperty(t)||(e[t]={});var r=Math.random().toString(35);return e[t][r]=[A,!!n],r},this.unsubscribe=function(t){for(var A in e)if(e[A][t])return delete e[A][t],!0;return!1},this.publish=function(A){if(e.hasOwnProperty(A)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var o in e[A]){var a=e[A][o];try{a[0].apply(t,r)}catch(A){n.console&&console.error("jsPDF PubSub Error",A.message,A)}a[1]&&i.push(o)}i.length&&i.forEach(this.unsubscribe)}}}function s(t,e,A,i){var l={};"object"===(void 0===t?"undefined":ot(t))&&(t=(l=t).orientation,e=l.unit||e,A=l.format||A,i=l.compress||l.compressPdf||i),e=e||"mm",A=A||"a4",t=(""+(t||"P")).toLowerCase(),(""+A).toLowerCase();var c,u,h,d,g,f,p,m,w,B,v,y=!!i&&"function"==typeof Uint8Array,b=l.textColor||"0 g",C=l.drawColor||"0 G",x=l.fontSize||16,F=l.charSpace||0,Q=l.R2L||!1,U=l.lineHeight||1.15,_=l.lineWidth||.200025,I="00000000000000000000000000000000",E=2,k=!1,S=[],D={},H={},M=0,O=[],T=[],P=[],L=[],R=[],N=0,K=0,j=0,V={title:"",subject:"",author:"",keywords:"",creator:""},G={},q=new a(G),W=l.hotfixes||[],Y=function(t){var e,A=t.ch1,n=t.ch2,r=t.ch3,i=t.ch4,o=(t.precision,"draw"===t.pdfColorType?["G","RG","K"]:["g","rg","k"]);if("string"==typeof A&&"#"!==A.charAt(0)){var a=new RGBColor(A);a.ok&&(A=a.toHex())}if("string"==typeof A&&/^#[0-9A-Fa-f]{3}$/.test(A)&&(A="#"+A[1]+A[1]+A[2]+A[2]+A[3]+A[3]),"string"==typeof A&&/^#[0-9A-Fa-f]{6}$/.test(A)){var s=parseInt(A.substr(1),16);A=s>>16&255,n=s>>8&255,r=255&s}if(void 0===n||void 0===i&&A===n&&n===r)if("string"==typeof A)e=A+" "+o[0];else switch(t.precision){case 2:e=$(A/255)+" "+o[0];break;case 3:default:e=tt(A/255)+" "+o[0]}else if(void 0===i||"object"===(void 0===i?"undefined":ot(i))){if("string"==typeof A)e=[A,n,r,o[1]].join(" ");else switch(t.precision){case 2:e=[$(A/255),$(n/255),$(r/255),o[1]].join(" ");break;default:case 3:e=[tt(A/255),tt(n/255),tt(r/255),o[1]].join(" ")}i&&0===i.a&&(e=["255","255","255",o[1]].join(" "))}else if("string"==typeof A)e=[A,n,r,i,o[2]].join(" ");else switch(t.precision){case 2:e=[$(A),$(n),$(r),$(i),o[2]].join(" ");break;case 3:default:e=[tt(A),tt(n),tt(r),tt(i),o[2]].join(" ")}return e},z=function(t){var e=function(t){return("0"+parseInt(t)).slice(-2)},A=t.getTimezoneOffset(),n=A<0?"+":"-",r=Math.floor(Math.abs(A/60)),i=Math.abs(A%60),o=[n,e(r),"'",e(i),"'"].join("");return["D:",t.getFullYear(),e(t.getMonth()+1),e(t.getDate()),e(t.getHours()),e(t.getMinutes()),e(t.getSeconds()),o].join("")},X=function(t){var e;return void 0===(void 0===t?"undefined":ot(t))&&(t=new Date),e="object"===(void 0===t?"undefined":ot(t))&&"[object Date]"===Object.prototype.toString.call(t)?z(t):/^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(t)?t:z(new Date),B=e},J=function(t){var e=B;return"jsDate"===t&&(e=function(t){var e=parseInt(t.substr(2,4),10),A=parseInt(t.substr(6,2),10)-1,n=parseInt(t.substr(8,2),10),r=parseInt(t.substr(10,2),10),i=parseInt(t.substr(12,2),10),o=parseInt(t.substr(14,2),10);return parseInt(t.substr(16,2),10),parseInt(t.substr(20,2),10),new Date(e,A,n,r,i,o,0)}(B)),e},Z=function(t){return t=t||"12345678901234567890123456789012".split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),I=t},$=function(t){return t.toFixed(2)},tt=function(t){return t.toFixed(3)},et=function(t){t="string"==typeof t?t:t.toString(),k?O[d].push(t):(j+=t.length+1,L.push(t))},At=function(){return S[++E]=j,et(E+" 0 obj"),E},nt=function(t){et("stream"),et(t),et("endstream")},rt=function(){for(var t in et("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),et("/Font <<"),D)D.hasOwnProperty(t)&&et("/"+t+" "+D[t].objectNumber+" 0 R");et(">>"),et("/XObject <<"),q.publish("putXobjectDict"),et(">>")},it=function(){!function(){for(var t in D)D.hasOwnProperty(t)&&(e=D[t],q.publish("putFont",{font:e,out:et,newObject:At}),!0!==e.isAlreadyPutted&&(e.objectNumber=At(),et("<<"),et("/Type /Font"),et("/BaseFont /"+e.postScriptName),et("/Subtype /Type1"),"string"==typeof e.encoding&&et("/Encoding /"+e.encoding),et("/FirstChar 32"),et("/LastChar 255"),et(">>"),et("endobj")));var e}(),q.publish("putResources"),S[2]=j,et("2 0 obj"),et("<<"),rt(),et(">>"),et("endobj"),q.publish("postPutResources")},at=function(t,e,A){H.hasOwnProperty(e)||(H[e]={}),H[e][A]=t},st=function(t,e,A,n){var r="F"+(Object.keys(D).length+1).toString(10),i=D[r]={id:r,postScriptName:t,fontName:e,fontStyle:A,encoding:n,metadata:{}};return at(r,e,A),q.publish("addFont",i),r},lt=function(t,e){return function(t,e){var A,n,r,i,o,a,s,l,u;if(r=(e=e||{}).sourceEncoding||"Unicode",o=e.outputEncoding,(e.autoencode||o)&&D[c].metadata&&D[c].metadata[r]&&D[c].metadata[r].encoding&&(i=D[c].metadata[r].encoding,!o&&D[c].encoding&&(o=D[c].encoding),!o&&i.codePages&&(o=i.codePages[0]),"string"==typeof o&&(o=i[o]),o)){for(s=!1,a=[],A=0,n=t.length;A<n;A++)(l=o[t.charCodeAt(A)])?a.push(String.fromCharCode(l)):a.push(t[A]),a[A].charCodeAt(0)>>8&&(s=!0);t=a.join("")}for(A=t.length;void 0===s&&0!==A;)t.charCodeAt(A-1)>>8&&(s=!0),A--;if(!s)return t;for(a=e.noBOM?[]:[254,255],A=0,n=t.length;A<n;A++){if((u=(l=t.charCodeAt(A))>>8)>>8)throw new Error("Character at position "+A+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");a.push(u),a.push(l-(u<<8))}return String.fromCharCode.apply(void 0,a)}(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ct=function(){(function(t,e){var A="string"==typeof e&&e.toLowerCase();if("string"==typeof t){var n=t.toLowerCase();o.hasOwnProperty(n)&&(t=o[n][0]/u,e=o[n][1]/u)}if(Array.isArray(t)&&(e=t[1],t=t[0]),A){switch(A.substr(0,1)){case"l":t<e&&(A="s");break;case"p":e<t&&(A="s")}"s"===A&&(h=t,t=e,e=h)}k=!0,O[++M]=[],P[M]={width:Number(t)||g,height:Number(e)||f},T[M]={},ut(M)}).apply(this,arguments),et($(_*u)+" w"),et(C),0!==N&&et(N+" J"),0!==K&&et(K+" j"),q.publish("addPage",{pageNumber:M})},ut=function(t){0<t&&t<=M&&(g=P[d=t].width,f=P[t].height)},ht=function(t,e,A){var n,r=void 0;return A=A||{},t=void 0!==t?t:D[c].fontName,e=void 0!==e?e:D[c].fontStyle,n=t.toLowerCase(),void 0!==H[n]&&void 0!==H[n][e]?r=H[n][e]:void 0!==H[t]&&void 0!==H[t][e]?r=H[t][e]:!1===A.disableWarning&&console.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),r||A.noFallback||null==(r=H.times[e])&&(r=H.times.normal),r},dt=function(){k=!1,E=2,j=0,L=[],S=[],R=[],q.publish("buildDocument"),et("%PDF-"+r),et("%ºß¬à"),function(){var t,e,A,r,i,o,a,l,c,h=[];for(a=n.adler32cs||s.API.adler32cs,y&&void 0===a&&(y=!1),t=1;t<=M;t++){if(h.push(At()),l=(g=P[t].width)*u,c=(f=P[t].height)*u,et("<</Type /Page"),et("/Parent 1 0 R"),et("/Resources 2 0 R"),et("/MediaBox [0 0 "+$(l)+" "+$(c)+"]"),q.publish("putPage",{pageNumber:t,page:O[t]}),et("/Contents "+(E+1)+" 0 R"),et(">>"),et("endobj"),e=O[t].join("\n"),At(),y){for(A=[],r=e.length;r--;)A[r]=e.charCodeAt(r);o=a.from(e),(i=new Deflater(6)).append(new Uint8Array(A)),e=i.flush(),(A=new Uint8Array(e.length+6)).set(new Uint8Array([120,156])),A.set(e,2),A.set(new Uint8Array([255&o,o>>8&255,o>>16&255,o>>24&255]),e.length+2),e=String.fromCharCode.apply(null,A),et("<</Length "+e.length+" /Filter [/FlateDecode]>>")}else et("<</Length "+e.length+">>");nt(e),et("endobj")}S[1]=j,et("1 0 obj"),et("<</Type /Pages");var d="/Kids [";for(r=0;r<M;r++)d+=h[r]+" 0 R ";et(d+"]"),et("/Count "+M),et(">>"),et("endobj"),q.publish("postPutPages")}(),function(){q.publish("putAdditionalObjects");for(var t=0;t<R.length;t++){var e=R[t];S[e.objId]=j,et(e.objId+" 0 obj"),et(e.content),et("endobj")}E+=R.length,q.publish("postPutAdditionalObjects")}(),it(),At(),et("<<"),function(){for(var t in et("/Producer (jsPDF "+s.version+")"),V)V.hasOwnProperty(t)&&V[t]&&et("/"+t.substr(0,1).toUpperCase()+t.substr(1)+" ("+lt(V[t])+")");et("/CreationDate ("+B+")")}(),et(">>"),et("endobj"),At(),et("<<"),function(){switch(et("/Type /Catalog"),et("/Pages 1 0 R"),m||(m="fullwidth"),m){case"fullwidth":et("/OpenAction [3 0 R /FitH null]");break;case"fullheight":et("/OpenAction [3 0 R /FitV null]");break;case"fullpage":et("/OpenAction [3 0 R /Fit]");break;case"original":et("/OpenAction [3 0 R /XYZ null null 1]");break;default:var t=""+m;"%"===t.substr(t.length-1)&&(m=parseInt(m)/100),"number"==typeof m&&et("/OpenAction [3 0 R /XYZ null null "+$(m)+"]")}switch(w||(w="continuous"),w){case"continuous":et("/PageLayout /OneColumn");break;case"single":et("/PageLayout /SinglePage");break;case"two":case"twoleft":et("/PageLayout /TwoColumnLeft");break;case"tworight":et("/PageLayout /TwoColumnRight")}p&&et("/PageMode /"+p),q.publish("putCatalog")}(),et(">>"),et("endobj");var t,e=j,A="0000000000";for(et("xref"),et("0 "+(E+1)),et(A+" 65535 f "),t=1;t<=E;t++){var i=S[t];et("function"==typeof i?(A+S[t]()).slice(-10)+" 00000 n ":(A+S[t]).slice(-10)+" 00000 n ")}return et("trailer"),et("<<"),et("/Size "+(E+1)),et("/Root "+E+" 0 R"),et("/Info "+(E-1)+" 0 R"),et("/ID [ <"+I+"> <"+I+"> ]"),et(">>"),et("startxref"),et(""+e),et("%%EOF"),k=!0,L.join("\n")},gt=function(t){var e="S";return"F"===t?e="f":"FD"===t||"DF"===t?e="B":"f"!==t&&"f*"!==t&&"B"!==t&&"B*"!==t||(e=t),e},ft=function(){for(var t=dt(),e=t.length,A=new ArrayBuffer(e),n=new Uint8Array(A);e--;)n[e]=t.charCodeAt(e);return A},pt=function(){return new Blob([ft()],{type:"application/pdf"})},mt=((v=function(t,e){var A="dataur"===(""+t).substr(0,6)?"data:application/pdf;base64,"+btoa(dt()):0;switch(t){case void 0:return dt();case"save":if("object"===("undefined"==typeof navigator?"undefined":ot(navigator))&&navigator.getUserMedia&&(void 0===n.URL||void 0===n.URL.createObjectURL))return G.output("dataurlnewwindow");xt(pt(),e),"function"==typeof xt.unload&&n.setTimeout&&setTimeout(xt.unload,911);break;case"arraybuffer":return ft();case"blob":return pt();case"bloburi":case"bloburl":return n.URL&&n.URL.createObjectURL(pt())||void 0;case"datauristring":case"dataurlstring":return A;case"dataurlnewwindow":var r=n.open(A);if(r||"undefined"==typeof safari)return r;case"datauri":case"dataurl":return n.document.location.href=A;default:throw new Error('Output type "'+t+'" is not supported.')}}).foo=function(){try{return v.apply(this,arguments)}catch(t){var e=t.stack||"";~e.indexOf(" at ")&&(e=e.split(" at ")[1]);var A="Error in function "+e.split("\n")[0].split("<")[0]+": "+t.message;if(!n.console)throw new Error(A);n.console.error(A,t),n.alert&&alert(A)}},(v.foo.bar=v).foo),wt=function(t){return!0===Array.isArray(W)&&-1<W.indexOf(t)};switch(e){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=1==wt("px_scaling")?.75:96/72;break;case"pc":case"em":u=12;break;case"ex":u=6;break;default:throw"Invalid unit: "+e}for(var Bt in X(),Z(),G.internal={pdfEscape:lt,getStyle:gt,getFont:function(){return D[ht.apply(G,arguments)]},getFontSize:function(){return x},getCharSpace:function(){return F},getTextColor:function(){var t=b.split(" ");if(2===t.length&&"g"===t[1]){var e=parseFloat(t[0]);t=[e,e,e,"r"]}for(var A="#",n=0;n<3;n++)A+=("0"+Math.floor(255*parseFloat(t[n])).toString(16)).slice(-2);return A},getLineHeight:function(){return x*U},write:function(t){et(1===arguments.length?t:Array.prototype.join.call(arguments," "))},getCoordinateString:function(t){return $(t*u)},getVerticalCoordinateString:function(t){return $((f-t)*u)},collections:{},newObject:At,newAdditionalObject:function(){var t=2*O.length+1,e={objId:t+=R.length,content:""};return R.push(e),e},newObjectDeferred:function(){return S[++E]=function(){return j},E},newObjectDeferredBegin:function(t){S[t]=j},putStream:nt,events:q,scaleFactor:u,pageSize:{getWidth:function(){return g},getHeight:function(){return f}},output:function(t,e){return mt(t,e)},getNumberOfPages:function(){return O.length-1},pages:O,out:et,f2:$,getPageInfo:function(t){return{objId:2*(t-1)+3,pageNumber:t,pageContext:T[t]}},getCurrentPageInfo:function(){return{objId:2*(d-1)+3,pageNumber:d,pageContext:T[d]}},getPDFVersion:function(){return r},hasHotfix:wt},G.addPage=function(){return ct.apply(this,arguments),this},G.setPage=function(){return ut.apply(this,arguments),this},G.insertPage=function(t){return this.addPage(),this.movePage(d,t),this},G.movePage=function(t,e){if(e<t){for(var A=O[t],n=P[t],r=T[t],i=t;e<i;i--)O[i]=O[i-1],P[i]=P[i-1],T[i]=T[i-1];O[e]=A,P[e]=n,T[e]=r,this.setPage(e)}else if(t<e){for(A=O[t],n=P[t],r=T[t],i=t;i<e;i++)O[i]=O[i+1],P[i]=P[i+1],T[i]=T[i+1];O[e]=A,P[e]=n,T[e]=r,this.setPage(e)}return this},G.deletePage=function(){return function(t){0<t&&t<=M&&(O.splice(t,1),P.splice(t,1),--M<d&&(d=M),this.setPage(d))}.apply(this,arguments),this},G.setCreationDate=function(t){return X(t),this},G.getCreationDate=function(t){return J(t)},G.setFileId=function(t){return Z(t),this},G.getFileId=function(){return I},G.setDisplayMode=function(t,e,A){if(m=t,w=e,-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(p=A))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+A+'" is not recognized.');return this},G.text=function(t,e,A,n){var r,i,o="",a=U,s=this;function l(t){for(var e,A=t.concat(),n=[],r=A.length;r--;)"string"==typeof(e=A.shift())?n.push(e):"[object Array]"===Object.prototype.toString.call(t)&&1===e.length?n.push(e[0]):n.push([e[0],e[1],e[2]]);return n}function u(t,e){var A;if("string"==typeof t)A=e(t)[0];else if("[object Array]"===Object.prototype.toString.call(t)){for(var n,r,i=t.concat(),o=[],a=i.length;a--;)"string"==typeof(n=i.shift())?o.push(e(n)[0]):"[object Array]"===Object.prototype.toString.call(n)&&"string"===n[0]&&(r=e(n[0],n[1],n[2]),o.push([r[0],r[1],r[2]]));A=o}return A}"number"==typeof t&&(i=A,A=e,e=t,t=i);var h=n,d=arguments[4],g=arguments[5];"object"===(void 0===h?"undefined":ot(h))&&null!==h||("string"==typeof d&&(g=d,d=null),"string"==typeof h&&(g=h,h=null),"number"==typeof h&&(d=h,h=null),n={flags:h,angle:d,align:g});var f=!1,p=!0;if("string"==typeof t)f=!0;else if("[object Array]"===Object.prototype.toString.call(t)){for(var m,w=t.concat(),B=[],v=w.length;v--;)("string"!=typeof(m=w.shift())||"[object Array]"===Object.prototype.toString.call(m)&&"string"!=typeof m[0])&&(p=!1);f=p}if(!1===f)throw new Error('Type of text must be string or Array. "'+t+'" is not recognized.');var y=D[c].encoding;"WinAnsiEncoding"!==y&&"StandardEncoding"!==y||(t=u(t,(function(t,e,A){return[(r=t,r=r.split("\t").join(Array(n.TabLen||9).join(" ")),lt(r,h)),e,A];var r}))),"string"==typeof t&&(t=t.match(/[\r?\n]/)?t.split(/\r\n|\r|\n/g):[t]),0<(j=n.maxWidth||0)&&("string"==typeof t?t=s.splitTextToSize(t,j):"[object Array]"===Object.prototype.toString.call(t)&&(t=s.splitTextToSize(t.join(" "),j)));var C={text:t,x:e,y:A,options:n,mutex:{pdfEscape:lt,activeFontKey:c,fonts:D,activeFontSize:x}};q.publish("preProcessText",C),t=C.text,d=(n=C.options).angle;var _=s.internal.scaleFactor,I=(s.internal.pageSize.getHeight(),[]);if(d){d*=Math.PI/180;var E=Math.cos(d),k=Math.sin(d),S=function(t){return t.toFixed(2)};I=[S(E),S(k),S(-1*k),S(E)]}void 0!==(K=n.charSpace)&&(o+=K+" Tc\n"),n.lang;var H=-1,M=n.renderingMode||n.stroke,O=s.internal.getCurrentPageInfo().pageContext;switch(M){case 0:case!1:case"fill":H=0;break;case 1:case!0:case"stroke":H=1;break;case 2:case"fillThenStroke":H=2;break;case 3:case"invisible":H=3;break;case 4:case"fillAndAddForClipping":H=4;break;case 5:case"strokeAndAddPathForClipping":H=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":H=6;break;case 7:case"addToPathForClipping":H=7}var T=O.usedRenderingMode||-1;-1!==H?o+=H+" Tr\n":-1!==T&&(o+="0 Tr\n"),-1!==H&&(O.usedRenderingMode=H),g=n.align||"left";var P=x*a,L=s.internal.pageSize.getHeight(),R=s.internal.pageSize.getWidth(),N=(_=s.internal.scaleFactor,D[c]),K=n.charSpace||F,j=n.maxWidth||0,V=(h={},[]);if("[object Array]"===Object.prototype.toString.call(t)){var G,W;B=l(t),"left"!==g&&(W=B.map((function(t){return s.getStringUnitWidth(t,{font:N,charSpace:K,fontSize:x})*x/_})));Math.max.apply(Math,W);var Y,z=0;if("right"===g){e-=W[0],t=[];var X=0;for(v=B.length;X<v;X++)W[X],0===X?(Y=e*_,G=(L-A)*_):(Y=(z-W[X])*_,G=-P),t.push([B[X],Y,G]),z=W[X]}else if("center"===g)for(e-=W[0]/2,t=[],X=0,v=B.length;X<v;X++)W[X],0===X?(Y=e*_,G=(L-A)*_):(Y=(z-W[X])/2*_,G=-P),t.push([B[X],Y,G]),z=W[X];else if("left"===g)for(t=[],X=0,v=B.length;X<v;X++)G=0===X?(L-A)*_:-P,Y=0===X?e*_:0,t.push(B[X]);else{if("justify"!==g)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(t=[],j=0!==j?j:R,X=0,v=B.length;X<v;X++)G=0===X?(L-A)*_:-P,Y=0===X?e*_:0,X<v-1&&V.push(((j-W[X])/(B[X].split(" ").length-1)*_).toFixed(2)),t.push([B[X],Y,G])}}!0===("boolean"==typeof n.R2L?n.R2L:Q)&&(t=u(t,(function(t,e,A){return[t.split("").reverse().join(""),e,A]}))),C={text:t,x:e,y:A,options:n,mutex:{pdfEscape:lt,activeFontKey:c,fonts:D,activeFontSize:x}},q.publish("postProcessText",C),t=C.text,r=C.mutex.isHex,B=l(t),t=[];var J,Z,$,tt=0,At=(v=B.length,"");for(X=0;X<v;X++)At="","[object Array]"!==Object.prototype.toString.call(B[X])?(J=parseFloat(e*_).toFixed(2),Z=parseFloat((L-A)*_).toFixed(2),$=(r?"<":"(")+B[X]+(r?">":")")):"[object Array]"===Object.prototype.toString.call(B[X])&&(J=parseFloat(B[X][1]).toFixed(2),Z=parseFloat(B[X][2]).toFixed(2),$=(r?"<":"(")+B[X][0]+(r?">":")"),tt=1),void 0!==V&&void 0!==V[X]&&(At=V[X]+" Tw\n"),0!==I.length&&0===X?t.push(At+I.join(" ")+" "+J+" "+Z+" Tm\n"+$):1===tt||0===tt&&0===X?t.push(At+J+" "+Z+" Td\n"+$):t.push(At+$);t=0===tt?t.join(" Tj\nT* "):t.join(" Tj\n"),t+=" Tj\n";var nt="BT\n/"+c+" "+x+" Tf\n"+(x*a).toFixed(2)+" TL\n"+b+"\n";return nt+=o,nt+=t,et(nt+="ET"),s},G.lstext=function(t,e,A,n){console.warn("jsPDF.lstext is deprecated");for(var r=0,i=t.length;r<i;r++,e+=n)this.text(t[r],e,A);return this},G.line=function(t,e,A,n){return this.lines([[A-t,n-e]],t,e)},G.clip=function(){et("W"),et("S")},G.clip_fixed=function(t){et("evenodd"===t?"W*":"W"),et("n")},G.lines=function(t,e,A,n,r,i){var o,a,s,l,c,d,g,p,m,w,B;for("number"==typeof t&&(h=A,A=e,e=t,t=h),n=n||[1,1],et(tt(e*u)+" "+tt((f-A)*u)+" m "),o=n[0],a=n[1],l=t.length,w=e,B=A,s=0;s<l;s++)2===(c=t[s]).length?(w=c[0]*o+w,B=c[1]*a+B,et(tt(w*u)+" "+tt((f-B)*u)+" l")):(d=c[0]*o+w,g=c[1]*a+B,p=c[2]*o+w,m=c[3]*a+B,w=c[4]*o+w,B=c[5]*a+B,et(tt(d*u)+" "+tt((f-g)*u)+" "+tt(p*u)+" "+tt((f-m)*u)+" "+tt(w*u)+" "+tt((f-B)*u)+" c"));return i&&et(" h"),null!==r&&et(gt(r)),this},G.rect=function(t,e,A,n,r){return gt(r),et([$(t*u),$((f-e)*u),$(A*u),$(-n*u),"re"].join(" ")),null!==r&&et(gt(r)),this},G.triangle=function(t,e,A,n,r,i,o){return this.lines([[A-t,n-e],[r-A,i-n],[t-r,e-i]],t,e,[1,1],o,!0),this},G.roundedRect=function(t,e,A,n,r,i,o){var a=4/3*(Math.SQRT2-1);return this.lines([[A-2*r,0],[r*a,0,r,i-i*a,r,i],[0,n-2*i],[0,i*a,-r*a,i,-r,i],[2*r-A,0],[-r*a,0,-r,-i*a,-r,-i],[0,2*i-n],[0,-i*a,r*a,-i,r,-i]],t+r,e,[1,1],o),this},G.ellipse=function(t,e,A,n,r){var i=4/3*(Math.SQRT2-1)*A,o=4/3*(Math.SQRT2-1)*n;return et([$((t+A)*u),$((f-e)*u),"m",$((t+A)*u),$((f-(e-o))*u),$((t+i)*u),$((f-(e-n))*u),$(t*u),$((f-(e-n))*u),"c"].join(" ")),et([$((t-i)*u),$((f-(e-n))*u),$((t-A)*u),$((f-(e-o))*u),$((t-A)*u),$((f-e)*u),"c"].join(" ")),et([$((t-A)*u),$((f-(e+o))*u),$((t-i)*u),$((f-(e+n))*u),$(t*u),$((f-(e+n))*u),"c"].join(" ")),et([$((t+i)*u),$((f-(e+n))*u),$((t+A)*u),$((f-(e+o))*u),$((t+A)*u),$((f-e)*u),"c"].join(" ")),null!==r&&et(gt(r)),this},G.circle=function(t,e,A,n){return this.ellipse(t,e,A,A,n)},G.setProperties=function(t){for(var e in V)V.hasOwnProperty(e)&&t[e]&&(V[e]=t[e]);return this},G.setFontSize=function(t){return x=t,this},G.setFont=function(t,e){return c=ht(t,e),this},G.setFontStyle=G.setFontType=function(t){return c=ht(void 0,t),this},G.getFontList=function(){var t,e,A,n={};for(t in H)if(H.hasOwnProperty(t))for(e in n[t]=A=[],H[t])H[t].hasOwnProperty(e)&&A.push(e);return n},G.addFont=function(t,e,A,n){st(t,e,A,n=n||"Identity-H")},G.setLineWidth=function(t){return et((t*u).toFixed(2)+" w"),this},G.setDrawColor=function(t,e,A,n){return et(Y({ch1:t,ch2:e,ch3:A,ch4:n,pdfColorType:"draw",precision:2})),this},G.setFillColor=function(t,e,A,n){return et(Y({ch1:t,ch2:e,ch3:A,ch4:n,pdfColorType:"fill",precision:2})),this},G.setTextColor=function(t,e,A,n){return b=Y({ch1:t,ch2:e,ch3:A,ch4:n,pdfColorType:"text",precision:3}),this},G.setCharSpace=function(t){return F=t,this},G.setR2L=function(t){return Q=t,this},G.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},G.setLineCap=function(t){var e=this.CapJoinStyles[t];if(void 0===e)throw new Error("Line cap style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return et((N=e)+" J"),this},G.setLineJoin=function(t){var e=this.CapJoinStyles[t];if(void 0===e)throw new Error("Line join style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return et((K=e)+" j"),this},G.output=mt,G.save=function(t){G.output("save",t)},s.API)s.API.hasOwnProperty(Bt)&&("events"===Bt&&s.API.events.length?function(t,e){var A,n,r;for(r=e.length-1;-1!==r;r--)A=e[r][0],n=e[r][1],t.subscribe.apply(t,[A].concat("function"==typeof n?[n]:n))}(q,s.API.events):G[Bt]=s.API[Bt]);return function(){for(var t="helvetica",e="times",A="courier",n="normal",r="bold",i="italic",o="bolditalic",a=[["Helvetica",t,n,"WinAnsiEncoding"],["Helvetica-Bold",t,r,"WinAnsiEncoding"],["Helvetica-Oblique",t,i,"WinAnsiEncoding"],["Helvetica-BoldOblique",t,o,"WinAnsiEncoding"],["Courier",A,n,"WinAnsiEncoding"],["Courier-Bold",A,r,"WinAnsiEncoding"],["Courier-Oblique",A,i,"WinAnsiEncoding"],["Courier-BoldOblique",A,o,"WinAnsiEncoding"],["Times-Roman",e,n,"WinAnsiEncoding"],["Times-Bold",e,r,"WinAnsiEncoding"],["Times-Italic",e,i,"WinAnsiEncoding"],["Times-BoldItalic",e,o,"WinAnsiEncoding"],["ZapfDingbats","zapfdingbats",n,null],["Symbol","symbol",n,null]],s=0,l=a.length;s<l;s++){var c=st(a[s][0],a[s][1],a[s][2],a[s][3]),u=a[s][0].split("-");at(c,u[0],u[1]||"")}q.publish("addFonts",{fonts:D,dictionary:H})}(),c="F1",ct(A,t),q.publish("initialized"),G}return s.API={events:[]},s.version="0.0.0",i=function(){return s}.call(e,A,e,t),void 0!==i&&(t.exports=i),s}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof n&&n||Function('return typeof this === "object" && this.content')()||Function("return this")()); /** @preserve * jsPDF - PDF Document creation from JavaScript * Version 1.4.1 Built on 2018-06-06T07:49:34.040Z * CommitID 3233f44044 * * Copyright (c) 2010-2016 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF * 2010 Aaron Spike, https://github.com/acspike * 2012 Willow Systems Corporation, willow-systems.com * 2012 Pablo Hess, https://github.com/pablohess * 2012 Florian Jenett, https://github.com/fjenett * 2013 Warren Weckesser, https://github.com/warrenweckesser * 2013 Youssef Beddad, https://github.com/lifof * 2013 Lee Driscoll, https://github.com/lsdriscoll * 2013 Stefan Slonevskiy, https://github.com/stefslon * 2013 Jeremy Morel, https://github.com/jmorel * 2013 Christoph Hartmann, https://github.com/chris-rock * 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria * 2014 James Makes, https://github.com/dollaruw * 2014 Diego Casorran, https://github.com/diegocr * 2014 Steven Spungin, https://github.com/Flamenco * 2014 Kenneth Glassey, https://github.com/Gavvers * * Licensed under the MIT License * * Contributor(s): * siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango, * kim3er, mfo, alnorth, Flamenco */!function(t,e){var A,n,r=1,i=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},o=function(t){return t*(r/1)},a=function(t){var e=new Q,A=R.internal.getHeight(t)||0,n=R.internal.getWidth(t)||0;return e.BBox=[0,0,n.toFixed(2),A.toFixed(2)],e},s=function(t,e,A){t=t||0;var n=1;return n<<=e-1,1==(A=A||1)?t|=n:t&=~n,t},l=function(t,e,A){return A=A||1.3,t=t||0,1==e.readOnly&&(t=s(t,1)),1==e.required&&(t=s(t,2)),1==e.noExport&&(t=s(t,3)),1==e.multiline&&(t=s(t,13)),e.password&&(t=s(t,14)),e.noToggleToOff&&(t=s(t,15)),e.radio&&(t=s(t,16)),e.pushbutton&&(t=s(t,17)),e.combo&&(t=s(t,18)),e.edit&&(t=s(t,19)),e.sort&&(t=s(t,20)),e.fileSelect&&1.4<=A&&(t=s(t,21)),e.multiSelect&&1.4<=A&&(t=s(t,22)),e.doNotSpellCheck&&1.4<=A&&(t=s(t,23)),1==e.doNotScroll&&1.4<=A&&(t=s(t,24)),e.richText&&1.4<=A&&(t=s(t,25)),t},c=function(t){var e=t[0],A=t[1],r=t[2],i=t[3],a={};return Array.isArray(e)?(e[0]=o(e[0]),e[1]=o(e[1]),e[2]=o(e[2]),e[3]=o(e[3])):(e=o(e),A=o(A),r=o(r),i=o(i)),a.lowerLeft_X=e||0,a.lowerLeft_Y=o(n)-A-i||0,a.upperRight_X=e+r||0,a.upperRight_Y=o(n)-A||0,[a.lowerLeft_X.toFixed(2),a.lowerLeft_Y.toFixed(2),a.upperRight_X.toFixed(2),a.upperRight_Y.toFixed(2)]},u=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],A=t.V||t.DV,n=h(t,A);e.push("/Tx BMC"),e.push("q"),e.push("/F1 "+n.fontSize.toFixed(2)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push("BT"),e.push(n.text),e.push("ET"),e.push("Q"),e.push("EMC");var r=new a(t);return r.stream=e.join("\n"),r}},h=function(t,e,A,n){n=n||12,A=A||"helvetica";var r={text:"",fontSize:""},i=(e=")"==(e="("==e.substr(0,1)?e.substr(1):e).substr(e.length-1)?e.substr(0,e.length-1):e).split(" "),o=n,a=R.internal.getHeight(t)||0;a=a<0?-a:a;var s=R.internal.getWidth(t)||0;s=s<0?-s:s;var l=function(t,e,n){if(t+1<i.length){var r=e+" "+i[t+1];return d(r,n+"px",A).width<=s-4}return!1};o++;t:for(;;){e="";var c=d("3",--o+"px",A).height,u=t.multiline?a-o:(a-c)/2,h=-2,g=u+=2,f=0,p=0,m=0;if(o<=0){o=12,e="(...) Tj\n",e+="% Width of Text: "+d(e,"1px").width+", FieldWidth:"+s+"\n";break}m=d(i[0]+" ",o+"px",A).width;var w="",B=0;for(var v in i){w=" "==(w+=i[v]+" ").substr(w.length-1)?w.substr(0,w.length-1):w;var y=parseInt(v);m=d(w+" ",o+"px",A).width;var b=l(y,w,o),C=v>=i.length-1;if(!b||C){if(b||C){if(C)p=y;else if(t.multiline&&a<(c+2)*(B+2)+2)continue t}else{if(!t.multiline)continue t;if(a<(c+2)*(B+2)+2)continue t;p=y}for(var x="",F=f;F<=p;F++)x+=i[F]+" ";switch(x=" "==x.substr(x.length-1)?x.substr(0,x.length-1):x,m=d(x,o+"px",A).width,t.Q){case 2:h=s-m-2;break;case 1:h=(s-m)/2;break;case 0:default:h=2}e+=h.toFixed(2)+" "+g.toFixed(2)+" Td\n",e+="("+x+") Tj\n",e+=-h.toFixed(2)+" 0 Td\n",g=-(o+2),m=0,f=p+1,B++,w=""}else w+=" "}break}return r.text=e,r.fontSize=o,r},d=function(t,e,n){n=n||"helvetica";var r=A.internal.getFont(n),i=A.getStringUnitWidth(t,{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e);return{height:A.getStringUnitWidth("3",{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e)*1.5,width:i}},g={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},f=function(){for(var t in A.internal.acroformPlugin.acroFormDictionaryRoot.Fields){var e=A.internal.acroformPlugin.acroFormDictionaryRoot.Fields[t];e.hasAnnotation&&m.call(A,e)}},p=function(t){A.internal.acroformPlugin.printedOut&&(A.internal.acroformPlugin.printedOut=!1,A.internal.acroformPlugin.acroFormDictionaryRoot=null),A.internal.acroformPlugin.acroFormDictionaryRoot||b.call(A),A.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t)},m=function(t){var e={type:"reference",object:t};A.annotationPlugin.annotations[A.internal.getPageInfo(t.page).pageNumber].push(e)},w=function(){void 0!==A.internal.acroformPlugin.acroFormDictionaryRoot?A.internal.write("/AcroForm "+A.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R"):console.log("Root missing...")},B=function(){A.internal.events.unsubscribe(A.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete A.internal.acroformPlugin.acroFormDictionaryRoot._eventID,A.internal.acroformPlugin.printedOut=!0},v=function(t){var e=!t;for(var n in t||(A.internal.newObjectDeferredBegin(A.internal.acroformPlugin.acroFormDictionaryRoot.objId),A.internal.out(A.internal.acroformPlugin.acroFormDictionaryRoot.getString())),t=t||A.internal.acroformPlugin.acroFormDictionaryRoot.Kids,t){var r=t[n],i=r.Rect;r.Rect&&(r.Rect=c.call(this,r.Rect)),A.internal.newObjectDeferredBegin(r.objId);var o=r.objId+" 0 obj\n<<\n";if("object"===(void 0===r?"undefined":ot(r))&&"function"==typeof r.getContent&&(o+=r.getContent()),r.Rect=i,r.hasAppearanceStream&&!r.appearanceStreamContent){var a=u.call(this,r);o+="/AP << /N "+a+" >>\n",A.internal.acroformPlugin.xForms.push(a)}if(r.appearanceStreamContent){for(var s in o+="/AP << ",r.appearanceStreamContent){var l=r.appearanceStreamContent[s];if(o+="/"+s+" ",o+="<< ",1<=Object.keys(l).length||Array.isArray(l))for(var n in l){var h;"function"==typeof(h=l[n])&&(h=h.call(this,r)),o+="/"+n+" "+h+" ",0<=A.internal.acroformPlugin.xForms.indexOf(h)||A.internal.acroformPlugin.xForms.push(h)}else"function"==typeof(h=l)&&(h=h.call(this,r)),o+="/"+n+" "+h+" \n",0<=A.internal.acroformPlugin.xForms.indexOf(h)||A.internal.acroformPlugin.xForms.push(h);o+=" >>\n"}o+=">>\n"}o+=">>\nendobj\n",A.internal.out(o)}e&&y.call(this,A.internal.acroformPlugin.xForms)},y=function(t){for(var e in t){var n=e,r=t[e];A.internal.newObjectDeferredBegin(r&&r.objId);var i="";"object"===(void 0===r?"undefined":ot(r))&&"function"==typeof r.getString&&(i=r.getString()),A.internal.out(i),delete t[n]}},b=function(){if(void 0!==this.internal&&(void 0===this.internal.acroformPlugin||!1===this.internal.acroformPlugin.isInitialized)){if(A=this,_.FieldNum=0,this.internal.acroformPlugin=JSON.parse(JSON.stringify(g)),this.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");r=A.internal.scaleFactor,n=A.internal.pageSize.getHeight(),A.internal.acroformPlugin.acroFormDictionaryRoot=new U,A.internal.acroformPlugin.acroFormDictionaryRoot._eventID=A.internal.events.subscribe("postPutResources",B),A.internal.events.subscribe("buildDocument",f),A.internal.events.subscribe("putCatalog",w),A.internal.events.subscribe("postPutPages",v),A.internal.acroformPlugin.isInitialized=!0}},C=function(t){if(Array.isArray(t)){var e=" [";for(var A in t)e+=t[A].toString(),e+=A<t.length-1?" ":"";return e+"]"}},x=function(t){return 0!==(t=t||"").indexOf("(")&&(t="("+t),")"!=t.substring(t.length-1)&&(t+=")"),t},F=function(){var t;Object.defineProperty(this,"objId",{get:function(){return t||(t=A.internal.newObjectDeferred()),t||console.log("Couldn't create Object ID"),t},configurable:!1})};F.prototype.toString=function(){return this.objId+" 0 R"},F.prototype.getString=function(){var t=this.objId+" 0 obj\n<<";return t+=this.getContent()+">>\n",this.stream&&(t+="stream\n",t+=this.stream,t+="\nendstream\n"),t+"endobj\n"},F.prototype.getContent=function(){var t="";return t+function(t){var e="",A=Object.keys(t).filter((function(t){return"content"!=t&&"appearanceStreamContent"!=t&&"_"!=t.substring(0,1)}));for(var n in A){var r=A[n],i=t[r];i&&(Array.isArray(i)?e+="/"+r+" "+C(i)+"\n":e+=i instanceof F?"/"+r+" "+i.objId+" 0 R\n":"/"+r+" "+i+"\n")}return e}(this)};var Q=function(){var t;F.call(this),this.Type="/XObject",this.Subtype="/Form",this.FormType=1,this.BBox,this.Matrix,this.Resources="2 0 R",this.PieceInfo,Object.defineProperty(this,"Length",{enumerable:!0,get:function(){return void 0!==t?t.length:0}}),Object.defineProperty(this,"stream",{enumerable:!1,set:function(e){t=e.trim()},get:function(){return t||null}})};i(Q,F);var U=function(){F.call(this);var t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return 0<t.length?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!0,configurable:!0,get:function(){return t}}),this.DA};i(U,F);var _=function t(){var e;F.call(this),Object.defineProperty(this,"Rect",{enumerable:!0,configurable:!1,get:function(){if(e)return e},set:function(t){e=t}});var A,n,r,i,o="";Object.defineProperty(this,"FT",{enumerable:!0,set:function(t){o=t},get:function(){return o}}),Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,set:function(t){A=t},get:function(){if(!A||A.length<1){if(this instanceof O)return;return"(FieldObject"+t.FieldNum+++")"}return"("==A.substring(0,1)&&A.substring(A.length-1)?A:"("+A+")"}}),Object.defineProperty(this,"DA",{enumerable:!0,get:function(){if(n)return"("+n+")"},set:function(t){n=t}}),Object.defineProperty(this,"DV",{enumerable:!0,configurable:!0,get:function(){if(r)return r},set:function(t){r=t}}),Object.defineProperty(this,"V",{enumerable:!0,configurable:!0,get:function(){if(i)return i},set:function(t){i=t}}),Object.defineProperty(this,"Type",{enumerable:!0,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,get:function(){return this.hasAnnotation?"/Widget":null}}),this.BG,Object.defineProperty(this,"hasAnnotation",{enumerable:!1,get:function(){return!!(this.Rect||this.BC||this.BG)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(this,"page",{enumerable:!1,configurable:!0,writable:!0})};i(_,F);var I=function(){_.call(this),this.FT="/Ch",this.Opt=[],this.V="()",this.TI=0;var t=!1;Object.defineProperty(this,"combo",{enumerable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"edit",{enumerable:!0,set:function(t){1==t?(this._edit=!0,this.combo=!0):this._edit=!1},get:function(){return!!this._edit&&this._edit},configurable:!1}),this.hasAppearanceStream=!0};i(I,_);var E=function(){I.call(this),this.combo=!1};i(E,I);var k=function(){E.call(this),this.combo=!0};i(k,E);var S=function(){k.call(this),this.edit=!0};i(S,k);var D=function(){_.call(this),this.FT="/Btn"};i(D,_);var H=function(){D.call(this);var t=!0;Object.defineProperty(this,"pushbutton",{enumerable:!1,get:function(){return t},set:function(e){t=e}})};i(H,D);var M=function(){D.call(this);var t=!0;Object.defineProperty(this,"radio",{enumerable:!1,get:function(){return t},set:function(e){t=e}});var e,A=[];Object.defineProperty(this,"Kids",{enumerable:!0,get:function(){if(0<A.length)return A}}),Object.defineProperty(this,"__Kids",{get:function(){return A}}),Object.defineProperty(this,"noToggleToOff",{enumerable:!1,get:function(){return e},set:function(t){e=t}})};i(M,D);var O=function(t,e){_.call(this),this.Parent=t,this._AppearanceType=R.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(e),this.F=s(this.F,3,1),this.MK=this._AppearanceType.createMK(),this.AS="/Off",this._Name=e};i(O,_),M.prototype.setAppearance=function(t){if("createAppearanceStream"in t&&"createMK"in t)for(var e in this.__Kids){var A=this.__Kids[e];A.appearanceStreamContent=t.createAppearanceStream(A._Name),A.MK=t.createMK()}else console.log("Couldn't assign Appearance to RadioButton. Appearance was Invalid!")},M.prototype.createOption=function(e){this.__Kids.length;var A=new O(this,e);return this.__Kids.push(A),t.addField(A),A};var T=function(){D.call(this),this.appearanceStreamContent=R.CheckBox.createAppearanceStream(),this.MK=R.CheckBox.createMK(),this.AS="/On",this.V="/On"};i(T,D);var P=function(){var t,e;_.call(this),this.DA=R.createDefaultAppearanceStream(),this.F=4,Object.defineProperty(this,"V",{get:function(){return t?x(t):t},enumerable:!0,set:function(e){t=e}}),Object.defineProperty(this,"DV",{get:function(){return e?x(e):e},enumerable:!0,set:function(t){e=t}});var A=!1;Object.defineProperty(this,"multiline",{enumerable:!1,get:function(){return A},set:function(t){A=t}});var n=!1;Object.defineProperty(this,"fileSelect",{enumerable:!1,get:function(){return n},set:function(t){n=t}});var r=!1;Object.defineProperty(this,"doNotSpellCheck",{enumerable:!1,get:function(){return r},set:function(t){r=t}});var i=!1;Object.defineProperty(this,"doNotScroll",{enumerable:!1,get:function(){return i},set:function(t){i=t}});var o=!1;Object.defineProperty(this,"MaxLen",{enumerable:!0,get:function(){return o},set:function(t){o=t}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!1,get:function(){return this.V||this.DV}})};i(P,_);var L=function(){P.call(this);var t=!0;Object.defineProperty(this,"password",{enumerable:!1,get:function(){return t},set:function(e){t=e}})};i(L,P);var R={CheckBox:{createAppearanceStream:function(){return{N:{On:R.CheckBox.YesNormal},D:{On:R.CheckBox.YesPushDown,Off:R.CheckBox.OffPushDown}}},createMK:function(){return"<< /CA (3)>>"},YesPushDown:function(t){var e=a(t),n=[],r=A.internal.getFont("zapfdingbats","normal").id;t.Q=1;var i=h(t,"3","ZapfDingbats",50);return n.push("0.749023 g"),n.push("0 0 "+R.internal.getWidth(t).toFixed(2)+" "+R.internal.getHeight(t).toFixed(2)+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+r+" "+i.fontSize.toFixed(2)+" Tf 0 g"),n.push("BT"),n.push(i.text),n.push("ET"),n.push("Q"),n.push("EMC"),e.stream=n.join("\n"),e},YesNormal:function(t){var e=a(t),n=A.internal.getFont("zapfdingbats","normal").id,r=[];t.Q=1;var i=R.internal.getHeight(t),o=R.internal.getWidth(t),s=h(t,"3","ZapfDingbats",.9*i);return r.push("1 g"),r.push("0 0 "+o.toFixed(2)+" "+i.toFixed(2)+" re"),r.push("f"),r.push("q"),r.push("0 0 1 rg"),r.push("0 0 "+(o-1).toFixed(2)+" "+(i-1).toFixed(2)+" re"),r.push("W"),r.push("n"),r.push("0 g"),r.push("BT"),r.push("/"+n+" "+s.fontSize.toFixed(2)+" Tf 0 g"),r.push(s.text),r.push("ET"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(t){var e=a(t),A=[];return A.push("0.749023 g"),A.push("0 0 "+R.internal.getWidth(t).toFixed(2)+" "+R.internal.getHeight(t).toFixed(2)+" re"),A.push("f"),e.stream=A.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:R.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=R.RadioButton.Circle.YesNormal,e.D[t]=R.RadioButton.Circle.YesPushDown,e},createMK:function(){return"<< /CA (l)>>"},YesNormal:function(t){var e=a(t),A=[],n=R.internal.getWidth(t)<=R.internal.getHeight(t)?R.internal.getWidth(t)/4:R.internal.getHeight(t)/4;n*=.9;var r=R.internal.Bezier_C;return A.push("q"),A.push("1 0 0 1 "+R.internal.getWidth(t)/2+" "+R.internal.getHeight(t)/2+" cm"),A.push(n+" 0 m"),A.push(n+" "+n*r+" "+n*r+" "+n+" 0 "+n+" c"),A.push("-"+n*r+" "+n+" -"+n+" "+n*r+" -"+n+" 0 c"),A.push("-"+n+" -"+n*r+" -"+n*r+" -"+n+" 0 -"+n+" c"),A.push(n*r+" -"+n+" "+n+" -"+n*r+" "+n+" 0 c"),A.push("f"),A.push("Q"),e.stream=A.join("\n"),e},YesPushDown:function(t){var e=a(t),A=[],n=R.internal.getWidth(t)<=R.internal.getHeight(t)?R.internal.getWidth(t)/4:R.internal.getHeight(t)/4,r=2*(n*=.9),i=r*R.internal.Bezier_C,o=n*R.internal.Bezier_C;return A.push("0.749023 g"),A.push("q"),A.push("1 0 0 1 "+(R.internal.getWidth(t)/2).toFixed(2)+" "+(R.internal.getHeight(t)/2).toFixed(2)+" cm"),A.push(r+" 0 m"),A.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),A.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),A.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),A.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),A.push("f"),A.push("Q"),A.push("0 g"),A.push("q"),A.push("1 0 0 1 "+(R.internal.getWidth(t)/2).toFixed(2)+" "+(R.internal.getHeight(t)/2).toFixed(2)+" cm"),A.push(n+" 0 m"),A.push(n+" "+o+" "+o+" "+n+" 0 "+n+" c"),A.push("-"+o+" "+n+" -"+n+" "+o+" -"+n+" 0 c"),A.push("-"+n+" -"+o+" -"+o+" -"+n+" 0 -"+n+" c"),A.push(o+" -"+n+" "+n+" -"+o+" "+n+" 0 c"),A.push("f"),A.push("Q"),e.stream=A.join("\n"),e},OffPushDown:function(t){var e=a(t),A=[],n=R.internal.getWidth(t)<=R.internal.getHeight(t)?R.internal.getWidth(t)/4:R.internal.getHeight(t)/4,r=2*(n*=.9),i=r*R.internal.Bezier_C;return A.push("0.749023 g"),A.push("q"),A.push("1 0 0 1 "+(R.internal.getWidth(t)/2).toFixed(2)+" "+(R.internal.getHeight(t)/2).toFixed(2)+" cm"),A.push(r+" 0 m"),A.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),A.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),A.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),A.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),A.push("f"),A.push("Q"),e.stream=A.join("\n"),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:R.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=R.RadioButton.Cross.YesNormal,e.D[t]=R.RadioButton.Cross.YesPushDown,e},createMK:function(){return"<< /CA (8)>>"},YesNormal:function(t){var e=a(t),A=[],n=R.internal.calculateCross(t);return A.push("q"),A.push("1 1 "+(R.internal.getWidth(t)-2).toFixed(2)+" "+(R.internal.getHeight(t)-2).toFixed(2)+" re"),A.push("W"),A.push("n"),A.push(n.x1.x.toFixed(2)+" "+n.x1.y.toFixed(2)+" m"),A.push(n.x2.x.toFixed(2)+" "+n.x2.y.toFixed(2)+" l"),A.push(n.x4.x.toFixed(2)+" "+n.x4.y.toFixed(2)+" m"),A.push(n.x3.x.toFixed(2)+" "+n.x3.y.toFixed(2)+" l"),A.push("s"),A.push("Q"),e.stream=A.join("\n"),e},YesPushDown:function(t){var e=a(t),A=R.internal.calculateCross(t),n=[];return n.push("0.749023 g"),n.push("0 0 "+R.internal.getWidth(t).toFixed(2)+" "+R.internal.getHeight(t).toFixed(2)+" re"),n.push("f"),n.push("q"),n.push("1 1 "+(R.internal.getWidth(t)-2).toFixed(2)+" "+(R.internal.getHeight(t)-2).toFixed(2)+" re"),n.push("W"),n.push("n"),n.push(A.x1.x.toFixed(2)+" "+A.x1.y.toFixed(2)+" m"),n.push(A.x2.x.toFixed(2)+" "+A.x2.y.toFixed(2)+" l"),n.push(A.x4.x.toFixed(2)+" "+A.x4.y.toFixed(2)+" m"),n.push(A.x3.x.toFixed(2)+" "+A.x3.y.toFixed(2)+" l"),n.push("s"),n.push("Q"),e.stream=n.join("\n"),e},OffPushDown:function(t){var e=a(t),A=[];return A.push("0.749023 g"),A.push("0 0 "+R.internal.getWidth(t).toFixed(2)+" "+R.internal.getHeight(t).toFixed(2)+" re"),A.push("f"),e.stream=A.join("\n"),e}}},createDefaultAppearanceStream:function(t){return"/F1 0 Tf 0 g"}};R.internal={Bezier_C:.551915024494,calculateCross:function(t){var e,A,n=R.internal.getWidth(t),r=R.internal.getHeight(t),i=(A=r)<(e=n)?A:e;return{x1:{x:(n-i)/2,y:(r-i)/2+i},x2:{x:(n-i)/2+i,y:(r-i)/2},x3:{x:(n-i)/2,y:(r-i)/2},x4:{x:(n-i)/2+i,y:(r-i)/2+i}}}},R.internal.getWidth=function(t){var e=0;return"object"===(void 0===t?"undefined":ot(t))&&(e=o(t.Rect[2])),e},R.internal.getHeight=function(t){var e=0;return"object"===(void 0===t?"undefined":ot(t))&&(e=o(t.Rect[3])),e},t.addField=function(t){return b.call(this),t instanceof P?this.addTextField.call(this,t):t instanceof I?this.addChoiceField.call(this,t):t instanceof D?this.addButton.call(this,t):(t instanceof O||t)&&p.call(this,t),t.page=A.internal.getCurrentPageInfo().pageNumber,this},t.addButton=function(t){b.call(this);var e=t||new _;e.FT="/Btn",e.Ff=l(e.Ff,t,A.internal.getPDFVersion()),p.call(this,e)},t.addTextField=function(t){b.call(this);var e=t||new _;e.FT="/Tx",e.Ff=l(e.Ff,t,A.internal.getPDFVersion()),p.call(this,e)},t.addChoiceField=function(t){b.call(this);var e=t||new _;e.FT="/Ch",e.Ff=l(e.Ff,t,A.internal.getPDFVersion()),p.call(this,e)},"object"==(void 0===e?"undefined":ot(e))&&(e.ChoiceField=I,e.ListBox=E,e.ComboBox=k,e.EditBox=S,e.Button=D,e.PushButton=H,e.RadioButton=M,e.CheckBox=T,e.TextField=P,e.PasswordField=L,e.AcroForm={Appearance:R}),t.AcroFormChoiceField=I,t.AcroFormListBox=E,t.AcroFormComboBox=k,t.AcroFormEditBox=S,t.AcroFormButton=D,t.AcroFormPushButton=H,t.AcroFormRadioButton=M,t.AcroFormCheckBox=T,t.AcroFormTextField=P,t.AcroFormPasswordField=L,t.AcroForm={ChoiceField:I,ListBox:E,ComboBox:k,EditBox:S,Button:D,PushButton:H,RadioButton:M,CheckBox:T,TextField:P,PasswordField:L}}(at.API,"undefined"!=typeof window&&window||"undefined"!=typeof n&&n),at.API.addHTML=function(t,e,A,n,r){if("undefined"==typeof html2canvas&&"undefined"==typeof rasterizeHTML)throw new Error("You need either https://github.com/niklasvh/html2canvas or https://github.com/cburgmer/rasterizeHTML.js");"number"!=typeof e&&(n=e,r=A),"function"==typeof n&&(r=n,n=null),"function"!=typeof r&&(r=function(){});var i=this.internal,o=i.scaleFactor,a=i.pageSize.getWidth(),s=i.pageSize.getHeight();if((n=n||{}).onrendered=function(t){e=parseInt(e)||0,A=parseInt(A)||0;var i=n.dim||{},l=Object.assign({top:0,right:0,bottom:0,left:0,useFor:"content"},n.margin),c=i.h||Math.min(s,t.height/o),u=i.w||Math.min(a,t.width/o)-e,h=n.format||"JPEG",d=n.imageCompression||"SLOW";if(t.height>s-l.top-l.bottom&&n.pagesplit){var g=function(t,e,A,r,i){var o=document.createElement("canvas");o.height=i,o.width=r;var a=o.getContext("2d");return a.mozImageSmoothingEnabled=!1,a.webkitImageSmoothingEnabled=!1,a.msImageSmoothingEnabled=!1,a.imageSmoothingEnabled=!1,a.fillStyle=n.backgroundColor||"#ffffff",a.fillRect(0,0,r,i),a.drawImage(t,e,A,r,i,0,0,r,i),o},f=function(){for(var n,i,c=0,f=0,p={},m=!1;;){var w;if(f=0,p.top=0!==c?l.top:A,p.left=0!==c?l.left:e,m=(a-l.left-l.right)*o<t.width,"content"===l.useFor?0===c?(n=Math.min((a-l.left)*o,t.width),i=Math.min((s-l.top)*o,t.height-c)):(n=Math.min(a*o,t.width),i=Math.min(s*o,t.height-c),p.top=0):(n=Math.min((a-l.left-l.right)*o,t.width),i=Math.min((s-l.bottom-l.top)*o,t.height-c)),m)for(;;){"content"===l.useFor&&(0===f?n=Math.min((a-l.left)*o,t.width):(n=Math.min(a*o,t.width-f),p.left=0));var B=[w=g(t,f,c,n,i),p.left,p.top,w.width/o,w.height/o,h,null,d];if(this.addImage.apply(this,B),(f+=n)>=t.width)break;this.addPage()}else B=[w=g(t,0,c,n,i),p.left,p.top,w.width/o,w.height/o,h,null,d],this.addImage.apply(this,B);if((c+=i)>=t.height)break;this.addPage()}r(u,c,null,B)}.bind(this);if("CANVAS"===t.nodeName){var p=new Image;p.onload=f,p.src=t.toDataURL("image/png"),t=p}else f()}else{var m=Math.random().toString(35),w=[t,e,A,u,c,h,m,d];this.addImage.apply(this,w),r(u,c,m,w)}}.bind(this),"undefined"!=typeof html2canvas&&!n.rstz)return html2canvas(t,n);if("undefined"!=typeof rasterizeHTML){var l="drawDocument";return"string"==typeof t&&(l=/^http/.test(t)?"drawURL":"drawHTML"),n.width=n.width||a*o,rasterizeHTML[l](t,void 0,n).then((function(t){n.onrendered(t.image)}),(function(t){r(null,t)}))}return null}, /** @preserve * jsPDF addImage plugin * Copyright (c) 2012 Jason Siefken, https://github.com/siefkenj/ * 2013 Chris Dowling, https://github.com/gingerchris * 2013 Trinh Ho, https://github.com/ineedfat * 2013 Edwin Alejandro Perez, https://github.com/eaparango * 2013 Norah Smith, https://github.com/burnburnrocket * 2014 Diego Casorran, https://github.com/diegocr * 2014 James Robb, https://github.com/jamesbrobb * * */ function(t){var e="addImage_",A={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]};t.getImageFileTypeByImageData=function(t,e){var n,r;e=e||"UNKNOWN";var i,o,a,s="UNKNOWN";for(a in A)for(i=A[a],n=0;n<i.length;n+=1){for(o=!0,r=0;r<i[n].length;r+=1)if(void 0!==i[n][r]&&i[n][r]!==t.charCodeAt(r)){o=!1;break}if(!0===o){s=a;break}}return"UNKOWN"===s&&"UNKNOWN"!==e&&(console.warn('FileType of Image not recognized. Processing image as "'+e+'".'),s=e),s};var n=function t(e){var A=this.internal.newObject(),n=this.internal.write,r=this.internal.putStream;if(e.n=A,n("<</Type /XObject"),n("/Subtype /Image"),n("/Width "+e.w),n("/Height "+e.h),e.cs===this.color_spaces.INDEXED?n("/ColorSpace [/Indexed /DeviceRGB "+(e.pal.length/3-1)+" "+("smask"in e?A+2:A+1)+" 0 R]"):(n("/ColorSpace /"+e.cs),e.cs===this.color_spaces.DEVICE_CMYK&&n("/Decode [1 0 1 0 1 0 1 0]")),n("/BitsPerComponent "+e.bpc),"f"in e&&n("/Filter /"+e.f),"dp"in e&&n("/DecodeParms <<"+e.dp+">>"),"trns"in e&&e.trns.constructor==Array){for(var i="",o=0,a=e.trns.length;o<a;o++)i+=e.trns[o]+" "+e.trns[o]+" ";n("/Mask ["+i+"]")}if("smask"in e&&n("/SMask "+(A+1)+" 0 R"),n("/Length "+e.data.length+">>"),r(e.data),n("endobj"),"smask"in e){var s="/Predictor "+e.p+" /Colors 1 /BitsPerComponent "+e.bpc+" /Columns "+e.w,l={w:e.w,h:e.h,cs:"DeviceGray",bpc:e.bpc,dp:s,data:e.smask};"f"in e&&(l.f=e.f),t.call(this,l)}e.cs===this.color_spaces.INDEXED&&(this.internal.newObject(),n("<< /Length "+e.pal.length+">>"),r(this.arrayBufferToBinaryString(new Uint8Array(e.pal))),n("endobj"))},i=function(){var t=this.internal.collections[e+"images"];for(var A in t)n.call(this,t[A])},o=function(){var t,A=this.internal.collections[e+"images"],n=this.internal.write;for(var r in A)n("/I"+(t=A[r]).i,t.n,"0","R")},a=function(e){return"function"==typeof t["process"+e.toUpperCase()]},s=function(t){return"object"===(void 0===t?"undefined":ot(t))&&1===t.nodeType},l=function(t,e){if("IMG"===t.nodeName&&t.hasAttribute("src")){var A=""+t.getAttribute("src");if(0===A.indexOf("data:image/"))return A;!e&&/\.png(?:[?#].*)?$/i.test(A)&&(e="png")}if("CANVAS"===t.nodeName)var n=t;else{(n=document.createElement("canvas")).width=t.clientWidth||t.width,n.height=t.clientHeight||t.height;var r=n.getContext("2d");if(!r)throw"addImage requires canvas to be supported by browser.";r.drawImage(t,0,0,n.width,n.height)}return n.toDataURL("png"==(""+e).toLowerCase()?"image/png":"image/jpeg")},c=function(t,e){var A;if(e)for(var n in e)if(t===e[n].alias){A=e[n];break}return A};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"},t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},t.sHashCode=function(t){return t=t||"",Array.prototype.reduce&&t.split("").reduce((function(t,e){return(t=(t<<5)-t+e.charCodeAt(0))&t}),0)},t.isString=function(t){return"string"==typeof t},t.validateStringAsBase64=function(t){var e=!0;return(t=t||"").length%4!=0&&(e=!1),!1===/[A-Za-z0-9\/]+/.test(t.substr(0,t.length-2))&&(e=!1),!1===/[A-Za-z0-9\/][A-Za-z0-9+\/]|[A-Za-z0-9+\/]=|==/.test(t.substr(-2))&&(e=!1),e},t.extractInfoFromBase64DataURI=function(t){return/^data:([\w]+?\/([\w]+?));base64,(.+)$/g.exec(t)},t.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array},t.isArrayBuffer=function(t){return!!this.supportsArrayBuffer()&&t instanceof ArrayBuffer},t.isArrayBufferView=function(t){return!!this.supportsArrayBuffer()&&"undefined"!=typeof Uint32Array&&(t instanceof Int8Array||t instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)},t.binaryStringToUint8Array=function(t){for(var e=t.length,A=new Uint8Array(e),n=0;n<e;n++)A[n]=t.charCodeAt(n);return A},t.arrayBufferToBinaryString=function(t){if("function"==typeof atob)return atob(this.arrayBufferToBase64(t));if("function"==typeof TextDecoder){var e=new TextDecoder("ascii");if("ascii"===e.encoding)return e.decode(t)}for(var A=this.isArrayBuffer(t)?t:new Uint8Array(t),n=20480,r="",i=Math.ceil(A.byteLength/n),o=0;o<i;o++)r+=String.fromCharCode.apply(null,A.slice(o*n,o*n+n));return r},t.arrayBufferToBase64=function(t){for(var e,A="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(t),i=r.byteLength,o=i%3,a=i-o,s=0;s<a;s+=3)A+=n[(16515072&(e=r[s]<<16|r[s+1]<<8|r[s+2]))>>18]+n[(258048&e)>>12]+n[(4032&e)>>6]+n[63&e];return 1==o?A+=n[(252&(e=r[a]))>>2]+n[(3&e)<<4]+"==":2==o&&(A+=n[(64512&(e=r[a]<<8|r[a+1]))>>10]+n[(1008&e)>>4]+n[(15&e)<<2]+"="),A},t.createImageInfo=function(t,e,A,n,r,i,o,a,s,l,c,u,h){var d={alias:a,w:e,h:A,cs:n,bpc:r,i:o,data:t};return i&&(d.f=i),s&&(d.dp=s),l&&(d.trns=l),c&&(d.pal=c),u&&(d.smask=u),h&&(d.p=h),d},t.addImage=function(A,n,r,u,h,d,g,f,p){var m="";if("string"!=typeof n){var w=d;d=h,h=u,u=r,r=n,n=w}if("object"===(void 0===A?"undefined":ot(A))&&!s(A)&&"imageData"in A){var B=A;A=B.imageData,n=B.format||n,r=B.x||r||0,u=B.y||u||0,h=B.w||h,d=B.h||d,g=B.alias||g,f=B.compression||f,p=B.rotation||B.angle||p}if(isNaN(r)||isNaN(u))throw console.error("jsPDF.addImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addImage");var v,y,b,C,x,F,Q,U=function(){var t=this.internal.collections[e+"images"];return t||(this.internal.collections[e+"images"]=t={},this.internal.events.subscribe("putResources",i),this.internal.events.subscribe("putXobjectDict",o)),t}.call(this);if(!(v=c(A,U))&&(s(A)&&(A=l(A,n)),(null==(Q=g)||0===Q.length)&&(g="string"==typeof(F=A)&&t.sHashCode(F)),!(v=c(g,U)))){if(this.isString(A)&&(""!==(m=this.convertStringToImageData(A))||void 0!==(m=this.loadImageFile(A)))&&(A=m),n=this.getImageFileTypeByImageData(A,n),!a(n))throw new Error("addImage does not support files of type '"+n+"', please ensure that a plugin for '"+n+"' support is added.");if(this.supportsArrayBuffer()&&(A instanceof Uint8Array||(y=A,A=this.binaryStringToUint8Array(A))),!(v=this["process"+n.toUpperCase()](A,(x=0,(C=U)&&(x=Object.keys?Object.keys(C).length:function(t){var e=0;for(var A in t)t.hasOwnProperty(A)&&e++;return e}(C)),x),g,((b=f)&&"string"==typeof b&&(b=b.toUpperCase()),b in t.image_compression?b:t.image_compression.NONE),y)))throw new Error("An unkwown error occurred whilst processing the image")}return function(t,e,A,n,r,i,o,a){var s=function(t,e,A){return t||e||(e=t=-96),t<0&&(t=-1*A.w*72/t/this.internal.scaleFactor),e<0&&(e=-1*A.h*72/e/this.internal.scaleFactor),0===t&&(t=e*A.w/A.h),0===e&&(e=t*A.h/A.w),[t,e]}.call(this,A,n,r),l=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString;if(A=s[0],n=s[1],o[i]=r,a){a*=Math.PI/180;var u=Math.cos(a),h=Math.sin(a),d=function(t){return t.toFixed(4)},g=[d(u),d(h),d(-1*h),d(u),0,0,"cm"]}this.internal.write("q"),a?(this.internal.write([1,"0","0",1,l(t),c(e+n),"cm"].join(" ")),this.internal.write(g.join(" ")),this.internal.write([l(A),"0","0",l(n),"0","0","cm"].join(" "))):this.internal.write([l(A),"0","0",l(n),l(t),c(e+n),"cm"].join(" ")),this.internal.write("/I"+r.i+" Do"),this.internal.write("Q")}.call(this,r,u,h,d,v,v.i,U,p),this},t.convertStringToImageData=function(e){var A,n="";return this.isString(e)&&(null!==(A=this.extractInfoFromBase64DataURI(e))?t.validateStringAsBase64(A[3])&&(n=atob(A[3])):t.validateStringAsBase64(e)&&(n=atob(e))),n};var u=function(t,e){return t.subarray(e,e+5)};t.processJPEG=function(t,e,A,n,r,i){var o,a=this.decode.DCT_DECODE;if(!this.isString(t)&&!this.isArrayBuffer(t)&&!this.isArrayBufferView(t))return null;if(this.isString(t)&&(o=function(t){var e;if(255===!t.charCodeAt(0)||216===!t.charCodeAt(1)||255===!t.charCodeAt(2)||224===!t.charCodeAt(3)||!t.charCodeAt(6)==="J".charCodeAt(0)||!t.charCodeAt(7)==="F".charCodeAt(0)||!t.charCodeAt(8)==="I".charCodeAt(0)||!t.charCodeAt(9)==="F".charCodeAt(0)||0===!t.charCodeAt(10))throw new Error("getJpegSize requires a binary string jpeg file");for(var A=256*t.charCodeAt(4)+t.charCodeAt(5),n=4,r=t.length;n<r;){if(n+=A,255!==t.charCodeAt(n))throw new Error("getJpegSize could not find the size of the image");if(192===t.charCodeAt(n+1)||193===t.charCodeAt(n+1)||194===t.charCodeAt(n+1)||195===t.charCodeAt(n+1)||196===t.charCodeAt(n+1)||197===t.charCodeAt(n+1)||198===t.charCodeAt(n+1)||199===t.charCodeAt(n+1))return e=256*t.charCodeAt(n+5)+t.charCodeAt(n+6),[256*t.charCodeAt(n+7)+t.charCodeAt(n+8),e,t.charCodeAt(n+9)];n+=2,A=256*t.charCodeAt(n)+t.charCodeAt(n+1)}}(t)),this.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.isArrayBufferView(t)&&(o=function(t){if(65496!=(t[0]<<8|t[1]))throw new Error("Supplied data is not a JPEG");for(var e,A=t.length,n=(t[4]<<8)+t[5],r=4;r<A;){if(n=((e=u(t,r+=n))[2]<<8)+e[3],(192===e[1]||194===e[1])&&255===e[0]&&7<n)return{width:((e=u(t,r+5))[2]<<8)+e[3],height:(e[0]<<8)+e[1],numcomponents:e[4]};r+=2}throw new Error("getJpegSizeFromBytes could not find the size of the image")}(t),t=r||this.arrayBufferToBinaryString(t)),void 0===i)switch(o.numcomponents){case 1:i=this.color_spaces.DEVICE_GRAY;break;case 4:i=this.color_spaces.DEVICE_CMYK;break;default:case 3:i=this.color_spaces.DEVICE_RGB}return this.createImageInfo(t,o.width,o.height,i,8,a,e,A)},t.processJPG=function(){return this.processJPEG.apply(this,arguments)},t.loadImageFile=function(t,e,A){if(e=e||!0,A=A||function(){},Object.prototype.toString.call("undefined"!=typeof r?r:0),void 0!==("undefined"==typeof window?"undefined":ot(window))&&"object"===("undefined"==typeof location?"undefined":ot(location))&&"http"===location.protocol.substr(0,4))return function(t,e,A){var n=new XMLHttpRequest,r=[],i=0,o=function(t){var e=t.length,A=String.fromCharCode;for(i=0;i<e;i+=1)r.push(A(255&t.charCodeAt(i)));return r.join("")};if(n.open("GET",t,!e),n.overrideMimeType("text/plain; charset=x-user-defined"),!1===e&&(n.onload=function(){return o(this.responseText)}),n.send(null),200===n.status)return e?o(n.responseText):void 0;console.warn('Unable to load file "'+t+'"')}(t,e)},t.getImageProperties=function(t){var e,A,n="";if(s(t)&&(t=l(t)),this.isString(t)&&(""!==(n=this.convertStringToImageData(t))||void 0!==(n=this.loadImageFile(t)))&&(t=n),A=this.getImageFileTypeByImageData(t),!a(A))throw new Error("addImage does not support files of type '"+A+"', please ensure that a plugin for '"+A+"' support is added.");if(this.supportsArrayBuffer()&&(t instanceof Uint8Array||(t=this.binaryStringToUint8Array(t))),!(e=this["process"+A.toUpperCase()](t)))throw new Error("An unkwown error occurred whilst processing the image");return{fileType:A,width:e.w,height:e.h,colorSpace:e.cs,compressionMode:e.f,bitsPerComponent:e.bpc}}}(at.API),a=at.API,s={annotations:[],f2:function(t){return t.toFixed(2)},notEmpty:function(t){if(void 0!==t&&""!=t)return!0}},at.API.annotationPlugin=s,at.API.events.push(["addPage",function(t){this.annotationPlugin.annotations[t.pageNumber]=[]}]),a.events.push(["putPage",function(t){for(var e=this.annotationPlugin.annotations[t.pageNumber],A=!1,n=0;n<e.length&&!A;n++)switch((l=e[n]).type){case"link":if(s.notEmpty(l.options.url)||s.notEmpty(l.options.pageNumber)){A=!0;break}case"reference":case"text":case"freetext":A=!0}if(0!=A){this.internal.write("/Annots [");var r=this.annotationPlugin.f2,i=this.internal.scaleFactor,o=this.internal.pageSize.getHeight(),a=this.internal.getPageInfo(t.pageNumber);for(n=0;n<e.length;n++){var l;switch((l=e[n]).type){case"reference":this.internal.write(" "+l.object.objId+" 0 R ");break;case"text":var c=this.internal.newAdditionalObject(),u=this.internal.newAdditionalObject(),h=l.title||"Note";m="<</Type /Annot /Subtype /Text "+(g="/Rect ["+r(l.bounds.x*i)+" "+r(o-(l.bounds.y+l.bounds.h)*i)+" "+r((l.bounds.x+l.bounds.w)*i)+" "+r((o-l.bounds.y)*i)+"] ")+"/Contents ("+l.contents+")",m+=" /Popup "+u.objId+" 0 R",m+=" /P "+a.objId+" 0 R",m+=" /T ("+h+") >>",c.content=m;var d=c.objId+" 0 R";m="<</Type /Annot /Subtype /Popup "+(g="/Rect ["+r((l.bounds.x+30)*i)+" "+r(o-(l.bounds.y+l.bounds.h)*i)+" "+r((l.bounds.x+l.bounds.w+30)*i)+" "+r((o-l.bounds.y)*i)+"] ")+" /Parent "+d,l.open&&(m+=" /Open true"),m+=" >>",u.content=m,this.internal.write(c.objId,"0 R",u.objId,"0 R");break;case"freetext":var g="/Rect ["+r(l.bounds.x*i)+" "+r((o-l.bounds.y)*i)+" "+r(l.bounds.x+l.bounds.w*i)+" "+r(o-(l.bounds.y+l.bounds.h)*i)+"] ",f=l.color||"#000000";m="<</Type /Annot /Subtype /FreeText "+g+"/Contents ("+l.contents+")",m+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+f+")",m+=" /Border [0 0 0]",m+=" >>",this.internal.write(m);break;case"link":if(l.options.name){var p=this.annotations._nameMap[l.options.name];l.options.pageNumber=p.page,l.options.top=p.y}else l.options.top||(l.options.top=0);g="/Rect ["+r(l.x*i)+" "+r((o-l.y)*i)+" "+r((l.x+l.w)*i)+" "+r((o-(l.y+l.h))*i)+"] ";var m="";if(l.options.url)m="<</Type /Annot /Subtype /Link "+g+"/Border [0 0 0] /A <</S /URI /URI ("+l.options.url+") >>";else if(l.options.pageNumber)switch(m="<</Type /Annot /Subtype /Link "+g+"/Border [0 0 0] /Dest ["+(t=this.internal.getPageInfo(l.options.pageNumber)).objId+" 0 R",l.options.magFactor=l.options.magFactor||"XYZ",l.options.magFactor){case"Fit":m+=" /Fit]";break;case"FitH":m+=" /FitH "+l.options.top+"]";break;case"FitV":l.options.left=l.options.left||0,m+=" /FitV "+l.options.left+"]";break;case"XYZ":default:var w=r((o-l.options.top)*i);l.options.left=l.options.left||0,void 0===l.options.zoom&&(l.options.zoom=0),m+=" /XYZ "+l.options.left+" "+w+" "+l.options.zoom+"]"}""!=m&&(m+=" >>",this.internal.write(m))}}this.internal.write("]")}}]),a.createAnnotation=function(t){switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":this.annotationPlugin.annotations[this.internal.getCurrentPageInfo().pageNumber].push(t)}},a.link=function(t,e,A,n,r){this.annotationPlugin.annotations[this.internal.getCurrentPageInfo().pageNumber].push({x:t,y:e,w:A,h:n,options:r,type:"link"})},a.textWithLink=function(t,e,A,n){var r=this.getTextWidth(t),i=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(t,e,A),A+=.2*i,this.link(e,A-i,r,i,n),r},a.getTextWidth=function(t){var e=this.internal.getFontSize();return this.getStringUnitWidth(t)*e/this.internal.scaleFactor},a.getLineHeight=function(){return this.internal.getLineHeight()},function(t){var e=Object.keys({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)",fa:"Persian","fa-IR":"Persian/Iran",ur:"Urdu"}),A={1569:[65152],1570:[65153,65154,65153,65154],1571:[65155,65156,65155,65156],1572:[65157,65158],1573:[65159,65160,65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166,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,65193],1584:[65195,65196,65195],1585:[65197,65198,65197],1586:[65199,65200,65199],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,65261],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,64394],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={1570:[65269,65270,65269,65270],1571:[65271,65272,65271,65272],1573:[65273,65274,65273,65274],1575:[65275,65276,65275,65276]},r={1570:[65153,65154,65153,65154],1571:[65155,65156,65155,65156],1573:[65159,65160,65159,65160],1575:[65165,65166,65165,65166]},i={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},o=[1570,1571,1573,1575],a=[1569,1570,1571,1572,1573,1575,1577,1583,1584,1585,1586,1608,1688],s=0,l=1,c=2,u=3;function h(t){return void 0!==t&&void 0!==A[t.charCodeAt(0)]}function d(t){return void 0!==t&&0<=a.indexOf(t.charCodeAt(0))}function g(t){return void 0!==t&&0<=o.indexOf(t.charCodeAt(0))}function f(t){return h(t)&&2<=A[t.charCodeAt(0)].length}function p(t,e,n,i){return h(t)?(i=i||{},A=Object.assign(A,i),!f(t)||!h(e)&&!h(n)||!h(n)&&d(e)||d(t)&&!h(e)||d(t)&&g(e)||d(t)&&d(e)?(A=Object.assign(A,r),s):h(o=t)&&4==A[o.charCodeAt(0)].length&&h(e)&&!d(e)&&h(n)&&f(n)?(A=Object.assign(A,r),u):d(t)||!h(n)?(A=Object.assign(A,r),l):(A=Object.assign(A,r),c)):-1;var o}var m=t.processArabic=function(t,e){t=t||"",e=e||!1;var o,a,s,l="",c=0,u=0,d="",f="",m="";for(c=0;c<t.length;c+=1)d=t[c],f=t[c-1],m=t[c+1],h(d)?void 0!==f&&1604===f.charCodeAt(0)&&g(d)?(u=p(d,t[c-2],t[c+1],n),o=String.fromCharCode(n[d.charCodeAt(0)][u]),l=l.substr(0,l.length-1)+o):void 0!==f&&1617===f.charCodeAt(0)&&void 0!==(a=d)&&void 0!==i[a.charCodeAt(0)]?(u=p(d,t[c-2],t[c+1],r),o=String.fromCharCode(i[d.charCodeAt(0)][u]),l=l.substr(0,l.length-1)+o):(u=p(d,f,m,r),l+=String.fromCharCode(A[d.charCodeAt(0)][u])):l+=e?{"(":")",")":"("}[s=d]||s:d;return e?l.split("").reverse().join(""):l};t.events.push(["preProcessText",function(t){var A=t.text,n=(t.x,t.y,t.options||{}),r=(t.mutex,n.lang),i=[];if(0<=e.indexOf(r)){if("[object Array]"===Object.prototype.toString.call(A)){var o=0;for(i=[],o=0;o<A.length;o+=1)"[object Array]"===Object.prototype.toString.call(A[o])?i.push([m(A[o][0],!0),A[o][1],A[o][2]]):i.push([m(A[o],!0)]);t.text=i}else t.text=m(A,!0);void 0===n.charSpace&&(t.options.charSpace=0),!0===n.R2L&&(t.options.R2L=!1)}}])}(at.API),at.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},(l=at.API).events.push(["initialized",function(){this.canvas.pdf=this}]),l.canvas={getContext:function(t){return(this.pdf.context2d._canvas=this).pdf.context2d},childNodes:[]},Object.defineProperty(l.canvas,"width",{get:function(){return this._width},set:function(t){this._width=t,this.getContext("2d").pageWrapX=t+1}}),Object.defineProperty(l.canvas,"height",{get:function(){return this._height},set:function(t){this._height=t,this.getContext("2d").pageWrapY=t+1}}),c=at.API,f={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},p=1,m=function(t,e,A,n,r){f={x:t,y:e,w:A,h:n,ln:r}},w=function(){return f},B={left:0,top:0,bottom:0},c.setHeaderFunction=function(t){g=t},c.getTextDimensions=function(t){u=this.internal.getFont().fontName,h=this.table_font_size||this.internal.getFontSize(),d=this.internal.getFont().fontStyle;var e,A,n=19.049976/25.4;(A=document.createElement("font")).id="jsPDFCell";try{A.style.fontStyle=d}catch(e){A.style.fontWeight=d}A.style.fontSize=h+"pt",A.style.fontFamily=u;try{A.textContent=t}catch(e){A.innerText=t}return document.body.appendChild(A),e={w:(A.offsetWidth+1)*n,h:(A.offsetHeight+1)*n},document.body.removeChild(A),e},c.cellAddPage=function(){var t=this.margins||B;this.addPage(),m(t.left,t.top,void 0,void 0),p+=1},c.cellInitialize=function(){f={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},p=1},c.cell=function(t,e,A,n,r,i,o){var a=w(),s=!1;if(void 0!==a.ln)if(a.ln===i)t=a.x+a.w,e=a.y;else{var l=this.margins||B;a.y+a.h+n+13>=this.internal.pageSize.getHeight()-l.bottom&&(this.cellAddPage(),s=!0,this.printHeaders&&this.tableHeaderRow&&this.printHeaderRow(i,!0)),e=w().y+w().h,s&&(e=23)}if(void 0!==r[0])if(this.printingHeaderRow?this.rect(t,e,A,n,"FD"):this.rect(t,e,A,n),"right"===o){r instanceof Array||(r=[r]);for(var c=0;c<r.length;c++){var u=r[c],h=this.getStringUnitWidth(u)*this.internal.getFontSize();this.text(u,t+A-h-3,e+this.internal.getLineHeight()*(c+1))}}else this.text(r,t+3,e+this.internal.getLineHeight());return m(t,e,A,n,i),this},c.arrayMax=function(t,e){var A,n,r,i=t[0];for(A=0,n=t.length;A<n;A+=1)r=t[A],e?-1===e(i,r)&&(i=r):i<r&&(i=r);return i},c.table=function(t,e,A,n,r){if(!A)throw"No data for PDF table";var i,o,a,s,l,u,h,d,g,m,w=[],v=[],y={},b={},C=[],x=[],F=!1,Q=!0,U=12,_=B;if(_.width=this.internal.pageSize.getWidth(),r&&(!0===r.autoSize&&(F=!0),!1===r.printHeaders&&(Q=!1),r.fontSize&&(U=r.fontSize),r.css&&void 0!==r.css["font-size"]&&(U=16*r.css["font-size"]),r.margins&&(_=r.margins)),this.lnMod=0,f={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},p=1,this.printHeaders=Q,this.margins=_,this.setFontSize(U),this.table_font_size=U,null==n)w=Object.keys(A[0]);else if(n[0]&&"string"!=typeof n[0])for(o=0,a=n.length;o<a;o+=1)i=n[o],w.push(i.name),v.push(i.prompt),b[i.name]=i.width*(19.049976/25.4);else w=n;if(F)for(m=function(t){return t[i]},o=0,a=w.length;o<a;o+=1){for(y[i=w[o]]=A.map(m),C.push(this.getTextDimensions(v[o]||i).w),h=0,s=(u=y[i]).length;h<s;h+=1)l=u[h],C.push(this.getTextDimensions(l).w);b[i]=c.arrayMax(C),C=[]}if(Q){var I=this.calculateLineHeight(w,b,v.length?v:w);for(o=0,a=w.length;o<a;o+=1)i=w[o],x.push([t,e,b[i],I,String(v.length?v[o]:i)]);this.setTableHeaderRow(x),this.printHeaderRow(1,!1)}for(o=0,a=A.length;o<a;o+=1)for(d=A[o],I=this.calculateLineHeight(w,b,d),h=0,g=w.length;h<g;h+=1)i=w[h],this.cell(t,e,b[i],I,d[i],o+2,i.align);return this.lastCellPos=f,this.table_x=t,this.table_y=e,this},c.calculateLineHeight=function(t,e,A){for(var n,r=0,i=0;i<t.length;i++){A[n=t[i]]=this.splitTextToSize(String(A[n]),e[n]-3);var o=this.internal.getLineHeight()*A[n].length+3;r<o&&(r=o)}return r},c.setTableHeaderRow=function(t){this.tableHeaderRow=t},c.printHeaderRow=function(t,e){if(!this.tableHeaderRow)throw"Property tableHeaderRow does not exist.";var A,n,r,i;if(this.printingHeaderRow=!0,void 0!==g){var o=g(this,p);m(o[0],o[1],o[2],o[3],-1)}this.setFontStyle("bold");var a=[];for(r=0,i=this.tableHeaderRow.length;r<i;r+=1)this.setFillColor(200,200,200),A=this.tableHeaderRow[r],e&&(this.margins.top=13,A[1]=this.margins&&this.margins.top||0,a.push(A)),n=[].concat(A),this.cell.apply(this,n.concat(t));0<a.length&&this.setTableHeaderRow(a),this.setFontStyle("normal"),this.printingHeaderRow=!1},function(t){t.events.push(["initialized",function(){((this.context2d.pdf=this).context2d.internal.pdf=this).context2d.ctx=new A,this.context2d.ctxStack=[],this.context2d.path=[]}]),t.context2d={pageWrapXEnabled:!1,pageWrapYEnabled:!1,pageWrapX:9999999,pageWrapY:9999999,ctx:new A,f2:function(t){return t.toFixed(2)},fillRect:function(t,e,A,n){if(!this._isFillTransparent()){t=this._wrapX(t),e=this._wrapY(e);var r=this._matrix_map_rect(this.ctx._transform,{x:t,y:e,w:A,h:n});this.pdf.rect(r.x,r.y,r.w,r.h,"f")}},strokeRect:function(t,e,A,n){if(!this._isStrokeTransparent()){t=this._wrapX(t),e=this._wrapY(e);var r=this._matrix_map_rect(this.ctx._transform,{x:t,y:e,w:A,h:n});this.pdf.rect(r.x,r.y,r.w,r.h,"s")}},clearRect:function(t,e,A,n){if(!this.ctx.ignoreClearRect){t=this._wrapX(t),e=this._wrapY(e);var r=this._matrix_map_rect(this.ctx._transform,{x:t,y:e,w:A,h:n});this.save(),this.setFillStyle("#ffffff"),this.pdf.rect(r.x,r.y,r.w,r.h,"f"),this.restore()}},save:function(){this.ctx._fontSize=this.pdf.internal.getFontSize();var t=new A;t.copy(this.ctx),this.ctxStack.push(this.ctx),this.ctx=t},restore:function(){this.ctx=this.ctxStack.pop(),this.setFillStyle(this.ctx.fillStyle),this.setStrokeStyle(this.ctx.strokeStyle),this.setFont(this.ctx.font),this.pdf.setFontSize(this.ctx._fontSize),this.setLineCap(this.ctx.lineCap),this.setLineWidth(this.ctx.lineWidth),this.setLineJoin(this.ctx.lineJoin)},rect:function(t,e,A,n){this.moveTo(t,e),this.lineTo(t+A,e),this.lineTo(t+A,e+n),this.lineTo(t,e+n),this.lineTo(t,e),this.closePath()},beginPath:function(){this.path=[]},closePath:function(){this.path.push({type:"close"})},_getRGBA:function(t){var e,A,n,r,i=new RGBColor(t);if(!t)return{r:0,g:0,b:0,a:0,style:t};if(this.internal.rxTransparent.test(t))r=n=A=e=0;else{var o=this.internal.rxRgb.exec(t);null!=o?(e=parseInt(o[1]),A=parseInt(o[2]),n=parseInt(o[3]),r=1):null!=(o=this.internal.rxRgba.exec(t))?(e=parseInt(o[1]),A=parseInt(o[2]),n=parseInt(o[3]),r=parseFloat(o[4])):(r=1,"#"!=t.charAt(0)&&(t=i.ok?i.toHex():"#000000"),4===t.length?(e=t.substring(1,2),e+=e,A=t.substring(2,3),A+=A,n=t.substring(3,4),n+=n):(e=t.substring(1,3),A=t.substring(3,5),n=t.substring(5,7)),e=parseInt(e,16),A=parseInt(A,16),n=parseInt(n,16))}return{r:e,g:A,b:n,a:r,style:t}},setFillStyle:function(t){var e=this._getRGBA(t);this.ctx.fillStyle=t,this.ctx._isFillTransparent=0===e.a,this.ctx._fillOpacity=e.a,this.pdf.setFillColor(e.r,e.g,e.b,{a:e.a}),this.pdf.setTextColor(e.r,e.g,e.b,{a:e.a})},setStrokeStyle:function(t){var e=this._getRGBA(t);this.ctx.strokeStyle=e.style,this.ctx._isStrokeTransparent=0===e.a,this.ctx._strokeOpacity=e.a,0===e.a?this.pdf.setDrawColor(255,255,255):(e.a,this.pdf.setDrawColor(e.r,e.g,e.b))},fillText:function(t,e,A,n){if(!this._isFillTransparent()){e=this._wrapX(e),A=this._wrapY(A);var r=this._matrix_map_point(this.ctx._transform,[e,A]);e=r[0],A=r[1];var i=57.2958*this._matrix_rotation(this.ctx._transform);if(0<this.ctx._clip_path.length){var o;(o=window.outIntercept?"group"===window.outIntercept.type?window.outIntercept.stream:window.outIntercept:this.internal.getCurrentPage()).push("q");var a=this.path;this.path=this.ctx._clip_path,this.ctx._clip_path=[],this._fill(null,!0),this.ctx._clip_path=this.path,this.path=a}var s=1;try{s=this._matrix_decompose(this._getTransform()).scale[0]}catch(t){console.warn(t)}if(s<.01)this.pdf.text(t,e,this._getBaseline(A),null,i);else{var l=this.pdf.internal.getFontSize();this.pdf.setFontSize(l*s),this.pdf.text(t,e,this._getBaseline(A),null,i),this.pdf.setFontSize(l)}0<this.ctx._clip_path.length&&o.push("Q")}},strokeText:function(t,e,A,n){if(!this._isStrokeTransparent()){e=this._wrapX(e),A=this._wrapY(A);var r=this._matrix_map_point(this.ctx._transform,[e,A]);e=r[0],A=r[1];var i=57.2958*this._matrix_rotation(this.ctx._transform);if(0<this.ctx._clip_path.length){var o;(o=window.outIntercept?"group"===window.outIntercept.type?window.outIntercept.stream:window.outIntercept:this.internal.getCurrentPage()).push("q");var a=this.path;this.path=this.ctx._clip_path,this.ctx._clip_path=[],this._fill(null,!0),this.ctx._clip_path=this.path,this.path=a}var s=1;try{s=this._matrix_decompose(this._getTransform()).scale[0]}catch(t){console.warn(t)}if(1===s)this.pdf.text(t,e,this._getBaseline(A),{stroke:!0},i);else{var l=this.pdf.internal.getFontSize();this.pdf.setFontSize(l*s),this.pdf.text(t,e,this._getBaseline(A),{stroke:!0},i),this.pdf.setFontSize(l)}0<this.ctx._clip_path.length&&o.push("Q")}},setFont:function(t){if(this.ctx.font=t,null!=(l=/\s*(\w+)\s+(\w+)\s+(\w+)\s+([\d\.]+)(px|pt|em)\s+(.*)?/.exec(t))){var e=l[1],A=(l[2],l[3]),n=l[4],r=l[5],i=l[6];n="px"===r?Math.floor(parseFloat(n)):"em"===r?Math.floor(parseFloat(n)*this.pdf.getFontSize()):Math.floor(parseFloat(n)),this.pdf.setFontSize(n),"bold"===A||"700"===A?this.pdf.setFontStyle("bold"):"italic"===e?this.pdf.setFontStyle("italic"):this.pdf.setFontStyle("normal"),c="bold"===A||"700"===A?"italic"===e?"bolditalic":"bold":"italic"===e?"italic":"normal";for(var o=i.toLowerCase().split(/\s*,\s*/),a="Times",s=0;s<o.length;s++){if(void 0!==this.pdf.internal.getFont(o[s],c,{noFallback:!0,disableWarning:!0})){a=o[s];break}if("bolditalic"===c&&void 0!==this.pdf.internal.getFont(o[s],"bold",{noFallback:!0,disableWarning:!0}))a=o[s],c="bold";else if(void 0!==this.pdf.internal.getFont(o[s],"normal",{noFallback:!0,disableWarning:!0})){a=o[s],c="normal";break}}this.pdf.setFont(a,c)}else{var l=/\s*(\d+)(pt|px|em)\s+([\w "]+)\s*([\w "]+)?/.exec(t);if(null!=l){var c,u=l[1],h=(l[2],l[3]);(c=l[4])||(c="normal"),u="em"===r?Math.floor(parseFloat(n)*this.pdf.getFontSize()):Math.floor(parseFloat(u)),this.pdf.setFontSize(u),this.pdf.setFont(h,c)}}},setTextBaseline:function(t){this.ctx.textBaseline=t},getTextBaseline:function(){return this.ctx.textBaseline},setTextAlign:function(t){this.ctx.textAlign=t},getTextAlign:function(){return this.ctx.textAlign},setLineWidth:function(t){this.ctx.lineWidth=t,this.pdf.setLineWidth(t)},setLineCap:function(t){this.ctx.lineCap=t,this.pdf.setLineCap(t)},setLineJoin:function(t){this.ctx.lineJoin=t,this.pdf.setLineJoin(t)},moveTo:function(t,e){t=this._wrapX(t),e=this._wrapY(e);var A=this._matrix_map_point(this.ctx._transform,[t,e]),n={type:"mt",x:t=A[0],y:e=A[1]};this.path.push(n)},_wrapX:function(t){return this.pageWrapXEnabled?t%this.pageWrapX:t},_wrapY:function(t){return this.pageWrapYEnabled?(this._gotoPage(this._page(t)),(t-this.lastBreak)%this.pageWrapY):t},transform:function(t,e,A,n,r,i){this.ctx._transform=this._matrix_multiply(this.ctx._transform,[t,e,A,n,r,i])},setTransform:function(t,e,A,n,r,i){this.ctx._transform=[t,e,A,n,r,i]},_getTransform:function(){return this.ctx._transform},lastBreak:0,pageBreaks:[],_page:function(t){if(this.pageWrapYEnabled){for(var e=this.lastBreak=0,A=0,n=0;n<this.pageBreaks.length;n++)if(t>=this.pageBreaks[n]){e++,0===this.lastBreak&&A++;var r=this.pageBreaks[n]-this.lastBreak;this.lastBreak=this.pageBreaks[n],A+=Math.floor(r/this.pageWrapY)}return 0===this.lastBreak&&(A+=Math.floor(t/this.pageWrapY)+1),A+e}return this.pdf.internal.getCurrentPageInfo().pageNumber},_gotoPage:function(t){},lineTo:function(t,e){t=this._wrapX(t),e=this._wrapY(e);var A=this._matrix_map_point(this.ctx._transform,[t,e]),n={type:"lt",x:t=A[0],y:e=A[1]};this.path.push(n)},bezierCurveTo:function(t,e,A,n,r,i){var o;t=this._wrapX(t),e=this._wrapY(e),A=this._wrapX(A),n=this._wrapY(n),r=this._wrapX(r),i=this._wrapY(i),r=(o=this._matrix_map_point(this.ctx._transform,[r,i]))[0],i=o[1];var a={type:"bct",x1:t=(o=this._matrix_map_point(this.ctx._transform,[t,e]))[0],y1:e=o[1],x2:A=(o=this._matrix_map_point(this.ctx._transform,[A,n]))[0],y2:n=o[1],x:r,y:i};this.path.push(a)},quadraticCurveTo:function(t,e,A,n){var r;t=this._wrapX(t),e=this._wrapY(e),A=this._wrapX(A),n=this._wrapY(n),A=(r=this._matrix_map_point(this.ctx._transform,[A,n]))[0],n=r[1];var i={type:"qct",x1:t=(r=this._matrix_map_point(this.ctx._transform,[t,e]))[0],y1:e=r[1],x:A,y:n};this.path.push(i)},arc:function(t,e,A,n,r,i){if(t=this._wrapX(t),e=this._wrapY(e),!this._matrix_is_identity(this.ctx._transform)){var o=this._matrix_map_point(this.ctx._transform,[t,e]);t=o[0],e=o[1];var a=this._matrix_map_point(this.ctx._transform,[0,0]),s=this._matrix_map_point(this.ctx._transform,[0,A]);A=Math.sqrt(Math.pow(s[0]-a[0],2)+Math.pow(s[1]-a[1],2))}var l={type:"arc",x:t,y:e,radius:A,startAngle:n,endAngle:r,anticlockwise:i};this.path.push(l)},drawImage:function(t,e,A,n,r,i,o,a,s){void 0!==i&&(e=i,A=o,n=a,r=s),e=this._wrapX(e),A=this._wrapY(A);var l,c=this._matrix_map_rect(this.ctx._transform,{x:e,y:A,w:n,h:r}),u=(this._matrix_map_rect(this.ctx._transform,{x:i,y:o,w:a,h:s}),/data:image\/(\w+).*/i.exec(t));l=null!=u?u[1]:"png",this.pdf.addImage(t,l,c.x,c.y,c.w,c.h)},_matrix_multiply:function(t,e){var A=e[0],n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=A*t[0]+n*t[2],l=r*t[0]+i*t[2],c=o*t[0]+a*t[2]+t[4];return n=A*t[1]+n*t[3],i=r*t[1]+i*t[3],a=o*t[1]+a*t[3]+t[5],[A=s,n,r=l,i,o=c,a]},_matrix_rotation:function(t){return Math.atan2(t[2],t[0])},_matrix_decompose:function(t){var e=t[0],A=t[1],n=t[2],r=t[3],i=Math.sqrt(e*e+A*A),o=(e/=i)*n+(A/=i)*r;n-=e*o,r-=A*o;var a=Math.sqrt(n*n+r*r);return o/=a,e*(r/=a)<A*(n/=a)&&(e=-e,A=-A,o=-o,i=-i),{scale:[i,0,0,a,0,0],translate:[1,0,0,1,t[4],t[5]],rotate:[e,A,-A,e,0,0],skew:[1,0,o,1,0,0]}},_matrix_map_point:function(t,e){var A=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=e[0],l=e[1];return[s*A+l*r+o,s*n+l*i+a]},_matrix_map_point_obj:function(t,e){var A=this._matrix_map_point(t,[e.x,e.y]);return{x:A[0],y:A[1]}},_matrix_map_rect:function(t,e){var A=this._matrix_map_point(t,[e.x,e.y]),n=this._matrix_map_point(t,[e.x+e.w,e.y+e.h]);return{x:A[0],y:A[1],w:n[0]-A[0],h:n[1]-A[1]}},_matrix_is_identity:function(t){return 1==t[0]&&0==t[1]&&0==t[2]&&1==t[3]&&0==t[4]&&0==t[5]},rotate:function(t){var e=[Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0];this.ctx._transform=this._matrix_multiply(this.ctx._transform,e)},scale:function(t,e){var A=[t,0,0,e,0,0];this.ctx._transform=this._matrix_multiply(this.ctx._transform,A)},translate:function(t,e){var A=[1,0,0,1,t,e];this.ctx._transform=this._matrix_multiply(this.ctx._transform,A)},stroke:function(){if(0<this.ctx._clip_path.length){var t;(t=window.outIntercept?"group"===window.outIntercept.type?window.outIntercept.stream:window.outIntercept:this.internal.getCurrentPage()).push("q");var e=this.path;this.path=this.ctx._clip_path,this.ctx._clip_path=[],this._stroke(!0),this.ctx._clip_path=this.path,this.path=e,this._stroke(!1),t.push("Q")}else this._stroke(!1)},_stroke:function(t){if(t||!this._isStrokeTransparent()){for(var e=[],A=this.path,n=0;n<A.length;n++){var r=A[n];switch(r.type){case"mt":e.push({start:r,deltas:[],abs:[]});break;case"lt":var i=[r.x-A[n-1].x,r.y-A[n-1].y];e[e.length-1].deltas.push(i),e[e.length-1].abs.push(r);break;case"bct":i=[r.x1-A[n-1].x,r.y1-A[n-1].y,r.x2-A[n-1].x,r.y2-A[n-1].y,r.x-A[n-1].x,r.y-A[n-1].y],e[e.length-1].deltas.push(i);break;case"qct":var o=A[n-1].x+2/3*(r.x1-A[n-1].x),a=A[n-1].y+2/3*(r.y1-A[n-1].y),s=r.x+2/3*(r.x1-r.x),l=r.y+2/3*(r.y1-r.y),c=r.x,u=r.y;i=[o-A[n-1].x,a-A[n-1].y,s-A[n-1].x,l-A[n-1].y,c-A[n-1].x,u-A[n-1].y],e[e.length-1].deltas.push(i);break;case"arc":0==e.length&&e.push({start:{x:0,y:0},deltas:[],abs:[]}),e[e.length-1].arc=!0,Array.isArray(e[e.length-1].abs)&&e[e.length-1].abs.push(r)}}for(n=0;n<e.length;n++){var h;if(h=n==e.length-1?"s":null,e[n].arc)for(var d=e[n].abs,g=0;g<d.length;g++){var f=d[g],p=360*f.startAngle/(2*Math.PI),m=360*f.endAngle/(2*Math.PI),w=f.x,B=f.y;this.internal.arc2(this,w,B,f.radius,p,m,f.anticlockwise,h,t)}else w=e[n].start.x,B=e[n].start.y,t?(this.pdf.lines(e[n].deltas,w,B,null,null),this.pdf.clip_fixed()):this.pdf.lines(e[n].deltas,w,B,null,h)}}},_isFillTransparent:function(){return this.ctx._isFillTransparent||0==this.globalAlpha},_isStrokeTransparent:function(){return this.ctx._isStrokeTransparent||0==this.globalAlpha},fill:function(t){if(0<this.ctx._clip_path.length){var e;(e=window.outIntercept?"group"===window.outIntercept.type?window.outIntercept.stream:window.outIntercept:this.internal.getCurrentPage()).push("q");var A=this.path;this.path=this.ctx._clip_path,this.ctx._clip_path=[],this._fill(t,!0),this.ctx._clip_path=this.path,this.path=A,this._fill(t,!1),e.push("Q")}else this._fill(t,!1)},_fill:function(t,A){if(!this._isFillTransparent()){var n,r="function"==typeof this.pdf.internal.newObject2;n=window.outIntercept?"group"===window.outIntercept.type?window.outIntercept.stream:window.outIntercept:this.internal.getCurrentPage();var i=[],o=window.outIntercept;if(r)switch(this.ctx.globalCompositeOperation){case"normal":case"source-over":break;case"destination-in":case"destination-out":var a=this.pdf.internal.newStreamObject(),s=this.pdf.internal.newObject2();s.push("<</Type /ExtGState"),s.push("/SMask <</S /Alpha /G "+a.objId+" 0 R>>"),s.push(">>");var l="MASK"+s.objId;this.pdf.internal.addGraphicsState(l,s.objId);var c="/"+l+" gs";n.splice(0,0,"q"),n.splice(1,0,c),n.push("Q"),window.outIntercept=a;break;default:var u="/"+this.pdf.internal.blendModeMap[this.ctx.globalCompositeOperation.toUpperCase()];u&&this.pdf.internal.out(u+" gs")}var h=this.ctx.globalAlpha;if(this.ctx._fillOpacity<1&&(h=this.ctx._fillOpacity),r){var d=this.pdf.internal.newObject2();d.push("<</Type /ExtGState"),d.push("/CA "+h),d.push("/ca "+h),d.push(">>"),l="GS_O_"+d.objId,this.pdf.internal.addGraphicsState(l,d.objId),this.pdf.internal.out("/"+l+" gs")}for(var g=this.path,f=0;f<g.length;f++){var p=g[f];switch(p.type){case"mt":i.push({start:p,deltas:[],abs:[]});break;case"lt":var m=[p.x-g[f-1].x,p.y-g[f-1].y];i[i.length-1].deltas.push(m),i[i.length-1].abs.push(p);break;case"bct":m=[p.x1-g[f-1].x,p.y1-g[f-1].y,p.x2-g[f-1].x,p.y2-g[f-1].y,p.x-g[f-1].x,p.y-g[f-1].y],i[i.length-1].deltas.push(m);break;case"qct":var w=g[f-1].x+2/3*(p.x1-g[f-1].x),B=g[f-1].y+2/3*(p.y1-g[f-1].y),v=p.x+2/3*(p.x1-p.x),y=p.y+2/3*(p.y1-p.y),b=p.x,C=p.y;m=[w-g[f-1].x,B-g[f-1].y,v-g[f-1].x,y-g[f-1].y,b-g[f-1].x,C-g[f-1].y],i[i.length-1].deltas.push(m);break;case"arc":0===i.length&&i.push({deltas:[],abs:[]}),i[i.length-1].arc=!0,Array.isArray(i[i.length-1].abs)&&i[i.length-1].abs.push(p);break;case"close":i.push({close:!0})}}for(f=0;f<i.length;f++){var x;if(f==i.length-1?(x="f","evenodd"===t&&(x+="*")):x=null,i[f].close)this.pdf.internal.out("h"),x&&this.pdf.internal.out(x);else if(i[f].arc){i[f].start&&this.internal.move2(this,i[f].start.x,i[f].start.y);for(var F=i[f].abs,Q=0;Q<F.length;Q++){var U=F[Q];if(void 0!==U.startAngle){var _=360*U.startAngle/(2*Math.PI),I=360*U.endAngle/(2*Math.PI),E=U.x,k=U.y;0===Q&&this.internal.move2(this,E,k),this.internal.arc2(this,E,k,U.radius,_,I,U.anticlockwise,null,A),Q===F.length-1&&i[f].start&&(E=i[f].start.x,k=i[f].start.y,this.internal.line2(e,E,k))}else this.internal.line2(e,U.x,U.y)}}else E=i[f].start.x,k=i[f].start.y,A?(this.pdf.lines(i[f].deltas,E,k,null,null),this.pdf.clip_fixed()):this.pdf.lines(i[f].deltas,E,k,null,x)}window.outIntercept=o}},pushMask:function(){if("function"==typeof this.pdf.internal.newObject2){var t=this.pdf.internal.newStreamObject(),e=this.pdf.internal.newObject2();e.push("<</Type /ExtGState"),e.push("/SMask <</S /Alpha /G "+t.objId+" 0 R>>"),e.push(">>");var A="MASK"+e.objId;this.pdf.internal.addGraphicsState(A,e.objId);var n="/"+A+" gs";this.pdf.internal.out(n)}else console.log("jsPDF v2 not enabled")},clip:function(){if(0<this.ctx._clip_path.length)for(var t=0;t<this.path.length;t++)this.ctx._clip_path.push(this.path[t]);else this.ctx._clip_path=this.path;this.path=[]},measureText:function(t){var e=this.pdf;return{getWidth:function(){var A=e.internal.getFontSize(),n=e.getStringUnitWidth(t)*A/e.internal.scaleFactor;return 1.3333*n},get width(){return this.getWidth(t)}}},_getBaseline:function(t){var e=parseInt(this.pdf.internal.getFontSize()),A=.25*e;switch(this.ctx.textBaseline){case"bottom":return t-A;case"top":return t+e;case"hanging":return t+e-A;case"middle":return t+e/2-A;case"ideographic":return t;case"alphabetic":default:return t}}};var e=t.context2d;function A(){this._isStrokeTransparent=!1,this._strokeOpacity=1,this.strokeStyle="#000000",this.fillStyle="#000000",this._isFillTransparent=!1,this._fillOpacity=1,this.font="12pt times",this.textBaseline="alphabetic",this.textAlign="start",this.lineWidth=1,this.lineJoin="miter",this.lineCap="butt",this._transform=[1,0,0,1,0,0],this.globalCompositeOperation="normal",this.globalAlpha=1,this._clip_path=[],this.ignoreClearRect=!1,this.copy=function(t){this._isStrokeTransparent=t._isStrokeTransparent,this._strokeOpacity=t._strokeOpacity,this.strokeStyle=t.strokeStyle,this._isFillTransparent=t._isFillTransparent,this._fillOpacity=t._fillOpacity,this.fillStyle=t.fillStyle,this.font=t.font,this.lineWidth=t.lineWidth,this.lineJoin=t.lineJoin,this.lineCap=t.lineCap,this.textBaseline=t.textBaseline,this.textAlign=t.textAlign,this._fontSize=t._fontSize,this._transform=t._transform.slice(0),this.globalCompositeOperation=t.globalCompositeOperation,this.globalAlpha=t.globalAlpha,this._clip_path=t._clip_path.slice(0),this.ignoreClearRect=t.ignoreClearRect}}Object.defineProperty(e,"fillStyle",{set:function(t){this.setFillStyle(t)},get:function(){return this.ctx.fillStyle}}),Object.defineProperty(e,"strokeStyle",{set:function(t){this.setStrokeStyle(t)},get:function(){return this.ctx.strokeStyle}}),Object.defineProperty(e,"lineWidth",{set:function(t){this.setLineWidth(t)},get:function(){return this.ctx.lineWidth}}),Object.defineProperty(e,"lineCap",{set:function(t){this.setLineCap(t)},get:function(){return this.ctx.lineCap}}),Object.defineProperty(e,"lineJoin",{set:function(t){this.setLineJoin(t)},get:function(){return this.ctx.lineJoin}}),Object.defineProperty(e,"miterLimit",{set:function(t){this.ctx.miterLimit=t},get:function(){return this.ctx.miterLimit}}),Object.defineProperty(e,"textBaseline",{set:function(t){this.setTextBaseline(t)},get:function(){return this.getTextBaseline()}}),Object.defineProperty(e,"textAlign",{set:function(t){this.setTextAlign(t)},get:function(){return this.getTextAlign()}}),Object.defineProperty(e,"font",{set:function(t){this.setFont(t)},get:function(){return this.ctx.font}}),Object.defineProperty(e,"globalCompositeOperation",{set:function(t){this.ctx.globalCompositeOperation=t},get:function(){return this.ctx.globalCompositeOperation}}),Object.defineProperty(e,"globalAlpha",{set:function(t){this.ctx.globalAlpha=t},get:function(){return this.ctx.globalAlpha}}),Object.defineProperty(e,"canvas",{get:function(){return{parentNode:!1,style:!1}}}),Object.defineProperty(e,"ignoreClearRect",{set:function(t){this.ctx.ignoreClearRect=t},get:function(){return this.ctx.ignoreClearRect}}),e.internal={},e.internal.rxRgb=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/,e.internal.rxRgba=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d\.]+)\s*\)/,e.internal.rxTransparent=/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/,e.internal.arc=function(t,e,A,n,r,i,o,a){for(var s=this.pdf.internal.scaleFactor,l=this.pdf.internal.pageSize.getHeight(),c=this.pdf.internal.f2,u=r*(Math.PI/180),h=i*(Math.PI/180),d=this.createArc(n,u,h,o),g=0;g<d.length;g++){var f=d[g];0===g?this.pdf.internal.out([c((f.x1+e)*s),c((l-(f.y1+A))*s),"m",c((f.x2+e)*s),c((l-(f.y2+A))*s),c((f.x3+e)*s),c((l-(f.y3+A))*s),c((f.x4+e)*s),c((l-(f.y4+A))*s),"c"].join(" ")):this.pdf.internal.out([c((f.x2+e)*s),c((l-(f.y2+A))*s),c((f.x3+e)*s),c((l-(f.y3+A))*s),c((f.x4+e)*s),c((l-(f.y4+A))*s),"c"].join(" ")),t._lastPoint={x:e,y:A}}null!==a&&this.pdf.internal.out(this.pdf.internal.getStyle(a))},e.internal.arc2=function(t,e,A,n,r,i,o,a,s){var l=e,c=A;s?(this.arc(t,l,c,n,r,i,o,null),this.pdf.clip_fixed()):this.arc(t,l,c,n,r,i,o,a)},e.internal.move2=function(t,e,A){var n=this.pdf.internal.scaleFactor,r=this.pdf.internal.pageSize.getHeight(),i=this.pdf.internal.f2;this.pdf.internal.out([i(e*n),i((r-A)*n),"m"].join(" ")),t._lastPoint={x:e,y:A}},e.internal.line2=function(t,e,A){var n=this.pdf.internal.scaleFactor,r=this.pdf.internal.pageSize.getHeight(),i=this.pdf.internal.f2,o={x:e,y:A};this.pdf.internal.out([i(o.x*n),i((r-o.y)*n),"l"].join(" ")),t._lastPoint=o},e.internal.createArc=function(t,e,A,n){var r=2*Math.PI,i=Math.PI/2,o=e;for((o<r||r<o)&&(o%=r),o<0&&(o=r+o);A<e;)e-=r;var a=Math.abs(A-e);a<r&&n&&(a=r-a);for(var s=[],l=n?-1:1,c=o;1e-5<a;){var u=c+l*Math.min(a,i);s.push(this.createSmallArc(t,c,u)),a-=Math.abs(u-c),c=u}return s},e.internal.getCurrentPage=function(){return this.pdf.internal.pages[this.pdf.internal.getCurrentPageInfo().pageNumber]},e.internal.createSmallArc=function(t,e,A){var n=(A-e)/2,r=t*Math.cos(n),i=t*Math.sin(n),o=r,a=-i,s=o*o+a*a,l=s+o*r+a*i,c=4/3*(Math.sqrt(2*s*l)-l)/(o*i-a*r),u=o-c*a,h=a+c*o,d=u,g=-h,f=n+e,p=Math.cos(f),m=Math.sin(f);return{x1:t*Math.cos(e),y1:t*Math.sin(e),x2:u*p-h*m,y2:u*m+h*p,x3:d*p-g*m,y3:d*m+g*p,x4:t*Math.cos(A),y4:t*Math.sin(A)}}}(at.API,"undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof n&&n||Function('return typeof this === "object" && this.content')()||Function("return this")()), /** @preserve * jsPDF fromHTML plugin. BETA stage. API subject to change. Needs browser * Copyright (c) 2012 Willow Systems Corporation, willow-systems.com * 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria * 2014 Diego Casorran, https://github.com/diegocr * 2014 Daniel Husar, https://github.com/danielhusar * 2014 Wolfgang Gassler, https://github.com/woolfg * 2014 Steven Spungin, https://github.com/flamenco * * * ==================================================================== */ function(t){var e,A,n,r,i,o,a,s,l,c,u,h,d,g,f,p,m,w,B,v;e=function(){return function(e){return t.prototype=e,new t};function t(){}}(),c=function(t){var e,A,n,r,i,o,a;for(A=0,n=t.length,e=void 0,o=r=!1;!r&&A!==n;)(e=t[A]=t[A].trimLeft())&&(r=!0),A++;for(A=n-1;n&&!o&&-1!==A;)(e=t[A]=t[A].trimRight())&&(o=!0),A--;for(i=/\s+$/g,a=!0,A=0;A!==n;)"\u2028"!=t[A]&&(e=t[A].replace(/\s+/g," "),a&&(e=e.trimLeft()),e&&(a=i.test(e)),t[A]=e),A++;return t},h=function(t){var e,A,r;for(e=void 0,A=(r=t.split(",")).shift();!e&&A;)e=n[A.trim().toLowerCase()],A=r.shift();return e},d=function(t){var e;return-1<(t="auto"===t?"0px":t).indexOf("em")&&!isNaN(Number(t.replace("em","")))&&(t=18.719*Number(t.replace("em",""))+"px"),-1<t.indexOf("pt")&&!isNaN(Number(t.replace("pt","")))&&(t=1.333*Number(t.replace("pt",""))+"px"),(e=g[t])?e:void 0!==(e={"xx-small":9,"x-small":11,small:13,medium:16,large:19,"x-large":23,"xx-large":28,auto:0}[t])||(e=parseFloat(t))?g[t]=e/16:(e=t.match(/([\d\.]+)(px)/),Array.isArray(e)&&3===e.length?g[t]=parseFloat(e[1])/16:g[t]=1)},l=function(t){var e,A,n,l,c;return c=t,l=document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(c,null):c.currentStyle?c.currentStyle:c.style,A=void 0,(e={})["font-family"]=h((n=function(t){return t=t.replace(/-\D/g,(function(t){return t.charAt(1).toUpperCase()})),l[t]})("font-family"))||"times",e["font-style"]=r[n("font-style")]||"normal",e["text-align"]=i[n("text-align")]||"left","bold"===(A=o[n("font-weight")]||"normal")&&("normal"===e["font-style"]?e["font-style"]=A:e["font-style"]=A+e["font-style"]),e["font-size"]=d(n("font-size"))||1,e["line-height"]=d(n("line-height"))||1,e.display="inline"===n("display")?"inline":"block",A="block"===e.display,e["margin-top"]=A&&d(n("margin-top"))||0,e["margin-bottom"]=A&&d(n("margin-bottom"))||0,e["padding-top"]=A&&d(n("padding-top"))||0,e["padding-bottom"]=A&&d(n("padding-bottom"))||0,e["margin-left"]=A&&d(n("margin-left"))||0,e["margin-right"]=A&&d(n("margin-right"))||0,e["padding-left"]=A&&d(n("padding-left"))||0,e["padding-right"]=A&&d(n("padding-right"))||0,e["page-break-before"]=n("page-break-before")||"auto",e.float=a[n("cssFloat")]||"none",e.clear=s[n("clear")]||"none",e.color=n("color"),e},f=function(t,e,A){var n,r,i,o,a;if(i=!1,o=r=void 0,n=A["#"+t.id])if("function"==typeof n)i=n(t,e);else for(r=0,o=n.length;!i&&r!==o;)i=n[r](t,e),r++;if(n=A[t.nodeName],!i&&n)if("function"==typeof n)i=n(t,e);else for(r=0,o=n.length;!i&&r!==o;)i=n[r](t,e),r++;for(a="string"==typeof t.className?t.className.split(" "):[],r=0;r<a.length;r++)if(n=A["."+a[r]],!i&&n)if("function"==typeof n)i=n(t,e);else for(r=0,o=n.length;!i&&r!==o;)i=n[r](t,e),r++;return i},v=function(t,e){var A,n,r,i,o,a,s,l,c;for(A=[],n=[],r=0,c=t.rows[0].cells.length,s=t.clientWidth;r<c;)l=t.rows[0].cells[r],n[r]={name:l.textContent.toLowerCase().replace(/\s+/g,""),prompt:l.textContent.replace(/\r?\n/g,""),width:l.clientWidth/s*e.pdf.internal.pageSize.getWidth()},r++;for(r=1;r<t.rows.length;){for(a=t.rows[r],o={},i=0;i<a.cells.length;)o[n[i].name]=a.cells[i].textContent.replace(/\r?\n/g,""),i++;A.push(o),r++}return{rows:A,headers:n}};var y={SCRIPT:1,STYLE:1,NOSCRIPT:1,OBJECT:1,EMBED:1,SELECT:1},b=1;A=function(t,n,r){var i,o,a,s,c,u,h,d;for(o=t.childNodes,i=void 0,(c="block"===(a=l(t)).display)&&(n.setBlockBoundary(),n.setBlockStyle(a)),s=0,u=o.length;s<u;){if("object"===(void 0===(i=o[s])?"undefined":ot(i))){if(n.executeWatchFunctions(i),1===i.nodeType&&"HEADER"===i.nodeName){var g=i,m=n.pdf.margins_doc.top;n.pdf.internal.events.subscribe("addPage",(function(t){n.y=m,A(g,n,r),n.pdf.margins_doc.top=n.y+10,n.y+=10}),!1)}if(8===i.nodeType&&"#comment"===i.nodeName)~i.textContent.indexOf("ADD_PAGE")&&(n.pdf.addPage(),n.y=n.pdf.margins_doc.top);else if(1!==i.nodeType||y[i.nodeName])if(3===i.nodeType){var w=i.nodeValue;if(i.nodeValue&&"LI"===i.parentNode.nodeName)if("OL"===i.parentNode.parentNode.nodeName)w=b+++". "+w;else{var B=a["font-size"],C=(3-.75*B)*n.pdf.internal.scaleFactor,x=.75*B*n.pdf.internal.scaleFactor,F=1.74*B/n.pdf.internal.scaleFactor;d=function(t,e){this.pdf.circle(t+C,e+x,F,"FD")}}16&i.ownerDocument.body.compareDocumentPosition(i)&&n.addText(w,a)}else"string"==typeof i&&n.addText(i,a);else{var Q;if("IMG"===i.nodeName){var U=i.getAttribute("src");Q=p[n.pdf.sHashCode(U)||U]}if(Q){n.pdf.internal.pageSize.getHeight()-n.pdf.margins_doc.bottom<n.y+i.height&&n.y>n.pdf.margins_doc.top&&(n.pdf.addPage(),n.y=n.pdf.margins_doc.top,n.executeWatchFunctions(i));var _=l(i),I=n.x,E=12/n.pdf.internal.scaleFactor,k=(_["margin-left"]+_["padding-left"])*E,S=(_["margin-right"]+_["padding-right"])*E,D=(_["margin-top"]+_["padding-top"])*E,H=(_["margin-bottom"]+_["padding-bottom"])*E;void 0!==_.float&&"right"===_.float?I+=n.settings.width-i.width-S:I+=k,n.pdf.addImage(Q,I,n.y+D,i.width,i.height),Q=void 0,"right"===_.float||"left"===_.float?(n.watchFunctions.push(function(t,e,A,r){return n.y>=e?(n.x+=t,n.settings.width+=A,!0):!!(r&&1===r.nodeType&&!y[r.nodeName]&&n.x+r.width>n.pdf.margins_doc.left+n.pdf.margins_doc.width)&&(n.x+=t,n.y=e,n.settings.width+=A,!0)}.bind(this,"left"===_.float?-i.width-k-S:0,n.y+i.height+D+H,i.width)),n.watchFunctions.push(function(t,e,A){return!(n.y<t&&e===n.pdf.internal.getNumberOfPages())||1===A.nodeType&&"both"===l(A).clear&&(n.y=t,!0)}.bind(this,n.y+i.height,n.pdf.internal.getNumberOfPages())),n.settings.width-=i.width+k+S,"left"===_.float&&(n.x+=i.width+k+S)):n.y+=i.height+D+H}else if("TABLE"===i.nodeName)h=v(i,n),n.y+=10,n.pdf.table(n.x,n.y,h.rows,h.headers,{autoSize:!1,printHeaders:r.printHeaders,margins:n.pdf.margins_doc,css:l(i)}),n.y=n.pdf.lastCellPos.y+n.pdf.lastCellPos.h+20;else if("OL"===i.nodeName||"UL"===i.nodeName)b=1,f(i,n,r)||A(i,n,r),n.y+=10;else if("LI"===i.nodeName){var M=n.x;n.x+=20/n.pdf.internal.scaleFactor,n.y+=3,f(i,n,r)||A(i,n,r),n.x=M}else"BR"===i.nodeName?(n.y+=a["font-size"]*n.pdf.internal.scaleFactor,n.addText("\u2028",e(a))):f(i,n,r)||A(i,n,r)}}s++}if(r.outY=n.y,c)return n.setBlockBoundary(d)},p={},m=function(t,e,A,n){var r,i=t.getElementsByTagName("img"),o=i.length,a=0;function s(){e.pdf.internal.events.publish("imagesLoaded"),n(r)}function l(t,A,n){if(t){var i=new Image;r=++a,i.crossOrigin="",i.onerror=i.onload=function(){if(i.complete&&(0===i.src.indexOf("data:image/")&&(i.width=A||i.width||0,i.height=n||i.height||0),i.width+i.height)){var r=e.pdf.sHashCode(t)||t;p[r]=p[r]||i}--a||s()},i.src=t}}for(;o--;)l(i[o].getAttribute("src"),i[o].width,i[o].height);return a||s()},w=function(t,e,n){var r=t.getElementsByTagName("footer");if(0<r.length){r=r[0];var i=e.pdf.internal.write,o=e.y;e.pdf.internal.write=function(){},A(r,e,n);var a=Math.ceil(e.y-o)+5;e.y=o,e.pdf.internal.write=i,e.pdf.margins_doc.bottom+=a;for(var s=function(t){var i=void 0!==t?t.pageNumber:1,o=e.y;e.y=e.pdf.internal.pageSize.getHeight()-e.pdf.margins_doc.bottom,e.pdf.margins_doc.bottom-=a;for(var s=r.getElementsByTagName("span"),l=0;l<s.length;++l)-1<(" "+s[l].className+" ").replace(/[\n\t]/g," ").indexOf(" pageCounter ")&&(s[l].innerHTML=i),-1<(" "+s[l].className+" ").replace(/[\n\t]/g," ").indexOf(" totalPages ")&&(s[l].innerHTML="###jsPDFVarTotalPages###");A(r,e,n),e.pdf.margins_doc.bottom+=a,e.y=o},l=r.getElementsByTagName("span"),c=0;c<l.length;++c)-1<(" "+l[c].className+" ").replace(/[\n\t]/g," ").indexOf(" totalPages ")&&e.pdf.internal.events.subscribe("htmlRenderingFinished",e.pdf.putTotalPages.bind(e.pdf,"###jsPDFVarTotalPages###"),!0);e.pdf.internal.events.subscribe("addPage",s,!1),s(),y.FOOTER=1}},B=function(t,e,n,r,i,o){if(!e)return!1;var a,s,l,c;"string"==typeof e||e.parentNode||(e=""+e.innerHTML),"string"==typeof e&&(a=e.replace(/<\/?script[^>]*?>/gi,""),c="jsPDFhtmlText"+Date.now().toString()+(1e3*Math.random()).toFixed(0),(l=document.createElement("div")).style.cssText="position: absolute !important;clip: rect(1px 1px 1px 1px); /* IE6, IE7 */clip: rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height: 1px !important;width: 1px !important; top:auto;left:-100px;overflow: hidden;",l.innerHTML='<iframe style="height:1px;width:1px" name="'+c+'" />',document.body.appendChild(l),(s=window.frames[c]).document.open(),s.document.writeln(a),s.document.close(),e=s.document.body);var h,d=new u(t,n,r,i);return m.call(this,e,d,i.elementHandlers,(function(t){w(e,d,i.elementHandlers),A(e,d,i.elementHandlers),d.pdf.internal.events.publish("htmlRenderingFinished"),h=d.dispose(),"function"==typeof o?o(h):t&&console.error("jsPDF Warning: rendering issues? provide a callback to fromHTML!")})),h||{x:d.x,y:d.y}},(u=function(t,e,A,n){return this.pdf=t,this.x=e,this.y=A,this.settings=n,this.watchFunctions=[],this.init(),this}).prototype.init=function(){return this.paragraph={text:[],style:[]},this.pdf.internal.write("q")},u.prototype.dispose=function(){return this.pdf.internal.write("Q"),{x:this.x,y:this.y,ready:!0}},u.prototype.executeWatchFunctions=function(t){var e=!1,A=[];if(0<this.watchFunctions.length){for(var n=0;n<this.watchFunctions.length;++n)!0===this.watchFunctions[n](t)?e=!0:A.push(this.watchFunctions[n]);this.watchFunctions=A}return e},u.prototype.splitFragmentsIntoLines=function(t,A){var n,r,i,o,a,s,l,c,u,h,d,g,f,p;for(h=this.pdf.internal.scaleFactor,o={},s=l=c=p=a=i=u=r=void 0,g=[d=[]],n=0,f=this.settings.width;t.length;)if(a=t.shift(),p=A.shift(),a)if((i=o[(r=p["font-family"])+(u=p["font-style"])])||(i=this.pdf.internal.getFont(r,u).metadata.Unicode,o[r+u]=i),c={widths:i.widths,kerning:i.kerning,fontSize:12*p["font-size"],textIndent:n},l=this.pdf.getStringUnitWidth(a,c)*c.fontSize/h,"\u2028"==a)d=[],g.push(d);else if(f<n+l){for(s=this.pdf.splitTextToSize(a,f,c),d.push([s.shift(),p]);s.length;)d=[[s.shift(),p]],g.push(d);n=this.pdf.getStringUnitWidth(d[0][0],c)*c.fontSize/h}else d.push([a,p]),n+=l;if(void 0!==p["text-align"]&&("center"===p["text-align"]||"right"===p["text-align"]||"justify"===p["text-align"]))for(var m=0;m<g.length;++m){var w=this.pdf.getStringUnitWidth(g[m][0][0],c)*c.fontSize/h;0<m&&(g[m][0][1]=e(g[m][0][1]));var B=f-w;if("right"===p["text-align"])g[m][0][1]["margin-left"]=B;else if("center"===p["text-align"])g[m][0][1]["margin-left"]=B/2;else if("justify"===p["text-align"]){var v=g[m][0][0].split(" ").length-1;g[m][0][1]["word-spacing"]=B/v,m===g.length-1&&(g[m][0][1]["word-spacing"]=0)}}return g},u.prototype.RenderTextFragment=function(t,e){var A,n;n=0,this.pdf.internal.pageSize.getHeight()-this.pdf.margins_doc.bottom<this.y+this.pdf.internal.getFontSize()&&(this.pdf.internal.write("ET","Q"),this.pdf.addPage(),this.y=this.pdf.margins_doc.top,this.pdf.internal.write("q","BT",this.getPdfColor(e.color),this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td"),n=Math.max(n,e["line-height"],e["font-size"]),this.pdf.internal.write(0,(-12*n).toFixed(2),"Td")),A=this.pdf.internal.getFont(e["font-family"],e["font-style"]);var r=this.getPdfColor(e.color);r!==this.lastTextColor&&(this.pdf.internal.write(r),this.lastTextColor=r),void 0!==e["word-spacing"]&&0<e["word-spacing"]&&this.pdf.internal.write(e["word-spacing"].toFixed(2),"Tw"),this.pdf.internal.write("/"+A.id,(12*e["font-size"]).toFixed(2),"Tf","("+this.pdf.internal.pdfEscape(t)+") Tj"),void 0!==e["word-spacing"]&&this.pdf.internal.write(0,"Tw")},u.prototype.getPdfColor=function(t){var e,A,n,r=new RGBColor(t),i=/rgb\s*\(\s*(\d+),\s*(\d+),\s*(\d+\s*)\)/.exec(t);if(null!=i?(e=parseInt(i[1]),A=parseInt(i[2]),n=parseInt(i[3])):("#"!=t.charAt(0)&&(t=r.ok?r.toHex():"#000000"),e=t.substring(1,3),e=parseInt(e,16),A=t.substring(3,5),A=parseInt(A,16),n=t.substring(5,7),n=parseInt(n,16)),"string"==typeof e&&/^#[0-9A-Fa-f]{6}$/.test(e)){var o=parseInt(e.substr(1),16);e=o>>16&255,A=o>>8&255,n=255&o}var a=this.f3;return 0===e&&0===A&&0===n||void 0===A?a(e/255)+" g":[a(e/255),a(A/255),a(n/255),"rg"].join(" ")},u.prototype.f3=function(t){return t.toFixed(3)},u.prototype.renderParagraph=function(t){var e,A,n,r,i,o,a,s,l,u,h,d,g;if(n=c(this.paragraph.text),d=this.paragraph.style,e=this.paragraph.blockstyle,this.paragraph.priorblockstyle,this.paragraph={text:[],style:[],blockstyle:{},priorblockstyle:e},n.join("").trim()){a=this.splitFragmentsIntoLines(n,d),s=o=void 0,A=12/this.pdf.internal.scaleFactor,this.priorMarginBottom=this.priorMarginBottom||0,h=(Math.max((e["margin-top"]||0)-this.priorMarginBottom,0)+(e["padding-top"]||0))*A,u=((e["margin-bottom"]||0)+(e["padding-bottom"]||0))*A,this.priorMarginBottom=e["margin-bottom"]||0,"always"===e["page-break-before"]&&(this.pdf.addPage(),this.y=0,h=((e["margin-top"]||0)+(e["padding-top"]||0))*A),l=this.pdf.internal.write,i=r=void 0,this.y+=h,l("q","BT 0 g",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td");for(var f=0;a.length;){for(r=s=0,i=(o=a.shift()).length;r!==i;)o[r][0].trim()&&(s=Math.max(s,o[r][1]["line-height"],o[r][1]["font-size"]),g=7*o[r][1]["font-size"]),r++;var p=0,m=0;for(void 0!==o[0][1]["margin-left"]&&0<o[0][1]["margin-left"]&&(p=(m=this.pdf.internal.getCoordinateString(o[0][1]["margin-left"]))-f,f=m),l(p+Math.max(e["margin-left"]||0,0)*A,(-12*s).toFixed(2),"Td"),r=0,i=o.length;r!==i;)o[r][0]&&this.RenderTextFragment(o[r][0],o[r][1]),r++;if(this.y+=s*A,this.executeWatchFunctions(o[0][1])&&0<a.length){var w=[],B=[];a.forEach((function(t){for(var e=0,A=t.length;e!==A;)t[e][0]&&(w.push(t[e][0]+" "),B.push(t[e][1])),++e})),a=this.splitFragmentsIntoLines(c(w),B),l("ET","Q"),l("q","BT 0 g",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td")}}return t&&"function"==typeof t&&t.call(this,this.x-9,this.y-g/2),l("ET","Q"),this.y+=u}},u.prototype.setBlockBoundary=function(t){return this.renderParagraph(t)},u.prototype.setBlockStyle=function(t){return this.paragraph.blockstyle=t},u.prototype.addText=function(t,e){return this.paragraph.text.push(t),this.paragraph.style.push(e)},n={helvetica:"helvetica","sans-serif":"helvetica","times new roman":"times",serif:"times",times:"times",monospace:"courier",courier:"courier"},o={100:"normal",200:"normal",300:"normal",400:"normal",500:"bold",600:"bold",700:"bold",800:"bold",900:"bold",normal:"normal",bold:"bold",bolder:"bold",lighter:"normal"},r={normal:"normal",italic:"italic",oblique:"italic"},i={left:"left",right:"right",center:"center",justify:"justify"},a={none:"none",right:"right",left:"left"},s={none:"none",both:"both"},g={normal:1},t.fromHTML=function(t,e,A,n,r,i){return this.margins_doc=i||{top:0,bottom:0},n||(n={}),n.elementHandlers||(n.elementHandlers={}),B(this,t,isNaN(e)?4:e,isNaN(A)?4:A,n,r)}}(at.API),at.API.addJS=function(t){return b=t,this.internal.events.subscribe("postPutResources",(function(t){v=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(v+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),y=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+b+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==v&&void 0!==y&&this.internal.out("/Names <</JavaScript "+v+" 0 R>>")})),this},(C=at.API).events.push(["postPutResources",function(){var t=this,e=/^(\d+) 0 obj$/;if(0<this.outline.root.children.length)for(var A=t.outline.render().split(/\r\n/),n=0;n<A.length;n++){var r=A[n],i=e.exec(r);if(null!=i){var o=i[1];t.internal.newObjectDeferredBegin(o)}t.internal.write(r)}if(this.outline.createNamedDestinations){var a=this.internal.pages.length,s=[];for(n=0;n<a;n++){var l=t.internal.newObject();s.push(l);var c=t.internal.getPageInfo(n+1);t.internal.write("<< /D["+c.objId+" 0 R /XYZ null null null]>> endobj")}var u=t.internal.newObject();for(t.internal.write("<< /Names [ "),n=0;n<s.length;n++)t.internal.write("(page_"+(n+1)+")"+s[n]+" 0 R");t.internal.write(" ] >>","endobj"),t.internal.newObject(),t.internal.write("<< /Dests "+u+" 0 R"),t.internal.write(">>","endobj")}}]),C.events.push(["putCatalog",function(){0<this.outline.root.children.length&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+namesOid+" 0 R"))}]),C.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(t,e,A){var n={title:e,options:A,children:[]};return null==t&&(t=this.root),t.children.push(n),n},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(e){e.id=t.internal.newObjectDeferred();for(var A=0;A<e.children.length;A++)this.genIds_r(e.children[A])},t.outline.renderRoot=function(t){this.objStart(t),this.line("/Type /Outlines"),0<t.children.length&&(this.line("/First "+this.makeRef(t.children[0])),this.line("/Last "+this.makeRef(t.children[t.children.length-1]))),this.line("/Count "+this.count_r({count:0},t)),this.objEnd()},t.outline.renderItems=function(e){for(var A=0;A<e.children.length;A++){var n=e.children[A];this.objStart(n),this.line("/Title "+this.makeString(n.title)),this.line("/Parent "+this.makeRef(e)),0<A&&this.line("/Prev "+this.makeRef(e.children[A-1])),A<e.children.length-1&&this.line("/Next "+this.makeRef(e.children[A+1])),0<n.children.length&&(this.line("/First "+this.makeRef(n.children[0])),this.line("/Last "+this.makeRef(n.children[n.children.length-1])));var r=this.count=this.count_r({count:0},n);if(0<r&&this.line("/Count "+r),n.options&&n.options.pageNumber){var i=t.internal.getPageInfo(n.options.pageNumber);this.line("/Dest ["+i.objId+" 0 R /XYZ 0 "+this.ctx.pdf.internal.pageSize.getHeight()*this.ctx.pdf.internal.scaleFactor+" 0]")}this.objEnd()}for(A=0;A<e.children.length;A++)n=e.children[A],this.renderItems(n)},t.outline.line=function(t){this.ctx.val+=t+"\r\n"},t.outline.makeRef=function(t){return t.id+" 0 R"},t.outline.makeString=function(e){return"("+t.internal.pdfEscape(e)+")"},t.outline.objStart=function(t){this.ctx.val+="\r\n"+t.id+" 0 obj\r\n<<\r\n"},t.outline.objEnd=function(t){this.ctx.val+=">> \r\nendobj\r\n"},t.outline.count_r=function(t,e){for(var A=0;A<e.children.length;A++)t.count++,this.count_r(t,e.children[A]);return t.count}}]), /**@preserve * ==================================================================== * jsPDF PNG PlugIn * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb * * * ==================================================================== */ x=at.API,F=function(){var t="function"==typeof Deflater;if(!t)throw new Error("requires deflate.js for compression");return t},Q=function(t,e,A,n){var r=5,i=S;switch(n){case x.image_compression.FAST:r=3,i=k;break;case x.image_compression.MEDIUM:r=6,i=D;break;case x.image_compression.SLOW:r=9,i=H}t=I(t,e,A,i);var o=new Uint8Array(U(r)),a=_(t),s=new Deflater(r),l=s.append(t),c=s.flush(),u=o.length+l.length+c.length,h=new Uint8Array(u+4);return h.set(o),h.set(l,o.length),h.set(c,o.length+l.length),h[u++]=a>>>24&255,h[u++]=a>>>16&255,h[u++]=a>>>8&255,h[u++]=255&a,x.arrayBufferToBinaryString(h)},U=function(t,e){var A=Math.LOG2E*Math.log(32768)-8<<4|8,n=A<<8;return n|=Math.min(3,(e-1&255)>>1)<<6,n|=0,[A,255&(n+=31-n%31)]},_=function(t,e){for(var A,n=1,r=0,i=t.length,o=0;0<i;){for(i-=A=e<i?e:i;r+=n+=t[o++],--A;);n%=65521,r%=65521}return(r<<16|n)>>>0},I=function(t,e,A,n){for(var r,i,o,a=t.length/e,s=new Uint8Array(t.length+a),l=O(),c=0;c<a;c++){if(o=c*e,r=t.subarray(o,o+e),n)s.set(n(r,A,i),o+c);else{for(var u=0,h=l.length,d=[];u<h;u++)d[u]=l[u](r,A,i);var g=T(d.concat());s.set(d[g],o+c)}i=r}return s},E=function(t,e,A){var n=Array.apply([],t);return n.unshift(0),n},k=function(t,e,A){var n,r=[],i=0,o=t.length;for(r[0]=1;i<o;i++)n=t[i-e]||0,r[i+1]=t[i]-n+256&255;return r},S=function(t,e,A){var n,r=[],i=0,o=t.length;for(r[0]=2;i<o;i++)n=A&&A[i]||0,r[i+1]=t[i]-n+256&255;return r},D=function(t,e,A){var n,r,i=[],o=0,a=t.length;for(i[0]=3;o<a;o++)n=t[o-e]||0,r=A&&A[o]||0,i[o+1]=t[o]+256-(n+r>>>1)&255;return i},H=function(t,e,A){var n,r,i,o,a=[],s=0,l=t.length;for(a[0]=4;s<l;s++)n=t[s-e]||0,r=A&&A[s]||0,i=A&&A[s-e]||0,o=M(n,r,i),a[s+1]=t[s]-o+256&255;return a},M=function(t,e,A){var n=t+e-A,r=Math.abs(n-t),i=Math.abs(n-e),o=Math.abs(n-A);return r<=i&&r<=o?t:i<=o?e:A},O=function(){return[E,k,S,D,H]},T=function(t){for(var e,A,n,r=0,i=t.length;r<i;)((e=P(t[r].slice(1)))<A||!A)&&(A=e,n=r),r++;return n},P=function(t){for(var e=0,A=t.length,n=0;e<A;)n+=Math.abs(t[e++]);return n},x.processPNG=function(t,e,A,n,r){var i,o,a,s,l,c,u=this.color_spaces.DEVICE_RGB,h=this.decode.FLATE_DECODE,d=8;if(this.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.isArrayBufferView(t)){if("function"!=typeof PNG||"function"!=typeof Et)throw new Error("PNG support requires png.js and zlib.js");if(t=(i=new PNG(t)).imgData,d=i.bits,u=i.colorSpace,s=i.colors,-1!==[4,6].indexOf(i.colorType)){if(8===i.bits)for(var g,f=(I=32==i.pixelBitlength?new Uint32Array(i.decodePixels().buffer):16==i.pixelBitlength?new Uint16Array(i.decodePixels().buffer):new Uint8Array(i.decodePixels().buffer)).length,p=new Uint8Array(f*i.colors),m=new Uint8Array(f),w=i.pixelBitlength-i.bits,B=0,v=0;B<f;B++){for(y=I[B],g=0;g<w;)p[v++]=y>>>g&255,g+=i.bits;m[B]=y>>>g&255}if(16===i.bits){f=(I=new Uint32Array(i.decodePixels().buffer)).length,p=new Uint8Array(f*(32/i.pixelBitlength)*i.colors),m=new Uint8Array(f*(32/i.pixelBitlength));for(var y,b=1<i.colors,C=v=B=0;B<f;)y=I[B++],p[v++]=y>>>0&255,b&&(p[v++]=y>>>16&255,y=I[B++],p[v++]=y>>>0&255),m[C++]=y>>>16&255;d=8}n!==x.image_compression.NONE&&F()?(t=Q(p,i.width*i.colors,i.colors,n),c=Q(m,i.width,1,n)):(t=p,c=m,h=null)}if(3===i.colorType&&(u=this.color_spaces.INDEXED,l=i.palette,i.transparency.indexed)){var U=i.transparency.indexed,_=0;for(B=0,f=U.length;B<f;++B)_+=U[B];if((_/=255)==f-1&&-1!==U.indexOf(0))a=[U.indexOf(0)];else if(_!==f){var I=i.decodePixels();for(m=new Uint8Array(I.length),B=0,f=I.length;B<f;B++)m[B]=U[I[B]];c=Q(m,i.width,1)}}var E=function(t){var e;switch(t){case x.image_compression.FAST:e=11;break;case x.image_compression.MEDIUM:e=13;break;case x.image_compression.SLOW:e=14;break;default:e=12}return e}(n);return o=h===this.decode.FLATE_DECODE?"/Predictor "+E+" /Colors "+s+" /BitsPerComponent "+d+" /Columns "+i.width:"/Colors "+s+" /BitsPerComponent "+d+" /Columns "+i.width,(this.isArrayBuffer(t)||this.isArrayBufferView(t))&&(t=this.arrayBufferToBinaryString(t)),(c&&this.isArrayBuffer(c)||this.isArrayBufferView(c))&&(c=this.arrayBufferToBinaryString(c)),this.createImageInfo(t,i.width,i.height,u,d,h,e,A,o,a,l,c,E)}throw new Error("Unsupported PNG image data, try using JPEG instead.")},(L=at.API).processGIF89A=function(t,e,A,n,r){var i=new Ft(t),o=i.width,a=i.height,s=[];i.decodeAndBlitFrameRGBA(0,s);var l={data:s,width:o,height:a},c=new Ut(100).encode(l,100);return L.processJPEG.call(this,c,e,A,n)},L.processGIF87A=L.processGIF89A,(R=at.API).processBMP=function(t,e,A,n,r){var i=new _t(t,!1),o=i.width,a=i.height,s={data:i.getData(),width:o,height:a},l=new Ut(100).encode(s,100);return R.processJPEG.call(this,l,e,A,n)},at.API.setLanguage=function(t){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"FYRO Macedonian",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]&&(this.internal.languageSettings.languageCode=t,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")})),this.internal.languageSettings.isSubscribed=!0)),this /** @preserve * jsPDF split_text_to_size plugin - MIT license. * Copyright (c) 2012 Willow Systems Corporation, willow-systems.com * 2014 Diego Casorran, https://github.com/diegocr */},N=at.API,K=N.getCharWidthsArray=function(t,e){var A,n,r,i=(e=e||{}).font||this.internal.getFont(),o=e.fontSize||this.internal.getFontSize(),a=e.charSpace||this.internal.getCharSpace(),s=e.widths?e.widths:i.metadata.Unicode.widths,l=s.fof?s.fof:1,c=e.kerning?e.kerning:i.metadata.Unicode.kerning,u=c.fof?c.fof:1,h=0,d=s[0]||l,g=[];for(A=0,n=t.length;A<n;A++)r=t.charCodeAt(A),"function"==typeof i.metadata.widthOfString?g.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(r))+a*(1e3/o)||0)/1e3):g.push((s[r]||d)/l+(c[r]&&c[r][h]||0)/u),h=r;return g},j=N.getArraySum=function(t){for(var e=t.length,A=0;e;)A+=t[--e];return A},V=N.getStringUnitWidth=function(t,e){var A=(e=e||{}).fontSize||this.internal.getFontSize(),n=e.font||this.internal.getFont(),r=e.charSpace||this.internal.getCharSpace();return"function"==typeof n.metadata.widthOfString?n.metadata.widthOfString(t,A,r)/A:j(K.apply(this,arguments))},G=function(t,e,A,n){for(var r=[],i=0,o=t.length,a=0;i!==o&&a+e[i]<A;)a+=e[i],i++;r.push(t.slice(0,i));var s=i;for(a=0;i!==o;)a+e[i]>n&&(r.push(t.slice(s,i)),a=0,s=i),a+=e[i],i++;return s!==i&&r.push(t.slice(s,i)),r},q=function(t,e,A){A||(A={});var n,r,i,o,a,s,l=[],c=[l],u=A.textIndent||0,h=0,d=0,g=t.split(" "),f=K.apply(this,[" ",A])[0];if(s=-1===A.lineIndent?g[0].length+2:A.lineIndent||0){var p=Array(s).join(" "),m=[];g.map((function(t){1<(t=t.split(/\s*\n/)).length?m=m.concat(t.map((function(t,e){return(e&&t.length?"\n":"")+t}))):m.push(t[0])})),g=m,s=V.apply(this,[p,A])}for(i=0,o=g.length;i<o;i++){var w=0;if(n=g[i],s&&"\n"==n[0]&&(n=n.substr(1),w=1),r=K.apply(this,[n,A]),e<u+h+(d=j(r))||w){if(e<d){for(a=G.apply(this,[n,r,e-(u+h),e]),l.push(a.shift()),l=[a.pop()];a.length;)c.push([a.shift()]);d=j(r.slice(n.length-(l[0]?l[0].length:0)))}else l=[n];c.push(l),u=d+s,h=f}else l.push(n),u+=h+d,h=f}if(s)var B=function(t,e){return(e?p:"")+t.join(" ")};else B=function(t){return t.join(" ")};return c.map(B)},N.splitTextToSize=function(t,e,A){var n,r=(A=A||{}).fontSize||this.internal.getFontSize(),i=function(t){var e={0:1},A={};if(t.widths&&t.kerning)return{widths:t.widths,kerning:t.kerning};var n=this.internal.getFont(t.fontName,t.fontStyle),r="Unicode";return n.metadata[r]?{widths:n.metadata[r].widths||e,kerning:n.metadata[r].kerning||A}:{font:n.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,A);n=Array.isArray(t)?t:t.split(/\r?\n/);var o=1*this.internal.scaleFactor*e/r;i.textIndent=A.textIndent?1*A.textIndent*this.internal.scaleFactor/r:0,i.lineIndent=A.lineIndent;var a,s,l=[];for(a=0,s=n.length;a<s;a++)l=l.concat(q.apply(this,[n[a],o,i]));return l}, /** @preserve jsPDF standard_fonts_metrics plugin Copyright (c) 2012 Willow Systems Corporation, willow-systems.com MIT license. */ W=at.API,z={codePages:["WinAnsiEncoding"],WinAnsiEncoding:(Y=function(t){for(var e="klmnopqrstuvwxyz",A={},n=0;n<e.length;n++)A[e[n]]="0123456789abcdef"[n];var r,i,o,a,s,l={},c=1,u=l,h=[],d="",g="",f=t.length-1;for(n=1;n!=f;)s=t[n],n+=1,"'"==s?i?(a=i.join(""),i=r):i=[]:i?i.push(s):"{"==s?(h.push([u,a]),u={},a=r):"}"==s?((o=h.pop())[0][o[1]]=u,a=r,u=o[0]):"-"==s?c=-1:a===r?A.hasOwnProperty(s)?(d+=A[s],a=parseInt(d,16)*c,c=1,d=""):d+=s:A.hasOwnProperty(s)?(g+=A[s],u[a]=parseInt(g,16)*c,c=1,a=r,g=""):g+=s;return l})("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},X={Unicode:{Courier:z,"Courier-Bold":z,"Courier-BoldOblique":z,"Courier-Oblique":z,Helvetica:z,"Helvetica-Bold":z,"Helvetica-BoldOblique":z,"Helvetica-Oblique":z,"Times-Roman":z,"Times-Bold":z,"Times-BoldItalic":z,"Times-Italic":z}},J={Unicode:{"Courier-Oblique":Y("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":Y("{'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":Y("{'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:Y("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":Y("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":Y("{'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:Y("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:Y("{'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":Y("{'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:Y("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":Y("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":Y("{'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":Y("{'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":Y("{'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}}}")}},W.events.push(["addFont",function(t){var e,A,n,r="Unicode";(e=J[r][t.postScriptName])&&((A=t.metadata[r]?t.metadata[r]:t.metadata[r]={}).widths=e.widths,A.kerning=e.kerning),(n=X[r][t.postScriptName])&&((A=t.metadata[r]?t.metadata[r]:t.metadata[r]={}).encoding=n).codePages&&n.codePages.length&&(t.encoding=n.codePages[0])}]),Z=at,"undefined"!=typeof self&&self||"undefined"!=typeof n&&n||"undefined"!=typeof window&&window||Function("return this")(),Z.API.events.push(["addFont",function(t){Z.API.existsFileInVFS(t.postScriptName)?(t.metadata=Z.API.TTFFont.open(t.postScriptName,t.fontName,Z.API.getFileFromVFS(t.postScriptName),t.encoding),t.metadata.Unicode=t.metadata.Unicode||{encoding:{},kerning:{},widths:[]}):14<t.id.slice(1)&&console.error("Font does not exist in FileInVFS, import fonts or remove declaration doc.addFont('"+t.postScriptName+"').")}]), /** @preserve jsPDF SVG plugin Copyright (c) 2012 Willow Systems Corporation, willow-systems.com */($=at.API).addSvg=function(t,e,A,n,r){if(void 0===e||void 0===A)throw new Error("addSVG needs values for 'x' and 'y'");function i(t){for(var e=parseFloat(t[1]),A=parseFloat(t[2]),n=[],r=3,i=t.length;r<i;)"c"===t[r]?(n.push([parseFloat(t[r+1]),parseFloat(t[r+2]),parseFloat(t[r+3]),parseFloat(t[r+4]),parseFloat(t[r+5]),parseFloat(t[r+6])]),r+=7):"l"===t[r]?(n.push([parseFloat(t[r+1]),parseFloat(t[r+2])]),r+=3):r+=1;return[e,A,n]}var o,a,s,l,c,u,h,d,g=(l=document,d=l.createElement("iframe"),c=".jsPDF_sillysvg_iframe {display:none;position:absolute;}",(h=(u=l).createElement("style")).type="text/css",h.styleSheet?h.styleSheet.cssText=c:h.appendChild(u.createTextNode(c)),u.getElementsByTagName("head")[0].appendChild(h),d.name="childframe",d.setAttribute("width",0),d.setAttribute("height",0),d.setAttribute("frameborder","0"),d.setAttribute("scrolling","no"),d.setAttribute("seamless","seamless"),d.setAttribute("class","jsPDF_sillysvg_iframe"),l.body.appendChild(d),d),f=(o=t,(s=((a=g).contentWindow||a.contentDocument).document).write(o),s.close(),s.getElementsByTagName("svg")[0]),p=[1,1],m=parseFloat(f.getAttribute("width")),w=parseFloat(f.getAttribute("height"));m&&w&&(n&&r?p=[n/m,r/w]:n?p=[n/m,n/m]:r&&(p=[r/w,r/w]));var B,v,y,b,C=f.childNodes;for(B=0,v=C.length;B<v;B++)(y=C[B]).tagName&&"PATH"===y.tagName.toUpperCase()&&((b=i(y.getAttribute("d").split(" ")))[0]=b[0]*p[0]+e,b[1]=b[1]*p[1]+A,this.lines.call(this,b[2],b[0],b[1],p));return this},$.addSVG=$.addSvg,$.addSvgAsImage=function(t,e,A,n,r,i,o,a){if(isNaN(e)||isNaN(A))throw console.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(n)||isNaN(r))throw console.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var s=document.createElement("canvas");s.width=n,s.height=r;var l=s.getContext("2d");return l.fillStyle="#fff",l.fillRect(0,0,s.width,s.height),canvg(s,t,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0}),this.addImage(s.toDataURL("image/jpeg",1),e,A,n,r,o,a),this},at.API.putTotalPages=function(t){for(var e=new RegExp(t,"g"),A=1;A<=this.internal.getNumberOfPages();A++)for(var n=0;n<this.internal.pages[A].length;n++)this.internal.pages[A][n]=this.internal.pages[A][n].replace(e,this.internal.getNumberOfPages());return this},at.API.viewerPreferences=function(t,e){var A;t=t||{},e=e||!1;var n,r,i={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}},o=Object.keys(i),a=[],s=0,l=0,c=0,u=!0;function h(t,e){var A,n=!1;for(A=0;A<t.length;A+=1)t[A]===e&&(n=!0);return n}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(i)),this.internal.viewerpreferences.isSubscribed=!1),A=this.internal.viewerpreferences.configuration,"reset"===t||!0===e){var d=o.length;for(c=0;c<d;c+=1)A[o[c]].value=A[o[c]].defaultValue,A[o[c]].explicitSet=!1}if("object"===(void 0===t?"undefined":ot(t)))for(n in t)if(r=t[n],h(o,n)&&void 0!==r){if("boolean"===A[n].type&&"boolean"==typeof r)A[n].value=r;else if("name"===A[n].type&&h(A[n].valueSet,r))A[n].value=r;else if("integer"===A[n].type&&Number.isInteger(r))A[n].value=r;else if("array"===A[n].type){for(s=0;s<r.length;s+=1)if(u=!0,1===r[s].length&&"number"==typeof r[s][0])a.push(String(r[s]));else if(1<r[s].length){for(l=0;l<r[s].length;l+=1)"number"!=typeof r[s][l]&&(u=!1);!0===u&&a.push(String(r[s].join("-")))}A[n].value=String(a)}else A[n].value=A[n].defaultValue;A[n].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var t,e=[];for(t in A)!0===A[t].explicitSet&&("name"===A[t].type?e.push("/"+t+" /"+A[t].value):e.push("/"+t+" "+A[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=A,this},tt=at.API,nt=At=et="",tt.addMetadata=function(t,e){return At=e||"http://jspdf.default.namespaceuri/",et=t,this.internal.events.subscribe("postPutResources",(function(){if(et){var t='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+At+'"><jspdf:metadata>',e=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),A=unescape(encodeURIComponent(t)),n=unescape(encodeURIComponent(et)),r=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),i=unescape(encodeURIComponent("</x:xmpmeta>")),o=A.length+n.length+r.length+e.length+i.length;nt=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+o+" >>"),this.internal.write("stream"),this.internal.write(e+A+n+r+i),this.internal.write("endstream"),this.internal.write("endobj")}else nt=""})),this.internal.events.subscribe("putCatalog",(function(){nt&&this.internal.write("/Metadata "+nt+" 0 R")})),this},function(t,e){var A=t.API,n=[0];A.events.push(["putFont",function(e){!function(e,A,r){if(e.metadata instanceof t.API.TTFFont&&"Identity-H"===e.encoding){for(var i=e.metadata.Unicode.widths,o=e.metadata.subset.encode(n),a="",s=0;s<o.length;s++)a+=String.fromCharCode(o[s]);var l=r();A("<<"),A("/Length "+a.length),A("/Length1 "+a.length),A(">>"),A("stream"),A(a),A("endstream"),A("endobj");var c=r();A("<<"),A("/Type /FontDescriptor"),A("/FontName /"+e.fontName),A("/FontFile2 "+l+" 0 R"),A("/FontBBox "+t.API.PDFObject.convert(e.metadata.bbox)),A("/Flags "+e.metadata.flags),A("/StemV "+e.metadata.stemV),A("/ItalicAngle "+e.metadata.italicAngle),A("/Ascent "+e.metadata.ascender),A("/Descent "+e.metadata.decender),A("/CapHeight "+e.metadata.capHeight),A(">>"),A("endobj");var u=r();A("<<"),A("/Type /Font"),A("/BaseFont /"+e.fontName),A("/FontDescriptor "+c+" 0 R"),A("/W "+t.API.PDFObject.convert(i)),A("/CIDToGIDMap /Identity"),A("/DW 1000"),A("/Subtype /CIDFontType2"),A("/CIDSystemInfo"),A("<<"),A("/Supplement 0"),A("/Registry (Adobe)"),A("/Ordering ("+e.encoding+")"),A(">>"),A(">>"),A("endobj"),e.objectNumber=r(),A("<<"),A("/Type /Font"),A("/Subtype /Type0"),A("/BaseFont /"+e.fontName),A("/Encoding /"+e.encoding),A("/DescendantFonts ["+u+" 0 R]"),A(">>"),A("endobj"),e.isAlreadyPutted=!0}}(e.font,e.out,e.newObject)}]),A.events.push(["putFont",function(e){!function(e,A,n){if(e.metadata instanceof t.API.TTFFont&&"WinAnsiEncoding"===e.encoding){e.metadata.Unicode.widths;for(var r=e.metadata.rawData,i="",o=0;o<r.length;o++)i+=String.fromCharCode(r[o]);var a=n();A("<<"),A("/Length "+i.length),A("/Length1 "+i.length),A(">>"),A("stream"),A(i),A("endstream"),A("endobj");var s=n();for(A("<<"),A("/Descent "+e.metadata.decender),A("/CapHeight "+e.metadata.capHeight),A("/StemV "+e.metadata.stemV),A("/Type /FontDescriptor"),A("/FontFile2 "+a+" 0 R"),A("/Flags 96"),A("/FontBBox "+t.API.PDFObject.convert(e.metadata.bbox)),A("/FontName /"+e.fontName),A("/ItalicAngle "+e.metadata.italicAngle),A("/Ascent "+e.metadata.ascender),A(">>"),A("endobj"),e.objectNumber=n(),o=0;o<e.metadata.hmtx.widths.length;o++)e.metadata.hmtx.widths[o]=parseInt(e.metadata.hmtx.widths[o]*(1e3/e.metadata.head.unitsPerEm));A("<</Subtype/TrueType/Type/Font/BaseFont/"+e.fontName+"/FontDescriptor "+s+" 0 R/Encoding/"+e.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(e.metadata.hmtx.widths)+">>"),A("endobj"),e.isAlreadyPutted=!0}}(e.font,e.out,e.newObject)}]);var r=function(t){var e,A,r=t.text||"",i=t.x,o=t.y,a=t.options||{},s=t.mutex||{},l=s.pdfEscape,c=s.activeFontKey,u=s.fonts,h=(s.activeFontSize,""),d=0,g="",f=u[A=c].encoding;if("Identity-H"!==u[A].encoding)return{text:r,x:i,y:o,options:a,mutex:s};for(g=r,A=c,"[object Array]"===Object.prototype.toString.call(r)&&(g=r[0]),d=0;d<g.length;d+=1)u[A].metadata.hasOwnProperty("cmap")&&(e=u[A].metadata.cmap.unicode.codeMap[g[d].charCodeAt(0)]),e||g[d].charCodeAt(0)<256&&u[A].metadata.hasOwnProperty("Unicode")?h+=g[d]:h+="";var p="";return parseInt(A.slice(1))<14||"WinAnsiEncoding"===f?p=function(t){for(var e="",A=0;A<t.length;A++)e+=""+t.charCodeAt(A).toString(16);return e}(l(h,A)):"Identity-H"===f&&(p=function(t,e){for(var A,r=e.metadata.Unicode.widths,i=["","0","00","000","0000"],o=[""],a=0,s=t.length;a<s;++a){if(A=e.metadata.characterToGlyph(t.charCodeAt(a)),n.push(A),-1==r.indexOf(A)&&(r.push(A),r.push([parseInt(e.metadata.widthOfGlyph(A),10)])),"0"==A)return o.join("");A=A.toString(16),o.push(i[4-A.length],A)}return o.join("")}(h,u[A])),s.isHex=!0,{text:p,x:i,y:o,options:a,mutex:s}};A.events.push(["postProcessText",function(t){var e=t.text||"",A=t.x,n=t.y,i=t.options,o=t.mutex,a=(i.lang,[]),s={text:e,x:A,y:n,options:i,mutex:o};if("[object Array]"===Object.prototype.toString.call(e)){var l=0;for(l=0;l<e.length;l+=1)"[object Array]"===Object.prototype.toString.call(e[l])&&3===e[l].length?a.push([r(Object.assign({},s,{text:e[l][0]})).text,e[l][1],e[l][2]]):a.push(r(Object.assign({},s,{text:e[l]})).text);t.text=a}else t.text=r(Object.assign({},s,{text:e})).text}])}(at,"undefined"!=typeof self&&self||"undefined"!=typeof n&&n||"undefined"!=typeof window&&window||Function("return this")()),rt=at.API,it={},rt.existsFileInVFS=function(t){return it.hasOwnProperty(t)},rt.addFileToVFS=function(t,e){return it[t]=e,this},rt.getFileFromVFS=function(t){return it.hasOwnProperty(t)?it[t]:null},function(t){if(t.URL=t.URL||t.webkitURL,t.Blob&&t.URL)try{return new Blob}catch(t){}var e=t.BlobBuilder||t.WebKitBlobBuilder||t.MozBlobBuilder||function(t){var e=function(t){return Object.prototype.toString.call(t).match(/^\[object\s(.*)\]$/)[1]},A=function(){this.data=[]},n=function(t,e,A){this.data=t,this.size=t.length,this.type=e,this.encoding=A},r=A.prototype,i=n.prototype,o=t.FileReaderSync,a=function(t){this.code=this[this.name=t]},s="NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR".split(" "),l=s.length,c=t.URL||t.webkitURL||t,u=c.createObjectURL,h=c.revokeObjectURL,d=c,g=t.btoa,f=t.atob,p=t.ArrayBuffer,m=t.Uint8Array,w=/^[\w-]+:\/*\[?[\w\.:-]+\]?(?::[0-9]+)?/;for(n.fake=i.fake=!0;l--;)a.prototype[s[l]]=l+1;return c.createObjectURL||(d=t.URL=function(t){var e,A=document.createElementNS("http://www.w3.org/1999/xhtml","a");return A.href=t,"origin"in A||("data:"===A.protocol.toLowerCase()?A.origin=null:(e=t.match(w),A.origin=e&&e[1])),A}),d.createObjectURL=function(t){var e,A=t.type;return null===A&&(A="application/octet-stream"),t instanceof n?(e="data:"+A,"base64"===t.encoding?e+";base64,"+t.data:"URI"===t.encoding?e+","+decodeURIComponent(t.data):g?e+";base64,"+g(t.data):e+","+encodeURIComponent(t.data)):u?u.call(c,t):void 0},d.revokeObjectURL=function(t){"data:"!==t.substring(0,5)&&h&&h.call(c,t)},r.append=function(t){var A=this.data;if(m&&(t instanceof p||t instanceof m)){for(var r="",i=new m(t),s=0,l=i.length;s<l;s++)r+=String.fromCharCode(i[s]);A.push(r)}else if("Blob"===e(t)||"File"===e(t)){if(!o)throw new a("NOT_READABLE_ERR");var c=new o;A.push(c.readAsBinaryString(t))}else t instanceof n?"base64"===t.encoding&&f?A.push(f(t.data)):"URI"===t.encoding?A.push(decodeURIComponent(t.data)):"raw"===t.encoding&&A.push(t.data):("string"!=typeof t&&(t+=""),A.push(unescape(encodeURIComponent(t))))},r.getBlob=function(t){return arguments.length||(t=null),new n(this.data.join(""),t,"raw")},r.toString=function(){return"[object BlobBuilder]"},i.slice=function(t,e,A){var r=arguments.length;return r<3&&(A=null),new n(this.data.slice(t,1<r?e:this.data.length),A,this.encoding)},i.toString=function(){return"[object Blob]"},i.close=function(){this.size=0,delete this.data},A}(t);t.Blob=function(t,A){var n=A&&A.type||"",r=new e;if(t)for(var i=0,o=t.length;i<o;i++)Uint8Array&&t[i]instanceof Uint8Array?r.append(t[i].buffer):r.append(t[i]);var a=r.getBlob(n);return!a.slice&&a.webkitSlice&&(a.slice=a.webkitSlice),a};var A=Object.getPrototypeOf||function(t){return t.__proto__};t.Blob.prototype=A(new t.Blob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||window.content||window);var st,lt,ct,ut,ht,dt,gt,ft,pt,mt,wt,Bt,vt,yt,bt,Ct,xt=xt||function(t){if(!(void 0===t||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var e=t.document,A=function(){return t.URL||t.webkitURL||t},n=e.createElementNS("http://www.w3.org/1999/xhtml","a"),r="download"in n,i=/constructor/i.test(t.HTMLElement)||t.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent),a=function(e){(t.setImmediate||t.setTimeout)((function(){throw e}),0)},s=function(t){setTimeout((function(){"string"==typeof t?A().revokeObjectURL(t):t.remove()}),4e4)},l=function(t){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t},c=function(e,c,u){u||(e=l(e));var h,d=this,g="application/octet-stream"===e.type,f=function(){!function(t,e,A){for(var n=(e=[].concat(e)).length;n--;){var r=t["on"+e[n]];if("function"==typeof r)try{r.call(t,A||t)}catch(t){a(t)}}}(d,"writestart progress write writeend".split(" "))};if(d.readyState=d.INIT,r)return h=A().createObjectURL(e),void setTimeout((function(){var t,e;n.href=h,n.download=c,t=n,e=new MouseEvent("click"),t.dispatchEvent(e),f(),s(h),d.readyState=d.DONE}));!function(){if((o||g&&i)&&t.FileReader){var n=new FileReader;return n.onloadend=function(){var e=o?n.result:n.result.replace(/^data:[^;]*;/,"data:attachment/file;");t.open(e,"_blank")||(t.location.href=e),e=void 0,d.readyState=d.DONE,f()},n.readAsDataURL(e),d.readyState=d.INIT}h||(h=A().createObjectURL(e)),g?t.location.href=h:t.open(h,"_blank")||(t.location.href=h),d.readyState=d.DONE,f(),s(h)}()},u=c.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(t,e,A){return e=e||t.name||"download",A||(t=l(t)),navigator.msSaveOrOpenBlob(t,e)}:(u.abort=function(){},u.readyState=u.INIT=0,u.WRITING=1,u.DONE=2,u.error=u.onwritestart=u.onprogress=u.onwrite=u.onabort=u.onerror=u.onwriteend=null,function(t,e,A){return new c(t,e||t.name||"download",A)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||window.content);function Ft(t){var e=0;if(71!==t[e++]||73!==t[e++]||70!==t[e++]||56!==t[e++]||56!=(t[e++]+1&253)||97!==t[e++])throw"Invalid GIF 87a/89a header.";var A=t[e++]|t[e++]<<8,n=t[e++]|t[e++]<<8,r=t[e++],i=r>>7,o=1<<1+(7&r);t[e++],t[e++];var a=null;i&&(a=e,e+=3*o);var s=!0,l=[],c=0,u=null,h=0,d=null;for(this.width=A,this.height=n;s&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(11!==t[e]||78==t[e+1]&&69==t[e+2]&&84==t[e+3]&&83==t[e+4]&&67==t[e+5]&&65==t[e+6]&&80==t[e+7]&&69==t[e+8]&&50==t[e+9]&&46==t[e+10]&&48==t[e+11]&&3==t[e+12]&&1==t[e+13]&&0==t[e+16])e+=14,d=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(0===(x=t[e++]))break;e+=x}break;case 249:if(4!==t[e++]||0!==t[e+4])throw"Invalid graphics extension block.";var g=t[e++];c=t[e++]|t[e++]<<8,u=t[e++],0==(1&g)&&(u=null),h=g>>2&7,e++;break;case 254:for(;;){if(0===(x=t[e++]))break;e+=x}break;default:throw"Unknown graphic control label: 0x"+t[e-1].toString(16)}break;case 44:var f=t[e++]|t[e++]<<8,p=t[e++]|t[e++]<<8,m=t[e++]|t[e++]<<8,w=t[e++]|t[e++]<<8,B=t[e++],v=B>>6&1,y=a,b=!1;B>>7&&(b=!0,y=e,e+=3*(1<<1+(7&B)));var C=e;for(e++;;){var x;if(0===(x=t[e++]))break;e+=x}l.push({x:f,y:p,width:m,height:w,has_local_palette:b,palette_offset:y,data_offset:C,data_length:e-C,transparent_index:u,interlaced:!!v,delay:c,disposal:h});break;case 59:s=!1;break;default:throw"Unknown gif block: 0x"+t[e-1].toString(16)}this.numFrames=function(){return l.length},this.loopCount=function(){return d},this.frameInfo=function(t){if(t<0||t>=l.length)throw"Frame index out of range.";return l[t]},this.decodeAndBlitFrameBGRA=function(e,n){var r=this.frameInfo(e),i=r.width*r.height,o=new Uint8Array(i);Qt(t,r.data_offset,o,i);var a=r.palette_offset,s=r.transparent_index;null===s&&(s=256);var l=r.width,c=A-l,u=l,h=4*(r.y*A+r.x),d=4*((r.y+r.height)*A+r.x),g=h,f=4*c;!0===r.interlaced&&(f+=4*(l+c)*7);for(var p=8,m=0,w=o.length;m<w;++m){var B=o[m];if(0===u&&(u=l,d<=(g+=f)&&(f=c+4*(l+c)*(p-1),g=h+(l+c)*(p<<1),p>>=1)),B===s)g+=4;else{var v=t[a+3*B],y=t[a+3*B+1],b=t[a+3*B+2];n[g++]=b,n[g++]=y,n[g++]=v,n[g++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,n){var r=this.frameInfo(e),i=r.width*r.height,o=new Uint8Array(i);Qt(t,r.data_offset,o,i);var a=r.palette_offset,s=r.transparent_index;null===s&&(s=256);var l=r.width,c=A-l,u=l,h=4*(r.y*A+r.x),d=4*((r.y+r.height)*A+r.x),g=h,f=4*c;!0===r.interlaced&&(f+=4*(l+c)*7);for(var p=8,m=0,w=o.length;m<w;++m){var B=o[m];if(0===u&&(u=l,d<=(g+=f)&&(f=c+4*(l+c)*(p-1),g=h+(l+c)*(p<<1),p>>=1)),B===s)g+=4;else{var v=t[a+3*B],y=t[a+3*B+1],b=t[a+3*B+2];n[g++]=v,n[g++]=y,n[g++]=b,n[g++]=255}--u}}}function Qt(t,e,A,n){for(var r=t[e++],i=1<<r,o=i+1,a=o+1,s=r+1,l=(1<<s)-1,c=0,u=0,h=0,d=t[e++],g=new Int32Array(4096),f=null;;){for(;c<16&&0!==d;)u|=t[e++]<<c,c+=8,1===d?d=t[e++]:--d;if(c<s)break;var p=u&l;if(u>>=s,c-=s,p!==i){if(p===o)break;for(var m=p<a?p:f,w=0,B=m;i<B;)B=g[B]>>8,++w;var v=B;if(n<h+w+(m!==p?1:0))return void console.log("Warning, gif stream longer than expected.");A[h++]=v;var y=h+=w;for(m!==p&&(A[h++]=v),B=m;w--;)B=g[B],A[--y]=255&B,B>>=8;null!==f&&a<4096&&(g[a++]=f<<8|v,l+1<=a&&s<12&&(++s,l=l<<1|1)),f=p}else a=o+1,l=(1<<(s=r+1))-1,f=null}return h!==n&&console.log("Warning, gif stream shorter than expected."),A}t.exports?t.exports.saveAs=xt:null!==A("07d6")&&null!==A("3c35")&&(i=function(){return xt}.call(e,A,e,t),void 0!==i&&(t.exports=i)),at.API.adler32cs=(dt="function"==typeof ArrayBuffer&&"function"==typeof Uint8Array,gt=null,ft=function(){if(!dt)return function(){return!1};try{var t={};"function"==typeof t.Buffer&&(gt=t.Buffer)}catch(t){}return function(t){return t instanceof ArrayBuffer||null!==gt&&t instanceof gt}}(),pt=null!==gt?function(t){return new gt(t,"utf8").toString("binary")}:function(t){return unescape(encodeURIComponent(t))},mt=65521,wt=function(t,e){for(var A=65535&t,n=t>>>16,r=0,i=e.length;r<i;r++)A=(A+(255&e.charCodeAt(r)))%mt,n=(n+A)%mt;return(n<<16|A)>>>0},Bt=function(t,e){for(var A=65535&t,n=t>>>16,r=0,i=e.length;r<i;r++)A=(A+e[r])%mt,n=(n+A)%mt;return(n<<16|A)>>>0},yt=(vt={}).Adler32=(((ht=(ut=function(t){if(!(this instanceof ut))throw new TypeError("Constructor cannot called be as a function.");if(!isFinite(t=null==t?1:+t))throw new Error("First arguments needs to be a finite number.");this.checksum=t>>>0}).prototype={}).constructor=ut).from=((st=function(t){if(!(this instanceof ut))throw new TypeError("Constructor cannot called be as a function.");if(null==t)throw new Error("First argument needs to be a string.");this.checksum=wt(1,t.toString())}).prototype=ht,st),ut.fromUtf8=((lt=function(t){if(!(this instanceof ut))throw new TypeError("Constructor cannot called be as a function.");if(null==t)throw new Error("First argument needs to be a string.");var e=pt(t.toString());this.checksum=wt(1,e)}).prototype=ht,lt),dt&&(ut.fromBuffer=((ct=function(t){if(!(this instanceof ut))throw new TypeError("Constructor cannot called be as a function.");if(!ft(t))throw new Error("First argument needs to be ArrayBuffer.");var e=new Uint8Array(t);return this.checksum=Bt(1,e)}).prototype=ht,ct)),ht.update=function(t){if(null==t)throw new Error("First argument needs to be a string.");return t=t.toString(),this.checksum=wt(this.checksum,t)},ht.updateUtf8=function(t){if(null==t)throw new Error("First argument needs to be a string.");var e=pt(t.toString());return this.checksum=wt(this.checksum,e)},dt&&(ht.updateBuffer=function(t){if(!ft(t))throw new Error("First argument needs to be ArrayBuffer.");var e=new Uint8Array(t);return this.checksum=Bt(this.checksum,e)}),ht.clone=function(){return new yt(this.checksum)},ut),vt.from=function(t){if(null==t)throw new Error("First argument needs to be a string.");return wt(1,t.toString())},vt.fromUtf8=function(t){if(null==t)throw new Error("First argument needs to be a string.");var e=pt(t.toString());return wt(1,e)},dt&&(vt.fromBuffer=function(t){if(!ft(t))throw new Error("First argument need to be ArrayBuffer.");var e=new Uint8Array(t);return Bt(1,e)}),vt);try{e.GifWriter=function(t,e,A,n){var r=0,i=void 0===(n=void 0===n?{}:n).loop?null:n.loop,o=void 0===n.palette?null:n.palette;if(e<=0||A<=0||65535<e||65535<A)throw"Width/Height invalid.";function a(t){var e=t.length;if(e<2||256<e||e&e-1)throw"Invalid code/color length, must be power of 2 and 2 .. 256.";return e}t[r++]=71,t[r++]=73,t[r++]=70,t[r++]=56,t[r++]=57,t[r++]=97;var s=0,l=0;if(null!==o){for(var c=a(o);c>>=1;)++s;if(c=1<<s,--s,void 0!==n.background){if(c<=(l=n.background))throw"Background index out of range.";if(0===l)throw"Background index explicitly passed as 0."}}if(t[r++]=255&e,t[r++]=e>>8&255,t[r++]=255&A,t[r++]=A>>8&255,t[r++]=(null!==o?128:0)|s,t[r++]=l,t[r++]=0,null!==o)for(var u=0,h=o.length;u<h;++u){var d=o[u];t[r++]=d>>16&255,t[r++]=d>>8&255,t[r++]=255&d}if(null!==i){if(i<0||65535<i)throw"Loop count invalid.";t[r++]=33,t[r++]=255,t[r++]=11,t[r++]=78,t[r++]=69,t[r++]=84,t[r++]=83,t[r++]=67,t[r++]=65,t[r++]=80,t[r++]=69,t[r++]=50,t[r++]=46,t[r++]=48,t[r++]=3,t[r++]=1,t[r++]=255&i,t[r++]=i>>8&255,t[r++]=0}var g=!1;this.addFrame=function(e,A,n,i,s,l){if(!0===g&&(--r,g=!1),l=void 0===l?{}:l,e<0||A<0||65535<e||65535<A)throw"x/y invalid.";if(n<=0||i<=0||65535<n||65535<i)throw"Width/Height invalid.";if(s.length<n*i)throw"Not enough pixels for the frame size.";var c=!0,u=l.palette;if(null==u&&(c=!1,u=o),null==u)throw"Must supply either a local or global palette.";for(var h=a(u),d=0;h>>=1;)++d;h=1<<d;var f=void 0===l.delay?0:l.delay,p=void 0===l.disposal?0:l.disposal;if(p<0||3<p)throw"Disposal out of range.";var m=!1,w=0;if(void 0!==l.transparent&&null!==l.transparent&&(m=!0,(w=l.transparent)<0||h<=w))throw"Transparent color index.";if((0!==p||m||0!==f)&&(t[r++]=33,t[r++]=249,t[r++]=4,t[r++]=p<<2|(!0===m?1:0),t[r++]=255&f,t[r++]=f>>8&255,t[r++]=w,t[r++]=0),t[r++]=44,t[r++]=255&e,t[r++]=e>>8&255,t[r++]=255&A,t[r++]=A>>8&255,t[r++]=255&n,t[r++]=n>>8&255,t[r++]=255&i,t[r++]=i>>8&255,t[r++]=!0===c?128|d-1:0,!0===c)for(var B=0,v=u.length;B<v;++B){var y=u[B];t[r++]=y>>16&255,t[r++]=y>>8&255,t[r++]=255&y}r=function(t,e,A,n){t[e++]=A;var r=e++,i=1<<A,o=i-1,a=i+1,s=a+1,l=A+1,c=0,u=0;function h(A){for(;A<=c;)t[e++]=255&u,u>>=8,c-=8,e===r+256&&(t[r]=255,r=e++)}function d(t){u|=t<<c,c+=l,h(8)}var g=n[0]&o,f={};d(i);for(var p=1,m=n.length;p<m;++p){var w=n[p]&o,B=g<<8|w,v=f[B];if(void 0===v){for(u|=g<<c,c+=l;8<=c;)t[e++]=255&u,u>>=8,c-=8,e===r+256&&(t[r]=255,r=e++);4096===s?(d(i),s=a+1,l=A+1,f={}):(1<<l<=s&&++l,f[B]=s++),g=w}else g=v}return d(g),d(a),h(1),r+1===e?t[r]=0:(t[r]=e-r-1,t[e++]=0),e}(t,r,d<2?2:d,s)},this.end=function(){return!1===g&&(t[r++]=59,g=!0),r}},e.GifReader=Ft}catch(a){}function Ut(t){var e,A,n,r,i,o=Math.floor,a=new Array(64),s=new Array(64),l=new Array(64),c=new Array(64),u=new Array(65535),h=new Array(65535),d=new Array(64),g=new Array(64),f=[],p=0,m=7,w=new Array(64),B=new Array(64),v=new Array(64),y=new Array(256),b=new Array(2048),C=[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],x=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],F=[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],U=[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],_=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],I=[0,1,2,3,4,5,6,7,8,9,10,11],E=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],k=[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 S(t,e){for(var A=0,n=0,r=new Array,i=1;i<=16;i++){for(var o=1;o<=t[i];o++)r[e[n]]=[],r[e[n]][0]=A,r[e[n]][1]=i,n++,A++;A*=2}return r}function D(t){for(var e=t[0],A=t[1]-1;0<=A;)e&1<<A&&(p|=1<<m),A--,--m<0&&(255==p?(H(255),H(0)):H(p),m=7,p=0)}function H(t){f.push(t)}function M(t){H(t>>8&255),H(255&t)}function O(t,e,A,n,r){for(var i,o=r[0],a=r[240],s=function(t,e){var A,n,r,i,o,a,s,l,c,u,h=0;for(c=0;c<8;++c){A=t[h],n=t[h+1],r=t[h+2],i=t[h+3],o=t[h+4],a=t[h+5],s=t[h+6];var g=A+(l=t[h+7]),f=A-l,p=n+s,m=n-s,w=r+a,B=r-a,v=i+o,y=i-o,b=g+v,C=g-v,x=p+w,F=p-w;t[h]=b+x,t[h+4]=b-x;var Q=.707106781*(F+C);t[h+2]=C+Q,t[h+6]=C-Q;var U=.382683433*((b=y+B)-(F=m+f)),_=.5411961*b+U,I=1.306562965*F+U,E=.707106781*(x=B+m),k=f+E,S=f-E;t[h+5]=S+_,t[h+3]=S-_,t[h+1]=k+I,t[h+7]=k-I,h+=8}for(c=h=0;c<8;++c){A=t[h],n=t[h+8],r=t[h+16],i=t[h+24],o=t[h+32],a=t[h+40],s=t[h+48];var D=A+(l=t[h+56]),H=A-l,M=n+s,O=n-s,T=r+a,P=r-a,L=i+o,R=i-o,N=D+L,K=D-L,j=M+T,V=M-T;t[h]=N+j,t[h+32]=N-j;var G=.707106781*(V+K);t[h+16]=K+G,t[h+48]=K-G;var q=.382683433*((N=R+P)-(V=O+H)),W=.5411961*N+q,Y=1.306562965*V+q,z=.707106781*(j=P+O),X=H+z,J=H-z;t[h+40]=J+W,t[h+24]=J-W,t[h+8]=X+Y,t[h+56]=X-Y,h++}for(c=0;c<64;++c)u=t[c]*e[c],d[c]=0<u?u+.5|0:u-.5|0;return d}(t,e),l=0;l<64;++l)g[C[l]]=s[l];var c=g[0]-A;A=g[0],0==c?D(n[0]):(D(n[h[i=32767+c]]),D(u[i]));for(var f=63;0<f&&0==g[f];f--);if(0==f)return D(o),A;for(var p,m=1;m<=f;){for(var w=m;0==g[m]&&m<=f;++m);var B=m-w;if(16<=B){p=B>>4;for(var v=1;v<=p;++v)D(a);B&=15}i=32767+g[m],D(r[(B<<4)+h[i]]),D(u[i]),m++}return 63!=f&&D(o),A}function T(t){t<=0&&(t=1),100<t&&(t=100),i!=t&&(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],A=0;A<64;A++){var n=o((e[A]*t+50)/100);n<1?n=1:255<n&&(n=255),a[C[A]]=n}for(var r=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],i=0;i<64;i++){var u=o((r[i]*t+50)/100);u<1?u=1:255<u&&(u=255),s[C[i]]=u}for(var h=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],d=0,g=0;g<8;g++)for(var f=0;f<8;f++)l[d]=1/(a[C[d]]*h[g]*h[f]*8),c[d]=1/(s[C[d]]*h[g]*h[f]*8),d++}(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),i=t)}this.encode=function(t,i){var o,u;(new Date).getTime(),i&&T(i),f=new Array,p=0,m=7,M(65496),M(65504),M(16),H(74),H(70),H(73),H(70),H(0),H(1),H(1),H(0),M(1),M(1),H(0),H(0),function(){M(65499),M(132),H(0);for(var t=0;t<64;t++)H(a[t]);H(1);for(var e=0;e<64;e++)H(s[e])}(),o=t.width,u=t.height,M(65472),M(17),H(8),M(u),M(o),H(3),H(1),H(17),H(0),H(2),H(17),H(1),H(3),H(17),H(1),function(){M(65476),M(418),H(0);for(var t=0;t<16;t++)H(x[t+1]);for(var e=0;e<=11;e++)H(F[e]);H(16);for(var A=0;A<16;A++)H(Q[A+1]);for(var n=0;n<=161;n++)H(U[n]);H(1);for(var r=0;r<16;r++)H(_[r+1]);for(var i=0;i<=11;i++)H(I[i]);H(17);for(var o=0;o<16;o++)H(E[o+1]);for(var a=0;a<=161;a++)H(k[a])}(),M(65498),M(12),H(3),H(1),H(0),H(2),H(17),H(3),H(17),H(0),H(63),H(0);var h=0,d=0,g=0;p=0,m=7,this.encode.displayName="_encode_";for(var y,C,S,P,L,R,N,K,j,V=t.data,G=t.width,q=t.height,W=4*G,Y=0;Y<q;){for(y=0;y<W;){for(R=L=W*Y+y,N=-1,j=K=0;j<64;j++)R=L+(K=j>>3)*W+(N=4*(7&j)),q<=Y+K&&(R-=W*(Y+1+K-q)),W<=y+N&&(R-=y+N-W+4),C=V[R++],S=V[R++],P=V[R++],w[j]=(b[C]+b[S+256>>0]+b[P+512>>0]>>16)-128,B[j]=(b[C+768>>0]+b[S+1024>>0]+b[P+1280>>0]>>16)-128,v[j]=(b[C+1280>>0]+b[S+1536>>0]+b[P+1792>>0]>>16)-128;h=O(w,l,h,e,n),d=O(B,c,d,A,r),g=O(v,c,g,A,r),y+=32}Y+=8}if(0<=m){var z=[];z[1]=m+1,z[0]=(1<<m+1)-1,D(z)}return M(65497),new Uint8Array(f)},function(){(new Date).getTime(),t||(t=50),function(){for(var t=String.fromCharCode,e=0;e<256;e++)y[e]=t(e)}(),e=S(x,F),A=S(_,I),n=S(Q,U),r=S(E,k),function(){for(var t=1,e=2,A=1;A<=15;A++){for(var n=t;n<e;n++)h[32767+n]=A,u[32767+n]=[],u[32767+n][1]=A,u[32767+n][0]=n;for(var r=-(e-1);r<=-t;r++)h[32767+r]=A,u[32767+r]=[],u[32767+r][1]=A,u[32767+r][0]=e-1+r;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)b[t]=19595*t,b[t+256>>0]=38470*t,b[t+512>>0]=7471*t+32768,b[t+768>>0]=-11059*t,b[t+1024>>0]=-21709*t,b[t+1280>>0]=32768*t+8421375,b[t+1536>>0]=-27439*t,b[t+1792>>0]=-5329*t}(),T(t),(new Date).getTime()}()}try{t.exports=Ut}catch(a){}function _t(t,e){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}_t.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var A=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:r,green:n,blue:A,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},_t.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[t]()}catch(t){console.log("bit decode error:"+t)}},_t.prototype.bit1=function(){var t=Math.ceil(this.width/8),e=t%4,A=0<=this.height?this.height-1:-this.height;for(A=this.height-1;0<=A;A--){for(var n=this.bottom_up?A:this.height-1-A,r=0;r<t;r++)for(var i=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+8*r*4,a=0;a<8&&8*r+a<this.width;a++){var s=this.palette[i>>7-a&1];this.data[o+4*a]=s.blue,this.data[o+4*a+1]=s.green,this.data[o+4*a+2]=s.red,this.data[o+4*a+3]=255}0!=e&&(this.pos+=4-e)}},_t.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,A=this.height-1;0<=A;A--){for(var n=this.bottom_up?A:this.height-1-A,r=0;r<t;r++){var i=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+2*r*4,a=i>>4,s=15&i,l=this.palette[a];if(this.data[o]=l.blue,this.data[o+1]=l.green,this.data[o+2]=l.red,this.data[o+3]=255,2*r+1>=this.width)break;l=this.palette[s],this.data[o+4]=l.blue,this.data[o+4+1]=l.green,this.data[o+4+2]=l.red,this.data[o+4+3]=255}0!=e&&(this.pos+=4-e)}},_t.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;0<=e;e--){for(var A=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=A*this.width*4+4*n;if(r<this.palette.length){var o=this.palette[r];this.data[i]=o.red,this.data[i+1]=o.green,this.data[i+2]=o.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}0!=t&&(this.pos+=4-t)}},_t.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),A=this.height-1;0<=A;A--){for(var n=this.bottom_up?A:this.height-1-A,r=0;r<this.width;r++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(i&e)/e*255|0,a=(i>>5&e)/e*255|0,s=(i>>10&e)/e*255|0,l=i>>15?255:0,c=n*this.width*4+4*r;this.data[c]=s,this.data[c+1]=a,this.data[c+2]=o,this.data[c+3]=l}this.pos+=t}},_t.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),A=parseInt("111111",2),n=this.height-1;0<=n;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(o&e)/e*255|0,s=(o>>5&A)/A*255|0,l=(o>>11)/e*255|0,c=r*this.width*4+4*i;this.data[c]=l,this.data[c+1]=s,this.data[c+2]=a,this.data[c+3]=255}this.pos+=t}},_t.prototype.bit24=function(){for(var t=this.height-1;0<=t;t--){for(var e=this.bottom_up?t:this.height-1-t,A=0;A<this.width;A++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=e*this.width*4+4*A;this.data[o]=i,this.data[o+1]=r,this.data[o+2]=n,this.data[o+3]=255}this.pos+=this.width%4}},_t.prototype.bit32=function(){for(var t=this.height-1;0<=t;t--)for(var e=this.bottom_up?t:this.height-1-t,A=0;A<this.width;A++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=e*this.width*4+4*A;this.data[a]=i,this.data[a+1]=r,this.data[a+2]=n,this.data[a+3]=o}},_t.prototype.getData=function(){return this.data};try{t.exports=function(t){var e=new _t(t);return{data:e.getData(),width:e.width,height:e.height}}}catch(a){}!function(t){var e=15,A=573,n=[0,1,2,3,4,4,5,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,0,0,16,17,18,18,19,19,20,20,20,20,21,21,21,21,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29];function r(){var t=this;function n(t,e){for(var A=0;A|=1&t,t>>>=1,A<<=1,0<--e;);return A>>>1}t.build_tree=function(r){var i,o,a,s=t.dyn_tree,l=t.stat_desc.static_tree,c=t.stat_desc.elems,u=-1;for(r.heap_len=0,r.heap_max=A,i=0;i<c;i++)0!==s[2*i]?(r.heap[++r.heap_len]=u=i,r.depth[i]=0):s[2*i+1]=0;for(;r.heap_len<2;)s[2*(a=r.heap[++r.heap_len]=u<2?++u:0)]=1,r.depth[a]=0,r.opt_len--,l&&(r.static_len-=l[2*a+1]);for(t.max_code=u,i=Math.floor(r.heap_len/2);1<=i;i--)r.pqdownheap(s,i);for(a=c;i=r.heap[1],r.heap[1]=r.heap[r.heap_len--],r.pqdownheap(s,1),o=r.heap[1],r.heap[--r.heap_max]=i,r.heap[--r.heap_max]=o,s[2*a]=s[2*i]+s[2*o],r.depth[a]=Math.max(r.depth[i],r.depth[o])+1,s[2*i+1]=s[2*o+1]=a,r.heap[1]=a++,r.pqdownheap(s,1),2<=r.heap_len;);r.heap[--r.heap_max]=r.heap[1],function(n){var r,i,o,a,s,l,c=t.dyn_tree,u=t.stat_desc.static_tree,h=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,g=t.stat_desc.max_length,f=0;for(a=0;a<=e;a++)n.bl_count[a]=0;for(c[2*n.heap[n.heap_max]+1]=0,r=n.heap_max+1;r<A;r++)g<(a=c[2*c[2*(i=n.heap[r])+1]+1]+1)&&(a=g,f++),c[2*i+1]=a,i>t.max_code||(n.bl_count[a]++,s=0,d<=i&&(s=h[i-d]),l=c[2*i],n.opt_len+=l*(a+s),u&&(n.static_len+=l*(u[2*i+1]+s)));if(0!==f){do{for(a=g-1;0===n.bl_count[a];)a--;n.bl_count[a]--,n.bl_count[a+1]+=2,n.bl_count[g]--,f-=2}while(0<f);for(a=g;0!==a;a--)for(i=n.bl_count[a];0!==i;)(o=n.heap[--r])>t.max_code||(c[2*o+1]!=a&&(n.opt_len+=(a-c[2*o+1])*c[2*o],c[2*o+1]=a),i--)}}(r),function(t,A,r){var i,o,a,s=[],l=0;for(i=1;i<=e;i++)s[i]=l=l+r[i-1]<<1;for(o=0;o<=A;o++)0!==(a=t[2*o+1])&&(t[2*o]=n(s[a]++,a))}(s,t.max_code,r.bl_count)}}function i(t,e,A,n,r){var i=this;i.static_tree=t,i.extra_bits=e,i.extra_base=A,i.elems=n,i.max_length=r}function o(t,e,A,n,r){var i=this;i.good_length=t,i.max_lazy=e,i.nice_length=A,i.max_chain=n,i.func=r}r._length_code=[0,1,2,3,4,5,6,7,8,8,9,9,10,10,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28],r.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],r.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],r.d_code=function(t){return t<256?n[t]:n[256+(t>>>7)]},r.extra_lbits=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],r.extra_dbits=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],r.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],r.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],i.static_ltree=[12,8,140,8,76,8,204,8,44,8,172,8,108,8,236,8,28,8,156,8,92,8,220,8,60,8,188,8,124,8,252,8,2,8,130,8,66,8,194,8,34,8,162,8,98,8,226,8,18,8,146,8,82,8,210,8,50,8,178,8,114,8,242,8,10,8,138,8,74,8,202,8,42,8,170,8,106,8,234,8,26,8,154,8,90,8,218,8,58,8,186,8,122,8,250,8,6,8,134,8,70,8,198,8,38,8,166,8,102,8,230,8,22,8,150,8,86,8,214,8,54,8,182,8,118,8,246,8,14,8,142,8,78,8,206,8,46,8,174,8,110,8,238,8,30,8,158,8,94,8,222,8,62,8,190,8,126,8,254,8,1,8,129,8,65,8,193,8,33,8,161,8,97,8,225,8,17,8,145,8,81,8,209,8,49,8,177,8,113,8,241,8,9,8,137,8,73,8,201,8,41,8,169,8,105,8,233,8,25,8,153,8,89,8,217,8,57,8,185,8,121,8,249,8,5,8,133,8,69,8,197,8,37,8,165,8,101,8,229,8,21,8,149,8,85,8,213,8,53,8,181,8,117,8,245,8,13,8,141,8,77,8,205,8,45,8,173,8,109,8,237,8,29,8,157,8,93,8,221,8,61,8,189,8,125,8,253,8,19,9,275,9,147,9,403,9,83,9,339,9,211,9,467,9,51,9,307,9,179,9,435,9,115,9,371,9,243,9,499,9,11,9,267,9,139,9,395,9,75,9,331,9,203,9,459,9,43,9,299,9,171,9,427,9,107,9,363,9,235,9,491,9,27,9,283,9,155,9,411,9,91,9,347,9,219,9,475,9,59,9,315,9,187,9,443,9,123,9,379,9,251,9,507,9,7,9,263,9,135,9,391,9,71,9,327,9,199,9,455,9,39,9,295,9,167,9,423,9,103,9,359,9,231,9,487,9,23,9,279,9,151,9,407,9,87,9,343,9,215,9,471,9,55,9,311,9,183,9,439,9,119,9,375,9,247,9,503,9,15,9,271,9,143,9,399,9,79,9,335,9,207,9,463,9,47,9,303,9,175,9,431,9,111,9,367,9,239,9,495,9,31,9,287,9,159,9,415,9,95,9,351,9,223,9,479,9,63,9,319,9,191,9,447,9,127,9,383,9,255,9,511,9,0,7,64,7,32,7,96,7,16,7,80,7,48,7,112,7,8,7,72,7,40,7,104,7,24,7,88,7,56,7,120,7,4,7,68,7,36,7,100,7,20,7,84,7,52,7,116,7,3,8,131,8,67,8,195,8,35,8,163,8,99,8,227,8],i.static_dtree=[0,5,16,5,8,5,24,5,4,5,20,5,12,5,28,5,2,5,18,5,10,5,26,5,6,5,22,5,14,5,30,5,1,5,17,5,9,5,25,5,5,5,21,5,13,5,29,5,3,5,19,5,11,5,27,5,7,5,23,5],i.static_l_desc=new i(i.static_ltree,r.extra_lbits,257,286,e),i.static_d_desc=new i(i.static_dtree,r.extra_dbits,0,30,e),i.static_bl_desc=new i(null,r.extra_blbits,0,19,7);var a=[new o(0,0,0,0,0),new o(4,4,8,4,1),new o(4,5,16,8,1),new o(4,6,32,32,1),new o(4,4,16,16,2),new o(8,16,32,32,2),new o(8,16,128,128,2),new o(8,32,128,256,2),new o(32,128,258,1024,2),new o(32,258,258,4096,2)],s=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],l=262;function c(t,e,A,n){var r=t[2*e],i=t[2*A];return r<i||r==i&&n[e]<=n[A]}function u(){var t,e,A,n,o,u,h,d,g,f,p,m,w,B,v,y,b,C,x,F,Q,U,_,I,E,k,S,D,H,M,O,T,P,L,R,N,K,j,V,G,q,W=this,Y=new r,z=new r,X=new r;function J(){var t;for(t=0;t<286;t++)O[2*t]=0;for(t=0;t<30;t++)T[2*t]=0;for(t=0;t<19;t++)P[2*t]=0;O[512]=1,W.opt_len=W.static_len=0,N=j=0}function Z(t,e){var A,n,r=-1,i=t[1],o=0,a=7,s=4;for(0===i&&(a=138,s=3),t[2*(e+1)+1]=65535,A=0;A<=e;A++)n=i,i=t[2*(A+1)+1],++o<a&&n==i||(o<s?P[2*n]+=o:0!==n?(n!=r&&P[2*n]++,P[32]++):o<=10?P[34]++:P[36]++,r=n,(o=0)===i?(a=138,s=3):n==i?(a=6,s=3):(a=7,s=4))}function $(t){W.pending_buf[W.pending++]=t}function tt(t){$(255&t),$(t>>>8&255)}function et(t,e){var A,n=e;16-n<q?(tt(G|=(A=t)<<q&65535),G=A>>>16-q,q+=n-16):(G|=t<<q&65535,q+=n)}function At(t,e){var A=2*t;et(65535&e[A],65535&e[A+1])}function nt(t,e){var A,n,r=-1,i=t[1],o=0,a=7,s=4;for(0===i&&(a=138,s=3),A=0;A<=e;A++)if(n=i,i=t[2*(A+1)+1],!(++o<a&&n==i)){if(o<s)for(;At(n,P),0!=--o;);else 0!==n?(n!=r&&(At(n,P),o--),At(16,P),et(o-3,2)):o<=10?(At(17,P),et(o-3,3)):(At(18,P),et(o-11,7));r=n,(o=0)===i?(a=138,s=3):n==i?(a=6,s=3):(a=7,s=4)}}function rt(){16==q?(tt(G),q=G=0):8<=q&&($(255&G),G>>>=8,q-=8)}function it(t,e){var A,n,i;if(W.pending_buf[K+2*N]=t>>>8&255,W.pending_buf[K+2*N+1]=255&t,W.pending_buf[L+N]=255&e,N++,0===t?O[2*e]++:(j++,t--,O[2*(r._length_code[e]+256+1)]++,T[2*r.d_code(t)]++),0==(8191&N)&&2<S){for(A=8*N,n=Q-b,i=0;i<30;i++)A+=T[2*i]*(5+r.extra_dbits[i]);if(A>>>=3,j<Math.floor(N/2)&&A<Math.floor(n/2))return!0}return N==R-1}function ot(t,e){var A,n,i,o,a=0;if(0!==N)for(;A=W.pending_buf[K+2*a]<<8&65280|255&W.pending_buf[K+2*a+1],n=255&W.pending_buf[L+a],a++,0===A?At(n,t):(At((i=r._length_code[n])+256+1,t),0!==(o=r.extra_lbits[i])&&et(n-=r.base_length[i],o),At(i=r.d_code(--A),e),0!==(o=r.extra_dbits[i])&&et(A-=r.base_dist[i],o)),a<N;);At(256,t),V=t[513]}function at(){8<q?tt(G):0<q&&$(255&G),q=G=0}function st(t,e,A){var n,r,i;et(0+(A?1:0),3),n=t,r=e,i=!0,at(),V=8,i&&(tt(r),tt(~r)),W.pending_buf.set(d.subarray(n,n+r),W.pending),W.pending+=r}function lt(t,e,A){var n,o,a=0;0<S?(Y.build_tree(W),z.build_tree(W),a=function(){var t;for(Z(O,Y.max_code),Z(T,z.max_code),X.build_tree(W),t=18;3<=t&&0===P[2*r.bl_order[t]+1];t--);return W.opt_len+=3*(t+1)+5+5+4,t}(),n=W.opt_len+3+7>>>3,(o=W.static_len+3+7>>>3)<=n&&(n=o)):n=o=e+5,e+4<=n&&-1!=t?st(t,e,A):o==n?(et(2+(A?1:0),3),ot(i.static_ltree,i.static_dtree)):(et(4+(A?1:0),3),function(t,e,A){var n;for(et(t-257,5),et(e-1,5),et(A-4,4),n=0;n<A;n++)et(P[2*r.bl_order[n]+1],3);nt(O,t-1),nt(T,e-1)}(Y.max_code+1,z.max_code+1,a+1),ot(O,T)),J(),A&&at()}function ct(e){lt(0<=b?b:-1,Q-b,e),b=Q,t.flush_pending()}function ut(){var e,A,n,r;do{if(0===(r=g-_-Q)&&0===Q&&0===_)r=o;else if(-1==r)r--;else if(o+o-l<=Q){for(d.set(d.subarray(o,o+o),0),U-=o,Q-=o,b-=o,n=e=w;A=65535&p[--n],p[n]=o<=A?A-o:0,0!=--e;);for(n=e=o;A=65535&f[--n],f[n]=o<=A?A-o:0,0!=--e;);r+=o}if(0===t.avail_in)return;e=t.read_buf(d,Q+_,r),3<=(_+=e)&&(m=((m=255&d[Q])<<y^255&d[Q+1])&v)}while(_<l&&0!==t.avail_in)}function ht(t){var e,A,n=E,r=Q,i=I,a=o-l<Q?Q-(o-l):0,s=M,c=h,u=Q+258,g=d[r+i-1],p=d[r+i];H<=I&&(n>>=2),_<s&&(s=_);do{if(d[(e=t)+i]==p&&d[e+i-1]==g&&d[e]==d[r]&&d[++e]==d[r+1]){r+=2,e++;do{}while(d[++r]==d[++e]&&d[++r]==d[++e]&&d[++r]==d[++e]&&d[++r]==d[++e]&&d[++r]==d[++e]&&d[++r]==d[++e]&&d[++r]==d[++e]&&d[++r]==d[++e]&&r<u);if(A=258-(u-r),r=u-258,i<A){if(U=t,s<=(i=A))break;g=d[r+i-1],p=d[r+i]}}}while((t=65535&f[t&c])>a&&0!=--n);return i<=_?i:_}function dt(t){return t.total_in=t.total_out=0,t.msg=null,W.pending=0,W.pending_out=0,e=113,n=0,Y.dyn_tree=O,Y.stat_desc=i.static_l_desc,z.dyn_tree=T,z.stat_desc=i.static_d_desc,X.dyn_tree=P,X.stat_desc=i.static_bl_desc,q=G=0,V=8,J(),function(){var t;for(g=2*o,t=p[w-1]=0;t<w-1;t++)p[t]=0;k=a[S].max_lazy,H=a[S].good_length,M=a[S].nice_length,E=a[S].max_chain,C=I=2,m=F=_=b=Q=0}(),0}W.depth=[],W.bl_count=[],W.heap=[],O=[],T=[],P=[],W.pqdownheap=function(t,e){for(var A=W.heap,n=A[e],r=e<<1;r<=W.heap_len&&(r<W.heap_len&&c(t,A[r+1],A[r],W.depth)&&r++,!c(t,n,A[r],W.depth));)A[e]=A[r],e=r,r<<=1;A[e]=n},W.deflateInit=function(t,e,n,r,i,a){return r||(r=8),i||(i=8),a||(a=0),t.msg=null,-1==e&&(e=6),i<1||9<i||8!=r||n<9||15<n||e<0||9<e||a<0||2<a?-2:(t.dstate=W,h=(o=1<<(u=n))-1,v=(w=1<<(B=i+7))-1,y=Math.floor((B+3-1)/3),d=new Uint8Array(2*o),f=[],p=[],R=1<<i+6,W.pending_buf=new Uint8Array(4*R),A=4*R,K=Math.floor(R/2),L=3*R,S=e,D=a,dt(t))},W.deflateEnd=function(){return 42!=e&&113!=e&&666!=e?-2:(W.pending_buf=null,d=f=p=null,W.dstate=null,113==e?-3:0)},W.deflateParams=function(t,e,A){var n=0;return-1==e&&(e=6),e<0||9<e||A<0||2<A?-2:(a[S].func!=a[e].func&&0!==t.total_in&&(n=t.deflate(1)),S!=e&&(k=a[S=e].max_lazy,H=a[S].good_length,M=a[S].nice_length,E=a[S].max_chain),D=A,n)},W.deflateSetDictionary=function(t,A,n){var r,i=n,a=0;if(!A||42!=e)return-2;if(i<3)return 0;for(o-l<i&&(a=n-(i=o-l)),d.set(A.subarray(a,a+i),0),b=Q=i,m=((m=255&d[0])<<y^255&d[1])&v,r=0;r<=i-3;r++)m=(m<<y^255&d[r+2])&v,f[r&h]=p[m],p[m]=r;return 0},W.deflate=function(r,c){var g,B,E,H,M,O;if(4<c||c<0)return-2;if(!r.next_out||!r.next_in&&0!==r.avail_in||666==e&&4!=c)return r.msg=s[4],-2;if(0===r.avail_out)return r.msg=s[7],-5;if(t=r,H=n,n=c,42==e&&(B=8+(u-8<<4)<<8,3<(E=(S-1&255)>>1)&&(E=3),B|=E<<6,0!==Q&&(B|=32),e=113,$((O=B+=31-B%31)>>8&255),$(255&O)),0!==W.pending){if(t.flush_pending(),0===t.avail_out)return n=-1,0}else if(0===t.avail_in&&c<=H&&4!=c)return t.msg=s[7],-5;if(666==e&&0!==t.avail_in)return r.msg=s[7],-5;if(0!==t.avail_in||0!==_||0!=c&&666!=e){switch(M=-1,a[S].func){case 0:M=function(e){var n,r=65535;for(A-5<r&&(r=A-5);;){if(_<=1){if(ut(),0===_&&0==e)return 0;if(0===_)break}if(Q+=_,n=b+r,((_=0)===Q||n<=Q)&&(_=Q-n,Q=n,ct(!1),0===t.avail_out))return 0;if(o-l<=Q-b&&(ct(!1),0===t.avail_out))return 0}return ct(4==e),0===t.avail_out?4==e?2:0:4==e?3:1}(c);break;case 1:M=function(e){for(var A,n=0;;){if(_<l){if(ut(),_<l&&0==e)return 0;if(0===_)break}if(3<=_&&(m=(m<<y^255&d[Q+2])&v,n=65535&p[m],f[Q&h]=p[m],p[m]=Q),0!==n&&(Q-n&65535)<=o-l&&2!=D&&(C=ht(n)),3<=C)if(A=it(Q-U,C-3),_-=C,C<=k&&3<=_){for(C--;m=(m<<y^255&d[2+ ++Q])&v,n=65535&p[m],f[Q&h]=p[m],p[m]=Q,0!=--C;);Q++}else Q+=C,C=0,m=((m=255&d[Q])<<y^255&d[Q+1])&v;else A=it(0,255&d[Q]),_--,Q++;if(A&&(ct(!1),0===t.avail_out))return 0}return ct(4==e),0===t.avail_out?4==e?2:0:4==e?3:1}(c);break;case 2:M=function(e){for(var A,n,r=0;;){if(_<l){if(ut(),_<l&&0==e)return 0;if(0===_)break}if(3<=_&&(m=(m<<y^255&d[Q+2])&v,r=65535&p[m],f[Q&h]=p[m],p[m]=Q),I=C,x=U,C=2,0!==r&&I<k&&(Q-r&65535)<=o-l&&(2!=D&&(C=ht(r)),C<=5&&(1==D||3==C&&4096<Q-U)&&(C=2)),3<=I&&C<=I){for(n=Q+_-3,A=it(Q-1-x,I-3),_-=I-1,I-=2;++Q<=n&&(m=(m<<y^255&d[Q+2])&v,r=65535&p[m],f[Q&h]=p[m],p[m]=Q),0!=--I;);if(F=0,C=2,Q++,A&&(ct(!1),0===t.avail_out))return 0}else if(0!==F){if((A=it(0,255&d[Q-1]))&&ct(!1),Q++,_--,0===t.avail_out)return 0}else F=1,Q++,_--}return 0!==F&&(A=it(0,255&d[Q-1]),F=0),ct(4==e),0===t.avail_out?4==e?2:0:4==e?3:1}(c)}if(2!=M&&3!=M||(e=666),0==M||2==M)return 0===t.avail_out&&(n=-1),0;if(1==M){if(1==c)et(2,3),At(256,i.static_ltree),rt(),1+V+10-q<9&&(et(2,3),At(256,i.static_ltree),rt()),V=7;else if(st(0,0,!1),3==c)for(g=0;g<w;g++)p[g]=0;if(t.flush_pending(),0===t.avail_out)return n=-1,0}}return 4!=c?0:1}}function h(){var t=this;t.next_in_index=0,t.next_out_index=0,t.avail_in=0,t.total_in=0,t.avail_out=0,t.total_out=0}h.prototype={deflateInit:function(t,A){return this.dstate=new u,A||(A=e),this.dstate.deflateInit(this,t,A)},deflate:function(t){return this.dstate?this.dstate.deflate(this,t):-2},deflateEnd:function(){if(!this.dstate)return-2;var t=this.dstate.deflateEnd();return this.dstate=null,t},deflateParams:function(t,e){return this.dstate?this.dstate.deflateParams(this,t,e):-2},deflateSetDictionary:function(t,e){return this.dstate?this.dstate.deflateSetDictionary(this,t,e):-2},read_buf:function(t,e,A){var n=this,r=n.avail_in;return A<r&&(r=A),0===r?0:(n.avail_in-=r,t.set(n.next_in.subarray(n.next_in_index,n.next_in_index+r),e),n.next_in_index+=r,n.total_in+=r,r)},flush_pending:function(){var t=this,e=t.dstate.pending;e>t.avail_out&&(e=t.avail_out),0!==e&&(t.next_out.set(t.dstate.pending_buf.subarray(t.dstate.pending_out,t.dstate.pending_out+e),t.next_out_index),t.next_out_index+=e,t.dstate.pending_out+=e,t.total_out+=e,t.avail_out-=e,t.dstate.pending-=e,0===t.dstate.pending&&(t.dstate.pending_out=0))}};var d=t.zip||t;d.Deflater=d._jzlib_Deflater=function(t){var e=new h,A=new Uint8Array(512),n=t?t.level:-1;void 0===n&&(n=-1),e.deflateInit(n),e.next_out=A,this.append=function(t,n){var r,i=[],o=0,a=0,s=0;if(t.length){e.next_in_index=0,e.next_in=t,e.avail_in=t.length;do{if(e.next_out_index=0,e.avail_out=512,0!=e.deflate(0))throw new Error("deflating: "+e.msg);e.next_out_index&&(512==e.next_out_index?i.push(new Uint8Array(A)):i.push(new Uint8Array(A.subarray(0,e.next_out_index)))),s+=e.next_out_index,n&&0<e.next_in_index&&e.next_in_index!=o&&(n(e.next_in_index),o=e.next_in_index)}while(0<e.avail_in||0===e.avail_out);return r=new Uint8Array(s),i.forEach((function(t){r.set(t,a),a+=t.length})),r}},this.flush=function(){var t,n,r=[],i=0,o=0;do{if(e.next_out_index=0,e.avail_out=512,1!=(t=e.deflate(4))&&0!=t)throw new Error("deflating: "+e.msg);0<512-e.avail_out&&r.push(new Uint8Array(A.subarray(0,e.next_out_index))),o+=e.next_out_index}while(0<e.avail_in||0===e.avail_out);return e.deflateEnd(),n=new Uint8Array(o),r.forEach((function(t){n.set(t,i),i+=t.length})),n}}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof n&&n||Function('return typeof this === "object" && this.content')()||Function("return this")()), /** * A class to parse color values * @author Stoyan Stefanov <sstoo@gmail.com> * @link http://www.phpied.com/rgb-color-parser-in-javascript/ * @license Use it if you like it */ function(n){function r(t){var e;this.ok=!1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var A={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};for(var n in A)t==n&&(t=A[n]);for(var i=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],o=0;o<i.length;o++){var a=i[o].re,s=i[o].process,l=a.exec(t);l&&(e=s(l),this.r=e[0],this.g=e[1],this.b=e[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:255<this.r?255:this.r,this.g=this.g<0||isNaN(this.g)?0:255<this.g?255:this.g,this.b=this.b<0||isNaN(this.b)?0:255<this.b?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),A=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==A.length&&(A="0"+A),"#"+t+e+A},this.getHelpXML=function(){for(var t=new Array,e=0;e<i.length;e++)for(var n=i[e].example,o=0;o<n.length;o++)t[t.length]=n[o];for(var a in A)t[t.length]=a;var s=document.createElement("ul");for(s.setAttribute("id","rgbcolor-examples"),e=0;e<t.length;e++)try{var l=document.createElement("li"),c=new r(t[e]),u=document.createElement("div");u.style.cssText="margin: 3px; border: 1px solid black; background:"+c.toHex()+"; color:"+c.toHex(),u.appendChild(document.createTextNode("test"));var h=document.createTextNode(" "+t[e]+" -> "+c.toRGB()+" -> "+c.toHex());l.appendChild(u),l.appendChild(h),s.appendChild(l)}catch(t){}return s}}i=function(){return r}.call(e,A,e,t),void 0!==i&&(t.exports=i),n.RGBColor=r}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof n&&n||Function('return typeof this === "object" && this.content')()||Function("return this")()),function(e){t.exports=e()}((function(){return function t(e,A,n){function r(a,s){if(!A[a]){if(!e[a]){var l="function"==typeof o&&o;if(!s&&l)return o(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=A[a]={exports:{}};e[a][0].call(u.exports,(function(t){var A=e[a][1][t];return r(A||t)}),u,u.exports,t,e,A,n)}return A[a].exports}for(var i="function"==typeof o&&o,a=0;a<n.length;a++)r(n[a]);return r}({1:[function(t,e,A){(function(t){!function(n){var r="object"==typeof A&&A,i="object"==typeof e&&e&&e.exports==r&&e,o="object"==typeof t&&t;o.global!==o&&o.window!==o||(n=o);var a,s,l=2147483647,c=36,u=1,h=26,d=38,g=700,f=72,p=128,m="-",w=/^xn--/,B=/[^ -~]/,v=/\x2E|\u3002|\uFF0E|\uFF61/g,y={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},b=c-u,C=Math.floor,x=String.fromCharCode;function F(t){throw RangeError(y[t])}function Q(t,e){for(var A=t.length;A--;)t[A]=e(t[A]);return t}function U(t,e){return Q(t.split(v),e).join(".")}function _(t){for(var e,A,n=[],r=0,i=t.length;r<i;)55296<=(e=t.charCodeAt(r++))&&e<=56319&&r<i?56320==(64512&(A=t.charCodeAt(r++)))?n.push(((1023&e)<<10)+(1023&A)+65536):(n.push(e),r--):n.push(e);return n}function I(t){return Q(t,(function(t){var e="";return 65535<t&&(e+=x((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+x(t)})).join("")}function E(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function k(t,e,A){var n=0;for(t=A?C(t/g):t>>1,t+=C(t/e);b*h>>1<t;n+=c)t=C(t/b);return C(n+(b+1)*t/(t+d))}function S(t){var e,A,n,r,i,o,a,s,d,g,w,B=[],v=t.length,y=0,b=p,x=f;for((A=t.lastIndexOf(m))<0&&(A=0),n=0;n<A;++n)128<=t.charCodeAt(n)&&F("not-basic"),B.push(t.charCodeAt(n));for(r=0<A?A+1:0;r<v;){for(i=y,o=1,a=c;v<=r&&F("invalid-input"),w=t.charCodeAt(r++),(c<=(s=w-48<10?w-22:w-65<26?w-65:w-97<26?w-97:c)||s>C((l-y)/o))&&F("overflow"),y+=s*o,!(s<(d=a<=x?u:x+h<=a?h:a-x));a+=c)o>C(l/(g=c-d))&&F("overflow"),o*=g;x=k(y-i,e=B.length+1,0==i),C(y/e)>l-b&&F("overflow"),b+=C(y/e),y%=e,B.splice(y++,0,b)}return I(B)}function D(t){var e,A,n,r,i,o,a,s,d,g,w,B,v,y,b,Q=[];for(B=(t=_(t)).length,e=p,i=f,o=A=0;o<B;++o)(w=t[o])<128&&Q.push(x(w));for(n=r=Q.length,r&&Q.push(m);n<B;){for(a=l,o=0;o<B;++o)e<=(w=t[o])&&w<a&&(a=w);for(a-e>C((l-A)/(v=n+1))&&F("overflow"),A+=(a-e)*v,e=a,o=0;o<B;++o)if((w=t[o])<e&&++A>l&&F("overflow"),w==e){for(s=A,d=c;!(s<(g=d<=i?u:i+h<=d?h:d-i));d+=c)b=s-g,y=c-g,Q.push(x(E(g+b%y,0))),s=C(b/y);Q.push(x(E(s,0))),i=k(A,v,n==r),A=0,++n}++A,++e}return Q.join("")}if(a={version:"1.2.4",ucs2:{decode:_,encode:I},decode:S,encode:D,toASCII:function(t){return U(t,(function(t){return B.test(t)?"xn--"+D(t):t}))},toUnicode:function(t){return U(t,(function(t){return w.test(t)?S(t.slice(4).toLowerCase()):t}))}},r&&!r.nodeType)if(i)i.exports=a;else for(s in a)a.hasOwnProperty(s)&&(r[s]=a[s]);else n.punycode=a}(this)}).call(this,"undefined"!=typeof n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(t,e,A){var n=t("./log");function r(t,e){for(var A=3===t.nodeType?document.createTextNode(t.nodeValue):t.cloneNode(!1),i=t.firstChild;i;)!0!==e&&1===i.nodeType&&"SCRIPT"===i.nodeName||A.appendChild(r(i,e)),i=i.nextSibling;return 1===t.nodeType&&(A._scrollTop=t.scrollTop,A._scrollLeft=t.scrollLeft,"CANVAS"===t.nodeName?function(t,e){try{e&&(e.width=t.width,e.height=t.height,e.getContext("2d").putImageData(t.getContext("2d").getImageData(0,0,t.width,t.height),0,0))}catch(e){n("Unable to copy canvas content from",t,e)}}(t,A):"TEXTAREA"!==t.nodeName&&"SELECT"!==t.nodeName||(A.value=t.value)),A}e.exports=function(t,e,A,n,i,o,a){var s=r(t.documentElement,i.javascriptEnabled),l=e.createElement("iframe");return l.className="html2canvas-container",l.style.visibility="hidden",l.style.position="fixed",l.style.left="-10000px",l.style.top="0px",l.style.border="0",l.width=A,l.height=n,l.scrolling="no",e.body.appendChild(l),new Promise((function(e){var A,n,r,c=l.contentWindow.document;l.contentWindow.onload=l.onload=function(){var t=setInterval((function(){0<c.body.childNodes.length&&(function t(e){if(1===e.nodeType){e.scrollTop=e._scrollTop,e.scrollLeft=e._scrollLeft;for(var A=e.firstChild;A;)t(A),A=A.nextSibling}}(c.documentElement),clearInterval(t),"view"===i.type&&(l.contentWindow.scrollTo(o,a),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||l.contentWindow.scrollY===a&&l.contentWindow.scrollX===o||(c.documentElement.style.top=-a+"px",c.documentElement.style.left=-o+"px",c.documentElement.style.position="absolute")),e(l))}),50)},c.open(),c.write("<!DOCTYPE html><html></html>"),n=o,r=a,!(A=t).defaultView||n===A.defaultView.pageXOffset&&r===A.defaultView.pageYOffset||A.defaultView.scrollTo(n,r),c.replaceChild(c.adoptNode(s),c.documentElement),c.close()}))}},{"./log":13}],3:[function(t,e,A){function n(t){this.r=0,this.g=0,this.b=0,this.a=null,this.fromArray(t)||this.namedColor(t)||this.rgb(t)||this.rgba(t)||this.hex6(t)||this.hex3(t)}n.prototype.darken=function(t){var e=1-t;return new n([Math.round(this.r*e),Math.round(this.g*e),Math.round(this.b*e),this.a])},n.prototype.isTransparent=function(){return 0===this.a},n.prototype.isBlack=function(){return 0===this.r&&0===this.g&&0===this.b},n.prototype.fromArray=function(t){return Array.isArray(t)&&(this.r=Math.min(t[0],255),this.g=Math.min(t[1],255),this.b=Math.min(t[2],255),3<t.length&&(this.a=t[3])),Array.isArray(t)};var r=/^#([a-f0-9]{3})$/i;n.prototype.hex3=function(t){var e;return null!==(e=t.match(r))&&(this.r=parseInt(e[1][0]+e[1][0],16),this.g=parseInt(e[1][1]+e[1][1],16),this.b=parseInt(e[1][2]+e[1][2],16)),null!==e};var i=/^#([a-f0-9]{6})$/i;n.prototype.hex6=function(t){var e=null;return null!==(e=t.match(i))&&(this.r=parseInt(e[1].substring(0,2),16),this.g=parseInt(e[1].substring(2,4),16),this.b=parseInt(e[1].substring(4,6),16)),null!==e};var o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/;n.prototype.rgb=function(t){var e;return null!==(e=t.match(o))&&(this.r=Number(e[1]),this.g=Number(e[2]),this.b=Number(e[3])),null!==e};var a=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?\.?\d+)\s*\)$/;n.prototype.rgba=function(t){var e;return null!==(e=t.match(a))&&(this.r=Number(e[1]),this.g=Number(e[2]),this.b=Number(e[3]),this.a=Number(e[4])),null!==e},n.prototype.toString=function(){return null!==this.a&&1!==this.a?"rgba("+[this.r,this.g,this.b,this.a].join(",")+")":"rgb("+[this.r,this.g,this.b].join(",")+")"},n.prototype.namedColor=function(t){t=t.toLowerCase();var e=s[t];if(e)this.r=e[0],this.g=e[1],this.b=e[2];else if("transparent"===t)return this.r=this.g=this.b=this.a=0,!0;return!!e},n.prototype.isColor=!0;var s={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};e.exports=n},{}],4:[function(t,e,A){var n=t("./support"),r=t("./renderers/canvas"),i=t("./imageloader"),o=t("./nodeparser"),a=t("./nodecontainer"),s=t("./log"),l=t("./utils"),c=t("./clone"),u=t("./proxy").loadUrlDocument,h=l.getBounds,d="data-html2canvas-node",g=0;function f(t,e){var A,n,i=g++;if((e=e||{}).logging&&(s.options.logging=!0,s.options.start=Date.now()),e.async=void 0===e.async||e.async,e.allowTaint=void 0!==e.allowTaint&&e.allowTaint,e.removeContainer=void 0===e.removeContainer||e.removeContainer,e.javascriptEnabled=void 0!==e.javascriptEnabled&&e.javascriptEnabled,e.imageTimeout=void 0===e.imageTimeout?1e4:e.imageTimeout,e.renderer="function"==typeof e.renderer?e.renderer:r,e.strict=!!e.strict,"string"==typeof t){if("string"!=typeof e.proxy)return Promise.reject("Proxy must be used when rendering url");var o=null!=e.width?e.width:window.innerWidth,a=null!=e.height?e.height:window.innerHeight;return u((A=t,n=document.createElement("a"),n.href=A,n.href=n.href,n),e.proxy,document,o,a,e).then((function(t){return m(t.contentWindow.document.documentElement,t,e,o,a)}))}var l,h,f,p,w,B=(void 0===t?[document.documentElement]:t.length?t:[t])[0];return B.setAttribute(d+i,i),(l=B.ownerDocument,h=e,f=B.ownerDocument.defaultView.innerWidth,p=B.ownerDocument.defaultView.innerHeight,w=i,c(l,l,f,p,h,l.defaultView.pageXOffset,l.defaultView.pageYOffset).then((function(t){s("Document cloned");var e=d+w,A="["+e+"='"+w+"']";l.querySelector(A).removeAttribute(e);var n=t.contentWindow,r=n.document.querySelector(A),i="function"==typeof h.onclone?Promise.resolve(h.onclone(n.document)):Promise.resolve(!0);return i.then((function(){return m(r,t,h,f,p)}))}))).then((function(t){return"function"==typeof e.onrendered&&(s("options.onrendered is deprecated, html2canvas returns a Promise containing the canvas"),e.onrendered(t)),t}))}f.CanvasRenderer=r,f.NodeContainer=a,f.log=s,f.utils=l;var p="undefined"==typeof document||"function"!=typeof Object.create||"function"!=typeof document.createElement("canvas").getContext?function(){return Promise.reject("No canvas support")}:f;function m(t,e,A,r,a){var l,c,u=e.contentWindow,d=new n(u.document),g=new i(A,d),f=h(t),p="view"===A.type?r:(l=u.document,Math.max(Math.max(l.body.scrollWidth,l.documentElement.scrollWidth),Math.max(l.body.offsetWidth,l.documentElement.offsetWidth),Math.max(l.body.clientWidth,l.documentElement.clientWidth))),m="view"===A.type?a:(c=u.document,Math.max(Math.max(c.body.scrollHeight,c.documentElement.scrollHeight),Math.max(c.body.offsetHeight,c.documentElement.offsetHeight),Math.max(c.body.clientHeight,c.documentElement.clientHeight))),B=new A.renderer(p,m,g,A,document);return new o(t,B,d,g,A).ready.then((function(){var n,r;return s("Finished rendering"),n="view"===A.type?w(B.canvas,{width:B.canvas.width,height:B.canvas.height,top:0,left:0,x:0,y:0}):t===u.document.body||t===u.document.documentElement||null!=A.canvas?B.canvas:w(B.canvas,{width:null!=A.width?A.width:f.width,height:null!=A.height?A.height:f.height,top:f.top,left:f.left,x:0,y:0}),r=e,A.removeContainer&&(r.parentNode.removeChild(r),s("Cleaned up container")),n}))}function w(t,e){var A=document.createElement("canvas"),n=Math.min(t.width-1,Math.max(0,e.left)),r=Math.min(t.width,Math.max(1,e.left+e.width)),i=Math.min(t.height-1,Math.max(0,e.top)),o=Math.min(t.height,Math.max(1,e.top+e.height));A.width=e.width,A.height=e.height;var a=r-n,l=o-i;return s("Cropping canvas at:","left:",e.left,"top:",e.top,"width:",a,"height:",l),s("Resulting crop with width",e.width,"and height",e.height,"with x",n,"and y",i),A.getContext("2d").drawImage(t,n,i,a,l,e.x,e.y,a,l),A}e.exports=p},{"./clone":2,"./imageloader":11,"./log":13,"./nodecontainer":14,"./nodeparser":15,"./proxy":16,"./renderers/canvas":20,"./support":22,"./utils":26}],5:[function(t,e,A){var n=t("./log"),r=t("./utils").smallImage;e.exports=function t(e){if(this.src=e,n("DummyImageContainer for",e),!this.promise||!this.image){n("Initiating DummyImageContainer"),t.prototype.image=new Image;var A=this.image;t.prototype.promise=new Promise((function(t,e){A.onload=t,A.onerror=e,A.src=r(),!0===A.complete&&t(A)}))}}},{"./log":13,"./utils":26}],6:[function(t,e,A){var n=t("./utils").smallImage;e.exports=function(t,e){var A,r,i=document.createElement("div"),o=document.createElement("img"),a=document.createElement("span"),s="Hidden Text";i.style.visibility="hidden",i.style.fontFamily=t,i.style.fontSize=e,i.style.margin=0,i.style.padding=0,document.body.appendChild(i),o.src=n(),o.width=1,o.height=1,o.style.margin=0,o.style.padding=0,o.style.verticalAlign="baseline",a.style.fontFamily=t,a.style.fontSize=e,a.style.margin=0,a.style.padding=0,a.appendChild(document.createTextNode(s)),i.appendChild(a),i.appendChild(o),A=o.offsetTop-a.offsetTop+1,i.removeChild(a),i.appendChild(document.createTextNode(s)),i.style.lineHeight="normal",o.style.verticalAlign="super",r=o.offsetTop-i.offsetTop+1,document.body.removeChild(i),this.baseline=A,this.lineWidth=1,this.middle=r}},{"./utils":26}],7:[function(t,e,A){var n=t("./font");function r(){this.data={}}r.prototype.getMetrics=function(t,e){return void 0===this.data[t+"-"+e]&&(this.data[t+"-"+e]=new n(t,e)),this.data[t+"-"+e]},e.exports=r},{"./font":6}],8:[function(t,e,A){var n=t("./utils").getBounds,r=t("./proxy").loadUrlDocument;function i(e,A,r){this.image=null,this.src=e;var i=this,o=n(e);this.promise=(A?new Promise((function(t){"about:blank"===e.contentWindow.document.URL||null==e.contentWindow.document.documentElement?e.contentWindow.onload=e.onload=function(){t(e)}:t(e)})):this.proxyLoad(r.proxy,o,r)).then((function(e){return t("./core")(e.contentWindow.document.documentElement,{type:"view",width:e.width,height:e.height,proxy:r.proxy,javascriptEnabled:r.javascriptEnabled,removeContainer:r.removeContainer,allowTaint:r.allowTaint,imageTimeout:r.imageTimeout/2})})).then((function(t){return i.image=t}))}i.prototype.proxyLoad=function(t,e,A){var n=this.src;return r(n.src,t,n.ownerDocument,e.width,e.height,A)},e.exports=i},{"./core":4,"./proxy":16,"./utils":26}],9:[function(t,e,A){function n(t){this.src=t.value,this.colorStops=[],this.type=null,this.x0=.5,this.y0=.5,this.x1=.5,this.y1=.5,this.promise=Promise.resolve(!0)}n.TYPES={LINEAR:1,RADIAL:2},n.REGEXP_COLORSTOP=/^\s*(rgba?\(\s*\d{1,3},\s*\d{1,3},\s*\d{1,3}(?:,\s*[0-9\.]+)?\s*\)|[a-z]{3,20}|#[a-f0-9]{3,6})(?:\s+(\d{1,3}(?:\.\d+)?)(%|px)?)?(?:\s|$)/i,e.exports=n},{}],10:[function(t,e,A){e.exports=function(t,e){this.src=t,this.image=new Image;var A=this;this.tainted=null,this.promise=new Promise((function(n,r){A.image.onload=n,A.image.onerror=r,e&&(A.image.crossOrigin="anonymous"),A.image.src=t,!0===A.image.complete&&n(A.image)}))}},{}],11:[function(t,e,A){var n=t("./log"),r=t("./imagecontainer"),i=t("./dummyimagecontainer"),o=t("./proxyimagecontainer"),a=t("./framecontainer"),s=t("./svgcontainer"),l=t("./svgnodecontainer"),c=t("./lineargradientcontainer"),u=t("./webkitgradientcontainer"),h=t("./utils").bind;function d(t,e){this.link=null,this.options=t,this.support=e,this.origin=this.getOrigin(window.location.href)}d.prototype.findImages=function(t){var e=[];return t.reduce((function(t,e){switch(e.node.nodeName){case"IMG":return t.concat([{args:[e.node.src],method:"url"}]);case"svg":case"IFRAME":return t.concat([{args:[e.node],method:e.node.nodeName}])}return t}),[]).forEach(this.addImage(e,this.loadImage),this),e},d.prototype.findBackgroundImage=function(t,e){return e.parseBackgroundImages().filter(this.hasImageBackground).forEach(this.addImage(t,this.loadImage),this),t},d.prototype.addImage=function(t,e){return function(A){A.args.forEach((function(r){this.imageExists(t,r)||(t.splice(0,0,e.call(this,A)),n("Added image #"+t.length,"string"==typeof r?r.substring(0,100):r))}),this)}},d.prototype.hasImageBackground=function(t){return"none"!==t.method},d.prototype.loadImage=function(t){if("url"===t.method){var e=t.args[0];return!this.isSVG(e)||this.support.svg||this.options.allowTaint?e.match(/data:image\/.*;base64,/i)?new r(e.replace(/url\(['"]{0,}|['"]{0,}\)$/gi,""),!1):this.isSameOrigin(e)||!0===this.options.allowTaint||this.isSVG(e)?new r(e,!1):this.support.cors&&!this.options.allowTaint&&this.options.useCORS?new r(e,!0):this.options.proxy?new o(e,this.options.proxy):new i(e):new s(e)}return"linear-gradient"===t.method?new c(t):"gradient"===t.method?new u(t):"svg"===t.method?new l(t.args[0],this.support.svg):"IFRAME"===t.method?new a(t.args[0],this.isSameOrigin(t.args[0].src),this.options):new i(t)},d.prototype.isSVG=function(t){return"svg"===t.substring(t.length-3).toLowerCase()||s.prototype.isInline(t)},d.prototype.imageExists=function(t,e){return t.some((function(t){return t.src===e}))},d.prototype.isSameOrigin=function(t){return this.getOrigin(t)===this.origin},d.prototype.getOrigin=function(t){var e=this.link||(this.link=document.createElement("a"));return e.href=t,e.href=e.href,e.protocol+e.hostname+e.port},d.prototype.getPromise=function(t){return this.timeout(t,this.options.imageTimeout).catch((function(){return new i(t.src).promise.then((function(e){t.image=e}))}))},d.prototype.get=function(t){var e=null;return this.images.some((function(A){return(e=A).src===t}))?e:null},d.prototype.fetch=function(t){return this.images=t.reduce(h(this.findBackgroundImage,this),this.findImages(t)),this.images.forEach((function(t,e){t.promise.then((function(){n("Succesfully loaded image #"+(e+1),t)}),(function(A){n("Failed loading image #"+(e+1),t,A)}))})),this.ready=Promise.all(this.images.map(this.getPromise,this)),n("Finished searching images"),this},d.prototype.timeout=function(t,e){var A,r=Promise.race([t.promise,new Promise((function(r,i){A=setTimeout((function(){n("Timed out loading image",t),i(t)}),e)}))]).then((function(t){return clearTimeout(A),t}));return r.catch((function(){clearTimeout(A)})),r},e.exports=d},{"./dummyimagecontainer":5,"./framecontainer":8,"./imagecontainer":10,"./lineargradientcontainer":12,"./log":13,"./proxyimagecontainer":17,"./svgcontainer":23,"./svgnodecontainer":24,"./utils":26,"./webkitgradientcontainer":27}],12:[function(t,e,A){var n=t("./gradientcontainer"),r=t("./color");function i(t){n.apply(this,arguments),this.type=n.TYPES.LINEAR;var e=i.REGEXP_DIRECTION.test(t.args[0])||!n.REGEXP_COLORSTOP.test(t.args[0]);e?t.args[0].split(/\s+/).reverse().forEach((function(t,e){switch(t){case"left":this.x0=0,this.x1=1;break;case"top":this.y0=0,this.y1=1;break;case"right":this.x0=1,this.x1=0;break;case"bottom":this.y0=1,this.y1=0;break;case"to":var A=this.y0,n=this.x0;this.y0=this.y1,this.x0=this.x1,this.x1=n,this.y1=A;break;case"center":break;default:var r=.01*parseFloat(t,10);if(isNaN(r))break;0===e?(this.y0=r,this.y1=1-this.y0):(this.x0=r,this.x1=1-this.x0)}}),this):(this.y0=0,this.y1=1),this.colorStops=t.args.slice(e?1:0).map((function(t){var e=t.match(n.REGEXP_COLORSTOP),A=+e[2],i=0===A?"%":e[3];return{color:new r(e[1]),stop:"%"===i?A/100:null}})),null===this.colorStops[0].stop&&(this.colorStops[0].stop=0),null===this.colorStops[this.colorStops.length-1].stop&&(this.colorStops[this.colorStops.length-1].stop=1),this.colorStops.forEach((function(t,e){null===t.stop&&this.colorStops.slice(e).some((function(A,n){return null!==A.stop&&(t.stop=(A.stop-this.colorStops[e-1].stop)/(n+1)+this.colorStops[e-1].stop,!0)}),this)}),this)}i.prototype=Object.create(n.prototype),i.REGEXP_DIRECTION=/^\s*(?:to|left|right|top|bottom|center|\d{1,3}(?:\.\d+)?%?)(?:\s|$)/i,e.exports=i},{"./color":3,"./gradientcontainer":9}],13:[function(t,e,A){var n=function(){n.options.logging&&window.console&&window.console.log&&Function.prototype.bind.call(window.console.log,window.console).apply(window.console,[Date.now()-n.options.start+"ms","html2canvas:"].concat([].slice.call(arguments,0)))};n.options={logging:!1},e.exports=n},{}],14:[function(t,e,A){var n=t("./color"),r=t("./utils"),i=r.getBounds,o=r.parseBackgrounds,a=r.offsetBounds;function s(t,e){this.node=t,this.parent=e,this.stack=null,this.bounds=null,this.borders=null,this.clip=[],this.backgroundClip=[],this.offsetBounds=null,this.visible=null,this.computedStyles=null,this.colors={},this.styles={},this.backgroundImages=null,this.transformData=null,this.transformMatrix=null,this.isPseudoElement=!1,this.opacity=null}function l(t){return-1!==t.toString().indexOf("%")}function c(t){return t.replace("px","")}function u(t){return parseFloat(t)}s.prototype.cloneTo=function(t){t.visible=this.visible,t.borders=this.borders,t.bounds=this.bounds,t.clip=this.clip,t.backgroundClip=this.backgroundClip,t.computedStyles=this.computedStyles,t.styles=this.styles,t.backgroundImages=this.backgroundImages,t.opacity=this.opacity},s.prototype.getOpacity=function(){return null===this.opacity?this.opacity=this.cssFloat("opacity"):this.opacity},s.prototype.assignStack=function(t){(this.stack=t).children.push(this)},s.prototype.isElementVisible=function(){return this.node.nodeType===Node.TEXT_NODE?this.parent.visible:"none"!==this.css("display")&&"hidden"!==this.css("visibility")&&!this.node.hasAttribute("data-html2canvas-ignore")&&("INPUT"!==this.node.nodeName||"hidden"!==this.node.getAttribute("type"))},s.prototype.css=function(t){return this.computedStyles||(this.computedStyles=this.isPseudoElement?this.parent.computedStyle(this.before?":before":":after"):this.computedStyle(null)),this.styles[t]||(this.styles[t]=this.computedStyles[t])},s.prototype.prefixedCss=function(t){var e=this.css(t);return void 0===e&&["webkit","moz","ms","o"].some((function(A){return void 0!==(e=this.css(A+t.substr(0,1).toUpperCase()+t.substr(1)))}),this),void 0===e?null:e},s.prototype.computedStyle=function(t){return this.node.ownerDocument.defaultView.getComputedStyle(this.node,t)},s.prototype.cssInt=function(t){var e=parseInt(this.css(t),10);return isNaN(e)?0:e},s.prototype.color=function(t){return this.colors[t]||(this.colors[t]=new n(this.css(t)))},s.prototype.cssFloat=function(t){var e=parseFloat(this.css(t));return isNaN(e)?0:e},s.prototype.fontWeight=function(){var t=this.css("fontWeight");switch(parseInt(t,10)){case 401:t="bold";break;case 400:t="normal"}return t},s.prototype.parseClip=function(){var t=this.css("clip").match(this.CLIP);return t?{top:parseInt(t[1],10),right:parseInt(t[2],10),bottom:parseInt(t[3],10),left:parseInt(t[4],10)}:null},s.prototype.parseBackgroundImages=function(){return this.backgroundImages||(this.backgroundImages=o(this.css("backgroundImage")))},s.prototype.cssList=function(t,e){var A=(this.css(t)||"").split(",");return 1===(A=(A=A[e||0]||A[0]||"auto").trim().split(" ")).length&&(A=[A[0],l(A[0])?"auto":A[0]]),A},s.prototype.parseBackgroundSize=function(t,e,A){var n,r,i=this.cssList("backgroundSize",A);if(l(i[0]))n=t.width*parseFloat(i[0])/100;else{if(/contain|cover/.test(i[0])){var o=t.width/t.height,a=e.width/e.height;return o<a^"contain"===i[0]?{width:t.height*a,height:t.height}:{width:t.width,height:t.width/a}}n=parseInt(i[0],10)}return r="auto"===i[0]&&"auto"===i[1]?e.height:"auto"===i[1]?n/e.width*e.height:l(i[1])?t.height*parseFloat(i[1])/100:parseInt(i[1],10),"auto"===i[0]&&(n=r/e.height*e.width),{width:n,height:r}},s.prototype.parseBackgroundPosition=function(t,e,A,n){var r,i,o=this.cssList("backgroundPosition",A);return r=l(o[0])?(t.width-(n||e).width)*(parseFloat(o[0])/100):parseInt(o[0],10),i="auto"===o[1]?r/e.width*e.height:l(o[1])?(t.height-(n||e).height)*parseFloat(o[1])/100:parseInt(o[1],10),"auto"===o[0]&&(r=i/e.height*e.width),{left:r,top:i}},s.prototype.parseBackgroundRepeat=function(t){return this.cssList("backgroundRepeat",t)[0]},s.prototype.parseTextShadows=function(){var t=this.css("textShadow"),e=[];if(t&&"none"!==t)for(var A=t.match(this.TEXT_SHADOW_PROPERTY),r=0;A&&r<A.length;r++){var i=A[r].match(this.TEXT_SHADOW_VALUES);e.push({color:new n(i[0]),offsetX:i[1]?parseFloat(i[1].replace("px","")):0,offsetY:i[2]?parseFloat(i[2].replace("px","")):0,blur:i[3]?i[3].replace("px",""):0})}return e},s.prototype.parseTransform=function(){if(!this.transformData)if(this.hasTransform()){var t=this.parseBounds(),e=this.prefixedCss("transformOrigin").split(" ").map(c).map(u);e[0]+=t.left,e[1]+=t.top,this.transformData={origin:e,matrix:this.parseTransformMatrix()}}else this.transformData={origin:[0,0],matrix:[1,0,0,1,0,0]};return this.transformData},s.prototype.parseTransformMatrix=function(){if(!this.transformMatrix){var t=this.prefixedCss("transform"),e=t?function(t){if(t&&"matrix"===t[1])return t[2].split(",").map((function(t){return parseFloat(t.trim())}));if(t&&"matrix3d"===t[1]){var e=t[2].split(",").map((function(t){return parseFloat(t.trim())}));return[e[0],e[1],e[4],e[5],e[12],e[13]]}}(t.match(this.MATRIX_PROPERTY)):null;this.transformMatrix=e||[1,0,0,1,0,0]}return this.transformMatrix},s.prototype.parseBounds=function(){return this.bounds||(this.bounds=this.hasTransform()?a(this.node):i(this.node))},s.prototype.hasTransform=function(){return"1,0,0,1,0,0"!==this.parseTransformMatrix().join(",")||this.parent&&this.parent.hasTransform()},s.prototype.getValue=function(){var t,e,A=this.node.value||"";return"SELECT"===this.node.tagName?(t=this.node,A=(e=t.options[t.selectedIndex||0])&&e.text||""):"password"===this.node.type&&(A=Array(A.length+1).join("•")),0===A.length?this.node.placeholder||"":A},s.prototype.MATRIX_PROPERTY=/(matrix|matrix3d)\((.+)\)/,s.prototype.TEXT_SHADOW_PROPERTY=/((rgba|rgb)\([^\)]+\)(\s-?\d+px){0,})/g,s.prototype.TEXT_SHADOW_VALUES=/(-?\d+px)|(#.+)|(rgb\(.+\))|(rgba\(.+\))/g,s.prototype.CLIP=/^rect\((\d+)px,? (\d+)px,? (\d+)px,? (\d+)px\)$/,e.exports=s},{"./color":3,"./utils":26}],15:[function(t,e,A){var n=t("./log"),r=t("punycode"),i=t("./nodecontainer"),o=t("./textcontainer"),a=t("./pseudoelementcontainer"),s=t("./fontmetrics"),l=t("./color"),c=t("./stackingcontext"),u=t("./utils"),h=u.bind,d=u.getBounds,g=u.parseBackgrounds,f=u.offsetBounds;function p(t,e,A,r,o){n("Starting NodeParser"),this.renderer=e,this.options=o,this.range=null,this.support=A,this.renderQueue=[],this.stack=new c(!0,1,t.ownerDocument,null);var a=new i(t,null);if(o.background&&e.rectangle(0,0,e.width,e.height,new l(o.background)),t===t.ownerDocument.documentElement){var u=new i(a.color("backgroundColor").isTransparent()?t.ownerDocument.body:t.ownerDocument.documentElement,null);e.rectangle(0,0,e.width,e.height,u.color("backgroundColor"))}a.visibile=a.isElementVisible(),this.createPseudoHideStyles(t.ownerDocument),this.disableAnimations(t.ownerDocument),this.nodes=K([a].concat(this.getChildren(a)).filter((function(t){return t.visible=t.isElementVisible()})).map(this.getPseudoElements,this)),this.fontMetrics=new s,n("Fetched nodes, total:",this.nodes.length),n("Calculate overflow clips"),this.calculateOverflowClips(),n("Start fetching images"),this.images=r.fetch(this.nodes.filter(O)),this.ready=this.images.ready.then(h((function(){return n("Images loaded, starting parsing"),n("Creating stacking contexts"),this.createStackingContexts(),n("Sorting stacking contexts"),this.sortStackingContexts(this.stack),this.parse(this.stack),n("Render queue created with "+this.renderQueue.length+" items"),new Promise(h((function(t){o.async?"function"==typeof o.async?o.async.call(this,this.renderQueue,t):0<this.renderQueue.length?(this.renderIndex=0,this.asyncRenderer(this.renderQueue,t)):t():(this.renderQueue.forEach(this.paint,this),t())}),this))}),this))}function m(t){return t.parent&&t.parent.clip.length}function w(){}p.prototype.calculateOverflowClips=function(){this.nodes.forEach((function(t){if(O(t)){T(t)&&t.appendToDOM(),t.borders=this.parseBorders(t);var e="hidden"===t.css("overflow")?[t.borders.clip]:[],A=t.parseClip();A&&-1!==["absolute","fixed"].indexOf(t.css("position"))&&e.push([["rect",t.bounds.left+A.left,t.bounds.top+A.top,A.right-A.left,A.bottom-A.top]]),t.clip=m(t)?t.parent.clip.concat(e):e,t.backgroundClip="hidden"!==t.css("overflow")?t.clip.concat([t.borders.clip]):t.clip,T(t)&&t.cleanDOM()}else P(t)&&(t.clip=m(t)?t.parent.clip:[]);T(t)||(t.bounds=null)}),this)},p.prototype.asyncRenderer=function(t,e,A){A=A||Date.now(),this.paint(t[this.renderIndex++]),t.length===this.renderIndex?e():A+20>Date.now()?this.asyncRenderer(t,e,A):setTimeout(h((function(){this.asyncRenderer(t,e)}),this),0)},p.prototype.createPseudoHideStyles=function(t){this.createStyles(t,"."+a.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+':before { content: "" !important; display: none !important; }.'+a.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER+':after { content: "" !important; display: none !important; }')},p.prototype.disableAnimations=function(t){this.createStyles(t,"* { -webkit-animation: none !important; -moz-animation: none !important; -o-animation: none !important; animation: none !important; -webkit-transition: none !important; -moz-transition: none !important; -o-transition: none !important; transition: none !important;}")},p.prototype.createStyles=function(t,e){var A=t.createElement("style");A.innerHTML=e,t.body.appendChild(A)},p.prototype.getPseudoElements=function(t){var e=[[t]];if(t.node.nodeType===Node.ELEMENT_NODE){var A=this.getPseudoElement(t,":before"),n=this.getPseudoElement(t,":after");A&&e.push(A),n&&e.push(n)}return K(e)},p.prototype.getPseudoElement=function(t,e){var A=t.computedStyle(e);if(!A||!A.content||"none"===A.content||"-moz-alt-content"===A.content||"none"===A.display)return null;for(var n,r,i=(n=A.content,(r=n.substr(0,1))===n.substr(n.length-1)&&r.match(/'|"/)?n.substr(1,n.length-2):n),s="url"===i.substr(0,3),l=document.createElement(s?"img":"html2canvaspseudoelement"),c=new a(l,t,e),u=A.length-1;0<=u;u--){var h=A.item(u).replace(/(\-[a-z])/g,(function(t){return t.toUpperCase().replace("-","")}));l.style[h]=A[h]}if(l.className=a.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+" "+a.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER,s)return l.src=g(i)[0].args[0],[c];var d=document.createTextNode(i);return l.appendChild(d),[c,new o(d,c)]},p.prototype.getChildren=function(t){return K([].filter.call(t.node.childNodes,S).map((function(e){var A=[e.nodeType===Node.TEXT_NODE?new o(e,t):new i(e,t)].filter(N);return e.nodeType===Node.ELEMENT_NODE&&A.length&&"TEXTAREA"!==e.tagName?A[0].isElementVisible()?A.concat(this.getChildren(A[0])):[]:A}),this))},p.prototype.newStackingContext=function(t,e){var A=new c(e,t.getOpacity(),t.node,t.parent);t.cloneTo(A),(e?A.getParentStack(this):A.parent.stack).contexts.push(A),t.stack=A},p.prototype.createStackingContexts=function(){this.nodes.forEach((function(t){var e,A;O(t)&&(this.isRootElement(t)||t.getOpacity()<1||(A=(e=t).css("position"),"auto"!==(-1!==["absolute","relative","fixed"].indexOf(A)?e.css("zIndex"):"auto"))||this.isBodyWithTransparentRoot(t)||t.hasTransform())?this.newStackingContext(t,!0):O(t)&&(D(t)&&_(t)||-1!==["inline-block","inline-table"].indexOf(t.css("display"))||H(t))?this.newStackingContext(t,!1):t.assignStack(t.parent.stack)}),this)},p.prototype.isBodyWithTransparentRoot=function(t){return"BODY"===t.node.nodeName&&t.parent.color("backgroundColor").isTransparent()},p.prototype.isRootElement=function(t){return null===t.parent},p.prototype.sortStackingContexts=function(t){var e;t.contexts.sort((e=t.contexts.slice(0),function(t,A){return t.cssInt("zIndex")+e.indexOf(t)/e.length-(A.cssInt("zIndex")+e.indexOf(A)/e.length)})),t.contexts.forEach(this.sortStackingContexts,this)},p.prototype.parseTextBounds=function(t){return function(e,A,n){if("none"!==t.parent.css("textDecoration").substr(0,4)||0!==e.trim().length){if(this.support.rangeBounds&&!t.parent.hasTransform()){var r=n.slice(0,A).join("").length;return this.getRangeBounds(t.node,r,e.length)}if(t.node&&"string"==typeof t.node.data){var i=t.node.splitText(e.length),o=this.getWrapperBounds(t.node,t.parent.hasTransform());return t.node=i,o}}else this.support.rangeBounds&&!t.parent.hasTransform()||(t.node=t.node.splitText(e.length));return{}}},p.prototype.getWrapperBounds=function(t,e){var A=t.ownerDocument.createElement("html2canvaswrapper"),n=t.parentNode,r=t.cloneNode(!0);A.appendChild(t.cloneNode(!0)),n.replaceChild(A,t);var i=e?f(A):d(A);return n.replaceChild(r,A),i},p.prototype.getRangeBounds=function(t,e,A){var n=this.range||(this.range=t.ownerDocument.createRange());return n.setStart(t,e),n.setEnd(t,e+A),n.getBoundingClientRect()},p.prototype.parse=function(t){var e=t.contexts.filter(Q),A=t.children.filter(O),n=A.filter(M(H)),r=n.filter(M(D)).filter(M(I)),i=A.filter(M(D)).filter(H),o=n.filter(M(D)).filter(I),a=t.contexts.concat(n.filter(D)).filter(_),s=t.children.filter(P).filter(k),l=t.contexts.filter(U);e.concat(r).concat(i).concat(o).concat(a).concat(s).concat(l).forEach((function(t){this.renderQueue.push(t),E(t)&&(this.parse(t),this.renderQueue.push(new w))}),this)},p.prototype.paint=function(t){try{t instanceof w?this.renderer.ctx.restore():P(t)?(T(t.parent)&&t.parent.appendToDOM(),this.paintText(t),T(t.parent)&&t.parent.cleanDOM()):this.paintNode(t)}catch(t){if(n(t),this.options.strict)throw t}},p.prototype.paintNode=function(t){E(t)&&(this.renderer.setOpacity(t.opacity),this.renderer.ctx.save(),t.hasTransform()&&this.renderer.setTransform(t.parseTransform())),"INPUT"===t.node.nodeName&&"checkbox"===t.node.type?this.paintCheckbox(t):"INPUT"===t.node.nodeName&&"radio"===t.node.type?this.paintRadio(t):this.paintElement(t)},p.prototype.paintElement=function(t){var e=t.parseBounds();this.renderer.clip(t.backgroundClip,(function(){this.renderer.renderBackground(t,e,t.borders.borders.map(R))}),this),this.renderer.clip(t.clip,(function(){this.renderer.renderBorders(t.borders.borders)}),this),this.renderer.clip(t.backgroundClip,(function(){switch(t.node.nodeName){case"svg":case"IFRAME":var A=this.images.get(t.node);A?this.renderer.renderImage(t,e,t.borders,A):n("Error loading <"+t.node.nodeName+">",t.node);break;case"IMG":var r=this.images.get(t.node.src);r?this.renderer.renderImage(t,e,t.borders,r):n("Error loading <img>",t.node.src);break;case"CANVAS":this.renderer.renderImage(t,e,t.borders,{image:t.node});break;case"SELECT":case"INPUT":case"TEXTAREA":this.paintFormValue(t)}}),this)},p.prototype.paintCheckbox=function(t){var e=t.parseBounds(),A=Math.min(e.width,e.height),n={width:A-1,height:A-1,top:e.top,left:e.left},r=[3,3],i=[r,r,r,r],o=[1,1,1,1].map((function(t){return{color:new l("#A5A5A5"),width:t}})),a=b(n,i,o);this.renderer.clip(t.backgroundClip,(function(){this.renderer.rectangle(n.left+1,n.top+1,n.width-2,n.height-2,new l("#DEDEDE")),this.renderer.renderBorders(v(o,n,a,i)),t.node.checked&&(this.renderer.font(new l("#424242"),"normal","normal","bold",A-3+"px","arial"),this.renderer.text("✔",n.left+A/6,n.top+A-1))}),this)},p.prototype.paintRadio=function(t){var e=t.parseBounds(),A=Math.min(e.width,e.height)-2;this.renderer.clip(t.backgroundClip,(function(){this.renderer.circleStroke(e.left+1,e.top+1,A,new l("#DEDEDE"),1,new l("#A5A5A5")),t.node.checked&&this.renderer.circle(Math.ceil(e.left+A/4)+1,Math.ceil(e.top+A/4)+1,Math.floor(A/2),new l("#424242"))}),this)},p.prototype.paintFormValue=function(t){var e=t.getValue();if(0<e.length){var A=t.node.ownerDocument,r=A.createElement("html2canvaswrapper");["lineHeight","textAlign","fontFamily","fontWeight","fontSize","color","paddingLeft","paddingTop","paddingRight","paddingBottom","width","height","borderLeftStyle","borderTopStyle","borderLeftWidth","borderTopWidth","boxSizing","whiteSpace","wordWrap"].forEach((function(e){try{r.style[e]=t.css(e)}catch(e){n("html2canvas: Parse: Exception caught in renderFormValue: "+e.message)}}));var i=t.parseBounds();r.style.position="fixed",r.style.left=i.left+"px",r.style.top=i.top+"px",r.textContent=e,A.body.appendChild(r),this.paintText(new o(r.firstChild,t)),A.body.removeChild(r)}},p.prototype.paintText=function(t){t.applyTextTransform();var e,A=r.ucs2.decode(t.node.data),n=this.options.letterRendering&&!/^(normal|none|0px)$/.test(t.parent.css("letterSpacing"))||(e=t.node.data,/[^\u0000-\u00ff]/.test(e))?A.map((function(t){return r.ucs2.encode([t])})):function(t){for(var e,A,n=[],i=0,o=!1;t.length;)A=t[i],-1!==[32,13,10,9,45].indexOf(A)===o?((e=t.splice(0,i)).length&&n.push(r.ucs2.encode(e)),o=!o,i=0):i++,i>=t.length&&(e=t.splice(0,i)).length&&n.push(r.ucs2.encode(e));return n}(A),i=t.parent.fontWeight(),o=t.parent.css("fontSize"),a=t.parent.css("fontFamily"),s=t.parent.parseTextShadows();this.renderer.font(t.parent.color("color"),t.parent.css("fontStyle"),t.parent.css("fontVariant"),i,o,a),s.length?this.renderer.fontShadow(s[0].color,s[0].offsetX,s[0].offsetY,s[0].blur):this.renderer.clearShadow(),this.renderer.clip(t.parent.clip,(function(){n.map(this.parseTextBounds(t),this).forEach((function(e,A){e&&!1===/^\s*$/.test(n[A])&&(this.renderer.text(n[A],e.left,e.bottom),this.renderTextDecoration(t.parent,e,this.fontMetrics.getMetrics(a,o)))}),this)}),this)},p.prototype.renderTextDecoration=function(t,e,A){switch(t.css("textDecoration").split(" ")[0]){case"underline":this.renderer.rectangle(e.left,Math.round(e.top+A.baseline+A.lineWidth),e.width,1,t.color("color"));break;case"overline":this.renderer.rectangle(e.left,Math.round(e.top),e.width,1,t.color("color"));break;case"line-through":this.renderer.rectangle(e.left,Math.ceil(e.top+A.middle+A.lineWidth),e.width,1,t.color("color"))}};var B={inset:[["darken",.6],["darken",.1],["darken",.1],["darken",.6]]};function v(t,e,A,n){return t.map((function(r,i){if(0<r.width){var o=e.left,a=e.top,s=e.width,l=e.height-t[2].width;switch(i){case 0:l=t[0].width,r.args=x({c1:[o,a],c2:[o+s,a],c3:[o+s-t[1].width,a+l],c4:[o+t[3].width,a+l]},n[0],n[1],A.topLeftOuter,A.topLeftInner,A.topRightOuter,A.topRightInner);break;case 1:o=e.left+e.width-t[1].width,s=t[1].width,r.args=x({c1:[o+s,a],c2:[o+s,a+l+t[2].width],c3:[o,a+l],c4:[o,a+t[0].width]},n[1],n[2],A.topRightOuter,A.topRightInner,A.bottomRightOuter,A.bottomRightInner);break;case 2:a=a+e.height-t[2].width,l=t[2].width,r.args=x({c1:[o+s,a+l],c2:[o,a+l],c3:[o+t[3].width,a],c4:[o+s-t[3].width,a]},n[2],n[3],A.bottomRightOuter,A.bottomRightInner,A.bottomLeftOuter,A.bottomLeftInner);break;case 3:s=t[3].width,r.args=x({c1:[o,a+l+t[2].width],c2:[o,a],c3:[o+s,a+t[0].width],c4:[o+s,a+l]},n[3],n[0],A.bottomLeftOuter,A.bottomLeftInner,A.topLeftOuter,A.topLeftInner)}}return r}))}function y(t,e,A,n){var r=(Math.sqrt(2)-1)/3*4,i=A*r,o=n*r,a=t+A,s=e+n;return{topLeft:C({x:t,y:s},{x:t,y:s-o},{x:a-i,y:e},{x:a,y:e}),topRight:C({x:t,y:e},{x:t+i,y:e},{x:a,y:s-o},{x:a,y:s}),bottomRight:C({x:a,y:e},{x:a,y:e+o},{x:t+i,y:s},{x:t,y:s}),bottomLeft:C({x:a,y:s},{x:a-i,y:s},{x:t,y:e+o},{x:t,y:e})}}function b(t,e,A){var n=t.left,r=t.top,i=t.width,o=t.height,a=e[0][0]<i/2?e[0][0]:i/2,s=e[0][1]<o/2?e[0][1]:o/2,l=e[1][0]<i/2?e[1][0]:i/2,c=e[1][1]<o/2?e[1][1]:o/2,u=e[2][0]<i/2?e[2][0]:i/2,h=e[2][1]<o/2?e[2][1]:o/2,d=e[3][0]<i/2?e[3][0]:i/2,g=e[3][1]<o/2?e[3][1]:o/2,f=i-l,p=o-h,m=i-u,w=o-g;return{topLeftOuter:y(n,r,a,s).topLeft.subdivide(.5),topLeftInner:y(n+A[3].width,r+A[0].width,Math.max(0,a-A[3].width),Math.max(0,s-A[0].width)).topLeft.subdivide(.5),topRightOuter:y(n+f,r,l,c).topRight.subdivide(.5),topRightInner:y(n+Math.min(f,i+A[3].width),r+A[0].width,f>i+A[3].width?0:l-A[3].width,c-A[0].width).topRight.subdivide(.5),bottomRightOuter:y(n+m,r+p,u,h).bottomRight.subdivide(.5),bottomRightInner:y(n+Math.min(m,i-A[3].width),r+Math.min(p,o+A[0].width),Math.max(0,u-A[1].width),h-A[2].width).bottomRight.subdivide(.5),bottomLeftOuter:y(n,r+w,d,g).bottomLeft.subdivide(.5),bottomLeftInner:y(n+A[3].width,r+w,Math.max(0,d-A[3].width),g-A[2].width).bottomLeft.subdivide(.5)}}function C(t,e,A,n){var r=function(t,e,A){return{x:t.x+(e.x-t.x)*A,y:t.y+(e.y-t.y)*A}};return{start:t,startControl:e,endControl:A,end:n,subdivide:function(i){var o=r(t,e,i),a=r(e,A,i),s=r(A,n,i),l=r(o,a,i),c=r(a,s,i),u=r(l,c,i);return[C(t,o,l,u),C(u,c,s,n)]},curveTo:function(t){t.push(["bezierCurve",e.x,e.y,A.x,A.y,n.x,n.y])},curveToReversed:function(n){n.push(["bezierCurve",A.x,A.y,e.x,e.y,t.x,t.y])}}}function x(t,e,A,n,r,i,o){var a=[];return 0<e[0]||0<e[1]?(a.push(["line",n[1].start.x,n[1].start.y]),n[1].curveTo(a)):a.push(["line",t.c1[0],t.c1[1]]),0<A[0]||0<A[1]?(a.push(["line",i[0].start.x,i[0].start.y]),i[0].curveTo(a),a.push(["line",o[0].end.x,o[0].end.y]),o[0].curveToReversed(a)):(a.push(["line",t.c2[0],t.c2[1]]),a.push(["line",t.c3[0],t.c3[1]])),0<e[0]||0<e[1]?(a.push(["line",r[1].end.x,r[1].end.y]),r[1].curveToReversed(a)):a.push(["line",t.c4[0],t.c4[1]]),a}function F(t,e,A,n,r,i,o){0<e[0]||0<e[1]?(t.push(["line",n[0].start.x,n[0].start.y]),n[0].curveTo(t),n[1].curveTo(t)):t.push(["line",i,o]),(0<A[0]||0<A[1])&&t.push(["line",r[0].start.x,r[0].start.y])}function Q(t){return t.cssInt("zIndex")<0}function U(t){return 0<t.cssInt("zIndex")}function _(t){return 0===t.cssInt("zIndex")}function I(t){return-1!==["inline","inline-block","inline-table"].indexOf(t.css("display"))}function E(t){return t instanceof c}function k(t){return 0<t.node.data.trim().length}function S(t){return t.nodeType===Node.TEXT_NODE||t.nodeType===Node.ELEMENT_NODE}function D(t){return"static"!==t.css("position")}function H(t){return"none"!==t.css("float")}function M(t){var e=this;return function(){return!t.apply(e,arguments)}}function O(t){return t.node.nodeType===Node.ELEMENT_NODE}function T(t){return!0===t.isPseudoElement}function P(t){return t.node.nodeType===Node.TEXT_NODE}function L(t){return parseInt(t,10)}function R(t){return t.width}function N(t){return t.node.nodeType!==Node.ELEMENT_NODE||-1===["SCRIPT","HEAD","TITLE","OBJECT","BR","OPTION"].indexOf(t.node.nodeName)}function K(t){return[].concat.apply([],t)}p.prototype.parseBorders=function(t){var e,A=t.parseBounds(),n=(e=t,["TopLeft","TopRight","BottomRight","BottomLeft"].map((function(t){var A=e.css("border"+t+"Radius"),n=A.split(" ");return n.length<=1&&(n[1]=n[0]),n.map(L)}))),r=["Top","Right","Bottom","Left"].map((function(e,A){var n=t.css("border"+e+"Style"),r=t.color("border"+e+"Color");"inset"===n&&r.isBlack()&&(r=new l([255,255,255,r.a]));var i=B[n]?B[n][A]:null;return{width:t.cssInt("border"+e+"Width"),color:i?r[i[0]](i[1]):r,args:null}})),i=b(A,n,r);return{clip:this.parseBackgroundClip(t,i,r,n,A),borders:v(r,A,i,n)}},p.prototype.parseBackgroundClip=function(t,e,A,n,r){var i=[];switch(t.css("backgroundClip")){case"content-box":case"padding-box":F(i,n[0],n[1],e.topLeftInner,e.topRightInner,r.left+A[3].width,r.top+A[0].width),F(i,n[1],n[2],e.topRightInner,e.bottomRightInner,r.left+r.width-A[1].width,r.top+A[0].width),F(i,n[2],n[3],e.bottomRightInner,e.bottomLeftInner,r.left+r.width-A[1].width,r.top+r.height-A[2].width),F(i,n[3],n[0],e.bottomLeftInner,e.topLeftInner,r.left+A[3].width,r.top+r.height-A[2].width);break;default:F(i,n[0],n[1],e.topLeftOuter,e.topRightOuter,r.left,r.top),F(i,n[1],n[2],e.topRightOuter,e.bottomRightOuter,r.left+r.width,r.top),F(i,n[2],n[3],e.bottomRightOuter,e.bottomLeftOuter,r.left+r.width,r.top+r.height),F(i,n[3],n[0],e.bottomLeftOuter,e.topLeftOuter,r.left,r.top+r.height)}return i},e.exports=p},{"./color":3,"./fontmetrics":7,"./log":13,"./nodecontainer":14,"./pseudoelementcontainer":18,"./stackingcontext":21,"./textcontainer":25,"./utils":26,punycode:1}],16:[function(t,e,A){var n=t("./xhr"),r=t("./utils"),i=t("./log"),o=t("./clone"),a=r.decode64;function s(t,e,A){var r="withCredentials"in new XMLHttpRequest;if(!e)return Promise.reject("No proxy configured");var i=u(r),o=h(e,t,i);return r?n(o):c(A,o,i).then((function(t){return a(t.content)}))}var l=0;function c(t,e,A){return new Promise((function(n,r){var i=t.createElement("script"),o=function(){delete window.html2canvas.proxy[A],t.body.removeChild(i)};window.html2canvas.proxy[A]=function(t){o(),n(t)},i.src=e,i.onerror=function(t){o(),r(t)},t.body.appendChild(i)}))}function u(t){return t?"":"html2canvas_"+Date.now()+"_"+ ++l+"_"+Math.round(1e5*Math.random())}function h(t,e,A){return t+"?url="+encodeURIComponent(e)+(A.length?"&callback=html2canvas.proxy."+A:"")}A.Proxy=s,A.ProxyURL=function(t,e,A){var n="crossOrigin"in new Image,r=u(n),i=h(e,t,r);return n?Promise.resolve(i):c(A,i,r).then((function(t){return"data:"+t.type+";base64,"+t.content}))},A.loadUrlDocument=function(t,e,A,n,r,a){return new s(t,e,window.document).then((l=t,function(t){var e,A=new DOMParser;try{e=A.parseFromString(t,"text/html")}catch(A){i("DOMParser not supported, falling back to createHTMLDocument"),e=document.implementation.createHTMLDocument("");try{e.open(),e.write(t),e.close()}catch(A){i("createHTMLDocument write not supported, falling back to document.body.innerHTML"),e.body.innerHTML=t}}var n=e.querySelector("base");if(!n||!n.href.host){var r=e.createElement("base");r.href=l,e.head.insertBefore(r,e.head.firstChild)}return e})).then((function(t){return o(t,A,n,r,a,0,0)}));var l}},{"./clone":2,"./log":13,"./utils":26,"./xhr":28}],17:[function(t,e,A){var n=t("./proxy").ProxyURL;e.exports=function(t,e){var A=document.createElement("a");A.href=t,t=A.href,this.src=t,this.image=new Image;var r=this;this.promise=new Promise((function(A,i){r.image.crossOrigin="Anonymous",r.image.onload=A,r.image.onerror=i,new n(t,e,document).then((function(t){r.image.src=t})).catch(i)}))}},{"./proxy":16}],18:[function(t,e,A){var n=t("./nodecontainer");function r(t,e,A){n.call(this,t,e),this.isPseudoElement=!0,this.before=":before"===A}r.prototype.cloneTo=function(t){r.prototype.cloneTo.call(this,t),t.isPseudoElement=!0,t.before=this.before},(r.prototype=Object.create(n.prototype)).appendToDOM=function(){this.before?this.parent.node.insertBefore(this.node,this.parent.node.firstChild):this.parent.node.appendChild(this.node),this.parent.node.className+=" "+this.getHideClass()},r.prototype.cleanDOM=function(){this.node.parentNode.removeChild(this.node),this.parent.node.className=this.parent.node.className.replace(this.getHideClass(),"")},r.prototype.getHideClass=function(){return this["PSEUDO_HIDE_ELEMENT_CLASS_"+(this.before?"BEFORE":"AFTER")]},r.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE="___html2canvas___pseudoelement_before",r.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER="___html2canvas___pseudoelement_after",e.exports=r},{"./nodecontainer":14}],19:[function(t,e,A){var n=t("./log");function r(t,e,A,n,r){this.width=t,this.height=e,this.images=A,this.options=n,this.document=r}r.prototype.renderImage=function(t,e,A,n){var r=t.cssInt("paddingLeft"),i=t.cssInt("paddingTop"),o=t.cssInt("paddingRight"),a=t.cssInt("paddingBottom"),s=A.borders,l=e.width-(s[1].width+s[3].width+r+o),c=e.height-(s[0].width+s[2].width+i+a);this.drawImage(n,0,0,n.image.width||l,n.image.height||c,e.left+r+s[3].width,e.top+i+s[0].width,l,c)},r.prototype.renderBackground=function(t,e,A){0<e.height&&0<e.width&&(this.renderBackgroundColor(t,e),this.renderBackgroundImage(t,e,A))},r.prototype.renderBackgroundColor=function(t,e){var A=t.color("backgroundColor");A.isTransparent()||this.rectangle(e.left,e.top,e.width,e.height,A)},r.prototype.renderBorders=function(t){t.forEach(this.renderBorder,this)},r.prototype.renderBorder=function(t){t.color.isTransparent()||null===t.args||this.drawShape(t.args,t.color)},r.prototype.renderBackgroundImage=function(t,e,A){t.parseBackgroundImages().reverse().forEach((function(r,i,o){switch(r.method){case"url":var a=this.images.get(r.args[0]);a?this.renderBackgroundRepeating(t,e,a,o.length-(i+1),A):n("Error loading background-image",r.args[0]);break;case"linear-gradient":case"gradient":var s=this.images.get(r.value);s?this.renderBackgroundGradient(s,e,A):n("Error loading background-image",r.args[0]);break;case"none":break;default:n("Unknown background-image type",r.args[0])}}),this)},r.prototype.renderBackgroundRepeating=function(t,e,A,n,r){var i=t.parseBackgroundSize(e,A.image,n),o=t.parseBackgroundPosition(e,A.image,n,i);switch(t.parseBackgroundRepeat(n)){case"repeat-x":case"repeat no-repeat":this.backgroundRepeatShape(A,o,i,e,e.left+r[3],e.top+o.top+r[0],99999,i.height,r);break;case"repeat-y":case"no-repeat repeat":this.backgroundRepeatShape(A,o,i,e,e.left+o.left+r[3],e.top+r[0],i.width,99999,r);break;case"no-repeat":this.backgroundRepeatShape(A,o,i,e,e.left+o.left+r[3],e.top+o.top+r[0],i.width,i.height,r);break;default:this.renderBackgroundRepeat(A,o,i,{top:e.top,left:e.left},r[3],r[0])}},e.exports=r},{"./log":13}],20:[function(t,e,A){var n=t("../renderer"),r=t("../lineargradientcontainer"),i=t("../log");function o(t,e){n.apply(this,arguments),this.canvas=this.options.canvas||this.document.createElement("canvas"),this.options.canvas||(this.canvas.width=t,this.canvas.height=e),this.ctx=this.canvas.getContext("2d"),this.taintCtx=this.document.createElement("canvas").getContext("2d"),this.ctx.textBaseline="bottom",this.variables={},i("Initialized CanvasRenderer with size",t,"x",e)}function a(t){return 0<t.length}(o.prototype=Object.create(n.prototype)).setFillStyle=function(t){return this.ctx.fillStyle="object"==typeof t&&t.isColor?t.toString():t,this.ctx},o.prototype.rectangle=function(t,e,A,n,r){this.setFillStyle(r).fillRect(t,e,A,n)},o.prototype.circle=function(t,e,A,n){this.setFillStyle(n),this.ctx.beginPath(),this.ctx.arc(t+A/2,e+A/2,A/2,0,2*Math.PI,!0),this.ctx.closePath(),this.ctx.fill()},o.prototype.circleStroke=function(t,e,A,n,r,i){this.circle(t,e,A,n),this.ctx.strokeStyle=i.toString(),this.ctx.stroke()},o.prototype.drawShape=function(t,e){this.shape(t),this.setFillStyle(e).fill()},o.prototype.taints=function(e){if(null===e.tainted){this.taintCtx.drawImage(e.image,0,0);try{this.taintCtx.getImageData(0,0,1,1),e.tainted=!1}catch(t){this.taintCtx=document.createElement("canvas").getContext("2d"),e.tainted=!0}}return e.tainted},o.prototype.drawImage=function(t,e,A,n,r,i,o,a,s){this.taints(t)&&!this.options.allowTaint||this.ctx.drawImage(t.image,e,A,n,r,i,o,a,s)},o.prototype.clip=function(t,e,A){this.ctx.save(),t.filter(a).forEach((function(t){this.shape(t).clip()}),this),e.call(A),this.ctx.restore()},o.prototype.shape=function(t){return this.ctx.beginPath(),t.forEach((function(t,e){"rect"===t[0]?this.ctx.rect.apply(this.ctx,t.slice(1)):this.ctx[0===e?"moveTo":t[0]+"To"].apply(this.ctx,t.slice(1))}),this),this.ctx.closePath(),this.ctx},o.prototype.font=function(t,e,A,n,r,i){this.setFillStyle(t).font=[e,A,n,r,i].join(" ").split(",")[0]},o.prototype.fontShadow=function(t,e,A,n){this.setVariable("shadowColor",t.toString()).setVariable("shadowOffsetY",e).setVariable("shadowOffsetX",A).setVariable("shadowBlur",n)},o.prototype.clearShadow=function(){this.setVariable("shadowColor","rgba(0,0,0,0)")},o.prototype.setOpacity=function(t){this.ctx.globalAlpha=t},o.prototype.setTransform=function(t){this.ctx.translate(t.origin[0],t.origin[1]),this.ctx.transform.apply(this.ctx,t.matrix),this.ctx.translate(-t.origin[0],-t.origin[1])},o.prototype.setVariable=function(t,e){return this.variables[t]!==e&&(this.variables[t]=this.ctx[t]=e),this},o.prototype.text=function(t,e,A){this.ctx.fillText(t,e,A)},o.prototype.backgroundRepeatShape=function(t,e,A,n,r,i,o,a,s){var l=[["line",Math.round(r),Math.round(i)],["line",Math.round(r+o),Math.round(i)],["line",Math.round(r+o),Math.round(a+i)],["line",Math.round(r),Math.round(a+i)]];this.clip([l],(function(){this.renderBackgroundRepeat(t,e,A,n,s[3],s[0])}),this)},o.prototype.renderBackgroundRepeat=function(t,e,A,n,r,i){var o=Math.round(n.left+e.left+r),a=Math.round(n.top+e.top+i);this.setFillStyle(this.ctx.createPattern(this.resizeImage(t,A),"repeat")),this.ctx.translate(o,a),this.ctx.fill(),this.ctx.translate(-o,-a)},o.prototype.renderBackgroundGradient=function(t,e){if(t instanceof r){var A=this.ctx.createLinearGradient(e.left+e.width*t.x0,e.top+e.height*t.y0,e.left+e.width*t.x1,e.top+e.height*t.y1);t.colorStops.forEach((function(t){A.addColorStop(t.stop,t.color.toString())})),this.rectangle(e.left,e.top,e.width,e.height,A)}},o.prototype.resizeImage=function(t,e){var A=t.image;if(A.width===e.width&&A.height===e.height)return A;var n=document.createElement("canvas");return n.width=e.width,n.height=e.height,n.getContext("2d").drawImage(A,0,0,A.width,A.height,0,0,e.width,e.height),n},e.exports=o},{"../lineargradientcontainer":12,"../log":13,"../renderer":19}],21:[function(t,e,A){var n=t("./nodecontainer");function r(t,e,A,r){n.call(this,A,r),this.ownStacking=t,this.contexts=[],this.children=[],this.opacity=(this.parent?this.parent.stack.opacity:1)*e}(r.prototype=Object.create(n.prototype)).getParentStack=function(t){var e=this.parent?this.parent.stack:null;return e?e.ownStacking?e:e.getParentStack(t):t.stack},e.exports=r},{"./nodecontainer":14}],22:[function(t,e,A){function n(t){this.rangeBounds=this.testRangeBounds(t),this.cors=this.testCORS(),this.svg=this.testSVG()}n.prototype.testRangeBounds=function(t){var e,A,n=!1;return t.createRange&&(e=t.createRange()).getBoundingClientRect&&((A=t.createElement("boundtest")).style.height="123px",A.style.display="block",t.body.appendChild(A),e.selectNode(A),123===e.getBoundingClientRect().height&&(n=!0),t.body.removeChild(A)),n},n.prototype.testCORS=function(){return void 0!==(new Image).crossOrigin},n.prototype.testSVG=function(){var t=new Image,e=document.createElement("canvas"),A=e.getContext("2d");t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{A.drawImage(t,0,0),e.toDataURL()}catch(t){return!1}return!0},e.exports=n},{}],23:[function(t,e,A){var n=t("./xhr"),r=t("./utils").decode64;function i(t){this.src=t,this.image=null;var e=this;this.promise=this.hasFabric().then((function(){return e.isInline(t)?Promise.resolve(e.inlineFormatting(t)):n(t)})).then((function(t){return new Promise((function(A){window.html2canvas.svg.fabric.loadSVGFromString(t,e.createCanvas.call(e,A))}))}))}i.prototype.hasFabric=function(){return window.html2canvas.svg&&window.html2canvas.svg.fabric?Promise.resolve():Promise.reject(new Error("html2canvas.svg.js is not loaded, cannot render svg"))},i.prototype.inlineFormatting=function(t){return/^data:image\/svg\+xml;base64,/.test(t)?this.decode64(this.removeContentType(t)):this.removeContentType(t)},i.prototype.removeContentType=function(t){return t.replace(/^data:image\/svg\+xml(;base64)?,/,"")},i.prototype.isInline=function(t){return/^data:image\/svg\+xml/i.test(t)},i.prototype.createCanvas=function(t){var e=this;return function(A,n){var r=new window.html2canvas.svg.fabric.StaticCanvas("c");e.image=r.lowerCanvasEl,r.setWidth(n.width).setHeight(n.height).add(window.html2canvas.svg.fabric.util.groupSVGElements(A,n)).renderAll(),t(r.lowerCanvasEl)}},i.prototype.decode64=function(t){return"function"==typeof window.atob?window.atob(t):r(t)},e.exports=i},{"./utils":26,"./xhr":28}],24:[function(t,e,A){var n=t("./svgcontainer");function r(t,e){this.src=t,this.image=null;var A=this;this.promise=e?new Promise((function(e,n){A.image=new Image,A.image.onload=e,A.image.onerror=n,A.image.src="data:image/svg+xml,"+(new XMLSerializer).serializeToString(t),!0===A.image.complete&&e(A.image)})):this.hasFabric().then((function(){return new Promise((function(e){window.html2canvas.svg.fabric.parseSVGDocument(t,A.createCanvas.call(A,e))}))}))}r.prototype=Object.create(n.prototype),e.exports=r},{"./svgcontainer":23}],25:[function(t,e,A){var n=t("./nodecontainer");function r(t,e){n.call(this,t,e)}function i(t,e,A){if(0<t.length)return e+A.toUpperCase()}(r.prototype=Object.create(n.prototype)).applyTextTransform=function(){this.node.data=this.transform(this.parent.css("textTransform"))},r.prototype.transform=function(t){var e=this.node.data;switch(t){case"lowercase":return e.toLowerCase();case"capitalize":return e.replace(/(^|\s|:|-|\(|\))([a-z])/g,i);case"uppercase":return e.toUpperCase();default:return e}},e.exports=r},{"./nodecontainer":14}],26:[function(t,e,A){A.smallImage=function(){return"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},A.bind=function(t,e){return function(){return t.apply(e,arguments)}},A.decode64=function(t){var e,A,n,r,i,o,a,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=t.length,c="";for(e=0;e<l;e+=4)i=s.indexOf(t[e])<<2|(A=s.indexOf(t[e+1]))>>4,o=(15&A)<<4|(n=s.indexOf(t[e+2]))>>2,a=(3&n)<<6|(r=s.indexOf(t[e+3])),c+=64===n?String.fromCharCode(i):64===r||-1===r?String.fromCharCode(i,o):String.fromCharCode(i,o,a);return c},A.getBounds=function(t){if(t.getBoundingClientRect){var e=t.getBoundingClientRect(),A=null==t.offsetWidth?e.width:t.offsetWidth;return{top:e.top,bottom:e.bottom||e.top+e.height,right:e.left+A,left:e.left,width:A,height:null==t.offsetHeight?e.height:t.offsetHeight}}return{}},A.offsetBounds=function(t){var e=t.offsetParent?A.offsetBounds(t.offsetParent):{top:0,left:0};return{top:t.offsetTop+e.top,bottom:t.offsetTop+t.offsetHeight+e.top,right:t.offsetLeft+e.left+t.offsetWidth,left:t.offsetLeft+e.left,width:t.offsetWidth,height:t.offsetHeight}},A.parseBackgrounds=function(t){var e,A,n,r,i,o,a,s=[],l=0,c=0,u=function(){e&&('"'===A.substr(0,1)&&(A=A.substr(1,A.length-2)),A&&a.push(A),"-"===e.substr(0,1)&&0<(r=e.indexOf("-",1)+1)&&(n=e.substr(0,r),e=e.substr(r)),s.push({prefix:n,method:e.toLowerCase(),value:i,args:a,image:null})),a=[],e=n=A=i=""};return a=[],e=n=A=i="",t.split("").forEach((function(t){if(!(0===l&&-1<" \r\n\t".indexOf(t))){switch(t){case'"':o?o===t&&(o=null):o=t;break;case"(":if(o)break;if(0===l)return l=1,void(i+=t);c++;break;case")":if(o)break;if(1===l){if(0===c)return l=0,i+=t,void u();c--}break;case",":if(o)break;if(0===l)return void u();if(1===l&&0===c&&!e.match(/^url$/i))return a.push(A),A="",void(i+=t)}i+=t,0===l?e+=t:A+=t}})),u(),s}},{}],27:[function(t,e,A){var n=t("./gradientcontainer");function r(t){n.apply(this,arguments),this.type="linear"===t.args[0]?n.TYPES.LINEAR:n.TYPES.RADIAL}r.prototype=Object.create(n.prototype),e.exports=r},{"./gradientcontainer":9}],28:[function(t,e,A){e.exports=function(t){return new Promise((function(e,A){var n=new XMLHttpRequest;n.open("GET",t),n.onload=function(){200===n.status?e(n.responseText):A(new Error(n.statusText))},n.onerror=function(){A(new Error("Network Error"))},n.send()}))}},{}]},{},[4])(4)})),function(t){var e="+".charCodeAt(0),A="/".charCodeAt(0),n="0".charCodeAt(0),r="a".charCodeAt(0),i="A".charCodeAt(0),o="-".charCodeAt(0),a="_".charCodeAt(0),s=function(t){var s=t.charCodeAt(0);return s===e||s===o?62:s===A||s===a?63:s<n?-1:s<n+10?s-n+26+26:s<i+26?s-i:s<r+26?s-r+26:void 0};t.API.TTFFont=function(){function t(t,e,A){var n;if(this.rawData=t,n=this.contents=new c(t),this.contents.pos=4,"ttcf"===n.readString(4)){if(!e)throw new Error("Must specify a font name for TTC files.");throw new Error("Font "+e+" not found in TTC file.")}n.pos=0,this.parse(),this.subset=new I(this),this.registerTTF()}return t.open=function(e,A,n,r){return new t(function(t){var e,A,n,r,i,o;if(0<t.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var a=t.length;i="="===t.charAt(a-2)?2:"="===t.charAt(a-1)?1:0,o=new Uint8Array(3*t.length/4-i),n=0<i?t.length-4:t.length;var l=0;function c(t){o[l++]=t}for(A=e=0;e<n;e+=4,A+=3)c((16711680&(r=s(t.charAt(e))<<18|s(t.charAt(e+1))<<12|s(t.charAt(e+2))<<6|s(t.charAt(e+3))))>>16),c((65280&r)>>8),c(255&r);return 2===i?c(255&(r=s(t.charAt(e))<<2|s(t.charAt(e+1))>>4)):1===i&&(c((r=s(t.charAt(e))<<10|s(t.charAt(e+1))<<4|s(t.charAt(e+2))>>2)>>8&255),c(255&r)),o}(n),A,r)},t.prototype.parse=function(){return this.directory=new u(this.contents),this.head=new g(this),this.name=new y(this),this.cmap=new p(this),this.hhea=new m(this),this.maxp=new b(this),this.hmtx=new C(this),this.post=new B(this),this.os2=new w(this),this.loca=new _(this),this.glyf=new F(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var t,e,A,n,r;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var e,A,n,r;for(r=[],e=0,A=(n=this.bbox).length;e<A;e++)t=n[e],r.push(Math.round(t*this.scaleFactor));return r}.call(this),this.stemV=0,this.post.exists?(A=255&(n=this.post.italic_angle),!0&(e=n>>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+A)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(r=this.familyClass)||2===r||3===r||4===r||5===r||7===r,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(t){var e;return(null!=(e=this.cmap.unicode)?e.codeMap[t]:void 0)||0},t.prototype.widthOfGlyph=function(t){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*e},t.prototype.widthOfString=function(t,e,A){var n,r,i,o,a;for(r=o=i=0,a=(t=""+t).length;0<=a?o<a:a<o;r=0<=a?++o:--o)n=t.charCodeAt(r),i+=this.widthOfGlyph(this.characterToGlyph(n))+A*(1e3/e)||0;return i*(e/1e3)},t.prototype.lineHeight=function(t,e){var A;return null==e&&(e=!1),A=e?this.lineGap:0,(this.ascender+A-this.decender)/1e3*t},t}();var l,c=function(){function t(t){this.data=null!=t?t:[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(t){return this.data[this.pos++]=t},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt32=function(){var t;return 2147483648<=(t=this.readUInt32())?t-4294967296:t},t.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt16=function(){var t;return 32768<=(t=this.readUInt16())?t-65536:t},t.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},t.prototype.readString=function(t){var e,A,n;for(A=[],e=n=0;0<=t?n<t:t<n;e=0<=t?++n:--n)A[e]=String.fromCharCode(this.readByte());return A.join("")},t.prototype.writeString=function(t){var e,A,n,r;for(r=[],e=A=0,n=t.length;0<=n?A<n:n<A;e=0<=n?++A:--A)r.push(this.writeByte(t.charCodeAt(e)));return r},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(t){return this.writeInt16(t)},t.prototype.readLongLong=function(){var t,e,A,n,r,i,o,a;return t=this.readByte(),e=this.readByte(),A=this.readByte(),n=this.readByte(),r=this.readByte(),i=this.readByte(),o=this.readByte(),a=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^A)+4294967296*(255^n)+16777216*(255^r)+65536*(255^i)+256*(255^o)+(255^a)+1):72057594037927940*t+281474976710656*e+1099511627776*A+4294967296*n+16777216*r+65536*i+256*o+a},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(t){return this.writeInt32(t)},t.prototype.read=function(t){var e,A;for(e=[],A=0;0<=t?A<t:t<A;0<=t?++A:--A)e.push(this.readByte());return e},t.prototype.write=function(t){var e,A,n,r;for(r=[],A=0,n=t.length;A<n;A++)e=t[A],r.push(this.writeByte(e));return r},t}(),u=function(){var t;function e(t){var e,A,n;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},A=0,n=this.tableCount;0<=n?A<n:n<A;0<=n?++A:--A)e={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[e.tag]=e}return e.prototype.encode=function(e){var A,n,r,i,o,a,s,l,u,h,d,g,f;for(f in d=Object.keys(e).length,a=Math.log(2),u=16*Math.floor(Math.log(d)/a),i=Math.floor(u/a),l=16*d-u,(n=new c).writeInt(this.scalarType),n.writeShort(d),n.writeShort(u),n.writeShort(i),n.writeShort(l),r=16*d,s=n.pos+r,o=null,g=[],e)for(h=e[f],n.writeString(f),n.writeInt(t(h)),n.writeInt(s),n.writeInt(h.length),g=g.concat(h),"head"===f&&(o=s),s+=h.length;s%4;)g.push(0),s++;return n.write(g),A=2981146554-t(n.data),n.pos=o+8,n.writeUInt32(A),n.data},t=function(t){var e,A,n,r;for(t=x.call(t);t.length%4;)t.push(0);for(A=new c(t),n=e=0,r=t.length;n<r;n+=4)e+=A.readUInt32();return 4294967295&e},e}(),h={}.hasOwnProperty,d=function(t,e){for(var A in e)h.call(e,A)&&(t[A]=e[A]);function n(){this.constructor=t}return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};l=function(){function t(t){var e;this.file=t,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}();var g=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,l),e.prototype.tag="head",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},e}(),f=function(){function t(t,e){var A,n,r,i,o,a,s,l,c,u,h,d,g,f,p,m,w,B;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),c=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(a=p=0;p<256;a=++p)this.codeMap[a]=t.readByte();break;case 4:for(h=t.readUInt16(),u=h/2,t.pos+=6,r=function(){var e,A;for(A=[],a=e=0;0<=u?e<u:u<e;a=0<=u?++e:--e)A.push(t.readUInt16());return A}(),t.pos+=2,g=function(){var e,A;for(A=[],a=e=0;0<=u?e<u:u<e;a=0<=u?++e:--e)A.push(t.readUInt16());return A}(),s=function(){var e,A;for(A=[],a=e=0;0<=u?e<u:u<e;a=0<=u?++e:--e)A.push(t.readUInt16());return A}(),l=function(){var e,A;for(A=[],a=e=0;0<=u?e<u:u<e;a=0<=u?++e:--e)A.push(t.readUInt16());return A}(),n=(this.length-t.pos+this.offset)/2,o=function(){var e,A;for(A=[],a=e=0;0<=n?e<n:n<e;a=0<=n?++e:--e)A.push(t.readUInt16());return A}(),a=m=0,B=r.length;m<B;a=++m)for(f=r[a],A=w=d=g[a];d<=f?w<=f:f<=w;A=d<=f?++w:--w)0===l[a]?i=A+s[a]:0!==(i=o[l[a]/2+(A-d)-(u-a)]||0)&&(i+=s[a]),this.codeMap[A]=65535&i}t.pos=c}return t.encode=function(t,e){var A,n,r,i,o,a,s,l,u,h,d,g,f,p,m,w,B,v,y,b,C,x,F,Q,U,_,I,E,k,S,D,H,M,O,T,P,L,R,N,K,j,V,G,q,W,Y;switch(E=new c,i=Object.keys(t).sort((function(t,e){return t-e})),e){case"macroman":for(f=0,p=function(){var t,e;for(e=[],g=t=0;t<256;g=++t)e.push(0);return e}(),w={0:0},r={},k=0,M=i.length;k<M;k++)null==w[G=t[n=i[k]]]&&(w[G]=++f),r[n]={old:t[n],new:w[t[n]]},p[n]=w[t[n]];return E.writeUInt16(1),E.writeUInt16(0),E.writeUInt32(12),E.writeUInt16(0),E.writeUInt16(262),E.writeUInt16(0),E.write(p),{charMap:r,subtable:E.data,maxGlyphID:f+1};case"unicode":for(_=[],u=[],w={},A={},m=s=null,S=B=0,O=i.length;S<O;S++)null==w[y=t[n=i[S]]]&&(w[y]=++B),A[n]={old:y,new:w[y]},o=w[y]-n,null!=m&&o===s||(m&&u.push(m),_.push(n),s=o),m=n;for(m&&u.push(m),u.push(65535),_.push(65535),Q=2*(F=_.length),x=2*Math.pow(Math.log(F)/Math.LN2,2),h=Math.log(x/2)/Math.LN2,C=2*F-x,a=[],b=[],d=[],g=D=0,T=_.length;D<T;g=++D){if(U=_[g],l=u[g],65535===U){a.push(0),b.push(0);break}if(32768<=U-(I=A[U].new))for(a.push(0),b.push(2*(d.length+F-g)),n=H=U;U<=l?H<=l:l<=H;n=U<=l?++H:--H)d.push(A[n].new);else a.push(I-U),b.push(0)}for(E.writeUInt16(3),E.writeUInt16(1),E.writeUInt32(12),E.writeUInt16(4),E.writeUInt16(16+8*F+2*d.length),E.writeUInt16(0),E.writeUInt16(Q),E.writeUInt16(x),E.writeUInt16(h),E.writeUInt16(C),j=0,P=u.length;j<P;j++)n=u[j],E.writeUInt16(n);for(E.writeUInt16(0),V=0,L=_.length;V<L;V++)n=_[V],E.writeUInt16(n);for(q=0,R=a.length;q<R;q++)o=a[q],E.writeUInt16(o);for(W=0,N=b.length;W<N;W++)v=b[W],E.writeUInt16(v);for(Y=0,K=d.length;Y<K;Y++)f=d[Y],E.writeUInt16(f);return{charMap:A,subtable:E.data,maxGlyphID:B+1}}},t}(),p=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,l),e.prototype.tag="cmap",e.prototype.parse=function(t){var e,A,n;for(t.pos=this.offset,this.version=t.readUInt16(),A=t.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=A?n<A:A<n;0<=A?++n:--n)e=new f(t,this.offset),this.tables.push(e),e.isUnicode&&null==this.unicode&&(this.unicode=e);return!0},e.encode=function(t,e){var A,n;return null==e&&(e="macroman"),A=f.encode(t,e),(n=new c).writeUInt16(0),n.writeUInt16(1),A.table=n.data.concat(A.subtable),A},e}(),m=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,l),e.prototype.tag="hhea",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},e}(),w=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,l),e.prototype.tag="OS/2",e.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var e,A;for(A=[],e=0;e<10;++e)A.push(t.readByte());return A}(),this.charRange=function(){var e,A;for(A=[],e=0;e<4;++e)A.push(t.readInt());return A}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),0<this.version&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var e,A;for(A=[],e=0;e<2;++e)A.push(t.readInt());return A}(),1<this.version))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e}(),B=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,l),e.prototype.tag="post",e.prototype.parse=function(t){var e,A,n,r;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:break;case 131072:for(A=t.readUInt16(),this.glyphNameIndex=[],n=0;0<=A?n<A:A<n;0<=A?++n:--n)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],r=[];t.pos<this.offset+this.length;)e=t.readByte(),r.push(this.names.push(t.readString(e)));return r;case 151552:return A=t.readUInt16(),this.offsets=t.read(A);case 196608:break;case 262144:return this.map=function(){var e,A,n;for(n=[],e=0,A=this.file.maxp.numGlyphs;0<=A?e<A:A<e;0<=A?++e:--e)n.push(t.readUInt32());return n}.call(this)}},e}(),v=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},y=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,l),e.prototype.tag="name",e.prototype.parse=function(t){var e,A,n,r,i,o,a,s,l,c,u,h;for(t.pos=this.offset,t.readShort(),e=t.readShort(),o=t.readShort(),A=[],r=l=0;0<=e?l<e:e<l;r=0<=e?++l:--l)A.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+o+t.readShort()});for(a={},r=c=0,u=A.length;c<u;r=++c)n=A[r],t.pos=n.offset,s=t.readString(n.length),i=new v(s,n),null==a[h=n.nameID]&&(a[h]=[]),a[n.nameID].push(i);return this.strings=a,this.copyright=a[0],this.fontFamily=a[1],this.fontSubfamily=a[2],this.uniqueSubfamily=a[3],this.fontName=a[4],this.version=a[5],this.postscriptName=a[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,""),this.trademark=a[7],this.manufacturer=a[8],this.designer=a[9],this.description=a[10],this.vendorUrl=a[11],this.designerUrl=a[12],this.license=a[13],this.licenseUrl=a[14],this.preferredFamily=a[15],this.preferredSubfamily=a[17],this.compatibleFull=a[18],this.sampleText=a[19]},e}(),b=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,l),e.prototype.tag="maxp",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},e}(),C=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,l),e.prototype.tag="hmtx",e.prototype.parse=function(t){var e,A,n,r,i,o,a;for(t.pos=this.offset,this.metrics=[],r=0,o=this.file.hhea.numberOfMetrics;0<=o?r<o:o<r;0<=o?++r:--r)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(A=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var e,n;for(n=[],e=0;0<=A?e<A:A<e;0<=A?++e:--e)n.push(t.readInt16());return n}(),this.widths=function(){var t,e,A,r;for(r=[],t=0,e=(A=this.metrics).length;t<e;t++)n=A[t],r.push(n.advance);return r}.call(this),e=this.widths[this.widths.length-1],a=[],i=0;0<=A?i<A:A<i;0<=A?++i:--i)a.push(this.widths.push(e));return a},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e}(),x=[].slice,F=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,l),e.prototype.tag="glyf",e.prototype.parse=function(t){return this.cache={}},e.prototype.glyphFor=function(t){var e,A,n,r,i,o,a,s,l,u;return(t=t)in this.cache?this.cache[t]:(r=this.file.loca,e=this.file.contents,A=r.indexOf(t),0===(n=r.lengthOf(t))?this.cache[t]=null:(e.pos=this.offset+A,i=(o=new c(e.read(n))).readShort(),s=o.readShort(),u=o.readShort(),a=o.readShort(),l=o.readShort(),this.cache[t]=-1===i?new U(o,s,u,a,l):new Q(o,i,s,u,a,l),this.cache[t]))},e.prototype.encode=function(t,e,A){var n,r,i,o,a;for(i=[],r=[],o=0,a=e.length;o<a;o++)n=t[e[o]],r.push(i.length),n&&(i=i.concat(n.encode(A)));return r.push(i.length),{table:i,offsets:r}},e}(),Q=function(){function t(t,e,A,n,r,i){this.raw=t,this.numberOfContours=e,this.xMin=A,this.yMin=n,this.xMax=r,this.yMax=i,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),U=function(){function t(t,e,A,n,r){var i,o;for(this.raw=t,this.xMin=e,this.yMin=A,this.xMax=n,this.yMax=r,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],i=this.raw;o=i.readShort(),this.glyphOffsets.push(i.pos),this.glyphIDs.push(i.readShort()),32&o;)i.pos+=1&o?4:2,128&o?i.pos+=8:64&o?i.pos+=4:8&o&&(i.pos+=2)}return t.prototype.encode=function(t){var e,A,n,r,i;for(A=new c(x.call(this.raw.data)),e=n=0,r=(i=this.glyphIDs).length;n<r;e=++n)i[e],A.pos=this.glyphOffsets[e];return A.data},t}(),_=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,l),e.prototype.tag="loca",e.prototype.parse=function(t){var e;return t.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=0===e?function(){var e,A,n;for(n=[],e=0,A=this.length;e<A;e+=2)n.push(2*t.readUInt16());return n}.call(this):function(){var e,A,n;for(n=[],e=0,A=this.length;e<A;e+=4)n.push(t.readUInt32());return n}.call(this)},e.prototype.indexOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},e.prototype.encode=function(t,e){for(var A=new Uint32Array(this.offsets.length),n=0,r=0,i=0;i<A.length;++i)if(A[i]=n,r<e.length&&e[r]==i){++r,A[i]=n;var o=this.offsets[i],a=this.offsets[i+1]-o;0<a&&(n+=a)}for(var s=new Array(4*A.length),l=0;l<A.length;++l)s[4*l+3]=255&A[l],s[4*l+2]=(65280&A[l])>>8,s[4*l+1]=(16711680&A[l])>>16,s[4*l]=(4278190080&A[l])>>24;return s},e}(),I=function(){function t(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var t,e,A,n,r;for(e in n=this.font.cmap.tables[0].codeMap,t={},r=this.subset)A=r[e],t[e]=n[A];return t},t.prototype.glyphsFor=function(t){var e,A,n,r,i,o,a;for(n={},i=0,o=t.length;i<o;i++)n[r=t[i]]=this.font.glyf.glyphFor(r);for(r in e=[],n)(null!=(A=n[r])?A.compound:void 0)&&e.push.apply(e,A.glyphIDs);if(0<e.length)for(r in a=this.glyphsFor(e))A=a[r],n[r]=A;return n},t.prototype.encode=function(t){var e,A,n,r,i,o,a,s,l,c,u,h,d,g,f;for(A in e=p.encode(this.generateCmap(),"unicode"),r=this.glyphsFor(t),u={0:0},f=e.charMap)u[(o=f[A]).old]=o.new;for(h in c=e.maxGlyphID,r)h in u||(u[h]=c++);return s=function(t){var e,A;for(e in A={},t)A[t[e]]=e;return A}(u),l=Object.keys(s).sort((function(t,e){return t-e})),d=function(){var t,e,A;for(A=[],t=0,e=l.length;t<e;t++)i=l[t],A.push(s[i]);return A}(),n=this.font.glyf.encode(r,d,u),a=this.font.loca.encode(n.offsets,d),g={cmap:this.font.cmap.raw(),glyf:n.table,loca:a,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.raw()},this.font.os2.exists&&(g["OS/2"]=this.font.os2.raw()),this.font.directory.encode(g)},t}();t.API.PDFObject=function(){var t;function e(){}return t=function(t,e){return(Array(e+1).join("0")+t).slice(-e)},e.convert=function(A){var n,r,i,o;if(Array.isArray(A))return"["+function(){var t,r,i;for(i=[],t=0,r=A.length;t<r;t++)n=A[t],i.push(e.convert(n));return i}().join(" ")+"]";if("string"==typeof A)return"/"+A;if(null!=A?A.isString:void 0)return"("+A+")";if(A instanceof Date)return"(D:"+t(A.getUTCFullYear(),4)+t(A.getUTCMonth(),2)+t(A.getUTCDate(),2)+t(A.getUTCHours(),2)+t(A.getUTCMinutes(),2)+t(A.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(A)){for(r in i=["<<"],A)o=A[r],i.push("/"+r+" "+e.convert(o));return i.push(">>"),i.join("\n")}return""+A},e}()}(at),bt="undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof n&&n||Function('return typeof this === "object" && this.content')()||Function("return this")(),Ct=function(){var t,e,A;function n(t){var e,A,n,r,i,o,a,s,l,c,u,h,d,g;for(this.data=t,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},o=null;;){switch(e=this.readUInt32(),l=function(){var t,e;for(e=[],t=0;t<4;++t)e.push(String.fromCharCode(this.data[this.pos++]));return e}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(e);break;case"fcTL":o&&this.animation.frames.push(o),this.pos+=4,o={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},i=this.readUInt16(),r=this.readUInt16()||100,o.delay=1e3*i/r,o.disposeOp=this.data[this.pos++],o.blendOp=this.data[this.pos++],o.data=[];break;case"IDAT":case"fdAT":for("fdAT"===l&&(this.pos+=4,e-=4),t=(null!=o?o.data:void 0)||this.imgData,h=0;0<=e?h<e:e<h;0<=e?++h:--h)t.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(n=this.palette.length/3,this.transparency.indexed=this.read(e),this.transparency.indexed.length>n)throw new Error("More transparent colors than palette size");if(0<(c=n-this.transparency.indexed.length))for(d=0;0<=c?d<c:c<d;0<=c?++d:--d)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(e)[0];break;case 2:this.transparency.rgb=this.read(e)}break;case"tEXt":a=(u=this.read(e)).indexOf(0),s=String.fromCharCode.apply(String,u.slice(0,a)),this.text[s]=String.fromCharCode.apply(String,u.slice(a+1));break;case"IEND":return o&&this.animation.frames.push(o),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(g=this.colorType)||6===g,A=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*A,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=e}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}n.load=function(t,e,A){var r;return"function"==typeof e&&(A=e),(r=new XMLHttpRequest).open("GET",t,!0),r.responseType="arraybuffer",r.onload=function(){var t;return t=new n(new Uint8Array(r.response||r.mozResponseArrayBuffer)),"function"==typeof(null!=e?e.getContext:void 0)&&t.render(e),"function"==typeof A?A(t):void 0},r.send(null)},n.prototype.read=function(t){var e,A;for(A=[],e=0;0<=t?e<t:t<e;0<=t?++e:--e)A.push(this.data[this.pos++]);return A},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(t){var e=this.pixelBitlength/8,A=new Uint8Array(this.width*this.height*e),n=0,r=this;if(null==t&&(t=this.imgData),0===t.length)return new Uint8Array(0);function i(i,o,a,s){var l,c,u,h,d,g,f,p,m,w,B,v,y,b,C,x,F,Q,U,_,I,E=Math.ceil((r.width-i)/a),k=Math.ceil((r.height-o)/s),S=r.width==E&&r.height==k;for(b=e*E,v=S?A:new Uint8Array(b*k),g=t.length,c=y=0;y<k&&n<g;){switch(t[n++]){case 0:for(h=F=0;F<b;h=F+=1)v[c++]=t[n++];break;case 1:for(h=Q=0;Q<b;h=Q+=1)l=t[n++],d=h<e?0:v[c-e],v[c++]=(l+d)%256;break;case 2:for(h=U=0;U<b;h=U+=1)l=t[n++],u=(h-h%e)/e,C=y&&v[(y-1)*b+u*e+h%e],v[c++]=(C+l)%256;break;case 3:for(h=_=0;_<b;h=_+=1)l=t[n++],u=(h-h%e)/e,d=h<e?0:v[c-e],C=y&&v[(y-1)*b+u*e+h%e],v[c++]=(l+Math.floor((d+C)/2))%256;break;case 4:for(h=I=0;I<b;h=I+=1)l=t[n++],u=(h-h%e)/e,d=h<e?0:v[c-e],0===y?C=x=0:(C=v[(y-1)*b+u*e+h%e],x=u&&v[(y-1)*b+(u-1)*e+h%e]),f=d+C-x,p=Math.abs(f-d),w=Math.abs(f-C),B=Math.abs(f-x),m=p<=w&&p<=B?d:w<=B?C:x,v[c++]=(l+m)%256;break;default:throw new Error("Invalid filter algorithm: "+t[n-1])}if(!S){var D=((o+y*s)*r.width+i)*e,H=y*b;for(h=0;h<E;h+=1){for(var M=0;M<e;M+=1)A[D++]=v[H++];D+=(a-1)*e}}y++}}return t=(t=new Et(t)).getBytes(),1==r.interlaceMethod?(i(0,0,8,8),i(4,0,8,8),i(0,4,4,8),i(2,0,4,4),i(0,2,2,4),i(1,0,2,2),i(0,1,1,2)):i(0,0,1,1),A},n.prototype.decodePalette=function(){var t,e,A,n,r,i,o,a,s;for(A=this.palette,i=this.transparency.indexed||[],r=new Uint8Array((i.length||0)+A.length),n=0,A.length,e=o=t=0,a=A.length;o<a;e=o+=3)r[n++]=A[e],r[n++]=A[e+1],r[n++]=A[e+2],r[n++]=null!=(s=i[t++])?s:255;return r},n.prototype.copyToImageData=function(t,e){var A,n,r,i,o,a,s,l,c,u,h;if(n=this.colors,c=null,A=this.hasAlphaChannel,this.palette.length&&(c=null!=(h=this._decodedPalette)?h:this._decodedPalette=this.decodePalette(),n=4,A=!0),l=(r=t.data||t).length,o=c||e,i=a=0,1===n)for(;i<l;)s=c?4*e[i/4]:a,u=o[s++],r[i++]=u,r[i++]=u,r[i++]=u,r[i++]=A?o[s++]:255,a=s;else for(;i<l;)s=c?4*e[i/4]:a,r[i++]=o[s++],r[i++]=o[s++],r[i++]=o[s++],r[i++]=A?o[s++]:255,a=s},n.prototype.decode=function(){var t;return t=new Uint8Array(this.width*this.height*4),this.copyToImageData(t,this.decodePixels()),t};try{e=bt.document.createElement("canvas"),A=e.getContext("2d")}catch(a){return-1}return t=function(t){var n;return A.width=t.width,A.height=t.height,A.clearRect(0,0,t.width,t.height),A.putImageData(t,0,0),(n=new Image).src=e.toDataURL(),n},n.prototype.decodeFrames=function(e){var A,n,r,i,o,a,s,l;if(this.animation){for(l=[],n=o=0,a=(s=this.animation.frames).length;o<a;n=++o)A=s[n],r=e.createImageData(A.width,A.height),i=this.decodePixels(new Uint8Array(A.data)),this.copyToImageData(r,i),A.imageData=r,l.push(A.image=t(r));return l}},n.prototype.renderFrame=function(t,e){var A,n,r;return A=(n=this.animation.frames)[e],r=n[e-1],0===e&&t.clearRect(0,0,this.width,this.height),1===(null!=r?r.disposeOp:void 0)?t.clearRect(r.xOffset,r.yOffset,r.width,r.height):2===(null!=r?r.disposeOp:void 0)&&t.putImageData(r.imageData,r.xOffset,r.yOffset),0===A.blendOp&&t.clearRect(A.xOffset,A.yOffset,A.width,A.height),t.drawImage(A.image,A.xOffset,A.yOffset)},n.prototype.animate=function(t){var e,A,n,r,i,o,a=this;return A=0,o=this.animation,r=o.numFrames,n=o.frames,i=o.numPlays,(e=function(){var o,s;if(o=A++%r,s=n[o],a.renderFrame(t,o),1<r&&A/r<i)return a.animation._timeout=setTimeout(e,s.delay)})()},n.prototype.stopAnimation=function(){var t;return clearTimeout(null!=(t=this.animation)?t._timeout:void 0)},n.prototype.render=function(t){var e,A;return t._png&&t._png.stopAnimation(),t._png=this,t.width=this.width,t.height=this.height,e=t.getContext("2d"),this.animation?(this.decodeFrames(e),this.animate(e)):(A=e.createImageData(this.width,this.height),this.copyToImageData(A,this.decodePixels()),e.putImageData(A,0,0))},n}(),bt.PNG=Ct;var It=function(){function t(){this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=null}return t.prototype={ensureBuffer:function(t){var e=this.buffer,A=e?e.byteLength:0;if(t<A)return e;for(var n=512;n<t;)n<<=1;for(var r=new Uint8Array(n),i=0;i<A;++i)r[i]=e[i];return this.buffer=r},getByte:function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return null;this.readBlock()}return this.buffer[this.pos++]},getBytes:function(t){var e=this.pos;if(t){this.ensureBuffer(e+t);for(var A=e+t;!this.eof&&this.bufferLength<A;)this.readBlock();var n=this.bufferLength;n<A&&(A=n)}else{for(;!this.eof;)this.readBlock();A=this.bufferLength}return this.pos=A,this.buffer.subarray(e,A)},lookChar:function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos])},getChar:function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos++])},makeSubStream:function(t,e,A){for(var n=t+e;this.bufferLength<=n&&!this.eof;)this.readBlock();return new Stream(this.buffer,t,e,A)},skip:function(t){t||(t=1),this.pos+=t},reset:function(){this.pos=0}},t}(),Et=function(){if("undefined"!=typeof Uint32Array){var t=new Uint32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),e=new Uint32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),A=new Uint32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),n=[new Uint32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],r=[new Uint32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];return(o.prototype=Object.create(It.prototype)).getBits=function(t){for(var e,A=this.codeSize,n=this.codeBuf,r=this.bytes,o=this.bytesPos;A<t;)void 0===(e=r[o++])&&i("Bad encoding in flate stream"),n|=e<<A,A+=8;return e=n&(1<<t)-1,this.codeBuf=n>>t,this.codeSize=A-=t,this.bytesPos=o,e},o.prototype.getCode=function(t){for(var e=t[0],A=t[1],n=this.codeSize,r=this.codeBuf,o=this.bytes,a=this.bytesPos;n<A;){var s;void 0===(s=o[a++])&&i("Bad encoding in flate stream"),r|=s<<n,n+=8}var l=e[r&(1<<A)-1],c=l>>16,u=65535&l;return(0==n||n<c||0==c)&&i("Bad encoding in flate stream"),this.codeBuf=r>>c,this.codeSize=n-c,this.bytesPos=a,u},o.prototype.generateHuffmanTable=function(t){for(var e=t.length,A=0,n=0;n<e;++n)t[n]>A&&(A=t[n]);for(var r=1<<A,i=new Uint32Array(r),o=1,a=0,s=2;o<=A;++o,a<<=1,s<<=1)for(var l=0;l<e;++l)if(t[l]==o){var c=0,u=a;for(n=0;n<o;++n)c=c<<1|1&u,u>>=1;for(n=c;n<r;n+=s)i[n]=o<<16|l;++a}return[i,A]},o.prototype.readBlock=function(){function o(t,e,A,n,r){for(var i=t.getBits(A)+n;0<i--;)e[g++]=r}var a=this.getBits(3);if(1&a&&(this.eof=!0),0!=(a>>=1)){var s,l;if(1==a)s=n,l=r;else if(2==a){for(var c=this.getBits(5)+257,u=this.getBits(5)+1,h=this.getBits(4)+4,d=Array(t.length),g=0;g<h;)d[t[g++]]=this.getBits(3);for(var f=this.generateHuffmanTable(d),p=0,m=(g=0,c+u),w=new Array(m);g<m;){var B=this.getCode(f);16==B?o(this,w,2,3,p):17==B?o(this,w,3,3,p=0):18==B?o(this,w,7,11,p=0):w[g++]=p=B}s=this.generateHuffmanTable(w.slice(0,c)),l=this.generateHuffmanTable(w.slice(c,m))}else i("Unknown block type in flate stream");for(var v=(S=this.buffer)?S.length:0,y=this.bufferLength;;){var b=this.getCode(s);if(b<256)v<=y+1&&(v=(S=this.ensureBuffer(y+1)).length),S[y++]=b;else{if(256==b)return void(this.bufferLength=y);var C=(b=e[b-=257])>>16;0<C&&(C=this.getBits(C)),p=(65535&b)+C,b=this.getCode(l),0<(C=(b=A[b])>>16)&&(C=this.getBits(C));var x=(65535&b)+C;v<=y+p&&(v=(S=this.ensureBuffer(y+p)).length);for(var F=0;F<p;++F,++y)S[y]=S[y-x]}}}else{var Q,U=this.bytes,_=this.bytesPos;void 0===(Q=U[_++])&&i("Bad block header in flate stream");var I=Q;void 0===(Q=U[_++])&&i("Bad block header in flate stream"),I|=Q<<8,void 0===(Q=U[_++])&&i("Bad block header in flate stream");var E=Q;void 0===(Q=U[_++])&&i("Bad block header in flate stream"),(E|=Q<<8)!=(65535&~I)&&i("Bad uncompressed block length in flate stream"),this.codeBuf=0,this.codeSize=0;var k=this.bufferLength,S=this.ensureBuffer(k+I),D=k+I;this.bufferLength=D;for(var H=k;H<D;++H){if(void 0===(Q=U[_++])){this.eof=!0;break}S[H]=Q}this.bytesPos=_}},o}function i(t){throw new Error(t)}function o(t){var e=0,A=t[e++],n=t[e++];-1!=A&&-1!=n||i("Invalid header in flate stream"),8!=(15&A)&&i("Unknown compression method in flate stream"),((A<<8)+n)%31!=0&&i("Bad FCHECK in flate stream"),32&n&&i("FDICT bit set in flate stream"),this.bytes=t,this.bytesPos=2,this.codeSize=0,this.codeBuf=0,It.call(this)}}();return function(t){if("object"!=typeof t.console){t.console={};for(var e,A,n=t.console,r=function(){},i=["memory"],o="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");e=i.pop();)n[e]||(n[e]={});for(;A=o.pop();)n[A]||(n[A]=r)}var a,s,l,c,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";void 0===t.btoa&&(t.btoa=function(t){var e,A,n,r,i,o=0,a=0,s="",l=[];if(!t)return t;for(;e=(i=t.charCodeAt(o++)<<16|t.charCodeAt(o++)<<8|t.charCodeAt(o++))>>18&63,A=i>>12&63,n=i>>6&63,r=63&i,l[a++]=u.charAt(e)+u.charAt(A)+u.charAt(n)+u.charAt(r),o<t.length;);s=l.join("");var c=t.length%3;return(c?s.slice(0,c-3):s)+"===".slice(c||3)}),void 0===t.atob&&(t.atob=function(t){var e,A,n,r,i,o,a=0,s=0,l=[];if(!t)return t;for(t+="";e=(o=u.indexOf(t.charAt(a++))<<18|u.indexOf(t.charAt(a++))<<12|(r=u.indexOf(t.charAt(a++)))<<6|(i=u.indexOf(t.charAt(a++))))>>16&255,A=o>>8&255,n=255&o,l[s++]=64==r?String.fromCharCode(e):64==i?String.fromCharCode(e,A):String.fromCharCode(e,A,n),a<t.length;);return l.join("")}),Array.prototype.map||(Array.prototype.map=function(t){if(null==this||"function"!=typeof t)throw new TypeError;for(var e=Object(this),A=e.length>>>0,n=new Array(A),r=1<arguments.length?arguments[1]:void 0,i=0;i<A;i++)i in e&&(n[i]=t.call(r,e[i],i,e));return n}),Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),Array.prototype.forEach||(Array.prototype.forEach=function(t,e){if(null==this||"function"!=typeof t)throw new TypeError;for(var A=Object(this),n=A.length>>>0,r=0;r<n;r++)r in A&&t.call(e,A[r],r,A)}),Object.keys||(Object.keys=(a=Object.prototype.hasOwnProperty,s=!{toString:null}.propertyIsEnumerable("toString"),c=(l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(t){if("object"!=typeof t&&("function"!=typeof t||null===t))throw new TypeError;var e,A,n=[];for(e in t)a.call(t,e)&&n.push(e);if(s)for(A=0;A<c;A++)a.call(t,l[A])&&n.push(l[A]);return n})),"function"!=typeof Object.assign&&(Object.assign=function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");t=Object(t);for(var e=1;e<arguments.length;e++){var A=arguments[e];if(null!=A)for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(t[n]=A[n])}return t}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),String.prototype.trimLeft||(String.prototype.trimLeft=function(){return this.replace(/^\s+/g,"")}),String.prototype.trimRight||(String.prototype.trimRight=function(){return this.replace(/\s+$/g,"")})}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof n&&n||Function('return typeof this === "object" && this.content')()||Function("return this")()),at}))}).call(this,A("c8ba"),A("4362"))},ebe5:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMWSURBVHgB7VhNdtowEB6p2WTT4E1J2i7gBiY9QOkJmpwg5ARNTlA4QZIb0BOUnqD0AkU3iBf9SdlAumg3wdMZYTu26h8JnPfIe3zv8ZCENPo8mvk0GGCL9SCgJsy++0cgwdedEJT3Qo2gBuxAXZBwJIQ44abYwSF91UJQwobj8ROcXfsNeCDY2C4lePvr8L3YFZPZT78FVQhhhIgD/oR38KlqOttk27xH2TxRRo4260fdgNpvvAMVQA3Q5IT4TM2WJiFEf6/5dZA3t9CDYRimyWuDdRw320iTi/ZqF80vJEje6vNxxX1qf/Daal64MXll9s336btb9iBsg21l7B6oXtH8SqGmDfsx4TxSUsh3KLAHCCapgDw1Ju8M8kIjstsqI2dFsAi308MLDPHMZm5ZjFWuBUfoGNrVMeQ7LlX4lxKtJEzy4CzU/5ETMCdPXuECjyme2iixwxmfjrMIPq39CI5w8qAhPYxS+THlhMGJlxfPaxPUm0kxSSVDQEfWqTqyKCQmCUn2+B9s2x61yxF305mqPWexSSQrp8kA29iFHljCmmBcSkUYu9wqNHfMaxJbIN7artX1IIsrEcjcifTUXzKxIigxMPoNsPKuNcFriFg3sZXC7MY/M0mTtl55TTWKC9YW8BGmICUExg6NVNtJKpI1IsfWsu/Tb93MWAhaBTa+Hlx68AmJ6AIzSo8LUMbcAOJMRGeRphORrylslh1h2OZSTWKQGYv2d5GZYZIoJBWN5sQDB8xvOteQlFc43GuqU5t1Lkc8TFoUQ3ERYYOoKG3F/TCKLxs43STkBb4VunFfSuw9faZKN/s9fXVCFc0wNRQ09idtsIRTkqTrQwbVtEP2Tt5fAr5BuOIxyGmBBwe4VzM/SLOkuDCGA7zDY++l0oE9m/q+QLqDDTlxvYcZzjLjPVeXVL2cG8MtUoL7zF5oUb8nx/cv4LkruZUIJiSptLKdTw/U8fbVJayAlYXa8S62nmti++pjXWw8wbXeD5JwY8rSPKlyBGVwKotJmFfep773g0tCjahdGx5JubUizKtvi03EP4Pxe2b0nrwUAAAAAElFTkSuQmCC"},ed59:function(t,e,A){"use strict";A.r(e);A("e260"),A("e6cf"),A("cca6"),A("a79d");var n=function(){var t=this,e=t._self._c;return e("div",{class:t.mainClass},[e("the-app-header",[e("Notifications")],1),e("the-app-navigation",[e("reports-navigation")],1),e("the-app-notices"),e("router-view"),t.blocked?e("div",{staticClass:"monsterinsights-blocked"}):t._e(),t.noauth?e("report-no-auth"):t._e(),t.reauth?e("report-re-auth"):t._e(),e("the-quick-links")],1)},r=[],i=A("5530"),o=(A("b0c0"),A("2f62")),a=A("f284"),s=(A("14d9"),A("8c4f")),l=A("561c"),c=function(){var t=this,e=t._self._c;return e("main",{staticClass:"monsterinsights-report monsterinsights-report-overview"},[e("report-overview-upsell-mobile"),e("div",{staticClass:"monsterinsights-report-top"},[e("h2",{domProps:{textContent:t._s(t.text_overview)}}),e("report-overview-date-picker"),e("reports-pdf-export")],1),t.showChart()?e("div",{staticClass:"monsterinsights-report-tabs monsterinsights-report-row",attrs:{id:"monsterinsights-report-overview"}},[e("div",{staticClass:"monsterinsights-report-tabs-navigation"},[e("button",{class:t.activeTabButtonClass("sessions"),on:{click:function(e){return t.switchTab("sessions")}}},[e("i",{staticClass:"monstericon-user"}),e("span",{domProps:{textContent:t._s(t.text_sessions)}})]),e("button",{class:t.activeTabButtonClass("pageviews"),on:{click:function(e){return t.switchTab("pageviews")}}},[e("i",{staticClass:"monstericon-eye"}),e("span",{domProps:{textContent:t._s(t.text_pageviews)}})])]),"sessions"===t.current_tab?e("div",{staticClass:"monsterinsights-report-tabs-content"},[e("report-overview-line-chart",{key:t.overviewKey,attrs:{id:"overview","chart-data":t.sessionsData(),tooltip:t.text_sessions_tooltip}})],1):t._e(),"pageviews"===t.current_tab?e("div",{staticClass:"monsterinsights-report-tabs-content"},[e("report-overview-line-chart",{key:t.overviewKey,attrs:{id:"overview","chart-data":t.pageviewsData(),tooltip:t.text_pageviews_tooltip}})],1):t._e(),t.show_overview_notes?t._e():e("a",{staticClass:"monsterinsights-notes-show",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleNotes()}}},[e("span",[t._v(t._s(t.text_title))])])]):t._e(),t.show_overview_notes?e("div",{staticClass:"monsterinsights-overview-notes-container",attrs:{id:"monsterinsights_site_notes"}},[e("site-notes-overview",{on:{"refresh-overview-report":t.changeOverviewKey}}),t.show_overview_notes?e("a",{staticClass:"monsterinsights-notes-hide",attrs:{href:"#"},domProps:{textContent:t._s(t.text_close_site_notes)},on:{click:function(e){return e.preventDefault(),t.toggleNotes()}}}):t._e()],1):t._e(),e("div",{staticClass:"monsterinsights-report-row monsterinsights-report-infobox-row",attrs:{id:"monsterinsights-report-infobox"}},[e("report-infobox",{attrs:{title:t.text_sessions,value:t.$formatNumber(t.infoboxSessionsData.value),change:t.infoboxSessionsData.change,color:t.infoboxSessionsData.color,direction:t.infoboxSessionsData.direction,days:t.infoboxRange,tooltip:t.text_infobox_tooltip_sessions}}),e("report-infobox",{attrs:{title:t.text_pageviews,value:t.$formatNumber(t.infoboxPageviewsData.value),change:t.infoboxPageviewsData.change,color:t.infoboxPageviewsData.color,direction:t.infoboxPageviewsData.direction,days:t.infoboxRange,tooltip:t.text_infobox_tooltip_pageviews}}),e("report-infobox",{attrs:{title:t.text_duration,value:t.infoboxDurationData.value,change:t.infoboxDurationData.change,color:t.infoboxDurationData.color,direction:t.infoboxDurationData.direction,days:t.infoboxRange,tooltip:t.text_infobox_tooltip_average}}),t.hasBounceData?e("report-infobox",{attrs:{id:"monsterinsights-report-infobox-bounce-rate",title:t.text_bounce,value:t.infoboxBounceData.value,change:t.infoboxBounceData.change,color:t.infoboxBounceData.color,direction:t.infoboxBounceData.direction,days:t.infoboxRange,tooltip:t.text_infobox_tooltip_bounce}}):t._e(),!t.hasBounceData&&t.hasTotalUsersData?e("report-infobox",{attrs:{id:"monsterinsights-report-infobox-total-users",title:t.text_total_users,value:t.$formatNumber(t.infoboxTotalUsersData.value),change:t.infoboxTotalUsersData.change,color:t.infoboxTotalUsersData.color,direction:t.infoboxTotalUsersData.direction,days:t.infoboxRange,tooltip:t.text_infobox_tooltip_totalusers}}):t._e()],1),e("report-overview-upsell"),e("div",{staticClass:"monsterinsights-report-row monsterinsights-report-flex"},[e("report-overview-pie-chart",{attrs:{id:"newvsreturning",chartData:t.newVsReturningData,title:t.text_new_vs_returning,tooltip:t.text_pie_tooltip_newvsreturning}}),e("report-overview-pie-chart",{attrs:{id:"devices",chartData:t.devicesData,title:t.text_device_breakdown,tooltip:t.text_pie_tooltip_devices}})],1),e("div",{staticClass:"monsterinsights-report-row monsterinsights-report-flex monsterinsights-report-2-columns"},[e("report-list-box",{attrs:{id:"monsterinsights-report-top-countries",title:t.text_countries,rows:t.countriesData,tooltip:t.text_countries_tooltip}},[t.gaLinks?e("a",{staticClass:"monsterinsights-button",attrs:{slot:"button",href:t.overview.galinks.countries,target:"_blank"},domProps:{textContent:t._s(t.text_countries_button)},slot:"button"}):t._e()]),e("report-list-box",{attrs:{id:"monsterinsights-report-top-referrals",title:t.text_referrals,rows:t.referralsData,tooltip:t.text_referral_tooltip}},[t.gaLinks?e("a",{staticClass:"monsterinsights-button",attrs:{slot:"button",href:t.overview.galinks.referrals,target:"_blank"},domProps:{textContent:t._s(t.text_referral_button)},slot:"button"}):t._e()])],1),e("div",{staticClass:"monsterinsights-report-row"},[e("report-list-box",{attrs:{title:t.text_top_posts,rows:t.topPostsData,tooltip:t.text_top_posts_tooltip}},[t.gaLinks?e("a",{staticClass:"monsterinsights-button",attrs:{slot:"button",href:t.overview.galinks.topposts,target:"_blank"},domProps:{textContent:t._s(t.text_top_posts_button)},slot:"button"}):t._e()])],1)],1)},u=[],h=(A("d3b7"),A("159b"),A("25f0"),A("ac1f"),A("5319"),A("30ef")),d=A.n(h);function g(t,e){if(e){var A=this.$data._chart,n=t.datasets.map((function(t){return t.label})),r=e.datasets.map((function(t){return t.label})),i=JSON.stringify(r),o=JSON.stringify(n);o===i&&e.datasets.length===t.datasets.length?(t.datasets.forEach((function(t,n){var r=Object.keys(e.datasets[n]),i=Object.keys(t),o=r.filter((function(t){return"_meta"!==t&&-1===i.indexOf(t)}));for(var a in o.forEach((function(t){delete A.data.datasets[n][t]})),t)t.hasOwnProperty(a)&&(A.data.datasets[n][a]=t[a])})),t.hasOwnProperty("labels")&&(A.data.labels=t.labels,this.$emit("labels:update")),t.hasOwnProperty("xLabels")&&(A.data.xLabels=t.xLabels,this.$emit("xlabels:update")),t.hasOwnProperty("yLabels")&&(A.data.yLabels=t.yLabels,this.$emit("ylabels:update")),A.update(),this.$emit("chart:update")):(A&&(A.destroy(),this.$emit("chart:destroy")),this.renderChart(this.chartData,this.options),this.$emit("chart:render"))}else this.$data._chart&&(this.$data._chart.destroy(),this.$emit("chart:destroy")),this.renderChart(this.chartData,this.options),this.$emit("chart:render")}var f={data:function(){return{chartData:null}},watch:{chartData:g}},p={props:{chartData:{type:Object,required:!0,default:function(){}}},watch:{chartData:g}},m={reactiveData:f,reactiveProp:p};function w(t,e){return{render:function(t){return t("div",{style:this.styles,class:this.cssClasses},[t("canvas",{attrs:{id:this.chartId,width:this.width,height:this.height},ref:"canvas"})])},props:{chartId:{default:t,type:String},width:{default:400,type:Number},height:{default:400,type:Number},cssClasses:{type:String,default:""},styles:{type:Object},plugins:{type:Array,default:function(){return[]}}},data:function(){return{_chart:null,_plugins:this.plugins}},methods:{addPlugin:function(t){this.$data._plugins.push(t)},generateLegend:function(){if(this.$data._chart)return this.$data._chart.generateLegend()},renderChart:function(t,A){if(this.$data._chart&&this.$data._chart.destroy(),!this.$refs.canvas)throw new Error("Please remove the <template></template> tags from your chart component. See https://vue-chartjs.org/guide/#vue-single-file-components");this.$data._chart=new d.a(this.$refs.canvas.getContext("2d"),{type:e,data:t,options:A,plugins:this.$data._plugins})}},beforeDestroy:function(){this.$data._chart&&this.$data._chart.destroy()}}}var B,v,y,b,C=w("bar-chart","bar"),x=(w("horizontalbar-chart","horizontalBar"),w("doughnut-chart","doughnut")),F=(w("line-chart","line"),w("pie-chart","pie"),w("polar-chart","polarArea"),w("radar-chart","radar"),w("bubble-chart","bubble"),w("scatter-chart","scatter"),w("mi-custom-line","LineWithLine")),Q=m.reactiveProp,U={name:"ReportOverviewLineChart",extends:F,mixins:[Q],props:{tooltip:String,customOptions:Object,id:String,strokeColor:{type:String,default:"#6db0e9"},strokeX:{type:Boolean,default:!0},strokeY:{type:Boolean,default:!1},labelColor:{type:String,default:"#7f8591"},gridColor:{type:String,default:"#f2f6fa"}},computed:{options:function(){var t=this,e=this;d.a.defaults.LineWithLine=d.a.defaults.line,(e.strokeY||e.strokeX)&&(d.a.controllers.LineWithLine=d.a.controllers.line.extend({draw:function(t){d.a.controllers.line.prototype.draw.call(this,t);var A=this.chart.ctx,n=this.chart.controller.getDatasetMeta(0),r=this.chart.scales["y-axis-0"].top+this.chart.scales["y-axis-0"].height;if(n.data.forEach((function(t){var n=t._xScale._labelItems[t._index]?t._xScale._labelItems[t._index].label:null,i=e.chartNotes;if(n&&i&&i[n]){var o=new Image,a=i[n][0].color?i[n][0].color:e.strokeColor.replace("#","");i[n][0].important?o.src='data:image/svg+xml,%3C%3Fxml version="1.0" encoding="utf-8"%3F%3E%3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 25 25" style="enable-background:new 0 0 25 25;" xml:space="preserve"%3E%3Cstyle type="text/css"%3E.st0%7Bfill:%23'+a+';%7D.st1%7Bfill:%23FFFFFF;%7D.st2%7Bfill:%23FFD74B;%7D%3C/style%3E%3Cg%3E%3Cg%3E%3Cpath class="st0" d="M22.5,0.7H2.5c-0.6,0-1.1,0.5-1.1,1v18.6c0,0.6,0.5,1,1.1,1h6.4c0.2,0,0.4,0.1,0.5,0.2l2.5,2.6 c0.3,0.3,0.8,0.3,1.1,0l2.5-2.6c0.1-0.1,0.3-0.2,0.5-0.2h6.4c0.6,0,1.1-0.5,1.1-1V1.7C23.6,1.1,23.1,0.7,22.5,0.7z"/%3E%3Cpath class="st1" d="M12.5,24.6C12.5,24.6,12.5,24.6,12.5,24.6c-0.3,0-0.6-0.1-0.8-0.3l-2.5-2.6c-0.1-0.1-0.2-0.1-0.3-0.1H2.5 c-0.8,0-1.4-0.6-1.4-1.3V1.7c0-0.7,0.6-1.3,1.4-1.3h19.9c0.8,0,1.4,0.6,1.4,1.3v18.6c0,0.7-0.6,1.3-1.4,1.3h-6.4 c-0.1,0-0.2,0-0.3,0.1l-2.5,2.6C13.1,24.5,12.8,24.6,12.5,24.6z M2.5,1C2.1,1,1.7,1.3,1.7,1.7v18.6c0,0.4,0.4,0.7,0.8,0.7h6.4 c0.3,0,0.6,0.1,0.8,0.3l2.5,2.6c0.1,0.1,0.2,0.1,0.3,0.1c0,0,0,0,0,0c0.1,0,0.2,0,0.3-0.1l2.5-2.6c0.2-0.2,0.5-0.3,0.8-0.3h6.4 c0.4,0,0.8-0.3,0.8-0.7V1.7c0-0.4-0.4-0.7-0.8-0.7H2.5z"/%3E%3C/g%3E%3Cpath class="st2" d="M13.1,4.9l1.7,3.2c0.1,0.2,0.3,0.3,0.5,0.3L19.1,9c0.6,0.1,0.8,0.7,0.4,1.1l-2.7,2.5c-0.2,0.1-0.2,0.4-0.2,0.6 l0.6,3.5c0.1,0.5-0.5,0.9-1,0.7l-3.4-1.7c-0.2-0.1-0.4-0.1-0.6,0l-3.4,1.7c-0.5,0.2-1.1-0.2-1-0.7l0.6-3.5c0-0.2,0-0.4-0.2-0.6 l-2.7-2.5C5.1,9.7,5.3,9,5.9,9l3.8-0.5c0.2,0,0.4-0.2,0.5-0.3l1.7-3.2C12.1,4.4,12.9,4.4,13.1,4.9L13.1,4.9z"/%3E%3C/g%3E%3C/svg%3E%0A':o.src="data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%2042.4%2047.9%22%20style%3D%22enable-background%3Anew%200%200%2042.4%2047.9%3B%22%20xml%3Aspace%3D%22preserve%22%3E%3Cstyle%20type%3D%22text%2Fcss%22%3E.st0%7Bfill%3A%23"+a+"%3B%7D.st1%7Bfill%3A%23FFFFFF%3B%7D%3C%2Fstyle%3E%3Cg%3E%3Cg%3E%3Cpath%20class%3D%22st0%22%20d%3D%22M38.9%2C1.6H3.5c-1.1%2C0-1.9%2C0.9-1.9%2C1.9V39c0%2C1.1%2C0.9%2C1.9%2C1.9%2C1.9h12.8l4.9%2C5.1l4.9-5.1h12.8c1.1%2C0%2C1.9-0.9%2C1.9-1.9V3.6C40.9%2C2.5%2C40%2C1.6%2C38.9%2C1.6z%22%2F%3E%3Cpath%20class%3D%22st1%22%20d%3D%22M21.2%2C46.6l-5.1-5.3H3.5c-1.3%2C0-2.3-1-2.3-2.3V3.6c0-1.3%2C1-2.3%2C2.3-2.3h35.4c1.3%2C0%2C2.3%2C1%2C2.3%2C2.3V39c0%2C1.3-1%2C2.3-2.3%2C2.3H26.3L21.2%2C46.6z%20M3.5%2C2C2.6%2C2%2C1.9%2C2.7%2C1.9%2C3.6V39c0%2C0.9%2C0.7%2C1.6%2C1.6%2C1.6h12.9l4.8%2C5l4.8-5h12.9c0.9%2C0%2C1.6-0.7%2C1.6-1.6V3.6c0-0.9-0.7-1.6-1.6-1.6H3.5z%22%2F%3E%3C%2Fg%3E%3Cg%3E%3Cg%3E%3Cpath%20class%3D%22st1%22%20d%3D%22M33.1%2C14.6H9.3c-0.6%2C0-1.2-0.6-1.2-1.2s0.5-1.2%2C1.2-1.2h23.7c0.6%2C0%2C1.2%2C0.6%2C1.2%2C1.2S33.7%2C14.6%2C33.1%2C14.6z%22%2F%3E%3C%2Fg%3E%3Cg%3E%3Cpath%20class%3D%22st1%22%20d%3D%22M33.1%2C22H9.3c-0.6%2C0-1.2-0.6-1.2-1.2s0.5-1.2%2C1.2-1.2h23.7c0.6%2C0%2C1.2%2C0.6%2C1.2%2C1.2S33.7%2C22%2C33.1%2C22z%22%2F%3E%3C%2Fg%3E%3Cg%3E%3Cpath%20class%3D%22st1%22%20d%3D%22M33.1%2C29.4H9.3c-0.6%2C0-1.2-0.6-1.2-1.2s0.5-1.2%2C1.2-1.2h23.7c0.6%2C0%2C1.2%2C0.6%2C1.2%2C1.2S33.7%2C29.4%2C33.1%2C29.4z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E",o.onload=function(){A.drawImage(o,t._model.x-10,r-24,20,20)}}})),this.chart.tooltip._active&&this.chart.tooltip._active.length){var i=this.chart.tooltip._active[0],o=i.tooltipPosition().x,a=i.tooltipPosition().y,s=this.chart.scales["y-axis-0"].top,l=this.chart.scales["x-axis-0"].left,c=this.chart.scales["y-axis-0"].bottom,u=this.chart.scales["x-axis-0"].right;A.save(),e.strokeX&&(A.beginPath(),A.moveTo(o,s),A.lineTo(o,c),A.lineWidth=1,A.strokeStyle=e.strokeColor,A.setLineDash([4,8]),A.stroke()),e.strokeY&&(A.beginPath(),A.moveTo(l,a),A.lineTo(u,a),A.lineWidth=1,A.strokeStyle=e.strokeColor,A.setLineDash([4,8]),A.stroke()),A.restore()}}}));var A={legend:{display:!1},hover:{intersect:!0},tooltips:{enabled:!1,yAlign:"top",xAlign:"top",intersect:!1,custom:this.$miOverviewTooltips,callbacks:{title:function(A,n){A=A[0];var r=n.datasets[0].labels[A.index],i=t.$formatNumber(n.datasets[0].data[A.index]),o=A.index>0?n.datasets[0].trend[A.index-1]:0;return[r,i,o,e.tooltip,e.id,t.chartNotes?t.chartNotes[r]:[]]},label:function(){return""}}},scales:{xAxes:[{spanGaps:!0,position:"bottom",gridLines:{show:!0,color:e.gridColor},ticks:{fontColor:e.labelColor}}],yAxes:[{gridLines:{show:!0,color:e.gridColor},ticks:{fontColor:e.labelColor,callback:function(e){if(e%1===0)return t.$formatNumber(e)}}}]},animation:!1,responsive:!0,maintainAspectRatio:!1,borderWidth:1};for(var n in this.customOptions)this.customOptions.hasOwnProperty(n)&&(A[n]=this.customOptions[n]);return A},tooltipId:function(){return"monsterinsights-chartjs-line-"+this.id+"-tooltip"},chartNotes:function(){return this.chartData.datasets?this.chartData.datasets[0].notes:[]}},methods:{loadChart:function(){this.renderChart(this.chartData,this.options)}},mounted:function(){this.loadChart()}},_=U,I=A("2877"),E=Object(I["a"])(_,B,v,!1,null,null,null),k=E.exports,S=A("bd74"),D=(A("ddb0"),function(){var t=this,e=t._self._c;return t.chartData?e("div",{staticClass:"monsterinsights-reports-pie-chart",attrs:{id:t.id}},[t.title?e("h3",{class:t.titleClass,domProps:{textContent:t._s(t.title)}}):t._e(),t.tooltip?e("settings-info-tooltip",{attrs:{content:t.tooltip}}):t._e(),e("div",{staticClass:"monsterinsights-reports-pie-chart-holder"},[e("report-pie-chart",{staticClass:"monsterinsights-pie-chart",style:t.style,attrs:{"chart-data":t.chartData,tooltipid:t.id,tooltips:t.enableTooltips,cutoutPercentage:t.cutoutPercentage}}),t.legend?e("ul",{staticClass:"monsterinsights-pie-chart-legend"},t._l(t.chartData.values,(function(A,n){return e("li",{key:n},[e("span",{staticClass:"monsterinsights-pie-chart-legend-color",style:t.labelBackground(t.chartData.datasets[0].backgroundColor[n])}),e("span",{staticClass:"monsterinsights-pie-chart-legend-text",domProps:{textContent:t._s(t.chartData.labels[n])}}),e("span",{staticClass:"monsterinsights-pie-chart-legend-value"},[t._v(" "+t._s(A||0)+"% ")])])})),0):t._e(),e("div",{staticClass:"monsterinsights-pie-chart-tooltip",attrs:{id:t.tooltipId}})],1)],1):t._e()}),H=[],M=(A("a9e3"),m.reactiveProp),O={name:"ReportPieChart",extends:x,mixins:[M],props:{tooltipid:String,tooltips:{default:!0,type:Boolean},cutoutPercentage:Number},data:function(){var t=this,e=this,A={options:{responsive:!0,maintainAspectRatio:!1,tooltips:{enabled:!1,yAlign:"top",xAlign:"top",intersect:!0,callbacks:{title:function(A,n){A=A[0];var r=n.labels[A.index],i=t.$formatNumber(n.datasets[0].data[A.index]);return[r,i,e.tooltipid]},label:function(){return""}}},animation:!1,legend:{display:!1}}};return e.cutoutPercentage&&(A.options.cutoutPercentage=e.cutoutPercentage),e.tooltips&&(A.options.tooltips.custom=e.$miPieTooltips),A},mounted:function(){this.renderChart(this.chartData,this.options)}},T=O,P=Object(I["a"])(T,y,b,!1,null,null,null),L=P.exports,R=A("93ec"),N={name:"ReportOverviewPieChart",components:{SettingsInfoTooltip:R["a"],ReportPieChart:L},props:{chartData:[Object,Boolean],title:String,tooltip:String,legend:{type:Boolean,default:!0},id:String,enableTooltips:{type:Boolean,default:!0},cutoutPercentage:Number,width:{type:Number,default:200},icon:{default:"",type:String}},computed:{titleClass:function(){return"monsterinsights-report-title "+this.icon},tooltipId:function(){return"monsterinsights-chartjs-pie-"+this.id+"-tooltip"},style:function(){return"max-width: "+this.width+"px; max-height: "+this.width+"px;"}},methods:{labelBackground:function(t){return"background-color: "+t+";"}}},K=N,j=Object(I["a"])(K,D,H,!1,null,null,null),V=j.exports,G=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-table-box",attrs:{id:t.id}},[t.title?e("h3",{class:t.titleClass,domProps:{textContent:t._s(t.title)}}):t._e(),t.tooltip?e("settings-info-tooltip",{attrs:{content:t.tooltip}}):t._e(),e("div",{staticClass:"monsterinsights-table-box-list"},t._l(t.tableRows,(function(A,n){return e("div",{key:n,staticClass:"monsterinsights-table-list-item"},[e("span",{staticClass:"monsterinsights-reports-list-count",domProps:{textContent:t._s(A.number)}}),e("span",{staticClass:"monsterinsights-reports-list-text",domProps:{innerHTML:t._s(A.text)}}),e("span",{staticClass:"monsterinsights-reports-list-number",domProps:{innerHTML:t._s(A.number?t.$formatNumber(A.right):"")}})])})),0),t.hasButtonSlot()||t.paginate?e("div",{staticClass:"monsterinsights-table-box-footer"},[t._t("button"),t.paginate?e("reports-pagination",{attrs:{limit:t.limit,length:t.rows.length},on:{updated:t.changeLimit}}):t._e()],2):t._e()],1)},q=[],W=A("2909"),Y=(A("fb6a"),function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-table-box-pagination"},[e("span",{domProps:{textContent:t._s(t.text_show)}}),e("div",{staticClass:"monsterinsights-buttons-toggle"},[e("button",{class:t.getButtonClass(10),on:{click:function(e){return t.sendUpdate(10)}}},[t._v(" 10 ")]),t.length>10?e("button",{class:t.getButtonClass(25),on:{click:function(e){return t.sendUpdate(25)}}},[t._v(" 25 ")]):t._e(),t.length>25?e("button",{class:t.getButtonClass(50),on:{click:function(e){return t.sendUpdate(50)}}},[t._v(" 50 ")]):t._e()])])}),z=[],X={name:"ReportsPagination",props:{limit:Number,length:Number},data:function(){return{currentLimit:this.limit,text_show:Object(l["a"])("Show","google-analytics-for-wordpress")}},methods:{sendUpdate:function(t){this.currentLimit=t,this.$emit("updated",t)},getButtonClass:function(t){var e="monsterinsights-button";return t===this.currentLimit&&(e+=" monsterinsights-selected-interval"),e}}},J=X,Z=Object(I["a"])(J,Y,z,!1,null,null,null),$=Z.exports,tt={name:"ReportListBox",components:{ReportsPagination:$,SettingsInfoTooltip:R["a"]},props:{title:String,id:String,tooltip:String,rows:Array,icon:{default:"",type:String}},data:function(){return{limit:10}},computed:{titleClass:function(){var t="monsterinsights-report-title ";return this.icon&&(t+=this.icon),this.paginate&&(t+=" monsterinsights-has-pagination"),t},paginate:function(){return this.rows.length>10},tableRows:function(){var t=Object(W["a"])(this.rows);if(t.length<10)while(t.length<10)t.push({number:"",text:"",right:""});return t=t.slice(0,this.limit),t}},methods:{hasButtonSlot:function(){return this.$slots["button"]},changeLimit:function(t){this.limit=t}}},et=tt,At=Object(I["a"])(et,G,q,!1,null,null,null),nt=At.exports,rt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-export-pdf-report monsterinsights-export-pdf-report-lite"},[e("div",{staticClass:"monsterinsights-reports-interval-dropdown-container"},[e("button",{class:["monsterinsights-button"],domProps:{innerHTML:t._s(t.buttonText)},on:{click:function(e){e.stopPropagation(),t.dropdownVisible=!t.dropdownVisible}}}),e("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.maybeHideDropdown,expression:"maybeHideDropdown"}],class:t.dropdownClass},[e("div",{staticClass:"monsterinsights-lite-datepicker"},[e("p",{domProps:{innerHTML:t._s(t.text_customize_date)}}),e("a",{staticClass:"monsterinsights-button monsterinsights-button-text",attrs:{href:t.upgrade_url,target:"_blank"}},[e("span",{domProps:{textContent:t._s(t.text_upgrade)}}),e("i",{staticClass:"monstericon-long-arrow-right-light"})])])])])])},it=[],ot=A("2b0e");ot["a"].directive("click-outside",{bind:function(t,e,A){t.clickOutsideEvent=function(n){t===n.target||t.contains(n.target)||A.context[e.expression](n)},document.body.addEventListener("click",t.clickOutsideEvent)},unbind:function(t){document.body.removeEventListener("click",t.clickOutsideEvent)}});var at={name:"ReportsPdfExport",props:{buttonText:{type:String,default:Object(l["a"])("Export PDF Report","google-analytics-for-wordpress")}},data:function(){return{dropdownVisible:!1,text_upgrade:Object(l["a"])("Upgrade to PRO","google-analytics-for-wordpress"),upgrade_url:this.$getUpgradeUrl("reports","pdfexport"),text_customize_date:Object(l["a"])("You can export PDF reports only in the PRO version.","google-analytics-for-wordpress")}},computed:{dropdownClass:function(){var t="monsterinsights-reports-intervals-dropdown";return this.dropdownVisible||(t+=" monsterinsights-hide"),t}},methods:{maybeHideDropdown:function(){this.dropdownVisible&&(this.dropdownVisible=!1)}}},st=at,lt=Object(I["a"])(st,rt,it,!1,null,null,null),ct=lt.exports,ut=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-report-row monsterinsights-overview-upsell-desktop"},[e("report-upsell-inline",{attrs:{title:t.text_upsell_title}},[e("p",{domProps:{textContent:t._s(t.text_upsell_content_1)}}),e("p",[e("span",{staticClass:"monsterinsights-green-text"},[e("b",{domProps:{innerHTML:t._s(t.text_upsell_content_2)}})]),e("br"),e("span",{staticClass:"monsterinsights-light",domProps:{innerHTML:t._s(t.text_upsell_content_3)}})]),e("a",{staticClass:"monsterinsights-button monsterinsights-button-green",attrs:{href:t.upgrade_link,target:"_blank"},domProps:{textContent:t._s(t.text_upsell_button)}})])],1)},ht=[],dt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-report-box monsterinsights-upsell-inline"},[e("div",{staticClass:"monsterinsights-upsell-inline-content"},[e("h3",{domProps:{textContent:t._s(t.title)}}),e("div",{staticClass:"monsterinsights-upsell-content"},[t._t("default")],2)])])},gt=[],ft={name:"ReportUpsellInline",props:{title:String}},pt=ft,mt=Object(I["a"])(pt,dt,gt,!1,null,null,null),wt=mt.exports,Bt={name:"ReportOverviewUpsell",components:{ReportUpsellInline:wt},data:function(){return{text_upsell_title:Object(l["a"])("Upgrade to MonsterInsights Pro to Unlock More Actionable Insights","google-analytics-for-wordpress"),text_upsell_content_1:Object(l["a"])("It's easy to double your traffic and sales when you know exactly how people find and use your website. MonsterInsights Pro shows you the stats that matter!","google-analytics-for-wordpress"),text_upsell_content_2:Object(l["a"])("Upgrade to MonsterInsights Pro and Save 50% OFF!","google-analytics-for-wordpress"),text_upsell_content_3:Object(l["d"])(Object(l["a"])("Use coupon code %1$sLITEUPGRADE%2$s","google-analytics-for-wordpress"),"<b>","</b>"),text_upsell_button:Object(l["a"])("Upgrade to MonsterInsights Pro","google-analytics-for-wordpress"),upgrade_link:this.$getUpgradeUrl("report","overview")}}},vt=Bt,yt=Object(I["a"])(vt,ut,ht,!1,null,null,null),bt=yt.exports,Ct=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-reports-datepicker"},[e("div",{staticClass:"monsterinsights-reports-interval-dropdown-container"},[e("button",{staticClass:"monsterinsights-reports-interval-date-info",on:{click:function(e){e.stopPropagation(),t.dropdownVisible=!t.dropdownVisible}}},[e("span",{domProps:{innerHTML:t._s(t.selectedIntervalText)}}),e("i",{staticClass:"monstericon-calendar-alt"})]),e("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.maybeHideDropdown,expression:"maybeHideDropdown"}],class:t.dropdownClass},[e("div",{staticClass:"monsterinsights-lite-datepicker"},[e("p",{domProps:{innerHTML:t._s(t.text_customize_date)}}),e("a",{staticClass:"monsterinsights-button monsterinsights-button-text",attrs:{href:t.upgrade_url,target:"_blank"}},[e("span",{domProps:{textContent:t._s(t.text_upgrade)}}),e("i",{staticClass:"monstericon-long-arrow-right-light"})])])])])])},xt=[],Ft=A("c1df"),Qt=A.n(Ft);ot["a"].directive("click-outside",{bind:function(t,e,A){t.clickOutsideEvent=function(n){t===n.target||t.contains(n.target)||A.context[e.expression](n)},document.body.addEventListener("click",t.clickOutsideEvent)},unbind:function(t){document.body.removeEventListener("click",t.clickOutsideEvent)}});var Ut,_t,It,Et,kt={name:"ReportsDatePicker",data:function(){return{dropdownVisible:!1,text_30_days:Object(l["a"])("Last 30 days","google-analytics-for-wordpress"),text_customize_date:Object(l["d"])(Object(l["a"])("You can customize your %sdate range only in the PRO version.","google-analytics-for-wordpress"),"<br />"),text_upgrade:Object(l["a"])("Upgrade to PRO","google-analytics-for-wordpress"),upgrade_url:this.$getUpgradeUrl("reports","datepicker")}},computed:Object(i["a"])(Object(i["a"])({},Object(o["b"])({date:"$_reports/date",activeReport:"$_reports/activeReport"})),{},{selectedIntervalText:function(){return this.getIntervalFormatted(this.text_30_days,Qt()().subtract(30,"days"),Qt()().subtract(1,"days"))},local_date:function(){return this.date.text},dropdownClass:function(){var t="monsterinsights-reports-intervals-dropdown";return this.dropdownVisible||(t+=" monsterinsights-hide"),t}}),methods:{getFormattedDate:function(t){if(t instanceof Date){var e=this.addLeadingZero(t.getMonth()+1),A=this.addLeadingZero(t.getDate());t=t.getFullYear()+"-"+e+"-"+A}return t},addLeadingZero:function(t){return t<10&&t>0?0+t.toString():t},getInterval:function(t,e,A,n){this.dropdownVisible=!1,this.interval=n,this.$store.commit("$_reports/UPDATE_DATE",{start:t.format("YYYY-MM-DD"),end:e.format("YYYY-MM-DD")}),window.blur(),this.$store.dispatch("$_reports/getReportData",this.activeReport),this.local_date=""},getIntervalText:function(t,e){return t.format("YYYYMMDD")===e.format("YYYYMMDD")?t.format("MMMM D, YYYY"):t.format("MMMM D")+" - "+e.format("MMMM D, YYYY")},getIntervalFormatted:function(t,e,A){return"<b>"+t+":</b> "+this.getIntervalText(e,A)},getButtonClass:function(t){var e="monsterinsights-button";return t===this.interval&&(e+=" monsterinsights-selected-interval"),e},maybeHideDropdown:function(){this.dropdownVisible&&(this.dropdownVisible=!1)}}},St=kt,Dt=Object(I["a"])(St,Ct,xt,!1,null,null,null),Ht=Dt.exports,Mt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-report-row monsterinsights-mobile-upsell"},[e("div",{staticClass:"monsterinsights-notice monsterinsights-notice-success"},[e("div",{staticClass:"monsterinsights-notice-inner"},[e("span",{domProps:{innerHTML:t._s(t.text_upsell_title)}}),e("div",{staticClass:"monsterinsights-notice-button"},[e("a",{staticClass:"monsterinsights-button monsterinsights-button-green",attrs:{href:t.upgrade_link,target:"_blank",rel:"noopener"},domProps:{textContent:t._s(t.text_upsell_button)}})])])])])},Ot=[],Tt={name:"ReportOverviewUpsellMobile",data:function(){return{text_upsell_title:Object(l["d"])(Object(l["a"])("Upgrade to Pro and unlock addons and other great features. %1$sSave 50%% automatically!%2$s","google-analytics-for-wordpress"),'<span class="monsterinsights-green-text"><b>',"</b></span>"),text_upsell_button:Object(l["a"])("Upgrade Now","google-analytics-for-wordpress"),upgrade_link:this.$getUpgradeUrl("report","overview-mobile")}}},Pt=Tt,Lt=Object(I["a"])(Pt,Mt,Ot,!1,null,null,null),Rt=Lt.exports,Nt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-overview-notes"},[t.toggle_list_add?e("site-notes-overview-list",{on:{"monsterinsights-site-notes-overview-show-create":t.AddNewClick,"refresh-overview-report":t.siteNoteSaved}}):t._e(),t.toggle_list_add?t._e():e("site-notes-overview-create",{on:{"monsterinsights-site-notes-overview-show-list":t.showListClick,"refresh-overview-report":t.siteNoteSaved}})],1)},Kt=[],jt=(A("d81d"),A("4de4"),function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"monsterinsights-overview-notes__header"},[e("div",{staticClass:"monsterinsights-overview-notes__header-left"},[e("div",{staticClass:"monsterinsights-overview-notes__header-left-links"},[t._v(" "+t._s(t.texts.show)+" "),e("a",{class:t.filtersClass(),attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.removeFilters()}}},[e("span",{staticClass:"text",domProps:{textContent:t._s(t.texts.all)}}),t._v(" "),e("span",{domProps:{textContent:t._s("(".concat(t.notes_all_count,")"))}})]),e("a",{class:t.filtersClass(!0),attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.filterImportant()}}},[e("span",{staticClass:"text important",domProps:{textContent:t._s(t.texts.important)}}),t._v(" "),e("span",{domProps:{textContent:t._s("(".concat(t.notes_important_count,")"))}})])])]),e("div",{staticClass:"monsterinsights-overview-notes__header-right"},[e("button",{staticClass:"monsterinsights-button",domProps:{textContent:t._s(t.texts.add_new)},on:{click:t.AddNewClick}})])]),e("div",{staticClass:"monsterinsights-overview-notes__body"},[e("div",{staticClass:"monsterinsights-overview-notes__body-list"},[t.showProgressBar?e("div",{staticClass:"monsterinsights-loader"}):t._e(),t.showProgressBar?t._e():e("table",{staticClass:"monsterinsights-overview-notes__body-list-table"},[e("thead",[e("tr",[e("th",{domProps:{textContent:t._s(t.texts.note_date)}}),e("th",{domProps:{textContent:t._s(t.texts.note_title)}}),e("th",{domProps:{textContent:t._s(t.texts.note_category)}})])]),e("tbody",[t._l(t.notes,(function(A){return e("fragment",{key:A.id},[e("tr",[e("td",{staticClass:"monsterinsights-overview-notes__body-list-table-column-notedate"},[e("div",{staticClass:"monsterinsights-flex-container"},[e("div",{staticClass:"monsterinsights-flex-container",staticStyle:{"flex-grow":"1"}},[e("a",{staticClass:"monsterinsights-toggle-note-important",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleImportant(A)}}},[e("div",{class:t.importantClass(A)})]),e("div",{domProps:{textContent:t._s(t.formatDate(A.note_date,"DD MMM"))}})]),e("site-notes-media-icon-field",{attrs:{medias:A.medias}})],1)]),e("td",{staticClass:"monsterinsights-overview-notes__body-list-table-column-note"},[e("div",{staticClass:"monsterinsights-flex-container"},[e("div",{domProps:{innerHTML:t._s(A.note_title)}}),e("a",{staticClass:"monsterinsights-overview-notes__body-list-table-column-note-edit",attrs:{href:"#"},domProps:{textContent:t._s(t.texts.edit)},on:{click:function(e){e.preventDefault(),t.selectedNote=Object(i["a"])({},A)}}})])]),e("td",{staticClass:"monsterinsights-overview-notes__body-list-table-column-notecategory"},[A.category&&A.category.background_color?e("span",{staticClass:"monsterinsights-category-with-bg",style:{backgroundColor:A.category.background_color},domProps:{textContent:t._s(A.category?A.category.name:"")}}):e("span",{staticClass:"monsterinsights-category-without-bg",domProps:{textContent:t._s(A.category?A.category.name:"")}})])]),t.selectedNote&&t.selectedNote.id===A.id?e("tr",{staticClass:"edit-row"},[e("td",{staticClass:"monsterinsights-overview-notes__body-list-table-column-notedate"},[e("div",{staticClass:"monsterinsights-flex-container"},[e("a",{class:t.starClasses,attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleStar()}}}),e("site-notes-date-picker-field",{attrs:{disabled:t.isSaving},model:{value:t.selectedNote.note_date_ymd,callback:function(e){t.$set(t.selectedNote,"note_date_ymd",e)},expression:"selectedNote.note_date_ymd"}})],1)]),e("td",{staticClass:"monsterinsights-overview-notes__body-list-table-column-note"},[e("div",{staticClass:"monsterinsights-flex-container"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.selectedNote.note_title,expression:"selectedNote.note_title"}],attrs:{disabled:t.isSaving,rows:"1"},domProps:{value:t.selectedNote.note_title},on:{input:function(e){e.target.composing||t.$set(t.selectedNote,"note_title",e.target.value)}}}),e("site-notes-medias-field",{attrs:{"show-label":!1},model:{value:t.selectedNote.medias,callback:function(e){t.$set(t.selectedNote,"medias",e)},expression:"selectedNote.medias"}})],1),e("div",{staticClass:"monsterinsights-buttons"},[e("button",{staticClass:"monsterinsights-button",domProps:{textContent:t._s(t.texts.save_changes)},on:{click:t.saveNote}}),e("a",{staticClass:"monsterinsights-button monsterinsights-button-secondary",attrs:{href:"#"},domProps:{textContent:t._s(t.texts.cancel)},on:{click:function(e){return e.preventDefault(),t.cancelEdit.apply(null,arguments)}}})])]),e("td",{staticClass:"monsterinsights-overview-notes__body-list-table-column-notecategory"},[e("select",{directives:[{name:"model",rawName:"v-model",value:A.category.id,expression:"note.category.id"}],on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.$set(A.category,"id",e.target.multiple?n:n[0])}}},[e("option",{attrs:{value:"0"},domProps:{textContent:t._s(t.texts.selectCategories)}}),t._l(t.noteCategories,(function(A,n){return e("option",{key:n,domProps:{value:A.id,textContent:t._s(A.name)}})}))],2)])]):t._e()])})),t.notes.length<=0&&!t.showProgressBar?e("tr",[e("td",{attrs:{colspan:"3"}},[e("div",{staticClass:"monsterinsights-overview-notes__body-list-table-empty",domProps:{textContent:t._s(t.texts.empty)}})])]):t._e()],2)])])])])}),Vt=[],Gt=A("aab3"),qt=A("76e6"),Wt=A("6a8e"),Yt=A("adcb"),zt=function(){var t=this;t._self._c;return t._e()},Xt=[],Jt={name:"SiteNotesMediaIconField"},Zt=Jt,$t=Object(I["a"])(Zt,zt,Xt,!1,null,null,null),te=$t.exports,ee=(A("411c"),{name:"SiteNotesOverviewList",components:{Fragment:qt["a"],SiteNotesDatePickerField:Wt["a"],SiteNotesMediasField:Yt["a"],SiteNotesMediaIconField:te},data:function(){return{notes:[],notes_all_count:0,notes_important_count:0,filters:{important:null,date_range:{start:null,end:null,interval:"last30days"}},showProgressBar:!1,texts:{note_date:Object(l["a"])("Date","google-analytics-for-wordpress"),note_title:Object(l["a"])("Site Note","google-analytics-for-wordpress"),note_category:Object(l["a"])("Category","google-analytics-for-wordpress"),show:Object(l["a"])("Show:","google-analytics-for-wordpress"),all:Object(l["a"])("All","google-analytics-for-wordpress"),important:Object(l["a"])("Important","google-analytics-for-wordpress"),add_new:Object(l["a"])("+ Add New Site Note","google-analytics-for-wordpress"),empty:Object(l["a"])("There aren’t any site notes. Go ahead and create one!","google-analytics-for-wordpress"),edit:Object(l["a"])("Edit","google-analytics-for-wordpress"),selectCategories:Object(l["a"])("Select Category","google-analytics-for-wordpress"),save_changes:Object(l["a"])("Save Changes","google-analytics-for-wordpress"),cancel:Object(l["a"])("Cancel","google-analytics-for-wordpress")},selectedNote:null,isSaving:!1,noteCategories:[],selectedCategory:null}},computed:Object(i["a"])(Object(i["a"])({},Object(o["b"])({date:"$_reports/date"})),{},{starClasses:function(){return"monsterinsights-star"+(this.selectedNote.important?"":"-empty")},categoryChoices:function(){var t=this;return this.noteCategories?this.noteCategories.map((function(e){return e.text=e.name,e.handle=t.selectCategory,e})):[]}}),methods:{toggleImportant:function(t){var e=this,A=t;t.important?A.important=!1:A.important=!0,Gt["a"].saveNote(A).then((function(){e.fetchNotes({},!0)}))},importantClass:function(t){return"monsterinsights-star"+(t.important?"":"-empty")},categoryStyle:function(t){return{backgroundColor:t.category&&t.category.background_color?t.category.background_color:"#E2EFFB"}},fetchNotes:function(t,e){var A=this;e||(this.showProgressBar=!0),this.filters.date_range=this.date;var n=Object.assign({orderby:"id",order:"asc",per_page:"-1",filter:this.filters},t);Gt["a"].getNotes(n).then((function(t){A.notes=[],A.notes_all_count=t.pagination.total_published?t.pagination.total_published:0,A.notes_important_count=t.pagination.total_important?t.pagination.total_important:0,A.notes=t.items})).finally((function(){e||(A.showProgressBar=!1)}))},removeFilters:function(){this.filters.important=null,this.fetchNotes()},filterImportant:function(){this.filters.important=!0,this.fetchNotes()},AddNewClick:function(){this.$emit("monsterinsights-site-notes-overview-show-create")},filtersClass:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t===this.filters.important?"selected":""},toggleStar:function(){this.selectedNote.important=!this.selectedNote.important},fetchCategories:function(t){var e=this,A=Object.assign({page:1,orderby:"name",order:"asc",select:["name"]},t);Gt["a"].getCategories(A).then((function(t){e.noteCategories=t.items}))},saveNote:function(){var t=this;this.isSaving=!0,Gt["a"].saveNote(this.selectedNote).then((function(){t.fetchNotes(),t.$store.dispatch("$_reports/getReportData","overview").then((function(){t.$emit("refresh-overview-report")}))})).finally((function(){t.isSaving=!1,t.cancelEdit()}))},cancelEdit:function(){this.selectedNote={id:null,note_title:"",category:null,note_date:null,note_date_ymd:null,important:!1,medias:[]}},selectCategory:function(t){this.selectedNote.category=t},formatDate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD";return Qt()(new Date(t)).format(e)}},watch:{date:{handler:function(){this.fetchNotes()},deep:!0}},mounted:function(){this.fetchNotes(),this.fetchCategories()}}),Ae=ee,ne=Object(I["a"])(Ae,jt,Vt,!1,null,null,null),re=ne.exports,ie=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"monsterinsights-overview-notes__header"},[e("div",{staticClass:"monsterinsights-overview-notes__header-left"}),e("div",{staticClass:"monsterinsights-overview-notes__header-right"},[e("div",{staticClass:"monsterinsights-button-group"},[e("button",{staticClass:"monsterinsights-button monsterinsights-button-secondary",domProps:{textContent:t._s(t.texts.cancel)},on:{click:t.showListClick}}),e("button",{staticClass:"monsterinsights-button",domProps:{textContent:t._s(t.texts.save_changes)},on:{click:t.saveNote}})])])]),e("div",{staticClass:"monsterinsights-overview-notes__body"},[e("table",{staticClass:"monsterinsights-site-notes-create__table",class:t.isSaving?"loading":""},[e("thead",[e("tr",[e("th",{domProps:{textContent:t._s(t.texts.note_date)}}),e("th",{domProps:{textContent:t._s(t.texts.note_title)}}),e("th",{domProps:{textContent:t._s(t.texts.note_category)}})])]),e("tbody",[e("tr",[e("td",{staticClass:"monsterinsights-site-notes-create__table-column-notedate"},[e("div",{staticClass:"monsterinsights-flex-container"},[e("a",{class:t.starClasses,attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleStar()}}}),e("site-notes-date-picker-field",{attrs:{disabled:t.isSaving},model:{value:t.note.note_date_ymd,callback:function(e){t.$set(t.note,"note_date_ymd",e)},expression:"note.note_date_ymd"}})],1)]),e("td",{staticClass:"monsterinsights-site-notes-create__table-column-note"},[e("div",{staticClass:"monsterinsights-flex-container"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.note.note_title,expression:"note.note_title"}],attrs:{disabled:t.isSaving,rows:"1"},domProps:{value:t.note.note_title},on:{input:function(e){e.target.composing||t.$set(t.note,"note_title",e.target.value)}}}),e("site-notes-medias-field",{attrs:{"show-label":!1},model:{value:t.note.medias,callback:function(e){t.$set(t.note,"medias",e)},expression:"note.medias"}})],1)]),e("td",{staticClass:"monsterinsights-site-notes-create__table-column-notecategory"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.note.category.id,expression:"note.category.id"}],on:{change:function(e){var A=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.$set(t.note.category,"id",e.target.multiple?A:A[0])}}},[e("option",{attrs:{value:"0"},domProps:{textContent:t._s(t.texts.selectCategories)}}),t._l(t.noteCategories,(function(A,n){return e("option",{key:n,domProps:{value:A.id,textContent:t._s(A.name)}})}))],2)])])])])])])},oe=[],ae={name:"SiteNotesOverviewCreate",components:{SiteNotesMediasField:Yt["a"],SiteNotesDatePickerField:Wt["a"]},data:function(){return{note:{id:null,note_title:"",category:{id:0},note_date:null,note_date_ymd:null,important:!1,medias:{}},texts:{note_date:Object(l["a"])("Date","google-analytics-for-wordpress"),note_title:Object(l["a"])("Site Note","google-analytics-for-wordpress"),note_category:Object(l["a"])("Category","google-analytics-for-wordpress"),selectCategories:Object(l["a"])("Select Category","google-analytics-for-wordpress"),save_changes:Object(l["a"])("Add Site Note","google-analytics-for-wordpress"),site_notes:Object(l["a"])("Site Notes","google-analytics-for-wordpress"),add_new:Object(l["a"])("Add New","google-analytics-for-wordpress"),edit:Object(l["a"])("Edit Note","google-analytics-for-wordpress"),cancel:Object(l["a"])("Cancel","google-analytics-for-wordpress")},noteCategories:[],message:"",isEdit:!1,isSaving:!1}},methods:{fetchCategories:function(t){var e=this,A=Object.assign({page:1,orderby:"name",order:"asc",select:["name"]},t);Gt["a"].getCategories(A).then((function(t){e.noteCategories=t.items}))},saveNote:function(){var t=this;this.isSaving=!0,Gt["a"].saveNote(this.note).then((function(){t.$store.dispatch("$_reports/getReportData","overview").then((function(){t.$emit("refresh-overview-report")}))})).finally((function(){t.isSaving=!1,t.note={id:null,note_title:"",category:{id:0},note_date:null,note_date_ymd:null,important:!1,medias:[]},t.updateDatepickerDate()}))},toggleStar:function(){this.note.important=!this.note.important},showListClick:function(){this.$emit("monsterinsights-site-notes-overview-show-list")},isPro:function(){return this.$isPro()},updateDatepickerDate:function(){""===this.date.end?this.note.note_date_ymd=Qt()().subtract(1,"day").format("YYYY-MM-DD"):this.note.note_date_ymd=this.date.end}},computed:Object(i["a"])(Object(i["a"])({},Object(o["b"])({date:"$_reports/date"})),{},{starClasses:function(){return"monsterinsights-star"+(this.note.important?"":"-empty")},datepickerEndDate:function(){return this.date.end}}),mounted:function(){this.fetchCategories(),this.updateDatepickerDate()},watch:{datepickerEndDate:function(){this.updateDatepickerDate()}}},se=ae,le=Object(I["a"])(se,ie,oe,!1,null,null,null),ce=le.exports,ue={name:"SiteNotesOverview",components:{SiteNotesOverviewList:re,SiteNotesOverviewCreate:ce},data:function(){return{toggle_list_add:!0,texts:{}}},computed:{},methods:{showListClick:function(){this.toggle_list_add=!0},AddNewClick:function(){this.toggle_list_add=!1},siteNoteSaved:function(){this.showListClick(),this.$emit("refresh-overview-report")}},mounted:function(){}},he=ue,de=Object(I["a"])(he,Nt,Kt,!1,null,null,null),ge=de.exports,fe=A("9cc9"),pe={name:"ReportOverview",mixins:[fe["a"]],components:{ReportOverviewUpsellMobile:Rt,ReportOverviewDatePicker:Ht,ReportOverviewUpsell:bt,ReportListBox:nt,ReportsPdfExport:ct,ReportOverviewPieChart:V,ReportInfobox:S["a"],ReportOverviewLineChart:k,SiteNotesOverview:ge},computed:Object(i["a"])(Object(i["a"])({},Object(o["b"])({overview:"$_reports/overview",date:"$_reports/date",license:"$_license/license",license_network:"$_license/license_network"})),{},{gaLinks:function(){return!!this.overview.galinks},infoboxRange:function(){return this.overview.infobox&&this.overview.infobox.range?this.overview.infobox.range:0},infoboxSessionsData:function(){return this.infoboxData("sessions")},infoboxPageviewsData:function(){return this.infoboxData("pageviews")},infoboxDurationData:function(){return this.infoboxData("duration")},hasBounceData:function(){var t=this.infoboxBounceData;return"undefined"!==typeof t.value},infoboxBounceData:function(){return this.infoboxData("bounce",!0)},hasTotalUsersData:function(){var t=this.infoboxTotalUsersData;return"undefined"!==typeof t.value},infoboxTotalUsersData:function(){return this.infoboxData("totalusers")},newVsReturningData:function(){return!!this.overview.newvsreturn&&{datasets:[{data:[this.overview.newvsreturn.new,this.overview.newvsreturn.returning],backgroundColor:["#2679c1","#57a9f1"]}],values:[this.overview.newvsreturn.new,this.overview.newvsreturn.returning],labels:[Object(l["a"])("New","google-analytics-for-wordpress"),Object(l["a"])("Returning","google-analytics-for-wordpress")]}},devicesData:function(){return!!this.overview.devices&&{datasets:[{data:[this.overview.devices.desktop,this.overview.devices.tablet,this.overview.devices.mobile],backgroundColor:["#2679c1","#57a9f1","#b1dafd"]}],values:[this.overview.devices.desktop,this.overview.devices.tablet,this.overview.devices.mobile],labels:[Object(l["a"])("Desktop","google-analytics-for-wordpress"),Object(l["a"])("Tablet","google-analytics-for-wordpress"),Object(l["a"])("Mobile","google-analytics-for-wordpress")]}},countriesData:function(){var t=[],e=0;return this.overview.countries&&this.overview.countries.forEach((function(A){e++,t.push({number:e+".",text:'<span class="monsterinsights-flag monsterinsights-flag-'+A.iso.toLowerCase()+'"></span> '+A.name,right:A.sessions})})),t},referralsData:function(){var t=[],e=0;return this.overview.referrals&&this.overview.referrals.forEach((function(A){e++,t.push({number:e+".",text:'<img src="https://www.google.com/s2/favicons?domain=http://'+A.url+'" />'+A.url,right:A.sessions})})),t},topPostsData:function(){var t=[],e=0;return this.overview.toppages&&this.overview.toppages.forEach((function(A){e++;var n=A.hostname?'<a href="'+A.hostname+A.url+'" target="_blank" rel="noreferrer noopener">'+A.title+"</a>":A.title;t.push({number:e+".",text:n,right:A.sessions})})),t}}),data:function(){return{show_overview_notes:!1,text_title:Object(l["a"])("Site Notes","google-analytics-for-wordpress"),text_overview:Object(l["a"])("Overview Report","google-analytics-for-wordpress"),text_sessions:Object(l["a"])("Sessions","google-analytics-for-wordpress"),text_sessions_tooltip:Object(l["d"])(Object(l["a"])("Unique %s Sessions","google-analytics-for-wordpress"),"<br />"),text_pageviews:Object(l["a"])("Pageviews","google-analytics-for-wordpress"),text_pageviews_tooltip:Object(l["d"])(Object(l["a"])("Unique %s Pageviews","google-analytics-for-wordpress"),"<br />"),text_duration:Object(l["a"])("Avg. Session Duration","google-analytics-for-wordpress"),text_bounce:Object(l["a"])("Bounce Rate","google-analytics-for-wordpress"),text_total_users:Object(l["a"])("Total Users","google-analytics-for-wordpress"),text_new_vs_returning:Object(l["a"])("New vs. Returning Visitors","google-analytics-for-wordpress"),text_device_breakdown:Object(l["a"])("Device Breakdown","google-analytics-for-wordpress"),text_countries:Object(l["a"])("Top 10 Countries","google-analytics-for-wordpress"),text_countries_button:Object(l["a"])("View Countries Report","google-analytics-for-wordpress"),text_referrals:Object(l["a"])("Top 10 Referrals","google-analytics-for-wordpress"),text_referral_button:Object(l["a"])("View All Referral Sources","google-analytics-for-wordpress"),text_top_posts:Object(l["a"])("Top Posts/Pages","google-analytics-for-wordpress"),text_top_posts_button:Object(l["a"])("View Full Posts/Pages Report","google-analytics-for-wordpress"),current_tab:"sessions",text_infobox_tooltip_sessions:Object(l["a"])("A session is the browsing session of a single user to your site.","google-analytics-for-wordpress"),text_infobox_tooltip_pageviews:Object(l["a"])("A pageview is defined as a view of a page on your site that is being tracked by the Analytics tracking code. Each refresh of a page is also a new pageview.","google-analytics-for-wordpress"),text_infobox_tooltip_average:Object(l["a"])("Total duration of all sessions (in seconds) / number of sessions.","google-analytics-for-wordpress"),text_infobox_tooltip_bounce:Object(l["a"])("Percentage of single-page visits (or web sessions). It is the number of visits in which a person leaves your website from the landing page without browsing any further.","google-analytics-for-wordpress"),text_infobox_tooltip_totalusers:Object(l["a"])("The number of distinct tracked users","google-analytics-for-wordpress"),text_pie_tooltip_newvsreturning:Object(l["a"])("This graph shows what percent of your user sessions come from new versus repeat visitors.","google-analytics-for-wordpress"),text_pie_tooltip_devices:Object(l["a"])("This graph shows what percent of your visitor sessions are done using a traditional computer or laptop, tablet or mobile device to view your site.","google-analytics-for-wordpress"),text_countries_tooltip:Object(l["a"])("This list shows the top countries your website visitors are from.","google-analytics-for-wordpress"),text_referral_tooltip:Object(l["a"])("This list shows the top websites that send your website traffic, known as referral traffic.","google-analytics-for-wordpress"),text_top_posts_tooltip:Object(l["a"])("This list shows the most viewed posts and pages on your website.","google-analytics-for-wordpress"),text_export_pdf_overview_report:Object(l["a"])("Export PDF Overview Report","google-analytics-for-wordpress"),text_close_site_notes:Object(l["a"])("Close Site Notes","google-analytics-for-wordpress"),overviewKey:1}},methods:{infoboxData:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],A={};return this.overview.infobox&&this.overview.infobox[t]&&(A.change=this.overview.infobox[t]["prev"],A.value=this.overview.infobox[t]["value"].toString(),0===this.overview.infobox[t]["prev"]?A.direction="":this.overview.infobox[t]["prev"]>0?(A.direction="up",A.color="green"):(A.direction="down",A.color="red")),e&&("down"===A.direction?A.color="green":A.color="red"),A},switchTab:function(t){this.current_tab=t},activeTabButtonClass:function(t){return t===this.current_tab?"monsterinsights-active-tab-button":"monsterinsights-deactive-tab-button"},sessionsData:function(){return this.overview.overviewgraph?{labels:this.overview.overviewgraph.labels,datasets:[{lineTension:0,borderColor:"#5fa6e7",backgroundColor:"rgba(\t109, 176, 233, 0.2)",fillOpacity:.2,fillColor:"rgba(\t109, 176, 233, 0.2)",pointRadius:4,pointBorderColor:"#3783c4",pointBackgroundColor:"#FFF",hoverRadius:1,pointHoverBackgroundColor:"#FFF",pointHoverBorderColor:"#3783c4",pointHoverBorderWidth:4,pointHoverRadius:6,labels:this.overview.overviewgraph.labels,data:this.overview.overviewgraph.sessions.datapoints,trend:this.overview.overviewgraph.sessions.trendpoints,notes:this.overview.overviewgraph.notes}]}:{}},pageviewsData:function(){return this.overview.overviewgraph?{labels:this.overview.overviewgraph.labels,datasets:[{lineTension:0,borderColor:"#5fa6e7",backgroundColor:"rgba(\t109, 176, 233, 0.2)",fillOpacity:.2,fillColor:"rgba(\t109, 176, 233, 0.2)",pointRadius:4,pointBorderColor:"#3783c4",pointBackgroundColor:"#FFF",hoverRadius:1,pointHoverBackgroundColor:"#FFF",pointHoverBorderColor:"#3783c4",pointHoverBorderWidth:4,pointHoverRadius:6,labels:this.overview.overviewgraph.labels,data:this.overview.overviewgraph.pageviews.datapoints,trend:this.overview.overviewgraph.pageviews.trendpoints,notes:this.overview.overviewgraph.notes}]}:{}},showChart:function(){var t=!0;return this.overview.overviewgraph&&0===this.overview.overviewgraph.count&&(t=!1),t},toggleNotes:function(){this.show_overview_notes=!this.show_overview_notes},changeOverviewKey:function(){this.overviewKey=Math.random()}},mounted:function(){this.$store.dispatch("$_reports/getReportData","overview")}},me=pe,we=Object(I["a"])(me,c,u,!1,null,null,null),Be=we.exports,ve=function(){var t=this,e=t._self._c;return e("main",{staticClass:"monsterinsights-report monsterinsights-report-publishers"},[e("div",{staticClass:"monsterinsights-report-top"},[e("h2",{domProps:{textContent:t._s(t.text_publishers)}})]),e("div",{staticClass:"monsterinsights-report-row"},[e("report-table-box",{attrs:{headers:t.fake_headers,title:t.text_publishers,rows:[]}})],1),e("report-upsell-overlay",{attrs:{report:"publisher",level:"plus"}})],1)},ye=[],be=function(){var t=this,e=t._self._c;return e("div",{class:t.componentClass},[t.title?e("h3",{class:t.titleClass,domProps:{textContent:t._s(t.title)}}):t._e(),t.tooltip?e("settings-info-tooltip",{attrs:{content:t.tooltip}}):t._e(),e("div",{staticClass:"monsterinsights-table-box-list monsterinsights-table-box-table"},[t.error?e("div",[e("h3",{domProps:{textContent:t._s(t.error)}})]):t.rows.length>0?e("table",[t.headers.length>0?e("thead",[e("tr",t._l(t.headers,(function(A,n){return e("th",{key:n,domProps:{textContent:t._s(A)}})})),0)]):t._e(),e("tbody",t._l(t.tableRows,(function(A,n){return e("tr",{key:n,class:t.rowClass(n),on:{click:function(e){return t.toggleMobileTables(n)}}},t._l(A,(function(A,r){return e("td",{key:r,class:t.cellClass(r)},[t.showMobileRow(n,r)?e("div",{staticClass:"monsterinsights-table-mobile-heading",domProps:{textContent:t._s(t.headers[r])}}):t._e(),e("div",{staticClass:"monsterinsights-table-item-content",domProps:{innerHTML:t._s(t.cellText(A,r,n))}})])})),0)})),0)]):e("div",{staticClass:"monsterinsights-table-no-data"},[e("h3",{domProps:{textContent:t._s(t.emptytext)}})])]),t.hasButtonSlot()||t.paginate?e("div",{staticClass:"monsterinsights-table-box-footer"},[t._t("button"),t.paginate?e("reports-pagination",{attrs:{limit:t.limit,length:t.rows.length},on:{updated:t.changeLimit}}):t._e()],2):t._e()],1)},Ce=[],xe=(A("4795"),{name:"ReportTableBox",components:{ReportsPagination:$,SettingsInfoTooltip:R["a"]},props:{title:String,tooltip:String,rows:Array,headers:Array,button:Object,emptytext:String,error:String,mobileWidth:{default:783,type:Number},icon:{default:"",type:String}},data:function(){return{paginate:!1,limit:10,text_show:Object(l["a"])("Show","google-analytics-for-wordpress"),activeRow:"",isMobile:!1,resizing:!1}},computed:Object(i["a"])(Object(i["a"])({},Object(o["b"])({mobileTableExpanded:"$_reports/mobileTableExpanded"})),{},{mobileHeaders:function(){var t=[];return this.headers.forEach((function(e,A){A>0&&t.push(e)})),t},emptyTable:function(){var t=[[this.emptytext]];while(t.length<10)t.push([" "]);return t},componentClass:function(){var t="monsterinsights-table-box";return this.isMobile&&(t+=" monsterinsights-table-box-mobile"),t},tableRows:function(){var t=this.rows;if(t.length<10){var e=[],A=0;while(A<this.headers.length)e.push(""),A++;while(t.length<10)t.push(e)}return t=t.slice(0,this.limit),t},titleClass:function(){var t="monsterinsights-report-title ";return this.icon&&(t+=this.icon),this.paginate&&(t+=" monsterinsights-has-pagination"),t}}),methods:{hasButtonSlot:function(){return this.rows.length>10&&(this.paginate=!0),this.$slots["button"]},getButtonClass:function(t){var e="monsterinsights-button";return t===this.limit&&(e+=" monsterinsights-selected-interval"),e},cellText:function(t,e,A){if(""===t)return" ";if(0===e){var n=A+1;return'<span class="monsterinsights-reports-list-count">'+n+'.</span><span class="monsterinsights-reports-list-title">'+t+"</span>"}return t},rowClass:function(t){var e="monsterinsights-table-list-item";return(this.mobileTableExpanded||this.activeRow===t)&&window.innerWidth<this.mobileWidth&&(e+=" monsterinsights-table-list-item-active"),""===this.tableRows[t][0]&&(e+=" monsterinsights-table-list-item-empty"),e},showMobileRow:function(t,e){return window.innerWidth<this.mobileWidth&&e>0&&(this.mobileTableExpanded||t===this.activeRow)},handleResize:function(){this.resizing||(this.resizing=!0,window.requestAnimationFrame?window.requestAnimationFrame(this.resizeCallback):setTimeout(this.resizeCallback,66))},resizeCallback:function(){this.isMobile=window.innerWidth<this.mobileWidth,this.resizing=!1},cellClass:function(t){return t++,"monsterinsights-table-cell-"+t},toggleMobileTables:function(t){if(this.mobileTableExpanded)return!1;this.activeRow=this.activeRow===t?"":t},changeLimit:function(t){this.limit=t}},mounted:function(){window.addEventListener("resize",this.handleResize),this.handleResize()},beforeDestroy:function(){window.removeEventListener("resize",this.handleResize)}}),Fe=xe,Qe=Object(I["a"])(Fe,be,Ce,!1,null,null,null),Ue=Qe.exports,_e=A("48c7"),Ie={name:"ReportSearchConsole",components:{ReportUpsellOverlay:_e["a"],ReportTableBox:Ue},mounted:function(){this.$store.commit("$_reports/ENABLE_BLUR")},data:function(){return{text_publishers:Object(l["a"])("Publishers","google-analytics-for-wordpress"),fake_headers:["Page Titles","Visits","Avg. Duration","Bounce Rate"]}}},Ee=Ie,ke=Object(I["a"])(Ee,ve,ye,!1,null,null,null),Se=ke.exports,De=function(){var t=this,e=t._self._c;return e("main",{staticClass:"monsterinsights-report monsterinsights-report-ecommerce"},[e("div",{staticClass:"monsterinsights-report-top"},[e("h2",{domProps:{textContent:t._s(t.text_ecommerce)}})]),e("div",{staticClass:"monsterinsights-report-row"},[e("report-table-box",{attrs:{headers:t.fake_headers,title:t.text_upsell_title,rows:[]}})],1),e("report-upsell-overlay",{attrs:{report:"ecommerce"}})],1)},He=[],Me={name:"ReportEcommerce",components:{ReportUpsellOverlay:_e["a"],ReportTableBox:Ue},data:function(){return{text_upsell_title:Object(l["a"])("eCommerce","google-analytics-for-wordpress"),text_ecommerce:Object(l["a"])("eCommerce Report","google-analytics-for-wordpress"),fake_headers:["Conversions","Percent","Date"]}},mounted:function(){this.$store.commit("$_reports/ENABLE_BLUR")}},Oe=Me,Te=Object(I["a"])(Oe,De,He,!1,null,null,null),Pe=Te.exports,Le=function(){var t=this,e=t._self._c;return e("main",{staticClass:"monsterinsights-report monsterinsights-report-search-console"},[e("div",{staticClass:"monsterinsights-report-top"},[e("h2",{domProps:{textContent:t._s(t.text_search_console)}})]),e("div",{staticClass:"monsterinsights-report-row"},[e("report-table-box",{attrs:{headers:t.fake_headers,title:t.text_upsell,rows:[]}})],1),e("report-upsell-overlay",{attrs:{report:"queries"}})],1)},Re=[],Ne={name:"ReportSearchConsole",components:{ReportUpsellOverlay:_e["a"],ReportTableBox:Ue},mounted:function(){this.$store.commit("$_reports/ENABLE_BLUR")},data:function(){return{text_upsell:"",text_search_console:Object(l["a"])("Search Console Report","google-analytics-for-wordpress"),fake_headers:["Terms","Clicks","Impressions","CTR","Avg. Position"]}}},Ke=Ne,je=Object(I["a"])(Ke,Le,Re,!1,null,null,null),Ve=je.exports,Ge=function(){var t=this,e=t._self._c;return e("main",{staticClass:"monsterinsights-report monsterinsights-report-dimensions"},[e("div",{staticClass:"monsterinsights-report-top"},[e("h2",{domProps:{textContent:t._s(t.text_dimensions)}})]),e("div",{staticClass:"monsterinsights-report-row"},[e("report-table-box",{attrs:{headers:t.fake_headers,title:t.text_dimensions,rows:[]}})],1),e("report-upsell-overlay",{attrs:{report:"dimensions"}})],1)},qe=[],We={name:"ReportDimensions",components:{ReportUpsellOverlay:_e["a"],ReportTableBox:Ue},data:function(){return{text_dimensions_upsell:Object(l["a"])("Dimensions","google-analytics-for-wordpress"),text_dimensions:Object(l["a"])("Dimensions Report","google-analytics-for-wordpress"),fake_headers:["Author","Percent"]}},mounted:function(){this.$store.commit("$_reports/ENABLE_BLUR")}},Ye=We,ze=Object(I["a"])(Ye,Ge,qe,!1,null,null,null),Xe=ze.exports,Je=function(){var t=this,e=t._self._c;return e("main",{staticClass:"monsterinsights-report monsterinsights-report-forms"},[e("div",{staticClass:"monsterinsights-report-top"},[e("h2",{domProps:{textContent:t._s(t.text_forms)}})]),e("div",{staticClass:"monsterinsights-report-row"},[e("report-table-box",{attrs:{headers:t.fake_headers,title:t.text_forms_upsell,rows:[]}})],1),e("report-upsell-overlay",{attrs:{report:"forms"}})],1)},Ze=[],$e={name:"ReportSearchConsole",components:{ReportUpsellOverlay:_e["a"],ReportTableBox:Ue},mounted:function(){this.$store.commit("$_reports/ENABLE_BLUR")},data:function(){return{text_forms:Object(l["a"])("Forms Report","google-analytics-for-wordpress"),text_forms_upsell:"",fake_headers:["Form Name or ID","Impressions","Conversions","Conversion Rate"]}}},tA=$e,eA=Object(I["a"])(tA,Je,Ze,!1,null,null,null),AA=eA.exports,nA=function(){var t=this,e=t._self._c;return e("main",{staticClass:"monsterinsights-report monsterinsights-report-realtime"},[e("div",{staticClass:"monsterinsights-report-top"},[e("h2",{domProps:{textContent:t._s(t.text_realtime)}})]),e("div",{staticClass:"monsterinsights-report-row monsterinsights-report-flex monsterinsights-report-2-columns"},[e("div",{staticClass:"monsterinsights-report-box"},[e("h3",{domProps:{textContent:t._s(t.text_right_now)}}),e("settings-info-tooltip",{attrs:{content:t.text_right_now_tooltip}}),e("div",{staticClass:"monsterinsights-realtime-box-content"},[[e("div",{staticClass:"monsterinsights-realtime-large",domProps:{textContent:t._s(0)}}),e("div",{staticClass:"monsterinsights-realtime-active",domProps:{textContent:t._s(t.text_active)}})],e("p",{domProps:{textContent:t._s(t.text_active_explainer)}}),e("p",[e("span",{domProps:{textContent:t._s(t.text_refresh_explainer)}}),e("span",{domProps:{textContent:t._s(t.sprintf(t.text_refresh_ago,t.seconds))}}),e("span",{domProps:{textContent:t._s(t.text_refresh_explainer_2)}}),e("span",{domProps:{textContent:t._s(t.text_refresh_explainer_3)}})])],2)],1),e("div",{staticClass:"monsterinsights-report-box"},[e("h3",{domProps:{textContent:t._s(t.text_graph_title)}}),e("settings-info-tooltip",{attrs:{content:t.text_pageviews_tooltip}}),e("div",{staticClass:"monsterinsights-realtime-box-content"})],1)]),e("div",{staticClass:"monsterinsights-report-row"},[e("report-table-box",{attrs:{title:t.text_top_pages,headers:t.top_pages_headers,rows:[],emptytext:t.text_top_pages_empty,tooltip:t.text_top_pages_tooltip}})],1),e("report-upsell-overlay",{attrs:{report:"realtime"}})],1)},rA=[],iA={name:"ReportRealTime",components:{ReportUpsellOverlay:_e["a"],SettingsInfoTooltip:R["a"],ReportTableBox:Ue},data:function(){return{text_realtime:Object(l["a"])("Real-Time Report","google-analytics-for-wordpress"),text_right_now:Object(l["a"])("Right Now","google-analytics-for-wordpress"),text_active:Object(l["a"])("Active users on site","google-analytics-for-wordpress"),text_graph_not_available:Object(l["a"])("The real-time graph of visitors over time is not currently available for this site. Please try again later.","google-analytics-for-wordpress"),text_active_explainer:Object(l["a"])("Important: this only includes users who are tracked in real-time. Not all users are tracked in real-time including (but not limited to) logged-in site administrators, certain mobile users, and users who match a Google Analytics filter.","google-analytics-for-wordpress"),text_refresh_explainer:Object(l["a"])("The real-time report automatically updates approximately every 60 seconds.","google-analytics-for-wordpress"),text_refresh_ago:Object(l["a"])("The real-time report was last updated %s seconds ago.","google-analytics-for-wordpress"),text_refresh_explainer_2:Object(l["a"])("The latest data will be automatically shown on this page when it becomes available.","google-analytics-for-wordpress"),text_refresh_explainer_3:Object(l["a"])("There is no need to refresh the browser (doing so won't have any effect).","google-analytics-for-wordpress"),text_graph_title:Object(l["a"])("Pageviews Per Minute","google-analytics-for-wordpress"),text_chart_tooltip:Object(l["d"])(Object(l["a"])("Unique %s Pageviews","google-analytics-for-wordpress"),"<br />"),text_top_pages:Object(l["a"])("Top Pages","google-analytics-for-wordpress"),text_top_pages_empty:Object(l["a"])("No pageviews currently.","google-analytics-for-wordpress"),top_pages_headers:[Object(l["a"])("Page","google-analytics-for-wordpress"),Object(l["a"])("Pageview Count","google-analytics-for-wordpress"),Object(l["a"])("Percent of Total","google-analytics-for-wordpress")],text_right_now_tooltip:Object(l["a"])("This is the number of active users currently on your site.","google-analytics-for-wordpress"),text_pageviews_tooltip:Object(l["a"])("This graph shows the number of pageviews for each of the last 30 minutes.","google-analytics-for-wordpress"),text_top_pages_tooltip:Object(l["a"])("This list shows the top pages users are currently viewing on your site.","google-analytics-for-wordpress"),text_top_pages_button:Object(l["a"])("View All Real-Time Pageviews","google-analytics-for-wordpress"),text_referrals_button:Object(l["a"])("View All Real-Time Traffic Sources","google-analytics-for-wordpress"),text_countries_button:Object(l["a"])("View All Real-Time Traffic by Country","google-analytics-for-wordpress"),text_city_button:Object(l["a"])("View All Real-Time Traffic by City","google-analytics-for-wordpress"),seconds:12}},mounted:function(){this.$store.commit("$_reports/ENABLE_BLUR")},methods:{sprintf:l["d"]}},oA=iA,aA=Object(I["a"])(oA,nA,rA,!1,null,null,null),sA=aA.exports,lA=function(){var t=this,e=t._self._c;return e("main",{staticClass:"monsterinsights-reports-page",class:["monsterinsights-report-year-in-review","monsterinsights-report-row",t.yearInReview.is_enabled?"":"monsterinsights-yir-report-calculating-row"]},[t.yearInReview.is_enabled?t._e():e("div",{staticClass:"monsterinsights-yir-top-header monsterinsights-yir-report-calculating"},[e("h1",{staticClass:"monsterinsights-yir-title",domProps:{textContent:t._s(t.text_calculating)}}),e("p",{staticClass:"monsterinsights-yir-summary",domProps:{textContent:t._s(t.stringsWithYear.text_year_in_review_still_calculating)}}),e("router-link",{staticClass:"monsterinsights-navigation-tab-link",attrs:{to:"/"},domProps:{textContent:t._s(t.text_back_to_overview_report)}})],1),t.yearInReview.is_enabled?e("div",[e("header",{staticClass:"monsterinsights-yir-top-header"},[e("span",{staticClass:"monsterinsights-yir-subtitle"},[e("svg",{attrs:{width:"75",height:"76",viewBox:"0 0 75 76",fill:"none",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[e("path",{attrs:{d:"M0 75.25H75V0.249999H0V75.25Z",fill:"url(#pattern0)"}}),e("defs",[e("pattern",{attrs:{id:"pattern0",patternContentUnits:"objectBoundingBox",width:"1",height:"1"}},[e("use",{attrs:{"xlink:href":"#image0",transform:"scale(0.015625)"}})]),e("image",{attrs:{id:"image0",width:"64",height:"64","xlink:href":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAgrklEQVR4AczOc2AriRoF8DOZJBNOmhRpG9W6tVfXtpbFtW3btm3btm2nVurwRp339r3VXXv39/f3nXPY+B7Pj3by2NJAacnd8RUALPgdpjF5jZvJgprmGMrO5RnKjwEw4l8iS+h4T+Kk3QAcapt3jk0U4lsJdU+0kPgmjCGEPGn2ka49AZzAb9TH+EDdSx13xVPqraxy2lFi0l97mpkxCcAx/MNOSQx1B/WcsUOYkScav3JifQAXiOGiUCyWBLC8YkdOloUlj2BYVujubhhRcmv5KgCl+I0mSAU1B3rHngNJASQDUBQcTph2Pr7aB8A6fKWvS6KMpajpC+AO/gRTnk6ueao48yWAfPyERvVbTekwdMFIZGXg1frll8aeXleHIAiK0FRfPk1Tp/0ws7GgIuvExDYAzuJ3al58UdPFrdr2KIFbEkWyCZAEIBTBDMbU++rGJgAuHFJ3dveu3nYzT+EX/+LA6hQAx/E7tXw8g9NGFdG/TmLjCdeynuwBkIafsOz15YT1I1adFXmpRc6L552T10ytT7j6p1UParnuAiljqp5tSUkDsBV/UL+ch1KriBdX19VnTE2JojpYBCB1Q7buzZnUQnvvgtZzlmkCvWtySKCySF/8aEO3FACn8BuF5Rwi+qoSJ6eE1RoJV1eApjH0yIp0AJvwIw5p7xBzmvXY27hxSkvk5uPcrvUriKAmRxfSSY36mHTP7gOIwR+07PmC8d4ELQPQt8+NLYLuqug1zVw0n5EcChDxrRN0xmm7aw1PVQZ4B3AcAI8C7m6eNRrAFPwO7bW7hoyOaDITYhrwlmPXtSNzAAzGT8jWF3cf1KTzMoBE/uVLl9lVLFJisQBOgqLKHxz2ZwvVWgAMfqP40+25PT9o3fOjT7uPY9mdOL9zjcRg1veYoL3Skw6iImqLFdVA8qlmnJzIA3sGp1naL9svlUvkWaePTyx8cHwefqe55fcWJkvVTepEfFhj5/X9E3fdPTcbP6OhX2QhcnMAIQ0XkuIRnrGjU6XJEzeRYgIMy5xZZdW/dhhLtIyzKoPFEFl2Q+k9AM/xCzrfHB01oOPQ+3wPTzDGShDFpei9dsJnAHaY2cync32rb3cRu8FIMQUdTq4KvqL+KM49uEUwgBX4g0LuTQmv5+YfCmAXfonROKpzUO3JEEpQlPHmGiFw/0DkETd0Ox3cvAnBA5wsgAHAMAyYKifAOHSlN9bPAjAbACYkjXWJayhdnvu64j6A6fjK/qlCXpI8YUjHWm0m8tgkjp/av2HszUODAJS6S4SuY/zeu5NMqzRwl2PZjb2ffDX2T2esMAmiWS7JBptV6Q5uno6xvjATTImMxWUeQR/3uWfYDo3cTwmhCEufnJpILPH+EKM4HjK3aulj+fLEVIIndbWDBZvDCoulAiSPBseY+RhARDf35qrUni4rvEPEjRwWY9XAbtp2ADbjOxrmNuwptIsi1t0/0heAHV9J8gpa3t0jvBuh8MWJ3CcLAPTHn2zS7f3qmcrEdfEewUlOmZuD0ZscDl2xtcpkMRE2h0PM4QWyaCkbLiJkGgoutnq2tzURzRLhayWxfcM4YkUEyZVFWBletIGUN3H1DoLh7twxACav6XWkV9NOnosBPQAGb/MNFQP7ZMb48Hk1FDTnY7udKTSVMkfflDivACjCd72WfzJOlbBDogzEY4fxOIBG+JOtuHuwz7SA6gvLuNSDs9Tbz6R+AW5cvSUy0Mlt6GFyhrMNJq7OUJaRqcs7/Lwgax0AHbFMEInvGx3WXs73il9EK4KaMAXnF2jPjBoHwJ4YXK4cPSZoRf0WdGMwRqyflzXh3lXj8/RYepsuR48nZoAkSfhR5COdkzn1rMK2BIAWACrPeCSN1cRe1ChCuHl88vr2I9tqArDiT5TvwR85SJM4BVaHduKjsxEAzPhKi86dhcLyCv7zB/f0AGz4CrEiqi6+NoqXIhN4RAzgewd14hLFelvW8SEADuE7JFkj5KtXxu2+cDHzGoChRLb5VPMofl3Ly2JUMsAzOw9xFA0VReKI0ZD9xmzbmFVom2W7L+UPl8Q/DlWFuuVJ+A83Ht1QHUAlACwJ7ccRqIJHFWU9vATgDH7Crjf7Arhgc0oclvyvf7/rsKiyXlef+JNhlASHtY8WAeiLX0BsUn2ILw1Xd20sCWk8i8UnfN9mHZlrK7q3CEARfkRrv11iAIYrtwrD5nZSPgjSCNjWrGLYDGbkERT4dgFoFhuvSRvMJINym+1a/mNyV7PXMf3ivMI1JXzyxaGbZz8EUDJIEiP3rtF3Fh0dnqbPKXjxcsewhv/pxi6A47qy/I9/733Qr1+DwGKwzMykSRx0yBRmnkx4mJkxDDM7szsQZmYzM0Nky7ZkErPU3WruB39tZFdcKceD+1/4VP3qtFjnPLp9gaOc4NzOhfLGwJDvX+Ub/kWZsbVeJ9182I29vSXU+CAQ4fiA1LbATYMmL52eU1op4vHUewc+vAZ4l1MQPw+M4vcVF5828JxfLLNke7h53cMX/63r87nZT/zgzrklvxw6agBKpJuummYsqRJKGrRZkFLB0AVen0u8WzBowYj0ZO94PRHQD76zY+t0IPTt07/yh+JzrrjXzoAnCB1bVr918JV7rgEsjvm63x3+s4Gnb/eZeQEiCd7vqX0qMaJIHxJxBq2s2vFlYAfHvOftvvALwysXqbYlUu3de5a01J8JhPgU6uFkFNfqzXcUy2zd+fZPpX/o39R8ft2XsydMKrhemAZdepCSMp3seJxEW4Qu1SbtShT5nxEIIGBKVNXRyThYOTlqt7/XBujd9+ryAePn3K4WenU9mgl7Wne/5yYPuJxgWNnpJZ7iIj9FZaQ6u1O1jZseZmfX3vphRT85d9KMF9tqDz92qKf1z4B9VTq45IOmAz+dkFPw03LDHKQqSsGpBiDuMCp4RqRzK8564CXHP6QskVGOeP1lEYTATnSoUvVoIG3h2N1WuHV5qnXDW0B6hv6jM++aXb66aEypEHkD8OuCkkw7yZoj1HXZNFo6jhR4VIHXB0F0/C+VMzw6Fuvs4tTTytP/vqr68A+A+NrYfd8pP+/W2yNbF33lZG+bf9Px+gXzJ5+3RI4cS6K9Lbz5xefPBKoAVpU5l8zPHvF9raGzu7Gp7okjsZ51bZolp08cv7LC8Q3/ye4lFUAjn0LtyMSYC91r9792Xe74G64wpRiXbN5oaJo3FcgbFheum7HSCY+rekd4B0/4HU76uu7t37qhZJp+Uc4Ar5ABE8dx6QrZKN4gRQML8CXa8fS6WFIiBQS9Kvmmj7SQ2GkHRVc886Znf7WiNGfsoo2RL1zl/8H9CxfFXvi0f1S6wsX0QVEJjqrKqCFUjpnWqbz7uqzdVDly+E1DhhbfNTqWvlfzqJm0x2XBjs1PtdrJdk5BVOLnb9Uw6+Ebjdxzn/ce+NEDn69ceMH0mcMmayWFpNKQSdhgOQzMtvDF29i7r5uIq+DVJcOG+PG5Jt2/CVARHYkzbxjxM5fjVQ9xsDF+6P2tiS+dasOkeNOks28877rl+jkXKpl4LPP2T75+HrCWTwidPT6YZ2aNrT6yLxCMpVrXfLhtD+BwCuKq4ED+VmvGfmlubvnlH4wK/6rtrtMWBIrGjzRdf4BUzMJK2TiWhYZgRJFNrLWZfYej5A8wGTUqi3SLoPNXASqcUaQvGU7o9FUEPQ34hEV7VzT+1vqOnwEPcBJH3x8246cX3bbKPP8SL5rGiz/4/JXAm/wLqJcXT+BvcVtHWBk2+MyvBu04IwraC4N9jQnTSybj4lguruMghEs6neFIk2B4aQFD0w66YeA1VJLRNCIjELqCo0sSmTSW7aBkGRQPMcxbg577P9gQGrxwW/KbQIwTVKDE7N5IkmjES0ExJfmlJfyLqH2/jL9Fjm/wVUX54y5wqt+zho5KumZBjuZIBTvp4NhO/wBcB02FZMKmNaRTNrSQTCSOE8/gJlykLRCahqMJYqkkHhWSjorp1fEN1bkmqN5TGAyV/fvCyF1AC8e0pOKRWLg7HujpziGvAC0YGMy/iNr3y/hr5u47OKzyst8/kmrd71hHNq5QhpWfoeXpWjJpf3z0XQeJi8BFVQShkIXX1BiQ5SXRG8aK6yiWApqGo9poagafqaNKBdsBRfUg8nI4+1xlvt+nvPXm2t7PAdUAu3al21tCna1FXd2lFITx+byF/IuInVf/iFOZuXproPKaR9/KUgrO27vqoedHdBzU588/+5rKWw+S6fmQVK/AsW2EY6PQF4AMCFwMr0vBAJWs3CSti9IoDxdRNnIG3VcaWBPeI8tU0AyJ4pUgBCCR0gE3yeHtHTWPvtJ+G7ABYOCeSTffMPWM2+OFOe2bNiz+I7CcfwHx7MRZfJq76lP6lHk/enLQwHNv3LXuiQWJvS/99JKBk98aMvHi0mEXtFJY8Dqx1m5AIF0Hhf6zQLqgKA6KBFVCQYGKTorYH3Ry6mcTu9FCn76IYMCDLQS4AoRASAUUBakBSpL6za3Nr7zfcTuwCKBoZ6UC2PyNvl/2BcXOxL2aP9vIpJJeoWpBb15ZIBPv9cVa9piukd0sci98hU9jH15ojJly2X3JSG9R7baf3zvV47lw9sR7XvaWTEP1w7hZ76Kl1mDFHBQpUOirwkVV6B+EcAHQJeSXqBhugtjCqbjlJoHKLXg8Oq4rAAlSIpRjZ4IUCB2EmiJyoLtn0+quO0511//s0h8LxZuVoxhmieLzj9WCOWM0f2CE5gsWSUUGVVX1KYpqqor0q4rilarmUVUh0rFErZh1X5y/1YTFs9YPLf3u6XawhHiHRuGIOkbPfB23+wDYKqqkL/2NS9E/BCFBAroU5BbKj2q4ySFroII3S8exAUVB9AVAAEhAuAjZFy1D/Eiod92C2ttP3EW6c8czeUZW/kQtJ2+W5vdP10x/qcdrluiGke3RQVNAlaD9ZwBdBVUAgBSg9Z+dverEMi9/i5rHxORxledOSztZpNMKkjTNu4sJ5s1k0IgO7K4OpNARwkVAf4RAClAEOAJCXS65OYKc4jTxkIM0VDymBxcBtgAhcAXgOOCAsGxQk5jD3MC5F+c/8ZsXxhtP1X8plTNo+HWl07JG66Z/mMerqV4NdAGGAh4FdAW0Y69VBcSxpl0HXBuE6P9836q6QU21h/lbFGR75gwek9SPNPYSPjoAQRzXkhxaPYas3HYKcpdhh2IINIQAcfwsEOL4WY0LhCOQEwzgN5NE28K4hbm4rkEi7BDIFmgm4IJ04yDjJBN+djedxtLmuYGqkpHPDi4sxzBABzwSTAl+FQwdFMC1XexUOmFl0tFwIt4ZjYSb0+lMUzjU0g5qh+vYvbZtxTN9aayvqVEXvvUkf4159JtZt80pvCF/sEVc2Ux7bTlORqJqadIhjQOLP0PgygiB4Dqs3gxSVU9ovD9CCmRfAHpjNlkBk6Bfoaexi6idjVD9KIpNjj8JJAn35rCy7hKW1l9Ebc8YQikVnw4eIBMHzYCgCXoqnU709LS19jRVhTobNsWT8d2O47bFE9Fuy1G64rHunlNt86uuZfHXlOVp44cMyhpjq0FyC3eSnT+G9sMj8agpdCNNpCFA9eJzmXJJAiOwFTtmIVStv/HjzR9P/+lBLGGj+EwG5KvYrSES8QxatkkkGmDZoUv54OA8DvYMJ22BR4LXgUQYLBeKvF1kGvZV7Wrp/KOuyN2hnkP1QD0nYUqVU1E/+Q3TG54+496SiV/e8OH2XwO7APae5bm8tDxHZGwvUvYwcMwCIk1FWHEDXU2iGGk6qvOo1i9k0sUZPHIHdjyDkBpCiI8ij0fKvggEgkTSRga8FA3WibU1UFuXyx/qHmRX50gUF0wlg8hoRFIQEAkm+Ku4aOxipozaQ9vW3cnPLgs/CST4J4iRA4s4rqjH9f3svBvfnSr1Wfv3VzU/Wbf/eyvMI+8/fHP59hHnjxzUYalYsQSq7KVp79nUrr8KVVioqoWSkThJDyXTWpk4dyGGswM76iA1neNHX+mLFLK/yr6qSlRVYPo9yKBFS12CF9bN5b222wmRh0hDidbIafmruah8MWOLqvGVhCHXhF5Y/GbTott/13U1EOUfpEbjrRw3b9ic6yvzymY1H6wiaJolmqGdOaVAaz2rIq/8sKJhxTK4FrhSZeDoVaR6CmjYfT4mvRgyQ9IQNG4tR7qXMPlSDSN7G1Y0gxSej4cgjjf/cVzbAcukeKLJN8teYfii3Txd9XkmlzRwy9jnGZR9CJQMCBMnngOKhnRcLppZNvsrR8VDwD38g9SvXJzHcQO20VHfdPioFzmoOhLqXh6rv+/rQ/xf14uDSq/l4mZswMa1VaSSZsSMd3B7c0kcGIPw2ghV4jHTNO8oQdI3hMs9mDlbsHpT/UMQsr95RfQffU2iaQqyr+I6kPDAsPFcemMnY5d/hUCqi8JiE+wAVsRFOA74QQgHN2kRC7tcc3be3b96uWUD8Cz/AHHn7CxONHT/qGGV2aWPvNNUs3GjXv2n528dvk89c0h+XcKBeArhWKjHVnymN4oeyaZ60W3UNU1C9SVRJeAqWEmT4nHdTLlqGVnGBqxQDKkYqKo81ryCpit9VUJfxaP2RYGgDr4gZDK0ra8hdKiRQp9BttfAUcH1SoRlk45bhBM2PlNytDnefNWv688CDv3994AyjU8zsSLnuh/fMeSlRFEu8VAaN5NGwUbFwVAcdOEQNCKEesrZuuRewi0jMMw4igJCqFgJL3nDoky7ajX5A1aT6elBKh40j4amS1RNhb6K0d/8R9WrgkcHcoA8uj6sp2XrGrL0NEVFPjRhY8Vt4imXSNomkrCpMBVeXxd+BbiOY0orsy7ctTcUATZxCuLBbxXxadobBy+66bbARdGYJBNLIZwMCg4BJYOp2GRcBSFAM+NEuwdStfhuQq0j8ZhxFBWkULCTXoLFGaZetZnyYctxws0oaKiGAbry8fLNq/ZFA00DoQEKkAVMJ9HWw6FV/4Hb3UZ5rkqWLrAzLj0xi1DCJkdoxBJK+suvNc8679wBvfMvK/nGwEn5N9XVtuz94k07K0/1pBCzJymcTM2eqaO/+aXPbD3zsgZfT3MIx3KQjoVX2hTqCTJI4o6OlKBIMMwosZ5y9iy7m67G8Ri+OKoKUio4aQMjSzDxsmqGVy5DJGogDXi9fVE/jqYDKqAdqwpgAgUkj25h/wcrySQsAqagOMsly3TBAScq6E5pvLQz+er4+WWBc+ZVzAEXyPBvv9r+w2eebPn1py2G1M6IzcmUZZfM8ugzfSlnDbhtCEeiCBe/aiH7quUofRXEsVjpAFl5zUyb/wf2rLyDtsOVqEoSRXHRgzY4Bnvem0EqVsLI2SvQ1W2QToChHz/yxxs/IRZYDdC7E086QfHAfBqPhjjck6K226E8x6HEdAg6Lj7NJZnIFL30UsszZ88pmiOkBgQ457yKmWuXtupAipNQh5QLPmnzutHe8ycOvzndO4y2hnZy/Hux0gk0KT5q3nZUPC6guCA+XuHZaT++7E6mzfsPDqyL0VB9AS4Oqm71xUWRDs0bR+BEixk2fwi+0rXgtoF0P9G4BOKQDkM8ClIiBhgEB3jJ1PeSdiRpS1DVaLPbAkNxcV2HbYeTG7cd6H1+zaLOa6eeVjphz6a2J9cs7/73A02kOea2ofne0hLfvBVVTduAo+LeaTqftPno8KmXzvzqxkD2aZrmb2HiBa+gx3ei2AoB1SVfWCSFQlxIpCIQfel/vEmkkBjeFIrQOLz7cg7vvAqEH18whcejoWs6OgGyClyKzt5HYNw6hLIXSAEGIMGJQzoCwgYcaI/RXBWitqaXzlCMRNrCsl1cIJ1x6O612w41JZ9esTP6SyB6xpS8ijNnFHqB/Rzz5rOH9asnZ884c3LpD4ZPKp69ZOW+54GbxeJvjOCTnt1i/Pj00Y/8LB7PIdaZZuQZexk15Q2cnhbypUpQ2kRdBVtKbK1/I0ORoi8S9aPXCh6vhcfM0Hb0HGq3fJZ0dDD+rDQ+n4JpeNClwKNBYGQE35RdiJyNwCFwYmDboCkQTxI7EKamCg626sR6u3DTzTiOTdqCSMzubu5Mv9PYnnkE2MMpeCKekvtvGrWhfHRhBa7AtZPc98TGS8Sv5+Vwolf39WTfdNFZG4Lq/aM7miV2tH/3dsrl6ykvXYg3FMGLgnQFMY+KrR5vuj+q0r/AUTQVw3BRg0ni4VEc2XY7yZYZ+EwwA+DxgH78fXwQGHwUOXQ5wtwG9OA29dCwtYvqwwFaMwVk0lFEtBYnEyGWJNIZtt6vbUg+Amznb7B0S0r97rwh933nljHfQFWxHDX6l9d3fkf8+y0jOdGyw0fPvvdz01c01HxV1u+uQJcRnKhOVkGaGdcuo8xcidkVJeHx9kU93vTHVe2ruoLeF01XEV4JWWlcJYvu/VeQ2D8XJeXDCIDXC5oEJwnYoA5IkqhYT9R6m+bdazjaECac9mFZGZxUnHgimWhoS33Q2sMjwEb+TodqZfEzX5y2Ss8OdK7b2Pit93c0bhTXTijkRAPHycdvvm3Il4/um8Tuhdej2A66sLBjJgVDejn3ygVk6evpidtI3UCVAkWRfVVB1U5o3qMijj/fTQ2CDmgOmc4JpHZdjtI+FsUGoYFmgJ3OcKimnk079lHXXotadAh/SROCNpKprnQo1rG4sT39MLCaf0K+W1pR4NO6gV4A8cClYznu7f0Hiu69ZfTWcVNLyiLdMWrWXEP7vtPweuJIV+LGDcpGhph47RL8xibsSApVNY6d9spH0T3HmjcU8GofD8CjgRRAClwD52glzsELEZFyutpibNu9g5179tHWFiaVAhQX2xOxk27P8oRofAxYyN/BUpb5z6zQCoDDp14JnvBeYFvSnfeFuye/r+pe3HQHmd489i6+h1jHQLxGHImClTApGB1h+tUryA2sww7HUFQDzaOd0Lx6vPH+eFQQEhD0y/QnY9KzvITFL/vYuStNOKQhFBdHjdKTbl/Z0HP4t8JW3gNsgNaZ93w21FXtAs/wV9yZ+9j1372u+MHqvZ3P7antfcYr7RrA4RPEM5f5AHh4e1xcMbv8uYsvHXNjNJxCWin8Zi/hprFU9Q3BTmTh8SaRQsVOmQwYlOgbwnqKy1bjhDtRFQPN9CBObNxQQVdASvoJQAEc3J4eWnYcpPrDJppbFWKRXLra82npFOuPNur/1tlpvwmkAWoGVJQVT7nyh/kTzrw7ns5kDrz9o8uABXyKwS1/1B68behrF87OvZR4moaa8K6XlzSfB3TzCWpbzAUgEFArxo/Ln+M4AteywJEfNVo0uAox6wX2Lr8dJx1A86XQdYtoSxbbXp7NlCtLGDJ5BSJ5BGwHTBV8x055XYIQgPvxAicTJ7K3iQObGjlSHyVmqaSsDCGnYUtIP/gfXXrqlcAQ4n05jvrwDyfkTD73btejYWb5tcGzv/dEzWvfmwS0cRJjynOLJ48tmgUWqC7xtJvZXpeOcRLi2hEqANrQshs+f8fQF1wL0rEM0hYEvCm8hoXhTdBy4Cz2rf4cVioH059E1VRwveg+DyMvaGD4eWvRvTvBSYDuAVU/vhsKaICN1dTOkY317N/bSXc0Q9KCUMzeVX008afOsP080MtJLKkKeMvOv/835Rfd+hUnmsl0bl/xaEvVmp8DJ23q+qxnfVedM/Km8WOMuwpyYlP+48XqHwO/4CTEH64r4Fevlan33FX67vxLM3Mi7VGEpaArNj4jgyZB0xy8viQdR07rG8LtJKPlmFlJPKZEVb3oSoCisUkGnbcT36D1CHkIyAAGoEMsSsfOevZtaaaxLU5v2iEUdaprGpNP9Mbtp4Ae/op3dpWbQ+be97Abs1YDL/M3+G7OQ9mqaV/w6IKqLUAdJyGmDDRIdFSO/to35m+dcvoGX6K9EY+i4VFtdBVUKVBViaaB6UvQ2zGW/RtvJ9wxCV/QJZANpuFFEwaGCTljWxgwZQdywF7gEOmjR6hZW0dtTYSOXpeuqFPT1/QzDW3pPwMd/DcTN83y03Rw3j1XX37vv48580181lpUW0PXBJoCqqKgqfKjqusSM5jEsQo5UnU9XUfnYih+/Fmg6Q66IsnygTcI3UoVrfHXqT+wjebOVnozvUeaOkMv7D3U+weghf/Prq+qkCd9CpTpgzxzK29fMrz4srOKR21jwmkvIcNt/Xd1TaKpCprSV7X+R5xhaOhZFgRUQq1n0lV1JXbncAwDcgdAJpVg9/a9bN28j6auNuKejsb2VOMrVqDud0Ad/5/d2pAZX/6Zs+4kZesn2zwV544ePnbWhPu3qMmBpkzFmXHlBioGf4ATjqJp3r6oHw3BY6h90dBNDfx6XwT4Ujh2DqmWc5F1ldTtslm7Zj/VtYfoSDS39ro9b6St9GPAQf4/a2p9V3x1/KwfXX/lPV/xTKrMzbS1OPd944bTgc2cQNw6t/SGqWW/eyHaUIqMZcga4FJ53SqKS5fhhuNomg/dq2EYKrpPB//xDQwBPg1UB5I9NK3pYePyBFX79K6OiPrWtprEo0A1/42uGDTw19+99zffw+OB3Hx2v/inFX985mdzgDTHqCOH26eVFm5n/8EyPB5IdXnZ/eZFeK71M3DwCkS8B03T0f0eCOhgqH1RwKeDZdH7YTvV649QVdMRbuiOv1dnJx/Gx64xk/lvt2Jd07/f9uHmOwsrZ+Vl2o7G4prVHpEe7cQBiN98deATs04b/rk9H9xE6Mg0fP4k2CaBPIUpl1cxrHIVqlIPCPB4IWiApmA191C7to5tW1pie+sTH0RS7iPAZv6HmdR14TdmTpk5c/v25Y9U1dVuBjKfuAQKb/rG3eXPZboL2LPkHqIdYwhkpVFVL0bAz/Bzuxh89mZ8BbtBC0EyTPOmFjavaErtPRJZdLA1/Qiwhv+lxOQRRva3bxv5/jmfUWf2NJdQs+5uIh3T8ecKgtkaXk+QvHLJgJGHiMsFVG9eau2q3r+sur71UWAJ/8uJW84P0JhQx/zs9hGvjx8pR9upXOr2XUO4dTamUYDfB7GuVnbu3GSv3bdsZZfd8Xj2wOaFgM3/AeL6s84AwFdSN+LmC8oenzzRnB0oM3HCYzmyfQa71kbiqzbvWLetbtfvWxPtCwCL/0OEC+rxpr59e4U+sth3zejh5rW2HQp8+GFndXWN9eLBIxUbAZv/g/4fMTTuoax+Ww0AAAAASUVORK5CYII="}})])]),t._v(" "+t._s(t.stringsWithYear.text_sub_title)+" ")]),e("year-in-review-reports-pdf-export",{attrs:{"report-title":t.stringsWithYear.report_title}}),e("h1",{staticClass:"monsterinsights-yir-title",domProps:{textContent:t._s(t.stringsWithYear.text_title)}}),e("p",{staticClass:"monsterinsights-yir-summary",domProps:{textContent:t._s(t.stringsWithYear.text_summary)}})],1),e("section",{staticClass:"monsterinsights-yir-audience"},[e("h2",{staticClass:"monsterinsights-yir-title",domProps:{textContent:t._s(t.text_audience_section_title)}}),e("h3",{staticClass:"monsterinsights-yir-summary"},[e("span",{domProps:{textContent:t._s(t.text_congrats)}}),""!=t.yearInReview.user_name?e("span",{domProps:{textContent:t._s(", "+t.yearInReview.user_name)}}):t._e(),t._v("! "),t.isMoreVisitors?e("span",{domProps:{textContent:t._s(t.text_popular)}}):t._e(),e("span",{domProps:{textContent:t._s(t.text_you_had)}}),e("span",[e("strong",{domProps:{textContent:t._s(t.commaNumbers(t.yearInReview.info.users.value)+t.text_visitors)}})]),e("br"),e("br"),e("span",{domProps:{innerHTML:t._s(t.bestMonthVisitorsSummary)}})]),e("div",{staticClass:"monsterinsights-yir-total-visitors-sessions"},[e("div",{staticClass:"monsterinsights-yir-visitors"},[e("img",{attrs:{src:A("648d"),alt:""}}),e("h4",{domProps:{textContent:t._s(t.text_total_visitors)}}),e("span",{staticClass:"monsterinsights-yir-number",domProps:{textContent:t._s(t.commaNumbers(t.yearInReview.info.users.value))}})]),e("div",{staticClass:"monsterinsights-yir-sessions"},[e("img",{attrs:{src:A("0097"),alt:""}}),e("h4",{domProps:{textContent:t._s(t.text_total_sessions)}}),e("span",{staticClass:"monsterinsights-yir-number",domProps:{textContent:t._s(t.commaNumbers(t.yearInReview.info.sessions.value))}})])]),e("div",{staticClass:"monsterinsights-yir-visitor-by-chart"},[e("report-year-in-review-by-month",{attrs:{id:"visitorbymonth",chartData:t.visitorByMonthData,title:t.text_visitor_by_month_chart_title,"sub-title":t.stringsWithYear.text_visitor_by_month_chart_tooltip}})],1),e("report-year-in-review-tip",{attrs:{title:t.stringsWithYear.text_audience_tip_title,summary:t.bestMonthTip}})],1),e("div",{staticClass:"monsterinsights-yir-separator"}),e("section",{staticClass:"monsterinsights-yir-demographics"},[e("h2",{staticClass:"monsterinsights-yir-title",domProps:{textContent:t._s(t.text_section_demographics_title)}}),e("h3",{staticClass:"monsterinsights-yir-summary",domProps:{innerHTML:t._s(t.demoGraphicsSummary)}}),e("div",{staticClass:"monsterinsights-yir-countries"},[e("div",{staticClass:"monsterinsights-yir-top-country"},[e("span",{staticClass:"monsterinsights-yir-number-one",domProps:{textContent:t._s(t.text_number_one)}}),e("span",{class:["monsterinsights-flag",t.topCountryFlagClass]}),e("h4",{staticClass:"monsterinsights-yir-top-country-name",domProps:{textContent:t._s(t.yearInReview.countries[0].name)}}),e("h5",{staticClass:"monsterinsights-yir-top-country-visitors",domProps:{textContent:t._s(t.topCountryVisitors)}})]),e("div",{staticClass:"monsterinsights-yir-top-countries-graph"},[e("report-year-in-review-list-box",{attrs:{title:t.text_countries,"sub-title":t.text_best_month_visitors,rows:t.countriesData}})],1)]),"undefined"!=typeof t.getMaxVisitorGenderObj().gender?e("div",[e("h3",{staticClass:"monsterinsights-yir-know-visitors",domProps:{textContent:t._s(t.text_know_your_visitors)}}),e("div",{staticClass:"monsterinsights-yir-visitors-info"},[t.yearInReview.gender?e("div",{staticClass:"monsterinsights-yir-gender-info"},[e("span",{domProps:{textContent:t._s(t.text_gender)}}),e("br"),e("h2",{staticClass:"text-capitalize",domProps:{textContent:t._s(t.maxVisitorGender)}}),e("p",{domProps:{innerHTML:t._s(t.maxVisitorGenderSummary)}})]):t._e(),t.yearInReview.age?e("div",{staticClass:"monsterinsights-yir-age-info"},[e("span",{domProps:{textContent:t._s(t.text_average_age)}}),e("br"),e("h2",{staticClass:"text-capitalize",domProps:{textContent:t._s(t.maxVisitorAverageAge)}}),e("p",{domProps:{innerHTML:t._s(t.maxVisitorAgeSummary)}})]):t._e()])]):t._e()]),e("div",{staticClass:"monsterinsights-yir-separator"}),e("section",{staticClass:"monsterinsights-yir-behavior"},[e("h2",{staticClass:"monsterinsights-yir-title",domProps:{textContent:t._s(t.text_section_behavior_title)}}),e("h3",{staticClass:"monsterinsights-yir-summary",domProps:{innerHTML:t._s(t.behaviourSummary)}}),e("div",{staticClass:"monsterinsights-yir-pages-data"},[e("div",{staticClass:"monsterinsights-yir-pages-summary"},[e("img",{attrs:{src:A("1134"),alt:""}}),e("br"),e("span",{staticClass:"monsterinsights-yir-time-spent",domProps:{textContent:t._s(t.text_time_spent)}}),e("br"),e("h4",{staticClass:"monsterinsights-yir-total-time-spent"},[e("span",{staticClass:"monsterinsights-yir-number",domProps:{textContent:t._s(t.commaNumbers(t.yearInReview.info.duration.total_minutes))}}),e("span",{staticClass:"monsterinsights-yir-type",domProps:{textContent:t._s(t.text_minutes)}})]),e("h5",{staticClass:"monsterinsights-yir-each-visitor-spent",domProps:{textContent:t._s(t.eachVisitorSpentSummary)}})]),e("div",{staticClass:"monsterinsights-yir-top-pages-graph"},[e("report-year-in-review-list-box",{attrs:{title:t.text_top_pages_graph_title,"sub-title":t.text_top_pages_graph_subtitle,rows:t.topPages}})],1)]),e("h3",{staticClass:"monsterinsights-yir-most-visitors-device",domProps:{innerHTML:t._s(t.mostVisitorsDeviceSummary)}}),e("div",{staticClass:"monsterinsights-yir-visitors-info"},[e("report-year-in-review-pie-chart",{attrs:{id:"devices",chartData:t.devicesData,title:t.text_device_type,subtitle:t.mostVisitorsDevicePercent}})],1),e("div",{staticClass:"monsterinsights-yir-grow-traffic-tip"},[e("report-year-in-review-tip",{attrs:{title:t.stringsWithYear.text_grow_traffic_tip_title,summary:t.text_grow_traffic_tip_summary,"link-text":t.text_grow_traffic_tip_link_text,link:t.text_grow_traffic_tip_link}})],1),e("div",{staticClass:"monsterinsights-yir-visitors-come-from"},[e("h3",{staticClass:"monsterinsights-yir-title",domProps:{textContent:t._s(t.text_visitors_come_from)}}),e("div",{staticClass:"monsterinsights-yir-keywords-referrals"},[e("div",{staticClass:"monsterinsights-yir-keywords"},[e("report-year-in-review-list-box",{class:["monsterinsights-year-in-review-table-box-blur-report"],attrs:{title:t.text_top_keywords,"sub-title":t.text_clicks,rows:t.searchConsoleSampleData,tooltip:t.text_top_keywords_tooltip}}),e("year-in-review-up-sell-overlay",{attrs:{details:t.text_search_console_upsell_overlay_details,"btn-text":t.text_search_console_upsell_overlay_btn_text,"btn-link":t.text_search_console_upsell_overlay_btn_link,"btn-class":"monsterinsights-yir-success"}})],1),t.referralsData.length?e("div",{staticClass:"monsterinsights-yir-referrals"},[e("report-year-in-review-list-box",{attrs:{title:t.text_top_referrals,"sub-title":t.text_pageviews,tooltip:t.text_top_referrals_tooltip,rows:t.referralsData}})],1):t._e()])]),e("div",{staticClass:"monsterinsights-yir-grow-traffic-tip"},[e("report-year-in-review-tip",{attrs:{title:t.text_opportunity_tip_title,summary:t.text_opportunity_tip_summary,"link-text":t.text_opportunity_tip_link_text,link:t.text_opportunity_tip_link}})],1)]),e("div",{staticClass:"monsterinsights-yir-separator"}),e("section",{staticClass:"monsterinsights-yir-thank-you"},[e("h2",{staticClass:"monsterinsights-yir-title",domProps:{textContent:t._s(t.text_thank_you_section_title)}}),e("h3",{staticClass:"monsterinsights-yir-summary",domProps:{textContent:t._s(t.text_thank_you_section_summary)}}),e("h4",{staticClass:"monsterinsights-yir-amazing-year",domProps:{textContent:t._s(t.stringsWithYear.text_amazing_next_year)}}),e("div",{staticClass:"monsterinsights-yir-authors"},[e("div",{staticClass:"monsterinsights-yir-author"},[e("div",{staticClass:"monsterinsights-yir-thumbnail syed"}),e("span",{staticClass:"monsterinsights-yir-name",domProps:{textContent:t._s(t.text_syed_balkhi)}})]),e("div",{staticClass:"monsterinsights-yir-author"},[e("div",{staticClass:"monsterinsights-yir-thumbnail chris"}),e("span",{staticClass:"monsterinsights-yir-name",domProps:{textContent:t._s(t.text_chris_christoff)}})])]),e("div",{staticClass:"monsterinsights-yir-write-review"},[e("div",{staticClass:"monsterinsights-yir-content"},[e("span",{domProps:{textContent:t._s(t.text_enjoying_monsterinsights)}}),e("br"),e("h3",{domProps:{textContent:t._s(t.text_leave_review)}})]),t._m(0),e("div",{staticClass:"monsterinsights-yir-review-button"},[e("a",{attrs:{href:"https://wordpress.org/support/view/plugin-reviews/google-analytics-for-wordpress?filter=5",target:"_blank"},domProps:{textContent:t._s(t.text_write_review)}})])])]),e("section",{staticClass:"monsterinsights-yir-year-in-review-plugins-block"},[e("h2",{staticClass:"monsterinsights-yir-title",domProps:{textContent:t._s(t.text_plugins_section_title)}}),e("h3",{staticClass:"monsterinsights-yir-summary",domProps:{textContent:t._s(t.stringsWithYear.text_plugins_section_summary)}}),e("div",{staticClass:"monsterinsights-yir-plugins"},t._l(t.pluginsList(),(function(t,A){return e("addon-block",{key:A,attrs:{addon:t,"is-addon":!1}})})),1)]),e("section",{staticClass:"monsterinsights-yir-join-communities"},[e("h2",{staticClass:"monsterinsights-yir-title",domProps:{textContent:t._s(t.text_communities_section_title)}}),e("h3",{staticClass:"monsterinsights-yir-summary",domProps:{textContent:t._s(t.stringsWithYear.text_communities_section_summary)}}),e("div",{staticClass:"monsterinsights-yir-communities"},[e("div",{staticClass:"monsterinsights-yir-community"},[e("img",{staticClass:"monsterinsights-yir-thumbnail",attrs:{src:A("67d7"),alt:""}}),e("h3",{staticClass:"monsterinsights-yir-title",domProps:{textContent:t._s(t.text_facebook_group)}}),e("p",{staticClass:"monsterinsights-yir-details",domProps:{textContent:t._s(t.text_facebook_group_summary)}}),e("a",{staticClass:"monsterinsights-yir-link",attrs:{href:"https://www.facebook.com/groups/wpbeginner/",target:"_blank"},domProps:{textContent:t._s(t.text_facebook_join_button)}})]),e("div",{staticClass:"monsterinsights-yir-community"},[e("img",{staticClass:"monsterinsights-yir-thumbnail",attrs:{src:A("4f36"),alt:""}}),e("h3",{staticClass:"monsterinsights-yir-title",domProps:{textContent:t._s(t.text_wpbeginner_community_title)}}),e("p",{staticClass:"monsterinsights-yir-details",domProps:{textContent:t._s(t.text_wpbeginner_community_summary)}}),e("a",{staticClass:"monsterinsights-yir-link",attrs:{href:"https://www.wpbeginner.com/",target:"_blank"},domProps:{textContent:t._s(t.text_visit_wpbeginner)}})]),e("div",{staticClass:"monsterinsights-yir-community"},[e("img",{staticClass:"monsterinsights-yir-thumbnail",attrs:{src:A("c24e"),alt:""}}),e("h3",{staticClass:"monsterinsights-yir-title",domProps:{textContent:t._s(t.text_follow_us)}}),e("p",{staticClass:"monsterinsights-yir-details",domProps:{textContent:t._s(t.text_follow_us_summary)}}),t._m(1)])])]),e("footer",{staticClass:"monsterinsights-yir-footer"},[e("div",{domProps:{textContent:t._s(t.stringsWithYear.text_copyright_monsterinsights)}}),e("div",{staticClass:"monsterinsights-yir-text-right"},[e("svg",{attrs:{width:"134",height:"18",viewBox:"0 0 134 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M20.201 10.1024C20.201 10.6528 20.0909 11.0932 19.8432 11.3959C19.5955 11.6987 19.2102 11.8363 18.6873 11.8363C18.1644 11.8363 17.7791 11.6711 17.5589 11.3959C17.3112 11.1207 17.2011 10.6528 17.2011 10.1024V8.12084C17.2011 7.5704 17.3112 7.13005 17.5589 6.82731C17.8066 6.55209 18.1919 6.38697 18.6873 6.38697C19.2102 6.38697 19.5955 6.55209 19.8432 6.82731C20.0909 7.10253 20.201 7.5704 20.201 8.12084V10.1024ZM22.733 10.1024V8.12084C22.733 7.5704 22.6504 7.07501 22.4853 6.57961C22.3202 6.08422 22.1 5.67139 21.7422 5.31361C21.4119 4.95583 20.9716 4.65309 20.4762 4.46044C19.9808 4.24027 19.3753 4.13018 18.6598 4.13018C17.9717 4.13018 17.3662 4.24027 16.8433 4.46044C16.3479 4.68062 15.9076 4.95583 15.5773 5.31361C15.2471 5.67139 14.9994 6.11174 14.8342 6.57961C14.6691 7.07501 14.5865 7.5704 14.5865 8.12084V10.1024C14.5865 10.6528 14.6691 11.1757 14.8342 11.6436C14.9994 12.139 15.2195 12.5518 15.5773 12.9096C15.9076 13.2674 16.3479 13.5701 16.8433 13.7628C17.3387 13.983 17.9442 14.0931 18.6598 14.0931C19.3478 14.0931 19.9533 13.983 20.4762 13.7628C20.9716 13.5426 21.4119 13.2674 21.7422 12.9096C22.0725 12.5518 22.3202 12.1115 22.4853 11.6436C22.6504 11.1757 22.733 10.6528 22.733 10.1024ZM33.2188 12.8546V7.65296C33.2188 7.13005 33.1637 6.63466 33.0537 6.22183C32.9436 5.78149 32.7784 5.39618 32.5307 5.09344C32.2831 4.7907 31.9528 4.543 31.5675 4.37787C31.1822 4.18522 30.6593 4.13018 30.0538 4.13018C29.4483 4.13018 28.8979 4.21274 28.43 4.37787C27.9621 4.57052 27.5768 4.7907 27.219 5.09344C27.109 4.90079 26.9438 4.73565 26.7787 4.62557C26.586 4.48796 26.4209 4.37788 26.2007 4.32283C25.9806 4.26779 25.7879 4.24026 25.5953 4.24026C25.2375 4.24026 24.9347 4.32283 24.687 4.48796C24.4393 4.65309 24.3293 4.90079 24.3293 5.2861C24.3293 5.47875 24.3568 5.61635 24.4118 5.72644C24.4669 5.83652 24.577 5.94661 24.6595 6.00166C24.8246 6.13926 24.9347 6.27688 25.0448 6.38697C25.1549 6.49705 25.2099 6.74475 25.2099 7.07501V12.8546C25.2099 13.2124 25.32 13.5151 25.5677 13.7628C25.8154 14.0105 26.1182 14.1206 26.476 14.1206C26.8337 14.1206 27.1365 14.0105 27.3842 13.7628C27.6319 13.5151 27.742 13.2124 27.742 12.8546V7.26766C27.9346 7.01996 28.1273 6.85483 28.4025 6.71722C28.6502 6.57961 28.9529 6.49705 29.3107 6.49705C29.5859 6.49705 29.8061 6.55209 29.9987 6.60714C30.1914 6.6897 30.3015 6.79979 30.4116 6.9374C30.4941 7.07501 30.5767 7.21262 30.6042 7.40527C30.6317 7.59792 30.6593 7.76305 30.6593 7.9557V12.8546C30.6593 13.2124 30.7694 13.5151 31.017 13.7628C31.2647 14.0105 31.5675 14.1206 31.9253 14.1206C32.283 14.1206 32.5858 14.0105 32.8335 13.7628C33.0812 13.5151 33.2188 13.2124 33.2188 12.8546ZM42.4661 11.0106C42.4661 10.4877 42.3835 10.0749 42.2459 9.74462C42.0808 9.41436 41.8881 9.13914 41.6404 8.91897C41.3928 8.69879 41.1175 8.53366 40.8148 8.42358C40.5121 8.31349 40.1818 8.2034 39.8791 8.12084C39.5488 8.06579 39.2736 8.01075 38.9984 7.9557C38.7231 7.90066 38.4754 7.84562 38.2553 7.76306C38.0351 7.68049 37.87 7.59793 37.7599 7.48784C37.6498 7.37775 37.5672 7.21262 37.5672 6.99244C37.5672 6.77227 37.6773 6.57961 37.87 6.41448C38.0626 6.24935 38.3929 6.19431 38.8332 6.19431C39.1635 6.19431 39.4662 6.22183 39.7414 6.27687C40.0167 6.33192 40.3469 6.442 40.7047 6.55209C40.9799 6.63466 41.2551 6.60714 41.5028 6.46953C41.7505 6.33192 41.9157 6.11175 41.9982 5.83653C42.1083 5.56131 42.0808 5.28609 41.9432 5.03839C41.8056 4.7907 41.5854 4.59805 41.3102 4.51548C40.9524 4.40539 40.5671 4.29531 40.1818 4.21274C39.7965 4.13017 39.2736 4.10265 38.6681 4.10265C38.2002 4.10265 37.7324 4.1577 37.3195 4.29531C36.9067 4.43292 36.5214 4.62557 36.1911 4.87327C35.8609 5.12097 35.6132 5.45123 35.4205 5.83653C35.2279 6.22184 35.1453 6.66218 35.1453 7.15757C35.1453 7.62544 35.2004 8.01075 35.338 8.34101C35.4481 8.67127 35.6132 8.91897 35.8334 9.11162C36.0535 9.3318 36.2737 9.4694 36.5489 9.60701C36.8241 9.7171 37.0994 9.82718 37.3746 9.88223C37.7048 9.96479 38.0076 10.0474 38.3378 10.1024C38.6681 10.1575 38.9433 10.2125 39.191 10.2951C39.4387 10.3776 39.6314 10.4877 39.7965 10.5978C39.9616 10.7354 40.0167 10.9281 40.0167 11.1482C40.0167 11.4234 39.8791 11.6711 39.6038 11.8363C39.3286 12.0014 38.9708 12.084 38.4754 12.084C37.9801 12.084 37.5947 12.0565 37.3195 11.9739C37.0443 11.8913 36.7691 11.8088 36.4939 11.7262C36.2462 11.6161 35.971 11.6436 35.6957 11.7537C35.4205 11.8638 35.2279 12.084 35.1453 12.4142C35.0627 12.6619 35.0903 12.9371 35.2004 13.2124C35.3104 13.4876 35.5031 13.6802 35.7783 13.7628C36.1086 13.8729 36.4664 13.983 36.8792 14.038C37.292 14.1206 37.8149 14.1481 38.503 14.1481C38.9984 14.1481 39.4938 14.0931 39.9891 13.983C40.4845 13.8729 40.8974 13.7078 41.2551 13.4325C41.6129 13.1848 41.9157 12.8546 42.1358 12.4693C42.356 12.084 42.4661 11.6161 42.4661 11.0381V11.0106ZM50.2272 12.8821C50.2272 12.5518 50.1172 12.3041 49.897 12.084C49.6768 11.8638 49.4291 11.7537 49.0989 11.7537H48.7411C48.1356 11.7537 47.7503 11.5886 47.5301 11.2583C47.3375 10.9281 47.2274 10.3501 47.2274 9.60701V6.3044H48.6585C48.9337 6.3044 49.1814 6.19431 49.4016 6.00166C49.5942 5.78148 49.7043 5.53379 49.7043 5.25857C49.7043 4.95583 49.5942 4.73566 49.4016 4.51548C49.2089 4.32283 48.9612 4.21274 48.6585 4.21274H47.2274V2.94674C47.2274 2.58896 47.1173 2.28622 46.8696 2.03852C46.6219 1.79082 46.3192 1.65322 45.9614 1.65322C45.6036 1.65322 45.3008 1.7633 45.0532 2.03852C44.8055 2.28622 44.6678 2.58896 44.6678 2.94674V4.21274H44.3651C44.0899 4.21274 43.8422 4.32283 43.622 4.51548C43.4294 4.70813 43.3193 4.95583 43.3193 5.25857C43.3193 5.53379 43.4294 5.78148 43.622 6.00166C43.8147 6.22183 44.0624 6.3044 44.3651 6.3044H44.6678V9.63453C44.6678 10.2951 44.7229 10.873 44.8605 11.4234C44.9981 11.9739 45.2183 12.4142 45.4935 12.7995C45.7962 13.1848 46.154 13.4876 46.6219 13.6802C47.0898 13.9004 47.6677 13.983 48.3282 13.983H49.0438C49.3741 13.983 49.6218 13.8729 49.8419 13.6527C50.1172 13.4601 50.1997 13.1848 50.2272 12.8821ZM56.805 7.76306V8.01075H53.8876V7.76306C53.8876 7.21262 53.9977 6.79979 54.2454 6.52458C54.4931 6.24936 54.8784 6.08423 55.3738 6.08423C55.8692 6.08423 56.227 6.24936 56.4747 6.52458C56.6949 6.79979 56.805 7.21262 56.805 7.76306ZM59.2544 9.00154V8.2034C59.2544 7.65296 59.1718 7.13005 59.0342 6.66218C58.8691 6.16679 58.6764 5.72644 58.3462 5.36866C58.0434 4.98335 57.6306 4.70814 57.1352 4.46044C56.6398 4.24027 56.0343 4.13018 55.3188 4.13018C54.6307 4.13018 54.0253 4.24027 53.5299 4.46044C53.0345 4.68062 52.6216 4.98335 52.2914 5.36866C51.9611 5.75396 51.7409 6.19431 51.5483 6.6897C51.3832 7.18509 51.3006 7.73553 51.3006 8.25844V10.0198C51.3006 10.5703 51.3832 11.0932 51.5208 11.5886C51.6584 12.084 51.8786 12.5243 52.2088 12.8821C52.5391 13.2674 52.9519 13.5702 53.4473 13.7903C53.9427 14.0105 54.5757 14.1206 55.2913 14.1206C55.7591 14.1206 56.227 14.0655 56.7224 14.0105C57.2178 13.9279 57.7132 13.7628 58.2636 13.5151C58.5113 13.405 58.6764 13.2674 58.759 13.0197C58.8691 12.7995 58.8691 12.5518 58.7865 12.2491C58.704 11.9739 58.5388 11.7812 58.2911 11.6436C58.0434 11.5335 57.7957 11.506 57.548 11.6161C57.2178 11.7537 56.915 11.8638 56.5848 11.9188C56.282 12.0014 55.8967 12.0289 55.4289 12.0289C54.9059 12.0289 54.4931 11.8638 54.2454 11.5611C53.9977 11.2308 53.8601 10.7905 53.8601 10.24V9.88223H58.3462C58.5939 9.88223 58.7865 9.79966 58.9517 9.63453C59.1718 9.4694 59.2544 9.24923 59.2544 9.00154ZM67.9513 5.78148C68.0338 5.53379 68.0338 5.2861 67.9788 5.01088C67.8962 4.76318 67.7586 4.543 67.5109 4.4054C67.3733 4.32283 67.2082 4.24027 67.0155 4.18522C66.8229 4.13018 66.6027 4.10265 66.355 4.10265C66.1899 4.10265 66.0247 4.13018 65.8046 4.13018C65.5844 4.1577 65.3642 4.21274 65.1441 4.29531C64.9239 4.37788 64.6762 4.48796 64.4285 4.65309C64.1808 4.81822 63.9606 5.01088 63.7404 5.2861C63.6304 5.0384 63.4377 4.81822 63.2175 4.65309C62.9974 4.46044 62.7221 4.32283 62.3643 4.24026C62.3093 4.21274 62.2267 4.21274 62.1442 4.21274H61.9515C61.5662 4.21274 61.2635 4.29531 61.0158 4.46044C60.7956 4.62557 60.6855 4.87327 60.6855 5.25857C60.6855 5.45122 60.713 5.58884 60.7681 5.69892C60.8231 5.80901 60.9332 5.9191 61.0158 5.97414C61.1809 6.11175 61.3185 6.24936 61.4011 6.35944C61.5112 6.46953 61.5662 6.71723 61.5662 7.04749V12.8271C61.5662 13.1848 61.6763 13.4876 61.924 13.7353C62.1717 13.983 62.4744 14.0931 62.8322 14.0931C63.19 14.0931 63.4927 13.983 63.7404 13.7353C63.9881 13.4876 64.0982 13.1848 64.0982 12.8271V7.5704C64.2083 7.1851 64.4285 6.88235 64.7037 6.71722C64.9789 6.55209 65.3367 6.46953 65.6945 6.46953C65.9422 6.46953 66.1073 6.46953 66.2174 6.49705C66.3 6.52457 66.4101 6.52457 66.5201 6.55209C66.8779 6.63466 67.1807 6.57962 67.4284 6.38697C67.7311 6.27688 67.8687 6.02918 67.9513 5.78148ZM12.2197 1.32295C12.2197 0.992691 12.1096 0.71748 11.8619 0.469784C11.6417 0.222088 11.339 0.111996 10.9812 0.111996C10.7335 0.111996 10.5133 0.16704 10.2931 0.249605C10.073 0.33217 9.90784 0.524823 9.77023 0.800041L6.08231 8.28597L2.47696 0.882611C2.33935 0.607393 2.17422 0.414737 1.98157 0.277128C1.78892 0.167041 1.54122 0.0844727 1.21096 0.0844727C0.880697 0.0844727 0.577957 0.194563 0.357783 0.414737C0.110087 0.634912 0 0.937653 0 1.26791V12.9647C0 13.2949 0.110087 13.5702 0.357783 13.7903C0.577957 14.0105 0.880697 14.1481 1.18344 14.1481C1.5137 14.1481 1.78892 14.038 2.00909 13.7903C2.22926 13.5702 2.36687 13.2674 2.36687 12.9647V5.78148L4.9264 11.1207C5.03649 11.3684 5.22914 11.5611 5.42179 11.6711C5.64196 11.7812 5.83462 11.8638 6.08231 11.8638C6.33001 11.8638 6.55018 11.8088 6.77036 11.6711C6.96301 11.5335 7.12814 11.3409 7.26575 11.0932L9.82528 5.75396V12.9096C9.82528 13.2399 9.93536 13.5151 10.1831 13.7628C10.4032 14.0105 10.706 14.1206 11.0362 14.1206C11.3665 14.1206 11.6417 14.0105 11.8619 13.7628C12.0821 13.5151 12.2197 13.2399 12.2197 12.9096V1.32295Z",fill:"white"}}),e("path",{attrs:{d:"M83.0897 12.8527V7.65105C83.0897 7.12814 83.0347 6.63275 82.9246 6.21992C82.8145 5.77957 82.6494 5.39427 82.4017 5.09153C82.154 4.78879 81.8237 4.54109 81.4384 4.34844C81.0531 4.15578 80.5302 4.10074 79.9247 4.10074C79.3192 4.10074 78.7688 4.18331 78.3009 4.34844C77.8331 4.54109 77.4478 4.76127 77.09 5.09153C76.9799 4.89888 76.8148 4.73374 76.6496 4.62365C76.457 4.48605 76.2918 4.37597 76.0717 4.32092C75.8515 4.26588 75.6588 4.23835 75.4662 4.23835C75.1084 4.23835 74.8057 4.32092 74.558 4.48605C74.3103 4.65118 74.2002 4.89888 74.2002 5.28418C74.2002 5.47684 74.2277 5.61444 74.2828 5.72453C74.3378 5.83461 74.4479 5.9447 74.5304 6.02727C74.6956 6.16488 74.8057 6.30248 74.9158 6.41257C75.0258 6.52266 75.0809 6.77035 75.0809 7.10061V12.8802C75.0809 13.238 75.191 13.5407 75.4387 13.7884C75.6864 14.0361 75.9891 14.1462 76.3469 14.1462C76.7047 14.1462 77.0074 14.0361 77.2551 13.7884C77.5028 13.5407 77.6129 13.238 77.6129 12.8802V7.29327C77.8055 7.04557 77.9982 6.88044 78.2734 6.74283C78.5211 6.60523 78.8238 6.52266 79.1816 6.52266C79.4568 6.52266 79.677 6.57771 79.8697 6.63275C80.0623 6.71531 80.1724 6.8254 80.2825 6.96301C80.3651 7.10061 80.4476 7.23823 80.4752 7.43088C80.5027 7.62353 80.5302 7.78866 80.5302 7.98131V12.8802C80.5302 13.238 80.6403 13.5407 80.888 13.7884C81.1357 14.0361 81.4384 14.1462 81.7962 14.1462C82.154 14.1462 82.4567 14.0361 82.7044 13.7884C82.9796 13.5132 83.0897 13.2105 83.0897 12.8527ZM92.337 11.0362C92.337 10.5133 92.2545 10.1005 92.1169 9.77023C91.9793 9.43997 91.7591 9.16475 91.5114 8.94458C91.2637 8.7244 90.9885 8.55927 90.6857 8.44919C90.383 8.3391 90.0527 8.22901 89.75 8.17397C89.4197 8.11893 89.1445 8.06388 88.8693 8.00884C88.5941 7.95379 88.3464 7.89875 88.1262 7.81618C87.906 7.73362 87.7409 7.65105 87.6308 7.54096C87.5207 7.43088 87.4382 7.26575 87.4382 7.04558C87.4382 6.8254 87.5482 6.63275 87.7409 6.46762C87.9336 6.30249 88.2638 6.24745 88.7042 6.24745C89.0344 6.24745 89.3372 6.27496 89.6124 6.33001C89.8876 6.38505 90.2179 6.49514 90.5756 6.60523C90.8509 6.68779 91.1261 6.66027 91.3738 6.52266C91.6215 6.38506 91.7866 6.16488 91.8692 5.88966C91.9793 5.61444 91.9517 5.33922 91.8141 5.09153C91.6765 4.84383 91.4563 4.65118 91.1811 4.56862C90.8233 4.45853 90.438 4.34844 90.0527 4.26587C89.6674 4.18331 89.1445 4.15579 88.539 4.15579C88.0712 4.15579 87.6033 4.21083 87.1905 4.34844C86.7776 4.48605 86.3923 4.6787 86.0621 4.9264C85.7318 5.17409 85.4841 5.50435 85.2915 5.88966C85.0988 6.27496 85.0162 6.71532 85.0162 7.21071C85.0162 7.67858 85.0713 8.06388 85.2089 8.39414C85.319 8.7244 85.4841 8.9721 85.7043 9.16475C85.9245 9.38492 86.1446 9.52254 86.4199 9.66014C86.6951 9.77023 86.9703 9.88032 87.2455 9.93536C87.5758 10.0179 87.8785 10.1005 88.2088 10.1555C88.539 10.2106 88.8142 10.2656 89.0619 10.3482C89.3096 10.4308 89.5023 10.5408 89.6674 10.6509C89.8326 10.7885 89.8876 10.9812 89.8876 11.2014C89.8876 11.4766 89.75 11.7243 89.4748 11.8894C89.1996 12.0545 88.8418 12.1371 88.3464 12.1371C87.851 12.1371 87.4657 12.1096 87.1905 12.027C86.9152 11.9445 86.64 11.8619 86.3648 11.7793C86.1171 11.6692 85.8419 11.6968 85.5667 11.8068C85.2915 11.9169 85.0988 12.1371 85.0162 12.4674C84.9337 12.7151 84.9612 12.9903 85.0713 13.2655C85.1814 13.5407 85.374 13.7334 85.6492 13.8159C85.9795 13.926 86.3373 14.0361 86.7501 14.1187C87.1629 14.2012 87.6859 14.2288 88.3739 14.2288C88.8693 14.2288 89.3647 14.1737 89.8601 14.0636C90.3555 13.9535 90.7683 13.7884 91.1261 13.5132C91.4839 13.2655 91.7866 12.9352 92.0068 12.5499C92.2269 12.1646 92.337 11.6968 92.337 11.1188V11.0362ZM96.8506 12.8527V5.36675C96.8506 5.00896 96.7405 4.70623 96.4928 4.45853C96.2451 4.21083 95.9424 4.07322 95.5846 4.07322C95.2268 4.07322 94.9241 4.18331 94.6764 4.45853C94.4287 4.70623 94.3186 5.00896 94.3186 5.36675V12.8527C94.3186 13.2105 94.4287 13.5132 94.6764 13.7609C94.9241 14.0086 95.2268 14.1187 95.5846 14.1187C95.9424 14.1187 96.2451 14.0086 96.4928 13.7609C96.713 13.5132 96.8506 13.2105 96.8506 12.8527ZM96.9882 1.40361C96.9882 1.01831 96.8506 0.660523 96.5754 0.412827C96.3002 0.137609 95.9699 0 95.5846 0C95.1993 0 94.8415 0.137609 94.5663 0.412827C94.2911 0.688044 94.1535 1.01831 94.1535 1.40361C94.1535 1.78892 94.2911 2.1467 94.5663 2.3944C94.8415 2.66962 95.1718 2.80722 95.5846 2.80722C95.9699 2.80722 96.3277 2.66962 96.5754 2.3944C96.8506 2.1467 96.9882 1.78892 96.9882 1.40361ZM104.529 6.88044V10.7335C104.309 10.9261 104.061 11.0362 103.786 11.1188C103.511 11.2014 103.263 11.2564 103.043 11.2564C102.493 11.2564 102.107 11.0913 101.915 10.8161C101.694 10.5408 101.612 10.1005 101.612 9.55006V8.03636C101.612 6.8254 102.107 6.24745 103.043 6.24745C103.291 6.24745 103.538 6.30248 103.786 6.41257C104.061 6.52266 104.281 6.68779 104.529 6.88044ZM107.061 5.39427C107.061 5.03649 106.951 4.73374 106.731 4.48605C106.511 4.23835 106.18 4.10074 105.795 4.10074C105.547 4.10074 105.3 4.18331 105.107 4.32092C104.887 4.48605 104.749 4.65118 104.639 4.87136C104.337 4.62366 104.034 4.43101 103.676 4.2934C103.318 4.15579 102.933 4.07322 102.548 4.07322C101.915 4.07322 101.392 4.15578 100.951 4.34844C100.511 4.54109 100.153 4.81631 99.878 5.20161C99.6028 5.5594 99.4101 6.02727 99.2725 6.55018C99.1624 7.07309 99.0799 7.67857 99.0799 8.36662V9.08219C99.0799 9.77023 99.1349 10.3757 99.245 10.9261C99.3551 11.4491 99.5477 11.9169 99.7954 12.2747C100.043 12.6325 100.401 12.9077 100.841 13.1004C101.282 13.293 101.805 13.3756 102.465 13.3756C102.823 13.3756 103.153 13.3205 103.538 13.2105C103.896 13.1004 104.226 12.9628 104.502 12.7701V13.2655C104.502 14.6416 103.896 15.3296 102.685 15.3296C102.355 15.3296 102.08 15.3021 101.887 15.2746C101.667 15.2471 101.502 15.192 101.364 15.1645C101.199 15.1095 101.089 15.0819 100.951 15.0544C100.841 15.0269 100.704 14.9994 100.566 14.9718C100.291 14.9443 100.043 15.0544 99.823 15.2746C99.6028 15.4948 99.5202 15.7425 99.5202 15.9902C99.5202 16.2378 99.6028 16.4305 99.7404 16.5956C99.878 16.7608 100.071 16.8709 100.263 16.9809C100.649 17.1461 101.061 17.2562 101.529 17.3112C101.997 17.3662 102.465 17.3938 102.905 17.3938C104.309 17.3938 105.355 17.0085 106.043 16.2378C106.731 15.4672 107.089 14.4214 107.089 13.1004L107.061 5.39427ZM117.519 12.8527V7.65105C117.519 7.12814 117.464 6.63275 117.354 6.21992C117.244 5.77957 117.079 5.39427 116.831 5.09153C116.584 4.78879 116.253 4.54109 115.868 4.34844C115.455 4.15578 114.96 4.10074 114.354 4.10074C113.887 4.10074 113.446 4.15579 113.088 4.26587C112.703 4.37596 112.373 4.51357 112.098 4.73375V1.65131C112.098 1.29352 111.988 0.990787 111.74 0.743091C111.492 0.495395 111.189 0.385303 110.832 0.385303C110.474 0.385303 110.171 0.495395 109.923 0.743091C109.676 0.990787 109.566 1.29352 109.566 1.65131V12.8802C109.566 13.238 109.676 13.5407 109.923 13.7884C110.171 14.0361 110.474 14.1462 110.832 14.1462C111.189 14.1462 111.492 14.0361 111.74 13.7884C111.988 13.5407 112.098 13.238 112.098 12.8802V7.29327C112.29 7.04557 112.483 6.88044 112.758 6.74283C113.006 6.60523 113.336 6.52266 113.694 6.52266C113.969 6.52266 114.189 6.57771 114.382 6.63275C114.575 6.71531 114.685 6.8254 114.795 6.96301C114.877 7.10061 114.96 7.23823 114.987 7.43088C115.015 7.62353 115.043 7.78866 115.043 7.98131V12.8802C115.043 13.238 115.153 13.5407 115.4 13.7884C115.648 14.0361 115.951 14.1462 116.309 14.1462C116.666 14.1462 116.969 14.0361 117.217 13.7884C117.409 13.5407 117.519 13.238 117.519 12.8527ZM125.804 12.8802C125.804 12.5499 125.693 12.3022 125.473 12.0821C125.253 11.8619 125.005 11.7518 124.675 11.7518H124.317C123.712 11.7518 123.327 11.5867 123.106 11.2564C122.914 10.9261 122.804 10.3482 122.804 9.6051V6.30248H124.235C124.51 6.30248 124.758 6.1924 124.978 5.99974C125.171 5.77957 125.281 5.53188 125.281 5.25666C125.281 4.98144 125.171 4.73374 124.978 4.51357C124.785 4.32092 124.538 4.21083 124.235 4.21083H122.831V2.94483C122.831 2.58705 122.721 2.28431 122.473 2.03661C122.226 1.78891 121.923 1.65131 121.565 1.65131C121.207 1.65131 120.905 1.76139 120.657 2.03661C120.409 2.28431 120.272 2.58705 120.272 2.94483V4.21083H119.969C119.694 4.21083 119.446 4.32092 119.226 4.51357C119.033 4.70622 118.923 4.95392 118.923 5.25666C118.923 5.53188 119.033 5.77957 119.226 5.99974C119.418 6.21992 119.666 6.30248 119.969 6.30248H120.272V9.63262C120.272 10.2931 120.327 10.8711 120.464 11.4215C120.602 11.972 120.822 12.4123 121.097 12.7976C121.373 13.1829 121.758 13.4857 122.226 13.6783C122.694 13.8985 123.272 13.9811 123.932 13.9811H124.648C124.978 13.9811 125.226 13.871 125.446 13.6508C125.693 13.4581 125.776 13.1829 125.804 12.8802ZM133.977 11.0087C133.977 10.4858 133.895 10.073 133.757 9.74271C133.592 9.41245 133.4 9.13723 133.152 8.91705C132.904 8.69688 132.629 8.53175 132.326 8.42166C132.023 8.31158 131.693 8.20149 131.39 8.14645C131.06 8.0914 130.785 8.03636 130.51 7.98131C130.235 7.92627 129.987 7.87122 129.767 7.78866C129.546 7.70609 129.381 7.62353 129.271 7.48593C129.161 7.37584 129.079 7.2107 129.079 6.99053C129.079 6.77035 129.189 6.5777 129.381 6.41257C129.574 6.24744 129.904 6.1924 130.345 6.1924C130.675 6.1924 130.978 6.21992 131.253 6.27496C131.528 6.33 131.858 6.44009 132.216 6.55018C132.491 6.63274 132.767 6.60523 133.014 6.46762C133.262 6.33001 133.427 6.10984 133.51 5.83462C133.62 5.5594 133.592 5.28418 133.455 5.03648C133.317 4.78879 133.097 4.59613 132.822 4.51357C132.464 4.40348 132.078 4.29339 131.693 4.21083C131.308 4.12826 130.785 4.10074 130.179 4.10074C129.712 4.10074 129.244 4.15579 128.831 4.2934C128.418 4.43101 128.033 4.62366 127.703 4.87136C127.372 5.11905 127.125 5.44931 126.932 5.83462C126.739 6.21992 126.657 6.66027 126.657 7.15566C126.657 7.62353 126.712 8.00883 126.849 8.33909C126.959 8.66936 127.125 8.91706 127.345 9.10971C127.565 9.32988 127.785 9.46749 128.06 9.6051C128.336 9.71518 128.611 9.82527 128.886 9.88031C129.216 9.96288 129.519 10.0455 129.849 10.1005C130.179 10.1555 130.455 10.2106 130.702 10.2931C130.95 10.3757 131.143 10.4858 131.308 10.5959C131.473 10.7335 131.528 10.9261 131.528 11.1463C131.528 11.4215 131.39 11.6692 131.115 11.8344C130.84 11.9995 130.482 12.0821 129.987 12.0821C129.491 12.0821 129.106 12.0545 128.831 11.972C128.528 11.8894 128.28 11.8068 128.005 11.7243C127.758 11.6142 127.482 11.6417 127.207 11.7518C126.932 11.8619 126.739 12.0821 126.657 12.4123C126.574 12.66 126.602 12.9352 126.712 13.2105C126.822 13.4857 127.014 13.6783 127.29 13.7609C127.62 13.871 127.978 13.9811 128.391 14.0361C128.803 14.1187 129.326 14.1462 130.014 14.1462C130.51 14.1462 131.005 14.0911 131.501 13.9811C131.996 13.871 132.409 13.7058 132.767 13.4306C133.124 13.1829 133.427 12.8527 133.647 12.4674C133.867 12.0821 133.977 11.6142 133.977 11.0362V11.0087ZM72.1085 12.8802V1.40361C72.1085 1.04583 71.9984 0.743091 71.7232 0.467874C71.4755 0.220178 71.1728 0.082562 70.7875 0.082562C70.4297 0.082562 70.127 0.192656 69.8793 0.467874C69.6316 0.715569 69.5215 1.01831 69.5215 1.40361V12.8802C69.5215 13.238 69.6316 13.5407 69.8793 13.8159C70.127 14.0636 70.4297 14.2012 70.7875 14.2012C71.1453 14.2012 71.448 14.0912 71.7232 13.8159C71.9984 13.5407 72.1085 13.238 72.1085 12.8802Z",fill:"white"}})])])])]):t._e()])},cA=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-yir-rating"},[e("ul",{staticClass:"monsterinsights-yir-five-star"},[e("li",[e("img",{attrs:{src:A("ba5a"),alt:""}})]),e("li",[e("img",{attrs:{src:A("ba5a"),alt:""}})]),e("li",[e("img",{attrs:{src:A("ba5a"),alt:""}})]),e("li",[e("img",{attrs:{src:A("ba5a"),alt:""}})]),e("li",[e("img",{attrs:{src:A("ba5a"),alt:""}})])])])},function(){var t=this,e=t._self._c;return e("ul",{staticClass:"monsterinsights-yir-social-links"},[e("li",[e("a",{attrs:{href:"https://www.youtube.com/channel/UCnB-GV6lyQYgBLLhQr-kuVw",target:"_blank"}},[e("img",{attrs:{src:A("845b"),alt:""}})])]),e("li",[e("a",{attrs:{href:"https://www.facebook.com/monsterinsights",target:"_blank"}},[e("img",{attrs:{src:A("a8c5"),alt:""}})])]),e("li",[e("a",{attrs:{href:"https://twitter.com/monsterinsights",target:"_blank"}},[e("img",{attrs:{src:A("9530"),alt:""}})])])])}],uA=(A("b680"),function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-yir-year-in-review-upsell-overlay"},[e("div",{staticClass:"monsterinsights-yir-upsell-content"},[e("p",{staticClass:"monsterinsights-yir-details",domProps:{textContent:t._s(t.details)}}),e("a",{class:["monsterinsights-yir-btn-upsell-overlay",t.btnClass],attrs:{href:t.btnLink,target:"_blank"},domProps:{textContent:t._s(t.btnText)}})])])}),hA=[],dA={name:"YearInReviewUpSellOverlay",props:{details:String,btnText:String,btnLink:String,btnClass:String}},gA=dA,fA=Object(I["a"])(gA,uA,hA,!1,null,null,null),pA=fA.exports,mA=function(){var t=this,e=t._self._c;return t.chartData?e("div",{staticClass:"monsterinsights-reports-visitorbymonth-chart"},[e("div",{staticClass:"monsterinsights-reports-visitorbymonth-header"},[e("div",{staticClass:"monsterinsights-reports-visitorbymonth-title"},[e("h3",{staticClass:"monsterinsights-report-title",domProps:{textContent:t._s(t.title)}})]),e("div",{staticClass:"monsterinsights-reports-visitorbymonth-subtitle"},[e("h4",{staticClass:"monsterinsights-report-subtitle",domProps:{textContent:t._s(t.subTitle)}})])]),e("div",{staticClass:"monsterinsights-reports-visitorbymonth-chart-content"},[e("div",{staticClass:"monsterinsights-reports-bar-chart-holder"},[e("div",{staticClass:"monsterinsights-chart-tooltip",attrs:{id:t.tooltipId}}),e("report-year-in-review-bar-chart",{staticStyle:{height:"200px"},attrs:{"chart-data":t.chartData,tooltipid:t.id}})],1)])]):t._e()},wA=[],BA=m.reactiveProp,vA={name:"ReportYearInReviewBarChart",extends:C,mixins:[BA],props:{tooltipid:String},data:function(){var t=this;return{options:{responsive:!0,maintainAspectRatio:!1,scales:{xAxes:[{gridLines:{display:!1},ticks:{fontSize:14,fontColor:"#828282",fontFamily:"Lato"}}],yAxes:[{ticks:{min:0,stepSize:25e3},gridLines:{drawBorder:!1,lineWidth:2,color:"#F2F2F2"}}]},animation:!1,legend:{display:!1},tooltips:{enabled:!1,yAlign:"top",xAlign:"top",intersect:!1,custom:this.$miyearInReviewTooltips,callbacks:{title:function(e,A){e=e[0];var n=A.labels[e.index],r=parseFloat(A.datasets[0].data[e.index]).toLocaleString("en");return[n,r,t.tooltipid]},label:function(){return""}}}}}},mounted:function(){this.renderChart(this.chartData,this.options)}},yA=vA,bA=Object(I["a"])(yA,Ut,_t,!1,null,null,null),CA=bA.exports,xA={name:"ReportYearInReviewByMonth",components:{ReportYearInReviewBarChart:CA},props:{chartData:[Object,Boolean],title:String,subTitle:String,id:String},computed:{tooltipId:function(){return"monsterinsights-chartjs-pie-"+this.id+"-tooltip"}}},FA=xA,QA=Object(I["a"])(FA,mA,wA,!1,null,null,null),UA=QA.exports,_A=(A("9911"),function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-yir-year-in-review-tip"},[t._m(0),e("div",{staticClass:"monsterinsights-yir-tip-content"},[e("h3",{staticClass:"monsterinsights-yir-tip-content-title",domProps:{textContent:t._s(t.title)}}),e("p",{staticClass:"monsterinsights-yir-tip-content-summary",domProps:{textContent:t._s(t.summary)}}),e("div",{staticClass:"monsterinsights-yir-tip-content-link-wrapper"},[e("a",{staticClass:"monsterinsights-yir-tip-content-link",attrs:{href:t.link,target:"_blank"},domProps:{textContent:t._s(t.linkText)}})])])])}),IA=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-yir-tip-icon"},[e("img",{attrs:{src:A("ebe5"),alt:""}})])}],EA={name:"ReportYearInReviewTip",props:{title:String,summary:String,link:String,linkText:String}},kA=EA,SA=Object(I["a"])(kA,_A,IA,!1,null,null,null),DA=SA.exports,HA=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-year-in-review-table-box"},[e("div",{staticClass:"monsterinsights-year-in-review-table-box-header"},[e("div",{staticClass:"monsterinsights-year-in-review-table-box-title"},[t.title?e("h3",{staticClass:"monsterinsights-report-title",domProps:{textContent:t._s(t.title)}}):t._e()]),e("div",{staticClass:"monsterinsights-year-in-review-table-box-subtitle"},[t.subTitle?e("h4",{staticClass:"monsterinsights-report-subtitle",domProps:{textContent:t._s(t.subTitle)}}):t._e()])]),e("div",{staticClass:"monsterinsights-year-in-review-table-box-list"},[t.rows.length>0?e("div",t._l(t.tableRows(),(function(A,n){return e("div",{key:n,staticClass:"monsterinsights-table-list-item"},[e("span",{staticClass:"monsterinsights-reports-list-count",domProps:{textContent:t._s(A.number)}}),e("span",{staticClass:"monsterinsights-reports-list-text",domProps:{innerHTML:t._s(A.text)}}),e("span",{staticClass:"monsterinsights-reports-list-number"},[A.right?e("span",{domProps:{innerHTML:t._s(parseFloat(A.right).toLocaleString("en"))}}):t._e()])])})),0):t._e(),0===t.rows.length?e("div",{staticClass:"monsterinsights-table-list-item"},[e("span",{staticClass:"monsterinsights-reports-list-text",domProps:{innerHTML:t._s(t.text_no_records)}})]):t._e()]),t.tooltip?e("div",{staticClass:"monsterinsights-year-in-review-table-box-footer"},[e("span",{staticClass:"monsterinsights-yir-tooltip"},[e("span",{staticClass:"monsterinsights-yir-icon"},[t._v("?")]),e("span",{domProps:{textContent:t._s(t.tooltip)}})])]):t._e()])},MA=[],OA={name:"ReportYearInReviewListBox",props:{title:String,subTitle:String,tooltip:String,rows:Array},data:function(){return{limit:5,text_show:Object(l["a"])("Show","google-analytics-for-wordpress"),text_no_records:Object(l["a"])("No records found.","google-analytics-for-wordpress")}},methods:{tableRows:function(){var t=this.rows;if(t.length<5)while(t.length<5)t.push({number:"",text:"",right:""});return t=t.slice(0,this.limit),t}}},TA=OA,PA=Object(I["a"])(TA,HA,MA,!1,null,null,null),LA=PA.exports,RA=function(){var t=this,e=t._self._c;return t.chartData?e("div",{staticClass:"monsterinsights-reports-pie-chart monsterinsights-reports-year-in-review-pie-chart"},[e("div",{staticClass:"monsterinsights-reports-pie-chart-holder"},[e("report-pie-chart",{staticClass:"monsterinsights-pie-chart",staticStyle:{"max-width":"176px","max-height":"176px"},attrs:{"chart-data":t.chartData,tooltipid:t.id}}),e("div",{staticClass:"monsterinsights-pie-chart-tooltip",attrs:{id:t.tooltipId}})],1),e("div",{staticClass:"monsterinsights-yir-reports-pie-chart-content"},[t.title?e("h3",{staticClass:"monsterinsights-report-title",domProps:{textContent:t._s(t.title)}}):t._e(),t.subtitle?e("h3",{staticClass:"monsterinsights-report-subtitle",domProps:{innerHTML:t._s(t.subtitle)}}):t._e(),t.legend?e("ul",{staticClass:"monsterinsights-pie-chart-legend"},t._l(t.chartData.values,(function(A,n){return e("li",{key:n},[e("span",{staticClass:"monsterinsights-pie-chart-legend-color",style:t.labelBackground(t.chartData.datasets[0].backgroundColor[n])}),e("span",{staticClass:"monsterinsights-pie-chart-legend-text",domProps:{textContent:t._s(t.chartData.labels[n])}}),e("span",[t._v(" ")]),e("span",{staticClass:"monsterinsights-pie-chart-legend-value"},[t._v("("+t._s(A)+"%)")])])})),0):t._e()])]):t._e()},NA=[],KA=m.reactiveProp,jA={name:"ReportPieChart",extends:x,mixins:[KA],props:{tooltipid:String},data:function(){var t=this;return{options:{responsive:!0,maintainAspectRatio:!1,elements:{arc:{borderWidth:0}},cutoutPercentage:65,tooltips:{enabled:!1,yAlign:"top",xAlign:"top",intersect:!0,custom:t.$miPieTooltips,callbacks:{title:function(e,A){e=e[0];var n=A.labels[e.index],r=A.datasets[0].data[e.index];return[n,r,t.tooltipid]},label:function(){return""}}},animation:!1,legend:{display:!1}}}},mounted:function(){this.renderChart(this.chartData,this.options)}},VA=jA,GA=Object(I["a"])(VA,It,Et,!1,null,null,null),qA=GA.exports,WA={name:"ReportYearInReviewPieChart",components:{ReportPieChart:qA},props:{chartData:[Object,Boolean],title:String,subtitle:String,legend:{type:Boolean,default:!0},id:String},computed:{tooltipId:function(){return"monsterinsights-chartjs-pie-"+this.id+"-tooltip"}},methods:{labelBackground:function(t){return"background-color: "+t+";"}}},YA=WA,zA=Object(I["a"])(YA,RA,NA,!1,null,null,null),XA=zA.exports,JA=A("7f78"),ZA=function(){var t=this,e=t._self._c;return e("span",{attrs:{data:"html2canvas-ignore"}},[e("a",{staticClass:"monsterinsights-yir-export-link",domProps:{innerHTML:t._s(t.buttonText)},on:{click:function(e){return e.preventDefault(),t.exportPDFReport.apply(null,arguments)}}})])},$A=[],tn=A("c7eb"),en=A("1da1"),An=(A("2ca0"),A("d67e")),nn=A.n(An),rn={name:"YearInReviewReportsPdfExport",components:{},props:{reportTitle:{type:String,default:Object(l["a"])("Overview Report","google-analytics-for-wordpress")},buttonText:{type:String,default:Object(l["a"])("Download as PDF","google-analytics-for-wordpress")},reportContainer:{type:String,default:".monsterinsights-reports-page"},filename:{type:String,default:"monsterinsights-report.pdf"},quality:{type:Number,default:1},pdfdpi:{type:Number,default:300},orientation:{type:String,default:"portrait"},ignoreClasses:{type:Array,default:function(){return[".monsterinsights-yir-export-link",".monsterinsights-header",".monsterinsights-notices-area",".monsterinsights-navigation-bar",".monsterinsights-yir-year-in-review-plugins-block",".monsterinsights-yir-join-communities"]}},ignoreHeightOfClasses:{type:Array,default:function(){return[".monsterinsights-header",".monsterinsights-notices-area",".monsterinsights-navigation-bar",".monsterinsights-yir-year-in-review-plugins-block",".monsterinsights-yir-join-communities"]}}},data:function(){return{logo:this.$mi.assets+"/img/logo-MonsterInsights.png",downloading:!1,mobileWidth:783}},computed:Object(i["a"])(Object(i["a"])({},Object(o["b"])({date:"$_reports/date",activeReport:"$_reports/activeReport",settings:"$_settings/settings"})),{},{getDateRange:function(){var t=Qt()().subtract(30,"days").format("MMMM Do YYYY"),e=Qt()().subtract(1,"days").format("MMMM Do YYYY");return this.date.end&&this.date.start&&(t=Qt()(this.date.start).format("MMMM Do YYYY"),e=Qt()(this.date.end).format("MMMM Do YYYY")),Object(l["d"])("%1$s - %2$s",t,e)}}),methods:{exportPDFReport:function(){var t=this,e=document.querySelector(t.reportContainer);if(!e)return t.downloading=!1,void t.$swal({type:"error",title:Object(l["a"])("Download Failed","google-analytics-for-wordpress"),text:Object(l["a"])("Download Failed, no report found!","google-analytics-for-wordpress"),confirmButtonText:Object(l["a"])("Ok","google-analytics-for-wordpress")});document.body.classList.add("monsterinsights-downloading-pdf-report"),t.downloading=!0,t.$swal({customContainerClass:"monsterinsights-swal monsterinsights-swal-loading monsterinsights-pdf-report-swal",type:"info",title:Object(l["a"])("Generating PDF Report","google-analytics-for-wordpress"),onOpen:function(){t.$swal.showLoading()}}),t.ignoreContents(),setTimeout((function(){t.doExport()}),2e3)},doExport:function(){var t=this;return Object(en["a"])(Object(tn["a"])().mark((function e(){var A,n,r,i,o;return Object(tn["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return A=t,n=document.querySelector(A.reportContainer),r=A.getOuterHeight(n)-25-A.ignoreElementsHeight()+15,i={margin:[0,-70],filename:A.filename,image:{type:"jpeg",quality:t.quality},enableLinks:!1,html2canvas:{dpi:A.pdfdpi,scale:2,scrollY:0,height:r},jsPDF:{orientation:A.orientation,format:[980,r],unit:"px"}},e.prev=4,e.next=7,nn()().from(n).set(i).toPdf().get("pdf").then((function(t){t.setPage(1),t.setFontSize(20),t.setFontStyle("bold"),t.setTextColor("#393f4c")})).save();case 7:e.next=16;break;case 9:return e.prev=9,e.t0=e["catch"](4),t.downloading=!1,A.pageBreaks("reset"),document.body.classList.remove("monsterinsights-downloading-pdf-report"),A.$swal({type:"error",title:Object(l["a"])("Download Failed","google-analytics-for-wordpress"),text:e.t0,confirmButtonText:Object(l["a"])("Ok","google-analytics-for-wordpress")}),e.abrupt("return");case 16:t.downloading=!1,A.pageBreaks("reset"),document.body.classList.remove("monsterinsights-downloading-pdf-report"),o=document.querySelectorAll(".monsterinsights-accordion-item"),o.length&&o.forEach((function(t){t.setAttribute("style","margin-bottom: 0")})),A.$swal({customContainerClass:"monsterinsights-swal monsterinsights-swal-succcess monsterinsights-pdf-report-swal",type:"success",title:Object(l["a"])("Downloaded PDF report successfully!","google-analytics-for-wordpress"),confirmButtonText:Object(l["a"])("Ok","google-analytics-for-wordpress")});case 22:case"end":return e.stop()}}),e,null,[[4,9]])})))()},ignoreContents:function(){this.ignoreClasses.length&&this.ignoreClasses.forEach((function(t){var e=document.querySelectorAll(t);e.length&&e.forEach((function(e){if(".monsterinsights-active-tab-button"===t)e.removeAttribute("data-html2canvas-ignore");else{var A=document.createAttribute("data-html2canvas-ignore");A.value="",e.setAttributeNode(A)}}))}))},ignoreElementsHeight:function(){var t=this,e=0;return t.ignoreHeightOfClasses.forEach((function(A){var n=document.querySelectorAll(A);n.length&&n.forEach((function(n){".monsterinsights-table-box-footer"===A&&2===n.parentNode.parentNode.querySelectorAll(A).length?e+=t.getOuterHeight(n)/2:".monsterinsights-mobile-upsell"===A?0===n.children.length||window.innerWidth>t.mobileWidth||screen.width>t.mobileWidth||(e+=t.getOuterHeight(n)):".monsterinsights-overview-upsell-desktop"===A&&(0===n.children.length||window.innerWidth<t.mobileWidth||screen.width<t.mobileWidth)||(e+=t.getOuterHeight(n))}))})),e},getOuterHeight:function(t){var e=t.offsetHeight,A=getComputedStyle(t);return e+=parseInt(A.marginTop)+parseInt(A.marginBottom),e},getHeaderImage:function(){var t=new Image;return t.src=this.logo,this.settings.pdf_reports_header_image&&(t.src=this.settings.pdf_reports_header_image),"https:"==document.location.protocol&&t.src.startsWith("http://")&&(t.src="https://"+t.src.substring(7)),"http:"==document.location.protocol&&t.src.startsWith("https://")&&(t.src="http://"+t.src.substring(8)),t},mmToPx:function(t){return 3.779527559055*t},pxToMm:function(t){return.2645833333*t},pageBreaks:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"add",e=this,A=document.querySelectorAll(".monsterinsights-report-row"),n=e.mmToPx(210.0015555555555),r=105,i=0;if("reset"!==t)for(var o=0;o<A.length;o++){var a=e.getOuterHeight(A[o]),s=A[o].querySelector(".monsterinsights-table-box-footer");if(s&&(a=e.getOuterHeight(A[o])-e.getOuterHeight(s)),0===o&&(i+=r),!A[o].classList.contains("monsterinsights-overview-upsell-desktop")&&!A[o].classList.contains("monsterinsights-mobile-upsell")&&(i+=a,!(i<n))){var l=n-(i-a);l+=50;var c=o>0?o-1:0;(A[c].classList.contains("monsterinsights-overview-upsell-desktop")||A[o].classList.contains("monsterinsights-mobile-upsell"))&&(c=c>0?c-1:0),A[c].setAttribute("style","margin-bottom:"+Math.round(l)+"px;"),1===A.length&&A[0].setAttribute("style","margin-bottom: 0;"),i=a+25}}else A.forEach((function(t){t.setAttribute("style","margin-bottom: 25px;")}))}}},on=rn,an=Object(I["a"])(on,ZA,$A,!1,null,null,null),sn=an.exports,ln={name:"YearInReview",components:{YearInReviewUpSellOverlay:pA,ReportYearInReviewByMonth:UA,ReportYearInReviewTip:DA,ReportYearInReviewListBox:LA,ReportYearInReviewPieChart:XA,AddonBlock:JA["a"],YearInReviewReportsPdfExport:sn},data:function(){return{text_calculating:Object(l["a"])("Still Calculating...","google-analytics-for-wordpress"),text_back_to_overview_report:Object(l["a"])("Back to Overview Report","google-analytics-for-wordpress"),text_audience_section_title:Object(l["a"])("Audience","google-analytics-for-wordpress"),text_congrats:Object(l["a"])("Congrats","google-analytics-for-wordpress"),text_popular:Object(l["a"])("Your website was quite popular this year! ","google-analytics-for-wordpress"),text_you_had:Object(l["a"])("You had ","google-analytics-for-wordpress"),text_visitors:Object(l["a"])(" visitors!","google-analytics-for-wordpress"),text_best_month_visitors:Object(l["a"])(" visitors","google-analytics-for-wordpress"),text_total_visitors:Object(l["a"])("Total Visitors","google-analytics-for-wordpress"),text_total_sessions:Object(l["a"])("Total Sessions","google-analytics-for-wordpress"),text_visitor_by_month_chart_title:Object(l["a"])("Visitors by Month","google-analytics-for-wordpress"),text_section_demographics_title:Object(l["a"])("Demographics","google-analytics-for-wordpress"),text_number_one:Object(l["a"])("#1","google-analytics-for-wordpress"),text_countries:Object(l["a"])("You Top 5 Countries","google-analytics-for-wordpress"),text_know_your_visitors:Object(l["a"])("Let’s get to know your visitors a little better, shall we?","google-analytics-for-wordpress"),text_gender:Object(l["a"])("Gender","google-analytics-for-wordpress"),text_female:Object(l["a"])("Female","google-analytics-for-wordpress"),text_women:Object(l["a"])("Women","google-analytics-for-wordpress"),text_male:Object(l["a"])("Male","google-analytics-for-wordpress"),text_unknown:Object(l["a"])("Unknown","google-analytics-for-wordpress"),text_average_age:Object(l["a"])("Average Age","google-analytics-for-wordpress"),text_section_behavior_title:Object(l["a"])("Behavior","google-analytics-for-wordpress"),text_top_pages_graph_title:Object(l["a"])("Your Top 5 Pages","google-analytics-for-wordpress"),text_top_pages_graph_subtitle:Object(l["a"])("Pageviews","google-analytics-for-wordpress"),text_time_spent:Object(l["a"])("Time Spent on Site","google-analytics-for-wordpress"),text_minutes:Object(l["a"])("minutes","google-analytics-for-wordpress"),text_device_type:Object(l["a"])("Device Type","google-analytics-for-wordpress"),text_grow_traffic_tip_summary:Object(l["a"])("Take advantage of what you’ve already built. See how to get more traffic from existing content in our 32 Marketing Hacks to Grow Your Traffic guide.","google-analytics-for-wordpress"),text_grow_traffic_tip_link_text:Object(l["a"])("Read - 32 Marketing Hacks to Grow Your Traffic","google-analytics-for-wordpress"),text_grow_traffic_tip_link:this.$getUrl("yearinreview","tips","https://www.monsterinsights.com/marketing-hacks-guaranteed-to-grow-your-traffic/"),text_visitors_come_from:Object(l["a"])("So, where did all of these visitors come from?","google-analytics-for-wordpress"),text_clicks:Object(l["a"])("Clicks","google-analytics-for-wordpress"),text_top_keywords:Object(l["a"])("Your Top 5 Keywords","google-analytics-for-wordpress"),text_top_keywords_tooltip:Object(l["a"])("What keywords visitors searched for to find your site","google-analytics-for-wordpress"),text_top_referrals:Object(l["a"])("Your Top 5 Referrals","google-analytics-for-wordpress"),text_pageviews:Object(l["a"])("Pageviews","google-analytics-for-wordpress"),text_top_referrals_tooltip:Object(l["a"])("The websites that link back to your website","google-analytics-for-wordpress"),text_opportunity_tip_title:Object(l["a"])("Opportunity","google-analytics-for-wordpress"),text_opportunity_tip_summary:Object(l["a"])("Use referral sources to create new partnerships or expand existing ones. See our guide on how to spy on your competitors and ethically steal their traffic.","google-analytics-for-wordpress"),text_opportunity_tip_link_text:Object(l["a"])("Read - How to Ethically Steal Your Competitor’s Traffic","google-analytics-for-wordpress"),text_opportunity_tip_link:this.$getUrl("yearinreview","tips","https://www.monsterinsights.com/how-to-spy-on-your-competitors-and-ethically-steal-their-traffic/"),text_thank_you_section_title:Object(l["a"])("Thank you for using MonsterInsights!","google-analytics-for-wordpress"),text_thank_you_section_summary:Object(l["a"])("We’re grateful for your continued support. If there’s anything we can do to help you grow your business, please don’t hesitate to contact our team.","google-analytics-for-wordpress"),text_enjoying_monsterinsights:Object(l["a"])("Enjoying MonsterInsights","google-analytics-for-wordpress"),text_leave_review:Object(l["a"])("Leave a five star review!","google-analytics-for-wordpress"),text_syed_balkhi:Object(l["a"])("Syed Balkhi","google-analytics-for-wordpress"),text_chris_christoff:Object(l["a"])("Chris Christoff","google-analytics-for-wordpress"),text_write_review:Object(l["a"])("Write Review","google-analytics-for-wordpress"),text_plugins_section_title:Object(l["a"])("Did you know over 10 million websites use our plugins?","google-analytics-for-wordpress"),text_communities_section_title:Object(l["a"])("Join our Communities!","google-analytics-for-wordpress"),text_facebook_group:Object(l["a"])("Facebook Group","google-analytics-for-wordpress"),text_facebook_group_summary:Object(l["a"])("Join our team of WordPress experts and other motivated website owners in the WPBeginner Engage Facebook Group.","google-analytics-for-wordpress"),text_facebook_join_button:Object(l["a"])("Join Now...It’s Free!","google-analytics-for-wordpress"),text_wpbeginner_community_title:Object(l["a"])("WordPress Tutorials by WPBeginner","google-analytics-for-wordpress"),text_wpbeginner_community_summary:Object(l["a"])("WPBeginner is the largest free WordPress resource site for beginners and non-techy users.","google-analytics-for-wordpress"),text_visit_wpbeginner:Object(l["a"])("Visit WPBeginner","google-analytics-for-wordpress"),text_follow_us:Object(l["a"])("Follow Us!","google-analytics-for-wordpress"),text_follow_us_summary:Object(l["a"])("Follow MonsterInsights on social media to stay up to date with latest updates, trends, and tutorials on how to make the most out of analytics.","google-analytics-for-wordpress"),text_search_console_upsell_overlay_details:Object(l["a"])("Upgrade to MonsterInsights Pro to Unlock Additional Actionable Insights","google-analytics-for-wordpress"),text_search_console_upsell_overlay_btn_text:Object(l["a"])("Upgrade to MonsterInsights Pro","google-analytics-for-wordpress"),text_search_console_upsell_overlay_btn_link:this.$getUrl("yearinreview","searchconsole","https://www.monsterinsights.com/lite/"),months:{Jan:Object(l["a"])("January","google-analytics-for-wordpress"),Feb:Object(l["a"])("February","google-analytics-for-wordpress"),Mar:Object(l["a"])("March","google-analytics-for-wordpress"),Apr:Object(l["a"])("April","google-analytics-for-wordpress"),May:Object(l["a"])("May","google-analytics-for-wordpress"),Jun:Object(l["a"])("June","google-analytics-for-wordpress"),Jul:Object(l["a"])("July","google-analytics-for-wordpress"),Aug:Object(l["a"])("August","google-analytics-for-wordpress"),Sep:Object(l["a"])("September","google-analytics-for-wordpress"),Oct:Object(l["a"])("October","google-analytics-for-wordpress"),Nov:Object(l["a"])("November","google-analytics-for-wordpress"),Dec:Object(l["a"])("December","google-analytics-for-wordpress")}}},mounted:function(){this.$store.dispatch("$_reports/getReportData","yearinreview")},computed:Object(i["a"])(Object(i["a"])({},Object(o["b"])({yearinreview_data:"$_reports/yearinreview_data",addons:"$_addons/addons",yearInReview:"$_reports/yearinreview",date:"$_reports/date",license:"$_license/license",license_network:"$_license/license_network"})),{},{stringsWithYear:function(){return{text_year_in_review_still_calculating:Object(l["d"])(Object(l["a"])("Your %s Year in Review is still calculating. Please check back later to see how your website performed last year.","google-analytics-for-wordpress"),this.yearinreview_data.report_year),text_title:Object(l["d"])(Object(l["a"])("Your %s Analytics Report","google-analytics-for-wordpress"),this.yearinreview_data.report_year),text_sub_title:Object(l["d"])(Object(l["a"])("%s Year in Review","google-analytics-for-wordpress"),this.yearinreview_data.report_year),text_visitor_by_month_chart_tooltip:Object(l["d"])(Object(l["a"])("January 1, %s - December 31, %s","google-analytics-for-wordpress"),this.yearinreview_data.report_year,this.yearinreview_data.report_year),text_summary:Object(l["d"])(Object(l["a"])("See how your website performed this year and find tips along the way to help grow even more in %s!","google-analytics-for-wordpress"),this.yearinreview_data.next_year),text_audience_tip_title:Object(l["d"])(Object(l["a"])("A Tip for %s","google-analytics-for-wordpress"),this.yearinreview_data.next_year),text_grow_traffic_tip_title:Object(l["d"])(Object(l["a"])("A Tip For %s","google-analytics-for-wordpress"),this.yearinreview_data.next_year),text_plugins_section_summary:Object(l["d"])(Object(l["a"])("Try our other popular WordPress plugins to grow your website in %s.","google-analytics-for-wordpress"),this.yearinreview_data.next_year),text_communities_section_summary:Object(l["d"])(Object(l["a"])("Become a WordPress expert in %s. Join our amazing communities and take your website to the next level.","google-analytics-for-wordpress"),this.yearinreview_data.next_year),text_copyright_monsterinsights:Object(l["d"])(Object(l["a"])("Copyright MonsterInsights, %s","google-analytics-for-wordpress"),this.yearinreview_data.next_year),text_amazing_next_year:Object(l["d"])(Object(l["a"])("Here's to an amazing %s!","google-analytics-for-wordpress"),this.yearinreview_data.next_year),report_title:Object(l["d"])(Object(l["a"])("Year In Review %s!","google-analytics-for-wordpress"),this.yearinreview_data.report_year)}},visitorByMonthData:function(){return{datasets:[{backgroundColor:"#338EEF",data:this.yearInReview.usersgraph.datapoints}],labels:this.yearInReview.usersgraph.labels}},bestMonthVisitorsSummary:function(){return Object(l["d"])(Object(l["a"])("Your best month was <strong>%1$s</strong> with <strong>%2$s visitors!</strong>","google-analytics-for-wordpress"),this.months[this.yearInReview.usersgraph.bestmonth],this.commaNumbers(this.yearInReview.usersgraph.max))},bestMonthTip:function(){return Object(l["d"])(Object(l["a"])("See the top Traffic Sources and Top Pages for the Month of %s in the Overview Report to replicate your success.","google-analytics-for-wordpress"),this.months[this.yearInReview.usersgraph.bestmonth])},countriesData:function(){var t=[],e=0;return this.yearInReview.countries&&this.yearInReview.countries.forEach((function(A){e++,t.push({number:e+".",text:'<span class="monsterinsights-flag monsterinsights-flag-'+A.iso.toLowerCase()+'"></span> '+A.name,right:A.sessions})})),t},demoGraphicsSummary:function(){return Object(l["d"])(Object(l["a"])("Your <strong>%1$s</strong> visitors came from <strong>%2$s</strong> different countries.","google-analytics-for-wordpress"),this.commaNumbers(this.yearInReview.info.users.value),this.commaNumbers(this.yearInReview.countries.length))},topCountryFlagClass:function(){return"monsterinsights-flag-"+this.yearInReview.countries[0].iso.toLowerCase()},topCountryVisitors:function(){return Object(l["d"])(Object(l["a"])("%s Visitors","google-analytics-for-wordpress"),this.commaNumbers(this.yearInReview.countries[0].sessions))},maxVisitorGender:function(){var t="",e=this.getMaxVisitorGenderObj();return"male"===e.gender&&(t=this.text_male.toLowerCase()),"female"===e.gender&&(t=this.text_female.toLowerCase()),"unknown"===e.gender&&(t=this.text_unknown.toLowerCase()),t},maxVisitorGenderSummary:function(){return Object(l["d"])(Object(l["a"])("%1$s% of your visitors were %2$s","google-analytics-for-wordpress"),this.getMaxVisitorGenderObj().percent,this.maxVisitorGender)},maxVisitorAverageAge:function(){return this.getMaxVisitorAgeObj().age},maxVisitorAgeSummary:function(){return Object(l["d"])(Object(l["a"])("%1$s% of your visitors were between the ages of %2$s","google-analytics-for-wordpress"),this.getMaxVisitorGenderObj().percent,this.maxVisitorAverageAge)},behaviourSummary:function(){var t=parseInt(this.yearInReview.info.users.value),e=parseInt(this.yearInReview.info.pageviews.value),A=0===t?0:Math.round(e/t);return Object(l["d"])(Object(l["a"])("Your <strong>%1$s</strong> visitors viewed a total of <strong>%2$s</strong> pages. <span class='average-page-per-user' style='font-size: 20px;margin-top:25px;display:block;font-family:Lato'>That's an average of %3$s pages for each visitor!</span>","google-analytics-for-wordpress"),this.commaNumbers(t),this.commaNumbers(e),this.commaNumbers(A,1))},topPages:function(){var t=[],e=0;return this.yearInReview.toppages&&this.yearInReview.toppages.forEach((function(A){e++;var n=A.hostname?'<a href="'+A.hostname+A.url+'" target="_blank" rel="noreferrer noopener">'+A.title+"</a>":A.title;t.push({number:e+".",text:n,right:A.sessions})})),t},eachVisitorSpentSummary:function(){return Object(l["d"])(Object(l["a"])("Each visitor spent an average of %s minutes on your website in 2021.","google-analytics-for-wordpress"),this.commaNumbers(this.yearInReview.info.duration.avg_minutes))},mostVisitorsDevice:function(){if(this.yearInReview.devices){var t=this.yearInReview.devices,e=0,A=[];for(var n in t)t.hasOwnProperty(n)&&t[n]>e&&(A["name"]=n,A["percent"]=t[n],e=t[n]);return A}return!1},mostVisitorsDeviceSummary:function(){return Object(l["d"])(Object(l["a"])("Most of your visitors viewed your website from their <strong>%s</strong> device.","google-analytics-for-wordpress"),this.mostVisitorsDevice.name)},mostVisitorsDevicePercent:function(){return Object(l["d"])(Object(l["a"])("%1$s% of your visitors were on a %2$s device.","google-analytics-for-wordpress"),this.mostVisitorsDevice.percent,this.mostVisitorsDevice.name)},devicesData:function(){return!!this.yearInReview.devices&&{datasets:[{data:[this.yearInReview.devices.desktop,this.yearInReview.devices.tablet,this.yearInReview.devices.mobile],backgroundColor:["#6AB1FC","#AAD3FF","#338EEF"]}],values:[this.yearInReview.devices.desktop,this.yearInReview.devices.tablet,this.yearInReview.devices.mobile],labels:[Object(l["a"])("Desktop","google-analytics-for-wordpress"),Object(l["a"])("Tablet","google-analytics-for-wordpress"),Object(l["a"])("Mobile","google-analytics-for-wordpress")]}},referralsData:function(){var t=[],e=0;return this.yearInReview.referrals&&this.yearInReview.referrals.forEach((function(A){e++,t.push({number:e+".",text:'<img src="https://www.google.com/s2/favicons?domain=http://'+A.url+'" />'+A.url,right:A.sessions})})),t},searchConsoleSampleData:function(){return[{number:1,text:"search term one",right:7978},{number:2,text:"search term two",right:79789},{number:3,text:"search three",right:897},{number:4,text:"search four",right:797},{number:5,text:"search term five",right:299}]}}),methods:{isAddonActive:function(t){return!!this.addons[t]&&this.addons[t].active},commaNumbers:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return parseFloat(t).toFixed(e).toLocaleString("en")},isMoreVisitors:function(){return this.yearInReview.info.users.value>this.yearInReview.info.users.prev},getMaxVisitorGenderObj:function(){var t=this.yearInReview.gender,e=0,A={};return void 0===t||t.forEach((function(t){t.percent>e&&(e=t.percent,A=t)})),A},getMaxVisitorAgeObj:function(){var t=this.yearInReview.age,e=0,A={};return t.forEach((function(t){t.percent>e&&(e=t.percent,A=t)})),A},pluginsList:function(){var t=this,e=["wpforms-lite","wp-mail-smtp","optinmonster","coming-soon","rafflepress","trustpulse-api"],A=[];return e.forEach((function(e){if(t.addons[e]){var n=Object.create(t.addons[e]);n.type="licensed",A.push(n)}})),A}}},cn=ln,un=Object(I["a"])(cn,lA,cA,!1,null,null,null),hn=un.exports,dn=function(){var t=this,e=t._self._c;return e("main",{staticClass:"monsterinsights-report monsterinsights-report-site-speed"},[e("div",{staticClass:"monsterinsights-report-top"},[e("h2",{domProps:{textContent:t._s(t.text_sitespeed)}})]),e("div",{staticClass:"monsterinsights-report-row monsterinsights-site-speed-blur"}),e("report-upsell-overlay",{attrs:{report:"sitespeed"}})],1)},gn=[],fn={name:"ReportSearchConsole",components:{ReportUpsellOverlay:_e["a"]},mounted:function(){this.$store.commit("$_reports/ENABLE_BLUR")},data:function(){return{text_sitespeed:Object(l["a"])("Site Speed","google-analytics-for-wordpress"),text_sitespeed_upsell:"",fake_headers:["Form Name or ID","Impressions","Conversions","Conversion Rate"]}}},pn=fn,mn=Object(I["a"])(pn,dn,gn,!1,null,null,null),wn=mn.exports,Bn=function(){var t=this,e=t._self._c;return e("main",{staticClass:"monsterinsights-report monsterinsights-report-media"},[e("div",{staticClass:"monsterinsights-report-top"},[e("h2",{domProps:{textContent:t._s(t.text_media_report)}}),e("reports-date-picker")],1),e("div",{staticClass:"monsterinsights-report-box monsterinsights-report-row"},[e("h3",{domProps:{textContent:t._s(t.text_graph_title)}}),e("report-overview-line-chart",{attrs:{id:"media-chart","chart-data":t.chartData(),tooltip:t.text_chart_tooltip}})],1),e("div",{staticClass:"monsterinsights-report-row"},[e("report-table-box",{attrs:{headers:t.video_plays_headers,rows:t.video_plays_rows,emptytext:t.text_video_plays_empty}})],1),e("report-upsell-overlay",{attrs:{report:"media"}})],1)},vn=[],yn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-reports-datepicker"},[e("div",{staticClass:"monsterinsights-reports-interval-dropdown-container"},[e("button",{staticClass:"monsterinsights-reports-interval-date-info",on:{click:function(e){return e.stopPropagation(),t.toggleDropdown.apply(null,arguments)}}},[e("span",{domProps:{innerHTML:t._s(t.selectedIntervalText)}}),e("i",{staticClass:"monstericon-calendar-alt"})]),e("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.maybeHideDropdown,expression:"maybeHideDropdown"}],class:t.dropdownClass},[e("div",{class:t.showIfFlatpickr()},[e("flat-pickr",{ref:"datePicker",staticClass:"monsterinsights-datepicker",attrs:{config:t.config},on:{"on-close":t.updateDates},model:{value:t.local_date,callback:function(e){t.local_date=e},expression:"local_date"}})],1),e("div",{class:t.hideIfFlatpickr()},[t._l(t.intervals,(function(A,n){return e("div",{key:n},[e("button",{class:t.intervalButtonClass(A.interval),domProps:{innerHTML:t._s(t.getIntervalFormatted(A.text,A.start,A.end))},on:{click:function(e){return t.getInterval(A.start,A.end,A.text,A.interval)}}})])})),t._t("beforeinterval"),e("div",[e("button",{class:t.intervalButtonClass(!1),on:{click:t.openFlatPickr}},[e("i",{staticClass:"monstericon-calendar-alt"}),t._v(" "),e("span",{domProps:{textContent:t._s(t.text_datepicker_placeholder)}})])])],2)])]),e("button",{staticClass:"monsterinsights-button monsterinsights-mobile-details-toggle",domProps:{textContent:t._s(t.text_mobile_details)},on:{click:t.toggleMobileTables}})])},bn=[],Cn=A("aae5"),xn=A.n(Cn);A("0952"),A("7f45");ot["a"].directive("click-outside",{bind:function(t,e,A){t.clickOutsideEvent=function(n){t===n.target||t.contains(n.target)||A.context[e.expression](n)},document.body.addEventListener("click",t.clickOutsideEvent)},unbind:function(t){document.body.removeEventListener("click",t.clickOutsideEvent)}});var Fn=783,Qn=!1,Un={name:"ReportsDatePicker",data:function(){var t=this;return{config:{mode:"range",disableMobile:"true",dateFormat:"Y-m-d",disable:[function(e){var A=e,n=Qt()(Qt()().tz(t.$mi.timezone).format("YYYY-MM-DD")),r=Qt.a.duration(n.diff(A)),i=r.asDays();i+=1;var o=Qt()(e).tz(t.$mi.timezone),a=o.subtract(i,"d").tz(t.$mi.timezone),s=Qt()(),l=a.isBetween(Qt()("01-01-2005","MM-DD-YYYY").tz(t.$mi.timezone),s),c=Qt()(e).isBetween(Qt()("01-01-2005","MM-DD-YYYY").tz(t.$mi.timezone),s);return!l||!c}],static:!0,inline:!0},isMobile:window.innerWidth<Fn,intervals:this.$mi_intervals(),dropdownVisible:!1,isCalendarOpen:!1}},computed:Object(i["a"])(Object(i["a"])({},Object(o["b"])({date:"$_reports/date",activeReport:"$_reports/activeReport",mobileTableExpanded:"$_reports/mobileTableExpanded"})),{},{selectedIntervalText:function(){if(this.interval){var t=this.intervals[this.interval];return this.getIntervalFormatted(t.text,t.start,t.end)}var e=Qt()(this.date.start),A=Qt()(this.date.end);return Object(l["d"])(Object(l["a"])("%1$sCustom dates:%2$s %3$s - %4$s","google-analytics-for-wordpress"),"<b>","</b>",e.format("MMMM D"),A.format("MMMM D, YYYY"))},text_datepicker_placeholder:function(){return this.isMobile?Object(l["a"])("Custom Date Range","google-analytics-for-wordpress"):Object(l["a"])("Set Custom Date Range","google-analytics-for-wordpress")},text_mobile_details:function(){return this.mobileTableExpanded?Object(l["a"])("Hide Details","google-analytics-for-wordpress"):Object(l["a"])("Show Details","google-analytics-for-wordpress")},interval:{set:function(t){this.$store.commit("$_reports/UPDATE_INTERVAL",t)},get:function(){var t=this.date.interval;return 30!==t&&"false"!==t||(t="last30days"),7===t&&(t="last7days"),t}},local_date:{set:function(t){this.$store.commit("$_reports/UPDATE_DATE_TEXT",t)},get:function(){return this.date.text}},dropdownClass:function(){var t="monsterinsights-reports-intervals-dropdown";return this.isCalendarOpen&&(t+=" monsterinsights-p-0"),this.dropdownVisible||(t+=" monsterinsights-hide"),t}}),components:{flatPickr:xn.a},methods:{updateDates:function(t){var e=this;this.dropdownVisible=!1;var A={};t[0]&&t[1]&&(A.start=this.getFormattedDate(t[0]),A.end=this.getFormattedDate(t[1]),e.$emit("date-changed"),this.interval=!1,document.activeElement.blur(),this.$store.commit("$_reports/UPDATE_DATE",A),this.$store.dispatch("$_reports/getReportData",this.activeReport).then((function(){e.$emit("reports-updated")})))},getFormattedDate:function(t){if(t instanceof Date){var e=this.addLeadingZero(t.getMonth()+1),A=this.addLeadingZero(t.getDate());t=t.getFullYear()+"-"+e+"-"+A}return t},addLeadingZero:function(t){return t<10&&t>0?0+t.toString():t},getInterval:function(t,e,A,n){var r=this;this.dropdownVisible=!1,this.interval=n,r.$emit("date-changed",n),this.$store.commit("$_reports/UPDATE_DATE",{start:t.format("YYYY-MM-DD"),end:e.format("YYYY-MM-DD")}),window.blur(),this.$store.dispatch("$_reports/getReportData",this.activeReport).then((function(){r.$emit("reports-updated")})),this.local_date=""},getIntervalText:function(t,e){return t.format("YYYYMMDD")===e.format("YYYYMMDD")?t.format("MMMM D, YYYY"):t.format("MMMM D")+" - "+e.format("MMMM D, YYYY")},getIntervalFormatted:function(t,e,A){return"<b>"+t+'<span class="monsterinsights-datepicker-colon">:</span></b> <span class="monsterinsights-datepicker-interval-dates">'+this.getIntervalText(e,A)+"</span>"},getButtonClass:function(t){var e="monsterinsights-button";return t===this.interval&&(e+=" monsterinsights-selected-interval"),e},hideMobileTables:function(){this.mobileTableExpanded&&this.$store.commit("$_reports/CONTRACT_TABLES")},showMobileTables:function(){this.mobileTableExpanded||this.$store.commit("$_reports/EXPAND_TABLES")},toggleMobileTables:function(){this.mobileTableExpanded?this.hideMobileTables():this.showMobileTables()},handleResize:function(){Qn||(Qn=!0,window.requestAnimationFrame?window.requestAnimationFrame(this.resizeCallback):setTimeout(this.resizeCallback,66))},resizeCallback:function(){this.isMobile=window.innerWidth<Fn,Qn=!1},openFlatPickr:function(){this.$refs.datePicker.fp.open(),this.isCalendarOpen=!0},showIfFlatpickr:function(){return this.$refs.datePicker&&this.isCalendarOpen?"":"monsterinsights-hide"},hideIfFlatpickr:function(){return this.$refs.datePicker&&this.isCalendarOpen?"monsterinsights-hide":""},maybeHideDropdown:function(){this.isCalendarOpen=!1,this.dropdownVisible&&(this.dropdownVisible=!1)},intervalButtonClass:function(t){var e="monsterinsights-button ";return this.interval===t&&(e+=" monsterinsights-interval-active"),e},toggleDropdown:function(){this.dropdownVisible=!this.dropdownVisible,this.isCalendarOpen=!1}},mounted:function(){window.addEventListener("resize",this.handleResize)},beforeDestroy:function(){window.removeEventListener("resize",this.handleResize)}},_n=Un,In=Object(I["a"])(_n,yn,bn,!1,null,null,null),En=In.exports,kn={name:"ReportMedia",components:{ReportsDatePicker:En,ReportOverviewLineChart:k,ReportTableBox:Ue,ReportUpsellOverlay:_e["a"]},data:function(){return{text_media_report:Object(l["a"])("Media Report","google-analytics-for-wordpress"),text_graph_title:Object(l["a"])("Video Plays","google-analytics-for-wordpress"),text_chart_tooltip:Object(l["d"])(Object(l["a"])("Video %s Plays","google-analytics-for-wordpress"),"<br />"),text_video_plays_empty:Object(l["a"])("No video plays tracked during this time period.","google-analytics-for-wordpress"),video_plays_headers:[],video_plays_rows:[]}},methods:{chartData:function(){return{labels:[],datasets:[{lineTension:0,borderColor:"#5fa6e7",backgroundColor:"rgba(\t109, 176, 233, 0.2)",fillOpacity:.2,fillColor:"rgba(\t109, 176, 233, 0.2)",pointRadius:4,pointBorderColor:"#3783c4",pointBackgroundColor:"#FFF",hoverRadius:1,pointHoverBackgroundColor:"#FFF",pointHoverBorderColor:"#3783c4",pointHoverBorderWidth:4,pointHoverRadius:6,labels:[],data:[],trend:[]}]}}},mounted:function(){this.$store.commit("$_reports/ENABLE_BLUR")}},Sn=kn,Dn=Object(I["a"])(Sn,Bn,vn,!1,null,null,null),Hn=Dn.exports,Mn={routes:[{path:"*",redirect:"/"},{path:"/",name:"overview",component:Be,meta:{title:Object(l["a"])("Overview Report","google-analytics-for-wordpress")}},{path:"/publishers",name:"publisher",component:Se,meta:{title:Object(l["a"])("Publishers Report","google-analytics-for-wordpress")}},{path:"/ecommerce",name:"ecommerce",component:Pe,meta:{title:Object(l["a"])("eCommerce Report","google-analytics-for-wordpress")}},{path:"/search-console",name:"queries",component:Ve,meta:{title:Object(l["a"])("Search Console Report","google-analytics-for-wordpress")}},{path:"/dimensions",name:"dimensions",component:Xe,meta:{title:Object(l["a"])("Dimensions Report","google-analytics-for-wordpress")}},{path:"/forms",name:"forms",component:AA,meta:{title:Object(l["a"])("Forms Report","google-analytics-for-wordpress")}},{path:"/real-time",name:"realtime",component:sA,meta:{title:Object(l["a"])("Real-Time Report","google-analytics-for-wordpress")}},{path:"/site-speed",name:"sitespeed",component:wn,meta:{title:Object(l["a"])("Site Speed Report","google-analytics-for-wordpress")}},{path:"/media",name:"media",component:Hn,meta:{title:Object(l["a"])("Media Report","google-analytics-for-wordpress")}}]};window.monsterinsights.yearinreview.show_report&&Mn.routes.push({path:"/year-in-review",name:"yearinreview",component:hn,meta:{title:Object(l["a"])("Year in Review","google-analytics-for-wordpress")}});var On=new s["a"](Mn),Tn=A("a158"),Pn=A("1915"),Ln=A("4bdc"),Rn=function(){var t=this,e=t._self._c;return e("div",[e("button",{class:t.triggerClass,on:{click:function(e){t.nav_open=!t.nav_open}}},[e("span",{domProps:{textContent:t._s(t.routeTitle)}}),e("i",{class:t.buttonIconClass})]),e("nav",{class:t.navClass},[e("router-link",{staticClass:"monsterinsights-navigation-tab-link",attrs:{to:"/"},domProps:{textContent:t._s(t.text_overview)}}),e("router-link",{staticClass:"monsterinsights-navigation-tab-link",attrs:{to:"publishers"},domProps:{textContent:t._s(t.text_publishers)}}),e("router-link",{staticClass:"monsterinsights-navigation-tab-link",attrs:{to:"search-console"},domProps:{textContent:t._s(t.text_search)}}),e("router-link",{staticClass:"monsterinsights-navigation-tab-link",attrs:{to:"ecommerce"},domProps:{textContent:t._s(t.text_ecommerce)}}),e("router-link",{staticClass:"monsterinsights-navigation-tab-link",attrs:{to:"dimensions"},domProps:{textContent:t._s(t.text_dimensions)}}),e("router-link",{staticClass:"monsterinsights-navigation-tab-link",attrs:{to:"forms"},domProps:{textContent:t._s(t.text_forms)}}),e("router-link",{staticClass:"monsterinsights-navigation-tab-link",attrs:{to:"real-time"},domProps:{textContent:t._s(t.text_real_time)}}),e("router-link",{staticClass:"monsterinsights-navigation-tab-link",attrs:{to:"site-speed"},domProps:{textContent:t._s(t.text_site_speed_insights)}}),e("router-link",{staticClass:"monsterinsights-navigation-tab-link",attrs:{to:"media"},domProps:{textContent:t._s(t.text_media_insights)}}),t.isYearInReviewVisible()?e("router-link",{staticClass:"monsterinsights-navigation-tab-link year-in-review",attrs:{to:"year-in-review"},domProps:{textContent:t._s(t.textYearInReview)}}):t._e()],1)])},Nn=[],Kn={name:"ReportsNavigation",data:function(){return{text_overview:Object(l["a"])("Overview","google-analytics-for-wordpress"),text_publishers:Object(l["a"])("Publishers","google-analytics-for-wordpress"),text_ecommerce:Object(l["a"])("eCommerce","google-analytics-for-wordpress"),text_search:Object(l["a"])("Search Console","google-analytics-for-wordpress"),text_dimensions:Object(l["a"])("Dimensions","google-analytics-for-wordpress"),text_forms:Object(l["a"])("Forms","google-analytics-for-wordpress"),text_real_time:Object(l["a"])("Realtime","google-analytics-for-wordpress"),text_site_speed_insights:Object(l["a"])("Site Speed","google-analytics-for-wordpress"),text_media_insights:Object(l["a"])("Media","google-analytics-for-wordpress"),nav_open:!1}},computed:Object(i["a"])(Object(i["a"])({},Object(o["b"])({yearinreview_data:"$_reports/yearinreview_data"})),{},{textYearInReview:function(){return Object(l["d"])(Object(l["a"])("%s Year in Review","google-analytics-for-wordpress"),this.yearinreview_data.report_year)},routeTitle:function(){return!!this.$route.meta.title&&this.$route.meta.title},navClass:function(){var t="monsterinsights-main-navigation monsterinsights-reports-navigation";return this.nav_open&&(t+=" monsterinsights-main-navigation-open"),t},buttonIconClass:function(){var t="monstericon-arrow";return this.nav_open&&(t+=" monstericon-down"),t},triggerClass:function(){var t="monsterinsights-mobile-nav-trigger";return this.nav_open&&(t+=" monsterinsights-mobile-nav-trigger-open"),t}}),methods:{isYearInReviewVisible:function(){return this.yearinreview_data.show_report},sprintf:l["d"]},watch:{$route:function(){this.nav_open=!1}}},jn=Kn,Vn=Object(I["a"])(jn,Rn,Nn,!1,null,null,null),Gn=Vn.exports,qn=A("9d59"),Wn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-not-authenticated-notice"},[e("h3",{domProps:{textContent:t._s(t.text_no_auth)}}),e("div",{staticClass:"monsterinsights-settings-input monsterinsights-settings-input-authenticate"},[e("span",{staticClass:"monsterinsights-dark",domProps:{textContent:t._s(t.text_auth_label)}}),t.update_settings?e("div",[e("a",{staticClass:"monsterinsights-button-alt monsterinsights-button",attrs:{slot:"before_connect",href:t.wizard_url},domProps:{textContent:t._s(t.text_wizard)},slot:"before_connect"})]):e("div",[e("p",{staticClass:"monsterinsights-dark"},[e("strong",{domProps:{textContent:t._s(t.text_ask_webmaster)}})])])])])},Yn=[],zn={name:"ReportNoAuth",data:function(){return{text_no_auth:Object(l["a"])("You must connect with MonsterInsights before you can view reports.","google-analytics-for-wordpress"),text_auth_label:Object(l["a"])("MonsterInsights makes it effortless for you to connect your site with Google Analytics and see reports right here in the WordPress dashboard.","google-analytics-for-wordpress"),text_wizard:Object(l["a"])("Launch Setup Wizard","google-analytics-for-wordpress"),text_ask_webmaster:Object(l["a"])("Please ask your webmaster to connect MonsterInsights to Google Analytics.","google-analytics-for-wordpress"),wizard_url:this.$mi.wizard_url,update_settings:this.$mi.update_settings}}},Xn=zn,Jn=Object(I["a"])(Xn,Wn,Yn,!1,null,null,null),Zn=Jn.exports,$n=A("8c1c"),tr=A("b52e"),er={name:"ModuleReports",router:On,components:{TheQuickLinks:tr["a"],ReportReAuth:$n["a"],ReportNoAuth:Zn,TheAppNotices:qn["a"],ReportsNavigation:Gn,TheAppNavigation:Ln["a"],TheAppHeader:Tn["a"],Notifications:Pn["a"]},computed:Object(i["a"])(Object(i["a"])({},Object(o["b"])({blocked:"$_app/blocked",blur:"$_reports/blur",noauth:"$_reports/noauth",reauth:"$_reports/reauth",isLoaded:"$_reports/isLoaded"})),{},{route:function(){return this.$route.name},mainClass:function(){var t="monsterinsights-admin-page monsterinsights-reports-page";return this.blur&&(t+=" monsterinsights-blur"),t}}),beforeCreate:function(){var t="$_reports";t in this.$store._modules.root._children||this.$store.registerModule(t,a["a"])},created:function(){var t=this;this.updateSelectedReport(this.route),this.$store.dispatch("$_queue/add",(function(){return t.$store.dispatch("$_notifications/getNotifications")}))},watch:{$route:function(t){this.updateSelectedReport(t.name)}},methods:{updateSelectedReport:function(t){this.$mi.authed||(this.$store.commit("$_reports/ENABLE_BLUR"),this.$store.commit("$_reports/ENABLE_NOAUTH")),this.$store.commit("$_reports/UPDATE_ACTIVE_REPORT",t)}}},Ar=er,nr=Object(I["a"])(Ar,n,r,!1,null,null,null),rr=nr.exports,ir=A("619c"),or=A("7460"),ar={install:function(t){t.prototype.$miOverviewTooltips=function(t){if(!t.title){var e=document.querySelectorAll(".monsterinsights-line-chart-tooltip");return e.forEach((function(t){t.style.opacity=0})),!1}var A=t.title[0],n=t.title[1],r=parseInt(t.title[2]),i=t.title[3],o=t.title[4],a=t.title[5]?t.title[5]:[],s=document.getElementById("monsterinsights-chartjs-line-"+o+"-tooltip");if(null===s&&(s=document.createElement("div"),document.body.appendChild(s),s.setAttribute("id","monsterinsights-chartjs-line-"+o+"-tooltip"),s.classList.add("monsterinsights-line-chart-tooltip")),t.opacity){s.classList.remove("above"),s.classList.remove("below"),s.classList.remove("no-transform"),t.yAlign?s.classList.add(t.yAlign):s.classList.add("no-transform");var l="";l+=0===r?"0%":r>0?'<span class="monsterinsights-green"><span class="monsterinsights-arrow monsterinsights-up"></span>'+r+"%</span>":'<span class="monsterinsights-red"><span class="monsterinsights-arrow monsterinsights-down"></span>'+Math.abs(r)+"%</span>";var c='<div class="monsterinsights-reports-overview-datagraph-tooltip-container monsterinsights-reports-tooltip">';c+='<div class="monsterinsights-reports-overview-datagraph-tooltip-title">'+A+"</div>",c+='<div class="monsterinsights-reports-overview-datagraph-tooltip-number">'+n+"</div>",c+='<div class="monsterinsights-reports-overview-datagraph-tooltip-descriptor">'+i+"</div>",c+='<div class="monsterinsights-reports-overview-datagraph-tooltip-trend">'+l+"</div>",a&&(c+="<hr>",a.forEach((function(t){t.title&&(c+=t.title+"<br>")}))),c+="</div>",s.innerHTML=c;var u=this._chart.canvas.getBoundingClientRect();s.style.opacity="1",s.style.left=u.left+window.pageXOffset+t.x+"px",s.style.top=u.top+window.pageYOffset+t.y+"px",s.style.fontFamily="Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;",s.style.fontSize=t.fontSize,s.style.fontStyle=t._fontStyle,s.style.padding=t.yPadding+"px "+t.xPadding+"px",s.style.zIndex=99999,s.style.pointerEvents="none"}else s.style.opacity=0},t.prototype.$miPieTooltips=function(t){if(!t.title){var e=document.querySelectorAll(".monsterinsights-pie-chart-tooltip");return e.forEach((function(t){t.style.opacity=0})),!1}var A=t.title[0],n=t.title[1],r=t.title[2],i=document.getElementById("monsterinsights-chartjs-pie-"+r+"-tooltip");null===i&&(i=document.createElement("div"),document.body.appendChild(i),i.setAttribute("id","monsterinsights-chartjs-pie-"+r+"-tooltip")),i.classList.remove("above"),i.classList.remove("below"),i.classList.remove("no-transform"),t.yAlign?i.classList.add(t.yAlign):i.classList.add("no-transform");var o='<div class="monsterinsights-reports-overview-datagraph-tooltip-container monsterinsights-reports-tooltip">';o+='<div class="monsterinsights-reports-overview-datagraph-tooltip-title">'+A+"</div>",o+='<div class="monsterinsights-reports-overview-datagraph-tooltip-number">'+n+"%</div>",o+="</div>",i.innerHTML=o;var a=0;if(t.yAlign){var s=0;t.caretHeight&&(s=t.caretHeight),a="above"===t.yAlign?t.y-s-t.caretPadding:t.y+s+t.caretPadding}i.style.opacity=1,i.style.left=t.x-50+"px",i.style.top=a-40+"px",i.style.padding=t.yPadding+"px "+t.xPadding+"px",i.style.zIndex="99999"},t.prototype.$miyearInReviewTooltips=function(t){if(!t.title){var e=document.querySelectorAll(".monsterinsights-line-chart-tooltip");return e.forEach((function(t){t.style.opacity=0})),!1}var A=t.title[0],n=t.title[1],r=t.title[4],i=document.getElementById("monsterinsights-chartjs-line-"+r+"-tooltip");if(null===i&&(i=document.createElement("div"),document.body.appendChild(i),i.setAttribute("id","monsterinsights-chartjs-line-"+r+"-tooltip"),i.classList.add("monsterinsights-line-chart-tooltip")),t.opacity){i.classList.remove("above"),i.classList.remove("below"),i.classList.remove("no-transform"),t.yAlign?i.classList.add(t.yAlign):i.classList.add("no-transform");var o='<div class="monsterinsights-reports-overview-datagraph-tooltip-container monsterinsights-reports-tooltip">';o+='<div class="monsterinsights-reports-overview-datagraph-tooltip-title">'+A+"</div>",o+='<div class="monsterinsights-reports-overview-datagraph-tooltip-number">'+n+"</div>",o+="</div>",i.innerHTML=o;var a=this._chart.canvas.getBoundingClientRect();i.style.opacity="1",i.style.left=a.left+window.pageXOffset+t.x+"px",i.style.top=a.top+window.pageYOffset+t.y+"px",i.style.fontFamily="Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;",i.style.fontSize=t.fontSize,i.style.fontStyle=t._fontStyle,i.style.padding=t.yPadding+"px "+t.xPadding+"px",i.style.zIndex=99999,i.style.pointerEvents="none"}else i.style.opacity=0},t.prototype.$mi_loading_toast=function(e,A){t.prototype.$swal({type:"info",customContainerClass:"monsterinsights-swal",title:e||Object(l["a"])("Refreshing Report","google-analytics-for-wordpress"),html:A||Object(l["a"])("Loading new report data...","google-analytics-for-wordpress"),allowOutsideClick:!1,allowEscapeKey:!1,allowEnterKey:!1,onOpen:function(){t.prototype.$swal.showLoading()}})},t.prototype.$mi_error_toast=function(e){var A=e.type,n=void 0===A?"error":A,r=e.customContainerClass,i=void 0===r?"monsterinsights-swal":r,o=e.allowOutsideClick,a=void 0!==o&&o,s=e.allowEscapeKey,c=void 0!==s&&s,u=e.allowEnterKey,h=void 0!==u&&u,d=e.title,g=void 0===d?Object(l["a"])("Error","google-analytics-for-wordpress"):d,f=e.html,p=void 0===f?Object(l["a"])("Please try again.","google-analytics-for-wordpress"):f,m=e.confirmButtonText,w=void 0===m?"OK":m,B=e.showCancelButton,v=void 0!==B&&B,y=e.cancelButtonText,b=void 0===y?"Cancel":y,C=e.footer,x=void 0!==C&&C,F=e.onClose,Q=void 0===F?function(){}:F;return t.prototype.$swal({type:n,customContainerClass:i,allowOutsideClick:a,allowEscapeKey:c,allowEnterKey:h,title:g,html:p,footer:x,showCancelButton:v,cancelButtonText:b,confirmButtonText:w,onOpen:function(){t.prototype.$swal.hideLoading()},onClose:Q})},t.prototype.$mi_success_toast=function(e){var A=e.animation,n=void 0!==A&&A,r=e.toast,i=void 0===r||r,o=e.position,a=void 0===o?"top-end":o,s=e.showConfirmButton,c=void 0!==s&&s,u=e.type,h=void 0===u?"success":u,d=e.timer,g=void 0===d?3e3:d,f=e.customClass,p=void 0===f?"mi-success":f,m=e.showCloseButton,w=void 0===m||m,B=e.title,v=void 0===B?Object(l["a"])("Settings Updated","google-analytics-for-wordpress"):B,y=e.showCancelButton,b=void 0!==y&&y,C=e.confirmButtonText,x=void 0===C?"":C,F=e.cancelButtonText,Q=void 0===F?"":F,U=e.text,_=void 0===U?"":U;return t.prototype.$swal({customContainerClass:"monsterinsights-swal",animation:n,toast:i,position:a,showConfirmButton:c,type:h,customClass:p,showCloseButton:w,title:v,timer:g,showCancelButton:b,confirmButtonText:x,cancelButtonText:Q,text:_})},t.prototype.$mi_get_upsell_content=function(t){var e={},A={overview:{mainheading:Object(l["a"])("Publishers Report","google-analytics-for-wordpress"),title:Object(l["a"])("Improve Your Conversion Rate With Insights Into Which Content Works Best.","google-analytics-for-wordpress"),subtitle:Object(l["a"])("Stop guessing about what content your visitors are interested in. MonsterInsights Publisher Report shows you exactly which content gets the most visits, so you can analyze and optimize it for higher conversions.","google-analytics-for-wordpress"),features:[Object(l["a"])("Top Landing Pages","google-analytics-for-wordpress"),Object(l["a"])("Top Affilliate Links","google-analytics-for-wordpress"),Object(l["a"])("Top Exit Pages","google-analytics-for-wordpress"),Object(l["a"])("Top Download Links","google-analytics-for-wordpress"),Object(l["a"])("Top Outbound Links","google-analytics-for-wordpress"),Object(l["a"])("Scroll Depth","google-analytics-for-wordpress")]},publisher:{mainheading:Object(l["a"])("Publishers Report","google-analytics-for-wordpress"),title:Object(l["a"])("Improve Your Conversion Rate With Insights Into Which Content Works Best.","google-analytics-for-wordpress"),features:[Object(l["a"])("Top Landing Pages","google-analytics-for-wordpress"),Object(l["a"])("Top Affilliate Links","google-analytics-for-wordpress"),Object(l["a"])("Top Exit Pages","google-analytics-for-wordpress"),Object(l["a"])("Top Download Links","google-analytics-for-wordpress"),Object(l["a"])("Top Outbound Links","google-analytics-for-wordpress"),Object(l["a"])("Scroll Depth","google-analytics-for-wordpress")]},ecommerce:{mainheading:Object(l["a"])("eCommerce Report","google-analytics-for-wordpress"),title:Object(l["a"])("Increase Sales and Make More Money With Enhanced eCommerce Insights.","google-analytics-for-wordpress"),features:[Object(l["a"])("10+ eCommerce Integrations","google-analytics-for-wordpress"),Object(l["a"])("Average Order Value","google-analytics-for-wordpress"),Object(l["a"])("Total Revenue","google-analytics-for-wordpress"),Object(l["a"])("Sessions to Purchase","google-analytics-for-wordpress"),Object(l["a"])("Top Conversion Sources","google-analytics-for-wordpress"),Object(l["a"])("Top Products","google-analytics-for-wordpress"),Object(l["a"])("Number of Transactions","google-analytics-for-wordpress"),Object(l["a"])("Time to Purchase","google-analytics-for-wordpress")]},dimensions:{mainheading:Object(l["a"])("Dimensions Report","google-analytics-for-wordpress"),title:Object(l["a"])("Increase Engagement and Unlock New Insights About Your Site.","google-analytics-for-wordpress"),features:[Object(l["a"])("Author Tracking","google-analytics-for-wordpress"),Object(l["a"])("User ID Tracking","google-analytics-for-wordpress"),Object(l["a"])("Post Types","google-analytics-for-wordpress"),Object(l["a"])("Tag Tracking","google-analytics-for-wordpress"),Object(l["a"])("Categories","google-analytics-for-wordpress"),Object(l["a"])("SEO Scores","google-analytics-for-wordpress"),Object(l["a"])("Publish Times","google-analytics-for-wordpress"),Object(l["a"])("Focus Keywords","google-analytics-for-wordpress")]},forms:{mainheading:Object(l["a"])("Forms Report","google-analytics-for-wordpress"),title:Object(l["a"])("Track Every Type of Web Form and Gain Visibility Into Your Customer Journey.","google-analytics-for-wordpress"),columns:1,features:[Object(l["a"])("Conversion Counts","google-analytics-for-wordpress"),Object(l["a"])("Impression Counts","google-analytics-for-wordpress"),Object(l["a"])("Conversion Rates","google-analytics-for-wordpress")]},queries:{mainheading:Object(l["a"])("Search Console Report","google-analytics-for-wordpress"),title:Object(l["a"])("See Exactly How Visitors Find Your Website From Google.","google-analytics-for-wordpress"),columns:1,features:[Object(l["a"])("Top Google Search Terms","google-analytics-for-wordpress"),Object(l["a"])("Number of Clicks","google-analytics-for-wordpress"),Object(l["a"])("Click-through Ratio","google-analytics-for-wordpress"),Object(l["a"])("Average Results Position","google-analytics-for-wordpress")]},realtime:{mainheading:Object(l["a"])("Realtime Report","google-analytics-for-wordpress"),title:Object(l["a"])("See Who And What is Happening on Your Website in Realtime.","google-analytics-for-wordpress"),features:[Object(l["a"])("Top Page Views","google-analytics-for-wordpress"),Object(l["a"])("Current Active Users","google-analytics-for-wordpress"),Object(l["a"])("Top Referral Sources","google-analytics-for-wordpress"),Object(l["a"])("Pageviews Per Minute","google-analytics-for-wordpress"),Object(l["a"])("Top Countries","google-analytics-for-wordpress"),Object(l["a"])("Top Cities","google-analytics-for-wordpress")]},sitespeed:{mainheading:Object(l["a"])("Site Speed Report","google-analytics-for-wordpress"),title:Object(l["a"])("Improve Your User Experience and Improve Search Engine Rankings.","google-analytics-for-wordpress"),features:[Object(l["a"])("Overall Site Speed Score","google-analytics-for-wordpress"),Object(l["a"])("Server Response Times","google-analytics-for-wordpress"),Object(l["a"])("Mobile and Desktop Scores","google-analytics-for-wordpress"),Object(l["a"])("First Contentful Paint","google-analytics-for-wordpress"),Object(l["a"])("Automatic Recommendations","google-analytics-for-wordpress"),Object(l["a"])("Total Blocking Time","google-analytics-for-wordpress"),Object(l["a"])("On-Demand Audits","google-analytics-for-wordpress"),Object(l["a"])("Time to Interactive","google-analytics-for-wordpress")]},media:{mainheading:Object(l["a"])("Media Report","google-analytics-for-wordpress"),title:Object(l["a"])("Easily See Which Videos Are Most Popular.","google-analytics-for-wordpress"),features:[Object(l["a"])("Videos Plays, Average Duration, and Completions","google-analytics-for-wordpress"),Object(l["a"])("Works with YouTube, Vimeo, and HTML 5 Videos","google-analytics-for-wordpress"),Object(l["a"])("Compare stats over time","google-analytics-for-wordpress")]}};return A[t]&&(e=A[t]),e},t.prototype.$mi_intervals=function(){return{today:{text:Object(l["a"])("Today","google-analytics-for-wordpress"),start:Qt()(),end:Qt()(),interval:"today"},yesterday:{text:Object(l["a"])("Yesterday","google-analytics-for-wordpress"),start:Qt()().subtract(1,"days"),end:Qt()().subtract(1,"days"),interval:"yesterday"},lastweek:{text:Object(l["a"])("Last Week","google-analytics-for-wordpress"),end:Qt()().startOf("week"),start:Qt()().startOf("week").subtract(6,"days"),interval:"lastweek"},lastmonth:{text:Object(l["a"])("Last Month","google-analytics-for-wordpress"),end:Qt()().startOf("month").subtract(1,"days"),start:Qt()().startOf("month").subtract(1,"month"),interval:"lastmonth"},last7days:{text:Object(l["a"])("Last 7 days","google-analytics-for-wordpress"),end:Qt()().subtract(1,"days"),start:Qt()().subtract(7,"days"),interval:"last7days"},last30days:{text:Object(l["a"])("Last 30 days","google-analytics-for-wordpress"),end:Qt()().subtract(1,"days"),start:Qt()().subtract(30,"days"),interval:"last30days"}}}}},sr=ar,lr=A("4360"),cr=A("e37d"),ur=A("6c6b"),hr=(A("5eda"),A("f293"),A("c0cc")),dr=document.getElementById("monsterinsights-reports");ot["a"].config.productionTip=!1,dr&&(Object(ur["a"])({ctrl:!0}),ot["a"].use(s["a"]),ot["a"].use(ir["a"]),ot["a"].use(cr["a"],{defaultTemplate:'<div class="monsterinsights-tooltip" role="tooltip"><div class="monsterinsights-tooltip-arrow"></div><div class="monsterinsights-tooltip-inner"></div></div>',defaultArrowSelector:".monsterinsights-tooltip-arrow, .monsterinsights-tooltip__arrow",defaultInnerSelector:".monsterinsights-tooltip-inner, .monsterinsights-tooltip__inner"}),ot["a"].use(or["a"]),ot["a"].use(sr),ot["a"].use(or["a"]),ot["a"].use(hr["a"],{componentPrefix:"monsterinsights",classPrefix:"monsterinsights",textDomain:"google-analytics-for-wordpress"}),Object(l["c"])(window.monsterinsights.translations,"google-analytics-for-wordpress"),new ot["a"]({store:lr["a"],mounted:function(){lr["a"].dispatch("$_app/init"),lr["a"].dispatch("$_addons/getAddons"),lr["a"].dispatch("$_settings/getSettings"),ot["a"].prototype.$isPro()&&lr["a"].dispatch("$_license/getLicense")},render:function(t){return t(rr)}}).$mount(dr))},f293:function(t,e,A){}});