UNPKG

@progress/kendo-ui

Version:

This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.

3 lines 219 kB
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("kendo.common.cmn.chunk.js"),require("kendo.pako-esm.cmn.chunk.js")):"function"==typeof define&&define.amd?define(["exports","kendo.common.cmn.chunk.min","kendo.pako-esm.cmn.chunk.min"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).kendo=t.kendo||{},t.kendo._globals=t.kendo._globals||{},t.kendo._globals.DrawingCmnChunk={}),t.kendo._globals.CommonCmnChunk,t.kendo._globals.PakoEsmCmnChunk)}(this,(function(t,e,r){var o=function(){},n=function(t){function e(){t.call(this),this._events={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.bind=function(t,e,r){var o=arguments,n=this,a=s(t),h=i(e),c=a.length;if(void 0===e){for(var p in t)n.bind(p,t[p]);return this}for(var u=function(t){var i=a[t],s=h?e:e[i];if(s){if(r){var c=s;(s=function(){n.unbind(i,s),c.apply(n,o)}).original=c}(n._events[i]=n._events[i]||[]).push(s)}},l=0;l<c;l++)u(l);return this},e.prototype.one=function(t,e){return this.bind(t,e,!0)},e.prototype.first=function(t,e){for(var r=s(t),o=i(e),n=0,a=r.length;n<a;n++){var h=r[n],c=o?e:e[h];if(c)(this._events[h]=this._events[h]||[]).unshift(c)}return this},e.prototype.trigger=function(t,e){void 0===e&&(e={});var r=this._events[t];if(r){var o=r.length;e.sender=this,e._defaultPrevented=!1,e.preventDefault=a,e.isDefaultPrevented=h,r=r.slice();for(var n=0;n<o;n++)r[n].call(this,e);return!0===e._defaultPrevented}return!1},e.prototype.unbind=function(t,e){var r=this._events[t];if(void 0===t)this._events={};else if(r)if(e)for(var o=r.length-1;o>=0;o--)r[o]!==e&&r[o].original!==e||r.splice(o,1);else this._events[t]=[];return this},e}(o);function i(t){return"function"==typeof t}function s(t){return"string"==typeof t?[t]:t}function a(){this._defaultPrevented=!0}function h(){return!0===this._defaultPrevented}var c=function(t){var e="undefined"!=typeof window?window:{},r=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(t){setTimeout(t,1e3/60)};c=function(t){return r.call(e,t)},c(t)},p=c,u=/&/g,l=/</g,f=/"/g,d=/'/g,y=/>/g;function g(t){return String(t).replace(u,"&amp;").replace(l,"&lt;").replace(y,"&gt;").replace(f,"&quot;").replace(d,"&#39;")}function m(t){var e=window.console;void 0!==e&&e.log&&e.log(t)}function v(t){var e=t.dataURI,r=t.fileName,o=e;if("string"==typeof o&&window.Blob){for(var n=o.split(";base64,"),i=n[0],s=atob(n[1]),a=new Uint8Array(s.length),h=0;h<s.length;h++)a[h]=s.charCodeAt(h);o=new Blob([a.buffer],{type:i})}if(navigator.msSaveBlob)navigator.msSaveBlob(o,r);else{var c=document.createElement("a");c.download=r,o=c.href=URL.createObjectURL(o);var p=document.createEvent("MouseEvents");p.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),c.dispatchEvent(p),setTimeout((function(){URL.revokeObjectURL(o)}))}}var _=null,b={get browser(){return"undefined"==typeof window||_||(_=function(t){var e={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+))/i},r={};for(var o in e)if(e.hasOwnProperty(o)){var n=t.match(e[o]);if(n){r[o]=!0,r[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,r.version=parseInt(document.documentMode||n[2],10);break}}return r}(window.navigator.userAgent)),_}};var w=Date.now||function(){return(new Date).getTime()};function x(t,e){var r,o=0;if(!e||e<=0)return t;var n=function(){var n=w()-o,i=arguments,s=function(){t.apply(null,i),o=w()};if(!o)return s();r&&clearTimeout(r),n>e?s():r=setTimeout(s,e-n)};return n.cancel=function(){clearTimeout(r)},n}var S={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",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"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",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"778899",lightslategrey:"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",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},C=b.browser,k=function(t){var e=Object.keys(S);e.push("transparent");var r=new RegExp("^("+e.join("|")+")(\\W|$)","i");return k=function(t){return r.exec(t)},r.exec(t)},T=function(t){function e(){t.call(this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toHSV=function(){return this},e.prototype.toRGB=function(){return this},e.prototype.toHex=function(t){return this.toBytes().toHex(t)},e.prototype.toBytes=function(){return this},e.prototype.toCss=function(t){return"#"+this.toHex(t)},e.prototype.toCssRgba=function(){var t=this.toBytes();return"rgba("+t.r+", "+t.g+", "+t.b+", "+parseFloat(Number(this.a).toFixed(3))+")"},e.prototype.toDisplay=function(){return C.msie&&C.version<9?this.toCss():this.toCssRgba()},e.prototype.equals=function(t){return t===this||null!=t&&this.toCssRgba()===j(t).toCssRgba()},e.prototype.diff=function(t){if(null===t)return NaN;var e=this.toBytes(),r=t.toBytes();return Math.sqrt(Math.pow(.3*(e.r-r.r),2)+Math.pow(.59*(e.g-r.g),2)+Math.pow(.11*(e.b-r.b),2))},e.prototype.clone=function(){var t=this.toBytes();return t===this&&(t=new M(t.r,t.g,t.b,t.a)),t},e}(o),O=function(t){function e(e,r,o,n){t.call(this),this.r=e,this.g=r,this.b=o,this.a=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toHSV=function(){var t,e,r=this,o=r.r,n=r.g,i=r.b,s=Math.min(o,n,i),a=Math.max(o,n,i),h=a-s,c=a;return 0===h?new E(0,0,c,this.a):(0!==a?(e=h/a,t=o===a?(n-i)/h:n===a?2+(i-o)/h:4+(o-n)/h,(t*=60)<0&&(t+=360)):(e=0,t=-1),new E(t,e,c,this.a))},e.prototype.toHSL=function(){var t,e,r=this,o=r.r,n=r.g,i=r.b,s=Math.max(o,n,i),a=Math.min(o,n,i),h=(s+a)/2;if(s===a)t=e=0;else{var c=s-a;switch(e=h>.5?c/(2-s-a):c/(s+a),s){case o:t=(n-i)/c+(n<i?6:0);break;case n:t=(i-o)/c+2;break;case i:t=(o-n)/c+4}}return new P(60*t,100*e,100*h,this.a)},e.prototype.toBytes=function(){return new M(255*this.r,255*this.g,255*this.b,this.a)},e}(T),M=function(t){function e(e,r,o,n){t.call(this,Math.round(e),Math.round(r),Math.round(o),n)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toRGB=function(){return new t(this.r/255,this.g/255,this.b/255,this.a)},e.prototype.toHSV=function(){return this.toRGB().toHSV()},e.prototype.toHSL=function(){return this.toRGB().toHSL()},e.prototype.toHex=function(t){var e=A(this.r,2)+A(this.g,2)+A(this.b,2);return t&&t.alpha&&(e+=A(Math.round(255*this.a),2)),e},e.prototype.toBytes=function(){return this},e}(O);function A(t,e,r){void 0===r&&(r="0");for(var o=t.toString(16);e>o.length;)o=r+o;return o}var E=function(t){function e(e,r,o,n){t.call(this),this.h=e,this.s=r,this.v=o,this.a=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toRGB=function(){var t,e,r,o=this,n=o.h,i=o.s,s=o.v;if(0===i)t=e=r=s;else{n/=60;var a=Math.floor(n),h=n-a,c=s*(1-i),p=s*(1-i*h),u=s*(1-i*(1-h));switch(a){case 0:t=s,e=u,r=c;break;case 1:t=p,e=s,r=c;break;case 2:t=c,e=s,r=u;break;case 3:t=c,e=p,r=s;break;case 4:t=u,e=c,r=s;break;default:t=s,e=c,r=p}}return new O(t,e,r,this.a)},e.prototype.toHSL=function(){return this.toRGB().toHSL()},e.prototype.toBytes=function(){return this.toRGB().toBytes()},e}(T),P=function(t){function e(e,r,o,n){t.call(this),this.h=e,this.s=r,this.l=o,this.a=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toRGB=function(){var t,e,r,o=this.h/360,n=this.s/100,i=this.l/100;if(0===n)t=e=r=i;else{var s=i<.5?i*(1+n):i+n-i*n,a=2*i-s;t=R(a,s,o+1/3),e=R(a,s,o),r=R(a,s,o-1/3)}return new O(t,e,r,this.a)},e.prototype.toHSV=function(){return this.toRGB().toHSV()},e.prototype.toBytes=function(){return this.toRGB().toBytes()},e}(T);function R(t,e,r){var o=r;return o<0&&(o+=1),o>1&&(o-=1),o<1/6?t+6*(e-t)*o:o<.5?e:o<2/3?t+(e-t)*(2/3-o)*6:t}function N(t){return parseFloat(parseFloat(parseInt(t,16)/255).toFixed(3))}function j(t,e){var r,o;if(!t||"none"===t)return null;if(t instanceof T)return t;var n=t.toLowerCase();if(r=k(n))return(n="transparent"===r[1]?new O(1,1,1,0):j(S[r[1]],e)).match=[r[1]],n;if((r=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(n))?o=new M(parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16),1):(r=/^#?([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(n))?o=new M(parseInt(r[1]+r[1],16),parseInt(r[2]+r[2],16),parseInt(r[3]+r[3],16),1):(r=/^#?([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(n))?o=new M(parseInt(r[1]+r[1],16),parseInt(r[2]+r[2],16),parseInt(r[3]+r[3],16),N(r[4]+r[4])):(r=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(n))?o=new M(parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16),N(r[4])):(r=/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/.exec(n))?o=new M(parseInt(r[1],10),parseInt(r[2],10),parseInt(r[3],10),1):(r=/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)/.exec(n))?o=new M(parseInt(r[1],10),parseInt(r[2],10),parseInt(r[3],10),parseFloat(r[4])):(r=/^rgb\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*\)/.exec(n))?o=new O(parseFloat(r[1])/100,parseFloat(r[2])/100,parseFloat(r[3])/100,1):(r=/^rgba\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9.]+)\s*\)/.exec(n))?o=new O(parseFloat(r[1])/100,parseFloat(r[2])/100,parseFloat(r[3])/100,parseFloat(r[4])):(r=/^color\(\s*srgb\s*([0-9]*\.?[0-9]+)\s+([0-9]*\.?[0-9]+)\s+([0-9]*\.?[0-9]+)\s*(\/\s+([0-9]*\.?[0-9]+))?\)/.exec(n))&&(o=new O(parseFloat(r[1]),parseFloat(r[2]),parseFloat(r[3]),parseFloat(r[5]||"1"))),o)o.match=r;else if(!e)throw new Error("Cannot parse color: "+n);return o}var F=function(t){function e(r){var o=this;if(t.call(this),1===arguments.length)for(var n=e.formats,i=this.resolveColor(r),s=0;s<n.length;s++){var a=n[s].re,h=n[s].process,c=a.exec(i);if(c){var p=h(c);o.r=p[0],o.g=p[1],o.b=p[2]}}else this.r=arguments[0],this.g=arguments[1],this.b=arguments[2];this.r=this.normalizeByte(this.r),this.g=this.normalizeByte(this.g),this.b=this.normalizeByte(this.b)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toHex=function(){var t=this.padDigit,e=this.r.toString(16),r=this.g.toString(16),o=this.b.toString(16);return"#"+t(e)+t(r)+t(o)},e.prototype.resolveColor=function(t){var r=t||"black";return"#"===r.charAt(0)&&(r=r.substr(1,6)),r=(r=r.replace(/ /g,"")).toLowerCase(),r=e.namedColors[r]||r},e.prototype.normalizeByte=function(t){return t<0||isNaN(t)?0:t>255?255:t},e.prototype.padDigit=function(t){return 1===t.length?"0"+t:t},e.prototype.brightness=function(t){var e=Math.round;return this.r=e(this.normalizeByte(this.r*t)),this.g=e(this.normalizeByte(this.g*t)),this.b=e(this.normalizeByte(this.b*t)),this},e.prototype.percBrightness=function(){return Math.sqrt(.241*this.r*this.r+.691*this.g*this.g+.068*this.b*this.b)},e.prototype.isDark=function(){return this.percBrightness()<180},e.fromBytes=function(t,e,r,o){return new M(t,e,r,null!=o?o:1)},e.fromRGB=function(t,e,r,o){return new O(t,e,r,null!=o?o:1)},e.fromHSV=function(t,e,r,o){return new E(t,e,r,null!=o?o:1)},e.fromHSL=function(t,e,r,o){return new P(t,e,r,null!=o?o:1)},e}(o);F.formats=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(t){return[parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10)]}},{re:/^(\w{2})(\w{2})(\w{2})$/,process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],F.namedColors=S;var L=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.observers=function(){return this._observers=this._observers||[],this._observers},e.prototype.addObserver=function(t){return this._observers?this._observers.push(t):this._observers=[t],this},e.prototype.removeObserver=function(t){var e=this.observers(),r=e.indexOf(t);return-1!==r&&e.splice(r,1),this},e.prototype.trigger=function(t,e){var r=this._observers;if(r&&!this._suspended)for(var o=0;o<r.length;o++){var n=r[o];n[t]&&n[t](e)}return this},e.prototype.optionsChange=function(t){void 0===t&&(t={}),t.element=this,this.trigger("optionsChange",t)},e.prototype.geometryChange=function(){this.trigger("geometryChange",{element:this})},e.prototype.suspend=function(){return this._suspended=(this._suspended||0)+1,this},e.prototype.resume=function(){return this._suspended=Math.max((this._suspended||0)-1,0),this},e.prototype._observerField=function(t,e){this[t]&&this[t].removeObserver(this),this[t]=e,e.addObserver(this)},e}(o);function I(t,e){return t.push.apply(t,e),t}var z={1:"i",10:"x",100:"c",2:"ii",20:"xx",200:"cc",3:"iii",30:"xxx",300:"ccc",4:"iv",40:"xl",400:"cd",5:"v",50:"l",500:"d",6:"vi",60:"lx",600:"dc",7:"vii",70:"lxx",700:"dcc",8:"viii",80:"lxxx",800:"dccc",9:"ix",90:"xc",900:"cm",1e3:"m"};function B(t){for(var e=[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],r="";t>0;)t<e[0]?e.shift():(r+=z[e[0]],t-=e[0]);return r}function D(){var t,e,r=new Promise((function(o,n){t=function(t){return r._state="resolved",o(t),r},e=function(t){return r._state="rejected",n(t),r}}));return r._state="pending",r.resolve=t,r.reject=e,r.state=function(){return r._state},r}function G(t){return void 0!==t}var q=1;function U(){return"kdef"+q++}var H=Math.PI/180,$=Number.MAX_VALUE,X=-Number.MAX_VALUE;function V(t){return t/H}var Y=String.fromCharCode;function W(t){return Y(t>>8)+Y(255&t)}var J="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Z(t){for(var e="",r=0,o=function(t){for(var e="",r=0;r<t.length;r++){var o=t.charCodeAt(r);if(55296<=o&&o<=56319){var n=o,i=t.charCodeAt(++r);isNaN(i)||(o=1024*(n-55296)+(i-56320)+65536)}o<128?e+=Y(o):o<2048?(e+=Y(192|o>>>6),e+=Y(128|63&o)):o<65536?(e+=Y(224|o>>>12),e+=Y(128|o>>>6&63),e+=Y(128|63&o)):o<1114111&&(e+=Y(240|o>>>18),e+=Y(128|o>>>12&63),e+=Y(128|o>>>6&63),e+=Y(128|63&o))}return e}(t);r<o.length;){var n=o.charCodeAt(r++),i=o.charCodeAt(r++),s=o.charCodeAt(r++),a=n>>2,h=(3&n)<<4|i>>4,c=(15&i)<<2|s>>6,p=63&s;isNaN(i)?c=p=64:isNaN(s)&&(p=64),e=e+J.charAt(a)+J.charAt(h)+J.charAt(c)+J.charAt(p)}return e}function K(t){return G((t.x||{}).location)?{x:t.x.location,y:t.y.location}:{x:t.pageX||t.clientX||0,y:t.pageY||t.clientY||0}}function Q(t){return void 0===t&&(t={}),t.touch?t.touch.initialTouch:t.target}function tt(t){return""===t||null===t||"none"===t||"transparent"===t||!G(t)}function et(t){if(t)return t[t.length-1]}function rt(t,e,r){return Math.max(Math.min(t,r),e)}function ot(t,e){if(t.length<2)return t.slice();return function t(r){if(r.length<=1)return r;var o=Math.floor(r.length/2),n=r.slice(0,o),i=r.slice(o);return function(t,r){for(var o=[],n=0,i=0,s=0;n<t.length&&i<r.length;)e(t[n],r[i])<=0?o[s++]=t[n++]:o[s++]=r[i++];return n<t.length&&o.push.apply(o,t.slice(n)),i<r.length&&o.push.apply(o,r.slice(i)),o}(n=t(n),i=t(i))}(t)}function nt(t){return Promise.all(t)}function it(t){return t*H}function st(t,e){var r,o=(r=e)?Math.pow(10,r):1;return Math.round(t*o)/o}function at(t,e){return G(t)?t:e}function ht(t,e){for(var r in e)for(var o=r.trim().split(" "),n=0;n<o.length;n++)t.addEventListener(o[n],e[r],!1)}function ct(t){var e=t.getBoundingClientRect(),r=document.documentElement;return{top:e.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||0),left:e.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||0)}}function pt(t,e){for(var r={},o=window.getComputedStyle(t)||{},n=Array.isArray(e)?e:[e],i=0;i<n.length;i++){var s=n[i];r[s]=o[s]}return r}function ut(t){return isNaN(t)?t:t+"px"}function lt(t,e){if(!e){var r=pt(t,["width","height"]);return{width:parseInt(r.width,10),height:parseInt(r.height,10)}}var o=e.width,n=e.height;G(o)&&(t.style.width=ut(o)),G(n)&&(t.style.height=ut(n))}function ft(t,e){for(var r in void 0===e&&(e={}),e)for(var o=r.trim().split(" "),n=0;n<o.length;n++)t.removeEventListener(o[n],e[r],!1)}function dt(t){var e=pt(t,["paddingLeft","paddingTop"]),r=e.paddingLeft,o=e.paddingTop;return{top:parseFloat(o),left:parseFloat(r)}}var yt=function(t){function e(e,r,o,n,i,s){void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0),void 0===n&&(n=0),void 0===i&&(i=0),void 0===s&&(s=0),t.call(this),this.a=e,this.b=r,this.c=o,this.d=n,this.e=i,this.f=s}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.multiplyCopy=function(t){return new e(this.a*t.a+this.c*t.b,this.b*t.a+this.d*t.b,this.a*t.c+this.c*t.d,this.b*t.c+this.d*t.d,this.a*t.e+this.c*t.f+this.e,this.b*t.e+this.d*t.f+this.f)},e.prototype.invert=function(){var t=this,r=t.a,o=t.b,n=t.c,i=t.d,s=t.e,a=t.f,h=r*i-o*n;return 0===h?null:new e(i/h,-o/h,-n/h,r/h,(n*a-i*s)/h,(o*s-r*a)/h)},e.prototype.clone=function(){return new e(this.a,this.b,this.c,this.d,this.e,this.f)},e.prototype.equals=function(t){return!!t&&(this.a===t.a&&this.b===t.b&&this.c===t.c&&this.d===t.d&&this.e===t.e&&this.f===t.f)},e.prototype.round=function(t){return this.a=st(this.a,t),this.b=st(this.b,t),this.c=st(this.c,t),this.d=st(this.d,t),this.e=st(this.e,t),this.f=st(this.f,t),this},e.prototype.toArray=function(t){var e=[this.a,this.b,this.c,this.d,this.e,this.f];if(G(t))for(var r=0;r<e.length;r++)e[r]=st(e[r],t);return e},e.prototype.toString=function(t,e){return void 0===e&&(e=","),this.toArray(t).join(e)},e.translate=function(t,r){return new e(1,0,0,1,t,r)},e.unit=function(){return new e(1,0,0,1,0,0)},e.rotate=function(t,r,o){var n=new e;return n.a=Math.cos(it(t)),n.b=Math.sin(it(t)),n.c=-n.b,n.d=n.a,n.e=r-r*n.a+o*n.b||0,n.f=o-o*n.a-r*n.b||0,n},e.scale=function(t,r){return new e(t,0,0,r,0,0)},e}(o);yt.IDENTITY=yt.unit();var gt=/matrix\((.*)\)/;function mt(t){var e=getComputedStyle(t).transform;return"none"===e?yt.unit():function(t){var e=t.match(gt);if(null===e||2!==e.length)return yt.unit();var r=e[1].split(",").map((function(t){return parseFloat(t)}));return new(Function.prototype.bind.apply(yt,[null].concat(r)))}(e)}function vt(t){if(!t)return yt.unit();for(var e=mt(t),r=t.parentElement;r;){var o=mt(r);e=e.multiplyCopy(o),r=r.parentElement}return e.b=e.c=e.e=e.f=0,e}var _t=function(t){function e(e){t.call(this),this._size=e,this._length=0,this._map={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.put=function(t,e){var r=this._map,o={key:t,value:e};r[t]=o,this._head?(this._tail.newer=o,o.older=this._tail,this._tail=o):this._head=this._tail=o,this._length>=this._size?(r[this._head.key]=null,this._head=this._head.newer,this._head.older=null):this._length++},e.prototype.get=function(t){var e=this._map[t];if(e)return e===this._head&&e!==this._tail&&(this._head=e.newer,this._head.older=null),e!==this._tail&&(e.older&&(e.older.newer=e.newer,e.newer.older=e.older),e.older=this._tail,e.newer=null,this._tail.newer=e,this._tail=e),e.value},e}(o),bt=/\r?\n|\r|\t/g;function wt(t){return String(t).replace(bt," ")}function xt(t){var e=[];for(var r in t)e.push(r+t[r]);return e.sort().join("")}function St(t){for(var e=2166136261,r=0;r<t.length;++r)e+=(e<<1)+(e<<4)+(e<<7)+(e<<8)+(e<<24),e^=t.charCodeAt(r);return e>>>0}var Ct,kt={baselineMarkerSize:1};"undefined"!=typeof document&&((Ct=document.createElement("div")).style.setProperty("position","absolute","important"),Ct.style.setProperty("top","-4000px","important"),Ct.style.setProperty("width","auto","important"),Ct.style.setProperty("height","auto","important"),Ct.style.setProperty("padding","0","important"),Ct.style.setProperty("margin","0","important"),Ct.style.setProperty("border","0","important"),Ct.style.setProperty("line-height","normal","important"),Ct.style.setProperty("visibility","hidden","important"),Ct.style.setProperty("white-space","pre","important"));var Tt=function(t){function e(e){t.call(this),this._cache=new _t(1e3),this.options=Object.assign({},kt,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.measure=function(t,e,r){if(void 0===r&&(r={}),null==t)return{width:0,height:0,baseline:0};var o=St(t+xt(e)),n=this._cache.get(o);if(n)return n;var i={width:0,height:0,baseline:0},s=r.box||Ct,a=this._baselineMarker().cloneNode(!1);for(var h in e){var c=e[h];void 0!==c&&(s.style[h]=c)}var p=!1!==r.normalizeText?wt(t):String(t);return s.textContent=p,s.appendChild(a),document.body.appendChild(s),p.length&&(i.width=s.offsetWidth-this.options.baselineMarkerSize,i.height=s.offsetHeight,i.baseline=a.offsetTop+this.options.baselineMarkerSize),i.width>0&&i.height>0&&this._cache.put(o,i),s.parentNode.removeChild(s),i},e.prototype._baselineMarker=function(){var t=document.createElement("div");return t.style.display="inline-block",t.style.verticalAlign="baseline",t.style.width=this.options.baselineMarkerSize+"px",t.style.height=this.options.baselineMarkerSize+"px",t.style.overflow="hidden",t},e}(o);function Ot(t,e,r){return Tt.current.measure(t,e,r)}Tt.current=new Tt;var Mt=Object.freeze({__proto__:null,DEG_TO_RAD:H,LRUCache:_t,MAX_NUM:$,MIN_NUM:X,TextMetrics:Tt,append:I,arabicToRoman:B,bindEvents:ht,createPromise:D,defined:G,definitionId:U,deg:V,elementOffset:ct,elementPadding:dt,elementScale:vt,elementSize:lt,elementStyles:pt,encodeBase64:Z,eventCoordinates:K,eventElement:Q,hashKey:St,isTransparent:tt,last:et,limitValue:rt,measureText:Ot,mergeSort:ot,normalizeText:wt,now:w,objectKey:xt,promiseAll:nt,rad:it,round:st,unbindEvents:ft,valueOrDefault:at}),At={}.toString,Et=function(t){function e(e,r){for(var o in void 0===r&&(r=""),t.call(this),this.prefix=r,e){var n=e[o];n=this._wrap(n,o),this[o]=n}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){for(var e=t.split("."),r=this;e.length&&r;){r=r[e.shift()]}return r},e.prototype.set=function(t,e){this.get(t)!==e&&(this._set(t,this._wrap(e,t)),this.optionsChange({field:this.prefix+t,value:e}))},e.prototype._set=function(t,r){var o=t.indexOf(".")>=0,n=this,i=t;if(o){for(var s=i.split("."),a=this.prefix;s.length>1;){a+=(i=s.shift())+".";var h=n[i];h||((h=new e({},a)).addObserver(this),n[i]=h),n=h}i=s[0]}n._clear(i),n[i]=r},e.prototype._clear=function(t){var e=this[t];e&&e.removeObserver&&e.removeObserver(this)},e.prototype._wrap=function(t,r){var n=At.call(t),i=t;return null!==i&&G(i)&&"[object Object]"===n&&(t instanceof e||t instanceof o||(i=new e(i,this.prefix+r+".")),i.addObserver(this)),i},e}(L);function Pt(t){return function(e){return this[t]!==e&&(this[t]=e,this.geometryChange()),this}}function Rt(t){return function(){return this[t]}}var Nt=function(t,e){var r=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(t);return function(t,e){for(var r=0;r<e.length;r++){var o=e[r],n=o.charAt(0).toUpperCase()+o.substring(1,o.length);t["set"+n]=Pt(o),t["get"+n]=Rt(o)}}(r.prototype,e),r};function jt(t){return t&&"function"==typeof t.matrix?t.matrix():t}var Ft=function(t){function e(e,r){t.call(this),this.x=e||0,this.y=r||0}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={ZERO:{configurable:!0}};return e.prototype.equals=function(t){return t&&t.x===this.x&&t.y===this.y},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.rotate=function(t,r){var o=e.create(r)||e.ZERO;return this.transform(yt.rotate(t,o.x,o.y))},e.prototype.translate=function(t,e){return this.x+=t,this.y+=e,this.geometryChange(),this},e.prototype.translateWith=function(t){return this.translate(t.x,t.y)},e.prototype.move=function(t,e){return this.x=this.y=0,this.translate(t,e)},e.prototype.scale=function(t,e){return void 0===e&&(e=t),this.x*=t,this.y*=e,this.geometryChange(),this},e.prototype.scaleCopy=function(t,e){return this.clone().scale(t,e)},e.prototype.transform=function(t){var e=jt(t),r=this.x,o=this.y;return this.x=e.a*r+e.c*o+e.e,this.y=e.b*r+e.d*o+e.f,this.geometryChange(),this},e.prototype.transformCopy=function(t){var e=this.clone();return t&&e.transform(t),e},e.prototype.distanceTo=function(t){var e=this.x-t.x,r=this.y-t.y;return Math.sqrt(e*e+r*r)},e.prototype.round=function(t){return this.x=st(this.x,t),this.y=st(this.y,t),this.geometryChange(),this},e.prototype.toArray=function(t){var e=G(t);return[e?st(this.x,t):this.x,e?st(this.y,t):this.y]},e.prototype.toString=function(t,e){void 0===e&&(e=" ");var r=this.x,o=this.y;return G(t)&&(r=st(r,t),o=st(o,t)),r+e+o},e.create=function(t,r){if(G(t))return t instanceof e?t:1===arguments.length&&2===t.length?new e(t[0],t[1]):new e(t,r)},e.min=function(){for(var t=arguments,r=$,o=$,n=0;n<arguments.length;n++){var i=t[n];r=Math.min(i.x,r),o=Math.min(i.y,o)}return new e(r,o)},e.max=function(){for(var t=arguments,r=X,o=X,n=0;n<arguments.length;n++){var i=t[n];r=Math.max(i.x,r),o=Math.max(i.y,o)}return new e(r,o)},e.minPoint=function(){return new e(X,X)},e.maxPoint=function(){return new e($,$)},r.ZERO.get=function(){return new e(0,0)},Object.defineProperties(e,r),e}(Nt(L,["x","y"])),Lt=function(t){function e(e,r){t.call(this),this.width=e||0,this.height=r||0}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={ZERO:{configurable:!0}};return e.prototype.equals=function(t){return t&&t.width===this.width&&t.height===this.height},e.prototype.clone=function(){return new e(this.width,this.height)},e.prototype.toArray=function(t){var e=G(t);return[e?st(this.width,t):this.width,e?st(this.height,t):this.height]},e.create=function(t,r){if(G(t))return t instanceof e?t:1===arguments.length&&2===t.length?new e(t[0],t[1]):new e(t,r)},r.ZERO.get=function(){return new e(0,0)},Object.defineProperties(e,r),e}(Nt(L,["width","height"])),It=function(t){function e(e,r,o){void 0===e&&(e=new Ft),void 0===r&&(r=new Lt),void 0===o&&(o=0),t.call(this),this.setOrigin(e),this.setSize(r),this.setCornerRadius(o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.origin.clone(),this.size.clone())},e.prototype.equals=function(t){return t&&t.origin.equals(this.origin)&&t.size.equals(this.size)},e.prototype.setOrigin=function(t){return this._observerField("origin",Ft.create(t)),this.geometryChange(),this},e.prototype.getOrigin=function(){return this.origin},e.prototype.setCornerRadius=function(t){return this.cornerRadius=Array.isArray(t)?t:[t,t],this.geometryChange(),this},e.prototype.getCornerRadius=function(){return this.cornerRadius},e.prototype.setSize=function(t){return this._observerField("size",Lt.create(t)),this.geometryChange(),this},e.prototype.getSize=function(){return this.size},e.prototype.width=function(){return this.size.width},e.prototype.height=function(){return this.size.height},e.prototype.topLeft=function(){return this.origin.clone()},e.prototype.bottomRight=function(){return this.origin.clone().translate(this.width(),this.height())},e.prototype.topRight=function(){return this.origin.clone().translate(this.width(),0)},e.prototype.bottomLeft=function(){return this.origin.clone().translate(0,this.height())},e.prototype.center=function(){return this.origin.clone().translate(this.width()/2,this.height()/2)},e.prototype.bbox=function(t){var r=this.topLeft().transformCopy(t),o=this.topRight().transformCopy(t),n=this.bottomRight().transformCopy(t),i=this.bottomLeft().transformCopy(t);return e.fromPoints(r,o,n,i)},e.prototype.transformCopy=function(t){return e.fromPoints(this.topLeft().transform(t),this.bottomRight().transform(t))},e.prototype.expand=function(t,e){return void 0===e&&(e=t),this.size.width+=2*t,this.size.height+=2*e,this.origin.translate(-t,-e),this},e.prototype.expandCopy=function(t,e){return this.clone().expand(t,e)},e.prototype.containsPoint=function(t){var e=this.origin,r=this.bottomRight();return!(t.x<e.x||t.y<e.y||r.x<t.x||r.y<t.y)},e.prototype._isOnPath=function(t,e){var r=this.expandCopy(e,e),o=this.expandCopy(-e,-e);return r.containsPoint(t)&&!o.containsPoint(t)},e.fromPoints=function(){var t=Ft.min.apply(null,arguments),r=Ft.max.apply(null,arguments);return new e(t,new Lt(r.x-t.x,r.y-t.y))},e.union=function(t,r){return e.fromPoints(Ft.min(t.topLeft(),r.topLeft()),Ft.max(t.bottomRight(),r.bottomRight()))},e.intersect=function(t,r){var o={left:t.topLeft().x,top:t.topLeft().y,right:t.bottomRight().x,bottom:t.bottomRight().y},n={left:r.topLeft().x,top:r.topLeft().y,right:r.bottomRight().x,bottom:r.bottomRight().y};if(o.left<=n.right&&n.left<=o.right&&o.top<=n.bottom&&n.top<=o.bottom)return e.fromPoints(new Ft(Math.max(o.left,n.left),Math.max(o.top,n.top)),new Ft(Math.min(o.right,n.right),Math.min(o.bottom,n.bottom)))},e}(L),zt=function(t){function e(e){void 0===e&&(e=yt.unit()),t.call(this),this._matrix=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this._matrix.clone())},e.prototype.equals=function(t){return t&&t._matrix.equals(this._matrix)},e.prototype.translate=function(t,e){return this._matrix=this._matrix.multiplyCopy(yt.translate(t,e)),this._optionsChange(),this},e.prototype.scale=function(t,e,r){void 0===e&&(e=t),void 0===r&&(r=null);var o=r;return o&&(o=Ft.create(o),this._matrix=this._matrix.multiplyCopy(yt.translate(o.x,o.y))),this._matrix=this._matrix.multiplyCopy(yt.scale(t,e)),o&&(this._matrix=this._matrix.multiplyCopy(yt.translate(-o.x,-o.y))),this._optionsChange(),this},e.prototype.rotate=function(t,e){var r=Ft.create(e)||Ft.ZERO;return this._matrix=this._matrix.multiplyCopy(yt.rotate(t,r.x,r.y)),this._optionsChange(),this},e.prototype.multiply=function(t){var e=jt(t);return this._matrix=this._matrix.multiplyCopy(e),this._optionsChange(),this},e.prototype.matrix=function(t){return t?(this._matrix=t,this._optionsChange(),this):this._matrix},e.prototype._optionsChange=function(){this.optionsChange({field:"transform",value:this})},e}(L);function Bt(t){return null===t?null:t instanceof zt?t:new zt(t)}var Dt={dot:[1.5,3.5],dash:[4,3.5],longdash:[8,3.5],dashdot:[3.5,3.5,1.5,3.5],longdashdot:[8,3.5,1.5,3.5],longdashdotdot:[8,3.5,1.5,3.5,1.5,3.5]},Gt="solid",qt="butt",Ut="Pattern",Ht=function(t){function e(e){t.call(this),this._initOptions(e)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={nodeType:{configurable:!0}};return r.nodeType.get=function(){return"Rect"},e.prototype._initOptions=function(t){void 0===t&&(t={});var e=t.clip,r=t.transform;r&&(t.transform=Bt(r)),e&&!e.id&&(e.id=U()),this.options=new Et(t),this.options.addObserver(this)},e.prototype.transform=function(t){if(!G(t))return this.options.get("transform");this.options.set("transform",Bt(t))},e.prototype.parentTransform=function(){for(var t,e=this;e.parent;){var r=(e=e.parent).transform();r&&(t=r.matrix().multiplyCopy(t||yt.unit()))}if(t)return Bt(t)},e.prototype.currentTransform=function(t){void 0===t&&(t=this.parentTransform());var e,r=jt(this.transform()),o=jt(t);if(e=r&&o?o.multiplyCopy(r):r||o)return Bt(e)},e.prototype.visible=function(t){return G(t)?(this.options.set("visible",t),this):!1!==this.options.get("visible")},e.prototype.clip=function(t){var e=this.options;return G(t)?(t&&!t.id&&(t.id=U()),e.set("clip",t),this):e.get("clip")},e.prototype.opacity=function(t){return G(t)?(this.options.set("opacity",t),this):at(this.options.get("opacity"),1)},e.prototype.className=function(t){return G(t)?(this.options.set("className",t),this):this.options.get("className")},e.prototype.clippedBBox=function(t){var e=this._clippedBBox(t);if(e){var r=this.clip();return r?It.intersect(e,r.bbox(t)):e}},e.prototype.containsPoint=function(t,e){if(this.visible()){var r=this.currentTransform(e),o=t;return r&&(o=t.transformCopy(r.matrix().invert())),this._hasFill()&&this._containsPoint(o)||this._isOnPath&&this._hasStroke()&&this._isOnPath(o)}return!1},e.prototype._hasFill=function(){var t=this.options.fill;return t&&(t.nodeType===Ut||!tt(t.color))},e.prototype._hasStroke=function(){var t=this.options.stroke;return t&&t.width>0&&!tt(t.color)},e.prototype._clippedBBox=function(t){return this.bbox(t)},Object.defineProperties(e.prototype,r),e}(L);function $t(t,e,r,o){var n=0,i=0;return o&&(n=Math.atan2(o.c*r,o.a*e),0!==o.b&&(i=Math.atan2(o.d*r,o.b*e))),{x:n,y:i}}var Xt=Math.PI/2,Vt=function(t){function e(e,r){void 0===e&&(e=new Ft),void 0===r&&(r=0),t.call(this),this.setCenter(e),this.setRadius(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setCenter=function(t){return this._observerField("center",Ft.create(t)),this.geometryChange(),this},e.prototype.getCenter=function(){return this.center},e.prototype.equals=function(t){return t&&t.center.equals(this.center)&&t.radius===this.radius},e.prototype.clone=function(){return new e(this.center.clone(),this.radius)},e.prototype.pointAt=function(t){return this._pointAt(it(t))},e.prototype.bbox=function(t){for(var e=$t(this.center,this.radius,this.radius,t),r=Ft.maxPoint(),o=Ft.minPoint(),n=0;n<4;n++){var i=this._pointAt(e.x+n*Xt).transformCopy(t),s=this._pointAt(e.y+n*Xt).transformCopy(t),a=new Ft(i.x,s.y);r=Ft.min(r,a),o=Ft.max(o,a)}return It.fromPoints(r,o)},e.prototype._pointAt=function(t){var e=this.center,r=this.radius;return new Ft(e.x+r*Math.cos(t),e.y+r*Math.sin(t))},e.prototype.containsPoint=function(t){var e=this.center,r=this.radius;return Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<=Math.pow(r,2)},e.prototype._isOnPath=function(t,e){var r=this.center,o=this.radius,n=r.distanceTo(t);return o-e<=n&&n<=o+e},e}(Nt(L,["radius"])),Yt=function(t){return function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fill=function(t,e){var r=this.options;if(G(t)){if(t&&"Gradient"!==t.nodeType){var o={color:t};G(e)&&(o.opacity=e),r.set("fill",o)}else r.set("fill",t);return this}return r.get("fill")},e.prototype.stroke=function(t,e,r){return G(t)?(this.options.set("stroke.color",t),G(e)&&this.options.set("stroke.width",e),G(r)&&this.options.set("stroke.opacity",r),this):this.options.get("stroke")},e}(t)},Wt=yt.IDENTITY.toString(),Jt=function(t){return function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.bbox=function(t){var e,r=jt(this.currentTransform(t)),o=r?r.toString():Wt;this._bboxCache&&this._matrixHash===o?e=this._bboxCache.clone():(e=this._bbox(r),this._bboxCache=e?e.clone():null,this._matrixHash=o);var n=this.options.get("stroke.width");return n&&e&&e.expand(n/2),e},e.prototype.geometryChange=function(){delete this._bboxCache,this.trigger("geometryChange",{element:this})},e}(t)};function Zt(t){var e="_"+t;return function(t){return G(t)?(this._observerField(e,t),this.geometryChange(),this):this[e]}}var Kt=function(t,e){void 0===e&&(e=["geometry"]);var r=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(t);return function(t,e){for(var r=0;r<e.length;r++)t[e[r]]=Zt(e[r])}(r.prototype,e),r},Qt=function(t){function e(e,r){void 0===e&&(e=new Vt),void 0===r&&(r={}),t.call(this,r),this.geometry(e),G(this.options.stroke)||this.stroke("#000")}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={nodeType:{configurable:!0}};return r.nodeType.get=function(){return"Circle"},e.prototype.rawBBox=function(){return this._geometry.bbox()},e.prototype._bbox=function(t){return this._geometry.bbox(t)},e.prototype._containsPoint=function(t){return this.geometry().containsPoint(t)},e.prototype._isOnPath=function(t){return this.geometry()._isOnPath(t,this.options.stroke.width/2)},Object.defineProperties(e.prototype,r),e}(Yt(Jt(Kt(Ht)))),te=10;function ee(t,e,r){return void 0===r&&(r=te),0===st(Math.abs(t-e),r)}function re(t,e,r){return t<e||ee(t,e,r)}var oe=Math.pow,ne=function(t){function e(e,r){void 0===e&&(e=new Ft),void 0===r&&(r={}),t.call(this),this.setCenter(e),this.radiusX=r.radiusX,this.radiusY=r.radiusY||r.radiusX,this.startAngle=r.startAngle,this.endAngle=r.endAngle,this.anticlockwise=r.anticlockwise||!1,this.xRotation=r.xRotation}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.center,{radiusX:this.radiusX,radiusY:this.radiusY,startAngle:this.startAngle,endAngle:this.endAngle,anticlockwise:this.anticlockwise})},e.prototype.setCenter=function(t){return this._observerField("center",Ft.create(t)),this.geometryChange(),this},e.prototype.getCenter=function(){return this.center},e.prototype.pointAt=function(t){var e=this.center,r=it(t);return new Ft(e.x+this.radiusX*Math.cos(r),e.y+this.radiusY*Math.sin(r))},e.prototype.curvePoints=function(){var t,e=this.startAngle,r=this.anticlockwise?-1:1,o=[this.pointAt(e)],n=this._arcInterval(),i=n.endAngle-n.startAngle,s=Math.ceil(i/45),a=i/s,h=e;this.xRotation&&(t=Bt().rotate(this.xRotation,this.center));for(var c=1;c<=s;c++){var p=h+r*a,u=this._intervalCurvePoints(h,p,t);o.push(u.cp1,u.cp2,u.p2),h=p}return o},e.prototype.bbox=function(t){for(var e=this._arcInterval(),r=e.startAngle,o=e.endAngle,n=$t(this.center,this.radiusX,this.radiusY,t),i=V(n.x),s=V(n.y),a=this.pointAt(o).transformCopy(t),h=se(i,r),c=se(s,r),p=this.pointAt(r).transformCopy(t),u=Ft.min(p,a),l=Ft.max(p,a);h<o||c<o;){var f=void 0;h<o&&(f=this.pointAt(h).transformCopy(t),h+=90);var d=void 0;c<o&&(d=this.pointAt(c).transformCopy(t),c+=90),p=new Ft(f.x,d.y),u=Ft.min(u,p),l=Ft.max(l,p)}return It.fromPoints(u,l)},e.prototype._arcInterval=function(){var t=this,e=t.startAngle,r=t.endAngle,o=t.anticlockwise;if(o){var n=e;e=r,r=n}return(e>r||o&&e===r)&&(r+=360),{startAngle:e,endAngle:r}},e.prototype._intervalCurvePoints=function(t,e,r){var o=this.pointAt(t),n=this.pointAt(e),i=this._derivativeAt(t),s=this._derivativeAt(e),a=(it(e)-it(t))/3,h=new Ft(o.x+a*i.x,o.y+a*i.y),c=new Ft(n.x-a*s.x,n.y-a*s.y);return r&&(o.transform(r),n.transform(r),h.transform(r),c.transform(r)),{p1:o,cp1:h,cp2:c,p2:n}},e.prototype._derivativeAt=function(t){var e=it(t);return new Ft(-this.radiusX*Math.sin(e),this.radiusY*Math.cos(e))},e.prototype.containsPoint=function(t){var e,r=this._arcInterval(),o=r.endAngle-r.startAngle,n=this,i=n.center,s=n.radiusX,a=n.radiusY,h=i.distanceTo(t),c=Math.atan2(t.y-i.y,t.x-i.x),p=s*a/Math.sqrt(oe(s,2)*oe(Math.sin(c),2)+oe(a,2)*oe(Math.cos(c),2)),u=this.pointAt(this.startAngle).round(te),l=this.pointAt(this.endAngle).round(te),f=function(t,e,r,o){var n=e.x-t.x,i=o.x-r.x,s=e.y-t.y,a=o.y-r.y,h=t.x-r.x,c=t.y-r.y,p=n*a-i*s,u=(n*c-s*h)/p,l=(i*c-a*h)/p;if(u>=0&&u<=1&&l>=0&&l<=1)return new Ft(t.x+l*n,t.y+l*s)}(i,t.round(te),u,l);if(o<180)e=f&&re(i.distanceTo(f),h)&&re(h,p);else{var d=ie(i.x,i.y,s,a,t.x,t.y);360!==d&&(d=(360+d)%360);var y=r.startAngle<=d&&d<=r.endAngle;e=y&&re(h,p)||!y&&(!f||f.equals(t))}return e},e.prototype._isOnPath=function(t,e){var r=this._arcInterval(),o=this.center,n=ie(o.x,o.y,this.radiusX,this.radiusY,t.x,t.y);return 360!==n&&(n=(360+n)%360),r.startAngle<=n&&n<=r.endAngle&&this.pointAt(n).distanceTo(t)<=e},e.fromPoints=function(t,r,o,n,i,s,a){var h=function(t){var e=t.x1,r=t.y1,o=t.x2,n=t.y2,i=t.rx,s=t.ry,a=t.largeArc,h=t.swipe,c=t.rotation;void 0===c&&(c=0);var p=it(c),u=Math.cos(p),l=Math.sin(p),f=u*(e-o)/2+l*(r-n)/2,d=-l*(e-o)/2+u*(r-n)/2,y=a!==h?1:-1,g=Math.pow(f,2),m=Math.pow(d,2),v=Math.pow(i,2),_=Math.pow(s,2),b=g/v+m/_;b>1&&(i*=b=Math.sqrt(g/v+m/_),v=Math.pow(i,2),s*=b,_=Math.pow(s,2));var w=y*Math.sqrt((v*_-v*m-_*g)/(v*m+_*g));isNaN(w)&&(w=0);var x=w*(i*d)/s,S=s*f*-w/i,C=u*x-l*S+(e+o)/2,k=l*x+u*S+(r+n)/2,T=(f-x)/i,O=(d-S)/s,M=-(f+x)/i,A=-(d+S)/s,E=(O>=0?1:-1)*V(Math.acos(T/Math.sqrt(T*T+O*O))),P=st((T*M+O*A)/(Math.sqrt(T*T+O*O)*Math.sqrt(M*M+A*A)),10),R=(T*A-O*M>=0?1:-1)*V(Math.acos(P));!h&&R>0&&(R-=360);h&&R<0&&(R+=360);var N=E+R,j=N>=0?1:-1;return N=Math.abs(N)%360*j,{center:new Ft(C,k),startAngle:E,endAngle:N,radiusX:i,radiusY:s,xRotation:c}}({x1:t.x,y1:t.y,x2:r.x,y2:r.y,rx:o,ry:n,largeArc:i,swipe:s,rotation:a});return new e(h.center,{startAngle:h.startAngle,endAngle:h.endAngle,radiusX:h.radiusX,radiusY:h.radiusY,xRotation:h.xRotation,anticlockwise:0===s})},e}(Nt(L,["radiusX","radiusY","startAngle","endAngle","anticlockwise"]));function ie(t,e,r,o,n,i){var s=st((n-t)/r,3),a=st((i-e)/o,3);return st(V(Math.atan2(a,s)))}function se(t,e){for(var r=t;r<e;)r+=90;return r}var ae=[].push,he=[].pop,ce=[].splice,pe=[].shift,ue=[].slice,le=[].unshift,fe=function(t){function e(e){void 0===e&&(e=[]),t.call(this),this.length=0,this._splice(0,e.length,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.elements=function(t){return t?(this._splice(0,this.length,t),this._change(),this):this.slice(0)},e.prototype.push=function(){var t=arguments,e=ae.apply(this,t);return this._add(t),e},e.prototype.slice=function(){return ue.call(this)},e.prototype.pop=function(){var t=this.length,e=he.apply(this);return t&&this._remove([e]),e},e.prototype.splice=function(t,e){var r=ue.call(arguments,2),o=this._splice(t,e,r);return this._change(),o},e.prototype.shift=function(){var t=this.length,e=pe.apply(this);return t&&this._remove([e]),e},e.prototype.unshift=function(){var t=arguments,e=le.apply(this,t);return this._add(t),e},e.prototype.indexOf=function(t){for(var e=this.length,r=0;r<e;r++)if(this[r]===t)return r;return-1},e.prototype._splice=function(t,e,r){var o=ce.apply(this,[t,e].concat(r));return this._clearObserver(o),this._setObserver(r),o},e.prototype._add=function(t){this._setObserver(t),this._change()},e.prototype._remove=function(t){this._clearObserver(t),this._change()},e.prototype._setObserver=function(t){for(var e=0;e<t.length;e++)t[e].addObserver(this)},e.prototype._clearObserver=function(t){for(var e=0;e<t.length;e++)t[e].removeObserver(this)},e.prototype._change=function(){},e}(L),de=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._change=function(){this.geometryChange()},e}(fe);function ye(t,e,r){var o=V(Math.atan2(e.y-t.y,e.x-t.x));return r.transformCopy(Bt().rotate(-o,t)).x<t.x}function ge(t,e,r){var o=1-t;return Math.pow(o,3)*r[0][e]+3*Math.pow(o,2)*t*r[1][e]+3*Math.pow(t,2)*o*r[2][e]+Math.pow(t,3)*r[3][e]}function me(t,e){return[-t[0][e]+3*t[1][e]-3*t[2][e]+t[3][e],3*(t[0][e]-2*t[1][e]+t[2][e]),3*(-t[0][e]+t[1][e]),t[0][e]]}var ve=function(t){function e(e,r){void 0===e&&(e=0),void 0===r&&(r=0),t.call(this),this.real=e,this.img=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.add=function(t){return new e(st(this.real+t.real,te),st(this.img+t.img,te))},e.prototype.addConstant=function(t){return new e(this.real+t,this.img)},e.prototype.negate=function(){return new e(-this.real,-this.img)},e.prototype.multiply=function(t){return new e(this.real*t.real-this.img*t.img,this.real*t.img+this.img*t.real)},e.prototype.multiplyConstant=function(t){return new e(this.real*t,this.img*t)},e.prototype.nthRoot=function(t){var r=Math.atan2(this.img,this.real),o=Math.sqrt(Math.pow(this.img,2)+Math.pow(this.real,2)),n=Math.pow(o,1/t);return new e(n*Math.cos(r/t),n*Math.sin(r/t))},e.prototype.equals=function(t){return this.real===t.real&&this.img===t.img},e.prototype.isReal=function(){return 0===this.img},e}(o);function _e(t){return t<0?-1:1}function be(t,e,r,o){if(0===t)return function(t,e,r){var o=Math.sqrt(Math.pow(e,2)-4*t*r);return[(-e+o)/(2*t),(-e-o)/(2*t)]}(e,r,o);var n,i,s,a,h,c,p,u=(3*t*r-Math.pow(e,2))/(3*Math.pow(t,2)),l=(2*Math.pow(e,3)-9*t*e*r+27*Math.pow(t,2)*o)/(27*Math.pow(t,3)),f=Math.pow(u/3,3)+Math.pow(l/2,2),d=new ve(0,1),y=-e/(3*t);f<0?(n=new ve(-l/2,Math.sqrt(-f)).nthRoot(3),i=new ve(-l/2,-Math.sqrt(-f)).nthRoot(3)):(n=-l/2+Math.sqrt(f),n=new ve(_e(n)*Math.pow(Math.abs(n),1/3)),i=-l/2-Math.sqrt(f),i=new ve(_e(i)*Math.pow(Math.abs(i),1/3))),s=n.add(i),c=n.add(i).multiplyConstant(-.5),p=n.add(i.negate()).multiplyConstant(Math.sqrt(3)/2),a=c.add(d.multiply(p)),h=c.add(d.negate().multiply(p));var g=[];return s.isReal()&&g.push(st(s.real+y,te)),a.isReal()&&g.push(st(a.real+y,te)),h.isReal()&&g.push(st(h.real+y,te)),g}function we(t,e,r,o,n){for(var i,s=me(t,o),a=be(s[0],s[1],s[2],s[3]-e[o]),h=0;h<a.length;h++)if(0<=a[h]&&a[h]<=1&&(i=ge(a[h],r,t),Math.abs(i-e[r])<=n))return!0}function xe(t,e,r){var o;if(t.x!==e.x){var n=Math.min(t.x,e.x),i=Math.max(t.x,e.x),s=Math.min(t.y,e.y),a=Math.max(t.y,e.y),h=n<=r.x&&r.x<i;o=s===a?r.y<=s&&h:h&&(a-s)*((t.x-e.x)*(t.y-e.y)>0?r.x-n:i-r.x)/(i-n)+s-r.y>=0}return o?1:0}function Se(t){var e="_"+t;return function(t){return G(t)?(this._observerField(e,Ft.create(t)),this.geometryChange(),this):this[e]}}var Ce=function(t,e){var r=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(t);return function(t,e){for(var r=0;r<e.length;r++)t[e[r]]=Se(e[r])}(r.prototype,e),r},ke=function(t){function e(e,r,o){t.call(this),this.anchor(e||new Ft),this.controlIn(r),this.controlOut(o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.bboxTo=function(t,e){var r=this.anchor().transformCopy(e),o=t.anchor().transformCopy(e);return this.controlOut()&&t.controlIn()?this._curveBoundingBox(r,this.controlOut().transformCopy(e),t.controlIn().transformCopy(e),o):this._lineBoundingBox(r,o)},e.prototype._lineBoundingBox=function(t,e){return It.fromPoints(t,e)},e.prototype._curveBoundingBox=function(t,e,r,o){var n=[t,e,r,o],i=this._curveExtremesFor(n,"x"),s=this._curveExtremesFor(n,"y"),a=Te([i.min,i.max,t.x,o.x]),h=Te([s.min,s.max,t.y,o.y]);return It.fromPoints(new Ft(a.min,h.min),new Ft(a.max,h.max))},e.prototype._curveExtremesFor=function(t,e){var r=this._curveExtremes(t[0][e],t[1][e],t[2][e],t[3][e]);return{min:ge(r.min,e,t),max:ge(r.max,e,t)}},e.prototype._curveExtremes=function(t,e,r,o){var n=t-3*e+3*r-o,i=-2*(t-2*e+r),s=t-e,a=Math.sqrt(i*i-4*n*s),h=0,c=1;0===n?0!==i&&(h=c=-s/i):isNaN(a)||(h=(-i+a)/(2*n),c=(-i-a)/(2*n));var p=Math.max(Math.min(h,c),0);(p<0||p>1)&&(p=0);var u=Math.min(Math.max(h,c),1);return(u>1||u<0)&&(u=1),{min:p,max:u}},e.prototype._intersectionsTo=function(t,e){var r;return r=this.controlOut()&&t.controlIn()?function(t,e,r){for(var o,n=me(t,"x"),i=be(n[0],n[1],n[2],n[3]-e.x),s=0,a=0;a<i.length;a++)(ee(o=ge(i[a],"y",t),e.y)||o>e.y)&&((0===i[a]||1===i[a])&&r.bottomRight().x>e.x||0<i[a]&&i[a]<1)&&s++;return s}([this.anchor(),this.controlOut(),t.controlIn(),t.anchor()],e,this.bboxTo(t)):xe(this.anchor(),t.anchor(),e),r},e.prototype._isOnCurveTo=function(t,e,r,o){if(this.bboxTo(t).expand(r,r).containsPoint(e)){var n=this.anchor(),i=this.controlOut(),s=t.controlIn(),a=t.anchor();if("start"===o&&n.distanceTo(e)<=r)return!ye(n,i,e);if("end"===o&&a.distanceTo(e)<=r)return!ye(a,s,e);var h=[n,i,s,a];if(we(h,e,"x","y",r)||we(h,e,"y","x",r))return!0;var c=Bt().rotate(45,e),p=[n.transformCopy(c),i.transformCopy(c),s.transformCopy(c),a.transformCopy(c)];return we(p,e,"x","y",r)||we(p,e,"y","x",r)}},e.prototype._isOnLineTo=function(t,e,r){var o=this.anchor(),n=t.anchor(),i=V(Math.atan2(n.y-o.y,n.x-o.x));return new It([o.x,o.y-r/2],[o.distanceTo(n),r]).containsPoint(e.transformCopy(Bt().rotate(-i,o)))},e.prototype._isOnPathTo=function(t,e,r,o){return this.controlOut()&&t.controlIn()?this._isOnCurveTo(t,e,r/2,o):this._isOnLineTo(t,e,r)},e}(Ce(L,["anchor","controlIn","controlOut"]));function Te(t){for(var e=t.length,r=$,o=X,n=0;n<e;n++)o=Math.max(o,t[n]),r=Math.min(r,t[n]);return{min:r,max:o}}var Oe=Object.freeze({__proto__:null,Arc:ne,Circle:Vt,Matrix:yt,Point:Ft,Rect:It,Segment:ke,Size:Lt,Transformation:zt,toMatrix:jt,transform:Bt}),Me="x",Ae="y";function Ee(t,e){var r=t.slice(0),o=[],n=r.length;if(n>2&&(Pe(0,r),n=r.length),n<2||2===n&&r[0].equals(r[1]))return o;var i,s,a=r[0],h=r[1],c=r[2];for(o.push(new ke(a));a.equals(r[n-1]);)e=!0,r.pop(),n--;if(2===n){var p=Fe(a,h,Me,Ae);return et(o).controlOut(Ie(p,a,h,Me,Ae)),o.push(new ke(h,ze(p,a,h,Me,Ae))),o}if(e){var u=Ne(a=r[n-1],h=r[0],c=r[1]);i=u[1],s=u[0]}else{i=Ie(Fe(a,h,Me,Ae),a,h,Me,Ae)}for(var l=i,f=0;f<=n-3;f++)if(Pe(f,r),f+3<=(n=r.length)){var d=Ne(a=r[f],h=r[f+1],c=r[f+2]);et(o).controlOut(l),l=d[1];var y=d[0];o.push(new ke(h,y))}if(e){var g=Ne(a=r[n-2],h=r[n-1],c=r[0]);et(o).controlOut(l),o.push(new ke(h,g[0])),et(o).controlOut(g[1]),o.push(new ke(c,s))}else{var m=Fe(h,c,Me,Ae);et(o).controlOut(l),o.push(new ke(c,ze(m,h,c,Me,Ae)))}return o}function Pe(t,e){for(;e[t+1]&&(e[t].equals(e[t+1])||e[t+1].equals(e[t+2]));)e.splice(t+1,1)}function Re(t,e){var r=(e.y-t.y)/(e.x-t.x);return[t.y-r*t.x,r]}function Ne(t,e,r){var o,n=Me,i=Ae,s=!1,a=!1;if(function(t,e,r){var o=De(Re(t,e),r.x);return t.x===e.x&&e.x===r.x||st(o,1)===st(r.y,1)}(t,e,r))o=Fe(t,e,Me,Ae);else{var h={x:Le(t,e,r,Me),y:Le(t,e,r,Ae)};if(h.x&&h.y)o=Fe(t,r,Me,Ae),s=!0;else if(function(t,e,r){var o=!1;if(t.x===e.x)o=!0;else if(e.x===r.x)(e.y<r.y&&t.y<=e.y||r.y<e.y&&e.y<=t.y)&&(o=!0);else{var n=De(Re(t,e),r.x);t.y<=e.y&&r.y<=n||e.y<=t.y&&r.y>=n||(o=!0)}return o}(t,e,r)&&(n=Ae,i=Me),h[n])o=0;else o=.01*(r[i]<t[i]&&t[i]<=e[i]||t[i]<r[i]&&e[i]<=t[i]?Ge((r[i]-t[i])*(e[n]-t[n])):-Ge((r[n]-t[n])*(e[i]-t[i]))),a=!0}var c=ze(o,t,e,n,i);if(a){var p=n;n=i,i=p}var u=Ie(o,e,r,n,i);return s&&(je(t,e,c,o),je(e,r,u,o)),[c,u]}function je(t,e,r,o){t.y<e.y?e.y<r.y?(r.x=t.x+(e.y-t.y)/o,r.y=e.y):r.y<t.y&&(r.x=e.x-(e.y-t.y)/o,r.y=t.y):r.y<e.y?(r.x=t.x-(t.y-e.y)/o,r.y=e.y):t.y<r.y&&(r.x=e.x+(t.y-e.y)/o,r.y=t.y)}function Fe(t,e,r,o){var n=e[r]-t[r],i=e[o]-t[o];return 0===n?0:i/n}function Le(t,e,r,o){return r[o]>e[o]&&e[o]>t[o]||r[o]<e[o]&&e[o]<t[o]}function Ie(t,e,r,o,n){var i=e[o],s=.333*(r[o]-i);return Be(i+s,e[n]+s*t,o,n)}function ze(t,e,r,o,n){var i=e[o],s=r[o],a=.333*(s-i);return Be(s-a,r[n]-a*t,o,n)}function Be(t,e,r,o){var n=new Ft;return n[r]=t,n[o]=e,n}function De(t,e){for(var r=t.length,o=0,n=0;n<r;n++)o+=Math.pow(e,n)*t[n];return o}function Ge(t){return t<=0?-1:1}var qe={l:function(t,e){for(var r=e.parameters,o=e.position,n=0;n<r.length;n+=2){var i=new Ft(r[n],r[n+1]);e.isRelative&&i.translateWith(o),t.lineTo(i.x,i.y),o.x=i.x,o.y=i.y}},c:function(t,e){for(var r=e.parameters,o=e.position,n=0;n<r.length;n+=6){var i=new Ft(r[n],r[n+1]),s=new Ft(r[n+2],r[n+3]),a=new Ft(r[n+4],r[n+5]);e.isRelative&&(s.translateWith(o),i.translateWith(o),a.translateWith(o)),t.curveTo(i,s,a),o.x=a.x,o.y=a.y}},v:function(t,e){var r=e.isRelative?0:e.position.x;Ue(e.parameters,!0,r),this.l(t,e)},h:function(t,e){var r=e.isRelative?0:e.position.y;Ue(e.parameters,!1,r),this.l(t,e)},a:function(t,e){for(var r=e.parameters,o=e.position,n=0;n<r.length;n+=7){var i=r[n],s=r[n+1],a=r[n+2],h=r[n+3],c=r[n+4],p=new Ft(r[n+5],r[n+6]);e.isRelative&&p.translateWith(o),o.x===p.x&&o.y===p.y||(t.arcTo(p,i,s,h,c,a),o.x=p.x,o.y=p.y)}},s:function(t,e){var r,o=e.parameters,n=e.position,i=e.previousCommand;"s"!==i&&"c"!==i||(r=et(et(t.paths).segments).controlIn());for(var s=0;s<o.length;s+=4){var a=new Ft(o[s],o[s+1]),h=new Ft(o[s+2],o[s+3]),c=void 0;e.isRelative&&(a.translateWith(n),h.translateWith(n)),c=r?He(r,n):n.clone(),r=a,t.curveTo(c,a,h),n.x=h.x,n.y=h.y}},q:function(t,e){for(var r=e.parameters,o=e.position,n=0;n<r.length;n+=4){var i=new Ft(r[n],r[n+1]),s=new Ft(r[n+2],r[n+3]);e.isRelative&&(i.translateWith(o),s.translateWith(o));var a=Xe(o,i,s);t.curveTo(a.controlOut,a.controlIn,s),o.x=s.x,o.y=s.y}},t:function(t,e){var r,o=e.parameters,n=e.position,i=e.previousCommand;"q"!==i&&"t"!==i||(r=et(et(t.paths).segments).controlIn().clone().translateWith(n.scaleCopy(-1/3)).scale(1.5));for(var s=0;s<o.length;s+=2){var a=new Ft(o[s],o[s+1]);e.isRelative&&a.translateWith(n),r=r?He(r,n):n.clone();var h=Xe(n,r,a);t.curveTo(h.controlOut,h.controlIn,a),n.x=a.x,n.y=a.y}}};function Ue(t,e,r){for(var o=e?0:1,n=0;n<t.length;n+=2)t.splice(n+o,0,r)}function He(t,e){if(t&&e)return e.scaleCopy(2).translate(-t.x,-t.y)}var $e=1/3;function Xe(t,e,r){var o=e.clone().scale(2/3);return{controlOut:o.clone().translateWith(t.scaleCopy($e)),controlIn:o.translateWith(r.scaleCopy($e))}}var Ve=/([a-df-z]{1})([^a-df-z]*)(z)?/gi,Ye=/[,\s]?([+\-]?(?:\d*\.\d+|\d+)(?:[eE][+\-]?\d+)?)/g;function We(t,e){var r,o=new Ft;return e.replace(Ve,(function(e,n,i,s){var a=n.toLowerCase(),h=a===n,c=function(t){var e=[];return t.replace(Ye,(function(t,r){e.push(parseFloat(r))})),e}(i.trim());if("m"===a&&(h?(o.x+=c[0],o.y+=c[1]):(o.x=c[0],o.y=c[1]),t.moveTo(o.x,o.y),c.length>2&&(a="l",c.splice(0,2))),qe[a])qe[a](t,{parameters:c,position:o,isRelative:h,previousCommand:r}),s&&"z"===s.toLowerCase()&&t.close();else if("m"!==a)throw new Error("Error while parsing SVG path. Unsupported command: "+a);r=a})),t}function Je(t,e,r){for(var o,n=0;n<t.length;n++){var i=t[n];if(i.visible()){var s=e?i.bbox(r):i.rawBBox();s&&(o=o?It.union(o,s):s)}}return o}function Ze(t,e){for(var r,o=0;o<t.length;o++){var n=t[o];if(n.visible()){var i=n.clippedBBox(e);i&&(r=r?It.union(r,i):i)}}return r}var Ke=" ",Qe=function(t){function e(e){t.call(this,e),this.segments=new de,this.segments.addObserver(this),G(this.options.stroke)||(this.stroke("#000"),G(this.options.stroke.lineJoin)||this.options.set("stroke.lineJoin","miter"))}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={nodeType:{configurable:!0}};return r.nodeType.get=function(){return"Path"},e.prototype.moveTo=function(t,e){return this.suspend(),this.segments.elements([]),this.resume(),this.lineTo(t,e),this},e.prototype.lineTo=function(t,e){var r=G(e)?new Ft(t,e):t,o=new ke(r);return this.segments.push(o),this},e.prototype.curveTo=function(t,e,r){if(this.segments.length>0){var o=et(this.segments),n=new ke(r,e);this.suspend(),o.controlOut(t),this.resume(),this.segments.push(n)}return this},e.prototype.arc=function(t,e,r,o,n){if(this.segments.length>0){var i=et(this.segments).anchor(),s=it(t),a=new Ft(i.x-r*Math.cos(s),i.y-o*Math.sin(s)),h=new ne(a,{startAngle:t,endAngle:e,radiusX:r,radiusY:o,anticlockwise:n});this._addArcSegments(h)}return this},e.prototype.arcTo=function(t,e,r,o,n,i){if(this.segments.length>0){var s=et(this.segments).anchor(),a=ne.fromPoints(s,Ft.create(t),e,r,o,n,i);this._addArcSegments(a)}return this},e.prototype._addArcSegments=function(t){this.suspend();for(var e=t.curvePoints(),r=1;r<e.length;r+=3)this.curveTo(e[r],e[r+1],e[r+2]);this.resume(),this.geometryChange()},e.prototype.close=function(){return this.options.closed=!0,this.geometryChange(),this},e.prototype.rawBBox=function(){return this._bbox()},e.prototype.toString=function(t){var e,r,o,n="",i=this.segments,s=i.length;if(s>0){for(var a,h=[],c=(o=t,function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return t.map((function(t){return t.toString(o)})).join(Ke)}),p=1;p<s;p++){var u=(e=i[p-1],r=i[p],e.controlOut()&&r.controlIn()?"C":"L");u!==a&&(a=u,h.push(u)),"L"===u?h.push(c(i[p].anchor())):h.push(c(i[p-1].controlOut(),i[p].controlIn(),i[p].anchor()))}n="M"+c(i[0].anchor())+Ke+h.join(Ke),this.options.closed&&(n+="Z")}return n},e.prototype._containsPoint=function(t){for(var e,r,o=this.segments,n=o.length,i=0,s=1;s<n;s++)e=o[s-1],r=o[s],i+=e._intersectionsTo(r,t);return!this.options.closed&&o[0].anchor().equals(o[n-1].anchor())||(i+=xe(o[0].anchor(),o[n-1].anchor(),t)),i%2!=0},e.prototype._isOnPath=function(t,e){var r=this.segments,o=r.length,n=e||this.options.stroke.width;if(o>1){if(r[0]._isOnPathTo(r[1],t,n,"start"))return!0;for(var i=2;i<=o-2;i++)if(r[i-1]._isOnPathTo(r[i],t,n))return!0;if(r[o-2]._isOnPathTo(r[o-1],t,n,"end"))return!0}return!1},e.prototype._bbox=function(t){var e,r=this.segments,o=r.length;if(1===o){var n=r[0].anchor().transformCopy(t);e=new It(n,Lt.ZERO)}else if(o>0)for(var i=1;i<o;i++){var s=r[i-1].bboxTo(r[i],t);e=e?It.union(e,s):s}return e},e.parse=function(t,e){return tr.parse(t,e)},e.fromRect=function(t,r){var o=new e(r),n=t.cornerRadius,i=n[0],s=n[1];if(0===i&&0===s)o.moveTo(t.topLeft()).lineTo(t.topRight()).lineTo(t.bottomRight()).lineTo(t.bottomLeft()).close();else{var a=t.origin,h=a.x,c=a.y,p=t.width(),u=t.height();i=rt(i,0,p/2),s=rt(s,0,u/2),o.moveTo(h+i,c).lineTo(h+p-i,c).arcTo([h+p,c+s],i,s,!1).lineTo(h+p,c+u-s).arcTo([h+p-i,c+u],i,s,!1).lineTo(h+i,c+u).arcTo([h,c+u-s],i,s,!1).lineTo(h,c+s).arcTo([h+i,c],i,s,!1)}return o},e.fromPoints=function(t,r){if(t){for(var o=new e(r),n=0;n<t.length;n++){var i=Ft.create(t[n]);i&&(0===n?o.moveTo(i):o.lineTo(i))}return o}},e.curveFromPoints=function(t,r){if(t){var o=Ee(t),n=new e(r);return n.segments.push.apply(n.segments,o),n}},e.fromArc=function(t,r){var o=new e(r),n=t.startAngle,i=t.pointAt(n);return o.moveTo(i.x,i.y),o.arc(n,t.endAngle,t.radiusX,t.radiusY,t.anticlockwise),o},Object.defineProperties(e.prototype,r),e}(Yt(Jt(Ht))),tr=function(t){function e(e){t.call(this,e),this.paths=new de,this.paths.addObserver(this),G(this.options.stroke)||this.stroke("#000")}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={nodeType:{configurable:!0}};return e.parse=function(t,r){return We(new e(r),t)},e.prototype.toString=function(t){var e=this.paths,r="";if(e.length>0){for(var o=[],n=0;n<e.length;n++)o.push(e[n].toString(t));r=o.join(Ke)}return r},r.nodeType.get=function(){return"MultiPath"},e.prototype.moveTo=function(t,e){var r=new Qe;return r.moveTo(t,e),this.paths.push(r),this},e.prototype.lineTo=function(t,e){return this.paths.length>0&&et(this.paths).lineTo(t,e),this},e.prototype.curveTo=function(t,e,r){return this.paths.length>0&&et(this.paths).curveTo(t,e,r),this},e.prototype.arc=function(t,e,r,o,n){return this.paths.length>0&&et(this.paths).arc(t,e,r,o,n),this},e.prototype.arcTo=function(t,e,r,o,n,i){return this.paths.length>0&&et(this.paths).arcTo(t,e,r,o,n,i),this},e.prototype.close=function(){return this.paths.length>0&&et(this.paths).close(),this},e.prototype._bbox=function(t){return Je(this.paths,!0,t)},e.prototype.rawBBox=function(){return Je(this.paths,!1)},e.prototype._containsPoint=function(t){for(var e=this.paths,r=0;r<e.length;r++)if(e[r]._containsPoint(t))return!0;return!1},e.prototype._isOnPath=function(t){for(var e=this.paths,r=this.options.stroke.width,o=0;o<e.length;o++)if(e[o]._isOnPath(t,r))return!0;return!1},e.prototype._clippedBBox=function(t){return Ze(this.paths,this.currentTransform(t))},Object.defineProperties(e.prototype,r),e}(Yt(Jt(Ht))),er=function(t){function e(e,r){void 0===e&&(e=new ne),void 0===r&&(r={}),t.call(this,r),this.geometry(e),G(this.options.stroke)||this.stroke("#000")}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={nodeType:{configurable:!0}};return r.nodeType.get=function(){return"Arc"},e.prototype._bbox=function(t){return this._geometry.bbox(t)},e.prototype.rawBBox=function(){return this.geometry().bbox()},e.prototype.toPath=function(){var t=new Qe,e=this.geometry().curvePoints();if(e.length>0){t.moveTo(e[0].x,e[0].y);for(var r=1;r<e.length;r+=3)t.curveTo(e[r],e[r+1],e[r+2])}return t},e.prototype._containsPoint=function(t){return this.geometry().containsPoint(t)},e.prototype._isOnPath=function(t){return this.geometry()._isOnPath(t,this.options.stroke.width/2)},Object.defineProperties(e.prototype,r),e}(Yt(Jt(Kt(Ht)))),rr=function(t){function e(e,r,o){void 0===r&&(r=new Ft),void 0===o&&(o={}),t.call(this,o),this.content(e),this.position(r),this.options.font||(this.options.font="12px sans-serif"),G(this.options.fill)||this.fill("#000")}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={nodeType:{configurable:!0}};return r.nodeType.get=function(){return"Text"},e.prototype.content=function(t){return G(t)?(this.options.set("content",t),this):this.options.get("content")},e.prototype.measure=function(){return Ot(this.content(),{font:this.options.get("font")})},e.prototype.rect=function(){var t=this.measure(),e=this.position().clone();return new It(e,[t.width,t.height])},e.prototype.bbox=function(t){var e=jt(this.currentTransform(t));return this.rect().bbox(e)},e.prototype.rawBBox=function(){return this.rect().bbox()},e.prototype._containsPoint=function(t){return this.rect().containsPoint(t)},Object.defineProperties(e.prototype,r),e}(Yt(Ce(Ht,["position"]))),or=function(t){function e(e,r,o){void 0===r&&(r=new It),void 0===o&&(o={}),t.call(this,o),this.src(e),this.rect(r)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={nodeType:{configurable:!0}};return r.nodeType.get=function(){return"Image"},e.prototype.src=function(t){return G(t)?(this.options.set("src",t),this):this.options.get("src")},e.prototype.bbox=function(t){var e=jt(this.currentTransform(t));return this._rect.bbox(e)},e.prototype.rawBBox=function(){return this._rect.bbox()},e.prototype._containsPoint=function(t){return this._rect.containsPoint(t)},e.prototype._hasFill=function(){return this.src()},Object.defineProperties(e.prototype,r),e}(Kt(Ht,["rect"])),nr=function(t,e){return function(t){function r(){t.apply(this,arguments)}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.prototype.traverse=function(t){for(var r=this[e],o=0;o<r.length;o++){var n=r[o];n.traverse?n.traverse(t):t(n)}return this},r}(t)},ir=function(t){function e(e){t.call(this,e),this.children=[]}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={nodeType:{configurable:!0}};return r.nodeType.get=function(){return"Group"},e.prototype.childrenChange=function(t,e,r){this.trigger("childrenChange",{action:t,items:e,index:r})},e.prototype.append=function(){return I(this.children,arguments),this._reparent(arguments,this),this.childrenChange("add",arguments),this},e.prototype.insert=function(t,e){return this.children.splice(t,0,e),e.parent=this,this.childrenChange("add",[e],t),this},e.prototype.insertAt=function(t,e){return this.insert(e,t)},e.prototype.remove=function(t){var e=this.children.indexOf(t);return e>=0&&(this.children.splice(e,1),t.parent=null,this.childrenChange("remove",[t],e)),this},e.prototype.removeAt=function(t){if(0<=t&&t<this.children.length){var e=this.children[t];this.children.splice(t,1),e.parent=null,this.childrenChange("remove",[e],t)}return this},e.prototype.clear=function(){var t=this.children;return this.children=[],this._reparent(t,null),this.childrenChange("remove",t,0),this},e.prototype.bbox=function(t){return Je(this.children,!0,this.currentTransform(t))},e.prototype.rawBBox=function(){return Je(this.children,!1)},e.prototype._clippedBBox=function(t){return Ze(this.children,this.currentTransform(t))},e.prototype.currentTransform=function(t){return Ht.prototype.currentTransform.call(this,t)||null},e.prototype.containsPoint=function(t,e){if(this.visible())for(var r=this.children,o=this.currentTransform(e),n=0;n<r.length;n++)if(r[n].containsPoint(t,o))return!0;return!1},e.prototype._reparent=function(t,e){for(var r=0;r<t.length;r++){var o=t[r],n=o.parent;n&&n!==this&&n.remove&&n.remove(o),o.parent=e}},Object.defineProperties(e.prototype,r),e}(nr(Ht,"children"));function sr(t,e,r){var o=r.transform()||Bt(),n=o.matrix();n.e+=t.x-e.origin.x,n.f+=t.y-e.origin.y,o.matrix(n),r.transform(o)}function ar(t,e,r,o,n){return"start"===r?e.origin[o]:"end"===r?e.origin[o]+e.size[n]-t:e.origin[o]+(e.size[n]-t)/2}function hr(t,e,r,o,n){return"start"===r?e.origin[o]+e.size[n]-t:"end"===r?e.origin[o]:e.origin[o]+(e.size[n]-t)/2}var cr={alignContent:"start",justifyContent:"start",alignItems:"start",spacing:0,orientation:"horizontal",lineSpacing:0,wrap:!0,revers:!1},pr=function(t,e){t.forEach(e)},ur=function(t,e){for(var r=t.length-1;r>=0;r--)e(t[r],r)},lr=function(t){function e(e,r){t.call(this,Object.assign({},cr,r)),this._rect=e,this._fieldMap={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.rect=function(t){return t?(this._rect=t,this):this._rect},e.prototype._initMap=function(){var t=this.options,e=this._fieldMap;"horizontal"===t.orientation?(e.sizeField="width",e.groupsSizeField="height",e.groupAxis="x",e.groupsAxis="y"):(e.sizeField="height",e.groupsSizeField="width",e.groupAxis="y",e.groupsAxis="x"),t.reverse?(this.forEach=ur,this.justifyAlign=hr):(this.forEach=pr,this.justifyAlign=ar)},e.prototype.reflow=function(){if(this._rect&&0!==this.children.length){this._initMap(),this.options.transform&&this.transform(null);for(var t,e,r,o=this.options,n=this._rect,i=this._initGroups(),s=i.groups,a=i.groupsSize,h=this._fieldMap,c=h.sizeField,p=h.groupsSizeField,u=h.groupAxis,l=h.groupsAxis,f=new Ft,d=new Ft,y=new Lt,g=ar(a,n,o.alignContent,l,p),m=function(n,i){var s=e.elements[i];d[u]=t,d[l]=ar(n.size[p],r,o.alignItems,l,p),sr(d,n,s),t+=n.size[c]+o.spacing},v=0;v<s.length;v++)e=s[v],f[u]=t=this.justifyAlign(e.size,n,o.justifyContent,u,c),f[l]=g,y[c]=e.size,y[p]=e.lineSize,r=new It(f,y),this.forEach(e.bboxes,m),g+=e.lineSize+o.lineSpacing;if(!o.wrap&&e.size>n.size[c]){var _=n.size[c]/r.size[c],b=r.topLeft().scale(_,_),w=ar(r.size[p]*_,n,o.alignContent,l,p),x=Bt();"x"===u?x.translate(n.origin.x-b.x,w-b.y):x.translate(w-b.x,n.origin.y-b.y),x.scale(_,_),this.transform(x)}}},e.prototype._initGroups=function(){for(var t=this,e=this.options,r=this.children,o=e.lineSpacing,n=e.wrap,i=e.spacing,s=this._fieldMap.sizeField,a=this._newGroup(),h=[],c=function(){h.push(a),p+=a.lineSize+o},p=-o,u=0;u<r.length;u++){var l=r[u],f=r[u].clippedBBox();l.visible()&&f&&(n&&a.size+f.size[s]+i>t._rect.size[s]?0===a.bboxes.length?(t._addToGroup(a,f,l),c(),a=t._newGroup()):(c(),a=t._newGroup(),t._addToGroup(a,f,l)):t._addToGroup(a,f,l))}return a.bboxes.length&&c(),{groups:h,groupsSize:p}},e.prototype._addToGroup=function(t,e,r){t.size+=e.size[this._fieldMap.sizeField]+this.options.spacing,t.lineSize=Math.max(e.size[this._fieldMap.groupsSizeField],t.lineSize),t.bboxes.push(e),t.elements.push(r)},e.prototype._newGroup=function(){return{lineSize:0,size:-this.options.spacing,bboxes:[],elements:[]}},e}(ir),fr=function(t){function e(e,r){void 0===e&&(e=new It),void 0===r&&(r={}),t.call(this,r),this.geometry(e),G(this.options.stroke)||this.stroke("#000")}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={nodeType:{configurable:!0}};return r.nodeType.get=function(){return"Rect"},e.prototype._bbox=function(t){return this._geometry.bbox(t)},e.prototype.rawBBox=function(){return this._geometry.bbox()},e.prototype._containsPoint=function(t){return this._geometry.containsPoint(t)},e.prototype._isOnPath=function(t){return this.geometry()._isOnPath(t,this.options.stroke.width/2)},Object.defineProperties(e.prototype,r),e}(Yt(Jt(Kt(Ht))));function dr(t,e,r,o,n){for(var i=0;i<t.length;i++){var s=t[i].clippedBBox();if(s){var a=s.origin.clone();a[o]=ar(s.size[n],e,r||"start",o,n),sr(a,s,t[i])}}}function yr(t,e,r,o){if(t.length>1)for(var n=new Ft,i=t[0].bbox,s=1;s<t.length;s++){var a=t[s].element,h=t[s].bbox;n[e]=i.origin[e]+i.size[o],n[r]=h.origin[r],sr(n,h,a),h.origin[e]=n[e],i=h}}function gr(t){for(var e=[],r=0;r<t.length;r++){var o=t[r],n=o.clippedBBox();n&&e.push({element:o,bbox:n})}return e}function mr(t,e,r,o,n){for(var i=function(t,e,r){for(var o,n,i=e.size[r],s=[],a=[],h=0,c=function(){a.push({element:o,bbox:n})},p=0;p<t.length;p++)if(o=t[p],n=o.clippedBBox()){var u=n.size[r];h+u>i?a.length?(s.push(a),a=[],c(),h=u):(c(),s.push(a),a=[],h=0):(c(),h+=u)}return a.length&&s.push(a),s}(t,e,n),s=e.origin.clone(),a=[],h=0;h<i.length;h++){var c=i[h],p=c[0];s[o]=p.bbox.origin[o],sr(s,p.bbox,p.element),p.bbox.origin[r]=s[r],yr(c,r,o,n),a.push([]);for(var u=0;u<c.length;u++)a[h].push(c[u].element)}return a}var vr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._change=function(){this.optionsChange({field:"stops"})},e}(fe);function _r(t){return function(e){return G(e)?(this.options.set(t,e),this):this.options.get(t)}}var br,wr,xr=function(t){function e(e,r,o){t.call(this),this.options=new Et({offset:e,color:r,opacity:G(o)?o:1}),this.options.addObserver(this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.create=function(t){if(G(t))return t instanceof e?t:t.length>1?new e(t[0],t[1],t[2]):new e(t.offset,t.color,t.opacity)},e}((br=["offset","color","opacity"],wr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(L),function(t,e){for(var r=0;r<e.length;r++)t[e[r]]=_r(e[r])}(wr.prototype,br),wr)),Sr=function(t){function e(e){void 0===e&&(e={}),t.call(this),this.stops=new vr(this._createStops(e.stops)),this.stops.addObserver(this),this._userSpace=e.userSpace,this.id=U()}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={nodeType:{configurable:!0}};return r.nodeType.get=function(){return"Gradient"},e.prototype.userSpace=function(t){return G(t)?(this._userSpace=t,this.optionsChange(),this):this._userSpace},e.prototype._createStops=function(t){void 0===t&&(t=[]);for(var e=[],r=0;r<t.length;r++)e.push(xr.create(t[r]));return e},e.prototype.addStop=function(t,e,r){this.stops.push(new xr(t,e,r))},e.prototype.removeStop=function(t){var e=this.stops.indexOf(t);e>=0&&this.stops.splice(e,1)},e.prototype.optionsChange=function(t){this.trigger("optionsChange",{field:"gradient"+(t?"."+t.field:""),value:this})},e.prototype.geometryChange=function(){this.optionsChange()},Object.defineProperties(e.prototype,r),e}(L),Cr=function(t){function e(e){void 0===e&&(e={}),t.call(this,e),this.start(e.start||new Ft),this.end(e.end||new Ft(1,0))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Ce(Sr,["start","end"])),kr=function(t){function e(e){void 0===e&&(e={}),t.call(this,e),this.center(e.center||new Ft),this._radius=G(e.radius)?e.radius:1,this._fallbackFill=e.fallbackFill}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.radius=function(t){return G(t)?(this._radius=t,this.geometryChange(),this):this._radius},e.prototype.fallbackFill=function(t){return G(t)?(this._fallbackFill=t,this.optionsChange(),this):this._fallbackFill},e}(Ce(Sr,["center"])),Tr="#aba4a6",Or=2,Mr=18,Ar=10,Er=10,Pr=18,Rr=2,Nr=function(t){function e(e){t.call(this);var r=e.width,o=e.height;this._size=Lt.create([r,o]),this.id=U()}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={nodeType:{configurable:!0}};return r.nodeType.get=function(){return Ut},e.prototype.size=function(t){return t?(this._size=Lt.create(t),this):this._size},Object.defineProperties(e.prototype,r),e}(ir),jr=function(t,e,r){e&&t.append(new fr(new It([0,0],r),{fill:{color:e},stroke:null}))};var Fr,Lr,Ir=Object.freeze({__proto__:null,easeOutElastic:function(t,e,r,o){var n=1.70158,i=0,s=o;return 0===t?r:1===t?r+o:(i||(i=.5),s<Math.abs(o)?(s=o,n=i/4):n=i/(2*Math.PI)*Math.asin(o/s),s*Math.pow(2,-10*t)*Math.sin((Number(t)-n)*(1.1*Math.PI)/i)+o+r)},linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}}),zr=function(t){function e(){t.call(this),this._items=[]}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={current:{configurable:!0}};return r.current.get=function(){return Fr||(Fr=new e),Fr},e.prototype.register=function(t,e){this._items.push({name:t,type:e})},e.prototype.create=function(t,e){var r,o=this._items;if(e&&e.type)for(var n=e.type.toLowerCase(),i=0;i<o.length;i++)if(o[i].name.toLowerCase()===n){r=o[i];break}if(r)return new r.type(t,e)},Object.defineProperties(e,r),e}(o),Br=function(t){function e(e,r){t.call(this),this.options=Object.assign({},this.options,r),this.element=e}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={options:{configurable:!0}};return e.create=function(t,e,r){return zr.current.create(t,e,r)},r.options.get=function(){return this._options||{duration:500,easing:"swing"}},r.options.set=function(t){this._options=t},e.prototype.setup=function(){},e.prototype.step=function(){},e.prototype.play=function(){var t=this,e=this.options,r=e.duration,o=e.delay;void 0===o&&(o=0);var n=Ir[e.easing],i=w()+o,s=i+r;0===r?(this.step(1),this.abort()):setTimeout((function(){var e=function(){if(!t._stopped){var o=w(),a=rt(o-i,0,r),h=n(a/r,a,0,1,r);t.step(h),o<s?p(e):t.abort()}};e()}),o)},e.prototype.abort=function(){this._stopped=!0},e.prototype.destroy=function(){this.abort()},Object.defineProperties(e.prototype,r),e}(o),Dr=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={current:{configurable:!0}};return r.current.get=function(){return Lr||(Lr=new e),Lr},e.prototype.parse=function(t,e){return We(new tr(e),t)},Object.defineProperties(e,r),e}(o),Gr=function(t){function e(e){t.call(this),this.childNodes=[],this.parent=null,e&&(this.srcElement=e,this.observe())}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this.srcElement&&this.srcElement.removeObserver(this);for(var t=this.childNodes,e=0;e<t.length;e++)this.childNodes[e].destroy();this.parent=null},e.prototype.load=function(){},e.prototype.observe=function(){this.srcElement&&this.srcElement.addObserver(this)},e.prototype.append=function(t){this.childNodes.push(t),t.parent=this},e.prototype.insertAt=function(t,e){this.childNodes.splice(e,0,t),t.parent=this},e.prototype.remove=function(t,e){for(var r=t+e,o=t;o<r;o++)this.childNodes[o].removeSelf();this.childNodes.splice(t,e)},e.prototype.removeSelf=function(){this.clear(),this.destroy()},e.prototype.clear=function(){this.remove(0,this.childNodes.length)},e.prototype.invalidate=function(){this.parent&&this.parent.invalidate()},e.prototype.geometryChange=function(){this.invalidate()},e.prototype.optionsChange=function(){this.invalidate()},e.prototype.childrenChange=function(t){"add"===t.action?this.load(t.items,t.index):"remove"===t.action&&this.remove(t.index,t.items.length),this.invalidate()},e}(o),qr=["click","mouseenter","mouseleave","mousemove","resize"],Ur=function(t){function e(e,r){t.call(this),this.options=Object.assign({},r),this.element=e,this.element._kendoExportVisual=this.exportVisual.bind(this),this._click=this._handler("click"),this._mouseenter=this._handler("mouseenter"),this._mouseleave=this._handler("mouseleave"),this._mousemove=this._handler("mousemove"),this._visual=new ir,lt(e,this.options),this.bind(qr,this.options),this._enableTracking()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.draw=function(t){this._visual.children.push(t)},e.prototype.clear=function(){this._visual.children=[]},e.prototype.destroy=function(){this._visual=null,this.element._kendoExportVisual=null,this.unbind()},e.prototype.eventTarget=function(t){for(var e,r=Q(t);!e&&r&&(e=r._kendoNode,r!==this.element);)r=r.parentElement;if(e)return e.srcElement},e.prototype.exportVisual=function(){return this._visual},e.prototype.getSize=function(){return lt(this.element)},e.prototype.currentSize=function(t){if(!t)return this._size;this._size=t},e.prototype.setSize=function(t){lt(this.element,t),this.currentSize(t),this._resize()},e.prototype.resize=function(t){var e=this.getSize(),r=this.currentSize();(t||(e.width>0||e.height>0)&&(!r||e.width!==r.width||e.height!==r.height))&&(this.currentSize(e),this._resize(e,t),this.trigger("resize",e))},e.prototype.size=function(t){if(!t)return this.getSize();this.setSize(t)},e.prototype.suspendTracking=function(){this._suspendedTracking=!0},e.prototype.resumeTracking=function(){this._suspendedTracking=!1},e.prototype._enableTracking=function(){},e.prototype._resize=function(){},e.prototype._handler=function(t){var e=this;return function(r){var o=e.eventTarget(r);o&&!e._suspendedTracking&&e.trigger(t,{element:o,originalEvent:r,type:t})}},e.prototype._elementOffset=function(){var t=this.element,e=dt(t),r=ct(t),o=r.left,n=r.top;return{left:o+e.left,top:n+e.top}},e.prototype._surfacePoint=function(t){var e=this._elementOffset(),r=K(t),o=r.x-e.left,n=r.y-e.top,i=vt(this.element).invert();return new Ft(o,n).transform(i)},e}(n);function Hr(t,e){return G(e)&&null!==e?" "+t+'="'+e+'" ':""}function $r(t){for(var e="",r=0;r<t.length;r++)e+=Hr(t[r][0],t[r][1]);return e}function Xr(t){for(var e="",r=0;r<t.length;r++){var o=t[r][1];G(o)&&(e+=t[r][0]+":"+o+";")}if(""!==e)return e}var Vr={},Yr=function(t,r){var o=e.p(r);Object.keys(o).forEach((function(e){t.style[e]=o[e]}))},Wr="data-style",Jr=function(t){return(t||"").replace(/\sstyle=/g," "+Wr+"=")},Zr=function(t){Array.from(t.querySelectorAll("["+Wr+"]")).forEach((function(t){var e=t.getAttribute(Wr);t.removeAttribute(Wr),Yr(t,e)}))},Kr=function(t,e){t.innerHTML=Jr(e),Zr(t)},Qr="http://www.w3.org/2000/svg",to="none",eo=function(t,e){Kr(t,e)};if("undefined"!=typeof document){var ro="<svg xmlns='"+Qr+"'></svg>",oo=document.createElement("div"),no="undefined"!=typeof DOMParser;oo.innerHTML=ro,no&&oo.firstChild.namespaceURI!==Qr&&(eo=function(t,e){var r=(new DOMParser).parseFromString(Jr(e),"text/xml");Zr(r);var o=document.adoptNode(r.documentElement);t.innerHTML="",t.appendChild(o)})}var io=eo,so="transform",ao={clip:"clip-path",fill:"fill"};function ho(t,e){return"clip"===t||"fill"===t&&(!e||"Gradient"===e.nodeType||e.nodeType===Ut)}var co=function(t){function e(e,r){t.call(this,e),this.definitions={},this.options=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this.element&&(this.element._kendoNode=null,this.element=null),this.clearDefinitions(),t.prototype.destroy.call(this)},e.prototype.load=function(t,e){for(var r=this,o=0;o<t.length;o++){var n=t[o],i=n.children,s=new Vr[n.nodeType](n,r.options);G(e)?r.insertAt(s,e):r.append(s),s.createDefinitions(),i&&i.length>0&&s.load(i);var a=r.element;a&&s.attachTo(a,e)}},e.prototype.root=function(){for(var t=this;t.parent;)t=t.parent;return t},e.prototype.attachTo=function(t,e){var r=document.createElement("div");io(r,"<svg xmlns='"+Qr+"' version='1.1'>"+this.render()+"</svg>");var o=r.firstChild.firstChild;o&&(G(e)?t.insertBefore(o,t.childNodes[e]||null):t.appendChild(o),this.setElement(o))},e.prototype.setElement=function(t){this.element&&(this.element._kendoNode=null),this.element=t,this.element._kendoNode=this;for(var e=this.childNodes,r=0;r<e.length;r++){var o=t.childNodes[r];e[r].setElement(o)}},e.prototype.clear=function(){this.clearDefinitions(),this.element&&(this.element.innerHTML="");for(var t=this.childNodes,e=0;e<t.length;e++)t[e].destroy();this.childNodes=[]},e.prototype.removeSelf=function(){if(this.element){var e=this.element.parentNode;e&&e.removeChild(this.element),this.element=null}t.prototype.removeSelf.call(this)},e.prototype.template=function(){return this.renderChildren()},e.prototype.render=function(){return this.template()},e.prototype.renderChildren=function(){for(var t=this.childNodes,e="",r=0;r<t.length;r++)e+=t[r].render();return e},e.prototype.optionsChange=function(e){var r=e.field,o=e.value;"visible"===r?this.css("display",o?"":to):ao[r]&&ho(r,o)?this.updateDefinition(r,o):"opacity"===r?this.attr("opacity",o):"cursor"===r?this.css("cursor",o):"id"===r&&(o?this.attr("id",o):this.removeAttr("id")),t.prototype.optionsChange.call(this,e)},e.prototype.accessibilityOptionsChange=function(t){var e=t.field,r=t.value;"role"===e?r?this.attr("role",r):this.removeAttr("role"):"ariaLabel"===e?r?this.attr("aria-label",g(r)):this.removeAttr("aria-label"):"ariaRoleDescription"===e?r?this.attr("aria-roledescription",g(r)):this.removeAttr("aria-roledescription"):"ariaChecked"===e?G(r)?this.attr("aria-checked",r):this.removeAttr("aria-checked"):"className"===e&&this.className(r)},e.prototype.attr=function(t,e){this.element&&this.element.setAttribute(t,e)},e.prototype.allAttr=function(t){for(var e=0;e<t.length;e++)this.attr(t[e][0],t[e][1])},e.prototype.toggleAttr=function(t,e){e?this.attr(t,e):this.removeAttr(t)},e.prototype.css=function(t,e){this.element&&(this.element.style[t]=e)},e.prototype.allCss=function(t){for(var e=0;e<t.length;e++)this.css(t[e][0],t[e][1])},e.prototype.className=function(t){var e,r=this;this.element&&((e=this.element.classList).remove.apply(e,this.element.classList),t.split(" ").forEach((function(t){r.element.classList.add(t)})))},e.prototype.removeAttr=function(t){this.element&&this.element.removeAttribute(t)},e.prototype.mapTransform=function(t){var e=[];return t&&e.push([so,"matrix("+t.matrix().toString(6)+")"]),e},e.prototype.renderTransform=function(){return $r(this.mapTransform(this.srcElement.transform()))},e.prototype.transformChange=function(t){t?this.allAttr(this.mapTransform(t)):this.removeAttr(so)},e.prototype.mapStyle=function(){var t=this.srcElement.options,e=[["cursor",t.cursor]];return!1===t.visible&&e.push(["display",to]),e},e.prototype.renderStyle=function(){return Hr("style",Xr(this.mapStyle(!0)))},e.prototype.renderOpacity=function(){return Hr("opacity",this.srcElement.options.opacity)},e.prototype.renderId=function(){return Hr("id",this.srcElement.options.id)},e.prototype.renderClassName=function(){return Hr("class",this.srcElement.options.className)},e.prototype.renderRole=function(){return Hr("role",this.srcElement.options.role)},e.prototype.renderAriaLabel=function(){var t=this.srcElement.options.ariaLabel;return t&&(t=g(t)),Hr("aria-label",t)},e.prototype.renderAriaRoleDescription=function(){var t=this.srcElement.options.ariaRoleDescription;return t&&(t=g(t)),Hr("aria-roledescription",t)},e.prototype.renderAriaChecked=function(){return Hr("aria-checked",this.srcElement.options.ariaChecked)},e.prototype.createDefinitions=function(){var t=this.srcElement,e=this.definitions;if(t){var r,o=t.options;for(var n in ao){var i=o.get(n);i&&ho(n,i)&&(e[n]=i,r=!0)}r&&this.definitionChange({action:"add",definitions:e})}},e.prototype.definitionChange=function(t){this.parent&&this.parent.definitionChange(t)},e.prototype.updateDefinition=function(t,e){var r=this.definitions,o=r[t],n=ao[t],i={};o&&(i[t]=o,this.definitionChange({action:"remove",definitions:i}),delete r[t]),e?(i[t]=e,this.definitionChange({action:"add",definitions:i}),r[t]=e,this.attr(n,this.refUrl(e.id))):o&&this.removeAttr(n)},e.prototype.clearDefinitions=function(){var t=this.definitions;this.definitionChange({action:"remove",definitions:t}),this.definitions={}},e.prototype.renderDefinitions=function(){return $r(this.mapDefinitions())},e.prototype.mapDefinitions=function(){var t=this.definitions,e=[];for(var r in t)e.push([ao[r],this.refUrl(t[r].id)]);return e},e.prototype.refUrl=function(t){var e=(this.options||{}).skipBaseHref,r=this.baseUrl().replace(/'/g,"\\'");return"url("+(e?"":r)+"#"+t+")"},e.prototype.baseUrl=function(){return function(){var t=document.getElementsByTagName("base")[0],e=document.location.href,r="";if(t&&!(b.browser||{}).msie){var o=e.indexOf("#");-1!==o&&(e=e.substring(0,o)),r=e}return r}()},e}(Gr),po=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.template=function(){return"<stop "+this.renderOffset()+" "+this.renderStyle()+" />"},e.prototype.renderOffset=function(){return Hr("offset",this.srcElement.offset())},e.prototype.mapStyle=function(){var t=this.srcElement;return[["stop-color",t.color()],["stop-opacity",t.opacity()]]},e.prototype.optionsChange=function(t){"offset"===t.field?this.attr(t.field,t.value):"color"!==t.field&&"opacity"!==t.field||this.css("stop-"+t.field,t.value)},e}(co),uo=function(t){function e(e){t.call(this,e),this.id=e.id,this.loadStops()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.loadStops=function(){for(var t=this.srcElement.stops,e=this.element,r=0;r<t.length;r++){var o=new po(t[r]);this.append(o),e&&o.attachTo(e)}},e.prototype.optionsChange=function(t){"gradient.stops"===t.field?(Gr.prototype.clear.call(this),this.loadStops()):"gradient"===t.field&&this.allAttr(this.mapCoordinates())},e.prototype.renderCoordinates=function(){return $r(this.mapCoordinates())},e.prototype.mapSpace=function(){return["gradientUnits",this.srcElement.userSpace()?"userSpaceOnUse":"objectBoundingBox"]},e}(co),lo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.template=function(){return"<linearGradient id='"+this.id+"' "+this.renderCoordinates()+">"+this.renderChildren()+"</linearGradient>"},e.prototype.mapCoordinates=function(){var t=this.srcElement,e=t.start(),r=t.end();return[["x1",e.x],["y1",e.y],["x2",r.x],["y2",r.y],this.mapSpace()]},e}(uo),fo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.template=function(){return"<radialGradient id='"+this.id+"' "+this.renderCoordinates()+">"+this.renderChildren()+"</radialGradient>"},e.prototype.mapCoordinates=function(){var t=this.srcElement,e=t.center(),r=t.radius();return[["cx",e.x],["cy",e.y],["r",r],this.mapSpace()]},e}(uo),yo=function(t){function e(e){t.call(this,e),this.id=e.id,this.load(e.children)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.template=function(){var t=this.srcElement.size().getWidth(),e=this.srcElement.size().getHeight();return"<pattern id='"+this.srcElement.id+"' width='"+t+"' height='"+e+"' patternUnits='userSpaceOnUse'>"+this.renderChildren()+"</pattern>"},e}(co),go=function(t){function e(e){t.call(this),this.srcElement=e,this.id=e.id,this.load([e])}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.renderClipRule=function(){return Hr("clip-rule","evenodd")},e.prototype.template=function(){return"<clipPath "+this.renderClipRule()+" id='"+this.id+"'>"+this.renderChildren()+"</clipPath>"},e}(co),mo=function(t){function e(){t.call(this),this.definitionMap={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.attachTo=function(t){this.element=t},e.prototype.template=function(){return"<defs>"+this.renderChildren()+"</defs>"},e.prototype.definitionChange=function(t){var e=t.definitions,r=t.action;"add"===r?this.addDefinitions(e):"remove"===r&&this.removeDefinitions(e)},e.prototype.createDefinition=function(t,e){var r;return"clip"===t?r=go:"fill"===t&&(e instanceof Cr?r=lo:e instanceof kr?r=fo:e.nodeType===Ut&&(r=yo)),new r(e)},e.prototype.addDefinitions=function(t){for(var e in t)this.addDefinition(e,t[e])},e.prototype.addDefinition=function(t,e){var r=this.element,o=this.definitionMap,n=e.id,i=o[n];if(i)i.count++;else{var s=this.createDefinition(t,e);o[n]={element:s,count:1},this.append(s),r&&s.attachTo(this.element)}},e.prototype.removeDefinitions=function(t){for(var e in t)this.removeDefinition(t[e])},e.prototype.removeDefinition=function(t){var e=this.definitionMap,r=t.id,o=e[r];o&&(o.count--,0===o.count&&(this.remove(this.childNodes.indexOf(o.element),1),delete e[r]))},e}(co),vo=function(t){function e(e){t.call(this),this.options=e,this.defs=new mo}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.attachTo=function(t){this.element=t,this.defs.attachTo(t.firstElementChild)},e.prototype.clear=function(){Gr.prototype.clear.call(this)},e.prototype.template=function(){return this.defs.render()+this.renderChildren()},e.prototype.definitionChange=function(t){this.defs.definitionChange(t)},e}(co),_o={"fill.opacity":"fill-opacity","stroke.color":"stroke","stroke.width":"stroke-width","stroke.opacity":"stroke-opacity"},bo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.geometryChange=function(){this.attr("d",this.renderData()),this.invalidate()},e.prototype.optionsChange=function(e){switch(e.field){case"fill":e.value?this.allAttr(this.mapFill(e.value)):this.removeAttr("fill");break;case"fill.color":this.allAttr(this.mapFill({color:e.value}));break;case"stroke":e.value?this.allAttr(this.mapStroke(e.value)):this.removeAttr("stroke");break;case"transform":this.transformChange(e.value);break;default:var r=_o[e.field];r&&this.attr(r,e.value)}this.accessibilityOptionsChange(e),t.prototype.optionsChange.call(this,e)},e.prototype.content=function(){this.element&&(this.element.textContent=this.srcElement.content())},e.prototype.renderData=function(){return this.srcElement.toString(3)||void 0},e.prototype.mapStroke=function(t){var e=[];return t&&!tt(t.color)?(e.push(["stroke",t.color]),e.push(["stroke-width",t.width]),e.push(["stroke-linecap",this.renderLinecap(t)]),e.push(["stroke-linejoin",t.lineJoin]),G(t.opacity)&&e.push(["stroke-opacity",t.opacity]),G(t.dashType)&&e.push(["stroke-dasharray",this.renderDashType(t)])):e.push(["stroke",to]),e},e.prototype.renderStroke=function(){return $r(this.mapStroke(this.srcElement.options.stroke))},e.prototype.renderDashType=function(t){var e=t.dashType,r=t.width;if(void 0===r&&(r=1),e&&e!==Gt){for(var o=Dt[e.toLowerCase()],n=[],i=0;i<o.length;i++)n.push(o[i]*r);return n.join(" ")}},e.prototype.renderLinecap=function(t){var e=t.dashType,r=t.lineCap;return e&&e!==Gt?qt:r},e.prototype.mapFill=function(t){var e=[];return(!t||"Gradient"!==t.nodeType&&t.nodeType!==Ut)&&(t&&!tt(t.color)?(e.push(["fill",t.color]),G(t.opacity)&&e.push(["fill-opacity",t.opacity])):e.push(["fill",to])),e},e.prototype.renderFill=function(){return $r(this.mapFill(this.srcElement.options.fill))},e.prototype.template=function(){return"<path "+this.renderId()+" "+this.renderStyle()+" "+this.renderOpacity()+" "+Hr("d",this.renderData())+this.renderStroke()+this.renderFill()+this.renderDefinitions()+this.renderTransform()+this.renderClassName()+" "+this.renderRole()+this.renderAriaLabel()+" "+this.renderAriaRoleDescription()+this.renderAriaChecked()+" ></path>"},e}(co),wo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.renderData=function(){return this.srcElement.toPath().toString(3)},e}(bo),xo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.geometryChange=function(){var t=this.center();this.attr("cx",t.x),this.attr("cy",t.y),this.attr("r",this.radius()),this.invalidate()},e.prototype.center=function(){return this.srcElement.geometry().center},e.prototype.radius=function(){return this.srcElement.geometry().radius},e.prototype.template=function(){return"<circle "+this.renderId()+" "+this.renderStyle()+" "+this.renderOpacity()+"cx='"+this.center().x+"' cy='"+this.center().y+"' r='"+this.radius()+"'"+this.renderStroke()+" "+this.renderFill()+" "+this.renderDefinitions()+this.renderClassName()+" "+this.renderRole()+this.renderAriaLabel()+" "+this.renderAriaRoleDescription()+this.renderAriaChecked()+" "+this.renderTransform()+" ></circle>"},e}(bo),So=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.template=function(){return"<g"+(this.renderId()+this.renderTransform()+this.renderClassName()+this.renderStyle()+this.renderOpacity()+this.renderRole()+this.renderAriaLabel()+this.renderAriaRoleDescription()+this.renderAriaChecked()+this.renderDefinitions())+">"+this.renderChildren()+"</g>"},e.prototype.optionsChange=function(e){var r=e.field,o=e.value;"transform"===r&&this.transformChange(o),this.accessibilityOptionsChange(e),t.prototype.optionsChange.call(this,e)},e}(co),Co=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.geometryChange=function(){this.allAttr(this.mapPosition()),this.invalidate()},e.prototype.optionsChange=function(e){"src"===e.field&&this.allAttr(this.mapSource()),t.prototype.optionsChange.call(this,e)},e.prototype.mapPosition=function(){var t=this.srcElement.rect(),e=t.topLeft();return[["x",e.x],["y",e.y],["width",t.width()+"px"],["height",t.height()+"px"]]},e.prototype.renderPosition=function(){return $r(this.mapPosition())},e.prototype.mapSource=function(t){var e=this.srcElement.src();return t&&(e=g(e)),[["xlink:href",e]]},e.prototype.renderSource=function(){return $r(this.mapSource(!0))},e.prototype.template=function(){return"<image preserveAspectRatio='none' "+this.renderId()+" "+this.renderStyle()+" "+this.renderTransform()+" "+this.renderOpacity()+this.renderPosition()+" "+this.renderSource()+" "+this.renderDefinitions()+this.renderClassName()+" "+this.renderRole()+this.renderAriaLabel()+" "+this.renderAriaRoleDescription()+this.renderAriaChecked()+" ></image>"},e}(bo),ko=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.renderData=function(){return this.srcElement.toString(3)||"undefined"},e}(bo),To=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.geometryChange=function(){var t=this.srcElement.geometry();this.attr("x",t.origin.x),this.attr("y",t.origin.y),this.attr("width",t.size.width),this.attr("height",t.size.height),this.attr("rx",t.cornerRadius[0]),this.attr("ry",t.cornerRadius[1]),this.invalidate()},e.prototype.size=function(){return this.srcElement.geometry().size},e.prototype.origin=function(){return this.srcElement.geometry().origin},e.prototype.rx=function(){return this.srcElement.geometry().cornerRadius[0]},e.prototype.ry=function(){return this.srcElement.geometry().cornerRadius[1]},e.prototype.template=function(){return"<rect "+this.renderId()+" "+this.renderStyle()+" "+this.renderOpacity()+" x='"+this.origin().x+"' y='"+this.origin().y+"' rx='"+this.rx()+"' ry='"+this.ry()+"' width='"+this.size().width+"' height='"+this.size().height+"' "+this.renderStroke()+" "+this.renderFill()+" "+this.renderDefinitions()+" "+this.renderTransform()+this.renderClassName()+" "+this.renderRole()+this.renderAriaLabel()+" "+this.renderAriaRoleDescription()+this.renderAriaChecked()+" />"},e}(bo),Oo=/&(?:[a-zA-Z]+|#\d+);/g;function Mo(t){if(!t||"string"!=typeof t||!Oo.test(t))return t;var e=Mo._element;return Oo.lastIndex=0,t.replace(Oo,(function(t){return e.innerHTML=t,e.textContent||e.innerText}))}"undefined"!=typeof document&&(Mo._element=document.createElement("span"));var Ao=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.geometryChange=function(){var t=this.pos();this.attr("x",t.x),this.attr("y",t.y),this.invalidate()},e.prototype.optionsChange=function(e){"font"===e.field?(this.attr("style",Xr(this.mapStyle())),this.geometryChange()):"content"===e.field&&t.prototype.content.call(this,this.srcElement.content()),t.prototype.optionsChange.call(this,e)},e.prototype.mapStyle=function(e){var r=t.prototype.mapStyle.call(this,e),o=this.srcElement.options.font;return e&&(o=g(o)),r.push(["font",o],["white-space","pre"]),r},e.prototype.pos=function(){var t=this.srcElement.position(),e=this.srcElement.measure();return t.clone().setY(t.y+e.baseline)},e.prototype.renderContent=function(){var t=this.srcElement.content();return wt(t=g(t=Mo(t)))},e.prototype.renderTextAnchor=function(){var t;return!(this.options||{}).rtl||b.browser.msie||b.browser.edge||(t="end"),Hr("text-anchor",t)},e.prototype.renderPaintOrder=function(){var t=this.srcElement.options.paintOrder;return t?Hr("paint-order",t):""},e.prototype.template=function(){return"<text "+this.renderId()+" "+this.renderTextAnchor()+" "+this.renderStyle()+" "+this.renderOpacity()+"x='"+this.pos().x+"' y='"+this.pos().y+"' "+this.renderStroke()+" "+this.renderTransform()+" "+this.renderDefinitions()+this.renderPaintOrder()+this.renderFill()+this.renderClassName()+" "+this.renderRole()+this.renderAriaLabel()+" "+this.renderAriaRoleDescription()+this.renderAriaChecked()+">"+this.renderContent()+"</text>"},e}(bo);Vr.Arc=wo,Vr.Circle=xo,Vr.Group=So,Vr.Image=Co,Vr.MultiPath=ko,Vr.Path=bo,Vr.Rect=To,Vr.Text=Ao;var Eo=function(t){function e(e,r){t.call(this,e,r),this._root=new vo(Object.assign({rtl:"rtl"===pt(e,"direction").direction},this.options)),io(this.element,this._template("")),this._rootElement=this.element.firstElementChild,this._rootElement.style.width="100%",this._rootElement.style.height="100%",this._rootElement.style.overflow="hidden",function(t){var e;try{e=t.getScreenCTM?t.getScreenCTM():null}catch(t){}if(e){var r=-e.e%1,o=-e.f%1,n=t.style;0===r&&0===o||(n.left=r+"px",n.top=o+"px")}}(this._rootElement),this._root.attachTo(this._rootElement),ht(this.element,{click:this._click,mouseover:this._mouseenter,mouseout:this._mouseleave,mousemove:this._mousemove}),this.resize()}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={type:{configurable:!0}};return r.type.get=function(){return"svg"},e.prototype.destroy=function(){this._root&&(this._root.destroy(),this._root=null,this._rootElement=null,ft(this.element,{click:this._click,mouseover:this._mouseenter,mouseout:this._mouseleave,mousemove:this._mousemove})),t.prototype.destroy.call(this)},e.prototype.translate=function(t){var e=Math.round(t.x)+" "+Math.round(t.y)+" "+this._size.width+" "+this._size.height;this._offset=t,this._rootElement.setAttribute("viewBox",e)},e.prototype.draw=function(e){t.prototype.draw.call(this,e),this._root.load([e])},e.prototype.clear=function(){t.prototype.clear.call(this),this._root.clear()},e.prototype.svg=function(){return"<?xml version='1.0' ?>"+this._template()},e.prototype.exportVisual=function(){var t=this._visual,e=this._offset;if(e){var r=new ir;r.children.push(t),r.transform(Bt().translate(-e.x,-e.y)),t=r}return t},e.prototype._resize=function(){this._offset&&this.translate(this._offset)},e.prototype._template=function(t){return"<svg "+("string"==typeof t?t:"style='width: 100%; height: 100%; overflow: hidden;' ")+"xmlns='"+Qr+"' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1'>"+this._root.render()+"</svg>"},Object.defineProperties(e.prototype,r),e}(Ur),Po={},Ro=function(t){function e(e){t.call(this,e),e&&this.initClip()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initClip=function(){var t=this.srcElement.clip();t&&(this.clip=t,t.addObserver(this))},e.prototype.clear=function(){this.srcElement&&this.srcElement.removeObserver(this),this.clearClip(),t.prototype.clear.call(this)},e.prototype.clearClip=function(){this.clip&&(this.clip.removeObserver(this),delete this.clip)},e.prototype.setClip=function(t){this.clip&&(t.beginPath(),new Po[this.clip.nodeType](this.clip).renderPoints(t,this.clip),t.clip("evenodd"))},e.prototype.optionsChange=function(e){"clip"===e.field&&(this.clearClip(),this.initClip()),t.prototype.optionsChange.call(this,e)},e.prototype.setTransform=function(t){if(this.srcElement){var e=this.srcElement.transform();e&&t.transform.apply(t,e.matrix().toArray(6))}},e.prototype.loadElements=function(t,e,r){for(var o=0;o<t.length;o++){var n=t[o],i=n.children,s=new Po[n.nodeType](n,r);i&&i.length>0&&s.load(i,e,r),G(e)?this.insertAt(s,e):this.append(s)}},e.prototype.load=function(t,e,r){this.loadElements(t,e,r),this.invalidate()},e.prototype.setOpacity=function(t){if(this.srcElement){var e=this.srcElement.opacity();G(e)&&this.globalAlpha(t,e)}},e.prototype.globalAlpha=function(t,e){var r=e;r&&t.globalAlpha&&(r*=t.globalAlpha),t.globalAlpha=r},e.prototype.visible=function(){var t=this.srcElement;return!t||t&&!1!==t.options.visible},e}(Gr),No=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.renderTo=function(t){if(this.visible()){t.save(),this.setTransform(t),this.setClip(t),this.setOpacity(t);for(var e=this.childNodes,r=0;r<e.length;r++){var o=e[r];o.visible()&&o.renderTo(t)}t.restore()}},e}(nr(Ro,"childNodes")),jo=1e3/60,Fo=function(t){function e(e,r){t.call(this),this.canvas=e,this.size=r,this.ctx=e.getContext("2d");var o=this._invalidate.bind(this);this.invalidate=x((function(){p(o)}),jo)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){t.prototype.destroy.call(this),this.canvas=null,this.ctx=null},e.prototype.load=function(t,e,r){this.loadElements(t,e,r),this._invalidate()},e.prototype._rescale=function(t){var e=this.canvas,r=this.size;e.width=r.width*t,e.height=r.height*t,this.ctx.scale(t,t)},e.prototype._devicePixelRatio=function(){return"number"==typeof window.devicePixelRatio?window.devicePixelRatio:1},e.prototype._invalidate=function(t){if(this.ctx){var e=t&&t.fixedScale?1:this._devicePixelRatio();this._rescale(e),this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.renderTo(this.ctx)}},e}(nr(No,"childNodes")),Lo=function(t){function e(){t.call(this),this.shapes=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._add=function(t,e){this.shapes.push({bbox:e,shape:t}),t._quadNode=this},e.prototype.pointShapes=function(t){for(var e=this.shapes,r=e.length,o=[],n=0;n<r;n++)e[n].bbox.containsPoint(t)&&o.push(e[n].shape);return o},e.prototype.insert=function(t,e){this._add(t,e)},e.prototype.remove=function(t){for(var e=this.shapes,r=e.length,o=0;o<r;o++)if(e[o].shape===t){e.splice(o,1);break}},e}(o),Io=function(t){function e(e){t.call(this),this.children=[],this.rect=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.inBounds=function(t){var e=this.rect,r=e.bottomRight(),o=t.bottomRight(),n=e.origin.x<=t.origin.x&&e.origin.y<=t.origin.y&&o.x<=r.x&&o.y<=r.y;return n},e.prototype.pointShapes=function(e){for(var r=this.children,o=r.length,n=t.prototype.pointShapes.call(this,e),i=0;i<o;i++)I(n,r[i].pointShapes(e));return n},e.prototype.insert=function(t,e){var r=this.children,o=!1;if(this.inBounds(e)){if(this.shapes.length<4)this._add(t,e);else{r.length||this._initChildren();for(var n=0;n<r.length;n++)if(r[n].insert(t,e)){o=!0;break}o||this._add(t,e)}o=!0}return o},e.prototype._initChildren=function(){var t=this.rect,r=this.children,o=t.center(),n=t.width()/2,i=t.height()/2;r.push(new e(new It([t.origin.x,t.origin.y],[n,i])),new e(new It([o.x,t.origin.y],[n,i])),new e(new It([t.origin.x,o.y],[n,i])),new e(new It([o.x,o.y],[n,i])))},e}(Lo),zo=3e3,Bo=function(t){function e(){t.call(this),this.initRoots()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initRoots=function(){this.rootMap={},this.root=new Lo,this.rootElements=[]},e.prototype.clear=function(){for(var t=this.rootElements,e=0;e<t.length;e++)this.remove(t[e]);this.initRoots()},e.prototype.pointShape=function(t){var e=(this.rootMap[Math.floor(t.x/zo)]||{})[Math.floor(t.y/zo)],r=this.root.pointShapes(t);e&&(r=r.concat(e.pointShapes(t))),this.assignZindex(r),r.sort(Do);for(var o=0;o<r.length;o++)if(r[o].containsPoint(t))return r[o]},e.prototype.assignZindex=function(t){for(var e=0;e<t.length;e++){for(var r=t[e],o=0,n=Math.pow(1e4,75),i=[];r;)i.push(r),r=r.parent;for(;i.length;)o+=(((r=i.pop()).parent?r.parent.children:this.rootElements).indexOf(r)+1)*n,n/=1e4;t[e]._zIndex=o}},e.prototype.optionsChange=function(t){"transform"!==t.field&&"stroke.width"!==t.field||this.bboxChange(t.element)},e.prototype.geometryChange=function(t){this.bboxChange(t.element)},e.prototype.bboxChange=function(t){if("Group"===t.nodeType)for(var e=0;e<t.children.length;e++)this.bboxChange(t.children[e]);else t._quadNode&&t._quadNode.remove(t),this._insertShape(t)},e.prototype.add=function(t){var e=Array.isArray(t)?t.slice(0):[t];I(this.rootElements,e),this._insert(e)},e.prototype.childrenChange=function(t){if("remove"===t.action)for(var e=0;e<t.items.length;e++)this.remove(t.items[e]);else this._insert(Array.prototype.slice.call(t.items,0))},e.prototype._insert=function(t){for(var e;t.length>0;)(e=t.pop()).addObserver(this),"Group"===e.nodeType?I(t,e.children):this._insertShape(e)},e.prototype._insertShape=function(t){var e=t.bbox();if(e){var r=this.getSectors(e),o=r[0][0],n=r[1][0];if(this.inRoot(r))this.root.insert(t,e);else{var i=this.rootMap;i[o]||(i[o]={}),i[o][n]||(i[o][n]=new Io(new It([o*zo,n*zo],[zo,zo]))),i[o][n].insert(t,e)}}},e.prototype.remove=function(t){if(t.removeObserver(this),"Group"===t.nodeType)for(var e=t.children,r=0;r<e.length;r++)this.remove(e[r]);else t._quadNode&&(t._quadNode.remove(t),delete t._quadNode)},e.prototype.inRoot=function(t){return t[0].length>1||t[1].length>1},e.prototype.getSectors=function(t){for(var e=t.bottomRight(),r=Math.floor(e.x/zo),o=Math.floor(e.y/zo),n=[[],[]],i=Math.floor(t.origin.x/zo);i<=r;i++)n[0].push(i);for(var s=Math.floor(t.origin.y/zo);s<=o;s++)n[1].push(s);return n},e}(o);function Do(t,e){return t._zIndex<e._zIndex?1:t._zIndex>e._zIndex?-1:0}var Go=function(t){t.bind("mouseenter",this._mouseenter.bind(this)),t.bind("mouseleave",this._mouseleave.bind(this)),this.element=t.element};function qo(t,e){var r=e.segments;if(0!==r.length){var o=r[0],n=o.anchor();t.moveTo(n.x,n.y);for(var i=1;i<r.length;i++){n=(o=r[i]).anchor();var s=r[i-1].controlOut(),a=o.controlIn();s&&a?t.bezierCurveTo(s.x,s.y,a.x,a.y,n.x,n.y):t.lineTo(n.x,n.y)}e.options.closed&&t.closePath()}}Go.prototype.clear=function(){this._resetCursor()},Go.prototype.destroy=function(){this._resetCursor(),delete this.element},Go.prototype._mouseenter=function(t){var e=this._shapeCursor(t);e?(this._current||(this._defaultCursor=this._getCursor()),this._setCursor(e)):this._resetCursor()},Go.prototype._mouseleave=function(){this._resetCursor()},Go.prototype._shapeCursor=function(t){for(var e=t.element;e&&!G(e.options.cursor);)e=e.parent;if(e)return e.options.cursor},Go.prototype._getCursor=function(){if(this.element)return this.element.style.cursor},Go.prototype._setCursor=function(t){this.element&&(this.element.style.cursor=t,this._current=t)},Go.prototype._resetCursor=function(){this._current&&(this._setCursor(this._defaultCursor||""),delete this._current)};var Uo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.renderTo=function(t){t.save(),this.setTransform(t),this.setClip(t),this.setOpacity(t),t.beginPath(),this.renderPoints(t,this.srcElement),this.setLineDash(t),this.setLineCap(t),this.setLineJoin(t),this.setFill(t),this.setStroke(t),t.restore()},e.prototype.setFill=function(t){var e=this.srcElement.options.fill,r=!1;return e&&("Gradient"===e.nodeType?(this.setGradientFill(t,e),r=!0):e.nodeType===Ut?(this.setPatternFill(t,e),r=!0):tt(e.color)||(t.fillStyle=e.color,t.save(),this.globalAlpha(t,e.opacity),t.fill(),t.restore(),r=!0)),r},e.prototype.setGradientFill=function(t,e){var r,o=this.srcElement.rawBBox();if(e instanceof Cr){var n=e.start(),i=e.end();r=t.createLinearGradient(n.x,n.y,i.x,i.y)}else if(e instanceof kr){var s=e.center();r=t.createRadialGradient(s.x,s.y,0,s.x,s.y,e.radius())}!function(t,e){for(var r=0;r<e.length;r++){var o=e[r],n=j(o.color());n.a*=o.opacity(),t.addColorStop(o.offset(),n.toCssRgba())}}(r,e.stops),t.save(),e.userSpace()||t.transform(o.width(),0,0,o.height(),o.origin.x,o.origin.y),t.fillStyle=r,t.fill(),t.restore()},e.prototype.setPatternFill=function(t,e){var r=e.size(),o=document.createElement("canvas"),n=o.getContext("2d");o.width=r.getWidth(),o.height=r.getHeight(),this.childNodes.length=0,this.loadElements(e.children);for(var i=this.childNodes,s=0;s<i.length;s++){i[s].renderTo(n)}t.save(),t.fillStyle=t.createPattern(o,"repeat"),t.fill(),t.restore()},e.prototype.setStroke=function(t){var e=this.srcElement.options.stroke;if(e&&!tt(e.color)&&e.width>0)return t.strokeStyle=e.color,t.lineWidth=at(e.width,1),t.lineJoin=at(e.lineJoin,t.lineJoin),t.save(),this.globalAlpha(t,e.opacity),t.stroke(),t.restore(),!0},e.prototype.dashType=function(){var t=this.srcElement.options.stroke;if(t&&t.dashType)return t.dashType.toLowerCase()},e.prototype.setLineDash=function(t){var e=this.dashType();if(e&&e!==Gt){var r=Dt[e];t.setLineDash?t.setLineDash(r):(t.mozDash=r,t.webkitLineDash=r)}},e.prototype.setLineCap=function(t){var e=this.dashType(),r=this.srcElement.options.stroke;e&&e!==Gt?t.lineCap=qt:r&&r.lineCap&&(t.lineCap=r.lineCap)},e.prototype.setLineJoin=function(t){var e=this.srcElement.options.stroke;e&&e.lineJoin&&(t.lineJoin=e.lineJoin)},e.prototype.renderPoints=function(t,e){qo(t,e)},e}(Ro),Ho=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.renderPoints=function(t){qo(t,this.srcElement.toPath())},e}(Uo),$o=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.renderPoints=function(t){var e=this.srcElement.geometry(),r=e.center,o=e.radius;t.arc(r.x,r.y,o,0,2*Math.PI)},e}(Uo),Xo=function(t){function e(e,r){t.call(this,e),this.onLoad=this.onLoad.bind(this),this.onError=this.onError.bind(this),this.loading=D();var o=this.img=new Image,n=e.src();r&&!/^data:/i.test(n)&&(o.crossOrigin=r),n&&(o.src=n),o.complete?this.onLoad():(o.onload=this.onLoad,o.onerror=this.onError)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.renderTo=function(t){"resolved"===this.loading.state()&&(t.save(),this.setTransform(t),this.setClip(t),this.drawImage(t),t.restore())},e.prototype.optionsChange=function(e){"src"===e.field?(this.loading=D(),this.img.src=this.srcElement.src()):t.prototype.optionsChange.call(this,e)},e.prototype.onLoad=function(){this.loading.resolve(),this.invalidate()},e.prototype.onError=function(){this.loading.reject(new Error("Unable to load image '"+this.img.src+"'. Check for connectivity and verify CORS headers."))},e.prototype.drawImage=function(t){var e=this.srcElement.rect(),r=e.topLeft();t.drawImage(this.img,r.x,r.y,e.width(),e.height())},e}(Uo),Vo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.renderPoints=function(t){for(var e=this.srcElement.paths,r=0;r<e.length;r++)qo(t,e[r])},e}(Uo),Yo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.renderPoints=function(e){var r=this.srcElement.geometry(),o=r.cornerRadius,n=o[0],i=o[1];if(0===n&&0===i){var s=r.origin,a=r.size;e.rect(s.x,s.y,a.width,a.height)}else t.prototype.renderPoints.call(this,e,Qe.fromRect(r))},e}(Uo),Wo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.renderTo=function(t){var e=this.srcElement,r=e.position(),o=e.measure();t.save(),this.setTransform(t),this.setClip(t),this.setOpacity(t),t.beginPath(),t.font=e.options.font,t.textAlign="left","stroke"===e.options.paintOrder?(this.stroke(t,e,r,o),this.fill(t,e,r,o)):(this.fill(t,e,r,o),this.stroke(t,e,r,o)),t.restore()},e.prototype.stroke=function(t,e,r,o){this.setStroke(t)&&(this.setLineDash(t),t.strokeText(e.content(),r.x,r.y+o.baseline))},e.prototype.fill=function(t,e,r,o){this.setFill(t)&&t.fillText(e.content(),r.x,r.y+o.baseline)},e}(Uo);Po.Arc=Ho,Po.Circle=$o,Po.Group=No,Po.Image=Xo,Po.MultiPath=Vo,Po.Path=Uo,Po.Rect=Yo,Po.Text=Wo;var Jo,Zo,Ko=function(t){function e(e,r){t.call(this,e,r),this.element.innerHTML=this._template(this);var o=this.element.firstElementChild;o.style.width="100%",o.style.height="100%";var n=lt(e);o.width=n.width,o.height=n.height,this._rootElement=o,this._root=new Fo(o,n),this._mouseTrackHandler=this._trackMouse.bind(this),ht(this.element,{click:this._mouseTrackHandler,mousemove:this._mouseTrackHandler})}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={type:{configurable:!0}};return r.type.get=function(){return"canvas"},e.prototype.destroy=function(){t.prototype.destroy.call(this),this._root&&(this._root.destroy(),this._root=null),this._searchTree&&(this._searchTree.clear(),delete this._searchTree),this._cursor&&(this._cursor.destroy(),delete this._cursor),ft(this.element,{click:this._mouseTrackHandler,mousemove:this._mouseTrackHandler})},e.prototype.draw=function(e){t.prototype.draw.call(this,e),this._root.load([e],void 0,this.options.cors),this._searchTree&&this._searchTree.add([e])},e.prototype.clear=function(){t.prototype.clear.call(this),this._root.clear(),this._searchTree&&this._searchTree.clear(),this._cursor&&this._cursor.clear()},e.prototype.eventTarget=function(t){if(this._searchTree){var e=this._surfacePoint(t);return this._searchTree.pointShape(e)}},e.prototype.image=function(){var t=this._root,e=this._rootElement,r=[];t.traverse((function(t){t.loading&&r.push(t.loading)}));var o=D(),n=function(){t._invalidate({fixedScale:!0});try{var r=e.toDataURL();o.resolve(r)}catch(t){o.reject(t)}};return nt(r).then(n,n),o},e.prototype.suspendTracking=function(){t.prototype.suspendTracking.call(this),this._searchTree&&(this._searchTree.clear(),delete this._searchTree)},e.prototype.resumeTracking=function(){if(t.prototype.resumeTracking.call(this),!this._searchTree){this._searchTree=new Bo;for(var e=this._root.childNodes,r=[],o=0;o<e.length;o++)r.push(e[o].srcElement);this._searchTree.add(r)}},e.prototype._resize=function(){this._rootElement.width=this._size.width,this._rootElement.height=this._size.height,this._root.size=this._size,this._root.invalidate()},e.prototype._template=function(){return"<canvas></canvas>"},e.prototype._enableTracking=function(){this._searchTree=new Bo,this._cursor=new Go(this),t.prototype._enableTracking.call(this)},e.prototype._trackMouse=function(t){if(!this._suspendedTracking){var e=this.eventTarget(t);if("click"!==t.type){var r=this._currentShape;r&&r!==e&&this.trigger("mouseleave",{element:r,originalEvent:t,type:"mouseleave"}),e&&r!==e&&this.trigger("mouseenter",{element:e,originalEvent:t,type:"mouseenter"}),this.trigger("mousemove",{element:e,originalEvent:t,type:"mousemove"}),this._currentShape=e}else e&&this.trigger("click",{element:e,originalEvent:t,type:"click"})}},Object.defineProperties(e.prototype,r),e}(Ur),Qo=function(){return"undefined"!=typeof document},tn=function(t){function e(){t.call(this),this._items=[{name:"svg",type:Eo},{name:"canvas",type:Ko}]}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={support:{configurable:!0},current:{configurable:!0}};return r.support.get=function(){return Zo||(Zo={canvas:Qo()&&document.createElement("canvas").getContext,svg:Qo()&&document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}),Zo},r.current.get=function(){return Jo||(Jo=new e),Jo},e.prototype.create=function(t,e){var r=this._items,o=r[0];if(e&&e.type)for(var n=e.type.toLowerCase(),i=0;i<r.length;i++)if(r[i].name===n){o=r[i];break}if(o)return new o.type(t,e);m("Warning: Unable to create Kendo UI Drawing Surface. Possible causes:\n- The browser does not support SVG and Canvas. User agent: "+navigator.userAgent)},Object.defineProperties(e,r),e}(o),en=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={support:{configurable:!0}};return r.support.get=function(){return tn.support},e.create=function(t,e){return tn.current.create(t,e)},Object.defineProperties(e,r),e}(Ur);function rn(t){var e=new vo({skipBaseHref:!0}),r=t.clippedBBox(),o=t;if(r){var n=r.getOrigin(),i=new ir;i.transform(Bt().translate(-n.x,-n.y)),i.children.push(t),o=i}e.load([o]);var s="<?xml version='1.0' ?><svg xmlns='"+Qr+"' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1'>"+e.render()+"</svg>";return e.destroy(),s}var on=Object.freeze({__proto__:null,ArcNode:wo,CircleNode:xo,ClipNode:go,DefinitionNode:mo,GradientStopNode:po,GroupNode:So,ImageNode:Co,LinearGradientNode:lo,MultiPathNode:ko,Node:co,PathNode:bo,RadialGradientNode:fo,RectNode:To,RootNode:vo,Surface:Eo,TextNode:Ao,exportGroup:rn}),nn=Object.freeze({__proto__:null,ArcNode:Ho,CircleNode:$o,GroupNode:No,ImageNode:Xo,MultiPathNode:Vo,Node:Ro,PathNode:Uo,RectNode:Yo,RootNode:Fo,Surface:Ko,TextNode:Wo});function sn(t,e){var r={width:"800px",height:"600px",cors:"Anonymous"},o=t,n=t.clippedBBox();if(n){var i=n.getOrigin();(o=new ir).transform(Bt().translate(-i.x,-i.y)),o.children.push(t);var s=n.getSize();r.width=s.width+"px",r.height=s.height+"px"}var a=Object.assign(r,e),h=document.createElement("div"),c=h.style;c.display="none",c.width=a.width,c.height=a.height,document.body.appendChild(h);var p=new Ko(h,a);p.suspendTracking(),p.draw(o);var u=p.image(),l=function(){p.destroy(),document.body.removeChild(h)};return u.then(l,l),u}function an(t,e){var r=rn(t);return e&&e.raw||(r="data:image/svg+xml;base64,"+Z(r)),D().resolve(r)}var hn,cn=Object.freeze({__proto__:null,Animation:Br,AnimationFactory:zr,Arc:er,BaseNode:Gr,Circle:Qt,Element:Ht,Gradient:Sr,GradientStop:xr,Group:ir,HasObservers:L,Image:or,Layout:lr,LinearGradient:Cr,MultiPath:tr,OptionsStore:Et,Path:Qe,PathParser:Dr,Pattern:Nr,QuadNode:Io,RadialGradient:kr,Rect:fr,ShapesQuadTree:Bo,Surface:en,SurfaceFactory:tn,Text:rr,align:function(t,e,r){dr(t,e,r,"x","width")},canvas:nn,crosshatchPattern:function(t){void 0===t&&(t={});var e=t.gap;void 0===e&&(e=Mr);var r=t.width;void 0===r&&(r=Or);var o=t.color;void 0===o&&(o=Tr);var n=t.background,i=Math.sqrt(2)*(r+e),s={fill:null,stroke:{color:o,width:r}},a=new Nr({width:i,height:i});jr(a,n,[i,i]);var h=new Qe(s);h.moveTo(0,0).lineTo(i,i);var c=new Qe(s);return c.moveTo(i,0).lineTo(0,i),a.append(h,c),a},diagonalStripesPattern:function(t){void 0===t&&(t={});var e=t.gap;void 0===e&&(e=Mr);var r=t.width;void 0===r&&(r=Or);var o=t.color;void 0===o&&(o=Tr);var n=t.background,i=Math.sqrt(2)*(r+e),s={fill:null,stroke:{color:o,width:r,lineCap:"square"}},a=new Nr({width:i,height:i});jr(a,n,[i,i]);var h=new Qe(s);h.moveTo(0,i/2).lineTo(i/2,0);var c=new Qe(s);return c.moveTo(i/2,i).lineTo(i,i/2),a.append(h,c),a},dotsPattern:function(t){void 0===t&&(t={});var e=t.gap;void 0===e&&(e=Er);var r=t.radius;void 0===r&&(r=Ar);var o=t.color;void 0===o&&(o=Tr);var n=t.background,i={fill:{color:o},stroke:null},s=4*r+2*e,a=3*r+1.5*e,h=[s/2,r+.5*e],c=[0,a],p=[s,a],u=new Nr({width:s,height:s});return jr(u,n,[s,s]),u.append(new Qt(new Vt(h,r),i),new Qt(new Vt(c,r),i),new Qt(new Vt(p,r),i)),u},exportImage:sn,exportSVG:an,fit:function(t,e){var r=t.clippedBBox();if(r){var o=r.size,n=e.size;if(n.width<o.width||n.height<o.height){var i=Math.min(n.width/o.width,n.height/o.height),s=t.transform()||Bt();s.scale(i,i),t.transform(s)}}},gridPattern:function(t){void 0===t&&(t={});var e=t.gap;void 0===e&&(e=Rr);var r=t.size;void 0===r&&(r=Pr);var o=t.color;void 0===o&&(o=Tr);var n=t.background,i=r+e,s=e/2,a={fill:{color:o},stroke:null},h=new Nr({width:i,height:i});jr(h,n,[i,i]);var c=new fr(new It([s,s],[r,r]),a);return h.append(c),h},parsePath:We,stack:function(t){yr(gr(t),"x","y","width")},svg:on,util:Mt,vAlign:function(t,e,r){dr(t,e,r,"y","height")},vStack:function(t){yr(gr(t),"y","x","height")},vWrap:function(t,e){return mr(t,e,"y","x","height")},verticalStripesPattern:function(t){void 0===t&&(t={});var e=t.gap;void 0===e&&(e=Mr);var r=t.width;void 0===r&&(r=Or);var o=t.color;void 0===o&&(o=Tr);var n=t.background,i=r+e,s={fill:null,stroke:{color:o,width:r/2}},a=new Nr({width:i,height:i});jr(a,n,[i,i]);var h=r/4,c=i-r/4,p=new Qe(s);p.moveTo(h,0).lineTo(h,i);var u=new Qe(s);return u.moveTo(c,0).lineTo(c,i),a.append(p,u),a},wrap:function(t,e){return mr(t,e,"x","y","width")}}),pn="undefined"!=typeof Uint8Array&&b.browser&&(!b.browser.msie||b.browser.version>9),un=(hn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",{decode:function(t){for(var e=t.replace(/[^A-Za-z0-9\+\/\=]/g,""),r=0,o=e.length,n=[];r<o;){var i=hn.indexOf(e.charAt(r++)),s=hn.indexOf(e.charAt(r++)),a=hn.indexOf(e.charAt(r++)),h=hn.indexOf(e.charAt(r++)),c=i<<2|s>>>4,p=(15&s)<<4|a>>>2,u=(3&a)<<6|h;n.push(c),64!=a&&n.push(p),64!=h&&n.push(u)}return n},encode:function(t){for(var e=0,r=t.length,o="";e<r;){var n=t[e++],i=t[e++],s=t[e++],a=(3&n)<<4|i>>>4,h=(15&i)<<2|s>>>6,c=63&s;e-r==2?h=c=64:e-r==1&&(c=64),o+=hn.charAt(n>>>2)+hn.charAt(a)+hn.charAt(h)+hn.charAt(c)}return o}});function ln(t){var e=0,r=0;null==t?t=pn?new Uint8Array(256):[]:r=t.length;var o=pn?function(e){if(e>=t.length){var r=new Uint8Array(Math.max(e+256,2*t.length));r.set(t,0),t=r}}:function(){},n=pn?function(){return new Uint8Array(t.buffer,0,r)}:function(){return t},i=pn?function(n){if("string"==typeof n)return g(n);var i=n.length;o(e+i),t.set(n,e),(e+=i)>r&&(r=e)}:function(t){if("string"==typeof t)return g(t);for(var e=0;e<t.length;++e)h(t[e])},s=pn?function(e,r){if(t.buffer.slice)return new Uint8Array(t.buffer.slice(e,e+r));var o=new Uint8Array(r);return o.set(new Uint8Array(t.buffer,e,r)),o}:function(e,r){return t.slice(e,e+r)};function a(){return e<r?t[e++]:0}function h(n){o(e),t[e++]=255&n,e>r&&(r=e)}function c(){return a()<<8|a()}function p(t){h(t>>8),h(t)}function u(){return 65536*c()+c()}function l(t){p(t>>>16&65535),p(65535&t)}function f(){var t=u();return t>=2147483648?t-4294967296:t}function d(t){l(t<0?t+4294967296:t)}function y(t){return m(t,a)}function g(t){for(var e=0;e<t.length;++e)h(t.charCodeAt(e))}function m(t,e){for(var r=new Array(t),o=0;o<t;++o)r[o]=e();return r}var v={eof:function(){return e>=r},readByte:a,writeByte:h,readShort:c,writeShort:p,readLong:u,writeLong:l,readFixed:function(){return u()/65536},writeFixed:function(t){l(Math.round(65536*t))},readShort_:function(){var t=c();return t>=32768?t-65536:t},writeShort_:function(t){p(t<0?t+65536:t)},readLong_:f,writeLong_:d,readFixed_:function(){return f()/65536},writeFixed_:function(t){d(Math.round(65536*t))},read:y,write:i,readString:function(t){return String.fromCharCode.apply(String,y(t))},writeString:g,times:m,get:n,slice:s,offset:function(t){return null!=t?(e=t,v):e},skip:function(t){e+=t},toString:function(){throw new Error("FIX CALLER.  BinaryStream is no longer convertible to string!")},length:function(){return r},saveExcursion:function(t){var r=e;try{return t()}finally{e=r}},writeBase64:function(t){window.atob?g(window.atob(t)):i(un.decode(t))},base64:function(){return un.encode(n())}};return v}function fn(t){return window.atob?function(t){for(var e=window.atob(t),r=new Uint8Array(e.length),o=0;o<e.length;o++)r[o]=e.charCodeAt(o);return r}(t):function(t){for(var e=new Uint8Array(t.length),r=0;r<t.length;r++)e[r]=t[r];return e}(un.decode(t))}function dn(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function yn(t){return Object.keys(t).sort((function(t,e){return t-e})).map(parseFloat)}var gn=function(t){this.raw=t,this.scalerType=t.readLong(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort();for(var e=this.tables={},r=0;r<this.tableCount;++r){var o={tag:t.readString(4),checksum:t.readLong(),offset:t.readLong(),length:t.readLong()};e[o.tag]=o}};gn.prototype.readTable=function(t,e){var r=this.tables[t];if(!r)throw new Error("Table "+t+" not found in directory");return this[t]=r.table=new e(this,r)},gn.prototype.render=function(t){var e=Object.keys(t).length,r=Math.pow(2,Math.floor(Math.log(e)/Math.LN2)),o=16*r,n=Math.floor(Math.log(r)/Math.LN2),i=16*e-o,s=ln();s.writeLong(this.scalerType),s.writeShort(e),s.writeShort(o),s.writeShort(n),s.writeShort(i);var a=16*e,h=s.offset()+a,c=null,p=ln();for(var u in t)if(dn(t,u)){var l=t[u];for(s.writeString(u),s.writeLong(this.checksum(l)),s.writeLong(h),s.writeLong(l.length),p.write(l),"head"==u&&(c=h),h+=l.length;h%4;)p.writeByte(0),h++}s.write(p.get());var f=2981146554-this.checksum(s.get());return s.offset(c+8),s.writeLong(f),s.get()},gn.prototype.checksum=function(t){t=ln(t);for(var e=0;!t.eof();)e+=t.readLong();return 4294967295&e};var mn=function(t,e){this.definition=e,this.length=e.length,this.offset=e.offset,this.file=t,this.rawData=t.raw,this.parse(t.raw)};mn.prototype.raw=function(){return this.rawData.slice(this.offset,this.length)},mn.prototype.parse=function(){};var vn,_n,bn,wn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parse=function(t){t.offset(this.offset),this.version=t.readLong(),this.revision=t.readLong(),this.checkSumAdjustment=t.readLong(),this.magicNumber=t.readLong(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.read(8),this.modified=t.read(8),this.xMin=t.readShort_(),this.yMin=t.readShort_(),this.xMax=t.readShort_(),this.yMax=t.readShort_(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort_(),this.indexToLocFormat=t.readShort_(),this.glyphDataFormat=t.readShort_()},e.prototype.render=function(t){var e=ln();return e.writeLong(this.version),e.writeLong(this.revision),e.writeLong(0),e.writeLong(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.write(this.created),e.write(this.modified),e.writeShort_(this.xMin),e.writeShort_(this.yMin),e.writeShort_(this.xMax),e.writeShort_(this.yMax),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort_(this.fontDirectionHint),e.writeShort_(t),e.writeShort_(this.glyphDataFormat),e.get()},e}(mn),xn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parse=function(t){t.offset(this.offset);var e=this.file.head.indexToLocFormat;this.offsets=0===e?t.times(this.length/2,(function(){return 2*t.readShort()})):t.times(this.length/4,t.readLong)},e.prototype.offsetOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},e.prototype.render=function(t){for(var e=ln(),r=t[t.length-1]>65535,o=0;o<t.length;++o)r?e.writeLong(t[o]):e.writeShort(t[o]/2);return{format:r?1:0,table:e.get()}},e}(mn),Sn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parse=function(t){t.offset(this.offset),this.version=t.readLong(),this.ascent=t.readShort_(),this.descent=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.skip(8),this.metricDataFormat=t.readShort_(),this.numOfLongHorMetrics=t.readShort()},e.prototype.render=function(t){var e=ln();return e.writeLong(this.version),e.writeShort_(this.ascent),e.writeShort_(this.descent),e.writeShort_(this.lineGap),e.writeShort(this.advanceWidthMax),e.writeShort_(this.minLeftSideBearing),e.writeShort_(this.minRightSideBearing),e.writeShort_(this.xMaxExtent),e.writeShort_(this.caretSlopeRise),e.writeShort_(this.caretSlopeRun),e.writeShort_(this.caretOffset),e.write([0,0,0,0,0,0,0,0]),e.writeShort_(this.metricDataFormat),e.writeShort(t.length),e.get()},e}(mn),Cn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parse=function(t){t.offset(this.offset),this.version=t.readLong(),this.numGlyphs=t.readShort(),this.maxPoints=t.readShort(),this.maxContours=t.readShort(),this.maxComponentPoints=t.readShort(),this.maxComponentContours=t.readShort(),this.maxZones=t.readShort(),this.maxTwilightPoints=t.readShort(),this.maxStorage=t.readShort(),this.maxFunctionDefs=t.readShort(),this.maxInstructionDefs=t.readShort(),this.maxStackElements=t.readShort(),this.maxSizeOfInstructions=t.readShort(),this.maxComponentElements=t.readShort(),this.maxComponentDepth=t.readShort()},e.prototype.render=function(t){var e=ln();return e.writeLong(this.version),e.writeShort(t.length),e.writeShort(this.maxPoints),e.writeShort(this.maxContours),e.writeShort(this.maxComponentPoints),e.writeShort(this.maxComponentContours),e.writeShort(this.maxZones),e.writeShort(this.maxTwilightPoints),e.writeShort(this.maxStorage),e.writeShort(this.maxFunctionDefs),e.writeShort(this.maxInstructionDefs),e.writeShort(this.maxStackElements),e.writeShort(this.maxSizeOfInstructions),e.writeShort(this.maxComponentElements),e.writeShort(this.maxComponentDepth),e.get()},e}(mn),kn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parse=function(t){t.offset(this.offset);var e=this.file,r=e.hhea;this.metrics=t.times(r.numOfLongHorMetrics,(function(){return{advance:t.readShort(),lsb:t.readShort_()}}));var o=e.maxp.numGlyphs-e.hhea.numOfLongHorMetrics;this.leftSideBearings=t.times(o,t.readShort_)},e.prototype.forGlyph=function(t){var e=this.metrics,r=e.length;return t<r?e[t]:{advance:e[r-1].advance,lsb:this.leftSideBearings[t-r]}},e.prototype.render=function(t){for(var e=ln(),r=0;r<t.length;++r){var o=this.forGlyph(t[r]);e.writeShort(o.advance),e.writeShort_(o.lsb)}return e.get()},e}(mn),Tn=function(){var t=function(t){this.raw=t},e={compound:{configurable:!0}};e.compound.get=function(){return!1},t.prototype.render=function(){return this.raw.get()},Object.defineProperties(t.prototype,e);var r=function(t){this.raw=t;for(var e=this.glyphIds=[],r=this.idOffsets=[];;){var o=t.readShort();if(r.push(t.offset()),e.push(t.readShort()),!(32&o))break;t.skip(1&o?4:2),128&o?t.skip(8):64&o?t.skip(4):8&o&&t.skip(2)}},o={compound:{configurable:!0}};return o.compound.get=function(){return!0},r.prototype.render=function(t){for(var e=ln(this.raw.get()),r=0;r<this.glyphIds.length;++r){var o=this.glyphIds[r];e.offset(this.idOffsets[r]),e.writeShort(t[o])}return e.get()},Object.defineProperties(r.prototype,o),function(e){function o(){e.apply(this,arguments)}return e&&(o.__proto__=e),o.prototype=Object.create(e&&e.prototype),o.prototype.constructor=o,o.prototype.parse=function(){this.cache={}},o.prototype.glyphFor=function(e){var o=this.cache;if(dn(o,e))return o[e];var n=this.file.loca,i=n.lengthOf(e);if(0===i)return o[e]=null;var s=this.rawData,a=this.offset+n.offsetOf(e),h=ln(s.slice(a,i)),c=h.readShort_(),p=h.readShort_(),u=h.readShort_(),l=h.readShort_(),f=h.readShort_(),d=o[e]=c<0?new r(h):new t(h);return d.numberOfContours=c,d.xMin=p,d.yMin=u,d.xMax=l,d.yMax=f,d},o.prototype.render=function(t,e,r){for(var o=ln(),n=[],i=0;i<e.length;++i){var s=t[e[i]];o.offset()%2&&o.writeByte(0),n.push(o.offset()),s&&o.write(s.render(r))}return o.offset()%2&&o.writeByte(0),n.push(o.offset()),{table:o.get(),offsets:n}},o}(mn)}(),On=(vn=function(t,e){this.text=t,this.length=t.length,this.platformID=e.platformID,this.platformSpecificID=e.platformSpecificID,this.languageID=e.languageID,this.nameID=e.nameID},function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parse=function(t){t.offset(this.offset),t.readShort();for(var e=t.readShort(),r=this.offset+t.readShort(),o=t.times(e,(function(){return{platformID:t.readShort(),platformSpecificID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:t.readShort()+r}})),n=this.strings={},i=0;i<o.length;++i){var s=o[i];t.offset(s.offset);var a=t.readString(s.length);n[s.nameID]||(n[s.nameID]=[]),n[s.nameID].push(new vn(a,s))}this.postscriptEntry=n[6][0],this.postscriptName=this.postscriptEntry.text.replace(/[^\x20-\x7F]/g,"")},e.prototype.render=function(t){var e=this.strings,r=0;for(var o in e)dn(e,o)&&(r+=e[o].length);var n=ln(),i=ln();for(o in n.writeShort(0),n.writeShort(r),n.writeShort(6+12*r),e)if(dn(e,o))for(var s=6==o?[new vn(t,this.postscriptEntry)]:e[o],a=0;a<s.length;++a){var h=s[a];n.writeShort(h.platformID),n.writeShort(h.platformSpecificID),n.writeShort(h.languageID),n.writeShort(h.nameID),n.writeShort(h.length),n.writeShort(i.offset()),i.writeString(h.text)}return n.write(i.get()),n.get()},e}(mn)),Mn=(_n=".notdef .null nonmarkingreturn space exclam quotedbl numbersign dollar percent ampersand quotesingle parenleft parenright asterisk plus comma hyphen period slash zero one two three four five six seven eight nine colon semicolon less equal greater question at A B C D E F G H I J K L M N O P Q R S T U V W X Y Z bracketleft backslash bracketright asciicircum underscore grave a b c d e f g h i j k l m n o p q r s t u v w x y z braceleft bar braceright asciitilde Adieresis Aring Ccedilla Eacute Ntilde Odieresis Udieresis aacute agrave acircumflex adieresis atilde aring ccedilla eacute egrave ecircumflex edieresis iacute igrave icircumflex idieresis ntilde oacute ograve ocircumflex odieresis otilde uacute ugrave ucircumflex udieresis dagger degree cent sterling section bullet paragraph germandbls registered copyright trademark acute dieresis notequal AE Oslash infinity plusminus lessequal greaterequal yen mu partialdiff summation product pi integral ordfeminine ordmasculine Omega ae oslash questiondown exclamdown logicalnot radical florin approxequal Delta guillemotleft guillemotright ellipsis nonbreakingspace Agrave Atilde Otilde OE oe endash emdash quotedblleft quotedblright quoteleft quoteright divide lozenge ydieresis Ydieresis fraction currency guilsinglleft guilsinglright fi fl daggerdbl periodcentered quotesinglbase quotedblbase perthousand Acircumflex Ecircumflex Aacute Edieresis Egrave Iacute Icircumflex Idieresis Igrave Oacute Ocircumflex apple Ograve Uacute Ucircumflex Ugrave dotlessi circumflex tilde macron breve dotaccent ring cedilla hungarumlaut ogonek caron Lslash lslash Scaron scaron Zcaron zcaron brokenbar Eth eth Yacute yacute Thorn thorn minus multiply onesuperior twosuperior threesuperior onehalf onequarter threequarters franc Gbreve gbreve Idotaccent Scedilla scedilla Cacute cacute Ccaron ccaron dcroat".split(/\s+/g),function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parse=function(t){var e;switch(t.offset(this.offset),this.format=t.readLong(),this.italicAngle=t.readFixed_(),this.underlinePosition=t.readShort_(),this.underlineThickness=t.readShort_(),this.isFixedPitch=t.readLong(),this.minMemType42=t.readLong(),this.maxMemType42=t.readLong(),this.minMemType1=t.readLong(),this.maxMemType1=t.readLong(),this.format){case 65536:case 196608:break;case 131072:e=t.readShort(),this.glyphNameIndex=t.times(e,t.readShort),this.names=[];for(var r=this.offset+this.length;t.offset()<r;)this.names.push(t.readString(t.readByte()));break;case 151552:e=t.readShort(),this.offsets=t.read(e);break;case 262144:this.map=t.times(this.file.maxp.numGlyphs,t.readShort)}},e.prototype.glyphFor=function(t){switch(this.format){case 65536:return _n[t]||".notdef";case 131072:var e=this.glyphNameIndex[t];return e<_n.length?_n[e]:this.names[e-_n.length]||".notdef";case 151552:case 196608:return".notdef";case 262144:return this.map[t]||65535}},e.prototype.render=function(t){if(196608==this.format)return this.raw();var e=ln(this.rawData.slice(this.offset,32));e.writeLong(131072),e.offset(32);for(var r=[],o=[],n=0;n<t.length;++n){var i=t[n],s=this.glyphFor(i),a=_n.indexOf(s);a>=0?r.push(a):(r.push(_n.length+o.length),o.push(s))}for(e.writeShort(t.length),n=0;n<r.length;++n)e.writeShort(r[n]);for(n=0;n<o.length;++n)e.writeByte(o[n].length),e.writeString(o[n]);return e.get()},e}(mn)),An=(bn=function(t,e,r){var o=this;o.platformID=t.readShort(),o.platformSpecificID=t.readShort(),o.offset=e+t.readLong(),t.saveExcursion((function(){var e;switch(t.offset(o.offset),o.format=t.readShort(),o.format){case 0:o.length=t.readShort(),o.language=t.readShort();for(var n=0;n<256;++n)r[n]=t.readByte();break;case 4:o.length=t.readShort(),o.language=t.readShort();var i=t.readShort()/2;t.skip(6);var s=t.times(i,t.readShort);t.skip(2);var a=t.times(i,t.readShort),h=t.times(i,t.readShort_),c=t.times(i,t.readShort),p=(o.length+o.offset-t.offset())/2,u=t.times(p,t.readShort);for(n=0;n<i;++n){var l=a[n],f=s[n];for(e=l;e<=f;++e){var d;0===c[n]?d=e+h[n]:0!==(d=u[c[n]/2-(i-n)+(e-l)]||0)&&(d+=h[n]),r[e]=65535&d}}break;case 6:o.length=t.readShort(),o.language=t.readShort(),e=t.readShort();for(var y=t.readShort();y-- >0;)r[e++]=t.readShort();break;case 12:t.readShort(),o.length=t.readLong(),o.language=t.readLong();for(var g=t.readLong();g-- >0;){e=t.readLong();for(var m=t.readLong(),v=t.readLong();e<=m;)r[e++]=v++}break;default:window.console&&window.console.error("Unhandled CMAP format: "+o.format)}}))},function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parse=function(t){var e=this,r=e.offset;t.offset(r),e.codeMap={},e.version=t.readShort();var o=t.readShort();e.tables=t.times(o,(function(){return new bn(t,r,e.codeMap)}))},e.render=function(t,e){var r=ln();return r.writeShort(0),r.writeShort(1),r.write(function(t,e){var r=yn(t),o=[],n=[],i=null,s=null;function a(r){return e[t[r]]}for(var h=0;h<r.length;++h){var c=r[h],p=a(c)-c;null!=i&&p===s||(i&&n.push(i),o.push(c),s=p),i=c}i&&n.push(i),n.push(65535),o.push(65535);var u=o.length,l=2*u,f=2*Math.pow(2,Math.floor(Math.log(u)/Math.LN2)),d=Math.log(f/2)/Math.LN2,y=l-f,g=[],m=[],v=[];for(h=0;h<u;++h){var _=o[h],b=n[h];if(65535==_){g.push(0),m.push(0);break}var w=a(_);if(_-w>=32768){g.push(0),m.push(2*(v.length+u-h));for(var x=_;x<=b;++x)v.push(a(x))}else g.push(w-_),m.push(0)}var S=ln();return S.writeShort(3),S.writeShort(1),S.writeLong(12),S.writeShort(4),S.writeShort(16+8*u+2*v.length),S.writeShort(0),S.writeShort(l),S.writeShort(f),S.writeShort(d),S.writeShort(y),n.forEach(S.writeShort),S.writeShort(0),o.forEach(S.writeShort),g.forEach(S.writeShort_),m.forEach(S.writeShort),v.forEach(S.writeShort),S.get()}(t,e)),r.get()},e}(mn)),En=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parse=function(t){t.offset(this.offset),this.version=t.readShort(),this.averageCharWidth=t.readShort_(),this.weightClass=t.readShort(),this.widthClass=t.readShort(),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=t.times(10,t.readByte),this.charRange=t.times(4,t.readLong),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort_(),this.descent=t.readShort_(),this.lineGap=t.readShort_(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=t.times(2,t.readLong),this.version>1&&(this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()))},e.prototype.render=function(){return this.raw()},e}(mn),Pn=1e5;var Rn=function(t){this.font=t,this.subset={},this.unicodes={},this.ogid2ngid={0:0},this.ngid2ogid={0:0},this.ncid2ogid={},this.next=this.firstChar=1,this.nextGid=1,this.psName=function(){for(var t="",e=String(Pn),r=0;r<e.length;++r)t+=String.fromCharCode(e.charCodeAt(r)-48+65);return++Pn,t}()+"+"+this.font.psName};Rn.prototype.use=function(t){var e=this;if("string"==typeof t)return function(t){for(var e,r,o=[],n=0,i=t.length;n<i;)(e=t.charCodeAt(n++))>=55296&&e<=56319&&n<i?56320==(64512&(r=t.charCodeAt(n++)))?o.push(((1023&e)<<10)+(1023&r)+65536):(o.push(e),n--):o.push(e);return o}(t).reduce((function(t,r){return t+String.fromCharCode(e.use(r))}),"");var r=e.unicodes[t];if(!r){r=e.next++,e.subset[r]=t,e.unicodes[t]=r;var o=e.font.cmap.codeMap[t];if(o&&(e.ncid2ogid[r]=o,null==e.ogid2ngid[o])){var n=e.nextGid++;e.ogid2ngid[o]=n,e.ngid2ogid[n]=o}}return r},Rn.prototype.encodeText=function(t){return this.use(t)},Rn.prototype.glyphIds=function(){return yn(this.ogid2ngid)},Rn.prototype.glyphsFor=function(t,e){e||(e={});for(var r=0;r<t.length;++r){var o=t[r];if(!e[o]){var n=e[o]=this.font.glyf.glyphFor(o);n&&n.compound&&this.glyphsFor(n.glyphIds,e)}}return e},Rn.prototype.render=function(){var t=this,e=this.glyphsFor(this.glyphIds());for(var r in e)if(dn(e,r)&&(r=parseInt(r,10),null==t.ogid2ngid[r])){var o=t.nextGid++;t.ogid2ngid[r]=o,t.ngid2ogid[o]=r}var n=yn(this.ngid2ogid).map((function(t){return this.ngid2ogid[t]}),this),i=this.font,s=i.glyf.render(e,n,this.ogid2ngid),a=i.loca.render(s.offsets);this.lastChar=this.next-1;var h={cmap:An.render(this.ncid2ogid,this.ogid2ngid),glyf:s.table,loca:a.table,hmtx:i.hmtx.render(n),hhea:i.hhea.render(n),maxp:i.maxp.render(n),post:i.post.render(n),name:i.name.render(this.psName),head:i.head.render(a.format),"OS/2":i.os2.render()};return this.font.directory.render(h)},Rn.prototype.cidToGidMap=function(){for(var t=ln(),e=0,r=this.firstChar;r<this.next;++r){for(;e<r;)t.writeShort(0),e++;var o=this.ncid2ogid[r];if(o){var n=this.ogid2ngid[o];t.writeShort(n)}else t.writeShort(0);e++}return t.get()};var Nn=function(t,e){var r=this,o=r.contents=ln(t);if("ttcf"==o.readString(4)){var n,i=function(){o.offset(n),r.parse()};if(!e)throw new Error("Must specify a name for TTC files");o.readLong();for(var s=o.readLong(),a=0;a<s;++a)if(n=o.readLong(),o.saveExcursion(i),r.psName==e)return;throw new Error("Font "+e+" not found in collection")}o.offset(0),r.parse()};Nn.prototype.parse=function(){var t=this.directory=new gn(this.contents);this.head=t.readTable("head",wn),this.loca=t.readTable("loca",xn),this.hhea=t.readTable("hhea",Sn),this.maxp=t.readTable("maxp",Cn),this.hmtx=t.readTable("hmtx",kn),this.glyf=t.readTable("glyf",Tn),this.name=t.readTable("name",On),this.post=t.readTable("post",Mn),this.cmap=t.readTable("cmap",An),this.os2=t.readTable("OS/2",En),this.psName=this.name.postscriptName,this.ascent=this.os2.ascent||this.hhea.ascent,this.descent=this.os2.descent||this.hhea.descent,this.lineGap=this.os2.lineGap||this.hhea.lineGap,this.scale=1e3/this.head.unitsPerEm},Nn.prototype.widthOfGlyph=function(t){return this.hmtx.forGlyph(t).advance*this.scale},Nn.prototype.makeSubset=function(){return new Rn(this)};var jn=r.d;var Fn=b.browser,Ln="\n",In=0,zn=0,Bn={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],executive:[521.86,756],folio:[612,936],legal:[612,1008],letter:[612,792],tabloid:[792,1224]};function Dn(){var t=0,e=ln();function r(){for(var t=arguments,o=0;o<arguments.length;++o){var n=t[o];if(void 0===n)throw new Error("Cannot output undefined to PDF");if(n instanceof ii)n.beforeRender(r),n.render(r);else if(Kn(n))Qn(n,r);else if(n instanceof Date)ti(n,r);else if("number"==typeof n){if(isNaN(n))throw new Error("Cannot output NaN to PDF");var i=n.toFixed(7);i.indexOf(".")>=0&&(i=i.replace(/\.?0+$/,"")),"-0"==i&&(i="0"),e.writeString(i)}else/string|boolean/.test(typeof n)?e.writeString(String(n)):"function"==typeof n.get?e.write(n.get()):"object"==typeof n&&(n?r(new pi(n)):e.writeString("null"))}}return r.writeData=function(t){e.write(t)},r.withIndent=function(e){++t,e(r),--t},r.indent=function(){r(Ln,Wn("",2*t,"  ")),r.apply(null,arguments)},r.offset=function(){return e.offset()},r.toString=function(){throw new Error("FIX CALLER")},r.get=function(){return e.get()},r.stream=function(){return e},r}function Gn(t){if("function"!=typeof t){var e=t;t=function(t,r){return t in e?e[t]:r}}var r=t("paperSize",Bn.a4);if(!r)return{};if("string"==typeof r&&null==(r=Bn[r.toLowerCase()]))throw new Error("Unknown paper size");r[0]=ni(r[0]),r[1]=ni(r[1]),t("landscape",!1)&&(r=[Math.max(r[0],r[1]),Math.min(r[0],r[1])]);var o=t("margin");return o&&(o="string"==typeof o||"number"==typeof o?{left:o=ni(o,0),top:o,right:o,bottom:o}:{left:ni(o.left,0),top:ni(o.top,0),right:ni(o.right,0),bottom:ni(o.bottom,0)},t("addMargin")&&(r[0]+=o.left+o.right,r[1]+=o.top+o.bottom)),{paperSize:r,margin:o}}var qn={"Times-Roman":!0,"Times-Bold":!0,"Times-Italic":!0,"Times-BoldItalic":!0,Helvetica:!0,"Helvetica-Bold":!0,"Helvetica-Oblique":!0,"Helvetica-BoldOblique":!0,Courier:!0,"Courier-Bold":!0,"Courier-Oblique":!0,"Courier-BoldOblique":!0,Symbol:!0,ZapfDingbats:!0};var Un={};function Hn(){Un={}}var $n,Xn=($n=function(t,e){var r=qn[t];r?e(r):function(t,e){var r;if(Fn.msie&&(r=/^data:.*?;base64,/i.exec(t)))e(fn(t.substr(r[0].length)));else{var o=new XMLHttpRequest;o.open("GET",t,!0),pn&&(o.responseType="arraybuffer"),o.onload=function(){200==o.status||304==o.status?e(pn?new Uint8Array(o.response):new window.VBArray(o.responseBody).toArray()):n()},o.onerror=n,o.send(null)}function n(){window.console&&(window.console.error?window.console.error("Cannot load URL: %s",t):window.console.log("Cannot load URL: %s",t)),e(null)}}(t,(function(r){if(null==r)throw new Error("Cannot load font from "+t);var o=new Nn(r);qn[t]=o,e(o)}))},function(t,e){var r=t.length,o=r;if(0===r)return e();function n(){0==--r&&e()}for(;o-- >0;)$n(t[o],n)}),Vn=function(t,e,r){r=Object.assign({jpegQuality:.92,keepPNG:!1},r);var o=Object.keys(t),n=o.length;if(0===n)return e();function i(){0==--n&&e()}o.forEach((function(e){!function(t,e,r,o){var n,i,s=Un[t];if(s)r(s);else if(s=new Image,/^data:/i.test(t)||(s.crossOrigin="Anonymous"),pn&&!/^data:/i.test(t)){var a=new XMLHttpRequest;a.onload=function(){if(i=a.response,Fn.mozilla&&"image/svg+xml"==i.type){var t=new FileReader;t.onload=function(){var t=(new window.DOMParser).parseFromString(this.result,"image/svg+xml").documentElement;t.getAttribute("width")&&t.getAttribute("height")?h(n=URL.createObjectURL(i)):(t.setAttribute("width",e.width),t.setAttribute("height",e.height),h("data:image/svg+xml;base64,"+Z((new window.XMLSerializer).serializeToString(t))))},t.readAsText(i)}else h(n=URL.createObjectURL(i))},a.onerror=p,a.open("GET",t,!0),a.responseType="blob",a.send()}else h(t);function h(t){s.src=t,s.complete&&!Fn.msie?u.call(s):(s.onload=u,s.onerror=p)}function c(){e||(e={width:s.width,height:s.height});var i=document.createElement("canvas");i.width=e.width,i.height=e.height;var a,h=i.getContext("2d");h.drawImage(s,0,0,e.width,e.height);try{a=h.getImageData(0,0,e.width,e.height)}catch(t){return void p()}finally{n&&URL.revokeObjectURL(n)}for(var c=!1,u=ln(),l=ln(),f=a.data,d=0;d<f.length;){u.writeByte(f[d++]),u.writeByte(f[d++]),u.writeByte(f[d++]);var y=f[d++];y<255&&(c=!0),l.writeByte(y)}if(c||o.keepPNG)s=new gi(e.width,e.height,u,l);else{var g=i.toDataURL("image/jpeg",o.jpegQuality);g=g.substr(g.indexOf(";base64,")+8);var m=ln();m.writeBase64(g),s=new yi(m)}r(Un[t]=s)}function p(){r(Un[t]="ERROR")}function u(){if(e){var o=i&&"image/svg+xml"===i.type||/^data:image\/svg\+xml;/i.test(this.src.substring(0,19)),a=e.width>=s.width||e.height>=s.height;!o&&a&&(e=null)}if(!e&&i&&/^image\/jpe?g$/i.test(i.type)){var h=new FileReader;h.onload=function(){try{var e=new yi(ln(new Uint8Array(this.result)));URL.revokeObjectURL(n),r(Un[t]=e)}catch(t){c()}},h.readAsArrayBuffer(i)}else c()}}(e,t[e],i,r)}))},Yn=function(t){var e=this,r=Dn(),o=0,n=[];function i(e,r){return t&&null!=t[e]?t[e]:r}e.getOption=i,e.attach=function(t){return n.indexOf(t)<0&&(!function(t,e){var r=t.beforeRender,o=t.render;t.beforeRender=function(){},t.render=function(t){t(e," 0 R")},t.renderFull=function(n){t._offset=n.offset(),n(e," 0 obj "),r.call(t,n),o.call(t,n),n(" endobj")}}(t,++o),n.push(t)),t},e.pages=[],e.FONTS={},e.PATTERNS={},e.IMAGES={},e.GRAD_COL_FUNCTIONS={},e.GRAD_OPC_FUNCTIONS={},e.GRAD_COL={},e.GRAD_OPC={};var s=e.attach(new li),a=e.attach(new fi);if(i("autoPrint")){var h={};h.JavaScript=new pi({Names:[new si("JS"),e.attach(new pi({S:ci("JavaScript"),JS:new si("print(true);")}))]}),s.props.Names=new pi(h)}s.setPages(a);var c=e.attach(new pi({Producer:new si(i("producer","Kendo UI PDF Generator"),!0),Title:new si(i("title",""),!0),Author:new si(i("author",""),!0),Subject:new si(i("subject",""),!0),Keywords:new si(i("keywords",""),!0),Creator:new si(i("creator","Kendo UI PDF Generator"),!0),CreationDate:i("date",new Date)}));e.addPage=function(t){var r=Gn((function(e,r){return t&&null!=t[e]?t[e]:r})),o=r.paperSize,n=r.margin,i=o[0],s=o[1];n&&(i-=n.left+n.right,s-=n.top+n.bottom);var h=new ui(Dn(),null,!0),c={Contents:e.attach(h),Parent:a,MediaBox:[0,0,o[0],o[1]]},p=new ki(e,c);return p._content=h,a.addPage(e.attach(p)),p.transform(1,0,0,-1,0,o[1]),n&&(p.translate(n.left,n.top),p.rect(0,0,i,s),p.clip()),e.pages.push(p),p},e.render=function(){var t;for(r("%PDF-1.4",Ln,"%ÂÁÚÏÎ",Ln,Ln),t=0;t<n.length;++t)n[t].renderFull(r),r(Ln,Ln);var e=r.offset();for(r("xref",Ln,0," ",n.length+1,Ln),r("0000000000 65535 f ",Ln),t=0;t<n.length;++t)r(Jn(n[t]._offset,10)," 00000 n ",Ln);return r(Ln),r("trailer",Ln),r(new pi({Size:n.length+1,Root:s,Info:c}),Ln,Ln),r("startxref",Ln,e,Ln),r("%%EOF",Ln),r.stream().offset(0)},e.loadFonts=Xn,e.loadImages=Vn};function Wn(t,e,r){for(;t.length<e;)t=r+t;return t}function Jn(t,e){return Wn(String(t),e,"0")}function Zn(t,e){return Object.prototype.hasOwnProperty.call(t,e)}Yn.prototype.getFont=function(t){var e=this.FONTS[t];if(!e){if(!(e=qn[t]))throw new Error("Font "+t+" has not been loaded");e=!0===e?this.attach(new vi(t)):this.attach(new _i(this,e)),this.FONTS[t]=e}return e},Yn.prototype.getPattern=function(t,e,r){var o=this.PATTERNS[t.id];return o||(o=this.attach(new mi(t,e,r)),this.PATTERNS[t.id]=o),o},Yn.prototype.getImage=function(t){var e=this.IMAGES[t];if(!e){if(!(e=Un[t]))throw new Error("Image "+t+" has not been loaded");if("ERROR"===e)return null;e=this.IMAGES[t]=this.attach(e.asStream(this))}return e},Yn.prototype.getOpacityGS=function(t,e){var r=parseFloat(t).toFixed(3);t=parseFloat(r),r+=e?"S":"F";var o=this._opacityGSCache||(this._opacityGSCache={}),n=o[r];if(!n){var i={Type:ci("ExtGState")};e?i.CA=t:i.ca=t,(n=this.attach(new pi(i)))._resourceName=ci("GS"+ ++In),o[r]=n}return n},Yn.prototype.dict=function(t){return new pi(t)},Yn.prototype.name=function(t){return ci(t)},Yn.prototype.stream=function(t,e){return new ui(e,t)};var Kn=Array.isArray||function(t){return t instanceof Array};function Qn(t,e){e("["),t.length>0&&e.withIndent((function(){for(var r=0;r<t.length;++r)r>0&&r%8==0?e.indent(t[r]):e(" ",t[r])})),e(" ]")}function ti(t,e){e("(D:",Jn(t.getUTCFullYear(),4),Jn(t.getUTCMonth()+1,2),Jn(t.getUTCDate(),2),Jn(t.getUTCHours(),2),Jn(t.getUTCMinutes(),2),Jn(t.getUTCSeconds(),2),"Z)")}function ei(t){return t*(72/25.4)}function ri(t){return ei(10*t)}function oi(t){return 72*t}function ni(t,e){if("number"==typeof t)return t;var r;if("string"==typeof t&&(r=/^\s*([0-9.]+)\s*(mm|cm|in|pt)\s*$/.exec(t))){var o=parseFloat(r[1]);if(!isNaN(o))return"pt"==r[2]?o:{mm:ei,cm:ri,in:oi}[r[2]](o)}if(null!=e)return e;throw new Error("Can't parse unit: "+t)}var ii=function(){};ii.prototype.beforeRender=function(){};var si=function(t){function e(e,r){t.call(this),this.value=e,this.utf16be=Boolean(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(t){var e=this.value;if(this.utf16be)e="þÿ"+function(t){for(var e="",r=0;r<t.length;r++){var o=t.charCodeAt(r);if(o<65535)e+=W(o);else{var n=56320+(o-65536&1023);e+=W(55296+(o-65536>>10)),e+=W(n)}}return e}(e),t("(",e=e.replace(/([\(\)\\])/g,"\\$1"),")");else{for(var r=[40],o=0;o<e.length;++o){var n=255&e.charCodeAt(o);40!=n&&41!=n&&92!=n||r.push(92),r.push(n)}r.push(41),t.writeData(r)}},e.prototype.toString=function(){return this.value},e}(ii),ai=function(t){function e(e){t.call(this,e),this.value=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(t){t("<");for(var e=0;e<this.value.length;++e)t(Jn(this.value.charCodeAt(e).toString(16),4));t(">")},e}(si),hi=function(t){function e(e){t.call(this),this.name=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.get=function(t){return ci(t)},e.prototype.render=function(t){t("/"+this.escape())},e.prototype.escape=function(){return this.name.replace(/[^\x21-\x7E]/g,(function(t){return"#"+Jn(t.charCodeAt(0).toString(16),2)}))},e.prototype.toString=function(){return this.name},e}(ii);function ci(t){return new hi(t)}var pi=function(t){function e(e){t.call(this),this.props=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(t){var e=this.props,r=!0;t("<<"),t.withIndent((function(){for(var o in e)Zn(e,o)&&!/^_/.test(o)&&(r=!1,t.indent(ci(o)," ",e[o]))})),r||t.indent(),t(">>")},e}(ii),ui=function(t){function e(e,r,o){if(t.call(this),"string"==typeof e){var n=ln();n.write(e),e=n}this.data=e,this.props=r||{},this.compress=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(t){var e=this.data.get(),r=this.props;this.compress&&(r.Filter?r.Filter instanceof Array||(r.Filter=[r.Filter]):r.Filter=[],r.Filter.unshift(ci("FlateDecode")),e=jn(e)),r.Length=e.length,t(new pi(r)," stream",Ln),t.writeData(e),t(Ln,"endstream")},e}(ii),li=function(t){function e(){t.call(this,{Type:ci("Catalog")})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setPages=function(t){this.props.Pages=t},e}(pi),fi=function(t){function e(){t.call(this,{Type:ci("Pages"),Kids:[],Count:0})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addPage=function(t){this.props.Kids.push(t),this.props.Count++},e}(pi),di=[192,193,194,195,197,198,199,201,202,203,205,206,207],yi=function(t){var e,r,o,n;if(t.offset(0),65496!=t.readShort())throw new Error("Invalid JPEG image");for(;!t.eof();){if(255!=t.readByte())throw new Error("Invalid JPEG image");var i=t.readByte(),s=t.readShort();if(di.indexOf(i)>=0){n=t.readByte(),r=t.readShort(),e=t.readShort(),o=t.readByte();break}t.skip(s-2)}if(null==o)throw new Error("Invalid JPEG image");var a={Type:ci("XObject"),Subtype:ci("Image"),Width:e,Height:r,BitsPerComponent:n,Filter:ci("DCTDecode")};switch(o){case 1:a.ColorSpace=ci("DeviceGray");break;case 3:a.ColorSpace=ci("DeviceRGB");break;case 4:a.ColorSpace=ci("DeviceCMYK"),a.Decode=[1,0,1,0,1,0,1,0]}this.asStream=function(){t.offset(0);var e=new ui(t,a);return e._resourceName=ci("I"+ ++In),e}},gi=function(t,e,r,o){this.asStream=function(n){var i=new ui(o,{Type:ci("XObject"),Subtype:ci("Image"),Width:t,Height:e,BitsPerComponent:8,ColorSpace:ci("DeviceGray")},!0),s=new ui(r,{Type:ci("XObject"),Subtype:ci("Image"),Width:t,Height:e,BitsPerComponent:8,ColorSpace:ci("DeviceRGB"),SMask:n.attach(i)},!0);return s._resourceName=ci("I"+ ++In),s}},mi=function(t){function e(e,r,o){var n=e.size(),i=n.width,s=n.height,a=new ki(r._pdf,{});a._content=new ui(Dn(),null,!0),o(e,a,{}),r._xResources=Object.assign(r._xResources,a._xResources),r._fontResources=Object.assign(r._fontResources,a._fontResources),r._gsResources=Object.assign(r._gsResources,a._gsResources),t.call(this,{Type:ci("Pattern"),PatternType:1,PaintType:1,TilingType:1,BBox:[0,0,i,s],XStep:i,YStep:s,Matrix:[1,0,0,-1,0,s],Resources:{ExtGState:new t(a._gsResources),XObject:new t(a._xResources),Font:new t(a._fontResources)}}),this._resourceName=ci("P"+ ++zn),this.data=a._content.data,this.compress=!0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(t){ui.prototype.render.call(this,t)},e}(pi),vi=function(t){function e(e){t.call(this,{Type:ci("Font"),Subtype:ci("Type1"),BaseFont:ci(e)}),this._resourceName=ci("F"+ ++In)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.encodeText=function(t){return new si(String(t))},e}(pi),_i=function(t){function e(e,r,o){t.call(this,{}),(o=this.props).Type=ci("Font"),o.Subtype=ci("Type0"),o.Encoding=ci("Identity-H"),this._pdf=e,this._font=r,this._sub=r.makeSubset(),this._resourceName=ci("F"+ ++In);var n=r.head;this.name=r.psName;var i=this.scale=r.scale;this.bbox=[n.xMin*i,n.yMin*i,n.xMax*i,n.yMax*i],this.italicAngle=r.post.italicAngle,this.ascent=r.ascent*i,this.descent=r.descent*i,this.lineGap=r.lineGap*i,this.capHeight=r.os2.capHeight||this.ascent,this.xHeight=r.os2.xHeight||0,this.stemV=0,this.familyClass=(r.os2.familyClass||0)>>8,this.isSerif=this.familyClass>=1&&this.familyClass<=7,this.isScript=10==this.familyClass,this.flags=(r.post.isFixedPitch?1:0)|(this.isSerif?2:0)|(this.isScript?8:0)|(0!==this.italicAngle?64:0)|32}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.encodeText=function(t){return new ai(this._sub.encodeText(String(t)))},e.prototype.getTextWidth=function(t,e){for(var r=0,o=this._font.cmap.codeMap,n=0;n<e.length;++n){var i=o[e.charCodeAt(n)];r+=this._font.widthOfGlyph(i||0)}return r*t/1e3},e.prototype.beforeRender=function(){var e=this,r=e._sub,o=r.render(),n=new ui(ln(o),{Length1:o.length},!0),i=e._pdf.attach(new t({Type:ci("FontDescriptor"),FontName:ci(e._sub.psName),FontBBox:e.bbox,Flags:e.flags,StemV:e.stemV,ItalicAngle:e.italicAngle,Ascent:e.ascent,Descent:e.descent,CapHeight:e.capHeight,XHeight:e.xHeight,FontFile2:e._pdf.attach(n)})),s=r.ncid2ogid,a=r.firstChar,h=r.lastChar,c=[];!function t(r,o){if(r<=h){var n=s[r];null==n?t(r+1):(o||c.push(r,o=[]),o.push(e._font.widthOfGlyph(n)),t(r+1,o))}}(a);var p=new t({Type:ci("Font"),Subtype:ci("CIDFontType2"),BaseFont:ci(e._sub.psName),CIDSystemInfo:new t({Registry:new si("Adobe"),Ordering:new si("Identity"),Supplement:0}),FontDescriptor:i,FirstChar:a,LastChar:h,DW:Math.round(e._font.widthOfGlyph(0)),W:c,CIDToGIDMap:e._pdf.attach(e._makeCidToGidMap())}),u=e.props;u.BaseFont=ci(e._sub.psName),u.DescendantFonts=[e._pdf.attach(p)];var l=new bi(a,h,r.subset),f=new ui(Dn(),null,!0);f.data(l),u.ToUnicode=e._pdf.attach(f)},e.prototype._makeCidToGidMap=function(){return new ui(ln(this._sub.cidToGidMap()),null,!0)},e}(pi),bi=function(t){function e(e,r,o){t.call(this),this.firstChar=e,this.lastChar=r,this.map=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(t){t.indent("/CIDInit /ProcSet findresource begin"),t.indent("12 dict begin"),t.indent("begincmap"),t.indent("/CIDSystemInfo <<"),t.indent("  /Registry (Adobe)"),t.indent("  /Ordering (UCS)"),t.indent("  /Supplement 0"),t.indent(">> def"),t.indent("/CMapName /Adobe-Identity-UCS def"),t.indent("/CMapType 2 def"),t.indent("1 begincodespacerange"),t.indent("  <0000><ffff>"),t.indent("endcodespacerange");var e=this;t.indent(e.lastChar-e.firstChar+1," beginbfchar"),t.withIndent((function(){for(var r=e.firstChar;r<=e.lastChar;++r){var o=e.map[r],n=[o].map((function(t){var e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e+=String.fromCharCode(t)})).join("");t.indent("<",Jn(r.toString(16),4),">","<");for(var i=0;i<n.length;++i)t(Jn(n.charCodeAt(i).toString(16),4));t(">")}})),t.indent("endbfchar"),t.indent("endcmap"),t.indent("CMapName currentdict /CMap defineresource pop"),t.indent("end"),t.indent("end")},e}(ii);function wi(t){return t.map((function(t){return Kn(t)?wi(t):"number"==typeof t?(Math.round(1e3*t)/1e3).toFixed(3):t})).join(" ")}function xi(t,e,r,o,n,i,s){var a=wi([e,r,o,n,i,s]),h=t.GRAD_COL_FUNCTIONS[a];return h||(h=t.GRAD_COL_FUNCTIONS[a]=t.attach(new pi({FunctionType:2,Domain:[0,1],Range:[0,1,0,1,0,1],N:1,C0:[e,r,o],C1:[n,i,s]}))),h}function Si(t,e,r){var o=wi([e,r]),n=t.GRAD_OPC_FUNCTIONS[o];return n||(n=t.GRAD_OPC_FUNCTIONS[o]=t.attach(new pi({FunctionType:2,Domain:[0,1],Range:[0,1],N:1,C0:[e],C1:[r]}))),n}function Ci(t,e,r){var o="radial"==e.type,n=function(t,e){var r,o,n,i,s,a=!1,h=[],c=[],p=[],u=[];for(r=1;r<e.length;++r)o=e[r-1],n=e[r],i=o.color,s=n.color,c.push(xi(t,i.r,i.g,i.b,s.r,s.g,s.b)),(i.a<1||s.a<1)&&(a=!0),p.push(n.offset),u.push(0,1);if(a)for(r=1;r<e.length;++r)o=e[r-1],n=e[r],i=o.color,s=n.color,h.push(Si(t,i.a,s.a));return p.pop(),{hasAlpha:a,colors:l(c),opacities:a?l(h):null};function l(t){return 1==t.length?t[0]:{FunctionType:3,Functions:t,Domain:[0,1],Bounds:p,Encode:u}}}(t,e.stops),i=o?[e.start.x,e.start.y,e.start.r,e.end.x,e.end.y,e.end.r]:[e.start.x,e.start.y,e.end.x,e.end.y],s=function(t,e,r,o,n,i){var s,a;if(!i){var h=[e].concat(o);r.forEach((function(t){h.push(t.offset,t.color.r,t.color.g,t.color.b)})),a=wi(h),s=t.GRAD_COL[a]}return s||(s=new pi({Type:ci("Shading"),ShadingType:e?3:2,ColorSpace:ci("DeviceRGB"),Coords:o,Domain:[0,1],Function:n,Extend:[!0,!0]}),t.attach(s),s._resourceName="S"+ ++In,a&&(t.GRAD_COL[a]=s)),s}(t,o,e.stops,i,n.colors,e.userSpace&&r),a=n.hasAlpha?function(t,e,r,o,n,i){var s,a;if(!i){var h=[e].concat(o);r.forEach((function(t){h.push(t.offset,t.color.a)})),a=wi(h),s=t.GRAD_OPC[a]}return s||(s=new pi({Type:ci("ExtGState"),AIS:!1,CA:1,ca:1,SMask:{Type:ci("Mask"),S:ci("Luminosity"),G:t.attach(new ui("/a0 gs /s0 sh",{Type:ci("XObject"),Subtype:ci("Form"),FormType:1,BBox:i?[i.left,i.top+i.height,i.left+i.width,i.top]:[0,1,1,0],Group:{Type:ci("Group"),S:ci("Transparency"),CS:ci("DeviceGray"),I:!0},Resources:{ExtGState:{a0:{CA:1,ca:1}},Shading:{s0:{ColorSpace:ci("DeviceGray"),Coords:o,Domain:[0,1],ShadingType:e?3:2,Function:n,Extend:[!0,!0]}}}}))}}),t.attach(s),s._resourceName="O"+ ++In,a&&(t.GRAD_OPC[a]=s)),s}(t,o,e.stops,i,n.opacities,e.userSpace&&r):null;return{hasAlpha:n.hasAlpha,shading:s,opacity:a}}var ki=function(t){function e(e,r){t.call(this,r),this._pdf=e,this._rcount=0,this._textMode=!1,this._fontResources={},this._gsResources={},this._xResources={},this._patResources={},this._shResources={},this._opacity=1,this._matrix=[1,0,0,1,0,0],this._annotations=[],this._font=null,this._fontSize=null,this._contextStack=[],(r=this.props).Type=ci("Page"),r.ProcSet=[ci("PDF"),ci("Text"),ci("ImageB"),ci("ImageC"),ci("ImageI")],r.Resources=new t({Font:new t(this._fontResources),ExtGState:new t(this._gsResources),XObject:new t(this._xResources),Pattern:new t(this._patResources),Shading:new t(this._shResources)}),r.Annots=this._annotations}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._out=function(){this._content.data.apply(null,arguments)},e.prototype.transform=function(t,e,r,o,n,i){var s;(1!==(s=arguments)[0]||0!==s[1]||0!==s[2]||1!==s[3]||0!==s[4]||0!==s[5])&&(this._matrix=function(t,e){var r=t[0],o=t[1],n=t[2],i=t[3],s=t[4],a=t[5],h=e[0],c=e[1],p=e[2],u=e[3],l=e[4],f=e[5];return[r*h+o*p,r*c+o*u,n*h+i*p,n*c+i*u,s*h+a*p+l,s*c+a*u+f]}(arguments,this._matrix),this._out(t," ",e," ",r," ",o," ",n," ",i," cm"),this._out(Ln))},e.prototype.translate=function(t,e){this.transform(1,0,0,1,t,e)},e.prototype.scale=function(t,e){this.transform(t,0,0,e,0,0)},e.prototype.rotate=function(t){var e=Math.cos(t),r=Math.sin(t);this.transform(e,r,-r,e,0,0)},e.prototype.beginText=function(){this._textMode=!0,this._out("BT",Ln)},e.prototype.endText=function(){this._textMode=!1,this._out("ET",Ln)},e.prototype._requireTextMode=function(){if(!this._textMode)throw new Error("Text mode required; call page.beginText() first")},e.prototype._requireFont=function(){if(!this._font)throw new Error("No font selected; call page.setFont() first")},e.prototype.setFont=function(t,e){this._requireTextMode(),null==t?t=this._font:t instanceof _i||(t=this._pdf.getFont(t)),null==e&&(e=this._fontSize),this._fontResources[t._resourceName]=t,this._font=t,this._fontSize=e,this._out(t._resourceName," ",e," Tf",Ln)},e.prototype.setTextLeading=function(t){this._requireTextMode(),this._out(t," TL",Ln)},e.prototype.setTextRenderingMode=function(t){this._requireTextMode(),this._out(t," Tr",Ln)},e.prototype.showText=function(t,e){if(this._requireFont(),t.length>1&&e&&this._font instanceof _i){var r=e/this._font.getTextWidth(this._fontSize,t)*100;this._out(r," Tz ")}this._out(this._font.encodeText(t)," Tj",Ln)},e.prototype.showTextNL=function(t){this._requireFont(),this._out(this._font.encodeText(t)," '",Ln)},e.prototype.addLink=function(e,r){var o=this._toPage({x:r.left,y:r.bottom}),n=this._toPage({x:r.right,y:r.top});this._annotations.push(new t({Type:ci("Annot"),Subtype:ci("Link"),Rect:[o.x,o.y,n.x,n.y],Border:[0,0,0],A:new t({Type:ci("Action"),S:ci("URI"),URI:new si(e)})}))},e.prototype.setStrokeColor=function(t,e,r){this._out(t," ",e," ",r," RG",Ln)},e.prototype.setOpacity=function(t){this.setFillOpacity(t),this.setStrokeOpacity(t),this._opacity*=t},e.prototype.setStrokeOpacity=function(t){if(t<1){var e=this._pdf.getOpacityGS(this._opacity*t,!0);this._gsResources[e._resourceName]=e,this._out(e._resourceName," gs",Ln)}},e.prototype.setFillColor=function(t,e,r){this._out(t," ",e," ",r," rg",Ln)},e.prototype.pattern=function(t,e,r){var o=this._pdf.getPattern(t,this,r);this._patResources[o._resourceName]=o,this._out("/Pattern cs",Ln),this._out(o._resourceName," scn",Ln),this.rect(e.left,e.top,e.width,e.height),this.fill()},e.prototype.setFillOpacity=function(t){if(t<1){var e=this._pdf.getOpacityGS(this._opacity*t,!1);this._gsResources[e._resourceName]=e,this._out(e._resourceName," gs",Ln)}},e.prototype.gradient=function(t,e){this.save(),this.rect(e.left,e.top,e.width,e.height),this.clip(),t.userSpace||this.transform(e.width,0,0,e.height,e.left,e.top);var r,o=Ci(this._pdf,t,e),n=o.shading._resourceName;this._shResources[n]=o.shading,o.hasAlpha&&(r=o.opacity._resourceName,this._gsResources[r]=o.opacity,this._out("/"+r+" gs ")),this._out("/"+n+" sh",Ln),this.restore()},e.prototype.setDashPattern=function(t,e){this._out(t," ",e," d",Ln)},e.prototype.setLineWidth=function(t){this._out(t," w",Ln)},e.prototype.setLineCap=function(t){this._out(t," J",Ln)},e.prototype.setLineJoin=function(t){this._out(t," j",Ln)},e.prototype.setMitterLimit=function(t){this._out(t," M",Ln)},e.prototype.save=function(){this._contextStack.push(this._context()),this._out("q",Ln)},e.prototype.restore=function(){this._out("Q",Ln),this._context(this._contextStack.pop())},e.prototype.moveTo=function(t,e){this._out(t," ",e," m",Ln)},e.prototype.lineTo=function(t,e){this._out(t," ",e," l",Ln)},e.prototype.bezier=function(t,e,r,o,n,i){this._out(t," ",e," ",r," ",o," ",n," ",i," c",Ln)},e.prototype.bezier1=function(t,e,r,o){this._out(t," ",e," ",r," ",o," y",Ln)},e.prototype.bezier2=function(t,e,r,o){this._out(t," ",e," ",r," ",o," v",Ln)},e.prototype.close=function(){this._out("h",Ln)},e.prototype.rect=function(t,e,r,o){this._out(t," ",e," ",r," ",o," re",Ln)},e.prototype.ellipse=function(t,e,r,o){function n(e){return t+e}function i(t){return e+t}var s=.5522847498307936;this.moveTo(n(0),i(o)),this.bezier(n(r*s),i(o),n(r),i(o*s),n(r),i(0)),this.bezier(n(r),i(-o*s),n(r*s),i(-o),n(0),i(-o)),this.bezier(n(-r*s),i(-o),n(-r),i(-o*s),n(-r),i(0)),this.bezier(n(-r),i(o*s),n(-r*s),i(o),n(0),i(o))},e.prototype.circle=function(t,e,r){this.ellipse(t,e,r,r)},e.prototype.stroke=function(){this._out("S",Ln)},e.prototype.nop=function(){this._out("n",Ln)},e.prototype.clip=function(){this._out("W n",Ln)},e.prototype.clipStroke=function(){this._out("W S",Ln)},e.prototype.closeStroke=function(){this._out("s",Ln)},e.prototype.fill=function(){this._out("f",Ln)},e.prototype.fillStroke=function(){this._out("B",Ln)},e.prototype.drawImage=function(t){var e=this._pdf.getImage(t);e&&(this._xResources[e._resourceName]=e,this._out(e._resourceName," Do",Ln))},e.prototype.comment=function(t){var e=this;t.split(/\r?\n/g).forEach((function(t){e._out("% ",t,Ln)}))},e.prototype._context=function(t){if(null==t)return{opacity:this._opacity,matrix:this._matrix};this._opacity=t.opacity,this._matrix=t.matrix},e.prototype._toPage=function(t){var e=this._matrix,r=e[0],o=e[1],n=e[2],i=e[3],s=e[4],a=e[5];return{x:r*t.x+n*t.y+s,y:o*t.x+i*t.y+a}},e}(pi);function Ti(t){return t.replace(/^\s*(['"])(.*)\1\s*$/,"$2")}function Oi(t){var e=/^\s*((normal|italic)\s+)?((normal|small-caps)\s+)?((normal|bold|\d+)\s+)?(([0-9.]+)(px|pt))(\/(([0-9.]+)(px|pt)|normal))?\s+(.*?)\s*$/i.exec(t);if(!e)return{fontSize:12,fontFamily:"sans-serif"};var r=e[8]?parseInt(e[8],10):12;return{italic:e[2]&&"italic"==e[2].toLowerCase(),variant:e[4],bold:e[6]&&/bold|700/i.test(e[6]),fontSize:r,lineHeight:e[12]?"normal"==e[12]?r:parseInt(e[12],10):null,fontFamily:e[14].split(/\s*,\s*/g).map(Ti)}}function Mi(t){function e(e){return t.bold&&(e+="|bold"),t.italic&&(e+="|italic"),e.toLowerCase()}var r,o,n=t.fontFamily;if(n instanceof Array)for(var i=0;i<n.length&&(r=e(n[i]),!(o=Ai[r]));++i);else o=Ai[n.toLowerCase()];for(;"function"==typeof o;)o=o();return o||(o="Times-Roman"),o}var Ai={serif:"Times-Roman","serif|bold":"Times-Bold","serif|italic":"Times-Italic","serif|bold|italic":"Times-BoldItalic","sans-serif":"Helvetica","sans-serif|bold":"Helvetica-Bold","sans-serif|italic":"Helvetica-Oblique","sans-serif|bold|italic":"Helvetica-BoldOblique",monospace:"Courier","monospace|bold":"Courier-Bold","monospace|italic":"Courier-Oblique","monospace|bold|italic":"Courier-BoldOblique",zapfdingbats:"ZapfDingbats","zapfdingbats|bold":"ZapfDingbats","zapfdingbats|italic":"ZapfDingbats","zapfdingbats|bold|italic":"ZapfDingbats"};function Ei(t,e){t=t.toLowerCase(),Ai[t]=function(){return Ai[e]},Ai[t+"|bold"]=function(){return Ai[e+"|bold"]},Ai[t+"|italic"]=function(){return Ai[e+"|italic"]},Ai[t+"|bold|italic"]=function(){return Ai[e+"|bold|italic"]}}function Pi(t,e){if(1==arguments.length)for(var r in t)Zn(t,r)&&Pi(r,t[r]);else switch(t=t.toLowerCase(),Ai[t]=e,t){case"dejavu sans":Ai["sans-serif"]=e;break;case"dejavu sans|bold":Ai["sans-serif|bold"]=e;break;case"dejavu sans|italic":Ai["sans-serif|italic"]=e;break;case"dejavu sans|bold|italic":Ai["sans-serif|bold|italic"]=e;break;case"dejavu serif":Ai.serif=e;break;case"dejavu serif|bold":Ai["serif|bold"]=e;break;case"dejavu serif|italic":Ai["serif|italic"]=e;break;case"dejavu serif|bold|italic":Ai["serif|bold|italic"]=e;break;case"dejavu mono":Ai.monospace=e;break;case"dejavu mono|bold":Ai["monospace|bold"]=e;break;case"dejavu mono|italic":Ai["monospace|italic"]=e;break;case"dejavu mono|bold|italic":Ai["monospace|bold|italic"]=e}}Ei("Times New Roman","serif"),Ei("Courier New","monospace"),Ei("Arial","sans-serif"),Ei("Helvetica","sans-serif"),Ei("Verdana","sans-serif"),Ei("Tahoma","sans-serif"),Ei("Georgia","sans-serif"),Ei("Monaco","monospace"),Ei("Andale Mono","monospace");var Ri={fill:0,stroke:1,fillAndStroke:2,invisible:3,fillAndClip:4,strokeAndClip:5,fillStrokeClip:6,clip:7},Ni=Ri,ji={dash:[4],dashDot:[4,2,1,2],dot:[1,2],longDash:[8,2],longDashDot:[8,2,1,2],longDashDotDot:[8,2,1,2,1,2],solid:[]},Fi={butt:0,round:1,square:2},Li={miter:0,round:1,bevel:2};function Ii(t,e){var r=[],o={},n=t.options;function i(t,e,r){return r||(r=n),r.pdf&&null!=r.pdf[t]?r.pdf[t]:e}var s=i("multiPage"),a=i("imgDPI",300);Hn();var h={Image:function(t){var e=t.src(),r=t.bbox().size;if(a){var n=o[e];r={width:Math.ceil(r.width*a/72),height:Math.ceil(r.height*a/72)},n&&(r.width=Math.max(n.width,r.width),r.height=Math.max(n.height,r.height))}o[e]=r},Text:function(t){var e=Mi(Oi(t.options.font));r.indexOf(e)<0&&r.push(e)}};function c(){if(!(--p>0)){var r=new Yn({producer:i("producer"),title:i("title"),author:i("author"),subject:i("subject"),keywords:i("keywords"),creator:i("creator"),date:i("date"),autoPrint:i("autoPrint")});s?t.children.forEach(o):o(t),e(r.render(),r)}function o(t){var e=t.options,o=function(t){var e,r=!1,o=yt.unit(),n=null;do{e=!1,t=p(t)}while(t&&e);return{root:t,bbox:n};function i(t){return e=!0,t}function s(t){return t.visible()&&t.opacity()>0&&(qi(t.fill())||qi(t.stroke()))}function a(t){for(var e=[],r=0;r<t.length;++r){var o=p(t[r]);null!=o&&e.push(o)}return e}function h(t,e){var n=r,i=o;t.transform()&&(o=o.multiplyCopy(t.transform().matrix()));var s=t.clip();s&&"function"==typeof s.bbox&&(s=s.bbox())&&(s=s.bbox(o),r=r?It.intersect(r,s):s);try{return e()}finally{r=n,o=i}}function c(t){if(null==r)return!1;var e=t.rawBBox();return e&&(e=e.bbox(o)),r&&e&&(e=It.intersect(e,r)),e}function p(e){return h(e,(function(){if(!(e instanceof ir||e instanceof tr)){var r=c(e);if(!r)return i(null);n=n?It.union(n,r):r}return Di({Path:function(t){return 0!==t.segments.length&&s(t)?t:i(null)},MultiPath:function(t){if(!s(t))return i(null);var e=new tr(t.options);return e.paths=a(t.paths),0===e.paths.length?i(null):e},Circle:function(t){return s(t)?t:i(null)},Arc:function(t){return s(t)?t:i(null)},Text:function(t){return/\S/.test(t.content())&&s(t)?t:i(null)},Image:function(t){return t.visible()&&t.opacity()>0?t:i(null)},Group:function(e){if(!(e.visible()&&e.opacity()>0))return i(null);var r=new ir(e.options);return r.children=a(e.children),r._pdfLink=e._pdfLink,e===t||0!==r.children.length||e._pdfLink?r:i(null)},Rect:function(t){return s(t)?t:i(null)}},e)}))}}(t),n=o.bbox;t=o.root;var s=i("paperSize",i("paperSize","auto"),e),a=!1;if("auto"==s)if(n){var h=n.getSize();s=[h.width,h.height],a=!0;var c=n.getOrigin();(o=new ir).transform(new yt(1,0,0,1,-c.x,-c.y)),o.append(t),t=o}else s="A4";Gi(t,r.addPage({paperSize:s,margin:i("margin",i("margin"),e),addMargin:a,landscape:i("landscape",i("landscape",!1),e)}),r)}}t.traverse((function(t){Di(h,t);var e=t.fill&&t.fill();e instanceof Nr&&e.traverse((function(t){Di(h,t)}))}));var p=2;Xn(r,c),Vn(o,c,{jpegQuality:i("jpegQuality",.92),keepPNG:i("keepPNG",!1)})}function zi(t,e){Ii(t,(function(t){e("data:application/pdf;base64,"+t.base64())}))}function Bi(t,e){Ii(t,(function(t){e(new window.Blob([t.get()],{type:"application/pdf"}))}))}function Di(t,e){var r=t[e.nodeType];return r?r.call.apply(r,arguments):e}function Gi(t,e,r){t.options._pdfDebug&&e.comment("BEGIN: "+t.options._pdfDebug);var o=t.transform(),n=t.opacity();if(e.save(),null!=n&&n<1&&e.setOpacity(n),function(t,e){var r=t.stroke&&t.stroke();if(!r)return;var o=r.color;if(o){if(null==(o=rs(o)))return;e.setStrokeColor(o.r,o.g,o.b),1!=o.a&&e.setStrokeOpacity(o.a)}var n=r.width;if(null!=n){if(0===n)return;e.setLineWidth(n)}var i=r.dashType;i&&e.setDashPattern(ji[i],0);var s=r.lineCap;s&&e.setLineCap(Fi[s]);var a=r.lineJoin;a&&e.setLineJoin(Li[a]);var h=r.opacity;null!=h&&e.setStrokeOpacity(h)}(t,e),function(t,e){var r=t.fill&&t.fill();if(!r)return;if(r instanceof Sr||r instanceof Nr)return;var o=r.color;if(o){if(null==(o=rs(o)))return;e.setFillColor(o.r,o.g,o.b),1!=o.a&&e.setFillOpacity(o.a)}var n=r.opacity;null!=n&&e.setFillOpacity(n)}(t,e),o){var i=o.matrix();e.transform(i.a,i.b,i.c,i.d,i.e,i.f)}!function(t,e,r){var o=t.clip();o&&(Xi(o,e,r),e.clip())}(t,e,r),Di({Path:Vi,MultiPath:Yi,Circle:Wi,Arc:Ji,Text:Zi,Image:ts,Group:Qi,Rect:es},t,e,r),e.restore(),t.options._pdfDebug&&e.comment("END: "+t.options._pdfDebug)}function qi(t){return t&&(t instanceof Sr||t instanceof Nr||t.color&&!/^(none|transparent)$/i.test(t.color)&&(null==t.width||t.width>0)&&(null==t.opacity||t.opacity>0))}function Ui(t,e,r,o){var n=t.fill();if(n instanceof Sr){o?e.clipStroke():e.clip();var i,s,a=n instanceof kr;a?(i={x:n.center().x,y:n.center().y,r:0},s={x:n.center().x,y:n.center().y,r:n.radius()}):(i={x:n.start().x,y:n.start().y},s={x:n.end().x,y:n.end().y});var h=n.stops.elements().map((function(t){var e=t.offset();e=/%$/.test(e)?parseFloat(e)/100:parseFloat(e);var r=rs(t.color());return r.a*=t.opacity(),{offset:e,color:r}}));h.unshift(h[0]),h.push(h[h.length-1]);var c={userSpace:n.userSpace(),type:a?"radial":"linear",start:i,end:s,stops:h},p=t.rawBBox(),u=p.topLeft(),l=p.getSize();return p={left:u.x,top:u.y,width:l.width,height:l.height},e.gradient(c,p),!0}}function Hi(t,e,r,o){var n=t.fill();if(n instanceof Nr){o?e.clipStroke():e.clip();var i=t.rawBBox(),s=i.topLeft(),a=i.getSize(),h=t.stroke()?t.stroke().width:0;return e.pattern(n,{left:s.x+h/2,top:s.y+h/2,width:a.width-h,height:a.height-h},Ki),!0}}function $i(t,e,r){qi(t.fill())&&qi(t.stroke())?Ui(t,e,0,!0)||Hi(t,e,0,!0)||e.fillStroke():qi(t.fill())?Ui(t,e,0,!1)||Hi(t,e,0,!1)||e.fill():qi(t.stroke())?e.stroke():e.nop()}function Xi(t,e,r){var o=t.segments;if(0!==o.length&&!function(t,e){var r=t.segments;if(4==r.length&&t.options.closed){for(var o=[],n=0;n<r.length;++n){if(r[n].controlIn())return!1;o[n]=r[n].anchor()}if(o[0].y==o[1].y&&o[1].x==o[2].x&&o[2].y==o[3].y&&o[3].x==o[0].x||o[0].x==o[1].x&&o[1].y==o[2].y&&o[2].x==o[3].x&&o[3].y==o[0].y)return e.rect(o[0].x,o[0].y,o[2].x-o[0].x,o[2].y-o[0].y),!0}}(t,e)){for(var n,i=0;i<o.length;++i){var s=o[i],a=s.anchor();if(n){var h=n.controlOut(),c=s.controlIn();h&&c?e.bezier(h.x,h.y,c.x,c.y,a.x,a.y):e.lineTo(a.x,a.y)}else e.moveTo(a.x,a.y);n=s}t.options.closed&&e.close()}}function Vi(t,e,r){Xi(t,e),$i(t,e)}function Yi(t,e,r){for(var o=t.paths,n=0;n<o.length;++n)Xi(o[n],e);$i(t,e)}function Wi(t,e,r){var o=t.geometry();e.circle(o.center.x,o.center.y,o.radius),$i(t,e)}function Ji(t,e,r){var o=t.geometry().curvePoints();e.moveTo(o[0].x,o[0].y);for(var n=1;n<o.length;)e.bezier(o[n].x,o[n++].y,o[n].x,o[n++].y,o[n].x,o[n++].y);$i(t,e)}function Zi(t,e){var r,o=Oi(t.options.font),n=t._position;e.transform(1,0,0,-1,n.x,n.y+o.fontSize);var i=function(r){e.beginText(),e.setFont(Mi(o),o.fontSize),e.setTextRenderingMode(r),e.showText(t.content(),t._pdfRect?t._pdfRect.width():null)};t.fill()&&t.stroke()?(r=Ni.fillAndStroke,"stroke"===t.options.paintOrder&&(i(Ni.stroke),r=Ni.fill)):t.fill()?r=Ni.fill:t.stroke()&&(r=Ni.stroke),i(r),e.endText()}function Ki(t,e,r){for(var o=t.children,n=0;n<o.length;++n)Gi(o[n],e,r)}function Qi(t,e,r){t._pdfLink&&e.addLink(t._pdfLink.url,t._pdfLink);for(var o=t.children,n=0;n<o.length;++n)Gi(o[n],e,r)}function ts(t,e){var r=t.src();if(r){var o=t.rect(),n=o.getOrigin(),i=o.getSize();e.transform(i.width,0,0,-i.height,n.x,n.y+i.height),e.drawImage(r)}}function es(t,e,r){var o=t.geometry(),n=o.cornerRadius,i=n[0],s=n[1];0===i&&0===s?(e.rect(o.origin.x,o.origin.y,o.size.width,o.size.height),$i(t,e)):Vi(Qe.fromRect(o,t.options),e)}function rs(t){var e=j(t,!0);return e?e.toRGB():null}function os(t,e){var r=D();for(var o in e)"margin"==o&&t.options.pdf&&t.options.pdf._ignoreMargin||t.options.set("pdf."+o,e[o]);return zi(t,r.resolve),r}var ns=Object.freeze({__proto__:null,BinaryStream:ln,Document:Yn,TEXT_RENDERING_MODE:Ri,clearImageCache:Hn,defineFont:Pi,exportPDF:os,exportPDFToBlob:function(t,e){var r=D();for(var o in e)"margin"==o&&t.options.pdf&&t.options.pdf._ignoreMargin||t.options.set("pdf."+o,e[o]);return window.Blob&&!b.browser.safari?Bi(t,r.resolve):zi(t,r.resolve),r},getFontURL:Mi,getPaperOptions:Gn,loadFonts:Xn,loadImages:Vn,parseFontDef:Oi,render:Ii,saveAs:function(t,e,r,o){window.Blob&&!b.browser.safari?Bi(t,(function(t){v({dataURI:t,fileName:e}),o&&o(t)})):zi(t,(function(t){v({dataURI:t,fileName:e,proxyURL:r}),o&&o(t)}))},toBlob:Bi,toDataURL:zi}),is=b.browser||{};function ss(t){return Array.prototype.slice.call(t)}var as="KENDO-PSEUDO-ELEMENT",hs="data-kendo-bullet-type",cs={},ps={};ps._root=ps;var us=!!("undefined"!=typeof window)&&(is.msie||is.edge),ls=function(t){function e(e,r,o){t.call(this,e,r.getOrigin(),o),this._pdfRect=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.rect=function(){return this._pdfRect},e.prototype.rawBBox=function(){return this._pdfRect},e}(rr);function fs(t,e){Object.keys(e).forEach((function(r){t.style[r]=e[r]}))}var ds,ys="undefined"!=typeof Element&&Element.prototype&&((ds=Element.prototype).matches?function(t,e){return t.matches(e)}:ds.webkitMatchesSelector?function(t,e){return t.webkitMatchesSelector(e)}:ds.mozMatchesSelector?function(t,e){return t.mozMatchesSelector(e)}:ds.msMatchesSelector?function(t,e){return t.msMatchesSelector(e)}:function(t){return-1!==[].indexOf.call(document.querySelectorAll(t),this)});function gs(t,e){if(t.closest)return t.closest(e);for(;t&&!/^\[object (?:HTML)?Document\]$/.test(String(t));){if(1==t.nodeType&&ys(t,e))return t;t=t.parentNode}}var ms,vs=(ms="undefined"!=typeof window&&window.kendo&&window.kendo.jQuery)?function t(e){var r=e.cloneNode(!1);if(1==e.nodeType){var o,n=ms(e),i=ms(r),s=n.data();for(o in s)i.data(o,s[o]);for(/^canvas$/i.test(e.tagName)?r.getContext("2d").drawImage(e,0,0):/^(?:input|select|textarea|option)$/i.test(e.tagName)&&(r.removeAttribute("id"),r.removeAttribute("name"),/^textarea$/i.test(e.tagName)||(r.value=e.value),r.checked=e.checked,r.selected=e.selected),e._kendoExportVisual&&(r._kendoExportVisual=e._kendoExportVisual),o=e.firstChild;o;o=o.nextSibling)r.appendChild(t(o))}return r}:function(t){var e=function t(e){var r=e.cloneNode(!1);e._kendoExportVisual&&(r._kendoExportVisual=e._kendoExportVisual);for(var o=e.firstChild;o;o=o.nextSibling)r.appendChild(t(o));return r}(t),r=t.querySelectorAll("canvas");r.length&&ss(e.querySelectorAll("canvas")).forEach((function(t,e){t.getContext("2d").drawImage(r[e],0,0)}));var o=t.querySelectorAll("input, select, textarea, option");return ss(e.querySelectorAll("input, select, textarea, option")).forEach((function(t,e){t.removeAttribute("id"),t.removeAttribute("name"),/^textarea$/i.test(t.tagName)||(t.value=o[e].value),t.checked=o[e].checked,t.selected=o[e].selected})),e};var _s,bs=function(){var t=/^((-webkit-|-moz-|-o-|-ms-)?linear-gradient\s*)\(/,e=/^([-0-9.]+%)/,r=/^([-0-9.]+px)/,o=/^(left|right|top|bottom|to|center)\W/,n=/^([-0-9.]+(deg|grad|rad|turn)|0)/,i=/^(\s+)/,s=/^(\()/,a=/^(\))/,h=/^(,)/,c=/^(url)\(/,p=/^(.*?)\)/,u={},l={};function f(l){var f,d=l;if(ks(u,d))return u[d];function y(t){!function(){var t=i.exec(l);t&&(l=l.substr(t[1].length))}();var e=t.exec(l);if(e)return l=l.substr(e[1].length),e[1]}function g(){var t,o,n=j(l,!0);if(n){var i=/^#[0-9a-f]+/i.exec(l)||/^rgba?\(.*?\)/i.exec(l)||/^..*?\b/.exec(l);return l=l.substr(i[0].length),n=n.toRGB(),(t=y(r))||(o=y(e)),{color:n,length:t,percent:o}}}return(f=y(t))?f=function(t){var r,i,c,p=[],u=!1;if(y(s)){if("0"==(r=y(n))&&(r="0deg"),r?(r=function(t){var e=parseFloat(t);return/grad$/.test(t)?Math.PI*e/200:/rad$/.test(t)?e:/turn$/.test(t)?Math.PI*e*2:/deg$/.test(t)?Math.PI*e/180:void 0}(r),y(h)):("to"==(i=y(o))?i=y(o):i&&/^-/.test(t)&&(u=!0),c=y(o),y(h)),/-moz-/.test(t)&&null==r&&null==i){var f=y(e),d=y(e);u=!0,"0%"==f?i="left":"100%"==f&&(i="right"),"0%"==d?c="top":"100%"==d&&(c="bottom"),y(h)}for(;l&&!y(a);){var m=g();if(!m)break;p.push(m),y(h)}return{type:"linear",angle:r,to:i&&c?i+" "+c:i||c||null,stops:p,reverse:u}}}(f):(f=y(c))&&(f=function(){if(y(s)){var t=y(p);return t=t.replace(/^['"]+|["']+$/g,""),y(a),{type:"url",url:t}}}()),u[d]=f||{type:"none"}}return function(t){return ks(l,t)?l[t]:l[t]=ws(t).map(f)}}(),ws=(_s={},function(t,e){e||(e=/^\s*,\s*/);var r=t+e;if(ks(_s,r))return _s[r];var o,n=[],i=0,s=0,a=0,h=!1;function c(e){return o=e.exec(t.substr(s))}function p(t){return t.replace(/^\s+|\s+$/g,"")}for(;s<t.length;)!h&&c(/^[\(\[\{]/)?(a++,s++):!h&&c(/^[\)\]\}]/)?(a--,s++):!h&&c(/^[\"\']/)?(h=o[0],s++):"'"==h&&c(/^\\\'/)||'"'==h&&c(/^\\\"/)?s+=2:"'"==h&&c(/^\'/)||'"'==h&&c(/^\"/)?(h=!1,s++):c(e)?(!h&&!a&&s>i&&(n.push(p(t.substring(i,s))),i=s+o[0].length),s+=o[0].length):s++;return i<s&&n.push(p(t.substring(i,s))),_s[r]=n}),xs=function(t){return function(e){var r,o=t[e];o||((r=/url\((['"]?)([^'")]*?)\1\)\s+format\((['"]?)truetype\3\)/.exec(e))||(r=/url\((['"]?)([^'")]*?\.ttf)\1\)/.exec(e)))&&(o=t[e]=r[2]);return o}}(Object.create(null)),Ss=function(t){return function(e){var r=t[e];return null==r&&(r=t[e]=Ot("Mapq",{font:e}).height),r}}(Object.create(null));function Cs(t){null==t&&(t=document);for(var e={},r=0;r<t.styleSheets.length;++r)o(t.styleSheets[r]);return e;function o(t){if(t){var e=null;try{e=t.cssRules}catch(t){}e&&function(t,e){for(var r=0;r<e.length;++r){var s=e[r];switch(s.type){case 3:o(s.styleSheet);break;case 5:var a=s.style,h=ws(zs(a,"font-family")),c=/^([56789]00|bold)$/i.test(zs(a,"font-weight")),p="italic"==zs(a,"font-style"),u=n(s);u.length>0&&i(t,h,c,p,u[0])}}}(t,e)}}function n(t){var e=zs(t.style,"src");if(e)return ws(e).reduce((function(t,e){var r=xs(e);return r&&t.push(r),t}),[]);var r=xs(t.cssText);return r?[r]:[]}function i(t,r,o,n,i){/^data:/i.test(i)||/^[^\/:]+:\/\//.test(i)||/^\//.test(i)||(i=String(t.href).replace(/[^\/]*$/,"")+i),r.forEach((function(t){t=t.replace(/^(['"]?)(.*?)\1$/,"$2"),o&&(t+="|bold"),n&&(t+="|italic"),e[t]=i}))}}function ks(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Ts(t,e){var r=ps;for(t="_counter_"+t;r&&!ks(r,t);)r=Object.getPrototypeOf(r);r||(r=ps._root),r[t]=(r[t]||0)+(null==e?1:e)}function Os(t,e){ps[t="_counter_"+t]=null==e?0:e}function Ms(t,e,r){for(var o=0;o<t.length;){var n=t[o++],i=parseFloat(t[o]);isNaN(i)?e(n,r):(e(n,i),++o)}}function As(t){var e=zs(t,"counter-reset");e&&Ms(ws(e,/^\s+/),Os,0);var r=zs(t,"counter-increment");r&&Ms(ws(r,/^\s+/),Ts,1)}function Es(t,e){var r=j(t,!0);return r&&(r=r.toRGB(),e?r=r.toCssRgba():0===r.a&&(r=null)),r}function Ps(t,e){var r=0,o=!1;function n(){!o&&--r<=0&&(e(),o=!0)}t.forEach((function(t){for(var e=t.querySelectorAll("img"),o=0;o<e.length;++o){var i=e[o];i.complete||(r++,i.onload=i.onerror=n)}})),r||n()}function Rs(t,e){var r=[];function o(t){cs[t]||(cs[t]=!0,r.push(t))}t.forEach((function t(e){/^img$/i.test(e.tagName)&&o(e.src),bs(zs(Is(e),"background-image")).forEach((function(t){"url"==t.type&&o(t.url)})),e.children&&ss(e.children).forEach(t)}));var n=r.length;function i(){--n<=0&&Ps(t,e)}0===n&&i(),r.forEach((function(t){var e=cs[t]=new window.Image;/^data:/i.test(t)||(e.crossOrigin="Anonymous"),e.src=t,e.complete?i():(e.onload=i,e.onerror=function(){cs[t]=null,i()})}))}function Ns(t){var e="";do{var r=t%26;e=String.fromCharCode(97+r)+e,t=Math.floor(t/26)}while(t>0);return e}function js(t,e,r){(ps=Object.create(ps))[t.tagName.toLowerCase()]={element:t,style:e};var o=zs(e,"text-decoration");if(o&&"none"!=o){var n=zs(e,"text-decoration-color");o.split(/\s+/g).forEach((function(t){if(!ps[t]&&(ps[t]=n,"underline"==t)){var r=zs(e,"text-underline-offset");"auto"!=r&&(ps["underline-offset"]=parseFloat(r))}}))}(function(t){function e(e){return zs(t,e)}if("none"!=e("transform")||"static"!=e("position")||"auto"!=e("z-index")||e("opacity")<1)return!0})(e)&&(ps._stackingContext={element:t,group:r})}function Fs(){ps=Object.getPrototypeOf(ps)}function Ls(t){if(null!=ps._clipbox){var e=t.bbox(ps._matrix);ps._clipbox?ps._clipbox=It.intersect(ps._clipbox,e):ps._clipbox=e}}function Is(t,e){return window.getComputedStyle(t,e||null)}function zs(t,e,r){var o=t.getPropertyValue(e);return null!=o&&""!==o||(is.webkit?o=t.getPropertyValue("-webkit-"+e):is.mozilla?o=t.getPropertyValue("-moz-"+e):is.opera?o=t.getPropertyValue("-o-"+e):us&&(o=t.getPropertyValue("-ms-"+e))),arguments.length>2&&(null==o||""===o)?r:o}function Bs(t,e,r,o){t.setProperty(e,r,o),is.webkit?t.setProperty("-webkit-"+e,r,o):is.mozilla?t.setProperty("-moz-"+e,r,o):is.opera?t.setProperty("-o-"+e,r,o):us&&(t.setProperty("-ms-"+e,r,o),t[e="ms"+e.replace(/(^|-)([a-z])/g,(function(t,e,r){return e+r.toUpperCase()}))]=r)}function Ds(t,e){return e="border-"+e,{width:parseFloat(zs(t,e+"-width")),style:zs(t,e+"-style"),color:Es(zs(t,e+"-color"),!0)}}function Gs(t,e){var r=t.style.cssText,o=e();return Yr(t,r),o}function qs(t,e){var r=zs(t,"border-"+e+"-radius").split(/\s+/g).map(parseFloat);return 1==r.length&&r.push(r[0]),Ws({x:r[0],y:r[1]})}function Us(t){var e=t.getBoundingClientRect();return e=Hs(e,"border-*-width",t),e=Hs(e,"padding-*",t)}function Hs(t,e,r){var o,n,i,s,a;return"string"==typeof e?(o=Is(r),n=parseFloat(zs(o,e.replace("*","top"))),i=parseFloat(zs(o,e.replace("*","right"))),s=parseFloat(zs(o,e.replace("*","bottom"))),a=parseFloat(zs(o,e.replace("*","left")))):"number"==typeof e&&(n=i=s=a=e),{top:t.top+n,right:t.right-i,bottom:t.bottom-s,left:t.left+a,width:t.right-t.left-i-a,height:t.bottom-t.top-s-n}}function $s(t){return 180*t/Math.PI%360}function Xs(t,e){return e=new yt(e[0],e[1],e[2],e[3],e[4],e[5]),t.transform(e),e}function Vs(t,e){t.clip(e)}function Ys(t,e,r,o){for(var n=new ne([e,r],o).curvePoints(),i=1;i<n.length;)t.curveTo(n[i++],n[i++],n[i++])}function Ws(t){return(t.x<=0||t.y<=0)&&(t.x=t.y=0),t}function Js(t,e,r,o,n){var i=Math.max(0,e.x),s=Math.max(0,e.y),a=Math.max(0,r.x),h=Math.max(0,r.y),c=Math.max(0,o.x),p=Math.max(0,o.y),u=Math.max(0,n.x),l=Math.max(0,n.y),f=Math.min(t.width/(i+a),t.height/(h+p),t.width/(c+u),t.height/(l+s));return f<1&&(i*=f,s*=f,a*=f,h*=f,c*=f,p*=f,u*=f,l*=f),{tl:{x:i,y:s},tr:{x:a,y:h},br:{x:c,y:p},bl:{x:u,y:l}}}function Zs(t,e,r){var o=Is(t),n=qs(o,"top-left"),i=qs(o,"top-right"),s=qs(o,"bottom-left"),a=qs(o,"bottom-right");if("padding"==r||"content"==r){var h=Ds(o,"top"),c=Ds(o,"right"),p=Ds(o,"bottom"),u=Ds(o,"left");if(n.x-=u.width,n.y-=h.width,i.x-=c.width,i.y-=h.width,a.x-=c.width,a.y-=p.width,s.x-=u.width,s.y-=p.width,"content"==r){var l=parseFloat(zs(o,"padding-top")),f=parseFloat(zs(o,"padding-right")),d=parseFloat(zs(o,"padding-bottom")),y=parseFloat(zs(o,"padding-left"));n.x-=y,n.y-=l,i.x-=f,i.y-=l,a.x-=f,a.y-=d,s.x-=y,s.y-=d}}return"number"==typeof r&&(n.x-=r,n.y-=r,i.x-=r,i.y-=r,a.x-=r,a.y-=r,s.x-=r,s.y-=r),Ks(e,n,i,a,s)}function Ks(t,e,r,o,n){var i=Js(t,e,r,o,n),s=i.tl,a=i.tr,h=i.br,c=i.bl,p=new Qe({fill:null,stroke:null});return p.moveTo(t.left,t.top+s.y),s.x&&Ys(p,t.left+s.x,t.top+s.y,{startAngle:-180,endAngle:-90,radiusX:s.x,radiusY:s.y}),p.lineTo(t.right-a.x,t.top),a.x&&Ys(p,t.right-a.x,t.top+a.y,{startAngle:-90,endAngle:0,radiusX:a.x,radiusY:a.y}),p.lineTo(t.right,t.bottom-h.y),h.x&&Ys(p,t.right-h.x,t.bottom-h.y,{startAngle:0,endAngle:90,radiusX:h.x,radiusY:h.y}),p.lineTo(t.left+c.x,t.bottom),c.x&&Ys(p,t.left+c.x,t.bottom-c.y,{startAngle:90,endAngle:180,radiusX:c.x,radiusY:c.y}),p.close()}function Qs(t,e){var r=String(parseFloat(t));switch(e){case"decimal-leading-zero":return r.length<2&&(r="0"+r),r;case"lower-roman":return B(t).toLowerCase();case"upper-roman":return B(t).toUpperCase();case"lower-latin":case"lower-alpha":return Ns(t-1);case"upper-latin":case"upper-alpha":return Ns(t-1).toUpperCase();default:return r}}function ta(t,e){function r(t,e,r){return r?(r=r.replace(/^\s*(["'])(.*)\1\s*$/,"$2"),function(t){var e=[],r=ps;for(t="_counter_"+t;r;)ks(r,t)&&e.push(r[t]),r=Object.getPrototypeOf(r);return e.reverse()}(t).map((function(t){return Qs(t,e)})).join(r)):Qs(function(t){return ps[t="_counter_"+t]}(t)||0,e)}var o,n=ws(e,/^\s+/),i=[];return n.forEach((function(e){var n;(o=/^\s*(["'])(.*)\1\s*$/.exec(e))?i.push(o[2].replace(/\\([0-9a-f]{4})/gi,(function(t,e){return String.fromCharCode(parseInt(e,16))}))):(o=/^\s*counter\((.*?)\)\s*$/.exec(e))?(n=ws(o[1]),i.push(r(n[0],n[1]))):(o=/^\s*counters\((.*?)\)\s*$/.exec(e))?(n=ws(o[1]),i.push(r(n[0],n[2],n[1]))):(o=/^\s*attr\((.*?)\)\s*$/.exec(e))?i.push(t.getAttribute(o[1])||""):i.push(e)})),i.join("")}function ea(t){if(t.cssText)return t.cssText;for(var e=[],r=0;r<t.length;++r)e.push(t[r]+": "+zs(t,t[r]));return e.join(";\n")}function ra(t,e){if(t.tagName!=as){var r=[];if(n(":before",t.firstChild),n(":after",null),r.length>0){var o=t.className;t.className+=" kendo-pdf-hide-pseudo-elements",oa(t,e),t.className=o,r.forEach((function(e){t.removeChild(e)}))}else oa(t,e)}else oa(t,e);function n(e,o){var n=Is(t,e),i=n.content;if(As(n),i&&"normal"!=i&&"none"!=i&&"0px"!=n.width){var s=t.ownerDocument.createElement(as);Yr(s,ea(n)),s.textContent=ta(t,i),t.insertBefore(s,o),r.push(s)}}}function oa(t,e){var r=Is(t),o=Ds(r,"top"),n=Ds(r,"right"),i=Ds(r,"bottom"),s=Ds(r,"left"),a=qs(r,"top-left"),h=qs(r,"top-right"),c=qs(r,"bottom-left"),p=qs(r,"bottom-right"),u=zs(r,"direction"),l=zs(r,"background-color");l=Es(l);var f,d,y=bs(zs(r,"background-image")),g=ws(zs(r,"background-repeat")),m=ws(zs(r,"background-position")),v=ws(zs(r,"background-origin")),_=ws(zs(r,"background-size"));us&&"ellipsis"==(f=r.textOverflow)&&(d=t.style.textOverflow,t.style.textOverflow="clip"),is.msie&&is.version<10&&(m=ws(t.currentStyle.backgroundPosition));var b,w,x,S=Hs(t.getBoundingClientRect(),"border-*-width",t);!function(){var t=zs(r,"clip"),o=/^\s*rect\((.*)\)\s*$/.exec(t);if(o){var n=o[1].split(/[ ,]+/g),i="auto"==n[0]?S.top:parseFloat(n[0])+S.top,s="auto"==n[1]?S.right:parseFloat(n[1])+S.left,a="auto"==n[2]?S.bottom:parseFloat(n[2])+S.top,h="auto"==n[3]?S.left:parseFloat(n[3])+S.left,c=new ir,p=(new Qe).moveTo(h,i).lineTo(s,i).lineTo(s,a).lineTo(h,a).close();Vs(c,p),e.append(c),e=c,Ls(p)}}();var C=zs(r,"display");if("table-row"==C)for(b=[],w=0,x=t.children;w<x.length;++w)b.push(x[w].getBoundingClientRect());else 1==(b=t.getClientRects()).length&&(b=[t.getBoundingClientRect()]);for(b=function(e){if(/^td$/i.test(t.tagName)){var r=ps.table;if(r&&"collapse"==zs(r.style,"border-collapse")){var o=Ds(r.style,"left").width,n=Ds(r.style,"top").width;if(0===o&&0===n)return e;var i=r.element.getBoundingClientRect(),s=r.element.rows[0].cells[0].getBoundingClientRect();if(s.top==i.top||s.left==i.left)return ss(e).map((function(t){return{left:t.left+o,top:t.top+n,right:t.right+o,bottom:t.bottom+n,height:t.height,width:t.width}}))}}return e}(b),w=0;w<b.length;++w)M(b[w],0===w,w==b.length-1);if("A"==t.tagName&&t.href&&!/^#?$/.test(t.getAttribute("href"))&&(!ps._avoidLinks||!ys(t,ps._avoidLinks))){var k=document.createRange();k.selectNodeContents(t),ss(k.getClientRects()).forEach((function(r){var o=new ir;o._pdfLink={url:t.href,top:r.top,right:r.right,bottom:r.bottom,left:r.left},e.append(o)}))}return b.length>0&&"list-item"==C&&!t.getAttribute("kendo-no-bullet")&&function(){var o=zs(r,"list-style-type");if("none"==o)return;var n=zs(r,"list-style-position");function i(r){Gs(t,(function(){t.style.position="relative";var o=t.ownerDocument.createElement(as);o.style.position="absolute",o.style.boxSizing="border-box","outside"==n?(o.style.width="6em",o.style.left="-6.8em",o.style.textAlign="right"):o.style.left="0px",r(o),t.insertBefore(o,t.firstChild),ca(o,e),t.removeChild(o)}))}function s(e){var r=t.parentNode.children,o=t.getAttribute("kendo-split-index");if(null!=o)return e(0|o,r.length);for(var n=0;n<r.length;++n)if(r[n]===t)return e(n,r.length)}switch(o){case"circle":case"disc":case"square":i((function(t){t.innerHTML="&nbsp;",t.setAttribute(hs,o)}));break;case"decimal":case"decimal-leading-zero":i((function(t){s((function(e){++e,"decimal-leading-zero"==o&&e<10&&(e="0"+e),t.innerHTML=e+"."}))}));break;case"lower-roman":case"upper-roman":i((function(t){s((function(e){e=B(e+1),"upper-roman"==o&&(e=e.toUpperCase()),t.innerHTML=e+"."}))}));break;case"lower-latin":case"lower-alpha":case"upper-latin":case"upper-alpha":i((function(t){s((function(e){e=Ns(e),/^upper/i.test(o)&&(e=e.toUpperCase()),t.innerHTML=e+"."}))}))}}(b[0]),function(){function o(){var r=Zs(t,S,"padding"),o=new ir;Vs(o,r),e.append(o),e=o,Ls(r)}!function(t){return/^(?:textarea|select|input)$/i.test(t.tagName)}(t)?(/^(hidden|auto|scroll)/.test(zs(r,"overflow"))||/^(hidden|auto|scroll)/.test(zs(r,"overflow-x"))||/^(hidden|auto|scroll)/.test(zs(r,"overflow-y")))&&o():o()}(),function(t,e){var r;if(t._kendoExportVisual){var o=t.getBoundingClientRect(),n={width:o.width,height:o.height};r=t._kendoExportVisual(n)}else if(window.kendo&&window.kendo.jQuery&&t.getAttribute(window.kendo.attr("role"))){var i=window.kendo.widgetInstance(window.kendo.jQuery(t));i&&(i.exportDOMVisual||i.exportVisual)&&(r=i.exportDOMVisual?i.exportDOMVisual():i.exportVisual())}if(!r)return!1;var s=new ir;s.children.push(r);var a=t.getBoundingClientRect();return s.transform(Bt().translate(a.left,a.top)),e.append(s),!0}(t,e)||function(t,e){var r=t.getAttribute(hs);if(!r)return!1;var o=t.getBoundingClientRect(),n=Is(t).color;if("square"===r){var i=o.height/5;e.append(new fr(new It([o.right-i,o.top+o.height/2.1],[i,i])).fill(n).stroke(n))}else{var s=o.height/7,a=[o.right-s,o.top+(o.height+s)/2],h=new Qt(new Vt(a,s));"circle"===r?h.stroke(n,.5):h.fill(n).stroke(null),e.append(h)}return!0}(t,e)||aa(t,e),us&&"ellipsis"==f&&(t.style.textOverflow=d),e;function T(t,r,o,n,i,s,a,h){if(!(o<=0)){var c,p=new ir;Xs(p,h),e.append(p),Ws(s),Ws(a),c=new Qe({fill:{color:t},stroke:null}),p.append(c),c.moveTo(s.x?Math.max(s.x,n):0,0).lineTo(r-(a.x?Math.max(a.x,i):0),0).lineTo(r-Math.max(a.x,i),o).lineTo(Math.max(s.x,n),o).close(),s.x&&u(n,s,[-1,0,0,1,s.x,0]),a.x&&u(i,a,[1,0,0,1,r-a.x,0])}function u(e,r,n){var i=Math.PI/2*e/(e+o),s={x:r.x-e,y:r.y-o},a=new Qe({fill:{color:t},stroke:null}).moveTo(0,0);Xs(a,n),Ys(a,0,r.y,{startAngle:-90,endAngle:-$s(i),radiusX:r.x,radiusY:r.y}),s.x>0&&s.y>0?(a.lineTo(s.x*Math.cos(i),r.y-s.y*Math.sin(i)),Ys(a,0,r.y,{startAngle:-$s(i),endAngle:-90,radiusX:s.x,radiusY:s.y,anticlockwise:!0})):s.x>0?a.lineTo(s.x,o).lineTo(0,o):a.lineTo(s.x,o).lineTo(s.x,0),p.append(a.close())}}function O(e,r,o,n,i,s,a){var h;if(o&&"none"!=o)if("url"==o.type){var c=cs[o.url];c&&c.width>0&&c.height>0&&p(e,r,c.width,c.height,(function(t,e){t.append(new or(o.url,e))}))}else{if("linear"!=o.type)return;p(e,r,r.width,r.height,(h=o,function(t,e){var r=e.width(),o=e.height();switch(h.type){case"linear":var n=null!=h.angle?h.angle:Math.PI;switch(h.to){case"top":n=0;break;case"left":n=-Math.PI/2;break;case"bottom":n=Math.PI;break;case"right":n=Math.PI/2;break;case"top left":case"left top":n=-Math.atan2(o,r);break;case"top right":case"right top":n=Math.atan2(o,r);break;case"bottom left":case"left bottom":n=Math.PI+Math.atan2(o,r);break;case"bottom right":case"right bottom":n=Math.PI-Math.atan2(o,r)}h.reverse&&(n-=Math.PI),(n%=2*Math.PI)<0&&(n+=2*Math.PI);var i=Math.abs(r*Math.sin(n))+Math.abs(o*Math.cos(n)),s=Math.atan(r*Math.tan(n)/o),a=Math.sin(s),c=Math.cos(s),p=Math.abs(a)+Math.abs(c),u=p/2*a,l=p/2*c;n>Math.PI/2&&n<=3*Math.PI/2&&(u=-u,l=-l);var f=[],d=0,y=h.stops.map((function(t,e){var r=t.percent;r?r=parseFloat(r)/100:t.length?r=parseFloat(t.length)/i:0===e?r=0:e==h.stops.length-1&&(r=1);var o={color:t.color.toCssRgba(),offset:r};return null!=r?(d=r,f.forEach((function(t,e){t.stop.offset=t.left+(d-t.left)*(e+1)/(f.length+1)})),f=[]):f.push({left:d,stop:o}),o})),g=[.5-u,.5+l],m=[.5+u,.5-l];t.append(Qe.fromRect(e).stroke(null).fill(new Cr({start:g,end:m,stops:y,userSpace:!1})));break;case"radial":window.console&&window.console.log&&window.console.log("Radial gradients are not yet supported in HTML renderer")}}))}function p(e,r,o,h,c){var p,u=o/h,l=r;if("content-box"==s?(l=Hs(l,"border-*-width",t),l=Hs(l,"padding-*",t)):"padding-box"==s&&(l=Hs(l,"border-*-width",t)),!/^\s*auto(\s+auto)?\s*$/.test(a))if("contain"==a)p=Math.min(l.width/o,l.height/h),o*=p,h*=p;else if("cover"==a)p=Math.max(l.width/o,l.height/h),o*=p,h*=p;else{var f=a.split(/\s+/g);o=/%$/.test(f[0])?l.width*parseFloat(f[0])/100:parseFloat(f[0]),h=1==f.length||"auto"==f[1]?o/u:/%$/.test(f[1])?l.height*parseFloat(f[1])/100:parseFloat(f[1])}var d=String(i);switch(d){case"bottom":d="50% 100%";break;case"top":d="50% 0";break;case"left":d="0 50%";break;case"right":d="100% 50%";break;case"center":d="50% 50%"}1==(d=d.split(/\s+/)).length&&(d[1]="50%"),/%$/.test(d[0])?d[0]=parseFloat(d[0])/100*(l.width-o):d[0]=parseFloat(d[0]),/%$/.test(d[1])?d[1]=parseFloat(d[1])/100*(l.height-h):d[1]=parseFloat(d[1]);var y=new It([l.left+d[0],l.top+d[1]],[o,h]);function g(){for(;y.origin.x>r.left;)y.origin.x-=o}function m(){for(;y.origin.y>r.top;)y.origin.y-=h}function v(){for(;y.origin.x<r.right;)c(e,y.clone()),y.origin.x+=o}if("no-repeat"==n)c(e,y);else if("repeat-x"==n)g(),v();else if("repeat-y"==n)for(m();y.origin.y<r.bottom;)c(e,y.clone()),y.origin.y+=h;else if("repeat"==n){g(),m();for(var _=y.origin.clone();y.origin.y<r.bottom;)y.origin.x=_.x,v(),y.origin.y+=h}}}function M(r,f,d){if(0!==r.width&&0!==r.height){!function(t){var r=new ir;if(Vs(r,Ks(t,a,h,p,c)),e.append(r),l){var o=new Qe({fill:{color:l.toCssRgba()},stroke:null});o.moveTo(t.left,t.top).lineTo(t.right,t.top).lineTo(t.right,t.bottom).lineTo(t.left,t.bottom).close(),r.append(o)}for(var n=y.length;--n>=0;)O(r,t,y[n],g[n%g.length],m[n%m.length],v[n%v.length],_[n%_.length])}(r);var b=s.width>0&&(f&&"ltr"==u||d&&"rtl"==u),w=n.width>0&&(d&&"ltr"==u||f&&"rtl"==u);if(0!==o.width||0!==s.width||0!==n.width||0!==i.width){if(o.color==n.color&&o.color==i.color&&o.color==s.color&&o.width==n.width&&o.width==i.width&&o.width==s.width&&b&&w){r=Hs(r,o.width/2);var x=Zs(t,r,o.width/2);return x.options.stroke={color:o.color,width:o.width},void e.append(x)}if(0===a.x&&0===h.x&&0===p.x&&0===c.x&&o.width<2&&s.width<2&&n.width<2&&i.width<2)return o.width>0&&e.append(new Qe({stroke:{width:o.width,color:o.color}}).moveTo(r.left,r.top+o.width/2).lineTo(r.right,r.top+o.width/2)),i.width>0&&e.append(new Qe({stroke:{width:i.width,color:i.color}}).moveTo(r.left,r.bottom-i.width/2).lineTo(r.right,r.bottom-i.width/2)),b&&e.append(new Qe({stroke:{width:s.width,color:s.color}}).moveTo(r.left+s.width/2,r.top).lineTo(r.left+s.width/2,r.bottom)),void(w&&e.append(new Qe({stroke:{width:n.width,color:n.color}}).moveTo(r.right-n.width/2,r.top).lineTo(r.right-n.width/2,r.bottom)));var S=Js(r,a,h,p,c),C=S.tl,k=S.tr,M=S.br,A=S.bl;T(o.color,r.width,o.width,s.width,n.width,C,k,[1,0,0,1,r.left,r.top]),T(i.color,r.width,i.width,n.width,s.width,M,A,[-1,0,0,-1,r.right,r.bottom]),T(s.color,r.height,s.width,i.width,o.width,E(A),E(C),[0,-1,1,0,r.left,r.bottom]),T(n.color,r.height,n.width,o.width,i.width,E(k),E(M),[0,1,-1,0,r.right,r.top])}}function E(t){return{x:t.y,y:t.x}}}}function na(t,e,r){var o=Us(t),n=new It([o.left,o.top],[o.width,o.height]),i=new or(e,n);Vs(i,Zs(t,o,"content")),r.append(i)}function ia(t,e){var r=Is(t),o=Is(e),n=parseFloat(zs(r,"z-index")),i=parseFloat(zs(o,"z-index")),s=zs(r,"position"),a=zs(o,"position");return isNaN(n)&&isNaN(i)?/static|absolute/.test(s)&&/static|absolute/.test(a)?0:"static"==s?-1:"static"==a?1:0:isNaN(n)?0===i?0:i>0?-1:1:isNaN(i)?0===n?0:n>0?1:-1:parseFloat(n)-parseFloat(i)}function sa(t,e){var r=t.tagName.toLowerCase();if("input"==r&&("checkbox"==t.type||"radio"==t.type))return function(t,e){var r=zs(Is(t),"color"),o=t.getBoundingClientRect();"checkbox"==t.type?(e.append(Qe.fromRect(new It([o.left+1,o.top+1],[o.width-2,o.height-2])).stroke(r,1)),t.checked&&e.append((new Qe).stroke(r,1.2).moveTo(o.left+.22*o.width,o.top+.55*o.height).lineTo(o.left+.45*o.width,o.top+.75*o.height).lineTo(o.left+.78*o.width,o.top+.22*o.width))):(e.append(new Qt(new Vt([(o.left+o.right)/2,(o.top+o.bottom)/2],Math.min(o.width-2,o.height-2)/2)).stroke(r,1)),t.checked&&e.append(new Qt(new Vt([(o.left+o.right)/2,(o.top+o.bottom)/2],Math.min(o.width-8,o.height-8)/2)).fill(r).stroke(null)))}(t,e);var o,n=t.parentNode,i=t.ownerDocument,s=i.createElement(as);if(Yr(s,ea(Is(t))),"input"==r&&(s.style.whiteSpace="pre"),"select"!=r&&"textarea"!=r||(s.style.overflow="auto"),"select"==r)if(t.multiple)for(var a=0;a<t.options.length;++a)o=i.createElement(as),Yr(o,ea(Is(t.options[a]))),o.style.display="block",o.textContent=t.options[a].textContent,s.appendChild(o);else o=function(t){return t.selectedOptions&&t.selectedOptions.length>0?t.selectedOptions[0]:t.options[t.selectedIndex]}(t),o&&(s.textContent=o.textContent);else s.textContent=t.value;n.insertBefore(s,t),s.scrollLeft=t.scrollLeft,s.scrollTop=t.scrollTop,t.style.display="none",aa(s,e),t.style.display="",n.removeChild(s)}function aa(t,e){switch(ps._stackingContext.element===t&&(ps._stackingContext.group=e),t.tagName.toLowerCase()){case"img":na(t,t.src,e);break;case"svg":var r=function(t){var e=new window.XMLSerializer,r=e.serializeToString(t);if(is.mozilla&&(!t.getAttribute("width")||!t.getAttribute("height"))){var o=(new window.DOMParser).parseFromString(r,"image/svg+xml").documentElement,n=Us(t);o.setAttribute("width",n.width),o.setAttribute("height",n.height),r=e.serializeToString(o)}return r}(t);na(t,"data:image/svg+xml;base64,"+Z(r),e);break;case"canvas":try{na(t,t.toDataURL("image/png"),e)}catch(t){}break;case"textarea":case"input":case"select":sa(t,e);break;default:for(var o=[],n=[],i=[],s=t.firstChild;s;s=s.nextSibling)switch(s.nodeType){case 3:/\S/.test(s.data)&&ha(t,s,e);break;case 1:var a=Is(s),h=zs(a,"float");"static"!=zs(a,"position")?i.push(s):"none"!=h?n.push(s):o.push(s)}ot(o,ia).forEach((function(t){ca(t,e)})),ot(n,ia).forEach((function(t){ca(t,e)})),ot(i,ia).forEach((function(t){ca(t,e)}))}}function ha(t,e,r){if(null!=(o=ps._clipbox)&&!(o?0===o.width()||0===o.height():void 0)){var o,n=Is(t);if(!(parseFloat(zs(n,"text-indent"))<-500)){var i=e.data,s=0,a=i.search(/\S\s*$/)+1;if(a){var h=zs(n,"font-size"),c=zs(n,"line-height"),p=[zs(n,"font-style"),zs(n,"font-variant"),zs(n,"font-weight"),h,zs(n,"font-family")].join(" ");if(h=parseFloat(h),c=parseFloat(c),0!==h&&!isNaN(h)){var u=zs(n,"color"),l=t.ownerDocument.createRange(),f="justify"==zs(n,"text-align"),d=zs(n,"column-count",1),y=zs(n,"white-space"),g=zs(n,"text-transform"),m=t.getBoundingClientRect().width/h*5;0===m&&(m=500);var v=null,_=ps.underline,b=ps["line-through"],w=ps.overline,x=ps["underline-offset"];for(_&&S((function(t){var e=h/12,r=t.bottom;r+=null!=x?x:e;T(e,t,_,r)}));!k(););return void((b||w)&&S((function(t){var e=h/12;T(e,t,b,t.bottom-t.height/2.7),T(e,t,w,t.top)})))}}}}function S(t){l.selectNode(e);var r=ss(l.getClientRects());S=function(t){return r.forEach(t)},S(t)}function C(t){if(us||is.chrome||is.safari){for(var e=t.getClientRects(),r={top:1/0,right:-1/0,bottom:-1/0,left:1/0},o=!1,n=0;n<e.length;++n){var i=e[n];i.width<=1||i.bottom===v||(r.left=Math.min(i.left,r.left),r.top=Math.min(i.top,r.top),r.right=Math.max(i.right,r.right),r.bottom=Math.max(i.bottom,r.bottom),o=!0)}return o?(r.width=r.right-r.left,r.height=r.bottom-r.top,r):t.getBoundingClientRect()}return t.getBoundingClientRect()}function k(){var t,o=s,n=i.substr(s).search(/\S/);if(s+=n,n<0||s>=a)return!0;l.setStart(e,s),l.setEnd(e,s+1),t=C(l);var h=!1;if((f||d>1)&&(n=i.substr(s).search(/\s/))>=0){l.setEnd(e,s+n);var _=C(l);_.bottom==t.bottom&&(t=_,h=!0,s+=n)}if(!h){if(n=function r(o,n,i){l.setEnd(e,n);var s=C(l);return s.bottom!=t.bottom&&o<n?r(o,o+n>>1,n):s.right!=t.right?(t=s,n<i?r(n,n+i>>1,i):n):n}(s,Math.min(a,s+m),a),n==s)return!0;if(s=n,0===(n=l.toString().search(/\s+$/)))return!1;n>0&&(l.setEnd(e,l.startOffset+n),t=C(l))}us&&(t=l.getClientRects()[0]);var b=l.toString();if(/^(?:pre|pre-wrap)$/i.test(y)){if(/\t/.test(b)){var w=0;for(n=o;n<l.startOffset;++n){var x=i.charCodeAt(n);9==x?w+=8-w%8:10==x||13==x?w=0:w++}for(;(n=b.search("\t"))>=0;){var S="        ".substr(0,8-(w+n)%8);b=b.substr(0,n)+S+b.substr(n+1)}}}else b=b.replace(/\s+/g," ");h||(v=t.bottom),function(t,e){if(us&&!isNaN(c)){var o=Ss(p),n=(e.top+e.bottom-o)/2;e={top:n,right:e.right,bottom:n+o,left:e.left,height:o,width:e.right-e.left}}switch(g){case"uppercase":t=t.toUpperCase();break;case"lowercase":t=t.toLowerCase();break;case"capitalize":t=t.replace(/(?:^|\s)\S/g,(function(t){return t.toUpperCase()}))}var i=new ls(t,new It([e.left,e.top],[e.width,e.height]),{font:p,fill:{color:u}});r.append(i)}(b,t)}function T(t,e,o,n){if(o){var i=new Qe({stroke:{width:t,color:o}});n-=t,i.moveTo(e.left,n).lineTo(e.right,n),r.append(i)}}}function ca(t,e){var r=Is(t);if(As(r),!/^(style|script|link|meta|iframe|col|colgroup)$/i.test(t.tagName)&&null!=ps._clipbox){var o=parseFloat(zs(r,"opacity")),n=zs(r,"visibility"),i=zs(r,"display");if(0!==o&&"hidden"!=n&&"none"!=i){var s,a=function(t){var e=zs(t,"transform");if("none"==e)return null;var r=/^\s*matrix\(\s*(.*?)\s*\)\s*$/.exec(e);if(r){var o=zs(t,"transform-origin");return{matrix:r=r[1].split(/\s*,\s*/g).map(parseFloat),origin:o=o.split(/\s+/g).map(parseFloat)}}}(r),h=zs(r,"z-index");(a||o<1)&&"auto"==h&&(h=0),s=function(t,e,r){var o;"auto"!=r?(o=ps._stackingContext.group,r=parseFloat(r)):(o=e,r=0);for(var n=o.children,i=0;i<n.length&&!(null!=n[i]._dom_zIndex&&n[i]._dom_zIndex>r);++i);var s=new ir;if(o.insert(i,s),s._dom_zIndex=r,o!==e&&ps._clipbox){var a=ps._matrix.invert(),h=ps._clipbox.transformCopy(a);Vs(s,Qe.fromRect(h))}return s}(0,e,h),o<1&&s.opacity(o*s.opacity()),js(t,r,s),a?Gs(t,(function(){Bs(t.style,"transform","none","important"),Bs(t.style,"transition","none","important"),"static"==zs(r,"position")&&Bs(t.style,"position","relative","important");var e=t.getBoundingClientRect(),o=e.left+a.origin[0],n=e.top+a.origin[1],i=[1,0,0,1,-o,-n];i=pa(i,a.matrix),i=pa(i,[1,0,0,1,o,n]),i=Xs(s,i),ps._matrix=ps._matrix.multiplyCopy(i),ra(t,s)})):ra(t,s),Fs()}}}function pa(t,e){var r=t[0],o=t[1],n=t[2],i=t[3],s=t[4],a=t[5],h=e[0],c=e[1],p=e[2],u=e[3];return[r*h+o*p,r*c+o*u,n*h+i*p,n*c+i*u,s*h+a*p+e[4],s*c+a*u+e[5]]}t.A=ne,t.B=wt,t.C=F,t.D=St,t.E=xt,t.F=Tt,t.G=ir,t.H=_t,t.I=or,t.J=ns,t.K=Oe,t.L=Cr,t.M=yt,t.N=os,t.O=sn,t.P=Ft,t.Q=an,t.R=It,t.S=ke,t.T=rr,t.U=function(t,e){e||(e={});var r=D();if(!t)return r.reject("No element to export");if("function"!=typeof window.getComputedStyle)throw new Error("window.getComputedStyle is missing.  You are using an unsupported browser, or running in IE8 compatibility mode.  Drawing HTML is supported in Chrome, Firefox, Safari and IE9+.");Pi(Cs(t.ownerDocument));var o,n="number"==typeof(o=e.scale||1)?{x:o,y:o}:Array.isArray(o)?{x:o[0],y:o[1]}:{x:o.x,y:o.y};function i(t){var r,o,i=new ir,s=t.getBoundingClientRect();return Xs(i,[n.x,0,0,n.y,-s.left*n.x,-s.top*n.y]),ps._clipbox=!1,ps._matrix=yt.unit(),ps._stackingContext={element:t,group:i},!0===e.avoidLinks?ps._avoidLinks="a":ps._avoidLinks=e.avoidLinks,o="k-pdf-export",(r=t).classList?r.classList.add(o):r.className+=" "+o,ca(t,i),function(t,e){t.classList?t.classList.remove(e):t.className=t.className.split(/\s+/).reduce((function(t,r){return r!=e&&t.push(r),t}),[]).join(" ")}(t,"k-pdf-export"),i}function s(t){if(null!=t)return"string"==typeof t&&(t=function(){throw new Error("Template implementation missing.")}(t.replace(/^\s+|\s+$/g,""))),"function"==typeof t?function(e){var r=t(e);if(r&&"string"==typeof r){var o=document.createElement("div");Kr(o,r),r=o.firstElementChild}return r}:function(){return t.cloneNode(!0)}}return Rs([t],(function(){var o=e&&e.forcePageBreak,a=e&&e.paperSize&&"auto"!=e.paperSize,h=Gn((function(t,r){return"paperSize"==t?a?e[t]:"A4":t in e?e[t]:r})),c=a&&h.paperSize[0],p=a&&h.paperSize[1],u=e.margin&&h.margin,l=Boolean(u);if(o||p){u||(u={left:0,top:0,right:0,bottom:0}),c&&(c/=n.x),p&&(p/=n.y),u.left/=n.x,u.right/=n.x,u.top/=n.y,u.bottom/=n.y;var f=new ir({pdf:{multiPage:!0,paperSize:a?h.paperSize:"auto",_ignoreMargin:l}});!function(t,e,r,o,n,i,a){var h=s(a.template),c=e.ownerDocument,p=[],u=a._destructive?e:vs(e),l=c.createElement("KENDO-PDF-DOCUMENT"),f=0;ss(u.querySelectorAll("tfoot")).forEach((function(t){t.parentNode.appendChild(t)})),ss(u.querySelectorAll("ol")).forEach((function(t){ss(t.children).forEach((function(t,e){t.setAttribute("kendo-split-index",e)}))})),fs(l,{display:"block",position:"absolute",boxSizing:"content-box",left:"-10000px",top:"-10000px"}),o&&(fs(l,{width:o+"px",paddingLeft:i.left+"px",paddingRight:i.right+"px"}),fs(u,{overflow:"hidden"}));e.parentNode.insertBefore(l,e),l.appendChild(u),a.beforePageBreak?Ps([l],(function(){a.beforePageBreak(l,d)})):Ps([l],d);function d(){("-"!=r||n)&&g(u);var e=_();u.parentNode.insertBefore(e,u),e.appendChild(u),h&&p.forEach((function(t,e){var r=h({element:t,pageNum:e+1,totalPages:p.length});r&&t.appendChild(r)})),Rs(p,t.bind(null,{pages:p,container:l}))}function y(t){if(a.keepTogether&&ys(t,a.keepTogether)&&t.offsetHeight<=n-f)return!0;var e=t.tagName;return!(/^h[1-6]$/i.test(e)&&t.offsetHeight>=n-f)&&(t.getAttribute("data-kendo-chart")||/^(?:img|tr|thead|th|tfoot|iframe|svg|object|canvas|input|textarea|select|video|h[1-6])/i.test(t.tagName))}function g(t){if("TABLE"==t.tagName&&fs(t,{tableLayout:"fixed"}),!y(t)){var e=Is(t),o=parseFloat(zs(e,"padding-bottom")),i=parseFloat(zs(e,"border-bottom-width")),s=f;f+=o+i;for(var a=!0,h=t.firstChild;h;h=h.nextSibling)if(1==h.nodeType){if(a=!1,ys(h,r)){v(h);continue}if(!n){g(h);continue}if(!/^(?:static|relative)$/.test(zs(Is(h),"position")))continue;var c=b(h);1==c||c&&y(h)?v(h):g(h)}else 3==h.nodeType&&n&&(w(h,a),a=!1);f=s}}function m(t){var e=t.parentNode,r=e.firstChild;if(t===r)return!0;if(t===e.children[0]){if(7==r.nodeType||8==r.nodeType)return!0;if(3==r.nodeType)return!/\S/.test(r.data)}return!1}function v(t){if(1==t.nodeType&&t!==u&&m(t))return v(t.parentNode);var e,r,o,n,i;r=(e=gs(t,"table"))&&e.querySelector("colgroup"),a.repeatHeaders&&(o=e&&e.querySelector("thead"),(n=gs(t,".k-grid"))&&n.querySelector(".k-auto-scrollable")&&(i=n.querySelector(".k-grid-header")));var s=_(),h=c.createRange();h.setStartBefore(u),h.setEndBefore(t),s.appendChild(h.extractContents()),u.parentNode.insertBefore(s,u),x(t.parentNode),e&&(e=gs(t,"table"),a.repeatHeaders&&o&&e.insertBefore(o.cloneNode(!0),e.firstChild),r&&e.insertBefore(r.cloneNode(!0),e.firstChild)),a.repeatHeaders&&i&&(n=gs(t,".k-grid")).insertBefore(i.cloneNode(!0),n.firstChild)}function _(){var t=c.createElement("KENDO-PDF-PAGE");return fs(t,{display:"block",boxSizing:"content-box",width:o?o+"px":"auto",padding:i.top+"px "+i.right+"px "+i.bottom+"px "+i.left+"px",position:"relative",height:n?n+"px":"auto",overflow:n||o?"hidden":"visible",clear:"both"}),a&&a.pageClassName&&(t.className=a.pageClassName),p.push(t),t}function b(t){var e=t.getBoundingClientRect();if(0===e.width||0===e.height)return 0;var r=u.getBoundingClientRect().top,o=n-f;return e.height>o?3:e.top-r>o?1:e.bottom-r>o?2:0}function w(t,e){if(/\S/.test(t.data)){var r=t.data.length,o=c.createRange();o.selectNodeContents(t);var n=b(o);if(n){var i=t;if(1==n)v(e?t.parentNode:t);else if(function e(r,n,i){return o.setEnd(t,n),r==n||n==i?n:b(o)?e(r,r+n>>1,n):e(n,n+i>>1,i)}(0,r>>1,r),!/\S/.test(o.toString())&&e)v(t.parentNode);else{i=t.splitText(o.endOffset);var s=_();o.setStartBefore(u),s.appendChild(o.extractContents()),u.parentNode.insertBefore(s,u),x(i.parentNode)}w(i)}}}function x(t){var e=gs(t,"li");e&&(e.setAttribute("kendo-no-bullet","1"),x(e.parentNode))}}((function(t){if(e.progress){var o=!1,n=0;!function s(){if(n<t.pages.length){var a=i(t.pages[n]);f.append(a),e.progress({page:a,pageNum:++n,totalPages:t.pages.length,cancel:function(){o=!0}}),o?t.container.parentNode.removeChild(t.container):setTimeout(s)}else t.container.parentNode.removeChild(t.container),r.resolve(f)}()}else t.pages.forEach((function(t){f.append(i(t))})),t.container.parentNode.removeChild(t.container),r.resolve(f)}),t,o,c?c-u.left-u.right:null,p?p-u.top-u.bottom:null,u,e)}else r.resolve(i(t))})),r},t.V=Cs,t.W=er,t.X=rt,t.Y=S,t.__meta__={id:"drawing.cmn.chunk",name:"DrawingCmnChunk",category:"web",description:"A reusable outputed chunk of code",depends:["common.cmn.chunk","pako-esm.cmn.chunk"],hidden:!0,chunk:!0},t.a=o,t.b=Qe,t.c=Br,t.d=G,t.e=cn,t.f=Qt,t.g=Vt,t.h=tr,t.i=kr,t.j=zr,t.k=lr,t.l=m,t.m=Ot,t.n=en,t.o=x,t.p=j,t.q=Lt,t.r=st,t.s=b,t.t=Bt,t.u=Mt,t.v=V,t.w=ct,t.x=fr,t.y=function(t){var e=new ir;return ps._clipbox=!1,ps._matrix=yt.unit(),ps._stackingContext={element:t,group:e},js(t,Is(t),e),3==t.firstChild.nodeType?ha(t,t.firstChild,e):oa(t,e),Fs(),e},t.z=Z}));
//# sourceMappingURL=kendo.drawing.cmn.chunk.min.js.map