-
Notifications
You must be signed in to change notification settings - Fork 0
/
7-es2015.40d62bce5f355abddefa.js
1 lines (1 loc) · 375 KB
/
7-es2015.40d62bce5f355abddefa.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{4:function(t,e){},5:function(t,e){},IiLU:function(t,e,n){var i,r,s;(function(a,l){var o=(a=a||n(4)).window,u=a.document,h=new function(){var t=/^(statics|enumerable|beans|preserve)$/,e=[],n=e.slice,i=Object.create,r=Object.getOwnPropertyDescriptor,s=Object.defineProperty,a=e.forEach||function(t,e){for(var n=0,i=this.length;n<i;n++)t.call(e,this[n],n,this)},o=Object.assign||function(t){for(var e=1,n=arguments.length;e<n;e++){var i=arguments[e];for(var r in i)i.hasOwnProperty(r)&&(t[r]=i[r])}return t},u=function(t,e,n){if(t){var i=r(t,"length");(i&&"number"==typeof i.value?a:function(t,e){for(var n in this)this.hasOwnProperty(n)&&t.call(e,this[n],n,this)}).call(t,e,n=n||t)}return n};function h(e,n,i,a,l){var o={};function u(t,u){"string"==typeof(u=u||(u=r(n,t))&&(u.get?u:u.value))&&"#"===u[0]&&(u=e[u.substring(1)]||u);var h,d="function"==typeof u,p=u,f=l||d&&!u.base?u&&u.get?t in e:e[t]:null;l&&f||(d&&f&&(u.base=f),d&&!1!==a&&(h=t.match(/^([gs]et|is)(([A-Z])(.*))$/))&&(o[h[3].toLowerCase()+h[4]]=h[2]),p&&!d&&p.get&&"function"==typeof p.get&&c.isPlainObject(p)||(p={value:p,writable:!0}),(r(e,t)||{configurable:!0}).configurable&&(p.configurable=!0,p.enumerable=null!=i?i:!h),s(e,t,p))}if(n){for(var h in n)n.hasOwnProperty(h)&&!t.test(h)&&u(h);for(var h in o){var d=o[h],p=e["set"+d],f=e["get"+d]||p&&e["is"+d];!f||!0!==a&&0!==f.length||u(h,{get:f,set:p})}}return e}function c(){for(var t=0,e=arguments.length;t<e;t++){var n=arguments[t];n&&o(this,n)}return this}return h(c,{inject:function(t){if(t){var e=!0===t.statics?t:t.statics,n=t.beans,i=t.preserve;e!==t&&h(this.prototype,t,t.enumerable,n,i),h(this,e,null,n,i)}for(var r=1,s=arguments.length;r<s;r++)this.inject(arguments[r]);return this},extend:function(){for(var t,e,n,r=this,a=0,l=arguments.length;a<l&&(!t||!e);a++)n=arguments[a],t=t||n.initialize,e=e||n.prototype;return e=(t=t||function(){r.apply(this,arguments)}).prototype=e||i(this.prototype),s(e,"constructor",{value:t,writable:!0,configurable:!0}),h(t,this),arguments.length&&this.inject.apply(t,arguments),t.base=r,t}}).inject({enumerable:!1,initialize:c,set:c,inject:function(){for(var t=0,e=arguments.length;t<e;t++){var n=arguments[t];n&&h(this,n,n.enumerable,n.beans,n.preserve)}return this},extend:function(){var t=i(this);return t.inject.apply(t,arguments)},each:function(t,e){return u(this,t,e)},clone:function(){return new this.constructor(this)},statics:{set:o,each:u,create:i,define:s,describe:r,clone:function(t){return o(new t.constructor,t)},isPlainObject:function(t){var e=null!=t&&t.constructor;return e&&(e===Object||e===c||"Object"===e.name)},pick:function(t,e){return t!==l?t:e},slice:function(t,e,i){return n.call(t,e,i)}}})};t.exports=h,h.inject({enumerable:!1,toString:function(){return null!=this._id?(this._class||"Object")+(this._name?" '"+this._name+"'":" @"+this._id):"{ "+h.each(this,function(t,e){if(!/^_/.test(e)){var n=typeof t;this.push(e+": "+("number"===n?g.instance.number(t):"string"===n?"'"+t+"'":t))}},[]).join(", ")+" }"},getClassName:function(){return this._class||""},importJSON:function(t){return h.importJSON(t,this)},exportJSON:function(t){return h.exportJSON(this,t)},toJSON:function(){return h.serialize(this)},set:function(t,e){return t&&h.filter(this,t,e,this._prioritize),this}},{beans:!1,statics:{exports:{},extend:function t(){var e=t.base.apply(this,arguments),n=e.prototype._class;return n&&!h.exports[n]&&(h.exports[n]=e),e},equals:function(t,e){if(t===e)return!0;if(t&&t.equals)return t.equals(e);if(e&&e.equals)return e.equals(t);if(t&&e&&"object"==typeof t&&"object"==typeof e){if(Array.isArray(t)&&Array.isArray(e)){if((n=t.length)!==e.length)return!1;for(;n--;)if(!h.equals(t[n],e[n]))return!1}else{var n,i=Object.keys(t);if((n=i.length)!==Object.keys(e).length)return!1;for(;n--;){var r=i[n];if(!e.hasOwnProperty(r)||!h.equals(t[r],e[r]))return!1}}return!0}return!1},read:function(t,e,n,i){if(this===h){var r=this.peek(t,e);return t.__index++,r}var s=this.prototype,a=s._readIndex,o=e||a&&t.__index||0,u=t.length,c=t[o];if(i=i||u-o,c instanceof this||n&&n.readNull&&null==c&&i<=1)return a&&(t.__index=o+1),c&&n&&n.clone?c.clone():c;if(c=h.create(s),a&&(c.__read=!0),c=c.initialize.apply(c,o>0||o+i<u?h.slice(t,o,o+i):t)||c,a){t.__index=o+c.__read;var d=c.__filtered;d&&(t.__filtered=d,c.__filtered=l),c.__read=l}return c},peek:function(t,e){return t[t.__index=e||t.__index||0]},remain:function(t){return t.length-(t.__index||0)},readList:function(t,e,n,i){for(var r,s=[],a=e||0,l=i?a+i:t.length,o=a;o<l;o++)s.push(Array.isArray(r=t[o])?this.read(r,0,n):this.read(t,o,n,1));return s},readNamed:function(t,e,n,i,r){var s=this.getNamed(t,e),a=s!==l;if(a){var o=t.__filtered;if(!o){var u=this.getSource(t);(o=t.__filtered=h.create(u)).__unfiltered=u}o[e]=l}return this.read(a?[s]:t,n,i,r)},readSupported:function(t,e){var n=this.getSource(t),i=this,r=!1;return n&&Object.keys(n).forEach(function(n){if(n in e){var s=i.readNamed(t,n);s!==l&&(e[n]=s),r=!0}}),r},getSource:function(t){var e=t.__source;if(e===l){var n=1===t.length&&t[0];e=t.__source=n&&h.isPlainObject(n)?n:null}return e},getNamed:function(t,e){var n=this.getSource(t);if(n)return e?n[e]:t.__filtered||n},hasNamed:function(t,e){return!!this.getNamed(t,e)},filter:function(t,e,n,i){var r;function s(i){if(!(n&&i in n||r&&i in r)){var s=e[i];s!==l&&(t[i]=s)}}if(i){for(var a,o={},u=0,h=i.length;u<h;u++)(a=i[u])in e&&(s(a),o[a]=!0);r=o}return Object.keys(e.__unfiltered||e).forEach(s),t},isPlainValue:function(t,e){return h.isPlainObject(t)||Array.isArray(t)||e&&"string"==typeof t},serialize:function(t,e,n,i){e=e||{};var r,s=!i;if(s&&(e.formatter=new g(e.precision),i={length:0,definitions:{},references:{},add:function(t,e){var n="#"+t._id,i=this.references[n];if(!i){this.length++;var r=e.call(t),s=t._class;s&&r[0]!==s&&r.unshift(s),this.definitions[n]=r,i=this.references[n]=[n]}return i}}),t&&t._serialize){r=t._serialize(e,i);var a=t._class;!a||t._compactSerialize||!s&&n||r[0]===a||r.unshift(a)}else if(Array.isArray(t)){r=[];for(var l=0,o=t.length;l<o;l++)r[l]=h.serialize(t[l],e,n,i)}else if(h.isPlainObject(t)){r={};var u=Object.keys(t);for(l=0,o=u.length;l<o;l++){var c=u[l];r[c]=h.serialize(t[c],e,n,i)}}else r="number"==typeof t?e.formatter.number(t,e.precision):t;return s&&i.length>0?[["dictionary",i.definitions],r]:r},deserialize:function(t,e,n,i,r){var s=t,a=!n,l=a&&t&&t.length&&"dictionary"===t[0][0];if(n=n||{},Array.isArray(t)){var o=t[0],u="dictionary"===o;if(1==t.length&&/^#/.test(o))return n.dictionary[o];s=[];for(var c=(o=h.exports[o])?1:0,d=t.length;c<d;c++)s.push(h.deserialize(t[c],e,n,u,l));if(o){var p=s;s=e?e(o,p,a||r):new o(p)}}else if(h.isPlainObject(t))for(var f in s={},i&&(n.dictionary=s),t)s[f]=h.deserialize(t[f],e,n);return l?s[1]:s},exportJSON:function(t,e){var n=h.serialize(t,e);return e&&0==e.asString?n:JSON.stringify(n)},importJSON:function(t,e){return h.deserialize("string"==typeof t?JSON.parse(t):t,function(t,n,i){var r=i&&e&&e.constructor===t,s=r?e:h.create(t.prototype);if(1===n.length&&s instanceof I&&(r||!(s instanceof T))){var a=n[0];h.isPlainObject(a)&&(a.insert=!1,r&&(n=n.concat([{insert:!0}])))}return(r?s.set:t).apply(s,n),r&&(e=null),s})},push:function(t,e){var n=e.length;if(n<4096)t.push.apply(t,e);else{var i=t.length;t.length+=n;for(var r=0;r<n;r++)t[i+r]=e[r]}return t},splice:function(t,e,n,i){var r=e&&e.length,s=n===l;(n=s?t.length:n)>t.length&&(n=t.length);for(var a=0;a<r;a++)e[a]._index=n+a;if(s)return h.push(t,e),[];var o=[n,i];e&&h.push(o,e);for(var u=t.splice.apply(t,o),c=(a=0,u.length);a<c;a++)u[a]._index=l;for(a=n+r,c=t.length;a<c;a++)t[a]._index=a;return u},capitalize:function(t){return t.replace(/\b[a-z]/g,function(t){return t.toUpperCase()})},camelize:function(t){return t.replace(/-(.)/g,function(t,e){return e.toUpperCase()})},hyphenate:function(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}}});var c={on:function(t,e){if("string"!=typeof t)h.each(t,function(t,e){this.on(e,t)},this);else{var n=this._eventTypes,i=n&&n[t],r=this._callbacks=this._callbacks||{};-1===(r=r[t]=r[t]||[]).indexOf(e)&&(r.push(e),i&&i.install&&1===r.length&&i.install.call(this,t))}return this},off:function(t,e){if("string"==typeof t){var n,i=this._eventTypes,r=i&&i[t],s=this._callbacks&&this._callbacks[t];return s&&(!e||-1!==(n=s.indexOf(e))&&1===s.length?(r&&r.uninstall&&r.uninstall.call(this,t),delete this._callbacks[t]):-1!==n&&s.splice(n,1)),this}h.each(t,function(t,e){this.off(e,t)},this)},once:function(t,e){return this.on(t,function n(){e.apply(this,arguments),this.off(t,n)})},emit:function(t,e){var n=this._callbacks&&this._callbacks[t];if(!n)return!1;var i=h.slice(arguments,1),r=e&&e.target&&!e.currentTarget;n=n.slice(),r&&(e.currentTarget=this);for(var s=0,a=n.length;s<a;s++)if(0==n[s].apply(this,i)){e&&e.stop&&e.stop();break}return r&&delete e.currentTarget,!0},responds:function(t){return!(!this._callbacks||!this._callbacks[t])},attach:"#on",detach:"#off",fire:"#emit",_installEvents:function(t){var e=this._eventTypes,n=this._callbacks,i=t?"install":"uninstall";if(e)for(var r in n)if(n[r].length>0){var s=e[r],a=s&&s[i];a&&a.call(this,r)}},statics:{inject:function t(e){var n=e._events;if(n){var i={};h.each(n,function(t,n){var r="string"==typeof t,s=r?t:n,a=h.capitalize(s),l=s.substring(2).toLowerCase();i[l]=r?{}:t,s="_"+s,e["get"+a]=function(){return this[s]},e["set"+a]=function(t){var e=this[s];e&&this.off(l,e),t&&this.on(l,t),this[s]=t}}),e._eventTypes=i}return t.base.apply(this,arguments)}}},d=h.extend({_class:"PaperScope",initialize:function t(){dt=this,this.settings=new h({applyMatrix:!0,insertItems:!0,handleSize:4,hitTolerance:0}),this.project=null,this.projects=[],this.tools=[],this._id=t._id++,t._scopes[this._id]=this;var e=t.prototype;if(!this.support){var n=ot.getContext(1,1)||{};e.support={nativeDash:"setLineDash"in n||"mozDash"in n,nativeBlendModes:ut.nativeModes},ot.release(n)}if(!this.agent){var i=a.navigator.userAgent.toLowerCase(),r=(/(darwin|win|mac|linux|freebsd|sunos)/.exec(i)||[])[0],s="darwin"===r?"mac":r,l=e.agent=e.browser={platform:s};s&&(l[s]=!0),i.replace(/(opera|chrome|safari|webkit|firefox|msie|trident|atom|node|jsdom)\/?\s*([.\d]+)(?:.*version\/([.\d]+))?(?:.*rv\:v?([.\d]+))?/g,function(t,e,n,i,r){if(!l.chrome){var s="opera"===e?i:/^(node|trident)$/.test(e)?r:n;l.version=s,l.versionNumber=parseFloat(s),l.name=e={trident:"msie",jsdom:"node"}[e]||e,l[e]=!0}}),l.chrome&&delete l.webkit,l.atom&&delete l.chrome}},version:"0.12.4",getView:function(){var t=this.project;return t&&t._view},getPaper:function(){return this},execute:function(t,e){var n=dt.PaperScript.execute(t,this,e);return J.updateFocus(),n},install:function(t){var e=this;for(var n in h.each(["project","view","tool"],function(n){h.define(t,n,{configurable:!0,get:function(){return e[n]}})}),this)!/^_/.test(n)&&this[n]&&(t[n]=this[n])},setup:function(t){return dt=this,this.project=new A(t),this},createCanvas:function(t,e){return ot.getCanvas(t,e)},activate:function(){dt=this},clear:function(){for(var t=this.projects,e=this.tools,n=t.length-1;n>=0;n--)t[n].remove();for(n=e.length-1;n>=0;n--)e[n].remove()},remove:function(){this.clear(),delete d._scopes[this._id]},statics:new function(){function t(t){return t+="Attribute",function(e,n){return e[t](n)||e[t]("data-paper-"+n)}}return{_scopes:{},_id:0,get:function(t){return this._scopes[t]||null},getAttribute:t("get"),hasAttribute:t("has")}}}),p=h.extend(c,{initialize:function(t){this._scope=dt,this._index=this._scope[this._list].push(this)-1,!t&&this._scope[this._reference]||this.activate()},activate:function(){if(!this._scope)return!1;var t=this._scope[this._reference];return t&&t!==this&&t.emit("deactivate"),this._scope[this._reference]=this,this.emit("activate",t),!0},isActive:function(){return this._scope[this._reference]===this},remove:function(){return null!=this._index&&(h.splice(this._scope[this._list],null,this._index,1),this._scope[this._reference]==this&&(this._scope[this._reference]=null),this._scope=null,!0)},getView:function(){return this._scope.getView()}}),f={findItemBoundsCollisions:function(t,e,n){function i(t){for(var e=new Array(t.length),n=0;n<t.length;n++){var i=t[n].getBounds();e[n]=[i.left,i.top,i.right,i.bottom]}return e}var r=i(t),s=e&&e!==t?i(e):r;return this.findBoundsCollisions(r,s,n||0)},findCurveBoundsCollisions:function(t,e,n,i){function r(t){for(var e=Math.min,n=Math.max,i=new Array(t.length),r=0;r<t.length;r++){var s=t[r];i[r]=[e(s[0],s[2],s[4],s[6]),e(s[1],s[3],s[5],s[7]),n(s[0],s[2],s[4],s[6]),n(s[1],s[3],s[5],s[7])]}return i}var s=r(t),a=e&&e!==t?r(e):s;if(i){for(var l=this.findBoundsCollisions(s,a,n||0,!1,!0),o=this.findBoundsCollisions(s,a,n||0,!0,!0),u=[],h=0,c=l.length;h<c;h++)u[h]={hor:l[h],ver:o[h]};return u}return this.findBoundsCollisions(s,a,n||0)},findBoundsCollisions:function(t,e,n,i,r){var s=!e||t===e,a=s?t:t.concat(e),l=t.length,o=a.length;function u(t,e,n){for(var i=0,r=t.length;i<r;){var s=r+i>>>1;a[t[s]][e]<n?i=s+1:r=s}return i-1}for(var h=i?1:0,c=h+2,d=i?0:1,p=d+2,f=new Array(o),g=0;g<o;g++)f[g]=g;f.sort(function(t,e){return a[t][h]-a[e][h]});var _=[],m=new Array(l);for(g=0;g<o;g++){var v=f[g],b=a[v],y=s?v:v-l,x=v<l,w=s||!x,C=x?[]:null;if(_.length){var S=u(_,c,b[h]-n)+1;if(_.splice(0,S),s&&r){C=C.concat(_);for(var k=0;k<_.length;k++)m[P=_[k]].push(y)}else{var A=b[p],I=b[d];for(k=0;k<_.length;k++){var P,T=a[P=_[k]],E=P<l,M=s||P>=l;(r||(x&&M||w&&E)&&A>=T[d]-n&&I<=T[p]+n)&&(x&&M&&C.push(s?P:P-l),w&&E&&m[P].push(y))}}}if(x&&(t===e&&C.push(v),m[v]=C),_.length){var L=u(_,c,b[c]);_.splice(L+1,0,v)}else _.push(v)}for(g=0;g<m.length;g++){var O=m[g];O&&O.sort(function(t,e){return t-e})}return m}},g=h.extend({initialize:function(t){this.precision=h.pick(t,5),this.multiplier=Math.pow(10,this.precision)},number:function(t){return this.precision<16?Math.round(t*this.multiplier)/this.multiplier:t},pair:function(t,e,n){return this.number(t)+(n||",")+this.number(e)},point:function(t,e){return this.number(t.x)+(e||",")+this.number(t.y)},size:function(t,e){return this.number(t.width)+(e||",")+this.number(t.height)},rectangle:function(t,e){return this.point(t,e)+(e||",")+this.size(t,e)}});g.instance=new g;var _=new function(){var t=[[.5773502691896257],[0,.7745966692414834],[.33998104358485626,.8611363115940526],[0,.5384693101056831,.906179845938664],[.2386191860831969,.6612093864662645,.932469514203152],[0,.4058451513773972,.7415311855993945,.9491079123427585],[.1834346424956498,.525532409916329,.7966664774136267,.9602898564975363],[0,.3242534234038089,.6133714327005904,.8360311073266358,.9681602395076261],[.14887433898163122,.4333953941292472,.6794095682990244,.8650633666889845,.9739065285171717],[0,.26954315595234496,.5190961292068118,.7301520055740494,.8870625997680953,.978228658146057],[.1252334085114689,.3678314989981802,.5873179542866175,.7699026741943047,.9041172563704749,.9815606342467192],[0,.2304583159551348,.44849275103644687,.6423493394403402,.8015780907333099,.9175983992229779,.9841830547185881],[.10805494870734367,.31911236892788974,.5152486363581541,.6872929048116855,.827201315069765,.9284348836635735,.9862838086968123],[0,.20119409399743451,.3941513470775634,.5709721726085388,.7244177313601701,.8482065834104272,.937273392400706,.9879925180204854],[.09501250983763744,.2816035507792589,.45801677765722737,.6178762444026438,.755404408355003,.8656312023878318,.9445750230732326,.9894009349916499]],e=[[1],[.8888888888888888,.5555555555555556],[.6521451548625461,.34785484513745385],[.5688888888888889,.47862867049936647,.23692688505618908],[.46791393457269104,.3607615730481386,.17132449237917036],[.4179591836734694,.3818300505051189,.27970539148927664,.1294849661688697],[.362683783378362,.31370664587788727,.22238103445337448,.10122853629037626],[.3302393550012598,.31234707704000286,.26061069640293544,.1806481606948574,.08127438836157441],[.29552422471475287,.26926671930999635,.21908636251598204,.1494513491505806,.06667134430868814],[.2729250867779006,.26280454451024665,.23319376459199048,.18629021092773426,.1255803694649046,.05566856711617366],[.24914704581340277,.2334925365383548,.20316742672306592,.16007832854334622,.10693932599531843,.04717533638651183],[.2325515532308739,.22628318026289723,.2078160475368885,.17814598076194574,.13887351021978725,.09212149983772845,.04048400476531588],[.2152638534631578,.2051984637212956,.18553839747793782,.15720316715819355,.12151857068790319,.08015808715976021,.03511946033175186],[.2025782419255613,.19843148532711158,.1861610000155622,.16626920581699392,.13957067792615432,.10715922046717194,.07036604748810812,.03075324199611727],[.1894506104550685,.18260341504492358,.16915651939500254,.14959598881657674,.12462897125553388,.09515851168249279,.062253523938647894,.027152459411754096]],n=Math.abs,i=Math.sqrt,r=Math.pow,s=Math.log2||function(t){return Math.log(t)*Math.LOG2E};function a(t,e,n){return t<e?e:t>n?n:t}function l(t,e,i){function r(t){var e=134217729*t,n=t-e+e;return[n,t-n]}var s=e*e-t*i,a=e*e+t*i;if(3*n(s)<a){var l=r(t),o=r(e),u=r(i),h=e*e,c=t*i;s=h-c+(o[0]*o[0]-h+2*o[0]*o[1]+o[1]*o[1]-(l[0]*u[0]-c+l[0]*u[1]+l[1]*u[0]+l[1]*u[1]))}return s}function o(){var t=Math.max.apply(Math,arguments);return t&&(t<1e-8||t>1e8)?r(2,-Math.round(s(t))):0}return{EPSILON:1e-12,MACHINE_EPSILON:112e-18,CURVETIME_EPSILON:1e-8,GEOMETRIC_EPSILON:1e-7,TRIGONOMETRIC_EPSILON:1e-8,KAPPA:4*(i(2)-1)/3,isZero:function(t){return t>=-1e-12&&t<=1e-12},isMachineZero:function(t){return t>=-112e-18&&t<=112e-18},clamp:a,integrate:function(n,i,r,s){for(var a=t[s-2],l=e[s-2],o=.5*(r-i),u=o+i,h=0,c=s+1>>1,d=1&s?l[h++]*n(u):0;h<c;){var p=o*a[h];d+=l[h++]*(n(u+p)+n(u-p))}return o*d},findRoot:function(t,e,i,r,s,l,o){for(var u=0;u<l;u++){var h=t(i),c=h/e(i),d=i-c;if(n(c)<o){i=d;break}h>0?(s=i,i=d<=r?.5*(r+s):d):(r=i,i=d>=s?.5*(r+s):d)}return a(i,r,s)},solveQuadratic:function(t,e,r,s,u,h){var c,d=1/0;if(n(t)<1e-12){if(n(e)<1e-12)return n(r)<1e-12?-1:0;c=-r/e}else{var p=l(t,e*=-.5,r);if(p&&n(p)<112e-18){var f=o(n(t),n(e),n(r));f&&(p=l(t*=f,e*=f,r*=f))}if(p>=-112e-18){var g=p<0?0:i(p),_=e+(e<0?-g:g);0===_?d=-(c=r/t):(c=_/t,d=r/_)}}var m=0,v=null==u,b=u-1e-12,y=h+1e-12;return isFinite(c)&&(v||c>b&&c<y)&&(s[m++]=v?c:a(c,u,h)),d!==c&&isFinite(d)&&(v||d>b&&d<y)&&(s[m++]=v?d:a(d,u,h)),m},solveCubic:function(t,e,s,l,u,h,c){var d,p,f,g,m,v=o(n(t),n(e),n(s),n(l));function b(n){var i=t*(d=n);g=(i+(p=i+e))*d+(f=p*d+s),m=f*d+l}if(v&&(t*=v,e*=v,s*=v,l*=v),n(t)<1e-12)t=e,p=s,f=l,d=1/0;else if(n(l)<1e-12)p=e,f=s,d=0;else{b(-e/t/3);var y=m/t,x=r(n(y),1/3),w=y<0?-1:1,C=-g/t,S=C>0?1.324717957244746*Math.max(x,i(C)):x,k=d-w*S;if(k!==d){do{b(k),k=0===g?d:d-m/g/(1+112e-18)}while(w*k>w*d);n(t)*d*d>n(l/d)&&(p=((f=-l/d)-s)/d)}}var A=_.solveQuadratic(t,p,f,u,h,c),I=null==h;return isFinite(d)&&(0===A||A>0&&d!==u[0]&&d!==u[1])&&(I||d>h-1e-12&&d<c+1e-12)&&(u[A++]=I?d:a(d,h,c)),A}}},m={_id:1,_pools:{},get:function(t){if(t){var e=this._pools[t];return e||(e=this._pools[t]={_id:1}),e._id++}return this._id++}},v=h.extend({_class:"Point",_readIndex:!0,initialize:function(t,e){var n=typeof t,i=this.__read,r=0;if("number"===n){var s="number"==typeof e;this._set(t,s?e:t),i&&(r=s?2:1)}else if("undefined"===n||null===t)this._set(0,0),i&&(r=null===t?1:0);else{var a="string"===n?t.split(/[\s,]+/)||[]:t;r=1,Array.isArray(a)?this._set(+a[0],+(a.length>1?a[1]:a[0])):"x"in a?this._set(a.x||0,a.y||0):"width"in a?this._set(a.width||0,a.height||0):"angle"in a?(this._set(a.length||0,0),this.setAngle(a.angle||0)):(this._set(0,0),r=0)}return i&&(this.__read=r),this},set:"#initialize",_set:function(t,e){return this.x=t,this.y=e,this},equals:function(t){return this===t||t&&(this.x===t.x&&this.y===t.y||Array.isArray(t)&&this.x===t[0]&&this.y===t[1])||!1},clone:function(){return new v(this.x,this.y)},toString:function(){var t=g.instance;return"{ x: "+t.number(this.x)+", y: "+t.number(this.y)+" }"},_serialize:function(t){var e=t.formatter;return[e.number(this.x),e.number(this.y)]},getLength:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},setLength:function(t){if(this.isZero()){var e=this._angle||0;this._set(Math.cos(e)*t,Math.sin(e)*t)}else{var n=t/this.getLength();_.isZero(n)&&this.getAngle(),this._set(this.x*n,this.y*n)}},getAngle:function(){return 180*this.getAngleInRadians.apply(this,arguments)/Math.PI},setAngle:function(t){this.setAngleInRadians.call(this,t*Math.PI/180)},getAngleInDegrees:"#getAngle",setAngleInDegrees:"#setAngle",getAngleInRadians:function(){if(arguments.length){var t=v.read(arguments),e=this.getLength()*t.getLength();if(_.isZero(e))return NaN;var n=this.dot(t)/e;return Math.acos(n<-1?-1:n>1?1:n)}return this.isZero()?this._angle||0:this._angle=Math.atan2(this.y,this.x)},setAngleInRadians:function(t){if(this._angle=t,!this.isZero()){var e=this.getLength();this._set(Math.cos(t)*e,Math.sin(t)*e)}},getQuadrant:function(){return this.x>=0?this.y>=0?1:4:this.y>=0?2:3}},{beans:!1,getDirectedAngle:function(){var t=v.read(arguments);return 180*Math.atan2(this.cross(t),this.dot(t))/Math.PI},getDistance:function(){var t=arguments,e=v.read(t),n=e.x-this.x,i=e.y-this.y,r=n*n+i*i,s=h.read(t);return s?r:Math.sqrt(r)},normalize:function(t){t===l&&(t=1);var e=this.getLength(),n=0!==e?t/e:0,i=new v(this.x*n,this.y*n);return n>=0&&(i._angle=this._angle),i},rotate:function(t,e){if(0===t)return this.clone();t=t*Math.PI/180;var n=e?this.subtract(e):this,i=Math.sin(t),r=Math.cos(t);return n=new v(n.x*r-n.y*i,n.x*i+n.y*r),e?n.add(e):n},transform:function(t){return t?t._transformPoint(this):this},add:function(){var t=v.read(arguments);return new v(this.x+t.x,this.y+t.y)},subtract:function(){var t=v.read(arguments);return new v(this.x-t.x,this.y-t.y)},multiply:function(){var t=v.read(arguments);return new v(this.x*t.x,this.y*t.y)},divide:function(){var t=v.read(arguments);return new v(this.x/t.x,this.y/t.y)},modulo:function(){var t=v.read(arguments);return new v(this.x%t.x,this.y%t.y)},negate:function(){return new v(-this.x,-this.y)},isInside:function(){return w.read(arguments).contains(this)},isClose:function(){var t=arguments,e=v.read(t),n=h.read(t);return this.getDistance(e)<=n},isCollinear:function(){var t=v.read(arguments);return v.isCollinear(this.x,this.y,t.x,t.y)},isColinear:"#isCollinear",isOrthogonal:function(){var t=v.read(arguments);return v.isOrthogonal(this.x,this.y,t.x,t.y)},isZero:function(){var t=_.isZero;return t(this.x)&&t(this.y)},isNaN:function(){return isNaN(this.x)||isNaN(this.y)},isInQuadrant:function(t){return this.x*(t>1&&t<4?-1:1)>=0&&this.y*(t>2?-1:1)>=0},dot:function(){var t=v.read(arguments);return this.x*t.x+this.y*t.y},cross:function(){var t=v.read(arguments);return this.x*t.y-this.y*t.x},project:function(){var t=v.read(arguments),e=t.isZero()?0:this.dot(t)/t.dot(t);return new v(t.x*e,t.y*e)},statics:{min:function(){var t=arguments,e=v.read(t),n=v.read(t);return new v(Math.min(e.x,n.x),Math.min(e.y,n.y))},max:function(){var t=arguments,e=v.read(t),n=v.read(t);return new v(Math.max(e.x,n.x),Math.max(e.y,n.y))},random:function(){return new v(Math.random(),Math.random())},isCollinear:function(t,e,n,i){return Math.abs(t*i-e*n)<=1e-8*Math.sqrt((t*t+e*e)*(n*n+i*i))},isOrthogonal:function(t,e,n,i){return Math.abs(t*n+e*i)<=1e-8*Math.sqrt((t*t+e*e)*(n*n+i*i))}}},h.each(["round","ceil","floor","abs"],function(t){var e=Math[t];this[t]=function(){return new v(e(this.x),e(this.y))}},{})),b=v.extend({initialize:function(t,e,n,i){this._x=t,this._y=e,this._owner=n,this._setter=i},_set:function(t,e,n){return this._x=t,this._y=e,n||this._owner[this._setter](this),this},getX:function(){return this._x},setX:function(t){this._x=t,this._owner[this._setter](this)},getY:function(){return this._y},setY:function(t){this._y=t,this._owner[this._setter](this)},isSelected:function(){return!!(this._owner._selection&this._getSelection())},setSelected:function(t){this._owner._changeSelection(this._getSelection(),t)},_getSelection:function(){return"setPosition"===this._setter?4:0}}),y=h.extend({_class:"Size",_readIndex:!0,initialize:function(t,e){var n=typeof t,i=this.__read,r=0;if("number"===n){var s="number"==typeof e;this._set(t,s?e:t),i&&(r=s?2:1)}else if("undefined"===n||null===t)this._set(0,0),i&&(r=null===t?1:0);else{var a="string"===n?t.split(/[\s,]+/)||[]:t;r=1,Array.isArray(a)?this._set(+a[0],+(a.length>1?a[1]:a[0])):"width"in a?this._set(a.width||0,a.height||0):"x"in a?this._set(a.x||0,a.y||0):(this._set(0,0),r=0)}return i&&(this.__read=r),this},set:"#initialize",_set:function(t,e){return this.width=t,this.height=e,this},equals:function(t){return t===this||t&&(this.width===t.width&&this.height===t.height||Array.isArray(t)&&this.width===t[0]&&this.height===t[1])||!1},clone:function(){return new y(this.width,this.height)},toString:function(){var t=g.instance;return"{ width: "+t.number(this.width)+", height: "+t.number(this.height)+" }"},_serialize:function(t){var e=t.formatter;return[e.number(this.width),e.number(this.height)]},add:function(){var t=y.read(arguments);return new y(this.width+t.width,this.height+t.height)},subtract:function(){var t=y.read(arguments);return new y(this.width-t.width,this.height-t.height)},multiply:function(){var t=y.read(arguments);return new y(this.width*t.width,this.height*t.height)},divide:function(){var t=y.read(arguments);return new y(this.width/t.width,this.height/t.height)},modulo:function(){var t=y.read(arguments);return new y(this.width%t.width,this.height%t.height)},negate:function(){return new y(-this.width,-this.height)},isZero:function(){var t=_.isZero;return t(this.width)&&t(this.height)},isNaN:function(){return isNaN(this.width)||isNaN(this.height)},statics:{min:function(t,e){return new y(Math.min(t.width,e.width),Math.min(t.height,e.height))},max:function(t,e){return new y(Math.max(t.width,e.width),Math.max(t.height,e.height))},random:function(){return new y(Math.random(),Math.random())}}},h.each(["round","ceil","floor","abs"],function(t){var e=Math[t];this[t]=function(){return new y(e(this.width),e(this.height))}},{})),x=y.extend({initialize:function(t,e,n,i){this._width=t,this._height=e,this._owner=n,this._setter=i},_set:function(t,e,n){return this._width=t,this._height=e,n||this._owner[this._setter](this),this},getWidth:function(){return this._width},setWidth:function(t){this._width=t,this._owner[this._setter](this)},getHeight:function(){return this._height},setHeight:function(t){this._height=t,this._owner[this._setter](this)}}),w=h.extend({_class:"Rectangle",_readIndex:!0,beans:!0,initialize:function(t,e,n,i){var r,s=arguments,a=typeof t;if("number"===a?(this._set(t,e,n,i),r=4):"undefined"===a||null===t?(this._set(0,0,0,0),r=null===t?1:0):1===s.length&&(Array.isArray(t)?(this._set.apply(this,t),r=1):t.x!==l||t.width!==l?(this._set(t.x||0,t.y||0,t.width||0,t.height||0),r=1):t.from===l&&t.to===l&&(this._set(0,0,0,0),h.readSupported(s,this)&&(r=1))),r===l){var o,u,c=v.readNamed(s,"from"),d=h.peek(s),p=c.x,f=c.y;if(d&&d.x!==l||h.hasNamed(s,"to")){var g=v.readNamed(s,"to");(o=g.x-p)<0&&(p=g.x,o=-o),(u=g.y-f)<0&&(f=g.y,u=-u)}else{var _=y.read(s);o=_.width,u=_.height}this._set(p,f,o,u),r=s.__index}var m=s.__filtered;return m&&(this.__filtered=m),this.__read&&(this.__read=r),this},set:"#initialize",_set:function(t,e,n,i){return this.x=t,this.y=e,this.width=n,this.height=i,this},clone:function(){return new w(this.x,this.y,this.width,this.height)},equals:function(t){var e=h.isPlainValue(t)?w.read(arguments):t;return e===this||e&&this.x===e.x&&this.y===e.y&&this.width===e.width&&this.height===e.height||!1},toString:function(){var t=g.instance;return"{ x: "+t.number(this.x)+", y: "+t.number(this.y)+", width: "+t.number(this.width)+", height: "+t.number(this.height)+" }"},_serialize:function(t){var e=t.formatter;return[e.number(this.x),e.number(this.y),e.number(this.width),e.number(this.height)]},getPoint:function(t){return new(t?v:b)(this.x,this.y,this,"setPoint")},setPoint:function(){var t=v.read(arguments);this.x=t.x,this.y=t.y},getSize:function(t){return new(t?y:x)(this.width,this.height,this,"setSize")},_fw:1,_fh:1,setSize:function(){var t=y.read(arguments),e=this._sx,n=this._sy,i=t.width,r=t.height;e&&(this.x+=(this.width-i)*e),n&&(this.y+=(this.height-r)*n),this.width=i,this.height=r,this._fw=this._fh=1},getLeft:function(){return this.x},setLeft:function(t){if(!this._fw){var e=t-this.x;this.width-=.5===this._sx?2*e:e}this.x=t,this._sx=this._fw=0},getTop:function(){return this.y},setTop:function(t){if(!this._fh){var e=t-this.y;this.height-=.5===this._sy?2*e:e}this.y=t,this._sy=this._fh=0},getRight:function(){return this.x+this.width},setRight:function(t){if(!this._fw){var e=t-this.x;this.width=.5===this._sx?2*e:e}this.x=t-this.width,this._sx=1,this._fw=0},getBottom:function(){return this.y+this.height},setBottom:function(t){if(!this._fh){var e=t-this.y;this.height=.5===this._sy?2*e:e}this.y=t-this.height,this._sy=1,this._fh=0},getCenterX:function(){return this.x+this.width/2},setCenterX:function(t){this._fw||.5===this._sx?this.x=t-this.width/2:(this._sx&&(this.x+=2*(t-this.x)*this._sx),this.width=2*(t-this.x)),this._sx=.5,this._fw=0},getCenterY:function(){return this.y+this.height/2},setCenterY:function(t){this._fh||.5===this._sy?this.y=t-this.height/2:(this._sy&&(this.y+=2*(t-this.y)*this._sy),this.height=2*(t-this.y)),this._sy=.5,this._fh=0},getCenter:function(t){return new(t?v:b)(this.getCenterX(),this.getCenterY(),this,"setCenter")},setCenter:function(){var t=v.read(arguments);return this.setCenterX(t.x),this.setCenterY(t.y),this},getArea:function(){return this.width*this.height},isEmpty:function(){return 0===this.width||0===this.height},contains:function(t){return t&&t.width!==l||4===(Array.isArray(t)?t:arguments).length?this._containsRectangle(w.read(arguments)):this._containsPoint(v.read(arguments))},_containsPoint:function(t){var e=t.x,n=t.y;return e>=this.x&&n>=this.y&&e<=this.x+this.width&&n<=this.y+this.height},_containsRectangle:function(t){var e=t.x,n=t.y;return e>=this.x&&n>=this.y&&e+t.width<=this.x+this.width&&n+t.height<=this.y+this.height},intersects:function(){var t=w.read(arguments),e=h.read(arguments)||0;return t.x+t.width>this.x-e&&t.y+t.height>this.y-e&&t.x<this.x+this.width+e&&t.y<this.y+this.height+e},intersect:function(){var t=w.read(arguments),e=Math.max(this.x,t.x),n=Math.max(this.y,t.y),i=Math.min(this.x+this.width,t.x+t.width),r=Math.min(this.y+this.height,t.y+t.height);return new w(e,n,i-e,r-n)},unite:function(){var t=w.read(arguments),e=Math.min(this.x,t.x),n=Math.min(this.y,t.y),i=Math.max(this.x+this.width,t.x+t.width),r=Math.max(this.y+this.height,t.y+t.height);return new w(e,n,i-e,r-n)},include:function(){var t=v.read(arguments),e=Math.min(this.x,t.x),n=Math.min(this.y,t.y),i=Math.max(this.x+this.width,t.x),r=Math.max(this.y+this.height,t.y);return new w(e,n,i-e,r-n)},expand:function(){var t=y.read(arguments),e=t.width,n=t.height;return new w(this.x-e/2,this.y-n/2,this.width+e,this.height+n)},scale:function(t,e){return this.expand(this.width*t-this.width,this.height*(e===l?t:e)-this.height)}},h.each([["Top","Left"],["Top","Right"],["Bottom","Left"],["Bottom","Right"],["Left","Center"],["Top","Center"],["Right","Center"],["Bottom","Center"]],function(t,e){var n=t.join(""),i=/^[RL]/.test(n);e>=4&&(t[1]+=i?"Y":"X");var r=t[i?0:1],s=t[i?1:0],a="get"+r,l="get"+s,o="set"+r,u="set"+s,h="set"+n;this["get"+n]=function(t){return new(t?v:b)(this[a](),this[l](),this,h)},this[h]=function(){var t=v.read(arguments);this[o](t.x),this[u](t.y)}},{beans:!0})),C=w.extend({initialize:function(t,e,n,i,r,s){this._set(t,e,n,i,!0),this._owner=r,this._setter=s},_set:function(t,e,n,i,r){return this._x=t,this._y=e,this._width=n,this._height=i,r||this._owner[this._setter](this),this}},new function(){var t=w.prototype;return h.each(["x","y","width","height"],function(t){var e=h.capitalize(t),n="_"+t;this["get"+e]=function(){return this[n]},this["set"+e]=function(t){this[n]=t,this._dontNotify||this._owner[this._setter](this)}},h.each(["Point","Size","Center","Left","Top","Right","Bottom","CenterX","CenterY","TopLeft","TopRight","BottomLeft","BottomRight","LeftCenter","TopCenter","RightCenter","BottomCenter"],function(e){var n="set"+e;this[n]=function(){this._dontNotify=!0,t[n].apply(this,arguments),this._dontNotify=!1,this._owner[this._setter](this)}},{isSelected:function(){return!!(2&this._owner._selection)},setSelected:function(t){var e=this._owner;e._changeSelection&&e._changeSelection(2,t)}}))}),S=h.extend({_class:"Matrix",initialize:function t(e,n){var i=arguments,r=i.length,s=!0;if(r>=6?this._set.apply(this,i):1===r||2===r?e instanceof t?this._set(e._a,e._b,e._c,e._d,e._tx,e._ty,n):Array.isArray(e)?this._set.apply(this,n?e.concat([n]):e):s=!1:r?s=!1:this.reset(),!s)throw new Error("Unsupported matrix parameters");return this},set:"#initialize",_set:function(t,e,n,i,r,s,a){return this._a=t,this._b=e,this._c=n,this._d=i,this._tx=r,this._ty=s,a||this._changed(),this},_serialize:function(t,e){return h.serialize(this.getValues(),t,!0,e)},_changed:function(){var t=this._owner;t&&(t._applyMatrix?t.transform(null,!0):t._changed(25))},clone:function(){return new S(this._a,this._b,this._c,this._d,this._tx,this._ty)},equals:function(t){return t===this||t&&this._a===t._a&&this._b===t._b&&this._c===t._c&&this._d===t._d&&this._tx===t._tx&&this._ty===t._ty},toString:function(){var t=g.instance;return"[["+[t.number(this._a),t.number(this._c),t.number(this._tx)].join(", ")+"], ["+[t.number(this._b),t.number(this._d),t.number(this._ty)].join(", ")+"]]"},reset:function(t){return this._a=this._d=1,this._b=this._c=this._tx=this._ty=0,t||this._changed(),this},apply:function(t,e){var n=this._owner;return!!n&&(n.transform(null,h.pick(t,!0),e),this.isIdentity())},translate:function(){var t=v.read(arguments),e=t.x,n=t.y;return this._tx+=e*this._a+n*this._c,this._ty+=e*this._b+n*this._d,this._changed(),this},scale:function(){var t=arguments,e=v.read(t),n=v.read(t,0,{readNull:!0});return n&&this.translate(n),this._a*=e.x,this._b*=e.x,this._c*=e.y,this._d*=e.y,n&&this.translate(n.negate()),this._changed(),this},rotate:function(t){t*=Math.PI/180;var e=v.read(arguments,1),n=e.x,i=e.y,r=Math.cos(t),s=Math.sin(t),a=n-n*r+i*s,l=i-n*s-i*r,o=this._a,u=this._b,h=this._c,c=this._d;return this._a=r*o+s*h,this._b=r*u+s*c,this._c=-s*o+r*h,this._d=-s*u+r*c,this._tx+=a*o+l*h,this._ty+=a*u+l*c,this._changed(),this},shear:function(){var t=arguments,e=v.read(t),n=v.read(t,0,{readNull:!0});n&&this.translate(n);var i=this._a,r=this._b;return this._a+=e.y*this._c,this._b+=e.y*this._d,this._c+=e.x*i,this._d+=e.x*r,n&&this.translate(n.negate()),this._changed(),this},skew:function(){var t=arguments,e=v.read(t),n=v.read(t,0,{readNull:!0}),i=Math.PI/180,r=new v(Math.tan(e.x*i),Math.tan(e.y*i));return this.shear(r,n)},append:function(t,e){if(t){var n=this._a,i=this._b,r=this._c,s=this._d,a=t._a,l=t._c,o=t._b,u=t._d,h=t._tx,c=t._ty;this._a=a*n+o*r,this._c=l*n+u*r,this._b=a*i+o*s,this._d=l*i+u*s,this._tx+=h*n+c*r,this._ty+=h*i+c*s,e||this._changed()}return this},prepend:function(t,e){if(t){var n=this._a,i=this._b,r=this._c,s=this._d,a=this._tx,l=this._ty,o=t._a,u=t._c,h=t._b,c=t._d,d=t._tx,p=t._ty;this._a=o*n+u*i,this._c=o*r+u*s,this._b=h*n+c*i,this._d=h*r+c*s,this._tx=o*a+u*l+d,this._ty=h*a+c*l+p,e||this._changed()}return this},appended:function(t){return this.clone().append(t)},prepended:function(t){return this.clone().prepend(t)},invert:function(){var t=this._a,e=this._b,n=this._c,i=this._d,r=this._tx,s=this._ty,a=t*i-e*n,l=null;return a&&!isNaN(a)&&isFinite(r)&&isFinite(s)&&(this._a=i/a,this._b=-e/a,this._c=-n/a,this._d=t/a,this._tx=(n*s-i*r)/a,this._ty=(e*r-t*s)/a,l=this),l},inverted:function(){return this.clone().invert()},concatenate:"#append",preConcatenate:"#prepend",chain:"#appended",_shiftless:function(){return new S(this._a,this._b,this._c,this._d,0,0)},_orNullIfIdentity:function(){return this.isIdentity()?null:this},isIdentity:function(){return 1===this._a&&0===this._b&&0===this._c&&1===this._d&&0===this._tx&&0===this._ty},isInvertible:function(){var t=this._a*this._d-this._c*this._b;return t&&!isNaN(t)&&isFinite(this._tx)&&isFinite(this._ty)},isSingular:function(){return!this.isInvertible()},transform:function(t,e,n){return arguments.length<3?this._transformPoint(v.read(arguments)):this._transformCoordinates(t,e,n)},_transformPoint:function(t,e,n){var i=t.x,r=t.y;return e||(e=new v),e._set(i*this._a+r*this._c+this._tx,i*this._b+r*this._d+this._ty,n)},_transformCoordinates:function(t,e,n){for(var i=0,r=2*n;i<r;i+=2){var s=t[i],a=t[i+1];e[i]=s*this._a+a*this._c+this._tx,e[i+1]=s*this._b+a*this._d+this._ty}return e},_transformCorners:function(t){var e=t.x,n=t.y,i=e+t.width,r=n+t.height,s=[e,n,i,n,i,r,e,r];return this._transformCoordinates(s,s,4)},_transformBounds:function(t,e,n){for(var i=this._transformCorners(t),r=i.slice(0,2),s=r.slice(),a=2;a<8;a++){var l=i[a],o=1&a;l<r[o]?r[o]=l:l>s[o]&&(s[o]=l)}return e||(e=new w),e._set(r[0],r[1],s[0]-r[0],s[1]-r[1],n)},inverseTransform:function(){return this._inverseTransform(v.read(arguments))},_inverseTransform:function(t,e,n){var i=this._a,r=this._b,s=this._c,a=this._d,l=this._tx,o=this._ty,u=i*a-r*s,h=null;if(u&&!isNaN(u)&&isFinite(l)&&isFinite(o)){var c=t.x-this._tx,d=t.y-this._ty;e||(e=new v),h=e._set((c*a-d*s)/u,(d*i-c*r)/u,n)}return h},decompose:function(){var t,e,n,i=this._a,r=this._b,s=this._c,a=this._d,l=i*a-r*s,o=Math.sqrt,u=Math.atan2,h=180/Math.PI;if(0!==i||0!==r){var c=o(i*i+r*r);t=Math.acos(i/c)*(r>0?1:-1),e=[c,l/c],n=[u(i*s+r*a,c*c),0]}else if(0!==s||0!==a){var d=o(s*s+a*a);t=Math.asin(s/d)*(a>0?1:-1),e=[l/d,d],n=[0,u(i*s+r*a,d*d)]}else t=0,n=e=[0,0];return{translation:this.getTranslation(),rotation:t*h,scaling:new v(e),skewing:new v(n[0]*h,n[1]*h)}},getValues:function(){return[this._a,this._b,this._c,this._d,this._tx,this._ty]},getTranslation:function(){return new v(this._tx,this._ty)},getScaling:function(){return this.decompose().scaling},getRotation:function(){return this.decompose().rotation},applyToContext:function(t){this.isIdentity()||t.transform(this._a,this._b,this._c,this._d,this._tx,this._ty)}},h.each(["a","b","c","d","tx","ty"],function(t){var e=h.capitalize(t),n="_"+t;this["get"+e]=function(){return this[n]},this["set"+e]=function(t){this[n]=t,this._changed()}},{})),k=h.extend({_class:"Line",initialize:function(t,e,n,i,r){var s=!1;arguments.length>=4?(this._px=t,this._py=e,this._vx=n,this._vy=i,s=r):(this._px=t.x,this._py=t.y,this._vx=e.x,this._vy=e.y,s=n),s||(this._vx-=this._px,this._vy-=this._py)},getPoint:function(){return new v(this._px,this._py)},getVector:function(){return new v(this._vx,this._vy)},getLength:function(){return this.getVector().getLength()},intersect:function(t,e){return k.intersect(this._px,this._py,this._vx,this._vy,t._px,t._py,t._vx,t._vy,!0,e)},getSide:function(t,e){return k.getSide(this._px,this._py,this._vx,this._vy,t.x,t.y,!0,e)},getDistance:function(t){return Math.abs(this.getSignedDistance(t))},getSignedDistance:function(t){return k.getSignedDistance(this._px,this._py,this._vx,this._vy,t.x,t.y,!0)},isCollinear:function(t){return v.isCollinear(this._vx,this._vy,t._vx,t._vy)},isOrthogonal:function(t){return v.isOrthogonal(this._vx,this._vy,t._vx,t._vy)},statics:{intersect:function(t,e,n,i,r,s,a,l,o,u){o||(n-=t,i-=e,a-=r,l-=s);var h=n*l-i*a;if(!_.isMachineZero(h)){var c=t-r,d=e-s,p=(a*d-l*c)/h,f=(n*d-i*c)/h;if(u||-1e-12<p&&p<1+1e-12&&-1e-12<f&&f<1+1e-12)return u||(p=p<=0?0:p>=1?1:p),new v(t+p*n,e+p*i)}},getSide:function(t,e,n,i,r,s,a,l){a||(n-=t,i-=e);var o=r-t,u=o*i-(s-e)*n;return!l&&_.isMachineZero(u)&&(u=(o*n+o*n)/(n*n+i*i))>=0&&u<=1&&(u=0),u<0?-1:u>0?1:0},getSignedDistance:function(t,e,n,i,r,s,a){return a||(n-=t,i-=e),0===n?i>0?r-t:t-r:0===i?n<0?s-e:e-s:((r-t)*i-(s-e)*n)/(i>n?i*Math.sqrt(1+n*n/(i*i)):n*Math.sqrt(1+i*i/(n*n)))},getDistance:function(t,e,n,i,r,s,a){return Math.abs(k.getSignedDistance(t,e,n,i,r,s,a))}}}),A=p.extend({_class:"Project",_list:"projects",_reference:"project",_compactSerialize:!0,initialize:function(t){p.call(this,!0),this._children=[],this._namedChildren={},this._activeLayer=null,this._currentStyle=new Q(null,null,this),this._view=J.create(this,t||ot.getCanvas(1,1)),this._selectionItems={},this._selectionCount=0,this._updateVersion=0},_serialize:function(t,e){return h.serialize(this._children,t,!0,e)},_changed:function(t,e){if(1&t){var n=this._view;n&&(n._needsUpdate=!0,!n._requested&&n._autoUpdate&&n.requestUpdate())}var i=this._changes;if(i&&e){var r=this._changesById,s=e._id,a=r[s];a?a.flags|=t:i.push(r[s]={item:e,flags:t})}},clear:function(){for(var t=this._children,e=t.length-1;e>=0;e--)t[e].remove()},isEmpty:function(){return!this._children.length},remove:function t(){return!!t.base.call(this)&&(this._view&&this._view.remove(),!0)},getView:function(){return this._view},getCurrentStyle:function(){return this._currentStyle},setCurrentStyle:function(t){this._currentStyle.set(t)},getIndex:function(){return this._index},getOptions:function(){return this._scope.settings},getLayers:function(){return this._children},getActiveLayer:function(){return this._activeLayer||new T({project:this,insert:!0})},getSymbolDefinitions:function(){var t=[],e={};return this.getItems({class:L,match:function(n){var i=n._definition,r=i._id;return e[r]||(e[r]=!0,t.push(i)),!1}}),t},getSymbols:"getSymbolDefinitions",getSelectedItems:function(){var t=this._selectionItems,e=[];for(var n in t){var i=t[n],r=i._selection;1&r&&i.isInserted()?e.push(i):r||this._updateSelection(i)}return e},_updateSelection:function(t){var e=t._id,n=this._selectionItems;t._selection?n[e]!==t&&(this._selectionCount++,n[e]=t):n[e]===t&&(this._selectionCount--,delete n[e])},selectAll:function(){for(var t=this._children,e=0,n=t.length;e<n;e++)t[e].setFullySelected(!0)},deselectAll:function(){var t=this._selectionItems;for(var e in t)t[e].setFullySelected(!1)},addLayer:function(t){return this.insertLayer(l,t)},insertLayer:function(t,e){if(e instanceof T){e._remove(!1,!0),h.splice(this._children,[e],t,0),e._setProject(this,!0);var n=e._name;n&&e.setName(n),this._changes&&e._changed(5),this._activeLayer||(this._activeLayer=e)}else e=null;return e},_insertItem:function(t,e,n){return e=this.insertLayer(t,e)||(this._activeLayer||this._insertItem(l,new T(I.NO_INSERT),!0)).insertChild(t,e),n&&e.activate&&e.activate(),e},getItems:function(t){return I._getItems(this,t)},getItem:function(t){return I._getItems(this,t,null,null,!0)[0]||null},importJSON:function(t){this.activate();var e=this._activeLayer;return h.importJSON(t,e&&e.isEmpty()&&e)},removeOn:function(t){var e=this._removeSets;if(e){"mouseup"===t&&(e.mousedrag=null);var n=e[t];if(n){for(var i in n){var r=n[i];for(var s in e){var a=e[s];a&&a!=n&&delete a[r._id]}r.remove()}e[t]=null}}},draw:function(t,e,n){this._updateVersion++,t.save(),e.applyToContext(t);for(var i=this._children,r=new h({offset:new v(0,0),pixelRatio:n,viewMatrix:e.isIdentity()?null:e,matrices:[new S],updateMatrix:!0}),s=0,a=i.length;s<a;s++)i[s].draw(t,r);if(t.restore(),this._selectionCount>0){t.save(),t.strokeWidth=1;var l=this._selectionItems,o=this._scope.settings.handleSize,u=this._updateVersion;for(var c in l)l[c]._drawSelection(t,e,o,l,u);t.restore()}}}),I=h.extend(c,{statics:{extend:function t(e){return e._serializeFields&&(e._serializeFields=h.set({},this.prototype._serializeFields,e._serializeFields)),t.base.apply(this,arguments)},NO_INSERT:{insert:!1}},_class:"Item",_name:null,_applyMatrix:!0,_canApplyMatrix:!0,_canScaleStroke:!1,_pivot:null,_visible:!0,_blendMode:"normal",_opacity:1,_locked:!1,_guide:!1,_clipMask:!1,_selection:0,_selectBounds:!0,_selectChildren:!1,_serializeFields:{name:null,applyMatrix:null,matrix:new S,pivot:null,visible:!0,blendMode:"normal",opacity:1,locked:!1,guide:!1,clipMask:!1,selected:!1,data:{}},_prioritize:["applyMatrix"]},new function(){var t=["onMouseDown","onMouseUp","onMouseDrag","onClick","onDoubleClick","onMouseMove","onMouseEnter","onMouseLeave"];return h.each(t,function(t){this._events[t]={install:function(t){this.getView()._countItemEvent(t,1)},uninstall:function(t){this.getView()._countItemEvent(t,-1)}}},{_events:{onFrame:{install:function(){this.getView()._animateItem(this,!0)},uninstall:function(){this.getView()._animateItem(this,!1)}},onLoad:{},onError:{}},statics:{_itemHandlers:t}})},{initialize:function(){},_initialize:function(t,e){var n=t&&h.isPlainObject(t),i=n&&!0===t.internal,r=this._matrix=new S,s=n&&t.project||dt.project,a=dt.settings;return this._id=i?null:m.get(),this._parent=this._index=null,this._applyMatrix=this._canApplyMatrix&&a.applyMatrix,e&&r.translate(e),r._owner=this,this._style=new Q(s._currentStyle,this,s),i||n&&0==t.insert||!a.insertItems&&(!n||!0!==t.insert)?this._setProject(s):(n&&t.parent||s)._insertItem(l,this,!0),n&&t!==I.NO_INSERT&&this.set(t,{internal:!0,insert:!0,project:!0,parent:!0}),n},_serialize:function(t,e){var n={},i=this;function r(r){for(var s in r){var a=i[s];h.equals(a,"leading"===s?1.2*r.fontSize:r[s])||(n[s]=h.serialize(a,t,"data"!==s,e))}}return r(this._serializeFields),this instanceof P||r(this._style._defaults),[this._class,n]},_changed:function(t){var e=this._symbol,n=this._parent||e,i=this._project;8&t&&(this._bounds=this._position=this._decomposed=l),16&t&&(this._globalMatrix=l),n&&72&t&&I._clearBoundsCache(n),2&t&&I._clearBoundsCache(this),i&&i._changed(t,this),e&&e._changed(t)},getId:function(){return this._id},getName:function(){return this._name},setName:function(t){if(this._name&&this._removeNamed(),t===+t+"")throw new Error("Names consisting only of numbers are not supported.");var e=this._getOwner();if(t&&e){var n=e._children,i=e._namedChildren;(i[t]=i[t]||[]).push(this),t in n||(n[t]=this)}this._name=t||l,this._changed(256)},getStyle:function(){return this._style},setStyle:function(t){this.getStyle().set(t)}},h.each(["locked","visible","blendMode","opacity","guide"],function(t){var e=h.capitalize(t),n="_"+t,i={locked:256,visible:265};this["get"+e]=function(){return this[n]},this["set"+e]=function(e){e!=this[n]&&(this[n]=e,this._changed(i[t]||257))}},{}),{beans:!0,getSelection:function(){return this._selection},setSelection:function(t){if(t!==this._selection){this._selection=t;var e=this._project;e&&(e._updateSelection(this),this._changed(257))}},_changeSelection:function(t,e){var n=this._selection;this.setSelection(e?n|t:n&~t)},isSelected:function(){if(this._selectChildren)for(var t=this._children,e=0,n=t.length;e<n;e++)if(t[e].isSelected())return!0;return!!(1&this._selection)},setSelected:function(t){if(this._selectChildren)for(var e=this._children,n=0,i=e.length;n<i;n++)e[n].setSelected(t);this._changeSelection(1,t)},isFullySelected:function(){var t=this._children,e=!!(1&this._selection);if(t&&e){for(var n=0,i=t.length;n<i;n++)if(!t[n].isFullySelected())return!1;return!0}return e},setFullySelected:function(t){var e=this._children;if(e)for(var n=0,i=e.length;n<i;n++)e[n].setFullySelected(t);this._changeSelection(1,t)},isClipMask:function(){return this._clipMask},setClipMask:function(t){this._clipMask!=(t=!!t)&&(this._clipMask=t,t&&(this.setFillColor(null),this.setStrokeColor(null)),this._changed(257),this._parent&&this._parent._changed(2048))},getData:function(){return this._data||(this._data={}),this._data},setData:function(t){this._data=t},getPosition:function(t){var e=t?v:b,n=this._position||(this._position=this._getPositionFromBounds());return new e(n.x,n.y,this,"setPosition")},setPosition:function(){this.translate(v.read(arguments).subtract(this.getPosition(!0)))},_getPositionFromBounds:function(t){return this._pivot?this._matrix._transformPoint(this._pivot):(t||this.getBounds()).getCenter(!0)},getPivot:function(){var t=this._pivot;return t?new b(t.x,t.y,this,"setPivot"):null},setPivot:function(){this._pivot=v.read(arguments,0,{clone:!0,readNull:!0}),this._position=l}},h.each({getStrokeBounds:{stroke:!0},getHandleBounds:{handle:!0},getInternalBounds:{internal:!0}},function(t,e){this[e]=function(e){return this.getBounds(e,t)}},{beans:!0,getBounds:function(t,e){var n=e||t instanceof S,i=h.set({},n?e:t,this._boundsOptions);i.stroke&&!this.getStrokeScaling()||(i.cacheItem=this);var r=this._getCachedBounds(n&&t,i).rect;return arguments.length?r:new C(r.x,r.y,r.width,r.height,this,"setBounds")},setBounds:function(){var t=w.read(arguments),e=this.getBounds(),n=this._matrix,i=new S,r=t.getCenter();i.translate(r),t.width==e.width&&t.height==e.height||(n.isInvertible()||(n.set(n._backup||(new S).translate(n.getTranslation())),e=this.getBounds()),i.scale(0!==e.width?t.width/e.width:0,0!==e.height?t.height/e.height:0)),r=e.getCenter(),i.translate(-r.x,-r.y),this.transform(i)},_getBounds:function(t,e){var n=this._children;return n&&n.length?(I._updateBoundsCache(this,e.cacheItem),I._getBounds(n,t,e)):new w},_getBoundsCacheKey:function(t,e){return[t.stroke?1:0,t.handle?1:0,e?1:0].join("")},_getCachedBounds:function(t,e,n){t=t&&t._orNullIfIdentity();var i=e.internal&&!n,r=e.cacheItem,s=i?null:this._matrix._orNullIfIdentity(),a=r&&(!t||t.equals(s))&&this._getBoundsCacheKey(e,i),l=this._bounds;if(I._updateBoundsCache(this._parent||this._symbol,r),a&&l&&a in l)return{rect:(d=l[a]).rect.clone(),nonscaling:d.nonscaling};var o=this._getBounds(t||s,e),u=o.rect||o,h=this._style,c=o.nonscaling||h.hasStroke()&&!h.getStrokeScaling();if(a){l||(this._bounds=l={});var d=l[a]={rect:u.clone(),nonscaling:c,internal:i}}return{rect:u,nonscaling:c}},_getStrokeMatrix:function(t,e){var n=this.getStrokeScaling()?null:e&&e.internal?this:this._parent||this._symbol&&this._symbol._item,i=n?n.getViewMatrix().invert():t;return i&&i._shiftless()},statics:{_updateBoundsCache:function(t,e){if(t&&e){var n=e._id,i=t._boundsCache=t._boundsCache||{ids:{},list:[]};i.ids[n]||(i.list.push(e),i.ids[n]=e)}},_clearBoundsCache:function(t){var e=t._boundsCache;if(e){t._bounds=t._position=t._boundsCache=l;for(var n=0,i=e.list,r=i.length;n<r;n++){var s=i[n];s!==t&&(s._bounds=s._position=l,s._boundsCache&&I._clearBoundsCache(s))}}},_getBounds:function(t,e,n){var i=1/0,r=-i,s=i,a=r,l=!1;n=n||{};for(var o=0,u=t.length;o<u;o++){var h=t[o];if(h._visible&&!h.isEmpty(!0)){var c=h._getCachedBounds(e&&e.appended(h._matrix),n,!0),d=c.rect;i=Math.min(d.x,i),s=Math.min(d.y,s),r=Math.max(d.x+d.width,r),a=Math.max(d.y+d.height,a),c.nonscaling&&(l=!0)}}return{rect:isFinite(i)?new w(i,s,r-i,a-s):new w,nonscaling:l}}}}),{beans:!0,_decompose:function(){return this._applyMatrix?null:this._decomposed||(this._decomposed=this._matrix.decompose())},getRotation:function(){var t=this._decompose();return t?t.rotation:0},setRotation:function(t){var e=this.getRotation();if(null!=e&&null!=t){var n=this._decomposed;this.rotate(t-e),n&&(n.rotation=t,this._decomposed=n)}},getScaling:function(){var t=this._decompose(),e=t&&t.scaling;return new b(e?e.x:1,e?e.y:1,this,"setScaling")},setScaling:function(){var t=this.getScaling(),e=v.read(arguments,0,{clone:!0,readNull:!0});if(t&&e&&!t.equals(e)){var n=this.getRotation(),i=this._decomposed,r=new S,s=this.getPosition(!0);r.translate(s),n&&r.rotate(n),r.scale(e.x/t.x,e.y/t.y),n&&r.rotate(-n),r.translate(s.negate()),this.transform(r),i&&(i.scaling=e,this._decomposed=i)}},getMatrix:function(){return this._matrix},setMatrix:function(){var t=this._matrix;t.initialize.apply(t,arguments)},getGlobalMatrix:function(t){var e=this._globalMatrix;if(e)for(var n=this._parent,i=[];n;){if(!n._globalMatrix){e=null;for(var r=0,s=i.length;r<s;r++)i[r]._globalMatrix=null;break}i.push(n),n=n._parent}return e||(e=this._globalMatrix=this._matrix.clone(),(n=this._parent)&&e.prepend(n.getGlobalMatrix(!0))),t?e:e.clone()},getViewMatrix:function(){return this.getGlobalMatrix().prepend(this.getView()._matrix)},getApplyMatrix:function(){return this._applyMatrix},setApplyMatrix:function(t){(this._applyMatrix=this._canApplyMatrix&&!!t)&&this.transform(null,!0)},getTransformContent:"#getApplyMatrix",setTransformContent:"#setApplyMatrix"},{getProject:function(){return this._project},_setProject:function(t,e){if(this._project!==t){this._project&&this._installEvents(!1),this._project=t;for(var n=this._children,i=0,r=n&&n.length;i<r;i++)n[i]._setProject(t);e=!0}e&&this._installEvents(!0)},getView:function(){return this._project._view},_installEvents:function t(e){t.base.call(this,e);for(var n=this._children,i=0,r=n&&n.length;i<r;i++)n[i]._installEvents(e)},getLayer:function(){for(var t=this;t=t._parent;)if(t instanceof T)return t;return null},getParent:function(){return this._parent},setParent:function(t){return t.addChild(this)},_getOwner:"#getParent",getChildren:function(){return this._children},setChildren:function(t){this.removeChildren(),this.addChildren(t)},getFirstChild:function(){return this._children&&this._children[0]||null},getLastChild:function(){return this._children&&this._children[this._children.length-1]||null},getNextSibling:function(){var t=this._getOwner();return t&&t._children[this._index+1]||null},getPreviousSibling:function(){var t=this._getOwner();return t&&t._children[this._index-1]||null},getIndex:function(){return this._index},equals:function(t){return t===this||t&&this._class===t._class&&this._style.equals(t._style)&&this._matrix.equals(t._matrix)&&this._locked===t._locked&&this._visible===t._visible&&this._blendMode===t._blendMode&&this._opacity===t._opacity&&this._clipMask===t._clipMask&&this._guide===t._guide&&this._equals(t)||!1},_equals:function(t){return h.equals(this._children,t._children)},clone:function(t){var e=new this.constructor(I.NO_INSERT),n=this._children,i=h.pick(t?t.insert:l,t===l||!0===t),r=h.pick(t?t.deep:l,!0);n&&e.copyAttributes(this),n&&!r||e.copyContent(this),n||e.copyAttributes(this),i&&e.insertAbove(this);var s=this._name,a=this._parent;if(s&&a){n=a._children;for(var o=s,u=1;n[s];)s=o+" "+u++;s!==o&&e.setName(s)}return e},copyContent:function(t){for(var e=t._children,n=0,i=e&&e.length;n<i;n++)this.addChild(e[n].clone(!1),!0)},copyAttributes:function(t,e){this.setStyle(t._style);for(var n=["_locked","_visible","_blendMode","_opacity","_clipMask","_guide"],i=0,r=n.length;i<r;i++){var s=n[i];t.hasOwnProperty(s)&&(this[s]=t[s])}e||this._matrix.set(t._matrix,!0),this.setApplyMatrix(t._applyMatrix),this.setPivot(t._pivot),this.setSelection(t._selection);var a=t._data,l=t._name;this._data=a?h.clone(a):null,l&&this.setName(l)},rasterize:function(t,e){var n=this.getStrokeBounds(),i=(t||this.getView().getResolution())/72,r=n.getTopLeft().floor(),s=n.getBottomRight().ceil(),a=new y(s.subtract(r)),o=new M(I.NO_INSERT);if(!a.isZero()){var u=ot.getCanvas(a.multiply(i)),c=u.getContext("2d"),d=(new S).scale(i).translate(r.negate());c.save(),d.applyToContext(c),this.draw(c,new h({matrices:[d]})),c.restore(),o.setCanvas(u)}return o.transform((new S).translate(r.add(a.divide(2))).scale(1/i)),(e===l||e)&&o.insertAbove(this),o},contains:function(){var t=this._matrix;return t.isInvertible()&&!!this._contains(t._inverseTransform(v.read(arguments)))},_contains:function(t){var e=this._children;if(e){for(var n=e.length-1;n>=0;n--)if(e[n].contains(t))return!0;return!1}return t.isInside(this.getInternalBounds())},isInside:function(){return w.read(arguments).contains(this.getBounds())},_asPathItem:function(){return new K.Rectangle({rectangle:this.getInternalBounds(),matrix:this._matrix,insert:!1})},intersects:function(t,e){return t instanceof I&&this._asPathItem().getIntersections(t._asPathItem(),null,e,!0).length>0}},new function(){function t(){var t=arguments;return this._hitTest(v.read(t),N.getOptions(t))}function e(){var t=arguments,e=v.read(t),n=N.getOptions(t),i=[];return this._hitTest(e,new h({all:i},n)),i}function n(t,e,n,i){var r=this._children;if(r)for(var s=r.length-1;s>=0;s--){var a=r[s],l=a!==i&&a._hitTest(t,e,n);if(l&&!e.all)return l}return null}return A.inject({hitTest:t,hitTestAll:e,_hitTest:n}),{hitTest:t,hitTestAll:e,_hitTestChildren:n}},{_hitTest:function(t,e,n){if(this._locked||!this._visible||this._guide&&!e.guides||this.isEmpty())return null;var i=this._matrix,r=n?n.appended(i):this.getGlobalMatrix().prepend(this.getView()._matrix),s=Math.max(e.tolerance,1e-12),a=e._tolerancePadding=new y(K._getStrokePadding(s,i._shiftless().invert()));if(!(t=i._inverseTransform(t))||!this._children&&!this.getBounds({internal:!0,stroke:!0,handle:!0}).expand(a.multiply(2))._containsPoint(t))return null;var l,o,u=!(e.guides&&!this._guide||e.selected&&!this.isSelected()||e.type&&e.type!==h.hyphenate(this._class)||e.class&&!(this instanceof e.class)),c=e.match,d=this;function p(t){return t&&c&&!c(t)&&(t=null),t&&e.all&&e.all.push(t),t}function f(e,n){var i=n?l["get"+n]():d.getPosition();if(t.subtract(i).divide(a).length<=1)return new N(e,d,{name:n?h.hyphenate(n):e,point:i})}var g=e.position,_=e.center,m=e.bounds;if(u&&this._parent&&(g||_||m)){if((_||m)&&(l=this.getInternalBounds()),!(o=g&&f("position")||_&&f("center","Center"))&&m)for(var v=["TopLeft","TopRight","BottomLeft","BottomRight","LeftCenter","TopCenter","RightCenter","BottomCenter"],b=0;b<8&&!o;b++)o=f("bounds",v[b]);o=p(o)}return o||(o=this._hitTestChildren(t,e,r)||u&&p(this._hitTestSelf(t,e,r,this.getStrokeScaling()?null:r._shiftless().invert()))||null),o&&o.point&&(o.point=i.transform(o.point)),o},_hitTestSelf:function(t,e){if(e.fill&&this.hasFill()&&this._contains(t))return new N("fill",this)},matches:function(t,e){var n=typeof t;if("object"===n){for(var i in t)if(t.hasOwnProperty(i)&&!this.matches(i,t[i]))return!1;return!0}if("function"===n)return t(this);if("match"===t)return e(this);var r=/^(empty|editable)$/.test(t)?this["is"+h.capitalize(t)]():"type"===t?h.hyphenate(this._class):this[t];if("class"===t){if("function"==typeof e)return this instanceof e;r=this._class}if("function"==typeof e)return!!e(r);if(e){if(e.test)return e.test(r);if(h.isPlainObject(e))return function t(e,n){for(var i in e)if(e.hasOwnProperty(i)){var r=e[i],s=n[i];if(h.isPlainObject(r)&&h.isPlainObject(s)){if(!t(r,s))return!1}else if(!h.equals(r,s))return!1}return!0}(e,r)}return h.equals(r,e)},getItems:function(t){return I._getItems(this,t,this._matrix)},getItem:function(t){return I._getItems(this,t,this._matrix,null,!0)[0]||null},statics:{_getItems:function t(e,n,i,r,s){if(!r){var a="object"==typeof n&&n,l=a&&a.overlapping,o=a&&a.inside,u=(v=l||o)&&w.read([v]);r={items:[],recursive:a&&!1!==a.recursive,inside:!!o,overlapping:!!l,rect:u,path:l&&new K.Rectangle({rectangle:u,insert:!1})},a&&(n=h.filter({},n,{recursive:!0,inside:!0,overlapping:!0}))}var c=e._children,d=r.items;i=(u=r.rect)&&(i||new S);for(var p=0,f=c&&c.length;p<f;p++){var g=c[p],_=i&&i.appended(g._matrix),m=!0;if(u){var v=g.getBounds(_);if(!u.intersects(v))continue;u.contains(v)||r.overlapping&&(v.contains(u)||r.path.intersects(g,_))||(m=!1)}if(m&&g.matches(n)&&(d.push(g),s))break;if(!1!==r.recursive&&t(g,n,_,r,s),s&&d.length>0)break}return d}}},{importJSON:function(t){var e=h.importJSON(t,this);return e!==this?this.addChild(e):e},addChild:function(t){return this.insertChild(l,t)},insertChild:function(t,e){var n=e?this.insertChildren(t,[e]):null;return n&&n[0]},addChildren:function(t){return this.insertChildren(this._children.length,t)},insertChildren:function(t,e){var n=this._children;if(n&&e&&e.length>0){for(var i={},r=(e=h.slice(e)).length-1;r>=0;r--){var s=(u=e[r])&&u._id;!u||i[s]?e.splice(r,1):(u._remove(!1,!0),i[s]=!0)}h.splice(n,e,t,0);for(var a=this._project,l=a._changes,o=(r=0,e.length);r<o;r++){var u,c=(u=e[r])._name;u._parent=this,u._setProject(a,!0),c&&u.setName(c),l&&u._changed(5)}this._changed(11)}else e=null;return e},_insertItem:"#insertChild",_insertAt:function(t,e){var n=t&&t._getOwner(),i=t!==this&&n?this:null;return i&&(i._remove(!1,!0),n._insertItem(t._index+e,i)),i},insertAbove:function(t){return this._insertAt(t,1)},insertBelow:function(t){return this._insertAt(t,0)},sendToBack:function(){var t=this._getOwner();return t?t._insertItem(0,this):null},bringToFront:function(){var t=this._getOwner();return t?t._insertItem(l,this):null},appendTop:"#addChild",appendBottom:function(t){return this.insertChild(0,t)},moveAbove:"#insertAbove",moveBelow:"#insertBelow",addTo:function(t){return t._insertItem(l,this)},copyTo:function(t){return this.clone(!1).addTo(t)},reduce:function(t){var e=this._children;if(e&&1===e.length){var n=e[0].reduce(t);return this._parent?(n.insertAbove(this),this.remove()):n.remove(),n}return this},_removeNamed:function(){var t=this._getOwner();if(t){var e=t._children,n=t._namedChildren,i=this._name,r=n[i],s=r?r.indexOf(this):-1;-1!==s&&(e[i]==this&&delete e[i],r.splice(s,1),r.length?e[i]=r[0]:delete n[i])}},_remove:function(t,e){var n=this._getOwner(),i=this._project,r=this._index;return this._style&&this._style._dispose(),!!n&&(this._name&&this._removeNamed(),null!=r&&(i._activeLayer===this&&(i._activeLayer=this.getNextSibling()||this.getPreviousSibling()),h.splice(n._children,null,r,1)),this._installEvents(!1),t&&i._changes&&this._changed(5),e&&n._changed(11,this),this._parent=null,!0)},remove:function(){return this._remove(!0,!0)},replaceWith:function(t){var e=t&&t.insertBelow(this);return e&&this.remove(),e},removeChildren:function(t,e){if(!this._children)return null;t=t||0,e=h.pick(e,this._children.length);for(var n=h.splice(this._children,null,t,e-t),i=n.length-1;i>=0;i--)n[i]._remove(!0,!1);return n.length>0&&this._changed(11),n},clear:"#removeChildren",reverseChildren:function(){if(this._children){this._children.reverse();for(var t=0,e=this._children.length;t<e;t++)this._children[t]._index=t;this._changed(11)}},isEmpty:function(t){var e=this._children,n=e?e.length:0;if(t){for(var i=0;i<n;i++)if(!e[i].isEmpty(t))return!1;return!0}return!n},isEditable:function(){for(var t=this;t;){if(!t._visible||t._locked)return!1;t=t._parent}return!0},hasFill:function(){return this.getStyle().hasFill()},hasStroke:function(){return this.getStyle().hasStroke()},hasShadow:function(){return this.getStyle().hasShadow()},_getOrder:function(t){function e(t){var e=[];do{e.unshift(t)}while(t=t._parent);return e}for(var n=e(this),i=e(t),r=0,s=Math.min(n.length,i.length);r<s;r++)if(n[r]!=i[r])return n[r]._index<i[r]._index?1:-1;return 0},hasChildren:function(){return this._children&&this._children.length>0},isInserted:function(){return!!this._parent&&this._parent.isInserted()},isAbove:function(t){return-1===this._getOrder(t)},isBelow:function(t){return 1===this._getOrder(t)},isParent:function(t){return this._parent===t},isChild:function(t){return t&&t._parent===this},isDescendant:function(t){for(var e=this;e=e._parent;)if(e===t)return!0;return!1},isAncestor:function(t){return!!t&&t.isDescendant(this)},isSibling:function(t){return this._parent===t._parent},isGroupedWith:function(t){for(var e=this._parent;e;){if(e._parent&&/^(Group|Layer|CompoundPath)$/.test(e._class)&&t.isDescendant(e))return!0;e=e._parent}return!1}},h.each(["rotate","scale","shear","skew"],function(t){var e="rotate"===t;this[t]=function(){var n=arguments,i=(e?h:v).read(n),r=v.read(n,0,{readNull:!0});return this.transform((new S)[t](i,r||this.getPosition(!0)))}},{translate:function(){var t=new S;return this.transform(t.translate.apply(t,arguments))},transform:function(t,e,n){var i=this._matrix,r=t&&!t.isIdentity(),s=n&&this._canApplyMatrix||this._applyMatrix&&(r||!i.isIdentity()||e&&this._children);if(!r&&!s)return this;if(r){!t.isInvertible()&&i.isInvertible()&&(i._backup=i.getValues()),i.prepend(t,!0);var a=this._style,l=a.getFillColor(!0),o=a.getStrokeColor(!0);l&&l.transform(t),o&&o.transform(t)}if(s&&(s=this._transformContent(i,e,n))){var u=this._pivot;u&&i._transformPoint(u,u,!0),i.reset(!0),n&&this._canApplyMatrix&&(this._applyMatrix=!0)}var h=this._bounds,c=this._position;(r||s)&&this._changed(25);var d=r&&h&&t.decompose();if(d&&d.skewing.isZero()&&d.rotation%90==0){for(var p in h){var f=h[p];if(f.nonscaling)delete h[p];else if(s||!f.internal){var g=f.rect;t._transformBounds(g,g)}}this._bounds=h;var _=h[this._getBoundsCacheKey(this._boundsOptions||{})];_&&(this._position=this._getPositionFromBounds(_.rect))}else r&&c&&this._pivot&&(this._position=t._transformPoint(c,c));return this},_transformContent:function(t,e,n){var i=this._children;if(i){for(var r=0,s=i.length;r<s;r++)i[r].transform(t,e,n);return!0}},globalToLocal:function(){return this.getGlobalMatrix(!0)._inverseTransform(v.read(arguments))},localToGlobal:function(){return this.getGlobalMatrix(!0)._transformPoint(v.read(arguments))},parentToLocal:function(){return this._matrix._inverseTransform(v.read(arguments))},localToParent:function(){return this._matrix._transformPoint(v.read(arguments))},fitBounds:function(t,e){t=w.read(arguments);var n=this.getBounds(),i=n.height/n.width,r=t.height/t.width,s=(e?i>r:i<r)?t.width/n.width:t.height/n.height,a=new w(new v,new y(n.width*s,n.height*s));a.setCenter(t.getCenter()),this.setBounds(a)}}),{_setStyles:function(t,e,n){var i=this._style,r=this._matrix;if(i.hasFill()&&(t.fillStyle=i.getFillColor().toCanvasStyle(t,r)),i.hasStroke()){t.strokeStyle=i.getStrokeColor().toCanvasStyle(t,r),t.lineWidth=i.getStrokeWidth();var s=i.getStrokeJoin(),a=i.getStrokeCap(),l=i.getMiterLimit();if(s&&(t.lineJoin=s),a&&(t.lineCap=a),l&&(t.miterLimit=l),dt.support.nativeDash){var o=i.getDashArray(),u=i.getDashOffset();o&&o.length&&("setLineDash"in t?(t.setLineDash(o),t.lineDashOffset=u):(t.mozDash=o,t.mozDashOffset=u))}}if(i.hasShadow()){var h=e.pixelRatio||1,c=n._shiftless().prepend((new S).scale(h,h)),d=c.transform(new v(i.getShadowBlur(),0)),p=c.transform(this.getShadowOffset());t.shadowColor=i.getShadowColor().toCanvasStyle(t),t.shadowBlur=d.getLength(),t.shadowOffsetX=p.x,t.shadowOffsetY=p.y}},draw:function(t,e,n){if(this._updateVersion=this._project._updateVersion,this._visible&&0!==this._opacity){var i=e.matrices,r=e.viewMatrix,s=this._matrix,a=i[i.length-1].appended(s);if(a.isInvertible()){r=r?r.appended(a):a,i.push(a),e.updateMatrix&&(this._globalMatrix=a);var l,o,u,h=this._blendMode,c=this._opacity,d="normal"===h,p=ut.nativeModes[h],f=d&&1===c||e.dontStart||e.clip||(p||d&&c<1)&&this._canComposite(),g=e.pixelRatio||1;if(!f){var _=this.getStrokeBounds(r);if(!_.width||!_.height)return void i.pop();u=e.offset,o=e.offset=_.getTopLeft().floor(),l=t,t=ot.getContext(_.getSize().ceil().add(1).multiply(g)),1!==g&&t.scale(g,g)}t.save();var m=n?n.appended(s):this._canScaleStroke&&!this.getStrokeScaling(!0)&&r,v=!f&&e.clipItem,b=!m||v;if(f?(t.globalAlpha=c,p&&(t.globalCompositeOperation=h)):b&&t.translate(-o.x,-o.y),b&&(f?s:r).applyToContext(t),v&&e.clipItem.draw(t,e.extend({clip:!0})),m){t.setTransform(g,0,0,g,0,0);var y=e.offset;y&&t.translate(-y.x,-y.y)}this._draw(t,e,r,m),t.restore(),i.pop(),e.clip&&!e.dontFinish&&t.clip(this.getFillRule()),f||(ut.process(h,t,l,c,o.subtract(u).multiply(g)),ot.release(t),e.offset=u)}}},_isUpdated:function(t){var e=this._parent;if(e instanceof F)return e._isUpdated(t);var n=this._updateVersion===t;return!n&&e&&e._visible&&e._isUpdated(t)&&(this._updateVersion=t,n=!0),n},_drawSelection:function(t,e,n,i,r){var s=this._selection,a=1&s,l=2&s||a&&this._selectBounds,o=4&s;if(this._drawSelected||(a=!1),(a||l||o)&&this._isUpdated(r)){var u,h=this.getSelectedColor(!0)||(u=this.getLayer())&&u.getSelectedColor(!0),c=e.appended(this.getGlobalMatrix(!0)),d=n/2;if(t.strokeStyle=t.fillStyle=h?h.toCanvasStyle(t):"#009dec",a&&this._drawSelected(t,c,i),o){var p=this.getPosition(!0),f=this._parent,g=f?f.localToGlobal(p):p,_=g.x,m=g.y;t.beginPath(),t.arc(_,m,d,0,2*Math.PI,!0),t.stroke();for(var v=[[0,-1],[1,0],[0,1],[-1,0]],b=d,y=n+1,x=0;x<4;x++){var w=v[x],C=w[0],S=w[1];t.moveTo(_+C*b,m+S*b),t.lineTo(_+C*y,m+S*y),t.stroke()}}if(l){var k=c._transformCorners(this.getInternalBounds());for(t.beginPath(),x=0;x<8;x++)t[x?"lineTo":"moveTo"](k[x],k[++x]);for(t.closePath(),t.stroke(),x=0;x<8;x++)t.fillRect(k[x]-d,k[++x]-d,n,n)}}},_canComposite:function(){return!1}},h.each(["down","drag","up","move"],function(t){this["removeOn"+h.capitalize(t)]=function(){var e={};return e[t]=!0,this.removeOn(e)}},{removeOn:function(t){for(var e in t)if(t[e]){var n="mouse"+e,i=this._project,r=i._removeSets=i._removeSets||{};r[n]=r[n]||{},r[n][this._id]=this}return this}}),{tween:function(t,e,n){n||(n=e,e=t,t=null,n||(n=e,e=null));var i=null!=n&&("number"==typeof n?n:n.duration),r=new at(this,t,e,i,n&&n.easing,n&&n.start);return i&&this.on("frame",function t(e){r._handleFrame(1e3*e.time),r.running||this.off("frame",t)}),r},tweenTo:function(t,e){return this.tween(null,t,e)},tweenFrom:function(t,e){return this.tween(t,null,e)}}),P=I.extend({_class:"Group",_selectBounds:!1,_selectChildren:!0,_serializeFields:{children:[]},initialize:function(t){this._children=[],this._namedChildren={},this._initialize(t)||this.addChildren(Array.isArray(t)?t:arguments)},_changed:function t(e){t.base.call(this,e),2050&e&&(this._clipItem=l)},_getClipItem:function(){var t=this._clipItem;if(t===l){t=null;for(var e=this._children,n=0,i=e.length;n<i;n++)if(e[n]._clipMask){t=e[n];break}this._clipItem=t}return t},isClipped:function(){return!!this._getClipItem()},setClipped:function(t){var e=this.getFirstChild();e&&e.setClipMask(t)},_getBounds:function t(e,n){var i=this._getClipItem();return i?i._getCachedBounds(i._matrix.prepended(e),h.set({},n,{stroke:!1})):t.base.call(this,e,n)},_hitTestChildren:function t(e,n,i){var r=this._getClipItem();return(!r||r.contains(e))&&t.base.call(this,e,n,i,r)},_draw:function(t,e){var n=e.clip,i=!n&&this._getClipItem();e=e.extend({clipItem:i,clip:!1}),n?(t.beginPath(),e.dontStart=e.dontFinish=!0):i&&i.draw(t,e.extend({clip:!0}));for(var r=this._children,s=0,a=r.length;s<a;s++){var l=r[s];l!==i&&l.draw(t,e)}}}),T=P.extend({_class:"Layer",initialize:function(){P.apply(this,arguments)},_getOwner:function(){return this._parent||null!=this._index&&this._project},isInserted:function t(){return this._parent?t.base.call(this):null!=this._index},activate:function(){this._project._activeLayer=this},_hitTestSelf:function(){}}),E=I.extend({_class:"Shape",_applyMatrix:!1,_canApplyMatrix:!1,_canScaleStroke:!0,_serializeFields:{type:null,size:null,radius:null},initialize:function(t,e){this._initialize(t,e)},_equals:function(t){return this._type===t._type&&this._size.equals(t._size)&&h.equals(this._radius,t._radius)},copyContent:function(t){this.setType(t._type),this.setSize(t._size),this.setRadius(t._radius)},getType:function(){return this._type},setType:function(t){this._type=t},getShape:"#getType",setShape:"#setType",getSize:function(){var t=this._size;return new x(t.width,t.height,this,"setSize")},setSize:function(){var t=y.read(arguments);if(this._size){if(!this._size.equals(t)){var e=this._type,n=t.width,i=t.height;"rectangle"===e?this._radius.set(y.min(this._radius,t.divide(2).abs())):"circle"===e?(n=i=(n+i)/2,this._radius=n/2):"ellipse"===e&&this._radius._set(n/2,i/2),this._size._set(n,i),this._changed(9)}}else this._size=t.clone()},getRadius:function(){var t=this._radius;return"circle"===this._type?t:new x(t.width,t.height,this,"setRadius")},setRadius:function(t){var e=this._type;if("circle"===e){if(t===this._radius)return;var n=2*t;this._radius=t,this._size._set(n,n)}else if(t=y.read(arguments),this._radius){if(this._radius.equals(t))return;this._radius.set(t),"rectangle"===e?(n=y.max(this._size,t.multiply(2)),this._size.set(n)):"ellipse"===e&&this._size._set(2*t.width,2*t.height)}else this._radius=t.clone();this._changed(9)},isEmpty:function(){return!1},toPath:function(t){var e=new(K[h.capitalize(this._type)])({center:new v,size:this._size,radius:this._radius,insert:!1});return e.copyAttributes(this),dt.settings.applyMatrix&&e.setApplyMatrix(!0),(t===l||t)&&e.insertAbove(this),e},toShape:"#clone",_asPathItem:function(){return this.toPath(!1)},_draw:function(t,e,n,i){var r=this._style,s=r.hasFill(),a=r.hasStroke(),l=e.dontFinish||e.clip,o=!i;if(s||a||l){var u=this._type,h=this._radius,c="circle"===u;if(e.dontStart||t.beginPath(),o&&c)t.arc(0,0,h,0,2*Math.PI,!0);else{var d=c?h:h.width,p=c?h:h.height,f=this._size,g=f.width,_=f.height;if(o&&"rectangle"===u&&0===d&&0===p)t.rect(-g/2,-_/2,g,_);else{var m=g/2,v=_/2,b=.44771525016920644,y=d*b,x=p*b,w=[-m,-v+p,-m,-v+x,-m+y,-v,-m+d,-v,m-d,-v,m-y,-v,m,-v+x,m,-v+p,m,v-p,m,v-x,m-y,v,m-d,v,-m+d,v,-m+y,v,-m,v-x,-m,v-p];i&&i.transform(w,w,32),t.moveTo(w[0],w[1]),t.bezierCurveTo(w[2],w[3],w[4],w[5],w[6],w[7]),m!==d&&t.lineTo(w[8],w[9]),t.bezierCurveTo(w[10],w[11],w[12],w[13],w[14],w[15]),v!==p&&t.lineTo(w[16],w[17]),t.bezierCurveTo(w[18],w[19],w[20],w[21],w[22],w[23]),m!==d&&t.lineTo(w[24],w[25]),t.bezierCurveTo(w[26],w[27],w[28],w[29],w[30],w[31])}}t.closePath()}l||!s&&!a||(this._setStyles(t,e,n),s&&(t.fill(r.getFillRule()),t.shadowColor="rgba(0,0,0,0)"),a&&t.stroke())},_canComposite:function(){return!(this.hasFill()&&this.hasStroke())},_getBounds:function(t,e){var n=new w(this._size).setCenter(0,0),i=this._style,r=e.stroke&&i.hasStroke()&&i.getStrokeWidth();return t&&(n=t._transformBounds(n)),r?n.expand(K._getStrokePadding(r,this._getStrokeMatrix(t,e))):n}},new function(){function t(t,e,n){var i=t._radius;if(!i.isZero())for(var r=t._size.divide(2),s=1;s<=4;s++){var a=new v(s>1&&s<4?-1:1,s>2?-1:1),l=a.multiply(r),o=l.subtract(a.multiply(i));if(new w(n?l.add(a.multiply(n)):l,o).contains(e))return{point:o,quadrant:s}}}function e(t,e,n,i){var r=t.divide(e);return(!i||r.isInQuadrant(i))&&r.subtract(r.normalize()).multiply(e).divide(n).length<=1}return{_contains:function e(n){if("rectangle"===this._type){var i=t(this,n);return i?n.subtract(i.point).divide(this._radius).getLength()<=1:e.base.call(this,n)}return n.divide(this.size).getLength()<=.5},_hitTestSelf:function n(i,r,s,a){var l=!1,o=this._style,u=r.stroke&&o.hasStroke(),h=r.fill&&o.hasFill();if(u||h){var c=this._type,d=this._radius,p=u?o.getStrokeWidth()/2:0,f=r._tolerancePadding.add(K._getStrokePadding(p,!o.getStrokeScaling()&&a));if("rectangle"===c){var g=f.multiply(2),_=t(this,i,g);if(_)l=e(i.subtract(_.point),d,f,_.quadrant);else{var m=new w(this._size).setCenter(0,0),v=m.expand(g),b=m.expand(g.negate());l=v._containsPoint(i)&&!b._containsPoint(i)}}else l=e(i,d,f)}return l?new N(u?"stroke":"fill",this):n.base.apply(this,arguments)}}},{statics:new function(){function t(t,e,n,i,r){var s=h.create(E.prototype);return s._type=t,s._size=n,s._radius=i,s._initialize(h.getNamed(r),e),s}return{Circle:function(){var e=arguments,n=v.readNamed(e,"center"),i=h.readNamed(e,"radius");return t("circle",n,new y(2*i),i,e)},Rectangle:function(){var e=arguments,n=w.readNamed(e,"rectangle"),i=y.min(y.readNamed(e,"radius"),n.getSize(!0).divide(2));return t("rectangle",n.getCenter(!0),n.getSize(!0),i,e)},Ellipse:function(){var e=arguments,n=E._readEllipse(e),i=n.radius;return t("ellipse",n.center,i.multiply(2),i,e)},_readEllipse:function(t){var e,n;if(h.hasNamed(t,"radius"))e=v.readNamed(t,"center"),n=y.readNamed(t,"radius");else{var i=w.readNamed(t,"rectangle");e=i.getCenter(!0),n=i.getSize(!0).divide(2)}return{center:e,radius:n}}}}}),M=I.extend({_class:"Raster",_applyMatrix:!1,_canApplyMatrix:!1,_boundsOptions:{stroke:!1,handle:!1},_serializeFields:{crossOrigin:null,source:null},_prioritize:["crossOrigin"],_smoothing:!0,beans:!0,initialize:function(t,e){if(!this._initialize(t,e!==l&&v.read(arguments))){var n,i=typeof t,r="string"===i?u.getElementById(t):"object"===i?t:null;if(r&&r!==I.NO_INSERT)if(r.getContent||null!=r.naturalHeight)n=r;else if(r){var s=y.read(arguments);s.isZero()||(n=ot.getCanvas(s))}n?this.setImage(n):this.setSource(t)}this._size||(this._size=new y,this._loaded=!1)},_equals:function(t){return this.getSource()===t.getSource()},copyContent:function(t){var e=t._image,n=t._canvas;if(e)this._setImage(e);else if(n){var i=ot.getCanvas(t._size);i.getContext("2d").drawImage(n,0,0),this._setImage(i)}this._crossOrigin=t._crossOrigin},getSize:function(){var t=this._size;return new x(t?t.width:0,t?t.height:0,this,"setSize")},setSize:function(){var t=y.read(arguments);if(!t.equals(this._size))if(t.width>0&&t.height>0){var e=this.getElement();this._setImage(ot.getCanvas(t)),e&&this.getContext(!0).drawImage(e,0,0,t.width,t.height)}else this._canvas&&ot.release(this._canvas),this._size=t.clone()},getWidth:function(){return this._size?this._size.width:0},setWidth:function(t){this.setSize(t,this.getHeight())},getHeight:function(){return this._size?this._size.height:0},setHeight:function(t){this.setSize(this.getWidth(),t)},getLoaded:function(){return this._loaded},isEmpty:function(){var t=this._size;return!t||0===t.width&&0===t.height},getResolution:function(){var t=this._matrix,e=new v(0,0).transform(t),n=new v(1,0).transform(t).subtract(e),i=new v(0,1).transform(t).subtract(e);return new y(72/n.getLength(),72/i.getLength())},getPpi:"#getResolution",getImage:function(){return this._image},setImage:function(t){var e=this;function n(t){var n=e.getView(),i=t&&t.type||"load";n&&e.responds(i)&&(dt=n._scope,e.emit(i,new tt(t)))}this._setImage(t),this._loaded?setTimeout(n,0):t&&$.add(t,{load:function(i){e._setImage(t),n(i)},error:n})},_setImage:function(t){this._canvas&&ot.release(this._canvas),t&&t.getContext?(this._image=null,this._canvas=t,this._loaded=!0):(this._image=t,this._canvas=null,this._loaded=!!(t&&t.src&&t.complete)),this._size=new y(t?t.naturalWidth||t.width:0,t?t.naturalHeight||t.height:0),this._context=null,this._changed(1033)},getCanvas:function(){if(!this._canvas){var t=ot.getContext(this._size);try{this._image&&t.drawImage(this._image,0,0),this._canvas=t.canvas}catch(e){ot.release(t)}}return this._canvas},setCanvas:"#setImage",getContext:function(t){return this._context||(this._context=this.getCanvas().getContext("2d")),t&&(this._image=null,this._changed(1025)),this._context},setContext:function(t){this._context=t},getSource:function(){var t=this._image;return t&&t.src||this.toDataURL()},setSource:function(t){var e=new a.Image,n=this._crossOrigin;n&&(e.crossOrigin=n),t&&(e.src=t),this.setImage(e)},getCrossOrigin:function(){var t=this._image;return t&&t.crossOrigin||this._crossOrigin||""},setCrossOrigin:function(t){this._crossOrigin=t;var e=this._image;e&&(e.crossOrigin=t)},getSmoothing:function(){return this._smoothing},setSmoothing:function(t){this._smoothing=t,this._changed(257)},getElement:function(){return this._canvas||this._loaded&&this._image}},{beans:!1,getSubCanvas:function(){var t=w.read(arguments),e=ot.getContext(t.getSize());return e.drawImage(this.getCanvas(),t.x,t.y,t.width,t.height,0,0,t.width,t.height),e.canvas},getSubRaster:function(){var t=w.read(arguments),e=new M(I.NO_INSERT);return e._setImage(this.getSubCanvas(t)),e.translate(t.getCenter().subtract(this.getSize().divide(2))),e._matrix.prepend(this._matrix),e.insertAbove(this),e},toDataURL:function(){var t=this._image,e=t&&t.src;if(/^data:/.test(e))return e;var n=this.getCanvas();return n?n.toDataURL.apply(n,arguments):null},drawImage:function(t){var e=v.read(arguments,1);this.getContext(!0).drawImage(t,e.x,e.y)},getAverageColor:function(t){var e,n;if(t?t instanceof z?(n=t,e=t.getBounds()):"object"==typeof t&&("width"in t?e=new w(t):"x"in t&&(e=new w(t.x-.5,t.y-.5,1,1))):e=this.getBounds(),!e)return null;var i=Math.min(e.width,32),r=Math.min(e.height,32),s=M._sampleContext;s?s.clearRect(0,0,33,33):s=M._sampleContext=ot.getContext(new y(32)),s.save();var a=(new S).scale(i/e.width,r/e.height).translate(-e.x,-e.y);a.applyToContext(s),n&&n.draw(s,new h({clip:!0,matrices:[a]})),this._matrix.applyToContext(s);var l=this.getElement(),o=this._size;l&&s.drawImage(l,-o.width/2,-o.height/2),s.restore();for(var u=s.getImageData(.5,.5,Math.ceil(i),Math.ceil(r)).data,c=[0,0,0],d=0,p=0,f=u.length;p<f;p+=4){var g=u[p+3];d+=g,c[0]+=u[p]*(g/=255),c[1]+=u[p+1]*g,c[2]+=u[p+2]*g}for(p=0;p<3;p++)c[p]/=d;return d?G.read(c):null},getPixel:function(){var t=v.read(arguments),e=this.getContext().getImageData(t.x,t.y,1,1).data;return new G("rgb",[e[0]/255,e[1]/255,e[2]/255],e[3]/255)},setPixel:function(){var t=arguments,e=v.read(t),n=G.read(t),i=n._convert("rgb"),r=n._alpha,s=this.getContext(!0),a=s.createImageData(1,1),l=a.data;l[0]=255*i[0],l[1]=255*i[1],l[2]=255*i[2],l[3]=null!=r?255*r:255,s.putImageData(a,e.x,e.y)},clear:function(){var t=this._size;this.getContext(!0).clearRect(0,0,t.width+1,t.height+1)},createImageData:function(){var t=y.read(arguments);return this.getContext().createImageData(t.width,t.height)},getImageData:function(){var t=w.read(arguments);return t.isEmpty()&&(t=new w(this._size)),this.getContext().getImageData(t.x,t.y,t.width,t.height)},setImageData:function(t){var e=v.read(arguments,1);this.getContext(!0).putImageData(t,e.x,e.y)},_getBounds:function(t,e){var n=new w(this._size).setCenter(0,0);return t?t._transformBounds(n):n},_hitTestSelf:function(t){if(this._contains(t)){var e=this;return new N("pixel",e,{offset:t.add(e._size.divide(2)).round(),color:{get:function(){return e.getPixel(this.offset)}}})}},_draw:function(t,e,n){var i=this.getElement();i&&i.width>0&&i.height>0&&(t.globalAlpha=this._opacity,this._setStyles(t,e,n),X.setPrefixed(t,"imageSmoothingEnabled",this._smoothing),t.drawImage(i,-this._size.width/2,-this._size.height/2))},_canComposite:function(){return!0}}),L=I.extend({_class:"SymbolItem",_applyMatrix:!1,_canApplyMatrix:!1,_boundsOptions:{stroke:!0},_serializeFields:{symbol:null},initialize:function(t,e){this._initialize(t,e!==l&&v.read(arguments,1))||this.setDefinition(t instanceof O?t:new O(t))},_equals:function(t){return this._definition===t._definition},copyContent:function(t){this.setDefinition(t._definition)},getDefinition:function(){return this._definition},setDefinition:function(t){this._definition=t,this._changed(9)},getSymbol:"#getDefinition",setSymbol:"#setDefinition",isEmpty:function(){return this._definition._item.isEmpty()},_getBounds:function(t,e){var n=this._definition._item;return n._getCachedBounds(n._matrix.prepended(t),e)},_hitTestSelf:function(t,e,n){var i=e.extend({all:!1}),r=this._definition._item._hitTest(t,i,n);return r&&(r.item=this),r},_draw:function(t,e){this._definition._item.draw(t,e)}}),O=h.extend({_class:"SymbolDefinition",initialize:function(t,e){this._id=m.get(),this.project=dt.project,t&&this.setItem(t,e)},_serialize:function(t,e){return e.add(this,function(){return h.serialize([this._class,this._item],t,!1,e)})},_changed:function(t){8&t&&I._clearBoundsCache(this),1&t&&this.project._changed(t)},getItem:function(){return this._item},setItem:function(t,e){t._symbol&&(t=t.clone()),this._item&&(this._item._symbol=null),this._item=t,t.remove(),t.setSelected(!1),e||t.setPosition(new v),t._symbol=this,this._changed(9)},getDefinition:"#getItem",setDefinition:"#setItem",place:function(t){return new L(this,t)},clone:function(){return new O(this._item.clone(!1))},equals:function(t){return t===this||t&&this._item.equals(t._item)||!1}}),N=h.extend({_class:"HitResult",initialize:function(t,e,n){this.type=t,this.item=e,n&&this.inject(n)},statics:{getOptions:function(t){var e=t&&h.read(t);return new h({type:null,tolerance:dt.settings.hitTolerance,fill:!e,stroke:!e,segments:!e,handles:!1,ends:!1,position:!1,center:!1,bounds:!1,guides:!1,selected:!1},e)}}}),B=h.extend({_class:"Segment",beans:!0,_selection:0,initialize:function(t,e,n,i,r,s){var a,o,u,h,c=arguments.length;c>0&&(null==t||"object"==typeof t?1===c&&t&&"point"in t?(a=t.point,o=t.handleIn,u=t.handleOut,h=t.selection):(a=t,o=e,u=n,h=i):(a=[t,e],o=n!==l?[n,i]:null,u=r!==l?[r,s]:null)),new D(a,this,"_point"),new D(o,this,"_handleIn"),new D(u,this,"_handleOut"),h&&this.setSelection(h)},_serialize:function(t,e){var n=this._point,i=this._selection,r=i||this.hasHandles()?[n,this._handleIn,this._handleOut]:n;return i&&r.push(i),h.serialize(r,t,!0,e)},_changed:function(t){var e=this._path;if(e){var n,i=e._curves,r=this._index;i&&(t&&t!==this._point&&t!==this._handleIn||!(n=r>0?i[r-1]:e._closed?i[i.length-1]:null)||n._changed(),t&&t!==this._point&&t!==this._handleOut||!(n=i[r])||n._changed()),e._changed(41)}},getPoint:function(){return this._point},setPoint:function(){this._point.set(v.read(arguments))},getHandleIn:function(){return this._handleIn},setHandleIn:function(){this._handleIn.set(v.read(arguments))},getHandleOut:function(){return this._handleOut},setHandleOut:function(){this._handleOut.set(v.read(arguments))},hasHandles:function(){return!this._handleIn.isZero()||!this._handleOut.isZero()},isSmooth:function(){var t=this._handleIn,e=this._handleOut;return!t.isZero()&&!e.isZero()&&t.isCollinear(e)},clearHandles:function(){this._handleIn._set(0,0),this._handleOut._set(0,0)},getSelection:function(){return this._selection},setSelection:function(t){var e=this._selection,n=this._path;this._selection=t=t||0,n&&t!==e&&(n._updateSelection(this,e,t),n._changed(257))},_changeSelection:function(t,e){var n=this._selection;this.setSelection(e?n|t:n&~t)},isSelected:function(){return!!(7&this._selection)},setSelected:function(t){this._changeSelection(7,t)},getIndex:function(){return this._index!==l?this._index:null},getPath:function(){return this._path||null},getCurve:function(){var t=this._path,e=this._index;return t?(e>0&&!t._closed&&e===t._segments.length-1&&e--,t.getCurves()[e]||null):null},getLocation:function(){var t=this.getCurve();return t?new V(t,this===t._segment1?0:1):null},getNext:function(){var t=this._path&&this._path._segments;return t&&(t[this._index+1]||this._path._closed&&t[0])||null},smooth:function(t,e,n){var i=t||{},r=i.type,s=i.factor,a=this.getPrevious(),o=this.getNext(),u=(a||this)._point,h=this._point,c=(o||this)._point,d=u.getDistance(h),p=h.getDistance(c);if(r&&"catmull-rom"!==r){if("geometric"!==r)throw new Error("Smoothing method '"+r+"' not supported.");if(a&&o){var f=u.subtract(c),g=s===l?.4:s,_=g*d/(d+p);e||this.setHandleIn(f.multiply(_)),n||this.setHandleOut(f.multiply(_-g))}}else{var m,b=s===l?.5:s,y=Math.pow(d,b),x=y*y,w=Math.pow(p,b),C=w*w;if(!e&&a){var S=2*C+3*w*y+x;this.setHandleIn(0!=(m=3*w*(w+y))?new v((C*u._x+S*h._x-x*c._x)/m-h._x,(C*u._y+S*h._y-x*c._y)/m-h._y):new v)}!n&&o&&(S=2*x+3*y*w+C,this.setHandleOut(0!=(m=3*y*(y+w))?new v((x*c._x+S*h._x-C*u._x)/m-h._x,(x*c._y+S*h._y-C*u._y)/m-h._y):new v))}},getPrevious:function(){var t=this._path&&this._path._segments;return t&&(t[this._index-1]||this._path._closed&&t[t.length-1])||null},isFirst:function(){return!this._index},isLast:function(){var t=this._path;return t&&this._index===t._segments.length-1||!1},reverse:function(){var t=this._handleIn,e=this._handleOut,n=t.clone();t.set(e),e.set(n)},reversed:function(){return new B(this._point,this._handleOut,this._handleIn)},remove:function(){return!!this._path&&!!this._path.removeSegment(this._index)},clone:function(){return new B(this._point,this._handleIn,this._handleOut)},equals:function(t){return t===this||t&&this._class===t._class&&this._point.equals(t._point)&&this._handleIn.equals(t._handleIn)&&this._handleOut.equals(t._handleOut)||!1},toString:function(){var t=["point: "+this._point];return this._handleIn.isZero()||t.push("handleIn: "+this._handleIn),this._handleOut.isZero()||t.push("handleOut: "+this._handleOut),"{ "+t.join(", ")+" }"},transform:function(t){this._transformCoordinates(t,new Array(6),!0),this._changed()},interpolate:function(t,e,n){var i=1-n,r=n,s=t._point,a=e._point,l=t._handleIn,o=e._handleIn,u=e._handleOut,h=t._handleOut;this._point._set(i*s._x+r*a._x,i*s._y+r*a._y,!0),this._handleIn._set(i*l._x+r*o._x,i*l._y+r*o._y,!0),this._handleOut._set(i*h._x+r*u._x,i*h._y+r*u._y,!0),this._changed()},_transformCoordinates:function(t,e,n){var i=this._point,r=n&&this._handleIn.isZero()?null:this._handleIn,s=n&&this._handleOut.isZero()?null:this._handleOut,a=i._x,l=i._y,o=2;return e[0]=a,e[1]=l,r&&(e[o++]=r._x+a,e[o++]=r._y+l),s&&(e[o++]=s._x+a,e[o++]=s._y+l),t&&(t._transformCoordinates(e,e,o/2),a=e[0],l=e[1],n?(i._x=a,i._y=l,o=2,r&&(r._x=e[o++]-a,r._y=e[o++]-l),s&&(s._x=e[o++]-a,s._y=e[o++]-l)):(r||(e[o++]=a,e[o++]=l),s||(e[o++]=a,e[o++]=l))),e}}),D=v.extend({initialize:function(t,e,n){var i,r,s;if(t)if((i=t[0])!==l)r=t[1];else{var a=t;(i=a.x)===l&&(i=(a=v.read(arguments)).x),r=a.y,s=a.selected}else i=r=0;this._x=i,this._y=r,this._owner=e,e[n]=this,s&&this.setSelected(!0)},_set:function(t,e){return this._x=t,this._y=e,this._owner._changed(this),this},getX:function(){return this._x},setX:function(t){this._x=t,this._owner._changed(this)},getY:function(){return this._y},setY:function(t){this._y=t,this._owner._changed(this)},isZero:function(){var t=_.isZero;return t(this._x)&&t(this._y)},isSelected:function(){return!!(this._owner._selection&this._getSelection())},setSelected:function(t){this._owner._changeSelection(this._getSelection(),t)},_getSelection:function(){var t=this._owner;return this===t._point?1:this===t._handleIn?2:this===t._handleOut?4:0}}),R=h.extend({_class:"Curve",beans:!0,initialize:function(t,e,n,i,r,s,a,l){var o,u,h,c,d,p,f=arguments.length;3===f?(this._path=t,o=e,u=n):f?1===f?"segment1"in t?(o=new B(t.segment1),u=new B(t.segment2)):"point1"in t?(h=t.point1,d=t.handle1,p=t.handle2,c=t.point2):Array.isArray(t)&&(h=[t[0],t[1]],c=[t[6],t[7]],d=[t[2]-t[0],t[3]-t[1]],p=[t[4]-t[6],t[5]-t[7]]):2===f?(o=new B(t),u=new B(e)):4===f?(h=t,d=e,p=n,c=i):8===f&&(h=[t,e],c=[a,l],d=[n-t,i-e],p=[r-a,s-l]):(o=new B,u=new B),this._segment1=o||new B(h,null,d),this._segment2=u||new B(c,p,null)},_serialize:function(t,e){return h.serialize(this.hasHandles()?[this.getPoint1(),this.getHandle1(),this.getHandle2(),this.getPoint2()]:[this.getPoint1(),this.getPoint2()],t,!0,e)},_changed:function(){this._length=this._bounds=l},clone:function(){return new R(this._segment1,this._segment2)},toString:function(){var t=["point1: "+this._segment1._point];return this._segment1._handleOut.isZero()||t.push("handle1: "+this._segment1._handleOut),this._segment2._handleIn.isZero()||t.push("handle2: "+this._segment2._handleIn),t.push("point2: "+this._segment2._point),"{ "+t.join(", ")+" }"},classify:function(){return R.classify(this.getValues())},remove:function(){var t=!1;if(this._path){var e=this._segment2,n=e._handleOut;(t=e.remove())&&this._segment1._handleOut.set(n)}return t},getPoint1:function(){return this._segment1._point},setPoint1:function(){this._segment1._point.set(v.read(arguments))},getPoint2:function(){return this._segment2._point},setPoint2:function(){this._segment2._point.set(v.read(arguments))},getHandle1:function(){return this._segment1._handleOut},setHandle1:function(){this._segment1._handleOut.set(v.read(arguments))},getHandle2:function(){return this._segment2._handleIn},setHandle2:function(){this._segment2._handleIn.set(v.read(arguments))},getSegment1:function(){return this._segment1},getSegment2:function(){return this._segment2},getPath:function(){return this._path},getIndex:function(){return this._segment1._index},getNext:function(){var t=this._path&&this._path._curves;return t&&(t[this._segment1._index+1]||this._path._closed&&t[0])||null},getPrevious:function(){var t=this._path&&this._path._curves;return t&&(t[this._segment1._index-1]||this._path._closed&&t[t.length-1])||null},isFirst:function(){return!this._segment1._index},isLast:function(){var t=this._path;return t&&this._segment1._index===t._curves.length-1||!1},isSelected:function(){return this.getPoint1().isSelected()&&this.getHandle1().isSelected()&&this.getHandle2().isSelected()&&this.getPoint2().isSelected()},setSelected:function(t){this.getPoint1().setSelected(t),this.getHandle1().setSelected(t),this.getHandle2().setSelected(t),this.getPoint2().setSelected(t)},getValues:function(t){return R.getValues(this._segment1,this._segment2,t)},getPoints:function(){for(var t=this.getValues(),e=[],n=0;n<8;n+=2)e.push(new v(t[n],t[n+1]));return e}},{getLength:function(){return null==this._length&&(this._length=R.getLength(this.getValues(),0,1)),this._length},getArea:function(){return R.getArea(this.getValues())},getLine:function(){return new k(this._segment1._point,this._segment2._point)},getPart:function(t,e){return new R(R.getPart(this.getValues(),t,e))},getPartLength:function(t,e){return R.getLength(this.getValues(),t,e)},divideAt:function(t){return this.divideAtTime(t&&t.curve===this?t.time:this.getTimeAt(t))},divideAtTime:function(t,e){var n=null;if(t>=1e-8&&t<=1-1e-8){var i=R.subdivide(this.getValues(),t),r=i[0],s=i[1],a=e||this.hasHandles(),l=this._segment1,o=this._segment2,u=this._path;a&&(l._handleOut._set(r[2]-r[0],r[3]-r[1]),o._handleIn._set(s[4]-s[6],s[5]-s[7]));var h=r[6],c=r[7],d=new B(new v(h,c),a&&new v(r[4]-h,r[5]-c),a&&new v(s[2]-h,s[3]-c));u?(u.insert(l._index+1,d),n=this.getNext()):(this._segment2=d,this._changed(),n=new R(d,o))}return n},splitAt:function(t){var e=this._path;return e?e.splitAt(t):null},splitAtTime:function(t){return this.splitAt(this.getLocationAtTime(t))},divide:function(t,e){return this.divideAtTime(t===l?.5:e?t:this.getTimeAt(t))},split:function(t,e){return this.splitAtTime(t===l?.5:e?t:this.getTimeAt(t))},reversed:function(){return new R(this._segment2.reversed(),this._segment1.reversed())},clearHandles:function(){this._segment1._handleOut._set(0,0),this._segment2._handleIn._set(0,0)},statics:{getValues:function(t,e,n,i){var r=t._point,s=t._handleOut,a=e._handleIn,l=e._point,o=r.x,u=r.y,h=l.x,c=l.y,d=i?[o,u,o,u,h,c,h,c]:[o,u,o+s._x,u+s._y,h+a._x,c+a._y,h,c];return n&&n._transformCoordinates(d,d,4),d},subdivide:function(t,e){var n=t[0],i=t[1],r=t[2],s=t[3],a=t[4],o=t[5],u=t[6],h=t[7];e===l&&(e=.5);var c=1-e,d=c*n+e*r,p=c*i+e*s,f=c*r+e*a,g=c*s+e*o,_=c*a+e*u,m=c*o+e*h,v=c*d+e*f,b=c*p+e*g,y=c*f+e*_,x=c*g+e*m,w=c*v+e*y,C=c*b+e*x;return[[n,i,d,p,v,b,w,C],[w,C,y,x,_,m,u,h]]},getMonoCurves:function(t,e){var n=[],i=e?0:1,r=t[i+0],s=t[i+2],a=t[i+4],l=t[i+6];if(r>=s==s>=a&&s>=a==a>=l||R.isStraight(t))n.push(t);else{var o=[],u=_.solveQuadratic(3*(s-a)-r+l,2*(r+a)-4*s,s-r,o,1e-8,1-1e-8);if(u){o.sort();var h=o[0],c=R.subdivide(t,h);n.push(c[0]),u>1&&(c=R.subdivide(c[1],h=(o[1]-h)/(1-h)),n.push(c[0])),n.push(c[1])}else n.push(t)}return n},solveCubic:function(t,e,n,i,r,s){var a=t[e],l=t[e+2],o=t[e+4],u=t[e+6],h=0;if(!(a<n&&u<n&&l<n&&o<n||a>n&&u>n&&l>n&&o>n)){var c=3*(l-a),d=3*(o-l)-c;h=_.solveCubic(u-a-c-d,d,c,a-n,i,r,s)}return h},getTimeOf:function(t,e){var n=new v(t[0],t[1]),i=new v(t[6],t[7]);if(null===(e.isClose(n,1e-12)?0:e.isClose(i,1e-12)?1:null))for(var r=[e.x,e.y],s=[],a=0;a<2;a++)for(var l=R.solveCubic(t,a,r[a],s,0,1),o=0;o<l;o++){var u=s[o];if(e.isClose(R.getPoint(t,u),1e-7))return u}return e.isClose(n,1e-7)?0:e.isClose(i,1e-7)?1:null},getNearestTime:function(t,e){if(R.isStraight(t)){var n=t[0],i=t[1],r=t[6]-n,s=t[7]-i,a=r*r+s*s;if(0===a)return 0;var l=((e.x-n)*r+(e.y-i)*s)/a;return l<1e-12?0:l>.999999999999?1:R.getTimeOf(t,new v(n+l*r,i+l*s))}var o=1/0,u=0;function h(n){if(n>=0&&n<=1){var i=e.getDistance(R.getPoint(t,n),!0);if(i<o)return o=i,u=n,!0}}for(var c=0;c<=100;c++)h(c/100);for(var d=.005;d>1e-8;)h(u-d)||h(u+d)||(d/=2);return u},getPart:function(t,e,n){var i=e>n;if(i){var r=e;e=n,n=r}return e>0&&(t=R.subdivide(t,e)[1]),n<1&&(t=R.subdivide(t,(n-e)/(1-e))[0]),i?[t[6],t[7],t[4],t[5],t[2],t[3],t[0],t[1]]:t},isFlatEnough:function(t,e){var n=t[0],i=t[1],r=t[6],s=t[7],a=3*t[2]-2*n-r,l=3*t[3]-2*i-s,o=3*t[4]-2*r-n,u=3*t[5]-2*s-i;return Math.max(a*a,o*o)+Math.max(l*l,u*u)<=16*e*e},getArea:function(t){var e=t[0],n=t[1],i=t[2],r=t[3],s=t[4],a=t[5],l=t[6],o=t[7];return 3*((o-n)*(i+s)-(l-e)*(r+a)+r*(e-s)-i*(n-a)+o*(s+e/3)-l*(a+n/3))/20},getBounds:function(t){for(var e=t.slice(0,2),n=e.slice(),i=[0,0],r=0;r<2;r++)R._addBounds(t[r],t[r+2],t[r+4],t[r+6],r,0,e,n,i);return new w(e[0],e[1],n[0]-e[0],n[1]-e[1])},_addBounds:function(t,e,n,i,r,s,a,l,o){function u(t,e){var n=t-e,i=t+e;n<a[r]&&(a[r]=n),i>l[r]&&(l[r]=i)}var h=a[r]-(s/=2),c=l[r]+s;if(t<h||e<h||n<h||i<h||t>c||e>c||n>c||i>c)if(e<t!=e<i&&n<t!=n<i)u(t,s),u(i,s);else{var d=_.solveQuadratic(3*(e-n)-t+i,2*(t+n)-4*e,e-t,o);u(i,0);for(var p=0;p<d;p++){var f=o[p],g=1-f;1e-8<=f&&f<=1-1e-8&&u(g*g*g*t+3*g*g*f*e+3*g*f*f*n+f*f*f*i,s)}}}}},h.each(["getBounds","getStrokeBounds","getHandleBounds"],function(t){this[t]=function(){this._bounds||(this._bounds={});var e=this._bounds[t];return e||(e=this._bounds[t]=K[t]([this._segment1,this._segment2],!1,this._path)),e.clone()}},{}),h.each({isStraight:function(t,e,n,i){if(e.isZero()&&n.isZero())return!0;var r=i.subtract(t);if(r.isZero())return!1;if(r.isCollinear(e)&&r.isCollinear(n)){var s=new k(t,i);if(s.getDistance(t.add(e))<1e-7&&s.getDistance(i.add(n))<1e-7){var a=r.dot(r),l=r.dot(e)/a,o=r.dot(n)/a;return l>=0&&l<=1&&o<=0&&o>=-1}}return!1},isLinear:function(t,e,n,i){var r=i.subtract(t).divide(3);return e.equals(r)&&n.negate().equals(r)}},function(t,e){this[e]=function(e){var n=this._segment1,i=this._segment2;return t(n._point,n._handleOut,i._handleIn,i._point,e)},this.statics[e]=function(e,n){var i=e[0],r=e[1],s=e[6],a=e[7];return t(new v(i,r),new v(e[2]-i,e[3]-r),new v(e[4]-s,e[5]-a),new v(s,a),n)}},{statics:{},hasHandles:function(){return!this._segment1._handleOut.isZero()||!this._segment2._handleIn.isZero()},hasLength:function(t){return(!this.getPoint1().equals(this.getPoint2())||this.hasHandles())&&this.getLength()>(t||0)},isCollinear:function(t){return t&&this.isStraight()&&t.isStraight()&&this.getLine().isCollinear(t.getLine())},isHorizontal:function(){return this.isStraight()&&Math.abs(this.getTangentAtTime(.5).y)<1e-8},isVertical:function(){return this.isStraight()&&Math.abs(this.getTangentAtTime(.5).x)<1e-8}}),{beans:!1,getLocationAt:function(t,e){return this.getLocationAtTime(e?t:this.getTimeAt(t))},getLocationAtTime:function(t){return null!=t&&t>=0&&t<=1?new V(this,t):null},getTimeAt:function(t,e){return R.getTimeAt(this.getValues(),t,e)},getParameterAt:"#getTimeAt",getTimesWithTangent:function(){var t=v.read(arguments);return t.isZero()?[]:R.getTimesWithTangent(this.getValues(),t)},getOffsetAtTime:function(t){return this.getPartLength(0,t)},getLocationOf:function(){return this.getLocationAtTime(this.getTimeOf(v.read(arguments)))},getOffsetOf:function(){var t=this.getLocationOf.apply(this,arguments);return t?t.getOffset():null},getTimeOf:function(){return R.getTimeOf(this.getValues(),v.read(arguments))},getParameterOf:"#getTimeOf",getNearestLocation:function(){var t=v.read(arguments),e=this.getValues(),n=R.getNearestTime(e,t),i=R.getPoint(e,n);return new V(this,n,i,null,t.getDistance(i))},getNearestPoint:function(){var t=this.getNearestLocation.apply(this,arguments);return t?t.getPoint():t}},new function(){var t=["getPoint","getTangent","getNormal","getWeightedTangent","getWeightedNormal","getCurvature"];return h.each(t,function(t){this[t+"At"]=function(e,n){var i=this.getValues();return R[t](i,n?e:R.getTimeAt(i,e))},this[t+"AtTime"]=function(e){return R[t](this.getValues(),e)}},{statics:{_evaluateMethods:t}})},new function(){function t(t){var e=t[0],n=t[1],i=t[2],r=t[3],s=t[4],a=t[5],l=9*(i-s)+3*(t[6]-e),o=6*(e+s)-12*i,u=3*(i-e),h=9*(r-a)+3*(t[7]-n),c=6*(n+a)-12*r,d=3*(r-n);return function(t){var e=(l*t+o)*t+u,n=(h*t+c)*t+d;return Math.sqrt(e*e+n*n)}}function e(t,e){return Math.max(2,Math.min(16,Math.ceil(32*Math.abs(e-t))))}function n(t,e,n,i){if(null==e||e<0||e>1)return null;var r=t[0],s=t[1],a=t[2],l=t[3],o=t[4],u=t[5],h=t[6],c=t[7],d=_.isZero;d(a-r)&&d(l-s)&&(a=r,l=s),d(o-h)&&d(u-c)&&(o=h,u=c);var p,f,g=3*(a-r),m=3*(o-a)-g,b=h-r-g-m,y=3*(l-s),x=3*(u-l)-y,w=c-s-y-x;if(0===n)p=0===e?r:1===e?h:((b*e+m)*e+g)*e+r,f=0===e?s:1===e?c:((w*e+x)*e+y)*e+s;else{if(e<1e-8?(p=g,f=y):e>1-1e-8?(p=3*(h-o),f=3*(c-u)):(p=(3*b*e+2*m)*e+g,f=(3*w*e+2*x)*e+y),i){0===p&&0===f&&(e<1e-8||e>1-1e-8)&&(p=o-a,f=u-l);var C=Math.sqrt(p*p+f*f);C&&(p/=C,f/=C)}if(3===n){o=6*b*e+2*m,u=6*w*e+2*x;var S=Math.pow(p*p+f*f,1.5);p=0!==S?(p*u-f*o)/S:0,f=0}}return 2===n?new v(f,-p):new v(p,f)}return{statics:{classify:function(t){var e=t[0],n=t[1],i=t[2],r=t[3],s=t[4],a=t[5],o=t[6],u=t[7],h=i*(n-u)+r*(o-e)+e*u-n*o,c=3*(s*(r-n)+a*(e-i)+i*n-r*e),d=c-h,p=d-h+(e*(u-a)+n*(s-o)+o*a-u*s),f=Math.sqrt(p*p+d*d+c*c),g=0!==f?1/f:0,m=_.isZero;function v(t,e,n){var i=e!==l,r=i&&e>0&&e<1,s=i&&n>0&&n<1;return!i||(r||s)&&("loop"!==t||r&&s)||(t="arch",r=s=!1),{type:t,roots:r||s?r&&s?e<n?[e,n]:[n,e]:[r?e:n]:null}}if(d*=g,c*=g,m(p*=g))return m(d)?v(m(c)?"line":"quadratic"):v("serpentine",c/(3*d));var b=3*d*d-4*p*c;if(m(b))return v("cusp",d/(2*p));var y=b>0?Math.sqrt(b/3):Math.sqrt(-b),x=2*p;return v(b>0?"serpentine":"loop",(d+y)/x,(d-y)/x)},getLength:function(n,i,r,s){if(i===l&&(i=0),r===l&&(r=1),R.isStraight(n)){var a=n;r<1&&(a=R.subdivide(a,r)[0],i/=r),i>0&&(a=R.subdivide(a,i)[1]);var o=a[6]-a[0],u=a[7]-a[1];return Math.sqrt(o*o+u*u)}return _.integrate(s||t(n),i,r,e(i,r))},getTimeAt:function(n,i,r){if(r===l&&(r=i<0?1:0),0===i)return r;var s=Math.abs,a=i>0,o=a?r:0,u=a?1:r,h=t(n),c=R.getLength(n,o,u,h),d=s(i)-c;if(s(d)<1e-12)return a?u:o;if(d>1e-12)return null;var p=0;return _.findRoot(function(t){return p+=_.integrate(h,r,t,e(r,t)),r=t,p-i},h,r+i/c,o,u,32,1e-12)},getPoint:function(t,e){return n(t,e,0,!1)},getTangent:function(t,e){return n(t,e,1,!0)},getWeightedTangent:function(t,e){return n(t,e,1,!1)},getNormal:function(t,e){return n(t,e,2,!0)},getWeightedNormal:function(t,e){return n(t,e,2,!1)},getCurvature:function(t,e){return n(t,e,3,!1).x},getPeaks:function(t){var e=t[0],n=t[1],i=t[2],r=t[3],s=t[4],a=t[5],l=3*i-e-3*s+t[6],o=3*e-6*i+3*s,u=-3*e+3*i,h=3*r-n-3*a+t[7],c=3*n-6*r+3*a,d=-3*n+3*r,p=[];return _.solveCubic(9*(l*l+h*h),9*(l*o+c*h),2*(o*o+c*c)+3*(u*l+d*h),u*o+c*d,p,1e-8,1-1e-8),p.sort()}}}},new function(){function t(t,e,n,i,r,s,a){var l=!a&&n.getPrevious()===r,o=!a&&n!==r&&n.getNext()===r;if(null!==i&&i>=(l?1e-8:0)&&i<=(o?1-1e-8:1)&&null!==s&&s>=(o?1e-8:0)&&s<=(l?1-1e-8:1)){var u=new V(n,i,null,a),h=new V(r,s,null,a);u._intersection=h,h._intersection=u,e&&!e(u)||V.insert(t,u,!0)}}function e(t,e,i,r){return t[0][1]<i?n(t,!0,i):e[0][1]>r?n(e,!1,r):t[0][0]}function n(t,e,n){for(var i=t[0][0],r=t[0][1],s=1,a=t.length;s<a;s++){var l=t[s][0],o=t[s][1];if(e?o>=n:o<=n)return o===n?l:i+(n-r)*(l-i)/(o-r);i=l,r=o}return null}function i(t,e,n,i,r){var s=_.isZero;if(s(i)&&s(r)){var a=R.getTimeOf(t,new v(e,n));return null===a?[]:[a]}for(var l=Math.atan2(-r,i),o=Math.sin(l),u=Math.cos(l),h=[],c=[],d=0;d<8;d+=2){var p=t[d]-e,f=t[d+1]-n;h.push(p*u-f*o,p*o+f*u)}return R.solveCubic(h,1,0,c,0,1),c}function r(n,r,s,l,o,u){var h=Math.min,c=Math.max;if(c(n[0],n[2],n[4],n[6])+1e-12>h(r[0],r[2],r[4],r[6])&&h(n[0],n[2],n[4],n[6])-1e-12<c(r[0],r[2],r[4],r[6])&&c(n[1],n[3],n[5],n[7])+1e-12>h(r[1],r[3],r[5],r[7])&&h(n[1],n[3],n[5],n[7])-1e-12<c(r[1],r[3],r[5],r[7])){var d=a(n,r);if(d)for(var p=0;p<2;p++){var f=d[p];t(o,u,s,f[0],l,f[1],!0)}else{var g=R.isStraight(n),_=R.isStraight(r),m=g&&_,b=g&&!_,y=o.length;if((m?function(e,n,i,r,s,a){var l=k.intersect(e[0],e[1],e[6],e[7],n[0],n[1],n[6],n[7]);l&&t(s,a,i,R.getTimeOf(e,l),r,R.getTimeOf(n,l))}:g||_?function(e,n,r,s,a,l,o){for(var u=n[0],h=n[1],c=i(e,u,h,n[6]-u,n[7]-h),d=0,p=c.length;d<p;d++){var f=c[d],g=R.getPoint(e,f),_=R.getTimeOf(n,g);null!==_&&t(a,l,o?s:r,o?_:f,o?r:s,o?f:_)}}:function n(i,r,s,a,l,o,u,h,c,d,p,f,g){if(++c>=4096||++h>=40)return c;var _,m,v=r[0],b=r[1],y=r[6],x=r[7],w=k.getSignedDistance,C=w(v,b,y,x,r[2],r[3]),S=w(v,b,y,x,r[4],r[5]),A=C*S>0?.75:4/9,I=A*Math.min(0,C,S),P=A*Math.max(0,C,S),T=w(v,b,y,x,i[0],i[1]),E=w(v,b,y,x,i[2],i[3]),M=w(v,b,y,x,i[4],i[5]),L=w(v,b,y,x,i[6],i[7]),O=function(t,e,n,i){var r,s=[0,T],a=[1/3,E],l=[2/3,M],o=[1,L],u=E-(2*T+L)/3,h=M-(T+2*L)/3;if(u*h<0)r=[[s,a,o],[s,l,o]];else{var c=u/h;r=[c>=2?[s,a,o]:c<=.5?[s,l,o]:[s,a,l,o],[s,o]]}return(u||h)<0?r.reverse():r}(),N=O[0],B=O[1];if(0===C&&0===S&&0===T&&0===E&&0===M&&0===L||null==(_=e(N,B,I,P))||null==(m=e(N.reverse(),B.reverse(),I,P)))return c;var D=d+(p-d)*_,V=d+(p-d)*m;if(Math.max(g-f,V-D)<1e-9){var z=(D+V)/2,K=(f+g)/2;t(l,o,u?a:s,u?K:z,u?s:a,u?z:K)}else{i=R.getPart(i,_,m);var F,j=g-f;m-_>.8?V-D>j?(c=n(r,(F=R.subdivide(i,.5))[0],a,s,l,o,!u,h,c,f,g,D,z=(D+V)/2),c=n(r,F[1],a,s,l,o,!u,h,c,f,g,z,V)):(c=n((F=R.subdivide(r,.5))[0],i,a,s,l,o,!u,h,c,f,K=(f+g)/2,D,V),c=n(F[1],i,a,s,l,o,!u,h,c,K,g,D,V)):c=0===j||j>=1e-9?n(r,i,a,s,l,o,!u,h,c,f,g,D,V):n(i,r,s,a,l,o,u,h,c,D,V,f,g)}return c})(b?r:n,b?n:r,b?l:s,b?s:l,o,u,b,0,0,0,1,0,1),!m||o.length===y)for(p=0;p<4;p++){var x=p>>1,w=1&p,C=6*x,S=6*w,A=new v(n[C],n[C+1]),I=new v(r[S],r[S+1]);A.isClose(I,1e-12)&&t(o,u,s,x,l,w)}}}return o}function s(e,n,i,r){var s=R.classify(e);if("loop"===s.type){var a=s.roots;t(i,r,n,a[0],n,a[1])}return i}function a(t,e){function n(t){var e=t[6]-t[0],n=t[7]-t[1];return e*e+n*n}var i=Math.abs,r=k.getDistance,s=R.isStraight(t),a=R.isStraight(e),l=s&&a,o=n(t)<n(e),u=o?e:t,h=o?t:e,c=u[0],d=u[1],p=u[6]-c,f=u[7]-d;if(r(c,d,p,f,h[0],h[1],!0)<1e-7&&r(c,d,p,f,h[6],h[7],!0)<1e-7)!l&&r(c,d,p,f,u[2],u[3],!0)<1e-7&&r(c,d,p,f,u[4],u[5],!0)<1e-7&&r(c,d,p,f,h[2],h[3],!0)<1e-7&&r(c,d,p,f,h[4],h[5],!0)<1e-7&&(s=a=l=!0);else if(l)return null;if(s^a)return null;for(var g=[t,e],_=[],m=0;m<4&&_.length<2;m++){var b=1&m,y=1^b,x=m>>1,w=R.getTimeOf(g[b],new v(g[y][x?6:0],g[y][x?7:1]));if(null!=w){var C=b?[x,w]:[w,x];(!_.length||i(C[0]-_[0][0])>1e-8&&i(C[1]-_[0][1])>1e-8)&&_.push(C)}if(m>2&&!_.length)break}if(2!==_.length)_=null;else if(!l){var S=R.getPart(t,_[0][0],_[1][0]),A=R.getPart(e,_[0][1],_[1][1]);(i(A[2]-S[2])>1e-7||i(A[3]-S[3])>1e-7||i(A[4]-S[4])>1e-7||i(A[5]-S[5])>1e-7)&&(_=null)}return _}return{getIntersections:function(t){var e=this.getValues(),n=t&&t!==this&&t.getValues();return n?r(e,n,this,t,[]):s(e,this,[])},statics:{getOverlaps:a,getIntersections:function(t,e,n,i,a,l){var o=!e;o&&(e=t);for(var u=t.length,h=e.length,c=new Array(u),d=o?c:new Array(h),p=[],g=0;g<u;g++)c[g]=t[g].getValues(i);if(!o)for(g=0;g<h;g++)d[g]=e[g].getValues(a);for(var _=f.findCurveBoundsCollisions(c,d,1e-7),m=0;m<u;m++){var v=t[m],b=c[m];o&&s(b,v,p,n);var y=_[m];if(y)for(var x=0;x<y.length;x++){if(l&&p.length)return p;var w=y[x];(!o||w>m)&&r(b,d[w],v,e[w],p,n)}}return p},getCurveLineIntersections:i,getTimesWithTangent:function(t,e){var n=t[0],i=t[1],r=t[2],s=t[3],a=t[4],l=t[5],o=t[6],u=t[7],h=e.normalize(),c=h.x,d=h.y,p=3*o-9*a+9*r-3*n,f=3*u-9*l+9*s-3*i,g=6*a-12*r+6*n,m=6*l-12*s+6*i,v=3*r-3*n,b=3*s-3*i,y=2*p*d-2*f*c,x=[];if(Math.abs(y)<_.CURVETIME_EPSILON){if(0!=(y=p*m-f*g)){var w=-(p*b-f*v)/y;w>=0&&w<=1&&x.push(w)}}else{var C=(g*g-4*p*v)*d*d+(-2*g*m+4*f*v+4*p*b)*c*d+(m*m-4*f*b)*c*c,S=g*d-m*c;if(C>=0&&0!=y){var k=Math.sqrt(C),A=-(S+k)/y,I=(-S+k)/y;A>=0&&A<=1&&x.push(A),I>=0&&I<=1&&x.push(I)}}return x}}}}),V=h.extend({_class:"CurveLocation",initialize:function(t,e,n,i,r){if(e>=.99999999){var s=t.getNext();s&&(e=0,t=s)}this._setCurve(t),this._time=e,this._point=n||t.getPointAtTime(e),this._overlap=i,this._distance=r,this._intersection=this._next=this._previous=null},_setCurve:function(t){var e=t._path;this._path=e,this._version=e?e._version:0,this._curve=t,this._segment=null,this._segment1=t._segment1,this._segment2=t._segment2},_setSegment:function(t){this._setCurve(t.getCurve()),this._segment=t,this._time=t===this._segment1?0:1,this._point=t._point.clone()},getSegment:function(){var t=this._segment;if(!t){var e=this.getCurve(),n=this.getTime();0===n?t=e._segment1:1===n?t=e._segment2:null!=n&&(t=e.getPartLength(0,n)<e.getPartLength(n,1)?e._segment1:e._segment2),this._segment=t}return t},getCurve:function(){var t=this._path,e=this;function n(t){var n=t&&t.getCurve();if(n&&null!=(e._time=n.getTimeOf(e._point)))return e._setCurve(n),n}return t&&t._version!==this._version&&(this._time=this._offset=this._curveOffset=this._curve=null),this._curve||n(this._segment)||n(this._segment1)||n(this._segment2.getPrevious())},getPath:function(){var t=this.getCurve();return t&&t._path},getIndex:function(){var t=this.getCurve();return t&&t.getIndex()},getTime:function(){var t=this.getCurve(),e=this._time;return t&&null==e?this._time=t.getTimeOf(this._point):e},getParameter:"#getTime",getPoint:function(){return this._point},getOffset:function(){var t=this._offset;if(null==t){t=0;var e=this.getPath(),n=this.getIndex();if(e&&null!=n)for(var i=e.getCurves(),r=0;r<n;r++)t+=i[r].getLength();this._offset=t+=this.getCurveOffset()}return t},getCurveOffset:function(){var t=this._curveOffset;if(null==t){var e=this.getCurve(),n=this.getTime();this._curveOffset=t=null!=n&&e&&e.getPartLength(0,n)}return t},getIntersection:function(){return this._intersection},getDistance:function(){return this._distance},divide:function(){var t=this.getCurve(),e=t&&t.divideAtTime(this.getTime());return e&&this._setSegment(e._segment1),e},split:function(){var t=this.getCurve(),e=t._path,n=t&&t.splitAtTime(this.getTime());return n&&this._setSegment(e.getLastSegment()),n},equals:function(t,e){var n=this===t;if(!n&&t instanceof V){var i=this.getCurve(),r=t.getCurve(),s=i._path;if(s===r._path){var a=Math.abs,l=a(this.getOffset()-t.getOffset()),o=!e&&this._intersection,u=!e&&t._intersection;n=(l<1e-7||s&&a(s.getLength()-l)<1e-7)&&(!o&&!u||o&&u&&o.equals(u,!0))}}return n},toString:function(){var t=[],e=this.getPoint(),n=g.instance;e&&t.push("point: "+e);var i=this.getIndex();null!=i&&t.push("index: "+i);var r=this.getTime();return null!=r&&t.push("time: "+n.number(r)),null!=this._distance&&t.push("distance: "+n.number(this._distance)),"{ "+t.join(", ")+" }"},isTouching:function(){var t=this._intersection;if(t&&this.getTangent().isCollinear(t.getTangent())){var e=this.getCurve(),n=t.getCurve();return!(e.isStraight()&&n.isStraight()&&e.getLine().intersect(n.getLine()))}return!1},isCrossing:function(){var t=this._intersection;if(!t)return!1;var e=this.getTime(),n=t.getTime(),i=e>=1e-8&&e<=1-1e-8,r=n>=1e-8&&n<=1-1e-8;if(i&&r)return!this.isTouching();var s=this.getCurve(),a=s&&e<1e-8?s.getPrevious():s,l=t.getCurve(),o=l&&n<1e-8?l.getPrevious():l;if(e>1-1e-8&&(s=s.getNext()),n>1-1e-8&&(l=l.getNext()),!(a&&s&&o&&l))return!1;var u=[];function h(t,e){var n=t.getValues(),i=R.classify(n).roots||R.getPeaks(n),r=i.length,s=R.getLength(n,e&&r?i[r-1]:0,!e&&r?i[0]:1);u.push(r?s:s/64)}function c(t,e,n){return e<n?t>e&&t<n:t>e||t<n}i||(h(a,!0),h(s,!1)),r||(h(o,!0),h(l,!1));var d=this.getPoint(),p=Math.min.apply(Math,u),f=i?s.getTangentAtTime(e):s.getPointAt(p).subtract(d),g=i?f.negate():a.getPointAt(-p).subtract(d),_=r?l.getTangentAtTime(n):l.getPointAt(p).subtract(d),m=r?_.negate():o.getPointAt(-p).subtract(d),v=g.getAngle(),b=f.getAngle(),y=m.getAngle(),x=_.getAngle();return!!(i?c(v,y,x)^c(b,y,x)&&c(v,x,y)^c(b,x,y):c(y,v,b)^c(x,v,b)&&c(y,b,v)^c(x,b,v))},hasOverlap:function(){return!!this._overlap}},h.each(R._evaluateMethods,function(t){var e=t+"At";this[t]=function(){var t=this.getCurve(),n=this.getTime();return null!=n&&t&&t[e](n,!0)}},{preserve:!0}),new function(){function t(t,e,n){var i=t.length,r=0,s=i-1;function a(n,r){for(var s=n+r;s>=-1&&s<=i;s+=r){var a=t[(s%i+i)%i];if(!e.getPoint().isClose(a.getPoint(),1e-7))break;if(e.equals(a))return a}return null}for(;r<=s;){var l,o=r+s>>>1,u=t[o];if(n&&(l=e.equals(u)?u:a(o,-1)||a(o,1)))return e._overlap&&(l._overlap=l._intersection._overlap=!0),l;var h=e.getPath(),c=u.getPath();(h!==c?h._id-c._id:e.getIndex()+e.getTime()-(u.getIndex()+u.getTime()))<0?s=o-1:r=o+1}return t.splice(r,0,e),e}return{statics:{insert:t,expand:function(e){for(var n=e.slice(),i=e.length-1;i>=0;i--)t(n,e[i]._intersection,!1);return n}}}}),z=I.extend({_class:"PathItem",_selectBounds:!1,_canScaleStroke:!0,beans:!0,initialize:function(){},statics:{create:function(t){var e,n,i;if(h.isPlainObject(t)?(n=t.segments,e=t.pathData):Array.isArray(t)?n=t:"string"==typeof t&&(e=t),n){var r=n[0];i=r&&Array.isArray(r[0])}else e&&(i=(e.match(/m/gi)||[]).length>1||/z\s*\S+/i.test(e));return new(i?F:K)(t)}},_asPathItem:function(){return this},isClockwise:function(){return this.getArea()>=0},setClockwise:function(t){this.isClockwise()!=(t=!!t)&&this.reverse()},setPathData:function(t){var e,n,i,r=t&&t.match(/[mlhvcsqtaz][^mlhvcsqtaz]*/gi),s=!1,a=new v,l=new v;function o(t,n){var i=+e[t];return s&&(i+=a[n]),i}function u(t){return new v(o(t,"x"),o(t+1,"y"))}this.clear();for(var h=0,c=r&&r.length;h<c;h++){var d=r[h],p=d[0],f=p.toLowerCase(),g=(e=d.match(/[+-]?(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?/g))&&e.length;switch(s=p===f,"z"!==n||/[mz]/.test(f)||this.moveTo(a),f){case"m":case"l":for(var _="m"===f,m=0;m<g;m+=2)this[_?"moveTo":"lineTo"](a=u(m)),_&&(l=a,_=!1);i=a;break;case"h":case"v":var b="h"===f?"x":"y";for(a=a.clone(),m=0;m<g;m++)a[b]=o(m,b),this.lineTo(a);i=a;break;case"c":for(m=0;m<g;m+=6)this.cubicCurveTo(u(m),i=u(m+2),a=u(m+4));break;case"s":for(m=0;m<g;m+=4)this.cubicCurveTo(/[cs]/.test(n)?a.multiply(2).subtract(i):a,i=u(m),a=u(m+2)),n=f;break;case"q":for(m=0;m<g;m+=4)this.quadraticCurveTo(i=u(m),a=u(m+2));break;case"t":for(m=0;m<g;m+=2)this.quadraticCurveTo(i=/[qt]/.test(n)?a.multiply(2).subtract(i):a,a=u(m)),n=f;break;case"a":for(m=0;m<g;m+=7)this.arcTo(a=u(m+5),new y(+e[m],+e[m+1]),+e[m+2],+e[m+4],+e[m+3]);break;case"z":this.closePath(1e-12),a=l}n=f}},_canComposite:function(){return!(this.hasFill()&&this.hasStroke())},_contains:function(t){var e=t.isInside(this.getBounds({internal:!0,handle:!0}))?this._getWinding(t):{};return e.onPath||!!("evenodd"===this.getFillRule()?1&e.windingL||1&e.windingR:e.winding)},getIntersections:function(t,e,n,i){var r=this===t||!t,s=this._matrix._orNullIfIdentity(),a=r?s:(n||t._matrix)._orNullIfIdentity();return r||this.getBounds(s).intersects(t.getBounds(a),1e-12)?R.getIntersections(this.getCurves(),!r&&t.getCurves(),e,s,a,i):[]},getCrossings:function(t){return this.getIntersections(t,function(t){return t.isCrossing()})},getNearestLocation:function(){for(var t=v.read(arguments),e=this.getCurves(),n=1/0,i=null,r=0,s=e.length;r<s;r++){var a=e[r].getNearestLocation(t);a._distance<n&&(n=a._distance,i=a)}return i},getNearestPoint:function(){var t=this.getNearestLocation.apply(this,arguments);return t?t.getPoint():t},interpolate:function(t,e,n){var i=!this._children,r=i?"_segments":"_children",s=t[r],a=e[r],l=this[r];if(!s||!a||s.length!==a.length)throw new Error("Invalid operands in interpolate() call: "+t+", "+e);var o=l.length,u=a.length;if(o<u)for(var h=i?B:K,c=o;c<u;c++)this.add(new h);else o>u&&this[i?"removeSegments":"removeChildren"](u,o);for(c=0;c<u;c++)l[c].interpolate(s[c],a[c],n);i&&(this.setClosed(t._closed),this._changed(9))},compare:function(t){var e=!1;if(t){var n=this._children||[this],i=t._children?t._children.slice():[t],r=n.length,s=i.length,a=[],l=0;e=!0;for(var o=f.findBoundsOverlaps(n,i,_.GEOMETRIC_EPSILON),u=r-1;u>=0&&e;u--){var h=n[u];e=!1;var c=o[u];if(c)for(var d=c.length-1;d>=0&&!e;d--)h.compare(i[c[d]])&&(a[c[d]]||(a[c[d]]=!0,l++),e=!0)}e=e&&l===s}return e}}),K=z.extend({_class:"Path",_serializeFields:{segments:[],closed:!1},initialize:function(t){this._closed=!1,this._segments=[],this._version=0;var e=arguments,n=Array.isArray(t)?"object"==typeof t[0]?t:e:!t||t.size!==l||t.x===l&&t.point===l?null:e;n&&n.length>0?this.setSegments(n):(this._curves=l,this._segmentSelection=0,n||"string"!=typeof t||(this.setPathData(t),t=null)),this._initialize(!n&&t)},_equals:function(t){return this._closed===t._closed&&h.equals(this._segments,t._segments)},copyContent:function(t){this.setSegments(t._segments),this._closed=t._closed},_changed:function t(e){if(t.base.call(this,e),8&e){if(this._length=this._area=l,32&e)this._version++;else if(this._curves)for(var n=0,i=this._curves.length;n<i;n++)this._curves[n]._changed()}else 64&e&&(this._bounds=l)},getStyle:function(){var t=this._parent;return(t instanceof F?t:this)._style},getSegments:function(){return this._segments},setSegments:function(t){var e=this.isFullySelected(),n=t&&t.length;if(this._segments.length=0,this._segmentSelection=0,this._curves=l,n){var i=t[n-1];"boolean"==typeof i&&(this.setClosed(i),n--),this._add(B.readList(t,0,{},n))}e&&this.setFullySelected(!0)},getFirstSegment:function(){return this._segments[0]},getLastSegment:function(){return this._segments[this._segments.length-1]},getCurves:function(){var t=this._curves,e=this._segments;if(!t){var n=this._countCurves();t=this._curves=new Array(n);for(var i=0;i<n;i++)t[i]=new R(this,e[i],e[i+1]||e[0])}return t},getFirstCurve:function(){return this.getCurves()[0]},getLastCurve:function(){var t=this.getCurves();return t[t.length-1]},isClosed:function(){return this._closed},setClosed:function(t){if(this._closed!=(t=!!t)){if(this._closed=t,this._curves){var e=this._curves.length=this._countCurves();t&&(this._curves[e-1]=new R(this,this._segments[e-1],this._segments[0]))}this._changed(41)}}},{beans:!0,getPathData:function(t,e){var n,i,r,s,a,l,o,u,h=this._segments,c=h.length,d=new g(e),p=new Array(6),f=!0,_=[];function m(e,h){if(e._transformCoordinates(t,p),n=p[0],i=p[1],f)_.push("M"+d.pair(n,i)),f=!1;else if(l=p[3],(a=p[2])===n&&l===i&&o===r&&u===s){if(!h){var c=n-r,g=i-s;_.push(0===c?"v"+d.number(g):0===g?"h"+d.number(c):"l"+d.pair(c,g))}}else _.push("c"+d.pair(o-r,u-s)+" "+d.pair(a-r,l-s)+" "+d.pair(n-r,i-s));r=n,s=i,o=p[4],u=p[5]}if(!c)return"";for(var v=0;v<c;v++)m(h[v]);return this._closed&&c>0&&(m(h[0],!0),_.push("z")),_.join("")},isEmpty:function(){return!this._segments.length},_transformContent:function(t){for(var e=this._segments,n=new Array(6),i=0,r=e.length;i<r;i++)e[i]._transformCoordinates(t,n,!0);return!0},_add:function(t,e){for(var n=this._segments,i=this._curves,r=t.length,s=null==e,a=(e=s?n.length:e,0);a<r;a++){var l=t[a];l._path&&(l=t[a]=l.clone()),l._path=this,l._index=e+a,l._selection&&this._updateSelection(l,0,l._selection)}if(s)h.push(n,t);else{n.splice.apply(n,[e,0].concat(t)),a=e+r;for(var o=n.length;a<o;a++)n[a]._index=a}if(i){var u=this._countCurves(),c=e>0&&e+r-1===u?e-1:e,d=c,p=Math.min(c+r,u);for(t._curves&&(i.splice.apply(i,[c,0].concat(t._curves)),d+=t._curves.length),a=d;a<p;a++)i.splice(a,0,new R(this,null,null));this._adjustCurves(c,p)}return this._changed(41),t},_adjustCurves:function(t,e){for(var n,i=this._segments,r=this._curves,s=t;s<e;s++)(n=r[s])._path=this,n._segment1=i[s],n._segment2=i[s+1]||i[0],n._changed();(n=r[this._closed&&!t?i.length-1:t-1])&&(n._segment2=i[t]||i[0],n._changed()),(n=r[e])&&(n._segment1=i[e],n._changed())},_countCurves:function(){var t=this._segments.length;return!this._closed&&t>0?t-1:t},add:function(t){var e=arguments;return e.length>1&&"number"!=typeof t?this._add(B.readList(e)):this._add([B.read(e)])[0]},insert:function(t,e){var n=arguments;return n.length>2&&"number"!=typeof e?this._add(B.readList(n,1),t):this._add([B.read(n,1)],t)[0]},addSegment:function(){return this._add([B.read(arguments)])[0]},insertSegment:function(t){return this._add([B.read(arguments,1)],t)[0]},addSegments:function(t){return this._add(B.readList(t))},insertSegments:function(t,e){return this._add(B.readList(e),t)},removeSegment:function(t){return this.removeSegments(t,t+1)[0]||null},removeSegments:function(t,e,n){t=t||0,e=h.pick(e,this._segments.length);var i=this._segments,r=this._curves,s=i.length,a=i.splice(t,e-t),l=a.length;if(!l)return a;for(var o=0;o<l;o++){var u=a[o];u._selection&&this._updateSelection(u,u._selection,0),u._index=u._path=null}o=t;for(var c=i.length;o<c;o++)i[o]._index=o;if(r){var d=t>0&&e===s+(this._closed?1:0)?t-1:t;for(o=(r=r.splice(d,l)).length-1;o>=0;o--)r[o]._path=null;n&&(a._curves=r.slice(1)),this._adjustCurves(d,d)}return this._changed(41),a},clear:"#removeSegments",hasHandles:function(){for(var t=this._segments,e=0,n=t.length;e<n;e++)if(t[e].hasHandles())return!0;return!1},clearHandles:function(){for(var t=this._segments,e=0,n=t.length;e<n;e++)t[e].clearHandles()},getLength:function(){if(null==this._length){for(var t=this.getCurves(),e=0,n=0,i=t.length;n<i;n++)e+=t[n].getLength();this._length=e}return this._length},getArea:function(){var t=this._area;if(null==t){var e=this._segments,n=this._closed;t=0;for(var i=0,r=e.length;i<r;i++){var s=i+1===r;t+=R.getArea(R.getValues(e[i],e[s?0:i+1],null,s&&!n))}this._area=t}return t},isFullySelected:function(){var t=this._segments.length;return this.isSelected()&&t>0&&this._segmentSelection===7*t},setFullySelected:function(t){t&&this._selectSegments(!0),this.setSelected(t)},setSelection:function t(e){1&e||this._selectSegments(!1),t.base.call(this,e)},_selectSegments:function(t){var e=this._segments,n=e.length,i=t?7:0;this._segmentSelection=i*n;for(var r=0;r<n;r++)e[r]._selection=i},_updateSelection:function(t,e,n){t._selection=n,(this._segmentSelection+=n-e)>0&&this.setSelected(!0)},divideAt:function(t){var e,n=this.getLocationAt(t);return n&&(e=n.getCurve().divideAt(n.getCurveOffset()))?e._segment1:null},splitAt:function(t){var e=this.getLocationAt(t),n=e&&e.index,i=e&&e.time;i>1-1e-8&&(n++,i=0);var r=this.getCurves();if(n>=0&&n<r.length){i>=1e-8&&r[n++].divideAtTime(i);var s,a=this.removeSegments(n,this._segments.length,!0);return this._closed?(this.setClosed(!1),s=this):((s=new K(I.NO_INSERT)).insertAbove(this),s.copyAttributes(this)),s._add(a,0),this.addSegment(a[0]),s}return null},split:function(t,e){var n,i=e===l?t:(n=this.getCurves()[t])&&n.getLocationAtTime(e);return null!=i?this.splitAt(i):null},join:function(t,e){var n=e||0;if(t&&t!==this){var i=t._segments,r=this.getLastSegment(),s=t.getLastSegment();if(!s)return this;r&&r._point.isClose(s._point,n)&&t.reverse();var a=t.getFirstSegment();if(r&&r._point.isClose(a._point,n))r.setHandleOut(a._handleOut),this._add(i.slice(1));else{var l=this.getFirstSegment();l&&l._point.isClose(a._point,n)&&t.reverse(),s=t.getLastSegment(),l&&l._point.isClose(s._point,n)?(l.setHandleIn(s._handleIn),this._add(i.slice(0,i.length-1),0)):this._add(i.slice())}t._closed&&this._add([i[0]]),t.remove()}var o=this.getFirstSegment(),u=this.getLastSegment();return o!==u&&o._point.isClose(u._point,n)&&(o.setHandleIn(u._handleIn),u.remove(),this.setClosed(!0)),this},reduce:function(t){for(var e=this.getCurves(),n=t&&t.simplify,i=n?1e-7:0,r=e.length-1;r>=0;r--){var s=e[r];!s.hasHandles()&&(!s.hasLength(i)||n&&s.isCollinear(s.getNext()))&&s.remove()}return this},reverse:function(){this._segments.reverse();for(var t=0,e=this._segments.length;t<e;t++){var n=this._segments[t],i=n._handleIn;n._handleIn=n._handleOut,n._handleOut=i,n._index=t}this._curves=null,this._changed(9)},flatten:function(t){for(var e=new j(this,t||.25,256,!0).parts,n=e.length,i=[],r=0;r<n;r++)i.push(new B(e[r].curve.slice(0,2)));!this._closed&&n>0&&i.push(new B(e[n-1].curve.slice(6))),this.setSegments(i)},simplify:function(t){var e=new q(this).fit(t||2.5);return e&&this.setSegments(e),!!e},smooth:function(t){var e=this,n=t||{},i=n.type||"asymmetric",r=this._segments,s=r.length,a=this._closed;function o(t,n){var i=t&&t.index;if(null!=i){var r=t.path;if(r&&r!==e)throw new Error(t._class+" "+i+" of "+r+" is not part of "+e);n&&t instanceof R&&i++}else i="number"==typeof t?t:n;return Math.min(i<0&&a?i%s:i<0?i+s:i,s-1)}var u=a&&n.from===l&&n.to===l,h=o(n.from,0),c=o(n.to,s-1);if(h>c)if(a)h-=s;else{var d=h;h=c,c=d}if(/^(?:asymmetric|continuous)$/.test(i)){var p="asymmetric"===i,f=Math.min,g=c-h+1,_=g-1,m=u?f(g,4):1,v=m,b=m,y=[];if(a||(v=f(1,h),b=f(1,s-c-1)),(_+=v+b)<=1)return;for(var x=0,w=h-v;x<=_;x++,w++)y[x]=r[(w<0?w+s:w)%s]._point;var C=y[0]._x+2*y[1]._x,S=y[0]._y+2*y[1]._y,k=2,A=_-1,I=[C],P=[S],T=[k],E=[],M=[];for(x=1;x<_;x++){var L=x<A,O=L?4:p?3:8,N=L?2:p?0:1,B=(L?1:p?1:2)/k;k=T[x]=(L?4:p?2:7)-B,C=I[x]=O*y[x]._x+N*y[x+1]._x-B*C,S=P[x]=O*y[x]._y+N*y[x+1]._y-B*S}for(E[A]=I[A]/T[A],M[A]=P[A]/T[A],x=_-2;x>=0;x--)E[x]=(I[x]-E[x+1])/T[x],M[x]=(P[x]-M[x+1])/T[x];E[_]=(3*y[_]._x-E[A])/2,M[_]=(3*y[_]._y-M[A])/2,x=v;var D=_-b;for(w=h;x<=D;x++,w++){var V=r[w<0?w+s:w],z=V._point,K=E[x]-z._x,F=M[x]-z._y;(u||x<D)&&V.setHandleOut(K,F),(u||x>v)&&V.setHandleIn(-K,-F)}}else for(x=h;x<=c;x++)r[x<0?x+s:x].smooth(n,!u&&x===h,!u&&x===c)},toShape:function(t){if(!this._closed)return null;var e,n,i,r,s,a,o,u=this._segments;function h(t,e){var n=u[t],i=n.getNext(),r=u[e],s=r.getNext();return n._handleOut.isZero()&&i._handleIn.isZero()&&r._handleOut.isZero()&&s._handleIn.isZero()&&i._point.subtract(n._point).isCollinear(s._point.subtract(r._point))}function c(t){var e=u[t],n=e.getNext(),i=e._handleOut,r=n._handleIn;if(i.isOrthogonal(r)){var s=e._point,a=n._point,l=new k(s,i,!0).intersect(new k(a,r,!0),!0);return l&&_.isZero(i.getLength()/l.subtract(s).getLength()-.5522847498307936)&&_.isZero(r.getLength()/l.subtract(a).getLength()-.5522847498307936)}return!1}function d(t,e){return u[t]._point.getDistance(u[e]._point)}if(!this.hasHandles()&&4===u.length&&h(0,2)&&h(1,3)&&(a=(s=u[1]).getPrevious(),o=s.getNext(),a._handleOut.isZero()&&s._handleIn.isZero()&&s._handleOut.isZero()&&o._handleIn.isZero()&&s._point.subtract(a._point).isOrthogonal(o._point.subtract(s._point)))?(e=E.Rectangle,n=new y(d(0,3),d(0,1)),r=u[1]._point.add(u[2]._point).divide(2)):8===u.length&&c(0)&&c(2)&&c(4)&&c(6)&&h(1,5)&&h(3,7)?(e=E.Rectangle,i=(n=new y(d(1,6),d(0,3))).subtract(new y(d(0,7),d(1,2))).divide(2),r=u[3]._point.add(u[4]._point).divide(2)):4===u.length&&c(0)&&c(1)&&c(2)&&c(3)&&(_.isZero(d(0,2)-d(1,3))?(e=E.Circle,i=d(0,2)/2):(e=E.Ellipse,i=new y(d(2,0)/2,d(3,1)/2)),r=u[1]._point),e){var p=this.getPosition(!0),f=new e({center:p,size:n,radius:i,insert:!1});return f.copyAttributes(this,!0),f._matrix.prepend(this._matrix),f.rotate(r.subtract(p).getAngle()+90),(t===l||t)&&f.insertAbove(this),f}return null},toPath:"#clone",compare:function t(e){if(!e||e instanceof F)return t.base.call(this,e);var n=this.getCurves(),i=e.getCurves(),r=n.length,s=i.length;if(!r||!s)return r==s;for(var a,l,o=n[0].getValues(),u=[],h=0,c=0,d=0;d<s;d++){var p=i[d].getValues();if(u.push(p),_=R.getOverlaps(o,p)){a=!d&&_[0][0]>0?s-1:d,l=_[0][1];break}}var f,g=Math.abs;for(p=u[a];o&&p;){var _;if((_=R.getOverlaps(o,p))&&g(_[0][0]-c)<1e-8){1===(c=_[1][0])&&(o=++h<r?n[h].getValues():null,c=0);var m=_[0][1];if(g(m-l)<1e-8){if(f||(f=[a,m]),1===(l=_[1][1])&&(++a>=s&&(a=0),p=u[a]||i[a].getValues(),l=0),!o)return f[0]===a&&f[1]===l;continue}}break}return!1},_hitTestSelf:function(t,e,n,i){var r,s,a,l,o,u,h=this,c=this.getStyle(),d=this._segments,p=d.length,f=this._closed,g=e._tolerancePadding,_=g,m=e.stroke&&c.hasStroke(),v=e.fill&&c.hasFill(),b=e.curves,y=m?c.getStrokeWidth()/2:v&&e.tolerance>0||b?0:null;function x(e,n){return t.subtract(e).divide(n).length<=1}function w(t,n,i){if(!e.selected||n.isSelected()){var r=t._point;if(n!==r&&(n=n.add(r)),x(n,_))return new N(i,h,{segment:t,point:n})}}function C(t,n){return(n||e.segments)&&w(t,t._point,"segment")||!n&&e.handles&&(w(t,t._handleIn,"handle-in")||w(t,t._handleOut,"handle-out"))}function S(t){l.add(t)}function k(e){var n,o=f||e._index>0&&e._index<p-1;return"round"===(o?r:s)?x(e._point,_):(l=new K({internal:!0,closed:!0}),o?e.isSmooth()||K._addBevelJoin(e,r,y,a,null,i,S,!0):"square"===s&&K._addSquareCap(e,s,y,null,i,S,!0),l.isEmpty()?void 0:l.contains(t)||(n=l.getNearestLocation(t))&&x(n.getPoint(),g))}if(null!==y&&(y>0?(r=c.getStrokeJoin(),s=c.getStrokeCap(),a=c.getMiterLimit(),_=_.add(K._getStrokePadding(y,i))):r=s="round"),!e.ends||e.segments||f){if(e.segments||e.handles)for(var A=0;A<p;A++)if(u=C(d[A]))return u}else if(u=C(d[0],!0)||C(d[p-1],!0))return u;if(null!==y){if(o=this.getNearestLocation(t)){var I=o.getTime();0===I||1===I&&p>1?k(o.getSegment())||(o=null):x(o.getPoint(),_)||(o=null)}if(!o&&"miter"===r&&p>1)for(A=0;A<p;A++){var P=d[A];if(t.getDistance(P._point)<=a*y&&k(P)){o=P.getLocation();break}}}return!o&&v&&this._contains(t)||o&&!m&&!b?new N("fill",this):o?new N(m?"stroke":"curve",this,{location:o,point:o.getPoint()}):null}},h.each(R._evaluateMethods,function(t){this[t+"At"]=function(e){var n=this.getLocationAt(e);return n&&n[t]()}},{beans:!1,getLocationOf:function(){for(var t=v.read(arguments),e=this.getCurves(),n=0,i=e.length;n<i;n++){var r=e[n].getLocationOf(t);if(r)return r}return null},getOffsetOf:function(){var t=this.getLocationOf.apply(this,arguments);return t?t.getOffset():null},getLocationAt:function(t){if("number"==typeof t){for(var e=this.getCurves(),n=0,i=0,r=e.length;i<r;i++){var s=n,a=e[i];if((n+=a.getLength())>t)return a.getLocationAt(t-s)}if(e.length>0&&t<=this.getLength())return new V(e[e.length-1],1)}else if(t&&t.getPath&&t.getPath()===this)return t;return null},getOffsetsWithTangent:function(){var t=v.read(arguments);if(t.isZero())return[];for(var e=[],n=0,i=this.getCurves(),r=0,s=i.length;r<s;r++){for(var a=i[r],l=a.getTimesWithTangent(t),o=0,u=l.length;o<u;o++){var h=n+a.getOffsetAtTime(l[o]);e.indexOf(h)<0&&e.push(h)}n+=a.length}return e}}),new function(){function t(t,e,n){var i,r,s,a,l,o,u,h,c=e._segments,d=c.length,p=new Array(6),f=!0;function g(e){if(n)e._transformCoordinates(n,p),i=p[0],r=p[1];else{var c=e._point;i=c._x,r=c._y}var d;f?(t.moveTo(i,r),f=!1):(n?(l=p[2],o=p[3]):(l=i+(d=e._handleIn)._x,o=r+d._y),l===i&&o===r&&u===s&&h===a?t.lineTo(i,r):t.bezierCurveTo(u,h,l,o,i,r)),s=i,a=r,n?(u=p[4],h=p[5]):(u=s+(d=e._handleOut)._x,h=a+d._y)}for(var _=0;_<d;_++)g(c[_]);e._closed&&d>0&&g(c[0])}return{_draw:function(e,n,i,r){var s=n.dontStart,a=n.dontFinish||n.clip,l=this.getStyle(),o=l.hasFill(),u=l.hasStroke(),h=l.getDashArray(),c=!dt.support.nativeDash&&u&&h&&h.length;function d(t){return h[(t%c+c)%c]}if(s||e.beginPath(),(o||u&&!c||a)&&(t(e,this,r),this._closed&&e.closePath()),!a&&(o||u)&&(this._setStyles(e,n,i),o&&(e.fill(l.getFillRule()),e.shadowColor="rgba(0,0,0,0)"),u)){if(c){s||e.beginPath();var p,f=new j(this,.25,32,!1,r),g=f.length,_=-l.getDashOffset(),m=0;for(_%=g;_>0;)_-=d(m--)+d(m--);for(;_<g;)p=_+d(m++),(_>0||p>0)&&f.drawPart(e,Math.max(_,0),Math.max(p,0)),_=p+d(m++)}e.stroke()}},_drawSelected:function(e,n){e.beginPath(),t(e,this,n),e.stroke(),function(t,e,n,i){if(!(i<=0))for(var r,s,a=i/2,l=i-2,o=a-1,u=new Array(6),h=0,c=e.length;h<c;h++){var d=e[h],p=d._selection;if(d._transformCoordinates(n,u),r=u[0],s=u[1],2&p&&g(2),4&p&&g(4),t.fillRect(r-a,s-a,i,i),l>0&&!(1&p)){var f=t.fillStyle;t.fillStyle="#ffffff",t.fillRect(r-o,s-o,l,l),t.fillStyle=f}}function g(e){var n=u[e],i=u[e+1];r==n&&s==i||(t.beginPath(),t.moveTo(r,s),t.lineTo(n,i),t.stroke(),t.beginPath(),t.arc(n,i,a,0,2*Math.PI,!0),t.fill())}}(e,this._segments,n,dt.settings.handleSize)}}},new function(){function t(t){var e=t._segments;if(!e.length)throw new Error("Use a moveTo() command first");return e[e.length-1]}return{moveTo:function(){var t=this._segments;1===t.length&&this.removeSegment(0),t.length||this._add([new B(v.read(arguments))])},moveBy:function(){throw new Error("moveBy() is unsupported on Path items.")},lineTo:function(){this._add([new B(v.read(arguments))])},cubicCurveTo:function(){var e=arguments,n=v.read(e),i=v.read(e),r=v.read(e),s=t(this);s.setHandleOut(n.subtract(s._point)),this._add([new B(r,i.subtract(r))])},quadraticCurveTo:function(){var e=arguments,n=v.read(e),i=v.read(e),r=t(this)._point;this.cubicCurveTo(n.add(r.subtract(n).multiply(1/3)),n.add(i.subtract(n).multiply(1/3)),i)},curveTo:function(){var e=arguments,n=v.read(e),i=v.read(e),r=h.pick(h.read(e),.5),s=1-r,a=t(this)._point,l=n.subtract(a.multiply(s*s)).subtract(i.multiply(r*r)).divide(2*r*s);if(l.isNaN())throw new Error("Cannot put a curve through points with parameter = "+r);this.quadraticCurveTo(l,i)},arcTo:function(){var e,n,i,r,s=arguments,a=Math.abs,l=Math.sqrt,o=t(this),u=o._point,c=v.read(s),d=h.peek(s);if("boolean"==typeof(b=h.pick(d,!0)))var p=(w=u.add(c).divide(2)).add(w.subtract(u).rotate(b?-90:90));else if(h.remain(s)<=2)p=c,c=v.read(s);else if(!u.equals(c)){var f=y.read(s),g=_.isZero;if(g(f.width)||g(f.height))return this.lineTo(c);var m=h.read(s),b=!!h.read(s),x=!!h.read(s),w=u.add(c).divide(2),C=(W=u.subtract(w).rotate(-m)).x,A=W.y,I=a(f.width),P=a(f.height),T=I*I,E=P*P,M=C*C,L=A*A,O=l(M/T+L/E);if(O>1&&(T=(I*=O)*I,E=(P*=O)*P),a(O=(T*E-T*L-E*M)/(T*L+E*M))<1e-12&&(O=0),O<0)throw new Error("Cannot create an arc with the given arguments");e=new v(I*A/P,-P*C/I).multiply((x===b?-1:1)*l(O)).rotate(m).add(w),n=(i=(r=(new S).translate(e).rotate(m).scale(I,P))._inverseTransform(u)).getDirectedAngle(r._inverseTransform(c)),!b&&n>0?n-=360:b&&n<0&&(n+=360)}if(p){var N=new k(u.add(p).divide(2),p.subtract(u).rotate(90),!0),D=new k(p.add(c).divide(2),c.subtract(p).rotate(90),!0),R=new k(u,c),V=R.getSide(p);if(!(e=N.intersect(D,!0))){if(!V)return this.lineTo(c);throw new Error("Cannot create an arc with the given arguments")}n=(i=u.subtract(e)).getDirectedAngle(c.subtract(e));var z=R.getSide(e,!0);0===z?n=V*a(n):V===z&&(n+=n<0?360:-360)}if(n){for(var K=1e-7,F=a(n),j=F>=360?4:Math.ceil((F-K)/90),q=n/j,U=q*Math.PI/360,H=4/3*Math.sin(U)/(1+Math.cos(U)),G=[],Z=0;Z<=j;Z++){var W=c,Q=null;if(Z<j&&(Q=i.rotate(90).multiply(H),r?(W=r._transformPoint(i),Q=r._transformPoint(i.add(Q)).subtract(W)):W=e.add(i)),Z){var X=i.rotate(-90).multiply(H);r&&(X=r._transformPoint(i.add(X)).subtract(W)),G.push(new B(W,X,Q))}else o.setHandleOut(Q);i=i.rotate(q)}this._add(G)}},lineBy:function(){var e=v.read(arguments),n=t(this)._point;this.lineTo(n.add(e))},curveBy:function(){var e=arguments,n=v.read(e),i=v.read(e),r=h.read(e),s=t(this)._point;this.curveTo(s.add(n),s.add(i),r)},cubicCurveBy:function(){var e=arguments,n=v.read(e),i=v.read(e),r=v.read(e),s=t(this)._point;this.cubicCurveTo(s.add(n),s.add(i),s.add(r))},quadraticCurveBy:function(){var e=arguments,n=v.read(e),i=v.read(e),r=t(this)._point;this.quadraticCurveTo(r.add(n),r.add(i))},arcBy:function(){var e=arguments,n=t(this)._point,i=n.add(v.read(e)),r=h.pick(h.peek(e),!0);this.arcTo(i,"boolean"==typeof r?r:n.add(v.read(e)))},closePath:function(t){this.setClosed(!0),this.join(this,t)}}},{_getBounds:function(t,e){return K[e.handle?"getHandleBounds":e.stroke?"getStrokeBounds":"getBounds"](this._segments,this._closed,this,t,e)},statics:{getBounds:function(t,e,n,i,r,s){var a=t[0];if(!a)return new w;var l=new Array(6),o=a._transformCoordinates(i,new Array(6)),u=o.slice(0,2),h=u.slice(),c=new Array(2);function d(t){t._transformCoordinates(i,l);for(var e=0;e<2;e++)R._addBounds(o[e],o[e+4],l[e+2],l[e],e,s?s[e]:0,u,h,c);var n=o;o=l,l=n}for(var p=1,f=t.length;p<f;p++)d(t[p]);return e&&d(a),new w(u[0],u[1],h[0]-u[0],h[1]-u[1])},getStrokeBounds:function(t,e,n,i,r){var s=n.getStyle(),a=s.hasStroke(),l=s.getStrokeWidth(),o=a&&n._getStrokeMatrix(i,r),u=a&&K._getStrokePadding(l,o),h=K.getBounds(t,e,n,i,r,u);if(!a)return h;var c=l/2,d=s.getStrokeJoin(),p=s.getStrokeCap(),f=s.getMiterLimit(),g=new w(new y(u));function _(t){h=h.include(t)}function m(t){h=h.unite(g.setCenter(t._point.transform(i)))}function v(t,e){"round"===e||t.isSmooth()?m(t):K._addBevelJoin(t,e,c,f,i,o,_)}function b(t,e){"round"===e?m(t):K._addSquareCap(t,e,c,i,o,_)}for(var x=t.length-(e?0:1),C=1;C<x;C++)v(t[C],d);return e?v(t[0],d):x>0&&(b(t[0],p),b(t[t.length-1],p)),h},_getStrokePadding:function(t,e){if(!e)return[t,t];var n=new v(t,0).transform(e),i=new v(0,t).transform(e),r=n.getAngleInRadians(),s=n.getLength(),a=i.getLength(),l=Math.sin(r),o=Math.cos(r),u=Math.tan(r),h=Math.atan2(a*u,s),c=Math.atan2(a,u*s);return[Math.abs(s*Math.cos(h)*o+a*Math.sin(h)*l),Math.abs(a*Math.sin(c)*o+s*Math.cos(c)*l)]},_addBevelJoin:function(t,e,n,i,r,s,a,l){var o=t.getCurve(),u=o.getPrevious(),h=o.getPoint1().transform(r),c=u.getNormalAtTime(1).multiply(n).transform(s),d=o.getNormalAtTime(0).multiply(n).transform(s),p=c.getDirectedAngle(d);if((p<0||p>=180)&&(c=c.negate(),d=d.negate()),l&&a(h),a(h.add(c)),"miter"===e){var f=new k(h.add(c),new v(-c.y,c.x),!0).intersect(new k(h.add(d),new v(-d.y,d.x),!0),!0);f&&h.getDistance(f)<=i*n&&a(f)}a(h.add(d))},_addSquareCap:function(t,e,n,i,r,s,a){var l=t._point.transform(i),o=t.getLocation(),u=o.getNormal().multiply(0===o.getTime()?n:-n).transform(r);"square"===e&&(a&&(s(l.subtract(u)),s(l.add(u))),l=l.add(u.rotate(-90))),s(l.add(u)),s(l.subtract(u))},getHandleBounds:function(t,e,n,i,r){var s,a,l=n.getStyle();if(r.stroke&&l.hasStroke()){var o=n._getStrokeMatrix(i,r),u=l.getStrokeWidth()/2,h=u;"miter"===l.getStrokeJoin()&&(h=u*l.getMiterLimit()),"square"===l.getStrokeCap()&&(h=Math.max(h,u*Math.SQRT2)),s=K._getStrokePadding(u,o),a=K._getStrokePadding(h,o)}for(var c=new Array(6),d=1/0,p=-d,f=d,g=p,_=0,m=t.length;_<m;_++){t[_]._transformCoordinates(i,c);for(var v=0;v<6;v+=2){var b=v?s:a,y=b?b[0]:0,x=b?b[1]:0,C=c[v],S=c[v+1],k=C-y,A=C+y,I=S-x,P=S+x;k<d&&(d=k),A>p&&(p=A),I<f&&(f=I),P>g&&(g=P)}}return new w(d,f,p-d,g-f)}}});K.inject({statics:new function(){var t=.5522847498307936,e=[new B([-1,0],[0,t],[0,-t]),new B([0,-1],[-t,0],[t,0]),new B([1,0],[0,-t],[0,t]),new B([0,1],[t,0],[-t,0])];function n(t,e,n){var i=h.getNamed(n),r=new K(i&&0==i.insert&&I.NO_INSERT);return r._add(t),r._closed=e,r.set(i,{insert:!0})}function i(t,i,r){for(var s=new Array(4),a=0;a<4;a++){var l=e[a];s[a]=new B(l._point.multiply(i).add(t),l._handleIn.multiply(i),l._handleOut.multiply(i))}return n(s,!0,r)}return{Line:function(){var t=arguments;return n([new B(v.readNamed(t,"from")),new B(v.readNamed(t,"to"))],!1,t)},Circle:function(){var t=arguments,e=v.readNamed(t,"center"),n=h.readNamed(t,"radius");return i(e,new y(n),t)},Rectangle:function(){var e,i=arguments,r=w.readNamed(i,"rectangle"),s=y.readNamed(i,"radius",0,{readNull:!0}),a=r.getBottomLeft(!0),l=r.getTopLeft(!0),o=r.getTopRight(!0),u=r.getBottomRight(!0);if(!s||s.isZero())e=[new B(a),new B(l),new B(o),new B(u)];else{var h=(s=y.min(s,r.getSize(!0).divide(2))).width,c=s.height,d=h*t,p=c*t;e=[new B(a.add(h,0),null,[-d,0]),new B(a.subtract(0,c),[0,p]),new B(l.add(0,c),null,[0,-p]),new B(l.add(h,0),[-d,0],null),new B(o.subtract(h,0),null,[d,0]),new B(o.add(0,c),[0,-p],null),new B(u.subtract(0,c),null,[0,p]),new B(u.subtract(h,0),[d,0])]}return n(e,!0,i)},RoundRectangle:"#Rectangle",Ellipse:function(){var t=arguments,e=E._readEllipse(t);return i(e.center,e.radius,t)},Oval:"#Ellipse",Arc:function(){var t=arguments,e=v.readNamed(t,"from"),n=v.readNamed(t,"through"),i=v.readNamed(t,"to"),r=h.getNamed(t),s=new K(r&&0==r.insert&&I.NO_INSERT);return s.moveTo(e),s.arcTo(n,i),s.set(r)},RegularPolygon:function(){for(var t=arguments,e=v.readNamed(t,"center"),i=h.readNamed(t,"sides"),r=h.readNamed(t,"radius"),s=360/i,a=i%3==0,l=new v(0,a?-r:r),o=a?-1:.5,u=new Array(i),c=0;c<i;c++)u[c]=new B(e.add(l.rotate((c+o)*s)));return n(u,!0,t)},Star:function(){for(var t=arguments,e=v.readNamed(t,"center"),i=2*h.readNamed(t,"points"),r=h.readNamed(t,"radius1"),s=h.readNamed(t,"radius2"),a=360/i,l=new v(0,-1),o=new Array(i),u=0;u<i;u++)o[u]=new B(e.add(l.rotate(a*u).multiply(u%2?s:r)));return n(o,!0,t)}}}});var F=z.extend({_class:"CompoundPath",_serializeFields:{children:[]},beans:!0,initialize:function(t){this._children=[],this._namedChildren={},this._initialize(t)||("string"==typeof t?this.setPathData(t):this.addChildren(Array.isArray(t)?t:arguments))},insertChildren:function t(e,n){var i=n,r=i[0];r&&"number"==typeof r[0]&&(i=[i]);for(var s=n.length-1;s>=0;s--){var a=i[s];i!==n||a instanceof K||(i=h.slice(i)),Array.isArray(a)?i[s]=new K({segments:a,insert:!1}):a instanceof F&&(i.splice.apply(i,[s,1].concat(a.removeChildren())),a.remove())}return t.base.call(this,e,i)},reduce:function t(e){for(var n=this._children,i=n.length-1;i>=0;i--){var r;(r=n[i].reduce(e)).isEmpty()&&r.remove()}return n.length?t.base.call(this):((r=new K(I.NO_INSERT)).copyAttributes(this),r.insertAbove(this),this.remove(),r)},isClosed:function(){for(var t=this._children,e=0,n=t.length;e<n;e++)if(!t[e]._closed)return!1;return!0},setClosed:function(t){for(var e=this._children,n=0,i=e.length;n<i;n++)e[n].setClosed(t)},getFirstSegment:function(){var t=this.getFirstChild();return t&&t.getFirstSegment()},getLastSegment:function(){var t=this.getLastChild();return t&&t.getLastSegment()},getCurves:function(){for(var t=this._children,e=[],n=0,i=t.length;n<i;n++)h.push(e,t[n].getCurves());return e},getFirstCurve:function(){var t=this.getFirstChild();return t&&t.getFirstCurve()},getLastCurve:function(){var t=this.getLastChild();return t&&t.getLastCurve()},getArea:function(){for(var t=this._children,e=0,n=0,i=t.length;n<i;n++)e+=t[n].getArea();return e},getLength:function(){for(var t=this._children,e=0,n=0,i=t.length;n<i;n++)e+=t[n].getLength();return e},getPathData:function(t,e){for(var n=this._children,i=[],r=0,s=n.length;r<s;r++){var a=n[r],l=a._matrix;i.push(a.getPathData(t&&!l.isIdentity()?t.appended(l):t,e))}return i.join("")},_hitTestChildren:function t(e,n,i){return t.base.call(this,e,n.class===K||"path"===n.type?n:h.set({},n,{fill:!1}),i)},_draw:function(t,e,n,i){var r=this._children;if(r.length){e=e.extend({dontStart:!0,dontFinish:!0}),t.beginPath();for(var s=0,a=r.length;s<a;s++)r[s].draw(t,e,i);if(!e.clip){this._setStyles(t,e,n);var l=this._style;l.hasFill()&&(t.fill(l.getFillRule()),t.shadowColor="rgba(0,0,0,0)"),l.hasStroke()&&t.stroke()}}},_drawSelected:function(t,e,n){for(var i=this._children,r=0,s=i.length;r<s;r++){var a=i[r],l=a._matrix;n[a._id]||a._drawSelected(t,l.isIdentity()?e:e.appended(l))}}},new function(){function t(t,e){var n=t._children;if(e&&!n.length)throw new Error("Use a moveTo() command first");return n[n.length-1]}return h.each(["lineTo","cubicCurveTo","quadraticCurveTo","curveTo","arcTo","lineBy","cubicCurveBy","quadraticCurveBy","curveBy","arcBy"],function(e){this[e]=function(){var n=t(this,!0);n[e].apply(n,arguments)}},{moveTo:function(){var e=t(this),n=e&&e.isEmpty()?e:new K(I.NO_INSERT);n!==e&&this.addChild(n),n.moveTo.apply(n,arguments)},moveBy:function(){var e=t(this,!0),n=e&&e.getLastSegment(),i=v.read(arguments);this.moveTo(n?i.add(n._point):i)},closePath:function(e){t(this,!0).closePath(e)}})},h.each(["reverse","flatten","simplify","smooth"],function(t){this[t]=function(e){for(var n,i=this._children,r=0,s=i.length;r<s;r++)n=i[r][t](e)||n;return n}},{}));z.inject(new function(){var t=Math.min,e=Math.max,n=Math.abs,i={unite:{1:!0,2:!0},intersect:{2:!0},subtract:{1:!0},exclude:{1:!0,"-1":!0}};function r(t){return t._children||[t]}function s(t,e){var n=t.clone(!1).reduce({simplify:!0}).transform(null,!0,!0);if(e){for(var i=r(n),s=0,a=i.length;s<a;s++)(t=i[s])._closed||t.isEmpty()||(t.closePath(1e-12),t.getFirstSegment().setHandleIn(0,0),t.getLastSegment().setHandleOut(0,0));n=n.resolveCrossings().reorient("nonzero"===n.getFillRule(),!0)}return n}function a(t,e,n,i,r){var s=new F(I.NO_INSERT);return s.addChildren(t,!0),s=s.reduce({simplify:e}),r&&0==r.insert||s.insertAbove(i&&n.isSibling(i)&&n.getIndex()<i.getIndex()?i:n),s.copyAttributes(n,!0),s}function o(t){return t.hasOverlap()||t.isCrossing()}function u(t,e,n,l){if(l&&(0==l.trace||l.stroke)&&/^(subtract|intersect)$/.test(n))return c(t,e,n);var u=s(t,!0),d=e&&t!==e&&s(e,!0),p=i[n];p[n]=!0,d&&(p.subtract||p.exclude)^d.isClockwise()^u.isClockwise()&&d.reverse();var _,v=m(V.expand(u.getIntersections(d,o))),x=r(u),w=d&&r(d),C=[],S=[];function k(t){for(var e=0,n=t.length;e<n;e++){var i=t[e];h.push(C,i._segments),h.push(S,i.getCurves()),i._overlapsOnly=!0}}function A(t){for(var e=[],n=0,i=t&&t.length;n<i;n++)e.push(S[t[n]]);return e}if(v.length){k(x),w&&k(w);for(var I=new Array(S.length),P=0,T=S.length;P<T;P++)I[P]=S[P].getValues();var E=f.findCurveBoundsCollisions(I,I,0,!0),M={};for(P=0;P<S.length;P++){var L=S[P],O=L._path._id;(M[O]=M[O]||{})[L.getIndex()]={hor:A(E[P].hor),ver:A(E[P].ver)}}for(P=0,T=v.length;P<T;P++)b(v[P]._segment,u,d,M,p);for(P=0,T=C.length;P<T;P++){var N=C[P],B=N._intersection;N._winding||b(N,u,d,M,p),B&&B._overlap||(N._path._overlapsOnly=!1)}_=y(C,p)}else _=g(w?x.concat(w):x.slice(),function(t){return!!p[t]});return a(_,!0,t,e,l)}function c(t,e,n){var i=s(t),r=s(e),l=i.getIntersections(r,o),u="subtract"===n,h="divide"===n,c={},d=[];function p(t){if(!c[t._id]&&(h||r.contains(t.getPointAt(t.getLength()/2))^u))return d.unshift(t),c[t._id]=!0}for(var f=l.length-1;f>=0;f--){var g=l[f].split();g&&(p(g)&&g.getFirstSegment().setHandleIn(0,0),i.getLastSegment().setHandleOut(0,0))}return p(i),a(d,!1,t,e)}function d(t,e){for(var n=t;n;){if(n===e)return;n=n._previous}for(;t._next&&t._next!==e;)t=t._next;if(!t._next){for(;e._previous;)e=e._previous;t._next=e,e._previous=t}}function p(t){for(var e=t.length-1;e>=0;e--)t[e].clearHandles()}function g(t,e,i){var r=t&&t.length;if(r){var s=h.each(t,function(t,e){this[t._id]={container:null,winding:t.isClockwise()?1:-1,index:e}},{}),a=t.slice().sort(function(t,e){return n(e.getArea())-n(t.getArea())}),l=a[0],o=f.findItemBoundsCollisions(a,null,_.GEOMETRIC_EPSILON);null==i&&(i=l.isClockwise());for(var u=0;u<r;u++){var c=a[u],d=s[c._id],p=0,g=o[u];if(g)for(var m=null,v=g.length-1;v>=0;v--)if(g[v]<u){m=m||c.getInteriorPoint();var b=a[g[v]];if(b.contains(m)){var y=s[b._id];d.winding+=p=y.winding,d.container=y.exclude?y.container:b;break}}if(e(d.winding)===e(p))d.exclude=!0,t[d.index]=null;else{var x=d.container;c.setClockwise(x?!x.isClockwise():i)}}}return t}function m(t,e,n){var i,r,s,a=e&&[],l=!1,o=n||[],u=n&&{};function h(t){return t._path._id+"."+t._segment1._index}for(var c=(n&&n.length)-1;c>=0;c--)(f=n[c])._path&&(u[h(f)]=!0);for(c=t.length-1;c>=0;c--){var f,g,_=t[c],m=_._time,v=m,b=e&&!e(_);if((f=_._curve)&&(f!==r?(l=!f.hasHandles()||u&&u[h(f)],i=[],s=null,r=f):s>=1e-8&&(m/=s)),b)i&&i.push(_);else{if(e&&a.unshift(_),s=v,m<1e-8)g=f._segment1;else if(m>1-1e-8)g=f._segment2;else{var y=f.divideAtTime(m,!0);l&&o.push(f,y),g=y._segment1;for(var x=i.length-1;x>=0;x--){var w=i[x];w._time=(w._time-m)/(1-m)}}_._setSegment(g);var C=g._intersection,S=_._intersection;if(C){d(C,S);for(var k=C;k;)d(k._intersection,C),k=k._next}else g._intersection=S}}return n||p(o),a||t}function v(i,r,s,a,l){var o,u,h=Array.isArray(r)?r:r[s?"hor":"ver"],c=s?1:0,d=1^c,p=[i.x,i.y],f=p[c],g=p[d],_=1e-6,m=f-1e-9,b=f+1e-9,y=0,x=0,w=0,C=0,S=!1,k=!1,A=1,I=[];function P(n){var u=n[d+0],h=n[d+6];if(!(g<t(u,h)||g>e(u,h))){var p=n[c+0],y=n[c+2],x=n[c+4],k=n[c+6];if(u!==h){var P=g===u?0:g===h?1:m>e(p,y,x,k)||b<t(p,y,x,k)?1:R.solveCubic(n,d,g,I,0,1)>0?I[0]:1,T=0===P?p:1===P?k:R.getPoint(n,P)[s?"y":"x"],E=u>h?1:-1,M=o[c+6];return g!==u?(T<m?w+=E:T>b?C+=E:S=!0,T>f-_&&T<f+_&&(A/=2)):(E!==(o[d]>o[d+6]?1:-1)?p<m?w+=E:p>b&&(C+=E):p!=M&&(M<b&&T>b?(C+=E,S=!0):M>m&&T<m&&(w+=E,S=!0)),A/=4),o=n,!l&&T>m&&T<b&&0===R.getTangent(n,P)[s?"x":"y"]&&v(i,r,!s,a,!0)}(p<b&&k>m||k<b&&p>m)&&(S=!0)}}function T(n){var i=n[d+0],r=n[d+2],a=n[d+4],l=n[d+6];if(g<=e(i,r,a,l)&&g>=t(i,r,a,l))for(var o,u=n[c+0],h=n[c+2],p=n[c+4],f=n[c+6],_=m>e(u,h,p,f)||b<t(u,h,p,f)?[n]:R.getMonoCurves(n,s),v=0,y=_.length;v<y;v++)if(o=P(_[v]))return o}for(var E=0,M=h.length;E<M;E++){var L,O=h[E],N=O._path,B=O.getValues();if(!(E&&h[E-1]._path===N||(o=null,N._closed||(u=R.getValues(N.getLastCurve().getSegment2(),O.getSegment1(),null,!a))[d]!==u[d+6]&&(o=u),o))){o=B;for(var D=N.getLastCurve();D&&D!==O;){var V=D.getValues();if(V[d]!==V[d+6]){o=V;break}D=D.getPrevious()}}if(L=T(B))return L;if(E+1===M||h[E+1]._path!==N){if(u&&(L=T(u)))return L;!S||w||C||(w=C=N.isClockwise(a)^s?1:-1),y+=w,x+=C,w=C=0,S&&(k=!0,S=!1),u=null}}return y=n(y),x=n(x),{winding:e(y,x),windingL:y,windingR:x,quality:A,onPath:k}}function b(t,e,i,r,s){var a=[],l=t,o=0;do{if(b=t.getCurve()){var u=b.getLength();a.push({segment:t,curve:b,length:u}),o+=u}t=t.getNext()}while(t&&!t._intersection&&t!==l);for(var h=[.5,.25,.75],c={winding:0,quality:-1},d=0;d<h.length&&c.quality<.5;d++){u=o*h[d];for(var p=0,f=a.length;p<f;p++){var g=a[p],m=g.length;if(u<=m){var b,y=(b=g.curve)._path,x=y._parent,w=x instanceof F?x:y,C=_.clamp(b.getTimeAt(u),.001,.999),S=b.getPointAtTime(C),k=n(b.getTangentAtTime(C).y)<Math.SQRT1_2,A=null;if(s.subtract&&i){var I=(w===e?i:e)._getWinding(S,k,!0);if(w===e&&I.winding||w===i&&!I.winding){if(I.quality<1)continue;A={winding:0,quality:1}}}(A=A||v(S,r[y._id][b.getIndex()],k,!0)).quality>c.quality&&(c=A);break}u-=m}}for(p=a.length-1;p>=0;p--)a[p].segment._winding=c}function y(t,e){var n,i=[];function r(t){var n;return!(!t||t._visited||e&&(!e[(n=t._winding||{}).winding]||e.unite&&2===n.winding&&n.windingL&&n.windingR))}function s(t){if(t)for(var e=0,i=n.length;e<i;e++)if(t===n[e])return!0;return!1}function a(t){for(var e=t._segments,n=0,i=e.length;n<i;n++)e[n]._visited=!0}function l(t,e){var i=t._intersection,a=i,l=[];function o(i,a){for(;i&&i!==a;){var o=i._segment,u=o&&o._path;if(u){var h=o.getNext()||u.getFirstSegment(),c=h._intersection;o!==t&&(s(o)||s(h)||h&&r(o)&&(r(h)||c&&r(c._segment)))&&l.push(o),e&&n.push(o)}i=i._next}}if(e&&(n=[t]),i){for(o(i);i&&i._prev;)i=i._prev;o(i,a)}return l}t.sort(function(t,e){var n=t._intersection,i=e._intersection,r=!(!n||!n._overlap),s=t._path,a=e._path;return r^!(!i||!i._overlap)?r?1:-1:!n^!i?n?1:-1:s!==a?s._id-a._id:t._index-e._index});for(var o=0,u=t.length;o<u;o++){var h,c,d,p=t[o],f=r(p),g=null,_=!1,m=!0,v=[];if(f&&p._path._overlapsOnly){var b=p._path,y=p._intersection._segment._path;b.compare(y)&&(b.getArea()&&i.push(b.clone(!1)),a(b),a(y),f=!1)}for(;f;){var x=!g,w=l(p,x),C=w.shift(),S=!(_=!x&&(s(p)||s(C)))&&C;if(x&&(g=new K(I.NO_INSERT),h=null),_){(p.isFirst()||p.isLast())&&(m=p._path._closed),p._visited=!0;break}if(S&&h&&(v.push(h),h=null),h||(S&&w.push(p),h={start:g._segments.length,crossings:w,visited:c=[],handleIn:d}),S&&(p=C),!r(p)){g.removeSegments(h.start);for(var k=0,A=c.length;k<A;k++)c[k]._visited=!1;c.length=0;do{(p=h&&h.crossings.shift())&&p._path||(p=null,(h=v.pop())&&(c=h.visited,d=h.handleIn))}while(h&&!r(p));if(!p)break}var P=p.getNext();g.add(new B(p._point,d,P&&p._handleOut)),p._visited=!0,c.push(p),p=P||p._path.getFirstSegment(),d=P&&P._handleIn}_&&(m&&(g.getFirstSegment().setHandleIn(d),g.setClosed(m)),0!==g.getArea()&&i.push(g))}return i}return{_getWinding:function(t,e,n){return v(t,this.getCurves(),e,n)},unite:function(t,e){return u(this,t,"unite",e)},intersect:function(t,e){return u(this,t,"intersect",e)},subtract:function(t,e){return u(this,t,"subtract",e)},exclude:function(t,e){return u(this,t,"exclude",e)},divide:function(t,e){return e&&(0==e.trace||e.stroke)?c(this,t,"divide"):a([this.subtract(t,e),this.intersect(t,e)],!0,this,t,e)},resolveCrossings:function(){var t=this._children,e=t||[this];function n(t,e){var n=t&&t._intersection;return n&&n._overlap&&n._path===e}var i=!1,r=!1,s=this.getIntersections(null,function(t){return t.hasOverlap()&&(i=!0)||t.isCrossing()&&(r=!0)}),a=i&&r&&[];if(s=V.expand(s),i)for(var l=m(s,function(t){return t.hasOverlap()},a),o=l.length-1;o>=0;o--){var u=l[o],c=u._path,d=u._segment,f=d.getPrevious(),g=d.getNext();n(f,c)&&n(g,c)&&(d.remove(),f._handleOut._set(0,0),g._handleIn._set(0,0),f===d||f.getCurve().hasLength()||(g._handleIn.set(f._handleIn),f.remove()))}r&&(m(s,i&&function(t){var e=t.getCurve(),n=t.getSegment(),i=t._intersection,r=i._curve,s=i._segment;if(e&&r&&e._path&&r._path)return!0;n&&(n._intersection=null),s&&(s._intersection=null)},a),a&&p(a),e=y(h.each(e,function(t){h.push(this,t._segments)},[])));var _,v=e.length;return v>1&&t?(e!==t&&this.setChildren(e),_=this):1!==v||t||(e[0]!==this&&this.setSegments(e[0].removeSegments()),_=this),_||((_=new F(I.NO_INSERT)).addChildren(e),(_=_.reduce()).copyAttributes(this),this.replaceWith(_)),_},reorient:function(t,e){var n=this._children;return n&&n.length?this.setChildren(g(this.removeChildren(),function(e){return!!(t?e:1&e)},e)):e!==l&&this.setClockwise(e),this},getInteriorPoint:function(){var n=this.getBounds().getCenter(!0);if(!this.contains(n)){for(var i=this.getCurves(),r=n.y,s=[],a=[],l=0,o=i.length;l<o;l++){var u=i[l].getValues(),h=u[1],c=u[3],d=u[5],p=u[7];if(r>=t(h,c,d,p)&&r<=e(h,c,d,p))for(var f=R.getMonoCurves(u),g=0,_=f.length;g<_;g++){var m=f[g],v=m[1],b=m[7];if(v!==b&&(r>=v&&r<=b||r>=b&&r<=v)){var y=r===v?m[0]:r===b?m[6]:1===R.solveCubic(m,1,r,a,0,1)?R.getPoint(m,a[0]).x:(m[0]+m[6])/2;s.push(y)}}}s.length>1&&(s.sort(function(t,e){return t-e}),n.x=(s[0]+s[1])/2)}return n}}});var j=h.extend({_class:"PathFlattener",initialize:function(t,e,n,i,r){var s,a=[],l=[],o=0,u=1/(n||32),h=t._segments,c=h[0];function d(t,n){var s=R.getValues(t,n,r);a.push(s),function t(n,r,s,a){if(!(a-s>u)||i&&R.isStraight(n)||R.isFlatEnough(n,e||.25)){var h=n[6]-n[0],c=n[7]-n[1],d=Math.sqrt(h*h+c*c);d>0&&l.push({offset:o+=d,curve:n,index:r,time:a})}else{var p=R.subdivide(n,.5),f=(s+a)/2;t(p[0],r,s,f),t(p[1],r,f,a)}}(s,t._index,0,1)}for(var p=1,f=h.length;p<f;p++)d(c,s=h[p]),c=s;t._closed&&d(s||c,h[0]),this.curves=a,this.parts=l,this.length=o,this.index=0},_get:function(t){for(var e,n=this.parts,i=n.length,r=this.index;e=r,r&&!(n[--r].offset<t););for(;e<i;e++){var s=n[e];if(s.offset>=t){this.index=e;var a=n[e-1],l=a&&a.index===s.index?a.time:0,o=a?a.offset:0;return{index:s.index,time:l+(s.time-l)*(t-o)/(s.offset-o)}}}return{index:n[i-1].index,time:1}},drawPart:function(t,e,n){for(var i=this._get(e),r=this._get(n),s=i.index,a=r.index;s<=a;s++){var l=R.getPart(this.curves[s],s===i.index?i.time:0,s===r.index?r.time:1);s===i.index&&t.moveTo(l[0],l[1]),t.bezierCurveTo.apply(t,l.slice(2))}}},h.each(R._evaluateMethods,function(t){this[t+"At"]=function(e){var n=this._get(e);return R[t](this.curves[n.index],n.time)}},{})),q=h.extend({initialize:function(t){for(var e,n=this.points=[],i=t._segments,r=t._closed,s=0,a=i.length;s<a;s++){var l=i[s].point;e&&e.equals(l)||n.push(e=l.clone())}r&&(n.unshift(n[n.length-1]),n.push(n[1])),this.closed=r},fit:function(t){var e=this.points,n=e.length,i=null;return n>0&&(i=[new B(e[0])],n>1&&(this.fitCubic(i,t,0,n-1,e[1].subtract(e[0]),e[n-2].subtract(e[n-1])),this.closed&&(i.shift(),i.pop()))),i},fitCubic:function(t,e,n,i,r,s){var a=this.points;if(i-n!=1){for(var l,o=this.chordLengthParameterize(n,i),u=Math.max(e,e*e),h=!0,c=0;c<=4;c++){var d=this.generateBezier(n,i,o,r,s),p=this.findMaxError(n,i,d,o);if(p.error<e&&h)return void this.addCurve(t,d);if(l=p.index,p.error>=u)break;h=this.reparameterize(n,i,o,d),u=p.error}var f=a[l-1].subtract(a[l+1]);this.fitCubic(t,e,n,l,r,f),this.fitCubic(t,e,l,i,f.negate(),s)}else{var g=a[n],_=a[i],m=g.getDistance(_)/3;this.addCurve(t,[g,g.add(r.normalize(m)),_.add(s.normalize(m)),_])}},addCurve:function(t,e){t[t.length-1].setHandleOut(e[1].subtract(e[0])),t.push(new B(e[3],e[2].subtract(e[3])))},generateBezier:function(t,e,n,i,r){for(var s=Math.abs,a=this.points,l=a[t],o=a[e],u=[[0,0],[0,0]],h=[0,0],c=0,d=e-t+1;c<d;c++){var p=n[c],f=1-p,g=3*p*f,_=f*f*f,m=g*f,v=g*p,b=p*p*p,y=i.normalize(m),x=r.normalize(v),w=a[t+c].subtract(l.multiply(_+m)).subtract(o.multiply(v+b));u[0][0]+=y.dot(y),u[0][1]+=y.dot(x),u[1][0]=u[0][1],u[1][1]+=x.dot(x),h[0]+=y.dot(w),h[1]+=x.dot(w)}var C,S,k=u[0][0]*u[1][1]-u[1][0]*u[0][1];if(s(k)>1e-12)C=(h[0]*u[1][1]-h[1]*u[0][1])/k,S=(u[0][0]*h[1]-u[1][0]*h[0])/k;else{var A=u[0][0]+u[0][1],I=u[1][0]+u[1][1];C=S=s(A)>1e-12?h[0]/A:s(I)>1e-12?h[1]/I:0}var P,T,E=o.getDistance(l),M=1e-12*E;if(C<M||S<M)C=S=E/3;else{var L=o.subtract(l);P=i.normalize(C),T=r.normalize(S),P.dot(L)-T.dot(L)>E*E&&(C=S=E/3,P=T=null)}return[l,l.add(P||i.normalize(C)),o.add(T||r.normalize(S)),o]},reparameterize:function(t,e,n,i){for(var r=t;r<=e;r++)n[r-t]=this.findRoot(i,this.points[r],n[r-t]);r=1;for(var s=n.length;r<s;r++)if(n[r]<=n[r-1])return!1;return!0},findRoot:function(t,e,n){for(var i=[],r=[],s=0;s<=2;s++)i[s]=t[s+1].subtract(t[s]).multiply(3);for(s=0;s<=1;s++)r[s]=i[s+1].subtract(i[s]).multiply(2);var a=this.evaluate(3,t,n),l=this.evaluate(2,i,n),o=this.evaluate(1,r,n),u=a.subtract(e),h=l.dot(l)+u.dot(o);return _.isMachineZero(h)?n:n-u.dot(l)/h},evaluate:function(t,e,n){for(var i=e.slice(),r=1;r<=t;r++)for(var s=0;s<=t-r;s++)i[s]=i[s].multiply(1-n).add(i[s+1].multiply(n));return i[0]},chordLengthParameterize:function(t,e){for(var n=[0],i=t+1;i<=e;i++)n[i-t]=n[i-t-1]+this.points[i].getDistance(this.points[i-1]);i=1;for(var r=e-t;i<=r;i++)n[i]/=n[r];return n},findMaxError:function(t,e,n,i){for(var r=Math.floor((e-t+1)/2),s=0,a=t+1;a<e;a++){var l=this.evaluate(3,n,i[a-t]).subtract(this.points[a]),o=l.x*l.x+l.y*l.y;o>=s&&(s=o,r=a)}return{error:s,index:r}}}),U=I.extend({_class:"TextItem",_applyMatrix:!1,_canApplyMatrix:!1,_serializeFields:{content:null},_boundsOptions:{stroke:!1,handle:!1},initialize:function(t){this._content="",this._lines=[];var e=t&&h.isPlainObject(t)&&t.x===l&&t.y===l;this._initialize(e&&t,!e&&v.read(arguments))},_equals:function(t){return this._content===t._content},copyContent:function(t){this.setContent(t._content)},getContent:function(){return this._content},setContent:function(t){this._content=""+t,this._lines=this._content.split(/\r\n|\n|\r/gm),this._changed(521)},isEmpty:function(){return!this._content},getCharacterStyle:"#getStyle",setCharacterStyle:"#setStyle",getParagraphStyle:"#getStyle",setParagraphStyle:"#setStyle"}),H=U.extend({_class:"PointText",initialize:function(){U.apply(this,arguments)},getPoint:function(){var t=this._matrix.getTranslation();return new b(t.x,t.y,this,"setPoint")},setPoint:function(){var t=v.read(arguments);this.translate(t.subtract(this._matrix.getTranslation()))},_draw:function(t,e,n){if(this._content){this._setStyles(t,e,n);var i=this._lines,r=this._style,s=r.hasFill(),a=r.hasStroke(),l=r.getLeading(),o=t.shadowColor;t.font=r.getFontStyle(),t.textAlign=r.getJustification();for(var u=0,h=i.length;u<h;u++){t.shadowColor=o;var c=i[u];s&&(t.fillText(c,0,0),t.shadowColor="rgba(0,0,0,0)"),a&&t.strokeText(c,0,0),t.translate(0,l)}}},_getBounds:function(t,e){var n=this._style,i=this._lines,r=i.length,s=n.getJustification(),a=n.getLeading(),l=this.getView().getTextWidth(n.getFontStyle(),i),o=0;"left"!==s&&(o-=l/("center"===s?2:1));var u=new w(o,r?-.75*a:0,l,r*a);return t?t._transformBounds(u,u):u}}),G=h.extend(new function(){var t,e={gray:["gray"],rgb:["red","green","blue"],hsb:["hue","saturation","brightness"],hsl:["hue","saturation","lightness"],gradient:["gradient","origin","destination","highlight"]},n={},i={transparent:[0,0,0,0]};function r(e){var n,r=e.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})([\da-f]{2})?$/i)||e.match(/^#([\da-f])([\da-f])([\da-f])([\da-f])?$/i),s="rgb";if(r){var a=r[4]?4:3;n=new Array(a);for(var l=0;l<a;l++){var u=r[l+1];n[l]=parseInt(1==u.length?u+u:u,16)/255}}else if(r=e.match(/^(rgb|hsl)a?\((.*)\)$/)){s=r[1],n=r[2].trim().split(/[,\s]+/g);for(var h="hsl"===s,c=(l=0,Math.min(n.length,4));l<c;l++){var d=n[l];if(u=parseFloat(d),h)if(0===l){var p=d.match(/([a-z]*)$/)[1];u*={turn:360,rad:180/Math.PI,grad:.9}[p]||1}else l<3&&(u/=100);else l<3&&(u/=/%$/.test(d)?100:255);n[l]=u}}else{var f=i[e];if(!f)if(o){t||((t=ot.getContext(1,1)).globalCompositeOperation="copy"),t.fillStyle="rgba(0,0,0,0)",t.fillStyle=e,t.fillRect(0,0,1,1);var g=t.getImageData(0,0,1,1).data;f=i[e]=[g[0]/255,g[1]/255,g[2]/255]}else f=[0,0,0];n=f.slice()}return[s,n]}var s=[[0,3,1],[2,0,1],[1,0,3],[1,2,0],[3,1,0],[0,1,2]],a={"rgb-hsb":function(t,e,n){var i=Math.max(t,e,n),r=i-Math.min(t,e,n);return[0===r?0:60*(i==t?(e-n)/r+(e<n?6:0):i==e?(n-t)/r+2:(t-e)/r+4),0===i?0:r/i,i]},"hsb-rgb":function(t,e,n){var i,r=(t=(t/60%6+6)%6)-(i=Math.floor(t)),a=[n,n*(1-e),n*(1-e*r),n*(1-e*(1-r))];return[a[(i=s[i])[0]],a[i[1]],a[i[2]]]},"rgb-hsl":function(t,e,n){var i=Math.max(t,e,n),r=Math.min(t,e,n),s=i-r,a=0===s,l=(i+r)/2;return[a?0:60*(i==t?(e-n)/s+(e<n?6:0):i==e?(n-t)/s+2:(t-e)/s+4),a?0:l<.5?s/(i+r):s/(2-i-r),l]},"hsl-rgb":function(t,e,n){if(0===e)return[n,n,n];for(var i=[(t=(t/360%1+1)%1)+1/3,t,t-1/3],r=n<.5?n*(1+e):n+e-n*e,s=2*n-r,a=[],l=0;l<3;l++){var o=i[l];o<0&&(o+=1),o>1&&(o-=1),a[l]=6*o<1?s+6*(r-s)*o:2*o<1?r:3*o<2?s+(r-s)*(2/3-o)*6:s}return a},"rgb-gray":function(t,e,n){return[.2989*t+.587*e+.114*n]},"gray-rgb":function(t){return[t,t,t]},"gray-hsb":function(t){return[0,0,t]},"gray-hsl":function(t){return[0,0,t]},"gradient-rgb":function(){return[]},"rgb-gradient":function(){return[]}};return h.each(e,function(t,i){n[i]=[],h.each(t,function(t,r){var s=h.capitalize(t),a=/^(hue|saturation)$/.test(t),l=n[i][r]="gradient"===i?"gradient"===t?function(t){var e=this._components[0];return e!==(t=Z.read(Array.isArray(t)?t:arguments,0,{readNull:!0}))&&(e&&e._removeOwner(this),t&&t._addOwner(this)),t}:function(){return v.read(arguments,0,{readNull:"highlight"===t,clone:!0})}:function(t){return null==t||isNaN(t)?0:+t};this["get"+s]=function(){return this._type===i||a&&/^hs[bl]$/.test(this._type)?this._components[r]:this._convert(i)[r]},this["set"+s]=function(t){this._type===i||a&&/^hs[bl]$/.test(this._type)||(this._components=this._convert(i),this._properties=e[i],this._type=i),this._components[r]=l.call(this,t),this._changed()}},this)},{_class:"Color",_readIndex:!0,initialize:function t(i){var s,a,l,o,u=arguments,c=this.__read,d=0;Array.isArray(i)&&(i=(u=i)[0]);var p=null!=i&&typeof i;if("string"===p&&i in e&&(s=i,i=u[1],Array.isArray(i)?(a=i,l=u[2]):(c&&(d=1),u=h.slice(u,1),p=typeof i)),!a){if(o="number"===p?u:"object"===p&&null!=i.length?i:null){s||(s=o.length>=3?"rgb":"gray");var f=e[s].length;l=o[f],c&&(d+=o===arguments?f+(null!=l?1:0):1),o.length>f&&(o=h.slice(o,0,f))}else if("string"===p){var g=r(i);s=g[0],4===(a=g[1]).length&&(l=a[3],a.length--)}else if("object"===p)if(i.constructor===t){if(s=i._type,a=i._components.slice(),l=i._alpha,"gradient"===s)for(var _=1,m=a.length;_<m;_++){var v=a[_];v&&(a[_]=v.clone())}}else if(i.constructor===Z)s="gradient",o=u;else{var b=e[s="hue"in i?"lightness"in i?"hsl":"hsb":"gradient"in i||"stops"in i||"radial"in i?"gradient":"gray"in i?"gray":"rgb"],y=n[s];for(this._components=a=[],_=0,m=b.length;_<m;_++)null==(x=i[b[_]])&&!_&&"gradient"===s&&"stops"in i&&(x={stops:i.stops,radial:i.radial}),null!=(x=y[_].call(this,x))&&(a[_]=x);l=i.alpha}c&&s&&(d=1)}if(this._type=s||"rgb",!a)for(this._components=a=[],_=0,m=(y=n[this._type]).length;_<m;_++){var x;null!=(x=y[_].call(this,o&&o[_]))&&(a[_]=x)}return this._components=a,this._properties=e[this._type],this._alpha=l,c&&(this.__read=d),this},set:"#initialize",_serialize:function(t,e){var n=this.getComponents();return h.serialize(/^(gray|rgb)$/.test(this._type)?n:[this._type].concat(n),t,!0,e)},_changed:function(){this._canvasStyle=null,this._owner&&(this._setter?this._owner[this._setter](this):this._owner._changed(129))},_convert:function(t){var e;return this._type===t?this._components.slice():(e=a[this._type+"-"+t])?e.apply(this,this._components):a["rgb-"+t].apply(this,a[this._type+"-rgb"].apply(this,this._components))},convert:function(t){return new G(t,this._convert(t),this._alpha)},getType:function(){return this._type},setType:function(t){this._components=this._convert(t),this._properties=e[t],this._type=t},getComponents:function(){var t=this._components.slice();return null!=this._alpha&&t.push(this._alpha),t},getAlpha:function(){return null!=this._alpha?this._alpha:1},setAlpha:function(t){this._alpha=null==t?null:Math.min(Math.max(t,0),1),this._changed()},hasAlpha:function(){return null!=this._alpha},equals:function(t){var e=h.isPlainValue(t,!0)?G.read(arguments):t;return e===this||e&&this._class===e._class&&this._type===e._type&&this.getAlpha()===e.getAlpha()&&h.equals(this._components,e._components)||!1},toString:function(){for(var t=this._properties,e=[],n="gradient"===this._type,i=g.instance,r=0,s=t.length;r<s;r++){var a=this._components[r];null!=a&&e.push(t[r]+": "+(n?a:i.number(a)))}return null!=this._alpha&&e.push("alpha: "+i.number(this._alpha)),"{ "+e.join(", ")+" }"},toCSS:function(t){var e=this._convert("rgb"),n=t||null==this._alpha?1:this._alpha;function i(t){return Math.round(255*(t<0?0:t>1?1:t))}return e=[i(e[0]),i(e[1]),i(e[2])],n<1&&e.push(n<0?0:n),t?"#"+((1<<24)+(e[0]<<16)+(e[1]<<8)+e[2]).toString(16).slice(1):(4==e.length?"rgba(":"rgb(")+e.join(",")+")"},toCanvasStyle:function(t,e){if(this._canvasStyle)return this._canvasStyle;if("gradient"!==this._type)return this._canvasStyle=this.toCSS();var n,i=this._components,r=i[0],s=r._stops,a=i[1],l=i[2],o=i[3],u=e&&e.inverted();if(u&&(a=u._transformPoint(a),l=u._transformPoint(l),o&&(o=u._transformPoint(o))),r._radial){var h=l.getDistance(a);if(o){var c=o.subtract(a);c.getLength()>h&&(o=a.add(c.normalize(h-.1)))}var d=o||a;n=t.createRadialGradient(d.x,d.y,0,a.x,a.y,h)}else n=t.createLinearGradient(a.x,a.y,l.x,l.y);for(var p=0,f=s.length;p<f;p++){var g=s[p],_=g._offset;n.addColorStop(null==_?p/(f-1):_,g._color.toCanvasStyle())}return this._canvasStyle=n},transform:function(t){if("gradient"===this._type){for(var e=this._components,n=1,i=e.length;n<i;n++){var r=e[n];t._transformPoint(r,r,!0)}this._changed()}},statics:{_types:e,random:function(){var t=Math.random;return new G(t(),t(),t())},_setOwner:function(t,e,n){return t&&(t._owner&&e&&t._owner!==e&&(t=t.clone()),!t._owner^!e&&(t._owner=e||null,t._setter=n||null)),t}}})},new function(){return h.each({add:function(t,e){return t+e},subtract:function(t,e){return t-e},multiply:function(t,e){return t*e},divide:function(t,e){return t/e}},function(t,e){this[e]=function(e){e=G.read(arguments);for(var n=this._type,i=this._components,r=e._convert(n),s=0,a=i.length;s<a;s++)r[s]=t(i[s],r[s]);return new G(n,r,null!=this._alpha?t(this._alpha,e.getAlpha()):null)}},{})}),Z=h.extend({_class:"Gradient",initialize:function(t,e){this._id=m.get(),t&&h.isPlainObject(t)&&(this.set(t),t=e=null),null==this._stops&&this.setStops(t||["white","black"]),null==this._radial&&this.setRadial("string"==typeof e&&"radial"===e||e||!1)},_serialize:function(t,e){return e.add(this,function(){return h.serialize([this._stops,this._radial],t,!0,e)})},_changed:function(){for(var t=0,e=this._owners&&this._owners.length;t<e;t++)this._owners[t]._changed()},_addOwner:function(t){this._owners||(this._owners=[]),this._owners.push(t)},_removeOwner:function(t){var e=this._owners?this._owners.indexOf(t):-1;-1!=e&&(this._owners.splice(e,1),this._owners.length||(this._owners=l))},clone:function(){for(var t=[],e=0,n=this._stops.length;e<n;e++)t[e]=this._stops[e].clone();return new Z(t,this._radial)},getStops:function(){return this._stops},setStops:function(t){if(t.length<2)throw new Error("Gradient stop list needs to contain at least two stops.");var e=this._stops;if(e)for(var n=0,i=e.length;n<i;n++)e[n]._owner=l;for(n=0,i=(e=this._stops=W.readList(t,0,{clone:!0})).length;n<i;n++)e[n]._owner=this;this._changed()},getRadial:function(){return this._radial},setRadial:function(t){this._radial=t,this._changed()},equals:function(t){if(t===this)return!0;if(t&&this._class===t._class){var e=this._stops,n=t._stops,i=e.length;if(i===n.length){for(var r=0;r<i;r++)if(!e[r].equals(n[r]))return!1;return!0}}return!1}}),W=h.extend({_class:"GradientStop",initialize:function(t,e){var n=t,i=e;"object"==typeof t&&e===l&&(Array.isArray(t)&&"number"!=typeof t[0]?(n=t[0],i=t[1]):("color"in t||"offset"in t||"rampPoint"in t)&&(n=t.color,i=t.offset||t.rampPoint||0)),this.setColor(n),this.setOffset(i)},clone:function(){return new W(this._color.clone(),this._offset)},_serialize:function(t,e){var n=this._color,i=this._offset;return h.serialize(null==i?[n]:[n,i],t,!0,e)},_changed:function(){this._owner&&this._owner._changed(129)},getOffset:function(){return this._offset},setOffset:function(t){this._offset=t,this._changed()},getRampPoint:"#getOffset",setRampPoint:"#setOffset",getColor:function(){return this._color},setColor:function(){G._setOwner(this._color,null),this._color=G._setOwner(G.read(arguments,0),this,"setColor"),this._changed()},equals:function(t){return t===this||t&&this._class===t._class&&this._color.equals(t._color)&&this._offset==t._offset||!1}}),Q=h.extend(new function(){var t={fillColor:null,fillRule:"nonzero",strokeColor:null,strokeWidth:1,strokeCap:"butt",strokeJoin:"miter",strokeScaling:!0,miterLimit:10,dashOffset:0,dashArray:[],shadowColor:null,shadowBlur:0,shadowOffset:new v,selectedColor:null},e=h.set({},t,{fontFamily:"sans-serif",fontWeight:"normal",fontSize:12,leading:null,justification:"left"}),n=h.set({},e,{fillColor:new G}),i={strokeWidth:193,strokeCap:193,strokeJoin:193,strokeScaling:201,miterLimit:193,fontFamily:9,fontWeight:9,fontSize:9,font:9,leading:9,justification:9},r={beans:!0},s={_class:"Style",beans:!0,initialize:function(i,r,s){this._values={},this._owner=r,this._project=r&&r._project||s||dt.project,this._defaults=!r||r instanceof P?e:r instanceof U?n:t,i&&this.set(i)}};return h.each(e,function(t,e){var n=/Color$/.test(e),a="shadowOffset"===e,o=h.capitalize(e),u=i[e],c="set"+o,d="get"+o;s[c]=function(t){var i=this._owner,r=i&&i._children,s=r&&r.length>0&&!(i instanceof F);if(s)for(var a=0,l=r.length;a<l;a++)r[a]._style[c](t);if(("selectedColor"===e||!s)&&e in this._defaults){var o=this._values[e];o!==t&&(n&&(o&&(G._setOwner(o,null),o._canvasStyle=null),t&&t.constructor===G&&(t=G._setOwner(t,i,s&&c))),this._values[e]=t,i&&i._changed(u||129))}},s[d]=function(t){var i=this._owner,r=i&&i._children,s=r&&r.length>0&&!(i instanceof F);if(s&&!t)for(var o=0,u=r.length;o<u;o++){var p=r[o]._style[d]();if(o){if(!h.equals(f,p))return l}else f=p}else if(e in this._defaults){var f;if((f=this._values[e])===l)(f=this._defaults[e])&&f.clone&&(f=f.clone());else{var g=n?G:a?v:null;!g||f&&f.constructor===g||(this._values[e]=f=g.read([f],0,{readNull:!0,clone:!0}))}}return f&&n&&(f=G._setOwner(f,i,s&&c)),f},r[d]=function(t){return this._style[d](t)},r[c]=function(t){this._style[c](t)}}),h.each({Font:"FontFamily",WindingRule:"FillRule"},function(t,e){var n="get"+e,i="set"+e;s[n]=r[n]="#get"+t,s[i]=r[i]="#set"+t}),I.inject(r),s},{set:function(t){var e=t instanceof Q,n=e?t._values:t;if(n)for(var i in n)if(i in this._defaults){var r=n[i];this[i]=r&&e&&r.clone?r.clone():r}},equals:function(t){function e(t,e,n){var i=t._values,r=e._values,s=e._defaults;for(var a in i){var o=r[a];if(!(n&&a in r||h.equals(i[a],o===l?s[a]:o)))return!1}return!0}return t===this||t&&this._class===t._class&&e(this,t)&&e(t,this,!0)||!1},_dispose:function(){var t;(t=this.getFillColor())&&(t._canvasStyle=null),(t=this.getStrokeColor())&&(t._canvasStyle=null),(t=this.getShadowColor())&&(t._canvasStyle=null)},hasFill:function(){var t=this.getFillColor();return!!t&&t.alpha>0},hasStroke:function(){var t=this.getStrokeColor();return!!t&&t.alpha>0&&this.getStrokeWidth()>0},hasShadow:function(){var t=this.getShadowColor();return!!t&&t.alpha>0&&(this.getShadowBlur()>0||!this.getShadowOffset().isZero())},getView:function(){return this._project._view},getFontStyle:function(){var t=this.getFontSize();return this.getFontWeight()+" "+t+(/[a-z]/i.test(t+"")?" ":"px ")+this.getFontFamily()},getFont:"#getFontFamily",setFont:"#setFontFamily",getLeading:function t(){var e=t.base.call(this),n=this.getFontSize();return/pt|em|%|px/.test(n)&&(n=this.getView().getPixelSize(n)),null!=e?e:1.2*n}}),X=new function(){function t(t,e,n,i){for(var r=["","webkit","moz","Moz","ms","o"],s=e[0].toUpperCase()+e.substring(1),a=0;a<6;a++){var l=r[a],o=l?l+s:e;if(o in t){if(!n)return t[o];t[o]=i;break}}}return{getStyles:function(t){var e=t&&9!==t.nodeType?t.ownerDocument:t,n=e&&e.defaultView;return n&&n.getComputedStyle(t,"")},getBounds:function(t,e){var n,i=t.ownerDocument,r=i.body,s=i.documentElement;try{n=t.getBoundingClientRect()}catch(u){n={left:0,top:0,width:0,height:0}}var a=n.left-(s.clientLeft||r.clientLeft||0),l=n.top-(s.clientTop||r.clientTop||0);if(!e){var o=i.defaultView;a+=o.pageXOffset||s.scrollLeft||r.scrollLeft,l+=o.pageYOffset||s.scrollTop||r.scrollTop}return new w(a,l,n.width,n.height)},getViewportBounds:function(t){var e=t.ownerDocument,n=e.defaultView,i=e.documentElement;return new w(0,0,n.innerWidth||i.clientWidth,n.innerHeight||i.clientHeight)},getOffset:function(t,e){return X.getBounds(t,e).getPoint()},getSize:function(t){return X.getBounds(t,!0).getSize()},isInvisible:function(t){return X.getSize(t).equals(new y(0,0))},isInView:function(t){return!X.isInvisible(t)&&X.getViewportBounds(t).intersects(X.getBounds(t,!0))},isInserted:function(t){return u.body.contains(t)},getPrefixed:function(e,n){return e&&t(e,n)},setPrefixed:function(e,n,i){if("object"==typeof n)for(var r in n)t(e,r,!0,n[r]);else t(e,n,!0,i)}}},$={add:function(t,e){if(t)for(var n in e)for(var i=e[n],r=n.split(/[\s,]+/g),s=0,a=r.length;s<a;s++){var l=r[s];t.addEventListener(l,i,t===u&&("touchstart"===l||"touchmove"===l)&&{passive:!1})}},remove:function(t,e){if(t)for(var n in e)for(var i=e[n],r=n.split(/[\s,]+/g),s=0,a=r.length;s<a;s++)t.removeEventListener(r[s],i,!1)},getPoint:function(t){var e=t.targetTouches?t.targetTouches.length?t.targetTouches[0]:t.changedTouches[0]:t;return new v(e.pageX||e.clientX+u.documentElement.scrollLeft,e.pageY||e.clientY+u.documentElement.scrollTop)},getTarget:function(t){return t.target||t.srcElement},getRelatedTarget:function(t){return t.relatedTarget||t.toElement},getOffset:function(t,e){return $.getPoint(t).subtract(X.getOffset(e||$.getTarget(t)))}};$.requestAnimationFrame=new function(){var t,e=X.getPrefixed(o,"requestAnimationFrame"),n=!1,i=[];function r(){var t=i;i=[];for(var s=0,a=t.length;s<a;s++)t[s]();(n=e&&i.length)&&e(r)}return function(s){i.push(s),e?n||(e(r),n=!0):t||(t=setInterval(r,1e3/60))}};var J=h.extend(c,{_class:"View",initialize:function t(e,n){function i(t){return n[t]||parseInt(n.getAttribute(t),10)}function r(){var t=X.getSize(n);return t.isNaN()||t.isZero()?new y(i("width"),i("height")):t}var s;if(o&&n){if(this._id=n.getAttribute("id"),null==this._id&&n.setAttribute("id",this._id="view-"+t._id++),$.add(n,this._viewEvents),X.setPrefixed(n.style,{userDrag:"none",userSelect:"none",touchCallout:"none",contentZooming:"none",tapHighlightColor:"rgba(0,0,0,0)"}),d.hasAttribute(n,"resize")){var a=this;$.add(o,this._windowEvents={resize:function(){a.setViewSize(r())}})}if(s=r(),d.hasAttribute(n,"stats")&&"undefined"!=typeof Stats){this._stats=new Stats;var l=this._stats.domElement,h=l.style,c=X.getOffset(n);h.position="absolute",h.left=c.x+"px",h.top=c.y+"px",u.body.appendChild(l)}}else s=new y(n),n=null;this._project=e,this._scope=e._scope,this._element=n,this._pixelRatio||(this._pixelRatio=o&&o.devicePixelRatio||1),this._setElementSize(s.width,s.height),this._viewSize=s,t._views.push(this),t._viewsById[this._id]=this,(this._matrix=new S)._owner=this,t._focused||(t._focused=this),this._frameItems={},this._frameItemCount=0,this._itemEvents={native:{},virtual:{}},this._autoUpdate=!dt.agent.node,this._needsUpdate=!1},remove:function(){if(!this._project)return!1;J._focused===this&&(J._focused=null),J._views.splice(J._views.indexOf(this),1),delete J._viewsById[this._id];var t=this._project;return t._view===this&&(t._view=null),$.remove(this._element,this._viewEvents),$.remove(o,this._windowEvents),this._element=this._project=null,this.off("frame"),this._animate=!1,this._frameItems={},!0},_events:h.each(I._itemHandlers.concat(["onResize","onKeyDown","onKeyUp"]),function(t){this[t]={}},{onFrame:{install:function(){this.play()},uninstall:function(){this.pause()}}}),_animate:!1,_time:0,_count:0,getAutoUpdate:function(){return this._autoUpdate},setAutoUpdate:function(t){this._autoUpdate=t,t&&this.requestUpdate()},update:function(){},draw:function(){this.update()},requestUpdate:function(){if(!this._requested){var t=this;$.requestAnimationFrame(function(){if(t._requested=!1,t._animate){t.requestUpdate();var e=t._element;X.getPrefixed(u,"hidden")&&"true"!==d.getAttribute(e,"keepalive")||!X.isInView(e)||t._handleFrame()}t._autoUpdate&&t.update()}),this._requested=!0}},play:function(){this._animate=!0,this.requestUpdate()},pause:function(){this._animate=!1},_handleFrame:function(){dt=this._scope;var t=Date.now()/1e3,e=this._last?t-this._last:0;this._last=t,this.emit("frame",new h({delta:e,time:this._time+=e,count:this._count++})),this._stats&&this._stats.update()},_animateItem:function(t,e){var n=this._frameItems;e?(n[t._id]={item:t,time:0,count:0},1==++this._frameItemCount&&this.on("frame",this._handleFrameItems)):(delete n[t._id],0==--this._frameItemCount&&this.off("frame",this._handleFrameItems))},_handleFrameItems:function(t){for(var e in this._frameItems){var n=this._frameItems[e];n.item.emit("frame",new h(t,{time:n.time+=t.delta,count:n.count++}))}},_changed:function(){this._project._changed(4097),this._bounds=this._decomposed=l},getElement:function(){return this._element},getPixelRatio:function(){return this._pixelRatio},getResolution:function(){return 72*this._pixelRatio},getViewSize:function(){var t=this._viewSize;return new x(t.width,t.height,this,"setViewSize")},setViewSize:function(){var t=y.read(arguments),e=t.subtract(this._viewSize);e.isZero()||(this._setElementSize(t.width,t.height),this._viewSize.set(t),this._changed(),this.emit("resize",{size:t,delta:e}),this._autoUpdate&&this.update())},_setElementSize:function(t,e){var n=this._element;n&&(n.width!==t&&(n.width=t),n.height!==e&&(n.height=e))},getBounds:function(){return this._bounds||(this._bounds=this._matrix.inverted()._transformBounds(new w(new v,this._viewSize))),this._bounds},getSize:function(){return this.getBounds().getSize()},isVisible:function(){return X.isInView(this._element)},isInserted:function(){return X.isInserted(this._element)},getPixelSize:function(t){var e,n=this._element;if(n){var i=n.parentNode,r=u.createElement("div");r.style.fontSize=t,i.appendChild(r),e=parseFloat(X.getStyles(r).fontSize),i.removeChild(r)}else e=parseFloat(e);return e},getTextWidth:function(t,e){return 0}},h.each(["rotate","scale","shear","skew"],function(t){var e="rotate"===t;this[t]=function(){var n=arguments,i=(e?h:v).read(n),r=v.read(n,0,{readNull:!0});return this.transform((new S)[t](i,r||this.getCenter(!0)))}},{_decompose:function(){return this._decomposed||(this._decomposed=this._matrix.decompose())},translate:function(){var t=new S;return this.transform(t.translate.apply(t,arguments))},getCenter:function(){return this.getBounds().getCenter()},setCenter:function(){var t=v.read(arguments);this.translate(this.getCenter().subtract(t))},getZoom:function(){var t=this._decompose().scaling;return(t.x+t.y)/2},setZoom:function(t){this.transform((new S).scale(t/this.getZoom(),this.getCenter()))},getRotation:function(){return this._decompose().rotation},setRotation:function(t){var e=this.getRotation();null!=e&&null!=t&&this.rotate(t-e)},getScaling:function(){var t=this._decompose().scaling;return new b(t.x,t.y,this,"setScaling")},setScaling:function(){var t=this.getScaling(),e=v.read(arguments,0,{clone:!0,readNull:!0});t&&e&&this.scale(e.x/t.x,e.y/t.y)},getMatrix:function(){return this._matrix},setMatrix:function(){var t=this._matrix;t.initialize.apply(t,arguments)},transform:function(t){this._matrix.append(t)},scrollBy:function(){this.translate(v.read(arguments).negate())}}),{projectToView:function(){return this._matrix._transformPoint(v.read(arguments))},viewToProject:function(){return this._matrix._inverseTransform(v.read(arguments))},getEventPoint:function(t){return this.viewToProject($.getOffset(t,this._element))}},{statics:{_views:[],_viewsById:{},_id:0,create:function(t,e){return u&&"string"==typeof e&&(e=u.getElementById(e)),new(o?Y:J)(t,e)}}},new function(){if(o){var t,e,n,i,r,s=!1,a=!1,l=o.navigator;l.pointerEnabled||l.msPointerEnabled?(n="pointerdown MSPointerDown",i="pointermove MSPointerMove",r="pointerup pointercancel MSPointerUp MSPointerCancel"):(n="touchstart",i="touchmove",r="touchend touchcancel","ontouchstart"in o&&l.userAgent.match(/mobile|tablet|ip(ad|hone|od)|android|silk/i)||(n+=" mousedown",i+=" mousemove",r+=" mouseup"));var h={},c={mouseout:function(t){var e=J._focused,n=$.getRelatedTarget(t);if(e&&(!n||"HTML"===n.nodeName)){var i=$.getOffset(t,e._element),r=i.x,s=Math.abs,a=s(r),l=a-(1<<25);i.x=s(l)<a?l*(r<0?-1:1):r,I(e,t,e.viewToProject(i))}},scroll:A};h[n]=function(t){var e=J._focused=k(t);s||(s=!0,e._handleMouseEvent("mousedown",t))},c[i]=function(n){var i=J._focused;if(!a){var r=k(n);r?i!==r&&(i&&I(i,n),t||(t=i),i=J._focused=e=r):e&&e===i&&(t&&!t.isInserted()&&(t=null),i=J._focused=t,t=null,A())}i&&I(i,n)},c[n]=function(){a=!0},c[r]=function(t){var e=J._focused;e&&s&&e._handleMouseEvent("mouseup",t),a=s=!1},$.add(u,c),$.add(o,{load:A});var d,p,f,g,_,m,v,b,y=!1,x=!1,w={doubleclick:"click",mousedrag:"mousemove"},C=!1,S={mousedown:{mousedown:1,mousedrag:1,click:1,doubleclick:1},mouseup:{mouseup:1,mousedrag:1,click:1,doubleclick:1},mousemove:{mousedrag:1,mousemove:1,mouseenter:1,mouseleave:1}};return{_viewEvents:h,_handleMouseEvent:function(t,e,n){var i=this._itemEvents,r=i.native[t],a="mousemove"===t,l=this._scope.tool,o=this;function u(t){return i.virtual[t]||o.responds(t)||l&&l.responds(t)}a&&s&&u("mousedrag")&&(t="mousedrag"),n||(n=this.getEventPoint(e));var h=this.getBounds().contains(n),c=r&&h&&o._project.hitTest(n,{tolerance:0,fill:!0,stroke:!0}),w=c&&c.item||null,S=!1,k={};if(k[t.substr(5)]=!0,r&&w!==g&&(g&&P(g,null,"mouseleave",e,n),w&&P(w,null,"mouseenter",e,n),g=w),C^h&&(P(this,null,h?"mouseenter":"mouseleave",e,n),S=!0),!h&&!k.drag||n.equals(p)||(T(this,w,a?t:"mousemove",e,n,p),S=!0),C=h,k.down&&h||k.up&&d){if(T(this,w,t,e,n,d),k.down){if(b=w===m&&Date.now()-v<300,f=m=w,!x&&w){for(var A=w;A&&!A.responds("mousedrag");)A=A._parent;A&&(_=w)}d=n}else k.up&&(x||w!==f||(v=Date.now(),T(this,w,b?"doubleclick":"click",e,n,d),b=!1),f=_=null);C=!1,S=!0}p=n,S&&l&&(y=l._handleMouseEvent(t,e,n,k)||y),!1!==e.cancelable&&(y&&!k.move||k.down&&u("mouseup"))&&e.preventDefault()},_handleKeyEvent:function(t,e,n,i){var r,s=this._scope,a=s.tool;function l(a){a.responds(t)&&(dt=s,a.emit(t,r=r||new et(t,e,n,i)))}this.isVisible()&&(l(this),a&&a.responds(t)&&l(a))},_countItemEvent:function(t,e){var n=this._itemEvents,i=n.native,r=n.virtual;for(var s in S)i[s]=(i[s]||0)+(S[s][t]||0)*e;r[t]=(r[t]||0)+e},statics:{updateFocus:A,_resetState:function(){s=a=y=C=!1,t=e=d=p=f=g=_=m=v=b=null}}}}function k(t){var e=$.getTarget(t);return e.getAttribute&&J._viewsById[e.getAttribute("id")]}function A(){var t=J._focused;if(!t||!t.isVisible())for(var n=0,i=J._views.length;n<i;n++)if((t=J._views[n]).isVisible()){J._focused=e=t;break}}function I(t,e,n){t._handleMouseEvent("mousemove",e,n)}function P(t,e,n,i,r,s,a){var l,o=!1;function u(t,n){if(t.responds(n)){if(l||(l=new it(n,i,r,e||t,s?r.subtract(s):null)),t.emit(n,l)&&(y=!0,l.prevented&&(x=!0),l.stopped))return o=!0}else{var a=w[n];if(a)return u(t,a)}}for(;t&&t!==a&&!u(t,n);)t=t._parent;return o}function T(t,e,n,i,r,s){return t._project.removeOn(n),x=y=!1,_&&P(_,null,n,i,r,s)||e&&e!==_&&!e.isDescendant(_)&&P(e,null,"mousedrag"===n?"mousemove":n,i,r,s,_)||P(t,_||e||t,n,i,r,s)}}),Y=J.extend({_class:"CanvasView",initialize:function(t,e){if(!(e instanceof o.HTMLCanvasElement)){var n=y.read(arguments,1);if(n.isZero())throw new Error("Cannot create CanvasView with the provided argument: "+h.slice(arguments,1));e=ot.getCanvas(n)}var i=this._context=e.getContext("2d");if(i.save(),this._pixelRatio=1,!/^off|false$/.test(d.getAttribute(e,"hidpi"))){var r=o.devicePixelRatio||1,s=X.getPrefixed(i,"backingStorePixelRatio")||1;this._pixelRatio=r/s}J.call(this,t,e),this._needsUpdate=!0},remove:function t(){return this._context.restore(),t.base.call(this)},_setElementSize:function t(e,n){var i=this._pixelRatio;if(t.base.call(this,e*i,n*i),1!==i){var r=this._element,s=this._context;if(!d.hasAttribute(r,"resize")){var a=r.style;a.width=e+"px",a.height=n+"px"}s.restore(),s.save(),s.scale(i,i)}},getContext:function(){return this._context},getPixelSize:function t(e){var n,i=dt.agent;if(i&&i.firefox)n=t.base.call(this,e);else{var r=this._context,s=r.font;r.font=e+" serif",n=parseFloat(r.font),r.font=s}return n},getTextWidth:function(t,e){var n=this._context,i=n.font,r=0;n.font=t;for(var s=0,a=e.length;s<a;s++)r=Math.max(r,n.measureText(e[s]).width);return n.font=i,r},update:function(){if(!this._needsUpdate)return!1;var t=this._project,e=this._context,n=this._viewSize;return e.clearRect(0,0,n.width+1,n.height+1),t&&t.draw(e,this._matrix,this._pixelRatio),this._needsUpdate=!1,!0}}),tt=h.extend({_class:"Event",initialize:function(t){this.event=t,this.type=t&&t.type},prevented:!1,stopped:!1,preventDefault:function(){this.prevented=!0,this.event.preventDefault()},stopPropagation:function(){this.stopped=!0,this.event.stopPropagation()},stop:function(){this.stopPropagation(),this.preventDefault()},getTimeStamp:function(){return this.event.timeStamp},getModifiers:function(){return nt.modifiers}}),et=tt.extend({_class:"KeyEvent",initialize:function(t,e,n,i){this.type=t,this.event=e,this.key=n,this.character=i},toString:function(){return"{ type: '"+this.type+"', key: '"+this.key+"', character: '"+this.character+"', modifiers: "+this.getModifiers()+" }"}}),nt=new function(){var t,e,n={"\t":"tab"," ":"space","\b":"backspace","\x7f":"delete",Spacebar:"space",Del:"delete",Win:"meta",Esc:"escape"},i={tab:"\t",space:" ",enter:"\r"},r={},s={},a=new h({shift:!1,control:!1,alt:!1,meta:!1,capsLock:!1,space:!1}).inject({option:{get:function(){return this.alt}},command:{get:function(){var t=dt&&dt.agent;return t&&t.mac?this.meta:this.control}}});function c(t){var e=t.key||t.keyIdentifier;return e=/^U\+/.test(e)?String.fromCharCode(parseInt(e.substr(2),16)):/^Arrow[A-Z]/.test(e)?e.substr(5):"Unidentified"===e||e===l?String.fromCharCode(t.keyCode):e,n[e]||(e.length>1?h.hyphenate(e):e.toLowerCase())}function d(e,n,i,l){var o,u=J._focused;if(r[n]=e,e?s[n]=i:delete s[n],n.length>1&&(o=h.camelize(n))in a){a[o]=e;var c=dt&&dt.agent;if("meta"===o&&c&&c.mac)if(e)t={};else{for(var p in t)p in s&&d(!1,p,t[p],l);t=null}}else e&&t&&(t[n]=i);u&&u._handleKeyEvent(e?"keydown":"keyup",l,n,i)}return $.add(u,{keydown:function(t){var n=c(t),r=dt&&dt.agent;n.length>1||r&&r.chrome&&(t.altKey||r.mac&&t.metaKey||!r.mac&&t.ctrlKey)?d(!0,n,i[n]||(n.length>1?"":n),t):e=n},keypress:function(t){if(e){var n=c(t),i=t.charCode,r=i>=32?String.fromCharCode(i):n.length>1?"":n;n!==e&&(n=r.toLowerCase()),d(!0,n,r,t),e=null}},keyup:function(t){var e=c(t);e in s&&d(!1,e,s[e],t)}}),$.add(o,{blur:function(t){for(var e in s)d(!1,e,s[e],t)}}),{modifiers:a,isDown:function(t){return!!r[t]}}},it=tt.extend({_class:"MouseEvent",initialize:function(t,e,n,i,r){this.type=t,this.event=e,this.point=n,this.target=i,this.delta=r},toString:function(){return"{ type: '"+this.type+"', point: "+this.point+", target: "+this.target+(this.delta?", delta: "+this.delta:"")+", modifiers: "+this.getModifiers()+" }"}}),rt=tt.extend({_class:"ToolEvent",_item:null,initialize:function(t,e,n){this.tool=t,this.type=e,this.event=n},_choosePoint:function(t,e){return t||(e?e.clone():null)},getPoint:function(){return this._choosePoint(this._point,this.tool._point)},setPoint:function(t){this._point=t},getLastPoint:function(){return this._choosePoint(this._lastPoint,this.tool._lastPoint)},setLastPoint:function(t){this._lastPoint=t},getDownPoint:function(){return this._choosePoint(this._downPoint,this.tool._downPoint)},setDownPoint:function(t){this._downPoint=t},getMiddlePoint:function(){return!this._middlePoint&&this.tool._lastPoint?this.tool._point.add(this.tool._lastPoint).divide(2):this._middlePoint},setMiddlePoint:function(t){this._middlePoint=t},getDelta:function(){return!this._delta&&this.tool._lastPoint?this.tool._point.subtract(this.tool._lastPoint):this._delta},setDelta:function(t){this._delta=t},getCount:function(){return this.tool[/^mouse(down|up)$/.test(this.type)?"_downCount":"_moveCount"]},setCount:function(t){this.tool[/^mouse(down|up)$/.test(this.type)?"downCount":"count"]=t},getItem:function(){if(!this._item){var t=this.tool._scope.project.hitTest(this.getPoint());if(t){for(var e=t.item,n=e._parent;/^(Group|CompoundPath)$/.test(n._class);)e=n,n=n._parent;this._item=e}}return this._item},setItem:function(t){this._item=t},toString:function(){return"{ type: "+this.type+", point: "+this.getPoint()+", count: "+this.getCount()+", modifiers: "+this.getModifiers()+" }"}}),st=p.extend({_class:"Tool",_list:"tools",_reference:"tool",_events:["onMouseDown","onMouseUp","onMouseDrag","onMouseMove","onActivate","onDeactivate","onEditOptions","onKeyDown","onKeyUp"],initialize:function(t){p.call(this),this._moveCount=-1,this._downCount=-1,this.set(t)},getMinDistance:function(){return this._minDistance},setMinDistance:function(t){this._minDistance=t,null!=t&&null!=this._maxDistance&&t>this._maxDistance&&(this._maxDistance=t)},getMaxDistance:function(){return this._maxDistance},setMaxDistance:function(t){this._maxDistance=t,null!=this._minDistance&&null!=t&&t<this._minDistance&&(this._minDistance=t)},getFixedDistance:function(){return this._minDistance==this._maxDistance?this._minDistance:null},setFixedDistance:function(t){this._minDistance=this._maxDistance=t},_handleMouseEvent:function(t,e,n,i){dt=this._scope,i.drag&&!this.responds(t)&&(t="mousemove");var r=i.move||i.drag,s=this.responds(t),a=this.minDistance,l=this.maxDistance,o=!1,u=this;function h(t,e){var s=n,a=r?u._point:u._downPoint||s;if(r){if(u._moveCount>=0&&s.equals(a))return!1;if(a&&(null!=t||null!=e)){var l=s.subtract(a),o=l.getLength();if(o<(t||0))return!1;e&&(s=a.add(l.normalize(Math.min(o,e))))}u._moveCount++}return u._point=s,u._lastPoint=a||s,i.down&&(u._moveCount=-1,u._downPoint=s,u._downCount++),!0}function c(){s&&(o=u.emit(t,new rt(u,t,e))||o)}if(i.down)h(),c();else if(i.up)h(null,l),c();else if(s)for(;h(a,l);)c();return o}}),at=h.extend(c,{_class:"Tween",statics:{easings:{linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:2*(2-t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}}},initialize:function t(e,n,i,r,s,a){this.object=e;var l=typeof s,o="function"===l;this.type=o?l:"string"===l?s:"linear",this.easing=o?s:t.easings[this.type],this.duration=r,this.running=!1,this._then=null,this._startTime=null;var u=n||i;this._keys=u?Object.keys(u):[],this._parsedKeys=this._parseKeys(this._keys),this._from=u&&this._getState(n),this._to=u&&this._getState(i),!1!==a&&this.start()},then:function(t){return this._then=t,this},start:function(){return this._startTime=null,this.running=!0,this},stop:function(){return this.running=!1,this},update:function(t){if(this.running){t>1&&(t=1,this.running=!1);for(var e=this.easing(t),n=this._keys,i=function(n){return"function"==typeof n?n(e,t):n},r=0,s=n&&n.length;r<s;r++){var a=n[r],l=i(this._from[a]),o=i(this._to[a]),u=l&&o&&l.__add&&o.__add?o.__subtract(l).__multiply(e).__add(l):(o-l)*e+l;this._setProperty(this._parsedKeys[a],u)}!this.running&&this._then&&this._then(this.object),this.responds("update")&&this.emit("update",new h({progress:t,factor:e}))}return this},_events:{onUpdate:{}},_handleFrame:function(t){var e=this._startTime,n=e?(t-e)/this.duration:0;e||(this._startTime=t),this.update(n)},_getState:function(t){for(var e=this._keys,n={},i=0,r=e.length;i<r;i++){var s,a=e[i],l=this._parsedKeys[a],o=this._getProperty(l);if(t){var u=this._resolveValue(o,t[a]);this._setProperty(l,u),s=(s=this._getProperty(l))&&s.clone?s.clone():s,this._setProperty(l,o)}else s=o&&o.clone?o.clone():o;n[a]=s}return n},_resolveValue:function(t,e){if(e){if(Array.isArray(e)&&2===e.length){var n=e[0];return n&&n.match&&n.match(/^[+\-\*\/]=/)?this._calculate(t,n[0],e[1]):e}if("string"==typeof e){var i=e.match(/^[+\-*\/]=(.*)/);if(i){var r=JSON.parse(i[1].replace(/(['"])?([a-zA-Z0-9_]+)(['"])?:/g,'"$2": '));return this._calculate(t,e[0],r)}}}return e},_calculate:function(t,e,n){return dt.PaperScript.calculateBinary(t,e,n)},_parseKeys:function(t){for(var e={},n=0,i=t.length;n<i;n++){var r=t[n],s=r.replace(/\.([^.]*)/g,"/$1").replace(/\[['"]?([^'"\]]*)['"]?\]/g,"/$1");e[r]=s.split("/")}return e},_getProperty:function(t,e){for(var n=this.object,i=0,r=t.length-(e||0);i<r&&n;i++)n=n[t[i]];return n},_setProperty:function(t,e){var n=this._getProperty(t,1);n&&(n[t[t.length-1]]=e)}}),lt={request:function(t){var e=new a.XMLHttpRequest;return e.open((t.method||"get").toUpperCase(),t.url,h.pick(t.async,!0)),t.mimeType&&e.overrideMimeType(t.mimeType),e.onload=function(){var n=e.status;0===n||200===n?t.onLoad&&t.onLoad.call(e,e.responseText):e.onerror()},e.onerror=function(){var n=e.status,i='Could not load "'+t.url+'" (Status: '+n+")";if(!t.onError)throw new Error(i);t.onError(i,n)},e.send(null)}},ot={canvases:[],getCanvas:function(t,e){if(!o)return null;var n,i=!0;"object"==typeof t&&(e=t.height,t=t.width),this.canvases.length?n=this.canvases.pop():(n=u.createElement("canvas"),i=!1);var r=n.getContext("2d");if(!r)throw new Error("Canvas "+n+" is unable to provide a 2D context.");return n.width===t&&n.height===e?i&&r.clearRect(0,0,t+1,e+1):(n.width=t,n.height=e),r.save(),n},getContext:function(t,e){var n=this.getCanvas(t,e);return n?n.getContext("2d"):null},release:function(t){var e=t&&t.canvas?t.canvas:t;e&&e.getContext&&(e.getContext("2d").restore(),this.canvases.push(e))}},ut=new function(){var t,e,n,i,r,s,a,l,o,u,c,d=Math.min,p=Math.max,f=Math.abs;function g(t,e,n){return.2989*t+.587*e+.114*n}function _(t,e,n,i){var r=i-g(t,e,n),s=(i=g(o=t+r,u=e+r,c=n+r),d(o,u,c)),a=p(o,u,c);if(s<0){var l=i-s;o=i+(o-i)*i/l,u=i+(u-i)*i/l,c=i+(c-i)*i/l}if(a>255){var h=255-i,f=a-i;o=i+(o-i)*h/f,u=i+(u-i)*h/f,c=i+(c-i)*h/f}}function m(t,e,n){return p(t,e,n)-d(t,e,n)}function v(t,e,n,i){var r,s=[t,e,n],a=p(t,e,n),l=d(t,e,n);r=0===d(l=l===t?0:l===e?1:2,a=a===t?0:a===e?1:2)?1===p(l,a)?2:1:0,s[a]>s[l]?(s[r]=(s[r]-s[l])*i/(s[a]-s[l]),s[a]=i):s[r]=s[a]=0,s[l]=0,o=s[0],u=s[1],c=s[2]}var b={multiply:function(){o=r*t/255,u=s*e/255,c=a*n/255},screen:function(){o=r+t-r*t/255,u=s+e-s*e/255,c=a+n-a*n/255},overlay:function(){o=r<128?2*r*t/255:255-2*(255-r)*(255-t)/255,u=s<128?2*s*e/255:255-2*(255-s)*(255-e)/255,c=a<128?2*a*n/255:255-2*(255-a)*(255-n)/255},"soft-light":function(){var i=t*r/255;o=i+r*(255-(255-r)*(255-t)/255-i)/255,u=(i=e*s/255)+s*(255-(255-s)*(255-e)/255-i)/255,c=(i=n*a/255)+a*(255-(255-a)*(255-n)/255-i)/255},"hard-light":function(){o=t<128?2*t*r/255:255-2*(255-t)*(255-r)/255,u=e<128?2*e*s/255:255-2*(255-e)*(255-s)/255,c=n<128?2*n*a/255:255-2*(255-n)*(255-a)/255},"color-dodge":function(){o=0===r?0:255===t?255:d(255,255*r/(255-t)),u=0===s?0:255===e?255:d(255,255*s/(255-e)),c=0===a?0:255===n?255:d(255,255*a/(255-n))},"color-burn":function(){o=255===r?255:0===t?0:p(0,255-255*(255-r)/t),u=255===s?255:0===e?0:p(0,255-255*(255-s)/e),c=255===a?255:0===n?0:p(0,255-255*(255-a)/n)},darken:function(){o=r<t?r:t,u=s<e?s:e,c=a<n?a:n},lighten:function(){o=r>t?r:t,u=s>e?s:e,c=a>n?a:n},difference:function(){(o=r-t)<0&&(o=-o),(u=s-e)<0&&(u=-u),(c=a-n)<0&&(c=-c)},exclusion:function(){o=r+t*(255-r-r)/255,u=s+e*(255-s-s)/255,c=a+n*(255-a-a)/255},hue:function(){v(t,e,n,m(r,s,a)),_(o,u,c,g(r,s,a))},saturation:function(){v(r,s,a,m(t,e,n)),_(o,u,c,g(r,s,a))},luminosity:function(){_(r,s,a,g(t,e,n))},color:function(){_(t,e,n,g(r,s,a))},add:function(){o=d(r+t,255),u=d(s+e,255),c=d(a+n,255)},subtract:function(){o=p(r-t,0),u=p(s-e,0),c=p(a-n,0)},average:function(){o=(r+t)/2,u=(s+e)/2,c=(a+n)/2},negation:function(){o=255-f(255-t-r),u=255-f(255-e-s),c=255-f(255-n-a)}},y=this.nativeModes=h.each(["source-over","source-in","source-out","source-atop","destination-over","destination-in","destination-out","destination-atop","lighter","darker","copy","xor"],function(t){this[t]=!0},{}),x=ot.getContext(1,1);x&&(h.each(b,function(t,e){var n="darken"===e,i=!1;x.save();try{x.fillStyle=n?"#300":"#a00",x.fillRect(0,0,1,1),x.globalCompositeOperation=e,x.globalCompositeOperation===e&&(x.fillStyle=n?"#a00":"#300",x.fillRect(0,0,1,1),i=x.getImageData(0,0,1,1).data[0]!==n?170:51)}catch(r){}x.restore(),y[e]=i}),ot.release(x)),this.process=function(h,d,p,f,g){var _=d.canvas,m="normal"===h;if(m||y[h])p.save(),p.setTransform(1,0,0,1,0,0),p.globalAlpha=f,m||(p.globalCompositeOperation=h),p.drawImage(_,g.x,g.y),p.restore();else{var v=b[h];if(!v)return;for(var x=p.getImageData(g.x,g.y,_.width,_.height),w=x.data,C=d.getImageData(0,0,_.width,_.height).data,S=0,k=w.length;S<k;S+=4){t=C[S],r=w[S],e=C[S+1],s=w[S+1],n=C[S+2],a=w[S+2],i=C[S+3],l=w[S+3],v();var A=i*f/255,I=1-A;w[S]=A*o+I*r,w[S+1]=A*u+I*s,w[S+2]=A*c+I*a,w[S+3]=i*f+I*l}p.putImageData(x,g.x,g.y)}}},ht=new function(){var t="http://www.w3.org/2000/svg",e="http://www.w3.org/2000/xmlns",n="http://www.w3.org/1999/xlink",i={href:n,xlink:e,xmlns:e+"/","xmlns:xlink":e+"/"};function r(t,e,n){for(var r in e){var s=e[r],a=i[r];"number"==typeof s&&n&&(s=n.number(s)),a?t.setAttributeNS(a,r,s):t.setAttribute(r,s)}return t}return{svg:t,xmlns:e,xlink:n,create:function(e,n,i){return r(u.createElementNS(t,e),n,i)},get:function(t,e){var n=i[e],r=n?t.getAttributeNS(n,e):t.getAttribute(e);return"null"===r?null:r},set:r}},ct=h.each({fillColor:["fill","color"],fillRule:["fill-rule","string"],strokeColor:["stroke","color"],strokeWidth:["stroke-width","number"],strokeCap:["stroke-linecap","string"],strokeJoin:["stroke-linejoin","string"],strokeScaling:["vector-effect","lookup",{true:"none",false:"non-scaling-stroke"},function(t,e){return!e&&(t instanceof z||t instanceof E||t instanceof U)}],miterLimit:["stroke-miterlimit","number"],dashArray:["stroke-dasharray","array"],dashOffset:["stroke-dashoffset","number"],fontFamily:["font-family","string"],fontWeight:["font-weight","string"],fontSize:["font-size","number"],justification:["text-anchor","lookup",{left:"start",center:"middle",right:"end"}],opacity:["opacity","number"],blendMode:["mix-blend-mode","style"]},function(t,e){var n=h.capitalize(e),i=t[2];this[e]={type:t[1],property:e,attribute:t[0],toSVG:i,fromSVG:i&&h.each(i,function(t,e){this[t]=e},{}),exportFilter:t[3],get:"get"+n,set:"set"+n}},{});new function(){var t;function e(e,n,i){var r,s=new h,a=e.getTranslation();if(n&&(e.isInvertible()?(r=(e=e._shiftless())._inverseTransform(a),a=null):r=new v,s[i?"cx":"x"]=r.x,s[i?"cy":"y"]=r.y),!e.isIdentity()){var l=e.decompose();if(l){var o=[],u=l.rotation,c=l.scaling,d=l.skewing;a&&!a.isZero()&&o.push("translate("+t.point(a)+")"),u&&o.push("rotate("+t.number(u)+")"),_.isZero(c.x-1)&&_.isZero(c.y-1)||o.push("scale("+t.point(c)+")"),d.x&&o.push("skewX("+t.number(d.x)+")"),d.y&&o.push("skewY("+t.number(d.y)+")"),s.transform=o.join(" ")}else s.transform="matrix("+e.getValues().join(",")+")"}return s}function n(n,i){for(var r=e(n._matrix),s=n._children,a=ht.create("g",r,t),l=0,u=s.length;l<u;l++){var h=s[l],d=c(h,i);if(d)if(h.isClipMask()){var p=ht.create("clipPath");p.appendChild(d),o(h,p,"clip"),ht.set(a,{"clip-path":"url(#"+p.id+")"})}else a.appendChild(d)}return a}function i(n){var i=n._type,r=n._radius,s=e(n._matrix,!0,"rectangle"!==i);if("rectangle"===i){i="rect";var a=n._size,l=a.width,o=a.height;s.x-=l/2,s.y-=o/2,s.width=l,s.height=o,r.isZero()&&(r=null)}return r&&("circle"===i?s.r=r:(s.rx=r.width,s.ry=r.height)),ht.create(i,s,t)}var r,s={Group:n,Layer:n,Raster:function(n,i){var r=e(n._matrix,!0),s=n.getSize(),a=n.getImage();return r.x-=s.width/2,r.y-=s.height/2,r.width=s.width,r.height=s.height,r.href=0==i.embedImages&&a&&a.src||n.toDataURL(),ht.create("image",r,t)},Path:function(n,r){var s=r.matchShapes;if(s){var a=n.toShape(!1);if(a)return i(a)}var l,o=n._segments,u=o.length,h=e(n._matrix);if(s&&u>=2&&!n.hasHandles())if(u>2){l=n._closed?"polygon":"polyline";for(var c=[],d=0;d<u;d++)c.push(t.point(o[d]._point));h.points=c.join(" ")}else{l="line";var p=o[0]._point,f=o[1]._point;h.set({x1:p.x,y1:p.y,x2:f.x,y2:f.y})}else l="path",h.d=n.getPathData(null,r.precision);return ht.create(l,h,t)},Shape:i,CompoundPath:function(n,i){var r=e(n._matrix),s=n.getPathData(null,i.precision);return s&&(r.d=s),ht.create("path",r,t)},SymbolItem:function(n,i){var r=e(n._matrix,!0),s=n._definition,a=l(s,"symbol"),u=s._item,h=u.getStrokeBounds();return a||((a=ht.create("symbol",{viewBox:t.rectangle(h)})).appendChild(c(u,i)),o(s,a,"symbol")),r.href="#"+a.id,r.x+=h.x,r.y+=h.y,r.width=h.width,r.height=h.height,r.overflow="visible",ht.create("use",r,t)},PointText:function(n){var i=ht.create("text",e(n._matrix,!0),t);return i.textContent=n._content,i}};function l(t,e){return r||(r={ids:{},svgs:{}}),t&&r.svgs[e+"-"+(t._id||t.__id||(t.__id=m.get("svg")))]}function o(t,e,n){r||l();var i=r.ids[n]=(r.ids[n]||0)+1;e.id=n+"-"+i,r.svgs[n+"-"+(t._id||t.__id)]=e}function u(t,e){var n=t,i=null;if(r){for(var s in n="svg"===t.nodeName.toLowerCase()&&t,r.svgs)i||(n||(n=ht.create("svg")).appendChild(t),i=n.insertBefore(ht.create("defs"),n.firstChild)),i.appendChild(r.svgs[s]);r=null}return e.asString?(new a.XMLSerializer).serializeToString(n):n}function c(e,n,i){var r=s[e._class],a=r&&r(e,n);if(a){var u=n.onExport;u&&(a=u(e,a,n)||a);var c=JSON.stringify(e._data);c&&"{}"!==c&&"null"!==c&&a.setAttribute("data-paper-data",c)}return a&&function(e,n,i){var r={},s=!i&&e.getParent(),a=[];return null!=e._name&&(r.id=e._name),h.each(ct,function(n){var i=n.get,u=n.type,c=e[i]();if(n.exportFilter?n.exportFilter(e,c):!s||!h.equals(s[i](),c)){if("color"===u&&null!=c){var d=c.getAlpha();d<1&&(r[n.attribute+"-opacity"]=d)}"style"===u?a.push(n.attribute+": "+c):r[n.attribute]=null==c?"none":"color"===u?c.gradient?function(e){var n=l(e,"color");if(!n){var i,r=e.getGradient(),s=r._radial,a=e.getOrigin(),u=e.getDestination();if(s){i={cx:a.x,cy:a.y,r:a.getDistance(u)};var h=e.getHighlight();h&&(i.fx=h.x,i.fy=h.y)}else i={x1:a.x,y1:a.y,x2:u.x,y2:u.y};i.gradientUnits="userSpaceOnUse",n=ht.create((s?"radial":"linear")+"Gradient",i,t);for(var c=r._stops,d=0,p=c.length;d<p;d++){var f=c[d],g=f._color,_=g.getAlpha(),m=f._offset;i={offset:null==m?d/(p-1):m},g&&(i["stop-color"]=g.toCSS(!0)),_<1&&(i["stop-opacity"]=_),n.appendChild(ht.create("stop",i,t))}o(e,n,"color")}return"url(#"+n.id+")"}(c):c.toCSS(!0):"array"===u?c.join(","):"lookup"===u?n.toSVG[c]:c}}),a.length&&(r.style=a.join(";")),1===r.opacity&&delete r.opacity,e._visible||(r.visibility="hidden"),ht.set(n,r,t)}(e,a,i)}function d(e){return e||(e={}),t=new g(e.precision),e}I.inject({exportSVG:function(t){return u(c(this,t=d(t),!0),t)}}),A.inject({exportSVG:function(n){n=d(n);var i=this._children,r=this.getView(),s=h.pick(n.bounds,"view"),a=n.matrix||"view"===s&&r._matrix,l=a&&S.read([a]),o="view"===s?new w([0,0],r.getViewSize()):"content"===s?I._getBounds(i,l,{stroke:!0}).rect:w.read([s],0,{readNull:!0}),p={version:"1.1",xmlns:ht.svg,"xmlns:xlink":ht.xlink};o&&(p.width=o.width,p.height=o.height,(o.x||0===o.x||o.y||0===o.y)&&(p.viewBox=t.rectangle(o)));var f=ht.create("svg",p,t),g=f;l&&!l.isIdentity()&&(g=f.appendChild(ht.create("g",e(l),t)));for(var _=0,m=i.length;_<m;_++)g.appendChild(c(i[_],n,!0));return u(f,n)}})},new function(){var t,e={};function n(e,n,i,r,s,a){var l=ht.get(e,n)||a,o=null==l?r?null:i?"":0:i?l:parseFloat(l);return/%\s*$/.test(l)?o/100*(s?1:t[/x|^width/.test(n)?"width":"height"]):o}function i(t,e,i,r,s,a,l){return e=n(t,e||"x",!1,r,s,a),i=n(t,i||"y",!1,r,s,l),!r||null!=e&&null!=i?new v(e,i):null}function r(t,e,i,r,s){return e=n(t,e||"width",!1,r,s),i=n(t,i||"height",!1,r,s),!r||null!=e&&null!=i?new y(e,i):null}function s(t,e,n){return"none"===t?null:"number"===e?parseFloat(t):"array"===e?t?t.split(/[\s,]+/g).map(parseFloat):[]:"color"===e?C(t)||t:"lookup"===e?n[t]:t}function c(t,e,n,i){var r=t.childNodes,s="clippath"===e,a="defs"===e,l=new P,o=l._project,u=o._currentStyle,h=[];if(s||a||(l=x(l,t,i),o._currentStyle=l._style.clone()),i)for(var c=t.querySelectorAll("defs"),d=0,p=c.length;d<p;d++)k(c[d],n,!1);for(d=0,p=r.length;d<p;d++){var f,g=r[d];1!==g.nodeType||/^defs$/i.test(g.nodeName)||!(f=k(g,n,!1))||f instanceof O||h.push(f)}return l.addChildren(h),s&&(l=x(l.reduce(),t,i)),o._currentStyle=u,(s||a)&&(l.remove(),l=null),l}function d(t,e){for(var n=t.getAttribute("points").match(/[+-]?(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?/g),i=[],r=0,s=n.length;r<s;r+=2)i.push(new v(parseFloat(n[r]),parseFloat(n[r+1])));var a=new K(i);return"polygon"===e&&a.closePath(),a}function p(t,r){var s,a=(n(t,"href",!0)||"").substring(1),l="radialgradient"===r;if(a)(s=e[a].getGradient())._radial^l&&((s=s.clone())._radial=l);else{for(var o=t.childNodes,u=[],h=0,c=o.length;h<c;h++){var d=o[h];1===d.nodeType&&u.push(x(new W,d))}s=new Z(u,l)}var p,f,g,_="userSpaceOnUse"!==n(t,"gradientUnits",!0);return l?(f=(p=i(t,"cx","cy",!1,_,"50%","50%")).add(n(t,"r",!1,!1,_,"50%"),0),g=i(t,"fx","fy",!0,_)):(p=i(t,"x1","y1",!1,_,"0%","0%"),f=i(t,"x2","y2",!1,_,"100%","0%")),x(new G(s,p,f,g),t)._scaleToBounds=_,null}var f={"#document":function(t,e,n,i){for(var r=t.childNodes,s=0,a=r.length;s<a;s++){var l=r[s];if(1===l.nodeType)return k(l,n,i)}},g:c,svg:c,clippath:c,polygon:d,polyline:d,path:function(t){return z.create(t.getAttribute("d"))},lineargradient:p,radialgradient:p,image:function(t){var e=new M(n(t,"href",!0));return e.on("load",function(){var e=r(t);this.setSize(e);var n=i(t).add(e.divide(2));this._matrix.append((new S).translate(n))}),e},symbol:function(t,e,n,i){return new O(c(t,e,n,i),!0)},defs:c,use:function(t){var r=(n(t,"href",!0)||"").substring(1),s=e[r],a=i(t);return s?s instanceof O?s.place(a):s.clone().translate(a):null},circle:function(t){return new E.Circle(i(t,"cx","cy"),n(t,"r"))},ellipse:function(t){return new E.Ellipse({center:i(t,"cx","cy"),radius:r(t,"rx","ry")})},rect:function(t){return new E.Rectangle(new w(i(t),r(t)),r(t,"rx","ry"))},line:function(t){return new K.Line(i(t,"x1","y1"),i(t,"x2","y2"))},text:function(t){var e=new H(i(t).add(i(t,"dx","dy")));return e.setContent(t.textContent.trim()||""),e},switch:c};function g(t,e,n,i){if(t.transform){for(var r=(i.getAttribute(n)||"").split(/\)\s*/g),s=new S,a=0,l=r.length;a<l;a++){var o=r[a];if(!o)break;for(var u=o.split(/\(\s*/),h=u[0],c=u[1].split(/[\s,]+/g),d=0,p=c.length;d<p;d++)c[d]=parseFloat(c[d]);switch(h){case"matrix":s.append(new S(c[0],c[1],c[2],c[3],c[4],c[5]));break;case"rotate":s.rotate(c[0],c[1]||0,c[2]||0);break;case"translate":s.translate(c[0],c[1]||0);break;case"scale":s.scale(c);break;case"skewX":s.skew(c[0],0);break;case"skewY":s.skew(0,c[0])}}t.transform(s)}}function _(t,e,n){var i="fill-opacity"===n?"getFillColor":"getStrokeColor",r=t[i]&&t[i]();r&&r.setAlpha(parseFloat(e))}var m=h.set(h.each(ct,function(t){this[t.attribute]=function(e,n){if(e[t.set]&&(e[t.set](s(n,t.type,t.fromSVG)),"color"===t.type)){var i=e[t.get]();if(i&&i._scaleToBounds){var r=e.getBounds();i.transform((new S).translate(r.getPoint()).scale(r.getSize()))}}}},{}),{id:function(t,n){e[n]=t,t.setName&&t.setName(n)},"clip-path":function(t,e){var n=C(e);if(n){if((n=n.clone()).setClipMask(!0),!(t instanceof P))return new P(n,t);t.insertChild(0,n)}},gradientTransform:g,transform:g,"fill-opacity":_,"stroke-opacity":_,visibility:function(t,e){t.setVisible&&t.setVisible("visible"===e)},display:function(t,e){t.setVisible&&t.setVisible(null!==e)},"stop-color":function(t,e){t.setColor&&t.setColor(e)},"stop-opacity":function(t,e){t._color&&t._color.setAlpha(parseFloat(e))},offset:function(t,e){if(t.setOffset){var n=e.match(/(.*)%$/);t.setOffset(n?n[1]/100:parseFloat(e))}},viewBox:function(t,e,n,i,a){var l,o=new w(s(e,"array")),u=r(i,null,null,!0);if(t instanceof P){var h=u?u.divide(o.getSize()):1,c=(new S).scale(h).translate(o.getPoint().negate());l=t}else t instanceof O&&(u&&o.setSize(u),l=t._item);if(l){if("visible"!==b(i,"overflow",a)){var d=new E.Rectangle(o);d.setClipMask(!0),l.addChild(d)}c&&l.transform(c)}}});function b(t,e,n){var i=t.attributes[e],r=i&&i.value;if(!r&&t.style){var s=h.camelize(e);(r=t.style[s])||n.node[s]===n.parent[s]||(r=n.node[s])}return r?"none"===r?null:r:l}function x(t,e,n){var i=e.parentNode,r={node:X.getStyles(e)||{},parent:!n&&!/^defs$/i.test(i.tagName)&&X.getStyles(i)||{}};return h.each(m,function(n,i){var s=b(e,i,r);t=s!==l&&n(t,s,i,e,r)||t}),t}function C(t){var n=t&&t.match(/\((?:["'#]*)([^"')]+)/),i=n&&n[1],r=i&&e[o?i.replace(o.location.href.split("#")[0]+"#",""):i];return r&&r._scaleToBounds&&((r=r.clone())._scaleToBounds=!0),r}function k(n,i,s){var a,l,o,c=n.nodeName.toLowerCase(),d="#document"!==c,p=u.body;s&&d&&(t=dt.getView().getSize(),t=r(n,null,null,!0)||t,a=ht.create("svg",{style:"stroke-width: 1px; stroke-miterlimit: 10"}),l=n.parentNode,o=n.nextSibling,a.appendChild(n),p.appendChild(a));var g=dt.settings,_=g.applyMatrix,m=g.insertItems;g.applyMatrix=!1,g.insertItems=!1;var v=f[c],b=v&&v(n,c,i,s)||null;if(g.insertItems=m,g.applyMatrix=_,b){!d||b instanceof P||(b=x(b,n,s));var y=i.onImport,w=d&&n.getAttribute("data-paper-data");y&&(b=y(n,b,i)||b),i.expandShapes&&b instanceof E&&(b.remove(),b=b.toPath()),w&&(b._data=JSON.parse(w))}return a&&(p.removeChild(a),l&&(o?l.insertBefore(n,o):l.appendChild(n))),s&&(e={},b&&h.pick(i.applyMatrix,_)&&b.matrix.apply(!0,!0)),b}function T(t,e,n){if(!t)return null;e="function"==typeof e?{onLoad:e}:e||{};var i=dt,r=null;function s(s){try{var u="object"==typeof s?s:(new a.DOMParser).parseFromString(s,"image/svg+xml");if(!u.nodeName)throw u=null,new Error("Unsupported SVG source: "+t);dt=i,r=k(u,e,!0),e&&!1===e.insert||n._insertItem(l,r);var h=e.onLoad;h&&h(r,s)}catch(c){o(c)}}function o(t,n){var i=e.onError;if(!i)throw new Error(t);i(t,n)}if("string"!=typeof t||/^.*</.test(t)){if("undefined"!=typeof File&&t instanceof File){var h=new FileReader;return h.onload=function(){s(h.result)},h.onerror=function(){o(h.error)},h.readAsText(t)}s(t)}else{var c=u.getElementById(t);c?s(c):lt.request({url:t,async:!0,onLoad:s,onError:o})}return r}I.inject({importSVG:function(t,e){return T(t,e,this)}}),A.inject({importSVG:function(t,e){return this.activate(),T(t,e,this)}})},h.exports.PaperScript=(function(){var t,e,c,p=this,f=p.acorn;if(!f)try{f=n("sOAE")}catch(I){}function g(t,e){return(p.acorn||f).parse(t,e)}f||(f=t=e={},c=function(t){"use strict";var e,n,i,r;t.version="0.5.0",t.parse=function(t,r){return n=String(t),i=n.length,a(r),Zt(),function(t){m=v=l,e.locations&&(b=new Gt),y=w=null,x=[],Jt();var n=t||he(),i=!0;for(t||(n.body=[]);d!==M;){var r=we();n.body.push(r),i&&pe(r)&&le(!0),i=!1}return de(n,"Program")}(e.program)};var s=t.defaultOptions={ecmaVersion:5,strictSemicolons:!1,allowTrailingCommas:!0,forbidReserved:!1,allowReturnOutsideFunction:!1,locations:!1,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null};function a(t){for(var n in e=t||{},s)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=s[n]);r=e.sourceFile||null}var l,o,u,h,c,d,p,f,g,_,m,v,b,y,x,w,C=t.getLineInfo=function(t,e){for(var n=1,i=0;;){qt.lastIndex=i;var r=qt.exec(t);if(!(r&&r.index<e))break;++n,i=r.index+r[0].length}return{line:n,column:e-i}};function S(t,e){var i=C(n,t),r=new SyntaxError(e+=" ("+i.line+":"+i.column+")");throw r.pos=t,r.loc=i,r.raisedAt=l,r}t.tokenize=function(t,r){n=String(t),i=n.length,a(r),Zt();var s={};function m(t){return v=u,Jt(t),s.start=o,s.end=u,s.startLoc=h,s.endLoc=c,s.type=d,s.value=p,s}return m.jumpTo=function(t,i){var r;if(l=t,e.locations)for(g=1,_=qt.lastIndex=0;(r=qt.exec(n))&&r.index<t;)++g,_=r.index+r[0].length;f=i,$t()},m};var k=[],A={type:"num"},P={type:"regexp"},T={type:"string"},E={type:"name"},M={type:"eof"},L={keyword:"break"},O={keyword:"case",beforeExpr:!0},N={keyword:"catch"},B={keyword:"continue"},D={keyword:"debugger"},R={keyword:"default"},V={keyword:"do",isLoop:!0},z={keyword:"else",beforeExpr:!0},K={keyword:"finally"},F={keyword:"for",isLoop:!0},j={keyword:"function"},q={keyword:"if"},U={keyword:"return",beforeExpr:!0},H={keyword:"switch"},G={keyword:"throw",beforeExpr:!0},Z={keyword:"try"},W={keyword:"var"},Q={keyword:"while",isLoop:!0},X={keyword:"with"},$={keyword:"new",beforeExpr:!0},J={keyword:"this"},Y={keyword:"null",atomValue:null},tt={keyword:"true",atomValue:!0},et={keyword:"false",atomValue:!1},nt={keyword:"in",binop:7,beforeExpr:!0},it={break:L,case:O,catch:N,continue:B,debugger:D,default:R,do:V,else:z,finally:K,for:F,function:j,if:q,return:U,switch:H,throw:G,try:Z,var:W,while:Q,with:X,null:Y,true:tt,false:et,new:$,in:nt,instanceof:{keyword:"instanceof",binop:7,beforeExpr:!0},this:J,typeof:{keyword:"typeof",prefix:!0,beforeExpr:!0},void:{keyword:"void",prefix:!0,beforeExpr:!0},delete:{keyword:"delete",prefix:!0,beforeExpr:!0}},rt={type:"[",beforeExpr:!0},st={type:"]"},at={type:"{",beforeExpr:!0},lt={type:"}"},ot={type:"(",beforeExpr:!0},ut={type:")"},ht={type:",",beforeExpr:!0},ct={type:";",beforeExpr:!0},dt={type:":",beforeExpr:!0},pt={type:"."},ft={type:"?",beforeExpr:!0},gt={binop:10,beforeExpr:!0},_t={isAssign:!0,beforeExpr:!0},mt={isAssign:!0,beforeExpr:!0},vt={postfix:!0,prefix:!0,isUpdate:!0},bt={prefix:!0,beforeExpr:!0},yt={binop:1,beforeExpr:!0},xt={binop:2,beforeExpr:!0},wt={binop:3,beforeExpr:!0},Ct={binop:4,beforeExpr:!0},St={binop:5,beforeExpr:!0},kt={binop:6,beforeExpr:!0},At={binop:7,beforeExpr:!0},It={binop:8,beforeExpr:!0},Pt={binop:9,prefix:!0,beforeExpr:!0},Tt={binop:10,beforeExpr:!0};for(var Et in t.tokTypes={bracketL:rt,bracketR:st,braceL:at,braceR:lt,parenL:ot,parenR:ut,comma:ht,semi:ct,colon:dt,dot:pt,question:ft,slash:gt,eq:_t,name:E,eof:M,num:A,regexp:P,string:T},it)t.tokTypes["_"+Et]=it[Et];function Mt(t){t=t.split(" ");var e="",n=[];t:for(var i=0;i<t.length;++i){for(var r=0;r<n.length;++r)if(n[r][0].length==t[i].length){n[r].push(t[i]);continue t}n.push([t[i]])}function s(t){if(1==t.length)return e+="return str === "+JSON.stringify(t[0])+";";e+="switch(str){";for(var n=0;n<t.length;++n)e+="case "+JSON.stringify(t[n])+":";e+="return true}return false;"}if(n.length>3){for(n.sort(function(t,e){return e.length-t.length}),e+="switch(str.length){",i=0;i<n.length;++i){var a=n[i];e+="case "+a[0].length+":",s(a)}e+="}"}else s(t);return new Function("str",e)}var Lt,Ot=Mt("abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile"),Nt=Mt("class enum extends super const export import"),Bt=Mt("implements interface let package private protected public static yield"),Dt=Mt("eval arguments"),Rt=Mt("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"),Vt=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,zt="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0\u08a2-\u08ac\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097f\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c33\u0c35-\u0c39\u0c3d\u0c58\u0c59\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d60\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f0\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191c\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19c1-\u19c7\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fcc\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua697\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua78e\ua790-\ua793\ua7a0-\ua7aa\ua7f8-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa80-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uabc0-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc",Kt=new RegExp("["+zt+"]"),Ft=new RegExp("["+zt+"\u0300-\u036f\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u0620-\u0649\u0672-\u06d3\u06e7-\u06e8\u06fb-\u06fc\u0730-\u074a\u0800-\u0814\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0840-\u0857\u08e4-\u08fe\u0900-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962-\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09d7\u09df-\u09e0\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2-\u0ae3\u0ae6-\u0aef\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b5f-\u0b60\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c01-\u0c03\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62-\u0c63\u0c66-\u0c6f\u0c82\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2-\u0ce3\u0ce6-\u0cef\u0d02\u0d03\u0d46-\u0d48\u0d57\u0d62-\u0d63\u0d66-\u0d6f\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e34-\u0e3a\u0e40-\u0e45\u0e50-\u0e59\u0eb4-\u0eb9\u0ec8-\u0ecd\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f41-\u0f47\u0f71-\u0f84\u0f86-\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u1000-\u1029\u1040-\u1049\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u170e-\u1710\u1720-\u1730\u1740-\u1750\u1772\u1773\u1780-\u17b2\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u1920-\u192b\u1930-\u193b\u1951-\u196d\u19b0-\u19c0\u19c8-\u19c9\u19d0-\u19d9\u1a00-\u1a15\u1a20-\u1a53\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1b46-\u1b4b\u1b50-\u1b59\u1b6b-\u1b73\u1bb0-\u1bb9\u1be6-\u1bf3\u1c00-\u1c22\u1c40-\u1c49\u1c5b-\u1c7d\u1cd0-\u1cd2\u1d00-\u1dbe\u1e01-\u1f15\u200c\u200d\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2d81-\u2d96\u2de0-\u2dff\u3021-\u3028\u3099\u309a\ua640-\ua66d\ua674-\ua67d\ua69f\ua6f0-\ua6f1\ua7f8-\ua800\ua806\ua80b\ua823-\ua827\ua880-\ua881\ua8b4-\ua8c4\ua8d0-\ua8d9\ua8f3-\ua8f7\ua900-\ua909\ua926-\ua92d\ua930-\ua945\ua980-\ua983\ua9b3-\ua9c0\uaa00-\uaa27\uaa40-\uaa41\uaa4c-\uaa4d\uaa50-\uaa59\uaa7b\uaae0-\uaae9\uaaf2-\uaaf3\uabc0-\uabe1\uabec\uabed\uabf0-\uabf9\ufb20-\ufb28\ufe00-\ufe0f\ufe20-\ufe26\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f]"),jt=/[\n\r\u2028\u2029]/,qt=/\r\n|[\n\r\u2028\u2029]/g,Ut=t.isIdentifierStart=function(t){return t<65?36===t:t<91||(t<97?95===t:t<123||t>=170&&Kt.test(String.fromCharCode(t)))},Ht=t.isIdentifierChar=function(t){return t<48?36===t:t<58||!(t<65)&&(t<91||(t<97?95===t:t<123||t>=170&&Ft.test(String.fromCharCode(t))))};function Gt(){this.line=g,this.column=l-_}function Zt(){g=1,l=_=0,f=!0,$t()}function Wt(t,n){u=l,e.locations&&(c=new Gt),d=t,$t(),p=n,f=t.beforeExpr}function Qt(){var t,i=e.onComment&&e.locations&&new Gt,r=l,s=n.indexOf("*/",l+=2);if(-1===s&&S(l-2,"Unterminated comment"),l=s+2,e.locations)for(qt.lastIndex=r;(t=qt.exec(n))&&t.index<l;)++g,_=t.index+t[0].length;e.onComment&&e.onComment(!0,n.slice(r+2,s),r,l,i,e.locations&&new Gt)}function Xt(){for(var t=l,r=e.onComment&&e.locations&&new Gt,s=n.charCodeAt(l+=2);l<i&&10!==s&&13!==s&&8232!==s&&8233!==s;)s=n.charCodeAt(++l);e.onComment&&e.onComment(!1,n.slice(t+2,l),t,l,r,e.locations&&new Gt)}function $t(){for(;l<i;){var t=n.charCodeAt(l);if(32===t)++l;else if(13===t)10===(r=n.charCodeAt(++l))&&++l,e.locations&&(++g,_=l);else if(10===t||8232===t||8233===t)++l,e.locations&&(++g,_=l);else if(t>8&&t<14)++l;else if(47===t){var r;if(42===(r=n.charCodeAt(l+1)))Qt();else{if(47!==r)break;Xt()}}else if(160===t)++l;else{if(!(t>=5760&&Vt.test(String.fromCharCode(t))))break;++l}}}function Jt(t){if(t?l=o+1:o=l,e.locations&&(h=new Gt),t)return te();if(l>=i)return Wt(M);var r=n.charCodeAt(l);if(Ut(r)||92===r)return se();var s=function(t){switch(t){case 46:return function(){var t=n.charCodeAt(l+1);return t>=48&&t<=57?ne(!0):(++l,Wt(pt))}();case 40:return++l,Wt(ot);case 41:return++l,Wt(ut);case 59:return++l,Wt(ct);case 44:return++l,Wt(ht);case 91:return++l,Wt(rt);case 93:return++l,Wt(st);case 123:return++l,Wt(at);case 125:return++l,Wt(lt);case 58:return++l,Wt(dt);case 63:return++l,Wt(ft);case 48:var r=n.charCodeAt(l+1);if(120===r||88===r)return function(){l+=2;var t=ee(16);return null==t&&S(o+2,"Expected hexadecimal number"),Ut(n.charCodeAt(l))&&S(l,"Identifier directly after number"),Wt(A,t)}();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return ne(!1);case 34:case 39:return function(t){l++;for(var r="";;){l>=i&&S(o,"Unterminated string constant");var s=n.charCodeAt(l);if(s===t)return++l,Wt(T,r);if(92===s){s=n.charCodeAt(++l);var a=/^[0-7]+/.exec(n.slice(l,l+3));for(a&&(a=a[0]);a&&parseInt(a,8)>255;)a=a.slice(0,-1);if("0"===a&&(a=null),++l,a)w&&S(l-2,"Octal literal in strict mode"),r+=String.fromCharCode(parseInt(a,8)),l+=a.length-1;else switch(s){case 110:r+="\n";break;case 114:r+="\r";break;case 120:r+=String.fromCharCode(ie(2));break;case 117:r+=String.fromCharCode(ie(4));break;case 85:r+=String.fromCharCode(ie(8));break;case 116:r+="\t";break;case 98:r+="\b";break;case 118:r+="\v";break;case 102:r+="\f";break;case 48:r+="\0";break;case 13:10===n.charCodeAt(l)&&++l;case 10:e.locations&&(_=l,++g);break;default:r+=String.fromCharCode(s)}}else 13!==s&&10!==s&&8232!==s&&8233!==s||S(o,"Unterminated string constant"),r+=String.fromCharCode(s),++l}}(t);case 47:return function(){var t=n.charCodeAt(l+1);return f?(++l,te()):61===t?Yt(mt,2):Yt(gt,1)}();case 37:case 42:return 61===n.charCodeAt(l+1)?Yt(mt,2):Yt(Tt,1);case 124:case 38:return function(t){var e=n.charCodeAt(l+1);return e===t?Yt(124===t?yt:xt,2):61===e?Yt(mt,2):Yt(124===t?wt:St,1)}(t);case 94:return 61===n.charCodeAt(l+1)?Yt(mt,2):Yt(Ct,1);case 43:case 45:return function(t){var e=n.charCodeAt(l+1);return e===t?45==e&&62==n.charCodeAt(l+2)&&jt.test(n.slice(v,l))?(l+=3,Xt(),$t(),Jt()):Yt(vt,2):61===e?Yt(mt,2):Yt(Pt,1)}(t);case 60:case 62:return function(t){var e=n.charCodeAt(l+1),i=1;return e===t?(i=62===t&&62===n.charCodeAt(l+2)?3:2,61===n.charCodeAt(l+i)?Yt(mt,i+1):Yt(It,i)):33==e&&60==t&&45==n.charCodeAt(l+2)&&45==n.charCodeAt(l+3)?(l+=4,Xt(),$t(),Jt()):(61===e&&(i=61===n.charCodeAt(l+2)?3:2),Yt(At,i))}(t);case 61:case 33:return function(t){return 61===n.charCodeAt(l+1)?Yt(kt,61===n.charCodeAt(l+2)?3:2):Yt(61===t?_t:bt,1)}(t);case 126:return Yt(bt,1)}return!1}(r);if(!1===s){var a=String.fromCharCode(r);if("\\"===a||Kt.test(a))return se();S(l,"Unexpected character '"+a+"'")}return s}function Yt(t,e){var i=n.slice(l,l+e);l+=e,Wt(t,i)}function te(){for(var t,e,r=l;;){l>=i&&S(r,"Unterminated regular expression");var s=n.charAt(l);if(jt.test(s)&&S(r,"Unterminated regular expression"),t)t=!1;else{if("["===s)e=!0;else if("]"===s&&e)e=!1;else if("/"===s&&!e)break;t="\\"===s}++l}var a=n.slice(r,l);++l;var o=re();o&&!/^[gmsiy]*$/.test(o)&&S(r,"Invalid regexp flag");try{var u=new RegExp(a,o)}catch(I){I instanceof SyntaxError&&S(r,I.message),S(I)}return Wt(P,u)}function ee(t,e){for(var i=l,r=0,s=0,a=null==e?1/0:e;s<a;++s){var o,u=n.charCodeAt(l);if((o=u>=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0)>=t)break;++l,r=r*t+o}return l===i||null!=e&&l-i!==e?null:r}function ne(t){var e=l,i=!1,r=48===n.charCodeAt(l);t||null!==ee(10)||S(e,"Invalid number"),46===n.charCodeAt(l)&&(++l,ee(10),i=!0);var s=n.charCodeAt(l);69!==s&&101!==s||(43!==(s=n.charCodeAt(++l))&&45!==s||++l,null===ee(10)&&S(e,"Invalid number"),i=!0),Ut(n.charCodeAt(l))&&S(l,"Identifier directly after number");var a,o=n.slice(e,l);return i?a=parseFloat(o):r&&1!==o.length?/[89]/.test(o)||w?S(e,"Invalid number"):a=parseInt(o,8):a=parseInt(o,10),Wt(A,a)}function ie(t){var e=ee(16,t);return null===e&&S(o,"Bad character escape sequence"),e}function re(){Lt=!1;for(var t,e=!0,i=l;;){var r=n.charCodeAt(l);if(Ht(r))Lt&&(t+=n.charAt(l)),++l;else{if(92!==r)break;Lt||(t=n.slice(i,l)),Lt=!0,117!=n.charCodeAt(++l)&&S(l,"Expecting Unicode escape sequence \\uXXXX"),++l;var s=ie(4),a=String.fromCharCode(s);a||S(l-1,"Invalid Unicode escape"),(e?Ut(s):Ht(s))||S(l-4,"Invalid Unicode escape"),t+=a}e=!1}return Lt?t:n.slice(i,l)}function se(){var t=re(),e=E;return!Lt&&Rt(t)&&(e=it[t]),Wt(e,t)}function ae(){m=o,v=u,b=c,Jt()}function le(t){if(w=t,l=o,e.locations)for(;l<_;)_=n.lastIndexOf("\n",_-2)+1,--g;$t(),Jt()}function oe(){this.type=null,this.start=o,this.end=null}function ue(){this.start=h,this.end=null,null!==r&&(this.source=r)}function he(){var t=new oe;return e.locations&&(t.loc=new ue),e.directSourceFile&&(t.sourceFile=e.directSourceFile),e.ranges&&(t.range=[o,0]),t}function ce(t){var n=new oe;return n.start=t.start,e.locations&&(n.loc=new ue,n.loc.start=t.loc.start),e.ranges&&(n.range=[t.range[0],0]),n}function de(t,n){return t.type=n,t.end=v,e.locations&&(t.loc.end=b),e.ranges&&(t.range[1]=v),t}function pe(t){return e.ecmaVersion>=5&&"ExpressionStatement"===t.type&&"Literal"===t.expression.type&&"use strict"===t.expression.value}function fe(t){if(d===t)return ae(),!0}function ge(){return!e.strictSemicolons&&(d===M||d===lt||jt.test(n.slice(v,o)))}function _e(){fe(ct)||ge()||ve()}function me(t){d===t?ae():ve()}function ve(){S(o,"Unexpected token")}function be(t){"Identifier"!==t.type&&"MemberExpression"!==t.type&&S(t.start,"Assigning to rvalue"),w&&"Identifier"===t.type&&Dt(t.name)&&S(t.start,"Assigning to "+t.name+" in strict mode")}var ye={kind:"loop"},xe={kind:"switch"};function we(){(d===gt||d===mt&&"/="==p)&&Jt(!0);var t=d,i=he();switch(t){case L:case B:ae();var r=t===L;fe(ct)||ge()?i.label=null:d!==E?ve():(i.label=De(),_e());for(var s=0;s<x.length;++s){var a=x[s];if(null==i.label||a.name===i.label.name){if(null!=a.kind&&(r||"loop"===a.kind))break;if(i.label&&r)break}}return s===x.length&&S(i.start,"Unsyntactic "+t.keyword),de(i,r?"BreakStatement":"ContinueStatement");case D:return ae(),_e(),de(i,"DebuggerStatement");case V:return ae(),x.push(ye),i.body=we(),x.pop(),me(Q),i.test=Ce(),_e(),de(i,"DoWhileStatement");case F:if(ae(),x.push(ye),me(ot),d===ct)return ke(i,null);if(d===W){var l=he();return ae(),Ie(l,!0),de(l,"VariableDeclaration"),1===l.declarations.length&&fe(nt)?Ae(i,l):ke(i,l)}return l=Pe(!1,!0),fe(nt)?(be(l),Ae(i,l)):ke(i,l);case j:return ae(),Ne(i,!0);case q:return ae(),i.test=Ce(),i.consequent=we(),i.alternate=fe(z)?we():null,de(i,"IfStatement");case U:return y||e.allowReturnOutsideFunction||S(o,"'return' outside of function"),ae(),fe(ct)||ge()?i.argument=null:(i.argument=Pe(),_e()),de(i,"ReturnStatement");case H:ae(),i.discriminant=Ce(),i.cases=[],me(at),x.push(xe);for(var u,h;d!=lt;)if(d===O||d===R){var c=d===O;u&&de(u,"SwitchCase"),i.cases.push(u=he()),u.consequent=[],ae(),c?u.test=Pe():(h&&S(m,"Multiple default clauses"),h=!0,u.test=null),me(dt)}else u||ve(),u.consequent.push(we());return u&&de(u,"SwitchCase"),ae(),x.pop(),de(i,"SwitchStatement");case G:return ae(),jt.test(n.slice(v,o))&&S(v,"Illegal newline after throw"),i.argument=Pe(),_e(),de(i,"ThrowStatement");case Z:if(ae(),i.block=Se(),i.handler=null,d===N){var f=he();ae(),me(ot),f.param=De(),w&&Dt(f.param.name)&&S(f.param.start,"Binding "+f.param.name+" in strict mode"),me(ut),f.guard=null,f.body=Se(),i.handler=de(f,"CatchClause")}return i.guardedHandlers=k,i.finalizer=fe(K)?Se():null,i.handler||i.finalizer||S(i.start,"Missing catch or finally clause"),de(i,"TryStatement");case W:return ae(),Ie(i),_e(),de(i,"VariableDeclaration");case Q:return ae(),i.test=Ce(),x.push(ye),i.body=we(),x.pop(),de(i,"WhileStatement");case X:return w&&S(o,"'with' in strict mode"),ae(),i.object=Ce(),i.body=we(),de(i,"WithStatement");case at:return Se();case ct:return ae(),de(i,"EmptyStatement");default:var g=p,_=Pe();if(t===E&&"Identifier"===_.type&&fe(dt)){for(s=0;s<x.length;++s)x[s].name===g&&S(_.start,"Label '"+g+"' is already declared");return x.push({name:g,kind:d.isLoop?"loop":d===H?"switch":null}),i.body=we(),x.pop(),i.label=_,de(i,"LabeledStatement")}return i.expression=_,_e(),de(i,"ExpressionStatement")}}function Ce(){me(ot);var t=Pe();return me(ut),t}function Se(t){var e,n=he(),i=!0,r=!1;for(n.body=[],me(at);!fe(lt);){var s=we();n.body.push(s),i&&t&&pe(s)&&(e=r,le(r=!0)),i=!1}return r&&!e&&le(!1),de(n,"BlockStatement")}function ke(t,e){return t.init=e,me(ct),t.test=d===ct?null:Pe(),me(ct),t.update=d===ut?null:Pe(),me(ut),t.body=we(),x.pop(),de(t,"ForStatement")}function Ae(t,e){return t.left=e,t.right=Pe(),me(ut),t.body=we(),x.pop(),de(t,"ForInStatement")}function Ie(t,e){for(t.declarations=[],t.kind="var";;){var n=he();if(n.id=De(),w&&Dt(n.id.name)&&S(n.id.start,"Binding "+n.id.name+" in strict mode"),n.init=fe(_t)?Pe(!0,e):null,t.declarations.push(de(n,"VariableDeclarator")),!fe(ht))break}return t}function Pe(t,e){var n=Te(e);if(!t&&d===ht){var i=ce(n);for(i.expressions=[n];fe(ht);)i.expressions.push(Te(e));return de(i,"SequenceExpression")}return n}function Te(t){var e=function(t){var e=function(t){return function t(e,n,i){var r=d.binop;if(null!=r&&(!i||d!==nt)&&r>n){var s=ce(e);s.left=e,s.operator=p;var a=d;return ae(),s.right=t(Ee(),r,i),t(de(s,a===yt||a===xt?"LogicalExpression":"BinaryExpression"),n,i)}return e}(Ee(),-1,t)}(t);if(fe(ft)){var n=ce(e);return n.test=e,n.consequent=Pe(!0),me(dt),n.alternate=Pe(!0,t),de(n,"ConditionalExpression")}return e}(t);if(d.isAssign){var n=ce(e);return n.operator=p,n.left=e,ae(),n.right=Te(t),be(e),de(n,"AssignmentExpression")}return e}function Ee(){if(d.prefix){var t=he(),e=d.isUpdate;return t.operator=p,t.prefix=!0,f=!0,ae(),t.argument=Ee(),e?be(t.argument):w&&"delete"===t.operator&&"Identifier"===t.argument.type&&S(t.start,"Deleting local variable in strict mode"),de(t,e?"UpdateExpression":"UnaryExpression")}for(var n=Me(Le());d.postfix&&!ge();)(t=ce(n)).operator=p,t.prefix=!1,t.argument=n,be(n),ae(),n=de(t,"UpdateExpression");return n}function Me(t,e){var n;return fe(pt)?((n=ce(t)).object=t,n.property=De(!0),n.computed=!1,Me(de(n,"MemberExpression"),e)):fe(rt)?((n=ce(t)).object=t,n.property=Pe(),n.computed=!0,me(st),Me(de(n,"MemberExpression"),e)):!e&&fe(ot)?((n=ce(t)).callee=t,n.arguments=Be(ut,!1),Me(de(n,"CallExpression"),e)):t}function Le(){switch(d){case J:var t=he();return ae(),de(t,"ThisExpression");case E:return De();case A:case T:case P:return(t=he()).value=p,t.raw=n.slice(o,u),ae(),de(t,"Literal");case Y:case tt:case et:return(t=he()).value=d.atomValue,t.raw=d.keyword,ae(),de(t,"Literal");case ot:var i=h,r=o;ae();var s=Pe();return s.start=r,s.end=u,e.locations&&(s.loc.start=i,s.loc.end=c),e.ranges&&(s.range=[r,u]),me(ut),s;case rt:return t=he(),ae(),t.elements=Be(st,!0,!0),de(t,"ArrayExpression");case at:return function(){var t=he(),n=!0,i=!1;for(t.properties=[],ae();!fe(lt);){if(n)n=!1;else if(me(ht),e.allowTrailingCommas&&fe(lt))break;var r,s={key:Oe()},a=!1;if(fe(dt)?(s.value=Pe(!0),r=s.kind="init"):e.ecmaVersion>=5&&"Identifier"===s.key.type&&("get"===s.key.name||"set"===s.key.name)?(a=i=!0,r=s.kind=s.key.name,s.key=Oe(),d!==ot&&ve(),s.value=Ne(he(),!1)):ve(),"Identifier"===s.key.type&&(w||i))for(var l=0;l<t.properties.length;++l){var o=t.properties[l];if(o.key.name===s.key.name){var u=r==o.kind||a&&"init"===o.kind||"init"===r&&("get"===o.kind||"set"===o.kind);u&&!w&&"init"===r&&"init"===o.kind&&(u=!1),u&&S(s.key.start,"Redefinition of property")}}t.properties.push(s)}return de(t,"ObjectExpression")}();case j:return t=he(),ae(),Ne(t,!1);case $:return function(){var t=he();return ae(),t.callee=Me(Le(),!0),t.arguments=fe(ot)?Be(ut,!1):k,de(t,"NewExpression")}();default:ve()}}function Oe(){return d===A||d===T?Le():De(!0)}function Ne(t,e){d===E?t.id=De():e?ve():t.id=null,t.params=[];var n=!0;for(me(ot);!fe(ut);)n?n=!1:me(ht),t.params.push(De());var i=y,r=x;if(y=!0,x=[],t.body=Se(!0),y=i,x=r,w||t.body.body.length&&pe(t.body.body[0]))for(var s=t.id?-1:0;s<t.params.length;++s){var a=s<0?t.id:t.params[s];if((Bt(a.name)||Dt(a.name))&&S(a.start,"Defining '"+a.name+"' in strict mode"),s>=0)for(var l=0;l<s;++l)a.name===t.params[l].name&&S(a.start,"Argument name clash in strict mode")}return de(t,e?"FunctionDeclaration":"FunctionExpression")}function Be(t,n,i){for(var r=[],s=!0;!fe(t);){if(s)s=!1;else if(me(ht),n&&e.allowTrailingCommas&&fe(t))break;r.push(i&&d===ht?null:Pe(!0))}return r}function De(t){var i=he();return t&&"everywhere"==e.forbidReserved&&(t=!1),d===E?(!t&&(e.forbidReserved&&(3===e.ecmaVersion?Ot:Nt)(p)||w&&Bt(p))&&-1==n.slice(o,u).indexOf("\\")&&S(o,"The keyword '"+p+"' is reserved"),i.name=p):t&&d.keyword?i.name=d.keyword:ve(),f=!1,ae(),de(i,"Identifier")}},"object"==typeof t&&"object"==typeof e?c(t):(i=[t],(s="function"==typeof(r=c)?r.apply(t,i):r)===l||(e.exports=s)),f.version||(f=null));var _={"+":"__add","-":"__subtract","*":"__multiply","/":"__divide","%":"__modulo","==":"__equals","!=":"__equals"},m={"-":"__negate","+":"__self"},b=h.each(["add","subtract","multiply","divide","modulo","equals","negate"],function(t){this["__"+t]="#"+t},{__self:function(){return this}});function x(t,e,n){var i=_[e];if(t&&t[i]){var r=t[i](n);return"!="===e?!r:r}switch(e){case"+":return t+n;case"-":return t-n;case"*":return t*n;case"/":return t/n;case"%":return t%n;case"==":return t==n;case"!=":return t!=n}}function w(t,e){var n=m[t];if(e&&e[n])return e[n]();switch(t){case"+":return+e;case"-":return-e}}function C(t,e){if(!t)return"";var n=[];function i(t){for(var e=0,i=n.length;e<i;e++){var r=n[e];if(r[0]>=t)break;t+=r[1]}return t}function r(e){return t.substring(i(e.range[0]),i(e.range[1]))}function s(e,r){for(var s=i(e.range[0]),a=i(e.range[1]),l=0,o=n.length-1;o>=0;o--)if(s>n[o][0]){l=o+1;break}n.splice(l,0,[s,r.length-a+s]),t=t.substring(0,s)+r+t.substring(a)}var l,h=(e=e||{}).url||"",c=dt.agent,d=c.versionNumber,p=!1,f=e.sourceMaps,v=e.source||t,b=/\r\n|\n|\r/gm,y=e.offset||0;if(f&&(c.chrome&&d>=30||c.webkit&&d>=537.76||c.firefox&&d>=23||c.node)){if(c.node)y-=2;else if(o&&h&&!o.location.href.indexOf(h)){var x=u.getElementsByTagName("html")[0].innerHTML;y=x.substr(0,x.indexOf(t)+1).match(b).length+1}var w=["AA"+function(t){var e="";for(t=(Math.abs(t)<<1)+(t<0?1:0);t||!e;){var n=31&t;(t>>=5)&&(n|=32),e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[n]}return e}((p=y>0&&!(c.chrome&&d>=36||c.safari&&d>=600||c.firefox&&d>=40||c.node))?0:y)+"A"];w.length=(t.match(b)||[]).length+1+(p?y:0),l={version:3,file:h,names:[],mappings:w.join(";AACA"),sourceRoot:"",sources:[h],sourcesContent:[v]}}return function e(n,a){if(n){for(var l in n)if("range"!==l&&"loc"!==l){var o=n[l];if(Array.isArray(o))for(var u=0,h=o.length;u<h;u++)e(o[u],n);else o&&"object"==typeof o&&e(o,n)}switch(n.type){case"UnaryExpression":if(n.operator in m&&"Literal"!==n.argument.type){var c=r(n.argument);s(n,'$__("'+n.operator+'", '+c+")")}break;case"BinaryExpression":if(n.operator in _&&"Literal"!==n.left.type){var d=r(n.left),p=r(n.right),f=function(e,r){return t.substring(i(n.left.range[1]),i(r.range[0]))}(0,n.right),g=n.operator;s(n,"__$__("+d+","+f.replace(new RegExp("\\"+g),'"'+g+'"')+", "+p+")")}break;case"UpdateExpression":case"AssignmentExpression":var v=a&&a.type;if(!("ForStatement"===v||"BinaryExpression"===v&&/^[=!<>]/.test(a.operator)||"MemberExpression"===v&&a.computed))if("UpdateExpression"===n.type){var b=(c=r(n.argument))+" = "+(y="__$__("+c+', "'+n.operator[0]+'", 1)');n.prefix?b="("+b+")":"AssignmentExpression"!==v&&"VariableDeclarator"!==v&&"BinaryExpression"!==v||(r(a.left||a.id)===c&&(b=y),b=c+"; "+b),s(n,b)}else if(/^.=$/.test(n.operator)&&"Literal"!==n.left.type){d=r(n.left),p=r(n.right);var y=d+" = __$__("+d+', "'+n.operator[0]+'", '+p+")";s(n,/^\(.*\)$/.test(r(n))?"("+y+")":y)}break;case"ExportDefaultDeclaration":s({range:[n.start,n.declaration.start]},"module.exports = ");break;case"ExportNamedDeclaration":var x=n.declaration,w=n.specifiers;if(x){var C=x.declarations;C&&(C.forEach(function(t){s(t,"module.exports."+r(t))}),s({range:[n.start,x.start+x.kind.length]},""))}else if(w){var S=w.map(function(t){var e=r(t);return"module.exports."+e+" = "+e+"; "}).join("");S&&s(n,S)}}}}(g(t,{ranges:!0,preserveParens:!0,sourceType:"module"})),l&&(p&&(t=new Array(y+1).join("\n")+t),/^(inline|both)$/.test(f)&&(t+="\n//# sourceMappingURL=data:application/json;base64,"+a.btoa(unescape(encodeURIComponent(JSON.stringify(l))))),t+="\n//# sourceURL="+(h||"paperscript")),{url:h,source:v,code:t,map:l}}function S(t,e,n){dt=e;var i,r=e.getView(),s=/\btool\.\w+|\s+on(?:Key|Mouse)(?:Up|Down|Move|Drag)\b/.test(t)&&!/\bnew\s+Tool\b/.test(t)?new st:null,a=s?s._events:[],l=["onFrame","onResize"].concat(a),o=[],c=[],d="object"==typeof t?t:C(t,n);function p(e,n){for(var i in e)!n&&/^_/.test(i)||!new RegExp("([\\b\\s\\W]|^)"+i.replace(/\$/g,"\\$")+"\\b").test(t)||(o.push(i),c.push(e[i]))}t=d.code,p({__$__:x,$__:w,paper:e,tool:s},!0),p(e),t="var module = { exports: {} }; "+t,(m=h.each(l,function(e){new RegExp("\\s+"+e+"\\b").test(t)&&(o.push(e),this.push("module.exports."+e+" = "+e+";"))},[]).join("\n"))&&(t+="\n"+m),t+="\nreturn module.exports;";var f=dt.agent;if(u&&(f.chrome||f.firefox&&f.versionNumber<40)){var g=u.createElement("script"),_=u.head||u.getElementsByTagName("head")[0];f.firefox&&(t="\n"+t),g.appendChild(u.createTextNode("document.__paperscript__ = function("+o+") {"+t+"\n}")),_.appendChild(g),i=u.__paperscript__,delete u.__paperscript__,_.removeChild(g)}else i=Function(o,t);var m,b=(m=i&&i.apply(e,c))||{};return h.each(a,function(t){var e=b[t];e&&(s[t]=e)}),r&&(b.onResize&&r.setOnResize(b.onResize),r.emit("resize",{size:r.size,delta:new v}),b.onFrame&&r.setOnFrame(b.onFrame),r.requestUpdate()),m}function k(t){if(/^text\/(?:x-|)paperscript$/.test(t.type)&&"true"!==d.getAttribute(t,"ignore")){var e=d.getAttribute(t,"canvas"),n=u.getElementById(e),i=t.src||t.getAttribute("data-src"),r=d.hasAttribute(t,"async");if(!n)throw new Error('Unable to find canvas with id "'+e+'"');var s=d.get(n.getAttribute("data-paper-scope"))||(new d).setup(n);return n.setAttribute("data-paper-scope",s._id),i?lt.request({url:i,async:r,mimeType:"text/plain",onLoad:function(t){S(t,s,i)}}):S(t.innerHTML,s,t.baseURI),t.setAttribute("data-paper-ignore","true"),s}}function A(){h.each(u&&u.getElementsByTagName("script"),k)}return v.inject(b),y.inject(b),G.inject(b),o&&("complete"===u.readyState?setTimeout(A):$.add(o,{load:A})),{compile:C,execute:S,load:function(t){return t?k(t):A()},parse:g,calculateBinary:x,calculateUnary:w}}).call(this);var dt=new(d.inject(h.exports,{Base:h,Numerical:_,Key:nt,DomEvent:$,DomElement:X,document:u,window:o,Symbol:O,PlacedSymbol:L}));return dt.agent.node&&n(5)(dt),(s="function"==typeof(r=dt)?r.call(e,n,e,t):r)===l||(t.exports=s),dt}).call(this,"object"==typeof self?self:null)},sOAE:function(t,e,n){"use strict";n.r(e),n.d(e,"Node",function(){return at}),n.d(e,"Parser",function(){return q}),n.d(e,"Position",function(){return N}),n.d(e,"SourceLocation",function(){return B}),n.d(e,"TokContext",function(){return ut}),n.d(e,"Token",function(){return Pt}),n.d(e,"TokenType",function(){return _}),n.d(e,"defaultOptions",function(){return R}),n.d(e,"getLineInfo",function(){return D}),n.d(e,"isIdentifierChar",function(){return g}),n.d(e,"isIdentifierStart",function(){return f}),n.d(e,"isNewLine",function(){return k}),n.d(e,"keywordTypes",function(){return y}),n.d(e,"lineBreak",function(){return C}),n.d(e,"lineBreakG",function(){return S}),n.d(e,"nonASCIIwhitespace",function(){return A}),n.d(e,"parse",function(){return Ot}),n.d(e,"parseExpressionAt",function(){return Nt}),n.d(e,"tokContexts",function(){return ht}),n.d(e,"tokTypes",function(){return w}),n.d(e,"tokenizer",function(){return Bt}),n.d(e,"version",function(){return Lt});var i={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},r="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",s={5:r,"5module":r+" export import",6:r+" const class extends export import super"},a=/^in(stanceof)?$/,l="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u09fc\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc",o="\u200c\u200d\xb7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08d3-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u09fe\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0afa-\u0aff\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c00-\u0c04\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0d00-\u0d03\u0d3b\u0d3c\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0ebc\u0ec8-\u0ecd\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1369-\u1371\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19d0-\u19da\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1ab0-\u1abd\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf4\u1cf7-\u1cf9\u1dc0-\u1df9\u1dfb-\u1dff\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua620-\ua629\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f1\ua8ff-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\ua9e5\ua9f0-\ua9f9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f",u=new RegExp("["+l+"]"),h=new RegExp("["+l+o+"]");l=o=null;var c=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,477,28,11,0,9,21,155,22,13,52,76,44,33,24,27,35,30,0,12,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,0,33,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,0,161,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,270,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,754,9486,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,3,5761,15,7472,3104,541],d=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,525,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,4,9,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,232,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,792487,239];function p(t,e){for(var n=65536,i=0;i<e.length;i+=2){if((n+=e[i])>t)return!1;if((n+=e[i+1])>=t)return!0}}function f(t,e){return t<65?36===t:t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&u.test(String.fromCharCode(t)):!1!==e&&p(t,c)))}function g(t,e){return t<48?36===t:t<58||!(t<65)&&(t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&h.test(String.fromCharCode(t)):!1!==e&&(p(t,c)||p(t,d)))))}var _=function(t,e){void 0===e&&(e={}),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop||null,this.updateContext=null};function m(t,e){return new _(t,{beforeExpr:!0,binop:e})}var v={beforeExpr:!0},b={startsExpr:!0},y={};function x(t,e){return void 0===e&&(e={}),e.keyword=t,y[t]=new _(t,e)}var w={num:new _("num",b),regexp:new _("regexp",b),string:new _("string",b),name:new _("name",b),eof:new _("eof"),bracketL:new _("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new _("]"),braceL:new _("{",{beforeExpr:!0,startsExpr:!0}),braceR:new _("}"),parenL:new _("(",{beforeExpr:!0,startsExpr:!0}),parenR:new _(")"),comma:new _(",",v),semi:new _(";",v),colon:new _(":",v),dot:new _("."),question:new _("?",v),arrow:new _("=>",v),template:new _("template"),invalidTemplate:new _("invalidTemplate"),ellipsis:new _("...",v),backQuote:new _("`",b),dollarBraceL:new _("${",{beforeExpr:!0,startsExpr:!0}),eq:new _("=",{beforeExpr:!0,isAssign:!0}),assign:new _("_=",{beforeExpr:!0,isAssign:!0}),incDec:new _("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new _("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:m("||",1),logicalAND:m("&&",2),bitwiseOR:m("|",3),bitwiseXOR:m("^",4),bitwiseAND:m("&",5),equality:m("==/!=/===/!==",6),relational:m("</>/<=/>=",7),bitShift:m("<</>>/>>>",8),plusMin:new _("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:m("%",10),star:m("*",10),slash:m("/",10),starstar:new _("**",{beforeExpr:!0}),_break:x("break"),_case:x("case",v),_catch:x("catch"),_continue:x("continue"),_debugger:x("debugger"),_default:x("default",v),_do:x("do",{isLoop:!0,beforeExpr:!0}),_else:x("else",v),_finally:x("finally"),_for:x("for",{isLoop:!0}),_function:x("function",b),_if:x("if"),_return:x("return",v),_switch:x("switch"),_throw:x("throw",v),_try:x("try"),_var:x("var"),_const:x("const"),_while:x("while",{isLoop:!0}),_with:x("with"),_new:x("new",{beforeExpr:!0,startsExpr:!0}),_this:x("this",b),_super:x("super",b),_class:x("class",b),_extends:x("extends",v),_export:x("export"),_import:x("import",b),_null:x("null",b),_true:x("true",b),_false:x("false",b),_in:x("in",{beforeExpr:!0,binop:7}),_instanceof:x("instanceof",{beforeExpr:!0,binop:7}),_typeof:x("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:x("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:x("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},C=/\r\n?|\n|\u2028|\u2029/,S=new RegExp(C.source,"g");function k(t,e){return 10===t||13===t||!e&&(8232===t||8233===t)}var A=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,I=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,P=Object.prototype,T=P.hasOwnProperty,E=P.toString;function M(t,e){return T.call(t,e)}var L=Array.isArray||function(t){return"[object Array]"===E.call(t)};function O(t){return new RegExp("^(?:"+t.replace(/ /g,"|")+")$")}var N=function(t,e){this.line=t,this.column=e};N.prototype.offset=function(t){return new N(this.line,this.column+t)};var B=function(t,e,n){this.start=e,this.end=n,null!==t.sourceFile&&(this.source=t.sourceFile)};function D(t,e){for(var n=1,i=0;;){S.lastIndex=i;var r=S.exec(t);if(!(r&&r.index<e))return new N(n,e-i);++n,i=r.index+r[0].length}}var R={ecmaVersion:9,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},V=2,z=1|V,K=4,F=8;function j(t,e){return V|(t?K:0)|(e?F:0)}var q=function(t,e,n){this.options=t=function(t){var e={};for(var n in R)e[n]=t&&M(t,n)?t[n]:R[n];if(e.ecmaVersion>=2015&&(e.ecmaVersion-=2009),null==e.allowReserved&&(e.allowReserved=e.ecmaVersion<5),L(e.onToken)){var i=e.onToken;e.onToken=function(t){return i.push(t)}}return L(e.onComment)&&(e.onComment=function(t,e){return function(n,i,r,s,a,l){var o={type:n?"Block":"Line",value:i,start:r,end:s};t.locations&&(o.loc=new B(this,a,l)),t.ranges&&(o.range=[r,s]),e.push(o)}}(e,e.onComment)),e}(t),this.sourceFile=t.sourceFile,this.keywords=O(s[t.ecmaVersion>=6?6:"module"===t.sourceType?"5module":5]);var r="";if(!0!==t.allowReserved){for(var a=t.ecmaVersion;!(r=i[a]);a--);"module"===t.sourceType&&(r+=" await")}this.reservedWords=O(r);var l=(r?r+" ":"")+i.strict;this.reservedWordsStrict=O(l),this.reservedWordsStrictBind=O(l+" "+i.strictBind),this.input=String(e),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(C).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=w.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===t.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},0===this.pos&&t.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null},U={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};q.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)},U.inFunction.get=function(){return(this.currentVarScope().flags&V)>0},U.inGenerator.get=function(){return(this.currentVarScope().flags&F)>0},U.inAsync.get=function(){return(this.currentVarScope().flags&K)>0},U.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0},U.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},U.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},q.prototype.inNonArrowFunction=function(){return(this.currentThisScope().flags&V)>0},q.extend=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var n=this,i=0;i<t.length;i++)n=t[i](n);return n},q.parse=function(t,e){return new this(e,t).parse()},q.parseExpressionAt=function(t,e,n){var i=new this(n,t,e);return i.nextToken(),i.parseExpression()},q.tokenizer=function(t,e){return new this(e,t)},Object.defineProperties(q.prototype,U);var H=q.prototype,G=/^(?:'((?:\\.|[^'])*?)'|"((?:\\.|[^"])*?)")/;function Z(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}H.strictDirective=function(t){for(;;){I.lastIndex=t,t+=I.exec(this.input)[0].length;var e=G.exec(this.input.slice(t));if(!e)return!1;if("use strict"===(e[1]||e[2]))return!0;I.lastIndex=t+=e[0].length,t+=I.exec(this.input)[0].length,";"===this.input[t]&&t++}},H.eat=function(t){return this.type===t&&(this.next(),!0)},H.isContextual=function(t){return this.type===w.name&&this.value===t&&!this.containsEsc},H.eatContextual=function(t){return!!this.isContextual(t)&&(this.next(),!0)},H.expectContextual=function(t){this.eatContextual(t)||this.unexpected()},H.canInsertSemicolon=function(){return this.type===w.eof||this.type===w.braceR||C.test(this.input.slice(this.lastTokEnd,this.start))},H.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},H.semicolon=function(){this.eat(w.semi)||this.insertSemicolon()||this.unexpected()},H.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0},H.expect=function(t){this.eat(t)||this.unexpected()},H.unexpected=function(t){this.raise(null!=t?t:this.start,"Unexpected token")},H.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var n=e?t.parenthesizedAssign:t.parenthesizedBind;n>-1&&this.raiseRecoverable(n,"Parenthesized pattern")}},H.checkExpressionErrors=function(t,e){if(!t)return!1;var n=t.shorthandAssign,i=t.doubleProto;if(!e)return n>=0||i>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),i>=0&&this.raiseRecoverable(i,"Redefinition of __proto__ property")},H.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},H.isSimpleAssignTarget=function(t){return"ParenthesizedExpression"===t.type?this.isSimpleAssignTarget(t.expression):"Identifier"===t.type||"MemberExpression"===t.type};var W=q.prototype;W.parseTopLevel=function(t){var e={};for(t.body||(t.body=[]);this.type!==w.eof;){var n=this.parseStatement(null,!0,e);t.body.push(n)}if(this.inModule)for(var i=0,r=Object.keys(this.undefinedExports);i<r.length;i+=1){var s=r[i];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(t.body),this.next(),t.sourceType=this.options.sourceType,this.finishNode(t,"Program")};var Q={kind:"loop"},X={kind:"switch"};W.isLet=function(t){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;I.lastIndex=this.pos;var e=I.exec(this.input),n=this.pos+e[0].length,i=this.input.charCodeAt(n);if(91===i)return!0;if(t)return!1;if(123===i)return!0;if(f(i,!0)){for(var r=n+1;g(this.input.charCodeAt(r),!0);)++r;var s=this.input.slice(n,r);if(!a.test(s))return!0}return!1},W.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;I.lastIndex=this.pos;var t=I.exec(this.input),e=this.pos+t[0].length;return!(C.test(this.input.slice(this.pos,e))||"function"!==this.input.slice(e,e+8)||e+8!==this.input.length&&g(this.input.charAt(e+8)))},W.parseStatement=function(t,e,n){var i,r=this.type,s=this.startNode();switch(this.isLet(t)&&(r=w._var,i="let"),r){case w._break:case w._continue:return this.parseBreakContinueStatement(s,r.keyword);case w._debugger:return this.parseDebuggerStatement(s);case w._do:return this.parseDoStatement(s);case w._for:return this.parseForStatement(s);case w._function:return t&&(this.strict||"if"!==t&&"label"!==t)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!t);case w._class:return t&&this.unexpected(),this.parseClass(s,!0);case w._if:return this.parseIfStatement(s);case w._return:return this.parseReturnStatement(s);case w._switch:return this.parseSwitchStatement(s);case w._throw:return this.parseThrowStatement(s);case w._try:return this.parseTryStatement(s);case w._const:case w._var:return i=i||this.value,t&&"var"!==i&&this.unexpected(),this.parseVarStatement(s,i);case w._while:return this.parseWhileStatement(s);case w._with:return this.parseWithStatement(s);case w.braceL:return this.parseBlock(!0,s);case w.semi:return this.parseEmptyStatement(s);case w._export:case w._import:if(this.options.ecmaVersion>10&&r===w._import){I.lastIndex=this.pos;var a=I.exec(this.input);if(40===this.input.charCodeAt(this.pos+a[0].length))return this.parseExpressionStatement(s,this.parseExpression())}return this.options.allowImportExportEverywhere||(e||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),r===w._import?this.parseImport(s):this.parseExport(s,n);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!t);var l=this.value,o=this.parseExpression();return r===w.name&&"Identifier"===o.type&&this.eat(w.colon)?this.parseLabeledStatement(s,l,o,t):this.parseExpressionStatement(s,o)}},W.parseBreakContinueStatement=function(t,e){var n="break"===e;this.next(),this.eat(w.semi)||this.insertSemicolon()?t.label=null:this.type!==w.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var i=0;i<this.labels.length;++i){var r=this.labels[i];if(null==t.label||r.name===t.label.name){if(null!=r.kind&&(n||"loop"===r.kind))break;if(t.label&&n)break}}return i===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,n?"BreakStatement":"ContinueStatement")},W.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")},W.parseDoStatement=function(t){return this.next(),this.labels.push(Q),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(w._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(w.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")},W.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Q),this.enterScope(0),this.expect(w.parenL),this.type===w.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var n=this.isLet();if(this.type===w._var||this.type===w._const||n){var i=this.startNode(),r=n?"let":this.value;return this.next(),this.parseVar(i,!0,r),this.finishNode(i,"VariableDeclaration"),(this.type===w._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===i.declarations.length?(this.options.ecmaVersion>=9&&(this.type===w._in?e>-1&&this.unexpected(e):t.await=e>-1),this.parseForIn(t,i)):(e>-1&&this.unexpected(e),this.parseFor(t,i))}var s=new Z,a=this.parseExpression(!0,s);return this.type===w._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===w._in?e>-1&&this.unexpected(e):t.await=e>-1),this.toAssignable(a,!1,s),this.checkLVal(a),this.parseForIn(t,a)):(this.checkExpressionErrors(s,!0),e>-1&&this.unexpected(e),this.parseFor(t,a))},W.parseFunctionStatement=function(t,e,n){return this.next(),this.parseFunction(t,J|(n?0:Y),!1,e)},W.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(w._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")},W.parseReturnStatement=function(t){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(w.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},W.parseSwitchStatement=function(t){var e;this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(w.braceL),this.labels.push(X),this.enterScope(0);for(var n=!1;this.type!==w.braceR;)if(this.type===w._case||this.type===w._default){var i=this.type===w._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),i?e.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,e.test=null),this.expect(w.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(null));return this.exitScope(),e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")},W.parseThrowStatement=function(t){return this.next(),C.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var $=[];W.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===w._catch){var e=this.startNode();if(this.next(),this.eat(w.parenL)){e.param=this.parseBindingAtom();var n="Identifier"===e.param.type;this.enterScope(n?32:0),this.checkLVal(e.param,n?4:2),this.expect(w.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),e.param=null,this.enterScope(0);e.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(w._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},W.parseVarStatement=function(t,e){return this.next(),this.parseVar(t,!1,e),this.semicolon(),this.finishNode(t,"VariableDeclaration")},W.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(Q),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")},W.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement("with"),this.finishNode(t,"WithStatement")},W.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},W.parseLabeledStatement=function(t,e,n,i){for(var r=0,s=this.labels;r<s.length;r+=1)s[r].name===e&&this.raise(n.start,"Label '"+e+"' is already declared");for(var a=this.type.isLoop?"loop":this.type===w._switch?"switch":null,l=this.labels.length-1;l>=0;l--){var o=this.labels[l];if(o.statementStart!==t.start)break;o.statementStart=this.start,o.kind=a}return this.labels.push({name:e,kind:a,statementStart:this.start}),t.body=this.parseStatement(i?-1===i.indexOf("label")?i+"label":i:"label"),this.labels.pop(),t.label=n,this.finishNode(t,"LabeledStatement")},W.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},W.parseBlock=function(t,e){for(void 0===t&&(t=!0),void 0===e&&(e=this.startNode()),e.body=[],this.expect(w.braceL),t&&this.enterScope(0);!this.eat(w.braceR);){var n=this.parseStatement(null);e.body.push(n)}return t&&this.exitScope(),this.finishNode(e,"BlockStatement")},W.parseFor=function(t,e){return t.init=e,this.expect(w.semi),t.test=this.type===w.semi?null:this.parseExpression(),this.expect(w.semi),t.update=this.type===w.parenR?null:this.parseExpression(),this.expect(w.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")},W.parseForIn=function(t,e){var n=this.type===w._in;return this.next(),"VariableDeclaration"===e.type&&null!=e.declarations[0].init&&(!n||this.options.ecmaVersion<8||this.strict||"var"!==e.kind||"Identifier"!==e.declarations[0].id.type)?this.raise(e.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"):"AssignmentPattern"===e.type&&this.raise(e.start,"Invalid left-hand side in for-loop"),t.left=e,t.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(w.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,n?"ForInStatement":"ForOfStatement")},W.parseVar=function(t,e,n){for(t.declarations=[],t.kind=n;;){var i=this.startNode();if(this.parseVarId(i,n),this.eat(w.eq)?i.init=this.parseMaybeAssign(e):"const"!==n||this.type===w._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===i.id.type||e&&(this.type===w._in||this.isContextual("of"))?i.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),t.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(w.comma))break}return t},W.parseVarId=function(t,e){t.id=this.parseBindingAtom(),this.checkLVal(t.id,"var"===e?1:2,!1)};var J=1,Y=2;W.parseFunction=function(t,e,n,i){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!i)&&(this.type===w.star&&e&Y&&this.unexpected(),t.generator=this.eat(w.star)),this.options.ecmaVersion>=8&&(t.async=!!i),e&J&&(t.id=4&e&&this.type!==w.name?null:this.parseIdent(),!t.id||e&Y||this.checkLVal(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?1:2:3));var r=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(j(t.async,t.generator)),e&J||(t.id=this.type===w.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,n,!1),this.yieldPos=r,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(t,e&J?"FunctionDeclaration":"FunctionExpression")},W.parseFunctionParams=function(t){this.expect(w.parenL),t.params=this.parseBindingList(w.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},W.parseClass=function(t,e){this.next();var n=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var i=this.startNode(),r=!1;for(i.body=[],this.expect(w.braceL);!this.eat(w.braceR);){var s=this.parseClassElement(null!==t.superClass);s&&(i.body.push(s),"MethodDefinition"===s.type&&"constructor"===s.kind&&(r&&this.raise(s.start,"Duplicate constructor in the same class"),r=!0))}return t.body=this.finishNode(i,"ClassBody"),this.strict=n,this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},W.parseClassElement=function(t){var e=this;if(this.eat(w.semi))return null;var n=this.startNode(),i=function(t,i){void 0===i&&(i=!1);var r=e.start,s=e.startLoc;return!(!e.eatContextual(t)||(e.type===w.parenL||i&&e.canInsertSemicolon())&&(n.key&&e.unexpected(),n.computed=!1,n.key=e.startNodeAt(r,s),n.key.name=t,e.finishNode(n.key,"Identifier"),1))};n.kind="method",n.static=i("static");var r=this.eat(w.star),s=!1;r||(this.options.ecmaVersion>=8&&i("async",!0)?(s=!0,r=this.options.ecmaVersion>=9&&this.eat(w.star)):i("get")?n.kind="get":i("set")&&(n.kind="set")),n.key||this.parsePropertyName(n);var a=n.key,l=!1;return n.computed||n.static||!("Identifier"===a.type&&"constructor"===a.name||"Literal"===a.type&&"constructor"===a.value)?n.static&&"Identifier"===a.type&&"prototype"===a.name&&this.raise(a.start,"Classes may not have a static property named prototype"):("method"!==n.kind&&this.raise(a.start,"Constructor can't have get/set modifier"),r&&this.raise(a.start,"Constructor can't be a generator"),s&&this.raise(a.start,"Constructor can't be an async method"),n.kind="constructor",l=t),this.parseClassMethod(n,r,s,l),"get"===n.kind&&0!==n.value.params.length&&this.raiseRecoverable(n.value.start,"getter should have no params"),"set"===n.kind&&1!==n.value.params.length&&this.raiseRecoverable(n.value.start,"setter should have exactly one param"),"set"===n.kind&&"RestElement"===n.value.params[0].type&&this.raiseRecoverable(n.value.params[0].start,"Setter cannot use rest params"),n},W.parseClassMethod=function(t,e,n,i){return t.value=this.parseMethod(e,n,i),this.finishNode(t,"MethodDefinition")},W.parseClassId=function(t,e){this.type===w.name?(t.id=this.parseIdent(),e&&this.checkLVal(t.id,2,!1)):(!0===e&&this.unexpected(),t.id=null)},W.parseClassSuper=function(t){t.superClass=this.eat(w._extends)?this.parseExprSubscripts():null},W.parseExport=function(t,e){if(this.next(),this.eat(w.star))return this.expectContextual("from"),this.type!==w.string&&this.unexpected(),t.source=this.parseExprAtom(),this.semicolon(),this.finishNode(t,"ExportAllDeclaration");if(this.eat(w._default)){var n;if(this.checkExport(e,"default",this.lastTokStart),this.type===w._function||(n=this.isAsyncFunction())){var i=this.startNode();this.next(),n&&this.next(),t.declaration=this.parseFunction(i,4|J,!1,n)}else if(this.type===w._class){var r=this.startNode();t.declaration=this.parseClass(r,"nullableID")}else t.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(t,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())t.declaration=this.parseStatement(null),"VariableDeclaration"===t.declaration.type?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id.name,t.declaration.id.start),t.specifiers=[],t.source=null;else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==w.string&&this.unexpected(),t.source=this.parseExprAtom();else{for(var s=0,a=t.specifiers;s<a.length;s+=1){var l=a[s];this.checkUnreserved(l.local),this.checkLocalExport(l.local)}t.source=null}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")},W.checkExport=function(t,e,n){t&&(M(t,e)&&this.raiseRecoverable(n,"Duplicate export '"+e+"'"),t[e]=!0)},W.checkPatternExport=function(t,e){var n=e.type;if("Identifier"===n)this.checkExport(t,e.name,e.start);else if("ObjectPattern"===n)for(var i=0,r=e.properties;i<r.length;i+=1)this.checkPatternExport(t,r[i]);else if("ArrayPattern"===n)for(var s=0,a=e.elements;s<a.length;s+=1){var l=a[s];l&&this.checkPatternExport(t,l)}else"Property"===n?this.checkPatternExport(t,e.value):"AssignmentPattern"===n?this.checkPatternExport(t,e.left):"RestElement"===n?this.checkPatternExport(t,e.argument):"ParenthesizedExpression"===n&&this.checkPatternExport(t,e.expression)},W.checkVariableExport=function(t,e){if(t)for(var n=0,i=e;n<i.length;n+=1)this.checkPatternExport(t,i[n].id)},W.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},W.parseExportSpecifiers=function(t){var e=[],n=!0;for(this.expect(w.braceL);!this.eat(w.braceR);){if(n)n=!1;else if(this.expect(w.comma),this.afterTrailingComma(w.braceR))break;var i=this.startNode();i.local=this.parseIdent(!0),i.exported=this.eatContextual("as")?this.parseIdent(!0):i.local,this.checkExport(t,i.exported.name,i.exported.start),e.push(this.finishNode(i,"ExportSpecifier"))}return e},W.parseImport=function(t){return this.next(),this.type===w.string?(t.specifiers=$,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===w.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(t,"ImportDeclaration")},W.parseImportSpecifiers=function(){var t=[],e=!0;if(this.type===w.name){var n=this.startNode();if(n.local=this.parseIdent(),this.checkLVal(n.local,2),t.push(this.finishNode(n,"ImportDefaultSpecifier")),!this.eat(w.comma))return t}if(this.type===w.star){var i=this.startNode();return this.next(),this.expectContextual("as"),i.local=this.parseIdent(),this.checkLVal(i.local,2),t.push(this.finishNode(i,"ImportNamespaceSpecifier")),t}for(this.expect(w.braceL);!this.eat(w.braceR);){if(e)e=!1;else if(this.expect(w.comma),this.afterTrailingComma(w.braceR))break;var r=this.startNode();r.imported=this.parseIdent(!0),this.eatContextual("as")?r.local=this.parseIdent():(this.checkUnreserved(r.imported),r.local=r.imported),this.checkLVal(r.local,2),t.push(this.finishNode(r,"ImportSpecifier"))}return t},W.adaptDirectivePrologue=function(t){for(var e=0;e<t.length&&this.isDirectiveCandidate(t[e]);++e)t[e].directive=t[e].expression.raw.slice(1,-1)},W.isDirectiveCandidate=function(t){return"ExpressionStatement"===t.type&&"Literal"===t.expression.type&&"string"==typeof t.expression.value&&('"'===this.input[t.start]||"'"===this.input[t.start])};var tt=q.prototype;tt.toAssignable=function(t,e,n){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":this.inAsync&&"await"===t.name&&this.raise(t.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var i=0,r=t.properties;i<r.length;i+=1){var s=r[i];this.toAssignable(s,e),"RestElement"!==s.type||"ArrayPattern"!==s.argument.type&&"ObjectPattern"!==s.argument.type||this.raise(s.argument.start,"Unexpected token")}break;case"Property":"init"!==t.kind&&this.raise(t.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(t.value,e);break;case"ArrayExpression":t.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(t.elements,e);break;case"SpreadElement":t.type="RestElement",this.toAssignable(t.argument,e),"AssignmentPattern"===t.argument.type&&this.raise(t.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==t.operator&&this.raise(t.left.end,"Only '=' operator can be used for specifying default value."),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,e);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(t.expression,e,n);break;case"MemberExpression":if(!e)break;default:this.raise(t.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return t},tt.toAssignableList=function(t,e){for(var n=t.length,i=0;i<n;i++){var r=t[i];r&&this.toAssignable(r,e)}if(n){var s=t[n-1];6===this.options.ecmaVersion&&e&&s&&"RestElement"===s.type&&"Identifier"!==s.argument.type&&this.unexpected(s.argument.start)}return t},tt.parseSpread=function(t){var e=this.startNode();return this.next(),e.argument=this.parseMaybeAssign(!1,t),this.finishNode(e,"SpreadElement")},tt.parseRestBinding=function(){var t=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==w.name&&this.unexpected(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")},tt.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case w.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(w.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case w.braceL:return this.parseObj(!0)}return this.parseIdent()},tt.parseBindingList=function(t,e,n){for(var i=[],r=!0;!this.eat(t);)if(r?r=!1:this.expect(w.comma),e&&this.type===w.comma)i.push(null);else{if(n&&this.afterTrailingComma(t))break;if(this.type===w.ellipsis){var s=this.parseRestBinding();this.parseBindingListItem(s),i.push(s),this.type===w.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(t);break}var a=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(a),i.push(a)}return i},tt.parseBindingListItem=function(t){return t},tt.parseMaybeDefault=function(t,e,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(w.eq))return n;var i=this.startNodeAt(t,e);return i.left=n,i.right=this.parseMaybeAssign(),this.finishNode(i,"AssignmentPattern")},tt.checkLVal=function(t,e,n){switch(void 0===e&&(e=0),t.type){case"Identifier":2===e&&"let"===t.name&&this.raiseRecoverable(t.start,"let is disallowed as a lexically bound name"),this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(e?"Binding ":"Assigning to ")+t.name+" in strict mode"),n&&(M(n,t.name)&&this.raiseRecoverable(t.start,"Argument name clash"),n[t.name]=!0),0!==e&&5!==e&&this.declareName(t.name,e,t.start);break;case"MemberExpression":e&&this.raiseRecoverable(t.start,"Binding member expression");break;case"ObjectPattern":for(var i=0,r=t.properties;i<r.length;i+=1)this.checkLVal(r[i],e,n);break;case"Property":this.checkLVal(t.value,e,n);break;case"ArrayPattern":for(var s=0,a=t.elements;s<a.length;s+=1){var l=a[s];l&&this.checkLVal(l,e,n)}break;case"AssignmentPattern":this.checkLVal(t.left,e,n);break;case"RestElement":this.checkLVal(t.argument,e,n);break;case"ParenthesizedExpression":this.checkLVal(t.expression,e,n);break;default:this.raise(t.start,(e?"Binding":"Assigning to")+" rvalue")}};var et=q.prototype;et.checkPropClash=function(t,e,n){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===t.type||this.options.ecmaVersion>=6&&(t.computed||t.method||t.shorthand))){var i,r=t.key;switch(r.type){case"Identifier":i=r.name;break;case"Literal":i=String(r.value);break;default:return}var s=t.kind;if(this.options.ecmaVersion>=6)"__proto__"===i&&"init"===s&&(e.proto&&(n&&n.doubleProto<0?n.doubleProto=r.start:this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),e.proto=!0);else{var a=e[i="$"+i];a?("init"===s?this.strict&&a.init||a.get||a.set:a.init||a[s])&&this.raiseRecoverable(r.start,"Redefinition of property"):a=e[i]={init:!1,get:!1,set:!1},a[s]=!0}}},et.parseExpression=function(t,e){var n=this.start,i=this.startLoc,r=this.parseMaybeAssign(t,e);if(this.type===w.comma){var s=this.startNodeAt(n,i);for(s.expressions=[r];this.eat(w.comma);)s.expressions.push(this.parseMaybeAssign(t,e));return this.finishNode(s,"SequenceExpression")}return r},et.parseMaybeAssign=function(t,e,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(t);this.exprAllowed=!1}var i=!1,r=-1,s=-1,a=-1;e?(r=e.parenthesizedAssign,s=e.trailingComma,a=e.shorthandAssign,e.parenthesizedAssign=e.trailingComma=e.shorthandAssign=-1):(e=new Z,i=!0);var l=this.start,o=this.startLoc;this.type!==w.parenL&&this.type!==w.name||(this.potentialArrowAt=this.start);var u=this.parseMaybeConditional(t,e);if(n&&(u=n.call(this,u,l,o)),this.type.isAssign){var h=this.startNodeAt(l,o);return h.operator=this.value,h.left=this.type===w.eq?this.toAssignable(u,!1,e):u,i||Z.call(e),e.shorthandAssign=-1,this.checkLVal(u),this.next(),h.right=this.parseMaybeAssign(t),this.finishNode(h,"AssignmentExpression")}return i&&this.checkExpressionErrors(e,!0),r>-1&&(e.parenthesizedAssign=r),s>-1&&(e.trailingComma=s),a>-1&&(e.shorthandAssign=a),u},et.parseMaybeConditional=function(t,e){var n=this.start,i=this.startLoc,r=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return r;if(this.eat(w.question)){var s=this.startNodeAt(n,i);return s.test=r,s.consequent=this.parseMaybeAssign(),this.expect(w.colon),s.alternate=this.parseMaybeAssign(t),this.finishNode(s,"ConditionalExpression")}return r},et.parseExprOps=function(t,e){var n=this.start,i=this.startLoc,r=this.parseMaybeUnary(e,!1);return this.checkExpressionErrors(e)?r:r.start===n&&"ArrowFunctionExpression"===r.type?r:this.parseExprOp(r,n,i,-1,t)},et.parseExprOp=function(t,e,n,i,r){var s=this.type.binop;if(null!=s&&(!r||this.type!==w._in)&&s>i){var a=this.type===w.logicalOR||this.type===w.logicalAND,l=this.value;this.next();var o=this.start,u=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1),o,u,s,r),c=this.buildBinary(e,n,t,h,l,a);return this.parseExprOp(c,e,n,i,r)}return t},et.buildBinary=function(t,e,n,i,r,s){var a=this.startNodeAt(t,e);return a.left=n,a.operator=r,a.right=i,this.finishNode(a,s?"LogicalExpression":"BinaryExpression")},et.parseMaybeUnary=function(t,e){var n,i=this.start,r=this.startLoc;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))n=this.parseAwait(),e=!0;else if(this.type.prefix){var s=this.startNode(),a=this.type===w.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),a?this.checkLVal(s.argument):this.strict&&"delete"===s.operator&&"Identifier"===s.argument.type?this.raiseRecoverable(s.start,"Deleting local variable in strict mode"):e=!0,n=this.finishNode(s,a?"UpdateExpression":"UnaryExpression")}else{if(n=this.parseExprSubscripts(t),this.checkExpressionErrors(t))return n;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(i,r);l.operator=this.value,l.prefix=!1,l.argument=n,this.checkLVal(n),this.next(),n=this.finishNode(l,"UpdateExpression")}}return!e&&this.eat(w.starstar)?this.buildBinary(i,r,n,this.parseMaybeUnary(null,!1),"**",!1):n},et.parseExprSubscripts=function(t){var e=this.start,n=this.startLoc,i=this.parseExprAtom(t),r="ArrowFunctionExpression"===i.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd);if(this.checkExpressionErrors(t)||r)return i;var s=this.parseSubscripts(i,e,n);return t&&"MemberExpression"===s.type&&(t.parenthesizedAssign>=s.start&&(t.parenthesizedAssign=-1),t.parenthesizedBind>=s.start&&(t.parenthesizedBind=-1)),s},et.parseSubscripts=function(t,e,n,i){for(var r=this.options.ecmaVersion>=8&&"Identifier"===t.type&&"async"===t.name&&this.lastTokEnd===t.end&&!this.canInsertSemicolon()&&"async"===this.input.slice(t.start,t.end);;){var s=this.parseSubscript(t,e,n,i,r);if(s===t||"ArrowFunctionExpression"===s.type)return s;t=s}},et.parseSubscript=function(t,e,n,i,r){var s=this.eat(w.bracketL);if(s||this.eat(w.dot)){var a=this.startNodeAt(e,n);a.object=t,a.property=s?this.parseExpression():this.parseIdent("never"!==this.options.allowReserved),a.computed=!!s,s&&this.expect(w.bracketR),t=this.finishNode(a,"MemberExpression")}else if(!i&&this.eat(w.parenL)){var l=new Z,o=this.yieldPos,u=this.awaitPos,h=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var c=this.parseExprList(w.parenR,this.options.ecmaVersion>=8&&"Import"!==t.type,!1,l);if(r&&!this.canInsertSemicolon()&&this.eat(w.arrow))return this.checkPatternErrors(l,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=o,this.awaitPos=u,this.awaitIdentPos=h,this.parseArrowExpression(this.startNodeAt(e,n),c,!0);this.checkExpressionErrors(l,!0),this.yieldPos=o||this.yieldPos,this.awaitPos=u||this.awaitPos,this.awaitIdentPos=h||this.awaitIdentPos;var d=this.startNodeAt(e,n);if(d.callee=t,d.arguments=c,"Import"===d.callee.type){1!==d.arguments.length&&this.raise(d.start,"import() requires exactly one argument");var p=d.arguments[0];p&&"SpreadElement"===p.type&&this.raise(p.start,"... is not allowed in import()")}t=this.finishNode(d,"CallExpression")}else if(this.type===w.backQuote){var f=this.startNodeAt(e,n);f.tag=t,f.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(f,"TaggedTemplateExpression")}return t},et.parseExprAtom=function(t){this.type===w.slash&&this.readRegexp();var e,n=this.potentialArrowAt===this.start;switch(this.type){case w._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),e=this.startNode(),this.next(),this.type!==w.parenL||this.allowDirectSuper||this.raise(e.start,"super() call outside constructor of a subclass"),this.type!==w.dot&&this.type!==w.bracketL&&this.type!==w.parenL&&this.unexpected(),this.finishNode(e,"Super");case w._this:return e=this.startNode(),this.next(),this.finishNode(e,"ThisExpression");case w.name:var i=this.start,r=this.startLoc,s=this.containsEsc,a=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!s&&"async"===a.name&&!this.canInsertSemicolon()&&this.eat(w._function))return this.parseFunction(this.startNodeAt(i,r),0,!1,!0);if(n&&!this.canInsertSemicolon()){if(this.eat(w.arrow))return this.parseArrowExpression(this.startNodeAt(i,r),[a],!1);if(this.options.ecmaVersion>=8&&"async"===a.name&&this.type===w.name&&!s)return a=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(w.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,r),[a],!0)}return a;case w.regexp:var l=this.value;return(e=this.parseLiteral(l.value)).regex={pattern:l.pattern,flags:l.flags},e;case w.num:case w.string:return this.parseLiteral(this.value);case w._null:case w._true:case w._false:return(e=this.startNode()).value=this.type===w._null?null:this.type===w._true,e.raw=this.type.keyword,this.next(),this.finishNode(e,"Literal");case w.parenL:var o=this.start,u=this.parseParenAndDistinguishExpression(n);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(u)&&(t.parenthesizedAssign=o),t.parenthesizedBind<0&&(t.parenthesizedBind=o)),u;case w.bracketL:return e=this.startNode(),this.next(),e.elements=this.parseExprList(w.bracketR,!0,!0,t),this.finishNode(e,"ArrayExpression");case w.braceL:return this.parseObj(!1,t);case w._function:return e=this.startNode(),this.next(),this.parseFunction(e,0);case w._class:return this.parseClass(this.startNode(),!1);case w._new:return this.parseNew();case w.backQuote:return this.parseTemplate();case w._import:return this.options.ecmaVersion>10?this.parseDynamicImport():this.unexpected();default:this.unexpected()}},et.parseDynamicImport=function(){var t=this.startNode();return this.next(),this.type!==w.parenL&&this.unexpected(),this.finishNode(t,"Import")},et.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),110===e.raw.charCodeAt(e.raw.length-1)&&(e.bigint=e.raw.slice(0,-1)),this.next(),this.finishNode(e,"Literal")},et.parseParenExpression=function(){this.expect(w.parenL);var t=this.parseExpression();return this.expect(w.parenR),t},et.parseParenAndDistinguishExpression=function(t){var e,n=this.start,i=this.startLoc,r=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var s,a=this.start,l=this.startLoc,o=[],u=!0,h=!1,c=new Z,d=this.yieldPos,p=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==w.parenR;){if(u?u=!1:this.expect(w.comma),r&&this.afterTrailingComma(w.parenR,!0)){h=!0;break}if(this.type===w.ellipsis){s=this.start,o.push(this.parseParenItem(this.parseRestBinding())),this.type===w.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}o.push(this.parseMaybeAssign(!1,c,this.parseParenItem))}var f=this.start,g=this.startLoc;if(this.expect(w.parenR),t&&!this.canInsertSemicolon()&&this.eat(w.arrow))return this.checkPatternErrors(c,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=p,this.parseParenArrowList(n,i,o);o.length&&!h||this.unexpected(this.lastTokStart),s&&this.unexpected(s),this.checkExpressionErrors(c,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=p||this.awaitPos,o.length>1?((e=this.startNodeAt(a,l)).expressions=o,this.finishNodeAt(e,"SequenceExpression",f,g)):e=o[0]}else e=this.parseParenExpression();if(this.options.preserveParens){var _=this.startNodeAt(n,i);return _.expression=e,this.finishNode(_,"ParenthesizedExpression")}return e},et.parseParenItem=function(t){return t},et.parseParenArrowList=function(t,e,n){return this.parseArrowExpression(this.startNodeAt(t,e),n)};var nt=[];et.parseNew=function(){var t=this.startNode(),e=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(w.dot)){t.meta=e;var n=this.containsEsc;return t.property=this.parseIdent(!0),("target"!==t.property.name||n)&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is new.target"),this.inNonArrowFunction()||this.raiseRecoverable(t.start,"new.target can only be used in functions"),this.finishNode(t,"MetaProperty")}var i=this.start,r=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(),i,r,!0),this.options.ecmaVersion>10&&"Import"===t.callee.type&&this.raise(t.callee.start,"Cannot use new with import(...)"),t.arguments=this.eat(w.parenL)?this.parseExprList(w.parenR,this.options.ecmaVersion>=8&&"Import"!==t.callee.type,!1):nt,this.finishNode(t,"NewExpression")},et.parseTemplateElement=function(t){var e=t.isTagged,n=this.startNode();return this.type===w.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===w.backQuote,this.finishNode(n,"TemplateElement")},et.parseTemplate=function(t){void 0===t&&(t={});var e=t.isTagged;void 0===e&&(e=!1);var n=this.startNode();this.next(),n.expressions=[];var i=this.parseTemplateElement({isTagged:e});for(n.quasis=[i];!i.tail;)this.type===w.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(w.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(w.braceR),n.quasis.push(i=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(n,"TemplateLiteral")},et.isAsyncProp=function(t){return!t.computed&&"Identifier"===t.key.type&&"async"===t.key.name&&(this.type===w.name||this.type===w.num||this.type===w.string||this.type===w.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===w.star)&&!C.test(this.input.slice(this.lastTokEnd,this.start))},et.parseObj=function(t,e){var n=this.startNode(),i=!0,r={};for(n.properties=[],this.next();!this.eat(w.braceR);){if(i)i=!1;else if(this.expect(w.comma),this.afterTrailingComma(w.braceR))break;var s=this.parseProperty(t,e);t||this.checkPropClash(s,r,e),n.properties.push(s)}return this.finishNode(n,t?"ObjectPattern":"ObjectExpression")},et.parseProperty=function(t,e){var n,i,r,s,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(w.ellipsis))return t?(a.argument=this.parseIdent(!1),this.type===w.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(this.type===w.parenL&&e&&(e.parenthesizedAssign<0&&(e.parenthesizedAssign=this.start),e.parenthesizedBind<0&&(e.parenthesizedBind=this.start)),a.argument=this.parseMaybeAssign(!1,e),this.type===w.comma&&e&&e.trailingComma<0&&(e.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(t||e)&&(r=this.start,s=this.startLoc),t||(n=this.eat(w.star)));var l=this.containsEsc;return this.parsePropertyName(a),!t&&!l&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(a)?(i=!0,n=this.options.ecmaVersion>=9&&this.eat(w.star),this.parsePropertyName(a,e)):i=!1,this.parsePropertyValue(a,t,n,i,r,s,e,l),this.finishNode(a,"Property")},et.parsePropertyValue=function(t,e,n,i,r,s,a,l){(n||i)&&this.type===w.colon&&this.unexpected(),this.eat(w.colon)?(t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),t.kind="init"):this.options.ecmaVersion>=6&&this.type===w.parenL?(e&&this.unexpected(),t.kind="init",t.method=!0,t.value=this.parseMethod(n,i)):e||l||!(this.options.ecmaVersion>=5)||t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name||this.type===w.comma||this.type===w.braceR?this.options.ecmaVersion>=6&&!t.computed&&"Identifier"===t.key.type?((n||i)&&this.unexpected(),this.checkUnreserved(t.key),"await"!==t.key.name||this.awaitIdentPos||(this.awaitIdentPos=r),t.kind="init",e?t.value=this.parseMaybeDefault(r,s,t.key):this.type===w.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),t.value=this.parseMaybeDefault(r,s,t.key)):t.value=t.key,t.shorthand=!0):this.unexpected():((n||i)&&this.unexpected(),t.kind=t.key.name,this.parsePropertyName(t),t.value=this.parseMethod(!1),t.value.params.length!==("get"===t.kind?0:1)?this.raiseRecoverable(t.value.start,"get"===t.kind?"getter should have no params":"setter should have exactly one param"):"set"===t.kind&&"RestElement"===t.value.params[0].type&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params"))},et.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(w.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(w.bracketR),t.key;t.computed=!1}return t.key=this.type===w.num||this.type===w.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},et.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)},et.parseMethod=function(t,e,n){var i=this.startNode(),r=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(i),this.options.ecmaVersion>=6&&(i.generator=t),this.options.ecmaVersion>=8&&(i.async=!!e),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|j(e,i.generator)|(n?128:0)),this.expect(w.parenL),i.params=this.parseBindingList(w.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(i,!1,!0),this.yieldPos=r,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(i,"FunctionExpression")},et.parseArrowExpression=function(t,e,n){var i=this.yieldPos,r=this.awaitPos,s=this.awaitIdentPos;return this.enterScope(16|j(n,!1)),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0,!1),this.yieldPos=i,this.awaitPos=r,this.awaitIdentPos=s,this.finishNode(t,"ArrowFunctionExpression")},et.parseFunctionBody=function(t,e,n){var i=this.strict,r=!1;if(e&&this.type!==w.braceL)t.body=this.parseMaybeAssign(),t.expression=!0,this.checkParams(t,!1);else{var s=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);i&&!s||(r=this.strictDirective(this.end))&&s&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list");var a=this.labels;this.labels=[],r&&(this.strict=!0),this.checkParams(t,!i&&!r&&!e&&!n&&this.isSimpleParamList(t.params)),t.body=this.parseBlock(!1),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=a}this.exitScope(),this.strict&&t.id&&this.checkLVal(t.id,5),this.strict=i},et.isSimpleParamList=function(t){for(var e=0,n=t;e<n.length;e+=1)if("Identifier"!==n[e].type)return!1;return!0},et.checkParams=function(t,e){for(var n={},i=0,r=t.params;i<r.length;i+=1)this.checkLVal(r[i],1,e?null:n)},et.parseExprList=function(t,e,n,i){for(var r=[],s=!0;!this.eat(t);){if(s)s=!1;else if(this.expect(w.comma),e&&this.afterTrailingComma(t))break;var a=void 0;n&&this.type===w.comma?a=null:this.type===w.ellipsis?(a=this.parseSpread(i),i&&this.type===w.comma&&i.trailingComma<0&&(i.trailingComma=this.start)):a=this.parseMaybeAssign(!1,i),r.push(a)}return r},et.checkUnreserved=function(t){var e=t.start,n=t.end,i=t.name;this.inGenerator&&"yield"===i&&this.raiseRecoverable(e,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===i&&this.raiseRecoverable(e,"Cannot use 'await' as identifier inside an async function"),this.keywords.test(i)&&this.raise(e,"Unexpected keyword '"+i+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(e,n).indexOf("\\")||(this.strict?this.reservedWordsStrict:this.reservedWords).test(i)&&(this.inAsync||"await"!==i||this.raiseRecoverable(e,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(e,"The keyword '"+i+"' is reserved"))},et.parseIdent=function(t,e){var n=this.startNode();return this.type===w.name?n.name=this.value:this.type.keyword?(n.name=this.type.keyword,"class"!==n.name&&"function"!==n.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop()):this.unexpected(),this.next(),this.finishNode(n,"Identifier"),t||(this.checkUnreserved(n),"await"!==n.name||this.awaitIdentPos||(this.awaitIdentPos=n.start)),n},et.parseYield=function(t){this.yieldPos||(this.yieldPos=this.start);var e=this.startNode();return this.next(),this.type===w.semi||this.canInsertSemicolon()||this.type!==w.star&&!this.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(w.star),e.argument=this.parseMaybeAssign(t)),this.finishNode(e,"YieldExpression")},et.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0),this.finishNode(t,"AwaitExpression")};var it=q.prototype;it.raise=function(t,e){var n=D(this.input,t),i=new SyntaxError(e+=" ("+n.line+":"+n.column+")");throw i.pos=t,i.loc=n,i.raisedAt=this.pos,i},it.raiseRecoverable=it.raise,it.curPosition=function(){if(this.options.locations)return new N(this.curLine,this.pos-this.lineStart)};var rt=q.prototype,st=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};rt.enterScope=function(t){this.scopeStack.push(new st(t))},rt.exitScope=function(){this.scopeStack.pop()},rt.treatFunctionsAsVarInScope=function(t){return t.flags&V||!this.inModule&&1&t.flags},rt.declareName=function(t,e,n){var i=!1;if(2===e){var r=this.currentScope();i=r.lexical.indexOf(t)>-1||r.functions.indexOf(t)>-1||r.var.indexOf(t)>-1,r.lexical.push(t),this.inModule&&1&r.flags&&delete this.undefinedExports[t]}else if(4===e)this.currentScope().lexical.push(t);else if(3===e){var s=this.currentScope();i=this.treatFunctionsAsVar?s.lexical.indexOf(t)>-1:s.lexical.indexOf(t)>-1||s.var.indexOf(t)>-1,s.functions.push(t)}else for(var a=this.scopeStack.length-1;a>=0;--a){var l=this.scopeStack[a];if(l.lexical.indexOf(t)>-1&&!(32&l.flags&&l.lexical[0]===t)||!this.treatFunctionsAsVarInScope(l)&&l.functions.indexOf(t)>-1){i=!0;break}if(l.var.push(t),this.inModule&&1&l.flags&&delete this.undefinedExports[t],l.flags&z)break}i&&this.raiseRecoverable(n,"Identifier '"+t+"' has already been declared")},rt.checkLocalExport=function(t){-1===this.scopeStack[0].lexical.indexOf(t.name)&&-1===this.scopeStack[0].var.indexOf(t.name)&&(this.undefinedExports[t.name]=t)},rt.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},rt.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(e.flags&z)return e}},rt.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(e.flags&z&&!(16&e.flags))return e}};var at=function(t,e,n){this.type="",this.start=e,this.end=0,t.options.locations&&(this.loc=new B(t,n)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[e,0])},lt=q.prototype;function ot(t,e,n,i){return t.type=e,t.end=n,this.options.locations&&(t.loc.end=i),this.options.ranges&&(t.range[1]=n),t}lt.startNode=function(){return new at(this,this.start,this.startLoc)},lt.startNodeAt=function(t,e){return new at(this,t,e)},lt.finishNode=function(t,e){return ot.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)},lt.finishNodeAt=function(t,e,n,i){return ot.call(this,t,e,n,i)};var ut=function(t,e,n,i,r){this.token=t,this.isExpr=!!e,this.preserveSpace=!!n,this.override=i,this.generator=!!r},ht={b_stat:new ut("{",!1),b_expr:new ut("{",!0),b_tmpl:new ut("${",!1),p_stat:new ut("(",!1),p_expr:new ut("(",!0),q_tmpl:new ut("`",!0,!0,function(t){return t.tryReadTemplateToken()}),f_stat:new ut("function",!1),f_expr:new ut("function",!0),f_expr_gen:new ut("function",!0,!1,null,!0),f_gen:new ut("function",!1,!1,null,!0)},ct=q.prototype;ct.initialContext=function(){return[ht.b_stat]},ct.braceIsBlock=function(t){var e=this.curContext();return e===ht.f_expr||e===ht.f_stat||(t!==w.colon||e!==ht.b_stat&&e!==ht.b_expr?t===w._return||t===w.name&&this.exprAllowed?C.test(this.input.slice(this.lastTokEnd,this.start)):t===w._else||t===w.semi||t===w.eof||t===w.parenR||t===w.arrow||(t===w.braceL?e===ht.b_stat:t!==w._var&&t!==w._const&&t!==w.name&&!this.exprAllowed):!e.isExpr)},ct.inGeneratorContext=function(){for(var t=this.context.length-1;t>=1;t--){var e=this.context[t];if("function"===e.token)return e.generator}return!1},ct.updateContext=function(t){var e,n=this.type;n.keyword&&t===w.dot?this.exprAllowed=!1:(e=n.updateContext)?e.call(this,t):this.exprAllowed=n.beforeExpr},w.parenR.updateContext=w.braceR.updateContext=function(){if(1!==this.context.length){var t=this.context.pop();t===ht.b_stat&&"function"===this.curContext().token&&(t=this.context.pop()),this.exprAllowed=!t.isExpr}else this.exprAllowed=!0},w.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?ht.b_stat:ht.b_expr),this.exprAllowed=!0},w.dollarBraceL.updateContext=function(){this.context.push(ht.b_tmpl),this.exprAllowed=!0},w.parenL.updateContext=function(t){this.context.push(t===w._if||t===w._for||t===w._with||t===w._while?ht.p_stat:ht.p_expr),this.exprAllowed=!0},w.incDec.updateContext=function(){},w._function.updateContext=w._class.updateContext=function(t){!t.beforeExpr||t===w.semi||t===w._else||t===w._return&&C.test(this.input.slice(this.lastTokEnd,this.start))||(t===w.colon||t===w.braceL)&&this.curContext()===ht.b_stat?this.context.push(ht.f_stat):this.context.push(ht.f_expr),this.exprAllowed=!1},w.backQuote.updateContext=function(){this.curContext()===ht.q_tmpl?this.context.pop():this.context.push(ht.q_tmpl),this.exprAllowed=!1},w.star.updateContext=function(t){if(t===w._function){var e=this.context.length-1;this.context[e]=this.context[e]===ht.f_expr?ht.f_expr_gen:ht.f_gen}this.exprAllowed=!0},w.name.updateContext=function(t){var e=!1;this.options.ecmaVersion>=6&&t!==w.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(e=!0),this.exprAllowed=e};var dt={9:"ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",10:"ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS Extended_Pictographic",11:"ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS Extended_Pictographic"},pt="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",ft={9:"Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",10:"Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",11:"Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho"},gt={};function _t(t){var e=gt[t]={binary:O(dt[t]+" "+pt),nonBinary:{General_Category:O(pt),Script:O(ft[t])}};e.nonBinary.Script_Extensions=e.nonBinary.Script,e.nonBinary.gc=e.nonBinary.General_Category,e.nonBinary.sc=e.nonBinary.Script,e.nonBinary.scx=e.nonBinary.Script_Extensions}_t(9),_t(10),_t(11);var mt=q.prototype,vt=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":""),this.unicodeProperties=gt[t.options.ecmaVersion>=11?11:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function bt(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}function yt(t){return 36===t||t>=40&&t<=43||46===t||63===t||t>=91&&t<=94||t>=123&&t<=125}function xt(t){return t>=65&&t<=90||t>=97&&t<=122}function wt(t){return xt(t)||95===t}function Ct(t){return wt(t)||St(t)}function St(t){return t>=48&&t<=57}function kt(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function At(t){return t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:t-48}function It(t){return t>=48&&t<=55}vt.prototype.reset=function(t,e,n){var i=-1!==n.indexOf("u");this.start=0|t,this.source=e+"",this.flags=n,this.switchU=i&&this.parser.options.ecmaVersion>=6,this.switchN=i&&this.parser.options.ecmaVersion>=9},vt.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},vt.prototype.at=function(t){var e=this.source,n=e.length;if(t>=n)return-1;var i=e.charCodeAt(t);return!this.switchU||i<=55295||i>=57344||t+1>=n?i:(i<<10)+e.charCodeAt(t+1)-56613888},vt.prototype.nextIndex=function(t){var e=this.source,n=e.length;if(t>=n)return n;var i=e.charCodeAt(t);return!this.switchU||i<=55295||i>=57344||t+1>=n?t+1:t+2},vt.prototype.current=function(){return this.at(this.pos)},vt.prototype.lookahead=function(){return this.at(this.nextIndex(this.pos))},vt.prototype.advance=function(){this.pos=this.nextIndex(this.pos)},vt.prototype.eat=function(t){return this.current()===t&&(this.advance(),!0)},mt.validateRegExpFlags=function(t){for(var e=t.validFlags,n=t.flags,i=0;i<n.length;i++){var r=n.charAt(i);-1===e.indexOf(r)&&this.raise(t.start,"Invalid regular expression flag"),n.indexOf(r,i+1)>-1&&this.raise(t.start,"Duplicate regular expression flag")}},mt.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&t.groupNames.length>0&&(t.switchN=!0,this.regexp_pattern(t))},mt.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames.length=0,t.backReferenceNames.length=0,this.regexp_disjunction(t),t.pos!==t.source.length&&(t.eat(41)&&t.raise("Unmatched ')'"),(t.eat(93)||t.eat(125))&&t.raise("Lone quantifier brackets")),t.maxBackReference>t.numCapturingParens&&t.raise("Invalid escape");for(var e=0,n=t.backReferenceNames;e<n.length;e+=1)-1===t.groupNames.indexOf(n[e])&&t.raise("Invalid named capture referenced")},mt.regexp_disjunction=function(t){for(this.regexp_alternative(t);t.eat(124);)this.regexp_alternative(t);this.regexp_eatQuantifier(t,!0)&&t.raise("Nothing to repeat"),t.eat(123)&&t.raise("Lone quantifier brackets")},mt.regexp_alternative=function(t){for(;t.pos<t.source.length&&this.regexp_eatTerm(t););},mt.regexp_eatTerm=function(t){return this.regexp_eatAssertion(t)?(t.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(t)&&t.switchU&&t.raise("Invalid quantifier"),!0):!(t.switchU?!this.regexp_eatAtom(t):!this.regexp_eatExtendedAtom(t))&&(this.regexp_eatQuantifier(t),!0)},mt.regexp_eatAssertion=function(t){var e=t.pos;if(t.lastAssertionIsQuantifiable=!1,t.eat(94)||t.eat(36))return!0;if(t.eat(92)){if(t.eat(66)||t.eat(98))return!0;t.pos=e}if(t.eat(40)&&t.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!n,!0}return t.pos=e,!1},mt.regexp_eatQuantifier=function(t,e){return void 0===e&&(e=!1),!!this.regexp_eatQuantifierPrefix(t,e)&&(t.eat(63),!0)},mt.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)},mt.regexp_eatBracedQuantifier=function(t,e){var n=t.pos;if(t.eat(123)){var i=0,r=-1;if(this.regexp_eatDecimalDigits(t)&&(i=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(r=t.lastIntValue),t.eat(125)))return-1!==r&&r<i&&!e&&t.raise("numbers out of order in {} quantifier"),!0;t.switchU&&!e&&t.raise("Incomplete quantifier"),t.pos=n}return!1},mt.regexp_eatAtom=function(t){return this.regexp_eatPatternCharacters(t)||t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)},mt.regexp_eatReverseSolidusAtomEscape=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatAtomEscape(t))return!0;t.pos=e}return!1},mt.regexp_eatUncapturingGroup=function(t){var e=t.pos;if(t.eat(40)){if(t.eat(63)&&t.eat(58)){if(this.regexp_disjunction(t),t.eat(41))return!0;t.raise("Unterminated group")}t.pos=e}return!1},mt.regexp_eatCapturingGroup=function(t){if(t.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(t):63===t.current()&&t.raise("Invalid group"),this.regexp_disjunction(t),t.eat(41))return t.numCapturingParens+=1,!0;t.raise("Unterminated group")}return!1},mt.regexp_eatExtendedAtom=function(t){return t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)||this.regexp_eatInvalidBracedQuantifier(t)||this.regexp_eatExtendedPatternCharacter(t)},mt.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1},mt.regexp_eatSyntaxCharacter=function(t){var e=t.current();return!!yt(e)&&(t.lastIntValue=e,t.advance(),!0)},mt.regexp_eatPatternCharacters=function(t){for(var e=t.pos,n=0;-1!==(n=t.current())&&!yt(n);)t.advance();return t.pos!==e},mt.regexp_eatExtendedPatternCharacter=function(t){var e=t.current();return!(-1===e||36===e||e>=40&&e<=43||46===e||63===e||91===e||94===e||124===e||(t.advance(),0))},mt.regexp_groupSpecifier=function(t){if(t.eat(63)){if(this.regexp_eatGroupName(t))return-1!==t.groupNames.indexOf(t.lastStringValue)&&t.raise("Duplicate capture group name"),void t.groupNames.push(t.lastStringValue);t.raise("Invalid group")}},mt.regexp_eatGroupName=function(t){if(t.lastStringValue="",t.eat(60)){if(this.regexp_eatRegExpIdentifierName(t)&&t.eat(62))return!0;t.raise("Invalid capture group name")}return!1},mt.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=bt(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=bt(t.lastIntValue);return!0}return!1},mt.regexp_eatRegExpIdentifierStart=function(t){var e=t.pos,n=t.current();return t.advance(),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(t)&&(n=t.lastIntValue),function(t){return f(t,!0)||36===t||95===t}(n)?(t.lastIntValue=n,!0):(t.pos=e,!1)},mt.regexp_eatRegExpIdentifierPart=function(t){var e=t.pos,n=t.current();return t.advance(),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(t)&&(n=t.lastIntValue),function(t){return g(t,!0)||36===t||95===t||8204===t||8205===t}(n)?(t.lastIntValue=n,!0):(t.pos=e,!1)},mt.regexp_eatAtomEscape=function(t){return!!(this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t))||(t.switchU&&(99===t.current()&&t.raise("Invalid unicode escape"),t.raise("Invalid escape")),!1)},mt.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var n=t.lastIntValue;if(t.switchU)return n>t.maxBackReference&&(t.maxBackReference=n),!0;if(n<=t.numCapturingParens)return!0;t.pos=e}return!1},mt.regexp_eatKGroupName=function(t){if(t.eat(107)){if(this.regexp_eatGroupName(t))return t.backReferenceNames.push(t.lastStringValue),!0;t.raise("Invalid named reference")}return!1},mt.regexp_eatCharacterEscape=function(t){return this.regexp_eatControlEscape(t)||this.regexp_eatCControlLetter(t)||this.regexp_eatZero(t)||this.regexp_eatHexEscapeSequence(t)||this.regexp_eatRegExpUnicodeEscapeSequence(t)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)},mt.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1},mt.regexp_eatZero=function(t){return 48===t.current()&&!St(t.lookahead())&&(t.lastIntValue=0,t.advance(),!0)},mt.regexp_eatControlEscape=function(t){var e=t.current();return 116===e?(t.lastIntValue=9,t.advance(),!0):110===e?(t.lastIntValue=10,t.advance(),!0):118===e?(t.lastIntValue=11,t.advance(),!0):102===e?(t.lastIntValue=12,t.advance(),!0):114===e&&(t.lastIntValue=13,t.advance(),!0)},mt.regexp_eatControlLetter=function(t){var e=t.current();return!!xt(e)&&(t.lastIntValue=e%32,t.advance(),!0)},mt.regexp_eatRegExpUnicodeEscapeSequence=function(t){var e,n=t.pos;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var i=t.lastIntValue;if(t.switchU&&i>=55296&&i<=56319){var r=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var s=t.lastIntValue;if(s>=56320&&s<=57343)return t.lastIntValue=1024*(i-55296)+(s-56320)+65536,!0}t.pos=r,t.lastIntValue=i}return!0}if(t.switchU&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&(e=t.lastIntValue)>=0&&e<=1114111)return!0;t.switchU&&t.raise("Invalid unicode escape"),t.pos=n}return!1},mt.regexp_eatIdentityEscape=function(t){if(t.switchU)return!!this.regexp_eatSyntaxCharacter(t)||!!t.eat(47)&&(t.lastIntValue=47,!0);var e=t.current();return!(99===e||t.switchN&&107===e||(t.lastIntValue=e,t.advance(),0))},mt.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var e=t.current();if(e>=49&&e<=57){do{t.lastIntValue=10*t.lastIntValue+(e-48),t.advance()}while((e=t.current())>=48&&e<=57);return!0}return!1},mt.regexp_eatCharacterClassEscape=function(t){var e=t.current();if(function(t){return 100===t||68===t||115===t||83===t||119===t||87===t}(e))return t.lastIntValue=-1,t.advance(),!0;if(t.switchU&&this.options.ecmaVersion>=9&&(80===e||112===e)){if(t.lastIntValue=-1,t.advance(),t.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(t)&&t.eat(125))return!0;t.raise("Invalid property name")}return!1},mt.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var n=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t))return this.regexp_validateUnicodePropertyNameAndValue(t,n,t.lastStringValue),!0}return t.pos=e,!!this.regexp_eatLoneUnicodePropertyNameOrValue(t)&&(this.regexp_validateUnicodePropertyNameOrValue(t,t.lastStringValue),!0)},mt.regexp_validateUnicodePropertyNameAndValue=function(t,e,n){M(t.unicodeProperties.nonBinary,e)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[e].test(n)||t.raise("Invalid property value")},mt.regexp_validateUnicodePropertyNameOrValue=function(t,e){t.unicodeProperties.binary.test(e)||t.raise("Invalid property name")},mt.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";wt(e=t.current());)t.lastStringValue+=bt(e),t.advance();return""!==t.lastStringValue},mt.regexp_eatUnicodePropertyValue=function(t){var e=0;for(t.lastStringValue="";Ct(e=t.current());)t.lastStringValue+=bt(e),t.advance();return""!==t.lastStringValue},mt.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)},mt.regexp_eatCharacterClass=function(t){if(t.eat(91)){if(t.eat(94),this.regexp_classRanges(t),t.eat(93))return!0;t.raise("Unterminated character class")}return!1},mt.regexp_classRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var n=t.lastIntValue;!t.switchU||-1!==e&&-1!==n||t.raise("Invalid character class"),-1!==e&&-1!==n&&e>n&&t.raise("Range out of order in character class")}}},mt.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var n=t.current();(99===n||It(n))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var i=t.current();return 93!==i&&(t.lastIntValue=i,t.advance(),!0)},mt.regexp_eatClassEscape=function(t){var e=t.pos;if(t.eat(98))return t.lastIntValue=8,!0;if(t.switchU&&t.eat(45))return t.lastIntValue=45,!0;if(!t.switchU&&t.eat(99)){if(this.regexp_eatClassControlLetter(t))return!0;t.pos=e}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)},mt.regexp_eatClassControlLetter=function(t){var e=t.current();return!(!St(e)&&95!==e||(t.lastIntValue=e%32,t.advance(),0))},mt.regexp_eatHexEscapeSequence=function(t){var e=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2))return!0;t.switchU&&t.raise("Invalid escape"),t.pos=e}return!1},mt.regexp_eatDecimalDigits=function(t){var e=t.pos,n=0;for(t.lastIntValue=0;St(n=t.current());)t.lastIntValue=10*t.lastIntValue+(n-48),t.advance();return t.pos!==e},mt.regexp_eatHexDigits=function(t){var e=t.pos,n=0;for(t.lastIntValue=0;kt(n=t.current());)t.lastIntValue=16*t.lastIntValue+At(n),t.advance();return t.pos!==e},mt.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var n=t.lastIntValue;t.lastIntValue=e<=3&&this.regexp_eatOctalDigit(t)?64*e+8*n+t.lastIntValue:8*e+n}else t.lastIntValue=e;return!0}return!1},mt.regexp_eatOctalDigit=function(t){var e=t.current();return It(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)},mt.regexp_eatFixedHexDigits=function(t,e){var n=t.pos;t.lastIntValue=0;for(var i=0;i<e;++i){var r=t.current();if(!kt(r))return t.pos=n,!1;t.lastIntValue=16*t.lastIntValue+At(r),t.advance()}return!0};var Pt=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new B(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},Tt=q.prototype;function Et(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}Tt.next=function(){this.options.onToken&&this.options.onToken(new Pt(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Tt.getToken=function(){return this.next(),new Pt(this)},"undefined"!=typeof Symbol&&(Tt[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===w.eof,value:e}}}}),Tt.curContext=function(){return this.context[this.context.length-1]},Tt.nextToken=function(){var t=this.curContext();return t&&t.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(w.eof):t.override?t.override(this):void this.readToken(this.fullCharCodeAtPos())},Tt.readToken=function(t){return f(t,this.options.ecmaVersion>=6)||92===t?this.readWord():this.getTokenFromCode(t)},Tt.fullCharCodeAtPos=function(){var t=this.input.charCodeAt(this.pos);return t<=55295||t>=57344?t:(t<<10)+this.input.charCodeAt(this.pos+1)-56613888},Tt.skipBlockComment=function(){var t,e=this.options.onComment&&this.curPosition(),n=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(-1===i&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(S.lastIndex=n;(t=S.exec(this.input))&&t.index<this.pos;)++this.curLine,this.lineStart=t.index+t[0].length;this.options.onComment&&this.options.onComment(!0,this.input.slice(n+2,i),n,this.pos,e,this.curPosition())},Tt.skipLineComment=function(t){for(var e=this.pos,n=this.options.onComment&&this.curPosition(),i=this.input.charCodeAt(this.pos+=t);this.pos<this.input.length&&!k(i);)i=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(e+t,this.pos),e,this.pos,n,this.curPosition())},Tt.skipSpace=function(){t:for(;this.pos<this.input.length;){var t=this.input.charCodeAt(this.pos);switch(t){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break t}break;default:if(!(t>8&&t<14||t>=5760&&A.test(String.fromCharCode(t))))break t;++this.pos}}},Tt.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=t,this.value=e,this.updateContext(n)},Tt.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===t&&46===e?(this.pos+=3,this.finishToken(w.ellipsis)):(++this.pos,this.finishToken(w.dot))},Tt.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===t?this.finishOp(w.assign,2):this.finishOp(w.slash,1)},Tt.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),n=1,i=42===t?w.star:w.modulo;return this.options.ecmaVersion>=7&&42===t&&42===e&&(++n,i=w.starstar,e=this.input.charCodeAt(this.pos+2)),61===e?this.finishOp(w.assign,n+1):this.finishOp(i,n)},Tt.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?this.finishOp(124===t?w.logicalOR:w.logicalAND,2):61===e?this.finishOp(w.assign,2):this.finishOp(124===t?w.bitwiseOR:w.bitwiseAND,1)},Tt.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(w.assign,2):this.finishOp(w.bitwiseXOR,1)},Tt.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?45!==e||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!C.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(w.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===e?this.finishOp(w.assign,2):this.finishOp(w.plusMin,1)},Tt.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),n=1;return e===t?(n=62===t&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(w.assign,n+1):this.finishOp(w.bitShift,n)):33!==e||60!==t||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===e&&(n=2),this.finishOp(w.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Tt.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(w.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===t&&62===e&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(w.arrow)):this.finishOp(61===t?w.eq:w.prefix,1)},Tt.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(w.parenL);case 41:return++this.pos,this.finishToken(w.parenR);case 59:return++this.pos,this.finishToken(w.semi);case 44:return++this.pos,this.finishToken(w.comma);case 91:return++this.pos,this.finishToken(w.bracketL);case 93:return++this.pos,this.finishToken(w.bracketR);case 123:return++this.pos,this.finishToken(w.braceL);case 125:return++this.pos,this.finishToken(w.braceR);case 58:return++this.pos,this.finishToken(w.colon);case 63:return++this.pos,this.finishToken(w.question);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(w.backQuote);case 48:var e=this.input.charCodeAt(this.pos+1);if(120===e||88===e)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===e||79===e)return this.readRadixNumber(8);if(98===e||66===e)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 126:return this.finishOp(w.prefix,1)}this.raise(this.pos,"Unexpected character '"+Et(t)+"'")},Tt.finishOp=function(t,e){var n=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,n)},Tt.readRegexp=function(){for(var t,e,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var i=this.input.charAt(this.pos);if(C.test(i)&&this.raise(n,"Unterminated regular expression"),t)t=!1;else{if("["===i)e=!0;else if("]"===i&&e)e=!1;else if("/"===i&&!e)break;t="\\"===i}++this.pos}var r=this.input.slice(n,this.pos);++this.pos;var s=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(s);var l=this.regexpState||(this.regexpState=new vt(this));l.reset(n,r,a),this.validateRegExpFlags(l),this.validateRegExpPattern(l);var o=null;try{o=new RegExp(r,a)}catch(u){}return this.finishToken(w.regexp,{pattern:r,flags:a,value:o})},Tt.readInt=function(t,e){for(var n=this.pos,i=0,r=0,s=null==e?1/0:e;r<s;++r){var a,l=this.input.charCodeAt(this.pos);if((a=l>=97?l-97+10:l>=65?l-65+10:l>=48&&l<=57?l-48:1/0)>=t)break;++this.pos,i=i*t+a}return this.pos===n||null!=e&&this.pos-n!==e?null:i},Tt.readRadixNumber=function(t){var e=this.pos;this.pos+=2;var n=this.readInt(t);return null==n&&this.raise(this.start+2,"Expected number in radix "+t),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(n="undefined"!=typeof BigInt?BigInt(this.input.slice(e,this.pos)):null,++this.pos):f(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(w.num,n)},Tt.readNumber=function(t){var e=this.pos;t||null!==this.readInt(10)||this.raise(e,"Invalid number");var n=this.pos-e>=2&&48===this.input.charCodeAt(e);n&&this.strict&&this.raise(e,"Invalid number"),n&&/[89]/.test(this.input.slice(e,this.pos))&&(n=!1);var i=this.input.charCodeAt(this.pos);if(!n&&!t&&this.options.ecmaVersion>=11&&110===i){var r=this.input.slice(e,this.pos),s="undefined"!=typeof BigInt?BigInt(r):null;return++this.pos,f(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(w.num,s)}46!==i||n||(++this.pos,this.readInt(10),i=this.input.charCodeAt(this.pos)),69!==i&&101!==i||n||(43!==(i=this.input.charCodeAt(++this.pos))&&45!==i||++this.pos,null===this.readInt(10)&&this.raise(e,"Invalid number")),f(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a=this.input.slice(e,this.pos),l=n?parseInt(a,8):parseFloat(a);return this.finishToken(w.num,l)},Tt.readCodePoint=function(){var t;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var e=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(e,"Code point out of bounds")}else t=this.readHexChar(4);return t},Tt.readString=function(t){for(var e="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var i=this.input.charCodeAt(this.pos);if(i===t)break;92===i?(e+=this.input.slice(n,this.pos),e+=this.readEscapedChar(!1),n=this.pos):(k(i,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(n,this.pos++),this.finishToken(w.string,e)};var Mt={};Tt.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t!==Mt)throw t;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Tt.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Mt;this.raise(t,e)},Tt.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==w.template&&this.type!==w.invalidTemplate?(t+=this.input.slice(e,this.pos),this.finishToken(w.template,t)):36===n?(this.pos+=2,this.finishToken(w.dollarBraceL)):(++this.pos,this.finishToken(w.backQuote));if(92===n)t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(!0),e=this.pos;else if(k(n)){switch(t+=this.input.slice(e,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:t+="\n";break;default:t+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}},Tt.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(w.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},Tt.readEscapedChar=function(t){var e=this.input.charCodeAt(++this.pos);switch(++this.pos,e){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Et(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";default:if(e>=48&&e<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(n,8);return i>255&&(n=n.slice(0,-1),i=parseInt(n,8)),this.pos+=n.length-1,e=this.input.charCodeAt(this.pos),"0"===n&&56!==e&&57!==e||!this.strict&&!t||this.invalidStringToken(this.pos-1-n.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return k(e)?"":String.fromCharCode(e)}},Tt.readHexChar=function(t){var e=this.pos,n=this.readInt(16,t);return null===n&&this.invalidStringToken(e,"Bad character escape sequence"),n},Tt.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,n=this.pos,i=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(g(r,i))this.pos+=r<=65535?1:2;else{if(92!==r)break;this.containsEsc=!0,t+=this.input.slice(n,this.pos);var s=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(e?f:g)(a,i)||this.invalidStringToken(s,"Invalid Unicode escape"),t+=Et(a),n=this.pos}e=!1}return t+this.input.slice(n,this.pos)},Tt.readWord=function(){var t=this.readWord1(),e=w.name;return this.keywords.test(t)&&(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+t),e=y[t]),this.finishToken(e,t)};var Lt="6.3.0";function Ot(t,e){return q.parse(t,e)}function Nt(t,e,n){return q.parseExpressionAt(t,e,n)}function Bt(t,e){return q.tokenizer(t,e)}},zWTf:function(t,e,n){"use strict";n.r(e);var i=n("8Y7J");class r{}var s=n("pMnS"),a=n("3ZQ1"),l=n("vKlC"),o=n("IiLU");class u{constructor(){}ngOnInit(){this.scope=new o.PaperScope,this.project=new o.Project(this.canvasElement.nativeElement),this.project.activeLayer.removeChildren();var t=new o.Path;t.add(new o.Point(40,90)),t.add(new o.Point(90,40)),t.add(new o.Point(140,90)),t.closed=!0,t.strokeColor=new o.Color("#77B5FE"),this.scope.paper.view.draw(t)}}var h=i.pb({encapsulation:0,styles:[["h1[_ngcontent-%COMP%]{font-size:2.4rem;font-weight:500;display:inline-block;margin:8px 0}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{color:#333}a[_ngcontent-%COMP%], input[_ngcontent-%COMP%], li[_ngcontent-%COMP%], ol[_ngcontent-%COMP%], p[_ngcontent-%COMP%], ul[_ngcontent-%COMP%]{font-size:1.4rem;line-height:2.4rem;letter-spacing:.3px;letter-spacing:.03rem;font-weight:400;color:#444}li[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}li[_ngcontent-%COMP%]{padding-bottom:8px}ul[_ngcontent-%COMP%]{list-style-type:square}"]],data:{}});function c(t){return i.Mb(0,[i.Ib(402653184,1,{canvasElement:0}),(t()(),i.rb(1,0,null,null,1,"h1",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,["POINTS AND LINES"])),(t()(),i.rb(3,0,[[1,0],["canvasElement",1]],null,0,"canvas",[["height","100"],["width","150"]],null,null,null,null,null)),(t()(),i.rb(4,0,null,null,76,"ol",[],null,null,null,null,null)),(t()(),i.rb(5,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(6,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" A point has a position and its location can be ascertained. It has no dimension and direction. "])),(t()(),i.rb(8,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(9,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Points are denoted by Capital letters as A, B, C, D. "])),(t()(),i.rb(11,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(12,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Line is straight and extends indefinitely in both directions. "])),(t()(),i.rb(14,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(15,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" A line can be denoted by a single small letter or by "])),(t()(),i.rb(17,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(18,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" using any two points A and B on it. "])),(t()(),i.rb(20,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(21,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" A line has no end point. "])),(t()(),i.rb(23,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(24,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Only one line can be drawn passing through two given points. "])),(t()(),i.rb(26,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(27,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Many number of lines can be drawn through a given point. "])),(t()(),i.rb(29,0,null,null,4,"li",[],null,null,null,null,null)),(t()(),i.rb(30,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Collinear Points :- "])),(t()(),i.rb(32,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Three or more points are said to be collinear if all of them lie on the same straight line. "])),(t()(),i.rb(34,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(35,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Plane : A plane is a flat surface which extends indefinitely in all directions. "])),(t()(),i.rb(37,0,null,null,4,"li",[],null,null,null,null,null)),(t()(),i.rb(38,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Intersecting Lincs : "])),(t()(),i.rb(40,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" if two distinct lines in a plane have one point in common they are called intersecting lines. "])),(t()(),i.rb(42,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(43,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" The common point is called point of intersection. "])),(t()(),i.rb(45,0,null,null,4,"li",[],null,null,null,null,null)),(t()(),i.rb(46,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Non-intersecting lines : "])),(t()(),i.rb(48,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" If two distinct lines in a plane have no point common they are called non-intersecting lines. "])),(t()(),i.rb(50,0,null,null,4,"li",[],null,null,null,null,null)),(t()(),i.rb(51,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Concurrent lines : "])),(t()(),i.rb(53,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Three or more distinct lines in a plane are said to be concurrent if they all pass through the same point. "])),(t()(),i.rb(55,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(56,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" The common point is called point of concurrence. "])),(t()(),i.rb(58,0,null,null,5,"li",[],null,null,null,null,null)),(t()(),i.rb(59,0,null,null,4,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Line Segment : A line segment is a portion of a line. It has two end points. It is denoted by "])),(t()(),i.rb(61,0,null,null,2,"app-math-jax",[],null,null,null,a.b,a.a)),i.qb(62,4308992,null,0,l.a,[],null,null),(t()(),i.Kb(63,0,["\\overline",""])),(t()(),i.rb(64,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(65,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Only one line segment can be drawn joining two given points. "])),(t()(),i.rb(67,0,null,null,4,"li",[],null,null,null,null,null)),(t()(),i.rb(68,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Ray : If a part of a line has one end point but extends indefinitely in the other direction then it is called a ray. "])),(t()(),i.rb(70,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" O. Initial point "])),(t()(),i.rb(72,0,null,null,4,"li",[],null,null,null,null,null)),(t()(),i.rb(73,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Opposite rays : Two rays with same initial point but directed in the opposite direction. "])),(t()(),i.rb(75,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" O - initial point ; OA, 0B - opposite rays. "])),(t()(),i.rb(77,0,null,null,3,"li",[],null,null,null,null,null)),(t()(),i.rb(78,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Any number ofrays can be drawn from a given initial point. "])),(t()(),i.rb(80,0,null,null,0,"p",[],null,null,null,null,null)),(t()(),i.rb(81,0,null,null,1,"h1",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,["ANGLES Angle:"])),(t()(),i.rb(83,0,null,null,11,"ol",[],null,null,null,null,null)),(t()(),i.rb(84,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(85,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" rays with a conunon initial point form an angle. "])),(t()(),i.rb(87,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(88,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Degree : The unit for the measurement of an angle is called degree. "])),(t()(),i.rb(90,0,null,null,4,"li",[],null,null,null,null,null)),(t()(),i.rb(91,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Interior Points = P, Q "])),(t()(),i.rb(93,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Exterior Points = M, N, S "])),(t()(),i.rb(95,0,null,null,10,"ol",[],null,null,null,null,null)),(t()(),i.rb(96,0,null,null,4,"li",[],null,null,null,null,null)),(t()(),i.rb(97,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Kinds of angles "])),(t()(),i.rb(99,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Right angle acute angle obtuse angle "])),(t()(),i.rb(101,0,null,null,4,"li",[],null,null,null,null,null)),(t()(),i.rb(102,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Reflex angle "])),(t()(),i.rb(104,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" AOB is reflex angle. "])),(t()(),i.rb(106,0,null,null,1,"h1",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,["Pair of angles:"])),(t()(),i.rb(108,0,null,null,40,"ol",[],null,null,null,null,null)),(t()(),i.rb(109,0,null,null,8,"li",[],null,null,null,null,null)),(t()(),i.rb(110,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Complementary angles: "])),(t()(),i.rb(112,0,null,null,5,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" TWO angles are complementary if the sum of their measures is "])),(t()(),i.rb(114,0,null,null,2,"app-math-jax",[],null,null,null,a.b,a.a)),i.qb(115,4308992,null,0,l.a,[],null,null),(t()(),i.Kb(-1,0,["90^0"])),(t()(),i.Kb(-1,null,[". "])),(t()(),i.rb(118,0,null,null,4,"li",[],null,null,null,null,null)),(t()(),i.rb(119,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Supplementary angles: "])),(t()(),i.rb(121,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Two angles are supplementary if the sum of their measures is 180^0. eg. 70^0, 1 100, 700 + = 1800 500, 1300, 500 + 1300 = 180 0 "])),(t()(),i.rb(123,0,null,null,6,"li",[],null,null,null,null,null)),(t()(),i.rb(124,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Adjacent angles: "])),(t()(),i.rb(126,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Two angles in a plane are adjacent angles if they have a common vertex, a common arm and their interiors do not overlap. "])),(t()(),i.rb(128,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" DAC & ZCAB are adjacent angles. "])),(t()(),i.rb(130,0,null,null,4,"li",[],null,null,null,null,null)),(t()(),i.rb(131,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Linear pair : "])),(t()(),i.rb(133,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Adjacent supplementary angles form a linear pain. "])),(t()(),i.rb(135,0,null,null,4,"li",[],null,null,null,null,null)),(t()(),i.rb(136,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Vertically Opposite angles: "])),(t()(),i.rb(138,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" 1 & 3, 2 & 4 are vertically opposite angles. Vertically opposite angles are equal. "])),(t()(),i.rb(140,0,null,null,8,"li",[],null,null,null,null,null)),(t()(),i.rb(141,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Perpendicular lines: "])),(t()(),i.rb(143,0,null,null,5,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" If the angle between two straight lines is "])),(t()(),i.rb(145,0,null,null,2,"app-math-jax",[],null,null,null,a.b,a.a)),i.qb(146,4308992,null,0,l.a,[],null,null),(t()(),i.Kb(-1,0,["90^0"])),(t()(),i.Kb(-1,null,[" then they are called perpendicular lines. "])),(t()(),i.rb(149,0,null,null,1,"h1",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,["PROPERTIES OF PARALLEL LINES"])),(t()(),i.rb(151,0,null,null,39,"ol",[],null,null,null,null,null)),(t()(),i.rb(152,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(153,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" The perpendicular distance between two parallel lines is the same everywhere. "])),(t()(),i.rb(155,0,null,null,12,"li",[],null,null,null,null,null)),(t()(),i.rb(156,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Transversal : A line which intersects two or more given lines at different points is called transversal to the given lines. "])),(t()(),i.rb(158,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" (i) Exterior angles : Z l, Z2, Z 7 & Z 8 "])),(t()(),i.rb(160,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" (ii) Interior angles : Z 3, Z4, Z 5 & Z6 "])),(t()(),i.rb(162,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" (iii) Corresponding angles : Zl & Z 5 ; Z-4 & Z 8 "])),(t()(),i.rb(164,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" (iv) Alternate or Alternate interior angles. Z4&Z6\u2022, Z3&Z5 "])),(t()(),i.rb(166,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" (v) Alternate exterior angles. "])),(t()(),i.rb(168,0,null,null,8,"li",[],null,null,null,null,null)),(t()(),i.rb(169,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" If two parallel lines are intersected by a transversal then, "])),(t()(),i.rb(171,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" (i) Corresponding angles are equal "])),(t()(),i.rb(173,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" (ii) Alternate and Alternate exterior angles are equal. h Alternate Alternate exterior = Zf Za = Zg Lc = Ze Zb = Zh "])),(t()(),i.rb(175,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" (iii) Interior angles on the same side of the transversal are supplementary. "])),(t()(),i.rb(177,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(178,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Lines parallel to the same line are parallel to each other. "])),(t()(),i.rb(180,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(181,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Lines perpendicular to the same line are parallel to each other. "])),(t()(),i.rb(183,0,null,null,4,"li",[],null,null,null,null,null)),(t()(),i.rb(184,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" If three parallel lines make equal intercepts on one transversal then they make equal intercepts on any other transversal. "])),(t()(),i.rb(186,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" AB = BC EF = FG "])),(t()(),i.rb(188,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(189,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" The intercepts made on any two transversals by three parallel lines are proportional. "])),(t()(),i.rb(191,0,null,null,1,"h1",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,["TRIANGLES"])),(t()(),i.rb(193,0,null,null,116,"ol",[],null,null,null,null,null)),(t()(),i.rb(194,0,null,null,4,"li",[],null,null,null,null,null)),(t()(),i.rb(195,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Triangle : A three sided closed figure is called a triangle "])),(t()(),i.rb(197,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Sides : AB, BC, CA, Vertices : A, B, C Angles LA, LB, ZC (or) c ZCAB, ZABC, ZBCA "])),(t()(),i.rb(199,0,null,null,18,"li",[],null,null,null,null,null)),(t()(),i.rb(200,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Types of Triangles : "])),(t()(),i.rb(202,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Based on Sides; "])),(t()(),i.rb(204,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" (i) Scalene triangle : All sides are unequal. "])),(t()(),i.rb(206,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" (ii) Isosceles triangle : Two sides are equal. "])),(t()(),i.rb(208,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" (iii) Equilateral triangle : All sides are equal. "])),(t()(),i.rb(210,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Based on angles : "])),(t()(),i.rb(212,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" (iv) Acute Angled triangle : All the angles are acute. "])),(t()(),i.rb(214,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" (v) Right angled triangle: One of the angles in a triangle is right angle. "])),(t()(),i.rb(216,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" (vi) Obtuse angled triangle : One of the angles in a triangle is obtuse angle. "])),(t()(),i.rb(218,0,null,null,6,"li",[],null,null,null,null,null)),(t()(),i.rb(219,0,null,null,5,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" The sum of the three angles of a triangle is "])),(t()(),i.rb(221,0,null,null,2,"app-math-jax",[],null,null,null,a.b,a.a)),i.qb(222,4308992,null,0,l.a,[],null,null),(t()(),i.Kb(-1,0,["180^0"])),(t()(),i.Kb(-1,null,[". "])),(t()(),i.rb(225,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(226,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" The sum of any two sides will be greater than the third side "])),(t()(),i.rb(228,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(229,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" In a triangle, if two sides are equal then the angles opposite to them are also equal. "])),(t()(),i.rb(231,0,null,null,8,"li",[],null,null,null,null,null)),(t()(),i.rb(232,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Pythagoras theorem "])),(t()(),i.rb(234,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" In a right triangle the square on the hypotenuse equals the sum of the squares on other two sides. "])),(t()(),i.rb(236,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Eg : Pythagorean triplets. "])),(t()(),i.rb(238,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" (3, 4, 5), (5, 12, 13) (7, 24, 25), (8, 15, 17) "])),(t()(),i.rb(240,0,null,null,6,"li",[],null,null,null,null,null)),(t()(),i.rb(241,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Median : A Median of a triangle is the line segment that joins a vertex to the middle point of the opposite side. "])),(t()(),i.rb(243,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" (i) medians of a triangle are concurrent at the point G called the Centroid of the triangle. "])),(t()(),i.rb(245,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" (ii) The Centroid of a triangle divides each median in the ratio 2 : 1. "])),(t()(),i.rb(247,0,null,null,4,"li",[],null,null,null,null,null)),(t()(),i.rb(248,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Altitude : An altitude of a triangle is the line segnent from a vertex of the triangle perpendicular to the opposite side. "])),(t()(),i.rb(250,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" (i) The Altitudes of a triangle are concurrent at Orthocentre O. "])),(t()(),i.rb(252,0,null,null,8,"li",[],null,null,null,null,null)),(t()(),i.rb(253,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Perpendicular bisector : A line which bisects the given line segment at right angles is called the perpendicular bisector. "])),(t()(),i.rb(255,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" (i) The perpendicular bisectors of the sides of a triangle are concurrent at circumcentret "])),(t()(),i.rb(257,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" (ii) The circumcentre of a triangle is equidistant from its vertices. "])),(t()(),i.rb(259,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" SA = SB = SC. "])),(t()(),i.rb(261,0,null,null,8,"li",[],null,null,null,null,null)),(t()(),i.rb(262,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Angle bisector : "])),(t()(),i.rb(264,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" A ray which bisects the given angle is called angle bisector. "])),(t()(),i.rb(266,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" (i) The angle bisector of the triangle are concurrent at Incentre I. "])),(t()(),i.rb(268,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" (ii) The Incentre of a triangle is equidistant from its sides. "])),(t()(),i.rb(270,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(271,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" In an equilateral triangle the Centroid, the orthocentre, the circumcentre and the incentre coincide. "])),(t()(),i.rb(273,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(274,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" In a right triangle the orthocentre is at the vertex of the right angle. "])),(t()(),i.rb(276,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(277,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" In a right triangle the circumcentre lies on the mid point of the hypotenuse. "])),(t()(),i.rb(279,0,null,null,8,"li",[],null,null,null,null,null)),(t()(),i.rb(280,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Congruent figures: "])),(t()(),i.rb(282,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Two figures are congruent if they have the same shape and size. "])),(t()(),i.rb(284,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Two plane figures are congruent if each, when superposed on the other covers it exactly. "])),(t()(),i.rb(286,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Two line segments are congruent, if they have the same length. "])),(t()(),i.rb(288,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(289,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" angles are congruent if they have the same measure. "])),(t()(),i.rb(291,0,null,null,10,"li",[],null,null,null,null,null)),(t()(),i.rb(292,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" For two triangles to be congruent. "])),(t()(),i.rb(294,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" (i) SSS Congruence Condition : Three sides of one triangle are equal to the three sides of the other triangle. "])),(t()(),i.rb(296,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" (ii)SAS Congruence Condition : Two sides and the included angle of the one are respectively equal to the two sides and the included angle of the other. "])),(t()(),i.rb(298,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" (iii) AAS Congruence Condition : Two angles and one side of one are equal to two angles and the corresponding side of the other. "])),(t()(),i.rb(300,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" (iv) RHS Congruence Condition : Two right triangles are congruent, if the hypotenuses are equal and one side of the one is equal to the corresponding side of the other. "])),(t()(),i.rb(302,0,null,null,4,"li",[],null,null,null,null,null)),(t()(),i.rb(303,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" A line through the mid point of a side of a triangle parallel to another side bisects the third side. "])),(t()(),i.rb(305,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" (ii) The line segment joining the mid points of two sides of a triangle c is parallel to the third side. "])),(t()(),i.rb(307,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(308,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" If a line parallel to one side of a triangle intersects the other two sides in distinct points then it cuts off from these sides proportional to these sides "])),(t()(),i.rb(310,0,null,null,1,"h1",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,["QUADRILATERALS"])),(t()(),i.rb(312,0,null,null,13,"ol",[],null,null,null,null,null)),(t()(),i.rb(313,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(314,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" A Four sided closed figure in a plane is called a Quadrilateral AC, BD are diagonals "])),(t()(),i.rb(316,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(317,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" In a quadrilateral there are four pairs of adjacent angles, two pairs of opposite angles. "])),(t()(),i.rb(319,0,null,null,6,"li",[],null,null,null,null,null)),(t()(),i.rb(320,0,null,null,5,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" The sum of the angles of a quadrialteral is "])),(t()(),i.rb(322,0,null,null,2,"app-math-jax",[],null,null,null,a.b,a.a)),i.qb(323,4308992,null,0,l.a,[],null,null),(t()(),i.Kb(-1,0,["360^0"])),(t()(),i.Kb(-1,null,[", or four right angles. "])),(t()(),i.rb(326,0,null,null,1,"h1",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,["Family of Quadrilaterals"])),(t()(),i.rb(328,0,null,null,1,"h1",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,["Properties of Quadrilateral:"])),(t()(),i.rb(330,0,null,null,49,"ol",[],null,null,null,null,null)),(t()(),i.rb(331,0,null,null,4,"li",[],null,null,null,null,null)),(t()(),i.rb(332,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Trapezium "])),(t()(),i.rb(334,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" One pair of Opposite sides are parallel. "])),(t()(),i.rb(336,0,null,null,13,"li",[],null,null,null,null,null)),(t()(),i.rb(337,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Parallelogram "])),(t()(),i.rb(339,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" 1. Both pairs of opposite sides are parallel "])),(t()(),i.rb(341,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" 2. Opposite angles are equal "])),(t()(),i.rb(343,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" 3. diagonals bisect each other "])),(t()(),i.rb(345,0,null,null,4,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" 4. sum of two adjacent angles is "])),(t()(),i.rb(347,0,null,null,2,"app-math-jax",[],null,null,null,a.b,a.a)),i.qb(348,4308992,null,0,l.a,[],null,null),(t()(),i.Kb(-1,0,["180^0"])),(t()(),i.rb(350,0,null,null,6,"li",[],null,null,null,null,null)),(t()(),i.rb(351,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Rhombus "])),(t()(),i.rb(353,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" 1. Rhombus is a parallelogram in which all sides are equal "])),(t()(),i.rb(355,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" 2. The diagonals of a Rhombus bisect each other at right angles. "])),(t()(),i.rb(357,0,null,null,9,"li",[],null,null,null,null,null)),(t()(),i.rb(358,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Rectangle "])),(t()(),i.rb(360,0,null,null,4,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" 1.Rectangle is a parallelogram in which all the angles are equal to "])),(t()(),i.rb(362,0,null,null,2,"app-math-jax",[],null,null,null,a.b,a.a)),i.qb(363,4308992,null,0,l.a,[],null,null),(t()(),i.Kb(-1,0,["90^0"])),(t()(),i.rb(365,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" 2.The diagonals of a rectangle are equal "])),(t()(),i.rb(367,0,null,null,12,"li",[],null,null,null,null,null)),(t()(),i.rb(368,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Square "])),(t()(),i.rb(370,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" 1. A Square is a rectangle in which the adjacent sides are equal. "])),(t()(),i.rb(372,0,null,null,5,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" 2. A Square is a rhombus in which all the angles are equal to "])),(t()(),i.rb(374,0,null,null,2,"app-math-jax",[],null,null,null,a.b,a.a)),i.qb(375,4308992,null,0,l.a,[],null,null),(t()(),i.Kb(-1,0,["90^0"])),(t()(),i.Kb(-1,null,[". "])),(t()(),i.rb(378,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" 3. The diagonals are equal and bisect each other at right angles. "])),(t()(),i.rb(380,0,null,null,1,"h1",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,["CIRCLES"])),(t()(),i.rb(382,0,null,null,120,"ol",[],null,null,null,null,null)),(t()(),i.rb(383,0,null,null,4,"li",[],null,null,null,null,null)),(t()(),i.rb(384,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Circle is a Locus of points equidistant from a fixed point. "])),(t()(),i.rb(386,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" AB = Diameter ; OC = Radius ; XY = Chord "])),(t()(),i.rb(388,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(389,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" The fixed point O is called Centre. "])),(t()(),i.rb(391,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(392,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" The fixed distance from centre to the circle is called fadius. "])),(t()(),i.rb(394,0,null,null,5,"li",[],null,null,null,null,null)),(t()(),i.rb(395,0,null,null,4,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Diameter = "])),(t()(),i.rb(397,0,null,null,2,"app-math-jax",[],null,null,null,a.b,a.a)),i.qb(398,4308992,null,0,l.a,[],null,null),(t()(),i.Kb(-1,0,["2 \\times radius"])),(t()(),i.rb(400,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(401,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Diameter is the longest chord of a circle. "])),(t()(),i.rb(403,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(404,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Arc is a part of the circumference. "])),(t()(),i.rb(406,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(407,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" ADC is called the minor arc "])),(t()(),i.rb(409,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(410,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" ASC is called the major arc "])),(t()(),i.rb(412,0,null,null,4,"li",[],null,null,null,null,null)),(t()(),i.rb(413,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Circle is a Locus of points equidistant from a fixed point. "])),(t()(),i.rb(415,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" AB = Diameter ; OC = Radius ; XY = Chord "])),(t()(),i.rb(417,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(418,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" The fixed point O is called Centre. "])),(t()(),i.rb(420,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(421,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" The fixed distance from centre to the circle is called fadius. "])),(t()(),i.rb(423,0,null,null,5,"li",[],null,null,null,null,null)),(t()(),i.rb(424,0,null,null,4,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Diameter = "])),(t()(),i.rb(426,0,null,null,2,"app-math-jax",[],null,null,null,a.b,a.a)),i.qb(427,4308992,null,0,l.a,[],null,null),(t()(),i.Kb(-1,0,["2 \\times\\;radius"])),(t()(),i.rb(429,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(430,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Diameter is the longest chord of a circle. "])),(t()(),i.rb(432,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(433,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Arc is a part of the circumference. "])),(t()(),i.rb(435,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(436,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" ADC is called the minor arc "])),(t()(),i.rb(438,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(439,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" ASC is called the major arc "])),(t()(),i.rb(441,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(442,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" The Diameter divides the circle into two equal parts each part is called a Semi-circle. "])),(t()(),i.rb(444,0,null,null,5,"li",[],null,null,null,null,null)),(t()(),i.rb(445,0,null,null,4,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Angle in a semicircle is "])),(t()(),i.rb(447,0,null,null,2,"app-math-jax",[],null,null,null,a.b,a.a)),i.qb(448,4308992,null,0,l.a,[],null,null),(t()(),i.Kb(-1,0,["90^0\\;ADB=90^0"])),(t()(),i.rb(450,0,null,null,5,"li",[],null,null,null,null,null)),(t()(),i.rb(451,0,null,null,4,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Angle in the major arc of a circle is acute. "])),(t()(),i.rb(453,0,null,null,2,"app-math-jax",[],null,null,null,a.b,a.a)),i.qb(454,4308992,null,0,l.a,[],null,null),(t()(),i.Kb(-1,0,["ACB < 90^0"])),(t()(),i.rb(456,0,null,null,5,"li",[],null,null,null,null,null)),(t()(),i.rb(457,0,null,null,4,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Angle in the minor arc of a circle is obtuse."])),(t()(),i.rb(459,0,null,null,2,"app-math-jax",[],null,null,null,a.b,a.a)),i.qb(460,4308992,null,0,l.a,[],null,null),(t()(),i.Kb(-1,0,["ACB > 90^0"])),(t()(),i.rb(462,0,null,null,4,"li",[],null,null,null,null,null)),(t()(),i.rb(463,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Chords of a Circle and the properties : "])),(t()(),i.rb(465,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" In a circle the perpendicular from the centre to a chord bisects the chord. (Conversely) -Lr bisector of a chord of a circle passes through the centre. "])),(t()(),i.rb(467,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(468,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" In a circle the line joining the centre and the mid point of a chord is perpendicular to the chord "])),(t()(),i.rb(470,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(471,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" An angle with its vertex at the centre of the cirlce is called a central angle of the cirlce. "])),(t()(),i.rb(473,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(474,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" In a circle equal chords subtends equal angles at the centre. ZAOB = ZCOD "])),(t()(),i.rb(476,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(477,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Chords of a circle equidistant from the centre are equal. "])),(t()(),i.rb(479,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(480,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" If two central angles are equal then the intercepted arcs are also equal. ZAOB = ZCOD 600 then AB is congruent to CD >600 "])),(t()(),i.rb(482,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(483,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" In a circle with centre O, the degree measure of an arc is the measure of central angle subtended by the arc. = 60 0 , CD = 60 0 "])),(t()(),i.rb(485,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(486,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Angle at the centre of the whole circle is 3600. "])),(t()(),i.rb(488,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(489,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" In a circle the angle at circumference is half the angle at the centre. "])),(t()(),i.rb(491,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(492,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Angles inscribed in the same arc of a circle are equal. ZCED = ZCFD "])),(t()(),i.rb(494,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(495,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" A quadrilateral inscribed in a circle is called cyclic quadrilateral. (or) A quadrilateral is cyclic if its vertices lie on a circle. "])),(t()(),i.rb(497,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(498,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" In a cyclic quadrilateral, the sum of each pair of opposite angles is 1800 . ZA + ZC = 180 0 ZB + 180 0 "])),(t()(),i.rb(500,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(501,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" An exterior angle in a cyclic quadrilateral is equal to interior opposite angle. "])),(t()(),i.rb(503,0,null,null,1,"h1",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,["Tangents to a circle : "])),(t()(),i.rb(505,0,null,null,32,"ol",[],null,null,null,null,null)),(t()(),i.rb(506,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(507,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" A Secant line of a circle is a line that intersects the circle in any two points. "])),(t()(),i.rb(509,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(510,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" A tangent line to a circle is a line that touches the circle in exactly at one point. "])),(t()(),i.rb(512,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(513,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" The tangent at a point and the radius through the point of contact are perpendicular each other. "])),(t()(),i.rb(515,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(516,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" The common point to the circle and its tangent is called the point of contact. "])),(t()(),i.rb(518,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(519,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Through a given point on a circle only one tangent can be drawn. "])),(t()(),i.rb(521,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(522,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Through a given point in the interior of the circle no tangent can be drawn. "])),(t()(),i.rb(524,0,null,null,4,"li",[],null,null,null,null,null)),(t()(),i.rb(525,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Through a given point outside the circle two tangents can be drawn. "])),(t()(),i.rb(527,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" A, B are points of contact. "])),(t()(),i.rb(529,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(530,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Length of the tangent from a point P outside the circle is the length of the line segment joining the given point and the point of contact. "])),(t()(),i.rb(532,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(533,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" Lengths of the tangents to the circle from an external point are equal. "])),(t()(),i.rb(535,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i.rb(536,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),i.Kb(-1,null,[" The two tangents to a circle from an external point are equally inclined to the line joining the point to the centre of the cirlce. "]))],function(t,e){t(e,62,0),t(e,115,0),t(e,146,0),t(e,222,0),t(e,323,0),t(e,348,0),t(e,363,0),t(e,375,0),t(e,398,0),t(e,427,0),t(e,448,0),t(e,454,0),t(e,460,0)},function(t,e){t(e,63,0,"{xy}")})}function d(t){return i.Mb(0,[(t()(),i.rb(0,0,null,null,1,"app-geometry",[],null,null,null,c,h)),i.qb(1,114688,null,0,u,[],null,null)],function(t,e){t(e,1,0)},null)}var p=i.nb("app-geometry",u,d,{},{},[]),f=n("SVse"),g=n("08mC"),_=n("iInd");class m{}n.d(e,"Unit5ModuleNgFactory",function(){return v});var v=i.ob(r,[],function(t){return i.Ab([i.Bb(512,i.j,i.Z,[[8,[s.a,p]],[3,i.j],i.v]),i.Bb(4608,f.m,f.l,[i.s,[2,f.v]]),i.Bb(1073742336,f.b,f.b,[]),i.Bb(1073742336,g.a,g.a,[]),i.Bb(1073742336,_.m,_.m,[[2,_.r],[2,_.k]]),i.Bb(1073742336,m,m,[]),i.Bb(1073742336,r,r,[]),i.Bb(1024,_.i,function(){return[[{path:"",component:u}]]},[])])})}}]);